title
stringclasses 312
values | author
stringclasses 138
values | date
stringclasses 263
values | local
stringclasses 312
values | tags
stringclasses 196
values | URL
stringclasses 312
values | chunk
stringlengths 7
30.6k
| embedding
sequencelengths 768
768
|
---|---|---|---|---|---|---|---|
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | OpenMP In the previous section we talked about the memory management within machine learning software involving mostly CPU-bound workloads. Such software often relies on intermediary frameworks such as PyTorch or TensorFlow for Deep Learning which commonly abstract away all the underlying, highly parallelized, operator implementations. Writing such highly parallel and optimized algorithms is a real engineering challenge, and it requires a very low-level understanding of all the actual elements coming into play operated by the CPU (synchronization, memory cache, cache validity, etc.). In this context, it is very important to be able to leverage primitives to implement such powerful algorithms, reducing the delivery time and computation time by a large margin compared to implementing everything from scratch. There are many libraries available which provide such higher-level features to accelerate the development of algorithms. Among the most common, one can look at OpenMP, Thread Building Blocks and directly from the C++ when targeting a recent version of the standard. In the following part of this blog post, we will restrict ourselves to OpenMP and especially comparing the GNU, open source and community-based implementation, to the Intel OpenMP one. The latter especially targets Intel CPUs and is optimized to provide best of class performances when used as a drop-in replacement against the GNU OpenMP one. OpenMP exposes many environment variables to automatically configure the underlying resources which will be involved in the computations, such as the number of threads to use to dispatch computation to (intra-op threads), the way the system scheduler should bind each of these threads with respect to the CPU resources (threads, cores, sockets) and some other variables which bring further control to the user. Intel OpenMP exposes more of these environment variables to provide the user even more flexibility to adjust the performance of its software. Figure 21. OpenMP vs Intel OpenMP latencies running PyTorch Figure 22. OpenMP vs Intel OpenMP latencies running PyTorch As stated above, tuning OpenMP is something you can start to tweak when you tried all the other, system related, tuning knobs. It can bring a final speed up to you model with just a single environment variable to set. Also, it is important to note that tuning OpenMP library will only work within software that uses the OpenMP API internally. More specially, now only PyTorch and TorchScript really make usage of OpenMP and thus benefit from OpenMP backend tuning. This also explains why we reported latencies only for these two frameworks. | [
0.0863712951540947,
0.0031848254147917032,
0.021303391084074974,
0.030033323913812637,
0.037537481635808945,
0.07074926793575287,
0.0013381520984694362,
0.05777246877551079,
-0.0532645620405674,
-0.05076241493225098,
-0.03837383911013603,
0.04478289559483528,
-0.01481497474014759,
0.0074747297912836075,
0.029329368844628334,
-0.0004659736587200314,
0.0445256270468235,
-0.02289663627743721,
-0.017009679228067398,
0.061893314123153687,
0.046255625784397125,
-0.0243380106985569,
0.05273766815662384,
-0.0016675341175869107,
-0.03651391342282295,
0.023036843165755272,
-0.0679791271686554,
-0.02505580522119999,
-0.11864256858825684,
0.005248713307082653,
-0.13940705358982086,
-0.023902621120214462,
0.03298334404826164,
-0.02131737768650055,
0.012085325084626675,
-0.011810457333922386,
-0.06915712356567383,
0.08841174095869064,
0.06604072451591492,
-0.06719385087490082,
0.03987868130207062,
-0.04381733387708664,
-0.060804933309555054,
0.07077626883983612,
-0.05235772207379341,
-0.023618344217538834,
-0.11622025072574615,
0.06194101274013519,
0.038688112050294876,
-0.0333724245429039,
-0.13232873380184174,
0.025434037670493126,
0.014686401933431625,
0.034655388444662094,
0.008049504831433296,
0.04760600998997688,
0.0265379399061203,
0.0022779679857194424,
-0.001010651234537363,
-0.009727646596729755,
0.05485037341713905,
-0.002123004524037242,
-0.007577403448522091,
-0.012376504018902779,
0.06240387633442879,
-0.0008793050656095147,
-0.04701153188943863,
-0.0674666166305542,
-0.052557431161403656,
-0.022926608100533485,
-0.011892787180840969,
-0.018160361796617508,
-0.04544626548886299,
0.04129564389586449,
-0.055271025747060776,
-0.03540174290537834,
0.013937844894826412,
0.015500158071517944,
0.04177587851881981,
0.08892698585987091,
-0.0054277703166007996,
0.06319522857666016,
0.05213317275047302,
0.025108331814408302,
0.010546479374170303,
-0.019743358716368675,
0.03265240415930748,
-0.02199181728065014,
0.013441556133329868,
0.04496591165661812,
0.004892284516245127,
-0.0759001076221466,
0.07054194062948227,
0.0386347621679306,
-0.011992684565484524,
-0.09266110509634018,
0.027599694207310677,
-0.009619195014238358,
0.0005734355072490871,
0.02826676145195961,
0.006686218082904816,
-0.05661903694272041,
0.040106289088726044,
-0.013851452618837357,
-0.057957205921411514,
0.02535429038107395,
0.02864975295960903,
-0.10133963823318481,
-0.01551319845020771,
0.028895748779177666,
-0.03357792645692825,
0.10400877892971039,
-0.01601247861981392,
0.02599492482841015,
-0.0419430173933506,
-0.01164625771343708,
-0.017094919458031654,
-0.025243418291211128,
0.007236278150230646,
-0.050583209842443466,
-0.004346481990069151,
0.10300954431295395,
0.07543334364891052,
0.04024271294474602,
0.02090037241578102,
0.06385443359613419,
0.07796339690685272,
0.02393093891441822,
0.03935207426548004,
-0.07423906773328781,
0.03840789943933487,
0.021330121904611588,
0.034943390637636185,
-0.023197833448648453,
0.007062850520014763,
-0.04332613945007324,
-0.02459382265806198,
-0.02230522781610489,
-0.022267499938607216,
0.0024499872233718634,
-0.05669187009334564,
0.0292331762611866,
0.03353866934776306,
0.06209607422351837,
0.03910749405622482,
0.024943292140960693,
-0.06741010397672653,
0.03552670404314995,
0.012628612108528614,
-0.015794627368450165,
-0.06536420434713364,
0.05035601928830147,
-0.023342976346611977,
-0.07373668998479843,
0.02190462313592434,
0.10226867347955704,
0.002825894858688116,
-0.01667630299925804,
-0.09757992625236511,
-0.011052872985601425,
-0.007367680314928293,
0.05659518018364906,
-0.029742898419499397,
-0.012548526749014854,
-0.016714664176106453,
-0.012468909844756126,
0.08087368309497833,
-0.030259065330028534,
-0.025183724239468575,
0.020080167800188065,
-0.015277388505637646,
0.017600521445274353,
0.06539976596832275,
-0.02047739550471306,
0.01646280661225319,
0.03543039411306381,
0.02155604213476181,
0.07266949117183685,
0.02710435725748539,
0.01308461558073759,
-0.044459108263254166,
0.013655890710651875,
-0.017393803223967552,
0.054432354867458344,
0.01927652209997177,
-0.09948865324258804,
0.012369442731142044,
-0.05813879147171974,
-0.028153134509921074,
0.028676414862275124,
-0.04203353077173233,
0.006733512505888939,
0.027110984548926353,
-0.033189188688993454,
0.04202725738286972,
-0.05254310742020607,
-0.022289546206593513,
0.11409710347652435,
0.06744381040334702,
0.10142404586076736,
0.07354464381933212,
-0.04300917685031891,
-0.04490626975893974,
0.00021270410798024386,
-0.04529741406440735,
0.007815572433173656,
0.004476091358810663,
-0.06691227108240128,
-0.015504174865782261,
-0.002814625157043338,
-0.0043329657055437565,
-0.1239931583404541,
-0.030025392770767212,
-0.04572395235300064,
-0.0021907766349613667,
0.039188627153635025,
-0.025520198047161102,
0.00673020351678133,
0.03067711368203163,
-0.04424062743782997,
0.11051100492477417,
-0.12421360611915588,
0.002511361613869667,
0.0014397912891581655,
-0.08598171919584274,
0.010592987760901451,
0.06097308546304703,
0.02108139730989933,
0.08885286748409271,
-0.04293038696050644,
0.0029551724437624216,
-0.09508436173200607,
-0.03015165403485298,
0.134982630610466,
0.021440383046865463,
0.011070211417973042,
-0.040582325309515,
0.08096732944250107,
0.036515817046165466,
-0.07099106907844543,
-0.004937954246997833,
0.011072119697928429,
-0.053830940276384354,
0.05053916200995445,
-0.004993158392608166,
-0.007738680578768253,
0.041224606335163116,
-0.05118386074900627,
0.005444785114377737,
0.03443128615617752,
-0.007363437674939632,
-0.040328748524188995,
0.0018470142967998981,
-0.026221400126814842,
0.020420167595148087,
-0.01727895438671112,
-0.022859109565615654,
-0.028283528983592987,
0.019185548648238182,
0.021958107128739357,
0.048697829246520996,
-0.015182266011834145,
-0.03450731933116913,
-0.03361169621348381,
0.017831770703196526,
-0.05315730348229408,
0.0012622801586985588,
0.015908723697066307,
0.034419890493154526,
0.008864456787705421,
-0.026159625500440598,
-0.01313919946551323,
0.025288764387369156,
-0.01246155146509409,
0.008880870416760445,
0.03096124343574047,
0.017481284216046333,
0.016095804050564766,
-0.026969654485583305,
-0.02119533345103264,
-0.001985926413908601,
-0.033921387046575546,
0.02887890301644802,
0.03927669674158096,
-0.0074601611122488976,
0.004845264367759228,
-0.0031713906209915876,
0.02696526050567627,
-0.04435298219323158,
0.0025918756145983934,
0.006560042966157198,
0.02393835410475731,
-0.006875934079289436,
-0.023397276178002357,
0.0000621169019723311,
0.028268782421946526,
-0.021910052746534348,
-0.0442979671061039,
-0.004353808704763651,
-0.030826248228549957,
0.010599499568343163,
0.010436825454235077,
0.004737702663987875,
-0.025959912687540054,
-0.05268726870417595,
0.019110947847366333,
-0.008240148425102234,
0.028463561087846756,
-0.11693158745765686,
0.014183014631271362,
0.0015977610601112247,
0.01726796291768551,
-0.02121489681303501,
-0.028969211503863335,
0.029227733612060547,
0.02296402119100094,
-0.007301464676856995,
0.029778407886624336,
-0.013928367756307125,
0.008686772547662258,
0.015953632071614265,
0.004399542696774006,
-0.01518744695931673,
0.023510828614234924,
0.0067925662733614445,
0.010415573604404926,
-0.0006521794130094349,
0.015240050852298737,
0.013857814483344555,
0.03591999039053917,
-0.009681125171482563,
-0.006089292466640472,
-0.03800956532359123,
0.05825376883149147,
0.0007844888023100793,
0.013223203830420971,
-0.009409886784851551,
0.006030069198459387,
-0.026240957900881767,
0.002201464958488941,
0.0015797426458448172,
-0.007469779811799526,
-0.0062200273387134075,
-0.0148776201531291,
-0.00007897397154010832,
0.02125299721956253,
0.01027968991547823,
0.04372590780258179,
0.01700158417224884,
-0.00915506761521101,
0.07331489771604538,
-0.06003063544631004,
0.027230551466345787,
0.017781702801585197,
-0.02763187326490879,
-0.018793901428580284,
0.030779864639043808,
-0.0406121127307415,
-0.034065984189510345,
-0.025644823908805847,
0.004384768661111593,
0.03089996986091137,
-0.04093293845653534,
-0.017724627628922462,
-0.049762945622205734,
0.024724634364247322,
0.03064301423728466,
0.007457156199961901,
-0.04717499762773514,
0.026920825242996216,
0.021472694352269173,
0.02177644707262516,
-0.031132232397794724,
0.0053596459329128265,
0.04521750658750534,
-0.0012626837706193328,
-0.02893771044909954,
0.020118866115808487,
-0.004590247292071581,
0.031589262187480927,
-0.0007196621154434979,
0.011916164308786392,
-0.03208848088979721,
0.03265008330345154,
-0.027870062738656998,
-0.006495251320302486,
0.044660769402980804,
0.023806286975741386,
-0.04029807075858116,
-0.0391506627202034,
-0.00574400695040822,
-0.004008917137980461,
0.0075603569857776165,
0.002797934226691723,
0.00289645092561841,
0.02263261377811432,
0.01001095212996006,
0.05604894459247589,
0.013316134922206402,
-0.008945098146796227,
0.042865023016929626,
-0.0117141492664814,
0.02263595536351204,
0.004570291377604008,
0.04872218891978264,
0.011172713711857796,
-0.0026831438299268484,
0.02212579734623432,
0.02636987529695034,
-0.04179404675960541,
0.007838516496121883,
-0.03914466127753258,
-0.010114320553839207,
0.009605583734810352,
-0.04653564468026161,
-0.012509305030107498,
0.04777023568749428,
-0.002929682144895196,
-0.011066551320254803,
-0.016326913610100746,
0.012189956381917,
-0.016563555225729942,
0.035675741732120514,
0.02598465420305729,
-0.0076664770022034645,
-0.012923328205943108,
-0.010532204061746597,
0.04003223404288292,
-0.04490365460515022,
0.0251810010522604,
-0.019831325858831406,
-0.0010860832408070564,
0.03366202861070633,
-0.03640497848391533,
0.012971892952919006,
-0.03288289159536362,
-0.00042854659841395915,
0.015209834091365337,
-0.06379176676273346,
0.035215701907873154,
0.02278302237391472,
0.003410228993743658,
0.0037264961283653975,
0.004941098857671022,
-0.0052661048248410225,
0.012632631696760654,
0.014499886892735958,
-0.04858160391449928,
-0.019641079008579254,
0.02052372507750988,
0.012990090064704418,
-0.031003547832369804,
0.038506779819726944,
0.03696984425187111,
-0.019471514970064163,
-0.0019595406483858824,
-0.005754906218498945,
0.026268232613801956,
0.04080917686223984,
-0.009160098619759083,
0.007938753813505173,
0.018335919827222824,
0.04920810088515282,
-0.02586476504802704,
0.022446565330028534,
0.020133808255195618,
0.0028267670422792435,
0.06853634864091873,
-0.01794481836259365,
-0.022253764793276787,
-0.04205211251974106,
0.013090715743601322,
0.010231184773147106,
-0.03442339599132538,
0.04677087813615799,
-0.027884038165211678,
-0.003756813472136855,
-0.002967951586470008,
-0.005660538095980883,
0.04577990621328354,
-0.019940713420510292,
-0.04012570157647133,
0.06452853232622147,
-0.009763754904270172,
0.03764893859624863,
0.017534296959638596,
0.021005282178521156,
0.027100499719381332,
-0.029119938611984253,
-0.026180241256952286,
0.006742263212800026,
-0.01788603700697422,
-0.021528584882616997,
0.023223981261253357,
0.022884048521518707,
0.013370387256145477,
0.00624832883477211,
0.012377100996673107,
0.022838125005364418,
0.006577921099960804,
0.03144421800971031,
-0.006554138846695423,
0.004597331862896681,
0.010153801180422306,
-0.035677094012498856,
0.009689956903457642,
-0.008796480484306812,
-0.01828794926404953,
0.007439848035573959,
0.007932235486805439,
-0.020770473405718803,
-0.04270967096090317,
0.03136911243200302,
0.0404057651758194,
0.017447326332330704,
-0.06401883810758591,
-0.0007986932760104537,
-0.013136185705661774,
-0.00013959321950096637,
0.03326497599482536,
-0.006035325117409229,
0.0003934173146262765,
0.01853812299668789,
-0.04396980628371239,
-0.05941243842244148,
0.021910926327109337,
0.007434062659740448,
0.023271191865205765,
0.00460143992677331,
-0.016495991498231888,
-0.0031571765430271626,
0.018292520195245743,
0.02771325781941414,
-0.017795216292142868,
-0.005214202217757702,
0.013404394499957561,
0.00043179612839594483,
0.044498052448034286,
0.020471831783652306,
-0.014044361189007759,
-0.01894536428153515,
0.03601460158824921,
0.04228020831942558,
-0.042729735374450684,
0.04591919481754303,
-0.005369066726416349,
-0.00832170806825161,
-0.011768369004130363,
-0.04440418258309364,
-0.02999885007739067,
-0.04963807761669159,
0.0027951078955084085,
-0.05873950570821762,
0.012975790537893772,
0.05686657130718231,
-0.009048004634678364,
-0.027177050709724426,
-0.018680403009057045,
0.014451872557401657,
-0.01860339194536209,
0.03511923924088478,
-0.028413841500878334,
-0.004365675617009401,
-0.03451680764555931,
0.011044160462915897,
-0.0009249754948541522,
0.008476577699184418,
0.012180984951555729,
0.05000026151537895,
-0.07332336157560349,
0.00540337897837162,
0.01703030988574028,
-0.018519705161452293,
0.060184624046087265,
-0.002687757136300206,
-0.028323234990239143,
0.03402412310242653,
0.00425204960629344,
0.028082991018891335,
0.02022821642458439,
0.0063008577562868595,
0.005177032668143511,
0.01336309127509594,
-0.015991542488336563,
-0.025477169081568718,
0.08741997927427292,
-0.02886716090142727,
0.05702900514006615,
0.013801205903291702,
0.03498292341828346,
0.029897572472691536,
-0.018785500898957253,
0.007062466349452734,
0.011102232150733471,
0.061208952218294144,
-0.02556435577571392,
0.012726478278636932,
0.03546961024403572,
-0.036236945539712906,
-0.02705864980816841,
-0.017732160165905952,
0.005702171474695206,
-0.05619075149297714,
-0.005962061230093241,
0.010600823909044266,
-0.008789179846644402,
0.04910349100828171,
-0.024690095335245132,
0.03036525472998619,
0.029823407530784607,
0.008977471850812435,
0.03172961249947548,
-0.013095647096633911,
-0.01914837956428528,
0.011556977406144142,
-0.0003804147709161043,
0.012240130454301834,
0.012131976895034313,
-0.01938251592218876,
0.06579706817865372,
0.043442338705062866,
0.023772353306412697,
-0.010266220197081566,
-0.038876041769981384,
0.04816081002354622,
-0.013339729979634285,
0.004348974209278822,
0.022276496514678,
0.03089473396539688,
-0.019685201346874237,
0.010597414337098598,
0.009733776561915874,
-0.06425043940544128,
0.003955689258873463,
-0.03275486081838608,
-0.02908659540116787,
-0.026516173034906387,
-0.010961330495774746,
-0.022199947386980057,
0.05116605386137962,
-0.038660965859889984,
-0.006932652555406094,
-0.01559852808713913,
0.025045614689588547,
-0.026406876742839813,
0.012457596138119698,
-0.03813391178846359,
-0.03015587106347084,
0.024402564391493797,
0.03613611310720444,
0.02042800933122635,
0.03442970663309097,
0.005320470314472914,
-0.004953724332153797,
0.039902590215206146,
-0.014967297203838825,
-0.030944418162107468,
0.028228797018527985,
-0.0023807398974895477,
0.0056298766285181046,
-0.04621322453022003,
0.012333841063082218,
-0.013219855725765228,
-0.03364323079586029,
0.03802776709198952,
-0.002909592352807522,
0.047762662172317505,
-0.02061186544597149,
0.04953492805361748,
-0.024575546383857727,
0.01779629848897457,
-0.021686360239982605,
-0.009290582500398159,
-0.02390623651444912,
-0.003958391025662422,
-0.03705424442887306,
0.024991201236844063,
0.04589065909385681,
-0.01893085241317749,
0.02436835877597332,
-0.012723454274237156,
-0.05651526153087616,
-0.01534560788422823,
-0.0006249952712096274,
0.008183566853404045,
0.016987523064017296,
0.004940165672451258,
-0.02614773064851761,
0.07099100947380066,
0.02802225761115551,
0.03621559217572212,
0.022266240790486336,
0.006821702234447002,
0.030366554856300354,
-0.026507066562771797,
0.02739001251757145,
-0.026689644902944565,
0.0293474942445755,
0.00589067442342639,
-0.059355247765779495,
-0.009854072704911232,
-0.005139478482306004,
0.004456845112144947,
0.01330660656094551,
-0.05680014565587044,
0.004738679621368647,
-0.024302922189235687,
-0.018731510266661644,
-0.030243482440710068,
-0.024662740528583527,
0.07216984778642654,
0.055304497480392456,
-0.02092132717370987,
-0.009788044728338718,
-0.030365394428372383,
-0.012376821599900723,
-0.009890423156321049,
0.05104245990514755,
0.03837282210588455,
-0.022160625085234642,
-0.005078389775007963,
-0.0002826257550623268,
0.0019922631327062845,
0.003082964802160859,
-0.010998317040503025,
-0.0255720354616642,
0.005315767135471106,
0.007967608980834484,
-0.04319651424884796,
-0.0033288614358752966,
0.01487375982105732,
-0.00560355931520462,
0.04013606905937195,
-0.02367323637008667,
0.0021103178150951862,
0.011000171303749084,
-0.015702836215496063,
-0.038166534155607224,
-0.04658789932727814,
0.02798548713326454,
-0.031131798401474953,
0.031952761113643646,
0.01794317737221718,
0.022757021710276604,
-0.008690664544701576,
-0.0015918118879199028,
0.003244388150051236,
-0.033314142376184464,
-0.01463982742279768,
-0.013557939790189266,
-0.019947201013565063,
0.010660748928785324,
-0.049822594970464706,
-0.062215935438871384,
-0.023477789014577866,
0.009497326798737049,
0.008305798284709454,
0.007070337422192097,
-0.01878342777490616,
0.006548883393406868,
-0.00014475671923719347,
0.020503895357251167,
0.007050236687064171,
0.035547882318496704,
0.03403449058532715,
0.03593524545431137,
-0.004106803797185421,
0.00956255104392767
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Introduction: Using Intel Software to Optimize AI Efficiency on CPU As we detailed in our previous blog post, Intel Xeon CPUs provide a set of features especially designed for AI workloads such as AVX512 or VNNI (Vector Neural Network Instructions) for efficient inference using integer quantized neural network for inference along with additional system tools to ensure the work is being done in the most efficient way. In this blog post, we will focus on software optimizations and give you a sense of the performances of the new Ice Lake generation of Xeon CPUs from Intel. Our goal is to give you a full picture of what’s available on the software side to make the most out of your Intel hardware. As in the previous blog post, we show the performance with benchmark results and charts, along with new tools to make all these knobs and features easy to use. Back in April, Intel launched its latest generation of Intel Xeon processors, codename Ice Lake, targeting more efficient and performant AI workloads. More precisely, Ice Lake Xeon CPUs can achieve up to 75% faster inference on a variety of NLP tasks when comparing against the previous generation of Cascade Lake Xeon processors. This is achieved by a combination of both hardware and software improvements, such as new instructions and PCIe 4.0 featured on the new Sunny Cove architecture to supports Machine Learning and Deep Learning workloads. Last but not least, Intel worked on dedicated optimizations for various frameworks which now come with Intel’s flavors like Intel’s Extension for Scikit Learn, Intel TensorFlow and Intel PyTorch Extension. All these features are very low-level in the stack of what Data Scientists and Machine Learning Engineers use in their day-to-day toolset. In a vast majority of situations, it is more common to rely on higher level frameworks and libraries to handle multi-dimensional arrays manipulation such as PyTorch and TensorFlow and make use of highly tuned mathematical operators such as BLAS (Basic Linear Algebra Subroutines) for the computational part. In this area, Intel plays an essential role by providing software components under the oneAPI umbrella which makes it very easy to use highly efficient linear algebra routines through Intel oneMKL (Math Kernel Library), higher-level parallelization framework with Intel OpenMP or the Threading Building Blocks (oneTBB). Also, oneAPI provides some domain-specific libraries such as Intel oneDNN for deep neural network primitives (ReLU, fully-connected, etc.) or oneCCL for collective communication especially useful when using distributed setups to access efficient all-reduce operations over multiple hosts. Some of these libraries, especially MKL or oneDNN, are natively included in frameworks such as PyTorch and TensorFlow (since 2.5.0) to bring all the performance improvements to the end user out of the box. When one would like to target very specific hardware features, Intel provides custom versions of the most common software, especially optimized for the Intel platform. This is for instance the case with TensorFlow, for which Intel provides custom, highly tuned and optimized versions of the framework, or with the Intel PyTorch Extension (IPEX) framework which can be considered as a feature laboratory before upstreaming to PyTorch. | [
0.06700949370861053,
-0.03758581355214119,
0.0017039908561855555,
0.02777932398021221,
-0.023801425471901894,
0.024523211643099785,
0.02326686680316925,
0.03441033139824867,
-0.026245437562465668,
-0.018796639516949654,
-0.026008229702711105,
0.05649147555232048,
0.023302705958485603,
-0.01756090112030506,
0.022093895822763443,
-0.04210751876235008,
0.05919843912124634,
0.02631775289773941,
0.057404614984989166,
0.02245122194290161,
0.1123790517449379,
-0.05251188576221466,
0.1568128764629364,
0.04156864434480667,
-0.07366785407066345,
0.02425197884440422,
-0.0871807187795639,
-0.0517481230199337,
0.000804729585070163,
0.016431910917162895,
-0.11092301458120346,
-0.05594850331544876,
-0.01377501804381609,
-0.06972111016511917,
-0.0037207710556685925,
0.035425275564193726,
-0.07437314838171005,
0.044392406940460205,
0.0018190804403275251,
0.05498110502958298,
0.029481055215001106,
-0.0146725382655859,
-0.09927080571651459,
0.03920986130833626,
-0.046028442680835724,
-0.009199566207826138,
-0.08324433863162994,
0.029182005673646927,
-0.004573128651827574,
-0.011747250333428383,
-0.07404325902462006,
-0.020842337980866432,
-0.04150936380028725,
-0.0018135001882910728,
0.03584646061062813,
0.0633123442530632,
0.015419014729559422,
-0.046424247324466705,
-0.04522057995200157,
0.052358608692884445,
0.03722638636827469,
0.015079190954566002,
0.006636956240981817,
-0.05280478671193123,
0.008955040015280247,
-0.04242453724145889,
-0.06031446531414986,
-0.01894195005297661,
-0.07506441324949265,
-0.022982366383075714,
-0.0091047752648592,
0.03701527789235115,
-0.013821871019899845,
-0.0010262818541377783,
0.0005540818674489856,
-0.04009247198700905,
0.01854143664240837,
0.01223002653568983,
0.07037387043237686,
0.00902051292359829,
0.011688737198710442,
0.08387839049100876,
0.043600622564554214,
0.0591546855866909,
0.021169571205973625,
-0.008890102617442608,
-0.00016316403343807906,
0.010813232511281967,
-0.036649733781814575,
0.010189656168222427,
0.00887431763112545,
-0.07490650564432144,
0.0835341215133667,
0.03824346512556076,
-0.03891114890575409,
-0.036645110696554184,
0.032802876085042953,
0.033758699893951416,
0.036943528801202774,
-0.008675126358866692,
0.03792410343885422,
0.004137924872338772,
0.020642245188355446,
-0.012604807503521442,
-0.059572357684373856,
0.02835891954600811,
0.018526915460824966,
-0.05506075546145439,
-0.06887467950582504,
0.039317820221185684,
-0.08305443078279495,
0.03585641458630562,
-0.00485478388145566,
0.01122148334980011,
-0.119994156062603,
0.004379089921712875,
-0.015253460966050625,
0.017724286764860153,
-0.035276275128126144,
0.006297951564192772,
0.040218256413936615,
0.12127738445997238,
0.07571588456630707,
0.001259704353287816,
0.02031228318810463,
0.03855419158935547,
0.027218662202358246,
0.003265196457505226,
0.06723738461732864,
-0.05699814483523369,
-0.009518279694020748,
-0.00538840563967824,
0.1016198918223381,
0.041322626173496246,
0.05087800696492195,
-0.05716624855995178,
-0.04515041783452034,
-0.06759663671255112,
-0.04174095392227173,
0.017505019903182983,
-0.030566232278943062,
-0.006404740270227194,
0.09077457338571548,
-0.020028453320264816,
0.06991548091173172,
0.022598452866077423,
0.02873408794403076,
-0.006246962118893862,
0.01941731944680214,
0.00933817308396101,
-0.0139076616615057,
0.024664364755153656,
-0.06722215563058853,
-0.04552193358540535,
0.04001172259449959,
0.04936005175113678,
-0.03610231354832649,
-0.03647426888346672,
-0.10428594797849655,
-0.057295020669698715,
-0.043220747262239456,
-0.0010974026517942548,
-0.052226293832063675,
0.004131412133574486,
-0.022789621725678444,
-0.015563871711492538,
0.0758698359131813,
-0.019440311938524246,
0.0054923431016504765,
0.05362028256058693,
0.0080135902389884,
-0.023787710815668106,
0.08607885986566544,
0.014352299273014069,
0.0581912063062191,
-0.045708756893873215,
-0.007001482415944338,
0.06239059939980507,
0.038257308304309845,
-0.005600907374173403,
-0.09127696603536606,
0.0037084820214658976,
-0.028493769466876984,
0.036018431186676025,
0.017394408583641052,
-0.06384159624576569,
-0.02141886204481125,
-0.057139504700899124,
0.016348788514733315,
0.0006815960514359176,
-0.024492602795362473,
0.015267135575413704,
0.04757092893123627,
-0.032413583248853683,
-0.004609788302332163,
-0.04667358472943306,
-0.025254471227526665,
0.09887010604143143,
0.05372094735503197,
0.07215341180562973,
0.07186291366815567,
-0.05766705051064491,
0.011868407018482685,
0.0006867480115033686,
-0.05469457805156708,
0.01689743623137474,
-0.011261423118412495,
-0.04558489844202995,
-0.013983389362692833,
0.035687632858753204,
-0.02874942682683468,
-0.1334611177444458,
0.018190333619713783,
-0.009542345069348812,
-0.012448432855308056,
0.008497915230691433,
-0.04654799401760101,
0.07479289174079895,
0.016699664294719696,
-0.03485477715730667,
0.10904170572757721,
-0.09975896030664444,
0.003132040612399578,
0.022243570536375046,
-0.010974910110235214,
-0.006402162369340658,
0.12057723104953766,
-0.01639963686466217,
0.03717196360230446,
0.012308111414313316,
-0.0019692599307745695,
-0.11056399345397949,
-0.028199750930070877,
0.010066954419016838,
0.06558758020401001,
-0.0073768096044659615,
0.06261510401964188,
0.06376096606254578,
0.057115450501441956,
-0.0611768439412117,
-0.005470408126711845,
0.0319967195391655,
-0.06612047553062439,
0.03370890021324158,
0.04862276837229729,
0.008103964850306511,
0.06281591206789017,
-0.0644058808684349,
0.004237860906869173,
-0.01568746194243431,
0.0034783126320689917,
-0.023352280259132385,
-0.0216293353587389,
-0.0184599831700325,
-0.013362170197069645,
0.04943303018808365,
0.0326717272400856,
-0.010957066901028156,
-0.03153067082166672,
0.0177437923848629,
0.0036101595032960176,
-0.0034016380086541176,
0.0014595241518691182,
-0.021612558513879776,
0.031702253967523575,
-0.010359848849475384,
-0.005424209870398045,
-0.01620694063603878,
0.05199214071035385,
-0.03859364986419678,
-0.00928276963531971,
-0.02382296323776245,
0.03182592988014221,
-0.023811182007193565,
0.0025542001239955425,
0.02421858347952366,
-0.01713993400335312,
-0.026696940883994102,
-0.056772664189338684,
-0.02203303761780262,
0.02501709759235382,
-0.002330017974600196,
0.01634727232158184,
0.05817558243870735,
-0.01994125358760357,
-0.002807201584801078,
-0.0036711052525788546,
-0.000008382998203160241,
-0.03349439054727554,
-0.004771907813847065,
-0.000491826853249222,
0.021801231428980827,
0.005756757687777281,
-0.05643544718623161,
-0.0024147569201886654,
0.032317519187927246,
-0.020734727382659912,
-0.0034305586013942957,
-0.014757538214325905,
0.016443315893411636,
-0.004263659939169884,
-0.026408128440380096,
-0.025001902133226395,
0.026334591209888458,
-0.01652863807976246,
0.0410478450357914,
-0.03427216038107872,
0.007100487593561411,
-0.07783732563257217,
0.011725258082151413,
-0.04531589522957802,
-0.0017743740463629365,
0.010860666632652283,
-0.028628915548324585,
0.014902099035680294,
0.03999582678079605,
0.027661168947815895,
0.020076623186469078,
0.0038338012527674437,
0.013617975637316704,
0.03515908494591713,
0.0015677923802286386,
0.02083825320005417,
0.024490272626280785,
0.020981986075639725,
-0.034158721566200256,
0.008544248528778553,
-0.010102719999849796,
0.02691458910703659,
0.008174856193363667,
-0.005131781566888094,
-0.006905175279825926,
-0.013994202949106693,
0.03202773630619049,
0.039819903671741486,
0.014878246001899242,
-0.004050791263580322,
-0.02942724898457527,
-0.05334440618753433,
-0.02621481567621231,
-0.01006302610039711,
-0.015859775245189667,
-0.016302770003676414,
-0.003365270560607314,
0.01709170639514923,
-0.017050545662641525,
0.045944347977638245,
0.030422892421483994,
0.012094413861632347,
-0.026458777487277985,
0.08582954108715057,
-0.038328781723976135,
0.013680141419172287,
0.006290587596595287,
0.0059712422080338,
-0.016952715814113617,
-0.007769150193780661,
-0.038344185799360275,
-0.031770359724760056,
0.003654239699244499,
0.0069684660993516445,
0.02104225382208824,
-0.030495645478367805,
0.011413853615522385,
-0.03418456390500069,
0.003875467926263809,
0.030038777738809586,
0.030939463526010513,
-0.03331905975937843,
0.03261265531182289,
0.001705958042293787,
0.040135860443115234,
-0.0442795492708683,
-0.0365288108587265,
0.03751317039132118,
-0.018019583076238632,
-0.005717260297387838,
0.05729933828115463,
0.020210014656186104,
0.03515901044011116,
-0.012772676534950733,
0.010614351369440556,
0.008618954569101334,
0.022811591625213623,
-0.015326317399740219,
0.03793799504637718,
0.04514910653233528,
0.07359585911035538,
-0.031859662383794785,
-0.009617779403924942,
-0.016890844330191612,
0.008300816640257835,
0.003180798841640353,
0.02307293191552162,
-0.011937951669096947,
-0.026524480432271957,
-0.0019760983996093273,
0.022750960662961006,
0.013782193884253502,
-0.07363075762987137,
0.03279280662536621,
-0.02979285828769207,
0.0071635376662015915,
0.0028503278736025095,
0.02804579585790634,
0.005121957045048475,
0.002727580489590764,
0.006335544399917126,
0.011338816024363041,
-0.031877439469099045,
0.046266768127679825,
-0.015900814905762672,
-0.02654985338449478,
-0.03393273428082466,
0.009057712741196156,
0.028717488050460815,
0.027727864682674408,
-0.003425426548346877,
-0.013939795084297657,
-0.0517050065100193,
-0.008243164047598839,
0.019442448392510414,
0.055248163640499115,
-0.003325830912217498,
-0.03373590111732483,
0.005161890294402838,
0.027938883751630783,
0.023583559319376945,
-0.03745533153414726,
0.019909128546714783,
-0.013469112105667591,
-0.021250860765576363,
0.02762519009411335,
0.007015909533947706,
-0.0021162477787584066,
-0.006192401982843876,
0.013239439576864243,
-0.0004672413633670658,
-0.031993575394153595,
0.037596143782138824,
0.060532890260219574,
0.008372664451599121,
-0.011816497892141342,
0.0014218274736776948,
-0.007777675520628691,
0.0007400444010272622,
-0.0288532841950655,
-0.017572302371263504,
-0.016950447112321854,
0.016749003902077675,
0.046598490327596664,
-0.01057491172105074,
0.002404125640168786,
0.058591146022081375,
-0.0029448710847646,
-0.029161131009459496,
0.02344091609120369,
0.023790715262293816,
0.006604110822081566,
0.024310357868671417,
-0.02333964966237545,
0.004225436598062515,
0.07134345173835754,
-0.0011333543807268143,
0.013508977368474007,
0.007877028547227383,
0.034252624958753586,
0.04134634509682655,
-0.003241679398342967,
0.004329847637563944,
-0.024760514497756958,
-0.02626728266477585,
0.021015232428908348,
0.0009451587684452534,
0.009294530376791954,
-0.02715679444372654,
-0.020550180226564407,
-0.01023024320602417,
-0.0034081055782735348,
0.05914391577243805,
-0.04782136529684067,
-0.04458745941519737,
0.03009730577468872,
-0.016874073073267937,
0.01977168768644333,
-0.007621619384735823,
-0.009290823712944984,
0.020910605788230896,
-0.00003073300467804074,
-0.023862821981310844,
0.0030161014292389154,
-0.001913739019073546,
-0.01842137798666954,
0.0394631028175354,
0.01498657651245594,
0.023870961740612984,
-0.006173586007207632,
-0.013000906445086002,
0.02807539328932762,
-0.016384005546569824,
0.04961025342345238,
-0.006260662339627743,
0.010564694181084633,
-0.03591474890708923,
-0.006174250040203333,
0.012838006019592285,
0.006848180200904608,
-0.02911449782550335,
-0.010956816375255585,
-0.030440285801887512,
0.004774659872055054,
-0.012518422678112984,
0.041400108486413956,
0.01518180500715971,
-0.013604522682726383,
-0.021124646067619324,
0.022585341706871986,
-0.011785047128796577,
0.010858955793082714,
0.0034835233818739653,
0.007948976941406727,
0.010283089242875576,
0.023967668414115906,
-0.005082602147012949,
-0.042504459619522095,
0.045133765786886215,
-0.0037531289272010326,
0.033636774867773056,
-0.020677652209997177,
-0.00389328901655972,
-0.020764445886015892,
-0.031876083463430405,
-0.035104718059301376,
-0.038193393498659134,
-0.012784983031451702,
-0.02352718450129032,
0.020129235461354256,
0.011878634802997112,
0.0388747863471508,
-0.03354499116539955,
-0.05480189621448517,
0.023965904489159584,
0.034110456705093384,
-0.0366358645260334,
0.03951387107372284,
0.0031973980367183685,
0.01586434803903103,
-0.014769576489925385,
-0.05444105714559555,
0.0008106736931949854,
-0.014990521594882011,
-0.015933042392134666,
-0.07220413535833359,
0.04653174430131912,
0.0094536654651165,
-0.053056467324495316,
-0.04954167827963829,
0.014100868254899979,
-0.0022605122067034245,
-0.06042861565947533,
0.020320063456892967,
-0.007373281754553318,
0.004453228786587715,
0.003598179668188095,
0.018852565437555313,
-0.025835173204541206,
0.013183560222387314,
0.04494154080748558,
-0.04965286701917648,
-0.05918191000819206,
0.025501493364572525,
0.030141865834593773,
-0.01290467195212841,
0.014519412070512772,
-0.006885389797389507,
-0.018951913341879845,
0.04016824811697006,
0.03238267824053764,
-0.02046983875334263,
0.011480964720249176,
0.026908935979008675,
-0.02916133776307106,
-0.033004071563482285,
0.012143616564571857,
-0.024024929851293564,
0.12686753273010254,
-0.019905218854546547,
0.03340712934732437,
0.005052099470049143,
0.025985941290855408,
0.01445230282843113,
-0.03881385922431946,
-0.00738217867910862,
0.014963511377573013,
0.05074630677700043,
0.009752959944307804,
-0.0006992389098741114,
0.010685940273106098,
-0.007155185099691153,
-0.04322607070207596,
0.025980908423662186,
-0.022554734721779823,
-0.023985078558325768,
0.003082542447373271,
0.026498718187212944,
-0.003153517609462142,
0.029333103448152542,
-0.051769424229860306,
0.06755506992340088,
0.03842100873589516,
-0.029345888644456863,
0.0012659596977755427,
0.009993220679461956,
0.021342098712921143,
0.010690970346331596,
-0.04065744951367378,
0.000616811856161803,
0.019572289660573006,
-0.008149402216076851,
0.061849452555179596,
0.024343768134713173,
0.06451041251420975,
0.0027884680312126875,
0.016019143164157867,
0.02424316108226776,
-0.022120356559753418,
0.022629201412200928,
0.013030553236603737,
0.02569015882909298,
-0.0347808301448822,
-0.014832979999482632,
0.0008834205218590796,
-0.047719571739435196,
0.02180035412311554,
-0.020262377336621284,
0.0037259759847074747,
-0.033700130879879,
0.008558913134038448,
-0.02386034093797207,
0.021289320662617683,
-0.010606762953102589,
-0.03705912455916405,
0.0074803573079407215,
0.018696751445531845,
-0.014815573580563068,
-0.028944656252861023,
-0.011505327187478542,
0.004321959801018238,
0.02002781070768833,
0.03501386567950249,
0.035083066672086716,
0.006087092217057943,
-0.00019662956765387207,
-0.005132125690579414,
0.027857013046741486,
0.03525450825691223,
-0.02354157157242298,
0.007822180166840553,
-0.020893605425953865,
0.018255440518260002,
-0.010848507285118103,
0.007064939010888338,
-0.026866521686315536,
-0.019632333889603615,
0.002891603158786893,
-0.04904890060424805,
0.008980240672826767,
-0.03314807638525963,
0.01236936915665865,
-0.010009657591581345,
0.04266713187098503,
-0.0328093022108078,
-0.05730200186371803,
-0.019572192803025246,
-0.02907191775739193,
-0.03558116778731346,
-0.009562036022543907,
0.0050059473142027855,
-0.012019794434309006,
-0.004423386882990599,
0.012654617428779602,
-0.02848917618393898,
-0.008309883996844292,
0.018455523997545242,
0.013428090140223503,
-0.03185505047440529,
-0.04945196956396103,
-0.025649523362517357,
0.07024148106575012,
-0.002093767747282982,
0.0341605469584465,
0.025954239070415497,
0.014818109571933746,
0.01929662376642227,
-0.045398931950330734,
0.025942176580429077,
-0.024428408592939377,
-0.01748448610305786,
-0.009228236973285675,
-0.013917875476181507,
0.009837871417403221,
-0.0026313774287700653,
0.055310774594545364,
0.04926270619034767,
-0.055044181644916534,
0.016171704977750778,
-0.03231792524456978,
-0.03140540421009064,
-0.05272327736020088,
-0.04444868490099907,
0.060178790241479874,
0.03771166875958443,
-0.017794247716665268,
-0.043570730835199356,
-0.023003505542874336,
-0.030414342880249023,
-0.015407436527311802,
0.025306779891252518,
0.04414449632167816,
-0.006833931431174278,
-0.010440236888825893,
-0.008567831479012966,
0.0018626307137310505,
0.010373729281127453,
0.01522883027791977,
0.019921742379665375,
-0.021787628531455994,
0.0013405373319983482,
-0.03990627080202103,
0.0341886430978775,
0.027767186984419823,
-0.04344537481665611,
0.0006078511360101402,
-0.035228610038757324,
0.013037437573075294,
0.008942589163780212,
0.011506913229823112,
-0.04254951700568199,
-0.058558136224746704,
0.0036778301000595093,
-0.02283376082777977,
0.023083165287971497,
0.015491652302443981,
0.028932448476552963,
0.013861270621418953,
0.036513153463602066,
0.026862993836402893,
-0.03875648230314255,
0.016659419983625412,
0.008183835074305534,
-0.03541918098926544,
0.08139517158269882,
-0.033707957714796066,
-0.06629656255245209,
-0.020759137347340584,
-0.03019886091351509,
0.0260449405759573,
-0.010656495578587055,
-0.024186326190829277,
0.03079269826412201,
0.030444519594311714,
0.02076374925673008,
-0.008820761926472187,
0.025439685210585594,
0.09327710419893265,
0.002317968523129821,
0.0038417475298047066,
-0.010875093750655651
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | More Efficient AI Processing on latest Intel Ice Lake CPUs In order to report the performances of the Ice Lake product lineup we will closely follow the methodology we used for the first blog post of this series. As a reminder, we will adopt the exact same schema to benchmark the various setups we will highlight through this second blog post. More precisely, the results presented in the following sections are based on: - PyTorch: 1.9.0 - TensorFlow: 2.5.0 - Batch Sizes: 1, 4, 8, 16, 32, 128 - Sequence Lengths: 8, 16, 32, 64, 128, 384, 512 We will present the results through metrics accepted by the field to establish the performances of the proposed optimizations: - Latency: Time it takes to execute a single inference request (i.e., “forward call”) through the model, expressed in millisecond. - Throughput: Number of inference requests (i.e., “forward calls”) the system can sustain within a defined period, expressed in call/sec. We will also provide an initial baseline showing out-of-the-box results and a second baseline applying all the different optimizations we highlighted in the first blogpost. Everything was run on an Intel provided cloud instance featuring the Ice Lake Xeon Platinum 8380 CPU operating on Ubuntu 20.04.2 LTS. You can find the same processors on the various cloud providers: - AWS m6i / c6i instances - Azure Ev5 / Dv5 series Figure 3. Intel Ice Lake Xeon 8380 Specifications | [
0.026037415489554405,
-0.033281829208135605,
0.007560789585113525,
0.04441926255822182,
-0.03739139065146446,
0.023499859496951103,
0.04958820715546608,
0.051309987902641296,
-0.05175835266709328,
-0.05046793818473816,
-0.019277209416031837,
0.022083105519413948,
-0.018261661753058434,
0.009632703848183155,
0.024721262976527214,
-0.015903927385807037,
0.05560900270938873,
0.07424008101224899,
0.061438627541065216,
-0.004048114642500877,
0.0887044295668602,
-0.04672195762395859,
0.1086847186088562,
0.05501638725399971,
-0.0839419960975647,
0.0031984883826225996,
-0.04633338749408722,
-0.00826092716306448,
-0.050861895084381104,
-0.005669078789651394,
-0.09675027430057526,
-0.02129298634827137,
0.004015377257019281,
-0.057196516543626785,
0.03443894535303116,
-0.008844135329127312,
-0.1117180809378624,
0.05901049077510834,
0.004031582735478878,
-0.015685299411416054,
0.024075757712125778,
-0.024733856320381165,
-0.07569196075201035,
0.05218486115336418,
-0.02095600590109825,
0.03615383431315422,
-0.12040550261735916,
-0.000656421878375113,
0.0032635233364999294,
0.008420861326158047,
-0.06409718841314316,
-0.002605683170258999,
-0.053912192583084106,
0.035252925008535385,
0.03597794845700264,
0.016666213050484657,
0.018469717353582382,
-0.061254411935806274,
0.010514581575989723,
0.007979139685630798,
0.037418872117996216,
0.014459093101322651,
0.004777958150953054,
-0.04149509593844414,
0.0013438666937872767,
-0.07658166438341141,
0.0077736289240419865,
0.015074199065566063,
-0.017472226172685623,
0.009032237343490124,
0.008623509667813778,
0.033092427998781204,
0.06423573195934296,
0.007676849141716957,
-0.01654151827096939,
-0.03962630033493042,
0.011196262203156948,
0.019478432834148407,
0.045655135065317154,
0.051051218062639236,
0.020165640860795975,
0.02298814430832863,
0.028950391337275505,
0.025491589680314064,
0.017340345308184624,
-0.0017258289735764265,
0.029829449951648712,
0.0298366229981184,
-0.029000354930758476,
0.007613633759319782,
0.04335622116923332,
-0.09434254467487335,
0.0687142163515091,
0.03416161611676216,
-0.05668292194604874,
-0.031757652759552,
0.017996111884713173,
-0.00411039125174284,
0.04188910871744156,
-0.0009302997495979071,
0.03132268413901329,
-0.03185846656560898,
-0.013413255102932453,
-0.012061704881489277,
-0.06197935715317726,
0.031759027391672134,
-0.060521528124809265,
-0.06274039298295975,
-0.06156884878873825,
-0.02025395631790161,
-0.05686521530151367,
0.04711981490254402,
-0.04282999783754349,
0.05720844492316246,
-0.1346825808286667,
0.00937164667993784,
-0.027430422604084015,
0.006576787680387497,
-0.0097751934081316,
0.025988809764385223,
0.04796863719820976,
0.06913387030363083,
0.040530480444431305,
-0.006120231002569199,
-0.027988146990537643,
0.03919867053627968,
0.02326864004135132,
0.027641260996460915,
0.02570047415792942,
-0.05448134243488312,
0.05425727367401123,
-0.05536402389407158,
0.08904120326042175,
0.015650656074285507,
-0.016278868541121483,
-0.09059008955955505,
-0.024852678179740906,
-0.09015148133039474,
0.0010161459213122725,
0.012379873543977737,
-0.05389392003417015,
-0.01239242497831583,
0.0560176745057106,
-0.011109615676105022,
0.09528866410255432,
0.009075704030692577,
-0.050451163202524185,
0.0031195529736578465,
0.04679133743047714,
0.019120827317237854,
-0.12062175571918488,
0.007907027378678322,
-0.08536675572395325,
-0.024707689881324768,
0.022701067849993706,
0.036560483276844025,
-0.018158573657274246,
-0.08951292186975479,
-0.04928754270076752,
-0.10793489962816238,
-0.04268525168299675,
0.026562688872218132,
-0.06883183866739273,
-0.04266830533742905,
0.0015459518181160092,
-0.023081660270690918,
0.047828853130340576,
-0.002895969897508621,
0.03707100823521614,
0.011431233026087284,
0.023299161344766617,
0.037413954734802246,
0.1014179140329361,
0.05696152150630951,
0.0024383054114878178,
0.03292466327548027,
0.007140481378883123,
0.06592719256877899,
0.022934122011065483,
-0.04538719728589058,
-0.06113094836473465,
-0.016301218420267105,
-0.06334997713565826,
0.07173846662044525,
0.03193957358598709,
-0.07287289202213287,
0.007320727687329054,
-0.003757402068004012,
0.0377461276948452,
0.010899852029979229,
0.020566154271364212,
-0.004909527488052845,
0.031198089942336082,
0.01528562605381012,
0.00905648060142994,
-0.020009050145745277,
-0.03768061846494675,
0.037243444472551346,
0.026518262922763824,
0.08974095433950424,
0.05012402683496475,
-0.002067824127152562,
0.03498101606965065,
0.033120740205049515,
-0.06803670525550842,
0.013501714915037155,
0.0036438493989408016,
-0.0617184042930603,
-0.04180483520030975,
0.06287331879138947,
-0.036672502756118774,
-0.16260085999965668,
0.0036727325059473515,
-0.03044280596077442,
-0.04681188985705376,
0.0009492876706644893,
-0.03100605495274067,
-0.004291947465389967,
0.030535396188497543,
-0.04355615749955177,
0.14940516650676727,
-0.014695195481181145,
0.0504315160214901,
0.020458966493606567,
-0.004424385726451874,
-0.006442135199904442,
0.10538507997989655,
0.02055506967008114,
0.027047250419855118,
0.04292283579707146,
-0.006130861584097147,
-0.07194485515356064,
-0.026530057191848755,
0.031206753104925156,
0.09232600778341293,
-0.02823028154671192,
0.025565259158611298,
0.10465764999389648,
0.08220954984426498,
-0.03448905423283577,
-0.012837158516049385,
-0.023028843104839325,
-0.010551892220973969,
0.04211041331291199,
0.05565663054585457,
-0.011757970787584782,
0.07712902873754501,
-0.051556479185819626,
0.004447664134204388,
-0.03561349958181381,
-0.02431320585310459,
-0.019399208948016167,
-0.05169551819562912,
-0.004994599614292383,
0.05535454303026199,
0.04657784476876259,
0.02058432810008526,
-0.0018142900662496686,
-0.02615349180996418,
0.04432791471481323,
0.03787301853299141,
-0.0033324072137475014,
-0.0031049451790750027,
-0.024942094460129738,
0.026951199397444725,
-0.024094143882393837,
-0.022411594167351723,
-0.036700539290905,
0.04608897492289543,
-0.021954890340566635,
-0.05123169347643852,
0.017394352704286575,
0.015592105686664581,
-0.007371168117970228,
-0.020691195502877235,
0.010256092064082623,
0.008275209926068783,
-0.013399721123278141,
-0.03872194513678551,
-0.00817142240703106,
0.029792718589305878,
-0.027554109692573547,
0.03148785978555679,
0.03737977147102356,
-0.021609382703900337,
0.007256168872117996,
0.0032926166895776987,
-0.040843624621629715,
-0.0671040266752243,
-0.01499255746603012,
0.007643534801900387,
-0.0006141047342680395,
0.012348034419119358,
-0.03216119855642319,
-0.002102041384205222,
0.03338287025690079,
0.011227433569729328,
0.0013001117622479796,
-0.021442560479044914,
0.012870246544480324,
-0.05582728609442711,
0.005054847337305546,
-0.027611514553427696,
0.013558605685830116,
-0.010268867947161198,
0.0038623118307441473,
0.007825475186109543,
0.030582644045352936,
-0.08476090431213379,
-0.018177757039666176,
-0.006870022974908352,
0.030683351680636406,
-0.01673196628689766,
-0.030832411721348763,
0.03135288879275322,
0.028565479442477226,
0.0039556799456477165,
0.012506785802543163,
0.00903369951993227,
0.018712423741817474,
0.021761838346719742,
0.020838307216763496,
-0.007193855009973049,
0.04020248353481293,
0.019649798050522804,
-0.022815756499767303,
-0.023515161126852036,
-0.009272310882806778,
0.002597234910354018,
0.006082192994654179,
0.0037329525221139193,
-0.010489488020539284,
0.0057239169254899025,
0.022188713774085045,
0.05358868092298508,
-0.004533187951892614,
-0.009155438281595707,
0.009702248498797417,
-0.054490428417921066,
-0.017542744055390358,
0.0014101542765274644,
-0.015996910631656647,
-0.03853846713900566,
0.00016426044749096036,
-0.025054240599274635,
0.019654685631394386,
0.07017941027879715,
0.014800737611949444,
-0.00859745405614376,
-0.00582250626757741,
0.08553764224052429,
-0.03552357479929924,
0.017086777836084366,
0.011104535311460495,
0.06324908882379532,
-0.025371646508574486,
0.024052275344729424,
-0.04009227827191353,
-0.02479921653866768,
0.008915171027183533,
-0.0006422838196158409,
0.05015283077955246,
0.00624431436881423,
-0.003435517428442836,
-0.03027358092367649,
0.055830035358667374,
0.041127294301986694,
0.010473521426320076,
-0.04899021238088608,
0.024484319612383842,
0.008390553295612335,
0.0409514419734478,
-0.05613773688673973,
0.019855979830026627,
0.04862711951136589,
0.017841925844550133,
-0.024102790281176567,
0.011170275509357452,
-0.011642071418464184,
0.037687674164772034,
-0.027318140491843224,
0.0068325926549732685,
0.02597787044942379,
0.002880547195672989,
-0.015517151914536953,
0.048991795629262924,
0.036360081285238266,
0.10187388211488724,
-0.03495839610695839,
-0.015986457467079163,
-0.022936280816793442,
-0.03176058456301689,
0.002390491310507059,
0.017207270488142967,
-0.0033648908138275146,
-0.014011913910508156,
0.01969790831208229,
0.02061368152499199,
0.0010770269436761737,
-0.03492075577378273,
0.03028990887105465,
-0.032475296407938004,
0.0016297891270369291,
-0.01592308096587658,
0.02177104353904724,
0.019522452726960182,
-0.014476807788014412,
0.013497024774551392,
0.029658041894435883,
-0.04746054485440254,
0.04220520332455635,
0.028545012697577477,
-0.02356082759797573,
-0.020535124465823174,
-0.0019349920330569148,
-0.025817029178142548,
0.005392976105213165,
0.022061249241232872,
-0.006803800351917744,
-0.05691657215356827,
0.047062650322914124,
-0.005949612706899643,
0.05232076346874237,
0.037743501365184784,
0.00299334735609591,
0.01094098575413227,
0.03565000742673874,
0.011507928371429443,
-0.030955767259001732,
0.04154220223426819,
-0.043616246432065964,
0.006684582680463791,
0.015866586938500404,
-0.01642642728984356,
0.011737344786524773,
-0.011806420981884003,
0.011614244431257248,
-0.04732121154665947,
-0.039289239794015884,
0.04037931561470032,
0.06198759377002716,
0.008697791956365108,
-0.006681159604340792,
-0.028491055592894554,
0.008736186660826206,
-0.01633753813803196,
-0.041514936834573746,
-0.034535542130470276,
-0.009857640601694584,
0.032136689871549606,
0.01826510764658451,
-0.020095692947506905,
-0.028209539130330086,
0.04168124496936798,
0.0012436255346983671,
-0.06065012887120247,
0.029158344492316246,
0.03233283385634422,
0.02008906751871109,
-0.015320410020649433,
0.0007032986031845212,
0.030477523803710938,
0.06362737715244293,
0.0022412061225622892,
0.004471112042665482,
0.008333805948495865,
0.027426213026046753,
0.04560001939535141,
0.011539489030838013,
0.015867002308368683,
-0.01976333186030388,
-0.02914898656308651,
0.04212458059191704,
-0.011213305406272411,
-0.0034667712170630693,
-0.03447892516851425,
-0.010371167212724686,
0.015101179480552673,
0.018668750301003456,
0.010803588666021824,
0.008437702432274818,
-0.010175916366279125,
0.05165326967835426,
0.020704995840787888,
0.007129319477826357,
0.007659600581973791,
0.022991908714175224,
-0.0017083041602745652,
0.0007978068897500634,
0.013151461258530617,
-0.004339376464486122,
0.006154912989586592,
0.006622418761253357,
0.003261587815359235,
0.021333064883947372,
0.04094437509775162,
0.03856611251831055,
0.00415218947455287,
0.026212574914097786,
0.011609448119997978,
0.01667153835296631,
-0.04181835055351257,
0.002473043277859688,
-0.02543315663933754,
0.00820860080420971,
0.042431026697158813,
0.0026221435982733965,
-0.030561275780200958,
0.016000693663954735,
-0.01824108138680458,
-0.011560909450054169,
-0.013964963145554066,
0.057503633201122284,
0.04001526162028313,
0.005734787322580814,
0.003613156732171774,
0.01794612593948841,
-0.024782832711935043,
0.008141736499965191,
0.015091377310454845,
-0.018727196380496025,
0.009426177479326725,
0.0059136380441486835,
-0.03740144520998001,
-0.040357258170843124,
0.0198851116001606,
0.008389771915972233,
0.02328411303460598,
-0.004557314328849316,
-0.035724155604839325,
-0.0012655340833589435,
-0.016964208334684372,
-0.03997732698917389,
-0.014788920991122723,
-0.010372471064329147,
-0.0006293385522440076,
-0.022539274767041206,
0.017135819420218468,
-0.0032575835939496756,
-0.046075768768787384,
-0.006580522749572992,
0.016047252342104912,
0.031069014221429825,
0.004361656494438648,
0.007835387252271175,
0.04086930304765701,
0.02348954603075981,
-0.00046028822544030845,
-0.03783763572573662,
-0.011726915836334229,
-0.01721355691552162,
-0.03344641253352165,
-0.05639097839593887,
0.029393227770924568,
0.054962947964668274,
-0.033290766179561615,
-0.05668724700808525,
0.008994589559733868,
-0.030916452407836914,
-0.024386828765273094,
0.013300662860274315,
-0.028392869979143143,
-0.00032820322667248547,
-0.03273911029100418,
0.007323555648326874,
-0.024869676679372787,
0.024206504225730896,
0.008563648909330368,
-0.0051467944867908955,
-0.03624286502599716,
0.02547764591872692,
0.03632727265357971,
-0.020904237404465675,
0.015444722026586533,
-0.028874598443508148,
-0.05241219699382782,
0.011755463667213917,
0.05275412276387215,
0.003379185451194644,
-0.004866705276072025,
0.009955314919352531,
-0.053818780928850174,
0.0005401032394729555,
0.024622706696391106,
0.010789445601403713,
0.09689971059560776,
-0.022234708070755005,
0.0532667338848114,
0.005430643912404776,
0.07128994166851044,
-0.00029861892107874155,
0.005157193168997765,
-0.03224221244454384,
0.013711811043322086,
0.05008906126022339,
-0.003966717515140772,
0.012272965162992477,
0.029853586107492447,
0.007598400115966797,
0.01967618055641651,
-0.00403138343244791,
-0.04740607738494873,
-0.017870139330625534,
-0.03290829062461853,
-0.006313160061836243,
0.006285820156335831,
-0.0012820614501833916,
-0.044882986694574356,
0.04978911951184273,
0.041843313723802567,
-0.031976956874132156,
-0.030691230669617653,
0.013172461651265621,
0.02937048114836216,
-0.006439111195504665,
-0.014587532728910446,
0.028968093916773796,
-0.016401732340455055,
-0.0020227713976055384,
0.053261835128068924,
0.007466703653335571,
0.024016981944441795,
0.0074081518687307835,
-0.018265623599290848,
-0.018503554165363312,
-0.019758190959692,
-0.019668538123369217,
-0.0029885517433285713,
-0.013234089128673077,
-0.018715819343924522,
0.0014172802912071347,
0.01990773156285286,
-0.021444858983159065,
0.04271940514445305,
-0.03300580009818077,
0.005074480548501015,
-0.03403371199965477,
0.03447136655449867,
0.011487619951367378,
0.015575593337416649,
-0.03356083482503891,
-0.025414668023586273,
-0.018061771988868713,
0.013824420049786568,
-0.005737063940614462,
0.010262093506753445,
-0.04863040894269943,
-0.019629547372460365,
0.01762944646179676,
0.061576660722494125,
0.006204125005751848,
0.013674971647560596,
-0.04929370433092117,
-0.001170152798295021,
0.0419960618019104,
0.00850625429302454,
0.005085234995931387,
-0.005633450113236904,
0.01924263685941696,
0.02001902274787426,
-0.01883501559495926,
-0.008992987684905529,
-0.0634511336684227,
-0.0012033873936161399,
-0.004790349397808313,
-0.027371680364012718,
0.01709650829434395,
-0.037963755428791046,
0.008652281016111374,
0.014264079742133617,
0.015045876614749432,
-0.005614788271486759,
-0.03149570897221565,
-0.004733013454824686,
-0.02994171716272831,
-0.041321706026792526,
0.010302609764039516,
-0.015010806731879711,
-0.013075334951281548,
-0.0029373883735388517,
-0.0033558798022568226,
-0.028134506195783615,
-0.02949577011168003,
0.0031705431174486876,
0.025169437751173973,
-0.05141060799360275,
-0.05905076861381531,
0.005279066506773233,
0.02875003218650818,
0.001448179013095796,
0.0355910025537014,
0.03000016324222088,
0.009202083572745323,
0.002688049338757992,
-0.014339257963001728,
0.041879210621118546,
-0.02136237360537052,
0.01680159382522106,
-0.021688660606741905,
0.03402195870876312,
-0.018682928755879402,
0.013881980441510677,
0.02772006206214428,
0.034146327525377274,
-0.061906203627586365,
0.027233902364969254,
-0.043360207229852676,
-0.03371341899037361,
-0.025110846385359764,
-0.044797368347644806,
0.045906756073236465,
0.04898427426815033,
-0.01712569035589695,
-0.019488167017698288,
-0.04456622898578644,
-0.03682733699679375,
-0.037589170038700104,
0.011457807384431362,
0.03532395139336586,
-0.009257558733224869,
-0.00803114753216505,
-0.025423510000109673,
0.028080809861421585,
-0.0014598260167986155,
-0.0010274824453517795,
0.024532057344913483,
-0.0007598140509799123,
-0.004222375340759754,
-0.03253881260752678,
-0.0010089650750160217,
0.006622706539928913,
-0.016516942530870438,
0.06801676005125046,
0.013309912756085396,
0.01818370819091797,
0.0020369349513202906,
-0.030884278938174248,
-0.011315535753965378,
-0.059291090816259384,
0.024921098724007607,
0.007353346329182386,
0.017244918271899223,
0.017146563157439232,
0.03704029694199562,
-0.026137132197618484,
0.0481380894780159,
0.04456854984164238,
-0.03540470078587532,
-0.032354120165109634,
-0.02434244565665722,
-0.022278646007180214,
0.06030408665537834,
-0.02804093435406685,
-0.056594640016555786,
-0.02411922626197338,
-0.04297986999154091,
0.008569740690290928,
-0.01181375328451395,
-0.013671612367033958,
0.017215058207511902,
-0.0272203516215086,
0.025868063792586327,
-0.029710005968809128,
0.02907470427453518,
0.06958416104316711,
0.027128687128424644,
0.007378514390438795,
-0.01066844817250967
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Baseline: Eager frameworks latencies Frameworks operating in eager mode usually discover the actual graph while executing it. More precisely, the actual computation graph is not known beforehand and you gradually (eagerly) execute one operator which will become the input of the next one, etc. until you reach leaf nodes (outputs). These frameworks usually provide more flexibility in the algorithm you implement at the cost of increased runtime overhead and slightly potential more memory usage to keep track of all the required elements for the backward pass. Last but not least, it is usually harder through these frameworks to enable graph optimizations such as operator fusion. For instance, many deep learning libraries such as oneDNN have optimized kernels for Convolution + ReLU but you actually need to know before executing the graph that this pattern will occur within the sequence of operation, which is, by design, not something possible within eager frameworks. Figure 4. PyTorch latencies with respect to the number of cores involved Figure 5. Google's TensorFlow latencies with respect to the number of cores involved Figure 6. Google's TensorFlow with oneDNN enabled latencies with respect to the number of cores involved Figure 7. Intel TensorFlow latencies with respect to the number of cores involved The global trend highlights the positive impact of the number of cores on the observed latencies. In most of the cases, increasing the number of cores reduces the computation time across the different workload sizes. Still, putting more cores to the task doesn't result in monotonic latency reductions, there is always a trade-off between the workload’s size and the number of resources you allocate to execute the job. As you can see on the charts above, one very common pattern tends to arise from using all the cores available on systems with more than one CPU (more than one socket). The inter-socket communication introduces a significant latency overhead and results in very little improvement to increased latency overall. Also, this inter-socket communication overhead tends to be less and less perceptive as the workload becomes larger, meaning the usage of all computational resources benefits from using all the available cores. In this domain, it seems PyTorch (Figure 1.) and Intel TensorFlow (Figure 4.) seem to have slightly better parallelism support, as showed on the sequence length 384 and 512 for which using all the cores still reduces the observed latency. | [
0.046770453453063965,
0.01605207659304142,
0.0434776209294796,
0.028150467202067375,
-0.026628954336047173,
-0.005514633841812611,
0.05309761315584183,
0.07045251131057739,
-0.03076827898621559,
-0.06651481986045837,
-0.014753167517483234,
0.06737646460533142,
-0.0027028080075979233,
-0.013192856684327126,
0.0233578123152256,
-0.04631929099559784,
0.03573217988014221,
-0.10914188623428345,
0.025849774479866028,
-0.0027363647241145372,
0.037838246673345566,
-0.02165853977203369,
0.037961866706609726,
0.0547548271715641,
-0.04744401574134827,
-0.04553408920764923,
-0.06591768562793732,
-0.0313209630548954,
-0.007551941554993391,
-0.013227544724941254,
-0.09615016728639603,
0.03353796526789665,
0.0812636986374855,
-0.015986135229468346,
-0.04633884131908417,
-0.05727642402052879,
-0.08900119364261627,
0.04950571060180664,
0.07746656984090805,
-0.05424942821264267,
0.05926086753606796,
-0.028795026242733,
-0.0803365409374237,
0.003830552566796541,
0.00849070493131876,
0.00858620461076498,
-0.08175051957368851,
0.04331362247467041,
-0.005295996088534594,
0.00044318241998553276,
-0.13344168663024902,
0.023607853800058365,
0.007034815847873688,
0.09164248406887054,
0.02951640449464321,
0.013272950425744057,
0.006049507297575474,
0.01212194561958313,
-0.0013070306740701199,
-0.005110384430736303,
0.032622501254081726,
0.04427051544189453,
0.03625816851854324,
0.10003309696912766,
0.0324401892721653,
-0.022539079189300537,
0.02602050080895424,
0.007261936087161303,
-0.020048363134264946,
-0.030160492286086082,
0.06659840047359467,
0.008150039240717888,
-0.032128460705280304,
0.04784801974892616,
-0.009799259714782238,
0.010053759440779686,
-0.04651883244514465,
0.043473951518535614,
0.02934364415705204,
0.03323374688625336,
-0.07685568928718567,
0.0628596842288971,
0.0659780353307724,
0.04272209852933884,
0.05173921585083008,
0.05654558539390564,
0.01571732573211193,
0.009759398177266121,
-0.03171080723404884,
0.028175244107842445,
0.05128387361764908,
-0.13312393426895142,
0.09099314361810684,
0.012198655866086483,
0.012518218718469143,
-0.02395566925406456,
0.03926105424761772,
0.00958442222326994,
0.03562360629439354,
0.0034226831048727036,
-0.018943144008517265,
-0.0830526128411293,
0.008342690765857697,
-0.022612962871789932,
-0.019974004477262497,
0.008625224232673645,
-0.05171412602066994,
-0.05844235047698021,
-0.04813903197646141,
0.04551465064287186,
-0.055793922394514084,
0.11874967068433762,
-0.03832486644387245,
0.04817536845803261,
-0.06789005547761917,
-0.014510964043438435,
-0.07711750268936157,
-0.014890965074300766,
-0.06785893440246582,
-0.013382195495069027,
0.004439943935722113,
0.10212719440460205,
0.09070014208555222,
0.019062558189034462,
-0.014985703863203526,
0.07283437997102737,
0.021517133340239525,
-0.020084967836737633,
0.05004381015896797,
-0.05982077866792679,
0.05454954132437706,
0.02016461454331875,
0.019079500809311867,
0.0006723471451550722,
-0.05298592895269394,
-0.08485917747020721,
-0.02011640928685665,
-0.04384429752826691,
-0.02973252721130848,
-0.04320259764790535,
-0.06780368834733963,
-0.007182407192885876,
0.08006146550178528,
0.004959209356456995,
0.0318891704082489,
0.030399257317185402,
-0.04200642555952072,
-0.02006508782505989,
0.02293556183576584,
-0.02149983122944832,
-0.11301383376121521,
0.049539387226104736,
-0.10766790062189102,
0.0034816316328942776,
0.015886889770627022,
0.07148195058107376,
0.03314542397856712,
-0.04930797964334488,
0.003632425097748637,
-0.0038523185066878796,
-0.017041044309735298,
-0.03831903636455536,
0.015688179060816765,
-0.04785009101033211,
0.045821405947208405,
-0.028911203145980835,
0.07398246973752975,
-0.06026448309421539,
0.022720158100128174,
0.07760162651538849,
-0.04092470929026604,
-0.018702268600463867,
0.036747708916664124,
-0.04648920148611069,
-0.002547381678596139,
0.018956203013658524,
-0.04096256569027901,
0.08036497980356216,
0.03673115372657776,
-0.010552922263741493,
-0.044118694961071014,
-0.0026787160895764828,
-0.00016409555973950773,
0.00864788144826889,
-0.01291054580360651,
-0.07597558945417404,
-0.005492716562002897,
-0.0835592970252037,
0.007848691195249557,
0.043105971068143845,
-0.015068236738443375,
0.006087391637265682,
0.06301235407590866,
-0.05030011013150215,
0.041214458644390106,
-0.0750720277428627,
-0.04398211091756821,
0.11759060621261597,
0.03835493326187134,
-0.003881761571392417,
0.05486844480037689,
-0.01519372034817934,
0.03653019294142723,
0.024516234174370766,
-0.04244014248251915,
-0.04860241711139679,
0.022867398336529732,
-0.07823673635721207,
0.01257997564971447,
0.005419925786554813,
0.02032400108873844,
-0.11936294287443161,
-0.04461370036005974,
-0.02150258794426918,
-0.0018202865030616522,
-0.018014181405305862,
0.04353513941168785,
0.0588870644569397,
0.025922806933522224,
-0.017785359174013138,
0.10570238530635834,
-0.04104548320174217,
0.009490673430263996,
0.018308406695723534,
-0.07971568405628204,
0.0019951513968408108,
0.042048223316669464,
-0.020888658240437508,
0.029694814234972,
-0.00042014516657218337,
0.02208513393998146,
-0.05372330918908119,
-0.022676879540085793,
0.038644514977931976,
-0.004835650324821472,
0.003599941497668624,
-0.060942258685827255,
0.04595853015780449,
0.015629500150680542,
-0.05206046253442764,
0.011651968583464622,
0.028797250241041183,
0.011777934618294239,
0.03167661651968956,
0.024650927633047104,
-0.057197630405426025,
0.04698596149682999,
0.02070869505405426,
-0.04328317940235138,
0.008752727881073952,
-0.014997629448771477,
-0.029686516150832176,
-0.0354393795132637,
-0.047839000821113586,
0.024326583370566368,
0.017036447301506996,
0.03841263800859451,
-0.019066719338297844,
0.008580183610320091,
0.006350404117256403,
0.013070205226540565,
-0.00564451701939106,
-0.03532392531633377,
0.002066519344225526,
0.032009974122047424,
-0.04440847039222717,
0.002433957764878869,
-0.046073466539382935,
0.03811967000365257,
0.038423944264650345,
0.014137838035821915,
-0.05833384022116661,
0.02726873569190502,
-0.05026122182607651,
-0.0023206660989671946,
0.00009857802797341719,
0.039578791707754135,
-0.051440127193927765,
-0.04280209168791771,
-0.03335972875356674,
-0.044608451426029205,
-0.010897953063249588,
0.015628725290298462,
0.01803858019411564,
-0.02097972296178341,
-0.01170634850859642,
0.0008449899614788592,
0.016404058784246445,
-0.026578111574053764,
0.006306200288236141,
0.04049595445394516,
-0.006767197046428919,
0.00034932963899336755,
-0.0392053946852684,
0.019485419616103172,
-0.010580330155789852,
-0.062159378081560135,
-0.03902530297636986,
-0.012628105469048023,
0.0005132507067173719,
-0.03457105532288551,
0.005500792060047388,
0.003052063751965761,
-0.00036800565430894494,
-0.025113966315984726,
0.02498835325241089,
0.022730158641934395,
0.04989613592624664,
-0.09517718106508255,
-0.0008470980101265013,
0.012225260026752949,
0.022999312728643417,
-0.02295861765742302,
-0.04436898231506348,
0.007634295616298914,
0.008336201310157776,
0.05114978551864624,
0.015177255496382713,
-0.022900374606251717,
-0.020649656653404236,
-0.0315941646695137,
0.003996842075139284,
0.0012357535306364298,
0.027672816067934036,
0.03708704933524132,
0.03516826406121254,
-0.024942485615611076,
-0.019366241991519928,
0.0033342838287353516,
0.01428693812340498,
0.02183210849761963,
-0.01976679638028145,
-0.048387039452791214,
0.0036873696371912956,
-0.0009768079034984112,
0.0325184129178524,
0.007967405021190643,
-0.024448763579130173,
-0.03420903906226158,
-0.017026806250214577,
0.025562474504113197,
-0.021184975281357765,
-0.0019364918116480112,
-0.0004125040431972593,
0.019214671105146408,
-0.007710441015660763,
0.03653057664632797,
0.05379556119441986,
0.029948672279715538,
-0.0049550775438547134,
0.05448127165436745,
-0.03611753135919571,
0.009143315255641937,
0.010400432161986828,
0.0014759645564481616,
-0.014789348468184471,
0.03667943552136421,
-0.03804345056414604,
-0.03725331276655197,
0.0196650680154562,
-0.01319822110235691,
0.008762506768107414,
0.0025964335072785616,
-0.007166462484747171,
-0.03944588825106621,
0.00012558051093947142,
0.04774559289216995,
0.004102097824215889,
-0.0649346187710762,
0.01048015896230936,
0.056006014347076416,
0.029772071167826653,
0.00320670148357749,
0.032536447048187256,
0.0011356639442965388,
0.015587457455694675,
0.006793692242354155,
-0.012349646538496017,
-0.016770074144005775,
0.025019705295562744,
0.045254748314619064,
0.007801171857863665,
-0.006195202004164457,
0.004498657770454884,
-0.015251762233674526,
0.014203050173819065,
0.05505015701055527,
0.01204161997884512,
-0.045590877532958984,
-0.06226896122097969,
-0.03555278852581978,
-0.03242844343185425,
0.006843004375696182,
0.03926262632012367,
-0.005571683868765831,
-0.040704578161239624,
-0.016378914937376976,
0.028769196942448616,
-0.024026161059737206,
0.0075364201329648495,
0.027345731854438782,
-0.0017735172295942903,
-0.013729097321629524,
0.011314726434648037,
0.04558374732732773,
0.061418239027261734,
0.004905753768980503,
-0.011842264793813229,
0.02477896772325039,
-0.024590617045760155,
0.008822908625006676,
0.005894934292882681,
-0.005472349002957344,
0.0277191661298275,
0.0008936219965107739,
0.04115751013159752,
0.015187432989478111,
0.026929527521133423,
0.030731547623872757,
0.011192764155566692,
0.0271995160728693,
-0.03368178755044937,
0.047760285437107086,
0.016178805381059647,
0.0018332081381231546,
-0.010777362622320652,
-0.018910713493824005,
0.06409753113985062,
-0.004324677400290966,
0.039607346057891846,
0.041577599942684174,
0.03157332167029381,
0.02642255276441574,
-0.012484287843108177,
-0.02255324460566044,
-0.050065211951732635,
0.008691268973052502,
0.0001674741943133995,
-0.021875781938433647,
0.0174007136374712,
0.01866692490875721,
0.029985051602125168,
0.005400795955210924,
-0.008200259879231453,
0.002422409364953637,
-0.009996628388762474,
0.008763689547777176,
-0.05340497940778732,
0.011040130630135536,
0.07423880696296692,
-0.0011958362301811576,
-0.018939238041639328,
-0.007324570789933205,
0.022087469696998596,
-0.03432684764266014,
-0.015169988386332989,
-0.0367637537419796,
0.00832649040967226,
0.01586725376546383,
-0.045089803636074066,
-0.041960932314395905,
0.0588064007461071,
0.04614558443427086,
-0.00651342049241066,
0.01101551204919815,
0.0007484239176847041,
0.011530892923474312,
0.026731176301836967,
0.03937186300754547,
-0.027634473517537117,
-0.03420643508434296,
-0.005910561885684729,
0.025847449898719788,
-0.04416441172361374,
-0.031136810779571533,
-0.048422034829854965,
0.002498291665688157,
-0.028736552223563194,
0.0013169816229492426,
0.0006101379403844476,
-0.003765111556276679,
-0.010402895510196686,
0.058724544942379,
0.009995811618864536,
0.030100638046860695,
0.0035434779711067677,
0.033108361065387726,
0.006383263040333986,
-0.042661793529987335,
0.0015692895976826549,
0.04839346185326576,
0.004802492447197437,
0.006885714363306761,
-0.01061908807605505,
0.01351269893348217,
0.02287760004401207,
0.011135921813547611,
0.06415732204914093,
0.0385059155523777,
0.0030242158100008965,
0.061507437378168106,
-0.022526798769831657,
0.00775000499561429,
0.011896615847945213,
0.01023039035499096,
0.022504262626171112,
0.011707104742527008,
-0.04498957842588425,
0.05082407593727112,
0.01221136562526226,
0.010589378885924816,
-0.02021600864827633,
0.06314248591661453,
0.01897757686674595,
0.009993001818656921,
-0.03886934369802475,
0.011838670819997787,
-0.04089004546403885,
0.015265051275491714,
-0.00937625952064991,
-0.05622211843729019,
0.014815423637628555,
0.037741769105196,
-0.04039369523525238,
-0.04655394330620766,
0.0271260105073452,
0.03196875378489494,
0.0400666743516922,
0.0028004853520542383,
0.0334494411945343,
-0.04124525189399719,
-0.02852918580174446,
-0.002177645219489932,
-0.03639627620577812,
-0.010094849392771721,
-0.005236827302724123,
0.010023729875683784,
0.012975974939763546,
0.01785535179078579,
0.010349319316446781,
-0.0378771647810936,
0.026830388233065605,
0.011408377438783646,
0.030980588868260384,
0.01789715327322483,
0.0037838646676391363,
0.04141039401292801,
-0.04402654618024826,
-0.018327906727790833,
-0.027299847453832626,
-0.043930184096097946,
0.014789153821766376,
-0.04031747579574585,
0.04212377965450287,
0.0690159946680069,
-0.03558327257633209,
-0.007427419535815716,
0.01205781102180481,
0.008599979802966118,
0.008969836868345737,
0.017639875411987305,
0.01447515469044447,
0.0354345366358757,
-0.04360058903694153,
-0.01701611839234829,
-0.003201191546395421,
0.004643911961466074,
0.0369618758559227,
-0.015674449503421783,
-0.06443659216165543,
0.053271856158971786,
0.02853543683886528,
-0.043325915932655334,
0.022202646359801292,
0.007887025363743305,
-0.04996233433485031,
-0.0040916078723967075,
-0.023021897301077843,
0.015319909900426865,
-0.005566289182752371,
-0.0055206841789186,
0.013806147500872612,
-0.003353728214278817,
-0.0056043947115540504,
-0.01418173685669899,
0.078261598944664,
0.030533069744706154,
0.04349883645772934,
0.017210131511092186,
0.06544315814971924,
0.06740999966859818,
-0.04004164785146713,
0.017152490094304085,
-0.03244617208838463,
0.02790435403585434,
-0.010779660195112228,
-0.006786637008190155,
0.010888529010117054,
-0.05800561606884003,
0.013685528188943863,
-0.028848938643932343,
-0.02418900467455387,
-0.00650560250505805,
0.012045278213918209,
0.015244364738464355,
-0.0023050953168421984,
-0.006216377019882202,
-0.03041817434132099,
0.024993330240249634,
0.04142477735877037,
0.029382364824414253,
0.03551662340760231,
0.0005062529817223549,
0.024570994079113007,
-0.01335607934743166,
-0.016754619777202606,
-0.025397153571248055,
0.005030624568462372,
0.005064489785581827,
0.0374608151614666,
0.02200804464519024,
0.04551751911640167,
-0.02102510817348957,
0.005203283857554197,
-0.026792697608470917,
0.007999910973012447,
-0.03474229574203491,
0.037187714129686356,
-0.0033526995684951544,
0.016594352200627327,
0.0342981219291687,
-0.022599833086133003,
-0.03701313957571983,
0.03683174028992653,
-0.0024574550334364176,
-0.050489578396081924,
-0.011275957338511944,
0.026836883276700974,
-0.008851735852658749,
0.02924204431474209,
-0.014835680834949017,
-0.00022560692741535604,
0.006558473687618971,
-0.013457339257001877,
-0.0032645093742758036,
-0.003031408879905939,
-0.02024899609386921,
-0.01817386783659458,
0.009765109047293663,
0.05208585411310196,
0.026832379400730133,
-0.012274513952434063,
-0.04207258298993111,
0.00762653723359108,
0.05840318277478218,
-0.01522313803434372,
0.011018280871212482,
-0.024200793355703354,
-0.02105928212404251,
0.015991903841495514,
-0.033954497426748276,
0.039937395602464676,
0.00275018229149282,
-0.031873468309640884,
0.05364111438393593,
0.0028496196027845144,
-0.009772904217243195,
-0.05784498527646065,
0.03910549357533455,
0.026716480031609535,
0.008716699667274952,
-0.042399995028972626,
-0.04187007620930672,
-0.03215981274843216,
0.001231831731274724,
-0.015364530496299267,
0.017888754606246948,
0.020222384482622147,
-0.04067011550068855,
-0.01652715913951397,
-0.016335340216755867,
-0.0191964041441679,
-0.04630332067608833,
0.018080594018101692,
0.027085263282060623,
-0.008494519628584385,
-0.021524948999285698,
-0.019613124430179596,
0.030817978084087372,
-0.0025948290713131428,
0.045769836753606796,
0.037613727152347565,
0.006583380978554487,
0.015401485376060009,
-0.07417387515306473,
-0.002262894297018647,
-0.00396342109888792,
0.013663308694958687,
-0.0044255624525249004,
-0.0012774043716490269,
-0.04347536340355873,
-0.002689952729269862,
-0.03554489091038704,
-0.004845401272177696,
-0.04815803840756416,
0.051741331815719604,
-0.01949678733944893,
0.0005673820269294083,
-0.03387966379523277,
-0.03610514849424362,
0.04714707285165787,
0.006053309887647629,
0.014373083598911762,
-0.003072878113016486,
-0.0007776651182211936,
-0.01891559734940529,
-0.011093204841017723,
0.032155536115169525,
0.011931022629141808,
-0.030908286571502686,
0.0027392469346523285,
0.045966047793626785,
-0.027693098410964012,
0.03230011463165283,
-0.01890038512647152,
0.007961608469486237,
0.035714201629161835,
0.005083814263343811,
-0.026204457506537437,
-0.000035218217817600816,
0.0018594273133203387,
-0.005692499224096537,
0.022521020844578743,
0.0013753743842244148,
-0.04502656310796738,
0.002072183880954981,
-0.01536469254642725,
0.007385498844087124,
-0.046798720955848694,
0.01160325575619936,
0.0007376279099844396,
0.05889135226607323,
-0.005991638638079166,
0.027214568108320236,
0.008609638549387455,
0.03580619767308235,
0.036871690303087234,
-0.011511201038956642,
-0.019463784992694855,
-0.04142608121037483,
-0.03032352775335312,
0.028868388384580612,
-0.04655909165740013,
-0.03332788497209549,
0.013311698101460934,
0.0021607927046716213,
-0.005743374116718769,
0.0034232025500386953,
0.01865558885037899,
0.00883591827005148,
0.023647572845220566,
0.023405708372592926,
-0.008699762634932995,
0.05273259058594704,
0.038150910288095474,
0.0012802634155377746,
-0.009330629371106625,
-0.01804402284324169
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Conclusion - Accelerating Transformers for Production In this post, we showed how the new Intel Ice Lake Xeon CPUs are suitable for running AI workloads at scale along with the software elements you can swap and tune in order to exploit the full potential of the hardware. All these items are to be considered after setting-up the various lower-level knobs detailed in the previous blog to maximize the usage of all the cores and resources. At Hugging Face, we are on a mission to democratize state-of-the-art Machine Learning, and a critical part of our work is to make these state-of-the-art models as efficient as possible, to use less energy and memory at scale, and to be more affordable to run by companies of all sizes. Our collaboration with Intel through the 🤗 Hardware Partner Program enables us to make advanced efficiency and optimization techniques easily available to the community, through our new 🤗 Optimum open source library dedicated to production performance. For companies looking to accelerate their Transformer models inference, our new 🤗 Infinity product offers a plug-and-play containerized solution, achieving down to 1ms latency on GPU and 2ms on Intel Xeon Ice Lake CPUs. If you found this post interesting or useful to your work, please consider giving Optimum a star. And if this post was music to your ears, consider joining our Machine Learning Optimization team! | [
0.033209700137376785,
-0.011513740755617619,
-0.006562959868460894,
0.006464242935180664,
-0.05363049730658531,
0.02231905795633793,
0.04342671483755112,
0.053740885108709335,
-0.01811208575963974,
-0.04173294082283974,
-0.018962787464261055,
0.07953069359064102,
-0.0155481593683362,
0.017869187518954277,
0.018109725788235664,
-0.02989943139255047,
0.019683849066495895,
0.022523118183016777,
-0.00821236614137888,
0.07938174903392792,
0.08538495004177094,
-0.09657913446426392,
0.10229402035474777,
0.06457050889730453,
-0.056767456233501434,
-0.05594930425286293,
-0.06439902633428574,
-0.02955787256360054,
0.019248826429247856,
0.018422294408082962,
-0.1010003611445427,
-0.008703958243131638,
-0.001089015626348555,
-0.05970548465847969,
-0.014657614752650261,
0.025505302473902702,
-0.15200179815292358,
-0.0019366518827155232,
0.022214528173208237,
-0.009560972452163696,
0.03903455287218094,
0.060119736939668655,
-0.08943740278482437,
0.026150517165660858,
0.01265517994761467,
-0.028334587812423706,
-0.11421016603708267,
0.05408095568418503,
-0.03189351037144661,
-0.028603961691260338,
-0.021724870428442955,
0.0692763477563858,
-0.021664051339030266,
0.006539931055158377,
0.03382832929491997,
0.03640434890985489,
0.03723669797182083,
-0.050422586500644684,
-0.029471304267644882,
0.021463844925165176,
0.05525284260511398,
-0.010572822764515877,
-0.01127411238849163,
-0.06452617794275284,
0.01960567943751812,
-0.02022608555853367,
-0.038987819105386734,
-0.05167590081691742,
-0.037528567016124725,
-0.02622327022254467,
0.007172425277531147,
0.04756739363074303,
0.002089571673423052,
-0.02925795316696167,
-0.005525077693164349,
-0.028479300439357758,
0.017904946580529213,
0.03527962416410446,
0.0878847986459732,
0.040685124695301056,
-0.022136159241199493,
0.00890085194259882,
0.06308411061763763,
0.060588471591472626,
0.015810828655958176,
0.007352293934673071,
0.0278391744941473,
0.004794382490217686,
-0.06203634291887283,
0.024291466921567917,
0.01535831019282341,
-0.09389424324035645,
-0.0018583155469968915,
0.015602770261466503,
0.012954950332641602,
-0.006456488743424416,
0.02566169761121273,
0.0023756299633532763,
0.003936466295272112,
0.007713345345109701,
0.030843006446957588,
-0.0073213097639381886,
0.00022151917801238596,
-0.01084141992032528,
-0.029916636645793915,
-0.04990263283252716,
-0.0018691382138058543,
-0.0938735380768776,
-0.019839240238070488,
0.013064580038189888,
-0.027208035811781883,
0.005748666822910309,
-0.02605755254626274,
0.05849849060177803,
-0.11019457131624222,
0.018143201246857643,
-0.03773239254951477,
-0.03338940441608429,
0.0035006070975214243,
0.04882674291729927,
0.056733887642621994,
0.08361604809761047,
-0.0184310395270586,
0.0017994728405028582,
-0.010394847020506859,
0.04699867218732834,
-0.02668360248208046,
0.016680149361491203,
0.03452213481068611,
-0.049352552741765976,
0.020854482427239418,
-0.06865662336349487,
0.03751539811491966,
-0.012321874499320984,
0.030071362853050232,
-0.08978146314620972,
-0.005288170650601387,
-0.0424552746117115,
-0.05316305533051491,
0.027050521224737167,
-0.030355848371982574,
0.015831364318728447,
0.05990985780954361,
-0.043123792856931686,
0.05923737213015556,
-0.044559914618730545,
-0.1018194928765297,
0.051248449832201004,
0.009701590053737164,
0.03872814401984215,
-0.10051514953374863,
0.039117537438869476,
-0.10850532352924347,
-0.05418034642934799,
0.02370995283126831,
0.027703169733285904,
-0.0014552486827597022,
-0.07242543995380402,
-0.0910075381398201,
-0.10303104668855667,
-0.07189404219388962,
0.009336668998003006,
-0.06582561135292053,
-0.022356193512678146,
0.02976219356060028,
0.0003669830912258476,
0.017914699390530586,
0.02386021986603737,
0.0020617402624338865,
0.01566493697464466,
0.002430818509310484,
0.018053945153951645,
0.07091937214136124,
0.0033471055794507265,
-0.0017697076546028256,
0.016275998204946518,
-0.018956342712044716,
0.10593844205141068,
0.003135305130854249,
-0.01617029868066311,
-0.07588594406843185,
0.05314251780509949,
-0.005352313630282879,
0.10339315235614777,
0.05873378738760948,
-0.057021040469408035,
0.010343053378164768,
-0.01944757252931595,
-0.032391443848609924,
-0.030851246789097786,
-0.023862462490797043,
0.022597258910536766,
0.048770781606435776,
-0.023252304643392563,
-0.022024299949407578,
0.0195987019687891,
-0.07365883886814117,
0.0639912337064743,
0.04535660892724991,
0.08010031282901764,
0.040875744074583054,
-0.050972431898117065,
0.03456621989607811,
-0.013856890611350536,
-0.08197856694459915,
-0.02699253521859646,
-0.021802222356200218,
-0.06389235705137253,
-0.004658851772546768,
0.03206455335021019,
-0.057775650173425674,
-0.16270211338996887,
0.006100865546613932,
-0.036714617162942886,
-0.009331337176263332,
-0.06992541998624802,
-0.04360135272145271,
0.006111158523708582,
-0.00971064530313015,
-0.03587915375828743,
0.07545478641986847,
-0.02222949080169201,
0.017467353492975235,
-0.02806749939918518,
0.02836954966187477,
-0.012570645660161972,
0.08712360262870789,
0.007546682376414537,
0.04546864330768585,
-0.009791680611670017,
-0.0479014590382576,
-0.04700930044054985,
-0.07576817274093628,
-0.0046169511042535305,
0.05930324271321297,
-0.022102465853095055,
0.025580285117030144,
0.08041796833276749,
0.040970124304294586,
-0.017362739890813828,
-0.0488358736038208,
-0.013915574178099632,
-0.014284246601164341,
0.05569153279066086,
0.04991048574447632,
0.030343078076839447,
0.05771688371896744,
-0.020225893706083298,
0.016666295006871223,
-0.05243482068181038,
-0.07059475034475327,
0.008414401672780514,
-0.006278961431235075,
-0.04264125972986221,
-0.005174508783966303,
0.00011853776959469542,
0.006602389272302389,
0.011726387776434422,
-0.05170784890651703,
0.07542542368173599,
0.0523686446249485,
-0.04373474046587944,
-0.01034048292785883,
-0.004720156546682119,
0.02706722542643547,
-0.031507011502981186,
-0.01668635383248329,
-0.005235747434198856,
0.017491769045591354,
-0.04183012247085571,
-0.03598637133836746,
-0.019734546542167664,
0.028026847168803215,
-0.0016442915657535195,
0.004967747256159782,
0.025127902626991272,
0.03664420545101166,
0.008604624308645725,
-0.02328038588166237,
-0.01637614518404007,
0.0379050113260746,
-0.005293936002999544,
0.015909716486930847,
0.027820857241749763,
-0.011167862452566624,
-0.0029350039549171925,
-0.004066744819283485,
-0.038615282624959946,
-0.04537856951355934,
-0.030780499801039696,
0.03599420189857483,
0.00034607385168783367,
-0.024117140099406242,
-0.049455028027296066,
-0.002342860447242856,
0.023557931184768677,
0.015838831663131714,
-0.0407995879650116,
-0.022649459540843964,
0.0006565823568962514,
-0.04478859528899193,
-0.014521325938403606,
-0.01542938407510519,
0.039848726242780685,
-0.001685519702732563,
0.0034965400118380785,
0.0035659566055983305,
0.024028629064559937,
-0.07985279709100723,
-0.027195308357477188,
-0.059874050319194794,
0.023572446778416634,
-0.006884746253490448,
-0.033800870180130005,
0.03278430178761482,
0.03300869092345238,
0.020601453259587288,
0.036538511514663696,
-0.0031063866335898638,
0.019002195447683334,
-0.01383362989872694,
0.015554112382233143,
-0.010131456889212132,
-0.013872441835701466,
0.05030403286218643,
-0.013913847506046295,
-0.001108334632590413,
-0.013412990607321262,
-0.00026037966017611325,
-0.0055731297470629215,
0.023448120802640915,
-0.017701666802167892,
0.04507329687476158,
0.020910218358039856,
0.06218111887574196,
-0.017968690022826195,
0.014943661168217659,
0.0067068967036902905,
-0.05269154906272888,
-0.023540692403912544,
0.02454356849193573,
0.016190441325306892,
0.018771348521113396,
0.008688573725521564,
-0.001264800550416112,
0.013079623691737652,
0.044244371354579926,
0.04881499707698822,
0.007282843813300133,
-0.0030195333529263735,
0.04729833826422691,
-0.01690947823226452,
0.05398116633296013,
0.004656600765883923,
0.003267342923209071,
-0.04051290825009346,
0.008924711495637894,
-0.025873303413391113,
-0.010753306560218334,
0.0216187946498394,
0.018284831196069717,
0.031486157327890396,
0.006419304758310318,
0.019340887665748596,
-0.01870126836001873,
-0.002310847630724311,
0.0384402833878994,
0.02752690576016903,
-0.04827136918902397,
0.030715443193912506,
-0.02704618312418461,
0.019494738429784775,
-0.04429640993475914,
0.0548488087952137,
0.03684931620955467,
-0.03271475434303284,
0.0024759655352681875,
0.012623068876564503,
0.005595144350081682,
0.037108082324266434,
-0.017373064532876015,
0.0020065701100975275,
0.012192480266094208,
0.03418142721056938,
-0.03422223776578903,
0.01561220083385706,
0.02411263808608055,
0.049332257360219955,
-0.05363060161471367,
-0.010078917257487774,
-0.019105814397335052,
0.013805588707327843,
0.007227007299661636,
0.01003270223736763,
0.004796646535396576,
-0.001684093615040183,
0.02549937181174755,
0.01799093559384346,
0.005136252846568823,
-0.026441892609000206,
0.02726655825972557,
-0.06466937810182571,
0.016635073348879814,
-0.00929664820432663,
0.029010135680437088,
0.008017119951546192,
0.01425300445407629,
-0.017528273165225983,
-0.01380706112831831,
-0.03583157807588577,
0.0570186972618103,
0.006703322287648916,
-0.030960936099290848,
0.004133322276175022,
0.028226438909769058,
-0.012622085399925709,
0.036930106580257416,
0.0006335005746223032,
0.054904285818338394,
-0.038464080542325974,
-0.0027804041747003794,
-0.003702819813042879,
0.054861605167388916,
0.011345013976097107,
-0.007201986387372017,
0.006357248872518539,
0.018034443259239197,
-0.007158799096941948,
-0.013931520283222198,
0.039768196642398834,
-0.018411435186862946,
-0.028226297348737717,
0.03374279662966728,
0.019329454749822617,
-0.017977161332964897,
0.04190921410918236,
-0.011901947669684887,
-0.015393969602882862,
-0.03140921890735626,
0.016185477375984192,
0.03706588223576546,
0.02944219671189785,
-0.0008607080671936274,
0.004525687545537949,
-0.002824564231559634,
-0.03962007164955139,
-0.0455230176448822,
0.013859842903912067,
-0.020209219306707382,
0.03603721037507057,
0.056181229650974274,
-0.03580068424344063,
0.00759142218157649,
0.024410640820860863,
-0.004419191274791956,
-0.023507975041866302,
0.02276790142059326,
0.008405497297644615,
0.01627557910978794,
0.009703854098916054,
-0.004614308942109346,
0.057367220520973206,
0.07640974968671799,
0.012204255908727646,
0.004398911725729704,
-0.005725831259042025,
0.042313653975725174,
0.028231456875801086,
0.004400733858346939,
0.041172318160533905,
-0.042211584746837616,
-0.019401418045163155,
0.049433935433626175,
-0.012468326836824417,
-0.0042386180721223354,
-0.024069806560873985,
-0.021218683570623398,
0.012676511891186237,
-0.005204726941883564,
0.043294575065374374,
-0.008616575039923191,
-0.02184252068400383,
0.0211153794080019,
0.03915907442569733,
0.04783583804965019,
-0.021215204149484634,
0.033717624843120575,
0.016877124086022377,
0.0019180638482794166,
-0.02022390626370907,
-0.004524362739175558,
-0.0037731986958533525,
0.002121193800121546,
0.021067170426249504,
0.0697590783238411,
0.06188923493027687,
-0.019799627363681793,
-0.05102023854851723,
0.01566551998257637,
-0.03194979205727577,
0.008733953349292278,
-0.021965915337204933,
0.025279752910137177,
-0.032992489635944366,
0.0201728418469429,
0.025706419721245766,
-0.015962140634655952,
0.0010363812325522304,
0.03404989838600159,
0.04084084555506706,
-0.014391413889825344,
-0.03232226520776749,
0.030902596190571785,
0.010338972322642803,
0.02289111539721489,
-0.005309665575623512,
0.006711455527693033,
-0.0241562407463789,
0.028722451999783516,
0.022211194038391113,
-0.015237824991345406,
-0.011570841073989868,
0.0009808731265366077,
-0.030128687620162964,
-0.01490754820406437,
0.031162284314632416,
0.06177390739321709,
0.05244750902056694,
-0.02657102607190609,
-0.030887562781572342,
0.0026668908540159464,
-0.021770155057311058,
-0.008323651738464832,
-0.04676005244255066,
0.003898897208273411,
0.01385391317307949,
-0.005077721551060677,
-0.0016342905582860112,
0.01358920056372881,
-0.0008813266176730394,
0.0245406124740839,
0.035451773554086685,
0.04672526195645332,
-0.016938090324401855,
-0.00410204054787755,
0.034156523644924164,
0.03431703895330429,
-0.017043061554431915,
-0.00005738417530665174,
-0.024555014446377754,
-0.01672772690653801,
0.0037527475506067276,
-0.07107876986265182,
0.05224458873271942,
0.04275462403893471,
-0.0004129674343857914,
-0.03679641708731651,
0.0026161433197557926,
0.019333666190505028,
-0.0064368173480033875,
0.019827397540211678,
0.0054097967222332954,
-0.017986753955483437,
-0.03395944833755493,
0.019610192626714706,
-0.019480841234326363,
0.030924510210752487,
0.04157709702849388,
-0.008105459623038769,
-0.047482941299676895,
0.032052136957645416,
0.007246359717100859,
-0.009699966758489609,
0.041742365807294846,
-0.041643984615802765,
-0.017974771559238434,
0.03793662413954735,
0.03427238389849663,
-0.011894061230123043,
0.02860558032989502,
0.025141704827547073,
-0.04344033822417259,
-0.014335829764604568,
-0.011034270748496056,
0.03912149742245674,
0.0890941172838211,
-0.0006951515097171068,
-0.016547679901123047,
0.022859495133161545,
0.014661412686109543,
0.056806694716215134,
-0.02312636747956276,
0.01640571467578411,
0.006097286473959684,
0.04804389178752899,
-0.03168967366218567,
0.035129889845848083,
0.05218949168920517,
-0.011786160990595818,
-0.045738186687231064,
0.013543948531150818,
-0.023558029904961586,
-0.019206775352358818,
0.014262944459915161,
0.023717129603028297,
-0.0415082722902298,
0.0009458221029490232,
-0.03616443648934364,
0.03518855571746826,
0.03780050203204155,
-0.010126535780727863,
-0.036392319947481155,
0.03194105997681618,
0.021746603772044182,
-0.013426056131720543,
0.017263542860746384,
-0.03868195787072182,
0.0077560050413012505,
0.01015299279242754,
0.06951022148132324,
0.0014516912633553147,
0.054044634103775024,
0.009924903512001038,
0.018326234072446823,
-0.002125578699633479,
-0.04399491846561432,
0.010826694779098034,
0.04552336782217026,
0.004336677026003599,
-0.00629435433074832,
-0.020709624513983727,
0.03557781130075455,
-0.007887003943324089,
0.05193623900413513,
-0.01914641447365284,
0.0033156927675008774,
-0.04092659428715706,
0.026485949754714966,
-0.0053361086174845695,
0.02799213118851185,
0.0053499117493629456,
-0.004723925609141588,
0.006796165369451046,
-0.007726077456027269,
-0.010603022761642933,
-0.006541217677295208,
-0.03566195070743561,
0.00444088876247406,
-0.0035270380321890116,
0.027179591357707977,
0.018000073730945587,
0.027277547866106033,
0.007837501354515553,
-0.017651282250881195,
0.058350421488285065,
0.04162832722067833,
0.0028167366981506348,
0.018314184620976448,
0.013563040643930435,
0.020418554544448853,
-0.04471105337142944,
0.004382601007819176,
-0.0163731686770916,
-0.0186739694327116,
0.010028276592493057,
-0.041745688766241074,
0.03351553902029991,
-0.00381958344951272,
0.016635749489068985,
0.005363177973777056,
0.04817003384232521,
-0.03696776181459427,
-0.04547541216015816,
-0.017123760655522346,
-0.034392453730106354,
0.008535671979188919,
0.04741772636771202,
-0.020238671451807022,
-0.02940143272280693,
-0.007957380264997482,
0.017452046275138855,
0.004971206188201904,
-0.01234121061861515,
0.02296360395848751,
0.0436752550303936,
-0.03115571103990078,
-0.024356847628951073,
0.003022985765710473,
0.025886062532663345,
0.03796682879328728,
0.021187201142311096,
0.02731046825647354,
0.01960679143667221,
0.010351264849305153,
-0.014902452006936073,
0.026718122884631157,
-0.007002286147326231,
0.0013416310539469123,
-0.02284397929906845,
-0.011155066080391407,
0.006203233730047941,
-0.02409394644200802,
0.01579209789633751,
0.024680450558662415,
-0.04884207621216774,
-0.02006012387573719,
-0.05030887573957443,
-0.00636315206065774,
-0.0017085240688174963,
0.0009479866130277514,
0.0425863154232502,
0.04527554288506508,
0.010119481943547726,
0.0006391554488800466,
-0.04969791695475578,
-0.02846435084939003,
-0.022949233651161194,
0.04259029030799866,
0.04852927476167679,
-0.014002346433699131,
-0.023027807474136353,
-0.05688099563121796,
-0.026857536286115646,
0.018941093236207962,
-0.05121789872646332,
0.02504716068506241,
0.00207822909578681,
-0.015109698288142681,
-0.02334250696003437,
-0.006958409212529659,
0.022074734792113304,
-0.007879183627665043,
0.05092868581414223,
-0.05052810162305832,
-0.011004053056240082,
-0.007597242947667837,
0.03164554759860039,
-0.020568454638123512,
-0.023496313020586967,
-0.007192002143710852,
0.03951583057641983,
0.034725502133369446,
0.014023222960531712,
-0.01566118374466896,
-0.0030761733651161194,
0.0017448172438889742,
0.07192914932966232,
-0.00790045503526926,
-0.013553348369896412,
-0.011569769121706486,
-0.01779857836663723,
0.05861878767609596,
-0.02107659913599491,
-0.06085142120718956,
0.015226506628096104,
-0.018876098096370697,
0.023277485743165016,
-0.003937045112252235,
-0.05979279428720474,
-0.008763737045228481,
-0.011226924136281013,
0.003987818956375122,
-0.014558487571775913,
0.010292842984199524,
0.08138196170330048,
-0.023251503705978394,
-0.05285679176449776,
-0.07330778241157532
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Performance tuning knobs As highlighted above, we are going to cover a new set of tunable items to improve the performance of our AI application. From a high-level point of view, every machine learning and deep learning framework is made of the same ingredients: 1. A structural way of representing data in memory (vector, matrices, etc.) 2. Implementation of mathematical operators 3. Efficient parallelization of the computations on the target hardware In addition to the points listed above, deep learning frameworks provide ways to represent data flow and dependencies to compute gradients. This falls out of the scope of this blog post, and it leverages the same components as the ones listed above! Figure 1. Intel libraries overview under the oneAPI umbrella | [
0.08122925460338593,
-0.015492678619921207,
0.014997323043644428,
0.01882805861532688,
0.015764309093356133,
0.017318103462457657,
-0.04642421007156372,
0.05218588560819626,
-0.03412914276123047,
-0.0756504237651825,
-0.00839987862855196,
0.08921849727630615,
0.04073694348335266,
0.03537372872233391,
0.024284077808260918,
0.006496293470263481,
0.06034490838646889,
-0.0315634049475193,
-0.002560510067269206,
0.06155885010957718,
0.049968961626291275,
-0.06280872970819473,
0.10719145089387894,
0.05360234156250954,
-0.016162263229489326,
0.0031489357352256775,
-0.015395745635032654,
-0.04918371140956879,
-0.03731372207403183,
0.043751295655965805,
-0.12023194134235382,
0.0004545646079350263,
-0.0377950593829155,
-0.03404978662729263,
-0.05368413031101227,
-0.027179274708032608,
-0.03018832579255104,
0.028454182669520378,
0.02535863220691681,
-0.02413281984627247,
-0.07167287170886993,
0.01366572268307209,
-0.0686667412519455,
0.06023703143000603,
0.0014305664226412773,
-0.020375438034534454,
-0.11312642693519592,
0.04323481395840645,
0.018945788964629173,
-0.03175448626279831,
-0.09119890630245209,
0.01873636431992054,
0.006303745321929455,
-0.011656736955046654,
0.06070682033896446,
0.015533282421529293,
0.028394239023327827,
-0.031138336285948753,
-0.04505457729101181,
0.029661213979125023,
0.06351251155138016,
0.01876390166580677,
0.008776419796049595,
-0.07098992168903351,
0.04849230498075485,
-0.025892630219459534,
-0.02495906688272953,
-0.018991786986589432,
0.005751761142164469,
-0.010444258339703083,
0.0019360679434612393,
-0.0057216486893594265,
0.03551940247416496,
-0.017493892461061478,
-0.03745220974087715,
-0.07207659631967545,
-0.03503791242837906,
0.03091217577457428,
0.03198264539241791,
0.0026120224501937628,
-0.030312448740005493,
0.043824296444654465,
0.05992498621344566,
0.07436921447515488,
0.019689267501235008,
0.04728691279888153,
0.05676037073135376,
-0.0004312333185225725,
0.027210712432861328,
0.03729749843478203,
0.005942366551607847,
-0.14034403860569,
0.060268860310316086,
0.04775317385792732,
0.030563203617930412,
-0.04657707363367081,
0.059830039739608765,
-0.052689965814352036,
-0.012438254430890083,
0.01513244491070509,
-0.015785647556185722,
-0.07385300099849701,
0.027062514796853065,
-0.04602641239762306,
-0.07118905335664749,
0.05742805823683739,
-0.01902819238603115,
-0.09684423357248306,
-0.04216458648443222,
0.08415979892015457,
-0.08067332208156586,
0.052557528018951416,
0.02375751920044422,
0.09261495620012283,
-0.08277834951877594,
0.010181876830756664,
-0.04243647679686546,
-0.004509164486080408,
-0.04243806377053261,
0.03559523820877075,
0.013786135241389275,
0.1182173639535904,
0.04280288890004158,
0.01101892814040184,
0.05033459514379501,
0.06923828274011612,
0.03448698669672012,
0.02266499400138855,
0.046532899141311646,
-0.07064749300479889,
0.005010085180401802,
0.01201973669230938,
0.039892230182886124,
0.014763827435672283,
0.013718955218791962,
-0.09460818767547607,
-0.028811555355787277,
-0.020427390933036804,
-0.01296246238052845,
0.01029070746153593,
-0.022984107956290245,
-0.028091033920645714,
0.018660221248865128,
-0.040382109582424164,
0.04175553470849991,
0.01607765443623066,
0.023949507623910904,
0.048565663397312164,
0.020069273188710213,
-0.04250412434339523,
-0.012667856179177761,
0.07336623221635818,
-0.04066130518913269,
-0.034003373235464096,
-0.014976276084780693,
0.0568699911236763,
-0.01815531775355339,
-0.04121698439121246,
-0.045392826199531555,
6.458718644353212e-7,
-0.06051235646009445,
0.023888153955340385,
-0.048338163644075394,
0.021831732243299484,
0.016782689839601517,
-0.012040691450238228,
0.07383061200380325,
0.06063631922006607,
-0.017399732023477554,
0.02971210889518261,
-0.03524167835712433,
-0.01576581597328186,
0.0361551009118557,
-0.01510592270642519,
0.0021067727357149124,
-0.01956116408109665,
-0.04175057262182236,
0.03211659938097,
0.07183016091585159,
-0.003715218510478735,
-0.07410954684019089,
0.03381656855344772,
0.0023209124337881804,
0.025198794901371002,
0.04288724064826965,
-0.0178796648979187,
-0.012715213932096958,
-0.02586820162832737,
0.015082404948771,
-0.011964119970798492,
-0.08118556439876556,
0.010739685036242008,
0.03449598327279091,
-0.017340054735541344,
0.0322001576423645,
-0.08823149651288986,
-0.055476296693086624,
0.1272468864917755,
0.05640871450304985,
0.051467638462781906,
0.06719792634248734,
-0.005739329848438501,
0.028348293155431747,
-0.03770086169242859,
0.004339970648288727,
-0.028079167008399963,
0.04295753687620163,
-0.0431225448846817,
-0.0015901041915640235,
-0.030140934512019157,
0.002260749926790595,
-0.16053545475006104,
-0.021514369174838066,
-0.0395178385078907,
0.030643297359347343,
-0.02558227628469467,
-0.016773398965597153,
0.04004347324371338,
-0.03175138682126999,
-0.034928034991025925,
0.144452303647995,
-0.06011506915092468,
-0.03613359108567238,
0.08184026181697845,
-0.02953607775270939,
0.038193654268980026,
0.07921180874109268,
-0.03545781224966049,
0.10549159348011017,
-0.05341075360774994,
-0.041008710861206055,
-0.1113300770521164,
-0.058318864554166794,
0.0395592525601387,
-0.005104313604533672,
0.00035184365697205067,
0.011602956801652908,
0.0313083715736866,
0.04887976869940758,
-0.060658130794763565,
0.02360956184566021,
0.0010075514437630773,
-0.03141636401414871,
0.045626506209373474,
0.024780772626399994,
-0.06115290895104408,
0.09804203361272812,
-0.010047251358628273,
-0.0007243105210363865,
0.0028837656136602163,
-0.052834924310445786,
-0.031739186495542526,
0.010554738342761993,
-0.033158380538225174,
0.004735977854579687,
0.03960324078798294,
-0.002025101101025939,
-0.0360495001077652,
-0.001718376879580319,
0.06752578169107437,
0.04881332442164421,
0.03051059879362583,
-0.024594204500317574,
-0.00701011111959815,
0.013635740615427494,
-0.03547731786966324,
0.010762354359030724,
-0.01526497583836317,
0.011612111702561378,
0.0008417606586590409,
0.005266137886792421,
-0.024877289310097694,
0.011328752152621746,
-0.009558204561471939,
0.029566261917352676,
0.00882811937481165,
0.029734307900071144,
-0.027118206024169922,
-0.04670833423733711,
-0.030133161693811417,
0.015310567803680897,
-0.026407232508063316,
0.08059432357549667,
0.047643546015024185,
-0.00022904934303369373,
-0.008571790531277657,
0.01029902882874012,
0.0161549411714077,
-0.03947281837463379,
0.01547228917479515,
-0.000750569743104279,
0.021002842113375664,
-0.03921929746866226,
-0.011065635830163956,
-0.0007798416190780699,
0.006287153344601393,
-0.03363366797566414,
-0.043309714645147324,
0.004313137382268906,
-0.024687690660357475,
-0.02329409122467041,
0.012433021329343319,
-0.00730934739112854,
-0.0028894857969135046,
-0.013467157259583473,
0.054869603365659714,
0.0022607743740081787,
0.05646486580371857,
-0.1052033081650734,
-0.023328600451350212,
-0.007600459270179272,
0.02538137696683407,
-0.018378574401140213,
-0.04397045820951462,
0.010680705308914185,
0.00954565592110157,
-0.010576292872428894,
0.012130125425755978,
-0.025605302304029465,
0.028564369305968285,
0.0008477069204673171,
-0.0031380977015942335,
-0.02446545474231243,
0.02210567519068718,
-0.01000998355448246,
-0.01537173893302679,
-0.024808960035443306,
-0.013169122859835625,
-0.014509904198348522,
0.017660800367593765,
0.00815960206091404,
0.013085605576634407,
-0.009900074452161789,
0.037389032542705536,
0.01063697412610054,
0.03442980349063873,
-0.017806919291615486,
0.009021961130201817,
-0.03529684990644455,
0.01194722205400467,
-0.025746049359440804,
0.019825933501124382,
0.012721416540443897,
-0.0006934823468327522,
-0.017547786235809326,
-0.047285046428442,
0.03470988944172859,
0.047129109501838684,
0.021749222651124,
0.010845508426427841,
0.033014290034770966,
-0.02584836073219776,
0.020585035905241966,
-0.0024014299269765615,
-0.030326344072818756,
0.018384303897619247,
-0.00017561587446834892,
-0.03177673742175102,
-0.026491595432162285,
-0.005800605285912752,
-0.020778026431798935,
0.024321598932147026,
0.011802843771874905,
-0.012253985740244389,
-0.013224541209638119,
0.014734451659023762,
0.030996661633253098,
0.030338317155838013,
-0.031114501878619194,
0.0268093254417181,
0.02070033550262451,
0.047459281980991364,
-0.03477710112929344,
0.007188697811216116,
0.0112822987139225,
0.005642851814627647,
-0.004145978018641472,
0.009284261614084244,
-0.026661906391382217,
0.02192283235490322,
-0.014128264971077442,
0.009659061208367348,
0.006171911023557186,
-0.0009754536440595984,
0.005411212332546711,
0.01268941443413496,
0.030642827972769737,
0.02967820316553116,
-0.02492438815534115,
-0.020991846919059753,
-0.016516944393515587,
-0.027435287833213806,
0.045628540217876434,
0.0027453238144516945,
-0.022576918825507164,
-0.029330862686038017,
0.012141582556068897,
0.04486660659313202,
0.031604036688804626,
-0.008374078199267387,
0.003165521426126361,
-0.030293159186840057,
0.020307138562202454,
-0.01318259909749031,
0.036869678646326065,
0.01856084167957306,
0.0006689477013424039,
0.0037919676396995783,
-0.0035606634337455034,
-0.017767269164323807,
0.01930263824760914,
0.014463238418102264,
-0.021860534325242043,
0.006362052168697119,
-0.0034267385490238667,
-0.018171101808547974,
0.04391714558005333,
0.004223470576107502,
0.006409159395843744,
-0.022610923275351524,
0.021724222227931023,
-0.006113399751484394,
0.05935150384902954,
-0.006510184146463871,
-0.004624760709702969,
0.003918743226677179,
0.0158364400267601,
0.04254831746220589,
-0.018699951469898224,
0.024694960564374924,
0.017341597005724907,
-0.010498101823031902,
0.031926229596138,
-0.02627512253820896,
0.011304664425551891,
-0.007210093550384045,
0.008714796975255013,
-0.013143841177225113,
-0.0037356880493462086,
0.005113458726555109,
0.029145468026399612,
0.009644129313528538,
0.0006251777522265911,
0.013225718401372433,
-0.013712139800190926,
0.020359400659799576,
-0.000008931248885346577,
-0.04823226109147072,
0.031972866505384445,
0.017554372549057007,
0.00660683074966073,
-0.024516191333532333,
0.021705934777855873,
0.030544916167855263,
-0.05675339698791504,
-0.017673566937446594,
-0.009490159340202808,
0.006182818207889795,
0.03488381579518318,
-0.014842268079519272,
-0.04247480258345604,
0.013443504460155964,
0.032767828553915024,
-0.009587558917701244,
0.01947132498025894,
0.020748887211084366,
-0.010537690483033657,
0.0358329638838768,
0.0074364617466926575,
-0.0005692190607078373,
-0.04231451451778412,
0.004646910820156336,
0.005359247792512178,
0.005778506863862276,
0.014553728513419628,
-0.03480309993028641,
-0.013016756623983383,
-0.028952663764357567,
0.02595474384725094,
0.028121959418058395,
-0.06630054116249084,
-0.07131950557231903,
0.021480031311511993,
0.00826274510473013,
0.024537833407521248,
0.012466369196772575,
-0.002833140082657337,
0.034381527453660965,
0.0024782256223261356,
0.010574820451438427,
0.017408719286322594,
-0.026348184794187546,
0.020336991176009178,
0.032278481870889664,
0.048458535224199295,
0.04896004498004913,
0.0010676075471565127,
0.025764910504221916,
0.016867827624082565,
-0.003389873309060931,
0.036011144518852234,
-0.031398434191942215,
-0.005128620658069849,
0.026436105370521545,
0.018973102793097496,
0.02578575909137726,
-0.0346476286649704,
-0.028370076790452003,
0.018747953698039055,
0.010112876072525978,
0.017080459743738174,
-0.0010281699942424893,
0.043199215084314346,
-0.010654337704181671,
0.019473087042570114,
-0.0071768732741475105,
0.027625102549791336,
-0.028458720073103905,
-0.00005316482929629274,
0.0016621742397546768,
-0.022157665342092514,
-0.060931749641895294,
-0.012166195549070835,
-0.03769645467400551,
-0.056056611239910126,
0.007560402154922485,
0.0009357964736409485,
0.0277305468916893,
0.0013283464359119534,
0.016796424984931946,
-0.036753565073013306,
-0.010586131364107132,
-0.04715440422296524,
-0.011313618160784245,
0.0016232114285230637,
0.0053044469095766544,
0.01011474709957838,
0.021823160350322723,
0.029549339786171913,
0.004008549731224775,
-0.028485625982284546,
0.03521230071783066,
0.0015690297586843371,
-0.010269464924931526,
0.014553026296198368,
0.030278334394097328,
0.04733902961015701,
-0.020456496626138687,
-0.046011921018362045,
0.0036616032011806965,
-0.023266391828656197,
-0.010210526175796986,
-0.06236163154244423,
0.058601923286914825,
0.01300171110779047,
0.0017784119118005037,
0.002216690219938755,
0.022099439054727554,
0.04188939556479454,
-0.03030325472354889,
0.02413003519177437,
-0.01713513769209385,
0.015521039254963398,
-0.0008368547423742712,
0.04004485532641411,
-0.035003241151571274,
-0.0016327626071870327,
0.005709935445338488,
-0.0496031679213047,
-0.07621128112077713,
0.05536697804927826,
0.002098978729918599,
-0.01726122759282589,
-0.0016267119208350778,
0.012682988308370113,
-0.023106954991817474,
0.02599852718412876,
0.006958648096770048,
-0.02504223771393299,
0.0411350391805172,
0.03453829884529114,
-0.009485073387622833,
-0.020375095307826996,
-0.028081590309739113,
-0.019048621878027916,
0.08429570496082306,
0.016219759359955788,
-0.009994913823902607,
0.007935941219329834,
0.030283262953162193,
0.04740899056196213,
-0.031982727348804474,
-0.0031196456402540207,
0.04720490053296089,
0.028913022950291634,
-0.001052526873536408,
0.05133607238531113,
0.032194651663303375,
-0.014264212921261787,
-0.012984144501388073,
0.02613174542784691,
0.01744008995592594,
-0.021557863801717758,
0.02149948850274086,
0.04336176812648773,
0.00845077820122242,
0.03655967116355896,
-0.05873928219079971,
0.04134109616279602,
0.028130309656262398,
-0.0058710756711661816,
0.04916704446077347,
-0.0041155265644192696,
0.0651167780160904,
0.012912788428366184,
-0.017518581822514534,
-0.021038241684436798,
-0.009742858819663525,
-0.006228025536984205,
0.053868457674980164,
0.011240975931286812,
0.039943546056747437,
-0.060068707913160324,
-0.013576441444456577,
0.026167992502450943,
-0.01862942799925804,
-0.03933889418840408,
0.046272266656160355,
0.009424744173884392,
-0.02567322738468647,
0.009499700739979744,
-0.00662890262901783,
-0.059273310005664825,
0.0012791343033313751,
0.00652441056445241,
-0.02302771434187889,
-0.011989876627922058,
-0.002710633212700486,
-0.02973463572561741,
0.057085420936346054,
-0.013273398391902447,
-0.01819603145122528,
-0.03510651737451553,
0.015427209436893463,
-0.0020919442176818848,
0.015229489654302597,
-0.027224205434322357,
-0.019809085875749588,
-0.017065396532416344,
0.02450242079794407,
0.06295400112867355,
-0.010587591677904129,
0.012622447684407234,
0.006098296493291855,
-0.0036273025907576084,
0.03945349529385567,
-0.05878753587603569,
-0.007895457558333874,
-0.04127851873636246,
0.021853549405932426,
-0.07082213461399078,
0.02426082268357277,
-0.045670680701732635,
-0.022667495533823967,
0.025368042290210724,
-0.00780270341783762,
0.017497757449746132,
-0.018592990934848785,
0.011367078870534897,
0.009537335485219955,
0.03889831155538559,
-0.051227420568466187,
-0.04702472314238548,
0.021750714629888535,
-0.014171958900988102,
-0.01762901246547699,
0.01882992871105671,
0.011292840354144573,
-0.006561522372066975,
0.023207152262330055,
-0.004060665145516396,
-0.03529186174273491,
-0.0026101553812623024,
0.020408816635608673,
0.010126030072569847,
-0.02069689705967903,
-0.02101977914571762,
0.000601787818595767,
0.03135959431529045,
0.021213145926594734,
0.012048508040606976,
0.040678903460502625,
0.03746544569730759,
-0.0038886391557753086,
-0.07246483862400055,
0.03936627507209778,
0.02105698734521866,
0.002788351383060217,
-0.03412272036075592,
-0.020853878930211067,
-0.03223299980163574,
0.04789590463042259,
0.06258271634578705,
-0.007207178045064211,
-0.0686868354678154,
0.03449062630534172,
-0.07352615892887115,
-0.009090420790016651,
-0.053312622010707855,
0.010887179523706436,
0.06682896614074707,
0.04395347461104393,
-0.028610872104763985,
-0.013243612833321095,
-0.013168689794838428,
-0.024689899757504463,
-0.016410840675234795,
0.02047719433903694,
0.07224950194358826,
-0.04727760702371597,
-0.0045278011821210384,
-0.030560381710529327,
0.0016717067919671535,
0.01591099426150322,
-0.0051794154569506645,
-0.01240545604377985,
0.016645459458231926,
0.011045682244002819,
-0.00891734380275011,
-0.006967819761484861,
0.04018006473779678,
-0.016333501785993576,
0.006593070924282074,
0.00009369530744152144,
-0.00024149479577317834,
-0.001269692205823958,
0.0023776001762598753,
-0.03801107034087181,
-0.03378331661224365,
-0.028822753578424454,
-0.01025982853025198,
0.046239156275987625,
-0.012629268690943718,
0.02934994362294674,
0.01159289013594389,
-0.01835998147726059,
0.006658878643065691,
-0.017189202830195427,
-0.04482881352305412,
-0.026046188548207283,
-0.011518971063196659,
0.019005337730050087,
-0.022493459284305573,
-0.06009374558925629,
-0.0005216773133724928,
0.016183985397219658,
0.0012065642513334751,
0.029040822759270668,
-0.004467131104320288,
-0.0075142537243664265,
0.032426632940769196,
0.03505691513419151,
-0.019777238368988037,
0.05006054788827896,
0.05280828848481178,
-0.02605200745165348,
-0.02356109395623207,
-0.043130822479724884
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | 2. Efficient parallelization of computations Now that we have an efficient way to represent our data, we need a way to take the most out of the computational hardware at our disposal. Interestingly, when it comes to inference, CPUs have a potential advantage over GPUs in the sense they are everywhere, and they do not require specific application components and administration staff to operate them. Modern CPUs come with many cores and complex mechanisms to increase the general performances of software. Yet, as we highlighted on the first blog post, they also have features which can be tweaked depending on the kind of workload (CPU or I/O bound) you target, to further improve performances for your application. Still, implementing parallel algorithms might not be as simple as throwing more cores to do the work. Many factors, such as data structures used, concurrent data access, CPU caches invalidation - all of which might prevent your algorithm from being effectively faster. As a reference talk, we recommend the talk from Scott Meyers: CPU Caches and Why You Care if you are interested in diving more into the subject. Thankfully, there are libraries which make the development process of such parallel algorithms easier and less error-prone. Among the most common parallel libraries we can mention OpenMP and TBB (Threading Building Blocks), which work at various levels, from programming API in C/C++ to environment variable tuning and dynamic scheduling. On Intel hardware, it is advised to use the Intel implementation of the OpenMP specification often referred as "IOMP" available as part of the Intel oneAPI toolkit. Figure 2. Code snippet showing parallel computation done through OpenMP [comment]: <> () | [
0.09131908416748047,
0.053645070642232895,
0.025518745183944702,
0.05649424344301224,
0.051711104810237885,
0.042474836111068726,
0.00011778112093452364,
0.03836003318428993,
-0.06427936255931854,
-0.05575942248106003,
0.02490641176700592,
0.0024158728774636984,
0.0008118065306916833,
0.04137543961405754,
0.020017148926854134,
-0.019819051027297974,
0.054449230432510376,
-0.05775538086891174,
0.028941288590431213,
0.047976355999708176,
0.041817378252744675,
0.009600029326975346,
0.09289158135652542,
0.02324117347598076,
-0.047406479716300964,
0.03526686131954193,
-0.02398545853793621,
-0.054293468594551086,
-0.05662611126899719,
-0.007732798811048269,
-0.15314415097236633,
0.002194756641983986,
0.0017197804991155863,
-0.04034647345542908,
-0.031648095697164536,
-0.041302066296339035,
-0.0766676515340805,
0.04899219796061516,
0.06487023085355759,
-0.06359228491783142,
0.03900616988539696,
-0.06611775606870651,
-0.04401308298110962,
0.07860643416643143,
-0.03818556293845177,
-0.01073071826249361,
-0.10553832352161407,
0.09323996305465698,
-0.0025106214452534914,
-0.01844722405076027,
-0.0811467319726944,
0.06225762516260147,
-0.020101305097341537,
0.05797182768583298,
0.02786105126142502,
0.04203426465392113,
-0.0016153636388480663,
-0.040044814348220825,
-0.005197439342737198,
0.0308773722499609,
0.0297967828810215,
0.0030687039252370596,
0.006739332806318998,
0.012924094684422016,
0.056569889187812805,
-0.02343159355223179,
-0.015989363193511963,
-0.05414678156375885,
-0.08689604699611664,
0.04440265893936157,
-0.01168658584356308,
-0.04724867641925812,
-0.059031788259744644,
0.038606785237789154,
0.004590385127812624,
-0.03347799554467201,
0.013466269709169865,
0.01629156805574894,
0.0766960084438324,
0.022154537960886955,
-0.016830425709486008,
0.017652902752161026,
0.06253021210432053,
0.04620060697197914,
0.037426963448524475,
-0.0012284632539376616,
0.04627927765250206,
-0.020009610801935196,
-0.03379307687282562,
0.05314304307103157,
-0.006022733636200428,
-0.07889074832201004,
0.010588153265416622,
0.02597535401582718,
-0.015092301182448864,
-0.05566610395908356,
0.0482696034014225,
-0.0009678415954113007,
-0.018171580508351326,
-0.0003226442204322666,
0.012197393923997879,
-0.039893485605716705,
0.04993557929992676,
0.007016948889940977,
-0.02317504957318306,
0.02124641090631485,
0.012204322032630444,
-0.09419319778680801,
-0.05216485261917114,
0.09462034702301025,
-0.061514340341091156,
0.07983817160129547,
0.001489412272349,
0.01984780840575695,
-0.07789134979248047,
0.01110239326953888,
0.016153987497091293,
0.04793103411793709,
-0.020361389964818954,
-0.021784603595733643,
0.021048663184046745,
0.1110965833067894,
0.09567640721797943,
0.005109770223498344,
-0.02322031371295452,
0.020496711134910583,
0.10911452025175095,
0.022443514317274094,
0.004522693809121847,
-0.06274863332509995,
0.03039628453552723,
0.02674601599574089,
0.03548019006848335,
-0.02501765824854374,
0.04685641825199127,
-0.07635292410850525,
-0.0585486926138401,
-0.04001625254750252,
-0.036723192781209946,
0.0008571718935854733,
-0.04408247396349907,
-0.03567633405327797,
0.0689045712351799,
0.0315508171916008,
0.023487284779548645,
0.017639335244894028,
-0.06490536779165268,
0.003709486685693264,
-0.0023508460726588964,
-0.050768740475177765,
-0.03412317484617233,
0.06786999106407166,
-0.07440295070409775,
-0.0778910294175148,
0.03600678965449333,
0.10157912224531174,
0.04695889726281166,
0.004665591288357973,
-0.0925738736987114,
-0.0331212542951107,
-0.04577590525150299,
0.011140001006424427,
0.029876358807086945,
-0.004377569537609816,
-0.006473350338637829,
0.010354510508477688,
0.07094640284776688,
-0.03624894469976425,
0.018008358776569366,
0.04657502844929695,
-0.06828872859477997,
-0.017256876453757286,
0.05446399003267288,
0.0031954629812389612,
0.005443600472062826,
0.0428786426782608,
0.04560840502381325,
0.05407217517495155,
0.03290649875998497,
0.019846364855766296,
-0.02405482903122902,
-0.005003566388040781,
-0.02103330008685589,
0.0837961733341217,
-0.004771294072270393,
-0.047381993383169174,
0.00018092783284373581,
-0.08270154148340225,
-0.020499136298894882,
-0.00818176381289959,
-0.0565832182765007,
-0.005740600172430277,
0.04474174976348877,
-0.043753448873758316,
0.02851690910756588,
-0.053312670439481735,
-0.029066376388072968,
0.09355655312538147,
0.04125681519508362,
0.068940669298172,
0.06097769737243652,
-0.01912953518331051,
0.04548660293221474,
-0.017728686332702637,
-0.08245687931776047,
-0.0021076940465718508,
0.0224517323076725,
-0.025635937228798866,
0.0056357900612056255,
-0.001759535982273519,
-0.029147282242774963,
-0.10653793066740036,
-0.001782368402928114,
-0.013026879169046879,
-0.05069099739193916,
0.008917286060750484,
0.0042286524549126625,
0.03808495029807091,
0.044685546308755875,
-0.09399780631065369,
0.10586054623126984,
-0.10234739631414413,
-0.03898993507027626,
0.052972462028265,
-0.03560439497232437,
0.021046804264187813,
0.07132848352193832,
0.012859730049967766,
0.08324296772480011,
-0.04041210189461708,
0.0019157795468345284,
-0.051906537264585495,
-0.041197266429662704,
0.07627522200345993,
0.03600529208779335,
0.06908826529979706,
-0.03408406674861908,
0.044999003410339355,
0.037192706018686295,
-0.07147609442472458,
-0.03451479598879814,
0.011789606884121895,
-0.06262778490781784,
0.014507029205560684,
0.03615278750658035,
-0.07649116218090057,
0.07091471552848816,
-0.05317557975649834,
-0.011871167458593845,
-0.04485030099749565,
-0.03591397777199745,
-0.006761895027011633,
-0.02321886271238327,
-0.02308935858309269,
0.02197067253291607,
-0.04152812063694,
0.01172639336436987,
-0.011502170003950596,
0.01051902212202549,
0.0007566626300103962,
0.021667329594492912,
-0.020464720204472542,
-0.0010251338826492429,
-0.0860380306839943,
0.02339799515902996,
-0.049225591123104095,
-0.014464139007031918,
0.015541828237473965,
0.027071693912148476,
0.003042707685381174,
-0.0275883749127388,
-0.042365796864032745,
0.02400916814804077,
-0.00015800839173607528,
0.016661977395415306,
0.008688993752002716,
0.0126817487180233,
0.015233035199344158,
0.011872179806232452,
-0.025104274973273277,
0.007479889318346977,
-0.03152168169617653,
0.012120360508561134,
0.029277727007865906,
-0.014663825742900372,
-0.0192265585064888,
0.015110183507204056,
0.008564447984099388,
-0.02196037583053112,
-0.00905544776469469,
0.016556980088353157,
0.008727787993848324,
-0.03779091686010361,
-0.04880903288722038,
0.010864232666790485,
0.017146382480859756,
-0.03997546434402466,
-0.034471966326236725,
-0.04902762919664383,
-0.043663330376148224,
0.0006277895299717784,
-0.01174885593354702,
0.01039026491343975,
-0.020566245540976524,
-0.06498110294342041,
0.04441774636507034,
-0.03193521127104759,
0.027249138802289963,
-0.12046609073877335,
-0.004854010883718729,
-0.016229165717959404,
0.005692381411790848,
0.0009628935367800295,
-0.015450799837708473,
0.04931855574250221,
0.006318789906799793,
0.0030478988774120808,
0.018619464710354805,
0.001191754825413227,
0.025942284613847733,
0.003730564843863249,
-0.023303713649511337,
-0.0018615875160321593,
0.023541655391454697,
0.018030870705842972,
0.004378279205411673,
0.040312182158231735,
0.03364682197570801,
0.013774004764854908,
0.03796115890145302,
-0.03975454345345497,
-0.0018827050225809216,
-0.03220050036907196,
0.01755572110414505,
0.020423607900738716,
0.046746689826250076,
0.023767119273543358,
-0.008100269362330437,
-0.0598997063934803,
-0.029299618676304817,
0.013911627233028412,
-0.02135058492422104,
-0.0006810581544414163,
-0.004696425050497055,
-0.011878937482833862,
0.011240729130804539,
0.006411475595086813,
0.04668981954455376,
0.019008740782737732,
0.014199759811162949,
0.0634520873427391,
-0.060364559292793274,
-0.01769258640706539,
0.01743529736995697,
0.029349541291594505,
-0.006363546010106802,
0.028361154720187187,
-0.044186949729919434,
-0.020805563777685165,
-0.007426521275192499,
0.011282146908342838,
0.007390780374407768,
-0.021435054019093513,
-0.014912811107933521,
-0.03330625966191292,
0.014485487714409828,
0.034689128398895264,
0.008682110346853733,
-0.038922350853681564,
0.05153471976518631,
0.06762571632862091,
0.015798015519976616,
-0.03464923053979874,
0.012053011916577816,
0.031201323494315147,
-0.001524806604720652,
-0.0036874660290777683,
0.016999848186969757,
0.002502325689420104,
0.043792493641376495,
0.007079792208969593,
0.0016079091001302004,
-0.0112186623737216,
0.05404258891940117,
-0.035214364528656006,
0.006873065605759621,
0.05768361687660217,
0.03446638584136963,
0.011600233614444733,
-0.039005097001791,
-0.023505687713623047,
-0.00582805136218667,
0.030441757291555405,
0.024920575320720673,
-0.013304566964507103,
0.0037604274693876505,
-0.028453484177589417,
0.06691800802946091,
0.017042364925146103,
-0.029986562207341194,
0.04740291088819504,
-0.007291422691196203,
0.05412068963050842,
0.01021643541753292,
0.08759802579879761,
-0.0025581822264939547,
0.033469755202531815,
-0.03018352761864662,
0.03339698538184166,
-0.006023467052727938,
0.016090363264083862,
-0.0032038006465882063,
-0.023140709847211838,
0.034653253853321075,
-0.021262403577566147,
-0.005141072906553745,
0.03674376755952835,
0.006940788589417934,
-0.0168612077832222,
-0.045176416635513306,
0.025189513340592384,
-0.024859026074409485,
0.02725156582891941,
0.01838606782257557,
-0.031225157901644707,
0.020176468417048454,
-0.005037617404013872,
0.014542803168296814,
-0.04011237248778343,
0.0312072541564703,
0.004016408696770668,
-0.011505485512316227,
0.04009604826569557,
0.006367924157530069,
-0.003918001893907785,
-0.012774462811648846,
-0.0076738144271075726,
0.002633366035297513,
-0.01908470131456852,
0.02573341876268387,
0.020639067515730858,
-0.005661101546138525,
0.03638465702533722,
0.017377840355038643,
-0.02798587456345558,
0.015971116721630096,
0.007525171618908644,
-0.03918147459626198,
-0.01515752449631691,
0.017513828352093697,
-0.0006701844395138323,
-0.010755033232271671,
0.016167325899004936,
0.019276408478617668,
-0.06133435666561127,
-0.00612229248508811,
-0.029286984354257584,
0.0332762636244297,
-0.0030554072000086308,
-0.0256850253790617,
-0.0046643405221402645,
0.0629756972193718,
0.02845236100256443,
-0.012035025283694267,
0.017343053594231606,
0.0023852072190493345,
0.003739570267498493,
0.021694635972380638,
-0.018492748960852623,
0.018321502953767776,
-0.04043612629175186,
-0.01016683503985405,
-0.0010121070081368089,
-0.043182626366615295,
0.030274568125605583,
-0.018108267337083817,
-0.025560230016708374,
-0.027228903025388718,
0.0059249019250273705,
0.05894823372364044,
-0.008507972583174706,
-0.02928302064538002,
0.053977515548467636,
-0.02583782933652401,
0.03845614939928055,
0.0428517609834671,
0.05842100456357002,
0.01481008529663086,
-0.00136234809178859,
-0.040104083716869354,
0.012532114051282406,
-0.02688232995569706,
-0.004243979696184397,
0.024779681116342545,
0.004697137046605349,
0.021838584914803505,
0.015903262421488762,
0.010697472840547562,
0.03385542705655098,
-0.021770579740405083,
0.03143011033535004,
-0.01950938068330288,
0.02652689442038536,
-0.031226856634020805,
-0.007579657714813948,
-0.0003092825645580888,
-0.03838073089718819,
-0.03767015412449837,
-0.0049270023591816425,
0.011154551059007645,
0.000598644488491118,
-0.01796310767531395,
0.024066753685474396,
0.05178658291697502,
0.02658720314502716,
-0.0454767644405365,
0.004950069356709719,
-0.013203232549130917,
-0.020571991801261902,
0.02641949988901615,
-0.04554813727736473,
-0.0019443671917542815,
-0.0022264437284320593,
-0.031249791383743286,
-0.05736173316836357,
0.02748759090900421,
0.009434657171368599,
0.0205285232514143,
-0.01636471599340439,
-0.00850286241620779,
-0.018716514110565186,
-0.014323427341878414,
0.009380956180393696,
-0.024783778935670853,
-0.040046535432338715,
-0.013113555498421192,
0.001496880897320807,
0.031021539121866226,
0.015098880976438522,
-0.0045966943725943565,
-0.023242300376296043,
0.05496152490377426,
0.031511951237916946,
-0.04243919253349304,
0.011400286108255386,
0.018841180950403214,
0.01833980903029442,
0.015728304162621498,
-0.0637705847620964,
-0.03904194012284279,
-0.008110427297651768,
0.012036247178912163,
-0.024616936221718788,
0.001421856926754117,
0.028112534433603287,
-0.048034269362688065,
-0.05128555744886398,
0.009257800877094269,
0.03210695832967758,
-0.007460765074938536,
0.028781648725271225,
-0.02366052195429802,
-0.0005208926741033792,
-0.018152285367250443,
0.004042820073664188,
-0.02682136557996273,
0.015685612335801125,
0.025076162070035934,
0.027389636263251305,
-0.055367834866046906,
0.006893562618643045,
-0.0060047572478652,
-0.021985910832881927,
0.030182916671037674,
0.01178980153053999,
-0.031852032989263535,
0.03369934484362602,
-0.00024129165103659034,
0.004495788831263781,
0.0075568039901554585,
0.0049002706073224545,
0.012191888876259327,
-0.023914456367492676,
0.006541187409311533,
-0.0015682897064834833,
0.10028302669525146,
0.011497358791530132,
0.03340620547533035,
0.015363619662821293,
0.04918542504310608,
0.040996015071868896,
-0.013563563115894794,
-0.006774347275495529,
0.022242136299610138,
0.03750736638903618,
-0.015681002289056778,
0.0433683879673481,
0.012788902036845684,
-0.021145807579159737,
-0.03341694921255112,
0.013851630501449108,
0.0055882977321743965,
-0.03895784169435501,
0.01622968539595604,
0.01394263282418251,
-0.005016232840716839,
0.023730594664812088,
-0.04512195661664009,
0.05896816402673721,
0.03051508218050003,
-0.0021520170848816633,
0.011084863916039467,
0.006595225539058447,
-0.02047860622406006,
0.027410069480538368,
0.0010351833188906312,
-0.04106723517179489,
0.003442777320742607,
0.0055996417067945,
0.031877171248197556,
0.01761920191347599,
0.04973725974559784,
-0.005018892232328653,
-0.018070001155138016,
0.04384353384375572,
-0.0020605893805623055,
0.013084188103675842,
0.029116949066519737,
0.025091614574193954,
0.005268502980470657,
0.05652441084384918,
-0.025855539366602898,
-0.06509580463171005,
-0.009533146396279335,
0.018885504454374313,
-0.028990769758820534,
-0.030375367030501366,
-0.0059192064218223095,
-0.020344190299510956,
0.015622944571077824,
-0.003117430955171585,
-0.040160223841667175,
-0.014891979284584522,
0.014191823080182076,
-0.00365064712241292,
0.00757222343236208,
-0.045399703085422516,
-0.01313819456845522,
0.005752434954047203,
0.044206392019987106,
0.02581193298101425,
0.01919855922460556,
0.0010190061293542385,
0.007754366844892502,
0.04386972263455391,
-0.02958161011338234,
-0.046391259878873825,
0.030247271060943604,
-0.02526944689452648,
-0.008591476827859879,
-0.008514954708516598,
0.043132130056619644,
-0.001177613390609622,
-0.037467751652002335,
0.02686338499188423,
-0.010113091208040714,
0.04205095022916794,
-0.0162657480686903,
0.029445860534906387,
-0.016119666397571564,
0.021303389221429825,
-0.017786122858524323,
-0.01978529430925846,
0.007243291940540075,
-0.01665402762591839,
-0.013139324262738228,
0.03272755444049835,
-0.0013818792067468166,
-0.042124997824430466,
0.019461480900645256,
0.0015840302221477032,
-0.03593806177377701,
-0.02653609775006771,
-0.014011572115123272,
0.04354435205459595,
-0.027448691427707672,
-0.0018117419676855206,
-0.04780273139476776,
0.06551585346460342,
-0.0020259018056094646,
0.02849818579852581,
-0.014699739404022694,
0.017412414774298668,
0.009473565965890884,
-0.028466854244470596,
0.016375191509723663,
0.0009806896559894085,
0.036781273782253265,
0.020650001242756844,
-0.03068404644727707,
-0.01774362474679947,
-0.0037939241155982018,
-0.0029036328196525574,
-0.020592395216226578,
-0.04168802872300148,
0.005574308801442385,
-0.005999855697154999,
-0.002585663925856352,
-0.034113820642232895,
-0.015793712809681892,
0.05889933928847313,
0.017723673954606056,
-0.016949422657489777,
-0.006307739298790693,
-0.0048064799048006535,
-0.032835982739925385,
-0.016770770773291588,
0.058897022157907486,
0.0318446010351181,
-0.02449558675289154,
-0.013141625560820103,
-0.015914876013994217,
-0.02725297212600708,
-0.013770530000329018,
-0.015453415922820568,
0.0017635805997997522,
0.03308717533946037,
-0.00015070433437358588,
-0.026654724031686783,
0.017215546220541,
0.0430605374276638,
-0.019212620332837105,
0.01974095217883587,
-0.021364377811551094,
-0.004199379589408636,
0.009844488464295864,
-0.02080998755991459,
-0.04193243011832237,
-0.008072244003415108,
0.02559891901910305,
-0.0032088388688862324,
0.05657779797911644,
0.03428458049893379,
0.036963753402233124,
0.02908475324511528,
0.0006475835107266903,
-0.010567078366875648,
-0.008169872686266899,
-0.03128054365515709,
-0.015513891354203224,
-0.021645905449986458,
0.008222061209380627,
-0.04477592930197716,
-0.07106693834066391,
0.013013816438615322,
0.01571962609887123,
0.006646263878792524,
0.006833392661064863,
0.003558075986802578,
0.01441787276417017,
-0.008026509545743465,
0.01845432259142399,
0.014023926109075546,
0.05174976959824562,
0.034866880625486374,
0.04057621955871582,
-0.013122453354299068,
-0.005366757046431303
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Establishing the baseline As mentioned previously, the baselines will be composed of two different setups: - Out-of-the-box: We are running the workloads as-is, without any tuning - Optimized: We apply the various knobs present in Blog #1 Also, from the comments we had about the previous blog post, we wanted to change the way we present the framework within the resulting benchmarks. As such, through the rest of this second blog post, we will split framework benchmarking results according to the following: - Frameworks using “eager” mode for computations (PyTorch, TensorFlow) - Frameworks using “graph” mode for computations (TorchScript, TensorFlow Graph, Intel Tensorflow) | [
0.05958180874586105,
-0.010248973965644836,
0.028600379824638367,
0.04664641618728638,
-0.0030547664500772953,
0.041945744305849075,
0.04198731482028961,
0.02130645141005516,
-0.028656985610723495,
-0.12654687464237213,
-0.005699262022972107,
0.08237924426794052,
0.021913966163992882,
0.012743436731398106,
0.05269380658864975,
-0.00041546611464582384,
0.05106313154101372,
-0.09886149317026138,
0.035709820687770844,
0.02041749842464924,
-0.002251511439681053,
-0.045117586851119995,
0.0585806705057621,
0.02362879551947117,
-0.0325470007956028,
-0.05022087320685387,
-0.03016718104481697,
-0.05924205109477043,
-0.031551241874694824,
0.017342044040560722,
-0.07781172543764114,
-0.015480532310903072,
0.03713158145546913,
-0.05123094841837883,
0.012381323613226414,
-0.020133066922426224,
-0.08821696788072586,
0.05039122328162193,
0.031112682074308395,
-0.07856496423482895,
-0.0031364273745566607,
-0.03062724508345127,
-0.07059431076049805,
0.026686543598771095,
0.01827153190970421,
0.0018595776055008173,
-0.13326331973075867,
0.08125010132789612,
-0.0018566783983260393,
0.023244544863700867,
-0.10297898948192596,
0.05176311731338501,
0.0013957308838143945,
0.03132009506225586,
0.005115605890750885,
0.02481916919350624,
-0.007974778302013874,
-0.012275627814233303,
-0.0001508602872490883,
0.0019802553579211235,
0.07176198065280914,
-0.0015245520044118166,
0.02905261516571045,
0.029382187873125076,
0.018274806439876556,
-0.004519810434430838,
-0.03066926635801792,
0.09766414761543274,
-0.05262415111064911,
0.05071024224162102,
-0.0000701804383425042,
0.043972015380859375,
0.02898979000747204,
-0.017984922975301743,
-0.004926988389343023,
-0.008913379162549973,
-0.02286762185394764,
0.0427338145673275,
0.028577037155628204,
0.06999382376670837,
-0.04729097709059715,
0.06983566284179688,
0.00758318742737174,
0.029038995504379272,
0.011679094284772873,
0.06486881524324417,
0.042741645127534866,
-0.03482227399945259,
0.020691752433776855,
0.0669063851237297,
-0.007178125903010368,
-0.07213111221790314,
0.05831761285662651,
-0.003653993597254157,
0.002140945289283991,
-0.09866026043891907,
0.020996209233999252,
-0.03385201096534729,
0.011883108876645565,
-0.022458024322986603,
0.010592973791062832,
-0.04816336929798126,
-0.023712284862995148,
-0.04877190291881561,
-0.009783237241208553,
0.001985604874789715,
-0.00737017672508955,
-0.06682472676038742,
-0.05690085515379906,
-0.015765711665153503,
-0.05997602641582489,
0.009920508600771427,
-0.030928930267691612,
0.08695387095212936,
-0.027601009234786034,
0.005884749349206686,
-0.06754229962825775,
-0.0045809573493897915,
0.019503476098179817,
0.021421020850539207,
0.06920284777879715,
0.17271436750888824,
0.06497570872306824,
0.032440006732940674,
0.00031100912019610405,
0.09108617156744003,
0.05654199421405792,
0.040532201528549194,
-0.0005153665551915765,
-0.06317885220050812,
0.022952018305659294,
-0.06448738276958466,
0.05408695712685585,
-0.027766741812229156,
-0.02307037077844143,
-0.06519468128681183,
-0.0039810859598219395,
-0.01970449835062027,
0.03304997459053993,
0.00496441125869751,
-0.05794069543480873,
-0.01681220717728138,
-0.017696525901556015,
0.023649148643016815,
0.0669037476181984,
-0.022965969517827034,
0.0018320375820621848,
0.03771456331014633,
0.009254653006792068,
0.004891968797892332,
-0.051586978137493134,
0.08724217116832733,
-0.13804352283477783,
-0.025916259735822678,
0.03517764434218407,
0.06491748243570328,
0.011266171932220459,
-0.04722712188959122,
-0.022836264222860336,
-0.02524167113006115,
0.00671308021992445,
-0.004030157346278429,
-0.04531135410070419,
-0.0554112009704113,
0.051163166761398315,
-0.033283527940511703,
0.03273695334792137,
-0.01594187319278717,
-0.0037606859114021063,
0.016737166792154312,
-0.014458847232162952,
-0.012528791092336178,
0.10815409570932388,
-0.030232811346650124,
-0.01988605223596096,
0.039138562977313995,
0.014088169671595097,
0.03674723580479622,
0.015948928892612457,
-0.00980872381478548,
-0.061426855623722076,
0.014552073553204536,
0.0304733756929636,
0.05357780680060387,
0.033769991248846054,
-0.0975552424788475,
0.012743250466883183,
-0.04005284979939461,
-0.02251410484313965,
0.03013032302260399,
-0.08209885656833649,
0.006117599550634623,
0.04789852350950241,
-0.0710052102804184,
0.04079223424196243,
-0.09465187042951584,
-0.03173147141933441,
0.08932839334011078,
0.041644930839538574,
0.0418572723865509,
0.08737875521183014,
0.026886863633990288,
0.020570769906044006,
-0.021762855350971222,
-0.04568616300821304,
0.03768054023385048,
0.03345876559615135,
-0.08597288280725479,
-0.009811487048864365,
0.01773853413760662,
0.00097425258718431,
-0.09203383326530457,
-0.043628547340631485,
-0.036621030420064926,
-0.008886430412530899,
-0.04750393331050873,
0.002331717172637582,
0.03253203257918358,
0.04491026699542999,
0.0211031474173069,
0.13707681000232697,
-0.05813660845160484,
0.03541941195726395,
0.03860468789935112,
-0.11121838539838791,
0.01020862627774477,
0.06131015717983246,
0.058580487966537476,
0.08137775957584381,
-0.0643472746014595,
0.026666216552257538,
-0.053140632808208466,
-0.016032427549362183,
0.11394897848367691,
-0.05827626213431358,
-0.0010296805994585156,
-0.035710833966732025,
0.009208916686475277,
0.05923764035105705,
-0.04095813259482384,
0.0402870774269104,
-0.0037118124309927225,
0.019301986321806908,
0.037827588617801666,
-0.008694715797901154,
-0.015353010967373848,
0.050123512744903564,
-0.014704725705087185,
-0.04489351063966751,
-0.003351362654939294,
-0.005842509213835001,
-0.019909294322133064,
0.00030410123872570693,
-0.01562563329935074,
0.05501867085695267,
0.07090038806200027,
0.01563292369246483,
-0.004835509229451418,
-0.026407577097415924,
0.02102399244904518,
0.035010721534490585,
0.007945684716105461,
-0.015107642859220505,
-0.0338161438703537,
0.007547627668827772,
-0.06151164323091507,
0.01614663191139698,
-0.010862017050385475,
-0.022104410454630852,
-0.0002421168755972758,
-0.014979205094277859,
-0.041760243475437164,
0.026581311598420143,
-0.011273535899817944,
0.013860740698873997,
0.004571061581373215,
0.02238932065665722,
-0.03684380650520325,
-0.06636272370815277,
-0.039440736174583435,
-0.05200175940990448,
-0.020109515637159348,
0.0418446883559227,
0.009635185822844505,
-0.0057914829812943935,
-0.03634621948003769,
0.048519667237997055,
0.0070767467841506,
-0.015828091651201248,
0.012422758154571056,
0.02505519986152649,
0.011808091774582863,
0.012451906688511372,
-0.01268799602985382,
0.013453214429318905,
0.008679790422320366,
-0.03802599385380745,
-0.012240443378686905,
-0.009354923851788044,
-0.028459379449486732,
-0.06490875035524368,
0.02428005076944828,
-0.010968067683279514,
-0.03609023615717888,
-0.02712341584265232,
0.029940050095319748,
0.003429397474974394,
0.05593982711434364,
-0.11890961974859238,
-0.013092713430523872,
-0.009137831628322601,
0.044007208198308945,
-0.020919818431138992,
-0.039877284318208694,
0.0072920359671115875,
-0.0028673040214926004,
0.008524988777935505,
0.013343065045773983,
-0.02026883326470852,
-0.015070301480591297,
0.008923155255615711,
0.03281183913350105,
-0.027557119727134705,
0.006811749655753374,
0.002215792890638113,
-0.0017578747356310487,
-0.016149822622537613,
-0.010565941222012043,
-0.0381249375641346,
0.014147045090794563,
-0.03110686130821705,
-0.019445663318037987,
-0.042742110788822174,
0.027880022302269936,
0.00788445957005024,
0.035392023622989655,
-0.016892582178115845,
-0.00686020078137517,
-0.03996632993221283,
0.008323824033141136,
-0.029410382732748985,
0.0024698248598724604,
-0.02148606814444065,
-0.005539358127862215,
0.0067448667250573635,
0.009745270945131779,
0.02177133783698082,
0.041296571493148804,
-0.0032479427754878998,
0.029286546632647514,
0.03048347309231758,
-0.014081066474318504,
0.02739395946264267,
0.007067086175084114,
0.02416517212986946,
0.005186028778553009,
0.04240284115076065,
-0.0281014833599329,
-0.052471283823251724,
-0.0038113880436867476,
-0.01055590994656086,
0.04549025744199753,
0.004892177414149046,
-0.020755060017108917,
-0.0334177240729332,
0.016359873116016388,
0.05438248813152313,
0.015141963958740234,
-0.05815456435084343,
0.01614096760749817,
0.027690041810274124,
0.025206200778484344,
-0.015429227612912655,
0.011217295192182064,
0.018172625452280045,
0.007739078253507614,
-0.01946910284459591,
-0.009881925769150257,
0.015150346793234348,
0.04886345565319061,
-0.0010057030012831092,
0.010674788616597652,
-0.03036484867334366,
0.008356187492609024,
-0.00522654177621007,
-0.017402784898877144,
0.07562142610549927,
0.001028544153086841,
-0.06701099127531052,
-0.05667479708790779,
0.0018576288130134344,
-0.04200180992484093,
0.015164811164140701,
0.023979688063263893,
-0.0000566271337447688,
-0.01280257198959589,
0.00671602925285697,
0.02770209312438965,
0.016322830691933632,
0.006179215386509895,
0.023603348061442375,
-0.011037872172892094,
-0.015259687788784504,
-0.0368204265832901,
0.05135352164506912,
0.023517386987805367,
0.007288340013474226,
0.0242146123200655,
0.014373431913554668,
-0.031297821551561356,
0.04136120155453682,
-0.011922778561711311,
0.041097838431596756,
0.034403473138809204,
-0.037239499390125275,
-0.009439792484045029,
0.021131914108991623,
0.02528684213757515,
0.010005438700318336,
-0.0009355653892271221,
0.004685047082602978,
-0.004509321879595518,
0.04254094883799553,
0.027967987582087517,
-0.027746323496103287,
-0.035440344363451004,
-0.007448475807905197,
0.03918631002306938,
0.015527273528277874,
0.036958567798137665,
0.008833055384457111,
0.021621258929371834,
0.019873300567269325,
-0.020244130864739418,
0.020432651042938232,
-0.010485831648111343,
0.02562733180820942,
-0.0415843166410923,
-0.06075269356369972,
0.016655536368489265,
0.03131664916872978,
0.007628250401467085,
-0.008344990201294422,
0.0002925199514720589,
0.008555171079933643,
0.01947060227394104,
0.0029724370688199997,
-0.04855397716164589,
0.0309112761169672,
0.05575976520776749,
0.03591575473546982,
-0.021382659673690796,
0.024592384696006775,
0.041307367384433746,
-0.02913716249167919,
0.00890478864312172,
-0.032374992966651917,
0.02213875576853752,
0.045305024832487106,
-0.009949072264134884,
-0.03382299840450287,
-0.00250397645868361,
0.03254120796918869,
-0.009512505494058132,
-0.024092359468340874,
0.015787919983267784,
0.022214055061340332,
0.01739044301211834,
-0.01974301226437092,
-0.026851937174797058,
-0.011405824683606625,
0.005357097834348679,
0.03201752156019211,
-0.02510286681354046,
-0.004622267559170723,
-0.05652434751391411,
0.00565570080652833,
-0.010386167094111443,
0.00911234226077795,
-0.0006751869805157185,
-0.005048500839620829,
-0.06433750689029694,
0.05298088118433952,
0.02995578944683075,
0.013729926198720932,
0.009136938489973545,
-0.003706366987898946,
0.001239656819961965,
0.000002240508592876722,
-0.002496470231562853,
0.030590517446398735,
-0.02161894179880619,
0.02226032316684723,
0.024800997227430344,
0.027300430461764336,
0.031840868294239044,
-0.0004059250932186842,
0.04880950599908829,
0.017941949889063835,
-0.010091309435665607,
0.02213052660226822,
-0.018488386645913124,
0.004896875005215406,
0.017950404435396194,
0.004834341816604137,
0.034222763031721115,
-0.0032792494166642427,
-0.036416009068489075,
0.028737373650074005,
0.04152941703796387,
-0.0024460386484861374,
-0.010196668095886707,
0.03985701501369476,
0.030505402013659477,
-0.02329288050532341,
-0.023359529674053192,
0.020324015989899635,
-0.04891319200396538,
0.009469499811530113,
0.02218637987971306,
-0.007232499308884144,
-0.007330843713134527,
0.002829489065334201,
-0.041051171720027924,
-0.029346853494644165,
-0.0006122536724433303,
-0.0020442018285393715,
0.040791239589452744,
-0.03480256348848343,
-0.005157912150025368,
-0.016037151217460632,
0.016630390658974648,
0.008667471818625927,
-0.013258649967610836,
-0.03068649210035801,
0.014610354788601398,
-0.01945997215807438,
0.017768044024705887,
-0.01753930188715458,
-0.021163349971175194,
0.002772026462480426,
0.01608622632920742,
0.015436331741511822,
0.011319596320390701,
-0.005978328175842762,
-0.010179988108575344,
0.03679275140166283,
-0.021903373301029205,
-0.06275613605976105,
0.012447424232959747,
-0.026730617508292198,
-0.011972532607614994,
-0.04846816137433052,
0.04129564389586449,
0.07518156617879868,
-0.01175045594573021,
0.029408419504761696,
0.0008137650438584387,
0.022879453375935555,
0.007092360872775316,
0.00018685114628169686,
-0.04268160089850426,
0.04994307458400726,
0.006814588792622089,
0.005712355952709913,
0.011708257719874382,
-0.0077785346657037735,
0.017172783613204956,
0.01642470620572567,
-0.01653386652469635,
0.04657513648271561,
0.03785962983965874,
-0.06591860949993134,
0.020854676142334938,
0.04131355136632919,
-0.04681086167693138,
-0.020642289891839027,
-0.02389013022184372,
-0.01201693620532751,
-0.001207993715070188,
0.02443418838083744,
-0.00854350347071886,
-0.006585719063878059,
-0.024866614490747452,
0.018305469304323196,
0.08739826083183289,
0.035246193408966064,
0.022126121446490288,
0.020851921290159225,
0.04216254875063896,
0.03812165558338165,
-0.0341779850423336,
-0.012575633823871613,
-0.01689167320728302,
0.08796420693397522,
-0.000706242979504168,
-0.0018964733462780714,
0.015099226497113705,
-0.03527563810348511,
0.015909891575574875,
-0.018806815147399902,
-0.043000850826501846,
-0.010760478675365448,
0.00757859880104661,
0.017816200852394104,
-0.0118077602237463,
-0.005828481167554855,
-0.019844071939587593,
0.021961355581879616,
-0.008647354319691658,
0.0009634022135287523,
-0.009309206157922745,
-0.032469041645526886,
0.020625822246074677,
-0.00628355797380209,
-0.010294374078512192,
0.007555899675935507,
0.0026107088197022676,
-0.00810422282665968,
0.07485856860876083,
0.033452730625867844,
0.02593068592250347,
-0.03706757724285126,
-0.002310439245775342,
-0.016426650807261467,
0.0025693506468087435,
-0.02168472483754158,
0.009290395304560661,
0.05941581726074219,
0.006710895337164402,
0.0014473404735326767,
0.00940544530749321,
-0.052211880683898926,
0.009664463810622692,
-0.030995720997452736,
-0.001776596182025969,
-0.03515702858567238,
0.007678559515625238,
-0.0054717171005904675,
0.036114588379859924,
0.013750351034104824,
-0.018458472564816475,
0.004428404849022627,
0.032093893736600876,
-0.00868190173059702,
0.006455589085817337,
-0.048096176236867905,
-0.009694618172943592,
0.008456739597022533,
0.03861000016331673,
0.00017511966871097684,
-0.0010520450305193663,
-0.03575915843248367,
-0.0005211808602325618,
0.0009541042963974178,
-0.009039186872541904,
-0.02496885508298874,
-0.0036626127548515797,
0.014084934256970882,
-0.02411004714667797,
-0.038095541298389435,
0.03586602210998535,
-0.02694748342037201,
-0.05228317901492119,
0.03240199759602547,
0.0015423272270709276,
0.028922656551003456,
-0.029261605814099312,
0.034878209233284,
0.0052427975460886955,
-0.009101281873881817,
-0.027347590774297714,
-0.04254120588302612,
-0.008611377328634262,
-0.002298740902915597,
-0.018629252910614014,
-0.0046447888016700745,
0.026548754423856735,
0.004225020296871662,
-0.014548610895872116,
-0.037255074828863144,
-0.023510146886110306,
-0.039461925625801086,
0.028688620775938034,
0.027095522731542587,
-0.018581215292215347,
-0.014496092684566975,
0.012117241509258747,
0.08914795517921448,
0.012286701239645481,
0.047937456518411636,
0.06604783982038498,
-0.008236787281930447,
-0.011159399524331093,
-0.014450553804636002,
0.012328273616731167,
-0.013801722787320614,
0.024391477927565575,
-0.02720537967979908,
-0.004914166405797005,
-0.013064690865576267,
0.00814613327383995,
0.025369815528392792,
-0.026356996968388557,
-0.04309840127825737,
0.006050236523151398,
-0.02845689095556736,
-0.019212067127227783,
-0.049823272973299026,
-0.03091169334948063,
0.028431905433535576,
0.036552511155605316,
0.04156595095992088,
0.015196188353002071,
-0.01587480865418911,
0.01990940049290657,
-0.007708608638495207,
0.01173105277121067,
0.034716445952653885,
-0.009936964139342308,
-0.017762620002031326,
0.002810036763548851,
0.0043428256176412106,
0.0053176674991846085,
-0.062437739223241806,
0.007936681620776653,
0.03422926366329193,
-0.005413434002548456,
-0.03666924312710762,
-0.0096659604460001,
0.004916204139590263,
0.001783107640221715,
0.05625355616211891,
-0.007104434072971344,
-0.0317961685359478,
0.01606813631951809,
-0.024597493931651115,
-0.03545977547764778,
-0.033428411930799484,
-0.016991591081023216,
0.00350093562155962,
0.0485001876950264,
0.00930659007281065,
0.016158167272806168,
0.013683097437024117,
-0.0075143203139305115,
-0.00047472448204644024,
0.0400046668946743,
-0.017048818990588188,
-0.03893037512898445,
-0.047934360802173615,
0.015530580654740334,
-0.02383168786764145,
-0.06356430053710938,
0.037618376314640045,
-0.007689067628234625,
-0.015175187960267067,
0.027681803330779076,
0.01416545920073986,
0.010582339018583298,
-0.01898765377700329,
0.02253407984972,
0.001785776694305241,
0.06200390309095383,
0.028030788525938988,
-0.028757598251104355,
0.038330063223838806,
-0.0034648303408175707
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Automatic Performances Tuning: Bayesian Optimization with Intel SigOpt As mentioned above, many knobs can be tweaked to improve latency and throughput on Intel CPUs, but because there are many, tuning all of them to get optimal performance can be cumbersome. For instance, in our experiments, the following knobs were tuned: - The number of cores: although using as many cores as you have is often a good idea, it does not always provide the best performance because it also means more communication between the different threads. On top of that, having better performance with fewer cores can be very useful as it allows to run multiple instances at the same time, resulting in both better latency and throughput. - The memory allocator: which memory allocator out of the default malloc, Google's tcmalloc and Facebook's jemalloc provides the best performance? - The parallelism library: which parallelism library out of GNU OpenMP and Intel OpenMP provides the best performance? - Transparent Huge Pages: does enabling Transparent Huge Pages (THP) on the system provide better performance? - KMP block time parameter: sets the time, in milliseconds, that a thread should wait, after completing the execution of a parallel region, before sleeping. Of course, the brute force approach, consisting of trying out all the possibilities will provide the best knob values to use to get optimal performance but, the size of the search space being N x 3 x 2 x 2 x 2 = 24N, it can take a lot of time: on a machine with 80 physical cores, this means trying out at most 24 x 80 = 1920 different setups! 😱 Fortunately, Intel's SigOpt, through Bayesian optimization, allows us to make these tuning experiments both faster and more convenient to analyse, while providing similar performance than the brute force approach. When we analyse the relative difference between the absolute best latency and what SigOpt provides, we observe that although it is often not as good as brute force (except for sequence length = 512 in that specific case), it gives very close performance, with 8.6% being the biggest gap on this figure. Figure 23. Absolute best latency found by SigOpt automatic tuning vs brute force Figure 24. Relative best latency found by SigOpt automatic tuning vs brute force SigOpt is also very useful for analysis: it provides a lot of figures and valuable information. First, it gives the best value it was able to find, the corresponding knobs, and the history of trials and how it improved as trials went, for example, with sequence length = 20: Figure 25. SigOpt best value reporting Figure 26. SigOpt best value reporting In this specific setup, 16 cores along with the other knobs were able to give the best results, that is very important to know, because as mentioned before, that means that multiple instances of the model can be run in parallel while still having the best latency for each. It also shows that it had converged at roughly 20 trials, meaning that maybe 25 trials instead of 40 would have been enough. A wide range of other valuable information is available, such as Parameter Importance: As expected, the number of cores is, by far, the most important parameter, but the others play a part too, and it is very experiment dependent. For instance, for the sequence length = 512 experiment, this was the Parameter Importance: Figure 27. SigOpt best value for Batch Size = 1, Sequence Length = 20 Figure 28. SigOpt best value for Batch Size = 1, Sequence Length = 512 Here not only the impact of using OpenMP vs Intel OpenMP was bigger than the impact of the allocator, the relative importance of each knob is more balanced than in the sequence length = 20 experiment. And many more figures, often interactive, are available on SigOpt such as: - 2D experiment history, allowing to compare knobs vs knobs or knobs vs objectives - 3D experiment history, allowing to do the same thing as the 2D experiment history with one more knob / objective. | [
0.010541774332523346,
0.05423208326101303,
-0.05587153136730194,
0.04580003023147583,
-0.00459911348298192,
-0.013753358274698257,
0.044738125056028366,
0.04667304456233978,
-0.058413274586200714,
-0.03979199752211571,
-0.011056851595640182,
0.04091421142220497,
0.0344260111451149,
-0.04719776287674904,
0.013512724079191685,
-0.013845265842974186,
0.025964761152863503,
-0.1142197847366333,
0.02779533714056015,
0.037845123559236526,
0.11061887443065643,
-0.03169475123286247,
0.06072640419006348,
0.000719685573130846,
0.013504114001989365,
0.0277866143733263,
-0.05510234832763672,
-0.02099943347275257,
-0.02073393389582634,
-0.006712786853313446,
-0.12459396570920944,
-0.01150148268789053,
0.002537110121920705,
-0.030106976628303528,
0.0026812483556568623,
0.007044192403554916,
-0.0557335689663887,
0.013010079972445965,
0.008870694786310196,
-0.035491831600666046,
0.014210381545126438,
-0.07691408693790436,
-0.03594581037759781,
0.02550007775425911,
-0.046816691756248474,
0.0366644412279129,
-0.004183927550911903,
0.07163490355014801,
-0.0022687134332954884,
-0.09715285152196884,
0.00088416354265064,
0.010853859595954418,
0.07604419440031052,
0.00992184691131115,
-0.011257603764533997,
0.009242321364581585,
0.010004046373069286,
-0.034247204661369324,
-0.05413533002138138,
0.08786829560995102,
0.0386282317340374,
-0.051046717911958694,
0.05358276143670082,
0.0008656269055791199,
0.045744311064481735,
0.0004744255274999887,
-0.014717057347297668,
-0.00799086969345808,
-0.023013383150100708,
-0.044059619307518005,
-0.03296482563018799,
-0.002258747350424528,
0.020705942064523697,
0.018040193244814873,
-0.0011727458331733942,
0.007451582700014114,
-0.018560446798801422,
0.0577564537525177,
-0.005757306702435017,
0.039333000779151917,
-0.0035983058623969555,
0.04986441135406494,
0.01247613038867712,
0.022993508726358414,
-0.00013342499732971191,
0.028148040175437927,
0.02511194907128811,
-0.010909426026046276,
-0.006897525861859322,
0.007164281792938709,
0.026672305539250374,
-0.11695343255996704,
0.04626845195889473,
-0.027109337970614433,
-0.04645264893770218,
-0.05233573541045189,
-0.003210543654859066,
-0.016327889636158943,
0.03678397461771965,
0.026346556842327118,
0.0014196982374414802,
-0.0016557296039536595,
0.022966092452406883,
0.022430283948779106,
-0.0700644701719284,
0.08910425752401352,
-0.0023287527728825808,
-0.04030503332614899,
-0.09465895593166351,
0.10138003528118134,
-0.023523304611444473,
0.05217983201146126,
0.02151878923177719,
0.04183369129896164,
-0.0429142490029335,
-0.013841645792126656,
0.035793907940387726,
-0.022907881066203117,
-0.006341469474136829,
-0.08854763209819794,
-0.05647044628858566,
0.13217207789421082,
0.025715606287121773,
0.030781805515289307,
0.043395984917879105,
0.01615852117538452,
0.07081803679466248,
0.01872614584863186,
0.05020885914564133,
0.005742321256548166,
0.05044498294591904,
0.03495156392455101,
0.016317036002874374,
-0.01633450761437416,
-0.011157797649502754,
0.017792388796806335,
-0.001509672380052507,
-0.035544589161872864,
-0.04852372407913208,
0.06918637454509735,
-0.002120937453582883,
-0.0320877730846405,
0.029646631330251694,
0.04536186903715134,
0.0884053185582161,
0.02039165422320366,
-0.07429609447717667,
0.05057470127940178,
-0.017245883122086525,
0.00651834299787879,
-0.09715277701616287,
0.013189471326768398,
-0.055571943521499634,
-0.04487749561667442,
0.010606084950268269,
0.09585020691156387,
-0.008328518830239773,
-0.04184948652982712,
-0.045611459761857986,
-0.08662370592355728,
0.023638537153601646,
0.04527841508388519,
-0.0628371611237526,
-0.03863357752561569,
0.00641644699499011,
0.03032967448234558,
0.12760679423809052,
-0.0007263838197104633,
0.004281144123524427,
0.02587256021797657,
-0.05055415257811546,
0.06085116043686867,
0.05566466972231865,
-0.032590072602033615,
0.014893648214638233,
-0.028641672804951668,
0.03840680047869682,
0.044438332319259644,
-0.047301266342401505,
0.02889735996723175,
-0.029076306149363518,
0.05755233392119408,
0.004121052101254463,
0.050289303064346313,
0.009355191141366959,
-0.09826455265283585,
0.01902708411216736,
-0.05141224339604378,
-0.014547184109687805,
-0.03659514710307121,
-0.05508212000131607,
-0.0018588433740660548,
0.10597171634435654,
-0.04734846577048302,
0.024210132658481598,
-0.00700997281819582,
-0.013128481805324554,
0.07268416881561279,
0.10765785723924637,
0.024299317970871925,
0.015245884656906128,
-0.026857437565922737,
0.043388184159994125,
-0.015129441395401955,
-0.0656094029545784,
-0.05937251076102257,
-0.01428100373595953,
-0.018529733642935753,
-0.02555878274142742,
0.014760399237275124,
-0.028071507811546326,
-0.0990959033370018,
-0.04410290718078613,
-0.05338600277900696,
-0.04205675795674324,
0.04350854828953743,
0.0470975898206234,
0.000616816570982337,
0.04147768020629883,
-0.04933249205350876,
0.06352727115154266,
-0.016801780089735985,
0.00013923800725024194,
-0.007792042102664709,
-0.03478628024458885,
0.025780146941542625,
0.024362727999687195,
-0.006841205060482025,
0.09612700343132019,
0.005614780820906162,
-0.02017131634056568,
-0.05554569885134697,
0.01429934985935688,
0.08422935754060745,
0.02637205272912979,
0.05405895784497261,
-0.03612944483757019,
0.054005660116672516,
0.04630476236343384,
-0.0496835857629776,
-0.07764492183923721,
0.0027331707533448935,
-0.0630284771323204,
0.07130402326583862,
0.044024210423231125,
0.02794615551829338,
0.047789957374334335,
-0.08558721095323563,
-0.018700217828154564,
-0.04370938241481781,
-0.050218790769577026,
-0.019629351794719696,
-0.004599610809236765,
-0.06817153841257095,
-0.03887075558304787,
-0.04138586297631264,
0.0019610885065048933,
-0.010949168354272842,
-0.02416185475885868,
0.02259083464741707,
0.021885870024561882,
0.020401058718562126,
0.019190266728401184,
0.039634328335523605,
0.057204581797122955,
-0.032958511263132095,
-0.011790398508310318,
0.006793615408241749,
-0.013450002297759056,
-0.04835958778858185,
-0.05027833953499794,
-0.004044786095619202,
0.013007785193622112,
0.006934726145118475,
0.03833135962486267,
0.027994852513074875,
0.00720629608258605,
0.0030596470460295677,
-0.028138060122728348,
0.02634735219180584,
0.004673900548368692,
-0.05460399389266968,
0.01048310473561287,
-0.014202294871211052,
0.018411656841635704,
0.03234736993908882,
-0.023198049515485764,
0.020924165844917297,
-0.04778013005852699,
0.006551715545356274,
-0.007964842952787876,
-0.015420651994645596,
-0.0006099619786255062,
0.023344559594988823,
0.006303155329078436,
0.037377700209617615,
0.0006824771990068257,
-0.05451011285185814,
-0.02454339899122715,
-0.03228364512324333,
0.008565692231059074,
-0.012378083541989326,
-0.025649428367614746,
-0.022369662299752235,
-0.003592765424400568,
0.01870684325695038,
-0.01295826118439436,
0.01726853847503662,
-0.08143993467092514,
-0.010029641911387444,
-0.03203396499156952,
-0.006569851189851761,
-0.037560418248176575,
-0.041954848915338516,
0.019738104194402695,
-0.004656605888158083,
-0.02454967610538006,
0.030590012669563293,
-0.008302966132760048,
0.015539314597845078,
0.00425370829179883,
0.0229597557336092,
0.033871687948703766,
0.041202932596206665,
0.03733259439468384,
0.002422168618068099,
0.011206098832190037,
0.01742204651236534,
0.048293739557266235,
0.01853737235069275,
0.0032775350846350193,
-0.015291320160031319,
-0.021647466346621513,
0.013847730122506618,
-0.022206643596291542,
-0.007466811221092939,
-0.00823514349758625,
0.023574165999889374,
-0.06562209874391556,
-0.005136966705322266,
-0.043941691517829895,
0.003548890585079789,
0.013000481761991978,
-0.05021672323346138,
0.012161492370069027,
0.040335413068532944,
0.032374557107686996,
0.061268214136362076,
-0.004364887252449989,
0.03289981186389923,
0.05789192393422127,
-0.02802455797791481,
0.030700132250785828,
0.0353110134601593,
0.042844053357839584,
-0.013712147250771523,
-0.005116330925375223,
-0.054205622524023056,
-0.032092418521642685,
-0.002003483008593321,
-0.023770462721586227,
-0.016012994572520256,
-0.05448403209447861,
-0.021857889369130135,
-0.022776834666728973,
0.03784171864390373,
-0.014957240782678127,
0.04307924583554268,
-0.05497245490550995,
0.014415904879570007,
0.015729229897260666,
0.024748673662543297,
0.016353629529476166,
0.013519855216145515,
-0.006308214273303747,
-0.0006272211903706193,
-0.01613900624215603,
-0.015430254861712456,
0.027554616332054138,
0.017363673076033592,
-0.006669292692095041,
-0.001983322435989976,
-0.007605505175888538,
-0.008049039170145988,
-0.028689060360193253,
-0.03303752467036247,
0.026916345581412315,
0.013198919594287872,
-0.06505712121725082,
-0.03536321595311165,
-0.03234219178557396,
-0.004065448883920908,
0.06145809218287468,
0.0192855391651392,
-0.02133174240589142,
0.007772668730467558,
0.0052144480869174,
0.02452080138027668,
-0.00041399255860596895,
0.015687504783272743,
0.012522955425083637,
-0.009762558154761791,
0.0072946385480463505,
0.05398210138082504,
0.057559117674827576,
0.0007407352677546442,
0.049277156591415405,
0.03488612920045853,
-0.013115642592310905,
0.009143547154963017,
0.01647377386689186,
-0.018158696591854095,
-0.05864916741847992,
0.04922332614660263,
-0.01750231720507145,
-0.02933713234961033,
0.048889029771089554,
0.03418443724513054,
-0.012144487351179123,
-0.04697506129741669,
0.029568368569016457,
-0.03348415717482567,
0.07379448413848877,
0.014905136078596115,
0.004388009663671255,
0.013237891718745232,
0.013020222075283527,
0.03462093695998192,
-0.03795001283288002,
0.023019487038254738,
-0.037247661501169205,
0.015850579366087914,
0.04433026909828186,
-0.04457717388868332,
-0.00019712623907253146,
0.023710208013653755,
0.014189808629453182,
-0.010657568462193012,
-0.052889954298734665,
0.016196945682168007,
-0.00022356220870278776,
-0.01081794686615467,
0.014443065039813519,
-0.016050001606345177,
-0.04427984356880188,
-0.010782422497868538,
0.003934118896722794,
-0.05303851142525673,
0.021071964874863625,
0.02769472450017929,
0.022842301055788994,
-0.004076663870364428,
0.03371276333928108,
0.044087499380111694,
0.012059384025633335,
-0.010619491338729858,
0.009273530915379524,
0.04562876746058464,
0.004348906688392162,
0.020534440875053406,
-0.024809904396533966,
-0.02623591758310795,
0.05364378169178963,
-0.033902108669281006,
0.03254217654466629,
0.008862568996846676,
0.023826848715543747,
0.05504821985960007,
0.02108757011592388,
-0.05669570341706276,
-0.07258029282093048,
-0.0028673221822828054,
0.012691624462604523,
0.001156392740085721,
0.02133841998875141,
-0.021281648427248,
-0.0031955831218510866,
-0.049635499715805054,
0.015828484669327736,
0.011942381039261818,
-0.025113943964242935,
-0.017209568992257118,
0.044633012264966965,
0.005676742177456617,
0.010982189327478409,
-0.025863323360681534,
-0.0002490898477844894,
0.004942487925291061,
-0.03724163398146629,
-0.04670237377285957,
0.001983337802812457,
-0.004364507272839546,
0.0195054542273283,
-0.013875787146389484,
0.03480660170316696,
0.0137550700455904,
0.009093403816223145,
-0.037761807441711426,
0.02890441007912159,
-0.055207159370183945,
0.03722737729549408,
-0.03615090996026993,
0.01605936698615551,
-0.017435794696211815,
0.027922309935092926,
0.03019283153116703,
0.007720486260950565,
-0.031948432326316833,
0.044611480087041855,
-0.04248050972819328,
-0.0008049815660342574,
-0.0403393879532814,
0.04881621152162552,
0.04452528432011604,
0.02559404820203781,
-0.029541052877902985,
-0.07361453026533127,
-0.0003664660907816142,
0.0012527038343250751,
-0.0324513204395771,
-0.036066651344299316,
0.036892201751470566,
-0.009621573612093925,
-0.03387567773461342,
-0.05350231006741524,
-0.016444509848952293,
0.010423477739095688,
-0.008427640423178673,
-0.040784802287817,
-0.017977777868509293,
-0.04590488225221634,
0.022529058158397675,
-0.014611147344112396,
0.019580062478780746,
0.033731963485479355,
-0.004726870451122522,
-0.010913548991084099,
0.03737610951066017,
0.029167115688323975,
-0.038669150322675705,
-0.03680863231420517,
0.0348697155714035,
0.010602552443742752,
-0.042332060635089874,
0.07955151051282883,
0.032994456589221954,
0.0029097446240484715,
0.025448322296142578,
-0.011144393123686314,
-0.04082662984728813,
-0.002996945520862937,
0.039775095880031586,
-0.04791715741157532,
0.009826396591961384,
0.005109380930662155,
-0.015589780174195766,
-0.016306554898619652,
-0.0006135898875072598,
-0.012530302628874779,
0.017890527844429016,
-0.0031703172717243433,
-0.0012688713613897562,
-0.02277556248009205,
0.003555682487785816,
-0.001780495629645884,
-0.0042575206607580185,
0.011233814060688019,
0.0383048951625824,
0.04134801775217056,
-0.05996337905526161,
-0.017611591145396233,
0.0007432078127749264,
-0.021065304055809975,
0.03238712623715401,
0.0018365000141784549,
-0.05555873364210129,
0.029259970411658287,
-0.023035531863570213,
-0.0046221185475587845,
-0.02899756096303463,
-0.013428251259028912,
-0.014795102179050446,
-0.03918017819523811,
-0.005632325075566769,
-0.008537547662854195,
0.0583745501935482,
0.01386414933949709,
0.028310682624578476,
0.023796068504452705,
0.019620943814516068,
0.051868658512830734,
-0.0064557516016066074,
-0.0005650306702591479,
0.016051799058914185,
0.02979295887053013,
-0.023507675155997276,
0.036829885095357895,
0.07855451852083206,
0.03243342041969299,
0.009570579044520855,
0.014910729601979256,
-0.005252388305962086,
-0.0018851335626095533,
0.04422822222113609,
0.05593735724687576,
-0.011960741132497787,
0.0022459274623543024,
-0.028739985078573227,
0.010262837633490562,
0.03076747991144657,
-0.002168937586247921,
0.019103577360510826,
-0.024237584322690964,
-0.0011736588785424829,
-0.01966976188123226,
-0.021014053374528885,
-0.05199836939573288,
-0.005430456716567278,
-0.08209974318742752,
0.06015975400805473,
-0.0005380527582019567,
0.0370018295943737,
-0.03706863895058632,
0.0030772078316658735,
0.03060406818985939,
-0.01727629080414772,
0.005598838906735182,
0.024494491517543793,
-0.03403615951538086,
0.02186429314315319,
0.029908420518040657,
-0.03071792796254158,
-0.029506132006645203,
-0.01827947609126568,
-0.007110085338354111,
-0.038888491690158844,
-0.019778253510594368,
0.015582858584821224,
0.005443011410534382,
0.024098919704556465,
-0.02236037887632847,
-0.03349600359797478,
-0.024726461619138718,
0.03269227594137192,
-0.03985057771205902,
0.018456850200891495,
-0.027336683124303818,
0.006527062971144915,
-0.0033180282916873693,
0.03692435473203659,
0.027028730139136314,
0.053313612937927246,
-0.0016435727011412382,
0.011380268260836601,
0.04908126965165138,
-0.0018413193756714463,
-0.03094111941754818,
0.027401240542531013,
-0.005822571460157633,
0.010962637141346931,
-0.08445058017969131,
-0.011788913048803806,
-0.02084173634648323,
-0.03471989184617996,
0.04197406768798828,
0.00643231300637126,
0.05956968665122986,
-0.012822592630982399,
0.067642942070961,
-0.001515104784630239,
-0.0020233625546097755,
0.028688402846455574,
0.028183013200759888,
0.02081122063100338,
-0.04030541703104973,
-0.031170763075351715,
0.02778925560414791,
0.043226368725299835,
-0.025370050221681595,
0.005954161286354065,
0.010359051637351513,
-0.020455066114664078,
-0.00005351374056772329,
0.00932226236909628,
0.009301353245973587,
0.0020808945409953594,
-0.005287850741297007,
-0.01234797015786171,
0.03595772758126259,
0.037127960473299026,
0.02334638126194477,
0.02554135210812092,
0.010448419488966465,
0.016136163845658302,
-0.00023889908334240317,
0.01866767928004265,
0.0026707900688052177,
0.025291888043284416,
-0.023456161841750145,
-0.012540330179035664,
-0.004863690119236708,
-0.01681363582611084,
-0.02165229059755802,
-0.011577919125556946,
-0.03665052354335785,
-0.017574189230799675,
-0.015423729084432125,
-0.03069198690354824,
-0.05911404639482498,
-0.029740072786808014,
0.029829241335392,
0.019989049062132835,
-0.012816970236599445,
0.0381971150636673,
-0.0069572459906339645,
0.018569713458418846,
-0.023311754688620567,
-0.005030782427638769,
0.0008790252031758428,
0.038911670446395874,
-0.013242618180811405,
-0.06014471501111984,
0.014481738209724426,
0.032046541571617126,
0.008614074438810349,
0.028213726356625557,
0.041411980986595154,
-0.013047600165009499,
-0.007265068590641022,
-0.013815619051456451,
0.043080855160951614,
-0.03521821275353432,
0.02181251533329487,
0.018867596983909607,
0.039180997759103775,
-0.011420176364481449,
0.0026997756212949753,
-0.04389271140098572,
0.0046926336362957954,
0.03671615570783615,
0.02279157191514969,
0.06863491237163544,
-0.009823676198720932,
0.02128714509308338,
-0.015675684437155724,
0.038810163736343384,
0.015277799218893051,
-0.009216364473104477,
-0.03724757581949234,
-0.01158831175416708,
-0.0627928152680397,
0.05165700241923332,
-0.05588584020733833,
-0.05956906080245972,
0.010288304649293423,
-0.010915380902588367,
-0.023027578368782997,
0.003680960973724723,
0.008109851740300655,
0.022589458152651787,
0.01942180097103119,
-0.009358433075249195,
0.0005993793602101505,
0.006422027479857206,
0.03827064856886864,
0.04948136955499649,
-0.026707036420702934,
-0.0587308295071125
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Memory allocator benchmarks Again, we first compare performance against frameworks executing in an eager fashion. This is potentially the use case where the allocator can play the biggest role: As the graph is unknown before its execution, each framework must manage the memory required for each operation when it meets the actual execution of the above node, no planning ahead possible. In this context, the allocator is a major component due to all the system calls to allocate and reclaim memory. Figure 13. PyTorch memory allocator and cores scaling latencies Figure 14. Google's TensorFlow memory allocator and cores scaling latencies Figure 15. Google's TensorFlow with oneDNN enabled memory allocator and cores scaling latencies Figure 16. Intel TensorFlow memory allocator and cores scaling latencies As per the graph above, you can notice that the standard library allocator (glibc) is often behind performance-wise but provides reasonable performance. Jemalloc allocator is sometimes the fastest around but in very specific situations, where the concurrency is not that high, this can be explained by the underlying structure jemalloc uses internally which is out of the scope of this blog, but you can read the Facebook Engineering blog if you want to know more about it. Finally, tcmalloc seems to be the one providing generally best performances across all the workloads benchmarked here. Again, tcmalloc has a different approach than Jemalloc in the way it allocates resources, especially tcmalloc maintains a pool of memory segments locally for each thread, which reduces the necessity to have global, exclusive, critical paths. Again, for more details, I invite you to read the full blog by Google Abseil team. Now, back to the graph mode where we benchmark framework having an omniscient representation of the overall computation graph. Figure 17. TorchScript memory allocator and cores scaling latencies Figure 18. Google's TensorFlow memory allocator and cores scaling latencies Figure 19. Google's TensorFlow with oneDNN enabled memory allocator and cores scaling latencies Figure 20. Intel TensorFlow memory allocator and cores scaling latencies This time, by knowing the underlying structure of the operator flows and matrix shapes involved then the framework can plan and reserve the required resources beforehand. In this context, and as it is shown in the chart above, the difference between framework is very small and there is no clear winner between jemalloc and tcmalloc. Of course, glibc is still slightly behind as a general-purpose memory allocator, but the margin is less significant than in the eager setup. To sum it up, tuning the memory allocator can provide an interesting item to grab the last milliseconds' improvement at the end of the optimization process, especially if you are already using traced computation graphs. | [
0.01766936108469963,
0.04363169148564339,
0.011572154238820076,
0.028774362057447433,
-0.014328385703265667,
0.01070710550993681,
0.0076801055110991,
0.020253872498869896,
-0.07378380000591278,
-0.035849492996931076,
0.012991451658308506,
0.06604252755641937,
-0.014197290875017643,
0.05227629840373993,
0.0728617012500763,
-0.031776927411556244,
0.03701687976717949,
-0.059756096452474594,
0.0317690372467041,
0.030139146372675896,
0.043352268636226654,
-0.0573820024728775,
0.054013147950172424,
-0.016079183667898178,
-0.012630653567612171,
0.025199512019753456,
-0.055988509207963943,
-0.01897984929382801,
-0.04344423487782478,
-0.04082580655813217,
-0.12744171917438507,
0.030996067449450493,
0.05991976335644722,
-0.012780393473803997,
0.02323571965098381,
-0.06577806174755096,
-0.06420879811048508,
0.09440179169178009,
0.013945838436484337,
-0.0694899931550026,
0.03881722688674927,
-0.016733594238758087,
-0.09214922785758972,
0.021520763635635376,
-0.06378358602523804,
0.03647277504205704,
-0.09730907529592514,
0.04608175531029701,
-0.015441863797605038,
0.016119444742798805,
-0.10122424364089966,
0.02369287610054016,
0.04442375525832176,
0.012110301293432713,
-0.019462596625089645,
0.04188580811023712,
0.04201006889343262,
-0.04545370116829872,
0.012243038043379784,
-0.002781128278002143,
0.04827621206641197,
0.024239877238869667,
0.0639420747756958,
0.08585406839847565,
0.05986904352903366,
-0.032022275030612946,
0.021187735721468925,
0.04077859967947006,
-0.018389465287327766,
0.01743682287633419,
0.03505503386259079,
-0.003886293387040496,
0.017646949738264084,
0.05599666386842728,
-0.0077378470450639725,
-0.04518571496009827,
-0.04036601632833481,
0.025784483179450035,
0.028835536912083626,
0.026595551520586014,
-0.03487773612141609,
0.05184851586818695,
0.12999682128429413,
-0.03575688600540161,
-0.0024466360919177532,
0.025476273149251938,
0.001979922177270055,
0.007763594854623079,
-0.02569098398089409,
0.024052567780017853,
-0.002526672324165702,
-0.09357896447181702,
0.055012766271829605,
0.017035165801644325,
-0.00042560655856505036,
-0.013479412533342838,
0.014837336726486683,
0.008597594685852528,
0.05375175550580025,
0.054589927196502686,
-0.03318445011973381,
-0.07209310680627823,
-0.023622075095772743,
-0.04075893387198448,
-0.0339827723801136,
0.07819314301013947,
-0.056206345558166504,
-0.0787307545542717,
0.0013306598411872983,
0.040967170149087906,
-0.0559530146420002,
0.041104912757873535,
-0.019424892961978912,
0.05172483250498772,
-0.05527690425515175,
-0.024893565103411674,
-0.04412947595119476,
-0.02486160397529602,
-0.044669412076473236,
0.04474193975329399,
0.01864360272884369,
0.10616537183523178,
0.063823401927948,
-0.039777763187885284,
-0.01691003516316414,
0.0320991650223732,
0.010667716152966022,
-0.021717268973588943,
-0.0156037462875247,
-0.016430100426077843,
0.05715925246477127,
0.011684943921864033,
0.06303063035011292,
-0.012721353210508823,
-0.03283507749438286,
-0.018743595108389854,
0.009720738045871258,
-0.014271866530179977,
-0.020757149904966354,
-0.022060558199882507,
-0.07777470350265503,
-0.015363682061433792,
0.0005021585966460407,
0.04021196439862251,
0.03840517997741699,
-0.013663208112120628,
-0.031806860119104385,
0.027576502412557602,
-0.0024489513598382473,
-0.004214289598166943,
-0.08550707250833511,
0.05416266247630119,
-0.054114244878292084,
0.015177263878285885,
0.018164418637752533,
0.06059456244111061,
0.026886282488703728,
-0.03802584111690521,
-0.05173785611987114,
0.0007009206456132233,
-0.04204300791025162,
0.019261132925748825,
-0.017571134492754936,
-0.08247300237417221,
-0.007973696105182171,
-0.0023414671886712313,
0.12978123128414154,
-0.07171440869569778,
-0.017569392919540405,
0.007866410538554192,
-0.05571186542510986,
0.008893761783838272,
0.06161627918481827,
-0.055541280657052994,
-0.05542970448732376,
0.01691901497542858,
-0.01877843216061592,
0.03207297623157501,
0.004483114928007126,
0.015577116049826145,
-0.009330754168331623,
0.016164161264896393,
-0.02733246609568596,
0.05098309740424156,
0.037209562957286835,
-0.10823101550340652,
-0.03655415028333664,
-0.08198036253452301,
0.02502933144569397,
-0.012073203921318054,
-0.0694156214594841,
-0.03546758368611336,
0.029223797842860222,
-0.07224378734827042,
0.07598365843296051,
-0.04221934452652931,
0.008963925763964653,
0.05164334923028946,
0.08337292075157166,
0.040477246046066284,
0.021588779985904694,
-0.0062015769071877,
0.03552084416151047,
0.007977889850735664,
-0.04420357570052147,
-0.04984787479043007,
0.008128364570438862,
-0.0597693994641304,
0.032603148370981216,
0.0009754408383741975,
0.045574020594358444,
-0.11054887622594833,
-0.0508078895509243,
-0.00974374171346426,
-0.012138431891798973,
0.006275434512645006,
0.039343975484371185,
0.051715318113565445,
0.06413303315639496,
0.017957238480448723,
0.12420735508203506,
-0.08367639780044556,
-0.018352147191762924,
0.01940928027033806,
-0.05871954560279846,
0.02969285100698471,
0.020375559106469154,
0.005979814566671848,
0.09095857292413712,
-0.037764232605695724,
0.005678430199623108,
-0.05802874267101288,
-0.07473473250865936,
0.11712251603603363,
0.02034982293844223,
-0.02651403658092022,
-0.03371934965252876,
0.1140662133693695,
0.037944991141557693,
-0.04756122827529907,
-0.06321870535612106,
0.01883520558476448,
0.05489254742860794,
0.030090482905507088,
-0.030592065304517746,
0.03260776400566101,
-0.02030758187174797,
-0.059907373040914536,
-0.0071017988957464695,
0.010855307802557945,
-0.05567779392004013,
-0.010644766502082348,
0.030662791803479195,
-0.027853671461343765,
0.07518227398395538,
0.016382725909352303,
0.0017862761160358787,
-0.03756505995988846,
-0.006962329614907503,
0.012316049076616764,
-0.011605569161474705,
0.0035034501925110817,
-0.025547612458467484,
-0.04317975789308548,
0.03337310254573822,
-0.030588801950216293,
0.01345915999263525,
-0.014784243889153004,
0.00850727315992117,
0.014839696697890759,
-0.008282299153506756,
-0.03368166461586952,
0.053758781403303146,
-0.02930537611246109,
0.0065416316501796246,
-0.001001726370304823,
0.03837539255619049,
-0.06396304816007614,
-0.02096780762076378,
-0.017472660169005394,
-0.0030945995822548866,
-0.005968416575342417,
0.02256753295660019,
0.026003070175647736,
-0.011187450028955936,
0.013447592966258526,
0.02442479133605957,
0.02385536953806877,
-0.027103764936327934,
0.02005968615412712,
0.017530208453536034,
0.01319985929876566,
0.021449953317642212,
0.01382062304764986,
-0.0156088313087821,
-0.0011733834398910403,
-0.02332938089966774,
-0.036979593336582184,
0.0023761512711644173,
-0.005345562472939491,
-0.024765439331531525,
0.018377799540758133,
-0.044995956122875214,
-0.020970679819583893,
-0.03256012499332428,
0.05195196345448494,
-0.00026707147480919957,
0.039823051542043686,
-0.10208462178707123,
-0.016096726059913635,
-0.013523143716156483,
-0.006849281489849091,
-0.038350481539964676,
-0.018544552847743034,
0.015164019539952278,
0.01271875575184822,
-0.0037274647038429976,
0.03977600112557411,
-0.006475628819316626,
-0.0016761226579546928,
-0.01776105910539627,
0.025560520589351654,
-0.006246388424187899,
0.025064677000045776,
-0.010997147299349308,
0.03718569874763489,
0.013924682512879372,
-0.0016166339628398418,
0.016795378178358078,
0.012297375127673149,
-0.0499049574136734,
0.006205427460372448,
-0.06821363419294357,
0.01136318501085043,
-0.02863725647330284,
0.01212186086922884,
0.05104672908782959,
-0.022017735987901688,
-0.001035921974107623,
-0.020303113386034966,
-0.02805563434958458,
-0.03550339117646217,
-0.05168233439326286,
0.015368063002824783,
-0.023764556273818016,
0.00689946161583066,
0.004436912946403027,
0.023996490985155106,
0.047576624900102615,
0.01651167869567871,
0.06772040575742722,
-0.008796158246695995,
0.04169739782810211,
-0.016109038144350052,
0.01418455969542265,
-0.029232652857899666,
0.02159678004682064,
-0.06614727526903152,
-0.04127845540642738,
-0.0037046344950795174,
0.025614900514483452,
0.03749195113778114,
-0.01939987763762474,
-0.04726351052522659,
-0.06515483558177948,
0.014279480092227459,
-0.00530982157215476,
-0.015711018815636635,
-0.033009760081768036,
0.03712279722094536,
0.026759665459394455,
0.05688353255391121,
-0.03315103426575661,
-0.020041504874825478,
0.01425478607416153,
0.011720695532858372,
-0.02570369280874729,
-0.014560881070792675,
-0.04057164117693901,
0.05126987770199776,
-0.010167339816689491,
0.009273584932088852,
-0.02087528631091118,
0.02761528268456459,
-0.02103273570537567,
0.024041960015892982,
0.03976394236087799,
0.013090214692056179,
-0.06112068146467209,
-0.06482986360788345,
-0.03844286873936653,
-0.011905211955308914,
0.003311876906082034,
0.04899485781788826,
-0.010049779899418354,
-0.016245953738689423,
0.026446860283613205,
0.038011420518159866,
0.020072372630238533,
-0.009674684144556522,
0.0035109613090753555,
-0.007516235113143921,
0.02079094387590885,
-0.005089166108518839,
0.062429279088974,
0.011760830879211426,
-0.01329899299889803,
0.04542599990963936,
0.012023812159895897,
-0.027428705245256424,
0.0016751018119975924,
-0.004802193026989698,
0.024396559223532677,
0.023741377517580986,
-0.0325130969285965,
0.007973934523761272,
0.020400723442435265,
0.041402023285627365,
0.025670453906059265,
0.02347402647137642,
0.0230511873960495,
-0.03834782913327217,
0.021323077380657196,
0.024896975606679916,
0.008645119145512581,
-0.016914615407586098,
-0.025875478982925415,
0.03331084921956062,
-0.0169062539935112,
0.022855525836348534,
-0.006497957278043032,
0.02445260062813759,
0.020675500854849815,
-0.005621005315333605,
-0.012134063988924026,
-0.024240437895059586,
0.015869667753577232,
-0.020738231018185616,
-0.056587815284729004,
0.03726371377706528,
-0.008034132421016693,
0.0029717409051954746,
-0.0010314051760360599,
-0.010049312375485897,
-0.028482265770435333,
-0.001704700174741447,
0.014288822188973427,
-0.05826849490404129,
0.008883216418325901,
0.033028293401002884,
-0.010835506021976471,
-0.02819306030869484,
-0.007603277452290058,
0.02247510850429535,
-0.050532903522253036,
0.030620187520980835,
-0.055069636553525925,
0.0008405963890254498,
0.02552507445216179,
-0.033443279564380646,
0.01184707973152399,
0.02420714497566223,
0.04067021608352661,
-0.01755225844681263,
0.009026309475302696,
-0.024839170277118683,
0.023235289379954338,
0.020224785432219505,
0.030033733695745468,
-0.03291286528110504,
-0.0359981507062912,
0.011299804784357548,
0.0059724655002355576,
0.022206034511327744,
-0.00877564400434494,
-0.026083920150995255,
0.052432719618082047,
0.00677375728264451,
0.01005709171295166,
0.03958785906434059,
-0.03472316265106201,
-0.017410598695278168,
0.03529977798461914,
0.03982611373066902,
0.035745926201343536,
0.00608828803524375,
-0.017664171755313873,
0.05515545606613159,
-0.029785411432385445,
-0.027746494859457016,
0.01916694827377796,
-0.006101636681705713,
0.029703475534915924,
0.0027194865979254246,
0.03534391522407532,
0.057615771889686584,
-0.03321710228919983,
0.05050387606024742,
0.027221741154789925,
-0.03759383410215378,
0.009281361475586891,
-0.04992690682411194,
0.04956679418683052,
-0.017418328672647476,
-0.025282161310315132,
0.04952272027730942,
0.011937424540519714,
-0.01837766170501709,
0.03371116518974304,
0.030816348269581795,
-0.0390755832195282,
-0.03551802039146423,
0.030419664457440376,
0.03395862504839897,
0.03237909451127052,
-0.059296417981386185,
-0.006604957394301891,
-0.04052620753645897,
-0.018475042656064034,
-0.014284132979810238,
-0.033983271569013596,
0.009762637317180634,
0.0280547384172678,
-0.05305839702486992,
-0.025159073993563652,
-0.004867900628596544,
0.0029131569899618626,
0.017796533182263374,
-0.0169675312936306,
0.019463839009404182,
-0.0203676987439394,
0.01163007877767086,
0.021209264174103737,
-0.023826779797673225,
0.009327067993581295,
-0.002373382681980729,
-0.011221223510801792,
0.02377086877822876,
0.013531717471778393,
-0.006853090599179268,
-0.01464499719440937,
0.02493920736014843,
0.01961510442197323,
-0.0012646605027839541,
0.07189495116472244,
-0.003046513767912984,
0.05762006342411041,
-0.05979882553219795,
-0.0383269265294075,
0.0025996232870966196,
-0.021077856421470642,
0.001129644108004868,
-0.018816692754626274,
0.007861532270908356,
0.0764353796839714,
-0.02063741907477379,
-0.021137509495019913,
-0.006733737885951996,
-0.0020538917742669582,
-0.0007902425131760538,
0.03228911757469177,
-0.029686158522963524,
0.018812179565429688,
-0.02791474387049675,
-0.030586272478103638,
0.006676411721855402,
0.0179107878357172,
0.05031011626124382,
0.02532821334898472,
-0.03313551843166351,
0.05868969485163689,
0.023324647918343544,
-0.037135470658540726,
0.024018999189138412,
0.04097472503781319,
-0.0335669182240963,
-0.01509685255587101,
-0.005064172670245171,
-0.019095612689852715,
0.045879069715738297,
-0.033090099692344666,
-0.001821473939344287,
-0.013876783661544323,
0.01558926235884428,
-0.011938516981899738,
0.05835894122719765,
-0.0023331346455961466,
0.04921778663992882,
0.004192808177322149,
0.07458417117595673,
0.03735463693737984,
-0.03849509358406067,
0.009054829366505146,
0.0004675232048612088,
0.02823615074157715,
0.019882608205080032,
-0.024297788739204407,
0.03411222621798515,
-0.023837381973862648,
-0.0029351122211664915,
-0.011955331079661846,
-0.002776098670437932,
-0.013888563960790634,
0.028204048052430153,
0.017682021483778954,
0.014448192901909351,
-0.006382867693901062,
-0.04953331500291824,
0.02993045747280121,
0.04773252084851265,
0.021837932989001274,
0.01122422143816948,
-0.004756223410367966,
0.016506167128682137,
0.021606702357530594,
-0.0036330861039459705,
-0.013350664637982845,
-0.005138139706104994,
0.010108431801199913,
0.06526049971580505,
0.043728504329919815,
0.046913325786590576,
-0.02032610960304737,
-0.008111340925097466,
-0.01987307518720627,
-0.014794547110795975,
-0.02340366505086422,
0.03893529996275902,
0.03383850306272507,
0.02075119875371456,
0.003984929993748665,
-0.017388949170708656,
-0.03673214465379715,
0.023000184446573257,
-0.014157491736114025,
-0.03579094260931015,
-0.0004257886321283877,
0.012632736004889011,
-0.022763581946492195,
0.027762068435549736,
-0.0242726132273674,
-0.022876787930727005,
0.0030159782618284225,
0.029873909428715706,
-0.03928679600358009,
-0.008052562363445759,
-0.008747502230107784,
0.029277024790644646,
0.018698664382100105,
0.046749815344810486,
-0.03928080201148987,
-0.005494651850312948,
-0.04470888152718544,
-0.004629253875464201,
0.051437586545944214,
-0.013124547898769379,
-0.01945933885872364,
0.012327316217124462,
-0.00034529020194895566,
0.0023474046029150486,
-0.0324300192296505,
0.012047402560710907,
-0.033679667860269547,
-0.07830742746591568,
0.06764528900384903,
0.040891796350479126,
0.03403075411915779,
-0.013070820830762386,
0.052883073687553406,
-0.0018976200371980667,
0.004036574624478817,
0.016985995694994926,
-0.025473162531852722,
0.0005156066035851836,
-0.05096873268485069,
-0.015458745881915092,
0.05205818638205528,
0.03875873237848282,
-0.011880588717758656,
-0.022545648738741875,
-0.04402131214737892,
-0.010495442897081375,
-0.029602769762277603,
-0.001354904379695654,
0.0010261980351060629,
-0.0017328194808214903,
-0.03195754438638687,
-0.027528878301382065,
0.07271939516067505,
0.019118444994091988,
0.026745203882455826,
0.04650741443037987,
-0.019525138661265373,
-0.004989927634596825,
-0.024271490052342415,
0.0014401455409824848,
-0.013637186028063297,
-0.030726300552487373,
0.012820686213672161,
-0.016825903207063675,
-0.022875545546412468,
0.023864367976784706,
0.012566479854285717,
0.0064422981813549995,
-0.036660827696323395,
0.007622497156262398,
-0.03622718155384064,
-0.022829569876194,
-0.0448179692029953,
-0.020513121038675308,
0.0217074453830719,
0.055558446794748306,
0.05824251100420952,
0.02367977611720562,
-0.031217513605952263,
0.00662462692707777,
-0.010091753676533699,
0.00800170749425888,
0.006052293349057436,
-0.007811225950717926,
0.0016335900872945786,
-0.01058786828070879,
-0.0010459893383085728,
0.026982435956597328,
0.01769915781915188,
-0.032916706055402756,
0.014010218903422356,
0.0020202447194606066,
-0.026212092489004135,
-0.027819762006402016,
-0.0009146283846348524,
-0.01984458789229393,
0.03953094780445099,
0.015185761265456676,
0.005955863744020462,
0.027441833168268204,
0.0012402764987200499,
-0.0072650606743991375,
0.001815970754250884,
0.031307630240917206,
0.025019964203238487,
0.04373723268508911,
0.013497119769454002,
0.03285188972949982,
-0.020365560427308083,
0.007350675296038389,
-0.017161889001727104,
0.00075099355308339,
-0.05179707705974579,
-0.014268103986978531,
-0.04682697355747223,
0.029500601813197136,
-0.03685023635625839,
-0.05163605883717537,
0.027486085891723633,
0.005548759363591671,
-0.00622965581715107,
0.04280111566185951,
0.0012738065561279655,
-0.027992889285087585,
0.027141867205500603,
0.039740897715091705,
0.0014065318973734975,
0.04222505912184715,
0.02728729322552681,
0.02891319803893566,
-0.0023851688019931316,
-0.014947372488677502
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Deep Dive: Leveraging advanced Intel features to improve AI performances | [
0.022133274003863335,
-0.02267991006374359,
0.06661266833543777,
0.008898443542420864,
0.06293389201164246,
0.012004048563539982,
-0.0017837861087173223,
0.05975441634654999,
-0.0014834990724921227,
-0.10058363527059555,
-0.0529593825340271,
0.03497862070798874,
0.004542358219623566,
0.037919871509075165,
0.06239885836839676,
-0.00954414065927267,
0.06891243904829025,
-0.035216208547353745,
0.034909605979919434,
0.016688214614987373,
-0.0040886178612709045,
-0.05467953160405159,
0.10535619407892227,
0.014240405522286892,
-0.026042403653264046,
-0.008486577309668064,
-0.026938166469335556,
-0.04201887547969818,
-0.08879002928733826,
0.019646907225251198,
-0.07132313400506973,
-0.044508196413517,
0.010552715510129929,
0.012061987072229385,
-0.045162420719861984,
0.022676531225442886,
-0.12215926498174667,
0.023115284740924835,
-0.015477403998374939,
-0.004672348964959383,
-0.03259507939219475,
-0.06992679089307785,
-0.024551689624786377,
0.10177677869796753,
-0.032909128814935684,
0.0022115756291896105,
-0.2560873031616211,
0.0873904749751091,
-0.0006119937752373517,
-0.03200538828969002,
-0.025926804170012474,
0.05559609830379486,
-0.02984420582652092,
-0.0006071388488635421,
0.02100468799471855,
0.06126308813691139,
0.028049446642398834,
-0.056960176676511765,
-0.009457246400415897,
-0.03469337895512581,
0.04380892962217331,
0.000353521725628525,
-0.0015509912045672536,
-0.03270143270492554,
0.02170003205537796,
-0.01955862157046795,
0.01653401367366314,
-0.04145210608839989,
-0.07754313945770264,
0.033707212656736374,
0.02432198077440262,
-0.01763269305229187,
-0.020533761009573936,
-0.0012667723931372166,
-0.012128408066928387,
-0.05943699926137924,
-0.006937348749488592,
0.037978395819664,
0.01981283351778984,
0.06208573281764984,
-0.0016305578174069524,
0.03523152321577072,
0.05604785680770874,
0.06912437081336975,
-0.0029996426310390234,
-0.01081160269677639,
0.07237958163022995,
-0.020921112969517708,
-0.01805667206645012,
0.06587474793195724,
0.009554496966302395,
-0.12192589789628983,
0.025890368968248367,
0.03921440616250038,
-0.01152789406478405,
-0.05419200286269188,
0.03720760717988014,
0.014354796148836613,
0.06645894795656204,
0.012212997302412987,
-0.02647337317466736,
-0.009399508126080036,
0.03557499125599861,
-0.050442326813936234,
-0.05215059593319893,
0.0015443181619048119,
-0.0282093845307827,
-0.06424418836832047,
-0.05994737520813942,
0.06411651521921158,
-0.03711782768368721,
0.0036634330172091722,
0.020627394318580627,
0.009816392324864864,
-0.12269964069128036,
0.05389750003814697,
-0.0014450530288740993,
-0.009494870901107788,
0.04017132520675659,
0.021313520148396492,
0.025028813630342484,
0.12958231568336487,
0.029976386576890945,
0.04832921922206879,
0.03823229297995567,
0.023925015702843666,
0.05609574541449547,
0.007070580963045359,
0.031809475272893906,
-0.04283164069056511,
-0.01315480750054121,
-0.011849941685795784,
-0.018217168748378754,
0.021368015557527542,
-0.038610681891441345,
-0.07474992424249649,
-0.013974678702652454,
-0.021636327728629112,
0.014959188178181648,
0.0029975958168506622,
-0.02653816156089306,
-0.008240803144872189,
0.03822867199778557,
-0.008270698599517345,
0.08734434843063354,
0.0060118334367871284,
-0.043889205902814865,
0.03335380554199219,
0.01972108520567417,
-0.002987833693623543,
-0.05601874738931656,
-0.0062508173286914825,
-0.08047349005937576,
-0.10311511904001236,
0.01152166910469532,
0.07101263105869293,
0.027634434401988983,
-0.027511097490787506,
-0.02809121087193489,
-0.017354141920804977,
0.008998638018965721,
-0.0029835409950464964,
-0.01781078241765499,
-0.023806406185030937,
0.016802217811346054,
-0.03401903435587883,
0.05465078726410866,
-0.010944400914013386,
0.0023675572592765093,
-0.004154716152697802,
-0.024389619007706642,
0.018736546859145164,
0.08518489450216293,
-0.013930819928646088,
-0.022950690239667892,
0.029718825593590736,
0.04628647491335869,
0.10193678736686707,
-0.005105494987219572,
0.04668741673231125,
-0.025684183463454247,
-0.0011184981558471918,
-0.056393835693597794,
0.049700237810611725,
0.021983638405799866,
-0.0792667418718338,
-0.003965306561440229,
0.00006355125515256077,
0.047179460525512695,
0.02828957326710224,
-0.059144169092178345,
-0.02523343823850155,
0.07380572706460953,
-0.018737953156232834,
0.02128201723098755,
-0.0937051773071289,
-0.0012533138506114483,
0.11493600159883499,
0.035896364599466324,
0.07528846710920334,
0.04039779305458069,
-0.015653759241104126,
0.048483673483133316,
-0.018958693370223045,
-0.05193199962377548,
0.00369248422794044,
0.08107811212539673,
-0.045402687042951584,
-0.009605643339455128,
-0.005117750260978937,
-0.01380634494125843,
-0.15003028512001038,
0.010899260640144348,
-0.03811744973063469,
0.034283239394426346,
-0.012711089104413986,
-0.04893685504794121,
0.01733536832034588,
-0.024731026962399483,
-0.04686787724494934,
0.08117189258337021,
0.008261659182608128,
-0.014794882386922836,
0.06269749999046326,
-0.038693323731422424,
0.09055386483669281,
0.0774010643362999,
-0.010005651973187923,
0.052809420973062515,
-0.02524900808930397,
-0.05097029358148575,
-0.06914953887462616,
-0.03613613545894623,
0.07539068907499313,
0.06901156902313232,
0.02541498653590679,
0.007714336737990379,
0.033652544021606445,
0.08395283669233322,
-0.05841592699289322,
-0.03876112774014473,
-0.024647479876875877,
-0.0039112865924835205,
0.09234800934791565,
0.0008345210226252675,
-0.04581686109304428,
0.09908317029476166,
0.005619408097118139,
-0.008122600615024567,
-0.01280677318572998,
-0.025954872369766235,
0.008983800187706947,
-0.015270721167325974,
-0.005316221620887518,
0.037525177001953125,
0.0003018393472302705,
0.010047038085758686,
-0.037319499999284744,
-0.015027756802737713,
0.022326085716485977,
0.05418213829398155,
-0.042356207966804504,
0.012138685211539268,
-0.03557050600647926,
0.011101646348834038,
-0.030246533453464508,
-0.025251174345612526,
-0.015377175062894821,
0.006711445748806,
0.01884971745312214,
-0.013909396715462208,
-0.04395559802651405,
0.053036466240882874,
-0.013947049155831337,
-0.00015565918874926865,
0.00861287023872137,
0.024562012404203415,
0.011412324383854866,
-0.03083912655711174,
-0.021983414888381958,
0.030765783041715622,
-0.011303789913654327,
0.049626424908638,
0.023103224113583565,
0.026433492079377174,
-0.0197589173913002,
-0.020267095416784286,
0.010532365180552006,
-0.02516435831785202,
0.06674090027809143,
-0.008075883612036705,
0.007436832878738642,
-0.0011001884704455733,
0.0015162137569859624,
0.02723722718656063,
0.0005629711668007076,
-0.00002725293416006025,
0.001587125938385725,
-0.029820673167705536,
-0.020892253145575523,
0.0068732332438230515,
0.03578278049826622,
-0.04009176418185234,
-0.0021150936372578144,
-0.02466675639152527,
0.023889731615781784,
0.011596888303756714,
0.002159724710509181,
-0.13900823891162872,
-0.046733807772397995,
0.017746318131685257,
0.027163034304976463,
-0.005689589306712151,
-0.014021776616573334,
0.016547754406929016,
-0.005230979062616825,
-0.01038246788084507,
-0.03205512464046478,
0.025505341589450836,
0.02749050408601761,
0.04365323483943939,
0.004645477049052715,
-0.05107194185256958,
0.01652960292994976,
0.013862835243344307,
0.02199510857462883,
0.004296633414924145,
0.015671929344534874,
-0.02294027805328369,
0.04928447678685188,
-0.012537586502730846,
-0.007817811332643032,
-0.006520865950733423,
0.04645457863807678,
0.007443489972501993,
0.02704680524766445,
-0.0044073485769331455,
0.0053066895343363285,
-0.017629563808441162,
0.023066025227308273,
-0.04369858279824257,
0.0300393458455801,
-0.0063529787585139275,
-0.012220709584653378,
-0.008505366742610931,
0.008533710613846779,
0.036037880927324295,
0.032996729016304016,
0.04430898651480675,
0.018822643905878067,
0.03185656666755676,
0.0023893846664577723,
-0.018616199493408203,
0.0022219461388885975,
0.013990470208227634,
0.00552277360111475,
0.059292517602443695,
-0.049475833773612976,
-0.03332521393895149,
-0.005109433084726334,
-0.013146728277206421,
0.05920204147696495,
-0.011381085962057114,
0.005130457226186991,
-0.03478778153657913,
0.01882695034146309,
0.05490615963935852,
0.003660978516563773,
-0.05453113093972206,
0.009545361623167992,
0.03356825187802315,
0.025335581973195076,
-0.02361913211643696,
0.035830143839120865,
0.007291577290743589,
0.019922036677598953,
-0.02321477048099041,
0.02422754466533661,
0.008540903218090534,
0.0023828905541449785,
-0.01686648093163967,
0.023747622966766357,
-0.009821675717830658,
0.028642192482948303,
0.005929866340011358,
0.003240807680413127,
0.07371381670236588,
0.00948110781610012,
-0.029438210651278496,
-0.02396330051124096,
-0.007568386849015951,
-0.04568087309598923,
0.019229711964726448,
0.023543642833828926,
-0.0027954953256994486,
-0.008211322128772736,
0.005842786747962236,
0.05018985643982887,
0.00895292591303587,
-0.039546746760606766,
0.023896237835288048,
-0.04564780741930008,
0.0150578822940588,
0.023791978135704994,
0.04093419015407562,
-0.0007485489477403462,
0.005016862414777279,
-0.01592293009161949,
0.00454047741368413,
-0.026343025267124176,
0.00415281904861331,
-0.02273968793451786,
-0.0029307492077350616,
0.02639399655163288,
0.0032543851993978024,
-0.04672180488705635,
-0.0009155336301773787,
0.028926294296979904,
0.03327655419707298,
-0.004244827665388584,
0.006201012525707483,
-0.024880804121494293,
0.034079812467098236,
-0.004395267926156521,
-0.02762925997376442,
-0.013031373731791973,
-0.01845180056989193,
0.01899082027375698,
-0.025379711762070656,
0.02731660194694996,
-0.01673814095556736,
-0.007882645353674889,
0.019947372376918793,
-0.020590949803590775,
0.007704548537731171,
-0.020548593252897263,
-0.01891900971531868,
-0.00874028354883194,
-0.03470585495233536,
-0.020855005830526352,
0.05127539113163948,
0.013541564345359802,
0.05006689578294754,
-0.01131828036159277,
-0.005876028444617987,
0.03368436172604561,
-0.019671112298965454,
-0.05686313658952713,
-0.014076895080506802,
0.01706348918378353,
0.03066875971853733,
-0.031033014878630638,
0.038217075169086456,
-0.03284398466348648,
-0.03679222986102104,
-0.009194320067763329,
0.014813631772994995,
0.023690558969974518,
0.017621271312236786,
-0.014932909049093723,
0.000006807931640651077,
0.017726976424455643,
0.03345431759953499,
0.005939074791967869,
0.02442355640232563,
-0.0038355228025466204,
-0.02634727582335472,
0.03793152794241905,
0.007815553806722164,
-0.006477090995758772,
-0.03968631103634834,
0.008231326006352901,
0.007535624783486128,
-0.022313207387924194,
0.02238205447793007,
-0.028233226388692856,
-0.013341869227588177,
0.03661130368709564,
0.020197102800011635,
0.011228857561945915,
0.033665839582681656,
-0.03273237869143486,
0.03185829520225525,
0.0021462244912981987,
-0.007531444542109966,
-0.000291342381387949,
0.006204357370734215,
0.022171730175614357,
0.0003500238817650825,
0.004875602200627327,
-0.003607899881899357,
0.026336630806326866,
-0.03449595347046852,
0.013054933398962021,
0.03996046632528305,
0.02194381318986416,
-0.0016187697183340788,
-0.0008550533093512058,
0.024827344343066216,
-0.03818618878722191,
0.007849619723856449,
-0.03896242007613182,
0.020465176552534103,
0.007946746423840523,
0.026723351329565048,
-0.004891905467957258,
-0.04641475901007652,
0.008909830823540688,
0.03625836223363876,
-0.014472668059170246,
0.005839358549565077,
-0.029782094061374664,
0.046393681317567825,
0.040516991168260574,
-0.0010008453391492367,
-0.010130696929991245,
0.005418101325631142,
-0.0027405668515712023,
0.008667847141623497,
0.008017923682928085,
-0.01661905087530613,
-0.03041459433734417,
0.00209677591919899,
-0.04388203099370003,
-0.038203611969947815,
0.009702798910439014,
-0.005174729041755199,
0.003410560777410865,
-0.03782352805137634,
-0.003667145036160946,
-0.012828369624912739,
0.0011404982069507241,
0.015055163763463497,
-0.026903944090008736,
0.00020183958986308426,
0.02158118598163128,
-0.014930026605725288,
0.0536060705780983,
0.016188764944672585,
-0.012691187672317028,
-0.012395103462040424,
0.041567735373973846,
0.03432042896747589,
0.015282361768186092,
-0.03043537400662899,
0.03624128922820091,
0.009636715985834599,
0.008744999766349792,
-0.013728402554988861,
-0.018676072359085083,
-0.020268894731998444,
-0.020419679582118988,
-0.06354682892560959,
0.0318414680659771,
0.024921759963035583,
0.00358029967173934,
0.01510442141443491,
0.014788614585995674,
0.017166243866086006,
-0.037921421229839325,
0.010132336989045143,
-0.0032550429459661245,
0.01674317568540573,
0.0031874391715973616,
0.0003954044950660318,
-0.019611617550253868,
-0.03015022724866867,
-0.030690692365169525,
0.014565201476216316,
-0.05510486289858818,
0.021810399368405342,
0.02985488437116146,
-0.0035452416632324457,
0.03506084159016609,
-0.012867673300206661,
-0.03194397687911987,
0.03896317258477211,
0.05483514815568924,
0.007960502058267593,
0.01876150257885456,
0.01839747466146946,
0.0008517095120623708,
-0.025777647271752357,
-0.009895378723740578,
0.02517031505703926,
0.08804640173912048,
-0.01889793574810028,
0.025646306574344635,
0.0010499464115127921,
0.06261435896158218,
0.015475298278033733,
-0.03964931517839432,
-0.0522817000746727,
0.018251651898026466,
0.04275812581181526,
-0.0042339349165558815,
0.02591777592897415,
0.016555989161133766,
0.007018701173365116,
-0.016163287684321404,
0.005519072059541941,
-0.00977539923042059,
-0.025937464088201523,
-0.026412537321448326,
0.03218330815434456,
-0.019975608214735985,
0.04164023697376251,
-0.031198134645819664,
0.07015206664800644,
0.03168369457125664,
0.007461452390998602,
0.006202292162925005,
0.008574899286031723,
0.04104507714509964,
0.015497094951570034,
-0.01762387529015541,
0.009752321988344193,
-0.02990717627108097,
0.030885150656104088,
0.0722927674651146,
0.0019028513925150037,
0.012154371477663517,
-0.000530196528416127,
-0.026542825624346733,
0.046667881309986115,
0.00027665754896588624,
-0.009958005510270596,
0.0165107361972332,
0.01392774935811758,
-0.013046080246567726,
0.0031377787236124277,
-0.0032980507239699364,
-0.046360235661268234,
-0.021941911429166794,
0.0024813124909996986,
0.03892992064356804,
-0.02259805239737034,
-0.023543687537312508,
-0.014696578495204449,
0.026584837585687637,
-0.021871786564588547,
-0.007323116064071655,
-0.03077242150902748,
0.007480073254555464,
0.014356623403728008,
0.025966402143239975,
-0.02149844355881214,
-0.048789817839860916,
0.013290313072502613,
0.009603505954146385,
0.005674128886312246,
-0.004798938985913992,
-0.042697176337242126,
0.006089730188250542,
0.018613023683428764,
0.006447138264775276,
-0.026075083762407303,
0.004062527325004339,
0.01952047273516655,
0.0015133339911699295,
-0.015867061913013458,
0.01795361377298832,
-0.020273791626095772,
-0.027504421770572662,
-0.014212599024176598,
-0.018811745569109917,
0.039241187274456024,
-0.0197518952190876,
0.010725796222686768,
0.05707968771457672,
0.021813346073031425,
-0.030479980632662773,
-0.03033953160047531,
0.007643619552254677,
-0.03236476704478264,
-0.027612734586000443,
0.017769599333405495,
-0.0021975485142320395,
-0.03947572782635689,
0.0048429835587739944,
0.019439827650785446,
-0.02745753899216652,
-0.023941021412611008,
0.033644989132881165,
0.0190633125603199,
-0.021552197635173798,
-0.046425797045230865,
-0.030216753482818604,
0.05814233049750328,
0.010615703649818897,
0.03583189472556114,
0.01332364697009325,
0.03038850612938404,
0.02072213590145111,
-0.07843472808599472,
0.012978940270841122,
0.00856106262654066,
0.030651066452264786,
-0.03232935816049576,
-0.024476466700434685,
-0.016427401453256607,
-0.02358883060514927,
0.013125749304890633,
0.0077184089459478855,
-0.03340869024395943,
-0.01578422263264656,
0.0018065145704895258,
-0.01442189421504736,
-0.054968662559986115,
0.007388088386505842,
0.0620100311934948,
0.04036305099725723,
0.012628309428691864,
-0.024615565314888954,
-0.015517919324338436,
-0.03283407539129257,
-0.021619262173771858,
-0.011880306527018547,
0.04355773702263832,
-0.007244406268000603,
-0.027267569676041603,
-0.018489820882678032,
0.02214675210416317,
-0.008312257006764412,
-0.024139216169714928,
0.014036276377737522,
0.023646632209420204,
-0.0016987540293484926,
-0.02384026348590851,
-0.018117278814315796,
0.010845750570297241,
-0.029011283069849014,
0.02479756809771061,
-0.0010047873947769403,
-0.01516745612025261,
-0.01661178097128868,
0.03199964761734009,
-0.041245415806770325,
-0.04123440384864807,
-0.024511652067303658,
0.035052914172410965,
0.061961397528648376,
0.05126604065299034,
-0.010001222603023052,
0.014973409473896027,
-0.023190520703792572,
0.025470785796642303,
-0.042321015149354935,
-0.0533779039978981,
-0.012831717729568481,
-0.041173987090587616,
-0.004980402998626232,
-0.03596435859799385,
-0.08013200759887695,
0.01367279514670372,
-0.002487446879968047,
0.007336403243243694,
0.027940159663558006,
-0.007516151759773493,
0.024189462885260582,
0.012892590835690498,
0.03270439803600311,
0.00969158299267292,
0.052560508251190186,
0.05283944308757782,
0.012563022784888744,
0.030453667044639587,
-0.004122613929212093
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Tuning the Memory Allocator: Can this impact the latencies observed? One crucial component every program dynamically allocating memory relies on is the memory allocator. If you are familiar with C/C++ programming this component provides the low bits to malloc/free or new/delete. Most of the time you don’t have to worry too much about it and the default ones (glibc for instance on most Linux distributions) will provide great performances out of the box. Still, in some situations it might not provide the most efficient performances, as these default allocators are most of the time designed to be “good” most of the time, and not fine-tuned for specific workloads or parallelism. So, what are the alternatives, and when are they more suitable than the default ones? Well, again, it depends on the kind of context around your software. Possible situations are a heavy number of allocations/de-allocations causing fragmentation over time, specific hardware and/or architecture you’re executing your software on and finally the level of parallelism of your application. Do you see where this is going? Deep learning and by extension all the applications doing heavy computations are heavily multi-threaded, that’s also the case for software libraries such as PyTorch, TensorFlow and any other frameworks targeting Machine Learning workloads. The default memory allocator strategies often rely on global memory pools which require the usage of synchronization primitives to operate, increasing the overall pressure on the system, reducing the performance of your application. Some recent works by companies such as Google, Facebook and Microsoft provided alternative memory allocation strategies implemented in custom memory allocator libraries one can easily integrate directly within its software components or use dynamic shared library preload to swap the library being used to achieve the allocation/de-allocation. Among these libraries, we can cite a few of them such as tcmalloc, jemalloc and mimalloc. Figure 12. Various memory allocators benchmarked on different tasks Through this blog post we will only focus on benchmarking tcmalloc and jemalloc as potential memory allocators drop-in candidates. To be fully transparent, for the scope of the results below we used tcmalloc as part of the gperftools package available on Ubuntu distributions version 2.9 and jemalloc 5.1.0-1. | [
0.042543262243270874,
-0.0018552046967670321,
0.029542138800024986,
0.03785465657711029,
0.030836306512355804,
-0.027805501595139503,
0.012761494144797325,
0.036415256559848785,
-0.061460960656404495,
-0.04055924713611603,
-0.002365188207477331,
0.05098138749599457,
0.02781517058610916,
0.05469775199890137,
0.03883199021220207,
-0.02421961911022663,
0.004054800607264042,
-0.07909338176250458,
0.01613531820476055,
0.06097029149532318,
0.07284840196371078,
-0.04300142452120781,
0.04035468026995659,
-0.01877722702920437,
-0.023643530905246735,
0.039265312254428864,
-0.05008368566632271,
-0.015400263480842113,
-0.07310447841882706,
-0.08573725074529648,
-0.12220178544521332,
0.04361224174499512,
0.06764213740825653,
-0.006569409742951393,
-0.0025533190928399563,
-0.02752513252198696,
-0.08648087829351425,
0.03532792255282402,
0.050433456897735596,
-0.08085431903600693,
-0.002511210972443223,
-0.07095757871866226,
-0.10153937339782715,
0.020960001274943352,
-0.060465093702077866,
-0.006055457983165979,
-0.06011512503027916,
0.03347435221076012,
-0.03295546770095825,
-0.06025860458612442,
-0.07057308405637741,
0.016801612451672554,
0.033952873200178146,
-0.015798838809132576,
0.005741550121456385,
0.032238978892564774,
0.031026342883706093,
-0.03589608520269394,
0.021220741793513298,
-0.017145782709121704,
0.055102571845054626,
-0.03640393540263176,
0.017529187723994255,
0.045950740575790405,
0.08041957765817642,
-0.02330077812075615,
0.005722223315387964,
0.0036328579299151897,
-0.029968203976750374,
-0.004733589012175798,
-0.013161820359528065,
0.01792658492922783,
0.020688528195023537,
-0.001996386796236038,
-0.023509394377470016,
-0.03654539957642555,
-0.03883352503180504,
0.03771121799945831,
0.008272746577858925,
0.05095652490854263,
-0.03330047428607941,
0.07972945272922516,
0.10169549286365509,
-0.024446265771985054,
0.02655389904975891,
-0.03157278895378113,
0.014627095311880112,
0.042328402400016785,
-0.015735244378447533,
0.004907003603875637,
-0.01174193900078535,
-0.1419650763273239,
0.039007578045129776,
0.007585509214550257,
-0.029046105220913887,
-0.020011888816952705,
0.023740118369460106,
0.03659168630838394,
0.054515719413757324,
0.08744100481271744,
-0.026353532448410988,
-0.05920125171542168,
0.03851388394832611,
-0.07386402040719986,
0.005356726702302694,
0.053380779922008514,
-0.06043742224574089,
-0.10666593909263611,
-0.04647203907370567,
0.06555461138486862,
-0.0846962183713913,
0.06915432214736938,
0.0048849633894860744,
0.04992728307843208,
-0.06458964198827744,
-0.02295514941215515,
-0.009214385412633419,
-0.006881029345095158,
-0.04514727741479874,
0.06089099869132042,
-0.035803429782390594,
0.10730315744876862,
0.03034244105219841,
-0.032225023955106735,
-0.0388873815536499,
0.019175583496689796,
0.06602021306753159,
-0.02488984540104866,
0.004344388842582703,
-0.02031112276017666,
0.074490986764431,
0.031471773982048035,
-0.015286341309547424,
0.00841439701616764,
-0.000838535139337182,
-0.021436821669340134,
0.010472845286130905,
-0.05201243609189987,
0.012464934028685093,
-0.014536060392856598,
-0.04326539859175682,
0.004930272698402405,
-0.018029943108558655,
0.004516587592661381,
0.02552349679172039,
-0.001808219589293003,
-0.08122532814741135,
0.07896815985441208,
-0.0053378259763121605,
0.01641121506690979,
-0.021561942994594574,
0.08232654631137848,
-0.03945814073085785,
0.020794907584786415,
0.032919351011514664,
0.08323294669389725,
-0.06070969998836517,
-0.05598553270101547,
-0.06988228112459183,
0.01888566091656685,
-0.05749742314219475,
0.020030302926898003,
-0.02370067872107029,
-0.06106921285390854,
0.0076878792606294155,
0.025415245443582535,
0.10976071655750275,
-0.011452807113528252,
-0.0018708233255892992,
0.012399688363075256,
-0.005755072459578514,
0.027714552357792854,
0.03771626576781273,
-0.0743613913655281,
-0.04938499256968498,
0.008192261680960655,
0.026397056877613068,
0.02736847475171089,
-0.043145474046468735,
0.014157106168568134,
0.0026516299694776535,
0.059265051037073135,
-0.05462665110826492,
0.04442698508501053,
0.007269796449691057,
-0.09190907329320908,
0.01657266728579998,
-0.0672207772731781,
0.0006603786605410278,
-0.03290795162320137,
-0.06332127749919891,
-0.03028017096221447,
0.017965251579880714,
-0.03183425962924957,
0.0711354985833168,
-0.008379504084587097,
0.0014126311289146543,
0.099163718521595,
0.11543268710374832,
0.06566976755857468,
-0.011889290995895863,
0.0007391049875877798,
0.02927766554057598,
0.03595263138413429,
-0.05557607114315033,
-0.025234311819076538,
0.015307058580219746,
-0.008252139203250408,
0.014456274919211864,
0.027562199160456657,
0.04255543276667595,
-0.1322779506444931,
-0.04051323980093002,
-0.010147390887141228,
-0.014452079311013222,
0.005562447942793369,
0.04635775461792946,
0.035319555550813675,
-0.007911239750683308,
-0.005154070910066366,
0.10210510343313217,
-0.030829399824142456,
0.013097230345010757,
0.06396403908729553,
-0.07685413211584091,
0.02489021047949791,
0.014457452110946178,
-0.042112089693546295,
0.10793504118919373,
0.0033092142548412085,
0.008498392067849636,
-0.03556070849299431,
-0.0989614725112915,
0.0757378488779068,
0.03151332587003708,
0.014601274393498898,
-0.07746370881795883,
0.09088914096355438,
0.05311250314116478,
-0.03523324429988861,
-0.05779363587498665,
0.030043303966522217,
0.01828545704483986,
0.028305349871516228,
-0.059025030583143234,
0.046637725085020065,
0.016914624720811844,
-0.05347779020667076,
-0.01178468856960535,
-0.03532734513282776,
-0.017253519967198372,
-0.02628982998430729,
0.014892623759806156,
-0.052797894924879074,
0.036921776831150055,
-0.047629110515117645,
0.006690398324280977,
0.006310966797173023,
-0.02686072513461113,
0.007513698190450668,
0.024693623185157776,
0.008106887340545654,
0.020155077800154686,
-0.02431091107428074,
0.008643673732876778,
-0.05087518319487572,
0.00240311655215919,
0.014549565501511097,
0.017239362001419067,
-0.006553711369633675,
-0.02825883775949478,
-0.03581522777676582,
0.03223621845245361,
-0.01836434379220009,
-0.008357654325664043,
-0.008038527332246304,
0.059301599860191345,
-0.04509025067090988,
-0.027698198333382607,
0.010287738405168056,
0.035804614424705505,
-0.009999518282711506,
0.02248932234942913,
0.013484789058566093,
-0.03600076213479042,
0.03813084214925766,
-0.008378436788916588,
0.02830517292022705,
-0.05520303174853325,
0.021468738093972206,
-0.0008459811215288937,
-0.027434727177023888,
-0.0005090307095088065,
0.03348102793097496,
-0.010183120146393776,
0.00654528709128499,
-0.0056990040466189384,
-0.04265648126602173,
0.011074801906943321,
-0.03729838505387306,
-0.013455484062433243,
0.005017764400690794,
-0.02407780848443508,
-0.010655964724719524,
-0.013994928449392319,
0.049335233867168427,
0.007408301346004009,
0.03317633643746376,
-0.10049045085906982,
-0.041890308260917664,
-0.015141673386096954,
0.013382394798099995,
-0.025593699887394905,
-0.03384862095117569,
0.011421803385019302,
-0.0004193945787847042,
-0.04201536625623703,
0.02053571492433548,
-0.0004182487027719617,
0.023099778220057487,
-0.015460681170225143,
0.019939132034778595,
-0.021948793902993202,
0.025478314608335495,
0.02676885947585106,
0.038339145481586456,
0.004318588878959417,
-0.003405774710699916,
0.019739605486392975,
0.033033374696969986,
-0.01469363085925579,
0.001225016196258366,
-0.029626447707414627,
0.03630153462290764,
-0.030016198754310608,
0.0325455479323864,
0.02634185552597046,
0.012116039171814919,
-0.003969043958932161,
0.04112497717142105,
0.012870081700384617,
-0.0068420046009123325,
0.0037579371128231287,
0.000474017346277833,
-0.004161577671766281,
-0.03101898916065693,
0.02921101823449135,
0.044851966202259064,
0.05642708018422127,
0.014948281459510326,
0.09203705936670303,
-0.019137084484100342,
0.05598051846027374,
-0.004332375712692738,
0.002579113934189081,
-0.02746370993554592,
-0.0010176405776292086,
-0.029974786564707756,
0.007771322503685951,
-0.007714632898569107,
0.03680993989109993,
0.021524962037801743,
-0.03118375688791275,
-0.03827686235308647,
-0.012806016951799393,
0.032758958637714386,
-0.0002821630332618952,
-0.006434677634388208,
-0.03362138569355011,
0.039898283779621124,
0.013254468329250813,
0.050943613052368164,
-0.03944756090641022,
-0.020129801705479622,
0.0020993680227547884,
0.007624853868037462,
-0.011209292337298393,
0.00901627354323864,
-0.039537571370601654,
0.026920447126030922,
-0.0024368406739085913,
0.008400448597967625,
-0.014799932949244976,
0.009059972129762173,
-0.03765430301427841,
0.02878030203282833,
0.01303883921355009,
0.0288088358938694,
-0.04851686581969261,
-0.04047609493136406,
-0.004212275613099337,
-0.012715162709355354,
0.04319346323609352,
-0.014065258204936981,
0.014064012095332146,
-0.010267120786011219,
-0.013357087969779968,
0.04400167614221573,
0.018605109304189682,
-0.011305665597319603,
0.021730026230216026,
-0.041787028312683105,
-0.012160677462816238,
-0.03182556480169296,
0.025533193722367287,
0.03285638988018036,
-0.002514892490580678,
0.04682328552007675,
0.03056950680911541,
-0.024813499301671982,
0.027748895809054375,
0.02207055129110813,
-0.0026260048616677523,
0.05107548087835312,
-0.045084089040756226,
0.011415153741836548,
0.02629057876765728,
0.052016183733940125,
0.038352224975824356,
-0.019523555412888527,
0.008116556331515312,
-0.031033124774694443,
0.037369661033153534,
0.00044890667777508497,
0.000882033200468868,
0.01137493085116148,
0.008347771130502224,
0.01720578223466873,
-0.031730394810438156,
0.026505017653107643,
0.015900321304798126,
0.00583842396736145,
0.026729578152298927,
-0.009169387631118298,
-0.020826613530516624,
-0.006175820250064135,
0.0001660985581111163,
-0.0367194339632988,
-0.03472999110817909,
0.030095120891928673,
0.01476631872355938,
0.013361426070332527,
0.003530726535245776,
-0.025489887222647667,
-0.03343386948108673,
0.01454763300716877,
0.03773334249854088,
-0.07007256150245667,
0.00556903937831521,
0.034701596945524216,
-0.018867742270231247,
-0.045248664915561676,
0.009146326221525669,
0.022514475509524345,
-0.03250736743211746,
0.006444771308451891,
-0.02279229275882244,
-0.03143296763300896,
0.036747436970472336,
-0.05941135436296463,
0.036993466317653656,
0.025527464225888252,
0.030914179980754852,
-0.041194770485162735,
0.02625708468258381,
-0.004166081082075834,
0.0577208586037159,
0.028371773660182953,
0.015547056682407856,
-0.05681690573692322,
-0.0324367992579937,
0.0049086506478488445,
0.022917723283171654,
0.007265669293701649,
0.008358038030564785,
0.01192126702517271,
0.01750246249139309,
0.015454101376235485,
-0.017148848623037338,
0.058797311037778854,
-0.016108818352222443,
-0.007750585209578276,
0.06197809800505638,
0.03541445732116699,
0.029327625408768654,
-0.005152278579771519,
0.02479524351656437,
0.032605770975351334,
-0.01697111874818802,
-0.002867726143449545,
0.021461382508277893,
-0.019108206033706665,
0.015630105510354042,
-0.02223719283938408,
0.050756100565195084,
0.07433556765317917,
-0.006964363157749176,
0.02979525923728943,
0.03738764673471451,
-0.02042531967163086,
0.03500078245997429,
-0.01990617625415325,
0.03031296096742153,
-0.01772015355527401,
0.004140552598983049,
0.02939404919743538,
-0.03067733719944954,
-0.0007286413456313312,
0.058790143579244614,
0.018746156245470047,
-0.016757920384407043,
-0.040482692420482635,
0.016893712803721428,
0.041223615407943726,
0.02359633706510067,
-0.06378227472305298,
-0.024583537131547928,
-0.01205296441912651,
-0.013402780517935753,
0.01704235002398491,
-0.03616771847009659,
0.006048147566616535,
0.017459962517023087,
-0.06033160537481308,
-0.030511144548654556,
-0.017748812213540077,
0.002835600171238184,
0.0015654269373044372,
-0.034699637442827225,
0.0226536076515913,
-0.021516311913728714,
0.0011929133906960487,
-0.03950744494795799,
-0.029097862541675568,
0.008784041740000248,
-0.025053096935153008,
-0.0023244982585310936,
0.0721399113535881,
0.031195037066936493,
-0.022587615996599197,
0.021699082106351852,
0.019154150038957596,
0.02214808762073517,
0.027612322941422462,
0.02890130504965782,
0.007437657564878464,
0.020389368757605553,
-0.033103179186582565,
-0.013233265839517117,
-0.048226580023765564,
-0.026126019656658173,
0.015175671316683292,
-0.07143930345773697,
0.010805896483361721,
0.044795338064432144,
-0.005621459800750017,
-0.04787850007414818,
0.0037055406719446182,
0.013368075713515282,
0.03928472101688385,
-0.013418011367321014,
-0.013230760581791401,
0.03217392787337303,
-0.014518853276968002,
-0.02283453568816185,
-0.02594095654785633,
0.032049715518951416,
0.005550375673919916,
0.02892160788178444,
-0.05544252693653107,
0.036238379776477814,
0.04392262548208237,
-0.03159266710281372,
0.018521467223763466,
0.030552638694643974,
-0.03403589501976967,
0.02897082455456257,
0.004031923599541187,
-0.03074885904788971,
0.013618234544992447,
-0.010610873810946941,
-0.00508488155901432,
-0.005282177124172449,
-0.011909456923604012,
-0.0394161082804203,
0.031787071377038956,
0.0006374881486408412,
0.00687806773930788,
0.026552926748991013,
0.026839664205908775,
0.052887942641973495,
-0.037007372826337814,
0.004664826672524214,
-0.005869983229786158,
0.01531704980880022,
-0.0059876576997339725,
0.02232588455080986,
0.009583855047821999,
0.024558648467063904,
0.000017210160876857117,
-0.004075082018971443,
-0.010569611564278603,
-0.034400079399347305,
0.04031519219279289,
0.03606153279542923,
0.01744144596159458,
-0.019288094714283943,
-0.05253387615084648,
0.01648353412747383,
0.037719495594501495,
0.040099844336509705,
0.011469836346805096,
-0.01068631187081337,
-0.017144400626420975,
0.027044150978326797,
0.006714093033224344,
-0.00790372770279646,
0.00217313296161592,
-0.030758559703826904,
0.08669579774141312,
0.006797568406909704,
0.0420408621430397,
0.009222506545484066,
-0.008776754140853882,
-0.00337556772865355,
0.010310017503798008,
-0.024378418922424316,
0.029930932447314262,
0.014286155812442303,
0.01615310087800026,
-0.003430608892813325,
-0.01842561736702919,
-0.0218800138682127,
-0.006472178269177675,
-0.03724121302366257,
-0.028132226318120956,
-0.0032973052002489567,
0.02239348366856575,
-0.03556391969323158,
0.03472205251455307,
-0.01705028861761093,
-0.012628378346562386,
-0.007750529795885086,
0.02048315666615963,
-0.011665724217891693,
-0.007386482320725918,
-0.028815098106861115,
-0.040032368153333664,
0.0032083052210509777,
0.03974499925971031,
-0.013983436860144138,
0.01990329660475254,
-0.034548841416835785,
-0.00031876578577794135,
0.04566815868020058,
-0.032940082252025604,
-0.016143573448061943,
0.007831721566617489,
0.004219527821987867,
0.011198128573596478,
-0.03829554095864296,
-0.004917593207210302,
-0.046881143003702164,
-0.05659074708819389,
0.06092405319213867,
-0.002867423463612795,
0.00898640789091587,
-0.015135189518332481,
0.07119365781545639,
0.00837889313697815,
0.0007204538560472429,
0.020495431497693062,
0.013096977025270462,
-0.01972595974802971,
-0.05176011472940445,
-0.011724591255187988,
0.053058743476867676,
0.050927724689245224,
-0.011922200210392475,
0.01316661387681961,
-0.051534637808799744,
-0.020217418670654297,
-0.018657514825463295,
0.006479245610535145,
0.011636870913207531,
-0.003205802058801055,
-0.010604300536215305,
-0.030066020786762238,
0.09097868949174881,
0.003332727123051882,
0.025787586346268654,
0.038122136145830154,
0.026175903156399727,
0.015658635646104813,
-0.006080138497054577,
0.007559069897979498,
-0.030935004353523254,
-0.018582971766591072,
0.0009538456215523183,
-0.050845399498939514,
-0.004651978146284819,
0.021069960668683052,
-0.025200331583619118,
-0.006901780143380165,
-0.035229578614234924,
0.0015316063072532415,
-0.02851264737546444,
-0.020086662843823433,
-0.04649696499109268,
-0.005230628419667482,
0.01726674661040306,
0.04689674824476242,
0.01980011537671089,
0.03972217068076134,
-0.02792893908917904,
-0.0066745467483997345,
0.012017110362648964,
0.05436824634671211,
0.029001567512750626,
0.010185806080698967,
-0.0016699796542525291,
-0.025676289573311806,
0.021854346618056297,
0.006545648910105228,
0.04003189131617546,
-0.016787942498922348,
0.02082069218158722,
0.0038519692607223988,
-0.005806366913020611,
-0.03475628420710564,
0.008792088367044926,
-0.026001082733273506,
0.04677363485097885,
0.012356205843389034,
-0.002624008571729064,
0.025223812088370323,
-0.022774839773774147,
-0.046223171055316925,
-0.0020386604592204094,
0.016179127618670464,
0.02682989463210106,
0.041264697909355164,
-0.019774528220295906,
0.011494617909193039,
-0.015692241489887238,
0.008044300600886345,
0.0028202550020068884,
-0.00692991865798831,
-0.01721510849893093,
-0.031879834830760956,
-0.03653552755713463,
0.007200350519269705,
-0.003614383051171899,
-0.04940539225935936,
0.03212275728583336,
0.026609400287270546,
-0.0385313481092453,
0.03776130825281143,
-0.007441333029419184,
-0.03253716230392456,
0.005287728272378445,
0.030313992872834206,
-0.016213737428188324,
0.030261540785431862,
0.010311873629689217,
0.010106592439115047,
-0.025492720305919647,
-0.03783240541815758
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | 1. Memory allocation and management libraries This blog post will deliberately skip the first point about the data representation as it is something rather framework specific. For reference, PyTorch uses its very own implementation, called ATen, while TensorFlow relies on the open source library Eigen for this purpose. While it’s very complex to apply generic optimizations to different object structures and layouts, there is one area where we can have an impact: Memory Allocation. As a short reminder, memory allocation here refers to the process of programmatically asking the operating system a dynamic (unknown beforehand) area on the system where we will be able to store items into, such as the malloc and derived in C or the new operator in C++. Memory efficiency, both in terms of speed but also in terms of fragmentation, is a vast scientific and engineering subject with multiple solutions depending on the task and underlying hardware. Over the past years we saw more and more work in this area, with notably: - jemalloc (Facebook - 2005) - mimalloc (Microsoft - 2019) - tcmalloc (Google - 2020) Each pushes forward different approaches to improve aspects of the memory allocation and management on various software. | [
0.10148663818836212,
0.009568233974277973,
0.014445372857153416,
0.010263976640999317,
0.04860975965857506,
0.04375298321247101,
-0.028574388474225998,
0.014775220304727554,
-0.0768621638417244,
-0.05844687297940254,
-0.046871528029441833,
-0.006969486363232136,
-0.010210937820374966,
0.04370175302028656,
0.0336439311504364,
-0.014460800215601921,
0.04685337096452713,
-0.05350451171398163,
0.0014836675254628062,
0.0938078910112381,
0.02536126971244812,
-0.05608568713068962,
0.11653302609920502,
-0.005601038224995136,
-0.02518286556005478,
0.024916745722293854,
-0.04447750002145767,
-0.04177258163690567,
-0.0526496022939682,
0.008967868983745575,
-0.12112263590097427,
-0.012895599007606506,
-0.01697567291557789,
-0.04073155298829079,
-0.010910804383456707,
-0.04168358072638512,
-0.054407503455877304,
0.04764809086918831,
0.02090434916317463,
-0.10417861491441727,
0.03317655250430107,
-0.04817580059170723,
-0.09254426509141922,
0.040953367948532104,
-0.03670554608106613,
-0.00045617143041454256,
-0.09222519397735596,
0.06122317165136337,
-0.029476895928382874,
-0.004982042126357555,
-0.0904076099395752,
-0.015080800279974937,
-0.0026420855429023504,
0.0354481004178524,
-0.02049889601767063,
0.08351898193359375,
0.04113014414906502,
-0.06044922024011612,
-0.016144270077347755,
0.009371360763907433,
0.08486855030059814,
0.04834330081939697,
-0.004026639275252819,
0.004872191231697798,
0.058250561356544495,
-0.05071520060300827,
0.020987000316381454,
0.017078908160328865,
-0.034779541194438934,
0.007508913986384869,
0.004788461606949568,
0.010584946721792221,
-0.044007521122694016,
0.007449065800756216,
-0.030935533344745636,
-0.06346388161182404,
0.023235920816659927,
-0.014870518818497658,
0.026046788319945335,
0.03132375702261925,
-0.010677740909159184,
0.07727672904729843,
0.0842941477894783,
0.010822543874382973,
0.017413154244422913,
-0.037475187331438065,
-0.0470120795071125,
-0.06677568703889847,
-0.02281026728451252,
0.04809718206524849,
-0.029771456494927406,
-0.1009473130106926,
0.0656648650765419,
0.02539142221212387,
0.010167703032493591,
-0.055033352226018906,
0.052720844745635986,
0.018762297928333282,
0.03241873160004616,
0.06629708409309387,
-0.015716325491666794,
-0.010800637304782867,
-0.006342159118503332,
-0.06995996832847595,
-0.031211862340569496,
0.04162098094820976,
0.015333794988691807,
-0.06967534869909286,
-0.042928729206323624,
0.02746342308819294,
-0.06680357456207275,
0.06322155892848969,
0.02591758407652378,
0.0273083858191967,
-0.06940808892250061,
0.012441870756447315,
-0.03665877878665924,
0.012062937021255493,
-0.05810151249170303,
0.03558313474059105,
0.006758139003068209,
0.08614636212587357,
0.011514857411384583,
-0.03916474059224129,
-0.02143292874097824,
-0.018229573965072632,
0.046923134475946426,
-0.008816537447273731,
0.002208818681538105,
-0.10125107318162918,
0.07654667645692825,
0.02173345908522606,
0.05182688310742378,
0.029329970479011536,
-0.032560743391513824,
0.011687585152685642,
-0.005836809519678354,
-0.03855422884225845,
0.023400364443659782,
-0.06693121045827866,
-0.03632853180170059,
0.021321408450603485,
-0.012189001776278019,
0.033233366906642914,
0.05386246368288994,
-0.06102961301803589,
-0.10710961371660233,
0.06512439996004105,
0.01851174794137478,
-0.01636446826159954,
0.007169277407228947,
0.050195690244436264,
-0.04363486170768738,
-0.001050071557983756,
0.022929323837161064,
0.10154085606336594,
-0.035920578986406326,
-0.008898092433810234,
-0.07757662981748581,
0.012583603151142597,
-0.0686420127749443,
0.03623479977250099,
-0.06232758238911629,
-0.033478084951639175,
0.010129802860319614,
-0.02976308949291706,
0.07917987555265427,
0.01924244314432144,
-0.013482374139130116,
-0.07194675505161285,
-0.04142381623387337,
-0.07259826362133026,
-0.003709576092660427,
-0.02607065998017788,
-0.01112764235585928,
0.008530205115675926,
0.04329509660601616,
-0.00977029837667942,
0.040030017495155334,
0.017464295029640198,
-0.016078421846032143,
0.040906429290771484,
-0.012588429264724255,
0.05249743536114693,
0.04910053685307503,
-0.04965294152498245,
0.059367068111896515,
-0.03910668566823006,
-0.0024570708628743887,
-0.053037211298942566,
-0.10001974552869797,
-0.029322391375899315,
0.025722935795783997,
-0.08112913370132446,
0.03567557409405708,
-0.08475439250469208,
-0.0523056797683239,
0.12792885303497314,
0.07415425777435303,
0.05922786518931389,
0.039575520902872086,
-0.041688594967126846,
0.025419849902391434,
0.018795901909470558,
-0.0023093894124031067,
-0.03820823132991791,
0.022287927567958832,
-0.008068438619375229,
-0.0344025120139122,
-0.011500809341669083,
0.07906828075647354,
-0.11054325103759766,
-0.014107703231275082,
-0.06064549833536148,
0.011058030650019646,
-0.01611524634063244,
-0.009957139380276203,
0.024326568469405174,
-0.017277881503105164,
-0.012071958743035793,
0.09640035033226013,
-0.04144102707505226,
-0.0050099873915314674,
0.03432447090744972,
0.024955391883850098,
0.05622056499123573,
0.02727711759507656,
-0.01592087373137474,
0.12636542320251465,
-0.04828403890132904,
0.021367227658629417,
-0.020479196682572365,
-0.039339613169431686,
0.07385986298322678,
0.019915126264095306,
0.013472901657223701,
-0.03873026743531227,
0.04443959519267082,
0.0473710335791111,
-0.04803988337516785,
-0.0063911303877830505,
0.03528822213411331,
-0.02714463323354721,
0.03845001384615898,
0.0077577633783221245,
-0.010962304659187794,
0.01310044340789318,
-0.046659041196107864,
-0.011799954809248447,
0.00649633351713419,
-0.06035671755671501,
0.026300737634301186,
0.04114881157875061,
-0.10141065716743469,
0.05692221596837044,
-0.01611514203250408,
0.015718823298811913,
0.018980689346790314,
-0.017963426187634468,
0.04823455214500427,
-0.008026942610740662,
0.034135475754737854,
-0.013027848675847054,
-0.07387149333953857,
-0.025231430307030678,
-0.01910179667174816,
0.06279487907886505,
-0.0025125101674348116,
0.022409673780202866,
0.02818450890481472,
-0.004734022542834282,
-0.05975634977221489,
0.006057162303477526,
-0.008952309377491474,
-0.0010624149581417441,
-0.008068995550274849,
0.03858958184719086,
-0.04197802394628525,
-0.013346819207072258,
-0.06873614341020584,
-0.034238871186971664,
-0.015409626066684723,
0.051058076322078705,
0.011647019535303116,
0.0033409055322408676,
0.015466655604541302,
0.02166694961488247,
0.0327298603951931,
-0.04002882540225983,
0.03127005323767662,
-0.006778801325708628,
-0.009052002802491188,
0.003807698842138052,
-0.03397177904844284,
-0.021639134734869003,
0.01693667285144329,
-0.027872035279870033,
-0.03312475606799126,
-0.02463342621922493,
-0.004712064750492573,
-0.008314091712236404,
0.02396908588707447,
0.010622884146869183,
-0.00015877879923209548,
0.0037534672301262617,
0.013333012349903584,
-0.013651334680616856,
0.0636637881398201,
-0.1095646470785141,
-0.01866636425256729,
-0.0020875560585409403,
-0.02781005948781967,
-0.03136593475937843,
-0.020906222984194756,
-0.0006550650577992201,
0.020082013681530952,
-0.024145275354385376,
0.012324679642915726,
0.01106732152402401,
0.022181333974003792,
-0.01358549389988184,
0.0178231168538332,
0.015240977518260479,
0.024478793144226074,
0.018428217619657516,
0.037421371787786484,
-0.009608135558664799,
-0.007158313877880573,
0.004469842649996281,
0.013840450905263424,
-0.04085937887430191,
0.0080136489123106,
-0.01975678652524948,
0.023633349686861038,
0.003293957095593214,
0.05199269950389862,
-0.011427496559917927,
0.0000732563785277307,
-0.034406643360853195,
0.0406898595392704,
0.000995932030491531,
-0.0031043733470141888,
-0.0057442644611001015,
-0.00983474776148796,
-0.012047846801578999,
-0.0256822369992733,
0.011507991701364517,
0.020638711750507355,
0.020141134038567543,
-0.014595968648791313,
0.0629286989569664,
-0.03179720789194107,
0.006689616944640875,
-0.009132045321166515,
0.019552938640117645,
-0.02148166298866272,
0.0062924339435994625,
-0.04041802138090134,
0.0013292664662003517,
-0.02911912463605404,
0.03184381127357483,
0.035323165357112885,
-0.019548874348402023,
-0.04963028430938721,
0.0003377316752448678,
0.00757735688239336,
0.001402501598931849,
0.017695171758532524,
0.001534695504233241,
0.03208969160914421,
0.01985984854400158,
0.00871966127306223,
-0.04386807233095169,
0.0057229772210121155,
0.022128721699118614,
-0.019731326028704643,
-0.04510301351547241,
0.046689726412296295,
-0.00706485053524375,
0.05429117754101753,
-0.013387257233262062,
0.0008229916566051543,
0.005346185527741909,
0.04308938607573509,
0.009358794428408146,
0.004691506735980511,
0.07782178372144699,
0.05973038449883461,
-0.02800772339105606,
-0.04476224258542061,
-0.050652701407670975,
0.02060786448419094,
0.02026921510696411,
0.021980173885822296,
-0.02304367534816265,
-0.012545124627649784,
0.0076384651474654675,
0.035513024777173996,
0.043392643332481384,
-0.03888605907559395,
0.036568284034729004,
0.000767949444707483,
-0.02408669702708721,
-0.01741028018295765,
0.04767562076449394,
0.020297694951295853,
0.009384271688759327,
0.012675285339355469,
0.029704421758651733,
-0.04248356446623802,
-0.027614738792181015,
-0.005274464841932058,
-0.00847927201539278,
-0.007220424246042967,
-0.048600539565086365,
0.002969882683828473,
0.0243148785084486,
0.040949780493974686,
0.0072228191420435905,
-0.0077340202406048775,
0.026211341843008995,
-0.0494435615837574,
0.039323486387729645,
0.006169938016682863,
-0.016877412796020508,
0.009079759009182453,
-0.02293417602777481,
0.011098899878561497,
-0.03589698672294617,
0.00796288438141346,
-0.008557579480111599,
-0.029156174510717392,
0.0485709086060524,
0.008438529446721077,
-0.009369081817567348,
-0.01902884431183338,
0.022514574229717255,
-0.029481902718544006,
-0.003961323294788599,
0.024254044517874718,
0.02767857164144516,
0.03924531489610672,
0.012519079260528088,
-0.014163372106850147,
-0.03334479033946991,
0.017100386321544647,
-0.0024146027863025665,
-0.049121420830488205,
-0.021398451179265976,
0.004286267329007387,
-0.0012263190001249313,
-0.04322293400764465,
0.008263811469078064,
0.013097765855491161,
-0.014032041653990746,
0.0218669306486845,
0.001753537100739777,
-0.011637858115136623,
0.03666676953434944,
-0.0013904205989092588,
0.01246749795973301,
0.023576462641358376,
0.04036352410912514,
0.013548160903155804,
0.038910333067178726,
0.013519336469471455,
0.01606033183634281,
0.06022103875875473,
-0.022327451035380363,
-0.01944093219935894,
-0.06738737225532532,
0.01860382780432701,
-0.0015006052562966943,
0.034254349768161774,
0.0429532490670681,
-0.041957903653383255,
0.0538993738591671,
0.011483519338071346,
-0.008043584413826466,
0.0058151246048510075,
-0.031086422502994537,
-0.004722669254988432,
0.03193506598472595,
0.012266214936971664,
0.04187436029314995,
0.007786467205733061,
-0.07409442961215973,
0.02407774329185486,
-0.02925841137766838,
-0.000668921391479671,
0.0079135000705719,
-0.039311934262514114,
0.028864191845059395,
0.014706293120980263,
0.046004507690668106,
0.03893338516354561,
-0.0015391831984743476,
0.019801463931798935,
0.003291926346719265,
-0.02232350781559944,
0.014842195436358452,
0.014183290302753448,
0.07339291274547577,
-0.004211474675685167,
-0.00839042104780674,
-0.01377943716943264,
-0.016001278534531593,
-0.009462188929319382,
0.060491036623716354,
0.044406019151210785,
-0.0045842877589166164,
-0.031577322632074356,
0.014414890669286251,
0.0641041025519371,
0.040123965591192245,
-0.01068023219704628,
-0.0333905890583992,
-0.0350237712264061,
-0.016456477344036102,
0.027377445250749588,
-0.023733006790280342,
-0.0009187854593619704,
-0.029310477897524834,
-0.039659395813941956,
-0.018278365954756737,
0.011670739389955997,
0.021545764058828354,
0.0057174707762897015,
0.015861237421631813,
0.00602948060259223,
0.03988246992230415,
0.018052522093057632,
0.027437331154942513,
-0.0652647316455841,
0.0073560429736971855,
0.0018130429089069366,
-0.04872303828597069,
0.059875283390283585,
0.04119411110877991,
-0.009112538769841194,
0.0019520254572853446,
0.038107730448246,
0.016705546528100967,
-0.003969394136220217,
0.008569946512579918,
0.03123173862695694,
0.02131911739706993,
-0.027361830696463585,
-0.050608593970537186,
-0.06410308182239532,
-0.02063731476664543,
0.006633865647017956,
-0.05285602807998657,
0.029891032725572586,
0.05370635911822319,
-0.0240176972001791,
-0.012222286313772202,
-0.030948597937822342,
0.008841858245432377,
-0.0336761511862278,
0.019318612292408943,
-0.007344730664044619,
0.030551960691809654,
-0.03700157254934311,
0.013779710046947002,
-0.028715351596474648,
0.01687123067677021,
-0.0148314218968153,
-0.008831475861370564,
-0.023250728845596313,
0.015234441496431828,
0.04390479251742363,
-0.008052443154156208,
-0.006855288986116648,
0.02075727842748165,
-0.024792447686195374,
0.027108196169137955,
-0.03509533777832985,
-0.03790172562003136,
0.0440707765519619,
0.05154721066355705,
0.02240472286939621,
-0.0017746241064742208,
-0.011275011114776134,
-0.057630229741334915,
0.05037733167409897,
0.008918245323002338,
0.031206302344799042,
0.01065079402178526,
0.049330368638038635,
0.028004003688693047,
-0.02341625653207302,
0.03422030434012413,
-0.0011611835798248649,
0.08105853199958801,
-0.02737138792872429,
0.015665248036384583,
0.003573089372366667,
0.006395433563739061,
-0.020389681681990623,
0.005041336175054312,
0.01602466031908989,
-0.025928089395165443,
0.0362747497856617,
-0.004668874200433493,
0.021932324394583702,
-0.008677036501467228,
-0.05147194862365723,
0.010597883723676205,
0.013917709700763226,
-0.009667743928730488,
-0.005890120752155781,
0.006969085894525051,
0.01318796630948782,
0.002089617308229208,
0.02112642303109169,
-0.019272301346063614,
-0.010298730805516243,
-0.029891114681959152,
0.06478583812713623,
0.004295244347304106,
0.005413513630628586,
-0.0069169239141047,
-0.008805443532764912,
0.01679873652756214,
0.004493489861488342,
0.025030646473169327,
-0.006471064407378435,
0.025911550968885422,
-0.020348655059933662,
-0.007429373450577259,
-0.011983080767095089,
-0.037420619279146194,
0.005134690552949905,
0.03013874776661396,
-0.024714814499020576,
0.014548967592418194,
0.013710557483136654,
0.012290983460843563,
0.024411464110016823,
-0.00864457432180643,
-0.0268495362251997,
-0.008035596460103989,
0.025080863386392593,
0.021883200854063034,
0.03145356476306915,
-0.011968373320996761,
-0.03078770823776722,
0.012638648971915245,
0.02947084791958332,
-0.013840869069099426,
-0.009292847476899624,
0.013683926314115524,
0.03082161583006382,
0.005237014964222908,
0.022034527733922005,
-0.05119410902261734,
0.046614184975624084,
-0.026007432490587234,
-0.024515241384506226,
-0.04267998784780502,
0.05304061993956566,
-0.04555952176451683,
-0.016160130500793457,
0.018655631691217422,
0.015179930254817009,
0.011755133979022503,
-0.0355210043489933,
0.020413637161254883,
0.015702595934271812,
0.04102999344468117,
-0.002198741538450122,
0.012724745087325573,
-0.0010016749147325754,
-0.0031822421588003635,
-0.017071854323148727,
0.03011600859463215,
0.020397456362843513,
-0.009947010315954685,
0.027679210528731346,
-0.04475937411189079,
-0.026466773822903633,
-0.005808693356812,
-0.013753159902989864,
0.02785840630531311,
-0.0008223156910389662,
-0.02165421098470688,
-0.04207119718194008,
0.09520512819290161,
0.0019440200412645936,
0.06429388374090195,
0.018156101927161217,
0.010137350298464298,
-0.04984278604388237,
-0.016439544036984444,
0.002725118538364768,
-0.004101437050849199,
0.02036951296031475,
0.013106008060276508,
-0.023043951019644737,
0.026111014187335968,
-0.003686222480610013,
0.01011491660028696,
-0.021380433812737465,
-0.09042955935001373,
0.03612221032381058,
-0.007322653196752071,
0.02288227155804634,
-0.024458695203065872,
0.020660975947976112,
0.04225975275039673,
0.06291240453720093,
0.018212445080280304,
0.05188285931944847,
0.006937362719327211,
-0.021837709471583366,
0.025089604780077934,
0.001133891404606402,
0.04562296345829964,
0.014034610241651535,
-0.00015458448615390807,
-0.023774756118655205,
-0.0024585856590420008,
0.01343727670609951,
-0.022571898996829987,
-0.011811763048171997,
0.029352298006415367,
0.029904603958129883,
-0.01288457028567791,
0.0028468025848269463,
-0.014642231166362762,
-0.0529165118932724,
0.0047372570261359215,
0.002454848261550069,
-0.01017387118190527,
0.01124400831758976,
-0.007256414275616407,
-0.04085972160100937,
0.008344889618456364,
0.0032437394838780165,
0.013658351264894009,
0.04570980742573738,
-0.0037582500372081995,
0.028105603531003,
0.03230343014001846,
-0.018450409173965454,
0.0008868437143974006,
0.002914146753028035,
-0.027240796014666557,
0.011791410855948925,
-0.011522973887622356,
0.019840538501739502,
-0.026081232354044914,
-0.03613784909248352,
-0.009513398632407188,
-0.002965644234791398,
0.0008290563710033894,
-0.0014370759017765522,
-0.01200769655406475,
0.00443787407130003,
0.02845599874854088,
0.04821222275495529,
-0.0014898040099069476,
0.06394794583320618,
0.029881777241826057,
-0.015566589310765266,
0.011373660527169704,
-0.017900889739394188
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | Baseline: Graph frameworks latencies This time we compare performance when using frameworks in “Graph” mode, where the graph is fully known beforehand, and all the allocations and optimizations such as graph pruning and operators fusing can be made. Figure 8. TorchScript latencies with respect to the number of cores involved Figure 9. Google's TensorFlow latencies with respect to the number of cores involved Figure 10. Google's TensorFlow with oneDNN enabled latencies with respect to the number of cores involved Figure 11. Intel TensorFlow latencies with respect to the number of cores involved This is often referred to as “tracing” the graph and, as you can see here, the results are not that different from TorchScript (Graph execution mode from PyTorch) vs TensorFlow(s). All TensorFlow implementations seem to perform better than TorchScript when the parallelization is limited (low number of cores involved in the intra operation computations) but this seems not to scale efficiently as we increase the computation resources, whereas TorchScript seems to be able to better leverage the power of modern CPUs. Still, the margin between all these frameworks in most cases very limited. | [
0.036911457777023315,
-0.019369687885046005,
0.03623685613274574,
0.017060095444321632,
-0.026486830785870552,
0.015519722364842892,
0.03397924080491066,
0.053293533623218536,
-0.013377556577324867,
-0.06610536575317383,
0.008522520773112774,
0.05069870501756668,
-0.014465240761637688,
0.010512626729905605,
0.03443332016468048,
-0.00285360892303288,
0.01156854908913374,
-0.06790364533662796,
0.0002547594194766134,
-0.0005149194039404392,
0.022618232294917107,
-0.07261502742767334,
0.015612906776368618,
0.015323976054787636,
-0.06406143307685852,
-0.02700672298669815,
-0.07575321197509766,
-0.014734123833477497,
-0.08500462025403976,
0.00536670396104455,
-0.08036552369594574,
-0.015610886737704277,
0.07452057301998138,
-0.03585025295615196,
0.00903787650167942,
-0.07250040024518967,
-0.07488436996936798,
0.09323922544717789,
0.039261363446712494,
-0.04948538541793823,
0.026689037680625916,
-0.022106634452939034,
-0.05365068092942238,
0.04102974385023117,
-0.01701844297349453,
0.04062304273247719,
-0.050601132214069366,
0.07913058251142502,
0.028732914477586746,
0.009761186316609383,
-0.13609693944454193,
0.01220672857016325,
0.04674719646573067,
0.01880590245127678,
0.013679394498467445,
0.05870332568883896,
-0.00014039802772458643,
0.008584229275584221,
-0.02265281416475773,
0.02560916170477867,
0.051464300602674484,
0.024777162820100784,
-0.019695546478033066,
0.056550707668066025,
-0.016363266855478287,
-0.015541818924248219,
0.029201578348875046,
0.06479576975107193,
-0.03874935954809189,
-0.004272225312888622,
0.033069122582674026,
0.04406839981675148,
-0.01359020359814167,
0.04335832968354225,
-0.050658732652664185,
0.06783714890480042,
0.003575307549908757,
0.027370043098926544,
0.021506434306502342,
0.005919389892369509,
-0.03877948969602585,
0.06075337901711464,
0.010691976174712181,
0.030049236491322517,
0.0035153795033693314,
0.07183487713336945,
0.03085685335099697,
-0.011389428749680519,
-0.022831805050373077,
-0.007342626806348562,
0.005639950279146433,
-0.14306442439556122,
0.061050061136484146,
0.05259084701538086,
0.01271387841552496,
-0.018950069323182106,
0.029042784124612808,
0.020194826647639275,
-0.040242165327072144,
-0.009222880005836487,
0.0003592480788938701,
-0.09375470131635666,
-0.0005386329139582813,
-0.008750529028475285,
-0.06925157457590103,
0.027533702552318573,
-0.017065109685063362,
-0.045192912220954895,
-0.016735922545194626,
0.0006754535133950412,
-0.09716611355543137,
0.08602938055992126,
-0.04435979202389717,
0.08120671659708023,
-0.04284720867872238,
-0.024009305983781815,
-0.08659986406564713,
-0.020125478506088257,
-0.03790120780467987,
-0.008071516640484333,
0.04169997572898865,
0.09896038472652435,
0.043324343860149384,
0.01281729992479086,
-0.0015930236550047994,
0.13493865728378296,
0.03281564265489578,
0.006970025599002838,
0.05346216633915901,
-0.0306889358907938,
0.0446130707859993,
0.004368084482848644,
0.09709428250789642,
-0.007521166931837797,
0.0028006115462630987,
-0.09922228008508682,
-0.021391578018665314,
-0.030080564320087433,
-0.03354201465845108,
-0.009733661077916622,
-0.051463913172483444,
-0.006456487812101841,
0.05450868606567383,
0.04626151919364929,
0.029213353991508484,
-0.03850126266479492,
0.005331058986485004,
0.002888332586735487,
0.040959589183330536,
0.005563957151025534,
-0.1063295304775238,
0.0678267627954483,
-0.10081352293491364,
0.05423727259039879,
-0.00616135960444808,
0.06432690471410751,
0.032436802983284,
-0.05477757751941681,
-0.025692002847790718,
-0.02258644811809063,
-0.009204946458339691,
-0.014498040080070496,
0.009724263101816177,
-0.04987369105219841,
-0.0000018203338640887523,
-0.035013992339372635,
0.08632958680391312,
-0.049962498247623444,
-0.0042083547450602055,
0.04440794885158539,
-0.0036654467694461346,
0.008914471603929996,
0.07962891459465027,
-0.07180184870958328,
-0.01512881275266409,
0.05217723175883293,
-0.0548042394220829,
0.08079016953706741,
0.010435406118631363,
-0.028140613809227943,
-0.005930715706199408,
0.012665619142353535,
0.015506351366639137,
-0.008631077595055103,
0.002300164895132184,
-0.07919161766767502,
-0.005860539618879557,
-0.08009260892868042,
0.009214396588504314,
0.030702954158186913,
-0.009106992743909359,
-0.033846963196992874,
0.046326156705617905,
-0.07614452391862869,
0.06177143007516861,
-0.045786913484334946,
-0.003926929086446762,
0.07829933613538742,
0.036111779510974884,
0.021154828369617462,
0.04523773118853569,
-0.04457913711667061,
0.01041992288082838,
-0.017605986446142197,
-0.028175435960292816,
0.017807647585868835,
0.03367290273308754,
-0.05943673104047775,
-0.03653771057724953,
-0.01631646417081356,
0.03651338815689087,
-0.0966360867023468,
-0.03419042006134987,
0.007249387446790934,
0.01707053743302822,
-0.012119087390601635,
-0.003606304293498397,
0.06357339024543762,
0.03695002570748329,
-0.01877525821328163,
0.1526661366224289,
-0.08245114237070084,
-0.035127148032188416,
0.00292118894867599,
-0.12070506811141968,
0.00285084149800241,
-0.006058600731194019,
0.0073827761225402355,
0.05839340016245842,
-0.04371648654341698,
0.04254244640469551,
-0.046364933252334595,
0.028410255908966064,
0.03210524097084999,
-0.007513829972594976,
0.009867659769952297,
-0.08347804099321365,
0.07930561155080795,
0.010556423105299473,
-0.057887930423021317,
0.026566676795482635,
0.0013610171154141426,
0.021709708496928215,
0.039664093405008316,
0.039024099707603455,
0.002359406091272831,
0.029862938448786736,
-0.049789562821388245,
0.02230805717408657,
-0.0011241661850363016,
-0.0241839662194252,
-0.04916691407561302,
-0.01223941333591938,
-0.039463575929403305,
0.04389264062047005,
0.04109647497534752,
0.02782185561954975,
-0.03780375421047211,
-0.00845277402549982,
0.029400194063782692,
0.05944063514471054,
-0.021974986419081688,
-0.041138388216495514,
-0.0025800676085054874,
0.010465815663337708,
-0.06261210888624191,
0.028297225013375282,
-0.054512932896614075,
0.028063984587788582,
-0.0033153535332530737,
0.019262205809354782,
-0.04624545946717262,
-0.011404560878872871,
-0.04110496863722801,
0.014200073666870594,
-0.0012941623572260141,
0.01921353116631508,
-0.02603456936776638,
-0.045995019376277924,
-0.00856811087578535,
-0.02247147262096405,
-0.0009689071448519826,
0.038906030356884,
0.018281016498804092,
-0.04829461872577667,
-0.0013019121252000332,
0.0031514856964349747,
0.010475094430148602,
-0.03324561193585396,
0.03215562924742699,
0.024698447436094284,
0.014457271434366703,
0.01879182644188404,
-0.011785290203988552,
-0.01606825366616249,
0.03482021391391754,
-0.003971392288804054,
-0.04284166917204857,
0.009478390216827393,
0.002592649543657899,
-0.032089963555336,
0.02312491647899151,
-0.013630412518978119,
-0.04421247914433479,
-0.05054425448179245,
0.03782842308282852,
0.010351350530982018,
0.053286757320165634,
-0.08063219487667084,
-0.01808246225118637,
-0.010939029045403004,
0.022172093391418457,
-0.06451497972011566,
-0.05573247745633125,
-0.005331103224307299,
0.0074992007575929165,
0.017778506502509117,
0.015314538963139057,
-0.010229576379060745,
-0.014415336772799492,
-0.01983206532895565,
0.03809426352381706,
0.00392902409657836,
0.018664449453353882,
0.010697321966290474,
0.025096168741583824,
0.017920508980751038,
-0.0018168813548982143,
-0.008319305256009102,
0.004743089433759451,
-0.009569923393428326,
-0.027679769322276115,
-0.030831340700387955,
0.006078940816223621,
-0.020891282707452774,
0.0030296356417238712,
0.012474260292947292,
-0.0073835840448737144,
-0.03800279647111893,
-0.00738928560167551,
0.02418925240635872,
0.018822817131876945,
-0.0031196693889796734,
0.013109773397445679,
0.007546628825366497,
0.002226782962679863,
0.061294738203287125,
0.0175776444375515,
0.007033622357994318,
-0.024141017347574234,
0.03650742024183273,
-0.05075915530323982,
0.029528329148888588,
0.00011515231017256156,
-0.0068700495176017284,
-0.030780579894781113,
0.008327833376824856,
-0.038452401757240295,
-0.08449932932853699,
0.00327800284139812,
-0.0016516847535967827,
0.00952046737074852,
0.007841086015105247,
-0.03719986230134964,
-0.05100005492568016,
-0.026028892025351524,
0.024364249780774117,
0.010262292809784412,
-0.06769632548093796,
0.022780049592256546,
0.05626269802451134,
0.0019810933154076338,
-0.02473541349172592,
0.011779122985899448,
0.03129369765520096,
0.009648319333791733,
0.0041057756170630455,
-0.02464451640844345,
0.0009045202168636024,
0.03260555490851402,
0.015150456689298153,
0.010608547367155552,
-0.027066491544246674,
0.018665283918380737,
-0.02995837666094303,
0.014414211735129356,
0.03671086207032204,
0.017571493983268738,
-0.022467341274023056,
-0.05932339280843735,
-0.007405935321003199,
-0.005059442482888699,
0.012802519835531712,
0.03112988919019699,
-0.016994966194033623,
-0.02284753881394863,
0.004067243076860905,
0.01943867839872837,
0.05075683817267418,
0.018434584140777588,
0.04245184734463692,
0.007502582855522633,
-0.0010022420901805162,
-0.030840372666716576,
0.02805311232805252,
0.027664700523018837,
-0.017779972404241562,
0.028988219797611237,
-0.0024010641500353813,
-0.03407442942261696,
0.03513206169009209,
0.012664097361266613,
0.006401177030056715,
0.04062531143426895,
-0.015695760026574135,
0.05254131555557251,
0.05394643545150757,
0.01905977539718151,
0.015833085402846336,
0.01830693893134594,
0.03940107300877571,
-0.03693816438317299,
0.04939312860369682,
0.018387451767921448,
0.021979182958602905,
-0.019960841163992882,
-0.01975453458726406,
0.0752425491809845,
-0.02690074034035206,
0.033713046461343765,
-0.01077161356806755,
0.023075422272086143,
0.02340264618396759,
-0.037157971411943436,
-0.019887804985046387,
-0.03455514460802078,
0.03139842301607132,
-0.0028928015381097794,
-0.047124750912189484,
0.056855447590351105,
0.013378213159739971,
0.0229986272752285,
-0.011825181543827057,
-0.041542019695043564,
-0.016775978729128838,
-0.003971641417592764,
-0.0055802082642912865,
-0.03392791748046875,
-0.01643436960875988,
0.05893595144152641,
0.00662525650113821,
-0.011772280558943748,
0.002402084181085229,
0.026349809020757675,
-0.032088980078697205,
0.015095649287104607,
-0.05019325390458107,
0.03414458408951759,
0.032497670501470566,
-0.021277477964758873,
0.01313138660043478,
0.0009104525088332593,
0.029835958033800125,
-0.005011886358261108,
0.005488157272338867,
-0.0001728497736621648,
0.01324534323066473,
0.04118405655026436,
0.004653080366551876,
-0.013338432647287846,
-0.00787776242941618,
0.009634296409785748,
0.012530634179711342,
-0.02769496478140354,
-0.00926029309630394,
-0.06415864080190659,
0.01075002457946539,
0.006508170627057552,
-0.004946861416101456,
0.011962446384131908,
-0.036116842180490494,
-0.01350915152579546,
0.02382734604179859,
0.009161483496427536,
-0.008473828434944153,
-0.004059480968862772,
0.02231087163090706,
0.011613599956035614,
-0.017718903720378876,
-0.017344238236546516,
0.055585429072380066,
-0.013626690953969955,
0.01963338628411293,
-0.02393653616309166,
0.006189226638525724,
0.04297395795583725,
-0.009125402197241783,
0.051966309547424316,
0.05820539966225624,
-0.004433056339621544,
0.007224803790450096,
-0.03194456174969673,
0.02888321503996849,
-0.0012033777311444283,
-0.002541570458561182,
0.0326869823038578,
0.016320575028657913,
-0.05300741270184517,
0.022348912432789803,
0.002590460004284978,
-0.0025487446691840887,
-0.02699260786175728,
0.03745723143219948,
0.0443277508020401,
-0.0022192890755832195,
-0.02568388171494007,
0.025823261588811874,
-0.028542760759592056,
0.02646115981042385,
-0.006224034354090691,
0.002638261765241623,
0.005016665440052748,
0.029765507206320763,
-0.03699702024459839,
-0.029609402641654015,
0.023543518036603928,
0.027502819895744324,
0.05685413256287575,
-0.02304714545607567,
0.019293567165732384,
-0.004788573831319809,
-0.0014412206364795566,
0.006784501485526562,
0.0015062108868733048,
-0.014607882127165794,
0.013018700294196606,
-0.001933037769049406,
0.010474180802702904,
0.014416486024856567,
0.0075263516046106815,
-0.053758785128593445,
0.03006351925432682,
0.02342332899570465,
0.043512824922800064,
0.020049940794706345,
-0.005414901301264763,
0.06647641211748123,
-0.06984297186136246,
-0.03089103475213051,
-0.011675165966153145,
-0.029945386573672295,
0.0016151790041476488,
-0.015599937178194523,
0.025539051741361618,
0.06613942980766296,
-0.011204427108168602,
0.029430530965328217,
0.02765665575861931,
0.0053545390255749226,
-0.0350395031273365,
0.02706056460738182,
-0.054158493876457214,
0.03240711987018585,
-0.02183816023170948,
0.019792307168245316,
0.03575177490711212,
0.003443280467763543,
0.04714606702327728,
-0.02878573164343834,
-0.04944413900375366,
0.05332665517926216,
0.014831265434622765,
-0.026492666453123093,
0.02533668465912342,
0.023149874061346054,
-0.09100156277418137,
-0.024364078417420387,
0.0037273322232067585,
0.0022461561020463705,
0.017140211537480354,
0.01912364922463894,
-0.01647193729877472,
-0.006364758126437664,
-0.0010903173824772239,
-0.02483360469341278,
0.08152753114700317,
0.016294777393341064,
0.05003896355628967,
0.014687161892652512,
0.044693995267152786,
0.0751701220870018,
-0.02025642804801464,
0.009999250061810017,
-0.023037489503622055,
0.054271720349788666,
0.008026806637644768,
-0.01774398237466812,
0.007394843734800816,
-0.0577903687953949,
-0.011589981615543365,
-0.010031575337052345,
-0.026287300512194633,
-0.008817614056169987,
0.0025044709909707308,
-0.010141963139176369,
0.019898340106010437,
-0.0024766374845057726,
-0.02064371667802334,
0.013517853803932667,
0.011654090136289597,
0.01831437274813652,
-0.011605635285377502,
0.024668801575899124,
0.001522306352853775,
-0.00012106669601053,
-0.022071830928325653,
-0.0142123494297266,
0.02952103316783905,
-0.0019349221838638186,
0.041109997779130936,
0.05128578096628189,
0.036322660744190216,
-0.03740647807717323,
0.03348276764154434,
-0.0023286468349397182,
0.03345103934407234,
-0.044595614075660706,
0.006469688843935728,
0.04253630340099335,
0.01754927635192871,
0.028531696647405624,
-0.011327216401696205,
-0.04460771381855011,
0.041781455278396606,
-0.028272034600377083,
-0.04500452056527138,
-0.010074702091515064,
-0.0002522903378121555,
-0.005066210404038429,
0.031053025275468826,
0.004998574964702129,
0.010175873525440693,
-0.01907465234398842,
-0.00031449299422092736,
-0.014323179610073566,
0.009054846130311489,
-0.03540978953242302,
-0.003599375020712614,
0.008743706159293652,
0.04887247085571289,
0.002406227635219693,
-0.001344703952781856,
-0.02359740436077118,
0.025065714493393898,
0.026408612728118896,
-0.010878050699830055,
-0.011893562972545624,
-0.005176869221031666,
-0.024174446240067482,
0.0029521738179028034,
-0.07213541865348816,
0.02260514907538891,
-0.028978900983929634,
-0.08192840963602066,
0.04828289896249771,
0.056577879935503006,
0.019754773005843163,
-0.04713291674852371,
0.023321963846683502,
-0.008449587039649487,
0.00019159774819854647,
-0.03476626053452492,
-0.04573534056544304,
-0.00911316554993391,
0.00933877844363451,
-0.030117638409137726,
-0.006165576167404652,
0.048069339245557785,
-0.0014326435048133135,
-0.018243961036205292,
-0.05125340446829796,
-0.018562160432338715,
-0.05760056897997856,
0.016175346449017525,
0.037440259009599686,
0.017318690195679665,
-0.008222891017794609,
-0.007692996878176928,
0.03275503218173981,
0.01485874317586422,
-0.00011496838124003261,
0.06305007636547089,
-0.005337041337043047,
0.014763585291802883,
-0.0582844614982605,
0.01944105699658394,
-0.0342431515455246,
0.025312718003988266,
0.0007571271853521466,
-0.014535724185407162,
-0.011943357065320015,
0.01640566810965538,
-0.005807202775031328,
-0.004539046436548233,
-0.053795572370290756,
0.050802990794181824,
-0.02784624882042408,
-0.00747640198096633,
-0.0020281702745705843,
-0.04022272676229477,
0.06290097534656525,
0.03802597522735596,
0.008150952868163586,
-0.004396700765937567,
-0.020552555099129677,
-0.009453384205698967,
-0.03228946402668953,
0.023767804726958275,
0.01807192526757717,
-0.03042191080749035,
-0.011316745541989803,
0.011105114594101906,
-0.017300598323345184,
0.008653742261230946,
0.0011116624809801579,
0.003985939081758261,
0.0005919638206250966,
0.0001866472011897713,
-0.017655417323112488,
0.003609588835388422,
-0.027925951406359673,
-0.02100839465856552,
0.03049805387854576,
0.02339629828929901,
-0.027003562077879906,
0.015015769749879837,
-0.02553226426243782,
-0.008568751625716686,
-0.027281971648335457,
0.05068228393793106,
-0.01564062386751175,
0.049920372664928436,
-0.015038246288895607,
0.02508099563419819,
0.022193508222699165,
0.024823568761348724,
0.0070774974301457405,
-0.01019064150750637,
-0.040259186178445816,
-0.0765034556388855,
-0.037455473095178604,
0.042156118899583817,
-0.04134856536984444,
-0.04073888808488846,
0.037903353571891785,
-0.019024327397346497,
-0.005613537505269051,
-0.0014955156948417425,
0.024088118225336075,
-0.006169528234750032,
0.00522969476878643,
0.008919461630284786,
-0.023314224556088448,
0.030686357989907265,
0.019951030611991882,
-0.024184536188840866,
0.003672137623652816,
0.01779584400355816
] |
Scaling up BERT-like model Inference on modern CPU - Part 2 | mfuntowicz | November 4, 2021 | bert-cpu-scaling-part-2 | partnerships, intel, guide, nlp | https://huggingface.co/blog/bert-cpu-scaling-part-2 | 3. Optimized mathematical operators Now that we covered the necessary building blocks for designing efficient data structures and parallel algorithms, the last remaining piece is the one running the computation, the one implementing the variety of mathematical operators and neural network layers to do what we love most, designing neural networks! 😊 In every programmer toolkit, there are multiple levels which can bring mathematical operations support, which can then be optimized differently depending on various factors such as the data storage layout being used (Contiguous memory, Chunked, Packed, etc.), the data format representing each scalar element (Float32, Integer, Long, Bfloat16, etc.) and of course the various instructions being supported by your processor. Nowadays, almost all processors support basic mathematical operations on scalar items (one single item at time) or in vectorized mode (meaning they operate on multiple items within the same CPU instructions, referred as SIMD “Single Instruction Multiple Data”). Famous sets of SIMD instructions are SSE2, AVX, AVX2 and the AVX-512 present on the latest generations of Intel CPUs being able to operate over 16 bytes of content within a single CPU clock. Most of the time, one doesn't have to worry too much about the actual assembly being generated to execute a simple element-wise addition between two vectors, but if you do, again there are some libraries which allow you to go one level higher than writing code calling CPU specific intrinsic to implement efficient mathematical kernels. This is for instance what Intel’s MKL “Math Kernel Library” provides, along with the famous BLAS “Basic Linear Algebra Subroutines” interface to implement all the basic operations for linear algebra. Finally, on top of this, one can find some domain specific libraries such as Intel's oneDNN which brings all the most common and essential building blocks required to implement neural network layers. Intel MKL and oneDNN are natively integrated within the PyTorch framework, where it can enable some performance speedup for certain operations such as Linear + ReLU or Convolution. On the TensorFlow side, oneDNN can be enabled by setting the environment variable TF_ENABLE_ONEDNN_OPTS=1 (TensorFlow >= 2.5.0) to achieve similar machinery under the hood. | [
0.11318927258253098,
-0.017689839005470276,
0.03931421414017677,
0.001783736632205546,
0.027985041961073875,
0.03618967905640602,
0.008173128589987755,
0.02751588448882103,
-0.025228936225175858,
-0.0077805956825613976,
-0.03938072919845581,
0.03465836122632027,
-0.0083076860755682,
-0.025459997355937958,
0.0035185664892196655,
-0.019922085106372833,
0.07023418694734573,
-0.030683912336826324,
0.006916595157235861,
0.041547734290361404,
0.05091351270675659,
-0.02247805893421173,
0.12544703483581543,
0.035258661955595016,
-0.07206111401319504,
0.010589146055281162,
-0.04323984682559967,
-0.04966622218489647,
-0.002678946126252413,
0.0661037489771843,
-0.11371463537216187,
0.0026091719046235085,
-0.01917700096964836,
0.004618646111339331,
-0.012260418385267258,
-0.026743169873952866,
-0.017368564382195473,
0.06005088984966278,
0.07372746616601944,
-0.027660002931952477,
0.010816877707839012,
-0.009331501089036465,
-0.07732044905424118,
0.021962687373161316,
-0.027302803471684456,
0.02276614122092724,
-0.13907203078269958,
0.07996170967817307,
-0.0436851903796196,
-0.019222449511289597,
-0.06867201626300812,
0.004383841995149851,
-0.0780954360961914,
0.041013043373823166,
0.01620539464056492,
0.0609472393989563,
0.02495742402970791,
-0.024335404857993126,
0.023374563083052635,
0.01924232579767704,
0.09333380311727524,
0.05299678072333336,
0.0037135041784495115,
-0.03686833754181862,
0.03793545812368393,
-0.0012957592261955142,
0.012718819081783295,
-0.027524584904313087,
-0.07745775580406189,
-0.016828792169690132,
0.025451762601733208,
0.010563981719315052,
-0.0284134428948164,
0.031144356355071068,
-0.032384198158979416,
-0.08270031213760376,
0.0027360182721167803,
-0.01010304968804121,
0.06671330332756042,
0.0303475484251976,
0.012967100366950035,
0.0924147441983223,
0.05815088748931885,
0.0744798481464386,
0.035336244851350784,
0.020646892488002777,
0.005607994273304939,
-0.006611205637454987,
-0.0030125873163342476,
0.09988046437501907,
0.03797910362482071,
-0.045772720128297806,
0.0859118178486824,
-0.0009376649395562708,
0.022861910983920097,
-0.02183089219033718,
-0.004370259586721659,
-0.036446280777454376,
-0.01735243946313858,
-0.006904473528265953,
0.017267078161239624,
-0.050629306584596634,
0.06033621355891228,
-0.0386146642267704,
-0.09095816314220428,
0.05726241320371628,
-0.029961729422211647,
-0.06467754393815994,
-0.03377378359436989,
0.027876172214746475,
-0.1056268960237503,
0.03908037021756172,
0.03725593537092209,
0.015942459926009178,
-0.07626032829284668,
0.043661393225193024,
-0.00790150836110115,
0.0177278034389019,
-0.07772926986217499,
0.01084817573428154,
0.03065728209912777,
0.10690312087535858,
0.0794549509882927,
-0.0007739649736322463,
0.01668577454984188,
0.03946608677506447,
0.03281848877668381,
0.011394428089261055,
0.033115413039922714,
-0.07672800868749619,
0.01645814999938011,
0.0393223762512207,
0.06683511286973953,
0.00816410407423973,
0.00786642823368311,
-0.09567958861589432,
-0.020902017131447792,
-0.03406431898474693,
-0.07856183499097824,
-0.03682062402367592,
-0.04099934920668602,
0.03482194244861603,
0.0634680911898613,
0.04151453822851181,
0.029390566051006317,
-0.08340464532375336,
0.04473893716931343,
0.0039904359728097916,
0.04435006529092789,
-0.001621213392354548,
-0.0038948666770011187,
-0.008642185479402542,
-0.041214656084775925,
-0.02625027485191822,
0.00283823162317276,
0.03812248259782791,
0.010314793325960636,
-0.0030148166697472334,
-0.0912896916270256,
-0.029047543182969093,
0.033363353461027145,
-0.028186148032546043,
-0.015319610014557838,
-0.020978329703211784,
0.014107475988566875,
-0.03541399538516998,
0.0929940715432167,
0.024330198764801025,
0.010101599618792534,
0.03549027070403099,
-0.0013136914931237698,
-0.05469239503145218,
0.0435272641479969,
0.007560844533145428,
-0.010799765586853027,
-0.003291745437309146,
-0.018108392134308815,
0.058051999658346176,
0.06497691571712494,
-0.0376598946750164,
-0.04409925267100334,
0.002052494091913104,
0.008573329076170921,
0.043415673077106476,
0.035902004688978195,
-0.043903984129428864,
-0.011067843995988369,
-0.08903707563877106,
0.0010115108452737331,
0.047152724117040634,
-0.05170012637972832,
-0.01840541884303093,
0.02606542780995369,
-0.024035649374127388,
0.00019792986859101802,
-0.0718233585357666,
-0.0637873187661171,
0.1408921778202057,
0.07838762551546097,
0.051976874470710754,
0.09836503863334656,
-0.008418609388172626,
0.007299426943063736,
0.0022067311219871044,
0.02024233341217041,
-0.006742061115801334,
0.016955697908997536,
-0.09910861402750015,
-0.01007902342826128,
-0.03360046073794365,
-0.01991460658609867,
-0.12447983771562576,
-0.012947107665240765,
-0.042384836822748184,
-0.013757606036961079,
0.022663520649075508,
-0.006879629101604223,
0.048882078379392624,
0.04334914684295654,
-0.0352083183825016,
0.14641228318214417,
-0.09534543752670288,
-0.03688732162117958,
0.02590075507760048,
-0.04805348068475723,
0.004540520720183849,
0.09360796958208084,
0.0065343561582267284,
0.03911997377872467,
-0.018135441467165947,
0.0007735342369414866,
-0.11042898148298264,
-0.010530141182243824,
0.056650422513484955,
0.038864243775606155,
-0.0027888426557183266,
-0.007915985770523548,
0.016341514885425568,
0.057302121073007584,
-0.037502847611904144,
-0.010414923541247845,
0.025705182924866676,
-0.020979786291718483,
-0.026010647416114807,
-0.029347697272896767,
-0.006805002223700285,
0.04333556443452835,
-0.050313930958509445,
-0.0035984532441943884,
-0.002748300787061453,
-0.02404658868908882,
0.006708703003823757,
-0.02688848413527012,
-0.03235635533928871,
0.021513009443879128,
0.06218960881233215,
0.008570871315896511,
-0.025309955701231956,
-0.012577934190630913,
-0.0181173924356699,
-0.0021008183248341084,
-0.009674160741269588,
-0.03047199547290802,
-0.06982658058404922,
-0.03103424236178398,
-0.057222455739974976,
0.028187299147248268,
-0.0012955085840076208,
0.035003554075956345,
-0.002977904165163636,
0.02323457971215248,
-0.038641832768917084,
0.018527213484048843,
-0.014202757738530636,
0.024251706898212433,
0.006522671785205603,
-0.003297892166301608,
-0.028975287452340126,
-0.061786115169525146,
-0.04538597911596298,
-0.018670260906219482,
-0.023779040202498436,
0.05536740645766258,
0.055272459983825684,
-0.0009918664582073689,
-0.0313749685883522,
-0.0027590044774115086,
0.03251318261027336,
-0.022367464378476143,
0.015914088115096092,
-0.012012101709842682,
0.024128645658493042,
-0.03743661567568779,
-0.05939595773816109,
0.013806110247969627,
0.020111287012696266,
-0.04060498625040054,
-0.03843618556857109,
-0.043606266379356384,
0.036059893667697906,
0.018248798325657845,
-0.014463339932262897,
0.02328892983496189,
-0.00537732383236289,
-0.024152081459760666,
-0.0033437111414968967,
0.03557196259498596,
0.03331013023853302,
-0.10073447227478027,
-0.015843719244003296,
-0.03666376695036888,
0.038315169513225555,
-0.021884143352508545,
-0.028587976470589638,
0.0005305559025146067,
0.01857304759323597,
-0.018198924139142036,
-0.01265875343233347,
0.018494874238967896,
0.008361698128283024,
0.020003631711006165,
-0.016552025452256203,
-0.022140415385365486,
0.0011614690301939845,
0.01949916034936905,
-0.014763510785996914,
0.016716402024030685,
0.01117872353643179,
-0.002378689358010888,
0.04231305792927742,
-0.03004973568022251,
0.010193664580583572,
-0.04495813697576523,
0.034514833241701126,
0.05367366224527359,
0.032658737152814865,
-0.007403791882097721,
-0.0180723425000906,
-0.05533409118652344,
-0.003152461489662528,
-0.015562023967504501,
-0.018965182825922966,
0.005383629351854324,
-0.007352930959314108,
0.0032173600047826767,
-0.02918434329330921,
0.0075226337648928165,
-0.0030899180565029383,
0.0315321609377861,
0.0026672903914004564,
0.031203530728816986,
-0.03699870780110359,
-0.02561894990503788,
-0.013908511027693748,
0.02992089092731476,
-0.0038132602348923683,
0.02461796998977661,
-0.05661429464817047,
-0.021116474643349648,
-0.027203604578971863,
0.03094678930938244,
-0.02405218780040741,
-0.056298039853572845,
-0.012471338734030724,
-0.047723397612571716,
0.0010611081961542368,
0.03652489185333252,
-0.003725559450685978,
-0.0006467864150181413,
0.036194298416376114,
0.045775674283504486,
0.02240922302007675,
-0.033231984823942184,
-0.007144297007471323,
0.03325796499848366,
-0.00030179551686160266,
0.00423192884773016,
0.05461738631129265,
-0.012291581369936466,
-0.0037630985025316477,
0.011177949607372284,
0.003534305142238736,
-0.013905283063650131,
0.03374764323234558,
-0.03499922528862953,
0.0437498465180397,
0.05969371646642685,
0.04410354420542717,
-0.018405720591545105,
-0.046351660043001175,
-0.030208691954612732,
0.008471905253827572,
0.02070971578359604,
0.005420762579888105,
-0.010537534952163696,
-0.052133120596408844,
0.017158471047878265,
0.045827820897102356,
0.04735255241394043,
-0.05020789057016373,
0.04014544561505318,
-0.01418730802834034,
0.015972863882780075,
0.0235784612596035,
0.036394570022821426,
0.010679309256374836,
-0.008381026796996593,
0.03807626664638519,
0.0517503023147583,
-0.0531669557094574,
0.01665608584880829,
0.010534721426665783,
0.005012954585254192,
-0.037996336817741394,
-0.027235880494117737,
0.04211961105465889,
-0.0019968508277088404,
0.00043596854084171355,
-0.014258681796491146,
0.005810726899653673,
-0.010117043741047382,
0.001959872664883733,
0.014207988046109676,
-0.004632491618394852,
-0.012583117932081223,
-0.016711318865418434,
-0.015874559059739113,
0.03381802514195442,
-0.056663189083337784,
0.02145097777247429,
0.01686868630349636,
-0.031448714435100555,
0.036093004047870636,
-0.015536535531282425,
0.015756165608763695,
0.00599086144939065,
0.014100399799644947,
-0.0017023313557729125,
-0.05851653963327408,
0.037371762096881866,
0.025066310539841652,
0.024883423000574112,
0.0027827899903059006,
0.0015066700289025903,
0.0161050446331501,
0.03545541688799858,
0.006518970709294081,
-0.06167888641357422,
-0.0156693197786808,
0.03932265564799309,
0.024843931198120117,
0.010336770676076412,
0.028074054047465324,
0.02495003677904606,
-0.022507507354021072,
0.005551395937800407,
-0.003702768823131919,
0.02050410583615303,
0.03565416857600212,
0.006215906236320734,
-0.044626157730817795,
0.012288873083889484,
-0.0012058713473379612,
0.0030315550975501537,
0.029009614139795303,
0.022768445312976837,
0.012176334857940674,
0.03986804932355881,
-0.004946825094521046,
-0.008354504592716694,
-0.016251113265752792,
0.012839972972869873,
-0.009105001576244831,
-0.016622420400381088,
-0.00930815190076828,
0.014202848076820374,
0.004142119083553553,
-0.026157427579164505,
-0.0059934514574706554,
0.010269010439515114,
-0.04084622859954834,
-0.053459782153367996,
0.03044860251247883,
-0.005196644924581051,
-0.004127010703086853,
-0.01663287915289402,
-0.011980482377111912,
0.01787944883108139,
-0.004175159614533186,
-0.006892622448503971,
-0.007273341063410044,
0.029280461370944977,
-0.005763423163443804,
0.05846147611737251,
0.016103610396385193,
0.05781441554427147,
0.0015915496041998267,
0.006581656169146299,
0.043192967772483826,
-0.031241463497281075,
0.05007101222872734,
-0.04028213396668434,
-0.0053052338771522045,
0.028032826259732246,
-0.021123653277754784,
-0.000534671125933528,
0.016755128279328346,
-0.03611568734049797,
0.008795683272182941,
0.01986742950975895,
-0.012330315075814724,
-0.01984473317861557,
0.027318013831973076,
0.020871762186288834,
-0.011609535664319992,
-0.02136058360338211,
0.032940998673439026,
-0.025976382195949554,
0.027547700330615044,
0.042727723717689514,
-0.004464517813175917,
-0.012724901549518108,
-0.006740010343492031,
-0.02294546738266945,
-0.052863072603940964,
0.017865048721432686,
0.009555480442941189,
0.021899623796343803,
0.01364598423242569,
0.0003288683947175741,
-0.033162668347358704,
0.006068418268114328,
-0.009703823365271091,
-0.03423696756362915,
-0.0023145934101194143,
0.0007304513710550964,
-0.0014908448792994022,
-0.004438585136085749,
0.019684338942170143,
-0.015055939555168152,
-0.041340913623571396,
0.004197894595563412,
0.012498060241341591,
-0.03291260823607445,
0.0018034394597634673,
-0.019156986847519875,
0.0187250804156065,
-0.01762351579964161,
-0.05353730916976929,
0.0012829428305849433,
-0.050591178238391876,
0.03173653781414032,
-0.029664233326911926,
0.034833621233701706,
0.08064916729927063,
-0.02624587155878544,
-0.03251125290989876,
0.024219093844294548,
0.0288526713848114,
-0.042313624173402786,
0.012855970300734043,
0.010912633500993252,
0.01750252954661846,
0.009335778653621674,
0.015224735252559185,
-0.034287229180336,
0.04768405482172966,
0.033375486731529236,
-0.020668473094701767,
-0.048408541828393936,
0.04273087903857231,
-0.005489027593284845,
-0.02958645671606064,
0.008422174490988255,
0.00862827617675066,
-0.015519475564360619,
0.028569847345352173,
0.01009331177920103,
0.0065690260380506516,
0.011518537998199463,
0.008692230097949505,
0.036868419498205185,
-0.00902596302330494,
-0.011069562286138535,
-0.027363471686840057,
0.08020859211683273,
-0.030014190822839737,
0.026513418182730675,
-0.013843442313373089,
0.05303993448615074,
0.051885634660720825,
-0.008719559758901596,
0.00023761356715112925,
0.006009869743138552,
0.056588251143693924,
-0.020482905209064484,
0.03503510355949402,
0.05931563675403595,
-0.003621472977101803,
-0.020308973267674446,
0.0033803400583565235,
0.016351137310266495,
-0.08162842690944672,
-0.00807315856218338,
-0.000917050230782479,
0.013013728894293308,
0.012508142739534378,
-0.08920178562402725,
0.0407281368970871,
0.03588513284921646,
0.00369244278408587,
0.041864942759275436,
0.017093714326620102,
0.041946619749069214,
0.010664459317922592,
-0.01367767620831728,
-0.00912503432482481,
-0.0063240909948945045,
0.004065394401550293,
0.02633071132004261,
0.006272884085774422,
0.04321886971592903,
-0.004460976924747229,
-0.016144275665283203,
0.047370921820402145,
0.00177939108107239,
0.005173384677618742,
0.03488542512059212,
0.020347662270069122,
-0.01870938390493393,
0.024532845243811607,
-0.011398840695619583,
-0.07039094716310501,
0.026296162977814674,
-0.019326666370034218,
-0.011047364212572575,
-0.030939090996980667,
0.00877551082521677,
-0.03651270642876625,
0.016182061284780502,
0.006033319979906082,
-0.0459437370300293,
-0.01532403938472271,
-0.019903765991330147,
0.017336023971438408,
0.00361049547791481,
-0.0027324643451720476,
0.006074482575058937,
-0.014416090212762356,
0.026172230020165443,
0.008048308081924915,
0.0008905763388611376,
-0.008845498785376549,
-0.00023135761148296297,
0.01773761212825775,
-0.0002791929291561246,
-0.047075677663087845,
-0.0027901469729840755,
-0.0020199702121317387,
0.009428892284631729,
-0.003970788326114416,
-0.014278718270361423,
-0.02993231825530529,
-0.011700326576828957,
0.01982256956398487,
-0.004652517847716808,
0.02158302068710327,
-0.016391608864068985,
0.047940004616975784,
0.04133233055472374,
0.01278129406273365,
-0.08022692054510117,
-0.0701879933476448,
0.0032682432793080807,
-0.031248843297362328,
-0.05747047811746597,
-0.01845318078994751,
0.001361636444926262,
-0.025031762197613716,
0.030566401779651642,
0.003053313819691539,
-0.008711818605661392,
-0.03472781926393509,
-0.008847948163747787,
0.014681665226817131,
-0.013200245797634125,
-0.01433677226305008,
-0.041398175060749054,
0.05823184922337532,
0.01280759833753109,
0.033764734864234924,
0.007061148062348366,
0.01742033287882805,
0.002748229308053851,
-0.06731708347797394,
0.005399222485721111,
-0.013931220397353172,
0.006559558212757111,
-0.020421592518687248,
-0.01607707142829895,
-0.04072466120123863,
0.013158158399164677,
0.04304500296711922,
0.009231040254235268,
-0.05248440057039261,
0.03539164364337921,
-0.008645633235573769,
-0.030092474073171616,
-0.02434813603758812,
-0.024358117952942848,
0.03321988880634308,
0.05541779845952988,
-0.02481166273355484,
-0.013981063850224018,
-0.00017515532090328634,
-0.024838106706738472,
0.02188507467508316,
0.011424642987549305,
0.049646105617284775,
-0.047860536724328995,
0.013514346443116665,
0.008881662040948868,
0.013395075686275959,
0.01760026253759861,
-0.0038297208957374096,
-0.018998246639966965,
-0.016546595841646194,
-0.013301149941980839,
-0.011565244756639004,
0.014020008966326714,
0.025294367223978043,
-0.008562232367694378,
-0.01880619116127491,
-0.015315056778490543,
-0.014605318196117878,
0.030015528202056885,
-0.019158625975251198,
-0.03670034557580948,
-0.037089452147483826,
0.021349985152482986,
-0.020175715908408165,
0.02103869430720806,
-0.0033472904469817877,
0.04067600145936012,
0.03909318894147873,
-0.0037209484726190567,
-0.001473589800298214,
-0.012480652891099453,
0.017660660669207573,
0.01620391756296158,
0.014122426509857178,
0.06548944860696793,
-0.03274589776992798,
-0.03620848059654236,
-0.003517514793202281,
-0.00015277614875230938,
0.01934203691780567,
-0.007941083051264286,
0.01522026862949133,
0.0242376197129488,
0.029961897060275078,
0.029234064742922783,
0.004769836086779833,
0.04788011312484741,
0.05035372078418732,
0.034382615238428116,
-0.0024826342705637217,
0.004964888561517
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | Training Training will take multiple hours depending on the GPU allocated to this notebook. While the trained model yields somewhat satisfying results on Common Voice\'s test data of Turkish, it is by no means an optimally fine-tuned model. The purpose of this notebook is just to demonstrate how to fine-tune XLS-R XLSR-Wav2Vec2\'s on an ASR dataset. Depending on what GPU was allocated to your google colab it might be possible that you are seeing an "out-of-memory" error here. In this case, it\'s probably best to reduce per_device_train_batch_size to 8 or even less and increase gradient_accumulation. python trainer.train() Print Output: | Training Loss | Epoch | Step | Validation Loss | Wer | |:-------------:|:-----:|:----:|:---------------:|:------:| | 3.8842 | 3.67 | 400 | 0.6794 | 0.7000 | | 0.4115 | 7.34 | 800 | 0.4304 | 0.4548 | | 0.1946 | 11.01 | 1200 | 0.4466 | 0.4216 | | 0.1308 | 14.68 | 1600 | 0.4526 | 0.3961 | | 0.0997 | 18.35 | 2000 | 0.4567 | 0.3696 | | 0.0784 | 22.02 | 2400 | 0.4193 | 0.3442 | | 0.0633 | 25.69 | 2800 | 0.4153 | 0.3347 | | 0.0498 | 29.36 | 3200 | 0.4077 | 0.3195 | The training loss and validation WER go down nicely. You can now upload the result of the training to the Hub, just execute this instruction: python trainer.push_to_hub() You can now share this model with all your friends, family, favorite pets: they can all load it with the identifier \"your-username/the-name-you-picked\" so for instance: python from transformers import AutoModelForCTC, Wav2Vec2Processor model = AutoModelForCTC.from_pretrained("patrickvonplaten/wav2vec2-large-xls-r-300m-tr-colab") processor = Wav2Vec2Processor.from_pretrained("patrickvonplaten/wav2vec2-large-xls-r-300m-tr-colab") For more examples of how XLS-R can be fine-tuned, please take a look at the official 🤗 Transformers examples. | [
-0.008522561751306057,
0.019377557560801506,
0.004292262252420187,
0.02136448584496975,
0.0077477917075157166,
0.029123900458216667,
0.023031996563076973,
0.009769139811396599,
0.02965112403035164,
-0.0809386819601059,
-0.0365607813000679,
0.03309196978807449,
-0.015120208263397217,
0.035248350352048874,
0.01793287880718708,
-0.05704773962497711,
0.07366213947534561,
0.008060397580265999,
-0.035188622772693634,
0.07473677396774292,
-0.0412234291434288,
-0.00047900748904794455,
0.04438759759068489,
0.03671298176050186,
-0.03676626831293106,
-0.015757238492369652,
0.038315724581480026,
0.034298691898584366,
-0.04813797399401665,
-0.039674218744039536,
-0.08346914499998093,
0.034900564700365067,
0.013753848150372505,
-0.03527256101369858,
0.01822330802679062,
0.017072375863790512,
-0.07089948654174805,
0.029713671654462814,
0.07882104814052582,
-0.028588254004716873,
0.02601022645831108,
0.03947028890252113,
-0.06244916841387749,
0.11554986983537674,
0.02572670951485634,
-0.029695652425289154,
-0.1060539111495018,
0.0436047799885273,
-0.0022374808322638273,
-0.051457904279232025,
-0.07653150707483292,
0.04994537681341171,
0.03578701242804527,
-0.014068559743463993,
0.015317430719733238,
0.004448480438441038,
0.00841566827148199,
-0.023386046290397644,
-0.028830885887145996,
-0.04523983597755432,
0.04506152123212814,
-0.015417985618114471,
-0.03525692969560623,
0.011458443477749825,
0.00617019971832633,
0.005207615438848734,
0.016158243641257286,
0.0496702715754509,
-0.042535729706287384,
-0.060638923197984695,
-0.017085792496800423,
-0.0264335535466671,
0.003518239362165332,
-0.01281811110675335,
-0.027602534741163254,
-0.029246842488646507,
0.0007745058392174542,
0.027749506756663322,
0.05232856795191765,
0.027083981782197952,
0.013892458751797676,
0.0251837857067585,
0.007999998517334461,
0.019149938598275185,
0.006369888316839933,
-0.0200398750603199,
0.05569043383002281,
-0.01680009998381138,
-0.055666640400886536,
-0.028539203107357025,
-0.0010078981285914779,
-0.05452082306146622,
-0.023313354700803757,
0.014886102639138699,
0.04529907554388046,
-0.06342852115631104,
-0.042359065264463425,
0.047261908650398254,
-0.002480716910213232,
-0.02769983373582363,
-0.0991237685084343,
-0.05691012740135193,
0.023502754047513008,
-0.04376601800322533,
-0.05434100702404976,
0.10625802725553513,
-0.05517521873116493,
-0.032067038118839264,
-0.02744651399552822,
0.014056196436285973,
0.008241553790867329,
0.03412388637661934,
-0.06147988513112068,
0.07306981831789017,
-0.057943444699048996,
0.015676558017730713,
0.0668620690703392,
0.008303939364850521,
-0.05174282565712929,
0.0034564577508717775,
-0.047934360802173615,
0.10672130435705185,
-0.004757200367748737,
-0.040255870670080185,
0.025393761694431305,
0.026286674663424492,
-0.013320780359208584,
0.006952066905796528,
-0.005508506670594215,
-0.018233006820082664,
0.026054246351122856,
-0.047606341540813446,
0.03681963309645653,
0.0295362938195467,
0.001865027705207467,
-0.056392986327409744,
0.002563453046604991,
-0.06749042868614197,
0.011603535152971745,
0.046182598918676376,
-0.03067663684487343,
0.1396939754486084,
-0.024988073855638504,
0.049235567450523376,
0.11919613182544708,
-0.012851810082793236,
-0.07613369077444077,
0.06199491024017334,
0.03717593848705292,
-0.014569920487701893,
-0.11083347350358963,
0.08968809992074966,
-0.07225190848112106,
-0.08817336708307266,
0.05474387854337692,
0.07663584500551224,
-0.04231903702020645,
-0.05527757480740547,
-0.04068569839000702,
0.053811945021152496,
-0.004664490930736065,
0.041084546595811844,
-0.04222078621387482,
0.019460374489426613,
-0.00593553576618433,
-0.034137923270463943,
0.028468502685427666,
-0.01197771355509758,
0.06047658994793892,
-0.013922429643571377,
0.008823753334581852,
-0.02554940991103649,
0.056475549936294556,
0.018754057586193085,
-0.042767804116010666,
0.06646431982517242,
0.0326404869556427,
0.03563565015792847,
0.005616995505988598,
-0.03126956522464752,
-0.02253134176135063,
0.04504133760929108,
-0.026525434106588364,
0.04904726892709732,
0.08257047086954117,
-0.11364279687404633,
0.09731770306825638,
-0.05677589774131775,
-0.01839570887386799,
0.0018260203069075942,
0.05510356277227402,
-0.03253811225295067,
0.06442498415708542,
-0.020131586119532585,
0.037843622267246246,
-0.11534357815980911,
0.003189043141901493,
0.02179921604692936,
0.0060706669464707375,
0.012275589630007744,
0.009093500673770905,
-0.033449042588472366,
0.014356076717376709,
-0.006771184969693422,
-0.01810041256248951,
-0.0017412949819117785,
-0.023772547021508217,
-0.13697825372219086,
0.024751191958785057,
0.017357056960463524,
0.007104780059307814,
-0.09692233800888062,
0.05108322948217392,
-0.07236646115779877,
0.010516876354813576,
-0.011585772037506104,
-0.007027701009064913,
0.02792748436331749,
0.0013534924946725368,
-0.015981586650013924,
0.14309905469417572,
-0.010305910371243954,
0.024508194997906685,
0.005951389204710722,
-0.03146471455693245,
0.02369268611073494,
0.03902023658156395,
0.04400213435292244,
0.031192906200885773,
-0.06834646314382553,
-0.0727943703532219,
-0.09308207035064697,
-0.03765653818845749,
0.0146844033151865,
-0.03592512384057045,
-0.020637130364775658,
-0.009893931448459625,
0.010417750105261803,
0.03075459785759449,
0.03803392872214317,
0.0024781266693025827,
0.06344936788082123,
-0.003979362081736326,
0.007924833334982395,
-0.08948560804128647,
-0.04911188781261444,
0.04924103990197182,
0.08580724149942398,
-0.023840850219130516,
-0.02264637127518654,
-0.008062455803155899,
0.03761470317840576,
-0.06644166260957718,
-0.006867549382150173,
-0.0004851736011914909,
0.0821664035320282,
0.00943706277757883,
-0.02051926963031292,
-0.01069684885442257,
0.05160770192742348,
-0.013792170211672783,
0.011846793815493584,
-0.05067228525876999,
0.014353832229971886,
0.030117647722363472,
-0.025092918425798416,
0.005046266596764326,
-0.001701136352494359,
0.01814218796789646,
0.0010141076054424047,
-0.0008763131918385625,
0.005414473358541727,
-0.0046145254746079445,
0.021377108991146088,
-0.0003757608646992594,
0.07346498966217041,
-0.014849814586341381,
-0.05152611806988716,
-0.011384404264390469,
-0.0610027052462101,
0.04306747019290924,
-0.039765145629644394,
0.05595843121409416,
0.007697239983826876,
0.02123086526989937,
-0.006466151215136051,
0.012667884118855,
-0.0023612817749381065,
-0.028461730107665062,
0.022637810558080673,
-0.007962117902934551,
0.039146989583969116,
0.04085525870323181,
-0.02758164517581463,
0.011343945749104023,
-0.017650460824370384,
-0.0026128964964300394,
-0.0436868891119957,
0.041026778519153595,
0.006632762495428324,
-0.033264387398958206,
-0.015546537935733795,
0.019815988838672638,
-0.026867369189858437,
-0.021291030570864677,
-0.009518156759440899,
0.005311003886163235,
-0.019450774416327477,
-0.08641152083873749,
-0.011752228252589703,
0.011467881500720978,
-0.0001309804938500747,
0.016194771975278854,
-0.02910718321800232,
-0.0005127875483594835,
-0.01465367991477251,
-0.02580125443637371,
0.00538524379953742,
-0.022176368162035942,
0.026165999472141266,
0.019403940066695213,
-0.010723411105573177,
0.01619858108460903,
-0.02013072371482849,
0.02045528031885624,
-0.030890727415680885,
0.042739491909742355,
0.035115841776132584,
-0.024362538009881973,
0.029133407399058342,
-0.03227740526199341,
0.027579398825764656,
0.006266871001571417,
0.0460292249917984,
-0.020838556811213493,
0.02144172228872776,
0.005375270266085863,
-0.035482246428728104,
-0.006680193357169628,
-0.06316586583852768,
-0.016958005726337433,
0.016611039638519287,
-0.021428238600492477,
0.008803170174360275,
-0.0038602990098297596,
0.010097494348883629,
0.02585466392338276,
0.03198346123099327,
0.020503949373960495,
-0.031656887382268906,
0.009313855320215225,
-0.003035110654309392,
0.018055174499750137,
0.009033551439642906,
0.023416606709361076,
-0.01122145727276802,
0.002033903729170561,
0.0016797847347334027,
-0.009708043187856674,
-0.012629782781004906,
-0.0010752440430223942,
0.06427974253892899,
-0.03224655240774155,
0.019610047340393066,
0.0237983800470829,
0.0379924438893795,
0.03428160026669502,
-0.046655844897031784,
-0.02492832951247692,
0.011104206554591656,
-0.010724835097789764,
0.017951935529708862,
0.01567743346095085,
-0.016661113128066063,
0.01872321031987667,
-0.030538087710738182,
-0.08503331989049911,
0.029526237398386,
-0.017243189737200737,
0.047183431684970856,
0.015069207176566124,
0.00018635056039784104,
-0.03378255292773247,
-0.002938292920589447,
-0.0078116063959896564,
-0.005655019544064999,
0.046103425323963165,
0.02658892050385475,
-0.052854202687740326,
-0.029576128348708153,
-0.030536938458681107,
-0.00022109289420768619,
0.026892485097050667,
-0.008856303989887238,
0.026379501447081566,
-0.002717655850574374,
0.034328047186136246,
0.02277199737727642,
-0.0064186700619757175,
-0.005683234892785549,
0.008150906302034855,
0.0093847019597888,
0.023422198370099068,
-0.03766428679227829,
-0.017330998554825783,
0.0014451815513893962,
-0.009032387286424637,
0.013445657677948475,
-0.0031974525190889835,
-0.0418204665184021,
-0.01903136447072029,
0.02784368395805359,
0.04254388436675072,
0.010964859277009964,
-0.020673546940088272,
-0.008297380059957504,
-0.0089691411703825,
0.003627368714660406,
0.0168480034917593,
0.002712168963626027,
0.001560598029755056,
-0.020882070064544678,
0.022064734250307083,
0.047288231551647186,
-0.024297701194882393,
-0.037235550582408905,
-0.042797818779945374,
0.037088505923748016,
-0.027056589722633362,
-0.023411255329847336,
0.008018521592020988,
-0.02719343639910221,
0.03395417705178261,
0.04793839529156685,
0.02534688636660576,
-0.011843816377222538,
-0.026285843923687935,
-0.02192126400768757,
-0.012670646421611309,
-0.023394906893372536,
-0.02059001475572586,
0.009446448646485806,
-0.02714388817548752,
-0.006614322774112225,
-0.02524632401764393,
-0.005513029173016548,
0.019017521291971207,
-0.008476008661091328,
-0.05095236375927925,
-0.030557382851839066,
0.03140609338879585,
-0.036835167557001114,
0.01350614707916975,
0.018550273030996323,
0.013624394312500954,
-0.026485949754714966,
-0.07250268012285233,
-0.013165676966309547,
0.030393891036510468,
0.014470192603766918,
-0.05423509702086449,
0.02853253483772278,
0.02327374927699566,
-0.017688876017928123,
0.0022346260957419872,
0.04299863055348396,
0.003914698958396912,
0.04922649264335632,
-0.01644422486424446,
-0.005710413213819265,
-0.02521098405122757,
0.04997110366821289,
0.0013662684941664338,
0.004643955733627081,
0.019405251368880272,
-0.08222417533397675,
0.024177080020308495,
0.015594849362969398,
-0.01315732765942812,
0.006057364400476217,
0.02596440352499485,
-0.02170841209590435,
0.0031031498219817877,
0.03425539284944534,
0.03464521840214729,
-0.003516169497743249,
-0.03850093483924866,
0.06225398927927017,
-0.019675949588418007,
0.000666424457449466,
0.017407584935426712,
0.019710378721356392,
0.01639779843389988,
0.006077579688280821,
0.06357192248106003,
0.03990274667739868,
0.024632969871163368,
-0.00132225570268929,
-0.01493607647716999,
-0.011592770926654339,
-0.03304514288902283,
-0.033291369676589966,
-0.015218369662761688,
-0.0009835701202973723,
-0.019500644877552986,
0.03925388678908348,
-0.016993599012494087,
0.012675032019615173,
0.028806624934077263,
0.05427109822630882,
-0.015067067928612232,
-0.014668427407741547,
0.017799312248826027,
0.06907691806554794,
-0.0011467559961602092,
-0.021210821345448494,
-0.02832498773932457,
0.0012021393049508333,
0.008191032335162163,
-0.02623864822089672,
-0.014059403911232948,
0.004922050517052412,
0.03991413116455078,
-0.05905180051922798,
-0.010726717300713062,
0.07141490280628204,
0.05071364343166351,
0.023433171212673187,
-0.026110081002116203,
-0.0009284117841161788,
-0.010370109230279922,
0.0019147017737850547,
0.023400327190756798,
-0.06212199851870537,
0.013709411025047302,
0.047705333679914474,
-0.009441379457712173,
0.021402107551693916,
0.023730510845780373,
-0.011264934204518795,
-0.006883873604238033,
0.06046822667121887,
0.01722932979464531,
-0.018313448876142502,
-0.015016780234873295,
0.03702672943472862,
0.02934461645781994,
-0.004630439914762974,
-0.02612452208995819,
-0.0042353784665465355,
-0.021869970485568047,
0.030959412455558777,
-0.02045360580086708,
0.06255000084638596,
0.019320495426654816,
-0.021232644096016884,
0.0022336652036756277,
0.0022501840721815825,
-0.007712655700743198,
0.05563158914446831,
0.009169896133244038,
-0.01977822557091713,
-0.014230823144316673,
-0.015378633514046669,
0.024393906816840172,
-0.02016805112361908,
0.05711449310183525,
-0.01162677351385355,
-0.01478619035333395,
-0.0708538070321083,
0.03137943893671036,
0.04628153145313263,
-0.03234550356864929,
0.009526110254228115,
0.04352404922246933,
-0.056978195905685425,
0.013682282529771328,
0.060809846967458725,
0.04952433332800865,
-0.007154780440032482,
-0.02698402665555477,
-0.01975497603416443,
-0.017495084553956985,
-0.033836137503385544,
0.017752422019839287,
0.060781046748161316,
-0.03269900381565094,
0.03479794040322304,
0.025687849149107933,
0.013661721721291542,
0.0068231066688895226,
0.0015129689127206802,
0.008156901225447655,
0.021895714104175568,
0.056517381221055984,
0.019984981045126915,
-0.018200550228357315,
0.008959049358963966,
0.021136479452252388,
-0.008479377254843712,
-0.02401798404753208,
-0.023655381053686142,
-0.009248095564544201,
0.011406950652599335,
0.06776618212461472,
0.012385702691972256,
-0.008533868007361889,
-0.04096183180809021,
0.006490434519946575,
0.035666417330503464,
0.08177466690540314,
-0.010383650660514832,
0.06176779419183731,
0.03488526865839958,
0.015882859006524086,
0.03396688401699066,
0.02928253822028637,
-0.04678179696202278,
0.030996624380350113,
0.021270014345645905,
0.07389447838068008,
0.04131557047367096,
0.032107651233673096,
0.0057634930126369,
0.01671118289232254,
0.003244227496907115,
-0.019263796508312225,
0.03209637850522995,
-0.02712399512529373,
-0.002991018583998084,
-0.0009139481117017567,
-0.03635023161768913,
-0.03875456750392914,
0.0189310722053051,
-0.010157572105526924,
-0.026596451178193092,
-0.027631979435682297,
-0.004118712153285742,
-0.0230536051094532,
-0.00442879693582654,
0.017470423132181168,
-0.03424197807908058,
0.0034446516074240208,
-0.01829591393470764,
-0.015313005074858665,
0.03530605137348175,
0.0010413684649392962,
-0.058200087398290634,
-0.026194559410214424,
-0.035173989832401276,
-0.0034402667079120874,
0.05337763950228691,
-0.05186741426587105,
0.011057966388761997,
-0.01632584072649479,
-0.028785383328795433,
-0.018285799771547318,
0.01773492619395256,
0.012784779071807861,
0.006137930788099766,
-0.020763875916600227,
0.01001620851457119,
-0.015496005304157734,
-0.040493663400411606,
0.06037527322769165,
-0.011726479977369308,
0.03717830777168274,
0.03524061664938927,
0.022317679598927498,
0.02790987491607666,
0.014398342929780483,
-0.00044825789518654346,
-0.05497278645634651,
-0.017264442518353462,
0.005003399681299925,
-0.021192677319049835,
0.03780796751379967,
0.04880066588521004,
-0.004298211541026831,
-0.016622664406895638,
-0.015798378735780716,
-0.00619522063061595,
-0.025227369740605354,
-0.01268551405519247,
0.03717171400785446,
0.005984452087432146,
0.014995025470852852,
0.01528413686901331,
0.02345103770494461,
-0.012015802785754204,
0.0019108139676973224,
0.02769472263753414,
-0.02224983461201191,
0.009574971161782742,
-0.02481330744922161,
-0.01873772218823433,
-0.04397713020443916,
-0.03356073796749115,
-0.06145638972520828,
-0.050506360828876495,
-0.03159741312265396,
0.02279995009303093,
-0.026971466839313507,
-0.03595032915472984,
-0.018918806686997414,
-0.030519969761371613,
0.00424388749524951,
0.019082549959421158,
0.025638969615101814,
0.009355851449072361,
0.02703983709216118,
0.048461563885211945,
0.02289663814008236,
0.043590620160102844,
-0.003554179798811674,
-0.01767732948064804,
0.02493305690586567,
0.007028460968285799,
0.04098906368017197,
0.028875458985567093,
-0.02272902801632881,
-0.01433132030069828,
0.003975306171923876,
0.01416333019733429,
-0.05847732350230217,
-0.015734409913420677,
-0.034504033625125885,
0.034111637622117996,
-0.05539734661579132,
-0.027294350787997246,
0.04456913843750954,
0.009114607237279415,
0.05641986429691315,
0.023108676075935364,
-0.04420268535614014,
0.03837302699685097,
-0.016184935346245766,
-0.06314252316951752,
-0.02408319152891636,
0.0022152764722704887,
-0.009207002818584442,
0.03269334137439728,
0.023338917642831802,
-0.009698414243757725,
0.01743687130510807,
-0.03825860098004341,
-0.014164523221552372,
-0.006606339011341333,
-0.004017482046037912,
-0.04918431490659714,
0.02933657541871071,
0.002580536063760519,
-0.005912515800446272,
-0.017152488231658936,
0.020162858068943024,
0.006803309079259634,
-0.00044722663005813956,
-0.032022625207901,
0.019084667786955833,
0.04199662059545517,
0.007459173910319805,
0.001165358116850257,
-0.033089734613895416,
0.046756844967603683,
0.02486693114042282,
-0.0008249550010077655,
0.0027238589245826006,
0.01783314161002636
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | Evaluation As a final check, let\'s load the model and verify that it indeed has learned to transcribe Turkish speech. Let\'s first load the pretrained checkpoint. python model = Wav2Vec2ForCTC.from_pretrained(repo_name).to("cuda") processor = Wav2Vec2Processor.from_pretrained(repo_name) Now, we will just take the first example of the test set, run it through the model and take the argmax(...) of the logits to retrieve the predicted token ids. python input_dict = processor(common_voice_test[0]["input_values"], return_tensors="pt", padding=True) logits = model(input_dict.input_values.to("cuda")).logits pred_ids = torch.argmax(logits, dim=-1)[0] It is strongly recommended to pass the sampling_rate argument to this function.Failing to do so can result in silent errors that might be hard to debug. We adapted common_voice_test quite a bit so that the dataset instance does not contain the original sentence label anymore. Thus, we re-use the original dataset to get the label of the first example. python common_voice_test_transcription = load_dataset("common_voice", "tr", data_dir="./cv-corpus-6.1-2020-12-11", split="test") Finally, we can decode the example. python print("Prediction:") print(processor.decode(pred_ids)) print("\nReference:") print(common_voice_test_transcription[0]["sentence"].lower()) Print Output: | pred_str | target_text | |----------|:-------------:| | hatta küçük şeyleri için bir büyt bir şeyleri kolluyor veyınıki çuk şeyler için bir bir mizi inciltiyoruz | hayatta küçük şeyleri kovalıyor ve yine küçük şeyler için birbirimizi incitiyoruz. | Alright! The transcription can definitely be recognized from our prediction, but it is not perfect yet. Training the model a bit longer, spending more time on the data preprocessing, and especially using a language model for decoding would certainly improve the model\'s overall performance. For a demonstration model on a low-resource language, the results are quite acceptable however 🤗. | [
0.043723735958337784,
-0.050694651901721954,
-0.04272007942199707,
-0.0011684376513585448,
0.0002450644096825272,
0.08637841790914536,
0.05937874689698219,
-0.02546943724155426,
-0.057175297290086746,
-0.03827393800020218,
-0.02581365965306759,
0.030297208577394485,
0.003159667132422328,
0.05417488142848015,
-0.044202160090208054,
-0.07482108473777771,
0.05519730970263481,
-0.01618570275604725,
0.01380173210054636,
0.03725643455982208,
-0.004608606453984976,
-0.042114559561014175,
0.06106995418667793,
0.001721961423754692,
-0.014096664264798164,
-0.008111999370157719,
0.029101736843585968,
0.02424546517431736,
-0.028794819489121437,
-0.0039863185957074165,
-0.10997646301984787,
-0.005019572097808123,
-0.03285587579011917,
-0.0347793772816658,
-0.054139286279678345,
0.09988219290971756,
-0.06989030539989471,
0.007042143028229475,
0.03265959396958351,
-0.04174777865409851,
-0.03479904681444168,
-0.008692982606589794,
-0.05685039237141609,
0.023072294890880585,
-0.028424091637134552,
-0.050790514796972275,
-0.08788469433784485,
0.0619647391140461,
-0.023463090881705284,
-0.07086845487356186,
-0.050161316990852356,
0.05377426743507385,
-0.031719379127025604,
0.010596048086881638,
-0.02384144254028797,
-0.025835327804088593,
-0.029022134840488434,
-0.05618952214717865,
0.021942852064967155,
0.009290210902690887,
0.003071089740842581,
0.030192680656909943,
-0.007794542238116264,
0.04682479426264763,
0.03709857910871506,
0.011142185889184475,
0.05330435559153557,
0.06272207945585251,
-0.03105604276061058,
-0.010603838600218296,
-0.03070914000272751,
0.010416409932076931,
0.021625429391860962,
-0.007532559800893068,
0.025496955960989,
-0.0558730848133564,
0.0021014681551605463,
0.0076079657301306725,
0.08237145841121674,
0.08434890955686569,
-0.017369374632835388,
0.01819918118417263,
-0.014051493257284164,
0.007651951629668474,
0.031793978065252304,
-0.021408701315522194,
0.06155863031744957,
-0.05792586877942085,
-0.022686246782541275,
-0.046337440609931946,
-0.05833778157830238,
-0.0996328815817833,
-0.043144188821315765,
0.05197421461343765,
0.022516148164868355,
-0.06466851383447647,
0.0008956041419878602,
0.08631064742803574,
-0.03504285588860512,
-0.059327926486730576,
0.031234759837388992,
-0.05494942143559456,
0.05400732904672623,
-0.02090996690094471,
-0.08638673275709152,
0.06949158012866974,
-0.06368742138147354,
-0.009263155981898308,
-0.0427987314760685,
0.02940419502556324,
0.09154335409402847,
-0.0313568152487278,
-0.05231897532939911,
0.033669162541627884,
-0.0815831869840622,
-0.051414117217063904,
0.00768466480076313,
0.027238719165325165,
-0.028767500072717667,
0.017150424420833588,
-0.029776841402053833,
0.061868853867053986,
0.034672945737838745,
-0.059226762503385544,
0.02085365727543831,
-0.0026690184604376554,
0.005963411182165146,
0.026525316759943962,
-0.01602131687104702,
-0.01942882128059864,
0.012104641646146774,
-0.05870800465345383,
0.04732412472367287,
0.04598620533943176,
-0.025435039773583412,
-0.02356754243373871,
-0.008796361275017262,
-0.09501684457063675,
-0.007938236929476261,
-0.015118511393666267,
-0.02266540937125683,
0.011619027704000473,
-0.0471612773835659,
0.06725964695215225,
0.017400022596120834,
0.04245145618915558,
-0.06298046559095383,
0.07290154695510864,
0.020839406177401543,
0.04436179995536804,
-0.08704027533531189,
0.0736532136797905,
0.029725709930062294,
-0.04041114076972008,
-0.019123118370771408,
0.07405824959278107,
-0.04951929673552513,
0.014681278727948666,
-0.08960365504026413,
0.03299592062830925,
0.00032072668545879424,
0.004981930833309889,
-0.05419927462935448,
-0.06126607954502106,
0.01085613388568163,
0.02054189331829548,
-0.01026791799813509,
0.0011728487443178892,
0.03316016495227814,
0.04282468184828758,
0.0019830898381769657,
-0.03866693004965782,
0.04932655394077301,
-0.0290067158639431,
-0.010079155676066875,
0.06993965059518814,
-0.023221679031848907,
-0.00576377147808671,
0.018812714144587517,
-0.03465605154633522,
-0.06576601415872574,
0.05458203703165054,
-0.02556772343814373,
0.03257214277982712,
0.00748728821054101,
-0.061143506318330765,
-0.020067978650331497,
-0.06786584109067917,
-0.03341510519385338,
0.07601996511220932,
-0.0502343513071537,
-0.030840681865811348,
0.008165396749973297,
-0.07004107534885406,
0.037513650953769684,
-0.08935047686100006,
-0.020081307739019394,
0.05927051231265068,
-0.00014176953118294477,
0.0616571269929409,
0.02765197493135929,
0.02178483083844185,
0.0295048039406538,
-0.028050610795617104,
0.014658535830676556,
0.0024514696560800076,
0.0271849874407053,
-0.07237707823514938,
0.028954071924090385,
0.10282470285892487,
0.04816868528723717,
-0.045604217797517776,
-0.0073457760736346245,
-0.07948467880487442,
-0.0369751900434494,
-0.0039046849124133587,
-0.04891887679696083,
0.06664346158504486,
0.0008513748762197793,
-0.027342267334461212,
0.1317397654056549,
-0.060825664550065994,
0.07064345479011536,
-0.07860047370195389,
-0.09578347206115723,
0.06404883414506912,
0.01665009930729866,
0.10213153809309006,
0.01623499020934105,
-0.04894956946372986,
-0.07176755368709564,
-0.11409060657024384,
-0.046537015587091446,
0.0895470678806305,
-0.014017937704920769,
-0.06055677309632301,
0.022154534235596657,
0.03426812216639519,
0.04309660941362381,
0.029434965923428535,
0.014086266048252583,
0.005760700907558203,
-0.035104766488075256,
0.09978505969047546,
-0.06615936756134033,
-0.04602901637554169,
0.042631663382053375,
-0.023099567741155624,
-0.06293033808469772,
-0.05804600194096565,
0.00434906268492341,
0.0599418468773365,
-0.03377208113670349,
-0.048575300723314285,
0.028871076181530952,
0.033623505383729935,
-0.0031132118310779333,
-0.005589999258518219,
-0.022431353107094765,
0.02539129927754402,
0.0023133924696594477,
0.007033343892544508,
0.006917212624102831,
-0.041875965893268585,
0.012926947325468063,
-0.06980528682470322,
0.04053090140223503,
-0.00945166777819395,
0.03140965849161148,
0.01016642153263092,
0.012042524293065071,
-0.0024811227340251207,
0.021424444392323494,
-0.00541982427239418,
0.017178768292069435,
0.06848078221082687,
0.023970507085323334,
-0.011824794113636017,
-0.023531202226877213,
-0.026762796565890312,
-0.013255809433758259,
-0.030443822965025902,
0.006809123791754246,
-0.0006408450426533818,
0.0005639615119434893,
-0.005233100149780512,
0.001377395703457296,
0.01693471521139145,
-0.01556131336838007,
0.034528400748968124,
0.00920492596924305,
0.061514172703027725,
0.008747240528464317,
-0.0019115045433863997,
0.027187591418623924,
0.018869515508413315,
-0.00033272383734583855,
-0.008043646812438965,
0.01161171868443489,
0.02356646955013275,
-0.06160232797265053,
-0.024826494976878166,
-0.020101631060242653,
-0.008045715279877186,
-0.022273574024438858,
-0.003760417690500617,
0.019978107884526253,
0.00671639246866107,
-0.07855827361345291,
0.008414381183683872,
0.05010607838630676,
-0.031098922714591026,
-0.004895596299320459,
0.004018744919449091,
0.05714789405465126,
0.010334674268960953,
-0.029019076377153397,
0.03742755204439163,
0.0016680090920999646,
0.01498663891106844,
0.03880344331264496,
0.03957601636648178,
0.0022597634233534336,
-0.020282745361328125,
0.03226002678275108,
-0.0023824647068977356,
-0.0062326546758413315,
0.025193387642502785,
0.013823344372212887,
0.010943371802568436,
0.01003777701407671,
0.009885868988931179,
-0.035057198256254196,
0.016357652842998505,
0.015964325517416,
0.01869453862309456,
0.018821025267243385,
-0.03585848957300186,
-0.02906166948378086,
-0.02802324667572975,
0.0012278063222765923,
0.004108823835849762,
-0.020512819290161133,
-0.017774758860468864,
-0.005675447639077902,
0.018214577808976173,
0.0023548027966171503,
0.008237353526055813,
-0.007482127286493778,
0.03740226477384567,
0.04192184656858444,
-0.0342194028198719,
0.030106019228696823,
0.00434425612911582,
0.028385864570736885,
-0.014837839640676975,
0.014428889378905296,
-0.024687165394425392,
0.0035108092706650496,
-0.022514140233397484,
-0.007280190009623766,
0.0792466327548027,
-0.019660387188196182,
-0.014772859402000904,
0.028091952204704285,
0.02613212913274765,
0.06318655610084534,
-0.03417079895734787,
-0.04120342805981636,
-0.009772134944796562,
0.014487606473267078,
-0.036072738468647,
-0.010166686959564686,
0.02464294247329235,
0.030281096696853638,
-0.016172725707292557,
-0.05405149608850479,
0.0046292622573673725,
0.0018989588133990765,
0.04375261440873146,
-0.0025224064011126757,
0.008589724078774452,
0.004040572792291641,
-0.007355363108217716,
-0.024023614823818207,
-0.01816314086318016,
0.0383358970284462,
0.02592202089726925,
-0.027646083384752274,
-0.006410228554159403,
-0.008259357884526253,
0.0007334068068303168,
0.014931870624423027,
0.0001719953288557008,
0.030676543712615967,
0.007793298922479153,
0.027207620441913605,
0.01182900182902813,
0.026364805176854134,
-0.021902786567807198,
-0.014565584249794483,
0.01372393686324358,
-0.03347647190093994,
-0.024692505598068237,
0.013103961944580078,
0.04141132906079292,
-0.012041756883263588,
0.007739489432424307,
-0.010638569481670856,
-0.07078047096729279,
0.005466992035508156,
0.03146333619952202,
0.028881901875138283,
-0.006903625559061766,
-0.04277347773313522,
-0.04575575515627861,
-0.02081132121384144,
-0.01962980255484581,
-0.0003358534013386816,
-0.037505071610212326,
0.0042724343948066235,
0.017588451504707336,
0.047606177628040314,
0.014315775595605373,
0.01577158086001873,
-0.04226238280534744,
-0.020705075934529305,
0.03426367789506912,
-0.049275074154138565,
0.023405976593494415,
0.006836394313722849,
-0.017395587638020515,
0.02759949117898941,
0.0026387039106339216,
-0.003860100172460079,
0.019439036026597023,
-0.019816964864730835,
-0.036442987620830536,
-0.023447630926966667,
0.019525598734617233,
0.014197029173374176,
-0.004559068009257317,
-0.024871716275811195,
0.015846217051148415,
0.024736756458878517,
-0.02418798767030239,
0.029356755316257477,
-0.0170013178139925,
-0.039192479103803635,
-0.06415149569511414,
-0.01718032732605934,
-0.03946349397301674,
0.0702972561120987,
-0.0013448850950226188,
-0.035910554230213165,
-0.006649424787610769,
-0.031177427619695663,
0.02305665798485279,
0.023175548762083054,
-0.0022303019650280476,
-0.010909736156463623,
0.014003015123307705,
0.05593669041991234,
0.002361505525186658,
0.020978504791855812,
0.024495694786310196,
0.05491921305656433,
0.056726615875959396,
-0.01886502094566822,
-0.00092373724328354,
-0.03672170639038086,
0.021591464057564735,
-0.03003532625734806,
-0.0032736905850470066,
-0.03768284246325493,
-0.05489061400294304,
0.018121154978871346,
0.009821813553571701,
0.0051619913429021835,
-0.008350560441613197,
-0.003265690989792347,
-0.010289995931088924,
0.022686760872602463,
0.028245804831385612,
0.0013857453595846891,
-0.008617514744400978,
0.006123920902609825,
0.015778470784425735,
0.019886741414666176,
-0.021467668935656548,
0.0232574213296175,
0.009390478953719139,
0.00544571690261364,
0.025053774937987328,
-0.003974496852606535,
0.03814888373017311,
-0.002754361368715763,
0.00979161448776722,
0.00789160281419754,
-0.00006270876474445686,
-0.004777814727276564,
-0.062301453202962875,
-0.01433574128895998,
0.023057587444782257,
-0.010075299069285393,
0.03440706804394722,
-0.018722563982009888,
-0.018650585785508156,
-0.0007287718472070992,
0.04404180496931076,
0.02744540385901928,
-0.023462064564228058,
0.024373222142457962,
-0.027373705059289932,
0.01172108855098486,
-0.011990481056272984,
0.007367139216512442,
0.004294591024518013,
-0.014587460085749626,
-0.0009700071532279253,
-0.0109551465138793,
0.027076276019215584,
0.02706020511686802,
-0.03503108397126198,
-0.0002369340363657102,
0.024366993457078934,
0.033199671655893326,
0.034054845571517944,
-0.020039152354002,
-0.06591720134019852,
-0.02594768814742565,
-0.016112646088004112,
0.03120250441133976,
-0.010330171324312687,
0.003096559550613165,
0.04353052377700806,
0.054971180856227875,
0.026399381458759308,
0.019914353266358376,
-0.04079240560531616,
0.02501799166202545,
0.022356251254677773,
0.008543555624783039,
0.0007206333102658391,
-0.01763363741338253,
0.03825278952717781,
0.0022785868495702744,
-0.010381900705397129,
-0.005938651040196419,
-0.01140518207103014,
-0.02209416776895523,
0.06398824602365494,
-0.043807849287986755,
0.05669386312365532,
0.043007660657167435,
-0.009167272597551346,
0.07343631237745285,
0.019265733659267426,
0.019239213317632675,
0.07701725512742996,
-0.00943126529455185,
0.011450116522610188,
-0.00943715963512659,
-0.007954767905175686,
-0.011184477247297764,
0.0018550509121268988,
-0.011994450353085995,
0.03755642846226692,
0.01791941002011299,
-0.07755358517169952,
-0.04886521399021149,
0.02225414291024208,
-0.026603301987051964,
0.017691509798169136,
0.024442752823233604,
-0.03173781558871269,
0.010896575637161732,
0.037021394819021225,
0.048487331718206406,
-0.02264833264052868,
0.008013146929442883,
0.03135353699326515,
0.03253282606601715,
-0.0277155302464962,
-0.02982756868004799,
0.07157164812088013,
-0.0061950949020683765,
0.000865328824147582,
0.013635244220495224,
0.018213221803307533,
-0.013308770023286343,
0.043632104992866516,
0.016874885186553,
0.006488300394266844,
0.07260455936193466,
0.011657334864139557,
-0.0006112951086834073,
0.021929584443569183,
0.027003223076462746,
-0.024114731699228287,
0.0005091695347800851,
-0.05902925878763199,
0.016658561304211617,
0.01734575629234314,
0.00884495209902525,
0.010119429789483547,
0.017577892169356346,
-0.04104221612215042,
0.05308879539370537,
0.03660585731267929,
0.021808112040162086,
-0.033981386572122574,
0.02107269875705242,
0.02218787744641304,
0.024843299761414528,
0.02946411818265915,
0.05978080630302429,
-0.013289080001413822,
0.005660590250045061,
0.04264505207538605,
0.036864545196294785,
0.012033350765705109,
0.05583669990301132,
-0.01798226498067379,
0.02405397593975067,
-0.00895217340439558,
-0.017129061743617058,
0.044276997447013855,
0.010472526773810387,
0.010170010849833488,
-0.04593305289745331,
0.022939059883356094,
-0.03548457846045494,
-0.004564919508993626,
-0.006537459325045347,
-0.027534233406186104,
-0.009634768590331078,
-0.036765821278095245,
-0.036640942096710205,
0.06399431824684143,
0.0071532330475747585,
-0.045312006026506424,
0.010479489341378212,
0.030266350135207176,
0.044789869338274,
0.002096350770443678,
-0.008842936716973782,
-0.014430046081542969,
-0.023248257115483284,
0.005416123662143946,
0.0007642103591933846,
0.022507058456540108,
-0.00011817982885986567,
0.05978183448314667,
0.005762661341577768,
0.02009892649948597,
0.02297542802989483,
0.00845477543771267,
0.04217912629246712,
-0.0088696563616395,
0.01821860298514366,
-0.004919141996651888,
0.01685294136404991,
0.006136274430900812,
0.03555917739868164,
-0.04846866428852081,
-0.020908480510115623,
0.015601606108248234,
0.015028766356408596,
0.0015254352474585176,
0.05243467539548874,
0.004016885068267584,
-0.0703270360827446,
-0.035958051681518555,
-0.001812197733670473,
-0.05683230236172676,
0.030971668660640717,
-0.0016876545269042253,
-0.008165489882230759,
0.015920817852020264,
-0.03594542294740677,
-0.03627637401223183,
0.021329374983906746,
-0.05615205690264702,
0.03464715555310249,
-0.008980095386505127,
-0.014495591633021832,
-0.020294710993766785,
0.03558158874511719,
0.0057462225668132305,
0.01620250567793846,
0.012475517578423023,
-0.021884825080633163,
0.0161548163741827,
0.01740226522088051,
0.038468558341264725,
-0.07317931205034256,
-0.029901817440986633,
-0.03175904601812363,
-0.027953196316957474,
-0.016741067171096802,
0.0419280081987381,
-0.034269124269485474,
-0.014694573357701302,
-0.06623069941997528,
0.0003763940476346761,
-0.02528228424489498,
-0.01847410574555397,
-0.011846967972815037,
-0.02546543814241886,
0.052078451961278915,
0.05335818603634834,
0.017413552850484848,
0.059027254581451416,
-0.03728751093149185,
0.040723856538534164,
-0.007541607599705458,
0.011588393710553646,
0.0166328065097332,
0.039904024451971054,
-0.01356734149158001,
-0.005611361004412174,
0.0141344228759408,
0.0011847437126562,
-0.012766342610120773,
0.007972202263772488,
0.009704290889203548,
0.0030860304832458496,
-0.02923891507089138,
0.02010682225227356,
0.016233768314123154,
-0.007415704894810915,
0.017721647396683693,
0.006870412267744541,
0.005705154500901699,
-0.008348780684173107,
0.005253213457763195,
-0.04478318244218826,
0.015393255278468132,
-0.03431680053472519,
0.027665896341204643,
0.039430245757102966,
0.044447362422943115,
0.06006732955574989,
0.012582233175635338,
-0.007623861078172922,
-0.010141981765627861,
-0.0016170134767889977,
0.0071204788982868195,
-0.049426354467868805,
0.03360920026898384,
0.007266945205628872,
-0.02120218425989151,
-0.02433842420578003,
0.028313830494880676,
0.005814898759126663,
-0.02282816730439663,
-0.01213796902447939,
-0.006747647188603878,
0.04600665345788002,
0.014719873666763306,
-0.040074680000543594,
-0.021344944834709167,
0.0768253281712532,
0.006786465644836426,
-0.005982414353638887,
0.002713922644034028,
0.057821378111839294
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | Set-up Trainer Let\'s start by defining the data collator. The code for the data collator was copied from this example. Without going into too many details, in contrast to the common data collators, this data collator treats the input_values and labels differently and thus applies to separate padding functions on them (again making use of XLS-R processor\'s context manager). This is necessary because in speech input and output are of different modalities meaning that they should not be treated by the same padding function. Analogous to the common data collators, the padding tokens in the labels with -100 so that those tokens are not taken into account when computing the loss. python import torch from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Union @dataclass class DataCollatorCTCWithPadding: """ Data collator that will dynamically pad the inputs received. Args: processor (:class:`~transformers.Wav2Vec2Processor`) The processor used for proccessing the data. padding (:obj:`bool`, :obj:`str` or :class:`~transformers.tokenization_utils_base.PaddingStrategy`, `optional`, defaults to :obj:`True`): Select a strategy to pad the returned sequences (according to the model's padding side and padding index) among: * :obj:`True` or :obj:`'longest'`: Pad to the longest sequence in the batch (or no padding if only a single sequence if provided). * :obj:`'max_length'`: Pad to a maximum length specified with the argument :obj:`max_length` or to the maximum acceptable input length for the model if that argument is not provided. * :obj:`False` or :obj:`'do_not_pad'` (default): No padding (i.e., can output a batch with sequences of different lengths). """ processor: Wav2Vec2Processor padding: Union[bool, str] = True def __call__(self, features: List[Dict[str, Union[List[int], torch.Tensor]]]) -> Dict[str, torch.Tensor]: # split inputs and labels since they have to be of different lengths and need # different padding methods input_features = [{"input_values": feature["input_values"]} for feature in features] label_features = [{"input_ids": feature["labels"]} for feature in features] batch = self.processor.pad( input_features, padding=self.padding, return_tensors="pt", ) with self.processor.as_target_processor(): labels_batch = self.processor.pad( label_features, padding=self.padding, return_tensors="pt", ) # replace padding with -100 to ignore loss correctly labels = labels_batch["input_ids"].masked_fill(labels_batch.attention_mask.ne(1), -100) batch["labels"] = labels return batch python data_collator = DataCollatorCTCWithPadding(processor=processor, padding=True) Next, the evaluation metric is defined. As mentioned earlier, the predominant metric in ASR is the word error rate (WER), hence we will use it in this notebook as well. python wer_metric = load_metric("wer") The model will return a sequence of logit vectors: \( \mathbf{y}1, \ldots, \mathbf{y}_m \) with \( \mathbf{y}_1 = f{\theta}(x_1, \ldots, x_n)[0] \) and \( n >> m \). A logit vector \( \mathbf{y}_1 \) contains the log-odds for each word in the vocabulary we defined earlier, thus \( \text{len}(\mathbf{y}_i) = \) config.vocab_size. We are interested in the most likely prediction of the model and thus take the argmax(...) of the logits. Also, we transform the encoded labels back to the original string by replacing -100 with the pad_token_id and decoding the ids while making sure that consecutive tokens are not grouped to the same token in CTC style \( {}^1 \). python def compute_metrics(pred): pred_logits = pred.predictions pred_ids = np.argmax(pred_logits, axis=-1) pred.label_ids[pred.label_ids == -100] = processor.tokenizer.pad_token_id pred_str = processor.batch_decode(pred_ids) # we do not want to group tokens when computing the metrics label_str = processor.batch_decode(pred.label_ids, group_tokens=False) wer = wer_metric.compute(predictions=pred_str, references=label_str) return {"wer": wer} Now, we can load the pretrained checkpoint of Wav2Vec2-XLS-R-300M. The tokenizer\'s pad_token_id must be to define the model\'s pad_token_id or in the case of Wav2Vec2ForCTC also CTC\'s blank token \( {}^2 \). To save GPU memory, we enable PyTorch\'s gradient checkpointing and also set the loss reduction to \"mean\". Because the dataset is quite small (\~6h of training data) and because Common Voice is quite noisy, fine-tuning Facebook\'s wav2vec2-xls-r-300m checkpoint seems to require some hyper-parameter tuning. Therefore, I had to play around a bit with different values for dropout, SpecAugment\'s masking dropout rate, layer dropout, and the learning rate until training seemed to be stable enough. Note: When using this notebook to train XLS-R on another language of Common Voice those hyper-parameter settings might not work very well. Feel free to adapt those depending on your use case. python from transformers import Wav2Vec2ForCTC model = Wav2Vec2ForCTC.from_pretrained( "facebook/wav2vec2-xls-r-300m", attention_dropout=0.0, hidden_dropout=0.0, feat_proj_dropout=0.0, mask_time_prob=0.05, layerdrop=0.0, ctc_loss_reduction="mean", pad_token_id=processor.tokenizer.pad_token_id, vocab_size=len(processor.tokenizer), ) The first component of XLS-R consists of a stack of CNN layers that are used to extract acoustically meaningful - but contextually independent - features from the raw speech signal. This part of the model has already been sufficiently trained during pretraining and as stated in the paper does not need to be fine-tuned anymore. Thus, we can set the requires_grad to False for all parameters of the feature extraction part. python model.freeze_feature_extractor() In a final step, we define all parameters related to training. To give more explanation on some of the parameters: - group_by_length makes training more efficient by grouping training samples of similar input length into one batch. This can significantly speed up training time by heavily reducing the overall number of useless padding tokens that are passed through the model - learning_rate and weight_decay were heuristically tuned until fine-tuning has become stable. Note that those parameters strongly depend on the Common Voice dataset and might be suboptimal for other speech datasets. For more explanations on other parameters, one can take a look at the docs. During training, a checkpoint will be uploaded asynchronously to the Hub every 400 training steps. It allows you to also play around with the demo widget even while your model is still training. Note: If one does not want to upload the model checkpoints to the Hub, simply set push_to_hub=False. python from transformers import TrainingArguments training_args = TrainingArguments( output_dir=repo_name, group_by_length=True, per_device_train_batch_size=16, gradient_accumulation_steps=2, evaluation_strategy="steps", num_train_epochs=30, gradient_checkpointing=True, fp16=True, save_steps=400, eval_steps=400, logging_steps=400, learning_rate=3e-4, warmup_steps=500, save_total_limit=2, push_to_hub=True, ) Now, all instances can be passed to Trainer and we are ready to start training! python from transformers import Trainer trainer = Trainer( model=model, data_collator=data_collator, args=training_args, compute_metrics=compute_metrics, train_dataset=common_voice_train, eval_dataset=common_voice_test, tokenizer=processor.feature_extractor, ) ------------------------------------------------------------------------ \( {}^1 \) To allow models to become independent of the speaker rate, in CTC, consecutive tokens that are identical are simply grouped as a single token. However, the encoded labels should not be grouped when decoding since they don\'t correspond to the predicted tokens of the model, which is why the group_tokens=False parameter has to be passed. If we wouldn\'t pass this parameter a word like "hello" would incorrectly be encoded, and decoded as "helo". \( {}^2 \) The blank token allows the model to predict a word, such as "hello" by forcing it to insert the blank token between the two l\'s. A CTC-conform prediction of "hello" of our model would be [PAD] [PAD] "h" "e" "e" "l" "l" [PAD] "l" "o" "o" [PAD]. | [
-0.007889475673437119,
-0.01688508316874504,
-0.013456559740006924,
0.012535209767520428,
0.00006862221925985068,
0.07427627593278885,
-0.0030238379258662462,
-0.026629818603396416,
-0.04384845867753029,
-0.034966982901096344,
-0.06705008447170258,
0.026135249063372612,
0.03970480337738991,
0.04562815651297569,
-0.012416400015354156,
0.007660715375095606,
0.05180925875902176,
-0.007153108716011047,
-0.017351165413856506,
0.04175066202878952,
-0.04129447788000107,
0.019415272399783134,
0.04654910787940025,
0.09757775068283081,
-0.000693366106133908,
0.0009342644480057061,
-0.043899837881326675,
0.03794994577765465,
-0.10023625195026398,
0.028774002566933632,
-0.09384378045797348,
0.029427222907543182,
0.011502710171043873,
-0.04788209870457649,
0.03309440240263939,
-0.003779475810006261,
-0.08919694274663925,
0.0502985455095768,
0.02641645073890686,
-0.05727918818593025,
-0.0032172794453799725,
-0.0006150628323666751,
-0.09188635647296906,
0.024513037875294685,
-0.020508835092186928,
-0.0740625336766243,
-0.14455585181713104,
0.07191457599401474,
-0.001996275270357728,
-0.0224806796759367,
-0.053077928721904755,
0.0720742791891098,
-0.02902289666235447,
0.035400789231061935,
0.0384514257311821,
-0.05002421885728836,
-0.07257132977247238,
-0.08343269675970078,
0.013501733541488647,
-0.07021775841712952,
0.019509445875883102,
-0.023085037246346474,
-0.02752389758825302,
0.007409713231027126,
0.019766878336668015,
0.010392057709395885,
0.02210383489727974,
0.01174927782267332,
-0.056911468505859375,
-0.03569101169705391,
-0.023765357211232185,
0.013793857768177986,
0.01061702799052,
-0.03539224714040756,
0.022162212058901787,
-0.07215952128171921,
-0.057683348655700684,
-0.0380660817027092,
0.040928859263658524,
0.06777579337358475,
-0.05017705261707306,
0.03159967064857483,
0.030472630634903908,
0.04403255507349968,
-0.009532245807349682,
0.026487840339541435,
0.06786376982927322,
0.006818001624196768,
-0.015285184606909752,
-0.010357430204749107,
-0.03835522383451462,
-0.12288297712802887,
0.013651366345584393,
0.008644608780741692,
0.007666504476219416,
-0.049447447061538696,
-0.03598516061902046,
-0.014265939593315125,
0.023047810420393944,
0.024611907079815865,
-0.017459886148571968,
-0.055891238152980804,
0.06691896170377731,
-0.022878006100654602,
-0.053397662937641144,
0.08492197841405869,
-0.03447069972753525,
-0.013980554416775703,
-0.022307783365249634,
0.01887444034218788,
-0.008717683143913746,
-0.029138850048184395,
-0.044462382793426514,
0.09629928320646286,
-0.06976981461048126,
-0.06009732559323311,
0.017352009192109108,
0.045868150889873505,
-0.04580746963620186,
-0.002455933718010783,
-0.020293759182095528,
0.11700550466775894,
0.035982150584459305,
0.04742762818932533,
-0.012719652615487576,
-0.028288723900914192,
0.060204487293958664,
0.031039878726005554,
0.04470173642039299,
-0.026418553665280342,
-0.01694481261074543,
-0.030982090160250664,
0.09827570617198944,
0.014271664433181286,
0.03333110362291336,
-0.06003371626138687,
0.001923794625326991,
-0.03433681279420853,
0.004854917526245117,
0.007328968029469252,
0.030092963948845863,
0.0859207734465599,
-0.015253813937306404,
0.03679284080862999,
-0.023839645087718964,
0.01177255716174841,
-0.0711451917886734,
0.03989686816930771,
-0.015403336845338345,
0.009628213942050934,
-0.005598900839686394,
0.07921358197927475,
-0.0045697507448494434,
-0.06140325218439102,
0.013058959506452084,
0.06171559542417526,
-0.04785122722387314,
-0.03158107027411461,
-0.07500310987234116,
0.06551574915647507,
-0.023671714588999748,
0.04143655672669411,
-0.032963551580905914,
-0.00013457298337016255,
0.007055975031107664,
-0.009356801398098469,
0.025213688611984253,
0.021274922415614128,
0.029212919995188713,
0.044984158128499985,
0.012463456019759178,
-0.03220115229487419,
0.029419800266623497,
0.0638478547334671,
-0.0283227376639843,
0.06075477600097656,
0.05160953849554062,
0.01899564079940319,
-0.06044662371277809,
-0.01085606124252081,
-0.032837968319654465,
0.05700114741921425,
-0.039806462824344635,
-0.0031718909740448,
0.0686403438448906,
-0.05640992522239685,
0.025425830855965614,
-0.059581123292446136,
-0.012323305942118168,
0.06916036456823349,
-0.06521231681108475,
-0.06601440161466599,
0.053947970271110535,
-0.026354115456342697,
0.026046959683299065,
-0.024715906009078026,
-0.060394421219825745,
0.1099662035703659,
-0.011912818066775799,
0.050273288041353226,
0.05162515863776207,
0.055730678141117096,
-0.013026063330471516,
0.020762789994478226,
-0.00007306756742764264,
-0.027360424399375916,
-0.02819223701953888,
-0.06252221018075943,
0.018144039437174797,
0.051645249128341675,
-0.008592956699430943,
-0.016137205064296722,
0.04733964800834656,
-0.07488970458507538,
-0.0314980074763298,
-0.03629189729690552,
-0.010918201878666878,
0.013957513496279716,
0.06485070288181305,
-0.038142383098602295,
0.14901597797870636,
-0.07119250297546387,
-0.008940938860177994,
0.019651541486382484,
-0.02874264307320118,
0.03031851351261139,
0.04324787110090256,
0.04926654323935509,
0.006977011449635029,
-0.10267657041549683,
-0.04894881322979927,
-0.09308615326881409,
0.01854025013744831,
0.04532443359494209,
-0.019517187029123306,
-0.06118001416325569,
0.046291302889585495,
-0.01840081810951233,
0.041565489023923874,
0.019815810024738312,
0.009008726105093956,
0.02619975246489048,
-0.010651670396327972,
-0.025345759466290474,
-0.0773039385676384,
0.006098995450884104,
0.06062803044915199,
0.008323072455823421,
0.011232693679630756,
-0.004963189363479614,
-0.027469724416732788,
0.03948589786887169,
-0.0038260070141404867,
-0.025775732472538948,
0.037998247891664505,
0.11986632645130157,
0.010527774691581726,
-0.005594175774604082,
-0.025927480310201645,
0.026401672512292862,
0.009062717668712139,
-0.020128613337874413,
-0.021431617438793182,
-0.0555102564394474,
0.012258290313184261,
-0.05273645371198654,
0.01696239970624447,
0.02325209602713585,
0.013173598796129227,
0.013971026055514812,
-0.0032607857137918472,
0.007409895304590464,
0.005341182462871075,
-0.05384189635515213,
0.0014137797988951206,
0.012709048576653004,
0.013828976079821587,
-0.016291186213493347,
-0.04554394632577896,
-0.00996184628456831,
0.004000483080744743,
0.0010558792855590582,
0.05171564593911171,
0.0365041121840477,
0.020272357389330864,
0.010906795971095562,
0.01293998770415783,
-0.022437190636992455,
-0.023971732705831528,
0.034545496106147766,
-0.0022985900286585093,
0.05845377594232559,
0.01731765642762184,
-0.020056508481502533,
0.023901430889964104,
0.02724742703139782,
-0.006702442187815905,
-0.04013034701347351,
-0.0138356052339077,
0.01160222478210926,
-0.02527383156120777,
0.001010666135698557,
-0.005289618857204914,
0.002953304210677743,
-0.049572914838790894,
-0.020107781514525414,
-0.009073873050510883,
0.023622827604413033,
-0.0968828871846199,
-0.005963800475001335,
0.004255077801644802,
-0.009663620963692665,
-0.02298436127603054,
-0.02861526608467102,
0.015127306804060936,
-0.033210817724466324,
-0.061890535056591034,
0.025351734831929207,
0.022517817094922066,
0.04308261349797249,
0.0016327379271388054,
-0.001155587495304644,
0.013436510227620602,
0.009927337989211082,
-0.006122236605733633,
-0.03425797075033188,
-0.013413461856544018,
0.02739258110523224,
0.0007555604679509997,
0.029775742441415787,
0.015622831881046295,
0.03262585401535034,
-0.005538569763302803,
-0.02093011699616909,
0.023391125723719597,
0.02674303576350212,
-0.007985817268490791,
-0.02661166526377201,
-0.010376008227467537,
0.010358873754739761,
-0.008913323283195496,
-0.014750915579497814,
-0.05244177207350731,
-0.009361673146486282,
0.00200020638294518,
0.014605870470404625,
-0.013475988060235977,
0.020562974736094475,
0.0040777758695185184,
0.010727638378739357,
0.020091110840439796,
-0.03640921413898468,
0.02822115644812584,
-0.009671014733612537,
0.013498359359800816,
-0.026326924562454224,
0.03283120319247246,
-0.033606983721256256,
0.0014651347883045673,
-0.0028912932612001896,
0.013518690131604671,
0.008945552632212639,
0.010154040530323982,
0.0011788327246904373,
-0.02273392118513584,
0.07525745034217834,
0.025501197203993797,
-0.021761760115623474,
0.0016523735830560327,
-0.03689170256257057,
-0.0013511843280866742,
0.020536083728075027,
0.0070365616120398045,
0.016330968588590622,
0.003860610770061612,
-0.01364578865468502,
-0.05374014377593994,
0.02935446985065937,
0.009999142028391361,
0.023257944732904434,
-0.0006861671572551131,
0.009392760694026947,
0.003700743895024061,
-0.0038811801932752132,
-0.025858156383037567,
-0.011774571612477303,
0.025637593120336533,
0.007724743336439133,
-0.05148898810148239,
-0.026559893041849136,
-0.033061910420656204,
-0.008995156735181808,
0.0003666835546027869,
0.024496089667081833,
0.0062725781463086605,
0.0009655998437665403,
0.024070458486676216,
0.023054789751768112,
0.031700968742370605,
-0.0197810810059309,
0.011183412745594978,
-0.0039697373285889626,
-0.013583347201347351,
0.0029495093040168285,
0.008531976491212845,
-0.03916440159082413,
-0.009572610259056091,
0.027773527428507805,
-0.021884024143218994,
-0.0945301204919815,
0.009321877732872963,
-0.05422297865152359,
0.06821189820766449,
-0.01611321046948433,
-0.06922624260187149,
-0.025827448815107346,
-0.012851059436798096,
0.012409876100718975,
0.015321029350161552,
-0.01958402618765831,
-0.004286604467779398,
0.017358694225549698,
0.018103767186403275,
0.05183095484972,
-0.024900199845433235,
-0.0873488336801529,
-0.0703500434756279,
0.0556977204978466,
-0.009023228660225868,
-0.01736101135611534,
0.018663225695490837,
-0.022833669558167458,
0.029733380302786827,
0.021460626274347305,
0.049897659569978714,
0.009618100710213184,
-0.0008172430680133402,
-0.024312026798725128,
-0.01925089955329895,
-0.005172562785446644,
0.03210356459021568,
-0.0015770694008097053,
0.011650028638541698,
0.007427152246236801,
-0.02609734609723091,
0.01985388807952404,
0.021596454083919525,
-0.01971016637980938,
-0.009291919879615307,
-0.024417433887720108,
0.00015722365060355514,
-0.06175704300403595,
0.05003249645233154,
0.01924888789653778,
-0.002183099277317524,
-0.021263400092720985,
-0.03008202835917473,
0.008581232279539108,
0.0500168614089489,
0.013083482161164284,
-0.0016707504400983453,
0.018042786046862602,
0.00885696243494749,
-0.05672905221581459,
0.04700781777501106,
0.053381066769361496,
0.02538580633699894,
0.05722787231206894,
-0.006192258559167385,
0.00509179150685668,
-0.014262133277952671,
0.06713572889566422,
0.05296016484498978,
-0.002430466003715992,
-0.029928678646683693,
-0.07896332442760468,
0.037723343819379807,
0.04130775108933449,
0.0027016799431294203,
-0.009882650338113308,
0.01299031637609005,
-0.033212799578905106,
-0.01732173003256321,
0.029586704447865486,
0.03230702504515648,
0.03543957322835922,
0.006635694764554501,
0.027503572404384613,
-0.0086142523214221,
-0.012747712433338165,
0.023647630587220192,
-0.0024704928509891033,
0.004235478583723307,
0.012896105647087097,
0.03513534367084503,
0.05247924476861954,
0.024195324629545212,
0.03123239241540432,
-0.021319586783647537,
-0.01608979143202305,
-0.01379375159740448,
-0.02261250838637352,
-0.017647337168455124,
-0.013707987032830715,
-0.04040379077196121,
0.024663053452968597,
-0.0006992160924710333,
0.00576358288526535,
0.009690475650131702,
0.007707890588790178,
0.024482538923621178,
-0.035305220633745193,
-0.027375096455216408,
0.022093573585152626,
-0.005657440051436424,
-0.050706326961517334,
0.00042606351780705154,
0.01093801949173212,
-0.003041052259504795,
-0.022313056513667107,
0.008145715110003948,
0.02119852416217327,
0.015923496335744858,
-0.05471283569931984,
-0.05836528539657593,
0.028674906119704247,
0.020726852118968964,
0.04602918028831482,
0.007128947414457798,
-0.01168054435402155,
0.011721606366336346,
0.026322124525904655,
0.01034428272396326,
-0.04444033280014992,
-0.02353474870324135,
0.01580924168229103,
0.003987286239862442,
0.04077047482132912,
0.0009569629328325391,
-0.031858377158641815,
0.0009151695412583649,
0.08341830968856812,
-0.04939078912138939,
-0.010295930318534374,
-0.06279943138360977,
0.05333949252963066,
0.026175575330853462,
0.0007886909879744053,
0.01380265410989523,
0.00715562654659152,
-0.006586678791791201,
0.056507863104343414,
-0.012553073465824127,
0.04601755365729332,
0.023278137668967247,
-0.008489934727549553,
0.026677219197154045,
0.02663925103843212,
0.02116970531642437,
0.046614307910203934,
-0.0019085586536675692,
-0.03390372544527054,
0.04402591288089752,
0.02953496389091015,
0.018696466460824013,
0.0039027247112244368,
0.025584634393453598,
0.008435326628386974,
0.00950426422059536,
-0.0958947092294693,
0.030842557549476624,
0.0004246439493726939,
-0.013017045333981514,
0.024325914680957794,
0.0396595261991024,
-0.02142038568854332,
-0.014229563996195793,
0.0023755820002406836,
0.0023580174893140793,
0.030987633392214775,
-0.02817351743578911,
0.02455860562622547,
0.026685168966650963,
-0.02959069237112999,
-0.023956146091222763,
0.06300172209739685,
-0.02254144288599491,
0.030421296134591103,
0.04048694297671318,
0.013643000274896622,
0.018715878948569298,
0.05889425426721573,
-0.011091205291450024,
0.0799541026353836,
0.07238850742578506,
0.0007841918268240988,
0.015590754337608814,
0.03180448338389397,
0.03138356655836105,
0.017774689942598343,
-0.018869897350668907,
-0.0021948842331767082,
-0.007775124162435532,
-0.007193582132458687,
0.020204070955514908,
-0.02524411678314209,
0.005160406231880188,
-0.03137817978858948,
0.02404731698334217,
0.024504147469997406,
-0.0006648623384535313,
-0.01196137722581625,
0.0334799699485302,
0.028751634061336517,
0.033365633338689804,
0.019037120044231415,
0.023492399603128433,
0.013257903978228569,
-0.027887236326932907,
0.06218469515442848,
0.016461770981550217,
-0.0008688903180882335,
-0.011170975863933563,
-0.01379477884620428,
0.005409154109656811,
-0.016028795391321182,
-0.031231774017214775,
-0.005475223995745182,
0.005400332156568766,
-0.019403548911213875,
0.00844242051243782,
-0.011249726638197899,
-0.018411114811897278,
0.040277428925037384,
-0.000753179076127708,
-0.005280073266476393,
0.026787137612700462,
0.029724640771746635,
-0.027575552463531494,
0.06443168967962265,
0.009616497904062271,
-0.06412980705499649,
-0.019689833745360374,
-0.023015080019831657,
0.0044906060211360455,
0.010328317992389202,
-0.00921551138162613,
0.007553857751190662,
-0.01137544959783554,
-0.023834653198719025,
-0.009398636408150196,
-0.006486434955149889,
-0.023962631821632385,
0.0166582353413105,
-0.062154099345207214,
-0.021513715386390686,
-0.028803717344999313,
-0.010264407843351364,
0.020194709300994873,
0.02849639765918255,
-0.012063760310411453,
0.02086176909506321,
-0.015994904562830925,
0.020425522699952126,
0.017649434506893158,
-0.025293823331594467,
0.05868831276893616,
0.027952849864959717,
0.019678326323628426,
-0.018419450148940086,
0.057761915028095245,
0.022879622876644135,
-0.08284568041563034,
-0.05589296668767929,
0.020760906860232353,
-0.009350171312689781,
0.02192770503461361,
0.025622576475143433,
-0.019857026636600494,
-0.01759066805243492,
-0.057486969977617264,
-0.03544622287154198,
-0.030507275834679604,
0.007641215343028307,
0.01512566115707159,
-0.006100527476519346,
0.003437786130234599,
-0.008433030918240547,
0.04001305252313614,
0.003172837430611253,
0.0045523433946073055,
-0.0019544458482414484,
0.013615979813039303,
0.004398098215460777,
-0.009173979982733727,
0.013473207131028175,
-0.02882651798427105,
-0.014156852848827839,
-0.04864382743835449,
-0.051355671137571335,
-0.007369845174252987,
0.017152126878499985,
0.00588066503405571,
0.0050998833030462265,
-0.04033230245113373,
-0.0045235976576805115,
-0.014984811656177044,
-0.020224645733833313,
-0.013154127635061741,
-0.010751365683972836,
0.01812795363366604,
0.028619306161999702,
0.03274434804916382,
0.03351103141903877,
-0.034992530941963196,
0.015326964668929577,
0.023602940142154694,
-0.03065977431833744,
0.05524878948926926,
0.0031642529647797346,
0.009218988940119743,
-0.05116214603185654,
0.015980172902345657,
0.0272756889462471,
-0.028750143945217133,
0.02625720202922821,
0.004426129162311554,
0.030568283051252365,
-0.04388682544231415,
0.046410493552684784,
0.06516265124082565,
0.03235532343387604,
0.06686035543680191,
-0.00015419465489685535,
-0.012024562805891037,
0.03334091976284981,
-0.00683071743696928,
-0.10292594879865646,
-0.025996657088398933,
-0.010766089893877506,
-0.024298835545778275,
0.00045153286191634834,
0.002308447379618883,
0.062268197536468506,
-0.0029537167865782976,
-0.010571340098977089,
-0.03735682740807533,
-0.00505691347643733,
0.02636144682765007,
-0.06547002494335175,
0.0062417201697826385,
0.0025262904819101095,
-0.016434958204627037,
0.013805230148136616,
0.0022200557868927717,
0.04067739471793175,
0.013062523677945137,
-0.007268317509442568,
-0.00841856561601162,
0.0046308403834700584,
0.031527917832136154,
-0.01025274395942688,
0.0006087112124077976,
0.057313013821840286,
0.01652960479259491,
0.028950201347470284,
-0.002612670185044408,
-0.0031980792991816998
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | Create Wav2Vec2CTCTokenizer A pre-trained XLS-R model maps the speech signal to a sequence of context representations as illustrated in the figure above. However, for speech recognition the model has to to map this sequence of context representations to its corresponding transcription which means that a linear layer has to be added on top of the transformer block (shown in yellow in the diagram above). This linear layer is used to classify each context representation to a token class analogous to how a linear layer is added on top of BERT\'s embeddings for further classification after pre-training (cf. with \'BERT\' section of the following blog post). after pretraining a linear layer is added on top of BERT\'s embeddings for further classification - cf. with \'BERT\' section of this blog post. The output size of this layer corresponds to the number of tokens in the vocabulary, which does not depend on XLS-R\'s pretraining task, but only on the labeled dataset used for fine-tuning. So in the first step, we will take a look at the chosen dataset of Common Voice and define a vocabulary based on the transcriptions. First, let\'s go to Common Voice official website and pick a language to fine-tune XLS-R on. For this notebook, we will use Turkish. For each language-specific dataset, you can find a language code corresponding to your chosen language. On Common Voice, look for the field \"Version\". The language code then corresponds to the prefix before the underscore. For Turkish, e.g. the language code is "tr". Great, now we can use 🤗 Datasets\' simple API to download the data. The dataset name is "common_voice", the configuration name corresponds to the language code, which is "tr" in our case. Common Voice has many different splits including invalidated, which refers to data that was not rated as \"clean enough\" to be considered useful. In this notebook, we will only make use of the splits "train", "validation" and "test". Because the Turkish dataset is so small, we will merge both the validation and training data into a training dataset and only use the test data for validation. python from datasets import load_dataset, load_metric, Audio common_voice_train = load_dataset("common_voice", "tr", split="train+validation") common_voice_test = load_dataset("common_voice", "tr", split="test") Many ASR datasets only provide the target text, 'sentence' for each audio array 'audio' and file 'path'. Common Voice actually provides much more information about each audio file, such as the 'accent', etc. Keeping the notebook as general as possible, we only consider the transcribed text for fine-tuning. python common_voice_train = common_voice_train.remove_columns(["accent", "age", "client_id", "down_votes", "gender", "locale", "segment", "up_votes"]) common_voice_test = common_voice_test.remove_columns(["accent", "age", "client_id", "down_votes", "gender", "locale", "segment", "up_votes"]) Let\'s write a short function to display some random samples of the dataset and run it a couple of times to get a feeling for the transcriptions. python from datasets import ClassLabel import random import pandas as pd from IPython.display import display, HTML def show_random_elements(dataset, num_examples=10): assert num_examples <= len(dataset), "Can't pick more elements than there are in the dataset." picks = [] for _ in range(num_examples): pick = random.randint(0, len(dataset)-1) while pick in picks: pick = random.randint(0, len(dataset)-1) picks.append(pick) df = pd.DataFrame(dataset[picks]) display(HTML(df.to_html())) Print Output: | Idx | Sentence | |----------|:-------------:| | 1 | Jonuz, kısa süreli görevi kabul eden tek adaydı. | | 2 | Biz umudumuzu bu mücadeleden almaktayız. | | 3 | Sergide beş Hırvat yeniliği sergilendi. | | 4 | Herşey adıyla bilinmeli. | | 5 | Kuruluş özelleştirmeye hazır. | | 6 | Yerleşim yerlerinin manzarası harika. | | 7 | Olayların failleri bulunamadı. | | 8 | Fakat bu çabalar boşa çıktı. | | 9 | Projenin değeri iki virgül yetmiş yedi milyon avro. | | 10 | Büyük yeniden yapım projesi dört aşamaya bölündü. | Alright! The transcriptions look fairly clean. Having translated the transcribed sentences, it seems that the language corresponds more to written-out text than noisy dialogue. This makes sense considering that Common Voice is a crowd-sourced read speech corpus. We can see that the transcriptions contain some special characters, such as ,.?!;:. Without a language model, it is much harder to classify speech chunks to such special characters because they don\'t really correspond to a characteristic sound unit. E.g., the letter "s" has a more or less clear sound, whereas the special character "." does not. Also in order to understand the meaning of a speech signal, it is usually not necessary to include special characters in the transcription. Let\'s simply remove all characters that don\'t contribute to the meaning of a word and cannot really be represented by an acoustic sound and normalize the text. python import re chars_to_remove_regex = '[\,\?\.\!\-\;\:\"\“\%\‘\”\�\']' def remove_special_characters(batch): batch["sentence"] = re.sub(chars_to_remove_regex, '', batch["sentence"]).lower() return batch python common_voice_train = common_voice_train.map(remove_special_characters) common_voice_test = common_voice_test.map(remove_special_characters) Let\'s look at the processed text labels again. python show_random_elements(common_voice_train.remove_columns(["path","audio"])) Print Output: | Idx | Transcription | |----------|:-------------:| | 1 | birisi beyazlar için dediler | | 2 | maktouf'un cezası haziran ayında sona erdi | | 3 | orijinalin aksine kıyafetler çıkarılmadı | | 4 | bunların toplam değeri yüz milyon avroyu buluyor | | 5 | masada en az iki seçenek bulunuyor | | 6 | bu hiç de haksız bir heveslilik değil | | 7 | bu durum bin dokuz yüz doksanlarda ülkenin bölünmesiyle değişti | | 8 | söz konusu süre altı ay | | 9 | ancak bedel çok daha yüksek olabilir | | 10 | başkent fira bir tepenin üzerinde yer alıyor | Good! This looks better. We have removed most special characters from transcriptions and normalized them to lower-case only. Before finalizing the pre-processing, it is always advantageous to consult a native speaker of the target language to see whether the text can be further simplified. For this blog post, Merve was kind enough to take a quick look and noted that \"hatted\" characters - like â - aren\'t really used anymore in Turkish and can be replaced by their \"un-hatted\" equivalent, e.g. a. This means that we should replace a sentence like "yargı sistemi hâlâ sağlıksız" to "yargı sistemi hala sağlıksız". Let\'s write another short mapping function to further simplify the text labels. Remember, the simpler the text labels, the easier it is for the model to learn to predict those labels. python def replace_hatted_characters(batch): batch["sentence"] = re.sub('[â]', 'a', batch["sentence"]) batch["sentence"] = re.sub('[î]', 'i', batch["sentence"]) batch["sentence"] = re.sub('[ô]', 'o', batch["sentence"]) batch["sentence"] = re.sub('[û]', 'u', batch["sentence"]) return batch python common_voice_train = common_voice_train.map(replace_hatted_characters) common_voice_test = common_voice_test.map(replace_hatted_characters) In CTC, it is common to classify speech chunks into letters, so we will do the same here. Let\'s extract all distinct letters of the training and test data and build our vocabulary from this set of letters. We write a mapping function that concatenates all transcriptions into one long transcription and then transforms the string into a set of chars. It is important to pass the argument batched=True to the map(...) function so that the mapping function has access to all transcriptions at once. python def extract_all_chars(batch): all_text = " ".join(batch["sentence"]) vocab = list(set(all_text)) return {"vocab": [vocab], "all_text": [all_text]} python vocab_train = common_voice_train.map(extract_all_chars, batched=True, batch_size=-1, keep_in_memory=True, remove_columns=common_voice_train.column_names) vocab_test = common_voice_test.map(extract_all_chars, batched=True, batch_size=-1, keep_in_memory=True, remove_columns=common_voice_test.column_names) Now, we create the union of all distinct letters in the training dataset and test dataset and convert the resulting list into an enumerated dictionary. python vocab_list = list(set(vocab_train["vocab"][0]) | set(vocab_test["vocab"][0])) python vocab_dict = {v: k for k, v in enumerate(sorted(vocab_list))} vocab_dict Print Output: bash { ' ': 0, 'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11, 'l': 12, 'm': 13, 'n': 14, 'o': 15, 'p': 16, 'q': 17, 'r': 18, 's': 19, 't': 20, 'u': 21, 'v': 22, 'w': 23, 'x': 24, 'y': 25, 'z': 26, 'ç': 27, 'ë': 28, 'ö': 29, 'ü': 30, 'ğ': 31, 'ı': 32, 'ş': 33, '̇': 34 } Cool, we see that all letters of the alphabet occur in the dataset (which is not really surprising) and we also extracted the special characters "" and '. Note that we did not exclude those special characters because: The model has to learn to predict when a word is finished or else the model prediction would always be a sequence of chars which would make it impossible to separate words from each other. One should always keep in mind that pre-processing is a very important step before training your model. E.g., we don\'t want our model to differentiate between a and A just because we forgot to normalize the data. The difference between a and A does not depend on the \"sound\" of the letter at all, but more on grammatical rules - e.g. use a capitalized letter at the beginning of the sentence. So it is sensible to remove the difference between capitalized and non-capitalized letters so that the model has an easier time learning to transcribe speech. To make it clearer that " " has its own token class, we give it a more visible character |. In addition, we also add an \"unknown\" token so that the model can later deal with characters not encountered in Common Voice\'s training set. python vocab_dict["|"] = vocab_dict[" "] del vocab_dict[" "] Finally, we also add a padding token that corresponds to CTC\'s \"blank token\". The \"blank token\" is a core component of the CTC algorithm. For more information, please take a look at the \"Alignment\" section here. python vocab_dict["[UNK]"] = len(vocab_dict) vocab_dict["[PAD]"] = len(vocab_dict) len(vocab_dict) Cool, now our vocabulary is complete and consists of 39 tokens, which means that the linear layer that we will add on top of the pretrained XLS-R checkpoint will have an output dimension of 39. Let\'s now save the vocabulary as a json file. python import json with open('vocab.json', 'w') as vocab_file: json.dump(vocab_dict, vocab_file) In a final step, we use the json file to load the vocabulary into an instance of the Wav2Vec2CTCTokenizer class. python from transformers import Wav2Vec2CTCTokenizer tokenizer = Wav2Vec2CTCTokenizer.from_pretrained("./", unk_token="[UNK]", pad_token="[PAD]", word_delimiter_token="|") If one wants to re-use the just created tokenizer with the fine-tuned model of this notebook, it is strongly advised to upload the tokenizer to the Hugging Face Hub. Let\'s call the repo to which we will upload the files "wav2vec2-large-xlsr-turkish-demo-colab": python repo_name = "wav2vec2-large-xls-r-300m-tr-colab" and upload the tokenizer to the 🤗 Hub. python tokenizer.push_to_hub(repo_name) Great, you can see the just created repository under https://huggingface.co/<your-username>/wav2vec2-large-xls-r-300m-tr-colab | [
0.012112814001739025,
-0.026397818699479103,
-0.0004865254450123757,
-0.029182588681578636,
0.02118457667529583,
0.1127188578248024,
0.04078226536512375,
0.034087810665369034,
-0.019423019140958786,
-0.05859222635626793,
-0.0618097223341465,
0.0595707930624485,
-0.00782555527985096,
0.023297680541872978,
-0.004937247838824987,
-0.005840246099978685,
0.04686206579208374,
-0.015887316316366196,
-0.009491021744906902,
0.0007591639296151698,
-0.036785367876291275,
-0.05198180675506592,
0.042697858065366745,
0.05764414370059967,
0.022558607161045074,
0.005406821612268686,
0.029657302424311638,
0.0008299231412820518,
0.005876882467418909,
-0.005626522935926914,
-0.030224502086639404,
0.04877433925867081,
-0.04600230231881142,
-0.05161534249782562,
0.01862826943397522,
0.05507856607437134,
-0.05751205235719681,
-0.022300874814391136,
0.008182510733604431,
-0.030894173309206963,
-0.013097686693072319,
-0.015184369869530201,
-0.012586183845996857,
0.08069843798875809,
0.002367907902225852,
-0.05082932114601135,
-0.1556917428970337,
0.0716051533818245,
-0.026368647813796997,
-0.000994252972304821,
-0.045383475720882416,
0.044711045920848846,
0.02511538751423359,
0.049962107092142105,
0.016688181087374687,
0.0017668744549155235,
-0.02561063878238201,
-0.053186140954494476,
-0.03721693903207779,
0.010429163463413715,
0.012043783441185951,
-0.02418733946979046,
-0.03382318094372749,
0.004546128213405609,
0.0375206395983696,
-0.015195062384009361,
-0.01356697827577591,
0.04959450289607048,
-0.02256348356604576,
0.014135039411485195,
-0.032827410846948624,
-0.015908127650618553,
0.0019755265675485134,
-0.00010045200178865343,
0.03727705031633377,
-0.054900847375392914,
-0.011286377906799316,
0.01334295142441988,
0.0112390061840415,
0.06622802466154099,
0.008163086138665676,
0.029745765030384064,
-0.019888069480657578,
0.0011580113787204027,
0.0191878080368042,
-0.019231850281357765,
0.09620707482099533,
-0.02944648452103138,
-0.07420182228088379,
0.021466126665472984,
-0.06065778061747551,
-0.12355759739875793,
-0.023824892938137054,
0.004810151178389788,
-0.014097347855567932,
-0.05116770789027214,
-0.02719876542687416,
0.062347788363695145,
-0.015607812441885471,
-0.025736618787050247,
-0.03906571865081787,
-0.07130978256464005,
0.11885383725166321,
-0.04748176783323288,
-0.0677182748913765,
0.11352339386940002,
-0.04223418980836868,
0.010559452697634697,
-0.04319451004266739,
0.006913401186466217,
0.06884675472974777,
-0.06485352665185928,
-0.013699881732463837,
0.07596682012081146,
-0.048747025430202484,
-0.0314737968146801,
0.04852066561579704,
-0.010623094625771046,
-0.0028768128249794245,
0.03744744136929512,
-0.059370968490839005,
0.0836210697889328,
-0.018807483837008476,
-0.024105679243803024,
-0.016652030870318413,
-0.015510501340031624,
0.012050330638885498,
0.0077408598735928535,
0.01098896749317646,
0.004841146524995565,
0.04547443240880966,
-0.014797070994973183,
0.1142115369439125,
0.04777359589934349,
0.01984316110610962,
-0.04667447507381439,
-0.005399441812187433,
-0.05069109424948692,
0.07167454063892365,
0.009311183355748653,
0.021147875115275383,
0.07123962044715881,
-0.017110491171479225,
-0.021923206746578217,
0.02985861524939537,
0.027582887560129166,
-0.06911712884902954,
0.05518589913845062,
0.021504202857613564,
0.021286169067025185,
-0.029893549159169197,
0.0222542155534029,
-0.004750665742903948,
-0.053045887500047684,
-0.001337529392912984,
0.05005981773138046,
0.022797247394919395,
-0.04191857576370239,
-0.07693027704954147,
0.06030267849564552,
-0.013799736276268959,
0.01918024942278862,
-0.045161813497543335,
0.02602037973701954,
-0.03900458291172981,
-0.06927771866321564,
-0.007991687394678593,
0.01541117299348116,
0.07790008932352066,
0.0523570254445076,
-0.014781853184103966,
0.00908930879086256,
0.04569702968001366,
0.03789379075169563,
-0.020135214552283287,
0.04114677384495735,
0.009603673592209816,
0.014595245942473412,
0.013666287995874882,
0.005617604125291109,
0.0009572523995302618,
0.06786639243364334,
-0.046511150896549225,
-0.01404349971562624,
0.0540410615503788,
-0.04255184903740883,
0.08411137759685516,
-0.06654729694128036,
-0.022346368059515953,
0.04254954308271408,
0.002369990572333336,
-0.10212503373622894,
0.043561648577451706,
-0.03409283235669136,
0.022523635998368263,
-0.06012002378702164,
-0.029544511809945107,
0.10516446083784103,
-0.023708278313279152,
0.03206949681043625,
0.051334038376808167,
0.00391566613689065,
0.0061062718741595745,
0.015179729089140892,
0.04302862286567688,
-0.02468240074813366,
-0.029971595853567123,
-0.12135333567857742,
0.039963237941265106,
-0.0018709289142861962,
0.05344756692647934,
0.009101627394557,
0.042441029101610184,
-0.12325747311115265,
-0.041765037924051285,
-0.03984590619802475,
-0.040089186280965805,
0.0739346444606781,
0.014997395686805248,
-0.04690854623913765,
0.1293320655822754,
-0.07045383751392365,
0.0008311702986247838,
0.0351320318877697,
-0.040189556777477264,
0.011447276920080185,
0.07095548510551453,
0.057130638509988785,
0.04332960397005081,
-0.09248581528663635,
-0.03522162511944771,
-0.06241752207279205,
-0.01010473445057869,
-0.0035106311552226543,
-0.058915384113788605,
-0.057542841881513596,
0.05089741572737694,
0.021578438580036163,
-0.009594857692718506,
0.03368221968412399,
0.015725359320640564,
0.01936245895922184,
-0.050015393644571304,
-0.005198338534682989,
-0.057082466781139374,
-0.06026827543973923,
-0.004154889844357967,
0.012695989571511745,
-0.014885288663208485,
-0.013368264771997929,
-0.05106233432888985,
0.04143053665757179,
-0.040529340505599976,
-0.06429736316204071,
-0.008549786172807217,
0.11528763175010681,
0.008606680668890476,
-0.02654346637427807,
-0.018434369936585426,
0.0076915486715734005,
-0.011027861386537552,
-0.02663644775748253,
-0.010445943102240562,
-0.042549148201942444,
0.0324690118432045,
-0.0813518837094307,
-0.024699008092284203,
0.04724787548184395,
0.03132854402065277,
0.03569202125072479,
-0.0011779613560065627,
-0.012553107924759388,
-0.002217027824372053,
-0.0060669113881886005,
0.021369390189647675,
0.03423421457409859,
-0.0004172212502453476,
-0.013506324030458927,
-0.019707290455698967,
-0.016197435557842255,
-0.0070044477470219135,
-0.03012198582291603,
0.06412071734666824,
-0.0032797805033624172,
-0.012619134038686752,
0.003907410893589258,
0.00005430321834865026,
-0.00985701009631157,
0.04741509631276131,
0.006918611470609903,
0.008853530511260033,
0.05183922499418259,
-0.018505340442061424,
-0.018893713131546974,
0.004908690694719553,
0.022332973778247833,
0.0017053454648703337,
-0.022299937903881073,
0.03456048667430878,
-0.00824284739792347,
-0.0343434177339077,
-0.0015345922438427806,
-0.002029991941526532,
-0.013875513337552547,
-0.03331204503774643,
0.0014849366853013635,
-0.01020435243844986,
-0.0014596034307032824,
-0.07963208109140396,
-0.009531964547932148,
0.022170448675751686,
-0.052139345556497574,
0.0034704532008618116,
0.0016093403100967407,
0.07560260593891144,
-0.00266040931455791,
-0.03791365772485733,
0.02962815947830677,
0.0019395527197048068,
0.018893182277679443,
0.05126180127263069,
-0.022808725014328957,
0.0024276161566376686,
0.001141988206654787,
-0.04090971499681473,
-0.02945544384419918,
0.04083968698978424,
0.02633034624159336,
0.004360088612884283,
0.04011089727282524,
0.018905041739344597,
0.027202578261494637,
0.009969002567231655,
0.00039256885065697134,
-0.0004679789417423308,
0.030393263325095177,
0.006531369406729937,
-0.02334672026336193,
-0.011423163115978241,
-0.03439798206090927,
0.011696796864271164,
-0.0032464000396430492,
-0.01732451841235161,
-0.021765679121017456,
0.027070850133895874,
0.03158269822597504,
0.05139626935124397,
-0.003899894654750824,
0.0033391201868653297,
-0.028387706726789474,
0.01998061127960682,
-0.007234320975840092,
0.00908565428107977,
-0.01922733336687088,
0.005492127034813166,
-0.053229041397571564,
-0.03265807777643204,
-0.03124157339334488,
0.008523175492882729,
0.000019913408323191106,
-0.011361345648765564,
0.05258776247501373,
0.0011457584332674742,
0.034746501594781876,
0.020720787346363068,
0.028475791215896606,
0.0385885015130043,
-0.060979947447776794,
-0.0022691201884299517,
-0.033150654286146164,
-0.022998681291937828,
-0.016077624633908272,
0.00015108459047041833,
0.006048685405403376,
0.03452855721116066,
-0.02336892858147621,
-0.03655550256371498,
0.06723899394273758,
0.019356245175004005,
0.0015519990120083094,
0.022068142890930176,
0.0018876375397667289,
-0.008458376862108707,
-0.014992719516158104,
-0.03422943130135536,
-0.02819816768169403,
0.04667321592569351,
0.008138823322951794,
-0.04546310007572174,
-0.017598221078515053,
-0.028689483180642128,
-0.0009445398463867605,
0.021901918575167656,
0.0008665467030368745,
0.004603602923452854,
-0.03220013901591301,
0.05053718760609627,
0.015515051782131195,
0.005143000744283199,
-0.016473805531859398,
-0.030187122523784637,
0.004915574565529823,
-0.010270222090184689,
-0.007748177275061607,
0.028770683333277702,
-0.03203718364238739,
0.011152947321534157,
-0.03385361284017563,
0.04394672438502312,
-0.029217608273029327,
-0.026512622833251953,
0.009471815079450607,
0.06170494109392166,
-0.0022343376185745,
-0.03528234735131264,
-0.03425924479961395,
0.0046905935741961,
-0.006777870003134012,
0.007124170660972595,
0.010067177936434746,
-0.004917050711810589,
0.0029197982512414455,
-0.0206326711922884,
0.017226146534085274,
-0.004552008584141731,
-0.04502878338098526,
-0.015462230890989304,
0.019907966256141663,
0.01612122543156147,
-0.0072091445326805115,
0.05623253062367439,
-0.0238080732524395,
0.05183696746826172,
0.0012729682493954897,
0.040114883333444595,
-0.011284636333584785,
-0.028328854590654373,
-0.04057156294584274,
-0.01996409334242344,
-0.03226516768336296,
0.06088443845510483,
-0.015694059431552887,
0.009087464772164822,
0.014303269796073437,
-0.002396807773038745,
0.022130224853754044,
0.03442598134279251,
-0.005617063492536545,
-0.022526415064930916,
-0.046412378549575806,
0.029860423877835274,
-0.03536650910973549,
0.031596701592206955,
-0.003513939445838332,
0.0018308080034330487,
-0.05801575630903244,
-0.045379795134067535,
-0.03232751041650772,
0.03121226653456688,
0.05037612468004227,
-0.007896737195551395,
0.011417062021791935,
-0.010535154491662979,
-0.06936996430158615,
0.03131573647260666,
0.05526525527238846,
0.039884183555841446,
0.053641293197870255,
-0.009028824046254158,
-0.0020263271871954203,
-0.030367929488420486,
0.046855468302965164,
0.019595805555582047,
0.017219597473740578,
-0.0469694621860981,
-0.0568527989089489,
0.032638002187013626,
0.027735140174627304,
-0.02556098811328411,
-0.024290118366479874,
0.02315869741141796,
-0.003136605257168412,
-0.023770766332745552,
-0.00863416213542223,
-0.01082649640738964,
0.01897207833826542,
-0.012992038391530514,
0.02005915530025959,
-0.0035121915861964226,
0.020826179534196854,
-0.00839192420244217,
0.03149273991584778,
-0.0014429987641051412,
0.003591576125472784,
0.03830984979867935,
0.027931109070777893,
0.01292355451732874,
0.01759507693350315,
0.007910833694040775,
-0.014787856489419937,
-0.001968599855899811,
-0.03988431766629219,
-0.056516148149967194,
-0.029197456315159798,
-0.028597330674529076,
-0.014923195354640484,
-0.0511053092777729,
-0.03164761886000633,
-0.015339693985879421,
0.06981107592582703,
0.045428190380334854,
0.008379269391298294,
-0.0020485264249145985,
0.00470381136983633,
0.0005420261877588928,
-0.026122769340872765,
-0.017871053889393806,
0.0055938949808478355,
-0.014766743406653404,
-0.0303425882011652,
0.031167466193437576,
0.028181010857224464,
0.018668053671717644,
-0.04988023638725281,
-0.03080064430832863,
0.05588756874203682,
0.039730701595544815,
0.02527039311826229,
-0.03238630294799805,
-0.04915761947631836,
0.005837011616677046,
0.03962116315960884,
0.01362533401697874,
-0.049406081438064575,
0.013409024104475975,
-0.01866093836724758,
0.003310142084956169,
-0.0030142422765493393,
0.0020934995263814926,
-0.02047163061797619,
0.017497964203357697,
0.11348383873701096,
-0.047373704612255096,
-0.013343826867640018,
-0.03874894231557846,
0.03796175867319107,
0.010004050098359585,
-0.018944481387734413,
-0.008594186045229435,
0.008646349422633648,
-0.020000101998448372,
0.02030152454972267,
-0.016821539029479027,
0.06037067994475365,
0.04420038312673569,
-0.024632690474390984,
0.04914463311433792,
0.029531491920351982,
0.03411303460597992,
0.050296101719141006,
-0.010358534753322601,
-0.017560774460434914,
0.0029604665469378233,
0.04449804127216339,
-0.0003214026801288128,
0.016676494851708412,
0.009060402400791645,
0.022471051663160324,
-0.035285335034132004,
-0.08595297485589981,
-0.009518424980342388,
0.0139531921595335,
-0.011853120289742947,
0.010972382500767708,
0.03180592879652977,
-0.004628422204405069,
0.009273677133023739,
0.05921265855431557,
0.03453262895345688,
0.013583601452410221,
-0.007061181124299765,
-0.022570302709937096,
0.029559077695012093,
-0.039406098425388336,
0.00813638512045145,
0.05953333154320717,
-0.014635497704148293,
0.031987566500902176,
-0.004428704734891653,
0.013924638740718365,
0.03424668684601784,
0.023895349353551865,
0.03508792445063591,
0.05780414491891861,
0.05675564706325531,
-0.02026018686592579,
0.02351333014667034,
0.01627488061785698,
0.031530316919088364,
-0.02444465458393097,
-0.029384328052401543,
-0.02417783997952938,
-0.028926439583301544,
0.02010749839246273,
-0.01248954702168703,
0.02814290300011635,
-0.000894725089892745,
-0.030915696173906326,
0.04976894333958626,
0.03856184333562851,
0.034751925617456436,
-0.0001751583768054843,
0.047932155430316925,
0.01632722094655037,
-0.008664320223033428,
0.01135608647018671,
0.02275836281478405,
0.00006554614083142951,
0.01281243097037077,
0.02598842792212963,
0.022848380729556084,
0.03733186423778534,
0.02660013549029827,
-0.001460712286643684,
-0.00011549652117537335,
-0.019688626751303673,
-0.04493444785475731,
0.028033187612891197,
-0.03426467999815941,
-0.020831819623708725,
-0.011827151291072369,
-0.0025789060164242983,
-0.06388401240110397,
0.029783019796013832,
0.030792564153671265,
-0.013904469087719917,
-0.009651943109929562,
-0.016440412029623985,
0.023445915430784225,
0.0428665392100811,
0.004468454048037529,
-0.0660243034362793,
-0.0398167185485363,
-0.004082210827618837,
0.0038584943395107985,
0.048183374106884,
0.01932576857507229,
-0.044321466237306595,
-0.008370072580873966,
-0.05423007532954216,
0.013376803137362003,
0.011206359602510929,
-0.0247770007699728,
0.011583627201616764,
-0.05244426801800728,
-0.0014978983672335744,
-0.003124397015199065,
0.029246998950839043,
0.0004862738132942468,
0.037653010338544846,
-0.0037637006025761366,
0.010246974416077137,
-0.03198525309562683,
-0.03035624511539936,
0.024249374866485596,
-0.021749984472990036,
0.04778363183140755,
0.021883772686123848,
0.03826230764389038,
0.031973373144865036,
0.061305753886699677,
-0.039102572947740555,
-0.058510370552539825,
-0.044729527086019516,
0.040471795946359634,
-0.036114651709795,
0.0416223369538784,
0.03879819065332413,
-0.0364893302321434,
-0.024858515709638596,
-0.07342974096536636,
0.008694319985806942,
0.004668532870709896,
0.01093248650431633,
0.01518715638667345,
0.0008452184265479445,
-0.027387218549847603,
0.01614931784570217,
0.01575205847620964,
0.010912111960351467,
-0.004616023972630501,
0.03144892305135727,
-0.05170939117670059,
0.020512038841843605,
-0.016247175633907318,
0.0029743195045739412,
-0.06430022418498993,
-0.04218623414635658,
-0.05144166946411133,
-0.06149418279528618,
-0.021260878071188927,
0.007525904569774866,
-0.001735845347866416,
0.007512619718909264,
-0.03807364031672478,
0.005812980700284243,
-0.028471168130636215,
-0.0033918144181370735,
-0.018354328349232674,
-0.00531314592808485,
0.019754210487008095,
0.00490599125623703,
-0.011066844686865807,
0.054393306374549866,
-0.040955353528261185,
0.005318616982549429,
0.022809498012065887,
-0.0304326843470335,
0.017034776508808136,
0.017411747947335243,
0.0038204945158213377,
-0.04505201429128647,
-0.01090354286134243,
0.03443307429552078,
-0.02214997075498104,
-0.007937073707580566,
0.031017951667308807,
0.057688795030117035,
-0.02278001978993416,
0.05470631644129753,
0.027027877047657967,
0.008394194766879082,
0.006160427816212177,
0.030510123819112778,
-0.0031195776537060738,
-0.012704718858003616,
-0.010936535894870758,
-0.02441239170730114,
-0.004951935261487961,
0.002368323039263487,
-0.019976051524281502,
0.03624328225851059,
0.0019319083075970411,
0.040209412574768066,
0.005353455897420645,
-0.0009065060876309872,
0.024999329820275307,
0.00863280612975359,
0.017517145723104477,
-0.033755429089069366,
0.0135111752897501,
0.015877868980169296,
-0.0190268661826849,
0.01778358221054077,
0.058898791670799255,
0.029001018032431602,
-0.019519446417689323,
0.008777640759944916,
-0.027145206928253174,
0.007021859288215637,
-0.0166130680590868,
-0.006060787010937929,
-0.014228817075490952,
0.05982327461242676,
0.01888413168489933,
0.029333852231502533,
0.012533040717244148,
0.0005161926383152604
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | Preprocess Data So far, we have not looked at the actual values of the speech signal but just the transcription. In addition to sentence, our datasets include two more column names path and audio. path states the absolute path of the audio file. Let\'s take a look. python common_voice_train[0]["path"] XLS-R expects the input in the format of a 1-dimensional array of 16 kHz. This means that the audio file has to be loaded and resampled. Thankfully, datasets does this automatically by calling the other column audio. Let try it out. python common_voice_train[0]["audio"] bash {'array': array([ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ..., -8.8930130e-05, -3.8027763e-05, -2.9146671e-05], dtype=float32), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/05be0c29807a73c9b099873d2f5975dae6d05e9f7d577458a2466ecb9a2b0c6b/cv-corpus-6.1-2020-12-11/tr/clips/common_voice_tr_21921195.mp3', 'sampling_rate': 48000} Great, we can see that the audio file has automatically been loaded. This is thanks to the new "Audio" feature introduced in datasets == 1.18.3, which loads and resamples audio files on-the-fly upon calling. In the example above we can see that the audio data is loaded with a sampling rate of 48kHz whereas 16kHz are expected by the model. We can set the audio feature to the correct sampling rate by making use of cast_column: python common_voice_train = common_voice_train.cast_column("audio", Audio(sampling_rate=16_000)) common_voice_test = common_voice_test.cast_column("audio", Audio(sampling_rate=16_000)) Let\'s take a look at "audio" again. python common_voice_train[0]["audio"] bash {'array': array([ 0.0000000e+00, 0.0000000e+00, 0.0000000e+00, ..., -7.4556941e-05, -1.4621433e-05, -5.7861507e-05], dtype=float32), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/05be0c29807a73c9b099873d2f5975dae6d05e9f7d577458a2466ecb9a2b0c6b/cv-corpus-6.1-2020-12-11/tr/clips/common_voice_tr_21921195.mp3', 'sampling_rate': 16000} This seemed to have worked! Let\'s listen to a couple of audio files to better understand the dataset and verify that the audio was correctly loaded. python import IPython.display as ipd import numpy as np import random rand_int = random.randint(0, len(common_voice_train)-1) print(common_voice_train[rand_int]["sentence"]) ipd.Audio(data=common_voice_train[rand_int]["audio"]["array"], autoplay=True, rate=16000) Print Output: bash sunulan bütün teklifler i̇ngilizce idi It seems like the data is now correctly loaded and resampled. It can be heard, that the speakers change along with their speaking rate, accent, and background environment, etc. Overall, the recordings sound acceptably clear though, which is to be expected from a crowd-sourced read speech corpus. Let\'s do a final check that the data is correctly prepared, by printing the shape of the speech input, its transcription, and the corresponding sampling rate. python rand_int = random.randint(0, len(common_voice_train)-1) print("Target text:", common_voice_train[rand_int]["sentence"]) print("Input array shape:", common_voice_train[rand_int]["audio"]["array"].shape) print("Sampling rate:", common_voice_train[rand_int]["audio"]["sampling_rate"]) Print Output: bash Target text: makedonya bu yıl otuz adet tyetmiş iki tankı aldı Input array shape: (71040,) Sampling rate: 16000 Good! Everything looks fine - the data is a 1-dimensional array, the sampling rate always corresponds to 16kHz, and the target text is normalized. Finally, we can leverage Wav2Vec2Processor to process the data to the format expected by Wav2Vec2ForCTC for training. To do so let\'s make use of Dataset\'s map(...) function. First, we load and resample the audio data, simply by calling batch["audio"]. Second, we extract the input_values from the loaded audio file. In our case, the Wav2Vec2Processor only normalizes the data. For other speech models, however, this step can include more complex feature extraction, such as Log-Mel feature extraction. Third, we encode the transcriptions to label ids. Note: This mapping function is a good example of how the Wav2Vec2Processor class should be used. In \"normal\" context, calling processor(...) is redirected to Wav2Vec2FeatureExtractor\'s call method. When wrapping the processor into the as_target_processor context, however, the same method is redirected to Wav2Vec2CTCTokenizer\'s call method. For more information please check the docs. python def prepare_dataset(batch): audio = batch["audio"] # batched output is "un-batched" batch["input_values"] = processor(audio["array"], sampling_rate=audio["sampling_rate"]).input_values[0] batch["input_length"] = len(batch["input_values"]) with processor.as_target_processor(): batch["labels"] = processor(batch["sentence"]).input_ids return batch Let\'s apply the data preparation function to all examples. python common_voice_train = common_voice_train.map(prepare_dataset, remove_columns=common_voice_train.column_names) common_voice_test = common_voice_test.map(prepare_dataset, remove_columns=common_voice_test.column_names) Note: Currently datasets make use of torchaudio and librosa for audio loading and resampling. If you wish to implement your own costumized data loading/sampling, feel free to just make use of the "path" column instead and disregard the "audio" column. Long input sequences require a lot of memory. XLS-R is based on self-attention. The memory requirement scales quadratically with the input length for long input sequences (cf. with this reddit post). In case this demo crashes with an \"Out-of-memory\" error for you, you might want to uncomment the following lines to filter all sequences that are longer than 5 seconds for training. python #max_input_length_in_sec = 5.0 #common_voice_train = common_voice_train.filter(lambda x: x < max_input_length_in_sec * processor.feature_extractor.sampling_rate, input_columns=["input_length"]) Awesome, now we are ready to start training! Training -------- The data is processed so that we are ready to start setting up the training pipeline. We will make use of 🤗\'s Trainer for which we essentially need to do the following: - Define a data collator. In contrast to most NLP models, XLS-R has a much larger input length than output length. E.g., a sample of input length 50000 has an output length of no more than 100. Given the large input sizes, it is much more efficient to pad the training batches dynamically meaning that all training samples should only be padded to the longest sample in their batch and not the overall longest sample. Therefore, fine-tuning XLS-R requires a special padding data collator, which we will define below - Evaluation metric. During training, the model should be evaluated on the word error rate. We should define a compute_metrics function accordingly - Load a pretrained checkpoint. We need to load a pretrained checkpoint and configure it correctly for training. - Define the training configuration. After having fine-tuned the model, we will correctly evaluate it on the test data and verify that it has indeed learned to correctly transcribe speech. | [
-0.03430775925517082,
-0.01914144493639469,
-0.038872867822647095,
0.04734421521425247,
0.016585135832428932,
0.04728368669748306,
0.09937948733568192,
0.0029676316771656275,
-0.025715403258800507,
-0.04631883651018143,
-0.06372490525245667,
0.033382847905159,
-0.017071742564439774,
0.014941486530005932,
0.015305421315133572,
-0.0397304929792881,
0.023573558777570724,
-0.01595955342054367,
0.0014562597498297691,
0.008332389406859875,
0.007103522773832083,
-0.017143355682492256,
0.05522868409752846,
0.0830688402056694,
-0.0004555710474960506,
-0.03269423171877861,
0.004518147092312574,
-0.0021185430232435465,
-0.07778897881507874,
0.013912040740251541,
-0.13567262887954712,
0.048885248601436615,
-0.0442747138440609,
0.010509578511118889,
0.026976412162184715,
0.026534736156463623,
-0.08800490945577621,
0.017096979543566704,
-0.02646792307496071,
-0.025086883455514908,
-0.03143614903092384,
0.002960809739306569,
-0.09464458376169205,
0.06806318461894989,
-0.029462449252605438,
-0.11455787718296051,
-0.121604323387146,
0.019484983757138252,
-0.0445752777159214,
0.01981803961098194,
-0.026412799954414368,
0.07002609968185425,
-0.017249595373868942,
-0.005558577366173267,
0.026554791256785393,
-0.05146442726254463,
0.030350390821695328,
-0.016100769862532616,
0.06392267346382141,
-0.011751115322113037,
0.021593835204839706,
-0.04747861623764038,
0.006606882903724909,
0.015104898251593113,
0.07722290605306625,
0.00343230995349586,
0.04331918805837631,
0.08494843542575836,
-0.019982656463980675,
-0.030066844075918198,
0.0020522342529147863,
0.019858842715620995,
0.06318892538547516,
-0.009324107319116592,
-0.007596805226057768,
0.013635142706334591,
-0.017372306436300278,
0.0163137074559927,
0.029771802946925163,
0.04272504150867462,
0.0015709258150309324,
0.03229152038693428,
-0.0065255723893642426,
0.04192688316106796,
0.04065094515681267,
-0.005232830997556448,
0.08373135328292847,
-0.008584062568843365,
-0.048013824969530106,
0.009837456978857517,
-0.0029248816426843405,
-0.06969144940376282,
-0.00915250089019537,
0.05437426641583443,
0.026813523843884468,
0.015570422634482384,
0.0038672180380672216,
0.023314762860536575,
0.019800102338194847,
0.04558157920837402,
-0.06227961555123329,
-0.03934917226433754,
0.06928809732198715,
-0.007217624690383673,
-0.02973286621272564,
0.08545562624931335,
-0.08750086277723312,
-0.008479165844619274,
-0.05726994574069977,
-0.0044600749388337135,
0.05414753407239914,
0.004934082739055157,
0.009089402854442596,
0.0556369312107563,
-0.06655613332986832,
-0.013964744284749031,
0.006687319837510586,
0.019653232768177986,
-0.03427773714065552,
0.05737580358982086,
-0.051689743995666504,
0.06262461841106415,
0.00008572200022172183,
0.004083714913576841,
-0.03449289873242378,
0.021071985363960266,
0.014607389457523823,
0.03575494512915611,
0.0929102748632431,
-0.009856692515313625,
-0.02289603464305401,
-0.01381754782050848,
0.08819761872291565,
0.036898043006658554,
0.008393899537622929,
-0.04541618376970291,
-0.032632485032081604,
-0.022747378796339035,
0.061158258467912674,
0.012099236249923706,
0.028492307290434837,
0.09090057760477066,
-0.021784653887152672,
-0.01107886154204607,
0.02819070592522621,
0.03405485674738884,
-0.07355710864067078,
0.03266815468668938,
-0.008782758377492428,
0.029749667271971703,
-0.05627742037177086,
0.08175738900899887,
0.029138727113604546,
-0.06066958233714104,
0.0063114105723798275,
0.052810851484537125,
0.001973700011149049,
-0.0534893199801445,
-0.10410024970769882,
0.019142406061291695,
0.034926772117614746,
0.009003400802612305,
-0.05039298161864281,
-0.05838417634367943,
-0.039529379457235336,
-0.03090512938797474,
-0.048345137387514114,
0.02806459367275238,
0.023666691035032272,
0.02559829130768776,
-0.017742114141583443,
-0.06461461633443832,
0.0718318521976471,
0.0226358100771904,
-0.029383385553956032,
0.03855828195810318,
-0.0065818666480481625,
0.013619170524179935,
-0.05471868813037872,
0.029022879898548126,
0.003402983071282506,
0.065842404961586,
0.009523973800241947,
0.06219683587551117,
0.03580820932984352,
-0.07784175127744675,
0.04614459350705147,
-0.039876341819763184,
0.011818744242191315,
0.04010739177465439,
0.009726887568831444,
-0.05027588829398155,
0.04403354227542877,
-0.04023927450180054,
0.0466020368039608,
-0.07742251455783844,
-0.02731562778353691,
0.04393548145890236,
0.031938336789608,
0.010409600101411343,
0.005448263604193926,
-0.021896880120038986,
0.02594694122672081,
-0.06074891239404678,
0.01196015439927578,
0.03483002632856369,
0.03618745505809784,
-0.1252259910106659,
0.051045432686805725,
0.025435181334614754,
-0.009959779679775238,
0.008277717046439648,
0.04864378273487091,
-0.04273444041609764,
-0.04972517862915993,
-0.03408040478825569,
-0.02940250188112259,
-0.004297888372093439,
-0.0714002177119255,
-0.05511750280857086,
0.11005346477031708,
-0.02297797240316868,
0.0847194716334343,
0.01497113797813654,
-0.0691419392824173,
0.02958974801003933,
0.04802388697862625,
0.10636977851390839,
-0.04371112212538719,
-0.011892098933458328,
-0.033048179000616074,
-0.09061730653047562,
-0.048572786152362823,
0.034371037036180496,
-0.024028366431593895,
-0.06889711320400238,
0.06260651350021362,
0.04164579138159752,
-0.027882959693670273,
0.0070931632071733475,
0.05340779945254326,
0.02096746861934662,
-0.0044555338099598885,
0.002131645567715168,
-0.05856558680534363,
-0.08917063474655151,
0.05774427205324173,
-0.019118746742606163,
-0.09171079099178314,
0.01370997540652752,
-0.03814014047384262,
0.03576001152396202,
-0.032759152352809906,
-0.021373188123106956,
-0.016636844724416733,
0.1010039746761322,
0.022420184686779976,
-0.02240448072552681,
-0.036381855607032776,
0.040827054530382156,
0.017584756016731262,
0.0014024808770045638,
-0.024297837167978287,
-0.06572124361991882,
-0.012828401289880276,
-0.09292733669281006,
0.03299539536237717,
0.0036963701713830233,
0.019927939400076866,
0.024721110239624977,
0.0035487585701048374,
-0.0007507733535021544,
0.016805490478873253,
-0.006009506061673164,
0.01425047405064106,
0.04437587410211563,
0.003479172009974718,
-0.03890407830476761,
0.013217567466199398,
-0.02682352624833584,
-0.01154676266014576,
-0.03919588401913643,
0.022130919620394707,
0.059299860149621964,
0.03634662926197052,
0.005664662923663855,
-0.012302828952670097,
-0.002981108846142888,
0.02474997006356716,
0.04250967502593994,
-0.009701814502477646,
0.048217855393886566,
0.03896603360772133,
-0.06355638802051544,
0.00912258867174387,
0.0013551160227507353,
-0.0038665123283863068,
-0.04129570722579956,
-0.0035017007030546665,
0.0053770700469613075,
-0.06849072128534317,
0.039133816957473755,
-0.009195655584335327,
-0.0011986193712800741,
-0.001070522703230381,
0.01568431593477726,
0.01168831530958414,
0.030410736799240112,
-0.07803533226251602,
0.03431151062250137,
0.016450311988592148,
-0.025833474472165108,
-0.027463965117931366,
-0.02096237801015377,
0.037424542009830475,
0.008452675305306911,
-0.022140739485621452,
0.04764273017644882,
-0.037851955741643906,
0.0017517171800136566,
0.028738005086779594,
0.03286640718579292,
0.02001160942018032,
-0.028745558112859726,
-0.01995314285159111,
0.030726652592420578,
-0.026863394305109978,
-0.003321803407743573,
-0.00874567124992609,
0.019961882382631302,
0.04282905533909798,
-0.04320099204778671,
-0.019060883671045303,
0.043756917119026184,
0.027408068999648094,
0.014091682620346546,
0.010216884315013885,
-0.0241998378187418,
-0.003974251914769411,
-0.05503249168395996,
0.04898519814014435,
0.0030448215547949076,
-0.025347542017698288,
-0.025965344160795212,
-0.04989424720406532,
0.013974598608911037,
-0.00322415167465806,
0.01624196767807007,
0.028859637677669525,
-0.00592853594571352,
0.013496520929038525,
-0.0011827064445242286,
0.04002148285508156,
0.009585164487361908,
0.002993266796693206,
0.004844836425036192,
-0.04228445142507553,
-0.003941101487725973,
-0.03844401612877846,
-0.03349039703607559,
0.00607965886592865,
0.030624793842434883,
0.0005761933280155063,
0.026647789403796196,
0.030317246913909912,
0.017461324110627174,
0.043713297694921494,
-0.029640156775712967,
-0.022439314052462578,
0.03105655126273632,
-0.03248244896531105,
0.004861739929765463,
0.02245035208761692,
0.008004947565495968,
0.013832620345056057,
0.032841719686985016,
-0.016798783093690872,
0.054767362773418427,
0.004975218325853348,
-0.023515045642852783,
0.049506187438964844,
0.0031894727144390345,
-0.010662359185516834,
-0.008880969136953354,
0.007029628846794367,
0.001982017420232296,
0.004546608775854111,
0.04610009118914604,
-0.0397668220102787,
0.027811244130134583,
-0.04292295500636101,
-0.031161217018961906,
-0.00032925306004472077,
-0.03312630578875542,
-0.012070223689079285,
-0.016827115789055824,
0.0294924508780241,
-0.004937577992677689,
-0.022542713209986687,
-0.03403346240520477,
-0.03622417896986008,
-0.0018620596965774894,
-0.049853239208459854,
-0.012225901708006859,
0.004406483843922615,
-0.0006547320517711341,
-0.0067876363173127174,
0.007050011307001114,
-0.006127501837909222,
-0.050217196345329285,
-0.03474479913711548,
0.01472067553550005,
0.028907515108585358,
-0.0306299589574337,
-0.009993339888751507,
-0.033740490674972534,
-0.01674867421388626,
-0.0062240902334451675,
0.006475834641605616,
-0.0009741708636283875,
0.03579188510775566,
-0.031949445605278015,
0.029872454702854156,
0.06631144136190414,
-0.03810465335845947,
-0.06073097512125969,
0.031075794249773026,
0.026795843616127968,
0.021443301811814308,
-0.027609772980213165,
-0.03697577491402626,
-0.04146678373217583,
0.039610013365745544,
0.013495284132659435,
0.007342887576669455,
0.025458374992012978,
-0.029485099017620087,
-0.03735089674592018,
-0.014775867573916912,
-0.007448888849467039,
0.02525501139461994,
0.007652049884200096,
0.0180796030908823,
-0.020037317648530006,
-0.004163631238043308,
-0.003763410961255431,
0.01000610738992691,
-0.01198928989470005,
0.009748849086463451,
-0.006755023263394833,
0.02291967160999775,
0.0034705791622400284,
0.008986879140138626,
0.012415898032486439,
0.0006160453776828945,
-0.031456008553504944,
-0.029437674209475517,
-0.01767471432685852,
0.031984344124794006,
0.0016050775302574039,
-0.012521157041192055,
-0.008852495811879635,
0.010925292037427425,
-0.033297184854745865,
-0.002163591794669628,
0.018272867426276207,
0.024276763200759888,
0.035851720720529556,
-0.037106648087501526,
0.00931314192712307,
-0.0060562556609511375,
0.010761099867522717,
-0.028203746303915977,
-0.001972437370568514,
-0.006299709901213646,
-0.06887557357549667,
0.009396441280841827,
0.03949686512351036,
-0.012311717495322227,
-0.003105743322521448,
0.04338957369327545,
-0.0626511201262474,
0.0024470677599310875,
0.016903281211853027,
0.01914122886955738,
0.003409415250644088,
0.011414241977036,
0.017187904566526413,
-0.0381314642727375,
-0.005581779405474663,
0.02977905236184597,
0.024153711274266243,
-0.0011838455684483051,
0.034662649035453796,
-0.0027732683811336756,
0.041389551013708115,
0.00894994381815195,
0.0009216738399118185,
-0.001340125105343759,
-0.03050120919942856,
-0.010634058155119419,
-0.0650397390127182,
0.001082218368537724,
-0.039459191262722015,
0.005894782487303019,
-0.020827695727348328,
-0.04325037822127342,
-0.05339992046356201,
0.009629456326365471,
0.09852813929319382,
0.045906826853752136,
-0.026555821299552917,
-0.004499816335737705,
-0.02898496575653553,
-0.01713695377111435,
0.028687121346592903,
0.0003302761761005968,
-0.035887211561203,
-0.004794239532202482,
-0.027532361447811127,
-0.007647825870662928,
-0.003242378355935216,
0.034790102392435074,
-0.04369787126779556,
-0.04020342975854874,
-0.0023464371915906668,
0.006435262504965067,
0.030971622094511986,
-0.061751674860715866,
-0.025421932339668274,
-0.02900940179824829,
0.01529510598629713,
0.026951869949698448,
-0.04396044462919235,
0.012030157260596752,
0.007033965550363064,
0.035824988037347794,
-0.0023772355634719133,
-0.005925207864493132,
0.01392435934394598,
0.018084684386849403,
0.0497448593378067,
-0.033093616366386414,
-0.004411052912473679,
-0.057387348264455795,
0.05310997739434242,
0.015347837470471859,
-0.0349273756146431,
-0.012898162938654423,
-0.0009372353670187294,
-0.03008951246738434,
0.045260950922966,
0.003843961749225855,
0.062309395521879196,
0.006723030004650354,
-0.01197891402989626,
0.0430045947432518,
0.048124391585588455,
-0.05552157759666443,
0.013632231391966343,
-0.035332128405570984,
0.011971723288297653,
-0.022358601912856102,
0.01047939620912075,
0.010840225033462048,
-0.002067588036879897,
-0.013433749787509441,
-0.03025481477379799,
0.003830591682344675,
-0.06519097089767456,
0.006296641193330288,
0.044890500605106354,
-0.010330678895115852,
0.009883422404527664,
0.02895982563495636,
-0.005232791416347027,
0.034163422882556915,
0.022387797012925148,
0.0424557663500309,
0.016249114647507668,
-0.029934894293546677,
-0.04079080745577812,
-0.014071094803512096,
-0.03374191001057625,
0.008638855069875717,
0.07379663735628128,
-0.021709902212023735,
0.017148755490779877,
0.024803532287478447,
0.03340461105108261,
0.07799973338842392,
0.017372112721204758,
-0.02410341054201126,
0.009108122438192368,
0.08789356052875519,
0.02056182362139225,
0.03513477370142937,
0.02722311019897461,
0.004422671627253294,
0.030045287683606148,
-0.026942631229758263,
-0.03739241138100624,
0.005274015013128519,
-0.020396985113620758,
0.03649378940463066,
-0.026638420298695564,
-0.00035216263495385647,
-0.05988369137048721,
0.062191493809223175,
0.03733811527490616,
0.056640587747097015,
0.01566547155380249,
0.0014217583229765296,
0.015767566859722137,
0.03687582537531853,
-0.02550528571009636,
0.026332544162869453,
-0.02536608651280403,
-0.0033856285735964775,
0.08209113031625748,
0.05714857205748558,
0.03616940602660179,
0.023689348250627518,
-0.036011382937431335,
-0.016778472810983658,
0.006001919973641634,
-0.009305093437433243,
0.012564650736749172,
-0.003381938673555851,
-0.004911085590720177,
-0.035156648606061935,
0.01774226315319538,
-0.03007933869957924,
0.046967633068561554,
0.012122380547225475,
0.017669061198830605,
0.00398706179112196,
0.01732688769698143,
0.0033231363631784916,
0.022421592846512794,
-0.023146914318203926,
-0.06844000518321991,
-0.023579154163599014,
-0.025736307725310326,
0.02534480020403862,
0.028996916487812996,
0.0004620671970769763,
-0.03136508911848068,
-0.02631501667201519,
-0.04938247799873352,
0.022478727623820305,
0.040686849504709244,
0.004561688285320997,
-0.006724960170686245,
-0.010109886527061462,
-0.04117167741060257,
0.0033013098873198032,
0.003493626369163394,
0.03407150134444237,
0.060769155621528625,
-0.004439858719706535,
0.011562686413526535,
0.00021852023201063275,
-0.005127889569848776,
0.029345626011490822,
-0.03553276136517525,
0.004737197421491146,
-0.005619668867439032,
0.0254192017018795,
0.06498877704143524,
0.022500744089484215,
-0.031480539590120316,
-0.04478093609213829,
-0.029897933825850487,
0.03004625253379345,
-0.04755687713623047,
0.041788969188928604,
-0.011622853577136993,
0.0014062327099964023,
-0.03044191375374794,
-0.02125517465174198,
-0.0027192551642656326,
-0.00003932195249944925,
0.006640693172812462,
0.03404051437973976,
-0.044168416410684586,
-0.022782275453209877,
0.03372453898191452,
0.00039673742139711976,
-0.005731443874537945,
0.03603749722242355,
0.018086224794387817,
-0.031946972012519836,
-0.0099616888910532,
-0.018599875271320343,
-0.0011908248998224735,
-0.09444032609462738,
-0.04381408914923668,
0.021104751154780388,
-0.010916607454419136,
-0.017138265073299408,
0.0017130763735622168,
-0.04104329273104668,
0.0065050749108195305,
-0.03913401812314987,
0.00817358959466219,
0.005942054092884064,
-0.011303551495075226,
-0.001637456240132451,
0.02797381393611431,
0.027341529726982117,
0.03122814930975437,
-0.01499021053314209,
0.06863447278738022,
-0.034689079970121384,
-0.012435096316039562,
0.019217999652028084,
0.002655653515830636,
0.017792152240872383,
0.029201610013842583,
0.017339419573545456,
0.011859751306474209,
0.05624694749712944,
0.021773068234324455,
-0.013596846722066402,
0.005949666257947683,
0.030276555567979813,
0.03906887397170067,
-0.019896715879440308,
0.02902507595717907,
0.0207359716296196,
-0.029017560184001923,
0.01799735799431801,
0.03463484346866608,
-0.0020973514765501022,
0.02437700517475605,
-0.02422231249511242,
-0.05774657055735588,
-0.0008717318996787071,
-0.022593200206756592,
-0.003310991683974862,
0.012713143602013588,
0.05056034401059151,
0.029891416430473328,
0.019383417442440987,
-0.010887912474572659,
0.023245247080922127,
0.014455605298280716,
0.009369641542434692,
-0.00924051832407713,
-0.02949901483952999,
0.034833624958992004,
-0.014723102562129498,
-0.035278983414173126,
-0.018721168860793114,
0.006030903663486242,
-0.04067365825176239,
0.009834027849137783,
-0.04212057963013649,
-0.0022901687771081924,
-0.019595611840486526,
-0.011790103279054165,
-0.04165764898061752,
0.01898660697042942,
-0.01096351444721222,
0.03251691535115242,
-0.0028829295188188553,
0.03862334415316582
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | Create Wav2Vec2FeatureExtractor Speech is a continuous signal, and, to be treated by computers, it first has to be discretized, which is usually called sampling. The sampling rate hereby plays an important role since it defines how many data points of the speech signal are measured per second. Therefore, sampling with a higher sampling rate results in a better approximation of the real speech signal but also necessitates more values per second. A pretrained checkpoint expects its input data to have been sampled more or less from the same distribution as the data it was trained on. The same speech signals sampled at two different rates have a very different distribution. For example, doubling the sampling rate results in data points being twice as long. Thus, before fine-tuning a pretrained checkpoint of an ASR model, it is crucial to verify that the sampling rate of the data that was used to pretrain the model matches the sampling rate of the dataset used to fine-tune the model. XLS-R was pretrained on audio data of Babel, Multilingual LibriSpeech (MLS), Common Voice, VoxPopuli, and VoxLingua107 at a sampling rate of 16kHz. Common Voice, in its original form, has a sampling rate of 48kHz, thus we will have to downsample the fine-tuning data to 16kHz in the following. A Wav2Vec2FeatureExtractor object requires the following parameters to be instantiated: - feature_size: Speech models take a sequence of feature vectors as an input. While the length of this sequence obviously varies, the feature size should not. In the case of Wav2Vec2, the feature size is 1 because the model was trained on the raw speech signal \( {}^2 \). - sampling_rate: The sampling rate at which the model is trained on. - padding_value: For batched inference, shorter inputs need to be padded with a specific value - do_normalize: Whether the input should be zero-mean-unit-variance normalized or not. Usually, speech models perform better when normalizing the input - return_attention_mask: Whether the model should make use of an attention_mask for batched inference. In general, XLS-R models checkpoints should always use the attention_mask. python from transformers import Wav2Vec2FeatureExtractor feature_extractor = Wav2Vec2FeatureExtractor(feature_size=1, sampling_rate=16000, padding_value=0.0, do_normalize=True, return_attention_mask=True) Great, XLS-R\'s feature extraction pipeline is thereby fully defined! For improved user-friendliness, the feature extractor and tokenizer are wrapped into a single Wav2Vec2Processor class so that one only needs a model and processor object. python from transformers import Wav2Vec2Processor processor = Wav2Vec2Processor(feature_extractor=feature_extractor, tokenizer=tokenizer) Next, we can prepare the dataset. | [
0.02254614233970642,
-0.002970349509268999,
-0.03426458686590195,
0.011275094002485275,
0.060429688543081284,
0.0619434155523777,
0.04839735105633736,
-0.015496941283345222,
-0.014345998875796795,
-0.059198033064603806,
-0.05092712491750717,
0.03752909600734711,
0.006229384336620569,
-0.04367206618189812,
0.03748571127653122,
-0.03609312325716019,
0.046368420124053955,
-0.008107221685349941,
-0.0009231921285390854,
0.013231530785560608,
-0.0341261550784111,
-0.03503202646970749,
0.08501710742712021,
0.058735597878694534,
0.03273123502731323,
0.009179948829114437,
0.004703512880951166,
0.006661119405180216,
-0.009346643462777138,
-0.02275228314101696,
-0.14259479939937592,
0.07223797589540482,
-0.0166374072432518,
-0.018836356699466705,
-0.001174254692159593,
0.036671046167612076,
-0.0850762352347374,
0.04107332229614258,
-0.0049379547126591206,
-0.03744123876094818,
0.07639776915311813,
0.025074409320950508,
-0.1084759384393692,
0.029769469052553177,
-0.0362195149064064,
-0.07318335771560669,
-0.058776650577783585,
0.039392683655023575,
-0.04434950649738312,
-0.03437049314379692,
-0.04654612019658089,
0.06350088119506836,
-0.035256315022706985,
0.04020928218960762,
0.026705821976065636,
-0.03719419986009598,
-0.031554631888866425,
-0.02335026115179062,
-0.03666910156607628,
-0.015742067247629166,
0.05224224552512169,
-0.05421511083841324,
-0.02408386394381523,
0.02200305461883545,
0.005362238269299269,
0.007219122722744942,
0.007320586591959,
0.08332981914281845,
-0.04615913704037666,
-0.029891015961766243,
-0.01752673089504242,
-0.04333532229065895,
0.06831856071949005,
0.007912631146609783,
0.006836118642240763,
-0.034372489899396896,
0.014845412224531174,
-0.0022908493410795927,
0.06222037971019745,
0.07638821750879288,
0.00361491646617651,
0.05702878534793854,
0.026990510523319244,
0.021023666486144066,
-0.02180269919335842,
-0.044925857335329056,
0.08056987822055817,
-0.017744816839694977,
-0.03880351036787033,
-0.004629014525562525,
-0.09872166812419891,
-0.07911376655101776,
-0.032907288521528244,
-0.049067605286836624,
-0.025415323674678802,
0.05274501442909241,
-0.01404588669538498,
0.021412743255496025,
0.014093141071498394,
0.009568994864821434,
-0.06150609254837036,
-0.03325590118765831,
0.07767981290817261,
-0.016895122826099396,
-0.08116564899682999,
0.11268812417984009,
-0.06959166377782822,
0.032268162816762924,
-0.06553121656179428,
0.03974883630871773,
0.01511648204177618,
-0.03180155158042908,
-0.03239399939775467,
0.07062017172574997,
-0.07831761240959167,
-0.031299322843551636,
0.04617743939161301,
-0.011027086526155472,
-0.05111817270517349,
-0.020631836727261543,
-0.03207806497812271,
0.12279316782951355,
-0.01804434321820736,
-0.021933652460575104,
-0.04918136075139046,
0.0016512700822204351,
0.031204205006361008,
0.08294875174760818,
0.009203510358929634,
0.014656301587820053,
0.01461424957960844,
-0.04309754818677902,
0.05740996077656746,
0.05296259745955467,
0.01448818203061819,
-0.028253082185983658,
0.02863529697060585,
-0.0566493421792984,
0.014550095424056053,
0.023795433342456818,
0.020830189809203148,
0.018710969015955925,
-0.002412589965388179,
-0.03213467821478844,
-0.00013361533638089895,
-0.00869082473218441,
-0.07069027423858643,
-0.021241726353764534,
0.057302866131067276,
0.05259620025753975,
-0.05791723355650902,
0.09606796503067017,
-0.06195301190018654,
-0.05847664922475815,
0.00456258375197649,
-0.026259830221533775,
0.009591818787157536,
-0.054035671055316925,
-0.024363690987229347,
0.024404799565672874,
0.01033520046621561,
0.019905008375644684,
0.015049587935209274,
-0.0035804861690849066,
-0.012144826352596283,
-0.02403121255338192,
-0.014481180347502232,
0.057759251445531845,
0.03572458028793335,
0.036817871034145355,
-0.009343770332634449,
0.03749708831310272,
0.053492531180381775,
-0.020450979471206665,
0.039768338203430176,
0.06907191127538681,
-0.025778885930776596,
0.057498667389154434,
-0.0150702940300107,
-0.051471829414367676,
0.00558502646163106,
0.047929033637046814,
-0.015734903514385223,
0.027041228488087654,
0.044659096747636795,
-0.1026897057890892,
0.0859147384762764,
-0.0073112500831484795,
-0.09169259667396545,
0.052903663367033005,
0.007966200821101665,
-0.030083781108260155,
0.015149379149079323,
-0.02147558331489563,
0.032894980162382126,
-0.049353308975696564,
-0.042361170053482056,
0.10193125158548355,
0.026605958119034767,
0.015888774767518044,
0.021451730281114578,
0.01150798611342907,
0.045688699930906296,
-0.018560560420155525,
-0.00545104406774044,
-0.001191670075058937,
0.0056564477272331715,
-0.08567840605974197,
0.04198440536856651,
0.053355008363723755,
0.01853504776954651,
-0.034116171300411224,
-0.02256717160344124,
-0.053264886140823364,
-0.04079720750451088,
0.016916602849960327,
-0.054305192083120346,
0.014903897419571877,
0.054531559348106384,
-0.08473731577396393,
0.12416531890630722,
-0.057108692824840546,
0.0012397218961268663,
0.01915745437145233,
-0.0817696824669838,
-0.03734569251537323,
0.050881341099739075,
0.04836180433630943,
0.00039892876520752907,
-0.05440089479088783,
-0.06813328713178635,
-0.08958052098751068,
-0.022794552147388458,
0.025288434699177742,
-0.013997827656567097,
-0.042919546365737915,
0.025330783799290657,
0.014677898027002811,
0.005230153910815716,
0.017262347042560577,
0.03303869813680649,
-0.011228019371628761,
-0.013327369466423988,
0.048134416341781616,
-0.0530087947845459,
-0.01917613297700882,
0.04209378734230995,
-0.009049913845956326,
-0.056763194501399994,
0.05247156694531441,
-0.04468619078397751,
0.0013605962740257382,
0.04513883218169212,
-0.05815725028514862,
0.02833186835050583,
0.1494421362876892,
-0.012688065879046917,
-0.014761398546397686,
-0.046978406608104706,
-0.035214126110076904,
0.005048621445894241,
-0.0013708784244954586,
-0.0241088829934597,
-0.027807164937257767,
-0.017318861559033394,
-0.06825186312198639,
-0.008773517794907093,
0.00032640784047544,
0.0013732227962464094,
0.044862598180770874,
0.01849273033440113,
0.008350349962711334,
-0.01717940717935562,
-0.0024839225225150585,
0.031033113598823547,
0.021430103108286858,
0.005953083746135235,
-0.01579759269952774,
-0.046208105981349945,
-0.02752942591905594,
-0.02285427786409855,
-0.00010214477515546605,
0.018278704956173897,
0.015141244977712631,
0.018231503665447235,
-0.00245836959220469,
0.00436410354450345,
-0.010217501781880856,
-0.0031549534760415554,
0.052002452313899994,
-0.02397548221051693,
0.04931185767054558,
-0.013352430425584316,
0.0025780361611396074,
-0.035358261317014694,
0.03658302500844002,
-0.017702708020806313,
-0.03577050566673279,
0.011882876977324486,
-0.0002720389165915549,
-0.056355662643909454,
-0.028434449806809425,
-0.003509688889607787,
-0.0028198491781949997,
-0.03254418075084686,
-0.009320535697042942,
0.008100387640297413,
-0.002261083573102951,
-0.08099916577339172,
0.0015467200428247452,
-0.0011547226458787918,
-0.04118937626481056,
-0.03713482618331909,
-0.03349104896187782,
0.00394852040335536,
-0.004557294771075249,
-0.0367518812417984,
0.0160861574113369,
0.012222837656736374,
0.026121094822883606,
0.04334595054388046,
0.06826604157686234,
0.021630432456731796,
-0.007778903469443321,
-0.017325090244412422,
-0.014597518369555473,
0.019416116178035736,
-0.009980236180126667,
-0.010689301416277885,
-0.01135153416544199,
0.02658638171851635,
-0.00505589647218585,
0.008929152972996235,
0.040775950998067856,
0.005661412142217159,
0.011853679083287716,
0.005168601404875517,
-0.029129216447472572,
-0.01780940778553486,
-0.03301326557993889,
0.01135791465640068,
0.0011393220629543066,
0.00593918189406395,
-0.02572103589773178,
-0.0033607345540076494,
0.034080758690834045,
0.03139868378639221,
0.013008189387619495,
-0.006389376241713762,
-0.04207679629325867,
-0.01463169977068901,
-0.02436085045337677,
0.0036477074027061462,
-0.010627295821905136,
0.000605537265073508,
-0.015964049845933914,
-0.00435192184522748,
-0.01829308643937111,
-0.051465798169374466,
-0.03908191993832588,
0.01226881891489029,
0.05383124575018883,
-0.007482712622731924,
0.034783586859703064,
0.04632148891687393,
0.06011214479804039,
0.03939477354288101,
-0.033018559217453,
-0.04636001959443092,
0.024737145751714706,
0.008618994615972042,
0.0010960003128275275,
0.012424366548657417,
-0.0073233130387961864,
0.04446720704436302,
-0.03900279849767685,
-0.03750815987586975,
0.012750614434480667,
0.031325481832027435,
-0.004719006363302469,
0.039188094437122345,
0.002868878422304988,
-0.0422782264649868,
0.000158236623974517,
0.006381506100296974,
0.01712840236723423,
0.015620000660419464,
0.0012145575601607561,
-0.03892550989985466,
-0.002465740544721484,
0.01154584251344204,
-0.010104565881192684,
0.01661650650203228,
0.008690446615219116,
0.011380026116967201,
0.004658426623791456,
0.045492012053728104,
0.011270473711192608,
0.0025881356559693813,
-0.013455518521368504,
-0.01894470863044262,
-0.02809554524719715,
0.02178022265434265,
-0.03531888499855995,
0.0440497025847435,
-0.021091541275382042,
0.014537489041686058,
0.02590254694223404,
0.007223718799650669,
-0.013533931225538254,
0.0017344722291454673,
-0.009499146603047848,
0.04920182377099991,
-0.009631643071770668,
-0.05526074394583702,
-0.0006357576348818839,
-0.006937524303793907,
0.014457900077104568,
0.02479274943470955,
-0.0032535544596612453,
0.04646957665681839,
0.016079112887382507,
0.014642094261944294,
0.01007609348744154,
-0.03699829801917076,
-0.056837886571884155,
0.012966090813279152,
0.002266448922455311,
-0.015576859936118126,
0.015288119204342365,
0.03352579474449158,
-0.015068687498569489,
0.05247286334633827,
-0.0065228757448494434,
0.026020439341664314,
0.018981818109750748,
-0.05895911157131195,
-0.04799972102046013,
0.014775409363210201,
-0.0016926471143960953,
0.0005365594406612217,
0.019254058599472046,
0.008387178182601929,
-0.005470904987305403,
0.005705324932932854,
0.05328632518649101,
0.02725285105407238,
-0.002233368344604969,
0.007813571952283382,
0.003052972722798586,
0.0049609048292040825,
-0.00980814266949892,
0.009477974846959114,
0.0012759747914969921,
0.032328035682439804,
-0.04527506232261658,
-0.08020379394292831,
-0.03949044644832611,
0.028938086703419685,
0.005972713697701693,
-0.0249645859003067,
-0.008808057755231857,
0.005317945498973131,
-0.03223757445812225,
0.02553020603954792,
-0.013661520555615425,
0.03858574852347374,
0.015915168449282646,
-0.018588587641716003,
0.007378710899502039,
-0.018815215677022934,
0.02568020671606064,
0.016529792919754982,
0.028289606794714928,
-0.06051047891378403,
-0.07068666815757751,
0.05070601403713226,
0.046664707362651825,
-0.019269298762083054,
-0.0011216659331694245,
-0.004549948498606682,
-0.02461310662329197,
0.005601171404123306,
0.034136876463890076,
0.017178820446133614,
-0.035084471106529236,
0.005770951043814421,
0.01751328445971012,
0.010498742572963238,
0.010882895439863205,
0.0056281243450939655,
0.060759589076042175,
-0.031621746718883514,
0.0357692614197731,
-0.0004573409096337855,
0.04319841414690018,
0.013490542769432068,
0.01938658021390438,
-0.029262281954288483,
0.006626403424888849,
0.022343695163726807,
-0.056642189621925354,
-0.040491051971912384,
-0.022444041445851326,
-0.012872045859694481,
0.0004559947410598397,
-0.037963803857564926,
0.024912159889936447,
0.04713272675871849,
0.052404630929231644,
0.03495519235730171,
-0.016996797174215317,
-0.03064751997590065,
0.011404787190258503,
-0.024160191416740417,
-0.0030285557731986046,
-0.05014466494321823,
-0.01443806104362011,
0.005759410094469786,
0.007662591058760881,
-0.029945088550448418,
0.0015054948162287474,
-0.008245098404586315,
-0.08420192450284958,
-0.05435904115438461,
0.06678744405508041,
0.030643921345472336,
0.024653207510709763,
-0.042989347130060196,
-0.05791451409459114,
-0.05300576239824295,
0.020669952034950256,
-0.030395962297916412,
-0.06603122502565384,
-0.008124257437884808,
0.012478881515562534,
0.002718962961807847,
0.004389702808111906,
-0.02554277889430523,
-0.005019334144890308,
0.021036475896835327,
0.031685419380664825,
-0.016416890546679497,
-0.011071783490478992,
-0.05871305242180824,
0.041985660791397095,
0.050882648676633835,
0.007648644037544727,
-0.01107987854629755,
0.0025130684953182936,
0.020617758855223656,
0.0427137054502964,
-0.03637746721506119,
0.03335548937320709,
0.005084061063826084,
-0.06260263919830322,
0.022529611364006996,
-0.005548315122723579,
-0.00009338687232229859,
0.022353189066052437,
-0.018434731289744377,
0.002134218579158187,
-0.027154987677931786,
0.01077053789049387,
0.004088470712304115,
-0.029890665784478188,
0.02001313678920269,
-0.03265624865889549,
-0.0011215924751013517,
-0.07355562597513199,
0.024541839957237244,
0.02272656559944153,
-0.027858346700668335,
0.07005371153354645,
0.04157044738531113,
-0.02367137372493744,
0.030878525227308273,
0.039974529296159744,
0.04587865248322487,
-0.018635110929608345,
-0.018516503274440765,
-0.014236710965633392,
0.007297892589122057,
-0.02809215895831585,
-0.01664886064827442,
0.06671091914176941,
-0.013572105206549168,
0.05712514370679855,
0.035207077860832214,
0.01456674188375473,
0.0442778654396534,
-0.027089986950159073,
-0.0043594916351139545,
0.028164243325591087,
0.06278104335069656,
0.04830208048224449,
0.010838913731276989,
0.031562693417072296,
0.013944635167717934,
0.015072951093316078,
0.0062736333347857,
-0.009324836544692516,
-0.040412887930870056,
-0.0073646302334964275,
0.044619426131248474,
0.011016209609806538,
-0.0035754910204559565,
-0.036866482347249985,
0.04792465269565582,
0.015055014751851559,
0.049168799072504044,
0.02377856895327568,
0.036639854311943054,
0.001739649218507111,
0.05053919181227684,
0.00003580165866878815,
0.008038606494665146,
0.005072799976915121,
-0.0006380656850524247,
0.03658192232251167,
0.022803479805588722,
0.024568751454353333,
-0.0009300839155912399,
-0.019849387928843498,
0.02456960827112198,
-0.05158895254135132,
-0.019983557984232903,
0.020975632593035698,
0.027673397213220596,
0.0015106528298929334,
-0.017531905323266983,
-0.0047135245986282825,
-0.054321106523275375,
0.02230195328593254,
-0.009664889425039291,
-0.008135505020618439,
0.012251684442162514,
0.009391983039677143,
0.016068724915385246,
0.06123561039566994,
-0.004377668723464012,
-0.0960875079035759,
0.01711144670844078,
-0.0004104344407096505,
-0.0105434600263834,
0.012331719510257244,
0.0036299468483775854,
-0.028685111552476883,
-0.03948351368308067,
-0.02653328701853752,
0.0229837354272604,
0.06020082160830498,
-0.023395057767629623,
0.013929544948041439,
0.001532017719000578,
-0.014572649262845516,
-0.01825505495071411,
0.009810399264097214,
0.03681455925107002,
0.0031908645760267973,
-0.004439751151949167,
0.024444183334708214,
0.009758824482560158,
-0.03495858609676361,
0.05350431054830551,
-0.0017721581971272826,
0.007385317701846361,
0.032185424119234085,
0.02841588482260704,
0.007110243663191795,
0.07356733828783035,
0.005275070667266846,
-0.05096704512834549,
-0.001670540776103735,
-0.028811713680624962,
0.00560983968898654,
0.04932326823472977,
0.028520995751023293,
0.01197054237127304,
-0.016192825511097908,
-0.04558069258928299,
-0.009710573591291904,
-0.01763787493109703,
-0.006765346508473158,
0.006600239779800177,
-0.02062939666211605,
-0.037091564387083054,
-0.013465615920722485,
0.004301038570702076,
0.009747342206537724,
0.011740203946828842,
0.017973342910408974,
-0.02201094850897789,
0.0057047223672270775,
0.011027006432414055,
-0.0033867969177663326,
-0.06055432930588722,
-0.03133174777030945,
-0.03558703884482384,
-0.03333484008908272,
-0.016198858618736267,
0.02456158585846424,
0.004399035591632128,
0.004830473568290472,
0.007614052854478359,
-0.013967052102088928,
-0.02507101558148861,
-0.017985932528972626,
0.024120856076478958,
-0.01981334574520588,
0.018090656027197838,
0.008353840559720993,
0.005063367076218128,
0.0787387415766716,
-0.03007671609520912,
-0.014402276836335659,
-0.0025982181541621685,
0.02123616449534893,
0.011958043090999126,
0.050786107778549194,
-0.028035977855324745,
-0.0290662981569767,
-0.005239530466496944,
0.03817807883024216,
-0.04319305717945099,
-0.004580462817102671,
-0.002219635294750333,
0.012676740996539593,
-0.03361333906650543,
0.018697701394557953,
0.03722435235977173,
0.013242654502391815,
0.030988004058599472,
0.027459057047963142,
-0.017254889011383057,
-0.004730890970677137,
-0.03810490295290947,
-0.055196814239025116,
0.009846690110862255,
-0.0032552932389080524,
0.054947562515735626,
0.04514549672603607,
0.027448849752545357,
0.023132720962166786,
0.019282851368188858,
0.032784897834062576,
0.01818693056702614,
0.04944748058915138,
0.024462783709168434,
-0.06508990377187729,
0.012987107038497925,
0.05874529480934143,
-0.01223426591604948,
0.009745103307068348,
0.023480620235204697,
0.010414434596896172,
-0.010506823658943176,
0.04109921306371689,
-0.029954835772514343,
0.03239482268691063,
-0.010340052656829357,
0.03162169083952904,
-0.05780380964279175,
0.05294674262404442,
0.04580282047390938,
0.01793205365538597,
0.024904951453208923,
0.019278310239315033
] |
Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers | patrickvonplaten | November 15, 2021 | fine-tune-xlsr-wav2vec2 | guide, audio | https://huggingface.co/blog/fine-tune-xlsr-wav2vec2 | # Fine-tuning XLS-R for Multi-Lingual ASR with 🤗 Transformers New (11/2021): This blog post has been updated to feature XLSR\'s successor, called XLS-R. Wav2Vec2 is a pretrained model for Automatic Speech Recognition (ASR) and was released in September 2020 by Alexei Baevski, Michael Auli, and Alex Conneau. Soon after the superior performance of Wav2Vec2 was demonstrated on one of the most popular English datasets for ASR, called LibriSpeech, Facebook AI presented a multi-lingual version of Wav2Vec2, called XLSR. XLSR stands for cross-lingual speech representations and refers to model\'s ability to learn speech representations that are useful across multiple languages. XLSR\'s successor, simply called XLS-R (refering to the \'\'XLM-R for Speech\'\'), was released in November 2021 by Arun Babu, Changhan Wang, Andros Tjandra, et al. XLS-R used almost half a million hours of audio data in 128 languages for self-supervised pre-training and comes in sizes ranging from 300 milion up to two billion parameters. You can find the pretrained checkpoints on the 🤗 Hub: - Wav2Vec2-XLS-R-300M - Wav2Vec2-XLS-R-1B - Wav2Vec2-XLS-R-2B Similar to BERT\'s masked language modeling objective, XLS-R learns contextualized speech representations by randomly masking feature vectors before passing them to a transformer network during self-supervised pre-training (i.e. diagram on the left below). For fine-tuning, a single linear layer is added on top of the pre-trained network to train the model on labeled data of audio downstream tasks such as speech recognition, speech translation and audio classification (i.e. diagram on the right below). XLS-R shows impressive improvements over previous state-of-the-art results on both speech recognition, speech translation and speaker/language identification, cf. with Table 3-6, Table 7-10, and Table 11-12 respectively of the official paper. Setup -------------- In this blog, we will give an in-detail explanation of how XLS-R - more specifically the pre-trained checkpoint Wav2Vec2-XLS-R-300M - can be fine-tuned for ASR. For demonstration purposes, we fine-tune the model on the low resource ASR dataset of Common Voice that contains only ca. 4h of validated training data. XLS-R is fine-tuned using Connectionist Temporal Classification (CTC), which is an algorithm that is used to train neural networks for sequence-to-sequence problems, such as ASR and handwriting recognition. I highly recommend reading the well-written blog post Sequence Modeling with CTC (2017) by Awni Hannun. Before we start, let\'s install datasets and transformers. Also, we need the torchaudio to load audio files and jiwer to evaluate our fine-tuned model using the word error rate (WER) metric \( {}^1 \). python !pip install datasets==1.18.3 !pip install transformers==4.11.3 !pip install huggingface_hub==0.1 !pip install torchaudio !pip install librosa !pip install jiwer We strongly suggest to upload your training checkpoints directly to the Hugging Face Hub while training. The Hugging Face Hub has integrated version control so you can be sure that no model checkpoint is getting lost during training. To do so you have to store your authentication token from the Hugging Face website (sign up here if you haven\'t already!) python from huggingface_hub import notebook_login notebook_login() Print Output: bash Login successful Your token has been saved to /root/.huggingface/token Then you need to install Git-LFS to upload your model checkpoints: bash apt install git-lfs ------------------------------------------------------------------------ \( {}^1 \) In the paper, the model was evaluated using the phoneme error rate (PER), but by far the most common metric in ASR is the word error rate (WER). To keep this notebook as general as possible we decided to evaluate the model using WER. Prepare Data, Tokenizer, Feature Extractor ------------------------------------------ ASR models transcribe speech to text, which means that we both need a feature extractor that processes the speech signal to the model\'s input format, e.g. a feature vector, and a tokenizer that processes the model\'s output format to text. In 🤗 Transformers, the XLS-R model is thus accompanied by both a tokenizer, called Wav2Vec2CTCTokenizer, and a feature extractor, called Wav2Vec2FeatureExtractor. Let\'s start by creating the tokenizer to decode the predicted output classes to the output transcription. | [
-0.001720766886137426,
0.02576696313917637,
0.03024277277290821,
-0.013238001614809036,
-0.020244749262928963,
0.04761812835931778,
0.016240501776337624,
0.004596163984388113,
-0.07284734398126602,
-0.034027405083179474,
-0.06997537612915039,
0.09994130581617355,
0.01116339210420847,
0.026212463155388832,
0.0038484674878418446,
-0.043085042387247086,
0.007769702933728695,
0.010533757507801056,
-0.019563009962439537,
0.0034589478746056557,
-0.032498035579919815,
-0.07387970387935638,
0.05496341362595558,
0.027561798691749573,
-0.03505527973175049,
0.05009180307388306,
0.006279320921748877,
0.01601680926978588,
-0.019399356096982956,
-0.04775384068489075,
-0.05288248881697655,
0.05357647314667702,
-0.025857042521238327,
-0.005268470849841833,
-0.004371700342744589,
0.005271131172776222,
-0.052738964557647705,
0.019101809710264206,
-0.0024210335686802864,
-0.052968114614486694,
0.02308099903166294,
0.018959706649184227,
0.02146105095744133,
0.08495093882083893,
-0.0002543020236771554,
-0.0436893031001091,
-0.09545546025037766,
0.06447336822748184,
-0.012653880752623081,
0.01786542497575283,
-0.0029703013133257627,
0.023798339068889618,
0.034433331340551376,
0.018282901495695114,
0.028485925868153572,
-0.017299551516771317,
-0.01251181773841381,
-0.04452148824930191,
-0.05874583497643471,
0.010691095143556595,
0.028385968878865242,
0.005580066237598658,
-0.0769837349653244,
0.021872524172067642,
0.025702839717268944,
-0.013138201087713242,
0.005960092414170504,
0.028149450197815895,
-0.04208890348672867,
-0.033696431666612625,
-0.034860726445913315,
0.007218809332698584,
0.00858220923691988,
-0.01855636201798916,
0.036989837884902954,
-0.05368518456816673,
-0.051322124898433685,
-0.00998089648783207,
-0.02713623270392418,
-0.02305997535586357,
-0.028188560158014297,
0.06126528978347778,
0.029302407056093216,
-0.014271283522248268,
-0.01589183323085308,
-0.010315096005797386,
0.10700058937072754,
0.00001931242695718538,
-0.054944876581430435,
-0.05539645627140999,
-0.04128760099411011,
-0.10645507276058197,
-0.049678318202495575,
-0.03131784871220589,
0.05753185600042343,
-0.02794334851205349,
-0.04059889540076256,
0.04367855563759804,
0.030366677790880203,
-0.024976743385195732,
-0.027867626398801804,
-0.019056668505072594,
0.12171930819749832,
-0.051957376301288605,
-0.06948966532945633,
0.09893243759870529,
-0.051514141261577606,
0.002791354898363352,
-0.040091171860694885,
-0.0000020638833575503668,
0.09912130236625671,
-0.028351441025733948,
-0.02545962482690811,
0.08460242301225662,
-0.04802674055099487,
-0.015316957607865334,
0.057530466467142105,
-0.02472495846450329,
0.00043308347812853754,
0.011864813975989819,
-0.04624949395656586,
0.09871742129325867,
-0.013604465872049332,
0.012127989903092384,
0.010074875317513943,
0.008059625513851643,
-0.004921203013509512,
0.024924354627728462,
0.03009338304400444,
-0.02844574674963951,
0.026466935873031616,
-0.037039853632450104,
0.10309090465307236,
0.06582362949848175,
0.04985857009887695,
-0.04291785880923271,
-0.007999948225915432,
-0.017301147803664207,
0.03643199801445007,
-0.014364616945385933,
-0.021313020959496498,
0.040530551224946976,
-0.0038299758452922106,
-0.012054658494889736,
0.08827531337738037,
0.01913326047360897,
-0.07691173255443573,
0.0093274200335145,
0.02834079973399639,
0.0007357459398917854,
-0.05111802741885185,
0.07496482878923416,
-0.0760955736041069,
-0.11566808074712753,
0.04760465770959854,
0.0722946748137474,
0.03466515243053436,
-0.09849250316619873,
-0.079584501683712,
0.04260580241680145,
-0.026725254952907562,
0.05901884660124779,
-0.04598691686987877,
0.035714104771614075,
-0.05530783161520958,
-0.044918742030858994,
-0.01459620613604784,
0.04877713695168495,
0.03425450623035431,
0.03392799198627472,
0.03274175897240639,
0.019735317677259445,
0.07052812725305557,
0.022039704024791718,
-0.04136965423822403,
0.024690233170986176,
0.005660672206431627,
0.06585373729467392,
-0.01940019242465496,
0.028944149613380432,
0.013155101798474789,
0.06438587605953217,
-0.011702204123139381,
0.03438051789999008,
0.02019527554512024,
0.0038468551356345415,
0.11398813128471375,
-0.02519715018570423,
0.006035818252712488,
0.06598486751317978,
-0.017907103523612022,
-0.04998756945133209,
0.03777974843978882,
-0.025559602305293083,
-0.014854922890663147,
-0.044618960469961166,
-0.01869405061006546,
0.11442358791828156,
0.023749658837914467,
-0.05369183048605919,
0.05069509148597717,
0.014991994015872478,
0.0055961813777685165,
0.009628641419112682,
0.035791266709566116,
-0.015574291348457336,
0.050829000771045685,
-0.07798446714878082,
0.012720747850835323,
0.016641315072774887,
0.068207748234272,
-0.003121558576822281,
0.0030667479149997234,
-0.031851548701524734,
-0.01235419511795044,
-0.04045410826802254,
-0.020281072705984116,
0.05083940550684929,
0.02491914853453636,
-0.06991930305957794,
0.15285952389240265,
-0.053294841200113297,
-0.03541263937950134,
0.036694541573524475,
-0.03438444808125496,
0.009973429143428802,
0.07985980808734894,
0.026223065331578255,
-0.048823047429323196,
-0.03793787583708763,
-0.03105306252837181,
-0.08480937778949738,
-0.007886001840233803,
-0.045787546783685684,
0.005723975598812103,
-0.03631589561700821,
0.0049897232092916965,
-0.010221662931144238,
-0.011195736937224865,
0.04297420009970665,
0.017503904178738594,
0.05997830629348755,
-0.031841471791267395,
0.028161484748125076,
-0.04207337275147438,
-0.02664126083254814,
0.03327086195349693,
0.012609466910362244,
0.012031711637973785,
0.0420641265809536,
-0.08111359924077988,
0.03660589084029198,
0.010019147768616676,
-0.04319838061928749,
0.002820898313075304,
0.12481220066547394,
-0.004284569527953863,
-0.024454711005091667,
-0.0034141256473958492,
0.025423994287848473,
-0.013011493720114231,
-0.016741640865802765,
-0.025809284299612045,
-0.024591706693172455,
0.016033800318837166,
-0.0470581091940403,
0.028809279203414917,
0.053659696131944656,
0.03392713889479637,
0.003911207430064678,
0.009276330471038818,
-0.018257994204759598,
-0.009277170524001122,
0.026963673532009125,
0.03701569885015488,
0.04993439093232155,
0.025580095127224922,
-0.012655428610742092,
-0.04808889329433441,
-0.00688273087143898,
0.0025858301669359207,
0.0033211344853043556,
0.06281816959381104,
-0.019309788942337036,
-0.008746547624468803,
-0.011033098213374615,
0.009374765679240227,
0.0023349483963102102,
0.031357504427433014,
0.003046169877052307,
-0.011274494230747223,
0.020502272993326187,
-0.0035627963952720165,
0.007782049011439085,
-0.012550639919936657,
-0.005103007890284061,
0.010229690931737423,
-0.04013974592089653,
0.02782556787133217,
0.007848788984119892,
-0.05917593464255333,
-0.002269493415951729,
0.0016640668036416173,
0.008093146607279778,
0.004024883732199669,
-0.010481546632945538,
-0.027087034657597542,
-0.012674753554165363,
-0.07203181087970734,
-0.013998136855661869,
-0.00573365343734622,
-0.034430183470249176,
-0.030380863696336746,
-0.007420151028782129,
0.018937956541776657,
-0.04038460552692413,
-0.004657191224396229,
0.026912037283182144,
0.019106484949588776,
0.01879025250673294,
0.04184284433722496,
-0.009241409599781036,
-0.01010407879948616,
0.0287436842918396,
-0.028170298784971237,
-0.033183299005031586,
0.03645893186330795,
0.018091510981321335,
-0.0020711866673082113,
0.013620556332170963,
-0.010650554671883583,
0.02560655027627945,
0.004209285136312246,
0.016065193340182304,
0.008990073576569557,
-0.03127193823456764,
0.0001242007565451786,
-0.02305714227259159,
-0.02963406778872013,
-0.026435881853103638,
-0.005585851613432169,
0.008725741878151894,
-0.016626007854938507,
-0.024940084666013718,
0.01344278920441866,
0.034010130912065506,
0.028593216091394424,
0.005612261593341827,
0.027228550985455513,
-0.03040933795273304,
0.023030757904052734,
0.014985180459916592,
0.01769457571208477,
-0.014050411060452461,
0.011163954623043537,
-0.06684479117393494,
-0.019365457817912102,
-0.020154809579253197,
-0.008728284388780594,
-0.022838424891233444,
-0.017131350934505463,
0.05863777920603752,
0.012171415612101555,
0.013520157895982265,
0.015509901568293571,
0.03346310183405876,
0.025585567578673363,
-0.03912176936864853,
-0.012904946692287922,
0.006439988501369953,
0.0006465140613727272,
0.017981531098484993,
-0.023916250094771385,
-0.011942554265260696,
0.03129268065094948,
-0.03321141377091408,
-0.05168503522872925,
0.042997125536203384,
0.022240551188588142,
0.026238154619932175,
0.033661387860774994,
-0.004898387473076582,
-0.03597769886255264,
-0.0025066800881177187,
-0.020448071882128716,
0.00957663357257843,
0.0077237398363649845,
0.004504880867898464,
-0.061110589653253555,
-0.03093625418841839,
0.0049743358977139,
-0.027195656672120094,
0.0154567277058959,
0.003810818074271083,
0.03006010502576828,
-0.019299952313303947,
0.045338984578847885,
0.00207080808468163,
0.001962890150025487,
0.023602783679962158,
-0.020597172901034355,
-0.007347240578383207,
0.02087109349668026,
-0.03506557270884514,
-0.021960070356726646,
-0.00968142133206129,
-0.015871316194534302,
-0.013886671513319016,
-0.0036661929916590452,
-0.06757087260484695,
-0.016335293650627136,
0.006744840182363987,
0.050465136766433716,
0.024279853329062462,
0.011882418766617775,
-0.019222442060709,
-0.0227546114474535,
0.029651250690221786,
-0.01123133022338152,
0.013727731071412563,
0.04295673966407776,
0.03823370859026909,
0.005907327868044376,
-0.010014425031840801,
-0.013660783879458904,
-0.031074542552232742,
-0.02154788002371788,
0.003803711384534836,
0.007582754362374544,
-0.011547706089913845,
0.051624152809381485,
0.023039361461997032,
0.0706992819905281,
-0.020891189575195312,
0.02266441099345684,
-0.02960391342639923,
-0.04046643152832985,
-0.059531331062316895,
-0.01385401003062725,
-0.021124716848134995,
0.046030402183532715,
-0.0015352818882092834,
-0.014141010120511055,
0.017911311239004135,
-0.01149703562259674,
0.047033052891492844,
-0.011547638103365898,
-0.025688473135232925,
-0.059800710529088974,
0.0037836506962776184,
0.005313700530678034,
-0.007675972301512957,
0.03579186275601387,
0.0014014806365594268,
0.01833408884704113,
-0.06776369363069534,
-0.03784211724996567,
0.03353753313422203,
0.048692524433135986,
0.029404757544398308,
-0.0037596195470541716,
-0.026002349331974983,
0.007173458114266396,
-0.027128668501973152,
0.018480418249964714,
0.055828195065259933,
0.024183686822652817,
0.06426526606082916,
0.020604118704795837,
0.0024560214951634407,
-0.04235687851905823,
0.05478014796972275,
0.04316825792193413,
0.012942207977175713,
-0.029038729146122932,
-0.042468734085559845,
-0.0025346085894852877,
0.02795291878283024,
-0.0352272093296051,
0.013677564449608326,
0.022356826812028885,
-0.011220147833228111,
-0.04269562289118767,
0.005600159987807274,
0.0036086540203541517,
-0.034407489001750946,
0.01619773730635643,
0.006480112671852112,
-0.021980198100209236,
0.002878359751775861,
-0.034138940274715424,
0.05209068953990936,
-0.021593565121293068,
0.011800362728536129,
0.03295224532485008,
0.023494422435760498,
0.03537771850824356,
-0.01819654367864132,
0.00608024699613452,
-0.02580210752785206,
-0.0029725218191742897,
0.0004153441695962101,
-0.024601496756076813,
-0.043757855892181396,
0.01305308099836111,
-0.003681395435705781,
-0.036288145929574966,
0.014681424014270306,
0.007920806296169758,
0.06144849583506584,
0.030277905985713005,
-0.03534155339002609,
-0.03330177813768387,
-0.034101735800504684,
-0.04284441098570824,
-0.028778014704585075,
-0.047992315143346786,
-0.007970157079398632,
0.0007550938171334565,
-0.02936791069805622,
0.009742782451212406,
0.003615807741880417,
0.020449364557862282,
-0.08299588412046432,
-0.00910147838294506,
0.04417363554239273,
0.02460932545363903,
-0.00009687346027931198,
0.024209139868617058,
-0.05266696214675903,
0.0008775491151027381,
0.011796470731496811,
-0.00855825375765562,
-0.09023065119981766,
-0.01621827855706215,
-0.01608843170106411,
0.0018339050002396107,
-0.003026440739631653,
-0.007931933738291264,
-0.037314191460609436,
0.017770282924175262,
0.041878655552864075,
-0.016987795010209084,
-0.030960507690906525,
-0.0647929236292839,
0.023712826892733574,
0.029076341539621353,
0.0021645398810505867,
0.0005448597366921604,
0.020819837227463722,
-0.023355664685368538,
0.02491556666791439,
-0.032014209777116776,
0.057355765253305435,
-0.011549198068678379,
-0.005034534726291895,
0.05537134408950806,
0.018874840810894966,
-0.002113236580044031,
0.013471444137394428,
-0.018355784937739372,
0.002251255325973034,
-0.009187063202261925,
0.060854729264974594,
0.00728933559730649,
0.0075051309540867805,
0.011767944321036339,
-0.03564323112368584,
-0.03375563025474548,
-0.0920201763510704,
0.012034662999212742,
0.03699370101094246,
-0.014426528476178646,
-0.010379418730735779,
0.07836633920669556,
-0.0547848716378212,
-0.02310006506741047,
0.09001269936561584,
0.02235848270356655,
-0.026865970343351364,
-0.01732017658650875,
-0.03018270805478096,
0.010907438583672047,
-0.035934414714574814,
-0.027328098192811012,
0.046537745743989944,
-0.006838792469352484,
0.04416706785559654,
0.026345379650592804,
-0.010781441815197468,
0.04642534628510475,
-0.01455315388739109,
0.0018828363390639424,
0.06801369786262512,
0.03951356187462807,
-0.01191930752247572,
0.032213859260082245,
0.034814316779375076,
0.010279416106641293,
-0.009966548532247543,
-0.0021367911249399185,
-0.018365157768130302,
-0.01863354630768299,
0.009141778573393822,
0.04100976884365082,
0.012849999591708183,
-0.018537228927016258,
-0.023460909724235535,
0.022273492068052292,
0.04555443301796913,
0.0692543014883995,
-0.011340088210999966,
0.06021802872419357,
0.0004564689297694713,
0.032855648547410965,
0.00014118105173110962,
-0.014568774960935116,
-0.026722878217697144,
0.031227676197886467,
-0.005311795976012945,
0.028883108869194984,
0.02305077761411667,
-0.01598465070128441,
-0.008599460124969482,
-0.0025325799360871315,
-0.0291476808488369,
-0.013087616302073002,
0.017413098365068436,
-0.030524088069796562,
0.0063103544525802135,
-0.02832929790019989,
-0.016190653666853905,
-0.04038368538022041,
0.012291310355067253,
0.020808229222893715,
-0.025469524785876274,
-0.01680256985127926,
0.0009136468288488686,
0.0314304493367672,
0.03974376246333122,
-0.0004911681171506643,
-0.10154153406620026,
-0.051095832139253616,
-0.03848278522491455,
0.00794020015746355,
0.04925401508808136,
0.007986900396645069,
-0.028649993240833282,
-0.05696522817015648,
-0.016811488196253777,
-0.005842386744916439,
0.044590551406145096,
0.013137541711330414,
0.008677072823047638,
-0.03042255900800228,
-0.002141818404197693,
-0.017769649624824524,
0.016965478658676147,
0.03845914080739021,
0.0000832142322906293,
-0.03226171433925629,
0.013317541219294071,
-0.03431972861289978,
-0.0339086577296257,
0.012235091999173164,
-0.015533456578850746,
0.08180572092533112,
0.002479297574609518,
-0.006527302321046591,
0.04390045255422592,
0.07486516982316971,
-0.00010327146446797997,
-0.038149140775203705,
-0.02476637065410614,
0.015814246609807014,
0.011461871676146984,
-0.004582872614264488,
0.03097701072692871,
-0.00027353313635103405,
-0.025069722905755043,
-0.061590950936079025,
0.02136560156941414,
-0.02760765142738819,
-0.02556716464459896,
0.0017849900759756565,
-0.01808515004813671,
-0.033734310418367386,
0.014386671595275402,
0.017301946878433228,
0.019751759245991707,
0.029386036098003387,
-0.010161280632019043,
-0.04945634305477142,
0.02854415774345398,
-0.013535215519368649,
-0.015080722980201244,
0.0010720754507929087,
-0.04892454668879509,
-0.024356620386242867,
-0.05702636390924454,
-0.01274595595896244,
0.03500436246395111,
-0.02461070381104946,
-0.006002926267683506,
-0.030383843928575516,
-0.008821049705147743,
-0.013174017891287804,
-0.03604655712842941,
-0.004412977956235409,
0.005484241992235184,
0.026018520817160606,
-0.01799357309937477,
0.01309619564563036,
0.007253886666148901,
-0.023836959153413773,
0.0022132634185254574,
-0.01925499737262726,
-0.02468344196677208,
0.03448415920138359,
0.009141741320490837,
0.010714154690504074,
-0.013214829377830029,
-0.013047662563621998,
0.039829742163419724,
-0.0469554178416729,
-0.023384254425764084,
0.0012001292780041695,
0.05944804474711418,
-0.05698005110025406,
0.06192447617650032,
0.025941720232367516,
0.0006363262655213475,
0.02233147993683815,
0.07355877757072449,
-0.04158132150769234,
0.009220107458531857,
-0.0748336985707283,
-0.033690713346004486,
0.01046160887926817,
0.04667673259973526,
0.019543156027793884,
0.039005037397146225,
0.004804137162864208,
0.0325242318212986,
0.006218481343239546,
-0.007815679535269737,
0.023616261780261993,
-0.007450005039572716,
0.028101671487092972,
-0.03326502442359924,
0.05187858268618584,
0.0055457609705626965,
-0.00480995187535882,
-0.0063389078713953495,
0.07945357263088226,
0.023457961156964302,
0.011622000485658646,
0.010759073309600353,
-0.022808900102972984,
0.006011114921420813,
-0.007693244144320488,
0.02913817949593067,
0.02081139199435711,
0.058224231004714966,
0.0002328473055968061,
0.056007180362939835,
-0.00698542594909668,
-0.0007138502551242709
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Setting up a distributed job with oneCCL Three steps are required to run a distributed training job: * List the nodes of the training cluster, * Define environment variables, * Modify the training script. Listing the nodes of the training cluster On the master instance, in transformers/examples/pytorch/text-classification, we create a text file named hostfile. This file stores the names of the nodes in the cluster (IP addresses would work too). The first line should point to the master instance. Here's my file: ip-172-31-28-17.ec2.internal ip-172-31-30-87.ec2.internal ip-172-31-29-11.ec2.internal ip-172-31-20-77.ec2.internal Defining environment variables Next, we need to set some environment variables on the master node, most notably its IP address. You can find more information on oneCCL variables in the documentation. for nic in eth0 eib0 hib0 enp94s0f0; do master_addr=$(ifconfig $nic 2>/dev/null | grep netmask | awk '{print $2}'| cut -f2 -d:) if [ "$master_addr" ]; then break fi done export MASTER_ADDR=$master_addr source /home/ec2-user/anaconda3/envs/transformer/lib/python3.7/site-packages/torch_ccl-1.3.0+43f48a1-py3.7-linux-x86_64.egg/torch_ccl/env/setvars.sh export LD_LIBRARY_PATH=/home/ec2-user/anaconda3/envs/transformer/lib/python3.7/site-packages/torch_ccl-1.3.0+43f48a1-py3.7-linux-x86_64.egg/:$LD_LIBRARY_PATH export LD_PRELOAD="${CONDA_PREFIX}/lib/libtcmalloc.so:${CONDA_PREFIX}/lib/libiomp5.so" export CCL_WORKER_COUNT=4 export CCL_WORKER_AFFINITY="0,1,2,3,32,33,34,35" export CCL_ATL_TRANSPORT=ofi export ATL_PROGRESS_MODE=0 Modifying the training script The following changes have already been applied to our training script (run_glue.py) in order to enable distributed training. You would need to apply similar changes when using your own training code. * Import the torch_cclpackage. * Receive the address of the master node and the local rank of the node in the cluster. +import torch_ccl + import datasets import numpy as np from datasets import load_dataset, load_metric @@ -47,7 +49,7 @@ from transformers.utils.versions import require_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.13.0.dev0") +# check_min_version("4.13.0.dev0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/text-classification/requirements.txt") @@ -191,6 +193,17 @@ def main(): # or by passing the --help flag to this script. # We now keep distinct sets of args, for a cleaner separation of concerns. + # add local rank for cpu-dist + sys.argv.append("--local_rank") + sys.argv.append(str(os.environ.get("PMI_RANK", -1))) + + # ccl specific environment variables + if "ccl" in sys.argv: + os.environ["MASTER_ADDR"] = os.environ.get("MASTER_ADDR", "127.0.0.1") + os.environ["MASTER_PORT"] = "29500" + os.environ["RANK"] = str(os.environ.get("PMI_RANK", -1)) + os.environ["WORLD_SIZE"] = str(os.environ.get("PMI_SIZE", -1)) + parser = HfArgumentParser((ModelArguments, DataTrainingArguments, TrainingArguments)) if len(sys.argv) == 2 and sys.argv[1].endswith(".json"): Setup is now complete. Let's scale our training job to 2 nodes and 4 nodes. | [
0.05900680646300316,
-0.001465531182475388,
-0.030486421659588814,
0.05280773341655731,
0.09961310774087906,
0.012318774126470089,
-0.03383173421025276,
0.06012490391731262,
-0.026261141523718834,
-0.04968605935573578,
-0.10284029692411423,
0.054910510778427124,
-0.000406750594265759,
0.08303535729646683,
0.02668377012014389,
0.012388750910758972,
0.028698565438389778,
0.014234776608645916,
-0.08817929774522781,
-0.00795638095587492,
0.02920343540608883,
0.004236102569848299,
0.020636091008782387,
0.09609945118427277,
-0.04411869868636131,
-0.03062797710299492,
0.010758337564766407,
0.0472470261156559,
-0.017029723152518272,
0.013761637732386589,
-0.048314616084098816,
0.05563307926058769,
0.055330757051706314,
0.010972428135573864,
-0.016170790418982506,
0.07188224047422409,
-0.07101602107286453,
-0.000817544583696872,
0.03288409486413002,
-0.06510449200868607,
0.0032821004278957844,
0.010451220907270908,
-0.06880534440279007,
0.04003388434648514,
-0.0038670410867780447,
0.007795286830514669,
-0.10214646905660629,
0.03687601163983345,
0.010339747183024883,
-0.0306237805634737,
-0.11130350083112717,
-0.016946829855442047,
0.021426422521471977,
-0.04045254364609718,
0.0054749310947954655,
0.09510159492492676,
0.011442195624113083,
-0.06924867630004883,
0.029513303190469742,
-0.017821675166487694,
0.011184091679751873,
-0.0008341374341398478,
-0.03737112879753113,
0.09969084709882736,
0.004044272471219301,
-0.003883208381012082,
0.023569820448756218,
-0.026550358161330223,
-0.023151744157075882,
-0.028365984559059143,
-0.0006319808308035135,
0.04463097080588341,
0.011441548354923725,
0.0009587955428287387,
0.00038628227775916457,
-0.02267252840101719,
0.01942008174955845,
-0.04069950431585312,
0.02453276515007019,
0.10774112492799759,
-0.026701224967837334,
0.05627666786313057,
-0.05954728648066521,
0.0001271587098017335,
0.06077926233410835,
-0.05416206642985344,
-0.026433464139699936,
-0.019582200795412064,
-0.03407764434814453,
0.03273380547761917,
-0.03385720029473305,
-0.0025368325877934694,
-0.038650091737508774,
0.07090310007333755,
0.015691975131630898,
-0.016506953164935112,
0.007009217049926519,
-0.01756933331489563,
-0.040284544229507446,
-0.060472920536994934,
0.03915194794535637,
-0.04213399812579155,
0.007073921617120504,
0.007018719799816608,
-0.08494057506322861,
0.09991961717605591,
0.02729942463338375,
-0.06410201638936996,
-0.04068470001220703,
0.02565673552453518,
0.0008872263133525848,
-0.0530165396630764,
-0.03853786364197731,
0.04340112581849098,
-0.05435716360807419,
-0.038876015692949295,
0.004871735814958811,
-0.043784089386463165,
0.030968619510531425,
-0.02759108506143093,
-0.07531293481588364,
0.1401364505290985,
-0.0015960322925820947,
0.028530068695545197,
-0.06605298817157745,
0.025943662971258163,
-0.07034998387098312,
-0.03199175372719765,
0.0009506781352683902,
-0.01719830371439457,
0.06318305432796478,
-0.021316293627023697,
0.06031566858291626,
-0.018326373770833015,
-0.005019203294068575,
-0.0665547177195549,
-0.028073014691472054,
0.02881295420229435,
0.04265851154923439,
0.02252962440252304,
-0.045790769159793854,
0.05216440558433533,
0.018323997035622597,
0.06123994290828705,
-0.026046819984912872,
0.034263841807842255,
-0.016052767634391785,
0.030264202505350113,
0.012116460129618645,
0.06595703959465027,
-0.07049889117479324,
0.03252949193120003,
-0.0012808141764253378,
-0.06500586867332458,
0.02914171852171421,
0.08155661076307297,
-0.05175019055604935,
-0.022103549912571907,
-0.12261803448200226,
0.01542749535292387,
-0.03119395673274994,
0.006412232294678688,
-0.05286279320716858,
0.008825109340250492,
-0.06168711557984352,
-0.019233735278248787,
0.01986704021692276,
-0.03301788866519928,
0.04113642871379852,
0.004279059357941151,
-0.014352107420563698,
0.025420956313610077,
-0.03799588978290558,
0.03217414394021034,
0.011463742703199387,
-0.04016120731830597,
-0.0027723570819944143,
0.05540260672569275,
0.02960910089313984,
0.013480158522725105,
-0.03558788076043129,
0.027904026210308075,
-0.06862825900316238,
0.058243848383426666,
-0.02082417905330658,
-0.0759647935628891,
-0.04090343415737152,
-0.07130055129528046,
0.03550198674201965,
0.09139416366815567,
-0.018664393573999405,
0.019423356279730797,
0.016246486455202103,
-0.022183706983923912,
0.0355575829744339,
-0.03553328663110733,
-0.04559314250946045,
0.03237958624958992,
-0.0012207390973344445,
0.05318153277039528,
0.031425442546606064,
-0.013105081394314766,
0.0446493998169899,
-0.008482079952955246,
-0.02374633029103279,
0.06415782123804092,
-0.02278875932097435,
-0.08329425752162933,
0.0861089676618576,
-0.0007767794304527342,
-0.027950549498200417,
-0.06289218366146088,
-0.008005431853234768,
-0.001732340664602816,
0.01286074984818697,
-0.010665986686944962,
-0.017504096031188965,
0.06618195027112961,
0.07865472882986069,
0.019473807886242867,
0.14690843224525452,
-0.033332522958517075,
0.047048624604940414,
0.035864099860191345,
-0.032419078052043915,
0.021022073924541473,
0.06640949845314026,
0.06063845753669739,
0.0743919238448143,
-0.04674214497208595,
-0.03702690452337265,
-0.04967621713876724,
-0.03559144586324692,
0.09766890853643417,
-0.01766251027584076,
-0.0339612178504467,
-0.01869145967066288,
-0.026229675859212875,
-0.02433045208454132,
-0.005276205018162727,
0.003029943909496069,
0.029613958671689034,
-0.04362550750374794,
0.02676345594227314,
-0.006303777918219566,
0.044888921082019806,
0.059158723801374435,
-0.011870856396853924,
0.008601246401667595,
0.048528365790843964,
-0.004954800475388765,
0.019880294799804688,
0.008765578269958496,
-0.09063491970300674,
0.10414836555719376,
-0.04544266313314438,
0.01686936430633068,
-0.04670480266213417,
0.003713300684466958,
0.0011384858516976237,
0.004860055632889271,
0.025184113532304764,
-0.05498120188713074,
-0.03383508697152138,
-0.02623123489320278,
-0.046529754996299744,
0.04112793505191803,
-0.020912878215312958,
-0.034161750227212906,
-0.02446672134101391,
0.04680686444044113,
-0.0016984479734674096,
0.015247032046318054,
-0.02079908177256584,
-0.021240992471575737,
0.02394208498299122,
0.018306441605091095,
-0.0031178579665720463,
-0.010319655761122704,
-0.03895881772041321,
-0.010165692307054996,
-0.07688028365373611,
-0.040020231157541275,
0.0420769639313221,
-0.011565577238798141,
0.0217144675552845,
-0.04222165048122406,
-0.03315607085824013,
-0.015478231944143772,
0.005035277456045151,
-0.024269867688417435,
0.05155356228351593,
0.06238193437457085,
0.04059125855565071,
-0.0322074331343174,
0.010758854448795319,
-0.05169022083282471,
-0.006325541064143181,
-0.02015441097319126,
-0.016255367547273636,
-0.004185309633612633,
0.02400360070168972,
-0.016507767140865326,
-0.027016032487154007,
-0.05218381807208061,
-0.011541826650500298,
0.023784346878528595,
0.014998558908700943,
-0.07633062452077866,
0.03522522747516632,
0.020777251571416855,
0.04890742152929306,
0.020153416320681572,
-0.03302339091897011,
0.04721135273575783,
-0.026683848351240158,
0.041414838284254074,
0.01835215836763382,
-0.018837478011846542,
-0.015050641261041164,
-0.007900010794401169,
-0.009512090124189854,
0.023762257769703865,
0.02249159850180149,
0.0012205633101984859,
-0.032196301966905594,
-0.007565118372440338,
0.0034007509239017963,
-0.03310973197221756,
0.017439337447285652,
0.00584494648501277,
0.003222384490072727,
-0.016419345512986183,
0.03439405933022499,
-0.0019120294600725174,
0.07272427529096603,
0.038693759590387344,
-0.04163135960698128,
-0.047769464552402496,
-0.0074550132267177105,
-0.014139988459646702,
-0.0019153840839862823,
-0.016442717984318733,
-0.01890534535050392,
0.025420868769288063,
0.011117973364889622,
-0.004971776623278856,
0.02987571433186531,
-0.04514196887612343,
-0.013012305833399296,
0.02759924717247486,
-0.039793435484170914,
0.02768666297197342,
0.020478829741477966,
-0.027757221832871437,
-0.018200939521193504,
-0.00048050654004327953,
-0.02020598016679287,
0.01817777007818222,
-0.038526587188243866,
0.023512884974479675,
-0.01658000983297825,
-0.007127763703465462,
-0.009075202979147434,
-0.03274932876229286,
0.04296763241291046,
0.009470315650105476,
-0.009614968672394753,
-0.03922047093510628,
-0.004340082406997681,
-0.020979149267077446,
-0.043931540101766586,
0.007870810106396675,
0.04960130900144577,
0.047607507556676865,
0.0140394177287817,
-0.02518799528479576,
0.021302439272403717,
0.009728039614856243,
0.004165390506386757,
-0.012753053568303585,
-0.0046313125640153885,
-0.01970016397535801,
0.005225403234362602,
-0.05251076817512512,
-0.022339949384331703,
0.03200269117951393,
0.01771385781466961,
-0.007737576030194759,
-0.019340679049491882,
-0.018807394430041313,
-0.08199285715818405,
0.0038520009256899357,
0.02084486559033394,
0.0019010837422683835,
-0.04706404358148575,
0.030660418793559074,
-0.016038520261645317,
-0.012089092284440994,
-0.016786763444542885,
0.022106636315584183,
0.007816662080585957,
-0.015121890231966972,
-0.02175089716911316,
-0.009585137479007244,
0.005420007277280092,
-0.007603159174323082,
0.004905194975435734,
0.008183605968952179,
-0.045982055366039276,
0.02037108689546585,
0.031511321663856506,
-0.011149469763040543,
-0.010537306778132915,
-0.010073249228298664,
0.012722658924758434,
-0.03583631291985512,
-0.007957931607961655,
-0.02068992704153061,
-0.003509140107780695,
0.02138645201921463,
-0.02026434615254402,
-0.011031515896320343,
0.031083514913916588,
-0.01408975850790739,
0.008093222044408321,
0.013965196907520294,
0.029321257025003433,
-0.03336271271109581,
0.043258603662252426,
0.03821033611893654,
-0.017777614295482635,
-0.004416383802890778,
-0.003961524460464716,
0.06423192471265793,
0.010312125086784363,
0.03203040733933449,
-0.06286199390888214,
-0.020838690921664238,
-0.003155528102070093,
0.030556941404938698,
0.00986449047923088,
-0.05449260026216507,
-0.015387026593089104,
0.006661918014287949,
-0.0004681154969148338,
0.03771432116627693,
0.006257610395550728,
-0.044061366468667984,
0.03115191124379635,
0.013711508363485336,
-0.027745069935917854,
0.012909195385873318,
0.0010287766344845295,
-0.0369405560195446,
-0.010329005308449268,
-0.027904488146305084,
-0.020640399307012558,
0.01722089760005474,
0.0024678173940628767,
-0.006761734839528799,
0.08248559385538101,
0.028732966631650925,
0.015426833182573318,
0.01716180332005024,
0.04152974113821983,
0.04215297847986221,
0.026865843683481216,
-0.044665075838565826,
-0.023637518286705017,
-0.021970687434077263,
0.016080981120467186,
0.01746213622391224,
-0.0029473453760147095,
-0.013331773690879345,
-0.06501827389001846,
-0.016064412891864777,
0.014567005448043346,
-0.060069601982831955,
0.032851506024599075,
-0.01561267301440239,
-0.03687082976102829,
0.027811327949166298,
0.030321791768074036,
0.022374261170625687,
0.010369335301220417,
0.019823266193270683,
0.003730831202119589,
-0.019596101716160774,
-0.00529349222779274,
-0.020665841177105904,
-0.040271200239658356,
-0.04138626530766487,
0.014647336676716805,
0.014555693604052067,
-0.03406589478254318,
0.02277631126344204,
0.03384655714035034,
0.0004776537243742496,
0.0013183389091864228,
0.04827683046460152,
0.004828381352126598,
0.01850258558988571,
0.02191898785531521,
0.0032909181900322437,
0.04466169327497482,
-0.04046541079878807,
-0.001546030631288886,
0.0020374185405671597,
0.06160713732242584,
-0.030039634555578232,
-0.025049105286598206,
0.03845291584730148,
-0.013677562586963177,
-0.02779289148747921,
0.012928582727909088,
-0.04324529692530632,
-0.01565917581319809,
-0.025320926681160927,
0.01219963002949953,
0.00811754446476698,
0.01762661710381508,
0.007973427884280682,
-0.04436498507857323,
-0.008303526788949966,
0.02086571604013443,
0.013918569311499596,
0.0015434881206601858,
-0.04497044160962105,
0.010994461365044117,
0.04262537881731987,
0.03287886455655098,
-0.0068943011574447155,
-0.012627541087567806,
-0.001155575388111174,
0.018883658573031425,
0.018224483355879784,
0.02332942932844162,
-0.014788149856030941,
0.021381691098213196,
0.0038111507892608643,
0.026663905009627342,
0.01849750056862831,
-0.02013380266726017,
-0.019244708120822906,
0.011276686564087868,
-0.01383530255407095,
-0.06080777943134308,
-0.03517557308077812,
-0.017437320202589035,
0.03651425242424011,
0.0025159334763884544,
-0.02528909221291542,
0.01945960335433483,
0.050720758736133575,
0.0021229505073279142,
0.053759150207042694,
-0.034353017807006836,
0.046902455389499664,
-0.011228147894144058,
0.03173462674021721,
-0.03140751272439957,
0.02296394668519497,
0.025875207036733627,
-0.02050197310745716,
0.02562475949525833,
0.024470115080475807,
0.016596544533967972,
-0.003987985663115978,
-0.07147422432899475,
0.049470290541648865,
-0.021371731534600258,
0.0072171250358223915,
-0.03906194493174553,
-0.0127303721383214,
-0.011728206649422646,
-0.015191489830613136,
-0.01890653930604458,
0.053791869431734085,
-0.02357124350965023,
0.02225056290626526,
-0.019785892218351364,
0.03638036176562309,
0.018623927608132362,
-0.005978327244520187,
0.0010196954244747758,
-0.0016291015781462193,
0.03868166357278824,
-0.015591430477797985,
0.07016369700431824,
-0.013030268251895905,
-0.005993479397147894,
0.01258024387061596,
-0.009211459197103977,
0.06278161704540253,
0.024427911266684532,
0.028329601511359215,
0.025553524494171143,
0.03678509593009949,
-0.056485313922166824,
-0.024970537051558495,
-0.04223518818616867,
-0.021924491971731186,
0.0034548318944871426,
-0.0018837543902918696,
0.02515409141778946,
-0.02758452668786049,
-0.002472515916451812,
0.040418025106191635,
0.10117646306753159,
0.028002293780446053,
-0.008952218107879162,
0.013174952007830143,
0.016902709379792213,
0.009945368394255638,
0.04797584190964699,
0.013284734450280666,
0.03132358193397522,
0.018526770174503326,
0.019600868225097656,
-0.015545849688351154,
0.02361411042511463,
-0.0013176454231142998,
-0.04385073482990265,
-0.0049435291439294815,
-0.040442273020744324,
0.0024859418626874685,
-0.022337734699249268,
0.05892474949359894,
0.034573107957839966,
-0.016231607645750046,
0.04074526205658913,
-0.020900804549455643,
0.0524168387055397,
-0.0178329199552536,
0.031965360045433044,
-0.021250111982226372,
-0.028726011514663696,
-0.051802411675453186,
0.004465324804186821,
0.00019408216758165509,
-0.018907006829977036,
-0.016095126047730446,
0.01745191402733326,
0.022047771140933037,
0.04230460897088051,
-0.00930773839354515,
-0.017534874379634857,
-0.05101005360484123,
0.020672425627708435,
0.014581282623112202,
-0.0028569705318659544,
-0.002694182563573122,
0.015009443275630474,
0.014533230103552341,
0.012924671173095703,
0.014672032557427883,
0.04638165980577469,
0.03641439229249954,
0.02208552695810795,
-0.00426733260974288,
0.00732616288587451,
-0.044114526361227036,
-0.08670955896377563,
0.017760558053851128,
-0.03992757201194763,
0.038278788328170776,
0.0024828920140862465,
-0.004355164710432291,
0.002153709065169096,
0.03260209411382675,
0.005059255752712488,
-0.025810791179537773,
-0.002455467823892832,
0.035623207688331604,
-0.056987736374139786,
-0.0018475513206794858,
-0.014467698521912098,
0.02756631374359131,
0.011859145946800709,
0.03225367143750191,
-0.007858873344957829,
0.022049536928534508,
0.0027767587453126907,
0.0068970066495239735,
0.017731133848428726,
-0.00497176731005311,
0.016042549163103104,
0.047705065459012985,
-0.020758798345923424,
0.012554642744362354,
0.019055403769016266,
0.025740740820765495,
-0.01309157907962799,
-0.018980858847498894,
-0.0031479019671678543,
-0.031124576926231384,
0.03507615253329277,
0.010776697658002377,
-0.043947093188762665,
-0.029903845861554146,
0.002284621587023139,
0.00927575584501028,
0.06860828399658203,
-0.09697307646274567,
-0.00898718275129795,
-0.03332963585853577,
-0.013462747447192669,
-0.029347486793994904,
0.011332829482853413,
0.041418302804231644,
0.05854988098144531,
0.06099262833595276,
-0.008919955231249332,
-0.0682900995016098,
-0.023001987487077713,
-0.0012129225069656968,
0.029927009716629982,
0.040662359446287155,
0.021295534446835518,
-0.014998238533735275,
0.005230183247476816,
0.013992726802825928,
0.016923407092690468,
0.0129786916077137,
-0.024943849071860313,
0.008344205096364021,
0.042233068495988846,
-0.04416865110397339,
0.045972928404808044,
0.03612108901143074,
-0.04699629545211792,
0.04013461247086525,
-0.005507610272616148,
0.0022994724567979574,
0.03473210707306862,
0.013129468075931072,
-0.006676087621599436,
0.03343292325735092,
-0.0621928870677948,
-0.05000222846865654,
0.008571179583668709,
0.006192587316036224,
0.0026975932996720076,
-0.05875387787818909,
-0.012934796512126923,
-0.01892426423728466,
-0.025685666128993034,
0.00819326750934124,
-0.060608651489019394,
0.0067024240270257,
0.004773414693772793,
-0.04860973730683327,
-0.016857320442795753,
0.013816691935062408,
0.031083159148693085,
-0.009283040650188923,
0.02853921428322792,
0.018442507833242416,
0.035466235131025314,
0.010375306941568851,
0.03148946166038513,
-0.01462057139724493,
0.027605580165982246,
-0.01662861928343773,
0.006549060344696045,
0.010569860227406025,
-0.0019409013912081718
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Conclusion In this post, you've learned how to build a distributed training cluster based on Intel CPUs and performance libraries, and how to use this cluster to speed up fine-tuning jobs. Indeed, transfer learning is putting CPU training back into the game, and you should definitely consider it when designing and building your next deep learning workflows. Thanks for reading this long post. I hope you found it informative. Feedback and questions are welcome at [email protected]. Until next time, keep learning! Julien | [
0.06153840199112892,
-0.0016588723519816995,
-0.019741235300898552,
0.009741991758346558,
0.032430943101644516,
0.003661223454400897,
-0.02448873780667782,
0.033016521483659744,
-0.005358298309147358,
-0.09547941386699677,
-0.03446512296795845,
0.04243694990873337,
0.014009684324264526,
0.06537940353155136,
-0.008387241512537003,
-0.03968648239970207,
0.10471929609775543,
-0.05626962333917618,
0.012576543726027012,
0.07329433411359787,
0.07781042903661728,
-0.058108214288949966,
0.03755143657326698,
0.020927701145410538,
-0.0379442535340786,
-0.026961689814925194,
0.025637991726398468,
0.0020671298261731863,
-0.01023012213408947,
0.02324085868895054,
-0.10680920630693436,
0.002005476737394929,
0.010813809931278229,
-0.019696975126862526,
-0.0504971407353878,
-0.008818572387099266,
-0.08298714458942413,
0.0518566332757473,
0.03465716168284416,
-0.053304508328437805,
-0.019830813631415367,
0.0218195803463459,
-0.037129249423742294,
0.06537829339504242,
0.01627252623438835,
-0.028799936175346375,
-0.14285628497600555,
0.015164376236498356,
-0.00434937933459878,
-0.04039798676967621,
-0.07453331351280212,
0.028734533116221428,
0.022205831483006477,
0.05114475265145302,
0.01778615452349186,
-0.01445728912949562,
0.012468282133340836,
-0.03935210779309273,
0.006566597614437342,
-0.0024918848648667336,
0.016374578699469566,
0.02138858661055565,
-0.022002553567290306,
-0.003531235968694091,
-0.03297336772084236,
-0.0101737966760993,
0.0076417275704443455,
-0.053797077387571335,
-0.0719374418258667,
-0.062373604625463486,
0.005677519831806421,
-0.06314262002706528,
0.013656453229486942,
-0.03866831213235855,
-0.009158404543995857,
-0.019261939451098442,
0.007516971789300442,
-0.04864940792322159,
0.06720242649316788,
0.042760420590639114,
-0.0036288213450461626,
0.041190195828676224,
0.044539596885442734,
0.08080152422189713,
0.08496600389480591,
0.022013142704963684,
0.013037269935011864,
-0.023208465427160263,
-0.05333586782217026,
0.010988244786858559,
0.009535370394587517,
-0.06055785343050957,
0.010977361351251602,
0.036268897354602814,
0.0801202803850174,
-0.05588138476014137,
-0.006134355906397104,
0.027372339740395546,
-0.012512399815022945,
-0.02458549104630947,
0.01789592206478119,
-0.04110328108072281,
-0.02497447468340397,
-0.04837619885802269,
-0.01818172074854374,
0.030156128108501434,
-0.020865751430392265,
-0.09876714646816254,
-0.06534278392791748,
-0.012545309960842133,
-0.032266851514577866,
-0.02273602969944477,
-0.049251358956098557,
0.05843137204647064,
-0.11088961362838745,
0.014567174948751926,
0.00046509821549989283,
-0.061614084988832474,
0.02224716544151306,
0.037527330219745636,
0.04605324938893318,
0.14149592816829681,
-0.02697891928255558,
0.000945594219956547,
0.0015643545193597674,
0.04943384230136871,
-0.01743541844189167,
-0.028927087783813477,
0.0167838241904974,
-0.054891396313905716,
0.043599601835012436,
-0.02076444774866104,
0.0033762105740606785,
0.021764541044831276,
-0.00024040613789111376,
-0.07471819221973419,
-0.043187156319618225,
-0.010554672218859196,
-0.006984911859035492,
0.028969690203666687,
-0.028745941817760468,
0.07854188233613968,
0.01767691969871521,
0.016450822353363037,
0.06912098079919815,
-0.02378810942173004,
-0.10895248502492905,
-0.0050866492092609406,
0.037724293768405914,
0.027390576899051666,
-0.107634037733078,
0.09181374311447144,
-0.093927763402462,
-0.043512988835573196,
0.04516521841287613,
0.07604853063821793,
0.020201301202178,
-0.09495576471090317,
-0.0355399027466774,
-0.017190009355545044,
-0.0849166065454483,
-0.019779004156589508,
-0.0529133677482605,
-0.0054237376898527145,
0.014294497668743134,
-0.008283596485853195,
0.006778597366064787,
0.028884733095765114,
-0.0076761068776249886,
0.0033698149491101503,
0.008199767209589481,
0.004005086608231068,
0.01330738328397274,
-0.014264215715229511,
0.03210071101784706,
0.013128942809998989,
-0.02298290655016899,
0.09793386608362198,
-0.027080509811639786,
-0.01991024985909462,
-0.04083104059100151,
-0.0017306730151176453,
-0.03824945166707039,
0.08846580982208252,
0.009926666505634785,
-0.0868334099650383,
0.0016707929316908121,
-0.030488474294543266,
-0.004823063034564257,
0.031035490334033966,
-0.022074472159147263,
0.0013542060041800141,
0.07346196472644806,
0.013648265972733498,
0.028782285749912262,
-0.06949471682310104,
-0.02322368137538433,
0.13748055696487427,
0.02711411938071251,
0.08387591689825058,
0.042045433074235916,
-0.06548270583152771,
0.016162384301424026,
-0.021113943308591843,
-0.01770600490272045,
-0.0055469791404902935,
-0.032176654785871506,
-0.05145015940070152,
-0.029749957844614983,
0.045264724642038345,
-0.016899168491363525,
-0.14516562223434448,
0.01104428805410862,
-0.03513611480593681,
0.015960244461894035,
0.029801076278090477,
-0.055194418877363205,
0.005572296679019928,
0.02906588278710842,
-0.03427577391266823,
0.1546810269355774,
-0.06946124881505966,
0.024847829714417458,
0.04427588731050491,
0.008756056427955627,
0.015214530751109123,
0.09664402902126312,
0.0207874346524477,
0.10113799571990967,
-0.0813666358590126,
-0.057306185364723206,
-0.06626668572425842,
-0.07798837125301361,
0.02428320050239563,
0.05265668034553528,
-0.0044466909021139145,
0.02554059959948063,
-0.00039489276241511106,
0.038894541561603546,
-0.05538944900035858,
-0.038561202585697174,
-0.010268370620906353,
-0.0014472666662186384,
0.025325031951069832,
0.012496771290898323,
-0.03174259886145592,
0.043074920773506165,
-0.013805232010781765,
-0.010699103586375713,
-0.04208023101091385,
-0.08462898433208466,
0.03526197373867035,
-0.00582961505278945,
-0.0696684867143631,
0.030934350565075874,
-0.02118382416665554,
-0.0051733399741351604,
-0.016871845349669456,
-0.02973318099975586,
0.048007115721702576,
0.03331214562058449,
-0.012654379941523075,
-0.05601915344595909,
-0.004538466222584248,
0.015790805220603943,
-0.037078894674777985,
-0.041527796536684036,
-0.04013201221823692,
0.03264163061976433,
0.0010374439880251884,
0.006497213616967201,
-0.04507448524236679,
0.04806116968393326,
0.0002904298307839781,
-0.006384094711393118,
0.0030116864945739508,
0.02269740030169487,
-0.016038790345191956,
-0.025794316083192825,
-0.01602253131568432,
-0.002201021881774068,
-0.05009184032678604,
0.035886578261852264,
0.029267102479934692,
-0.001143511151894927,
0.00751012796536088,
-0.026836980134248734,
-0.003391240257769823,
-0.03664902597665787,
0.000305691035464406,
0.05456872656941414,
0.016075631603598595,
0.0024480929132550955,
-0.027705611661076546,
-0.025514161214232445,
0.02796517312526703,
-0.00668865442276001,
0.018230756744742393,
-0.01827027089893818,
0.008276841603219509,
-0.05175613984465599,
0.03931340575218201,
-0.01269016694277525,
0.009460974484682083,
-0.025514842942357063,
0.02631278522312641,
0.008438151329755783,
0.02491500787436962,
-0.09664597362279892,
-0.023851405829191208,
-0.012096820399165154,
0.0742117166519165,
-0.0018755928613245487,
-0.022700928151607513,
-0.0106961103156209,
-0.028014041483402252,
0.013200558722019196,
0.0009894662071019411,
0.010642265900969505,
0.016374727711081505,
0.013687190599739552,
-0.024601301178336143,
-0.00499039376154542,
-0.007815576158463955,
0.02409667894244194,
-0.030087223276495934,
0.003437340259552002,
0.006724872626364231,
-0.031168878078460693,
0.011467644944787025,
0.022009527310729027,
0.03891570121049881,
-0.003967280499637127,
0.028427714481949806,
0.04482217878103256,
0.024632439017295837,
0.010333061218261719,
-0.015138322487473488,
-0.02383682131767273,
-0.00901834201067686,
-0.01990768127143383,
-0.015984276309609413,
0.008666557259857655,
0.008612665347754955,
0.019996490329504013,
0.030828807502985,
0.019919028505682945,
0.034503862261772156,
0.023333333432674408,
0.016263633966445923,
0.048100437968969345,
-0.046373531222343445,
0.03707130625844002,
-0.0012614147271960974,
0.012315881438553333,
-0.006466102320700884,
0.030535290017724037,
-0.0190905574709177,
0.0037882961332798004,
0.025118840858340263,
-0.003412953345105052,
0.07515224069356918,
-0.011557101272046566,
0.018003011122345924,
-0.04381899535655975,
0.024403927847743034,
0.03791838511824608,
0.002458782633766532,
-0.021970972418785095,
0.02576596289873123,
0.015528365969657898,
-0.029735658317804337,
-0.0313795730471611,
0.04062501713633537,
-0.0035493250470608473,
-0.0037691963370889425,
-0.016006790101528168,
0.03921382874250412,
0.01668660156428814,
0.03384343534708023,
-0.0012961560860276222,
0.0064584072679281235,
-0.016029026359319687,
-0.003934704698622227,
-0.03180274739861488,
0.011616365052759647,
0.055861908942461014,
0.05740895867347717,
-0.017846347764134407,
-0.03410003334283829,
-0.005334826186299324,
-0.0664675384759903,
0.02637053094804287,
-0.003427209099754691,
0.014475353062152863,
0.0036652081180363894,
0.04082886129617691,
0.048746198415756226,
-0.016532083973288536,
-0.030995162203907967,
-0.005724889226257801,
-0.023864656686782837,
0.011237132363021374,
0.01527924370020628,
0.03605828806757927,
0.04559912160038948,
-0.03357040509581566,
0.011031845584511757,
0.0318450964987278,
-0.0490860715508461,
0.01097797229886055,
0.017829306423664093,
-0.004784995224326849,
0.020773278549313545,
0.033078305423259735,
-0.01900121010839939,
0.029335573315620422,
0.011306828819215298,
0.011058918200433254,
-0.016582680866122246,
0.018081659451127052,
0.002952958457171917,
0.031865544617176056,
-0.019007939845323563,
-0.04022679477930069,
0.004523174371570349,
0.011154916137456894,
0.015734972432255745,
-0.025181669741868973,
0.05558309704065323,
-0.0013765401672571898,
-0.015883585438132286,
0.032596513628959656,
-0.0010345926275476813,
0.02686229534447193,
0.006609874777495861,
-0.010309267789125443,
-0.03619735315442085,
-0.009355074726045132,
0.012655768543481827,
0.047066882252693176,
0.01612907275557518,
0.0009773862548172474,
-0.009108908474445343,
-0.03454401716589928,
0.025027407333254814,
-0.005689308978617191,
-0.025202954187989235,
-0.037928540259599686,
0.020814787596464157,
0.044912200421094894,
-0.02347102016210556,
0.04758882895112038,
0.04114112630486488,
-0.027835536748170853,
-0.026468656957149506,
-0.0243607796728611,
0.0018641471397131681,
0.0031151180155575275,
-0.000912856194190681,
-0.05382717773318291,
0.0675492063164711,
0.05242186039686203,
0.00039674891741015017,
0.006010823417454958,
0.01546670775860548,
0.01945142075419426,
0.07227150350809097,
-0.015698974952101707,
0.01078107301145792,
-0.04862649738788605,
0.0014008701546117663,
0.026761285960674286,
-0.0352775901556015,
-0.018368318676948547,
-0.036137957125902176,
-0.03713356330990791,
-0.010419894009828568,
0.015299133025109768,
0.02735794708132744,
-0.012257935479283333,
-0.016284432262182236,
0.0043022348545491695,
0.03928102180361748,
0.035425249487161636,
0.014444428496062756,
-0.011306144297122955,
0.021671319380402565,
-0.011973554268479347,
0.00441424734890461,
-0.002472398104146123,
0.008037612773478031,
-0.02117547020316124,
0.036572884768247604,
0.08251433819532394,
0.01975776068866253,
-0.01899123378098011,
-0.0016753152012825012,
0.004755972884595394,
-0.011505147442221642,
0.05801527202129364,
-0.032568205147981644,
0.0318659171462059,
-0.03610636293888092,
0.029429122805595398,
0.035237252712249756,
-0.006240519229322672,
-0.00022799037105869502,
0.0008827936835587025,
0.04332771524786949,
0.015880463644862175,
-0.005412640515714884,
0.021221326664090157,
0.043248627334833145,
-0.011464064009487629,
-0.03234384208917618,
0.0017454178305342793,
-0.026079898700118065,
0.004585977178066969,
-0.011669779196381569,
-0.020838061347603798,
-0.03552965074777603,
0.006451238412410021,
-0.041082389652729034,
-0.04683440178632736,
0.03248817101120949,
0.04227564111351967,
0.026713872328400612,
0.00017008256691042334,
-0.01242323499172926,
-0.007482956163585186,
-0.01949341967701912,
-0.022554298862814903,
-0.0500718355178833,
0.0018471687799319625,
-0.001909935032017529,
-0.00824637059122324,
0.047846902161836624,
0.022989675402641296,
-0.010772342793643475,
-0.030432840809226036,
0.02883375808596611,
0.020825140178203583,
-0.061062369495630264,
0.036987680941820145,
0.01714797131717205,
0.028906704857945442,
-0.036200787872076035,
-0.015293017961084843,
-0.020776107907295227,
-0.02076840028166771,
-0.015337031334638596,
-0.05346499755978584,
0.015064284205436707,
0.0741288959980011,
0.015423684380948544,
-0.002910636831074953,
-0.026534175500273705,
0.015966588631272316,
-0.010049349628388882,
0.017915386706590652,
-0.0056321509182453156,
-0.0007295341929420829,
-0.0014389464631676674,
-0.016910597681999207,
-0.013095424510538578,
0.016591690480709076,
-0.018050136044621468,
-0.012940576300024986,
-0.07144501805305481,
0.030316432937979698,
0.00922826211899519,
-0.023129494860768318,
0.01850215159356594,
-0.016064872965216637,
-0.018495142459869385,
0.011823608539998531,
0.03100421279668808,
0.044841814786195755,
0.019955255091190338,
0.02193298004567623,
-0.002088983543217182,
0.0055033965036273,
-0.025070255622267723,
-0.004556229338049889,
0.03289344534277916,
-0.012385213747620583,
0.011474905535578728,
-0.01216000597923994,
0.05708826705813408,
0.04068880155682564,
-0.005869710817933083,
0.05740600824356079,
-0.0038450744468718767,
0.07243379950523376,
-0.024096334353089333,
0.03147447481751442,
0.05534888803958893,
-0.006473747547715902,
-0.05020344257354736,
-0.003928154706954956,
-0.01673639751970768,
0.02070009522140026,
-0.004842719528824091,
0.05101065710186958,
-0.007960084825754166,
0.009369564242661,
-0.003308688523247838,
0.027728548273444176,
0.06662791967391968,
0.018909748643636703,
-0.00484552513808012,
0.02495402656495571,
0.02381305582821369,
0.0056462595239281654,
0.007866335101425648,
0.028070110827684402,
-0.013184972107410431,
0.019071971997618675,
0.039816856384277344,
0.027632640674710274,
0.05897111818194389,
-0.007218758575618267,
-0.020253701135516167,
0.0116682518273592,
-0.025576233863830566,
0.034602370113134384,
0.022422365844249725,
-0.018080484122037888,
-0.014848597347736359,
-0.01568887010216713,
0.00021403944992925972,
0.002611013362184167,
0.02560628578066826,
-0.006733294576406479,
0.019866943359375,
-0.036092426627874374,
-0.00880671851336956,
-0.029911251738667488,
0.05346941202878952,
0.0057486845180392265,
-0.01919378899037838,
0.017410241067409515,
-0.008861316367983818,
-0.000054786698456155136,
0.021970629692077637,
-0.021099504083395004,
0.006552057806402445,
-0.003099809866398573,
0.025364937260746956,
0.016138067469000816,
0.034796442836523056,
-0.008886946365237236,
-0.012451335787773132,
0.05339854955673218,
0.012974691577255726,
-0.002547135343775153,
-0.020202569663524628,
-0.0016648342134431005,
0.003090989077463746,
-0.04581504315137863,
0.010089173913002014,
-0.014447975903749466,
-0.055851053446531296,
-0.0005669397651217878,
-0.031341396272182465,
0.062171999365091324,
-0.0064066387712955475,
0.024473637342453003,
-0.006897523067891598,
0.03368433192372322,
-0.007733938284218311,
-0.04019050672650337,
-0.019168484956026077,
-0.00388280488550663,
-0.025405725464224815,
0.03042455017566681,
-0.00009111672261497006,
-0.02492399513721466,
0.008466016501188278,
0.012800446711480618,
-0.000035205936001148075,
0.0020731016993522644,
0.009835753589868546,
0.04215679690241814,
-0.048035766929388046,
-0.01252750214189291,
0.016382642090320587,
0.058744318783283234,
0.02625756710767746,
0.024856025353074074,
0.025807036086916924,
0.06457839906215668,
0.008488412015140057,
-0.0449271984398365,
0.02075132168829441,
0.026133986189961433,
0.009405340068042278,
0.0054885344579815865,
-0.030918734148144722,
0.02008020132780075,
0.007244466803967953,
-0.010043374262750149,
0.02343308925628662,
-0.05693425238132477,
-0.014712641015648842,
-0.002472398104146123,
-0.0012303218245506287,
-0.020595788955688477,
0.004524186719208956,
0.05002959072589874,
0.04997888579964638,
0.005079679191112518,
-0.011027690023183823,
-0.048321377485990524,
-0.03521222621202469,
-0.027936939150094986,
0.048143766820430756,
0.06331200897693634,
0.005346319172531366,
-0.0181086715310812,
-0.019434083253145218,
-0.018504159525036812,
0.01963525265455246,
-0.03206489980220795,
-0.023338619619607925,
-0.0058850934728980064,
0.020911524072289467,
-0.015094392001628876,
0.005413167644292116,
0.0409054197371006,
-0.005603141617029905,
0.051462527364492416,
-0.0022707092575728893,
-0.00036569751682691276,
0.013961482793092728,
0.044212862849235535,
-0.04152525216341019,
-0.01823064498603344,
-0.01689893752336502,
0.008430728688836098,
0.0459572859108448,
0.006102023180574179,
0.00328832003287971,
-0.015164339914917946,
-0.03321130946278572,
0.030504588037729263,
-0.026977267116308212,
-0.007468529976904392,
-0.047906626015901566,
-0.0033596898429095745,
0.01881350576877594,
-0.023189514875411987,
-0.030353214591741562,
0.03241337463259697,
-0.005355533212423325,
0.009619835764169693,
0.0239512138068676,
-0.03818761929869652,
0.0008013108745217323,
0.0011377111077308655,
0.035139236599206924,
-0.028391577303409576,
0.059258557856082916,
0.04378345236182213,
-0.017079569399356842,
-0.03883832320570946,
-0.011001714505255222
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Launching a single-node job To get a baseline, let's launch a single-node job running the run_glue.py script in transformers/examples/pytorch/text-classification. This should work on any of the instances, and it's a good sanity check before proceeding to distributed training. python run_glue.py \ --model_name_or_path bert-base-cased --task_name mrpc \ --do_train --do_eval --max_seq_length 128 \ --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 \ --output_dir /tmp/mrpc/ --overwrite_output_dir True This job takes 7 minutes and 46 seconds. Now, let's set up distributed jobs with oneCCL and speed things up! | [
0.004423126578330994,
-0.002158418297767639,
-0.00687765097245574,
0.04418720677495003,
0.008588960394263268,
0.032429564744234085,
0.032687555998563766,
0.012911154888570309,
-0.04013285040855408,
-0.041377488523721695,
-0.07843981683254242,
0.05898125842213631,
0.010817792266607285,
0.0654132068157196,
0.03383473679423332,
-0.05913225933909416,
0.024560948833823204,
-0.07850940525531769,
-0.07347618043422699,
-0.05629517138004303,
-0.00816391035914421,
-0.027381531894207,
0.05205654352903366,
0.09133264422416687,
-0.051264021545648575,
-0.06946425139904022,
-0.02136976271867752,
0.007776039652526379,
-0.056286685168743134,
0.05609460175037384,
-0.06031426787376404,
0.021490393206477165,
0.09030929207801819,
0.00728021003305912,
0.037785500288009644,
0.09785180538892746,
-0.05719316750764847,
0.006924494169652462,
0.02849322184920311,
-0.05717986449599266,
-0.032570503652095795,
0.03406712785363197,
-0.07156621664762497,
0.008806223049759865,
0.008586150594055653,
0.026341000571846962,
-0.11070454120635986,
0.06152677536010742,
-0.01009998470544815,
0.015449987724423409,
-0.08917848765850067,
0.05182653293013573,
-0.009246922098100185,
-0.06587010622024536,
-0.03323645517230034,
0.05496195703744888,
0.010784401558339596,
-0.06630729138851166,
0.03347594290971756,
-0.005814004223793745,
-0.028677524998784065,
-0.021741289645433426,
-0.03221012279391289,
0.06096681207418442,
0.012683584354817867,
-0.005971088074147701,
0.006098426878452301,
-0.014773068018257618,
-0.048313818871974945,
0.026444558054208755,
-0.005180384032428265,
0.031081506982445717,
-0.0073059722781181335,
0.012285473756492138,
0.03210314363241196,
-0.01683274656534195,
0.001041546929627657,
-0.022444311529397964,
0.03377710282802582,
0.045436032116413116,
-0.009616171941161156,
0.023155290633440018,
-0.02167150005698204,
-0.021757690235972404,
0.06638964265584946,
0.022112492471933365,
-0.010403754189610481,
-0.06817274540662766,
-0.08174755424261093,
0.04277375340461731,
-0.0010210199980065227,
-0.05342816561460495,
-0.009432188235223293,
0.05064421147108078,
0.0029304400086402893,
0.0036487465258687735,
-0.03611889109015465,
-0.025855593383312225,
-0.05254439637064934,
-0.07013082504272461,
0.07888680696487427,
-0.07160376012325287,
-0.009033886715769768,
0.020546071231365204,
-0.05729192867875099,
0.05485184118151665,
-0.003590732580050826,
-0.06199013441801071,
-0.04208768159151077,
-0.029416140168905258,
-0.029945645481348038,
-0.05120702460408211,
-0.08793994784355164,
0.0785127729177475,
-0.048376429826021194,
-0.038616329431533813,
-0.030151216313242912,
-0.001909787766635418,
0.008240610361099243,
-0.03718156740069389,
-0.010170205496251583,
0.12065309286117554,
0.02561197057366371,
0.008009853772819042,
-0.017321648076176643,
0.05735498294234276,
-0.005900674499571323,
-0.018227269873023033,
0.023759860545396805,
-0.026755180209875107,
0.09249445796012878,
-0.017015600576996803,
0.06366526335477829,
-0.00390623789280653,
0.02037196047604084,
-0.023816457018256187,
-0.005472839344292879,
0.011972040869295597,
0.0624774731695652,
0.012009847909212112,
-0.03178863972425461,
0.06342989951372147,
0.02879031002521515,
0.046672649681568146,
0.042840246111154556,
0.046647898852825165,
-0.030184490606188774,
0.02540832944214344,
0.028408508747816086,
0.04098400101065636,
-0.09664220362901688,
0.056340109556913376,
-0.0499347485601902,
-0.02784331701695919,
0.03440286964178085,
0.09803519397974014,
-0.014588958583772182,
-0.03950609266757965,
-0.06960655748844147,
-0.002011245349422097,
-0.03293720260262489,
-0.018365556374192238,
-0.02262745052576065,
-0.02104937843978405,
-0.008946660906076431,
-0.0377611480653286,
-0.006164001300930977,
-0.03661135584115982,
0.03954176977276802,
-0.024617023766040802,
0.06929724663496017,
0.08006031066179276,
0.0316598117351532,
-0.028957240283489227,
-0.0057571944780647755,
-0.014959579333662987,
0.02168675884604454,
0.06232582405209541,
0.008342567831277847,
0.023767974227666855,
-0.0437467135488987,
0.06305767595767975,
0.03670601546764374,
0.05771465227007866,
0.04620739817619324,
-0.0923813208937645,
0.06914058327674866,
-0.0036909880582243204,
-0.026581674814224243,
0.03696015849709511,
0.0033074908424168825,
0.00397694343701005,
0.11425796896219254,
-0.04117653891444206,
0.022206012159585953,
-0.0005325564416125417,
-0.02670978382229805,
0.0754915401339531,
0.04895108565688133,
0.0011271316325291991,
0.03274491801857948,
0.0028951680287718773,
0.010413355194032192,
-0.06655649095773697,
-0.030668117105960846,
0.04312556982040405,
-0.004569108132272959,
-0.08150580525398254,
0.06063487008213997,
0.028786715120077133,
-0.026807045564055443,
-0.03922136500477791,
-0.05396634340286255,
-0.03226092830300331,
0.015586499124765396,
-0.01540523860603571,
-0.01604878157377243,
0.058240991085767746,
0.07215428352355957,
0.022393202409148216,
0.09412669390439987,
-0.05430618301033974,
0.007245724089443684,
0.001448414521291852,
-0.05386235564947128,
-0.00442317221313715,
0.08432324230670929,
0.07851385325193405,
0.06546476483345032,
-0.03182058036327362,
-0.034532416611909866,
0.017040899023413658,
-0.015927579253911972,
0.13319513201713562,
-0.0711006298661232,
-0.03384563699364662,
-0.02693716250360012,
-0.016844183206558228,
-0.039345331490039825,
-0.0768837034702301,
-0.0015446525067090988,
0.011920259334146976,
-0.048133838921785355,
0.03850257396697998,
-0.0497942790389061,
0.059451330453157425,
0.051559459418058395,
-0.0020898322109133005,
0.010347485542297363,
0.05630945414304733,
-0.061983872205019,
0.00997016578912735,
-0.014927299693226814,
-0.05759338289499283,
0.05083265155553818,
0.01359552051872015,
-0.024525487795472145,
-0.024143921211361885,
-0.0069849519059062,
0.02578631043434143,
0.013193533755838871,
0.0055022649466991425,
-0.052155837416648865,
-0.01144915446639061,
-0.05271538719534874,
-0.05934419482946396,
0.004386941436678171,
-0.06342281401157379,
0.011119802482426167,
-0.02038494683802128,
-0.018624715507030487,
-0.04339553043246269,
0.011079360730946064,
-0.021757075563073158,
0.017315449193120003,
0.012002772651612759,
0.006196274422109127,
0.005813091527670622,
-0.010782104916870594,
-0.008457851596176624,
-0.0429685115814209,
-0.058876022696495056,
0.004637209232896566,
-0.007217843551188707,
0.0016771013615652919,
0.046812932938337326,
-0.0017783091170713305,
-0.05056328326463699,
0.015196418389678001,
-0.02818203531205654,
0.006029399577528238,
0.03046947531402111,
0.03649900481104851,
0.004634246230125427,
-0.017367513850331306,
0.007521836087107658,
-0.015765642747282982,
-0.019013991579413414,
-0.005537969991564751,
-0.029567459598183632,
-0.028854552656412125,
0.0445515401661396,
-0.055921509861946106,
-0.029598591849207878,
-0.025655472651124,
0.015514117665588856,
0.030963636934757233,
-0.027815580368041992,
-0.07004046440124512,
0.01493398379534483,
-0.03370113670825958,
0.027799023315310478,
0.007917269133031368,
-0.03517875075340271,
0.044961463660001755,
0.004806513898074627,
0.01153066847473383,
0.005517269019037485,
-0.04937129095196724,
-0.04082697629928589,
0.007420404814183712,
0.005661888048052788,
0.02968098223209381,
-0.0010400559986010194,
-0.009886660613119602,
-0.04320111870765686,
0.015255157835781574,
0.03618659824132919,
-0.014939137734472752,
0.02939724735915661,
-0.021220047026872635,
-0.009624085389077663,
-0.0005552196525968611,
0.007244778797030449,
0.001968992408365011,
0.03673626855015755,
0.012122996151447296,
-0.040988024324178696,
-0.03492118790745735,
-0.0444004200398922,
0.03435838595032692,
0.018828099593520164,
0.010703511536121368,
-0.02607063576579094,
0.007266630418598652,
0.05261339619755745,
-0.01281651295721531,
0.013085734099149704,
0.008135037496685982,
0.0020771848503500223,
0.01755451038479805,
-0.008929053321480751,
0.033415526151657104,
-0.016233429312705994,
-0.011961223557591438,
0.005534888245165348,
0.02340182662010193,
-0.04400450363755226,
-0.013071564957499504,
-0.043910689651966095,
0.004179071635007858,
0.0053985812701284885,
0.0007437514723278582,
0.011563476175069809,
-0.04509040340781212,
0.02660682611167431,
0.02959456481039524,
-0.005759313702583313,
-0.028052950277924538,
0.03181646764278412,
0.0016358991852030158,
-0.008486222475767136,
0.00099006830714643,
0.03038591705262661,
0.011606353335082531,
0.032792724668979645,
-0.0024480577558279037,
0.03329308703541756,
0.029204251244664192,
-0.02053108625113964,
-0.02423286996781826,
0.0028287952300161123,
-0.02037183567881584,
0.0038269066717475653,
-0.029455460608005524,
-0.035812728106975555,
0.04294096678495407,
0.02533949539065361,
-0.02562909759581089,
-0.03060729429125786,
-0.0355941541492939,
-0.08288944512605667,
0.0165640190243721,
0.011085765436291695,
0.014661047607660294,
-0.07070545107126236,
0.04460146650671959,
-0.010087485425174236,
-0.0013999990187585354,
-0.03349929302930832,
0.02420145459473133,
0.021503962576389313,
-0.04703788459300995,
-0.044892262667417526,
0.0559174045920372,
0.03552030399441719,
0.00006354635115712881,
-0.012694996781647205,
-0.001973723294213414,
-0.048533618450164795,
0.023915980011224747,
0.027571912854909897,
0.01249125599861145,
0.01634201779961586,
0.006340775638818741,
0.012962697073817253,
-0.05013654753565788,
-0.031227117404341698,
-0.0036542541347444057,
0.05621250346302986,
0.0027908110059797764,
0.013352264650166035,
0.010308586992323399,
0.03202919289469719,
-0.003622000105679035,
-0.03209131211042404,
-0.002750229090452194,
0.002837738487869501,
-0.013193660415709019,
0.05483884736895561,
0.01392682921141386,
0.033811040222644806,
0.026015404611825943,
-0.014815520495176315,
0.02428147755563259,
0.03969665244221687,
0.035216379910707474,
-0.0379171185195446,
-0.028241215273737907,
0.02055138349533081,
0.035497356206178665,
-0.019004113972187042,
-0.008033537305891514,
-0.014628642238676548,
0.01832122541964054,
-0.011101034469902515,
0.02349013462662697,
0.027157509699463844,
-0.0020665680058300495,
0.03773759678006172,
0.03216424956917763,
-0.02025718428194523,
0.010464346967637539,
0.012969043105840683,
-0.0024396246299147606,
-0.01569579914212227,
-0.05164797976613045,
0.02118174359202385,
0.003943001851439476,
0.006535678636282682,
-0.055016160011291504,
0.014731718227267265,
0.047242939472198486,
-0.02791421115398407,
0.006075308658182621,
0.011798877269029617,
0.017102904617786407,
0.032319098711013794,
-0.033219292759895325,
-0.04618368297815323,
0.019022490829229355,
0.02662133052945137,
0.03462883457541466,
-0.02031012624502182,
0.00014843587996438146,
-0.04414210841059685,
0.002017788589000702,
0.016048524528741837,
-0.08073794096708298,
0.0027419535908848047,
-0.023308590054512024,
-0.03960716351866722,
0.031160850077867508,
0.020037947222590446,
0.05207042396068573,
0.019008541479706764,
0.0049302345141768456,
0.007289926055818796,
-0.01995176635682583,
-0.0019539149943739176,
-0.001622081850655377,
-0.052803825587034225,
-0.010132595896720886,
0.029592441394925117,
0.008057764731347561,
-0.0037510183174163103,
0.045062169432640076,
0.006424073129892349,
0.018105648458003998,
-0.029273906722664833,
0.00800388678908348,
-0.016351105645298958,
0.03003811091184616,
0.023718666285276413,
0.03865044564008713,
0.03903291001915932,
-0.0017135469242930412,
-0.0056394790299236774,
0.018079549074172974,
0.030526770278811455,
-0.021117890253663063,
-0.0557677261531353,
0.04993085563182831,
-0.03246328979730606,
-0.03382023796439171,
-0.011197419837117195,
-0.015036599710583687,
-0.026646245270967484,
0.014836163260042667,
-0.010575255379080772,
0.03467732295393944,
0.04858444631099701,
0.01117812842130661,
-0.06393546611070633,
0.011924323625862598,
0.05142766982316971,
0.05932297185063362,
0.02151442877948284,
-0.05379052087664604,
-0.005836668889969587,
-0.005661460105329752,
0.03557836264371872,
-0.013224968686699867,
-0.03243231028318405,
-0.00484502175822854,
0.03791031241416931,
0.0020430402364581823,
0.03843609243631363,
-0.023464661091566086,
-0.006532635074108839,
-0.021622246131300926,
0.030985847115516663,
0.01256646029651165,
-0.011275255121290684,
-0.041356611996889114,
0.019743861630558968,
0.002010124269872904,
-0.013280023820698261,
-0.011420623399317265,
-0.011889397166669369,
-0.0005264356732368469,
-0.006183534394949675,
-0.06046328321099281,
0.052652474492788315,
0.08275201171636581,
0.0038569194730371237,
0.05166522413492203,
-0.034164611250162125,
0.052512433379888535,
0.015774957835674286,
-0.013953318819403648,
-0.02546464465558529,
0.0595095194876194,
0.04216384515166283,
-0.022389788180589676,
0.015267616137862206,
0.013789274729788303,
0.02427351288497448,
0.0008387804264202714,
-0.07955612242221832,
0.05041356012225151,
0.014007504098117352,
-0.010934045538306236,
0.013395012356340885,
-0.0036748144775629044,
-0.06103423982858658,
0.0015473500825464725,
-0.05031946301460266,
0.012636689469218254,
-0.03684366121888161,
-0.020894167944788933,
0.002287358045578003,
0.04542917385697365,
0.017615897580981255,
0.009920119307935238,
0.02048506774008274,
0.010185367427766323,
0.042085397988557816,
0.04031243547797203,
0.06415681540966034,
0.00040623670793138444,
-0.0038334373384714127,
0.003195644821971655,
-0.02431199513375759,
0.09510957449674606,
0.0034837902057915926,
0.004973465111106634,
0.057357121258974075,
0.010876402258872986,
-0.03494392707943916,
-0.038107287138700485,
-0.022913895547389984,
-0.018396655097603798,
0.0014288586098700762,
0.013392546214163303,
-0.015559880994260311,
-0.010841980576515198,
0.004964865278452635,
0.037409815937280655,
0.052071623504161835,
0.0004945226828567684,
0.014648018404841423,
0.018224870786070824,
0.0292036309838295,
-0.02014492079615593,
0.01180843636393547,
-0.0006795652443543077,
-0.005751756019890308,
-0.016153205186128616,
0.03028809279203415,
0.013229066506028175,
-0.010299233719706535,
-0.013250135816633701,
-0.024417459964752197,
0.00190962222404778,
-0.031743649393320084,
-0.008310936391353607,
-0.005336417816579342,
0.06017647683620453,
0.02589869685471058,
-0.02461458556354046,
0.014377564191818237,
-0.01255861483514309,
0.04350704327225685,
-0.04077190160751343,
0.034716878086328506,
-0.001194923184812069,
-0.012632189318537712,
-0.014120892621576786,
0.016081882640719414,
0.03157397732138634,
-0.018169965595006943,
0.017789851874113083,
0.013207850977778435,
0.04480012506246567,
0.03530550003051758,
-0.03742404282093048,
-0.012715790420770645,
-0.0161121878772974,
-0.015919607132673264,
-0.01875453256070614,
0.02176268957555294,
0.0163332037627697,
-0.0030395269859582186,
0.030558578670024872,
0.0278007872402668,
0.05650804191827774,
0.05142544209957123,
0.05161247402429581,
0.007359961047768593,
-0.0290010217577219,
-0.01975165866315365,
-0.04268718883395195,
-0.08764851838350296,
0.07706152647733688,
-0.022795911878347397,
-0.009840994141995907,
-0.0033666943199932575,
0.029144318774342537,
0.027285601943731308,
0.011594823561608791,
0.0018360469257459044,
0.0014910566387698054,
0.0003614672750700265,
0.012589463964104652,
-0.06807993352413177,
0.0007282415172085166,
0.015829740092158318,
0.03651318699121475,
-0.010686364956200123,
0.01668493263423443,
0.01712598092854023,
-0.021697111427783966,
-0.001541669829748571,
0.04194260016083717,
0.023465028032660484,
0.016293764114379883,
0.00023617205442860723,
0.009074864909052849,
-0.00935345608741045,
0.030338052660226822,
0.039527423679828644,
-0.050368160009384155,
-0.04398413747549057,
-0.019505176693201065,
-0.0319497212767601,
-0.0060402448289096355,
-0.015139974653720856,
-0.03770824521780014,
-0.019240129739046097,
-0.016062507405877113,
0.01588192768394947,
-0.032144658267498016,
0.05918484181165695,
-0.05937795713543892,
-0.0034370622597634792,
-0.044925395399332047,
0.011365928687155247,
-0.037293631583452225,
0.011431545950472355,
0.0379851795732975,
0.055505186319351196,
0.06695495545864105,
0.0004160344833508134,
-0.03690609708428383,
0.012896417640149593,
-0.0274270698428154,
-0.000418804120272398,
0.0408206433057785,
-0.00874920841306448,
-0.025470975786447525,
-0.010041159577667713,
0.011589310131967068,
0.03250887617468834,
-0.0469474121928215,
-0.03426552563905716,
0.02477215975522995,
0.010627629235386848,
-0.03574137017130852,
0.04072852060198784,
0.015325004234910011,
-0.03242868185043335,
0.020908934995532036,
-0.03591305762529373,
-0.04876719042658806,
0.042439140379428864,
-0.017166251316666603,
-0.007704552728682756,
-0.023283667862415314,
-0.035353053361177444,
-0.0473606251180172,
0.018914971500635147,
0.005411394871771336,
0.007364671677350998,
-0.0014192011440172791,
-0.01679992862045765,
0.0007940224022604525,
-0.03366770222783089,
-0.02354075200855732,
-0.053204070776700974,
-0.011452079750597477,
0.00585583271458745,
-0.030061917379498482,
-0.02308850921690464,
0.049341410398483276,
0.04239856079220772,
-0.024120228365063667,
0.0012929552467539907,
0.04214351624250412,
0.02525184489786625,
0.004694692324846983,
0.02243771404027939,
-0.04286327213048935,
0.031636446714401245,
0.0012479061260819435,
-0.0030091286171227694,
0.009308528155088425,
0.009754318743944168
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | # Accelerating PyTorch distributed fine-tuning with Intel technologies For all their amazing performance, state of the art deep learning models often take a long time to train. In order to speed up training jobs, engineering teams rely on distributed training, a divide-and-conquer technique where clustered servers each keep a copy of the model, train it on a subset of the training set, and exchange results to converge to a final model. Graphical Processing Units (GPUs) have long been the de facto choice to train deep learning models. However, the rise of transfer learning is changing the game. Models are now rarely trained from scratch on humungous datasets. Instead, they are frequently fine-tuned on specific (and smaller) datasets, in order to build specialized models that are more accurate than the base model for particular tasks. As these training jobs are much shorter, using a CPU-based cluster can prove to be an interesting option that keeps both training time and cost under control. | [
0.06324033439159393,
-0.019697340205311775,
-0.04601025953888893,
0.040555164217948914,
0.011409621685743332,
0.012581664137542248,
-0.030448200181126595,
0.03563179448246956,
0.0017228784272447228,
-0.06294649839401245,
-0.09176761656999588,
0.0054037380032241344,
0.003695855615660548,
0.06788880378007889,
0.012808702886104584,
-0.018342377617955208,
0.11091634631156921,
-0.06830780953168869,
-0.06448174268007278,
0.10012850165367126,
0.0700928196310997,
-0.06027078628540039,
0.03080330230295658,
0.06248096749186516,
-0.11571904271841049,
-0.019478103145956993,
0.025381485000252724,
-0.015288305468857288,
0.000704317819327116,
0.03122117556631565,
-0.06924313306808472,
-0.006602756213396788,
0.03259744495153427,
0.0072205145843327045,
-0.08026904612779617,
-0.057216715067625046,
-0.008822998963296413,
0.03630335256457329,
-0.01751769706606865,
-0.07176045328378677,
-0.0018730565207079053,
0.024668946862220764,
-0.0426686592400074,
0.094442218542099,
0.018653029575943947,
0.01331976056098938,
-0.04343064874410629,
0.033611517399549484,
0.012048411183059216,
-0.08069906383752823,
-0.1200328916311264,
0.014873994514346123,
-0.0020087086595594883,
0.05281871184706688,
-0.014906090684235096,
0.03354880213737488,
0.009401882067322731,
-0.0018856857204809785,
-0.008885997347533703,
-0.018856747075915337,
0.016100449487566948,
0.009413033723831177,
-0.018720120191574097,
-0.017674455419182777,
-0.0633309930562973,
-0.061745233833789825,
0.014104866422712803,
-0.07022006064653397,
-0.07279914617538452,
-0.06400717794895172,
-0.0034733132924884558,
-0.055752962827682495,
0.00796116515994072,
-0.06487587839365005,
-0.0309167318046093,
-0.027056196704506874,
-0.00018940848531201482,
-0.03875308856368065,
0.07249967753887177,
0.023622632026672363,
-0.02408289723098278,
0.03150895610451698,
0.009112035855650902,
0.05353511497378349,
0.05894302576780319,
-0.026027651503682137,
-0.02785504423081875,
-0.03148258477449417,
-0.024635685607790947,
-0.02094331569969654,
0.004191447980701923,
-0.052903912961483,
0.016912121325731277,
0.037830084562301636,
0.055850300937891006,
0.019906889647245407,
0.0076678781770169735,
0.03540297597646713,
0.03659500926733017,
-0.0329105444252491,
0.039812248200178146,
-0.07118619978427887,
-0.030320214107632637,
-0.028695043176412582,
-0.0400373712182045,
0.05016094446182251,
-0.06522945314645767,
-0.06338224560022354,
-0.06631404906511307,
-0.0022073930595070124,
-0.06521566212177277,
0.01753028854727745,
-0.05313193053007126,
0.05360850691795349,
-0.07567207515239716,
-0.03650900721549988,
0.026074891909956932,
-0.013997942209243774,
0.012341666966676712,
-0.00824641715735197,
-0.03599558770656586,
0.10986898094415665,
0.00532762985676527,
0.021737245842814445,
-0.01875923201441765,
0.07210822403430939,
0.016052186489105225,
-0.010296900756657124,
0.04283730685710907,
-0.023537470027804375,
0.03929503262042999,
-0.0005733054131269455,
0.0020423110108822584,
0.01300308108329773,
0.03952324762940407,
-0.040423642843961716,
0.00624941335991025,
-0.0027961137238889933,
-0.025932438671588898,
0.04070237651467323,
-0.0808163434267044,
0.05029706656932831,
0.047303613275289536,
-0.01601504720747471,
0.0492103211581707,
-0.018466593697667122,
-0.08105765283107758,
-0.006277254316955805,
0.07733702659606934,
0.0024545982014387846,
-0.11266579478979111,
0.07449556142091751,
-0.09927976876497269,
-0.04004596918821335,
0.05254387483000755,
0.08519823849201202,
-0.0043360465206205845,
-0.04809953272342682,
0.019713187590241432,
-0.023258663713932037,
-0.11003360152244568,
-0.024388428777456284,
-0.005263608880341053,
0.002746605547145009,
0.0020204719621688128,
-0.029753094539046288,
0.05604160949587822,
0.01771613582968712,
0.0180346742272377,
0.0037633231841027737,
-0.02637847699224949,
0.02979414351284504,
0.046591900289058685,
-0.02562033385038376,
0.01240677572786808,
-0.020925994962453842,
-0.05880929157137871,
0.06483471393585205,
0.004469017963856459,
-0.016760459169745445,
-0.021312376484274864,
-0.004737024195492268,
-0.0049665700644254684,
0.05547851696610451,
0.004793701693415642,
-0.09236198663711548,
0.0006851491634733975,
-0.0642796978354454,
0.031443506479263306,
0.016625193879008293,
-0.04264867305755615,
0.04858824983239174,
0.08418643474578857,
-0.026931433007121086,
0.05153941363096237,
-0.07892347872257233,
-0.034492019563913345,
0.04898543283343315,
0.027183104306459427,
0.02197844162583351,
0.04963548481464386,
-0.07901309430599213,
-0.007626347243785858,
-0.03732873871922493,
0.015705183148384094,
0.014711795374751091,
-0.02520338073372841,
-0.03478151932358742,
-0.016866525635123253,
0.040223971009254456,
-0.023923253640532494,
-0.1292634755373001,
-0.01942805014550686,
-0.04057391360402107,
0.03413315489888191,
0.0556214265525341,
-0.07025693356990814,
0.023098064586520195,
0.007575762923806906,
-0.027061007916927338,
0.14328166842460632,
-0.03889523819088936,
0.03180023655295372,
0.03122936189174652,
-0.031092559918761253,
0.05770037695765495,
0.07385555654764175,
-0.027139585465192795,
0.10322237014770508,
-0.009546050801873207,
-0.05814570561051369,
-0.03239823877811432,
-0.04696854203939438,
0.016405802220106125,
0.043241940438747406,
-0.05698573216795921,
-0.02864198572933674,
0.029097603633999825,
0.05287143215537071,
-0.06868395209312439,
-0.01488082017749548,
0.025460878387093544,
-0.043545760214328766,
0.03997032716870308,
0.034165963530540466,
-0.010832949541509151,
0.08833146840333939,
-0.04356074705719948,
0.004329564981162548,
-0.007828379981219769,
-0.06434926390647888,
-0.02150198444724083,
-0.016286732628941536,
-0.020289134234189987,
0.028927616775035858,
-0.026393070816993713,
0.0036079976707696915,
-0.040237583220005035,
-0.020486807450652122,
0.03173692151904106,
0.034055545926094055,
-0.012208777479827404,
-0.017805656418204308,
0.008475935086607933,
0.0010571499587967992,
-0.03811167925596237,
0.007903782650828362,
-0.03946248069405556,
0.0447135791182518,
-0.040404267609119415,
-0.01379151176661253,
-0.035331860184669495,
0.01874556951224804,
-0.011765928938984871,
0.004727203864604235,
0.0496830977499485,
0.013040425255894661,
-0.03788978233933449,
-0.032007329165935516,
-0.04266020283102989,
0.0014661012683063745,
-0.03969006612896919,
0.021327827125787735,
0.02368824928998947,
0.0218331478536129,
0.0005549096968024969,
-0.010945376940071583,
0.01970711164176464,
-0.0390850305557251,
-0.004463106393814087,
0.02494608424603939,
-0.001436895807273686,
0.012704208493232727,
0.026067063212394714,
-0.012673107907176018,
0.030542779713869095,
-0.033874403685331345,
-0.011036809533834457,
-0.009567704051733017,
-0.011600281111896038,
-0.02782239019870758,
0.010632305406033993,
-0.028813770040869713,
-0.0015593243297189474,
-0.01581503264605999,
-0.0036542920861393213,
0.018215827643871307,
0.015401623211801052,
-0.07136097550392151,
-0.030946210026741028,
-0.0063441116362810135,
0.05060231313109398,
0.020558355376124382,
-0.02758454903960228,
-0.03229786455631256,
-0.005455752369016409,
0.024681447073817253,
-0.0035956036299467087,
0.03104046918451786,
0.0039960057474672794,
-0.010706346482038498,
0.008256657049059868,
0.004188366699963808,
0.00806423556059599,
0.01876685582101345,
-0.046026561409235,
-0.010740632191300392,
0.00625893659889698,
-0.015218493528664112,
0.018522288650274277,
-0.014280940406024456,
0.051329392939805984,
-0.038814835250377655,
0.038534972816705704,
0.014445800334215164,
0.02855270728468895,
0.0008361233049072325,
0.0077353366650640965,
-0.03955643251538277,
-0.04522913321852684,
-0.061678800731897354,
-0.000587716291192919,
0.012737005949020386,
-0.008898352272808552,
0.029215112328529358,
0.05359748378396034,
0.04022824391722679,
0.039646491408348083,
0.008143320679664612,
0.010906416922807693,
0.03086174465715885,
-0.04996645450592041,
0.03556844964623451,
-0.023045260459184647,
-0.04379552602767944,
-0.01533183641731739,
0.020638220012187958,
-0.011807091534137726,
-0.007282150909304619,
-0.006775096524506807,
0.015096604824066162,
0.07551097124814987,
-0.0073150936514139175,
0.03222715109586716,
-0.0210547037422657,
0.03276043012738228,
0.056845296174287796,
0.024000508710741997,
-0.03529601916670799,
0.04576330631971359,
0.03947513923048973,
-0.05289560928940773,
0.004825327079743147,
0.03616731986403465,
-0.00862828642129898,
-0.012187140062451363,
-0.030802281573414803,
-0.0004878010950051248,
-0.021626396104693413,
0.032666806131601334,
-0.012633183039724827,
-0.0038058024365454912,
-0.027590325102210045,
-0.004727481864392757,
-0.008843749761581421,
0.00704715633764863,
0.01945694349706173,
0.06714152544736862,
0.008645824156701565,
-0.035120707005262375,
0.013764677569270134,
-0.08435910940170288,
0.04156055673956871,
-0.014513811096549034,
0.010419188998639584,
-0.052024997770786285,
0.026810424402356148,
0.023753128945827484,
0.006523143500089645,
-0.0004790252714883536,
-0.00007592899783048779,
0.023544548079371452,
0.01143918838351965,
0.0334913544356823,
0.01693500578403473,
0.07905905693769455,
-0.015368645079433918,
-0.0014598248526453972,
-0.0037381520960479975,
-0.05632857605814934,
-0.020518440753221512,
0.023636138066649437,
-0.031017133966088295,
0.011822032742202282,
0.025667140260338783,
0.030578074976801872,
-0.00499693164601922,
0.025287197902798653,
-0.00716362101957202,
-0.0054150172509253025,
0.0310338344424963,
0.021288610994815826,
0.051847949624061584,
-0.012218891642987728,
-0.005928890313953161,
0.026045171543955803,
0.010084941051900387,
0.028464289382100105,
-0.017062371596693993,
0.07438557595014572,
0.057248421013355255,
-0.026233315467834473,
0.031163064762949944,
0.008212797343730927,
0.0227450393140316,
-0.001922648400068283,
0.03492850065231323,
-0.04742810130119324,
-0.016638798639178276,
0.03171016275882721,
0.00297468900680542,
0.0281049944460392,
0.009920324198901653,
-0.05528224632143974,
0.007224657107144594,
0.0026590796187520027,
-0.0025378321297466755,
0.012226153165102005,
-0.010362464934587479,
0.053183622658252716,
0.026499221101403236,
-0.026332054287195206,
0.02817976474761963,
0.04329628869891167,
-0.01808110438287258,
-0.008731969632208347,
-0.03560679405927658,
0.03074830397963524,
0.011680662631988525,
0.012403341941535473,
-0.02569577470421791,
0.03547726571559906,
0.053767696022987366,
-0.0010586839634925127,
0.012885571457445621,
-0.003849751316010952,
-0.011300564743578434,
0.0638151466846466,
-0.01635909639298916,
-0.01341717503964901,
-0.04643549025058746,
-0.01738685742020607,
0.018675245344638824,
-0.01196783035993576,
0.0033734345342963934,
-0.023651961237192154,
-0.042982637882232666,
-0.007190277799963951,
0.019996676594018936,
0.03198261559009552,
-0.03374859318137169,
-0.0229654461145401,
0.042914483696222305,
0.05332912132143974,
0.041910119354724884,
0.02143697813153267,
-0.039123084396123886,
0.03057480975985527,
0.008624433539807796,
0.008982362225651741,
0.015703458338975906,
0.017416849732398987,
0.0075930384919047356,
0.018303990364074707,
0.041968103498220444,
0.009944845922291279,
-0.0037852611858397722,
0.006120175588876009,
0.030578739941120148,
-0.025877347216010094,
0.02662762999534607,
-0.013009920716285706,
0.023336034268140793,
0.01070441771298647,
0.023558707907795906,
0.0549771673977375,
-0.009411516599357128,
-0.03261880204081535,
0.02867576852440834,
-0.004313516430556774,
0.02249908074736595,
0.005526221357285976,
0.03894428536295891,
0.0499313622713089,
-0.024379272013902664,
-0.02970455400645733,
-0.012278599664568901,
-0.026537952944636345,
0.011218166910111904,
-0.008961633779108524,
-0.01604468934237957,
-0.000812273588962853,
-0.005217177793383598,
-0.04954232648015022,
-0.03055477701127529,
0.013480577617883682,
0.027805637568235397,
0.00014953550999052823,
-0.00856458768248558,
-0.003100127214565873,
-0.004557563457638025,
-0.013427458703517914,
-0.017310960218310356,
-0.05904361605644226,
-0.00006721748650306836,
0.026295175775885582,
-0.00854194164276123,
0.045564230531454086,
0.029796037822961807,
0.016133762896060944,
-0.03673546388745308,
0.02135368064045906,
0.03222182020545006,
-0.0694754421710968,
0.05393492057919502,
0.04434714466333389,
0.04437927529215813,
-0.03312504664063454,
-0.03295796737074852,
-0.06741899251937866,
-0.019018011167645454,
-0.0036986651830375195,
-0.036634184420108795,
-0.01865612529218197,
0.036654844880104065,
0.015948427841067314,
0.018511958420276642,
-0.028950361534953117,
0.01284023653715849,
-0.024689314886927605,
0.01043292973190546,
0.00014210704830475152,
-0.010423345491290092,
-0.016453910619020462,
0.012963429093360901,
-0.010946299880743027,
0.02456030249595642,
-0.032216768711805344,
-0.002884369343519211,
-0.05155399069190025,
0.02388223074376583,
0.005490617826581001,
0.02443067356944084,
-0.008721686899662018,
0.02237512357532978,
-0.055833786725997925,
0.015121540054678917,
-0.006637605372816324,
0.05958496779203415,
0.012270326726138592,
-0.0012633702717721462,
0.022049030289053917,
0.006271259393543005,
-0.009445835836231709,
0.01558555569499731,
0.0224384143948555,
0.00901192519813776,
0.02285514771938324,
0.0032339252065867186,
0.07652799040079117,
0.03185668960213661,
-0.02518870122730732,
0.05779913067817688,
-0.002463454147800803,
0.03751058131456375,
-0.00033111925586126745,
0.014782365411520004,
0.05825706943869591,
0.00806050281971693,
-0.048484381288290024,
-0.010399914346635342,
-0.019241703674197197,
-0.0017776883905753493,
0.01619837060570717,
0.08606404811143875,
0.0032283267937600613,
0.005231520626693964,
-0.018107008188962936,
0.0029343655332922935,
0.07239546626806259,
0.006444695871323347,
0.006746827624738216,
0.032798487693071365,
0.01190547551959753,
0.02883785404264927,
0.024967722594738007,
0.04893122985959053,
-0.028982430696487427,
0.03613097593188286,
0.013200121931731701,
0.008905165828764439,
0.036318715661764145,
-0.03249592334032059,
-0.005093107465654612,
0.02543896809220314,
-0.029203355312347412,
0.019849667325615883,
0.03212198615074158,
-0.008367332629859447,
0.03391595929861069,
-0.011684942059218884,
-0.015928249806165695,
0.0010925126262009144,
0.02244986593723297,
0.0040373229421675205,
-0.015474113635718822,
-0.03306250274181366,
-0.002805690048262477,
-0.017605185508728027,
0.027781959623098373,
0.007358507253229618,
-0.010227905586361885,
-0.004270152188837528,
-0.007001318968832493,
-0.00024229090195149183,
0.03451536223292351,
0.014660526067018509,
0.01595205068588257,
-0.014948774129152298,
0.021557962521910667,
0.043534088879823685,
0.03933515399694443,
-0.0061931912787258625,
0.015328149311244488,
0.03550230711698532,
-0.004120807163417339,
-0.009366732090711594,
-0.043973658233881,
-0.011680209077894688,
-0.021316945552825928,
-0.039938729256391525,
0.028076203539967537,
-0.04422488436102867,
-0.08874700218439102,
0.06618137657642365,
-0.02549569122493267,
0.0420064739882946,
-0.0026166990865021944,
0.05167617276310921,
0.02686980925500393,
0.023584263399243355,
-0.012722251005470753,
-0.05584198981523514,
-0.011794821359217167,
0.02143673039972782,
-0.06784600764513016,
0.0001209728216053918,
0.003067875513806939,
-0.028061585500836372,
0.02479119598865509,
0.028465725481510162,
0.008952167816460133,
-0.02148103527724743,
-0.013501644134521484,
0.02213628776371479,
-0.00642137648537755,
0.009061590768396854,
0.003401729743927717,
0.037414103746414185,
0.000019642942788777873,
0.005465114954859018,
0.013262423686683178,
0.03336746245622635,
-0.011589585803449154,
-0.03342185914516449,
-0.005816224496811628,
0.0009233399759978056,
0.03001883253455162,
0.004359012003988028,
-0.03320236876606941,
0.013719108887016773,
0.047406069934368134,
-0.02469978667795658,
0.012531179003417492,
-0.03473854809999466,
0.00723997550085187,
-0.019211387261748314,
0.010783528909087181,
-0.015576773323118687,
0.004746896680444479,
0.059132713824510574,
0.04501526802778244,
-0.013843081891536713,
-0.012619695626199245,
-0.04575144499540329,
-0.058153316378593445,
-0.0494319349527359,
0.019513100385665894,
0.07059600949287415,
-0.04404192417860031,
-0.0059392997063696384,
-0.010663161985576153,
-0.018933607265353203,
0.03621121123433113,
-0.013434036634862423,
-0.035016611218452454,
-0.009439123794436455,
0.03897930309176445,
-0.035232312977313995,
0.008290576748549938,
0.059271883219480515,
-0.0521102175116539,
0.015491669066250324,
0.029057426378130913,
0.015190189704298973,
0.01626421883702278,
-0.0035598566755652428,
-0.04092889651656151,
0.009024485014379025,
-0.01726871356368065,
-0.012119397521018982,
0.04042796418070793,
-0.01090727373957634,
-0.0017195871332660317,
-0.0009009843925014138,
-0.012138019315898418,
0.025642545893788338,
-0.039814967662096024,
-0.016591420397162437,
-0.051067378371953964,
0.006599124986678362,
0.011857259087264538,
-0.009000576101243496,
-0.010281629860401154,
-0.010567368939518929,
0.0210910364985466,
0.042590878903865814,
0.0403812900185585,
-0.02259594388306141,
0.018815279006958008,
0.023532092571258545,
0.007855601608753204,
-0.012677052989602089,
0.010614636354148388,
0.0276398453861475,
-0.018140440806746483,
-0.041151151061058044,
-0.009730560705065727
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Using Intel performance libraries To leverage AVX-512 and VNNI in PyTorch, Intel has designed the Intel extension for PyTorch. This software library provides out of the box speedup for training and inference, so we should definitely install it. When it comes to distributed training, the main performance bottleneck is often networking. Indeed, the different nodes in the cluster need to periodically exchange model state information to stay in sync. As transformers are large models with billions of parameters (sometimes much more), the volume of information is significant, and things only get worse as the number of nodes increase. Thus, it's important to use a communication library optimized for deep learning. In fact, PyTorch includes the torch.distributed package, which supports different communication backends. Here, we'll use the Intel oneAPI Collective Communications Library (oneCCL), an efficient implementation of communication patterns used in deep learning (all-reduce, etc.). You can learn about the performance of oneCCL versus other backends in this PyTorch blog post. Now that we're clear on building blocks, let's talk about the overall setup of our training cluster. | [
0.0528261736035347,
0.015708288177847862,
-0.016636956483125687,
0.027746548876166344,
-0.007093069609254599,
-0.01985430158674717,
-0.022056175395846367,
0.0800364762544632,
0.035804931074380875,
-0.07408963888883591,
-0.06519172340631485,
0.02932308241724968,
0.009325545281171799,
0.031414106488227844,
0.02830643765628338,
-0.022331228479743004,
0.08245076984167099,
-0.005349312908947468,
-0.047089461237192154,
0.05875259265303612,
0.056893374770879745,
-0.08301014453172684,
0.07731810212135315,
0.08279877156019211,
-0.11410263180732727,
-0.009748388081789017,
-0.04198004677891731,
-0.05110827460885048,
0.012392880395054817,
-0.020594172179698944,
-0.05565738305449486,
-0.021091513335704803,
0.04052509739995003,
-0.0371498242020607,
-0.014934484846889973,
0.0075858342461287975,
-0.030385568737983704,
0.06245718523859978,
0.004294306039810181,
0.040816668421030045,
0.013533764518797398,
0.006944905035197735,
-0.10114593803882599,
0.04306555166840553,
-0.03223689645528793,
0.02555636502802372,
-0.018346605822443962,
0.07884994149208069,
0.024675535038113594,
-0.03911207243800163,
-0.08793159574270248,
-0.0004939273931086063,
-0.03061296045780182,
0.07984450459480286,
0.03550988435745239,
0.09333501756191254,
0.02067417837679386,
-0.02141992747783661,
-0.03498176857829094,
-0.019392671063542366,
0.0415596105158329,
0.013534576632082462,
-0.03223370015621185,
-0.010276473127305508,
-0.038487356156110764,
-0.01649598404765129,
-0.009960898198187351,
-0.04133496806025505,
-0.018963109701871872,
-0.05410217121243477,
-0.026789527386426926,
0.03787197917699814,
-0.04426700249314308,
-0.014608665369451046,
-0.03828691318631172,
-0.04681926593184471,
0.02759172022342682,
-0.058172453194856644,
0.0645454078912735,
0.04021191969513893,
-0.027176514267921448,
0.13564810156822205,
0.011571848765015602,
0.05316495895385742,
0.06997039169073105,
0.051297202706336975,
-0.011552800424396992,
-0.05382050201296806,
-0.04160091653466225,
-0.040473468601703644,
-0.05737433582544327,
-0.04152165353298187,
0.06366326659917831,
0.05259433761239052,
-0.01692463643848896,
0.035524632781744,
-0.023853592574596405,
0.01486397534608841,
-0.006975308060646057,
-0.01675768382847309,
0.017222430557012558,
-0.05391243100166321,
-0.03590736910700798,
-0.012563553638756275,
-0.06224099174141884,
0.06914108246564865,
-0.009771338663995266,
-0.0500427782535553,
-0.09480825811624527,
0.054998207837343216,
-0.058752138167619705,
-0.006360329687595367,
-0.0027022010181099176,
-0.01618378795683384,
-0.08530544489622116,
-0.04097318276762962,
-0.008562276139855385,
-0.0011343606747686863,
-0.01634574867784977,
-0.03821030259132385,
-0.05732935667037964,
0.11043865233659744,
-0.0037828402128070593,
0.029146583750844002,
0.00737687898799777,
0.09015777707099915,
-0.04769071564078331,
-0.012697150930762291,
0.040310803800821304,
-0.011041498742997646,
0.04012161120772362,
-0.015444943681359291,
0.05224588140845299,
0.030835667625069618,
0.010357236489653587,
-0.05061272159218788,
-0.04609336704015732,
-0.02047579735517502,
-0.006551526486873627,
0.005155636463314295,
0.010343998670578003,
0.039902061223983765,
0.05874259024858475,
0.019874952733516693,
0.030244145542383194,
-0.020408034324645996,
-0.04482927918434143,
0.03103298880159855,
0.049051281064748764,
-0.06469602882862091,
-0.05061791464686394,
0.03601323068141937,
-0.05795590206980705,
-0.03420979902148247,
-0.011190499179065228,
0.04486270621418953,
-0.007173405960202217,
-0.04816550388932228,
-0.05435539409518242,
-0.0238046832382679,
-0.0718158558011055,
-0.01313127763569355,
-0.020712731406092644,
-0.0017053949413821101,
-0.03422478958964348,
-0.009439988061785698,
0.03482254967093468,
0.0014027052093297243,
0.020587295293807983,
0.008758926764130592,
-0.030769143253564835,
0.015138478018343449,
-0.03772194683551788,
0.013116985559463501,
0.04234900325536728,
-0.018135257065296173,
0.0066212862730026245,
0.11931318044662476,
0.05369128659367561,
-0.0018408808391541243,
-0.026796652004122734,
0.015056622214615345,
-0.04950917139649391,
0.010700760409235954,
-0.0016423946944996715,
-0.04687752202153206,
0.03290994092822075,
-0.05804057419300079,
-0.004160359501838684,
0.017548395320773125,
0.02390938065946102,
-0.01604454405605793,
0.0354548841714859,
-0.037055809050798416,
0.03386703506112099,
-0.051102716475725174,
-0.0038217944093048573,
0.06369256228208542,
0.047342296689748764,
0.012388525530695915,
0.0862390398979187,
-0.03559022396802902,
0.029216593131422997,
0.029409488663077354,
0.011594925075769424,
0.04839329421520233,
-0.04575477913022041,
-0.03212336450815201,
-0.017314966768026352,
0.0005905056605115533,
0.0043190899305045605,
-0.13922403752803802,
0.01887674257159233,
-0.0007274078670889139,
-0.01217788178473711,
0.028917135670781136,
-0.033667564392089844,
0.13048191368579865,
-0.00436153681948781,
-0.00546688586473465,
0.14174248278141022,
-0.10776935517787933,
-0.0073694465681910515,
-0.011509453877806664,
-0.04928793013095856,
0.07339394837617874,
0.07533197104930878,
0.05172894150018692,
0.06672792136669159,
-0.03018268197774887,
-0.0412745475769043,
-0.08048418909311295,
-0.08447504043579102,
0.06822598725557327,
0.04673124849796295,
-0.05568563565611839,
-0.016151418909430504,
0.02027864381670952,
0.016674380749464035,
-0.07772284001111984,
-0.030378498136997223,
0.057339224964380264,
-0.02336791902780533,
0.07519159466028214,
0.04851369559764862,
0.037533774971961975,
0.05631479620933533,
-0.05128445476293564,
0.028042616322636604,
0.04264974221587181,
-0.007590658031404018,
0.033853765577077866,
0.013252447359263897,
-0.08037528395652771,
0.033217109739780426,
0.02590305730700493,
0.03687464818358421,
-0.03831189498305321,
-0.013709420338273048,
-0.008343386463820934,
0.03247231990098953,
0.012339293956756592,
-0.042502712458372116,
-0.04917971044778824,
0.000733393884729594,
-0.05004828795790672,
0.007162445690482855,
-0.02458186447620392,
0.03245652839541435,
-0.021524833515286446,
0.005370617378503084,
-0.017287427559494972,
0.0019347164779901505,
-0.007497847545892,
0.0005990920471958816,
0.013945018872618675,
0.005760381929576397,
0.0022412496618926525,
-0.03830763325095177,
-0.0698256865143776,
-0.008296438492834568,
-0.04888718202710152,
0.0013666501035913825,
0.015906933695077896,
-0.014295350760221481,
0.006156090646982193,
-0.02740151435136795,
-0.0016111978329718113,
-0.04111864045262337,
0.015769215300679207,
-0.03226267173886299,
0.04177246615290642,
0.02510804869234562,
-0.015461890026926994,
-0.006571879144757986,
0.024045709520578384,
-0.020230736583471298,
0.013764715753495693,
-0.03059460036456585,
-0.01630748063325882,
0.0006427992484532297,
0.013627964071929455,
-0.05088808760046959,
0.028122562915086746,
0.0152297243475914,
-0.02430294081568718,
-0.013081398792564869,
-0.035124145448207855,
-0.056964803487062454,
0.028388826176524162,
-0.026311999186873436,
0.02188194915652275,
0.019062522798776627,
-0.02892586961388588,
-0.009670542553067207,
-0.012567974627017975,
0.03050139732658863,
0.014890823513269424,
-0.019090836867690086,
-0.011176157742738724,
0.021600943058729172,
0.00888853706419468,
0.0063239820301532745,
-0.004266663920134306,
0.015062214806675911,
-0.01755807176232338,
0.030348340049386024,
0.01229759119451046,
0.008326523005962372,
0.011236779391765594,
0.0142592191696167,
-0.0006351221236400306,
-0.057101111859083176,
0.01983201876282692,
0.016575166955590248,
0.015799665823578835,
-0.012025623582303524,
0.004290888551622629,
-0.015357176773250103,
-0.053381308913230896,
-0.025499705225229263,
-0.016478078439831734,
-0.01837093196809292,
0.011908135376870632,
0.005574564449489117,
0.010367844253778458,
0.03454364091157913,
0.041704390197992325,
-0.0009046946070156991,
-0.02948399819433689,
0.036377888172864914,
-0.07355370372533798,
0.022503197193145752,
0.016854871064424515,
0.0039422959089279175,
0.006665694992989302,
0.022822605445981026,
-0.04098076745867729,
-0.01796017773449421,
-0.010652437806129456,
-0.0043112486600875854,
-0.0024687934201210737,
0.00997009128332138,
-0.023877980187535286,
-0.03298911452293396,
0.007695035543292761,
0.00912622269243002,
-0.01431018952280283,
-0.032210517674684525,
0.020353708416223526,
0.011036030948162079,
-0.020900296047329903,
-0.04403282329440117,
0.0026801524218171835,
0.019563695415854454,
-0.03028656356036663,
-0.027001433074474335,
-0.00412414688616991,
0.007198953069746494,
0.022639118134975433,
-0.03190850093960762,
-0.0008472024346701801,
-0.026539605110883713,
0.04091347008943558,
0.010172516107559204,
0.004765454214066267,
0.035017482936382294,
0.05950254946947098,
-0.02510904334485531,
-0.037301402539014816,
-0.042922165244817734,
-0.040921274572610855,
-0.009707540273666382,
0.019315438345074654,
0.010288379155099392,
-0.05833141878247261,
0.03809395432472229,
0.022170674055814743,
0.003365711309015751,
-0.027734721079468727,
0.03595931455492973,
-0.013311536982655525,
-0.01120021753013134,
0.011674060486257076,
0.022268041968345642,
0.08492347598075867,
0.014345760457217693,
0.02432488463819027,
0.010750895366072655,
-0.04100050404667854,
-0.015360246412456036,
0.020404599606990814,
-0.03889285400509834,
0.034318141639232635,
0.016981936991214752,
0.02752143144607544,
0.030098969116806984,
-0.015701815485954285,
0.0031391808297485113,
0.006620590575039387,
0.022094428539276123,
-0.001892903819680214,
0.03861159086227417,
0.0022662554401904345,
-0.010410076007246971,
0.01939576119184494,
-0.02819584682583809,
0.01544065959751606,
-0.010435341857373714,
0.07477472722530365,
0.037893664091825485,
-0.019828420132398605,
0.031660597771406174,
0.00488490704447031,
0.008747691288590431,
0.0038801890332251787,
0.02575606293976307,
-0.04207940772175789,
-0.027091456577181816,
0.020385267212986946,
0.03825029730796814,
0.01609564758837223,
-0.016660993918776512,
-0.028897128999233246,
-0.007938923314213753,
0.017644325271248817,
0.0008101790444925427,
-0.004812103230506182,
-0.030750982463359833,
0.05172744393348694,
0.007962050847709179,
-0.012435591779649258,
0.009249710477888584,
0.01928490214049816,
-0.0007423920324072242,
-0.012796073220670223,
-0.04403127357363701,
0.0031464537605643272,
0.008665923960506916,
-0.004353275988250971,
-0.018543807789683342,
0.021567149087786674,
0.04594997316598892,
0.04043020308017731,
0.04126463457942009,
0.041799239814281464,
0.020575741305947304,
0.04182562604546547,
-0.026482829824090004,
-0.003589422907680273,
-0.009389053098857403,
0.019486019387841225,
0.03415694832801819,
-0.009227542206645012,
0.009917888790369034,
-0.06847244501113892,
0.004165810998529196,
-0.006383106578141451,
-0.00880342535674572,
0.05478275567293167,
-0.044078391045331955,
-0.011040065437555313,
0.02253863215446472,
0.03619173914194107,
0.05016454681754112,
-0.009242027066648006,
-0.01558714359998703,
0.002879252191632986,
0.00412457762286067,
-0.03249610587954521,
0.0011960319243371487,
-0.005746305454522371,
-0.024752959609031677,
0.019683752208948135,
-0.002196095185354352,
-0.019522186368703842,
0.007879026234149933,
0.00663391500711441,
0.006685693748295307,
-0.05676832050085068,
0.039565376937389374,
-0.022140584886074066,
0.011443567462265491,
-0.008473669178783894,
-0.00414645578712225,
0.03048497438430786,
0.0058080111630260944,
-0.03365219384431839,
0.021803071722388268,
-0.028053399175405502,
0.015170840546488762,
-0.03574667125940323,
0.008642326109111309,
0.030484121292829514,
-0.00144491926766932,
-0.005957614630460739,
0.008760802447795868,
-0.005724879913032055,
0.012751677073538303,
0.006253530737012625,
0.011861605569720268,
0.036543067544698715,
-0.01064783614128828,
-0.0271579772233963,
-0.06934934109449387,
0.048087041825056076,
0.01529807597398758,
0.010919027961790562,
-0.02450966276228428,
0.005190562456846237,
0.005877106450498104,
-0.0069952961057424545,
-0.022811992093920708,
-0.012933788821101189,
-0.00839663203805685,
-0.012019786983728409,
-0.010947821661829948,
0.05243540555238724,
0.02097783423960209,
-0.0009105958743020892,
-0.05851014703512192,
0.036050945520401,
0.014724207110702991,
-0.0266072079539299,
0.018084751442074776,
0.024226322770118713,
0.004330639261752367,
-0.03309880942106247,
-0.04341999068856239,
-0.06065550073981285,
-0.0053558386862277985,
0.035119228065013885,
-0.06892892718315125,
0.009049763903021812,
0.03988758847117424,
-0.03275072202086449,
0.016159651800990105,
-0.02198122814297676,
0.02959165908396244,
-0.07434464246034622,
0.023917507380247116,
-0.05912746861577034,
-0.0032215898390859365,
-0.013556982390582561,
-0.03376765176653862,
-0.006388598587363958,
0.03599197044968605,
0.035902708768844604,
-0.05292332544922829,
-0.07005742192268372,
0.019591305404901505,
-0.027097750455141068,
0.003607558785006404,
-0.02576289139688015,
0.01915062591433525,
-0.026324326172471046,
0.013532393611967564,
0.040748193860054016,
0.03312798961997032,
0.00538366986438632,
0.03775320202112198,
-0.0015295572811737657,
0.011277023702859879,
0.004293795675039291,
0.01467900536954403,
0.04088864475488663,
0.0006186504033394158,
0.010176843032240868,
0.01625991426408291,
0.06903938949108124,
-0.012237445451319218,
-0.024910274893045425,
-0.014278383925557137,
0.0195633415132761,
0.022647667676210403,
-0.002374872099608183,
0.000653764873277396,
0.038038305938243866,
-0.029331693425774574,
-0.039074864238500595,
0.04463852941989899,
-0.015216720290482044,
-0.01820703037083149,
0.022629814222455025,
0.006079854443669319,
0.03180580586194992,
-0.01236853376030922,
-0.025926366448402405,
0.029032820835709572,
0.07219713926315308,
0.011384678073227406,
0.020646648481488228,
-0.006935448385775089,
0.00932396575808525,
-0.014770048670470715,
0.01232669036835432,
0.021951774135231972,
-0.013959907926619053,
-0.013350674882531166,
0.013457244262099266,
0.01238130871206522,
0.033448174595832825,
-0.02388795278966427,
-0.0184429083019495,
0.05294449254870415,
-0.011114678345620632,
0.0299841295927763,
-0.002046299399808049,
0.034773409366607666,
0.012172839604318142,
-0.014082314446568489,
0.003050454892218113,
-0.0051283263601362705,
0.034786105155944824,
-0.011008922010660172,
0.04594336077570915,
-0.01973702944815159,
-0.009607740677893162,
-0.0027917232364416122,
0.021602069959044456,
0.006990204565227032,
-0.002481126692146063,
0.0254060048609972,
0.03545205667614937,
0.00307939643971622,
0.04674091190099716,
0.011074446141719818,
0.038546930998563766,
-0.006434737704694271,
0.04411104694008827,
0.02980840392410755,
0.020752253010869026,
-0.016686346381902695,
0.04261703044176102,
0.016302797943353653,
-0.014507364481687546,
-0.026745213195681572,
-0.003772436873987317,
0.000035001830838155,
0.022155525162816048,
-0.04368036240339279,
-0.01248548086732626,
-0.049747202545404434,
-0.033873334527015686,
0.05482109636068344,
-0.008899744600057602,
0.048733245581388474,
0.006520322989672422,
0.035859785974025726,
0.025405995547771454,
0.07172602415084839,
-0.03724639490246773,
-0.0848073661327362,
-0.012685089372098446,
-0.004995577037334442,
-0.034554824233055115,
0.03557702153921127,
-0.018639249727129936,
0.0003233032184652984,
-0.011596152558922768,
-0.013421219773590565,
-0.032387275248765945,
0.01206931471824646,
0.016478203237056732,
0.027808653190732002,
0.022010235115885735,
0.014502801932394505,
-0.004659668076783419,
0.039564475417137146,
0.001680881017819047,
-0.02090935967862606,
0.00434866501018405,
0.030941767618060112,
-0.009375345893204212,
-0.049293652176856995,
-0.01502780057489872,
-0.017367759719491005,
-0.016047336161136627,
-0.02593539096415043,
-0.00923088937997818,
-0.003264735685661435,
0.044156599789857864,
0.012713266536593437,
0.022672390565276146,
-0.06017716974020004,
0.02641877718269825,
-0.03782375901937485,
-0.013274478726089,
0.01458072941750288,
-0.027347488328814507,
0.021860329434275627,
0.04847066104412079,
0.024870075285434723,
-0.0154898501932621,
-0.04061688110232353,
-0.02111576683819294,
-0.02035258151590824,
0.005003137979656458,
0.09626136720180511,
-0.018035704270005226,
-0.012852787971496582,
-0.030096732079982758,
-0.009608292020857334,
0.06563537567853928,
0.022816937416791916,
-0.03631552681326866,
-0.03370555490255356,
0.0357816219329834,
-0.030974803492426872,
0.0500398725271225,
0.05901511758565903,
-0.08320225030183792,
-0.007016448769718409,
0.01137329638004303,
-0.0026198632549494505,
0.009935046546161175,
0.008352145552635193,
-0.05860007554292679,
-0.01020121481269598,
-0.04260171577334404,
-0.055693551898002625,
0.050382230430841446,
-0.02134162187576294,
0.013146348297595978,
0.02170739322900772,
0.03719141706824303,
0.03178471699357033,
-0.060824450105428696,
-0.01862572319805622,
-0.034021683037281036,
-0.03544684872031212,
0.03777577355504036,
-0.03395332023501396,
-0.03479404002428055,
-0.037316128611564636,
-0.009380915202200413,
0.026760699227452278,
0.029361316934227943,
-0.047935809940099716,
0.029353301972150803,
0.06185314059257507,
0.03975706547498703,
0.030435312539339066,
0.03904901444911957,
0.042973145842552185,
-0.05078957602381706,
-0.006420576013624668,
-0.003602511715143919
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Installing dependencies Here are the steps we will follow: * Install Intel toolkits, * Install the Anaconda distribution, * Create a new conda environment, * Install PyTorch and the Intel extension for PyTorch, * Compile and install oneCCL, * Install the transformers library. It looks like a lot, but there's nothing complicated. Here we go! Installing Intel toolkits First, we download and install the Intel OneAPI base toolkit as well as the AI toolkit. You can learn about them on the Intel website. wget https://registrationcenter-download.intel.com/akdlm/irc_nas/18236/l_BaseKit_p_2021.4.0.3422_offline.sh sudo bash l_BaseKit_p_2021.4.0.3422_offline.sh wget https://registrationcenter-download.intel.com/akdlm/irc_nas/18235/l_AIKit_p_2021.4.0.1460_offline.sh sudo bash l_AIKit_p_2021.4.0.1460_offline.sh Installing Anaconda Then, we download and install the Anaconda distribution. wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh sh Anaconda3-2021.05-Linux-x86_64.sh Creating a new conda environment We log out and log in again to refresh paths. Then, we create a new conda environment to keep things neat and tidy. yes | conda create -n transformer python=3.7.9 -c anaconda eval "$(conda shell.bash hook)" conda activate transformer yes | conda install pip cmake Installing PyTorch and the Intel extension for PyTorch Next, we install PyTorch 1.9 and the Intel extension toolkit. Versions must match. yes | conda install pytorch==1.9.0 cpuonly -c pytorch pip install torch_ipex==1.9.0 -f https://software.intel.com/ipex-whl-stable Compiling and installing oneCCL Then, we install some native dependencies required to compile oneCCL. sudo yum -y update sudo yum install -y git cmake3 gcc gcc-c++ Next, we clone the oneCCL repository, build the library and install it. Again, versions must match. source /opt/intel/oneapi/mkl/latest/env/vars.sh git clone https://github.com/intel/torch-ccl.git cd torch-ccl git checkout ccl_torch1.9 git submodule sync git submodule update --init --recursive python setup.py install cd .. Installing the transformers library Next, we install the transformers library and dependencies required to run GLUE tasks. pip install transformers datasets yes | conda install scipy scikit-learn Finally, we clone a fork of the transformersrepository containing the example we're going to run. git clone https://github.com/kding1/transformers.git cd transformers git checkout dist-sigopt We're done! Let's run a single-node job. | [
0.016808049753308296,
0.016629496589303017,
-0.00921801570802927,
0.08271784335374832,
0.03930653631687164,
-0.003973967861384153,
0.01485836785286665,
0.06564773619174957,
0.041957516223192215,
-0.03436342254281044,
-0.09250959008932114,
0.08328864723443985,
0.02351987734436989,
0.05857885256409645,
0.02140526846051216,
-0.019836297258734703,
0.06904613226652145,
0.035215526819229126,
-0.09532802551984787,
0.04950634017586708,
0.05082688480615616,
-0.03215828537940979,
0.039160992950201035,
0.10029253363609314,
-0.007206821348518133,
-0.08489956706762314,
-0.005764641799032688,
-0.018268777057528496,
-0.0407429039478302,
0.015600565820932388,
-0.058787908405065536,
-0.016662372276186943,
-0.014231358654797077,
-0.10478273779153824,
-0.002547927899286151,
0.053813863545656204,
-0.06427334994077682,
-0.022426513954997063,
0.06783686578273773,
0.024490345269441605,
0.004264864604920149,
0.04480640962719917,
-0.08417963236570358,
0.02054678462445736,
-0.04224410653114319,
0.013418872840702534,
-0.13622282445430756,
0.055902011692523956,
0.010212068445980549,
-0.03684741631150246,
-0.048363570123910904,
0.008853957988321781,
-0.006597575265914202,
-0.029820766299962997,
0.04428983852267265,
0.06269164383411407,
0.017066603526473045,
-0.004899580497294664,
-0.023109786212444305,
0.01867050677537918,
0.07110438495874405,
0.03933490812778473,
-0.03408227860927582,
0.007983043789863586,
0.02700161002576351,
-0.03378856182098389,
-0.036856770515441895,
-0.04017579182982445,
-0.045393746346235275,
-0.09004305303096771,
0.05656657740473747,
-0.0007403030758723617,
-0.017932666465640068,
-0.014395264908671379,
-0.020028043538331985,
-0.06274587661027908,
0.039734434336423874,
0.04984797537326813,
0.06791307777166367,
0.0696440115571022,
-0.011322508566081524,
0.03450139984488487,
0.034115053713321686,
0.06306824833154678,
0.07693852484226227,
-0.047740329056978226,
0.04261495918035507,
-0.011389886029064655,
-0.05022813752293587,
0.06330648064613342,
-0.029709257185459137,
-0.05922139808535576,
0.024545099586248398,
0.053532153367996216,
-0.0018565297359600663,
-0.02431730553507805,
-0.026933720335364342,
-0.026170184835791588,
0.0007731347577646375,
-0.06740222871303558,
0.01566190831363201,
0.0021584942005574703,
-0.03275023773312569,
-0.04758116230368614,
-0.018476439639925957,
-0.030801396816968918,
-0.014663713984191418,
-0.020583393052220345,
-0.0401536226272583,
0.04928675293922424,
-0.041314247995615005,
0.038684070110321045,
0.011766968294978142,
0.02801402285695076,
-0.08815192431211472,
0.018849512562155724,
0.022653253749012947,
-0.015230532735586166,
-0.006187394727021456,
0.028519654646515846,
-0.05631159991025925,
0.11091636121273041,
-0.006481400225311518,
0.049988750368356705,
0.0546928346157074,
0.12976303696632385,
-0.041761625558137894,
-0.016165541484951973,
-0.009500779211521149,
-0.08165276795625687,
0.04984729364514351,
0.008234607055783272,
0.07919728755950928,
-0.03762560337781906,
0.02195008471608162,
-0.053095653653144836,
-0.03551996126770973,
-0.0020581509452313185,
0.00694418977946043,
0.001733996788971126,
-0.004328219220042229,
0.02599075436592102,
0.0577695332467556,
0.08597102761268616,
0.04404766485095024,
-0.0005194940604269505,
-0.06721336394548416,
0.0950864851474762,
0.005614009685814381,
-0.00442228838801384,
-0.0323948971927166,
0.022408954799175262,
-0.05842868983745575,
-0.03525657206773758,
-0.02787059172987938,
0.06803525239229202,
0.0024651160929352045,
0.0020748733077198267,
-0.08484456688165665,
-0.04973592236638069,
-0.015565229579806328,
-0.03371578827500343,
-0.05733142048120499,
-0.01840745471417904,
-0.007715206127613783,
-0.07085178047418594,
0.04058191925287247,
0.02187444269657135,
0.01892695017158985,
0.011867203749716282,
-0.023670705035328865,
-0.02006513811647892,
0.0025771884247660637,
0.02777526155114174,
-0.020202431827783585,
-0.034612834453582764,
0.01705753244459629,
0.07133419066667557,
0.052391815930604935,
0.02653338573873043,
-0.06017807498574257,
0.027611732482910156,
-0.07354819029569626,
0.04708852618932724,
-0.016742663457989693,
-0.02137095481157303,
-0.026146044954657555,
-0.05647487938404083,
0.013080188073217869,
0.04835749417543411,
0.0023802565410733223,
-0.027786653488874435,
0.04980451241135597,
-0.02887914329767227,
0.09195103496313095,
-0.00766677176579833,
-0.05864235386252403,
0.0739460214972496,
0.0759599432349205,
0.06685121357440948,
-0.00785866193473339,
-0.028837643563747406,
0.05904668942093849,
-0.006704199127852917,
-0.0031446877401322126,
0.06556425988674164,
-0.02537161111831665,
-0.03288300707936287,
0.024359097704291344,
0.002780306152999401,
0.007059698458760977,
-0.11055876314640045,
-0.009539400227367878,
-0.04925157502293587,
-0.001592098968103528,
-0.03403935581445694,
-0.025517025962471962,
0.06269455701112747,
0.06007075309753418,
0.007810565177351236,
0.10782106220722198,
-0.08421207219362259,
-0.0024215918965637684,
-0.002196980407461524,
-0.03330248221755028,
0.0640234649181366,
0.08290703594684601,
0.019399775192141533,
0.027335168793797493,
-0.08316570520401001,
0.0234732236713171,
-0.0624878816306591,
-0.035469308495521545,
0.11176662892103195,
0.018406851217150688,
-0.032865483313798904,
-0.02356669306755066,
-0.024226557463407516,
0.056362394243478775,
-0.024466952309012413,
-0.004529076162725687,
0.007931981235742569,
-0.046376582235097885,
0.01978505775332451,
0.05606270954012871,
0.006826186552643776,
0.03520661219954491,
-0.002810090547427535,
0.02081972174346447,
0.008331036195158958,
-0.0361458957195282,
-0.04646463692188263,
0.05824035778641701,
-0.01406062301248312,
0.03739054873585701,
0.07999078184366226,
0.024096954613924026,
-0.03704608976840973,
0.004959556274116039,
0.02416766807436943,
0.031161900609731674,
0.013518980704247952,
-0.004491880536079407,
-0.040426939725875854,
-0.035817619413137436,
-0.007704194635152817,
0.007071669213473797,
0.0013889275724068284,
-0.01007781457155943,
-0.04387267678976059,
0.04749034717679024,
-0.045316342264413834,
0.037770774215459824,
-0.0067688780836761,
-0.021324947476387024,
0.030879683792591095,
0.04454905539751053,
0.02456008456647396,
-0.023796388879418373,
-0.06482011079788208,
0.00445255683735013,
-0.0312606543302536,
-0.019952822476625443,
0.02926279976963997,
-0.0003239802608732134,
0.03720565512776375,
-0.0197649747133255,
-0.04088793322443962,
-0.02163052186369896,
-0.0234218742698431,
-0.07109694182872772,
0.03506277874112129,
0.016653403639793396,
-0.04640694707632065,
-0.020619090646505356,
-0.010352402925491333,
-0.02351713739335537,
0.008264320902526379,
-0.035242754966020584,
-0.006674502976238728,
0.028012167662382126,
0.0023697614669799805,
0.017141826450824738,
0.02438279055058956,
-0.02657702937722206,
0.04667504504323006,
0.010408854112029076,
-0.026487188413739204,
-0.0907478928565979,
0.01913836970925331,
-0.05756860598921776,
0.03205827623605728,
0.013528331182897091,
-0.028331002220511436,
0.05281195417046547,
0.0011690874816849828,
0.011165479198098183,
-0.00014148320769891143,
-0.028346756473183632,
0.014875499531626701,
0.006344052031636238,
0.026361361145973206,
0.004600524436682463,
-0.02012575976550579,
0.019913386553525925,
0.005508881062269211,
0.0030654119327664375,
-0.005815725773572922,
-0.021462729200720787,
0.015646519139409065,
0.011441611684858799,
-0.01671690307557583,
-0.005849407520145178,
0.02068370021879673,
0.02406872622668743,
0.06400855630636215,
-0.022286036983132362,
-0.0305839441716671,
0.00027393922209739685,
0.003241034923121333,
-0.00490719685330987,
0.007032894995063543,
-0.03822952136397362,
-0.01778794825077057,
-0.006827081087976694,
0.00552073959261179,
0.03543729707598686,
0.026388997212052345,
0.006657746154814959,
-0.02829412929713726,
0.019713150337338448,
-0.04259392246603966,
0.02904270961880684,
-0.01129608042538166,
-0.03303752467036247,
-0.0026180704589933157,
-0.04626120999455452,
-0.028101583942770958,
-0.03042544610798359,
-0.03659798204898834,
-0.0053048888221383095,
0.015906130895018578,
0.02570766769349575,
0.017374282702803612,
-0.024955376982688904,
0.013975569978356361,
0.05986374616622925,
0.019772270694375038,
-0.053636133670806885,
0.02230125479400158,
0.02173231728374958,
-0.04013111814856529,
-0.00419294647872448,
0.030803604051470757,
0.03423092141747475,
-0.018053049221634865,
-0.0061490945518016815,
0.02410675399005413,
-0.06049701198935509,
0.019709402695298195,
-0.029409058392047882,
0.011936943046748638,
-0.006017306353896856,
0.024033794179558754,
-0.06376670300960541,
-0.007330507040023804,
0.033329930156469345,
0.0020291798282414675,
-0.032577965408563614,
-0.05207527428865433,
-0.05756261572241783,
-0.02764495275914669,
-0.06020832434296608,
0.033011097460985184,
-0.0013619482051581144,
-0.04577220231294632,
0.030480721965432167,
0.04621043801307678,
0.03888105973601341,
-0.03324397653341293,
0.03580985590815544,
-0.027265843003988266,
-0.006370512768626213,
-0.010865126736462116,
0.038634415715932846,
-0.018955087289214134,
0.03363639488816261,
-0.0050746724009513855,
-0.015113645233213902,
-0.05497629940509796,
0.0064836060628294945,
-0.01663029007613659,
-0.04421253502368927,
-0.003672019811347127,
0.00001569614869367797,
0.014092523604631424,
-0.0030770038720220327,
0.002208365360274911,
-0.0037582064978778362,
-0.03166046738624573,
-0.008145704865455627,
-0.015719415619969368,
0.01900792121887207,
0.01847703941166401,
0.0015487705823034048,
-0.019180983304977417,
0.001428114133886993,
0.03418191894888878,
-0.021573154255747795,
0.04389509931206703,
0.016099166125059128,
-0.007513684686273336,
0.0038945674896240234,
-0.030203312635421753,
0.05544722452759743,
0.04595930501818657,
0.02046380005776882,
-0.005419140215963125,
-0.023708924651145935,
-0.013026447966694832,
0.021598437801003456,
0.03427312523126602,
-0.03165682032704353,
0.012210531160235405,
0.029315028339624405,
0.006033521611243486,
-0.005964967887848616,
-0.008435599505901337,
-0.014253604225814342,
0.018581777811050415,
0.04707713425159454,
-0.011704489588737488,
0.0047546387650072575,
0.00024240049242507666,
-0.01163005456328392,
0.03691346198320389,
-0.06845051050186157,
-0.016464117914438248,
-0.031107541173696518,
-0.01705360598862171,
-0.009738004766404629,
0.06652770936489105,
-0.009684226475656033,
0.01780182681977749,
0.051704831421375275,
0.024253813549876213,
0.002056193072348833,
0.05651051923632622,
-0.04217151179909706,
0.004491403233259916,
-0.003595823422074318,
0.015729539096355438,
0.02274727076292038,
0.0020261206664144993,
0.008884389884769917,
-0.10358069092035294,
-0.02520616725087166,
-0.021545695140957832,
-0.03356845676898956,
0.039022717624902725,
-0.01356649212539196,
-0.050484832376241684,
0.0035242114681750536,
0.009702805429697037,
0.03773636743426323,
0.010074478574097157,
0.037011850625276566,
-0.0014195749536156654,
-0.003045440185815096,
-0.01305423490703106,
0.004134599585086107,
-0.00935081671923399,
-0.03280109539628029,
0.037036094814538956,
0.021101748570799828,
-0.0007067839615046978,
-0.0011011863825842738,
-0.015618889592587948,
-0.0017173599917441607,
-0.003262073965743184,
0.05459678918123245,
-0.01202483382076025,
0.012689548544585705,
0.005707569885998964,
-0.015266415663063526,
0.03905779868364334,
-0.013186088763177395,
-0.0453382283449173,
0.014334817416965961,
0.004577183164656162,
-0.012812105938792229,
-0.015968849882483482,
0.08627639710903168,
0.0010774842230603099,
0.01470328588038683,
-0.00037844208418391645,
0.033640023320913315,
-0.018114950507879257,
0.006845574826002121,
0.002152892528101802,
0.00020565847808029503,
0.019698599353432655,
-0.015276200138032436,
-0.020724330097436905,
-0.03476580232381821,
0.009961015544831753,
-0.0009221081854775548,
0.008026886731386185,
-0.02664816938340664,
-0.0021957929711788893,
0.03917760029435158,
0.00910282600671053,
0.006650986615568399,
-0.010582886636257172,
-0.025870898738503456,
0.021718725562095642,
-0.01631643995642662,
0.004360619932413101,
0.03022313117980957,
0.02875075675547123,
-0.027741892263293266,
0.035485316067934036,
0.06065645441412926,
0.000021120053133927286,
-0.03254125639796257,
0.022518940269947052,
-0.004352863412350416,
-0.005468591582030058,
-0.051336321979761124,
-0.03776823729276657,
0.006457330193370581,
0.02394108660519123,
-0.014083491638302803,
0.045282699167728424,
0.04364091530442238,
0.007284631486982107,
-0.0032823989167809486,
-0.036267127841711044,
0.030860992148518562,
-0.019414201378822327,
0.006611580960452557,
-0.03434164077043533,
0.022656667977571487,
0.0227691438049078,
0.007903676480054855,
-0.009742221795022488,
-0.008265400305390358,
0.022802293300628662,
-0.014733478426933289,
-0.04406066983938217,
0.010961021296679974,
-0.04151887819170952,
-0.04336189478635788,
-0.020689615979790688,
-0.009222118183970451,
-0.014719372615218163,
-0.02959861233830452,
-0.01953037455677986,
0.04890991747379303,
0.04055549204349518,
0.02492312528192997,
0.005258745513856411,
0.012951564975082874,
-0.027707332745194435,
0.037004146724939346,
0.02911200001835823,
-0.01969590224325657,
0.0032477627974003553,
0.02734021283686161,
0.046851448714733124,
-0.013686118647456169,
-0.04617425426840782,
-0.036858510226011276,
0.041926104575395584,
0.0672534927725792,
-0.0020264035556465387,
0.006370261777192354,
0.040009964257478714,
-0.04440583661198616,
-0.03139520436525345,
-0.025596201419830322,
-0.01492338813841343,
-0.0204748697578907,
-0.004077139776200056,
-0.006951256189495325,
0.011535538360476494,
-0.019958781078457832,
-0.04338609799742699,
0.040495481342077255,
0.026467550545930862,
0.02871771901845932,
0.035096537321805954,
-0.020003821700811386,
0.037163931876420975,
-0.0068613276816904545,
0.004152387380599976,
0.006869899109005928,
0.010021019726991653,
0.03454842045903206,
0.028123104944825172,
-0.00959191843867302,
0.036560673266649246,
0.015831679105758667,
-0.020741429179906845,
0.01885242946445942,
0.02146991342306137,
-0.03452707454562187,
-0.0014959851978346705,
0.04668564349412918,
-0.05408014729619026,
-0.05252595618367195,
-0.002777987392619252,
-0.07753729820251465,
0.03229917958378792,
-0.02065485157072544,
0.02269143797457218,
-0.042164888232946396,
-0.03521089255809784,
-0.022926948964595795,
-0.005240022670477629,
0.006952923722565174,
0.027308324351906776,
0.013746079988777637,
0.04847381263971329,
0.004572276957333088,
0.008416985161602497,
-0.0012128603411838412,
0.03563212603330612,
-0.04658227413892746,
0.05456477776169777,
-0.022718366235494614,
0.003240514313802123,
-0.025347771123051643,
0.012593886815011501,
0.01695294864475727,
0.03949996829032898,
-0.028655847534537315,
0.024705328047275543,
0.023725442588329315,
0.016882428899407387,
-0.05381181463599205,
0.027541501447558403,
-0.03788504749536514,
-0.01915179193019867,
0.037186987698078156,
-0.027530638501048088,
-0.0034695903304964304,
-0.022159390151500702,
0.03616476431488991,
0.04659586772322655,
-0.00937564205378294,
-0.016213446855545044,
-0.03877725452184677,
-0.03465891629457474,
-0.0026525838766247034,
-0.026001330465078354,
0.03482603654265404,
-0.014757107943296432,
0.057695403695106506,
-0.0008145858882926404,
0.023534202948212624,
-0.037298981100320816,
-0.0027936911210417747,
0.00852544791996479,
-0.01882277801632881,
0.032993167638778687,
-0.0045102620497345924,
-0.0015936921117827296,
0.05823522061109543,
-0.0055511766113340855,
-0.019657863304018974,
0.015048585832118988,
0.04501261189579964,
-0.017298633232712746,
-0.04499943554401398,
0.008082378655672073,
-0.03495466709136963,
0.01877245493233204,
-0.02744322083890438,
-0.024092882871627808,
-0.012892643921077251,
0.016345558688044548,
0.037599459290504456,
0.024047937244176865,
-0.07428152114152908,
-0.004933393560349941,
-0.05876440927386284,
-0.020990945398807526,
0.01609771139919758,
0.006290704011917114,
0.031116312369704247,
0.061170633882284164,
-0.00020259017765056342,
-0.035566262900829315,
-0.03530242294073105,
-0.0249466635286808,
0.03348594903945923,
0.024452760815620422,
0.05154306814074516,
-0.022112373262643814,
-0.0015308887232095003,
-0.024607380852103233,
0.011729986406862736,
0.03143295645713806,
0.007026112172752619,
-0.001568493782542646,
0.0046103838831186295,
-0.00527730630710721,
-0.017832312732934952,
0.019349567592144012,
0.011623620055615902,
0.002134957816451788,
0.015417820774018764,
0.023459242656826973,
0.011446828953921795,
0.02253951132297516,
0.00008394665928790346,
-0.04256274551153183,
0.005569165572524071,
-0.0250883549451828,
-0.007493783254176378,
0.011837108060717583,
-0.020662959665060043,
-0.013354185037314892,
-0.008639474399387836,
0.0019796357955783606,
0.018085086718201637,
0.0012488880893215537,
-0.042495064437389374,
-0.013449763879179955,
-0.03441644459962845,
0.09520777314901352,
-0.029076218605041504,
-0.05995599552989006,
-0.017742447555065155,
0.018877452239394188,
0.00603651674464345,
0.046032268553972244,
-0.020205147564411163,
0.00945177674293518,
-0.0074633280746638775,
0.0549539178609848,
0.035142071545124054,
0.03531713783740997,
0.0013456472661346197,
0.013449239544570446,
-0.025625409558415413,
0.008613369427621365
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Setting up our cluster In this demo, I'm using Amazon EC2 instances running Amazon Linux 2 (c6i.16xlarge, 64 vCPUs, 128GB RAM, 25Gbit/s networking). Setup will be different in other environments, but steps should be very similar. Please keep in mind that you will need 4 identical instances, so you may want to plan for some sort of automation to avoid running the same setup 4 times. Here, I will set up one instance manually, create a new Amazon Machine Image (AMI) from this instance, and use this AMI to launch three identical instances. From a networking perspective, we will need the following setup: * Open port 22 for ssh access on all instances for setup and debugging. * Configure password-less ssh between the master instance (the one you'll launch training from) and all other instances (master included). * Open all TCP ports on all instances for oneCCL communication inside the cluster. Please make sure NOT to open these ports to the external world. AWS provides a convenient way to do this by only allowing connections from instances running a particular security group. Here's how my setup looks. Now, let's provision the first instance manually. I first create the instance itself, attach the security group above, and add 128GB of storage. To optimize costs, I have launched it as a spot instance. Once the instance is up, I connect to it with ssh in order to install dependencies. | [
0.02811637707054615,
0.04956305772066116,
0.03151949867606163,
0.07045909017324448,
0.10513612627983093,
0.016155023127794266,
0.019087959080934525,
0.02354264445602894,
-0.07074525207281113,
-0.07285985350608826,
-0.00006886886694701388,
0.04330162703990936,
0.030068112537264824,
0.08098969608545303,
0.020246608182787895,
-0.008300094865262508,
0.021900005638599396,
-0.04473594203591347,
-0.037882111966609955,
-0.018345000222325325,
-0.029006551951169968,
0.05718734487891197,
-0.040597621351480484,
0.09377935528755188,
0.05104781687259674,
0.015651885420084,
0.0010011914419010282,
0.03226017579436302,
0.02753755822777748,
0.0010750205256044865,
-0.01474926620721817,
0.0395035557448864,
0.02765158750116825,
-0.021501995623111725,
0.030651690438389778,
0.03320197016000748,
-0.056569237262010574,
0.0971316397190094,
0.05837812274694443,
-0.05959601327776909,
-0.0356416255235672,
-0.05105571076273918,
-0.02535039186477661,
0.06580475717782974,
-0.03460093215107918,
0.044153306633234024,
-0.1495683193206787,
0.06041615456342697,
-0.008486839942634106,
0.03948895260691643,
-0.09787813574075699,
0.0032895244657993317,
0.05606401711702347,
-0.038321539759635925,
-0.007103573065251112,
0.009681880474090576,
0.017643222585320473,
-0.02142808772623539,
0.04316273331642151,
0.008168941363692284,
0.07775493711233139,
0.008311254903674126,
-0.03947857767343521,
0.03052772954106331,
-0.006515652872622013,
-0.06110918149352074,
0.04188023507595062,
0.02847818285226822,
-0.026771368458867073,
-0.034693218767642975,
0.021141279488801956,
-0.04035799577832222,
-0.018420742824673653,
-0.0003302446857560426,
0.02706398442387581,
-0.09193749725818634,
0.04330635815858841,
-0.043745893985033035,
0.07031544297933578,
0.0657426193356514,
-0.019873008131980896,
0.021534981206059456,
-0.07900234311819077,
-0.0022932470310479403,
0.030854959040880203,
-0.03367892652750015,
-0.042731862515211105,
0.038636330515146255,
-0.048558443784713745,
0.06771311163902283,
0.0029113697819411755,
-0.04687995836138725,
-0.019743066281080246,
0.04115091264247894,
0.004153736401349306,
-0.04161929339170456,
0.03106330707669258,
-0.03117922507226467,
0.020828580483794212,
0.02372758835554123,
0.013545424677431583,
0.01582290045917034,
0.022255511954426765,
-0.01904577761888504,
-0.06288442760705948,
0.11677553504705429,
0.03188415244221687,
-0.12868423759937286,
-0.02795877866446972,
0.0439283549785614,
0.016767891123890877,
-0.05772378668189049,
-0.0006802630960009992,
0.02969452179968357,
-0.08273252099752426,
0.009295382536947727,
0.032553307712078094,
-0.10310516506433487,
0.016611579805612564,
-0.020881444215774536,
-0.04273460805416107,
0.10409227758646011,
-0.003023921512067318,
0.06394913047552109,
-0.035452209413051605,
0.017701027914881706,
-0.015454682521522045,
-0.01958584412932396,
-0.0345427580177784,
-0.06062193959951401,
0.050703518092632294,
-0.034423090517520905,
0.0941772535443306,
-0.014585458673536777,
0.004860083572566509,
-0.022634612396359444,
0.0006021515000611544,
0.02220851555466652,
0.048682890832424164,
0.02291031740605831,
-0.027320249006152153,
0.05319564789533615,
0.005688830744475126,
0.06256631761789322,
0.032798927277326584,
0.08499792218208313,
-0.06996040046215057,
-0.02185922861099243,
0.010300668887794018,
0.06664561480283737,
-0.08893056213855743,
0.009277601726353168,
-0.08652543276548386,
-0.08699456602334976,
0.018196798861026764,
0.07409106194972992,
-0.0056248074397444725,
-0.03488723933696747,
-0.07316108793020248,
-0.016776280477643013,
0.006260184105485678,
-0.006811956875026226,
-0.05518617108464241,
0.018130477517843246,
0.010465523228049278,
-0.0360509492456913,
0.03912186622619629,
-0.02106262557208538,
0.022786464542150497,
0.020069776102900505,
-0.010108298622071743,
0.02238013781607151,
0.010256147012114525,
0.05542260780930519,
-0.010624817572534084,
0.017342859879136086,
0.07026257365942001,
0.04706994816660881,
0.025772778317332268,
-0.013155748136341572,
-0.04030287638306618,
-0.005886613391339779,
-0.02356237731873989,
0.04867329075932503,
-0.02903597243130207,
-0.0463126040995121,
0.015690559521317482,
-0.03870205581188202,
0.010113650001585484,
0.004688143264502287,
0.036461301147937775,
-0.01982959173619747,
0.04595082625746727,
0.006052122917026281,
0.048445239663124084,
0.05041451379656792,
0.007283136248588562,
0.07573364675045013,
0.03664441779255867,
0.08749395608901978,
-0.0014435532502830029,
0.048808854073286057,
0.026156635954976082,
-0.0021705380640923977,
-0.06031213328242302,
0.07130072265863419,
-0.04663645848631859,
-0.07151146978139877,
0.06919004768133163,
-0.009386023506522179,
-0.05512399971485138,
-0.08675357699394226,
-0.055068839341402054,
0.017364664003252983,
0.011181238107383251,
0.02183813601732254,
0.003628460457548499,
0.027557412162423134,
0.04008709639310837,
0.0383434072136879,
0.13357007503509521,
0.0028769036289304495,
0.011047505773603916,
0.07802864909172058,
-0.02897610142827034,
-0.0025761702563613653,
0.05347338318824768,
0.010077728889882565,
0.1544943004846573,
-0.008715271018445492,
-0.04472794383764267,
-0.05174987390637398,
-0.005221610423177481,
0.03397204726934433,
0.010472477413713932,
0.07612255215644836,
0.016618890687823296,
0.0021153034176677465,
0.059017978608608246,
-0.04158300533890724,
-0.02882750704884529,
-0.021065162494778633,
-0.04388488456606865,
-0.01637156680226326,
0.028836911544203758,
-0.004656502511352301,
0.07835854589939117,
-0.007095268461853266,
-0.05608811229467392,
-0.04512462764978409,
-0.06402468681335449,
-0.022801801562309265,
-0.023829782381653786,
-0.034094393253326416,
0.08309891819953918,
-0.04379954934120178,
-0.0052966405637562275,
-0.035352673381567,
-0.002105538733303547,
0.012920127250254154,
-0.013856729492545128,
0.03752056136727333,
-0.0283452570438385,
-0.05985189229249954,
0.023770945146679878,
-0.037358466535806656,
0.003674456151202321,
-0.035757243633270264,
0.02280210144817829,
-0.04646248742938042,
0.04755481332540512,
-0.021549714729189873,
0.034158237278461456,
-0.017546260729432106,
-0.029683614149689674,
-0.04400629550218582,
0.01351979561150074,
0.008509251289069653,
0.03319341316819191,
-0.0060690282844007015,
0.010268357582390308,
-0.07962994277477264,
-0.0072546713054180145,
0.0009945165365934372,
0.005835175048559904,
0.04857369139790535,
-0.005507664754986763,
-0.03555693104863167,
0.012333599850535393,
0.011735444888472557,
0.01406227145344019,
0.048736173659563065,
0.024245169013738632,
0.039342645555734634,
-0.007147505413740873,
0.0063644773326814175,
-0.028399258852005005,
-0.006588854361325502,
-0.012776937335729599,
-0.009253619238734245,
0.012467357330024242,
0.007367734797298908,
-0.0737445205450058,
-0.02030414529144764,
-0.07142610847949982,
-0.016363024711608887,
0.019886374473571777,
-0.01960107870399952,
-0.10435403883457184,
0.031084779649972916,
-0.00391629571095109,
0.04629547894001007,
-0.004726041574031115,
-0.028645798563957214,
0.06769620627164841,
-0.02577642910182476,
0.029204444959759712,
-0.0036264038644731045,
-0.02011379599571228,
0.016759756952524185,
-0.017898516729474068,
0.0010363978799432516,
0.005579623859375715,
0.03320907801389694,
-0.015955686569213867,
-0.016606491059064865,
0.02304072119295597,
0.017514444887638092,
-0.046682827174663544,
0.04272671043872833,
-0.00451961625367403,
0.009472651407122612,
-0.018396005034446716,
-0.006417033262550831,
-0.01651296764612198,
0.04395058751106262,
0.017661435529589653,
-0.030898550525307655,
-0.032778482884168625,
-0.008473962545394897,
-0.021131794899702072,
-0.015917861834168434,
-0.05462722107768059,
-0.030726861208677292,
0.014909269288182259,
0.02565506473183632,
0.03761650249361992,
0.031371019780635834,
-0.015127853490412235,
0.002219934482127428,
0.05888922140002251,
-0.045747268944978714,
0.030170941725373268,
0.029210256412625313,
0.020604219287633896,
0.011939214542508125,
0.046403199434280396,
0.009968270547688007,
-0.018231403082609177,
-0.021417489275336266,
-0.006326266564428806,
-0.015031321905553341,
-0.015294388867914677,
-0.042873017489910126,
-0.016099806874990463,
0.05676652863621712,
0.04412376880645752,
-0.038206953555345535,
-0.014380712062120438,
-0.001161390682682395,
0.021677719429135323,
-0.04024241492152214,
0.000851174583658576,
-0.008363927714526653,
0.011351189576089382,
0.0407949835062027,
0.010233570821583271,
0.013050994835793972,
0.011117218993604183,
0.010707720182836056,
-0.010372812859714031,
0.002134509850293398,
-0.03136769309639931,
-0.024566976353526115,
-0.026638107374310493,
-0.01639433577656746,
0.03945620357990265,
0.037678878754377365,
0.0058676740154623985,
0.008049871772527695,
-0.032532285898923874,
-0.060937169939279556,
-0.0007623618585057557,
-0.021408261731266975,
-0.0205274298787117,
-0.03963093459606171,
0.028533101081848145,
0.022708460688591003,
-0.010838737711310387,
-0.0019471644191071391,
0.014096969738602638,
-0.007526077795773745,
0.0133396927267313,
-0.03136701136827469,
0.02245391719043255,
0.008867215365171432,
0.011873602867126465,
0.011329034343361855,
0.02606361359357834,
-0.0006315101054497063,
0.028013454750180244,
0.05523531883955002,
0.01794750615954399,
-0.010144832544028759,
-0.014567946083843708,
-0.021298889070749283,
-0.0010185273131355643,
0.015276279300451279,
0.008503728546202183,
0.003931933082640171,
0.016459347680211067,
-0.042689669877290726,
0.015883957967162132,
0.01803991012275219,
-0.023897837847471237,
0.002503642812371254,
0.03704402595758438,
0.019350267946720123,
-0.016278229653835297,
0.032309334725141525,
0.030488481745123863,
0.01680150255560875,
-0.02565152570605278,
-0.00968647189438343,
0.08240165561437607,
0.011918814852833748,
0.0009132620762102306,
-0.03188613802194595,
-0.013813544996082783,
-0.043229177594184875,
0.03767251968383789,
-0.0032549663446843624,
-0.03719755634665489,
-0.017942411825060844,
-0.014845415018498898,
0.025491196662187576,
0.051425494253635406,
-0.03513673320412636,
0.009639352560043335,
0.005588393192738295,
0.009977275505661964,
-0.012516126967966557,
0.026913508772850037,
0.04911581426858902,
-0.006000217981636524,
-0.02956588752567768,
-0.014802243560552597,
0.02569442242383957,
-0.0017533351201564074,
0.007874746806919575,
-0.04000713676214218,
0.04496316611766815,
0.010327460244297981,
-0.018308399245142937,
-0.001939638634212315,
0.0003511849499773234,
0.007780774030834436,
0.04033122956752777,
-0.012131164781749249,
0.016879433766007423,
-0.040341757237911224,
0.004332942888140678,
0.014193149283528328,
0.01667892560362816,
0.0007386018405668437,
-0.010909896343946457,
-0.012679008767008781,
-0.01328460592776537,
0.0015324184205383062,
-0.010328809730708599,
-0.03652055934071541,
-0.05420181155204773,
0.02554781548678875,
0.01969682052731514,
0.009881295263767242,
0.015402952209115028,
0.015084111131727695,
0.006274851504713297,
-0.031179582700133324,
0.00884897168725729,
-0.04988010972738266,
-0.03437606990337372,
-0.029832178726792336,
0.00897916592657566,
0.04391883313655853,
-0.015849944204092026,
0.030687805265188217,
0.03823237866163254,
-0.0074789742939174175,
-0.027461126446723938,
0.06698030233383179,
-0.01748405024409294,
0.031032314524054527,
-0.013479904271662235,
0.004629866685718298,
0.00406586704775691,
-0.02169135957956314,
0.008049236610531807,
0.013807505369186401,
0.059044741094112396,
-0.0011003129184246063,
-0.0017887112917378545,
0.03147389739751816,
0.029647672548890114,
0.011476158164441586,
-0.014430110342800617,
-0.0032986928708851337,
-0.012119160033762455,
-0.0018451543292030692,
0.0074411071836948395,
-0.029286058619618416,
0.011478366330265999,
0.021253883838653564,
-0.030048999935388565,
-0.061551284044981,
0.021347636356949806,
0.03456629067659378,
0.009372450411319733,
-0.002082900842651725,
-0.04114227369427681,
0.020124142989516258,
0.0033101795706897974,
-0.023194260895252228,
-0.01134101115167141,
-0.000800376757979393,
-0.021904824301600456,
-0.01853620633482933,
0.039312202483415604,
0.018576396629214287,
-0.014056980609893799,
-0.026828721165657043,
0.02774464152753353,
0.014643264934420586,
-0.01399047952145338,
0.007725815754383802,
0.002070489339530468,
0.00011905093560926616,
0.011636210605502129,
-0.06227843835949898,
-0.014367037452757359,
0.02237081713974476,
-0.02942262403666973,
-0.054456569254398346,
-0.031429681926965714,
0.04815751314163208,
-0.023287689313292503,
0.04103493317961693,
-0.014127667061984539,
0.006346722599118948,
0.0015258598141372204,
0.04045124724507332,
-0.04926750436425209,
0.03707154840230942,
-0.0001742596650728956,
-0.020151717588305473,
-0.014021950773894787,
0.013121754862368107,
-0.042918816208839417,
0.015297859907150269,
-0.025064604356884956,
0.03904971852898598,
0.01206765417009592,
-0.04188913479447365,
-0.021936703473329544,
-0.025899453088641167,
-0.03643691539764404,
0.012741432525217533,
0.011585359461605549,
0.025660673156380653,
-0.010003496892750263,
0.0055594006553292274,
-0.022049790248274803,
-0.018939923495054245,
-0.0013822128530591726,
0.009427270852029324,
0.015346041880548,
-0.07330688089132309,
0.03295053914189339,
-0.023587608709931374,
0.04113555699586868,
0.005010460969060659,
-0.022664103657007217,
0.0020894412882626057,
0.03274943307042122,
0.0029608351178467274,
0.0066781616769731045,
0.031329307705163956,
0.02171095460653305,
0.021005811169743538,
-0.006668205838650465,
-0.01451227255165577,
-0.006762620527297258,
-0.05405513942241669,
0.03013492189347744,
-0.02104816399514675,
-0.044175371527671814,
0.008969072252511978,
-0.0046381643041968346,
0.03288963437080383,
0.0792832300066948,
-0.011674819514155388,
-0.013346605002880096,
0.008339795283973217,
0.018746498972177505,
-0.03693826124072075,
0.028950301930308342,
0.03365389630198479,
0.018329136073589325,
0.002954955445602536,
-0.002664657076820731,
-0.00534557830542326,
0.03198793902993202,
-0.024880824610590935,
-0.040616828948259354,
-0.007503665052354336,
-0.06167939677834511,
-0.000441738055087626,
-0.035829659551382065,
0.0316055566072464,
-0.05032787099480629,
-0.04305494576692581,
0.030129367485642433,
0.012695606797933578,
0.018694864585995674,
-0.005929672159254551,
0.013280020095407963,
-0.04686802625656128,
-0.02217193879187107,
-0.03703876957297325,
0.004039661958813667,
-0.022286977618932724,
-0.05456950142979622,
-0.0349980853497982,
0.010212118737399578,
0.0041848220862448215,
-0.004319772589951754,
-0.017538564279675484,
-0.02686837501823902,
-0.044999439269304276,
0.02066884934902191,
-0.019527094438672066,
0.013724243268370628,
-0.043805088847875595,
0.00019807989883702248,
0.038902368396520615,
0.028612622991204262,
-0.003077802015468478,
0.009416314773261547,
0.029740430414676666,
-0.02508007362484932,
-0.015457047149538994,
0.0021257849875837564,
-0.05504179745912552,
-0.04622342064976692,
0.03675353527069092,
-0.015732932835817337,
0.06084977090358734,
-0.01913982816040516,
0.024951055645942688,
-0.022793099284172058,
-0.008878964930772781,
0.06296350806951523,
-0.02693098969757557,
0.025972334668040276,
0.04698169231414795,
-0.01339016854763031,
0.04404710233211517,
-0.018924761563539505,
0.013469291850924492,
0.008538876660168171,
0.03081813082098961,
-0.03269621729850769,
-0.004737312905490398,
0.024818826466798782,
-0.02637583762407303,
-0.008695007301867008,
0.013646217994391918,
0.02593182399868965,
0.05948350578546524,
-0.03381134197115898,
0.04856933653354645,
-0.006115642376244068,
0.012725518085062504,
0.013082216493785381,
-0.002197631634771824,
-0.03055577538907528,
-0.007296624127775431,
0.05402417108416557,
-0.008291473612189293,
-0.057380784302949905,
-0.03453492373228073,
-0.0405261293053627,
-0.005337386392056942,
0.030687710270285606,
-0.07381626963615417,
-0.019335763528943062,
0.00443847943097353,
-0.004764713812619448,
-0.05929779261350632,
0.02184356190264225,
0.009974367916584015,
-0.010729367844760418,
0.02389327436685562,
-0.012445448897778988,
-0.04833970591425896,
-0.017202802002429962,
0.003051473991945386,
0.062329091131687164,
-0.01982014998793602,
0.03397893160581589,
0.010954809375107288,
-0.016576742753386497,
0.010758010670542717,
0.039195943623781204,
0.00998852401971817,
0.016488712280988693,
0.047313716262578964,
0.011987172067165375,
-0.04198571294546127,
0.012961074709892273,
-0.009135754778981209,
-0.0066441879607737064,
0.04518327862024307,
-0.017856668680906296,
-0.012177717871963978,
0.08122921735048294,
0.002275039441883564,
-0.01165142934769392,
-0.01724320463836193,
-0.012993071228265762,
-0.010758885182440281,
0.032803282141685486,
0.009838166646659374,
-0.05899444594979286,
-0.03160814195871353,
-0.014780786819756031,
0.01595916971564293,
0.016244934871792793,
-0.07100847363471985,
-0.03783174976706505,
-0.017423242330551147,
0.012540376745164394,
-0.03004971332848072,
-0.0209683608263731,
0.01992981880903244,
0.005220229737460613,
0.00961911492049694,
0.01762855052947998,
-0.004789412021636963,
-0.0210119616240263,
0.0009832136565819383,
0.0473499521613121,
0.007713333237916231,
0.041511889547109604,
0.008897418156266212,
0.015462568029761314,
0.02216964215040207,
-0.013239163905382156
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Running a distributed job with oneCCL On the master node, I use mpirunto launch a 2-node job: -np (number of processes) is set to 2 and -ppn (process per node) is set to 1. Hence, the first two nodes in hostfile will be selected. mpirun -f hostfile -np 2 -ppn 1 -genv I_MPI_PIN_DOMAIN=[0xfffffff0] \ -genv OMP_NUM_THREADS=28 python run_glue.py \ --model_name_or_path distilbert-base-uncased --task_name mrpc \ --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 \ --learning_rate 2e-5 --num_train_epochs 3 --output_dir /tmp/mrpc/ \ --overwrite_output_dir True --xpu_backend ccl --no_cuda True Within seconds, a job starts on the first two nodes. The job completes in 4 minutes and 39 seconds, a 1.7x speedup. Setting -np to 4 and launching a new job, I now see one process running on each node of the cluster. Training completes in 2 minutes and 36 seconds, a 3x speedup. One last thing. Changing --task_name to qqp, I also ran the Quora Question Pairs GLUE task, which is based on a much larger dataset (over 400,000 training samples). The fine-tuning times were: * Single-node: 11 hours 22 minutes, * 2 nodes: 6 hours and 38 minutes (1.71x), * 4 nodes: 3 hours and 51 minutes (2.95x). It looks like the speedup is pretty consistent. Feel free to keep experimenting with different learning rates, batch sizes and oneCCL settings. I'm sure you can go even faster! | [
0.025818465277552605,
0.0038829820696264505,
-0.005463773384690285,
0.045894671231508255,
0.03495107591152191,
0.05016227439045906,
-0.04544937610626221,
0.016295386478304863,
-0.07953833788633347,
0.0003479947044979781,
-0.04606494680047035,
0.03487599641084671,
-0.004049487877637148,
0.06526370346546173,
0.022966956719756126,
-0.012655503116548061,
0.009760808199644089,
-0.04717191308736801,
-0.06730128824710846,
-0.06290991604328156,
0.020389098674058914,
0.01937701739370823,
0.029204396530985832,
0.09509718418121338,
-0.04807128757238388,
-0.03497378155589104,
-0.04095739498734474,
-0.028213467448949814,
-0.03177435323596001,
-0.01118826400488615,
-0.08115953952074051,
0.03500017151236534,
0.056351352483034134,
0.03509820997714996,
0.03409656137228012,
0.0683058425784111,
-0.020265867933630943,
0.00955935101956129,
0.046420618891716,
-0.0417034775018692,
0.01324854139238596,
0.022040797397494316,
-0.06829293072223663,
0.012393486686050892,
0.0177202969789505,
0.02574862912297249,
-0.03828052803874016,
0.034887637943029404,
0.0017733861459419131,
-0.04412071034312248,
-0.074779212474823,
-0.01880144141614437,
0.07888315618038177,
-0.049336571246385574,
-0.03716529160737991,
0.054638929665088654,
-0.011483187787234783,
-0.039464276283979416,
-0.015247940085828304,
-0.01084541343152523,
-0.024526214227080345,
-0.045753829181194305,
-0.0011386782862246037,
0.06982970237731934,
-0.027186337858438492,
-0.011718086898326874,
0.005367948208004236,
-0.0037494697608053684,
-0.02479938603937626,
-0.0001706178009044379,
-0.018356604501605034,
0.01649194210767746,
-0.012256361544132233,
0.045056816190481186,
0.02534998208284378,
0.002987539628520608,
-0.007376158144325018,
-0.03344471752643585,
0.01756616309285164,
0.05447863042354584,
-0.03792908042669296,
0.03613057732582092,
-0.002085204003378749,
-0.008012830279767513,
0.022588292136788368,
-0.017235610634088516,
-0.017558438703417778,
-0.034307561814785004,
-0.06780573725700378,
-0.00016981257067527622,
-0.042805641889572144,
-0.007551642134785652,
-0.02276948280632496,
0.05649789050221443,
0.02070971392095089,
-0.0429568886756897,
-0.04877805709838867,
0.0217013880610466,
-0.049209922552108765,
-0.005761373322457075,
0.09849026799201965,
-0.0710870698094368,
0.02425370179116726,
0.055527422577142715,
-0.031926319003105164,
0.07389257848262787,
-0.04731414467096329,
-0.09115340560674667,
-0.0799068957567215,
0.05324733629822731,
-0.008009021170437336,
0.007735630497336388,
-0.07854612171649933,
0.06912621110677719,
-0.07599440962076187,
-0.027251554653048515,
-0.03451687842607498,
-0.012050681747496128,
0.00857836939394474,
-0.04910672456026077,
-0.07243691384792328,
0.12101443111896515,
0.03733919560909271,
0.03980332985520363,
-0.01246011070907116,
0.0296699907630682,
-0.006363018415868282,
-0.053356170654296875,
-0.0036069524940103292,
-0.03647134453058243,
0.09320610016584396,
0.0059981681406497955,
0.03402255102992058,
0.020190073177218437,
0.06438777595758438,
-0.07718834280967712,
0.02188284881412983,
0.028649352490901947,
0.0351058654487133,
-0.021314486861228943,
-0.044191133230924606,
0.043938443064689636,
0.03117322362959385,
0.08823369443416595,
-0.012605443596839905,
0.05559411644935608,
-0.02650710940361023,
-0.0048907846212387085,
0.03279903903603554,
-0.017093710601329803,
-0.10835559666156769,
0.06668581068515778,
-0.01893085613846779,
-0.08709103614091873,
0.09381276369094849,
0.10162675380706787,
0.004177977330982685,
-0.030095720663666725,
-0.07154523581266403,
-0.022760817781090736,
-0.002463005715981126,
0.003059311769902706,
-0.031067173928022385,
-0.06542091071605682,
-0.03783208131790161,
0.0356256403028965,
0.016627660021185875,
-0.016682015731930733,
0.03135673329234123,
-0.022315602749586105,
0.02823653817176819,
0.05450288578867912,
0.009298906661570072,
0.022003503516316414,
-0.00508735841140151,
0.0020814102608710527,
-0.0044286781921982765,
0.0743563249707222,
0.004239421337842941,
-0.022611958906054497,
-0.06517915427684784,
0.048841968178749084,
-0.04352693259716034,
0.09349557012319565,
0.017768582329154015,
-0.0866164043545723,
0.03653454780578613,
-0.040256235748529434,
-0.009047998115420341,
0.014978288672864437,
0.011468064039945602,
0.022648023441433907,
0.10718706995248795,
-0.04034578800201416,
0.0272603128105402,
-0.022449862211942673,
-0.020101509988307953,
0.0652972012758255,
0.05384279787540436,
0.02571817860007286,
0.046522267162799835,
0.08216673135757446,
0.05343437194824219,
-0.08348707109689713,
-0.06449078023433685,
0.02728753723204136,
-0.024386949837207794,
-0.07140383869409561,
0.031737301498651505,
-0.019464606419205666,
-0.006646232679486275,
-0.034361954778432846,
-0.037390440702438354,
0.03149010241031647,
0.008916454389691353,
0.0451212003827095,
0.0003321977856103331,
0.016676807776093483,
0.015004727058112621,
-0.012481366284191608,
0.13343128561973572,
-0.0687941238284111,
-0.028850965201854706,
0.039658643305301666,
-0.07179808616638184,
0.025211669504642487,
0.05735510587692261,
0.03599658980965614,
0.03731667995452881,
0.006952466908842325,
-0.04777880385518074,
-0.04045725613832474,
-0.030428310856223106,
0.1188444122672081,
0.0035123215056955814,
-0.03219379112124443,
-0.004580298438668251,
0.01267176028341055,
-0.034881312400102615,
-0.05060943216085434,
-0.03408021107316017,
0.0471341609954834,
-0.05062723904848099,
0.01891143061220646,
-0.04837191104888916,
0.031501542776823044,
0.050506435334682465,
-0.010615785606205463,
-0.03917260468006134,
0.041309576481580734,
-0.020308412611484528,
0.023453345522284508,
-0.008203261531889439,
-0.0250705573707819,
0.08669301867485046,
-0.022535506635904312,
-0.01765354536473751,
-0.053965821862220764,
0.017338493838906288,
-0.013088500127196312,
0.014867047779262066,
0.03775729238986969,
-0.06118672713637352,
-0.016636155545711517,
-0.005006843246519566,
-0.048602066934108734,
0.02838919311761856,
-0.053758904337882996,
0.00955955870449543,
-0.03654694929718971,
-0.019903112202882767,
0.004307581577450037,
-0.01751815713942051,
-0.011409235186874866,
0.020013369619846344,
0.011089202016592026,
-0.029823562130331993,
-0.010075186379253864,
-0.011153887026011944,
-0.03436298668384552,
0.008895812556147575,
-0.03557043895125389,
-0.014673090539872646,
0.04455283284187317,
0.0016679511172696948,
0.043403785675764084,
-0.039963752031326294,
-0.04430779442191124,
-0.02103736251592636,
0.027438510209321976,
0.011732100509107113,
0.01598338782787323,
0.03323843330144882,
-0.04500538483262062,
-0.018815774470567703,
-0.028434401378035545,
-0.04345400631427765,
-0.010520107112824917,
-0.018134215846657753,
-0.0508238822221756,
0.010938177816569805,
0.003379855304956436,
-0.05641818791627884,
-0.001044265809468925,
-0.039969876408576965,
0.030342688784003258,
0.05163105949759483,
-0.007363134063780308,
-0.0664515420794487,
-0.007310489658266306,
-0.02377738431096077,
0.04282005876302719,
0.0037902386393398046,
-0.011775823310017586,
0.04628845676779747,
-0.015493241138756275,
0.03292233869433403,
-0.002419971162453294,
-0.01355684082955122,
-0.014766373671591282,
0.0009518682491034269,
-0.015316111966967583,
0.023233629763126373,
0.029711464419960976,
-0.0027030312921851873,
-0.041604720056056976,
-0.005964182782918215,
0.0435333251953125,
-0.02961895614862442,
0.032126832753419876,
-0.006665384396910667,
-0.014464844949543476,
-0.015834767371416092,
0.030714519321918488,
-0.03353598713874817,
0.036097005009651184,
0.035716235637664795,
-0.054189398884773254,
-0.0868748128414154,
-0.03334076702594757,
0.01990445889532566,
0.0042359717190265656,
0.013474266976118088,
-0.04306134954094887,
-0.014243470504879951,
0.0479435995221138,
0.0034486267250031233,
0.03287181258201599,
0.009294334799051285,
-0.01827809400856495,
0.04307883232831955,
-0.039087917655706406,
0.03152422979474068,
0.006553021725267172,
-0.0001131970202550292,
0.002228073077276349,
0.03413601964712143,
-0.027550891041755676,
0.018526270985603333,
-0.053543731570243835,
0.047979630529880524,
-0.015869121998548508,
0.01537463441491127,
0.0070519824512302876,
-0.03202182054519653,
0.04537896066904068,
0.0008652954129502177,
0.016934987157583237,
-0.023997098207473755,
-0.018424052745103836,
-0.005123403389006853,
-0.026996279135346413,
0.009792455472052097,
0.04523862898349762,
0.015116236172616482,
0.05367003753781319,
-0.017380161210894585,
0.03517643362283707,
0.007277349010109901,
-0.03913756459951401,
0.014541490003466606,
-0.00008062458800850436,
-0.009922044351696968,
-0.021441899240016937,
-0.02375609800219536,
-0.013004493899643421,
0.029638398438692093,
0.003386248368769884,
-0.03156145289540291,
-0.0465136356651783,
-0.028103506192564964,
-0.06432976573705673,
0.023570086807012558,
0.02900170534849167,
0.024716805666685104,
-0.049988169223070145,
0.04112853854894638,
0.01226872019469738,
-0.04740755632519722,
-0.038066230714321136,
0.030662590637803078,
0.02409995347261429,
-0.02712794952094555,
-0.04312904551625252,
0.04757704585790634,
0.047550830990076065,
0.024340158328413963,
-0.008895926177501678,
-0.01856119930744171,
-0.052504315972328186,
-0.0028097927570343018,
0.015709277242422104,
-0.036753907799720764,
0.000032741048926254734,
-0.02424471452832222,
0.03522868454456329,
-0.044390156865119934,
0.003454137360677123,
-0.018254544585943222,
0.02742987684905529,
0.030337363481521606,
-0.00013417851005215198,
0.006001846399158239,
0.0508081279695034,
0.005619117058813572,
-0.008380823768675327,
-0.046324461698532104,
0.01352644432336092,
-0.014774282462894917,
0.02112828567624092,
0.01845257356762886,
0.0008602977031841874,
-0.011040334589779377,
0.021977007389068604,
0.01232871413230896,
0.008221330121159554,
0.03342432528734207,
-0.06710269302129745,
-0.02416238561272621,
0.015892568975687027,
0.013175799511373043,
-0.00934202503412962,
-0.023319164291024208,
-0.0006340353866107762,
-0.00796990841627121,
0.009181274101138115,
0.019093921408057213,
0.009624677710235119,
0.0020495194476097822,
0.04006633535027504,
0.011987531557679176,
0.0143941231071949,
0.009532308205962181,
-0.019986199215054512,
-0.014066786505281925,
0.00616139592602849,
-0.0333268865942955,
0.02138410322368145,
0.00812548864632845,
-0.022617504000663757,
-0.03695616126060486,
0.05327139422297478,
0.02905965968966484,
0.00826182495802641,
0.02137136459350586,
-0.006643027067184448,
0.0058146133087575436,
0.04649297893047333,
-0.04326050356030464,
-0.03935489058494568,
-0.013895015232264996,
0.052505429834127426,
-0.0012357095256447792,
0.011911076493561268,
0.011272466741502285,
-0.032779064029455185,
-0.0003226054541300982,
-0.024642694741487503,
-0.0473058708012104,
0.040027473121881485,
-0.017289435490965843,
-0.03872620686888695,
0.030551621690392494,
0.029126832261681557,
0.033475346863269806,
0.02045551873743534,
0.020230725407600403,
0.010303285904228687,
-0.04299789294600487,
-0.01069383043795824,
-0.010514912195503712,
-0.04742119833827019,
-0.0402100570499897,
0.02186681516468525,
-0.010369167663156986,
-0.02083328366279602,
0.053701162338256836,
0.005418004933744669,
0.024520108476281166,
-0.014313344843685627,
0.04388752952218056,
-0.02502232976257801,
0.032375890761613846,
0.010890998877584934,
-0.004832872189581394,
0.040476154536008835,
-0.02465609833598137,
-0.005247266963124275,
0.009980494156479836,
0.03206167742609978,
0.0015904078027233481,
-0.03824249282479286,
0.03920309618115425,
0.029247572645545006,
-0.040421463549137115,
0.006500245071947575,
-0.02645535208284855,
-0.05315559357404709,
-0.004127664025872946,
-0.02482556365430355,
-0.0035562911070883274,
0.026649711653590202,
0.02612082101404667,
-0.06222084164619446,
-0.018842972815036774,
0.06533912569284439,
0.03905056044459343,
0.013529619202017784,
-0.06690748035907745,
-0.014511055313050747,
-0.0002650060341693461,
-0.015929341316223145,
0.007323546800762415,
0.01637112721800804,
-0.02602493390440941,
0.005478265695273876,
-0.02528543397784233,
0.008641415275633335,
-0.020580142736434937,
-0.024067481979727745,
-0.010476985014975071,
0.013568385504186153,
0.023993879556655884,
-0.03733664005994797,
-0.003029545769095421,
-0.0007925374084152281,
-0.0034553795121610165,
-0.019957182928919792,
-0.007612778339534998,
0.004169793333858252,
0.019300546497106552,
-0.0032759562600404024,
-0.08328653872013092,
0.025214364752173424,
0.06375914067029953,
0.017202133312821388,
0.014568264596164227,
-0.03458711504936218,
0.08651541918516159,
0.005921133793890476,
0.015624449588358402,
-0.03913630545139313,
0.022974738851189613,
0.033643338829278946,
-0.03019280917942524,
0.007902756333351135,
0.002380136866122484,
-0.006927128881216049,
-0.007591131143271923,
-0.048905856907367706,
0.07480425387620926,
0.007271943613886833,
0.009911375120282173,
0.043017223477363586,
0.0342278890311718,
-0.031231610104441643,
0.006650344002991915,
-0.011045821942389011,
0.045868657529354095,
-0.04606575146317482,
-0.010114036500453949,
0.016493046656250954,
0.03921366482973099,
0.040775761008262634,
-0.029688335955142975,
0.017507033422589302,
0.03772879019379616,
0.022586479783058167,
0.024875402450561523,
0.07238557189702988,
0.01828094571828842,
0.008573714643716812,
-0.002162695163860917,
-0.00864487886428833,
0.04367169365286827,
0.04805578291416168,
0.0025505784433335066,
-0.004549394827336073,
0.016325009986758232,
-0.037693385034799576,
-0.010290554724633694,
-0.016484519466757774,
0.00264725205488503,
-0.001727211638353765,
0.000905390887055546,
0.013902015052735806,
-0.009326023980975151,
0.013739395886659622,
0.04080936685204506,
0.08202023804187775,
-0.01327462401241064,
-0.012659812346100807,
-0.00894053466618061,
-0.010690001770853996,
0.006147088948637247,
0.005142620764672756,
-0.0072390008717775345,
-0.011433959938585758,
0.01661672256886959,
0.03339378163218498,
-0.0008306318195536733,
0.00384361925534904,
-0.014679226092994213,
-0.03976898267865181,
0.01284119300544262,
-0.05644198879599571,
-0.02278675138950348,
-0.01750694401562214,
0.04689455032348633,
0.039332542568445206,
-0.012089312076568604,
0.006456231232732534,
-0.0013175135245546699,
0.04418111965060234,
0.0038625188171863556,
0.025028416886925697,
-0.0007185112917795777,
-0.011787899769842625,
-0.01709563285112381,
-0.011213189922273159,
-0.027603594586253166,
-0.041766729205846786,
0.01895815320312977,
-0.015884174033999443,
0.011067897081375122,
0.02914133481681347,
-0.04159616306424141,
-0.02222284860908985,
-0.026292823255062103,
0.0331258699297905,
-0.005626123398542404,
0.03327538073062897,
-0.014186942018568516,
0.0380714125931263,
0.06443185359239578,
0.0025531481951475143,
0.014785387553274632,
0.08066929131746292,
0.03331949561834335,
0.02033023163676262,
-0.0004547188291326165,
0.019509371370077133,
-0.021088311448693275,
-0.05589168146252632,
0.08979052305221558,
-0.03332315385341644,
0.0150139844045043,
-0.019480092450976372,
0.027451585978269577,
-0.01833697035908699,
0.03300739452242851,
0.011539178900420666,
0.01687626540660858,
-0.019219962880015373,
0.0008768122643232346,
-0.02279188297688961,
0.00662066787481308,
0.0004734452231787145,
0.06802607327699661,
-0.0018036405090242624,
0.03271318972110748,
-0.0009199229534715414,
-0.001033544889651239,
-0.028827765956521034,
0.008055987767875195,
0.037392839789390564,
0.0506838858127594,
-0.0015916217816993594,
0.026771197095513344,
-0.008954373188316822,
0.04676734283566475,
0.039250023663043976,
-0.017004437744617462,
0.006894043646752834,
-0.020596148446202278,
-0.04216765612363815,
0.019181417301297188,
-0.01862563006579876,
0.0248651672154665,
-0.014692941680550575,
-0.03203611448407173,
0.02463110163807869,
-0.028341559693217278,
0.04422052577137947,
-0.059393275529146194,
-0.04937572777271271,
-0.042674604803323746,
-0.018236597999930382,
-0.03523370251059532,
-0.0018985134083777666,
0.04191582277417183,
0.061985041946172714,
0.04889170452952385,
-0.016099082306027412,
-0.05645379424095154,
-0.016838032752275467,
-0.0308981966227293,
0.053461406379938126,
0.021135687828063965,
-0.0007407184457406402,
-0.025222674012184143,
-0.005151507910341024,
0.007718812674283981,
0.04914582893252373,
-0.028164135292172432,
-0.04147403687238693,
0.03960592672228813,
0.01961022987961769,
-0.035058315843343735,
0.04244720935821533,
0.057295650243759155,
-0.04516191780567169,
0.04609230160713196,
-0.014272050000727177,
-0.02049342170357704,
0.05498268082737923,
0.0054227192886173725,
-0.02809508517384529,
0.012669030576944351,
-0.05591679736971855,
-0.02373441867530346,
0.007204300258308649,
-0.010798905976116657,
0.025006970390677452,
0.005033033434301615,
-0.012123189866542816,
-0.031759195029735565,
-0.050039347261190414,
-0.02498546987771988,
-0.041080690920352936,
-0.0339680090546608,
-0.008788350969552994,
-0.019275490194559097,
-0.027498872950673103,
0.028522001579403877,
0.051189713180065155,
-0.006241174880415201,
-0.03145168721675873,
0.0500376895070076,
0.04236477613449097,
0.003492546733468771,
0.004967505112290382,
-0.008727540262043476,
0.016271168366074562,
-0.00621899263933301,
0.012227119877934456,
0.0002323180524399504,
0.04064008221030235
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | Using Intel servers For best performance, we will use Intel servers based on the Ice Lake architecture, which supports hardware features such as Intel AVX-512 and Intel Vector Neural Network Instructions (VNNI). These features accelerate operations typically found in deep learning training and inference. You can learn more about them in this presentation (PDF). All three major cloud providers offer virtual machines powered by Intel Ice Lake CPUs: - Amazon Web Services: Amazon EC2 M6i and C6i instances. - Azure: Dv5/Dsv5-series, Ddv5/Ddsv5-series and Edv5/Edsv5-series virtual machines. - Google Cloud Platform: N2 Compute Engine virtual machines. Of course, you can also use your own servers. If they are based on the Cascade Lake architecture (Ice Lake's predecessor), they're good to go as Cascade Lake also includes AVX-512 and VNNI. | [
0.02998693659901619,
-4.868524001722108e-7,
0.039271432906389236,
0.06251908093690872,
-0.007393538020551205,
0.052429962903261185,
0.00005822761886520311,
0.1095057874917984,
-0.029409803450107574,
-0.07488050311803818,
-0.04703750088810921,
0.058398209512233734,
-0.041186705231666565,
-0.00832913164049387,
0.0419805683195591,
-0.04048781096935272,
0.08382073044776917,
0.01952609233558178,
0.018297817558050156,
0.05480165779590607,
0.06245025247335434,
-0.05830654501914978,
0.09158775210380554,
0.04890049621462822,
-0.06925413012504578,
0.04171454906463623,
-0.05853613466024399,
-0.0042851949110627174,
-0.029070140793919563,
-0.044828809797763824,
-0.031069332733750343,
0.0013114826288074255,
0.01573549024760723,
-0.019745351746678352,
0.0072424644604325294,
0.03747894614934921,
-0.057376548647880554,
0.06551990658044815,
-0.05223991349339485,
-0.02911718748509884,
0.0007113447645679116,
-0.025025252252817154,
-0.08511292934417725,
0.07268747687339783,
-0.040014997124671936,
0.0749652236700058,
-0.04049883410334587,
0.014165114611387253,
0.008439219556748867,
-0.018304690718650818,
-0.0707472413778305,
0.023916492238640785,
0.024994397535920143,
0.036721959710121155,
0.034446366131305695,
0.028664816170930862,
0.049097731709480286,
-0.019050264731049538,
0.013076039031147957,
0.019573219120502472,
0.08351673185825348,
0.003132815705612302,
-0.03266475349664688,
-0.08477848768234253,
-0.006638746242970228,
-0.058060552924871445,
-0.03529295697808266,
-0.026906058192253113,
0.0060959067195653915,
0.030330641195178032,
-0.026041584089398384,
-0.004235199186950922,
0.04601477086544037,
0.017083676531910896,
0.015391896478831768,
-0.06031941622495651,
-0.0028629342559725046,
0.028803199529647827,
0.07433140277862549,
0.029099684208631516,
-0.018166374415159225,
0.04908303543925285,
-0.015465134754776955,
0.0335533507168293,
-0.020928625017404556,
0.015831612050533295,
-0.010473732836544514,
-0.002301352797076106,
-0.06761547923088074,
-0.016626207157969475,
0.05706963688135147,
-0.03807567059993744,
0.07089542597532272,
0.05818251520395279,
-0.02955767698585987,
-0.012785153463482857,
0.062335386872291565,
-0.01791677065193653,
0.08268927037715912,
0.01402267999947071,
0.009385724551975727,
-0.009111947380006313,
-0.007484195288270712,
-0.035469066351652145,
-0.08525797724723816,
0.011709737591445446,
-0.007011846173554659,
-0.08719502389431,
-0.08253099024295807,
-0.008450917899608612,
-0.05183667317032814,
0.002424350008368492,
-0.02772182784974575,
0.044581715017557144,
-0.08860965818166733,
0.004475797060877085,
0.02154899761080742,
-0.025417838245630264,
0.00031537379254586995,
0.02518114261329174,
0.07173392921686172,
0.05981077253818512,
-0.04623257741332054,
0.0400468185544014,
-0.0374014675617218,
0.007573097478598356,
-0.007229243870824575,
-0.03589526191353798,
-0.016710050404071808,
-0.04271705821156502,
0.02544771321117878,
-0.04696938768029213,
0.06310129910707474,
-0.010490808635950089,
0.08041194081306458,
-0.03875236213207245,
-0.066192127764225,
-0.05525795742869377,
-0.013325286097824574,
0.005800233688205481,
-0.03852371126413345,
0.004827964119613171,
0.04467318207025528,
0.00855324137955904,
0.12309064716100693,
-0.008904395624995232,
0.05405498668551445,
-0.03196099027991295,
0.03350647911429405,
0.008004582487046719,
-0.04518023133277893,
0.045912422239780426,
-0.09242213517427444,
-0.04256537929177284,
0.047234613448381424,
0.03539424017071724,
0.01672116108238697,
-0.005928894970566034,
-0.003828528104349971,
-0.06474984437227249,
-0.027790868654847145,
-0.0017779645277187228,
-0.08982992172241211,
0.04211883246898651,
0.0007606145227327943,
-0.054039109498262405,
0.006861647590994835,
0.030294116586446762,
0.038192249834537506,
-0.016869382932782173,
-0.043267857283353806,
0.0017031871248036623,
0.04628213495016098,
0.036809131503105164,
0.10631279647350311,
0.027181876823306084,
-0.0017769915284588933,
0.1082070842385292,
0.09535310417413712,
-0.08755949884653091,
-0.06450452655553818,
-0.03134552389383316,
-0.02127048745751381,
0.02568887732923031,
-0.01584993489086628,
0.013700039125978947,
-0.0042559378780424595,
-0.07971198856830597,
0.06538509577512741,
0.00217841868288815,
-0.0009915928822010756,
-0.034112993627786636,
-0.01059731375426054,
0.049147289246320724,
-0.0021445737220346928,
0.004921716172248125,
-0.006833172403275967,
0.06847938150167465,
0.016179462894797325,
0.08690053224563599,
0.08573205024003983,
-0.04519783705472946,
-0.01870938576757908,
0.01954377070069313,
-0.04695819318294525,
-0.008452284149825573,
-0.013203229755163193,
-0.03522773087024689,
-0.014943543821573257,
0.04560990631580353,
-0.054891787469387054,
-0.1415291130542755,
-0.01038003247231245,
-0.03237411007285118,
-0.028524575755000114,
0.03758588433265686,
-0.08039430528879166,
0.0053833648562431335,
0.031865283846855164,
-0.01198810525238514,
0.12136857211589813,
-0.006791749503463507,
0.022957174107432365,
0.04168512299656868,
-0.04251733049750328,
0.04056284949183464,
0.10094660520553589,
0.0449770949780941,
0.025409193709492683,
0.030866578221321106,
-0.04313471540808678,
-0.04940889775753021,
-0.03187961131334305,
0.023117419332265854,
0.11326168477535248,
0.051860224455595016,
0.1120431125164032,
0.05403611809015274,
0.04442593455314636,
0.0013264867011457682,
-0.0350889228284359,
-0.006751971784979105,
-0.05014693737030029,
0.03691543638706207,
0.041448015719652176,
-0.03428150340914726,
0.08450678735971451,
-0.08620123565196991,
-0.013941198587417603,
-0.056791458278894424,
-0.023084137588739395,
0.019292140379548073,
-0.044162001460790634,
-0.051257502287626266,
0.05002756044268608,
0.025558993220329285,
0.030037615448236465,
-0.022635411471128464,
-0.025679321959614754,
0.006397639866918325,
0.010013763792812824,
-0.014772162772715092,
-0.01987694948911667,
-0.02085809037089348,
0.04171132296323776,
-0.023667799308896065,
-0.008270762860774994,
-0.04905598610639572,
0.05770576372742653,
-0.038230396807193756,
-0.043475281447172165,
-0.02300833724439144,
0.0072984700091183186,
-0.006120684091001749,
0.0026295040734112263,
0.016300996765494347,
-0.03992114216089249,
0.023754358291625977,
-0.04108544439077377,
-0.04287347197532654,
0.016633853316307068,
-0.02786281518638134,
0.04665438458323479,
0.06353123486042023,
-0.03361368179321289,
-0.054104018956422806,
-0.016691060736775398,
-0.028393791988492012,
-0.0392611101269722,
0.003432102035731077,
-0.0031685614958405495,
0.008946996182203293,
-0.004732104949653149,
0.002670207992196083,
-0.014176225289702415,
0.043561965227127075,
0.003618708113208413,
0.014281775802373886,
-0.03588567674160004,
-0.003344701835885644,
-0.012290248647332191,
0.009210005402565002,
-0.008120541460812092,
0.010843434371054173,
0.003750552423298359,
0.01034198421984911,
-0.02483210898935795,
0.009908913634717464,
-0.07266618311405182,
-0.010654977522790432,
-0.05601281300187111,
0.027453621849417686,
0.02510329708456993,
-0.014103502035140991,
0.02761000581085682,
0.025499442592263222,
0.02501971833407879,
0.025454627349972725,
-0.018490921705961227,
-0.006470374763011932,
0.019322384148836136,
-0.04035472497344017,
-0.032963648438453674,
0.022834770381450653,
0.024911368265748024,
-0.042608972638845444,
0.014032446779310703,
-0.04147025942802429,
-0.03514283150434494,
0.01826205849647522,
0.032876577228307724,
-0.008274937979876995,
-0.041044533252716064,
-0.00041916180634871125,
0.05888399854302406,
-0.02206016145646572,
-0.027061279863119125,
0.007418795954436064,
-0.01129781361669302,
-0.009442983195185661,
-0.04736954718828201,
0.010603281669318676,
-0.04604797065258026,
-0.014552939683198929,
-0.0022764415480196476,
0.007563286926597357,
0.057387515902519226,
0.025155410170555115,
-0.023970268666744232,
-0.030490102246403694,
0.05281687527894974,
-0.027105366811156273,
0.029351482167840004,
-0.011339777149260044,
0.03687219321727753,
-0.004663658794015646,
0.013925431296229362,
-0.0009621052304282784,
-0.037325967103242874,
0.010557187721133232,
-0.002429320476949215,
0.01703016646206379,
0.01368941180408001,
-0.03753479942679405,
-0.007905079983174801,
0.05270884931087494,
0.025164036080241203,
-0.006013758480548859,
-0.030580993741750717,
0.032086730003356934,
0.02959989756345749,
0.004094092641025782,
-0.014967306517064571,
-0.020328907296061516,
0.024154700338840485,
0.019299164414405823,
-0.02678508684039116,
-0.006739919073879719,
0.028445696458220482,
0.047198060899972916,
0.0023367595858871937,
-0.008643739856779575,
0.010865327902138233,
-0.02063846029341221,
0.029833616688847542,
0.04664017632603645,
0.03873028606176376,
0.07717376202344894,
-0.002283911919221282,
-0.027594750747084618,
-0.020228106528520584,
-0.018013443797826767,
0.028065307065844536,
0.00592025276273489,
-0.01292093563824892,
0.017129238694906235,
0.05031276121735573,
0.014048995450139046,
-0.0026541147381067276,
-0.04239294305443764,
0.04562981426715851,
-0.001955833286046982,
0.028816955164074898,
-0.006145654246211052,
0.010712205432355404,
0.03409091755747795,
-0.0028625892009586096,
0.010014903731644154,
-0.04332953318953514,
-0.013057862408459187,
0.021426526829600334,
0.0033150119706988335,
-0.03739306330680847,
-0.05021163448691368,
0.049304887652397156,
-0.027550939470529556,
0.019486192613840103,
0.002298760460689664,
0.031427208334207535,
-0.021455762907862663,
0.03590930253267288,
0.01660481095314026,
0.005497106350958347,
-0.012892692349851131,
-0.0269913412630558,
0.009060264565050602,
0.009380890987813473,
-0.010494026355445385,
-0.01553230732679367,
0.050479765981435776,
-0.007028307765722275,
-0.0006018467829562724,
0.0022116389591246843,
0.03017152100801468,
0.012183221988379955,
-0.013892990536987782,
-0.005051370244473219,
-0.011923521757125854,
-0.014190327376127243,
0.03143317252397537,
0.061638832092285156,
0.0007356172427535057,
-0.008923852816224098,
-0.02119198814034462,
-0.0036234729923307896,
0.03332012891769409,
-0.029235055670142174,
-0.017296966165304184,
-0.024763507768511772,
0.043840695172548294,
0.007120000664144754,
-0.009129702113568783,
0.019003702327609062,
0.024533051997423172,
0.007825803011655807,
-0.03142576292157173,
-0.002299829386174679,
0.026581674814224243,
0.015398610383272171,
-0.011662520468235016,
0.007479172199964523,
0.037060923874378204,
0.04927728325128555,
-0.01868772879242897,
0.022276606410741806,
-0.015751712024211884,
0.027117490768432617,
0.025909386575222015,
0.009464208036661148,
-0.0006860844441689551,
-0.018353106454014778,
-0.037463583052158356,
0.010192113928496838,
0.02514200657606125,
0.03228925168514252,
-0.06374987214803696,
-0.06163778156042099,
0.028867030516266823,
0.029219819232821465,
0.05189588665962219,
-0.03196840360760689,
-0.011818718165159225,
0.011476625688374043,
0.010398995131254196,
0.0416499599814415,
0.03867357596755028,
0.020134998485445976,
-0.012890305370092392,
-0.022114330902695656,
-0.02777254395186901,
-0.048850834369659424,
0.02936500683426857,
-0.00974118523299694,
0.003832645947113633,
0.03473355993628502,
0.00508855888620019,
0.04931635782122612,
0.009832545183598995,
0.007186784874647856,
-0.002085419837385416,
0.009702187031507492,
-0.004586539696902037,
0.04885641857981682,
0.013575000688433647,
0.01614193059504032,
0.013140403665602207,
0.014169776812195778,
-0.035646844655275345,
0.01585974544286728,
0.011919462122023106,
-0.015431429259479046,
0.028239350765943527,
-0.01475116889923811,
0.01875579170882702,
-0.011862017214298248,
-0.02803543210029602,
-0.007803474087268114,
-0.00343757844530046,
-0.001554677844978869,
0.04977542534470558,
-0.025983275845646858,
-0.0017868654103949666,
-0.024375462904572487,
-0.051704276353120804,
-0.022833218798041344,
0.02766977623105049,
-0.005841980222612619,
0.016528461128473282,
0.005954458378255367,
-0.051831647753715515,
0.003458465449512005,
-0.03215755149722099,
-0.060692399740219116,
0.0035010615829378366,
-0.012318670749664307,
-0.02006649039685726,
-0.01521310955286026,
-0.035841647535562515,
0.028677482157945633,
-0.006200280040502548,
-0.06036286801099777,
0.005325544625520706,
0.016593918204307556,
-0.03496210649609566,
0.0380437895655632,
0.03697463870048523,
0.033842261880636215,
-0.03172719106078148,
-0.04974498972296715,
0.006915570702403784,
0.015649788081645966,
-0.03172367438673973,
-0.04348481446504593,
-0.03211969509720802,
0.02542964555323124,
0.0005230187671259046,
0.005561008583754301,
-0.00927000306546688,
-0.003572704503312707,
-0.04716872051358223,
0.029031097888946533,
-0.01376070361584425,
-0.0023696154821664095,
-0.028825508430600166,
-0.0008959918632172048,
-0.03208266571164131,
0.002837136620655656,
0.000317147234454751,
-0.07167348265647888,
-0.004099820740520954,
0.04115767776966095,
0.023991942405700684,
-0.00871995184570551,
-0.03187583014369011,
-0.003108707722276449,
-0.012347359210252762,
0.003118193009868264,
0.04773368686437607,
0.029330076649785042,
-0.004396242555230856,
0.014685831032693386,
-0.0421401783823967,
0.013742411509156227,
0.02821102738380432,
-0.011272210627794266,
0.08243456482887268,
-0.01499060820788145,
0.014486907981336117,
-0.0059546600095927715,
0.04044501483440399,
-0.01939593255519867,
-0.040528248995542526,
-0.02258625067770481,
0.005458545405417681,
0.014653345569968224,
0.010193375870585442,
0.03205498680472374,
0.051432665437459946,
0.0010317462729290128,
-0.044335488229990005,
0.0389590822160244,
-0.02449439838528633,
-0.039816200733184814,
-0.018842492252588272,
-0.024391844868659973,
0.0034529627300798893,
-0.009908890351653099,
-0.05341191589832306,
0.040568117052316666,
0.0752825066447258,
-0.0053887744434177876,
-0.007966243661940098,
0.008289812132716179,
0.04640519246459007,
-0.020351441577076912,
0.047977786511182785,
0.0460536815226078,
-0.03073667734861374,
0.010725539177656174,
0.029419144615530968,
0.002882992848753929,
0.035545267164707184,
-0.022771082818508148,
-0.019743764773011208,
0.020100105553865433,
-0.025989927351474762,
0.003851582296192646,
-0.002934844698756933,
0.00656801275908947,
-0.002445804188027978,
0.004374736919999123,
0.02765614166855812,
-0.026825573295354843,
-0.011284672655165195,
-0.028631102293729782,
-0.0024373226333409548,
-0.00016832434630487114,
0.029824107885360718,
0.010996331460773945,
-0.0017147496109828353,
-0.01201858464628458,
-0.013522117398679256,
-0.03256848081946373,
0.0007541265222243965,
-0.017837774008512497,
0.008708436973392963,
-0.02822643518447876,
-0.0029839708004146814,
-0.021233143284916878,
0.015111532062292099,
0.01352780219167471,
0.016331568360328674,
-0.019712118431925774,
0.009477255865931511,
0.028365962207317352,
0.020137736573815346,
-0.023930193856358528,
-0.03327452391386032,
-0.02643166482448578,
0.016380349174141884,
-0.007611590903252363,
0.013568575493991375,
-0.06876352429389954,
-0.02191261015832424,
-0.015296741388738155,
-0.04495260491967201,
0.08752522617578506,
-0.05213222652673721,
-0.014382799156010151,
0.006437992211431265,
0.05471211299300194,
-0.030648672953248024,
-0.03319072723388672,
-0.007787087932229042,
-0.02960794046521187,
-0.03583470731973648,
0.06482433527708054,
0.00028440015739761293,
-0.029966559261083603,
-0.0018749869195744395,
0.0006725187413394451,
-0.019823899492621422,
-0.007856519892811775,
0.01389460638165474,
-0.02418307587504387,
0.0030762162059545517,
-0.028781607747077942,
-0.02062949351966381,
0.050214048475027084,
0.009851139038801193,
0.024801572784781456,
0.011052821762859821,
0.037740569561719894,
0.012989293783903122,
-0.033606309443712234,
0.030755607411265373,
0.010605264455080032,
0.009574087336659431,
-0.029844794422388077,
-0.02352541871368885,
-0.04379555955529213,
0.01494626421481371,
0.014268784783780575,
0.04582997411489487,
-0.0441017672419548,
0.022395942360162735,
-0.028360342606902122,
-0.018208032473921776,
-0.05317111685872078,
-0.005060422699898481,
0.031197892501950264,
0.045401014387607574,
-0.014211239293217659,
0.005439578089863062,
-0.042437173426151276,
0.0023372494615614414,
0.0010720979189500213,
0.02877814508974552,
0.024599090218544006,
-0.014848144724965096,
0.003425473580136895,
-0.03150411695241928,
-0.005291209556162357,
-0.00010036207822849974,
0.009337978437542915,
0.011410921812057495,
-0.04700344800949097,
0.002323575085029006,
-0.02742801420390606,
-0.0033100675791502,
0.030893400311470032,
-0.04407207667827606,
0.005561796482652426,
-0.002904258668422699,
0.014708243310451508,
0.029847808182239532,
-0.01803809404373169,
-0.05148126184940338,
-0.048489999026060104,
-0.005016774870455265,
-0.023959659039974213,
0.04050593823194504,
0.0053541092202067375,
-0.011013925075531006,
-0.027435611933469772,
0.008792813867330551,
0.061078041791915894,
-0.05070817470550537,
-0.054879914969205856,
0.012332819402217865,
-0.03326323255896568,
0.060897912830114365,
-0.015987882390618324,
-0.03795250132679939,
0.023425765335559845,
-0.024835972115397453,
-0.004766660276800394,
0.012375503778457642,
-0.028725609183311462,
-0.0017014029435813427,
0.04125092923641205,
0.042514629662036896,
-0.011570616625249386,
0.02612903155386448,
0.09128610789775848,
0.0021059741266071796,
0.025067167356610298,
0.008749106898903847
] |
Accelerating PyTorch distributed fine-tuning with Intel technologies | juliensimon | November 19, 2021 | accelerating-pytorch | guide | https://huggingface.co/blog/accelerating-pytorch | What this post is about In this post, you will learn how to accelerate PyTorch training jobs by distributing them on a cluster of Intel Xeon Scalable CPU servers, powered by the Ice Lake architecture and running performance-optimized software libraries. We will build the cluster from scratch using virtual machines, and you should be able to easily replicate the demo on your own infrastructure, either in the cloud or on premise. Running a text classification job, we will fine-tune a BERT model on the MRPC dataset (one of the tasks included in the GLUE benchmark). The MRPC dataset contains 5,800 sentence pairs extracted from news sources, with a label telling us whether the two sentences in each pair are semantically equivalent. We picked this dataset for its reasonable training time, and trying other GLUE tasks is just a parameter away. Once the cluster is up and running, we will run a baseline job on a single server. Then, we will scale it to 2 servers and 4 servers and measure the speed-up. Along the way, we will cover the following topics: * Listing the required infrastructure and software building blocks, * Setting up our cluster, * Installing dependencies, * Running a single-node job, * Running a distributed job. Let's get to work! | [
0.03532221540808678,
0.011034917086362839,
-0.01561272144317627,
0.05490680783987045,
0.024783771485090256,
0.03145887702703476,
0.019844161346554756,
0.041591353714466095,
-0.026583366096019745,
-0.012578788213431835,
-0.06296724826097488,
0.053358856588602066,
0.01965450681746006,
0.07407063245773315,
0.0453941710293293,
-0.01739121973514557,
0.10280381888151169,
-0.024718737229704857,
-0.023904791101813316,
0.03024519421160221,
0.05021745339035988,
-0.000909502268768847,
0.10550811886787415,
0.07684720307588577,
-0.015944942831993103,
-0.049132827669382095,
-0.05623427778482437,
0.009944097138941288,
-0.0015771080506965518,
0.033383846282958984,
-0.08039341866970062,
0.006174310576170683,
0.03264203295111656,
-0.038597702980041504,
-0.04267212375998497,
0.09081379324197769,
-0.07605709135532379,
0.04733075574040413,
0.019521506503224373,
-0.056985314935445786,
0.04160772264003754,
0.05692899599671364,
-0.08418804407119751,
0.07132063060998917,
0.007037747651338577,
0.02036195434629917,
-0.09385719895362854,
0.020344866439700127,
-0.008592274971306324,
-0.015185498632490635,
-0.10555154830217361,
0.01537199318408966,
0.014004092663526535,
0.0013089141575619578,
-0.016280092298984528,
0.05677153170108795,
0.029906732961535454,
-0.04645838215947151,
0.031623587012290955,
-0.021170709282159805,
0.013709010556340218,
0.002697728341445327,
-0.03243416175246239,
-0.001289025298319757,
-0.010964508168399334,
-0.02437649853527546,
-0.02258288487792015,
0.0010606411378830671,
-0.0385204516351223,
-0.024923032149672508,
-0.009799246676266193,
-0.018615055829286575,
0.00291484990157187,
-0.006938091944903135,
0.04249398037791252,
-0.0563938282430172,
0.06972243636846542,
-0.0365353487432003,
0.08505704998970032,
0.06605105847120285,
-0.029548654332756996,
0.036187537014484406,
0.001265930593945086,
0.06149251386523247,
0.044838372617959976,
-0.032620009034872055,
-0.031348858028650284,
-0.033580608665943146,
-0.08278936892747879,
0.012096311897039413,
-0.0016825930215418339,
-0.03451778367161751,
0.017989182844758034,
0.07945647835731506,
0.009017052128911018,
0.005855745170265436,
-0.011377534829080105,
0.020416339859366417,
-0.019062601029872894,
-0.03645241633057594,
0.10935329645872116,
-0.06161194294691086,
-0.010610926896333694,
0.005592296365648508,
0.008294755592942238,
0.06240427494049072,
-0.01510662492364645,
-0.06236724182963371,
-0.06791488826274872,
-0.004914714489132166,
-0.025520967319607735,
-0.008362484164536,
-0.13350948691368103,
0.08029184490442276,
-0.07008320093154907,
-0.012249148450791836,
-0.01945379003882408,
-0.01398171205073595,
0.020493146032094955,
-0.0469684936106205,
-0.00821099616587162,
0.09975551813840866,
-0.009461342357099056,
0.030697906389832497,
-0.07820338755846024,
0.037914879620075226,
-0.029896803200244904,
-0.014729240909218788,
0.028446465730667114,
-0.00669829873368144,
0.08695825934410095,
-0.04402625188231468,
0.05550112947821617,
-0.02872937172651291,
0.06916305422782898,
0.005500097759068012,
-0.04506451264023781,
-0.038431644439697266,
0.010074337013065815,
0.024112707003951073,
-0.011248144321143627,
0.061789099127054214,
0.02680264040827751,
0.039205875247716904,
0.030530717223882675,
0.006817024666815996,
-0.09653706848621368,
0.0013080534990876913,
0.002780595328658819,
0.023491239175200462,
-0.08564424514770508,
0.05551469698548317,
-0.05998273193836212,
-0.018939966335892677,
0.05735526978969574,
0.08820164203643799,
-0.013497736304998398,
-0.04398595914244652,
-0.051686517894268036,
-0.02184668928384781,
-0.07224252820014954,
-0.022919975221157074,
-0.07207810878753662,
-0.016650622710585594,
-0.009814215824007988,
0.00042812206083908677,
-0.0006238303030841053,
-0.021878885105252266,
-0.0014823110541328788,
0.00008758991316426545,
0.022002633661031723,
0.034847743809223175,
0.08888991922140121,
0.041422076523303986,
-0.006607302464544773,
-0.003257184289395809,
0.02997869811952114,
0.10600733757019043,
0.046513039618730545,
-0.075043223798275,
-0.07819505780935287,
0.0344395786523819,
-0.003060669405385852,
0.05963694676756859,
0.011205864138901234,
-0.06753139197826385,
0.07612189650535583,
-0.02314058691263199,
0.00021489134815055877,
0.0016679582186043262,
-0.06293581426143646,
0.018367884680628777,
0.08580520749092102,
-0.014577795751392841,
0.023572638630867004,
-0.025462884455919266,
-0.019055666401982307,
0.0987454205751419,
0.07271450757980347,
0.05702961981296539,
0.05657042935490608,
-0.039316095411777496,
0.01791313663125038,
-0.027700578793883324,
-0.02982241101562977,
-0.05931749567389488,
-0.05669630318880081,
-0.05503970757126808,
0.007923099212348461,
0.023723529651761055,
-0.061014797538518906,
-0.11056361347436905,
-0.02842419594526291,
-0.042517099529504776,
-0.024064326658844948,
0.023276235908269882,
-0.04240182414650917,
0.051088981330394745,
0.02959224209189415,
0.016280358657240868,
0.16958031058311462,
-0.0652519017457962,
-0.005801822990179062,
0.010079177096486092,
-0.021083857864141464,
0.02742256596684456,
0.10793765634298325,
0.0213957317173481,
0.10385733842849731,
-0.01517652627080679,
-0.04362288862466812,
-0.045192964375019073,
-0.017161229625344276,
0.061473045498132706,
-0.002008457202464342,
-0.0476776659488678,
0.004808741621673107,
0.01713140681385994,
0.022173171862959862,
-0.05145183950662613,
-0.004464732948690653,
-0.0065893507562577724,
-0.04011614993214607,
0.037460580468177795,
0.028315385803580284,
0.03810587152838707,
0.059981636703014374,
-0.019083401188254356,
0.01825924590229988,
-0.027958963066339493,
-0.061829838901758194,
-0.010269276797771454,
-0.033162664622068405,
-0.04580768197774887,
0.024987882003188133,
0.016022786498069763,
-0.001514944713562727,
-0.007615919224917889,
-0.0096614770591259,
0.04875601455569267,
0.036516908556222916,
0.007823075167834759,
-0.0568770095705986,
-0.019234811887145042,
0.002260657260194421,
-0.04929228127002716,
0.0015397359384223819,
-0.05307020619511604,
0.042273394763469696,
-0.03597942367196083,
-0.01758093573153019,
-0.017763476818799973,
0.038143038749694824,
-0.009771894663572311,
-0.0007209174800664186,
0.008292438462376595,
-0.0003726958530023694,
-0.02984936349093914,
-0.01819876953959465,
-0.026591705158352852,
-0.01842566952109337,
-0.04800090566277504,
0.019780831411480904,
0.05315769463777542,
0.004942860454320908,
0.038037922233343124,
-0.035239845514297485,
-0.03164433315396309,
-0.014836517162621021,
-0.03688320145010948,
-0.00861253309994936,
0.022202245891094208,
0.024382716044783592,
-0.035577915608882904,
-0.012396500445902348,
0.0067460439167916775,
0.00012188046093797311,
-0.00409900676459074,
-0.03642309457063675,
-0.004963172599673271,
-0.028925320133566856,
-0.004760471638292074,
-0.0393223837018013,
-0.025081869214773178,
-0.034884411841630936,
0.01820649951696396,
0.015784289687871933,
0.013506411574780941,
-0.07115423679351807,
0.010209495201706886,
-0.03128133714199066,
0.02935263328254223,
0.006169014610350132,
-0.06402721256017685,
0.026304004713892937,
0.03362475708127022,
-0.010350682772696018,
-0.00549466023221612,
-0.03125733509659767,
0.0020336033776402473,
0.011247741989791393,
0.00121050956659019,
0.03682490438222885,
-0.009948039427399635,
-0.0016280455747619271,
-0.027618231251835823,
0.016490576788783073,
0.0063108596950769424,
-0.025318099185824394,
-0.0009230682626366615,
0.011219566687941551,
-0.0016013557324185967,
0.003246854990720749,
0.05396784842014313,
0.026825129985809326,
0.03871338441967964,
0.01795899122953415,
-0.023374706506729126,
-0.06106894835829735,
-0.02511845901608467,
0.02392418496310711,
-0.005177895072847605,
-0.006727947853505611,
-0.005565800704061985,
0.0017384489765390754,
0.037371616810560226,
0.0073348963633179665,
0.05296863988041878,
-0.02691447176039219,
0.00753335515037179,
0.05085691809654236,
-0.03455568850040436,
0.061338555067777634,
-0.014081059955060482,
0.0052869888022542,
0.00039816752541810274,
0.04061197489500046,
-0.025586199015378952,
0.002167783211916685,
-0.006719687953591347,
0.046994395554065704,
0.025523200631141663,
-0.020316170528531075,
0.005328612867742777,
-0.04857078567147255,
0.0029574825894087553,
0.04424311965703964,
0.014988375827670097,
-0.008716102689504623,
0.031338486820459366,
-0.0011953760404139757,
-0.03181564062833786,
-0.029961831867694855,
0.024617087095975876,
0.04893944412469864,
-0.021831387653946877,
-0.03491634503006935,
0.029421808198094368,
0.017391130328178406,
0.020975399762392044,
-0.034473396837711334,
-0.007536991033703089,
-0.00995259452611208,
0.019615449011325836,
-0.015499655157327652,
0.013492835685610771,
0.04618847742676735,
0.05787643790245056,
-0.029039274901151657,
-0.021044332534074783,
-0.04622751101851463,
-0.04798179492354393,
0.019844694063067436,
0.01988525129854679,
-0.020728183910250664,
-0.05502589792013168,
0.020395729690790176,
0.011300521902740002,
-0.014782074838876724,
-0.04710591584444046,
0.023409869521856308,
-0.0022272320929914713,
-0.01084144227206707,
-0.03425697609782219,
0.027004698291420937,
0.04486994817852974,
-0.018508505076169968,
-0.014601307921111584,
0.002934884512796998,
-0.06513466686010361,
0.034462686628103256,
0.02170281484723091,
-0.0010423718485981226,
-0.022260842844843864,
0.0017678693402558565,
0.018576063215732574,
-0.008506580255925655,
-0.0019927823450416327,
-0.018471796065568924,
0.024585403501987457,
0.01811777614057064,
0.010421783663332462,
-0.011347212828695774,
0.011779614724218845,
0.006360998842865229,
0.0026047048158943653,
-0.018917685374617577,
0.003461945801973343,
-0.021928805857896805,
0.06211762875318527,
0.025880174711346626,
-0.009217001497745514,
-0.01929258368909359,
0.0008032278274185956,
0.03242303803563118,
0.04189898073673248,
0.012534646317362785,
-0.06481446325778961,
-0.020070480182766914,
0.014529439620673656,
0.030446350574493408,
-0.02362624928355217,
-0.02153584733605385,
-0.03533899411559105,
0.03296791762113571,
0.0019444958306849003,
-0.010953489691019058,
0.017454346641898155,
-0.013312212191522121,
0.03311913460493088,
0.04741198942065239,
-0.022227078676223755,
-0.0030517957638949156,
0.04721517115831375,
0.010979237034916878,
-0.041749246418476105,
-0.022433200851082802,
0.03094356879591942,
-0.025802280753850937,
0.02229386754333973,
-0.04680632799863815,
0.047784607857465744,
0.07720761746168137,
-0.008642327971756458,
-0.02599245496094227,
0.0072862086817622185,
0.023215634748339653,
0.09194518625736237,
-0.026887968182563782,
-0.024309009313583374,
-0.03336973115801811,
-0.016506178304553032,
0.031200146302580833,
-0.022076480090618134,
-0.01178100984543562,
-0.02431352064013481,
0.003962257876992226,
0.0007948466809466481,
-0.023573940619826317,
0.009978546760976315,
-0.012678430415689945,
0.0010574638145044446,
0.013013122603297234,
0.009951848536729813,
0.049473512917757034,
0.02230529859662056,
0.008227154612541199,
0.011489440687000751,
0.00002009969830396585,
-0.03302166983485222,
-0.030321504920721054,
-0.013239256106317043,
-0.007029564585536718,
0.025140471756458282,
0.03680966794490814,
0.006111946888267994,
0.009728344157338142,
0.004908822942525148,
-0.01607844978570938,
-0.02533545531332493,
0.02874368242919445,
-0.01833031326532364,
0.057782381772994995,
-0.003534151939675212,
-0.019454458728432655,
0.05064893886446953,
0.007705266587436199,
-0.03808494657278061,
0.004736678209155798,
0.008155563846230507,
-0.02617475762963295,
-0.02113225683569908,
0.06453794240951538,
-0.008708344772458076,
-0.02313479781150818,
-0.03472292795777321,
0.0015566576039418578,
-0.05319518968462944,
-0.01709318719804287,
0.02106405422091484,
-0.02391985058784485,
0.012091823853552341,
-0.024783462285995483,
-0.03253801167011261,
-0.011922589503228664,
0.04673125594854355,
0.024380864575505257,
-0.0005244776257313788,
-0.03190120682120323,
-0.0310395248234272,
0.016291944310069084,
-0.000426337996032089,
-0.028330273926258087,
-0.0544465109705925,
-0.018517037853598595,
0.026263820007443428,
-0.0008627896895632148,
0.00768054137006402,
0.04039239138364792,
-0.0245538130402565,
-0.01643587462604046,
0.027976108714938164,
0.02088446542620659,
-0.05134008079767227,
0.045900847762823105,
0.020850107073783875,
0.025962471961975098,
-0.011355866678059101,
-0.01781582273542881,
-0.04437500983476639,
0.018202271312475204,
-0.0015994039131328464,
-0.0680338591337204,
0.019807806238532066,
0.08426375687122345,
0.022228024899959564,
0.021165719255805016,
-0.04188293218612671,
0.001515652984380722,
0.0011735945008695126,
0.0092695914208889,
-0.024912813678383827,
0.012107289396226406,
0.01274030189961195,
0.0018977586878463626,
-0.004846083000302315,
0.03132239729166031,
0.021691784262657166,
-0.0035605481825768948,
-0.07516054064035416,
0.0225398950278759,
-0.01396394707262516,
-0.00976497307419777,
0.028660938143730164,
-0.011911991983652115,
-0.03632756322622299,
0.021010180935263634,
-0.008625340647995472,
0.020193183794617653,
-0.009043494239449501,
-0.013956211507320404,
-0.005732530262321234,
0.023008126765489578,
0.013505347073078156,
-0.009655460715293884,
0.04603290557861328,
0.01631544530391693,
0.007648601662367582,
0.005740932654589415,
0.03549327701330185,
-0.0026098843663930893,
-0.004746539518237114,
0.017373990267515182,
-0.00024608473177067935,
0.05794386938214302,
0.002275915816426277,
0.013697115704417229,
0.026790479198098183,
0.01502145454287529,
-0.030558383092284203,
-0.04009934514760971,
0.0006909399526193738,
-0.02109532803297043,
0.0033504837192595005,
0.02111108973622322,
-0.030097901821136475,
0.013871264643967152,
-0.008417133241891861,
0.03622470423579216,
0.06780802458524704,
0.004301116336137056,
-0.030395731329917908,
0.010968504473567009,
0.02062040939927101,
-0.026076052337884903,
0.008344843052327633,
0.03450489044189453,
0.014160940423607826,
0.028574975207448006,
0.02876267209649086,
0.015598583035171032,
0.021898070350289345,
-0.0017405430553480983,
-0.026666896417737007,
0.0075995358638465405,
-0.05130326375365257,
0.018028624355793,
0.0010446252999827266,
0.019972095265984535,
-0.00017691166431177408,
-0.033736616373062134,
0.001927052391692996,
-0.0144174350425601,
0.032220762223005295,
-0.020224714651703835,
-0.0006955761928111315,
-0.03654490411281586,
0.017214350402355194,
-0.015493182465434074,
0.0045020547695457935,
-0.011662718839943409,
-0.02831648290157318,
0.0015861248830333352,
0.00621136324480176,
0.0008731433772481978,
0.011744691990315914,
-0.02629346027970314,
0.010048137046396732,
-0.02841631881892681,
0.0240089800208807,
-0.0018382383277639747,
0.004767230711877346,
-0.004407086409628391,
-0.010386190377175808,
0.05762077495455742,
0.032648321241140366,
-0.005300465505570173,
0.014171525835990906,
0.020107856020331383,
0.014438741840422153,
-0.03284886106848717,
0.014261790551245213,
-0.035155028104782104,
-0.08407638221979141,
0.03415960446000099,
-0.03133488446474075,
0.007490535266697407,
-0.012569090351462364,
0.014667962677776814,
-0.034495871514081955,
0.06932570785284042,
0.010375402867794037,
-0.05443188175559044,
-0.018267761915922165,
0.008028526790440083,
0.006441921927034855,
0.02840973623096943,
-0.00473700650036335,
-0.011361437849700451,
-0.016747532412409782,
0.014323686249554157,
0.004575164057314396,
-0.0213924553245306,
-0.007187876384705305,
0.01556468103080988,
-0.019432861357927322,
0.0009019370190799236,
-0.013303730636835098,
0.028523439541459084,
-0.017853857949376106,
0.02132386527955532,
0.042638882994651794,
0.007074498571455479,
0.0005344942910596728,
-0.013958894647657871,
0.02200436033308506,
-0.011981599032878876,
-0.0012957410654053092,
-0.033146586269140244,
-0.027429459616541862,
0.008640042506158352,
0.012879254296422005,
-0.03145322948694229,
0.06355893611907959,
-0.06899944692850113,
-0.010422462597489357,
-0.042604126036167145,
0.035076387226581573,
-0.02247924730181694,
-0.0013407606165856123,
0.03954696282744408,
0.05671093985438347,
0.013994800858199596,
0.007815495133399963,
-0.06104213744401932,
-0.03640362620353699,
-0.0219584871083498,
0.02683078683912754,
0.08968690037727356,
0.029359810054302216,
-0.03254855424165726,
-0.029091037809848785,
-0.008094649761915207,
0.0435858853161335,
-0.0695192739367485,
-0.019841715693473816,
0.004500702489167452,
0.02914019301533699,
-0.04631900414824486,
0.013439270667731762,
0.05211368575692177,
-0.021981781348586082,
0.041178371757268906,
-0.0034638342913240194,
-0.0021129937376827,
0.033480722457170486,
-0.0043968274258077145,
-0.055941205471754074,
-0.005363999865949154,
-0.031452566385269165,
-0.04563536122441292,
0.03522128611803055,
-0.01806669868528843,
0.017500082030892372,
-0.016441982239484787,
-0.017061695456504822,
0.011175515130162239,
-0.025030454620718956,
-0.02088274247944355,
-0.02722981944680214,
-0.040135741233825684,
0.04089134559035301,
-0.02729312889277935,
-0.00398291228339076,
0.023929506540298462,
0.015725163742899895,
0.007649022154510021,
0.014737779274582863,
-0.006200280040502548,
0.04529518634080887,
0.002205586526542902,
0.03004206344485283,
0.004339509643614292,
0.04068291187286377,
0.05812685191631317,
-0.009966177865862846,
-0.02031577192246914,
-0.013803728856146336
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | Descriptive Statistics To look at the surface characteristics of the dataset This begins to answer questions like “What kind of language is in this dataset? How diverse is it?” - The dataset vocabulary size and word distribution, for both open- and closed-class words. - The dataset label distribution and information about class (im)balance. - The mean, median, range, and distribution of instance lengths. - The number of duplicates in the dataset and how many times they are repeated. You can use these widgets to check whether what is most and least represented in the dataset make sense for the goals of the dataset. These measurements are intended to inform whether the dataset can be useful in capturing a variety of contexts or if what it captures is more limited, and to measure how ''balanced'' the labels and instance lengths are. You can also use these widgets to identify outliers and duplicates you may want to remove. | [
0.024353696033358574,
-0.03593853488564491,
-0.018130335956811905,
-0.003187772585079074,
0.10425180196762085,
0.098887138068676,
-0.038439393043518066,
0.014774915762245655,
-0.1016400158405304,
-0.10962159186601639,
-0.02789175882935524,
0.013277114368975163,
0.0711263045668602,
0.004181448370218277,
0.017727183178067207,
0.054630037397146225,
0.0750807374715805,
0.02667524851858616,
0.054920561611652374,
0.023626582697033882,
-0.032447449862957,
-0.03594213351607323,
0.031645357608795166,
-0.019165577366948128,
0.031131010502576828,
0.006105400156229734,
0.0689314529299736,
0.01889076828956604,
-0.018203724175691605,
0.01283437293022871,
-0.1308472752571106,
0.08147463202476501,
0.006055187433958054,
0.0002536472456995398,
-0.01045528706163168,
-0.045249056071043015,
-0.055292896926403046,
0.07174144685268402,
0.022868603467941284,
-0.014758618548512459,
-0.0021279724314808846,
-0.06297699362039566,
-0.025112254545092583,
0.006060940679162741,
-0.08833456039428711,
-0.03118501976132393,
-0.1355304718017578,
0.04729163646697998,
-0.015195688232779503,
0.0042791529558598995,
-0.07213643938302994,
0.012598216533660889,
-0.02339233085513115,
0.029389293864369392,
0.05659233033657074,
-0.009725662879645824,
0.026773730292916298,
-0.04627544432878494,
0.04179125279188156,
0.009935358539223671,
0.03742879256606102,
0.04782530665397644,
0.051082074642181396,
0.015835566446185112,
-0.03922270983457565,
-0.03428417444229126,
-0.004766722675412893,
0.031462233513593674,
0.01292753592133522,
0.013090642169117928,
-0.042457111179828644,
0.023588726297020912,
-0.006102359853684902,
-0.03164944425225258,
-0.026751138269901276,
0.009184245020151138,
0.0031350813806056976,
-0.017533672973513603,
-0.012493050657212734,
-0.06541499495506287,
0.0047693015076220036,
0.008464080281555653,
0.08078905940055847,
0.018704162910580635,
-0.030600234866142273,
-0.06736341863870621,
0.052139248698949814,
0.01874469965696335,
-0.05447041615843773,
0.0624811053276062,
0.0542711466550827,
-0.06668020784854889,
0.05157448723912239,
0.017534272745251656,
-0.027157794684171677,
-0.0691930428147316,
0.06528257578611374,
-0.025549080222845078,
0.013106145896017551,
0.03810304030776024,
-0.0728457048535347,
-0.009262819774448872,
0.10232160985469818,
-0.09179461002349854,
-0.06100332364439964,
0.008650374598801136,
-0.010028673335909843,
-0.03672858327627182,
-0.06501699239015579,
0.09481215476989746,
-0.06618265062570572,
-0.02191079594194889,
-0.04540473222732544,
0.10353593528270721,
-0.04650353267788887,
-0.018933862447738647,
0.05219380185008049,
0.02192155085504055,
-0.044401101768016815,
0.01247226633131504,
-0.031162332743406296,
0.01592240110039711,
0.0008204617188312113,
0.033090099692344666,
-0.05126725137233734,
-0.008763948455452919,
0.012902941554784775,
0.04814254119992256,
0.026214445009827614,
-0.05372731760144234,
0.0034965137019753456,
-0.030756913125514984,
0.028602030128240585,
0.02950918860733509,
-0.010186939500272274,
-0.03441891819238663,
-0.06165251135826111,
-0.011053196154534817,
0.035241033881902695,
0.014308265410363674,
0.038215018808841705,
0.03736520931124687,
-0.02418868988752365,
0.018281569704413414,
-0.023059185594320297,
0.0275702066719532,
-0.04686069115996361,
-0.022184450179338455,
0.001364049967378378,
0.050116464495658875,
0.010997200384736061,
0.044503625482320786,
0.02468631975352764,
-0.023679666221141815,
0.09771210700273514,
0.05053328722715378,
-0.06931174546480179,
0.010188430547714233,
-0.05191998928785324,
0.023246198892593384,
-0.029444755986332893,
0.023159785196185112,
0.014297000132501125,
-0.00850412156432867,
0.03633221238851547,
0.008974572643637657,
-0.04871164262294769,
0.001916606561280787,
0.010329872369766235,
0.0217349361628294,
-0.0563727468252182,
-0.048207804560661316,
0.05551035702228546,
0.025949813425540924,
-0.029140088707208633,
0.008775802329182625,
0.008794230408966541,
-0.01653127372264862,
0.0611998587846756,
0.012771151959896088,
-0.027207929641008377,
-0.03729633614420891,
0.03062191605567932,
0.00604833522811532,
0.02062239497900009,
-0.040386028587818146,
0.04434652253985405,
-0.040009573101997375,
-0.01710117980837822,
-0.023069247603416443,
-0.021957874298095703,
-0.07518742978572845,
0.03156745433807373,
-0.03894004970788956,
-0.011656914837658405,
-0.01777569018304348,
-0.006105686072260141,
0.11258561909198761,
0.030843282118439674,
0.025593748316168785,
0.03622676432132721,
0.005582846235483885,
0.01611371710896492,
-0.038749873638153076,
-0.008133449591696262,
-0.01820048689842224,
0.03008907660841942,
0.00284009613096714,
-0.048866450786590576,
-0.03442614525556564,
-0.05081966519355774,
-0.09069391340017319,
0.0037630468141287565,
-0.041577838361263275,
0.015510653145611286,
0.007014086004346609,
0.028773261234164238,
-0.002899380400776863,
0.09689551591873169,
-0.024595294147729874,
0.12842491269111633,
-0.05931627005338669,
0.022332997992634773,
-0.0022726517636328936,
-0.04793623834848404,
-0.013474266976118088,
0.12734051048755646,
0.08907704055309296,
0.09566199034452438,
-0.08865934610366821,
-0.03499387949705124,
-0.016462018713355064,
0.09126923978328705,
-0.018671056255698204,
-0.054263465106487274,
0.02206980064511299,
-0.029001282528042793,
-0.000030470462661469355,
0.038221098482608795,
-0.06855867803096771,
-0.014421537518501282,
-0.016419708728790283,
-0.003038937458768487,
0.03276262432336807,
0.03900310769677162,
-0.00684489356353879,
0.11815175414085388,
-0.012365100905299187,
-0.0644790530204773,
-0.013269739225506783,
0.022468116134405136,
0.06547513604164124,
0.025602474808692932,
-0.06485103070735931,
-0.08849393576383591,
0.039138730615377426,
0.046052485704422,
-0.00445928331464529,
-0.007013414055109024,
0.05596115067601204,
-0.022784821689128876,
-0.04022417217493057,
-0.026165740564465523,
-0.050202902406454086,
0.029195044189691544,
-0.01323547400534153,
-0.026500634849071503,
-0.007676619105041027,
0.020608115941286087,
-0.007231936790049076,
0.029741544276475906,
0.04010076820850372,
0.013723733834922314,
0.0027552349492907524,
-0.015766864642500877,
-0.037639182060956955,
-0.030993090942502022,
0.00218368973582983,
-0.038460616022348404,
-0.04345400258898735,
-0.03582633286714554,
-0.026249529793858528,
0.05397737771272659,
-0.0018044175812974572,
0.03722793981432915,
-0.04231172800064087,
0.011735547333955765,
0.01972021348774433,
-0.017824409529566765,
-0.031043274328112602,
0.003338784212246537,
0.03650499880313873,
-0.056686706840991974,
-0.010207287035882473,
0.03835936635732651,
0.012345441617071629,
-0.04485270008444786,
0.02112506702542305,
-0.025581004098057747,
-0.005776332691311836,
-0.006392350420355797,
0.0053597986698150635,
-0.019281893968582153,
-0.020316731184720993,
-0.028817884624004364,
0.036513909697532654,
-0.025022244080901146,
0.051093388348817825,
-0.08657076954841614,
-0.0141789885237813,
0.019219623878598213,
-0.0023804428055882454,
-0.006479847710579634,
-0.06624258309602737,
0.057039398699998856,
0.03311826288700104,
-0.03339065611362457,
0.014822354540228844,
0.009748144075274467,
0.02889181300997734,
-0.011218219064176083,
0.014219335280358791,
0.018202802166342735,
0.015040899626910686,
-0.022199122235178947,
-0.023739993572235107,
0.03885168954730034,
0.019326873123645782,
0.01747158356010914,
0.009449325501918793,
0.01214950904250145,
0.04372072219848633,
-0.0685802698135376,
0.024610374122858047,
0.05640537664294243,
0.019563473761081696,
-0.0034440206363797188,
-0.04250185936689377,
0.002491737250238657,
0.007079290226101875,
-0.03500540927052498,
0.004522645380347967,
-0.03239293023943901,
0.044550374150276184,
-0.030532894656062126,
0.02306649088859558,
-0.0023877019993960857,
0.025582021102309227,
-0.026095129549503326,
0.042401429265737534,
0.0014993810327723622,
-0.017803974449634552,
-0.0011435827473178506,
0.02203662134706974,
-0.044228702783584595,
-0.023287709802389145,
0.029360290616750717,
-0.015787417069077492,
-0.023235490545630455,
-0.05015178024768829,
-0.0071105919778347015,
0.04337209090590477,
-0.0473589263856411,
0.040470365434885025,
0.047264277935028076,
0.03199133649468422,
-0.01138270366936922,
-0.005643635988235474,
-0.016005294397473335,
-0.00214603403583169,
0.02492816559970379,
-0.023386994376778603,
-0.058013737201690674,
-0.018940193578600883,
-0.023783816024661064,
0.011984366923570633,
-0.017101580277085304,
0.04263603314757347,
-0.001340267132036388,
0.034195203334093094,
0.0426049567759037,
0.0017657018033787608,
0.017185665667057037,
0.0002295856538694352,
0.026076411828398705,
0.002211147453635931,
0.04432167857885361,
0.029977761209011078,
0.014183878898620605,
0.005194914992898703,
-0.015615818090736866,
-0.03784574940800667,
0.007923737168312073,
-0.04836387187242508,
0.005686530377715826,
-0.020525602623820305,
0.01658647321164608,
0.01141564641147852,
-0.005291937850415707,
-0.05004671961069107,
0.011322657577693462,
-0.0067954943515360355,
0.0037933611311018467,
0.025309409946203232,
0.02602071687579155,
-0.006773572880774736,
0.003519688965752721,
-0.04504982754588127,
0.05210566893219948,
-0.03537435457110405,
0.01694508269429207,
0.0009202181827276945,
-0.03889790549874306,
0.04797748103737831,
-0.0361422523856163,
0.00010123947140527889,
0.04233885183930397,
-0.014847676269710064,
-0.01710554212331772,
-0.020112140104174614,
-0.007134805899113417,
0.027949916198849678,
0.023576460778713226,
0.005375029519200325,
0.008119842037558556,
-0.016075490042567253,
0.01431216299533844,
0.0030233506113290787,
-0.03003670461475849,
-0.0010520227951928973,
-0.01264825277030468,
0.016658317297697067,
-0.017458194866776466,
-0.006490442436188459,
0.044226549565792084,
-0.028172427788376808,
0.0004465332021936774,
-0.05468627065420151,
0.02836296148598194,
0.021569669246673584,
-0.001019893679767847,
0.005032884888350964,
-0.01254745852202177,
0.013513755053281784,
-0.01770130731165409,
0.0280565544962883,
0.012142257764935493,
-0.017107637599110603,
0.018020035699009895,
-0.004192382097244263,
0.024105429649353027,
-0.009989766404032707,
0.03339004889130592,
-0.04293978586792946,
-0.042165663093328476,
-0.02582516334950924,
0.004183092154562473,
-0.020732516422867775,
0.0027276913169771433,
0.05669340118765831,
-0.03917450085282326,
-0.0053779203444719315,
0.026366768404841423,
-0.0486731193959713,
-0.033150605857372284,
0.014180191792547703,
-0.041122227907180786,
0.039035435765981674,
0.03303975984454155,
0.010583399794995785,
-0.02946925163269043,
-0.004960623104125261,
-0.0280827134847641,
0.010663114488124847,
0.044029463082551956,
0.04061655327677727,
0.00029717720462940633,
0.05428750813007355,
0.015294767916202545,
0.01770637370646,
-0.0024643593933433294,
-0.007913070730865002,
0.032120224088430405,
0.014666654169559479,
0.020308293402194977,
0.046359769999980927,
-0.029332540929317474,
0.015281948260962963,
-0.06059909611940384,
-0.019195429980754852,
-0.006116625852882862,
-0.01651756279170513,
0.017015701159834862,
0.051363762468099594,
0.03939295932650566,
0.05715346336364746,
0.027591288089752197,
0.06074205040931702,
0.017029257491230965,
-0.008591431193053722,
-0.026260048151016235,
-0.027816196903586388,
0.002629352267831564,
0.019093530252575874,
0.08629438281059265,
0.038823649287223816,
-0.005997686646878719,
-0.02125409245491028,
0.018748905509710312,
-0.0033796457573771477,
0.0276251882314682,
0.0023152760695666075,
-0.025272401049733162,
0.0064992764964699745,
0.0027253678999841213,
-0.049130819737911224,
-0.017510725185275078,
-0.05739425867795944,
-0.028661932796239853,
-0.026397934183478355,
-0.04561226814985275,
-0.028827177360653877,
0.005027102306485176,
-0.06983595341444016,
-0.06816256046295166,
0.0015906430780887604,
0.017341576516628265,
0.022730421274900436,
0.008786723017692566,
-0.008768309839069843,
-0.022150464355945587,
0.03220173716545105,
0.01360358763486147,
-0.038178201764822006,
-0.024813886731863022,
-0.03230550140142441,
0.01750946044921875,
0.024662110954523087,
0.017587894573807716,
0.009550484828650951,
-0.007291046902537346,
0.037282176315784454,
-0.044820547103881836,
-0.005839264951646328,
-0.0170217864215374,
0.01670079678297043,
0.029852109029889107,
-0.01163578499108553,
-0.022992411628365517,
-0.02158457413315773,
0.009833980351686478,
0.001882978598587215,
-0.012773295864462852,
-0.041631363332271576,
0.061443991959095,
0.007943912409245968,
0.04168624430894852,
-0.016434121876955032,
-0.04843769967556,
-0.020030111074447632,
-0.001900363015010953,
0.024566860869526863,
0.03952063247561455,
0.005835945252329111,
-0.03298917040228844,
-0.021268462762236595,
-0.0005281292251311243,
0.05898614972829819,
-0.02636623941361904,
-0.04018738493323326,
0.039165619760751724,
0.0038973966147750616,
-0.08268453180789948,
0.004524221643805504,
0.024990316480398178,
-0.02042798511683941,
0.05942968651652336,
-0.041042156517505646,
0.022542186081409454,
0.04582933336496353,
-0.013489022850990295,
-0.01187068410217762,
-0.0071608819998800755,
-0.04124099016189575,
-0.027180099859833717,
0.047749537974596024,
0.022519651800394058,
-0.021113945171236992,
0.019128873944282532,
0.025229064747691154,
0.03475986793637276,
-0.033815961331129074,
-0.038155436515808105,
0.038127776235342026,
0.04359458014369011,
0.01551290787756443,
0.03477461263537407,
-0.016974810510873795,
0.01065250113606453,
-0.001613757573068142,
-0.033864691853523254,
0.005768320988863707,
-0.019807007163763046,
0.023022960871458054,
0.01241904404014349,
-0.011236559599637985,
-0.013432390987873077,
-0.03619995713233948,
0.03896810859441757,
0.004728809464722872,
-0.00013872799172531813,
0.013796474784612656,
-0.006591769866645336,
0.0035521939862519503,
0.03381558880209923,
-0.002051516668871045,
0.043984171003103256,
0.002706054598093033,
0.00996781699359417,
0.021576624363660812,
0.06772243976593018,
0.017273036763072014,
0.004394834395498037,
0.02444896474480629,
0.0009638690971769392,
-0.03259216994047165,
0.01410844549536705,
0.024247609078884125,
0.0134077537804842,
-0.05738115310668945,
0.012555933557450771,
0.013108867220580578,
-0.08231218159198761,
0.012433397583663464,
-0.018948551267385483,
0.007966664619743824,
0.005802238825708628,
0.013760914094746113,
-0.030008438974618912,
0.04229089245200157,
0.004691847134381533,
-0.03680029883980751,
-0.05500708147883415,
0.017017129808664322,
-0.032744698226451874,
-0.010442761704325676,
0.0003260766970925033,
-0.013662004843354225,
-0.05166652798652649,
0.01222134381532669,
0.020690079778432846,
-0.0027555800043046474,
-0.034872859716415405,
-0.0107039213180542,
-0.026425084099173546,
-0.021030059084296227,
-0.009431656450033188,
0.017801683396100998,
-0.016657188534736633,
0.029829660430550575,
0.016070079058408737,
-0.002637611236423254,
-0.040663376450538635,
-0.04281403869390488,
0.020287206396460533,
0.01219797320663929,
0.002727087587118149,
-0.04142152518033981,
-0.029021762311458588,
0.019221149384975433,
0.02869938500225544,
0.0034540221095085144,
-0.01381729356944561,
0.005310999695211649,
-0.025224123150110245,
0.032987527549266815,
0.014844737015664577,
0.01264463271945715,
-0.024457575753331184,
0.03477950021624565,
0.02353508397936821,
-0.0643925815820694,
-0.05873414874076843,
0.05640034377574921,
0.001122492365539074,
-0.01531150657683611,
0.014381907880306244,
0.005814068950712681,
0.019978944212198257,
0.022432580590248108,
-0.020498676225543022,
-0.012514632195234299,
0.06965098530054092,
0.036872055381536484,
0.022383026778697968,
0.060883715748786926,
0.027657747268676758,
0.06977959722280502,
-0.03181702271103859,
-0.007128734141588211,
-0.006203288212418556,
0.020967703312635422,
-0.01792975701391697,
0.0030473130755126476,
-0.029707232490181923,
0.00440982636064291,
0.03260643035173416,
0.01978267915546894,
-0.02391030825674534,
-0.022061549127101898,
-0.0034551077987998724,
-0.014359078370034695,
0.01737472601234913,
0.017372986301779747,
0.003850753651931882,
0.05253366753458977,
0.0032033848110586405,
-0.02524600364267826,
0.023228121921420097,
0.06824108958244324,
-0.014757399447262287,
-0.0056659141555428505,
0.00984466727823019,
-0.032945141196250916,
-0.017968183383345604,
0.0342605821788311,
0.06089914217591286,
0.023715343326330185,
0.02808166667819023,
-0.00081246392801404,
0.06275621801614761,
-0.01997869648039341,
-0.03661489114165306,
-0.016225451603531837,
-0.003533831564709544,
0.022895142436027527,
-0.026538679376244545,
-0.02479422464966774,
0.00992579199373722,
0.01244938001036644,
-0.00225059874355793,
0.03112899139523506,
-0.007359051611274481,
-0.000005936846264376072,
0.049303099513053894,
0.012230342254042625,
0.035265929996967316,
0.03305918723344803,
0.006937307305634022,
-0.037077948451042175,
0.046959493309259415,
0.011912847869098186,
-0.018370695412158966,
0.0009292190079577267,
-0.021503174677491188,
-0.007900070399045944,
0.0010185958817601204,
-0.03586181253194809,
0.014565369114279747,
0.011978020891547203,
-0.008768768981099129,
0.013742471113801003,
-0.03211839124560356,
0.011994083411991596,
0.018323659896850586,
0.035200800746679306,
-0.0018857014365494251,
-0.007907905615866184
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | What is the status of 🤗 Data Measurements Tool development? We currently present the alpha version (v0) of the tool, demonstrating its usefulness on a handful of popular English-language datasets (e.g. SQuAD, imdb, C4, ...) available on the Dataset Hub, with the functionalities described above. The words that we selected for nPMI visualization are a subset of identity terms that came up frequently in the datasets that we were working with. In coming weeks and months, we will be extending the tool to: - Cover more languages and datasets present in the 🤗 Datasets library. - Provide support for user-provided datasets and iterative dataset building. - Add more features and functionalities to the tool itself. For example, we will make it possible to add your own terms for the nPMI visualization so you can pick the words that matter most to you. | [
0.02124221995472908,
-0.0628163293004036,
0.03322678059339523,
-0.056957099586725235,
0.04877389222383499,
0.08997597545385361,
-0.01566644199192524,
0.027383508160710335,
-0.07017636299133301,
-0.1203639805316925,
-0.07336464524269104,
-0.0067402273416519165,
0.01860594004392624,
0.016100440174341202,
0.049086615443229675,
0.031540773808956146,
0.042320366948843,
0.0015354546485468745,
-0.025522472336888313,
0.01858382485806942,
-0.022182174026966095,
-0.005967806093394756,
0.032029278576374054,
-0.04423036053776741,
-0.021091602742671967,
0.01209771167486906,
0.061632782220840454,
-0.06071450561285019,
-0.061454884707927704,
0.023682355880737305,
-0.08848470449447632,
0.015294179320335388,
0.026004957035183907,
-0.003163758898153901,
-0.006101459264755249,
0.048506543040275574,
-0.12397729605436325,
0.09229984879493713,
0.02715585008263588,
-0.04367297142744064,
-0.00606081448495388,
-0.050246722996234894,
-0.02980591356754303,
0.041648223996162415,
-0.08954860270023346,
-0.013202662579715252,
-0.12428169697523117,
0.04558124393224716,
-0.03586515039205551,
0.01610034517943859,
-0.07748322933912277,
-0.007306431885808706,
0.021385226398706436,
-0.024064453318715096,
0.02863822691142559,
-0.03525398299098015,
0.042539335787296295,
-0.1409122794866562,
0.00847802497446537,
0.005207672715187073,
0.06280357390642166,
0.009384213015437126,
0.085517019033432,
-0.06279878318309784,
0.021141761913895607,
-0.01817614957690239,
0.01863829791545868,
0.059181563556194305,
-0.05516781657934189,
-0.06704721599817276,
-0.003369127633050084,
0.05264677107334137,
-0.06688730418682098,
-0.0019162546377629042,
-0.015470431186258793,
-0.05317392200231552,
-0.023127412423491478,
0.02397201955318451,
0.02557954750955105,
-0.00015475507825613022,
-0.013159753754734993,
0.05643729493021965,
0.04898912087082863,
0.02146724797785282,
-0.03556952252984047,
0.00639420747756958,
0.03847011551260948,
-0.03391032665967941,
-0.008582618087530136,
0.059628453105688095,
0.03659984841942787,
-0.09697140753269196,
0.049216631799936295,
0.012450185604393482,
0.046792127192020416,
-0.07828064262866974,
0.04454957693815231,
0.07773064076900482,
0.05560626834630966,
-0.008404949679970741,
-0.01859293133020401,
-0.006116959266364574,
0.010969319380819798,
-0.07802049070596695,
-0.10087227821350098,
-0.07518934458494186,
-0.015599468722939491,
-0.054753486067056656,
-0.05271655693650246,
0.03323988988995552,
0.019781403243541718,
0.059820763766765594,
0.03763677179813385,
0.09157638251781464,
-0.028067095205187798,
0.02899080701172352,
0.06014971807599068,
0.03726848587393761,
-0.03657098114490509,
0.028551602736115456,
0.008795044384896755,
0.02473222091794014,
-0.020373543724417686,
0.05265728756785393,
0.03622262924909592,
0.026240726932883263,
0.014797576703131199,
0.024465689435601234,
0.013174871914088726,
-0.041930459439754486,
-0.038362011313438416,
-0.03858564794063568,
0.015974758192896843,
-0.017655324190855026,
-0.03092317469418049,
-0.08117905259132385,
-0.06419491022825241,
-0.0344974510371685,
0.043680716305971146,
0.018716199323534966,
-0.01346611138433218,
0.035079941153526306,
-0.03777323663234711,
0.054603461176157,
-0.002450952772051096,
-0.02071191556751728,
-0.06786160916090012,
0.00308145210146904,
0.0030340258963406086,
0.002954611787572503,
0.002170229097828269,
0.033817268908023834,
0.053028449416160583,
-0.034414805471897125,
0.0569843091070652,
0.014688570983707905,
-0.009399179369211197,
0.014531750231981277,
-0.07069627195596695,
0.018266761675477028,
-0.004487278871238232,
0.05283262953162193,
-0.05504104495048523,
-0.011363380588591099,
0.017963163554668427,
0.011199898086488247,
0.018636014312505722,
0.0020445871632546186,
-0.012672903016209602,
-0.026547642424702644,
-0.034631624817848206,
-0.06144129857420921,
0.03740067780017853,
0.019969789311289787,
0.019458403810858727,
0.06112835928797722,
0.047025006264448166,
0.03707865998148918,
0.011330096051096916,
0.05242357775568962,
-0.023380601778626442,
0.05422624200582504,
0.0129031827673316,
0.024822894483804703,
0.0059088910929858685,
-0.034347180277109146,
0.05344098433852196,
-0.03142230585217476,
-0.002818985842168331,
-0.013206787407398224,
-0.05948967859148979,
-0.03386763110756874,
0.07902824133634567,
-0.06635627150535583,
-0.0394471175968647,
-0.05670696869492531,
0.011991632170975208,
0.0971454530954361,
0.05590452253818512,
0.021467281505465508,
0.011984012089669704,
-0.009426325559616089,
0.07011491060256958,
-0.010311403311789036,
-0.009713350795209408,
0.03522365167737007,
0.03508225828409195,
-0.0016689356416463852,
-0.006106547079980373,
-0.06439349800348282,
-0.01991904526948929,
-0.12172648310661316,
0.05674025043845177,
-0.08213938772678375,
-0.02932961843907833,
-0.035357516258955,
-0.056677911430597305,
0.019105779007077217,
0.014819053933024406,
-0.08558577299118042,
0.17123232781887054,
-0.03156288340687752,
0.002355339704081416,
-0.004638976417481899,
-0.031067196279764175,
0.036860719323158264,
0.11600811034440994,
0.04526303708553314,
0.006099931430071592,
-0.04353603348135948,
-0.014011959545314312,
0.02780856005847454,
0.03076322376728058,
0.055520281195640564,
-0.09889523684978485,
0.011195980943739414,
0.05216240510344505,
-0.03300265222787857,
0.013276690617203712,
-0.02594393864274025,
0.010753575712442398,
-0.045030828565359116,
-0.026363637298345566,
0.007329612039029598,
0.029262496158480644,
-0.0011119450209662318,
0.08308153599500656,
-0.007695898413658142,
-0.014573829248547554,
0.008974716067314148,
-0.023215344175696373,
0.06800548732280731,
0.0013373326510190964,
-0.09302692115306854,
0.047485556453466415,
0.022715749219059944,
0.040989950299263,
0.000615657540038228,
-0.038050901144742966,
0.026334073394536972,
-0.04208201915025711,
-0.031141133978962898,
-0.006970284506678581,
-0.05496065691113472,
0.040223024785518646,
-0.03297523409128189,
-0.0016805765917524695,
-0.0027453575748950243,
0.0028859328012913465,
0.00476599857211113,
0.008707735687494278,
0.021445386111736298,
-0.02338348515331745,
0.012745506130158901,
0.05354286730289459,
0.012953400611877441,
0.030311528593301773,
-0.03795011714100838,
-0.038229018449783325,
-0.057918332517147064,
-0.017660362645983696,
-0.06680294871330261,
0.04451349005103111,
0.015717893838882446,
0.035591378808021545,
-0.03290477395057678,
-0.023091785609722137,
-0.011907387524843216,
0.0017827404662966728,
0.030926691368222237,
0.01137608103454113,
0.013633763417601585,
0.0043732281774282455,
-0.017694419249892235,
0.03972211107611656,
-0.012591623701155186,
0.0067465780302882195,
0.033341314643621445,
-0.024440733715891838,
0.029283015057444572,
0.00625204062089324,
0.03679419681429863,
0.020580759271979332,
0.005414897575974464,
-0.022552775219082832,
0.02916695550084114,
-0.0015068637439981103,
-0.0018846673192456365,
-0.10515224188566208,
-0.023106679320335388,
0.03200053423643112,
0.018531866371631622,
-0.019853612408041954,
0.0038559017702937126,
0.0534718781709671,
-0.03800244629383087,
-0.03575964272022247,
0.03369622305035591,
0.00483486196026206,
-0.0015101328026503325,
0.018478797748684883,
-0.023625047877430916,
-0.046124257147312164,
0.012727383524179459,
-0.04330127686262131,
0.0018053448293358088,
0.025418035686016083,
-0.0029259342700242996,
0.00006603241490665823,
0.05399368330836296,
0.025548161938786507,
-0.00860018189996481,
-0.053962405771017075,
0.04966938495635986,
0.0510711744427681,
0.026995563879609108,
0.004959729965776205,
0.0022472606506198645,
-0.011575118638575077,
-0.0004776007845066488,
-0.03955666720867157,
-0.00789073295891285,
-0.02038371004164219,
-0.002021121559664607,
0.011774562299251556,
0.03274922072887421,
0.028072938323020935,
0.016450107097625732,
0.0038210470229387283,
0.0022628253791481256,
0.011636659502983093,
-0.006912642624229193,
0.06104053184390068,
-0.018673058599233627,
-0.006550461519509554,
-0.01949482038617134,
0.026651611551642418,
-0.04840930551290512,
0.000043541287595871836,
0.007258858531713486,
-0.005182910244911909,
0.05045870319008827,
-0.02427826076745987,
-0.012554691173136234,
0.04606679826974869,
0.034793250262737274,
-0.01577628217637539,
-0.024730246514081955,
-0.025352034717798233,
0.032473985105752945,
0.0037473782431334257,
0.0012677349150180817,
-0.022371802479028702,
0.002345426008105278,
0.024569319561123848,
0.011784019879996777,
-0.0119576221331954,
0.04636962711811066,
0.02727898582816124,
0.054237183183431625,
0.029809612780809402,
-0.011828070506453514,
0.0007197218365035951,
-0.003636111505329609,
0.011082748882472515,
-0.02092019096016884,
0.010517852380871773,
0.04838113486766815,
-0.01915312372148037,
-0.023013122379779816,
-0.006056550424546003,
-0.0049642594531178474,
-0.02327415533363819,
-0.004592375364154577,
-0.005611490458250046,
0.009913012385368347,
-0.013577458448708057,
0.020241418853402138,
0.008742387406527996,
-0.01536794938147068,
0.018243897706270218,
-0.0191822312772274,
0.03260142356157303,
0.0577867329120636,
0.025512827560305595,
0.008437381125986576,
0.0029473979957401752,
-0.007184366229921579,
0.03527073562145233,
-0.04493463411927223,
-0.0015418368857353926,
-0.01918860152363777,
-0.019931035116314888,
0.028497954830527306,
-0.06867814809083939,
-0.007110500242561102,
0.01693337969481945,
0.01829124055802822,
0.005304446443915367,
-0.011675819754600525,
-0.02254061959683895,
0.003014529822394252,
0.023276036605238914,
0.029562558978796005,
0.009500575251877308,
-0.0030285578686743975,
-0.03654102236032486,
0.027303552255034447,
-0.03845050558447838,
-0.010181928984820843,
0.01037193275988102,
-0.003590846201404929,
-0.0026854046154767275,
-0.02772749587893486,
-0.021323462948203087,
-0.018436802551150322,
0.02164287306368351,
-0.0331663116812706,
-0.01685299165546894,
-0.033859267830848694,
0.031080765649676323,
0.0033316900953650475,
-0.009477315470576286,
0.01207321509718895,
-0.03576865792274475,
0.04350556060671806,
-0.040858302265405655,
-0.025385860353708267,
0.009786339476704597,
-0.009281812235713005,
0.0033960137516260147,
0.0029362565837800503,
0.03963939845561981,
-0.012172338552772999,
0.01051925029605627,
-0.027177272364497185,
0.005143929272890091,
-0.025740522891283035,
0.013267920352518559,
0.032684847712516785,
-0.0007207687012851238,
-0.010680648498237133,
0.04080615192651749,
-0.019894370809197426,
-0.0016618762165307999,
0.016399873420596123,
-0.029487930238246918,
0.04205457493662834,
0.0009357485105283558,
-0.01979644224047661,
-0.01667150668799877,
-0.003256759140640497,
-0.003450424410402775,
0.007975428365170956,
0.05057951807975769,
0.012586798518896103,
-0.00149499939288944,
0.017567509785294533,
-0.03920409083366394,
0.041696589440107346,
0.014668162912130356,
-0.02971600368618965,
0.010417490266263485,
0.023001573979854584,
0.008773157373070717,
0.05070231482386589,
-0.037312548607587814,
0.04058116674423218,
-0.047251325100660324,
-0.016886696219444275,
0.022711386904120445,
0.016680514439940453,
-0.02547050081193447,
0.03204578161239624,
0.03502127528190613,
0.03813379257917404,
0.019919006153941154,
-0.030964646488428116,
-0.049396030604839325,
-0.025325922295451164,
-0.03310876339673996,
-0.0696176066994667,
0.01837087981402874,
-0.025573300197720528,
-0.0044157556258141994,
-0.0031121333595365286,
-0.017777709290385246,
-0.010168574750423431,
0.017345862463116646,
0.058001529425382614,
-0.008577839471399784,
0.01415919791907072,
-0.01186736673116684,
0.026729641482234,
-0.007106279022991657,
-0.048958733677864075,
-0.02993204817175865,
-0.10998710244894028,
-0.03602534532546997,
0.012199196964502335,
-0.015183084644377232,
-0.010334257036447525,
-0.015810370445251465,
-0.049016572535037994,
-0.024469930678606033,
-0.018085768446326256,
0.0379905141890049,
0.033800143748521805,
-0.0001280922588193789,
0.01433250680565834,
0.011628011241555214,
0.06468415260314941,
0.00932691153138876,
0.010452346876263618,
-0.025918107479810715,
-0.01750822179019451,
0.01418004184961319,
0.032604385167360306,
0.04839533939957619,
0.014165434055030346,
0.034103285521268845,
0.058035433292388916,
-0.01871582493185997,
0.02014649659395218,
-0.00998533982783556,
0.043591808527708054,
0.019906874746084213,
-0.0062859198078513145,
-0.037249062210321426,
-0.03364384546875954,
0.0216850396245718,
-0.015761518850922585,
-0.032464399933815,
0.0455172136425972,
0.03717759996652603,
0.000054671178077114746,
0.005300905555486679,
0.05087852478027344,
-0.01168402936309576,
-0.014765117317438126,
-0.03141408786177635,
0.006153032649308443,
0.038044922053813934,
0.03977540135383606,
0.005603597033768892,
-0.020222702994942665,
0.02141548879444599,
-0.024188848212361336,
0.00854815449565649,
-0.06457747519016266,
0.0466262511909008,
0.058500178158283234,
-0.07762899994850159,
0.01989271305501461,
0.00136092328466475,
-0.02186444401741028,
0.015411059372127056,
0.012995420023798943,
0.008570359088480473,
0.02962804026901722,
0.0271036047488451,
0.01805369183421135,
-0.012830070219933987,
-0.022929923608899117,
-0.030219200998544693,
0.051606714725494385,
0.021140607073903084,
-0.03432334214448929,
-0.010715164244174957,
0.05014972761273384,
0.06261174380779266,
0.057977620512247086,
0.008798344060778618,
0.033333297818899155,
0.03529258444905281,
0.04395413026213646,
0.03212767839431763,
0.027159353718161583,
0.003910481464117765,
-0.010337830521166325,
-0.011678562499582767,
-0.012391128577291965,
-0.01658865436911583,
0.016271620988845825,
0.01881607621908188,
0.002619069069623947,
-0.008133836090564728,
0.005286483094096184,
0.05721635743975639,
-0.014321810565888882,
-0.033546846359968185,
0.0093633271753788,
-0.03432413190603256,
0.03373127803206444,
0.01666524074971676,
0.015044121071696281,
0.0036533877719193697,
0.007675443775951862,
0.003827507607638836,
0.055659081786870956,
0.03866121917963028,
-0.0035123182460665703,
0.03916473686695099,
0.028893085196614265,
0.0011019814992323518,
-0.025856394320726395,
0.017375348135828972,
0.011185673996806145,
-0.0037727351300418377,
0.019713446497917175,
-0.010649485513567924,
0.0015371699118986726,
-0.02868344448506832,
-0.05555335059762001,
0.013141402043402195,
0.04370245710015297,
0.020705780014395714,
0.0016099618514999747,
0.011684329248964787,
0.011403820477426052,
0.015914682298898697,
0.002054581418633461,
-0.07146181166172028,
-0.010306747630238533,
0.0405888669192791,
0.020672958344221115,
-0.018642442300915718,
-0.023073580116033554,
-0.039434537291526794,
0.02964017353951931,
0.04090327024459839,
0.012634461745619774,
-0.00932334829121828,
-0.030256595462560654,
-0.03879004344344139,
0.014215153641998768,
-0.00938163697719574,
0.005237684119492769,
0.027073657140135765,
0.00289509748108685,
-0.03461025655269623,
-0.0060212514363229275,
-0.0039647407829761505,
0.01807706616818905,
-0.005935044027864933,
-0.03256191313266754,
0.022729692980647087,
-0.029503751546144485,
-0.030199209228157997,
0.01360840443521738,
0.037664469331502914,
-0.021290063858032227,
-0.01034870371222496,
-0.007847348228096962,
0.012417999096214771,
-0.018185574561357498,
0.01756216026842594,
0.01774490624666214,
0.002683205995708704,
0.02274073101580143,
0.00018964313494507223,
-0.030685629695653915,
-0.024252422153949738,
-0.01597761921584606,
0.004214509390294552,
-0.03901992365717888,
-0.034284379333257675,
-0.05200362205505371,
0.03110470063984394,
0.000020383176888572052,
0.0319957509636879,
-0.014265207573771477,
0.05768601968884468,
0.004166977480053902,
-0.027893075719475746,
0.029688240960240364,
-0.00850282609462738,
0.05993233621120453,
0.014565934427082539,
-0.034622371196746826,
-0.06315294653177261,
0.0032633838709443808,
-0.022618280723690987,
0.005256725009530783,
-0.07562413066625595,
-0.00919689703732729,
0.012528668157756329,
-0.02823907509446144,
-0.04704149812459946,
0.02388697676360607,
0.03983711823821068,
0.012074274010956287,
0.053036537021398544,
0.016173455864191055,
-0.014668246731162071,
0.02221537195146084,
-0.002796752844005823,
0.012884397991001606,
0.025347698479890823,
0.0009982865303754807,
-0.014791226014494896,
-0.013350370340049267,
0.062451351433992386,
-0.04286250099539757,
-0.04039657488465309,
0.021430514752864838,
0.05777045339345932,
0.03262389823794365,
-0.023375820368528366,
0.0031699372921139,
0.02130514569580555,
0.03400097042322159,
-0.04947133734822273,
-0.001570408814586699,
0.010225070640444756,
-0.007401993963867426,
-0.03273044899106026,
-0.0751686841249466,
-0.028226381167769432,
0.004123321268707514,
0.0022999413777142763,
0.028409555554389954,
-0.004388920031487942,
-0.014306959696114063,
0.05431663244962692,
-0.019347578287124634,
0.013851035386323929,
-0.003924401942640543,
-0.002484637778252363,
0.010248003527522087,
0.040255818516016006,
0.020098218694329262,
0.0046824803575873375,
-0.02095397748053074,
0.019486185163259506,
0.03735474497079849,
0.0136523162946105,
-0.01699776202440262,
0.019796468317508698,
0.004379677586257458,
-0.00932786613702774,
0.008251053281128407,
-0.0028793306555598974,
0.024675849825143814,
0.05899924039840698,
-0.0050408197566866875,
0.001658282708376646,
-0.01714641973376274
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | Why have we created this tool? Thoughtful curation and analysis of Machine Learning datasets is often overlooked in AI development. Current norms for “big data” in AI (Luccioni et al., 2021, Dodge et al., 2021) include using data scraped from various websites, with little or no attention paid to concrete measurements of what the different data sources represent, nor the nitty-gritty details of how they may influence what a model learns. Although dataset annotation approaches can help to curate datasets that are more in line with a developer’s goals, the methods for “measuring” different aspects of these datasets are fairly limited (Sambasivan et al., 2021). A new wave of research in AI has called for a fundamental paradigm shift in how the field approaches ML datasets (Paullada et al., 2020, Denton et al., 2021). This includes defining fine-grained requirements for dataset creation from the start (Hutchinson et al., 2021), curating datasets in light of problematic content and bias concerns (Yang et al., 2020, Prabhu and Birhane, 2020), and making explicit the values inherent in dataset construction and maintenance (Scheuerman et al., 2021, Birhane et al., 2021). Although there is general agreement that dataset development is a task that people from many different disciplines should be able to inform, in practice there is often a bottleneck in interfacing with the raw data itself, which tends to require complex coding skills in order to analyze and query the dataset. Despite this, there are few tools openly available to the public to enable people from different disciplines to measure, interrogate, and compare datasets. We aim to help fill this gap. We learn and build from recent tools such as Know Your Data and Data Quality for AI, as well as research proposals for dataset documentation such as Vision and Language Datasets (Ferraro et al., 2015), Datasheets for Datasets (Gebru et al, 2018), and Data Statements (Bender & Friedman 2019). The result is an open-source library for dataset measurements, and an accompanying no-code interface for detailed dataset analysis. | [
0.03759899362921715,
-0.0783294141292572,
0.013976327143609524,
0.03958725184202194,
0.04244640842080116,
0.05995004251599312,
-0.032445721328258514,
0.023823849856853485,
-0.049791499972343445,
-0.07512471824884415,
-0.045798543840646744,
0.022890331223607063,
0.030611548572778702,
0.039296261966228485,
0.040516600012779236,
-0.02331015281379223,
0.06606936454772949,
-0.008954585529863834,
0.018799863755702972,
-0.010320683009922504,
-0.01807643100619316,
-0.04430438578128815,
0.04312380030751228,
-0.06441265344619751,
-0.02765686623752117,
-0.03716478869318962,
0.05070304125547409,
-0.035519883036613464,
-0.05010208487510681,
0.054401759058237076,
-0.13498631119728088,
0.05178236588835716,
-0.018901323899626732,
-0.011768091470003128,
-0.08180080354213715,
-0.016555270180106163,
-0.0786951556801796,
0.05075983703136444,
0.038100965321063995,
-0.04513220861554146,
0.0244440920650959,
-0.033554766327142715,
-0.06965038925409317,
0.07361298054456711,
-0.018676303327083588,
-0.02058069407939911,
-0.18927860260009766,
0.09096366912126541,
-0.02966110035777092,
0.052210498601198196,
-0.10854288190603256,
0.05766582489013672,
-0.026033813133835793,
0.008594602346420288,
-0.006313894875347614,
0.008954444900155067,
0.009700515307486057,
-0.09047985821962357,
-0.012890194542706013,
0.010661059990525246,
0.06412321329116821,
0.017200859263539314,
0.07399599254131317,
-0.029932430014014244,
0.04324182868003845,
-0.027273574844002724,
-0.007006282918155193,
0.05343620106577873,
-0.06864801794290543,
-0.03679049760103226,
0.008514166809618473,
-0.0050518750213086605,
-0.036936406046152115,
-0.016461417078971863,
-0.056079965084791183,
-0.00922330655157566,
-0.02733641304075718,
0.01738048531115055,
0.0477428212761879,
0.009668896906077862,
0.010740995407104492,
0.03417733684182167,
0.06589526683092117,
-0.007338333874940872,
0.025233488529920578,
-0.004646567162126303,
0.0038403975777328014,
-0.04517697915434837,
-0.028593143448233604,
0.06404876708984375,
-0.02803342416882515,
-0.10771416127681732,
-0.01106667798012495,
0.01721171848475933,
0.03328629210591316,
-0.09617499262094498,
0.04757076874375343,
0.05104441940784454,
0.047277793288230896,
0.025869162753224373,
-0.026485804468393326,
0.04082418978214264,
0.02361391671001911,
-0.016937540844082832,
-0.026376236230134964,
0.010150614194571972,
-0.015156147070229053,
-0.028127402067184448,
-0.048057518899440765,
0.05278401076793671,
-0.01640486530959606,
0.018658243119716644,
-0.03129040449857712,
0.10793009400367737,
-0.03152373433113098,
0.0317000076174736,
0.06024836376309395,
-0.0584779754281044,
-0.047356538474559784,
0.026674801483750343,
0.0037768534384667873,
0.030762286856770515,
0.04875236377120018,
0.03802023455500603,
-0.06269173324108124,
0.06630468368530273,
0.031099146232008934,
0.04000503197312355,
0.029830031096935272,
-0.03237970545887947,
-0.012764927931129932,
-0.03468018397688866,
-0.0353289432823658,
-0.042058609426021576,
-0.01737925037741661,
-0.056256331503391266,
-0.014102472923696041,
-0.06571245193481445,
0.03870902955532074,
0.023439351469278336,
-0.008474077098071575,
0.009442359209060669,
-0.029876647517085075,
0.008420008234679699,
0.047247543931007385,
0.02676745131611824,
-0.06040642037987709,
0.016120480373501778,
-0.012650137767195702,
0.020579250529408455,
-0.07971170544624329,
0.0484917052090168,
-0.02931329980492592,
-0.03508452698588371,
0.0023546768352389336,
0.03023133985698223,
-0.035807352513074875,
-0.016634171828627586,
-0.05403587967157364,
0.02812090888619423,
-0.054338086396455765,
-0.032939571887254715,
-0.016718797385692596,
0.004079061560332775,
0.010895690880715847,
-0.03314928710460663,
0.0413949079811573,
0.0005349579150788486,
-0.02057677134871483,
0.03330027312040329,
0.00007145966083044186,
-0.02076917514204979,
0.0976458340883255,
-0.06005352362990379,
0.05633992329239845,
0.01242899615317583,
0.03033570572733879,
0.00026824409724213183,
0.006808861158788204,
0.0364559106528759,
-0.058664292097091675,
0.018030593171715736,
-0.008848684839904308,
0.01994592323899269,
0.07064816355705261,
-0.04841870069503784,
0.042920488864183426,
-0.05934974178671837,
-0.03000362031161785,
0.018397659063339233,
-0.04725797101855278,
-0.03632654994726181,
0.1125311627984047,
-0.02441509999334812,
0.0358697883784771,
-0.0928419828414917,
-0.028634680435061455,
0.18137919902801514,
0.05444992333650589,
0.06702332198619843,
0.03922056779265404,
0.022900229319930077,
0.023177625611424446,
-0.06033302843570709,
-0.03674008324742317,
-0.004271456506103277,
0.040563132613897324,
-0.04131300002336502,
0.022349888458848,
-0.04383987560868263,
-0.006419912446290255,
-0.12720076739788055,
0.04215029254555702,
-0.018196847289800644,
-0.01043205801397562,
0.006569125689566135,
0.008046072907745838,
0.04024438187479973,
0.02119300700724125,
-0.06286941468715668,
0.1800677329301834,
-0.021771125495433807,
0.022527359426021576,
0.04100887104868889,
-0.012263326905667782,
0.04896463453769684,
0.08757270127534866,
0.054764073342084885,
0.1080445870757103,
-0.06842300295829773,
0.005529920104891062,
-0.014406343922019005,
-0.0006118573946878314,
0.05903654173016548,
-0.000018740302039077505,
-0.0016505231615155935,
0.051791753619909286,
-0.012267465703189373,
0.029765326529741287,
-0.004181099124252796,
0.007897871546447277,
-0.009373852051794529,
0.023704292252659798,
0.05338407680392265,
0.008331356570124626,
-0.034319572150707245,
0.06111970543861389,
0.017677515745162964,
-0.02542637474834919,
-0.03493758663535118,
-0.005268923006951809,
0.01264601107686758,
0.004661089740693569,
0.002092761220410466,
-0.02655862085521221,
0.03229353576898575,
0.012999827973544598,
-0.010617921128869057,
-0.02896786667406559,
0.038524921983480453,
0.014964628033339977,
-0.05573171004652977,
-0.014493275433778763,
-0.06587190926074982,
0.006856645457446575,
-0.07188968360424042,
-0.025583725422620773,
-0.0002705642837099731,
0.03973999246954918,
0.0159795880317688,
0.012973255477845669,
-0.013911859132349491,
-0.0025402039755135775,
0.02263614907860756,
-0.01696205511689186,
0.04701634868979454,
0.025733986869454384,
-0.011307667940855026,
-0.02007342502474785,
-0.048990651965141296,
-0.015413138084113598,
-0.029367705807089806,
0.020337911322712898,
0.029928717762231827,
0.057141318917274475,
-0.008217827416956425,
0.010279719717800617,
0.02924727462232113,
-0.03689903765916824,
0.025511860847473145,
0.029909200966358185,
0.016766957938671112,
-0.01933421567082405,
-0.010422143153846264,
0.03059741109609604,
-0.005160233471542597,
0.00943824090063572,
0.006107274908572435,
0.005063848104327917,
0.0059335012920200825,
-0.0020458644721657038,
0.008468562737107277,
-0.015454599633812904,
-0.016852181404829025,
-0.02240120805799961,
0.06714925169944763,
0.019895236939191818,
0.0110486950725317,
-0.1144789308309555,
0.020239774137735367,
-0.011438244953751564,
0.018673116341233253,
-0.023736776784062386,
-0.034058671444654465,
0.05478707700967789,
-0.02171405777335167,
-0.015403274446725845,
0.017897097393870354,
0.029803873971104622,
-0.005152296274900436,
0.022841762751340866,
0.05441441759467125,
0.0070502315647900105,
0.01100725494325161,
-0.02439352124929428,
-0.018370704725384712,
0.01997159980237484,
0.03786902502179146,
-0.040006283670663834,
0.04222113639116287,
-0.028395453467965126,
0.03767585754394531,
-0.03558120131492615,
0.05917942523956299,
0.014998792670667171,
0.031045809388160706,
0.021667728200554848,
-0.011852456256747246,
-0.02637477219104767,
-0.008506739512085915,
-0.053283415734767914,
-0.019298506900668144,
-0.006999548990279436,
0.018131444230675697,
0.010129159316420555,
0.026505524292588234,
-0.014874634332954884,
0.05265270546078682,
0.013840727508068085,
-0.0009027968626469374,
0.010511131025850773,
0.017391163855791092,
0.0038574154023081064,
-0.02165437676012516,
-0.02064170315861702,
-0.013540838845074177,
0.029607277363538742,
-0.04562942311167717,
-0.019586676731705666,
0.005682157352566719,
-0.004021975677460432,
0.06717642396688461,
-0.0005600320873782039,
0.004622258245944977,
-0.0005857007927261293,
0.016062056645751,
0.013244573958218098,
-0.014075943268835545,
-0.06238558143377304,
0.01804635301232338,
0.015287086367607117,
-0.012463022023439407,
-0.039134860038757324,
0.02031724713742733,
0.038933299481868744,
0.02309388667345047,
-0.04546212777495384,
0.04121941328048706,
-0.030313929542899132,
0.0492640845477581,
-0.006108483299612999,
0.005522196646779776,
-0.03677220642566681,
0.023926831781864166,
0.00711275776848197,
-0.004123164340853691,
0.05732201784849167,
0.07157690078020096,
-0.011069588363170624,
-0.050528742372989655,
-0.01929229311645031,
-0.025219056755304337,
0.02493055909872055,
0.00681472010910511,
0.0037327485624700785,
-0.03826894983649254,
0.0029626120813190937,
0.04292182996869087,
0.009589587338268757,
-0.02600172348320484,
0.025304604321718216,
-0.003188803791999817,
0.012275006622076035,
0.03767518326640129,
0.07209103554487228,
-0.017213240265846252,
0.0020180477295070887,
0.031490568071603775,
0.05152037739753723,
-0.05202744901180267,
-0.013806681148707867,
-0.010588306002318859,
-0.0018020380521193147,
0.025524966418743134,
-0.05334876477718353,
-0.043171484023332596,
-0.0010898521868512034,
-0.007028704974800348,
0.025419754907488823,
0.00348623376339674,
-0.01800338551402092,
-0.02061310224235058,
0.02744670957326889,
0.02026212401688099,
0.0011515121441334486,
-0.013216469436883926,
0.015083138830959797,
0.01699303463101387,
-0.009768826887011528,
-0.018153175711631775,
-0.005854375660419464,
-0.003727422095835209,
0.052638888359069824,
-0.043345171958208084,
0.012204395607113838,
-0.004837219137698412,
-0.021435394883155823,
-0.027479885146021843,
0.017485642805695534,
-0.021087510511279106,
-0.0003176378959324211,
0.00029940734384581447,
0.004069726914167404,
-0.008128284476697445,
-0.0347873829305172,
0.028142541646957397,
-0.028585167601704597,
-0.028195438906550407,
0.020817605778574944,
-0.04012702405452728,
-0.002517677377909422,
-0.009719206020236015,
0.024085983633995056,
-0.008635093457996845,
-0.032991912215948105,
-0.02843780629336834,
-0.005841644015163183,
0.00032934127375483513,
0.012692715041339397,
0.001046643708832562,
-0.04834188148379326,
0.002457857597619295,
0.035992372781038284,
-0.03360825404524803,
0.019597647711634636,
0.011967777274549007,
0.0006207579281181097,
0.023152228444814682,
-0.0012888136552646756,
-0.02060248889029026,
-0.014967589639127254,
-0.004710139706730843,
-0.027354542165994644,
0.025659900158643723,
0.026171844452619553,
0.0011849096044898033,
0.022631609812378883,
0.021440353244543076,
-0.008366993628442287,
0.03320998698472977,
0.01113389153033495,
-0.04055995121598244,
0.011143829673528671,
0.010557198897004128,
0.044443126767873764,
0.06328277289867401,
-0.025166727602481842,
0.02426464483141899,
-0.0536014661192894,
-0.006856913212686777,
0.004775186534970999,
0.015956901013851166,
0.0028249819297343493,
0.01815192960202694,
0.04100213944911957,
0.08317521214485168,
0.010627158917486668,
0.014680800028145313,
-0.0179087333381176,
-0.00626046909019351,
0.02861041948199272,
-0.025447390973567963,
-0.00010540399671299383,
-0.032265804708004,
0.022871367633342743,
-0.017589807510375977,
-0.03285840526223183,
-0.011701004579663277,
-0.003532986855134368,
0.030586469918489456,
-0.004794607870280743,
0.011474103666841984,
0.03491858020424843,
0.019291803240776062,
-0.03371896967291832,
-0.05608665570616722,
0.0015596739249303937,
-0.05163559317588806,
-0.022074926644563675,
-0.0003811008355114609,
-0.016536900773644447,
-0.017327500507235527,
-0.004314819350838661,
-0.05239460617303848,
0.0108333146199584,
-0.031911082565784454,
0.017662396654486656,
0.020723408088088036,
-0.020316576585173607,
0.009733635000884533,
-0.03320279344916344,
0.026906881481409073,
0.0027774220798164606,
-0.053514301776885986,
-0.0006685868138447404,
0.016420209780335426,
0.044037919491529465,
0.034382693469524384,
0.042585428804159164,
-0.007688847836107016,
-0.003084115916863084,
0.04775622487068176,
0.005094762891530991,
0.001523338258266449,
-0.04497266933321953,
0.06343673169612885,
0.04013052582740784,
-0.031923968344926834,
-0.030402053147554398,
-0.023455562070012093,
-0.023513078689575195,
0.021935388445854187,
-0.06898549199104309,
0.03205147013068199,
0.02085317298769951,
-0.032447125762701035,
-0.006790893152356148,
0.019772982224822044,
-0.019012469798326492,
-0.012696693651378155,
0.024735555052757263,
0.023655714467167854,
0.03280230611562729,
0.013714084401726723,
-0.0005617511342279613,
0.003326642094179988,
-0.011004668660461903,
-0.011093136854469776,
0.030652601271867752,
-0.04589282348752022,
0.02709079533815384,
0.01296953670680523,
-0.07350972294807434,
0.024564389139413834,
0.0043127890676259995,
-0.022821808233857155,
0.005452004261314869,
-0.014175066724419594,
0.018508557230234146,
0.02398017980158329,
0.011392227374017239,
0.012552927248179913,
-0.010714316740632057,
-0.029124237596988678,
0.020861901342868805,
0.04361867159605026,
-0.022123776376247406,
0.0469522625207901,
0.04122713580727577,
0.05826054885983467,
0.047472115606069565,
0.0021964418701827526,
0.015068521723151207,
0.01559485588222742,
0.0390128418803215,
0.03489639237523079,
0.009943814016878605,
-0.0075606717728078365,
-0.0051762619987130165,
-0.01758653111755848,
0.005490118637681007,
0.006796648725867271,
-0.027572307735681534,
0.020195791497826576,
0.034048501402139664,
-0.03085143491625786,
-0.02097379043698311,
-0.024245494976639748,
0.03836039826273918,
-0.0036022947169840336,
0.009490475058555603,
0.043154437094926834,
0.010786688886582851,
0.0475505106151104,
0.0005336322356015444,
-0.011813887394964695,
0.03771702200174332,
0.02226448990404606,
0.001559536554850638,
0.049478333443403244,
0.041673362255096436,
0.005256217904388905,
-0.0008765936363488436,
-0.018889205530285835,
0.006298735737800598,
-0.014627641066908836,
0.02459634840488434,
0.01192349474877119,
-0.014860782772302628,
-0.0016214397037401795,
-0.035881176590919495,
-0.002161993645131588,
-0.03537863492965698,
-0.017481913790106773,
-0.014257454313337803,
0.024558577686548233,
-0.021737854927778244,
-0.012250686064362526,
-0.023439444601535797,
0.05386210232973099,
-0.008582367561757565,
-0.009478089399635792,
-0.032388173043727875,
-0.01803009770810604,
-0.0457063689827919,
0.02482905611395836,
-0.013187510892748833,
0.001054397551342845,
-0.024966610595583916,
0.0101432790979743,
0.006876472849398851,
0.009885098785161972,
-0.04712653532624245,
-0.024587340652942657,
-0.00007946139521664008,
-0.009991751983761787,
-0.0026246490888297558,
0.017578361555933952,
0.03684735670685768,
-0.013421197421848774,
-0.015819067135453224,
0.003002285724505782,
-0.03854592517018318,
-0.02530587464570999,
-0.005148951895534992,
-0.010281486436724663,
0.009388795122504234,
-0.046959273517131805,
-0.013735299929976463,
0.0005802453961223364,
0.008274213410913944,
-0.0030524746980518103,
-0.04137367755174637,
0.015232698060572147,
0.002965102670714259,
0.03597291186451912,
-0.022527828812599182,
0.01567630097270012,
-0.031892046332359314,
0.0423363596200943,
-0.034359097480773926,
-0.008824615739285946,
-0.026909243315458298,
0.007907005026936531,
0.018630599603056908,
-0.01863400638103485,
-0.014222951605916023,
-0.026289908215403557,
0.05432184785604477,
0.038602303713560104,
0.04163290932774544,
0.020825695246458054,
0.03554259613156319,
0.015223395079374313,
-0.015000816434621811,
0.05460190773010254,
-0.02178570255637169,
0.05628445744514465,
-0.03043735958635807,
-0.0434216745197773,
-0.031209127977490425,
0.023076999932527542,
-0.0016240524128079414,
-0.026953943073749542,
-0.05107991397380829,
-0.027513615787029266,
-0.010890712030231953,
-0.008815252222120762,
-0.03643065690994263,
-0.041882824152708054,
0.054213229566812515,
-0.018778307363390923,
-0.021407919004559517,
0.028969254344701767,
-0.028875740244984627,
0.037313517183065414,
0.021290473639965057,
0.006536281667649746,
0.02649516426026821,
0.002550531644374132,
-0.034632403403520584,
-0.006739052478224039,
0.015859926119446754,
-0.03314473479986191,
-0.03880061209201813,
0.02748681791126728,
0.04718657582998276,
0.020985130220651627,
-0.006107227876782417,
0.03114083595573902,
0.05316914990544319,
-0.008337329141795635,
0.028221646323800087,
-0.035397883504629135,
0.03032320737838745,
0.006360381841659546,
-0.01852097362279892,
-0.04729054868221283,
0.0023510735481977463,
-0.018411993980407715,
0.0017598193371668458,
0.04984448105096817,
0.013304000720381737,
-0.007807046175003052,
0.009717687033116817,
-0.010598347522318363,
-0.009185217320919037,
0.014365139417350292,
-0.02548818476498127,
-0.014329083263874054,
-0.0035729457158595324,
0.009033276699483395,
-0.0017102265264838934,
-0.05732572451233864,
0.01754092238843441,
0.04105569049715996,
-0.02363056130707264,
0.03397584334015846,
0.007067407947033644,
0.01984766311943531,
-0.008518092334270477,
0.032875727862119675,
0.01071328204125166,
0.04476947337388992,
0.05229784920811653,
-0.004406031686812639,
-0.023370785638689995,
-0.032414648681879044
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | Comparison statistics This begins to answer questions like “What kinds of topics, biases, and associations are in this dataset?” - Embedding clusters to pinpoint any clusters of similar language in the dataset. Taking in the diversity of text represented in a dataset can be challenging when it is made up of hundreds to hundreds of thousands of sentences. Grouping these text items based on a measure of similarity can help users gain some insights into their distribution. We show a hierarchical clustering of the text fields in the dataset based on a Sentence-Transformer model and a maximum dot product single-linkage criterion. To explore the clusters, you can: - hover over a node to see the 5 most representative examples (deduplicated) - enter an example in the text box to see which leaf clusters it is most similar to - select a cluster by ID to show all of its examples - The normalized pointwise mutual information (nPMI) between word pairs in the dataset, which may be used to identify problematic stereotypes. You can use this as a tool in dealing with dataset “bias”, where here the term “bias” refers to stereotypes and prejudices for identity groups along the axes of gender and sexual orientation. We will add further terms in the near future. | [
-0.014235368929803371,
-0.08791853487491608,
-0.023537980392575264,
-0.013198556378483772,
0.07631027698516846,
0.07879754900932312,
-0.030349580571055412,
0.020321836695075035,
-0.09073422104120255,
-0.06819279491901398,
-0.06193256005644798,
0.019572757184505463,
0.02758496068418026,
0.056204333901405334,
-0.0049148742109537125,
0.02557298354804516,
0.02536446414887905,
-0.020861294120550156,
0.02428256906569004,
-0.028669200837612152,
-0.023049356415867805,
0.0013071349821984768,
0.08728204667568207,
0.02741174027323723,
0.026864200830459595,
0.00672691548243165,
0.06036349758505821,
-0.030186280608177185,
-0.017199324443936348,
0.013749750331044197,
-0.12163050472736359,
0.05746910348534584,
0.02285056933760643,
-0.041044194251298904,
-0.0006986692314967513,
-0.0135384202003479,
-0.0567685030400753,
0.09116994589567184,
0.013975311070680618,
-0.013258477672934532,
-0.031265418976545334,
-0.10126768052577972,
-0.046091217547655106,
0.0026308048982173204,
0.05044066160917282,
-0.034772444516420364,
-0.11343156546354294,
0.09297522157430649,
-0.028421049937605858,
0.006410631351172924,
-0.10212188959121704,
0.0033995709381997585,
-0.009844789281487465,
-0.01508285291492939,
0.008734963834285736,
0.016585318371653557,
-0.004661449696868658,
-0.09372483938932419,
0.044618166983127594,
0.04284663870930672,
0.017673365771770477,
-0.02275678887963295,
-0.013812791556119919,
0.051183950155973434,
0.05394728109240532,
-0.03289950639009476,
-0.03166438266634941,
0.10098381340503693,
-0.06573571264743805,
0.009325888939201832,
-0.011712580919265747,
0.00254317419603467,
-0.056471165269613266,
-0.0426580011844635,
0.04675678908824921,
-0.021957427263259888,
-0.03630640357732773,
0.017793571576476097,
-0.04331540688872337,
-0.06731593608856201,
-0.04614876210689545,
0.04290541633963585,
0.06854138523340225,
0.04167870804667473,
0.05917844548821449,
-0.024939799681305885,
0.03120286762714386,
0.022184910252690315,
-0.035899754613637924,
0.07005062699317932,
-0.0017007491551339626,
-0.02920643612742424,
0.010957579128444195,
0.03598896414041519,
0.02559206448495388,
-0.06841491162776947,
0.08832328766584396,
0.038346804678440094,
0.0068007539957761765,
0.015190580859780312,
-0.04204272851347923,
0.04242268577218056,
0.08023926615715027,
-0.0025700514670461416,
-0.07909554243087769,
-0.011636128649115562,
-0.022281233221292496,
-0.0227801650762558,
-0.06250468641519547,
0.034118980169296265,
-0.09118453413248062,
0.013525568880140781,
-0.03801976144313812,
0.10461228340864182,
-0.034737151116132736,
0.038731757551431656,
0.1043822392821312,
0.029503466561436653,
0.019775886088609695,
0.050551123917102814,
-0.04303952679038048,
0.043594084680080414,
-0.0016091285506263375,
-0.007634284440428019,
-0.004536840133368969,
0.04220576956868172,
0.030989227816462517,
-0.014324146322906017,
-0.03016359731554985,
-0.016120031476020813,
0.007607117760926485,
-0.044155754148960114,
0.005014962516725063,
0.0006199557101354003,
0.027623038738965988,
-0.01684427261352539,
-0.018016599118709564,
-0.0262385755777359,
0.022003598511219025,
-0.007721235044300556,
-0.012201018631458282,
-0.0002635675191413611,
-0.04464251548051834,
0.010234319604933262,
0.02073587104678154,
0.03020450286567211,
-0.13739179074764252,
0.008628541603684425,
-0.012217679060995579,
0.04245295003056526,
-0.05671091005206108,
0.03296264261007309,
0.017125075682997704,
-0.040448371320962906,
0.06418414413928986,
0.05961582064628601,
0.0379975363612175,
0.00017617014236748219,
-0.055261675268411636,
-0.01943664439022541,
-0.000603318854700774,
-0.06815579533576965,
-0.006859670393168926,
0.037928931415081024,
-0.01110318023711443,
-0.004790402948856354,
0.0036601917818188667,
0.014676232822239399,
0.011813019402325153,
0.09650234878063202,
-0.0012302279938012362,
-0.07614700496196747,
0.04540007561445236,
0.006229465361684561,
-0.04278130084276199,
0.044691070914268494,
0.010016845539212227,
0.03181813657283783,
0.02695969119668007,
-0.006496354937553406,
-0.041212327778339386,
0.011088907718658447,
0.029617441818118095,
-0.006570701487362385,
-0.027853166684508324,
-0.03966238722205162,
0.051579657942056656,
-0.06257589906454086,
0.003749226685613394,
-0.060800228267908096,
-0.027532611042261124,
-0.031841300427913666,
0.09531187266111374,
-0.0013123094104230404,
0.03364764153957367,
-0.07115473598241806,
0.04648369923233986,
0.052033744752407074,
0.028340719640254974,
0.008191194385290146,
0.01303375419229269,
-0.001441658940166235,
0.033138763159513474,
-0.035446420311927795,
0.018659060820937157,
-0.03838806226849556,
-0.04892411082983017,
-0.00925999041646719,
-0.040529120713472366,
-0.08058954775333405,
0.023376667872071266,
-0.09549582004547119,
0.04190962761640549,
-0.016397804021835327,
-0.05273818224668503,
-0.000607912486884743,
-0.0006447818595916033,
0.06172102689743042,
0.025088975206017494,
-0.008902842178940773,
0.17736630141735077,
-0.03655796870589256,
-0.014517992734909058,
-0.017936138436198235,
0.02124650776386261,
0.01862846501171589,
0.09709502756595612,
0.04945409297943115,
0.11654555052518845,
-0.003441617824137211,
-0.016454389318823814,
0.05238120257854462,
0.10438722372055054,
0.020306497812271118,
-0.06702130287885666,
0.01277069840580225,
0.0342128686606884,
0.04338707774877548,
0.07964371889829636,
-0.021352536976337433,
0.025045234709978104,
-0.03786725178360939,
-0.04853887856006622,
0.03141889348626137,
0.009951146319508553,
0.005584859289228916,
0.04428199306130409,
-0.00841350294649601,
-0.0242769718170166,
0.024396978318691254,
-0.04758583754301071,
0.04925436154007912,
0.0055459532886743546,
-0.01999056711792946,
-0.012842894531786442,
0.016488391906023026,
0.02896340936422348,
-0.002044600434601307,
0.0014114200603216887,
0.04077401012182236,
0.005222989246249199,
-0.028758807107806206,
0.02108888514339924,
-0.05619274824857712,
0.016292866319417953,
-0.03124748170375824,
-0.004309202078729868,
0.01979333721101284,
0.0009800114203244448,
0.029560063034296036,
0.011068960651755333,
0.002329976297914982,
0.014957715757191181,
0.004788533318787813,
0.03324762359261513,
-0.024828296154737473,
-0.020044375211000443,
-0.030821604654192924,
-0.002903837012127042,
-0.005099311470985413,
-0.0535699725151062,
-0.034340694546699524,
0.03639288991689682,
0.029908256605267525,
0.032116904854774475,
-0.01649397611618042,
-0.03220644220709801,
-0.010895413346588612,
0.025065775960683823,
-0.023825237527489662,
0.007339457981288433,
-0.0010219989344477654,
-0.05304044857621193,
-0.02533399872481823,
0.034667644649744034,
-0.0123455123975873,
-0.04770922660827637,
0.028001021593809128,
-0.05728335306048393,
0.0016395587008446455,
0.023156285285949707,
0.029883410781621933,
-0.010914595797657967,
-0.02304285764694214,
-0.027562402188777924,
0.09913580864667892,
-0.006724352948367596,
0.04908420145511627,
-0.07701005786657333,
0.010949276387691498,
-0.0327538438141346,
0.05388357490301132,
0.023334316909313202,
-0.016643283888697624,
0.058671366423368454,
0.011294051073491573,
-0.01990695297718048,
0.020865026861429214,
-0.0024313186295330524,
-0.007064169272780418,
0.019752753898501396,
0.011775740422308445,
-0.00026715025887824595,
0.028803542256355286,
-0.029345694929361343,
-0.035645246505737305,
0.05186121165752411,
0.028664488345384598,
-0.006049472838640213,
0.04229925945401192,
-0.030526142567396164,
0.05991010740399361,
-0.05191570147871971,
0.02408425323665142,
0.009372553788125515,
0.016538364812731743,
0.032938770949840546,
-0.0028493383433669806,
0.00044659851118922234,
0.0010285634780302644,
-0.05805210769176483,
0.003097075968980789,
-0.028806213289499283,
-0.0009804964065551758,
-0.02801734395325184,
0.052648141980171204,
0.009868482127785683,
0.05741831287741661,
0.009752622805535793,
0.03012043423950672,
0.06781130284070969,
-0.03744418919086456,
0.030478129163384438,
-0.00467408774420619,
-0.024687688797712326,
-0.01300853956490755,
-0.006111323367804289,
-0.027315106242895126,
0.005445315968245268,
-0.0164166446775198,
0.02043379284441471,
0.051281556487083435,
-0.0012152745621278882,
0.040561046451330185,
0.06956640630960464,
0.004557913169264793,
0.05290190130472183,
-0.001303246128372848,
0.004890018608421087,
0.03372129425406456,
-0.007432554382830858,
-0.04366300627589226,
-0.0282979104667902,
0.023110121488571167,
-0.0239555761218071,
0.03520679846405983,
-0.009144862182438374,
0.02618672512471676,
0.008276542648673058,
0.05721323564648628,
0.03242829069495201,
-0.00495402654632926,
-0.030150627717375755,
-0.02490084618330002,
-0.03238873928785324,
-0.019609203562140465,
0.000328479683957994,
-0.008708595298230648,
-0.019032182171940804,
0.002563276793807745,
-0.039473019540309906,
-0.06161780282855034,
-0.0006532082334160805,
-0.03851889446377754,
-0.019048849120736122,
-0.06480398029088974,
0.014829098246991634,
-0.016022389754652977,
0.018024247139692307,
-0.02019978128373623,
-0.017302248626947403,
0.05514948442578316,
-0.025854982435703278,
0.02127286233007908,
0.02954147569835186,
0.002232375554740429,
-0.023289762437343597,
-0.022774722427129745,
-0.012448056600987911,
-0.01616262085735798,
-0.010828361846506596,
0.0003516139113344252,
-0.031395699828863144,
0.05130882188677788,
-0.04768954962491989,
-0.005318912211805582,
0.004258707631379366,
-0.034631598740816116,
-0.026777710765600204,
0.011364097706973553,
-0.021286718547344208,
0.0019076914759352803,
0.04347798228263855,
-0.0007822047919034958,
0.008208805695176125,
0.033572256565093994,
-0.0022736028768122196,
0.00614506658166647,
0.005695716477930546,
0.004074939992278814,
0.03334540128707886,
-0.008305562660098076,
0.001374376006424427,
-0.0049260505475103855,
0.01667536050081253,
0.03253624960780144,
-0.039148926734924316,
-0.04636915400624275,
0.01740831881761551,
-0.026707535609602928,
0.022544115781784058,
-0.01002515573054552,
0.0023726311046630144,
-0.00980912335216999,
-0.06424580514431,
0.028091231361031532,
-0.040155455470085144,
-0.027461286634206772,
-0.003398143220692873,
0.014221359975636005,
0.011897346004843712,
0.00530994264408946,
-0.015613236464560032,
-0.03133611008524895,
-0.018546875566244125,
-0.030482906848192215,
-0.028997376561164856,
0.03339919075369835,
-0.009384202770888805,
0.02255905233323574,
-0.007390947081148624,
0.022722963243722916,
0.08373864740133286,
-0.014805649407207966,
0.004372644703835249,
-0.0011139244306832552,
-0.033057961612939835,
0.028588222339749336,
0.00047659093979746103,
-0.00759556470438838,
-0.05862608179450035,
0.007708111312240362,
-0.024346623569726944,
0.020564351230859756,
0.02331366203725338,
0.04352288693189621,
0.0016489672707393765,
0.05242284759879112,
0.005059036426246166,
-0.002936672419309616,
-0.006697013042867184,
0.006293905433267355,
0.009573803283274174,
0.034004151821136475,
-0.014859425835311413,
0.03319351375102997,
-0.016687653958797455,
-0.01875711791217327,
-0.06543228775262833,
-0.021585017442703247,
-0.00020640208094846457,
0.03282984718680382,
-0.0018662156071513891,
0.029092293232679367,
0.03588038310408592,
0.052295416593551636,
0.010740960948169231,
-0.009232642129063606,
-0.0243572648614645,
-0.03434816002845764,
0.03450769931077957,
-0.033909864723682404,
0.017039133235812187,
-0.05954600125551224,
0.03337430953979492,
0.015221696346998215,
-0.024736125022172928,
-0.017430424690246582,
0.04364216327667236,
0.025394605472683907,
0.022006550803780556,
0.0024213960859924555,
-0.0027171478141099215,
-0.0020643731113523245,
-0.027504287660121918,
-0.10719913989305496,
-0.00009822821448324248,
-0.06651082634925842,
-0.033758580684661865,
-0.047363050282001495,
-0.033983271569013596,
-0.0144264567643404,
0.0036705806851387024,
-0.05006391927599907,
-0.03858380764722824,
-0.02848365530371666,
0.05055282264947891,
0.06316793709993362,
0.00048474871437065303,
-0.02405047044157982,
-0.012809144333004951,
0.013394491747021675,
0.010165982879698277,
-0.0506289079785347,
0.01764022745192051,
-0.014661358669400215,
0.022167200222611427,
-0.03126757591962814,
0.0564589686691761,
0.0037909762468189,
0.010588259436190128,
0.053805820643901825,
-0.029555095359683037,
-0.021928144618868828,
0.018614472821354866,
0.012423187494277954,
0.03985866904258728,
0.029640400782227516,
-0.035662729293107986,
-0.03289587423205376,
-0.005785827059298754,
0.006341906730085611,
0.0009199564810842276,
-0.00997111015021801,
0.0862654522061348,
0.0218603927642107,
-0.00993067305535078,
0.03576981648802757,
0.005445307120680809,
-0.006976302247494459,
-0.014824128709733486,
-0.007246814668178558,
0.011118080466985703,
0.04603796824812889,
-0.011818484403192997,
-0.03615502640604973,
-0.0071896775625646114,
-0.002382140839472413,
0.008592592552304268,
-0.07977250218391418,
0.046674683690071106,
0.02047504298388958,
-0.05672762170433998,
-0.011758978478610516,
0.023910043761134148,
-0.02968788333237171,
0.02566506341099739,
-0.005338917952030897,
0.012337351217865944,
-0.016789350658655167,
0.029724856838583946,
0.04566538333892822,
0.014105313457548618,
0.016911564394831657,
-0.00014315872977022082,
0.06282397359609604,
-0.0222330205142498,
-0.008496938273310661,
0.00683849211782217,
0.01897490583360195,
0.057371605187654495,
0.012364326044917107,
-0.007422108203172684,
-0.0031995228491723537,
0.03184336796402931,
-0.009271596558392048,
0.01095922477543354,
-0.035245127975940704,
-0.004143493715673685,
0.0033372745383530855,
-0.012139936909079552,
-0.01230569090694189,
-0.03480960428714752,
0.038134872913360596,
0.021249188110232353,
-0.01855374500155449,
-0.010180480778217316,
0.0011789387790486217,
0.012956822291016579,
0.014841028489172459,
0.023331979289650917,
-0.03418918326497078,
-0.004105364438146353,
-0.012589561752974987,
0.009244664572179317,
-0.005002201534807682,
0.017280520871281624,
0.038071565330028534,
-0.004985692910850048,
0.03142448142170906,
0.0017519042594358325,
0.045855823904275894,
-0.003242547856643796,
0.011454862542450428,
-0.03777023032307625,
-0.049727339297533035,
-0.001348236226476729,
-0.021476110443472862,
0.0018310892628505826,
-0.0034847131464630365,
0.00473414734005928,
-0.008706709370017052,
-0.036500103771686554,
-0.0065569826401770115,
0.036143943667411804,
0.022631818428635597,
0.02376648224890232,
0.025066420435905457,
0.0265197716653347,
0.05486693233251572,
0.02614918164908886,
0.0073197344318032265,
-0.0037692056503146887,
-0.03038627654314041,
0.03610045462846756,
-0.012415427714586258,
-0.029287878423929214,
-0.00937297660857439,
-0.05907382071018219,
0.00478064501658082,
0.06811732798814774,
0.03649945184588432,
-0.023655714467167854,
-0.020222824066877365,
0.007525803055614233,
0.0005310745909810066,
0.012396623380482197,
0.025767024606466293,
-0.002986677223816514,
-0.004298246931284666,
-0.007904472760856152,
0.00628355098888278,
-0.024513326585292816,
-0.016309887170791626,
-0.014403149485588074,
-0.01991528458893299,
0.009912502951920033,
-0.05518137291073799,
-0.01797632873058319,
0.024913381785154343,
0.021462611854076385,
-0.004397544544190168,
-0.03305424749851227,
0.009309167042374611,
0.01808004081249237,
-0.0009618244948796928,
0.009334838017821312,
0.032533224672079086,
-0.03078029491007328,
-0.01866566389799118,
-0.023260977119207382,
-0.024860547855496407,
-0.01606234908103943,
-0.014409096911549568,
-0.0003324581775814295,
-0.035734597593545914,
-0.03606224060058594,
-0.04039553180336952,
0.0433136522769928,
0.03231196105480194,
0.05428563058376312,
0.010840015485882759,
0.03169351816177368,
-0.007514473050832748,
0.048455700278282166,
0.028406377881765366,
-0.0216797087341547,
0.04681408032774925,
-0.019608579576015472,
-0.025333482772111893,
-0.07915379106998444,
-0.006616387516260147,
0.006527850404381752,
0.0023416103795170784,
-0.06899823248386383,
0.009998660534620285,
-0.007623388431966305,
0.0064674909226596355,
-0.040162343531847,
-0.03734780475497246,
0.02052558772265911,
-0.019080501049757004,
0.01783883199095726,
0.03060191683471203,
0.009911301545798779,
0.017789151519536972,
-0.021592088043689728,
-0.020845891907811165,
0.019047368317842484,
0.016793563961982727,
-0.004998411517590284,
0.011050140485167503,
0.01463359035551548,
-0.004735182970762253,
-0.022547198459506035,
0.010872656479477882,
0.040459662675857544,
0.03215906769037247,
-0.014868921600282192,
0.007372896187007427,
0.05484546348452568,
-0.011724203824996948,
-0.013744218274950981,
-0.019072849303483963,
0.018277544528245926,
0.012612493708729744,
-0.02353517897427082,
-0.028387324884533882,
-0.041469741612672806,
-0.015419770032167435,
-0.015025000087916851,
0.056457195430994034,
-0.011605377309024334,
0.04526656121015549,
0.04012146592140198,
0.005388547200709581,
-0.004322410561144352,
0.01712413877248764,
-0.043903954327106476,
-0.04262791574001312,
-0.028250930830836296,
0.009402403607964516,
-0.015206621028482914,
0.005395114421844482,
0.02502458728849888,
0.0035725354682654142,
0.019985631108283997,
-0.03123401291668415,
-0.015110231935977936,
0.0024529919028282166,
-0.06901300698518753,
0.007509699556976557,
0.007495819590985775,
0.0029580385889858007,
0.036836884915828705,
0.014718766324222088,
0.002546372590586543,
-0.010787549428641796
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | Distributional Statistics To measure the language patterns in the dataset This begins to answer questions like “How does the language behave in this dataset?” - Adherence to Zipf’s law, which provides measurements of how closely the distribution over words in the dataset fits to the expected distribution of words in natural language. You can use this to figure out whether your dataset represents language as it tends to behave in the natural world or if there are things that are more unnatural about it. If you’re someone who enjoys optimization, then you can view the alpha value this widget calculates as a value to get as close as possible to 1 during dataset development. Further details on alpha values following Zipf’s law in different languages is available here. In general, an alpha greater than 2 or a minimum rank greater than 10 (take with a grain of salt) means that your distribution is relatively unnatural for natural language. This can be a sign of mixed artefacts in the dataset, such as HTML markup. You can use this information to clean up your dataset or to guide you in determining how further language you add to the dataset should be distributed. | [
0.060831356793642044,
0.01958516240119934,
0.0072247846983373165,
-0.050374776124954224,
0.08866817504167557,
0.019956331700086594,
0.023620879277586937,
0.0577571801841259,
-0.0066702598705887794,
-0.07963215559720993,
-0.07583511620759964,
-0.016727229580283165,
0.010812236927449703,
0.04605555906891823,
0.010147344321012497,
0.03860444203019142,
0.015919145196676254,
0.0428716279566288,
-0.0013188880402594805,
-0.026408053934574127,
-0.03939923271536827,
-0.04540031775832176,
-0.024508323520421982,
-0.017418216913938522,
0.018205275759100914,
-0.02110900916159153,
0.008038914762437344,
-0.02947842888534069,
-0.03973928093910217,
-0.038503170013427734,
-0.07309117913246155,
0.06613236665725708,
0.007953319698572159,
-0.02357194572687149,
-0.04361763596534729,
-0.012322179041802883,
-0.11723487079143524,
0.017611024901270866,
0.06503013521432877,
-0.012991657480597496,
0.016383126378059387,
-0.010449035093188286,
-0.04419580101966858,
-0.017574889585375786,
-0.05265994369983673,
-0.04140336811542511,
-0.11836966872215271,
0.12155093252658844,
-0.02855440229177475,
0.014258173294365406,
-0.07247950881719589,
-0.028926311060786247,
-0.04305996000766754,
0.024543050676584244,
0.019440975040197372,
-0.00905455369502306,
-0.020048223435878754,
-0.07295333594083786,
0.025217099115252495,
0.06143132224678993,
0.08409974724054337,
-0.05980130285024643,
0.03367253765463829,
-0.05432703346014023,
0.00007602445839438587,
-0.00048692693235352635,
-0.007901081815361977,
0.11267967522144318,
-0.056626636534929276,
-0.039289265871047974,
-0.04711105674505234,
0.03932761028409004,
-0.047400590032339096,
-0.044518567621707916,
-0.07627490907907486,
0.05578538030385971,
-0.04405108839273453,
0.02577211707830429,
-0.030345790088176727,
-0.02766844443976879,
-0.012307703495025635,
0.026808109134435654,
0.052823230624198914,
0.02317250892519951,
-0.009169496595859528,
0.01855935901403427,
0.07130559533834457,
-0.0030692382715642452,
-0.004066715482622385,
0.03401753306388855,
0.03645369037985802,
-0.07215476781129837,
0.020304011180996895,
0.007052548695355654,
0.042505402117967606,
-0.061097197234630585,
0.04557941108942032,
0.0076065268367528915,
-0.06329472362995148,
0.05970790237188339,
-0.03838535025715828,
-0.02425861358642578,
0.0701557919383049,
-0.07224214822053909,
-0.06998144090175629,
0.01415198016911745,
-0.0005123143782839179,
-0.029287120327353477,
-0.04705461859703064,
0.03085290640592575,
-0.03024127148091793,
-0.026879701763391495,
0.002355406526476145,
0.0007469522533938289,
-0.041656494140625,
0.006913146004080772,
0.041297562420368195,
0.03252086788415909,
0.006406438071280718,
0.03413970395922661,
-0.012987872585654259,
0.045930154621601105,
0.05473335087299347,
0.03846536576747894,
0.008459623903036118,
-0.00460269907489419,
0.014908907003700733,
0.08837304264307022,
0.00448468467220664,
-0.05989095941185951,
0.007039871998131275,
-0.03128395974636078,
-0.002217869507148862,
0.030304275453090668,
0.01195333618670702,
0.031200919300317764,
-0.017181437462568283,
-0.014752267859876156,
0.0847001001238823,
-0.004983657039701939,
-0.013183408416807652,
0.11032558977603912,
0.0035853656008839607,
-0.015699870884418488,
0.04962936043739319,
0.032334037125110626,
0.004493112210184336,
-0.020544297993183136,
-0.02570730447769165,
0.01890413649380207,
-0.023317644372582436,
0.08401884883642197,
0.03780417516827583,
-0.044819142669439316,
0.07541767507791519,
0.023651814088225365,
-0.03904908150434494,
-0.06465376168489456,
-0.040925607085227966,
0.05962357670068741,
-0.029950115829706192,
-0.015963668003678322,
-0.018462883308529854,
-0.05177707225084305,
0.06161179766058922,
-0.019405268132686615,
-0.06173717975616455,
0.028123769909143448,
-0.027135444805026054,
0.09295865893363953,
-0.009224029257893562,
0.026944704353809357,
0.04334434121847153,
0.04365645721554756,
-0.007860468700528145,
-0.0010201759869232774,
0.011806980706751347,
-0.01376611553132534,
0.0479036420583725,
-0.01437621470540762,
-0.005634525325149298,
0.07477670162916183,
0.020128875970840454,
0.025471394881606102,
0.0012655206955969334,
-0.07355408370494843,
0.04688909649848938,
-0.047115497291088104,
0.0030487352050840855,
0.014447072520852089,
-0.03998224809765816,
-0.03326161578297615,
0.11614063382148743,
-0.0886571928858757,
-0.007426971569657326,
-0.01062155980616808,
-0.008616446517407894,
0.11485463380813599,
0.08335542678833008,
0.004412856884300709,
0.016850445419549942,
-0.0031335027888417244,
0.04184558615088463,
-0.04601030796766281,
0.05346311628818512,
0.03948330134153366,
-0.03074510022997856,
-0.03232354670763016,
-0.06139640510082245,
0.026499701663851738,
-0.029234565794467926,
-0.08416716009378433,
-0.051727041602134705,
-0.07203586399555206,
-0.03519635275006294,
0.023046357557177544,
0.015220696106553078,
0.0627533495426178,
0.030042650178074837,
-0.026118479669094086,
0.11273925751447678,
-0.05655902251601219,
0.05178872123360634,
0.012584719806909561,
-0.008200248703360558,
-0.020370252430438995,
0.1212199404835701,
0.06087341532111168,
0.0564773753285408,
-0.05814092978835106,
-0.011523215100169182,
-0.04384487122297287,
0.11236417293548584,
0.023667125031352043,
-0.014464316889643669,
-0.05518359690904617,
0.009696771390736103,
0.04016626998782158,
0.0529186949133873,
-0.04745151847600937,
0.015069014392793179,
0.024914734065532684,
-0.009914933703839779,
0.06892956048250198,
0.003988790325820446,
0.00784577801823616,
0.062494006007909775,
-0.05741237848997116,
-0.026583779603242874,
0.010509517975151539,
-0.03705669566988945,
0.0398472435772419,
0.00902202632278204,
-0.04654514789581299,
-0.08244725316762924,
0.027623191475868225,
0.04422580078244209,
0.018454791978001595,
-0.018359320238232613,
-0.021792884916067123,
-0.021991489455103874,
-0.03242635726928711,
-0.010287889279425144,
-0.02470705471932888,
0.009436270222067833,
-0.038268718868494034,
0.031012149527668953,
-0.013452824205160141,
-0.009834375232458115,
0.03842855617403984,
0.016762908548116684,
0.009073320776224136,
0.05118313431739807,
-0.038014333695173264,
-0.005034083966165781,
0.015332141891121864,
0.027146996930241585,
-0.061275459825992584,
-0.03555998206138611,
-0.025822395458817482,
-0.01959419436752796,
0.016743818297982216,
0.04193402826786041,
0.019518574699759483,
-0.017777681350708008,
-0.01740642823278904,
0.013538658618927002,
0.01814848929643631,
-0.0013267084723338485,
0.015224951319396496,
-0.011502804234623909,
0.03263349086046219,
-0.017183629795908928,
-0.002298186533153057,
0.03799527883529663,
-0.016135361045598984,
-0.05653167515993118,
0.012478719465434551,
-0.013899590820074081,
0.024853767827153206,
-0.004677066579461098,
0.007548399735242128,
-0.022775208577513695,
-0.037404827773571014,
-0.014520498923957348,
0.023799562826752663,
-0.008609740063548088,
0.06837579607963562,
-0.08230515569448471,
0.005344245582818985,
0.029460156336426735,
-0.006823386996984482,
-0.02410665899515152,
-0.054694607853889465,
0.051846787333488464,
-0.039570629596710205,
-0.04034632444381714,
0.028927721083164215,
0.020362965762615204,
0.012630097568035126,
0.04844211786985397,
0.021486928686499596,
0.012234416790306568,
-0.02278773859143257,
-0.04868122935295105,
0.014514218084514141,
0.025125952437520027,
0.03341762349009514,
0.019366249442100525,
0.009584937244653702,
-0.04619747772812843,
0.0015361892292276025,
-0.035795558243989944,
0.05101471394300461,
0.06770708411931992,
0.013333821669220924,
-0.004000504035502672,
-0.008698645047843456,
-0.009435663931071758,
-0.012011708691716194,
-0.03188568353652954,
0.03170785307884216,
-0.0171782486140728,
0.008152147755026817,
-0.0018435926176607609,
0.036722831428050995,
0.017156848683953285,
0.07491046190261841,
-0.02512478083372116,
0.018718035891652107,
0.03175048157572746,
-0.06233128532767296,
-0.003007911378517747,
0.013873672112822533,
-0.013079077936708927,
-0.07248160243034363,
0.0031495695002377033,
-0.04115661606192589,
-0.012270708568394184,
-0.02473558485507965,
-0.022104891017079353,
0.06980472803115845,
-0.019824670627713203,
0.032900985330343246,
0.043494805693626404,
0.020541073754429817,
0.01638251356780529,
-0.03438710421323776,
-0.0015951056266203523,
-0.019072365015745163,
0.009870652109384537,
-0.005650221835821867,
0.008090272545814514,
0.011324356310069561,
0.0012304317206144333,
-0.02193104475736618,
0.012295538559556007,
0.025410093367099762,
0.043170589953660965,
0.02671826258301735,
0.03089950792491436,
0.006115291267633438,
0.016922153532505035,
-0.04612724110484123,
-0.03235531225800514,
-0.03479446470737457,
0.021724730730056763,
0.06865927577018738,
-0.026560021564364433,
0.004851801786571741,
-0.0465465784072876,
0.01787315309047699,
-0.027845147997140884,
-0.06261426955461502,
0.024636173620820045,
-0.03213740885257721,
-0.010727119632065296,
-0.019051190465688705,
-0.029303530231118202,
-0.03412971645593643,
-0.03810906782746315,
0.03223597630858421,
-0.036369793117046356,
0.014393506571650505,
0.04602621868252754,
-0.00807597953826189,
0.0062562827952206135,
0.031698841601610184,
0.052045684307813644,
-0.05172944813966751,
0.0032087573781609535,
-0.04280643165111542,
-0.00011380138312233612,
0.0426684245467186,
-0.025660322979092598,
0.015999389812350273,
0.03166038542985916,
0.015482149086892605,
0.011846301145851612,
0.06304186582565308,
-0.009874117560684681,
0.04633127152919769,
-0.0067612347193062305,
0.023590128868818283,
-0.005448526702821255,
0.013621870428323746,
-0.01708255708217621,
-0.018457381054759026,
0.003171064890921116,
-0.032881129533052444,
-0.04339015856385231,
-0.006191004533320665,
0.028960075229406357,
-0.022381914779543877,
0.008515309542417526,
-0.03969840332865715,
-0.017085352912545204,
-0.05120761692523956,
0.006992992479354143,
0.008470062166452408,
0.042397838085889816,
-0.004387234803289175,
-0.024797871708869934,
-0.010334977880120277,
0.00976547971367836,
0.06171095371246338,
0.008194271475076675,
-0.031049447134137154,
0.052456822246313095,
0.04128946363925934,
0.005545041989535093,
0.006497115828096867,
0.012650609947741032,
-0.0027761412784457207,
0.01718887872993946,
-0.02810010127723217,
-0.00813310220837593,
0.011203944683074951,
0.05366523191332817,
0.029241953045129776,
-0.018292145803570747,
-0.0014462884282693267,
0.011748641729354858,
-0.03268566355109215,
-0.025958869606256485,
0.03390417993068695,
-0.00857944693416357,
0.020851409062743187,
0.03011787123978138,
-0.03495822101831436,
-0.024830108508467674,
0.024409471079707146,
-0.0017222396563738585,
-0.024811074137687683,
-0.0003672297461889684,
0.008844391442835331,
0.014833097346127033,
0.03786195442080498,
0.0021378134842962027,
0.019301243126392365,
0.0016812006942927837,
-0.012954012490808964,
0.0062878988683223724,
-0.0004843717033509165,
-0.020557548850774765,
0.029862675815820694,
-0.04230209439992905,
0.03507614508271217,
-0.03333783149719238,
-0.05859367921948433,
0.0008000254165381193,
0.0014614468673244119,
-0.037339381873607635,
0.04104471579194069,
0.04576874151825905,
0.06852696090936661,
-0.005860734730958939,
-0.008992746472358704,
-0.014187625609338284,
-0.0210313368588686,
0.010815920308232307,
-0.026470966637134552,
0.009602842852473259,
0.00647145276889205,
0.03213701397180557,
-0.023104457184672356,
-0.007996536791324615,
-0.010972854681313038,
0.001008255290798843,
0.0022052146960049868,
0.013016440905630589,
-0.0439193993806839,
-0.006338648963719606,
0.020750440657138824,
-0.03691578283905983,
-0.0505557544529438,
-0.005052078515291214,
-0.0318497009575367,
0.019108662381768227,
0.022879626601934433,
-0.07565254718065262,
-0.006394556723535061,
0.02036183513700962,
-0.06701553612947464,
-0.04378793388605118,
0.03307995945215225,
0.0021285146940499544,
0.005999572575092316,
-0.0005175598198547959,
-0.029106831178069115,
-0.01188497245311737,
0.0051161316223442554,
0.061309706419706345,
-0.054368678480386734,
-0.019999021664261818,
-0.009935579262673855,
0.07023704797029495,
-0.0022868579253554344,
0.02181767113506794,
-0.0025158447679132223,
0.007436154875904322,
0.06230594590306282,
0.0069512915797531605,
0.008745932020246983,
-0.03100445121526718,
0.025018742308020592,
0.03991806507110596,
-0.029934467747807503,
-0.04528959095478058,
-0.043786220252513885,
0.009056991897523403,
-0.021659107878804207,
-0.013441036455333233,
0.04678722470998764,
0.06698457896709442,
0.013401596806943417,
-0.008475696668028831,
0.004674247000366449,
-0.030224597081542015,
0.013800587505102158,
-0.027230406180024147,
0.02956906333565712,
0.06473727524280548,
0.05531218275427818,
-0.001989455660805106,
-0.040636055171489716,
0.021287333220243454,
0.049990300089120865,
0.00914820097386837,
-0.033123672008514404,
0.04437277838587761,
0.024083230644464493,
-0.058572106063365936,
0.012510624714195728,
0.009286164306104183,
-0.06339511275291443,
-0.017100615426898003,
-0.028534188866615295,
0.044192131608724594,
-0.0004475584428291768,
0.004439373966306448,
0.012213838286697865,
0.01212990190833807,
-0.020827090367674828,
-0.03313050791621208,
0.034756943583488464,
0.0030027476605027914,
0.004532398656010628,
-0.003014675574377179,
-0.0038312107790261507,
0.07272879034280777,
0.000202859184355475,
-0.00829215720295906,
0.01915588229894638,
0.03139359503984451,
0.04183407500386238,
0.056832801550626755,
-0.01855657249689102,
0.0015265176771208644,
-0.004529418423771858,
-0.03408234566450119,
-0.01984390616416931,
-0.011907828971743584,
0.03304380550980568,
0.007227147929370403,
-0.01074784155935049,
-0.03761392459273338,
-0.038138411939144135,
0.05208669975399971,
-0.0359070785343647,
0.04327533394098282,
0.026959184557199478,
-0.008402135223150253,
-0.01002232450991869,
0.01098255068063736,
0.024152029305696487,
0.03388707712292671,
0.0006344415014609694,
-0.018942052498459816,
0.022010251879692078,
0.036974821239709854,
0.03977761045098305,
0.011545372195541859,
0.05717504769563675,
-0.0070493086241185665,
-0.026492079719901085,
0.004458967130631208,
-0.0207450520247221,
-0.023168252781033516,
-0.028848478570580482,
-0.04273136332631111,
-0.009525587782263756,
-0.04006354138255119,
-0.016830820590257645,
-0.038749076426029205,
0.03372030705213547,
0.02408287674188614,
-0.03156072646379471,
-0.01576019451022148,
0.020462967455387115,
0.006932755932211876,
-0.06724459677934647,
-0.030720116570591927,
-0.027705440297722816,
-0.010444584302604198,
-0.006459389813244343,
-0.05664485692977905,
-0.03135690465569496,
-0.036167874932289124,
0.009541637264192104,
0.03572303056716919,
0.00843980722129345,
0.004264697898179293,
-0.03838244453072548,
-0.010610748082399368,
-0.027467837557196617,
-0.015189852565526962,
0.010944616980850697,
0.03600098565220833,
0.01775520108640194,
-0.026162995025515556,
-0.00444049434736371,
0.00007295452815014869,
-0.019511230289936066,
-0.0182981938123703,
-0.05212228372693062,
0.0022072098217904568,
-0.006472522392868996,
-0.006804783828556538,
0.011245098896324635,
0.043947916477918625,
0.0008208155632019043,
-0.0336238369345665,
-0.03076162189245224,
-0.04582785442471504,
-0.0339924655854702,
-0.0013680887641385198,
-0.002897626720368862,
-0.03353286534547806,
-0.02669161558151245,
0.006561392918229103,
-0.04314034804701805,
-0.020749563351273537,
0.03628549352288246,
0.02303975820541382,
0.025579258799552917,
0.029820570722222328,
0.000981693621724844,
0.0035400378983467817,
0.020050153136253357,
-0.007470833137631416,
0.010960112325847149,
0.07541734725236893,
0.021017784252762794,
-0.03146427497267723,
0.06683671474456787,
-0.014938635751605034,
0.03268076851963997,
0.0027439843397587538,
-0.03976646810770035,
-0.022771717980504036,
0.02308753691613674,
-0.0027933816891163588,
-0.008686289191246033,
-0.02077244408428669,
0.02033361606299877,
0.009771480225026608,
-0.005558936391025782,
-0.01938788779079914,
0.01849442347884178,
0.0005857530049979687,
-0.02271287329494953,
0.016041476279497147,
-0.016813041642308235,
0.0026556113734841347,
0.04551086574792862,
0.008485936559736729,
0.010295391082763672,
0.021631376817822456,
-0.009782839566469193,
-0.0020736712031066418,
0.016635295003652573,
0.03350653871893883,
-0.057938653975725174,
0.002351529663428664,
0.05477461963891983,
0.022943085059523582,
-0.003643942764028907,
-0.0017161077121272683,
-0.015079094097018242,
0.053884122520685196,
-0.010972869582474232,
0.004526651464402676,
0.006457545794546604,
0.026535918936133385,
-0.029491480439901352,
-0.05345996469259262,
-0.02842056006193161,
0.015379523858428001,
0.047686878591775894,
-0.03394964709877968,
0.04533817619085312,
-0.009461896494030952,
0.0034401339944452047,
0.04750944301486015,
-0.005820940248668194,
0.02850559540092945,
0.022018425166606903,
0.021272841840982437,
-0.06447085738182068,
0.03189924359321594,
0.009026630781590939,
0.014496177434921265,
-0.01087464950978756,
0.005868230946362019,
-0.0020129294134676456,
-0.017033394426107407,
-0.02754095196723938,
-0.0008538602851331234,
-0.00789767224341631,
-0.0012068210635334253,
0.010775712318718433,
0.006991920061409473,
0.013350307941436768,
-0.011309927329421043,
-0.024746999144554138,
0.0019268422620370984,
0.0010563344694674015
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | Dataset Basics For a high-level overview of the dataset This begins to answer questions like “What is this dataset? Does it have missing items?”. You can use this as “sanity checks” that the dataset you’re working with is as you expect it to be. - A description of the dataset (from the Hugging Face Hub) - Number of missing values or NaNs | [
0.006557745859026909,
-0.048648055642843246,
0.01496952585875988,
0.015355181880295277,
0.0772378221154213,
0.07108096778392792,
-0.02883761189877987,
0.030491208657622337,
-0.06571921706199646,
-0.030328555032610893,
-0.05559612065553665,
0.031080804765224457,
0.011327357031404972,
0.02908909320831299,
-0.00671102711930871,
0.021698307245969772,
0.07227213680744171,
0.009286841377615929,
-0.008606843650341034,
0.05264965817332268,
-0.03018317185342312,
-0.08100943267345428,
0.020170113071799278,
-0.020611150190234184,
0.011060385033488274,
-0.0819489136338234,
0.009096687659621239,
-0.020985379815101624,
0.0036123429890722036,
0.0332360714673996,
-0.1706734150648117,
0.031297892332077026,
0.016667796298861504,
-0.0600164458155632,
0.02132747694849968,
0.05185385048389435,
-0.09919050335884094,
0.08532897382974625,
0.032820843160152435,
-0.03705403953790665,
-0.02842853032052517,
-0.03279818221926689,
-0.07327425479888916,
0.06290821731090546,
-0.05385209619998932,
-0.06198151409626007,
-0.15857812762260437,
0.06453119218349457,
-0.045528050512075424,
0.012189106084406376,
-0.06769836694002151,
0.05290582776069641,
-0.003420672845095396,
-0.03513506054878235,
0.011480198241770267,
-0.044428519904613495,
0.0026778795290738344,
-0.04718486964702606,
0.03763634338974953,
0.0313071608543396,
0.05819320306181908,
-0.0019562398083508015,
0.002839796245098114,
0.0011424354743212461,
-0.002207439858466387,
-0.03194109722971916,
0.0740501806139946,
0.07963810861110687,
-0.02230251021683216,
0.01682925783097744,
0.013775436207652092,
0.008092089556157589,
-0.0023845823016017675,
-0.011770346201956272,
-0.03461530804634094,
-0.02273423597216606,
-0.011600211262702942,
-0.02615671418607235,
0.0014655672712251544,
0.017170799896121025,
-0.007167790085077286,
0.01523927878588438,
0.05160539224743843,
0.09513694047927856,
0.015507997013628483,
-0.0070654479786753654,
0.022349199280142784,
0.021103234961628914,
-0.06145920231938362,
0.1089647114276886,
-0.016747865825891495,
-0.09171302616596222,
0.015378669835627079,
-0.039705920964479446,
0.010418466292321682,
-0.03205081820487976,
0.03742171451449394,
0.0008162696612998843,
0.04682302847504616,
0.014387229457497597,
-0.08802609145641327,
-0.0453869067132473,
0.058543771505355835,
-0.046267688274383545,
-0.09082090109586716,
-0.03470529243350029,
-0.005384447518736124,
-0.05993499234318733,
-0.04579726606607437,
0.0030791761819273233,
-0.07411856949329376,
-0.044818662106990814,
-0.007086087949573994,
0.07690557092428207,
-0.02409033477306366,
0.05793701484799385,
0.0003962795890402049,
0.014770989306271076,
0.00911351852118969,
0.05051327124238014,
0.026932232081890106,
0.06689527630805969,
0.027834581211209297,
0.006251453422009945,
0.014576793648302555,
0.09235252439975739,
0.0052192858420312405,
0.01247243583202362,
0.016613205894827843,
0.0009991534752771258,
-0.038308095186948776,
-0.03209487721323967,
0.03656820207834244,
0.01852262206375599,
-0.012207118794322014,
-0.070839524269104,
-0.02128634974360466,
-0.061063773930072784,
0.09488615393638611,
0.02154882252216339,
-0.018390106037259102,
0.04387533292174339,
-0.004170667380094528,
0.017806988209486008,
0.04419834911823273,
-0.05442732945084572,
-0.05678148567676544,
0.005999629385769367,
-0.028148379176855087,
0.029134267941117287,
-0.05061585456132889,
0.052155349403619766,
0.035453520715236664,
-0.061025213450193405,
0.05522260069847107,
0.027499932795763016,
-0.02827061153948307,
-0.03740081936120987,
-0.04516560956835747,
-0.04110361263155937,
0.0063395630568265915,
0.0259297713637352,
-0.02078927308320999,
0.0071295783855021,
0.05762169510126114,
-0.02402528189122677,
-0.020503032952547073,
0.04797201231122017,
0.001114705577492714,
0.016654595732688904,
0.009947853162884712,
-0.062333960086107254,
0.0655064731836319,
-0.033679187297821045,
-0.008210187777876854,
-0.00040232244646176696,
0.036835480481386185,
0.011498031206429005,
-0.026028785854578018,
0.029617244377732277,
-0.06343849748373032,
-0.01186379324644804,
-0.008227847516536713,
0.021910570561885834,
0.020697420462965965,
-0.023956328630447388,
0.023568682372570038,
0.026659704744815826,
-0.0009604112710803747,
0.031712014228105545,
-0.042696502059698105,
0.0008773190202191472,
0.08522689342498779,
-0.05521374195814133,
0.030485106632113457,
-0.06800270825624466,
-0.009900923818349838,
0.1755329817533493,
0.04275719076395035,
0.03238261863589287,
0.03142677992582321,
0.041042279452085495,
0.058394528925418854,
-0.053846269845962524,
0.013154535554349422,
0.06634622812271118,
0.027384361252188683,
-0.036140866577625275,
-0.0080918213352561,
-0.010489335283637047,
0.04925769940018654,
-0.10648466646671295,
0.02401205711066723,
-0.0290785264223814,
-0.03952298313379288,
-0.009649393148720264,
0.016033388674259186,
0.0003306598518975079,
0.0775044709444046,
0.025793226435780525,
0.15811246633529663,
-0.006717662326991558,
0.006985088344663382,
-0.03040330298244953,
-0.025836413726210594,
-0.005065065808594227,
0.16533051431179047,
0.10756958276033401,
0.06852258741855621,
-0.08978700637817383,
-0.043130576610565186,
-0.033643100410699844,
-0.04172787070274353,
0.052932966500520706,
-0.025577742606401443,
-0.003143574809655547,
0.010997419245541096,
0.02065306343138218,
0.01458446029573679,
-0.04692274332046509,
-0.007184737827628851,
-0.04197192192077637,
0.03765204921364784,
0.02327689155936241,
-0.03369798883795738,
-0.04272923618555069,
0.05123908817768097,
0.006865584757179022,
-0.09078508615493774,
-0.0008689214591868222,
-0.016669172793626785,
0.05692969635128975,
0.04093051701784134,
-0.006459246389567852,
0.013335966505110264,
0.05694020539522171,
0.00035793529241345823,
-0.03680390119552612,
-0.007353814784437418,
0.03502145782113075,
0.007562767714262009,
-0.014073013328015804,
-0.031953826546669006,
-0.053670305758714676,
-0.034681256860494614,
-0.05783655121922493,
-0.00875580869615078,
-0.021721890196204185,
0.023656953126192093,
0.01312881801277399,
0.022604046389460564,
0.0025290127377957106,
0.048426344990730286,
0.023031175136566162,
0.026241393759846687,
-0.003931171726435423,
0.02365943230688572,
-0.012638901360332966,
-0.030721968039870262,
-0.0011743278009817004,
0.02104191668331623,
-0.013546434231102467,
0.03344601020216942,
0.03132104128599167,
0.036849137395620346,
-0.04015132412314415,
0.020012514665722847,
0.011171407997608185,
-0.04358512535691261,
0.0059739453718066216,
0.031562209129333496,
0.0208723321557045,
-0.02088143117725849,
-0.054654378443956375,
0.02163601480424404,
0.023332856595516205,
-0.006906221620738506,
0.009699465706944466,
0.0037846737541258335,
0.045531973242759705,
0.006973325740545988,
0.035038914531469345,
-0.022776411846280098,
-0.021160311996936798,
-0.030734090134501457,
0.07384173572063446,
0.029868924990296364,
0.03974352777004242,
-0.1043865978717804,
-0.007384282536804676,
-0.004895844496786594,
-0.0244358628988266,
-0.03788125142455101,
-0.048219017684459686,
0.05883897840976715,
0.00889589637517929,
-0.002858984051272273,
-0.0047789327800273895,
-0.003001642879098654,
0.016772279515862465,
0.02667347341775894,
0.018556268885731697,
0.00560784200206399,
-0.032787080854177475,
-0.007082586642354727,
-0.023053573444485664,
0.05996997281908989,
0.0034069251269102097,
-0.04692601412534714,
0.05832526087760925,
0.013126544654369354,
0.02203643135726452,
-0.022435367107391357,
0.018604934215545654,
0.07850681245326996,
0.01796458661556244,
-0.005339593160897493,
-0.011298044584691525,
-0.005510169547051191,
-0.008073310367763042,
-0.06840594857931137,
0.024646665900945663,
-0.022670194506645203,
-0.0014870435697957873,
0.010666156187653542,
0.0027177035808563232,
0.004498516209423542,
0.015888964757323265,
0.01426517590880394,
0.0064589171670377254,
-0.012369194068014622,
-0.0019632563926279545,
0.011077158153057098,
-0.0010409167734906077,
-0.03681480884552002,
-0.036635830998420715,
0.007471853401511908,
-0.04714517667889595,
-0.022800253704190254,
-0.026125051081180573,
-0.012410799041390419,
0.07137049734592438,
-0.029000358656048775,
0.006913822144269943,
0.0036942320875823498,
0.035717543214559555,
-0.011656872928142548,
-0.011959153227508068,
-0.047258686274290085,
0.009655408561229706,
-0.001987615367397666,
-0.005202475935220718,
-0.041927848011255264,
0.02052418515086174,
-0.001764670480042696,
0.006721131969243288,
-0.003616269212216139,
0.015173612162470818,
-0.03101189434528351,
0.0021913861855864525,
-0.015477189794182777,
0.01300623919814825,
-0.009595834650099277,
-0.025369126349687576,
0.003308831946924329,
-0.003648896934464574,
0.04607594758272171,
0.016303086653351784,
-0.04354766011238098,
0.005779364611953497,
0.013322512619197369,
-0.003416474210098386,
-0.009974939748644829,
-0.0189906544983387,
0.029147159308195114,
-0.02068699710071087,
0.034919366240501404,
0.02921443246304989,
-0.0035463108215481043,
-0.05124689266085625,
0.030993692576885223,
-0.046817392110824585,
-0.020171990618109703,
-0.03284182399511337,
0.03790755942463875,
0.004845181480050087,
-0.006318734027445316,
0.014065059833228588,
0.01546306349337101,
-0.029880767688155174,
0.01621798612177372,
-0.006055891048163176,
0.0004872447461821139,
0.03894723579287529,
-0.043804239481687546,
-0.04923365265130997,
0.020605336874723434,
-0.016048070043325424,
0.019919637590646744,
-0.03602644428610802,
-0.006767326965928078,
-0.004944400396198034,
0.04505568742752075,
0.002689212327823043,
-0.012999864295125008,
-0.027658360078930855,
-0.03548850491642952,
0.02447369508445263,
0.008721701800823212,
0.019554855301976204,
-0.022251157090067863,
-0.005369466729462147,
-0.006909559015184641,
-0.022274790331721306,
0.0207802914083004,
0.014165014959871769,
0.002893982455134392,
-0.02828867919743061,
0.014469302259385586,
-0.003096599830314517,
0.01920919679105282,
-0.005472427234053612,
-0.0034271427430212498,
0.05451009422540665,
-0.030977334827184677,
0.05958283320069313,
-0.007762570399791002,
-0.06778612732887268,
-0.014780775643885136,
-0.00922410935163498,
0.01458012405782938,
-0.004751887172460556,
0.0003614635206758976,
-0.02520454116165638,
-0.03293913975358009,
-0.02606712095439434,
-0.03677928075194359,
-0.01967497169971466,
0.02979794330894947,
0.027582380920648575,
-0.047258052974939346,
0.022481411695480347,
0.014973741956055164,
-0.0606415793299675,
0.016132891178131104,
0.011394658125936985,
-0.01125755812972784,
0.013703389093279839,
-0.033721115440130234,
-0.010371201671659946,
-0.04258892312645912,
0.006711559370160103,
0.007948162965476513,
-0.0009500862215645611,
0.029727445915341377,
-0.03449751436710358,
-0.0012985054636374116,
0.014335460029542446,
-0.014612678438425064,
-0.0036383382976055145,
0.020156029611825943,
-0.01569121703505516,
0.012512880377471447,
0.03608940541744232,
0.04030466079711914,
0.01138713676482439,
0.003682600799947977,
0.03194809705018997,
-0.035533905029296875,
0.006164067890495062,
0.010381551459431648,
-0.02009122632443905,
0.023971300572156906,
0.02861884981393814,
0.012875502929091454,
0.07877550274133682,
0.014326602220535278,
0.024897688999772072,
-0.002163330093026161,
-0.05222461000084877,
-0.006187757011502981,
-0.05592796206474304,
0.013943563215434551,
-0.025629181414842606,
0.05077245086431503,
0.019308922812342644,
-0.0002592664386611432,
0.0012840523850172758,
-0.0027533185202628374,
0.055536750704050064,
-0.018370691686868668,
0.015033350326120853,
0.031738340854644775,
-0.005781054496765137,
-0.03302590548992157,
-0.02318568341434002,
0.03911164030432701,
-0.05553128942847252,
-0.024461064487695694,
-0.0360528826713562,
-0.02008465677499771,
-0.01288473978638649,
-0.026592643931508064,
-0.03278731182217598,
-0.062181033194065094,
0.008244102820754051,
0.015292930416762829,
0.0313708670437336,
-0.014669721946120262,
-0.02018282189965248,
-0.0029012756422162056,
0.012710651382803917,
0.03424535691738129,
-0.05428570881485939,
-0.006880488712340593,
-0.005715798120945692,
0.031219277530908585,
0.013518478721380234,
-0.005605864338576794,
0.023809127509593964,
0.011298897676169872,
-0.007980231195688248,
-0.029268523678183556,
0.02093716710805893,
-0.024114243686199188,
0.028116600587964058,
0.06603670865297318,
0.0083437105640769,
0.021798474714159966,
-0.028880257159471512,
-0.011076989583671093,
0.003873431356623769,
-0.029570823535323143,
0.0026080068200826645,
0.09324540197849274,
-0.01610865816473961,
0.042325202375650406,
0.015606007538735867,
0.007480458822101355,
-0.0041237883269786835,
-0.0008642144384793937,
0.022267593070864677,
0.03454193100333214,
0.03990081697702408,
-0.00798645056784153,
-0.020331095904111862,
-0.005909821484237909,
-0.004932477604597807,
0.018979981541633606,
-0.09781422466039658,
0.04999516159296036,
-0.00016804563347250223,
-0.06352314352989197,
-0.001777968485839665,
0.016463615000247955,
0.006870833225548267,
0.04210132360458374,
0.03493233770132065,
0.034793123602867126,
0.03691421076655388,
0.015589344315230846,
0.03379858285188675,
-0.010882701724767685,
-0.02386290952563286,
0.020823869854211807,
0.0433887280523777,
-0.019290803000330925,
-0.002490217797458172,
0.017896408215165138,
0.05020516365766525,
0.05755314603447914,
0.0031084667425602674,
0.02543577365577221,
-0.028823120519518852,
0.06917909532785416,
0.029239198192954063,
0.02530376799404621,
0.04719413444399834,
-0.03268788009881973,
0.02092811092734337,
-0.016830770298838615,
-0.03509719297289848,
-0.012164220213890076,
0.03838733211159706,
0.03281424194574356,
0.008326627314090729,
0.029323553666472435,
-0.023291712626814842,
0.030157119035720825,
0.016451098024845123,
0.028057338669896126,
-0.0256048534065485,
0.02390933409333229,
0.001596617279574275,
0.01612824760377407,
-0.00467689847573638,
0.0448637455701828,
-0.0007048306870274246,
-0.0031709473114460707,
0.05036289989948273,
0.018876293674111366,
0.0026659145951271057,
0.04224003851413727,
-0.006237976253032684,
-0.004722823388874531,
-0.03907396271824837,
0.009142283350229263,
0.012639176100492477,
0.0006342152482829988,
-0.03630879521369934,
-0.020110372453927994,
0.011186348274350166,
-0.021185997873544693,
0.0069738575257360935,
-0.03783492371439934,
0.01350334007292986,
0.009136857464909554,
-0.003794035641476512,
0.010785888880491257,
0.0577654168009758,
0.006259724032133818,
-0.03713172301650047,
-0.0024907973129302263,
0.026509249582886696,
-0.0007377186557278037,
0.0072562131099402905,
-0.030263626947999,
-0.02727578394114971,
-0.04071084037423134,
-0.018492167815566063,
-0.006063785869628191,
0.044148337095975876,
-0.016954192891716957,
-0.01722278632223606,
0.018002066761255264,
-0.017102427780628204,
-0.016096793115139008,
0.0015733875334262848,
0.030338769778609276,
0.02620106376707554,
-0.012235729023814201,
0.006280438043177128,
-0.02131473273038864,
-0.018657805398106575,
-0.0027529513463377953,
-0.026341645047068596,
0.0008213886758312583,
-0.03014555759727955,
-0.003678583772853017,
0.010168733075261116,
0.007840852253139019,
0.0014674594858661294,
-0.01654531992971897,
-0.018403111025691032,
-0.06788461655378342,
-0.016024284064769745,
0.03146755322813988,
-0.000634761294350028,
0.0017922130646184087,
0.029957449063658714,
-0.002359027275815606,
-0.01070499513298273,
-0.050057943910360336,
0.00038634793600067496,
0.004131018184125423,
-0.03072936274111271,
-0.0065208785235881805,
0.030490050092339516,
0.03792719170451164,
0.04563240706920624,
0.0018945762421935797,
0.023273799568414688,
0.03238113224506378,
0.010077164508402348,
-0.04494563490152359,
0.03914084658026695,
-0.033122166991233826,
0.03357341140508652,
-0.0330229327082634,
-0.023198651149868965,
-0.01242655236274004,
-0.013825862668454647,
0.022199777886271477,
0.018156329169869423,
-0.0116612883284688,
-0.005024379584938288,
0.002009510062634945,
-0.03031759522855282,
-0.0401836633682251,
0.004457121714949608,
0.04120880365371704,
0.030294207856059074,
0.05126786231994629,
0.025709964334964752,
0.0026530467439442873,
0.014194314368069172,
-0.008957895450294018,
0.007262885104864836,
0.03493652120232582,
0.02954961359500885,
-0.026003887876868248,
-0.026511453092098236,
0.0120558375492692,
-0.028083104640245438,
-0.06165783852338791,
0.0031579346396028996,
0.03843287378549576,
0.05259750410914421,
0.009059157222509384,
-0.008950458839535713,
0.04509376361966133,
-0.00949887279421091,
0.01742670126259327,
-0.030657075345516205,
-0.01989399828016758,
-0.008254037238657475,
0.01726108230650425,
-0.033874012529850006,
-0.005236435681581497,
-0.001472754287533462,
0.0008893386693671346,
0.015084026381373405,
0.014970746822655201,
-0.0049167596735060215,
0.028872517868876457,
-0.015521408058702946,
0.009160682559013367,
0.037933800369501114,
-0.0533970445394516,
-0.02206185646355152,
-0.007455830927938223,
0.01257121842354536,
-0.006552743259817362,
-0.016175691038370132,
-0.00759859150275588,
0.01676441729068756,
-0.01959005929529667,
-0.0181767288595438,
-0.006023417226970196,
-0.011368884705007076,
-0.0437287837266922,
0.014662424102425575,
-0.020997896790504456,
0.043319184333086014,
0.0017558290855959058,
-0.016520710662007332,
-0.007820258848369122,
-0.010978327132761478
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | Acknowledgements Thank you to Thomas Wolf for initiating this work, as well as other members of the 🤗 team (Quentin, Lewis, Sylvain, Nate, Julien C., Julien S., Clément, Omar, and many others!) for their help and support. | [
0.06150650605559349,
-0.013221459463238716,
0.03843091055750847,
-0.012579365633428097,
0.07849390804767609,
0.05058322101831436,
0.03940591216087341,
0.03815138712525368,
-0.043720949441194534,
-0.13374438881874084,
-0.00862747710198164,
0.0046225422993302345,
-0.021819300949573517,
-0.020557699725031853,
0.005243012215942144,
0.06286254525184631,
0.05022142082452774,
-0.04688691347837448,
0.019224153831601143,
0.02508709952235222,
-0.019816327840089798,
-0.0002089263725792989,
0.05874131992459297,
0.019860029220581055,
-0.015042293816804886,
-0.04379968345165253,
-0.005188295152038336,
-0.013054062612354755,
-0.06157306581735611,
0.07001242786645889,
0.009877823293209076,
-0.0013257154496386647,
0.05333404242992401,
-0.01571141928434372,
-0.036779675632715225,
-0.0452873520553112,
-0.1037791296839714,
-0.010601033456623554,
0.01409238763153553,
-0.022062333300709724,
0.06783650815486908,
-0.0024634015280753374,
0.00888002011924982,
0.08186599612236023,
-0.023138903081417084,
-0.017063073813915253,
-0.1806335598230362,
0.10375392436981201,
-0.04842862859368324,
-0.010757374577224255,
-0.03337385877966881,
-0.03248842433094978,
0.012754126451909542,
0.023747116327285767,
0.030823417007923126,
0.01066797785460949,
0.03954245150089264,
-0.03157743439078331,
0.03603189438581467,
-0.08529901504516602,
0.02983023412525654,
0.008750153705477715,
0.01474788784980774,
-0.047132860869169235,
0.044586800038814545,
0.0746222585439682,
0.030829207971692085,
0.06182708218693733,
-0.048454295843839645,
-0.013405521400272846,
0.04755455628037453,
0.020288269966840744,
-0.05771224945783615,
-0.0031360185239464045,
0.02716216631233692,
-0.047181934118270874,
-0.032456159591674805,
0.026641404256224632,
0.047300320118665695,
0.04608047381043434,
-0.026174835860729218,
-0.003541958052664995,
0.10160317271947861,
0.09718787670135498,
-0.013310207054018974,
-0.018242526799440384,
0.09407239407300949,
-0.03364480659365654,
0.005261084530502558,
-0.041467662900686264,
-0.07300353795289993,
-0.07673589140176773,
0.031127439811825752,
0.02691722847521305,
0.03898226469755173,
-0.044174663722515106,
0.07039734721183777,
0.03182098641991615,
0.04807375743985176,
0.00015431895735673606,
0.029078932479023933,
0.07418499886989594,
-0.016552243381738663,
-0.020785437896847725,
-0.05743776634335518,
0.006582277361303568,
-0.019023964181542397,
-0.0412435457110405,
-0.07157079875469208,
0.015287014655768871,
0.016238057985901833,
0.06258383393287659,
0.04390765726566315,
-0.010810846462845802,
-0.04112805053591728,
0.06561963260173798,
-0.013976040296256542,
0.006652783136814833,
0.0455632209777832,
0.01486046053469181,
-0.025474002584815025,
0.10142293572425842,
0.0559801384806633,
0.015744686126708984,
0.005011704284697771,
-0.007006747182458639,
0.015289602801203728,
0.0023950033355504274,
-0.09260988980531693,
-0.036838170140981674,
-0.008653085678815842,
-0.024050163105130196,
0.01830488070845604,
-0.0016298783011734486,
-0.08384741842746735,
-0.033461134880781174,
-0.01955794356763363,
-0.015357304364442825,
-0.04233246669173241,
0.031709037721157074,
-0.013761118985712528,
0.007693202700465918,
-0.027480745688080788,
0.05093754082918167,
0.02393638715147972,
-0.02035134844481945,
-0.07085219025611877,
0.055411312729120255,
-0.017517322674393654,
-0.04892735183238983,
0.002482521813362837,
0.05654419586062431,
-0.03429374471306801,
-0.050369687378406525,
-0.008600111119449139,
0.048183128237724304,
0.04440869390964508,
0.017100004479289055,
-0.08325614035129547,
-0.050374068319797516,
0.024987822398543358,
0.0256348866969347,
-0.0439717061817646,
-0.003136602696031332,
0.05440468341112137,
-0.041131243109703064,
0.06408631801605225,
-0.017310302704572678,
-0.06738793104887009,
-0.0854717567563057,
-0.02423570118844509,
0.004079855978488922,
0.07281152158975601,
0.023686477914452553,
-0.0949649065732956,
0.027242716401815414,
0.05275530368089676,
0.03546746075153351,
0.006257126573473215,
0.0378393717110157,
-0.0485626719892025,
0.02729109860956669,
0.026300091296434402,
0.011661052703857422,
0.02241903357207775,
-0.013710597530007362,
0.08319564163684845,
0.01964947208762169,
-0.0279785618185997,
0.05160617455840111,
-0.1556611806154251,
-0.00993172638118267,
0.10307462513446808,
0.004063609056174755,
-0.03157329559326172,
-0.1214369460940361,
-0.03831071779131889,
0.09802565723657608,
0.07397481054067612,
0.04275766387581825,
0.048264630138874054,
0.0655500665307045,
0.06501495838165283,
0.01423119567334652,
-0.045673321932554245,
-0.005482772830873728,
0.046304166316986084,
-0.03371020406484604,
0.007949906401336193,
-0.06191333010792732,
-0.07288139313459396,
-0.07438872009515762,
0.008954402059316635,
-0.03959858790040016,
-0.0060714599676430225,
-0.009182418696582317,
-0.030330853536725044,
-0.017653265967965126,
0.03761399909853935,
-0.08580964058637619,
0.06067666783928871,
0.02647816203534603,
0.005222646053880453,
0.01713388040661812,
-0.0017656073905527592,
0.09418188035488129,
0.053322337567806244,
-0.02244255132973194,
0.059877846390008926,
-0.06140654534101486,
-0.004281110595911741,
-0.0054387981072068214,
0.04343452304601669,
0.07472638040781021,
0.01562406588345766,
0.016826940700411797,
0.03427843004465103,
-0.07058825343847275,
0.017761409282684326,
-0.01968608982861042,
-0.0007834791322238743,
0.01840834878385067,
-0.028855212032794952,
0.018424585461616516,
-0.03779040649533272,
-0.0796843022108078,
-0.0010731695219874382,
0.06504679471254349,
-0.07561839371919632,
-0.007798139005899429,
-0.07154183834791183,
0.1337316632270813,
0.01735275238752365,
-0.013347539119422436,
0.0956675186753273,
-0.01955174282193184,
0.019216027110815048,
-0.014553568325936794,
0.012444577179849148,
0.007566314190626144,
0.015067683532834053,
-0.0329287089407444,
-0.006586543750017881,
-0.062174782156944275,
-0.007092519197613001,
-0.03219132870435715,
0.04438987746834755,
0.008335305377840996,
0.04362254962325096,
0.038676850497722626,
0.0019728406332433224,
-0.005395325366407633,
0.011706770397722721,
0.03141995146870613,
0.010625396855175495,
0.004829016048461199,
0.03134475648403168,
-0.031725022941827774,
-0.005547022446990013,
-0.043728750199079514,
-0.008988015353679657,
-0.02694505639374256,
0.0011013774201273918,
-0.013166195712983608,
0.043560691177845,
-0.03152131661772728,
-0.0025083243381232023,
0.002526319120079279,
0.004866774193942547,
0.02841481938958168,
-0.013686985708773136,
0.01544881984591484,
0.03210631012916565,
-0.05695081129670143,
0.019123686477541924,
-0.030692918226122856,
-0.010760475881397724,
0.03195749968290329,
-0.030863339081406593,
-0.01072673685848713,
0.00504695437848568,
-0.0018709521973505616,
-0.0013982136733829975,
0.03914022073149681,
-0.004153642803430557,
0.006537947803735733,
0.010731150396168232,
0.042274657636880875,
-0.11913275718688965,
-0.009577695280313492,
0.053820740431547165,
0.05600183084607124,
-0.02575569972395897,
0.01838698610663414,
0.06749018281698227,
-0.05833280086517334,
-0.04238361120223999,
-0.049540337175130844,
0.0390547551214695,
0.021753214299678802,
-0.0002533252991270274,
-0.05179814621806145,
-0.01732942834496498,
-0.012941157445311546,
0.0060706972144544125,
-0.005043109878897667,
-0.009485999122262001,
-0.025120588019490242,
-0.01407596468925476,
0.029771825298666954,
-0.037014007568359375,
-0.018343010917305946,
-0.0436740405857563,
0.04307413101196289,
0.017637144774198532,
0.027372615411877632,
0.011184579692780972,
-0.03365394473075867,
-0.05972353368997574,
0.037289075553417206,
-0.009436710737645626,
0.040725089609622955,
0.014733445830643177,
-0.004535987041890621,
-0.0038561976980417967,
-0.02529084123671055,
0.0010520206997171044,
0.05036371201276779,
0.020091965794563293,
0.021098455414175987,
0.04054395481944084,
0.0011228008661419153,
-0.00036596375866793096,
0.027049962431192398,
0.019361717626452446,
0.00856123398989439,
0.046776313334703445,
-0.020653272047638893,
-0.020893020555377007,
0.008710146881639957,
-0.005541124846786261,
0.07090967148542404,
0.005440863780677319,
0.015850340947508812,
-0.013685966841876507,
0.01324963103979826,
0.035879965871572495,
0.0017621247097849846,
0.0019641462713479996,
0.026129623875021935,
-0.011475546285510063,
0.03242313489317894,
0.020994292572140694,
0.05040688440203667,
-0.014944661408662796,
0.01045162882655859,
-0.07716087996959686,
0.04265611246228218,
0.012683236040174961,
0.03660420700907707,
-0.034671761095523834,
0.009208089672029018,
-0.00042114072130061686,
0.009611545130610466,
-0.015622916631400585,
-0.032080698758363724,
0.029890956357121468,
-0.0345267578959465,
-0.030258703976869583,
-0.010107563808560371,
-0.04028139263391495,
-0.007020345889031887,
-0.0029159304685890675,
0.05284953489899635,
-0.02599058672785759,
0.017140785232186317,
-0.015467619523406029,
0.01914350874722004,
0.025549067184329033,
0.030532801523804665,
-0.015163160860538483,
-0.036519091576337814,
0.009815272875130177,
0.029505416750907898,
0.056923069059848785,
-0.007677935063838959,
0.03193949535489082,
0.006660953629761934,
0.019383881241083145,
0.0012980925384908915,
-0.015128891915082932,
-0.006547410506755114,
0.02080225758254528,
0.033331431448459625,
-0.028763294219970703,
-0.039569608867168427,
0.0009221170330420136,
0.00521154934540391,
0.019485335797071457,
-0.05964536592364311,
0.014911383390426636,
-0.005838454235345125,
-0.000938696030061692,
-0.006509177386760712,
-0.013426057063043118,
-0.06274198740720749,
-0.006425798870623112,
-0.00042566886986605823,
-0.03756142035126686,
0.016582461073994637,
-0.0033023543655872345,
-0.011622196063399315,
0.03210153803229332,
0.01300955843180418,
-0.008399014361202717,
0.011824865825474262,
0.0069409823045134544,
-0.012032924219965935,
-0.018174536526203156,
-0.038316722959280014,
0.032805368304252625,
0.024247508496046066,
0.014022123999893665,
-0.00821220688521862,
0.023334477096796036,
0.0007996715721674263,
-0.012998702004551888,
-0.04180207848548889,
0.04135763272643089,
0.007336284499615431,
0.007818443700671196,
-0.010265122167766094,
0.024200452491641045,
-0.011814083904027939,
0.033171556890010834,
0.0005330672720447183,
0.00894406158477068,
0.009600793942809105,
0.0618426688015461,
-0.03114243969321251,
-0.008769051171839237,
-0.014283863827586174,
0.0015287240967154503,
0.0376710370182991,
0.012065248563885689,
-0.01616811752319336,
-0.01519568357616663,
0.06304274499416351,
0.0064176032319664955,
0.009828703477978706,
-0.0675124078989029,
0.05164945125579834,
-0.03059324435889721,
0.026851819828152657,
0.015654539689421654,
0.0075476206839084625,
-0.017240528017282486,
-0.00799243338406086,
-0.023264462128281593,
-0.053559690713882446,
0.012098560109734535,
-0.016400447115302086,
0.0035222452133893967,
-0.01623889058828354,
-0.007146512623876333,
-0.008619840256869793,
-0.022726062685251236,
0.015069992281496525,
-0.037489231675863266,
0.0015851358184590936,
0.03620836138725281,
-0.004742859397083521,
0.005875977221876383,
-0.012245884165167809,
0.009593242779374123,
-0.014474103227257729,
-0.0013545430265367031,
0.05323425680398941,
-0.04991544783115387,
-0.017417272552847862,
-0.013601496815681458,
-0.03394865617156029,
-0.013710340484976768,
0.0004043921362608671,
0.0017373072914779186,
-0.026356913149356842,
-0.009934070520102978,
0.017022723332047462,
0.027025749906897545,
0.030569659546017647,
-0.007760339882224798,
0.012961545027792454,
0.011070986278355122,
0.038360536098480225,
-0.008024005219340324,
-0.030082104727625847,
0.0204719677567482,
-0.05159830302000046,
-0.016883350908756256,
0.020092422142624855,
-0.04567722603678703,
-0.025027131661772728,
-0.0035343768540769815,
-0.04555307701230049,
-0.01644234172999859,
0.02049582079052925,
0.005958635825663805,
0.018237916752696037,
0.021479042246937752,
0.010424279607832432,
-0.007999555207788944,
0.042833078652620316,
0.03159886971116066,
-0.02693009376525879,
-0.028374601155519485,
0.045467063784599304,
-0.018940331414341927,
0.03382037580013275,
0.024714214727282524,
0.006840583868324757,
-0.023606736212968826,
0.00910961627960205,
0.019306078553199768,
0.019004622474312782,
-0.04806530103087425,
0.018029890954494476,
-0.0015997020527720451,
0.01795940101146698,
0.04128225892782211,
-0.018712060526013374,
0.014780770055949688,
-0.0027349472511559725,
-0.02432015724480152,
0.030046183615922928,
0.019024956971406937,
-0.03389718756079674,
0.015986595302820206,
-0.013929139822721481,
0.018288731575012207,
0.001099415123462677,
-0.011728868819773197,
-0.02020757831633091,
-0.012013040482997894,
0.028363358229398727,
-0.0010229935869574547,
-0.02965671196579933,
0.03425830230116844,
-0.0037695306818932295,
-0.0011984416050836444,
-0.0006064271437935531,
0.0018230084097012877,
0.024946801364421844,
-0.04528217017650604,
-0.0018819430842995644,
0.005601941142231226,
-0.01899375393986702,
0.004696256015449762,
-0.008107950910925865,
-0.02597363479435444,
-0.008491446264088154,
0.024530811235308647,
-0.017286693677306175,
0.0007669893093407154,
0.0036465285811573267,
0.02052900940179825,
0.016044406220316887,
0.031331636011600494,
-0.0331859327852726,
-0.002902827225625515,
-0.002507556229829788,
0.035649027675390244,
0.019649842754006386,
-0.0005818664794787765,
0.034074798226356506,
0.03411741554737091,
-0.012384941801428795,
0.015332791954278946,
-0.012652539648115635,
-0.010542764328420162,
0.006711279973387718,
-0.02463739551603794,
-0.007196946535259485,
-0.006010429468005896,
0.007648734841495752,
0.018092961981892586,
-0.03283829241991043,
0.02699204720556736,
-0.012392290867865086,
0.0038779338356107473,
0.0058547561056911945,
-0.020013663917779922,
0.0301236342638731,
-0.021527988836169243,
0.024160096421837807,
0.01890580542385578,
-0.019725026562809944,
-0.06077194586396217,
-0.03045133501291275,
0.018718983978033066,
0.03690021112561226,
-0.030919160693883896,
-0.027621127665042877,
-0.010738123208284378,
-0.04787520691752434,
0.02281358279287815,
-0.0021896231919527054,
0.03007945977151394,
-0.0017227429198101163,
0.04527346417307854,
0.020007651299238205,
0.006669561378657818,
-0.02726873569190502,
-0.004157834220677614,
-0.06017966940999031,
0.03058810345828533,
0.004392753355205059,
-0.03129412978887558,
-0.001376679283566773,
0.02718348242342472,
0.021320821717381477,
-0.011152499355375767,
0.012412046082317829,
-0.00823296420276165,
0.04548671096563339,
0.002438691910356283,
0.049349602311849594,
0.00035287271020933986,
-0.010818948969244957,
-0.010565563105046749,
0.012305101379752159,
0.022920837625861168,
-0.004429491236805916,
-0.013708109967410564,
-0.014036186970770359,
-0.019503647461533546,
0.013439863920211792,
-0.03192000091075897,
0.03959180787205696,
0.047957345843315125,
-0.012341437861323357,
0.020014982670545578,
0.0540156364440918,
0.006798462942242622,
0.019285006448626518,
-0.013057547621428967,
-0.014164648950099945,
-0.002482484094798565,
-0.016894202679395676,
-0.01196769718080759,
0.04073614254593849,
0.02435781992971897,
-0.0555490180850029,
-0.06066904589533806,
-0.014181084930896759,
0.0034621909726411104,
0.0030956161208450794,
0.0016015209257602692,
0.01827583648264408,
-0.026865582913160324,
-0.03349001705646515,
0.029746107757091522,
0.007472390774637461,
-0.021418346092104912,
-0.04669500142335892,
-0.041418325155973434,
-0.03615520894527435,
-0.001543245860375464,
-0.04311476647853851,
0.053089383989572525,
0.0177721306681633,
0.025286128744482994,
0.05220191180706024,
0.02920723892748356,
0.01709117740392685,
-0.011644716374576092,
-0.008622308261692524,
0.004099465906620026,
0.03961632400751114,
-0.028508910909295082,
-0.013711491599678993,
-0.022804714739322662,
-0.03631413355469704,
0.012555754743516445,
0.011718367226421833,
-0.05404817685484886,
-0.02848791517317295,
0.0019198659574612975,
0.010821817442774773,
-0.03937359154224396,
0.020909013226628304,
0.04345269873738289,
-0.0045863869599998,
0.01112115103751421,
0.0063756913878023624,
-0.00899679958820343,
-0.02250712178647518,
0.031473882496356964,
-0.022202545776963234,
0.049570728093385696,
0.021143779158592224,
0.003513757372274995,
-0.05888945236802101,
0.01383183803409338,
-0.043103139847517014,
-0.048592209815979004,
-0.006898872088640928,
0.03358038514852524,
-0.024333426728844643,
-0.020725633949041367,
0.006780615542083979,
0.004827921278774738,
0.04558974876999855,
-0.001978657441213727,
0.008328861556947231,
-0.02864282764494419,
-0.0045552183873951435,
-0.026796264573931694,
-0.03272445872426033,
-0.0028471718542277813,
0.009256529621779919,
0.016254650428891182,
0.021162351593375206,
0.002731489483267069,
-0.038606949150562286,
0.02990533784031868,
-0.022963473573327065,
0.016199154779314995,
-0.03704557567834854,
-0.003157160012051463,
0.02066062018275261,
0.020793739706277847,
-0.055824294686317444,
0.0035265616606920958,
-0.018302010372281075,
0.025464318692684174,
0.024227332323789597,
-0.00337077840231359,
-0.020188860595226288,
-0.04928670823574066,
0.0017438012873753905,
-0.019012579694390297,
0.011804457753896713,
0.02457025833427906,
0.05394012853503227,
0.07113264501094818,
-0.022880306467413902,
0.011011634953320026,
0.03404788300395012
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | # Introducing the 🤗 Data Measurements Tool: an Interactive Tool for Looking at Datasets tl;dr: We made a tool you can use online to build, measure, and compare datasets. Click to access the 🤗 Data Measurements Tool here. ----- As developers of a fast-growing unified repository for Machine Learning datasets (Lhoest et al. 2021), the 🤗 Hugging Face team has been working on supporting good practices for dataset documentation (McMillan-Major et al., 2021). While static (if evolving) documentation represents a necessary first step in this direction, getting a good sense of what is actually in a dataset requires well-motivated measurements and the ability to interact with it, dynamically visualizing different aspects of interest. To this end, we introduce an open-source Python library and no-code interface called the 🤗 Data Measurements Tool, using our Dataset and Spaces Hubs paired with the great Streamlit tool. This can be used to help understand, build, curate, and compare datasets. | [
0.01045278925448656,
-0.029013071209192276,
0.015327192842960358,
-0.023294569924473763,
0.017333991825580597,
0.020837057381868362,
-0.002111736685037613,
-0.0006238582427613437,
-0.08501021564006805,
-0.06838995963335037,
-0.051145054399967194,
0.022184336557984352,
0.023376749828457832,
0.029909398406744003,
0.03401082754135132,
-0.04321766272187233,
0.019930025562644005,
-0.0137161361053586,
-0.009073711931705475,
0.053104277700185776,
-0.008749966509640217,
-0.056397344917058945,
-0.0054748631082475185,
-0.016333218663930893,
-0.06834381818771362,
-0.026770614087581635,
0.07178772240877151,
-0.04886189475655556,
-0.030530352145433426,
0.06701310724020004,
-0.12949980795383453,
0.003690976183861494,
-0.022469764575362206,
-0.08624336868524551,
0.01022785622626543,
0.04641958698630333,
-0.10781905055046082,
0.0476219467818737,
0.04921727254986763,
-0.006279073655605316,
0.031389687210321426,
0.01692645065486431,
-0.05262336507439613,
0.018971875309944153,
-0.02765243873000145,
-0.020586173981428146,
-0.14449477195739746,
-0.000966039311606437,
0.0035235839895904064,
0.04661644622683525,
-0.08939243853092194,
0.07092881947755814,
0.0035249546635895967,
0.0067281574010849,
-0.02663741633296013,
-0.013793612830340862,
0.012352695688605309,
-0.08367808163166046,
-0.0001353398838546127,
0.032783493399620056,
0.09802167117595673,
0.006302482448518276,
0.08665265142917633,
-0.01685979776084423,
-0.004285101778805256,
-0.015714382752776146,
0.021005904302001,
0.02876015193760395,
-0.03676379844546318,
-0.041118137538433075,
0.10232541710138321,
0.0704117864370346,
-0.015092974528670311,
-0.0013509008567780256,
-0.021141109988093376,
0.011657903902232647,
-0.03866981342434883,
0.023472318425774574,
0.04157806187868118,
0.015930065885186195,
-0.016842612996697426,
-0.0006141762714833021,
0.01828128658235073,
-0.008286590687930584,
-0.0007302642916329205,
0.0680260956287384,
-0.015679258853197098,
-0.08710669726133347,
-0.05202013626694679,
0.1017516627907753,
-0.0062361424788832664,
-0.10686197876930237,
0.01650150492787361,
0.0007508542039431632,
0.04591061547398567,
-0.00750370230525732,
-0.023680128157138824,
0.08626153320074081,
0.0052665784023702145,
-0.017991667613387108,
-0.04668774828314781,
-0.037810567766427994,
0.04894280806183815,
-0.04663284122943878,
-0.02746804803609848,
-0.03655638545751572,
-0.059950198978185654,
-0.03737825155258179,
-0.012009206227958202,
0.019945060834288597,
-0.015442109666764736,
-0.007888060063123703,
-0.030067432671785355,
0.13688617944717407,
-0.010144507512450218,
0.039766181260347366,
-0.010251649655401707,
0.028973568230867386,
-0.026812732219696045,
0.037446536123752594,
-0.02218146063387394,
0.02663802169263363,
0.040406305342912674,
0.03022579662501812,
-0.0044493721798062325,
0.050609737634658813,
-0.0020954792853444815,
0.008146326057612896,
0.08319304138422012,
-0.029958635568618774,
-0.01570781134068966,
-0.0016352446982637048,
0.05557595565915108,
-0.013253750279545784,
0.006669572554528713,
-0.02501230686903,
-0.011624726466834545,
-0.04158591851592064,
0.06380053609609604,
0.0488562285900116,
0.026549141854047775,
0.05871902406215668,
-0.05233524739742279,
0.03387026861310005,
-0.02766675502061844,
0.05126751959323883,
-0.07191457599401474,
0.003498602658510208,
-0.02615681104362011,
-0.03458663448691368,
-0.08040452748537064,
0.057909708470106125,
0.048833176493644714,
-0.02510436624288559,
-0.040273603051900864,
0.03342510759830475,
-0.07558882236480713,
0.038894884288311005,
-0.04540552943944931,
0.036171283572912216,
-0.03842870518565178,
0.013584580272436142,
-0.07751274108886719,
-0.023754160851240158,
-0.0117843272164464,
-0.013571100309491158,
0.02367071434855461,
-0.02477019652724266,
-0.012654795311391354,
0.05512775108218193,
-0.0150736840441823,
-0.02413255348801613,
0.022442281246185303,
0.011523394845426083,
0.06716971099376678,
0.024910761043429375,
0.06611337512731552,
0.0008764127851463854,
-0.01451048068702221,
0.0629214197397232,
-0.02870754525065422,
0.0605146661400795,
0.030884215608239174,
0.03408202901482582,
0.08758767694234848,
-0.020134413614869118,
0.04532446339726448,
-0.031989410519599915,
0.053241994231939316,
-0.020781483501195908,
-0.05594503879547119,
-0.05480170249938965,
0.06456410139799118,
-0.04235241934657097,
0.02968253381550312,
-0.047000035643577576,
-0.01670379377901554,
0.10754622519016266,
0.059610720723867416,
0.013909591361880302,
0.00498121278360486,
-0.018491320312023163,
0.06913166493177414,
-0.042525485157966614,
0.026279481127858162,
0.019759438931941986,
0.0021141492761671543,
-0.04260062426328659,
-0.02192746475338936,
-0.04271478205919266,
0.021932683885097504,
-0.10013476759195328,
0.06512059271335602,
0.010886849835515022,
-0.021215690299868584,
-0.04753084108233452,
-0.046017277985811234,
0.024293553084135056,
0.01604367606341839,
0.03227377310395241,
0.16908897459506989,
-0.03556812182068825,
0.05237502604722977,
-0.0334966666996479,
-0.022920913994312286,
0.046425122767686844,
0.1170760914683342,
0.11964532732963562,
0.02848474122583866,
-0.10610956698656082,
-0.03064439631998539,
-0.038720645010471344,
-0.01583944261074066,
-0.004971727728843689,
-0.04134303331375122,
-0.04504142701625824,
0.061589695513248444,
-0.06743616610765457,
0.07598350942134857,
-0.044061992317438126,
-0.00927062053233385,
-0.027059253305196762,
0.05360871180891991,
0.01595122180879116,
0.015342201106250286,
-0.010598213411867619,
0.055085282772779465,
-0.0038795401342213154,
-0.02630033902823925,
0.0025674644857645035,
-0.017759455367922783,
0.048272985965013504,
0.020823780447244644,
0.004597376566380262,
-0.056326836347579956,
0.007134052459150553,
0.008863058872520924,
-0.0011141860159114003,
-0.014387920498847961,
0.07831761986017227,
0.012649595737457275,
-0.0038653952069580555,
-0.04475035518407822,
-0.0656675323843956,
-0.011803528293967247,
-0.06711016595363617,
-0.014648227952420712,
-0.015061536803841591,
0.0439135767519474,
-0.000648713787086308,
0.038951944559812546,
0.007449199445545673,
0.011050986126065254,
-0.023619551211595535,
0.02292882837355137,
0.03509800136089325,
0.02481185458600521,
-0.012730886228382587,
-0.026941081508994102,
-0.04876576364040375,
-0.025331582874059677,
-0.02693827450275421,
0.06122715026140213,
0.01309607457369566,
0.038163091987371445,
0.0025422759354114532,
-0.019822224974632263,
0.03778459504246712,
-0.02451230026781559,
0.028125349432229996,
0.030310481786727905,
0.04361245036125183,
0.010237403213977814,
-0.020768210291862488,
0.0020876494236290455,
0.003367466852068901,
0.01838100329041481,
-0.030446795746684074,
0.004491441883146763,
0.09302165359258652,
-0.0020854941103607416,
0.013985659927129745,
-0.02478870190680027,
0.01213809009641409,
-0.012734192423522472,
0.014074942097067833,
-0.0022952351719141006,
0.006654645781964064,
-0.08295655250549316,
0.03595808148384094,
-0.012965992093086243,
-0.008801945485174656,
-0.051302459090948105,
-0.040045365691185,
0.07894816994667053,
-0.02042401395738125,
-0.009316705167293549,
0.053663257509469986,
0.013516826555132866,
-0.03266289830207825,
0.020647576078772545,
0.04061507061123848,
0.00695314584299922,
0.012735688127577305,
-0.04645810276269913,
-0.010955448262393475,
0.007249897811561823,
0.00709035899490118,
-0.03844166174530983,
0.02791527286171913,
0.041201401501894,
-0.013236913830041885,
-0.023775465786457062,
-0.007249858696013689,
0.04089623689651489,
-0.017955239862203598,
0.015559048391878605,
-0.02429291605949402,
-0.01674094796180725,
-0.03648446872830391,
-0.046703752130270004,
0.01502580288797617,
-0.024975653737783432,
-0.006435406394302845,
0.03130759298801422,
-0.017878234386444092,
0.019527703523635864,
0.01661701500415802,
0.028632374480366707,
0.009020447731018066,
0.012941094115376472,
-0.021426673978567123,
0.023877495899796486,
-0.03838450089097023,
-0.021019333973526955,
0.008601137436926365,
-0.03411516919732094,
-0.050013184547424316,
0.016268132254481316,
0.009037010371685028,
-0.0020035530906170607,
0.03907567635178566,
-0.016636453568935394,
0.012382770888507366,
-0.004029343836009502,
0.011483538895845413,
-0.027853626757860184,
-0.03399102762341499,
-0.08261401951313019,
0.00010839378228411078,
-0.020895574241876602,
-0.046068087220191956,
-0.025552939623594284,
-0.036772720515728,
-0.007134691346436739,
-0.010503198951482773,
-0.03530747443437576,
0.05203666538000107,
-0.016226913779973984,
0.024638421833515167,
-0.013376508839428425,
0.004929658491164446,
-0.01768365688621998,
-0.010876769199967384,
0.0069314525462687016,
-0.0429040901362896,
0.044120125472545624,
0.07521839439868927,
-0.02001062035560608,
-0.03973691165447235,
-0.024329209700226784,
0.007727517746388912,
0.030974986031651497,
-0.007471295073628426,
0.017097434028983116,
-0.05673561990261078,
0.034005459398031235,
0.01962321251630783,
0.031222540885210037,
-0.011355133727192879,
0.008286289870738983,
0.004132956266403198,
-0.003369760699570179,
-0.021707303822040558,
0.034635405987501144,
0.024328047409653664,
0.013533759862184525,
-0.0027731237933039665,
0.07675329595804214,
-0.05881821736693382,
0.012750220485031605,
0.012916960753500462,
0.01538494136184454,
0.0351313091814518,
-0.04319102317094803,
-0.0008787356200627983,
0.02248529903590679,
0.009666887111961842,
-0.017962759360671043,
-0.02399543486535549,
-0.020297890529036522,
-0.022018197923898697,
0.022428689524531364,
0.047154054045677185,
0.004555984865874052,
-0.016966044902801514,
-0.001956525258719921,
0.03225238621234894,
-0.005604060832411051,
0.006348937749862671,
-0.00014339722110889852,
-0.008947710506618023,
0.029321344569325447,
-0.03003770112991333,
0.02229728363454342,
-0.015494223684072495,
0.0068780058063566685,
-0.0487210713326931,
-0.009529451839625835,
-0.024613024666905403,
0.030064702033996582,
-0.021887265145778656,
-0.008616328239440918,
0.009568543173372746,
-0.04239639267325401,
0.017184516414999962,
-0.025825249031186104,
-0.009767490439116955,
-0.0013017476303502917,
0.00570322573184967,
0.01484203152358532,
-0.026825567707419395,
-0.024582816287875175,
-0.009698910638689995,
-0.03185122832655907,
-0.0034908156376332045,
-0.050639718770980835,
-0.023686736822128296,
0.021983224898576736,
-0.01905924826860428,
-0.021081838756799698,
0.003791396040469408,
0.011725923977792263,
-0.029951775446534157,
-0.007850319147109985,
0.02045348845422268,
0.010892977006733418,
0.034037843346595764,
-0.009710755199193954,
-0.02441972866654396,
0.010690571740269661,
-0.004294567741453648,
-0.02050165645778179,
-0.021507712081074715,
0.031155776232481003,
-0.015903852880001068,
0.03125905245542526,
0.011854906566441059,
-0.024524729698896408,
0.022072691470384598,
-0.0016959680942818522,
0.011227864772081375,
-0.021001223474740982,
0.06580063700675964,
0.03547675162553787,
0.06532752513885498,
-0.03193634748458862,
0.004692982882261276,
-0.06215481460094452,
-0.01931670308113098,
0.02112617716193199,
-0.017756031826138496,
0.0017933909548446536,
0.03608042746782303,
0.016440536826848984,
0.07595542073249817,
0.03500454127788544,
-0.007811225485056639,
-0.04022897407412529,
-0.03903600201010704,
-0.029848460108041763,
-0.05582350119948387,
0.020133603364229202,
-0.04071135073900223,
0.03698967024683952,
-0.004847079049795866,
0.001583352219313383,
-0.03741530701518059,
0.006779407151043415,
0.02602013759315014,
0.001317726681008935,
-0.011498752981424332,
0.014469202607870102,
0.0011016989592462778,
-0.02300305664539337,
-0.02579236589372158,
0.01179511845111847,
-0.0663263276219368,
-0.008879276923835278,
-0.024845076724886894,
0.009819732047617435,
-0.02274458482861519,
0.0009969795355573297,
-0.009490405209362507,
0.03450656682252884,
-0.01803448237478733,
0.0147512536495924,
-0.0036604246124625206,
-0.037930238991975784,
0.010896731168031693,
-0.03964897245168686,
-0.007525310385972261,
0.022668197751045227,
-0.01944371871650219,
-0.027989163994789124,
0.03748196363449097,
0.027712125331163406,
0.023155467584729195,
0.036840617656707764,
0.021595612168312073,
0.029994474723935127,
0.04667416960000992,
0.011153784580528736,
0.05471497401595116,
-0.016415316611528397,
0.027603572234511375,
0.03678305074572563,
-0.03238125145435333,
-0.026682015508413315,
-0.026579108089208603,
0.01640135608613491,
0.00627203518524766,
-0.02847238816320896,
0.02870400995016098,
0.029817145317792892,
-0.0144207077100873,
0.008527874946594238,
0.015419777482748032,
-0.042621977627277374,
0.011715319938957691,
-0.03142419829964638,
0.038936130702495575,
0.10090062767267227,
0.029671423137187958,
-0.001340478309430182,
-0.014741511084139347,
-0.03471849486231804,
-0.0040435041300952435,
-0.0028392034582793713,
-0.0991569384932518,
0.02487170137465,
0.023621637374162674,
-0.01880580373108387,
-0.010583718307316303,
-0.0007137126522138715,
0.0033163405023515224,
-0.016266051679849625,
-0.015708496794104576,
-0.007418083027005196,
0.04015546292066574,
-0.0010382159380242229,
-0.0021331130992621183,
-0.00021869091142434627,
-0.04800616577267647,
0.016826346516609192,
0.07827243208885193,
-0.009692283347249031,
-0.005987309385091066,
0.03197404742240906,
0.06167574226856232,
0.044972602277994156,
0.06410331279039383,
0.01975221000611782,
0.045819830149412155,
0.0657217726111412,
0.0055486648343503475,
0.04433320835232735,
0.025831682607531548,
-0.03170113265514374,
-0.0051038023084402084,
-0.03963156417012215,
-0.039690133184194565,
0.006374652963131666,
0.0042853583581745625,
0.023378003388643265,
-0.008114339783787727,
-0.0035860941279679537,
-0.02257818914949894,
0.04808579012751579,
-0.029765458777546883,
0.01505211740732193,
-0.004515074659138918,
0.0009967806981876493,
0.043199554085731506,
-0.009584675543010235,
0.04595170170068741,
0.00021590397227555513,
0.017794175073504448,
-0.0036939880810678005,
0.019084950909018517,
0.013859054073691368,
0.026745866984128952,
0.016373498365283012,
-0.0016821802128106356,
-0.004782809875905514,
-0.02780853398144245,
-0.010059915482997894,
0.028657620772719383,
-0.02235144004225731,
-0.0019693721551448107,
-0.017275484278798103,
0.01907460391521454,
-0.016535503789782524,
-0.012799305841326714,
-0.02376696653664112,
0.040131907910108566,
0.02919982559978962,
-0.00864772591739893,
0.00850996095687151,
0.032501544803380966,
-0.00917752180248499,
-0.026950756087899208,
-0.042549215257167816,
-0.007996850647032261,
-0.009200134314596653,
0.01790841668844223,
-0.015576370991766453,
0.013440530747175217,
-0.027881275862455368,
0.006443046499043703,
0.0014031586470082402,
0.026062024757266045,
-0.006623454857617617,
-0.0478627048432827,
-0.03439480811357498,
0.03727634996175766,
-0.022059746086597443,
-0.0021560643799602985,
0.018180832266807556,
0.028049809858202934,
-0.04058939963579178,
-0.002385516418144107,
-0.01965435966849327,
-0.00016275326197501272,
0.019531911239027977,
-0.015122082084417343,
0.0316091924905777,
-0.020485762506723404,
0.020039789378643036,
0.01275300607085228,
0.03130811080336571,
-0.02060309797525406,
-0.030927257612347603,
0.007638920564204454,
0.02362954616546631,
-0.03849256783723831,
0.033726051449775696,
0.019553905352950096,
0.02173839695751667,
0.03522253409028053,
-0.013666704297065735,
-0.0020445536356419325,
0.005661570001393557,
0.014176862314343452,
0.02208050526678562,
-0.0048929741606116295,
-0.04896042123436928,
0.016794856637716293,
0.05079500749707222,
0.04126105085015297,
0.03650064766407013,
-0.02286595106124878,
0.03603160381317139,
0.03792610391974449,
-0.019023995846509933,
0.07380899041891098,
-0.0012098365696147084,
0.0062412372790277,
-0.030563898384571075,
-0.030415277928113937,
-0.009764367714524269,
0.01459577213972807,
-0.016926610842347145,
-0.009426270611584187,
-0.024900533258914948,
-0.030682804062962532,
0.02062380686402321,
-0.027303040027618408,
-0.040457360446453094,
0.009499081410467625,
0.018401313573122025,
-0.015673229470849037,
0.02790631167590618,
0.027497276663780212,
-0.029788807034492493,
0.02639523148536682,
-0.006459763739258051,
0.011871240101754665,
-0.005167989060282707,
-0.010907412506639957,
-0.013781437650322914,
0.0012478013522922993,
0.01929044909775257,
-0.012284775264561176,
-0.018290992826223373,
0.03941062465310097,
0.007181184366345406,
0.021226080134510994,
-0.03110583685338497,
0.02122536487877369,
0.037097446620464325,
0.023348983377218246,
0.040493376553058624,
-0.048267703503370285,
-0.005081207025796175,
0.020395027473568916,
-0.0007614849018864334,
-0.048064593225717545,
0.024777201935648918,
-0.0034780732821673155,
-0.014063079841434956,
-0.012601993046700954,
-0.029257679358124733,
0.03545695170760155,
0.016064971685409546,
0.024643998593091965,
0.0013464988442137837,
-0.005772972013801336,
-0.04900253191590309,
-0.028348514810204506,
-0.01721413992345333,
0.04261599853634834,
0.004542328882962465,
-0.028376292437314987,
-0.012208150699734688,
-0.0017967511666938663,
-0.028093911707401276,
0.01966305822134018,
0.030127940699458122,
-0.006700559053570032,
0.001193067990243435,
0.0023321830667555332,
-0.015725860372185707,
0.028529688715934753,
0.029359018430113792,
-0.03555474802851677,
-0.04425882548093796,
-0.03533510863780975
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | What is the 🤗 Data Measurements Tool? The Data Measurements Tool (DMT) is an interactive interface and open-source library that lets dataset creators and users automatically calculate metrics that are meaningful and useful for responsible data development. | [
0.050536591559648514,
-0.00038464710814878345,
0.05772099643945694,
-0.04833650216460228,
0.07187555730342865,
-0.002053462667390704,
-0.019594306126236916,
0.010281205177307129,
-0.03621219843626022,
-0.04128338396549225,
-0.04292891174554825,
0.009930524043738842,
0.00445979880169034,
-0.031313199549913406,
0.02814873680472374,
0.014420561492443085,
0.025141030550003052,
-0.03530185669660568,
-0.0015867332695052028,
-0.014651949517428875,
-0.0284283384680748,
-0.02323414944112301,
0.022095099091529846,
-0.035953544080257416,
-0.0009016525582410395,
0.019401373341679573,
0.029116803780198097,
-0.03614838793873787,
-0.0827171579003334,
0.09766709804534912,
-0.06992478668689728,
0.01944582909345627,
-0.046400003135204315,
-0.07716086506843567,
-0.002760461997240782,
0.07435543090105057,
-0.07348187267780304,
0.0641416609287262,
0.01908820867538452,
-0.03651686757802963,
0.03340702876448631,
0.015190635807812214,
-0.04466399550437927,
0.03173738718032837,
-0.06082640215754509,
0.025488628074526787,
-0.14097756147384644,
0.005715522915124893,
0.010484729893505573,
0.068984255194664,
-0.07758215069770813,
0.1078149825334549,
-0.019092444330453873,
0.05093633010983467,
-0.004075768869370222,
0.04295723885297775,
0.03391256928443909,
0.0008020659442991018,
-0.02614290453493595,
-0.0036494957748800516,
0.10187004506587982,
-0.04758991301059723,
0.03522434085607529,
-0.06236843764781952,
0.00016333628445863724,
-0.04030918702483177,
0.03549976646900177,
-0.01953674480319023,
-0.06317492574453354,
-0.07028181105852127,
0.03888794407248497,
0.04353423789143562,
-0.07796378433704376,
0.0075362916104495525,
-0.05498848482966423,
-0.00027792772743850946,
-0.002355278003960848,
-0.00791720487177372,
0.02369689755141735,
0.07071726024150848,
-0.020552493631839752,
0.038585249334573746,
0.0865129828453064,
-0.0389796681702137,
-0.03355417773127556,
-0.026747791096568108,
-0.0003524129861034453,
-0.07910627126693726,
-0.04930075630545616,
0.09141036868095398,
0.06951016187667847,
-0.14637310802936554,
0.02617272175848484,
-0.057262126356363297,
0.0051321787759661674,
-0.08249910175800323,
0.04794556647539139,
0.03354653716087341,
-0.019251085817813873,
0.014023132622241974,
0.04143473133444786,
0.03519299253821373,
0.09107605367898941,
0.029888158664107323,
-0.029271090403199196,
-0.027839135378599167,
-0.046146001666784286,
-0.055860310792922974,
-0.08331073075532913,
0.03342295065522194,
-0.037945766001939774,
0.009258038364350796,
0.015602609142661095,
0.0876854732632637,
0.04005799815058708,
0.07652771472930908,
-0.016899622976779938,
0.033246252685785294,
-0.017118876799941063,
0.05278891697525978,
0.010690778493881226,
-0.0012030404759570956,
0.025553852319717407,
-0.00007056602771626785,
-0.03250491991639137,
0.03860319033265114,
0.09555558115243912,
0.007683036848902702,
0.11511470377445221,
0.023869529366493225,
0.018737327307462692,
0.015882087871432304,
0.05338221788406372,
-0.005194369237869978,
-0.03926292806863785,
-0.08783024549484253,
0.027213385328650475,
-0.014335761778056622,
0.04317506030201912,
0.039446745067834854,
0.029664140194654465,
0.024627743288874626,
-0.06579208374023438,
0.03718734160065651,
-0.04172791168093681,
0.005529733374714851,
-0.03623092174530029,
-0.0053336904384195805,
0.012634988874197006,
0.039885491132736206,
-0.028498537838459015,
0.07872307300567627,
0.03592527285218239,
-0.04967304319143295,
0.0216341745108366,
-0.016730938106775284,
-0.05578374117612839,
0.010288553312420845,
-0.07981237769126892,
0.04679124057292938,
-0.054069314152002335,
0.006869467440992594,
-0.03903330862522125,
-0.03582306578755379,
-0.005228422582149506,
-0.03308556601405144,
0.014250868000090122,
0.01834174245595932,
0.011403912678360939,
0.0017193460371345282,
-0.04088074713945389,
-0.08655674755573273,
0.0018111938843503594,
0.0038522151298820972,
0.07265455275774002,
-0.013541872613132,
0.05168986693024635,
0.03075939044356346,
0.014755448326468468,
0.07901507616043091,
-0.041328538209199905,
0.010282262228429317,
-0.04352835193276405,
-0.023450812324881554,
0.029112935066223145,
-0.049934033304452896,
0.0865836814045906,
-0.008297525346279144,
0.06837143748998642,
-0.001498946687206626,
-0.0549774169921875,
-0.059650272130966187,
0.05056927353143692,
-0.026277372613549232,
0.01776151731610298,
-0.04911094158887863,
-0.02806580625474453,
0.049806512892246246,
0.06813826411962509,
0.0445295050740242,
-0.04285212606191635,
-0.03360070660710335,
0.03753259405493736,
-0.08052213490009308,
0.03754705563187599,
0.0111355260014534,
0.08177037537097931,
-0.014927182346582413,
-0.027162792161107063,
-0.030255140736699104,
-0.03798139467835426,
-0.09226982295513153,
0.06603960692882538,
0.011129988357424736,
-0.05953162536025047,
0.022085389122366905,
-0.04568801075220108,
-0.034669991582632065,
0.018528610467910767,
-0.006051479373127222,
0.11810563504695892,
0.02132001332938671,
0.010646302253007889,
0.003243056358769536,
-0.07299172133207321,
0.07478667050600052,
0.10057391971349716,
0.015064703300595284,
0.05611591786146164,
-0.054507698863744736,
-0.003775176126509905,
-0.031580083072185516,
0.04350652918219566,
0.05434548109769821,
-0.016802873462438583,
0.013946078717708588,
0.07983893901109695,
-0.032299067825078964,
0.10543248802423477,
-0.02049199864268303,
0.05208073928952217,
-0.010867239907383919,
-0.007141565438359976,
0.0012400987325236201,
-0.004073393996804953,
0.0212344229221344,
0.03134678676724434,
-0.0658554807305336,
-0.016094015911221504,
0.048097264021635056,
0.07033172249794006,
-0.014810684137046337,
0.009760539047420025,
-0.03048309125006199,
-0.003615360939875245,
0.010714102536439896,
0.0014733443967998028,
-0.003886759513989091,
-0.0025681359693408012,
0.026651911437511444,
-0.007141944952309132,
-0.01678875833749771,
0.004674080293625593,
-0.044510919600725174,
0.022544363513588905,
-0.054298534989356995,
-0.00706151919439435,
0.0381416492164135,
0.011772997677326202,
0.0034979372285306454,
0.014709562063217163,
0.011850622482597828,
-0.021442459896206856,
-0.001651686616241932,
0.006075315177440643,
-0.01355806179344654,
0.0146460747346282,
-0.042480651289224625,
-0.034574955701828,
-0.029743608087301254,
0.011243817396461964,
-0.023329095914959908,
0.05856991559267044,
0.021026164293289185,
0.038508765399456024,
0.002563300309702754,
-0.004679773468524218,
0.018125319853425026,
0.0016545819817110896,
-0.012068046256899834,
-0.019175931811332703,
0.02129928022623062,
-0.0027380187530070543,
-0.00887243077158928,
0.018975259736180305,
0.008038118481636047,
0.037025291472673416,
-0.023258518427610397,
0.005877748131752014,
0.04328262433409691,
0.07135488837957382,
-0.009928667917847633,
-0.0009822420543059707,
0.003911285661160946,
-0.029382217675447464,
0.02937423624098301,
-0.007757346611469984,
0.002374498173594475,
-0.09483081847429276,
0.030694281682372093,
-0.0008477120427414775,
0.002371489303186536,
-0.0367945097386837,
-0.00882826279848814,
0.026879366487264633,
-0.011891128495335579,
0.05133859068155289,
0.015748601406812668,
0.005543879233300686,
-0.008611233904957771,
0.02496820129454136,
0.02616666816174984,
0.03241301327943802,
-0.0064324624836444855,
-0.04535803198814392,
-0.020423585548996925,
-0.014504676684737206,
0.029078515246510506,
-0.03277699276804924,
0.05005873367190361,
0.02418714575469494,
-0.005868701264262199,
-0.0014498339733108878,
0.04169287532567978,
0.011815756559371948,
-0.014744694344699383,
-0.004032299388200045,
-0.013665675185620785,
-0.025740401819348335,
0.017840499058365822,
-0.06826895475387573,
-0.013863464817404747,
0.052178092300891876,
0.015331988222897053,
0.028482934460043907,
-0.0023804749362170696,
0.033244770020246506,
-0.00989217683672905,
0.006016573868691921,
0.015947997570037842,
0.0007589777233079076,
-0.04358454421162605,
0.051251206547021866,
-0.030575823038816452,
0.0016808880027383566,
0.029384959489107132,
-0.009210377000272274,
-0.05541533976793289,
-0.014986978843808174,
-0.06656584143638611,
-0.002902993466705084,
0.01874414086341858,
-0.0427854061126709,
-0.005228183697909117,
-0.0035974292550235987,
0.020307544618844986,
-0.009719841182231903,
0.05853728950023651,
-0.02447502501308918,
0.000511704187374562,
-0.023275163024663925,
0.007881944999098778,
-0.0659288540482521,
0.002399027580395341,
0.011825335212051868,
0.017404962331056595,
0.000686755171045661,
0.05332133173942566,
0.005901663564145565,
0.050513241440057755,
-0.020734736695885658,
0.014050536789000034,
-0.016049381345510483,
0.010989248752593994,
-0.019360091537237167,
-0.0046798186376690865,
0.046884190291166306,
0.042785096913576126,
0.002461662283167243,
0.007097161374986172,
0.01141241192817688,
-0.006047290284186602,
0.024106720462441444,
-0.02135978266596794,
-0.017541026696562767,
-0.003571911947801709,
0.018184401094913483,
0.01255938969552517,
0.03633279725909233,
-0.04521583020687103,
0.021519022062420845,
-0.003610763931646943,
-0.012226038612425327,
0.00961342453956604,
0.03137967735528946,
0.00766028044745326,
-0.01449213270097971,
-0.0013643550919368863,
0.08116719126701355,
-0.0472051240503788,
0.007408407982438803,
-0.01399737037718296,
-0.0018029004568234086,
-0.027633074671030045,
-0.04647842049598694,
0.009318273514509201,
0.04392855614423752,
-0.005827299319207668,
-0.024709440767765045,
-0.01618553325533867,
-0.022407250478863716,
-0.027301406487822533,
0.014183933846652508,
0.013883153907954693,
0.011141404509544373,
-0.04454507678747177,
0.0038133247289806604,
0.06086382269859314,
0.004508976358920336,
-0.03265056014060974,
0.005096226930618286,
0.014049037359654903,
0.013558543287217617,
-0.027338897809386253,
0.018100162968039513,
-0.009827226400375366,
-0.0031953153666108847,
-0.012865574099123478,
-0.011536779813468456,
-0.007459613494575024,
0.02070244587957859,
0.00864091794937849,
0.001201791106723249,
-0.010406392626464367,
-0.05527416989207268,
0.04608967900276184,
-0.030355319380760193,
-0.026307471096515656,
0.04440956562757492,
-0.01969653181731701,
0.03399980068206787,
-0.010361501015722752,
0.04947514459490776,
0.00046912176185287535,
-0.04814572259783745,
-0.024534307420253754,
-0.02137482725083828,
-0.0003966946096625179,
0.014602570794522762,
-0.0013265182496979833,
-0.02904079481959343,
-0.027553461492061615,
0.014547654427587986,
-0.052894435822963715,
0.036223795264959335,
-0.0046291290782392025,
0.010161863639950752,
0.058033883571624756,
-0.010092094540596008,
-0.07106787711381912,
-0.004135278053581715,
-0.01986575499176979,
-0.019025366753339767,
-0.03328299522399902,
0.05425041541457176,
0.021073728799819946,
0.035992082208395004,
0.03128381818532944,
0.008765241131186485,
0.0060001579113304615,
0.010570354759693146,
-0.0079993000254035,
-0.007704298477619886,
0.0217234306037426,
0.0074990433640778065,
0.0408412367105484,
-0.009232315234839916,
-0.012443737126886845,
-0.07818061113357544,
-0.027878515422344208,
0.012162677943706512,
0.016787730157375336,
-0.009885750710964203,
0.012010903097689152,
-0.001991208642721176,
0.04862761124968529,
0.03862638771533966,
0.03485045209527016,
-0.009492238983511925,
-0.003865831531584263,
-0.024315036833286285,
-0.032739799469709396,
0.00637034373357892,
-0.0405941978096962,
0.02082689106464386,
0.02818811498582363,
0.0011858608340844512,
-0.03568192571401596,
0.04360586032271385,
0.014238957315683365,
0.011606344021856785,
0.017070423811674118,
-0.0055340854451060295,
-0.0007677495595999062,
-0.01946817710995674,
-0.002741091186180711,
-0.01733742095530033,
-0.03266425430774689,
-0.004967164248228073,
-0.0005352034932002425,
0.018665723502635956,
-0.046501610428094864,
-0.01520894281566143,
-0.01947149634361267,
0.03261669725179672,
-0.033576931804418564,
0.024957239627838135,
-0.029769260436296463,
-0.0059124985709786415,
0.051803432404994965,
-0.002778656780719757,
-0.0029390500858426094,
0.04598596692085266,
-0.0018734678160399199,
-0.0021312108729034662,
0.014860018156468868,
-0.008197154849767685,
0.05031983554363251,
0.03452621027827263,
0.038099851459264755,
-0.0034371663350611925,
-0.0012238452909514308,
0.025194810703396797,
0.037651754915714264,
-0.021563682705163956,
0.0736309364438057,
0.02501039020717144,
-0.028141923248767853,
-0.05195628106594086,
-0.03486092761158943,
-0.007620138581842184,
-0.002924073953181505,
-0.03928434103727341,
-0.005031315144151449,
0.06458453834056854,
-0.031678762286901474,
0.015168311074376106,
0.03275163844227791,
-0.035776399075984955,
0.012418756261467934,
0.009606440551578999,
0.03536564111709595,
0.07639066874980927,
0.0010481072822585702,
-0.0024747729767113924,
-0.016581421718001366,
0.011110907420516014,
-0.03812578320503235,
0.009018631651997566,
-0.06064658984541893,
0.009773625060915947,
0.03360242024064064,
-0.043875351548194885,
0.01595471240580082,
-0.005779539234936237,
0.019106850028038025,
0.00724806310608983,
-0.012220610864460468,
-0.026346564292907715,
0.0457024872303009,
-0.007870269007980824,
-0.002254138933494687,
0.009263157844543457,
-0.045470211654901505,
-0.007978728972375393,
0.06126217544078827,
-0.036639902740716934,
0.038774408400058746,
0.012872496619820595,
0.06751308590173721,
0.059628911316394806,
0.04938735067844391,
-0.028363239020109177,
0.008912406861782074,
0.02565968781709671,
0.014351940713822842,
0.001571505912579596,
-0.007898330688476562,
0.005603792145848274,
-0.02823782153427601,
-0.013624978251755238,
-0.011989210732281208,
-0.020623518154025078,
-0.02311970479786396,
-0.00573001941666007,
-0.025386281311511993,
-0.0037076103035360575,
-0.013538680039346218,
0.05362166464328766,
-0.012303498573601246,
-0.00004486906254896894,
-0.00993073545396328,
0.004652479663491249,
0.01735801436007023,
0.010793514549732208,
0.0021261232905089855,
-0.023013150319457054,
-0.005875085014849901,
0.0219695083796978,
0.04665654897689819,
-0.03671848028898239,
-0.0012990128016099334,
0.010048847645521164,
-0.019910594448447227,
0.004715990740805864,
-0.012437447905540466,
0.02378772757947445,
0.037528302520513535,
0.01853426732122898,
-0.04560479894280434,
0.006761316675692797,
0.03994688391685486,
-0.02377087064087391,
-0.03223781660199165,
-0.007063898723572493,
0.01956663653254509,
0.03784312307834625,
-0.03724333271384239,
0.0004624277644325048,
-0.00013041651982348412,
0.017298400402069092,
0.015174738131463528,
-0.05952964350581169,
-0.024748189374804497,
-0.0036385187413543463,
0.01717533729970455,
-0.03768221661448479,
-0.025272497907280922,
-0.035235293209552765,
0.05127953365445137,
-0.009816107340157032,
-0.01487719640135765,
0.024787506088614464,
-0.019218675792217255,
-0.04750686138868332,
-0.026419149711728096,
-0.031106028705835342,
-0.007115320768207312,
0.023280614987015724,
0.049511559307575226,
-0.028211873024702072,
0.029110172763466835,
-0.04240179806947708,
0.011760728433728218,
0.002986140316352248,
0.007613888010382652,
0.06297705322504044,
-0.0041067516431212425,
0.024787984788417816,
0.013458386063575745,
0.018679732456803322,
-0.03236749395728111,
-0.015074087306857109,
0.006681432016193867,
-0.009332628920674324,
-0.03445110097527504,
0.01101742498576641,
0.02705223299562931,
-0.0009182207868434489,
0.014467230066657066,
0.006538495421409607,
0.027684587985277176,
-0.027081016451120377,
-0.012239559553563595,
0.049605246633291245,
-0.045891787856817245,
-0.053297363221645355,
0.0038027812261134386,
-0.00596608966588974,
0.0048432969488203526,
0.03645377233624458,
-0.03404108062386513,
0.06888940185308456,
0.003331333165988326,
-0.03385407105088234,
0.06375130265951157,
-0.0013253733050078154,
0.03764116019010544,
-0.01851384900510311,
-0.03217209503054619,
-0.04406815767288208,
-0.008176600560545921,
-0.012450764887034893,
-0.026279214769601822,
-0.01442340761423111,
0.010645337402820587,
0.006846984848380089,
-0.01976475864648819,
-0.04795578122138977,
0.014857377856969833,
0.04004080221056938,
-0.01669403724372387,
0.007727953139692545,
0.004867312964051962,
-0.024030176922678947,
-0.008349992334842682,
0.025022312998771667,
0.008172682486474514,
-0.004216130822896957,
-0.013562028296291828,
0.004243131726980209,
-0.01898111402988434,
0.06290599703788757,
-0.05242303013801575,
-0.06056569889187813,
0.02687021717429161,
0.00389856263063848,
0.034434325993061066,
-0.016835449263453484,
0.010521206073462963,
0.01520982850342989,
0.02504407986998558,
0.01796271651983261,
-0.0406118705868721,
0.015782572329044342,
-0.0345432423055172,
-0.0474495105445385,
-0.06509289145469666,
0.04611901938915253,
0.05221544951200485,
-0.018016556277871132,
0.0018181817140430212,
-0.03337914124131203,
0.019787296652793884,
-0.02778857760131359,
0.004319027066230774,
0.0020243139006197453,
-0.02644600346684456,
-0.01952029950916767,
-0.007732571568340063,
-0.020699461922049522,
0.00975780002772808,
-0.05828501656651497,
-0.04501119256019592,
-0.00497848866507411,
-0.023318011313676834,
0.01734711416065693,
0.012491044588387012,
0.02167336456477642,
0.0031992194708436728,
0.002077201148495078,
0.00798559095710516,
-0.03874347358942032,
0.013854477554559708,
0.032228536903858185,
-0.0031715144868940115,
-0.003925536759197712,
-0.025668766349554062
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | What can I learn using the 🤗 Data Measurements Tool? | [
0.05110270529985428,
-0.022412456572055817,
0.09674758464097977,
-0.0140163479372859,
0.12613168358802795,
0.03683459013700485,
0.026768548414111137,
0.057438887655735016,
-0.06933256983757019,
-0.11125738173723221,
-0.017994269728660583,
0.01397787220776081,
0.034164320677518845,
-0.03230026364326477,
0.0035261353477835655,
0.01091256644576788,
0.045067932456731796,
-0.0425407811999321,
0.0094395000487566,
0.02679649367928505,
-0.016244377940893173,
-0.03759203478693962,
0.035527970641851425,
0.005402874201536179,
-0.0026644498575478792,
-0.01844189129769802,
0.02657492831349373,
0.0023572181817144156,
-0.06200944259762764,
0.03931634500622749,
-0.08407709002494812,
0.012281212024390697,
0.012990199960768223,
-0.06480423361063004,
0.0032373876310884953,
0.026882754638791084,
-0.09608784317970276,
0.021775733679533005,
0.019980084151029587,
-0.030722737312316895,
0.031242938712239265,
-0.03962535783648491,
0.0077199311926960945,
0.05129570886492729,
-0.023676913231611252,
-0.019754713401198387,
-0.25975877046585083,
0.07620032131671906,
-0.026545614004135132,
0.029058996587991714,
-0.05464146286249161,
0.06385097652673721,
-0.012368821538984776,
0.030221225693821907,
0.025742288678884506,
-0.0009005796164274216,
0.04616215080022812,
-0.02057480439543724,
-0.021311966702342033,
-0.0637412890791893,
0.10481414943933487,
-0.003469965886324644,
0.022641925141215324,
-0.0253858994692564,
0.004822762683033943,
0.023773547261953354,
0.006668530870229006,
0.04621318727731705,
-0.04903150349855423,
-0.04473840072751045,
0.05830322578549385,
-0.006547055672854185,
-0.032673876732587814,
-0.028373943641781807,
-0.017519069835543633,
-0.0463605560362339,
-0.03482290729880333,
0.044281210750341415,
0.07181491702795029,
0.040050312876701355,
-0.006413400638848543,
-0.011412842199206352,
0.06899155676364899,
0.0558001734316349,
-0.021064095199108124,
-0.021984999999403954,
0.04088703915476799,
-0.015442993491888046,
-0.018588406965136528,
0.05647525563836098,
-0.0340656042098999,
-0.1206531673669815,
0.040614161640405655,
0.015388337895274162,
0.0036368186119943857,
-0.07183700054883957,
0.04070122539997101,
0.022167110815644264,
0.03997635096311569,
0.015890508890151978,
-0.016503678634762764,
0.025283588096499443,
0.062479011714458466,
-0.002363110426813364,
-0.02883979119360447,
-0.055703382939100266,
-0.020069105550646782,
-0.08603941649198532,
-0.0449049286544323,
0.020489152520895004,
-0.05541986599564552,
0.03334028646349907,
0.03030853532254696,
0.05150602385401726,
-0.04144878685474396,
0.05521953105926514,
0.021255789324641228,
0.015564513392746449,
0.011396091431379318,
0.035185687243938446,
-0.012155004777014256,
0.10141272842884064,
0.045258160680532455,
0.023586859926581383,
0.009591499343514442,
0.005151606630533934,
0.03689058497548103,
0.017488468438386917,
-0.028377700597047806,
-0.04270358383655548,
0.01141334231942892,
-0.021496906876564026,
0.05398764833807945,
-0.005687666591256857,
-0.03695821762084961,
-0.06628109514713287,
-0.031153041869401932,
0.01908145844936371,
0.026662498712539673,
0.013816691003739834,
-0.02707524411380291,
0.036965955048799515,
-0.02252919040620327,
0.06399966776371002,
-0.01878797821700573,
-0.02772568352520466,
-0.06093791127204895,
-0.021372251212596893,
-0.022348010912537575,
0.020051494240760803,
0.00633035134524107,
0.08386281877756119,
0.0021812927443534136,
-0.0849442407488823,
0.008895949460566044,
0.042863957583904266,
-0.014855754561722279,
0.01776808314025402,
-0.08716238290071487,
-0.008220843970775604,
0.016458405181765556,
0.004192553460597992,
-0.011640151962637901,
0.008900111541152,
0.04334850609302521,
-0.016878914088010788,
0.047687556594610214,
-0.005522171035408974,
-0.04295966401696205,
-0.0332615002989769,
-0.050982724875211716,
-0.04281708225607872,
0.046751510351896286,
0.0031426209025084972,
-0.060378238558769226,
0.03654590621590614,
0.06482496857643127,
0.04875069856643677,
-0.0326387919485569,
0.06112692877650261,
-0.031472958624362946,
0.03410082310438156,
0.003048701211810112,
0.021201791241765022,
0.024761799722909927,
-0.07086143642663956,
0.0683676227927208,
-0.010415686294436455,
0.004834660794585943,
0.04355310648679733,
-0.13347268104553223,
-0.04284625127911568,
0.12689410150051117,
-0.041367046535015106,
-0.007332976907491684,
-0.09670793265104294,
0.0033762389793992043,
0.11981905251741409,
0.07081258296966553,
0.029131008312106133,
-0.010608046315610409,
0.042244091629981995,
0.08904021233320236,
-0.002126574283465743,
-0.03859876096248627,
0.0329233817756176,
0.07883833348751068,
-0.018551580607891083,
0.0024634255096316338,
-0.03587754815816879,
-0.04329659417271614,
-0.10045994073152542,
0.03719501942396164,
-0.07034334540367126,
-0.0396515317261219,
-0.013189646415412426,
-0.011953737586736679,
-0.012063849717378616,
0.013775205239653587,
-0.057913776487112045,
0.1317017376422882,
0.030923310667276382,
-0.007544366642832756,
0.017553750425577164,
-0.0415412001311779,
0.06459096819162369,
0.10098248720169067,
0.03469177335500717,
0.04616071283817291,
-0.09807772189378738,
-0.03269850090146065,
-0.029066897928714752,
0.0341651551425457,
0.0607793964445591,
-0.01278019044548273,
0.011117869056761265,
0.027361547574400902,
-0.03791094943881035,
0.05136813223361969,
-0.03792862221598625,
-0.008425995707511902,
-0.0027544787153601646,
-0.015317325480282307,
0.04283943772315979,
-0.04430433362722397,
-0.001671414589509368,
0.03728300333023071,
0.016583310440182686,
-0.06708934903144836,
0.011970986612141132,
-0.05863478407263756,
0.08578452467918396,
0.008238286711275578,
-0.03072180785238743,
0.036081165075302124,
-0.019342651590704918,
0.009739343076944351,
-0.013371464796364307,
-0.029966535046696663,
0.0011179514694958925,
0.016509635373950005,
-0.03022783063352108,
-0.001002758857794106,
-0.056015562266111374,
0.015306261368095875,
-0.036171816289424896,
-0.0038106110878288746,
-0.01733614318072796,
0.008439912460744381,
0.009309734217822552,
-0.00643787020817399,
0.01869194209575653,
0.045946989208459854,
0.0010642664274200797,
0.004490757826715708,
-0.012565966695547104,
0.033858705312013626,
-0.031213492155075073,
-0.016480334103107452,
-0.015154257416725159,
-0.009962913580238819,
-0.010583131574094296,
0.04435807093977928,
-0.013652173802256584,
0.054574206471443176,
-0.0012206720421090722,
0.016561860218644142,
0.015645327046513557,
-0.003761055413633585,
0.013659963384270668,
0.01767394319176674,
0.04632510617375374,
0.021131418645381927,
-0.03408372029662132,
0.04946887493133545,
-0.014173837378621101,
-0.0013609257293865085,
-0.001517273485660553,
-0.00048825814155861735,
0.01655440591275692,
0.03650392219424248,
-0.002770683029666543,
-0.00046283911797218025,
0.0034827422350645065,
-0.04770995303988457,
0.030884016305208206,
-0.005733380559831858,
0.04630378261208534,
-0.14796032011508942,
-0.007338905707001686,
0.044030096381902695,
0.023055901750922203,
-0.03972599655389786,
-0.02672906406223774,
0.062477558851242065,
-0.01616441085934639,
-0.003416093997657299,
-0.019434040412306786,
0.023691264912486076,
0.007445589639246464,
0.007906018756330013,
-0.016536895185709,
-0.027261892333626747,
0.016469163820147514,
-0.010225879028439522,
0.002347551053389907,
0.005812804214656353,
-0.011679086834192276,
-0.015328138135373592,
0.05378972366452217,
0.01805136166512966,
-0.0078582176938653,
-0.008951039053499699,
0.06244245171546936,
0.010183263570070267,
0.012188254855573177,
-0.005896029528230429,
-0.01511821337044239,
-0.022526882588863373,
0.02173176407814026,
-0.05920213833451271,
0.0431659072637558,
-0.0012564053758978844,
-0.005963475909084082,
0.01605376787483692,
-0.010187018662691116,
-0.006117928307503462,
0.03100709430873394,
0.0197268258780241,
0.008115646429359913,
0.02204400673508644,
0.0038841450586915016,
0.007539008744060993,
-0.01779852993786335,
0.02031019888818264,
0.016303464770317078,
0.04234883189201355,
-0.040619779378175735,
-0.024530164897441864,
-0.001598553266376257,
-0.017455877736210823,
0.04375900700688362,
-0.027465129271149635,
-0.0008571147336624563,
-0.0009006953332573175,
0.02951004169881344,
0.032624807208776474,
-0.03104443848133087,
-0.03369224816560745,
0.0056134662590920925,
0.001328040030784905,
-0.009376084432005882,
-0.05193936824798584,
0.024101248010993004,
-0.027301957830786705,
0.026346636936068535,
-0.03080015815794468,
0.06046938896179199,
0.013084004633128643,
0.017818937078118324,
-0.017083674669265747,
0.019383640959858894,
0.002036144956946373,
0.03086901642382145,
-0.02624625712633133,
-0.011050553992390633,
0.06603999435901642,
0.009151843376457691,
-0.00595893943682313,
-0.021490244194865227,
-0.02100364677608013,
-0.00803497713059187,
-0.007552301976829767,
0.03452175855636597,
0.02153557538986206,
0.00964275375008583,
0.004281776491552591,
0.026906676590442657,
0.056888144463300705,
-0.01889716647565365,
0.016145138069987297,
-0.007252081762999296,
0.004331454634666443,
0.02098442055284977,
0.05783188343048096,
-0.0312496367841959,
0.023563051596283913,
-0.007828356698155403,
0.050889547914266586,
-0.01976942829787731,
-0.023735329508781433,
-0.0022274102084338665,
0.018742864951491356,
0.03540452942252159,
-0.041338201612234116,
-0.009720120579004288,
0.009855721145868301,
0.014054602943360806,
-0.0001695715036476031,
-0.05138402804732323,
-0.0009664064855314791,
-0.01658203825354576,
-0.004406593274325132,
0.007022493053227663,
-0.017059853300452232,
-0.04591158404946327,
-0.02876906655728817,
0.05101366341114044,
-0.013532822951674461,
0.001431796932592988,
0.0034718613605946302,
-0.028591586276888847,
0.014778226613998413,
0.004324791487306356,
0.004771429114043713,
0.012958758510649204,
0.0030737626366317272,
-0.020076824352145195,
-0.02765057422220707,
-0.03234199807047844,
0.07278162986040115,
-0.004286622628569603,
0.021599657833576202,
-0.006306431256234646,
-0.025692014023661613,
0.05382963642477989,
-0.03225797414779663,
-0.07947342097759247,
0.037757690995931625,
-0.00008643059845780954,
0.027638249099254608,
0.00047492238809354603,
0.017622968181967735,
-0.012072999030351639,
0.001682680449448526,
-0.012070409022271633,
-0.025056498125195503,
0.015064947307109833,
0.044700149446725845,
-0.036306168884038925,
-0.026963138952851295,
-0.005846949759870768,
0.014152629300951958,
-0.008490192703902721,
0.00918202381581068,
-0.011698436923325062,
-0.02682419680058956,
0.055769093334674835,
0.003178039798513055,
-0.03550805151462555,
-0.0429060161113739,
0.0268668495118618,
-0.03817196190357208,
-0.007985916920006275,
0.008671505376696587,
0.010008442215621471,
-0.004081121180206537,
-0.0018356781220063567,
0.0015874264063313603,
-0.004599682986736298,
0.016895286738872528,
-0.012149889022111893,
0.007197927217930555,
0.01606445387005806,
0.00491531053557992,
0.012093027122318745,
0.0062451669946312904,
0.016624312847852707,
-0.05741672217845917,
-0.01673690602183342,
0.02648199535906315,
0.016950363293290138,
-0.03114713728427887,
0.01276562549173832,
0.0256731528788805,
0.029168443754315376,
0.03109200857579708,
0.03912501037120819,
-0.044672898948192596,
-0.016807999461889267,
-0.008956494741141796,
-0.040977392345666885,
0.011555418372154236,
-0.004190220031887293,
0.03776274994015694,
0.011843005195260048,
-0.02294127456843853,
0.008731537498533726,
0.02707175724208355,
0.028700293973088264,
0.013050762005150318,
0.006209670566022396,
0.016074348241090775,
0.025342561304569244,
-0.005608318839222193,
-0.0036996377166360617,
0.003796858713030815,
-0.06715165823698044,
-0.018739165738224983,
0.017551720142364502,
-0.01243986189365387,
-0.012310541234910488,
-0.016592608764767647,
-0.05070079490542412,
-0.04290105029940605,
0.02201410010457039,
0.010331117548048496,
0.008998533710837364,
0.02125079743564129,
0.029466263949871063,
-0.024682683870196342,
0.04404277354478836,
0.0464351586997509,
-0.030340353026986122,
0.0038207850884646177,
0.03525413200259209,
-0.015305746346712112,
0.03290266916155815,
0.026266276836395264,
0.014372077770531178,
-0.009958332404494286,
0.024700075387954712,
0.02091185189783573,
0.03041655942797661,
-0.058141399174928665,
0.034306883811950684,
0.015137693844735622,
0.007085911929607391,
-0.01965457759797573,
-0.028152404353022575,
0.004886631388217211,
-0.02592502161860466,
-0.05900939553976059,
0.018927982077002525,
0.045316752046346664,
-0.027168521657586098,
0.009883209131658077,
0.008408872410655022,
0.006041380111128092,
-0.012432006187736988,
0.007666316349059343,
0.004363571293652058,
0.04236326739192009,
0.03149070590734482,
-0.005835280288010836,
-0.030421731993556023,
0.006339258048683405,
0.01586196757853031,
0.012588858604431152,
-0.04741695523262024,
0.05423079431056976,
0.03371641784906387,
-0.019778717309236526,
0.010829697363078594,
-0.005006595980376005,
-0.00047021021600812674,
0.016892099753022194,
0.009821251966059208,
0.011890309862792492,
0.02882208488881588,
0.01394051592797041,
-0.004663324449211359,
-0.006705295294523239,
-0.029085058718919754,
0.015582778491079807,
0.03469384089112282,
0.006971110124140978,
0.001364592695608735,
0.025519011542201042,
0.020541934296488762,
0.04761886969208717,
0.03706785663962364,
-0.03863837197422981,
0.0630764439702034,
0.036121007055044174,
0.015303729102015495,
0.03985144942998886,
0.005499900318682194,
0.026496171951293945,
0.004474581219255924,
-0.03305939584970474,
-0.010584157891571522,
-0.03157942369580269,
0.02018868923187256,
0.02738523669540882,
-0.05072241649031639,
0.02986217476427555,
-0.035081952810287476,
0.026298364624381065,
-0.00672190822660923,
-0.002765241777524352,
-0.02078508585691452,
-0.004796344321221113,
0.008952735923230648,
0.029429186135530472,
-0.002203242853283882,
-0.0007677534595131874,
-0.02044621855020523,
0.025986799970269203,
0.04707236588001251,
-0.04351862892508507,
-0.011546696536242962,
0.0037821580190211535,
-0.0422486737370491,
0.020448967814445496,
-0.019887475296854973,
-0.013632085174322128,
0.0034939683973789215,
0.04135959967970848,
-0.018097253516316414,
-0.02665894292294979,
-0.015573091804981232,
-0.04074491560459137,
-0.0621144101023674,
0.002647724933922291,
0.029265347868204117,
0.010812342166900635,
-0.014623655006289482,
0.0028127131517976522,
0.04867129400372505,
0.010752612724900246,
-0.025616509839892387,
-0.041545066982507706,
0.03840566426515579,
0.0047951373271644115,
0.030618708580732346,
-0.004387921188026667,
0.0024414765648543835,
-0.04715276509523392,
0.009719504043459892,
0.006476338487118483,
0.012111315503716469,
0.010319489054381847,
-0.020992044359445572,
-0.040873460471630096,
-0.01816456951200962,
-0.010767371393740177,
0.03495069965720177,
0.03086671233177185,
0.008208544924855232,
-0.026744527742266655,
0.03415858745574951,
-0.013614143244922161,
0.00961622130125761,
-0.020387915894389153,
-0.005496677942574024,
0.022117462009191513,
-0.007165353279560804,
-0.004060610197484493,
0.038060061633586884,
0.011019028723239899,
-0.028713706880807877,
-0.0293075293302536,
-0.027095036581158638,
-0.023287739604711533,
-0.0037206204142421484,
0.02140333503484726,
0.026491040363907814,
-0.02509012632071972,
-0.0038061884697526693,
0.04481423646211624,
0.0061798132956027985,
-0.05421064421534538,
-0.010006207972764969,
-0.012211723253130913,
-0.04325273260474205,
-0.02370852790772915,
-0.041446931660175323,
0.040583834052085876,
0.013582807965576649,
0.031047094613313675,
0.008154906332492828,
0.05116039514541626,
0.020957497879862785,
-0.03767958655953407,
0.040054600685834885,
-0.016651621088385582,
0.038787659257650375,
-0.03214733302593231,
-0.03874336928129196,
-0.025386610999703407,
-0.04846304655075073,
-0.0210289116948843,
-0.0027024848386645317,
-0.03686358779668808,
-0.04991533234715462,
0.02354682981967926,
0.0035726698115468025,
-0.049494389444589615,
0.04588363319635391,
0.03386116772890091,
-0.014154870063066483,
0.032840024679899216,
0.004139326978474855,
-0.0133579783141613,
-0.015901438891887665,
0.010408851318061352,
0.017605626955628395,
0.029390467330813408,
0.020169764757156372,
-0.012072840705513954,
-0.01793704181909561,
0.04525167495012283,
-0.0389593131840229,
-0.04607880860567093,
0.0070944433100521564,
0.06346164643764496,
-0.002283548004925251,
-0.03072282299399376,
-0.008525826968252659,
-0.002709439489990473,
0.052896853536367416,
0.03977822884917259,
0.014360564760863781,
-0.033968377858400345,
-0.0059755295515060425,
0.012193970382213593,
-0.054802846163511276,
0.006181653589010239,
-0.00022795464610680938,
-0.00487534562125802,
0.03936372697353363,
0.002146476414054632,
-0.0033707846887409687,
0.025897545740008354,
-0.04803101345896721,
0.016099857166409492,
-0.015087051317095757,
-0.008641274645924568,
-0.010224091820418835,
0.023376259952783585,
-0.013175188563764095,
-0.007972892373800278,
-0.03387807309627533,
0.028049029409885406,
0.011606857180595398,
-0.021138355135917664,
-0.017447106540203094,
-0.01246305089443922,
-0.007129408419132233,
0.005116149317473173,
0.016009621322155,
-0.008169376291334629,
0.04768779128789902,
0.04820134863257408,
-0.017024526372551918,
0.0024379596579819918,
0.01241160836070776
] |
Introducing the Data Measurements Tool: an Interactive Tool for Looking at Datasets | sasha | November 29, 2021 | data-measurements-tool | research | https://huggingface.co/blog/data-measurements-tool | When can I use the 🤗 Data Measurements Tool? The 🤗 Data Measurements Tool can be used iteratively for exploring one or more existing NLP datasets, and will soon support iterative development of datasets from scratch. It provides actionable insights informed by research on datasets and responsible dataset development, allowing users to hone in on both high-level information and specific items. | [
0.04601387307047844,
-0.013196486979722977,
0.04975409805774689,
-0.030480684712529182,
0.013741244561970234,
0.05600593611598015,
0.0031950257252901793,
0.02859986200928688,
-0.057607252150774,
-0.06840881705284119,
-0.0265488438308239,
0.014520213939249516,
0.05838959664106369,
-0.017596404999494553,
0.021386895328760147,
-0.05434303730726242,
0.06852135062217712,
-0.03616967052221298,
-0.00946167390793562,
0.01734677329659462,
0.001807624357752502,
-0.04416688159108162,
0.0072248163633048534,
-0.04527774080634117,
-0.011779745109379292,
-0.0024820088874548674,
0.04169946163892746,
-0.0019466892117634416,
-0.04753003641963005,
0.018369901925325394,
-0.10314175486564636,
0.036215003579854965,
-0.02761445753276348,
-0.05908188596367836,
-0.01282887440174818,
0.0822124257683754,
-0.11270378530025482,
0.03629406914114952,
0.03268690034747124,
-0.027809372171759605,
-0.003948776517063379,
0.001398036372847855,
-0.04706628620624542,
0.013763117603957653,
-0.000823951093479991,
-0.012092538177967072,
-0.19449681043624878,
0.0426667258143425,
0.00504257483407855,
0.0085483742877841,
-0.12111829966306686,
0.11339091509580612,
-0.03259092569351196,
-0.00669539300724864,
-0.016288744285702705,
0.02653326652944088,
0.023927679285407066,
-0.07962409406900406,
0.028989767655730247,
0.01706543378531933,
0.06854841858148575,
-0.027015138417482376,
0.06971318274736404,
-0.031767748296260834,
0.026295533403754234,
0.007248528767377138,
0.02883613109588623,
0.011880245991051197,
-0.10210321098566055,
-0.02603340893983841,
0.0411028191447258,
0.015479606576263905,
-0.07450384646654129,
0.026239337399601936,
-0.027693988755345345,
-0.004225707612931728,
-0.020409932360053062,
0.04878010228276253,
0.06186734139919281,
0.05400765687227249,
0.0011732756393030286,
-0.003990642726421356,
0.04209277033805847,
-0.024082977324724197,
0.02823500894010067,
0.06286534667015076,
0.037565670907497406,
-0.030709177255630493,
-0.03611503541469574,
0.09470310062170029,
0.04102463275194168,
-0.11874620616436005,
0.04749603196978569,
-0.044991374015808105,
0.024576449766755104,
-0.05492442473769188,
0.02319437637925148,
0.06574806571006775,
-0.009834089316427708,
0.005554385483264923,
-0.0008458761731162667,
0.01631440781056881,
0.033973537385463715,
-0.01948034204542637,
-0.03367170691490173,
-0.05071769654750824,
-0.034864794462919235,
-0.052535198628902435,
-0.07233231514692307,
-0.012942242436110973,
-0.01301759947091341,
-0.00876200757920742,
-0.03405226022005081,
0.11919640749692917,
-0.008359919302165508,
0.039393700659275055,
0.05312592536211014,
0.07504373788833618,
-0.03950459510087967,
0.016229838132858276,
0.014228315092623234,
0.011794601567089558,
0.009268534369766712,
0.07920552790164948,
-0.0038404304068535566,
0.019488822668790817,
0.038997262716293335,
-0.009629620239138603,
0.06126342713832855,
-0.02362186834216118,
-0.02090439945459366,
-0.010476727038621902,
0.03364051878452301,
0.027264466509222984,
0.025022946298122406,
-0.023216821253299713,
0.009568667970597744,
-0.008684602566063404,
0.05744843930006027,
0.04066230729222298,
-0.02613818645477295,
0.019793566316366196,
-0.012081455439329147,
0.014639842323958874,
-0.016447918489575386,
0.049532610923051834,
-0.07120845466852188,
-0.006713428534567356,
-0.0340152345597744,
0.022133447229862213,
-0.04463973641395569,
0.08444663137197495,
0.03791061416268349,
-0.06420154869556427,
0.0346989668905735,
0.03024555742740631,
-0.08808579295873642,
-0.0006545933429151773,
-0.08550802618265152,
0.0116202337667346,
-0.03314792737364769,
0.02752041257917881,
-0.03792787343263626,
0.0052740671671926975,
0.03928020969033241,
-0.07402634620666504,
-0.005836276337504387,
-0.03968329355120659,
-0.0020281197503209114,
0.03751610592007637,
-0.019648633897304535,
-0.05458797514438629,
0.03827214613556862,
-0.0032536129001528025,
0.07291696965694427,
-0.0029007610864937305,
-0.006400064565241337,
0.06748898327350616,
-0.03984219208359718,
0.07750610262155533,
-0.06761492788791656,
0.04782311990857124,
-0.012067900970578194,
0.02976253442466259,
0.008215758949518204,
-0.03409775719046593,
0.015362606383860111,
0.0019388479413464665,
0.025514686480164528,
0.00408713985234499,
-0.10224238783121109,
-0.04580286890268326,
0.09578735381364822,
-0.03544636815786362,
0.009504025802016258,
-0.029711345210671425,
0.02021155133843422,
0.1496095061302185,
0.06156871095299721,
0.05027298256754875,
0.002370048314332962,
-0.021747054532170296,
0.08525295555591583,
-0.03524200990796089,
0.006503349635750055,
0.04585576429963112,
0.08046609908342361,
-0.019531860947608948,
0.012273161672055721,
-0.023370016366243362,
-0.02335776574909687,
-0.08932389318943024,
0.027454789727926254,
-0.037308305501937866,
-0.02241971157491207,
-0.02324681170284748,
0.05495212972164154,
0.05333969369530678,
-0.03522217646241188,
-0.05076044797897339,
0.15213221311569214,
0.0388510636985302,
0.03865080699324608,
-0.0273892842233181,
-0.006049198564141989,
0.04342631623148918,
0.07538655400276184,
0.06080428883433342,
0.028234342113137245,
-0.06324266642332077,
0.004119283519685268,
-0.0378706119954586,
0.03181203082203865,
0.02313878946006298,
-0.03000258281826973,
0.013883175328373909,
0.036912042647600174,
-0.04985575005412102,
0.06011201813817024,
-0.03773173317313194,
0.012700139544904232,
-0.011407502926886082,
0.008197969757020473,
0.047419849783182144,
0.026607079431414604,
0.04095076397061348,
0.03466318920254707,
-0.01921048015356064,
-0.007916927337646484,
-0.010480795986950397,
-0.016010012477636337,
0.07690401375293732,
0.021572809666395187,
-0.03960638865828514,
-0.03100510500371456,
0.039000291377305984,
0.013706271536648273,
-0.03511456772685051,
-0.018095044419169426,
0.005461978726089001,
-0.0025503241922706366,
-0.03207238018512726,
-0.014766126871109009,
-0.044204890727996826,
0.016112029552459717,
-0.044814012944698334,
0.0021662127692252398,
-0.04320119693875313,
0.024365268647670746,
-0.04285380244255066,
0.008160287514328957,
-0.013365725055336952,
0.029117753729224205,
0.010332363657653332,
0.021934010088443756,
-0.021781519055366516,
0.03862111642956734,
-0.042235080152750015,
-0.05117917060852051,
-0.036296989768743515,
-0.018955983221530914,
-0.036289893090724945,
0.04705105721950531,
0.030024981126189232,
0.03808821365237236,
-0.016568556427955627,
-0.009038965217769146,
0.02012348361313343,
-0.018088985234498978,
0.008224545046687126,
0.015798144042491913,
0.015841169282794,
-0.008215256966650486,
0.004507681354880333,
0.027694374322891235,
-0.018758263438940048,
0.016085835173726082,
0.008249432779848576,
0.02591245248913765,
0.04334092140197754,
0.02124098129570484,
0.004341388586908579,
0.010668264701962471,
-0.026977354660630226,
-0.040507737547159195,
0.028037697076797485,
0.017461193725466728,
0.004628949332982302,
-0.10495290160179138,
-0.025507155805826187,
0.021597683429718018,
0.017184985801577568,
-0.03331347554922104,
-0.01982462964951992,
0.07353287190198898,
-0.0007975886110216379,
0.0032060081139206886,
-0.01967388018965721,
-0.006671893410384655,
-0.010824181139469147,
0.025690656155347824,
0.012106146663427353,
-0.035842787474393845,
-0.004801067057996988,
-0.03298327326774597,
0.0032408658880740404,
0.03184691071510315,
0.01470082439482212,
-0.03333449363708496,
0.05645627900958061,
0.040535200387239456,
0.015209196135401726,
-0.04896119609475136,
0.04081889986991882,
0.029813863337039948,
0.005275041796267033,
-0.010890905745327473,
-0.013361255638301373,
-0.0008814497268758714,
-0.018291935324668884,
-0.05704541504383087,
0.015424229204654694,
-0.024128815159201622,
-0.005363982170820236,
0.04168812558054924,
-0.004008686635643244,
0.016699809581041336,
0.0010043700458481908,
0.01403389684855938,
-0.007951760664582253,
-0.014110571704804897,
-0.009772391058504581,
0.041769932955503464,
-0.013915709219872952,
0.004263206850737333,
0.004537160042673349,
-0.004547912627458572,
-0.03392723947763443,
-0.004889628849923611,
-0.010469461791217327,
-0.009065349586308002,
0.03641689941287041,
-0.026990916579961777,
-0.002881021238863468,
0.009521778672933578,
0.029689019545912743,
-0.006839761510491371,
-0.019336417317390442,
-0.041511811316013336,
-0.015234572812914848,
-0.002237392822280526,
-0.02562779374420643,
-0.06676357239484787,
-0.022798094898462296,
0.00658846041187644,
0.005974977742880583,
-0.004768062848597765,
0.04633956402540207,
0.009649118408560753,
0.011181303299963474,
0.017211629077792168,
0.009637023322284222,
0.003482736414298415,
0.004220506642013788,
-0.01866331323981285,
-0.00034785698517225683,
0.06780766695737839,
0.04327354207634926,
0.011306624859571457,
-0.002346688648685813,
-0.02072909288108349,
0.0000865019901539199,
0.0188588947057724,
0.01389441266655922,
0.03745507448911667,
0.008735903538763523,
0.02478041872382164,
-0.011554047465324402,
0.054851554334163666,
-0.021932363510131836,
0.016195548698306084,
0.006110090762376785,
-0.012932506389915943,
-0.0037614041939377785,
0.02619863487780094,
0.00250865425914526,
0.020121481269598007,
-0.03888346254825592,
0.056224167346954346,
-0.06544188410043716,
-0.015256100334227085,
-0.01022660918533802,
-0.0011949064210057259,
0.013939591124653816,
-0.046502429991960526,
-0.023440606892108917,
0.031108446419239044,
-0.03828415647149086,
0.0024514084216207266,
-0.025576787069439888,
-0.014270013198256493,
0.01952228881418705,
0.00025920631014741957,
0.01635095104575157,
-0.007665024604648352,
0.0010331994853913784,
-0.015660149976611137,
0.0471339225769043,
-0.023516284301877022,
0.002760950941592455,
0.0014019579393789172,
0.011400414630770683,
0.01700008660554886,
-0.04820234328508377,
0.019803805276751518,
-0.003416883060708642,
-0.022848937660455704,
0.01948816515505314,
0.007684408221393824,
-0.016483861953020096,
0.03735392168164253,
-0.02655118517577648,
0.0015888308407738805,
-0.02805003896355629,
-0.04034603759646416,
0.025727400556206703,
-0.06291741132736206,
-0.032323844730854034,
0.03501414135098457,
0.00592632032930851,
0.021786943078041077,
-0.01596643589437008,
0.0047078970819711685,
0.0004106942215003073,
-0.023307159543037415,
-0.0224900022149086,
-0.037529200315475464,
0.034677356481552124,
0.026337970048189163,
0.004334667697548866,
-0.009335225448012352,
0.014617436565458775,
0.037989601492881775,
-0.058917101472616196,
0.003459965344518423,
0.010072054341435432,
0.01829509623348713,
0.01776881143450737,
0.006308617535978556,
-0.061069268733263016,
0.005842989776283503,
-0.022262288257479668,
0.008447297848761082,
-0.04972689226269722,
0.004200004506856203,
0.0036212708801031113,
0.00946847815066576,
0.02159464918076992,
0.009560178965330124,
0.011445066891610622,
0.020923851057887077,
0.0031349649652838707,
0.012323609553277493,
0.0229361392557621,
0.023379549384117126,
0.06083499640226364,
-0.021073369309306145,
0.022002479061484337,
-0.05814893916249275,
-0.02410370670258999,
0.012997913174331188,
-0.0031941202469170094,
-0.0037955986335873604,
0.020684078335762024,
0.02421191893517971,
0.06517671793699265,
0.05586062744259834,
-0.009958719834685326,
-0.03839020058512688,
-0.036311548203229904,
-0.005427633412182331,
-0.05681508406996727,
0.024314990267157555,
-0.02033896930515766,
0.03907979652285576,
-0.012613831087946892,
-0.014875014312565327,
-0.02215280942618847,
0.0015382036799564958,
0.04155599698424339,
0.02979847602546215,
-0.018880387768149376,
0.04911225289106369,
-0.01836729422211647,
-0.02195514179766178,
-0.047086864709854126,
0.015664108097553253,
-0.025359569117426872,
-0.010210100561380386,
0.006204571574926376,
0.015600400976836681,
-0.006609569303691387,
-0.034545302391052246,
-0.01638728193938732,
0.02038482204079628,
0.012428510002791882,
0.013719921000301838,
-0.0031243287958204746,
0.012153761461377144,
-0.005857168231159449,
-0.02705608867108822,
0.0400092750787735,
0.03814896568655968,
0.005622272379696369,
-0.015581914223730564,
0.016012027859687805,
0.04665229842066765,
0.0330531969666481,
0.021389124915003777,
0.0031468726228922606,
0.03599926456809044,
0.03147507458925247,
0.0004720725701190531,
0.04158122092485428,
-0.05140186846256256,
0.1104779914021492,
0.0249396413564682,
-0.04258444532752037,
-0.04397926479578018,
-0.0672975704073906,
-0.04102656990289688,
-0.021763045340776443,
-0.08038883656263351,
0.017623834311962128,
0.041100259870290756,
-0.0042027439922094345,
0.01341692078858614,
0.04207100346684456,
-0.04660530388355255,
-0.004630740731954575,
-0.04372789338231087,
0.01685451529920101,
0.07889305055141449,
0.03794689476490021,
-0.002756069414317608,
-0.018333515152335167,
-0.009370192885398865,
0.007412332110106945,
0.0341147817671299,
-0.06359244138002396,
0.03586845472455025,
0.02824600599706173,
-0.05512659624218941,
-0.011023391969501972,
-0.002197517780587077,
-0.0077862124890089035,
-0.005056358873844147,
0.0015246686525642872,
-0.016152193769812584,
0.035644546151161194,
0.005100621841847897,
0.008330216631293297,
-0.02799258939921856,
-0.0352892205119133,
-0.016500845551490784,
0.05072415992617607,
-0.0010129549773409963,
0.01902974210679531,
0.04512975364923477,
0.03254888951778412,
0.04519844055175781,
0.061306431889534,
-0.031310148537158966,
0.03921816870570183,
0.03750821575522423,
0.00005988286284264177,
0.028186630457639694,
-0.03519377484917641,
-0.013124813325703144,
0.009101972915232182,
-0.03946568816900253,
-0.03975009545683861,
-0.01604226417839527,
0.019125767052173615,
0.006900510750710964,
-0.047982603311538696,
-0.01376320794224739,
-0.009368770755827427,
0.020942604169249535,
-0.0016983476234599948,
0.009190136566758156,
-0.008514837361872196,
-0.01781519502401352,
0.03506752476096153,
0.019940372556447983,
0.001594508532434702,
0.012941626831889153,
0.003669604193419218,
0.026653841137886047,
0.0515197217464447,
0.013784573413431644,
0.015146078541874886,
0.02784252166748047,
0.013209807686507702,
-0.022726314142346382,
-0.043931182473897934,
0.003958042245358229,
0.041461750864982605,
0.012400486506521702,
0.011303778737783432,
-0.03889580816030502,
0.04294656217098236,
-0.02904270775616169,
-0.027032503858208656,
-0.021945053711533546,
0.042462579905986786,
0.014018415473401546,
-0.020024342462420464,
-0.02896600402891636,
0.03365172818303108,
0.015040281228721142,
-0.03163611888885498,
-0.04115494713187218,
0.004677637945860624,
0.006108512170612812,
0.022583935409784317,
-0.02604883536696434,
0.0005509319016709924,
-0.03077198937535286,
0.003945662174373865,
-0.0038393232971429825,
0.03140043839812279,
0.011225452646613121,
-0.06144139915704727,
-0.02492240071296692,
0.0012817622628062963,
-0.01940847374498844,
0.0057448712177574635,
0.027766436338424683,
0.04315986484289169,
-0.026318460702896118,
-0.02936951443552971,
-0.04093588516116142,
-0.009023625403642654,
-0.016554536297917366,
-0.033459171652793884,
0.021065687760710716,
-0.021257134154438972,
-0.008106052875518799,
0.03717172145843506,
0.03559708967804909,
-0.026631848886609077,
0.017692115157842636,
-0.024276308715343475,
0.0063727907836437225,
-0.013588229194283485,
0.011005371809005737,
0.02276631072163582,
0.0005722127971239388,
0.030171791091561317,
0.0004745213664136827,
-0.018717877566814423,
-0.024501942098140717,
-0.024906039237976074,
0.04461348056793213,
-0.027009056881070137,
-0.04401659220457077,
-0.03282860666513443,
0.04716407135128975,
-0.004017140716314316,
0.03287239372730255,
-0.014318445697426796,
0.0681752935051918,
0.028622563928365707,
-0.043304428458213806,
0.032528795301914215,
-0.02362052910029888,
0.045407820492982864,
-0.025587188079953194,
-0.05273405835032463,
-0.018266404047608376,
0.010782022960484028,
-0.04367231950163841,
-0.02350202016532421,
0.0030375116039067507,
-0.027773138135671616,
0.009517105296254158,
-0.019199389964342117,
-0.0650768131017685,
0.032872118055820465,
0.03634609282016754,
-0.026494024321436882,
0.04490802437067032,
0.019412629306316376,
-0.006102624349296093,
0.012309388257563114,
-0.0007172221667133272,
0.01820928417146206,
0.017141375690698624,
0.012886114418506622,
-0.021375881507992744,
0.009703697636723518,
0.030225694179534912,
-0.04318328946828842,
-0.02845226600766182,
0.06186734139919281,
0.02463577501475811,
0.023171421140432358,
-0.039337072521448135,
-0.0008718431345187128,
0.016011759638786316,
0.023308752104640007,
0.015830134972929955,
-0.020665328949689865,
-0.005113108549267054,
-0.041302330791950226,
-0.02581608295440674,
-0.05387355387210846,
0.005841958802193403,
-0.0006145645747892559,
-0.013484332710504532,
0.011460552923381329,
-0.0158079843968153,
0.0015777654480189085,
0.009742898866534233,
-0.0249687097966671,
0.017024435102939606,
-0.00038285995833575726,
-0.006795914378017187,
-0.04374237731099129,
-0.004557069856673479,
0.029537759721279144,
-0.013383086770772934,
-0.06141204014420509,
0.029087038710713387,
0.0022594882175326347,
0.0004446058301255107,
0.0009830566123127937,
0.03279726207256317,
-0.0012890375219285488,
0.002300154184922576,
-0.00872125755995512,
-0.0028117012698203325,
0.041255611926317215,
0.05242130532860756,
-0.01732717640697956,
-0.02336225099861622,
-0.053797557950019836
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Getting the data A very simple way to get datasets is to use the Hugging Face Datasets library, which makes it easy for developers to download and share datasets on the Hugging Face hub. It also has pre-built data versioning based on git and git-lfs, so you can iterate on updated versions of the data by just pointing to the same repo. Here, the dataset comes with the training and validation files, and dataset configs to help facilitate which inputs to use in each model execution phase. The argument --dataset_name==squad points to SQuAD v1.1 on the Hugging Face Hub. You could also provide your own CSV/JSON/TXT training and evaluation files as long as they follow the same format as the SQuAD dataset or another question-answering dataset in Datasets library. | [
0.06268417090177536,
-0.015175859443843365,
-0.013039088808000088,
0.03599092736840248,
0.021282562986016273,
0.047036200761795044,
-0.021363606676459312,
0.02552035264670849,
-0.017456823959946632,
-0.05015013366937637,
-0.10217880457639694,
0.05437423288822174,
-0.01994168385863304,
0.01237008348107338,
-0.019955094903707504,
-0.06402882933616638,
0.019528787583112717,
-0.006315641105175018,
0.031212754547595978,
0.0762355700135231,
0.028217863291502,
-0.04841575771570206,
0.030845586210489273,
0.013093958608806133,
-0.021638309583067894,
-0.0595962293446064,
0.06073002889752388,
0.04287664592266083,
0.0035556128714233637,
0.030218563973903656,
-0.12738962471485138,
-0.002935579977929592,
0.016162410378456116,
-0.041668783873319626,
0.012915062718093395,
0.046767618507146835,
-0.09681335091590881,
0.08095138520002365,
0.07379747927188873,
-0.05531612038612366,
-0.0014981889398768544,
-0.03287878632545471,
-0.07728095352649689,
0.05324290320277214,
0.008057914674282074,
-0.02028791420161724,
-0.13041508197784424,
0.04275058954954147,
0.004456125665456057,
-0.013011183589696884,
-0.1006195992231369,
0.08210420608520508,
-0.021924979984760284,
-0.01344600971788168,
0.050178952515125275,
-0.00034545460948720574,
0.016166523098945618,
-0.08487697690725327,
-0.021045804023742676,
0.05609364062547684,
0.0328068882226944,
0.009158923290669918,
0.07396268844604492,
0.0510631762444973,
0.023875940591096878,
-0.0013916267780587077,
0.04669751599431038,
0.006976486649364233,
-0.01383978221565485,
-0.024395309388637543,
0.052388615906238556,
-0.027559375390410423,
0.008900192566215992,
-0.010972405783832073,
-0.01854715682566166,
-0.021268188953399658,
-0.010015935637056828,
0.042685724794864655,
0.05907570198178291,
0.007100927643477917,
-0.03725180774927139,
-0.005129769444465637,
-0.013078159652650356,
-0.003583522979170084,
0.042670879513025284,
0.07467355579137802,
0.016300009563565254,
-0.049400124698877335,
-0.061534617096185684,
0.07136419415473938,
0.00835827924311161,
-0.03264110907912254,
-0.03794935718178749,
-0.012307045981287956,
0.0815582126379013,
-0.026790795847773552,
-0.006540568545460701,
0.027565952390432358,
0.008233314380049706,
-0.033720534294843674,
-0.03998957946896553,
-0.044972848147153854,
0.017655350267887115,
-0.04316955804824829,
-0.058893833309412,
0.0039638252928853035,
-0.04191618412733078,
-0.13149727880954742,
-0.03662564605474472,
0.007140591274946928,
0.00883418507874012,
-0.03924461454153061,
-0.020630963146686554,
0.03986397385597229,
-0.06587652862071991,
0.03375520557165146,
0.009670552797615528,
0.030614497140049934,
-0.05383821576833725,
0.028218230232596397,
-0.02107599563896656,
0.08394306898117065,
-0.007767071947455406,
0.016784921288490295,
0.04392557591199875,
0.09650158882141113,
0.012346664443612099,
0.016240619122982025,
0.08290953189134598,
-0.03975518047809601,
-0.01441806461662054,
-0.06491995602846146,
0.019819723442196846,
0.05202636867761612,
0.04517991095781326,
-0.04327875003218651,
-0.04486556723713875,
-0.00009837107063503936,
0.08375595510005951,
0.06020670384168625,
-0.02523316815495491,
0.10309324413537979,
-0.009330193512141705,
0.04769875109195709,
0.0568641796708107,
-0.016844941303133965,
-0.05389568582177162,
0.004011315759271383,
0.019585078582167625,
0.011167095974087715,
-0.028475504368543625,
0.06471811234951019,
0.0335414744913578,
-0.07086892426013947,
-0.01621037907898426,
0.044019464403390884,
-0.053041569888591766,
0.008197503164410591,
-0.06164122372865677,
0.009185689501464367,
-0.0405682809650898,
0.049233581870794296,
-0.05231139808893204,
0.04042128473520279,
0.025344768539071083,
-0.012541118077933788,
-0.037673477083444595,
0.01272753905504942,
0.01823429949581623,
-0.037747353315353394,
-0.02001609466969967,
-0.04724149778485298,
0.05276070907711983,
-0.014594251289963722,
0.06296932697296143,
0.023381441831588745,
0.051035914570093155,
0.040902771055698395,
0.017774373292922974,
-0.005910339765250683,
-0.02011195197701454,
0.02031915821135044,
0.01872842013835907,
0.03167448937892914,
0.08016926050186157,
-0.015929000452160835,
-0.0031566754914820194,
-0.01622210070490837,
0.04369732737541199,
-0.005080297123640776,
-0.023810962215065956,
-0.04660336673259735,
0.09802842140197754,
-0.0133089330047369,
0.06250393390655518,
-0.07367487251758575,
0.0016322314040735364,
0.10866750031709671,
0.03794426470994949,
0.050738293677568436,
-0.01081159058958292,
-0.016154201701283455,
0.018894579261541367,
-0.04481235891580582,
0.040615733712911606,
0.01973312348127365,
0.009909228421747684,
-0.08158963918685913,
0.033886462450027466,
0.016663426533341408,
-0.005937768612056971,
-0.05416661873459816,
0.05813691392540932,
-0.03801654279232025,
-0.016291923820972443,
-0.029039420187473297,
-0.054478634148836136,
0.06226247549057007,
0.019390473142266273,
-0.0017481710528954864,
0.19683460891246796,
0.0019257365493103862,
0.06577432155609131,
-0.005600690376013517,
-0.0397602878510952,
0.054238881915807724,
0.05620893836021423,
0.11225804686546326,
0.06753046810626984,
-0.0961000919342041,
-0.03495354950428009,
-0.034356266260147095,
-0.027428461238741875,
0.039402320981025696,
-0.013458103872835636,
-0.050454314798116684,
0.06614208221435547,
-0.028595546260476112,
-0.041932206600904465,
0.009127878583967686,
0.021724430844187737,
-0.0450642853975296,
0.028420157730579376,
-0.006927136797457933,
0.03621548414230347,
-0.049626026302576065,
0.08148647099733353,
-0.00733557203784585,
-0.06608780473470688,
-0.07483874261379242,
-0.023014072328805923,
0.027477789670228958,
-0.02605062536895275,
-0.008913613855838776,
-0.0039104921743273735,
0.014906230382621288,
-0.0042188772931694984,
-0.007104562595486641,
-0.009256952442228794,
0.07254060357809067,
0.014370686374604702,
-0.030755631625652313,
-0.04512013867497444,
-0.03290387988090515,
0.00805768370628357,
-0.08409210294485092,
0.015396956354379654,
-0.028391752392053604,
0.013170973397791386,
-0.032475728541612625,
0.042590007185935974,
-0.0014772828435525298,
0.018406350165605545,
0.02149646356701851,
0.012893876992166042,
0.057689547538757324,
0.001755769713781774,
-0.027289563789963722,
-0.024972664192318916,
-0.01735929399728775,
0.039648085832595825,
-0.05290880799293518,
0.02412964031100273,
0.017582213506102562,
0.022584477439522743,
-0.016002515330910683,
0.04161859303712845,
-0.03130655735731125,
-0.01209794357419014,
0.037113845348358154,
0.03276250138878822,
0.015511454083025455,
-0.005664571188390255,
-0.06228882446885109,
-0.002697113435715437,
0.0074534029699862,
0.008794104680418968,
0.0055136913433671,
-0.01286559458822012,
0.04510321095585823,
-0.01767360419034958,
0.010861336253583431,
-0.023414025083184242,
-0.030733713880181313,
-0.02475636638700962,
0.02554161846637726,
0.019267909228801727,
-0.0031755459494888783,
-0.1001981794834137,
0.009199063293635845,
-0.015033695846796036,
0.013530542142689228,
-0.01404223870486021,
-0.019586320966482162,
0.037294261157512665,
-0.019056664779782295,
-0.016481757164001465,
0.009762173518538475,
-0.005206238478422165,
0.019201576709747314,
-0.004821372218430042,
0.008372090756893158,
-0.00935362372547388,
0.004867829382419586,
0.004925305489450693,
0.0007568741566501558,
0.04770785942673683,
0.030876195058226585,
-0.02653871290385723,
0.007197381928563118,
0.007538571488112211,
0.01444951444864273,
-0.019150886684656143,
0.015523713082075119,
0.03528665006160736,
0.01284341886639595,
0.004592604469507933,
-0.034316666424274445,
0.016341784968972206,
-0.021776944398880005,
-0.03390401974320412,
-0.002355891978368163,
-0.04031458869576454,
-0.007115164306014776,
0.01018899492919445,
-0.004320594482123852,
0.016321241855621338,
0.0033631157130002975,
-0.014808288775384426,
-0.00576750747859478,
0.0016741374274715781,
-0.0345594696700573,
0.03731708601117134,
0.02155083604156971,
-0.03202959895133972,
0.006797803565859795,
0.011762924492359161,
-0.057869382202625275,
-0.007032009772956371,
0.001960559282451868,
-0.004983485676348209,
0.044622793793678284,
-0.005737052299082279,
-0.0066106365993618965,
0.053741876035928726,
0.01618824154138565,
0.01314472034573555,
-0.012624172493815422,
-0.043497953563928604,
0.012774359434843063,
-0.01768842712044716,
-0.04295143485069275,
-0.012942505069077015,
0.019774572923779488,
-0.031060125678777695,
0.0076168859377503395,
-0.020983081310987473,
0.048884108662605286,
0.007038551848381758,
-0.014452395029366016,
0.00785722304135561,
0.0053115952759981155,
-0.00352519191801548,
-0.0006782300770282745,
0.0030003851279616356,
-0.036738183349370956,
0.0628790408372879,
0.06528571993112564,
-0.018988048657774925,
-0.021369216963648796,
0.01466462668031454,
-0.0080469511449337,
0.014693697914481163,
-0.03303612768650055,
0.040998492389917374,
-0.049991920590400696,
0.030021103098988533,
-0.006136443931609392,
0.01272919774055481,
-0.054788295179605484,
0.03617529198527336,
-0.020474713295698166,
-0.016295624896883965,
-0.0025583975948393345,
0.032964106649160385,
0.034001778811216354,
-0.017629966139793396,
0.009670446626842022,
-0.011503062210977077,
-0.0027142553590238094,
0.00383828510530293,
0.013750923797488213,
0.007763993460685015,
0.01617644540965557,
-0.02466484159231186,
-0.034808963537216187,
-0.014947478659451008,
-0.003809852059930563,
0.022395910695195198,
-0.018534205853939056,
-0.024816352874040604,
-0.025962388142943382,
0.016614317893981934,
0.028578663244843483,
-0.01770624704658985,
-0.0006398650584742427,
-0.032233383506536484,
0.03913548216223717,
-0.0382455512881279,
0.020352376624941826,
-0.033391181379556656,
-0.025156009942293167,
0.025332780554890633,
-0.0009705103002488613,
0.005304269026964903,
-0.023733189329504967,
-0.009258871898055077,
-0.011257587000727654,
0.0022777847480028868,
-0.03663569688796997,
0.013006891123950481,
-0.019495245069265366,
0.00592407351359725,
-0.018207972869277,
-0.03510642424225807,
0.021368084475398064,
-0.010450784116983414,
-0.032280635088682175,
-0.001785142463631928,
0.022702885791659355,
0.04302697628736496,
-0.009146260097622871,
-0.008295124396681786,
0.033541239798069,
-0.04535455256700516,
-0.02907954715192318,
-0.03296729177236557,
-0.03178469091653824,
0.0046989633701741695,
0.016776040196418762,
-0.003878074698150158,
0.04305615648627281,
0.030681656673550606,
-0.036892134696245193,
-0.04283946007490158,
0.01215885765850544,
-0.00892624445259571,
-0.01449398510158062,
-0.032558374106884,
-0.034604910761117935,
0.003047151956707239,
-0.01118293683975935,
-0.013740848749876022,
-0.018007947131991386,
0.016361501067876816,
-0.07935331761837006,
0.00812356173992157,
0.007034072652459145,
-0.01653171330690384,
-0.0011450388701632619,
0.01953333243727684,
-0.04618154838681221,
-0.019535839557647705,
0.07484792917966843,
0.07636243849992752,
0.0451519638299942,
0.019812922924757004,
-0.0027307134587317705,
-0.04230139032006264,
-0.015324543230235577,
0.04488775506615639,
-0.013422532007098198,
0.023721372708678246,
0.03490634635090828,
0.062113262712955475,
0.09128843247890472,
0.0036710835993289948,
-0.009998224675655365,
-0.020643144845962524,
-0.023288346827030182,
-0.004763923119753599,
-0.08887172490358353,
-0.02185249887406826,
0.0008748986292630434,
0.025304550305008888,
0.003063016105443239,
0.002869746647775173,
-0.03666384145617485,
-0.004511350300163031,
0.07358071953058243,
-0.02790781483054161,
-0.010712320916354656,
0.01972799375653267,
-0.016520965844392776,
-0.03036317229270935,
0.01282198540866375,
0.015722578391432762,
-0.02336875908076763,
0.010376972146332264,
-0.05107391998171806,
-0.020751163363456726,
-0.012083454057574272,
-0.01037155743688345,
-0.02082902565598488,
-0.0034502896014600992,
-0.0021770151797682047,
0.01040247455239296,
0.03190242499113083,
-0.03854810819029808,
-0.01860029436647892,
-0.0202319473028183,
0.015519718639552593,
0.02029138058423996,
-0.04371391609311104,
0.016455821692943573,
0.0004998062504455447,
0.024041181430220604,
0.03600076958537102,
0.03105468861758709,
-0.016392135992646217,
0.019475840032100677,
0.010614434257149696,
-0.005139551125466824,
0.010693689808249474,
-0.019249124452471733,
0.047597456723451614,
0.028818858787417412,
-0.04015972465276718,
-0.030296774581074715,
-0.0448075495660305,
-0.018446780741214752,
0.012638828717172146,
-0.04326445609331131,
0.005979936104267836,
0.08807802945375443,
0.024505069479346275,
0.06152145564556122,
-0.0019544637762010098,
0.0010720400605350733,
0.03683140501379967,
0.019816987216472626,
0.014054268598556519,
-0.011091979220509529,
0.03662373125553131,
0.012842066586017609,
0.013858535327017307,
-0.006174770649522543,
0.003861029399558902,
0.0032590562477707863,
-0.04747088998556137,
0.016108062118291855,
0.005203059408813715,
-0.016280334442853928,
-0.021131569519639015,
-0.006107744760811329,
-0.03464476019144058,
0.023031750693917274,
-0.0020519676618278027,
0.047342147678136826,
0.03729023039340973,
0.02827058732509613,
0.02051488868892193,
-0.01577083393931389,
-0.016108423471450806,
-0.028195207938551903,
0.0631123036146164,
-0.014283661730587482,
0.055677380412817,
-0.01302263792604208,
0.053673241287469864,
0.028589151799678802,
0.031411685049533844,
0.008577344939112663,
0.008668256923556328,
0.066754549741745,
0.015201856382191181,
0.04579244181513786,
0.06606309115886688,
-0.007970367558300495,
-0.004328112583607435,
-0.05078292265534401,
-0.013314276933670044,
0.031749874353408813,
0.03305184468626976,
0.011351361870765686,
-0.020787103101611137,
0.033882495015859604,
-0.04152632877230644,
0.02734384872019291,
0.040396008640527725,
-0.0021102880127727985,
-0.012490792199969292,
0.011573833413422108,
0.053690679371356964,
0.017962798476219177,
0.009553788229823112,
0.02856459841132164,
0.010744154453277588,
-0.016458405181765556,
0.030147084966301918,
0.049823109060525894,
0.011170203797519207,
0.02412072941660881,
0.01712665893137455,
-0.01385720819234848,
-0.03155790641903877,
-0.013430067338049412,
0.02151600643992424,
-0.01023778971284628,
-0.013494225218892097,
-0.02785770781338215,
0.015985580161213875,
-0.03666621819138527,
0.007866475731134415,
-0.0074100857600569725,
-0.008161496371030807,
-0.011569753289222717,
-0.030901532620191574,
-0.006822990253567696,
0.04351373761892319,
-0.0014253436820581555,
-0.011240598745644093,
0.0069190021604299545,
0.0172431617975235,
0.025881310924887657,
0.007570704910904169,
-0.02424631640315056,
-0.05433473736047745,
-0.028416965156793594,
-0.021404294297099113,
0.007239363621920347,
0.048177674412727356,
0.008672961965203285,
-0.03369975462555885,
-0.0349774993956089,
0.00261985557153821,
0.007208249066025019,
0.024152232334017754,
-0.0040486534126102924,
0.032856326550245285,
-0.027245206758379936,
0.015232844278216362,
0.002464535878971219,
-0.013978362083435059,
0.00877454224973917,
-0.05920115113258362,
0.03950301557779312,
-0.014615925960242748,
0.03786810114979744,
-0.008335407823324203,
0.01603557914495468,
0.003504727268591523,
-0.032131560146808624,
0.008711867034435272,
0.0004507253470364958,
-0.04185465723276138,
0.06553446501493454,
-0.0031998613849282265,
-0.029438216239213943,
0.058955978602170944,
-0.000615020573604852,
-0.0052889809012413025,
-0.01473243162035942,
0.00959720741957426,
0.05042514204978943,
-0.02867194078862667,
-0.03516741096973419,
0.016553891822695732,
0.06053837016224861,
0.009316925890743732,
0.03435620293021202,
-0.00818265974521637,
0.02960710972547531,
-0.01570935733616352,
-0.0546785406768322,
0.04465779662132263,
-0.005755413789302111,
0.01574788987636566,
-0.026585303246974945,
-0.07396387308835983,
-0.04736955091357231,
-0.009192393161356449,
-0.0240401029586792,
0.017487842589616776,
-0.033497557044029236,
-0.006896026898175478,
0.03106302209198475,
-0.020497575402259827,
-0.04855909198522568,
0.004883046727627516,
0.03220568224787712,
0.003914755303412676,
0.012423521839082241,
0.0191910732537508,
-0.05014737695455551,
0.01647423394024372,
0.0013522396329790354,
0.030233504250645638,
0.011742450296878815,
-0.0052702659741044044,
-0.03602436184883118,
-0.029265521094202995,
-0.0009006505133584142,
0.004087593872100115,
-0.03328132629394531,
-0.0011175345862284303,
-0.00882760901004076,
0.02487204410135746,
-0.045810941606760025,
0.01362496055662632,
0.054544106125831604,
0.015515575185418129,
0.02741829678416252,
-0.03008314222097397,
-0.014771010726690292,
-0.008578167296946049,
0.015972033143043518,
-0.058453142642974854,
0.013402264565229416,
-0.04833174869418144,
0.008322692476212978,
0.018198287114501,
-0.0050613656640052795,
0.02555369772017002,
-0.00377920875325799,
-0.002525657881051302,
0.021611355245113373,
0.009516975842416286,
-0.023635365068912506,
-0.028765544295310974,
-0.015263873152434826,
0.04719772934913635,
-0.03215558081865311,
-0.03115255758166313,
0.020525628700852394,
0.002112665446475148,
-0.04018722474575043,
-0.00955014955252409,
-0.02049814723432064,
0.026941457763314247,
-0.024466821923851967,
-0.019089587032794952,
-0.025794994086027145,
0.04334185644984245,
-0.021292664110660553,
-0.02575194463133812,
-0.04591585323214531,
-0.018137257546186447
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Clone Optimum Graphcore Repository The Optimum Graphcore repository contains the sample code for using Optimum models in IPU. You should clone the repository and change the directory to the example/question-answering folder which contains the IPU implementation of BERT. $ git clone https://github.com/huggingface/optimum-graphcore.git $ cd optimum-graphcore/examples/question-answering Now, we will use run_qa.py to fine-tune the IPU implementation of BERT on the SQUAD1.1 dataset. | [
0.020290693268179893,
0.006880209781229496,
-0.0708426833152771,
0.0809715986251831,
0.021204058080911636,
0.07153300940990448,
0.038035545498132706,
0.010560635477304459,
0.037335820496082306,
-0.06002259626984596,
-0.036956787109375,
0.05390416830778122,
0.011664456687867641,
0.0031257064547389746,
0.05340149998664856,
-0.03306765854358673,
-0.0016332630766555667,
-0.01057073287665844,
-0.03188463672995567,
0.038199085742235184,
-0.030332233756780624,
-0.04091719537973404,
0.013916932977735996,
0.005718417465686798,
-0.0006965706124901772,
-0.04740326479077339,
0.012456769123673439,
0.058288250118494034,
-0.0012529657687991858,
0.017748575657606125,
-0.027381684631109238,
-0.045801758766174316,
0.0722728967666626,
-0.07988260686397552,
0.0022881824988871813,
0.005866676103323698,
-0.08333157747983932,
0.01488261204212904,
-0.0062849135138094425,
-0.027978399768471718,
-0.007221070118248463,
-0.009685000404715538,
-0.04349619522690773,
-0.03709036856889725,
0.02606491930782795,
0.008563130162656307,
-0.005407388787716627,
0.083076611161232,
-0.03066248446702957,
-0.06449055671691895,
-0.04165919870138168,
0.042226459830999374,
-0.020636554807424545,
-0.06534773111343384,
0.08167026191949844,
-0.05109260603785515,
0.08818171918392181,
-0.05019238963723183,
-0.03389608860015869,
0.042534563690423965,
0.03219771385192871,
-0.04451906308531761,
-0.007913299836218357,
0.06674513965845108,
-0.03953336179256439,
0.01414914894849062,
-0.07885736972093582,
-0.01405691634863615,
-0.08228608220815659,
-0.07815304398536682,
-0.058703694492578506,
0.004867832642048597,
0.022753486409783363,
-0.0008250090177170932,
-0.05403235927224159,
0.008336139842867851,
0.025620991364121437,
0.08849752694368362,
-0.005142953712493181,
0.04463373124599457,
-0.035097233951091766,
0.029989922419190407,
-0.0034153778105974197,
-0.030965670943260193,
0.02882411517202854,
0.036789774894714355,
-0.0018799748504534364,
-0.04381481558084488,
-0.07826147973537445,
0.019079061225056648,
-0.06735975295305252,
-0.10432679206132889,
-0.043162550777196884,
-0.014187842607498169,
0.019682323560118675,
-0.03988465294241905,
-0.05331720411777496,
-0.007597960531711578,
-0.05664147064089775,
-0.010606659576296806,
0.0053038629703223705,
-0.013499648310244083,
-0.05239051952958107,
-0.018569590523838997,
-0.07243557274341583,
0.04372290149331093,
-0.014701208099722862,
-0.07321241497993469,
-0.05371331796050072,
-0.009862679988145828,
0.014027152210474014,
-0.05414844676852226,
0.02553197368979454,
0.09020059555768967,
-0.08161135762929916,
0.04412325844168663,
0.014528554864227772,
-0.047203850001096725,
0.0008040391840040684,
-0.0014441695529967546,
0.0077981119975447655,
0.08798718452453613,
0.004170426167547703,
0.06466452777385712,
0.07044295966625214,
0.06475622951984406,
-0.04738078638911247,
-0.006506644655019045,
0.00028482379275374115,
-0.06235647574067116,
0.0818490982055664,
0.013400416821241379,
0.06788290292024612,
-0.012570089660584927,
0.044905826449394226,
-0.0045818788930773735,
-0.005762808490544558,
-0.041923634707927704,
0.003969348967075348,
-0.038240402936935425,
0.025486158207058907,
0.07435622066259384,
0.038782428950071335,
0.032834991812705994,
0.024173911660909653,
-0.006981692276895046,
-0.07655329257249832,
0.05379246175289154,
0.05642671138048172,
0.0631461814045906,
-0.056560710072517395,
0.0837179496884346,
0.009669801220297813,
-0.047816962003707886,
-0.03324294090270996,
0.04544942453503609,
-0.020895035937428474,
0.011560174636542797,
-0.08182571083307266,
-0.03512344881892204,
-0.006653095595538616,
0.050104156136512756,
-0.10028358548879623,
0.0005085580050945282,
-0.03842414170503616,
-0.0037027993239462376,
-0.024699412286281586,
-0.0065937950275838375,
-0.029497938230633736,
-0.04792361333966255,
0.026138244196772575,
-0.0449574813246727,
0.038385313004255295,
0.03212320804595947,
0.046981845051050186,
0.05737192928791046,
0.030669990926980972,
0.004043017514050007,
-0.0831758975982666,
-0.06286073476076126,
-0.06131729856133461,
0.07656602561473846,
0.016877179965376854,
0.0950016975402832,
0.05688166245818138,
0.0244318637996912,
0.014644858427345753,
-0.008350604213774204,
0.03940761461853981,
-0.016631511971354485,
0.035222236067056656,
-0.036941204220056534,
0.09161171317100525,
0.006073214113712311,
0.047601260244846344,
-0.03709680214524269,
-0.02031453512609005,
0.04548066109418869,
0.09668654203414917,
-0.008645368739962578,
0.01399698480963707,
-0.04829898104071617,
0.028657954186201096,
-0.0393347404897213,
0.0062788790091872215,
0.02177707478404045,
-0.010573937557637691,
-0.09492652118206024,
0.03571931645274162,
0.04144495353102684,
0.014850150793790817,
-0.08376802504062653,
0.047979895025491714,
-0.06665565818548203,
0.0046873921528458595,
-0.09448295086622238,
-0.04573841020464897,
0.0927782654762268,
0.07402965426445007,
-0.03711424022912979,
0.09224105626344681,
0.003552061738446355,
0.05522935092449188,
0.012398431077599525,
-0.027582304552197456,
0.051066916435956955,
0.034022148698568344,
0.0680462121963501,
0.101274274289608,
-0.029725512489676476,
0.028764978051185608,
-0.030695458874106407,
-0.03217623382806778,
0.05681915953755379,
0.00958215445280075,
-0.03253263607621193,
-0.023744899779558182,
0.013158582150936127,
0.016682008281350136,
-0.0077431900426745415,
0.013383518904447556,
0.03449772298336029,
-0.02363496460020542,
-0.0531088151037693,
0.08214447647333145,
0.018729032948613167,
0.01272629015147686,
0.008438636548817158,
-0.03853768855333328,
-0.012903358787298203,
-0.05989377573132515,
-0.006306478753685951,
-0.0197049081325531,
0.0079575190320611,
-0.014691323041915894,
0.003075815737247467,
0.0012012507067993283,
0.029692374169826508,
-0.01364703569561243,
0.03923170641064644,
0.012386508285999298,
0.0036909577902406454,
-0.058562763035297394,
0.00977509468793869,
0.0000379486518795602,
-0.02741169184446335,
-0.0023592968937009573,
-0.0004281716246623546,
-0.041459426283836365,
-0.01838739402592182,
0.012506935745477676,
0.007602800149470568,
0.010652096010744572,
0.004218744114041328,
0.010805390775203705,
0.04921874403953552,
0.02429335191845894,
-0.021376607939600945,
-0.03773709759116173,
0.02559887245297432,
0.022234264761209488,
-0.041671305894851685,
-0.02300521731376648,
-0.00013075555034447461,
0.015406152233481407,
0.011643973179161549,
0.05106264725327492,
-0.039596058428287506,
-0.00021718669449910522,
0.002353201387450099,
-0.03611694276332855,
0.055715128779411316,
-0.04370242357254028,
0.0195317305624485,
0.006488105747848749,
0.008365976624190807,
0.009760022163391113,
-0.02599283494055271,
0.017271820455789566,
0.022768979892134666,
0.0067146518267691135,
0.006164712365716696,
-0.014321568422019482,
-0.026809178292751312,
-0.030432146042585373,
0.030744042247533798,
0.04523687809705734,
-0.006377518177032471,
-0.060968492180109024,
0.020056823268532753,
-0.03422946482896805,
-0.0020292296539992094,
-0.005647910758852959,
-0.0005407954449765384,
0.027952928096055984,
-0.005119617562741041,
-0.0495222806930542,
-0.0032194815576076508,
0.02895016223192215,
-0.031108971685171127,
0.016836900264024734,
0.01938634365797043,
0.021195629611611366,
-0.01660194620490074,
-0.0046995566226542,
-0.06352367252111435,
-0.014808432199060917,
0.007568036206066608,
-0.013671365566551685,
0.002966158324852586,
0.019559942185878754,
-0.033533889800310135,
0.0026766823139041662,
-0.028224578127264977,
0.011279167607426643,
0.03197859600186348,
-0.003793230513110757,
-0.07227735966444016,
-0.03169086202979088,
-0.03186819329857826,
0.006758809555321932,
0.006861611269414425,
-0.022870246320962906,
0.010504280216991901,
-0.0296997781842947,
0.05675807595252991,
0.023267032578587532,
0.041739076375961304,
0.024432966485619545,
-0.014081834815442562,
0.004676229786127806,
-0.02468680590391159,
0.05710640922188759,
0.005251526832580566,
-0.030087439343333244,
0.007306983228772879,
-0.009351382963359356,
-0.0043830531649291515,
-0.07936615496873856,
0.018594952300190926,
-0.032219186425209045,
0.07748093456029892,
-0.04134966433048248,
0.021882999688386917,
0.05459414795041084,
0.014126542955636978,
0.005587335675954819,
0.02998187765479088,
-0.029660968109965324,
0.025426262989640236,
-0.019727550446987152,
-0.06108376011252403,
0.05475442111492157,
0.035738326609134674,
0.03179289028048515,
-0.012542126700282097,
0.025655003264546394,
0.026867806911468506,
0.01645820215344429,
-0.012930469587445259,
0.03265947103500366,
0.012876085937023163,
-0.037851862609386444,
-0.0028530163690447807,
-0.03326845169067383,
-0.03413385525345802,
0.019419636577367783,
0.050050850957632065,
-0.0014438651269301772,
-0.020504405722022057,
-0.021594354882836342,
0.024366259574890137,
0.010924242436885834,
0.012933791615068913,
0.0029509668238461018,
-0.058272477239370346,
0.028711000457406044,
-0.0215937290340662,
-0.0455554723739624,
-0.02078195847570896,
0.034630995243787766,
-0.037447672337293625,
-0.07323680818080902,
0.0033644249197095633,
-0.004814415238797665,
0.03428983315825462,
-0.009365929290652275,
-0.0037533335853368044,
-0.020402660593390465,
-0.0024495585821568966,
-0.01876235194504261,
0.004335586912930012,
-0.016446787863969803,
0.08046488463878632,
0.01571536809206009,
-0.056896697729825974,
0.0157221220433712,
-0.006555601488798857,
-0.0051293931901454926,
-0.0343896858394146,
-0.03587067499756813,
-0.04236850515007973,
0.007674267049878836,
0.005785106681287289,
0.0007704669842496514,
-0.010680132545530796,
-0.008458293043076992,
0.03646862506866455,
-0.0014210399240255356,
-0.00041207889444194734,
0.011494217440485954,
-0.01123110018670559,
0.022029375657439232,
-0.013798831030726433,
0.009920336306095123,
0.01897849142551422,
0.03188706934452057,
0.001561155542731285,
0.04015326127409935,
-0.06097588688135147,
0.022683115676045418,
-0.048812609165906906,
-0.011095953173935413,
-0.00037545477971434593,
-0.008996211923658848,
-0.009293374605476856,
0.0088212750852108,
-0.01763826608657837,
-0.0035285723861306906,
0.02825336344540119,
0.08190539479255676,
-0.022592490538954735,
0.01075052097439766,
0.04044567048549652,
-0.0023659246508032084,
0.010481363162398338,
-0.006764768157154322,
-0.030532868579030037,
0.008816231973469257,
-0.014076456427574158,
-0.02433038502931595,
0.012493680231273174,
0.047152210026979446,
-0.006878157611936331,
-0.01115054078400135,
-0.005044986493885517,
0.03343363478779793,
0.08153856545686722,
0.01065746322274208,
0.003125566989183426,
-0.04784461483359337,
0.013484342023730278,
0.028745852410793304,
-0.006311896722763777,
0.015910031273961067,
-0.0936632826924324,
-0.04878973588347435,
-0.00328194466419518,
-0.006792634725570679,
0.01332959532737732,
0.014541152864694595,
-0.025865549221634865,
0.020373262465000153,
0.05854981765151024,
0.03584711626172066,
-0.03391200304031372,
0.04846571758389473,
0.007664177566766739,
-0.02257412299513817,
0.03877739608287811,
0.0036226660013198853,
0.01720558851957321,
0.02174786478281021,
0.023424409329891205,
0.037591345608234406,
0.03282211720943451,
0.00934832077473402,
-0.019842810928821564,
0.0018595121800899506,
-0.04957284778356552,
0.033259373158216476,
-0.0140272481366992,
-0.03895027935504913,
0.046462997794151306,
-0.016337422654032707,
0.0011748819379135966,
0.01341019943356514,
-0.02342689409852028,
0.048572029918432236,
0.05698665603995323,
-0.03133682906627655,
-0.032744500786066055,
0.04315183684229851,
0.017448248341679573,
0.04652675241231918,
0.022567467764019966,
0.018550196662545204,
-0.019885186105966568,
-0.008450751192867756,
-0.012686905451118946,
0.006728787906467915,
-0.03718535229563713,
0.020446553826332092,
-0.0587862990796566,
0.021023625507950783,
-0.01017186138778925,
0.0006114409188739955,
0.048043303191661835,
-0.021131856366991997,
-0.00867290049791336,
0.016147324815392494,
0.019575176760554314,
-0.006373821757733822,
-0.04400235787034035,
0.033333420753479004,
-0.024814050644636154,
-0.017350992187857628,
-0.019487228244543076,
0.005857533309608698,
-0.022491497918963432,
0.0126281613484025,
0.008188174106180668,
0.030418861657381058,
-0.0047487905248999596,
-0.010348551906645298,
0.0038692806847393513,
0.022401072084903717,
-0.0501425638794899,
-0.02920323610305786,
-0.08475792407989502,
-0.03524868190288544,
0.015298322774469852,
-0.008308537304401398,
0.03015132062137127,
0.04939372465014458,
0.01661921665072441,
0.025094417855143547,
-0.014598299749195576,
0.0035801692865788937,
0.007041110657155514,
-0.02225549891591072,
-0.016287334263324738,
0.0024670963175594807,
0.03521724045276642,
0.034272611141204834,
0.02292671985924244,
0.005582957994192839,
0.027967270463705063,
-0.026074962690472603,
-0.045019764453172684,
0.027027470991015434,
0.043279845267534256,
-0.03215161710977554,
-0.02987644262611866,
-0.028522366657853127,
-0.025725701823830605,
-0.018728144466876984,
-0.03004760853946209,
0.01599223166704178,
0.017342139035463333,
0.0427912212908268,
-0.033555369824171066,
0.011919697746634483,
-0.02978323958814144,
0.015332745388150215,
0.08806806802749634,
0.03129252418875694,
0.01541599165648222,
0.033959176391363144,
0.015783345326781273,
0.026673519983887672,
0.039361171424388885,
-0.029253454878926277,
0.02019631490111351,
0.043823882937431335,
0.020624415948987007,
0.012259635142982006,
-0.010927965864539146,
-0.06155768036842346,
-0.000023625405447091907,
-0.030299033969640732,
0.015980903059244156,
0.020016608759760857,
0.029108626767992973,
0.05696750804781914,
-0.02274308353662491,
0.030384143814444542,
0.006494591012597084,
0.028797466307878494,
0.04981916397809982,
0.054124630987644196,
-0.03559131547808647,
0.011109651066362858,
-0.0028719082474708557,
0.003864160506054759,
0.009855451062321663,
-0.0366063266992569,
0.014827356673777103,
-0.0004302663146518171,
0.0023528130259364843,
-0.006793042179197073,
0.010867328383028507,
0.033104799687862396,
-0.0030078308191150427,
0.025357253849506378,
0.00921162310987711,
-0.046348005533218384,
-0.007856606505811214,
0.006703671533614397,
0.010125432163476944,
-0.047010388225317,
-0.005169238429516554,
-0.04579020291566849,
0.044626422226428986,
-0.02942332811653614,
0.020361701026558876,
0.007334074471145868,
0.015147412195801735,
-0.03261682391166687,
-0.021096164360642433,
0.024523375555872917,
0.03910183534026146,
0.01687384769320488,
0.049789849668741226,
-0.0005336189642548561,
0.015925340354442596,
-0.046937938779592514,
0.01951644942164421,
-0.04257141798734665,
-0.026047663763165474,
-0.01132974773645401,
-0.0291500985622406,
-0.004056799225509167,
-0.014414694160223007,
0.03462217003107071,
0.03288483992218971,
-0.005707255564630032,
0.02858545631170273,
-0.0031321831047534943,
0.05017330124974251,
-0.021375276148319244,
0.00597236817702651,
-0.008006622083485126,
-0.04220551997423172,
0.013406100682914257,
-0.021108200773596764,
0.012739542871713638,
-0.01735266111791134,
0.044677164405584335,
0.024410078302025795,
0.04349387437105179,
-0.006843090523034334,
-0.0417952835559845,
0.026874203234910965,
0.023368554189801216,
-0.045447107404470444,
0.00825362280011177,
0.03129170089960098,
0.05370929092168808,
0.04658073931932449,
-0.06623031944036484,
0.029208341613411903,
-0.016181962564587593,
-0.03842153772711754,
0.06833324581384659,
-0.014723086729645729,
-0.0023886424023658037,
-0.005980473943054676,
0.01954307034611702,
0.01822938211262226,
-0.025385066866874695,
0.020067576318979263,
0.0021021622233092785,
-0.03407682850956917,
-0.01931644417345524,
0.05130454897880554,
-0.011483441106975079,
-0.022130902856588364,
-0.05347662419080734,
-0.049246884882450104,
0.03423915058374405,
-0.021013570949435234,
-0.017531095072627068,
0.030099019408226013,
-0.05346228554844856,
-0.035327620804309845,
-0.00029486342100426555,
-0.016537481918931007,
-0.05789805203676224,
0.022354325279593468,
0.02445336803793907,
0.058395981788635254,
0.03084341436624527,
-0.03767268732190132,
0.016696982085704803,
-0.008769938722252846,
-0.027927283197641373,
0.012566404417157173,
0.016159947961568832,
0.009823637083172798,
-0.0071787964552640915,
-0.04954428970813751,
-0.010553954169154167,
0.044380832463502884,
-0.05249291658401489,
0.03486792370676994,
0.0065044076181948185,
-0.020131682977080345,
-0.03217128664255142,
0.02713214047253132,
0.011143132112920284,
0.01288433838635683,
0.03751666098833084,
0.028292080387473106,
0.012665364891290665,
-0.027396323159337044,
-0.018509605899453163,
-0.00270756590180099,
-0.0029001845978200436,
-0.017901478335261345,
-0.053577881306409836,
0.006585306953638792,
-0.010981477797031403,
-0.008890501223504543,
0.024681391194462776,
-0.06206221505999565,
0.01847904734313488,
-0.011031260713934898,
-0.0024834477808326483,
0.011598588898777962,
0.0010697225807234645,
0.05255790799856186,
-0.03832506760954857,
-0.03118746727705002,
0.03197568282485008,
0.030337298288941383,
-0.018563665449619293,
0.014640522189438343,
-0.010551726445555687,
-0.030647743493318558,
0.010959068313241005,
-0.010188980028033257,
-0.02198684588074684,
0.03080492466688156,
-0.01846785843372345,
0.014843868091702461,
-0.05372059717774391,
0.018462959676980972
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Resources for Optimum Transformers on IPU Systems * Optimum-Graphcore: SQuAD Examples * Graphcore Hugging Face Models & Datasets * GitHub Tutorial: BERT Fine-tuning on IPU using Hugging Face transformers * Graphcore Developer Portal * Graphcore GitHub * Graphcore SDK Containers on Docker Hub | [
0.04925501346588135,
-0.0259705837816,
0.02075963467359543,
0.048049196600914,
0.05083538219332695,
0.049642957746982574,
0.029998114332556725,
0.09061750024557114,
0.008272637613117695,
-0.06581771373748779,
-0.023571116849780083,
0.07468080520629883,
-0.0034617818892002106,
0.029566461220383644,
0.059782836586236954,
-0.025393063202500343,
-0.01922665908932686,
0.03129621967673302,
-0.03369540348649025,
0.04928593337535858,
-0.0204362440854311,
-0.07413788884878159,
0.051188595592975616,
0.00546602625399828,
0.02850552462041378,
-0.08735089749097824,
-0.0006298128864727914,
0.03705285117030144,
-0.0477324053645134,
0.02016671560704708,
-0.059438556432724,
-0.04596319794654846,
0.09022726118564606,
-0.06549260765314102,
-0.005468892399221659,
-0.029589444398880005,
-0.11430640518665314,
0.01812775991857052,
-0.011595192365348339,
-0.026246989145874977,
0.004961499944329262,
-0.0550638884305954,
-0.0515521839261055,
-0.04521368816494942,
0.014210796914994717,
-0.000713072600774467,
-0.13240458071231842,
0.12056832015514374,
0.008331097662448883,
-0.030929967761039734,
-0.024969004094600677,
0.06369355320930481,
0.009519476443529129,
-0.023111136630177498,
0.09149158000946045,
-0.01812371425330639,
0.04262113198637962,
-0.06662828475236893,
-0.0025669920723885298,
0.010582811199128628,
0.05347565934062004,
-0.016415879130363464,
-0.023923493921756744,
0.03311857953667641,
-0.00024625289370305836,
-0.00908584799617529,
-0.04760827124118805,
-0.024090394377708435,
-0.05984418839216232,
-0.049564044922590256,
-0.021769115701317787,
-0.015870150178670883,
-0.008933058939874172,
-0.030127471312880516,
-0.031275518238544464,
-0.0459117516875267,
0.008571901358664036,
0.019177651032805443,
0.026486219838261604,
0.056776732206344604,
-0.0416119322180748,
0.040571101009845734,
0.03806920722126961,
0.024917107075452805,
0.0015159879112616181,
0.031789232045412064,
0.06922048330307007,
-0.024884026497602463,
-0.08784034848213196,
0.06771347671747208,
-0.025426993146538734,
-0.11612290889024734,
-0.027338560670614243,
0.0000014478903267445276,
0.03957101330161095,
-0.04346657171845436,
-0.019401751458644867,
0.01975257322192192,
-0.02581506222486496,
-0.018393579870462418,
-0.012563030235469341,
0.01018547173589468,
0.007790272124111652,
-0.0005487371818162501,
-0.0686970204114914,
0.025195946916937828,
0.012778404168784618,
-0.10255748778581619,
-0.021337831392884254,
0.030428508296608925,
0.015319141559302807,
-0.021572832018136978,
0.046781960874795914,
0.09956981241703033,
-0.06750205904245377,
0.05004599317908287,
0.03551788255572319,
-0.030337011441588402,
-0.015048437751829624,
0.01016561035066843,
-0.008703208528459072,
0.11560460180044174,
0.029570413753390312,
0.028908241540193558,
0.03999926894903183,
0.051756203174591064,
-0.0022554066963493824,
-0.008308051154017448,
0.0006382885621860623,
-0.041636016219854355,
0.023662229999899864,
-0.029912343248724937,
0.05093446746468544,
0.008750555105507374,
0.015935534611344337,
-0.07433713227510452,
0.014850851148366928,
-0.010878203436732292,
-0.031091896817088127,
-0.015403415076434612,
-0.020353125408291817,
0.030146198347210884,
0.03001668117940426,
0.047734662890434265,
0.05372915789484978,
-0.058316804468631744,
-0.0912039577960968,
0.07896346598863602,
0.023560041561722755,
0.015456635504961014,
-0.06438427418470383,
0.07619833201169968,
-0.015490858815610409,
-0.03227538987994194,
-0.018509378656744957,
0.04862856864929199,
0.0046836151741445065,
-0.03723573684692383,
-0.06660526990890503,
-0.06749513000249863,
-0.04813504219055176,
0.06049177050590515,
-0.09114230424165726,
-0.012837287038564682,
0.020020905882120132,
-0.00020438972569536418,
-0.004120191093534231,
0.01650954782962799,
0.00001049378261086531,
-0.05696045234799385,
0.020263122394680977,
-0.0277202520519495,
0.05727583169937134,
0.022121531888842583,
-0.016834836453199387,
0.04446403309702873,
0.03105325438082218,
0.06538659334182739,
-0.08202419430017471,
-0.04140757396817207,
-0.047962307929992676,
0.0731811597943306,
0.00661898497492075,
0.12227188050746918,
0.02066005952656269,
-0.026716185733675957,
-0.006216590292751789,
0.022840779274702072,
0.029562339186668396,
-0.013533597812056541,
0.0018957945285364985,
-0.026104629039764404,
0.06514375656843185,
-0.0009415626409463584,
0.07765365391969681,
-0.04483671113848686,
-0.04517548531293869,
0.06507927924394608,
0.0819830670952797,
0.02425622195005417,
0.03470170497894287,
-0.013743413612246513,
0.010638659819960594,
-0.013199878856539726,
-0.05255882069468498,
0.007035749964416027,
-0.0005401981179602444,
-0.0917130783200264,
0.00421709893271327,
0.031009485945105553,
-0.007132845930755138,
-0.14753663539886475,
0.03548989072442055,
-0.08329269289970398,
0.0213727168738842,
-0.12287451326847076,
-0.029191570356488228,
0.04162578284740448,
0.06391457468271255,
-0.03702237829566002,
0.14905372262001038,
0.01657605916261673,
0.007138346787542105,
0.027157776057720184,
-0.01358337514102459,
0.03259287029504776,
0.05672931298613548,
0.04559032618999481,
0.10398049652576447,
-0.05875735357403755,
0.018346933647990227,
-0.02184021845459938,
-0.03458668291568756,
0.033868443220853806,
-0.030308058485388756,
-0.019154973328113556,
0.009325808845460415,
0.041369326412677765,
0.0823003277182579,
-0.011245131492614746,
0.0006641338113695383,
-0.03090309537947178,
-0.026362812146544456,
-0.016743304207921028,
0.03268355503678322,
0.02026551589369774,
0.06601601094007492,
-0.0029973676428198814,
-0.0460604652762413,
-0.011525713838636875,
-0.05502167344093323,
0.04256678372621536,
-0.011231260374188423,
-0.031266458332538605,
0.03590783104300499,
-0.0180064644664526,
0.0075129494071006775,
0.016199558973312378,
-0.005841976031661034,
0.023459192365407944,
0.015798162668943405,
-0.027095258235931396,
-0.03439553827047348,
-0.0035420949570834637,
0.012348630465567112,
-0.03655548766255379,
-0.005845213774591684,
0.016852110624313354,
-0.007165866903960705,
0.015708299353718758,
0.008507971651852131,
0.003934156149625778,
0.045206084847450256,
-0.018400542438030243,
0.006536146625876427,
0.039088331162929535,
0.02747403271496296,
-0.027566151693463326,
-0.0183405764400959,
0.011968689039349556,
0.017302870750427246,
-0.037570755928754807,
0.026750925928354263,
0.01379497442394495,
0.012749571353197098,
-0.031378842890262604,
0.028282955288887024,
-0.052745699882507324,
-0.010187671519815922,
-0.004324859008193016,
-0.009702746756374836,
0.04092374071478844,
-0.0374482087790966,
-0.004429491236805916,
0.002502856310456991,
0.014823897741734982,
-0.0026377341710031033,
-0.016753260046243668,
-0.013591216877102852,
0.03229093924164772,
0.008469647727906704,
0.019821472465991974,
-0.015357375144958496,
-0.0010569894220679998,
-0.0360758937895298,
0.01314117293804884,
0.01906384341418743,
0.012429366819560528,
-0.10432446748018265,
-0.015901723876595497,
-0.014864702709019184,
0.05292714014649391,
-0.035369668155908585,
-0.013035401701927185,
0.029859738424420357,
-0.01657453179359436,
-0.028851207345724106,
-0.0025538497138768435,
0.03728652745485306,
-0.010262236930429935,
0.0027282906230539083,
0.01362906489521265,
0.009671119973063469,
0.01517573557794094,
0.014001277275383472,
-0.04008294641971588,
0.005568937864154577,
0.004777843598276377,
-0.021808359771966934,
0.02998833730816841,
0.020335476845502853,
-0.016636373475193977,
-0.0026402524672448635,
-0.010229737497866154,
0.012566007673740387,
0.009987183846533298,
0.006798469461500645,
-0.042840439826250076,
-0.024949301034212112,
-0.00371726555749774,
-0.025598589330911636,
0.036427393555641174,
-0.006516802590340376,
0.011402122676372528,
-0.07105793058872223,
0.02530554123222828,
0.026249844580888748,
0.03832891210913658,
0.007360904477536678,
0.00112819520290941,
0.007403204683214426,
-0.03728291764855385,
0.03402867168188095,
-0.007075468078255653,
-0.022485170513391495,
-0.015212811529636383,
0.02755492925643921,
0.0046708243899047375,
-0.07495864480733871,
-0.00017901783576235175,
-0.017718303948640823,
0.051076069474220276,
-0.02047734707593918,
0.0012467914493754506,
0.026010235771536827,
0.04153848811984062,
0.010638113133609295,
0.013160890899598598,
-0.05237775668501854,
0.027661627158522606,
-0.021648522466421127,
-0.009217606857419014,
0.010412823408842087,
0.048278793692588806,
0.028517255559563637,
0.009973825886845589,
0.019976047798991203,
0.010228512808680534,
0.018307220190763474,
-0.0069425227120518684,
0.028603216633200645,
0.014292649924755096,
-0.031019840389490128,
0.010811829939484596,
-0.0119528379291296,
0.012249759398400784,
0.04212488234043121,
0.019809693098068237,
-0.04701884090900421,
-0.044593341648578644,
-0.04266830533742905,
0.0015686849365010858,
0.02138718031346798,
-0.0030537189450114965,
0.007766148075461388,
-0.04815160483121872,
-0.0053937784396111965,
0.007440860848873854,
-0.013745537959039211,
-0.03460223972797394,
0.04731639474630356,
-0.027034657076001167,
-0.046658579260110855,
0.030431287363171577,
0.015349308028817177,
0.01987704634666443,
-0.013050353154540062,
0.014401432126760483,
-0.00827531423419714,
0.002174876630306244,
-0.015634329989552498,
0.02180306240916252,
-0.027867954224348068,
0.07133928686380386,
-0.020031698048114777,
-0.04792289063334465,
0.03893886134028435,
0.004564353730529547,
0.035486143082380295,
-0.04133637249469757,
-0.03339836746454239,
-0.048147138208150864,
0.007923215627670288,
0.03355305269360542,
-0.012146555818617344,
-0.00969906710088253,
-0.006030695512890816,
0.029667148366570473,
-0.021698975935578346,
0.02686191163957119,
-0.013661304488778114,
-0.0008711833506822586,
0.01668662205338478,
-0.008970651775598526,
0.01932983472943306,
0.02684674598276615,
-0.003467521397396922,
-0.015949619933962822,
0.018264811486005783,
-0.04731009155511856,
0.0387432835996151,
-0.013950439170002937,
0.001001997385174036,
0.009843872860074043,
-0.011080666445195675,
-0.017227698117494583,
-0.004847364500164986,
-0.030198415741324425,
-0.01747446320950985,
0.0277942456305027,
0.09187869727611542,
-0.020563222467899323,
0.032271575182676315,
0.009571344591677189,
-0.04289538040757179,
0.011882804334163666,
0.008716244250535965,
-0.004502097610384226,
0.04418570175766945,
-0.02078038640320301,
-0.007448852527886629,
0.058291953057050705,
0.05647836625576019,
-0.030451850965619087,
0.019541138783097267,
0.029262181371450424,
-0.004601518623530865,
0.06670264154672623,
0.031012725085020065,
0.0026880046352744102,
-0.04827702045440674,
-0.01959136128425598,
0.027471352368593216,
0.00031539780320599675,
0.011846990324556828,
-0.0877874419093132,
-0.025344565510749817,
-0.016577033326029778,
-0.010079216212034225,
-0.00817022193223238,
0.02989448606967926,
-0.018744656816124916,
0.037666887044906616,
0.0599350668489933,
0.005487307906150818,
-0.01890563778579235,
0.03564359247684479,
0.01990550197660923,
-0.022426394745707512,
0.012343138456344604,
0.01932249404489994,
0.003386531723663211,
-0.022677460685372353,
0.03571413457393646,
0.05379265546798706,
0.02948688715696335,
-0.009713399223983288,
0.013435075990855694,
0.0035766561049968004,
-0.036302000284194946,
0.020018193870782852,
-0.032290372997522354,
-0.025678085163235664,
0.02713238075375557,
0.0028128866106271744,
0.016999375075101852,
0.01641213335096836,
-0.023836061358451843,
0.04340774938464165,
0.049661289900541306,
-0.04994138702750206,
-0.021085718646645546,
0.02054734341800213,
0.021030573174357414,
0.019404124468564987,
-0.004239743109792471,
0.010574858635663986,
-0.05762982740998268,
-0.008132603019475937,
-0.014590967446565628,
0.00330866826698184,
-0.0350537970662117,
0.03688778728246689,
-0.05335938557982445,
-0.012038089334964752,
-0.024478713050484657,
0.03976338356733322,
0.045137640088796616,
-0.016616202890872955,
0.009808954782783985,
0.003647204488515854,
0.011181000620126724,
0.0027914296369999647,
-0.009742089547216892,
0.012950414791703224,
0.0026733968406915665,
-0.02889484539628029,
0.011934165842831135,
0.022755037993192673,
-0.01714971289038658,
0.013242317363619804,
0.041886020451784134,
0.022745339199900627,
0.006746136117726564,
-0.03486403077840805,
0.002900935709476471,
0.033705223351716995,
-0.01152937114238739,
-0.0070865582674741745,
-0.05524985119700432,
-0.03286872059106827,
0.005321660544723272,
-0.0026075339410454035,
0.037154246121644974,
0.07970248907804489,
0.01098341029137373,
0.01124250702559948,
-0.009338299743831158,
0.018583353608846664,
-0.004209740087389946,
-0.005529343616217375,
-0.013562681153416634,
0.011371173895895481,
0.04495084285736084,
0.01198944915086031,
0.014867749065160751,
0.0024690928403288126,
0.004697827622294426,
-0.012094074860215187,
-0.04470100253820419,
0.03593244031071663,
0.03541763126850128,
-0.035479575395584106,
0.012086043134331703,
-0.04603327438235283,
-0.048055343329906464,
0.002534405793994665,
0.015306332148611546,
0.01779235526919365,
0.056655194610357285,
0.041732870042324066,
-0.020535707473754883,
-0.031250592321157455,
-0.018495535477995872,
0.03871262073516846,
0.09135323762893677,
0.019611144438385963,
0.006140551529824734,
0.022906219586730003,
0.023535231128335,
0.007629235740751028,
0.02087215706706047,
-0.03888339921832085,
0.02678009867668152,
0.02984965406358242,
0.010484736412763596,
0.014670129865407944,
0.0027030620258301497,
-0.017218245193362236,
-0.022514285519719124,
-0.029775341972708702,
0.017057884484529495,
-0.022105777636170387,
0.008799192495644093,
0.05017745494842529,
-0.025445949286222458,
0.006594264414161444,
-0.014292247593402863,
0.035937268286943436,
0.05092616006731987,
0.024583185091614723,
-0.060229334980249405,
0.047522272914648056,
0.012937244027853012,
0.003800481790676713,
0.03339763730764389,
-0.022376300767064095,
-0.01620040461421013,
-0.0013775654369965196,
0.06851178407669067,
-0.00742982467636466,
0.0231412835419178,
0.005567791406065226,
-0.002744299592450261,
0.020412007346749306,
-0.01043530460447073,
-0.04483925923705101,
-0.006874337326735258,
0.011526031419634819,
-0.013733409345149994,
-0.022187035530805588,
-0.0013596147764474154,
-0.04020678997039795,
-0.002656675176694989,
-0.021661821752786636,
0.0038518973160535097,
-0.014796560630202293,
0.014481605030596256,
-0.01270024012774229,
0.01887543499469757,
0.007778447587043047,
0.038931041955947876,
0.016447968780994415,
0.0280364528298378,
0.006950092501938343,
0.024429135024547577,
-0.04618218168616295,
0.0031571683939546347,
-0.021066512912511826,
-0.028532279655337334,
-0.017399804666638374,
-0.013130648992955685,
0.0024792165495455265,
-0.03143575042486191,
0.029167091473937035,
0.026101889088749886,
-0.01089885737746954,
0.03032001666724682,
0.017864765599370003,
0.018559910356998444,
-0.026934867724776268,
0.04900188744068146,
-0.003681484842672944,
0.005018656142055988,
-0.0039697750471532345,
-0.0600414015352726,
0.0345168374478817,
-0.0238528773188591,
0.014150050468742847,
0.03309682384133339,
0.028230896219611168,
-0.053625043481588364,
-0.043434951454401016,
0.007515361066907644,
0.016359061002731323,
-0.026808639988303185,
0.0185996200889349,
0.0019636470824480057,
-0.006199673283845186,
0.016268232837319374,
-0.028400469571352005,
0.01334351859986782,
-0.02759760431945324,
-0.0006751194014213979,
0.06626511365175247,
-0.0012237315531820059,
-0.018693270161747932,
-0.024363473057746887,
0.02385123074054718,
0.03009561449289322,
-0.015799924731254578,
0.016832735389471054,
-0.007548168767243624,
-0.011014393530786037,
-0.03062153421342373,
0.03645985946059227,
0.004366951063275337,
-0.0095303263515234,
-0.048437803983688354,
-0.048891909420490265,
0.015086542814970016,
-0.020408736541867256,
-0.01232893392443657,
0.02886888198554516,
-0.06540734320878983,
-0.015670379623770714,
-0.017861828207969666,
-0.038891781121492386,
-0.04618620499968529,
0.010335271246731281,
0.06376290321350098,
0.055783454328775406,
0.0473664365708828,
-0.0319741852581501,
-0.008022863417863846,
-0.026105698198080063,
-0.015892749652266502,
0.0082631791010499,
0.06047636270523071,
0.0025713127106428146,
-0.0004322652530390769,
-0.0690031498670578,
-0.010339022614061832,
0.032236386090517044,
-0.06092478707432747,
0.0033055420499294996,
0.0430586114525795,
-0.012423542328178883,
-0.01579420454800129,
-0.0012049267534166574,
0.018971212208271027,
0.02392125502228737,
0.046318721026182175,
0.003871629713103175,
-0.010285443626344204,
-0.022489190101623535,
0.005624935496598482,
-0.03414512425661087,
-0.0024075128603726625,
-0.033673424273729324,
-0.023967033252120018,
0.00591652188450098,
0.017762644216418266,
-0.008187652565538883,
0.017436906695365906,
-0.02658320777118206,
0.01251972559839487,
-0.008561035618185997,
-0.0025964907836169004,
-0.0395909920334816,
-0.000028530406780191697,
0.020314902067184448,
-0.04308566823601723,
-0.07586587965488434,
0.04310428723692894,
0.025343678891658783,
-0.004301047883927822,
-0.0072006178088486195,
-0.010320574045181274,
-0.06602808833122253,
0.010362107306718826,
-0.000350845861248672,
0.014762800186872482,
0.03803974390029907,
0.04568077623844147,
-0.008894773200154305,
-0.0192522294819355,
0.007244057487696409
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Set up PopTorch for the IPU PopTorch is part of the Poplar SDK. It provides functions that allow PyTorch models to run on the IPU with minimal code changes. You can create and activate a PopTorch environment following the guide Setting up PyTorch for the IPU: $ virtualenv -p python3 ~/workspace/poptorch_env $ source ~/workspace/poptorch_env/bin/activate $ pip3 install -U pip $ pip3 install /opt/gc/poplar_sdk-ubuntu_18_04-2.3.0+774-b47c577c2a/poptorch-<sdk-version>.whl | [
0.057165440171957016,
0.06101100519299507,
0.05826018005609512,
0.03339533507823944,
0.04951012134552002,
-0.038040585815906525,
-0.016251496970653534,
0.07681751996278763,
0.01375945657491684,
-0.01602195017039776,
-0.10952010750770569,
0.024233972653746605,
-0.010670483112335205,
0.011213645339012146,
0.05446741357445717,
-0.002603091998025775,
-0.017980270087718964,
0.006725213956087828,
-0.029319865629076958,
0.060122299939394,
0.004851310979574919,
-0.035708535462617874,
-0.003573967842385173,
0.003416892373934388,
-0.024415072053670883,
-0.0878520980477333,
-0.02337707206606865,
0.01940162666141987,
-0.054179977625608444,
0.010363168083131313,
-0.07358970493078232,
-0.05570090189576149,
0.06846842169761658,
-0.042454153299331665,
0.039299376308918,
-0.0012919764267280698,
-0.02846362441778183,
0.025867054238915443,
0.042370107024908066,
-0.04769410938024521,
0.01941116526722908,
-0.02858063392341137,
-0.032000377774238586,
-0.00554876821115613,
-0.017231876030564308,
-0.016389116644859314,
-0.14886826276779175,
0.10075899958610535,
0.004011933226138353,
0.026893306523561478,
-0.06666537374258041,
0.028912805020809174,
0.026965055614709854,
-0.0473172552883625,
0.03472762554883957,
0.012584648095071316,
0.015696140006184578,
0.002463633194565773,
0.044601500034332275,
-0.02087678387761116,
0.046610813587903976,
0.01922430843114853,
0.002536593936383724,
0.018279867246747017,
0.02342485636472702,
-0.01648389920592308,
0.027600498870015144,
-0.045840390026569366,
-0.05378441512584686,
-0.017828110605478287,
-0.04156120866537094,
-0.03722776100039482,
0.022694045677781105,
-0.045166295021772385,
-0.016812248155474663,
-0.0472368560731411,
0.04894627630710602,
0.07606164366006851,
0.04132620990276337,
0.09182452410459518,
-0.008352713659405708,
0.0395980179309845,
0.04907161369919777,
0.018047764897346497,
0.012316486798226833,
-0.04244087636470795,
0.04300062358379364,
-0.08184707164764404,
0.054412733763456345,
0.03461835905909538,
-0.045844800770282745,
-0.08610078692436218,
0.025177843868732452,
0.05772365257143974,
0.009368414990603924,
-0.018445521593093872,
-0.04840988665819168,
-0.02424137480556965,
-0.02879510261118412,
0.014546061865985394,
-0.0014657757710665464,
-0.07076744735240936,
-0.0024412393104285,
-0.0822051540017128,
-0.05720385164022446,
0.011450142599642277,
-0.016209788620471954,
-0.014718023128807545,
-0.06150024011731148,
0.014275568537414074,
-0.01985013484954834,
-0.03282929211854935,
-0.017749641090631485,
0.04379679635167122,
0.032232511788606644,
-0.01110847294330597,
0.08820237219333649,
0.02146141789853573,
0.021570691838860512,
0.0010171228786930442,
-0.07336113601922989,
0.07171544432640076,
0.0602862574160099,
0.0748097151517868,
0.01650237664580345,
0.07599572837352753,
0.03017445281147957,
0.007230694871395826,
-0.04988618195056915,
-0.012514921836555004,
0.12091222405433655,
0.02458077110350132,
0.06256216764450073,
0.013632230460643768,
0.08365519344806671,
-0.05950627848505974,
0.019448157399892807,
-0.005686734803020954,
-0.002676331903785467,
0.04904117062687874,
-0.03148527443408966,
0.007948707789182663,
0.05418234318494797,
0.0606047622859478,
-0.03801417350769043,
0.0069323633797466755,
-0.0532773919403553,
0.05312083661556244,
-0.013631092384457588,
-0.04125775396823883,
-0.019978152588009834,
0.01835441403090954,
-0.006715951021760702,
-0.0060920268297195435,
0.010209228843450546,
0.05592477694153786,
-0.0034759275149554014,
0.02077910304069519,
-0.05655226111412048,
-0.04569843411445618,
0.027585618197917938,
0.019746271893382072,
-0.07581374794244766,
-0.05888315290212631,
0.040683917701244354,
0.038065508008003235,
0.06487944722175598,
0.013268318958580494,
0.071621373295784,
-0.06513937562704086,
-0.02377024106681347,
-0.02124069258570671,
0.06868323683738708,
0.009423631243407726,
0.0647803321480751,
0.054291222244501114,
0.041062746196985245,
0.045665960758924484,
-0.007563223596662283,
-0.001068408484570682,
-0.045628756284713745,
0.04636367782950401,
-0.07286560535430908,
0.07404125481843948,
-0.056105948984622955,
-0.0423659011721611,
0.05453163757920265,
-0.01903432607650757,
0.03988805413246155,
0.037761539220809937,
-0.04368250444531441,
-0.036352816969156265,
0.043130237609148026,
-0.017448028549551964,
0.06967993825674057,
-0.02124509960412979,
-0.05287798494100571,
0.03431423008441925,
0.06914590299129486,
0.0678754448890686,
0.030701538547873497,
0.056749772280454636,
0.004079622682183981,
0.03074917569756508,
-0.02759432978928089,
0.04776059463620186,
0.049268681555986404,
0.012466679327189922,
0.046066634356975555,
0.003511757357046008,
0.028264522552490234,
-0.14050273597240448,
0.06786085665225983,
-0.09400687366724014,
0.035564761608839035,
0.012310382910072803,
-0.06005608290433884,
0.029544644057750702,
0.07399491965770721,
0.07500065118074417,
0.10402213782072067,
0.040688421577215195,
0.046218398958444595,
-0.046175725758075714,
0.005708765238523483,
0.03655657172203064,
0.1033448800444603,
0.05433100461959839,
0.0874471589922905,
-0.06228985637426376,
-0.014416088350117207,
-0.05473989620804787,
-0.0890381932258606,
0.11479072272777557,
0.01828671433031559,
-0.028459440916776657,
0.0029902698006480932,
-0.025480661541223526,
0.03884398937225342,
-0.08452551811933517,
0.012563145719468594,
0.011880126781761646,
-0.008596108295023441,
0.02610704116523266,
0.06840761750936508,
0.0033723306842148304,
0.053177788853645325,
0.004817262291908264,
0.02353578433394432,
-0.01722666248679161,
-0.02271062694489956,
-0.006013279780745506,
-0.0067925830371677876,
0.000005559257715503918,
0.09369437396526337,
-0.007937448099255562,
-0.046407874673604965,
-0.0064989058300852776,
0.0295267254114151,
0.02792251482605934,
0.015410086140036583,
-0.037720683962106705,
-0.03334251418709755,
-0.07458174973726273,
-0.019597185775637627,
-0.022610168904066086,
-0.00803292728960514,
-0.0075425817631185055,
-0.02543908730149269,
-0.007256184238940477,
0.021484633907675743,
-0.03983202204108238,
0.022979235276579857,
-0.01200372539460659,
-0.021479139104485512,
0.0294918455183506,
0.01720304787158966,
-0.03380434215068817,
-0.019255463033914566,
-0.03802243247628212,
0.015282440930604935,
-0.06219154968857765,
-0.010349851101636887,
0.013106315396726131,
0.016785582527518272,
0.011243496090173721,
0.017532000318169594,
-0.03037535771727562,
-0.0474775992333889,
-0.05489462614059448,
-0.02543630264699459,
0.0203892569988966,
0.007364409510046244,
0.014147674664855003,
-0.03452219069004059,
-0.026364702731370926,
-0.009278427809476852,
0.0007920514908619225,
-0.033299852162599564,
-0.0062863463535904884,
0.006360544357448816,
-0.0011520934058353305,
0.00978158414363861,
-0.0015759147936478257,
-0.04032113775610924,
-0.010624720714986324,
0.013407411985099316,
-0.014153716154396534,
-0.10344400256872177,
-0.018886849284172058,
-0.00710023008286953,
0.017722800374031067,
-0.012142081744968891,
-0.04157007858157158,
0.03784641996026039,
0.002314548473805189,
-0.009761380963027477,
0.004010126926004887,
0.005283324979245663,
-0.02312334068119526,
0.042615097016096115,
0.008533792570233345,
-0.02804945595562458,
0.0020129592157900333,
0.010537642054259777,
-0.005724471528083086,
-0.017796704545617104,
-0.005582654383033514,
-0.012109149247407913,
0.02145300805568695,
0.0006669770809821784,
-0.0038993244525045156,
0.0036814843770116568,
-0.018906546756625175,
-0.0041597443632781506,
0.0032937105279415846,
-0.04289807006716728,
-0.00853507686406374,
0.015831271186470985,
-0.028764944523572922,
0.004652239382266998,
0.0034706471487879753,
-0.036692503839731216,
-0.016411297023296356,
0.016791794449090958,
-0.005996461492031813,
0.02193652279675007,
0.027383603155612946,
-0.044152937829494476,
0.024698426946997643,
-0.01914556510746479,
-0.00936917681246996,
0.0353558175265789,
-0.02943570166826248,
-0.064170241355896,
-0.015200081281363964,
-0.00014665864000562578,
-0.018595201894640923,
-0.03502701222896576,
0.024627210572361946,
-0.006010333076119423,
0.015048682689666748,
-0.014370317570865154,
0.002158534247428179,
0.0002729166590142995,
0.06101306527853012,
0.048762790858745575,
-0.008592030964791775,
-0.038333818316459656,
0.05089140683412552,
-0.010789616033434868,
0.034653667360544205,
-0.013140021823346615,
0.05806804820895195,
0.05824447423219681,
-0.012406936846673489,
-0.015253117308020592,
0.016023434698581696,
-0.015114114619791508,
-0.012014620006084442,
-0.02514808252453804,
0.018223837018013,
-0.03816754370927811,
0.012384406290948391,
-0.038537781685590744,
0.026379089802503586,
0.014613009989261627,
0.019208669662475586,
-0.020000753924250603,
-0.06841205060482025,
0.013647548854351044,
-0.00989952590316534,
-0.005237983074039221,
0.006903885863721371,
0.012957023456692696,
-0.044317733496427536,
0.04012180119752884,
0.021917670965194702,
-0.02269335836172104,
-0.05423341691493988,
0.011794189922511578,
-0.003718838794156909,
-0.02707393653690815,
0.02429712563753128,
0.005588131491094828,
0.018846886232495308,
0.018755964934825897,
0.0047830031253397465,
0.007661798968911171,
-0.05170430243015289,
-0.033953387290239334,
0.03155308589339256,
-0.021795470267534256,
0.030728530138731003,
-0.04593772068619728,
-0.03337838500738144,
0.008709767833352089,
0.0044920858927071095,
-0.00013317358389031142,
-0.019860267639160156,
0.0018559626769274473,
-0.017091332003474236,
-0.010364647023379803,
0.036236945539712906,
0.04556904733181,
-0.04087992012500763,
-0.03802049160003662,
0.01612301543354988,
-0.05566828325390816,
0.03636500611901283,
0.024654190987348557,
-0.04823192209005356,
-0.01744459941983223,
-0.029824381694197655,
0.023643888533115387,
-0.003797653131186962,
-0.003799280384555459,
-0.0267664585262537,
-0.05049878731369972,
-0.0018857057439163327,
0.02896011434495449,
-0.005564237013459206,
-0.013025068677961826,
0.010756152682006359,
-0.006520106922835112,
0.014447023160755634,
0.025564944371581078,
-0.04000638797879219,
-0.011921966448426247,
-0.031510114669799805,
0.030852098017930984,
-0.017332497984170914,
0.05215425789356232,
0.0013489759294316173,
-0.031705036759376526,
0.04243140667676926,
-0.05126451328396797,
0.009331691078841686,
0.03930635377764702,
-0.041582562029361725,
-0.03950633108615875,
0.0026857350021600723,
0.04716673120856285,
0.01384505070745945,
-0.00478971004486084,
-0.0072767785750329494,
0.0297477375715971,
0.04569927230477333,
0.026959732174873352,
0.001818002318032086,
-0.019413959234952927,
-0.0009616655297577381,
0.04107428342103958,
0.0016569108702242374,
-0.00344635802321136,
-0.05008486285805702,
-0.001962600741535425,
-0.04247364401817322,
-0.04635119438171387,
0.01981368288397789,
0.005068069323897362,
-0.011847030371427536,
0.04473869875073433,
0.016988441348075867,
0.04132387042045593,
0.005892179906368256,
0.04922449588775635,
0.01800248585641384,
0.050317034125328064,
0.02244807779788971,
-0.008336428552865982,
-0.0007269514608196914,
-0.0008250429527834058,
0.024197567254304886,
0.01820283569395542,
-0.011402999982237816,
0.04261801391839981,
0.0047011408023536205,
0.013925887644290924,
-0.028823908418416977,
0.005141163244843483,
-0.03264525532722473,
-0.021816294640302658,
0.03761104494333267,
-0.041009727865457535,
-0.00925084762275219,
-0.01255208719521761,
-0.012978284619748592,
0.0033414936624467373,
0.03122173622250557,
-0.05407878756523132,
-0.0121537446975708,
0.015002693049609661,
0.025791244581341743,
0.0036464983131736517,
0.014428598806262016,
0.026347016915678978,
0.000740855815820396,
-0.028354473412036896,
-0.008429080247879028,
0.013960116542875767,
-0.00740768201649189,
-0.03226500377058983,
-0.005231370683759451,
-0.043116357177495956,
-0.005224238615483046,
-0.015625104308128357,
0.03212105855345726,
0.0011874912306666374,
-0.0010927740950137377,
0.018100839108228683,
0.0174405537545681,
0.040222302079200745,
-0.008397417142987251,
0.020485201850533485,
0.008185354992747307,
-0.004346562083810568,
0.018853245303034782,
0.05917397141456604,
-0.01349444966763258,
0.012763519771397114,
-0.010269972495734692,
0.05873310938477516,
0.016762342303991318,
-0.03294571116566658,
0.018350746482610703,
-0.0029753665439784527,
0.015449578873813152,
-0.02538159489631653,
-0.0266497153788805,
-0.050230421125888824,
-0.0179255660623312,
0.0023703735787421465,
-0.03451633080840111,
0.030112827196717262,
-0.027626141905784607,
-0.005463727284222841,
-0.054607242345809937,
0.01666516438126564,
0.006799629889428616,
-0.02678973786532879,
-0.024206701666116714,
0.008973566815257072,
0.05852764844894409,
0.02389664202928543,
0.017191126942634583,
-0.01969059742987156,
-0.010221374221146107,
0.03529428690671921,
-0.10162169486284256,
-0.02082347683608532,
0.03916371613740921,
-0.0020690516103059053,
0.03984873741865158,
-0.06051480025053024,
-0.030043955892324448,
0.005852401722222567,
0.0164209995418787,
0.04083695262670517,
0.03259774670004845,
-0.04292924329638481,
-0.03315971791744232,
0.008790506981313229,
-0.00329933175817132,
0.0360092967748642,
0.04087239131331444,
-0.018596770241856575,
0.00021177524467930198,
-0.017465848475694656,
0.03274725377559662,
0.009404155425727367,
-0.021365825086832047,
-0.015161576680839062,
0.04085756838321686,
0.03955702856183052,
-0.02471151016652584,
0.022539488971233368,
0.03960723802447319,
-0.01959998905658722,
-0.022617409005761147,
-0.03450879827141762,
0.03089185617864132,
-0.0008514832006767392,
0.008542277850210667,
0.009251517243683338,
-0.0027103875763714314,
-0.016681255772709846,
-0.00792002584785223,
0.08182484656572342,
0.047188010066747665,
0.0230526402592659,
-0.03090202622115612,
0.02273513749241829,
-0.07928741723299026,
0.0023547608871012926,
-0.0279934611171484,
0.0038026422262191772,
-0.03858024999499321,
0.021749449893832207,
0.025207610800862312,
-0.0296335369348526,
-0.023016687482595444,
0.0013349949149414897,
0.026645641773939133,
0.03605744615197182,
-0.017172466963529587,
0.00381346489302814,
-0.02671695500612259,
0.004224190954118967,
-0.002553025959059596,
-0.022296536713838577,
-0.010378764942288399,
-0.039008162915706635,
-0.031913939863443375,
-0.011593962088227272,
0.023000342771410942,
-0.004766950849443674,
-0.04141034558415413,
0.023570921272039413,
-0.03792547807097435,
0.005578501615673304,
0.03211524337530136,
-0.01245791930705309,
0.05000434070825577,
-0.011989361606538296,
0.01843414269387722,
-0.024185745045542717,
0.020222989842295647,
-0.01371319591999054,
0.06038481369614601,
0.010939187370240688,
-0.0019781494047492743,
-0.011114963330328465,
-0.009724325500428677,
0.022507837042212486,
0.006335677579045296,
-0.03504341095685959,
0.050311993807554245,
0.015612742863595486,
0.02347657084465027,
0.003298449097201228,
0.05365246534347534,
-0.048431701958179474,
-0.01011770311743021,
0.0035856221802532673,
-0.019864104688167572,
0.033062372356653214,
-0.03269554674625397,
0.07344331592321396,
0.03297293186187744,
-0.004411209374666214,
0.002023101784288883,
-0.024265354499220848,
-0.0013999395305290818,
-0.01568770967423916,
-0.017347516492009163,
0.015447728335857391,
0.010341252200305462,
0.012454486452043056,
0.007188449148088694,
-0.012661602348089218,
0.008819161914288998,
-0.031285736709833145,
-0.007501011714339256,
0.03843081742525101,
0.04200907051563263,
0.01840640977025032,
0.004173292312771082,
0.0353618860244751,
-0.030902951955795288,
-0.004515182226896286,
0.0008411741582676768,
0.05000658705830574,
0.00589104276150465,
0.008315369486808777,
-0.008877904154360294,
-0.034915726631879807,
0.025384481996297836,
-0.007049831096082926,
-0.06767230480909348,
-0.023236429318785667,
-0.006445036735385656,
-0.002750137820839882,
-0.008545039221644402,
0.005751241929829121,
-0.0010499026393517852,
-0.004014435689896345,
-0.030982067808508873,
-0.009273857809603214,
-0.018830155953764915,
0.06996919959783554,
0.060530535876750946,
-0.009768187999725342,
-0.05458362028002739,
-0.03928640857338905,
-0.005704209208488464,
-0.009982184506952763,
0.04463696479797363,
0.025263117626309395,
0.021949438378214836,
-0.022661622613668442,
-0.07447260618209839,
0.01284956093877554,
-0.028739752247929573,
-0.05380610004067421,
-0.03500303998589516,
0.007014166098088026,
-0.03109074756503105,
-0.029996201395988464,
-0.0031414565164595842,
0.07587084919214249,
0.003399750217795372,
0.05067747086286545,
-0.029166987165808678,
-0.033527132123708725,
-0.0003641772491391748,
-0.02149934507906437,
-0.04273620992898941,
-0.019551148638129234,
-0.02070573903620243,
-0.037536486983299255,
0.030439669266343117,
0.0024275491014122963,
-0.0009389074984937906,
-0.013475554063916206,
-0.002817305736243725,
-0.040418144315481186,
-0.0072444891557097435,
-0.008263511583209038,
-0.030722202733159065,
-0.03126738965511322,
0.04943259805440903,
-0.015552598051726818,
-0.019208742305636406,
0.02328580431640148,
0.012176154181361198,
-0.018427403643727303,
0.030160490423440933,
0.04480747878551483,
-0.017981790006160736,
0.02521011233329773,
0.035850685089826584,
-0.00609038257971406,
0.038310907781124115,
-0.0038483073003590107,
0.009427053853869438,
0.02245309017598629,
0.0006515607819892466
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | # Getting Started with Hugging Face Transformers for IPUs with Optimum Transformer models have proven to be extremely efficient on a wide range of machine learning tasks, such as natural language processing, audio processing, and computer vision. However, the prediction speed of these large models can make them impractical for latency-sensitive use cases like conversational applications or search. Furthermore, optimizing their performance in the real world requires considerable time, effort and skills that are beyond the reach of many companies and organizations. Luckily, Hugging Face has introduced Optimum, an open source library which makes it much easier to reduce the prediction latency of Transformer models on a variety of hardware platforms. In this blog post, you will learn how to accelerate Transformer models for the Graphcore Intelligence Processing Unit (IPU), a highly flexible, easy-to-use parallel processor designed from the ground up for AI workloads. | [
0.007877018302679062,
-0.01630900427699089,
0.0005995735409669578,
0.009866820648312569,
0.009277496486902237,
0.036697063595056534,
0.05134744197130203,
0.07752422243356705,
0.011683322489261627,
-0.03542853146791458,
-0.0041478658095002174,
0.08156709372997284,
-0.03732295706868172,
0.03334635868668556,
0.0308233592659235,
-0.08890808373689651,
-0.0490865632891655,
0.00015806127339601517,
-0.06307350099086761,
0.045863207429647446,
0.0393228754401207,
-0.0739564523100853,
0.046323686838150024,
0.024339618161320686,
-0.06763866543769836,
-0.09071729332208633,
0.000525995041243732,
-0.013238715007901192,
0.023107167333364487,
0.004254269413650036,
-0.04698849469423294,
-0.04165664315223694,
0.04321710765361786,
-0.05686311051249504,
0.009205604903399944,
-0.034947145730257034,
-0.09679312258958817,
-0.007402629591524601,
0.0037207778077572584,
0.0028032928239554167,
0.05662429332733154,
0.011432795785367489,
-0.09140519797801971,
-0.0552329458296299,
-0.00421820068731904,
-0.0037020535673946142,
-0.07839924842119217,
0.08703050762414932,
-0.017285181209445,
-0.08274620026350021,
0.00695947278290987,
0.10441461205482483,
0.013933422975242138,
-0.006543728522956371,
0.10024221241474152,
-0.023274552077054977,
0.0588664636015892,
-0.055473603308200836,
-0.016324689611792564,
0.002128607127815485,
0.017300428822636604,
-0.02696846053004265,
-0.04325886070728302,
-0.013219064101576805,
-0.004645322449505329,
-0.046862199902534485,
-0.04157135635614395,
-0.06916353851556778,
-0.04182080179452896,
-0.09190945327281952,
-0.021069927141070366,
0.016249891370534897,
-0.01270854938775301,
-0.0229110736399889,
-0.029802050441503525,
0.014851254411041737,
0.04972022771835327,
0.026648132130503654,
0.029622724279761314,
0.03169155493378639,
-0.042559120804071426,
0.06768868118524551,
0.03135128691792488,
0.02255365625023842,
0.03306348994374275,
0.046352729201316833,
-0.00028582685627043247,
-0.06489992886781693,
-0.055267900228500366,
0.004182551056146622,
-0.015642138198018074,
-0.1055435836315155,
0.0005281713674776256,
0.021097779273986816,
0.05061187967658043,
-0.00046342069981619716,
-0.02440967969596386,
-0.009463153779506683,
-0.019728805869817734,
-0.06539279222488403,
-0.0011987894540652633,
-0.041919607669115067,
-0.020108072087168694,
-0.02402425929903984,
-0.01941774971783161,
0.03382251784205437,
-0.044248901307582855,
-0.11087483167648315,
-0.04320386424660683,
0.058582328259944916,
0.014246517792344093,
0.018154285848140717,
0.05290992185473442,
0.09517280757427216,
-0.10310147702693939,
0.04697183892130852,
0.05443302541971207,
0.002425386570394039,
-0.010177798569202423,
0.004813035950064659,
-0.007294311188161373,
0.06971973925828934,
-0.0011477508815005422,
0.038347501307725906,
0.041614849120378494,
0.03150619566440582,
0.009255049750208855,
0.013364790007472038,
0.04131521284580231,
-0.010350288823246956,
0.048523809760808945,
-0.03892436996102333,
0.024832021445035934,
-0.010930796153843403,
0.016257984563708305,
-0.05906577408313751,
0.022017424926161766,
-0.01630491390824318,
-0.06067364662885666,
-0.005702602211385965,
0.0034809913486242294,
0.03343672305345535,
0.07039813697338104,
-0.06964320689439774,
0.04493158683180809,
-0.024582434445619583,
-0.10167012363672256,
0.07636500149965286,
0.04451243206858635,
-0.008975149132311344,
-0.08366083353757858,
0.0769563838839531,
-0.03256712481379509,
-0.03534672036767006,
0.009969204664230347,
0.06257790327072144,
0.009449770674109459,
-0.05458178371191025,
-0.04082326591014862,
-0.08468993753194809,
-0.04525281488895416,
0.013449026271700859,
-0.07196899503469467,
-0.07569378614425659,
-0.01867055706679821,
0.0005260410252958536,
0.008167104795575142,
0.007767753209918737,
0.005950062070041895,
-0.008363587781786919,
0.0381370484828949,
0.01537810917943716,
0.01693553663790226,
-0.02695220708847046,
-0.018267879262566566,
0.04209889471530914,
0.0015471000224351883,
0.05905773863196373,
-0.03496869280934334,
-0.049597859382629395,
-0.04984313249588013,
0.09186971187591553,
0.016668420284986496,
0.1360243260860443,
0.06703349202871323,
-0.028823764994740486,
0.015917273238301277,
-0.006200550124049187,
-0.007203223183751106,
-0.03069191426038742,
0.023883484303951263,
0.011621017940342426,
0.08266787230968475,
-0.026876255869865417,
0.04435531422495842,
0.002375741256400943,
-0.051177579909563065,
0.07135709375143051,
0.028313226997852325,
0.020780380815267563,
0.07380044460296631,
-0.052843838930130005,
0.061952341347932816,
-0.024580683559179306,
-0.07009918242692947,
-0.05737995728850365,
-0.025192465633153915,
-0.04486934468150139,
0.005483367945998907,
0.03212714195251465,
-0.01475639920681715,
-0.14849676191806793,
0.011040006764233112,
-0.03504571318626404,
-0.002493415493518114,
-0.08967512845993042,
-0.01871296390891075,
0.04865169897675514,
0.0186519306153059,
-0.03512344881892204,
0.09282051026821136,
-0.01062532514333725,
0.00650022504851222,
-0.03413963317871094,
-0.038321271538734436,
0.0018684638198465109,
0.03943731263279915,
0.04120660200715065,
0.04258059710264206,
-0.028107738122344017,
0.021492449566721916,
-0.026983654126524925,
-0.07021357119083405,
0.008620904758572578,
-0.029577968642115593,
-0.026979804039001465,
-0.011090693064033985,
0.038955844938755035,
0.0519506111741066,
0.02439795807003975,
-0.046310558915138245,
0.020142987370491028,
-0.0047336146235466,
-0.01864238642156124,
0.0771903544664383,
0.0008366508991457522,
0.04367697611451149,
-0.05003798007965088,
-0.007785199675709009,
0.02422845922410488,
-0.08185422420501709,
0.07832393795251846,
-0.01795792579650879,
-0.011509092524647713,
-0.004512516316026449,
-0.049663279205560684,
0.023500794544816017,
0.04445011913776398,
-0.009601930156350136,
0.05443894863128662,
0.031219813972711563,
-0.003348676022142172,
-0.042886290699243546,
0.002666673855856061,
-0.003320166375488043,
-0.022089364007115364,
0.003640971379354596,
0.007655845955014229,
-0.0012351894984021783,
-0.0024255348835140467,
0.025218145921826363,
-0.012325504794716835,
0.043487150222063065,
0.003544185310602188,
-0.0006478861323557794,
0.022842615842819214,
0.03845162317156792,
-0.012522977776825428,
-0.022614004090428352,
-0.026438109576702118,
0.008657923899590969,
-0.026375118643045425,
0.007847503758966923,
0.004108932800590992,
0.024820826947689056,
-0.005364568904042244,
0.003826617728918791,
-0.04024727642536163,
-0.06023519113659859,
0.0022485130466520786,
0.0028488347306847572,
0.025478921830654144,
-0.031990256160497665,
-0.016429727897047997,
-0.01342636439949274,
0.001578470808453858,
0.006655075587332249,
-0.06012380123138428,
-0.036312416195869446,
0.015229396522045135,
-0.0024281854275614023,
-0.018735351040959358,
0.022671133279800415,
-0.008492344059050083,
-0.009236615151166916,
0.01590624824166298,
0.035836927592754364,
-0.0006629293784499168,
-0.06626691669225693,
-0.000315570185193792,
-0.05332799628376961,
-0.010297728702425957,
-0.013979603536427021,
-0.030923636630177498,
0.04229060187935829,
0.027047617360949516,
-0.01747944951057434,
0.012359497137367725,
0.04436661675572395,
-0.010853296145796776,
-0.027261793613433838,
0.015082338824868202,
0.022849190980196,
-0.017469754442572594,
0.015647616237401962,
-0.03144131600856781,
-0.019960744306445122,
-0.016308074817061424,
0.01399435754865408,
0.012272932566702366,
0.02840663306415081,
-0.03939143568277359,
0.006053803954273462,
-0.022894619032740593,
0.02681378461420536,
-0.03862432390451431,
0.007778062950819731,
-0.03690867871046066,
-0.006234908476471901,
-0.017065832391381264,
0.015257252380251884,
0.06715074926614761,
0.013980821706354618,
-0.0110864182934165,
-0.03546265512704849,
0.02061907760798931,
0.056623175740242004,
0.037050891667604446,
0.02265217900276184,
-0.03969898074865341,
0.0355449803173542,
-0.022993329912424088,
0.040960296988487244,
0.00640163803473115,
0.008226746693253517,
-0.02815834805369377,
0.002558272797614336,
-0.015603861771523952,
-0.05757690593600273,
0.032691244035959244,
0.007187278475612402,
0.032802265137434006,
-0.014240247197449207,
0.06294990330934525,
0.019863255321979523,
0.013937866315245628,
-0.008713734336197376,
0.011445348151028156,
-0.05847045034170151,
0.024443238973617554,
-0.016793351620435715,
-0.012766670435667038,
-0.009036093018949032,
0.05204382166266441,
0.004881394095718861,
-0.024813339114189148,
0.046960312873125076,
-0.006711228284984827,
0.006148338783532381,
0.004287946969270706,
0.017783038318157196,
-0.004827525932341814,
-0.031030546873807907,
0.03316894918680191,
-0.012793120928108692,
0.0019454855937510729,
0.0074464185163378716,
0.04427045211195946,
-0.025121374055743217,
-0.0536501370370388,
-0.047050461173057556,
0.03011421672999859,
0.04336981102824211,
0.01740344613790512,
0.020397944375872612,
-0.037955835461616516,
-0.0030058068223297596,
0.01989000476896763,
-0.007529019378125668,
-0.01906450465321541,
0.002253301441669464,
-0.015001917257905006,
-0.024384159594774246,
0.013975103385746479,
-0.0024989978410303593,
0.07295195758342743,
0.005490482784807682,
-0.06321299821138382,
-0.027866877615451813,
0.00609543127939105,
-0.02501199021935463,
-0.008459709584712982,
-0.0787835642695427,
0.0570753812789917,
0.007674851454794407,
-0.030072499066591263,
0.04500925540924072,
0.012676021084189415,
0.006194228772073984,
-0.03315209224820137,
-0.055875204503536224,
-0.05216548964381218,
0.007914857938885689,
0.04373569041490555,
0.00416455278173089,
0.01058044470846653,
-0.022099902853369713,
0.014845308847725391,
0.0008124313317239285,
0.02730271779000759,
0.018332554027438164,
-0.018400155007839203,
0.041705116629600525,
-0.003922272939234972,
-0.017927955836057663,
0.02233128808438778,
0.036062393337488174,
-0.018296772614121437,
0.014997984282672405,
-0.011703242547810078,
0.027482079342007637,
0.009223476983606815,
0.020191358402371407,
-0.03077554702758789,
-0.04553075134754181,
-0.048787571489810944,
-0.018992818892002106,
0.016694046556949615,
0.004354265984147787,
0.0374290831387043,
0.07351814955472946,
-0.007847709581255913,
0.039301611483097076,
-0.01087697222828865,
-0.004514436703175306,
0.03439720720052719,
-0.012754754163324833,
0.009974194690585136,
0.025635208934545517,
-0.03861905261874199,
-0.0025763465091586113,
0.04429207369685173,
0.05973735451698303,
-0.012695438228547573,
0.00591084361076355,
-0.0007942020311020315,
0.0184438768774271,
0.04694310203194618,
-0.002153174253180623,
0.004280193708837032,
-0.05322106182575226,
-0.009853561408817768,
0.04337867349386215,
-0.032685790210962296,
0.0070281908847391605,
-0.04603986069560051,
-0.05443403869867325,
-0.0029789218679070473,
0.026711463928222656,
0.022150395438075066,
0.04082312807440758,
-0.013835742138326168,
0.03332841768860817,
0.06679529696702957,
0.021555963903665543,
-0.043858639895915985,
0.0452173687517643,
0.03965174779295921,
-0.01966789737343788,
-0.0157504640519619,
0.027875667437911034,
0.00610972149297595,
0.031209750100970268,
0.02209138125181198,
0.03688180446624756,
0.022692227736115456,
0.013482899405062199,
-0.022197749465703964,
0.026636864989995956,
-0.03946223855018616,
0.007530507165938616,
-0.022121619433164597,
-0.01280745305120945,
0.010778105817735195,
-0.008351621218025684,
0.01733412779867649,
-0.036856841295957565,
-0.0083211874589324,
0.028324250131845474,
0.0314200222492218,
-0.04039112478494644,
-0.02115296944975853,
0.01871776208281517,
0.0125298285856843,
0.031260762363672256,
0.013199461624026299,
-0.0018755898345261812,
-0.02677522785961628,
0.01236943993717432,
0.021142171695828438,
0.016919080168008804,
-0.032709330320358276,
0.011337189935147762,
-0.01579803228378296,
0.00793525855988264,
0.02687668614089489,
0.03268182650208473,
0.035342611372470856,
-0.014279686845839024,
-0.014800040051341057,
0.0019607827998697758,
0.011109491810202599,
0.0018449164927005768,
-0.02621694654226303,
-0.008669011294841766,
-0.011450015008449554,
-0.0273306705057621,
0.002128702588379383,
-0.013061913661658764,
0.00742458738386631,
-0.0028685671277344227,
0.02559269405901432,
0.03152976557612419,
0.01644768938422203,
-0.022905224934220314,
0.0014962399145588279,
0.04547986760735512,
-0.02734326384961605,
0.004326026886701584,
-0.06909509003162384,
-0.009487194940447807,
0.0027126669883728027,
-0.041659481823444366,
0.05856175348162651,
0.04940874129533768,
-0.0015729411970824003,
-0.011777672916650772,
-0.020492389798164368,
0.016805894672870636,
0.004463278688490391,
-0.0012570299440994859,
-0.0035367701202630997,
-0.0006767421145923436,
0.03103269264101982,
0.01771354489028454,
0.014085226692259312,
0.006104691419750452,
0.03375934809446335,
-0.029037196189165115,
-0.0375826358795166,
0.0000562582426937297,
0.04653399437665939,
-0.015090925619006157,
0.02737327665090561,
-0.040978964418172836,
-0.031271420419216156,
0.028475983068346977,
0.0010915581369772553,
0.00646216282621026,
0.006229151971638203,
0.03812738507986069,
-0.007807367946952581,
-0.027697894722223282,
-0.03533796966075897,
0.03647765889763832,
0.09943999350070953,
0.07667869329452515,
-0.02993170917034149,
0.034649837762117386,
0.025612635537981987,
0.03771619871258736,
0.02517385222017765,
0.003921879921108484,
0.01274879090487957,
0.022629670798778534,
0.029782844707369804,
0.014158674515783787,
0.03311753273010254,
-0.05658578872680664,
-0.029825447127223015,
0.008426041342318058,
0.009528793394565582,
-0.010406805202364922,
0.0037421544548124075,
0.019372042268514633,
-0.028618929907679558,
-0.007860763929784298,
-0.03156442940235138,
0.04596312344074249,
0.051636919379234314,
0.027810510247945786,
-0.038078173995018005,
0.05069588124752045,
0.012203877791762352,
0.013600986450910568,
0.0322343073785305,
-0.0474914126098156,
-0.03209526091814041,
-0.00264489883556962,
0.04475488141179085,
0.0009293700568377972,
0.02593282423913479,
-0.009898773394525051,
0.008379926905035973,
0.03939922899007797,
-0.026868874207139015,
-0.014892645180225372,
0.010584238916635513,
-0.02875816635787487,
0.01273161917924881,
-0.011152687482535839,
-0.03552218899130821,
-0.036662060767412186,
0.05120784044265747,
-0.01857801526784897,
0.003978481516242027,
-0.026664340868592262,
0.03923453018069267,
0.004006530158221722,
-0.004223810508847237,
-0.014023732393980026,
0.04001022130250931,
0.01067970972508192,
0.0010022714268416166,
0.023965947329998016,
0.01632455736398697,
-0.04471242427825928,
0.009649007581174374,
-0.0009904531762003899,
-0.035019081085920334,
0.03400598093867302,
0.02472083829343319,
-0.002701843623071909,
-0.015615338459610939,
0.0686405748128891,
0.01721704937517643,
0.016769329085946083,
0.049327511340379715,
0.006154139991849661,
0.04507335647940636,
-0.019372066482901573,
0.01731732115149498,
0.001557111507281661,
-0.026359695941209793,
0.04101349785923958,
-0.042384710162878036,
0.010581930167973042,
-0.02211328223347664,
0.021582473069429398,
0.04496466740965843,
0.07489411532878876,
-0.0708206444978714,
-0.024040840566158295,
0.0007471246062777936,
0.0278401467949152,
-0.022133927792310715,
0.027795366942882538,
-0.011699279770255089,
-0.003150924341753125,
0.01901998743414879,
-0.03721608594059944,
0.027612583711743355,
-0.014008069410920143,
-0.0002592741802800447,
0.05250692740082741,
-0.004204543773084879,
-0.0035922664683312178,
-0.014591831713914871,
0.00375598412938416,
0.03723520785570145,
-0.004297995939850807,
0.03284205496311188,
-0.01616363227367401,
-0.009035221301019192,
-0.042027797549963,
0.013932243920862675,
-0.01414161641150713,
-0.010183172300457954,
-0.030491940677165985,
-0.02032444253563881,
0.03818907216191292,
-0.015589945018291473,
-0.01878034695982933,
0.02277974598109722,
-0.056764304637908936,
-0.01265410240739584,
-0.04410795122385025,
0.0009897465351969004,
-0.017951568588614464,
0.011324693448841572,
0.021315783262252808,
0.05134495720267296,
0.0026464704424142838,
-0.013133052736520767,
0.008692445233464241,
-0.017160696908831596,
-0.020963165909051895,
0.040002670139074326,
0.08310402929782867,
-0.034318987280130386,
-0.022169580683112144,
-0.07667598128318787,
-0.03273439407348633,
0.06371621787548065,
-0.07508567720651627,
0.03448178619146347,
0.0452597439289093,
0.0075610242784023285,
-0.033383868634700775,
0.013385084457695484,
0.02896706946194172,
-0.02155952900648117,
0.04552389308810234,
0.004783413838595152,
-0.012252703309059143,
-0.014093181118369102,
0.005513305310159922,
-0.04067615419626236,
0.0008445829735137522,
-0.002075003460049629,
0.012233598157763481,
-0.005112537648528814,
0.0021992342080920935,
0.014069942757487297,
0.0024525290355086327,
-0.0052720773965120316,
0.032226912677288055,
0.010372105985879898,
-0.026209603995084763,
-0.019482288509607315,
-0.006582802161574364,
0.041025128215551376,
-0.010210806503891945,
-0.05301249399781227,
0.02983081340789795,
0.023498551920056343,
0.0058823819272220135,
-0.013321439735591412,
-0.05954175069928169,
-0.029772376641631126,
0.024135256186127663,
-0.02571004256606102,
-0.0017882277024909854,
0.042708415538072586,
0.045312751084566116,
-0.0017793591832742095,
-0.05118069052696228,
-0.035085637122392654
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Getting started with IPUs and Optimum Let’s use BERT as an example to help you get started with using Optimum and IPUs. In this guide, we will use an IPU-POD16 system in Graphcloud, Graphcore’s cloud-based machine learning platform and follow PyTorch setup instructions found in Getting Started with Graphcloud. Graphcore’s Poplar SDK is already installed on the Graphcloud server. If you have a different setup, you can find the instructions that apply to your system in the PyTorch for the IPU: User Guide. | [
0.03678811714053154,
0.004550647921860218,
0.019481996074318886,
0.07233437150716782,
0.09079223871231079,
0.050078488886356354,
0.04759238660335541,
0.0750722885131836,
0.03998163715004921,
-0.05692553147673607,
-0.019057299941778183,
0.0008850760641507804,
-0.02756519801914692,
-0.013217777945101261,
0.06762665510177612,
-0.08704274892807007,
-0.018810780718922615,
-0.024402104318141937,
-0.05805759131908417,
0.02262740023434162,
-0.0027959563303738832,
-0.0461387038230896,
0.020580947399139404,
0.0006647248519584537,
0.03563617169857025,
-0.07696207612752914,
-0.033181384205818176,
0.0520671084523201,
-0.030591972172260284,
-0.012871840037405491,
-0.01753336563706398,
-0.015156037174165249,
0.06620651483535767,
-0.03514334186911583,
0.032296519726514816,
-0.00868553202599287,
-0.03853606432676315,
0.007983584888279438,
-0.028665997087955475,
-0.03734883293509483,
0.00034335226519033313,
-0.03111465461552143,
-0.09422774612903595,
-0.027695275843143463,
-0.017119677737355232,
0.021641166880726814,
-0.07727330923080444,
0.08967272937297821,
0.01106116734445095,
-0.043578747659921646,
-0.05574017018079758,
0.059113629162311554,
0.0007335785776376724,
-0.04220210760831833,
0.10211361944675446,
-0.05110226199030876,
0.05702337622642517,
-0.003569890046492219,
0.016850139945745468,
0.023612409830093384,
0.029948147013783455,
-0.003438840853050351,
-0.041907116770744324,
-0.002576973056420684,
-0.002697404008358717,
-0.06825195997953415,
-0.0187615305185318,
-0.01946273073554039,
-0.0550638809800148,
-0.06064433231949806,
-0.02155561000108719,
0.01972375251352787,
0.002722451463341713,
-0.020709969103336334,
-0.007768179755657911,
-0.03158997744321823,
0.08356011658906937,
0.0249045267701149,
0.008054984733462334,
0.04964720085263252,
-0.05174450948834419,
0.055477041751146317,
-0.043963704258203506,
-0.03997216746211052,
0.02975335530936718,
-0.009959394112229347,
-0.01938346028327942,
-0.0354219414293766,
0.014550793915987015,
-0.01746988110244274,
-0.08477609604597092,
-0.11384696513414383,
0.04232988506555557,
0.04723571613430977,
0.033800140023231506,
-0.035628993064165115,
-0.062127966433763504,
0.005585147999227047,
0.0077815670520067215,
-0.0603816919028759,
0.003094758838415146,
-0.044371724128723145,
0.0007300747092813253,
-0.012712541036307812,
-0.047983210533857346,
0.02388070337474346,
-0.01960710622370243,
-0.05547318235039711,
-0.05898037925362587,
0.0010717165423557162,
-0.018291277810931206,
0.007862859405577183,
0.011344176717102528,
0.11549678444862366,
-0.053593385964632034,
0.03226219490170479,
0.08888780325651169,
0.045292723923921585,
0.023645205423235893,
-0.017680488526821136,
-0.045648474246263504,
0.10656636208295822,
0.028973165899515152,
0.08317957818508148,
0.0011054479982703924,
0.011222261935472488,
-0.028604060411453247,
-0.03430324047803879,
0.0003497656143736094,
-0.019542332738637924,
0.08689605444669724,
0.0003813776420429349,
0.11749666184186935,
-0.02595525234937668,
0.06829666346311569,
0.0012359536485746503,
-0.0028468111995607615,
-0.04098186641931534,
-0.04613186791539192,
0.01326511986553669,
-0.017711980268359184,
0.025020720437169075,
0.014752334915101528,
0.03850077465176582,
0.04212353378534317,
0.006057512015104294,
-0.056719157844781876,
0.07191020995378494,
-0.001066958880983293,
0.041177574545145035,
-0.08347845077514648,
0.051765020936727524,
0.005168241448700428,
0.004132250789552927,
-0.030112547799944878,
0.06855502724647522,
-0.0038506099954247475,
0.010640216991305351,
-0.04062596708536148,
-0.07377491891384125,
0.032399315387010574,
0.034180622547864914,
-0.10584850609302521,
-0.0022819770965725183,
-0.014925247989594936,
0.0037859859876334667,
0.045485056936740875,
-0.03472069650888443,
-0.032141707837581635,
-0.04701102152466774,
0.0037485084030777216,
0.002955809934064746,
0.05271662399172783,
0.049033086746931076,
0.019602574408054352,
0.023265240713953972,
0.02842511050403118,
0.035909488797187805,
-0.0637977346777916,
-0.06801658868789673,
-0.05793331563472748,
0.07099160552024841,
-0.024972841143608093,
0.07614399492740631,
-0.019655965268611908,
-0.005259966477751732,
0.03141790255904198,
-0.0586983896791935,
0.04361191764473915,
-0.04072537273168564,
0.022742396220564842,
-0.0164501890540123,
0.04529150202870369,
-0.026526132598519325,
0.0569140650331974,
0.02089124545454979,
-0.05143538489937782,
0.022937830537557602,
0.05556483194231987,
-0.001668433309532702,
0.09371320903301239,
-0.010822656564414501,
0.02902521751821041,
-0.002074866322800517,
-0.045152779668569565,
0.01616019941866398,
-0.014916547574102879,
-0.06696094572544098,
0.01658695936203003,
0.013057181611657143,
0.009272893890738487,
-0.12415540218353271,
0.016476135700941086,
-0.047645095735788345,
0.0021670276764780283,
-0.09848760068416595,
-0.0006272142636589706,
0.08240839838981628,
0.08778710663318634,
-0.014023404568433762,
0.10931118577718735,
-0.028579607605934143,
0.056472957134246826,
0.017879251390695572,
-0.058203984051942825,
-0.01263440866023302,
0.060072869062423706,
0.02841276489198208,
0.062143947929143906,
-0.037805307656526566,
-0.009264618158340454,
-0.01772729679942131,
-0.022094545885920525,
0.07603181898593903,
-0.04731076955795288,
0.011527463793754578,
-0.026766732335090637,
0.014885235577821732,
0.06319285184144974,
-0.020460588857531548,
0.007204416673630476,
0.03982699289917946,
-0.04848717898130417,
-0.02499597705900669,
0.0701763853430748,
0.009766967967152596,
0.04614929109811783,
-0.03352918475866318,
-0.008239350281655788,
-0.002473372034728527,
-0.06706836074590683,
0.03477740287780762,
-0.04767638072371483,
-0.007648461498320103,
0.026687121018767357,
0.008358684368431568,
-0.008308596909046173,
0.008864808827638626,
0.007092589046806097,
0.014499669894576073,
0.020864414051175117,
0.010995086282491684,
-0.04570044204592705,
-0.010759328491985798,
0.009141565300524235,
-0.034950681030750275,
-0.021726634353399277,
-0.022607887163758278,
-0.0005649028462357819,
-0.02522854693233967,
0.023982826620340347,
-0.0346071682870388,
0.059987448155879974,
-0.012789915315806866,
0.0161209125071764,
0.002048871945589781,
0.01965726912021637,
-0.05457593500614166,
-0.0498206801712513,
-0.02530118264257908,
0.013965445570647717,
-0.03464411944150925,
0.026901086792349815,
0.017637254670262337,
0.013253931887447834,
-0.02395266853272915,
0.002495553344488144,
-0.030837077647447586,
-0.01027511153370142,
-0.0020699852611869574,
-0.0687924399971962,
0.04196374863386154,
-0.04767119139432907,
0.03480328246951103,
-0.029949575662612915,
0.026866702362895012,
-0.00611963402479887,
0.012970455922186375,
-0.025653284043073654,
0.015586454421281815,
-0.013678603805601597,
0.0024709340650588274,
0.0007508064154535532,
-0.01400868222117424,
-0.029205920174717903,
0.0005651803221553564,
0.03624925762414932,
-0.004440868739038706,
-0.06339062005281448,
0.001748741720803082,
-0.011572513729333878,
0.01859326846897602,
-0.01145134400576353,
-0.021512560546398163,
0.05275556072592735,
-0.016207804903388023,
-0.054282572120428085,
-0.0067627946846187115,
0.023239973932504654,
-0.03965757414698601,
-0.03359759971499443,
0.02776128612458706,
0.01356411911547184,
0.007672552950680256,
0.013945415616035461,
-0.02025875449180603,
-0.022396719083189964,
-0.04463294520974159,
-0.032136060297489166,
0.04129532352089882,
0.015071898698806763,
-0.011701785959303379,
0.0012325964635238051,
-0.007356195244938135,
-0.023418698459863663,
0.002916116500273347,
0.0013574424665421247,
-0.03229634091258049,
-0.008350142277777195,
-0.03417191654443741,
0.005508087575435638,
0.01490949746221304,
-0.03419272601604462,
0.0009397434187121689,
-0.04779257997870445,
0.0016181234968826175,
0.04453687742352486,
0.0151050491258502,
-0.005477235186845064,
-0.010421634651720524,
0.024359889328479767,
-0.017346536740660667,
0.022492878139019012,
-0.0025412202812731266,
-0.02014302648603916,
-0.007266107946634293,
-0.0010249108308926225,
0.03906083106994629,
-0.06541349738836288,
0.01346206571906805,
-0.016526898369193077,
0.04326051473617554,
-0.07580186426639557,
-0.006056432146579027,
0.03926517814397812,
0.04566788673400879,
0.008101657964289188,
0.018171707168221474,
-0.04269390553236008,
0.04006078839302063,
0.0060587432235479355,
-0.02080678939819336,
0.020075740292668343,
0.04211745411157608,
0.04664009064435959,
0.010245251469314098,
0.017315125092864037,
-0.014858429320156574,
0.00017919081437867135,
0.018701817840337753,
0.06073956564068794,
-0.0011736045125871897,
0.006388362497091293,
0.0013820301974192262,
0.008638548664748669,
-0.004163125995546579,
0.039376214146614075,
0.061155837029218674,
-0.013754334300756454,
-0.020355042070150375,
-0.017709700390696526,
-0.007207438349723816,
0.04106435924768448,
0.02077830582857132,
-0.020786892622709274,
-0.053895503282547,
-0.013730518519878387,
-0.011486957781016827,
-0.00415544118732214,
-0.046130165457725525,
0.032512128353118896,
0.013611096888780594,
-0.03500042483210564,
0.03266264125704765,
-0.0008445338462479413,
0.059593264013528824,
-0.004959842190146446,
0.022459758445620537,
-0.039174459874629974,
0.011906503699719906,
-0.04388948157429695,
0.003060546237975359,
-0.03646285831928253,
0.04165253788232803,
-0.02217274159193039,
-0.032126639038324356,
0.03452954441308975,
0.017903156578540802,
-0.032113559544086456,
-0.032154232263565063,
-0.01573735475540161,
-0.06179717555642128,
-0.017943929880857468,
0.04581683874130249,
-0.004935112781822681,
-0.015392693690955639,
0.0005536757525987923,
0.0027213646098971367,
-0.017177755013108253,
0.023868350312113762,
0.020211555063724518,
-0.006639976054430008,
-0.02420922927558422,
-0.014872961677610874,
0.017973517999053,
0.016987113282084465,
0.04487041011452675,
-0.05009949207305908,
0.008619265630841255,
-0.04648980870842934,
0.03376448526978493,
-0.02373553439974785,
-0.01896532252430916,
-0.01559201255440712,
0.0032114218920469284,
0.006404790561646223,
0.017954858019948006,
-0.0036706612445414066,
0.0001654100778978318,
0.053144246339797974,
0.08629406988620758,
-0.020971443504095078,
0.033333729952573776,
-0.0039062330033630133,
-0.023418786004185677,
0.06340906023979187,
-0.0017516908701509237,
-0.014596204273402691,
0.03294835984706879,
-0.01806764304637909,
0.00851638987660408,
0.005670499987900257,
0.011719984002411366,
-0.03158802539110184,
0.017043961212038994,
0.0236392542719841,
0.022453460842370987,
0.07790932804346085,
0.01737927459180355,
-0.02589496038854122,
-0.039067722856998444,
-0.004458376672118902,
0.04531104490160942,
-0.0129008200019598,
0.02392871491611004,
-0.05286199226975441,
-0.03235907480120659,
-0.04531414434313774,
-0.0095719825476408,
-0.013434119522571564,
0.022608332335948944,
-0.0015929333167150617,
0.07482165843248367,
0.04856047406792641,
-0.02746831811964512,
-0.0013657805975526571,
0.06054321676492691,
0.01782252825796604,
-0.03488890826702118,
0.003090078243985772,
0.014041022397577763,
-0.0010152492905035615,
0.015070119872689247,
0.013110368512570858,
0.018935102969408035,
-0.032298747450113297,
0.023023802787065506,
0.004814148414880037,
-0.022461390122771263,
-0.044032711535692215,
-0.012872849591076374,
-0.004258246161043644,
-0.015744980424642563,
0.038095880299806595,
-0.0007516031619161367,
0.04161733016371727,
0.0010046070674434304,
-0.04507239907979965,
0.03168248385190964,
0.03807613626122475,
-0.035627078264951706,
-0.016912277787923813,
0.03948047384619713,
0.01085049007087946,
0.041806045919656754,
0.01763085089623928,
0.026366425678133965,
-0.038883648812770844,
-0.022041793912649155,
0.016950929537415504,
0.024016378447413445,
-0.007023796904832125,
0.008660227991640568,
-0.019072143360972404,
0.0009253707830794156,
0.028108276426792145,
0.015999741852283478,
0.04145680367946625,
0.0314801000058651,
-0.009318417869508266,
0.0019603802356868982,
0.0466524213552475,
-0.017393402755260468,
-0.01935913972556591,
0.02024720422923565,
0.01999172754585743,
-0.019524669274687767,
-0.028357582166790962,
0.021048398688435555,
-0.02804727852344513,
-0.01678350754082203,
0.035308510065078735,
0.010272979736328125,
0.008311632089316845,
0.001688162679784,
0.0004924330860376358,
0.016966816037893295,
-0.0228275153785944,
-0.02447722852230072,
-0.06474407762289047,
-0.03702322393655777,
-0.02050662226974964,
-0.014851804822683334,
0.02117116190493107,
0.06513069570064545,
-0.004481262993067503,
0.02523910626769066,
-0.03403197228908539,
0.01868290826678276,
-0.017544403672218323,
-0.06699004769325256,
-0.037296902388334274,
0.04244634509086609,
0.04628079757094383,
0.034871943295001984,
0.027167191728949547,
-0.00024054822279140353,
0.057358965277671814,
-0.022739194333553314,
-0.0445784367620945,
0.020971834659576416,
0.04782761260867119,
-0.021906256675720215,
-0.00013193806807976216,
-0.05498715862631798,
-0.006962765473872423,
-0.03461303934454918,
-0.017712324857711792,
0.02431357093155384,
0.013433609157800674,
0.01861986331641674,
-0.01953469030559063,
-0.00680086063221097,
-0.02566349133849144,
0.02138708531856537,
0.0977165549993515,
0.03995035961270332,
-0.013000735081732273,
0.006917065009474754,
0.036707717925310135,
-0.012576423585414886,
0.016809718683362007,
-0.009284798055887222,
0.07493790239095688,
0.05466447025537491,
0.007896272465586662,
0.004785866942256689,
0.003124938113614917,
-0.056385550647974014,
-0.006737989839166403,
-0.05630970746278763,
0.02339746430516243,
0.021636035293340683,
-0.02120862528681755,
0.03713039308786392,
-0.023150281980633736,
-0.03553738072514534,
-0.01654820330440998,
0.028806468471884727,
0.062123946845531464,
0.03085576370358467,
-0.058483682572841644,
0.06670095026493073,
-0.05598943307995796,
-0.013914177194237709,
0.02740222029387951,
-0.011915077455341816,
-0.03048989176750183,
-0.006772172637283802,
0.04079456999897957,
0.00915693212300539,
0.019978178665041924,
0.0074013308621943,
-0.03010465018451214,
0.05128828436136246,
-0.0033143602777272463,
-0.014815597794950008,
-0.00980546697974205,
-0.022733138874173164,
0.02472245693206787,
-0.021687284111976624,
-0.029953978955745697,
-0.07052314281463623,
0.024320321157574654,
-0.005399785935878754,
0.021524496376514435,
0.011115944012999535,
0.01689533330500126,
-0.002668027300387621,
-0.020084530115127563,
0.027146372944116592,
0.027631621807813644,
-0.015387943014502525,
0.047071121633052826,
-0.01745450682938099,
0.02738337218761444,
-0.046744849532842636,
0.027838237583637238,
-0.0374758243560791,
-0.0314270555973053,
-0.004896856378763914,
0.00042376245255582035,
0.015991156920790672,
-0.0007988907163962722,
0.062399834394454956,
0.0018245902610942721,
-0.006643812637776136,
0.015584993176162243,
-0.0021587759256362915,
0.03733640909194946,
-0.0005143763846717775,
0.036098167300224304,
-0.03318163752555847,
-0.038241948932409286,
0.033967435359954834,
-0.01685437001287937,
0.03244733810424805,
-0.01914302073419094,
-0.01749817468225956,
0.010486333630979061,
0.038104020059108734,
-0.014849496074020863,
-0.034935884177684784,
0.013218769803643227,
0.059331078082323074,
-0.0763314813375473,
0.006791581865400076,
0.014308913610875607,
0.014432543888688087,
0.030232857912778854,
-0.04605148360133171,
0.01286037266254425,
-0.03156467527151108,
-0.031907375901937485,
-0.002287705894559622,
0.02878391183912754,
0.00979659054428339,
-0.014548744075000286,
0.020996294915676117,
-0.02038338966667652,
-0.01610603556036949,
0.01747441664338112,
-0.025687068700790405,
-0.010262290947139263,
-0.0019918507896363735,
0.017849542200565338,
-0.0282147154211998,
0.01733112893998623,
-0.03925681114196777,
-0.033351168036460876,
0.03331949934363365,
-0.009374052286148071,
-0.0013608098961412907,
0.02671789564192295,
-0.05880526080727577,
-0.0026448641438037157,
-0.04163399711251259,
-0.046215854585170746,
-0.04944688454270363,
-0.011312629096210003,
0.049012746661901474,
0.06606090068817139,
0.024632709100842476,
-0.03188057616353035,
0.006368780508637428,
0.002113750670105219,
-0.025887371972203255,
0.01511678658425808,
0.02324821799993515,
0.02817453071475029,
-0.003071635030210018,
-0.07605814188718796,
-0.010520022362470627,
0.06680494546890259,
-0.022937819361686707,
0.024540942162275314,
0.017832666635513306,
0.0020092898048460484,
-0.06732363998889923,
0.05018856003880501,
0.027624590322375298,
0.010745023377239704,
0.05228058248758316,
0.027156012132763863,
0.011904620565474033,
-0.004686947446316481,
-0.05432737618684769,
-0.010475728660821915,
-0.014365100301802158,
-0.015389044769108295,
-0.051004763692617416,
-0.0019554239697754383,
-0.00925894733518362,
0.006259620189666748,
0.006494857370853424,
-0.015968339517712593,
-0.026283884420990944,
-0.011445097625255585,
-0.024525806307792664,
-0.017883405089378357,
0.005103148519992828,
0.049043186008930206,
-0.01376248337328434,
-0.006699554622173309,
0.021971257403492928,
0.024375995621085167,
-0.020197242498397827,
-0.016625160351395607,
-0.009509855881333351,
-0.04488719627261162,
0.041731804609298706,
-0.01128306146711111,
-0.010782168246805668,
0.06604478508234024,
0.022984610870480537,
0.017952123656868935,
-0.013062505051493645,
-0.000008078406608547084
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Set up the Poplar SDK Environment You will need to run the following commands to set several environment variables that enable Graphcore tools and Poplar libraries. On the latest system running Poplar SDK version 2.3 on Ubuntu 18.04, you can find in the folder /opt/gc/poplar_sdk-ubuntu_18_04-2.3.0+774-b47c577c2a/. You would need to run both enable scripts for Poplar and PopART (Poplar Advanced Runtime) to use PyTorch: $ cd /opt/gc/poplar_sdk-ubuntu_18_04-2.3.0+774-b47c577c2a/ $ source poplar-ubuntu_18_04-2.3.0+774-b47c577c2a/enable.sh $ source popart-ubuntu_18_04-2.3.0+774-b47c577c2a/enable.sh | [
0.09186762571334839,
0.0038182768039405346,
0.061283983290195465,
0.0130546186119318,
0.09013071656227112,
0.01816837303340435,
0.016191920265555382,
0.07944974303245544,
0.013989318162202835,
-0.04099457710981369,
-0.07808627933263779,
0.025663340464234352,
-0.017936954274773598,
0.08194520324468613,
0.10396042466163635,
-0.01606893353164196,
-0.0009277041535824537,
0.024432357400655746,
-0.029726529493927956,
0.05801086500287056,
0.01872856356203556,
-0.039112478494644165,
0.037765778601169586,
0.020497364923357964,
0.04012499377131462,
-0.13341397047042847,
-0.04295552149415016,
0.03807836398482323,
-0.02240082062780857,
0.00827951729297638,
-0.10184381902217865,
-0.024362485855817795,
0.03145330026745796,
-0.059403084218502045,
0.053282883018255234,
0.026532839983701706,
-0.055948492139577866,
-0.007284022867679596,
0.017615225166082382,
-0.041814204305410385,
0.04113799333572388,
-0.04614664614200592,
-0.05365658178925514,
0.03622763603925705,
-0.01476254127919674,
-0.0007470553973689675,
-0.12475381791591644,
0.0689651295542717,
0.026198573410511017,
0.020304445177316666,
-0.07347828894853592,
0.05879629775881767,
0.03717755898833275,
-0.02552117593586445,
0.03192252293229103,
0.027560556307435036,
-0.03531520813703537,
-0.010455237701535225,
0.027440659701824188,
-0.008305897936224937,
0.02480221353471279,
-0.009794618003070354,
-0.0469498373568058,
0.038092248141765594,
0.04674641788005829,
-0.016576670110225677,
-0.009334825910627842,
-0.027666769921779633,
-0.08091988414525986,
-0.04336361587047577,
0.015521690249443054,
-0.02889031358063221,
0.00751805305480957,
-0.07060829550027847,
-0.0199522003531456,
-0.008435925468802452,
0.05851209908723831,
0.08934220671653748,
0.041884709149599075,
0.04721534997224808,
0.014771198853850365,
0.019272735342383385,
0.06802082061767578,
0.023451924324035645,
-0.03279965743422508,
0.007062907330691814,
0.019044075161218643,
-0.04837815463542938,
0.049699388444423676,
0.02480541169643402,
-0.07063525915145874,
-0.13710683584213257,
0.003822970436885953,
0.044255323708057404,
0.007668231148272753,
-0.06070820614695549,
-0.03290816396474838,
0.007645458448678255,
0.0014840211952105165,
0.03262791410088539,
-0.013702863827347755,
-0.01690439134836197,
-0.025219904258847237,
-0.019068151712417603,
-0.01756066456437111,
-0.023561671376228333,
0.025536082684993744,
0.009720566682517529,
-0.06330924481153488,
-0.022974630817770958,
-0.01820291578769684,
0.031035909429192543,
-0.031980711966753006,
0.02662019431591034,
0.00972079113125801,
0.0010849895188584924,
0.08474402874708176,
-0.023072028532624245,
-0.011321146041154861,
0.004153228364884853,
-0.043172627687454224,
0.13402283191680908,
0.0022165377158671618,
0.08856641501188278,
0.03736095875501633,
0.06413961946964264,
0.047799233347177505,
0.008090382441878319,
-0.0112049775198102,
-0.032073795795440674,
0.09465625882148743,
0.04911785572767258,
0.0742783397436142,
0.013042447157204151,
0.06649993360042572,
-0.04159746691584587,
0.01341272797435522,
-0.027103206142783165,
0.012301161885261536,
0.016682907938957214,
-0.03921595960855484,
-0.007593370042741299,
0.04015081748366356,
0.043352141976356506,
0.03375659137964249,
-0.00719696469604969,
-0.04478061571717262,
0.06879309564828873,
-0.021947553381323814,
0.009294699877500534,
-0.017839280888438225,
0.03565360605716705,
-0.04522918537259102,
0.0052731032483279705,
-0.034670084714889526,
0.06114165484905243,
-0.03735451027750969,
0.030017048120498657,
-0.1196482926607132,
0.004172166343778372,
0.053754810243844986,
0.03177023306488991,
-0.08938459306955338,
0.004411494825035334,
0.003338472219184041,
0.0035194221418350935,
0.04486478865146637,
-0.07497285306453705,
-0.002061369363218546,
-0.03205011039972305,
0.0035759962629526854,
-0.0441337414085865,
0.06027064844965935,
-0.005750780459493399,
0.003660723799839616,
0.026804858818650246,
0.03686246648430824,
0.04782615229487419,
-0.025991111993789673,
0.018727201968431473,
-0.023264149203896523,
0.05726125091314316,
-0.042392708361148834,
0.05526198074221611,
-0.04040692374110222,
-0.05151960253715515,
0.02110438048839569,
-0.02968970499932766,
0.052093908190727234,
0.02590399608016014,
-0.017452804371714592,
-0.04006960242986679,
0.05356749892234802,
-0.01581433229148388,
0.06833859533071518,
0.012708847410976887,
-0.06313033401966095,
0.06264209002256393,
0.06725512444972992,
0.05755845084786415,
-0.023729568347334862,
-0.024495264515280724,
0.0005483036511577666,
0.009278574958443642,
-0.012546245940029621,
0.01381679717451334,
0.009316236712038517,
-0.035370729863643646,
0.058800406754016876,
-0.018498284742236137,
0.031201981008052826,
-0.11005829274654388,
0.08940757066011429,
-0.05009222775697708,
0.09243591129779816,
0.035118453204631805,
-0.029420234262943268,
0.031729619950056076,
0.1286431849002838,
0.006887555122375488,
0.09831395745277405,
-0.041819728910923004,
0.03270910307765007,
-0.008654073812067509,
-0.07150182873010635,
0.06180135905742645,
0.07532983273267746,
0.010814242996275425,
0.021662093698978424,
-0.04538682475686073,
0.0024107552599161863,
-0.070351742208004,
-0.02209647186100483,
0.1148664727807045,
-0.018477413803339005,
-0.008509128354489803,
-0.036551691591739655,
0.010664470493793488,
0.0031573332380503416,
-0.04577188938856125,
0.030318088829517365,
0.01104417908936739,
0.00982233602553606,
-0.010648166760802269,
0.013014226220548153,
0.04877479374408722,
0.04069613665342331,
-0.016443487256765366,
0.043257009238004684,
-0.00838478934019804,
-0.05354670062661171,
-0.009758367203176022,
-0.018627122044563293,
0.03338582068681717,
0.07794814556837082,
0.05091366544365883,
-0.01867067441344261,
-0.049660924822092056,
0.014117144979536533,
0.03894435986876488,
0.042914990335702896,
-0.03383900597691536,
-0.06261313706636429,
-0.037159379571676254,
-0.02810944803059101,
-0.02267278917133808,
-0.010174255818128586,
0.005721843335777521,
-0.00441758893430233,
0.005077654495835304,
0.014101062901318073,
-0.06297384202480316,
0.034712567925453186,
0.005772506818175316,
-0.007072875741869211,
0.00653300154954195,
0.04146929457783699,
-0.032311003655195236,
-0.03432326018810272,
-0.01753763109445572,
0.024035124108195305,
-0.011489571072161198,
-0.005843173712491989,
0.01542170625180006,
0.003664121264591813,
0.02073977328836918,
-0.010633384808897972,
-0.02918415330350399,
-0.01111450232565403,
0.0012202325742691755,
-0.051945555955171585,
0.01916668936610222,
-0.006161672528833151,
-0.004119965247809887,
-0.05312718451023102,
-0.011509395204484463,
-0.008700544945895672,
0.001162966014817357,
-0.00908881239593029,
0.025366611778736115,
0.0030000978149473667,
-0.0009301102836616337,
0.0037179572973400354,
0.015067175962030888,
-0.0468372106552124,
0.04103123024106026,
0.04102448746562004,
-0.01410448644310236,
-0.10399290919303894,
-0.03223322331905365,
-0.013882292434573174,
0.05050121247768402,
-0.03803706541657448,
-0.029968682676553726,
0.01866905763745308,
0.002089482732117176,
0.03395392745733261,
-0.02048671431839466,
-0.01795259676873684,
-0.03497355058789253,
0.012347443029284477,
0.031049422919750214,
-0.008871813304722309,
0.009352394379675388,
0.007974812760949135,
-0.0013283821754157543,
-0.010537637397646904,
-0.015746260061860085,
-0.03515170142054558,
0.004839946981519461,
0.0005170791409909725,
-0.020991962403059006,
0.02109234780073166,
0.00750816660001874,
-0.02035500295460224,
0.028274981305003166,
-0.0020373628940433264,
-0.03478248417377472,
0.015848716720938683,
-0.008751711808145046,
0.021183444187045097,
0.012864569202065468,
-0.052557554095983505,
-0.005113223101943731,
0.000981479766778648,
-0.007255970500409603,
0.033288609236478806,
0.013594100251793861,
0.006766658276319504,
0.026483461260795593,
0.0021626746747642756,
-0.02827145718038082,
-0.003745281370356679,
-0.02912743017077446,
-0.08313655853271484,
-0.024847421795129776,
-0.03345513343811035,
0.01868378557264805,
-0.045208536088466644,
-0.010547138750553131,
0.0003549414104782045,
0.01741579920053482,
-0.04868512973189354,
-0.0015013419324532151,
0.0033379255328327417,
0.057780757546424866,
0.044538356363773346,
0.008589141070842743,
-0.037902552634477615,
0.041049547493457794,
0.00681955786421895,
-0.007127073127776384,
0.0021687995176762342,
0.0457182340323925,
0.07069333642721176,
0.02309327945113182,
-0.034149859100580215,
0.025091374292969704,
-0.007397321052849293,
0.00874640978872776,
-0.01997901126742363,
0.009902575984597206,
-0.0727376937866211,
-0.002644103951752186,
-0.04252602905035019,
-0.011298042722046375,
0.015291704796254635,
0.03122282773256302,
-0.01975645311176777,
-0.07619455456733704,
-0.02232452668249607,
-0.040215589106082916,
-0.0005800012731924653,
0.026857707649469376,
-0.02332879789173603,
-0.027822347357869148,
-0.015872225165367126,
0.026568260043859482,
-0.026324087753891945,
-0.03187929466366768,
0.03149109333753586,
-0.04200144112110138,
-0.028458163142204285,
0.03673157840967178,
0.03278588503599167,
-0.03760527819395065,
-0.0072401585057377815,
0.05116366222500801,
-0.002765849931165576,
0.0023713395930826664,
-0.02293708734214306,
-0.002160722156986594,
-0.017583699896931648,
0.0008698188466951251,
-0.033091846853494644,
-0.03284461051225662,
0.03271082788705826,
0.014273662120103836,
-0.016404442489147186,
-0.02130483090877533,
0.00998043455183506,
-0.026909595355391502,
0.01324982475489378,
0.01315376814454794,
0.008567659184336662,
-0.010071340017020702,
-0.03466556593775749,
0.013689963147044182,
-0.056816790252923965,
0.025713548064231873,
0.003425164381042123,
-0.022403644397854805,
-0.01759781874716282,
-0.03993925452232361,
0.018894197419285774,
0.021085483953356743,
0.016871286556124687,
-0.023062530905008316,
-0.019118785858154297,
0.009874160401523113,
0.009772528894245625,
-0.034668851643800735,
0.0013843525666743517,
0.023919854313135147,
-0.0031821338925510645,
0.014845539815723896,
0.040792591869831085,
-0.020796366035938263,
-0.02659129723906517,
0.007364750374108553,
0.04963706061244011,
-0.008241469040513039,
0.038940198719501495,
0.009935845620930195,
-0.027006270363926888,
0.025256674736738205,
-0.06602151691913605,
0.003032936481758952,
0.03166059032082558,
0.004664204083383083,
0.0181571077555418,
0.029894452542066574,
0.03176122531294823,
-0.018121449276804924,
0.013480337336659431,
0.007943134754896164,
-0.006136788055300713,
0.054565586149692535,
0.02037966623902321,
-0.040632110089063644,
-0.020808113738894463,
0.006763099692761898,
0.032908614724874496,
-0.014962074346840382,
0.01212375145405531,
-0.061385996639728546,
-0.010379008948802948,
-0.005777369253337383,
-0.05157268047332764,
0.010746723972260952,
0.0035838617477566004,
-0.013340987265110016,
0.013383667916059494,
0.018404435366392136,
-0.0055254134349524975,
-0.005818168167024851,
0.05585372820496559,
0.00041913200402632356,
-0.00679952884092927,
0.013906335458159447,
0.02755066007375717,
0.021013908088207245,
-0.03899507224559784,
0.026872802525758743,
0.018158264458179474,
0.018253151327371597,
-0.0037095309235155582,
0.015539285726845264,
-0.02327117882668972,
-0.04672248288989067,
-0.012682798318564892,
0.0021919109858572483,
-0.002199744340032339,
0.010389193892478943,
-0.03833465278148651,
-0.0033913562074303627,
0.008748759515583515,
-0.05139806494116783,
0.03165323659777641,
0.035166580229997635,
-0.047773949801921844,
-0.03870260342955589,
0.06897992640733719,
0.022066384553909302,
0.008665781468153,
0.022939035668969154,
0.011312692426145077,
0.02935725636780262,
-0.01218390092253685,
0.007685497868806124,
0.019815821200609207,
-0.000823355105239898,
-0.005626339465379715,
-0.027873899787664413,
-0.03949996456503868,
0.011503670364618301,
0.012737030163407326,
0.04865086451172829,
0.03446367383003235,
0.010642128996551037,
0.024673866108059883,
0.020622756332159042,
0.02590324357151985,
0.017508454620838165,
0.04581310227513313,
0.04156322777271271,
-0.014269516803324223,
0.027932550758123398,
0.04638535901904106,
-0.03510012477636337,
-0.0037006945349276066,
0.03374216705560684,
0.04015683755278587,
0.04150731489062309,
-0.00037565059028565884,
0.005906041711568832,
0.01586981490254402,
-0.013195917010307312,
-0.03262636810541153,
-0.01588842272758484,
-0.049599889665842056,
-0.01404133066534996,
-0.009538847953081131,
-0.006997883785516024,
0.041693929582834244,
-0.010575076565146446,
0.005697022192180157,
-0.030621247366070747,
0.024480044841766357,
-0.016589825972914696,
-0.02224227599799633,
-0.018439188599586487,
0.016466708853840828,
0.01566808857023716,
0.017848098650574684,
0.042788732796907425,
-0.03835603967308998,
0.035221751779317856,
0.009358176030218601,
-0.09167509526014328,
-0.03506365790963173,
0.014261210337281227,
-0.04976695775985718,
0.024401146918535233,
-0.018678199499845505,
-0.012091115117073059,
-0.03811473026871681,
-0.004144301638007164,
0.013631382025778294,
0.051475878804922104,
-0.02526186965405941,
-0.02326366677880287,
-0.013449343852698803,
-0.04141700267791748,
0.0010489224223420024,
0.06004037708044052,
-0.023044154047966003,
0.020455630496144295,
-0.0215737447142601,
0.03701245039701462,
0.04531164839863777,
-0.026186028495430946,
0.01660517044365406,
0.06416743248701096,
0.06563273817300797,
-0.025792188942432404,
0.005352834705263376,
0.02454826608300209,
-0.03242950886487961,
-0.054098911583423615,
-0.016059154644608498,
0.014436702243983746,
0.002470068633556366,
0.003552391892299056,
0.006663369480520487,
-0.014679456129670143,
0.001237118267454207,
-0.05026720464229584,
0.07874175906181335,
0.05131984129548073,
0.022907070815563202,
0.0030657548923045397,
0.0392986536026001,
-0.04804108664393425,
0.008480988442897797,
-0.014916297979652882,
0.005183149594813585,
0.0036945417523384094,
0.0001872922439360991,
0.04527967795729637,
0.0014330624835565686,
-0.03768587112426758,
0.004660019185394049,
0.018826259300112724,
0.05420549586415291,
-0.02689918875694275,
-0.014955472201108932,
-0.04640793427824974,
0.00014147111505735666,
-0.006973540876060724,
0.005012571346014738,
-0.032084375619888306,
-0.08496382087469101,
0.0004670176131185144,
-0.022664710879325867,
0.008433608338236809,
-0.005316753871738911,
-0.027714598923921585,
-0.013008472509682178,
-0.021692216396331787,
-0.009446375072002411,
0.0567014180123806,
0.003976070322096348,
0.0615275502204895,
-0.004437583964318037,
-0.016566284000873566,
-0.03278606757521629,
-0.00349914631806314,
-0.010917101055383682,
0.026843663305044174,
-0.0007513256859965622,
-0.01207452267408371,
-0.021496130153536797,
-0.024592479690909386,
0.024829076603055,
-0.007879667915403843,
-0.025060197338461876,
0.029961060732603073,
-0.015453129075467587,
-0.016231825575232506,
-0.007971644401550293,
0.06015263497829437,
-0.04422035068273544,
-0.05078982189297676,
0.030388787388801575,
0.013620388694107533,
0.033417265862226486,
-0.03685465455055237,
0.0275428369641304,
0.053991612046957016,
0.00008483392593916506,
-0.013650919310748577,
-0.030329789966344833,
-0.02815459854900837,
0.007000993471592665,
0.00433208467438817,
-0.004912178497761488,
-0.003242200007662177,
0.02291136607527733,
0.013882067985832691,
-0.0026091686449944973,
-0.004990404937416315,
-0.020522404462099075,
-0.01089554000645876,
0.001923013012856245,
0.028022384271025658,
0.020258111879229546,
-0.034560903906822205,
0.03126830235123634,
0.0019378698198124766,
-0.002922948682680726,
0.01333335880190134,
0.034186966717243195,
0.0046455590054392815,
0.009893985465168953,
-0.013220070861279964,
-0.02328278310596943,
0.0019389123190194368,
-0.033892519772052765,
-0.06701286882162094,
0.010098177939653397,
-0.015142223797738552,
-0.009842071682214737,
0.011378495953977108,
-0.035584524273872375,
0.000989092281088233,
-0.0156724750995636,
-0.05105791613459587,
-0.008541424758732319,
0.0033314977772533894,
0.08167264610528946,
0.08122492581605911,
0.00817851535975933,
-0.04808550328016281,
0.004415067844092846,
0.019806526601314545,
-0.0027327779680490494,
0.024086691439151764,
0.03733738511800766,
0.030253881588578224,
-0.036855194717645645,
-0.02071501687169075,
0.0351669043302536,
0.01761850342154503,
-0.02822592295706272,
-0.009645854122936726,
-0.018915656954050064,
-0.03520156443119049,
-0.035179343074560165,
0.023273276165127754,
0.03385498747229576,
0.00423570116981864,
0.07486268132925034,
-0.03393923491239548,
-0.003089526668190956,
-0.008749797940254211,
-0.014072568155825138,
-0.05659833550453186,
0.03516097739338875,
-0.001709921401925385,
-0.03161740303039551,
-0.006848098710179329,
-0.007563597988337278,
0.002340191276744008,
-0.024204526096582413,
-0.03670145198702812,
-0.047333355993032455,
-0.0014732490526512265,
-0.025294587016105652,
-0.023422036319971085,
-0.012773110531270504,
0.05825686827301979,
-0.034209441393613815,
-0.026953253895044327,
0.009775977581739426,
0.02063632942736149,
-0.023186635226011276,
0.005382160656154156,
-0.002797412686049938,
-0.038993895053863525,
0.03874547779560089,
0.031104417517781258,
-0.013660488650202751,
0.023405710235238075,
-0.015578255988657475,
0.011100854724645615,
-0.005412540398538113,
-0.01310656126588583
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Run a sample to fine-tune BERT on SQuAD1.1 The run_qa.py script only works with models that have a fast tokenizer (backed by the 🤗 Tokenizers library), as it uses special features of those tokenizers. This is the case for our BERT model, and you should pass its name as the input argument to --model_name_or_path. In order to use the IPU, Optimum will look for the ipu_config.json file from the path passed to the argument --ipu_config_name. $ python3 run_qa.py \ --ipu_config_name=./ \ --model_name_or_path bert-base-uncased \ --dataset_name squad \ --do_train \ --do_eval \ --output_dir output \ --overwrite_output_dir \ --per_device_train_batch_size 2 \ --per_device_eval_batch_size 2 \ --learning_rate 6e-5 \ --num_train_epochs 3 \ --max_seq_length 384 \ --doc_stride 128 \ --seed 1984 \ --lr_scheduler_type linear \ --loss_scaling 64 \ --weight_decay 0.01 \ --warmup_ratio 0.1 \ --output_dir /tmp/debug_squad/ | [
0.005103013012558222,
0.008259736932814121,
-0.06469745188951492,
0.07122864574193954,
0.024052176624536514,
0.05728041008114815,
0.03493814915418625,
0.004198167473077774,
-0.0005232873954810202,
-0.06335236877202988,
-0.07692345976829529,
0.015764251351356506,
-0.010729559697210789,
0.0002917338570114225,
0.01827794313430786,
0.009227447211742401,
0.03805910795927048,
0.0010555315529927611,
-0.0493081696331501,
0.01358034834265709,
-0.01009204052388668,
-0.0320998877286911,
0.0188433937728405,
0.010571721941232681,
0.010677902027964592,
-0.019096631556749344,
0.00007625899161212146,
0.04695723205804825,
-0.068728506565094,
-0.0125324297696352,
-0.01677168346941471,
-0.04418567195534706,
0.01854870840907097,
-0.0444147028028965,
0.004401182755827904,
0.009533070959150791,
-0.03062107414007187,
0.04511581361293793,
0.005754721816629171,
-0.029340580105781555,
-0.033264853060245514,
-0.06419215351343155,
-0.024806562811136246,
0.0029647795017808676,
0.01113819982856512,
-0.013369571417570114,
-0.047705695033073425,
0.032162752002477646,
-0.04291951656341553,
-0.04501112177968025,
-0.017344417050480843,
0.07726828008890152,
-0.00851626880466938,
-0.0910286232829094,
0.05678889527916908,
-0.004322988912463188,
0.07147936522960663,
-0.09109403192996979,
0.012885021045804024,
0.03541688248515129,
-0.01746143400669098,
-0.0015689954161643982,
0.0283038392663002,
-0.027945207431912422,
-0.005170361138880253,
0.07048451900482178,
-0.08422178775072098,
0.02825966477394104,
-0.024012163281440735,
-0.0288026612251997,
-0.05945444479584694,
0.0171761866658926,
-0.01699422113597393,
-0.04293428361415863,
-0.010400638915598392,
-0.0405069999396801,
-0.023100703954696655,
0.028879212215542793,
0.02047782577574253,
0.09076251834630966,
-0.045589104294776917,
0.02743508480489254,
-0.043366629630327225,
0.012446556240320206,
-0.02536095306277275,
0.0004045414098072797,
0.05315554514527321,
-0.03639977052807808,
-0.04982633888721466,
0.028478119522333145,
-0.004680484998971224,
-0.09330165386199951,
-0.051417723298072815,
-0.028017951175570488,
-0.00937451422214508,
-0.03398887813091278,
-0.02193026803433895,
0.038696691393852234,
-0.04222898185253143,
-0.041211266070604324,
0.007500788662582636,
-0.034148141741752625,
0.025505194440484047,
-0.004168109968304634,
-0.12445203959941864,
0.08428101241588593,
0.0238579623401165,
-0.09627146273851395,
-0.05325305461883545,
0.002936428179964423,
0.05876045674085617,
-0.03908705338835716,
0.01567254588007927,
0.05156265199184418,
-0.01580522581934929,
-0.04461162909865379,
0.020831003785133362,
0.028614211827516556,
-0.004126197658479214,
-0.006666486617177725,
-0.003432297380641103,
0.10003694146871567,
0.046990036964416504,
-0.006495646201074123,
0.0034951947163790464,
0.06284140050411224,
-0.0007225283770821989,
0.008146014995872974,
0.0427677221596241,
-0.019948549568653107,
0.08026570826768875,
-0.0036822177935391665,
0.04046175628900528,
0.06356079876422882,
0.061147186905145645,
0.003524525323882699,
-0.00007657531386939809,
-0.020070182159543037,
-0.017467059195041656,
0.004297954961657524,
-0.001227794331498444,
0.08435673266649246,
-0.017815236002206802,
0.05334967002272606,
0.005706563126295805,
0.015020757913589478,
-0.04706207662820816,
0.061579931527376175,
0.0023429803550243378,
0.014419994316995144,
-0.10252590477466583,
0.04986029863357544,
0.052964966744184494,
0.0028199483640491962,
0.031769637018442154,
0.0916353389620781,
-0.08828098326921463,
-0.039797343313694,
-0.0603204108774662,
-0.08257797360420227,
-0.012572478502988815,
0.04362443462014198,
-0.08008525520563126,
-0.009596697054803371,
0.013576144352555275,
-0.06590717285871506,
0.03282029554247856,
0.015088783577084541,
0.05090539529919624,
-0.07203469425439835,
0.047382552176713943,
-0.028794314712285995,
0.10653724521398544,
0.024761471897363663,
0.03634994104504585,
0.06455010175704956,
-0.009210295043885708,
0.022408612072467804,
-0.034441329538822174,
0.010443375445902348,
-0.07440207153558731,
0.1370810717344284,
-0.011267212219536304,
0.10987893491983414,
0.06812021136283875,
-0.036876533180475235,
0.033804506063461304,
-0.040468163788318634,
-0.018316496163606644,
0.0360201857984066,
0.039612963795661926,
-0.029299234971404076,
0.08871864527463913,
-0.028614789247512817,
0.03771818429231644,
-0.03571482002735138,
-0.015140150673687458,
0.0789250060915947,
0.06418553739786148,
0.028345949947834015,
0.001206530723720789,
0.009608837775886059,
0.038834281265735626,
-0.032570257782936096,
0.0011584436288103461,
0.06885015964508057,
0.013171110302209854,
-0.11770185083150864,
0.04273885115981102,
0.04312071576714516,
0.05849518999457359,
-0.07599544525146484,
0.0028772843070328236,
-0.05503841117024422,
-0.0035033109597861767,
-0.0863008126616478,
-0.01963152177631855,
0.033272046595811844,
0.038973256945610046,
0.020775647833943367,
0.07760729640722275,
-0.019630849361419678,
0.06494162231683731,
-0.0582340806722641,
-0.038197267800569534,
-0.006973004434257746,
0.028777694329619408,
0.05504096299409866,
0.03507355973124504,
-0.061726152896881104,
-0.0046392385847866535,
-0.014347374439239502,
-0.03612397983670235,
0.08475759625434875,
-0.04471468925476074,
-0.031840234994888306,
0.005828102584928274,
-0.01211088802665472,
-0.007128550671041012,
-0.022285694256424904,
-0.011576948687434196,
0.048906825482845306,
-0.03711574152112007,
0.005933604668825865,
0.029399381950497627,
-0.04228692874312401,
0.04791775345802307,
-0.019950294867157936,
-0.01616319641470909,
-0.04068915545940399,
-0.027694227173924446,
-0.001383313094265759,
-0.0035960255190730095,
-0.0201429296284914,
-0.02408239059150219,
0.047418493777513504,
-0.016080709174275398,
0.04612673819065094,
0.010811924003064632,
0.026926694437861443,
-0.0004968457506038249,
0.02775345742702484,
-0.030081454664468765,
-0.001381695386953652,
0.018878143280744553,
-0.023388778790831566,
0.024211039766669273,
-0.01670514978468418,
-0.021940911188721657,
-0.0048903594724833965,
0.019926734268665314,
0.014698636718094349,
-0.009764588437974453,
0.01485102903097868,
0.007410355377942324,
0.10936865210533142,
0.024668099358677864,
-0.025183185935020447,
-0.037923187017440796,
0.01378175150603056,
-0.004686684347689152,
-0.05091097578406334,
0.020386267453432083,
0.0013677970273420215,
0.005346356425434351,
-0.01627056486904621,
0.02959606423974037,
-0.06418772041797638,
-0.0016678657848387957,
-0.012940584681928158,
0.0007204823778010905,
0.03625006228685379,
0.004926447756588459,
-0.01007906161248684,
0.050725702196359634,
0.014127632603049278,
0.03042069636285305,
-0.01230632420629263,
0.01050708256661892,
-0.0068127610720694065,
-0.02391441911458969,
0.02179122157394886,
-0.059058062732219696,
-0.02153441309928894,
-0.019557368010282516,
-0.008248221129179,
0.02553202211856842,
-0.004387181717902422,
-0.06991343200206757,
0.0252717025578022,
0.01109903585165739,
-0.008589297533035278,
-0.018517425283789635,
-0.022343136370182037,
0.07018020749092102,
-0.01859360747039318,
-0.04247118532657623,
0.03865232318639755,
-0.029121417552232742,
-0.0208465326577425,
-0.00515711260959506,
0.00588276656344533,
-0.008761835284531116,
-0.030896717682480812,
-0.005884870421141386,
0.00016321265138685703,
-0.039221588522195816,
0.014038792811334133,
0.012503543868660927,
0.0322672463953495,
0.05445456504821777,
-0.01596226915717125,
0.012131393887102604,
0.04370191693305969,
-0.008952426724135876,
0.03357096016407013,
0.03470859304070473,
-0.034636497497558594,
-0.02354704774916172,
-0.0404137447476387,
0.028590749949216843,
-0.00982598401606083,
-0.03001142293214798,
-0.008094919845461845,
-0.023596618324518204,
0.004584208596497774,
-0.015519767068326473,
0.025552617385983467,
-0.01832369528710842,
0.0055321864783763885,
0.032009340822696686,
-0.019232986494898796,
0.04358765482902527,
-0.010430394671857357,
-0.015591759234666824,
-0.052923187613487244,
0.009225194342434406,
0.009166425094008446,
-0.059799473732709885,
0.008773859590291977,
-0.022509973496198654,
0.04293403774499893,
-0.03112475387752056,
0.0477447584271431,
0.04965612292289734,
0.039444081485271454,
0.01456393487751484,
-0.002525089308619499,
-0.021021103486418724,
0.014580870978534222,
-0.021628137677907944,
-0.03904847800731659,
0.04721612483263016,
-0.012123515829443932,
0.04552632197737694,
-0.0014937786618247628,
0.009926971979439259,
0.02526872232556343,
0.010022320784628391,
-0.012906898744404316,
0.02987278439104557,
0.01326998695731163,
-0.010046493262052536,
-0.0024387668818235397,
-0.028095273301005363,
-0.055473826825618744,
-0.029216842725872993,
0.018428945913910866,
0.02114137075841427,
0.0018241083016619086,
-0.03095324896275997,
0.003862898563966155,
-0.001481289160437882,
0.006584900431334972,
0.01758183166384697,
-0.0608832910656929,
0.048891644924879074,
0.007115721236914396,
-0.0360817015171051,
-0.04089786857366562,
0.05160389840602875,
-0.003057237481698394,
-0.08496952801942825,
-0.02296227589249611,
0.02192659117281437,
0.02571203000843525,
-0.015762686729431152,
0.03912310302257538,
-0.021074660122394562,
0.00014367375115398318,
-0.0016538479831069708,
0.014467033557593822,
-0.028051916509866714,
0.05844472348690033,
-0.050830744206905365,
-0.04177957400679588,
-0.00532588642090559,
0.001116157160140574,
0.0210337545722723,
-0.02535441517829895,
-0.026841655373573303,
-0.03586316481232643,
0.042417511343955994,
0.0393223837018013,
0.03139886632561684,
-0.008292989805340767,
-0.02115512825548649,
0.05006008967757225,
0.002307512564584613,
0.03906157985329628,
0.015924496576189995,
-0.009871205314993858,
0.023562585934996605,
-0.024319861084222794,
0.010758591815829277,
0.0448407419025898,
0.021774418652057648,
-0.03357035294175148,
-0.018026204779744148,
-0.03457015007734299,
0.026778360828757286,
0.002430681139230728,
0.0210714153945446,
-0.008608125150203705,
-0.0029947212897241116,
-0.03080294094979763,
0.013277027755975723,
-0.03293358534574509,
0.0036619724705815315,
0.03601203113794327,
0.06969089806079865,
-0.040088631212711334,
0.02547401189804077,
0.030990537256002426,
-0.01830657385289669,
-0.0037290530744940042,
-0.005796146113425493,
-0.0012873171363025904,
0.02777266502380371,
-0.042068105190992355,
-0.029197486117482185,
-0.034477341920137405,
0.04673411324620247,
-0.021533822640776634,
-0.021382952108979225,
0.024221662431955338,
0.04562937095761299,
0.0647895410656929,
0.016460958868265152,
-0.021812861785292625,
-0.009439226239919662,
-0.03107420727610588,
0.017275799065828323,
0.004487806931138039,
0.03149011731147766,
-0.0702580064535141,
-0.060573264956474304,
0.02126288041472435,
-0.02093765139579773,
-0.015074270777404308,
-0.0251141544431448,
-0.03630589693784714,
0.013411114923655987,
0.044367313385009766,
0.0012235825415700674,
-0.0015393373323604465,
-0.004177468363195658,
0.0266231931746006,
0.009299485012888908,
0.001513838185928762,
0.017257433384656906,
0.00731571763753891,
-0.014808476902544498,
0.05977709963917732,
0.05210521072149277,
0.02180047705769539,
0.024282105267047882,
-0.00952286459505558,
0.021708086133003235,
-0.015069607645273209,
0.06967158615589142,
-0.04340589419007301,
-0.03882274404168129,
0.03679811209440231,
-0.008340230211615562,
0.017835060134530067,
-0.00805142242461443,
-0.06317543983459473,
0.011766498908400536,
0.034918662160634995,
0.0009277809876948595,
-0.03969946131110191,
0.0583803653717041,
-0.022666802629828453,
0.017460910603404045,
-0.032026294618844986,
-0.024006297811865807,
-0.0297392550855875,
-0.014010367915034294,
-0.043871257454156876,
0.008236358873546124,
-0.0019050771370530128,
0.02022775076329708,
-0.026302147656679153,
0.01703743264079094,
0.0022511756978929043,
0.041695185005664825,
0.005663152318447828,
-0.05276397988200188,
-0.01256566308438778,
-0.0030224432703107595,
0.029194246977567673,
-0.014313270337879658,
-0.04256806522607803,
0.02588026039302349,
-0.033127885311841965,
0.026183918118476868,
0.051227670162916183,
0.007473200559616089,
0.009103081189095974,
0.009768104180693626,
0.04888927936553955,
0.013789958320558071,
-0.009910183027386665,
-0.012830783613026142,
0.01004026085138321,
0.014135287143290043,
-0.040502648800611496,
0.0032268764916807413,
-0.07881162315607071,
-0.03068792074918747,
0.011901484802365303,
-0.014704260043799877,
0.03391982987523079,
0.04638214781880379,
-0.012048262171447277,
0.04022596403956413,
-0.005122051108628511,
-0.01503886841237545,
0.02620610222220421,
-0.011351319961249828,
-0.013818423263728619,
0.0014601933071389794,
0.049909718334674835,
0.03914529085159302,
0.01119154505431652,
0.009003380313515663,
0.01647369936108589,
0.014214378781616688,
-0.04532292112708092,
0.03329163417220116,
0.03621678426861763,
-0.012110167182981968,
0.01270208042114973,
-0.02353774383664131,
-0.0400625616312027,
-0.009234113618731499,
0.024480968713760376,
-0.01668643206357956,
0.009893523529171944,
0.011631889268755913,
-0.0012487516505643725,
0.01570047438144684,
-0.020658832043409348,
0.02062895894050598,
0.04829492047429085,
0.023369373753666878,
-0.0056671639904379845,
0.042599987238645554,
0.03235644847154617,
0.004950860980898142,
0.016601480543613434,
-0.03726853057742119,
0.002878831699490547,
0.032826345413923264,
0.02230684645473957,
-0.008005896583199501,
0.027080172672867775,
-0.05616222694516182,
-0.03443039953708649,
-0.04987591505050659,
0.014385082758963108,
-0.004289513919502497,
-0.024901872500777245,
0.07785211503505707,
-0.008137772791087627,
0.04049830138683319,
-0.016977459192276,
0.02128821797668934,
0.04113224148750305,
0.03204556927084923,
-0.012616726569831371,
0.03916658088564873,
-0.015358000062406063,
-0.014678210951387882,
-0.0231288131326437,
-0.0049798875115811825,
-0.006804110016673803,
-0.03316487744450569,
0.05297400429844856,
0.011151531711220741,
0.002531960140913725,
0.021284500136971474,
-0.020887058228254318,
0.01794625073671341,
-0.07350238412618637,
0.0041775391437113285,
0.02718275412917137,
0.00823032297194004,
0.0444965660572052,
-0.05925736203789711,
0.03589760512113571,
-0.04593775421380997,
-0.0015307330759242177,
-0.011920402757823467,
0.00992539245635271,
0.016703562811017036,
-0.031482670456171036,
-0.013849391601979733,
0.006302346475422382,
-0.005945536307990551,
-0.044240742921829224,
-0.003944792319089174,
0.02692950889468193,
0.010791412554681301,
0.03495704010128975,
0.014366738498210907,
-0.00974288396537304,
-0.04034145176410675,
-0.031761784106492996,
-0.016170723363757133,
0.014251413755118847,
0.026338573545217514,
-0.03205158933997154,
0.00045745246461592615,
0.04571719095110893,
0.04484229162335396,
0.01179586537182331,
0.02493114210665226,
0.05290055274963379,
0.01338463556021452,
-0.012787292711436749,
-0.008368025533854961,
-0.05085672810673714,
0.054687850177288055,
-0.07887280732393265,
-0.009157104417681694,
0.011649366468191147,
0.053983110934495926,
0.005583423655480146,
0.016805635765194893,
-0.03352321311831474,
-0.016332801431417465,
-0.005308224353939295,
0.03551245853304863,
-0.09592115134000778,
0.018925055861473083,
0.0485331229865551,
0.050725605338811874,
0.033549144864082336,
-0.08176888525485992,
0.008032670244574547,
0.025113224983215332,
-0.020852752029895782,
0.042534708976745605,
0.012500460259616375,
-0.016140416264533997,
-0.035562820732593536,
0.030123090371489525,
0.017787108197808266,
0.010274400003254414,
0.01702365092933178,
-0.009890810586512089,
-0.0007364838966168463,
-0.0021850483026355505,
0.0037050896789878607,
-0.04227403923869133,
-0.010742893442511559,
-0.040704112499952316,
-0.053927212953567505,
-0.029903007671236992,
-0.011020688340067863,
-0.041884664446115494,
0.012500639073550701,
-0.026763679459691048,
-0.012941556982696056,
0.0033213074784725904,
-0.00425152201205492,
-0.055977385491132736,
0.036663223057985306,
0.07511312514543533,
0.06710781902074814,
0.019109437242150307,
-0.014412358403205872,
-0.024396445602178574,
0.009316974319517612,
-0.032120008021593094,
-0.0037978538312017918,
0.02693464793264866,
0.03757627308368683,
-0.019608940929174423,
-0.01835290715098381,
0.02909626066684723,
0.021136585623025894,
-0.04156357795000076,
-0.05907487869262695,
0.028177300468087196,
-0.012709741480648518,
-0.045177266001701355,
0.01090024784207344,
0.048750557005405426,
-0.018581002950668335,
0.0023593520745635033,
-0.01943260058760643,
-0.014246203005313873,
-0.02765759825706482,
0.008137950673699379,
-0.060015399008989334,
-0.01901020109653473,
-0.02975768782198429,
-0.05263470485806465,
0.004370737820863724,
-0.018733065575361252,
-0.00034175137989223003,
0.046497538685798645,
-0.06662824004888535,
0.026662947610020638,
-0.0059377821162343025,
0.017091548070311546,
-0.0007333186804316938,
0.005106097552925348,
0.042915452271699905,
-0.02016637660562992,
0.015738746151328087,
0.03632998466491699,
0.029155736789107323,
-0.012646929360926151,
-0.007808198686689138,
-0.002490298356860876,
-0.0062695653177797794,
-0.021878814324736595,
-0.015731405466794968,
-0.03106951154768467,
0.02064543217420578,
0.018335746601223946,
0.00905516091734171,
0.00812323484569788,
0.047283679246902466
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Optimum Meets Graphcore IPU Through this partnership between Graphcore and Hugging Face, we are now introducing BERT as the first IPU-optimized model. We will be introducing many more of these IPU-optimized models in the coming months, spanning applications such as vision, speech, translation and text generation. Graphcore engineers have implemented and optimized BERT for our IPU systems using Hugging Face transformers to help developers easily train, fine-tune and accelerate their state-of-the-art models. | [
0.007493757642805576,
-0.025116996839642525,
0.01625574380159378,
0.007272776681929827,
-0.03627612814307213,
0.03231009095907211,
0.024556633085012436,
0.09079623967409134,
0.009580139070749283,
-0.029012406244874,
-0.004735283553600311,
0.03258901461958885,
-0.02454548515379429,
0.04307670518755913,
0.06098693236708641,
-0.07625687122344971,
-0.026646975427865982,
0.004937505815178156,
-0.07309788465499878,
0.047134775668382645,
-0.03065461292862892,
-0.07285371422767639,
0.067616768181324,
-0.004936274141073227,
0.016982030123472214,
-0.08892957121133804,
-0.023020748049020767,
-0.00011432779137976468,
-0.031136684119701385,
0.013447619043290615,
0.009097444824874401,
-0.03413727506995201,
0.05806869640946388,
-0.05467480793595314,
-0.015956556424498558,
-0.02443801425397396,
-0.11266664415597916,
0.01737392507493496,
-0.07606581598520279,
0.01152014546096325,
0.008381967432796955,
-0.0199277400970459,
-0.05199853330850601,
-0.0729260966181755,
-0.0038008950650691986,
-0.01762397401034832,
-0.05599656701087952,
0.12321817874908447,
0.026448307558894157,
-0.05334361642599106,
-0.034317128360271454,
0.07199278473854065,
-0.02503741718828678,
-0.013014997355639935,
0.06605280190706253,
-0.015116751194000244,
0.02853834070265293,
-0.06670887023210526,
-0.0037192993331700563,
-0.0009640766656957567,
0.016223842278122902,
-0.049693427979946136,
-0.03227034956216812,
0.03448105975985527,
0.00019289636111352593,
-0.010226063430309296,
-0.04962106794118881,
-0.09550416469573975,
-0.031550176441669464,
-0.040535181760787964,
-0.021534031257033348,
-0.02118663676083088,
-0.03631780296564102,
-0.012072466313838959,
-0.02369687147438526,
-0.007944947108626366,
0.029785532504320145,
0.011251891031861305,
0.0031198651995509863,
0.03497619181871414,
-0.03133292868733406,
0.05058634281158447,
0.01156284473836422,
-0.02779170125722885,
0.013625000603497028,
0.07034844905138016,
0.05402341112494469,
-0.10338608920574188,
-0.09691280126571655,
0.05093691125512123,
-0.06367146223783493,
-0.11942154914140701,
-0.02089548669755459,
-0.011501878499984741,
0.05384043604135513,
-0.02613062784075737,
-0.043962910771369934,
-0.003069047350436449,
-0.03194939345121384,
-0.048448868095874786,
0.03328174725174904,
-0.03489470109343529,
-0.0324256457388401,
-0.030611032620072365,
-0.08144767582416534,
0.030203595757484436,
-0.06700674444437027,
-0.09587222337722778,
-0.011815263889729977,
0.04259774833917618,
0.03601634129881859,
-0.05362768843770027,
0.0839637964963913,
0.10156948864459991,
-0.03811375051736832,
0.05609315261244774,
0.040106985718011856,
-0.017656030133366585,
0.017470408231019974,
0.021813997998833656,
0.01404623780399561,
0.04017353057861328,
0.013736533001065254,
0.07098798453807831,
0.03049498051404953,
0.04948592185974121,
-0.03172396123409271,
-0.010797613300383091,
0.056989461183547974,
-0.002178062917664647,
0.050194792449474335,
0.03080550581216812,
0.07558879256248474,
-0.008791006170213223,
0.0666956752538681,
-0.021316593512892723,
0.029530374333262444,
-0.0774097815155983,
-0.04071108251810074,
-0.04458056762814522,
-0.010578093118965626,
0.036095019429922104,
0.052511654794216156,
-0.033831994980573654,
0.03709902614355087,
-0.033766407519578934,
-0.09075182676315308,
0.10120496898889542,
0.03791633993387222,
-0.014400710351765156,
-0.08760444074869156,
0.04296277463436127,
-0.015126573853194714,
-0.023438135161995888,
0.013421290554106236,
0.06257671862840652,
0.013641436584293842,
-0.03726758062839508,
-0.0180552639067173,
-0.08106008172035217,
-0.021604150533676147,
0.041281115263700485,
-0.1003752052783966,
-0.03925055265426636,
-0.027336930856108665,
0.01287988293915987,
-0.02030923403799534,
-0.02584942989051342,
-0.01001765113323927,
-0.04084029421210289,
0.046791162341833115,
0.012925319373607635,
0.047246694564819336,
0.008521400392055511,
-0.02772720903158188,
0.04405258968472481,
0.002366791246458888,
0.04800994321703911,
-0.09504503011703491,
-0.02058994211256504,
-0.06344259530305862,
0.1096348688006401,
0.032664962112903595,
0.10844773799180984,
0.006002458743751049,
0.0033612996339797974,
-0.01035742275416851,
0.004084273241460323,
0.019041936844587326,
0.012848088517785072,
0.021436957642436028,
0.026099838316440582,
0.07488115131855011,
-0.045819174498319626,
0.06205366551876068,
0.0040258727967739105,
-0.041831471025943756,
0.003609188599511981,
0.037745434790849686,
-0.011558465659618378,
0.06902272254228592,
-0.08790712058544159,
0.02828889526426792,
-0.0032204044982790947,
-0.02310877852141857,
-0.039920955896377563,
0.002588538220152259,
-0.0555664487183094,
-0.007954013533890247,
0.010890210047364235,
0.02878539450466633,
-0.11790268123149872,
0.030535509809851646,
-0.031403809785842896,
-0.005418646149337292,
-0.1356765627861023,
-0.04379162937402725,
0.046420443803071976,
0.048317838460206985,
-0.05212121829390526,
0.10874209553003311,
-0.02941795624792576,
0.00831359252333641,
-0.037751924246549606,
0.000015564493878628127,
0.03928423672914505,
0.017400840297341347,
0.03743935003876686,
0.06186337396502495,
-0.03124101832509041,
0.005934434477239847,
-0.0645633190870285,
-0.0073286690749228,
0.0024349181912839413,
-0.0247763954102993,
-0.004413452930748463,
-0.033225852996110916,
0.017137477174401283,
0.07689173519611359,
-0.0008836957276798785,
-0.006765088066458702,
0.021201785653829575,
-0.014710996299982071,
-0.0378015898168087,
0.038888223469257355,
0.010111665353178978,
0.06092275306582451,
-0.04968690127134323,
0.011824213899672031,
0.022102834656834602,
-0.06785787642002106,
0.04493832215666771,
-0.01768689788877964,
0.0012604547664523125,
-0.005403885617852211,
-0.01892022043466568,
0.001111234538257122,
-0.001200675847940147,
0.002021332737058401,
0.052363429218530655,
-0.008439275436103344,
-0.05391009524464607,
-0.014725033193826675,
0.01107899658381939,
0.008245633915066719,
-0.01950494386255741,
0.01124285813421011,
0.012402200140058994,
-0.01280782651156187,
0.033997584134340286,
0.009558689780533314,
-0.04306625574827194,
0.05384963005781174,
-0.009591275826096535,
0.01741076074540615,
0.029672862961888313,
0.027205275371670723,
-0.023392891511321068,
-0.0456809476017952,
0.007367032580077648,
0.0010474539594724774,
-0.023661663755774498,
0.015277949161827564,
-0.004766303114593029,
-0.00027049152413383126,
-0.010403197258710861,
-0.00033124841866083443,
-0.018913589417934418,
-0.011394871398806572,
-0.009565823711454868,
-0.005433151964098215,
0.054314274340867996,
-0.05732772499322891,
0.011582046747207642,
0.005724777467548847,
0.03335430100560188,
0.00042056615347974,
-0.023482326418161392,
-0.008733874186873436,
0.027612853795289993,
0.024678347632288933,
0.002892851596698165,
-0.003988787531852722,
0.019812200218439102,
-0.028740713372826576,
0.010550836101174355,
0.03161390498280525,
0.009502752684056759,
-0.06042604148387909,
-0.01601814664900303,
-0.015323441475629807,
-0.000348937523085624,
-0.026029691100120544,
0.009345375001430511,
0.04069986194372177,
0.003661426715552807,
-0.038755130022764206,
0.013743240386247635,
0.054569195955991745,
-0.02094484493136406,
0.011771157383918762,
0.0166173093020916,
0.007340482901781797,
0.019631769508123398,
-0.02355892024934292,
-0.02145758643746376,
-0.0045083072036504745,
0.025527341291308403,
-0.015222388319671154,
-0.010535869747400284,
0.040546730160713196,
-0.03869285807013512,
0.006868220400065184,
-0.0438007116317749,
0.015305924229323864,
-0.025001831352710724,
0.022591425105929375,
-0.02980533428490162,
0.008761223405599594,
-0.011075083166360855,
0.04449360817670822,
0.016360756009817123,
0.005525955464690924,
0.004305689129978418,
-0.05121443048119545,
0.057281117886304855,
0.035866789519786835,
0.02357642911374569,
0.022946316748857498,
-0.0028661012183874846,
-0.011860983446240425,
-0.021435638889670372,
0.05539306253194809,
-0.021997489035129547,
-0.022414827719330788,
-0.01591261476278305,
0.018800070509314537,
-0.0025657438673079014,
-0.07191643118858337,
-0.013790909200906754,
-0.011130348779261112,
0.0688413605093956,
-0.04965514689683914,
0.012163707986474037,
0.022186048328876495,
0.008358001708984375,
-0.027407465502619743,
0.0367971733212471,
-0.0317494161427021,
0.01442495547235012,
0.00038937522913329303,
0.0021233398001641035,
0.006200213450938463,
0.04311921074986458,
0.059438306838274,
-0.03815872594714165,
0.0399511493742466,
0.012127880938351154,
0.008922494016587734,
-0.012552560307085514,
0.023536965250968933,
0.0103309266269207,
-0.040121953934431076,
-0.0035550622269511223,
0.008263777941465378,
-0.011502581648528576,
0.023561997339129448,
0.005515503231436014,
-0.020178666338324547,
-0.024500226601958275,
-0.01720426231622696,
0.009493887424468994,
0.04441394656896591,
0.02960396744310856,
0.010136320255696774,
-0.04643992707133293,
0.01000124216079712,
0.00039243328501470387,
0.00699363648891449,
-0.03495106101036072,
0.0036173320841044188,
-0.007330476772040129,
-0.0367744080722332,
0.04031670466065407,
0.001161840744316578,
0.03617240488529205,
-0.015390351414680481,
-0.020031558349728584,
-0.037332065403461456,
-0.04001360386610031,
-0.04250684753060341,
0.017814062535762787,
-0.03456554561853409,
0.08228787779808044,
0.021961258724331856,
-0.059024084359407425,
0.05579683184623718,
0.029876697808504105,
0.0052113779820501804,
0.00250848475843668,
-0.035981856286525726,
-0.02219688519835472,
0.04178936406970024,
0.007645259145647287,
0.0029855661559849977,
0.024476904422044754,
-0.02030855230987072,
0.025534002110362053,
-0.003927964251488447,
0.019847586750984192,
0.02899252437055111,
0.007141653448343277,
0.0388626903295517,
-0.009939875453710556,
-0.004451953340321779,
0.02983097918331623,
0.021762119606137276,
-0.01929597556591034,
-0.0006118068122304976,
-0.0231858491897583,
0.02049957774579525,
0.001523742568679154,
0.01160130649805069,
-0.017551716417074203,
-0.033256106078624725,
-0.03177320957183838,
-0.01340564340353012,
-0.009506414644420147,
-0.02759937383234501,
0.057069819420576096,
0.09721904993057251,
-0.016326744109392166,
0.03402135521173477,
-0.013330141082406044,
-0.019116897135972977,
0.02390134334564209,
0.016498783603310585,
0.011524788103997707,
0.022611726075410843,
-0.03270471468567848,
-0.018440455198287964,
0.034984562546014786,
0.0469779334962368,
-0.027204178273677826,
-0.0008517922251485288,
0.01924736052751541,
0.02957332879304886,
0.07812020182609558,
0.04046221449971199,
0.0035403172951191664,
-0.04802447184920311,
-0.014052742160856724,
0.042508814483881,
-0.013363402336835861,
0.04055625572800636,
-0.05757487192749977,
-0.04503737762570381,
-0.0045304074883461,
0.011400977149605751,
0.0016211806796491146,
0.02552487514913082,
-0.008116897195577621,
0.03171379864215851,
0.050750020891427994,
0.005987982265651226,
-0.03972923755645752,
0.02583586424589157,
0.035627331584692,
-0.003736499696969986,
-0.0013461640337482095,
0.0008107176399789751,
0.020306983962655067,
0.03432808071374893,
0.0067280251532793045,
0.014345509931445122,
0.03862849622964859,
-0.01512518897652626,
-0.02375112846493721,
0.013578474521636963,
-0.03618144989013672,
0.008860555477440357,
-0.017037471756339073,
-0.027468541637063026,
0.028208883479237556,
-0.02292443811893463,
-0.009891439229249954,
0.024072030559182167,
-0.03042607568204403,
0.038943301886320114,
0.050106365233659744,
-0.048415202647447586,
-0.002145696198567748,
0.02595020830631256,
0.007002470549196005,
0.034545641392469406,
0.029711134731769562,
-0.00961929839104414,
-0.03381873667240143,
0.014528283849358559,
0.003058708505704999,
0.049772925674915314,
-0.017391471192240715,
0.02875618077814579,
-0.035799164324998856,
0.01955791562795639,
0.01874292641878128,
0.009672692976891994,
0.04052790626883507,
0.009984812699258327,
-0.0008735994924791157,
-0.01602761447429657,
-0.02282470464706421,
-0.012422757223248482,
-0.013986386358737946,
0.00650668004527688,
-0.004325149115175009,
-0.009041761048138142,
0.011469287797808647,
0.017457734793424606,
0.0005975401727482677,
0.0045191883109509945,
0.028966302052140236,
0.030493417754769325,
0.009007054381072521,
-0.01717451587319374,
0.019188644364476204,
0.014143814332783222,
-0.053337085992097855,
-0.003959470894187689,
-0.07063876837491989,
-0.05774327740073204,
-0.004917712416499853,
-0.022236183285713196,
0.008520415984094143,
0.057986922562122345,
0.006429101340472698,
0.02978326752781868,
-0.013793045654892921,
0.0011194180697202682,
0.004487276077270508,
-0.04750170558691025,
-0.006046204827725887,
0.0031015893910080194,
0.04774640500545502,
0.03723113611340523,
0.020828470587730408,
0.0003318983071949333,
0.0006009144708514214,
-0.035895586013793945,
-0.04982535168528557,
0.022755557671189308,
0.04958171397447586,
-0.031024349853396416,
0.0067889937199652195,
-0.025537695735692978,
-0.023141132667660713,
-0.024524977430701256,
0.006116931326687336,
0.014583386480808258,
0.031005682423710823,
0.027436906471848488,
-0.022404169663786888,
-0.012392908334732056,
-0.03638624772429466,
0.041524846106767654,
0.07976971566677094,
0.036449119448661804,
-0.008574643172323704,
0.037623483687639236,
0.03144777566194534,
0.011516213417053223,
0.042103592306375504,
0.000006677391866105609,
0.033373329788446426,
0.021001392975449562,
-0.018650120124220848,
0.00801917351782322,
0.0046324348077178,
-0.07371969521045685,
-0.005402532871812582,
-0.0024556322023272514,
0.008905556052923203,
0.014473261311650276,
-0.01256093941628933,
0.021441135555505753,
-0.0411326065659523,
0.008848934434354305,
0.01634003221988678,
0.03965890780091286,
0.038404952734708786,
0.045787617564201355,
-0.05186906084418297,
0.03680061548948288,
-0.0004636193916667253,
0.0172873642295599,
0.050996359437704086,
-0.0454879105091095,
-0.023054592311382294,
0.014607046730816364,
0.04444137588143349,
0.0009467419004067779,
0.04068905487656593,
-0.004439164884388447,
0.01650475524365902,
0.04940003529191017,
0.016084687784314156,
-0.039959926158189774,
0.002090131165459752,
-0.016562601551413536,
0.008259007707238197,
-0.01875920407474041,
-0.007132850121706724,
-0.03539055213332176,
0.0452689565718174,
-0.019742123782634735,
0.028977543115615845,
-0.021733421832323074,
0.03316531330347061,
0.014676342718303204,
0.009423648938536644,
0.005497649312019348,
0.04955108091235161,
0.0007296071271412075,
-0.0032156670931726694,
0.007818330079317093,
0.04241897910833359,
-0.051153793931007385,
0.011182461865246296,
0.007066486403346062,
-0.02348855510354042,
-0.051309529691934586,
-0.006652480456978083,
0.02041885256767273,
-0.00713617168366909,
0.028486382216215134,
0.04972166195511818,
0.0055671799927949905,
0.019891243427991867,
0.0074270679615437984,
0.03210335224866867,
-0.005209146998822689,
0.004093351773917675,
0.00045785214751958847,
-0.022443579509854317,
0.01848691888153553,
-0.08045220375061035,
0.024029070511460304,
-0.027059316635131836,
0.0060356720350682735,
0.04588042199611664,
0.07701152563095093,
-0.04603519290685654,
-0.02949444204568863,
-0.011500866152346134,
0.03508847579360008,
-0.05358897149562836,
0.006350555922836065,
0.022880591452121735,
0.03865384683012962,
0.027918945997953415,
-0.037286460399627686,
0.016748394817113876,
-0.02923833392560482,
-0.0222396869212389,
0.07406880706548691,
-0.0038930049631744623,
-0.018498288467526436,
-0.016066383570432663,
0.007341801188886166,
0.0336463525891304,
-0.01494525745511055,
0.023075859993696213,
-0.043088149279356,
-0.019189288839697838,
-0.019973456859588623,
0.019732115790247917,
-0.013879438862204552,
-0.022739391773939133,
-0.028685135766863823,
-0.025420742109417915,
0.046758513897657394,
-0.010562282055616379,
-0.0029481370002031326,
0.006272482220083475,
-0.041836488991975784,
0.024339498952031136,
-0.0387992225587368,
-0.028978651389479637,
0.0011049330933019519,
0.03843497112393379,
0.03847074881196022,
0.04493781924247742,
0.02625715546309948,
-0.0413447730243206,
-0.015476908534765244,
-0.03987118974328041,
0.013067311607301235,
0.0009341563563793898,
0.058551326394081116,
-0.026908187195658684,
0.014632909558713436,
-0.06017792969942093,
-0.03806539252400398,
0.06265583634376526,
-0.047871172428131104,
0.04725592955946922,
0.009937980212271214,
0.0012554136337712407,
-0.04419000819325447,
0.007453104481101036,
0.017679274082183838,
-0.048968810588121414,
0.038911350071430206,
0.005078635178506374,
-0.024561753496527672,
-0.008842657320201397,
0.0006360590341500938,
-0.01461769174784422,
-0.011571130715310574,
-0.021291077136993408,
-0.01996348239481449,
0.0020969966426491737,
-0.006741257384419441,
0.020798208191990852,
0.01865508034825325,
0.0030778509099036455,
0.013115299865603447,
-0.012598567642271519,
-0.02024400606751442,
-0.02079782634973526,
0.007316063158214092,
0.030972152948379517,
-0.02869320474565029,
-0.05603891983628273,
0.02689632587134838,
0.013102627359330654,
0.004471318796277046,
-0.0029839861672371626,
-0.02007075399160385,
-0.07116720080375671,
0.0031701012048870325,
-0.011549088172614574,
0.029515858739614487,
0.039473894983530045,
0.034626130014657974,
0.014558891765773296,
-0.00932178646326065,
0.0019284606678411365
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Loading the pretrained model and tokenizer To turn words into tokens, this script will require a fast tokenizer. It will show an error if you didn't pass one. For reference, here's the list of supported tokenizers. # Tokenizer check: this script requires a fast tokenizer. if not isinstance(tokenizer, PreTrainedTokenizerFast): raise ValueError("This example script only works for models that have a fast tokenizer. Checkout the big table of models "at https://huggingface.co/transformers/index.html#supported-frameworks to find the model types that meet this " "requirement" ) The argument --model_name_or_path==bert-base-uncased`` loads the [bert-base-uncased](https://huggingface.co/bert-base-uncased) model implementation available in the Hugging Face Hub. From the Hugging Face Hub description: "*BERT base model (uncased): Pretrained model on English language using a masked language modeling (MLM) objective. It was introduced in this paper and first released in this repository. This model is uncased: it does not make a difference between english and English.*" | [
-0.03495725616812706,
-0.007579777855426073,
0.01813565380871296,
-0.004965442698448896,
0.04626118764281273,
0.0774417445063591,
0.038357481360435486,
0.05988049507141113,
-0.016237320378422737,
0.021601689979434013,
-0.08899383246898651,
0.06825283169746399,
-0.015895312651991844,
0.023847566917538643,
0.003320579882711172,
-0.03895746171474457,
0.06100412458181381,
-0.013282091356813908,
-0.03954001143574715,
-0.009371603839099407,
-0.0031516659073531628,
-0.07596194744110107,
0.06630418449640274,
-0.020001597702503204,
0.028406301513314247,
-0.03357037529349327,
0.028618501499295235,
-0.013007608242332935,
-0.007143882568925619,
0.023324908688664436,
-0.07041753828525543,
-0.02362687513232231,
0.012491690926253796,
-0.03749873489141464,
0.009732784703373909,
0.0187058262526989,
-0.09337574988603592,
0.0656011700630188,
0.005170355085283518,
-0.03139873966574669,
-0.05572199448943138,
0.018226269632577896,
-0.008112477138638496,
0.054089538753032684,
-0.021008910611271858,
-0.044946156442165375,
-0.17389768362045288,
0.054018471390008926,
0.0038942615501582623,
-0.030402207747101784,
-0.07396947592496872,
0.042835090309381485,
-0.025538090616464615,
0.014979945495724678,
0.056612778455019,
0.0060123237781226635,
-0.040375467389822006,
-0.09051547944545746,
0.052671678364276886,
-0.014011349529027939,
0.03458056598901749,
0.0037594204768538475,
-0.046473484486341476,
-0.010506800375878811,
0.07057976722717285,
0.07212017476558685,
-0.04934981092810631,
-0.0222514308989048,
-0.00925819855183363,
-0.027420280501246452,
-0.01581398770213127,
-0.04282126575708389,
-0.04481053352355957,
-0.03905508667230606,
0.00011033792543457821,
-0.03336615487933159,
-0.02195534110069275,
0.03243382275104523,
0.005880626849830151,
0.030389748513698578,
-0.02092234045267105,
-0.0053233252838253975,
0.01954091712832451,
0.0723758190870285,
0.04865794628858566,
0.007401424925774336,
0.03313128650188446,
-0.01787003129720688,
-0.04383377730846405,
0.09784074127674103,
-0.011577334254980087,
-0.1311703622341156,
-0.04099037125706673,
0.013505748473107815,
0.07034140080213547,
-0.018562786281108856,
0.013549254275858402,
0.044331226497888565,
0.007531679235398769,
-0.005637387745082378,
-0.0006489937659353018,
-0.07784388959407806,
0.0575236976146698,
-0.00774890324100852,
-0.05732928216457367,
0.02099282667040825,
-0.021811900660395622,
-0.05622689798474312,
0.002415719674900174,
-0.027806973084807396,
0.06612633168697357,
-0.04667796939611435,
0.0072453999891877174,
0.04266625642776489,
-0.0786178782582283,
0.01530453097075224,
0.04715031385421753,
-0.01147986389696598,
0.02721194177865982,
0.07019700109958649,
-0.007408795412629843,
0.03483442962169647,
0.05129827931523323,
-0.05072702094912529,
0.047524597495794296,
0.07734847068786621,
0.013700338080525398,
0.056289538741111755,
-0.0007520318613387644,
0.011773476377129555,
0.03596876934170723,
0.001095389947295189,
0.06637265533208847,
0.03211866319179535,
0.017506273463368416,
-0.02278735116124153,
-0.021086782217025757,
-0.09840574115514755,
0.03077385574579239,
-0.04805128648877144,
-0.040337804704904556,
0.09210082143545151,
-0.04222122207283974,
0.0016429927200078964,
0.07951430231332779,
-0.0004703857994172722,
-0.04983529448509216,
0.08332536369562149,
-0.06813332438468933,
0.052445169538259506,
-0.07845529913902283,
0.015389285050332546,
0.012078328989446163,
0.02133355475962162,
0.029214315116405487,
0.05852768197655678,
-0.018406566232442856,
-0.05989041551947594,
-0.06393002718687057,
-0.030342239886522293,
-0.014472848735749722,
0.02606530487537384,
0.0007355074631050229,
0.010918819345533848,
0.04881947860121727,
-0.052778709679841995,
0.01369048748165369,
0.024728430435061455,
0.03541409969329834,
0.03488819673657417,
0.05421798676252365,
-0.0442052036523819,
0.09325408935546875,
-0.04996411129832268,
-0.0018872827058658004,
0.058576442301273346,
0.0014534094370901585,
0.035749733448028564,
-0.008240721188485622,
-0.013044743798673153,
-0.037299223244190216,
0.08836513012647629,
0.006834466941654682,
0.014809835702180862,
0.053409695625305176,
-0.08153917640447617,
-0.003516008146107197,
-0.020100483670830727,
-0.02023857831954956,
0.09200111031532288,
-0.030420463532209396,
-0.0022314442321658134,
0.06949315965175629,
-0.008215237408876419,
-0.01623484119772911,
-0.04054388031363487,
-0.026988476514816284,
0.12057042121887207,
-0.001490308321081102,
0.04639384523034096,
0.05586983636021614,
-0.046083565801382065,
-0.030732177197933197,
-0.04142772778868675,
-0.03894689679145813,
0.0336848720908165,
-0.011126240715384483,
-0.09088999032974243,
0.032999198883771896,
0.0023633709643036127,
0.07207196205854416,
-0.09239298105239868,
0.04741382598876953,
-0.10422588884830475,
0.008934521116316319,
-0.0670526847243309,
-0.05641649663448334,
0.022579289972782135,
0.014040394686162472,
-0.010028015822172165,
0.15198244154453278,
-0.0798816978931427,
-0.005055352114140987,
-0.03863580897450447,
-0.0678582414984703,
0.06762868165969849,
0.02293478325009346,
0.02986023761332035,
0.07458983361721039,
-0.12268326431512833,
-0.05210137739777565,
-0.07749900966882706,
0.014339924789965153,
0.015140929259359837,
-0.048866163939237595,
-0.017433784902095795,
0.030102847144007683,
-0.018932782113552094,
-0.034710634499788284,
-0.002770809456706047,
-0.004775460343807936,
-0.055769871920347214,
0.010908860713243484,
0.021616747602820396,
0.004229267127811909,
0.02127876505255699,
0.01113402470946312,
-0.01726570725440979,
-0.0052536530420184135,
0.0005376352346502244,
-0.05522867292165756,
0.04265560582280159,
0.004626993555575609,
-0.039682213217020035,
0.020156007260084152,
0.08291526138782501,
-0.01622697338461876,
0.0027970049995929003,
-0.03223814442753792,
0.03611011430621147,
0.013585821725428104,
-0.006054633762687445,
-0.03633696585893631,
-0.034240663051605225,
-0.04202253371477127,
-0.05334653705358505,
-0.025434687733650208,
0.021234365180134773,
0.006486259866505861,
0.04888240247964859,
-0.001449085772037506,
-0.019325749948620796,
-0.00601940369233489,
0.011367065832018852,
0.010101649910211563,
0.06783011555671692,
0.020601557567715645,
0.02420276775956154,
-0.028537781909108162,
-0.008088978938758373,
-0.006940777413547039,
-0.05517604202032089,
0.03051510639488697,
0.036158930510282516,
0.008511489257216454,
-0.018540218472480774,
0.005252163391560316,
-0.07323018461465836,
0.008823197335004807,
0.027392800897359848,
0.008084605447947979,
0.050839878618717194,
-0.018401173874735832,
-0.0026293047703802586,
0.012250516563653946,
0.0017953363712877035,
-0.011029413901269436,
0.020988963544368744,
0.015118356794118881,
0.008977320976555347,
0.003912139218300581,
0.005088264588266611,
-0.020024478435516357,
0.009464909322559834,
0.00410735048353672,
0.027299797162413597,
-0.017327256500720978,
0.021150318905711174,
-0.09716744720935822,
-0.00036862088018096983,
0.004441832657903433,
0.004678769968450069,
0.00622299499809742,
-0.0028047619853168726,
0.05377369746565819,
0.007540612015873194,
-0.013891967944800854,
0.03429817780852318,
0.0006681616068817675,
0.02119077742099762,
0.018916266039013863,
0.0055752224288880825,
0.00900002010166645,
-0.00856928713619709,
-0.025616856291890144,
0.016002653166651726,
0.015559615567326546,
0.023418692871928215,
-0.025042248889803886,
0.03026360459625721,
0.004230739548802376,
-0.010223190300166607,
-0.004067549481987953,
0.017665864899754524,
0.02322629652917385,
0.010526863858103752,
0.042056262493133545,
-0.02307863160967827,
-0.014069939032196999,
-0.029369600117206573,
0.005911842919886112,
0.024361342191696167,
-0.03561466932296753,
0.0027478989213705063,
-0.01326588075608015,
0.05804223567247391,
0.01077329646795988,
0.023503107950091362,
0.0010587575379759073,
-0.004708362277597189,
0.008848927915096283,
0.017560170963406563,
0.03834817558526993,
-0.023547185584902763,
-0.042975012212991714,
-0.008211749605834484,
-0.0006148795946501195,
-0.03420025482773781,
-0.015063163824379444,
-0.03718026354908943,
0.027329321950674057,
0.03589676320552826,
0.028751565143465996,
0.018147727474570274,
0.00829765759408474,
0.013826457783579826,
0.00997979287058115,
-0.0425785630941391,
-0.04468006640672684,
0.03310208022594452,
-0.035341694951057434,
-0.05208085849881172,
-0.028470469638705254,
0.04011746868491173,
0.01626494713127613,
0.03585433214902878,
0.030532624572515488,
0.026397136971354485,
-0.0024122807662934065,
0.015883198007941246,
-0.0128026083111763,
0.007269981317222118,
-0.008741908706724644,
0.0018917788984254003,
-0.029995454475283623,
-0.03997380658984184,
0.03930297866463661,
0.020442966371774673,
0.00010845060751307756,
-0.0015557953156530857,
-0.06338473409414291,
-0.031504835933446884,
-0.02323230355978012,
-0.019185537472367287,
0.023679079487919807,
-0.007116871885955334,
0.016369497403502464,
0.057243697345256805,
0.005779091734439135,
-0.016965266317129135,
0.016861984506249428,
0.008892367593944073,
-0.0024954171385616064,
-0.016579030081629753,
0.03163390979170799,
-0.019967416301369667,
-0.016564704477787018,
0.03452359512448311,
0.045749858021736145,
0.0027059002313762903,
-0.034241415560245514,
-0.0014943487476557493,
0.019460471346974373,
0.03305584192276001,
-0.03282831236720085,
-0.0274251289665699,
0.035965703427791595,
-0.046584296971559525,
0.004655967466533184,
-0.0172414593398571,
0.005990860518068075,
-0.0075617763213813305,
0.019743409007787704,
0.023629479110240936,
-0.022400662302970886,
-0.023576727136969566,
-0.012199233286082745,
0.02585696242749691,
-0.010150924324989319,
0.045305535197257996,
0.0034149899147450924,
0.002421462209895253,
0.015387464314699173,
-0.009305653162300587,
0.03327295184135437,
0.04328067600727081,
0.030243804678320885,
-0.007051276043057442,
-0.05065571144223213,
-0.004721620120108128,
0.030806060880422592,
0.0060228039510548115,
0.011533415876328945,
-0.007205280475318432,
-0.011453879997134209,
0.01040545105934143,
0.017187651246786118,
-0.017644423991441727,
0.0015849913470447063,
-0.011338310316205025,
0.025543881580233574,
-0.03911915794014931,
0.08358880877494812,
-0.012939797714352608,
-0.030009180307388306,
-0.023001907393336296,
0.007631309330463409,
0.039846185594797134,
0.04691416770219803,
0.033646319061517715,
-0.04309368133544922,
-0.02068175934255123,
0.05246652662754059,
-0.02021762542426586,
0.007378698326647282,
0.034248895943164825,
0.03191342577338219,
0.03266485035419464,
0.0005233212141320109,
0.007948270998895168,
-0.03216199576854706,
0.016981370747089386,
0.01747404970228672,
-0.01963822916150093,
-0.03039834089577198,
-0.03940995782613754,
-0.03247429430484772,
0.03114563785493374,
-0.00040173964225687087,
-0.01747012883424759,
-0.008474964648485184,
-0.03357189521193504,
-0.00941669475287199,
0.035336609929800034,
0.03759358078241348,
-0.008026894181966782,
-0.024960985407233238,
0.007106607314199209,
-0.028379112482070923,
-0.029901038855314255,
-0.007436634507030249,
0.013828335329890251,
-0.0246781874448061,
0.023734407499432564,
0.056178122758865356,
0.038112759590148926,
-0.0063550821505486965,
0.031514860689640045,
-0.007819432765245438,
0.0064475564286112785,
0.055380698293447495,
-0.02137620747089386,
0.001746365218423307,
-0.03103194385766983,
-0.0438307486474514,
0.02855130285024643,
-0.00511384941637516,
-0.013380798511207104,
-0.01890416257083416,
0.06109970808029175,
-0.01576230488717556,
-0.00974387489259243,
-0.0004769510996993631,
-0.03803420066833496,
-0.019199106842279434,
-0.03406870365142822,
-0.0037571927532553673,
-0.039582282304763794,
-0.00888871494680643,
-0.009744680486619473,
0.009868805296719074,
0.025273384526371956,
-0.010243847034871578,
-0.0019415211863815784,
-0.011045183055102825,
0.02719191461801529,
0.038336534053087234,
0.07399596273899078,
0.006487776059657335,
-0.000986698316410184,
-0.052418868988752365,
-0.0016934613231569529,
0.022129932418465614,
-0.022775346413254738,
0.008211574517190456,
0.020224882289767265,
-0.004644686356186867,
0.030083268880844116,
0.014086463488638401,
0.013444516807794571,
0.016073275357484818,
0.05775725468993187,
-0.014108876697719097,
-0.01619788445532322,
-0.023473380133509636,
-0.021992258727550507,
0.003050293540582061,
-0.03677206113934517,
0.02921961434185505,
-0.0005749142146669328,
-0.04335679113864899,
0.0071644410490989685,
-0.039385098963975906,
0.029878124594688416,
0.060478631407022476,
-0.003001730889081955,
0.017237365245819092,
0.04373321309685707,
0.01920141465961933,
0.004570109769701958,
0.0009118799353018403,
-0.0003008997009601444,
0.0325506292283535,
-0.0032677201088517904,
0.05021744221448898,
0.03332659974694252,
-0.01996631734073162,
0.014553130604326725,
0.049986276775598526,
-0.044293079525232315,
0.0037172497250139713,
0.03070048987865448,
0.004001150839030743,
0.02576388232409954,
-0.005384696181863546,
-0.061831578612327576,
-0.01695284992456436,
0.04389192909002304,
0.015781337395310402,
0.03562942519783974,
-0.017732160165905952,
-0.0010956702753901482,
-0.01113148219883442,
-0.017619773745536804,
0.022479601204395294,
0.045005761086940765,
-0.062187716364860535,
0.041818760335445404,
-0.014254534617066383,
0.03172891214489937,
0.05049140006303787,
0.015702059492468834,
0.0007999477675184608,
0.0020457222126424313,
0.0577412024140358,
0.007520781364291906,
0.03893766179680824,
0.035049356520175934,
-0.02056320384144783,
-0.056196216493844986,
-0.04076043888926506,
-0.005295198410749435,
-0.043635692447423935,
0.008804664015769958,
-0.005012523382902145,
-0.010750092566013336,
0.023439276963472366,
-0.015242076478898525,
0.0241241417825222,
0.029554275795817375,
0.04494667798280716,
-0.042826663702726364,
0.06729759275913239,
0.011987680569291115,
0.025709044188261032,
0.03208432346582413,
0.03716002032160759,
-0.004017917905002832,
0.0004405150539241731,
0.06366437673568726,
0.0553116612136364,
0.012020840309560299,
0.0036964553873986006,
0.030852511525154114,
0.028262482956051826,
0.0034912179689854383,
-0.04493948072195053,
0.020277252420783043,
-0.004528135992586613,
-0.009051535278558731,
-0.05428621917963028,
0.03996848687529564,
-0.0529632493853569,
0.012750447727739811,
-0.016978401690721512,
-0.020108884200453758,
-0.015864180400967598,
-0.0014059325912967324,
0.014894813299179077,
0.032286450266838074,
0.020411746576428413,
-0.07821699976921082,
-0.0020762814674526453,
0.008724700659513474,
0.03578167408704758,
-0.011149381287395954,
-0.0025533358566462994,
-0.03745488077402115,
-0.005832421127706766,
-0.033906858414411545,
-0.03427784889936447,
0.015512239187955856,
0.005407572723925114,
-0.010237985290586948,
0.006614585407078266,
0.018913734704256058,
0.019888240844011307,
0.010453589260578156,
0.002597531070932746,
-0.016363175585865974,
-0.017673147842288017,
-0.012983005493879318,
-0.011520727537572384,
0.008206845261156559,
-0.004613328259438276,
-0.06642969697713852,
-0.0153029290959239,
-0.013723043724894524,
0.01792522892355919,
0.0685315728187561,
0.0588456466794014,
-0.013347646221518517,
-0.04496956244111061,
-0.017743924632668495,
-0.018917610868811607,
-0.039193976670503616,
0.02900831401348114,
0.01644335500895977,
0.009394533932209015,
0.0008183024474419653,
-0.03890979290008545,
-0.027243785560131073,
-0.022159451618790627,
0.013239078223705292,
0.03490762040019035,
-0.03106522560119629,
-0.016985412687063217,
-0.031643472611904144,
0.026772839948534966,
0.027437567710876465,
0.01738269068300724,
0.04602394625544548,
-0.017718428745865822,
-0.007635707966983318,
-0.04570211470127106,
0.017641644924879074,
-0.061858151108026505,
-0.03295304998755455,
-0.023062575608491898,
-0.033307433128356934,
-0.041062530130147934,
-0.013418812304735184,
0.008294160477817059,
-0.02404853142797947,
-0.07938278466463089,
0.014244580641388893,
-0.025213273242115974,
0.02062990516424179,
0.0001509414432803169,
0.019589968025684357,
0.09288575500249863,
-0.00027790130116045475,
0.006896615028381348,
0.007332220673561096,
-0.008030964061617851,
-0.001448337221518159,
0.012110594660043716,
0.020186932757496834,
0.01984942890703678,
0.0064140805043280125,
-0.01910979487001896,
-0.0005418867222033441,
0.004598311148583889,
0.01583286188542843,
-0.035596832633018494,
0.008458034135401249,
0.008345883339643478,
-0.0045538898557424545,
-0.02530490793287754,
0.029871348291635513,
0.00973436702042818,
-0.0006401237333193421,
0.0029586125165224075,
0.0010444746585562825,
-0.020306402817368507,
-0.023069484159350395,
0.05651067569851875,
-0.09024006873369217,
0.0007341729360632598,
-0.05292655527591705,
0.031889863312244415,
0.03591534495353699,
0.003727110568434,
0.01748926006257534,
0.004985780920833349,
-0.023191198706626892,
0.0015805392758920789,
0.022134339436888695,
-0.033654578030109406,
-0.01632237434387207,
-0.0311435554176569,
0.04476424306631088,
-0.009518089704215527,
-0.008719325065612793,
0.045692797750234604,
0.00981941632926464,
-0.02888910286128521,
-0.03339867293834686,
0.024847185239195824,
0.008472610265016556,
0.004735479597002268,
-0.0020271826069802046,
-0.018038703128695488,
0.018505748361349106,
0.031061265617609024,
0.011906753294169903,
-0.025158025324344635,
0.0005099537665955722
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | A closer look at Optimum-Graphcore | [
0.10571593046188354,
-0.03498104587197304,
0.11760074645280838,
0.03414792940020561,
0.1114945113658905,
0.0396261066198349,
0.00487262150272727,
0.03165683522820473,
-0.01233475748449564,
-0.1073145940899849,
0.029331527650356293,
0.04946655407547951,
-0.006785268895328045,
0.035750534385442734,
0.03884173557162285,
0.03522924706339836,
0.01857801340520382,
-0.031086066737771034,
0.01585633121430874,
0.014001659117639065,
-0.047753848135471344,
-0.061501264572143555,
0.07672794908285141,
-0.003666933625936508,
0.02469191700220108,
-0.056377895176410675,
-0.03464247286319733,
-0.008697970770299435,
-0.07853362709283829,
0.027243103832006454,
-0.027848321944475174,
-0.006155550945550203,
0.06006012111902237,
-0.05743986368179321,
0.014107444323599339,
-0.01982307620346546,
-0.0971279889345169,
-0.01100845541805029,
-0.03269929066300392,
-0.08279579877853394,
-0.011757252737879753,
-0.02357141673564911,
-0.046276528388261795,
-0.027634138241410255,
0.0015733645996078849,
0.022614918649196625,
-0.22871680557727814,
0.13849514722824097,
-0.029033444821834564,
-0.03525770083069801,
-0.04858028143644333,
0.05166218429803848,
-0.04777617007493973,
0.03840663284063339,
0.020289426669478416,
-0.016796709969639778,
0.04239973425865173,
-0.017487799748778343,
0.028089765459299088,
-0.026141032576560974,
0.056322526186704636,
-0.0907076895236969,
-0.03360774368047714,
0.021911876276135445,
-0.008170805871486664,
0.02886694297194481,
-0.04848480224609375,
0.0025524054653942585,
-0.03387042507529259,
-0.04691536724567413,
-0.007966975681483746,
-0.017293959856033325,
-0.03304128721356392,
-0.002874556230381131,
-0.037997666746377945,
-0.054117601364851,
-0.011129130609333515,
0.03499038890004158,
0.017029277980327606,
0.021215351298451424,
-0.009828738868236542,
0.026708699762821198,
0.08620739728212357,
0.024840377271175385,
-0.009640060365200043,
0.0006108814850449562,
0.018352452665567398,
0.01856395974755287,
-0.0223197303712368,
-0.004275228828191757,
-0.05602288618683815,
-0.12869948148727417,
0.014347880147397518,
0.02351635880768299,
0.01291586458683014,
-0.09265026450157166,
0.03573331609368324,
0.044838424772024155,
0.014371641911566257,
0.027548469603061676,
-0.019637087360024452,
0.0233597569167614,
-0.020276768133044243,
-0.009011734277009964,
-0.047591716051101685,
0.008754370734095573,
-0.017552576959133148,
-0.05602874979376793,
-0.05234400928020477,
0.037838444113731384,
-0.01688956469297409,
0.05247350037097931,
0.04700983315706253,
0.04021424427628517,
-0.04353785887360573,
0.035414308309555054,
0.01681302860379219,
-0.0012895765248686075,
-0.004710078239440918,
0.008751853369176388,
0.037408702075481415,
0.14652706682682037,
0.061246391385793686,
0.049639854580163956,
0.03150017186999321,
0.0323793850839138,
0.05889943242073059,
0.026866834610700607,
-0.03894532471895218,
-0.04741078242659569,
0.017697468400001526,
0.05009046196937561,
0.02257356606423855,
-0.02334701083600521,
-0.036253396421670914,
-0.0884997546672821,
-0.018165577203035355,
-0.012710555456578732,
-0.04062560945749283,
-0.03479480743408203,
-0.020524196326732635,
-0.005335754249244928,
0.027279486879706383,
0.05365406721830368,
0.022367635741829872,
-0.07454454898834229,
-0.03600170090794563,
0.06917031109333038,
0.02294161170721054,
0.0061350055038928986,
-0.009173431433737278,
0.06585505604743958,
-0.05912267789244652,
-0.08557463437318802,
-0.030595019459724426,
0.03864346817135811,
0.028309524059295654,
-0.014550694264471531,
-0.1146518811583519,
-0.057063326239585876,
0.015912914648652077,
0.03153911605477333,
-0.02052139863371849,
-0.010318189859390259,
0.009799336083233356,
0.031766653060913086,
0.022297587245702744,
-0.02396145462989807,
-0.04631805419921875,
-0.05386847257614136,
0.0019507876131683588,
-0.002026875037699938,
0.02244586870074272,
0.005168764851987362,
-0.0421605221927166,
0.029920225962996483,
0.047572895884513855,
0.06745953857898712,
-0.06896332651376724,
-0.00982353463768959,
-0.03917740657925606,
0.03707301244139671,
-0.005637902766466141,
0.03975518047809601,
0.008083752356469631,
-0.028436964377760887,
0.014507896266877651,
-0.0001977387728402391,
0.022583410143852234,
-0.029757503420114517,
-0.06577274203300476,
-0.03398518264293671,
0.108317531645298,
-0.04329909384250641,
0.030877169221639633,
-0.06523019075393677,
-0.036535780876874924,
0.06250020116567612,
0.06636352092027664,
0.03237106651067734,
0.04499033838510513,
0.0004812300903722644,
0.020118528977036476,
-0.026962898671627045,
-0.09428673982620239,
-0.011198054067790508,
0.024368738755583763,
-0.02011052891612053,
0.030408143997192383,
-0.02331266552209854,
-0.033421050757169724,
-0.11249706149101257,
0.029666801914572716,
-0.06338943541049957,
-0.016299916431307793,
-0.018210791051387787,
-0.033014509826898575,
0.032638147473335266,
0.04311256483197212,
-0.08287839591503143,
0.07894625514745712,
0.008778274990618229,
-0.01842513494193554,
0.02948509342968464,
-0.054680436849594116,
0.08318591862916946,
0.051685892045497894,
-0.0177018865942955,
0.05970980226993561,
-0.06735558807849884,
0.0027756309136748314,
-0.013180042617022991,
-0.010694872587919235,
0.07687276601791382,
0.022466188296675682,
0.027960436418652534,
-0.039687421172857285,
0.034327466040849686,
0.11942055821418762,
-0.014291559346020222,
-0.019532542675733566,
0.03137875348329544,
-0.03850347176194191,
0.023979373276233673,
-0.012667667120695114,
-0.013452439568936825,
0.028007637709379196,
-0.016586244106292725,
-0.04457820951938629,
0.0005742840585298836,
-0.0830492451786995,
0.006250763311982155,
-0.01662442833185196,
-0.02153814770281315,
0.06871794164180756,
0.01172184944152832,
0.0006158392643555999,
-0.03531898558139801,
0.00697093503549695,
0.006355262361466885,
0.021739980205893517,
-0.038887981325387955,
0.006900692358613014,
-0.03196893632411957,
0.01882680132985115,
-0.032457735389471054,
0.008823753334581852,
0.00942463893443346,
-0.011556136421859264,
0.05670268461108208,
-0.032047681510448456,
-0.016051875427365303,
0.021724192425608635,
-0.0026344640646129847,
0.012264224700629711,
0.005769575480371714,
0.055841896682977676,
-0.04384375736117363,
0.006462483201175928,
0.004882246721535921,
0.007424697745591402,
0.0028571661096066236,
0.04104394093155861,
-0.004275846760720015,
0.040183328092098236,
-0.002267689909785986,
0.034340593963861465,
0.00983503833413124,
-0.0022733586374670267,
0.021171825006604195,
-0.02192997932434082,
0.03384263440966606,
-0.008637859486043453,
-0.013463885523378849,
0.042210131883621216,
-0.03349970653653145,
-0.012729818001389503,
-0.00865089986473322,
-0.027884172275662422,
-0.01468671951442957,
0.008518362417817116,
-0.011393188498914242,
-0.003094394225627184,
-0.008408618159592152,
-0.06395702064037323,
0.05126457288861275,
0.012504340149462223,
0.03587490692734718,
-0.13705381751060486,
-0.006751212757080793,
0.002980436198413372,
0.03788921609520912,
-0.017586087808012962,
0.004524764139205217,
0.017986373975872993,
-0.01936548575758934,
-0.020007522776722908,
-0.04569965973496437,
0.044590674340724945,
-0.002620731946080923,
0.019937612116336823,
0.011456677690148354,
-0.009985251352190971,
0.007872706279158592,
0.01649577170610428,
-0.00885758176445961,
-0.009222281165421009,
-0.02454875409603119,
-0.019440626725554466,
0.05467594787478447,
0.011760146357119083,
-0.03909853473305702,
-0.04060765728354454,
0.012747403234243393,
0.018492316827178,
0.02622205577790737,
0.01657664217054844,
-0.04375997930765152,
-0.0644005686044693,
0.0005971972714178264,
0.0044186231680214405,
0.051718901842832565,
0.0166934747248888,
0.013520815409719944,
-0.03641977161169052,
-0.00642181234434247,
-0.007259951904416084,
0.03881971538066864,
0.02860775589942932,
0.02383314073085785,
0.0350632481276989,
-0.03949524834752083,
-0.025485850870609283,
-0.00008205573976738378,
0.006037058308720589,
0.005446562077850103,
0.058843497186899185,
-0.0071798209100961685,
-0.05763023719191551,
-0.011430719867348671,
0.005026960279792547,
0.06504737585783005,
-0.03954869881272316,
-0.016173217445611954,
-0.013822474516928196,
0.010230612009763718,
0.03189336508512497,
-0.009071547538042068,
-0.023600660264492035,
-0.0020691254176199436,
-0.0007282423903234303,
0.01952146179974079,
-0.03139349818229675,
0.04559576138854027,
0.006719410885125399,
0.023901890963315964,
0.003119190689176321,
0.028369473293423653,
0.02420439012348652,
0.0036554026883095503,
0.02654207870364189,
0.022306090220808983,
-0.02223057486116886,
0.03572229668498039,
-0.004883255809545517,
0.002219281392171979,
0.06809765100479126,
0.0031824326142668724,
-0.0013700345298275352,
-0.004356470890343189,
0.004735293798148632,
-0.00265754503197968,
0.010885159485042095,
0.04153135418891907,
-0.025849657133221626,
0.01945902220904827,
-0.001045523094944656,
-0.00011613468086579815,
0.02877785824239254,
0.0006212127045728266,
0.021961521357297897,
-0.02676904760301113,
-0.019002163782715797,
0.05828806385397911,
0.06095680221915245,
-0.02153274230659008,
0.014844642952084541,
-0.01087365671992302,
0.005876497365534306,
0.020860208198428154,
-0.01307959295809269,
0.0009467141353525221,
-0.009541185572743416,
0.0525200292468071,
-0.024507464841008186,
-0.024339545518159866,
0.0193798691034317,
0.02092049829661846,
0.028979070484638214,
-0.03719732537865639,
-0.014828776009380817,
-0.03893348574638367,
0.03254852071404457,
0.003077435540035367,
-0.033098552376031876,
-0.01776769757270813,
-0.03253825008869171,
0.0053277877159416676,
-0.03770269826054573,
0.017033934593200684,
-0.008391412906348705,
-0.00166597799398005,
-0.004747394938021898,
-0.005150589160621166,
0.007990352809429169,
0.033487673848867416,
0.006235846783965826,
-0.002161530777812004,
-0.0055261095985770226,
-0.029642408713698387,
0.02485930547118187,
-0.018457481637597084,
0.04043510928750038,
-0.007386584300547838,
-0.009972576051950455,
0.009619204327464104,
0.015653647482395172,
-0.059735752642154694,
0.0034006317146122456,
0.0321124829351902,
0.0523168183863163,
-0.024933237582445145,
0.058885958045721054,
-0.0004521609516814351,
0.0029919729568064213,
-0.0021162021439522505,
0.042242296040058136,
0.005625484045594931,
0.0589720718562603,
-0.015489990822970867,
-0.019256088882684708,
-0.0028058874886482954,
0.035543423146009445,
0.0012930802768096328,
0.024254899471998215,
-0.028776152059435844,
-0.012088155373930931,
0.06956814974546432,
0.030639713630080223,
-0.016962626948952675,
-0.04695961996912956,
0.030437957495450974,
-0.002062753774225712,
-0.03214944526553154,
0.02659967727959156,
-0.05341271311044693,
-0.02026439644396305,
0.018476851284503937,
0.013323187828063965,
-0.01158931851387024,
0.023664727807044983,
-0.007969907484948635,
0.03566945716738701,
0.032214753329753876,
0.004438863135874271,
-0.024350842460989952,
0.04303234443068504,
0.016898393630981445,
-0.02528887428343296,
0.007024878636002541,
0.019943570718169212,
0.006113547831773758,
0.0128172030672431,
-0.005942997056990862,
0.03315539285540581,
0.020946906879544258,
-0.011869066394865513,
0.05195137485861778,
0.02129788137972355,
-0.031493157148361206,
-0.015203171409666538,
-0.020465277135372162,
-0.004755385685712099,
-0.01749349571764469,
-0.0014113447396084666,
0.007831539958715439,
0.017368191853165627,
-0.010509888641536236,
0.052200689911842346,
0.012539842166006565,
-0.010830417275428772,
-0.020439209416508675,
0.0038191538769751787,
0.03283094987273216,
0.03947009891271591,
0.01116885431110859,
-0.003772120224311948,
-0.034813426434993744,
-0.004936892539262772,
-0.0033511738292872906,
-0.03195688873529434,
-0.03631967306137085,
0.015411844477057457,
-0.04189625382423401,
-0.022268524393439293,
0.00641235476359725,
0.005059296730905771,
0.022601760923862457,
0.026910530403256416,
0.029020041227340698,
-0.018687641248106956,
0.02811715379357338,
0.035540081560611725,
-0.00861628819257021,
0.004911941941827536,
0.0019045446533709764,
-0.011805595830082893,
0.03855091705918312,
0.022285765036940575,
-0.03282763436436653,
-0.020414263010025024,
0.007951092906296253,
0.027572186663746834,
0.014873613603413105,
-0.040031399577856064,
0.006524957716464996,
-0.0003027629863936454,
0.007404198870062828,
-0.014918331988155842,
-0.06740235537290573,
-0.047818634659051895,
-0.0009437695844098926,
-0.033244457095861435,
0.031193234026432037,
0.04549040645360947,
-0.003927368205040693,
-0.014731485396623611,
0.001439584419131279,
0.01664315164089203,
-0.0278814435005188,
0.01636134833097458,
-0.032837823033332825,
0.012641889043152332,
0.023097123950719833,
0.01849464513361454,
-0.037687093019485474,
0.019353540614247322,
0.0205430518835783,
-0.0023884170223027468,
-0.017897648736834526,
0.028873885050415993,
0.041035015136003494,
-0.02594592608511448,
0.05462032929062843,
0.01154045294970274,
-0.030524594709277153,
0.003923336509615183,
-0.007223533466458321,
-0.0023869802244007587,
0.03198740631341934,
0.053377870470285416,
-0.0014630159130319953,
-0.03000272996723652,
-0.02466181479394436,
0.034265801310539246,
0.08936251699924469,
0.018030468374490738,
0.012096538208425045,
0.01951228640973568,
0.024726232513785362,
0.0225429255515337,
0.02512175962328911,
-0.026192205026745796,
0.05400184914469719,
0.042761098593473434,
0.009556150063872337,
0.030869901180267334,
-0.010483006946742535,
-0.01700550504028797,
0.006445711478590965,
0.006003042217344046,
0.03174382820725441,
-0.022981565445661545,
0.013370516709983349,
0.04482698813080788,
-0.048684366047382355,
0.03398473188281059,
-0.04107656329870224,
0.028015928342938423,
0.012740452773869038,
0.017078544944524765,
-0.02995222993195057,
0.005539673380553722,
0.009738294407725334,
0.014406129717826843,
0.04231681674718857,
-0.010844683274626732,
-0.027868565171957016,
0.007253267336636782,
0.05629419535398483,
-0.03564956411719322,
0.04169631376862526,
0.0017882011597976089,
-0.02047024480998516,
0.07437026500701904,
-0.015374383889138699,
-0.02218138426542282,
-0.0008215988054871559,
0.06175751984119415,
-0.019687483087182045,
0.007097914349287748,
-0.01784701459109783,
-0.05102342739701271,
-0.006719700060784817,
0.0009632430737838149,
0.026340456679463387,
-0.03592279925942421,
0.00013615931675303727,
0.009905782528221607,
0.00009099778981180862,
0.009581143036484718,
0.046524565666913986,
0.00007964335236465558,
0.043911486864089966,
-0.005456028040498495,
0.045043282210826874,
-0.042157143354415894,
0.004775022156536579,
-0.025544889271259308,
0.005741594824939966,
0.008965998888015747,
-0.035694193094968796,
-0.004975343123078346,
-0.002110406756401062,
0.033254045993089676,
0.002873185323551297,
-0.046791404485702515,
0.02712586708366871,
0.01713286153972149,
0.014997436664998531,
-0.02838216908276081,
0.05660862848162651,
-0.0071131447330117226,
-0.010908654890954494,
-0.010751721449196339,
0.005929269827902317,
0.030210714787244797,
-0.037083279341459274,
0.026963043957948685,
0.013168524019420147,
0.0021337473299354315,
-0.05532262101769447,
-0.058168746531009674,
-0.011910880915820599,
-0.018432145938277245,
-0.0017475091153755784,
-0.03300377354025841,
0.029341986402869225,
0.0019656047224998474,
0.0035687608178704977,
0.019375251606106758,
0.0411069430410862,
-0.04154353216290474,
0.0030467938631772995,
0.002799886278808117,
0.009492023847997189,
0.008149548433721066,
-0.029768075793981552,
0.04314364865422249,
0.026619337499141693,
0.01845080964267254,
0.03552526235580444,
0.014067392796278,
0.005115473177284002,
-0.0268663689494133,
0.037713658064603806,
0.023897571489214897,
0.024035541340708733,
-0.026682697236537933,
-0.02406291849911213,
0.02510412596166134,
-0.03960385173559189,
-0.005004574079066515,
0.01895173080265522,
-0.057261817157268524,
-0.008730990812182426,
-0.005598888266831636,
0.014956257306039333,
-0.05347328260540962,
0.008979958482086658,
0.04017740488052368,
0.04400390014052391,
0.0392838679254055,
-0.0040158461779356,
-0.023349696770310402,
-0.004516684915870428,
0.01976187713444233,
-0.0030522658489644527,
0.04340967908501625,
0.00402844650670886,
-0.01851551979780197,
-0.076846182346344,
0.03632313013076782,
-0.013535267673432827,
-0.04832594096660614,
0.02301185391843319,
0.02823534980416298,
-0.02151433937251568,
-0.018140429630875587,
0.008496608585119247,
0.0013982438249513507,
-0.0056531354784965515,
0.04097656533122063,
0.024704519659280777,
-0.013824012130498886,
-0.01623937301337719,
-0.006615280173718929,
-0.0011994031956419349,
-0.028929440304636955,
0.006741183809936047,
0.004119884688407183,
0.006996617652475834,
0.012282134965062141,
-0.02228844165802002,
0.0036483113653957844,
-0.04289000853896141,
0.006606162991374731,
-0.021168164908885956,
-0.006684775929898024,
-0.0324300117790699,
0.006111755967140198,
-0.006772864144295454,
-0.032424937933683395,
-0.08373365551233292,
0.03393764793872833,
0.04048941284418106,
-0.0038985919672995806,
-0.0024299924261868,
-0.054488446563482285,
-0.020321199670433998,
0.009219707921147346,
0.018731411546468735,
0.007170501165091991,
0.07280990481376648,
0.04459989070892334,
-0.006283978000283241,
-0.020239990204572678,
0.014667326584458351
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Training and Validation You can now use theIPUTrainerclass available in Optimum to leverage the entire Graphcore software and hardware stack, and train your models in IPUs with minimal code changes. Thanks to Optimum, you can plug-and-play state of the art hardware to train your state of the art models. <kbd> <img src="assets/38_getting_started_graphcore/graphcore_1.png"> </kbd> In order to train and validate the BERT model, you can pass the arguments--do_trainand--do_evalto therun_qa.pyscript. After executing the script with the hyper-parameters above, you should see the following training and validation results: "epoch": 3.0, "train_loss": 0.9465060763888888, "train_runtime": 368.4015, "train_samples": 88524, "train_samples_per_second": 720.877, "train_steps_per_second": 2.809 The validation step yields the following results: * eval metrics *** epoch = 3.0 eval_exact_match = 80.6623 eval_f1 = 88.2757 eval_samples = 10784 ``` You can see the rest of the IPU BERT implementation in the Optimum-Graphcore: SQuAD Examples. | [
0.018626781180500984,
0.026229646056890488,
-0.006569419987499714,
0.07263045758008957,
0.04155115783214569,
0.06505990028381348,
0.03512197732925415,
0.0809958353638649,
0.03292199596762657,
-0.07196614891290665,
-0.011872788891196251,
0.046618957072496414,
-0.025943659245967865,
0.05552656576037407,
0.09915567934513092,
-0.03883970528841019,
-0.000906552595552057,
-0.007889023050665855,
-0.04049225151538849,
0.04300370812416077,
-0.04887443408370018,
-0.08510394394397736,
0.046511635184288025,
0.033640336245298386,
0.034889448434114456,
-0.038048241287469864,
0.027138492092490196,
0.02727084793150425,
-0.05085144191980362,
0.011193465441465378,
-0.03034285642206669,
-0.05545477941632271,
0.015629630535840988,
-0.09115530550479889,
-0.024263523519039154,
0.01573958434164524,
-0.06365323811769485,
0.024949291720986366,
0.0019045437220484018,
-0.01495636161416769,
-0.005563026759773493,
0.002935053315013647,
-0.04207495599985123,
-0.004932344425469637,
-0.0031202943064272404,
-0.02731155976653099,
-0.0583404079079628,
0.051015038043260574,
0.054733071476221085,
-0.04574914276599884,
-0.025799468159675598,
0.0927715077996254,
-0.03443475440144539,
-0.010578544810414314,
0.07213093340396881,
-0.03254597261548042,
0.07313188910484314,
-0.0022456177975982428,
-0.017556197941303253,
0.020837046205997467,
-0.02353675290942192,
-0.007204030174762011,
-0.03388376533985138,
0.01706971973180771,
0.0020443396642804146,
-0.02289946749806404,
-0.027873778715729713,
0.008997706696391106,
-0.0723874419927597,
-0.045989543199539185,
-0.04038862884044647,
-0.017064260318875313,
-0.020423367619514465,
-0.020821789279580116,
-0.007867646403610706,
-0.07674984633922577,
0.04325170814990997,
0.01449490338563919,
0.015631053596735,
0.040707506239414215,
-0.014198207296431065,
0.029983151704072952,
-0.049916140735149384,
-0.011325247585773468,
-0.0012688619317486882,
0.02950884774327278,
0.053465139120817184,
-0.06230837479233742,
-0.04172156751155853,
-0.003172451164573431,
-0.036777324974536896,
-0.0962444618344307,
-0.008917667903006077,
0.005194252822548151,
0.027457181364297867,
-0.028677690774202347,
-0.07280629873275757,
0.025696052238345146,
-0.04651768505573273,
-0.0882420539855957,
0.020297596231102943,
-0.03709500655531883,
-0.012659468688070774,
-0.025294866412878036,
-0.0887751430273056,
0.048867784440517426,
-0.019226957112550735,
-0.045284003019332886,
-0.056410498917102814,
0.0074441018514335155,
0.04338131472468376,
-0.0698455423116684,
0.022190112620592117,
0.08723098784685135,
-0.07576464116573334,
-0.017710726708173752,
0.04822315275669098,
0.033195510506629944,
-0.00012486704508773983,
0.016530416905879974,
0.012267488986253738,
0.08186635375022888,
0.010862672701478004,
0.05453090742230415,
0.029591305181384087,
0.05353448912501335,
-0.0006939391605556011,
0.01876780204474926,
0.044208165258169174,
-0.009336607530713081,
0.05735653638839722,
0.027574362233281136,
0.04674401134252548,
-0.010646642185747623,
0.04832098260521889,
0.021642005071043968,
-0.015499914065003395,
-0.08486701548099518,
-0.06253079324960709,
0.032814495265483856,
-0.05839589983224869,
0.01792043261229992,
-0.017493052408099174,
-0.008267655037343502,
0.030454834923148155,
-0.07295732945203781,
-0.036970172077417374,
0.08854475617408752,
0.06064366176724434,
-0.026137536391615868,
-0.0852690190076828,
0.04769420996308327,
0.001688776072114706,
-0.06455844640731812,
-0.00294097769074142,
0.07313394546508789,
0.00792237464338541,
0.03777782991528511,
-0.07575759291648865,
-0.051363568753004074,
-0.011182409711182117,
0.03453214094042778,
-0.1078876331448555,
0.03051917999982834,
-0.0032720554154366255,
-0.03394188731908798,
-0.032926611602306366,
-0.05479062721133232,
-0.019496403634548187,
-0.06239312142133713,
0.04584108665585518,
-0.027087701484560966,
0.09735430777072906,
0.028617512434720993,
-0.0087055629119277,
0.050690799951553345,
0.011246519163250923,
0.035766128450632095,
-0.10271220654249191,
-0.031190363690257072,
-0.06400588154792786,
0.07339660823345184,
0.014438223093748093,
0.07536068558692932,
0.035374466329813004,
-0.038873571902513504,
0.01236721035093069,
-0.03719885274767876,
0.05057813972234726,
0.007685406133532524,
0.05138799175620079,
0.032102569937705994,
0.07505056262016296,
-0.024974022060632706,
0.06364650279283524,
-0.029816316440701485,
-0.015714367851614952,
0.0699806734919548,
0.06317749619483948,
-0.0057685403153300285,
0.03959760069847107,
-0.04554116353392601,
0.025766965001821518,
-0.04496103525161743,
-0.06467699259519577,
0.04763291776180267,
-0.00009105143544729799,
-0.05138375982642174,
0.01368723250925541,
0.03934679180383682,
-0.011243754997849464,
-0.10729753971099854,
0.028806673362851143,
-0.0463443286716938,
0.0025277500972151756,
-0.05868416652083397,
-0.009370404295623302,
0.025095615535974503,
0.058684319257736206,
-0.036504171788692474,
0.1327587515115738,
-0.01296045258641243,
-0.029218893498182297,
-0.011536031030118465,
-0.032466042786836624,
0.0040218522772192955,
0.02469443716108799,
0.0763026624917984,
0.0783054530620575,
-0.08597346395254135,
-0.026133891195058823,
-0.04030840843915939,
-0.006052786018699408,
0.03378431871533394,
-0.07088802754878998,
-0.004163196310400963,
-0.013185988180339336,
0.031170273199677467,
0.06665349751710892,
-0.04592425748705864,
-0.01037441287189722,
0.03968198969960213,
-0.06800615787506104,
0.0025585840921849012,
-0.009493192657828331,
-0.015048758126795292,
0.0467628575861454,
-0.01340450718998909,
-0.026163671165704727,
-0.026747219264507294,
-0.0427764467895031,
0.020281139761209488,
-0.0288309995085001,
-0.057757798582315445,
-0.016766497865319252,
-0.02342761866748333,
0.01289322692900896,
0.00399923138320446,
-0.013209864497184753,
0.02021079696714878,
0.017504394054412842,
0.0023952529300004244,
-0.05592861771583557,
0.003843580838292837,
0.0342576801776886,
-0.03332027792930603,
0.02526375651359558,
0.015495502389967442,
-0.007007998879998922,
-0.007854287512600422,
-0.003149935742840171,
-0.020048189908266068,
0.020632244646549225,
0.009616936556994915,
0.021232644096016884,
0.07631491124629974,
0.018006457015872,
-0.03137154504656792,
-0.02982287108898163,
0.00583726167678833,
0.03152686730027199,
-0.04803537577390671,
0.017458485439419746,
-0.023676542565226555,
0.009089731611311436,
0.0034381120931357145,
0.004899243824183941,
-0.05187041312456131,
-0.00024492424563504755,
-0.006806749384850264,
-0.006644377484917641,
0.0573178231716156,
-0.05287720635533333,
0.006218765862286091,
0.003830587025731802,
0.007654481567442417,
0.01591159775853157,
-0.028757929801940918,
-0.007156160194426775,
-0.002711853478103876,
-0.006916194688528776,
0.025072775781154633,
-0.018732547760009766,
-0.015155836939811707,
-0.0342252254486084,
-0.005918590817600489,
0.0424596406519413,
-0.027187397703528404,
-0.0713992491364479,
0.04203348234295845,
0.003046811791136861,
-0.04473594203591347,
-0.01848653145134449,
-0.00023210432846099138,
0.045921940356492996,
0.005992422811686993,
-0.04492562264204025,
-0.014429893344640732,
0.0190899521112442,
-0.027629004791378975,
-0.012624671682715416,
0.019147571176290512,
0.024725014343857765,
0.012096302583813667,
-0.0019672801718115807,
-0.0516396164894104,
0.0063922512345016,
-0.030643276870250702,
-0.036752376705408096,
0.02256321720778942,
0.0004484412493184209,
-0.028185831382870674,
0.004918002989143133,
0.021024877205491066,
-0.018633246421813965,
0.018148507922887802,
0.027353782206773758,
-0.046908628195524216,
-0.007852056995034218,
-0.04649380221962929,
-0.005118305794894695,
0.025927962735295296,
0.006010041106492281,
-0.006420083809643984,
-0.0352405421435833,
0.05726751685142517,
0.006705090869218111,
0.02098369598388672,
-0.010353653691709042,
0.045582033693790436,
0.013250558637082577,
-0.04539553076028824,
0.03867447003722191,
-0.00029823719523847103,
-0.009628510102629662,
-0.015200906433165073,
0.017910849303007126,
0.02565939724445343,
-0.0747222751379013,
0.018063783645629883,
-0.04184107854962349,
0.08108709752559662,
-0.03895408287644386,
-0.0037616100162267685,
0.024345500394701958,
0.010523918084800243,
0.008099976927042007,
-0.012369806878268719,
-0.028483804315328598,
0.05934577435255051,
0.005716846790164709,
0.010115953162312508,
0.011180376634001732,
0.044128671288490295,
0.03898578882217407,
-0.009260393679141998,
-0.011689193546772003,
0.020290585234761238,
0.03156150132417679,
0.011487090960144997,
0.02850324846804142,
0.01258062943816185,
-0.02526373416185379,
-0.02780863642692566,
-0.01813436485826969,
0.0016294775996357203,
0.02049456723034382,
0.029622023925185204,
0.006426903419196606,
-0.011741459369659424,
-0.02947499416768551,
-0.012558124028146267,
0.030915778130292892,
0.015954643487930298,
0.02366798371076584,
-0.039683107286691666,
0.04873582348227501,
0.024202397093176842,
-0.020608937367796898,
-0.05149137228727341,
0.00955374538898468,
0.016140298917889595,
-0.04465780779719353,
0.028057554736733437,
0.03227265551686287,
0.035747379064559937,
-0.004918443970382214,
0.023827064782381058,
-0.02422003634274006,
-0.021994546055793762,
-0.008766655810177326,
0.028783690184354782,
-0.005269882269203663,
0.06888912618160248,
-0.01376146450638771,
-0.06463002413511276,
0.04646977037191391,
-0.03603899106383324,
-0.022750768810510635,
-0.028056498616933823,
-0.032857708632946014,
-0.021799614652991295,
0.0047069815918803215,
0.028227174654603004,
-0.015679283067584038,
0.017302829772233963,
-0.022775443270802498,
0.021729053929448128,
-0.030074328184127808,
0.03080739453434944,
0.010787817649543285,
0.00814780592918396,
0.0009958422742784023,
-0.003093923442065716,
0.021577375009655952,
0.07390084117650986,
0.05076567828655243,
-0.043348345905542374,
0.030542735010385513,
-0.047373030334711075,
0.0195779912173748,
0.003917139954864979,
0.0402275025844574,
0.019627004861831665,
-0.011085186153650284,
-0.02274865098297596,
0.03466786816716194,
-0.012866550125181675,
-0.033813122659921646,
0.029937662184238434,
0.07603701204061508,
-0.012961768545210361,
-0.00550068449229002,
-0.013405275531113148,
-0.044741690158843994,
-0.012182146310806274,
-0.0034124688245356083,
0.005138790234923363,
0.01557967159897089,
-0.024104846641421318,
-0.007561276666820049,
0.0055336300283670425,
0.04493572562932968,
-0.03099200315773487,
0.004494073335081339,
0.007969659753143787,
0.03878878802061081,
0.043921638280153275,
0.02080417238175869,
0.01351940631866455,
-0.03653198853135109,
-0.026675112545490265,
0.045833930373191833,
-0.011855930089950562,
0.05223049223423004,
-0.11010468006134033,
-0.039638668298721313,
-0.01724020577967167,
0.04138001799583435,
0.00868783239275217,
0.011025593616068363,
-0.0035001032520085573,
0.03851771727204323,
0.0328143835067749,
-0.02059009298682213,
0.012099466286599636,
0.046715207397937775,
0.028126560151576996,
-0.023113226518034935,
-0.01641964353621006,
-0.00479714572429657,
0.00044520010123960674,
0.016506485641002655,
0.009188054129481316,
0.0015180847840383649,
-0.02007472515106201,
0.008484634570777416,
0.008715233765542507,
0.024439727887511253,
-0.04440172016620636,
-0.013480838388204575,
-0.019501617178320885,
-0.01830727607011795,
0.04306211695075035,
-0.003959842026233673,
0.01698259450495243,
-0.005128596909344196,
-0.03293900936841965,
0.04321032017469406,
0.024290205910801888,
-0.05408922955393791,
-0.009542127139866352,
0.03192894533276558,
0.01923762820661068,
0.00789710320532322,
0.00811520405113697,
0.004427418578416109,
-0.0019347391789779067,
-0.028877506032586098,
0.003126951865851879,
0.029537411406636238,
0.005309686530381441,
0.016998929902911186,
-0.013408125378191471,
0.027800725772976875,
0.02410799451172352,
0.015879379585385323,
0.03175702318549156,
-0.010629641823470592,
0.009266432374715805,
-0.017811527475714684,
0.0016576044727116823,
-0.009554820135235786,
-0.031403373926877975,
0.03382010757923126,
-0.018070613965392113,
0.00876790564507246,
0.02238593064248562,
0.0347377210855484,
-0.003020752687007189,
-0.007998094893991947,
0.04222628101706505,
0.02030545100569725,
-0.01389349065721035,
-0.018873808905482292,
0.01804911158978939,
0.035451870411634445,
-0.03760821744799614,
-0.02556133270263672,
-0.06151779368519783,
-0.02278982102870941,
0.0195564366877079,
-0.04304657503962517,
0.05060739070177078,
0.05716025084257126,
-0.000612453673966229,
0.014195895753800869,
-0.010122666135430336,
0.013818290084600449,
0.025105321779847145,
-0.029702909290790558,
-0.00023957708617672324,
0.008733110502362251,
0.06469058990478516,
0.03155715763568878,
0.037892136722803116,
0.02938132733106613,
0.03505874425172806,
-0.019670652225613594,
-0.042602408677339554,
-0.004448545165359974,
0.0490812286734581,
-0.03768940269947052,
0.011162787675857544,
-0.06112641468644142,
-0.03412649407982826,
-0.010801919735968113,
0.031781770288944244,
0.009975156746804714,
0.04071066901087761,
0.038345567882061005,
-0.0018282717792317271,
-0.020964346826076508,
-0.05220627412199974,
0.01239223312586546,
0.09028933942317963,
0.01867314614355564,
0.008413990959525108,
0.011975363828241825,
0.038868337869644165,
-0.010809547267854214,
0.019364207983016968,
-0.006554756313562393,
0.02899206057190895,
0.07437248528003693,
-0.005815271753817797,
-0.02108372561633587,
0.017787564545869827,
-0.027712572365999222,
-0.026553312316536903,
-0.034081436693668365,
0.04067452996969223,
-0.015755219385027885,
-0.02097983844578266,
0.05210484564304352,
-0.022362256422638893,
0.03758794441819191,
-0.003190368413925171,
0.05657212808728218,
0.060990288853645325,
0.04958998039364815,
-0.041430894285440445,
0.058693017810583115,
0.00791502557694912,
0.010151861235499382,
-0.012610038742423058,
-0.0309488233178854,
-0.03099645860493183,
-0.009829029440879822,
0.03090747445821762,
0.048601604998111725,
-0.0010179051896557212,
0.038002949208021164,
0.01036533247679472,
0.04149101674556732,
0.0004655861121136695,
-0.013003835454583168,
0.03156929835677147,
0.014393768273293972,
0.01704913191497326,
-0.01598578505218029,
-0.03333950787782669,
-0.06252443045377731,
0.03217560425400734,
-0.01821763999760151,
0.010827542282640934,
-0.01642102748155594,
0.019762661308050156,
-0.055908527225255966,
-0.01730027049779892,
0.020908644422888756,
0.04260189086198807,
-0.016079707071185112,
0.023508109152317047,
-0.01506249699741602,
0.058758970350027084,
-0.016112033277750015,
-0.013780131936073303,
-0.0014940937981009483,
-0.06864084303379059,
-0.019234249368309975,
0.02242637611925602,
0.012698900885879993,
0.013153883628547192,
0.01835189014673233,
0.01544617023319006,
0.01078904140740633,
0.03259894624352455,
0.003165433183312416,
0.002437545685097575,
0.010701150633394718,
-0.0024829735048115253,
0.010726677253842354,
-0.0752016007900238,
0.03154003620147705,
-0.08426211029291153,
0.03194911405444145,
0.004158162511885166,
0.040960393846035004,
0.010084243491292,
0.05590188875794411,
-0.019043289124965668,
-0.04374091699719429,
-0.02143099345266819,
0.06586366891860962,
-0.056677643209695816,
0.013918893411755562,
-0.006594234611839056,
0.03477925434708595,
-0.0011379366042092443,
-0.02706044167280197,
0.021090559661388397,
-0.028094379231333733,
-0.0331273078918457,
0.0393710732460022,
0.002806378062814474,
-0.015199622139334679,
-0.009924591518938541,
0.014980866573750973,
0.004236355423927307,
-0.013816669583320618,
0.03012389875948429,
-0.04001207649707794,
-0.005307841580361128,
-0.017812708392739296,
0.03922482207417488,
-0.018030034378170967,
-0.016416875645518303,
-0.03894834965467453,
-0.041755810379981995,
0.017482491210103035,
0.012804991565644741,
-0.038917552679777145,
0.02233823761343956,
-0.07727140933275223,
-0.01799747161567211,
-0.015314865857362747,
-0.024053454399108887,
-0.04673243314027786,
0.032031986862421036,
0.046001072973012924,
0.06643536686897278,
0.0216148030012846,
-0.04786330834031105,
-0.026657478883862495,
-0.001445896690711379,
-0.03211217373609543,
0.015060871839523315,
0.06134597584605217,
0.03417673707008362,
-0.01259018573909998,
-0.0010177225340157747,
-0.03966476395726204,
0.008455677889287472,
-0.05083759129047394,
-0.03017788752913475,
0.021822508424520493,
-0.01772870495915413,
-0.023392271250486374,
0.011960959993302822,
0.029952693730592728,
-0.01880909502506256,
0.02486073039472103,
0.02855893410742283,
-0.020282303914427757,
0.002956248354166746,
-0.009152275510132313,
-0.03297162801027298,
-0.011838034726679325,
-0.016797486692667007,
-0.05367577075958252,
-0.003197471844032407,
0.012811889871954918,
0.00990035105496645,
0.03939880430698395,
-0.028529034927487373,
0.02738041616976261,
-0.005370925646275282,
0.007196499966084957,
-0.0269183237105608,
0.030214983969926834,
0.014588586986064911,
-0.000018952592654386535,
-0.010388405993580818,
0.013795425184071064,
0.03020573779940605,
0.015662964433431625,
-0.02780093625187874,
-0.014883204363286495,
-0.02650495432317257,
0.028894711285829544,
-0.012812593020498753,
-0.006745496764779091,
0.054207004606723785,
0.033060524612665176,
0.0071752178482711315,
-0.012403716333210468,
0.0005372806917876005
] |
Getting Started with Hugging Face Transformers for IPUs with Optimum | internetoftim | November 30, 2021 | graphcore-getting-started | partnerships, graphcore, guide | https://huggingface.co/blog/graphcore-getting-started | Install Optimum Graphcore Now that your environment has all the Graphcore Poplar and PopTorch libraries available, you need to install the latest 🤗 Optimum Graphcore package in this environment. This will be the interface between the 🤗 Transformers library and Graphcore IPUs. Please make sure that the PopTorch virtual environment you created in the previous step is activated. Your terminal should have a prefix showing the name of the poptorch environment like below: (poptorch_env) user@host:~/workspace/poptorch_env$ pip3 install optimum[graphcore] optuna | [
0.08329343795776367,
0.03469036519527435,
0.07708597183227539,
0.061833642423152924,
0.05491561442613602,
-0.008821545168757439,
0.010362033732235432,
0.08042877912521362,
0.01971791870892048,
-0.03359106928110123,
-0.027130043134093285,
0.07380153238773346,
0.0011547355679795146,
0.06456643342971802,
0.07489290833473206,
-0.013449120335280895,
-0.04620296508073807,
0.013817026279866695,
-0.032255686819553375,
0.05607742443680763,
0.0012121254112571478,
-0.05500674247741699,
0.007173867896199226,
0.01332414336502552,
0.02934240736067295,
-0.11853453516960144,
-0.05005937069654465,
0.05979415401816368,
-0.04120876267552376,
-0.01932147517800331,
-0.057525403797626495,
-0.05711272731423378,
0.07663328945636749,
-0.059509314596652985,
0.031822919845581055,
0.0005860910750925541,
-0.07026353478431702,
-0.017124099656939507,
0.04215290769934654,
-0.038214609026908875,
0.040811482816934586,
-0.04439268261194229,
-0.049250513315200806,
-0.048453859984874725,
-0.03922751918435097,
-0.0002011219912674278,
-0.13979367911815643,
0.11745263636112213,
-0.0029481754172593355,
-0.003834997769445181,
-0.037631805986166,
0.04100656136870384,
0.019097067415714264,
-0.03743954002857208,
0.029849354177713394,
-0.01723727211356163,
0.0029709863010793924,
0.020153401419520378,
-0.011487097479403019,
0.01945481263101101,
0.07089608162641525,
-0.009613513015210629,
-0.06486357748508453,
0.04148903116583824,
-0.0009474061080254614,
-0.019917013123631477,
-0.03957151994109154,
-0.03883218765258789,
-0.04200826212763786,
-0.09008409827947617,
-0.03558330982923508,
-0.0054728807881474495,
-0.00441818218678236,
-0.04793897271156311,
-0.06428797543048859,
-0.019657591357827187,
0.0592198371887207,
0.06508635729551315,
0.0041447230614721775,
0.07154527306556702,
-0.023924775421619415,
0.017804335802793503,
0.042719438672065735,
0.02913956344127655,
-0.02397102490067482,
-0.025950530543923378,
0.023320753127336502,
-0.0194576233625412,
0.0011594051029533148,
0.04768748953938484,
-0.07025758922100067,
-0.12005076557397842,
-0.004926790948957205,
0.04442892223596573,
-0.003992751706391573,
-0.08200814574956894,
-0.00023621521540917456,
-0.011951934546232224,
-0.07001473754644394,
0.0027676632162183523,
-0.035931650549173355,
0.013164801523089409,
-0.018762841820716858,
-0.032362136989831924,
-0.027414562180638313,
-0.01052452065050602,
-0.03679807111620903,
-0.016552820801734924,
-0.02703802101314068,
0.029068950563669205,
0.005253317765891552,
-0.0003922839823644608,
0.01621667668223381,
0.07621436566114426,
-0.01660441979765892,
0.0679701641201973,
0.07042694836854935,
-0.013416520319879055,
0.0004945286200381815,
-0.005390346050262451,
0.030624419450759888,
0.09869638830423355,
0.04783448204398155,
0.07767043262720108,
0.03339557349681854,
0.09457530826330185,
0.009517445228993893,
-0.006903054658323526,
-0.023361515253782272,
-0.03886456787586212,
0.10275561362504959,
0.046613652259111404,
0.008174008689820766,
-0.006889791693538427,
0.026828506961464882,
-0.076479971408844,
0.044118016958236694,
-0.002752716653048992,
-0.05525531247258186,
-0.005191038828343153,
-0.0012021041475236416,
-0.024067161604762077,
0.06354162096977234,
0.06979892402887344,
-0.003906434401869774,
-0.015037323348224163,
-0.0688135176897049,
0.05677364766597748,
0.00714396545663476,
-0.009936036542057991,
0.023870065808296204,
0.04502352327108383,
-0.06308198720216751,
-0.037571460008621216,
-0.023670868948101997,
0.046797700226306915,
0.02429947443306446,
-0.015104317106306553,
-0.11346422135829926,
-0.035388313233852386,
-0.007769312243908644,
-0.026733268052339554,
-0.05541657283902168,
-0.021373838186264038,
0.02895631454885006,
-0.015691591426730156,
0.018292222172021866,
-0.030478497967123985,
0.027353962883353233,
-0.04644257575273514,
0.011638570576906204,
-0.028310369700193405,
0.006647219881415367,
0.014829801395535469,
0.0327124260365963,
0.051489703357219696,
0.02943013608455658,
0.05749332904815674,
-0.04964732751250267,
-0.02530590258538723,
-0.05004134029150009,
0.08247406035661697,
-0.07458751648664474,
0.09199874848127365,
-0.004050638061016798,
-0.025449715554714203,
0.0032091906759887934,
0.007133193779736757,
0.06946627795696259,
0.002221163595095277,
-0.01373268198221922,
-0.05046454817056656,
0.07936090975999832,
-0.004416338168084621,
0.07676427066326141,
0.01706722564995289,
-0.04645238071680069,
0.03572292998433113,
0.08630305528640747,
0.04023885354399681,
0.009555491618812084,
-0.02615777961909771,
0.029630089178681374,
-0.011579504236578941,
-0.04232141003012657,
0.05869732424616814,
-0.01644235849380493,
-0.0362982451915741,
0.03514869511127472,
0.009364918805658817,
-0.017130156978964806,
-0.1454758197069168,
0.05968918651342392,
-0.06476990133523941,
0.004527202341705561,
-0.05824470520019531,
-0.048026539385318756,
0.06737861782312393,
0.11020462960004807,
0.023771807551383972,
0.045792706310749054,
0.03632669523358345,
0.032001595944166183,
-0.04712656885385513,
-0.02640480175614357,
0.06512120366096497,
0.10391554981470108,
0.02797391079366207,
0.06899262964725494,
-0.053836070001125336,
0.030308373272418976,
-0.05588001012802124,
-0.04037681967020035,
0.09967048466205597,
0.018297646194696426,
-0.02231561578810215,
-0.05886758491396904,
0.029199939221143723,
0.028901301324367523,
-0.05824100971221924,
0.005834911949932575,
0.021587464958429337,
-0.026597846299409866,
0.028720978647470474,
0.04751984030008316,
0.05625529959797859,
0.03148294612765312,
-0.007072960492223501,
0.01757137104868889,
0.0005419590743258595,
-0.028149273246526718,
-0.011741899885237217,
0.011153229512274265,
0.018727799877524376,
0.04584033042192459,
0.031674716621637344,
-0.020470965653657913,
-0.002544885966926813,
0.018818238750100136,
0.031721435487270355,
-0.004952745512127876,
-0.02521982043981552,
-0.0072157238610088825,
-0.03043329529464245,
0.004987950902432203,
-0.020703637972474098,
-0.007412683684378862,
0.018890896812081337,
-0.03333088383078575,
-0.02217279188334942,
-0.00806516781449318,
-0.052898675203323364,
0.04616355523467064,
0.016113994643092155,
-0.022957229986786842,
0.002104405779391527,
0.026797298341989517,
-0.048077989369630814,
-0.003701541805639863,
-0.015166671015322208,
0.03601691126823425,
-0.004523798823356628,
-0.008482187986373901,
-0.013465426862239838,
-0.010206831619143486,
0.01991342008113861,
0.028451530262827873,
-0.03272624686360359,
-0.018214425072073936,
-0.040908608585596085,
-0.03907885029911995,
0.038438569754362106,
-0.019322311505675316,
-0.023592274636030197,
-0.030313938856124878,
-0.04994822293519974,
-0.017323866486549377,
-0.012484999373555183,
-0.03179420530796051,
0.03765411674976349,
0.016399867832660675,
-0.012457672506570816,
0.029424991458654404,
-0.01727781631052494,
-0.06366678327322006,
0.0003295788774266839,
0.005945309530943632,
-0.0024720835499465466,
-0.10343985259532928,
-0.015652423724532127,
0.006337848957628012,
0.0366266667842865,
-0.03903428465127945,
-0.02638115920126438,
0.04510287195444107,
0.014855751767754555,
-0.009688167832791805,
-0.036744557321071625,
0.008282399736344814,
-0.029064053669571877,
0.028820587322115898,
0.03433569148182869,
-0.011764347553253174,
0.0005288944812491536,
0.016011333093047142,
-0.029065411537885666,
-0.008330070413649082,
0.0007009356049820781,
-0.00960826687514782,
0.03322678431868553,
0.005911087151616812,
-0.03878220170736313,
-0.0024616182781755924,
-0.000491503335069865,
0.02577103115618229,
0.06211617961525917,
-0.018082326278090477,
-0.052853986620903015,
0.012583646923303604,
-0.011145036667585373,
-0.006123400293290615,
0.025467732921242714,
-0.03062436729669571,
-0.016768010333180428,
-0.030383724719285965,
0.022967014461755753,
0.005620324052870274,
0.028884554281830788,
-0.020113997161388397,
-0.0016353751998394728,
-0.011768282391130924,
-0.03367125615477562,
0.0028242571279406548,
-0.027216119691729546,
-0.051876217126846313,
0.0077573927119374275,
-0.015219424851238728,
0.003139072097837925,
-0.0707978904247284,
-0.010036872699856758,
-0.013578985817730427,
0.024876412004232407,
-0.0232037715613842,
0.02469964139163494,
0.02934393472969532,
0.03820762783288956,
0.02851753495633602,
-0.02311093360185623,
-0.030675001442432404,
0.036515627056360245,
0.006791228894144297,
0.023038608953356743,
-0.009273156523704529,
0.0647771805524826,
0.05995891988277435,
-0.02230248786509037,
0.03576819971203804,
0.019716570153832436,
0.004960314836353064,
-0.003370449645444751,
0.011941344477236271,
0.017853837460279465,
-0.040800098329782486,
-0.00048647643416188657,
-0.04874759167432785,
-0.0018577690934762359,
0.017389951273798943,
0.01862052083015442,
-0.013753990642726421,
-0.05407632142305374,
-0.01845850609242916,
-0.001324283890426159,
-0.011259828694164753,
0.026356611400842667,
0.0241947490721941,
-0.037662290036678314,
0.02495671436190605,
0.011445465497672558,
-0.005670189391821623,
-0.03747810795903206,
0.010496255941689014,
-0.029076555743813515,
-0.06330379843711853,
0.03252789005637169,
0.013447245582938194,
0.013484996743500233,
0.009750313125550747,
-0.001114247483201325,
0.009321708232164383,
-0.03514287248253822,
-0.014998952858150005,
0.03447173535823822,
-0.02884015068411827,
0.03686993941664696,
-0.018714673817157745,
-0.03492341563105583,
0.027310503646731377,
0.0022639662493020296,
0.023049162700772285,
-0.04309871420264244,
-0.02490214817225933,
-0.049862317740917206,
0.00245397980324924,
0.02716035768389702,
0.025082310661673546,
-0.037297215312719345,
-0.02432216890156269,
0.04374169185757637,
-0.024382006376981735,
0.03856942430138588,
0.016817811876535416,
-0.006927752401679754,
-0.009412595070898533,
-0.03772099316120148,
0.03210188448429108,
0.041414227336645126,
0.003952742088586092,
-0.009026747196912766,
0.018138578161597252,
-0.020163733512163162,
0.04274328798055649,
-0.04030372574925423,
0.008373825810849667,
0.009568600915372372,
-0.0024440421257168055,
0.005933040753006935,
0.014997217804193497,
-0.006468907929956913,
-0.02806461602449417,
0.00352728134021163,
0.06863804906606674,
-0.01606537215411663,
0.0421915203332901,
-0.0017630034126341343,
-0.023989863693714142,
0.048640817403793335,
-0.010218439623713493,
-0.0017014628974720836,
0.04874468222260475,
-0.01735166274011135,
0.018065739423036575,
0.04070724546909332,
0.01849546656012535,
-0.002602766267955303,
0.0026328202802687883,
-0.025175120681524277,
-0.012724109925329685,
0.0444994755089283,
0.016956910490989685,
-0.03388948366045952,
-0.03269964084029198,
0.010629350319504738,
0.0486832857131958,
-0.039484214037656784,
0.016957426443696022,
-0.08592768013477325,
-0.012598210945725441,
-0.008070113137364388,
-0.012635093182325363,
0.042330991476774216,
0.013900423422455788,
-0.0025627142749726772,
0.03708047792315483,
0.022781940177083015,
0.020078804343938828,
-0.03571851924061775,
0.054351553320884705,
-0.00005735461672884412,
-0.0024496889673173428,
-0.0014741887571290135,
-0.004108906723558903,
0.008428123779594898,
-0.015505342744290829,
0.031051715835928917,
0.017438437789678574,
-0.013205834664404392,
0.030559932813048363,
-0.002551972633227706,
0.025825591757893562,
-0.0653359517455101,
-0.004534721374511719,
-0.013807324692606926,
-0.017495084553956985,
-0.00853701215237379,
0.0070304968394339085,
0.018751930445432663,
0.002463545650243759,
-0.017733583226799965,
0.0388915091753006,
0.03252297639846802,
-0.014448726549744606,
-0.06386110186576843,
0.05388905853033066,
0.020779993385076523,
0.010700122453272343,
0.006127761676907539,
0.030879296362400055,
0.0005340930656529963,
-0.014305783435702324,
-0.008482450619339943,
0.02993765100836754,
-0.01820399798452854,
-0.02396325021982193,
-0.06191142648458481,
-0.013157641515135765,
-0.0026991127524524927,
-0.0022807379718869925,
0.062464457005262375,
-0.0067389425821602345,
0.011280548758804798,
0.04888656735420227,
-0.0024906955659389496,
0.021112367510795593,
-0.020161038264632225,
0.03231329098343849,
0.001104741939343512,
-0.016977302730083466,
-0.015701988711953163,
0.042640652507543564,
-0.015139591880142689,
0.019986014813184738,
0.020900124683976173,
0.07450389117002487,
0.028018809854984283,
-0.03640719875693321,
0.01460270956158638,
0.032627902925014496,
-0.0270377304404974,
-0.02677908167243004,
-0.045803334563970566,
-0.029917079955339432,
-0.007690807338804007,
0.0021400051191449165,
0.010039209388196468,
0.030221959576010704,
0.006233476102352142,
-0.025665275752544403,
-0.032007716596126556,
0.035165686160326004,
0.0056382338516414165,
-0.0311672855168581,
-0.02311951480805874,
0.03163379803299904,
0.0368436761200428,
0.00607483321800828,
0.02427661418914795,
-0.005685732699930668,
0.005882364232093096,
0.012368425726890564,
-0.05262483283877373,
-0.004278154112398624,
0.046342190355062485,
-0.0110119404271245,
0.046161677688360214,
-0.02696085348725319,
-0.023227645084261894,
-0.03352433070540428,
-0.0037149626296013594,
0.014209387823939323,
0.04405871406197548,
0.007417588494718075,
-0.025304721668362617,
-0.003109823679551482,
-0.026569923385977745,
0.030589215457439423,
0.0562717467546463,
-0.021860651671886444,
-0.013737333938479424,
0.006164116784930229,
0.01632837764918804,
0.020611442625522614,
0.013027301989495754,
-0.0008983270381577313,
0.03323298320174217,
0.03793874382972717,
-0.012567281723022461,
0.013363723643124104,
0.013592871837317944,
-0.06847462058067322,
-0.026511911302804947,
-0.013805991970002651,
0.03327111527323723,
0.003949837293475866,
0.019756779074668884,
0.02052856795489788,
-0.0013898947509005666,
-0.020073816180229187,
-0.011507822200655937,
0.04950610175728798,
0.03089097887277603,
0.04938642308115959,
-0.026560179889202118,
0.038481902331113815,
-0.03629450500011444,
0.009951280429959297,
0.02839079685509205,
-0.013072074390947819,
-0.02141803875565529,
0.020223574712872505,
0.06302303075790405,
-0.04503680020570755,
0.05151279643177986,
-0.023167887702584267,
0.005953799933195114,
0.02578558214008808,
-0.009152467362582684,
-0.040650010108947754,
-0.014114121906459332,
0.029699215665459633,
-0.010737595148384571,
-0.023901600390672684,
-0.021048985421657562,
-0.04817282781004906,
0.0054635535925626755,
-0.03975039720535278,
0.03465258702635765,
-0.008332173340022564,
-0.03647515922784805,
-0.002166708931326866,
-0.019782964140176773,
0.021728355437517166,
0.07012152671813965,
-0.018074773252010345,
0.07907392829656601,
-0.015766138210892677,
-0.0011341552017256618,
-0.05397728458046913,
-0.007263030856847763,
-0.03034372068941593,
0.04073072224855423,
0.022471481934189796,
-0.019535379484295845,
-0.023775385692715645,
-0.01597617194056511,
0.06840785592794418,
0.005435837898403406,
-0.030704978853464127,
0.014879787340760231,
-0.00663621025159955,
0.01266553159803152,
-0.034700486809015274,
0.04436849057674408,
0.00038831343408674,
-0.00541574927046895,
0.00689390953630209,
-0.005809667985886335,
0.031199490651488304,
-0.0461755096912384,
0.03468102589249611,
0.02619883231818676,
-0.003177396720275283,
-0.007745911832898855,
-0.05870987847447395,
-0.010992275550961494,
0.0029613354708999395,
-0.03613283485174179,
-0.005214476492255926,
-0.01740666665136814,
0.029572969302535057,
-0.0006675819749943912,
-0.008106290362775326,
0.004531295038759708,
-0.0309146735817194,
0.01200295053422451,
0.048639923334121704,
0.044027917087078094,
0.023373274132609367,
0.004452570807188749,
0.02938723936676979,
0.0017336276359856129,
-0.01463529746979475,
0.017277183011174202,
0.03538888692855835,
0.0013062895741313696,
-0.01928321272134781,
-0.004051127005368471,
-0.02591799944639206,
0.03962302953004837,
-0.024777855724096298,
-0.012983337976038456,
0.026862474158406258,
-0.04610323905944824,
-0.02080223336815834,
0.019537271931767464,
-0.04231186956167221,
-0.014228446409106255,
-0.022260358557105064,
-0.03368115797638893,
0.0013068850385025144,
0.005252117291092873,
0.048606500029563904,
0.06751818209886551,
0.03215884789824486,
-0.042071323841810226,
-0.03229755908250809,
0.011799304746091366,
0.018100019544363022,
0.017873559147119522,
0.0144736897200346,
-0.002742386655882001,
-0.017737798392772675,
-0.08052437007427216,
-0.01328444667160511,
0.011324102990329266,
-0.029775872826576233,
0.02916746586561203,
0.007743298541754484,
-0.03262803703546524,
-0.015255876816809177,
0.023781422525644302,
0.03854222223162651,
0.011296873912215233,
0.041936226189136505,
-0.02120668813586235,
-0.02737128734588623,
0.005901321768760681,
-0.007698835805058479,
-0.01563648134469986,
0.008354821242392063,
-0.023612944409251213,
-0.015920456498861313,
0.00809413567185402,
0.025382619351148605,
-0.02981051430106163,
-0.005469705443829298,
-0.02920311875641346,
-0.04892083629965782,
0.014745856635272503,
-0.02915400266647339,
-0.04130038619041443,
-0.01257703360170126,
0.07490678876638412,
-0.032841768115758896,
-0.044457342475652695,
0.027773790061473846,
0.016110673546791077,
-0.0019985646940767765,
0.030830716714262962,
-0.010493454523384571,
-0.049366481602191925,
0.009477514773607254,
0.026010967791080475,
0.020172014832496643,
0.018259091302752495,
0.00988792348653078,
0.02097025327384472,
0.013589556328952312,
-0.008258968591690063
] |
Introducing Snowball Fight ☃️, our First ML-Agents Environment | ThomasSimonini | December 2, 2021 | snowball-fight | research, rl | https://huggingface.co/blog/snowball-fight | Be part of the conversation: join our discord server! If you're using ML-Agents or interested in Deep Reinforcement Learning and want to be part of the conversation, you can join our discord server. We just added two channels (and we'll add more in the future): - Deep Reinforcement Learning - ML-Agents Our discord is the place where you can exchange about Hugging Face, NLP, Deep RL, and more! It's also in this discord that we'll announce all our new environments and features in the future. | [
0.07684963941574097,
-0.04803658649325371,
0.03229568526148796,
0.01198302861303091,
0.04072829708456993,
0.024144398048520088,
0.056220605969429016,
0.06867798417806625,
-0.04617160186171532,
-0.049690064042806625,
-0.11057320237159729,
0.037343427538871765,
-0.005872636567801237,
0.020400911569595337,
-0.000006995737294346327,
-0.027209697291254997,
0.03402796387672424,
0.011010965332388878,
0.04045579954981804,
-0.01809641346335411,
-0.06165527552366257,
0.021257948130369186,
0.023414455354213715,
0.003401750000193715,
0.013034790754318237,
-0.01728428713977337,
0.021809445694088936,
0.021447649225592613,
-0.010709594935178757,
-0.0020246440544724464,
-0.06213902309536934,
0.03651173785328865,
-0.010971172712743282,
-0.0037043204065412283,
0.04521589353680611,
0.0738682821393013,
-0.10071487724781036,
0.028210779651999474,
0.04711897671222687,
-0.007796782534569502,
-0.01917172782123089,
-0.023197542876005173,
-0.07018409669399261,
0.04587151110172272,
-0.041924189776182175,
-0.0407307893037796,
-0.13521911203861237,
0.0631684735417366,
-0.027005787938833237,
-0.06525786966085434,
-0.037325408309698105,
0.06599888205528259,
-0.04645819216966629,
-0.053173311054706573,
-0.028392886742949486,
-0.0022004989441484213,
-0.012703889980912209,
-0.05773155391216278,
-0.0004320025909692049,
0.010048780590295792,
0.07395251095294952,
0.019067121669650078,
0.007793006487190723,
0.039413612335920334,
-0.013053663074970245,
0.03637341782450676,
0.05668426305055618,
-0.08765935152769089,
-0.07017567753791809,
-0.01901143789291382,
0.023685207590460777,
-0.005735613871365786,
-0.08504518121480942,
-0.0513688288629055,
0.07152985781431198,
-0.034566160291433334,
-0.08291903883218765,
0.05347708985209465,
0.02785469777882099,
0.008472410030663013,
-0.022806789726018906,
0.019434496760368347,
0.08252374827861786,
0.01980922929942608,
0.006592796184122562,
0.020025916397571564,
0.016661427915096283,
-0.020175954326987267,
-0.06453588604927063,
0.05065056309103966,
-0.042714785784482956,
-0.08941671252250671,
0.023336326703429222,
-0.007646284531801939,
0.09949047118425369,
-0.016228530555963516,
-0.0415467843413353,
0.05068986490368843,
-0.07940709590911865,
-0.014253092929720879,
-0.02052708901464939,
-0.0380554124712944,
0.036863647401332855,
-0.05558139458298683,
-0.04864651709794998,
0.06965218484401703,
-0.01235849130898714,
-0.08525105565786362,
-0.057048264890909195,
-0.025574248284101486,
0.003953680861741304,
0.014949217438697815,
-0.001994437538087368,
0.047451626509428024,
-0.04465493559837341,
0.07436472177505493,
-0.014557722955942154,
-0.003971593454480171,
-0.01889769360423088,
0.029884079471230507,
0.016891397535800934,
-0.012800880707800388,
0.01337912306189537,
0.04734410345554352,
-0.02512916550040245,
0.044523995369672775,
-0.011233330704271793,
-0.02343709021806717,
0.04020971804857254,
-0.0763171911239624,
0.0007964193937368691,
-0.02877853997051716,
0.018064020201563835,
0.03925381973385811,
0.0057710204273462296,
-0.056869424879550934,
0.02989150956273079,
-0.08689403533935547,
0.05530422180891037,
0.03811009228229523,
-0.030399149283766747,
-0.008655225858092308,
0.04826052114367485,
0.08086933195590973,
0.06728453934192657,
-0.021564699709415436,
-0.06937268376350403,
0.00749980891123414,
-0.05113276466727257,
0.0155000826343894,
-0.12265604734420776,
0.0008024679846130311,
0.014870979823172092,
-0.030413489788770676,
-0.02282710187137127,
0.0319538377225399,
-0.035033438354730606,
-0.047719355672597885,
0.04624107852578163,
0.03541824594140053,
-0.016575289890170097,
-0.0494748018682003,
-0.015204917639493942,
0.049573931843042374,
0.01919950358569622,
0.030714986845850945,
-0.02362910285592079,
0.014895631931722164,
-0.022114837542176247,
-0.0029365397058427334,
-0.013924233615398407,
-0.016679219901561737,
0.0591009221971035,
-0.00684057641774416,
0.059506576508283615,
0.030463172122836113,
0.02870667353272438,
0.0470438189804554,
-0.017716839909553528,
-0.08311410993337631,
-0.03442595154047012,
0.028173236176371574,
-0.00732009531930089,
-0.013311854563653469,
0.02971768006682396,
-0.017505180090665817,
0.0502210408449173,
-0.04064193367958069,
0.0571410171687603,
0.045461807399988174,
0.05231499299407005,
0.011891943402588367,
0.06161995604634285,
0.014486050233244896,
0.0754278376698494,
-0.010210221633315086,
-0.07028652727603912,
0.07537521421909332,
-0.00010270509665133432,
0.08144467324018478,
0.036045368760824203,
-0.03282545879483223,
0.009696312248706818,
-0.012544764205813408,
0.004890384618192911,
0.06194600462913513,
0.03878243267536163,
-0.009735864587128162,
0.011696817353367805,
0.011908902786672115,
0.024967750534415245,
-0.1093352884054184,
-0.0038754642009735107,
-0.04323379322886467,
0.0520176962018013,
0.001244878163561225,
-0.025220811367034912,
0.009555607102811337,
-0.010069183073937893,
-0.04945262894034386,
0.22346419095993042,
-0.04565245285630226,
0.03655526414513588,
0.0025647925212979317,
0.003975052386522293,
0.08828958123922348,
0.11750725656747818,
0.05789303779602051,
0.11529266089200974,
-0.014521138742566109,
-0.08269994705915451,
0.0016883511561900377,
-0.04685036092996597,
-0.0014295917935669422,
-0.029142796993255615,
-0.003248936962336302,
0.05298957973718643,
-0.04464016854763031,
-0.028646783903241158,
0.024455640465021133,
-0.0434616319835186,
-0.07109620422124863,
0.028367269784212112,
0.04805651679635048,
0.014248223975300789,
-0.02256876789033413,
0.10102275758981705,
0.04504347965121269,
-0.049247320741415024,
0.006811061408370733,
-0.06240477412939072,
-0.031214410439133644,
-0.013291869312524796,
0.007681087590754032,
0.04363062232732773,
0.03876853361725807,
0.02219826728105545,
-0.02695021964609623,
-0.019443882629275322,
0.046919550746679306,
0.03172511234879494,
-0.010032781399786472,
-0.01269387174397707,
-0.037360113114118576,
0.019979484379291534,
-0.028774991631507874,
-0.019204910844564438,
-0.016128959134221077,
0.03739413991570473,
0.02307242341339588,
0.06206071004271507,
-0.024294139817357063,
0.015497351065278053,
-0.009926041588187218,
-0.030600450932979584,
0.0225550327450037,
0.015339131467044353,
-0.04372226446866989,
-0.021521566435694695,
-0.03079647198319435,
0.010375222191214561,
-0.033249203115701675,
0.05788668245077133,
0.05759759247303009,
-0.020987194031476974,
-0.01574450545012951,
-0.037679508328437805,
-0.004444376099854708,
-0.006457677111029625,
0.03188439831137657,
0.0598522387444973,
-0.008466009981930256,
-0.028760045766830444,
0.005437537096440792,
-0.014136981219053268,
-0.047608159482479095,
0.03208169341087341,
0.014487450942397118,
-0.0020690402016043663,
0.02278398536145687,
-0.006793360225856304,
0.008930989541113377,
-0.0313882939517498,
-0.011524678207933903,
0.0008402829407714307,
0.029972951859235764,
0.026306552812457085,
-0.006572082173079252,
-0.09132863581180573,
-0.04169951379299164,
0.006196967326104641,
0.044041957706213,
0.014477603137493134,
-0.01645289547741413,
0.05009457468986511,
-0.008481268770992756,
-0.006336157210171223,
-0.004109772853553295,
-0.056320834904909134,
0.01846363954246044,
0.03461388126015663,
0.013866094872355461,
-0.04838917776942253,
-0.0415429025888443,
0.018775569275021553,
-0.0002399040968157351,
0.044787608087062836,
0.002700638025999069,
-0.05586593970656395,
0.0852426141500473,
0.019010106101632118,
0.026974432170391083,
-0.022176649421453476,
-0.005618123337626457,
0.06261133402585983,
0.016049159690737724,
0.045532677322626114,
-0.03955519199371338,
-0.028177576139569283,
0.009343459270894527,
-0.052240997552871704,
-0.022564677521586418,
-0.045772675424814224,
0.010525726713240147,
-0.011307692155241966,
0.010685685090720654,
0.0546252578496933,
-0.0016275352099910378,
-0.016771303489804268,
0.004161985591053963,
-0.002114666858687997,
-0.04498570039868355,
-0.009123275056481361,
0.017224645242094994,
-0.04354989528656006,
0.024995116516947746,
0.023908618837594986,
-0.023189527913928032,
0.022678755223751068,
-0.008532430976629257,
0.04041584953665733,
0.013622638769447803,
0.028360549360513687,
-0.024690868332982063,
0.024640897288918495,
0.059124305844306946,
0.004419313743710518,
-0.024530911818146706,
-0.037106942385435104,
0.001053665648214519,
-0.0053459941409528255,
-0.057642728090286255,
-0.022005563601851463,
0.00846676155924797,
0.008577506057918072,
-0.041556261479854584,
0.033266063779592514,
0.008517120964825153,
0.03560879826545715,
-0.020893864333629608,
0.021667374297976494,
0.015239783562719822,
-0.0053310818038880825,
0.005179888568818569,
-0.009287104941904545,
-0.03972006216645241,
0.03859703242778778,
0.03236372396349907,
-0.042772162705659866,
-0.015228135511279106,
-0.018377037718892097,
-0.01655929535627365,
0.025523656979203224,
-0.036218397319316864,
0.013159610331058502,
-0.011845485307276249,
-0.017541944980621338,
0.04542722925543785,
-0.0008987276814877987,
-0.02329372987151146,
0.027273736894130707,
-0.0044079856015741825,
0.015898779034614563,
0.019873157143592834,
0.0113508440554142,
0.013114451430737972,
0.022670650854706764,
0.020283713936805725,
0.0036524313036352396,
-0.05671555548906326,
0.008160846307873726,
0.0047096144407987595,
0.019320262596011162,
0.04592554271221161,
-0.008754904381930828,
-0.01218992006033659,
0.013500900939106941,
-0.0030341334640979767,
0.03850611299276352,
-0.017403192818164825,
-0.03221677616238594,
-0.0020228084176778793,
0.030275024473667145,
0.009683196432888508,
-0.035702694207429886,
0.002093204064294696,
-0.015820031985640526,
0.006220013368874788,
-0.03319976478815079,
-0.03557468205690384,
-0.022464493289589882,
0.026593787595629692,
-0.00873603019863367,
0.005371440667659044,
0.0010851568076759577,
-0.008670784533023834,
-0.02138555981218815,
-0.02453397773206234,
-0.014983697794377804,
-0.030945423990488052,
-0.004827040713280439,
0.0012370920740067959,
0.00935508031398058,
0.003237813012674451,
-0.015165556222200394,
0.04861275851726532,
-0.018819032236933708,
-0.024334456771612167,
0.006748354062438011,
0.017787158489227295,
0.04797837510704994,
-0.031104139983654022,
0.005277733318507671,
0.03235241025686264,
-0.06010487675666809,
0.010842903517186642,
-0.022312842309474945,
-0.002940619131550193,
0.01658785343170166,
-0.008499858900904655,
-0.03799566254019737,
-0.018575476482510567,
0.05491385981440544,
-0.01895774155855179,
-0.011339644901454449,
0.04152260348200798,
-0.007525441702455282,
0.043687328696250916,
0.011245198547840118,
0.003837674157693982,
0.015318523161113262,
0.0104697085916996,
0.022815484553575516,
-0.002077460754662752,
-0.007154849357903004,
-0.031654004007577896,
0.013719641603529453,
-0.014222456142306328,
-0.03173508867621422,
0.06112487241625786,
-0.023933984339237213,
-0.01205564197152853,
0.008448578417301178,
0.010772334411740303,
0.03320380300283432,
0.02537568099796772,
-0.028128156438469887,
-0.007529020309448242,
-0.03827003017067909,
0.0304341409355402,
-0.0038877150509506464,
-0.03082015924155712,
0.0019615960773080587,
0.014005516655743122,
0.06419569998979568,
0.030436307191848755,
0.013204517774283886,
0.02561723254621029,
-0.005390312522649765,
0.04668160527944565,
0.014976410195231438,
-0.04545158892869949,
0.013176887296140194,
-0.017399156466126442,
0.009266951121389866,
0.003476132871583104,
0.019038761034607887,
0.012927113100886345,
0.0300827007740736,
0.02801479399204254,
-0.04137386009097099,
0.013769792392849922,
0.0199850145727396,
0.023024071007966995,
-0.023639986291527748,
-0.008579644374549389,
0.003664467018097639,
-0.027333911508321762,
0.011121850460767746,
-0.009866712614893913,
0.011673219501972198,
-0.02655411884188652,
0.00561367254704237,
-0.03383197635412216,
-0.0074487184174358845,
0.008426089771091938,
0.024584831669926643,
0.05502013489603996,
-0.023027867078781128,
-0.018637455999851227,
-0.02199762500822544,
-0.009817562066018581,
-0.012465907260775566,
-0.02746630646288395,
-0.028439342975616455,
0.056858666241168976,
0.025312984362244606,
0.0025848818477243185,
0.06865696609020233,
-0.009947742335498333,
0.020097484812140465,
0.0026053714100271463,
0.010473853908479214,
-0.009417930617928505,
-0.06460562348365784,
0.038011059165000916,
0.01633499562740326,
-0.053207509219646454,
-0.006435970775783062,
-0.013257286511361599,
-0.040646735578775406,
-0.0386028066277504,
-0.03843575343489647,
-0.029397567734122276,
0.058481715619564056,
0.026187144219875336,
0.014541721902787685,
-0.01331330370157957,
0.027136456221342087,
0.045070454478263855,
0.0015015421668067575,
-0.013495659455657005,
0.020451635122299194,
0.03672172129154205,
0.021030761301517487,
0.012872113846242428,
-0.026722734794020653,
-0.017199715599417686,
-0.007203401066362858,
-0.09220945835113525,
0.03211481496691704,
-0.005952711217105389,
-0.025349652394652367,
0.014684606343507767,
0.012916521169245243,
0.004602172411978245,
0.023016655817627907,
0.03364229202270508,
0.030076758936047554,
-0.008852589875459671,
-0.011552853509783745,
0.01747998036444187,
-0.012902539223432541,
-0.020290188491344452,
0.006068862974643707,
0.06340834498405457,
-0.05366826802492142,
0.05016513541340828,
0.03170916438102722,
0.01513859536498785,
0.031684644520282745,
0.035666320472955704,
-0.013112591579556465,
-0.019834157079458237,
0.054197221994400024,
-0.004563783761113882,
0.05461541563272476,
0.053052984178066254,
0.02084186300635338,
-0.055333212018013,
-0.0038168272003531456,
-0.013654857873916626,
-0.02667977474629879,
0.008901719935238361,
0.0560285747051239,
-0.014982962980866432,
0.012171920388936996,
-0.001163329347036779,
0.022699208930134773,
0.04053936153650284,
0.04152795672416687,
-0.0062499819323420525,
0.011708561331033707,
0.0546281673014164,
0.010656426660716534,
0.02818245254456997,
-0.0022454774007201195,
-0.006688607856631279,
0.017204023897647858,
0.01607210375368595,
0.048265278339385986,
-0.0037899308372288942,
-0.016141057014465332,
0.0024413876235485077,
0.019118528813123703,
-0.006911883130669594,
-0.00963825173676014,
-0.01235631201416254,
-0.012308254837989807,
0.004177140071988106,
-0.01535115484148264,
0.019702095538377762,
-0.030552271753549576,
-0.001901585259474814,
-0.003947105724364519,
0.015030142851173878,
0.06422844529151917,
-0.03059243969619274,
0.001695229671895504,
0.004883517976850271,
-0.018202021718025208,
-0.005889960564672947,
-0.006494780071079731,
-0.02195104770362377,
0.03433579206466675,
-0.019422467797994614,
-0.03508548066020012,
-0.01879977621138096,
-0.03156089037656784,
0.006046422757208347,
-0.05529077351093292,
-0.011782933957874775,
-0.04182884097099304,
-0.007064748089760542,
0.009845588356256485,
0.03713953495025635,
0.003380055073648691,
0.01777762547135353,
0.018602969124913216,
0.00656917504966259,
-0.015422390773892403,
0.009562131948769093,
-0.029438605532050133,
-0.013412317261099815,
-0.021236592903733253,
-0.025602633133530617,
0.02112109586596489,
-0.018077939748764038,
-0.0042900703847408295,
0.022836554795503616,
0.0421823114156723,
-0.018102897331118584,
-0.000976129958871752,
0.02922390215098858,
0.013492358848452568,
-0.025643985718488693,
0.0349227599799633,
0.009656893089413643,
-0.04888639599084854,
0.002084089443087578,
0.021252524107694626,
-0.0029628928750753403,
-0.027435313910245895,
0.034893449395895004,
0.046932402998209,
-0.004187100101262331,
-0.05378846451640129,
0.024974830448627472,
0.02725643292069435,
0.03270227462053299,
0.010240172035992146,
0.02374761365354061,
0.017012199386954308,
-0.0034950736444443464,
-0.04246323183178902,
-0.0012202063808217645,
-0.019676636904478073,
-0.008013096638023853,
-0.039632994681596756,
-0.003730732947587967,
-0.04551488906145096,
-0.015568051487207413,
0.03629465401172638,
0.03163527324795723,
-0.05454399436712265,
0.007451292127370834,
-0.017004026100039482,
0.03058014065027237,
-0.022528991103172302,
-0.027569355443120003,
0.03189316391944885,
0.0019962878432124853,
0.00009424630843568593,
-0.026637081056833267,
-0.005931593012064695,
-0.020337775349617004,
0.004147250670939684,
0.026793023571372032,
0.016724955290555954,
-0.029047172516584396,
-0.005453034304082394,
-0.007520168088376522,
-0.020532120019197464,
0.010000363923609257,
-0.014368722215294838,
0.019695933908224106,
0.00922047533094883,
-0.005662174429744482,
-0.04523925110697746,
0.001013264525681734,
-0.03330013528466225,
-0.03055434301495552,
0.04135257750749588,
-0.028445051982998848,
-0.06486047059297562,
-0.02849702723324299,
-0.01888429932296276,
-0.04566865786910057,
0.0056299688294529915,
-0.02948785200715065,
-0.008989495225250721,
0.038442421704530716,
-0.008574899286031723,
-0.04322489723563194,
0.02834826335310936,
-0.00604441249743104,
0.0005240674363449216,
-0.017070990055799484,
-0.048316989094018936,
-0.06102204695343971,
-0.028737768530845642,
0.05894569680094719,
0.0030091730877757072,
0.002610467839986086,
0.017744362354278564,
-0.012773224152624607,
-0.03471394628286362,
0.011195321567356586,
0.010216248221695423,
0.0033522392623126507,
0.023011263459920883,
0.02792936936020851,
-0.03829507902264595,
0.0702979639172554,
0.024128258228302002,
0.035675473511219025,
-0.04622366279363632,
0.024648109450936317
] |
Introducing Snowball Fight ☃️, our First ML-Agents Environment | ThomasSimonini | December 2, 2021 | snowball-fight | research, rl | https://huggingface.co/blog/snowball-fight | # Introducing Snowball Fight ☃️, our First ML-Agents Environment We're excited to share our first custom Deep Reinforcement Learning environment: Snowball Fight 1vs1 🎉. Snowball Fight is a game made with Unity ML-Agents, where you shoot snowballs against a Deep Reinforcement Learning agent. The game is hosted on Hugging Face Spaces. 👉 You can play it online here In this post, we'll cover the ecosystem we are working on for Deep Reinforcement Learning researchers and enthusiasts that use Unity ML-Agents. | [
-0.026288237422704697,
-0.05647628754377365,
0.025228284299373627,
-0.030541617423295975,
0.019557252526283264,
0.034918054938316345,
0.015057227574288845,
-0.010223539546132088,
-0.0036888679023832083,
-0.0030786488205194473,
-0.0667843446135521,
0.00339012430049479,
-0.11584226042032242,
0.015338228084146976,
0.08015499264001846,
-0.02838142029941082,
-0.01730315387248993,
0.061583131551742554,
0.017651615664362907,
0.005105823744088411,
-0.08775991201400757,
-0.015991324558854103,
-0.00055392348440364,
0.03775186464190483,
-0.03668796643614769,
-0.019803781062364578,
0.06021573767066002,
0.030265087261795998,
0.022974353283643723,
-0.013884589076042175,
-0.09118346124887466,
-0.06500042974948883,
-0.008051062002778053,
-0.012123760767281055,
0.021094070747494698,
0.04961741343140602,
-0.08660559356212616,
0.1079653650522232,
-0.014966102316975594,
-0.053980812430381775,
0.021265145391225815,
-0.037548888474702835,
-0.07200749218463898,
0.02844497747719288,
-0.00025259144604206085,
-0.06678492575883865,
-0.11914240568876266,
0.028880788013339043,
-0.08334886282682419,
-0.06742865592241287,
-0.0567743256688118,
0.033270906656980515,
-0.028526589274406433,
-0.050286103039979935,
-0.016556022688746452,
0.06185124069452286,
-0.0224155243486166,
-0.06150054931640625,
0.06990920007228851,
0.028606640174984932,
0.007556564174592495,
0.04207777976989746,
0.012546590529382229,
0.014574205502867699,
-0.005754837766289711,
0.0215903352946043,
0.05063233897089958,
-0.05093628540635109,
-0.055610693991184235,
-0.06573116034269333,
0.011046512983739376,
0.004523049108684063,
-0.02260139212012291,
0.014329161494970322,
0.020337484776973724,
-0.041506730020046234,
-0.03967151418328285,
0.04402141273021698,
-0.02560599520802498,
0.047993265092372894,
-0.03737695887684822,
0.009098385460674763,
0.04818585515022278,
0.011949951760470867,
-0.00482869241386652,
0.06143010035157204,
0.007166110910475254,
-0.029911763966083527,
-0.01989266462624073,
0.060493238270282745,
-0.03130003437399864,
-0.04575847089290619,
0.05088622123003006,
0.022669289261102676,
0.08713217079639435,
0.014425532892346382,
-0.04177740216255188,
0.03424679860472679,
-0.020471511408686638,
-0.02663898654282093,
-0.03955664113163948,
-0.0670773983001709,
-0.027939196676015854,
-0.03616829961538315,
0.01580374501645565,
0.12061776965856552,
-0.010775301605463028,
-0.06067194789648056,
-0.0649699717760086,
-0.02395695075392723,
-0.03610458970069885,
-0.03824375569820404,
0.032643601298332214,
0.06131724268198013,
-0.10025882720947266,
-0.026811353862285614,
-0.009840153157711029,
0.02191559225320816,
0.03180702403187752,
0.07648331671953201,
0.03731679171323776,
0.02150700055062771,
0.027636462822556496,
0.0009940934833139181,
-0.014472685754299164,
0.01268827822059393,
-0.00728499423712492,
0.009113816544413567,
0.015274391509592533,
-0.06631214171648026,
0.06334294378757477,
-0.04304906353354454,
0.014469284564256668,
0.0003937831206712872,
0.06084863841533661,
-0.06631515920162201,
0.0455729104578495,
-0.08059124648571014,
-0.03156421706080437,
0.008435768075287342,
-0.03798026964068413,
0.044150520116090775,
0.044601015746593475,
-0.0344146303832531,
-0.005894492380321026,
-0.05280055105686188,
-0.009674602188169956,
0.024005748331546783,
-0.030149685218930244,
-0.06518829613924026,
-0.02387596294283867,
0.005044156219810247,
-0.010029718279838562,
0.01240653358399868,
-0.03165973350405693,
0.08973098546266556,
-0.07510868459939957,
-0.05132056400179863,
-0.03866031393408775,
0.08378639817237854,
0.02050997130572796,
-0.011216513812541962,
-0.04712275415658951,
0.013993218541145325,
-0.03979320451617241,
0.004880107939243317,
0.026311321184039116,
0.020811032503843307,
-0.004505724646151066,
0.033090587705373764,
0.04531051963567734,
0.06431375443935394,
0.08746906369924545,
0.04557635262608528,
0.037393804639577866,
0.021214036270976067,
0.051020365208387375,
0.1037549376487732,
0.08363576233386993,
-0.012943522073328495,
-0.00005578241325565614,
0.018462950363755226,
0.030688147991895676,
-0.012055153958499432,
0.06194281950592995,
-0.01638917438685894,
0.023536566644906998,
-0.02706356905400753,
0.09639327228069305,
0.010747757740318775,
-0.001472039963118732,
0.08251238614320755,
0.08677922934293747,
0.011112055741250515,
0.017383990809321404,
-0.021311962977051735,
-0.046421926468610764,
0.026128817349672318,
0.07627204060554504,
0.05816886946558952,
0.0258992537856102,
-0.0694524496793747,
-0.023749178275465965,
-0.01921241544187069,
0.02451350726187229,
0.05682109296321869,
0.04260433092713356,
-0.06081773340702057,
-0.020440412685275078,
0.008718125522136688,
0.020011072978377342,
-0.05642347410321236,
0.0045369938015937805,
0.016775941476225853,
0.07817096263170242,
-0.014912190847098827,
-0.06188666447997093,
0.021044684574007988,
0.04005029797554016,
-0.08874637633562088,
0.10689669102430344,
-0.07117976248264313,
0.006538850720971823,
0.015392456203699112,
-0.013510624878108501,
0.01465938426554203,
0.07080068439245224,
-0.0028141438961029053,
0.11171101778745651,
-0.061363622546195984,
-0.017715061083436012,
0.022849135100841522,
-0.025092732161283493,
0.05760284885764122,
-0.03147122263908386,
-0.05139193311333656,
0.11488404124975204,
-0.054921723902225494,
-0.012107755988836288,
0.010411488823592663,
-0.08519474416971207,
0.002175970235839486,
0.017914054915308952,
0.050276100635528564,
-0.041184548288583755,
-0.008529359474778175,
0.05111375078558922,
-0.021339038386940956,
0.014256464317440987,
-0.025063257664442062,
-0.0740605890750885,
0.01367909088730812,
-0.041011057794094086,
0.057196490466594696,
0.05876908078789711,
0.03994307294487953,
-0.025964908301830292,
0.0014166961191222072,
-0.009903806261718273,
0.0560336634516716,
0.025887886062264442,
0.016787655651569366,
-0.04691097512841225,
-0.03262152895331383,
0.02152092196047306,
-0.020670538768172264,
0.04251795634627342,
0.0025424077175557613,
0.02482377178966999,
0.051649678498506546,
0.04488623887300491,
0.002187171718105674,
0.0001645133743295446,
-0.01678360067307949,
0.010231764987111092,
0.014534682035446167,
0.004958595614880323,
-0.00775305088609457,
-0.01593054085969925,
-0.002501153154298663,
0.0041463314555585384,
-0.009844791144132614,
0.0480148121714592,
0.04559234529733658,
-0.015881845727562904,
-0.0043975310400128365,
-0.01742986962199211,
0.023195069283246994,
-0.021902166306972504,
0.0022144808899611235,
0.007411550264805555,
-0.013168119825422764,
-0.03537336364388466,
0.02947908267378807,
-0.034037522971630096,
-0.002869699150323868,
0.00793276447802782,
-0.020891033113002777,
0.036763109266757965,
0.04711674898862839,
-0.025862589478492737,
0.02577788755297661,
0.015993012115359306,
0.020592372864484787,
0.030515993013978004,
-0.008501341566443443,
0.002973532071337104,
0.005824970547109842,
-0.07186800241470337,
-0.017280379310250282,
-0.005773864220827818,
0.06239279359579086,
0.004850543104112148,
-0.035392191261053085,
0.008759444579482079,
-0.008063962683081627,
-0.011879056692123413,
0.03744330257177353,
-0.07223435491323471,
-0.019091101363301277,
0.04418589547276497,
0.011756833642721176,
-0.026030350476503372,
0.013048062101006508,
0.03442291542887688,
0.00597219867631793,
-0.012923995964229107,
-0.0043336465023458,
-0.03948216140270233,
0.08533931523561478,
0.025375867262482643,
0.03289349749684334,
-0.005129635334014893,
0.006626940332353115,
0.03853605315089226,
0.021391088142991066,
0.04211629182100296,
-0.04919461905956268,
-0.013095189817249775,
0.0006162350764498115,
0.004296034574508667,
0.006943196058273315,
-0.002499292604625225,
-0.01993289403617382,
-0.016853973269462585,
-0.023665321990847588,
0.04700503870844841,
-0.01983901672065258,
0.003334746463224292,
-0.023395387455821037,
0.010484594851732254,
-0.0007038548355922103,
-0.009045662358403206,
0.0020088457968086004,
-0.018914733082056046,
0.047485314309597015,
-0.013379952870309353,
-0.03399137780070305,
0.009182709269225597,
0.00009988943202188239,
-0.006846028380095959,
-0.00386610790155828,
0.003927118144929409,
0.026591818779706955,
-0.001529016299173236,
-0.0035680998116731644,
0.03524909168481827,
-0.007618098519742489,
0.019011329859495163,
0.025240514427423477,
-0.05534784868359566,
0.005479779560118914,
0.018354784697294235,
0.010300258174538612,
0.009723879396915436,
-0.0342610739171505,
-0.00495830038562417,
0.026497555896639824,
0.045881371945142746,
-0.024326959624886513,
-0.001538176671601832,
-0.0023399649653583765,
-0.004570093937218189,
0.039444033056497574,
0.0219773817807436,
-0.07215326279401779,
0.050402846187353134,
0.01605704426765442,
0.03758831322193146,
-0.06416474282741547,
-0.02988428622484207,
-0.014941761270165443,
0.018737928941845894,
-0.0023617821279913187,
0.010571811348199844,
-0.033744607120752335,
0.018254850059747696,
0.022111233323812485,
0.007236326579004526,
-0.02256825752556324,
-0.0071724411100149155,
0.011980131268501282,
0.039256494492292404,
0.046133480966091156,
-0.02237834967672825,
0.008100477047264576,
-0.0567263588309288,
0.002126459963619709,
-0.03255533054471016,
-0.06683983653783798,
-0.02410813234746456,
-0.02023947983980179,
0.04736420884728432,
-0.003204431850463152,
-0.008949452079832554,
-0.0408644862473011,
0.026908688247203827,
0.019041186198592186,
0.02606993541121483,
-0.0007189352181740105,
0.010873456485569477,
0.022397173568606377,
0.04253212735056877,
0.01359202153980732,
-0.0055547598749399185,
0.026787420734763145,
-0.031094130128622055,
0.02170247957110405,
-0.06100941076874733,
-0.01258403342217207,
-0.02086779661476612,
-0.034496039152145386,
-0.02050360105931759,
0.02941007725894451,
-0.013754975982010365,
0.016185857355594635,
-0.0077700004912912846,
-0.02001866325736046,
-0.053021710366010666,
-0.004849518649280071,
0.011748440563678741,
0.030180247500538826,
0.010346444323658943,
-0.02279067598283291,
-0.0316641703248024,
0.025664642453193665,
-0.011486098170280457,
-0.02318153902888298,
0.02179114520549774,
0.023572321981191635,
0.08951299637556076,
-0.02448996715247631,
-0.03176122531294823,
-0.014768312685191631,
0.006261826492846012,
0.03883394971489906,
-0.023389406502246857,
0.026845557615160942,
0.03757309168577194,
0.007185779977589846,
-0.06560266762971878,
-0.0006611821008846164,
0.02998252585530281,
-0.0014146094908937812,
-0.042194824665784836,
-0.0010405483189970255,
-0.033062245696783066,
0.008296647109091282,
0.02287149801850319,
-0.012990505434572697,
-0.03380688652396202,
0.03725556656718254,
-0.006429693195968866,
0.0020003023091703653,
0.019603833556175232,
-0.048363346606492996,
0.007158556021749973,
-0.00739193195477128,
-0.04299159720540047,
0.015966283157467842,
0.007469820789992809,
-0.034641869366168976,
0.005400622729212046,
0.0061300345696508884,
0.015995878726243973,
-0.004222719930112362,
-0.034977227449417114,
0.013262751512229443,
-0.08004186302423477,
-0.0035647512413561344,
-0.029207797721028328,
-0.04572049528360367,
0.04357340931892395,
-0.038572050631046295,
0.011232945136725903,
0.05537126213312149,
0.03247680142521858,
0.02683348022401333,
-0.009261823259294033,
-0.010046783834695816,
0.03960961848497391,
-0.05346079170703888,
0.007137720938771963,
0.014651123434305191,
-0.04821716248989105,
0.003891943721100688,
-0.02102729119360447,
-0.016963152214884758,
0.04202829673886299,
-0.004619064275175333,
-0.006344839930534363,
0.030672695487737656,
0.008044103160500526,
-0.021505257114768028,
-0.031038817018270493,
0.0039761485531926155,
0.026810118928551674,
-0.018616484478116035,
0.014648674987256527,
-0.02435542829334736,
0.0385831743478775,
-0.043799109756946564,
-0.015359451994299889,
-0.015179593116044998,
-0.020060695707798004,
0.042325716465711594,
-0.006362569984048605,
0.060785308480262756,
-0.004053032491356134,
-0.0001779579761205241,
-0.009174694307148457,
-0.014925927855074406,
-0.04074503481388092,
-0.02753419429063797,
-0.001739341183565557,
0.004079793114215136,
0.007523165550082922,
0.010463614948093891,
0.026991741731762886,
0.02278885617852211,
0.0369318425655365,
0.021909786388278008,
-0.015082829631865025,
-0.006617830600589514,
-0.041305042803287506,
0.04253595694899559,
0.02550848014652729,
-0.06335001438856125,
-0.038900114595890045,
-0.03553803265094757,
0.024048395454883575,
-0.016176067292690277,
-0.053851168602705,
-0.0067906975746154785,
0.04725199565291405,
0.021363290026783943,
0.02782435156404972,
-0.03936687856912613,
-0.015734203159809113,
0.014148000627756119,
-0.0356375016272068,
-0.001780306687578559,
0.02071613445878029,
0.030369369313120842,
0.030157014727592468,
-0.016414860263466835,
0.010869884863495827,
-0.011127558536827564,
-0.011021330021321774,
-0.039165593683719635,
0.020705927163362503,
0.02268126793205738,
-0.0013185804709792137,
-0.028194382786750793,
0.039837080985307693,
-0.00990687683224678,
-0.013066459447145462,
0.05169859901070595,
-0.017209360376000404,
-0.004093219060450792,
0.00976103451102972,
-0.0007377211004495621,
0.030060209333896637,
-0.006924933288246393,
0.04615609347820282,
0.04107442870736122,
0.011126880533993244,
0.02918592095375061,
-0.0024732595775276423,
0.030503002926707268,
0.020333386957645416,
0.032076604664325714,
0.0021835954394191504,
0.0021580103784799576,
0.04242951050400734,
-0.008202697150409222,
0.05403992161154747,
0.036569517105817795,
-0.03208288177847862,
-0.0036366768181324005,
-0.04078804329037666,
-0.05293663591146469,
0.0069317445158958435,
0.015433194115757942,
-0.011374731548130512,
-0.022481126710772514,
0.014215915463864803,
0.0034163768868893385,
0.047957099974155426,
0.0625360906124115,
-0.002083501312881708,
-0.017329515889286995,
0.04264257103204727,
0.017608946189284325,
-0.00226961518637836,
0.03446833789348602,
0.00014127139002084732,
-0.011656198650598526,
0.021951744332909584,
0.03521479293704033,
0.012323648668825626,
0.0022447872906923294,
-0.008128426037728786,
0.0062555535696446896,
0.037211451679468155,
-0.028428521007299423,
0.0011128850746899843,
-0.06007624417543411,
-0.031887173652648926,
0.01993020996451378,
-0.006274490617215633,
0.01994924061000347,
-0.026028888300061226,
-0.013125389814376831,
-0.04096178337931633,
-0.0030664342921227217,
0.017623184248805046,
-0.010311982594430447,
-0.011815262027084827,
0.016612892970442772,
-0.054832398891448975,
-0.03342008590698242,
0.011858852580189705,
-0.05707321688532829,
0.008892355486750603,
-0.03909642621874809,
-0.05792371183633804,
-0.03246234357357025,
-0.009929177351295948,
0.018487758934497833,
-0.023656629025936127,
-0.03350397199392319,
-0.0028421771712601185,
-0.03791492059826851,
0.05361567810177803,
0.03519350290298462,
-0.048377975821495056,
-0.0102085554972291,
0.031394220888614655,
0.03428274765610695,
-0.03789220750331879,
-0.025099506601691246,
-0.0026363153010606766,
-0.05304503068327904,
-0.004417714197188616,
-0.04343421384692192,
0.042994312942028046,
0.026868214830756187,
0.015594054944813251,
0.011383606120944023,
0.06312978267669678,
-0.011874006129801273,
-0.009680147282779217,
-0.026091335341334343,
0.026152033358812332,
-0.0013521121582016349,
0.032546114176511765,
0.02007110044360161,
-0.010762934572994709,
0.0008334063459187746,
-0.028031570836901665,
0.014737377874553204,
-0.006889411248266697,
0.031330931931734085,
0.020385855808854103,
0.0011590318754315376,
-0.044599857181310654,
-0.00022942763462197036,
0.0370810329914093,
0.07171186059713364,
0.03830123692750931,
0.01648147590458393,
-0.0056402720510959625,
-0.036630019545555115,
-0.0047581191174685955,
0.010547330603003502,
-0.04064926877617836,
-0.0022461158223450184,
-0.015575302764773369,
-0.07396984845399857,
-0.000539964297786355,
0.007609388791024685,
0.036890484392642975,
0.08075264096260071,
-0.07414510846138,
0.013798555359244347,
-0.003977629356086254,
0.015335499309003353,
-0.014891216531395912,
-0.01746021769940853,
0.054691724479198456,
0.0459991991519928,
0.00790606252849102,
-0.05646946653723717,
0.02026553638279438,
0.023733075708150864,
0.01186484657227993,
-0.038176536560058594,
0.03902347385883331,
-0.04543743282556534,
0.016729166731238365,
-0.0682854950428009,
-0.040732622146606445,
0.026698436588048935,
-0.01126062497496605,
-0.005137477070093155,
-0.027386032044887543,
-0.027824586257338524,
-0.016303813084959984,
0.011536266654729843,
0.014070223085582256,
-0.04079072177410126,
0.015168989077210426,
-0.013969775289297104,
-0.020420607179403305,
0.017069846391677856,
-0.0004840377368964255,
-0.02171626314520836,
-0.00978761538863182,
0.0006597546162083745,
0.02321665547788143,
0.01787751168012619,
0.023245804011821747,
-0.021242566406726837,
0.018588276579976082,
-0.0007997940410859883,
0.0020733748096972704,
-0.010158867575228214,
-0.061683136969804764,
-0.025714965537190437,
-0.04593633487820625,
0.03048761934041977,
0.04345005005598068,
-0.012326125986874104,
0.002203002804890275,
0.034524839371442795,
0.004474869929254055,
-0.016824889928102493,
-0.006460117641836405,
-0.002624648390337825,
0.004846267867833376,
0.04057204723358154,
-0.03409595042467117,
0.026811804622411728,
0.012179983779788017,
0.011269206181168556,
-0.03999114781618118,
0.04471081867814064
] |
Introducing Snowball Fight ☃️, our First ML-Agents Environment | ThomasSimonini | December 2, 2021 | snowball-fight | research, rl | https://huggingface.co/blog/snowball-fight | What's next? In the coming weeks and months, we will be extending the ecosystem by: - Writing some technical tutorials on ML-Agents. - Working on a Snowball Fight 2vs2 version, where the agents will collaborate in teams using MA-POCA, a new Deep Reinforcement Learning algorithm that trains cooperative behaviors in a team. - And we're building new custom environments that will be hosted in Hugging Face. | [
0.041357316076755524,
-0.07872840017080307,
0.0357891246676445,
-0.037255145609378815,
0.05907389521598816,
-0.006563653703778982,
0.009551072493195534,
0.0767379105091095,
0.003970328718423843,
-0.060710351914167404,
-0.087349534034729,
0.0022644991986453533,
-0.0664156973361969,
0.041786450892686844,
0.043143030256032944,
-0.009966198354959488,
0.02143210917711258,
0.06422893702983856,
0.020063569769263268,
0.047533851116895676,
-0.0738353431224823,
-0.015080612152814865,
0.055291254073381424,
0.048079561442136765,
-0.03408046066761017,
-0.030731743201613426,
0.029261011630296707,
0.012966935522854328,
0.04691096767783165,
0.003895724657922983,
-0.06609155982732773,
-0.0780324935913086,
-0.03472847118973732,
0.02900843881070614,
-0.041054610162973404,
0.02624095045030117,
-0.13345450162887573,
0.07054849714040756,
-0.026184244081377983,
-0.051961738616228104,
0.009541577659547329,
-0.006479800678789616,
-0.08813347667455673,
0.058720432221889496,
0.013921812176704407,
0.047519851475954056,
-0.12384077161550522,
0.05798208341002464,
-0.04024269059300423,
-0.09244811534881592,
-0.07568157464265823,
0.04786640778183937,
0.022395165637135506,
0.0058068991638720036,
-0.03205244243144989,
0.01429787464439869,
-0.03454042226076126,
-0.07391715794801712,
-0.023540666326880455,
-0.010097717866301537,
0.009933632798492908,
-0.014343587681651115,
-0.007251367904245853,
-0.03017323464155197,
-0.026985714212059975,
0.00021492948872037232,
0.04566551744937897,
-0.03644639253616333,
-0.07912886142730713,
-0.022002363577485085,
0.03110319748520851,
-0.018139628693461418,
-0.09874686598777771,
0.03411917760968208,
0.028834694996476173,
-0.09170681983232498,
-0.019461574032902718,
0.03594421595335007,
0.032811641693115234,
0.04127342626452446,
0.019298704341053963,
0.007499565836042166,
0.04311289265751839,
0.011083622463047504,
-0.008139364421367645,
0.05228659138083458,
0.013255598023533821,
-0.04433966055512428,
-0.015216276049613953,
0.056533150374889374,
-0.04490186646580696,
-0.0619685985147953,
0.054834917187690735,
0.026205353438854218,
0.10947983711957932,
-0.030766746029257774,
-0.04231520742177963,
0.015118812210857868,
-0.022122742608189583,
-0.08077672868967056,
-0.031260326504707336,
-0.05648549646139145,
-0.05982797220349312,
-0.046961355954408646,
-0.03269217908382416,
0.0008309455588459969,
-0.047555286437273026,
-0.09810265898704529,
-0.0791211798787117,
0.018683379516005516,
0.008909497410058975,
-0.029867807403206825,
0.04519440978765488,
0.08843862265348434,
-0.019845401868224144,
0.06816001236438751,
-0.041223958134651184,
-0.020046213641762733,
0.009707687422633171,
0.06562148779630661,
0.07478167861700058,
0.022888246923685074,
-0.0017641844460740685,
0.022642437368631363,
-0.04058053717017174,
0.023826876655220985,
-0.04301157593727112,
0.00498899444937706,
-0.008654016070067883,
-0.10519475489854813,
0.03613487631082535,
-0.04882316291332245,
0.004662839695811272,
0.00389946554787457,
0.04164908826351166,
-0.05018230900168419,
0.026485683396458626,
-0.05607471615076065,
0.011352533474564552,
0.024755874648690224,
-0.011287258937954903,
0.06108604371547699,
0.0782160758972168,
0.013211525976657867,
0.06030901521444321,
0.0010281074792146683,
-0.10953909903764725,
0.03732612729072571,
-0.07307054102420807,
-0.04599277675151825,
-0.046405550092458725,
-0.03763115778565407,
-0.031672075390815735,
-0.060376688838005066,
-0.0008709990652278066,
0.08115753531455994,
-0.009035216644406319,
0.011325307190418243,
-0.03141140937805176,
0.051263228058815,
0.04801693931221962,
-0.018608424812555313,
0.01273086667060852,
0.014417964033782482,
-0.010703753679990768,
0.025334807112812996,
-0.008728070184588432,
0.02675207518041134,
0.00036794974585063756,
0.012559681199491024,
0.04104696959257126,
0.014299408532679081,
0.08803458511829376,
-0.0015699302311986685,
0.009100791998207569,
0.054036945104599,
0.01907283253967762,
0.04757162928581238,
0.03439876437187195,
0.04193670302629471,
0.01696464978158474,
0.04237755015492439,
0.026323409751057625,
-0.060526225715875626,
0.029307227581739426,
-0.06718258559703827,
0.05992938205599785,
-0.013283365406095982,
0.06018665060400963,
-0.01154349371790886,
-0.005774499382823706,
0.08978216350078583,
0.040057241916656494,
-0.007169494405388832,
0.045503269881010056,
-0.02324618212878704,
-0.016644857823848724,
0.07894831895828247,
0.04692545905709267,
0.05136614292860031,
0.05096420645713806,
-0.0031267881859093904,
0.044875990599393845,
0.026293644681572914,
0.016005314886569977,
0.05544918030500412,
-0.0023155477829277515,
-0.05946505442261696,
-0.031186366453766823,
-0.013205266557633877,
-0.029414478689432144,
-0.03314196318387985,
-0.031285472214221954,
-0.042523570358753204,
0.061105865985155106,
-0.005057519767433405,
-0.020922169089317322,
0.005921102128922939,
-0.012756281532347202,
-0.07165465503931046,
0.11853508651256561,
-0.08497124165296555,
-0.03831174224615097,
0.04089560732245445,
0.010925485752522945,
0.07829387485980988,
0.08518850803375244,
0.01572568714618683,
0.10452903807163239,
-0.03136761859059334,
0.0018812255002558231,
-0.031828735023736954,
-0.06853661686182022,
0.018568243831396103,
0.013717486523091793,
-0.017695508897304535,
0.035660386085510254,
-0.04553396254777908,
0.035707760602235794,
-0.004299941007047892,
-0.04961618036031723,
-0.004352908115833998,
0.07226088643074036,
0.04680358245968819,
0.002414450980722904,
-0.01206485740840435,
0.08497518301010132,
-0.03203378990292549,
-0.05194131284952164,
-0.0014364189701154828,
-0.0795171856880188,
0.03859744220972061,
-0.0470932237803936,
0.006439199671149254,
0.03767544403672218,
0.06756938993930817,
-0.010632159188389778,
-0.03535206988453865,
-0.04264790564775467,
0.03383435308933258,
-0.023279815912246704,
-0.028746046125888824,
-0.010218700394034386,
-0.0030603548511862755,
0.00485090771690011,
-0.03793381527066231,
0.009372617118060589,
0.009400858543813229,
0.0006451018271036446,
0.005449842195957899,
0.041407983750104904,
-0.040333643555641174,
0.034995187073946,
-0.004144652746617794,
0.04815800487995148,
0.005742600187659264,
0.03856617212295532,
-0.008731837384402752,
-0.007297712378203869,
-0.05301713943481445,
-0.0060822260566055775,
-0.023805219680070877,
0.04790649190545082,
0.042044345289468765,
0.01847284846007824,
-0.015956765040755272,
-0.024225806817412376,
0.014064420945942402,
-0.03683469071984291,
0.011756962165236473,
0.04187696799635887,
-0.02763025090098381,
-0.03129097446799278,
-0.005850332323461771,
-0.013681239448487759,
-0.01863345503807068,
0.028054459020495415,
-0.005899428855627775,
0.003370782593265176,
0.0609770230948925,
-0.02631050907075405,
-0.02279541827738285,
0.028552677482366562,
0.005550839938223362,
0.02889157086610794,
-0.005057702772319317,
0.025175003334879875,
-0.005739889573305845,
-0.08890219777822495,
-0.03228076547384262,
-0.007985038682818413,
0.05889430642127991,
-0.010892636142671108,
-0.026411565020680428,
-0.0012666028924286366,
-0.016410890966653824,
-0.004529701545834541,
0.021695580333471298,
-0.034358732402324677,
0.010799388401210308,
0.014990422874689102,
0.009367593564093113,
-0.025283629074692726,
-0.015017816796898842,
0.016229849308729172,
-0.011794277466833591,
0.00861473847180605,
0.025250917300581932,
-0.032943472266197205,
0.03950100764632225,
-0.012780996039509773,
-0.020405104383826256,
-0.015677636489272118,
-0.008065070025622845,
0.031087003648281097,
0.041578229516744614,
0.04759617894887924,
-0.027466973289847374,
-0.04045262932777405,
-0.006608457770198584,
-0.013533112592995167,
0.0036409711465239525,
-0.023635489866137505,
-0.025359949097037315,
-0.014540809206664562,
0.004075806122273207,
0.022321216762065887,
0.0044288719072937965,
-0.006985075306147337,
-0.03866558149456978,
0.0034910968970507383,
0.020934395492076874,
-0.038909830152988434,
0.03348338231444359,
0.010150783695280552,
0.029900681227445602,
0.02055654115974903,
0.023114372044801712,
0.017419515177607536,
0.021640736609697342,
0.008215328678488731,
0.03195434808731079,
-0.03278597071766853,
0.005566328763961792,
-0.022697273641824722,
-0.03491621091961861,
0.025460010394454002,
-0.007188356015831232,
0.011335826478898525,
0.038818128407001495,
-0.01339098159223795,
-0.013824603520333767,
0.030391370877623558,
0.06430288404226303,
-0.0016449627000838518,
-0.056703031063079834,
-0.005802935920655727,
0.003779912833124399,
0.004496907815337181,
0.010947946459054947,
-0.018975399434566498,
-0.004067642148584127,
-0.0331968255341053,
0.03334498405456543,
0.031707484275102615,
-0.0286630317568779,
0.07901285588741302,
0.029531970620155334,
0.03685988858342171,
-0.06442245095968246,
-0.017845313996076584,
-0.02467368356883526,
-0.0004146082792431116,
-0.018041176721453667,
0.039905525743961334,
-0.04037794470787048,
-0.019210996106266975,
0.07464414089918137,
0.02918587438762188,
-0.06646111607551575,
0.052653718739748,
-0.015422221273183823,
0.06640397757291794,
0.049154628068208694,
0.004747258964926004,
0.009712111204862595,
-0.033783379942178726,
-0.014064493589103222,
-0.010187556967139244,
-0.037402816116809845,
0.017878662794828415,
-0.019230861216783524,
0.030224841088056564,
0.02078218199312687,
0.009731411933898926,
-0.03973986953496933,
0.029028337448835373,
0.00002433462577755563,
0.020005084574222565,
-0.0027583062183111906,
-0.0030663353390991688,
-0.04150810092687607,
0.06842091679573059,
0.017760373651981354,
0.0037838139105588198,
0.03567880392074585,
-0.016407035291194916,
-0.01046870555728674,
-0.049172837287187576,
-0.016076482832431793,
0.0009340782999061048,
0.0020940867252647877,
0.04171100631356239,
0.0003280158853158355,
-0.0033540893346071243,
-0.02106480859220028,
-0.0027183028869330883,
-0.016881966963410378,
-0.03598019480705261,
-0.05117645487189293,
0.021160725504159927,
0.03356587886810303,
0.03599478676915169,
0.02258622646331787,
-0.007642389740794897,
0.039711739867925644,
-0.016680290922522545,
-0.0401163324713707,
-0.028120867908000946,
0.024070117622613907,
0.04104694351553917,
-0.017052242532372475,
-0.013503744266927242,
-0.015555866993963718,
0.007900934666395187,
-0.015087353996932507,
-0.004895967897027731,
0.017371919006109238,
0.026033950969576836,
0.006857782136648893,
-0.021534593775868416,
0.011477301828563213,
0.042555443942546844,
-0.03046129085123539,
-0.017773514613509178,
0.016885317862033844,
0.0106810312718153,
0.025224486365914345,
-0.018805548548698425,
0.002434029709547758,
-0.05868126451969147,
0.027490412816405296,
0.035564348101615906,
-0.011809070594608784,
0.00032517954241484404,
-0.049884188920259476,
0.03798626735806465,
-0.020461909472942352,
-0.015041855163872242,
-0.0291034784168005,
-0.039187997579574585,
-0.020644674077630043,
0.016657084226608276,
0.011239424347877502,
0.005910532549023628,
0.018634557723999023,
-0.054848432540893555,
0.0017723727505654097,
-0.04006918892264366,
0.00037622908712364733,
0.008204933255910873,
-0.011901233345270157,
0.010316101834177971,
0.019076058641076088,
0.03995923325419426,
0.013452342711389065,
0.005641002673655748,
0.005459350999444723,
-0.024860631674528122,
-0.02288883924484253,
0.0014231575187295675,
-0.012683166190981865,
-0.014680485241115093,
0.011373278684914112,
-0.0396517738699913,
-0.014883327297866344,
-0.029074348509311676,
-0.02349170111119747,
0.026569204404950142,
0.0029001261573284864,
-0.023834535852074623,
0.034294139593839645,
0.03530145436525345,
-0.01632734388113022,
-0.03849337622523308,
-0.04596903175115585,
0.02076321840286255,
-0.02713933028280735,
0.00955635029822588,
0.0008921434637159109,
-0.012374133802950382,
-0.014956661500036716,
0.01633732207119465,
-0.030229924246668816,
-0.020847497507929802,
0.05139744281768799,
0.009704775176942348,
0.06616136431694031,
-0.02899843640625477,
-0.02708389051258564,
-0.028283581137657166,
-0.031234800815582275,
-0.017928987741470337,
-0.0005724186776205897,
0.007469131611287594,
0.005345438607037067,
0.00031853304244577885,
-0.03449665755033493,
0.06600632518529892,
-0.0007007000967860222,
0.006426514592021704,
0.03690705820918083,
0.002967934124171734,
-0.01936774142086506,
-0.06680769473314285,
0.03611830249428749,
0.01866278611123562,
-0.031219949945807457,
-0.041549958288669586,
-0.06173444911837578,
0.022693486884236336,
-0.05996260419487953,
-0.02929469384253025,
0.017909560352563858,
0.06889012455940247,
-0.0032643123995512724,
0.025351257994771004,
-0.011071779765188694,
0.02811877243220806,
0.01350646186619997,
-0.015015904791653156,
0.0038042613305151463,
0.004581224638968706,
0.03619636967778206,
0.011136400513350964,
0.01694684848189354,
0.015914887189865112,
-0.036083709448575974,
-0.020753011107444763,
-0.07689075171947479,
0.0005010307068005204,
0.015666097402572632,
-0.0011210005031898618,
-0.0015449525089934468,
0.029715130105614662,
-0.01795089989900589,
-0.008565961383283138,
0.02109413407742977,
0.0039275470189750195,
0.001890820451080799,
0.028009576722979546,
0.007065973244607449,
0.026450350880622864,
-0.03149939328432083,
0.034604158252477646,
0.024568982422351837,
0.01054169051349163,
-0.012131315656006336,
-0.00744403013959527,
0.05861464887857437,
0.05392613261938095,
0.05940653383731842,
0.011417443864047527,
0.006965253036469221,
0.039768822491168976,
0.011034151539206505,
0.050382137298583984,
0.03380180895328522,
-0.03465821593999863,
-0.007042581681162119,
0.006331196986138821,
-0.03624230995774269,
0.01973866857588291,
0.012815410271286964,
0.05180300772190094,
-0.001268283580429852,
0.016377774998545647,
-0.0023214949760586023,
0.030204497277736664,
0.06394194811582565,
-0.0153202498331666,
-0.004956705030053854,
-0.00431253295391798,
0.018069682642817497,
-0.028063025325536728,
0.02914612367749214,
0.034154828637838364,
-0.014139962382614613,
0.012938731350004673,
0.03220116347074509,
-0.010892322286963463,
0.03363174945116043,
-0.0002880448300857097,
0.02906307764351368,
0.011909098364412785,
-0.04416261240839958,
0.024600422009825706,
-0.03505437821149826,
-0.004871901124715805,
0.023490166291594505,
-0.005710183642804623,
-0.009765534661710262,
-0.0078117577359080315,
0.00878044031560421,
-0.03662056475877762,
0.015408169478178024,
0.011853636242449284,
-0.0036490734200924635,
0.05031992495059967,
0.011764038354158401,
0.010179037228226662,
-0.0408000610768795,
0.03765452653169632,
-0.03508850559592247,
0.023947376757860184,
0.010629154741764069,
-0.037867091596126556,
-0.05080220475792885,
-0.012743921019136906,
0.001345332944765687,
0.020642831921577454,
-0.03976398706436157,
-0.011793403886258602,
-0.01712089590728283,
0.023398837074637413,
0.02780057117342949,
-0.019038964062929153,
0.01558006927371025,
0.013166962191462517,
0.04395174980163574,
-0.057340849190950394,
-0.012501475401222706,
0.00035568917519412935,
-0.022517547011375427,
-0.008487804792821407,
-0.06989651918411255,
0.02864358015358448,
-0.0006818515248596668,
-0.01995493657886982,
0.056824762374162674,
0.06248020380735397,
-0.012641755864024162,
-0.007085578981786966,
-0.00044801743933930993,
-0.015329184010624886,
-0.01559546496719122,
0.034216009080410004,
0.0006314197089523077,
-0.0266023650765419,
-0.000022585212718695402,
-0.0013544788816943765,
-0.008021791465580463,
-0.028744427487254143,
0.035195473581552505,
0.046500805765390396,
0.00043987305252812803,
-0.0506969690322876,
0.0286934282630682,
0.05041787773370743,
0.02642788551747799,
0.023791227489709854,
0.012464665807783604,
0.0011172851081937551,
-0.006878749001771212,
-0.01753275655210018,
0.010770012624561787,
-0.040853001177310944,
-0.0061244782991707325,
-0.026542268693447113,
-0.025211580097675323,
-0.024834483861923218,
0.01796586811542511,
0.019653186202049255,
0.048125892877578735,
-0.033647410571575165,
-0.009257500059902668,
0.010423284955322742,
0.028182577341794968,
-0.005899753421545029,
-0.027004778385162354,
0.06908813118934631,
0.01713942550122738,
0.01695086620748043,
-0.026596764102578163,
0.003122730879113078,
-0.0014707018854096532,
0.03644214943051338,
0.0023053304757922888,
0.054200202226638794,
-0.04982820153236389,
-0.028657792136073112,
0.011321106925606728,
-0.01854577846825123,
0.04014185443520546,
-0.050242431461811066,
0.002392935799434781,
-0.017736636102199554,
-0.005994271021336317,
-0.011163768358528614,
-0.006774113513529301,
-0.016590029001235962,
-0.003630139399319887,
0.004471477586776018,
-0.013720325194299221,
-0.02189159020781517,
0.020482562482357025,
-0.024208160117268562,
-0.043638136237859726,
0.01727667823433876,
0.0030012889765203,
0.03652023896574974,
0.050581421703100204,
0.028429511934518814,
-0.04765503853559494,
0.004201664123684168,
-0.010769023559987545,
0.036159008741378784,
-0.0369536317884922,
-0.06787878274917603,
-0.009742846712470055,
0.0012662411900237203,
0.0030137449502944946,
0.0007631847402080894,
-0.017709651961922646,
0.04002789035439491,
0.04127678647637367,
-0.02731679566204548,
-0.025584066286683083,
-0.016205135732889175,
0.029772402718663216,
-0.00823802687227726,
0.035291459411382675,
0.013091377913951874,
0.06243263557553291,
0.04463070631027222,
-0.015303320251405239,
-0.01595868170261383,
0.015840645879507065
] |
Introducing Snowball Fight ☃️, our First ML-Agents Environment | ThomasSimonini | December 2, 2021 | snowball-fight | research, rl | https://huggingface.co/blog/snowball-fight | Unity ML-Agents at Hugging Face The Unity Machine Learning Agents Toolkit is an open source library that allows you to build games and simulations with Unity game engine to serve as environments for training intelligent agents. With this first step, our goal is to build an ecosystem on Hugging Face for Deep Reinforcement Learning researchers and enthusiasts that uses ML-Agents, with three features. 1. Building and sharing custom environments. We are developing and sharing exciting environments to experiment with new problems: snowball fights, racing, puzzles... All of them will be open source and hosted on the Hugging Face's Hub. 2. Allowing you to easily host your environments, save models and share them on the Hugging Face Hub. We have already published the Snowball Fight training environment here, but there will be more to come! 3. You can now easily host your demos on Spaces and showcase your results quickly with the rest of the ecosystem. | [
-0.06123712286353111,
-0.05667534098029137,
0.03759033605456352,
-0.01267801970243454,
0.003679288551211357,
0.030615806579589844,
0.03503752499818802,
0.037356194108724594,
0.012341287918388844,
-0.0022718580439686775,
-0.07365632057189941,
0.0609239786863327,
-0.053910400718450546,
0.05131218954920769,
0.06689026951789856,
-0.02690083533525467,
-0.023372385650873184,
0.04807581007480621,
-0.06520771980285645,
0.04907462000846863,
-0.05432498827576637,
-0.02946791797876358,
-0.026030080392956734,
0.024890903383493423,
-0.03498267009854317,
-0.04293440282344818,
0.048081111162900925,
0.01690380834043026,
0.01676907390356064,
0.05150984600186348,
-0.09053956717252731,
-0.027540121227502823,
-0.05149557814002037,
-0.0826927050948143,
0.00834257435053587,
0.006152912508696318,
-0.12348874658346176,
0.08843225240707397,
0.016671985387802124,
-0.009898822754621506,
0.08682771027088165,
-0.011151491664350033,
-0.0969555526971817,
0.042592842131853104,
0.009808207862079144,
-0.0475117564201355,
-0.13430780172348022,
0.04585978016257286,
-0.06106460094451904,
-0.051720961928367615,
-0.06490099430084229,
0.021604403853416443,
0.055200327187776566,
-0.0447976291179657,
0.07701267302036285,
0.032930683344602585,
0.023581083863973618,
-0.07305672764778137,
0.04171100631356239,
0.053446102887392044,
0.01784917712211609,
0.007708562072366476,
0.030098730698227882,
0.009043864905834198,
-0.01787133514881134,
0.02523411624133587,
0.04962107166647911,
-0.08658521622419357,
-0.041406720876693726,
-0.050613321363925934,
0.04627956822514534,
0.022433428093791008,
-0.04707365855574608,
0.00027168579981662333,
0.0483582429587841,
-0.04323135316371918,
-0.014807152561843395,
0.030386431142687798,
0.013553335331380367,
0.00022470246767625213,
-0.030208760872483253,
0.04110398516058922,
0.041990917176008224,
-0.014378211461007595,
0.011764556169509888,
0.07560677081346512,
-0.008943920023739338,
-0.05002376809716225,
-0.004171046894043684,
0.08324502408504486,
-0.008990650996565819,
-0.10998740047216415,
-0.016458723694086075,
-0.00743123609572649,
0.0917821153998375,
0.01127647701650858,
-0.012491090223193169,
0.014101555570960045,
-0.04643261805176735,
-0.010642674751579762,
-0.06328941881656647,
-0.04145417362451553,
-0.036990661174058914,
-0.05101841315627098,
0.0005883616395294666,
0.07530942559242249,
-0.008605574257671833,
-0.07449863106012344,
-0.05975322425365448,
0.004854772239923477,
0.01475650817155838,
-0.054415419697761536,
0.034304313361644745,
0.05070527270436287,
-0.09757665544748306,
0.002128790831193328,
0.00019099024939350784,
-0.04091822728514671,
0.0016222679987549782,
0.05776841938495636,
0.01641695946455002,
0.04864662140607834,
-0.009025456383824348,
0.01730896160006523,
-0.0234809722751379,
0.0929332971572876,
0.004976813215762377,
-0.015124546363949776,
0.033104076981544495,
-0.024067752063274384,
0.046403978019952774,
-0.019961431622505188,
-0.018379032611846924,
0.014226729981601238,
0.05965815484523773,
-0.03932780399918556,
0.027445057407021523,
-0.03533010184764862,
-0.012116476893424988,
0.03931977227330208,
-0.034273214638233185,
0.06275033205747604,
0.0626290887594223,
-0.04939327761530876,
0.022171130403876305,
-0.011631700210273266,
-0.08001521974802017,
0.07222812622785568,
-0.0028052162379026413,
-0.015216754749417305,
-0.04767924174666405,
-0.008097818121314049,
0.022633343935012817,
-0.009195737540721893,
-0.01808607205748558,
0.0858265683054924,
-0.06433416903018951,
-0.014394999481737614,
-0.03732737526297569,
0.006550215184688568,
-0.04581119120121002,
-0.00409665796905756,
-0.07784321159124374,
0.013863446190953255,
-0.030876683071255684,
0.007588196080178022,
0.0031023682095110416,
0.03357778117060661,
-0.0001490689319325611,
0.010928948409855366,
0.03933204337954521,
0.010767980478703976,
0.06040302291512489,
-0.018707316368818283,
0.07950108498334885,
-0.017970675602555275,
0.04810637608170509,
0.07543822377920151,
0.07029233872890472,
-0.017245635390281677,
-0.028741469606757164,
0.031243113800883293,
0.009557363577187061,
0.020840805023908615,
0.05120134353637695,
-0.060925401747226715,
0.018322646617889404,
-0.05451463162899017,
0.09531714767217636,
0.0246918722987175,
0.02355247177183628,
0.05309233069419861,
0.02826726995408535,
0.005689575802534819,
0.03518153354525566,
0.02013857662677765,
-0.0442558117210865,
0.03899918496608734,
0.08505652099847794,
0.05135885998606682,
0.036667630076408386,
-0.0521431528031826,
-0.024829775094985962,
-0.026528364047408104,
0.016762087121605873,
0.021767200902104378,
0.00942568015307188,
-0.0458754301071167,
-0.028437931090593338,
0.04530104622244835,
-0.009870319627225399,
-0.0664612427353859,
0.06734666228294373,
-0.018148884177207947,
0.05729192495346069,
-0.019733760505914688,
-0.054257214069366455,
0.025806596502661705,
0.053515542298555374,
-0.0287892147898674,
0.1374087780714035,
-0.09169012308120728,
-0.025428812950849533,
-0.016952795907855034,
0.00600200891494751,
0.025481287389993668,
0.02506273053586483,
0.04648802429437637,
0.1367121785879135,
-0.09978537261486053,
-0.013178601861000061,
-0.00572718633338809,
-0.06324682384729385,
0.020795127376914024,
-0.059890758246183395,
-0.0377802811563015,
0.16268743574619293,
-0.03829579800367355,
0.0012054827529937029,
-0.0008506387821398675,
-0.044723156839609146,
-0.03404293581843376,
-0.010658005252480507,
-0.01403098925948143,
0.017371902242302895,
-0.0009984049247577786,
0.05606243386864662,
-0.03466630354523659,
-0.010109654627740383,
0.00502819987013936,
-0.04093597084283829,
0.01358106266707182,
0.01031610555946827,
-0.010941670276224613,
0.024500945582985878,
0.01671363227069378,
-0.022541329264640808,
0.0038421200588345528,
-0.023327182978391647,
0.09786344319581985,
0.028514359146356583,
-0.02123209647834301,
-0.0776825100183487,
-0.03686968982219696,
0.0059333667159080505,
-0.037226974964141846,
-0.007412237115204334,
0.04913687705993652,
0.007310661021620035,
-0.001760580693371594,
0.0585189014673233,
-0.019329281523823738,
0.005058794282376766,
-0.03979036957025528,
-0.0004943027743138373,
0.04234006628394127,
0.02343503013253212,
0.006376901175826788,
-0.03800999000668526,
-0.019794555380940437,
0.008087659254670143,
-0.043546680361032486,
0.02467309683561325,
0.03805829584598541,
-0.027648843824863434,
0.016348982229828835,
-0.007711712270975113,
-0.009942860342562199,
-0.004798746667802334,
0.017550354823470116,
0.04167996346950531,
0.02883695252239704,
-0.019001765176653862,
0.032594311982393265,
-0.016975082457065582,
0.004332289565354586,
-0.003001574659720063,
-0.022726064547896385,
0.005160263739526272,
0.06262483447790146,
0.0036140414886176586,
-0.006399666890501976,
-0.0024862047284841537,
0.00976585689932108,
0.002542565343901515,
0.0418681800365448,
-0.010630055330693722,
-0.009648097679018974,
-0.06647249311208725,
-0.01929614134132862,
-0.047826364636421204,
0.04251910746097565,
0.0013270012568682432,
-0.027348054572939873,
0.013914193026721478,
-0.009023948572576046,
0.031472347676754,
0.04719937592744827,
-0.05370099097490311,
-0.005518271587789059,
0.02072417363524437,
0.004832039587199688,
-0.00010885844676522538,
-0.009566945023834705,
-0.006008148193359375,
-0.0005910734180361032,
0.014638327993452549,
0.014084197580814362,
-0.03949277102947235,
0.07252076268196106,
0.0276868287473917,
0.012851512990891933,
-0.0003840666904579848,
-0.021247975528240204,
0.047484900802373886,
-0.014287929981946945,
0.01986302249133587,
-0.046218156814575195,
-0.012224403209984303,
-0.017311949282884598,
-0.013144725002348423,
0.0005610923981294036,
-0.02826540730893612,
0.0004418441385496408,
-0.020164109766483307,
-0.03038003295660019,
0.06359852850437164,
-0.03809040039777756,
-0.028097743168473244,
-0.01758977398276329,
0.017656277865171432,
-0.02582031674683094,
0.025652596727013588,
-0.005087733268737793,
-0.04863300919532776,
0.05659032613039017,
-0.012451264075934887,
-0.016856927424669266,
0.0020337605383247137,
0.0003853132657241076,
-0.0009270668961107731,
0.043394528329372406,
0.00342608243227005,
0.03962050378322601,
0.02150724083185196,
-0.0065244645811617374,
0.0016436487203463912,
0.012349486351013184,
-0.06254464387893677,
0.01465801801532507,
-0.06791592389345169,
-0.014655710197985172,
0.0040886071510612965,
0.030816810205578804,
0.026666434481739998,
-0.04051246866583824,
-0.0059122140519320965,
0.0128293102607131,
0.03384610638022423,
0.012916569598019123,
0.0010811215033754706,
0.0005438760272227228,
-0.02097201533615589,
0.041612062603235245,
0.026077033951878548,
-0.048471856862306595,
0.03041878528892994,
0.026930855587124825,
-0.014407016336917877,
-0.07304492592811584,
-0.014355788007378578,
-0.004202625714242458,
0.010815047658979893,
-0.02523297257721424,
0.02136298269033432,
-0.036316607147455215,
0.021031832322478294,
0.005938380025327206,
-0.003593423869460821,
-0.04579075053334236,
0.025970302522182465,
-0.023358654230833054,
0.03975630924105644,
0.04676269367337227,
-0.02027176320552826,
0.022765077650547028,
-0.018455808982253075,
-0.01959594339132309,
0.0037510411348193884,
-0.06643372774124146,
-0.0025766585022211075,
-0.026596536859869957,
-0.015623921528458595,
0.039254672825336456,
-0.0025702775456011295,
-0.052631277590990067,
0.07991056144237518,
-0.005038795992732048,
0.010442945174872875,
-0.012882089242339134,
-0.0012620686320587993,
0.007788519375026226,
0.02346176840364933,
0.049359168857336044,
-0.00040815529064275324,
0.021660804748535156,
0.0014981839340180159,
0.007863559760153294,
-0.031169507652521133,
0.012894236482679844,
0.013221653178334236,
-0.010855572298169136,
0.017510728910565376,
0.015759212896227837,
0.01835567317903042,
-0.012852743268013,
0.005880618933588266,
-0.0028820838779211044,
-0.0458369255065918,
-0.010718920268118382,
0.039443060755729675,
0.01986142061650753,
0.011327355168759823,
-0.022958453744649887,
-0.04831104725599289,
0.008409346453845501,
-0.008953290991485119,
-0.013426650315523148,
0.002514728344976902,
0.021087361499667168,
0.087363600730896,
-0.025418322533369064,
-0.026341287419199944,
-0.0004757226270157844,
-0.03437242656946182,
0.006578725762665272,
-0.00836391281336546,
0.00437195086851716,
0.006921727210283279,
-0.008850510232150555,
-0.01636451855301857,
0.02841869182884693,
0.03385542333126068,
-0.028889978304505348,
-0.03339243680238724,
0.013375537469983101,
0.0011898422380909324,
0.014821036718785763,
0.016202792525291443,
-0.0036961426958441734,
-0.041412852704524994,
-0.01745467819273472,
0.008367002941668034,
-0.007496339734643698,
0.015104240737855434,
-0.07032621651887894,
-0.018450187519192696,
-0.01634656824171543,
-0.017997201532125473,
0.02537543885409832,
-0.0018285977421328425,
-0.043898746371269226,
-0.027899479493498802,
0.01750260218977928,
0.04988986998796463,
-0.013264904730021954,
-0.05670170485973358,
0.005546208471059799,
-0.05265350267291069,
-0.02243637479841709,
-0.006998724769800901,
-0.047256771475076675,
0.025616945698857307,
-0.006454050075262785,
0.06296898424625397,
0.0484820194542408,
0.026915570721030235,
-0.02437356859445572,
-0.012340513989329338,
0.00459414953365922,
0.031036660075187683,
-0.024369124323129654,
-0.012220981530845165,
0.0032962060067802668,
-0.03559497371315956,
0.004568231292068958,
0.00828191265463829,
-0.022569986060261726,
-0.006712358444929123,
0.006988143548369408,
-0.03159024193882942,
0.019802020862698555,
0.026455746963620186,
-0.02910400554537773,
-0.021915238350629807,
-0.007187859155237675,
0.02035221830010414,
-0.019485652446746826,
0.010477479547262192,
-0.014805744402110577,
0.0023668743669986725,
-0.048639461398124695,
-0.013111870735883713,
-0.0029456650372594595,
-0.01807432994246483,
0.0023349381517618895,
0.015065393410623074,
0.03593334183096886,
-0.03246232122182846,
0.0016695233061909676,
0.039292775094509125,
-0.020808234810829163,
0.003000538796186447,
-0.04200008884072304,
0.007219687569886446,
0.00875052623450756,
-0.021529465913772583,
0.035011522471904755,
0.06483017653226852,
0.017048880457878113,
0.033376988023519516,
0.0421300008893013,
-0.006381752900779247,
0.010537400841712952,
-0.013285692781209946,
0.022595999762415886,
0.02442813292145729,
-0.06078760325908661,
-0.018529951572418213,
-0.029124990105628967,
0.009798593819141388,
-0.011153874918818474,
0.006438604090362787,
0.02685215324163437,
0.05599042400717735,
0.01214960590004921,
0.009583746083080769,
-0.018866030499339104,
-0.006149627268314362,
0.01853347383439541,
-0.034968141466379166,
-0.008386439643800259,
0.023564903065562248,
0.017455916851758957,
0.028782980516552925,
0.008358970284461975,
0.016929524019360542,
0.0043068514205515385,
-0.02696368098258972,
-0.0899757370352745,
0.003942097071558237,
0.00593304168432951,
-0.026038849726319313,
0.001313939574174583,
-0.004916229285299778,
-0.002652046736329794,
0.0075888605788350105,
0.0011236229911446571,
-0.03458097204566002,
0.0046648308634757996,
0.03226259723305702,
-0.005622300785034895,
-0.021765176206827164,
-0.03103751130402088,
0.0583399198949337,
0.02151280641555786,
0.020497456192970276,
0.0254560187458992,
-0.007958047091960907,
0.029099419713020325,
0.0024819981772452593,
0.034101203083992004,
0.00870297010987997,
0.012322606518864632,
0.060449518263339996,
-0.010458669625222683,
0.040290459990501404,
0.04495939612388611,
-0.047029100358486176,
-0.032417792826890945,
-0.01146768033504486,
-0.014006505720317364,
-0.016704289242625237,
0.011186044663190842,
0.0002664927451405674,
-0.012972722761332989,
0.005230167414993048,
0.006576524581760168,
0.034180521965026855,
0.04451603814959526,
0.007496232632547617,
-0.01889287680387497,
0.04908836632966995,
0.024109123274683952,
0.013189521618187428,
0.03859290853142738,
-0.018993448466062546,
-0.03241030126810074,
0.001228058012202382,
0.041134633123874664,
0.0031157545745372772,
0.022775329649448395,
0.011728271842002869,
-0.004681187216192484,
0.03349050134420395,
-0.04456174001097679,
0.005852339323610067,
-0.0077975476160645485,
-0.0407136045396328,
0.003187983762472868,
0.015157385729253292,
-0.0019769167993217707,
-0.02038208581507206,
-0.0015291125746443868,
-0.03284500539302826,
0.0011579262791201472,
0.01708509773015976,
-0.016184136271476746,
-0.011379188857972622,
0.023834163323044777,
-0.028036117553710938,
-0.007545302156358957,
0.017249975353479385,
-0.06816829741001129,
0.004471964668482542,
-0.013501276262104511,
-0.03527707979083061,
-0.03721805289387703,
-0.03146453574299812,
0.01070356834679842,
-0.0017480256501585245,
-0.026128187775611877,
-0.0061791143380105495,
-0.07731427252292633,
0.03423648700118065,
0.04886994883418083,
-0.002021005842834711,
0.018981527537107468,
0.0235268697142601,
0.03380415588617325,
-0.04353830963373184,
-0.0076198820024728775,
-0.022256968542933464,
-0.03285973146557808,
-0.004807355348020792,
-0.05533195659518242,
0.008660376071929932,
0.024931905791163445,
0.03610095754265785,
0.01703166402876377,
0.08749966323375702,
0.0004774907720275223,
-0.002472296357154846,
0.001384424394927919,
0.03225903585553169,
-0.007283627055585384,
0.056160468608140945,
0.015983862802386284,
-0.016195110976696014,
0.005856215488165617,
-0.023802747949957848,
0.0191305223852396,
-0.009036878123879433,
0.02451038546860218,
0.05786989629268646,
0.014787881635129452,
-0.038714177906513214,
0.02010463736951351,
0.0373525433242321,
0.05677461624145508,
0.050787925720214844,
-0.0015997255686670542,
0.017906365916132927,
-0.03279238939285278,
0.006902692839503288,
0.0172642283141613,
-0.024434998631477356,
-0.0007389056263491511,
-0.02065553329885006,
-0.0637219175696373,
-0.04852810874581337,
0.00008964286826085299,
0.02161996439099312,
0.045787762850522995,
-0.042586423456668854,
0.035340506583452225,
-0.016448356211185455,
0.0070993839763104916,
-0.050794124603271484,
0.01829913817346096,
0.03569039702415466,
0.030776340514421463,
-0.010709566995501518,
-0.053860411047935486,
0.02006685733795166,
0.014766012318432331,
0.0268605574965477,
0.015403561294078827,
0.042845241725444794,
-0.029125628992915154,
0.0014956281520426273,
-0.04500395432114601,
-0.018854819238185883,
0.03329276293516159,
-0.014123719185590744,
0.014810804277658463,
0.028670871630311012,
0.002536125248298049,
-0.021296141669154167,
0.02630985900759697,
0.038269683718681335,
-0.01961946301162243,
0.030184229835867882,
-0.04926750808954239,
0.01675472781062126,
-0.015883486717939377,
0.0061221071518957615,
-0.051363490521907806,
0.019882865250110626,
-0.008717123419046402,
0.013393500819802284,
0.024102497845888138,
0.007937386631965637,
0.005523375701159239,
-0.001418098108842969,
0.010386197827756405,
0.0007507339469157159,
-0.01448680367320776,
-0.04480431601405144,
-0.02000557817518711,
-0.04190078005194664,
0.03069835528731346,
0.005262118298560381,
-0.0157625675201416,
0.012400854378938675,
0.020742429420351982,
0.005932189989835024,
-0.004089709836989641,
-0.001315565430559218,
0.007945963181555271,
0.0059168413281440735,
0.025571933016180992,
-0.02370440773665905,
0.05855003371834755,
0.0030232162680476904,
-0.0323331393301487,
-0.06141350790858269,
0.008946426212787628
] |
Introducing Snowball Fight ☃️, our First ML-Agents Environment | ThomasSimonini | December 2, 2021 | snowball-fight | research, rl | https://huggingface.co/blog/snowball-fight | Conclusion We're excited to see what you're working on with ML-Agents and how we can build features and tools that help you to empower your work. Don't forget to join our discord server to be alerted of the new features. | [
0.07485973834991455,
-0.04178069904446602,
0.09909028559923172,
0.023062610998749733,
0.10072650760412216,
0.01592586375772953,
0.01081190723925829,
0.047568999230861664,
-0.037054821848869324,
-0.08497922867536545,
-0.05813795328140259,
0.02850709855556488,
0.016608426347374916,
0.0333617739379406,
0.01012177113443613,
-0.014242389239370823,
0.05515982583165169,
0.018649974837899208,
-0.011766865849494934,
0.005819311831146479,
-0.04108419641852379,
-0.01179913617670536,
0.08070219308137894,
-0.04348050430417061,
-0.008199303410947323,
0.0008510858751833439,
0.05948491394519806,
-0.009503938257694244,
-0.08537185937166214,
0.03026469424366951,
-0.04262489452958107,
-0.007506996393203735,
0.0037568353582173586,
0.022734351456165314,
-0.03069915808737278,
0.04797699302434921,
-0.12012430280447006,
0.03529312089085579,
0.011626026593148708,
-0.03700137883424759,
-0.0034154716413468122,
-0.050189532339572906,
-0.11430075019598007,
0.07344254851341248,
-0.05091021582484245,
-0.013732641004025936,
-0.23825712502002716,
0.04052538797259331,
-0.033128198236227036,
-0.022200461477041245,
-0.05155038833618164,
0.06489308178424835,
-0.0184028223156929,
-0.016262684017419815,
0.017660219222307205,
0.014372311532497406,
0.024827968329191208,
-0.04565875977277756,
0.00815014448016882,
0.008049914613366127,
0.03346480429172516,
-0.014305809512734413,
0.02305203303694725,
0.02901388518512249,
0.011766859330236912,
0.013396388851106167,
0.07910920679569244,
-0.03873790428042412,
-0.055711131542921066,
-0.0029043923132121563,
0.021553199738264084,
-0.007329495158046484,
-0.05616580694913864,
-0.03649819269776344,
0.045612260699272156,
-0.025444485247135162,
-0.031336188316345215,
0.048888545483350754,
0.034496910870075226,
0.012260078452527523,
0.013303079642355442,
0.011357500217854977,
0.10320514440536499,
0.0197495948523283,
-0.007748558185994625,
-0.018943844363093376,
0.05267774686217308,
-0.0465526320040226,
-0.005860455799847841,
0.05271349847316742,
0.013639367185533047,
-0.14440779387950897,
0.03489774093031883,
0.03694901242852211,
0.087516650557518,
-0.02950211800634861,
0.01191358920186758,
0.04116174951195717,
-0.0442078523337841,
-0.034514084458351135,
-0.04222611337900162,
-0.02091447077691555,
-0.015545754693448544,
-0.06609469652175903,
-0.03570041060447693,
0.008449338376522064,
-0.0044026984833180904,
-0.06561364978551865,
-0.06421998143196106,
0.016402848064899445,
-0.0029913538601249456,
0.03519816696643829,
0.008262591436505318,
0.029651863500475883,
-0.029050512239336967,
0.050502900034189224,
0.0027549955993890762,
0.00033918622648343444,
-0.014179199934005737,
0.03474985808134079,
0.03765712305903435,
0.05639103427529335,
0.04402223229408264,
0.06905315816402435,
-0.023205548524856567,
0.012858030386269093,
-0.03032064251601696,
0.015779491513967514,
-0.015650702640414238,
-0.09885025769472122,
0.010098881088197231,
-0.0312142763286829,
0.009054210036993027,
0.013927233405411243,
-0.01739470474421978,
-0.06957922875881195,
-0.027938881888985634,
-0.07729323953390121,
0.028314491733908653,
0.019444825127720833,
-0.052907515317201614,
0.007078438065946102,
0.011172276921570301,
0.09519676864147186,
0.05918777734041214,
-0.021556280553340912,
-0.07055379450321198,
0.024783814325928688,
-0.06999711692333221,
0.03755657374858856,
-0.048800770193338394,
0.0176021009683609,
-0.026435518637299538,
-0.03428710624575615,
-0.0022520283237099648,
0.041970234364271164,
0.01177942380309105,
-0.009294689632952213,
-0.03821708634495735,
-0.021248187869787216,
0.021421723067760468,
0.01164487935602665,
0.020048899576067924,
0.021530477330088615,
0.03780229017138481,
0.015825247392058372,
0.003081193193793297,
0.014927470125257969,
0.008512451313436031,
-0.021964652463793755,
-0.0125935859978199,
-0.01894558034837246,
0.0800265371799469,
-0.020889228209853172,
0.04548860341310501,
0.04610871523618698,
0.05327296629548073,
0.047364987432956696,
-0.024948110803961754,
-0.01781405694782734,
-0.047272276133298874,
0.058908432722091675,
-0.025141196325421333,
-0.0063975052908062935,
0.00847999844700098,
-0.05691467225551605,
0.070942223072052,
-0.0521232895553112,
0.024510735645890236,
0.017176402732729912,
-0.03978612273931503,
0.0028606185223907232,
0.09810236096382141,
-0.01596304588019848,
0.046737149357795715,
-0.013818297535181046,
-0.06104525178670883,
0.1488347351551056,
0.02857646904885769,
0.06438329815864563,
0.07915692776441574,
0.02254941500723362,
0.018618719652295113,
-0.03982691094279289,
-0.01107613742351532,
0.03986015170812607,
0.05976313352584839,
-0.02480914257466793,
-0.014935976825654507,
0.01562521979212761,
-0.013578829355537891,
-0.09915300458669662,
0.02210632897913456,
-0.05886848270893097,
0.008466590195894241,
0.01922941580414772,
-0.029056577011942863,
0.005881338380277157,
-0.010377517901360989,
-0.039919134229421616,
0.1837770640850067,
-0.06296411156654358,
-0.0033539102878421545,
0.0451073944568634,
-0.0001275393005926162,
0.08878867328166962,
0.10362624377012253,
0.017847556620836258,
0.09919317066669464,
-0.050149429589509964,
-0.06145208328962326,
-0.025724317878484726,
-0.03574209660291672,
0.042227476835250854,
-0.021636726334691048,
0.031123675405979156,
0.02174285799264908,
-0.03672582283616066,
0.01899111643433571,
-0.004797438625246286,
-0.029959456995129585,
-0.04554710537195206,
0.02855229191482067,
0.08788450807332993,
-0.0012150438269600272,
-0.02970324456691742,
0.06511140614748001,
0.02200082130730152,
-0.03747951611876488,
0.0035340168979018927,
-0.07673662155866623,
0.024980664253234863,
-0.021722543984651566,
-0.046142131090164185,
0.0717804804444313,
0.008108895272016525,
0.00000379940502170939,
-0.0321185365319252,
-0.04278630018234253,
0.016169173642992973,
-0.0069236052222549915,
-0.03590952605009079,
-0.01774483174085617,
-0.04671349376440048,
0.01888227090239525,
-0.0377766489982605,
-0.026508944109082222,
-0.023356981575489044,
0.0016575410263612866,
0.03572584688663483,
0.025756346061825752,
-0.013751405291259289,
0.014709537848830223,
0.0003241402155254036,
0.005624866113066673,
0.014936970546841621,
0.033694252371788025,
-0.04210439324378967,
-0.01107852254062891,
-0.03271089866757393,
-0.008807092905044556,
-0.03559627756476402,
0.060009416192770004,
0.07233577966690063,
0.020317958667874336,
-0.024539675563573837,
-0.03895946219563484,
-0.00004193726272205822,
-0.02397744730114937,
-0.0029935180209577084,
-0.011229963973164558,
-0.009127715602517128,
-0.0005780640640296042,
-0.01954212598502636,
0.00182289257645607,
-0.04412909969687462,
0.004528566263616085,
0.031745925545692444,
-0.02000392973423004,
0.014270074665546417,
-0.00471818121150136,
0.006471545901149511,
0.010452778078615665,
-0.016391364857554436,
-0.015305254608392715,
0.04647628962993622,
0.02479858137667179,
0.01361298281699419,
-0.12475575506687164,
-0.05459074676036835,
0.02030300348997116,
0.061117567121982574,
-0.008872530423104763,
-0.03842634707689285,
0.019657915458083153,
-0.03359197825193405,
-0.021987542510032654,
-0.021692993119359016,
-0.013137059286236763,
-0.0028152798768132925,
0.027398424223065376,
0.009154831990599632,
-0.05733927711844444,
-0.0011139032430946827,
-0.008593250066041946,
0.010893656872212887,
0.04586948826909065,
0.0037784790620207787,
-0.03897912800312042,
0.09000303596258163,
0.004048153292387724,
-0.0020266876090317965,
-0.024489082396030426,
0.030273841693997383,
0.04061761498451233,
0.06267248839139938,
0.02696596458554268,
-0.0038916422054171562,
-0.03882274776697159,
-0.009550245478749275,
-0.04259432852268219,
0.008890473283827305,
-0.030417844653129578,
0.0016475627198815346,
-0.00695642689242959,
0.003887524362653494,
0.009059201925992966,
-0.0022310500498861074,
0.015100707300007343,
-0.007789366878569126,
0.01808503083884716,
-0.0020206936169415712,
-0.006335641723126173,
0.0030556321144104004,
0.00027436119853518903,
0.005023482255637646,
0.056921329349279404,
-0.02589697763323784,
0.0007735498365946114,
-0.009490716271102428,
0.01526533905416727,
0.06720773875713348,
-0.001976303057745099,
-0.007396585773676634,
-0.010568376630544662,
0.020785845816135406,
0.016431467607617378,
-0.0020579916890710592,
-0.01499217189848423,
0.030030544847249985,
0.0220237635076046,
-0.010229497216641903,
-0.04390321671962738,
0.03656904399394989,
-0.0028246715664863586,
-0.03519449755549431,
-0.003961313050240278,
0.00984614435583353,
0.019635405391454697,
0.03730275109410286,
0.03458373248577118,
0.0061148288659751415,
0.011454484425485134,
0.0334797166287899,
0.002766606630757451,
-0.025414390489459038,
0.07071489095687866,
0.03636324778199196,
0.0011235317215323448,
-0.031870707869529724,
-0.009171400219202042,
-0.016660435125231743,
-0.0003830254136119038,
0.008352594450116158,
-0.006475626491010189,
0.024388719350099564,
-0.03496978059411049,
0.04198073223233223,
0.026536228135228157,
-0.03957270830869675,
0.048997603356838226,
0.003258196637034416,
0.027960842475295067,
0.039346423000097275,
0.025128424167633057,
-0.01199436467140913,
0.011944998987019062,
0.004120483994483948,
0.004474145360291004,
-0.030836984515190125,
0.006065313704311848,
-0.0021793514024466276,
0.004085671156644821,
0.05201016739010811,
-0.05148223415017128,
-0.024197358638048172,
0.024209285154938698,
-0.02090260572731495,
0.03776939958333969,
-0.025866713374853134,
-0.010404777713119984,
-0.0017829001881182194,
0.0033287592232227325,
0.053348734974861145,
0.0037420657463371754,
-0.014505884610116482,
-0.03136344999074936,
0.014581974595785141,
-0.06548473238945007,
-0.015919599682092667,
0.012284303084015846,
0.006808685138821602,
0.013066698797047138,
0.0015872775111347437,
-0.003968860488384962,
-0.018542321398854256,
-0.0007250443450175226,
-0.009506233967840672,
-0.019801553338766098,
-0.03182829171419144,
-0.0015324900159612298,
0.021170515567064285,
0.016930850222706795,
0.028155043721199036,
-0.013058220036327839,
0.0660029947757721,
-0.02111143246293068,
-0.055475253611803055,
-0.0017710226820781827,
0.0004176227666903287,
0.04182567074894905,
-0.02947578951716423,
0.019348427653312683,
-0.024633314460515976,
-0.043556664139032364,
-0.005409276112914085,
-0.012703465297818184,
0.005930811632424593,
0.017925312742590904,
-0.012324239127337933,
-0.03153643757104874,
-0.015306497924029827,
0.0152138015255332,
-0.010357609018683434,
-0.03233926370739937,
0.00725303590297699,
-0.010877588763833046,
0.05252488702535629,
0.00170710904058069,
0.0031923067290335894,
-0.017209146171808243,
-0.0022661564871668816,
0.005014014896005392,
0.011758575215935707,
-0.01230688113719225,
-0.03831453621387482,
-0.0017856706399470568,
0.0039879861287772655,
-0.02802347019314766,
0.031165430322289467,
0.0002623852633405477,
-0.015598506666719913,
0.009339201264083385,
0.019830258563160896,
0.037849657237529755,
0.02864800952374935,
0.009288018569350243,
0.0031754246447235346,
-0.019202107563614845,
0.00934642180800438,
-0.00330505333840847,
-0.017458869144320488,
-0.002684398554265499,
0.006576398853212595,
0.06273797154426575,
0.011678663082420826,
0.02218109369277954,
0.029038114473223686,
-0.022447854280471802,
0.02650495618581772,
-0.012605481781065464,
-0.030740804970264435,
0.02067655511200428,
-0.026015257462859154,
0.045855291187763214,
0.0029179539997130632,
-0.0029314167331904173,
0.021507777273654938,
0.020276788622140884,
0.04558967798948288,
-0.024831363931298256,
-0.010296217165887356,
0.019163744524121284,
0.03459111228585243,
0.006109023932367563,
-0.00986590888351202,
-0.0027608207892626524,
-0.04117666929960251,
0.003523959079757333,
0.013275146484375,
0.0063706133514642715,
-0.017918527126312256,
0.006994379218667746,
-0.07832484692335129,
-0.02172805182635784,
0.027103247120976448,
0.012218425050377846,
0.04131272807717323,
-0.0006358641549013555,
-0.012406283058226109,
-0.02977086417376995,
0.03128150850534439,
0.012542631477117538,
-0.03349876403808594,
-0.02496807835996151,
0.07119817286729813,
-0.0016117750201374292,
0.009072324261069298,
0.07983187586069107,
-0.0026871878653764725,
0.010961433872580528,
0.009460825473070145,
0.007675123400986195,
-0.004762642085552216,
-0.059946078807115555,
0.049953822046518326,
0.005747280083596706,
-0.030405843630433083,
-0.019080527126789093,
-0.04058007895946503,
-0.05410296469926834,
-0.03186991438269615,
-0.04316823184490204,
0.0354590080678463,
0.037566181272268295,
-0.007765081245452166,
0.0029498368967324495,
-0.0020909439772367477,
-0.004196668043732643,
0.027517184615135193,
-0.008549381978809834,
-0.0027784290723502636,
0.026320111006498337,
0.028356702998280525,
0.023729782551527023,
0.004277348984032869,
0.0008158890996128321,
-0.03530735895037651,
-0.006446675397455692,
-0.07417666912078857,
0.01922428421676159,
-0.002645527245476842,
-0.013100244104862213,
0.030422940850257874,
0.025615474209189415,
-0.03375917673110962,
0.02403770014643669,
0.01994161494076252,
-0.005932509433478117,
0.01700512133538723,
0.02420847862958908,
-0.005577180068939924,
-0.005508557893335819,
-0.034398987889289856,
0.01945512741804123,
0.04608837887644768,
-0.009593348950147629,
0.024784287437796593,
0.016039250418543816,
0.07396697998046875,
0.023505695164203644,
0.028158264234662056,
-0.0037272756453603506,
0.008839286863803864,
0.054648857563734055,
-0.0011714574648067355,
0.050112850964069366,
0.036594633013010025,
-0.003498355858027935,
-0.03638990595936775,
-0.0016699449624866247,
-0.006700970698148012,
-0.03420480340719223,
0.017462514340877533,
0.05024171993136406,
-0.0032490980811417103,
-0.005798073951154947,
-0.019587090238928795,
0.049138475209474564,
0.018862586468458176,
0.014106378890573978,
0.013671423308551311,
-0.0019962608348578215,
0.022665567696094513,
0.01714545674622059,
0.03288765624165535,
0.022978756576776505,
-0.02002403326332569,
0.022356776520609856,
0.04865669086575508,
0.032511088997125626,
0.011763554066419601,
-0.012530971318483353,
-0.01904047280550003,
0.029303930699825287,
-0.044694576412439346,
0.015513441525399685,
-0.01675204187631607,
-0.0007081286748871207,
-0.002582635497674346,
-0.03388732299208641,
0.011276493780314922,
-0.039700135588645935,
-0.04836920276284218,
0.0000884670953382738,
0.01777874492108822,
0.023229077458381653,
-0.02532786689698696,
-0.02197352796792984,
0.035056497901678085,
0.005084013566374779,
-0.02311454527080059,
-0.018871169537305832,
-0.008864966221153736,
0.04536234959959984,
0.018336400389671326,
-0.03289848938584328,
-0.025940250605344772,
-0.026437388733029366,
0.010021227411925793,
-0.019760504364967346,
0.0029722729232162237,
-0.012276189401745796,
-0.014014499261975288,
0.023601047694683075,
0.03021213784813881,
-0.018049530684947968,
0.03511553630232811,
0.03840436041355133,
0.009475837461650372,
-0.01922472007572651,
0.027257811278104782,
-0.0312177874147892,
-0.027022479102015495,
-0.03868876025080681,
-0.03165967017412186,
-0.020038537681102753,
-0.02970218099653721,
0.0016915173036977649,
0.019380807876586914,
0.021851669996976852,
-0.013030186295509338,
0.0033844467252492905,
0.021808376535773277,
0.011332078836858273,
-0.007205225061625242,
0.021707477048039436,
-0.0008712645503692329,
-0.025693833827972412,
0.0005205779452808201,
0.004860301967710257,
0.00939412135630846,
-0.017987780272960663,
0.04103389009833336,
0.03376772254705429,
-0.016771605238318443,
-0.03511212021112442,
-0.0034821610897779465,
0.07094773650169373,
0.034025661647319794,
0.024469668045639992,
0.011228669434785843,
0.02193884551525116,
-0.016211379319429398,
-0.04519695043563843,
0.016993900761008263,
-0.0039550429210066795,
-0.00428410992026329,
-0.015319877304136753,
-0.024257799610495567,
-0.030278507620096207,
-0.022442787885665894,
0.001336288871243596,
-0.005530436057597399,
-0.057333387434482574,
0.003361973213031888,
-0.009106459096074104,
0.000816694984678179,
-0.061635572463274,
-0.013401455245912075,
0.06996523588895798,
0.01026766188442707,
0.019132977351546288,
-0.027186401188373566,
-0.013319568708539009,
-0.0048331464640796185,
0.009460191242396832,
0.04175981879234314,
-0.00018073234241455793,
0.007139827124774456,
-0.030154097825288773,
-0.008056452497839928,
0.014327337965369225,
-0.053244493901729584,
-0.047820430248975754,
0.013744167052209377,
0.03456483781337738,
0.00878484733402729,
-0.039237309247255325,
0.016912447288632393,
-0.011106384918093681,
-0.015322331339120865,
0.012712923809885979,
-0.007834253832697868,
-0.030075810849666595,
-0.016115665435791016,
-0.017586443573236465,
-0.04953017458319664,
-0.006926761474460363,
-0.00017386054969392717,
-0.007382302079349756,
0.04653196409344673,
0.0154971182346344,
-0.015572236850857735,
0.0007956547779031098,
-0.04561576247215271,
0.025220302864909172,
-0.02386491559445858,
-0.05622653290629387,
-0.036094486713409424,
-0.00940927118062973,
-0.0013319627614691854,
-0.011627632193267345,
-0.035209059715270996,
0.03639569133520126,
0.009602094069123268,
-0.02223542518913746,
-0.020028021186590195,
0.01500978134572506,
0.02472703345119953,
0.023523030802607536,
0.03471953049302101,
-0.012527420185506344,
0.07712201029062271,
0.037495844066143036,
-0.0030768520664423704,
-0.02031412348151207,
-0.004214440006762743
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Summary In this short blog post we walked through all the steps involved for training a large GPT-2 model called CodeParrot 🦜 for code generation. Using 🤗 Accelerate we built a training script with less than 200 lines of code that we can effortlessly scale across many GPUs. With that you can now train your own GPT-2 model! This post gives a brief overview of CodeParrot 🦜, but if you are interested in diving deeper into how to pretrain this models, we recommend reading its dedicated chapter in the upcoming book on Transformers and NLP. This chapter provides many more details around building custom datasets, design considerations when training a new tokenizer, and architecture choice. | [
0.03647464141249657,
-0.0366392582654953,
0.00005939164475421421,
-0.011446202173829079,
0.007460079155862331,
0.011478125117719173,
0.03145524859428406,
-0.01221560686826706,
0.04694490507245064,
-0.003244857070967555,
-0.062406737357378006,
0.011712598614394665,
-0.007378027308732271,
0.07167802006006241,
0.0404815673828125,
-0.025935811921954155,
0.006478177383542061,
-0.04998742416501045,
-0.04373490810394287,
-0.0020871476735919714,
-0.012020345777273178,
-0.02452528290450573,
0.02577735297381878,
0.02295846864581108,
0.004727097228169441,
0.008650677278637886,
0.03154798969626427,
0.008425034582614899,
0.04863704368472099,
0.026443950831890106,
-0.0918784961104393,
-0.0018281537340953946,
-0.01713232882320881,
-0.03755572438240051,
-0.00721514830365777,
-0.014399788342416286,
-0.08587116748094559,
0.04077715799212456,
0.09499016404151917,
-0.06091888248920441,
0.008286552503705025,
0.022687289863824844,
-0.04511677473783493,
0.015916936099529266,
0.0190669447183609,
0.025278277695178986,
-0.16750840842723846,
0.060552287846803665,
-0.0005945116863586009,
-0.08853548765182495,
-0.05676525831222534,
0.08737964183092117,
-0.07568615674972534,
0.0036617545410990715,
-0.0036499991547316313,
0.06168479099869728,
-0.031189920380711555,
-0.06764407455921173,
-0.02055462822318077,
-0.0049638813361525536,
0.017896929755806923,
0.024159027263522148,
-0.003906683064997196,
0.05935148894786835,
0.039855338633060455,
-0.04560375586152077,
-0.0453568734228611,
0.05260232836008072,
-0.08775680512189865,
-0.04136877879500389,
0.04932365566492081,
-0.06173916533589363,
0.01617133617401123,
-0.07797607034444809,
-0.05848796293139458,
-0.044706765562295914,
0.015989650040864944,
0.04313919320702553,
0.06245424598455429,
0.05569372698664665,
-0.01975591853260994,
0.025626005604863167,
-0.00046205901890061796,
0.019671032205224037,
0.07285428792238235,
0.02168579027056694,
0.015094823203980923,
-0.0629044771194458,
-0.04389730095863342,
0.010020353831350803,
-0.0222543403506279,
-0.11429436504840851,
-0.03345010057091713,
0.017709799110889435,
0.04581187665462494,
0.03329039737582207,
-0.035571519285440445,
0.004516142886132002,
-0.025674190372228622,
0.0028368320781737566,
-0.01285968441516161,
-0.03776225820183754,
-0.008957279846072197,
-0.05696433410048485,
-0.0543861910700798,
0.026953846216201782,
-0.00014018462388776243,
-0.10313243418931961,
-0.05722514167428017,
0.032418541610240936,
0.018169648945331573,
-0.03507177531719208,
-0.01990298181772232,
0.04538716748356819,
-0.0579390674829483,
0.022090313956141472,
0.040066566318273544,
-0.05039973929524422,
-0.030550001189112663,
-0.007281276397407055,
-0.04297017678618431,
0.05889870971441269,
0.05992760509252548,
0.024076974019408226,
-0.025795653462409973,
0.07211186736822128,
0.016778094694018364,
-0.020489951595664024,
-0.04296393692493439,
-0.051487527787685394,
0.02063068374991417,
-0.0555759072303772,
0.007056848146021366,
-0.009379708208143711,
0.08069547265768051,
-0.026338890194892883,
-0.033950407058000565,
-0.03723713755607605,
0.023218976333737373,
0.019358018413186073,
-0.010214122012257576,
0.009193235076963902,
-0.003980339039117098,
-0.023839598521590233,
0.013733218424022198,
0.024658028036355972,
-0.05573879927396774,
0.05021774768829346,
-0.03538883104920387,
0.03913021832704544,
-0.13145942986011505,
0.09570382535457611,
-0.028017476201057434,
-0.05215280130505562,
0.11498381197452545,
0.053340598940849304,
-0.023073989897966385,
0.008885052055120468,
-0.0825459286570549,
-0.03722108155488968,
-0.0120918620377779,
-0.03542175143957138,
-0.02977783791720867,
-0.017633633688092232,
-0.03454304486513138,
-0.047119658440351486,
-0.021008901298046112,
0.03334054350852966,
0.03778616338968277,
0.044088538736104965,
-0.04796234890818596,
-0.032891951501369476,
0.05799619480967522,
-0.013640662655234337,
0.03952706605195999,
0.0066883619874715805,
0.06332388520240784,
0.06839138269424438,
0.04709664359688759,
-0.03942093253135681,
-0.05413876473903656,
0.052430953830480576,
0.030345948413014412,
0.0604594424366951,
0.03186867758631706,
-0.08949904143810272,
0.008803543634712696,
-0.06980320066213608,
-0.023375019431114197,
-0.01190976146608591,
-0.02128846012055874,
0.018856171518564224,
0.06436879932880402,
-0.03461083024740219,
0.03381693735718727,
-0.11818557232618332,
0.02066155895590782,
0.1042160615324974,
0.026663487777113914,
0.10925266146659851,
-0.013198529370129108,
-0.023055071011185646,
0.04172308370471001,
-0.03067154996097088,
0.00822342000901699,
-0.00006515393761219457,
-0.00266087194904685,
0.003296550130471587,
0.04340225085616112,
-0.012579766102135181,
-0.013338479213416576,
-0.1034545972943306,
-0.04099735617637634,
-0.0648815780878067,
0.00594720896333456,
0.0011174227111041546,
0.0036734966561198235,
0.05913610756397247,
0.06245443597435951,
0.015119550749659538,
0.175484761595726,
-0.021832184866070747,
-0.06483612954616547,
-0.012628782540559769,
-0.017937559634447098,
0.08160506933927536,
0.07145640254020691,
0.019656920805573463,
0.05918591096997261,
-0.06411474198102951,
-0.030075913295149803,
-0.09326732158660889,
-0.024027248844504356,
0.0309166070073843,
-0.007859502919018269,
0.025302046909928322,
0.003219994716346264,
-0.012124559842050076,
0.002190581290051341,
-0.047941066324710846,
-0.04999120533466339,
0.01704268343746662,
-0.041838500648736954,
0.018394827842712402,
0.022868305444717407,
0.01927882805466652,
0.0465996190905571,
0.00989906582981348,
0.034532330930233,
-0.038330964744091034,
-0.0606846921145916,
0.033126410096883774,
0.003374050371348858,
-0.058175038546323776,
-0.015285779722034931,
0.015558750368654728,
0.001869261497631669,
-0.026857733726501465,
-0.03633512929081917,
-0.014001801609992981,
-0.02198992297053337,
0.010508154518902302,
-0.05909183621406555,
-0.027096571400761604,
-0.008217277005314827,
-0.043313249945640564,
-0.007069574669003487,
0.011129583232104778,
0.005913116969168186,
-0.04385368525981903,
-0.013907384127378464,
-0.029895268380641937,
-0.008152540773153305,
0.008657334372401237,
-0.02179774083197117,
0.011004069820046425,
-0.004488919395953417,
-0.017285818234086037,
-0.0020457091741263866,
-0.007396083325147629,
-0.013980322517454624,
-0.035541560500860214,
-0.03807912766933441,
0.03509633243083954,
0.0287411417812109,
0.008078224025666714,
0.0023620680440217257,
-0.010661180131137371,
-0.01669112592935562,
0.0011801596265286207,
0.019726458936929703,
0.02358236163854599,
-0.011661353521049023,
-0.04087847098708153,
-0.002737930743023753,
-0.009433458559215069,
0.007086348719894886,
-0.03922496736049652,
0.022756043821573257,
0.05916207656264305,
0.0005173002136871219,
-0.0016848224913701415,
0.02142643928527832,
0.002109447494149208,
-0.02450685016810894,
0.03966502472758293,
0.01609986089169979,
0.056017085909843445,
-0.09300292283296585,
-0.03364205360412598,
-0.0243376474827528,
0.01794448308646679,
0.03070293553173542,
-0.016446245834231377,
0.01809401623904705,
-0.010121484287083149,
0.006855492480099201,
0.021171430125832558,
-0.012161444872617722,
0.0095876669511199,
0.01759176142513752,
0.007435606326907873,
-0.01517223659902811,
0.0019931523129343987,
-0.04678608104586601,
-0.017430473119020462,
0.05078347772359848,
0.04016624391078949,
-0.022798359394073486,
0.004134718328714371,
-0.0027043537702411413,
0.018895477056503296,
0.0018266172846779227,
-0.01620454341173172,
0.018094884231686592,
-0.0035930569283664227,
0.01983889751136303,
0.024728083983063698,
-0.04880693554878235,
-0.03182272985577583,
-0.040936268866062164,
0.04196431115269661,
-0.01844407059252262,
-0.00639788992702961,
-0.012081116437911987,
0.035806331783533096,
-0.018039904534816742,
0.0416068509221077,
0.01860831305384636,
-0.0534234382212162,
0.03612259775400162,
-0.017268097028136253,
0.04548414424061775,
-0.02907891944050789,
0.0039042443968355656,
0.010008038021624088,
0.03158983960747719,
-0.06423840671777725,
-0.014370483346283436,
-0.00672562513500452,
0.02082573063671589,
0.013991146348416805,
0.012440301477909088,
-0.026472030207514763,
-0.005848378408700228,
0.04888678714632988,
0.05035165697336197,
0.0008282915805466473,
-0.019551601260900497,
-0.03212321922183037,
0.03877362236380577,
-0.02785877138376236,
-0.015810688957571983,
0.04524224251508713,
0.04439190775156021,
-0.023923376575112343,
0.0004309697251301259,
0.04409753158688545,
-0.023212332278490067,
0.02453693374991417,
-0.0019456911832094193,
0.0009575720760039985,
-0.03936861455440521,
0.03858623281121254,
-0.03266075626015663,
-0.01123025082051754,
0.057284727692604065,
0.02277558110654354,
-0.0017822111258283257,
-0.02523178607225418,
-0.06075003743171692,
-0.04452954977750778,
0.000827707932330668,
0.01760794222354889,
0.05107193812727928,
-0.04900253191590309,
0.062152985483407974,
0.020188814029097557,
0.023004846647381783,
-0.009398256428539753,
0.010522318072617054,
0.01236068457365036,
0.03038160316646099,
0.020897578448057175,
0.02423218823969364,
0.030211923643946648,
-0.0019466924713924527,
-0.009879288263618946,
0.02618424780666828,
-0.054108280688524246,
0.035881247371435165,
-0.018292974680662155,
-0.004611343611031771,
0.03300777077674866,
-0.004695909563452005,
-0.014335826970636845,
0.02205599658191204,
0.02111901342868805,
0.0039234100840985775,
-0.030639085918664932,
0.0046447645872831345,
-0.025408510118722916,
0.024969885125756264,
0.025190135464072227,
-0.005544229876250029,
0.011233448050916195,
-0.009585099294781685,
0.0431310310959816,
-0.04416897892951965,
0.03410487249493599,
0.013818996027112007,
0.003985534887760878,
0.034314244985580444,
0.032154954969882965,
0.029468312859535217,
-0.00644510705024004,
-0.0019470147090032697,
-0.0078039998188614845,
-0.018210045993328094,
-0.013332868926227093,
0.02587323822081089,
0.027265993878245354,
-0.04204672574996948,
0.021337389945983887,
-0.05292750149965286,
-0.007728539407253265,
0.019333411008119583,
-0.008443168364465237,
0.0058460235595703125,
-0.0031738814432173967,
0.035685885697603226,
0.005389233119785786,
0.027158861979842186,
-0.0110057033598423,
-0.0031554843299090862,
-0.006722758989781141,
-0.04723718762397766,
0.023927176371216774,
0.006172489374876022,
-0.005698990076780319,
-0.06758385896682739,
-0.007345575373619795,
0.012688766233623028,
-0.008870010264217854,
0.018496159464120865,
0.03141587972640991,
0.0065346453338861465,
0.028621137142181396,
-0.014731213450431824,
0.0001605967991054058,
-0.05335552990436554,
-0.0004327999777160585,
0.016607727855443954,
-0.007067682687193155,
-0.000990087864920497,
-0.047875113785266876,
-0.0002663118939381093,
-0.00893981009721756,
0.007112958002835512,
0.015817683190107346,
-0.006408808287233114,
-0.014310321770608425,
0.027878502383828163,
0.03825084865093231,
0.04147854447364807,
0.03908427804708481,
-0.03350553289055824,
-0.015658767893910408,
-0.01915106363594532,
-0.007982634007930756,
-0.014019671827554703,
-0.0030310992151498795,
-0.03441356495022774,
0.019673820585012436,
0.024206601083278656,
0.06687232106924057,
-0.012133301235735416,
0.006750134751200676,
-0.015272892080247402,
-0.02568690851330757,
0.017902053892612457,
-0.015580321662127972,
-0.02211882174015045,
-0.027619149535894394,
-0.0024342015385627747,
0.0566931813955307,
-0.03572854772210121,
-0.028242412954568863,
0.0034229590091854334,
0.05666342377662659,
-0.012667241506278515,
-0.033262141048908234,
0.047662001103162766,
0.03140353038907051,
-0.03978646546602249,
-0.03304396942257881,
0.0023252733517438173,
-0.012361234053969383,
-0.0062122163362801075,
0.012867451645433903,
-0.014208582229912281,
-0.048070069402456284,
-0.02778221294283867,
-0.002542566042393446,
-0.009091082960367203,
0.020800815895199776,
0.02122173272073269,
0.027480747550725937,
-0.027617374435067177,
-0.037451278418302536,
-0.00816260650753975,
0.005135021172463894,
0.013080901466310024,
-0.02369130775332451,
0.018622523173689842,
0.01257904153317213,
0.022797292098402977,
-0.007689507212489843,
0.019742410629987717,
0.004527260549366474,
-0.0040217856876552105,
0.06089495122432709,
0.01642882637679577,
-0.06296444684267044,
-0.04225341975688934,
0.037831783294677734,
-0.008038160391151905,
0.007611099164932966,
-0.0316995345056057,
-0.06886354088783264,
-0.026673369109630585,
-0.004031439311802387,
-0.05476639047265053,
0.009577304124832153,
0.030537020415067673,
0.0032723466865718365,
0.014719472266733646,
0.016400998458266258,
0.014730663038790226,
-0.0041569676250219345,
0.006651438307017088,
0.03508680313825607,
0.021070193499326706,
0.03502528741955757,
0.01498008519411087,
-0.023202169686555862,
0.01038926001638174,
0.03164925426244736,
0.059122052043676376,
-0.05596328526735306,
-0.0017172294901683927,
-0.002221768256276846,
0.00898286234587431,
-0.020337600260972977,
0.0002603790780995041,
-0.042488470673561096,
0.01931201107800007,
0.024964870885014534,
0.03834736719727516,
0.023715710267424583,
-0.02767866663634777,
0.02588403970003128,
0.006478177383542061,
-0.0014799708733335137,
0.026780791580677032,
0.03493350371718407,
0.002072838367894292,
0.0530368834733963,
0.007423131261020899,
0.02893254905939102,
0.06291694939136505,
0.0025658593513071537,
-0.0064279125072062016,
0.019753919914364815,
0.05705980956554413,
0.002797777997329831,
0.044347260147333145,
0.05529097095131874,
0.00046229164581745863,
-0.057532116770744324,
-0.03040245920419693,
-0.01765589416027069,
-0.04776583984494209,
0.01939285360276699,
0.05317156761884689,
-0.016696123406291008,
0.039182744920253754,
-0.02552839182317257,
0.07175378501415253,
0.05430280417203903,
0.04060838744044304,
-0.032657887786626816,
0.05274583399295807,
0.032788362354040146,
-0.005952257663011551,
0.04014987498521805,
0.0509270541369915,
0.024631435051560402,
-0.00675989268347621,
-0.015749800950288773,
0.022657454013824463,
0.04113965481519699,
0.04257139563560486,
0.010333009995520115,
0.05735878646373749,
-0.01770714297890663,
-0.014774535782635212,
0.013880278915166855,
0.005641487892717123,
0.011556968092918396,
-0.003410876961424947,
-0.012745562940835953,
-0.04074478521943092,
0.036254942417144775,
-0.041384585201740265,
-0.014968981966376305,
-0.02658519335091114,
-0.04641252011060715,
-0.041003890335559845,
-0.013380175456404686,
0.026226190850138664,
-0.020611407235264778,
-0.027977874502539635,
-0.0227297805249691,
0.026924287900328636,
0.036647967994213104,
-0.025618230924010277,
-0.01511030551046133,
-0.029199019074440002,
-0.008300544694066048,
-0.009642536751925945,
0.03562213480472565,
-0.0096878781914711,
0.011372149921953678,
0.03502620384097099,
0.025825483724474907,
-0.015551207587122917,
0.027980655431747437,
0.0517137311398983,
0.019307155162096024,
-0.04840569570660591,
0.026514597237110138,
0.012218926101922989,
-0.057797886431217194,
0.008224976249039173,
-0.05057008937001228,
0.0011691260151565075,
-0.022163592278957367,
-0.011393342167139053,
0.030215999111533165,
0.03799566999077797,
0.008594585582613945,
-0.05026930943131447,
-0.010363773442804813,
-0.007173654157668352,
-0.011348657310009003,
0.03160257637500763,
-0.013069219887256622,
-0.03418949991464615,
0.012219376862049103,
0.004536955617368221,
0.04295557737350464,
0.0022145139519125223,
-0.017848161980509758,
0.05889365077018738,
0.009260018356144428,
-0.006177003029733896,
0.008248617872595787,
0.06495428830385208,
0.0006661746301688254,
0.035103801637887955,
0.04285342991352081,
0.028341995552182198,
0.01739073172211647,
0.011257801204919815,
-0.014566639438271523,
-0.035110145807266235,
0.02244354784488678,
-0.008444499224424362,
-0.05081915110349655,
-0.03196491673588753,
0.03758624196052551,
-0.027479100972414017,
0.01469435915350914,
-0.022441672161221504,
-0.0006248235004022717,
-0.044340331107378006,
0.00948825292289257,
-0.006453296635299921,
0.010338996537029743,
0.0731334239244461,
0.008136412128806114,
0.05423109605908394,
-0.006253811065107584,
-0.006756914313882589,
0.012121517211198807,
-0.035058703273534775,
0.04788907989859581,
0.04694080352783203,
0.030583607032895088,
-0.003547829808667302,
-0.012749035842716694,
0.02602750062942505,
0.00039100050344131887,
-0.05561045929789543,
-0.027450891211628914,
-0.004741597454994917,
0.008404877968132496,
-0.0031808074563741684,
0.024715790525078773,
0.044639647006988525,
0.004539432004094124,
0.030939551070332527,
-0.01505699846893549,
-0.0000670065128360875,
0.015541390515863895,
0.013012954965233803,
-0.01947108469903469,
0.02414935827255249,
-0.046004001051187515,
-0.007059385068714619,
0.042867209762334824,
0.030079884454607964,
0.019025838002562523,
0.004980418831110001,
-0.014918526634573936,
0.04151448979973793,
0.05269068852066994,
-0.02433079108595848,
-0.02147996798157692,
-0.029460255056619644,
0.017606625333428383,
-0.015603723004460335,
0.004130088724195957,
0.05295553803443909,
0.0013487356482073665,
0.03373027592897415,
0.024234367534518242,
0.015968307852745056,
0.00802564062178135,
-0.016907647252082825,
0.029825326055288315,
0.011360942386090755,
0.034488167613744736,
0.04775029793381691,
-0.037756334990262985,
-0.022290322929620743,
-0.01004860084503889
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Results Let's start slow and check if we can prompt the model to write a function to return the size of a file given its path: Prompt: Python def get_files_size(filename): Completion: Python """ Returns the file size of a file. :param filepath: The path to the file. :type filepath: str :return: The file size. :rtype: int """ return os.path.getsize(filepath) So far so good, but let's take this a step further and try something a bit more interesting. One of the less exciting aspects of building production ready code is writing unittest. Let's see if we can use CodeParrot to do this for us! Prompt: Python def is_even(value): """Returns True if value is an even number.""" return value % 2 == 0 # setup unit tests for is_even import unittest Completion: Python class TestIsEven(unittest.TestCase): """Tests for is_even function.""" def test_is_even(self): """Test is_even function.""" self.assertTrue(is_even(0)) self.assertTrue(is_even(1)) self.assertTrue Although the test condition itself does not look quite right the model has built all the boilerplate code for us. This alone could already be quite useful and save us a couple of minutes time! But what we really want to do is build better transformer models. Let's use CodeParrot to help us do that: Prompt: Python from transformers import AutoTokenizer, AutoModelForSequenceClassification # build a BERT classifier Completion: Python tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased') model = AutoModelForSequenceClassification.from_pretrained('bert-base-uncased') Looking at a few examples is nice but by now you probably want to try it yourself. We prepared a few online demos just for that! | [
-0.0411536879837513,
-0.04443417489528656,
0.0072263688780367374,
0.0482291541993618,
0.04250377416610718,
0.09719321131706238,
0.04754083603620529,
0.009199991822242737,
-0.012417955324053764,
-0.0015554730780422688,
-0.06766299158334732,
0.003497494151815772,
0.015861518681049347,
0.04606469348073006,
0.03176413103938103,
0.011490779928863049,
0.09363874793052673,
0.017813602462410927,
-0.010414231568574905,
0.01365920715034008,
-0.0752984881401062,
-0.04318447411060333,
0.0677005797624588,
0.023988476023077965,
-0.007992652244865894,
-0.0472567155957222,
0.007905661128461361,
0.01830272376537323,
-0.004898876883089542,
0.051523737609386444,
-0.09972899407148361,
0.002451790263876319,
-0.0006356829544529319,
-0.05398568883538246,
-0.02153719775378704,
-0.012453597970306873,
-0.0391208715736866,
0.05066515877842903,
0.03421514853835106,
0.0010411316761747003,
0.02487875707447529,
0.019783901050686836,
-0.015309152193367481,
-0.015013009309768677,
-0.009617332369089127,
-0.023638922721147537,
-0.11774177104234695,
0.020524118095636368,
0.023360420018434525,
-0.014125930145382881,
0.005706013645976782,
0.08736313134431839,
-0.06539395451545715,
0.008264307864010334,
0.037566617131233215,
0.01813756488263607,
-0.012455103918910027,
-0.0851164385676384,
0.001490277936682105,
-0.022597424685955048,
-0.007772189099341631,
-0.012863419018685818,
-0.001876365509815514,
0.036887623369693756,
0.04730293154716492,
0.026929520070552826,
-0.007908432744443417,
0.01041114516556263,
-0.04345301166176796,
-0.0400422103703022,
-0.023632194846868515,
-0.026158565655350685,
-0.044044237583875656,
-0.006970742717385292,
-0.04082657769322395,
-0.054711803793907166,
0.06365523487329483,
0.014259014278650284,
0.007749028969556093,
0.07301956415176392,
-0.019095325842499733,
0.0212759617716074,
0.002987877232953906,
-0.020624469965696335,
0.03242336958646774,
0.01604842208325863,
0.009324811398983002,
-0.07608837634325027,
0.013483583927154541,
-0.007885701954364777,
-0.02809199132025242,
-0.13819783926010132,
-0.019449368119239807,
-0.02831842564046383,
0.033422887325286865,
0.004953909199684858,
-0.04882713034749031,
0.006632422562688589,
-0.0023672208189964294,
0.023701662197709084,
0.023652350530028343,
-0.058548957109451294,
-0.0013522676890715957,
-0.066713847219944,
-0.08244344592094421,
0.0278692077845335,
-0.03604010492563248,
-0.05955612286925316,
-0.07130872458219528,
0.011396908201277256,
0.03136412799358368,
-0.02975711040198803,
-0.053578708320856094,
0.05997373163700104,
-0.02998247928917408,
-0.0366387665271759,
-0.03921034559607506,
0.0126428147777915,
-0.06298112869262695,
0.04035497456789017,
-0.04685763269662857,
0.06888648122549057,
0.10417822748422623,
-0.02405027486383915,
0.010233620181679726,
0.017022043466567993,
0.008134865202009678,
0.08151348680257797,
0.04205574840307236,
-0.01959140971302986,
-0.012487534433603287,
-0.004841186106204987,
0.05033504217863083,
-0.01527151558548212,
0.009578689932823181,
0.029672587290406227,
-0.05887049809098244,
-0.0731402263045311,
-0.02493593469262123,
0.024128150194883347,
-0.010773951187729836,
0.06771665066480637,
-0.013493566773831844,
-0.023133156821131706,
0.030364498496055603,
0.015493452548980713,
-0.06341391801834106,
0.05816806107759476,
-0.04243715479969978,
0.046808015555143356,
-0.0879041850566864,
0.04998729005455971,
0.016855083405971527,
-0.018522506579756737,
-0.04967439919710159,
0.09177381545305252,
0.010581801645457745,
-0.024782340973615646,
-0.030838066712021828,
-0.038678888231515884,
0.011836033314466476,
0.042316220700740814,
-0.027488963678479195,
-0.022019052878022194,
0.042676690965890884,
-0.04602351784706116,
-0.016246484592556953,
-0.004473382607102394,
0.07642730325460434,
0.01607469841837883,
-0.02511245757341385,
-0.0070812092162668705,
0.10777220875024796,
0.004262363072484732,
0.011615854687988758,
0.027569882571697235,
0.07545504719018936,
-0.04685084521770477,
0.01092605385929346,
-0.057771120220422745,
-0.020582618191838264,
0.0995204970240593,
0.011201519519090652,
0.030402468517422676,
0.09115070104598999,
-0.06463782489299774,
0.062303271144628525,
-0.03560754284262657,
0.00904623419046402,
0.0135914022102952,
-0.023572366684675217,
-0.0538344532251358,
0.1034029871225357,
-0.014658240601420403,
-0.004919766914099455,
0.006865574978291988,
-0.006211608648300171,
0.07820525765419006,
-0.039267681539058685,
-0.027164964005351067,
0.013250496238470078,
-0.019353682175278664,
0.06777459383010864,
-0.06307990103960037,
0.021895550191402435,
0.04240749031305313,
-0.022520456463098526,
-0.04230130836367607,
0.0029345829971134663,
0.020074954256415367,
0.04124435782432556,
-0.056024108082056046,
0.04959641396999359,
-0.06791148334741592,
-0.04567817971110344,
-0.01721145398914814,
-0.047636911273002625,
-0.04741283506155014,
-0.010031064972281456,
-0.008329670876264572,
0.07848832756280899,
-0.05980339273810387,
-0.031136274337768555,
-0.051089975982904434,
-0.024445442482829094,
0.042331159114837646,
0.06373004615306854,
0.09809815883636475,
0.06315470486879349,
-0.1546226292848587,
-0.10830190032720566,
-0.10251322388648987,
-0.02494310773909092,
0.07090833783149719,
-0.04435316473245621,
0.034642595797777176,
0.010592573322355747,
-0.02546132728457451,
-0.031278710812330246,
-0.03406507521867752,
-0.014515104703605175,
0.037156641483306885,
0.03068089485168457,
0.03847856819629669,
-0.007206156849861145,
0.012660052627325058,
0.05702115595340729,
0.0016736803809180856,
0.008649586699903011,
0.018741915002465248,
-0.0791887566447258,
0.07874517887830734,
0.03077625297009945,
-0.06236211955547333,
-0.008010759018361568,
0.032626330852508545,
-0.0008616686100140214,
0.021823203191161156,
-0.008277212269604206,
0.04828914999961853,
0.0055600982159376144,
0.01854010298848152,
-0.06423508375883102,
-0.012255307286977768,
-0.009089738130569458,
-0.06127887964248657,
-0.03185872733592987,
0.016658708453178406,
0.057054273784160614,
0.030084144324064255,
0.0005881579709239304,
-0.019337119534611702,
-0.0027456164825707674,
0.019951796159148216,
0.02055799588561058,
0.04799051582813263,
-0.005469261668622494,
0.03822986036539078,
0.010000656358897686,
-0.025144176557660103,
-0.07558636367321014,
-0.009762588888406754,
0.020467601716518402,
0.007298329379409552,
0.03604241460561752,
0.03436100855469704,
-0.028874749317765236,
-0.032092075794935226,
-0.0048880199901759624,
0.0005783133092336357,
-0.02911349944770336,
0.03603081777691841,
0.04669187590479851,
-0.012986683286726475,
-0.010307958349585533,
0.05526915565133095,
-0.03593450039625168,
-0.018550202250480652,
0.020108798518776894,
0.04022197797894478,
-0.00808198843151331,
-0.015605146065354347,
-0.011711785569787025,
0.006310800556093454,
-0.021158985793590546,
0.02364216186106205,
0.007435447070747614,
0.02787717431783676,
-0.07758811116218567,
0.01900627464056015,
-0.0016292445361614227,
-0.008796747773885727,
0.020955074578523636,
-0.009220230393111706,
0.03411493077874184,
0.004538067616522312,
-0.05242777243256569,
0.0511183887720108,
-0.01588374935090542,
0.025038564577698708,
0.005889824591577053,
0.040166862308979034,
0.0312848724424839,
0.027203869074583054,
-0.03299432247877121,
0.0008444595732726157,
0.07666916400194168,
0.039140596985816956,
-0.000011061903023801278,
0.006500876508653164,
-0.026006005704402924,
-0.016746435314416885,
0.02432417683303356,
-0.01633959636092186,
0.010034626349806786,
0.011570644564926624,
0.02884954959154129,
-0.03212885186076164,
-0.010820098221302032,
-0.03942370042204857,
-0.0066113220527768135,
0.018234726041555405,
-0.013038384728133678,
-0.004247636999934912,
-0.007917187176644802,
0.006751653738319874,
-0.002747673075646162,
0.015375922434031963,
0.008720912970602512,
0.01820540800690651,
-0.020979484543204308,
0.03703407198190689,
-0.015307909809052944,
-0.0360935814678669,
0.026716170832514763,
-0.014387758448719978,
0.022262901067733765,
-0.005774291232228279,
-0.05994926765561104,
-0.03985558822751045,
0.008474694564938545,
0.028497299179434776,
0.011906532570719719,
0.018018357455730438,
-0.021802475675940514,
0.04026355221867561,
-0.0015601188642904162,
-0.04351755976676941,
-0.03159244358539581,
-0.0014662465546280146,
0.007400596048682928,
-0.014873972162604332,
-0.004183586686849594,
0.05541267991065979,
0.004925115965306759,
0.018665658310055733,
0.000886435795109719,
0.01903589256107807,
-0.008349547162652016,
0.03363191336393356,
0.02536621503531933,
-0.003578366246074438,
-0.00986084807664156,
0.00526546873152256,
-0.003105015028268099,
-0.01509334146976471,
0.023477839305996895,
0.016136115416884422,
-0.006742979399859905,
0.00942125916481018,
-0.07041710615158081,
0.023415150120854378,
-0.007063542492687702,
0.054286565631628036,
0.03708504140377045,
-0.029256533831357956,
0.04173823073506355,
0.03673062473535538,
0.005219538230448961,
-0.009286127984523773,
-0.01579446904361248,
-0.0033166413195431232,
-0.025256553664803505,
-0.006970551330596209,
0.05005551129579544,
-0.01599077507853508,
-0.013490312732756138,
-0.023787757381796837,
0.022216610610485077,
-0.03256463259458542,
0.009255443699657917,
0.03289074823260307,
0.033918678760528564,
0.0200445968657732,
-0.04860899969935417,
-0.009365016594529152,
0.011581788770854473,
-0.04794241860508919,
-0.01882084272801876,
-0.02018246054649353,
0.005283950362354517,
-0.013773043639957905,
0.037633709609508514,
0.055495020002126694,
0.011896555311977863,
-0.07312490046024323,
-0.024497127160429955,
0.029189977794885635,
-0.06442473083734512,
0.01271935272961855,
0.0011925632134079933,
-0.006329353433102369,
0.03449108451604843,
0.011711768805980682,
0.030263355001807213,
0.017364798113703728,
0.004198390990495682,
-0.024417206645011902,
-0.05792099982500076,
-0.02171274460852146,
-0.008312401361763477,
-0.009843586944043636,
0.011868951842188835,
0.017459042370319366,
-0.07589667290449142,
0.018821174278855324,
0.003721707733348012,
-0.02300303988158703,
-0.02045496366918087,
-0.005714677274227142,
-0.012699078768491745,
-0.03998938947916031,
0.006883150897920132,
-0.02051045373082161,
-0.01803060807287693,
0.0018898004200309515,
-0.009900938719511032,
0.006706682033836842,
0.05705840513110161,
0.008297876454889774,
-0.014895020984113216,
-0.048016659915447235,
0.04706914722919464,
-0.013125273399055004,
-0.058305125683546066,
0.0037531103007495403,
0.030364975333213806,
0.04074819013476372,
0.021649358794093132,
-0.0027904962189495564,
-0.013604466803371906,
0.01644972339272499,
-0.008219481445848942,
0.01698085479438305,
-0.01201233547180891,
-0.05938609689474106,
0.04190296307206154,
0.006930812261998653,
-0.015064967796206474,
-0.014623994007706642,
0.03482973575592041,
-0.004651711788028479,
-0.025598697364330292,
0.04002812132239342,
0.03590413182973862,
0.0020133336074650288,
-0.040924400091171265,
0.0006339349783957005,
-0.015824858099222183,
-0.042090948671102524,
0.0036935203243047,
0.0182002205401659,
-0.030412917956709862,
0.036923810839653015,
0.00831894762814045,
0.053642645478248596,
-0.006344649475067854,
0.035863906145095825,
-0.04426493123173714,
-0.022153450176119804,
-0.008764305151998997,
0.0026813948061317205,
0.034268543124198914,
-0.024159075692296028,
-0.008992370218038559,
0.008145477622747421,
-0.026531944051384926,
-0.004580031614750624,
0.006459653843194246,
0.022095531225204468,
0.005906145088374615,
-0.05838645622134209,
0.011472146958112717,
-0.0006859520799480379,
-0.003917939495295286,
0.005104511510580778,
0.03829742595553398,
-0.03318719193339348,
0.03055543452501297,
0.03659580647945404,
-0.008434519171714783,
0.01886957697570324,
0.0018599728355184197,
-0.031279873102903366,
0.043677594512701035,
0.0476287305355072,
0.02076125517487526,
-0.02252640202641487,
-0.0503210686147213,
0.011398847214877605,
0.020910969004034996,
-0.015644457191228867,
0.01983954943716526,
-0.05524774268269539,
-0.0074270619079470634,
0.03687761351466179,
0.011743197217583656,
0.036046646535396576,
0.006949522532522678,
-0.02557966113090515,
-0.013891245238482952,
0.03773742914199829,
-0.0024584229104220867,
-0.025389961898326874,
-0.03217282518744469,
0.04519856721162796,
0.004756320267915726,
-0.04388018324971199,
-0.009769068099558353,
0.02841939590871334,
-0.027285223826766014,
0.032464366406202316,
-0.01923948898911476,
0.04308289662003517,
0.04371025040745735,
-0.020696932449936867,
0.029177578166127205,
0.020580986514687538,
-0.0032822033390402794,
0.008874197490513325,
-0.005943442694842815,
0.001921553979627788,
0.017684582620859146,
0.04375908151268959,
0.016042480245232582,
0.0045503247529268265,
0.036953218281269073,
0.020386995747685432,
0.03476313129067421,
-0.07076520472764969,
-0.016101490706205368,
0.032839592546224594,
0.002154325367882848,
0.02071128785610199,
0.018260227516293526,
-0.039340000599622726,
0.00660508731380105,
-0.009525541216135025,
0.011286730878055096,
0.007787805050611496,
0.011183328926563263,
-0.005198724567890167,
0.04102030768990517,
-0.008372703567147255,
0.0038925360422581434,
0.03783617541193962,
0.02705601043999195,
0.04264165088534355,
0.02723984234035015,
0.0816899985074997,
0.03478378802537918,
-0.0013940419303253293,
-0.05296499654650688,
-0.02481241710484028,
0.10482128709554672,
0.021296104416251183,
-0.01445122342556715,
0.07074295729398727,
-0.01461990736424923,
-0.011676987633109093,
-0.038902103900909424,
0.009600652381777763,
-0.026546843349933624,
-0.018052617087960243,
-0.010454184375703335,
-0.009277810342609882,
-0.017500409856438637,
-0.03415187820792198,
0.05343242362141609,
0.016718212515115738,
0.026507539674639702,
-0.012927505187690258,
0.031117072328925133,
0.028870388865470886,
0.0028452177066355944,
0.036620497703552246,
-0.002282777102664113,
0.012846813537180424,
-0.02978716418147087,
0.05085727944970131,
-0.006438222248107195,
-0.0358361154794693,
0.050787538290023804,
-0.015872135758399963,
0.04344942048192024,
-0.03533485531806946,
-0.0179781224578619,
0.026519516482949257,
-0.01892346329987049,
0.002554395468905568,
-0.04289964586496353,
0.03418917953968048,
-0.06274108588695526,
0.011118175461888313,
-0.039170537143945694,
-0.02073289267718792,
0.022115889936685562,
0.0036564685869961977,
0.033007074147462845,
0.014084049500524998,
0.015917880460619926,
-0.0646757036447525,
0.00043942799675278366,
0.01373903825879097,
0.0637461394071579,
0.03966905176639557,
0.0286718662828207,
-0.010132627561688423,
-0.03848880156874657,
-0.01730521209537983,
-0.041886162012815475,
0.03278239443898201,
-0.01780848018825054,
0.010416487231850624,
0.0003582909412216395,
-0.0013690131017938256,
-0.011334221810102463,
0.039531756192445755,
-0.01763291098177433,
0.027369331568479538,
0.011033601127564907,
-0.008458660915493965,
-0.019654516130685806,
-0.05672106146812439,
0.02280804142355919,
-0.046523477882146835,
-0.022169433534145355,
0.00886532012373209,
0.003342765849083662,
-0.017069701105356216,
0.07643713802099228,
-0.003756886348128319,
-0.038160376250743866,
0.020114585757255554,
0.007556722965091467,
-0.01533843856304884,
0.06421785056591034,
-0.00012286599667277187,
-0.000793845858424902,
0.034091852605342865,
-0.004420149140059948,
-0.017745252698659897,
0.011715584434568882,
-0.03179154545068741,
0.024484783411026,
0.0006622124928981066,
0.001755104516632855,
-0.032647423446178436,
0.016593607142567635,
0.049604352563619614,
0.029726114124059677,
0.010002081282436848,
-0.01674732379615307,
-0.01289344485849142,
-0.009302247315645218,
0.0023649113718420267,
-0.04176739603281021,
-0.010851774364709854,
-0.04943917691707611,
-0.031365398317575455,
-0.03463063761591911,
0.0381198488175869,
-0.008189457468688488,
-0.004146129824221134,
-0.04448593035340309,
0.0058095017448067665,
-0.03845461830496788,
0.01613595522940159,
0.015542877838015556,
-0.02095099352300167,
0.0237090066075325,
-0.005894127301871777,
0.026531431823968887,
-0.02091236039996147,
-0.002259416040033102,
-0.00042801545350812376,
-0.0408320277929306,
0.03082091547548771,
0.029932865872979164,
0.06350556761026382,
-0.022071439772844315,
-0.014869900420308113,
0.002840741304680705,
-0.00936785340309143,
-0.04812780022621155,
-0.0355352945625782,
0.04294092208147049,
-0.04872123524546623,
0.024151012301445007,
0.054726604372262955,
-0.0022310372442007065,
0.011685460805892944,
0.05203211307525635,
-0.0018860363634303212,
-0.04314976558089256,
0.020853077992796898,
0.022471515461802483,
-0.07963523268699646,
0.01401820220053196,
0.01757868565618992,
-0.009094439446926117,
0.06737176328897476,
-0.004389543551951647,
0.04327020049095154,
0.03593030199408531,
-0.01660020835697651,
0.03702261298894882,
-0.011776380240917206,
-0.06451314687728882,
-0.03896418213844299,
0.024047603830695152,
0.0031257409136742353,
-0.012166209518909454,
0.019699236378073692,
-0.0043068015947937965,
-0.006226480007171631,
-0.060623154044151306,
-0.004298547748476267,
0.020812949165701866,
0.03335115313529968,
0.04029354453086853,
-0.00026994317886419594,
-0.0586920864880085,
0.03470109403133392,
0.031618714332580566,
0.0038199666887521744,
-0.04820818826556206,
0.012498619966208935
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Demos You can play with the models in two demos we added to Hugging Face Spaces. With the first you can quickly generate code with the model and with the second you can highlight your code with the model to spot bugs! - Code Generation - Code Highlighting You can also directly use the models from the transformers library: Python from transformers import pipeline pipe = pipeline('text-generation', model='lvwerra/codeparrot') pipe('def hello_world():') | [
0.048475202172994614,
-0.04809925705194473,
0.008680736646056175,
-0.008078085258603096,
0.07013583183288574,
0.05629382282495499,
0.02841414138674736,
0.006826964672654867,
-0.026007939130067825,
-0.0038620654959231615,
-0.07335767894983292,
0.031523413956165314,
0.051860835403203964,
0.07094267755746841,
0.0027002664282917976,
-0.024102266877889633,
0.025119956582784653,
0.009896348230540752,
-0.008481946773827076,
0.04172103479504585,
0.010609098710119724,
-0.07254993915557861,
0.04136522859334946,
0.0018778874073177576,
0.006641872227191925,
-0.10834343731403351,
0.07076819241046906,
0.009742717258632183,
-0.017131146043539047,
0.02726508304476738,
-0.10625098645687103,
-0.011222951114177704,
0.025661401450634003,
-0.03737311810255051,
-0.01406968105584383,
0.026973269879817963,
-0.11606837064027786,
0.06827293336391449,
0.052006468176841736,
-0.020054113119840622,
0.036093611270189285,
-0.011813809163868427,
-0.03535423055291176,
-0.008689015172421932,
-0.008136479184031487,
-0.013723350130021572,
-0.18623681366443634,
0.04985138401389122,
-0.013361000455915928,
-0.04019301012158394,
-0.09335450828075409,
0.061902936547994614,
-0.011252745054662228,
-0.038132961839437485,
-0.045310068875551224,
0.003741170046851039,
-0.009406542405486107,
-0.08247732371091843,
0.0436721108853817,
0.03300805389881134,
0.007852804847061634,
0.010140825062990189,
-0.005829561967402697,
0.021290700882673264,
0.054267726838588715,
0.015494106337428093,
-0.024050816893577576,
0.05330550670623779,
-0.08170996606349945,
0.01233354490250349,
0.006277762353420258,
-0.03444521501660347,
0.0028124230448156595,
-0.06502851098775864,
0.002832943107932806,
-0.04616378992795944,
-0.0499562993645668,
0.07689173519611359,
0.038290537893772125,
0.08927815407514572,
0.06757216155529022,
0.022491196170449257,
0.02872537635266781,
0.03876471146941185,
0.04615479335188866,
0.022951066493988037,
0.01622202806174755,
-0.06895437836647034,
-0.06209363415837288,
0.0553257092833519,
-0.05340108647942543,
-0.12607188522815704,
-0.03542693704366684,
0.04168502241373062,
0.056708142161369324,
0.039539799094200134,
0.007780605927109718,
0.03588000312447548,
-0.035555772483348846,
-0.018871091306209564,
-0.08257058262825012,
-0.08626934140920639,
0.03249302878975868,
-0.07577711343765259,
-0.029611723497509956,
0.02596738375723362,
-0.02043467015028,
-0.05797025188803673,
-0.02893749065697193,
-0.0026838311459869146,
-0.00970067735761404,
-0.03965688496828079,
0.03127564489841461,
0.07653184980154037,
-0.05232870206236839,
0.0503685437142849,
-0.013826623558998108,
0.018677063286304474,
-0.012901649810373783,
0.00741433072835207,
-0.0004953029565513134,
0.028694014996290207,
0.0520741306245327,
0.04592616856098175,
0.0029788014944642782,
0.11486684530973434,
0.008377441205084324,
0.03552389517426491,
-0.00810942891985178,
-0.03350748494267464,
0.00856625847518444,
-0.016944341361522675,
0.028799399733543396,
0.013695251196622849,
0.03812047094106674,
-0.05047118663787842,
0.021706895902752876,
-0.08939817547798157,
0.016040820628404617,
-0.007138267159461975,
0.02888093888759613,
0.053450122475624084,
0.026253720745444298,
0.01498395949602127,
0.013352300971746445,
-0.03555769473314285,
-0.0880059003829956,
0.08203745633363724,
-0.02080700732767582,
0.028260890394449234,
-0.0407082624733448,
0.04179386422038078,
-0.029047256335616112,
-0.03326857089996338,
-0.036875590682029724,
0.05608278512954712,
-0.06338514387607574,
0.021242916584014893,
-0.0637892484664917,
-0.00038293463876470923,
-0.017949581146240234,
-0.02233218215405941,
-0.03899014741182327,
-0.010058962740004063,
0.02324065938591957,
-0.02570849284529686,
-0.05213920399546623,
-0.019109457731246948,
0.05588110536336899,
0.034153204411268234,
-0.00546704838052392,
-0.04609065130352974,
0.07249180227518082,
-0.018173126503825188,
0.04174787923693657,
0.04107468202710152,
0.08167894929647446,
0.027024980634450912,
0.02134167030453682,
-0.033837202936410904,
-0.09015648812055588,
0.07303541898727417,
-0.024345649406313896,
0.03060556948184967,
0.04833853989839554,
-0.06925533711910248,
0.040964532643556595,
0.01316556055098772,
-0.001064808340743184,
0.010155304335057735,
-0.042143434286117554,
0.006577713880687952,
0.08523422479629517,
-0.00622903648763895,
-0.0013190440367907286,
-0.026116305962204933,
0.005548266228288412,
0.07383331656455994,
0.025100043043494225,
0.06592103838920593,
0.00555296428501606,
0.058277420699596405,
0.02913220226764679,
-0.061483509838581085,
-0.013014952652156353,
0.03799685090780258,
0.017016706988215446,
-0.030761810019612312,
0.01089170016348362,
-0.008031638339161873,
0.07125166058540344,
-0.09115564823150635,
0.056879010051488876,
-0.044595491141080856,
0.028417926281690598,
-0.01227682176977396,
-0.07080522924661636,
-0.023442018777132034,
-0.00996772013604641,
0.04659489914774895,
0.1541631519794464,
-0.02333828993141651,
-0.039054132997989655,
-0.07811872661113739,
-0.02341436594724655,
0.029140010476112366,
0.08643390238285065,
0.10489366948604584,
0.0550166517496109,
-0.07353700697422028,
-0.05328812077641487,
-0.00973255280405283,
-0.012518338859081268,
0.05903632938861847,
-0.06620359420776367,
-0.03561699017882347,
0.04092396795749664,
-0.005017205141484737,
0.0019571047741919756,
-0.05056120082736015,
0.023990413174033165,
-0.003822127589955926,
-0.05422474443912506,
0.05613528937101364,
-0.018837932497262955,
-0.024069879204034805,
0.037823282182216644,
-0.02884167619049549,
0.0078107756562530994,
0.0016233156202360988,
-0.056946270167827606,
0.04228763282299042,
-0.03527318313717842,
-0.051112622022628784,
0.02605501376092434,
0.02275455743074417,
0.0019612147007137537,
0.013909387402236462,
-0.01382842194288969,
0.04044978320598602,
-0.013502707704901695,
0.014567133970558643,
-0.04511565715074539,
-0.05245720595121384,
-0.026252251118421555,
-0.02136356383562088,
0.011954731307923794,
-0.011332622729241848,
0.010112490504980087,
-0.018433842808008194,
0.003377626184374094,
-0.031519826501607895,
0.033397283405065536,
0.015468440018594265,
0.030930431559681892,
0.03276563435792923,
0.006338832434266806,
-0.0027786926366388798,
-0.005064572207629681,
-0.020372562110424042,
-0.04681790620088577,
-0.03083014488220215,
0.014475478790700436,
0.042520344257354736,
0.015254534780979156,
0.05393870919942856,
-0.021332193166017532,
-0.019083239138126373,
-0.05882393941283226,
-0.011759043671190739,
0.005354475695639849,
0.04046933352947235,
0.011309775523841381,
-0.02921670489013195,
0.000535298662725836,
-0.0005901282420381904,
-0.003841676749289036,
0.0005641578463837504,
-0.010082290507853031,
0.023406557738780975,
-0.01105334609746933,
0.0038592033088207245,
-0.008302956819534302,
0.0021060488652437925,
-0.0328485332429409,
0.028812114149332047,
0.011083594523370266,
-0.01606355980038643,
-0.10277395695447922,
-0.030059874057769775,
0.021091628819704056,
0.006454903166741133,
0.01946648582816124,
-0.04951528087258339,
0.026603521779179573,
-0.0015435329405590892,
-0.0066216615960001945,
0.007020173594355583,
-0.02187691628932953,
-0.03302254527807236,
0.028171785175800323,
0.011572007089853287,
0.0068774535320699215,
-0.027071719989180565,
-0.04954215884208679,
0.008009889163076878,
0.06387714296579361,
0.02689383551478386,
-0.03318418189883232,
0.04886911064386368,
0.0018438396509736776,
-0.010053588077425957,
-0.00048781579243950546,
-0.03583397716283798,
0.06291854381561279,
0.015146149322390556,
0.008571779355406761,
-0.05050502344965935,
0.011938819661736488,
-0.02731373906135559,
-0.03322983905673027,
0.021487422287464142,
-0.055602066218853,
-0.011035884730517864,
-0.02735128067433834,
-0.020214222371578217,
0.029986442998051643,
0.01899673603475094,
0.020988918840885162,
-0.005832535680383444,
-0.02365700528025627,
0.01852351240813732,
-0.010058172978460789,
-0.023774556815624237,
-0.032053716480731964,
0.01972305029630661,
0.06342600286006927,
-0.03132060170173645,
-0.021127717569470406,
-0.015578544698655605,
0.03689587488770485,
0.04755593463778496,
0.0195178035646677,
0.022224579006433487,
-0.000584418245125562,
0.02918788231909275,
0.03242870047688484,
0.0027433212380856276,
-0.06677506864070892,
-0.013233800418674946,
0.005383963230997324,
-0.022380229085683823,
-0.0354284904897213,
0.051647741347551346,
-0.0026892931200563908,
0.011585605330765247,
0.006095850374549627,
0.009329431690275669,
0.00886485818773508,
-0.0026673562824726105,
-0.02679508551955223,
0.01746637001633644,
-0.03981579467654228,
0.003674224717542529,
-0.027092276141047478,
-0.07062087208032608,
0.04952573776245117,
0.001342772739008069,
0.012540389783680439,
-0.0369451642036438,
-0.012158454395830631,
-0.034658052027225494,
0.023912448436021805,
0.00010022623609984294,
0.052731987088918686,
-0.00881357491016388,
-0.0016930229030549526,
0.015243133530020714,
0.008322528563439846,
-0.0841425359249115,
-0.015389282256364822,
-0.009388631209731102,
-0.01480007078498602,
-0.022996453568339348,
0.007237117271870375,
0.004864801652729511,
-0.0019150678999722004,
0.03427518904209137,
0.007972008548676968,
-0.06319703906774521,
-0.0004059851635247469,
0.009874418377876282,
-0.021708589047193527,
0.04078802838921547,
-0.06095913052558899,
-0.027973486110568047,
0.011150483973324299,
-0.04601820185780525,
-0.0011852093739435077,
0.007037381175905466,
-0.006721725221723318,
-0.012527537532150745,
0.03290095925331116,
0.03787880018353462,
0.016127854585647583,
-0.0345640666782856,
-0.024766290560364723,
0.028825974091887474,
-0.04220186546444893,
0.026817798614501953,
-0.00660249637439847,
-0.02244921214878559,
0.02064172364771366,
-0.018544761463999748,
0.035056862980127335,
0.017105791717767715,
-0.0209945235401392,
0.02099859155714512,
0.005766396876424551,
0.0003664856485556811,
0.021844742819666862,
0.024438148364424706,
0.01595364511013031,
0.03287867084145546,
-0.014980288222432137,
0.0056609888561069965,
0.004355476703494787,
-0.039682887494564056,
-0.013492535799741745,
-0.0344594307243824,
0.005922425538301468,
-0.01776931993663311,
0.037227652966976166,
-0.01579282619059086,
-0.0232346523553133,
-0.024423714727163315,
-0.010958684608340263,
0.03229200094938278,
0.04588943347334862,
-0.021473579108715057,
-0.03441401943564415,
0.007373145315796137,
0.05726395174860954,
-0.009259595535695553,
-0.014090584591031075,
0.013248561881482601,
0.009957931935787201,
0.023427851498126984,
0.010874014347791672,
0.015267531387507915,
-0.018935678526759148,
0.03986098989844322,
-0.003192283445969224,
0.0020838824566453695,
-0.004268865566700697,
-0.06344474852085114,
-0.005494840443134308,
0.0008767312974669039,
-0.03093574196100235,
-0.025294389575719833,
0.03758378326892853,
0.0016281013377010822,
-0.011537346057593822,
0.0712781623005867,
0.06089617311954498,
0.005780693143606186,
0.010908368043601513,
0.01413032878190279,
-0.014152757823467255,
-0.007020303513854742,
0.03212127834558487,
-0.007542305625975132,
0.032187022268772125,
0.005391113925725222,
0.04519972205162048,
0.05954398214817047,
0.015753816813230515,
-0.015671759843826294,
-0.03368539363145828,
-0.03782019764184952,
-0.010797979310154915,
-0.023965241387486458,
-0.016750536859035492,
-0.0023139240220189095,
-0.002262464025989175,
-0.010280274786055088,
-0.013924620114266872,
-0.056714173406362534,
0.014494002796709538,
0.02928793989121914,
-0.0037400636356323957,
-0.01021361630409956,
0.041114673018455505,
-0.014657619409263134,
0.0044205328449606895,
-0.02274450473487377,
0.04308001697063446,
-0.05258135497570038,
0.025274580344557762,
-0.0037493775598704815,
-0.02827000804245472,
-0.018581267446279526,
-0.0008091662894003093,
-0.0015939102740958333,
0.013864068314433098,
-0.005137050058692694,
0.025332679972052574,
0.04459666088223457,
-0.019776413217186928,
0.00010502573422854766,
-0.023205319419503212,
-0.0015834365040063858,
0.006097710225731134,
0.0018833634676411748,
-0.003707663621753454,
0.030598733574151993,
0.02314806543290615,
0.003223555628210306,
0.05802135914564133,
0.004008110612630844,
0.033638108521699905,
0.00791975948959589,
0.009970501996576786,
0.0010758853750303388,
-0.05226512625813484,
0.03805513679981232,
0.015648318454623222,
-0.021009579300880432,
0.028753802180290222,
-0.05413735657930374,
-0.04410694167017937,
-0.005374275613576174,
-0.04524986818432808,
0.04140862077474594,
0.07465539127588272,
-0.025478389114141464,
-0.00869379099458456,
0.013426336459815502,
0.02498515136539936,
0.013443055562675,
-0.015439816750586033,
0.020544156432151794,
0.026568854227662086,
0.03928959742188454,
0.018289197236299515,
-0.010115104727447033,
0.0011516566155478358,
0.012712187133729458,
0.009845775552093983,
-0.05088421702384949,
0.006810464896261692,
0.02711213007569313,
-0.020998124033212662,
0.020313333719968796,
-0.015524417161941528,
-0.009998727589845657,
0.02618195302784443,
0.02751062624156475,
0.017907360568642616,
0.020768504589796066,
0.0018315997440367937,
0.002745954552665353,
-0.0032770144753158092,
-0.013990331441164017,
-0.004598142113536596,
0.052307404577732086,
-0.010231077671051025,
0.0287269689142704,
0.041279833763837814,
0.07174264639616013,
0.021661438047885895,
0.003490593284368515,
0.0087008411064744,
0.003507194109261036,
0.06451750546693802,
0.06222187727689743,
0.03592207282781601,
0.03226172924041748,
-0.03106095641851425,
-0.02679099515080452,
-0.05233089253306389,
-0.044698771089315414,
-0.030768806114792824,
0.024762969464063644,
0.02918805181980133,
-0.017572032287716866,
0.020479874685406685,
-0.033480145037174225,
0.08792007714509964,
0.01779230870306492,
0.046403657644987106,
-0.036163050681352615,
0.050450399518013,
0.01628822833299637,
0.029667161405086517,
-0.00193581182975322,
0.03950176388025284,
0.028536992147564888,
0.007710198871791363,
0.054028838872909546,
0.01303417794406414,
0.02828509546816349,
0.016999293118715286,
0.030669521540403366,
0.023110337555408478,
-0.018563704565167427,
-0.021284226328134537,
0.0011608663480728865,
0.004441227298229933,
-0.017976466566324234,
-0.04083836451172829,
0.013060634955763817,
-0.025257812812924385,
-0.024853402748703957,
-0.027241554111242294,
0.010903792455792427,
-0.01435036864131689,
-0.009561590850353241,
-0.015495066531002522,
0.03271404281258583,
-0.004614042583853006,
-0.0205874964594841,
-0.00324156042188406,
0.025980303063988686,
0.015781261026859283,
0.010388381779193878,
0.003949922509491444,
-0.005120984744280577,
-0.02308638207614422,
-0.03418987989425659,
-0.0017104720463976264,
0.02172819897532463,
-0.01281991507858038,
-0.023693062365055084,
-0.007941038347780704,
0.036552827805280685,
-0.027068600058555603,
0.03722890838980675,
0.017287522554397583,
0.009876573458313942,
-0.03695046901702881,
0.026163555681705475,
-0.01303160097450018,
-0.0250257421284914,
0.01556884404271841,
-0.036687448620796204,
0.011130817234516144,
-0.0026863454841077328,
0.013357526622712612,
0.006437039002776146,
0.028196338564157486,
-0.025799451395869255,
-0.0346887931227684,
-0.021006375551223755,
-0.013569838367402554,
-0.014109685085713863,
0.02112712152302265,
-0.010460615158081055,
0.009531211107969284,
0.019401775673031807,
-0.01723470911383629,
0.02682454138994217,
0.0012414227239787579,
-0.012617568485438824,
0.045352984219789505,
0.011806370690464973,
-0.02563806064426899,
-0.023377995938062668,
0.06892070919275284,
0.048162464052438736,
0.04392566531896591,
0.04177584499120712,
0.020396437495946884,
0.008789077401161194,
-0.014916681684553623,
0.05273984372615814,
-0.04858566075563431,
0.020727606490254402,
-0.05491270497441292,
-0.02549912966787815,
-0.0038396217860281467,
-0.016772419214248657,
-0.03923705220222473,
0.021117229014635086,
0.0012471197405830026,
0.01693151518702507,
-0.0243171788752079,
-0.014141407795250416,
0.004337920341640711,
0.003063883865252137,
0.06559234112501144,
0.042551860213279724,
0.03791241720318794,
-0.009136185050010681,
-0.018774621188640594,
-0.017768988385796547,
-0.007909652777016163,
0.021271517500281334,
0.037218719720840454,
0.02852294035255909,
-0.00826855655759573,
-0.043007511645555496,
-0.02259298972785473,
-0.028483394533395767,
-0.04902616888284683,
-0.01743835210800171,
0.015730036422610283,
-0.010270953178405762,
-0.009736508131027222,
-0.010442533530294895,
0.03687058016657829,
-0.007157207932323217,
0.02722107246518135,
-0.019205693155527115,
-0.04035358503460884,
0.007394375745207071,
0.004489613696932793,
-0.04308118671178818,
0.01574281044304371,
-0.02929913066327572,
-0.03778095543384552,
0.02691841311752796,
0.003237272845581174,
0.042327865958213806,
0.009544286876916885,
0.02601161226630211,
0.018212568014860153,
0.040293578058481216,
-0.034229498356580734,
-0.055494505912065506,
-0.014715123921632767,
0.056712403893470764,
-0.02029348537325859,
-0.030942123383283615,
-0.004794666543602943,
0.01636780984699726,
0.01762699894607067,
-0.005341799464076757,
0.01895853504538536,
-0.0014175113756209612,
-0.0269838348031044,
0.026354944333434105,
-0.013975071720778942,
0.03513161465525627,
0.04378687962889671,
-0.056812964379787445,
-0.0376577153801918,
0.035833269357681274
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Implementing the Training Loop We train with the 🤗 Accelerate library which allows us to scale the training from our laptop to a multi-GPU machine without changing a single line of code. We just create an accelerator and do some argument housekeeping: Python accelerator = Accelerator() acc_state = {str(k): str(v) for k, v in accelerator.state.__dict__.items()} parser = HfArgumentParser(TrainingArguments) args = parser.parse_args() args = Namespace(**vars(args), **acc_state) samples_per_step = accelerator.state.num_processes * args.train_batch_size set_seed(args.seed) We are now ready to train! Let's use the huggingface_hub client library to clone the repository with the new tokenizer and model. We will checkout to a new branch for this experiment. With that setup, we can run many experiments in parallel and in the end we just merge the best one into the main branch. Python # Clone model repository if accelerator.is_main_process: hf_repo = Repository(args.save_dir, clone_from=args.model_ckpt) # Checkout new branch on repo if accelerator.is_main_process: hf_repo.git_checkout(run_name, create_branch_ok=True) We can directly load the tokenizer and model from the local repository. Since we are dealing with big models we might want to turn on gradient checkpointing to decrease the GPU memory footprint during training. Python # Load model and tokenizer model = AutoModelForCausalLM.from_pretrained(args.save_dir) if args.gradient_checkpointing: model.gradient_checkpointing_enable() tokenizer = AutoTokenizer.from_pretrained(args.save_dir) Next up is the dataset. We make training simpler with a dataset that yields examples with a fixed context size. To not waste too much data (some samples are too short or too long) we can concatenate many examples with an EOS token and then chunk them. The more sequences we prepare together, the smaller the fraction of tokens we discard (the grey ones in the previous figure). Since we want to stream the dataset instead of preparing everything in advance we use an IterableDataset. The full dataset class looks as follows: Python class ConstantLengthDataset(IterableDataset): def __init__( self, tokenizer, dataset, infinite=False, seq_length=1024, num_of_sequences=1024, chars_per_token=3.6 ): self.tokenizer = tokenizer self.concat_token_id = tokenizer.bos_token_id self.dataset = dataset self.seq_length = seq_length self.input_characters = seq_length * chars_per_token * num_of_sequences self.epoch = 0 self.infinite = infinite def __iter__(self): iterator = iter(self.dataset) more_examples = True while more_examples: buffer, buffer_len = [], 0 while True: if buffer_len >= self.input_characters: break try: buffer.append(next(iterator)["content"]) buffer_len += len(buffer[-1]) except StopIteration: if self.infinite: iterator = iter(self.dataset) self.epoch += 1 logger.info(f"Dataset epoch: {self.epoch}") else: more_examples = False break tokenized_inputs = self.tokenizer(buffer, truncation=False)["input_ids"] all_token_ids = [] for tokenized_input in tokenized_inputs: all_token_ids.extend(tokenized_input + [self.concat_token_id]) for i in range(0, len(all_token_ids), self.seq_length): input_ids = all_token_ids[i : i + self.seq_length] if len(input_ids) == self.seq_length: yield torch.tensor(input_ids) Texts in the buffer are tokenized in parallel and then concatenated. Chunked samples are then yielded until the buffer is empty and the process starts again. If we set infinite=True the dataset iterator restarts at its end. Python def create_dataloaders(args): ds_kwargs = {"streaming": True} train_data = load_dataset(args.dataset_name_train, split="train", streaming=True) train_data = train_data.shuffle(buffer_size=args.shuffle_buffer, seed=args.seed) valid_data = load_dataset(args.dataset_name_valid, split="train", streaming=True) train_dataset = ConstantLengthDataset(tokenizer, train_data, infinite=True, seq_length=args.seq_length) valid_dataset = ConstantLengthDataset(tokenizer, valid_data, infinite=False, seq_length=args.seq_length) train_dataloader = DataLoader(train_dataset, batch_size=args.train_batch_size) eval_dataloader = DataLoader(valid_dataset, batch_size=args.valid_batch_size) return train_dataloader, eval_dataloader train_dataloader, eval_dataloader = create_dataloaders(args) Before we start training we need to set up the optimizer and learning rate schedule. We don’t want to apply weight decay to biases and LayerNorm weights so we use a helper function to exclude those. Python def get_grouped_params(model, args, no_decay=["bias", "LayerNorm.weight"]): params_with_wd, params_without_wd = [], [] for n, p in model.named_parameters(): if any(nd in n for nd in no_decay): params_without_wd.append(p) else: params_with_wd.append(p) return [{"params": params_with_wd, "weight_decay": args.weight_decay}, {"params": params_without_wd, "weight_decay": 0.0},] optimizer = AdamW(get_grouped_params(model, args), lr=args.learning_rate) lr_scheduler = get_scheduler(name=args.lr_scheduler_type, optimizer=optimizer, num_warmup_steps=args.num_warmup_steps, num_training_steps=args.max_train_steps,) A big question that remains is how all the data and models will be distributed across several GPUs. This sounds like a complex task but actually only requires a single line of code with 🤗 Accelerate. Python model, optimizer, train_dataloader, eval_dataloader = accelerator.prepare( model, optimizer, train_dataloader, eval_dataloader) Under the hood it'll use DistributedDataParallel, which means a batch is sent to each GPU worker which has its own copy of the model. There the gradients are computed and then aggregated to update the model on each worker. We also want to evaluate the model from time to time on the validation set so let’s write a function to do just that. This is done automatically in a distributed fashion and we just need to gather all the losses from the workers. We also want to report the perplexity. Python def evaluate(args): model.eval() losses = [] for step, batch in enumerate(eval_dataloader): with torch.no_grad(): outputs = model(batch, labels=batch) loss = outputs.loss.repeat(args.valid_batch_size) losses.append(accelerator.gather(loss)) if args.max_eval_steps > 0 and step >= args.max_eval_steps: break loss = torch.mean(torch.cat(losses)) try: perplexity = torch.exp(loss) except OverflowError: perplexity = float("inf") return loss.item(), perplexity.item() We are now ready to write the main training loop. It will look pretty much like a normal PyTorch training loop. Here and there you can see that we use the accelerator functions rather than native PyTorch. Also, we push the model to the branch after each evaluation. Python # Train model model.train() completed_steps = 0 for step, batch in enumerate(train_dataloader, start=1): loss = model(batch, labels=batch, use_cache=False).loss loss = loss / args.gradient_accumulation_steps accelerator.backward(loss) if step % args.gradient_accumulation_steps == 0: accelerator.clip_grad_norm_(model.parameters(), 1.0) optimizer.step() lr_scheduler.step() optimizer.zero_grad() completed_steps += 1 if step % args.save_checkpoint_steps == 0: eval_loss, perplexity = evaluate(args) accelerator.wait_for_everyone() unwrapped_model = accelerator.unwrap_model(model) unwrapped_model.save_pretrained(args.save_dir, save_function=accelerator.save) if accelerator.is_main_process: hf_repo.push_to_hub(commit_message=f"step {step}") model.train() if completed_steps >= args.max_train_steps: break When we call wait_for_everyone() and unwrap_model() we make sure that all workers are ready and any model layers that have been added by prepare() earlier are removed. We also use gradient accumulation and gradient clipping that are easily implemented. Lastly, after training is complete we run a last evaluation and save the final model and push it to the hub. Python # Evaluate and save the last checkpoint logger.info("Evaluating and saving model after training") eval_loss, perplexity = evaluate(args) log_metrics(step, {"loss/eval": eval_loss, "perplexity": perplexity}) accelerator.wait_for_everyone() unwrapped_model = accelerator.unwrap_model(model) unwrapped_model.save_pretrained(args.save_dir, save_function=accelerator.save) if accelerator.is_main_process: hf_repo.push_to_hub(commit_message="final model") Done! That's all the code to train a full GPT-2 model from scratch with as little as 150 lines. We did not show the imports and logs of the scripts to make the code a little bit more compact. Now let's actually train it! With this code we trained models for our upcoming book on Transformers and NLP: a 110M and 1.5B parameter GPT-2 model. We used a 16 x A100 GPU machine to train these models for 1 day and 1 week, respectively. Enough time to get a coffee and read a book or two! | [
0.020136550068855286,
0.009505543857812881,
-0.04377198964357376,
-0.022841941565275192,
0.013667352497577667,
0.030557958409190178,
0.01242348924279213,
-0.017887596040964127,
-0.01887647621333599,
-0.02456093765795231,
-0.08644566684961319,
0.041046615689992905,
0.006523726508021355,
0.08951161801815033,
0.017859352752566338,
-0.07630303502082825,
0.08356568962335587,
-0.0425262413918972,
-0.03400732949376106,
0.0571463480591774,
0.008387711830437183,
0.0016310509527102113,
0.06395239382982254,
0.03404688835144043,
-0.04359663650393486,
-0.02745438739657402,
0.05320187285542488,
0.03726216405630112,
0.04197107255458832,
0.022691724821925163,
-0.1118578240275383,
0.015784472227096558,
-0.018207108601927757,
-0.019740626215934753,
0.05677696689963341,
0.020498089492321014,
-0.09949377924203873,
0.054252706468105316,
0.08996198326349258,
-0.006281518377363682,
0.005334308370947838,
-0.008304180577397346,
-0.04762236028909683,
0.014011834748089314,
0.03368060290813446,
-0.031278230249881744,
-0.13759657740592957,
0.037411075085401535,
-0.011771753430366516,
-0.07755948603153229,
-0.1050289124250412,
0.0669480487704277,
-0.020911630243062973,
-0.018492400646209717,
-0.024149445816874504,
0.03776802495121956,
-0.004998613148927689,
-0.027933329343795776,
0.021053774282336235,
0.008924390189349651,
0.054514266550540924,
0.012318906374275684,
-0.012915654107928276,
0.08603254705667496,
0.016688339412212372,
0.015114801004529,
-0.015693986788392067,
0.04337161034345627,
-0.030116578564047813,
-0.03159039095044136,
0.031206656247377396,
-0.06533738225698471,
0.015437554568052292,
0.021708447486162186,
-0.006182429380714893,
-0.07563949376344681,
0.013226024806499481,
0.008992314338684082,
0.12500114738941193,
0.04957250878214836,
0.0005058952956460416,
0.018145298585295677,
0.018324177712202072,
0.033456046134233475,
0.06349685788154602,
0.03706930950284004,
-0.04440531134605408,
-0.033652257174253464,
-0.015775082632899284,
0.06266552209854126,
-0.03912627696990967,
-0.08776208758354187,
-0.03921312838792801,
-0.016295628622174263,
0.07106219232082367,
-0.03054867312312126,
-0.032722100615501404,
0.03298697620630264,
-0.013787612318992615,
0.014024120755493641,
0.037757474929094315,
-0.0868600606918335,
-0.018781214952468872,
-0.047340504825115204,
-0.04908064007759094,
0.07369651645421982,
-0.03378446400165558,
-0.10842542350292206,
-0.06669328361749649,
-0.0162061657756567,
0.02091660536825657,
-0.028395885601639748,
-0.04515228420495987,
0.054091308265924454,
-0.048149749636650085,
0.01462171133607626,
0.005654988344758749,
0.01844080723822117,
-0.0074836499989032745,
0.004504256881773472,
-0.007729373872280121,
0.08343730121850967,
0.05696240812540054,
0.0081771370023489,
-0.026043396443128586,
0.07200267165899277,
0.00630603265017271,
-0.0003378311812411994,
-0.01433936320245266,
-0.045875728130340576,
0.02940267138183117,
-0.014765677973628044,
0.060762595385313034,
0.004980399738997221,
0.018186189234256744,
-0.0364256426692009,
0.013520127162337303,
-0.060544539242982864,
0.012881238013505936,
0.02472536638379097,
-0.04441679269075394,
0.02385464683175087,
0.0002927140740212053,
-0.007442501373589039,
0.011081112548708916,
0.0028209746815264225,
-0.10589651763439178,
0.07280195504426956,
0.024361824616789818,
0.007417762652039528,
-0.10742855072021484,
0.07910379022359848,
-0.05724940448999405,
-0.05652547627687454,
0.03621206432580948,
0.07918599992990494,
-0.048005327582359314,
0.0005480538820847869,
-0.09282362461090088,
-0.00622855918481946,
-0.015971479937434196,
0.028141506016254425,
-0.06479857116937637,
0.006427054293453693,
0.01180980820208788,
0.03745782747864723,
0.038242097944021225,
0.01517278142273426,
-0.003830813802778721,
0.0034849669318646193,
-0.0005231760442256927,
-0.06138315424323082,
0.002330182585865259,
-0.026911292225122452,
-0.0005503348656930029,
0.026110732927918434,
0.03511945530772209,
0.06654924154281616,
-0.027209417894482613,
0.0051490189507603645,
-0.05134967714548111,
0.06738974153995514,
-0.016181137412786484,
0.04536020755767822,
0.04493798315525055,
-0.09348119795322418,
0.007367755752056837,
0.02161223068833351,
-0.021378498524427414,
0.002823357470333576,
0.013593506067991257,
-0.008671320974826813,
0.06701935082674026,
-0.03454058989882469,
0.028914067894220352,
-0.10502805560827255,
-0.017858318984508514,
0.07461974024772644,
-0.006936142686754465,
0.06517951935529709,
0.016536369919776917,
-0.025365781038999557,
0.04755936935544014,
-0.02014484815299511,
-0.002851426601409912,
0.012456601485610008,
-0.04122211039066315,
-0.05823523923754692,
0.043003201484680176,
0.030875038355588913,
-0.006391278002411127,
-0.11188393831253052,
0.035449471324682236,
-0.07120274752378464,
0.012958199717104435,
0.03525668755173683,
-0.013227086514234543,
0.038185492157936096,
0.007556535769253969,
-0.0036033368669450283,
0.19007429480552673,
-0.05557982623577118,
0.022308947518467903,
0.02126116305589676,
0.0143198873847723,
-0.004924108274281025,
0.02753627300262451,
0.03037208318710327,
0.06904039531946182,
-0.11113160848617554,
-0.026843076571822166,
-0.11177980899810791,
-0.0740559846162796,
0.03722807765007019,
0.027540186420083046,
-0.030504079535603523,
0.05472131446003914,
-0.005143087822943926,
0.0039013405330479145,
-0.01783675327897072,
-0.015644611790776253,
-0.016683077439665794,
-0.012721795588731766,
0.00034562687505967915,
0.016115302219986916,
-0.02217104285955429,
0.04965268075466156,
0.021663900464773178,
-0.07431112974882126,
-0.07496669143438339,
-0.03781154751777649,
0.03915449231863022,
-0.03808072581887245,
-0.018789617344737053,
0.010312814265489578,
0.023413579910993576,
0.005970243364572525,
-0.04463625326752663,
-0.048650383949279785,
0.06673461943864822,
-0.008291219361126423,
0.023659808561205864,
-0.04868006333708763,
-0.053797461092472076,
-0.020179029554128647,
-0.02381611242890358,
0.00495569035410881,
0.0113423652946949,
-0.010601213201880455,
-0.0161285437643528,
-0.003632092848420143,
-0.020921820774674416,
0.03197342902421951,
0.021583449095487595,
-0.006396637763828039,
0.028039133176207542,
0.026288852095603943,
-0.022990940138697624,
-0.054283834993839264,
-0.012742382474243641,
-0.0032967557199299335,
-0.04297429323196411,
-0.021826541051268578,
0.019406111910939217,
0.03310620039701462,
-0.01324213482439518,
0.02691604383289814,
0.005816100165247917,
-0.059477586299180984,
0.04789041355252266,
0.03430183231830597,
0.027359800413250923,
0.00666476134210825,
-0.03655138611793518,
0.00854293443262577,
0.03074323572218418,
0.03414280712604523,
-0.02321990206837654,
0.012449308298528194,
0.03493880107998848,
-0.0301456730812788,
-0.005793415475636721,
-0.01413001213222742,
-0.016130730509757996,
-0.051073670387268066,
0.021772820502519608,
0.018066657707095146,
0.03745686635375023,
-0.09496185183525085,
-0.0016733728116378188,
-0.005481824744492769,
0.02733377367258072,
0.002538936212658882,
-0.020025955513119698,
0.013988267630338669,
0.00851836521178484,
0.010035674087703228,
0.005515376105904579,
0.005392867606133223,
0.05470599606633186,
-0.0021792552433907986,
-0.024462271481752396,
0.0006724196719005704,
-0.014079376123845577,
-0.0033595359418541193,
-0.023781446740031242,
0.027398917824029922,
0.051381733268499374,
-0.03276554122567177,
0.02522853948175907,
0.025476310402154922,
0.007689203135669231,
-0.022692382335662842,
-0.027904562652111053,
0.01657741889357567,
-0.0044905440881848335,
0.03711528703570366,
-0.020236611366271973,
-0.030584288761019707,
-0.06031052768230438,
-0.05852837115526199,
-0.020674964413046837,
-0.03262069448828697,
0.006500941701233387,
0.018134864047169685,
-0.02252620831131935,
-0.020990893244743347,
0.010926146060228348,
0.026471270248293877,
0.00009413925727130845,
0.03424909710884094,
-0.021998165175318718,
0.043358150869607925,
0.010512610897421837,
-0.017990268766880035,
-0.001782122766599059,
0.04182232916355133,
-0.03315430134534836,
0.010735713876783848,
0.022745361551642418,
0.010155608877539635,
0.04402446746826172,
-0.0053484998643398285,
0.013876456767320633,
-0.008338435553014278,
0.08152680844068527,
0.05793016031384468,
-0.001189421396702528,
-0.03867856413125992,
-0.005014164838939905,
0.0019617145881056786,
-0.04069200158119202,
-0.003979113884270191,
0.02298750914633274,
0.011300057172775269,
-0.034090556204319,
-0.035978060215711594,
0.042461179196834564,
-0.008689697831869125,
0.0237380713224411,
0.0038372415583580732,
0.006814946420490742,
-0.06793620437383652,
-0.004549162462353706,
0.007481277454644442,
-0.03717619553208351,
0.06140926107764244,
0.03179527074098587,
0.016305867582559586,
-0.008151954039931297,
-0.030349550768733025,
-0.0227695032954216,
-0.0033747293055057526,
-0.004305961076170206,
0.03226085752248764,
-0.019611304625868797,
0.08109474182128906,
0.03253002092242241,
0.012929548509418964,
-0.03131434693932533,
0.021008750423789024,
-0.02445361576974392,
0.016426270827651024,
-0.001111154560931027,
-0.000034275428333785385,
0.023444198071956635,
0.01973430998623371,
0.007352221291512251,
0.0098964748904109,
-0.0345594584941864,
0.00027635524747893214,
0.014997677877545357,
-0.0217493437230587,
0.015742450952529907,
-0.0389571450650692,
-0.03927737474441528,
0.010828228667378426,
-0.00875487644225359,
-0.014813250862061977,
-0.015751304104924202,
-0.02886498160660267,
-0.011095383204519749,
0.036810602992773056,
0.025690512731671333,
-0.042652517557144165,
-0.008530167862772942,
-0.025821421295404434,
0.01387348584830761,
-0.04364959895610809,
0.05175233632326126,
0.011675441637635231,
-0.03627583757042885,
0.027328038588166237,
0.009018097072839737,
0.04009462147951126,
-0.006784890312701464,
-0.020502617582678795,
-0.038660403341054916,
-0.04595742002129555,
-0.03641216456890106,
0.002921126550063491,
-0.006249536294490099,
-0.015778591856360435,
0.0019372544484212995,
-0.007539699785411358,
-0.028816677629947662,
0.0017655607080087066,
-0.011272303760051727,
-0.04256870225071907,
0.027799971401691437,
0.0367838516831398,
-0.0363505557179451,
0.04103244096040726,
0.036991193890571594,
-0.04847854748368263,
-0.012167315930128098,
-0.039367541670799255,
0.02787211909890175,
0.02067149057984352,
-0.005894537549465895,
-0.07629446685314178,
0.028423605486750603,
0.031743887811899185,
0.010237583890557289,
-0.0032418915070593357,
0.0033032032661139965,
0.013688517734408379,
0.02606876939535141,
-0.02999739535152912,
-0.028500456362962723,
-0.03597448393702507,
0.0027520302683115005,
-0.0006828333716839552,
-0.023270348086953163,
-0.02325635403394699,
-0.04984556883573532,
-0.004061026964336634,
0.010003925301134586,
0.005515748634934425,
0.00836631003767252,
-0.024406978860497475,
-0.03871740400791168,
-0.011490761302411556,
0.046316660940647125,
0.029513558372855186,
0.007876272313296795,
-0.020585408434271812,
0.027057142928242683,
-0.02716129831969738,
0.0002480840194039047,
0.01103326678276062,
-0.019899604842066765,
0.00999116525053978,
0.015126748010516167,
0.050469741225242615,
0.04229111969470978,
0.005728619173169136,
0.037743452936410904,
-0.002365232678130269,
-0.027812346816062927,
0.018215006217360497,
-0.038840003311634064,
-0.012300314381718636,
-0.03359005227684975,
-0.014202102087438107,
0.01712644286453724,
-0.008007172495126724,
-0.03357677161693573,
0.01507777813822031,
0.0617753267288208,
0.007488693110644817,
-0.0328022725880146,
0.0560523197054863,
0.01606101542711258,
-0.007015031296759844,
-0.036869559437036514,
0.01734125055372715,
-0.01949097216129303,
0.014296870678663254,
-0.006326243281364441,
-0.03352886810898781,
0.0017652201931923628,
0.004649094771593809,
0.00953376479446888,
-0.013289284892380238,
0.020017817616462708,
0.018376117572188377,
0.02706553041934967,
-0.031043948605656624,
-0.0032177313696593046,
-0.01307459082454443,
-0.02160942181944847,
0.027594968676567078,
-0.045812785625457764,
0.03274988755583763,
0.015283879823982716,
0.004967674612998962,
0.03599397465586662,
0.009284339845180511,
-0.0036795088090002537,
-0.011135580018162727,
0.027283115312457085,
0.03469568490982056,
-0.019246086478233337,
-0.004578291438519955,
0.05245642736554146,
0.03445539250969887,
-0.024701863527297974,
-0.025571072474122047,
-0.030272766947746277,
-0.040350381284952164,
-0.009575912728905678,
-0.02408171258866787,
0.008041515946388245,
0.0585164800286293,
-0.002962606493383646,
-0.00432697543874383,
0.016129950061440468,
0.032288726419210434,
0.02870314195752144,
0.004972105845808983,
0.006776723545044661,
0.01646096259355545,
0.025777820497751236,
0.024138927459716797,
-0.017253877595067024,
-0.006033717654645443,
0.027091901749372482,
0.03674844279885292,
-0.06610287725925446,
0.0010961403604596853,
0.002599230268970132,
-0.0007335258414968848,
-0.0017738481983542442,
-0.027180328965187073,
-0.015726907178759575,
0.004882320296019316,
0.01181024219840765,
0.04702773317694664,
0.037033241242170334,
0.00917537696659565,
0.04142465069890022,
-0.031817708164453506,
0.013220218941569328,
0.0006330909673124552,
0.07239306718111038,
-0.01927991583943367,
0.05412022024393082,
0.019619662314653397,
0.03597332909703255,
0.014157076366245747,
0.028637323528528214,
0.03352918103337288,
0.020311350002884865,
0.07338260859251022,
0.021355213597416878,
0.03222322836518288,
0.0321444571018219,
0.02150055579841137,
-0.004571189638227224,
-0.014367913827300072,
-0.008339756168425083,
-0.004373979289084673,
0.020075850188732147,
0.05397767573595047,
-0.031162625178694725,
0.036448393017053604,
-0.02438909187912941,
0.043217919766902924,
0.08875131607055664,
0.025690054520964622,
-0.02613147720694542,
0.012774382717907429,
0.017695670947432518,
0.009698346257209778,
0.029960768297314644,
0.042364299297332764,
0.003866229671984911,
-0.002208702964708209,
0.006340680178254843,
0.012067935429513454,
0.030690426006913185,
0.0305283535271883,
0.015514206141233444,
0.014805641025304794,
-0.022435272112488747,
-0.018164608627557755,
0.013771560974419117,
-0.012057272717356682,
0.005849442910403013,
-0.004888470750302076,
-0.026116201654076576,
-0.034977301955223083,
0.03653263673186302,
-0.033564936369657516,
-0.0046189031563699245,
-0.014409716241061687,
-0.001902580028399825,
-0.023674674332141876,
0.01237550564110279,
-0.008626135997474194,
-0.0466991625726223,
0.005437211133539677,
0.011384005658328533,
0.01687546633183956,
0.009376756846904755,
-0.004665561486035585,
-0.02108636312186718,
-0.024166705086827278,
-0.022769678384065628,
0.00871692132204771,
-0.016634104773402214,
-0.008285272866487503,
-0.021558774635195732,
0.019930336624383926,
0.02493291348218918,
-0.003531811060383916,
0.03419321030378342,
0.05067652463912964,
0.006356216501444578,
-0.04230840876698494,
-0.007020425051450729,
0.013027898967266083,
-0.0415220744907856,
0.056547027081251144,
-0.03265204653143883,
0.03227609395980835,
0.015015576966106892,
0.014332383871078491,
0.028989287093281746,
0.041857071220874786,
0.008756959810853004,
-0.039020467549562454,
0.005624649114906788,
-0.014898696914315224,
-0.01742718741297722,
0.06320583075284958,
-0.025653284043073654,
-0.04011470451951027,
0.02550286427140236,
-0.01970549300312996,
-0.004401915241032839,
0.011078896932303905,
-0.03888193517923355,
0.06033077836036682,
-0.03990836814045906,
0.0023497373331338167,
0.034993287175893784,
0.04812275618314743,
0.030092118307948112,
0.03154688701033592,
0.039018888026475906,
-0.002431741449981928,
0.0040445709601044655,
-0.006689706817269325,
0.01726413518190384,
-0.021840808913111687,
-0.004176645074039698,
-0.011311264708638191,
-0.02464500069618225,
-0.00024004615261219442,
-0.01333669200539589,
-0.014398081228137016,
-0.0008583713206462562,
-0.024009333923459053,
0.008268073201179504,
0.009449752047657967,
-0.029044127091765404,
-0.02870611473917961,
-0.007034872192889452,
0.043433740735054016,
0.05420559644699097,
0.031601011753082275,
0.05040900781750679,
-0.03410128131508827,
-0.007504591718316078,
-0.048286207020282745,
0.042209550738334656,
0.06546187400817871,
0.03128771856427193,
0.00835098884999752,
-0.004537793807685375,
-0.009639663621783257,
0.030947839841246605,
-0.05575030297040939,
0.014797092415392399,
0.0011636059498414397,
0.010521688498556614,
-0.06399329006671906,
-0.0058643692173063755,
0.0018095752457156777,
0.03072280064225197,
0.08797559142112732,
-0.019933830946683884,
-0.031059391796588898,
-0.014863047748804092,
0.03048224002122879,
-0.03458603471517563,
-0.005094456486403942,
-0.03825671225786209,
0.005292845424264669,
0.02477514185011387,
0.006161839701235294,
0.035863377153873444,
-0.008490537293255329,
-0.020506668835878372,
0.010137505829334259,
-0.013091858476400375,
-0.03527325019240379,
-0.05040830746293068,
-0.008983374573290348,
0.0708237960934639,
-0.020972317084670067,
-0.012516113929450512,
0.04054756090044975,
0.007421846501529217,
-0.012364025227725506,
0.007314917631447315,
-0.02049589902162552,
0.007299042772501707,
0.006737501826137304,
0.01358275581151247,
-0.009757583029568195,
0.04100768268108368,
0.02179907076060772,
-0.025980880483984947,
-0.045072413980960846,
-0.008334765210747719
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Evaluation This is still relatively short training time for pretraining but we can already observe good downstream performance as compared to similar models. We evaluated the models on OpenAI's HumanEval benchmark that was introduced in the Codex paper. It measures the performance of code generation models on almost 200 coding challenges. Note that we trained CodeParrot on roughly 25-30B tokens whereas GPT-neo was trained on 300B tokens and Codex on 300B (GPT-3 checkpoint) + 100B (code) tokens. So you definitely get a good bang for your buck here. But what is this pass@k metric exactly? Simply put it measures the probability of at least one program passing the unittest of a programming problem given k candidate generations from the model. Naturally, the metric increases with k as more candidates can potentially solve the coding challenge. You can use the metric with datasets: Python from datasets import load_metric code_eval = datasets.load_metric("code_eval") test_cases = ["assert add(2,3)==5"] candidates = [["def add(a,b): return a*b", "def add(a, b): return a+b"]] pass_at_k, results = code_eval.compute(references=test_cases, predictions=candidates, k=[1, 2]) print(pass_at_k) # -> {'pass@1': 0.5, 'pass@2': 1.0} You can also load OpenAI's HumanEval dataset with datasets: Python from datasets import load_dataset dataset = load_dataset("openai_humaneval") Now let's have a look at what we get after anxiously waiting for so long! | [
0.04543846845626831,
-0.02618774026632309,
0.005363968200981617,
0.024465717375278473,
-0.024675333872437477,
0.08484567701816559,
0.06908952444791794,
-0.0006914009572938085,
-0.022473037242889404,
0.00010284269956173375,
0.010554169304668903,
0.025973433628678322,
-0.025891171768307686,
0.03749246150255203,
-0.003225434571504593,
-0.0361177921295166,
0.06932400166988373,
-0.051290303468704224,
0.023516494780778885,
-0.03325415030121803,
-0.057103898376226425,
-0.021908294409513474,
0.004220590926706791,
-0.007173617370426655,
0.003624289995059371,
-0.036901310086250305,
0.04297411069273949,
-0.027890034019947052,
-0.042000237852334976,
0.01922362484037876,
-0.10231475532054901,
-0.00006676032353425398,
0.027673160657286644,
-0.02033025026321411,
0.011544755659997463,
0.0006863668095320463,
-0.07169394940137863,
0.051828064024448395,
0.09952327609062195,
-0.024772677570581436,
0.03394853323698044,
-0.004666687920689583,
0.006766622886061668,
0.008237186819314957,
-0.049345385283231735,
0.005763545632362366,
-0.08598972111940384,
0.04583902284502983,
0.0017604860477149487,
-0.03382754698395729,
-0.04791097342967987,
0.03627568483352661,
-0.008535807952284813,
-0.0052182055078446865,
-0.0015260475920513272,
0.035367999225854874,
-0.013535416685044765,
-0.0498390719294548,
0.019157344475388527,
0.03311767429113388,
0.00917504820972681,
0.005058146547526121,
0.013917464762926102,
0.020392868667840958,
0.0441088005900383,
-0.012514871545135975,
0.022111672908067703,
0.10478037595748901,
-0.06522966921329498,
-0.0738479346036911,
0.00282308435998857,
-0.0911288931965828,
-0.03322644531726837,
-0.044322673231363297,
-0.04567966237664223,
-0.045909032225608826,
-0.033172253519296646,
0.008707519620656967,
0.03748452663421631,
0.030504733324050903,
-0.006688419729471207,
0.010275463573634624,
-0.022588862106204033,
-0.001107573974877596,
0.015346115455031395,
0.041316501796245575,
0.04209595173597336,
-0.039066918194293976,
-0.05800290405750275,
-0.013618296012282372,
-0.04216785728931427,
-0.08857522159814835,
0.044151682406663895,
0.007373082917183638,
0.03369643911719322,
-0.03170252963900566,
-0.030416160821914673,
0.08624815195798874,
-0.037092506885528564,
-0.0368744395673275,
-0.016544733196496964,
-0.06843709200620651,
-0.0020728139206767082,
-0.07101111859083176,
-0.08945458382368088,
0.03582346811890602,
0.0020271590910851955,
-0.10134144127368927,
-0.02785971388220787,
0.05751543492078781,
0.0017935446230694652,
0.03086579218506813,
-0.05937643349170685,
0.05882992222905159,
-0.0795135423541069,
0.019235584884881973,
-0.060115691274404526,
-0.00885558221489191,
-0.05312396585941315,
0.040237389504909515,
-0.011812351644039154,
0.013234377838671207,
0.011251846328377724,
0.022499019280076027,
0.016759801656007767,
0.03914743289351463,
0.0647113099694252,
0.06055327132344246,
0.0016253667417913675,
-0.042032886296510696,
0.020955048501491547,
-0.02930814027786255,
-0.011949548497796059,
0.03268370032310486,
-0.01740027219057083,
-0.0022867065854370594,
-0.05187647417187691,
-0.027091993018984795,
-0.028560301288962364,
-0.01628033258020878,
-0.0438651442527771,
0.010563310235738754,
0.020554417744278908,
0.019474035128951073,
0.06668728590011597,
0.04806879535317421,
-0.015943245962262154,
0.048955038189888,
0.06553029268980026,
0.011774294078350067,
-0.12068034708499908,
0.05498983711004257,
-0.053182605654001236,
-0.012550877407193184,
0.036053143441677094,
0.11911662667989731,
0.005136104300618172,
-0.03813226893544197,
-0.08413466066122055,
0.026560025289654732,
-0.0011826782720163465,
0.006053139455616474,
-0.023043237626552582,
-0.025231948122382164,
0.03353773429989815,
-0.02966860868036747,
0.0248390082269907,
0.00994288269430399,
-0.02275589480996132,
0.06108783185482025,
-0.01783837378025055,
-0.013700981624424458,
0.08886048197746277,
-0.02117200195789337,
-0.0045232018455863,
-0.015334226191043854,
0.0028768265619874,
0.012359322048723698,
0.048776332288980484,
-0.01023007370531559,
-0.05335152894258499,
0.03827144578099251,
-0.018544189631938934,
0.0654081404209137,
0.052699942141771317,
-0.1321728378534317,
-0.025943828746676445,
-0.08098730444908142,
0.01933080516755581,
0.0017623614985495806,
-0.028963306918740273,
0.0044301399029791355,
0.09387888759374619,
-0.09033235907554626,
0.03810703009366989,
-0.10334997624158859,
0.07943424582481384,
0.077646404504776,
0.046602632850408554,
0.04254110902547836,
0.01571066677570343,
0.03450997546315193,
0.07581076771020889,
-0.09247679263353348,
-0.05410162732005119,
0.0004992973990738392,
-0.03939415141940117,
-0.04188859090209007,
0.02718314900994301,
0.015077732503414154,
0.015189610421657562,
-0.05798063054680824,
-0.015772119164466858,
-0.018574798479676247,
-0.018571611493825912,
0.08691181987524033,
-0.012575803324580193,
0.029769156128168106,
-0.009868092834949493,
-0.012814284302294254,
0.182766392827034,
-0.05159006640315056,
0.020458664745092392,
-0.02044369839131832,
-0.020620452240109444,
0.04858444631099701,
0.08707434684038162,
0.06637135148048401,
0.022806180641055107,
-0.04361461102962494,
-0.025751132518053055,
-0.08891455829143524,
0.006077481433749199,
0.06190663203597069,
-0.04526500776410103,
-0.04740864783525467,
-0.003163576126098633,
-0.030801977962255478,
0.016457609832286835,
-0.06237686052918434,
-0.05224991589784622,
0.012728719972074032,
0.020052291452884674,
0.07425238937139511,
-0.0059674507938325405,
-0.04067845270037651,
0.06639605015516281,
-0.05110762640833855,
-0.02991788275539875,
-0.0863289013504982,
-0.043467313051223755,
0.0476139672100544,
0.011128331534564495,
-0.05920153111219406,
-0.0013557543279603124,
0.0021951079834252596,
-0.031729746609926224,
-0.017652131617069244,
-0.017587020993232727,
0.00034383509773761034,
0.000157582777319476,
-0.023131193593144417,
-0.06069416552782059,
-0.007524250540882349,
0.04422461986541748,
0.004129868932068348,
0.01412880327552557,
0.004662030376493931,
0.006556943990290165,
-0.025710301473736763,
-0.008969764225184917,
-0.03314226120710373,
0.014193659648299217,
0.007452040910720825,
-0.00014018439105711877,
0.03442465513944626,
-0.012202252633869648,
-0.042698077857494354,
-0.008942564018070698,
-0.04763393476605415,
-0.017245613038539886,
-0.049753885716199875,
-0.007006563246250153,
-0.0013294850941747427,
-0.004612959921360016,
0.020157411694526672,
-0.00922494288533926,
0.0052896603010594845,
0.0023703095503151417,
0.044873591512441635,
0.007408251520246267,
0.029572222381830215,
-0.036457404494285583,
-0.07953164726495743,
0.0055930656380951405,
-0.014903142116963863,
-0.015430936589837074,
-0.0328030027449131,
0.026169218122959137,
0.05221402272582054,
-0.021450860425829887,
-0.0010471898131072521,
-0.022150978446006775,
0.01712769828736782,
-0.014323047362267971,
0.02654268778860569,
-0.001159375300630927,
0.0576857253909111,
-0.0933256447315216,
0.037991806864738464,
0.018653500825166702,
0.0002145152393495664,
-0.009434974752366543,
-0.01712871342897415,
0.030943604186177254,
-0.009040892124176025,
-0.008345924317836761,
0.031142938882112503,
0.0027648508548736572,
0.002547538373619318,
0.008308335207402706,
0.010015936568379402,
-0.006743852514773607,
-0.006061306223273277,
0.0020118269603699446,
0.008222865872085094,
0.039229534566402435,
0.032393354922533035,
0.01878112182021141,
0.048607997596263885,
-0.058407559990882874,
0.033634528517723083,
-0.052520234137773514,
-0.009738019667565823,
0.012248698621988297,
0.006038594990968704,
0.016184937208890915,
-0.01380995474755764,
-0.004615753423422575,
-0.061867453157901764,
-0.025007909163832664,
0.045091815292835236,
-0.033373601734638214,
-0.017349788919091225,
0.005669150967150927,
0.045062318444252014,
-0.013689149171113968,
0.037951044738292694,
0.02476491592824459,
-0.05077585577964783,
-0.0031578941270709038,
-0.029935093596577644,
0.035070277750492096,
-0.011365837417542934,
0.013791426084935665,
0.006920325569808483,
0.031979646533727646,
-0.05205518752336502,
-0.05576713755726814,
0.04196339473128319,
-0.006788331549614668,
0.08871006220579147,
-0.0025912844575941563,
-0.01032489538192749,
0.004595527425408363,
0.0016737631522119045,
0.02814445272088051,
-0.01939241960644722,
-0.03930621221661568,
0.02120259962975979,
0.06546512991189957,
-0.00732267415151,
-0.016331735998392105,
0.011830679140985012,
-0.012436534278094769,
-0.00304487650282681,
-0.036168172955513,
0.043322205543518066,
0.011865654960274696,
0.04356536269187927,
-0.013099760748445988,
0.006810773629695177,
-0.027369458228349686,
-0.006465756334364414,
-0.03208982199430466,
0.024901697412133217,
0.04704630747437477,
0.05511988326907158,
-0.017993532121181488,
-0.08282019197940826,
-0.0267628263682127,
-0.01411325205117464,
-0.0077138240449130535,
0.011707888916134834,
0.02462291158735752,
-0.029058070853352547,
0.04127427935600281,
0.016838669776916504,
-0.013676880858838558,
-0.03166494891047478,
-0.003688089782372117,
0.03721302002668381,
-0.0008173680980689824,
-0.010470551438629627,
0.04205048829317093,
-0.008872520178556442,
-0.01106971874833107,
0.025097116827964783,
0.006782074458897114,
-0.0502450205385685,
0.02669658698141575,
-0.04144000634551048,
0.01594393514096737,
0.012064045295119286,
0.006895758677273989,
-0.00726864580065012,
0.0039548263885080814,
-0.025971081107854843,
0.012065456248819828,
-0.03628808632493019,
0.0012465707259252667,
-0.006980405189096928,
0.05195390060544014,
0.030517661944031715,
0.0032724933698773384,
0.004191124811768532,
0.00044369304669089615,
0.043377600610256195,
-0.03910789638757706,
-0.0076995487324893475,
0.0014719909522682428,
0.016710976138710976,
0.020680708810687065,
-0.0035898012574762106,
-0.009091265499591827,
-0.0007238588877953589,
0.036254268139600754,
-0.028890099376440048,
-0.011975150555372238,
0.0033562988974153996,
0.001217429991811514,
-0.04739421233534813,
-0.011786341667175293,
0.009817819111049175,
-0.012004668824374676,
-0.05814601480960846,
0.042736273258924484,
-0.009483013302087784,
0.007133956532925367,
-0.03216293454170227,
-0.021953914314508438,
0.007595008704811335,
0.011114739812910557,
-0.01494142971932888,
-0.03328195959329605,
-0.017275381833314896,
-0.03272521123290062,
0.000096545772976242,
0.02928045578300953,
0.002483396790921688,
-0.053943317383527756,
-0.027787402272224426,
0.04588395357131958,
0.014291534200310707,
-0.00812565814703703,
0.0010400707833468914,
0.00634014280512929,
0.020692234858870506,
0.0014957005623728037,
-0.014525240287184715,
-0.03965924307703972,
-0.01942702755331993,
-0.011785570532083511,
-0.02822018414735794,
0.01882905326783657,
-0.02638155408203602,
0.03356030955910683,
-0.06864636391401291,
0.013671278022229671,
0.0025509088300168514,
-0.006545756943523884,
-0.0325947143137455,
0.04738299176096916,
0.030451349914073944,
-0.01255998108536005,
0.004594258964061737,
-0.029438013210892677,
0.03408997133374214,
0.003949872218072414,
-0.02586231380701065,
0.03316790610551834,
0.017085542902350426,
-0.01037263497710228,
0.007594889495521784,
0.03516104072332382,
0.03471142426133156,
0.001206528628244996,
0.01080575305968523,
-0.0205469261854887,
-0.0250434260815382,
0.009066087193787098,
-0.04983287304639816,
0.00931716337800026,
0.015896689146757126,
-0.01724950224161148,
0.017349597066640854,
-0.03262191265821457,
-0.012780454009771347,
0.01719658076763153,
0.012063893489539623,
0.004064884502440691,
-0.010878446511924267,
0.04100637882947922,
0.03432430699467659,
-0.0166330449283123,
-0.0063941143453121185,
0.01796870492398739,
-0.027417931705713272,
0.009958740323781967,
-0.024704236537218094,
-0.07215476036071777,
0.005463829729706049,
0.019360551610589027,
-0.009920590557157993,
0.004313882905989885,
0.023762019351124763,
0.04166567698121071,
0.011153936386108398,
-0.01965586468577385,
-0.04446842148900032,
-0.011205596849322319,
-0.07380063086748123,
0.06254047155380249,
-0.033708781003952026,
-0.0005388756981119514,
-0.012423450127243996,
0.03200617432594299,
0.045721348375082016,
0.015778126195073128,
-0.028720673173666,
-0.022756192833185196,
0.03527297452092171,
0.02232551947236061,
-0.03225977346301079,
0.003887586062774062,
0.04255653917789459,
0.01860426366329193,
-0.028653303161263466,
-0.037875257432460785,
0.0069077881053090096,
0.004822817165404558,
-0.03035467118024826,
-0.048479270190000534,
0.05732118338346481,
0.014031372964382172,
-0.03363552689552307,
0.02737439237535,
-0.009681087918579578,
-0.0007671650964766741,
0.039943575859069824,
-0.00736785214394331,
0.02105061151087284,
0.02524312399327755,
0.04627552255988121,
0.003937111236155033,
-0.007773115299642086,
0.03055483102798462,
0.04176272079348564,
0.031088165938854218,
-0.04056886211037636,
-0.001572805573232472,
0.02747620828449726,
-0.01141413114964962,
-0.002584650879725814,
0.026015935465693474,
-0.07551976293325424,
0.04742090404033661,
0.04032127931714058,
0.04356632009148598,
-0.009403860196471214,
-0.013131805695593357,
0.0350826196372509,
0.010398579761385918,
-0.038929156959056854,
-0.05205867066979408,
0.04929491505026817,
-0.026439614593982697,
0.02207464724779129,
0.0344252847135067,
0.07314494997262955,
0.04027016460895538,
0.03330165147781372,
0.007912111468613148,
-0.0317448191344738,
0.03859730064868927,
0.047579627484083176,
0.011196116916835308,
0.029040535911917686,
0.02316884696483612,
-0.015427601523697376,
-0.05419407784938812,
-0.029586192220449448,
-0.004560687113553286,
0.04338402673602104,
0.029635528102517128,
-0.030615946277976036,
0.04309048876166344,
-0.007829613983631134,
0.051267992705106735,
0.030125439167022705,
0.01777217723429203,
0.0279532540589571,
0.060982368886470795,
0.059840355068445206,
-0.0026753214187920094,
-0.005885651335120201,
0.029582031071186066,
0.009419078007340431,
-0.0005995360552333295,
0.01643042080104351,
0.05705113336443901,
0.012812444008886814,
0.04386480152606964,
0.04616914317011833,
0.04654112458229065,
-0.013790317811071873,
0.010474352166056633,
0.015810832381248474,
-0.008613061159849167,
0.018480626866221428,
-0.005082331597805023,
-0.016733773052692413,
-0.02468908578157425,
-0.008032098412513733,
-0.03772125765681267,
-0.018924374133348465,
-0.017853204160928726,
-0.04115963354706764,
-0.02894052304327488,
0.024027114734053612,
0.018111789599061012,
-0.01947985775768757,
-0.0006807111785747111,
0.025181258097290993,
0.0004203403659630567,
0.06483721733093262,
-0.03597176447510719,
-0.03105735406279564,
-0.02941223233938217,
0.0004209288745187223,
-0.02614494599401951,
0.059322040528059006,
-0.006685030646622181,
0.019118918105959892,
0.03655325248837471,
0.007112601771950722,
-0.016120973974466324,
-0.008688658475875854,
0.035864222794771194,
0.02796698920428753,
-0.03348429873585701,
0.00674057612195611,
0.04331252723932266,
-0.05163319781422615,
0.044674698263406754,
-0.0215754397213459,
-0.013684614561498165,
-0.006539091467857361,
0.05219288915395737,
0.021176885813474655,
0.006332314573228359,
-0.01968134008347988,
-0.03421442583203316,
-0.030700478702783585,
0.005442604888230562,
-0.028049444779753685,
-0.006827052682638168,
0.011210928671061993,
0.015289920382201672,
-0.015624873340129852,
0.02772938273847103,
-0.0036622153129428625,
0.005585035774856806,
-0.009849710389971733,
0.02997523359954357,
-0.019493337720632553,
0.0018899636343121529,
0.018791738897562027,
0.001215871423482895,
0.016059139743447304,
0.05186291038990021,
0.044064734131097794,
-0.004332893993705511,
0.017627431079745293,
-0.0220298133790493,
-0.01836705580353737,
-0.03793206065893173,
-0.0002724944206420332,
0.016391195356845856,
0.005583537742495537,
-0.004929600283503532,
0.041478563100099564,
-0.020292285829782486,
0.007903965190052986,
-0.05517348274588585,
-0.00986267626285553,
-0.010049239732325077,
0.028101567178964615,
-0.03695834055542946,
0.015047190710902214,
0.019603027030825615,
-0.02085488848388195,
0.023591499775648117,
0.03306226432323456,
-0.02041010372340679,
-0.008107772096991539,
0.007097326684743166,
0.03045271709561348,
0.027979636564850807,
0.00849994458258152,
0.006816994398832321,
-0.005579604301601648,
0.05313287675380707,
-0.028885701671242714,
0.002571352059021592,
-0.02622608095407486,
0.0660620778799057,
0.005936808418482542,
0.023126685991883278,
0.006322245113551617,
0.027512269094586372,
-0.03577553853392601,
0.0428924560546875,
0.004535851534456015,
0.01642109453678131,
0.024762142449617386,
0.012740748934447765,
-0.05038975924253464,
-0.013135186396539211,
0.004471941851079464,
-0.00016678369138389826,
0.0447935089468956,
0.02455773577094078,
0.0159896370023489,
0.06942225992679596,
0.017433196306228638,
0.014147191308438778,
0.030206233263015747,
-0.04506337642669678,
-0.05635661259293556,
0.011519706808030605,
0.028492575511336327,
-0.018798796460032463,
-0.05016550049185753,
0.03978714346885681,
-0.0004938403726555407,
0.02613350935280323,
-0.028985312208533287,
0.026905711740255356,
0.024831179529428482,
-0.005054002162069082,
0.025748450309038162,
-0.007508713752031326,
0.035877324640750885,
0.06551326811313629,
-0.009297038428485394,
0.007059373427182436,
0.031395673751831055
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Initializing the Tokenizer and Model First we need a tokenizer. Let's train one specifically on code so it splits code tokens well. We can take an existing tokenizer (e.g. GPT-2) and directly train it on our own dataset with the train_new_from_iterator() method. We then push it to the Hub. Note that we omit imports, arguments parsing and logging from the code examples to keep the code blocks compact. But you'll find the full code including preprocessing and downstream task evaluation here. Python # Iterator for Training def batch_iterator(batch_size=10): for _ in tqdm(range(0, args.n_examples, batch_size)): yield [next(iter_dataset)["content"] for _ in range(batch_size)] # Base tokenizer tokenizer = GPT2Tokenizer.from_pretrained("gpt2") base_vocab = list(bytes_to_unicode().values()) # Load dataset dataset = load_dataset("lvwerra/codeparrot-clean", split="train", streaming=True) iter_dataset = iter(dataset) # Training and saving new_tokenizer = tokenizer.train_new_from_iterator(batch_iterator(), vocab_size=args.vocab_size, initial_alphabet=base_vocab) new_tokenizer.save_pretrained(args.tokenizer_name, push_to_hub=args.push_to_hub) Learn more about tokenizers and how to build them in the Hugging Face course. See that inconspicuous streaming=True argument? This small change has a big impact: instead of downloading the full (50GB) dataset this will stream individual samples as needed saving a lot of disk space! Checkout the Hugging Face course for more information on streaming. Now, we initialize a new model. We’ll use the same hyperparameters as GPT-2 large (1.5B parameters) and adjust the embedding layer to fit our new tokenizer also adding some stability tweaks. The scale_attn_by_layer_idx flag makes sure we scale the attention by the layer id and reorder_and_upcast_attn mainly makes sure that we compute the attention in full precision to avoid numerical issues. We push the freshly initialized model to the same repo as the tokenizer. Python # Load codeparrot tokenizer trained for Python code tokenization tokenizer = AutoTokenizer.from_pretrained(args.tokenizer_name) # Configuration config_kwargs = {"vocab_size": len(tokenizer), "scale_attn_by_layer_idx": True, "reorder_and_upcast_attn": True} # Load model with config and push to hub config = AutoConfig.from_pretrained('gpt2-large', **config_kwargs) model = AutoModelForCausalLM.from_config(config) model.save_pretrained(args.model_name, push_to_hub=args.push_to_hub) Now that we have an efficient tokenizer and a freshly initialized model we can start with the actual training loop. | [
0.03127981349825859,
-0.03644823282957077,
-0.027951771393418312,
0.003031621454283595,
0.018786221742630005,
0.09006115794181824,
-0.007233652751892805,
0.024762781336903572,
-0.029268937185406685,
-0.01496433187276125,
-0.0853438675403595,
0.0645148903131485,
0.008446943946182728,
0.057373881340026855,
-0.01237113494426012,
-0.04817896708846092,
0.06816326081752777,
-0.059179194271564484,
-0.014958218671381474,
0.009145562537014484,
0.027726413682103157,
-0.021846828982234,
0.03285714238882065,
0.000780593603849411,
0.027364157140254974,
-0.051373206079006195,
0.030525872483849525,
0.021458568051457405,
0.048297327011823654,
0.006423040758818388,
-0.11779870092868805,
-0.00565932085737586,
0.032308273017406464,
-0.007954391650855541,
0.009735645726323128,
0.03249373286962509,
-0.1032172217965126,
0.0334857702255249,
0.07080017030239105,
-0.021256567910313606,
-0.01893208548426628,
0.013475827872753143,
-0.047526706010103226,
0.028782334178686142,
-0.036883771419525146,
-0.003185197012498975,
-0.20258797705173492,
0.07674776017665863,
0.051594801247119904,
-0.042403992265462875,
-0.056700535118579865,
0.038378212600946426,
-0.004460910800844431,
0.006326222326606512,
-0.010707022622227669,
-0.03395194560289383,
-0.01714649610221386,
-0.07452943176031113,
-0.007966415025293827,
0.008621230721473694,
0.056402403861284256,
0.02018197812139988,
0.007959660142660141,
0.035585492849349976,
0.007655134424567223,
0.04809974506497383,
-0.04019041731953621,
0.010537093505263329,
-0.05837307497859001,
-0.059120990335941315,
0.007811942137777805,
-0.00974094495177269,
0.00737803615629673,
-0.031181050464510918,
-0.018810490146279335,
-0.030081437900662422,
-0.000541623099707067,
0.011340653523802757,
0.03683547303080559,
0.06650836765766144,
-0.025435207411646843,
0.04201384261250496,
-0.009912557899951935,
0.004989920184016228,
0.055733222514390945,
0.07976444810628891,
0.004044744651764631,
-0.04067867621779442,
-0.04765300825238228,
0.07361502945423126,
-0.08370319753885269,
-0.12976275384426117,
-0.017621824517846107,
-0.006745819468051195,
0.06017519161105156,
-0.010990039445459843,
0.006356595549732447,
0.06527959555387497,
0.027343139052391052,
-0.008480475284159184,
0.0019324993481859565,
-0.08940306305885315,
0.00500059500336647,
-0.0331241711974144,
-0.0004637379024643451,
0.051914867013692856,
-0.013609086163341999,
-0.06037463620305061,
-0.015614598989486694,
-0.006524566560983658,
0.05914941802620888,
-0.03200037404894829,
-0.05922747030854225,
0.061889149248600006,
-0.11068166792392731,
0.03604942560195923,
0.03400631621479988,
-0.01825387217104435,
-0.005047557409852743,
0.041705116629600525,
0.03270164132118225,
0.06887397170066833,
0.0886746421456337,
-0.0203707292675972,
-0.04378809779882431,
0.04846028611063957,
0.049892086535692215,
0.04643116891384125,
-0.019375557079911232,
-0.0394756942987442,
-0.018267467617988586,
0.007325892336666584,
0.049665190279483795,
-0.019507180899381638,
-0.01493472047150135,
-0.043008074164390564,
0.03764961287379265,
-0.05164435878396034,
0.01737876422703266,
-0.031161930412054062,
-0.06046345457434654,
0.10736333578824997,
-0.02846088446676731,
-0.011042512021958828,
0.04449467360973358,
0.05990416556596756,
-0.07563527673482895,
0.07774625718593597,
-0.002746549667790532,
-0.019752860069274902,
-0.12217213213443756,
0.018090369179844856,
-0.011423883028328419,
-0.0299369003623724,
0.04754435271024704,
0.04310218244791031,
-0.0456661581993103,
0.026712307706475258,
-0.04907376319169998,
0.0012257513590157032,
-0.008567199110984802,
0.007305925711989403,
-0.053421296179294586,
0.019386470317840576,
0.013004370033740997,
-0.04243788123130798,
0.010370411910116673,
0.025437749922275543,
0.04651346057653427,
-0.01905500702559948,
0.02592179737985134,
-0.02615439146757126,
0.02610412798821926,
-0.034653302282094955,
0.016318650916218758,
0.037008658051490784,
0.010047459043562412,
0.05476751923561096,
-0.012765994295477867,
-0.007747733034193516,
-0.0520443394780159,
0.07018453627824783,
-0.011383493430912495,
0.04559225216507912,
0.0562228187918663,
-0.0946926474571228,
-0.00846442487090826,
-0.0015586012741550803,
-0.05023999512195587,
0.03149557486176491,
-0.026498207822442055,
-0.024127377197146416,
0.029970185831189156,
-0.00764817139133811,
0.029134105890989304,
-0.07842281460762024,
-0.013690602965652943,
0.07742974907159805,
0.033505845814943314,
0.10023657977581024,
0.04215901345014572,
0.033453021198511124,
-0.008225309662520885,
-0.011070620268583298,
-0.03077937848865986,
0.0006293621845543385,
-0.00720126461237669,
-0.06273829191923141,
0.06279075145721436,
-0.00670261774212122,
0.006087062414735556,
-0.0986589789390564,
0.03972714766860008,
-0.09083490073680878,
0.020135998725891113,
0.0022963872179389,
-0.04693625122308731,
0.04751633480191231,
0.028148509562015533,
-0.03231925144791603,
0.1833276003599167,
-0.07643000036478043,
0.04344101995229721,
-0.010150814428925514,
-0.019501682370901108,
0.029622402042150497,
0.06370100378990173,
0.0399247370660305,
0.06169959902763367,
-0.0947774201631546,
-0.053485430777072906,
-0.08163733780384064,
-0.062234800308942795,
0.013410637155175209,
-0.008527800440788269,
0.00930597260594368,
0.036418452858924866,
0.00034777974360622466,
0.008731888607144356,
-0.03963332995772362,
0.002112604444846511,
-0.04613270238041878,
0.008693721145391464,
-0.03143113851547241,
0.00874712411314249,
0.04864318296313286,
0.07798416912555695,
-0.0061238473281264305,
-0.06737972795963287,
-0.08699692040681839,
-0.05357455462217331,
0.05888105183839798,
0.034795552492141724,
-0.03414251282811165,
-0.006193110719323158,
-0.00760948471724987,
-0.001124963746406138,
0.0041242134757339954,
0.003793744370341301,
0.027808597311377525,
0.01752522960305214,
0.016715964302420616,
-0.04637817293405533,
-0.03680335730314255,
-0.01977664977312088,
-0.03378250077366829,
-0.0380387045443058,
0.016691353172063828,
0.003370873862877488,
0.03088807687163353,
0.039063695818185806,
-0.0232748594135046,
0.02621493674814701,
0.00928416382521391,
0.002082094317302108,
0.04200711473822594,
-0.002606193767860532,
-0.026970116421580315,
-0.02848817966878414,
-0.005761983338743448,
0.007395315449684858,
-0.0559186153113842,
-0.029449420049786568,
0.02853304333984852,
0.023663002997636795,
0.0052816737443208694,
0.013341820798814297,
-0.0276491641998291,
-0.043095801025629044,
0.0630904957652092,
0.05123547464609146,
0.03547317534685135,
-0.0019809461664408445,
-0.011329767294228077,
-0.008628717623651028,
0.021627608686685562,
-0.005902426782995462,
-0.026695912703871727,
0.03620241582393646,
0.024176811799407005,
-0.037369027733802795,
-0.0021248487755656242,
-0.0010730016510933638,
0.010746115818619728,
-0.047347478568553925,
0.015730516985058784,
0.016692660748958588,
0.022860825061798096,
-0.09767907112836838,
-0.012377043254673481,
0.01888469234108925,
0.0034882097970694304,
-0.012307606637477875,
-0.020741097629070282,
0.06955753266811371,
-0.007877908647060394,
-0.0651513934135437,
-0.010452653281390667,
0.018797069787979126,
0.028618307784199715,
-0.027632474899291992,
0.014622762799263,
-0.01948552578687668,
-0.0005903773126192391,
-0.016891255974769592,
-0.033754415810108185,
0.044976856559515,
0.033776357769966125,
-0.043110914528369904,
0.02351204864680767,
0.00010530255531193689,
0.002459757262840867,
-0.004966664593666792,
-0.038053348660469055,
0.030570538714528084,
0.03348664194345474,
0.03281409665942192,
-0.010612605139613152,
-0.03548194840550423,
-0.04001419618725777,
0.004632256459444761,
0.018331734463572502,
-0.019495436921715736,
-0.011857175268232822,
0.042589835822582245,
0.008267574943602085,
-0.00878394115716219,
0.01750584878027439,
0.010401209816336632,
-0.022461434826254845,
0.013530929572880268,
-0.019600696861743927,
0.02580934576690197,
-0.0025607559364289045,
0.023798443377017975,
-0.01691616140305996,
0.02993166260421276,
-0.04462568089365959,
0.014117727987468243,
-0.024722935631871223,
0.03269403055310249,
0.03770744428038597,
0.0028334632515907288,
0.016554728150367737,
0.009082956239581108,
0.04765394702553749,
0.023644981905817986,
-0.01861908845603466,
-0.05117063596844673,
0.0028851258102804422,
-0.04003889486193657,
-0.04059569165110588,
-0.004506030585616827,
0.06087556853890419,
0.0006552411359734833,
0.01774035207927227,
0.0190372783690691,
0.051418133080005646,
-0.02654888853430748,
0.05526583269238472,
0.010899250395596027,
0.006993982009589672,
-0.028014732524752617,
0.007031874731183052,
-0.014971692115068436,
-0.03102736361324787,
0.05854212865233421,
0.059095349162817,
-0.0007985004922375083,
-0.0022625108249485493,
-0.00846425537019968,
-0.02891772985458374,
-0.023179996758699417,
0.014732345938682556,
0.05669691041111946,
-0.038741257041692734,
0.03216709941625595,
0.03679456561803818,
-0.011566191911697388,
-0.011953696608543396,
-0.00272658234462142,
-0.01425792183727026,
-0.013746940530836582,
-0.007263748440891504,
0.029780501499772072,
0.013634765520691872,
0.03786831349134445,
0.026171550154685974,
0.03235824406147003,
-0.0764712244272232,
0.005889614578336477,
0.0032582804560661316,
0.03911786526441574,
0.011526715010404587,
-0.05999060720205307,
-0.045304734259843826,
0.037722114473581314,
-0.011147178709506989,
-0.005230148788541555,
-0.024410154670476913,
-0.015832846984267235,
-0.018001127988100052,
0.05066541209816933,
0.026234565302729607,
-0.04118712991476059,
-0.015978708863258362,
0.0028121687937527895,
0.03361300379037857,
-0.02519834227859974,
0.027815604582428932,
-0.002268172102048993,
-0.029729651287198067,
0.022931046783924103,
0.0011002590181306005,
0.06726299226284027,
-0.004167666658759117,
0.02434558980166912,
0.023936161771416664,
-0.021471092477440834,
-0.01193813793361187,
0.03465693071484566,
-0.019655605778098106,
-0.014938835985958576,
-0.01703682169318199,
-0.029488738626241684,
-0.008271095342934132,
0.043563202023506165,
-0.02246939018368721,
-0.01362648420035839,
-0.027309255674481392,
0.028790246695280075,
-0.03227861225605011,
0.04888712987303734,
0.004124902188777924,
-0.041875213384628296,
0.005055333487689495,
0.013303922489285469,
0.0021784056443721056,
0.005970488768070936,
-0.0008494050125591457,
-0.04356462508440018,
0.03503623977303505,
0.04190735146403313,
-0.036729730665683746,
0.005247646477073431,
-0.011981245130300522,
0.027771933004260063,
0.023555710911750793,
-0.011476662941277027,
-0.012193167582154274,
-0.007315204944461584,
0.004899031948298216,
0.0016090511344373226,
-0.011433917097747326,
-0.006526183802634478,
-0.04610390588641167,
-0.007456893101334572,
0.01632922887802124,
-0.01828772760927677,
-0.008445493876934052,
-0.02172286994755268,
-0.0342731811106205,
0.022876547649502754,
0.06368522346019745,
0.05394499748945236,
0.046860601752996445,
-0.03598148003220558,
0.042956456542015076,
-0.021444862708449364,
-0.04334795102477074,
0.0023523522540926933,
-0.0057680620811879635,
-0.01515346672385931,
0.019456354901194572,
0.050107795745134354,
0.05944545939564705,
-0.012222059071063995,
0.03005307912826538,
-0.032776735723018646,
-0.018082566559314728,
0.030659181997179985,
-0.025387272238731384,
-0.02605665661394596,
-0.02891359105706215,
-0.03831876814365387,
0.00219546421431005,
-0.011574417352676392,
-0.04961906746029854,
-0.0016082392539829016,
0.06557489931583405,
-0.010655880905687809,
-0.014686133712530136,
0.0265703983604908,
0.006617976818233728,
-0.019582968205213547,
-0.044592369347810745,
0.02179107442498207,
-0.02323118969798088,
0.0022756631951779127,
-0.004734219517558813,
-0.014922301284968853,
-0.0031836756970733404,
-0.008058971725404263,
0.009760914370417595,
-0.011148200370371342,
0.04455331340432167,
0.02025502733886242,
0.050136543810367584,
-0.024444574490189552,
-0.022888511419296265,
-0.04540208727121353,
-0.03448362648487091,
0.001431708806194365,
-0.03266259282827377,
0.028066925704479218,
0.037952691316604614,
0.0021191283594816923,
0.04645596444606781,
0.0036945659667253494,
-0.033414773643016815,
0.000839301326777786,
0.055506326258182526,
0.014273560605943203,
-0.026067622005939484,
-0.01673191227018833,
0.02170836552977562,
0.034820251166820526,
-0.04310806095600128,
0.026803217828273773,
-0.006149476859718561,
-0.029209766536951065,
-0.003858579322695732,
-0.05372724309563637,
0.04426305368542671,
0.04819047823548317,
-0.019288860261440277,
0.0046759783290326595,
0.013822325505316257,
0.03719480708241463,
0.002951113972812891,
-0.027156759053468704,
-0.006436606403440237,
0.0231274776160717,
-0.0033900453709065914,
0.02473931945860386,
0.009986965917050838,
-0.01354223396629095,
0.011483387090265751,
0.007436888292431831,
-0.06877178698778152,
0.02191922254860401,
0.014972480945289135,
-0.008426113054156303,
0.023883186280727386,
-0.008003921248018742,
-0.018463782966136932,
0.002498246729373932,
0.014742796309292316,
0.032252777367830276,
0.01697923243045807,
-0.024575088173151016,
0.008830506354570389,
-0.028025299310684204,
0.010714267380535603,
-0.012963715009391308,
0.04443168640136719,
-0.0472702719271183,
0.05679101496934891,
0.022659333422780037,
0.02144940197467804,
0.055361565202474594,
0.009496254846453667,
0.012931925244629383,
0.020486129447817802,
0.038802143186330795,
0.026454947888851166,
-0.014556363224983215,
0.025432564318180084,
0.02552494779229164,
-0.010262948460876942,
-0.04325197637081146,
0.02729533612728119,
0.0013662816490978003,
0.032788075506687164,
0.01864585466682911,
-0.01566915027797222,
0.009049994871020317,
-0.005650519393384457,
0.05007755011320114,
0.030010920017957687,
0.0069428058341145515,
-0.02030162140727043,
0.035864874720573425,
0.04467393830418587,
0.018490487709641457,
0.01796216331422329,
0.04097635671496391,
0.006842776667326689,
-0.009736370295286179,
0.02899128384888172,
0.04655016213655472,
0.008087549358606339,
-0.00865983497351408,
0.010246586054563522,
0.03624190762639046,
-0.007842270657420158,
-0.03973514586687088,
-0.006714117247611284,
0.012352490797638893,
0.0030186644289642572,
-0.017042994499206543,
0.01397056132555008,
-0.034117043018341064,
0.012450408190488815,
-0.029948323965072632,
-0.008235814981162548,
0.007502587046474218,
-0.02206430956721306,
-0.00849600974470377,
0.0633351281285286,
0.0013870183611288667,
-0.04311962053179741,
0.03288637101650238,
0.0004027056274935603,
0.01582147181034088,
0.018151530995965004,
-0.019995037466287613,
-0.03842955455183983,
-0.01410439983010292,
0.0014748062239959836,
-0.004233925603330135,
0.008521761745214462,
0.00009388948092237115,
-0.00876594241708517,
0.008190115913748741,
0.03536611795425415,
-0.0098273241892457,
0.04350339621305466,
0.024202996864914894,
0.007113488391041756,
0.005379295442253351,
-0.006022867280989885,
0.01205153577029705,
-0.01959284394979477,
0.024772269651293755,
-0.03647974133491516,
0.009707290679216385,
-0.024584241211414337,
0.034178320318460464,
0.03599785268306732,
0.03762730583548546,
-0.012497760355472565,
-0.045981552451848984,
-0.010961653664708138,
-0.046179819852113724,
-0.02537672407925129,
0.04305155947804451,
-0.024544013664126396,
-0.01675659976899624,
0.04183454439043999,
-0.01074275840073824,
-0.042221128940582275,
-0.021983405575156212,
0.0035970532335340977,
0.046358875930309296,
-0.009494462050497532,
0.0009609611006453633,
-0.005260977428406477,
0.05698193237185478,
0.026079893112182617,
0.0043744491413235664,
0.02027401514351368,
-0.004680550657212734,
0.012682262808084488,
-0.02044871263206005,
0.029628919437527657,
-0.05795127898454666,
-0.015848511829972267,
-0.017347052693367004,
-0.04442004859447479,
-0.01951066590845585,
-0.012673700228333473,
-0.03066013939678669,
0.012993894517421722,
-0.029663681983947754,
-0.007185840047895908,
-0.04243553429841995,
-0.006554748862981796,
-0.009177247062325478,
-0.0022981350775808096,
0.063928984105587,
0.013393823057413101,
0.03585001826286316,
0.0608048178255558,
-0.0417361781001091,
0.0247527863830328,
-0.0021729376167058945,
0.029545575380325317,
0.029591642320156097,
0.034433577209711075,
-0.029377084225416183,
-0.011181126348674297,
0.005316728726029396,
0.015332062728703022,
-0.034479450434446335,
0.04370143264532089,
0.004316899925470352,
-0.015496588312089443,
-0.03169217333197594,
0.015528999269008636,
0.005557689815759659,
0.01552716176956892,
0.025785529986023903,
-0.001935692154802382,
-0.04011029005050659,
0.005127572454512119,
0.028798533603549004,
-0.06008748710155487,
-0.005267055239528418,
-0.0350387804210186,
-0.0020100707188248634,
0.005224261898547411,
0.009167117066681385,
0.0008343406370840967,
0.010685855522751808,
-0.06194895878434181,
-0.0007448192918673158,
0.026035785675048828,
-0.01964621990919113,
-0.019920244812965393,
0.011611266992986202,
0.048278678208589554,
-0.012962358072400093,
-0.024519771337509155,
0.030799297615885735,
0.027517259120941162,
-0.03516446426510811,
0.015613860450685024,
0.005762655287981033,
0.029077021405100822,
-0.006732875946909189,
0.006380174774676561,
-0.017377788200974464,
0.03227074071764946,
0.022219348698854446,
-0.048878319561481476,
-0.018954992294311523,
0.015291161835193634
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | Creating a Large Dataset of Source Code The first thing we need is a large training dataset. With the goal to train a Python code generation model, we accessed the GitHub dump available on Google's BigQuery and filtered for all Python files. The result is a 180 GB dataset with 20 million files (available here). After initial training experiments, we found that the duplicates in the dataset severely impacted the model performance. Further investigating the dataset we found that: - 0.1% of the unique files make up 15% of all files - 1% of the unique files make up 35% of all files - 10% of the unique files make up 66% of all files You can learn more about our findings in this Twitter thread. We removed the duplicates and applied the same cleaning heuristics found in the Codex paper. Codex is the model behind CoPilot and is a GPT-3 model fine-tuned on GitHub code. The cleaned dataset is still 50GB big and available on the Hugging Face Hub: codeparrot-clean. With that we can setup a new tokenizer and train a model. | [
-0.048713069409132004,
-0.0009441744186915457,
-0.0581764280796051,
0.01929958164691925,
0.030184099450707436,
0.02301214076578617,
0.00016157972277142107,
-0.03230797499418259,
0.00671899551525712,
-0.014740858227014542,
-0.06254090368747711,
-0.00876234844326973,
-0.04875064268708229,
0.05535531044006348,
0.03836169093847275,
-0.06968887150287628,
0.013354857452213764,
-0.03337832912802696,
-0.03381975367665291,
0.02237536385655403,
-0.010391495190560818,
-0.03776920586824417,
0.03022478148341179,
0.020353540778160095,
-0.017841782420873642,
-0.025776520371437073,
0.020800866186618805,
-0.015324285253882408,
0.024349404498934746,
0.048736006021499634,
-0.1168380081653595,
0.03091130033135414,
0.011625973507761955,
0.018085166811943054,
-0.039610251784324646,
0.04798131436109543,
-0.11861155182123184,
0.03820846229791641,
0.08957940340042114,
-0.012828436680138111,
0.0081794997677207,
-0.0007022913778200746,
-0.08275455981492996,
0.06021282449364662,
-0.027046089991927147,
0.0025342272128909826,
-0.07669837027788162,
0.06707219779491425,
0.0008295988664031029,
-0.04609033092856407,
-0.049190253019332886,
0.046660590916872025,
-0.025237344205379486,
-0.05277479067444801,
-0.014049284160137177,
0.03320828452706337,
0.023834072053432465,
-0.030867449939250946,
-0.05260791629552841,
0.0675707757472992,
0.011987444944679737,
0.0004967202548868954,
0.09556771069765091,
0.06432617455720901,
0.029015567153692245,
-0.037997882813215256,
-0.05270808935165405,
0.04506383463740349,
-0.051118459552526474,
-0.01810404472053051,
0.035664353519678116,
-0.0004423724312800914,
0.014531939290463924,
-0.02532142773270607,
-0.12281445413827896,
0.03712122142314911,
0.007590118329972029,
0.04810583218932152,
0.06969065219163895,
0.026470089331269264,
0.030917732045054436,
0.0834321528673172,
-0.029791545122861862,
-0.0242680124938488,
0.06854116916656494,
0.03828579559922218,
-0.016744496300816536,
-0.055614884942770004,
-0.07199867069721222,
0.02636805735528469,
0.005061453208327293,
-0.0805138424038887,
-0.012866897508502007,
0.038326509296894073,
0.04198774695396423,
0.0007021222845651209,
0.029259543865919113,
0.021763624623417854,
0.028289761394262314,
-0.003259257646277547,
-0.06071823090314865,
-0.02654072642326355,
-0.07580913603305817,
-0.053595658391714096,
-0.039260685443878174,
0.020822798833251,
-0.049041975289583206,
-0.046154797077178955,
0.005581310018897057,
0.01295049674808979,
0.014563622884452343,
-0.04481477662920952,
-0.08713590353727341,
0.030631713569164276,
-0.10018162429332733,
0.05723261088132858,
-0.0273418091237545,
-0.03895087167620659,
-0.036767762154340744,
-0.016541939228773117,
-0.051389146596193314,
0.0505327507853508,
0.027169423177838326,
0.009016676805913448,
-0.0026262388564646244,
0.04904615506529808,
-0.008113322779536247,
0.05811602622270584,
-0.02909238263964653,
-0.08322318643331528,
-0.005787238944321871,
0.014318563044071198,
0.00850502960383892,
-0.017610440030694008,
0.027255188673734665,
-0.03159065917134285,
0.0053449952974915504,
-0.0018244574312120676,
0.02174052968621254,
0.03920997679233551,
-0.02079446241259575,
0.0759616568684578,
-0.039981648325920105,
0.00041205331217497587,
0.019701095297932625,
0.06386233866214752,
-0.050699688494205475,
0.054526083171367645,
0.01751185953617096,
0.02613331936299801,
-0.09846211969852448,
0.10875794291496277,
-0.04006616398692131,
-0.04957403615117073,
0.05813273787498474,
0.051023103296756744,
-0.029422584921121597,
-0.026341833174228668,
-0.04324524849653244,
-0.007037518545985222,
0.051760751754045486,
0.002755315974354744,
-0.04794887453317642,
-0.003758818842470646,
-0.022399794310331345,
-0.04060970991849899,
-0.029359981417655945,
0.059838131070137024,
-0.012571437284350395,
0.1188252791762352,
-0.046130429953336716,
0.003283851081505418,
0.04397163167595863,
-0.0262911319732666,
0.037404607981443405,
-0.010752257890999317,
0.07231703400611877,
-0.007803094107657671,
-0.0015137612354010344,
-0.027489015832543373,
-0.0548151358962059,
0.02035565674304962,
0.027863778173923492,
0.013449243269860744,
0.06102574244141579,
-0.08635741472244263,
0.053340326994657516,
-0.03979317098855972,
-0.012027044780552387,
0.006061912514269352,
-0.04269237071275711,
-0.02204466611146927,
0.09674171358346939,
-0.007122335955500603,
0.0517694354057312,
-0.06618183106184006,
0.07745005935430527,
0.10522745549678802,
0.10271823406219482,
0.026723334565758705,
-0.022767670452594757,
-0.008339420892298222,
0.03145000711083412,
-0.03610162436962128,
0.030431170016527176,
-0.002086307154968381,
-0.04107799753546715,
-0.03129119053483009,
0.028740227222442627,
-0.031841084361076355,
0.04500813037157059,
-0.09768082201480865,
0.006845388095825911,
-0.05341062694787979,
-0.014076465740799904,
-0.03384361043572426,
-0.014113308861851692,
0.027930347248911858,
0.04405450075864792,
0.0040006982162594795,
0.17235557734966278,
-0.044196318835020065,
-0.018258478492498398,
0.008665488101541996,
-0.004871922545135021,
0.04817802459001541,
0.049504391849040985,
0.0634763166308403,
0.06217455118894577,
-0.08859261125326157,
-0.03580591827630997,
-0.056794632226228714,
-0.04351802542805672,
0.010409458540380001,
-0.06459466367959976,
-0.05247548222541809,
0.03088362328708172,
0.014517536386847496,
-0.008735756389796734,
-0.0013976378832012415,
-0.0019451065454632044,
0.011264275759458542,
-0.03173696622252464,
-0.0132373608648777,
0.04822835698723793,
-0.03374549746513367,
0.08352390676736832,
-0.028141668066382408,
0.03261695057153702,
-0.05221237242221832,
-0.007309990469366312,
0.06595087796449661,
-0.007976123131811619,
-0.001017780159600079,
-0.004832119215279818,
-0.04497508704662323,
0.0020763399079442024,
-0.05115308240056038,
-0.020745908841490746,
0.056273508816957474,
0.0207529217004776,
0.03851991519331932,
-0.08049646019935608,
-0.040458500385284424,
0.038129210472106934,
0.009465271607041359,
-0.007207718677818775,
-0.01462981291115284,
0.008488924242556095,
-0.012490150518715382,
-0.015094595961272717,
-0.02671889215707779,
0.0301979947835207,
0.017585719004273415,
0.017366699874401093,
0.03353723883628845,
-0.015308035537600517,
-0.025014318525791168,
-0.03919493034482002,
-0.034277431666851044,
-0.02857816591858864,
-0.04731878265738487,
-0.019182899966835976,
-0.00816230196505785,
0.014023956842720509,
0.031403690576553345,
0.001682473230175674,
-0.03139490261673927,
-0.03317464143037796,
0.01800430752336979,
0.04595046117901802,
0.04034097120165825,
0.003538105171173811,
-0.04722689464688301,
-0.02962885983288288,
-0.009666538797318935,
-0.037501752376556396,
-0.020765116438269615,
0.0016410598764196038,
0.05433599278330803,
-0.044528406113386154,
0.0036758598871529102,
0.007154800463467836,
-0.054944735020399094,
-0.013524413108825684,
0.04228823632001877,
0.01781604252755642,
0.011907318606972694,
-0.0723981112241745,
0.007931786589324474,
-0.0026837047189474106,
-0.046084269881248474,
-0.007079103030264378,
-0.018001876771450043,
0.06830219179391861,
0.02847406268119812,
0.016870377585291862,
0.013218003325164318,
0.002099202712997794,
0.009932366199791431,
0.021283986046910286,
0.038923874497413635,
0.015446326695382595,
-0.013461836613714695,
-0.05934916064143181,
-0.011773817241191864,
0.03862406685948372,
0.03325565531849861,
-0.01923934370279312,
-0.0105062834918499,
-0.013703334145247936,
0.013470546342432499,
-0.006225866731256247,
-0.01837516389787197,
0.007246154826134443,
0.020438630133867264,
0.018995579332113266,
-0.01324477605521679,
-0.010866173543035984,
-0.03792901709675789,
0.004548931494355202,
0.03058476187288761,
-0.03786502778530121,
0.010472284629940987,
0.009524794295430183,
0.018561143428087234,
-0.0021172326523810625,
0.03285274654626846,
0.024927396327257156,
-0.02370138093829155,
0.009373432956635952,
0.013228998519480228,
0.04573624208569527,
-0.0018121342873200774,
-0.01271841675043106,
-0.009431460872292519,
0.035762738436460495,
-0.07659154385328293,
-0.004874345846474171,
-0.00294312322512269,
0.014294679276645184,
0.058417174965143204,
0.023566095158457756,
-0.01693497784435749,
0.05780349671840668,
0.011229872703552246,
0.023131832480430603,
-0.007045515812933445,
-0.02578573487699032,
-0.0027852789498865604,
-0.013378364965319633,
-0.029085587710142136,
0.02815990336239338,
0.04447753354907036,
-0.010797928087413311,
-0.05141565948724747,
-0.041857242584228516,
0.0687250941991806,
-0.0031747939065098763,
0.019890878349542618,
-0.011553111486136913,
-0.003345710691064596,
-0.06446710973978043,
0.00006192846194608137,
-0.02278328500688076,
-0.031198473647236824,
0.0396907813847065,
0.05810666084289551,
-0.04733140021562576,
-0.043307140469551086,
-0.06424549221992493,
-0.034987226128578186,
0.01455404981970787,
-0.004964910447597504,
0.009570694528520107,
-0.07217837125062943,
0.013992131687700748,
-0.026115553453564644,
-0.010342477820813656,
-0.04376642405986786,
-0.03518044576048851,
0.017752936109900475,
0.01919161155819893,
-0.00536232627928257,
0.01324118860065937,
0.04457910731434822,
0.015027164481580257,
-0.013607749715447426,
0.008248401805758476,
-0.02375965751707554,
-0.0233710128813982,
-0.0540943518280983,
0.00326853571459651,
0.026969952508807182,
-0.03945210576057434,
0.014074333943426609,
0.02647024765610695,
0.04202638193964958,
0.01750374026596546,
0.002573179081082344,
0.0090041384100914,
-0.04226880148053169,
0.03183489665389061,
0.061002735048532486,
0.0037990675773471594,
-0.01686190813779831,
-0.013723907060921192,
0.01650073565542698,
-0.010241453535854816,
0.017160657793283463,
0.030229052528738976,
-0.012182346545159817,
0.018753759562969208,
0.014456242322921753,
0.027088718488812447,
-0.02493290975689888,
0.01287019345909357,
-0.002546742558479309,
-0.008775015361607075,
0.004793785512447357,
0.02148732915520668,
-0.013024580664932728,
-0.04046209901571274,
0.014709136448800564,
-0.024403097108006477,
-0.03182760253548622,
0.008412567898631096,
-0.018668919801712036,
0.019218429923057556,
0.01941601186990738,
0.007165278773754835,
-0.044363584369421005,
0.011703644879162312,
-0.015304993838071823,
0.01485516782850027,
-0.03955435752868652,
-0.014498933218419552,
-0.03694579377770424,
-0.003076956607401371,
0.0011890981113538146,
-0.033989518880844116,
0.007517646532505751,
0.0032491206657141447,
-0.014708050526678562,
0.015363846905529499,
0.03840070590376854,
0.013006558641791344,
0.008741040714085102,
-0.007162753026932478,
0.005373416468501091,
-0.006549112964421511,
-0.003214381169527769,
0.02848065085709095,
0.034623268991708755,
0.03907348960638046,
-0.03898027911782265,
-0.01717747561633587,
-0.0056511033326387405,
-0.0281695444136858,
0.0489361509680748,
0.013835139572620392,
-0.01840439811348915,
0.03622635453939438,
0.06717751175165176,
0.045932382345199585,
0.03997454419732094,
-0.05935297906398773,
0.020537255331873894,
-0.03375587984919548,
-0.014670826494693756,
0.013832314871251583,
0.005488000810146332,
0.025016989558935165,
0.06557594984769821,
0.041623108088970184,
0.09378185868263245,
-0.023875994607806206,
0.0028562252409756184,
-0.023668965324759483,
-0.05404981970787048,
0.014255180023610592,
-0.018409565091133118,
-0.012632101774215698,
-0.03257272392511368,
0.013747971504926682,
0.015136473812162876,
-0.007525385823100805,
-0.03399181738495827,
0.0024573432747274637,
0.0357850156724453,
0.01549975760281086,
0.016223812475800514,
0.011049116030335426,
0.05597995966672897,
-0.016578517854213715,
-0.007872095331549644,
0.04450731724500656,
-0.021997636184096336,
0.00013737299013882875,
-0.009051344357430935,
-0.05121364817023277,
-0.026873348280787468,
-0.02707694098353386,
-0.017656920477747917,
-0.000759983726311475,
0.009674540720880032,
-0.011816981248557568,
0.028502481058239937,
-0.0842224508523941,
-0.02155371382832527,
-0.0026602859143167734,
-0.010893643833696842,
-0.0011515989899635315,
-0.01074350904673338,
-0.00012476558913476765,
0.025754617527127266,
0.0196994636207819,
-0.009708552621304989,
-0.001317633781582117,
0.0031948378309607506,
-0.005284349899739027,
0.0478690080344677,
0.0016377605497837067,
0.020017031580209732,
-0.01658315770328045,
0.0277634859085083,
0.014500068500638008,
-0.017290031537413597,
-0.016971241682767868,
-0.01319507323205471,
-0.027099551633000374,
-0.007962373085319996,
-0.057011719793081284,
0.04466832056641579,
0.0037508744280785322,
-0.01610160432755947,
0.026041194796562195,
-0.001989315962418914,
0.0177733413875103,
0.020643746480345726,
-0.008669843897223473,
0.004568863194435835,
0.011028686538338661,
0.018904581665992737,
0.015360409393906593,
-0.03362608700990677,
-0.007675603963434696,
0.014547005295753479,
0.024539759382605553,
-0.03809008747339249,
0.027758769690990448,
-0.0047487360425293446,
-0.021895239129662514,
-0.01724351942539215,
-0.00001728052484395448,
-0.036222491413354874,
0.0306477602571249,
-0.02898016944527626,
0.07502595335245132,
0.008131269365549088,
0.00963966827839613,
-0.02086954563856125,
-0.027011988684535027,
-0.007728636730462313,
0.018191514536738396,
0.050660815089941025,
0.02040964551270008,
0.06494589895009995,
0.006066122092306614,
0.03321881592273712,
0.07331210374832153,
-0.017214080318808556,
0.027648912742733955,
0.00514641497284174,
0.029826419427990913,
0.0400242954492569,
-0.009074240922927856,
0.023726195096969604,
-0.027768710628151894,
0.004253889434039593,
-0.0900103822350502,
0.006806213408708572,
-0.0010704334126785398,
0.014527996070683002,
0.0367647148668766,
-0.03211564943194389,
0.0005019032396376133,
-0.00627494789659977,
0.04362901300191879,
0.021525494754314423,
0.007756368722766638,
0.040599364787340164,
0.05565273016691208,
0.03692075237631798,
-0.011779900640249252,
0.017018085345625877,
0.04881729558110237,
0.035506896674633026,
-0.018374184146523476,
0.03315574303269386,
0.06874909996986389,
0.016312818974256516,
0.041527196764945984,
0.00875002983957529,
0.018807314336299896,
-0.03057749569416046,
-0.004175699781626463,
-0.0009915505070239305,
-0.04554389789700508,
0.003301484975963831,
-0.015527949668467045,
0.01443476602435112,
-0.038818925619125366,
0.023906394839286804,
-0.07939251512289047,
0.0010143392719328403,
-0.04371842369437218,
-0.025170372799038887,
-0.04017214477062225,
0.0019162852549925447,
0.007810126058757305,
-0.009435134008526802,
0.024022120982408524,
-0.009535690769553185,
0.05855485051870346,
0.05366017296910286,
-0.02019430324435234,
-0.044907499104738235,
-0.008722759783267975,
-0.02716740593314171,
0.01863488368690014,
0.0601416751742363,
-0.003069133497774601,
-0.025556394830346107,
0.018113451078534126,
0.01891709491610527,
0.009526657871901989,
0.019380906596779823,
0.0035194081719964743,
0.04404788464307785,
-0.053596869111061096,
0.03750938922166824,
0.01593499816954136,
-0.048430152237415314,
0.03929312154650688,
-0.0025975541211664677,
-0.02011469192802906,
-0.007782379165291786,
0.05233772099018097,
0.01095422264188528,
0.025215838104486465,
0.026621902361512184,
-0.0405382439494133,
-0.02524811215698719,
0.016555361449718475,
-0.0249688308686018,
0.06913277506828308,
-0.020760102197527885,
0.01719117909669876,
0.017835251986980438,
-0.023669108748435974,
0.053265467286109924,
-0.016090450808405876,
-0.028615213930606842,
0.04060719534754753,
-0.011947223916649818,
-0.017999641597270966,
0.0056931390427052975,
0.0441855750977993,
0.03518848866224289,
-0.0034753591753542423,
0.05284041911363602,
0.02409512735903263,
0.01780298724770546,
-0.054620612412691116,
0.02695159800350666,
-0.028703775256872177,
0.005982292350381613,
-0.022639140486717224,
-0.05611230805516243,
0.0032526508439332247,
-0.017913339659571648,
-0.010041172616183758,
-0.005000678356736898,
-0.024368710815906525,
-0.03007870353758335,
-0.04612453281879425,
0.00338179268874228,
-0.030732668936252594,
-0.025140948593616486,
0.02764090709388256,
0.022027449682354927,
0.022218162193894386,
0.02990265004336834,
0.00655207596719265,
0.02124307118356228,
-0.015312246978282928,
0.0194828100502491,
0.019166093319654465,
0.026975009590387344,
-0.006521827075630426,
-0.005853159353137016,
0.014009417966008186,
-0.0019121801014989614,
-0.007474103476852179,
0.009043728932738304,
0.016455378383398056,
0.007604601327329874,
-0.018267052248120308,
0.02155645191669464,
0.058471981436014175,
-0.028991099447011948,
-0.00762345502153039,
-0.044920727610588074,
-0.011013398878276348,
0.014702333137392998,
0.017423462122678757,
-0.036019276827573776,
-0.009803914465010166,
-0.002625388326123357,
-0.014154314994812012,
0.022160179913043976,
0.024872709065675735,
0.004258323460817337,
0.02953869290649891,
0.0020528356544673443,
-0.01363611500710249,
0.040021862834692,
-0.040734242647886276,
-0.020678525790572166,
-0.014480449259281158,
0.02284511737525463,
-0.007452051620930433,
0.0029552599880844355,
0.02857900969684124,
0.00946472305804491,
0.002760480158030987,
-0.0025043052155524492,
0.017273876816034317,
0.027253467589616776,
-0.02009577490389347,
-0.0013303469168022275,
-0.05863594263792038,
0.025459233671426773,
0.025580761954188347,
-0.014497257769107819,
-0.0060522849671542645,
-0.0015631060814484954
] |
Training CodeParrot 🦜 from Scratch | lvwerra | December 8, 2021 | codeparrot | guide, research, nlp | https://huggingface.co/blog/codeparrot | # Training CodeParrot 🦜 from Scratch In this blog post we'll take a look at what it takes to build the technology behind GitHub CoPilot, an application that provides suggestions to programmers as they code. In this step by step guide, we'll learn how to train a large GPT-2 model called CodeParrot 🦜, entirely from scratch. CodeParrot can auto-complete your Python code - give it a spin here. Let's get to building it from scratch! | [
0.01789632812142372,
-0.033779632300138474,
-0.022835291922092438,
0.04213113710284233,
0.06872288882732391,
0.04822186008095741,
-0.011524375528097153,
0.0035332448314875364,
0.0033387213479727507,
-0.012354712001979351,
-0.05171748250722885,
0.03882017359137535,
-0.05322359502315521,
0.034664902836084366,
0.031168179586529732,
-0.01342479046434164,
0.018929271027445793,
-0.04045123979449272,
-0.06270816922187805,
0.02646857313811779,
-0.06173425167798996,
-0.0030042058788239956,
0.015362138859927654,
0.008036607876420021,
-0.010077403858304024,
-0.023418523371219635,
0.024952908977866173,
-0.005438171327114105,
0.024567190557718277,
0.015974191948771477,
-0.07830855250358582,
0.01166024524718523,
0.009315874427556992,
-0.05121033266186714,
-0.0402245931327343,
0.03454698994755745,
-0.05309135466814041,
0.013242668472230434,
0.07663270831108093,
-0.0796017125248909,
-0.023101912811398506,
0.031901922076940536,
-0.046499572694301605,
0.023344721645116806,
-0.05074574798345566,
0.022719282656908035,
-0.19075843691825867,
0.08527121692895889,
0.03963303565979004,
-0.1030459851026535,
-0.030291303992271423,
0.07127019017934799,
-0.020254455506801605,
-0.0169974472373724,
-0.02339863032102585,
0.034434836357831955,
0.01631905697286129,
-0.03961200267076492,
-0.03557104989886284,
0.024096453562378883,
0.009377321228384972,
0.016977807506918907,
0.02512817084789276,
0.021491840481758118,
-0.018388081341981888,
-0.06389686465263367,
-0.00845288671553135,
0.07409938424825668,
-0.04884270578622818,
-0.042449504137039185,
0.001828816020861268,
-0.029978131875395775,
0.0006374567747116089,
-0.030293548479676247,
-0.0584506094455719,
-0.05852976813912392,
0.00551191670820117,
0.11923159658908844,
0.007571851368993521,
0.0368201769888401,
0.03566116467118263,
0.03891611471772194,
-0.026396023109555244,
0.030688300728797913,
0.09406449645757675,
0.06751639395952225,
-0.019262343645095825,
-0.06087549775838852,
-0.04671454429626465,
-0.03235175833106041,
-0.035300906747579575,
-0.12512162327766418,
-0.006384554319083691,
0.032176826149225235,
0.06577765196561813,
-0.0261357631534338,
-0.054529476910829544,
-0.022308416664600372,
0.017880983650684357,
-0.001295438501983881,
-0.06112157180905342,
-0.07021161168813705,
-0.03491407260298729,
-0.03226304054260254,
-0.023135878145694733,
0.07026918977499008,
-0.0028276790399104357,
-0.048974957317113876,
-0.06704548001289368,
0.04133859649300575,
0.016552818939089775,
-0.001553016947582364,
-0.03700387477874756,
0.08392076194286346,
-0.10629256069660187,
0.057222239673137665,
0.010633200407028198,
-0.0415693037211895,
-0.06538661569356918,
-0.016811836510896683,
-0.07013549655675888,
0.05457267165184021,
0.01387830451130867,
0.06573241204023361,
0.03408708795905113,
0.08434451371431351,
-0.02940482087433338,
0.02037638984620571,
-0.05236884206533432,
-0.051623936742544174,
0.050399791449308395,
0.02290228009223938,
-0.03841489925980568,
-0.02479451149702072,
0.03349556401371956,
0.028527019545435905,
-0.007283702492713928,
-0.03158297389745712,
0.041792284697294235,
0.036938831210136414,
-0.03627995401620865,
0.040998540818691254,
0.003914556000381708,
0.016888756304979324,
-0.013696273788809776,
0.06281974166631699,
-0.010881013236939907,
0.039013735949993134,
-0.029775215312838554,
0.01274589542299509,
-0.10287918895483017,
0.09809776395559311,
-0.02228083461523056,
-0.04750456660985947,
0.05964716523885727,
0.07248836755752563,
-0.020600909367203712,
-0.003446867922320962,
-0.008089001290500164,
-0.0436287447810173,
0.06129433587193489,
-0.003899860195815563,
-0.08669941127300262,
-0.0011077411472797394,
-0.010546180419623852,
-0.045388057827949524,
-0.011842368170619011,
0.041098807007074356,
0.015877263620495796,
0.036309294402599335,
-0.024396564811468124,
-0.041401833295822144,
0.09039702266454697,
-0.03233850374817848,
0.041833095252513885,
-0.019170349463820457,
0.04952144995331764,
-0.003562950761988759,
0.004922563210129738,
-0.004823397379368544,
-0.0173011664301157,
0.048485253006219864,
0.05255074054002762,
0.026967279613018036,
0.012916553765535355,
-0.04887356609106064,
-0.0062124961987137794,
-0.0638977587223053,
0.019665924832224846,
0.00006363804277498275,
-0.015300004743039608,
0.0019080236088484526,
0.06660040467977524,
0.002347763627767563,
0.07094836235046387,
-0.09538968652486801,
0.049393367022275925,
0.049925681203603745,
0.044746074825525284,
0.12518802285194397,
0.018720043823122978,
-0.00558125227689743,
0.047309648245573044,
0.004077226389199495,
0.011310947127640247,
0.05966958403587341,
0.03127575293183327,
-0.006672174669802189,
0.02671823650598526,
-0.036670390516519547,
0.012121481820940971,
-0.07085657119750977,
-0.021615035831928253,
-0.05717776343226433,
-0.015937384217977524,
-0.009178554639220238,
-0.03048139624297619,
0.017124298959970474,
-0.011842157691717148,
0.006475405767560005,
0.14802230894565582,
-0.05792001634836197,
-0.007415723521262407,
0.05072326585650444,
-0.026448385789990425,
0.09407297521829605,
0.08576781302690506,
0.04790228232741356,
0.07410362362861633,
-0.02886475808918476,
-0.05856998637318611,
-0.09446312487125397,
-0.0003130569530185312,
0.015851560980081558,
-0.017659034579992294,
0.024310559034347534,
0.023762140423059464,
0.020068204030394554,
0.000060986090829828754,
-0.05350838601589203,
-0.03859735280275345,
0.017540330067276955,
-0.04970988258719444,
0.004492477513849735,
0.05016066133975983,
-0.022229768335819244,
0.08066049218177795,
0.00892028957605362,
0.026663081720471382,
0.02147102542221546,
-0.0583244152367115,
0.07371257990598679,
0.025957593694329262,
-0.001124703325331211,
0.017230238765478134,
-0.02820710279047489,
0.018236061558127403,
-0.008491328917443752,
0.005119546316564083,
0.032340262085199356,
0.009119795635342598,
0.024572011083364487,
-0.036953479051589966,
-0.007371990941464901,
-0.024573715403676033,
-0.05817076191306114,
0.007219900842756033,
0.00035419510095380247,
0.02530059590935707,
-0.010386801324784756,
-0.034823864698410034,
-0.04683287814259529,
-0.006713635753840208,
0.015116142109036446,
-0.007359795272350311,
0.029838722199201584,
-0.024167494848370552,
-0.024943148717284203,
-0.0011389624560251832,
-0.04520299285650253,
-0.03475845232605934,
-0.051297374069690704,
-0.01878274977207184,
0.04404422268271446,
0.03671811521053314,
0.03693915158510208,
-0.019248833879828453,
0.012008360587060452,
-0.061699509620666504,
0.021556509658694267,
0.011137986555695534,
-0.005617086309939623,
-0.011811817064881325,
-0.017338000237941742,
-0.006071259267628193,
-0.014712474308907986,
-0.015268253162503242,
-0.028478574007749557,
0.005071188323199749,
0.027480406686663628,
0.016808057203888893,
0.025060834363102913,
0.045353565365076065,
-0.018980083987116814,
-0.008029472082853317,
0.06072206795215607,
0.04598779231309891,
0.026967104524374008,
-0.09812717139720917,
-0.03756731376051903,
-0.0002900046238210052,
-0.005527423229068518,
0.059759411960840225,
-0.03786158561706543,
0.038120537996292114,
0.026450492441654205,
-0.010371907614171505,
0.01087075937539339,
-0.023815808817744255,
0.004313105251640081,
0.008579930290579796,
0.01755417138338089,
-0.02578418143093586,
0.001351604936644435,
-0.04411938786506653,
-0.014947451651096344,
0.011430848389863968,
0.007910544984042645,
-0.01594574935734272,
0.04173298925161362,
-0.00008078521932475269,
0.01673954539000988,
-0.0029825216624885798,
-0.04952135309576988,
-0.007878223434090614,
0.03199848160147667,
-0.006517281290143728,
0.01603151485323906,
-0.03368964418768883,
-0.022542469203472137,
-0.019738513976335526,
0.053757283836603165,
-0.045588284730911255,
-0.0057496870867908,
0.03840794041752815,
0.029467223212122917,
0.012766513042151928,
0.06463189423084259,
-0.007415332365781069,
-0.03588660806417465,
0.004274121019989252,
0.008232008665800095,
0.008992600254714489,
-0.03297491744160652,
-0.022064436227083206,
0.025404997169971466,
0.04076702520251274,
-0.03623168542981148,
-0.011923221871256828,
0.03628092259168625,
-0.007026899140328169,
0.03143082931637764,
0.03534486144781113,
-0.04245278239250183,
0.03976111114025116,
0.0846700668334961,
0.013122052885591984,
0.008490114472806454,
-0.026907946914434433,
-0.016627278178930283,
0.0013656782684847713,
-0.02637089416384697,
0.0022134953178465366,
0.013530784286558628,
0.034425582736730576,
-0.026227090507745743,
-0.010677156038582325,
-0.012997932732105255,
-0.011432900093495846,
0.04171101003885269,
-0.013666548766195774,
-0.003349890001118183,
-0.0299453716725111,
-0.0007619800744578242,
-0.03567250072956085,
-0.008223608136177063,
0.08254208415746689,
0.049253176897764206,
-0.04011736437678337,
-0.04470166936516762,
-0.036937374621629715,
-0.02913477271795273,
0.022544220089912415,
0.028307994827628136,
0.021660907194018364,
-0.051583703607320786,
0.005357082467526197,
0.036193493753671646,
0.017369380220770836,
0.020567553117871284,
0.01823996938765049,
0.04692240059375763,
0.04587896168231964,
0.022705964744091034,
0.01781579852104187,
0.01836553029716015,
-0.024804115295410156,
-0.026512332260608673,
0.004138569347560406,
-0.041731007397174835,
-0.012528151273727417,
-0.008542349562048912,
-0.007128649856895208,
0.05110085383057594,
0.0035387277603149414,
-0.04026345536112785,
-0.007174728903919458,
0.03047533519566059,
-0.010616511106491089,
-0.029070785269141197,
0.012088757939636707,
-0.005358757451176643,
0.0052048745565116405,
0.04606912285089493,
0.006217253860086203,
-0.037132419645786285,
0.023200485855340958,
0.03406830132007599,
-0.03182123973965645,
0.013957799412310123,
0.029150627553462982,
0.012658748775720596,
0.014322363771498203,
0.0012434980599209666,
0.02082774229347706,
0.014696387574076653,
0.015413747169077396,
-0.019613228738307953,
-0.012253258377313614,
-0.02314879186451435,
-0.012220987118780613,
-0.03539116680622101,
-0.026191653683781624,
0.010540403425693512,
0.001047779805958271,
0.011438116431236267,
0.025041375309228897,
-0.055145490914583206,
-0.03834572434425354,
-0.011874573305249214,
0.0156659297645092,
-0.02222721092402935,
-0.016934068873524666,
-0.03200226649641991,
-0.013100218027830124,
-0.015063424594700336,
-0.016363563016057014,
0.0038311993703246117,
0.012153967283666134,
-0.027449138462543488,
-0.01654345542192459,
-0.002605854067951441,
-0.006985957268625498,
-0.006710737012326717,
-0.002792178187519312,
0.0328301377594471,
-0.005336578469723463,
0.04226549714803696,
0.01475902833044529,
-0.0010580834932625294,
-0.02345290780067444,
0.0024036180693656206,
0.031690582633018494,
0.006159999407827854,
0.020712804049253464,
-0.08006386458873749,
0.008258963003754616,
-0.029157213866710663,
-0.01809745281934738,
0.0185764841735363,
0.045128628611564636,
-0.00791288074105978,
0.0449419729411602,
0.05396675318479538,
0.019368167966604233,
0.027937741950154305,
-0.02962743677198887,
0.021827049553394318,
-0.035232651978731155,
-0.0071039944887161255,
-0.008235902525484562,
0.015019034966826439,
-0.012529983185231686,
0.026510734111070633,
0.06716854125261307,
0.022890759631991386,
-0.020579198375344276,
0.007726253941655159,
-0.02368301711976528,
-0.040052421391010284,
0.00035411177668720484,
0.01352580264210701,
0.02800847962498665,
-0.032195210456848145,
-0.030253587290644646,
0.03032207116484642,
-0.021345539018511772,
-0.015144388191401958,
0.003128505079075694,
0.04910805821418762,
-0.010263735428452492,
-0.005750743672251701,
0.05107622221112251,
0.041655927896499634,
-0.006562717258930206,
0.003618677379563451,
0.014484766870737076,
0.0020590240601450205,
-0.013621670193970203,
-0.04291641712188721,
-0.027420207858085632,
-0.06202540919184685,
-0.05173876881599426,
-0.012597896158695221,
0.019731620326638222,
0.01480460911989212,
0.015516585670411587,
-0.00346279121004045,
-0.035326458513736725,
-0.02911931276321411,
-0.006148615386337042,
-0.007680934388190508,
0.009740719571709633,
-0.021303320303559303,
0.008988014422357082,
0.030147366225719452,
0.020289361476898193,
-0.006687080021947622,
0.012276423163712025,
0.023085854947566986,
0.00065826834179461,
0.03442702814936638,
-0.027885802090168,
-0.04951028525829315,
-0.049857042729854584,
0.0286016333848238,
-0.02682766318321228,
-0.006891265045851469,
-0.04129963740706444,
-0.011341387405991554,
-0.020071182399988174,
-0.03319469466805458,
-0.04306893050670624,
0.03401540592312813,
0.03119330294430256,
0.011931251734495163,
0.05425265431404114,
-0.00984654575586319,
0.015029892325401306,
-0.0045152632519602776,
-0.015379523858428001,
0.0064212060533463955,
0.005900940392166376,
0.028760552406311035,
0.03830438479781151,
-0.008761431090533733,
-0.013273071497678757,
-0.0017053872579708695,
0.03901493549346924,
-0.021586602553725243,
-0.027375947684049606,
0.030242934823036194,
0.01438412256538868,
0.006849201861768961,
0.025851799175143242,
-0.05399628356099129,
0.001084838411770761,
0.0002672824775800109,
0.02044019103050232,
-0.0009766633156687021,
0.0051651340909302235,
0.008162178099155426,
0.0038695414550602436,
-0.0218871608376503,
0.014980258420109749,
0.05574749782681465,
0.016094829887151718,
0.049298521131277084,
0.02734469249844551,
0.03873572126030922,
0.056817878037691116,
-0.01711089536547661,
-0.030230050906538963,
0.02388984151184559,
0.07541707158088684,
0.016050614416599274,
0.01791854202747345,
0.05982931703329086,
-0.04753407463431358,
-0.017184361815452576,
-0.03043600358068943,
-0.01725582778453827,
-0.0427970327436924,
0.04168318584561348,
0.051078565418720245,
-0.011289060115814209,
-0.005236950237303972,
-0.025669457390904427,
-0.0002552014484535903,
0.028420960530638695,
0.058139462023973465,
0.004418578464537859,
0.0017826585099101067,
0.04932953789830208,
-0.03466253727674484,
0.0032129529863595963,
0.054536957293748856,
-0.003897184506058693,
0.006515608634799719,
0.022174350917339325,
0.01632128842175007,
0.02697933465242386,
0.06377391517162323,
0.030849570408463478,
0.053570616990327835,
-0.0069982558488845825,
-0.04529799520969391,
0.0009388855542056262,
-0.0043573263101279736,
-0.0011996730463579297,
-0.005002973601222038,
-0.043123871088027954,
-0.027689892798662186,
-0.010531498119235039,
-0.040410831570625305,
0.03066427633166313,
-0.036722391843795776,
-0.03254326060414314,
-0.014899375848472118,
0.010299545712769032,
-0.0008508017053827643,
-0.018368365243077278,
-0.0045623802579939365,
0.0012705113040283322,
0.02502189762890339,
-0.004054477903991938,
-0.03354993090033531,
-0.01703827828168869,
-0.04119795933365822,
0.014463490806519985,
0.017913036048412323,
0.059419065713882446,
0.006174905225634575,
-0.023718180134892464,
0.007299174554646015,
-0.00585578940808773,
-0.053827472031116486,
0.012253686785697937,
0.008043672889471054,
0.029088696464896202,
-0.05278897285461426,
0.02971014566719532,
-0.03425095975399017,
-0.04853018373250961,
0.012877174653112888,
-0.03191129490733147,
0.017446765676140785,
-0.010483159683644772,
0.011983669362962246,
0.007759984117001295,
0.050796445459127426,
-0.007681242190301418,
-0.0132507449015975,
0.0031725408043712378,
0.019174491986632347,
-0.03840763494372368,
0.0409732311964035,
-0.009682896547019482,
-0.028562501072883606,
0.03643074631690979,
-0.015300885774195194,
0.04212678596377373,
-0.003968864679336548,
-0.0431768074631691,
0.03745788335800171,
0.0330098457634449,
-0.00897067878395319,
0.05275040492415428,
0.03739588335156441,
-0.012695199809968472,
0.010998750105500221,
0.043482501059770584,
0.003903963603079319,
0.014995358884334564,
-0.008470875211060047,
0.042752787470817566,
-0.029307080432772636,
0.0032401687931269407,
-0.028831912204623222,
-0.0681692436337471,
-0.018059419468045235,
0.024103302508592606,
-0.0169024970382452,
-0.00015217630425468087,
-0.05456172302365303,
-0.022738805040717125,
-0.029959071427583694,
0.00943702831864357,
-0.01602196879684925,
0.017634062096476555,
0.022773025557398796,
-0.002789060352370143,
0.035594359040260315,
0.013020576909184456,
0.015168322250247002,
-0.0035330839455127716,
-0.04062668979167938,
0.055495478212833405,
0.05509375035762787,
0.06397781521081924,
-0.010500015690922737,
-0.016172362491488457,
0.017691027373075485,
-0.0031278072856366634,
-0.027986004948616028,
-0.02878195233643055,
-0.012233661487698555,
-0.020055614411830902,
-0.008501818403601646,
0.022485854104161263,
0.01602953113615513,
-0.023825140669941902,
-0.008088602684438229,
0.0031667191069573164,
-0.002196323126554489,
0.027192488312721252,
-0.014626139774918556,
-0.048826299607753754,
0.0026193095836788416,
-0.04146602377295494,
-0.02106599695980549,
0.009830377995967865,
0.01612567901611328,
0.025688739493489265,
0.012357542291283607,
-0.00240110675804317,
0.0037193563766777515,
0.048023734241724014,
-0.08938045799732208,
-0.01638500578701496,
-0.04039490967988968,
-0.00032989337341859937,
-0.014428673312067986,
0.013368646614253521,
0.03659595921635628,
0.004524593707174063,
0.02472994476556778,
0.009347955696284771,
0.022270383313298225,
0.008624888956546783,
0.009639488533139229,
0.029381126165390015,
-0.011543577536940575,
0.05102250725030899,
0.013497092761099339,
-0.029379960149526596,
-0.01603051647543907,
-0.009878329001367092
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Footnotes 1 Note that in the official paper, the authors used a two-layer MLP to generate the output logits, which was omitted here for brevity. ↩ | [
0.01939331740140915,
-0.021360043436288834,
0.09250505268573761,
-0.001840705517679453,
0.090739406645298,
0.036812640726566315,
-0.038410428911447525,
0.04358968883752823,
-0.04179617762565613,
-0.08345460891723633,
-0.018374649807810783,
0.0034184735268354416,
0.006830154452472925,
-0.019563661888241768,
-0.011344416998326778,
0.033089909702539444,
-0.0012290967861190438,
-0.04105578735470772,
0.01285615935921669,
-0.001262560486793518,
0.016436662524938583,
-0.009765563532710075,
0.05762181431055069,
0.014533854089677334,
-0.015568512491881847,
-0.05168282613158226,
0.011425640434026718,
0.021285004913806915,
-0.03335144370794296,
0.0865056961774826,
-0.05121013522148132,
-0.006569232791662216,
0.06486773490905762,
0.015364500693976879,
-0.03215661644935608,
-0.031442880630493164,
-0.1493760645389557,
-0.0246531181037426,
-0.015629028901457787,
-0.04221034422516823,
0.05791020020842552,
-0.00893019512295723,
-0.00004326863199821673,
0.10759692639112473,
-0.04873957484960556,
-0.015017349272966385,
-0.1525118499994278,
0.08175548166036606,
-0.03055431693792343,
-0.0005320372292771935,
-0.07268695533275604,
-0.008297482505440712,
-0.05130399018526077,
0.0082929702475667,
0.03992483392357826,
-0.004419430159032345,
0.03164459392428398,
-0.004098816774785519,
0.04677572846412659,
-0.04926229268312454,
0.00872346293181181,
-0.010107667185366154,
0.0010905662784352899,
-0.013497977517545223,
0.028180113062262535,
0.04085810109972954,
0.011514518409967422,
0.006226584315299988,
-0.04501112177968025,
0.0010662865824997425,
0.0003630629798863083,
0.029467672109603882,
0.022663651034235954,
0.000406053033657372,
0.012231400236487389,
-0.0027650773990899324,
0.004180208779871464,
0.016410280019044876,
0.04674088954925537,
0.012274587526917458,
-0.014776758849620819,
0.02504858747124672,
0.07919365912675858,
0.09296364337205887,
0.0001547379360999912,
0.0037282053381204605,
0.08323440700769424,
-0.0028957766480743885,
0.006662693805992603,
-0.009487088769674301,
-0.0761592835187912,
-0.06749793887138367,
0.009718459099531174,
0.0688633844256401,
0.024733148515224457,
-0.015955541282892227,
0.02487247623503208,
0.022179733961820602,
0.0324019119143486,
-0.030601490288972855,
0.035788968205451965,
0.05957528203725815,
-0.002142040990293026,
0.008813862688839436,
-0.06226078420877457,
-0.002248686971142888,
-0.025135425850749016,
-0.062436237931251526,
-0.0820717066526413,
0.023963352665305138,
0.00647692708298564,
0.060625091195106506,
0.10151214897632599,
0.013629642315208912,
-0.07400026172399521,
0.07471980154514313,
-0.05960443988442421,
-0.01749185472726822,
0.052012842148542404,
0.024941179901361465,
-0.015434584580361843,
0.10810454189777374,
0.03474926948547363,
0.051118988543748856,
0.058035958558321,
0.0036086190957576036,
0.03482513874769211,
0.005579032003879547,
-0.10196059942245483,
0.03420577198266983,
0.006752063985913992,
-0.012279299087822437,
0.05982482060790062,
-0.00015820465341676027,
-0.043738216161727905,
-0.053700245916843414,
-0.023546241223812103,
0.006851531565189362,
-0.013378612697124481,
0.021547356620430946,
-0.06006673350930214,
0.05123911798000336,
-0.02447289042174816,
0.01575641892850399,
0.024702781811356544,
-0.032824400812387466,
-0.04149673134088516,
0.04113607481122017,
-0.03952518850564957,
-0.04634382575750351,
-0.017208075150847435,
0.04160689562559128,
-0.0351821705698967,
-0.04239999130368233,
0.0017646753694862127,
0.030609725043177605,
0.03070329688489437,
-0.02218175306916237,
-0.07531937211751938,
-0.023989686742424965,
0.08225957304239273,
0.0007819322636350989,
-0.014824813231825829,
0.003598356619477272,
0.054798830300569534,
-0.02758507803082466,
0.012148239649832249,
0.05496656522154808,
-0.016042416915297508,
-0.06180088222026825,
0.032414596527814865,
-0.04121805727481842,
0.0870867669582367,
0.023928586393594742,
-0.03860385715961456,
0.0662250742316246,
0.040687885135412216,
0.08318989723920822,
0.025297073647379875,
-0.004125597421079874,
-0.053007498383522034,
0.01722642406821251,
0.007283227052539587,
0.00782425794750452,
0.015077644027769566,
-0.02567296102643013,
0.07442700862884521,
-0.011975636705756187,
-0.042296238243579865,
0.06504113972187042,
-0.1261099874973297,
-0.03308704495429993,
0.11597231775522232,
-0.03403427451848984,
0.026482971385121346,
-0.11129932850599289,
-0.05390753224492073,
0.11593960970640182,
0.05455324798822403,
0.021002192050218582,
0.10896117985248566,
0.05704520642757416,
0.0660497322678566,
-0.016089683398604393,
-0.03178508207201958,
0.0017492504557594657,
-0.028945192694664,
-0.02667200192809105,
0.02977445162832737,
-0.07350143045186996,
-0.042107999324798584,
-0.08236251771450043,
-0.025969455018639565,
-0.057137470692396164,
-0.005325919948518276,
-0.000017823507732828148,
0.041303958743810654,
0.022289413958787918,
0.07115104794502258,
-0.06557725369930267,
0.08156660944223404,
0.046686481684446335,
0.012857381254434586,
-0.003972228150814772,
-0.009325990453362465,
0.09199786186218262,
0.04678114131093025,
0.01912851259112358,
0.05772881582379341,
-0.08978486806154251,
-0.01426629163324833,
-0.07838353514671326,
0.03695756942033768,
0.10985779762268066,
0.038706712424755096,
-0.01809801533818245,
0.013771669939160347,
-0.050953738391399384,
0.03322531655430794,
-0.05586807057261467,
-0.017053473740816116,
0.01947225257754326,
-0.010222396813333035,
0.05298571661114693,
-0.05954522639513016,
-0.06722421944141388,
0.03937644138932228,
0.06181997060775757,
-0.07483862340450287,
-0.017269574105739594,
-0.040687307715415955,
0.08351658284664154,
0.02773079089820385,
-0.028703898191452026,
0.06233865022659302,
0.04863351956009865,
-0.0006750643369741738,
-0.036135248839855194,
0.0027359917294234037,
0.008968939073383808,
0.009650103747844696,
-0.019486555829644203,
-0.031960658729076385,
-0.0450589694082737,
-0.019673286005854607,
-0.015766113996505737,
0.014674515463411808,
-0.004077809397131205,
0.006967808119952679,
0.02079256996512413,
0.024886326864361763,
-0.0224599689245224,
0.02099418267607689,
0.017466913908720016,
0.039747454226017,
-0.015746286138892174,
0.013226204551756382,
-0.03988959267735481,
-0.028348509222269058,
-0.05692925304174423,
-0.01242329552769661,
-0.02051442861557007,
0.013214667327702045,
0.02190452441573143,
0.04945356398820877,
-0.016988182440400124,
0.005144717637449503,
-0.03359939157962799,
0.0004235302621964365,
0.0023546533193439245,
0.01612578146159649,
0.051402851939201355,
0.030012264847755432,
-0.05004590377211571,
-0.006129624787718058,
-0.015989232808351517,
-0.04550262168049812,
0.027668194845318794,
-0.015991859138011932,
0.022976122796535492,
-0.010531056672334671,
0.007088726852089167,
0.010150562971830368,
0.051455941051244736,
-0.018612517043948174,
0.0021403406281024218,
-0.004538812208920717,
0.0686085894703865,
-0.11465166509151459,
-0.01110527478158474,
0.038845568895339966,
0.04944983124732971,
-0.02369729056954384,
-0.015176366083323956,
0.03658133000135422,
-0.04730606451630592,
0.0003754019271582365,
-0.06824273616075516,
0.06548045575618744,
-0.005217173136770725,
0.013119494542479515,
-0.04131605476140976,
-0.025188004598021507,
-0.013534198515117168,
-0.02236221171915531,
-0.023037578910589218,
-0.0028996451292186975,
-0.018801521509885788,
-0.017585746943950653,
0.01114294957369566,
-0.02571423538029194,
-0.01487082801759243,
-0.05834953859448433,
0.058947060257196426,
0.022767135873436928,
0.034110501408576965,
0.00784990843385458,
-0.04793720692396164,
-0.03764535114169121,
0.0019121357472613454,
0.00838372204452753,
0.051180098205804825,
-0.007007617969065905,
-0.0010607886360958219,
-0.008517919108271599,
0.01955403760075569,
0.017730608582496643,
0.028543315827846527,
0.023593947291374207,
0.010430295951664448,
0.03681674227118492,
-0.009152772836387157,
0.0012808245373889804,
0.007475011982023716,
0.030011851340532303,
-0.01749091036617756,
0.039677828550338745,
-0.02602049894630909,
-0.03984128311276436,
0.026149138808250427,
-0.011563719250261784,
0.058224599808454514,
-0.0048471312038600445,
0.005078943911939859,
-0.037496503442525864,
0.014315718784928322,
0.04317508265376091,
0.014903789386153221,
-0.035561926662921906,
0.01001531258225441,
-0.013801493681967258,
0.00650728028267622,
-0.008198495954275131,
0.0625440701842308,
-0.005006445571780205,
0.031234674155712128,
-0.03444397449493408,
0.04250144213438034,
-0.0012947822688147426,
0.02037690207362175,
-0.025601906701922417,
0.006505204364657402,
-0.02384014055132866,
0.007393207401037216,
-0.04144315421581268,
-0.029200250282883644,
0.07825721800327301,
-0.019027428701519966,
-0.04442590847611427,
-0.004702835343778133,
-0.01575431413948536,
-0.02239374630153179,
-0.00361810764297843,
0.024379896000027657,
-0.035125814378261566,
0.03602416813373566,
-0.007697498891502619,
-0.007472059223800898,
0.032695017755031586,
0.010614937171339989,
-0.01005023904144764,
-0.012873370200395584,
-0.005360201466828585,
0.027281392365694046,
0.05201660469174385,
-0.008271737955510616,
0.026727622374892235,
0.02804442122578621,
-0.014659623615443707,
0.009343849495053291,
-0.03391698747873306,
-0.01604798063635826,
-0.0011957748793065548,
0.03134366497397423,
-0.024870483204722404,
-0.0598946250975132,
-0.0015306479763239622,
-0.006125779822468758,
0.053031377494335175,
-0.05501990020275116,
0.00900585949420929,
0.0003233095339965075,
0.004823191557079554,
0.00023829101701267064,
-0.011944303289055824,
-0.054610226303339005,
-0.0351378470659256,
-0.017067205160856247,
-0.022789718583226204,
0.009315043687820435,
0.004939877428114414,
-0.01729053631424904,
0.02564358524978161,
0.011352128349244595,
-0.027401093393564224,
0.018193671479821205,
0.0062150065787136555,
-0.042122501879930496,
-0.01562769152224064,
-0.05164296552538872,
0.013125728815793991,
-0.006158845964819193,
0.005120230372995138,
0.017487533390522003,
0.0035808151587843895,
0.04920078068971634,
-0.02017081156373024,
-0.043437983840703964,
0.02438036911189556,
0.01070309616625309,
0.003609288018196821,
-0.03806440159678459,
0.05263383686542511,
-0.01819372922182083,
0.028340378776192665,
-0.016298798844218254,
-0.0004750746302306652,
0.0029283089097589254,
0.06816650927066803,
-0.013950834982097149,
-0.014873580075800419,
-0.008543719537556171,
-0.03488006070256233,
0.03087128885090351,
0.029859626665711403,
0.019778423011302948,
0.0006383188883773983,
0.03769068419933319,
-0.015848543494939804,
0.008557471446692944,
-0.054150037467479706,
0.05213353782892227,
-0.006723816506564617,
0.026774432510137558,
0.002967411419376731,
-0.016346924006938934,
-0.0036627138033509254,
-0.02548062801361084,
-0.02022685669362545,
-0.04606550559401512,
0.01625153049826622,
-0.014014282263815403,
0.018678568303585052,
0.004733029752969742,
-0.00564225297421217,
-0.00652650510892272,
0.0212513767182827,
0.02844724804162979,
-0.021304531022906303,
0.008602388203144073,
0.015043684281408787,
-0.0003809648915193975,
-0.008736261166632175,
0.019797582179307938,
0.013071401976048946,
0.008700675331056118,
0.03467291221022606,
0.03748614341020584,
-0.019202444702386856,
-0.011788730509579182,
0.00475628487765789,
-0.03135884553194046,
-0.020394058898091316,
0.01730685867369175,
-0.021549822762608528,
0.00891258753836155,
-0.02557036466896534,
0.02311679720878601,
0.00513971783220768,
0.024477994069457054,
-0.01849466562271118,
-0.014903469942510128,
0.011355298571288586,
0.021527905017137527,
-0.03213771432638168,
-0.0023584216833114624,
0.019904116168618202,
-0.05514209344983101,
-0.014902287162840366,
-0.012195862829685211,
-0.04675004258751869,
-0.021251536905765533,
-0.00047797936713322997,
-0.044350914657115936,
-0.05984964594244957,
0.020103005692362785,
-0.020591968670487404,
0.04977422580122948,
0.0032065703999251127,
-0.007851246744394302,
-0.008378750644624233,
0.04021545127034187,
0.008805273100733757,
-0.02397625520825386,
-0.035907577723264694,
0.02804632857441902,
-0.006112704519182444,
0.015522072091698647,
-0.0027817292138934135,
-0.000542506342753768,
-0.034938354045152664,
-0.0024228955153375864,
0.04553414136171341,
0.02280554175376892,
-0.05194363370537758,
-0.0012434610398486257,
0.022417206317186356,
0.036325663328170776,
0.0357089601457119,
-0.0072456710040569305,
-0.00244890246540308,
0.01635001413524151,
-0.05191925913095474,
-0.0018891836516559124,
0.05347878113389015,
-0.038116756826639175,
-0.013689895160496235,
-0.010966924019157887,
0.013398136012256145,
-0.024599649012088776,
-0.026793165132403374,
-0.007043555844575167,
0.0147700235247612,
0.04517227038741112,
0.008797339163720608,
-0.022002162411808968,
0.01885547675192356,
0.02172175422310829,
-0.015932651236653328,
-0.021739784628152847,
-0.0028535521123558283,
0.018919434398412704,
-0.021656876429915428,
0.0249160323292017,
0.007425080519169569,
-0.03628664091229439,
0.027516445145010948,
0.023344144225120544,
-0.005624047480523586,
-0.005353962536901236,
-0.008743330836296082,
-0.007079537492245436,
0.0007107177516445518,
-0.021298615261912346,
0.040772147476673126,
0.02193552441895008,
0.046134885400533676,
-0.0003822388534899801,
-0.0010360297746956348,
0.013044651597738266,
0.025455275550484657,
0.009047980420291424,
-0.030132658779621124,
0.013729913160204887,
0.04953668639063835,
-0.021328963339328766,
-0.0022617834620177746,
0.013720189221203327,
-0.021580291911959648,
0.008198111318051815,
0.0010311614023521543,
-0.03005024418234825,
-0.019182739779353142,
0.022326814010739326,
0.013673212379217148,
-0.014028692618012428,
0.026371359825134277,
-0.033925313502550125,
0.025505922734737396,
0.019487297162413597,
0.016724836081266403,
0.01547559630125761,
-0.012635559774935246,
0.03229914978146553,
0.030350329354405403,
-0.02739708684384823,
-0.029537733644247055,
-0.036206960678100586,
0.03945597633719444,
0.022840071469545364,
-0.030585628002882004,
0.0044493419118225574,
-0.026176447048783302,
-0.053546249866485596,
0.04581672325730324,
0.003362552262842655,
0.050496529787778854,
-0.032670389860868454,
0.058648936450481415,
0.013883168809115887,
-0.016508009284734726,
-0.0034026852808892727,
-0.015354515053331852,
-0.04053298383951187,
-0.006203088443726301,
0.004852429032325745,
-0.02079303376376629,
0.011607041582465172,
0.039679430425167084,
-0.006497567985206842,
0.00023859667999204248,
-0.016928713768720627,
0.01178180892020464,
0.013231699354946613,
0.004398537799715996,
0.028902683407068253,
-0.002047004410997033,
0.006270088255405426,
-0.0006859332206659019,
0.011478235945105553,
0.01975974254310131,
0.011071253567934036,
-0.004406137857586145,
0.01436019316315651,
-0.001390043064020574,
0.008187827654182911,
-0.03179006651043892,
-0.005810071714222431,
0.03249703347682953,
-0.0038335747085511684,
0.014760800637304783,
0.03377910703420639,
0.01214461401104927,
0.029261479154229164,
-0.03279083967208862,
-0.025004714727401733,
-0.014784131199121475,
-0.03406913951039314,
-0.004702966194599867,
0.05126980319619179,
0.01851079985499382,
-0.03144475072622299,
-0.057655856013298035,
-0.024317502975463867,
0.015856275334954262,
0.035902198404073715,
-0.001175740035250783,
0.045472651720047,
-0.01794172078371048,
-0.026385052129626274,
0.02324426919221878,
-0.01091940887272358,
-0.0478755459189415,
0.007498482707887888,
-0.02469511702656746,
-0.02435036562383175,
-0.0010514205787330866,
-0.017196692526340485,
0.043525855988264084,
0.015160157345235348,
0.028761543333530426,
0.06798847764730453,
0.03721817582845688,
0.018587751314044,
-0.021716291084885597,
-0.00936631578952074,
0.0041327690705657005,
0.030618315562605858,
-0.01471740286797285,
-0.04388948157429695,
-0.032238028943538666,
0.026788387447595596,
0.018230199813842773,
0.005595660302788019,
-0.04725050553679466,
-0.05823948606848717,
-0.015873730182647705,
0.000013849386050424073,
-0.05342058837413788,
0.004838299937546253,
0.05165247246623039,
0.02222941815853119,
0.004355697426944971,
0.007379054091870785,
-0.009816313162446022,
-0.02980959415435791,
0.0512952096760273,
-0.027537692338228226,
0.03484880179166794,
0.024320589378476143,
-0.014925717376172543,
-0.07065481692552567,
0.002550966339185834,
-0.06382078677415848,
-0.047188714146614075,
-0.04048807919025421,
0.0037130669225007296,
-0.01918945275247097,
-0.012215021066367626,
-0.0007719539571553469,
-0.008924408815801144,
0.011446719989180565,
0.024740369990468025,
0.03253759816288948,
-0.024007275700569153,
-0.006893213372677565,
0.00321787828579545,
-0.03841787949204445,
0.014276186004281044,
-0.008348685689270496,
-0.003752160118892789,
0.033655665814876556,
0.04411669075489044,
-0.02303963154554367,
0.009966686367988586,
-0.016705045476555824,
0.012305785901844501,
-0.0007929310668259859,
-0.02461140975356102,
-0.016514316201210022,
0.01996387355029583,
-0.04745664820075035,
-0.01834549941122532,
-0.026568887755274773,
0.024966062977910042,
0.03363211080431938,
-0.019734185189008713,
-0.0428181029856205,
-0.02899385243654251,
0.030893569812178612,
-0.015170375816524029,
-0.0038645132444798946,
0.029695263132452965,
0.05836179852485657,
0.05483642965555191,
0.008983085863292217,
0.011001725681126118,
0.006454447750002146
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Introduction The Transformer, originally introduced by Vaswani et al. in 2017, caused a revolution in the AI community, initially improving state-of-the-art (SOTA) results in machine translation. In 2018, BERT was released, a Transformer encoder-only model that crushed the benchmarks of natural language processing (NLP), most famously the GLUE benchmark. Not long after that, AI researchers started to apply the idea of BERT to other domains. To name a few examples: * Wav2Vec2 by Facebook AI illustrated that the architecture could be extended to audio * the Vision Transformer (ViT) by Google AI showed that the architecture works really well for vision * most recently the Video Vision transformer (ViViT), also by Google AI, applied the architecture to video. In all of these domains, state-of-the-art results were improved dramatically, thanks to the combination of this powerful architecture with large-scale pre-training. However, there's an important limitation to the architecture of the Transformer: due to its self-attention mechanism, it scales very poorly in both compute and memory. In every layer, all inputs are used to produce queries and keys, for which a pairwise dot product is computed. Hence, it is not possible to apply self-attention on high-dimensional data without some form of preprocessing. Wav2Vec2, for example, solves this by employing a feature encoder to turn a raw waveform into a sequence of time-based features. The Vision Transformer (ViT) divides an image into a sequence of non-overlapping patches, which serve as "tokens". The Video Vision Transformer (ViViT) extracts non-overlapping, spatio-temporal “tubes” from a video, which serve as "tokens". To make the Transformer work on a particular modality, one typically discretizes it to a sequence of tokens to make it work. | [
0.014090348966419697,
-0.06433295458555222,
0.10161244869232178,
-0.006116192787885666,
-0.048084620386362076,
0.05423854663968086,
0.022978290915489197,
0.049699146300554276,
0.021808143705129623,
-0.043702855706214905,
-0.05507075786590576,
0.0987507626414299,
-0.039896100759506226,
0.14438919723033905,
0.04091806337237358,
0.026599232107400894,
0.0614013746380806,
-0.028336016461253166,
-0.02052932418882847,
0.028088638558983803,
-0.024947794154286385,
-0.04373478144407272,
0.09111959487199783,
-0.014795644208788872,
-0.01283924002200365,
-0.030045025050640106,
-0.048461925238370895,
0.021668432280421257,
-0.09471104294061661,
0.02224770188331604,
-0.10459551215171814,
-0.008268824778497219,
0.028258154168725014,
-0.005135827232152224,
-0.05011312663555145,
-0.013134850189089775,
-0.09903055429458618,
-0.015342692844569683,
-0.030967239290475845,
-0.041887834668159485,
-0.025767769664525986,
0.013630315661430359,
-0.0894436463713646,
0.06431236863136292,
0.010519091039896011,
0.02528681419789791,
-0.1480911374092102,
0.10933655500411987,
-0.030728081241250038,
-0.011281895451247692,
-0.07236067205667496,
0.052127886563539505,
0.0005832456517964602,
0.03817223757505417,
0.030347226187586784,
0.049242328852415085,
0.031134292483329773,
-0.06296446174383163,
-0.014720293693244457,
-0.032713696360588074,
0.0448068305850029,
-0.03379542753100395,
-0.028341270983219147,
-0.03521892428398132,
0.0037284744903445244,
-0.00842993427067995,
0.009946860373020172,
-0.012818039394915104,
-0.054395630955696106,
-0.024579307064414024,
-0.0030935590621083975,
-0.047606393694877625,
-0.02270274981856346,
0.00726543040946126,
-0.017977511510252953,
-0.00902652833610773,
0.029019221663475037,
0.050035301595926285,
0.062052320688962936,
-0.013951040804386139,
0.03243311122059822,
0.0311571191996336,
0.04131745919585228,
0.024410542100667953,
0.029589436948299408,
-0.017585301771759987,
0.06963466107845306,
-0.0619274377822876,
-0.12048307061195374,
0.05730540305376053,
-0.03508814424276352,
-0.1276986449956894,
-0.010356149636209011,
-0.01384031679481268,
-0.0024707226548343897,
-0.020157676190137863,
0.016410335898399353,
-0.005083216354250908,
0.025542212650179863,
-0.00521830515936017,
-0.0022668703459203243,
0.003281417302787304,
0.05091787502169609,
-0.009112024679780006,
-0.002965428400784731,
0.029211902990937233,
-0.036075133830308914,
-0.06995047628879547,
-0.03669408708810806,
-0.0007306464831344783,
0.02217969112098217,
0.024026526138186455,
0.05192096158862114,
0.06113897264003754,
-0.055300138890743256,
0.023168057203292847,
0.04576459899544716,
0.018266603350639343,
0.015986427664756775,
0.0035167462192475796,
0.031328264623880386,
0.05502542480826378,
0.018838033080101013,
-0.011039773002266884,
0.03032642789185047,
0.0029494171030819416,
-0.008579405024647713,
0.012044595554471016,
-0.006486492697149515,
-0.01870071142911911,
0.09746576845645905,
-0.047836944460868835,
0.08564744889736176,
0.02334781363606453,
-0.03299390897154808,
-0.014478209428489208,
0.03689994663000107,
-0.12348297983407974,
-0.019476355984807014,
-0.04261624068021774,
0.0097713153809309,
0.016083644703030586,
0.036093246191740036,
-0.02000926062464714,
0.07122115045785904,
0.009081503376364708,
-0.12113124877214432,
0.11950881779193878,
0.059753187000751495,
0.02017761766910553,
-0.09721289575099945,
0.01642703451216221,
-0.04223555326461792,
-0.03604714572429657,
0.01637844182550907,
0.02103026583790779,
0.02544940449297428,
-0.010610846802592278,
-0.062489498406648636,
-0.017947405576705933,
-0.004967631306499243,
0.029309339821338654,
0.006906661670655012,
-0.0007321249577216804,
-0.04464630037546158,
-0.0971771851181984,
0.024921707808971405,
0.05976279824972153,
-0.0029447227716445923,
0.02299952693283558,
0.016365688294172287,
0.03041035681962967,
0.06012273207306862,
-0.008986817672848701,
-0.06538385152816772,
0.08427836000919342,
0.04486368969082832,
0.10030684620141983,
0.0008276721346192062,
-0.005285064689815044,
-0.04122820496559143,
0.04640819877386093,
0.019610537216067314,
0.07218202948570251,
0.03173355385661125,
-0.05427772179245949,
0.03318847343325615,
-0.01993417553603649,
-0.026781463995575905,
0.011434728279709816,
-0.010478646494448185,
-0.05514399707317352,
0.08175874501466751,
-0.03314867988228798,
0.016755452379584312,
-0.046549733728170395,
-0.060214538127183914,
0.11324220895767212,
0.04808326065540314,
0.05339561402797699,
0.055636148899793625,
0.00505412369966507,
-0.013786010444164276,
-0.012562399730086327,
0.000946977932471782,
-0.004705654922872782,
0.026660656556487083,
-0.02090608887374401,
0.04508546367287636,
-0.02687513455748558,
0.03323923796415329,
-0.10253383219242096,
-0.036826666444540024,
-0.022334907203912735,
-0.0019133850000798702,
-0.05503583699464798,
-0.014966792427003384,
0.03656671196222305,
0.02510186657309532,
-0.04579721763730049,
0.0671667754650116,
-0.043036267161369324,
-0.05800070986151695,
-0.03332902118563652,
0.00002240355752292089,
0.060601603239774704,
0.008994956500828266,
0.0077857524156570435,
0.08973488211631775,
-0.025462988764047623,
-0.058652836829423904,
-0.05185513198375702,
-0.01914871111512184,
0.008601510897278786,
-0.04632091149687767,
-0.0428483746945858,
0.0241248682141304,
0.03791465237736702,
0.02505442500114441,
-0.0061110821552574635,
-0.04736999794840813,
-0.005797544028609991,
0.04367450997233391,
0.04409531503915787,
-0.03224794194102287,
0.017738331109285355,
0.053686972707509995,
0.020803170278668404,
0.039746079593896866,
0.0009071876993402839,
-0.08924293518066406,
0.06385036557912827,
-0.059155646711587906,
-0.04182325303554535,
0.027376651763916016,
0.04418029263615608,
-0.00191581214312464,
-0.02401777356863022,
-0.003714542603120208,
0.02233194187283516,
-0.0014387840637937188,
-0.03282124549150467,
-0.024925608187913895,
-0.05666070058941841,
-0.04113907366991043,
-0.05259615182876587,
-0.02534543350338936,
0.013624393381178379,
0.013661060482263565,
0.032983142882585526,
-0.04158075526356697,
-0.02754344791173935,
0.054715532809495926,
0.008642388507723808,
0.025084109976887703,
0.040075305849313736,
0.02845672518014908,
-0.02110096998512745,
0.013364987447857857,
-0.02297891303896904,
-0.008554037660360336,
-0.03998894616961479,
0.05623471364378929,
0.024851776659488678,
0.02091129496693611,
0.00377104920335114,
-0.006876280065625906,
-0.018295450136065483,
0.01153668574988842,
-0.004608800634741783,
0.005622370634227991,
0.04740490764379501,
-0.00036337930941954255,
-0.03941620886325836,
-0.02735009975731373,
-0.001678593223914504,
0.01014674175530672,
-0.04997741058468819,
-0.015773531049489975,
-0.024428416043519974,
-0.005457946565002203,
0.03758465126156807,
-0.0007095561595633626,
0.015547240152955055,
-0.024412302300333977,
0.007633996661752462,
0.007942674681544304,
0.03371255099773407,
-0.09405965358018875,
-0.0488395169377327,
-0.02189651131629944,
-0.003592871828004718,
-0.017403893172740936,
-0.03124319389462471,
0.021954677999019623,
0.04964246228337288,
-0.03545553609728813,
-0.008708289824426174,
0.016843359917402267,
-0.020131055265665054,
0.014134705998003483,
-0.024689873680472374,
-0.03673439472913742,
-0.015426939353346825,
-0.02726217359304428,
-0.013700240291655064,
0.04186544194817543,
0.02516344003379345,
-0.01308512780815363,
0.009212255477905273,
-0.021063165739178658,
-0.011327560059726238,
-0.022902609780430794,
0.01729053445160389,
-0.003095607738941908,
0.0010518276831135154,
0.02325747162103653,
-0.0069347252137959,
-0.012732375413179398,
-0.02102947048842907,
0.024827994406223297,
0.03468268737196922,
-0.03678632155060768,
0.0016586723504588008,
0.0034941958729177713,
0.02143293060362339,
0.03448127582669258,
0.022638747468590736,
0.052685610949993134,
-0.005584423895925283,
0.007811744697391987,
0.005753146950155497,
0.039692386984825134,
-0.007468275260180235,
0.000021784966520499438,
-0.035755500197410583,
0.025637637823820114,
-0.03483520820736885,
-0.02874024398624897,
-0.02795521169900894,
-0.009023694321513176,
0.025771111249923706,
0.013868422247469425,
-0.00369522487744689,
-0.011463556438684464,
-0.012496360577642918,
-0.02231302112340927,
-0.0035851141437888145,
-0.004773473367094994,
0.04307083040475845,
-0.009602772071957588,
0.011732153594493866,
0.010360394604504108,
0.057751405984163284,
0.03249070793390274,
0.020246893167495728,
-0.010333784855902195,
0.03923429921269417,
-0.025953255593776703,
0.007287820801138878,
0.004972407128661871,
0.003994522616267204,
-0.00543397618457675,
0.02019418403506279,
0.04147946089506149,
0.017870448529720306,
0.05750371143221855,
0.006603269837796688,
-0.05326756834983826,
-0.029699202626943588,
-0.0029882017988711596,
0.013802522793412209,
0.008474810048937798,
0.032089412212371826,
0.042868420481681824,
0.0012865286553278565,
0.04525658115744591,
-0.0038220861461013556,
0.0336713008582592,
-0.028891466557979584,
0.004550543613731861,
-0.02627859078347683,
0.002735598012804985,
0.002029639668762684,
0.01083750743418932,
-0.004468666389584541,
0.032568350434303284,
-0.0023458541836589575,
0.011366824619472027,
-0.08301975578069687,
-0.011937912553548813,
-0.001875414396636188,
-0.0038946575950831175,
0.040955062955617905,
-0.026697026565670967,
-0.011758498847484589,
0.0021108125802129507,
-0.0029146461747586727,
0.026161232963204384,
-0.008388729766011238,
-0.008704694919288158,
0.05064729228615761,
0.05955773591995239,
0.022562898695468903,
0.002148727187886834,
-0.031371161341667175,
-0.052981577813625336,
0.0042908950708806515,
0.036775801330804825,
0.005198266822844744,
-0.022914644330739975,
0.00693435687571764,
0.06518752872943878,
0.016681386157870293,
0.01858394593000412,
0.041520215570926666,
-0.008054645732045174,
0.003846801118925214,
-0.043602049350738525,
-0.0043907733634114265,
0.030516382306814194,
0.029966112226247787,
0.03766365349292755,
0.008060382679104805,
0.0019407406216487288,
0.015259467996656895,
-0.05922979116439819,
-0.010110309347510338,
-0.01813773810863495,
-0.00895093847066164,
0.03603602200746536,
-0.015601756982505322,
-0.0029625610914081335,
0.0035392185673117638,
0.0006853714003227651,
-0.02711803838610649,
-0.04043562337756157,
0.0267909225076437,
0.03463949263095856,
-0.012040028348565102,
-0.00811365619301796,
0.04046483710408211,
0.03452986106276512,
-0.02393747866153717,
0.028758451342582703,
0.04238127917051315,
0.011737537570297718,
0.029100818559527397,
-0.0046767741441726685,
0.017102697864174843,
-0.04901883006095886,
-0.01579347439110279,
0.02525206468999386,
-0.0020164826419204473,
0.012979243882000446,
-0.053277913480997086,
0.04001977667212486,
0.014543854631483555,
0.00786425918340683,
-0.012597634457051754,
0.01067564357072115,
-0.021149467676877975,
-0.03456278517842293,
0.031452979892492294,
-0.02707621082663536,
0.005119118839502335,
0.009426183067262173,
0.032570019364356995,
-0.00027709276764653623,
0.03661531209945679,
-0.004731088876724243,
0.021593241021037102,
0.0033245014492422342,
-0.0025760976132005453,
0.04686087742447853,
0.07652979344129562,
-0.015581607818603516,
0.03594481572508812,
-0.004210157319903374,
0.002936471486464143,
-0.017276853322982788,
-0.011073456145823002,
0.002728240331634879,
-0.04899323359131813,
-0.006617365404963493,
0.04725963622331619,
-0.032106563448905945,
0.024210957810282707,
0.03630087897181511,
0.04116549342870712,
-0.039103295654058456,
0.0027265397366136312,
0.0593172125518322,
0.00812567863613367,
-0.01044840645045042,
-0.04332377389073372,
-0.03201105445623398,
-0.02190975658595562,
0.014854269102215767,
0.02257360890507698,
-0.012965120375156403,
-0.02414470911026001,
-0.015065209940075874,
-0.04784218221902847,
-0.0006939528975635767,
0.046418167650699615,
0.031805213540792465,
0.0171849075704813,
-0.026449285447597504,
-0.04056571424007416,
0.008558305911719799,
0.02430572547018528,
-0.0006132298149168491,
-0.03154386952519417,
0.005558511707931757,
-0.00359234563075006,
-0.007203084882348776,
0.016101226210594177,
0.04305911436676979,
-0.016473524272441864,
-0.04315495118498802,
0.05821579322218895,
-0.005760562606155872,
-0.0466124527156353,
-0.023460667580366135,
0.038579508662223816,
0.01529049314558506,
-0.03559795394539833,
0.023959960788488388,
-0.023365313187241554,
-0.028484439477324486,
0.029928402975201607,
-0.056295543909072876,
0.03246448561549187,
0.04167359322309494,
0.0016182626131922007,
-0.003253542585298419,
-0.00022325529425870627,
0.02545218914747238,
-0.012306466698646545,
-0.02362961880862713,
0.003295614616945386,
0.004739233758300543,
-0.007707631681114435,
0.01693533919751644,
-0.0015322493854910135,
0.021283520385622978,
0.024603182449936867,
-0.0073146335780620575,
-0.0503099225461483,
-0.008793717250227928,
0.015401016920804977,
-0.03839825838804245,
0.008837620727717876,
-0.000987755716778338,
-0.028877919539809227,
-0.018083523958921432,
0.038544781506061554,
-0.020837631076574326,
-0.00681102043017745,
-0.017440903931856155,
-0.00696819880977273,
-0.01126998569816351,
-0.01586887054145336,
0.02401081658899784,
0.043167844414711,
0.027081722393631935,
0.01889256201684475,
0.02776871807873249,
0.05696278065443039,
0.06415800005197525,
-0.02973218820989132,
0.01662931591272354,
0.0018535889685153961,
0.04046126455068588,
-0.006002102047204971,
0.028529616072773933,
-0.03393592685461044,
-0.003931095823645592,
-0.005430599674582481,
0.01343979500234127,
0.03240421041846275,
-0.042260777205228806,
-0.03486425057053566,
-0.0008696012082509696,
0.010969811119139194,
0.018016330897808075,
-0.03565434738993645,
0.031480155885219574,
0.03177206590771675,
0.059087514877319336,
-0.027339477092027664,
0.026008350774645805,
0.015334205701947212,
0.01049109548330307,
0.020952187478542328,
0.027466965839266777,
0.03288925811648369,
0.014620263129472733,
0.05044664070010185,
0.01368485577404499,
0.025074757635593414,
0.008664365857839584,
-0.06906384229660034,
0.030747074633836746,
-0.005571168381720781,
-0.02404511719942093,
0.021711962297558784,
-0.033693235367536545,
-0.03597721830010414,
-0.04512571915984154,
-0.010013962164521217,
-0.026031604036688805,
0.0038127785082906485,
0.039849743247032166,
-0.04470460116863251,
-0.01773889549076557,
-0.046350229531526566,
0.0019366079941391945,
0.01882500760257244,
0.003480670740827918,
0.018823055550456047,
-0.019213411957025528,
-0.024324582889676094,
0.017808062955737114,
0.00850702915340662,
-0.0007266703760251403,
-0.057878799736499786,
0.011971711181104183,
-0.015740711241960526,
0.00039940656279213727,
0.02089160867035389,
-0.03110329620540142,
0.016456494107842445,
0.04678342118859291,
0.004485227633267641,
-0.020600106567144394,
0.00849062018096447,
0.020351359620690346,
0.01660732738673687,
-0.04953811690211296,
0.004506238270550966,
-0.024759279564023018,
-0.008813183754682541,
0.003983795642852783,
-0.061608050018548965,
0.05172254890203476,
-0.0015751236351206899,
0.020157549530267715,
0.006983477622270584,
0.05358171463012695,
-0.03665962070226669,
-0.03300502151250839,
-0.0198271032422781,
-0.023952888324856758,
-0.022333484143018723,
0.03872465342283249,
0.030113879591226578,
0.0018798653036355972,
0.011365209706127644,
-0.03745530545711517,
0.010927409864962101,
-0.0017188765341416001,
0.004581333138048649,
0.061145368963479996,
0.004072658717632294,
-0.04223157837986946,
-0.021376173943281174,
0.027631351724267006,
0.012866250239312649,
0.027025092393159866,
0.03747076168656349,
-0.004286976531147957,
0.03042018413543701,
-0.04204828292131424,
0.007993912324309349,
-0.012612145394086838,
-0.005447655916213989,
-0.04954648017883301,
-0.03927032649517059,
-0.006115908734500408,
0.02724619023501873,
0.019846169278025627,
-0.012829145416617393,
-0.028695397078990936,
-0.010824336670339108,
-0.05965554341673851,
-0.0003543976054061204,
0.024209456518292427,
-0.00527616823092103,
0.06503043323755264,
0.03502197936177254,
0.011395521461963654,
0.004633760079741478,
-0.046187303960323334,
-0.03479236736893654,
0.0002792881859932095,
0.008148178458213806,
0.05911702290177345,
-0.019320402294397354,
0.002394840121269226,
-0.04201729968190193,
-0.06033651530742645,
-0.013472972437739372,
-0.030168132856488228,
0.029188958927989006,
0.023569706827402115,
0.0020578375551849604,
0.019137084484100342,
0.0012107964139431715,
-0.03924492001533508,
-0.015747636556625366,
0.003936887718737125,
-0.0017669692169874907,
-0.025115955621004105,
-0.008617609739303589,
-0.055536165833473206,
-0.041056569665670395,
-0.025873636826872826,
0.014805321581661701,
0.023364130407571793,
0.07022019475698471,
0.05023256689310074,
-0.004097611643373966,
-0.013707863166928291,
-0.02900528535246849,
0.03017161600291729,
-0.013213678263127804,
-0.06266199797391891,
-0.009123745374381542,
0.01755847968161106,
-0.000545334885828197,
-0.01872967928647995,
-0.02378958649933338,
0.05420197546482086,
0.021016597747802734,
-0.01346056628972292,
-0.00976796168833971,
-0.04009678214788437,
0.004353446885943413,
-0.06704062223434448,
0.020538330078125,
0.02672518976032734,
0.02726302482187748,
0.02613077498972416,
0.03242909908294678,
0.012815101072192192,
0.021489830687642097
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Perceiver for images Now that we've seen how to apply the Perceiver to perform text classification, it is straightforward to apply the Perceiver to do image classification. The only difference is that we'll provide a different preprocessor to the model, which will embed the image inputs. The Perceiver authors actually tried out 3 different ways of preprocessing: - flattening the pixel values, applying a convolutional layer with kernel size 1 and adding learned absolute 1D position embeddings. - flattening the pixel values and adding fixed 2D Fourier position embeddings. - applying a 2D convolutional + maxpool layer and adding fixed 2D Fourier position embeddings. Each of these are implemented in the Transformers library, and called PerceiverForImageClassificationLearned, PerceiverForImageClassificationFourier and PerceiverForImageClassificationConvProcessing respectively. They only differ in their configuration of PerceiverImagePreprocessor. Let's take a closer look at PerceiverForImageClassificationLearned. It initializes a PerceiverModel as follows: python from torch import nn from transformers import PerceiverModel from transformers.models.perceiver.modeling_perceiver import PerceiverImagePreprocessor, PerceiverClassificationDecoder class PerceiverForImageClassificationLearned(nn.Module): def __init__(self, config): super().__init__(config) self.perceiver = PerceiverModel( config, input_preprocessor=PerceiverImagePreprocessor( config, prep_type="conv1x1", spatial_downsample=1, out_channels=256, position_encoding_type="trainable", concat_or_add_pos="concat", project_pos_dim=256, trainable_position_encoding_kwargs=dict(num_channels=256, index_dims=config.image_size ** 2), ), decoder=PerceiverClassificationDecoder( config, num_channels=config.d_latents, trainable_position_encoding_kwargs=dict(num_channels=config.d_latents, index_dims=1), use_query_residual=True, ), ) One can see that PerceiverImagePreprocessor is initialized with prep_type = "conv1x1" and that one adds arguments for the trainable position encodings. So how does this preprocessor work in detail? Suppose that one provides a batch of images to the model. Let's say one applies center cropping to a resolution of 224 and normalization of the color channels first, such that the inputs are of shape (batch_size, num_channels, height, width) = (batch_size, 3, 224, 224). One can use PerceiverImageProcessor for this, as follows: python from transformers import PerceiverImageProcessor import requests from PIL import Image processor = PerceiverImageProcessor.from_pretrained("deepmind/vision-perceiver") url = 'http://images.cocodataset.org/val2017/000000039769.jpg' image = Image.open(requests.get(url, stream=True).raw) inputs = processor(image, return_tensors="pt").pixel_values PerceiverImagePreprocessor (with the settings defined above) will first apply a convolutional layer with kernel size (1, 1) to turn the inputs into a tensor of shape (batch_size, 256, 224, 224) - hence increasing the channel dimension. It will then place the channel dimension last - so now one has a tensor of shape (batch_size, 224, 224, 256). Next, it flattens the spatial (height + width) dimensions such that one has a tensor of shape (batch_size, 50176, 256). Next, it concatenates it with trainable 1D position embeddings. As the dimensionality of the position embeddings is defined to be 256 (see the num_channels argument above), one is left with a tensor of shape (batch_size, 50176, 512). This tensor will be used for the cross-attention operation with the latents. The authors use 512 latents for all image models, and set the dimensionality of the latents to 1024. Hence, the latents are a tensor of shape (batch_size, 512, 1024) - assuming we add a batch dimension. The cross-attention layer takes the queries of shape (batch_size, 512, 1024) and keys + values of shape (batch_size, 50176, 512) as input, and produces a tensor that has the same shape as the queries, so outputs a new tensor of shape (batch_size, 512, 1024). Next, a block of 6 self-attention layers is applied repeatedly (8 times), to produce final hidden states of the latents of shape (batch_size, 512, 1024). To turn these into classification logits, PerceiverClassificationDecoder is used, which works similarly to the one for text classification: it uses the latents as keys + values, and uses trainable position embeddings of shape (batch_size, 1, num_labels) as queries. The output of the cross-attention operation is a tensor of shape (batch_size, 1, num_labels), which is squeezed to have classification logits of shape (batch_size, num_labels). The Perceiver authors show that the model is capable of achieving strong results compared to models designed primarily for image classification (such as ResNet or ViT). After large-scale pre-training on JFT, the model that uses conv+maxpool preprocessing (PerceiverForImageClassificationConvProcessing) achieves 84.5 top-1 accuracy on ImageNet. Remarkably, PerceiverForImageClassificationLearned, the model that only employs a 1D fully learned position encoding, achieves a top-1 accuracy of 72.7 despite having no privileged information about the 2D structure of images. | [
0.00016726691683288664,
-0.035701628774404526,
-0.015387087129056454,
-0.015510166063904762,
0.02781679481267929,
0.11813066154718399,
0.025033188983798027,
0.05022437870502472,
-0.08470313251018524,
-0.04465731978416443,
-0.061625704169273376,
0.050468504428863525,
0.02360919490456581,
0.050070870667696,
0.0320301316678524,
-0.04408693313598633,
0.048532869666814804,
0.05425620079040527,
-0.033775053918361664,
0.006795230787247419,
-0.031558118760585785,
-0.09118256717920303,
-0.010594568215310574,
-0.03057928942143917,
-0.03940718621015549,
-0.024975668638944626,
0.0228110458701849,
0.010993885807693005,
-0.05767113342881203,
0.019357964396476746,
-0.09479369223117828,
0.038019366562366486,
-0.0031324983574450016,
-0.06413485109806061,
-0.005309795029461384,
0.015215668827295303,
-0.08724632859230042,
-0.004374271724373102,
0.07185346633195877,
-0.002500697737559676,
0.001255561481229961,
0.04033069685101509,
-0.07906149327754974,
0.072732113301754,
0.010692521929740906,
-0.0653461292386055,
-0.15276966989040375,
0.046967361122369766,
0.00857567973434925,
0.007472453638911247,
-0.08193527907133102,
0.04575181379914284,
-0.03980034589767456,
0.05164578557014465,
0.003522951388731599,
0.02839425951242447,
0.031146738678216934,
-0.02528468891978264,
0.03126818686723709,
-0.011669826693832874,
0.030956726521253586,
0.0010792851680889726,
-0.010585788637399673,
0.07423999160528183,
-0.010628698393702507,
0.03838934004306793,
-0.01341914664953947,
0.026826925575733185,
-0.02957184799015522,
-0.020784586668014526,
0.034428875893354416,
0.023455746471881866,
-0.00022999178327154368,
-0.036940306425094604,
-0.03655632212758064,
-0.032303135842084885,
-0.013095738366246223,
-0.0011436115019023418,
0.005644628312438726,
0.043131355196237564,
-0.023073814809322357,
-0.01319762784987688,
0.020080776885151863,
0.022545434534549713,
0.05437270179390907,
0.04166633263230324,
-0.006957803387194872,
-0.04119599238038063,
0.01948261447250843,
0.08771727979183197,
0.04551132023334503,
-0.11240128427743912,
0.007325361017137766,
0.05408276244997978,
0.07004401087760925,
0.03221561387181282,
-0.07149830460548401,
0.02487936243414879,
0.0037656028289347887,
-0.02298750728368759,
0.03835173323750496,
-0.02333076484501362,
0.07206875830888748,
-0.05199523642659187,
-0.01321492251008749,
0.03536725416779518,
-0.07522963732481003,
-0.02763775922358036,
-0.07805031538009644,
0.010738980025053024,
0.011980075389146805,
0.030044876039028168,
0.036984194070100784,
0.043528228998184204,
-0.09512986242771149,
-0.03467023745179176,
0.03953944891691208,
0.0006583702052012086,
-0.007054939866065979,
0.01577809825539589,
0.0008638901636004448,
0.0638907253742218,
0.058830637484788895,
0.009916672483086586,
-0.047327034175395966,
0.01063140481710434,
0.0358898751437664,
0.011226775124669075,
-0.031139472499489784,
0.009423837065696716,
0.02543213590979576,
-0.039103392511606216,
0.06188810616731644,
0.03047144040465355,
-0.011984992772340775,
-0.06675844639539719,
-0.0037697169464081526,
-0.08937856554985046,
-0.03575119748711586,
-0.02333814464509487,
0.004662428982555866,
0.04235481843352318,
0.034013379365205765,
0.032702796161174774,
0.003377156797796488,
-0.047964420169591904,
-0.0008800924988463521,
0.0876585841178894,
0.0042907181195914745,
0.02411976270377636,
-0.1227957084774971,
0.036938078701496124,
0.007652857340872288,
-0.06251014769077301,
-0.0315622016787529,
0.036542683839797974,
-0.0013539238134399056,
-0.011898097582161427,
-0.055026788264513016,
0.004960502032190561,
-0.036215804517269135,
-0.08168625086545944,
-0.059718500822782516,
0.02871319279074669,
-0.037736136466264725,
-0.09126768261194229,
0.041186269372701645,
-0.026257161051034927,
0.057775214314460754,
0.015965351834893227,
-0.07273915410041809,
-0.06239636614918709,
0.007863675244152546,
0.05707794055342674,
-0.0070498026907444,
0.016495931893587112,
-0.0044094352051615715,
0.11714556813240051,
0.0014206526102498174,
-0.05389763042330742,
-0.0005620763404294848,
0.04753640666604042,
-0.07476282864809036,
0.01759253442287445,
0.06024462729692459,
-0.07535537332296371,
0.026005523279309273,
-0.04634702950716019,
0.033148106187582016,
0.01763799414038658,
-0.06627070903778076,
-0.004457984119653702,
0.00595311913639307,
-0.04680497944355011,
0.05870446562767029,
-0.02535867877304554,
-0.07416427880525589,
0.04689735174179077,
0.02976117841899395,
0.008654256351292133,
0.06899913400411606,
-0.0814514234662056,
-0.024532921612262726,
0.04600934684276581,
-0.012789841741323471,
-0.037645529955625534,
-0.012161312624812126,
0.00894418265670538,
0.037033163011074066,
0.05551937222480774,
0.02327258512377739,
-0.043166741728782654,
0.020448967814445496,
-0.03977065905928612,
0.004345903173089027,
0.0073050446808338165,
0.011870893649756908,
0.040503937751054764,
0.017112744972109795,
-0.02949739433825016,
0.1189625933766365,
0.005060883238911629,
0.013696965761482716,
0.006140066776424646,
-0.019920160993933678,
0.047421254217624664,
0.10470294952392578,
-0.00883813202381134,
0.021431945264339447,
-0.09714804589748383,
-0.028172118589282036,
-0.04142714664340019,
-0.006583115551620722,
-0.015597851946949959,
-0.08230122923851013,
-0.05127357691526413,
0.02544870413839817,
0.06957145780324936,
0.04971684515476227,
-0.004512130282819271,
-0.0066843898966908455,
-0.039074938744306564,
-0.05736404284834862,
-0.052260756492614746,
-0.06011057645082474,
-0.00697261793538928,
0.03485492989420891,
0.029297949746251106,
0.0004070219292771071,
0.018724437803030014,
-0.05826909840106964,
0.06291212886571884,
-0.004497821908444166,
-0.09474442899227142,
0.027451729401946068,
0.06650499999523163,
0.04053568094968796,
-0.024997204542160034,
0.029350565746426582,
0.035318419337272644,
-0.03521208092570305,
0.023701136931777,
-0.0014867964200675488,
-0.050224389880895615,
-0.05496334284543991,
-0.05710632726550102,
-0.006082775536924601,
0.0456414632499218,
0.03500743955373764,
-0.004614632111042738,
0.022424468770623207,
0.030859151855111122,
0.0382329523563385,
-0.042384274303913116,
0.04677392169833183,
0.022786034271121025,
0.031895264983177185,
-0.014050379395484924,
0.005734332371503115,
-0.01762048341333866,
-0.013885819353163242,
0.011583982035517693,
0.05321170389652252,
0.03407502919435501,
0.01065715029835701,
-0.006449500098824501,
-0.0009151581325568259,
-0.027613017708063126,
-0.00870668888092041,
0.0064015137031674385,
0.045715656131505966,
0.07702933251857758,
0.048046667128801346,
-0.03895074874162674,
-0.0023914482444524765,
0.023428017273545265,
-0.0029763763304799795,
-0.047621309757232666,
0.01690627820789814,
0.027808578684926033,
-0.051385778933763504,
-0.024324769154191017,
-0.007152180653065443,
0.00015984071069397032,
-0.03921281546354294,
0.05065828561782837,
0.019722498953342438,
0.04249033331871033,
-0.07924789190292358,
-0.031523220241069794,
0.02158834971487522,
0.026408283039927483,
0.0016291302163153887,
-0.0291951522231102,
0.03594238683581352,
0.006458481308072805,
0.019651444628834724,
0.06488969922065735,
0.0033710652496665716,
-0.037374768406152725,
0.011474804021418095,
0.00021137639123480767,
0.019592199474573135,
0.015014685690402985,
0.03695373609662056,
0.017661118879914284,
0.03035992570221424,
-0.012667815200984478,
-0.02426895871758461,
0.06325284391641617,
0.029523510485887527,
0.01778344251215458,
-0.013895750977098942,
0.024882305413484573,
0.0006433282396756113,
-0.03831709548830986,
-0.0012623060029000044,
-0.04835113137960434,
-0.056686002761125565,
-0.016725042834877968,
-0.022652490064501762,
0.01056748442351818,
-0.053219761699438095,
0.017523812130093575,
0.023500164970755577,
0.015742704272270203,
-0.008789598010480404,
-0.004951589275151491,
0.011978672817349434,
0.03392627462744713,
-0.027811391279101372,
-0.02610810287296772,
0.02525791898369789,
-0.055074550211429596,
-0.02221778780221939,
-0.010300841182470322,
0.0027788945008069277,
-0.03126537427306175,
-0.024355947971343994,
-0.001321688643656671,
0.022951383143663406,
0.048112113028764725,
0.0015918526332825422,
-0.02330462634563446,
-0.00028843421023339033,
0.033990152180194855,
0.0018405435839667916,
-0.022603889927268028,
-0.06196780502796173,
0.01634029671549797,
-0.022444285452365875,
0.0003792273928411305,
-0.010021861642599106,
0.05154008790850639,
0.02061506174504757,
0.013262287713587284,
0.015259296633303165,
0.016062989830970764,
-0.03125768154859543,
0.027677545323967934,
-0.033922649919986725,
0.003822822356596589,
-0.058444686233997345,
0.012935045175254345,
-0.03903644159436226,
0.018850820139050484,
0.030595364049077034,
-0.01221520733088255,
-0.012530345469713211,
0.013852322474122047,
-0.004956536460667849,
-0.03008241578936577,
0.007033525034785271,
-0.0011355539318174124,
-0.0005527224857360125,
-0.04493921622633934,
0.05444386228919029,
-0.023743949830532074,
0.008192918263375759,
-0.031217196956276894,
-0.023170234635472298,
-0.022216927260160446,
-0.00222767679952085,
-0.0011745415395125747,
-0.014269077219069004,
-0.02028070203959942,
0.005952091887593269,
0.01857236959040165,
0.042002853006124496,
-0.04726735129952431,
-0.025611596181988716,
0.025323454290628433,
0.024910716339945793,
0.016012338921427727,
-0.032065656036138535,
-0.01687684841454029,
0.02535323053598404,
-0.02703719213604927,
0.02309395745396614,
-0.0049547720700502396,
0.002325830515474081,
-0.006182193756103516,
0.03885544463992119,
-0.004028419964015484,
0.006662085186690092,
-0.033538464456796646,
0.0031043444760143757,
0.02474449947476387,
0.00596225168555975,
-0.003691363148391247,
-0.02423696592450142,
-0.016082007437944412,
0.0002616235287860036,
0.0015327767468988895,
0.03802718594670296,
0.04084807634353638,
-0.00879061408340931,
-0.006230303086340427,
-0.011745409108698368,
0.009614956565201283,
-0.010184021666646004,
0.02397603541612625,
0.03372664377093315,
0.0016297117108479142,
0.04641399532556534,
0.0034639330115169287,
0.03428146243095398,
-0.009110921993851662,
-0.04960865527391434,
0.020417843014001846,
0.03819465637207031,
0.0018492114031687379,
-0.00004328181967139244,
-0.01387366745620966,
-0.04522039741277695,
0.006603233050554991,
-0.03927208110690117,
0.043924231082201004,
0.015154162421822548,
-0.009789890609681606,
-0.034351859241724014,
0.0145484060049057,
0.047754961997270584,
-0.004700266756117344,
-0.02522754855453968,
0.03791080787777901,
-0.016749609261751175,
0.015436289831995964,
0.0499352365732193,
0.004692358896136284,
-0.011207747273147106,
-0.004379534162580967,
0.009468757547438145,
0.011189251206815243,
0.0032857933547347784,
-0.053644854575395584,
0.044312603771686554,
-0.0006243996322154999,
-0.01571563072502613,
-0.006988437380641699,
0.015119658783078194,
-0.026315845549106598,
-0.0063962978310883045,
-0.005943299271166325,
-0.019813498482108116,
0.02404211275279522,
-0.020622462034225464,
-0.03009229153394699,
-0.0053516714833676815,
-0.004648738075047731,
0.02579646185040474,
0.01369708776473999,
-0.001397909945808351,
-0.02311878465116024,
0.028578104451298714,
0.015465445816516876,
-0.0021421967539936304,
-0.005756873171776533,
0.003848572727292776,
0.010082835331559181,
0.010176800191402435,
-0.045186370611190796,
0.02528773434460163,
-0.00032390031265094876,
0.0032735734712332487,
0.04595814272761345,
-0.012721571139991283,
-0.020120026543736458,
-0.030608348548412323,
0.035992205142974854,
-0.017204666510224342,
-0.03837033361196518,
-0.017942382022738457,
-0.005180369131267071,
0.006836269050836563,
-0.012401947751641273,
0.0021408412139862776,
-0.04723631590604782,
0.020655479282140732,
-0.008130201138556004,
-0.040508754551410675,
-0.011084060184657574,
-0.02096620947122574,
0.009649938903748989,
-0.015746401622891426,
0.04700499027967453,
0.016063077375292778,
0.022891825065016747,
-0.0330839604139328,
-0.03225675970315933,
-0.006202592980116606,
0.011976800858974457,
0.02611326426267624,
-0.045126866549253464,
0.027403995394706726,
-0.008029347285628319,
-0.024261442944407463,
0.056237466633319855,
0.022948380559682846,
-0.0038785897195339203,
0.011523007415235043,
0.0407019779086113,
0.00578549737110734,
-0.010262057185173035,
-0.014306548051536083,
0.07836388051509857,
0.019675362855196,
-0.04730795696377754,
0.018062597140669823,
-0.04522329568862915,
-0.008930111303925514,
0.031289901584386826,
0.009508985094726086,
0.020157387480139732,
-0.00008296965825138614,
-0.0228863637894392,
-0.0403568334877491,
0.0008609729120507836,
0.034607842564582825,
0.03161238133907318,
0.01546349935233593,
-0.05153236165642738,
0.014834816567599773,
0.04442518204450607,
0.029798289760947227,
0.02176809310913086,
0.02398851327598095,
0.04531039670109749,
0.03431183844804764,
-0.05560372769832611,
-0.02854534424841404,
0.02788837067782879,
-0.019678102806210518,
-0.00875589344650507,
-0.018833376467227936,
0.019124947488307953,
0.04968693479895592,
0.016764206811785698,
0.04974202811717987,
0.03373805806040764,
0.020079417154192924,
0.0018058564746752381,
-0.02165621519088745,
0.020090019330382347,
0.0015823638532310724,
0.05844682455062866,
-0.019736144691705704,
0.009660711511969566,
0.01899738982319832,
0.032346151769161224,
0.05460163205862045,
-0.022398648783564568,
-0.024801811203360558,
0.020245196297764778,
0.05070530250668526,
-0.037249960005283356,
-0.00007292484951904044,
0.04639507457613945,
0.028869107365608215,
-0.033002957701683044,
-0.03552104905247688,
-0.04862644523382187,
-0.04642541706562042,
0.045055847615003586,
0.040252529084682465,
0.02066529542207718,
-0.008867625147104263,
-0.06355611979961395,
0.07632511854171753,
0.03631144016981125,
0.07576491683721542,
0.018901273608207703,
0.02127879112958908,
0.04283640906214714,
0.019303366541862488,
0.006182802375406027,
-0.01453362312167883,
0.02921011485159397,
-0.023319385945796967,
-0.0054151322692632675,
0.009337454102933407,
0.030109994113445282,
0.01209750585258007,
-0.04762347787618637,
0.023510294035077095,
-0.0010011405684053898,
-0.0351826474070549,
-0.016930829733610153,
-0.004782609175890684,
-0.0029534236527979374,
-0.015256540849804878,
0.007861947640776634,
-0.09292207658290863,
0.025510210543870926,
-0.024935048073530197,
0.018642757087945938,
-0.006478807423263788,
0.02858874388039112,
0.000845144793856889,
0.05412794277071953,
0.020129797980189323,
0.007933816872537136,
0.005175639409571886,
-0.016204997897148132,
0.00263431528583169,
0.037719231098890305,
0.02761010266840458,
-0.0158033799380064,
-0.008692517876625061,
-0.010708048939704895,
-0.029844919219613075,
-0.008156845346093178,
-0.014506984502077103,
0.006747307255864143,
-0.0000804499359219335,
0.017628898844122887,
0.0022707839962095022,
0.005854979623109102,
0.029128631576895714,
0.005719771143049002,
0.00030467277974821627,
0.0014998805709183216,
-0.03791937232017517,
-0.018417954444885254,
-0.04092217981815338,
-0.026655208319425583,
0.0011614477261900902,
-0.018902024254202843,
0.045140236616134644,
0.010641979053616524,
0.052788145840168,
-0.02585602179169655,
-0.06605429947376251,
-0.021726472303271294,
0.0028470188844949007,
0.04190816730260849,
0.06729553639888763,
0.04985828697681427,
-0.009760165587067604,
0.03210196644067764,
0.0018245975952595472,
0.0017233305843546987,
0.027303088456392288,
-0.015678657218813896,
0.03244801610708237,
-0.014593455940485,
-0.05916936695575714,
-0.04118458926677704,
0.027759790420532227,
-0.044442079961299896,
-0.003514789277687669,
0.014359287917613983,
0.05199583247303963,
-0.003383323084563017,
0.02644873969256878,
0.03521984815597534,
-0.0518975667655468,
-0.04338446259498596,
-0.020673301070928574,
-0.025753989815711975,
-0.05060455575585365,
0.022325828671455383,
-0.023948360234498978,
0.056694649159908295,
-0.053238023072481155,
0.013011079281568527,
-0.0484723299741745,
0.012338103726506233,
-0.020257489755749702,
-0.021773243322968483,
0.08623827248811722,
0.010518721304833889,
0.003685817588120699,
-0.010738680139183998,
-0.06129768490791321,
0.030465932562947273,
-0.012097490020096302,
-0.02804005704820156,
0.06804874539375305,
-0.03086891770362854,
0.00592718506231904,
-0.01850881427526474,
0.017247462645173073,
0.01992650143802166,
-0.00736561045050621,
-0.015720583498477936,
0.03335857391357422,
-0.005838928744196892,
-0.0037205249536782503,
0.044649578630924225,
0.006745846476405859,
0.049284182488918304,
0.013969214633107185,
-0.0052330028265714645,
-0.020630156621336937,
-0.004564233589917421,
0.01528202649205923,
-0.037426963448524475,
0.01709434948861599,
0.00523575721308589,
-0.026670468971133232,
0.011643015779554844,
-0.02533327043056488,
0.05428698658943176,
0.0013640508987009525,
0.014129579067230225,
0.004193929489701986,
-0.05381128191947937,
-0.010747908614575863,
-0.036442793905735016,
-0.027649657800793648,
0.02722601778805256,
0.007538921665400267,
-0.036053791642189026,
0.018418490886688232,
-0.016885066404938698,
0.02387091889977455,
0.018927307799458504,
-0.02024966850876808,
-0.019429685547947884,
0.00535612041130662,
-0.009425927884876728,
0.005074232816696167,
0.08816744387149811,
0.017782844603061676,
0.026481620967388153,
-0.010204693302512169,
-0.03304640203714371
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | TLDR We've added Perceiver IO to Transformers, the first Transformer-based neural network that works on all kinds of modalities (text, images, audio, video, point clouds,...) and combinations thereof. Take a look at the following Spaces to view some examples: - predicting optical flow between images - classifying images. We also provide several notebooks. Below, you can find a technical explanation of the model. | [
0.02482503280043602,
-0.1483936458826065,
0.05296500772237778,
-0.0500667542219162,
0.041797854006290436,
0.05597691982984543,
-0.014667129144072533,
0.0905008316040039,
-0.05062449723482132,
-0.03085387870669365,
-0.038759566843509674,
0.12985803186893463,
-0.017281057313084602,
0.08682049065828323,
0.026938356459140778,
-0.011557606980204582,
-0.024257296696305275,
0.03409230709075928,
-0.0014955508522689342,
0.021898992359638214,
-0.026126746088266373,
-0.07514823973178864,
-0.01806258037686348,
-0.09862787276506424,
-0.020002400502562523,
-0.03968028351664543,
-0.028533486649394035,
0.026327602565288544,
-0.08548936247825623,
0.02367236465215683,
-0.04001961648464203,
0.09107081592082977,
-0.007753695826977491,
-0.039172619581222534,
-0.052759815007448196,
0.01277116034179926,
-0.10452914237976074,
-0.007441813591867685,
-0.006340737454593182,
-0.03951237350702286,
-0.06247429922223091,
0.02607404999434948,
-0.054629068821668625,
0.022034674882888794,
-0.016631675884127617,
-0.01244811899960041,
-0.15069493651390076,
0.07770628482103348,
-0.03957856073975563,
-0.002946955617517233,
-0.0520307719707489,
0.07639417052268982,
0.0033510159701108932,
0.019653933122754097,
0.020722897723317146,
0.02266542986035347,
0.02702249027788639,
-0.017101479694247246,
0.033160582184791565,
0.008527694270014763,
0.0332721583545208,
-0.019451897591352463,
-0.005255770869553089,
0.00359102850779891,
0.012461471371352673,
-0.047564249485731125,
0.002409390639513731,
-0.02216382883489132,
-0.03185950964689255,
-0.021526413038372993,
0.03613933175802231,
0.016803095117211342,
-0.013157738372683525,
-0.020118223503232002,
-0.019445069134235382,
-0.000505141681060195,
0.018634360283613205,
0.023317452520132065,
0.021661609411239624,
-0.0023147142492234707,
-0.029147334396839142,
0.03416990116238594,
0.04615604504942894,
0.04887707158923149,
0.02202124334871769,
0.03616170585155487,
-0.007392332423478365,
-0.030159294605255127,
-0.017200030386447906,
0.04264277592301369,
0.06445196270942688,
-0.14128313958644867,
-0.010618288069963455,
0.03625892847776413,
0.11949453502893448,
0.03255326300859451,
-0.0191327016800642,
-0.0036350025329738855,
-0.007977070286870003,
-0.06298072636127472,
0.016498439013957977,
-0.00993301160633564,
0.0789017453789711,
-0.06995680928230286,
0.0006953404517844319,
0.03184584528207779,
-0.045836616307497025,
-0.030868960544466972,
-0.031446997076272964,
0.07901820540428162,
-0.021446969360113144,
0.008832855150103569,
0.06084960326552391,
0.06090223789215088,
-0.05341974273324013,
-0.0014385207323357463,
-0.019516419619321823,
0.03651249781250954,
0.000433220062404871,
0.032599009573459625,
0.035479407757520676,
0.036468394100666046,
0.0051299105398356915,
0.01359524205327034,
-0.030221469700336456,
0.0026884886901825666,
-0.009938272647559643,
-0.041583675891160965,
-0.03916371986269951,
-0.004152985755354166,
0.044257886707782745,
-0.10593494027853012,
0.04450617730617523,
-0.005134119652211666,
0.02482493221759796,
-0.09518793970346451,
0.027295725420117378,
-0.07731941342353821,
-0.04809311777353287,
-0.008176661096513271,
0.006373888347297907,
0.02113274484872818,
0.047846339643001556,
-0.011842949315905571,
0.005872695241123438,
-0.04743572697043419,
-0.03508690744638443,
0.07577196508646011,
0.013104951940476894,
-0.01012491062283516,
-0.14691799879074097,
0.05140935257077217,
-0.031490303575992584,
-0.041572630405426025,
-0.02335556223988533,
0.04343247413635254,
0.05903223156929016,
0.014670236967504025,
-0.019288429990410805,
-0.004242713563144207,
-0.007016567047685385,
-0.02004009671509266,
-0.05532481148838997,
0.054232507944107056,
-0.038239069283008575,
-0.08939927816390991,
0.0025779802817851305,
0.0295861903578043,
0.04692450538277626,
0.024639122188091278,
0.019404293969273567,
-0.017970921471714973,
0.000024732067686272785,
0.003143968293443322,
-0.03267548605799675,
-0.0038188837934285402,
0.05169416591525078,
0.09643586724996567,
0.042481329292058945,
-0.04738198220729828,
-0.008967249654233456,
0.052005309611558914,
-0.026049580425024033,
0.02589184045791626,
0.08305980265140533,
-0.014435941353440285,
-0.004456087946891785,
-0.005180590320378542,
0.05783623829483986,
0.0004282004665583372,
-0.012233519926667213,
-0.02764616720378399,
0.08233194798231125,
0.0035816531162708998,
0.08353246748447418,
-0.011792900040745735,
-0.063564233481884,
0.038313522934913635,
0.036476705223321915,
0.03259844705462456,
0.1018463671207428,
-0.09852983802556992,
0.01377077680081129,
-0.023153359070420265,
-0.011871160008013248,
-0.017768248915672302,
0.09167300164699554,
0.03517309948801994,
-0.007401143200695515,
-0.03649023175239563,
-0.0018115744460374117,
-0.03588350489735603,
-0.005154669750481844,
-0.03129309043288231,
0.039776161313056946,
-0.014841783791780472,
-0.0476260706782341,
0.047555796802043915,
-0.0305631123483181,
-0.015967698767781258,
0.11841630190610886,
-0.007217883598059416,
0.004416549578309059,
0.0071408553048968315,
-0.01763313263654709,
0.08281610906124115,
0.07089587301015854,
-0.003149775555357337,
0.004512862302362919,
-0.07004524022340775,
0.00809958390891552,
-0.01594572141766548,
-0.05650626868009567,
0.006603298708796501,
-0.012874430976808071,
0.018356317654252052,
0.034301288425922394,
0.011336159892380238,
0.03514125570654869,
0.0016166362911462784,
-0.02998809516429901,
0.016100116074085236,
-0.040609363466501236,
0.011408830992877483,
-0.043255336582660675,
-0.020878253504633904,
0.06842292100191116,
-0.01312272995710373,
0.0077479928731918335,
0.018935786560177803,
-0.101047083735466,
0.09668328613042831,
0.0026636349502950907,
-0.081402987241745,
0.042448077350854874,
0.029806051403284073,
0.033191099762916565,
-0.0217424388974905,
0.010343877598643303,
0.027135545387864113,
-0.04091562703251839,
0.008639652281999588,
-0.012715646997094154,
-0.029480958357453346,
-0.050903789699077606,
-0.02773810178041458,
-0.028434880077838898,
0.03178216889500618,
0.04662977159023285,
-0.014248194172978401,
0.03329021856188774,
-0.002990239067003131,
0.03380059823393822,
-0.04391565918922424,
0.04087311401963234,
-0.011957635171711445,
0.037770356982946396,
-0.0064027803018689156,
0.006900298874825239,
-0.03599550202488899,
-0.0012895575491711497,
-0.0037664109840989113,
0.09238677471876144,
0.03911302983760834,
0.00015692015585955232,
-0.03192463889718056,
-0.005635878071188927,
-0.0270583126693964,
-0.03891799971461296,
-0.01554450299590826,
-0.0028823332395404577,
0.02412545308470726,
0.004645169712603092,
-0.009953822009265423,
-0.022519858554005623,
0.035152506083250046,
0.04971981793642044,
-0.0039105284959077835,
-0.030396901071071625,
0.04517659172415733,
-0.032347604632377625,
0.050907108932733536,
0.00501346867531538,
-0.015617676079273224,
-0.02330297976732254,
0.029140328988432884,
0.014848373830318451,
0.05628561973571777,
-0.08242709934711456,
-0.052923306822776794,
-0.019225958734750748,
0.03331305831670761,
-0.0033092680387198925,
-0.029464473947882652,
0.010669024661183357,
0.011021976359188557,
-0.018449369817972183,
0.02692444995045662,
-0.011584052816033363,
-0.014916813932359219,
0.0103941410779953,
-0.008040920831263065,
-0.010292320512235165,
0.0007144336123019457,
-0.026274053379893303,
0.010603939183056355,
0.04527902230620384,
0.01802913285791874,
-0.028998084366321564,
0.05324731022119522,
0.009368606843054295,
-0.0011273871641606092,
-0.061227258294820786,
0.016298456117510796,
0.02657354064285755,
-0.01962193101644516,
0.04047035798430443,
-0.025425348430871964,
-0.03161470592021942,
-0.003827007720246911,
-0.0192670077085495,
0.06714893132448196,
0.008837705478072166,
0.010725765489041805,
0.011126487515866756,
0.004451255314052105,
0.032529525458812714,
-0.009903731755912304,
0.0012751467293128371,
-0.0019180719973519444,
0.014143785461783409,
0.01152509730309248,
-0.008566304109990597,
-0.0160916019231081,
0.018501853570342064,
0.01640057936310768,
-0.0024246920365840197,
-0.00277185277082026,
-0.025455297902226448,
-0.017863433808088303,
-0.008167748339474201,
0.016081655398011208,
0.009026780724525452,
-0.03579672798514366,
0.0018717567436397076,
0.004121806472539902,
-0.005180940497666597,
-0.035171736031770706,
-0.030086658895015717,
0.01866377331316471,
0.0041849506087601185,
0.013688833452761173,
-0.03673536702990532,
0.04064247012138367,
0.031942229717969894,
0.013010178692638874,
0.03461345657706261,
0.01905732788145542,
-0.01444324292242527,
0.04576210677623749,
0.006668815389275551,
0.005252691451460123,
-0.0377262644469738,
0.03348202258348465,
0.012018086388707161,
0.004478416405618191,
0.05507872253656387,
-0.008053264580667019,
-0.03934324532747269,
-0.031365908682346344,
-0.0024900096468627453,
-0.046916864812374115,
0.022876113653182983,
0.009167562238872051,
0.02547844871878624,
-0.04326074197888374,
0.04022771865129471,
-0.004290448501706123,
0.022957274690270424,
-0.043942488729953766,
-0.019478723406791687,
-0.041286349296569824,
0.018976455554366112,
0.015329386107623577,
-0.050536610186100006,
0.00905225332826376,
0.0008826872217468917,
-0.011250670067965984,
0.03471795842051506,
-0.06635814160108566,
-0.020126864314079285,
-0.0057487888261675835,
0.012547431513667107,
0.006367878522723913,
0.017057964578270912,
-0.012273391708731651,
0.0008048702729865909,
-0.015392339788377285,
0.017119968309998512,
-0.018992125988006592,
-0.004482216667383909,
0.030867744237184525,
0.03410590440034866,
0.0013787864008918405,
-0.00009814211080083624,
-0.010053622536361217,
-0.029130879789590836,
-0.013091538101434708,
0.023239383473992348,
-0.02851639688014984,
0.010847429744899273,
-0.013285020366311073,
0.0028377005364745855,
0.027678394690155983,
0.0123904999345541,
0.04729331284761429,
-0.03921204060316086,
0.01939605362713337,
-0.019312255084514618,
-0.035684652626514435,
0.0016616657376289368,
0.04228153079748154,
0.003960263449698687,
-0.00013827030488755554,
0.018272746354341507,
0.03224032744765282,
-0.008006945252418518,
0.024274831637740135,
-0.027989665046334267,
0.006939732003957033,
0.0454050712287426,
-0.017856916412711143,
0.013228205032646656,
-0.04936462268233299,
-0.02867487072944641,
0.015312204137444496,
-0.00909277331084013,
0.01358884759247303,
0.012564837001264095,
-0.022930145263671875,
-0.028957311064004898,
0.016947301104664803,
0.061595369130373,
-0.01872429810464382,
-0.011706268414855003,
0.03128337487578392,
-0.003277441021054983,
0.07376712560653687,
0.05690928176045418,
0.007473640143871307,
-0.030543848872184753,
-0.03391942381858826,
0.006607736460864544,
0.033196620643138885,
0.005565176252275705,
-0.03273242339491844,
0.0297838244587183,
-0.011131960898637772,
0.002910999348387122,
-0.008184376172721386,
0.021189361810684204,
-0.04505562037229538,
-0.02329174615442753,
0.008909523487091064,
0.000633819552604109,
0.01611250638961792,
-0.005525215063244104,
-0.00013131124433130026,
0.005914033390581608,
-0.014449640177190304,
0.029706314206123352,
0.015008745715022087,
0.035796236246824265,
-0.007506059482693672,
0.029195604845881462,
0.034040551632642746,
0.011293475516140461,
0.010748649947345257,
0.025172162801027298,
-0.004878332372754812,
-0.028035152703523636,
-0.06108617037534714,
0.03220877796411514,
-0.028269506990909576,
0.007235723547637463,
0.04680290073156357,
0.008466857485473156,
-0.008648975752294064,
0.004025927744805813,
0.026514284312725067,
-0.028731849044561386,
-0.0249179657548666,
-0.019390324130654335,
-0.02126060612499714,
-0.00003632368679973297,
0.0006044442416168749,
-0.012939848005771637,
-0.020623868331313133,
0.02103229984641075,
-0.0056957947090268135,
-0.004403396975249052,
-0.04601107910275459,
0.002059837570413947,
-0.01336670108139515,
0.02554159238934517,
0.018724823370575905,
0.03126835078001022,
0.04409700259566307,
-0.03641091659665108,
-0.04813460633158684,
0.005242813844233751,
-0.023764774203300476,
0.03756032511591911,
-0.0372314453125,
0.048908185213804245,
0.01260509341955185,
-0.04493321105837822,
0.012868487276136875,
0.04205888509750366,
0.016956228762865067,
-0.025076206773519516,
0.04284130409359932,
-0.025501247495412827,
0.00010311916412319988,
-0.025056850165128708,
0.0558568499982357,
0.020682144910097122,
-0.043399203568696976,
0.037950657308101654,
-0.028037218376994133,
-0.013003974221646786,
0.004270339384675026,
-0.03261960670351982,
0.04414084926247597,
0.0348670668900013,
0.02979207970201969,
0.0013695197412744164,
0.0015080918092280626,
0.056930046528577805,
-0.0032414665911346674,
-0.03512082248926163,
-0.011652810499072075,
-0.014237030409276485,
0.025481294840574265,
0.015733130276203156,
-0.0065293749794363976,
-0.02366122230887413,
0.03062191791832447,
0.00323589239269495,
-0.03349617123603821,
-0.002570654731243849,
0.00452638091519475,
-0.008273056708276272,
-0.004667677450925112,
0.012718062847852707,
0.016349956393241882,
0.049529094249010086,
0.01977371610701084,
0.028541384264826775,
0.02923450618982315,
0.03270871937274933,
-0.021973995491862297,
-0.0017073292983695865,
-0.016249677166342735,
0.03071320429444313,
0.067505843937397,
0.0159156396985054,
0.015462858602404594,
0.041919149458408356,
0.04031015932559967,
0.04444875568151474,
-0.004627494141459465,
0.014871585182845592,
0.03376378118991852,
0.05797071009874344,
-0.02512112632393837,
0.0033611159306019545,
0.04220675677061081,
-0.03074784018099308,
-0.06924010813236237,
-0.03175932168960571,
-0.04445946589112282,
-0.049870554357767105,
0.014910202473402023,
0.0008228903752751648,
0.020752355456352234,
-0.030688617378473282,
-0.032688722014427185,
0.04966074228286743,
0.026056431233882904,
0.0984748974442482,
0.012265745550394058,
0.016995949670672417,
0.040579427033662796,
0.020285917446017265,
0.030300267040729523,
0.010469471104443073,
0.03494466841220856,
-0.0023602761793881655,
0.020497901365160942,
-0.01908261701464653,
0.05565598979592323,
-0.010033884085714817,
-0.01662290282547474,
0.005869688931852579,
0.010657625272870064,
-0.018978556618094444,
-0.017694279551506042,
-0.027303604409098625,
0.0020682981703430414,
-0.03528471663594246,
-0.005094952881336212,
-0.051442548632621765,
-0.00760633172467351,
0.0005570721696130931,
0.010150200687348843,
-0.000925746513530612,
0.0014905254356563091,
0.01839730516076088,
0.04821932688355446,
0.013577676378190517,
0.023481255397200584,
-0.008513972163200378,
-0.04191898927092552,
0.02768511325120926,
0.028925413265824318,
-0.03997337445616722,
-0.04148659482598305,
-0.03674066439270973,
-0.013393706642091274,
-0.011991358362138271,
-0.008148021064698696,
0.015653293579816818,
0.01772686280310154,
0.03794947266578674,
0.022009534761309624,
-0.042966220527887344,
-0.011815465055406094,
0.013950818218290806,
0.00590601097792387,
-0.02549242600798607,
-0.01655277982354164,
-0.012498071417212486,
-0.02486496791243553,
-0.03601570054888725,
-0.022986847907304764,
0.014289172366261482,
-0.05674319341778755,
-0.000895563222002238,
0.019756615161895752,
0.06604348868131638,
-0.03230156749486923,
-0.025174466893076897,
-0.01812983676791191,
-0.015433214604854584,
-0.006663659121841192,
0.05241120606660843,
0.024478234350681305,
-0.035231031477451324,
0.03705534338951111,
-0.0018723051762208343,
0.039980385452508926,
0.016040939837694168,
-0.008499315939843655,
0.010313466191291809,
-0.009616793133318424,
-0.06213124096393585,
0.0015908416826277971,
0.01836364157497883,
0.030813395977020264,
0.0061971163377165794,
0.03326123580336571,
0.06260597705841064,
-0.026037493720650673,
-0.029970938339829445,
0.005237489007413387,
0.005186859052628279,
-0.01906220056116581,
-0.02255907654762268,
-0.060005053877830505,
-0.02575187385082245,
0.04102016240358353,
-0.02962546795606613,
0.032829102128744125,
-0.044458795338869095,
0.033082012087106705,
-0.040373969823122025,
-0.032848700881004333,
-0.030672399327158928,
0.017462020739912987,
0.06216057389974594,
0.024027639999985695,
0.0014205367770045996,
-0.04984375834465027,
-0.033344950526952744,
-0.010682567022740841,
-0.0481426902115345,
-0.02213992178440094,
0.06305062025785446,
-0.02021723985671997,
0.0031179164070636034,
-0.0611446350812912,
0.01831822097301483,
-0.02730461210012436,
-0.03278443589806557,
0.016223397105932236,
0.02469094656407833,
-0.003216271987184882,
0.009728713892400265,
0.018603529781103134,
-0.028469782322645187,
-0.006309442222118378,
-0.00022757287661079317,
0.004347033798694611,
-0.02259124256670475,
-0.028283094987273216,
-0.013652002438902855,
-0.009493733756244183,
-0.029010139405727386,
0.014112926088273525,
-0.032300930470228195,
0.026358848437666893,
0.015282082371413708,
0.01152780931442976,
-0.026378922164440155,
0.011223866604268551,
0.022311165928840637,
-0.048187680542469025,
-0.030139675363898277,
-0.019336631521582603,
-0.004082009196281433,
-0.0549173504114151,
-0.014885987155139446,
-0.07589753717184067,
0.03342471644282341,
-0.004140456207096577,
0.009669517166912556,
-0.010492824949324131,
-0.026008643209934235,
-0.04801475629210472,
0.010514981113374233,
0.05978759005665779,
0.0003606714017223567,
0.08120031654834747,
0.03408345207571983,
-0.0036997732240706682,
-0.007650366518646479,
-0.03771277889609337
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Conclusion In this blog post, we went over the architecture of Perceiver IO, an extension of the Perceiver by Google Deepmind, and showed its generality of handling all kinds of modalities. The big advantage of the Perceiver is that the compute and memory requirements of the self-attention mechanism don't depend on the size of the inputs and outputs, as the bulk of compute happens in a latent space (a not-too large set of vectors). Despite its task-agnostic architecture, the model is capabable of achieving great results on modalities such as language, vision, multimodal data, and point clouds. In the future, it might be interesting to train a single (shared) Perceiver encoder on several modalities at the same time, and use modality-specific preprocessors and postprocessors. As Karpathy puts it, it may well be that this architecture can unify all modalities into a shared space, with a library of encoders/decoders. Speaking of a library, the model is available in HuggingFace Transformers as of today. It will be exciting to see what people build with it, as its applications seem endless! | [
-0.0010438687168061733,
-0.07229346036911011,
0.03513112664222717,
-0.04336005449295044,
-0.01342933252453804,
0.07647783309221268,
0.037569351494312286,
0.034938182681798935,
-0.029585566371679306,
-0.06466976553201675,
-0.019793599843978882,
0.07070188224315643,
-0.04796750098466873,
0.09481561928987503,
-0.0037034929264336824,
-0.015604345127940178,
0.027339987456798553,
-0.013196824118494987,
0.018818436190485954,
0.04446570202708244,
-0.009385843761265278,
-0.05261978507041931,
-0.020634038373827934,
-0.047549981623888016,
-0.042348332703113556,
-0.04581842198967934,
-0.01911398023366928,
0.0245345551520586,
-0.06607593595981598,
-0.010735846124589443,
-0.10712043195962906,
0.04894502833485603,
-0.015491906553506851,
-0.023387691006064415,
-0.0003245689149480313,
-0.036437880247831345,
-0.1258905827999115,
-0.02376912534236908,
-0.003355481196194887,
-0.06066233292222023,
-0.02868870459496975,
0.029106954112648964,
-0.09107264131307602,
0.035477932542562485,
-0.03462313115596771,
-0.017570966854691505,
-0.12102282047271729,
0.060601770877838135,
-0.05285776033997536,
0.029462985694408417,
-0.06428330391645432,
0.09463472664356232,
0.032926324754953384,
0.04921644553542137,
0.06927716732025146,
-0.010490641929209232,
0.03386034071445465,
-0.023533042520284653,
0.027471693232655525,
-0.008555428124964237,
0.0062017859891057014,
-0.04339035227894783,
0.03893808275461197,
0.042163703590631485,
-0.004751128144562244,
0.007122416514903307,
-0.008347572758793831,
-0.041726868599653244,
-0.039432067424058914,
-0.027575384825468063,
-0.026373697444796562,
-0.031776703894138336,
-0.019833438098430634,
0.0329383984208107,
-0.03841309994459152,
-0.02320818603038788,
0.0316493883728981,
0.01556834764778614,
0.04362780973315239,
-0.02346090041100979,
0.00040853655082173645,
0.038333289325237274,
0.07275824248790741,
0.05290260538458824,
0.02792077325284481,
0.04435553029179573,
-0.007013123482465744,
-0.0637660026550293,
-0.06011151522397995,
0.07016982138156891,
0.015314887277781963,
-0.15694452822208405,
0.037582237273454666,
0.0367492139339447,
0.1339375078678131,
0.049847379326820374,
-0.010168871842324734,
-0.008772434666752815,
0.015503578819334507,
-0.017005708068609238,
-0.036452766507864,
-0.02972964383661747,
0.03500254824757576,
-0.08628732711076736,
0.01997315138578415,
0.03756043314933777,
-0.06522621214389801,
-0.048214253038167953,
-0.07515542954206467,
0.07935675978660583,
-0.000964358972851187,
0.00887512881308794,
0.00439986027777195,
0.032701049000024796,
-0.04435880109667778,
0.017747415229678154,
-0.05070847272872925,
0.06758826225996017,
0.0031312117353081703,
-0.019372062757611275,
0.025947008281946182,
0.056200142949819565,
0.012578653171658516,
-0.022200699895620346,
0.05452381446957588,
-0.005515050608664751,
-0.030031325295567513,
-0.03585503622889519,
-0.0032829889096319675,
-0.05147873982787132,
0.004695569630712271,
-0.07626945525407791,
0.055430520325899124,
0.0024079526774585247,
-0.02553393878042698,
-0.05346877500414848,
0.033855557441711426,
-0.04910872131586075,
-0.015619934536516666,
0.012495655566453934,
-0.013270006515085697,
0.0028090132400393486,
0.05080653727054596,
-0.0010404451750218868,
0.05315043032169342,
0.028318367898464203,
-0.05909740924835205,
0.06252211332321167,
-0.017074910923838615,
-0.005906144622713327,
-0.07355242967605591,
0.06177481636404991,
-0.045417215675115585,
-0.03462710976600647,
-0.002284316113218665,
0.04687870666384697,
-0.010476280935108662,
0.003896156558766961,
-0.003438834333792329,
0.03310856223106384,
-0.033292390406131744,
0.029002178460359573,
-0.06291037052869797,
0.0450613796710968,
-0.059647686779499054,
-0.032844364643096924,
0.012774443253874779,
0.006788772996515036,
0.013538980856537819,
0.017810214310884476,
0.010540248826146126,
0.021768711507320404,
0.05466289073228836,
-0.024001389741897583,
-0.04739357903599739,
-0.016414020210504532,
0.055768512189388275,
0.11596627533435822,
0.032059602439403534,
-0.031452249735593796,
0.022864634171128273,
-0.0012437410186976194,
-0.04658345505595207,
0.04891155660152435,
0.07453642040491104,
-0.03795689344406128,
0.0219134371727705,
-0.05089937523007393,
-0.007935633882880211,
-0.03859548270702362,
-0.030814971774816513,
-0.0009715584455989301,
0.030837155878543854,
0.014226438477635384,
0.08304629474878311,
-0.010270629078149796,
-0.07627224177122116,
0.09462809562683105,
0.0715731605887413,
0.04252751171588898,
0.1008383259177208,
-0.03798811510205269,
0.0008048646268434823,
0.005495104007422924,
0.012252219952642918,
-0.013737128116190434,
-0.0011245106579735875,
0.015088347718119621,
-0.008369004353880882,
0.0032343368511646986,
-0.018868329003453255,
-0.06727622449398041,
-0.0027448697946965694,
-0.011401924304664135,
-0.005231127608567476,
-0.015647567808628082,
0.023625364527106285,
0.07061454653739929,
-0.03753338009119034,
-0.03722551092505455,
0.14013288915157318,
-0.07306171208620071,
-0.010293042287230492,
0.008270942606031895,
-0.026737893000245094,
0.055296994745731354,
0.03707868605852127,
0.020634545013308525,
0.034282200038433075,
-0.03781824931502342,
0.011918562464416027,
-0.032795581966638565,
-0.004851373378187418,
-0.015012666583061218,
-0.03239869698882103,
0.046362537890672684,
0.028330903500318527,
0.053998883813619614,
0.017685312777757645,
-0.04583161696791649,
-0.061205871403217316,
0.00044180371332913637,
-0.010806581005454063,
-0.032232433557510376,
-0.04396447911858559,
-0.03710483759641647,
0.017356863245368004,
0.024099551141262054,
-0.046168867498636246,
0.026884259656071663,
-0.09307193011045456,
0.11134016513824463,
0.007133000530302525,
-0.08036372810602188,
0.08618543297052383,
-0.005406971555203199,
0.025801286101341248,
-0.03287620097398758,
0.005667544901371002,
0.03344684839248657,
-0.008795572444796562,
0.012475820258259773,
-0.014149554073810577,
-0.03139611706137657,
-0.024909701198339462,
-0.005218294449150562,
-0.021403947845101357,
0.017480362206697464,
0.04482261836528778,
0.008979210630059242,
-0.027195828035473824,
0.02371925488114357,
0.0337679423391819,
-0.006581338122487068,
0.031253632158041,
0.012455965392291546,
0.04846931993961334,
-0.04654771462082863,
0.024750251322984695,
-0.039484694600105286,
-0.009962600655853748,
-0.0259621050208807,
0.04825654625892639,
0.0649767592549324,
0.007260347716510296,
-0.02209261991083622,
0.020282309502363205,
0.008601103909313679,
-0.04503632336854935,
0.010841324925422668,
0.018937334418296814,
0.027413254603743553,
0.003164624562487006,
-0.0489509291946888,
-0.044989071786403656,
0.010003549978137016,
0.05377959460020065,
-0.03982284665107727,
-0.022891605272889137,
0.02806345745921135,
-0.02409479022026062,
0.049819089472293854,
0.03437026962637901,
-0.022263875231146812,
0.0019198533846065402,
0.030153607949614525,
0.010483409278094769,
0.04691411927342415,
-0.08461997658014297,
-0.055575884878635406,
-0.028526194393634796,
0.05757342278957367,
-0.0017694624839350581,
-0.029543418437242508,
0.01441887952387333,
0.01125129871070385,
-0.006688538007438183,
0.041543420404195786,
-0.014923959970474243,
-0.05230278521776199,
0.012483770027756691,
-0.03831440210342407,
-0.011297461576759815,
0.023496240377426147,
-0.03821287304162979,
-0.010125032626092434,
0.06251858919858932,
0.002633335767313838,
0.006147550884634256,
0.024014338850975037,
-0.016862550750374794,
-0.04059998691082001,
-0.05392227694392204,
-0.01731456257402897,
0.025830760598182678,
-0.03851458802819252,
0.02642878331243992,
0.00008472539047943428,
-0.037486568093299866,
0.0066018300130963326,
-0.01108814962208271,
0.004602430853992701,
-0.01886879839003086,
0.01604260504245758,
0.013282394036650658,
0.018835801631212234,
0.041253454983234406,
0.03148343041539192,
0.027462327852845192,
0.015261342748999596,
0.04061577841639519,
0.0010538218775764108,
0.0157033521682024,
-0.025018027052283287,
0.014190193265676498,
0.008593342266976833,
0.01131449081003666,
-0.033814359456300735,
-0.048585254698991776,
-0.03074384480714798,
-0.0015154046704992652,
0.029690492898225784,
0.001032865373417735,
-0.017523203045129776,
-0.004006704781204462,
0.02108800783753395,
-0.040254294872283936,
0.0031947221141308546,
-0.04718742519617081,
0.02819650247693062,
-0.021757520735263824,
0.009451339021325111,
0.0013867521192878485,
0.03231301158666611,
0.0012879616115242243,
-0.010845857672393322,
0.00869583711028099,
0.031045911833643913,
-0.02636658027768135,
0.05710240826010704,
-0.013672566041350365,
0.0027000687550753355,
-0.021074041724205017,
0.0392492450773716,
0.05048128962516785,
-0.011997204273939133,
0.03387279435992241,
0.00021069021022412926,
-0.03222745656967163,
-0.016558853909373283,
-0.019946321845054626,
0.016592858359217644,
0.027157654985785484,
0.010149969719350338,
-0.015149148181080818,
-0.009112701751291752,
0.01529618538916111,
0.03733958303928375,
-0.001939031993970275,
-0.04933958500623703,
0.02034139260649681,
-0.023435164242982864,
0.03215537965297699,
0.028974000364542007,
-0.03468870744109154,
-0.01933010295033455,
0.04432285949587822,
-0.01962796412408352,
0.04554586857557297,
-0.034384503960609436,
0.0006449982756748796,
0.040044717490673065,
0.0018804933642968535,
0.023846345022320747,
-0.02943270653486252,
-0.006886167451739311,
0.04284375533461571,
-0.04309173673391342,
0.011593076400458813,
0.0023498130030930042,
-0.019602302461862564,
0.009081044234335423,
0.0746879130601883,
0.025677895173430443,
-0.030623050406575203,
0.0222161877900362,
-0.05229905620217323,
-0.008321215398609638,
0.020334284752607346,
-0.030741065740585327,
-0.006224117707461119,
0.005033816676586866,
0.03994046896696091,
0.026258522644639015,
0.0001696024846751243,
0.009936791844666004,
-0.011992476880550385,
0.008423312567174435,
-0.03791375458240509,
-0.027183344587683678,
0.00581745058298111,
0.0034579008352011442,
0.03834536671638489,
0.004972661379724741,
-0.002384598134085536,
0.03371575102210045,
-0.008573155850172043,
0.0050014927983284,
-0.0348694808781147,
0.005014839582145214,
0.05035076662898064,
0.013374840840697289,
-0.012877668254077435,
-0.0027754046022892,
-0.03439031168818474,
0.030657531693577766,
-0.07380065321922302,
0.015887849032878876,
0.012681202962994576,
-0.04847320541739464,
-0.03690662980079651,
0.0598975233733654,
0.0407164990901947,
-0.029636522755026817,
0.004650989081710577,
0.031183287501335144,
0.026378020644187927,
0.03865854814648628,
0.007818854413926601,
-0.02214863896369934,
-0.029923303052783012,
-0.0270758755505085,
-0.009111530147492886,
0.009664605371654034,
-0.017832154408097267,
-0.04927068203687668,
0.04096636548638344,
0.0029678242281079292,
0.0007072631269693375,
0.006290067452937365,
0.037507470697164536,
-0.045228127390146255,
-0.0145331509411335,
0.0027840021066367626,
0.024361571297049522,
0.030161406844854355,
-0.010616942308843136,
0.012688144110143185,
-0.02063371241092682,
0.004963936749845743,
0.030712226405739784,
-0.007989427074790001,
0.05449049547314644,
-0.017937297001481056,
0.06978511065244675,
0.050638847053050995,
0.042059771716594696,
0.013427727855741978,
0.01083415187895298,
0.00820139143615961,
-0.03867935389280319,
-0.022235576063394547,
0.034951962530612946,
-0.016876135021448135,
0.02794935740530491,
0.035595010966062546,
-0.015174251981079578,
-0.005414749961346388,
0.0006464138859882951,
-0.006323757581412792,
-0.05334768816828728,
-0.004319659434258938,
-0.01150111947208643,
-0.006705144420266151,
0.027833478525280952,
-0.03748472407460213,
0.032586559653282166,
-0.01096724346280098,
-0.020061809569597244,
-0.0486285425722599,
-0.04396655410528183,
-0.025499576702713966,
0.032088495790958405,
-0.02653719298541546,
-0.03644398972392082,
0.014778886921703815,
0.012924963608384132,
0.03314254805445671,
-0.0428791381418705,
-0.020884882658720016,
-0.01615292951464653,
-0.011527960188686848,
-0.012367659248411655,
-0.05601049214601517,
-0.002888535149395466,
-0.01847679913043976,
0.001384457224048674,
0.024089358747005463,
0.047304507344961166,
0.0018413549987599254,
-0.0425591878592968,
0.02591659314930439,
-0.03053114004433155,
-0.032999150454998016,
-0.00594323268160224,
0.04664155840873718,
0.012803462333977222,
-0.032614581286907196,
0.040569204837083817,
-0.019589949399232864,
0.005088632460683584,
0.026756154373288155,
-0.013508955016732216,
0.027770468965172768,
-0.0027428639587014914,
0.008451739326119423,
-0.010498154908418655,
0.0005625572521239519,
0.07954895496368408,
-0.009679783135652542,
-0.012003357522189617,
-0.005749749019742012,
0.0056101735681295395,
0.008128301240503788,
0.015736063942313194,
-0.0248909629881382,
0.006114250514656305,
0.001783807179890573,
0.005251170136034489,
-0.05831924453377724,
-0.020837243646383286,
-0.022672247141599655,
-0.012023165822029114,
-0.004502938594669104,
0.017682278528809547,
0.007559726946055889,
0.03672173619270325,
-0.01712537556886673,
0.04213524982333183,
0.010856044478714466,
0.010936886072158813,
-0.015189497731626034,
-0.047434497624635696,
-0.02203195169568062,
0.017827412113547325,
0.07495071738958359,
0.06758852303028107,
0.003035185160115361,
0.03859899565577507,
0.0466938391327858,
0.09272334724664688,
0.002425755839794874,
0.015953151509165764,
-0.009435917250812054,
0.04895370081067085,
-0.017515363171696663,
0.02064661681652069,
0.026597192510962486,
-0.009349036030471325,
-0.015380505472421646,
-0.0006845867028459907,
0.003958503715693951,
-0.05345335975289345,
0.04339393228292465,
0.017306916415691376,
0.005672071594744921,
-0.004842246882617474,
-0.034315407276153564,
0.052063144743442535,
0.05954350158572197,
0.01793045364320278,
0.04004973545670509,
0.0031634639017283916,
0.03055841661989689,
0.019560562446713448,
0.03774891793727875,
-0.0010647382587194443,
-0.008784766308963299,
-0.002530771540477872,
0.0066244532354176044,
0.025013413280248642,
0.04676235467195511,
-0.030446330085396767,
0.002734401263296604,
0.006340798456221819,
-0.017153996974229813,
-0.00019722929573617876,
0.003718328196555376,
-0.026821326464414597,
-0.008277585729956627,
0.010854671709239483,
-0.012003082782030106,
-0.060674943029880524,
-0.015628209337592125,
0.011262576095759869,
-0.011908582411706448,
-0.006575167644768953,
0.004233982414007187,
0.001301111769862473,
0.04744105413556099,
0.0430140346288681,
-0.005122547969222069,
0.006665491033345461,
-0.031052570790052414,
0.026003733277320862,
0.016854925081133842,
-0.0501880869269371,
-0.05071815848350525,
-0.051266834139823914,
-0.006614919286221266,
-0.011034687049686909,
0.044697389006614685,
-0.02022525481879711,
0.0052589732222259045,
0.07598894834518433,
0.004262351896613836,
-0.018413782119750977,
0.012009222991764545,
0.031084654852747917,
0.0365542471408844,
-0.04627286642789841,
-0.0024325756821781397,
-0.014373790472745895,
-0.028700286522507668,
-0.007003233768045902,
-0.02746209129691124,
0.011222935281693935,
-0.004828589037060738,
0.021802369505167007,
0.03308159112930298,
0.051404938101768494,
-0.04976838454604149,
0.004452887456864119,
0.006378882564604282,
-0.02093784511089325,
-0.012265682220458984,
0.05361528322100639,
0.014579103328287601,
-0.04738153889775276,
0.015550064854323864,
-0.03837793692946434,
0.001141238957643509,
0.00986362062394619,
-0.014052430167794228,
0.0342022143304348,
0.0066679418087005615,
-0.029281634837388992,
-0.014893073588609695,
0.030231550335884094,
0.020311271771788597,
0.01842559687793255,
0.017216909676790237,
0.054187677800655365,
0.005673232022672892,
-0.04662776365876198,
0.012312909588217735,
0.005065641365945339,
-0.004217238165438175,
-0.029310112819075584,
-0.07554083317518234,
-0.024301348254084587,
0.02370264194905758,
-0.006323642563074827,
-0.0008820523507893085,
-0.020817838609218597,
0.019770726561546326,
-0.0443585030734539,
0.003982578869909048,
-0.02720130980014801,
0.0378543995320797,
0.0362587608397007,
0.018185868859291077,
0.012402533553540707,
0.00035958245280198753,
-0.06888861954212189,
-0.006661953404545784,
-0.026228632777929306,
-0.0032681364100426435,
0.06641467660665512,
-0.008612750098109245,
-0.017941808328032494,
-0.04388483986258507,
-0.0002632352407090366,
0.002659205347299576,
-0.030838260427117348,
0.023748476058244705,
0.026881730183959007,
-0.014352519996464252,
0.038156647235155106,
0.020497450605034828,
-0.02829001657664776,
0.01173547562211752,
0.02076052688062191,
0.02477848343551159,
-0.011756766587495804,
0.02646460197865963,
-0.015460563823580742,
-0.03833853453397751,
-0.029229890555143356,
0.014022864401340485,
0.052676208317279816,
0.038195397704839706,
-0.011481690220534801,
0.022285427898168564,
-0.00664620753377676,
0.02166362851858139,
0.0378413163125515,
-0.05204202979803085,
-0.05314081534743309,
-0.0204741433262825,
-0.013929114677011967,
-0.01888648234307766,
-0.01064964197576046,
-0.0580899678170681,
0.03648411110043526,
0.007462963927537203,
0.00834380928426981,
-0.04389601945877075,
-0.015404998324811459,
-0.02800031378865242,
-0.019715139642357826,
0.031710002571344376,
0.005573758389800787,
0.08772144466638565,
0.001698323292657733,
0.015171621926128864,
-0.035329971462488174,
-0.021028289571404457
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Appendix The implementation in HuggingFace Transformers is based on the original JAX/Haiku implementation which can be found here. The documentation of the Perceiver IO model in HuggingFace Transformers is available here. Tutorial notebooks regarding the Perceiver on several modalities can be found here. | [
-0.030486658215522766,
-0.0677330419421196,
0.008155666291713715,
-0.07556711137294769,
0.03086744248867035,
0.02271963469684124,
0.06121034920215607,
0.06518983840942383,
-0.0016183230327442288,
-0.07754795253276825,
-0.0548902191221714,
0.10454287379980087,
-0.01919088512659073,
0.07570759207010269,
-0.002863462781533599,
-0.014549867250025272,
-0.0028284587897360325,
0.0060948822647333145,
0.014996393583714962,
0.0030334594193845987,
-0.018960706889629364,
-0.03138307109475136,
-0.003001116681843996,
-0.05049024149775505,
0.026781810447573662,
-0.06264077126979828,
0.02316327393054962,
0.05173039063811302,
-0.03609421104192734,
0.05955669283866882,
-0.0406518392264843,
-0.01423604041337967,
0.019086262211203575,
-0.0866519883275032,
-0.04531893879175186,
0.013888693414628506,
-0.14641697704792023,
-0.010521716438233852,
0.008490192703902721,
-0.013056104071438313,
-0.00394647940993309,
-0.0254267118871212,
-0.02883346937596798,
0.044668905436992645,
0.008583280257880688,
-0.06939557939767838,
-0.18593494594097137,
0.059446126222610474,
-0.01790076121687889,
0.015440397895872593,
-0.07240898907184601,
0.09036851674318314,
0.00009888833301374689,
0.06131671369075775,
0.022356294095516205,
0.002796334447339177,
0.026628127321600914,
-0.006674128118902445,
0.07700305432081223,
-0.0013769952347502112,
0.05808641389012337,
-0.006058084778487682,
0.029927432537078857,
0.05755011364817619,
0.06514926999807358,
0.031511012464761734,
-0.013700272887945175,
0.033182840794324875,
-0.004128160886466503,
-0.015756916254758835,
0.015008333139121532,
0.008390776813030243,
0.007733949925750494,
0.002378338249400258,
-0.041328027844429016,
0.005934047047048807,
0.005569228436797857,
0.034918319433927536,
0.08722493052482605,
0.05300229787826538,
-0.016655592247843742,
0.004221457988023758,
0.030552037060260773,
0.08676556497812271,
0.010786850936710835,
0.06040319800376892,
0.04123407229781151,
-0.010736851952970028,
-0.07125585526227951,
0.069590725004673,
0.01560842152684927,
-0.1415642350912094,
-0.040432967245578766,
0.02741444855928421,
0.09392949938774109,
0.034366630017757416,
0.018057717010378838,
0.055724453181028366,
0.013337763026356697,
0.0105899004265666,
-0.013868154026567936,
0.011539353989064693,
0.04488295316696167,
-0.02187689021229744,
-0.00361042283475399,
-0.0007239812985062599,
-0.01986389234662056,
-0.06624362617731094,
-0.03760360926389694,
0.018943244591355324,
0.005877539981156588,
-0.031204937025904655,
0.05686675384640694,
0.0835760161280632,
-0.08473661541938782,
0.057326097041368484,
-0.039943769574165344,
-0.0243870560079813,
-0.029935212805867195,
0.049833234399557114,
0.00962781347334385,
0.08145711570978165,
0.037351835519075394,
0.010079029947519302,
0.02493640035390854,
0.023648038506507874,
-0.005234699696302414,
-0.024772226810455322,
-0.04408501088619232,
-0.07717057317495346,
0.056612029671669006,
-0.0780777856707573,
0.012525188736617565,
-0.012580517679452896,
-0.046008072793483734,
-0.0507834330201149,
0.03232545778155327,
-0.03981313854455948,
-0.0011890643509104848,
0.012563359923660755,
-0.0069768172688782215,
0.037649005651474,
-0.005923354998230934,
-0.015546719543635845,
0.009077934548258781,
-0.03922153264284134,
-0.07605503499507904,
0.06198273226618767,
-0.03716510906815529,
0.00039929599734023213,
-0.05940139666199684,
0.08056186139583588,
0.017269151285290718,
0.026946192607283592,
-0.02963303215801716,
-0.012227707542479038,
0.026477502658963203,
0.02788190171122551,
-0.050546642392873764,
0.006351657677441835,
-0.05279911309480667,
0.042577240616083145,
-0.059353601187467575,
0.04047957435250282,
-0.0019361991435289383,
-0.001719570136629045,
0.0006353790522553027,
0.06428302079439163,
0.030930927023291588,
-0.02465238608419895,
0.036186542361974716,
-0.059182059019804,
0.0031406329944729805,
0.006895487662404776,
-0.03416961804032326,
0.03392406180500984,
0.06726789474487305,
0.05835894122719765,
0.0008224999182857573,
-0.0119321309030056,
-0.038112811744213104,
0.07126715779304504,
0.0012608165852725506,
0.025148775428533554,
0.055906470865011215,
-0.0223494041711092,
-0.008540482260286808,
0.008655492216348648,
0.001137712155468762,
-0.017655689269304276,
-0.05022294446825981,
-0.030375756323337555,
0.05813272297382355,
0.004508323967456818,
0.05418713018298149,
-0.027367232367396355,
-0.06389475613832474,
0.07966171205043793,
0.04646769538521767,
0.061380643397569656,
0.08323058485984802,
-0.01784612238407135,
0.010178771801292896,
-0.01857343316078186,
-0.03267394006252289,
-0.050928935408592224,
0.06152581423521042,
-0.013202904723584652,
0.016576025635004044,
-0.040764715522527695,
-0.00423568207770586,
-0.02965112403035164,
-0.0002856025821529329,
-0.07407452166080475,
-0.00939627643674612,
-0.04922431707382202,
0.007725209463387728,
0.020296458154916763,
-0.023065553978085518,
-0.04492966830730438,
0.1778976321220398,
-0.023563237860798836,
0.027909407392144203,
-0.029147619381546974,
-0.017934203147888184,
0.057466283440589905,
0.08911143988370895,
0.014470145106315613,
0.060413483530282974,
-0.06353045254945755,
0.03663123399019241,
-0.09007439017295837,
-0.03705647215247154,
0.009043034166097641,
-0.0279554296284914,
0.0030106594786047935,
0.033923886716365814,
0.007618662901222706,
0.006877056788653135,
-0.011733878403902054,
0.010817199014127254,
-0.03232116252183914,
-0.004507194273173809,
-0.012502491474151611,
0.016526324674487114,
-0.01652343012392521,
0.015081674791872501,
0.055119577795267105,
-0.06627475470304489,
0.03114711120724678,
-0.10247310996055603,
0.0903797596693039,
0.03303210809826851,
-0.0797392949461937,
0.10595819354057312,
0.06572093814611435,
-0.006472663953900337,
0.0018125728238373995,
-0.010775038972496986,
0.03388672694563866,
-0.019251132383942604,
0.02801702730357647,
-0.045229557901620865,
-0.032724056392908096,
-0.03722275793552399,
-0.05139980837702751,
-0.023300115019083023,
0.037291496992111206,
0.008677889592945576,
0.035491250455379486,
0.03817395120859146,
-0.021505272015929222,
0.006367251742631197,
-0.0542084276676178,
0.005515251308679581,
-0.0037029413506388664,
0.02565125748515129,
-0.019589731469750404,
0.01283283717930317,
-0.026796158403158188,
0.013933141715824604,
-0.018319979310035706,
0.030944541096687317,
0.024571847170591354,
0.03406968340277672,
-0.028412438929080963,
0.013140304945409298,
-0.03822008892893791,
-0.011811074800789356,
0.01421110238879919,
-0.003255861345678568,
0.036550991237163544,
-0.009157311171293259,
-0.053900498896837234,
-0.03053140453994274,
0.03020487166941166,
0.026431627571582794,
0.02016204409301281,
0.0011855782940983772,
0.016438504680991173,
-0.02483249083161354,
0.021251220256090164,
0.010902763344347477,
-0.012569375336170197,
-0.012837872840464115,
0.033101681619882584,
0.01256836112588644,
0.07479631900787354,
-0.09727223962545395,
-0.0402069166302681,
-0.004285415168851614,
0.025782564654946327,
-0.010204829275608063,
-0.035661984235048294,
0.013019934296607971,
-0.027202123776078224,
-0.006227103061974049,
0.006209283135831356,
0.029320718720555305,
-0.011980930343270302,
0.007267547771334648,
-0.024062220007181168,
-0.04283234477043152,
-0.03423671796917915,
-0.024270648136734962,
0.027847502380609512,
0.024588866159319878,
0.0041078743524849415,
-0.050902754068374634,
0.008504007011651993,
0.002076864941045642,
-0.042613960802555084,
-0.002677347045391798,
-0.0298566073179245,
0.04560279846191406,
-0.026776809245347977,
0.03440443426370621,
-0.040042586624622345,
-0.014993288554251194,
-0.009039278142154217,
0.0017165228491649032,
0.03492758423089981,
-0.029662324115633965,
0.007979439571499825,
0.0031730285845696926,
0.0009205619571730494,
0.034018270671367645,
0.03613768890500069,
-0.011961765587329865,
0.01954655908048153,
-0.003066868055611849,
-0.04114354029297829,
0.005470308940857649,
0.0005349253187887371,
-0.011152656748890877,
0.0218031108379364,
0.02062978222966194,
-0.006437649950385094,
-0.03470056876540184,
-0.0024022229481488466,
-0.012927260249853134,
0.025239739567041397,
-0.002856241539120674,
-0.0058379629626870155,
-0.012345077469944954,
0.02157435193657875,
0.006234182510524988,
-0.015844622626900673,
-0.06411132216453552,
0.010615729726850986,
-0.04929717257618904,
-0.007486098445951939,
-0.014456524513661861,
0.05897744372487068,
0.011500968597829342,
0.03631936013698578,
-0.010341696441173553,
0.02441885508596897,
-0.012193235568702221,
0.048394825309515,
-0.00550893833860755,
0.007656306494027376,
-0.053160227835178375,
0.007602938916534185,
0.017445730045437813,
-0.014003601856529713,
0.05328325927257538,
-0.00020476612553466111,
-0.05711223557591438,
0.005097102373838425,
-0.04036252573132515,
-0.028837809339165688,
0.018234068527817726,
-0.01131763681769371,
0.028893107548356056,
0.007213369011878967,
0.014974990859627724,
0.010632392950356007,
0.006069728173315525,
-0.024355659261345863,
-0.006689623463898897,
-0.04501977190375328,
-0.01587299443781376,
0.0227336548268795,
-0.0015776526415720582,
-0.01240487676113844,
0.015022060833871365,
0.019569432362914085,
0.04861261695623398,
-0.03347020968794823,
0.01216837391257286,
0.03787260502576828,
0.04013621062040329,
0.03353850170969963,
-0.0286021139472723,
-0.02846773900091648,
0.046832792460918427,
0.011424136348068714,
0.021331464871764183,
-0.044227682054042816,
-0.015535657294094563,
-0.00521689560264349,
0.01955031417310238,
-0.005400354042649269,
0.006913861259818077,
-0.010210608132183552,
-0.045273248106241226,
0.025037923827767372,
0.01734742894768715,
-0.007280752528458834,
-0.010252539999783039,
-0.004115484654903412,
0.014030618593096733,
0.008854092098772526,
-0.0005938967224210501,
0.06262816488742828,
-0.01703469641506672,
0.02190188504755497,
0.014655872248113155,
-0.04051167145371437,
0.02181513048708439,
0.03414105996489525,
-0.009000095538794994,
0.03282490372657776,
0.02480773627758026,
0.012561536394059658,
0.026772281154990196,
-0.03072052262723446,
-0.017269309610128403,
-0.025483915582299232,
0.034943386912345886,
-0.023991679772734642,
0.04243459179997444,
-0.001520318677648902,
-0.043983180075883865,
-0.0009634930174797773,
-0.04093535616993904,
0.00926013570278883,
0.04787059873342514,
-0.023784151300787926,
-0.006432138849049807,
0.032228827476501465,
0.016812719404697418,
0.025544259697198868,
0.0041507938876748085,
0.03313983976840973,
-0.012252702377736568,
0.05685904249548912,
0.029952289536595345,
0.020500697195529938,
-0.05416933074593544,
-0.0014874672051519156,
-0.025378793478012085,
0.041954103857278824,
-0.040922656655311584,
-0.0565941147506237,
0.025109313428401947,
-0.04824346303939819,
-0.025812381878495216,
-0.020858321338891983,
0.03795987367630005,
-0.037248142063617706,
-0.01824471354484558,
0.033613815903663635,
0.046533722430467606,
0.009862846694886684,
-0.006613297387957573,
-0.006682444363832474,
-0.01963319629430771,
0.005654443055391312,
0.027735233306884766,
-0.0013637307565659285,
0.02770579420030117,
0.010586979798972607,
0.06765469163656235,
0.02977701835334301,
-0.0015068823704496026,
0.03676282614469528,
0.03072853572666645,
-0.0301904808729887,
0.006920746527612209,
-0.03757772222161293,
-0.015194052830338478,
-0.041566330939531326,
-0.0074493191204965115,
0.03040468320250511,
-0.008241282775998116,
-0.0023060371167957783,
0.017818663269281387,
0.0600687675178051,
-0.03225637227296829,
-0.015705961734056473,
-0.004290738608688116,
-0.01896335929632187,
0.014195173978805542,
-0.048377785831689835,
0.041658997535705566,
-0.026274798437952995,
-0.030364036560058594,
-0.027876902371644974,
-0.02543785609304905,
-0.03156460076570511,
0.026609664782881737,
-0.03018954209983349,
-0.01799447275698185,
-0.017924368381500244,
0.013407786376774311,
0.03946125507354736,
-0.02884194441139698,
-0.005075798369944096,
-0.041691556572914124,
-0.004138890188187361,
0.0312478207051754,
-0.04982641339302063,
0.033730894327163696,
-0.014626377262175083,
-0.03879479691386223,
0.008313177153468132,
0.05779014527797699,
0.01426549069583416,
-0.006658947095274925,
0.030867744237184525,
-0.021863199770450592,
0.023418478667736053,
-0.059822920709848404,
0.03284420073032379,
0.036969952285289764,
-0.026666700839996338,
0.048012930899858475,
-0.011217347346246243,
-0.024998070672154427,
-0.013714081607758999,
-0.025485388934612274,
0.0173308365046978,
0.06288836896419525,
0.00995152909308672,
0.004330579657107592,
0.004044925794005394,
0.013193286955356598,
-0.013923325575888157,
0.0014460614183917642,
-0.002570428652688861,
0.0179460346698761,
0.021622179076075554,
0.0111233564093709,
0.022727152332663536,
-0.02377711422741413,
-0.011412064544856548,
0.0265799593180418,
-0.052952200174331665,
-0.022292833775281906,
0.0026745463255792856,
-0.04768047481775284,
0.0076213679276406765,
-0.028797844424843788,
-0.013735462911427021,
0.009630953893065453,
0.016523564234375954,
0.004306151531636715,
0.05012701451778412,
0.005725217517465353,
-0.01621846854686737,
-0.03565053269267082,
-0.0150721725076437,
0.03326428681612015,
0.062319353222846985,
0.02865549363195896,
0.051101043820381165,
0.028911881148815155,
0.012626798823475838,
0.03850450739264488,
0.017309265211224556,
-0.01151298638433218,
0.022625334560871124,
0.04772743582725525,
-0.020491374656558037,
0.05443935841321945,
0.023220853880047798,
-0.0216235164552927,
-0.006735656410455704,
-0.004172454122453928,
-0.008330798707902431,
-0.04243350774049759,
0.021009910851716995,
0.006350782699882984,
0.0025303352158516645,
-0.006108997389674187,
-0.053445033729076385,
0.026136402040719986,
0.03657187521457672,
0.06702006608247757,
-0.0006048369104973972,
0.002537193475291133,
0.04201368987560272,
0.01668589934706688,
0.01022062823176384,
0.018553679808974266,
0.00295397755689919,
0.0010414326097816229,
0.04539590701460838,
-0.004498850554227829,
0.028537286445498466,
-0.0260846558958292,
-0.03019370324909687,
0.01467890478670597,
-0.0023768041282892227,
-0.03480450436472893,
-0.05412231758236885,
0.004307938739657402,
0.011800054460763931,
0.007721778936684132,
-0.007168483454734087,
-0.029431317001581192,
-0.015689928084611893,
0.003532527480274439,
0.01813524030148983,
-0.009865936823189259,
0.012259532697498798,
0.0178257804363966,
0.05233464017510414,
0.06202193349599838,
-0.026723116636276245,
0.016919517889618874,
-0.003623762633651495,
-0.008953017182648182,
0.026361675933003426,
-0.040599629282951355,
-0.015450057573616505,
-0.02851828932762146,
-0.030384143814444542,
-0.01628902368247509,
-0.021290190517902374,
0.0028768491465598345,
-0.03362893685698509,
0.0029920930974185467,
0.003106640186160803,
-0.021474767476320267,
0.026864735409617424,
0.025237279012799263,
0.007346750237047672,
-0.029547156766057014,
-0.004025237634778023,
0.014254633337259293,
0.011050406843423843,
-0.05891074612736702,
-0.03529341146349907,
0.022921210154891014,
-0.020080119371414185,
0.013953094370663166,
0.03056352771818638,
0.05698912963271141,
-0.054067499935626984,
-0.044304512441158295,
-0.015278768725693226,
-0.02338891103863716,
0.01840391382575035,
0.057203035801649094,
0.01630232110619545,
-0.015845712274312973,
0.01782674342393875,
-0.027044909074902534,
0.03203192353248596,
0.0050731138326227665,
0.015052761882543564,
0.027782296761870384,
-0.0412544310092926,
-0.05911916866898537,
-0.04469883441925049,
0.029700065031647682,
0.03202449902892113,
0.0023641970474272966,
0.05303070321679115,
0.04222666844725609,
-0.005542306695133448,
-0.05112219601869583,
0.02334701642394066,
0.002620948711410165,
-0.04791856184601784,
-0.0267128087580204,
-0.05039925128221512,
-0.020068742334842682,
-0.0005254514398984611,
0.016630709171295166,
0.042838141322135925,
-0.037642426788806915,
0.013685067184269428,
-0.0255823265761137,
-0.017131701111793518,
-0.04186318814754486,
0.021907825022935867,
0.04469553381204605,
0.005107551347464323,
0.022441748529672623,
0.006293798331171274,
-0.008669319562613964,
0.0035303952172398567,
0.011678218841552734,
-0.0011306959204375744,
0.08463072776794434,
0.017507025972008705,
0.012834797613322735,
-0.032745715230703354,
-0.0018480411963537335,
-0.006639514584094286,
-0.05459987744688988,
0.0370214618742466,
0.008151412941515446,
-0.010924369096755981,
-0.006913095712661743,
0.013891831040382385,
-0.027485094964504242,
0.03876824304461479,
0.02461274340748787,
-0.014280842617154121,
-0.028786994516849518,
-0.027889007702469826,
0.0221696924418211,
-0.03625839576125145,
0.012632912956178188,
-0.017605332657694817,
-0.017102131620049477,
-0.012271706014871597,
-0.004776333458721638,
0.014915397390723228,
-0.022228047251701355,
-0.003310160478577018,
0.027103595435619354,
-0.019089745357632637,
-0.013734566047787666,
-0.02669745497405529,
-0.02787841111421585,
-0.039993248879909515,
-0.03472233563661575,
-0.06321439892053604,
0.03107924945652485,
-0.010676405392587185,
-0.018449146300554276,
-0.01266856212168932,
-0.017554786056280136,
-0.05671577528119087,
-0.007268873043358326,
0.04089658707380295,
0.0011464724084362388,
0.04228672385215759,
0.013823178596794605,
-0.008504869416356087,
-0.021662302315235138,
-0.03551172837615013
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Perceiver for multimodal autoencoding The authors also use the Perceiver for multimodal autoencoding. The goal of multimodal autoencoding is to learn a model that can accurately reconstruct multimodal inputs in the presence of a bottleneck induced by an architecture. The authors train the model on the Kinetics-700 dataset, in which each example consists of a sequence of images (i.e. frames), audio and a class label (one of 700 possible labels). This model is also implemented in HuggingFace Transformers, and available as PerceiverForMultimodalAutoencoding. For brevity, I will omit the code of defining this model, but important to note is that it uses PerceiverMultimodalPreprocessor to prepare the inputs for the model. This preprocessor will first use the respective preprocessor for each modality (image, audio, label) separately. Suppose one has a video of 16 frames of resolution 224x224 and 30,720 audio samples, then the modalities are preprocessed as follows: - The images - actually a sequence of frames - of shape (batch_size, 16, 3, 224, 224) are turned into a tensor of shape (batch_size, 50176, 243) using PerceiverImagePreprocessor. This is a “space to depth” transformation, after which fixed 2D Fourier position embeddings are concatenated. - The audio has shape (batch_size, 30720, 1) and is turned into a tensor of shape (batch_size, 1920, 401) using PerceiverAudioPreprocessor (which concatenates fixed Fourier position embeddings to the raw audio). - The class label of shape (batch_size, 700) is turned into a tensor of shape (batch_size, 1, 700) using PerceiverOneHotPreprocessor. In other words, this preprocessor just adds a dummy time (index) dimension. Note that one initializes the class label with a tensor of zeros during evaluation, so as to let the model act as a video classifier. Next, PerceiverMultimodalPreprocessor will pad the preprocessed modalities with modality-specific trainable embeddings to make concatenation along the time dimension possible. In this case, the modality with the highest channel dimension is the class label (it has 700 channels). The authors enforce a minimum padding size of 4, hence each modality will be padded to have 704 channels. They can then be concatenated, hence the final preprocessed input is a tensor of shape (batch_size, 50176 + 1920 + 1, 704) = (batch_size, 52097, 704). The authors use 784 latents, with a dimensionality of 512 for each latent. Hence, the latents have shape (batch_size, 784, 512). After the cross-attention, one again has a tensor of the same shape (as the latents act as queries). Next, a single block of 8 self-attention layers (each of which has 8 attention heads) is applied to update the embeddings of the latents. Next, there is PerceiverMultimodalDecoder, which will first create output queries for each modality separately. However, as it is not possible to decode an entire video in a single forward pass, the authors instead auto-encode in chunks. Each chunk will subsample certain index dimensions for every modality. Let's say we process the video in 128 chunks, then the decoder queries will be produced as follows: - For the image modality, the total size of the decoder query is 16x3x224x224 = 802,816. However, when auto-encoding the first chunk, one subsamples the first 802,816/128 = 6272 values. The shape of the image output query is (batch_size, 6272, 195) - the 195 comes from the fact that fixed Fourier position embeddings are used. - For the audio modality, the total input has 30,720 values. However, one only subsamples the first 30720/128/16 = 15 values. Hence, the shape of the audio query is (batch_size, 15, 385). Here, the 385 comes from the fact that fixed Fourier position embeddings are used. - For the class label modality, there's no need to subsample. Hence, the subsampled index is set to 1. The shape of the label output query is (batch_size, 1, 1024). One uses trainable position embeddings (of size 1024) for the queries. Similarly to the preprocessor, PerceiverMultimodalDecoder pads the different modalities to the same number of channels, to make concatenation of the modality-specific queries possible along the time dimension. Here, the class label has again the highest number of channels (1024), and the authors enforce a minimum padding size of 2, hence every modality will be padded to have 1026 channels. After concatenation, the final decoder query has shape (batch_size, 6272 + 15 + 1, 1026) = (batch_size, 6288, 1026). This tensor produces queries in the cross-attention operation, while the latents act as keys and values. Hence, the output of the cross-attention operation is a tensor of shape (batch_size, 6288, 1026). Next, PerceiverMultimodalDecoder employs a linear layer to reduce the output channels to get a tensor of shape (batch_size, 6288, 512). Finally, there is PerceiverMultimodalPostprocessor. This class postprocesses the output of the decoder to produce an actual reconstruction of each modality. It first splits up the time dimension of the decoder output according to the different modalities: (batch_size, 6272, 512) for image, (batch_size, 15, 512) for audio and (batch_size, 1, 512) for the class label. Next, the respective postprocessors for each modality are applied: - The image post processor (which is called PerceiverProjectionPostprocessor in Transformers) simply turns the (batch_size, 6272, 512) tensor into a tensor of shape (batch_size, 6272, 3) - i.e. it projects the final dimension to RGB values. - PerceiverAudioPostprocessor turns the (batch_size, 15, 512) tensor into a tensor of shape (batch_size, 240). - PerceiverClassificationPostprocessor simply takes the first (and only index), to get a tensor of shape (batch_size, 700). So now one ends up with tensors containing the reconstruction of the image, audio and class label modalities respectively. As one auto-encodes an entire video in chunks, one needs to concatenate the reconstruction of each chunk to have a final reconstruction of an entire video. The figure below shows an example: Above: original video (left), reconstruction of the first 16 frames (right). Video taken from the UCF101 dataset. Below: reconstructed audio (taken from the paper). Top 5 predicted labels for the video above. By masking the class label, the Perceiver becomes a video classifier. With this approach, the model learns a joint distribution across 3 modalities. The authors do note that because the latent variables are shared across modalities and not explicitly allocated between them, the quality of reconstructions for each modality is sensitive to the weight of its loss term and other training hyperparameters. By putting stronger emphasis on classification accuracy, they are able to reach 45% top-1 accuracy while maintaining 20.7 PSNR (peak signal-to-noise ratio) for video. | [
-0.02372310310602188,
-0.03745422139763832,
0.005757528822869062,
-0.06398743391036987,
-0.0005357166519388556,
0.10955778509378433,
0.0695640966296196,
-0.013511533848941326,
-0.06460283696651459,
-0.041744690388441086,
-0.016439925879240036,
0.10547570884227753,
0.0058907694183290005,
0.08008360117673874,
0.009938307106494904,
-0.08490622043609619,
0.03609290346503258,
-0.006942171137779951,
0.027815811336040497,
0.030522584915161133,
-0.054475802928209305,
-0.05429738759994507,
0.022944938391447067,
0.013911530375480652,
-0.04606600105762482,
-0.059447433799505234,
-0.013183613307774067,
0.0769193172454834,
-0.04503533989191055,
0.04979352280497551,
-0.09966769069433212,
0.05550626665353775,
-0.026429228484630585,
-0.04358120635151863,
0.04558283090591431,
-0.022538866847753525,
-0.11815907061100006,
0.00485961465165019,
0.07505981624126434,
-0.0264902301132679,
-0.06868850439786911,
0.03744446858763695,
-0.01155560277402401,
0.037406791001558304,
-0.026206687092781067,
-0.04019644483923912,
-0.0846317782998085,
0.05179579555988312,
-0.0017351993592455983,
-0.0023792118299752474,
-0.04574449360370636,
0.043389152735471725,
0.0071679819375276566,
0.040896862745285034,
0.054319873452186584,
-0.024561632424592972,
0.029544876888394356,
-0.036427583545446396,
-0.011303373612463474,
0.056447144597768784,
0.08259440213441849,
-0.017933852970600128,
0.018271585926413536,
0.04030120372772217,
0.02430069074034691,
0.024072572588920593,
-0.033425234258174896,
0.06162191554903984,
-0.026523245498538017,
-0.04738945886492729,
-0.054160669445991516,
-0.009553595446050167,
0.010092759504914284,
0.0009385719313286245,
-0.023205401375889778,
-0.03627684712409973,
-0.016842393204569817,
-0.003970464691519737,
-0.009757276624441147,
0.04431749880313873,
0.013931232504546642,
0.00735480897128582,
0.06622292846441269,
0.06329899281263351,
-0.02185121551156044,
0.04109176993370056,
-0.0010880468180403113,
-0.03650090843439102,
-0.02266959846019745,
0.04577050358057022,
0.028964875265955925,
-0.13691258430480957,
-0.020930210128426552,
0.005701000336557627,
0.018632909283041954,
0.030728910118341446,
-0.0642610415816307,
0.009837649762630463,
0.013529930263757706,
0.017535172402858734,
0.018699152395129204,
-0.010891249403357506,
0.07843715697526932,
-0.036634769290685654,
0.039486415684223175,
0.04604971408843994,
-0.11417363584041595,
-0.016770754009485245,
-0.057248350232839584,
0.021218731999397278,
0.03911823034286499,
0.004090758040547371,
0.015529565513134003,
0.014459211379289627,
-0.11434221267700195,
0.007050762884318829,
-0.003006778424605727,
0.04825236275792122,
-0.013525259681046009,
0.003941826056689024,
-0.021758845075964928,
0.07974203675985336,
0.02039208821952343,
-0.01516722608357668,
-0.04486163705587387,
0.007511965464800596,
0.038578495383262634,
-0.016072016209363937,
0.019853798672556877,
0.004959430545568466,
-0.010011233389377594,
-0.03481191769242287,
0.043479375541210175,
0.017572391778230667,
0.02943321131169796,
-0.014654520899057388,
0.013815319165587425,
-0.10034230351448059,
-0.02995521016418934,
0.020258033648133278,
0.007388166151940823,
0.01737828366458416,
-0.01721450872719288,
-0.04363841935992241,
0.007179826498031616,
-0.01190864760428667,
-0.03871981427073479,
0.09329032152891159,
0.038449764251708984,
0.027081914246082306,
-0.14514490962028503,
0.04102746769785881,
-0.010557591915130615,
-0.050133172422647476,
0.05173787102103233,
0.07676779478788376,
-0.009301678277552128,
-0.014952385798096657,
-0.04832664504647255,
0.029482845216989517,
0.011787875555455685,
-0.01818547584116459,
-0.03380662575364113,
0.0496600978076458,
-0.028504928573966026,
-0.04084054380655289,
-0.03789770230650902,
0.019796963781118393,
0.02644103579223156,
0.04835434630513191,
-0.03845973312854767,
-0.010796057060360909,
0.007938950322568417,
0.049602020531892776,
0.025874773040413857,
0.02255827747285366,
0.03376965969800949,
0.1175287589430809,
-0.002294977195560932,
-0.014450312592089176,
0.026029033586382866,
0.03422657027840614,
-0.07776429504156113,
0.07052614539861679,
0.10101799666881561,
-0.06376921385526657,
0.044557079672813416,
-0.018331732600927353,
0.0019003803608939052,
0.010158699937164783,
-0.00952780432999134,
-0.013420486822724342,
0.06649710237979889,
-0.03657723590731621,
0.0435640923678875,
0.030093805864453316,
-0.0917053297162056,
0.07878752052783966,
0.10577967017889023,
0.02161036990582943,
0.08210133016109467,
-0.04561247676610947,
0.038822006434202194,
-0.0020701608154922724,
0.03479422256350517,
-0.03285925090312958,
0.06601984798908234,
-0.02652588114142418,
0.06288393586874008,
0.036731600761413574,
0.013634354807436466,
-0.05302464962005615,
0.01730506308376789,
-0.03863750398159027,
0.05602452903985977,
-0.013901599682867527,
0.029905006289482117,
0.02521488256752491,
-0.07859686762094498,
-0.04296627640724182,
0.1283731907606125,
-0.040081266313791275,
0.004233185201883316,
-0.021360021084547043,
-0.07652601599693298,
0.06827963143587112,
0.006593520753085613,
0.014767764136195183,
-0.003551429370418191,
-0.053682029247283936,
-0.0033815482165664434,
-0.03024161607027054,
-0.031824491918087006,
-0.035252172499895096,
0.003002854762598872,
-0.013977285474538803,
0.035031192004680634,
0.04184328392148018,
0.009454412385821342,
-0.06899619847536087,
0.020936746150255203,
-0.01406638789921999,
-0.026320217177271843,
-0.04601847380399704,
-0.07327693700790405,
-0.016564618796110153,
0.032501861453056335,
0.0581924244761467,
-0.018228575587272644,
-0.0071913995780050755,
-0.04109746217727661,
0.07025128602981567,
0.03390590846538544,
-0.0530749075114727,
0.015132030472159386,
0.04788925126194954,
0.02708297036588192,
-0.029341647401452065,
-0.024636229500174522,
0.03515652194619179,
0.008899211883544922,
0.012186944484710693,
-0.04194517061114311,
-0.018516045063734055,
-0.054652296006679535,
-0.032942935824394226,
-0.0351744145154953,
0.04887805134057999,
0.007139392197132111,
-0.013842068612575531,
-0.01280487421900034,
0.008277185261249542,
0.06424785405397415,
0.006496123969554901,
0.04041068255901337,
0.040039658546447754,
0.03389688953757286,
-0.04816443473100662,
0.0053259097039699554,
-0.02201063744723797,
-0.002056840108707547,
0.013921169564127922,
0.056377146393060684,
0.031550198793411255,
-0.021007642149925232,
-0.018888959661126137,
0.0008427015272900462,
-0.007605741266161203,
-0.015648676082491875,
-0.0056946719996631145,
0.029027236625552177,
0.041060179471969604,
0.02920500747859478,
-0.013106291182339191,
-0.00012073331163264811,
0.005731186363846064,
0.016738126054406166,
-0.056349221616983414,
0.0025166107807308435,
0.023417621850967407,
-0.04712630435824394,
-0.0022513761650770903,
-0.01909276470541954,
-0.0047261533327400684,
-0.009458155371248722,
0.04414166137576103,
0.01349111832678318,
0.05912763252854347,
-0.07261966913938522,
-0.05172489956021309,
0.011308631859719753,
-0.019915863871574402,
-0.017532413825392723,
-0.026176724582910538,
0.005935842636972666,
-0.007927045226097107,
0.026350654661655426,
0.026615723967552185,
0.01606421358883381,
-0.008800511248409748,
0.041277747601270676,
-0.019097648561000824,
-0.0008554084342904389,
0.02726438269019127,
-0.05864045023918152,
0.002335878321900964,
0.03666675463318825,
0.035410359501838684,
0.010986624285578728,
0.023658927530050278,
0.004987434018403292,
-0.02045780047774315,
-0.04878846928477287,
-0.02590583637356758,
0.020211111754179,
-0.015373696573078632,
0.012129243463277817,
-0.038172394037246704,
-0.04390909895300865,
-0.0323125459253788,
-0.00041655515087768435,
0.004105908330529928,
-0.040925297886133194,
-0.015483400784432888,
0.01454469095915556,
0.022144924849271774,
0.02492552250623703,
-0.00962411891669035,
0.029089657589793205,
0.02297625131905079,
-0.009282883256673813,
0.038246557116508484,
0.019952159374952316,
0.014805027283728123,
0.001408927608281374,
-0.013009152375161648,
-0.015273051336407661,
-0.030762461945414543,
-0.04163668677210808,
-0.04900606721639633,
-0.01864076405763626,
0.02969653159379959,
0.023982485756278038,
0.0025455798022449017,
0.017525814473628998,
0.04581496864557266,
-0.0013277464313432574,
-0.0006943250191397965,
-0.05227421969175339,
-0.002692400012165308,
-0.04310058429837227,
-0.0066297645680606365,
-0.01703519932925701,
0.0027608152013272047,
0.022001395002007484,
-0.01983724907040596,
0.009378209710121155,
0.06343351304531097,
0.008396513760089874,
-0.0032109078019857407,
0.004373468458652496,
0.004555441439151764,
-0.011194417253136635,
-0.019815906882286072,
0.0032218245323747396,
0.013257126323878765,
0.02633538469672203,
0.006225586403161287,
-0.00019358436111360788,
0.018501874059438705,
-0.01591772586107254,
-0.011717250570654869,
0.02563212811946869,
0.0022955420427024364,
0.0014770613051950932,
0.009928622283041477,
0.05358915403485298,
-0.003967385273426771,
-0.024145394563674927,
-0.019797801971435547,
-0.02841062657535076,
-0.035286303609609604,
-0.006757708732038736,
-0.0009485350456088781,
-0.057518959045410156,
-0.020629441365599632,
0.024459799751639366,
0.007946076802909374,
0.03763187676668167,
-0.051337480545043945,
-0.019502224400639534,
0.04644670709967613,
0.0002926114830188453,
-0.012364109978079796,
-0.013371273875236511,
-0.000722418655641377,
0.016037438064813614,
-0.04001275449991226,
0.008595649152994156,
-0.03122658096253872,
0.0194779671728611,
0.0014932416379451752,
0.045846857130527496,
0.025748642161488533,
-0.03485465422272682,
-0.023386547341942787,
-0.01171585451811552,
0.017418943345546722,
0.04605725035071373,
0.0004692136135417968,
-0.030151356011629105,
0.006833893712610006,
0.02684684656560421,
0.03717811405658722,
0.021429408341646194,
0.01990414224565029,
-0.05076891556382179,
-0.03320172056555748,
-0.02057535946369171,
-0.0037149644922465086,
-0.018818821758031845,
-0.0028769662603735924,
0.02810908667743206,
0.014031784608960152,
0.0040380391292274,
-0.01684836484491825,
0.0003561350458767265,
-0.007159074302762747,
-0.007996581494808197,
0.00008359034836757928,
0.037761155515909195,
0.005002837162464857,
-0.003923484589904547,
0.0106100058183074,
-0.024897625669836998,
-0.008260286413133144,
-0.027898546308279037,
0.048855043947696686,
0.009279602207243443,
-0.04675968736410141,
-0.0662718266248703,
0.007830415852367878,
0.04137739539146423,
-0.018794581294059753,
0.003842392936348915,
0.020588085055351257,
-0.00732853077352047,
0.03004295565187931,
0.04223255440592766,
-0.021607138216495514,
-0.042929377406835556,
-0.07080703228712082,
0.006935709156095982,
-0.0013789325021207333,
-0.031729113310575485,
-0.04470762610435486,
0.06833946704864502,
-0.010376527905464172,
-0.010174615308642387,
0.014015519991517067,
0.06815747916698456,
-0.04635591804981232,
-0.01662726141512394,
0.014548935927450657,
0.009066330268979073,
-0.009338782168924809,
-0.03205424174666405,
0.005013426765799522,
0.000752874359022826,
0.018137507140636444,
0.03116077184677124,
0.0035528368316590786,
-0.03562867268919945,
-0.005375327542424202,
0.053883567452430725,
0.0185402799397707,
0.030476734042167664,
-0.005346979480236769,
0.0020265260245651007,
-0.016713155433535576,
-0.01162817981094122,
-0.04132864996790886,
0.0220644548535347,
-0.022411955520510674,
0.021754540503025055,
0.026616862043738365,
-0.02814907394349575,
-0.05355308949947357,
0.02438964508473873,
0.03761934116482735,
-0.017601579427719116,
-0.04944689944386482,
0.016868168488144875,
-0.019027594476938248,
-0.02422351762652397,
-0.028505191206932068,
0.011858560144901276,
-0.02561291866004467,
0.005866538733243942,
-0.05481657385826111,
-0.0671820119023323,
-0.006590797565877438,
-0.017505338415503502,
-0.01224277913570404,
-0.021575164049863815,
0.02875993214547634,
0.014783862046897411,
0.04684757813811302,
-0.041883550584316254,
-0.01984717696905136,
-0.005109463352710009,
-0.026038672775030136,
-0.007019783835858107,
-0.057633593678474426,
0.004036657977849245,
-0.0044672382064163685,
-0.036109041422605515,
0.014971861615777016,
0.033321622759103775,
0.003502640873193741,
-0.054794732481241226,
0.04475340619683266,
-0.011922117322683334,
-0.01592528633773327,
-0.02369188331067562,
0.058189768344163895,
-0.023496946319937706,
-0.026733888313174248,
0.034517716616392136,
-0.030945679172873497,
0.0055545298382639885,
0.06698471307754517,
0.006080662831664085,
0.02785409614443779,
0.005078819114714861,
0.00821852870285511,
-0.018970664590597153,
0.028922153636813164,
0.08175648748874664,
0.014118043705821037,
-0.021615905687212944,
-0.010615946725010872,
0.030101440846920013,
0.04570098966360092,
0.01705809496343136,
-0.030165517702698708,
0.022614996880292892,
0.0004144622653257102,
0.01948746293783188,
-0.05709641054272652,
-0.00403226912021637,
0.004844052717089653,
-0.016496935859322548,
0.002616371028125286,
0.00025898354942910373,
0.0027534598484635353,
0.035515155643224716,
0.014355090446770191,
0.004991306457668543,
0.03275909647345543,
-0.006820686627179384,
0.012432936578989029,
-0.006802966818213463,
-0.02300320193171501,
0.012717999517917633,
0.06159183010458946,
0.02444741129875183,
0.01584644243121147,
0.04597398638725281,
0.017636364325881004,
0.034861378371715546,
-0.02386668510735035,
0.00797171238809824,
0.015215656720101833,
0.051634855568408966,
-0.006733979098498821,
-0.025952696800231934,
0.0014338865876197815,
-0.004207092337310314,
-0.030265819281339645,
-0.012602897360920906,
-0.005423103924840689,
-0.041593924164772034,
0.0367937833070755,
0.03848005831241608,
-0.0097724674269557,
0.005234153941273689,
-0.00964584480971098,
0.07282757014036179,
0.0361735075712204,
0.03868873789906502,
-0.0011441574897617102,
0.01889212615787983,
0.02406788244843483,
0.058260105550289154,
-0.0073071252554655075,
-0.00950150191783905,
0.019239969551563263,
-0.02725275047123432,
0.005290142260491848,
0.03306116536259651,
0.04466010257601738,
0.009196633473038673,
-0.0032656367402523756,
0.0018531610257923603,
-0.009067070670425892,
-0.007006247993558645,
-0.0021728810388594866,
-0.05571354180574417,
-0.019680503755807877,
-0.01352375466376543,
-0.0007169776363298297,
-0.055977072566747665,
0.002167840488255024,
0.010694459080696106,
-0.0006388972396962345,
-0.005634397268295288,
0.008162149228155613,
-0.005071673076599836,
0.06696127355098724,
0.01259665098041296,
-0.0366935133934021,
0.00015683200035709888,
-0.006480929907411337,
-0.028861038386821747,
0.01935059390962124,
-0.02602788619697094,
-0.07798905670642853,
-0.044682398438453674,
0.0003702077956404537,
0.003386189928278327,
0.060924727469682693,
-0.00885023269802332,
0.014905604533851147,
0.06791938841342926,
0.00891178846359253,
0.01743057183921337,
-0.027465758845210075,
0.025792142376303673,
-0.003859498305246234,
-0.04330464079976082,
-0.005723364185541868,
-0.007602753583341837,
-0.015657970681786537,
0.0014918061206117272,
-0.06807327270507812,
0.03105497546494007,
0.0013092092704027891,
0.03287365660071373,
0.04123871028423309,
0.0777156874537468,
-0.019361890852451324,
-0.06673625856637955,
-0.0011682892218232155,
-0.038385361433029175,
0.033149633556604385,
0.045697908848524094,
0.03969933092594147,
-0.04273712635040283,
0.03343402221798897,
-0.05228881165385246,
0.0002492231724318117,
0.011326017789542675,
-0.024549830704927444,
0.039223603904247284,
-0.026922807097434998,
-0.04989832639694214,
0.020826775580644608,
-0.000635206641163677,
-0.014269853942096233,
0.009829310700297356,
-0.0012147068046033382,
0.0456998385488987,
0.02856612391769886,
-0.02098558470606804,
0.043647028505802155,
-0.04535796493291855,
-0.02187390998005867,
-0.04110337048768997,
-0.05903801694512367,
-0.005577621515840292,
-0.022442447021603584,
-0.040581345558166504,
0.028077086433768272,
-0.033619474619627,
-0.00689299451187253,
-0.042040299624204636,
-0.01620742678642273,
0.002872426062822342,
0.022046072408556938,
0.05470269173383713,
0.01652311347424984,
0.01843503676354885,
0.0000749135433579795,
-0.056188665330410004,
0.025763655081391335,
-0.05170084536075592,
0.007415649015456438,
0.04633872210979462,
-0.006659019738435745,
0.025616196915507317,
-0.005792643409222364,
0.003446649992838502,
0.028563430532813072,
-0.022515511140227318,
-0.025620412081480026,
0.024784646928310394,
-0.03555014729499817,
0.032138481736183167,
0.029732929542660713,
-0.00984118040651083,
0.05065280944108963,
-0.003931732848286629,
-0.004286115523427725,
-0.023633448407053947,
-0.019474152475595474,
-0.02022484317421913,
-0.03174801543354988,
-0.022527989000082016,
0.03716764971613884,
0.035192783921957016,
-0.015646718442440033,
-0.029609501361846924,
0.04679844528436661,
-0.00736968033015728,
0.03585732728242874,
0.029706815257668495,
0.0010178112424910069,
-0.011941545642912388,
-0.004667195957154036,
-0.018385697156190872,
0.033338338136672974,
-0.009245060384273529,
-0.048242006450891495,
0.027532558888196945,
-0.008150195702910423,
-0.006311448756605387,
-0.03808699920773506,
-0.01524876058101654,
-0.001218821736983955,
0.020416801795363426,
-0.011998836882412434,
-0.022873375564813614,
0.07064546644687653,
0.009183556772768497,
0.04724854975938797,
-0.05550593137741089,
-0.01882847212255001
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Perceiver for optical flow The authors show that it's straightforward to make the Perceiver also work on optical flow, which is a decades-old problem in computer vision, with many broader applications. For an introduction to optical flow, I refer to this blog post. Given two images of the same scene (e.g. two consecutive frames of a video), the task is to estimate the 2D displacement for each pixel in the first image. Existing algorithms are quite hand-engineered and complex, however with the Perceiver, this becomes relatively simple. The model is implemented in the Transformers library, and available as PerceiverForOpticalFlow. It is implemented as follows: python from torch import nn from transformers import PerceiverModel from transformers.models.perceiver.modeling_perceiver import PerceiverImagePreprocessor, PerceiverOpticalFlowDecoder class PerceiverForOpticalFlow(nn.Module): def __init__(self, config): super().__init__(config) fourier_position_encoding_kwargs_preprocessor = dict( num_bands=64, max_resolution=config.train_size, sine_only=False, concat_pos=True, ) fourier_position_encoding_kwargs_decoder = dict( concat_pos=True, max_resolution=config.train_size, num_bands=64, sine_only=False ) image_preprocessor = PerceiverImagePreprocessor( config, prep_type="patches", spatial_downsample=1, conv_after_patching=True, conv_after_patching_in_channels=54, temporal_downsample=2, position_encoding_type="fourier", # position_encoding_kwargs fourier_position_encoding_kwargs=fourier_position_encoding_kwargs_preprocessor, ) self.perceiver = PerceiverModel( config, input_preprocessor=image_preprocessor, decoder=PerceiverOpticalFlowDecoder( config, num_channels=image_preprocessor.num_channels, output_image_shape=config.train_size, rescale_factor=100.0, use_query_residual=False, output_num_channels=2, position_encoding_type="fourier", fourier_position_encoding_kwargs=fourier_position_encoding_kwargs_decoder, ), ) As one can see, PerceiverImagePreprocessor is used as preprocessor (i.e. to prepare the 2 images for the cross-attention operation with the latents) and PerceiverOpticalFlowDecoder is used as decoder (i.e. to decode the final hidden states of the latents to an actual predicted flow). For each of the 2 frames, the authors extract a 3 x 3 patch around each pixel, leading to 3 x 3 x 3 = 27 values for each pixel (as each pixel also has 3 color channels). The authors use a training resolution of (368, 496). If one stacks 2 frames of size (368, 496) of each training example on top of each other, the inputs to the model are of shape (batch_size, 2, 27, 368, 496). The preprocessor (with the settings defined above) will first concatenate the frames along the channel dimension, leading to a tensor of shape (batch_size, 368, 496, 54) - assuming one also moves the channel dimension to be last. The authors explain in their paper (page 8) why concatenation along the channel dimension makes sense. Next, the spatial dimensions are flattened, leading to a tensor of shape (batch_size, 368*496, 54) = (batch_size, 182528, 54). Then, position embeddings (each of which have dimensionality 258) are concatenated, leading to a final preprocessed input of shape (batch_size, 182528, 322). These will be used to perform cross-attention with the latents. The authors use 2048 latents for the optical flow model (yes, 2048!), with a dimensionality of 512 for each latent. Hence, the latents have shape (batch_size, 2048, 512). After the cross-attention, one again has a tensor of the same shape (as the latents act as queries). Next, a single block of 24 self-attention layers (each of which has 16 attention heads) are applied to update the embeddings of the latents. To decode the final hidden states of the latents to an actual predicted flow, PerceiverOpticalFlowDecoder simply uses the preprocessed inputs of shape (batch_size, 182528, 322) as queries for the cross-attention operation. Next, these are projected to a tensor of shape (batch_size, 182528, 2). Finally, one rescales and reshapes this back to the original image size to get a predicted flow of shape (batch_size, 368, 496, 2). The authors claim state-of-the-art results on important benchmarks including Sintel and KITTI when training on AutoFlow, a large synthetic dataset of 400,000 annotated image pairs. The video below shows the predicted flow on 2 examples. Optical flow estimation by Perceiver IO. The colour of each pixel shows the direction and speed of motion estimated by the model, as indicated by the legend on the right. | [
0.02133166231215,
-0.04203873872756958,
0.026109604164958,
-0.06493121385574341,
0.004117060452699661,
0.07854114472866058,
-0.020411107689142227,
0.02362227998673916,
-0.08865635842084885,
-0.03735700994729996,
-0.032739005982875824,
0.051188405603170395,
0.01155929546803236,
0.025661811232566833,
0.00944504514336586,
-0.038505300879478455,
0.02336825802922249,
-0.010414119809865952,
0.011816132813692093,
-0.002262595808133483,
-0.02438061125576496,
-0.024256093427538872,
0.011745134368538857,
-0.05395393446087837,
-0.04211726039648056,
-0.05558081716299057,
-0.04226262867450714,
0.011966830119490623,
-0.08620645850896835,
0.04098791256546974,
-0.08181814104318619,
0.04804498702287674,
0.041690122336149216,
-0.11486589908599854,
0.0005456432118080556,
0.013206721283495426,
-0.12472738325595856,
-0.0020829495042562485,
0.040556322783231735,
-0.0037305441219359636,
0.027997221797704697,
0.040302619338035583,
-0.07270728796720505,
0.05688808858394623,
0.012768792919814587,
-0.03510551527142525,
-0.10066450387239456,
0.07398399710655212,
-0.04360346123576164,
-0.009852639399468899,
-0.07573947310447693,
0.04074637591838837,
0.005804508458822966,
0.04341161623597145,
0.0006617648177780211,
0.0467672199010849,
-0.002297238213941455,
0.02859492041170597,
0.01301147323101759,
0.0039509679190814495,
0.05272196605801582,
-0.02570132352411747,
0.0009237552294507623,
0.051968879997730255,
-0.02445894666016102,
0.03890123590826988,
0.0016829508822411299,
0.0632094219326973,
-0.01012926921248436,
-0.020446032285690308,
0.05608616769313812,
-0.007133497390896082,
0.032730598002672195,
0.014725820161402225,
-0.04478488117456436,
-0.061639200896024704,
-0.02905869670212269,
-0.010797422379255295,
0.02155301719903946,
0.033318664878606796,
0.0410967655479908,
-0.013474060222506523,
0.04727606475353241,
0.02484752982854843,
0.05785904824733734,
0.04264243692159653,
-0.025043392553925514,
-0.034153394401073456,
0.03836214169859886,
0.0805879607796669,
-0.02663055993616581,
-0.13660365343093872,
-0.033924348652362823,
0.042047832161188126,
0.09389542043209076,
0.015648676082491875,
-0.04101862385869026,
0.04378221556544304,
0.0262262262403965,
-0.04627204313874245,
0.013881038874387741,
-0.05692318454384804,
0.06427507102489471,
-0.0011999595444649458,
0.014505256898701191,
0.0293722040951252,
-0.02440931834280491,
-0.0092468885704875,
-0.0660279244184494,
0.02945573441684246,
-0.0009616589522920549,
0.06184562295675278,
0.05187755823135376,
0.03668614476919174,
-0.07660750299692154,
-0.021348299458622932,
-0.01915215514600277,
0.009664488956332207,
-0.022275250405073166,
0.03972979635000229,
0.02346096746623516,
0.08092497289180756,
0.07835704833269119,
-0.0066375392489135265,
-0.07321233302354813,
-0.005237543024122715,
0.02896885573863983,
-0.0165562741458416,
-0.0563560388982296,
-0.0239569079130888,
0.005990944337099791,
-0.04590698331594467,
0.058896925300359726,
0.0011173526290804148,
0.04692752659320831,
-0.08317175507545471,
-0.00606051879003644,
-0.06755044311285019,
-0.008259213529527187,
0.005696586798876524,
0.047066036611795425,
0.042166534811258316,
0.02565508708357811,
0.055947452783584595,
-0.009893178008496761,
-0.031931422650814056,
-0.007775790523737669,
0.08171325922012329,
0.0789601281285286,
-0.0062588779255747795,
-0.09286291152238846,
0.04949489235877991,
-0.00813516229391098,
-0.07126199454069138,
-0.03589916229248047,
0.029276201501488686,
-0.020278142765164375,
-0.005568815860897303,
-0.037649184465408325,
0.012277122586965561,
-0.05062113702297211,
-0.021721217781305313,
-0.06671810150146484,
-0.004776036832481623,
-0.04823477193713188,
-0.07986509054899216,
0.05116436630487442,
-0.0012410241179168224,
0.033312730491161346,
0.04340672120451927,
-0.021837666630744934,
0.027929795905947685,
0.0020819376222789288,
0.0698704868555069,
0.0149049898609519,
-0.003191526047885418,
0.016482459381222725,
0.13242976367473602,
-0.002260437235236168,
-0.02454906888306141,
0.001970892306417227,
0.02248489484190941,
-0.06859879195690155,
0.04030448570847511,
0.12401620298624039,
-0.05452614277601242,
0.0067625027149915695,
-0.014989697374403477,
0.043960098177194595,
0.018006203696131706,
0.0020040106028318405,
-0.032218411564826965,
0.027962181717157364,
-0.08941718935966492,
0.05224749818444252,
-0.03217350319027901,
-0.07572778314352036,
0.04706733301281929,
0.08370286971330643,
0.0241549052298069,
0.0663285031914711,
-0.07609140127897263,
0.004279640503227711,
0.04058628901839256,
-0.03334803134202957,
0.024577515199780464,
0.06129392236471176,
-0.010776047594845295,
0.04517047479748726,
0.024739278480410576,
0.008900162763893604,
-0.024131877347826958,
-0.003980227746069431,
-0.0620243176817894,
-0.0060917893424630165,
0.03298445791006088,
-0.0007946933037601411,
0.025179501622915268,
0.010490617714822292,
-0.005630760919302702,
0.0856090784072876,
0.01924113743007183,
-0.006380309816449881,
0.005212642252445221,
-0.07399621605873108,
0.021052397787570953,
0.11447373032569885,
-0.005385051481425762,
0.012064667418599129,
-0.08954931795597076,
-0.04876340180635452,
-0.07055231928825378,
-0.035868048667907715,
-0.00897976290434599,
-0.03904866427183151,
-0.03473273664712906,
-0.015663253143429756,
0.021637188270688057,
0.04968574270606041,
-0.0148470439016819,
-0.017573418095707893,
-0.032512687146663666,
-0.05783579871058464,
0.0026752690318971872,
-0.04593539237976074,
-0.017538776621222496,
0.08897579461336136,
0.015457037836313248,
0.038769304752349854,
0.0424034483730793,
-0.015822425484657288,
0.10286131501197815,
-0.021871229633688927,
-0.11781482398509979,
0.02925279550254345,
0.016490396112203598,
0.02926020883023739,
-0.019297949969768524,
0.002944493666291237,
0.045974113047122955,
-0.03946288302540779,
0.022424686700105667,
0.03852804750204086,
-0.04723202809691429,
-0.059093017131090164,
-0.05059441179037094,
-0.005560690071433783,
0.012273440137505531,
0.030309179797768593,
0.005983289796859026,
0.0075932457111775875,
0.029837384819984436,
0.01931830123066902,
-0.024646585807204247,
0.04668034613132477,
0.00906865019351244,
0.04750584438443184,
-0.0020370895508676767,
-0.005517363548278809,
-0.020246274769306183,
-0.005591198336333036,
0.03629126772284508,
0.06044405326247215,
0.03036925569176674,
-0.017909925431013107,
0.0054389722645282745,
-0.0001705107861198485,
-0.01627582311630249,
-0.010085285641252995,
0.019133243709802628,
0.03313267230987549,
0.04025609791278839,
0.05546245723962784,
-0.03904131054878235,
-0.025038013234734535,
0.053268205374479294,
-0.014959180727601051,
-0.04996277019381523,
0.007800454739481211,
0.022493675351142883,
-0.02431710623204708,
0.004438220988959074,
-0.018678223714232445,
-0.01621772162616253,
-0.054547857493162155,
0.021295273676514626,
-0.005598199553787708,
0.0778358057141304,
-0.08316140621900558,
-0.04035484045743942,
0.010438933968544006,
0.03621998801827431,
0.001241781166754663,
-0.041439760476350784,
0.028427645564079285,
0.0314515084028244,
0.0011513445060700178,
0.03712402656674385,
-0.0287848562002182,
-0.026407839730381966,
0.008561118505895138,
0.02033505216240883,
0.011881299316883087,
0.003925106953829527,
-0.01909104362130165,
0.03809269517660141,
0.03450389578938484,
-0.0010264260927215219,
-0.04468217492103577,
0.05329137295484543,
0.0398644357919693,
-0.02199350669980049,
-0.03860938921570778,
-0.002002299064770341,
0.010238905437290668,
-0.03737560659646988,
0.018483299762010574,
-0.03664533793926239,
-0.08070124685764313,
-0.043942660093307495,
-0.003129049204289913,
0.029649734497070312,
-0.037564683705568314,
0.004297508392482996,
0.03892768174409866,
-0.0190162044018507,
0.009662454947829247,
-0.027020756155252457,
0.007575268391519785,
0.027780428528785706,
0.0034773123916238546,
-0.014467699453234673,
-0.013160372152924538,
-0.028512559831142426,
-0.016312435269355774,
-0.012483700178563595,
0.027313435450196266,
-0.029030118137598038,
-0.01827973872423172,
-0.013465587981045246,
0.01665423810482025,
0.028239736333489418,
0.022272810339927673,
-0.0387456975877285,
-0.004162123892456293,
0.027111845090985298,
0.014595026150345802,
0.0029022549279034138,
-0.05979389697313309,
0.010096874088048935,
0.0299252737313509,
0.03759388625621796,
-0.02194109931588173,
0.03555912524461746,
0.014913974329829216,
-0.016174515709280968,
0.022898158058524132,
0.027267729863524437,
-0.0008543775184080005,
0.02420867793262005,
-0.050324276089668274,
0.0060997577384114265,
-0.024461401626467705,
0.016301164403557777,
0.008506668731570244,
0.034200284630060196,
0.05513019487261772,
-0.001638404093682766,
-0.024292785674333572,
-0.0034281511325389147,
-0.013721340335905552,
0.009176548570394516,
0.0125234704464674,
0.024475961923599243,
0.011575440876185894,
-0.011068500578403473,
0.038780223578214645,
-0.022682005539536476,
0.03095283731818199,
-0.03244716301560402,
-0.007148670498281717,
-0.044630471616983414,
0.005999403540045023,
-0.008197973482310772,
-0.0169187244027853,
-0.013580208644270897,
0.01702910102903843,
-0.027557862922549248,
0.05225881561636925,
-0.08199659734964371,
0.0002352917508687824,
0.0007739185821264982,
0.015538486652076244,
0.00948540959507227,
-0.019756421446800232,
0.011214527301490307,
0.00580248748883605,
-0.033983390778303146,
0.04090001434087753,
-0.03735198453068733,
0.02835216000676155,
0.007467751856893301,
0.05731232091784477,
0.0386984720826149,
-0.018901197239756584,
-0.04870322719216347,
0.004986695479601622,
0.04938306286931038,
-0.027927488088607788,
0.016704747453331947,
-0.025805799290537834,
-0.01479745376855135,
0.02106907032430172,
0.025426674634218216,
0.01817983388900757,
0.04810516536235809,
-0.015388166531920433,
-0.0017186152981594205,
-0.025580575689673424,
0.0007342534954659641,
0.022835522890090942,
-0.009065220132470131,
0.006640474312007427,
-0.00547603378072381,
0.02998156100511551,
0.026387006044387817,
0.028189457952976227,
-0.006242676638066769,
-0.02312842570245266,
-0.003004522994160652,
0.052089422941207886,
-0.018382955342531204,
-0.0034526775125414133,
-0.002484942553564906,
-0.023069582879543304,
-0.017534613609313965,
-0.017871346324682236,
0.041991282254457474,
-0.0018053640378639102,
-0.025713598355650902,
-0.05762001872062683,
0.007048002909868956,
0.03021504357457161,
-0.005500704515725374,
-0.025729065760970116,
0.03933662548661232,
0.019366927444934845,
0.032045092433691025,
0.07124868035316467,
-0.024041254073381424,
-0.02755153737962246,
0.013309578411281109,
0.008139858953654766,
-0.02525296062231064,
-0.009529899805784225,
-0.06284216046333313,
0.04095661640167236,
-0.011078575626015663,
-0.01592445746064186,
0.0010370614472776651,
0.025363387539982796,
-0.039506517350673676,
0.011143227107822895,
0.013567122630774975,
-0.02221045456826687,
0.008034664206206799,
-0.03412573039531708,
-0.03460916504263878,
-0.024205219000577927,
-0.000015932213500491343,
0.024068143218755722,
0.029267389327287674,
-0.025873994454741478,
-0.03450417518615723,
0.03732144832611084,
0.012835478410124779,
0.000199889371288009,
0.0070929755456745625,
0.029470078647136688,
0.01685151271522045,
-0.011696508154273033,
-0.03207625448703766,
0.04396317899227142,
-0.01329389214515686,
-0.02825683355331421,
0.022418079897761345,
-0.048951972275972366,
-0.03929370641708374,
0.0019281668355688453,
0.02501348778605461,
0.004304856993257999,
-0.026388036087155342,
-0.017447423189878464,
0.0014651729725301266,
0.030637916177511215,
0.009320494718849659,
-0.03436436876654625,
-0.050687480717897415,
0.018036767840385437,
-0.0009936103597283363,
-0.0627434104681015,
-0.046916037797927856,
-0.006418887991458178,
0.02186843380331993,
-0.012698790058493614,
0.03781947121024132,
0.036032818257808685,
0.03407524526119232,
-0.0383954793214798,
-0.03319456800818443,
-0.021219277754426003,
0.033684294670820236,
0.04083278775215149,
-0.05143348127603531,
0.029663119465112686,
0.010137144476175308,
-0.019399382174015045,
0.06189737096428871,
0.02384132891893387,
0.011449153535068035,
-0.027203762903809547,
0.052082695066928864,
0.012113557197153568,
0.009772062301635742,
0.02277195267379284,
0.0608002245426178,
0.015637153759598732,
-0.04198630899190903,
0.026474857702851295,
-0.042721085250377655,
0.024505551904439926,
0.01894131302833557,
-0.02583124488592148,
0.017467442899942398,
0.009457544423639774,
-0.0031848035287111998,
-0.010364591144025326,
-0.021136928349733353,
0.057940445840358734,
0.0012878995621576905,
0.02057778090238571,
-0.04885853826999664,
0.004532023333013058,
0.047164108604192734,
0.004133807495236397,
-0.014288188889622688,
0.024731745943427086,
0.024828186258673668,
0.03114338591694832,
-0.0730697363615036,
-0.021710341796278954,
-0.008317830972373486,
-0.008290876634418964,
-0.009597576223313808,
-0.014781491830945015,
-0.005190430209040642,
0.024011893197894096,
-0.027861695736646652,
0.05033046752214432,
0.015136387199163437,
0.009582973085343838,
0.01576833985745907,
-0.012296993285417557,
0.03060101345181465,
-0.004057297017425299,
0.053057581186294556,
0.005650141276419163,
-0.004033894743770361,
0.031286947429180145,
0.03592609241604805,
0.02507360465824604,
-0.016916515305638313,
0.010061887092888355,
0.022305546328425407,
0.043010223656892776,
-0.010448634624481201,
-0.03124135732650757,
0.04267437011003494,
0.01500147208571434,
-0.04999139532446861,
-0.05513516068458557,
-0.05094011873006821,
-0.047732606530189514,
0.03921040892601013,
0.02511158213019371,
-0.021751604974269867,
-0.021176448091864586,
-0.04137488827109337,
0.05666155368089676,
0.005338701419532299,
0.06610759347677231,
0.02582891471683979,
0.03284335881471634,
0.05053707957267761,
0.027485499158501625,
0.013884310610592365,
-0.018646104261279106,
0.025160884484648705,
0.030736621469259262,
0.006321114953607321,
-0.01962866075336933,
0.0339408740401268,
0.03883599862456322,
-0.0020685677882283926,
0.004497063811868429,
0.00023822850198484957,
-0.020414924249053,
-0.04459722340106964,
0.02214275859296322,
0.027378680184483528,
-0.0037077569868415594,
-0.007328316569328308,
-0.07133475691080093,
-0.023566333577036858,
-0.025367578491568565,
0.01991662196815014,
-0.008505997247993946,
0.01776326820254326,
0.007020467426627874,
0.03569096699357033,
0.02046700194478035,
0.01736861653625965,
0.002749493345618248,
-0.030362680554389954,
-0.0004676951502915472,
0.026740677654743195,
0.010006144642829895,
-0.02712661400437355,
-0.03186669573187828,
0.03219101205468178,
-0.01046987809240818,
-0.0010640762047842145,
-0.017649225890636444,
-0.007272367365658283,
0.023124022409319878,
-0.0038067330606281757,
-0.018773358315229416,
0.012291653081774712,
0.025664083659648895,
-0.0032731834799051285,
-0.0061798482201993465,
-0.029591821134090424,
-0.03276902064681053,
-0.006327377632260323,
0.0012669439893215895,
-0.033251795917749405,
0.020969048142433167,
0.005431714002043009,
-0.0036486105527728796,
-0.01525469496846199,
0.030248798429965973,
-0.018087970092892647,
-0.08087145537137985,
-0.042904093861579895,
-0.022098688408732414,
0.019828854128718376,
0.03167438134551048,
0.05429084971547127,
0.026659581810235977,
0.02803613804280758,
-0.004313820973038673,
0.014302834868431091,
0.023571204394102097,
-0.030799267813563347,
0.024819863960146904,
-0.017596803605556488,
-0.04059894010424614,
0.005808078218251467,
0.01273756381124258,
-0.03419138118624687,
0.007362107280641794,
0.003046890953555703,
-0.004251015838235617,
0.0028364562895148993,
-0.01040236558765173,
0.01967468485236168,
-0.03474641591310501,
-0.07615334540605545,
-0.013352932408452034,
-0.04756741598248482,
-0.014500778168439865,
0.031018530949950218,
-0.046458590775728226,
0.019345669075846672,
-0.009922059252858162,
0.048391275107860565,
-0.028751114383339882,
-0.024615613743662834,
-0.016985377296805382,
-0.014534182846546173,
0.07795818895101547,
0.008535010740160942,
0.019534628838300705,
0.00502800103276968,
-0.03535318747162819,
-0.008696560747921467,
0.0009199681226164103,
-0.03145044669508934,
0.031230930238962173,
-0.024179968982934952,
-0.0037321834824979305,
-0.03005952388048172,
0.013952375389635563,
0.004088636487722397,
-0.034088026732206345,
-0.006206701509654522,
0.021257326006889343,
-0.014011286199092865,
-0.013212206773459911,
-0.005053231492638588,
0.0030272130388766527,
0.012639934197068214,
-0.0055945091880857944,
-0.007988426834344864,
-0.018805736675858498,
-0.0046951305121183395,
0.020828887820243835,
0.0017282828921452165,
-0.00042247356032021344,
0.014559004455804825,
-0.027751021087169647,
0.031476859003305435,
0.017264412716031075,
0.025714607909321785,
-0.009093895554542542,
0.0361030288040638,
0.00011564132000785321,
-0.07246049493551254,
-0.016201302409172058,
-0.01908998005092144,
-0.024827292189002037,
0.031187886372208595,
-0.02259249985218048,
-0.047406598925590515,
0.011106720194220543,
0.008525152690708637,
-0.015235159546136856,
0.0037633362226188183,
0.009792108088731766,
-0.0030800257809460163,
0.006474453490227461,
0.0002286482194904238,
-0.02010134421288967,
0.1139875277876854,
0.006462575402110815,
0.0007182244444265962,
-0.019541900604963303,
-0.01012505404651165
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Perceiver for text Suppose that one wants to apply the Perceiver to perform text classification. As the memory and time requirements of the Perceiver's self-attention mechanism don't depend on the size of the inputs, one can directly provide raw UTF-8 bytes to the model. This is beneficial, as familar Transformer-based models (like BERT and RoBERTa) all employ some form of explicit tokenization, such as WordPiece, BPE or SentencePiece, which may be harmful. For a fair comparison to BERT (which uses a sequence length of 512 subword tokens), the authors used input sequences of 2048 bytes. Let's say one also adds a batch dimension, then the inputs to the model are of shape (batch_size, 2048). The inputs contain the byte IDs (similar to the input_ids of BERT) for a single piece of text. One can use PerceiverTokenizer to turn a text into a sequence of byte IDs, padded up to a length of 2048: python from transformers import PerceiverTokenizer tokenizer = PerceiverTokenizer.from_pretrained("deepmind/language-perceiver") text = "hello world" inputs = tokenizer(text, padding="max_length", return_tensors="pt").input_ids In this case, one provides PerceiverTextPreprocessor as preprocessor to the model, which will take care of embedding the inputs (i.e. turn each byte ID into a corresponding vector), as well as adding absolute position embeddings. As decoder, one provides PerceiverClassificationDecoder to the model (which will turn the last hidden states of the latents into classification logits). No postprocessor is required. In other words, a Perceiver model for text classification (which is called PerceiverForSequenceClassification in HuggingFace Transformers) is implemented as follows: python from torch import nn from transformers import PerceiverModel from transformers.models.perceiver.modeling_perceiver import PerceiverTextPreprocessor, PerceiverClassificationDecoder class PerceiverForSequenceClassification(nn.Module): def __init__(self, config): super().__init__(config) self.perceiver = PerceiverModel( config, input_preprocessor=PerceiverTextPreprocessor(config), decoder=PerceiverClassificationDecoder( config, num_channels=config.d_latents, trainable_position_encoding_kwargs=dict(num_channels=config.d_latents, index_dims=1), use_query_residual=True, ), ) One can already see here that the decoder is initialized with trainable position encoding arguments. Why is that? Well, let's take a look in detail at how Perceiver IO works. At initialization, PerceiverModel internally defines a set of latent variables, as follows: python from torch import nn self.latents = nn.Parameter(torch.randn(config.num_latents, config.d_latents)) In the Perceiver IO paper, one uses 256 latents, and sets the dimensionality of the latents to 1280. If one also adds a batch dimension, the Perceiver has latents of shape (batch_size, 256, 1280). First, the preprocessor (which one provides at initialization) will take care of embedding the UTF-8 byte IDs to embedding vectors. Hence, PerceiverTextPreprocessor will turn the inputs of shape (batch_size, 2048) to a tensor of shape (batch_size, 2048, 768) - assuming that each byte ID is turned into a vector of size 768 (this is determined by the d_model attribute of PerceiverConfig). After this, Perceiver IO applies cross-attention between the latents (which produce queries) of shape (batch_size, 256, 1280) and the preprocessed inputs (which produce keys and values) of shape (batch_size, 2048, 768). The output of this initial cross-attention operation is a tensor that has the same shape as the queries (which are the latents, in this case). In other words, the output of the cross-attention operation is of shape (batch_size, 256, 1280). Next, a (repeatable) block of self-attention layers is applied to update the representations of the latents. Note that these don't depend on the length of the inputs (i.e. the bytes) one provided, as these were only used during the cross-attention operation. In the Perceiver IO paper, a single block of 26 self-attention layers (each of which has 8 attention heads) were used to update the representations of the latents of the text model. Note that the output after these 26 self-attention layers still has the same shape as what one initially provided as input to the encoder: (batch_size, 256, 1280). These are also called the "last hidden states" of the latents. This is very similar to the "last hidden states" of the tokens one provides to BERT. Ok, so now one has final hidden states of shape (batch_size, 256, 1280). Great, but one actually wants to turn these into classification logits of shape (batch_size, num_labels). How can we make the Perceiver output these? This is handled by PerceiverClassificationDecoder. The idea is very similar to what was done when mapping the inputs to the latent space: one uses cross-attention. But now, the latent variables will produce keys and values, and one provides a tensor of whatever shape we'd like - in this case we'll provide a tensor of shape (batch_size, 1, num_labels) which will act as queries (the authors refer to these as "decoder queries", because they are used in the decoder). This tensor will be randomly initialized at the beginning of training, and trained end-to-end. As one can see, one just provides a dummy sequence length dimension of 1. Note that the output of a QKV attention layer always has the same shape as the shape of the queries - hence the decoder will output a tensor of shape (batch_size, 1, num_labels). The decoder then simply squeezes this tensor to have shape (batch_size, num_labels) and boom, one has classification logits1. Great, isn't it? The Perceiver authors also show that it is straightforward to pre-train the Perceiver for masked language modeling, similar to BERT. This model is also available in HuggingFace Transformers, and called PerceiverForMaskedLM. The only difference with PerceiverForSequenceClassification is that it doesn't use PerceiverClassificationDecoder as decoder, but rather PerceiverBasicDecoder, to decode the latents to a tensor of shape (batch_size, 2048, 1280). After this, a language modeling head is added, which turns it into a tensor of shape (batch_size, 2048, vocab_size). The vocabulary size of the Perceiver is only 262, namely the 256 UTF-8 byte IDs, as well as 6 special tokens. By pre-training the Perceiver on English Wikipedia and C4, the authors show that it is possible to achieve an overall score of 81.8 on GLUE after fine-tuning. | [
-0.01636427827179432,
-0.020855233073234558,
0.004007943440228701,
-0.026584109291434288,
-0.006258186884224415,
0.10336209833621979,
0.04652146250009537,
0.06226310878992081,
-0.07919374108314514,
-0.03844475746154785,
-0.0980096235871315,
0.06506169587373734,
0.024209439754486084,
0.0545097179710865,
-0.005067570600658655,
-0.02063797414302826,
0.047517698258161545,
0.03714147210121155,
-0.017085429280996323,
-0.05570029467344284,
-0.039783183485269547,
-0.031464964151382446,
0.03085874207317829,
0.011865966022014618,
-0.005909391678869724,
-0.01296083815395832,
0.005257949233055115,
-0.007073601707816124,
-0.051441069692373276,
0.016247820109128952,
-0.09800102561712265,
-0.006101232022047043,
0.02422354929149151,
-0.054761435836553574,
-0.019523896276950836,
0.022725725546479225,
-0.12181555479764938,
0.04307405278086662,
0.05540552735328674,
0.004143363796174526,
-0.04027162864804268,
0.03127537667751312,
-0.07547666877508163,
0.03716341778635979,
0.0028330760542303324,
-0.03479244187474251,
-0.15130718052387238,
0.08035091310739517,
-0.003636553417891264,
-0.01066564116626978,
-0.07409612834453583,
0.058136746287345886,
-0.0882544293999672,
0.05007588490843773,
0.045928385108709335,
0.006375168915838003,
-0.008739889599382877,
-0.0779256671667099,
0.010644609108567238,
-0.011567773297429085,
0.041620127856731415,
-0.03103659301996231,
0.018345622345805168,
0.08066980540752411,
0.009097035974264145,
0.07158242911100388,
-0.03981393203139305,
0.009580249898135662,
-0.015034073032438755,
-0.026409374549984932,
-0.0028455688152462244,
-0.011052978225052357,
-0.025568000972270966,
-0.044289372861385345,
-0.0557151660323143,
-0.08752132207155228,
0.0020780335180461407,
0.016761697828769684,
0.02630651742219925,
0.07751292735338211,
0.010695301927626133,
0.018937580287456512,
0.03815136104822159,
-0.0030572174582630396,
0.028753789141774178,
0.0625106692314148,
0.00748489098623395,
-0.05247369408607483,
-0.031247837468981743,
0.06107667088508606,
-0.027173146605491638,
-0.15195757150650024,
0.03941597416996956,
0.03564943000674248,
0.0357554666697979,
0.022415822371840477,
-0.033512938767671585,
0.03866371139883995,
-0.0030857687816023827,
0.00822734460234642,
-0.00038618818507529795,
-0.07057590037584305,
0.07348193973302841,
-0.07891850173473358,
-0.04146907106041908,
0.04847404360771179,
-0.033606186509132385,
-0.04012443870306015,
-0.025956787168979645,
-0.0017325722146779299,
0.0465625636279583,
-0.011517063714563847,
-0.0013334524119272828,
0.06677006185054779,
-0.08591524511575699,
0.04183466359972954,
0.004488134291023016,
0.02478562481701374,
0.0014980881242081523,
0.023194491863250732,
-0.0029539663810282946,
0.006538901012390852,
0.038666315376758575,
-0.027266886085271835,
0.03992292284965515,
0.009289040230214596,
0.036684129387140274,
-0.026589298620820045,
0.020732104778289795,
0.006816027220338583,
0.009663409553468227,
-0.023248549550771713,
0.0585121288895607,
-0.021858328953385353,
-0.04719925671815872,
-0.017767611891031265,
0.01732022315263748,
-0.09085724502801895,
-0.028437070548534393,
-0.020827077329158783,
-0.02547304518520832,
0.027710085734725,
0.023070476949214935,
0.023056743666529655,
0.027050206437706947,
0.010948501527309418,
-0.09223490953445435,
0.09730082750320435,
-0.00007199273386504501,
0.03200981393456459,
-0.14346398413181305,
0.033686667680740356,
0.0378526970744133,
-0.04511450231075287,
0.040547311305999756,
0.03703596442937851,
-0.01884208433330059,
-0.00607515312731266,
-0.049441322684288025,
0.005870239343494177,
-0.07746052742004395,
-0.035992126911878586,
-0.06947216391563416,
0.010346297174692154,
-0.01180319581180811,
-0.07948120683431625,
0.022417377680540085,
0.009889944456517696,
0.03301806002855301,
-0.00881414208561182,
0.05796777456998825,
0.006876922678202391,
0.02910980023443699,
0.006703173276036978,
0.016356373205780983,
0.03770964592695236,
0.008786930702626705,
0.06742455810308456,
-0.0031105359084904194,
-0.05923075973987579,
-0.013445574790239334,
0.025766266509890556,
-0.04971462860703468,
0.06455450505018234,
0.07335861027240753,
-0.07180899381637573,
0.02265295200049877,
-0.05025454983115196,
0.00414347043260932,
0.014200414530932903,
-0.05558132752776146,
-0.012786475010216236,
0.039565686136484146,
-0.009259299375116825,
0.026188816875219345,
-0.021040067076683044,
-0.01950678601861,
0.10877640545368195,
0.01339077390730381,
0.05103713274002075,
0.08684248477220535,
-0.012940853834152222,
-0.014332683756947517,
0.02155251055955887,
0.009760702960193157,
-0.01382541935890913,
-0.00572232436388731,
0.004481206648051739,
0.06468060612678528,
0.0037222662940621376,
0.0346023328602314,
-0.05631960928440094,
0.012135986238718033,
-0.11065034568309784,
-0.055143631994724274,
-0.0193382129073143,
0.05398876219987869,
0.026576584205031395,
0.0065886350348591805,
-0.06949985027313232,
0.13789144158363342,
-0.034842971712350845,
-0.0005040460382588208,
-0.030770912766456604,
-0.053140878677368164,
0.04401808977127075,
0.03476851433515549,
0.007678756956011057,
0.03638937696814537,
-0.10217398405075073,
-0.04053693637251854,
-0.0459069162607193,
0.03620761260390282,
-0.039385054260492325,
-0.08198460936546326,
-0.02625863626599312,
0.015032399445772171,
0.045224763453006744,
0.02143714390695095,
-0.013808081857860088,
-0.022778769955039024,
-0.03182067722082138,
-0.03963872790336609,
-0.028413282707333565,
-0.05749676749110222,
0.005897533148527145,
0.06001913547515869,
0.026676442474126816,
-0.005426468327641487,
0.03189254179596901,
-0.058930084109306335,
0.09491478651762009,
0.019960027188062668,
-0.05272040143609047,
0.03475433588027954,
0.054361745715141296,
0.009108034893870354,
-0.016346843913197517,
0.021642059087753296,
0.01914973556995392,
-0.019115447998046875,
0.013509896583855152,
0.0031264428980648518,
-0.011516356840729713,
-0.057210274040699005,
-0.03523764759302139,
-0.021166888996958733,
0.021876627579331398,
0.002722115023061633,
0.03872388228774071,
-0.023958534002304077,
0.0389765240252018,
0.0042234123684465885,
-0.03285662829875946,
0.05094807595014572,
0.04835585877299309,
0.053786568343639374,
-0.04447324946522713,
-0.0014642664464190602,
0.004154378082603216,
-0.020063161849975586,
-0.019835054874420166,
0.037370532751083374,
0.00957350991666317,
-0.00891873985528946,
0.01663624867796898,
0.01433069072663784,
-0.0347554050385952,
-0.027072018012404442,
0.028943119570612907,
0.044449567794799805,
0.05183357372879982,
0.009377403184771538,
-0.034366682171821594,
0.00148480455391109,
0.03957618400454521,
0.007442848291248083,
-0.02255915477871895,
0.03471538424491882,
0.044245753437280655,
-0.014185802079737186,
0.014105658046901226,
-0.029603613540530205,
0.008829261176288128,
-0.03525460511445999,
0.04140442609786987,
0.008673686534166336,
0.04093846306204796,
-0.08932144939899445,
-0.027078786864876747,
-0.0033378200605511665,
0.010649948380887508,
0.004421434365212917,
-0.01727336086332798,
0.04521670565009117,
0.030957430601119995,
-0.020318716764450073,
0.025299254804849625,
0.010323979891836643,
-0.03826550021767616,
0.049186062067747116,
-0.013696965761482716,
-0.0010771267116069794,
0.03212670981884003,
-0.015420837327837944,
-0.0026364969089627266,
0.026675835251808167,
0.017281383275985718,
-0.003909687977284193,
0.03897223249077797,
0.01643609255552292,
0.017756560817360878,
-0.028000038117170334,
-0.02849842607975006,
0.005756644997745752,
-0.02408011257648468,
0.030746635049581528,
-0.005644360091537237,
-0.032637812197208405,
-0.03192341327667236,
-0.004863123409450054,
-0.013677537441253662,
-0.05336979404091835,
-0.009511370211839676,
0.004611097276210785,
0.012629047967493534,
-0.001512280898168683,
0.015360452234745026,
0.009575139731168747,
0.008579641580581665,
-0.02375175431370735,
-0.03424364700913429,
0.025236167013645172,
-0.05956130847334862,
-0.03825953230261803,
-0.0013268535258248448,
0.002679230645298958,
-0.04275566712021828,
0.0004697247932199389,
-0.038461834192276,
0.0036886841990053654,
0.03055923618376255,
0.010213042609393597,
-0.015684202313423157,
-0.013497518375515938,
0.06082048639655113,
-0.02980937995016575,
-0.028096966445446014,
-0.05481948330998421,
0.0038208356127142906,
-0.0330604687333107,
0.006366098299622536,
-0.016813702881336212,
0.056651078164577484,
0.017839329317212105,
-0.00523254182189703,
0.009672898799180984,
0.039391711354255676,
-0.03767896816134453,
0.020693723112344742,
0.008471440523862839,
0.004011189565062523,
-0.026649119332432747,
0.0027998543810099363,
-0.0198182575404644,
-0.008972999639809132,
0.038223035633563995,
-0.005863437429070473,
-0.0335632748901844,
0.024316992610692978,
-0.03576214984059334,
0.011778165586292744,
0.00038033572491258383,
0.011270102113485336,
0.023581651970744133,
-0.01865600049495697,
0.030861258506774902,
0.020232366397976875,
-0.005459945183247328,
-0.03483694791793823,
-0.020909426733851433,
-0.01648687943816185,
-0.02102692611515522,
0.024972502142190933,
0.0021766440477222204,
-0.0020694665145128965,
0.025338884443044662,
-0.005865790881216526,
0.025403445586562157,
-0.05268267169594765,
-0.0019610445015132427,
0.001420466578565538,
0.0074386014603078365,
0.036334078758955,
-0.04699762910604477,
-0.0029818702023476362,
0.04227839410305023,
-0.017577065154910088,
0.04424085468053818,
0.0003369244805071503,
-0.03484939783811569,
0.013177301734685898,
0.046574145555496216,
0.005963928997516632,
0.02622884139418602,
-0.043362196534872055,
-0.04331396520137787,
0.02338424324989319,
-0.02061191014945507,
0.02589552290737629,
-0.008592269383370876,
0.012195772491395473,
0.028317641466856003,
-0.015866713598370552,
0.05227448046207428,
0.04293714463710785,
-0.010126392357051373,
-0.04881003871560097,
-0.032578807324171066,
-0.00041197764221578836,
-0.0026904474943876266,
0.032277025282382965,
0.05241364613175392,
0.011140919290482998,
0.009595842100679874,
-0.00399929890409112,
0.018330158665776253,
-0.01884378120303154,
-0.040265344083309174,
-0.015819448977708817,
0.018083620816469193,
-0.029571207240223885,
0.02304224669933319,
0.015956562012434006,
-0.02077176235616207,
0.0018595693400129676,
-0.02574608102440834,
0.030029423534870148,
0.040336161851882935,
-0.037069082260131836,
-0.04632055014371872,
0.030108299106359482,
0.031272042542696,
-0.015385511331260204,
0.013891075737774372,
0.06236019358038902,
-0.003516266355291009,
0.006517610978335142,
0.027231210842728615,
-0.003014791989699006,
-0.012589652091264725,
0.001047553843818605,
0.04343152791261673,
0.0005638175643980503,
-0.010873062536120415,
-0.056727681308984756,
0.03165718540549278,
-0.01813928410410881,
-0.013255959376692772,
-0.01456849742680788,
0.025934938341379166,
-0.029344715178012848,
0.00007514085154980421,
0.03878225013613701,
-0.0053139254450798035,
0.007793031632900238,
-0.044869787991046906,
0.002634556032717228,
-0.013890763744711876,
-0.007628029212355614,
0.05361308157444,
-0.0056921327486634254,
-0.016091318801045418,
0.009072082117199898,
0.0767730101943016,
0.05855468288064003,
0.009273231960833073,
-0.00828162394464016,
-0.02850949764251709,
0.008097396232187748,
0.00742516852915287,
-0.04357067868113518,
0.011251719668507576,
-0.009500770829617977,
-0.004413376562297344,
0.05842431262135506,
-0.007314848713576794,
-0.001096975989639759,
0.018334412947297096,
0.017957104369997978,
-0.020893048495054245,
-0.0309525765478611,
0.024872876703739166,
-0.01619872823357582,
0.013205592520534992,
-0.06115049868822098,
0.006807479076087475,
-0.03394030034542084,
-0.00885677058249712,
-0.005533888936042786,
-0.03012268617749214,
0.008830515667796135,
0.002746779704466462,
-0.001939626527018845,
0.02704315446317196,
0.05663248151540756,
-0.0025358840357512236,
0.06033049151301384,
-0.018168380483984947,
-0.021234842017292976,
-0.028785867616534233,
0.024021662771701813,
0.04199093207716942,
-0.041176535189151764,
0.026975030079483986,
-0.005502666812390089,
0.003957436885684729,
0.03663799166679382,
0.05210697650909424,
-0.011614485643804073,
0.007322125136852264,
0.0303278136998415,
-0.007809612434357405,
-0.01642419584095478,
-0.020447973161935806,
0.06921572238206863,
0.034006088972091675,
-0.015244357287883759,
0.03274984657764435,
-0.024984413757920265,
-0.007322170305997133,
0.025856217369437218,
-0.01865568570792675,
0.010292967781424522,
-0.000275926839094609,
-0.0016987419221550226,
-0.010132336057722569,
0.025655480101704597,
0.03779102861881256,
0.0018633919535204768,
-0.007699044421315193,
-0.022972308099269867,
0.01507561281323433,
0.038171496242284775,
0.01770375855267048,
0.002125890227034688,
0.010521194897592068,
-0.00437946105375886,
0.015803499147295952,
-0.06760383397340775,
0.0018074627732858062,
0.03443830460309982,
-0.032484136521816254,
0.013782932423055172,
-0.008286995813250542,
0.021724998950958252,
0.0767320841550827,
0.03327694535255432,
0.029737433418631554,
0.01889173313975334,
0.004058999940752983,
0.000380767451133579,
-0.030076690018177032,
0.01658281497657299,
0.009510544128715992,
0.06250780075788498,
-0.017978422343730927,
0.04413144662976265,
0.03199486806988716,
0.0549396388232708,
0.04711764305830002,
0.011024370789527893,
-0.005760761443525553,
-0.004875984508544207,
0.050388991832733154,
-0.03672171011567116,
-0.0008820893708616495,
0.024358389899134636,
0.009562138468027115,
-0.005369360093027353,
-0.020895661786198616,
0.011878086254000664,
-0.05109429731965065,
0.01144234649837017,
0.026826314628124237,
-0.014058238826692104,
0.04024330526590347,
-0.017186665907502174,
0.06268506497144699,
0.028361685574054718,
0.07686152309179306,
0.01928318291902542,
0.017997561022639275,
0.04567406699061394,
0.023635171353816986,
0.026980523020029068,
-0.006062440574169159,
0.015251724049448967,
-0.008524376899003983,
0.006888194940984249,
0.03325669839978218,
0.031008267775177956,
0.011708403006196022,
-0.05228934809565544,
0.009198055602610111,
-0.008832738734781742,
-0.05259188637137413,
-0.009536631405353546,
-0.013121919706463814,
-0.021509841084480286,
-0.0027108669746667147,
0.02729911170899868,
-0.03819643706083298,
0.011054953560233116,
-0.002379158278927207,
-0.005491854622960091,
0.0026081299874931574,
0.013718288391828537,
0.003117919899523258,
0.06419294327497482,
0.03796369954943657,
-0.026891782879829407,
0.0077497572638094425,
-0.014906998723745346,
-0.0005007586441934109,
0.0374634750187397,
-0.018434960395097733,
-0.033730387687683105,
-0.03394750505685806,
-0.054023146629333496,
-0.046180665493011475,
0.009066658094525337,
-0.02588285692036152,
-0.00024044951715040952,
0.02264614962041378,
0.044698480516672134,
0.016304608434438705,
-0.005845149513334036,
0.0011098044924438,
0.003540561767295003,
-0.0015412960201501846,
-0.020289305597543716,
-0.04210638627409935,
-0.020479513332247734,
-0.03244491294026375,
-0.0432010293006897,
0.01998700015246868,
-0.018106333911418915,
0.018490398302674294,
0.03183902055025101,
0.08273045718669891,
-0.028170883655548096,
-0.043302021920681,
0.026397351175546646,
-0.005129359196871519,
-0.011963178403675556,
0.057473041117191315,
0.06075778231024742,
-0.026325616985559464,
0.010483674705028534,
-0.0202056672424078,
-0.02951701357960701,
-0.002356478478759527,
-0.03392767533659935,
0.03305179998278618,
-0.01770026423037052,
-0.043558359146118164,
-0.058002784848213196,
0.006471817847341299,
-0.023525400087237358,
0.0040307361632585526,
0.04349856823682785,
0.02087131328880787,
0.011032273061573505,
-0.007572952192276716,
0.039674561470746994,
-0.06126004830002785,
-0.021571535617113113,
-0.030037876218557358,
-0.0543542243540287,
-0.045057520270347595,
0.01597791723906994,
-0.009739307686686516,
0.043023061007261276,
-0.03267228603363037,
0.02268153987824917,
-0.059328965842723846,
0.01349025871604681,
-0.01675081066787243,
-0.016116097569465637,
0.06634059548377991,
0.0023582098074257374,
0.008045547641813755,
0.020955193787813187,
-0.031669583171606064,
0.007907883264124393,
0.008543115109205246,
-0.02940661460161209,
0.07788214832544327,
0.0059064896777272224,
0.007088912650942802,
-0.009667442180216312,
0.0032358276657760143,
-0.023232050240039825,
-0.027137842029333115,
0.008644264191389084,
0.026960408315062523,
-0.016379250213503838,
0.008773143403232098,
0.03806636855006218,
-0.016941945999860764,
0.03505023941397667,
0.024217717349529266,
0.014594030566513538,
-0.0298183411359787,
0.007042548153549433,
0.00278756907209754,
-0.03910191357135773,
0.010343785397708416,
-0.0035694350954145193,
0.0016210890607908368,
0.05692807212471962,
-0.021271031349897385,
0.0435086227953434,
0.015888093039393425,
0.011714095249772072,
-0.017652124166488647,
-0.0356188602745533,
-0.005075778812170029,
-0.051578521728515625,
0.010661656036973,
0.02863694541156292,
-0.01780608668923378,
-0.024398397654294968,
0.05016128346323967,
-0.01913783885538578,
0.0018218279583379626,
-0.0008942836429923773,
-0.01662309467792511,
-0.04339411109685898,
0.010964790359139442,
-0.021008210256695747,
0.013053792528808117,
0.053876686841249466,
0.011631276458501816,
0.029752474278211594,
-0.021702606230974197,
0.0030062664300203323
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | # Perceiver IO: a scalable, fully-attentional model that works on any modality | [
0.015677645802497864,
-0.06517386436462402,
0.08684046566486359,
-0.0436926893889904,
0.03873443230986595,
0.04546535015106201,
0.03580201044678688,
0.08140811324119568,
-0.03714531287550926,
-0.04502736032009125,
-0.02063862420618534,
0.08896788209676743,
-0.042607877403497696,
0.07545451819896698,
0.044395145028829575,
0.06440184265375137,
0.04174009710550308,
-0.0043297866359353065,
0.010853719897568226,
-0.01230508740991354,
-0.03192278370261192,
-0.02022368088364601,
-0.010594605468213558,
-0.1029125452041626,
-0.043664734810590744,
-0.01855115406215191,
0.0076754228211939335,
0.002365743974223733,
-0.07553272694349289,
-0.0038321290630847216,
-0.03492898866534233,
0.08978275954723358,
-0.003754211124032736,
-0.016998330131173134,
-0.02930854819715023,
-0.014254070818424225,
-0.08188261091709137,
-0.004273567348718643,
0.00016175188648048788,
-0.08049172908067703,
-0.030055753886699677,
-0.016886726021766663,
-0.04779776930809021,
0.04167095944285393,
-0.04113980382680893,
-0.03186607360839844,
-0.23209798336029053,
0.06358257681131363,
0.013966048136353493,
0.029415231198072433,
-0.07586420327425003,
0.10846010595560074,
0.024447157979011536,
0.04328417778015137,
0.02820376306772232,
-0.011019228026270866,
0.02040230855345726,
0.0018460855353623629,
0.0003599738411139697,
-0.030458206310868263,
0.08714774996042252,
-0.043803535401821136,
0.021971819922327995,
0.054566025733947754,
0.004014391917735338,
0.020133797079324722,
0.031124936416745186,
-0.02532271295785904,
-0.035387005656957626,
-0.011862575076520443,
0.012884831055998802,
-0.013334816321730614,
0.0000803483635536395,
-0.005863073281943798,
0.0008510174229741096,
-0.013085325248539448,
-0.006769082043319941,
0.06742259860038757,
0.051154572516679764,
0.013806989416480064,
-0.020885620266199112,
0.04036622494459152,
0.10949129611253738,
0.05103275179862976,
0.011533578857779503,
0.03915345296263695,
0.0036777062341570854,
-0.07155593484640121,
-0.021010790020227432,
0.040096715092659,
0.05611000582575798,
-0.13053306937217712,
-0.0012153987772762775,
0.04068176448345184,
0.08516451716423035,
0.03545008972287178,
0.0017140851123258471,
-0.02129850536584854,
0.028673795983195305,
-0.005948464386165142,
-0.021153012290596962,
-0.0062323366291821,
0.06308000534772873,
-0.05535101890563965,
-0.027255157008767128,
0.07172408699989319,
-0.022186439484357834,
-0.032286789268255234,
-0.06816758960485458,
0.0963398665189743,
-0.0541415810585022,
0.03917538747191429,
0.006122587248682976,
0.026425031945109367,
-0.01834116503596306,
0.04534302279353142,
-0.02231328934431076,
0.06696110963821411,
0.007696066051721573,
-0.0072576324455440044,
0.020357497036457062,
0.02756398729979992,
0.05247382074594498,
0.03416658192873001,
0.024860121309757233,
-0.012310182675719261,
0.0030716550536453724,
-0.01751042529940605,
-0.04523980990052223,
0.0013229090254753828,
-0.006418032106012106,
-0.0842028558254242,
0.012617934495210648,
0.00829992163926363,
-0.0408451072871685,
-0.059830471873283386,
0.022774886339902878,
-0.007015349343419075,
0.014823815785348415,
-0.006533558014780283,
-0.012485146522521973,
-0.06264885514974594,
0.030790040269494057,
0.03848344087600708,
0.061533376574516296,
-0.027843661606311798,
-0.04980982840061188,
0.07627309858798981,
-0.007838527671992779,
-0.02040720544755459,
-0.07920648157596588,
0.06920134276151657,
-0.0477483756840229,
-0.054143138229846954,
-0.0021566469222307205,
-0.0016181719256564975,
0.014268701896071434,
-0.018429720774292946,
0.014446665532886982,
0.028889743611216545,
0.006635570898652077,
0.02227327972650528,
-0.039502568542957306,
0.033733807504177094,
0.0037072228733450174,
-0.015073523856699467,
0.017328672111034393,
0.031207097694277763,
0.009199905209243298,
-0.02506963722407818,
0.023028993979096413,
0.01014530286192894,
0.0318562388420105,
0.023871196433901787,
-0.050857629626989365,
0.0049324980936944485,
0.07016050815582275,
0.10090826451778412,
0.013732372783124447,
0.029920080676674843,
-0.004632872994989157,
0.002401646226644516,
-0.043033551424741745,
0.013468625955283642,
0.06049976870417595,
-0.058337870985269547,
0.026355640962719917,
0.019299058243632317,
0.028139719739556313,
-0.023414354771375656,
-0.06282861530780792,
-0.004593897610902786,
0.07938515394926071,
0.021526804193854332,
0.07206548005342484,
-0.06555167585611343,
-0.0991278886795044,
0.0880143940448761,
0.06270331889390945,
0.0587838813662529,
0.07235842943191528,
-0.017846116796135902,
0.05831225961446762,
-0.00905854906886816,
-0.03996993601322174,
-0.015151629224419594,
0.094675712287426,
0.015086059458553791,
0.04547591879963875,
-0.032442398369312286,
-0.035618171095848083,
-0.0718836784362793,
0.026889095082879066,
-0.05165231227874756,
-0.033894505351781845,
0.007195939309895039,
0.013747171498835087,
0.061898086220026016,
-0.07039746642112732,
-0.05664637312293053,
0.14529815316200256,
-0.03482552245259285,
-0.025425294414162636,
0.006859841290861368,
-0.022725636139512062,
0.06696662306785583,
0.07187880575656891,
-0.022292204201221466,
0.024694107472896576,
-0.05826336890459061,
0.008639223873615265,
-0.009002278558909893,
-0.0015726936981081963,
0.021698536351323128,
-0.0042394488118588924,
0.05489116162061691,
-0.03271343559026718,
0.06048028543591499,
0.03757738322019577,
-0.09111783653497696,
-0.03601972013711929,
-0.03477480262517929,
-0.045630279928445816,
0.015528904274106026,
-0.02342761680483818,
-0.03381795063614845,
0.015811096876859665,
0.025104913860559464,
-0.04688054695725441,
0.03349778801202774,
-0.07687443494796753,
0.08687480539083481,
0.03327350690960884,
-0.07050293684005737,
0.08642549812793732,
-0.03865119442343712,
0.027810871601104736,
-0.01867164857685566,
0.008938164450228214,
0.015281917527318,
0.027439378201961517,
0.000014495242794509977,
0.012980399653315544,
-0.005521121900528669,
-0.022533660754561424,
-0.022542249411344528,
-0.016556456685066223,
-0.005133687984198332,
0.026147333905100822,
0.05095137655735016,
0.014633879996836185,
0.03042132779955864,
0.011490646749734879,
-0.032454896718263626,
0.0017572289798408747,
-0.005468993913382292,
0.05215592682361603,
-0.03576331585645676,
0.005769561510533094,
-0.033846620470285416,
-0.014508459717035294,
0.005732649937272072,
0.058808863162994385,
0.026467062532901764,
0.04410688951611519,
-0.03584648296236992,
0.03369009867310524,
0.012253088876605034,
-0.005691829603165388,
0.011841025203466415,
-0.014561085030436516,
0.027568569406867027,
0.005755879916250706,
-0.007146138697862625,
-0.03143788129091263,
-0.025342201814055443,
0.006287191528826952,
0.006653196178376675,
-0.010897106491029263,
-0.027198346331715584,
0.023541433736681938,
0.05864967778325081,
0.0008411049493588507,
-0.002451338805258274,
-0.03646223619580269,
0.041588135063648224,
-0.0003788244794122875,
0.04464935511350632,
-0.1152716726064682,
-0.05762970447540283,
-0.018415914848446846,
0.03689124435186386,
-0.027780573815107346,
-0.057951465249061584,
0.02791726589202881,
-0.013096439652144909,
0.023449022322893143,
0.01167108491063118,
-0.00015871510549914092,
-0.019210124388337135,
0.007225436624139547,
-0.005287101026624441,
-0.02895406261086464,
-0.0020589809864759445,
-0.0379318930208683,
0.02711607702076435,
0.02143815904855728,
0.021684693172574043,
-0.02352365292608738,
0.0547354631125927,
-0.01086251251399517,
-0.024584762752056122,
-0.016865575686097145,
0.01543994341045618,
0.01711428537964821,
-0.015776442363858223,
0.04639187455177307,
-0.0022244027350097895,
-0.05626584216952324,
0.017837107181549072,
-0.006906046532094479,
0.03555752709507942,
0.013326632790267467,
0.05599014088511467,
0.0030977956485003233,
0.013920820318162441,
-0.005176682025194168,
0.012884111143648624,
0.013963065110147,
0.002507630968466401,
0.019371699541807175,
-0.02826882340013981,
0.0040823048911988735,
-0.012674745172262192,
0.0022712338250130415,
0.0056145708076655865,
0.016157539561390877,
-0.05711711198091507,
-0.049684640020132065,
-0.04139254614710808,
0.026797350496053696,
0.03216695412993431,
-0.0020938946399837732,
-0.025213854387402534,
-0.03257480636239052,
0.023173660039901733,
-0.014211518689990044,
-0.0062760887667536736,
-0.048279717564582825,
0.008697791025042534,
-0.012985298410058022,
0.0006415208918042481,
-0.04241899028420448,
0.03378260135650635,
0.01850762963294983,
-0.0048280623741447926,
-0.01699867844581604,
0.014896701090037823,
0.015165513381361961,
0.03542597219347954,
-0.010300026275217533,
0.01976081170141697,
-0.016972403973340988,
0.04977627843618393,
0.01615718938410282,
0.009435554966330528,
0.034241579473018646,
-0.03192857280373573,
-0.03993020951747894,
-0.015931930392980576,
-0.011338486336171627,
-0.04703492671251297,
0.006956115365028381,
0.010106716305017471,
0.007967857643961906,
-0.03266248106956482,
-0.00480992067605257,
0.04231034219264984,
-0.017950264737010002,
-0.00704444432631135,
0.011596307158470154,
-0.014965775422751904,
0.03210623189806938,
0.04075043648481369,
0.0043150498531758785,
-0.027493422850966454,
0.03611177206039429,
-0.02099388837814331,
0.06548333913087845,
-0.02509896270930767,
-0.007760292384773493,
0.021154310554265976,
0.0025127576664090157,
0.04839291796088219,
-0.02960994653403759,
-0.04141831398010254,
0.016258586198091507,
-0.025343643501400948,
0.019977862015366554,
-0.007898821495473385,
-0.02698894776403904,
-0.023029211908578873,
0.03163604065775871,
0.0029842902440577745,
-0.02446604147553444,
0.02283569984138012,
-0.05170455947518349,
0.0010552959283813834,
-0.008693147450685501,
-0.015129339881241322,
0.001633564941585064,
-0.028803789988160133,
0.0006720891105942428,
0.034778136759996414,
0.018726419657468796,
-0.03886302933096886,
-0.023134266957640648,
0.02466486766934395,
-0.03380628675222397,
-0.03770815208554268,
0.018129656091332436,
0.011435373686254025,
0.05253135412931442,
0.004613857716321945,
0.009108302183449268,
0.03942224010825157,
0.01151321642100811,
-0.011772437952458858,
0.009161288850009441,
-0.011020440608263016,
0.02885180152952671,
-0.010105796158313751,
0.010597878135740757,
-0.026458898559212685,
-0.04613247141242027,
0.03993899002671242,
-0.02545870468020439,
0.0233082827180624,
0.019210774451494217,
-0.0661115050315857,
-0.05323588475584984,
0.013796121813356876,
0.03194240853190422,
0.008359701372683048,
-0.020682785660028458,
-0.009488934651017189,
0.0007866463856771588,
0.05668193846940994,
0.03362984210252762,
-0.03252405300736427,
-0.03856416046619415,
-0.004282060079276562,
0.010154638439416885,
-0.007055836729705334,
-0.014646883122622967,
-0.04413960874080658,
0.019859373569488525,
-0.001420239103026688,
-0.00952821969985962,
-0.012846929021179676,
0.041083745658397675,
-0.021157562732696533,
-0.02043204940855503,
-0.00739719532430172,
0.028319330886006355,
0.006429171655327082,
-0.020562946796417236,
0.015688927844166756,
-0.00549654895439744,
-0.004484011325985193,
0.002378591103479266,
0.004144672770053148,
0.03904684633016586,
-0.0039188675582408905,
0.05883648619055748,
0.008816830813884735,
-0.0023192663211375475,
0.024211281910538673,
0.03573405742645264,
0.012939234264194965,
-0.017458243295550346,
-0.049729347229003906,
0.018045196309685707,
0.02551548182964325,
-0.023444220423698425,
0.034441158175468445,
0.003736944170668721,
-0.02264382876455784,
0.0034406327176839113,
0.009670262224972248,
-0.03493061289191246,
-0.010250786319375038,
-0.019530247896909714,
0.011646970175206661,
0.014770039357244968,
-0.01525161787867546,
-0.016976844519376755,
0.021519578993320465,
-0.01225545909255743,
-0.041288111358881,
-0.037120621651411057,
-0.05101243034005165,
0.03588409721851349,
-0.03246217221021652,
-0.024826547130942345,
0.018167883157730103,
-0.015742918476462364,
0.041027531027793884,
-0.0012984374770894647,
-0.018096623942255974,
-0.022522807121276855,
-0.000720308511517942,
0.008260889910161495,
-0.03996868431568146,
-0.007191010285168886,
0.018756292760372162,
-0.024638185277581215,
0.04857829958200455,
0.0418616384267807,
0.005519016645848751,
-0.01587672531604767,
0.03962966799736023,
-0.0023879685904830694,
-0.007956893183290958,
-0.0640992745757103,
0.06327971071004868,
0.004830634221434593,
0.00041563058039173484,
0.002388102700933814,
-0.012769202701747417,
-0.029888277873396873,
-0.030860470607876778,
-0.06092409789562225,
0.0010072640143334866,
0.02070310153067112,
0.030349325388669968,
0.029493635520339012,
-0.00834550242871046,
0.06679441779851913,
-0.03387032076716423,
0.01906546577811241,
-0.0030189896933734417,
-0.010656528174877167,
0.03140855208039284,
0.006173469126224518,
-0.02367723360657692,
-0.02416103705763817,
-0.03970234841108322,
0.0344916433095932,
-0.015095573849976063,
0.013219409622251987,
0.02652832306921482,
-0.011142582632601261,
0.029243072494864464,
0.0013063056394457817,
-0.012139741331338882,
0.04778338968753815,
0.039486903697252274,
0.03605083376169205,
0.011362318880856037,
-0.0011323062935844064,
-0.012396621517837048,
-0.046169303357601166,
-0.0002513592771720141,
0.009658669121563435,
0.05846446380019188,
0.03190496191382408,
0.04307042434811592,
0.019825201481580734,
0.04305193945765495,
0.04480907320976257,
-0.012334581464529037,
0.004337729886174202,
0.021733848378062248,
0.03130713105201721,
-0.03115808591246605,
0.020242955535650253,
0.020056258887052536,
0.010648703202605247,
-0.014707942493259907,
-0.015464910306036472,
0.0027986944187432528,
-0.05080331116914749,
0.04466104879975319,
0.029658429324626923,
0.015622219070792198,
-0.008573501370847225,
-0.02179545722901821,
0.04252969101071358,
0.022427013143897057,
0.05124889314174652,
0.013997429050505161,
-0.012818626128137112,
0.02254362776875496,
0.000245128117967397,
0.018201010301709175,
-0.004738900810480118,
-0.0042661987245082855,
0.013715630397200584,
0.017330465838313103,
0.006319096311926842,
0.019251510500907898,
-0.023145321756601334,
-0.014486580155789852,
0.0140908844769001,
-0.010815591551363468,
-0.022879935801029205,
0.012584892101585865,
0.014853389002382755,
0.007453305181115866,
0.007279314566403627,
-0.012045745737850666,
-0.05132158473134041,
-0.053801726549863815,
0.03453603759407997,
0.007419136818498373,
-0.01196056604385376,
-0.010960574261844158,
0.0026666552294045687,
0.03222666680812836,
0.024739176034927368,
0.013880175538361073,
-0.024097470566630363,
-0.03364234045147896,
0.008359364233911037,
0.042010772973299026,
-0.06757481396198273,
-0.03988082334399223,
-0.04249792546033859,
0.007989699952304363,
-0.020390979945659637,
0.015230897814035416,
-0.006602959241718054,
0.029548179358243942,
0.0232711099088192,
-0.011172187514603138,
-0.06324028223752975,
0.0222912784665823,
0.052470944821834564,
0.026286225765943527,
-0.008023757487535477,
0.010024022310972214,
-0.034563302993774414,
-0.01769157685339451,
-0.028125464916229248,
0.000228846023674123,
-0.0023616293910890818,
-0.030998926609754562,
0.015931440517306328,
0.009421730414032936,
0.013026166707277298,
-0.00791031401604414,
-0.00596551364287734,
0.015367737039923668,
-0.025666071102023125,
-0.011246724985539913,
0.031709667295217514,
0.01672975718975067,
-0.013281447812914848,
0.002319021848961711,
0.004420468118041754,
0.015219747088849545,
0.0158193651586771,
0.004285764414817095,
0.01743343658745289,
-0.007168333046138287,
-0.02034645341336727,
-0.04413141682744026,
0.01627439819276333,
0.0486580990254879,
0.038089971989393234,
0.032924018800258636,
0.08579394966363907,
-0.000132859218865633,
-0.06292878836393356,
0.014359275810420513,
0.011469673365354538,
0.0016436520963907242,
-0.04197674244642258,
-0.02948320470750332,
-0.040964484214782715,
-0.007867048494517803,
-0.04085908830165863,
-0.009773693047463894,
-0.016667062416672707,
0.014497559517621994,
-0.05025871843099594,
-0.0030953828245401382,
-0.03615427762269974,
0.03559934347867966,
0.04234807565808296,
-0.005360268987715244,
0.005584728438407183,
-0.012255651876330376,
-0.02666831575334072,
-0.03221253305673599,
-0.0376109778881073,
-0.023162901401519775,
0.05563793703913689,
-0.001508933026343584,
-0.01178678497672081,
-0.03941655158996582,
0.04683351889252663,
-0.043140966445207596,
-0.06273490935564041,
0.011650560423731804,
0.03398198261857033,
-0.017671942710876465,
-0.012241671793162823,
0.007991018705070019,
-0.02628784440457821,
0.02421645261347294,
0.014273835346102715,
0.01307848934084177,
-0.04773031547665596,
-0.02664319984614849,
-0.0036787388380616903,
-0.03543568029999733,
-0.011915871873497963,
0.009984659031033516,
0.01199394091963768,
0.024475736543536186,
0.019447406753897667,
0.015719883143901825,
-0.02360539138317108,
0.002940406324341893,
0.031157277524471283,
-0.021315786987543106,
-0.0475313775241375,
-0.02264566905796528,
-0.006316573359072208,
-0.051698021590709686,
-0.025844745337963104,
-0.07241297513246536,
0.026033395901322365,
0.0068236347287893295,
0.0005623989854939282,
-0.02439030632376671,
-0.004867782816290855,
-0.01705244369804859,
-0.0010682829888537526,
0.04568992555141449,
0.010413140058517456,
0.06702203303575516,
0.03470747545361519,
-0.023964790627360344,
0.002727962564677,
-0.016573021188378334
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | The Perceiver The Perceiver aims to solve this limitation by employing the self-attention mechanism on a set of latent variables, rather than on the inputs. The inputs (which could be text, image, audio, video) are only used for doing cross-attention with the latents. This has the advantage that the bulk of compute happens in a latent space, where compute is cheap (one typically uses 256 or 512 latents). The resulting architecture has no quadratic dependence on the input size: the Transformer encoder only depends linearly on the input size, while latent attention is independent of it. In a follow-up paper, called Perceiver IO, the authors extend this idea to let the Perceiver also handle arbitrary outputs. The idea is similar: one only uses the outputs for doing cross-attention with the latents. Note that I'll use the terms "Perceiver" and "Perceiver IO" interchangeably to refer to the Perceiver IO model throughout this blog post. In the following section, we look in a bit more detail at how Perceiver IO actually works by going over its implementation in HuggingFace Transformers, a popular library that initially implemented Transformer-based models for NLP, but is now starting to implement them for other domains as well. In the sections below, we explain in detail - in terms of shapes of tensors - how the Perceiver actually pre and post processes modalities of any kind. All Perceiver variants in HuggingFace Transformers are based on the PerceiverModel class. To initialize a PerceiverModel, one can provide 3 additional instances to the model: - a preprocessor - a decoder - a postprocessor. Note that each of these are optional. A preprocessor is only required in case one hasn't already embedded the inputs (such as text, image, audio, video) themselves. A decoder is only required in case one wants to decode the output of the Perceiver encoder (i.e. the last hidden states of the latents) into something more useful, such as classification logits or optical flow. A postprocessor is only required in case one wants to turn the output of the decoder into a specific feature (this is only required when doing auto-encoding, as we will see further). An overview of the architecture is depicted below. The Perceiver architecture. In other words, the inputs (which could be any modality, or a combination thereof) are first optionally preprocessed using a preprocessor. Next, the preprocessed inputs perform a cross-attention operation with the latent variables of the Perceiver encoder. In this operation, the latent variables produce queries (Q), while the preprocessed inputs produce keys and values (KV). After this operation, the Perceiver encoder employs a (repeatable) block of self-attention layers to update the embeddings of the latents. The encoder will finally produce a tensor of shape (batch_size, num_latents, d_latents), containing the last hidden states of the latents. Next, there's an optional decoder, which can be used to decode the final hidden states of the latents into something more useful, such as classification logits. This is done by performing a cross-attention operation, in which trainable embeddings are used to produce queries (Q), while the latents are used to produce keys and values (KV). Finally, there's an optional postprocessor, which can be used to postprocess the decoder outputs to specific features. Let's start off by showing how the Perceiver is implemented to work on text. | [
0.015288067050278187,
-0.06854359805583954,
0.040094587951898575,
-0.026874428614974022,
-0.016483185812830925,
0.09527412056922913,
0.05623950809240341,
0.06621800363063812,
-0.05375940725207329,
-0.04607095941901207,
-0.06350754201412201,
0.09452768415212631,
-0.01852588914334774,
0.1205088347196579,
0.013065751641988754,
0.006799058988690376,
0.05535908415913582,
0.006164290010929108,
0.013839229941368103,
0.0019820756278932095,
0.007873565889894962,
-0.05665555223822594,
-0.0039010087493807077,
-0.02194720320403576,
-0.019414464011788368,
-0.035883061587810516,
-0.029896019026637077,
0.023653477430343628,
-0.07545007020235062,
0.03610270097851753,
-0.08189252018928528,
0.01949462480843067,
-0.009203646332025528,
-0.051353346556425095,
-0.007980179972946644,
-0.02271401509642601,
-0.13205799460411072,
0.007175035309046507,
0.04539116099476814,
0.002322241896763444,
-0.015631932765245438,
0.013473862782120705,
-0.09710107743740082,
0.040294941514730453,
-0.023043274879455566,
-0.06223094463348389,
-0.16893306374549866,
0.08051729202270508,
-0.03070732392370701,
0.0205531045794487,
-0.08874517679214478,
0.0808149054646492,
-0.01567959226667881,
0.07418213039636612,
0.04495912417769432,
-0.01502121239900589,
0.03754061460494995,
-0.02580440789461136,
0.02831605263054371,
-0.01543631125241518,
0.05953715369105339,
-0.012126644141972065,
0.005531167145818472,
0.058691591024398804,
0.006904244888573885,
0.04388406127691269,
0.023023607209324837,
-0.020403407514095306,
-0.03583895042538643,
-0.059250395745038986,
0.010747980326414108,
-0.027908669784665108,
-0.04032173007726669,
-0.013221229426562786,
-0.057140689343214035,
-0.00041518130456097424,
0.03128477558493614,
0.04275454953312874,
0.0160441305488348,
0.04111950844526291,
0.025737661868333817,
0.028437377884984016,
0.0512344092130661,
0.05248992517590523,
0.007148467469960451,
0.029858754947781563,
-0.02026904933154583,
-0.039117228239774704,
-0.02934248186647892,
0.06169590726494789,
0.008521078154444695,
-0.15588505566120148,
0.05998344346880913,
0.013102851808071136,
0.09238408505916595,
0.026156984269618988,
-0.0020279039163142443,
0.009869434870779514,
0.010911156423389912,
0.01431836187839508,
0.005944105330854654,
-0.015448014251887798,
0.046963922679424286,
-0.08077453076839447,
-0.008124691434204578,
0.05134215205907822,
-0.07391983270645142,
-0.03007349744439125,
-0.06399750709533691,
0.026450172066688538,
0.028382858261466026,
0.026081690564751625,
0.018713824450969696,
0.031584154814481735,
-0.08208059519529343,
0.04374934360384941,
-0.01538207195699215,
0.046222638338804245,
0.01574203372001648,
0.023518865928053856,
-0.007581333629786968,
0.05293238162994385,
0.03704545274376869,
-0.008144606836140156,
0.00725115742534399,
-0.025408269837498665,
0.009228914976119995,
-0.03667775169014931,
-0.006778202019631863,
-0.04554629698395729,
0.04828835278749466,
-0.0782613605260849,
0.015181067399680614,
0.007019862532615662,
-0.040871914476156235,
-0.049162983894348145,
0.037818435579538345,
-0.09109114855527878,
-0.020737500861287117,
-0.0185433067381382,
0.01327329408377409,
0.001999363536015153,
0.06062920764088631,
0.011164926923811436,
0.019934553653001785,
-0.01797027327120304,
-0.10007268935441971,
0.09323171526193619,
0.013392717577517033,
0.030232155695557594,
-0.11096097528934479,
0.035391394048929214,
-0.0078915785998106,
-0.04103764146566391,
-0.006592054385691881,
0.012919685803353786,
0.005954619497060776,
0.0024561502505093813,
-0.04185168072581291,
0.022473707795143127,
-0.03212500736117363,
0.001148981275036931,
-0.0554964505136013,
0.04648933932185173,
0.022505104541778564,
-0.042504820972681046,
-0.0044987876899540424,
0.03244820237159729,
0.010509645566344261,
0.008681409060955048,
0.000795814034063369,
-0.011017391458153725,
0.04326537624001503,
-0.030567897483706474,
-0.012323683127760887,
0.033667974174022675,
0.026113372296094894,
0.12989243865013123,
-0.014505058526992798,
-0.01051002461463213,
0.003065445926040411,
0.017053790390491486,
-0.021978409960865974,
0.06289541721343994,
0.06905342638492584,
-0.05276310443878174,
0.02329523302614689,
-0.030441559851169586,
-0.031609419733285904,
-0.027777252718806267,
-0.04235007241368294,
-0.014516985043883324,
0.04369577392935753,
0.023752834647893906,
0.047732625156641006,
-0.07117412239313126,
-0.1143852025270462,
0.1027686819434166,
0.08964743465185165,
0.06848225742578506,
0.0730472207069397,
-0.030095797032117844,
0.037169069051742554,
0.005907374434173107,
0.006475110072642565,
-0.01546963769942522,
0.03705519810318947,
0.016853414475917816,
0.044963106513023376,
-0.017785292118787766,
-0.012233125045895576,
-0.06603780388832092,
-0.024321215227246284,
-0.06669339537620544,
-0.024070605635643005,
-0.02247435972094536,
0.03836187720298767,
0.0010108945425599813,
-0.025650130584836006,
-0.027747221291065216,
0.11414999514818192,
-0.03050711192190647,
0.011038817465305328,
0.012321670539677143,
-0.061320025473833084,
0.039882924407720566,
0.04799531027674675,
0.005158528685569763,
0.019052403047680855,
-0.058627430349588394,
0.0028980965726077557,
-0.0520884245634079,
-0.02387521229684353,
0.003633355489000678,
-0.024469571188092232,
-0.020481467247009277,
0.014644629321992397,
0.04750772565603256,
0.035504139959812164,
-0.04235507920384407,
-0.019110575318336487,
-0.014690449461340904,
-0.043547745794057846,
-0.038010284304618835,
-0.05714348331093788,
-0.016878241673111916,
0.02080489508807659,
0.02273857779800892,
-0.0412168875336647,
0.008830936625599861,
-0.09589096903800964,
0.09886502474546432,
0.007282005622982979,
-0.0749167799949646,
0.04629635810852051,
0.01815546303987503,
0.027859149500727654,
-0.015432406216859818,
-0.00018854950030799955,
0.002558221574872732,
0.000631332746706903,
0.0045938026160001755,
-0.014834936708211899,
-0.026817450299859047,
-0.03978188708424568,
-0.03372228145599365,
-0.007607616949826479,
0.04613818973302841,
0.02898537553846836,
0.03172626346349716,
-0.002098452067002654,
0.019393889233469963,
0.028075924143195152,
-0.024829572066664696,
0.033322714269161224,
0.02984965406358242,
0.04907304421067238,
-0.03255321830511093,
0.012504872865974903,
-0.03942102938890457,
-0.013813426718115807,
0.00010628780000843108,
0.06062125414609909,
0.0494486503303051,
0.0229088943451643,
-0.025463853031396866,
0.007466677576303482,
0.018038781359791756,
-0.015441603027284145,
0.00749660050496459,
0.05121168494224548,
0.02704407274723053,
0.013264055363833904,
-0.03348555043339729,
-0.013155086897313595,
0.012063169851899147,
0.044892434030771255,
-0.044777899980545044,
0.004593245685100555,
0.00730193592607975,
-0.04292849451303482,
0.017811663448810577,
0.007142488844692707,
-0.016665123403072357,
-0.022935347631573677,
0.02571546845138073,
0.005538674537092447,
0.05535972863435745,
-0.09585631638765335,
-0.0721362754702568,
0.0020417943596839905,
0.025638150051236153,
-0.006704790983349085,
-0.04976094141602516,
0.05416212975978851,
0.0045037525705993176,
-0.011652877554297447,
0.02675451897084713,
0.012316511943936348,
-0.027212010696530342,
0.02101241797208786,
-0.02881934866309166,
-0.016360830515623093,
0.005318379029631615,
0.006983715575188398,
0.002320968545973301,
0.04753316193819046,
-0.0013153753243386745,
0.00021264808310661465,
0.04597407951951027,
0.01146127562969923,
-0.018851570785045624,
-0.03494279831647873,
-0.01702210120856762,
0.012735194526612759,
-0.028735939413309097,
0.04169346019625664,
-0.0036582653410732746,
-0.046608299016952515,
-0.020445993170142174,
-0.029677968472242355,
0.03170164301991463,
-0.03347281739115715,
0.022756485268473625,
0.03944652900099754,
0.0033826595172286034,
0.024957505986094475,
0.03515489026904106,
0.020661592483520508,
0.0039627449586987495,
0.0264130886644125,
0.009152552112936974,
0.026328494772315025,
-0.019749751314520836,
-0.021272586658596992,
-0.016325995326042175,
0.013599894940853119,
-0.03883442282676697,
-0.027088893577456474,
-0.02393992803990841,
0.008573413826525211,
0.045210469514131546,
0.007889440283179283,
-0.00789977703243494,
-0.006810981314629316,
0.025576859712600708,
-0.025897059589624405,
-0.00551387807354331,
-0.05076631158590317,
0.020084863528609276,
-0.04095388576388359,
0.012280586175620556,
-0.004044605419039726,
0.046924278140068054,
0.01448295172303915,
0.009395022876560688,
-0.003991247154772282,
0.026597578078508377,
-0.024283723905682564,
0.033997464925050735,
0.00747331976890564,
0.00515454588457942,
-0.0319206640124321,
0.028605282306671143,
0.009427527897059917,
0.0145591851323843,
0.04185153543949127,
-0.0035117813386023045,
-0.040200550109148026,
-0.004873103462159634,
-0.03264160826802254,
0.010574535466730595,
0.015949539840221405,
0.02370130643248558,
0.029974227771162987,
0.006418181583285332,
0.0444035530090332,
0.019248750060796738,
0.004337053280323744,
-0.02872382663190365,
-0.014674208126962185,
-0.06299778074026108,
0.015052234753966331,
0.006339312996715307,
-0.035991959273815155,
-0.029037265107035637,
0.060665834695100784,
0.014861464500427246,
0.056481584906578064,
-0.062426693737506866,
-0.016407286748290062,
0.026873184368014336,
0.001508861081674695,
0.03320111706852913,
-0.0351366251707077,
-0.012272373773157597,
0.03053022362291813,
-0.03270294889807701,
0.05744094401597977,
-0.0004097899072803557,
-0.01974993385374546,
0.020340031012892723,
0.05747770890593529,
0.0035181245766580105,
-0.013771498575806618,
-0.01183033175766468,
-0.04324249550700188,
0.014282572083175182,
0.016758104786276817,
-0.010616485960781574,
-0.026592113077640533,
-0.02938883565366268,
0.03307412937283516,
0.022588398307561874,
0.019575579091906548,
0.01147837657481432,
-0.0346141941845417,
-0.006349930074065924,
-0.04671840742230415,
-0.02192448265850544,
0.008157698437571526,
0.03473994508385658,
0.051074810326099396,
-0.004676390904933214,
0.002377362921833992,
0.013763963244855404,
0.003928967285901308,
-0.01352638565003872,
-0.04002346098423004,
-0.03385348618030548,
0.05933992564678192,
-0.01716507412493229,
0.01462552696466446,
-0.000313463038764894,
-0.03627648949623108,
0.011439708061516285,
-0.057804979383945465,
0.03024016134440899,
0.03317660093307495,
-0.058322057127952576,
-0.025697872042655945,
0.05501743406057358,
0.05187385529279709,
-0.01698378473520279,
-0.0015777511289343238,
0.02448417618870735,
0.0021874005906283855,
0.042196087539196014,
-0.0017254608683288097,
0.019395610317587852,
-0.04635797441005707,
-0.02184123732149601,
0.020702872425317764,
0.014534098096191883,
-0.0348447784781456,
-0.042670685797929764,
0.05175551399588585,
-0.0035149790346622467,
-0.03479372337460518,
-0.007171783596277237,
0.038500141352415085,
-0.03855082765221596,
-0.022050555795431137,
0.0016517018666490912,
-0.0037176008336246014,
-0.007725391071289778,
-0.031099211424589157,
0.014162763953208923,
-0.016968442127108574,
-0.008000886999070644,
0.03205821290612221,
0.004178039263933897,
-0.009802552871406078,
-0.0036592723336070776,
0.0714130699634552,
0.052818264812231064,
0.016801897436380386,
0.020842671394348145,
0.03582695871591568,
-0.012805914506316185,
-0.01720522902905941,
-0.04056135192513466,
0.027241332456469536,
-0.026784829795360565,
0.015670722350478172,
0.050321370363235474,
0.0030719873029738665,
-0.016060372814536095,
0.026300938799977303,
0.031586840748786926,
-0.03805438056588173,
-0.0026587957981973886,
0.019050907343626022,
-0.000506290583871305,
0.0170533936470747,
-0.03519509360194206,
-0.0040579186752438545,
-0.006288466975092888,
0.010634982958436012,
-0.0135931596159935,
-0.04813066124916077,
-0.03101186454296112,
-0.009385665878653526,
-0.014383075758814812,
-0.03297368064522743,
0.03033047914505005,
0.027536893263459206,
0.037975527346134186,
-0.037785060703754425,
-0.023692268878221512,
-0.024398179724812508,
0.0009093516855500638,
0.020861297845840454,
-0.03192842751741409,
0.010658630169928074,
-0.009933741763234138,
-0.011858957819640636,
0.015784423798322678,
0.04496501758694649,
0.01631026528775692,
-0.015395240858197212,
0.01989026926457882,
-0.007212900556623936,
0.00875253789126873,
-0.025564976036548615,
0.06595563888549805,
0.002887133974581957,
-0.025784242898225784,
0.027879728004336357,
-0.015635957941412926,
-0.04782397672533989,
0.022343089804053307,
-0.016631819307804108,
0.018764372915029526,
0.015796396881341934,
0.01222225185483694,
-0.04070020839571953,
-0.015032468363642693,
0.034896235913038254,
-0.0037244351115077734,
0.020723721012473106,
0.005063120741397142,
-0.007231842260807753,
0.034941282123327255,
0.01816611737012863,
0.006865112576633692,
0.03628160431981087,
0.008150278590619564,
0.03488389402627945,
-0.06729722768068314,
-0.024803832173347473,
0.002273677382618189,
-0.024733521044254303,
0.01648363471031189,
-0.0022341799922287464,
-0.017083225771784782,
0.050570301711559296,
0.014467273838818073,
0.04930850863456726,
0.009261960163712502,
0.006123492494225502,
-0.01044306717813015,
-0.03626229241490364,
-0.0024957351852208376,
-0.0060111903585493565,
0.06080647185444832,
0.04049830883741379,
0.022193564102053642,
0.03064909391105175,
0.037581201642751694,
0.07346006482839584,
-0.004284339491277933,
0.018552470952272415,
-0.0013565096305683255,
0.06249915808439255,
-0.000003954597559641115,
0.012332942336797714,
-0.004377750214189291,
-0.015733417123556137,
-0.014343989081680775,
0.004823617171496153,
-0.011363891884684563,
-0.03211073949933052,
0.015037639997899532,
0.02399175614118576,
-0.0066896951757371426,
0.022605933248996735,
-0.0404537059366703,
0.055619630962610245,
0.03391300141811371,
0.054754987359046936,
0.03523018956184387,
-0.024357950314879417,
0.033612485975027084,
0.012700622901320457,
0.03322683274745941,
-0.012560834176838398,
-0.01048128493130207,
-0.01320762000977993,
0.0297860037535429,
0.02125192992389202,
0.023643238469958305,
-0.0009779036045074463,
-0.0429406464099884,
-0.004051510710269213,
-0.001974903279915452,
-0.0306404996663332,
-0.026244062930345535,
-0.015453118830919266,
-0.02895720861852169,
-0.005969431716948748,
0.008889783173799515,
-0.04702089726924896,
0.004232460632920265,
0.023325137794017792,
-0.019005093723535538,
-0.005159731488674879,
0.002227766439318657,
0.01288260705769062,
0.05944524332880974,
0.026629768311977386,
-0.005786221008747816,
-0.006590311881154776,
-0.015000222250819206,
0.0015097459545359015,
0.02434120886027813,
-0.03829174488782883,
-0.06563536822795868,
-0.03766566514968872,
-0.015286536887288094,
-0.02304323948919773,
0.04348594695329666,
-0.020372888073325157,
-0.001418564235791564,
0.061646442860364914,
0.003959020134061575,
-0.021514786407351494,
-0.004720845725387335,
0.021993916481733322,
0.012769314460456371,
-0.020738378167152405,
-0.0034352545626461506,
-0.016982752829790115,
-0.007268847431987524,
-0.020339855924248695,
-0.013127665966749191,
0.022478096187114716,
-0.03230375424027443,
0.03903854265809059,
0.0034374999813735485,
0.050429653376340866,
-0.03515490144491196,
-0.021117953583598137,
-0.010103492997586727,
-0.02285871095955372,
0.0243220217525959,
0.06528300046920776,
0.017769204452633858,
-0.038230087608098984,
0.015411501750349998,
-0.025690115988254547,
-0.0066170282661914825,
-0.006058454513549805,
0.0019808730576187372,
0.03958871215581894,
0.00034578333725221455,
-0.06707233190536499,
-0.01001648511737585,
0.03604802116751671,
-0.0011286098742857575,
0.02790745720267296,
0.04430849477648735,
0.057294946163892746,
0.016806360334157944,
-0.01998792216181755,
0.023417560383677483,
-0.020639104768633842,
-0.017211755737662315,
-0.042743317782878876,
-0.05758373439311981,
-0.015523703768849373,
0.028419995680451393,
-0.016821185126900673,
0.027367761358618736,
-0.01413172110915184,
-0.01196768507361412,
-0.06343197077512741,
0.008117834106087685,
-0.021663431078195572,
0.0037353793159127235,
0.04987403750419617,
0.0017553658690303564,
0.014218424446880817,
0.013040163554251194,
-0.05782948434352875,
-0.009309469722211361,
-0.0021641277708113194,
-0.018944917246699333,
0.09326181560754776,
-0.013615122996270657,
-0.005971851292997599,
-0.012482414953410625,
-0.004213010426610708,
-0.006485563237220049,
-0.026586823165416718,
0.02280052751302719,
0.028735773637890816,
-0.04562963545322418,
0.03351033851504326,
0.031205222010612488,
-0.019345412030816078,
0.04283570125699043,
0.02780255489051342,
0.0015549572417512536,
-0.04062846675515175,
-0.007106764242053032,
-0.0011426308192312717,
-0.03336294740438461,
-0.01719387248158455,
0.02735443226993084,
0.032755251973867416,
0.04070474952459335,
0.014170820824801922,
0.008768517524003983,
-0.022031037136912346,
0.009840363636612892,
-0.019795265048742294,
-0.040571317076683044,
-0.04304705560207367,
-0.01692485436797142,
-0.007230662740767002,
-0.008333110250532627,
-0.02470216527581215,
-0.058204326778650284,
0.009261390194296837,
-0.007046676706522703,
-0.004267826210707426,
-0.035539839416742325,
-0.038226764649152756,
-0.020763782784342766,
-0.011836357414722443,
0.029569627717137337,
-0.004998243413865566,
0.058872632682323456,
0.029894206672906876,
0.0434320792555809,
-0.035606954246759415,
-0.010242694057524204
] |
Perceiver IO: a scalable, fully-attentional model that works on any modality | nielsr | December 15, 2021 | perceiver | research, guide, nlp, audio, cv | https://huggingface.co/blog/perceiver | Other applications of the Perceiver Note that there are no limits on the applications of the Perceiver! In the original Perceiver paper, the authors showed that the architecture can be used to process 3D point clouds – a common concern for self-driving cars equipped with Lidar sensors. They trained the model on ModelNet40, a dataset of point clouds derived from 3D triangular meshes spanning 40 object categories. The model was shown to achieve a top-1 accuracy of 85.7 % on the test set, competing with PointNet++, a highly specialized model that uses extra geometric features and performs more advanced augmentations. The authors also used the Perceiver to replace the original Transformer in AlphaStar, the state-of-the-art reinforcement learning system for the complex game of StarCraft II. Without tuning any additional parameters, the authors observed that the resulting agent reached the same level of performance as the original AlphaStar agent, reaching an 87% win-rate versus the Elite bot after behavioral cloning on human data. It is important to note that the models currently implemented (such as PerceiverForImageClassificationLearned, PerceiverForOpticalFlow) are just examples of what you can do with the Perceiver. Each of these are different instances of PerceiverModel, just with a different preprocessor and/or decoder (and optionally, a postprocessor as is the case for multimodal autoencoding). People can come up with new preprocessors, decoders and postprocessors to make the model solve different problems. For instance, one could extend the Perceiver to perform named-entity recognition (NER) or question-answering similar to BERT, audio classification similar to Wav2Vec2 or object detection similar to DETR. | [
0.02999211475253105,
-0.006798090413212776,
0.002178940922021866,
-0.030068790540099144,
0.003891915315762162,
0.11113464832305908,
0.05927073210477829,
0.07578923553228378,
-0.06081370264291763,
-0.06364138424396515,
-0.0435708612203598,
0.02561274543404579,
0.0031622932292521,
0.06633297353982925,
0.041019368916749954,
-0.03363330662250519,
0.009876786731183529,
0.02941191755235195,
0.016031557694077492,
-0.008263117633759975,
-0.044799018651247025,
-0.10860907286405563,
0.015716634690761566,
-0.01999579556286335,
-0.04297622665762901,
0.0017586612375453115,
-0.046534765511751175,
0.05438718944787979,
-0.08829718083143234,
0.0684712752699852,
-0.09450037032365799,
0.061699215322732925,
-0.006209612358361483,
-0.04494651034474373,
-0.032948486506938934,
-0.01169106550514698,
-0.11243649572134018,
0.025505928322672844,
-0.010064182803034782,
-0.10500369220972061,
-0.039516277611255646,
0.04083842411637306,
-0.004656018223613501,
0.07614241540431976,
0.001273845904506743,
-0.006738268304616213,
-0.07901863008737564,
0.03934137150645256,
-0.021069735288619995,
-0.02529965341091156,
-0.05285610631108284,
0.09190806746482849,
-0.007656322326511145,
0.024172717705368996,
0.05045801028609276,
0.012791376560926437,
0.04763227328658104,
-0.04529708996415138,
0.030405405908823013,
0.005754470359534025,
0.014303036965429783,
-0.017093278467655182,
0.05505666509270668,
0.012367019429802895,
-0.0033784951083362103,
-0.003232531249523163,
0.01498277299106121,
-0.01922382041811943,
-0.0716332197189331,
-0.004476352594792843,
-0.029928751289844513,
-0.04615961015224457,
-0.06295987963676453,
0.022047579288482666,
-0.062687449157238,
-0.007046790793538094,
0.015998240560293198,
0.04658835008740425,
-0.03600531071424484,
-0.04523467645049095,
0.00025709718465805054,
-0.010184762068092823,
0.05624312907457352,
-0.03046487271785736,
0.00663185166195035,
0.05933185666799545,
-0.019538236781954765,
-0.027389390394091606,
-0.019366635009646416,
0.03955460712313652,
-0.00036182996700517833,
-0.08275113999843597,
0.03773200884461403,
0.024865755811333656,
0.08484898507595062,
0.026381421834230423,
-0.03225471451878548,
-0.02011706307530403,
0.025439269840717316,
-0.01838456466794014,
-0.008129032328724861,
-0.02544734999537468,
0.04203451797366142,
-0.06332191824913025,
-0.010430817492306232,
0.07521235942840576,
-0.0008687524823471904,
-0.042241375893354416,
-0.08619347214698792,
0.06252428889274597,
0.022434361279010773,
0.025575866922736168,
0.01038407627493143,
0.057268355041742325,
-0.12117815017700195,
0.03643517941236496,
0.04839767515659332,
0.03361143916845322,
0.042050670832395554,
0.013806692324578762,
0.03012281097471714,
0.027423126623034477,
-0.0201568603515625,
-0.01196217630058527,
0.0036172536201775074,
0.03482470661401749,
0.04853464290499687,
-0.027294207364320755,
-0.06580071896314621,
-0.01157679408788681,
0.04745214805006981,
-0.004482180345803499,
0.028871094807982445,
0.061562083661556244,
0.02213001810014248,
-0.018614867702126503,
-0.00959821604192257,
-0.06964129954576492,
-0.012498927302658558,
0.022293569520115852,
-0.048919614404439926,
-0.0015512807294726372,
0.07244819402694702,
0.0272134430706501,
0.010193743743002415,
-0.02982444502413273,
-0.05244123563170433,
0.07758958637714386,
0.006828433834016323,
0.008560111746191978,
-0.09621784836053848,
0.06301723420619965,
0.02345508709549904,
-0.07219353318214417,
0.03875552490353584,
0.04125325009226799,
-0.051516760140657425,
0.02224365994334221,
-0.01609782502055168,
0.03565330058336258,
-0.030365927144885063,
-0.011494978331029415,
-0.06206650286912918,
0.08654224127531052,
-0.04213285073637962,
-0.04953528568148613,
-0.013299122452735901,
-0.013683424331247807,
0.030749335885047913,
0.042987022548913956,
-0.020141297951340675,
-0.04380077123641968,
0.02012944594025612,
-0.015397154726088047,
0.0029749616514891386,
0.031248217448592186,
0.05728431046009064,
0.06593465805053711,
0.0481564961373806,
-0.03812915459275246,
0.014230027794837952,
0.05082082003355026,
-0.08790236711502075,
0.034158818423748016,
0.06660435348749161,
-0.03845657408237457,
0.05464698746800423,
-0.03252536803483963,
0.06107146665453911,
-0.021930953487753868,
-0.05535401031374931,
-0.019202709197998047,
0.04818663001060486,
0.02185489609837532,
0.04434826225042343,
-0.0024115433916449547,
-0.09398940950632095,
0.11102485656738281,
0.07623414695262909,
-0.01718984544277191,
0.10562609136104584,
-0.04057569429278374,
0.035091910511255264,
0.014023187570273876,
-0.0042502544820308685,
0.015796858817338943,
0.0875852182507515,
0.014657896012067795,
-0.008174970746040344,
-0.03747119754552841,
0.011580461636185646,
-0.047326937317848206,
-0.07193229347467422,
-0.028869807720184326,
0.014424214139580727,
-0.00671116728335619,
0.010668600909411907,
0.05269859731197357,
-0.0275855865329504,
-0.051006294786930084,
0.09226647764444351,
-0.04287685826420784,
-0.028813660144805908,
0.029760388657450676,
-0.04503779113292694,
0.05178998038172722,
0.07544533908367157,
-0.007975363172590733,
-0.01955459825694561,
-0.001302570104598999,
-0.039018675684928894,
-0.02782030776143074,
0.017968978732824326,
-0.0333237498998642,
-0.02240644581615925,
0.03541488200426102,
0.06427174806594849,
0.042824842035770416,
0.022633548825979233,
-0.005117942113429308,
-0.046926699578762054,
-0.04043598473072052,
-0.014599007554352283,
0.06659262627363205,
-0.06033455207943916,
0.003949022386223078,
0.027323927730321884,
0.04611435905098915,
0.0071205394342541695,
-0.010779542848467827,
-0.12536878883838654,
0.05678975209593773,
0.007347614970058203,
-0.051796264946460724,
0.051083460450172424,
0.07474540174007416,
0.01418027188628912,
-0.006909968797117472,
-0.015749458223581314,
0.0264472346752882,
-0.03465207293629646,
0.001232985989190638,
-0.04560532420873642,
-0.014938607811927795,
-0.007062705233693123,
-0.05433153733611107,
-0.0012101306347176433,
0.035774633288383484,
0.005148282740265131,
0.02449013479053974,
0.013865960761904716,
-0.014970810152590275,
0.04050839692354202,
-0.03729762136936188,
0.050656549632549286,
0.006288052536547184,
0.03246934711933136,
-0.0276421420276165,
0.00034899511956609786,
-0.019571274518966675,
-0.03176463395357132,
-0.00707821873947978,
0.06003358215093613,
0.036583613604307175,
0.025713691487908363,
-0.014673816040158272,
0.04568028077483177,
-0.031506042927503586,
-0.007974507287144661,
0.0013725260505452752,
0.05206933990120888,
0.03273020684719086,
-0.007326383609324694,
-0.0025360502768307924,
-0.012124459259212017,
-0.00751764141023159,
0.06284639239311218,
-0.04536673054099083,
0.012598395347595215,
0.011606136336922646,
-0.04463315010070801,
0.02047131583094597,
-0.03128731623291969,
-0.018640104681253433,
-0.02418762631714344,
0.05971325561404228,
0.0024624262005090714,
0.041961293667554855,
-0.08224372565746307,
-0.060353703796863556,
0.024294095113873482,
-0.0010059247724711895,
-0.016164379194378853,
-0.02386525645852089,
0.036146342754364014,
0.004097576253116131,
-0.005746691487729549,
0.004086157772690058,
-0.010042287409305573,
-0.048879340291023254,
0.0522041954100132,
-0.009852238930761814,
-0.03520892933011055,
0.044293973594903946,
-0.016520757228136063,
-0.020036447793245316,
0.03759756684303284,
-0.0052253371104598045,
-0.02388009987771511,
0.04843607172369957,
-0.01598069630563259,
-0.015140543691813946,
-0.028502430766820908,
0.015286782756447792,
0.0045776073820889,
-0.04261927306652069,
0.04277826100587845,
-0.028691759333014488,
-0.026805752888321877,
-0.006377712823450565,
-0.028099073097109795,
0.006611720193177462,
-0.03722238540649414,
0.012265806086361408,
0.0011096351081505418,
0.032159820199012756,
0.043041523545980453,
0.0021759632509201765,
0.003645148826763034,
-0.028095049783587456,
0.04766307398676872,
0.0203056912869215,
-0.0166326854377985,
-0.000791271566413343,
0.010810102336108685,
0.006980126723647118,
-0.01331698801368475,
-0.022593846544623375,
-0.021914593875408173,
-0.027938492596149445,
-0.005741033237427473,
0.05480886623263359,
-0.007089355960488319,
-0.03352058678865433,
-0.00019103426893707365,
0.044767726212739944,
-0.023548422381281853,
-0.02571885660290718,
-0.02051958255469799,
0.03077683039009571,
-0.00904926285147667,
-0.018856486305594444,
-0.010844258591532707,
0.0014010332524776459,
0.014247098006308079,
-0.007735110819339752,
-0.019351718947291374,
-0.004213474225252867,
-0.01660730689764023,
0.053972575813531876,
0.0030608871020376682,
0.007204575464129448,
-0.004511298146098852,
0.019558846950531006,
0.00517825223505497,
0.01764756441116333,
0.028278138488531113,
0.011590776033699512,
-0.019909849390387535,
-0.03575318306684494,
-0.008067327551543713,
-0.02877374365925789,
0.032105010002851486,
-0.015553132630884647,
0.03756456822156906,
0.008310765027999878,
-0.00022001063916832209,
-0.012061101384460926,
0.008369837887585163,
-0.026999033987522125,
0.006043491419404745,
-0.008696716278791428,
0.025061432272195816,
0.048277709633111954,
-0.03534066304564476,
-0.00845970120280981,
0.006892997771501541,
-0.00012285735283512622,
0.016798334196209908,
-0.04626388102769852,
-0.006233179941773415,
0.010138839483261108,
0.0009813079377636313,
0.007864895276725292,
-0.021524062380194664,
0.004869169555604458,
0.03745145723223686,
-0.03414269909262657,
0.023962469771504402,
0.02319852076470852,
-0.002348249312490225,
0.016725951805710793,
0.057449713349342346,
-0.010653826408088207,
0.019298924133181572,
0.029628034681081772,
-0.0343937985599041,
0.021528761833906174,
-0.01630169339478016,
-0.02591732144355774,
-0.026492789387702942,
0.001954602310433984,
0.03145210072398186,
0.047207240015268326,
0.021540114656090736,
0.022429754957556725,
-0.026723764836788177,
0.008209877647459507,
-0.023499637842178345,
-0.004145897924900055,
0.007055931258946657,
0.02102690190076828,
0.05530808866024017,
-0.00867284182459116,
0.04337030649185181,
0.030581405386328697,
-0.003303762059658766,
-0.013571685180068016,
0.00038678053533658385,
0.012449669651687145,
0.03595425933599472,
0.008778395131230354,
0.0116179920732975,
-0.03481306508183479,
0.01145301852375269,
-0.026179177686572075,
-0.003071080893278122,
0.054542578756809235,
0.018379829823970795,
-0.03315611928701401,
-0.022551825270056725,
-0.013518990948796272,
0.055579449981451035,
-0.07215984165668488,
0.019421309232711792,
0.05717559903860092,
0.006117719691246748,
0.05814654007554054,
0.07599519193172455,
-0.009077486582100391,
-0.058678075671195984,
0.01282179169356823,
0.01296759583055973,
0.028422703966498375,
0.004628776106983423,
-0.04397075995802879,
0.042878467589616776,
0.0025252560153603554,
0.01642061024904251,
-0.0013848808594048023,
0.0013337390264496207,
-0.00962637085467577,
0.004934765864163637,
0.024839626625180244,
0.011384762823581696,
-0.0075219073332846165,
-0.047213826328516006,
-0.013360927812755108,
-0.03076440840959549,
0.04114720970392227,
-0.001403886592015624,
-0.002232443541288376,
-0.009006123058497906,
-0.006933700293302536,
0.06575542688369751,
0.028259269893169403,
0.05753403156995773,
-0.02917117066681385,
0.024247238412499428,
-0.018140919506549835,
-0.026245739310979843,
-0.03266514465212822,
0.03541598841547966,
0.014293361455202103,
0.0030875406228005886,
0.03613028675317764,
-0.003982870373874903,
-0.006253010593354702,
-0.042744651436805725,
-0.027869848534464836,
-0.0006995960720814764,
-0.027782168239355087,
-0.01255689188838005,
-0.010411913506686687,
0.03198642656207085,
-0.013562589883804321,
0.03011901117861271,
-0.00633609713986516,
-0.01740240305662155,
-0.008519108407199383,
-0.04425230994820595,
0.0000022225233351491624,
-0.007375027053058147,
-0.022799793630838394,
-0.02541218139231205,
0.06903228163719177,
0.02441585063934326,
0.034388020634651184,
-0.0060117533430457115,
-0.04339110106229782,
0.009627817198634148,
0.0043107252568006516,
0.01691720262169838,
-0.05153829976916313,
0.024717776104807854,
-0.04774509742856026,
-0.030765218660235405,
0.009775717742741108,
0.038113050162792206,
0.022802768275141716,
-0.008534657768905163,
0.016290992498397827,
-0.025323305279016495,
-0.036967165768146515,
-0.012468821369111538,
0.08335477858781815,
-0.021214403212070465,
-0.044617392122745514,
0.00499940849840641,
-0.0371108204126358,
-0.0004679120029322803,
-0.01209515891969204,
-0.02718464843928814,
0.02367977984249592,
-0.0031801608856767416,
0.043533824384212494,
-0.019864875823259354,
0.013647339306771755,
0.052008047699928284,
0.001581865712068975,
-0.024034099653363228,
-0.03789321705698967,
-0.0037607753183692694,
0.050349052995443344,
0.021226607263088226,
0.01094096526503563,
0.04977888613939285,
0.011652646586298943,
0.013960449025034904,
-0.061343975365161896,
-0.01947864331305027,
0.01766139082610607,
-0.05565226823091507,
-0.006141184363514185,
0.007105033844709396,
0.016574539244174957,
0.025084728375077248,
-0.011148015037178993,
0.028835775330662727,
0.030346747487783432,
-0.0005237514851614833,
0.03538024425506592,
0.0015461648581549525,
0.004397823940962553,
0.009936638176441193,
0.06284265965223312,
0.024659648537635803,
0.010508088394999504,
-0.0026930151507258415,
0.04116848111152649,
0.0537712536752224,
-0.014463277533650398,
0.001983784371986985,
0.026277726516127586,
0.04249599575996399,
-0.0167755875736475,
0.0315733402967453,
0.007386566139757633,
-0.010129271075129509,
-0.02351810224354267,
-0.03842596709728241,
-0.012788080610334873,
-0.061087481677532196,
-0.01237583626061678,
0.005070964805781841,
0.0026296197902411222,
0.008514064364135265,
-0.062436316162347794,
0.008885061368346214,
0.028964953497052193,
0.0727418065071106,
0.01801137439906597,
-0.0018228142289444804,
0.029292726889252663,
0.06575743854045868,
0.043861277401447296,
-0.04500354826450348,
0.018147282302379608,
0.01805610954761505,
-0.02653997205197811,
0.004737379495054483,
0.04247660934925079,
0.0068277884274721146,
-0.0037323632277548313,
-0.0019595480989664793,
-0.014448631554841995,
-0.008098570629954338,
0.008177965879440308,
-0.05012354999780655,
-0.018296485766768456,
-0.018258173018693924,
-0.006223559379577637,
-0.0744430273771286,
-0.003441473236307502,
0.01589503139257431,
-0.047738224267959595,
0.036386243999004364,
0.006247416138648987,
-0.0020789962727576494,
0.019196471199393272,
0.04183506965637207,
-0.028734920546412468,
0.025385316461324692,
-0.027363654226064682,
-0.026247834786772728,
0.02195904403924942,
-0.026077715680003166,
-0.04132857173681259,
-0.0576903373003006,
-0.0009804301662370563,
0.029200628399848938,
-0.011295871809124947,
0.0024778239894658327,
0.04434433579444885,
0.026377607136964798,
0.019064873456954956,
-0.013997879810631275,
-0.014858676120638847,
-0.02883673645555973,
0.01073981449007988,
-0.013396450318396091,
0.007642623968422413,
-0.04032129421830177,
-0.04934025928378105,
-0.0401703380048275,
-0.01732134446501732,
-0.0015639401972293854,
-0.02204691246151924,
0.01228746585547924,
0.009269299916923046,
0.12246332317590714,
-0.022036435082554817,
-0.0032823095098137856,
-0.00931624136865139,
-0.011548656038939953,
-0.017886627465486526,
0.032593678683042526,
0.040806446224451065,
-0.018757449463009834,
-0.0014560703421011567,
-0.0392899364233017,
0.00833106879144907,
0.0165189728140831,
-0.024242328479886055,
0.013582630082964897,
0.002875793259590864,
-0.07090608775615692,
-0.014596760272979736,
-0.005440056789666414,
-0.006047647912055254,
0.025815170258283615,
0.012849663384258747,
0.029658548533916473,
-0.002632802352309227,
-0.049996912479400635,
0.00932385865598917,
-0.022614769637584686,
-0.051409244537353516,
-0.0027795627247542143,
-0.06818188726902008,
-0.0048675937578082085,
0.007915157824754715,
-0.04032309353351593,
0.04487976059317589,
-0.012485603801906109,
0.012003879994153976,
-0.06682521849870682,
-0.010240365751087666,
-0.05288790538907051,
0.027976037934422493,
0.03920992836356163,
0.02482859417796135,
-0.019375333562493324,
-0.043204497545957565,
-0.03229901194572449,
0.0014307746896520257,
-0.04626422002911568,
-0.0334588959813118,
0.008097339421510696,
-0.013630916364490986,
-0.016919154673814774,
-0.012000326998531818,
0.004399875644594431,
-0.0023778120521456003,
-0.028654014691710472,
-0.0016168372239917517,
0.030490586534142494,
-0.036462608724832535,
0.005301416851580143,
0.02836485207080841,
-0.00855040829628706,
-0.031452201306819916,
-0.008454675786197186,
0.008473575115203857,
-0.03513776883482933,
-0.029789334163069725,
-0.01488545723259449,
-0.06046508252620697,
-0.006166995503008366,
0.0165653508156538,
-0.010617397725582123,
0.05542648956179619,
-0.0077332668006420135,
0.015405382961034775,
0.015924766659736633,
-0.04114670306444168,
0.05265074968338013,
-0.06265559047460556,
-0.029635393992066383,
0.015657735988497734,
-0.009554607793688774,
-0.016786595806479454,
-0.0016211079200729728,
-0.04760025069117546,
0.047440964728593826,
0.015561014413833618,
0.029692888259887695,
-0.022450575605034828,
0.025708308443427086,
0.014800858683884144,
0.005634563975036144,
0.024127982556819916,
0.013489450328052044,
0.08027438074350357,
0.03191334009170532,
0.019504984840750694,
-0.01941649243235588,
-0.02327590435743332
] |
Gradio joins Hugging Face! | abidlabs | December 21, 2021 | gradio-joins-hf | community, open-source-collab | https://huggingface.co/blog/gradio-joins-hf | # Gradio is joining Hugging Face! Gradio is joining Hugging Face! By acquiring Gradio, a machine learning startup, Hugging Face will be able to offer users, developers, and data scientists the tools needed to get to high level results and create better models and tools... Hmm, paragraphs about acquisitions like the one above are so common that an algorithm could write them. In fact, one did!! This first paragraph was written with the Acquisition Post Generator, a machine learning demo on Hugging Face Spaces. You can run it yourself in your browser: provide the names of any two companies and you'll get a reasonable-sounding start to an article announcing their acquisition! The Acquisition Post Generator was built using our open-source Gradio library -- it is just one of our recent collaborations with Hugging Face. And I'm excited to announce that these collaborations are culminating in... 🥁 Hugging Face's acquisition of Gradio (so yes, that first paragraph might have been written by an algorithm but it's true!) As one of the founders of Gradio, I couldn't be more excited about the next step in our journey. I still remember clearly how we started in 2019: as a PhD student at Stanford, I struggled to share a medical computer vision model with one of my collaborators, who was a doctor. I needed him to test my machine learning model, but he didn't know Python and couldn't easily run the model on his own images. I envisioned a tool that could make it super simple for machine learning engineers to build and share demos of computer vision models, which in turn would lead to better feedback and more reliable models 🔁 I recruited my talented housemates Ali Abdalla, Ali Abid, and Dawood Khan to release the first version of Gradio in 2019. We steadily expanded to cover more areas of machine learning including text, speech, and video. We found that it wasn't just researchers who needed to share machine learning models: interdisciplinary teams in industry, from startups to public companies, were building models and needed to debug them internally or showcase them externally. Gradio could help with both. Since we first released the library, more than 300,000 demos have been built with Gradio. We couldn't have done this without our community of contributors, our supportive investors, and the amazing Ahsen Khaliq who joined our company this year. Demos and GUIs built with Gradio give the power of machine learning to more and more people because they allow non-technical users to access, use, and give feedback on models. And our acquisition by Hugging Face is the next step in this ongoing journey of accessibility. Hugging Face has already radically democratized machine learning so that any software engineer can use state-of-the-art models with a few lines of code. By working together with Hugging Face, we're taking this even further so that machine learning is accessible to literally anyone with an internet connection and a browser. With Hugging Face, we are going to keep growing Gradio and make it the best way to share your machine learning model with anyone, anywhere 🚀 In addition to the shared mission of Gradio and Hugging Face, what delights me is the team that we are joining. Hugging Face's remarkable culture of openness and innovation is well-known. Over the past few months, I've gotten to know the founders as well: they are wonderful people who genuinely care about every single person at Hugging Face and are willing to go to bat for them. On behalf of the entire Gradio team, we couldn't be more thrilled to be working with them to build the future of machine learning 🤗 Also: we are hiring!! ❤️ | [
-0.029897965490818024,
-0.03586924448609352,
0.019693290814757347,
-0.015482931397855282,
0.012950142845511436,
0.08018017560243607,
0.03652250021696091,
0.041875939816236496,
-0.06730937957763672,
-0.034383147954940796,
-0.1055113673210144,
0.063212089240551,
-0.016803493723273277,
0.10693364590406418,
0.05081288889050484,
-0.0767132118344307,
0.09075223654508591,
-0.045654296875,
-0.04374159500002861,
0.055657144635915756,
0.0021036129910498857,
-0.03659320995211601,
0.011170690879225731,
0.011020557954907417,
-0.026853017508983612,
-0.04749508574604988,
0.011504980735480785,
-0.025742270052433014,
0.025543348863720894,
0.02849472500383854,
-0.048600926995277405,
-0.019872499629855156,
0.019692586734890938,
-0.050332535058259964,
0.018779627978801727,
0.05231577530503273,
-0.10394292324781418,
0.0719042643904686,
0.053354375064373016,
-0.01283150166273117,
0.048806581646203995,
-0.004699522629380226,
-0.10126584768295288,
0.0444437600672245,
-0.041137486696243286,
-0.02775181643664837,
-0.15829138457775116,
0.004082170780748129,
-0.0024557935539633036,
-0.005198764614760876,
-0.04188745468854904,
0.035403382033109665,
-0.06826294213533401,
-0.0495452806353569,
-0.08625893294811249,
-0.009498413652181625,
0.08966324478387833,
-0.04773087054491043,
0.001042459742166102,
-0.009744563139975071,
0.011016660369932652,
0.008993173018097878,
0.01006025355309248,
0.0030442983843386173,
-0.02136159874498844,
0.04935900494456291,
-0.011047829873859882,
-0.022602098062634468,
-0.0727776363492012,
-0.005391957238316536,
0.04803884029388428,
0.016112621873617172,
-0.0682230070233345,
-0.044170014560222626,
0.03861670941114426,
0.02868845872581005,
-0.03050670027732849,
0.023934686556458473,
0.07226681709289551,
0.004209788516163826,
0.022812357172369957,
-0.025725992396473885,
0.08259434252977371,
0.015019670128822327,
0.030624041333794594,
0.05390193685889244,
-0.0254707932472229,
-0.06484697759151459,
-0.04085056483745575,
0.06329613924026489,
-0.05281725153326988,
-0.11146555095911026,
-0.045496296137571335,
0.0037725672591477633,
0.11161676049232483,
-0.004882262088358402,
-0.018116947263479233,
-0.0016052152495831251,
0.018137622624635696,
-0.06172451376914978,
-0.027036897838115692,
-0.08016177266836166,
-0.03502100706100464,
-0.08195538073778152,
0.005044932477176189,
-0.009864418767392635,
-0.04689643904566765,
-0.028668949380517006,
-0.02510320022702217,
0.05211859568953514,
0.0037048838566988707,
0.02433270588517189,
0.0210894662886858,
0.02516908012330532,
-0.08211322873830795,
0.08518083393573761,
0.005589314270764589,
-0.021570270881056786,
0.004337366204708815,
-0.029817884787917137,
-0.02650938741862774,
0.015896350145339966,
0.01324064563959837,
0.04398294910788536,
-0.012604265473783016,
0.08962035924196243,
-0.05905485898256302,
-0.00467717694118619,
0.0887453705072403,
-0.002281548222526908,
-0.02335946634411812,
0.026163609698414803,
0.026706209406256676,
-0.020792808383703232,
0.01559918001294136,
-0.09614976495504379,
0.03025023639202118,
-0.042126547545194626,
0.04677710682153702,
-0.022489430382847786,
0.017072098329663277,
0.08075278997421265,
-0.04003004729747772,
-0.001678598579019308,
0.05588468164205551,
-0.0343356654047966,
-0.00568607309833169,
0.07067587971687317,
-0.032620105892419815,
0.006840250920504332,
-0.09423461556434631,
0.032033659517765045,
-0.10396763682365417,
-0.020840568467974663,
0.006260203663259745,
0.033015232533216476,
0.0018233982846140862,
0.013998845592141151,
0.042077887803316116,
0.005907027516514063,
0.0318199060857296,
-0.021548232063651085,
-0.04795527085661888,
-0.025980932638049126,
0.0684845820069313,
0.045342475175857544,
0.029457828029990196,
0.05594205483794212,
-0.021555978804826736,
0.019130317494273186,
-0.028433645144104958,
-0.05896923318505287,
0.005407131277024746,
-0.01725485548377037,
-0.014122193679213524,
0.10713928192853928,
0.03576718643307686,
0.0021746251732110977,
0.003239344572648406,
0.06207699701189995,
-0.06937716156244278,
0.02519284188747406,
-0.014817303977906704,
0.005264973733574152,
0.05856055021286011,
-0.038465939462184906,
-0.008530828170478344,
-0.02779408171772957,
0.06900179386138916,
0.0063325888477265835,
-0.002865432295948267,
0.05033595487475395,
0.029874654486775398,
-0.06467166543006897,
0.05756866931915283,
-0.02192186377942562,
-0.008585895411670208,
0.07112451642751694,
0.039091113954782486,
0.05427298694849014,
0.06525587290525436,
-0.05538005754351616,
0.04830309376120567,
-0.015056153759360313,
-0.007734384387731552,
0.03177541494369507,
0.003972326871007681,
-0.02055276930332184,
-0.021495137363672256,
0.06074095889925957,
0.03903805837035179,
-0.07380750775337219,
0.07389134168624878,
-0.03183191642165184,
0.046490736305713654,
0.05607728660106659,
0.026965947821736336,
0.03504648432135582,
-0.02247786335647106,
-0.0008258948801085353,
0.14950770139694214,
-0.015984218567609787,
0.01353076845407486,
-0.009505699388682842,
0.036221329122781754,
0.09500371664762497,
0.11454388499259949,
0.06234494969248772,
0.04951159283518791,
-0.07540703564882278,
-0.034171637147665024,
-0.011968353763222694,
-0.016211820766329765,
-0.0014388957060873508,
-0.009567675180733204,
-0.06647733598947525,
0.011332874186336994,
-0.027586473152041435,
0.04535193368792534,
0.01284791436046362,
0.008714092895388603,
-0.02918463945388794,
0.020007411018013954,
0.00009201387001667172,
0.005706964060664177,
-0.06819203495979309,
0.05152244120836258,
0.011910874396562576,
-0.057536493986845016,
-0.00022394565166905522,
-0.07649373263120651,
0.04434125870466232,
0.012279915623366833,
0.042417775839567184,
0.00045746297109872103,
-0.012722760438919067,
0.01793469674885273,
0.005260014906525612,
-0.03678681328892708,
0.05364338681101799,
0.005934298038482666,
-0.007291156332939863,
0.006470972206443548,
-0.034680869430303574,
-0.0011665689526125789,
-0.002695650327950716,
-0.02522793784737587,
0.036359719932079315,
-0.006981517653912306,
0.016188325360417366,
0.03324965387582779,
-0.027875881642103195,
0.023834198713302612,
-0.011260353028774261,
-0.011999735608696938,
0.033098891377449036,
0.004917873069643974,
0.006419793702661991,
-0.013757601380348206,
-0.056563183665275574,
0.0003755176439881325,
-0.024614451453089714,
0.006023384630680084,
0.06597708910703659,
0.011728139594197273,
-0.011169781908392906,
-0.00833511259406805,
-0.029433228075504303,
-0.021801700815558434,
0.023376764729619026,
0.02024446241557598,
0.060343265533447266,
-0.0007945157121866941,
-0.037219349294900894,
0.008591852150857449,
0.0031135918106883764,
0.06144088879227638,
-0.004030157346278429,
-0.04953048750758171,
0.013001004233956337,
-0.015058435499668121,
-0.01065779197961092,
-0.011361204087734222,
-0.02379460446536541,
0.01247265376150608,
0.01250083651393652,
0.0622793547809124,
-0.00044644749141298234,
-0.082156702876091,
-0.028037764132022858,
0.008981162682175636,
0.045463576912879944,
-0.027894580736756325,
0.002972198184579611,
0.043242692947387695,
-0.03016330860555172,
0.010175120085477829,
0.025911949574947357,
-0.013884180225431919,
-0.002298073610290885,
-0.009099878370761871,
0.007872248999774456,
-0.014053239487111568,
-0.012397021055221558,
-0.01655629463493824,
0.043555062264204025,
0.039545003324747086,
0.05507715791463852,
-0.016817795112729073,
0.04476718232035637,
0.011008517816662788,
-0.039633020758628845,
0.0005358607158996165,
0.014872356317937374,
0.020797723904252052,
0.008565358817577362,
0.03552396968007088,
-0.02580338716506958,
0.01659742183983326,
-0.0013995921472087502,
-0.012616229243576527,
0.009321543388068676,
-0.04069235175848007,
-0.013026632368564606,
-0.014753195457160473,
0.01293631549924612,
0.03378044441342354,
0.012868388555943966,
0.018057724460959435,
-0.00794005673378706,
0.009241698309779167,
0.00035690152435563505,
0.0038303027395159006,
-0.008485717698931694,
-0.030992386862635612,
0.007743270136415958,
0.056836795061826706,
-0.03675958514213562,
0.054991837590932846,
0.010393597185611725,
0.029250754043459892,
0.09940271824598312,
-0.006932003889232874,
0.023970171809196472,
-0.0035381123889237642,
-0.0031834759283810854,
-0.024344319477677345,
-0.001819596509449184,
-0.05217057093977928,
0.01683507114648819,
-0.0011002215323969722,
-0.035942986607551575,
-0.020905112847685814,
0.017556888982653618,
0.04396772384643555,
-0.027642233297228813,
-0.012410941533744335,
0.015409023500978947,
-0.0015777710359543562,
-0.005720898974686861,
-0.0042664287611842155,
0.0023935174103826284,
-0.03880014643073082,
-0.01687481999397278,
-0.024567268788814545,
-0.022456923499703407,
0.07920542359352112,
0.013119790703058243,
0.006049314513802528,
-0.03634757921099663,
0.024920014664530754,
-0.026663441210985184,
0.008176466450095177,
0.0031280280090868473,
0.01825161837041378,
-0.08358698338270187,
0.015096223913133144,
0.038561053574085236,
0.01558117475360632,
-0.031263455748558044,
0.017699087038636208,
-0.002570453332737088,
0.04992735758423805,
0.025857333093881607,
0.009749096818268299,
0.004890046548098326,
0.03917805105447769,
-0.0284268856048584,
-0.02497839368879795,
-0.05709187686443329,
-0.0022433544509112835,
-0.006491116713732481,
0.020852811634540558,
0.03141312673687935,
-0.032739125192165375,
-0.057798780500888824,
0.037055853754282,
0.0017516870284453034,
-0.024640420451760292,
-0.012656311504542828,
-0.0012993125710636377,
-0.006958738435059786,
0.036894895136356354,
0.007524439133703709,
-0.045130111277103424,
-0.015139211900532246,
0.014658347703516483,
0.0016134260222315788,
0.0032233023084700108,
-0.018265586346387863,
0.003966081887483597,
-0.007207466755062342,
0.04044053331017494,
-0.026457063853740692,
0.0030853846110403538,
-0.033551327884197235,
0.01828165166079998,
-0.02960246615111828,
-0.03130607679486275,
-0.028513818979263306,
0.01884288713335991,
-0.014054914005100727,
-0.012585523538291454,
-0.023022642359137535,
0.006999107543379068,
0.018835432827472687,
-0.033091090619564056,
-0.027235031127929688,
0.007867725566029549,
0.014990259893238544,
0.017095385119318962,
-0.0640614703297615,
0.013932800851762295,
0.0007417939486913383,
-0.011693071573972702,
0.0004066204419359565,
-0.002093102317303419,
0.007878569886088371,
-0.02093910053372383,
-0.0446220226585865,
-0.028505077585577965,
0.040387582033872604,
0.024547401815652847,
-0.0061136712320148945,
0.012656481005251408,
0.06203443557024002,
-0.0031553776934742928,
0.009638549759984016,
-0.00240159360691905,
-0.019915960729122162,
-0.04476513713598251,
0.016690881922841072,
0.015251287259161472,
-0.008830754086375237,
-0.04700476676225662,
-0.0234540868550539,
-0.0046537588350474834,
0.0005220838356763124,
-0.014870005659759045,
0.019855095073580742,
-0.01700785383582115,
-0.034970711916685104,
-0.04670167341828346,
0.028218001127243042,
0.03230855241417885,
0.0005288478569127619,
-0.02043578028678894,
0.029896244406700134,
-0.006448746658861637,
-0.00044955042540095747,
0.012723908759653568,
-0.012595617212355137,
0.017573649063706398,
-0.01266802754253149,
-0.013566953130066395,
0.024666152894496918,
-0.028123527765274048,
-0.010985872708261013,
-0.016031615436077118,
-0.020719218999147415,
0.011352351866662502,
-0.030434736981987953,
0.01684175804257393,
-0.055182140320539474,
-0.04313819110393524,
0.00832501333206892,
0.005438849329948425,
-0.04896971955895424,
-0.0055098989978432655,
-0.012655960395932198,
-0.03680790215730667,
0.023687057197093964,
0.012164278887212276,
0.02361356094479561,
-0.020646752789616585,
-0.032922204583883286,
0.027892645448446274,
-0.029183274134993553,
0.04725228250026703,
-0.034894369542598724,
0.007489507552236319,
-0.03760885074734688,
-0.02429148741066456,
-0.027898654341697693,
-0.01572699286043644,
-0.01141421403735876,
-0.029331743717193604,
0.04614553600549698,
-0.032452065497636795,
-0.028929175809025764,
-0.03221432864665985,
-0.024829989299178123,
0.023731699213385582,
0.010211982764303684,
-0.006400140002369881,
0.026850679889321327,
-0.011749858036637306,
0.010480302385985851,
0.02842595987021923,
0.02246144600212574,
0.059718672186136246,
0.02210739254951477,
-0.01879301480948925,
0.030371664091944695,
-0.02752569690346718,
0.03959662467241287,
0.0073209102265536785,
-0.022464759647846222,
0.005983293056488037,
0.004654781427234411,
-0.03458268567919731,
-0.0005121912690810859,
-0.037421658635139465,
-0.005755700170993805,
0.08424808084964752,
-0.006518158596009016,
0.0337812602519989,
-0.030621593818068504,
0.03169495239853859,
0.03444572538137436,
0.011156974360346794,
-0.002846923191100359,
0.027606291696429253,
0.022465508431196213,
0.030909834429621696,
-0.019705411046743393,
-0.0017527134623378515,
-0.02190692536532879,
0.025199251249432564,
-0.05526626855134964,
0.0034409118816256523,
0.030838550999760628,
-0.03385288268327713,
0.0062501984648406506,
-0.0005918851238675416,
-0.005293308291584253,
0.025997797027230263,
0.02062041312456131,
-0.02379249408841133,
0.010136770084500313,
-0.013067376799881458,
0.027448048815131187,
-0.030006252229213715,
-0.037744347006082535,
0.014234094880521297,
0.04675495624542236,
-0.0183048564940691,
-0.029637295752763748,
0.030118532478809357,
0.020972054451704025,
0.03660055994987488,
-0.01811712421476841,
0.059550270438194275,
0.006800125353038311,
0.06094376742839813,
0.036574024707078934,
0.050161782652139664,
0.02745523490011692,
-0.05063227191567421,
-0.02382759563624859,
-0.02705262042582035,
-0.04395146295428276,
0.03854503855109215,
0.024343451485037804,
0.03165861964225769,
0.011461949907243252,
-0.0022391104139387608,
-0.00936729647219181,
0.06672286987304688,
0.0462849959731102,
0.049071304500103,
0.041854195296764374,
0.02948143519461155,
0.05779467895627022,
0.014183571562170982,
0.004862539935857058,
0.026161937043070793,
-0.018763063475489616,
0.018953558057546616,
0.012580597773194313,
0.04272091016173363,
0.05110035464167595,
0.01587103120982647,
-0.014631527476012707,
-0.014647658914327621,
-0.028049886226654053,
-0.013232722878456116,
-0.0012547057121992111,
-0.026412736624479294,
-0.00617624307051301,
-0.013541201129555702,
-0.026867397129535675,
-0.019930673763155937,
0.010729290544986725,
-0.03356190025806427,
0.06756202131509781,
-0.004885864909738302,
0.02717689238488674,
0.032334499061107635,
0.0027520228177309036,
-0.007388832047581673,
-0.027024975046515465,
0.006728753913193941,
-0.04666953533887863,
0.024191128090023994,
0.0008590177749283612,
-0.04745665565133095,
-0.009142108261585236,
-0.003622764255851507,
-0.03381180390715599,
0.002887361217290163,
0.02589581534266472,
-0.03211377188563347,
-0.003772683907300234,
-0.039171501994132996,
0.08410166949033737,
0.007578862365335226,
0.012818259187042713,
-0.011852188967168331,
-0.009729963727295399,
-0.030122242867946625,
0.03185318037867546,
-0.01116411853581667,
0.005082604940980673,
-0.0022961450740695,
-0.032024282962083817,
-0.03566838055849075,
-0.03288278728723526,
0.014002131298184395,
-0.034352950751781464,
0.03917573019862175,
-0.013915135525166988,
0.013483600690960884,
-0.036115262657403946,
-0.019263384863734245,
0.004012505058199167,
-0.0025111876893788576,
-0.03429202362895012,
0.009193985722959042,
0.010786665603518486,
0.023389281705021858,
0.030148325487971306,
0.01868498884141445,
-0.013011986389756203,
0.04983263462781906,
-0.013758605346083641,
-0.03662341088056564,
0.06358204782009125,
0.046159446239471436,
0.02043289504945278,
0.03430991619825363,
0.05150656774640083,
0.03701622411608696,
0.004366664681583643,
-0.04244489595293999,
0.026124026626348495,
-0.013117538765072823,
-0.01287473551928997,
-0.028262853622436523,
-0.029303349554538727,
-0.0079222172498703,
-0.018059808760881424,
0.015376953408122063,
-0.010573474690318108,
-0.03859710320830345,
-0.049621839076280594,
-0.02507328800857067,
0.007954779081046581,
-0.017326323315501213,
-0.004145855084061623,
0.04226408153772354,
0.025030339136719704,
0.017705587670207024,
-0.02916264347732067,
-0.004259856417775154,
-0.01922510750591755,
0.02321319654583931,
0.010061279870569706,
0.009450376033782959,
-0.06402900069952011,
-0.02202642150223255,
-0.02913074567914009,
-0.022414499893784523,
0.011914066039025784,
-0.05294552445411682,
0.04945806413888931,
-0.003322203643620014,
0.011580930091440678,
-0.04557889699935913,
-0.004436171613633633,
0.006244072690606117,
-0.012407371774315834,
-0.0019721095450222492,
-0.01877317577600479,
-0.026407375931739807,
0.004737313371151686,
0.05152376368641853,
-0.036185335367918015,
0.007708967197686434,
0.009315747767686844,
0.020826542750000954,
0.00583608215674758,
-0.01131582073867321,
0.01058028545230627,
-0.026469120755791664,
-0.012867601588368416,
0.02644440159201622,
-0.003034931607544422,
-0.038950830698013306,
0.0046521504409611225,
-0.012431689538061619,
0.08724828064441681,
-0.027382198721170425,
-0.014191578142344952,
-0.02009592019021511,
0.029823336750268936,
-0.017406398430466652,
0.039136853069067,
-0.0040121134370565414,
0.024095671251416206,
0.023036841303110123,
-0.009839871898293495,
0.0014276789734140038,
0.04821261763572693,
-0.025238048285245895,
-0.04275094345211983,
-0.03861400857567787,
0.01314720418304205
] |
Active Learning with AutoNLP and Prodigy | abhishek | December 23, 2021 | autonlp-prodigy | research, partnerships, nlp | https://huggingface.co/blog/autonlp-prodigy | # Active Learning with AutoNLP and Prodigy Active learning in the context of Machine Learning is a process in which you iteratively add labeled data, retrain a model and serve it to the end user. It is an endless process and requires human interaction for labeling/creating the data. In this article, we will discuss how to use AutoNLP and Prodigy to build an active learning pipeline. | [
0.07162212580442429,
-0.043251942843198776,
0.048035550862550735,
-0.027833087369799614,
0.035588763654232025,
0.05138828977942467,
-0.029017126187682152,
0.04482946917414665,
-0.01944621279835701,
-0.02051425911486149,
-0.10237864404916763,
0.03906064108014107,
-0.04125135764479637,
-0.022118283435702324,
0.07521248608827591,
-0.05717594921588898,
0.10685577988624573,
-0.006631051190197468,
-0.04582572355866432,
0.05547875165939331,
-0.04450494796037674,
-0.07041337341070175,
0.05869833379983902,
-0.011959286406636238,
0.04096050187945366,
-0.01468715164810419,
0.0492575503885746,
-0.014533362351357937,
-0.004761822521686554,
0.06457331031560898,
-0.07031234353780746,
0.011793813668191433,
0.016240369528532028,
0.013331243768334389,
0.00008360920764971524,
0.03240819647908211,
-0.09077230095863342,
0.05070577189326286,
0.03635825961828232,
-0.09222536534070969,
-0.05971577763557434,
0.08326153457164764,
-0.025720125064253807,
-0.009727832861244678,
-0.02375798113644123,
-0.012086263857781887,
-0.14601896703243256,
-0.026086807250976562,
0.026006756350398064,
-0.08043313026428223,
-0.07477754354476929,
0.06264157593250275,
-0.021186992526054382,
0.04546387121081352,
-0.02782599814236164,
0.012298215180635452,
-0.0015664820093661547,
-0.08762940019369125,
0.013407059945166111,
0.01748206466436386,
0.10638497024774551,
0.08229720592498779,
0.0169075820595026,
0.03453220799565315,
0.004625258035957813,
-0.01876702904701233,
0.003916244953870773,
-0.0010292826918885112,
-0.08216486126184464,
-0.04370332509279251,
-0.03558560460805893,
0.03583817929029465,
-0.06109615042805672,
-0.008041304536163807,
0.022782720625400543,
-0.04392826557159424,
-0.023122765123844147,
0.03780655935406685,
-0.049514297395944595,
-0.002965762512758374,
0.04897662252187729,
0.11521953344345093,
0.05286780372262001,
0.01704912632703781,
0.04877714440226555,
0.0025676561053842306,
-0.009955980814993382,
-0.03885894641280174,
-0.0343463197350502,
0.015505882911384106,
0.020207712426781654,
-0.14679552614688873,
0.04913506656885147,
-0.017760995775461197,
0.04088873043656349,
-0.012821491807699203,
0.017354384064674377,
0.04970084875822067,
-0.014747642911970615,
-0.046088822185993195,
-0.049120526760816574,
-0.0016560093499720097,
-0.004685423336923122,
0.008923668414354324,
-0.049698762595653534,
0.06739569455385208,
-0.014705666340887547,
-0.023766160011291504,
-0.09560501575469971,
0.0612509585916996,
0.011646080762147903,
-0.0031121261417865753,
0.0016373508842661977,
0.055034272372722626,
-0.07544905692338943,
0.03289242461323738,
-0.016329064965248108,
0.014141888357698917,
0.009934891015291214,
0.011726808734238148,
0.009590503759682178,
-0.04732432961463928,
0.02476278506219387,
-0.019083499908447266,
-0.06188678741455078,
0.01638045720756054,
-0.0012952001998201013,
-0.0019447895465418696,
0.06546998769044876,
-0.0185558944940567,
0.04543544724583626,
-0.0037197021301835775,
0.015640852972865105,
0.03668568655848503,
0.06515107303857803,
0.0303470641374588,
0.03152051195502281,
-0.04099709913134575,
0.034195199608802795,
0.06244787573814392,
-0.011735393665730953,
0.025188174098730087,
-0.02627388760447502,
-0.048514313995838165,
0.05715811625123024,
-0.013357892632484436,
-0.07922468334436417,
0.023081909865140915,
-0.054086118936538696,
-0.018065890297293663,
-0.11050421744585037,
0.025208696722984314,
-0.03502877056598663,
-0.06733576953411102,
0.03717469424009323,
0.08604438602924347,
-0.038103360682725906,
-0.015072622336447239,
0.006104967091232538,
0.020887846127152443,
0.025103410705924034,
0.024202266708016396,
0.024442385882139206,
0.08309683948755264,
0.0441582128405571,
-0.00446066539734602,
-0.03875638544559479,
0.020719099789857864,
0.011348811909556389,
0.0018949456280097365,
0.03232145309448242,
-0.06411867588758469,
0.003968844190239906,
-0.018723633140325546,
0.07661640644073486,
-0.03783823177218437,
-0.0011315797455608845,
0.020447716116905212,
0.02450714260339737,
-0.026316946372389793,
-0.034115564078092575,
0.043027665466070175,
0.029589155688881874,
0.020233729854226112,
-0.010295187123119831,
0.011741607449948788,
0.0538167841732502,
-0.01840771548449993,
0.01618211716413498,
0.0004424277285579592,
-0.049347084015607834,
0.05273251235485077,
0.03535560891032219,
-0.055875107645988464,
-0.005374886095523834,
-0.027870070189237595,
-0.038727037608623505,
0.09637083113193512,
0.03199983015656471,
0.0038017539773136377,
0.07399563491344452,
-0.08754032105207443,
-0.020416248589754105,
-0.030032934620976448,
0.04987411946058273,
0.008406830951571465,
0.004732250235974789,
-0.043629102408885956,
0.0799671933054924,
0.03788222372531891,
-0.0447283610701561,
-0.04990130290389061,
0.034091636538505554,
-0.058242253959178925,
-0.014101852662861347,
-0.039634790271520615,
-0.006348023656755686,
0.03335675224661827,
-0.05767069011926651,
-0.029672294855117798,
0.11164034157991409,
-0.04856937751173973,
0.04811472073197365,
0.004563804715871811,
0.01628457009792328,
0.02597505785524845,
0.03520315885543823,
0.033274538815021515,
-0.00018256799376104027,
-0.019159896299242973,
-0.0431658998131752,
-0.07325754314661026,
0.09484948217868805,
0.000050539980293251574,
0.02706419862806797,
-0.058655448257923126,
0.04350907355546951,
-0.010208753868937492,
-0.011183477006852627,
0.017689920961856842,
0.034110356122255325,
0.01793964020907879,
-0.04817037284374237,
0.08353785425424576,
0.02865470200777054,
0.08339621126651764,
0.09240057319402695,
0.03994477540254593,
0.003253586357459426,
-0.025450075045228004,
0.004577118903398514,
-0.02933538891375065,
-0.019596261903643608,
0.017371272668242455,
0.021079890429973602,
-0.030831899493932724,
0.04071107506752014,
-0.0422801598906517,
-0.014996208250522614,
0.05007178708910942,
0.015350341796875,
-0.011891013011336327,
-0.030546126887202263,
-0.01764870621263981,
0.016308626160025597,
-0.012834175489842892,
0.0030755449552088976,
-0.016664354130625725,
0.040026530623435974,
-0.00716059934347868,
0.021085495129227638,
-0.024095522239804268,
0.022012030705809593,
-0.008958077989518642,
0.0036928742192685604,
0.025319095700979233,
-0.011128426529467106,
-0.03241467475891113,
-0.020415104925632477,
-0.06503734737634659,
-0.02996879629790783,
-0.07215683162212372,
0.03264223784208298,
0.02785196155309677,
0.01221531629562378,
-0.023680370301008224,
-0.024466976523399353,
-0.020813671872019768,
-0.06710503250360489,
0.030191225931048393,
0.0017263587797060609,
0.044483691453933716,
-0.06243421509861946,
0.016061779111623764,
0.01102172490209341,
0.01676030084490776,
0.0021784931886941195,
-0.04377979412674904,
0.028967732563614845,
0.006866347976028919,
-0.00786221120506525,
0.03795702010393143,
0.00865335576236248,
0.0015526521019637585,
0.030489811673760414,
0.010790488682687283,
0.03110245242714882,
-0.0015844687586650252,
-0.07549329102039337,
-0.029758436605334282,
0.030347466468811035,
-0.03424224629998207,
0.0384669303894043,
-0.04768142104148865,
0.03852774202823639,
0.010767736472189426,
0.03193112462759018,
0.002342513296753168,
-0.008058646693825722,
0.002669770736247301,
0.02385552041232586,
0.04284948483109474,
0.03610096126794815,
0.0072546182200312614,
-0.002477983944118023,
-0.03312665969133377,
-0.018846023827791214,
-0.007295703049749136,
-0.020134449005126953,
0.005982359405606985,
0.006351678166538477,
0.060911569744348526,
0.001451080315746367,
-0.016386311501264572,
0.02145015262067318,
0.05800421163439751,
-0.003135168459266424,
-0.0015183525392785668,
0.011378402821719646,
-0.053805429488420486,
-0.02759891375899315,
0.04211798310279846,
-0.016839828342199326,
0.01152076106518507,
0.007272699847817421,
0.0032864208333194256,
0.012290493585169315,
-0.016747545450925827,
-0.030391724780201912,
-0.0073094177059829235,
-0.025415845215320587,
0.009047220461070538,
0.016739677637815475,
-0.014445271342992783,
-0.026852533221244812,
0.023846326395869255,
-0.01924879476428032,
-0.041733887046575546,
-0.02482832968235016,
0.0029475900810211897,
-0.01068800874054432,
0.0058762491680681705,
0.02440503053367138,
-0.02696984075009823,
-0.0032082945108413696,
0.003196887206286192,
0.015932956710457802,
0.015807488933205605,
0.00020790343114640564,
-0.017411835491657257,
-0.011498610489070415,
-0.0901980996131897,
-0.03244292363524437,
0.012640224769711494,
0.011872559785842896,
-0.0025456566363573074,
0.018908219411969185,
0.04223081097006798,
0.01345194224268198,
0.03523026406764984,
0.025136014446616173,
-0.007258586585521698,
0.024574708193540573,
0.020754048600792885,
0.015317928045988083,
-0.03927161172032356,
0.06544016301631927,
0.041359446942806244,
0.017070293426513672,
-0.054996803402900696,
-0.04050946980714798,
-0.04980892688035965,
-0.003591744462028146,
-0.002005114685744047,
0.03545822575688362,
-0.0013973386958241463,
-0.009620590135455132,
-0.032408855855464935,
0.0253034308552742,
0.0008223079494200647,
0.01009317021816969,
-0.03134562820196152,
-0.0495414212346077,
-0.018192144110798836,
-0.008924117311835289,
-0.007036127150058746,
-0.0017649905057623982,
-0.04122783988714218,
0.01903579756617546,
-0.045631058514118195,
-0.031111806631088257,
-0.004623084329068661,
-0.021506814286112785,
0.008941560983657837,
-0.02275964990258217,
-0.0027734418399631977,
0.05404958873987198,
-0.011540860868990421,
-0.011224300600588322,
0.001729953452013433,
-0.0032936192583292723,
0.019298912957310677,
0.0031086753588169813,
0.03195517510175705,
-0.0750889852643013,
0.004643455613404512,
0.02557639591395855,
-0.007935135625302792,
-0.0382007397711277,
0.01949951983988285,
0.016178835183382034,
-0.009296421892940998,
-0.005095106549561024,
-0.003410487435758114,
0.0074350605718791485,
-0.025471126660704613,
0.01143102440983057,
-0.06388790160417557,
-0.005878347437828779,
0.005041693802922964,
0.002621130784973502,
-0.009647225961089134,
-0.022774863988161087,
-0.048528365790843964,
-0.014329129830002785,
0.03633987531065941,
-0.018154805526137352,
-0.013262871652841568,
0.04425310343503952,
0.035028036683797836,
0.03794107958674431,
-0.04484139382839203,
0.06451580673456192,
-0.03245087340474129,
-0.04894224554300308,
0.016609206795692444,
0.029070599004626274,
-0.006722860503941774,
0.036944303661584854,
0.019078368321061134,
-0.05307887867093086,
-0.005949469283223152,
0.030529305338859558,
-0.02613990381360054,
0.012421083636581898,
-0.0002730413689278066,
-0.001788659137673676,
0.02381008118391037,
0.02729419618844986,
-0.035593435168266296,
0.01732872799038887,
-0.008255187422037125,
0.012832424603402615,
-0.02133728377521038,
-0.01647377572953701,
-0.011285832151770592,
0.01193647738546133,
0.00839949119836092,
-0.014247113838791847,
-0.016802119091153145,
0.017608340829610825,
0.03863130509853363,
-0.019826238974928856,
0.054185666143894196,
0.03300688788294792,
0.03485070541501045,
-0.07083654403686523,
-0.040423113852739334,
-0.009313925169408321,
-0.0030734294559806585,
0.01056866254657507,
-0.0017950127366930246,
-0.010232370346784592,
0.006467193830758333,
0.032561562955379486,
-0.009319228120148182,
-0.01839376613497734,
0.004921835381537676,
0.012421034276485443,
-0.019366824999451637,
-0.037206389009952545,
0.0245774257928133,
0.023292921483516693,
0.010652244091033936,
0.02267724648118019,
-0.017569372430443764,
-0.03108811378479004,
-0.0032240799628198147,
0.053089771419763565,
-0.002315332880243659,
-0.008195443078875542,
-0.017914732918143272,
0.042251624166965485,
0.02568354643881321,
-0.05131867155432701,
-0.05231370031833649,
0.020024379715323448,
-0.00073947076452896,
0.0019453827990218997,
-0.030465124174952507,
-0.012613934464752674,
0.007860049605369568,
0.0020656075794249773,
-0.03071332909166813,
-0.020456988364458084,
0.023058295249938965,
-0.00014873490727040917,
0.03873329609632492,
-0.005994872655719519,
0.04666841775178909,
-0.014308733865618706,
0.0033983683679252863,
0.010447931475937366,
-0.04270908236503601,
0.003536656964570284,
0.0167783722281456,
0.05384660139679909,
-0.030191851779818535,
0.02200821414589882,
0.01063164509832859,
-0.0006037427228875458,
-0.0013859615428373218,
0.02429494448006153,
-0.011962790042161942,
0.004271551035344601,
0.06665489077568054,
0.040345124900341034,
-0.04609399288892746,
0.0014029733138158917,
0.002839379943907261,
-0.08486912399530411,
0.004188776947557926,
-0.03342841565608978,
0.024913929402828217,
0.08345252275466919,
-0.037779469043016434,
0.031001297757029533,
0.0043509285897016525,
0.015369937755167484,
-0.02310379035770893,
-0.06282539665699005,
-0.011547925882041454,
-0.006268345285207033,
0.032026760280132294,
0.06347933411598206,
-0.02328612469136715,
-0.03854493424296379,
0.018933013081550598,
0.024530354887247086,
-0.06729139387607574,
-0.021461019292473793,
0.037827037274837494,
-0.006514877546578646,
-0.031999532133340836,
-0.017317060381174088,
0.020211240276694298,
0.010333570651710033,
0.051024582237005234,
0.039423804730176926,
0.03382720798254013,
0.023377234116196632,
0.016060981899499893,
0.013496527448296547,
-0.037254780530929565,
-0.04571327567100525,
0.008486609905958176,
-0.03341594710946083,
0.03328849747776985,
0.01525883749127388,
0.01930833049118519,
0.0011794313322752714,
0.0006897806888446212,
0.03194628283381462,
0.008528422564268112,
0.05430598184466362,
0.006547452881932259,
-0.018104152753949165,
-0.024242673069238663,
-0.03314369544386864,
-0.013279974460601807,
0.012171479873359203,
-0.019535597413778305,
0.012209220789372921,
0.010821915231645107,
0.060993492603302,
-0.028372058644890785,
-0.001970347249880433,
-0.0004391607944853604,
0.03318016231060028,
0.00345265818759799,
0.040393318980932236,
-0.0063217938877642155,
0.01362433098256588,
0.02229222282767296,
0.011079664342105389,
0.02231980487704277,
0.03596442937850952,
0.021216299384832382,
-0.0042458949610590935,
0.04340144991874695,
0.0637439489364624,
0.013494452461600304,
-0.058244310319423676,
-0.014881000854074955,
-0.03148334473371506,
-0.022120371460914612,
-0.0035624601878225803,
0.015560945495963097,
0.0030739950016140938,
-0.016776178032159805,
-0.008437932468950748,
0.01934354566037655,
-0.020327158272266388,
-0.025166179984807968,
-0.017721757292747498,
-0.008065162226557732,
0.018088527023792267,
0.013422448188066483,
-0.008434835821390152,
0.007506827358156443,
-0.009426159784197807,
0.004428218584507704,
-0.038583118468523026,
-0.0391949862241745,
0.0012830606428906322,
-0.008390413597226143,
-0.043720997869968414,
-0.03835757449269295,
-0.033586930483579636,
0.019550899043679237,
0.01470120344310999,
-0.022202685475349426,
-0.0022685620933771133,
-0.033584825694561005,
0.018924202769994736,
0.060263197869062424,
0.013440810143947601,
0.005304262507706881,
0.005674633197486401,
0.01759759522974491,
-0.05285648629069328,
-0.010266450233757496,
-0.06584826856851578,
0.007464694324880838,
-0.006284553091973066,
-0.06168760731816292,
0.03360241279006004,
0.015980573371052742,
-0.022566985338926315,
0.05694509297609329,
0.10516276955604553,
0.010460924357175827,
0.015944672748446465,
-0.0029696556739509106,
-0.014753592200577259,
-0.0181450005620718,
0.04015043377876282,
-0.014059226959943771,
-0.015686005353927612,
0.019056003540754318,
0.002989722415804863,
-0.03341565653681755,
0.03565133363008499,
0.034115999937057495,
0.012514962814748287,
-0.0028227106668055058,
-0.049935635179281235,
0.02368728443980217,
-0.006065872963517904,
-0.008133826777338982,
0.04713348299264908,
0.019244834780693054,
0.008619407191872597,
-0.040964581072330475,
-0.051960840821266174,
-0.011135987006127834,
-0.020252954214811325,
0.06114006042480469,
-0.004147207830101252,
-0.048266179859638214,
-0.0008013726328499615,
0.009442504495382309,
-0.03486326336860657,
0.008650540374219418,
-0.03164616599678993,
0.009991778992116451,
-0.030167238786816597,
-0.02986697107553482,
-0.010763618163764477,
-0.00820491835474968,
0.04002956673502922,
0.003398904576897621,
-0.00006976499571464956,
0.0027680236380547285,
-0.05313078686594963,
0.02504604496061802,
-0.012647636234760284,
0.04032646864652634,
0.019782215356826782,
0.03622059524059296,
0.016487695276737213,
0.002719848183915019,
-0.010739503428339958,
0.001993287820369005,
-0.040541891008615494,
0.044280193746089935,
-0.01169524621218443,
-0.000010214543181064073,
0.012675774283707142,
-0.008406269364058971,
0.012465041130781174,
-0.00887590553611517,
-0.022518765181303024,
0.009825262241065502,
-0.06105382740497589,
0.0082530677318573,
-0.028106028214097023,
-0.06500314921140671,
0.006403316743671894,
-0.035921886563301086,
0.0002917996025644243,
0.01758381351828575,
0.02166013792157173,
0.012957945466041565,
-0.03581118583679199,
-0.004540198016911745,
0.051065705716609955,
-0.028433742001652718,
0.01171842124313116,
-0.0680985152721405,
0.05886942893266678,
0.029315516352653503,
0.0017314961878582835,
-0.003441998502239585,
0.02733802981674671,
0.022671956568956375,
0.010843218304216862,
0.0046311067417263985,
-0.015976792201399803,
0.06508056819438934,
0.04669211432337761,
0.049597498029470444,
-0.01293137390166521,
0.057745561003685,
0.02135797031223774,
0.021690087392926216,
-0.05522572994232178,
-0.04139382019639015
] |
Active Learning with AutoNLP and Prodigy | abhishek | December 23, 2021 | autonlp-prodigy | research, partnerships, nlp | https://huggingface.co/blog/autonlp-prodigy | Active Learning The dataset we used did have categories but it didn't have labels for entity recognition. So, we decided to use Prodigy to label the dataset for another task: named entity recognition. Once you have Prodigy installed, you can simply run: $ prodigy ner.manual bbc blank:en BBC_News_Train.csv --label PERSON,ORG,PRODUCT,LOCATION Let's look at the different values: * bbc is the dataset that will be created by Prodigy. * blank:en is the spaCy tokenizer being used. * BBC_News_Train.csv is the dataset that will be used for labeling. * PERSON,ORG,PRODUCT,LOCATION is the list of labels that will be used for labeling. Once you run the above command, you can go to the prodigy web interface (usually at localhost:8080) and start labelling the dataset. Prodigy interface is very simple, intuitive and easy to use. The interface looks like the following: All you have to do is select which entity you want to label (PERSON, ORG, PRODUCT, LOCATION) and then select the text that belongs to the entity. Once you are done with one document, you can click on the green button and Prodigy will automatically provide you with next unlabelled document. Using Prodigy, we started labelling the dataset. When we had around 20 samples, we trained a model using AutoNLP. Prodigy doesn't export the data in AutoNLP format, so we wrote a quick and dirty script to convert the data into AutoNLP format: python import json import spacy from prodigy.components.db import connect db = connect() prodigy_annotations = db.get_dataset("bbc") examples = ((eg["text"], eg) for eg in prodigy_annotations) nlp = spacy.blank("en") dataset = [] for doc, eg in nlp.pipe(examples, as_tuples=True): try: doc.ents = [doc.char_span(s["start"], s["end"], s["label"]) for s in eg["spans"]] iob_tags = [f"{t.ent_iob_}-{t.ent_type_}" if t.ent_iob_ else "O" for t in doc] iob_tags = [t.strip("-") for t in iob_tags] tokens = [str(t) for t in doc] temp_data = { "tokens": tokens, "tags": iob_tags } dataset.append(temp_data) except: pass with open('data.jsonl', 'w') as outfile: for entry in dataset: json.dump(entry, outfile) outfile.write('\n') This will provide us with a JSONL file which can be used for training a model using AutoNLP. The steps will be same as before except we will select Token Classification task when creating the AutoNLP project. Using the initial data we had, we trained a model using AutoNLP. The best model had an accuracy of around 86% with 0 precision and recall. We knew the model didn't learn anything. It's pretty obvious, we had only around 20 samples. After labelling around 70 samples, we started getting some results. The accuracy went up to 92%, precision was 0.52 and recall around 0.42. We were getting some results, but still not satisfactory. In the following image, we can see how this model performs on an unseen sample. As you can see, the model is struggling. But it's much better than before! Previously, the model was not even able to predict anything in the same text. At least now, it's able to figure out that Bruce and David are names. Thus, we continued. We labelled a few more samples. Please note that, in each iteration, our dataset is getting bigger. All we are doing is uploading the new dataset to AutoNLP and let it do the rest. After labelling around ~150 samples, we started getting some good results. The accuracy went up to 95.7%, precision was 0.64 and recall around 0.76. Let's take a look at how this model performs on the same unseen sample. WOW! This is amazing! As you can see, the model is now performing extremely well! Its able to detect many entities in the same text. The precision and recall were still a bit low and thus we continued labeling even more data. After labeling around ~250 samples, we had the best results in terms of precision and recall. The accuracy went up to ~95.9% and precision and recall were 0.73 and 0.79 respectively. At this point, we decided to stop labelling and end the experimentation process. The following graph shows how the accuracy of best model improved as we added more samples to the dataset: Well, it's a well known fact that more relevant data will lead to better models and thus better results. With this experimentation, we successfully created a model that can not only classify the entities in the news articles but also categorize them. Using tools like Prodigy and AutoNLP, we invested our time and effort only to label the dataset (even that was made simpler by the interface prodigy offers). AutoNLP saved us a lot of time and effort: we didn't have to figure out which models to use, how to train them, how to evaluate them, how to tune the parameters, which optimizer and scheduler to use, pre-processing, post-processing etc. We just needed to label the dataset and let AutoNLP do everything else. We believe with tools like AutoNLP and Prodigy it's very easy to create data and state-of-the-art models. And since the whole process requires almost no coding at all, even someone without a coding background can create datasets which are generally not available to the public, train their own models using AutoNLP and share the model with everyone else in the community (or just use them for their own research / business). We have open-sourced the best model created using this process. You can try it here. The labelled dataset can also be downloaded here. Models are only state-of-the-art because of the data they are trained on. | [
0.005807583220303059,
-0.08000978827476501,
0.03716977685689926,
0.03223690018057823,
0.04436970502138138,
0.010107377544045448,
-0.049799103289842606,
0.07707313448190689,
-0.0983145534992218,
0.0010151145979762077,
-0.10016083717346191,
0.09596803784370422,
-0.0062837740406394005,
0.05303892120718956,
0.0871603786945343,
-0.03606535866856575,
0.06082593649625778,
0.01847030594944954,
-0.007396827917546034,
0.014256377704441547,
-0.014883015304803848,
-0.018351159989833832,
0.01876826025545597,
-0.018352685496211052,
0.024970898404717445,
-0.015329507179558277,
0.033432867377996445,
0.04646511748433113,
-0.03976987302303314,
0.0497666634619236,
-0.09352153539657593,
0.027177147567272186,
0.0033552097156643867,
0.0451626293361187,
-0.018698016181588173,
0.07493901997804642,
-0.09263118356466293,
0.03295810520648956,
-0.004406919237226248,
-0.07891593873500824,
-0.019320452585816383,
0.03213301673531532,
-0.02331334538757801,
0.05997481942176819,
-0.03166354447603226,
0.01759807951748371,
-0.11686565726995468,
-0.010980581864714622,
0.0423688106238842,
-0.01688752882182598,
-0.051945604383945465,
0.028081141412258148,
0.005457643419504166,
-0.01456105150282383,
0.0012082303874194622,
-0.03058406338095665,
-0.02212158776819706,
-0.1085115522146225,
-0.006581731606274843,
0.021648144349455833,
0.05686088651418686,
0.07572378218173981,
-0.019949527457356453,
0.0047731236554682255,
0.004631977528333664,
-0.009273880161345005,
-0.02816123701632023,
0.031938016414642334,
-0.05358275771141052,
0.015350955538451672,
0.028327032923698425,
-0.03272075951099396,
-0.02756650000810623,
-0.029660573229193687,
0.0189718846231699,
-0.06374926120042801,
0.009636957198381424,
0.012300745584070683,
-0.030091362074017525,
0.0288267582654953,
0.02663368359208107,
0.08971481770277023,
0.011951537802815437,
0.05497102439403534,
0.08720546215772629,
-0.02049998939037323,
-0.025743594393134117,
-0.04007980599999428,
-0.029191674664616585,
0.016865873709321022,
0.015951136127114296,
-0.10147091746330261,
0.056796930730342865,
0.010725273750722408,
0.02123960852622986,
-0.02015640027821064,
0.04426759108901024,
0.002907475456595421,
-0.0044442736543715,
-0.02115793153643608,
-0.02223331481218338,
-0.01337764784693718,
0.036515556275844574,
-0.03830603510141373,
-0.07735683023929596,
0.03183094039559364,
-0.015294656157493591,
-0.017188748344779015,
-0.051084183156490326,
0.07293790578842163,
0.018451951444149017,
0.000489520956762135,
-0.027617700397968292,
0.09370724111795425,
-0.06114286929368973,
0.010410541668534279,
0.027347447350621223,
0.03503701463341713,
0.036319900304079056,
0.04480292275547981,
0.032778166234493256,
-0.008693510666489601,
-0.015709415078163147,
-0.018619747832417488,
-0.007779434788972139,
-0.002519551431760192,
0.024774810299277306,
0.07310198247432709,
0.0242901723831892,
0.03716976195573807,
0.030001582577824593,
-0.03171784058213234,
0.0634736716747284,
0.03199993073940277,
0.014176041819155216,
-0.03216227516531944,
0.008262348361313343,
0.0025394659023731947,
0.06032246723771095,
0.022894591093063354,
-0.06818771362304688,
0.04540669173002243,
-0.07555194944143295,
0.0194090623408556,
0.03706369176506996,
-0.0065027158707380295,
-0.05907479673624039,
0.021144038066267967,
-0.04665214568376541,
0.021858304738998413,
-0.07791446894407272,
0.020551513880491257,
0.01172718033194542,
-0.007351377513259649,
0.05574280396103859,
0.055124882608652115,
0.002542481292039156,
-0.007281814701855183,
-0.019300127401947975,
-0.005624407436698675,
-0.03666042536497116,
0.021075375378131866,
-0.0182985607534647,
0.05056065693497658,
0.0069846827536821365,
-0.04749227687716484,
-0.015467003919184208,
-0.01911522075533867,
-0.01574866473674774,
0.006975199095904827,
0.019088178873062134,
-0.10058368742465973,
0.0017608710331842303,
-0.0017722558695822954,
0.016999907791614532,
-0.06273645162582397,
-0.0011550405761227012,
0.004993847571313381,
0.016957461833953857,
-0.020621368661522865,
-0.03397497162222862,
-0.013103816658258438,
-0.020249489694833755,
-0.051169149577617645,
0.02157258614897728,
-0.016267292201519012,
0.10135424882173538,
-0.02367241308093071,
0.036404918879270554,
0.05232404172420502,
-0.016118260100483894,
-0.003476643469184637,
0.07230498641729355,
-0.011629734188318253,
-0.0005986192845739424,
-0.06800547987222672,
-0.012712881900370121,
0.1329583078622818,
0.03747517615556717,
-0.00023353536380454898,
0.04720819368958473,
-0.048098135739564896,
0.00650226604193449,
0.008573264814913273,
0.024657635018229485,
-0.004463247489184141,
-0.02357901632785797,
-0.07537847757339478,
0.10927228629589081,
0.020684294402599335,
-0.03269613906741142,
-0.02794981747865677,
0.10102860629558563,
-0.07435327023267746,
-0.023090677335858345,
-0.042566027492284775,
0.040638018399477005,
0.06814248114824295,
0.01486650574952364,
-0.059893615543842316,
0.15060414373874664,
-0.03229007497429848,
0.03006642498075962,
0.0014409564901143312,
-0.06486441940069199,
0.08013806492090225,
0.07478369772434235,
0.049671947956085205,
-0.0028355794493108988,
-0.05288771539926529,
-0.050368037074804306,
0.039090413600206375,
0.06570153683423996,
0.0022931236308068037,
-0.06373654305934906,
-0.07753828912973404,
0.039600953459739685,
-0.02649683877825737,
-0.0014879308873787522,
-0.006373971235007048,
0.018811963498592377,
-0.020494382828474045,
-0.08366164565086365,
0.04193133860826492,
-0.02878296747803688,
0.10225718468427658,
0.1418067067861557,
0.0335056334733963,
-0.017159471288323402,
-0.075613833963871,
-0.046962492167949677,
0.023515570908784866,
-0.013710996136069298,
0.04660557582974434,
0.07110442966222763,
-0.0006672328454442322,
0.034924618899822235,
-0.02934073656797409,
0.002740618772804737,
0.04781411215662956,
-0.04951072856783867,
0.009364739991724491,
-0.01962476409971714,
-0.026566235348582268,
0.013857083395123482,
0.00941902119666338,
-0.0032515365164726973,
-0.01864994876086712,
0.024365218356251717,
-0.01712561771273613,
-0.009704306721687317,
0.019419139251112938,
0.010696593672037125,
0.030305471271276474,
0.010644946247339249,
0.05465397611260414,
-0.008680468425154686,
-0.05225834995508194,
-0.0257879551500082,
-0.049972765147686005,
-0.016132568940520287,
-0.09121005237102509,
0.017908364534378052,
0.03229773789644241,
-0.01296752318739891,
-0.0026028896681964397,
-0.011957707814872265,
-0.0555931031703949,
-0.0009237510967068374,
0.017499957233667374,
0.0620584636926651,
0.008445234037935734,
-0.03320968896150589,
-0.004132457077503204,
-0.0011134250089526176,
0.008222111500799656,
0.01770518347620964,
0.006238765083253384,
0.024058222770690918,
0.04163923114538193,
-0.02410499006509781,
0.035625964403152466,
-0.04280456155538559,
0.0017385147511959076,
-0.027745870873332024,
0.0061683934181928635,
0.005519531201571226,
-0.020783789455890656,
-0.09037690609693527,
0.006105263251811266,
-0.009149802848696709,
0.014923250302672386,
-0.008998708799481392,
-0.010607259348034859,
0.007557197939604521,
0.022789331153035164,
0.049390532076358795,
-0.013940601609647274,
-0.01186408568173647,
-0.00770779512822628,
0.006122497376054525,
0.015818165615200996,
0.03734983876347542,
0.019587993621826172,
-0.040368035435676575,
-0.05136905983090401,
-0.0028425396885722876,
0.011658797040581703,
-0.044396668672561646,
0.04983661696314812,
-0.03041115589439869,
0.07151411473751068,
-0.014713801443576813,
-0.026121659204363823,
0.014098307117819786,
0.055854760110378265,
0.010606245137751102,
-0.06190880015492439,
0.009707573801279068,
-0.027609262615442276,
-0.023334259167313576,
0.01674947328865528,
0.025712931528687477,
-0.0039987582713365555,
0.017692606896162033,
0.021463004872202873,
0.0011021469254046679,
0.025030890479683876,
-0.06529117375612259,
0.006846697069704533,
0.010818208567798138,
-0.007858571596443653,
0.029081184417009354,
-0.04477480798959732,
-0.04978533089160919,
0.0022931210696697235,
-0.006349362898617983,
-0.025601467117667198,
-0.016469808295369148,
-0.0026219745632261038,
0.014772336930036545,
0.06880241632461548,
0.0016313833184540272,
0.0024030685890465975,
0.005307253450155258,
0.007632358465343714,
-0.0035229220520704985,
0.006434229202568531,
0.01961776800453663,
0.02977023273706436,
-0.012823216617107391,
-0.04151096194982529,
-0.01972171664237976,
0.05936920642852783,
0.003840580116957426,
0.018642274662852287,
-0.0009969085222110152,
0.02835487574338913,
0.002001623623073101,
0.04323865473270416,
-0.0022865261416882277,
-0.009165189228951931,
0.021215425804257393,
0.035857729613780975,
0.007451396435499191,
-0.00766928493976593,
0.01809435896575451,
0.05931877717375755,
0.0029494615737348795,
-0.03815580531954765,
0.007671934552490711,
-0.07385957986116409,
-0.04350614920258522,
0.0006715342751704156,
0.01946442201733589,
-0.045913007110357285,
0.0009477495332248509,
-0.01158161647617817,
0.005891936831176281,
0.021762903779745102,
0.0016831516986712813,
-0.010851383209228516,
-0.04260390251874924,
0.00683177076280117,
0.018263984471559525,
-0.030962035059928894,
0.0252191424369812,
-0.01143445260822773,
-0.007110326550900936,
-0.02227836102247238,
0.013900010846555233,
-0.020591499283909798,
-0.00026422468363307416,
-0.0033602039329707623,
-0.06275612115859985,
-0.040705375373363495,
0.030102215707302094,
-0.032435521483421326,
-0.024339042603969574,
-0.012111014686524868,
-0.02157333493232727,
-0.0019371656235307455,
0.02545822784304619,
0.016044897958636284,
-0.04943697899580002,
0.011679128743708134,
-0.0007787554641254246,
0.028990402817726135,
-0.009041703306138515,
0.016972225159406662,
0.004954829812049866,
-0.0018310085870325565,
-0.02680548094213009,
-0.02948172204196453,
0.0024552373215556145,
-0.014895305968821049,
0.02670152299106121,
-0.05153162032365799,
-0.020022984594106674,
-0.013852967880666256,
-0.013111656531691551,
0.015707354992628098,
0.024865390732884407,
-0.046695176512002945,
-0.004855052568018436,
0.02537272311747074,
-0.006171584129333496,
0.011728406883776188,
-0.024543622508645058,
-0.019145313650369644,
0.06391055136919022,
-0.005249598994851112,
0.032324422150850296,
-0.06484036892652512,
-0.031139986589550972,
-0.011572807095944881,
0.015439665876328945,
0.000477995170513168,
-0.007265453692525625,
0.01984163001179695,
-0.04063574969768524,
0.03679176792502403,
0.0013732606312260032,
-0.033371713012456894,
0.005093390587717295,
0.055848658084869385,
0.004682265687733889,
0.04670260474085808,
0.009198297746479511,
-0.04345829784870148,
0.016540227457880974,
0.016030961647629738,
0.019812045618891716,
0.011475546285510063,
-0.015234296210110188,
0.002628054702654481,
-0.0022262835409492254,
0.032053299248218536,
-0.025421304628252983,
-0.02205469459295273,
0.012330823577940464,
0.03375321254134178,
0.001254916307516396,
0.012654556892812252,
0.05185225233435631,
0.04196897894144058,
-0.044680047780275345,
0.011228705756366253,
-0.00841277465224266,
-0.009355319663882256,
0.01966285891830921,
0.022718118503689766,
-0.017784390598535538,
-0.00294283963739872,
0.025135358795523643,
0.009839043021202087,
-0.011561946012079716,
-0.013577114790678024,
-0.0031178558710962534,
-0.02409876137971878,
0.008362233638763428,
-0.006105934735387564,
-0.004982232116162777,
0.016191065311431885,
0.020570319145917892,
0.002584243193268776,
-0.038523755967617035,
-0.018969854339957237,
0.011628778651356697,
0.027062518522143364,
0.002663984429091215,
-0.006905684247612953,
0.010225432924926281,
-0.01582205481827259,
-0.030360108241438866,
-0.025666343048214912,
-0.007696162443608046,
-0.0575273372232914,
-0.0038575108628720045,
-0.06847255676984787,
-0.025562003254890442,
0.008282125927507877,
-0.005246772430837154,
-0.008342347107827663,
-0.02317129448056221,
0.004247615113854408,
-0.010228097438812256,
0.08343587070703506,
-0.022240834310650826,
0.03389248624444008,
-0.02561919391155243,
-0.00505988672375679,
0.013769726268947124,
-0.04283316060900688,
0.01299375668168068,
-0.024804221466183662,
0.05212482810020447,
0.022312788292765617,
0.024753648787736893,
-0.023207994177937508,
-0.013124815188348293,
0.03197995200753212,
-0.0054837483912706375,
-0.005882314871996641,
0.02460055612027645,
0.03207606077194214,
0.051403939723968506,
-0.0424945093691349,
0.0020899935625493526,
0.04738520085811615,
-0.043164048343896866,
0.019802788272500038,
-0.019743256270885468,
0.03401830047369003,
0.08021748811006546,
-0.02026890590786934,
0.008446136489510536,
0.034647583961486816,
0.058598197996616364,
-0.017314989119768143,
-0.024471214041113853,
0.009805887937545776,
0.02506101503968239,
0.04184306785464287,
0.017268924042582512,
-0.011303258128464222,
-0.02334870584309101,
0.019506389275193214,
0.027045372873544693,
-0.03959287703037262,
-0.007039765827357769,
0.062487758696079254,
0.0034064825158566236,
-0.03499971702694893,
-0.029325056821107864,
0.009604519233107567,
0.004776630084961653,
0.021035756915807724,
0.005279259290546179,
0.027894936501979828,
-0.012841708958148956,
-0.02682717889547348,
0.004549039527773857,
-0.051994647830724716,
-0.03261815756559372,
0.00789085403084755,
-0.036232832819223404,
0.021744001656770706,
-0.029222797602415085,
0.036000628024339676,
0.010437005199491978,
0.006692699156701565,
-0.0017771859420463443,
0.0008123376755975187,
0.029347993433475494,
0.03530792146921158,
0.01639091782271862,
-0.007436615414917469,
0.03923284262418747,
-0.035848625004291534,
-0.05961382016539574,
0.0007898036274127662,
0.02091708593070507,
-0.0009513075347058475,
0.08036626130342484,
-0.043356433510780334,
0.015521424822509289,
-0.006502263713628054,
0.03396864980459213,
0.024759622290730476,
0.02255411632359028,
-0.032976649701595306,
0.005201562307775021,
0.05499764531850815,
0.010951762087643147,
-0.003455915953963995,
0.003739445935934782,
0.011257113888859749,
-0.003003427293151617,
0.03463512286543846,
0.02944745495915413,
0.06311073154211044,
-0.017942190170288086,
-0.010692032985389233,
-0.019116850569844246,
-0.04537331312894821,
-0.0020456654019653797,
0.030534517019987106,
0.041853565722703934,
-0.006723243743181229,
-0.02784849889576435,
0.0046854508109390736,
-0.015126374550163746,
-0.03246394172310829,
-0.008128315210342407,
-0.00873611681163311,
-0.007652853149920702,
-0.004966323263943195,
-0.009113602340221405,
0.07344340533018112,
-0.02098044566810131,
-0.009450895711779594,
-0.04490433633327484,
-0.03158039599657059,
0.0007039476768113673,
0.02715058997273445,
-0.02605815976858139,
-0.005289302673190832,
-0.03823620453476906,
-0.022663766518235207,
0.005640966817736626,
-0.01043088361620903,
-0.0565929152071476,
-0.003698561107739806,
-0.004745197016745806,
0.005834152456372976,
0.02835586480796337,
0.0027052254881709814,
0.00298563065007329,
0.022371817380189896,
-0.01594972051680088,
0.028760608285665512,
-0.04484586790204048,
0.00008922609413275495,
-0.03437674045562744,
-0.06077691912651062,
0.0346514917910099,
-0.0022133016027510166,
-0.03810468316078186,
0.10556193441152573,
0.06524631381034851,
0.06401804834604263,
-0.05181398242712021,
0.015386838465929031,
-0.024342840537428856,
-0.013887026347219944,
-0.006467651575803757,
0.009496420621871948,
-0.04007972031831741,
-0.03184090182185173,
-0.02499237470328808,
-0.003065207740291953,
0.0015128037193790078,
0.025548096746206284,
0.012258948758244514,
-0.028878148645162582,
-0.039671462029218674,
-0.011698441579937935,
-0.0081594567745924,
0.001300221774727106,
0.008005504496395588,
0.03139667212963104,
0.024223702028393745,
-0.016806557774543762,
-0.0436977744102478,
0.030612895265221596,
-0.017804518342018127,
0.09095276147127151,
-0.022084005177021027,
-0.07006479799747467,
-0.018351130187511444,
0.004296056926250458,
-0.044821858406066895,
0.00954598467797041,
-0.04050442576408386,
-0.005907624028623104,
-0.023837340995669365,
0.00586932897567749,
-0.01245786901563406,
0.0072714039124548435,
0.02938883937895298,
0.02316507138311863,
-0.006191734690219164,
-0.0008513381471857429,
-0.0492808036506176,
0.00413980707526207,
-0.0077215232886374,
-0.012444066815078259,
-0.013986808247864246,
0.026622824370861053,
-0.016384201124310493,
0.004138469696044922,
0.015726616606116295,
-0.049991536885499954,
-0.012829532846808434,
-0.004603931214660406,
0.014810297638177872,
0.02935769595205784,
-0.013323894701898098,
0.039028771221637726,
-0.0024176586885005236,
0.0020302277989685535,
-0.005659355781972408,
0.0057397037744522095,
-0.029805246740579605,
-0.0006501467432826757,
0.0018505473854020238,
-0.0925813838839531,
0.00010515539906919003,
-0.04281146079301834,
0.005975720938295126,
0.04750821739435196,
-0.0028575127944350243,
0.015138174407184124,
-0.024606432765722275,
-0.008913441561162472,
-0.011222027242183685,
0.005434786900877953,
-0.014808743260800838,
-0.03812108188867569,
0.04696440324187279,
0.015118197537958622,
-0.008368046954274178,
-0.005438074469566345,
0.05818912386894226,
0.035204268991947174,
-0.018496785312891006,
-0.01206293422728777,
0.00513375224545598,
0.03492836654186249,
0.012595625594258308,
0.022665686905384064,
0.03253659978508949,
0.057427410036325455,
0.04984793812036514,
0.0006519967573694885,
-0.007185744121670723,
0.011617791838943958
] |
Active Learning with AutoNLP and Prodigy | abhishek | December 23, 2021 | autonlp-prodigy | research, partnerships, nlp | https://huggingface.co/blog/autonlp-prodigy | Dataset Now begins the most interesting part of this article. After looking at a lot of datasets and different types of problems, we stumbled upon BBC News Classification dataset on Kaggle. This dataset was used in an inclass competition and can be accessed here. Let's take a look at this dataset: As we can see this is a classification dataset. There is a Text column which is the text of the news article and a Category column which is the class of the article. Overall, there are 5 different classes: business, entertainment, politics, sport & tech. Training a multi-class classification model on this dataset using AutoNLP is a piece of cake. Step 1: Download the dataset. Step 2: Open AutoNLP and create a new project. Step 3: Upload the training dataset and choose auto-splitting. Step 4: Accept the pricing and train your models. Please note that in the above example, we are training 15 different multi-class classification models. AutoNLP pricing can be as low as $10 per model. AutoNLP will select the best models and do hyperparameter tuning for you on its own. So, now, all we need to do is sit back, relax and wait for the results. After around 15 minutes, all models finished training and the results are ready. It seems like the best model scored 98.67% accuracy! So, we are now able to classify the articles in the dataset with an accuracy of 98.67%! But wait, we were talking about active learning and Prodigy. What happened to those? 🤔 We did use Prodigy as we will see soon. We used it to label this dataset for the named entity recognition task. Before starting the labeling part, we thought it would be cool to have a project in which we are not only able to detect the entities in news articles but also categorize them. That's why we built this classification model on existing labels. | [
-0.026950296014547348,
-0.10727587342262268,
0.04358785226941109,
0.02827487140893936,
0.023101259022951126,
0.08315297961235046,
0.012778290547430515,
0.04351232573390007,
-0.12232313305139542,
0.0165463387966156,
-0.08164848387241364,
0.06321990489959717,
-0.04121464490890503,
0.09296520054340363,
0.08665231615304947,
-0.05148978531360626,
0.04822907596826553,
0.02842695638537407,
-0.014632042497396469,
0.015634456649422646,
-0.038562145084142685,
-0.03606552630662918,
0.05704307556152344,
-0.04403175413608551,
0.034174490720033646,
0.03153262287378311,
0.013822649605572224,
0.02648496814072132,
-0.011695686727762222,
0.07320883870124817,
-0.1328669637441635,
0.016226477921009064,
0.010133931413292885,
0.04572506994009018,
-0.05125448852777481,
0.06852938234806061,
-0.07039278000593185,
0.04072351008653641,
0.009535054676234722,
-0.10307798534631729,
-0.06393933296203613,
-0.017399443313479424,
-0.03456520289182663,
0.08059374243021011,
-0.0646790936589241,
-0.053467582911252975,
-0.13590942323207855,
0.03306626155972481,
0.028430728241801262,
-0.04028467461466789,
-0.04454372078180313,
0.026879534125328064,
-0.039332013577222824,
0.03785952180624008,
-0.025093693286180496,
0.0067379530519247055,
0.08435264974832535,
-0.08410722017288208,
0.020504774525761604,
0.03288162499666214,
0.09960697591304779,
-0.00023115570365916938,
-0.005822725594043732,
-0.046887971460819244,
0.02973097376525402,
-0.0026191615033894777,
-0.04136881232261658,
0.03326613828539848,
-0.0605742409825325,
-0.004975613672286272,
0.012754851020872593,
-0.05310370400547981,
-0.036055803298950195,
-0.008011491037905216,
0.004765553865581751,
-0.03953390195965767,
-0.0036252299323678017,
-0.03528907150030136,
-0.006310662720352411,
-0.03274664655327797,
-0.012453308328986168,
0.033983878791332245,
0.04888617992401123,
0.06735167652368546,
0.07801268994808197,
-0.02813900262117386,
-0.02893143892288208,
-0.01715407520532608,
-0.018889617174863815,
0.058611176908016205,
-0.018192267045378685,
-0.10453391820192337,
0.10582008212804794,
0.030804315581917763,
0.016571512445807457,
-0.03232904523611069,
0.01870705746114254,
0.02470109798014164,
0.041715387254953384,
-0.03675626218318939,
-0.006908942013978958,
-0.03679274767637253,
0.07694124430418015,
-0.01890738122165203,
-0.061399612575769424,
0.013975518755614758,
-0.04377983883023262,
-0.031271081417798996,
-0.05018841102719307,
0.08781002461910248,
-0.0153579730540514,
-0.013524056412279606,
-0.028526823967695236,
0.06566791236400604,
-0.10155554860830307,
-0.014622431248426437,
0.0300920233130455,
-0.018200622871518135,
0.0028560964856296778,
0.059788789600133896,
-0.06419292837381363,
0.011953015811741352,
-0.04169540852308273,
0.0008348581031896174,
-0.04158106446266174,
-0.022181618958711624,
0.05509696528315544,
0.04245203733444214,
0.017410701140761375,
0.0037608074489980936,
0.04246985912322998,
-0.013948582112789154,
0.049925025552511215,
-0.025528479367494583,
0.03429080545902252,
0.037220846861600876,
0.003116750391200185,
-0.02146652527153492,
0.015289767645299435,
0.027317015454173088,
-0.04309768229722977,
0.031450700014829636,
-0.051190078258514404,
0.03137098252773285,
0.033087823539972305,
0.020645327866077423,
-0.0710439383983612,
0.009000380523502827,
-0.012387721799314022,
-0.02730538137257099,
-0.06425042450428009,
0.022417273372411728,
-0.017276117578148842,
-0.06022605672478676,
0.031692273914813995,
0.08334257453680038,
0.013658000156283379,
-0.04555770382285118,
-0.03716122731566429,
0.009704474359750748,
0.0011706628138199449,
-0.015193039551377296,
-0.002244396600872278,
0.00036926587927155197,
-0.010929353535175323,
-0.027640171349048615,
-0.031016629189252853,
0.02657839097082615,
0.007659255061298609,
0.04762181639671326,
-0.02130020596086979,
-0.04852236434817314,
0.059750933200120926,
-0.04510035738348961,
0.004427315201610327,
-0.005721699446439743,
0.004805521108210087,
0.02779214456677437,
-0.021085131913423538,
-0.020519332960247993,
0.0016534466994926333,
-0.0202450230717659,
0.03595680370926857,
0.024588337168097496,
0.037400372326374054,
-0.043536290526390076,
0.024221176281571388,
-0.015436614863574505,
0.008856894448399544,
0.03414255380630493,
0.024282407015562057,
-0.008717532269656658,
0.06237678974866867,
0.01017049327492714,
0.0316874124109745,
-0.07034691423177719,
-0.033122677356004715,
0.1172739565372467,
0.07336865365505219,
0.017123447731137276,
0.060564085841178894,
-0.042172543704509735,
0.0031326021999120712,
-0.028119193390011787,
0.04431864246726036,
-0.04654001444578171,
-0.04087894409894943,
0.021587073802947998,
-0.004681935999542475,
0.004981562029570341,
-0.0018506175838410854,
-0.0823458880186081,
0.06548528373241425,
-0.03989264741539955,
-0.024629216641187668,
-0.0019524561939761043,
0.06098923459649086,
0.06648467481136322,
0.01352889183908701,
-0.04595039412379265,
0.1603841781616211,
-0.03267218545079231,
0.011036577634513378,
0.037827517837285995,
-0.04736559838056564,
0.028383737429976463,
0.10721934586763382,
0.07070562988519669,
0.036143410950899124,
-0.06717799603939056,
-0.05403823405504227,
0.018270965665578842,
0.0654226765036583,
-0.023487871512770653,
-0.020979758352041245,
-0.05242244899272919,
0.015649743378162384,
-0.028168076649308205,
0.017174724489450455,
0.0024792400654405355,
0.041755761951208115,
0.006375893950462341,
-0.03983074426651001,
0.06359949707984924,
-0.026650002226233482,
0.024762194603681564,
0.11949832737445831,
0.053127821534872055,
-0.04079722613096237,
-0.08416026830673218,
0.003551212139427662,
0.01760167069733143,
-0.046802449971437454,
-0.003397117368876934,
-0.018451903015375137,
-0.0074520292691886425,
0.027625273913145065,
-0.025527669116854668,
-0.047214847058057785,
0.04702220857143402,
-0.007909417152404785,
-0.00881898868829012,
-0.01935044303536415,
-0.05360968038439751,
0.013900475576519966,
-0.028898848220705986,
-0.0327024832367897,
0.0024200233165174723,
0.054361749440431595,
-0.03994397819042206,
-0.006688345223665237,
0.013417952693998814,
0.03408351540565491,
0.017444781959056854,
0.015286627225577831,
0.0560019351541996,
0.001554704736918211,
-0.02365713194012642,
0.014199716039001942,
-0.019542912021279335,
-0.06244979053735733,
-0.07823581993579865,
0.010068519972264767,
0.008314120583236217,
-0.007054561749100685,
-0.0335070937871933,
0.029900584369897842,
-0.02557218261063099,
-0.012510840781033039,
0.02720278687775135,
0.0026590784545987844,
0.03015858121216297,
-0.003349201288074255,
-0.03273557499051094,
0.05620855465531349,
0.0012007426703348756,
-0.006545879878103733,
0.009213846176862717,
0.0001627217570785433,
0.05697890743613243,
-0.01385619305074215,
0.045954685658216476,
-0.0030633159913122654,
0.012648308649659157,
-0.0063763391226530075,
0.035916224122047424,
0.030026959255337715,
0.019646745175123215,
-0.08181816339492798,
-0.005019812844693661,
0.047998636960983276,
-0.04003789648413658,
-0.014763705432415009,
-0.004633898381143808,
0.0590648278594017,
-0.011892473325133324,
0.004452551249414682,
0.004662917926907539,
0.013606888242065907,
0.01880211941897869,
-0.033306293189525604,
0.00798877701163292,
0.026809507980942726,
0.03373343497514725,
-0.020642291754484177,
-0.0006895762635394931,
0.005295970011502504,
0.04424748569726944,
-0.04181300103664398,
0.06491754949092865,
-0.024198420345783234,
0.0544087216258049,
-0.023054735735058784,
0.00972569640725851,
0.002047402085736394,
0.03649374097585678,
0.033785440027713776,
-0.028766993433237076,
0.02228091098368168,
-0.026488246396183968,
-0.01770142652094364,
0.05397256836295128,
-0.0018194080330431461,
0.017060846090316772,
-0.011033725924789906,
0.06861106306314468,
0.012841625139117241,
0.018655385822057724,
-0.025912249460816383,
0.04806059971451759,
0.0026813156437128782,
-0.011097597889602184,
0.007776796352118254,
-0.0048540798015892506,
-0.0465068481862545,
0.030072523280978203,
-0.00019098767370451242,
-0.05558093637228012,
-0.01570364646613598,
-0.011127525009214878,
0.015156873501837254,
0.04369766265153885,
-0.006985081825405359,
0.006263616029173136,
0.002942899940535426,
-0.028531106188893318,
-0.015162971802055836,
-0.026530766859650612,
0.009764488786458969,
0.06082480028271675,
-0.01639948971569538,
-0.0569942407310009,
-0.04922962933778763,
0.013382252305746078,
0.005246306769549847,
0.012225878424942493,
-0.003430997021496296,
0.028795186430215836,
0.008745619095861912,
0.04341595992445946,
0.026642445474863052,
-0.012084590271115303,
0.014830924570560455,
0.008714500814676285,
0.020188363268971443,
-0.0011098312679678202,
0.05314905196428299,
0.0693851187825203,
-0.012262159958481789,
-0.023804884403944016,
-0.013395024463534355,
-0.034539274871349335,
-0.031781163066625595,
-0.004807628225535154,
0.013551414012908936,
-0.044548358768224716,
0.022793544456362724,
0.009361612610518932,
0.014141404069960117,
-0.008561642840504646,
0.004751345608383417,
0.0012309696758165956,
-0.00021390197798609734,
0.017822381108999252,
-0.013304799795150757,
0.007021760102361441,
0.0012376985978335142,
-0.002548993332311511,
0.010472617112100124,
-0.013837648555636406,
-0.010001634247601032,
0.004607475362718105,
-0.0025311813224107027,
-0.005953365005552769,
-0.05108652636408806,
-0.017336731776595116,
0.03580230474472046,
-0.011490273289382458,
-0.0020064827986061573,
-0.01037845853716135,
-0.011480442248284817,
0.023994727060198784,
0.06561563163995743,
-0.034984637051820755,
-0.040272943675518036,
-0.002084072446450591,
-0.031897664070129395,
0.00665626535192132,
-0.020192980766296387,
0.0033620032481849194,
0.00780164310708642,
-0.01495655719190836,
-0.025355352088809013,
-0.021036969497799873,
0.034616392105817795,
0.016279174014925957,
0.024943482130765915,
-0.04749269783496857,
-0.043836560100317,
-0.03006119281053543,
-0.018652763217687607,
-0.008677908219397068,
0.012307579629123211,
0.02931000478565693,
-0.02702467143535614,
0.03895832225680351,
-0.003048479789867997,
-0.02236694097518921,
0.000194814259884879,
-0.014276953414082527,
0.029752757400274277,
-0.023970963433384895,
0.028553543612360954,
-0.01645306684076786,
-0.02022683061659336,
-0.015433874912559986,
0.018770786002278328,
0.031611498445272446,
-0.01492946594953537,
0.021588992327451706,
-0.03680127486586571,
0.06059117987751961,
0.04178335517644882,
-0.06320662796497345,
0.007986671291291714,
0.03727327659726143,
-0.024693777784705162,
0.0030831687618047,
0.04597171023488045,
-0.035569384694099426,
-0.010344027541577816,
-0.0004412659036461264,
0.021968482062220573,
0.007514057215303183,
0.0067120869643986225,
-0.008490078151226044,
0.025616401806473732,
0.03553616255521774,
-0.01997237652540207,
-0.02879619039595127,
0.018919557332992554,
0.026585493236780167,
0.0023257790599018335,
0.06350822001695633,
-0.009557611308991909,
0.02718423679471016,
-0.028276165947318077,
-0.018416540697216988,
-0.013372770510613918,
-0.009352157823741436,
-0.016294311732053757,
0.040553998202085495,
-0.011988554149866104,
-0.015423459932208061,
0.04747194051742554,
0.07343404740095139,
-0.00011383985111024231,
-0.019201019778847694,
0.029892591759562492,
-0.007974905893206596,
0.015713460743427277,
-0.04081971198320389,
0.03060866892337799,
-0.023684673011302948,
0.053457994014024734,
0.01309310644865036,
-0.0354447141289711,
-0.059111397713422775,
0.0068832323886454105,
0.01054618414491415,
-0.003716423176229,
-0.04637007787823677,
-0.018635232001543045,
0.017975451424717903,
-0.03164694830775261,
-0.04025730863213539,
0.008929659612476826,
-0.052012719213962555,
-0.0010048901895061135,
-0.007318983785808086,
-0.0096400436013937,
0.005880941171199083,
-0.046912383288145065,
-0.0173873882740736,
-0.04570400342345238,
-0.014012394472956657,
0.007139213383197784,
0.03867975249886513,
0.014541790820658207,
0.007505180314183235,
-0.036755289882421494,
-0.004992385394871235,
0.0006918010767549276,
-0.04320552200078964,
-0.020483635365962982,
-0.032901979982852936,
0.031978365033864975,
0.016326580196619034,
0.03278234601020813,
-0.024939587339758873,
-0.009433175437152386,
0.020251045003533363,
-0.017902443185448647,
-0.03247639536857605,
0.023702440783381462,
0.022393561899662018,
0.022639669477939606,
-0.009691608138382435,
0.008276915177702904,
-0.009134276770055294,
-0.0017342446371912956,
-0.010702776722609997,
-0.054678987711668015,
0.025859883055090904,
0.060341548174619675,
-0.0044499346986413,
-0.0020969316828995943,
0.012787449173629284,
0.008692738600075245,
0.020203202962875366,
-0.028164967894554138,
0.03734086453914642,
-0.0025214971974492073,
0.028162002563476562,
0.04140479490160942,
-0.03039482794702053,
0.006468639243394136,
0.020010335370898247,
0.013039173558354378,
-0.06637788563966751,
-0.009052461944520473,
0.042913489043712616,
-0.016924841329455376,
-0.026498526334762573,
-0.010606963187456131,
-0.03580692782998085,
0.014517703093588352,
0.016708415001630783,
0.04387899488210678,
0.021750425919890404,
-0.023685280233621597,
-0.016128527000546455,
-0.015676746144890785,
0.0024921090807765722,
-0.05528073385357857,
0.029218746349215508,
-0.0051515595987439156,
0.022568071261048317,
0.02871660515666008,
0.024859223514795303,
0.025902528315782547,
-0.04106234014034271,
0.0132344551384449,
0.008935431018471718,
0.02928239107131958,
0.006839130539447069,
-0.0021899279672652483,
0.0019075823947787285,
0.003974908031523228,
0.008882707916200161,
-0.0576929934322834,
0.020035704597830772,
-0.03281809762120247,
0.00810461025685072,
0.08506786823272705,
-0.03273611515760422,
-0.009128523990511894,
-0.02758077159523964,
0.03597494959831238,
0.02962324395775795,
0.01281834114342928,
0.009587586857378483,
0.0333416573703289,
0.0006892615929245949,
-0.0060194493271410465,
-0.0027655423618853092,
0.04172677919268608,
0.009081050753593445,
-0.021153602749109268,
0.0408945195376873,
0.029338521882891655,
0.03626183792948723,
-0.001314535504207015,
-0.04736451432108879,
-0.03266401216387749,
-0.031871214509010315,
-0.0018606220837682486,
0.01473736111074686,
0.026658257469534874,
-0.0011618990683928132,
-0.025283830240368843,
0.019959669560194016,
-0.03449356555938721,
-0.0004193914937786758,
-0.0190532635897398,
-0.014907087199389935,
-0.008317316882312298,
0.0062014758586883545,
0.0035979049280285835,
0.031033916398882866,
-0.013423033989965916,
-0.029369179159402847,
-0.045630667358636856,
-0.03702821955084801,
-0.002810007194057107,
0.04457631707191467,
0.01992332749068737,
-0.049937352538108826,
-0.017437856644392014,
-0.0019190169405192137,
-0.005394399631768465,
0.012840261682868004,
-0.05158356949687004,
-0.0037327446043491364,
-0.008189680986106396,
0.005474008619785309,
0.01484256237745285,
0.005494194570928812,
0.011394699104130268,
0.046616457402706146,
-0.03301955759525299,
0.006822992581874132,
-0.03121795691549778,
-0.03773210570216179,
0.0019326353212818503,
-0.057790353894233704,
-0.006244950462132692,
-0.002401327481493354,
-0.020497748628258705,
0.04051617160439491,
0.0672844648361206,
0.037950560450553894,
-0.036318495869636536,
0.0020886033307760954,
-0.03597867861390114,
0.0008669355302117765,
0.006975498981773853,
0.028919752687215805,
-0.047944702208042145,
0.004657888785004616,
0.010090397670865059,
-0.027147911489009857,
-0.01882956549525261,
0.018370797857642174,
0.01394317951053381,
-0.030467424541711807,
-0.032359529286623,
0.040399059653282166,
0.013143954798579216,
-0.01171087846159935,
0.016810191795229912,
-0.007773134857416153,
-0.015301891602575779,
0.027570102363824844,
-0.02231438085436821,
0.062086377292871475,
-0.042549364268779755,
0.05134250968694687,
-0.033665984869003296,
-0.06499405205249786,
0.003711549798026681,
0.016766445711255074,
-0.05035189539194107,
0.007308811880648136,
-0.06477566063404083,
-0.03162170574069023,
-0.04412161931395531,
-0.013698654249310493,
-0.025823453441262245,
-0.020414739847183228,
-0.0013373916735872626,
0.008764408528804779,
-0.006048927549272776,
0.034292902797460556,
-0.06372365355491638,
-0.007359568495303392,
0.023084115236997604,
0.033362533897161484,
0.01959584467113018,
-0.003942352253943682,
0.023963704705238342,
-0.0023404574021697044,
0.01164545863866806,
-0.012648461386561394,
0.004673325922340155,
-0.0017892345786094666,
0.04403676465153694,
0.0159743819385767,
-0.011584495194256306,
0.009918620809912682,
-0.012826106511056423,
0.005612491630017757,
-0.009418954141438007,
-0.005472484510391951,
-0.03866007924079895,
0.05344424396753311,
0.0005697938031516969,
-0.043894652277231216,
0.0117380041629076,
-0.01997602917253971,
0.029393116012215614,
0.05741184204816818,
0.012857471592724323,
0.0450594499707222,
0.011428412050008774,
0.00697516230866313,
0.042984288185834885,
0.011359797790646553,
-0.03517621010541916,
-0.0459149032831192,
0.03838469088077545,
0.01925514079630375,
-0.0055426605977118015,
0.00799507088959217,
0.05269867181777954,
0.031215285882353783,
-0.0038340853061527014,
-0.012104326859116554,
-0.03332063928246498,
-0.00011319682380417362,
0.009781420230865479,
0.031480323523283005,
0.001962272683158517,
0.059462420642375946,
0.03124471753835678,
0.032974809408187866,
0.027120407670736313,
-0.02869485691189766
] |
Active Learning with AutoNLP and Prodigy | abhishek | December 23, 2021 | autonlp-prodigy | research, partnerships, nlp | https://huggingface.co/blog/autonlp-prodigy | AutoNLP AutoNLP is a framework created by Hugging Face that helps you to build your own state-of-the-art deep learning models on your own dataset with almost no coding at all. AutoNLP is built on the giant shoulders of Hugging Face's transformers, datasets, inference-api and many other tools. With AutoNLP, you can train SOTA transformer models on your own custom dataset, fine-tune them (automatically) and serve them to the end-user. All models trained with AutoNLP are state-of-the-art and production-ready. At the time of writing this article, AutoNLP supports tasks like binary classification, regression, multi class classification, token classification (such as named entity recognition or part of speech), question answering, summarization and more. You can find a list of all the supported tasks here. AutoNLP supports languages like English, French, German, Spanish, Hindi, Dutch, Swedish and many more. There is also support for custom models with custom tokenizers (in case your language is not supported by AutoNLP). | [
0.024911336600780487,
-0.048313628882169724,
0.08043532073497772,
-0.019464941695332527,
0.01802903600037098,
0.1251620352268219,
0.02202143706381321,
0.07878454029560089,
-0.0431026853621006,
0.011779485270380974,
-0.1699618548154831,
0.09329287707805634,
-0.03751116245985031,
0.04263831302523613,
0.03820206969976425,
-0.02994087152183056,
0.025696448981761932,
0.014939404092729092,
-0.01460246928036213,
0.054190922528505325,
-0.04722362384200096,
-0.0696641132235527,
0.05050637573003769,
0.02238028310239315,
0.010558515787124634,
-0.024539070203900337,
-0.006750618573278189,
0.021683499217033386,
-0.04009438306093216,
0.0132779935374856,
-0.13310010731220245,
-0.0076167164370417595,
-0.0460536815226078,
-0.013512995094060898,
-0.0005047255544923246,
-0.018550394102931023,
-0.10980574041604996,
0.035770416259765625,
0.021821023896336555,
-0.04051349684596062,
-0.03777533769607544,
0.04162835329771042,
-0.04609916731715202,
0.04335253685712814,
-0.00394104141741991,
-0.030340643599629402,
-0.20426304638385773,
0.0641397163271904,
0.001267558429390192,
-0.03172040730714798,
-0.046219997107982635,
0.05947359278798103,
-0.0068663302809000015,
0.03990327939391136,
0.021344631910324097,
0.028264828026294708,
-0.011698395013809204,
-0.09692128002643585,
0.004599723964929581,
0.008720127865672112,
0.027040885761380196,
-0.031989432871341705,
0.006931787822395563,
-0.0037169938441365957,
0.020589737221598625,
-0.018831195309758186,
-0.055618803948163986,
-0.0038909693248569965,
-0.0526549331843853,
0.0016210128087550402,
-0.050681985914707184,
-0.025676514953374863,
-0.05024160072207451,
0.0008425369160249829,
0.007518327794969082,
-0.030346088111400604,
-0.020288480445742607,
0.0020984227303415537,
-0.02095320262014866,
0.014720218256115913,
0.02927568182349205,
0.03595120087265968,
0.06759444624185562,
0.03525802865624428,
0.035075925290584564,
0.02243562787771225,
-0.020866088569164276,
-0.08303127437829971,
-0.043584611266851425,
0.0475132092833519,
0.014180422760546207,
-0.10683239251375198,
-0.006922929082065821,
-0.018534190952777863,
0.03298291936516762,
-0.026703111827373505,
0.023344406858086586,
0.06567324697971344,
-0.02191009931266308,
-0.03106527030467987,
-0.0002405502018518746,
-0.040401484817266464,
0.00060503144050017,
-0.04758337140083313,
-0.028212983161211014,
0.03173408284783363,
0.015374730341136456,
-0.03635559603571892,
-0.01772046461701393,
-0.00005758277984568849,
0.02264687418937683,
-0.05183136835694313,
0.016025720164179802,
0.08321688324213028,
-0.0902511328458786,
0.04637015238404274,
0.00442138034850359,
-0.005018478725105524,
0.016420036554336548,
0.028242897242307663,
-0.0024852361530065536,
0.01878923550248146,
-0.0016480822814628482,
-0.008699496276676655,
0.019725728780031204,
0.04695533215999603,
0.024847811087965965,
-0.014084643684327602,
0.03345530107617378,
-0.02033049613237381,
0.008848682045936584,
-0.025433184579014778,
0.039809804409742355,
0.04457017779350281,
0.05356268957257271,
-0.021559245884418488,
0.016998810693621635,
-0.07140819728374481,
0.04162370413541794,
0.06789182126522064,
-0.037245865911245346,
0.0617624968290329,
-0.02739754319190979,
0.011844645254313946,
0.05853091552853584,
0.06291532516479492,
-0.07895515859127045,
0.08293697983026505,
-0.034613173454999924,
0.02499055117368698,
-0.08481471985578537,
0.018600741401314735,
0.012846141122281551,
-0.058407366275787354,
0.00795125961303711,
0.031063741073012352,
-0.013680861331522465,
-0.06409422308206558,
-0.00906395260244608,
-0.03379693254828453,
-0.005064527038484812,
-0.022975804284214973,
-0.06615208834409714,
0.032703500241041183,
0.005141282454133034,
-0.04870301112532616,
-0.04463156685233116,
0.0398794524371624,
0.030732745304703712,
0.013987073674798012,
-0.0006421305006369948,
-0.041067976504564285,
0.04666838422417641,
-0.053430523723363876,
0.050815146416425705,
-0.006788247264921665,
0.03600034862756729,
0.05498169735074043,
0.0208270326256752,
0.010734396055340767,
-0.04653999209403992,
0.06086047738790512,
0.03201783820986748,
0.06277783960103989,
0.05986839160323143,
-0.018458766862750053,
0.0024288955610245466,
-0.01601848192512989,
0.015023946762084961,
0.0223921500146389,
0.010917763225734234,
-0.027906889095902443,
0.03278553858399391,
-0.00422693369910121,
0.04580565169453621,
-0.06106766313314438,
-0.07156039774417877,
0.14168235659599304,
0.036972202360630035,
0.052257247269153595,
0.07716540992259979,
-0.06803421676158905,
0.024556012824177742,
-0.031481172889471054,
0.03981857746839523,
-0.007286407053470612,
0.0012705029221251607,
-0.0034145074896514416,
0.015858575701713562,
-0.024224555119872093,
0.03651445358991623,
-0.12511354684829712,
0.05245824158191681,
-0.06992272287607193,
-0.02376377396285534,
-0.04556071758270264,
-0.018323048949241638,
0.024778390303254128,
0.03906019404530525,
0.03810444474220276,
0.16679620742797852,
-0.08753611147403717,
-0.03854219987988472,
-0.022740429267287254,
-0.05248492583632469,
0.047927696257829666,
0.055900610983371735,
0.04133959114551544,
0.1137840673327446,
-0.05480054020881653,
-0.025425847619771957,
-0.08466754108667374,
0.023270728066563606,
-0.010946954600512981,
-0.011957568116486073,
-0.03364947438240051,
0.09599359333515167,
-0.004561443813145161,
0.01956821046769619,
0.05173477903008461,
0.03011986054480076,
0.020128579810261726,
0.021597178652882576,
0.009712908416986465,
0.01844630390405655,
0.04507226496934891,
0.11071738600730896,
-0.009471195749938488,
-0.000905958644580096,
0.030621636658906937,
-0.03285980597138405,
0.057262830436229706,
0.011121208779513836,
0.011297835037112236,
0.009575897827744484,
0.010131417773663998,
0.034833874553442,
-0.019300313666462898,
-0.010724641382694244,
0.06800267100334167,
0.01617191731929779,
-0.039657846093177795,
-0.03836260735988617,
-0.031836528331041336,
0.0011598467826843262,
-0.06645707041025162,
0.010972784832119942,
0.05520353838801384,
0.018053680658340454,
0.021886086091399193,
0.0018348367884755135,
-0.015114071778953075,
0.023575708270072937,
0.014956433326005936,
0.027872532606124878,
0.05224619805812836,
0.005460898391902447,
0.0060900975950062275,
-0.03023829683661461,
-0.057009655982255936,
-0.024416450411081314,
-0.03634108603000641,
0.03384702652692795,
0.04297098517417908,
0.023678872734308243,
-0.0455595925450325,
0.008153146132826805,
-0.03405627980828285,
-0.030560554936528206,
0.00326625001616776,
0.027129659429192543,
0.0524882972240448,
-0.014571314677596092,
-0.004370252601802349,
0.005249029025435448,
-0.006530651357024908,
-0.006455686874687672,
0.0035863847006112337,
0.007809356786310673,
0.027921531349420547,
0.012296818196773529,
0.04035694897174835,
-0.0017399651696905494,
0.01622973568737507,
-0.008448309265077114,
0.040307145565748215,
0.013064523227512836,
0.00979119073599577,
-0.09800248593091965,
-0.05400346964597702,
0.008949141018092632,
-0.01062370091676712,
0.039427563548088074,
-0.023499729111790657,
0.05848934128880501,
0.015029290691018105,
-0.019232843071222305,
0.02795066125690937,
-0.0008958061225712299,
0.008910945616662502,
0.06724358350038528,
0.01765928789973259,
-0.0027975980192422867,
0.019027050584554672,
-0.050311263650655746,
-0.017519798129796982,
0.025600476190447807,
0.036684829741716385,
-0.0493646077811718,
0.02246294543147087,
-0.013043500483036041,
0.02199864760041237,
-0.025220612064003944,
-0.017552541568875313,
0.019522560760378838,
-0.013773416168987751,
0.013135356828570366,
-0.02219484932720661,
-0.010403789579868317,
0.00992621574550867,
-0.02067086286842823,
0.03741932287812233,
-0.039568204432725906,
-0.006529300473630428,
0.006264657247811556,
0.040834903717041016,
0.02245417982339859,
0.0007745471666567028,
-0.02852332964539528,
-0.016888994723558426,
0.005800595972687006,
-0.0006824771990068257,
0.014227612875401974,
-0.015059069730341434,
-0.03749891743063927,
0.012464771047234535,
-0.027113448828458786,
-0.03451776131987572,
-0.01572316884994507,
-0.018020523712038994,
-0.007623780053108931,
0.013408351689577103,
0.026085427030920982,
-0.008397380821406841,
0.006722646299749613,
-0.005716260522603989,
0.002798288594931364,
0.02188969776034355,
-0.02612883970141411,
0.03278143331408501,
-0.04197237268090248,
-0.06753689050674438,
-0.038286350667476654,
0.05739367753267288,
0.03199976682662964,
-0.004991909954696894,
0.011321082711219788,
0.03595463186502457,
-0.0034535429440438747,
0.030539430677890778,
0.026837818324565887,
0.004754468332976103,
0.001727843307889998,
0.01800154522061348,
-0.015078442171216011,
-0.04225880280137062,
0.06244490295648575,
0.048349346965551376,
-0.036275167018175125,
-0.022197898477315903,
-0.011362136341631413,
0.005540002137422562,
0.005623324308544397,
-0.01554187573492527,
0.01225434523075819,
0.0044067311100661755,
0.023660577833652496,
0.02842423878610134,
0.01239154115319252,
-0.026194129139184952,
0.02716033346951008,
0.008754742331802845,
-0.00902580376714468,
0.009673637337982655,
-0.008837216533720493,
0.01701570488512516,
0.02216852828860283,
-0.022025948390364647,
0.015752067789435387,
-0.0507822223007679,
-0.026429230347275734,
-0.0021608159877359867,
-0.004668144043534994,
0.037372518330812454,
-0.025711283087730408,
-0.03924066200852394,
0.056978750973939896,
0.0031071885023266077,
-0.001285501872189343,
0.016486650332808495,
-0.0019831901881843805,
0.009511697106063366,
0.06544546782970428,
0.003633195301517844,
-0.03088654950261116,
-0.03114740364253521,
-0.011072563007473946,
0.010886355303227901,
0.009068218059837818,
0.016595780849456787,
-0.012958426028490067,
-0.03154518082737923,
0.0141760790720582,
-0.016761669889092445,
0.02145013026893139,
0.011927392333745956,
-0.022315053269267082,
-0.01896115578711033,
-0.015884889289736748,
-0.006198483053594828,
0.026408661156892776,
0.005709809251129627,
0.014532742090523243,
0.004779690410941839,
-0.02958086133003235,
0.008344961330294609,
-0.00785515271127224,
-0.00829682033509016,
-0.030198901891708374,
-0.0017100059194490314,
0.031907446682453156,
-0.015789322555065155,
0.02726251631975174,
0.003366843331605196,
-0.044706445187330246,
-0.031573593616485596,
0.009969341568648815,
0.018608752638101578,
0.0277232825756073,
-0.016445482149720192,
-0.0409565269947052,
0.012425576336681843,
0.033652398735284805,
-0.03840518742799759,
-0.010502822697162628,
0.03615693375468254,
0.0031387638300657272,
0.032926153391599655,
0.005992583464831114,
-0.039883483201265335,
-0.014901963993906975,
-0.017412852495908737,
0.027174687013030052,
0.013959145173430443,
-0.013437946327030659,
-0.03173637017607689,
-0.01122105959802866,
0.01302413921803236,
-0.04175817593932152,
0.008780833333730698,
0.02319858781993389,
-0.03331001475453377,
-0.020976711064577103,
0.06629737466573715,
0.03716595098376274,
0.007907591760158539,
-0.05998455733060837,
0.006166205275803804,
-0.016354773193597794,
0.004359093029052019,
0.013949953019618988,
0.0005398307694122195,
-0.028205305337905884,
0.014439520426094532,
0.05388833209872246,
0.06602334976196289,
-0.013307743705809116,
0.035988546907901764,
-0.0065772938542068005,
-0.003190214280039072,
-0.008336659520864487,
-0.03980397433042526,
0.022885821759700775,
-0.0394771434366703,
0.013000456616282463,
-0.028442375361919403,
-0.014861730858683586,
-0.009204419329762459,
-0.0004212478525005281,
0.03240593522787094,
-0.05174679309129715,
-0.03349120542407036,
0.026372121647000313,
-0.00788259506225586,
-0.014144204556941986,
-0.03735312819480896,
0.02053174003958702,
-0.024965981021523476,
-0.01957833021879196,
0.004432132001966238,
0.01950042136013508,
-0.013360382989048958,
-0.031627025455236435,
-0.005733779165893793,
-0.010483518242835999,
0.009566021151840687,
0.005405768286436796,
0.007886962965130806,
-0.010944507084786892,
-0.013923190534114838,
-0.014231983572244644,
-0.018540892750024796,
0.04179059714078903,
-0.030178651213645935,
-0.015901414677500725,
-0.006066921167075634,
0.024787157773971558,
0.015900470316410065,
0.03716275840997696,
0.00792965292930603,
0.003823753446340561,
-0.0031585015822201967,
0.028790131211280823,
-0.027052905410528183,
-0.024356309324502945,
0.011773848906159401,
0.006848685909062624,
-0.04825085029006004,
-0.006911284755915403,
0.0187247134745121,
-0.02034814842045307,
-0.008979164063930511,
-0.04871782660484314,
0.027117129415273666,
0.0624624602496624,
0.0015790824545547366,
-0.0033464781008660793,
0.014543975703418255,
0.0007768312352709472,
-0.010425237007439137,
-0.011469418182969093,
-0.0035456479527056217,
0.03151141479611397,
0.03486904501914978,
0.02696453407406807,
0.025921953842043877,
0.005590219981968403,
-0.01753290742635727,
0.007786108180880547,
-0.06957966089248657,
0.033790215849876404,
0.029833216220140457,
-0.019467387348413467,
0.015720494091510773,
-0.007162339985370636,
-0.021963035687804222,
0.007955213077366352,
0.019802458584308624,
0.011082218959927559,
0.043861884623765945,
0.01389423105865717,
0.006089529953896999,
-0.00043843581806868315,
-0.027642209082841873,
-0.014285869896411896,
0.07461916655302048,
-0.010723656974732876,
0.042794350534677505,
0.018510598689317703,
0.016489623114466667,
0.030728371813893318,
-0.013743007555603981,
0.038626622408628464,
-0.014309745281934738,
0.06549634039402008,
-0.009517916478216648,
0.027210358530282974,
0.02012183517217636,
-0.03950819745659828,
-0.031209690496325493,
0.007268178276717663,
0.015366259962320328,
-0.039024077355861664,
-0.013115422800183296,
0.04576543718576431,
0.005198889411985874,
-0.013102378696203232,
0.006441798526793718,
0.023559439927339554,
0.06231900304555893,
0.04865366593003273,
-0.00518465181812644,
0.028554722666740417,
0.04159523919224739,
0.002290388336405158,
0.04035266116261482,
0.026950467377901077,
0.00968714989721775,
-0.019315581768751144,
0.06696715205907822,
0.026958458125591278,
0.05321740731596947,
-0.023337995633482933,
-0.00035186755121685565,
0.016133179888129234,
-0.03647560998797417,
-0.03226524963974953,
0.021095922216773033,
0.012057015672326088,
-0.014557556249201298,
-0.0020885528065264225,
0.024631178006529808,
-0.008423667401075363,
0.030154993757605553,
0.0039340355433523655,
-0.004984675906598568,
-0.014220639131963253,
-0.028078345581889153,
0.014522984623908997,
0.03678553178906441,
-0.010553444735705853,
-0.012062080204486847,
-0.02031463012099266,
-0.029393749311566353,
-0.011715186759829521,
-0.00935029610991478,
-0.023923523724079132,
-0.06664817780256271,
-0.02576783485710621,
-0.006808992475271225,
-0.03324950486421585,
0.009360254742205143,
-0.01063719391822815,
-0.036392081528902054,
-0.0136498948559165,
0.05155634880065918,
0.004485527519136667,
0.005848103202879429,
0.017088472843170166,
0.002989153377711773,
-0.07919209450483322,
-0.017907340079545975,
-0.035199105739593506,
-0.007645501755177975,
-0.019743645563721657,
-0.04766570031642914,
0.05460551008582115,
-0.012576216831803322,
-0.017545511946082115,
0.029652738943696022,
0.06637628376483917,
-0.005661536008119583,
-0.042291633784770966,
-0.009523986838757992,
-0.028614843264222145,
-0.026978179812431335,
0.05523841083049774,
0.039246074855327606,
-0.014625168405473232,
0.0042535774409770966,
-0.013406239449977875,
-0.032019563019275665,
0.001381928101181984,
0.024125609546899796,
0.03842729330062866,
0.01741102710366249,
-0.0628959983587265,
0.02800872176885605,
0.019997932016849518,
-0.0042512072250247,
0.02826850675046444,
0.020954027771949768,
0.0201664287596941,
0.005097145214676857,
-0.03672945126891136,
0.017807578667998314,
-0.01833682507276535,
0.024936851114034653,
-0.053805895149707794,
-0.07139108330011368,
-0.032872553914785385,
0.009121404960751534,
0.026061715558171272,
-0.008692501112818718,
-0.04282370209693909,
0.0024810691829770803,
-0.051293663680553436,
0.0006892872625030577,
-0.005669320467859507,
0.01897726021707058,
0.034997083246707916,
0.01075911708176136,
-0.015173010528087616,
-0.008565307594835758,
-0.004555038176476955,
0.0037744620349258184,
0.0045837173238396645,
0.04096983000636101,
0.050098199397325516,
0.004804077558219433,
-0.00031220680102705956,
-0.03285395726561546,
-0.010774482041597366,
-0.0028099585324525833,
-0.04537074267864227,
0.023846499621868134,
-0.00036026639281772077,
-0.00683708256110549,
-0.007978009060025215,
0.019599933177232742,
0.02603951096534729,
-0.03444565087556839,
0.03340333700180054,
-0.012572103179991245,
-0.007516639307141304,
-0.015003450214862823,
-0.0012820601696148515,
-0.06435594707727432,
-0.0056209745816886425,
-0.015988796949386597,
-0.005961078684777021,
0.04416223615407944,
0.02652420848608017,
0.026545098051428795,
-0.03402712941169739,
0.010827728547155857,
-0.008391118608415127,
0.0015487424097955227,
-0.020456498488783836,
-0.061916422098875046,
0.0003256769268773496,
0.03983105719089508,
-0.002857599640265107,
-0.0057581146247684956,
0.010584654286503792,
0.0010059620253741741,
-0.019774027168750763,
-0.02291850745677948,
-0.015657590702176094,
-0.017551753669977188,
-0.005427140276879072,
0.005118248518556356,
-0.01772150583565235,
0.06884881854057312,
0.05010879784822464,
-0.007674587890505791,
-0.05338625982403755,
-0.0017867699498310685
] |
Active Learning with AutoNLP and Prodigy | abhishek | December 23, 2021 | autonlp-prodigy | research, partnerships, nlp | https://huggingface.co/blog/autonlp-prodigy | Prodigy Prodigy is an annotation tool developed by Explosion (the makers of spaCy). It is a web-based tool that allows you to annotate your data in real time. Prodigy supports NLP tasks such as named entity recognition (NER) and text classification, but it's not limited to NLP! It supports Computer Vision tasks and even creating your own tasks! You can try the Prodigy demo: here. Note that Prodigy is a commercial tool. You can find out more about it here. We chose Prodigy as it is one of the most popular tools for labeling data and is infinitely customizable. It is also very easy to setup and use. | [
0.03282006457448006,
-0.04115317761898041,
0.059249378740787506,
0.005033261142671108,
0.0693536102771759,
0.03252282366156578,
-0.016201192513108253,
0.029212351888418198,
-0.05737863481044769,
0.011771751567721367,
-0.03762350603938103,
0.01794397458434105,
0.08441966027021408,
0.010895052924752235,
0.07105325907468796,
-0.02133622020483017,
0.046147704124450684,
0.04181482642889023,
-0.0427016019821167,
-0.05421004444360733,
-0.04158943146467209,
-0.04412831738591194,
0.012960835359990597,
-0.07114174216985703,
-0.01816474087536335,
0.02667286992073059,
-0.0019206604920327663,
0.03276510909199715,
-0.0007578827207908034,
0.0680207684636116,
-0.10616584867238998,
-0.043349165469408035,
0.037271175533533096,
0.012709159404039383,
-0.022506901994347572,
0.00871779303997755,
-0.05972438305616379,
0.09117968380451202,
-0.0032964691054075956,
-0.06049429252743721,
-0.08380260318517685,
-0.00013897506869398057,
-0.0658753365278244,
0.0659852996468544,
-0.06621917337179184,
0.019619978964328766,
-0.10570523142814636,
-0.0022223051637411118,
-0.04714444279670715,
-0.08731818944215775,
-0.07912380248308182,
0.07830693572759628,
-0.06176352873444557,
-0.054048631340265274,
-0.027601517736911774,
0.009215569123625755,
-0.02069072239100933,
-0.10640138387680054,
0.013262107037007809,
-0.02470429427921772,
0.10178830474615097,
0.037389472126960754,
0.01712348870933056,
0.0037224180996418,
0.01527959480881691,
-0.010141399689018726,
-0.00132792629301548,
0.004272547084838152,
-0.08085878938436508,
-0.021783847361803055,
-0.0012717237696051598,
0.048473112285137177,
-0.06129802018404007,
-0.0008531720377504826,
-0.01972225494682789,
-0.020070316269993782,
-0.02199341543018818,
0.028871901333332062,
-0.047708991914987564,
0.030256280675530434,
0.0749475434422493,
0.07787086814641953,
0.05934174358844757,
0.025685396045446396,
0.015746159479022026,
0.04334923252463341,
-0.04056061431765556,
-0.06648480892181396,
-0.11914093792438507,
0.01166610699146986,
0.05707872286438942,
-0.0725279450416565,
0.03443266451358795,
0.036352381110191345,
-0.003902160795405507,
0.06163559481501579,
-0.04818869009613991,
0.01302050705999136,
0.005420530680567026,
-0.047167256474494934,
-0.05786716192960739,
0.022304456681013107,
0.015194023959338665,
-0.026769718155264854,
-0.0699816420674324,
0.03966937214136124,
-0.019018245860934258,
0.003847238142043352,
-0.06769399344921112,
0.14357689023017883,
-0.007163240108639002,
0.029317783191800117,
0.03480209782719612,
0.09120310097932816,
-0.07288840413093567,
0.0014967387542128563,
0.06103387102484703,
0.018294790759682655,
0.015488352626562119,
-0.002863161498680711,
0.03962786868214607,
-0.07942715287208557,
-0.008501951582729816,
0.03185718134045601,
-0.0016327537596225739,
0.0700007751584053,
0.034458499401807785,
0.005505003966391087,
0.005357712972909212,
0.05252726376056671,
-0.001991268480196595,
0.01964058168232441,
0.03304252028465271,
-0.03250942751765251,
0.0033300062641501427,
0.005739100743085146,
-0.010748730972409248,
-0.04049060493707657,
0.01881319470703602,
0.06405893713235855,
-0.054871395230293274,
0.020245514810085297,
-0.06419413536787033,
-0.040212422609329224,
-0.007353587541729212,
-0.034633323550224304,
-0.0011924377176910639,
0.0322936549782753,
-0.0763583555817604,
0.023030990734696388,
-0.09524624049663544,
0.017453469336032867,
-0.014639005064964294,
-0.014935589395463467,
0.003799199126660824,
0.02184148319065571,
0.0050215693190693855,
0.030496517196297646,
-0.05888877809047699,
0.026196498423814774,
-0.08940314501523972,
-0.0621318556368351,
-0.04444989189505577,
0.0010152480099350214,
-0.04469539597630501,
-0.02659284882247448,
0.016601882874965668,
-0.040397029370069504,
-0.029182586818933487,
-0.03838428482413292,
0.038901932537555695,
-0.032409291714429855,
0.0006779099931009114,
-0.014606204815208912,
0.032639358192682266,
-0.010765977203845978,
0.04262852296233177,
-0.03068218007683754,
0.07821853458881378,
0.030300961807370186,
0.011210262775421143,
-0.008189397864043713,
0.03486543893814087,
-0.023568827658891678,
-0.06285015493631363,
-0.049301598221063614,
0.08612215518951416,
-0.02087992988526821,
0.04701782763004303,
0.0011293143033981323,
-0.058148343116045,
-0.013789518736302853,
0.07288702577352524,
0.013599374331533909,
0.006676636170595884,
-0.0658479779958725,
-0.004209531005471945,
0.09957534074783325,
0.06593570858240128,
0.03841215744614601,
-0.003735508769750595,
-0.0339231938123703,
0.015414712950587273,
0.0033809237647801638,
-0.00878364872187376,
-0.06959836930036545,
0.008647939190268517,
-0.04323679581284523,
0.040687497705221176,
0.0075540607795119286,
-0.0010907875839620829,
0.0012062444584444165,
0.11123497039079666,
-0.0664278119802475,
-0.06114184856414795,
0.014997242949903011,
-0.0395081453025341,
0.050263144075870514,
-0.01566208153963089,
-0.03659766539931297,
0.14759759604930878,
-0.040181104093790054,
-0.000270011427346617,
-0.00828494317829609,
0.012219597585499287,
0.11010824888944626,
0.054439201951026917,
0.009671628475189209,
-0.044856730848550797,
0.00352318468503654,
-0.04001761972904205,
0.0025516932364553213,
0.052763938903808594,
-0.026566002517938614,
-0.017583243548870087,
-0.08358059823513031,
0.08331307768821716,
-0.04774901270866394,
0.0781228169798851,
0.016124162822961807,
0.015535806305706501,
-0.0011106374440714717,
-0.018872305750846863,
0.0030154287815093994,
0.02393384464085102,
0.08778274059295654,
0.08221174776554108,
0.024013660848140717,
0.019572587683796883,
0.01933801919221878,
-0.03888173773884773,
0.022528551518917084,
-0.03105255216360092,
0.01096136961132288,
0.07863227277994156,
0.024942588061094284,
0.025433095172047615,
-0.011560236103832722,
0.009343981742858887,
0.013312035240232944,
-0.005037019960582256,
-0.024057399481534958,
-0.018735716119408607,
-0.019239507615566254,
-0.003948126919567585,
-0.010662466287612915,
0.04075343534350395,
-0.014961826615035534,
0.02953724004328251,
-0.013102020137012005,
-0.0023792521096765995,
-0.01092590857297182,
0.02850489132106304,
-0.02886727638542652,
0.024147359654307365,
0.02226944826543331,
-0.020180970430374146,
-0.032121531665325165,
0.014471073634922504,
-0.03515775874257088,
-0.005160339642316103,
-0.0457749105989933,
0.04166576266288757,
0.056967366486787796,
0.0420120432972908,
-0.01905232109129429,
0.019586553797125816,
-0.040453970432281494,
-0.06060226261615753,
0.04930302873253822,
0.009320775046944618,
0.02123161032795906,
-0.053685616701841354,
0.020121777430176735,
-0.000742655829526484,
0.002898766426369548,
0.023648034781217575,
-0.0017997372196987271,
-0.02138761430978775,
0.042460598051548004,
0.03214934468269348,
0.03230762109160423,
-0.014964152127504349,
-0.007937212474644184,
-0.018574442714452744,
0.02640901692211628,
-0.012957578524947166,
-0.004653683863580227,
-0.0822133794426918,
-0.001995110884308815,
0.00993350613862276,
0.009001285769045353,
-0.01189245656132698,
-0.009639298543334007,
0.03153681010007858,
0.016275295987725258,
0.01633744314312935,
0.01044757105410099,
-0.00018986825307365507,
-0.012439671903848648,
0.037422217428684235,
0.009988865815103054,
0.014202470891177654,
0.03577089682221413,
-0.025570295751094818,
-0.02749757468700409,
-0.016272280365228653,
0.043477848172187805,
-0.04395770654082298,
0.0403691902756691,
0.00036128671490587294,
0.03826508671045303,
-0.02739776112139225,
-0.053996168076992035,
0.02589145116508007,
0.02337801642715931,
0.007726907264441252,
-0.05442066863179207,
0.041433606296777725,
-0.0013114771572872996,
0.010020861402153969,
0.02221592515707016,
-0.006560139823704958,
-0.02468177303671837,
0.01920669712126255,
0.026416992768645287,
0.021846266463398933,
-0.00918770581483841,
-0.009585700929164886,
-0.036790553480386734,
-0.013340120203793049,
-0.01926562748849392,
0.005330604501068592,
-0.05586770921945572,
-0.00177054014056921,
0.03255816176533699,
0.03440888971090317,
-0.07268138974905014,
0.015492511913180351,
0.005205052439123392,
0.018456466495990753,
-0.0073517183773219585,
0.031550630927085876,
0.00645727664232254,
0.00817961897701025,
-0.017190633341670036,
0.0021101657766848803,
-0.00220831879414618,
0.007510304916650057,
-0.00880024116486311,
-0.008720259182155132,
-0.05027643218636513,
-0.032097216695547104,
0.02694004215300083,
0.04682386666536331,
-0.00923926755785942,
-0.037136148661375046,
0.021467143669724464,
0.044557247310876846,
0.02923792228102684,
-0.004731127992272377,
-0.008633110672235489,
-0.024579456076025963,
0.018060343340039253,
-0.010554400272667408,
0.02801300399005413,
0.001720234751701355,
0.09366937726736069,
0.01639801636338234,
-0.01849941723048687,
0.0005956464447081089,
-0.029370127245783806,
-0.015984419733285904,
-0.027880636975169182,
0.007840627804398537,
-0.049506913870573044,
0.014500402845442295,
0.007930428721010685,
0.07288450002670288,
0.025456774979829788,
-0.005961386486887932,
-0.021231643855571747,
0.00014390221622306854,
0.057262830436229706,
-0.006918465252965689,
-0.007110268343240023,
-0.014904852025210857,
-0.029233939945697784,
-0.014942667447030544,
-0.03568562492728233,
-0.003463195404037833,
-0.00276385061442852,
-0.02378850243985653,
0.013510598801076412,
-0.027412017807364464,
-0.034641068428754807,
0.03249535709619522,
0.06969714164733887,
-0.013164399191737175,
0.006535961292684078,
0.010859784670174122,
0.04266499727964401,
0.036134496331214905,
0.02109091356396675,
0.018509607762098312,
0.008162853308022022,
-0.051781538873910904,
0.030530495569109917,
-0.02911331132054329,
-0.005503399763256311,
0.010026144795119762,
-0.018326129764318466,
-0.004852296318858862,
-0.022835729643702507,
0.00696629099547863,
-0.00952668022364378,
0.003052321495488286,
-0.029488667845726013,
0.013959139585494995,
0.0006874744431115687,
-0.05603701248764992,
0.023124869912862778,
0.04812440276145935,
-0.010249645449221134,
-0.024168843403458595,
0.006533487234264612,
-0.012909871526062489,
-0.01916659064590931,
0.0036776370834559202,
0.010583809576928616,
0.007475178688764572,
-0.017305945977568626,
0.021074071526527405,
-0.029665812849998474,
0.015972543507814407,
0.02403808943927288,
-0.015305810607969761,
-0.001647927681915462,
-0.012266525067389011,
-0.005758093204349279,
-0.004100294783711433,
-0.0005010277382098138,
0.052000992000103,
-0.04553307592868805,
-0.005563351325690746,
0.010002381168305874,
0.02585328370332718,
0.02147318795323372,
0.021068578585982323,
0.009543719701468945,
0.033530864864587784,
0.02417515218257904,
0.017670797184109688,
-0.02735472284257412,
-0.003785683773458004,
0.010105730965733528,
-0.012318197637796402,
0.05885157361626625,
-0.022072939202189445,
0.027365777641534805,
-0.01854592375457287,
0.07608598470687866,
-0.02709999494254589,
0.05080181732773781,
0.011246399022638798,
0.0435500405728817,
-0.03259265422821045,
0.008676083758473396,
-0.027177220210433006,
-0.01773701421916485,
0.0313347689807415,
0.001942038768902421,
0.029595060274004936,
0.02364875003695488,
0.039449937641620636,
0.004845776595175266,
-0.045956291258335114,
-0.00906643457710743,
-0.019334392622113228,
-0.010971961542963982,
0.006910351570695639,
-0.0011761878849938512,
0.04619125649333,
-0.0025765341706573963,
-0.01574779488146305,
0.025980358943343163,
-0.00583023251965642,
-0.03698849305510521,
0.039029739797115326,
-0.016417821869254112,
-0.04098229855298996,
-0.008307077921926975,
-0.0020533136557787657,
0.018297433853149414,
-0.028706161305308342,
-0.030477585271000862,
0.005263575818389654,
-0.036512043327093124,
-0.05334503576159477,
-0.024522077292203903,
-0.0025264096911996603,
-0.0325784906744957,
-0.011897064745426178,
-0.035333819687366486,
0.04608096182346344,
-0.008966449648141861,
-0.013054324313998222,
0.07153771817684174,
-0.017555925995111465,
0.04311981052160263,
-0.008368578739464283,
0.01222533080726862,
0.024200063198804855,
-0.02456459030508995,
0.005573300179094076,
-0.02820570021867752,
0.049242835491895676,
0.003967751748859882,
0.05793943628668785,
0.009564517065882683,
0.002108066575601697,
-0.030231237411499023,
-0.0008200868614949286,
-0.00874779187142849,
-0.01026658434420824,
0.05745459347963333,
0.051066428422927856,
-0.027674105018377304,
0.00771750696003437,
0.01536490861326456,
-0.020019425079226494,
0.00733568612486124,
-0.011273159645497799,
0.027949225157499313,
0.05398818477988243,
-0.05823540315032005,
-0.002484706463292241,
0.022814596071839333,
0.030633728951215744,
-0.04955669492483139,
-0.04884275794029236,
-0.01835877262055874,
0.03306448832154274,
0.03639514371752739,
0.028637534007430077,
-0.03318973258137703,
-0.010168816894292831,
-0.0009082800825126469,
0.016935428604483604,
-0.006443271413445473,
-0.01651592180132866,
0.052567388862371445,
-0.01318050641566515,
-0.0013149154838174582,
-0.014181556180119514,
0.02979167550802231,
0.011049439199268818,
0.03902830556035042,
-0.02798442170023918,
0.0012994075659662485,
0.000684344966430217,
0.005823948886245489,
-0.0016688156174495816,
-0.028927884995937347,
-0.019922129809856415,
-0.00033776811324059963,
-0.018615180626511574,
0.06455337256193161,
-0.011637022718787193,
0.054330769926309586,
0.006517051253467798,
0.007324403617531061,
-0.024940229952335358,
0.03995262458920479,
0.030996855348348618,
-0.0014802856603637338,
0.03188156336545944,
-0.0002266477094963193,
-0.026044417172670364,
-0.008552729152143002,
-0.029213016852736473,
-0.023883027955889702,
-0.052404481917619705,
-0.0033676917664706707,
0.059450600296258926,
-0.015649670735001564,
-0.026638498529791832,
-0.04369775578379631,
0.08377086371183395,
-0.015627112239599228,
0.06144634261727333,
-0.015566367655992508,
0.001359456335194409,
0.030356381088495255,
0.01784481666982174,
0.002658325247466564,
0.0024722451344132423,
0.04880155995488167,
-0.015908829867839813,
0.00559570686891675,
0.02878665365278721,
0.04293695092201233,
-0.007379131391644478,
0.01282105129212141,
-0.02016199752688408,
-0.015264990739524364,
0.0160186979919672,
0.012865319848060608,
0.039100147783756256,
-0.02453138865530491,
-0.030249981209635735,
0.010877102613449097,
-0.015618642792105675,
-0.00982787273824215,
-0.030556801706552505,
0.04069291427731514,
-0.003296952461823821,
-0.00009204595698975027,
-0.010055070742964745,
0.011167011223733425,
0.002458908362314105,
0.015385217033326626,
-0.050625596195459366,
-0.05582379922270775,
-0.012562554329633713,
0.011843506246805191,
-0.01325933076441288,
0.0026663742028176785,
-0.015096810646355152,
-0.017644407227635384,
0.03849922493100166,
-0.017914630472660065,
-0.010534376837313175,
0.015734389424324036,
-0.017211532220244408,
0.040563102811574936,
0.03215497359633446,
0.01757078245282173,
-0.016002953052520752,
0.0066779255867004395,
-0.03478097915649414,
0.010870272293686867,
-0.0865471363067627,
-0.012701686471700668,
-0.01835613325238228,
-0.032586678862571716,
-0.022619284689426422,
0.0016396524151787162,
0.003737171646207571,
0.03626326471567154,
0.06323383003473282,
-0.0008814719622023404,
-0.041094180196523666,
0.03458040952682495,
-0.00025083476793952286,
-0.003904524724930525,
0.02509797178208828,
0.0225028358399868,
0.005483698099851608,
-0.03768208995461464,
-0.018033085390925407,
0.03923088312149048,
-0.005177899729460478,
0.0222031157463789,
0.01494594756513834,
-0.002025847788900137,
-0.07574981451034546,
-0.05100081488490105,
-0.008760930970311165,
-0.023443566635251045,
0.007058384828269482,
0.006144253071397543,
0.009281331673264503,
0.045913297683000565,
-0.04632790386676788,
0.027621790766716003,
-0.03521493822336197,
0.06717955321073532,
-0.029219932854175568,
-0.010305196978151798,
-0.011819615960121155,
-0.010044915601611137,
-0.01359186228364706,
0.0557323694229126,
-0.04936083406209946,
-0.009725477546453476,
-0.017949150875210762,
-0.0031516333110630512,
-0.0009723684634082019,
0.0022136380430310965,
0.024325119331479073,
-0.0005775839672423899,
0.009059157222509384,
-0.011842409148812294,
-0.0529351569712162,
0.032784756273031235,
-0.011831413023173809,
0.015514607541263103,
0.01496837753802538,
0.02651320956647396,
0.021244868636131287,
-0.006208688486367464,
0.034799449145793915,
-0.0048414864577353,
-0.03493422269821167,
0.05854310467839241,
-0.008673288859426975,
0.04924042895436287,
0.0027415372896939516,
0.03520940989255905,
-0.01358000747859478,
-0.0191385168582201,
-0.023272303864359856,
0.01508144661784172,
0.0020815301686525345,
-0.006649009417742491,
-0.017343461513519287,
-0.11822113394737244,
-0.01157305482774973,
-0.032285016030073166,
0.013262652792036533,
0.021998384967446327,
-0.007118838373571634,
0.017608802765607834,
-0.0423332080245018,
0.00510817626491189,
0.010907800868153572,
-0.042863741517066956,
-0.011515016667544842,
-0.0025818664580583572,
0.020064953714609146,
0.0033773581963032484,
0.001488642767071724,
-0.021085640415549278,
-0.022319046780467033,
0.006320532876998186,
-0.005710964556783438,
0.01362545695155859,
-0.005928215105086565,
0.01963038183748722,
0.02298314869403839,
0.04370063170790672,
0.026886984705924988,
0.040070440620183945,
0.02329809032380581,
0.007413743995130062,
-0.010880008339881897,
-0.00518215773627162
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Usage best practices When using generative models, most of the time you want to configure or customize your prediction to fit your needs, for example by using beam search, configuring the max or min length of the generated sequence, or adjust the temperature to reduce repetition. The Transformers library provides different strategies and kwargs to do this, the Hugging Face Inference toolkit offers the same functionality using the parameters attribute of your request payload. Below you can find examples on how to generate text without parameters, with beam search, and using custom configurations. If you want to learn about different decoding strategies check out this blog post. | [
0.04294691979885101,
0.006225292105227709,
0.041054867208004,
-0.03247861564159393,
0.043404266238212585,
0.06416525691747665,
0.033967114984989166,
0.03953937813639641,
-0.027172008529305458,
-0.05328861624002457,
-0.11103682965040207,
-0.02131524309515953,
0.009904038161039352,
0.05203334242105484,
-0.05194850638508797,
-0.026967182755470276,
0.028487684205174446,
0.036534763872623444,
-0.03364231809973717,
0.056476425379514694,
0.03564100340008736,
-0.08979576081037521,
0.04819107800722122,
-0.0018688422860577703,
0.05044270306825638,
-0.07450546324253082,
-0.0092567577958107,
-0.0340125598013401,
-0.0412675142288208,
0.0546068400144577,
-0.11851046979427338,
-0.013537256047129631,
-0.023970648646354675,
-0.04565330594778061,
0.005935992114245892,
0.008807899430394173,
-0.12506914138793945,
0.004925874061882496,
0.0016332388622686267,
0.0004723270540125668,
-0.035815246403217316,
-0.03242245689034462,
-0.05523970350623131,
-0.012215930968523026,
0.04194153472781181,
0.008900598622858524,
-0.1778777837753296,
0.07731960713863373,
-0.0732533186674118,
-0.04816790670156479,
-0.05069221928715706,
0.05993128940463066,
-0.0228264220058918,
0.024669326841831207,
0.05821181833744049,
0.007006396539509296,
0.001685077790170908,
-0.11884742230176926,
-0.01423576008528471,
0.024283112958073616,
0.023345615714788437,
-0.018741974607110023,
0.01834544725716114,
0.05843040347099304,
0.03265814110636711,
-0.018899451941251755,
-0.05913008749485016,
-0.01767774485051632,
-0.03299543634057045,
-0.0024051957298070192,
-0.022693900391459465,
-0.005506389308720827,
-0.01673581823706627,
-0.03623438626527786,
-0.027305474504828453,
-0.0053789918310940266,
0.0028175583574920893,
0.012252232991158962,
-0.006880938075482845,
0.04543495550751686,
0.0008689415990374982,
0.036103129386901855,
0.012763856910169125,
0.03485967591404915,
0.04703085124492645,
0.05376718193292618,
0.07106377929449081,
-0.014025182463228703,
-0.05783510580658913,
0.04656299576163292,
-0.04380778223276138,
-0.15742474794387817,
0.008348443545401096,
0.017927750945091248,
0.027587836608290672,
0.02549157105386257,
0.02446693368256092,
0.009364545345306396,
0.013230007141828537,
-0.02435070462524891,
-0.03219389542937279,
-0.04898865893483162,
0.010558292269706726,
-0.036030516028404236,
-0.06351003050804138,
0.007244812790304422,
-0.01590394228696823,
-0.12416451424360275,
-0.025113333016633987,
0.036807455122470856,
-0.017365891486406326,
-0.000855297374073416,
0.03748011961579323,
0.09117378294467926,
-0.0589851550757885,
0.03816278278827667,
0.027027688920497894,
-0.010152212344110012,
-0.028141310438513756,
-0.002071387367323041,
0.014753991737961769,
0.08462473750114441,
0.057425357401371,
-0.01065012812614441,
0.012692955322563648,
0.04098818823695183,
0.06955176591873169,
0.022885533049702644,
-0.004365436267107725,
-0.017650119960308075,
0.02815145254135132,
-0.06308779120445251,
0.07239793241024017,
0.00028487390954978764,
0.015203460119664669,
-0.09048232436180115,
0.0028423103503882885,
-0.0743277445435524,
0.020716803148388863,
0.004538609646260738,
-0.017882347106933594,
0.02052810974419117,
-0.0008364349487237632,
0.03054061345756054,
0.02996160089969635,
0.01773582398891449,
-0.0351993553340435,
0.04073299840092659,
0.0009665038087405264,
0.07128115743398666,
-0.006881452165544033,
0.10593985766172409,
-0.02387896552681923,
-0.06099792942404747,
-0.016416160389780998,
0.07305005937814713,
-0.060932595282793045,
0.002920747036114335,
-0.0021054409444332123,
-0.03370322659611702,
-0.027705948799848557,
0.03722662478685379,
-0.0056634279899299145,
0.024094071239233017,
0.03418252244591713,
-0.01075235940515995,
0.010681463405489922,
0.019884420558810234,
0.038875311613082886,
0.037347402423620224,
0.0000899055739864707,
0.0221372339874506,
0.035887036472558975,
-0.06125025451183319,
0.042403027415275574,
0.05019031837582588,
-0.011657606810331345,
0.05652466043829918,
-0.02672864869236946,
-0.028254028409719467,
-0.019247476011514664,
0.04177388176321983,
0.007504299283027649,
0.04015014320611954,
0.05938898026943207,
-0.09019205719232559,
-0.012420914135873318,
-0.0007539403159171343,
-0.012549697421491146,
-0.054634951055049896,
-0.016360435634851456,
-0.027860838919878006,
0.09197665005922318,
-0.02152782306075096,
-0.014601515606045723,
-0.07834847271442413,
0.0005483368295244873,
0.15283626317977905,
0.06240393593907356,
0.0645536258816719,
0.05175606161355972,
0.033077940344810486,
0.04408176988363266,
-0.04421041160821915,
-0.03920251131057739,
0.004213348031044006,
0.021355679258704185,
-0.02108951471745968,
0.03276381269097328,
0.04777847230434418,
0.041720833629369736,
-0.10399095714092255,
0.028293073177337646,
-0.10383862257003784,
0.0002585532783996314,
-0.07867476344108582,
-0.029703589156270027,
-0.03731013834476471,
0.012365436181426048,
0.03110347129404545,
0.19034528732299805,
-0.0029617168474942446,
-0.014110389165580273,
-0.017705023288726807,
0.007872693240642548,
0.03338468819856644,
0.02799644134938717,
0.07765866816043854,
0.06650720536708832,
-0.07104127109050751,
0.010055693797767162,
-0.04267558455467224,
0.004417181946337223,
0.03589072450995445,
-0.04968194663524628,
-0.04769812151789665,
0.004631039686501026,
0.01305396854877472,
-0.007954825647175312,
-0.019908219575881958,
-0.007574100513011217,
-0.015587207861244678,
-0.03910341486334801,
0.026171907782554626,
-0.02431630901992321,
-0.03097144514322281,
0.05609014630317688,
0.028895294293761253,
-0.04037502408027649,
-0.02219945751130581,
-0.052896905690431595,
0.07008714973926544,
0.020426370203495026,
-0.043877825140953064,
0.04577947035431862,
0.0538141243159771,
-0.03487759456038475,
0.015652215108275414,
-0.00431520352140069,
0.05125122889876366,
-0.03113470785319805,
-0.020920800045132637,
-0.0012515927664935589,
-0.046273957937955856,
-0.006355662364512682,
-0.04319121316075325,
-0.004749989602714777,
-0.008142402395606041,
-0.009269973263144493,
0.014755936339497566,
0.015300566330552101,
0.011551802977919579,
0.01365942507982254,
0.014283626340329647,
0.012109075672924519,
0.011972001753747463,
0.025007395073771477,
-0.012060277163982391,
-0.02124890498816967,
-0.012414860539138317,
-0.017283830791711807,
-0.020361823961138725,
0.02119542472064495,
0.027763385325670242,
0.0005984737072139978,
-0.026365576311945915,
0.0034421542659401894,
-0.030607052147388458,
-0.056819651275873184,
0.0031849429942667484,
0.019042523577809334,
0.03286445140838623,
-0.006145469378679991,
-0.02697969786822796,
0.013431844301521778,
0.03346255049109459,
0.00979617889970541,
-0.008353606797754765,
-0.010923522524535656,
0.02103825844824314,
-0.005176710430532694,
-0.018071699887514114,
-0.00869353674352169,
-0.02917439118027687,
-0.027375925332307816,
0.05005939304828644,
0.01828889362514019,
0.015381346456706524,
-0.10230198502540588,
-0.04226502403616905,
-0.026123860850930214,
0.01632600463926792,
-0.01597045361995697,
-0.0109636839479208,
0.04114896431565285,
-0.007116683293133974,
-0.012138222344219685,
0.012359031476080418,
-0.008749604225158691,
-0.01036930177360773,
0.002084501087665558,
0.019828544929623604,
-0.029899518936872482,
-0.020296283066272736,
-0.040420208126306534,
-0.021608958020806313,
0.03499121591448784,
-0.003331047249957919,
-0.009383096359670162,
0.015714123845100403,
0.002164200646802783,
0.008263444527983665,
-0.009172218851745129,
-0.04303083196282387,
0.034784551709890366,
0.00993898045271635,
-0.008949453942477703,
-0.05328766629099846,
0.008896266110241413,
-0.014503062702715397,
-0.015371236950159073,
0.029578888788819313,
-0.01463076751679182,
0.014603134244680405,
-0.0033595410641282797,
0.02081558108329773,
0.043571699410676956,
0.0220439825206995,
0.0023493904154747725,
-0.0016843283083289862,
-0.005733696278184652,
0.010129441507160664,
0.029602069407701492,
0.004236494656652212,
-0.006010205950587988,
0.02622090093791485,
0.03260445222258568,
-0.05791211500763893,
-0.02215946465730667,
-0.03692726790904999,
0.01547860074788332,
0.009729700163006783,
0.04363131895661354,
-0.011519026942551136,
0.021415194496512413,
0.04299526661634445,
0.021939348429441452,
-0.00338482903316617,
-0.08270575851202011,
0.014077654108405113,
-0.012558569200336933,
-0.006081403698772192,
-0.01815195195376873,
0.06276394426822662,
-0.010139917023479939,
0.022291598841547966,
0.005269498098641634,
0.0175979845225811,
-0.007301765494048595,
0.03637208789587021,
0.014047026634216309,
0.006838789209723473,
-0.002866640454158187,
-0.0014575277455151081,
-0.014862975105643272,
-0.0371541790664196,
0.058589037507772446,
0.029496729373931885,
-0.03201694414019585,
-0.03667633980512619,
-0.051420774310827255,
0.002770269988104701,
0.017736878246068954,
-0.003205335233360529,
0.018994774669408798,
-0.040213391184806824,
0.012756030075252056,
0.0010456127347424626,
0.005349584389477968,
-0.02995164506137371,
-0.0024102639872580767,
-0.037663284689188004,
-0.04115638881921768,
0.010215561836957932,
0.013625439256429672,
0.02577177621424198,
0.011317967437207699,
0.008674168027937412,
0.01584778167307377,
-0.029256096109747887,
0.013712386600673199,
-0.009776266291737556,
-0.01645967736840248,
0.03112129680812359,
-0.03184827044606209,
0.010975999757647514,
0.01647871360182762,
0.0009019604185596108,
0.03676581010222435,
0.004656216129660606,
-0.0061473664827644825,
-0.006864799186587334,
0.02900366112589836,
0.050001490861177444,
-0.02959868498146534,
-0.005695169325917959,
-0.03740891069173813,
0.007316885516047478,
-0.03408839553594589,
0.005927742924541235,
-0.03446637839078903,
-0.02558935061097145,
0.011091368272900581,
0.004347348120063543,
0.004259246401488781,
0.048546623438596725,
0.009271811693906784,
-0.00487877381965518,
0.004703164100646973,
-0.0025610732845962048,
0.06926360726356506,
0.015469683334231377,
-0.003125252667814493,
0.05165209248661995,
-0.03262737765908241,
0.021579638123512268,
-0.01792289689183235,
-0.04119899496436119,
-0.013307769782841206,
0.011774907819926739,
0.03803029656410217,
-0.03568323701620102,
0.03895847499370575,
-0.001487348461523652,
-0.04497388377785683,
-0.02395882084965706,
-0.03879977762699127,
0.025477053597569466,
0.036028627306222916,
0.03573773056268692,
-0.026201728731393814,
-0.005202344618737698,
0.02966156229376793,
-0.0669768676161766,
-0.017018748447299004,
0.017553888261318207,
-0.019732672721147537,
0.041096147149801254,
-0.009082638658583164,
-0.004971051122993231,
-0.03522675856947899,
0.04252097010612488,
0.01905401423573494,
0.029273325577378273,
-0.01478436030447483,
-0.043765515089035034,
-0.019288424402475357,
-0.00008719913603272289,
0.015261170454323292,
0.007320784498006105,
0.04242045059800148,
-0.04020078107714653,
-0.0056436690501868725,
0.05538018047809601,
0.04596908017992973,
0.02158193103969097,
0.017033174633979797,
0.005947410129010677,
-0.0252838172018528,
-0.006179179530590773,
0.024612372741103172,
0.019160479307174683,
0.04646652564406395,
0.01747993193566799,
0.060226354748010635,
0.04734237492084503,
-0.004940616898238659,
0.019228005781769753,
0.010735695250332355,
-0.02596241421997547,
0.00996237713843584,
-0.04634099453687668,
0.005902822129428387,
0.01717611961066723,
0.002505270764231682,
0.020017782226204872,
-0.01752048172056675,
0.0036737052723765373,
0.0367533378303051,
0.04215433821082115,
-0.008663829416036606,
0.012606273405253887,
0.0014859153889119625,
-0.017277080565690994,
0.016315137967467308,
-0.027437880635261536,
0.03369050845503807,
-0.026175489649176598,
-0.0057998113334178925,
-0.00038958812365308404,
0.005327402614057064,
-0.018752258270978928,
0.0017549454933032393,
-0.01827521249651909,
-0.05642060190439224,
0.04600508511066437,
0.045617833733558655,
0.055829402059316635,
-0.011566768400371075,
-0.015059947967529297,
-0.0131475068628788,
0.03169751167297363,
0.04004852473735809,
-0.013840575702488422,
-0.009200369007885456,
0.01869935356080532,
0.012785679660737514,
0.021682796999812126,
-0.009285918436944485,
-0.02890096791088581,
-0.028432456776499748,
0.06655003130435944,
0.00041641300776973367,
-0.004643371794372797,
-0.0404481403529644,
0.04713902994990349,
0.022733500227332115,
-0.01480613648891449,
0.014130459167063236,
-0.0500909760594368,
-0.009573322720825672,
-0.016815967857837677,
-0.009724054485559464,
0.02183341607451439,
0.030686642974615097,
0.004934161435812712,
-0.06264587491750717,
0.01076099369674921,
0.036262065172195435,
-0.024853145703673363,
-0.009184527210891247,
0.005861497018486261,
-0.0045457929372787476,
-0.01480457466095686,
0.025296714156866074,
0.006982402876019478,
0.0009907128987833858,
0.013339289464056492,
0.01343423780053854,
-0.05933615565299988,
0.0127020925283432,
0.030940864235162735,
-0.04229336604475975,
0.0174411553889513,
0.003516937606036663,
-0.03486410900950432,
0.0064463624730706215,
0.019832806661725044,
0.042038578540086746,
0.025818586349487305,
0.03497272729873657,
0.020505806431174278,
-0.015287820249795914,
-0.0006243000971153378,
-0.014397400431334972,
0.05873066931962967,
0.021753400564193726,
0.037692587822675705,
0.02959631197154522,
0.042345840483903885,
0.034181445837020874,
0.0004746702907141298,
-0.005072636064141989,
0.003926241770386696,
0.07880011200904846,
0.049147479236125946,
0.031977131962776184,
-0.012751536443829536,
-0.021341001614928246,
0.009420132264494896,
-0.02665683813393116,
-0.012158812955021858,
-0.01860860176384449,
0.02365090139210224,
0.047585248947143555,
0.00542865414172411,
0.010657820850610733,
-0.02194339595735073,
0.03728180378675461,
0.027362029999494553,
0.018125008791685104,
-0.011110223829746246,
0.008757193572819233,
0.02265862748026848,
0.038495298475027084,
0.021352607756853104,
0.04462204873561859,
0.013428623788058758,
-0.04027056321501732,
0.06712591648101807,
-0.007078224793076515,
0.017444945871829987,
-0.008704160340130329,
0.018631834536790848,
0.020441178232431412,
-0.02966814488172531,
-0.005373808089643717,
-0.01374591514468193,
0.026343587785959244,
0.010710815899074078,
-0.012212397530674934,
-0.010499203577637672,
-0.053052909672260284,
0.01146810781210661,
-0.015936193987727165,
0.0030140902381390333,
-0.041895508766174316,
-0.001613772357814014,
-0.013707699254155159,
0.05756700783967972,
0.010878987610340118,
-0.04372922331094742,
0.040564827620983124,
0.03703893721103668,
-0.006614754442125559,
0.04024682566523552,
-0.02174539491534233,
-0.04004459083080292,
-0.04795757308602333,
-0.019886797294020653,
-0.013532317243516445,
0.019548561424016953,
-0.009760722517967224,
-0.012501576915383339,
-0.0093093141913414,
0.05376965552568436,
-0.027531111612915993,
0.040119096636772156,
-0.044698864221572876,
0.008458541706204414,
-0.061346281319856644,
0.010137219913303852,
-0.04535694047808647,
-0.008778167888522148,
0.01179041713476181,
-0.03415496647357941,
0.008775169961154461,
-0.01836063340306282,
0.00614176644012332,
-0.0024963163305073977,
0.022443173453211784,
-0.04653385281562805,
-0.038923230022192,
-0.012834922410547733,
-0.036266472190618515,
0.0016155963530763984,
0.04734275862574577,
0.006360658444464207,
-0.01221693865954876,
0.009464601054787636,
-0.03813103213906288,
-0.03780896216630936,
-0.005993567407131195,
0.030264079570770264,
0.0391843244433403,
-0.03437958285212517,
-0.05944523215293884,
-0.010489994660019875,
0.06277521699666977,
0.024706289172172546,
0.009019664488732815,
0.00901544839143753,
0.007541342172771692,
0.017272021621465683,
-0.030492113903164864,
0.03267808258533478,
-0.02834819070994854,
0.043194856494665146,
-0.014875288121402264,
-0.024579284712672234,
-0.009055032394826412,
0.021364275366067886,
-0.00861119944602251,
0.02789377048611641,
-0.03608088195323944,
-0.0022697646636515856,
-0.022898387163877487,
-0.020221037790179253,
-0.037831686437129974,
0.007923979312181473,
0.07699402421712875,
0.03630415350198746,
0.0587909035384655,
0.003562831785529852,
-0.02856096252799034,
-0.004763724282383919,
0.0043518743477761745,
0.0395430363714695,
0.05200823023915291,
0.012051924131810665,
-0.02075270749628544,
-0.04315872862935066,
0.019346823915839195,
-0.002160137053579092,
-0.07234422862529755,
0.010410546325147152,
0.03769099712371826,
-0.019987881183624268,
-0.03447754308581352,
-0.004231368191540241,
0.05482950061559677,
0.01580950804054737,
0.028643561527132988,
-0.011556955054402351,
-0.005898071452975273,
-0.021663488820195198,
0.03716365993022919,
-0.05738915130496025,
-0.01956252194941044,
-0.04616662859916687,
0.008683785796165466,
0.01720958948135376,
0.010323568247258663,
0.03924442082643509,
-0.01986662670969963,
-0.024856233969330788,
0.008687624707818031,
-0.0031560377683490515,
-0.020445862784981728,
-0.032681774348020554,
0.0008911548065952957,
0.03444554656744003,
-0.024333730340003967,
-0.016422655433416367,
0.02639748714864254,
-0.018543587997555733,
-0.026342341676354408,
-0.00524945929646492,
0.014580580405890942,
-0.017152929678559303,
0.006822897121310234,
0.02406023070216179,
-0.01866433583199978,
0.039836443960666656,
0.04334789514541626,
-0.02193170227110386,
-0.03775513544678688,
0.01275982428342104
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Tutorial With this method of saving and loading models, we achieved model loading performance for GPT-J compatible with production scenarios. But we need to keep in mind that we need to align: > Align PyTorch and Transformers version when saving the model with torch.save(model,PATH) and loading the model with torch.load(PATH) to avoid incompatibility. > | [
-0.050082843750715256,
0.004933260381221771,
-0.0005972099024802446,
0.033603228628635406,
0.023659709841012955,
0.03841407969594002,
0.010894143022596836,
-0.014739411883056164,
-0.022566642612218857,
-0.02931317500770092,
-0.03351428732275963,
0.06051412224769592,
-0.012366583570837975,
0.056394707411527634,
-0.027634596452116966,
-0.01770717464387417,
0.0469844788312912,
-0.027333535254001617,
-0.023457258939743042,
0.009258173406124115,
0.02315613068640232,
-0.08166654407978058,
0.022919731214642525,
-0.02422954887151718,
0.024631207808852196,
-0.11870984733104706,
-0.04041295871138573,
0.011991657316684723,
-0.008834478445351124,
-0.007319544907659292,
-0.09400062263011932,
-0.041524674743413925,
0.002453917870298028,
-0.011495156213641167,
-0.059237364679574966,
0.030333800241351128,
-0.09062080830335617,
0.030421297997236252,
0.0475650429725647,
-0.0530095212161541,
-0.021651113405823708,
0.021784458309412003,
-0.03806387633085251,
0.01653776876628399,
0.03280503302812576,
-0.03638261556625366,
-0.14783087372779846,
0.06729543209075928,
-0.01430959440767765,
-0.05417769402265549,
-0.07489583641290665,
0.027354439720511436,
-0.03316428139805794,
0.004536229185760021,
-0.0645274743437767,
0.04462526738643646,
0.0013411497930064797,
-0.026377197355031967,
0.022551335394382477,
0.0038226773031055927,
0.05831976607441902,
0.05101599171757698,
-0.025396713986992836,
0.004599869716912508,
0.04155517369508743,
-0.052679236978292465,
-0.017595499753952026,
0.017437385395169258,
-0.07134787738323212,
-0.07099530100822449,
-0.008279195986688137,
-0.007971866987645626,
0.05232252925634384,
-0.08625142276287079,
-0.0745730996131897,
-0.03507519140839577,
0.014980532228946686,
-0.02939055673778057,
0.0469144731760025,
0.04984232410788536,
-0.0035189774353057146,
0.0029904558323323727,
-0.035115763545036316,
0.08012793958187103,
0.06905370205640793,
0.006041846703737974,
0.049793366342782974,
-0.10497269779443741,
0.021245628595352173,
0.03558776527643204,
-0.015701036900281906,
-0.10210639238357544,
-0.034672752022743225,
0.010073581710457802,
0.051771894097328186,
0.028174756094813347,
-0.035146355628967285,
0.019650500267744064,
0.011361834593117237,
0.04541095346212387,
-0.008612831123173237,
-0.02102743461728096,
-0.019112225621938705,
-0.024148881435394287,
-0.0029268476646393538,
0.007870959118008614,
-0.0672791376709938,
-0.09579595923423767,
0.050827302038669586,
0.07511558383703232,
-0.057861074805259705,
0.018419139087200165,
-0.048589643090963364,
0.030265219509601593,
-0.06135702133178711,
-0.019251680001616478,
0.026160309091210365,
-0.03894631937146187,
-0.01357655692845583,
0.07046308368444443,
-0.015224792063236237,
0.0802026018500328,
0.03155142441391945,
0.00017107377061620355,
-0.04308943822979927,
0.0883706584572792,
0.04830756038427353,
-0.010488360188901424,
-0.002778601599857211,
-0.008745843544602394,
0.10483019798994064,
-0.03589550405740738,
0.043712716549634933,
-0.008637845516204834,
0.000622325751464814,
-0.058108653873205185,
-0.002800729824230075,
-0.0284824687987566,
0.03391944617033005,
-0.023218173533678055,
-0.06666132062673569,
0.03796234354376793,
0.045866094529628754,
0.04318159073591232,
0.050583187490701675,
-0.03767090290784836,
-0.08040891587734222,
0.06755325198173523,
0.004909247625619173,
0.027753716334700584,
-0.08104494959115982,
0.08039264380931854,
-0.03532246872782707,
-0.04412860795855522,
-0.023263458162546158,
0.04943861812353134,
-0.04635928198695183,
0.03687930479645729,
-0.08332226425409317,
-0.08604946732521057,
-0.0009837839752435684,
-0.03642081096768379,
-0.013604382984340191,
-0.018571769818663597,
0.021872442215681076,
0.007973263040184975,
0.032644908875226974,
0.015854695811867714,
0.06935148686170578,
-0.028836695477366447,
0.008946350775659084,
0.00585721991956234,
0.06651319563388824,
0.015860972926020622,
0.022716233506798744,
0.0315251387655735,
0.021701691672205925,
0.02579037845134735,
0.004825772251933813,
-0.052479714155197144,
-0.013421562500298023,
0.04558287560939789,
0.0020969430916011333,
0.03532779961824417,
0.04397374764084816,
-0.10649272054433823,
-0.00003686009949888103,
-0.08093217760324478,
-0.05328899249434471,
0.05334531515836716,
-0.014065107330679893,
-0.0033710580319166183,
0.0865682065486908,
-0.09231986105442047,
0.03894411399960518,
-0.03361726924777031,
-0.0338488444685936,
0.09270729124546051,
0.03695724904537201,
0.008579717017710209,
-0.012652924284338951,
-0.01170243602246046,
-0.010944029316306114,
-0.024737713858485222,
0.002885411726310849,
0.009518718346953392,
0.024501752108335495,
-0.03413483127951622,
0.006020790431648493,
-0.04222484305500984,
0.013287435285747051,
-0.0722062811255455,
0.08987808227539062,
-0.0966314971446991,
-0.0012082831235602498,
-0.056530166417360306,
-0.013517240062355995,
0.014248942956328392,
0.022188076749444008,
0.028245164081454277,
0.19655993580818176,
0.022326752543449402,
0.031382035464048386,
-0.03814249485731125,
-0.038398627191782,
0.08077282458543777,
0.030288221314549446,
0.01593807525932789,
0.04211638122797012,
-0.08152154833078384,
-0.03029591776430607,
-0.09175929427146912,
-0.013772821053862572,
0.09534401446580887,
-0.0011677906149998307,
-0.004745901562273502,
0.0036255347076803446,
0.04118601605296135,
0.03424406424164772,
-0.044939689338207245,
-0.0035104253329336643,
0.007803135085850954,
0.010268134996294975,
0.05869225785136223,
0.03830457106232643,
0.001592308864928782,
0.0331183597445488,
-0.003961313050240278,
-0.0049055046401917934,
-0.028616853058338165,
-0.07011737674474716,
-0.006772872060537338,
0.02467283420264721,
-0.0029302928596735,
0.035628460347652435,
0.014539572410285473,
-0.024974621832370758,
-0.019225167110562325,
0.0056075057946145535,
0.08178041875362396,
0.013556716963648796,
0.006502802949398756,
-0.027906419709324837,
-0.02462618798017502,
0.009081182070076466,
-0.02336728945374489,
0.003964672796428204,
0.004566597286611795,
0.024292562156915665,
-0.04910038784146309,
0.00397671340033412,
-0.03681972622871399,
0.00803526770323515,
-0.0007279778947122395,
-0.005902474746108055,
0.05509146675467491,
0.01496902946382761,
-0.03753418102860451,
-0.021662089973688126,
0.010765794664621353,
-0.005128655582666397,
-0.033039022237062454,
0.016329148784279823,
0.017256157472729683,
-0.029913106933236122,
0.03047415241599083,
0.022159377112984657,
-0.04852261394262314,
-0.01750023476779461,
0.020568283274769783,
0.004140737000852823,
0.02743716910481453,
0.015203407034277916,
-0.0433795303106308,
0.007661538664251566,
0.0580490306019783,
-0.03132276609539986,
-0.024283764883875847,
0.01759379170835018,
-0.0019263653084635735,
-0.029182758182287216,
0.024344293400645256,
0.01729760505259037,
0.006075880024582148,
-0.021002400666475296,
0.0068418532609939575,
0.047950826585292816,
0.010282489471137524,
-0.09697766602039337,
-0.02116524428129196,
0.026384683325886726,
0.009192663244903088,
-0.0018671178258955479,
-0.022125177085399628,
0.05191989615559578,
0.016507161781191826,
-0.013399973511695862,
0.006149481050670147,
0.0028356907423585653,
-0.006806680001318455,
0.009822798892855644,
0.06627977639436722,
0.00829794816672802,
0.0005019059171900153,
0.03547420725226402,
0.03182201087474823,
0.03444770351052284,
0.001507298438809812,
-0.022325940430164337,
0.022983722388744354,
0.0047461832873523235,
-0.014703531749546528,
0.012197587639093399,
0.01891903765499592,
0.01169592421501875,
0.046420007944107056,
-0.029612505808472633,
0.0017979082185775042,
-0.02445046231150627,
-0.03475792706012726,
-0.008306114934384823,
0.04120470955967903,
-0.03654732555150986,
-0.026433788239955902,
-0.00407598027959466,
0.029087726026773453,
0.05150606110692024,
0.017314894124865532,
-0.01680261269211769,
-0.007043237332254648,
-0.012321271933615208,
-0.024016113951802254,
0.009414589032530785,
-0.035441603511571884,
-0.048170093446969986,
0.03847932815551758,
0.040967442095279694,
0.000939797842875123,
-0.007023855112493038,
-0.031041499227285385,
-0.0022057853639125824,
0.0008394327014684677,
0.0335455983877182,
-0.0032415883615612984,
0.02253357134759426,
0.017077313736081123,
0.03153581917285919,
-0.005024606827646494,
-0.030519910156726837,
-0.019896026700735092,
0.013236765749752522,
-0.049816932529211044,
-0.04184933751821518,
0.0651288628578186,
0.010366199538111687,
-0.0005049044266343117,
-0.020754389464855194,
0.018411235883831978,
-0.056651514023542404,
0.010413381271064281,
-0.008786190301179886,
0.006357203703373671,
-0.0405634380877018,
0.030719736590981483,
-0.011164063587784767,
0.0051627615466713905,
0.05496104061603546,
0.01977924257516861,
-0.02266647107899189,
-0.03856172412633896,
-0.032510221004486084,
-0.06427769362926483,
-0.009766063652932644,
-0.0010421156184747815,
0.009345353581011295,
-0.030196264386177063,
0.014216672629117966,
0.01700064167380333,
0.03834797814488411,
0.020977947860956192,
0.03427743911743164,
-0.010705890133976936,
-0.024208901450037956,
-0.03231806308031082,
0.05424034968018532,
0.013572091236710548,
0.015366921201348305,
0.033455174416303635,
-0.006183231715112925,
-0.020266948267817497,
0.020117709413170815,
0.039875198155641556,
0.026406997814774513,
0.024517185986042023,
-0.001880092197097838,
-0.0036905715242028236,
0.014680868946015835,
0.017291352152824402,
-0.00007806028588674963,
0.0029780399054288864,
0.02888619899749756,
-0.025987759232521057,
0.05843113362789154,
0.05325496569275856,
0.0017312823329120874,
-0.028217941522598267,
0.003304470330476761,
0.06439723819494247,
-0.038982637226581573,
0.06107615679502487,
-0.002595286350697279,
-0.03709740191698074,
0.0308489091694355,
0.018948176875710487,
0.021176647394895554,
0.009364535100758076,
0.008424324914813042,
0.008159330114722252,
-0.049299515783786774,
0.014347221702337265,
0.030961299315094948,
0.013128820806741714,
-0.0001667602191446349,
0.0022934081498533487,
-0.019159158691763878,
0.015997368842363358,
-0.005093064159154892,
-0.046627648174762726,
0.028833413496613503,
-0.0429735966026783,
0.029264355078339577,
-0.05327301472425461,
0.017412694171071053,
-0.0013312199153006077,
-0.026708295568823814,
0.05873801186680794,
-0.031691569834947586,
0.016776980832219124,
0.07001491636037827,
0.027700195088982582,
-0.06457296758890152,
0.0021769264712929726,
0.027299772948026657,
-0.00010250489140162244,
-0.018698737025260925,
0.011389861814677715,
-0.018589051440358162,
0.04835336655378342,
0.004631531424820423,
0.017057429999113083,
-0.016526516526937485,
0.011929894797503948,
0.05090617761015892,
0.03565237298607826,
0.025152742862701416,
-0.04643769934773445,
-0.016374804079532623,
0.007146167568862438,
0.008927596732974052,
-0.0015197759494185448,
0.002982764970511198,
-0.013616415672004223,
0.01444387435913086,
0.03585939481854439,
0.016329381614923477,
0.020283272489905357,
-0.0036298760678619146,
0.026879873126745224,
0.0114347655326128,
-0.01733727566897869,
-0.011617584154009819,
-0.028845015913248062,
-0.025880157947540283,
-0.01014852523803711,
0.04714919254183769,
0.04894498735666275,
0.021125242114067078,
0.01642908900976181,
-0.00004573241312755272,
-0.02544814720749855,
0.035354893654584885,
-0.05316673964262009,
0.016806557774543762,
0.008249818347394466,
0.024683954194188118,
0.02955092117190361,
0.00019464647630229592,
-0.0070127942599356174,
0.019195355474948883,
0.04967750981450081,
-0.020136216655373573,
-0.019000407308340073,
-0.007866166532039642,
0.010650759562849998,
0.00449947128072381,
-0.01461385004222393,
0.06321743875741959,
-0.02350260317325592,
0.012965907342731953,
0.01789879985153675,
0.0019915555603802204,
-0.02267683483660221,
0.012755700387060642,
-0.012753867544233799,
-0.03237198293209076,
0.020528798922896385,
0.03192878141999245,
0.06529106944799423,
-0.02915048785507679,
-0.0317399799823761,
-0.028164006769657135,
0.005806222558021545,
0.028230374678969383,
-0.03011910617351532,
-0.012204362079501152,
0.024074707180261612,
-0.01122098509222269,
0.007488506846129894,
0.028875868767499924,
-0.029422365128993988,
-0.002869958057999611,
0.02964811585843563,
0.015555334277451038,
-0.03925975412130356,
-0.0010937962215393782,
0.026609204709529877,
0.01995375007390976,
-0.006357046775519848,
-0.004412558861076832,
-0.0431961864233017,
-0.04132429137825966,
0.0350097231566906,
-0.03753867372870445,
0.013886521570384502,
0.051664430648088455,
-0.017845138907432556,
0.009312653914093971,
-0.0166157316416502,
-0.00813762005418539,
-0.03615772724151611,
0.013047970831394196,
-0.008829532191157341,
0.014002353884279728,
-0.021260835230350494,
0.023704884573817253,
-0.02267899177968502,
-0.015454678796231747,
0.05683044344186783,
0.053930506110191345,
-0.02356177382171154,
-0.032775744795799255,
0.013469737954437733,
-0.014817623421549797,
0.020867319777607918,
-0.013749663718044758,
-0.0475517176091671,
0.0025416656862944365,
0.007430459372699261,
0.013448766432702541,
0.04029344022274017,
-0.012438936159014702,
0.06248089671134949,
0.010279843583703041,
0.008813410066068172,
0.010447715409100056,
0.037290047854185104,
-0.0340241901576519,
0.05302854999899864,
0.02240542322397232,
0.03773742541670799,
-0.031090496107935905,
-0.01337845902889967,
-0.007122797891497612,
0.002448387211188674,
0.07427341490983963,
-0.036176376044750214,
0.004974123556166887,
0.049853332340717316,
0.0193729717284441,
-0.01904268190264702,
-0.005218789912760258,
-0.04662662371993065,
-0.05417339503765106,
0.023895397782325745,
0.03814303129911423,
-0.01548767276108265,
-0.029395584017038345,
-0.02286849170923233,
0.04279271140694618,
0.05858879163861275,
0.0372319296002388,
-0.039624009281396866,
0.037063926458358765,
0.016243761405348778,
0.030344896018505096,
-0.004554883576929569,
0.05868582800030708,
0.03818078711628914,
-0.02839759550988674,
0.024871747940778732,
-0.011065374128520489,
0.01782921329140663,
0.023790623992681503,
0.005593085661530495,
0.062244120985269547,
-0.01214852835983038,
-0.013426994904875755,
-0.015599445439875126,
0.007041230797767639,
0.03857587277889252,
-0.053905319422483444,
-0.013398590497672558,
-0.010995135642588139,
0.017994731664657593,
-0.016110578551888466,
0.009563696570694447,
-0.02072421833872795,
-0.039638325572013855,
0.020648213103413582,
-0.005252450238913298,
0.041428159922361374,
-0.019183972850441933,
0.012796483002603054,
0.032266274094581604,
0.00040244325646199286,
0.030880052596330643,
-0.009896059520542622,
-0.004622323904186487,
-0.020464694127440453,
0.022956829518079758,
-0.01219075545668602,
0.03107919543981552,
-0.01951821707189083,
0.008810152299702168,
0.024349629878997803,
-0.00015865812019910663,
-0.020827487111091614,
0.02332949824631214,
0.023737719282507896,
-0.010075852274894714,
-0.02679290808737278,
0.015723837539553642,
-0.04618185758590698,
-0.052709292620420456,
0.03545333072543144,
0.013830401934683323,
-0.007148837670683861,
-0.01165352389216423,
0.035440508276224136,
0.0672687217593193,
0.004083726555109024,
-0.01896619237959385,
-0.06147904321551323,
-0.01973077841103077,
0.00023196668189484626,
-0.006932524964213371,
0.022067883983254433,
-0.016974564641714096,
0.012225984595716,
0.005928953643888235,
-0.018667519092559814,
0.0005046771257184446,
-0.0025188843719661236,
-0.009401240386068821,
0.031794801354408264,
-0.019266819581389427,
0.03755277022719383,
-0.03312400355935097,
0.09896154701709747,
0.020975081250071526,
-0.003245597006753087,
0.022194689139723778,
-0.021177951246500015,
-0.028727196156978607,
-0.023371117189526558,
0.018084930256009102,
-0.059718064963817596,
0.0007256128010340035,
-0.0006820702110417187,
-0.019866418093442917,
-0.01716708391904831,
0.012089054100215435,
-0.00808190368115902,
-0.004379461985081434,
-0.03531276807188988,
0.016549495980143547,
-0.02343660779297352,
0.011859276331961155,
0.004274028819054365,
-0.006116119213402271,
0.05011124163866043,
0.052643150091171265,
0.017476404085755348,
0.032653480768203735,
-0.039244379848241806,
-0.006751752458512783,
0.023655546829104424,
0.03303387388586998,
0.02236378751695156,
0.012632343918085098,
-0.02960057742893696,
-0.04800825193524361,
0.030207889154553413,
0.002315470715984702,
-0.012079727835953236,
0.006972600240260363,
0.026690037921071053,
-0.0033741279039531946,
-0.04605567827820778,
-0.029936382547020912,
0.011128764599561691,
0.038930751383304596,
0.0146495271474123,
0.009197988547384739,
0.014757913537323475,
-0.02016102336347103,
0.027004504576325417,
-0.05468582734465599,
0.00908450037240982,
-0.055990807712078094,
-0.014895806089043617,
0.035861339420080185,
-0.00016360697918571532,
0.041688524186611176,
0.004710111767053604,
-0.04477476701140404,
0.0046676285564899445,
0.03423594683408737,
-0.06783747673034668,
-0.04461396858096123,
-0.00139385717920959,
0.02195853926241398,
-0.035696111619472504,
-0.059891894459724426,
-0.00941431149840355,
-0.012614247389137745,
-0.016874738037586212,
-0.007312799338251352,
0.005571424029767513,
0.04863986372947693,
0.008263511583209038,
0.009932086803019047,
-0.01622028835117817,
0.004065771587193012,
0.007299101911485195,
-0.054621513932943344,
-0.02378450334072113,
-0.024428334087133408
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Parameterized request This is an example of a request using a custom parameter, e.g. min_length for generating at least 512 tokens. Inference-time after the first request: 38s python predictor.predict({ "inputs": "Can you please let us know more details about your ", "parameters" : { "max_length": 512, "temperature": 0.9, } }) | [
0.03315464034676552,
0.020455295220017433,
0.08808203786611557,
0.008011088706552982,
0.07314043492078781,
0.090198814868927,
0.04779702052474022,
0.04686635732650757,
-0.000697453273460269,
0.03805923834443092,
-0.06287863850593567,
-0.046935055404901505,
0.0007657945388928056,
0.06523311138153076,
-0.020399538800120354,
-0.043421994894742966,
0.03648078814148903,
-0.015713684260845184,
-0.041732050478458405,
-0.022259600460529327,
0.015330744907259941,
-0.06393370032310486,
0.0722769945859909,
0.004700283519923687,
0.02030324563384056,
-0.020268233492970467,
-0.07880780845880508,
0.008970893919467926,
-0.030651748180389404,
0.024856919422745705,
-0.12498465180397034,
-0.008436445146799088,
-0.044873565435409546,
-0.025391817092895508,
0.025290079414844513,
0.032967373728752136,
-0.09377896040678024,
0.017287027090787888,
-0.015252256765961647,
0.02728060446679592,
-0.03559529408812523,
-0.026147393509745598,
-0.05738712102174759,
0.036523982882499695,
0.04492998868227005,
-0.013872656971216202,
-0.17567850649356842,
0.05597750470042229,
0.020728226751089096,
-0.04748360812664032,
-0.07321562618017197,
0.047173961997032166,
-0.027758248150348663,
0.034366872161626816,
0.06523047387599945,
-0.010533547960221767,
-0.0361497588455677,
-0.09480845183134079,
0.0008052036282606423,
-0.002741606906056404,
0.020526058971881866,
0.0018002416472882032,
0.02517782151699066,
0.019543679431080818,
0.02541155181825161,
0.04183472692966461,
-0.06878803670406342,
0.01011180691421032,
0.023571697995066643,
-0.021899724379181862,
0.020009344443678856,
0.007981784641742706,
-0.05504545569419861,
-0.010476307012140751,
0.02223874256014824,
-0.05491332709789276,
0.0070022959262132645,
0.019266942515969276,
-0.020917076617479324,
0.10451814532279968,
-0.008483401499688625,
-0.03681078925728798,
0.032055698335170746,
-0.015980467200279236,
-0.0026061739772558212,
0.0604395717382431,
0.032167404890060425,
0.015745608136057854,
-0.04049108922481537,
0.0067354775965213776,
-0.034678760915994644,
-0.09810060262680054,
-0.014431018382310867,
-0.04187740758061409,
-0.010847938247025013,
-0.017512455582618713,
0.023084498941898346,
0.008217230439186096,
-0.040086530148983,
-0.036925412714481354,
0.0124118123203516,
-0.0834093913435936,
-0.04503089562058449,
-0.02541794814169407,
-0.06756754219532013,
0.06765971332788467,
-0.028142333030700684,
-0.08403338491916656,
-0.08712117373943329,
-0.0036335233598947525,
-0.0056333886459469795,
0.032579921185970306,
-0.025714877992868423,
0.1264646202325821,
-0.07036461681127548,
0.0018240376375615597,
0.0017741055926308036,
0.0016669718315824866,
-0.04764086380600929,
-0.03767354041337967,
-0.010224897414445877,
0.03863590210676193,
0.0941397175192833,
-0.005384312476962805,
-0.003561796387657523,
0.050071801990270615,
0.07704298198223114,
0.027649661526083946,
0.05994271859526634,
-0.013297190889716148,
0.000004053491466038395,
0.005882968194782734,
0.027617163956165314,
0.009594911709427834,
-0.004462043289095163,
-0.07117525488138199,
-0.023738635703921318,
-0.08103983849287033,
0.03825875744223595,
0.0248576570302248,
-0.035476528108119965,
0.02905389480292797,
-0.015765424817800522,
0.01252064760774374,
0.06437975913286209,
0.008416887372732162,
0.05572405084967613,
0.02155252918601036,
0.003947374876588583,
0.04008685424923897,
-0.06738074123859406,
0.09611305594444275,
0.013531332835555077,
0.01985817402601242,
0.0001721840089885518,
0.04216253384947777,
-0.025141701102256775,
-0.036349810659885406,
-0.027668926864862442,
-0.014090294018387794,
0.02382630854845047,
0.05703870207071304,
0.00785121601074934,
-0.0004259221313986927,
0.10909917205572128,
0.024917716160416603,
-0.006603320129215717,
0.005541444756090641,
-0.007567218970507383,
0.005640399642288685,
0.033737633377313614,
0.007698950823396444,
0.026751266792416573,
0.022779159247875214,
0.004659377969801426,
0.08462416380643845,
0.019338810816407204,
0.015979556366801262,
0.009245583787560463,
-0.005878187250345945,
0.03677612543106079,
0.05045506730675697,
-0.03885887190699577,
0.05959600582718849,
0.03561435267329216,
-0.09953207522630692,
0.01790640316903591,
0.022956334054470062,
0.044414669275283813,
-0.030829135328531265,
-0.012449778616428375,
-0.057110946625471115,
0.045473821461200714,
0.028336387127637863,
0.03122297301888466,
-0.0635736733675003,
-0.036082923412323,
0.06941187381744385,
0.021591326221823692,
0.06466016173362732,
0.01816760189831257,
0.04706390202045441,
0.08968450129032135,
-0.05509989708662033,
-0.01011856459081173,
0.06076458841562271,
0.01647200621664524,
-0.10810695588588715,
0.030724456533789635,
0.003381420159712434,
-0.00839232373982668,
-0.03961729258298874,
-0.0011421950766816735,
-0.08862321078777313,
-0.0008750847773626447,
0.006686490029096603,
0.01877346634864807,
-0.024457048624753952,
0.03361893445253372,
-0.017433373257517815,
0.2056325376033783,
0.013656553812325,
0.011447692289948463,
-0.04467648267745972,
0.0006925704656168818,
0.04492592811584473,
0.01627924107015133,
0.028484594076871872,
0.09116016328334808,
-0.07023345679044724,
-0.03483910486102104,
-0.023986084386706352,
-0.014247779734432697,
0.043015964329242706,
-0.044486355036497116,
0.004633634816855192,
0.008233767002820969,
-0.005833941511809826,
0.007673957385122776,
-0.0511280819773674,
0.057481106370687485,
0.04176880419254303,
-0.050214920192956924,
0.0361894853413105,
-0.06729389727115631,
0.005436745472252369,
0.11192206293344498,
0.0006983393104746938,
-0.044901423156261444,
0.029933996498584747,
-0.07600294053554535,
0.020969469100236893,
0.009155148640275002,
-0.0010161433601751924,
0.011871829628944397,
0.05573144182562828,
-0.04879141226410866,
-0.008977633900940418,
0.012912265956401825,
0.04364192113280296,
-0.011381547898054123,
-0.0009645530371926725,
-0.0034301835112273693,
0.015117616392672062,
-0.0054701026529073715,
-0.03730993717908859,
-0.01914478838443756,
-0.03592568635940552,
0.014815596863627434,
-0.007227438967674971,
0.021033959463238716,
-0.007488292641937733,
0.0019896768499165773,
0.034066181629896164,
0.01006341353058815,
0.007587128784507513,
0.01146372128278017,
0.029071200639009476,
-0.030281879007816315,
-0.0009672291344031692,
0.010588115081191063,
-0.016497358679771423,
0.031207464635372162,
0.020590998232364655,
0.019041553139686584,
-0.03715958073735237,
-0.011949514970183372,
-0.0383344441652298,
-0.02684631012380123,
-0.014099977910518646,
0.009161239489912987,
0.031335681676864624,
0.007226794958114624,
-0.0018385014263913035,
0.037442874163389206,
-0.004818746354430914,
0.018761776387691498,
-0.0020175869576632977,
-0.003479806473478675,
-0.004988841246813536,
0.00751809636130929,
-0.016575589776039124,
-0.009927885606884956,
-0.006849757861346006,
-0.03884292393922806,
0.054186251014471054,
0.010006368160247803,
0.013022955507040024,
-0.09712489694356918,
-0.023413727059960365,
0.0386434905230999,
-0.0016347658820450306,
-0.01716182939708233,
-0.002579078543931246,
0.06266865134239197,
-0.011832289397716522,
0.01773083582520485,
-0.0045346156693995,
0.0012278617359697819,
-0.005600786302238703,
0.005005924496799707,
-0.020032931119203568,
0.0007975309272296727,
0.013656869530677795,
0.007157337851822376,
0.010360314510762691,
0.031227974221110344,
-0.018989766016602516,
-0.019361143931746483,
0.030660411342978477,
0.007797642610967159,
-0.008946879766881466,
0.020530126988887787,
0.0011729979887604713,
0.04452209547162056,
0.01578889600932598,
0.019214585423469543,
-0.0319543182849884,
-0.003381753107532859,
-0.035378698259592056,
-0.029064016416668892,
-0.01311848871409893,
-0.01921013370156288,
0.010794214904308319,
-0.019347110763192177,
-0.015011194162070751,
0.015264354646205902,
-0.008116456679999828,
-0.045480672270059586,
-0.033675748854875565,
0.0058105215430259705,
0.0025182142853736877,
-0.027050495147705078,
0.010776925832033157,
-0.005336601287126541,
-0.009032647125422955,
0.018710525706410408,
-0.055058833211660385,
-0.009756360203027725,
-0.035327646881341934,
0.032731831073760986,
0.030192095786333084,
0.024890389293432236,
0.011509849689900875,
0.00022355934197548777,
0.056629911065101624,
0.05624831095337868,
-0.001656753825955093,
-0.060363367199897766,
0.008736110292375088,
-0.013256119564175606,
0.011429398320615292,
-0.03978164121508598,
0.027401285246014595,
0.022768421098589897,
0.05220784991979599,
-0.018417473882436752,
-0.004085339140146971,
0.045200031250715256,
0.019592884927988052,
0.012766554951667786,
0.01164264790713787,
-0.006590577773749828,
-0.024695493280887604,
-0.016241250559687614,
-0.03532780334353447,
0.056091975420713425,
0.05033941939473152,
-0.006495366338640451,
0.01931237243115902,
-0.0523105226457119,
0.004698128439486027,
0.02110256440937519,
-0.008734015747904778,
0.02223515324294567,
-0.05919446796178818,
0.009079065173864365,
0.0035287486389279366,
0.004342693369835615,
0.004311563912779093,
-0.0066191647201776505,
0.0020121419802308083,
-0.04982519894838333,
0.02098255418241024,
0.036877039819955826,
0.02648358792066574,
-0.017195986583828926,
0.011856517754495144,
0.0016248197061941028,
-0.045590635389089584,
0.00576780503615737,
0.006443467456847429,
-0.010637974366545677,
-0.043404195457696915,
-0.02581997960805893,
-0.009662008844316006,
0.010093948803842068,
0.020603207871317863,
0.024017464369535446,
0.03308597207069397,
0.016751402989029884,
-0.0360114611685276,
0.023439863696694374,
0.06347917765378952,
-0.0349150076508522,
0.009976399131119251,
-0.007137493696063757,
0.019160058349370956,
-0.033531554043293,
-0.01755586825311184,
-0.0056495401076972485,
-0.009312499314546585,
0.011880451813340187,
0.0014393823221325874,
0.04771602898836136,
0.015539207495748997,
0.002847630763426423,
0.007101975381374359,
-0.013378729112446308,
-0.0003317118971608579,
0.001968392403796315,
0.010102251544594765,
0.004972435999661684,
0.01676807925105095,
-0.0115884467959404,
0.007549061439931393,
0.015396215952932835,
-0.037405386567115784,
-0.04530578479170799,
-0.0034715926740318537,
0.002021143678575754,
-0.011805599555373192,
0.01340522337704897,
-0.010838105343282223,
-0.05827717110514641,
-0.028310026973485947,
-0.030518583953380585,
0.01646578684449196,
0.012267811223864555,
0.015097048133611679,
-0.01324260514229536,
-0.015587598085403442,
-0.0030055721290409565,
-0.03996749222278595,
0.009954586625099182,
-0.0010439848992973566,
-0.023663155734539032,
0.058623187243938446,
-0.013130344450473785,
-0.02186298370361328,
-0.028444204479455948,
0.02408590167760849,
-0.009642250835895538,
-0.002681624609977007,
-0.0608072429895401,
-0.05320558324456215,
0.0123452702537179,
0.02452453039586544,
-0.0036909650079905987,
0.02751787006855011,
0.01897842437028885,
-0.03736383095383644,
0.007798171602189541,
0.05296694487333298,
0.0044639380648732185,
0.013091901317238808,
-0.038940127938985825,
0.04898849129676819,
-0.0414995476603508,
-0.018452877178788185,
0.04094470664858818,
-0.006196798291057348,
-0.002813672414049506,
0.04335574805736542,
0.05525453761219978,
0.04364236444234848,
0.05043693259358406,
0.058862101286649704,
-0.026007207110524178,
-0.024860505014657974,
-0.022183431312441826,
-0.040349144488573074,
0.03271246328949928,
-0.013895642012357712,
-0.04142089560627937,
0.027447249740362167,
-0.023433910682797432,
-0.01982448250055313,
0.047732967883348465,
0.013592924922704697,
0.009268091060221195,
-0.02103591337800026,
0.021925756707787514,
0.03147098049521446,
0.011334490962326527,
0.0033063816372305155,
0.007560641970485449,
-0.040732644498348236,
0.00018725648988038301,
-0.04103801026940346,
0.02499428391456604,
0.021714024245738983,
0.00643962575122714,
-0.0032023421954363585,
-0.015808816999197006,
0.0210080798715353,
0.03743709996342659,
0.06081350892782211,
-0.014068227261304855,
-0.014899714849889278,
-0.01718209870159626,
-0.0326334610581398,
0.07466469705104828,
-0.03074299544095993,
-0.009097875095903873,
0.022207358852028847,
-0.0004832182894460857,
0.031042350456118584,
0.05084259435534477,
-0.056307967752218246,
-0.008406620472669601,
0.0533352755010128,
0.01795431412756443,
-0.016887757927179337,
-0.06766346842050552,
0.03710648790001869,
0.0378335565328598,
-0.009740578010678291,
-0.0163390152156353,
-0.028290698304772377,
-0.024317240342497826,
0.02695070393383503,
-0.00759080657735467,
0.03510187938809395,
0.02517458237707615,
-0.002615726552903652,
-0.032378826290369034,
0.009816176258027554,
0.01709083840250969,
-0.004291555378586054,
-0.006730872672051191,
-0.02098902128636837,
0.017988057807087898,
0.033787332475185394,
0.037696368992328644,
-0.00581483356654644,
0.05384619161486626,
0.0034159300848841667,
0.03322945907711983,
-0.04177623242139816,
0.05297115817666054,
0.015443563461303711,
-0.05177804082632065,
0.06608214974403381,
0.027427149936556816,
-0.044583696871995926,
-0.01915784552693367,
-0.0023022235836833715,
0.021306727081537247,
0.010412597097456455,
0.006268672179430723,
-0.008875180967152119,
-0.017343895509839058,
0.006946262437850237,
-0.01426720805466175,
0.060762543231248856,
0.016708623617887497,
0.04927334189414978,
0.016515016555786133,
0.04910578578710556,
0.03033088706433773,
0.042933281511068344,
-0.03275681287050247,
0.0006324088317342103,
0.06696684658527374,
0.029835958033800125,
0.00925925187766552,
-0.042778898030519485,
0.006568240933120251,
0.03564220294356346,
-0.034546155482530594,
0.014796136878430843,
-0.00534592941403389,
-0.01994245871901512,
0.04175983741879463,
-0.008661359548568726,
0.0040937368758022785,
-0.027559621259570122,
0.023572957143187523,
0.00208856537938118,
0.01233756635338068,
0.0002501902636140585,
-0.005706130061298609,
0.04653935506939888,
0.016206415370106697,
0.018519185483455658,
0.045516956597566605,
-0.027327220886945724,
-0.04665776342153549,
0.05298347398638725,
0.02008359134197235,
-0.01916174590587616,
0.01436636783182621,
0.013221628963947296,
-0.005645657889544964,
-0.04176628589630127,
-0.04652255028486252,
0.03516831994056702,
0.04653904214501381,
0.006466346327215433,
0.025817343965172768,
-0.021843262016773224,
-0.05642330273985863,
0.013282762840390205,
-0.05069060996174812,
-0.007210757117718458,
-0.010039051994681358,
-0.010962925851345062,
0.014860302209854126,
0.018091484904289246,
-0.02090153843164444,
-0.07464153319597244,
-0.013878783211112022,
0.00925842672586441,
-0.015773549675941467,
-0.00920535996556282,
-0.060961201786994934,
-0.018905168399214745,
-0.023706922307610512,
-0.014271809719502926,
-0.024746255949139595,
0.0047674281522631645,
-0.030889250338077545,
0.014421314001083374,
0.009387667290866375,
0.057371944189071655,
0.000958810793235898,
0.007207661867141724,
-0.0019580565858632326,
0.03435761108994484,
-0.0007887096726335585,
-0.03224043920636177,
-0.04177365079522133,
-0.02968301996588707,
0.03144665062427521,
-0.01971365325152874,
-0.02798791602253914,
-0.03350019454956055,
0.027787966653704643,
0.024872809648513794,
0.03275032714009285,
-0.026585403829813004,
-0.017887165769934654,
-0.0028852708637714386,
-0.033003199845552444,
-0.024678131565451622,
0.04893289506435394,
0.007464843336492777,
0.015741627663373947,
-0.018941128626465797,
-0.0011990362545475364,
-0.043508924543857574,
-0.030889863148331642,
-0.010592473670840263,
0.04063016548752785,
-0.0018057276029139757,
-0.017435293644666672,
-0.004799931775778532,
0.0002165867917938158,
0.009161336347460747,
-0.0107791842892766,
0.0172339528799057,
-0.025563986971974373,
0.010958369821310043,
-0.012684035114943981,
-0.011771967634558678,
-0.014431261457502842,
0.051493894308805466,
-0.03744926676154137,
-0.041469965130090714,
-0.05741703882813454,
0.011358139105141163,
-0.013262772932648659,
0.02832169458270073,
-0.04752613604068756,
-0.03202231600880623,
-0.0403604656457901,
-0.018668409436941147,
-0.010727183893322945,
-0.005045120604336262,
0.019101697951555252,
0.020749269053339958,
0.10278452187776566,
0.004992864094674587,
-0.024208515882492065,
-0.0024934231769293547,
0.024607066065073013,
-0.006273599341511726,
0.018839746713638306,
-0.0070332689210772514,
-0.030813364312052727,
0.001148644951172173,
0.01568550430238247,
-0.028340518474578857,
-0.042085178196430206,
0.0032675296533852816,
0.00870470143854618,
-0.04779207706451416,
-0.07525952160358429,
0.003232745686545968,
0.02795633301138878,
0.02611429989337921,
0.05949106812477112,
0.007637903559952974,
-0.0041303145699203014,
-0.04857553541660309,
0.034899793565273285,
-0.048816271126270294,
0.00978174153715372,
-0.014900744892656803,
-0.04611394926905632,
0.005495455581694841,
0.0031392036471515894,
0.0040245093405246735,
0.00401373440399766,
-0.034189432859420776,
-0.006311508826911449,
-0.015423664823174477,
-0.044538866728544235,
-0.03662433102726936,
-0.022725533694028854,
0.028544437140226364,
-0.011353139765560627,
0.02665765769779682,
0.04413054510951042,
-0.040474578738212585,
-0.05642678961157799,
-0.004559212829917669,
0.009503933601081371,
-0.03628889098763466,
0.02606072649359703,
0.020474404096603394,
-0.027782155200839043,
0.022038275375962257,
0.052138712257146835,
-0.0036875319201499224,
-0.028181303292512894,
0.060807570815086365
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Few-Shot example (advanced) This is an example of how you could eos_token_id to stop the generation on a certain token, e.g. \n ,. or | [
0.02624604105949402,
0.043840065598487854,
0.06313550472259521,
-0.05143763870000839,
0.14111201465129852,
0.009535658173263073,
-0.030597619712352753,
0.020145343616604805,
-0.008229483850300312,
-0.015004577115178108,
-0.09568271785974503,
0.02652800641953945,
-0.03633030131459236,
0.011289939284324646,
-0.013999495655298233,
0.017147839069366455,
0.009059353731572628,
-0.02321556955575943,
-0.04348479583859444,
-0.04495219513773918,
0.029106328263878822,
-0.017388302832841873,
0.06349485367536545,
-0.007889368571341038,
0.037160664796829224,
0.030288681387901306,
-0.001063253846950829,
-0.007843655534088612,
-0.08110213279724121,
0.007099175825715065,
-0.04761571064591408,
0.031113052740693092,
0.030527956783771515,
0.013304943218827248,
0.0322815477848053,
-0.0023050468880683184,
-0.07990054041147232,
0.028019016608595848,
0.043702926486730576,
0.01687421277165413,
-0.07715367525815964,
-0.09014113247394562,
-0.011412786319851875,
0.05722916126251221,
0.035892944782972336,
-0.052076052874326706,
-0.23679497838020325,
0.07327954471111298,
-0.0654614046216011,
-0.007397022098302841,
-0.12240953743457794,
0.049682192504405975,
-0.04987379536032677,
-0.04135526716709137,
0.010370759293437004,
0.04529872164130211,
-0.029609914869070053,
-0.052295975387096405,
0.011202454566955566,
-0.04008754715323448,
0.035857975482940674,
-0.003266952931880951,
0.0020272028632462025,
0.05278109014034271,
0.08401352167129517,
0.006660868413746357,
-0.0828699916601181,
0.0297892764210701,
-0.030978860333561897,
0.020741388201713562,
0.004138441290706396,
0.012257028371095657,
-0.01605442725121975,
0.0028314075898379087,
0.03766445815563202,
-0.03537987172603607,
0.019388757646083832,
0.003914001863449812,
0.06893900036811829,
0.07217008620500565,
0.04395197331905365,
0.03407997637987137,
0.10892342776060104,
0.04143485426902771,
-0.002072311472147703,
-0.05963845178484917,
0.04883190244436264,
-0.0026558241806924343,
-0.01830943115055561,
0.01187534723430872,
-0.0205181073397398,
-0.0904328003525734,
0.019262949004769325,
0.020108798518776894,
-0.015554632991552353,
-0.032626088708639145,
0.05258094146847725,
0.05611265078186989,
0.05073464289307594,
0.012296601198613644,
-0.008634745143353939,
-0.05418206378817558,
0.02672428824007511,
-0.050893720239400864,
-0.08070880174636841,
0.009118261747062206,
0.007259360980242491,
-0.03331359848380089,
-0.07679992914199829,
-0.010243468917906284,
-0.012573185376822948,
0.03511426970362663,
0.021874239668250084,
0.04835598170757294,
-0.04534885287284851,
0.012617615051567554,
-0.00043357277172617614,
0.014911995269358158,
0.004601007327437401,
0.007447117008268833,
-0.015495291911065578,
0.0573858879506588,
0.09570325911045074,
-0.03193458542227745,
-0.018907945603132248,
0.02514004148542881,
0.052284590899944305,
0.04923030361533165,
-0.08284301310777664,
-0.0363793782889843,
-0.03279458358883858,
0.10162082314491272,
0.05884743481874466,
0.004777792375534773,
-0.00048204977065324783,
-0.024445630609989166,
0.00426257960498333,
-0.019510122016072273,
0.07734032720327377,
-0.03215118497610092,
0.001347750541754067,
0.00885982345789671,
-0.03423666954040527,
0.08573054522275925,
0.013313831761479378,
0.011569494381546974,
-0.028895387426018715,
-0.002862798050045967,
0.009010023437440395,
0.034060072153806686,
0.019701002165675163,
0.029396094381809235,
-0.008020127192139626,
-0.03340967372059822,
-0.021938906982541084,
0.02880053035914898,
-0.014482332393527031,
0.006039435043931007,
-0.09948281943798065,
-0.04681208357214928,
0.06392987072467804,
0.017722060903906822,
0.003024517325684428,
-0.042198099195957184,
0.0752081349492073,
-0.024707430973649025,
-0.0009926996426656842,
0.007601541932672262,
0.019829340279102325,
-0.08352594822645187,
0.012639036402106285,
-0.024212034419178963,
-0.009085153229534626,
-0.03985755518078804,
-0.0009092689142562449,
0.002964477753266692,
0.08196507394313812,
0.048482708632946014,
-0.025993134826421738,
0.03352055326104164,
-0.028226938098669052,
-0.02881033718585968,
-0.010311942547559738,
0.03125100955367088,
0.01122710108757019,
-0.06364469975233078,
0.0062838648445904255,
0.03947455808520317,
-0.012676306068897247,
0.005281863734126091,
-0.04621528089046478,
0.005318444687873125,
0.11147856712341309,
-0.015757672488689423,
-0.032848332077264786,
-0.05404764413833618,
-0.07391387224197388,
0.073842354118824,
0.05669677257537842,
0.11448648571968079,
-0.030999919399619102,
0.04189436510205269,
0.009468589909374714,
-0.04209095612168312,
-0.030172225087881088,
0.018344363197684288,
0.026458455249667168,
-0.008642462082207203,
0.05325283110141754,
0.038816362619400024,
-0.01483721099793911,
0.004297957289963961,
0.03240704908967018,
-0.10560231655836105,
0.007252064999192953,
-0.027241338044404984,
0.02283754013478756,
-0.0388769656419754,
0.040012117475271225,
-0.020944975316524506,
0.10962753742933273,
-0.020845241844654083,
0.03823964670300484,
0.015430446714162827,
-0.0040609342977404594,
0.059970397502183914,
0.04317597672343254,
0.05418624356389046,
0.010816879570484161,
-0.11498986184597015,
-0.013432850129902363,
-0.031900834292173386,
0.006642627529799938,
0.002677058568224311,
-0.02012295462191105,
0.0283708106726408,
0.052069906145334244,
0.026990093290805817,
0.06205788254737854,
-0.043191857635974884,
-0.028735145926475525,
-0.009976471774280071,
-0.06338486820459366,
0.05750549957156181,
-0.004774135537445545,
-0.01522060763090849,
0.01826787181198597,
-0.020448127761483192,
-0.07173749059438705,
-0.011756687425076962,
-0.026535289362072945,
0.049403876066207886,
-0.0668245479464531,
-0.12832050025463104,
0.08510831743478775,
-0.0695914551615715,
-0.01674029976129532,
-0.01286165602505207,
-0.043706417083740234,
-0.004865478724241257,
-0.04167256876826286,
-0.02229645662009716,
-0.03420999273657799,
-0.05580707639455795,
0.01658765599131584,
0.0004296771658118814,
0.023067055270075798,
0.023596180602908134,
-0.014300806447863579,
0.017542624846100807,
-0.012021439149975777,
0.041574109345674515,
0.004818709567189217,
0.02257774956524372,
-0.020545629784464836,
0.007398160174489021,
0.02268170192837715,
-0.007992835715413094,
-0.00888841412961483,
0.015948586165905,
0.01622522622346878,
-0.04277642071247101,
0.004341430496424437,
0.03832751512527466,
0.025769630447030067,
0.006406926084309816,
-0.007335403468459845,
0.0058111646212637424,
-0.002704490441828966,
-0.007777181454002857,
-0.022108791396021843,
0.015142812393605709,
0.04561133682727814,
0.0025356304831802845,
0.035962190479040146,
0.013559026643633842,
-0.02313656359910965,
0.024465400725603104,
-0.031776249408721924,
-0.02676844783127308,
-0.0005572114023379982,
0.0014844880206510425,
-0.011168026365339756,
0.0001049415222951211,
-0.03910546377301216,
0.04378878325223923,
-0.0021428288891911507,
0.0026489989832043648,
-0.12132034450769424,
-0.040684591978788376,
-0.004326134454458952,
0.018046697601675987,
-0.00706715090200305,
-0.01413217093795538,
0.0820004791021347,
-0.023647664114832878,
-0.008244638331234455,
0.04235019162297249,
0.015600377693772316,
0.014397350139915943,
0.02362995222210884,
-0.06724317371845245,
-0.02833489514887333,
0.01721155270934105,
-0.04338878020644188,
0.03050682321190834,
-0.008062653243541718,
0.012146932072937489,
-0.010186419822275639,
0.0008385189576074481,
0.02309974655508995,
0.006513967178761959,
0.009257146157324314,
0.03251626715064049,
0.017566785216331482,
0.02368483878672123,
0.04138210043311119,
-0.035876303911209106,
0.0018453113734722137,
0.0120126036927104,
0.016801536083221436,
0.01444284524768591,
-0.02222844958305359,
-0.028995787724852562,
0.05132940784096718,
-0.0028547076508402824,
-0.009788141585886478,
0.014385917223989964,
0.01620122604072094,
-0.0021393997594714165,
0.03489299491047859,
0.013444730080664158,
-0.041455212980508804,
-0.03164339438080788,
-0.005450069438666105,
-0.020854920148849487,
0.057665735483169556,
-0.044065628200769424,
-0.012084482237696648,
-0.05161387845873833,
0.01851765438914299,
0.04771115258336067,
0.0017701133619993925,
0.02479044534265995,
-0.016420749947428703,
0.03870401531457901,
0.05844805762171745,
-0.013580143451690674,
-0.03892529383301735,
-0.02145809680223465,
0.018237655982375145,
-0.0007040764321573079,
-0.05700531229376793,
0.054704196751117706,
-0.042072784155607224,
0.017642168328166008,
-0.020809926092624664,
0.0427117645740509,
0.0015571907861158252,
0.0030700431670993567,
0.009977508336305618,
0.019639981910586357,
-0.01930326409637928,
0.016133030876517296,
-0.05348944291472435,
-0.03726980835199356,
0.06106112152338028,
-0.021490449085831642,
0.010226784273982048,
0.013903656043112278,
-0.025112612172961235,
0.009981860406696796,
-0.03446769714355469,
-0.014400755986571312,
0.02423051744699478,
0.02648995816707611,
-0.020156212151050568,
0.017029890790581703,
0.06652989983558655,
-0.010448640212416649,
0.004923265893012285,
0.02565881237387657,
-0.0027282540686428547,
-0.019563492387533188,
-0.006164330989122391,
0.014360097236931324,
0.034601420164108276,
0.024073345586657524,
0.034445710480213165,
-0.02208642289042473,
-0.020741013810038567,
0.004111055284738541,
-0.02894183062016964,
-0.00011630816879915074,
-0.05943438783288002,
-0.009280395694077015,
-0.009370802901685238,
0.029039012268185616,
-0.002385684521868825,
-0.006212427280843258,
0.015050612390041351,
-0.018818126991391182,
-0.037769172340631485,
0.03649705648422241,
0.008890923112630844,
-0.03129499405622482,
0.00035012184525839984,
-0.0497695729136467,
-0.03210851922631264,
0.029530111700296402,
0.00847702194005251,
-0.035546962171792984,
0.011115667410194874,
-0.020194847136735916,
0.007419366389513016,
0.012205823324620724,
0.0185136366635561,
0.018643811345100403,
0.004454790614545345,
-0.020278822630643845,
0.04986407980322838,
0.0034008906222879887,
-0.00015606830129399896,
0.011844386346638203,
-0.006727995816618204,
0.0047292765229940414,
0.02616492286324501,
-0.05755169689655304,
-0.013762736693024635,
-0.0037315753288567066,
0.021729538217186928,
-0.00978460069745779,
0.046452946960926056,
0.0020433980971574783,
-0.0053117601200938225,
0.009480398148298264,
0.008111757226288319,
0.020939046517014503,
0.041802648454904556,
-0.004843648057430983,
-0.06400106102228165,
-0.009984959848225117,
-0.018457436934113503,
-0.014461814425885677,
0.03383117541670799,
-0.017806533724069595,
-0.0052079735323786736,
0.05546024441719055,
-0.01793457381427288,
-0.030397171154618263,
-0.010138354264199734,
0.004458877723664045,
0.0009375263471156359,
-0.002521044109016657,
-0.018802791833877563,
-0.01052567083388567,
-0.02172873727977276,
0.027880653738975525,
-0.0029920802917331457,
0.018570661544799805,
-0.0031846067868173122,
-0.010539338923990726,
0.04044914245605469,
0.01916293241083622,
0.023699801415205002,
0.01803220994770527,
-0.0002701479534152895,
-0.006504269316792488,
-0.054061368107795715,
0.008656865917146206,
0.04998684674501419,
0.032209958881139755,
0.010130804032087326,
0.02538888342678547,
0.04933879151940346,
0.014567642472684383,
0.027245236560702324,
0.0679163932800293,
-0.02824312262237072,
0.011824789457023144,
-0.015946073457598686,
-0.0279881302267313,
0.009335070848464966,
-0.0046061137691140175,
-0.046014800667762756,
0.04547613859176636,
-0.018243063241243362,
-0.03458684682846069,
0.011576204560697079,
0.08146830648183823,
-0.02181203104555607,
-0.010267683304846287,
0.015882037580013275,
0.021422619000077248,
0.009421546012163162,
-0.013690645806491375,
-0.001959457527846098,
-0.038742098957300186,
-0.015662850812077522,
-0.018248790875077248,
-0.019933214411139488,
0.0039032050408422947,
0.045195434242486954,
-0.007972591556608677,
0.009567656554281712,
-0.0030842009000480175,
0.0013058988843113184,
0.05195198580622673,
0.013511242344975471,
0.012259149923920631,
-0.037752069532871246,
0.03897213190793991,
0.03936767578125,
0.02370734140276909,
0.017718244343996048,
0.012901999056339264,
0.04902593418955803,
0.044102899730205536,
0.04030635207891464,
-0.01609918288886547,
0.009868995286524296,
0.02305964007973671,
0.015946336090564728,
0.012010239996016026,
-0.0393209271132946,
0.029693910852074623,
0.011593537405133247,
0.04621089622378349,
0.00601043738424778,
-0.00003740587635547854,
-0.042273007333278656,
0.01118372566998005,
-0.046433959156274796,
-0.005109996534883976,
0.03889986500144005,
0.029072079807519913,
-0.020480481907725334,
0.017503490671515465,
0.048213474452495575,
0.000341471895808354,
0.010891521349549294,
-0.01759268157184124,
0.03337889909744263,
0.028175104409456253,
0.02424478903412819,
-0.04911484196782112,
0.010191509500145912,
-0.03625384345650673,
0.019440103322267532,
-0.018154148012399673,
0.014305874705314636,
-0.007602004334330559,
-0.018995242193341255,
0.05356428399682045,
-0.01703011430799961,
-0.04132311791181564,
0.02144884318113327,
0.029006605967879295,
0.009906981140375137,
0.001961807254701853,
0.009225663729012012,
0.0018628546968102455,
-0.03125656768679619,
0.017808249220252037,
-0.014907128177583218,
0.08777830004692078,
-0.007400639355182648,
0.04310579225420952,
-0.02644985541701317,
0.011554023250937462,
-0.00045862889965064824,
0.030016232281923294,
-0.001996678300201893,
0.0049626813270151615,
0.0422152504324913,
0.021956807002425194,
0.032510142773389816,
0.0037404766771942377,
0.015190782956779003,
0.01423147413879633,
-0.05018692836165428,
-0.00922352448105812,
-0.0064194598235189915,
-0.01690429449081421,
0.027948491275310516,
0.005564904771745205,
0.00021824106806889176,
-0.0548260435461998,
0.05442710593342781,
0.017939411103725433,
-0.0007604726706631482,
0.0003454088291618973,
-0.004609573166817427,
-0.028845343738794327,
-0.003869200823828578,
0.034263864159584045,
0.04464206099510193,
0.0004091966256964952,
-0.0001327971986029297,
0.06070069596171379,
-0.012034587562084198,
-0.0016666067531332374,
0.0577394999563694,
-0.025928379967808723,
0.02806837670505047,
-0.018220186233520508,
-0.035632964223623276,
-0.03486546874046326,
0.030189286917448044,
-0.05943020433187485,
-0.02119622752070427,
-0.04005091264843941,
-0.042673662304878235,
-0.051267389208078384,
-0.0020426574628800154,
-0.013391058892011642,
-0.013737664557993412,
-0.02414204366505146,
0.008356464095413685,
0.021013280376791954,
0.03680536150932312,
-0.0016705518355593085,
-0.005365237593650818,
0.015494626946747303,
0.029230190441012383,
0.029794128611683846,
-0.038161784410476685,
-0.04060325771570206,
-0.02039954997599125,
-0.013459742069244385,
0.011959182098507881,
-0.031788282096385956,
0.025470321998000145,
-0.019817857071757317,
0.025420166552066803,
0.030234774574637413,
-0.017436878755688667,
0.03436374291777611,
0.021857714280486107,
0.03704532980918884,
-0.024972476065158844,
0.029817042872309685,
-0.049130670726299286,
-0.01158709917217493,
-0.023563198745250702,
-0.008935587480664253,
-0.008273422718048096,
0.011956727132201195,
0.03571811318397522,
0.011380033567547798,
-0.0130660654976964,
-0.016941072419285774,
-0.01675613783299923,
-0.019409960135817528,
-0.021420001983642578,
-0.03769981116056442,
0.020205195993185043,
0.0009107577498070896,
-0.01826559752225876,
-0.0044518946669995785,
0.002152239205315709,
-0.009904792532324791,
-0.04056776314973831,
-0.013118508271872997,
0.046279020607471466,
0.00262668589130044,
-0.05285303294658661,
-0.0002223109477199614,
0.0292873103171587,
0.006990813184529543,
0.010700511746108532,
-0.00949581153690815,
0.01904682070016861,
0.01691104657948017,
-0.004752255044877529,
0.03575446456670761,
0.01120336726307869,
0.03586344048380852,
-0.054684530943632126,
-0.020578594878315926,
-0.030945535749197006,
-0.03377726674079895,
-0.03736952319741249,
0.0006616665050387383,
-0.023419220000505447,
-0.0035430516581982374,
-0.020557425916194916,
-0.028473323211073875,
-0.02699674665927887,
0.005358133465051651,
0.03880228474736214,
0.01219820138067007,
0.0722227618098259,
0.03038300760090351,
-0.025197239592671394,
-0.01037755236029625,
-0.03744165226817131,
0.009126833640038967,
0.021343234926462173,
0.03865732625126839,
-0.01731131784617901,
0.006102927960455418,
0.041306644678115845,
-0.11869827657938004,
-0.037485793232917786,
-0.0040317983366549015,
0.022134698927402496,
-0.018888534978032112,
-0.0005381258088164032,
0.013164529576897621,
-0.005042071454226971,
-0.00020199030404910445,
0.022170014679431915,
0.0229652039706707,
-0.0021713085006922483,
0.013391440734267235,
0.03213378041982651,
-0.012919172644615173,
0.002483641030266881,
-0.021701481193304062,
-0.021076511591672897,
0.04776914045214653,
0.005415664054453373,
-0.0087523702532053,
-0.00873950868844986,
-0.039542973041534424,
0.022826844826340675,
0.015791883692145348,
-0.003173626959323883,
0.009685749188065529,
0.0009238705388270319,
-0.007729056291282177,
-0.04144563153386116,
-0.03476756438612938,
0.0013364561600610614,
0.02794387936592102,
-0.02908472530543804,
-0.031257763504981995,
0.010241882875561714,
-0.00855728704482317,
-0.0005700551555491984,
0.012302720919251442,
-0.026022661477327347,
0.042341481894254684,
0.038521669805049896,
-0.0008900794782675803,
-0.017856672406196594,
0.05647673085331917
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Conclusion We successfully managed to deploy GPT-J, a 6 billion parameter language model created by EleutherAI, using Amazon SageMaker. We reduced the model load time from 3.5 minutes down to 8 seconds to be able to run scalable, reliable inference. Remember that using torch.save() and torch.load() can create incompatibility issues. If you want to learn more about scaling out your Amazon SageMaker Endpoints check out my other blog post: “MLOps: End-to-End Hugging Face Transformers with the Hub & SageMaker Pipelines”. --- Thanks for reading! If you have any question, feel free to contact me, through Github, or on the forum. You can also connect with me on Twitter or LinkedIn. | [
-0.034271370619535446,
0.006340980064123869,
0.008409365080296993,
0.002250025048851967,
-0.00977489072829485,
0.09393621981143951,
0.04850507527589798,
0.03581774979829788,
0.04289378225803375,
0.010442377999424934,
-0.002931892406195402,
0.02241809107363224,
0.019420355558395386,
0.13095472753047943,
-0.005419886205345392,
-0.06903596222400665,
0.0052100419998168945,
-0.003918693866580725,
-0.023852987214922905,
-0.014988081529736519,
0.044683221727609634,
-0.04346846044063568,
-0.00833548977971077,
0.0054273041896522045,
-0.037151437252759933,
-0.05279477313160896,
-0.04048854112625122,
-0.018834128975868225,
0.046070367097854614,
0.03914570063352585,
-0.04085444286465645,
-0.03804644197225571,
-0.026944825425744057,
0.018171384930610657,
-0.03940269351005554,
0.00695654796436429,
-0.1309869885444641,
0.04425917938351631,
0.0556175671517849,
-0.013770295307040215,
-0.00467908987775445,
-0.00835318025201559,
-0.051279276609420776,
0.047228652983903885,
0.03714422136545181,
0.0005134561215527356,
-0.11238178610801697,
0.08610545843839645,
0.0014215426053851843,
-0.050025083124637604,
-0.08652330189943314,
0.03951500728726387,
-0.0010656464146450162,
-0.019399451091885567,
-0.04309799149632454,
0.025507420301437378,
0.016232116147875786,
-0.0767635777592659,
0.0016374312108382583,
-0.0254183541983366,
0.006442815065383911,
-0.044817373156547546,
-0.0045892964117228985,
-0.023457301780581474,
0.09212824702262878,
-0.03727215528488159,
0.023849567398428917,
-0.03021680936217308,
-0.014328716322779655,
-0.02646826207637787,
0.011955841444432735,
-0.029178379103541374,
-0.00827192235738039,
-0.08309245109558105,
-0.06455426663160324,
-0.018290363252162933,
0.040983039885759354,
0.012414472177624702,
0.027863141149282455,
0.045206908136606216,
-0.0448395200073719,
0.020440759137272835,
-0.005301721394062042,
0.04262867197394371,
0.0315852053463459,
0.018153049051761627,
0.07266809791326523,
-0.043851837515830994,
-0.03775807097554207,
-0.02355712093412876,
0.028096508234739304,
-0.07559726387262344,
-0.026961181312799454,
0.023879006505012512,
0.04971989244222641,
0.04368074610829353,
-0.02218492515385151,
-0.041246138513088226,
0.000784659234341234,
-0.02819674089550972,
0.03915835916996002,
-0.0570564940571785,
-0.037623923271894455,
-0.03293467313051224,
-0.04883154109120369,
0.07786477357149124,
-0.022558096796274185,
-0.08821221441030502,
0.04377467930316925,
0.032801687717437744,
0.0362115316092968,
0.012093689292669296,
-0.07370065897703171,
0.059008147567510605,
-0.10657984018325806,
0.04401751980185509,
0.019516471773386,
-0.007840142585337162,
0.024523179978132248,
0.04699471965432167,
0.04852921515703201,
0.07479586452245712,
0.0004423141945153475,
0.052267711609601974,
0.006129601504653692,
0.06402667611837387,
0.039516836404800415,
-0.010752803646028042,
0.004643683321774006,
-0.01669476367533207,
0.06935517489910126,
-0.11449223011732101,
0.04275166988372803,
-0.00156079838052392,
-0.007252864073961973,
-0.04215407371520996,
0.03976505994796753,
-0.009765793569386005,
-0.002664763480424881,
0.031606078147888184,
-0.03655056282877922,
0.08723889291286469,
0.01333503145724535,
0.03383728116750717,
0.07568816095590591,
0.06289224326610565,
-0.035193875432014465,
0.019581740722060204,
-0.008958841674029827,
0.03886377811431885,
-0.14892379939556122,
0.08085848391056061,
-0.02869599498808384,
-0.03781649470329285,
0.03969190642237663,
0.06688959151506424,
-0.03705844655632973,
-0.001747460220940411,
-0.05976805463433266,
-0.05398748070001602,
-0.03502495586872101,
-0.02445172145962715,
0.019306214526295662,
-0.0538083054125309,
-0.00645953044295311,
-0.004030565265566111,
0.05913154035806656,
-0.01935071125626564,
0.06430087983608246,
-0.009699150919914246,
0.00833569373935461,
-0.012718233279883862,
0.07259275019168854,
0.03814356401562691,
0.0071404241025447845,
0.06442338973283768,
0.06572739779949188,
0.0611756294965744,
0.01265477854758501,
-0.031298570334911346,
-0.05080632120370865,
0.05819972977042198,
0.044073641300201416,
0.025110846385359764,
0.06652695685625076,
-0.08890362083911896,
-0.0054421573877334595,
-0.004753205459564924,
-0.003439300926402211,
0.0001784040650818497,
0.01970214582979679,
-0.007916227914392948,
0.08505242317914963,
-0.03813692182302475,
0.04304816946387291,
-0.021959898993372917,
-0.0007495979079976678,
0.1446623057126999,
0.07235807925462723,
0.04683677479624748,
-0.002605114132165909,
0.02050134912133217,
-0.0061553786508738995,
0.013086559250950813,
-0.0007123684044927359,
0.006822903640568256,
-0.02258635126054287,
0.01700129546225071,
0.03066907450556755,
0.02566096931695938,
0.0003669071302283555,
-0.12263937294483185,
0.008381017483770847,
-0.0808960348367691,
-0.05593108385801315,
-0.03208012506365776,
0.010926938615739346,
0.012245352379977703,
0.03390070050954819,
0.012063639238476753,
0.15243105590343475,
-0.05123426765203476,
0.0003741700202226639,
-0.0676533579826355,
0.009125709533691406,
0.0547327995300293,
0.05907103791832924,
0.03474883735179901,
0.047886863350868225,
-0.060865141451358795,
-0.024218052625656128,
-0.12850825488567352,
-0.02920249104499817,
0.019373806193470955,
0.015473461709916592,
-0.011193647980690002,
-0.027779126539826393,
-0.027988815680146217,
0.03948843479156494,
-0.0016907387180253863,
0.025803809985518456,
0.026488635689020157,
0.008615481667220592,
0.02612985484302044,
0.014665305614471436,
-0.06321827322244644,
0.07001658529043198,
0.0016088156262412667,
0.015842104330658913,
-0.01975131966173649,
-0.07383059710264206,
0.03515985608100891,
0.02042325958609581,
0.037446316331624985,
0.051280710846185684,
-0.013763067312538624,
-0.004318942315876484,
-0.03416196256875992,
0.013265267945826054,
0.05070093274116516,
-0.005227817688137293,
0.002579617314040661,
-0.030771169811487198,
0.01848403923213482,
0.0194413959980011,
-0.002398295095190406,
-0.028750257566571236,
-0.02736516296863556,
0.010181734338402748,
-0.0501195453107357,
0.0013119467766955495,
-0.03390520438551903,
0.015424584969878197,
0.005284913349896669,
0.0025855684652924538,
0.049772199243307114,
0.02532328851521015,
-0.009645527228713036,
-0.03737502172589302,
0.0019642966799438,
0.01029981579631567,
-0.042763471603393555,
-0.007555186282843351,
0.0038723626639693975,
-0.012839199975132942,
-0.0114950155839324,
-0.002472708700224757,
-0.03854706138372421,
-0.03158510476350784,
0.019152576103806496,
0.0026452336460351944,
0.05562765523791313,
0.023097174242138863,
-0.03213377669453621,
0.0016398888546973467,
-0.03514811024069786,
-0.028986098244786263,
-0.03708161786198616,
-0.0018338158261030912,
0.032210320234298706,
-0.018293585628271103,
0.01589643955230713,
0.00157013104762882,
-0.013551998883485794,
-0.013941805809736252,
0.0016168860020115972,
0.02904941514134407,
0.03170175850391388,
-0.07853253185749054,
-0.0289447084069252,
-0.04250654950737953,
-0.004717161413282156,
0.004592904821038246,
-0.02771148644387722,
0.05714711174368858,
0.027876513078808784,
0.00031574760214425623,
0.02483038417994976,
-0.0016323000891134143,
0.026034317910671234,
0.028306642547249794,
-0.010118032805621624,
0.012807648628950119,
0.0008542367722839117,
-0.027922160923480988,
0.0042208172380924225,
0.025575455278158188,
0.027423901483416557,
-0.04045862704515457,
0.024384887889027596,
0.0019480498740449548,
-0.0018751154420897365,
0.0055330111645162106,
-0.005112542305141687,
0.03160902485251427,
0.005289641674607992,
-0.0020315367728471756,
-0.00921704713255167,
-0.02841581217944622,
-0.0470128059387207,
-0.01400214247405529,
0.041274283081293106,
-0.03872529789805412,
-0.016854939982295036,
-0.011974473483860493,
0.05622810870409012,
0.01714017614722252,
0.010355593636631966,
0.01801672764122486,
-0.02171287126839161,
0.006017059087753296,
-0.02765781618654728,
0.040899310261011124,
-0.008141723461449146,
0.02707275189459324,
-0.010938731953501701,
0.04680188000202179,
-0.03579956293106079,
-0.02009512484073639,
-0.020948702469468117,
0.001817351789213717,
-0.0005044607096351683,
0.036660730838775635,
0.00980496034026146,
0.002093822695314884,
0.0014939034590497613,
0.015501233749091625,
-0.01424547377973795,
-0.018797051161527634,
0.01515680830925703,
0.006073297001421452,
-0.044553231447935104,
0.003323342651128769,
0.025018012151122093,
0.03740018978714943,
-0.00856751948595047,
-0.024392113089561462,
0.052164509892463684,
-0.03490757942199707,
0.02998942695558071,
0.01082619372755289,
-0.006062505766749382,
-0.0017396939219906926,
-0.004166698083281517,
-0.005821107886731625,
-0.002219882095232606,
0.012988129630684853,
0.06162308156490326,
-0.038417283445596695,
-0.0242252666503191,
-0.025436388328671455,
-0.04649222269654274,
0.02978518418967724,
0.009850256145000458,
-0.008922223933041096,
-0.03847954422235489,
0.01974429376423359,
0.03017280623316765,
-0.017024150118231773,
-0.020682118833065033,
0.004490536637604237,
-0.02411007136106491,
-0.02373940870165825,
-0.028935203328728676,
0.005278912838548422,
0.015936460345983505,
0.02361134998500347,
-0.004141874145716429,
-0.04396161064505577,
-0.03741342946887016,
0.01955115981400013,
0.01660759374499321,
-0.03325210139155388,
0.0172590184956789,
-0.008304917253553867,
0.0011921330587938428,
-0.011348170228302479,
0.03244447708129883,
0.03925636410713196,
0.005068128928542137,
0.0027282952796667814,
0.012951290234923363,
0.03310028836131096,
0.03549407422542572,
0.011320183984935284,
-0.019082557410001755,
0.011788403615355492,
0.07554922997951508,
-0.04442772641777992,
0.017337167635560036,
-0.0463741235435009,
-0.013927836902439594,
-0.008454086259007454,
0.03733329102396965,
-0.01546066626906395,
0.003901217831298709,
-0.00869174487888813,
-0.0036760573275387287,
-0.010754048824310303,
0.029862720519304276,
0.035583771765232086,
0.03070921264588833,
0.015496262349188328,
0.025029340758919716,
-0.017634565010666847,
-0.004996034782379866,
-0.005167392082512379,
0.024747522547841072,
-0.007939446717500687,
-0.019411569461226463,
-0.00852238293737173,
-0.04925194010138512,
0.01915845088660717,
-0.00802085641771555,
-0.009031601250171661,
0.0054286178201437,
-0.08281712234020233,
0.05024966970086098,
0.04713929817080498,
-0.006101211067289114,
-0.04758604243397713,
0.015235932543873787,
0.030413459986448288,
0.01816817931830883,
-0.013959704898297787,
0.004068787209689617,
0.014426461420953274,
0.07899967581033707,
0.017052076756954193,
0.03343488276004791,
-0.017910858616232872,
0.0018675579922273755,
0.0607835054397583,
0.015153990127146244,
0.008690071292221546,
-0.024369578808546066,
-0.026113979518413544,
0.025280645117163658,
-0.006203413475304842,
0.016670696437358856,
0.030790600925683975,
-0.02777383290231228,
0.010434859432280064,
0.06123456358909607,
0.03261008858680725,
0.0022683923598378897,
-0.04240003600716591,
0.0394623726606369,
-0.03139086440205574,
-0.028841665014624596,
-0.05634336173534393,
-0.026366354897618294,
0.013028793968260288,
-0.009503861889243126,
0.03467785567045212,
0.06210578605532646,
-0.010366050526499748,
0.0013904819497838616,
-0.015572070144116879,
-0.018249547109007835,
-0.0065522994846105576,
-0.03677092865109444,
0.013108884915709496,
0.023012522608041763,
0.00011174046812811866,
0.028468521311879158,
0.005115172825753689,
-0.002099693054333329,
0.00853867456316948,
0.05349196121096611,
-0.03167778253555298,
-0.020492229610681534,
0.009869939647614956,
-0.013778388500213623,
0.018902849406003952,
-0.05155663192272186,
0.027737246826291084,
0.016116712242364883,
0.0028395995032042265,
0.021805649623274803,
0.026801949366927147,
-0.035404909402132034,
0.01476900652050972,
-0.0379350446164608,
-0.00718949967995286,
0.06052330881357193,
0.03859393671154976,
0.032084234058856964,
-0.010855639353394508,
-0.02090436778962612,
-0.03236807882785797,
-0.007860059849917889,
0.0385691337287426,
-0.017056904733181,
-0.020444262772798538,
0.03259727731347084,
-0.03679922968149185,
0.0020561355631798506,
-0.002885374939069152,
-0.022432008758187294,
-0.03419766575098038,
0.05361421778798103,
0.007542842999100685,
-0.0335598848760128,
-0.008152616210281849,
0.01607561483979225,
0.050777364522218704,
0.02480912208557129,
-0.01586291752755642,
-0.01683196984231472,
-0.01741032861173153,
-0.023664118722081184,
-0.06784062087535858,
0.03524134308099747,
0.038685865700244904,
-0.023490112274885178,
-0.010466834530234337,
-0.02331268973648548,
-0.005715185310691595,
0.004103613086044788,
0.026069674640893936,
-0.0012689067516475916,
0.028369756415486336,
0.020979879423975945,
0.019484473392367363,
0.005361742340028286,
-0.008806625381112099,
-0.008397646248340607,
-0.001716525643132627,
-0.04699840024113655,
-0.0029068735893815756,
0.02835908904671669,
-0.01724732108414173,
-0.02529442496597767,
0.0044014970771968365,
-0.07585738599300385,
0.034893691539764404,
0.012631181627511978,
0.02356646955013275,
0.005380206275731325,
-0.053865302354097366,
0.0029273757245391607,
-0.0006993089918978512,
-0.006056499667465687,
0.0322323739528656,
0.0196011271327734,
-0.02638908289372921,
0.018374495208263397,
0.005477266386151314,
0.018477851524949074,
0.025952141731977463,
0.014090990647673607,
-0.017339808866381645,
-0.014916234649717808,
0.056258417665958405,
-0.016106441617012024,
0.01248946599662304,
0.03672793135046959,
0.007010837085545063,
-0.0028256832156330347,
-0.017786791548132896,
-0.0029646235052496195,
-0.06935838609933853,
-0.016440171748399734,
0.0408310741186142,
-0.035499487072229385,
0.016466429457068443,
-0.01313573308289051,
0.04908056557178497,
0.053001075983047485,
0.07970254123210907,
0.009709203615784645,
0.02806534618139267,
0.028861625120043755,
0.022319246083498,
0.019948963075876236,
0.08141326904296875,
-0.014578082598745823,
0.004812578205019236,
-0.0022174508776515722,
0.018732910975813866,
0.024629466235637665,
-0.04223211482167244,
0.015483560040593147,
-0.026788197457790375,
-0.03457214683294296,
0.006359050516039133,
-0.006217616610229015,
0.018900003284215927,
-0.004050386603921652,
-0.048403043299913406,
-0.008243345655500889,
-0.011235141195356846,
0.04701156169176102,
0.012981338426470757,
0.009276962839066982,
-0.03324206545948982,
-0.03940955922007561,
-0.0034444232005625963,
-0.019780827686190605,
0.02627655863761902,
-0.049944259226322174,
-0.0012336581712588668,
-0.004302469547837973,
0.011830911971628666,
0.046103328466415405,
-0.04830949753522873,
0.01870259828865528,
0.00680441502481699,
0.017529604956507683,
-0.03901495411992073,
-0.009370164014399052,
-0.013497582636773586,
-0.008596586063504219,
0.026005325838923454,
0.007494028192013502,
-0.016990862786769867,
0.03956758230924606,
0.02058492600917816,
0.013507532887160778,
0.009301183745265007,
0.005033202935010195,
0.013732923194766045,
-0.047719381749629974,
0.03463349863886833,
-0.013266749680042267,
-0.0397115983068943,
-0.0017243657493963838,
0.03129469230771065,
0.030129602178931236,
0.02120700106024742,
0.010335281491279602,
-0.027233358472585678,
-0.0006097235018387437,
0.04021238163113594,
-0.05151164159178734,
0.039097968488931656,
-0.016916269436478615,
-0.01534255314618349,
0.004094602074474096,
0.024126330390572548,
-0.016046905890107155,
-0.023821251466870308,
-0.029743976891040802,
0.028048638254404068,
-0.027795087546110153,
0.025283709168434143,
-0.005802611820399761,
0.044559504836797714,
0.013947620987892151,
0.01215926744043827,
0.03786761686205864,
-0.014425680972635746,
-0.0129093574360013,
-0.036290597170591354,
-0.0207919180393219,
-0.04812060296535492,
-0.0023919742088764906,
-0.021026290953159332,
-0.06695067882537842,
-0.013585525564849377,
0.004963754676282406,
-0.005712995771318674,
-0.014636046253144741,
-0.05407721921801567,
-0.021035274490714073,
-0.03417620807886124,
0.019130414351820946,
-0.01241631992161274,
0.013421737588942051,
0.0678500160574913,
0.04655764251947403,
0.019601454958319664,
-0.006974710617214441,
-0.06267168372869492,
-0.006144156213849783,
0.011701075360178947,
0.04239947348833084,
0.059851422905921936,
-0.007457482162863016,
-0.020948346704244614,
-0.041541121900081635,
0.018295470625162125,
-0.0071100578643381596,
-0.0389002189040184,
0.02688339352607727,
-0.0004663286090362817,
-0.026669422164559364,
-0.05074073001742363,
0.004779659677296877,
0.03234861418604851,
0.0011114974040538073,
0.025325268507003784,
-0.006991425063461065,
0.015032066963613033,
-0.02603927068412304,
-0.011198252439498901,
-0.06313465535640717,
-0.004727504216134548,
-0.025392519310116768,
-0.030378349125385284,
0.06170792877674103,
0.02601633593440056,
0.024982519447803497,
-0.04547355696558952,
-0.06545879691839218,
-0.02126629278063774,
-0.0020825837273150682,
-0.10084987431764603,
-0.02904128096997738,
-0.0029479037038981915,
0.04165562242269516,
-0.060599442571401596,
-0.04351827874779701,
-0.0429362915456295,
-0.017535069957375526,
0.00830397941172123,
-0.02572702430188656,
-0.02129952423274517,
0.0019827012438327074,
-0.0195450596511364,
0.025110509246587753,
0.03280315548181534,
0.015744151547551155,
0.06154436245560646,
-0.05661896988749504,
-0.029758913442492485,
-0.001986635848879814
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Deploy GPT-J as Amazon SageMaker Endpoint To deploy our Amazon SageMaker Endpoint we are going to use the Amazon SageMaker Python SDK and the HuggingFaceModel class. The snippet below uses the get_execution_role which is only available inside Amazon SageMaker Notebook Instances or Studio. If you want to deploy a model outside of it check the documentation. The model_uri defines the location of our GPT-J model artifact. We are going to use the publicly available one provided by us. python from sagemaker.huggingface import HuggingFaceModel import sagemaker # IAM role with permissions to create endpoint role = sagemaker.get_execution_role() # public S3 URI to gpt-j artifact model_uri="s3://huggingface-sagemaker-models/transformers/4.12.3/pytorch/1.9.1/gpt-j/model.tar.gz" # create Hugging Face Model Class huggingface_model = HuggingFaceModel( model_data=model_uri, transformers_version='4.12.3', pytorch_version='1.9.1', py_version='py38', role=role, ) # deploy model to SageMaker Inference predictor = huggingface_model.deploy( initial_instance_count=1, # number of instances instance_type='ml.g4dn.xlarge' #'ml.p3.2xlarge' # ec2 instance type ) If you want to use your own model.tar.gz just replace the model_uri with your S3 Uri. The deployment should take around 3-5 minutes. | [
-0.014229860156774521,
0.017184728756546974,
-0.0152574572712183,
0.005671229213476181,
-0.03505818545818329,
0.08300327509641647,
0.026010343804955482,
-0.0126869548112154,
-0.006824659649282694,
0.02140348218381405,
-0.05445348843932152,
-0.008069349452853203,
0.042207371443510056,
0.13690559566020966,
-0.01099158264696598,
-0.05800381302833557,
-0.009873884730041027,
-0.024528658017516136,
-0.02068566344678402,
-0.020159246399998665,
0.04855983704328537,
-0.0014163851737976074,
-0.0771869570016861,
0.010950358584523201,
0.01731240563094616,
-0.05066337436437607,
0.004269041586667299,
0.01920672133564949,
0.034484200179576874,
0.03667174652218819,
-0.0474286824464798,
-0.0004906492540612817,
0.006147309206426144,
0.004769546911120415,
0.04091635346412659,
0.03637651726603508,
-0.14420130848884583,
0.024149248376488686,
0.04457920044660568,
-0.012065399438142776,
-0.005635249428451061,
-0.020647570490837097,
-0.0509379543364048,
0.0775243416428566,
0.014601646922528744,
-0.013378437608480453,
-0.12219087034463882,
0.06897440552711487,
0.028028108179569244,
-0.019406192004680634,
-0.09806156158447266,
0.11171367019414902,
-0.004124446306377649,
-0.05439290776848793,
-0.022814808413386345,
0.03207298740744591,
0.015948176383972168,
-0.08773637562990189,
-0.019963262602686882,
-0.047928668558597565,
-0.009282544255256653,
-0.021397551521658897,
0.0037774844095110893,
0.043978504836559296,
0.028489477932453156,
-0.003950230311602354,
0.03272511810064316,
-0.00842240359634161,
-0.033253397792577744,
-0.05376803129911423,
-0.041830506175756454,
-0.020462848246097565,
0.039542343467473984,
-0.07034286856651306,
-0.04313843697309494,
-0.05281803384423256,
0.028840821236371994,
0.022282185032963753,
0.049788568168878555,
0.09617007523775101,
-0.03578776493668556,
-0.0020448772702366114,
-0.03499309718608856,
-0.0235647801309824,
0.03792347386479378,
0.015552016906440258,
0.011545090936124325,
-0.06678155064582825,
-0.03878207504749298,
0.01682748831808567,
0.022690940648317337,
-0.05575432628393173,
-0.016416197642683983,
0.02721562795341015,
0.05387303605675697,
0.025408368557691574,
-0.029356777667999268,
-0.0311441570520401,
0.0259080920368433,
-0.020109955221414566,
0.012004374526441097,
-0.028358610346913338,
-0.04415721073746681,
-0.01073021162301302,
-0.015446160919964314,
0.08573988825082779,
0.0214482843875885,
-0.06979379057884216,
0.025978974997997284,
0.019919997081160545,
0.03894134610891342,
-0.037840574979782104,
-0.03936746343970299,
0.03257683292031288,
-0.09628967195749283,
0.09393221139907837,
-0.012221124954521656,
-0.05798720940947533,
0.035735711455345154,
0.05509734898805618,
0.08727474510669708,
0.09742405265569687,
0.002362722298130393,
0.020454315468668938,
0.027407784014940262,
0.06635784357786179,
0.020932285115122795,
-0.038469672203063965,
-0.003749076509848237,
-0.02261589840054512,
0.06933477520942688,
-0.06103929877281189,
0.05505114793777466,
-0.004315847065299749,
0.03820024058222771,
-0.06779300421476364,
0.05001405254006386,
-0.05800461769104004,
0.04122919961810112,
0.017283786088228226,
0.004056939389556646,
0.10124261677265167,
0.012618989683687687,
0.03420190513134003,
0.06589704751968384,
0.056081775575876236,
-0.02361573651432991,
-0.0007741159643046558,
-0.011674106121063232,
0.07088666409254074,
-0.08061483502388,
0.07005241513252258,
0.0002933480718638748,
-0.0549936406314373,
0.0029776545707136393,
0.049348291009664536,
-0.039515599608421326,
0.030508272349834442,
-0.047466982156038284,
-0.055273592472076416,
-0.01318939309567213,
-0.03524026274681091,
-0.0008378228521905839,
-0.015268188901245594,
0.006480429787188768,
0.011528360657393932,
0.08265598863363266,
-0.018126439303159714,
0.04287432134151459,
-0.04408331215381622,
-0.005225985776633024,
-0.055807337164878845,
0.052564945071935654,
0.0659535676240921,
0.10871533304452896,
0.015130476094782352,
0.057056598365306854,
0.07050880789756775,
0.010642527602612972,
-0.025936996564269066,
-0.009540491737425327,
0.09592308104038239,
-0.010864179581403732,
0.009240001440048218,
0.07371502369642258,
-0.07853469252586365,
0.010985293425619602,
0.00327489897608757,
-0.007829280570149422,
-0.04824085161089897,
-0.023366941139101982,
-0.051318053156137466,
-0.005635164212435484,
0.0016113646561279893,
0.04044998064637184,
0.0023812337312847376,
0.012984562665224075,
0.08986394852399826,
-0.006360882427543402,
0.03311001881957054,
0.030312085524201393,
-0.04359423741698265,
-0.02924741618335247,
0.006429877132177353,
-0.06264764070510864,
0.04101482033729553,
-0.007160949055105448,
0.019884468987584114,
0.058432601392269135,
0.03065313957631588,
-0.006636815145611763,
-0.07636578381061554,
0.011285117827355862,
-0.07959281653165817,
-0.02827516384422779,
0.005633002612739801,
-0.033329613506793976,
-0.021733630448579788,
0.008816312998533249,
0.02276148460805416,
0.15471741557121277,
-0.015254979021847248,
0.046447377651929855,
-0.0868431031703949,
-0.0025760342832654715,
0.047231171280145645,
0.03979186713695526,
0.09753309190273285,
0.050327643752098083,
-0.012403246946632862,
-0.03841736167669296,
-0.08702884614467621,
-0.00844684150069952,
0.008907272480428219,
0.022090790793299675,
-0.007681427523493767,
0.005435766186565161,
-0.06904064118862152,
0.04397285357117653,
0.000019490938939270563,
0.05429457128047943,
0.04510164260864258,
-0.002943548373878002,
0.014926685020327568,
0.07944564521312714,
-0.03115314431488514,
0.058665681630373,
0.016355380415916443,
0.0035895013716071844,
-0.024057606235146523,
-0.10197712481021881,
-0.00859383400529623,
0.01485839020460844,
-0.03107535094022751,
0.02657586708664894,
0.027795180678367615,
-0.03492311015725136,
0.010961484163999557,
0.004378479439765215,
0.06870447099208832,
0.012369069270789623,
0.012043080292642117,
-0.022936632856726646,
-0.008764446713030338,
-0.017714865505695343,
0.03986058011651039,
-0.04456716030836105,
-0.029923245310783386,
0.00990730244666338,
-0.02558770403265953,
0.06002731993794441,
-0.07402507960796356,
-0.001932340208441019,
0.036379314959049225,
-0.038724035024642944,
0.03527867794036865,
0.02198992669582367,
0.009582947008311749,
0.00830062199383974,
0.035972047597169876,
0.043523289263248444,
-0.039776697754859924,
-0.018115254119038582,
0.019250277429819107,
-0.008663400076329708,
0.007542573381215334,
0.004859310574829578,
-0.03775080665946007,
-0.03607984632253647,
-0.005722490604966879,
0.00913978274911642,
0.06820013374090195,
0.03496517241001129,
0.003638329915702343,
0.0021343014668673277,
0.007962035946547985,
-0.006242962088435888,
-0.01655692234635353,
0.0036651191767305136,
0.061749063432216644,
-0.04695027321577072,
0.006315059028565884,
0.0023186278995126486,
-0.017352715134620667,
-0.06544408947229385,
0.014912483282387257,
0.03312031179666519,
-0.007869306020438671,
-0.08462642133235931,
-0.05314340069890022,
-0.036217667162418365,
0.01319635845720768,
0.035931941121816635,
-0.006736937910318375,
0.05001475661993027,
0.011841087602078915,
-0.013805730268359184,
0.0027019078843295574,
0.009928546845912933,
0.02317492850124836,
0.009764774702489376,
-0.01626923307776451,
-0.04135939106345177,
0.017976591363549232,
-0.021393954753875732,
-0.004381220322102308,
0.02591192163527012,
0.026195403188467026,
-0.04181411489844322,
0.02729063853621483,
0.038520779460668564,
-0.04305320605635643,
0.03268612548708916,
-0.001911834697239101,
0.022399667650461197,
-0.00550133315846324,
0.01627138815820217,
-0.017966199666261673,
-0.013588630594313145,
-0.053234249353408813,
-0.026259418576955795,
-0.010084311477839947,
-0.060403186827898026,
-0.005320466589182615,
0.02853659726679325,
0.04886627197265625,
0.021267032250761986,
0.01939934305846691,
-0.0010089537827298045,
-0.015941264107823372,
0.014679784886538982,
-0.0029819156043231487,
0.060976091772317886,
0.028082940727472305,
0.0051206680946052074,
0.026444872841238976,
0.05008486285805702,
-0.0023897227365523577,
0.01807057298719883,
0.027793768793344498,
0.004110632464289665,
-0.008800502866506577,
0.03278469294309616,
0.011483799666166306,
0.0275347288697958,
0.044275760650634766,
0.010891948826611042,
0.020192867144942284,
-0.046853117644786835,
-0.03327925130724907,
0.001803951570764184,
-0.03128856047987938,
-0.023524461314082146,
0.024088889360427856,
-0.00813253689557314,
-0.017308449372649193,
0.02027997002005577,
0.04658036306500435,
-0.004986057057976723,
-0.0007587027503177524,
-0.02949504181742668,
0.013657188042998314,
-0.03395038843154907,
-0.004117898177355528,
-0.03589393198490143,
-0.01633484475314617,
0.003687529359012842,
0.03596342355012894,
-0.014141215942800045,
0.0014881972456350923,
-0.015948262065649033,
0.0027575790882110596,
0.02803349867463112,
0.014256906695663929,
0.03385384753346443,
-0.020767930895090103,
0.04166308045387268,
0.025170041248202324,
-0.01789361983537674,
-0.06567085534334183,
0.020882174372673035,
-0.03011033684015274,
-0.017128122970461845,
-0.020243758335709572,
0.018862195312976837,
-0.0028206692077219486,
0.004120658151805401,
-0.002414512215182185,
-0.06241035461425781,
-0.02063358575105667,
0.00477972999215126,
-0.011506186798214912,
-0.016409028321504593,
0.006663914769887924,
-0.01879889704287052,
-0.030773600563406944,
-0.014665495604276657,
0.008182828314602375,
0.0473410040140152,
0.0011151012731716037,
0.009606342762708664,
-0.013657130300998688,
0.0027586775831878185,
0.05627564713358879,
0.013443122617900372,
-0.02229909598827362,
0.004215346183627844,
0.05055985227227211,
-0.034552864730358124,
0.025268137454986572,
-0.03381357342004776,
-0.027562225237488747,
-0.03677966818213463,
0.022588448598980904,
0.006379196885973215,
0.013527271337807178,
-0.01980806514620781,
-0.010669064708054066,
-0.017281463369727135,
0.013981611467897892,
-0.0067865876480937,
-0.021408619359135628,
-0.012537695467472076,
0.004019538871943951,
-0.027543997392058372,
0.03105023503303528,
0.041723910719156265,
0.027957599610090256,
-0.0059623937122523785,
-0.006525048054754734,
0.016686217859387398,
-0.03953162208199501,
0.02396988868713379,
0.02001102641224861,
-0.05701794847846031,
-0.005293548572808504,
-0.07408319413661957,
0.02059861458837986,
0.030196763575077057,
0.0031372804660350084,
-0.04159598797559738,
0.009240712970495224,
0.0025867994409054518,
0.009190011769533157,
-0.01595490425825119,
-0.019832877442240715,
0.008966674096882343,
0.06957010924816132,
-0.0013164200354367495,
0.0006115875439718366,
0.006419781129807234,
-0.027828628197312355,
0.02954038605093956,
0.042324624955654144,
-0.0061302282847464085,
-0.05285387858748436,
0.008635435253381729,
0.01281126867979765,
-0.011990872211754322,
0.006999996956437826,
0.03136293962597847,
-0.028919296339154243,
0.01488046906888485,
0.06734728068113327,
0.06061159446835518,
0.039773765951395035,
-0.043873704969882965,
0.047813501209020615,
-0.009676643647253513,
-0.010697347111999989,
-0.025353053584694862,
-0.020983537659049034,
-0.004133281763643026,
0.0066128019243478775,
0.027455978095531464,
0.07041718810796738,
-0.018552647903561592,
0.021641802042722702,
-0.02411789819598198,
-0.01765192300081253,
0.01711459644138813,
-0.046970631927251816,
-0.01058343518525362,
0.0005549557390622795,
-0.0018841327400878072,
0.02603052742779255,
-0.018966510891914368,
-0.016027502715587616,
0.0037231119349598885,
0.06618334352970123,
-0.005848400294780731,
-0.01284546498209238,
0.027573654428124428,
-0.017725646495819092,
0.019547419622540474,
-0.01440926268696785,
0.007983308285474777,
0.018912164494395256,
0.007880973629653454,
0.009486663155257702,
0.006937241647392511,
-0.02238319255411625,
0.0005062006530351937,
-0.0507320873439312,
-0.008021586574614048,
0.046733707189559937,
0.01701308600604534,
0.035788703709840775,
-0.020349321886897087,
-0.011128704063594341,
0.007467029616236687,
-0.008562926203012466,
0.006946847774088383,
-0.005790881346911192,
-0.015605506487190723,
0.03201032429933548,
-0.02421833947300911,
0.00015598151367157698,
-0.030003126710653305,
-0.04413573816418648,
-0.011955478228628635,
0.015887755900621414,
0.020280368626117706,
-0.062350817024707794,
-0.0056836893782019615,
0.04871605709195137,
0.039581507444381714,
-0.00553937628865242,
-0.007378315087407827,
-0.03009871020913124,
-0.022625330835580826,
-0.0318894200026989,
-0.06608977168798447,
0.027343226596713066,
-0.003602229058742523,
-0.009367894381284714,
0.0037487447261810303,
-0.02921747975051403,
-0.010326502844691277,
0.022554200142621994,
0.030144495889544487,
-0.03299900144338608,
0.043275173753499985,
-0.004956312011927366,
-0.004349685274064541,
0.020289937034249306,
-0.012120945379137993,
0.02374015375971794,
0.021637992933392525,
-0.04800952970981598,
0.0009505784255452454,
0.025517333298921585,
-0.032441891729831696,
-0.02379901520907879,
-0.026358315721154213,
-0.0763416439294815,
-0.007893422618508339,
0.006385290063917637,
0.02052200771868229,
0.01240372471511364,
-0.012333041988313198,
-0.006595224142074585,
-0.0025632032193243504,
-0.029036985710263252,
0.03846593201160431,
0.034671150147914886,
-0.04065197706222534,
0.04904425889253616,
-0.029508432373404503,
0.03163371980190277,
0.027233300730586052,
-0.00519739231094718,
0.025017881765961647,
-0.030492642894387245,
0.07206368446350098,
-0.009584938175976276,
0.04849797487258911,
0.05151638016104698,
0.0038393873255699873,
-0.026088647544384003,
-0.02704334445297718,
-0.01988166570663452,
-0.05267965421080589,
-0.003255321877077222,
0.014696145430207253,
-0.0432608462870121,
0.047868143767118454,
-0.011884740553796291,
0.06143525242805481,
0.036664366722106934,
0.04928777739405632,
0.006653276272118092,
0.021468477323651314,
0.04619014263153076,
0.026469994336366653,
-0.01206137053668499,
0.02609565667808056,
0.006422217935323715,
0.006340463645756245,
0.0019261662382632494,
0.019319601356983185,
-0.00023667144705541432,
-0.027768053114414215,
0.01085530873388052,
-0.026660500094294548,
-0.012620114721357822,
-0.012294966727495193,
-0.02879444509744644,
0.026524940505623817,
-0.032221488654613495,
-0.02584385685622692,
-0.011441241018474102,
0.000787808618042618,
0.04142071306705475,
-0.025618625804781914,
0.02173144929111004,
-0.009271831251680851,
-0.039794038981199265,
0.002987401792779565,
-0.031242575496435165,
0.0367559939622879,
-0.056397534906864166,
0.004186656791716814,
0.018604980781674385,
-0.014981758780777454,
-0.0017094494542106986,
-0.04800395295023918,
-0.004284507129341364,
-0.011895759031176567,
0.020036730915308,
-0.026585957035422325,
0.01257004402577877,
-0.0301924180239439,
0.01340683363378048,
0.007573272101581097,
0.03520838916301727,
0.024307705461978912,
0.023265741765499115,
0.033670056611299515,
0.030080026015639305,
-0.021192383021116257,
-0.012506884522736073,
-0.01790558360517025,
-0.043942008167505264,
0.012984062545001507,
-0.018444467335939407,
-0.007449566386640072,
-0.0151976952329278,
0.08585980534553528,
-0.006750380154699087,
-0.013031169772148132,
0.0016398343723267317,
0.0018713787430897355,
0.0014077810337767005,
0.04218370467424393,
-0.03050391748547554,
0.055479496717453,
-0.00981925893574953,
-0.0015738816000521183,
0.018961796537041664,
0.014196316711604595,
0.01424533873796463,
0.001989461248740554,
-0.01578233763575554,
0.02538999170064926,
-0.02867276966571808,
0.014657522551715374,
0.007986602373421192,
0.03282458335161209,
-0.017896633595228195,
0.029118241742253304,
0.00796220451593399,
0.00043605739483609796,
-0.006061873398721218,
-0.01661812514066696,
-0.025843339040875435,
-0.06319515407085419,
-0.02883964590728283,
-0.04197879135608673,
-0.06654859334230423,
-0.038798604160547256,
-0.012619512155652046,
-0.017103033140301704,
0.016182266175746918,
-0.015348425135016441,
-0.008368316106498241,
-0.01967582479119301,
0.0019385896157473326,
-0.013233607634902,
0.013492390513420105,
0.037377797067165375,
0.052186768501996994,
0.039531808346509933,
-0.021508419886231422,
-0.046450212597846985,
-0.006114501506090164,
0.02473272942006588,
-0.0014601207803934813,
0.0625913143157959,
-0.017503565177321434,
-0.019302278757095337,
-0.043435681611299515,
0.015411912463605404,
0.034223977476358414,
-0.0348101407289505,
0.06080424785614014,
-0.013877981342375278,
-0.011801284737884998,
-0.05452921986579895,
-0.0024245267268270254,
0.006914114113897085,
0.0040538436733186245,
0.007474579848349094,
-0.006228557322174311,
0.013039153069257736,
-0.02628747746348381,
-0.012605832889676094,
-0.05787939205765724,
0.005586779210716486,
-0.02855277806520462,
-0.03724592179059982,
0.034629933536052704,
0.002036393852904439,
0.001076648011803627,
-0.048785123974084854,
-0.015216679312288761,
-0.006524879485368729,
-0.017260372638702393,
-0.08207788318395615,
-0.05174829438328743,
0.021226705983281136,
0.058718811720609665,
-0.05150214210152626,
-0.017070090398192406,
-0.026309633627533913,
-0.06118255853652954,
0.0035522941034287214,
0.02300119213759899,
-0.006452549248933792,
0.01578301563858986,
-0.03962104022502899,
-0.003541933838278055,
0.0017802740912884474,
0.01787756197154522,
0.005455544218420982,
-0.024902405217289925,
-0.023427778854966164,
0.000637443910818547
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Run predictions We can run predictions using the predictor instances created by our .deploy method. To send a request to our endpoint we use the predictor.predict with our inputs. python predictor.predict({ "inputs": "Can you please let us know more details about your " }) If you want to customize your predictions using additional kwargs like min_length, check out “Usage best practices” below. | [
0.07889354228973389,
0.01200310792773962,
0.058911342173814774,
0.008624785579741001,
0.09213713556528091,
0.09026207774877548,
0.02453088015317917,
0.04893333092331886,
-0.04214055463671684,
-0.04254807159304619,
-0.08443411439657211,
-0.030407117679715157,
0.014752084389328957,
0.05646840110421181,
0.006697865203022957,
-0.037609171122312546,
0.01490054838359356,
-0.021269872784614563,
-0.03686956688761711,
-0.00006926816422492266,
-0.02194497548043728,
-0.05889483168721199,
0.027103498578071594,
-0.0013775679981335998,
0.0014617861015722156,
-0.03329247981309891,
0.004997288342565298,
0.004995779134333134,
-0.08884219825267792,
0.01868361048400402,
-0.071456678211689,
0.02745136059820652,
-0.022123638540506363,
-0.03800559788942337,
-0.01816342957317829,
0.04857705160975456,
-0.07156867533922195,
0.04919339716434479,
0.0013940719654783607,
-0.01743634045124054,
-0.04617973044514656,
-0.012285131961107254,
-0.05875786021351814,
0.039973605424165726,
0.030042169615626335,
-0.05869857966899872,
-0.200652077794075,
0.021066386252641678,
0.02455759607255459,
-0.0480290986597538,
-0.04974642023444176,
0.10324221104383469,
-0.007341950200498104,
-0.012258149683475494,
0.0338657982647419,
0.015196489170193672,
-0.022444449365139008,
-0.06723067909479141,
-0.03805771470069885,
0.014893331564962864,
-0.022230925038456917,
0.026605503633618355,
-0.03990482538938522,
0.0292496420443058,
-0.003329014638438821,
0.04687220975756645,
0.0002045002911472693,
0.03197420388460159,
-0.003913956694304943,
-0.041190993040800095,
-0.01525879092514515,
-0.009317101910710335,
0.028277693316340446,
-0.00898352824151516,
0.025067763403058052,
-0.0584353543817997,
-0.029998773708939552,
0.08808375895023346,
0.049908023327589035,
0.062139593064785004,
0.0032592997886240482,
-0.010087382979691029,
0.026608994230628014,
-0.024508051574230194,
0.0018602923955768347,
0.05174974352121353,
0.030523356050252914,
0.005061715841293335,
-0.046123746782541275,
0.030435902997851372,
0.041269633919000626,
-0.11380517482757568,
-0.012306852266192436,
0.01743580773472786,
0.0273910965770483,
0.0025439944583922625,
-0.013258548453450203,
-0.003774107899516821,
-0.026728639379143715,
-0.04371512308716774,
-0.022129129618406296,
-0.0903017669916153,
-0.03903826326131821,
-0.03570375591516495,
-0.0263220127671957,
0.06057646498084068,
-0.013657543808221817,
-0.1262330859899521,
-0.07661840319633484,
0.023811448365449905,
-0.00906381756067276,
0.006396671757102013,
-0.017621424049139023,
0.08426695317029953,
-0.03479139506816864,
0.01749948225915432,
-0.004703570622950792,
-0.020318850874900818,
0.008230890147387981,
-0.013240251690149307,
0.025215372443199158,
0.09111689031124115,
0.0638013407588005,
0.06317165493965149,
-0.010607261210680008,
0.08244426548480988,
0.008959470316767693,
-0.012331703677773476,
0.0057774498127400875,
-0.03962024673819542,
0.03463442251086235,
-0.024756401777267456,
0.061098404228687286,
0.009235062636435032,
0.004787565674632788,
-0.07643850147724152,
-0.04152853041887283,
-0.02169131673872471,
0.04482482001185417,
0.03471262753009796,
-0.05592774227261543,
0.07377921789884567,
-0.0020939060486853123,
0.07248818874359131,
0.09808779507875443,
-0.00764290289953351,
0.0007433033315464854,
0.024826830253005028,
0.004441422875970602,
0.07325886189937592,
-0.06358083337545395,
0.1110578402876854,
-0.00512836966663599,
-0.020418653264641762,
-0.009745096787810326,
0.05194147303700447,
-0.042345717549324036,
0.0021469187922775745,
-0.05024787783622742,
-0.008687732741236687,
-0.00581875815987587,
0.06157055124640465,
-0.04131467640399933,
-0.017639102414250374,
0.07700327038764954,
0.06491720676422119,
0.038124389946460724,
-0.032945215702056885,
0.06692178547382355,
-0.030667539685964584,
-0.0030710368882864714,
-0.00253945286385715,
0.06412094086408615,
0.04117472842335701,
0.0539291650056839,
0.035222314298152924,
0.03257961943745613,
0.01818389818072319,
0.014594262465834618,
-0.024468285962939262,
0.004082763101905584,
0.12804600596427917,
-0.046785272657871246,
-0.004543336108326912,
0.039123404771089554,
-0.056679606437683105,
-0.0034263806883245707,
-0.030234698206186295,
0.03827180713415146,
-0.013801676221191883,
-0.05722261592745781,
-0.03755881264805794,
0.053953617811203,
0.04322275519371033,
0.024926161393523216,
-0.07706093043088913,
-0.016382349655032158,
0.09179819375276566,
0.014006624929606915,
0.06637924164533615,
0.061010610312223434,
0.029590178281068802,
0.0736917108297348,
-0.052232276648283005,
-0.024542372673749924,
0.05359760671854019,
0.015287192538380623,
-0.07671090960502625,
0.037062741816043854,
-0.01896352507174015,
-0.021289192140102386,
-0.06551718711853027,
-0.030423661693930626,
-0.07593421638011932,
-0.00026740835164673626,
-0.0040672882460057735,
-0.008911024779081345,
-0.020838487893342972,
-0.02266184240579605,
0.02216312289237976,
0.17816290259361267,
0.007317827548831701,
0.013238288462162018,
-0.03581785783171654,
-0.010309516452252865,
0.0023977276869118214,
0.0363289937376976,
0.07180570811033249,
0.07456301152706146,
-0.044118184596300125,
-0.006105750799179077,
-0.030079560354351997,
-0.028365233913064003,
0.0531989187002182,
-0.023977233096957207,
0.02816634066402912,
-0.02581339329481125,
-0.0019810469821095467,
0.00027631642296910286,
-0.029880700632929802,
0.03714747354388237,
0.011381356976926327,
-0.062054798007011414,
0.06552161276340485,
-0.011442289687693119,
0.003328536171466112,
0.0973968505859375,
-0.009187642484903336,
-0.07124318182468414,
0.01182774268090725,
-0.06313726305961609,
0.0008953791693784297,
0.0033915245439857244,
-0.02094423957169056,
0.027908535674214363,
0.031904805451631546,
-0.0399639792740345,
0.022641265764832497,
-0.032399628311395645,
0.04715210571885109,
-0.010744850151240826,
-0.0008399380603805184,
0.0275234617292881,
-0.024687357246875763,
0.00579433050006628,
-0.024115106090903282,
-0.014624951407313347,
-0.028403693810105324,
0.01994209550321102,
0.0015334631316363811,
0.017798161134123802,
-0.03894159570336342,
0.0043511479161679745,
0.020794624462723732,
0.03001566417515278,
0.03380656614899635,
0.026067353785037994,
-0.03421862795948982,
-0.007681243121623993,
-0.016966529190540314,
-0.016782935708761215,
-0.03889434412121773,
0.03450251370668411,
0.016915688291192055,
0.035338252782821655,
-0.020401213318109512,
0.011378723196685314,
-0.0269186869263649,
-0.02842814102768898,
-0.005488736554980278,
0.01239051204174757,
0.0065540107898414135,
0.035824112594127655,
0.010151013731956482,
-0.007606986444443464,
0.0001418636238668114,
0.030802033841609955,
0.006380398757755756,
0.009744655340909958,
-0.0059921396896243095,
-0.035765014588832855,
-0.005739033222198486,
-0.010258729569613934,
-0.03043048456311226,
-0.047946617007255554,
0.04128860682249069,
0.046568311750888824,
0.007116739172488451,
-0.11104791611433029,
-0.01946837082505226,
0.007275179959833622,
0.017106320708990097,
-0.0025026865769177675,
-0.01549163181334734,
0.07031907141208649,
-0.0030641488265246153,
-0.008351805619895458,
0.01345801167190075,
-0.008798403665423393,
0.0023880095686763525,
-0.005740542430430651,
-0.025921067222952843,
-0.026977205649018288,
0.008839808404445648,
0.025408614426851273,
0.004302279092371464,
0.02812596969306469,
0.012618135660886765,
-0.022585948929190636,
0.035052310675382614,
0.02424698695540428,
-0.021500665694475174,
-0.002386706182733178,
0.017443785443902016,
0.02795219235122204,
0.03801288828253746,
0.004916992969810963,
-0.061133019626140594,
-0.0027987901121377945,
-0.02564273588359356,
-0.04332583770155907,
-0.0058898478746414185,
-0.032386936247348785,
-0.01196727529168129,
-0.034654803574085236,
-0.005288887768983841,
-0.0106817577034235,
0.019439971074461937,
-0.04594120383262634,
0.017996398732066154,
0.004320869687944651,
0.0018694872269406915,
0.005277698393911123,
-0.007499597501009703,
0.020461969077587128,
0.021002518013119698,
0.037441182881593704,
-0.0247279554605484,
-0.030138684436678886,
0.0024131890386343002,
0.015207624062895775,
0.0365409217774868,
-0.012344992719590664,
-0.000639638805296272,
-0.0017436358612030745,
0.07769756019115448,
0.02350372076034546,
0.01927456632256508,
-0.05603352561593056,
-0.009361976757645607,
0.018775958567857742,
0.008089058101177216,
-0.02725657820701599,
-0.0025840168818831444,
0.009503102861344814,
0.02681690827012062,
0.0006800965056754649,
-0.04339465871453285,
-0.013726426288485527,
0.040595848113298416,
0.008637085556983948,
0.023076917976140976,
-0.013864895328879356,
-0.02468680404126644,
-0.021872898563742638,
-0.036900900304317474,
0.050728414207696915,
0.04061106964945793,
-0.003319653682410717,
-0.00503272982314229,
-0.018246062099933624,
0.0006581544876098633,
0.018780577927827835,
0.011924216523766518,
0.02284133993089199,
-0.05197291076183319,
-0.004924525041133165,
0.03239736333489418,
0.0035994115751236677,
-0.03538651391863823,
-0.004419179167598486,
-0.005608119070529938,
-0.025954296812415123,
0.027889523655176163,
0.03877180442214012,
0.021725699305534363,
0.012487045489251614,
0.006728602107614279,
-0.019463086500763893,
-0.04313911125063896,
0.029645973816514015,
0.01609761081635952,
-0.015365579165518284,
0.011272787116467953,
-0.00880473293364048,
-0.034446511417627335,
-0.0029842189978808165,
-0.02498028613626957,
0.05403675138950348,
0.014437112957239151,
0.0009868695633485913,
-0.014813513495028019,
0.002978991251438856,
0.05243605747818947,
0.020157458260655403,
0.003513895208016038,
-0.013010487891733646,
0.0325593426823616,
-0.055283039808273315,
-0.016171863302588463,
-0.014933232218027115,
0.0018919844878837466,
-0.018755031749606133,
-0.014198706485331059,
0.03600502759218216,
-0.005730404984205961,
0.003847094252705574,
0.007647261489182711,
-0.024245668202638626,
-0.009174458682537079,
-0.010762140154838562,
-0.0024811229668557644,
-0.002518643857911229,
-0.002357811899855733,
-0.01521115843206644,
0.025957433506846428,
-0.009079822339117527,
-0.036025408655405045,
-0.031077589839696884,
0.007961652241647243,
0.024781836196780205,
-0.008982368744909763,
0.01086962316185236,
-0.006138884462416172,
-0.07938726246356964,
-0.031140603125095367,
-0.02778034657239914,
-0.004197823815047741,
0.001505266292952001,
0.008034911938011646,
-0.02393929846584797,
-0.01192361768335104,
0.009196647442877293,
-0.039178844541311264,
-0.029800720512866974,
-0.002136058872565627,
0.004355246666818857,
0.06332926452159882,
0.02053908444941044,
-0.02367100864648819,
-0.014608507044613361,
0.030616149306297302,
-0.009236373007297516,
0.007562626618891954,
-0.0346192829310894,
-0.05853010714054108,
-0.008001666516065598,
0.002090271795168519,
-0.00010387451038695872,
-0.018090970814228058,
0.020040536299347878,
-0.03651576116681099,
0.0023281613830477,
0.036396559327840805,
0.006245278753340244,
0.036219049245119095,
-0.009187135845422745,
0.03392542526125908,
-0.021937822923064232,
0.006323549430817366,
0.02710632048547268,
-0.016861585900187492,
0.002594682155176997,
0.017527250573039055,
0.060677770525217056,
0.03514106199145317,
0.03064209595322609,
0.010578786954283714,
-0.011219117790460587,
-0.0007660117698833346,
-0.044631779193878174,
-0.0357651561498642,
0.018567752093076706,
0.004846101626753807,
-0.0010937018087133765,
0.033800993114709854,
-0.0530068539083004,
-0.014933904632925987,
0.04531155526638031,
0.05429937317967415,
-0.0036645533982664347,
0.010955552570521832,
0.012116102501749992,
0.010523801669478416,
0.0011974991066381335,
-0.022980565205216408,
0.02791827917098999,
-0.037847865372896194,
0.0199381522834301,
-0.018715299665927887,
0.010413043200969696,
0.023075275123119354,
0.024391844868659973,
-0.017507722601294518,
0.00838762242347002,
0.024141451343894005,
0.03915396332740784,
0.04054291918873787,
-0.00876966305077076,
-0.020009171217679977,
-0.020204992964863777,
0.0323777049779892,
0.024612421169877052,
-0.011661515571177006,
0.00009135162690654397,
0.025715399533510208,
-0.0029613280203193426,
0.028244033455848694,
0.04761552810668945,
-0.028385119512677193,
0.012793264351785183,
0.01645340770483017,
0.04001808911561966,
-0.018290501087903976,
-0.081242136657238,
0.0719965472817421,
0.03520742431282997,
-0.05170689523220062,
-0.03078957088291645,
-0.052647724747657776,
-0.030034618452191353,
-0.0010422072373330593,
-0.004474075976759195,
0.03507132828235626,
0.031866393983364105,
-0.02526836097240448,
-0.009920069947838783,
-0.018637821078300476,
0.007681765593588352,
0.020820263773202896,
0.04533246532082558,
-0.03807076811790466,
0.003911512903869152,
0.012932658195495605,
-0.0008466315921396017,
0.026635484769940376,
-0.004327858332544565,
-0.005944966804236174,
0.03234488517045975,
-0.044555723667144775,
0.03286101669073105,
0.05316586047410965,
-0.005474773235619068,
0.024477055296301842,
0.011849784292280674,
-0.032261818647384644,
0.012581223621964455,
0.0012585076037794352,
0.014966508373618126,
0.03724297881126404,
-0.01554073579609394,
-0.008266089484095573,
0.008094231598079205,
-0.018066536635160446,
-0.0014766128733754158,
0.061760567128658295,
-0.013397404924035072,
0.05119086429476738,
0.01502935215830803,
0.05133496969938278,
0.02077523246407509,
0.024910854175686836,
-0.021396273747086525,
-0.006529297214001417,
0.08266037702560425,
0.02710484340786934,
0.001755413948558271,
0.01671406254172325,
0.004553831182420254,
0.010469320230185986,
-0.02667510323226452,
-0.00681898882612586,
-0.04224869981408119,
0.03166326880455017,
0.0411839485168457,
-0.027140861377120018,
0.032919589430093765,
-0.0529620535671711,
0.0358666256070137,
0.029314402490854263,
0.032326094806194305,
0.007354185916483402,
-0.012750083580613136,
0.06944243609905243,
0.030409380793571472,
0.005228542257100344,
0.018979966640472412,
-0.030983896926045418,
-0.03575083985924721,
0.051316987723112106,
-0.013031591661274433,
0.010275915265083313,
-0.013404106721282005,
0.01885397732257843,
0.008264219388365746,
-0.04548998177051544,
-0.03982225060462952,
0.03512977808713913,
0.032748136669397354,
-0.03656446561217308,
0.011173306033015251,
0.0016646272270008922,
-0.04223461449146271,
-0.014392411336302757,
-0.026066040620207787,
0.0070731439627707005,
-0.049671534448862076,
-0.03462659567594528,
-0.005005559418350458,
0.02432234026491642,
0.04388129711151123,
-0.03930976986885071,
-0.035216931253671646,
0.026849238201975822,
-0.004297852516174316,
0.030447790399193764,
-0.051099516451358795,
-0.02233710326254368,
-0.04053010419011116,
-0.022470416501164436,
-0.014074230566620827,
0.04016523063182831,
-0.016436267644166946,
-0.008814290165901184,
0.021246861666440964,
0.04053320363163948,
-0.0063399518840014935,
0.021077824756503105,
0.016749272122979164,
0.037260446697473526,
-0.038767509162425995,
-0.015903236344456673,
-0.06178839132189751,
-0.044373054057359695,
0.012608666904270649,
-0.02793291211128235,
0.017238236963748932,
-0.03294512629508972,
-0.0016617176588624716,
-0.003999148029834032,
0.0046296617947518826,
-0.02104829251766205,
0.011470546945929527,
0.017388183623552322,
0.0019447252852842212,
-0.004838640335947275,
0.06351950764656067,
0.04119252786040306,
0.006584783084690571,
0.014190832152962685,
0.010857258923351765,
-0.03273534029722214,
-0.022721536457538605,
0.02054431289434433,
0.01595287024974823,
0.005841182544827461,
-0.04040069133043289,
0.012764891609549522,
0.02670171670615673,
-0.00048055945080704987,
0.01125908549875021,
0.03998382389545441,
-0.01875588297843933,
0.009644325822591782,
-0.03238827735185623,
0.014549767598509789,
-0.0293660257011652,
0.02470133826136589,
-0.03033951111137867,
-0.07337561994791031,
-0.03918012976646423,
-0.0023234612308442593,
-0.032701633870601654,
-0.004299570806324482,
-0.01969529315829277,
-0.022798169404268265,
-0.016262969002127647,
-0.012210257351398468,
-0.029824169352650642,
0.007198801264166832,
0.07754594087600708,
0.04578481614589691,
0.06561467051506042,
-0.004440159071236849,
-0.029224202036857605,
0.00940791703760624,
0.00466550700366497,
0.021648868918418884,
0.046955350786447525,
0.010815507732331753,
-0.03681470453739166,
-0.008106422610580921,
0.016631098464131355,
-0.048073720186948776,
-0.06473109871149063,
-0.008434245362877846,
0.009455490857362747,
-0.0386502780020237,
-0.06992535293102264,
0.003981694579124451,
0.03579244390130043,
0.005214512348175049,
0.05797858163714409,
-0.015778401866555214,
-0.014240395277738571,
-0.006006320007145405,
0.013235594145953655,
-0.04225778952240944,
-0.020021172240376472,
-0.03560072183609009,
-0.03708657622337341,
0.0324576161801815,
0.0010173891205340624,
0.01841098442673683,
-0.016533946618437767,
-0.029984572902321815,
0.01796102151274681,
-0.03345458582043648,
-0.038463130593299866,
-0.06777427345514297,
-0.02779017575085163,
0.02388320118188858,
-0.021692853420972824,
0.016098612919449806,
0.04395589977502823,
-0.006621145643293858,
-0.03147473931312561,
-0.00600880803540349,
0.0011011481983587146,
-0.0194898322224617,
0.04108871519565582,
0.03501547873020172,
-0.01421338226646185,
0.07339873164892197,
0.036633919924497604,
-0.03491203486919403,
-0.05003732815384865,
0.035689305514097214
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Create model.tar.gz for the Amazon SageMaker real-time endpoint Since we can load our model quickly and run inference on it let’s deploy it to Amazon SageMaker. There are two ways you can deploy transformers to Amazon SageMaker. You can either “Deploy a model from the Hugging Face Hub” directly or “Deploy a model with model_data stored on S3”. Since we are not using the default Transformers method we need to go with the second option and deploy our endpoint with the model stored on S3. For this, we need to create a model.tar.gz artifact containing our model weights and additional files we need for inference, e.g. tokenizer.json. We provide uploaded and publicly accessible model.tar.gz artifacts, which can be used with the HuggingFaceModel to deploy GPT-J to Amazon SageMaker. See “Deploy GPT-J as Amazon SageMaker Endpoint” on how to use them. If you still want or need to create your own model.tar.gz, e.g. because of compliance guidelines, you can use the helper script convert_gpt.py for this purpose, which creates the model.tar.gz and uploads it to S3. bash # clone directory git clone https://github.com/philschmid/amazon-sagemaker-gpt-j-sample.git # change directory to amazon-sagemaker-gpt-j-sample cd amazon-sagemaker-gpt-j-sample # create and upload model.tar.gz pip3 install -r requirements.txt python3 convert_gptj.py --bucket_name {model_storage} The convert_gpt.py should print out an S3 URI similar to this. s3://hf-sagemaker-inference/gpt-j/model.tar.gz. | [
-0.019976157695055008,
0.019139450043439865,
-0.016943661496043205,
0.015594002790749073,
-0.0011923783458769321,
0.07339704781770706,
0.02777250111103058,
0.044975314289331436,
0.014729880727827549,
0.004532075021415949,
-0.06061540171504021,
0.04220615699887276,
0.0009467039490118623,
0.12162093818187714,
-0.004714042413979769,
-0.06605786085128784,
0.010292296297848225,
0.016972489655017853,
-0.04513853043317795,
0.014619393274188042,
0.025649959221482277,
-0.044093042612075806,
-0.07350882142782211,
0.024250682443380356,
0.006426922511309385,
-0.030639246106147766,
-0.001860951422713697,
0.006901750806719065,
0.025144999846816063,
0.07675749063491821,
-0.060417529195547104,
0.029087025672197342,
0.01722199097275734,
-0.01114396471530199,
0.04962499812245369,
0.012966704554855824,
-0.12694157660007477,
0.027371231466531754,
0.0378880575299263,
-0.01599954254925251,
0.027041299268603325,
0.0418507419526577,
-0.06827981024980545,
0.05818787217140198,
0.012729163281619549,
-0.031018458306789398,
-0.0961381047964096,
0.09169094264507294,
-0.009867059998214245,
-0.04587623476982117,
-0.06848043203353882,
0.13268806040287018,
-0.03605332225561142,
-0.06171915680170059,
-0.00549060944467783,
0.020335379987955093,
-0.015213300473988056,
-0.08531884849071503,
-0.03638739883899689,
0.009982719086110592,
-0.006630931980907917,
-0.04947757348418236,
-0.012571661733090878,
-0.018264826387166977,
0.005297509487718344,
-0.024402648210525513,
-0.0072908238507807255,
-0.0301080159842968,
-0.014967669732868671,
-0.043094996362924576,
-0.02155136875808239,
-0.03207482770085335,
0.029932770878076553,
-0.048344798386096954,
-0.03863419592380524,
0.0028482130728662014,
0.038649845868349075,
0.025402024388313293,
0.07491031289100647,
0.09773217141628265,
-0.008977090939879417,
-0.017749737948179245,
-0.016229327768087387,
-0.00494416244328022,
0.006486182566732168,
0.0125459348782897,
0.0151416240260005,
-0.07776439189910889,
-0.05939488112926483,
0.07052339613437653,
0.01470283605158329,
-0.06936760991811752,
-0.05648154765367508,
0.014693972654640675,
0.05400151014328003,
0.0370895117521286,
0.006223665550351143,
-0.025149362161755562,
0.015530376695096493,
-0.005293943453580141,
0.010956263169646263,
-0.027181580662727356,
0.026648007333278656,
-0.050283338874578476,
0.011361618526279926,
0.06860017776489258,
0.016824455931782722,
-0.09593323618173599,
0.0348525233566761,
0.00779764773324132,
0.052662212401628494,
-0.0284607894718647,
-0.010453111492097378,
0.04292244836688042,
-0.12384824454784393,
0.07794004678726196,
-0.0077663627453148365,
-0.10358121991157532,
0.008897244930267334,
0.06344237923622131,
0.04528991878032684,
0.07349613308906555,
0.045188065618276596,
-0.009056863375008106,
0.05354618653655052,
0.08634249866008759,
0.0407119058072567,
-0.027244532480835915,
-0.005616483744233847,
0.019737036898732185,
0.05329785495996475,
-0.05925990641117096,
0.05289873480796814,
-0.03497479110956192,
0.019809827208518982,
-0.05942071974277496,
0.016833294183015823,
-0.05331015586853027,
0.030841205269098282,
0.03196602314710617,
0.02764270082116127,
0.08666582405567169,
-0.0000696116330800578,
-0.0029602115973830223,
0.06945932656526566,
0.022314507514238358,
-0.012706509791314602,
0.0165682602673769,
0.004039420746266842,
0.08887410163879395,
-0.07985305041074753,
0.07048249989748001,
0.005645813886076212,
-0.07614300400018692,
-0.009590285830199718,
0.08054328709840775,
-0.05234751105308533,
0.040683917701244354,
-0.047130875289440155,
-0.07119349390268326,
0.0009881050791591406,
-0.041740112006664276,
-0.022505493834614754,
0.012423134408891201,
-0.0018187889363616705,
-0.009657113812863827,
0.04139268025755882,
0.0057998779229819775,
0.08405032008886337,
-0.02301933243870735,
0.013810955919325352,
-0.04229707643389702,
0.06053919345140457,
0.04785080999135971,
0.08170117437839508,
0.02752956748008728,
0.05462320148944855,
0.05798486992716789,
-0.002066326094791293,
-0.03817838057875633,
-0.029804028570652008,
0.0761537253856659,
-0.015811370685696602,
0.009140986949205399,
0.06899622082710266,
-0.097885861992836,
0.027835747227072716,
-0.006343558896332979,
-0.0017088190652430058,
-0.007262252736836672,
-0.0379294790327549,
-0.030116751790046692,
0.05540620908141136,
0.012666846625506878,
0.04481429606676102,
0.0064099938608706,
-0.01306725200265646,
0.09044039994478226,
0.010847194120287895,
0.05478644371032715,
-0.014218293130397797,
-0.017062585800886154,
-0.01629570499062538,
-0.018834246322512627,
-0.0315202996134758,
0.04656621441245079,
-0.027633121237158775,
0.0009675564942881465,
0.04200439900159836,
-0.004554073791950941,
0.02578253485262394,
-0.09902745485305786,
0.05036705359816551,
-0.09730823338031769,
-0.04674183204770088,
-0.051388587802648544,
-0.058715805411338806,
-0.026194369420409203,
-0.007856051437556744,
0.02634502947330475,
0.11685220152139664,
-0.020796984434127808,
0.027842599898576736,
-0.09658537060022354,
0.0077735660597682,
0.010870683006942272,
0.030130386352539062,
0.06660744547843933,
0.09543822705745697,
-0.02782890573143959,
-0.01983727514743805,
-0.0938882827758789,
-0.038644347339868546,
0.019130731001496315,
0.020449599251151085,
0.005042464938014746,
0.03623168170452118,
-0.05774468556046486,
0.03220107778906822,
-0.008452407084405422,
0.09678675979375839,
0.008760150521993637,
0.009664236567914486,
-0.008348619565367699,
0.041854213923215866,
0.010446307249367237,
0.05737349018454552,
0.004608598072081804,
-0.01918625645339489,
-0.0170628409832716,
-0.10138696432113647,
0.034695763140916824,
-0.0018832128262147307,
-0.02678363025188446,
0.03621886670589447,
0.005679234396666288,
-0.017504053190350533,
0.016053611412644386,
0.00978197529911995,
0.0606861338019371,
0.008089101873338223,
0.02638852223753929,
-0.013786871917545795,
-0.011789699085056782,
-0.028090447187423706,
-0.012961865402758121,
-0.044136352837085724,
-0.002662427956238389,
-0.00438893586397171,
-0.061380427330732346,
0.030397387221455574,
-0.03628339245915413,
-0.019867166876792908,
0.02608230896294117,
-0.00005547608088818379,
0.04432312399148941,
0.0378037765622139,
0.01587810181081295,
-0.009645610116422176,
-0.011566302739083767,
0.03379925712943077,
-0.04412486404180527,
-0.02488870546221733,
0.048432182520627975,
0.009512915275990963,
0.012072737328708172,
0.011215276084840298,
-0.03992614522576332,
-0.04446988180279732,
0.007887911051511765,
0.017548318952322006,
0.06834425032138824,
-0.0009031019289977849,
0.019684255123138428,
-0.026105575263500214,
0.011038057506084442,
-0.008041351102292538,
-0.037041161209344864,
0.0038669253699481487,
0.05692353844642639,
-0.011112228967249393,
0.006030706223100424,
-0.010399947874248028,
0.022480636835098267,
-0.054299283772706985,
0.02644299529492855,
0.012734252959489822,
0.00786450132727623,
-0.07881183922290802,
-0.036223314702510834,
-0.026516789570450783,
-0.01901382766664028,
0.02654527872800827,
-0.031192876398563385,
0.04991478845477104,
-0.01105491816997528,
-0.023976700380444527,
0.03161974996328354,
-0.0035696441773325205,
0.019025616347789764,
0.020397169515490532,
0.0009447028278373182,
-0.0231005921959877,
0.004881721455603838,
-0.031185798346996307,
-0.01318357139825821,
0.025456173345446587,
0.020368563011288643,
-0.044182293117046356,
-0.001222030259668827,
0.031851500272750854,
-0.04927423596382141,
0.012302946299314499,
-0.002242518588900566,
0.03762391209602356,
-0.0074450490064918995,
0.030690349638462067,
-0.009285862557590008,
-0.0010173950577154756,
-0.05040362849831581,
0.014734593220055103,
-0.019786478951573372,
-0.05019902437925339,
-0.00899624451994896,
0.028087366372346878,
0.04683256521821022,
0.021425561979413033,
0.018730031326413155,
-0.007204304914921522,
-0.002568240510299802,
-0.018135977908968925,
0.013745158910751343,
0.06860779225826263,
0.0337454155087471,
-0.006581003777682781,
0.013441271148622036,
0.018983732908964157,
-0.014689820818603039,
0.005292723886668682,
0.015753014013171196,
0.0023063267581164837,
0.019819820299744606,
0.015964636579155922,
0.04235405474901199,
0.0030144797638058662,
0.043986476957798004,
0.048577673733234406,
-0.0011253153206780553,
-0.046935074031353,
-0.0030086515471339226,
-0.00841300468891859,
-0.035047195851802826,
-0.009558992460370064,
0.04190871864557266,
0.004351366776973009,
-0.026129113510251045,
0.027999263256788254,
0.009818002581596375,
-0.004752692766487598,
0.01176913920789957,
0.0011720001930370927,
0.01748553477227688,
-0.04110023379325867,
-0.009195104241371155,
-0.038154713809490204,
-0.02313873916864395,
0.016888270154595375,
0.03395753353834152,
-0.0009456779225729406,
-0.013506971299648285,
-0.01812260039150715,
-0.007450076751410961,
0.028217868879437447,
0.010100246407091618,
0.018281571567058563,
-0.061099715530872345,
0.03384305164217949,
0.027808785438537598,
-0.017229584977030754,
-0.05831712856888771,
0.008195626549422741,
-0.016634859144687653,
-0.014367892406880856,
-0.0352749340236187,
0.040037959814071655,
-0.014405213296413422,
0.003322252770885825,
-0.003645639168098569,
-0.015613541007041931,
-0.0269343052059412,
0.019975952804088593,
-0.015045804902911186,
-0.041759561747312546,
0.001828250358812511,
-0.00647675571963191,
0.0014349272241815925,
-0.01484324224293232,
-0.004811423365026712,
0.045930441468954086,
0.020188704133033752,
0.015754299238324165,
-0.004058508202433586,
0.00990129355341196,
0.034076988697052,
0.0006654787575826049,
-0.01760026253759861,
0.009445826523005962,
0.04327773675322533,
-0.007198059465736151,
0.03801228851079941,
-0.010825874283909798,
-0.07067245990037918,
0.00763093912974,
0.01597900688648224,
0.01774962618947029,
0.04804713651537895,
-0.04697010666131973,
-0.003808836452662945,
0.0009466311894357204,
0.004366985522210598,
0.02881026081740856,
0.007491653319448233,
0.017597999423742294,
0.011417229659855366,
-0.027808407321572304,
0.006605787668377161,
0.0396861806511879,
0.008268579840660095,
-0.016400402411818504,
0.011306577362120152,
0.027177046984434128,
-0.029011638835072517,
0.017350291833281517,
0.010781504213809967,
-0.04450654238462448,
0.007062517572194338,
-0.0365995317697525,
0.011128111742436886,
0.03188465163111687,
-0.0042199911549687386,
-0.04327519237995148,
-0.018997380509972572,
0.01657829061150551,
0.002226224634796381,
-0.005302553065121174,
-0.02188809961080551,
0.02127276360988617,
0.06113171949982643,
0.004924642853438854,
0.007544036488980055,
-0.00843788031488657,
-0.01070232130587101,
0.015044205822050571,
0.06927136331796646,
-0.02206631749868393,
-0.08240301162004471,
-0.0031372238881886005,
0.025390056893229485,
-0.051752153784036636,
0.023773547261953354,
0.019109884276986122,
-0.01871846616268158,
0.003876930335536599,
0.0462847463786602,
0.06933174282312393,
0.04015159234404564,
-0.0324026420712471,
0.03163973242044449,
-0.027093397453427315,
-0.029572458937764168,
-0.02858949638903141,
-0.0069673508405685425,
-0.01043512299656868,
0.012703608721494675,
0.05095520615577698,
0.07765734195709229,
-0.028879886493086815,
0.012667041271924973,
-0.008514907211065292,
-0.028982842341065407,
0.02967182546854019,
-0.030767610296607018,
-0.02427937649190426,
-0.015676386654376984,
-0.010797379538416862,
0.007924663834273815,
-0.0062712193466722965,
0.017068389803171158,
0.014318122528493404,
0.08437560498714447,
-0.024558929726481438,
-0.01275393646210432,
0.032825760543346405,
-0.0236051008105278,
0.013865557499229908,
-0.00851627066731453,
0.0216065663844347,
0.02769417315721512,
0.015498293563723564,
0.0323648676276207,
-0.007300374563783407,
-0.02701062150299549,
0.013053311966359615,
-0.05188101530075073,
-0.0007775217527523637,
0.02310960926115513,
0.037204716354608536,
0.04432391747832298,
-0.01750141754746437,
-0.0005431501776911318,
0.010339014232158661,
-0.0014297503512352705,
0.01826985739171505,
-0.013472111895680428,
0.005337764509022236,
0.018532346934080124,
-0.032208047807216644,
0.03552247956395149,
-0.026319706812500954,
-0.014421452768146992,
-0.009708184748888016,
0.006833352148532867,
0.012189754284918308,
-0.019446633756160736,
0.0006905309855937958,
0.05202709138393402,
0.04876534640789032,
-0.04797164723277092,
-0.008118479512631893,
-0.01819533109664917,
-0.03267151862382889,
-0.009860491380095482,
-0.07986004650592804,
0.03762932866811752,
0.04119240492582321,
-0.02782582864165306,
-0.029458794742822647,
-0.02568087726831436,
-0.0008696589502505958,
0.004704758524894714,
0.02647608332335949,
0.003724680282175541,
0.01783270388841629,
-0.011428357101976871,
-0.027496041730046272,
0.010559293441474438,
-0.007387354038655758,
-0.005010700318962336,
0.019521614536643028,
-0.02991015464067459,
-0.0031286277808248997,
0.01084973756223917,
-0.011402702890336514,
-0.0032406491227447987,
-0.004726539831608534,
-0.05922555923461914,
0.013725240714848042,
-0.0052832565270364285,
0.01213066652417183,
0.0446583516895771,
-0.0018874412635341287,
-0.00975436344742775,
-0.013915862888097763,
-0.01351686380803585,
0.06738898158073425,
0.04435495659708977,
-0.04892736300826073,
0.02293458580970764,
-0.023997819051146507,
0.025264672935009003,
0.03270847350358963,
0.017192766070365906,
0.026907380670309067,
-0.018559511750936508,
0.07366899400949478,
-0.011124166660010815,
0.026753434911370277,
0.04000483825802803,
-0.00725132692605257,
-0.02368100918829441,
-0.017179446294903755,
-0.016602473333477974,
-0.059389423578977585,
0.0003746083821170032,
-0.006511108949780464,
-0.003017816925421357,
0.017545528709888458,
-0.02322097308933735,
0.06992051750421524,
0.04205399379134178,
0.05201246216893196,
0.0034647255670279264,
0.04243914410471916,
0.06334800273180008,
0.00576487323269248,
-0.0013783740578219295,
0.015035822056233883,
0.028086740523576736,
-0.0011922266567125916,
0.01690378412604332,
-0.007810101844370365,
0.030103683471679688,
-0.0037943311035633087,
-0.0017143108416348696,
-0.016740625724196434,
-0.007126140408217907,
-0.009068036451935768,
0.0028506764210760593,
0.009218644350767136,
-0.03519292175769806,
-0.039038997143507004,
0.030025765299797058,
-0.016588466241955757,
0.045098934322595596,
-0.03900980204343796,
0.019340740516781807,
-0.04918760806322098,
-0.032399266958236694,
-0.009885942563414574,
-0.014143339358270168,
0.008601374924182892,
-0.07377075403928757,
0.02523742988705635,
-0.0004592057957779616,
-0.0031518747564405203,
-0.013216559775173664,
-0.038693029433488846,
-0.014139430597424507,
-0.00028998416382819414,
-0.02459629625082016,
-0.03004763275384903,
0.024091359227895737,
-0.03970542177557945,
0.011783878318965435,
0.004627857357263565,
0.04150591790676117,
0.025962600484490395,
0.029454201459884644,
-0.0021491029765456915,
0.027632741257548332,
-0.01452974509447813,
-0.00706391129642725,
-0.014138280414044857,
0.00023250396770890802,
0.018058663234114647,
-0.022371187806129456,
-0.025475148111581802,
-0.015462744049727917,
0.0731491819024086,
-0.007317852228879929,
0.010471978224813938,
0.009565621614456177,
-0.023853542283177376,
0.0031153568997979164,
0.01646489091217518,
-0.030054790899157524,
0.07033587247133255,
-0.034186892211437225,
-0.012011552229523659,
0.03037160262465477,
0.0015254952013492584,
0.038944024592638016,
-0.002020555781200528,
-0.027389798313379288,
0.025524040684103966,
-0.01830439269542694,
0.012217867188155651,
0.007740341126918793,
0.003820400917902589,
-0.013145122677087784,
0.026640355587005615,
0.00934275146573782,
0.01845387928187847,
0.0007519579376094043,
-0.025963865220546722,
-0.011906282976269722,
-0.04149511456489563,
-0.006279119290411472,
-0.055666908621788025,
-0.05320483073592186,
-0.04676167666912079,
-0.025538938120007515,
-0.006392390001565218,
0.010967143811285496,
-0.04143765568733215,
-0.022067831829190254,
-0.04270452633500099,
-0.03622747212648392,
-0.025123540312051773,
0.00915664341300726,
0.04024951532483101,
0.05151226744055748,
0.022179843857884407,
-0.018213916569948196,
-0.06403157860040665,
-0.015480449423193932,
0.015311094000935555,
0.04970991611480713,
0.03828556463122368,
0.013854625634849072,
-0.01993698626756668,
-0.0202233474701643,
0.008269106037914753,
0.016652626916766167,
-0.0505039282143116,
0.035003311932086945,
-0.00402404647320509,
-0.02303166128695011,
-0.038810908794403076,
0.0154525525867939,
0.014471838250756264,
-0.0007230228511616588,
0.016394134610891342,
-0.0270024836063385,
0.00843050330877304,
-0.03770465403795242,
-0.02266010455787182,
-0.06836947798728943,
0.0020502011757344007,
-0.04974628612399101,
-0.03387581184506416,
0.02224520966410637,
0.018521549180150032,
-0.011595211923122406,
-0.06236330792307854,
-0.005335926543921232,
-0.018037114292383194,
0.007817337289452553,
-0.07152875512838364,
-0.049675215035676956,
0.02582915686070919,
0.027445640414953232,
-0.04577995464205742,
-0.007630747277289629,
-0.02800103835761547,
-0.035917047411203384,
-0.02092997170984745,
0.01745607890188694,
-0.008534104563295841,
-0.000313190626911819,
-0.037666574120521545,
-0.012923335656523705,
0.0018093711696565151,
-0.005049307830631733,
0.03197187930345535,
-0.046471379697322845,
-0.028389444574713707,
0.005961839109659195
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | key: hugging face tweet:""" predictor.predict({ 'inputs': prompt, "parameters" : { "max_length": int(len(prompt) + max_generated_token_length), "temperature": float(temperature), "eos_token_id": int(tokenizer.convert_tokens_to_ids(end_sequence)), "return_full_text":False } }) --- To delete your endpoint you can run. python predictor.delete_endpoint() | [
0.0015942397294566035,
0.029920214787125587,
0.030101316049695015,
-0.046372052282094955,
0.045895084738731384,
0.08073411881923676,
0.020400023087859154,
0.03138398006558418,
0.005879002157598734,
-0.027574779465794563,
-0.1021895557641983,
0.008130504749715328,
0.0189836248755455,
0.059508658945560455,
-0.00828262697905302,
-0.016809772700071335,
-0.020442096516489983,
-0.02146247960627079,
-0.037002336233854294,
0.04369039461016655,
0.01908889040350914,
-0.08022838830947876,
0.03635849058628082,
-0.016452891752123833,
0.014967815950512886,
-0.03348858281970024,
-0.041530776768922806,
-0.027960067614912987,
0.03709176927804947,
0.024858422577381134,
-0.10080067813396454,
0.0021018260158598423,
0.016217932105064392,
0.003090530401095748,
0.06691312789916992,
0.022624775767326355,
-0.1176031082868576,
0.04016656056046486,
0.009245077148079872,
0.05193252116441727,
-0.08714375644922256,
-0.013881353661417961,
-0.06024065986275673,
0.0389440581202507,
0.03422723338007927,
-0.05920150503516197,
-0.14161233603954315,
0.03446543589234352,
0.018009042367339134,
-0.0641319528222084,
-0.05694723501801491,
0.09948855638504028,
-0.02053765207529068,
0.011558638885617256,
0.025711920112371445,
-0.0575324222445488,
-0.028617192059755325,
-0.10087286680936813,
-0.014389687217772007,
0.0031046888325363398,
0.007583781145513058,
0.017963269725441933,
0.027917921543121338,
0.050331875681877136,
0.017335331067442894,
-0.001077759894542396,
-0.019538329914212227,
0.0010098677594214678,
-0.024201741442084312,
-0.05098222568631172,
0.01119005773216486,
0.03327016904950142,
-0.010083580389618874,
-0.020023424178361893,
-0.005305727478116751,
-0.05726352706551552,
0.018152421340346336,
0.06062281131744385,
0.03787172958254814,
0.07055129110813141,
-0.0022694417275488377,
0.04113204777240753,
0.014243187382817268,
-0.04639671742916107,
0.014395827427506447,
0.020148655399680138,
0.018469279631972313,
-0.0004659665282815695,
-0.06633467227220535,
-0.005655157379806042,
0.010893617756664753,
-0.06544701755046844,
-0.031363822519779205,
0.02300175279378891,
-0.04769251123070717,
0.036813441663980484,
0.041810791939496994,
-0.023651691153645515,
0.02139361761510372,
-0.034648437052965164,
-0.04734072834253311,
-0.1061340719461441,
-0.06970826536417007,
-0.06772052496671677,
-0.04134512320160866,
0.0705341100692749,
0.01367967575788498,
-0.05580757185816765,
-0.008460437878966331,
-0.053907353430986404,
-0.012365603819489479,
0.016497278586030006,
-0.02853328362107277,
0.13523879647254944,
-0.07378017902374268,
0.09037768840789795,
-0.01889604516327381,
-0.01851983554661274,
-0.003748937975615263,
0.009804475121200085,
0.044134918600320816,
0.038638047873973846,
0.04570019245147705,
-0.0583893246948719,
0.022134119644761086,
0.06470654904842377,
0.030828488990664482,
0.002973329508677125,
0.05717359483242035,
-0.025850767269730568,
0.020830893889069557,
-0.006345239467918873,
0.06350375711917877,
0.03996918722987175,
-0.022237032651901245,
-0.1033778190612793,
0.016202514991164207,
-0.10790301114320755,
0.07293414324522018,
0.018669964745640755,
0.011564386077225208,
0.04366741701960564,
-0.03918798267841339,
0.0750855952501297,
0.004325186368077993,
0.02248193696141243,
-0.041058555245399475,
0.05691343545913696,
0.025510381907224655,
0.06161331385374069,
-0.041797105222940445,
0.06563057750463486,
-0.014375245198607445,
-0.04416481405496597,
0.005905897356569767,
0.053914476186037064,
-0.010459527373313904,
0.027872778475284576,
-0.02136259526014328,
0.016209635883569717,
0.03407760709524155,
0.042307883501052856,
-0.06911445409059525,
-0.007225870154798031,
0.10780860483646393,
0.024941883981227875,
0.03136441856622696,
0.01731688156723976,
0.01778220385313034,
-0.000389685679692775,
0.07546455413103104,
-0.03836223483085632,
0.05772482976317406,
0.022329531610012054,
0.03302749618887901,
0.03683165833353996,
0.013439399190247059,
-0.018892258405685425,
-0.036268096417188644,
0.004750498104840517,
-0.0010862329509109259,
0.08413485437631607,
-0.04115726426243782,
0.01393344160169363,
0.0857192650437355,
-0.08451228588819504,
-0.038841236382722855,
0.023772956803441048,
0.056966401636600494,
-0.019442623481154442,
0.013946520164608955,
-0.05612974241375923,
0.0466250516474247,
-0.0045091831125319,
0.055785052478313446,
-0.06063593924045563,
-0.05852406844496727,
0.08352300524711609,
-0.007854966446757317,
0.07811041176319122,
0.02764451503753662,
0.058121100068092346,
0.06786610186100006,
-0.0724334567785263,
-0.03753499686717987,
0.016189569607377052,
-0.008932937867939472,
-0.05821165069937706,
-0.008506687358021736,
0.04216579720377922,
0.0018408593023195863,
-0.04208580031991005,
0.04296601191163063,
-0.08586714416742325,
-0.03436456248164177,
-0.027503682300448418,
-0.01669619046151638,
-0.012268556281924248,
0.020076025277376175,
0.013433541171252728,
0.12947805225849152,
-0.050682418048381805,
0.019400153309106827,
-0.09229554980993271,
0.047449175268411636,
0.014611128717660904,
0.03348708897829056,
0.05346878618001938,
0.0650256872177124,
-0.05193948373198509,
-0.04376232251524925,
-0.08447128534317017,
-0.04661533609032631,
0.024402564391493797,
-0.02742328681051731,
-0.011594661511480808,
0.0022727877367287874,
-0.0290170107036829,
0.04065347835421562,
-0.07397719472646713,
-0.00042879441753029823,
0.014665707014501095,
-0.011254308745265007,
0.04727208986878395,
-0.03293316066265106,
-0.03980538249015808,
0.06360337138175964,
0.008220292627811432,
-0.07099208980798721,
0.03015451692044735,
-0.05911346152424812,
0.05327245965600014,
0.010710164904594421,
-0.015017709694802761,
0.030161991715431213,
0.014506678096950054,
-0.037962064146995544,
0.024882210418581963,
-0.007697662804275751,
0.07980848103761673,
-0.00814554002135992,
-0.010671879164874554,
-0.004726126790046692,
0.0037371977232396603,
0.023441294208168983,
-0.0003818788391072303,
-0.04392622783780098,
-0.020479854196310043,
-0.009322366677224636,
-0.018103480339050293,
0.025244958698749542,
-0.029569584876298904,
0.015476078726351261,
0.04316463693976402,
0.008006511256098747,
0.03126507252454758,
0.018726896494627,
-0.008068553172051907,
-0.012490610592067242,
-0.0038848919793963432,
0.01644173078238964,
-0.04234442114830017,
0.0019315362442284822,
0.03556525707244873,
0.049335867166519165,
0.006380598526448011,
-0.001474522752687335,
-0.039978742599487305,
-0.048693157732486725,
-0.02860555611550808,
-0.006287259515374899,
0.03854876756668091,
0.03143946826457977,
-0.006881124339997768,
-0.03943607956171036,
0.0231920313090086,
0.053911853581666946,
0.014007761143147945,
0.003398965811356902,
0.0216959360986948,
-0.02504744380712509,
0.02181934379041195,
0.013401671312749386,
-0.03566434606909752,
-0.03083791397511959,
0.035129740834236145,
0.02034509740769863,
0.0071516153402626514,
-0.08933638036251068,
-0.023818915709853172,
-0.0014604749158024788,
-0.012525545433163643,
-0.018322188407182693,
-0.0069176144897937775,
0.04520286247134209,
0.008434808813035488,
-0.01641031540930271,
0.0545661635696888,
0.025921788066625595,
-0.001091644517146051,
0.0027281639631837606,
0.011588724330067635,
-0.044453214854002,
0.0024078995920717716,
0.025401614606380463,
-0.022724883630871773,
0.03018995188176632,
0.01312248781323433,
-0.038365721702575684,
0.0062181088142097,
0.025761336088180542,
-0.011585034430027008,
0.011411323212087154,
-0.01921846903860569,
0.05124593526124954,
0.049540333449840546,
0.007347097620368004,
-0.036610670387744904,
-0.0022015750873833895,
-0.06652888655662537,
-0.007268552668392658,
-0.006685495842248201,
-0.05269911140203476,
-0.002214127918705344,
-0.007932066917419434,
-0.03446238115429878,
0.021312642842531204,
0.0056678494438529015,
-0.026487814262509346,
-0.015205113217234612,
0.005645131692290306,
-0.015036267228424549,
-0.0034168658312410116,
-0.005355502013117075,
0.012868976220488548,
0.007006426341831684,
0.008331400342285633,
-0.02523214928805828,
0.001530646812170744,
-0.013893300667405128,
-0.009460967034101486,
0.03390904888510704,
0.023459548130631447,
0.027039073407649994,
0.0033362300600856543,
0.050219420343637466,
0.014406023547053337,
-0.016853412613272667,
-0.05741894617676735,
-0.02624228224158287,
-0.012461298145353794,
-0.014664129354059696,
-0.04168988764286041,
0.06239969655871391,
-0.038696933537721634,
-0.015623184852302074,
0.003881189040839672,
0.007793402764946222,
-0.019500216469168663,
0.033077411353588104,
0.003175163408741355,
0.024496354162693024,
-0.0062486170791089535,
0.008716005831956863,
-0.012410822324454784,
-0.026044705882668495,
0.01258364412933588,
-0.02396254986524582,
-0.03882448747754097,
0.007446111645549536,
-0.03874562680721283,
0.02845345437526703,
0.02291693538427353,
0.0013452551793307066,
0.014826066792011261,
-0.01750005967915058,
0.02641873247921467,
0.02785802073776722,
-0.0067664217203855515,
-0.023277610540390015,
0.0013007232919335365,
-0.020580556243658066,
-0.03600519523024559,
-0.008717606775462627,
0.011066372506320477,
0.03555843234062195,
0.018439892679452896,
0.0002659909368958324,
-0.005355545785278082,
-0.05768679827451706,
-0.01907295733690262,
-0.015758492052555084,
-0.03505344316363335,
0.007898321375250816,
-0.05895558372139931,
-0.013285341672599316,
0.013938318938016891,
-0.027252985164523125,
-0.009264189749956131,
-0.001464390312321484,
-0.0026934428606182337,
-0.03041967935860157,
0.008807867765426636,
0.06290487200021744,
-0.016674228012561798,
0.008227776736021042,
0.012439454905688763,
0.041383519768714905,
-0.05063135176897049,
0.00016939562920015305,
-0.00983328465372324,
-0.05273277685046196,
0.016521194949746132,
0.011959894560277462,
0.03511876240372658,
0.027760876342654228,
0.00413149781525135,
-0.024641171097755432,
-0.021615946665406227,
0.02370813488960266,
0.03470256179571152,
-0.006406394764780998,
0.014206347055733204,
0.0382574200630188,
-0.03711586073040962,
-0.0008782693766988814,
0.021761532872915268,
-0.0152563052251935,
-0.033596523106098175,
0.003752108197659254,
0.009226803667843342,
-0.04506666958332062,
-0.0003500416351016611,
0.010147401131689548,
-0.06774909794330597,
-0.04434759169816971,
0.0005089329206384718,
-0.028033634647727013,
-0.0019092611037194729,
0.0001378592278342694,
-0.035151124000549316,
-0.0021358791273087263,
0.013643124140799046,
-0.01206858828663826,
-0.028229909017682076,
-0.007033053319901228,
-0.009812642820179462,
0.039126716554164886,
-0.035927556455135345,
-0.006182979792356491,
-0.009040377102792263,
0.039795298129320145,
0.005057821981608868,
0.004201625473797321,
-0.03685499355196953,
-0.045373786240816116,
0.0037691649049520493,
-0.02399863675236702,
-0.007652587257325649,
0.001696683932095766,
0.047544367611408234,
-0.010810685344040394,
0.008825558237731457,
0.03436358645558357,
0.021856527775526047,
0.034693360328674316,
-0.06575793772935867,
0.03441770002245903,
0.006851484067738056,
0.030733276158571243,
0.04522848129272461,
0.015037880279123783,
0.033270031213760376,
0.059285473078489304,
0.022799476981163025,
0.045060742646455765,
0.06302978098392487,
0.0569566935300827,
-0.017278263345360756,
-0.03599641099572182,
-0.026160281151533127,
-0.021722285076975822,
0.020247435197234154,
-0.002260771580040455,
-0.01567656360566616,
0.05186810344457626,
-0.04565806686878204,
-0.008832891471683979,
0.0087819192558527,
0.027248544618487358,
0.014505414292216301,
-0.002475152024999261,
0.05346565693616867,
0.023425715044140816,
-0.003072611754760146,
-0.0278935469686985,
0.07058723270893097,
0.0008250072714872658,
-0.019400309771299362,
-0.03946782648563385,
0.0067965188063681126,
-0.008645731024444103,
0.0324990376830101,
0.0075273835100233555,
0.009366747923195362,
-0.004709800239652395,
0.023845061659812927,
0.10330551117658615,
-0.018986936658620834,
-0.0010100618237629533,
-0.017332596704363823,
0.004244890064001083,
0.04182251915335655,
-0.008264550007879734,
-0.009307371452450752,
0.015775812789797783,
0.01033304538577795,
0.018198981881141663,
0.02396445721387863,
-0.03795637935400009,
0.005835484713315964,
0.06573580205440521,
0.010651910677552223,
0.024445604532957077,
-0.03975672647356987,
0.007615482434630394,
0.08050268143415451,
0.004008519928902388,
-0.016781115904450417,
-0.00881164986640215,
-0.04246744140982628,
-0.01031217910349369,
0.019738687202334404,
0.02697310969233513,
0.008888688869774342,
-0.006610735785216093,
-0.014981243759393692,
0.02030513435602188,
0.03316143900156021,
0.013289861381053925,
0.014326661825180054,
-0.0187696423381567,
-0.0073054395616054535,
-0.0023207422345876694,
0.0003538149467203766,
-0.012278763577342033,
0.005223678424954414,
-0.03374176099896431,
0.0049337767995893955,
-0.08272685110569,
-0.0006871953373774886,
0.0467035248875618,
-0.011052757501602173,
0.03848396986722946,
-0.007586762774735689,
-0.03235306218266487,
0.014097358100116253,
-0.0006875108228996396,
0.020200954750180244,
0.0038455757312476635,
0.009822346270084381,
-0.014332314021885395,
-0.04093444347381592,
-0.025034967809915543,
0.023391153663396835,
0.060647472739219666,
-0.0345587320625782,
0.03616868704557419,
0.015081966295838356,
0.053416572511196136,
0.021139947697520256,
0.01683253049850464,
0.01043466106057167,
-0.014337357133626938,
0.07992347329854965,
0.024772709235548973,
0.02327706664800644,
-0.009596244432032108,
0.0038484425749629736,
0.041456881910562515,
-0.012464487925171852,
-0.016014788299798965,
-0.0024656997993588448,
-0.008215242996811867,
0.055123500525951385,
0.012749875895678997,
0.023656031116843224,
-0.05364806577563286,
0.039092790335416794,
0.018703948706388474,
0.04604405164718628,
0.0020430823788046837,
-0.008333653211593628,
0.038993217051029205,
0.016884848475456238,
0.003089484991505742,
0.06525950878858566,
0.006057318765670061,
-0.035385534167289734,
0.031158750876784325,
-0.002263950416818261,
-0.0015149316750466824,
0.009318637661635876,
-0.015567821450531483,
-0.015406018123030663,
-0.02378837577998638,
-0.03963504731655121,
0.0061501325108110905,
0.005199793726205826,
-0.05542634800076485,
0.01676217094063759,
-0.007250363007187843,
-0.030847275629639626,
0.04543902724981308,
-0.03517596051096916,
-0.004664022475481033,
-0.009321092627942562,
-0.00046695381752215326,
0.008919811807572842,
0.03376778960227966,
0.007812715135514736,
-0.02952100895345211,
-0.000008770673957769759,
0.0005764103261753917,
0.017799999564886093,
-0.017984015867114067,
-0.06856735795736313,
0.018138272687792778,
-0.021849583834409714,
-0.012161681428551674,
0.023501235991716385,
-0.002114698523655534,
-0.0149358119815588,
0.030132660642266273,
0.004846286494284868,
0.060366202145814896,
-0.007843737490475178,
-0.003291971515864134,
0.024404410272836685,
0.04565306007862091,
-0.020038871094584465,
-0.03827618807554245,
-0.019038081169128418,
-0.004348986782133579,
0.004766947124153376,
-0.033709146082401276,
-0.014606451615691185,
-0.009808584116399288,
0.03030340187251568,
0.018377916887402534,
0.01738979108631611,
-0.01423554215580225,
0.0006840941496193409,
0.00933868158608675,
-0.009164082817733288,
-0.031537871807813644,
0.05997569113969803,
-0.015387095510959625,
0.015081629157066345,
0.02183893322944641,
0.011411716230213642,
-0.042887572199106216,
-0.03645407408475876,
-0.009889403358101845,
0.023312615230679512,
0.008348860777914524,
-0.03798925504088402,
0.0010485524544492364,
0.0189470574259758,
0.034258462488651276,
0.002166962716728449,
0.03615209832787514,
-0.0012233686866238713,
0.03315658122301102,
-0.04000219330191612,
0.037242621183395386,
-0.028696052730083466,
0.010429034009575844,
-0.03325709328055382,
-0.03055107221007347,
-0.017475729808211327,
-0.02503674104809761,
-0.01869434490799904,
0.015909509733319283,
-0.026993323117494583,
-0.004582230467349291,
-0.02777850441634655,
-0.018502671271562576,
-0.0006077580037526786,
0.019111378118395805,
0.03847229853272438,
0.07655563205480576,
0.06877332180738449,
0.02288363128900528,
-0.018443146720528603,
-0.011358880437910557,
0.005929954349994659,
-0.015647700056433678,
0.027837613597512245,
0.020507140085101128,
-0.05122728645801544,
-0.023350143805146217,
0.02039952389895916,
0.004952545277774334,
-0.05567432567477226,
-0.004492659587413073,
-0.01806437410414219,
-0.039101678878068924,
-0.009680697694420815,
-0.001009046216495335,
-0.003588920459151268,
-0.01249814685434103,
0.0411776639521122,
-0.0239076167345047,
-0.018199343234300613,
-0.04362717270851135,
0.057560984045267105,
-0.04572492465376854,
-0.012487661093473434,
-0.037336841225624084,
-0.02220878377556801,
0.07640229165554047,
-0.0000489361300424207,
0.00653684651479125,
-0.003322476986795664,
-0.01631133444607258,
-0.01662885770201683,
0.0064667291007936,
-0.024446995928883553,
-0.017983613535761833,
-0.012008163146674633,
0.031516045331954956,
-0.05199072137475014,
0.029943756759166718,
0.037409354001283646,
-0.007356408517807722,
-0.04318343847990036,
0.01267128437757492,
-0.01611471362411976,
-0.0033053343649953604,
-0.0019560749642550945,
-0.002607375616207719,
-0.04613775014877319,
0.027818189933896065,
0.03743975609540939,
-0.023916762322187424,
-0.0620122104883194,
0.062251657247543335
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | key: startups tweet: Startups shouldn’t worry about how to put out fires, they should worry about how to start them. | [
0.0769190564751625,
0.05299924314022064,
0.07851578295230865,
0.04464377835392952,
0.09925474971532822,
0.032927002757787704,
-0.020165972411632538,
0.012754758819937706,
-0.0016622391995042562,
-0.09219053387641907,
-0.06734813004732132,
0.1012296974658966,
-0.033811621367931366,
0.04118785634636879,
-0.01576605811715126,
0.009489377960562706,
0.008469982072710991,
-0.005688434932380915,
0.01080622524023056,
-0.018518229946494102,
-0.014900141395628452,
0.007544889580458403,
0.041004542261362076,
0.01658305712044239,
0.056465450674295425,
-0.052021075040102005,
-0.0041329097002744675,
-0.04231253266334534,
-0.06674117594957352,
0.037653930485248566,
-0.027877893298864365,
0.024242039769887924,
0.01521144900470972,
0.03753039613366127,
0.016360318288207054,
0.028332723304629326,
-0.07784484326839447,
0.013360741548240185,
0.026827668771147728,
-0.011107806116342545,
-0.00876779854297638,
-0.07866771519184113,
-0.016842829063534737,
0.059439800679683685,
-0.04566255584359169,
-0.001794308889657259,
-0.25832611322402954,
0.09041053056716919,
0.003412985010072589,
-0.0764581635594368,
-0.02514934353530407,
0.019868573173880577,
0.07236550003290176,
-0.026929842308163643,
0.004217142704874277,
0.010287688113749027,
0.021136868745088577,
-0.06912992894649506,
-0.0021185430232435465,
-0.03346788510680199,
0.03321300819516182,
-0.01621842011809349,
0.012139853090047836,
0.004145944956690073,
0.06627356261014938,
-0.01375571358948946,
0.040998950600624084,
0.06380946934223175,
-0.052742213010787964,
0.044204212725162506,
-0.00910413358360529,
-0.021357988938689232,
-0.024420209228992462,
-0.04121435433626175,
0.01280765701085329,
-0.007524196058511734,
0.02621430531144142,
0.07544998824596405,
0.004157316870987415,
0.03783562779426575,
0.017570996657013893,
-0.00386440590955317,
0.038596466183662415,
0.0641346201300621,
-0.007190330419689417,
0.03363285958766937,
0.015590808354318142,
-0.010474280454218388,
-0.018576286733150482,
0.032889362424612045,
0.04003642126917839,
-0.09137588739395142,
0.06524781882762909,
0.02755562774837017,
0.04087657108902931,
0.03078228421509266,
-0.0008100508712232113,
-0.01772332936525345,
0.03913557529449463,
-0.011243890039622784,
-0.032803431153297424,
-0.07706540822982788,
0.010046632029116154,
-0.025761954486370087,
-0.011461712419986725,
-0.039169661700725555,
0.02545829862356186,
0.010439613834023476,
0.013259489089250565,
0.0021858676336705685,
-0.028659867122769356,
0.011337380856275558,
0.055377520620822906,
0.005850228480994701,
-0.05668993666768074,
0.06779900938272476,
0.04753546416759491,
-0.05357817932963371,
0.059323664754629135,
-0.01060300413519144,
0.03187704086303711,
0.10281945019960403,
0.017836427316069603,
0.046370528638362885,
-0.006668022833764553,
-0.023975608870387077,
0.04828273877501488,
0.06641257554292679,
-0.057295288890600204,
-0.022187039256095886,
0.057820260524749756,
0.050351597368717194,
-0.00953681766986847,
-0.06869504600763321,
-0.016915854066610336,
-0.0322299487888813,
0.003303124802187085,
-0.014997546561062336,
0.020321471616625786,
-0.0014955694787204266,
-0.06195402145385742,
0.08099633455276489,
0.0034567045513540506,
0.04305507615208626,
0.04343144968152046,
-0.06125904247164726,
-0.054654013365507126,
-0.06295399367809296,
-0.04006664827466011,
0.09745380282402039,
0.015664003789424896,
0.019078167155385017,
-0.051089853048324585,
0.005608342122286558,
0.03278810530900955,
0.06407660245895386,
0.020350078120827675,
-0.00531636830419302,
0.03478805720806122,
0.04661931097507477,
-0.019927751272916794,
-0.008691960945725441,
-0.008517544716596603,
-0.07253558188676834,
0.04580673575401306,
-0.02719060145318508,
0.012754598632454872,
0.005352003499865532,
0.06396963447332382,
-0.06057078391313553,
-0.015424871817231178,
0.00019893233547918499,
0.025625376030802727,
-0.11058105528354645,
0.01858784630894661,
0.0567283108830452,
0.01632068119943142,
0.004661403596401215,
0.004602545406669378,
0.053277358412742615,
-0.019849654287099838,
0.0441502220928669,
-0.029142308980226517,
0.07913903146982193,
-0.008304174058139324,
-0.06476420909166336,
0.010857208631932735,
-0.040139444172382355,
0.017474720254540443,
0.026267632842063904,
-0.08196389675140381,
0.005534490570425987,
0.07756420224905014,
0.02973027154803276,
0.05497194454073906,
-0.07777255773544312,
-0.0012077890569344163,
0.07902160286903381,
0.05876128375530243,
0.08740311861038208,
0.006495900917798281,
0.04521676152944565,
0.07135015726089478,
-0.04249174892902374,
-0.040819019079208374,
0.06787136942148209,
0.037308115512132645,
0.026341784745454788,
0.015914835035800934,
0.009084802120923996,
0.015521759167313576,
-0.09061212092638016,
0.037207335233688354,
-0.08207547664642334,
0.07579325139522552,
-0.05253167822957039,
-0.03668868541717529,
0.018350472673773766,
-0.014895864762365818,
-0.023394089192152023,
0.07952495664358139,
-0.0009098100708797574,
0.018214723095297813,
0.04501685872673988,
0.041480664163827896,
0.026703685522079468,
0.10976678133010864,
0.0003953847917728126,
0.10028304904699326,
-0.10670677572488785,
-0.015033056028187275,
0.03940733149647713,
-0.02370872162282467,
0.006362879183143377,
0.045805204659700394,
0.09896209090948105,
-0.047739773988723755,
0.01269103866070509,
0.050360772758722305,
-0.10755656659603119,
0.007053889334201813,
-0.050576914101839066,
-0.004951813258230686,
0.07604340463876724,
-0.03818201273679733,
-0.08945402503013611,
0.03572088107466698,
-0.010881922207772732,
-0.031019046902656555,
-0.03830484673380852,
-0.02784609980881214,
0.015869861468672752,
0.0307222381234169,
-0.030508454889059067,
0.07682085037231445,
-0.014752546325325966,
-0.0052657350897789,
-0.004441061057150364,
-0.025174429640173912,
-0.02195798233151436,
0.006366906687617302,
-0.03795753791928291,
-0.0051600937731564045,
-0.016026128083467484,
0.010776539333164692,
-0.012110182084143162,
-0.020912932232022285,
0.016990719363093376,
-0.01723739504814148,
-0.015787318348884583,
0.03009798377752304,
-0.045476000756025314,
0.04301614686846733,
0.010644706897437572,
-0.013486601412296295,
-0.012048959732055664,
0.053858716040849686,
0.014489180408418179,
-0.024507291615009308,
-0.016979489475488663,
0.025506766512989998,
-0.03055105172097683,
-0.007026358973234892,
-0.011687679216265678,
-0.00764538673684001,
-0.005810416769236326,
-0.023209115490317345,
-0.017912929877638817,
-0.033849891275167465,
0.04338604584336281,
-0.034010499715805054,
-0.04129640385508537,
0.013703458942472935,
-0.00620248494669795,
0.01248676236718893,
-0.0005448881420306861,
-0.017317969352006912,
0.021681230515241623,
-0.02276025153696537,
0.01575492136180401,
-0.03287862241268158,
0.013791185803711414,
-0.020791880786418915,
-0.01364201121032238,
-0.035883281379938126,
0.039831217378377914,
0.0021788713056594133,
0.037660546600818634,
-0.12322580814361572,
-0.09165935218334198,
0.03664332628250122,
0.022616693750023842,
-0.016472414135932922,
-0.02452603168785572,
0.04007648304104805,
-0.030327849090099335,
0.009441180154681206,
-0.01590772531926632,
0.0004127010179217905,
-0.014794043265283108,
0.004367616958916187,
-0.03499634563922882,
-0.018706025555729866,
-0.050083890557289124,
-0.0006879174034111202,
-0.00371948117390275,
-0.025550033897161484,
-0.020329007878899574,
-0.03290903568267822,
0.05651334673166275,
-0.044344160705804825,
-0.016590062528848648,
-0.007284234277904034,
0.0005786921828985214,
0.021905196830630302,
0.08856920152902603,
-0.021153882145881653,
-0.024703213945031166,
0.00576940830796957,
0.04923606291413307,
-0.02761881984770298,
0.019541246816515923,
0.00745793990790844,
0.039608195424079895,
0.0019098271150141954,
-0.005403352435678244,
0.0022651192266494036,
0.0648219957947731,
-0.012779983691871166,
0.004812924657016993,
-0.008042007684707642,
-0.01929885894060135,
-0.003662788774818182,
-0.014192599803209305,
-0.010692352429032326,
0.008291978389024734,
0.019107887521386147,
-0.05636000260710716,
0.0067763179540634155,
-0.02270224690437317,
-0.020215116441249847,
0.018273193389177322,
0.02503920905292034,
0.007041581440716982,
-0.0158933587372303,
0.026391293853521347,
0.026907894760370255,
-0.003742956556379795,
-0.029383379966020584,
0.03509996086359024,
0.024238627403974533,
0.005037303548306227,
-0.0059029036201536655,
0.044376157224178314,
-0.018403878435492516,
0.002992047229781747,
0.007426513358950615,
-0.008710128255188465,
-0.00889596063643694,
0.026102889329195023,
0.010905653238296509,
0.006195068825036287,
0.00428592786192894,
0.02074253186583519,
-0.021433629095554352,
-0.027961140498518944,
0.06803815811872482,
0.004064476117491722,
-0.006709948647767305,
-0.03445596992969513,
0.014485914260149002,
-0.03688042238354683,
-0.001619981019757688,
-0.005403339397162199,
-0.0039216987788677216,
0.024502815678715706,
0.02037925459444523,
0.02782357670366764,
0.01145602110773325,
-0.020808599889278412,
0.005169845186173916,
-0.0015121542382985353,
-0.003356915432959795,
-0.01697457581758499,
0.0482618510723114,
-0.00529903918504715,
-0.0013211672194302082,
-0.018863363191485405,
0.01296528521925211,
-0.013304820284247398,
-0.018839500844478607,
0.04299550876021385,
-0.015864262357354164,
0.07178547978401184,
-0.04120640829205513,
-0.026992924511432648,
-0.023585215210914612,
0.03189944103360176,
0.01884063519537449,
0.023836525157094002,
-0.006248113699257374,
-0.0612509660422802,
-0.02423032559454441,
-0.012335846200585365,
0.0088863680139184,
-0.00968630425632,
-0.008042467758059502,
0.027641043066978455,
-0.04518632963299751,
0.013496794737875462,
-0.0031944159418344498,
-0.014571438543498516,
-0.012413937598466873,
-0.01218356378376484,
0.02843567170202732,
-0.00634031044319272,
-0.009901574812829494,
0.01182115264236927,
-0.012012862600386143,
-0.02595442160964012,
0.029415201395750046,
-0.0034221685491502285,
-0.012227524071931839,
-0.005007283762097359,
0.01006380282342434,
0.022208714857697487,
0.02960881218314171,
-0.04157231003046036,
0.017517078667879105,
0.03433136269450188,
-0.0018889665370807052,
-0.04371291771531105,
0.03342603147029877,
-0.0042363437823951244,
-0.04708205908536911,
0.010245688259601593,
0.0032602667342871428,
0.039975740015506744,
-0.0007351146196015179,
0.01398240216076374,
-0.023721843957901,
-0.001980030443519354,
0.044184889644384384,
-0.011929905973374844,
0.01407510507851839,
-0.0227492768317461,
-0.03405002877116203,
0.03616388514637947,
-0.006469822023063898,
0.01414545625448227,
-0.022668777033686638,
-0.008429838344454765,
0.027087204158306122,
-0.04857081547379494,
0.00249681668356061,
-0.03234420344233513,
-0.0224471352994442,
0.019985206425189972,
-0.008554535917937756,
0.005937699694186449,
0.034577202051877975,
0.01143836509436369,
0.034190334379673004,
-0.020690005272626877,
0.0008034397615119815,
0.022864801809191704,
-0.005617318209260702,
0.016448847949504852,
0.03465967997908592,
0.005849572829902172,
-0.01759987883269787,
-0.009593681432306767,
0.027388785034418106,
-0.005355224944651127,
0.044266000390052795,
0.0008741714409552515,
-0.003098101355135441,
0.049088943749666214,
0.00973526481539011,
0.002147810999304056,
-0.00865739956498146,
-0.04942978173494339,
0.05519449710845947,
-0.011713647283613682,
0.014787102118134499,
-0.019345946609973907,
-0.033232204616069794,
-0.00013259817205835134,
-0.00605950690805912,
0.01789608597755432,
-0.05804166570305824,
-0.034283265471458435,
0.00021720875520259142,
0.029885517433285713,
-0.008594661019742489,
-0.02951328083872795,
0.010457837954163551,
-0.017213882878422737,
-0.008946152403950691,
-0.027470311149954796,
-0.016610577702522278,
-0.03582688048481941,
-0.02787667326629162,
-0.012047960422933102,
-0.07593635469675064,
0.03607258200645447,
-0.014582457020878792,
0.022419802844524384,
0.001327619538642466,
0.0008354062447324395,
-0.02840445749461651,
-0.005091438069939613,
0.05146113783121109,
0.02853478491306305,
-0.00816339161247015,
0.046391814947128296,
-0.022030869498848915,
0.02541089802980423,
0.03202540799975395,
-0.0032174652442336082,
0.02532011829316616,
0.055653948336839676,
0.017518717795610428,
0.01797938346862793,
-0.05887629836797714,
0.044277675449848175,
-0.004721848294138908,
0.009436408057808876,
-0.023493506014347076,
-0.005070185754448175,
-0.029264898970723152,
-0.06079830229282379,
-0.0018050430808216333,
0.00910593569278717,
0.04084433242678642,
0.004821272566914558,
0.011823502369225025,
-0.01763041876256466,
0.0077680377289652824,
-0.0038942452520132065,
-0.012888760305941105,
-0.00429850397631526,
0.02269441820681095,
-0.00663677416741848,
-0.011326148174703121,
0.03368028998374939,
-0.010686957277357578,
-0.08166351169347763,
-0.019572488963603973,
-0.022811993956565857,
0.01035879086703062,
0.024075105786323547,
-0.015173583291471004,
0.05404622107744217,
-0.00427404185757041,
-0.054699111729860306,
-0.00003997162275481969,
0.0188684593886137,
0.023365331813693047,
-0.00400902284309268,
-0.05077904090285301,
-0.014853185974061489,
0.043989621102809906,
-0.01593603566288948,
0.03982667252421379,
0.029112040996551514,
-0.03636074811220169,
-0.013020756654441357,
-0.01193615049123764,
0.04613637551665306,
0.03787405416369438,
-0.013240760192275047,
-0.05119890719652176,
-0.035976894199848175,
0.03200160339474678,
-0.0031138670165091753,
0.02062651887536049,
0.04391131177544594,
-0.007847564294934273,
-0.0347042977809906,
-0.035396307706832886,
-0.0022509985137730837,
-0.036314599215984344,
0.047242339700460434,
0.04196608066558838,
-0.030485045164823532,
0.04011085629463196,
-0.027280699461698532,
0.04857725277543068,
0.006786670535802841,
-0.004258408211171627,
0.010404814034700394,
-0.007446041330695152,
0.01593157835304737,
0.002567132469266653,
0.001862941193394363,
0.008734139613807201,
-0.003624582663178444,
-0.022581322118639946,
0.026228368282318115,
-0.01779673807322979,
0.02162785455584526,
0.026317903771996498,
-0.0007893245201557875,
0.014601971954107285,
0.00042961773579008877,
0.013826190494000912,
-0.03850590065121651,
-0.0020394970197230577,
-0.03823672980070114,
-0.01889902912080288,
-0.027529852464795113,
0.019808059558272362,
-0.05243570730090141,
0.014974351972341537,
0.04780081659555435,
-0.006118124816566706,
-0.02869734913110733,
0.008255604654550552,
0.035954996943473816,
-0.004298425279557705,
-0.022208768874406815,
0.007563487626612186,
0.008427097462117672,
0.006046983879059553,
0.01809563860297203,
-0.03919121250510216,
-0.03793102502822876,
0.0025384968612343073,
-0.03241748735308647,
0.04564887285232544,
0.011849085800349712,
0.0045991213992238045,
-0.0021634409204125404,
0.006333557423204184,
0.0029581463895738125,
-0.06579337269067764,
0.029766950756311417,
-0.0018360137473791838,
-0.014281176961958408,
-0.019827745854854584,
0.021206796169281006,
-0.03935084864497185,
-0.013164003379642963,
-0.027940334752202034,
0.028174959123134613,
0.01614544540643692,
-0.033073004335165024,
0.016506215557456017,
0.02586251124739647,
0.004420442506670952,
-0.04076891764998436,
0.01246795617043972,
0.024322526529431343,
-0.0456080436706543,
-0.01910792477428913,
0.0574665367603302,
0.019975971430540085,
-0.014343838207423687,
-0.03240064159035683,
-0.00017941687838174403,
-0.0008759167976677418,
-0.04812799394130707,
0.035201363265514374,
-0.0020883320830762386,
0.0190899595618248,
-0.002091313013806939,
0.014192105270922184,
0.04697189852595329,
-0.00019364242325536907,
0.019389919936656952,
-0.0018398191314190626,
0.03221236169338226,
0.022597141563892365,
-0.032144222408533096,
0.013604768551886082,
0.011430442333221436,
0.03743660822510719,
-0.015925733372569084,
-0.021436018869280815,
-0.005918271839618683,
-0.029792463406920433,
-0.01138848252594471,
-0.018358103930950165,
-0.03785477951169014,
-0.0020361533388495445,
-0.0018627040553838015,
0.03447530418634415,
-0.07301206886768341,
0.0336308628320694,
0.023652372881770134,
0.0032818487379699945,
0.025928935036063194,
-0.005893652327358723,
0.0211874358355999,
-0.016808202490210533,
0.03874802216887474,
0.008483433164656162,
0.0050510745495557785,
0.029582463204860687,
-0.004251490812748671,
-0.03639340028166771,
0.06222796067595482,
-0.0845537930727005,
-0.01115498784929514,
-0.0023535850923508406,
0.050435882061719894,
-0.040249936282634735,
0.014598269946873188,
-0.008840181864798069,
-0.017293957993388176,
0.00890746247023344,
-0.008590825833380222,
0.013460495509207249,
-0.021317582577466965,
0.03461386635899544,
0.012907481752336025,
-0.021230971440672874,
0.003117712214589119,
-0.03242149576544762,
0.008960399776697159,
0.04638934135437012,
0.026353785768151283,
-0.0018561168108135462,
-0.019046898931264877,
-0.06453729420900345,
-0.0018061245791614056,
0.05081230029463768,
-0.022504087537527084,
-0.039486732333898544,
-0.022885479032993317,
0.0035980665124952793,
0.001695311744697392,
-0.033939801156520844,
0.02915065735578537,
0.004521045833826065,
-0.014956844970583916,
0.012990693561732769,
0.02973400242626667,
-0.03542447090148926,
0.004637513775378466,
0.015995647758245468,
-0.031173931434750557,
-0.0106336809694767,
0.03239431604743004,
-0.03443152457475662,
0.018793310970067978,
-0.005358122289180756
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | for few-shot predictions. Below is a few-shot example for generating tweets for keywords. Inference-time after the first request: 15-45s python from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B") end_sequence="###" temperature=4 max_generated_token_length=25 prompt= """key: markets tweet: Take feedback from nature and markets, not from people. | [
0.09571023285388947,
-0.02570442296564579,
0.08038472384214401,
-0.028464842587709427,
0.034721024334430695,
0.06743232160806656,
0.07051358371973038,
0.06567910313606262,
0.032345712184906006,
0.011669781059026718,
-0.06800269335508347,
-0.013520263135433197,
0.030360549688339233,
0.05792834609746933,
-0.033100418746471405,
0.003958552144467831,
0.003740159794688225,
-0.007683556526899338,
-0.02480424754321575,
-0.00433898251503706,
-0.01876641996204853,
-0.01878819242119789,
0.061552319675683975,
-0.006783584598451853,
0.04783553630113602,
-0.05674063041806221,
0.0034486004151403904,
0.020542915910482407,
-0.07783587276935577,
0.05340111255645752,
-0.1243106871843338,
0.028869230300188065,
0.001211343565955758,
0.009995176456868649,
0.016195377334952354,
-0.020808519795536995,
-0.10392425954341888,
0.07443955540657043,
0.07804764807224274,
0.013159545138478279,
-0.018967989832162857,
-0.010262339375913143,
-0.016609158366918564,
-0.005634614732116461,
-0.0007765801856294274,
-0.0073014856316149235,
-0.20934784412384033,
0.061146900057792664,
-0.009562410414218903,
-0.07439066469669342,
-0.039557043462991714,
0.06738622486591339,
-0.006046701222658157,
-0.005818662233650684,
0.04218471050262451,
0.038546014577150345,
-0.014625955373048782,
-0.1318485140800476,
0.010846935212612152,
0.041108809411525726,
0.024980109184980392,
-0.01737840473651886,
0.014489247463643551,
0.0183465164154768,
0.06802009046077728,
-0.04608406871557236,
-0.03133592754602432,
0.05781378969550133,
-0.04075086489319801,
0.015183493494987488,
0.01024645660072565,
-0.03612520918250084,
-0.029833383858203888,
0.024354416877031326,
0.01539284735918045,
-0.019292589277029037,
0.02942819520831108,
0.04356923699378967,
0.012686586938798428,
0.07991654425859451,
-0.009837719611823559,
-0.03325098380446434,
0.036167845129966736,
-0.01563420705497265,
0.03428216651082039,
0.03854670375585556,
0.02673156186938286,
-0.01333335880190134,
-0.05133877694606781,
-0.02972313202917576,
-0.04795747995376587,
-0.15307441353797913,
0.0010608313605189323,
-0.031957272440195084,
-0.043888743966817856,
0.02628682181239128,
0.027567075565457344,
0.018305424600839615,
-0.04287906736135483,
-0.04792637750506401,
-0.024946585297584534,
-0.08507531881332397,
-0.02163158543407917,
-0.0490267314016819,
-0.045385148376226425,
0.05376507714390755,
-0.02719556726515293,
-0.02328142337501049,
-0.018434133380651474,
0.020372299477458,
-0.006016134284436703,
-0.007212694268673658,
0.02392479218542576,
0.07192234694957733,
-0.07446812093257904,
0.03936692327260971,
0.02083718217909336,
-0.004304947331547737,
-0.07504431903362274,
-0.025583645328879356,
-0.002810209523886442,
0.02804957516491413,
0.06903406977653503,
-0.03348638489842415,
-0.024625062942504883,
0.03423161804676056,
0.02840815857052803,
0.03985244408249855,
0.011017419397830963,
-0.011258733458817005,
0.03304233029484749,
0.010451922193169594,
0.03763848915696144,
-0.01938210055232048,
-0.029382776468992233,
-0.03731625899672508,
-0.015580245293676853,
-0.051097892224788666,
0.04952630773186684,
0.03072528913617134,
-0.011102122254669666,
0.042304981499910355,
0.014491871930658817,
0.01701980084180832,
0.0492752380669117,
0.02103067748248577,
-0.018827516585588455,
0.006078971084207296,
0.017247356474399567,
0.09018535166978836,
-0.08486820757389069,
0.07182787358760834,
-0.05572132393717766,
-0.003800088306888938,
0.014168094843626022,
0.03254418820142746,
-0.023311961442232132,
0.0036357417702674866,
-0.051126930862665176,
-0.04403262212872505,
0.000681340869050473,
0.04071249067783356,
0.019569989293813705,
-0.042061325162649155,
0.05175460875034332,
-0.024108005687594414,
0.021428434178233147,
0.033875077962875366,
0.05317949876189232,
-0.007257299032062292,
0.0711020976305008,
0.003653254359960556,
0.053995534777641296,
-0.0458410270512104,
0.06367265433073044,
0.062172092497348785,
0.020654339343309402,
0.01886778697371483,
0.06815839558839798,
0.008284944109618664,
-0.0145304249599576,
0.050397515296936035,
-0.03445827588438988,
0.04246831685304642,
0.06406520307064056,
-0.12559467554092407,
0.038765836507081985,
0.012629760429263115,
0.03247984126210213,
0.01321607455611229,
-0.02385706640779972,
-0.04893377050757408,
0.05276269465684891,
0.03152293711900711,
0.010728352703154087,
-0.08689103275537491,
0.00802900642156601,
0.06120014563202858,
0.03302730247378349,
0.06521797180175781,
-0.0028987762052565813,
0.026252856478095055,
0.054373014718294144,
-0.05895513296127319,
-0.07783785462379456,
0.05154937133193016,
-0.04653221741318703,
-0.027200648561120033,
-0.002678987802937627,
0.036272380501031876,
-0.02078292705118656,
-0.07743597030639648,
-0.0023661148734390736,
-0.12682212889194489,
0.015022045001387596,
-0.003189928364008665,
0.03852471336722374,
0.03651437908411026,
-0.012103077955543995,
0.016982607543468475,
0.1545526385307312,
0.011372502893209457,
0.023409279063344002,
-0.0267378780990839,
0.011173127219080925,
-0.001458388171158731,
0.0556977279484272,
-0.0009400692069903016,
0.0766826942563057,
-0.09352684020996094,
-0.03629090636968613,
-0.047312770038843155,
0.00030574254924431443,
0.000511920836288482,
-0.05341494083404541,
-0.022736383602023125,
0.0022661054972559214,
-0.01056679617613554,
0.009672506712377071,
-0.08651784062385559,
0.03234463930130005,
0.03679283708333969,
-0.04660870507359505,
0.05409904569387436,
-0.013714293949306011,
-0.04735005646944046,
0.13316023349761963,
0.0010444663930684328,
-0.030642105266451836,
-0.013361978344619274,
-0.03640131279826164,
0.046468585729599,
0.05000503733754158,
-0.062206558883190155,
0.0374692901968956,
0.04351005703210831,
0.0008853474864736199,
-0.004134793765842915,
-0.009439307264983654,
0.03346915915608406,
0.0026042310055345297,
-0.015810398384928703,
0.001932054408825934,
-0.015457533299922943,
-0.026723725721240044,
-0.01976618729531765,
-0.029945168644189835,
-0.009635687805712223,
-0.011952247470617294,
-0.008311855606734753,
0.01613428443670273,
-0.04788761958479881,
0.0014844097895547748,
0.03903128579258919,
-0.019703848287463188,
0.005921461153775454,
0.055628471076488495,
0.03700903803110123,
0.01370980404317379,
-0.0129574378952384,
0.011877324432134628,
-0.037546876817941666,
0.009433440864086151,
0.02294977195560932,
0.009287859313189983,
-0.007573579903692007,
0.005670593585819006,
-0.035618074238300323,
-0.02610740065574646,
-0.011752712540328503,
-0.0012782610720023513,
0.014473858289420605,
0.04170660674571991,
0.016980130225419998,
0.005552301649004221,
0.04104692488908768,
-0.033768218010663986,
0.02394556812942028,
-0.014987866394221783,
-0.005255075637251139,
-0.00720212934538722,
-0.01171104609966278,
-0.011376225389540195,
0.0005352508160285652,
-0.015192152932286263,
0.025580372661352158,
-0.020878123119473457,
0.009628166444599628,
-0.10078662633895874,
-0.028330281376838684,
0.03734102472662926,
-0.011319959536194801,
0.0024268263950943947,
-0.013375194743275642,
0.04985569417476654,
-0.009100752882659435,
-0.00785977952182293,
0.014523259364068508,
0.034110937267541885,
0.0022642260883003473,
-0.024719607084989548,
-0.03413639962673187,
0.00390184810385108,
-0.022193608805537224,
-0.05111682787537575,
-0.024595996364951134,
0.03758830577135086,
0.019004134461283684,
-0.0065430402755737305,
0.025401102378964424,
-0.014741694554686546,
0.01396868471056223,
-0.0022783041931688786,
0.000993266119621694,
0.02120569907128811,
0.036303382366895676,
0.03824640437960625,
-0.01980149932205677,
0.021945778280496597,
-0.04085412994027138,
-0.03133643418550491,
0.01013138610869646,
-0.037093959748744965,
0.0022547843400388956,
-0.022362910211086273,
-0.011314942501485348,
0.017365140840411186,
0.02938363514840603,
-0.048520930111408234,
-0.03694748133420944,
-0.037632063031196594,
0.006404777988791466,
-0.009123370051383972,
0.00310102803632617,
0.010918593034148216,
-0.003444031346589327,
0.01991574838757515,
-0.06803424656391144,
-0.032513514161109924,
-0.013143147341907024,
-0.01643214374780655,
0.06139808148145676,
0.05405377224087715,
0.024061068892478943,
0.0005649900995194912,
0.04713999480009079,
0.044771868735551834,
-0.02473590336740017,
-0.040031030774116516,
0.008947381749749184,
0.025636862963438034,
-0.018034102395176888,
-0.04632874205708504,
0.03985806554555893,
-0.008863699622452259,
0.05517112836241722,
-0.015055755153298378,
0.023592334240674973,
-0.018778657540678978,
0.01680336706340313,
0.014864916913211346,
0.012834805995225906,
-0.00219134078361094,
0.030878812074661255,
-0.028055720031261444,
0.004651774652302265,
0.0888354703783989,
0.053081441670656204,
0.0008354494930244982,
-0.007650918792933226,
-0.028470752760767937,
0.0016028585378080606,
0.01694842055439949,
-0.014537316747009754,
0.006048831157386303,
-0.06407354027032852,
0.015445929020643234,
0.03351740539073944,
-0.01945267990231514,
-0.003382996888831258,
0.031198952347040176,
-0.007673120591789484,
-0.026888255029916763,
0.023277657106518745,
0.013767941854894161,
0.0031364350579679012,
0.00565556762740016,
0.006408268120139837,
0.03350511193275452,
-0.052960850298404694,
-0.006693016737699509,
-0.003952038008719683,
-0.021578988060355186,
-0.01702393777668476,
-0.03796202316880226,
0.003944458439946175,
0.0065072281286120415,
-0.0016034910222515464,
-0.001961558824405074,
0.024999044835567474,
0.016849318519234657,
-0.02624034509062767,
-0.012184412218630314,
0.06355632841587067,
0.0353274792432785,
-0.011923848651349545,
0.003983097150921822,
0.02897469326853752,
-0.06366429477930069,
0.008257539011538029,
-0.006815621629357338,
-0.0012504402548074722,
0.01845371723175049,
-0.006964643951505423,
0.031768281012773514,
0.01628069579601288,
-0.014066757634282112,
0.003297285409644246,
0.0013770968653261662,
0.0073250369168818,
-0.007769301999360323,
-0.02297746017575264,
-0.0035021076910197735,
0.01315478328615427,
-0.00377719197422266,
-0.04718106612563133,
0.014937866479158401,
-0.02564261294901371,
-0.04815508797764778,
-0.010184507817029953,
0.0009240981307812035,
-0.04002249240875244,
-0.00038888573180884123,
0.02151704579591751,
-0.025057267397642136,
-0.02377067133784294,
-0.01264050044119358,
0.006857739295810461,
0.025671886280179024,
0.01474588830024004,
-0.04115121439099312,
-0.013337111100554466,
0.030513282865285873,
-0.033492982387542725,
0.003091980004683137,
0.0009456591214984655,
-0.019354773685336113,
0.047254230827093124,
0.025639057159423828,
0.006347320042550564,
-0.019420064985752106,
-0.010614342987537384,
-0.0055578784085810184,
-0.006538551766425371,
-0.04160541296005249,
-0.046221811324357986,
0.020903905853629112,
-0.005457343067973852,
-0.004222356714308262,
-0.0004810190584976226,
-0.002213966567069292,
-0.027970589697360992,
0.003605043049901724,
0.020566167309880257,
-0.00717505719512701,
0.0047082919627428055,
-0.0348072275519371,
0.0334603488445282,
-0.0050737312994897366,
-0.014031517319381237,
0.01539571676403284,
0.029778027907013893,
0.008418030105531216,
0.035685066133737564,
0.041648756712675095,
0.030184220522642136,
0.05061260238289833,
0.08217107504606247,
-0.010903570801019669,
-0.018276212736964226,
-0.029385659843683243,
-0.05564134567975998,
0.014557570219039917,
-0.01764572598040104,
-0.015392848290503025,
0.03215539827942848,
-0.060305677354335785,
-0.002557760337367654,
0.030074477195739746,
0.019637858495116234,
-0.009796779602766037,
-0.011985011398792267,
0.05453930050134659,
0.014749986119568348,
-0.0058471946977078915,
-0.023768506944179535,
0.007574114948511124,
-0.06342064589262009,
-0.015144860371947289,
-0.039626285433769226,
0.007949796505272388,
0.005215712357312441,
-0.011408683843910694,
-0.009203935973346233,
-0.018584080040454865,
0.039549656212329865,
0.033350955694913864,
0.0877751037478447,
-0.011393263004720211,
-0.016504773870110512,
-0.018404902890324593,
0.003745565190911293,
0.07020007073879242,
0.01529842708259821,
-0.007700013462454081,
0.03258613497018814,
-0.016019467264413834,
0.03881467133760452,
0.025664955377578735,
-0.038191936910152435,
0.012256791815161705,
0.05880528315901756,
0.013899442739784718,
-0.0022651811596006155,
-0.05476969853043556,
0.03312278166413307,
0.032844677567481995,
-0.003416314022615552,
-0.03281499072909355,
-0.017956726253032684,
-0.021230394020676613,
-0.04460011050105095,
-0.037247613072395325,
0.035561200231313705,
0.015352429822087288,
-0.04723464697599411,
-0.01832536980509758,
-0.004878656938672066,
0.002544587478041649,
0.011042206548154354,
-0.033864133059978485,
0.004981196019798517,
0.014266680926084518,
0.035202912986278534,
0.040205568075180054,
0.015042120590806007,
0.031223924830555916,
0.00033576524583622813,
0.02748522348701954,
-0.026710547506809235,
0.020765027031302452,
0.044719845056533813,
-0.01763066090643406,
0.02716459520161152,
0.005379438400268555,
-0.025295253843069077,
0.01435097772628069,
0.013712259009480476,
0.004657092969864607,
0.0036341333761811256,
-0.01968860812485218,
-0.0019925490487366915,
0.02672688663005829,
-0.0017292879056185484,
-0.021829714998602867,
0.04297417029738426,
-0.03996933996677399,
0.03233286738395691,
0.01295864675194025,
0.058644648641347885,
0.03120531514286995,
0.005849464330822229,
-0.03387739136815071,
-0.011036182753741741,
0.04206422343850136,
0.04079066589474678,
0.030549220740795135,
-0.02465917356312275,
0.010506326332688332,
-0.013472498394548893,
-0.05634712427854538,
-0.0056245638988912106,
-0.032407984137535095,
0.00834839791059494,
0.04501909762620926,
0.007073760032653809,
0.0437336303293705,
-0.019502881914377213,
0.05228576809167862,
0.02075907774269581,
0.043326981365680695,
-0.02725249156355858,
0.04166002199053764,
0.05030986666679382,
-0.004616933409124613,
-0.005479088053107262,
0.04640108719468117,
-0.022059615701436996,
-0.02861621603369713,
0.02991289459168911,
0.014789752662181854,
0.0028701964765787125,
-0.0029727292712777853,
0.015572144649922848,
-0.004001008812338114,
-0.023785419762134552,
0.009001962840557098,
0.00017060652317013592,
0.018838919699192047,
-0.02141669951379299,
-0.022101303562521935,
-0.02107192948460579,
-0.04779656231403351,
-0.0021466058678925037,
-0.00557906785979867,
-0.010765020735561848,
-0.014880143105983734,
-0.025991864502429962,
-0.011814034543931484,
0.022956063970923424,
0.021705027669668198,
-0.05440450832247734,
0.01301161851733923,
-0.016936372965574265,
0.005514303222298622,
0.02025275118649006,
-0.044928278774023056,
-0.007237479090690613,
-0.018376357853412628,
-0.009332380257546902,
-0.035591255873441696,
0.0005543362931348383,
-0.01887768693268299,
-0.029022464528679848,
0.002175659406930208,
0.012867621146142483,
-0.0292679276317358,
0.031145473942160606,
0.0074647581204771996,
0.04005850479006767,
-0.038858216255903244,
-0.011296950280666351,
-0.001281954813748598,
-0.03770279139280319,
0.026543887332081795,
-0.012097284197807312,
-0.029045825824141502,
-0.008096522651612759,
0.02433338388800621,
0.013239161111414433,
0.016922274604439735,
-0.018603041768074036,
-0.005210943054407835,
0.04201491177082062,
-0.017118044197559357,
-0.02264842391014099,
0.021143175661563873,
0.01406423095613718,
-0.006630116142332554,
0.020663132891058922,
-0.04576031491160393,
-0.018185961991548538,
-0.02977585978806019,
-0.01033597532659769,
0.048755545169115067,
0.021695377305150032,
-0.025636358186602592,
-0.0002675963914953172,
-0.015170724131166935,
0.012639258988201618,
0.032435342669487,
0.0397542379796505,
-0.013275413773953915,
0.026082560420036316,
-0.010945762507617474,
0.002801068825647235,
-0.04803543910384178,
0.0289786197245121,
-0.045241136103868484,
-0.030024981126189232,
-0.05974704027175903,
0.021171018481254578,
-0.014522649347782135,
-0.0009144518990069628,
-0.04838467016816139,
0.00040188213461078703,
-0.04752292484045029,
-0.00245458772405982,
-0.006122535094618797,
-0.020776212215423584,
0.03346509486436844,
-0.012140356004238129,
0.07842180132865906,
0.010061490349471569,
-0.005400486756116152,
-0.04580487683415413,
0.021695656701922417,
0.0010244157165288925,
0.011591202579438686,
0.040381334722042084,
-0.03608684986829758,
-0.03364207595586777,
0.04336996003985405,
-0.06368251889944077,
-0.04189649596810341,
0.008190847001969814,
0.026566289365291595,
-0.05036621168255806,
-0.022467920556664467,
0.03213510289788246,
0.02974748983979225,
0.011936783790588379,
0.05366753786802292,
0.00916548352688551,
0.005400683730840683,
-0.0034315113443881273,
0.03839031979441643,
-0.057111289352178574,
-0.02043408341705799,
0.0046866219490766525,
-0.03709633648395538,
0.005763859022408724,
0.02569918893277645,
0.03236476704478264,
-0.006513523403555155,
0.015504097566008568,
0.028347374871373177,
0.017673656344413757,
-0.036255933344364166,
-0.03509596362709999,
0.02586565725505352,
0.043214231729507446,
-0.047054775059223175,
-0.0019949693232774734,
0.0579226016998291,
0.013520359061658382,
-0.04572056233882904,
0.0040051499381661415,
0.0009166664094664156,
0.01114641036838293,
-0.005975679028779268,
0.04317387193441391,
-0.025918399915099144,
0.0331026054918766,
0.0662238672375679,
-0.029113616794347763,
-0.039603207260370255,
0.011072978377342224
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Save GPT-J using torch.save To create our torch.load() compatible model file we load GPT-J using Transformers and the from_pretrained method, and then save it with torch.save(). python from transformers import AutoTokenizer,GPTJForCausalLM import torch # load fp 16 model model = GPTJForCausalLM.from_pretrained("EleutherAI/gpt-j-6B", revision="float16", torch_dtype=torch.float16) # save model with torch.save torch.save(model, "gptj.pt") Now we are able to load our GPT-J model with torch.load() to run predictions. python from transformers import pipeline import torch # load model model = torch.load("gptj.pt") # load tokenizer tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B") # create pipeline gen = pipeline("text-generation",model=model,tokenizer=tokenizer,device=0) # run prediction gen("My Name is philipp") #[{'generated_text': 'My Name is philipp k. and I live just outside of Detroit.... --- | [
-0.045519888401031494,
0.003968775272369385,
-0.006828331854194403,
-0.020963488146662712,
0.019950272515416145,
0.03896406292915344,
0.055270493030548096,
-0.006724337115883827,
0.003714911872521043,
-0.00979120284318924,
-0.0704934224486351,
0.06734327226877213,
0.025223733857274055,
0.04980506747961044,
-0.04520876333117485,
-0.03885827586054802,
0.033201903104782104,
-0.009898776188492775,
-0.03411000594496727,
0.023008255288004875,
0.019284941256046295,
-0.07178506255149841,
-0.008976979181170464,
-0.018003473058342934,
0.021697642281651497,
-0.09202824532985687,
-0.030118171125650406,
0.02329871617257595,
-0.006372134201228619,
0.008753843605518341,
-0.06894373148679733,
-0.0035030911676585674,
-0.005670860875397921,
-0.014473614282906055,
0.00501890666782856,
0.05559387803077698,
-0.07558143138885498,
0.025005336850881577,
0.07197769731283188,
-0.02873106300830841,
-0.022705191746354103,
0.043729256838560104,
-0.021116305142641068,
0.051258385181427,
0.05340250954031944,
-0.03174787387251854,
-0.13825927674770355,
0.07081981748342514,
-0.029154596850275993,
-0.06304076313972473,
-0.07176604866981506,
0.029631923884153366,
-0.026509765535593033,
-0.007143198512494564,
-0.07711885124444962,
0.08189424872398376,
0.014029694721102715,
-0.021576976403594017,
0.022989196702837944,
0.035908158868551254,
0.05203234776854515,
0.05703257396817207,
0.016347797587513924,
0.055536381900310516,
0.06497414410114288,
-0.07218553870916367,
-0.00937850121408701,
0.007776765618473291,
-0.08008144795894623,
-0.061752915382385254,
-0.03425845503807068,
-0.01929083652794361,
0.015819676220417023,
-0.08824513852596283,
-0.06319775432348251,
-0.018315879628062248,
0.029830913990736008,
-0.0005356986657716334,
0.04512488842010498,
0.08768150955438614,
0.0013720309361815453,
0.02923882007598877,
-0.014705534093081951,
0.05086353421211243,
0.05589892715215683,
0.0022060798946768045,
0.011566940695047379,
-0.08727660775184631,
0.02277153916656971,
0.005029133055359125,
-0.05299012362957001,
-0.10623788088560104,
-0.042403750121593475,
0.0003101266047451645,
0.07565639913082123,
0.05311734974384308,
-0.054364774376153946,
-0.015894904732704163,
0.007247245404869318,
0.02139107882976532,
0.03304019570350647,
-0.050686899572610855,
-0.0496671199798584,
-0.01210547611117363,
-0.06174013018608093,
0.03205851465463638,
-0.05671218782663345,
-0.06901776790618896,
0.0412176214158535,
0.02627347782254219,
0.012543604709208012,
-0.024642104282975197,
-0.04319499805569649,
0.044529180973768234,
-0.0539989098906517,
0.0022273261565715075,
0.042546484619379044,
-0.042687442153692245,
-0.018196137621998787,
0.0371578224003315,
-0.02215813845396042,
0.04385242238640785,
0.03571881353855133,
-0.016283048316836357,
-0.02093590795993805,
0.1065586507320404,
0.0445101261138916,
0.013500123284757137,
0.03523348271846771,
0.03364229574799538,
0.07145408540964127,
-0.02140311896800995,
0.06996805220842361,
-0.011452902108430862,
0.014503221027553082,
-0.020601261407136917,
-0.001270257867872715,
-0.006628223229199648,
0.022317808121442795,
0.013129000551998615,
-0.053585827350616455,
0.0673956349492073,
-0.014999091625213623,
0.03401188924908638,
0.03304055705666542,
-0.0042284270748496056,
-0.02359955757856369,
0.13786181807518005,
-0.010968998074531555,
0.046178534626960754,
-0.0926172211766243,
0.061905376613140106,
0.004640126135200262,
-0.01942937634885311,
-0.013527683913707733,
0.028737269341945648,
-0.04175836965441704,
0.06413963437080383,
-0.06298227608203888,
-0.057643529027700424,
-0.0028494212310761213,
-0.0175208430737257,
0.013864591717720032,
-0.02366829104721546,
-0.011795095168054104,
-0.019629530608654022,
0.03076755255460739,
-0.01167724747210741,
0.08248274028301239,
-0.023328512907028198,
0.04873242601752281,
-0.035265833139419556,
0.07841254770755768,
0.01514239888638258,
0.02915961481630802,
0.033576782792806625,
0.039302971214056015,
0.033692866563797,
0.009471539407968521,
-0.04640737920999527,
-0.05057941749691963,
0.0319279320538044,
0.0005514256190508604,
0.04309801012277603,
0.0568295381963253,
-0.0867655873298645,
-0.05832437425851822,
-0.08116795122623444,
-0.02323041297495365,
0.058116741478443146,
0.01273514423519373,
-0.03907964006066322,
0.050873056054115295,
-0.05705748498439789,
0.060141582041978836,
-0.06613902747631073,
-0.014270911924540997,
0.07953138649463654,
0.03030911460518837,
0.03455235809087753,
0.004132078494876623,
-0.03793950006365776,
-0.03672963008284569,
-0.03442343324422836,
0.0003199897182639688,
0.0015770139871165156,
0.008760178461670876,
-0.006237481255084276,
0.016004381701350212,
0.002697671065106988,
0.03913538530468941,
-0.033976856619119644,
0.0516870953142643,
-0.1280028074979782,
-0.020763494074344635,
-0.043668393045663834,
-0.006197439040988684,
0.021556055173277855,
0.04072131589055061,
0.015987660735845566,
0.18694216012954712,
-0.0011808398412540555,
0.06247122213244438,
-0.06469115614891052,
-0.02397024631500244,
0.11986170709133148,
0.01787268929183483,
0.05681287869811058,
0.02739253081381321,
-0.08812369406223297,
-0.023043164983391762,
-0.11244552582502365,
-0.008254817686975002,
0.047708965837955475,
0.0056718019768595695,
-0.0001740134321153164,
0.002363432664424181,
0.03332749381661415,
0.005322212353348732,
-0.003969860728830099,
-0.0105197224766016,
0.0015359269455075264,
-0.017687538638710976,
0.028514442965388298,
0.05090709030628204,
0.045270808041095734,
0.075454480946064,
-0.0022380303125828505,
0.019251348450779915,
-0.04293665662407875,
-0.04503531754016876,
0.019416876137256622,
-0.003206647001206875,
-0.036002159118652344,
0.04718933627009392,
0.04136722534894943,
0.024518469348549843,
-0.033190254122018814,
-0.017499757930636406,
0.07850988954305649,
-0.015048788860440254,
-0.020019903779029846,
-0.03280659019947052,
-0.014213945716619492,
-0.014772926457226276,
-0.009562216699123383,
0.006790077779442072,
0.01114620640873909,
0.015641169622540474,
-0.0339205302298069,
0.00508505292236805,
-0.013596520759165287,
0.008041450753808022,
0.023433014750480652,
-0.013122730888426304,
0.08854131400585175,
0.01288012508302927,
-0.02770327217876911,
-0.03579141944646835,
0.016933875158429146,
0.010628108866512775,
-0.0447063222527504,
-0.01666482351720333,
0.031139792874455452,
-0.026318928226828575,
0.0218435637652874,
0.012138934805989265,
-0.04812770336866379,
-0.010934911668300629,
0.018948258832097054,
-0.02147599309682846,
0.02232825569808483,
0.02395772747695446,
-0.020427200943231583,
-0.04089398682117462,
0.04127127304673195,
-0.02788648195564747,
-0.01724533550441265,
0.02283395268023014,
0.031241687014698982,
-0.020514076575636864,
0.026174692437052727,
0.009378072805702686,
-0.007988299243152142,
-0.026212695986032486,
0.03609451279044151,
0.026380784809589386,
-0.0037273657508194447,
-0.0794469490647316,
-0.01749548316001892,
0.0053787813521921635,
0.007185065187513828,
0.014741774648427963,
-0.006376856938004494,
0.030899282544851303,
0.028204580768942833,
0.005691403988748789,
0.013626578263938427,
0.004978415090590715,
-0.006065305322408676,
-0.00368725648149848,
0.06283281743526459,
0.012703679502010345,
-0.003933677915483713,
-0.009128773584961891,
0.013481343165040016,
0.0054282015189528465,
0.002355059841647744,
-0.010399865917861462,
0.005529620219022036,
-0.019969673827290535,
0.008180447854101658,
-0.009556076489388943,
-0.003998999949544668,
0.03460215777158737,
0.013729726895689964,
-0.025441240519285202,
-0.016496066004037857,
-0.03504112735390663,
-0.04267358034849167,
-0.013459705747663975,
0.027705110609531403,
-0.029291512444615364,
-0.022373786196112633,
0.014936921186745167,
0.021958637982606888,
0.026832830160856247,
-0.012309417128562927,
-0.022599199786782265,
-0.025009430944919586,
-0.020105617120862007,
-0.042850516736507416,
0.005146073643118143,
-0.00653252424672246,
-0.011522536166012287,
0.01464118156582117,
0.008880170062184334,
-0.030441831797361374,
-0.007556905969977379,
-0.018034689128398895,
-0.012106010690331459,
0.014355598017573357,
0.017399093136191368,
-0.0084743807092309,
0.008948789909482002,
0.04128829389810562,
0.026476072147488594,
0.005344761069864035,
-0.06991250813007355,
-0.025078926235437393,
-0.001142409280873835,
-0.06518249958753586,
-0.05744132399559021,
0.04623973369598389,
0.018763011321425438,
-0.02309226803481579,
-0.012779759243130684,
0.05620896443724632,
-0.060177993029356,
0.010453543625772,
-0.001658215536735952,
0.009291892871260643,
-0.04591100290417671,
0.039653480052948,
-0.031173044815659523,
-0.012529581785202026,
0.03102591633796692,
0.03149167448282242,
-0.026194356381893158,
-0.038798753172159195,
-0.03425062820315361,
-0.05042177066206932,
-0.00861266627907753,
0.003229232272133231,
0.00039207874215207994,
-0.005637447349727154,
0.025939056649804115,
-0.0017188149504363537,
0.02954084426164627,
0.014977633021771908,
0.030038131400942802,
0.005174706224352121,
-0.028254032135009766,
-0.01661507599055767,
0.01108383759856224,
0.019405772909522057,
0.016958341002464294,
0.003094731131568551,
-0.03028366155922413,
-0.06662612408399582,
0.023885348811745644,
0.01586591824889183,
0.0042699831537902355,
0.0004976145573891699,
-0.047703955322504044,
-0.008844885975122452,
0.0073260231874883175,
0.025865163654088974,
-0.0012327294098213315,
-0.006856338120996952,
0.024105092510581017,
-0.013243748806416988,
0.02149236761033535,
0.02759154886007309,
0.024856802076101303,
-0.020903270691633224,
0.0360104963183403,
0.03285001963376999,
-0.03717127814888954,
0.042460158467292786,
-0.012365397997200489,
-0.021998358890414238,
0.0027914014644920826,
0.013519237749278545,
0.03425934538245201,
0.004623031243681908,
0.013819664716720581,
-0.002702172379940748,
-0.04790876805782318,
0.011941883713006973,
0.007360917050391436,
0.02537306770682335,
-0.006043038330972195,
0.006087902933359146,
-0.02055424451828003,
-0.012889057397842407,
0.009248223155736923,
-0.006736081559211016,
-0.03156106919050217,
-0.015810217708349228,
0.024602612480521202,
-0.0587613470852375,
0.018569035455584526,
0.007091841194778681,
-0.04685243219137192,
0.052928417921066284,
-0.02729620784521103,
0.004669740796089172,
0.061788469552993774,
0.021960973739624023,
-0.04362495616078377,
-0.03425542637705803,
0.015268645249307156,
0.01723336987197399,
-0.026554375886917114,
0.009032582864165306,
0.007518398575484753,
0.04816178232431412,
0.002941477345302701,
0.0018556859577074647,
-0.012796093709766865,
0.03730347380042076,
0.04419821873307228,
0.011565592139959335,
0.008749901317059994,
-0.08216450363397598,
-0.009827489964663982,
0.0117045221850276,
0.016920777037739754,
0.014778422191739082,
0.015972301363945007,
-0.02466493286192417,
0.029817989096045494,
0.06894871592521667,
0.016759244725108147,
0.03965598717331886,
-0.051725320518016815,
0.011655890382826328,
0.02444334514439106,
-0.01890769973397255,
-0.004293987061828375,
-0.011192362755537033,
-0.034332629293203354,
-0.0024270866997539997,
0.024879267439246178,
0.02710607647895813,
0.006660178769379854,
0.002777614863589406,
-0.019138406962156296,
-0.03176776319742203,
0.04058636724948883,
-0.04747699573636055,
0.0020358741749078035,
0.013765491545200348,
-0.03135063871741295,
0.039093952625989914,
0.016481341794133186,
-0.013200189918279648,
0.0417574942111969,
0.03355567157268524,
-0.017125843092799187,
-0.007900204509496689,
0.0051765479147434235,
-0.0021248108241707087,
-0.00005087140743853524,
-0.025586940348148346,
0.03610857203602791,
-0.01454140618443489,
0.005880110897123814,
0.009535694494843483,
0.02569790557026863,
-0.01404637098312378,
0.02289433404803276,
0.0032044940162450075,
-0.007069944404065609,
0.03719957917928696,
0.012632623314857483,
0.05626149848103523,
-0.015010499395430088,
-0.030229957774281502,
-0.00831871572881937,
0.012597010470926762,
0.0640920102596283,
-0.0020505848806351423,
0.010548599064350128,
0.02259283885359764,
0.013459384441375732,
-0.00789082795381546,
0.03787558153271675,
-0.030968671664595604,
-0.01714450679719448,
0.03340911492705345,
0.005965035874396563,
-0.04281824454665184,
-0.002967165084555745,
0.03845902159810066,
0.019071612507104874,
-0.02906975708901882,
-0.00199209270067513,
-0.026039836928248405,
-0.05311214551329613,
0.017857329919934273,
-0.05107560008764267,
-0.0003687319695018232,
0.03558942303061485,
-0.020225243642926216,
0.0004289163334760815,
-0.013102623634040356,
0.008444255217909813,
-0.014615457504987717,
-0.013321144506335258,
-0.0051864804700016975,
0.035378534346818924,
-0.007058951072394848,
0.01962684653699398,
0.0031002548057585955,
-0.031774211674928665,
0.04719734936952591,
0.04776107892394066,
-0.0427672453224659,
-0.059384435415267944,
0.0026482893154025078,
0.020696943625807762,
-0.018934745341539383,
-0.03228139877319336,
-0.05600143224000931,
0.01831316016614437,
0.003677439410239458,
0.01879068836569786,
0.027295993641018867,
-0.03704915940761566,
0.018250174820423126,
-0.012575104832649231,
-0.011580596677958965,
0.037328287959098816,
0.029563086107373238,
-0.0576319582760334,
0.09820448607206345,
0.0011650508968159556,
0.009861237369477749,
-0.009280910715460777,
0.017901793122291565,
-0.017922760918736458,
-0.009310990571975708,
0.0707119032740593,
0.0017992808716371655,
-0.003899067873135209,
0.06776288151741028,
0.012366767972707748,
-0.028616225346922874,
-0.011448699980974197,
-0.025878144428133965,
-0.041560374200344086,
0.01362637709826231,
0.014700230211019516,
0.010976549237966537,
-0.012738223187625408,
-0.007654241751879454,
0.04317168518900871,
0.06207839399576187,
0.03528880327939987,
-0.03694348782300949,
0.07558014243841171,
0.009631937369704247,
0.03132374584674835,
-0.0014796641189604998,
0.04080156609416008,
0.03762171044945717,
-0.019903315231204033,
0.01771368831396103,
-0.0012509797234088182,
0.002955025527626276,
0.0389566533267498,
-0.0012816046364605427,
0.02851896546781063,
0.0039899335242807865,
-0.01733223907649517,
-0.0019641611725091934,
0.025635821744799614,
0.02180015668272972,
-0.05847315490245819,
-0.006426892708986998,
-0.028218189254403114,
0.03206274285912514,
0.0022107199765741825,
-0.01287977583706379,
-0.03564023971557617,
-0.03331950679421425,
-0.009762418456375599,
0.006046238820999861,
0.03797481954097748,
-0.025642680004239082,
0.01121648121625185,
0.027981359511613846,
-0.00785677507519722,
0.05148041993379593,
-0.029361842200160027,
0.019242091104388237,
-0.037197522819042206,
0.025528989732265472,
-0.04022879898548126,
0.02911892533302307,
-0.006410049274563789,
0.0030803505796939135,
0.001306000747717917,
0.00431061303243041,
0.01136486604809761,
0.04247476905584335,
0.010147381573915482,
0.006714180111885071,
-0.009232684038579464,
0.0058980234898626804,
-0.022982129827141762,
-0.052754275500774384,
0.03458802402019501,
-0.010391364805400372,
-0.04410899803042412,
-0.0006581527995876968,
0.04476047307252884,
0.07778947800397873,
0.009698578156530857,
-0.0038481976371258497,
-0.04995597526431084,
-0.012456261552870274,
-0.0032079529482871294,
-0.05225473269820213,
0.016070609912276268,
-0.012617328204214573,
-0.01769920438528061,
0.018821030855178833,
-0.005018142517656088,
-0.008085387758910656,
0.018566161394119263,
-0.03844917193055153,
0.033539239317178726,
-0.011557060293853283,
0.018467197194695473,
0.005338488146662712,
0.08797289431095123,
-0.0021163320634514093,
-0.01967138983309269,
0.05000542476773262,
-0.0018926453776657581,
-0.028688620775938034,
-0.012775707058608532,
0.006919946987181902,
-0.06684070825576782,
0.0063461195677518845,
-0.010131075978279114,
-0.057545006275177,
-0.011859928257763386,
-0.003582363948225975,
-0.035875290632247925,
0.009845529682934284,
-0.05011243000626564,
0.0030952906236052513,
-0.013573464937508106,
0.0026888642460107803,
-0.015239935368299484,
-0.008179380558431149,
0.058235228061676025,
0.030235370621085167,
0.0037364016752690077,
0.030173564329743385,
-0.051866315305233,
0.0023839755449444056,
0.02834368869662285,
0.021041778847575188,
0.023781584575772285,
0.03052590601146221,
-0.03440437838435173,
-0.027523744851350784,
0.028335904702544212,
-0.0035309658851474524,
-0.028969721868634224,
0.010438388213515282,
-0.020217224955558777,
-0.017322184517979622,
-0.06591644883155823,
0.0003592909488361329,
0.00844169594347477,
0.020716607570648193,
-0.0007313761161640286,
0.02030191197991371,
-0.008429019711911678,
-0.023231111466884613,
0.04102220758795738,
-0.07909363508224487,
0.017907610163092613,
-0.06136740744113922,
-0.029407711699604988,
0.02216075174510479,
0.01611609198153019,
0.04228147491812706,
-0.0007098985370248556,
-0.03547435998916626,
-0.005067701917141676,
0.043255314230918884,
-0.06044328585267067,
-0.04646676778793335,
-0.017284873872995377,
0.036908578127622604,
-0.046062566339969635,
-0.03830612823367119,
-0.0024742770474404097,
-0.00451774662360549,
-0.016281448304653168,
0.01636666990816593,
0.011997955851256847,
0.04888710007071495,
0.0037285524886101484,
-0.0029516802169382572,
0.02225525677204132,
0.010150757618248463,
0.012974928133189678,
-0.055418964475393295,
-0.023815171793103218,
0.00043174103484489024
] |
Deploy GPT-J 6B for inference using Hugging Face Transformers and Amazon SageMaker | philschmid | January 11, 2022 | gptj-sagemaker | partnerships, aws, guide, nlp | https://huggingface.co/blog/gptj-sagemaker | Beam search request This is an example of a request using beam search with 5 beams. Inference-time after the first request: 3.3s python predictor.predict({ "inputs": "Can you please let us know more details about your ", "parameters" : { "num_beams": 5, } }) | [
0.01551901362836361,
0.027440769597887993,
0.09243956208229065,
-0.049390025436878204,
0.04844788461923599,
0.0777524784207344,
0.08456487208604813,
0.03336603194475174,
-0.01940751262009144,
-0.008338802494108677,
-0.03983978554606438,
-0.02021300420165062,
0.0131277646869421,
0.0845150277018547,
-0.02349931001663208,
-0.07275687158107758,
0.039503708481788635,
-0.037570420652627945,
-0.03500184044241905,
0.02212907373905182,
0.06904111802577972,
-0.02021690085530281,
0.09971669316291809,
-0.009360672906041145,
0.028722064569592476,
-0.04602890834212303,
-0.07009235769510269,
0.01744743064045906,
-0.06789465248584747,
0.047797806560993195,
-0.09867635369300842,
-0.010356445796787739,
-0.011977826245129108,
-0.061974212527275085,
-0.02887948602437973,
0.06943374872207642,
-0.09151986241340637,
0.05792912095785141,
0.033192165195941925,
-0.013944284059107304,
-0.042683638632297516,
-0.06435364484786987,
-0.048385366797447205,
0.015481148846447468,
0.033423878252506256,
0.0007824426284059882,
-0.15512897074222565,
0.03316513076424599,
-0.0023491198662668467,
-0.015349244698882103,
-0.06476268172264099,
0.04512755200266838,
0.00543031794950366,
-0.006159731186926365,
0.031198613345623016,
-0.01551775261759758,
-0.02701757661998272,
-0.06594675779342651,
0.021025782451033592,
0.055821750313043594,
-0.006158750969916582,
0.006328420713543892,
0.06591245532035828,
0.06276703625917435,
0.04963977262377739,
0.050562113523483276,
-0.01273774541914463,
0.014178670011460781,
-0.012811168096959591,
0.0473945215344429,
0.04935525730252266,
0.005266072228550911,
-0.024373143911361694,
-0.002820673631504178,
0.07723703235387802,
-0.04712119698524475,
-0.03915632143616676,
0.04093287140130997,
-0.005007031373679638,
0.07099023461341858,
-0.0005346097750589252,
-0.02938961051404476,
0.00024669882259331644,
0.010414873249828815,
0.024347515776753426,
0.05331438034772873,
0.037206001579761505,
0.026345383375883102,
-0.037121862173080444,
0.014811428263783455,
-0.01852669008076191,
-0.1565238982439041,
0.023591268807649612,
0.03615874797105789,
-0.01799570769071579,
-0.05336717888712883,
0.04714987054467201,
-0.0031776472460478544,
-0.039230264723300934,
-0.014888687990605831,
0.04088190570473671,
-0.07914075255393982,
-0.01864905282855034,
0.038003165274858475,
-0.015267778187990189,
0.02924306131899357,
-0.04267050325870514,
-0.07670365273952484,
-0.08299054205417633,
0.015943581238389015,
-0.029887070879340172,
0.06684079021215439,
-0.026092620566487312,
0.11549670249223709,
-0.03876180946826935,
0.0064456467516720295,
0.04807551950216293,
0.05186641216278076,
-0.03954754024744034,
0.006509605795145035,
-0.006869837176054716,
0.08630497008562088,
0.08709698170423508,
0.00508322985842824,
0.02434207685291767,
0.053592514246702194,
0.036498453468084335,
0.04015333950519562,
0.011905308812856674,
0.023547017946839333,
0.039060819894075394,
-0.03587175905704498,
0.04031804949045181,
-0.007989078760147095,
-0.0011363144731149077,
-0.052090805023908615,
-0.017836621031165123,
-0.01058452669531107,
0.02885589934885502,
0.02999958023428917,
-0.03765519708395004,
-0.01781677082180977,
-0.0032947154249995947,
0.043014489114284515,
0.11492191255092621,
-0.007868423126637936,
0.005621227435767651,
0.02687952108681202,
-0.04924725368618965,
0.07211683690547943,
-0.11148736625909805,
0.08502604812383652,
-0.01655079610645771,
-0.05908231437206268,
-0.03815091773867607,
0.03079487942159176,
0.02541395090520382,
-0.02521194890141487,
-0.015296690165996552,
0.03357348218560219,
0.015470904298126698,
0.03158215805888176,
0.007527223788201809,
-0.0048488290049135685,
0.04628189280629158,
0.022463727742433548,
0.03196118026971817,
0.010126346722245216,
-0.001907192636281252,
0.04020174965262413,
-0.03628489002585411,
0.03904806822538376,
0.08019178360700607,
-0.0016549209831282496,
-0.006183871999382973,
0.021979710087180138,
0.01993546262383461,
0.007760175038129091,
-0.007560432888567448,
-0.03689038008451462,
0.009982092306017876,
-0.0044028740376234055,
-0.04357827454805374,
0.07022297382354736,
0.010992206633090973,
-0.06836887449026108,
0.04268466681241989,
0.0166599340736866,
0.04873577877879143,
-0.04035676270723343,
-0.0007897061295807362,
-0.10955087095499039,
0.057638268917798996,
-0.015803853049874306,
0.019138682633638382,
-0.08315421640872955,
-0.020131858065724373,
0.03960804641246796,
0.024832213297486305,
0.03972449153661728,
0.019463110715150833,
0.05613775923848152,
0.07781081646680832,
-0.032221488654613495,
0.03337111696600914,
0.06672875583171844,
0.01979108527302742,
-0.0742964819073677,
0.027933061122894287,
0.011643871665000916,
-0.011035248637199402,
-0.0748324766755104,
0.006764695513993502,
-0.09220226109027863,
-0.0043100230395793915,
0.01027798093855381,
0.02696465700864792,
-0.0012833410874009132,
0.014579552225768566,
0.01054582092911005,
0.19724416732788086,
0.05420782417058945,
0.009127276949584484,
-0.025127647444605827,
-0.04412039741873741,
0.01620413549244404,
0.08755083382129669,
0.03002873808145523,
0.01715334691107273,
-0.06866773217916489,
0.0006931536481715739,
0.012878380715847015,
-0.000008267606972367503,
0.07886300981044769,
-0.004588772542774677,
-0.0009790926706045866,
-0.025392897427082062,
0.013027257286012173,
-0.009148168377578259,
-0.06490153819322586,
0.032000742852687836,
-0.03398226201534271,
-0.0038852887228131294,
0.04956706613302231,
-0.05117353796958923,
-0.03258931636810303,
0.1041138544678688,
0.04065428674221039,
-0.04233128949999809,
0.013364256359636784,
-0.03158733248710632,
-0.028644351288676262,
-0.026486791670322418,
-0.03519446775317192,
0.058028217405080795,
0.04701139032840729,
-0.04926860332489014,
-0.061737898737192154,
-0.013962600380182266,
0.04210299998521805,
0.008467033505439758,
0.01394408755004406,
0.01627415604889393,
-0.022184772416949272,
-0.0005851107416674495,
0.0031216877978295088,
-0.019459186121821404,
-0.03307361155748367,
0.002812203485518694,
0.012256727553904057,
0.020266259089112282,
-0.015319515950977802,
0.0450521819293499,
0.02157747931778431,
0.027255991473793983,
0.014349010773003101,
0.028652090579271317,
-0.00289465906098485,
-0.024568751454353333,
-0.000964313861913979,
-0.020991848781704903,
-0.036923497915267944,
0.04512924700975418,
0.021496811881661415,
0.006652018055319786,
-0.04479750245809555,
0.004361365456134081,
-0.04155160114169121,
0.009980825707316399,
-0.01758047379553318,
0.002138810697942972,
0.010228455998003483,
0.03753301873803139,
-0.02293631061911583,
0.010761079378426075,
0.010457762517035007,
0.016097262501716614,
-0.018459560349583626,
0.00011739468754967675,
-0.003629273036494851,
-0.03475775942206383,
0.0033693923614919186,
-0.031402334570884705,
-0.01950521022081375,
-0.04978480190038681,
0.05859282612800598,
0.03111906722187996,
0.017084920778870583,
-0.10253115743398666,
-0.02226541005074978,
-0.003228289308026433,
-0.011993986554443836,
0.0062110526487231255,
0.013262085616588593,
0.02682988904416561,
-0.02570282109081745,
0.03074411302804947,
-0.03210156410932541,
-0.019457008689641953,
-0.021515613421797752,
0.020635614171624184,
-0.002600771375000477,
-0.003239451441913843,
0.02229704149067402,
-0.02054656855762005,
0.0375368669629097,
0.0007410884718410671,
0.0055579557083547115,
-0.013466590084135532,
0.029950741678476334,
-0.01177861075848341,
0.0005318178446032107,
0.011970819905400276,
-0.009558399207890034,
0.012084614485502243,
0.024625005200505257,
-0.0011028654407709837,
-0.03843013197183609,
-0.01647050864994526,
-0.04985352233052254,
-0.08577834069728851,
-0.006692396476864815,
-0.03662911057472229,
0.007806922774761915,
-0.013601753860712051,
-0.025682752951979637,
0.04283396527171135,
0.008946576155722141,
0.0011041663819923997,
-0.006008389871567488,
-0.009077534079551697,
-0.010451816953718662,
-0.023073263466358185,
0.01835932955145836,
0.00747451139613986,
0.023999663069844246,
0.035517264157533646,
-0.06604749709367752,
-0.010310681536793709,
-0.016636565327644348,
-0.004800134804099798,
0.02063758857548237,
0.02684934064745903,
-0.014572672545909882,
0.026852458715438843,
0.02396734058856964,
0.057411208748817444,
0.01665356196463108,
-0.04996621608734131,
0.013717700727283955,
0.0030110215302556753,
0.011597927659749985,
-0.019766435027122498,
0.011533331125974655,
0.021646616980433464,
0.07349709421396255,
-0.0322839729487896,
-0.020576806738972664,
0.00200325483456254,
0.009615232236683369,
0.007261251099407673,
0.014394134283065796,
0.008466774597764015,
0.002967472653836012,
-0.01736709475517273,
-0.05328795686364174,
0.07252127677202225,
0.051433198153972626,
-0.03828873857855797,
-0.02690873108804226,
-0.045771896839141846,
-0.020565416663885117,
0.048312198370695114,
-0.00931552890688181,
-0.011072223074734211,
-0.037982646375894547,
0.004454449284821749,
-0.009561201557517052,
-0.0369427315890789,
-0.03617072477936745,
0.00021778116934001446,
-0.012932651676237583,
-0.026843737810850143,
0.009169247932732105,
0.039820946753025055,
0.03547782823443413,
0.016323674470186234,
0.014032263308763504,
0.009555204771459103,
-0.050580885261297226,
0.00898757204413414,
0.015063202939927578,
-0.004366337321698666,
-0.038358576595783234,
-0.03788832202553749,
-0.025994565337896347,
-0.008364844135940075,
0.012158555909991264,
0.012370361015200615,
-0.00994319748133421,
0.0032851153519004583,
-0.008459903299808502,
-0.002201429335400462,
0.05604491010308266,
-0.033924516290426254,
-0.013414663262665272,
-0.0323343463242054,
0.02689887396991253,
-0.04163476079702377,
-0.007361362222582102,
-0.04241442307829857,
-0.006159539800137281,
-0.029592281207442284,
-0.008244351483881474,
0.018563730642199516,
-0.033356960862874985,
0.002543735085055232,
-0.013140990398824215,
-0.0034303590655326843,
0.019589154049754143,
0.013011806644499302,
-0.012290646322071552,
0.010622627101838589,
0.016985679045319557,
-0.0032023924868553877,
0.011536864563822746,
-0.01875149831175804,
-0.03562166914343834,
-0.05884864181280136,
-0.005029689054936171,
-0.00486132875084877,
-0.02480078861117363,
-0.008386672474443913,
0.004305646289139986,
-0.06399330496788025,
-0.04019813984632492,
-0.05819166079163551,
0.041947219520807266,
0.055782072246074677,
-0.007594006136059761,
-0.023071901872754097,
0.012934181839227676,
0.03774874284863472,
-0.028899671509861946,
0.003289976390078664,
0.01657513715326786,
-0.0011610615765675902,
0.04126159846782684,
-0.010011295787990093,
-0.009032964706420898,
-0.040438033640384674,
0.02157249115407467,
0.013609528541564941,
-0.03281461074948311,
-0.04960634931921959,
-0.024680273607373238,
0.014147824607789516,
0.006330045405775309,
0.011166648007929325,
0.0010921885259449482,
0.029395440593361855,
-0.052763503044843674,
0.0012241958174854517,
0.05440138280391693,
-0.00292809191159904,
-0.015751544386148453,
0.02490568347275257,
0.03169668838381767,
-0.07565033435821533,
-0.00811721570789814,
0.03592543303966522,
0.007195482030510902,
0.007747753988951445,
0.026737626641988754,
0.0334928035736084,
0.005005385726690292,
0.040316663682460785,
0.02258279360830784,
-0.0111156664788723,
-0.022073185071349144,
-0.0010593723272904754,
-0.0388336256146431,
0.04532976076006889,
-0.03759950399398804,
-0.017177700996398926,
0.002270189579576254,
-0.03351161256432533,
-0.012219144962728024,
0.03198286518454552,
-0.001801116275601089,
-0.013616350479424,
-0.018444938585162163,
0.022192975506186485,
-0.0033585394266992807,
0.007733919192105532,
-0.021704817190766335,
-0.0016266772290691733,
-0.029177779331803322,
0.0049009667709469795,
-0.04198853671550751,
-0.03059736080467701,
0.05425539240241051,
0.04779645428061485,
-0.011791160330176353,
-0.010212498717010021,
0.0030240972992032766,
0.04800592362880707,
0.05481504276394844,
0.006264626979827881,
-0.029515661299228668,
-0.02325461432337761,
-0.002174635650590062,
0.05073646083474159,
-0.0369340181350708,
-0.01823919638991356,
0.05706706643104553,
0.0025210906751453876,
0.04958607628941536,
0.05052988603711128,
-0.03417155519127846,
-0.021495873108506203,
0.03361233323812485,
0.024212144315242767,
-0.00047027692198753357,
-0.08516278862953186,
0.030760329216718674,
0.03934155032038689,
0.003171055344864726,
0.010142797604203224,
-0.015561102889478207,
-0.021760933101177216,
0.01358499750494957,
0.0017937037628144026,
0.015372088178992271,
0.047633975744247437,
0.00502809276804328,
-0.012310460209846497,
0.008039839565753937,
0.016166260465979576,
0.012764370068907738,
0.0028382823802530766,
0.004106453619897366,
-0.013793868012726307,
0.01005086675286293,
0.02412889339029789,
-0.03149674832820892,
0.003512505441904068,
0.025007635354995728,
0.04492632672190666,
-0.036970287561416626,
0.04785079136490822,
0.02561742067337036,
-0.028817636892199516,
0.04654035344719887,
0.0009533333359286189,
-0.03933700546622276,
-0.00740867480635643,
-0.006351058837026358,
0.014038107357919216,
0.008048721589148045,
-0.019665773957967758,
-0.006085074506700039,
-0.01904786191880703,
0.01476829219609499,
0.0032964141573756933,
0.09793060272932053,
-0.011955099180340767,
0.03829548880457878,
0.029736967757344246,
0.05246421694755554,
-0.018435601145029068,
0.021850410848855972,
-0.013311062939465046,
-0.025477461516857147,
0.04502510279417038,
0.017419494688510895,
0.020311228930950165,
-0.008773548528552055,
-0.009218042716383934,
0.03139767423272133,
-0.03165942430496216,
0.01233848836272955,
-0.02251269295811653,
0.005075449123978615,
0.02526448294520378,
0.003592002671211958,
0.013968929648399353,
-0.05438317358493805,
0.030437001958489418,
0.0170003492385149,
0.04217534512281418,
-0.013487637974321842,
-0.015157310292124748,
0.032574549317359924,
0.015991151332855225,
0.024855824187397957,
0.05113209784030914,
-0.02133869007229805,
-0.03347201645374298,
0.0457487478852272,
0.003868048544973135,
0.02286379598081112,
0.03185567259788513,
0.009596569463610649,
-0.018658386543393135,
-0.03361909091472626,
-0.051532842218875885,
0.03033587336540222,
0.037314802408218384,
0.026786644011735916,
-0.015833033248782158,
-0.0033242765348404646,
-0.04942340403795242,
-0.027275627478957176,
-0.009704843163490295,
-0.0016394499689340591,
-0.02619730494916439,
-0.021647309884428978,
-0.006559279281646013,
0.022454435005784035,
0.008875001221895218,
-0.027223162353038788,
-0.01177853811532259,
-0.00046123930951580405,
0.01620784029364586,
0.04477014020085335,
-0.052492279559373856,
0.008685553446412086,
-0.03409041091799736,
0.006336182821542025,
-0.006757574621587992,
0.015846671536564827,
-0.026893220841884613,
0.003136109095066786,
0.0032474095933139324,
0.012760591693222523,
-0.0024946872144937515,
0.032975323498249054,
-0.002149073174223304,
0.018542340025305748,
0.006043278146535158,
0.026370679959654808,
-0.011450464837253094,
-0.010351981967687607,
0.0402916818857193,
-0.011896601878106594,
-0.020105719566345215,
-0.020445091649889946,
0.04039115458726883,
0.0006047904025763273,
-0.004765491932630539,
-0.0002227961813332513,
-0.022250572219491005,
-0.009775729849934578,
-0.03292134776711464,
-0.015655122697353363,
0.005373493302613497,
-0.006827554665505886,
-0.02211417630314827,
-0.029265211895108223,
0.027620704844594002,
-0.002799210837110877,
-0.04379105567932129,
-0.004366093780845404,
0.04223409667611122,
-0.002299451967701316,
-0.01966419257223606,
-0.008320964872837067,
0.0062062921933829784,
-0.005783285479992628,
-0.004703954327851534,
0.03206614404916763,
-0.04424109682440758,
0.030855579301714897,
-0.010179933160543442,
-0.005905164871364832,
-0.014938793145120144,
0.04249025136232376,
-0.06636456400156021,
-0.03202912583947182,
-0.039636481553316116,
-0.009613702073693275,
-0.00887225940823555,
-0.0024421620182693005,
-0.037877634167671204,
-0.03335472196340561,
0.0013445987133309245,
-0.017580758780241013,
-0.036579377949237823,
-0.002141015836969018,
0.02542092651128769,
0.002286558737978339,
0.0640377625823021,
0.020162196829915047,
0.0027920687571167946,
0.00494820112362504,
0.009465007111430168,
0.018826650455594063,
0.010377897880971432,
0.009043208323419094,
-0.02572007104754448,
-0.02658650651574135,
0.03990655392408371,
-0.0361679382622242,
-0.07115548104047775,
-0.00513078086078167,
0.01218683272600174,
-0.016466498374938965,
-0.037927884608507156,
0.0013518634950742126,
0.019557489082217216,
0.03166765347123146,
0.06591721624135971,
-0.002337892772629857,
-0.020720571279525757,
-0.030025064945220947,
0.03811978921294212,
-0.04493705555796623,
-0.020520884543657303,
0.025644192472100258,
-0.04390837624669075,
0.012939566746354103,
0.01076089683920145,
0.020077668130397797,
-0.01130423229187727,
-0.02515566162765026,
-0.01063990592956543,
-0.033405475318431854,
-0.0732150748372078,
-0.05692771077156067,
-0.05082632228732109,
0.019930055364966393,
-0.04531363770365715,
0.00868926476687193,
0.03550450876355171,
-0.012413173913955688,
-0.04730302467942238,
-0.0028324450831860304,
0.011848156340420246,
-0.001003942685201764,
0.022538211196660995,
0.039209477603435516,
-0.01685449667274952,
0.013975698500871658,
0.050145223736763,
0.016072874888777733,
-0.011078409850597382,
0.014289721846580505
] |