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
|
---|---|---|---|---|---|---|---|
Open LLM Leaderboard: DROP deep dive | clefourrier | December 1, 2023 | leaderboard-drop-dive | community, research, nlp, evaluation, leaderboard | https://huggingface.co/blog/leaderboard-drop-dive | Diving into the results Extending our investigations, our friends at Zeno joined us and undertook a much more thorough exploration of the results, looking at 5 models which were representative of the problems we noticed in DROP scores: falcon-180B and mistral-7B were underperforming compared to what we were expecting, Yi-34B and tigerbot-70B had a very good performance on DROP correlated with their average scores, and facebook/xglm-7.5B fell in the middle. You can give analyzing the results a try in the Zeno project here if you want to! The Zeno team found two even more concerning features: 1) Not a single model got a correct result on floating point answers 2) High quality models which generate long answers actually have a lower f1-score At this point, we believed that both failure cases were actually caused by the same root factor: using . as a stopword token (to end the generations): 1) Floating point answers are systematically interrupted before their generation is complete 2) Higher quality models, which try to match the few-shot prompt format, will generate Answer\n\nPlausible prompt for the next question., and only stop during the plausible prompt continuation after the actual answer on the first ., therefore generating too many words and getting a bad f1 score. We hypothesized that both these problems could be fixed by using \n instead of . as an end of generation stop word. | [
-0.0034781266003847122,
-0.03102109022438526,
0.01812402345240116,
0.0581493154168129,
0.06521853059530258,
0.04750731214880943,
-0.0016551872249692678,
0.015654640272259712,
0.028361672535538673,
-0.06172069534659386,
-0.045280832797288895,
-0.02106029912829399,
0.03531651571393013,
-0.024993430823087692,
-0.02839134819805622,
-0.011289630085229874,
0.032015252858400345,
-0.030139558017253876,
0.04994936287403107,
-0.010155970230698586,
-0.008388033136725426,
-0.02259807288646698,
-0.001216529868543148,
0.014472630806267262,
-0.07270115613937378,
-0.002813632134348154,
0.01757981814444065,
-0.02479458972811699,
-0.01845073699951172,
0.03322453051805496,
-0.014324592426419258,
-0.04170544445514679,
0.016751345247030258,
0.03408477455377579,
-0.028052791953086853,
-0.05331070348620415,
-0.08020742982625961,
0.08225328475236893,
0.0509309284389019,
-0.006728161126375198,
0.003803160972893238,
-0.030686940997838974,
0.03068092279136181,
-0.01416023075580597,
0.05979551747441292,
0.03145136311650276,
-0.09923197329044342,
-0.038438040763139725,
-0.06900515407323837,
-0.05963379889726639,
-0.13778364658355713,
0.042081788182258606,
-0.07785763591527939,
-0.04174242913722992,
0.07369797676801682,
-0.0024088569916784763,
0.017875177785754204,
-0.006155847571790218,
0.05179470032453537,
0.006194766145199537,
0.03612261638045311,
-0.02270018868148327,
0.05483969300985336,
-0.039623990654945374,
-0.012366215698421001,
-0.02190363220870495,
0.005267067346721888,
0.03936479240655899,
-0.07440143823623657,
0.019319400191307068,
-0.023390887305140495,
0.02828296646475792,
0.00534926587715745,
-0.014120934531092644,
-0.02641669660806656,
0.03427234664559364,
0.08201321214437485,
0.057700563222169876,
-0.027433903887867928,
-0.10094758868217468,
0.015035538002848625,
0.041195567697286606,
0.09961063414812088,
0.02451115846633911,
-0.10426080971956253,
-0.018085796386003494,
0.10434769093990326,
-0.013930060900747776,
0.018971215933561325,
0.024426082149147987,
-0.00582159822806716,
-0.06536346673965454,
0.04838975518941879,
0.015958581119775772,
-0.0025748421903699636,
-0.0411008819937706,
-0.012085877358913422,
0.06809710711240768,
0.021929800510406494,
0.0023196516558527946,
-0.03526841104030609,
-0.05092450603842735,
0.0076614245772361755,
-0.0817735344171524,
-0.08542939275503159,
0.0034014112316071987,
-0.04568174108862877,
-0.09254113584756851,
-0.0412471778690815,
-0.006976886186748743,
-0.047129593789577484,
0.029541535302996635,
-0.019288508221507072,
0.05870499089360237,
-0.07105822116136551,
0.04290330037474632,
-0.03942197561264038,
0.03121548518538475,
0.02901441976428032,
0.002187820617109537,
-0.03408025577664375,
0.08376826345920563,
0.003421752480790019,
-0.017987573519349098,
0.022046465426683426,
0.10201927274465561,
0.040500104427337646,
0.02871108055114746,
-0.06918342411518097,
-0.014220205135643482,
-0.022750094532966614,
0.03482048213481903,
-0.028798390179872513,
0.01973935030400753,
0.005112665705382824,
-0.030079850926995277,
0.017894873395562172,
-0.04545462876558304,
0.019898375496268272,
0.0019139484502375126,
-0.03177197650074959,
0.01818530634045601,
-0.044403549283742905,
0.02815905399620533,
0.006129302084445953,
0.011716090142726898,
-0.03686439245939255,
0.015588086098432541,
0.07784087210893631,
0.005305139813572168,
-0.03494935855269432,
0.013879841193556786,
-0.042158883064985275,
-0.049148064106702805,
0.0009559935424476862,
0.0672098770737648,
0.003550746710970998,
-0.0522933304309845,
-0.06396877765655518,
-0.05456297844648361,
0.0033511025831103325,
0.02538755163550377,
-0.017417533323168755,
-0.023053664714097977,
0.07442449778318405,
-0.00018700753571465611,
0.027948424220085144,
0.05575062334537506,
-0.009908129461109638,
0.007615723181515932,
0.02884571999311447,
0.011508175171911716,
0.15903759002685547,
-0.06432166695594788,
-0.06261546164751053,
0.027250496670603752,
0.0312824584543705,
0.007696408778429031,
0.06087619438767433,
0.007715329527854919,
-0.0070472601801157,
0.037017643451690674,
0.01140713319182396,
0.06874966621398926,
0.037856169044971466,
-0.005911162588745356,
0.06918643414974213,
0.024829551577568054,
0.01059186365455389,
0.01968001388013363,
-0.011176323518157005,
0.03816787898540497,
0.1441795974969864,
0.032583966851234436,
0.01075286976993084,
-0.04737624153494835,
-0.005573694594204426,
0.05767695978283882,
0.11262436211109161,
-0.03496237099170685,
-0.0024689112324267626,
0.07295404374599457,
0.05940277501940727,
-0.08545966446399689,
-0.0774492397904396,
0.03395611047744751,
-0.032433152198791504,
-0.03517933562397957,
-0.04111335054039955,
0.056095488369464874,
0.033741679042577744,
-0.0916675254702568,
0.008212228305637836,
-0.06515920162200928,
-0.014963949099183083,
0.004242123570293188,
0.023352408781647682,
-0.01027914509177208,
-0.06391674280166626,
0.028357582166790962,
0.029117366299033165,
-0.06864464282989502,
0.05045754089951515,
-0.007603509351611137,
-0.0429866723716259,
0.09236536175012589,
0.05152072012424469,
0.031474288552999496,
0.018978629261255264,
-0.05804748460650444,
-0.06765911728143692,
-0.03940948098897934,
0.08633032441139221,
0.025284476578235626,
0.03435694798827171,
-0.012623872607946396,
-0.04033274948596954,
-0.03245977312326431,
-0.008263804949820042,
-0.014198949560523033,
-0.04196164011955261,
0.012691383250057697,
-0.03392518684267998,
0.060809262096881866,
0.0033363087568432093,
-0.0426417775452137,
0.1314871460199356,
-0.00900797825306654,
-0.05000448226928711,
-0.021945852786302567,
-0.03847634047269821,
0.058498069643974304,
-0.026711007580161095,
0.021703889593482018,
-0.02088063769042492,
-0.031038861721754074,
0.051897138357162476,
0.010786647908389568,
-0.06452620029449463,
-0.0017594381934031844,
0.025577234104275703,
-0.027590308338403702,
-0.0395832322537899,
-0.02795272320508957,
0.04313933104276657,
-0.022896762937307358,
-0.024384932592511177,
-0.00895904004573822,
-0.009383020922541618,
-0.013554784469306469,
-0.015644749626517296,
-0.01651347242295742,
0.010021458379924297,
0.033641915768384933,
-0.021951472386717796,
0.04954368621110916,
-0.006001840345561504,
0.025987792760133743,
-0.018832147121429443,
-0.026139983907341957,
0.03146636486053467,
0.012584466487169266,
0.05328156799077988,
0.020535994321107864,
0.04898778349161148,
-0.004148298408836126,
0.021894868463277817,
0.01292463019490242,
-0.04237311705946922,
0.013679399155080318,
-0.028267739340662956,
-0.009503781795501709,
-0.021421881392598152,
-0.02914036065340042,
-0.006399248726665974,
0.004611513111740351,
0.011686095967888832,
0.04770190641283989,
-0.03244807571172714,
-0.004513971973210573,
-0.0025807232595980167,
-0.005074423737823963,
0.014260180294513702,
-0.003944706171751022,
0.03700883314013481,
-0.0040424298495054245,
0.0159700196236372,
0.05011492967605591,
-0.08444052934646606,
-0.001752975513227284,
0.0018059569410979748,
-0.0245254747569561,
-0.06515517830848694,
-0.06392466276884079,
0.03915814682841301,
-0.001331231207586825,
-0.058713968843221664,
-0.016100294888019562,
0.013411639258265495,
0.03277420252561569,
-0.05148289352655411,
-0.005495367106050253,
0.024087300524115562,
0.027204178273677826,
-0.029410583898425102,
-0.019390327855944633,
0.03154706954956055,
0.035972706973552704,
0.040869444608688354,
-0.012677788734436035,
-0.03060835227370262,
-0.03334606811404228,
-0.04549720138311386,
0.03475736081600189,
0.005584923084825277,
0.008086294867098331,
-0.0050872997380793095,
-0.036431536078453064,
0.008548561483621597,
0.014316244050860405,
-0.019360601902008057,
0.05657297745347023,
-0.056522224098443985,
-0.035764604806900024,
-0.023296399042010307,
0.0017662136815488338,
0.010877694003283978,
0.037563104182481766,
0.03157084435224533,
-0.017269033938646317,
-0.007337023504078388,
-0.01037878729403019,
-0.007619979791343212,
0.023811737075448036,
0.04031521826982498,
-0.002558196661993861,
0.03541027754545212,
-0.007950196042656898,
-0.056016940623521805,
-0.009337350726127625,
-0.014605476520955563,
0.04474368691444397,
-0.006383945234119892,
0.02874893881380558,
0.011912939138710499,
0.007634307723492384,
-0.025261374190449715,
0.027410805225372314,
0.011436223983764648,
0.029396293684840202,
0.013582061976194382,
0.0106220543384552,
-0.010793989524245262,
0.008624221198260784,
-0.009090960025787354,
-0.015338008292019367,
-0.034659676253795624,
0.0337371900677681,
-0.0313989594578743,
0.003594566136598587,
0.054832953959703445,
-0.005761651322245598,
-0.010726826265454292,
0.0066728973761200905,
-0.015148976817727089,
-0.027551773935556412,
0.03607882931828499,
0.04272579774260521,
-0.046611420810222626,
-0.03121791034936905,
-0.032737746834754944,
0.014824042096734047,
0.031121378764510155,
0.004221390001475811,
0.022250717505812645,
-0.003317594062536955,
0.013977013528347015,
0.06719633936882019,
0.03303013741970062,
-0.0033442145213484764,
-0.008521577343344688,
-0.014462177641689777,
-0.02996257320046425,
0.020659904927015305,
-0.03477080538868904,
0.011175575666129589,
0.027321655303239822,
0.01217163447290659,
0.029436860233545303,
-0.0030653916765004396,
-0.028281060978770256,
0.01211786549538374,
-0.021467918530106544,
0.021442053839564323,
-0.01515220757573843,
0.04812373220920563,
-0.026345793157815933,
-0.00518068578094244,
0.0073866574093699455,
-0.007737918756902218,
0.03476064279675484,
0.006591300945729017,
0.030628284439444542,
-0.006005657836794853,
-0.009409008547663689,
-0.02440563589334488,
-0.057910073548555374,
0.019394155591726303,
-0.07674121856689453,
0.010308867320418358,
0.0047963629476726055,
-0.029460709542036057,
0.0438598096370697,
-0.014332158491015434,
-0.05241965502500534,
-0.02433580718934536,
0.04444116726517677,
-0.029835494235157967,
0.016592539846897125,
-0.009656413458287716,
0.010832708328962326,
0.025408979505300522,
0.021054677665233612,
0.026560168713331223,
0.016604365780949593,
0.011270163580775261,
0.00890607200562954,
-0.03920065984129906,
0.055947497487068176,
-0.021912867203354836,
0.015130532905459404,
-0.05251128971576691,
0.030289720743894577,
-0.01688435673713684,
0.06394728273153305,
0.0010014176368713379,
0.03998928144574165,
-0.00656870286911726,
0.03619978576898575,
-0.00027580521418713033,
-0.03848894685506821,
-0.038071975111961365,
0.00766272796317935,
-0.01649441383779049,
-0.02351587451994419,
-0.0255967415869236,
-0.03343440964818001,
0.01998732052743435,
0.020956000313162804,
0.0029279175214469433,
-0.01624222844839096,
0.025440530851483345,
0.005456556566059589,
0.021251358091831207,
0.031686726957559586,
-0.008071710355579853,
-0.019026929512619972,
-0.023514054715633392,
-0.013018150813877583,
0.0543791800737381,
0.01269455160945654,
-0.01591511070728302,
0.0349096842110157,
0.00863887183368206,
0.0007175437640398741,
-0.004048260394483805,
0.002153396373614669,
0.01593266986310482,
-0.055922407656908035,
0.006759489420801401,
0.02942682057619095,
-0.04805276170372963,
0.035356421023607254,
0.006175759714096785,
0.06456341594457626,
0.028560101985931396,
0.022213149815797806,
0.013479444198310375,
-0.02172137051820755,
-0.010253301821649075,
0.019684618338942528,
0.0041846721433103085,
0.01084899716079235,
0.009846672415733337,
0.0032870788127183914,
0.031474769115448,
-0.06907012313604355,
-0.0007349539082497358,
0.02303966134786606,
-0.0011332080466672778,
0.018474673852324486,
0.013887054286897182,
0.03452406823635101,
0.008537855930626392,
0.021498490124940872,
0.0050934902392327785,
0.058225102722644806,
0.007416857872158289,
0.05535838007926941,
-0.030929062515497208,
-0.08096425980329514,
0.010752812959253788,
0.0449785478413105,
-0.07125335931777954,
-0.02083500288426876,
0.04169156029820442,
0.016850078478455544,
0.04905663803219795,
-0.05104118958115578,
0.008331156335771084,
-0.008962986059486866,
-0.0008180734002962708,
0.030333464965224266,
-0.0015269640134647489,
0.014942771755158901,
0.008515540510416031,
-0.04260097071528435,
0.002937611658126116,
-0.00022991116566117853,
0.009054434485733509,
0.03848088160157204,
-0.008340957574546337,
0.03463717922568321,
-0.027832871302962303,
-0.01627197116613388,
0.01744624227285385,
-0.018536003306508064,
0.013966001570224762,
0.01770639605820179,
0.014280754141509533,
-0.02251521684229374,
0.019276518374681473,
-0.08055195957422256,
0.020071299746632576,
-0.028965165838599205,
-0.042246319353580475,
-0.015616859309375286,
0.012771802954375744,
-0.006595897022634745,
0.04153856635093689,
-0.02524644508957863,
-0.009429778903722763,
0.019653499126434326,
0.0077073583379387856,
-0.0004125582636334002,
-0.006963993888348341,
0.0017112246714532375,
-0.044737037271261215,
-0.04067366197705269,
0.04126732423901558,
-0.00045230769319459796,
0.02155390754342079,
-0.027789896354079247,
0.013975958339869976,
0.002542854053899646,
-0.017356932163238525,
0.03296707198023796,
0.029860330745577812,
0.03445117920637131,
-0.0046849302016198635,
-0.011984501034021378,
0.03197203204035759,
-0.009263729676604271,
0.006781460251659155,
0.03575699403882027,
0.0327589176595211,
0.013338007032871246,
-0.02600037306547165,
0.012811872176826,
0.052513014525175095,
0.024352533742785454,
0.017474215477705002,
-0.04280051589012146,
0.004167500417679548,
0.011447278782725334,
0.016919739544391632,
0.02489456906914711,
0.004135755356401205,
-0.03502265736460686,
0.054371122270822525,
-0.05275168642401695,
-0.06462688744068146,
-0.03256074711680412,
-0.028782755136489868,
0.015006582252681255,
0.02785036340355873,
0.00939667783677578,
-0.029931310564279556,
0.0376112200319767,
-0.014372678473591805,
0.014934942126274109,
0.03874208778142929,
0.027045555412769318,
-0.035809338092803955,
0.011820509098470211,
0.01957259327173233,
0.0646178126335144,
-0.01192543562501669,
-0.02608732506632805,
0.005985954776406288,
-0.014097435399889946,
0.011774316430091858,
0.023070678114891052,
0.06717909872531891,
-0.015193835832178593,
-0.004997911863029003,
0.031394995748996735,
0.03116222470998764,
0.0009116849978454411,
-0.007486885879188776,
0.02638382464647293,
-0.03367089852690697,
-0.04528827965259552,
-0.023542093113064766,
-0.04018331319093704,
-0.014607096090912819,
0.02067580074071884,
0.03364299610257149,
0.006496812682598829,
-0.028185635805130005,
0.012165763415396214,
-0.0640665665268898,
-0.00013195499195717275,
-0.06110628321766853,
0.013028985820710659,
0.030794337391853333,
-0.03875601664185524,
-0.019047267735004425,
0.009672651998698711,
-0.0006804140866734087,
0.005837312899529934,
0.02511470764875412,
-0.01158936694264412,
0.02445487678050995,
0.008408807218074799,
0.034191474318504333,
-0.011915011331439018,
0.017402613535523415,
-0.02290882170200348,
-0.01912746950984001,
-0.031123189255595207,
0.01942606084048748,
0.02407357469201088,
-0.06136102229356766,
-0.012290741316974163,
-0.02610192261636257,
-0.05091460794210434,
-0.007482506800442934,
0.030205002054572105,
0.003958194516599178,
0.018180573359131813,
-0.02232235111296177,
0.000984291429631412,
-0.006572401616722345,
-0.010350256226956844,
-0.03135685622692108,
-0.04802432656288147,
0.03867410123348236,
0.02150091715157032,
-0.020746249705553055,
0.0043368092738091946,
-0.015494736842811108,
-0.06983987241983414,
0.0417977049946785,
0.013094023801386356,
-0.009562188759446144,
-0.009696065448224545,
-0.020474156364798546,
0.05897809937596321,
0.014259380288422108,
0.04829886555671692,
0.01119082048535347,
0.026656178757548332,
0.031537506729364395,
0.02730659581720829,
0.026915868744254112,
-0.037236377596855164,
0.03647303953766823,
-0.03809336945414543,
-0.039212848991155624,
-0.03506007418036461,
0.04019535332918167,
-0.003108004806563258,
0.006776018533855677,
-0.011295718140900135,
-0.02861119993031025,
-0.06314753741025925,
-0.024028122425079346,
-0.014075019396841526,
-0.03821257874369621,
0.024149328470230103,
-0.002353682415559888,
0.0008852903847582638,
-0.038946185261011124,
-0.021332820877432823,
0.005053720902651548,
-0.03451622277498245,
0.009951634332537651,
0.04781128093600273,
-0.018099496141076088,
0.012692524120211601,
-0.024553488940000534,
-0.006250037811696529,
-0.04252864420413971,
-0.03007626160979271,
0.026143228635191917,
0.02429567649960518,
-0.017840687185525894,
0.01485495176166296,
0.01714523509144783,
0.031851429492235184,
0.012833145447075367,
0.0023983153514564037,
0.036259401589632034,
-0.03993915021419525,
0.026617195457220078,
0.01633237674832344,
-0.019436312839388847,
-0.04621519148349762,
-0.024114983156323433,
0.028322327882051468,
0.019805746152997017,
-0.015103417448699474,
-0.01573205552995205,
0.049300357699394226,
-0.04843325912952423,
0.03760311380028725,
-0.003955664113163948,
-0.0453854501247406,
0.014662409201264381,
0.021883895620703697,
0.022513065487146378,
0.018370339646935463,
-0.06305252760648727,
0.023795610293745995,
0.007970278151333332,
-0.029403386637568474,
-0.04599027708172798,
0.037210073322057724,
0.038658060133457184,
-0.005965845659375191,
-0.005463914014399052,
0.007818973623216152,
0.006663566920906305,
-0.010002936236560345,
0.02889801375567913,
0.00000828838710731361,
0.03955760598182678
] |
Open LLM Leaderboard: DROP deep dive | clefourrier | December 1, 2023 | leaderboard-drop-dive | community, research, nlp, evaluation, leaderboard | https://huggingface.co/blog/leaderboard-drop-dive | # Open LLM Leaderboard: DROP deep dive Recently, three new benchmarks were added to the Open LLM Leaderboard: Winogrande, GSM8k and DROP, using the original implementations reproduced in the EleutherAI Harness. A cursory look at the scores for DROP revealed something strange was going on, with the overwhelming majority of models scoring less than 10 out of 100 on their f1-score! We did a deep dive to understand what was going on, come with us to see what we found out! | [
-0.008024817332625389,
-0.02477709762752056,
0.09093300253152847,
-0.014568104408681393,
0.06883016973733902,
0.06458655744791031,
-0.018414270132780075,
0.022493572905659676,
0.018241168931126595,
-0.0062732091173529625,
0.006548670120537281,
0.03641228750348091,
-0.01638079807162285,
-0.015644168481230736,
0.039280835539102554,
0.05449867993593216,
-0.030542144551873207,
-0.009169123135507107,
0.0765758529305458,
-0.04006373509764671,
0.009945160709321499,
-0.06055738404393196,
0.07733772695064545,
-0.10372040420770645,
-0.04929456487298012,
0.023235557600855827,
-0.009023421443998814,
0.014779344201087952,
-0.04317174851894379,
0.02622363530099392,
0.03748675063252449,
-0.04657305032014847,
-0.03579174354672432,
0.046203725039958954,
0.0211852565407753,
0.004683545790612698,
-0.06716816127300262,
-0.004716426134109497,
-0.027451107278466225,
-0.03511979058384895,
-0.0007404859061352909,
-0.05155393108725548,
-0.011369308456778526,
0.007927591912448406,
0.0498344786465168,
-0.028237512335181236,
-0.135193333029747,
0.01789029687643051,
-0.025856181979179382,
0.0022740853019058704,
-0.08651945739984512,
0.006134350318461657,
-0.05945049226284027,
-0.013971228152513504,
0.012452047318220139,
-0.040360674262046814,
0.06910808384418488,
-0.04925459623336792,
0.08145233988761902,
-0.0028531504794955254,
0.02514456957578659,
-0.005724948365241289,
0.01626366376876831,
-0.03150945529341698,
0.0800621435046196,
-0.02475007064640522,
-0.03331424668431282,
-0.022851228713989258,
-0.0855943113565445,
0.026488851755857468,
0.021871352568268776,
-0.00819152221083641,
0.012456014752388,
-0.04051939398050308,
0.015736965462565422,
-0.019542977213859558,
0.09198761731386185,
0.11910995095968246,
0.07729487866163254,
-0.022488251328468323,
0.033980246633291245,
0.019792882725596428,
0.04188688471913338,
0.01672425866127014,
-0.03488824889063835,
0.03708137944340706,
0.07004156708717346,
-0.07898221909999847,
-0.028590073809027672,
0.039622895419597626,
-0.046569302678108215,
-0.07793945074081421,
-0.0056867413222789764,
0.0570659264922142,
0.03401612490415573,
-0.03446958586573601,
0.011680441908538342,
-0.013190417550504208,
-0.002423084806650877,
-0.024188853800296783,
-0.012181798927485943,
-0.06413261592388153,
0.02059534378349781,
-0.06897681951522827,
-0.047291677445173264,
0.01709846407175064,
-0.0256525669246912,
-0.07990532368421555,
-0.027715148404240608,
0.06550376862287521,
-0.03493982180953026,
0.010501236654818058,
0.012932605110108852,
0.02347971498966217,
-0.0700502023100853,
0.030468596145510674,
0.03901413083076477,
-0.028178030624985695,
0.015023983083665371,
0.09883175790309906,
-0.03639815002679825,
0.024633163586258888,
0.044684555381536484,
-0.03611385449767113,
0.0523202009499073,
0.11225277185440063,
0.01942545548081398,
0.09679470956325531,
0.01639397256076336,
-0.0028822135645896196,
0.045989613980054855,
-0.009278498589992523,
-0.018726887181401253,
-0.020228557288646698,
-0.011000087484717369,
-0.028509503230452538,
0.06555533409118652,
0.02719065360724926,
0.08526038378477097,
-0.008313534781336784,
-0.0744202584028244,
-0.023789890110492706,
-0.031125951558351517,
-0.013799702748656273,
0.06326821446418762,
0.03490438684821129,
-0.036639418452978134,
0.029813194647431374,
0.015838127583265305,
-0.021496620029211044,
-0.05031232163310051,
0.09407074004411697,
-0.026654155924916267,
-0.04873890057206154,
0.09759054332971573,
0.09491545706987381,
-0.019475562497973442,
-0.01687852293252945,
0.005133823491632938,
0.03421458601951599,
-0.07519342005252838,
0.00020844105165451765,
-0.0034656887874007225,
-0.05117170885205269,
0.04573028162121773,
0.0021376963704824448,
0.05845554918050766,
0.02117709070444107,
-0.04139930009841919,
-0.010146872140467167,
-0.026236211881041527,
0.002639294136315584,
0.0692981407046318,
0.014824200421571732,
-0.05884194001555443,
0.01420556753873825,
0.04199032112956047,
0.01720495894551277,
0.04075013846158981,
0.020333416759967804,
-0.053256213665008545,
-0.05994020402431488,
0.019431108608841896,
-0.022167280316352844,
0.002968092216178775,
-0.0772513821721077,
0.0514385960996151,
-0.04051658883690834,
-0.026875821873545647,
-0.00012354405771475285,
-0.05417991057038307,
-0.021460773423314095,
0.15936008095741272,
-0.038902394473552704,
0.003936864901334047,
-0.02222827821969986,
0.007396632339805365,
0.026568854227662086,
0.06811084598302841,
0.013153146021068096,
0.07234414666891098,
0.10449571162462234,
-0.003337921341881156,
0.010376416146755219,
-0.027421465143561363,
-0.009571130387485027,
0.0023675591219216585,
-0.03794265538454056,
-0.08318286389112473,
0.05768049135804176,
0.019108252599835396,
-0.0782235860824585,
-0.02987181395292282,
0.027600403875112534,
-0.0011493467027321458,
-0.0021951626986265182,
0.015908123925328255,
0.11511629819869995,
0.015602239407598972,
-0.020596249029040337,
0.11164602637290955,
-0.05309562757611275,
0.06097229942679405,
0.03815700113773346,
-0.09642775356769562,
0.049067821353673935,
0.024661308154463768,
0.025920143350958824,
0.0661349818110466,
0.003607169259339571,
-0.0015817737439647317,
-0.06733658164739609,
0.019510578364133835,
0.09285149723291397,
-0.008385400287806988,
-0.017228320240974426,
-0.002520774956792593,
-0.029428401961922646,
0.02952003665268421,
-0.04796827211976051,
0.020773589611053467,
0.030071238055825233,
-0.008678666315972805,
0.0993473082780838,
0.013892196118831635,
-0.027065930888056755,
0.11794409155845642,
-0.002080946695059538,
-0.0042099058628082275,
0.018292665481567383,
-0.023627785965800285,
-0.034521762281656265,
0.008829429745674133,
0.004476184956729412,
-0.03543252497911453,
-0.051949869841337204,
-0.011032131500542164,
0.01548704132437706,
-0.03508453071117401,
-0.02013295143842697,
0.013769196346402168,
-0.02790273167192936,
-0.005025832448154688,
-0.006553693674504757,
0.015608147718012333,
-0.03243253380060196,
-0.05270984768867493,
0.016142746433615685,
-0.028437314555048943,
-0.033959269523620605,
-0.027189763262867928,
-0.03829032555222511,
0.006083840038627386,
-0.031058548018336296,
-0.023118114098906517,
0.03837204724550247,
0.040001168847084045,
-0.06075655668973923,
-0.020286547020077705,
-0.01705390028655529,
-0.018257230520248413,
-0.014657615683972836,
0.06046603247523308,
0.03134825453162193,
-0.004753799177706242,
0.00023164149024523795,
0.025486823171377182,
-0.016959458589553833,
-0.02674419805407524,
0.01587669365108013,
-0.015627168118953705,
-0.005441709887236357,
-0.0021753457840532064,
-0.0024499455466866493,
-0.017474444583058357,
-0.025497442111372948,
0.01441589929163456,
0.00296881515532732,
-0.03403325751423836,
-0.010502557270228863,
-0.04462893307209015,
0.041195109486579895,
0.00884696189314127,
-0.0175025574862957,
0.01026814617216587,
0.028242221102118492,
0.012255444191396236,
0.01236156839877367,
-0.09840752929449081,
-0.023110724985599518,
0.016383016481995583,
0.0018531944369897246,
-0.005822041071951389,
-0.03104390949010849,
0.028446270152926445,
0.019126296043395996,
-0.004707445856183767,
0.03058517538011074,
0.011733761988580227,
0.007151281461119652,
0.028969179838895798,
0.021971093490719795,
0.0012464404571801424,
0.02187277190387249,
-0.0047607216984033585,
-0.009786115027964115,
0.024824654683470726,
0.06311973184347153,
0.044115085154771805,
0.027607355266809464,
-0.013460397720336914,
-0.00469261035323143,
-0.004303060006350279,
0.02202114649116993,
0.010219336487352848,
-0.03371463716030121,
0.002196989953517914,
-0.0306696854531765,
0.009449847042560577,
0.004201327450573444,
-0.051045212894678116,
0.029547087848186493,
-0.05640361085534096,
0.007129881531000137,
0.022557217627763748,
0.003595836227759719,
0.00277436850592494,
0.021332696080207825,
0.03651902452111244,
-0.0003803876170422882,
0.034373391419649124,
-0.037198614329099655,
0.02237875945866108,
-0.0034746385645121336,
0.021932724863290787,
0.03931942954659462,
0.048056673258543015,
-0.04377546161413193,
-0.062391165643930435,
0.021154960617423058,
-0.007750552613288164,
0.010941393673419952,
-0.036510977894067764,
0.004551408346742392,
-0.037276800721883774,
-0.0362648069858551,
0.0062563191168010235,
0.01633436419069767,
-0.00594946276396513,
-0.00024164900241885334,
-0.03140782192349434,
0.016249248757958412,
-0.028909772634506226,
0.01710567995905876,
0.030613379552960396,
0.007872485555708408,
-0.06583000719547272,
0.02027854695916176,
-0.028183041140437126,
0.008029402233660221,
0.015907173976302147,
0.001500080805271864,
0.008477382361888885,
0.0026373276486992836,
0.008213082328438759,
-0.032228417694568634,
0.060560937970876694,
0.05702948570251465,
-0.06413763761520386,
-0.035374272614717484,
-0.016971498727798462,
-0.016072440892457962,
0.005994311533868313,
-0.03409462794661522,
0.009726551361382008,
-0.013335231691598892,
-0.013813165947794914,
0.03645455464720726,
-0.0277538038790226,
-0.013944411650300026,
-0.040418680757284164,
0.018554504960775375,
0.03603236749768257,
0.010319609194993973,
0.03345349431037903,
0.037775084376335144,
0.013339336961507797,
-0.004596242681145668,
0.022771405056118965,
-0.0360584557056427,
-0.03576846793293953,
0.0024150165263563395,
0.00519306818023324,
0.014224939048290253,
0.005526942666620016,
-0.010415509343147278,
-0.010214006528258324,
0.005963453557342291,
0.011142898350954056,
0.004688639659434557,
-0.019716039299964905,
0.0009365272126160562,
0.011028066277503967,
-0.025578277185559273,
-0.05001448094844818,
-0.0022951513528823853,
0.006376324687153101,
-0.023814145475625992,
-0.053897757083177567,
-0.020028971135616302,
0.033387262374162674,
0.019333144649863243,
0.03282666951417923,
0.018913105130195618,
-0.04320129379630089,
-0.03000231646001339,
-0.012171114794909954,
-0.006138224620372057,
-0.0391010083258152,
0.011472621001303196,
0.030252423137426376,
0.0265693049877882,
0.02647325210273266,
0.03236369043588638,
-0.030404461547732353,
0.022008923813700676,
0.0017939344979822636,
-0.015040835365653038,
0.05921196565032005,
-0.010268699377775192,
0.02105344831943512,
-0.04798785597085953,
0.06772114336490631,
-0.028913618996739388,
0.02426024153828621,
-0.007205598056316376,
0.0030161545146256685,
0.036266863346099854,
0.05931806564331055,
0.001678312080912292,
-0.020088668912649155,
-0.0384809747338295,
0.028979042544960976,
0.009159996174275875,
-0.011258670128881931,
-0.011497906409204006,
0.010695282369852066,
0.008032243698835373,
-0.017675530165433884,
0.03218281641602516,
-0.03600336238741875,
0.020298628136515617,
0.0014627230120822787,
0.003899650415405631,
0.0241536982357502,
0.012627659365534782,
0.00302345072850585,
-0.01589713990688324,
0.020967723801732063,
-0.012127921916544437,
-0.000818301341496408,
-0.00783348549157381,
0.017005236819386482,
-0.011098797433078289,
0.0017916089855134487,
0.007693756837397814,
0.004959954880177975,
0.013704457320272923,
-0.04454157128930092,
-0.03465139493346214,
0.01715003326535225,
-0.017309213057160378,
0.0183713398873806,
0.033050063997507095,
0.04431057721376419,
0.026577044278383255,
0.02706499956548214,
-0.004909029696136713,
0.008207832463085651,
0.015579554252326488,
-0.011085381731390953,
-0.010230598971247673,
0.02559165470302105,
0.016287999227643013,
0.006383673753589392,
-0.00593177555128932,
-0.0540921613574028,
-0.012924767099320889,
0.0272486824542284,
0.010545364581048489,
0.011757276020944118,
-0.0440693162381649,
-0.016683291643857956,
-0.02921423688530922,
0.00870590191334486,
-0.03361380845308304,
0.019341997802257538,
-0.006214919500052929,
0.018370267003774643,
-0.0025679634418338537,
0.01307753473520279,
-0.011006238870322704,
0.031050514429807663,
-0.05396711453795433,
-0.014049960300326347,
0.0008366118418052793,
-0.041617900133132935,
0.07067927718162537,
-0.004830475430935621,
0.006845250725746155,
-0.05211402103304863,
0.014526568353176117,
0.025388270616531372,
-0.034851256757974625,
0.010261006653308868,
-0.00482603395357728,
0.0023743316996842623,
0.030173594132065773,
-0.04054911807179451,
-0.013719115406274796,
-0.007958004251122475,
0.02734498865902424,
0.023216068744659424,
-0.017716379836201668,
-0.01464261207729578,
-0.01333137508481741,
0.06717342883348465,
0.03123704344034195,
-0.03087753988802433,
0.017977522686123848,
-0.08710286021232605,
-0.02997131645679474,
-0.08213721960783005,
0.024897532537579536,
0.05195680260658264,
-0.020378196612000465,
0.00599912041798234,
-0.02469692938029766,
0.007212486583739519,
0.015618079341948032,
0.01655256748199463,
-0.010343117639422417,
0.0402698777616024,
-0.018315795809030533,
0.044958408921957016,
-0.018900644034147263,
-0.0524275079369545,
0.03679819405078888,
-0.012039550580084324,
-0.009886868298053741,
0.0022250330075621605,
0.06060196831822395,
-0.06389732658863068,
0.044733792543411255,
0.026214247569441795,
-0.014688445255160332,
0.023470664396882057,
0.014829379506409168,
0.02829837054014206,
-0.004126626532524824,
0.013180280104279518,
-0.04419884830713272,
0.01302523072808981,
-0.004508343990892172,
0.04309232160449028,
0.0433444008231163,
0.027478637173771858,
0.018746647983789444,
0.025528518483042717,
0.03762708604335785,
-0.010702598839998245,
-0.011441699229180813,
-0.054623983800411224,
0.01055239886045456,
-0.0003060200542677194,
0.024093952029943466,
0.027930743992328644,
0.006431298330426216,
0.023957232013344765,
-0.015808938071131706,
-0.030716096982359886,
-0.018625305965542793,
-0.03746418654918671,
-0.005122484639286995,
0.025377267971634865,
0.00011118115799035877,
-0.026439497247338295,
-0.01896408572793007,
-0.0024649277329444885,
-0.05880744755268097,
0.03286544978618622,
-0.002459796378389001,
0.013441279530525208,
0.00545570719987154,
0.010527586564421654,
0.0013455041917040944,
0.059733401983976364,
-0.0026583345606923103,
-0.055829841643571854,
0.04112086445093155,
0.0034148446284234524,
0.020185966044664383,
0.007996338419616222,
0.029416833072900772,
-0.04109283536672592,
-0.007352558430284262,
0.016104597598314285,
0.023817071691155434,
-0.0008362964726984501,
0.04858465865254402,
-0.021545598283410072,
-0.013291050679981709,
-0.031403206288814545,
-0.04307623952627182,
-0.02086544781923294,
0.03661235421895981,
0.012515120208263397,
-0.0021037468686699867,
0.008510703220963478,
-0.03140220046043396,
-0.025061028078198433,
0.004633971955627203,
-0.02692812867462635,
0.026702336966991425,
0.037990204989910126,
-0.01618002913892269,
-0.03156153857707977,
0.022336479276418686,
0.008733161725103855,
0.031131109222769737,
-0.03492926061153412,
-0.007585300598293543,
0.0023626964539289474,
-0.0078019131906330585,
0.004254947416484356,
-0.015313181094825268,
-0.00789365079253912,
0.0280335433781147,
0.01927373930811882,
-0.014149663038551807,
-0.005963237956166267,
-0.011344161815941334,
-0.00934109091758728,
-0.050800587981939316,
0.04816336929798126,
-0.03711763396859169,
-0.05802011862397194,
0.01187274418771267,
0.025515655055642128,
0.033717501908540726,
0.04119589552283287,
0.0387340672314167,
-0.009668508544564247,
-0.034442558884620667,
0.002219900954514742,
0.01024134922772646,
-0.020972566679120064,
0.008578995242714882,
-0.07453138381242752,
0.0019524935632944107,
0.030325761064887047,
-0.004335540346801281,
-0.05469467118382454,
0.03232138231396675,
-0.013022069819271564,
0.015543840825557709,
-0.02701232209801674,
-0.023511627689003944,
0.032885435968637466,
0.015563396736979485,
0.052298206835985184,
0.009951135143637657,
0.0015308870933949947,
0.04702446237206459,
-0.0015677539631724358,
0.057679787278175354,
0.013610532507300377,
0.03498230129480362,
0.0019818139262497425,
-0.06259935349225998,
-0.014126976951956749,
-0.0053717391565442085,
0.0541255846619606,
0.051214516162872314,
-0.029482940211892128,
-0.016780102625489235,
-0.018744206055998802,
-0.036570388823747635,
-0.021662283688783646,
-0.018728939816355705,
0.02429966814815998,
-0.00014548782201018184,
-0.018373198807239532,
-0.0018090810626745224,
0.01615978218615055,
0.034662723541259766,
-0.0073890769854187965,
0.018931569531559944,
0.03307731822133064,
-0.04718880355358124,
0.013625518418848515,
-0.019304029643535614,
-0.004150251857936382,
-0.060250744223594666,
-0.03200676292181015,
-0.0005849828012287617,
0.02692287415266037,
-0.011800792999565601,
-0.07279325276613235,
-0.04661964997649193,
0.011915397830307484,
-0.04376078024506569,
0.03161543235182762,
0.05153123661875725,
0.002095110947266221,
0.01979796215891838,
-0.018536552786827087,
-0.06953497231006622,
-0.04130907356739044,
-0.0057082632556557655,
-0.06076112762093544,
-0.002961832797154784,
0.014070688746869564,
0.03241559863090515,
0.022698475047945976,
-0.009407087229192257,
0.0016313581727445126,
0.007049303036183119,
-0.02546478621661663,
0.011002641171216965,
-0.006651891861110926,
0.0027871113270521164,
-0.06796495616436005,
-0.04875700920820236,
0.02555365301668644,
0.013465710915625095,
0.022698432207107544,
-0.02452949434518814,
0.02993669919669628,
0.03829072788357735,
0.034251030534505844,
-0.02175273187458515,
0.008554728701710701,
-0.008121908642351627,
0.013340977020561695,
-0.03942827880382538,
-0.0032134121283888817,
0.02684013918042183
] |
Open LLM Leaderboard: DROP deep dive | clefourrier | December 1, 2023 | leaderboard-drop-dive | community, research, nlp, evaluation, leaderboard | https://huggingface.co/blog/leaderboard-drop-dive | Normalization interrogations During our first deeper dive in these surprising behavior, we observed that the normalization step was possibly not working as intended: in some cases, this normalization ignored the correct numerical answers when they were directly followed by a whitespace character other than a space (a line return, for example). Let's look at an example, with the generation being 10\n\nPassage: The 2011 census recorded a population of 1,001,360, and the gold answer being 10. Normalization happens in several steps, both for generation and gold: 1) Split on separators |, -, or The beginning sequence of the generation 10\n\nPassage: contain no such separator, and is therefore considered a single entity after this step. 2) Punctuation removal The first token then becomes 10\n\nPassage (: is removed) 3) Homogenization of numbers Every string that can be cast to float is considered a number and cast to float, then re-converted to string. 10\n\nPassage stays the same, as it cannot be cast to float, whereas the gold 10 becomes 10.0. 4) Other steps A lot of other normalization steps ensue (removing articles, removing other whitespaces, etc.) and our original example becomes 10 passage 2011.0 census recorded population of 1001360.0. However, the overall score is not computed on the string, but on the bag of words (BOW) extracted from the string, here {'recorded', 'population', 'passage', 'census', '2011.0', '1001360.0', '10'}, which is compared with the BOW of the gold, also normalized in the above manner, {10.0}. As you can see, they don’t intersect, even though the model predicted the correct output! In summary, if a number is followed by any kind of whitespace other than a simple space, it will not pass through the number normalization, hence never match the gold if it is also a number! This first issue was likely to mess up the scores quite a bit, but clearly it was not the only factor causing DROP scores to be so low. We decided to investigate a bit more. | [
-0.03429301828145981,
-0.01311798021197319,
0.04060325399041176,
0.06581859290599823,
0.05656341463327408,
0.05020466446876526,
0.009748074226081371,
-0.008848457597196102,
-0.023587031289935112,
-0.004227538593113422,
-0.006276874337345362,
0.02435251511633396,
0.02119501121342182,
0.0005382102099247277,
0.0043987613171339035,
0.03252333775162697,
0.055679794400930405,
-0.039506565779447556,
0.05199659243226051,
-0.00938122346997261,
-0.0006078386795707047,
0.03080185130238533,
0.06425094604492188,
-0.008778633549809456,
0.00024946447229012847,
0.011177139356732368,
-0.0011064199497923255,
0.010431892238557339,
-0.043917495757341385,
0.0806271955370903,
-0.11784414201974869,
-0.0013434224529191852,
0.01994216814637184,
-0.07459867000579834,
-0.00408927584066987,
-0.05652965232729912,
-0.10800278931856155,
0.09543392062187195,
0.011062686331570148,
-0.013600735925137997,
0.013356980867683887,
-0.07613278925418854,
-0.01852184720337391,
0.010679121129214764,
-0.011904287151992321,
-0.003968913108110428,
-0.17203478515148163,
0.033352576196193695,
-0.071040078997612,
-0.0036220585461705923,
-0.07900986820459366,
0.01843138225376606,
-0.056384459137916565,
-0.007957737892866135,
-0.05330023542046547,
-0.051743585616350174,
-0.025299103930592537,
-0.07151252776384354,
0.07352692633867264,
0.013756711035966873,
0.06673512607812881,
-0.02753111906349659,
-0.009064423851668835,
-0.016167696565389633,
0.015527461655437946,
0.06537672132253647,
-0.029479295015335083,
0.02345832623541355,
-0.0708235651254654,
0.009328227490186691,
0.02941916137933731,
-0.026471776887774467,
0.02838084287941456,
-0.05358261987566948,
-0.03772108256816864,
-0.008795171976089478,
-0.023844072595238686,
0.05626911297440529,
0.00039489020127803087,
-0.02505931630730629,
-0.0666917935013771,
0.005139701999723911,
0.06412173062562943,
0.04992866516113281,
0.0225518848747015,
-0.028473172336816788,
0.06117161735892296,
0.0028654669877141714,
0.012791767716407776,
0.05183931440114975,
-0.04729824140667915,
-0.10587359964847565,
-0.021267326548695564,
0.09587656706571579,
0.05003921687602997,
0.01473474595695734,
0.01971016637980938,
0.029072746634483337,
0.004737029783427715,
0.001738454564474523,
-0.0707084909081459,
-0.010226874612271786,
0.09750591963529587,
-0.0594867542386055,
-0.09798223525285721,
0.0022415497805923223,
-0.026995498687028885,
-0.05154942348599434,
0.00042787526035681367,
-0.03362478315830231,
0.019797921180725098,
0.026285270228981972,
0.0411897674202919,
0.01581931672990322,
-0.03836061805486679,
0.0676381066441536,
0.0271247997879982,
-0.008818467147648335,
-0.002996475901454687,
0.010900482535362244,
-0.013263453729450703,
0.12277702987194061,
0.0862899050116539,
-0.011821447871625423,
-0.00548759289085865,
0.029095692560076714,
0.07032235711812973,
-0.007576046511530876,
-0.02967134863138199,
-0.018283644691109657,
-0.020668910816311836,
0.044056374579668045,
0.015153220854699612,
0.036836300045251846,
0.012281753122806549,
-0.03739277645945549,
0.0434301495552063,
-0.02835693769156933,
0.008203352801501751,
-0.06338901817798615,
-0.05837513878941536,
0.020125016570091248,
-0.04144169017672539,
0.052770622074604034,
-0.021981090307235718,
-0.002969569293782115,
-0.013714089058339596,
0.028871839866042137,
0.03513769432902336,
0.04521973803639412,
0.03535257279872894,
0.029839759692549706,
-0.03858276084065437,
-0.11998651921749115,
0.08069292455911636,
0.01155767124146223,
-0.014856724999845028,
-0.03109271451830864,
-0.06550811231136322,
0.005933371838182211,
-0.008124267682433128,
0.0621718168258667,
-0.014577307738363743,
-0.010139460675418377,
0.1101488247513771,
0.03948394954204559,
0.010572150349617004,
0.07882017642259598,
0.007191002834588289,
0.039667900651693344,
0.027239946648478508,
-0.010229500010609627,
0.10816656798124313,
-0.05758611857891083,
-0.05405854061245918,
0.0601508691906929,
-0.0023139931727200747,
0.03600366413593292,
0.044830042868852615,
0.008394338190555573,
-0.029105206951498985,
0.02395605482161045,
0.02476062998175621,
0.051144007593393326,
-0.01722635142505169,
-0.043559372425079346,
0.015272356569766998,
-0.0438368059694767,
-0.0056879883632063866,
0.036818861961364746,
-0.057836730033159256,
-0.008795946836471558,
0.06584908813238144,
-0.04133160784840584,
0.03678363561630249,
-0.10818814486265182,
-0.024712074548006058,
0.09631649404764175,
-0.0011172918602824211,
0.013540645129978657,
-0.015367493964731693,
0.028148086741566658,
0.058663368225097656,
-0.07812835276126862,
0.035624559968709946,
0.1065320149064064,
0.004202631767839193,
-0.05801048129796982,
0.01578259840607643,
0.011768053285777569,
0.026611575856804848,
-0.08838958293199539,
0.05459102988243103,
-0.046706970781087875,
-0.037501174956560135,
-0.060523420572280884,
-0.022121643647551537,
-0.022096985951066017,
0.05323141813278198,
-0.08590927720069885,
0.09065639972686768,
-0.07299462705850601,
0.10348773747682571,
-0.03262541443109512,
0.0047288755886256695,
0.03475412353873253,
0.061019107699394226,
0.08804851770401001,
0.03940867632627487,
-0.05653488636016846,
-0.02760843187570572,
0.004911541938781738,
0.046992428600788116,
0.058799680322408676,
-0.027776295319199562,
0.04744627699255943,
0.015703901648521423,
-0.0031587823759764433,
0.01426711119711399,
-0.004356076940894127,
-0.01659788191318512,
-0.01763233169913292,
0.015285912901163101,
0.03599071875214577,
-0.06138383969664574,
0.0428788848221302,
0.0543707013130188,
-0.02116067335009575,
-0.07672928273677826,
-0.005110140889883041,
-0.04737843573093414,
0.018396733328700066,
-0.03444773703813553,
-0.028103798627853394,
0.01737544871866703,
0.02580912597477436,
0.03529822826385498,
0.0370103195309639,
-0.06227486580610275,
-0.026374535635113716,
-0.04943780601024628,
-0.02835649438202381,
0.012752487324178219,
-0.04296388477087021,
0.023545999079942703,
-0.04092717543244362,
0.0013660516124218702,
0.011687655933201313,
-0.029336368665099144,
0.028909455984830856,
-0.0017334448639303446,
-0.03391491249203682,
0.009525462985038757,
0.016158033162355423,
0.007401276379823685,
0.020420841872692108,
0.01348529476672411,
-0.06527601182460785,
-0.020521078258752823,
0.027891160920262337,
-0.020613431930541992,
-0.03317016735672951,
0.013023681938648224,
0.018904641270637512,
0.014803411439061165,
-0.008532678708434105,
0.051018696278333664,
0.014304857701063156,
-0.006037927232682705,
0.01654186099767685,
0.02535458281636238,
0.019001564010977745,
0.004469607025384903,
-0.008320714347064495,
0.06159675493836403,
0.004766239784657955,
0.0032376644667237997,
0.027049588039517403,
-0.010029967874288559,
0.041775207966566086,
0.014723340980708599,
0.019756227731704712,
0.014700088649988174,
-0.012730641290545464,
-0.04228974133729935,
0.04274772107601166,
0.0025283994618803263,
0.08179040253162384,
-0.11145631968975067,
0.010169942863285542,
0.0015227054245769978,
0.02198357693850994,
-0.0301568154245615,
0.0029382973443716764,
0.0804407075047493,
0.0033998428843915462,
-0.02834220975637436,
-0.0030241135973483324,
-0.00391561072319746,
0.016305454075336456,
0.001008849241770804,
0.05416254699230194,
-0.009663328528404236,
-0.0012946267379447818,
0.012196642346680164,
-0.020946022123098373,
0.00013426026271190494,
0.04614641144871712,
0.0019332958618178964,
0.05239180475473404,
0.008813990280032158,
-0.03568700700998306,
-0.04635782912373543,
0.0439736470580101,
0.04150368273258209,
0.021620847284793854,
-0.006104298401623964,
-0.03017335757613182,
-0.005594200454652309,
-0.0029730775859206915,
0.022771837189793587,
-0.005295340437442064,
-0.048712678253650665,
-0.014608876779675484,
-0.008855356834828854,
0.01926799677312374,
0.02515132911503315,
0.048851896077394485,
0.013415024615824223,
0.04046406224370003,
0.0194382444024086,
-0.015292184427380562,
-0.003780385246500373,
-0.030579732730984688,
0.00398920476436615,
-0.049721844494342804,
0.04195515811443329,
-0.0855967178940773,
-0.019934765994548798,
-0.07651033252477646,
-0.013507475145161152,
0.05547236278653145,
-0.013839644379913807,
-0.0072248345240950584,
0.012367903254926205,
0.009411617182195187,
0.009627273306250572,
-0.04946122691035271,
-0.026486700400710106,
0.037702526897192,
0.0017332311253994703,
-0.011062189005315304,
-0.037971727550029755,
0.021647853776812553,
0.014499641954898834,
0.04593924060463905,
-0.023159712553024292,
0.03583830967545509,
0.01615399494767189,
0.004852035082876682,
0.05585669353604317,
0.004671065136790276,
-0.018080230802297592,
-0.04625646024942398,
-0.02534404769539833,
-0.021013306453824043,
0.011183368042111397,
-0.012364459224045277,
-0.023082291707396507,
0.025961382314562798,
-0.012388576753437519,
-0.003602800192311406,
-0.03546300157904625,
-0.012011626735329628,
0.0505547858774662,
-0.004257498774677515,
-0.02055453509092331,
0.03178301453590393,
0.06025570631027222,
-0.0290084145963192,
-0.019128747284412384,
0.01003333367407322,
-0.015853432938456535,
-0.030563555657863617,
0.02457699179649353,
-0.01695607416331768,
0.01782011240720749,
0.03661682829260826,
0.03193879500031471,
-0.021379178389906883,
-0.004555203020572662,
0.013920092955231667,
0.020345130935311317,
0.010438001714646816,
-0.053297869861125946,
0.0031305060256272554,
-0.030361395329236984,
-0.0014302501222118735,
0.02937570959329605,
-0.00510249100625515,
-0.0038987270090729,
-0.02365809492766857,
0.014098996296525002,
-0.023174792528152466,
-0.04618292301893234,
-0.031133996322751045,
-0.03514287248253822,
-0.011984976939857006,
-0.043994829058647156,
0.03234256058931351,
0.023581206798553467,
0.032126374542713165,
0.016522318124771118,
0.010084121488034725,
0.05101553350687027,
0.026441160589456558,
0.004224170930683613,
0.0021409799810498953,
-0.029572825878858566,
-0.0000481693132314831,
0.0019796667620539665,
-0.04021626338362694,
0.025081433355808258,
-0.00048055252409540117,
-0.006331021897494793,
0.02951362356543541,
-0.03125230595469475,
-0.07705410569906235,
-0.04310319945216179,
-0.020930098369717598,
0.06117663159966469,
-0.04673965275287628,
0.0347997322678566,
0.014582903124392033,
0.020888537168502808,
-0.01937221921980381,
-0.028026485815644264,
0.03463020920753479,
0.03737759590148926,
-0.009546786546707153,
-0.01169261522591114,
-0.037291646003723145,
0.04116366431117058,
-0.041838981211185455,
-0.006751197390258312,
0.006997915916144848,
-0.021157748997211456,
0.0440496988594532,
-0.00974926445633173,
0.014114094898104668,
-0.023846624419093132,
0.0034784318413585424,
-0.029119813814759254,
-0.024026425555348396,
-0.01686556078493595,
-0.011040281504392624,
-0.031161043792963028,
-0.01791677251458168,
-0.027860719710588455,
-0.028425918892025948,
0.022736042737960815,
-0.021488528698682785,
0.021932777017354965,
0.020294930785894394,
0.017270250245928764,
0.016116106882691383,
-0.0363418348133564,
-0.00293322023935616,
0.020513543859124184,
0.004059512168169022,
0.009971817955374718,
-0.016825024038553238,
-0.005582947283983231,
0.02952003665268421,
0.037957027554512024,
0.08898738026618958,
-0.009690049104392529,
0.04169703647494316,
-0.009849575348198414,
-0.023872612044215202,
0.022865762934088707,
-0.020414533093571663,
-0.021567733958363533,
-0.013082633726298809,
0.019267456606030464,
0.05411665886640549,
-0.025700120255351067,
-0.028206218034029007,
0.020610416308045387,
0.040407076478004456,
0.013464674353599548,
-0.013038820587098598,
-0.022159377112984657,
0.020097048953175545,
0.007479120511561632,
-0.031313639134168625,
0.031233467161655426,
-0.031088504940271378,
0.03627057000994682,
-0.023181535303592682,
-0.03426076099276543,
-0.02554812654852867,
0.026847437024116516,
-0.05551407113671303,
-0.03566862642765045,
-0.007124869152903557,
-0.023032719269394875,
0.0363205261528492,
0.00787373073399067,
0.03496295586228371,
-0.018201623111963272,
0.020850827917456627,
0.01053466647863388,
-0.02182643674314022,
0.01892159692943096,
0.02020813338458538,
0.010753098875284195,
-0.004543990828096867,
0.010383207350969315,
0.05104793608188629,
-0.007491131778806448,
0.031707391142845154,
0.0192622859030962,
0.021612778306007385,
-0.028029702603816986,
-0.005476534832268953,
0.011318826116621494,
0.005580018740147352,
0.011199296452105045,
-0.01567806676030159,
-0.00372344721108675,
0.032306820154190063,
-0.0014318189350888133,
0.014097030274569988,
0.036998774856328964,
-0.012256492860615253,
0.007972224615514278,
0.0015294775366783142,
0.011081469245254993,
-0.007775644771754742,
-0.028884271159768105,
0.04042882099747658,
0.05276905745267868,
0.02627495490014553,
0.02736135572195053,
-0.023275364190340042,
0.021334826946258545,
-0.010066205635666847,
0.02562107890844345,
-0.05705877020955086,
-0.016070563346147537,
0.014011320658028126,
-0.016820337623357773,
0.029287194833159447,
0.03780943527817726,
-0.03228580579161644,
0.0032428738195449114,
0.03759816661477089,
0.014173217117786407,
-0.028254879638552666,
-0.02121588960289955,
0.04669695347547531,
0.006207120604813099,
0.006839029956609011,
-0.004777921829372644,
0.04487564042210579,
-0.0009353756904602051,
0.019706057384610176,
0.026826776564121246,
0.01035408303141594,
0.003470816183835268,
0.04381967708468437,
-0.006693262606859207,
0.02268686518073082,
0.051440417766571045,
0.038299866020679474,
0.0006553143612109125,
0.04351475089788437,
-0.042692847549915314,
0.003608937142416835,
-0.033220913261175156,
-0.047337524592876434,
-0.0031178658828139305,
0.028575431555509567,
0.011716813780367374,
-0.008134820498526096,
0.017748167738318443,
-0.037320274859666824,
0.015808239579200745,
0.0017256640130653977,
0.021283961832523346,
-0.034915246069431305,
-0.012239295057952404,
0.017594080418348312,
0.001541201607324183,
0.027035575360059738,
0.03943849354982376,
-0.03568577393889427,
-0.002103789709508419,
0.05212533473968506,
0.016454214230179787,
-0.0007346915081143379,
0.01310670468956232,
-0.006127818953245878,
-0.01210330706089735,
-0.014265733771026134,
0.003400143701583147,
0.05859146639704704,
0.0034318009857088327,
-0.025443216785788536,
-0.00043135081068612635,
0.014177327044308186,
-0.01501108705997467,
-0.030764035880565643,
-0.020513169467449188,
-0.054301097989082336,
0.001044386881403625,
-0.01932518184185028,
-0.0019392992835491896,
0.03031216748058796,
0.01587497442960739,
-0.057605236768722534,
0.010524765588343143,
-0.016860393807291985,
0.0149337537586689,
-0.011098639108240604,
-0.002193189924582839,
-0.038934532552957535,
-0.024919431656599045,
-0.0004969502333551645,
0.006044193170964718,
-0.0057047647424042225,
-0.018519965931773186,
-0.016745207831263542,
0.02148507535457611,
0.02217637002468109,
-0.02573903277516365,
0.02389407716691494,
-0.015656428411602974,
0.0009131078259088099,
-0.05238112062215805,
-0.0017866668058559299,
-0.01032169722020626,
-0.0051712836138904095,
-0.004934048280119896,
-0.039455316960811615,
-0.00337058468721807,
-0.026037873700261116,
0.014895368367433548,
0.00305535807274282,
0.026155076920986176,
-0.02849501557648182,
-0.02077595330774784,
-0.06415820121765137,
-0.03308042883872986,
0.015030602924525738,
-0.0625053346157074,
0.003601426025852561,
0.028120223432779312,
-0.033115558326244354,
0.0421333946287632,
-0.041393425315618515,
-0.024103324860334396,
0.011604269966483116,
0.04901224002242088,
-0.03149152547121048,
-0.03602083772420883,
-0.015956135466694832,
0.04910178482532501,
0.013126752339303493,
0.03640873357653618,
0.011309421621263027,
-0.0018942821770906448,
0.0171928983181715,
0.027883291244506836,
0.025342419743537903,
-0.008899277076125145,
0.029747167602181435,
-0.008830301463603973,
-0.05733487010002136,
-0.03142031282186508,
-0.015287685208022594,
-0.016422010958194733,
0.01968400925397873,
-0.042243897914886475,
0.03017769753932953,
0.0288491602987051,
-0.03282952308654785,
-0.006425058469176292,
-0.010934426449239254,
0.007056917063891888,
-0.0018308088183403015,
0.024452080950140953,
0.014439008198678493,
0.020023908466100693,
-0.002665536478161812,
0.00296649057418108,
-0.03611288219690323,
-0.013738705776631832,
-0.03339231014251709,
-0.025901909917593002,
0.005526315420866013,
0.011637832969427109,
-0.039193231612443924,
-0.030974525958299637,
0.0017954352078959346,
0.04312558472156525,
-0.010225923731923103,
-0.022647585719823837,
-0.0005573314847424626,
0.027511516585946083,
0.025666337460279465,
0.040168702602386475,
0.023041682317852974,
-0.016025755554437637,
0.019441835582256317,
0.019167695194482803,
-0.04407856613397598,
-0.00824358407407999,
-0.0030253995209932327,
0.0014836653135716915,
0.06466545909643173,
0.06309593468904495,
0.03152455762028694,
0.005159346852451563,
-0.044528618454933167,
0.00032497968641109765,
0.015870019793510437,
-0.02087233029305935,
-0.010949965566396713,
-0.026490051299333572,
0.011503336019814014,
-0.028881900012493134,
-0.02349531278014183,
0.03183215484023094,
-0.005269790533930063,
-0.04180103912949562,
-0.01903608627617359,
0.039552003145217896,
0.03098365105688572,
-0.0459764264523983,
-0.0020221516024321318,
-0.024400906637310982,
0.013207037933170795,
-0.012971900403499603,
0.02198726497590542,
0.03878490626811981,
0.040482863783836365
] |
Open LLM Leaderboard: DROP deep dive | clefourrier | December 1, 2023 | leaderboard-drop-dive | community, research, nlp, evaluation, leaderboard | https://huggingface.co/blog/leaderboard-drop-dive | Initial observations DROP (Discrete Reasoning Over Paragraphs) is an evaluation where models must extract relevant information from English-text paragraphs before executing discrete reasoning steps on them (for example, sorting or counting items to arrive at the correct answer, see the table below for examples). The metrics used are custom f1 and exact match scores. Examples of reasoning and paragraph from the original article. We added it to the Open LLM Leaderboard three weeks ago, and observed that the f1-scores of pretrained models followed an unexpected trend: when we plotted DROP scores against the leaderboard original average (of ARC, HellaSwag, TruthfulQA and MMLU), which is a reasonable proxy for overall model performance, we expected DROP scores to be correlated with it (with better models having better performance). However, this was only the case for a small number of models, and all the others had a very low DROP f1-score, below 10. Two trends can be observed in the DROP scores: some follow the average (in diagonal), others are stuck around 5 (vertical line on the right of the graph). | [
0.03558739647269249,
0.021518059074878693,
0.033888883888721466,
0.04404221475124359,
0.0826508179306984,
0.09940678626298904,
-0.029814045876264572,
0.05805531144142151,
-0.028244227170944214,
-0.03177494555711746,
-0.0737539604306221,
0.03188897296786308,
0.0440051406621933,
-0.03870510682463646,
0.04670903459191322,
0.03062409907579422,
0.0340237058699131,
-0.018982838839292526,
-0.01238790899515152,
-0.015603017061948776,
0.05727794021368027,
-0.05387745425105095,
-0.025810346007347107,
-0.03430197387933731,
0.014910715632140636,
-0.042969848960638046,
0.010642200708389282,
0.009455403313040733,
-0.08934416621923447,
0.011101369746029377,
0.014992836862802505,
0.013538242317736149,
-0.007035347633063793,
0.018080830574035645,
0.007830427028238773,
-0.0064186761155724525,
-0.06588006764650345,
0.05324370786547661,
0.045149244368076324,
-0.03197598084807396,
0.003222910687327385,
-0.05280018597841263,
0.03981361910700798,
-0.03812231495976448,
0.014968626201152802,
-0.03723083436489105,
-0.06727989763021469,
-0.014467195607721806,
0.015639955177903175,
-0.03302190452814102,
-0.09112585335969925,
-0.0002793035819195211,
-0.08882216364145279,
0.0389484167098999,
-0.03752700239419937,
-0.016360199078917503,
0.00465242238715291,
-0.029915424063801765,
0.1176348328590393,
0.06089327856898308,
0.008190540596842766,
0.031355757266283035,
0.07271749526262283,
-0.04394366219639778,
0.053765926510095596,
-0.07494410872459412,
0.03760802373290062,
0.026978155598044395,
-0.10665786266326904,
0.013112746179103851,
-0.009548990987241268,
-0.034643083810806274,
0.05832171067595482,
0.02859051711857319,
0.01424779836088419,
-0.006581020541489124,
0.10021960735321045,
0.0847831666469574,
-0.09345831722021103,
-0.03459011763334274,
-0.011654210276901722,
0.03391468897461891,
-0.04468705505132675,
0.031155118718743324,
-0.004828651435673237,
0.04046785831451416,
0.0542534664273262,
-0.04400305449962616,
-0.05390041321516037,
0.04767540097236633,
-0.058419231325387955,
-0.0689031183719635,
0.0019378118449822068,
0.018383720889687538,
-0.019464384764432907,
-0.022014152258634567,
0.03186687454581261,
0.0022184732370078564,
-0.005558337084949017,
-0.04380905255675316,
0.010233007371425629,
-0.05089955031871796,
0.0005819558864459395,
-0.04506244137883186,
-0.03335672244429588,
-0.01591571792960167,
-0.04920138046145439,
-0.02260742150247097,
-0.024316178634762764,
0.0012516509741544724,
-0.02912469580769539,
0.02254309505224228,
0.057826098054647446,
0.04196958243846893,
-0.08892463892698288,
0.008868249133229256,
0.06463196128606796,
0.002679921453818679,
0.052265118807554245,
0.057023391127586365,
-0.08385642617940903,
0.009294961579144001,
0.1129765436053276,
0.018496772274374962,
0.022134358063340187,
0.028803089633584023,
0.06505837291479111,
0.016511254012584686,
0.02745772898197174,
0.00295756827108562,
0.014914654195308685,
-0.029855389147996902,
-0.03057125210762024,
-0.045324090868234634,
-0.05934974178671837,
-0.046588219702243805,
0.01993696205317974,
-0.07232362776994705,
0.07090866565704346,
0.005819267593324184,
-0.04137925058603287,
-0.012552049942314625,
-0.05193326249718666,
-0.03247280791401863,
0.002108280546963215,
-0.005733544006943703,
-0.06339006125926971,
-0.03947906196117401,
0.05315522849559784,
0.019501520320773125,
-0.09057623147964478,
0.07050556689500809,
-0.007094124332070351,
-0.0009606436360627413,
0.03135552629828453,
0.003912866115570068,
0.045272182673215866,
0.011967562139034271,
-0.06997400522232056,
0.048817139118909836,
-0.06740497052669525,
0.06746294349431992,
0.0024864196311682463,
0.04557398706674576,
0.08306732028722763,
0.014631425030529499,
0.02446279488503933,
0.01024888176470995,
0.010733812116086483,
0.03738398477435112,
0.03477059304714203,
-0.016787828877568245,
0.1010189950466156,
-0.03588877618312836,
-0.0064105992205441,
0.05556724593043327,
-0.024603862315416336,
-0.024281999096274376,
0.04016582667827606,
0.010942142456769943,
-0.027123291045427322,
0.03455168008804321,
0.0004492932348512113,
-0.013966992497444153,
0.027230730280280113,
-0.06421758979558945,
0.12080737948417664,
0.005521997809410095,
-0.06064765527844429,
-0.04883319139480591,
-0.07231023162603378,
0.04484950006008148,
0.16437095403671265,
0.004459724295884371,
0.06761330366134644,
-0.08257618546485901,
-0.028132399544119835,
0.05236761271953583,
0.07969795912504196,
0.00968167744576931,
0.07327771186828613,
0.06667246669530869,
0.07210087776184082,
-0.01307854987680912,
0.02096806839108467,
0.05859055742621422,
0.0036016632802784443,
0.006160402670502663,
-0.02496463805437088,
0.04377517104148865,
0.019805792719125748,
-0.08724191784858704,
-0.024811536073684692,
0.011906289495527744,
-0.043646592646837234,
0.0019869368989020586,
0.007566675543785095,
0.075832299888134,
-0.007517803460359573,
-0.06395190954208374,
0.046345800161361694,
-0.046910032629966736,
0.08088718354701996,
-0.0029243025928735733,
-0.06219549477100372,
0.021683938801288605,
0.0989641398191452,
0.023880619555711746,
0.060531940311193466,
0.014457332901656628,
-0.05222691223025322,
0.005656042136251926,
0.07540512830018997,
0.0636444166302681,
0.0014451006427407265,
-0.024663938209414482,
-0.02560521848499775,
-0.042639702558517456,
0.011552771553397179,
-0.003158045234158635,
0.02899925410747528,
0.03067026659846306,
-0.014166409149765968,
0.05378902330994606,
0.008417527191340923,
-0.0038485019467771053,
0.12663574516773224,
-0.027140965685248375,
-0.03981541097164154,
0.0011780074564740062,
-0.012442213483154774,
-0.01010641735047102,
-0.02152651734650135,
-0.031051987782120705,
-0.0621333010494709,
-0.0031456290744245052,
-0.008513840846717358,
-0.0025161008816212416,
-0.008988100104033947,
-0.038626912981271744,
-0.026616785675287247,
-0.04913412034511566,
-0.013305805623531342,
-0.02955690212547779,
0.02542802318930626,
-0.07768087834119797,
0.02975989691913128,
-0.01274089515209198,
-0.058921825140714645,
0.002595206955447793,
0.017987165600061417,
-0.020426906645298004,
0.0341733880341053,
0.017583148553967476,
0.054674841463565826,
0.021247323602437973,
0.032830119132995605,
-0.02505192719399929,
-0.015702027827501297,
-0.02660791017115116,
-0.01987322047352791,
-0.01767456904053688,
0.041784726083278656,
0.040926218032836914,
0.0017867147689685225,
-0.017360519617795944,
0.035965606570243835,
-0.00477623613551259,
-0.01592448353767395,
-0.0033503659069538116,
-0.016615835949778557,
-0.02972961962223053,
-0.05989186093211174,
0.009566346183419228,
-0.010240612551569939,
0.009524424560368061,
0.0024424055591225624,
-0.0051192427054047585,
-0.042214229702949524,
-0.024196704849600792,
-0.029026789590716362,
0.03262737765908241,
0.03650394827127457,
-0.008147258311510086,
-0.0003528220404405147,
0.02976304292678833,
-0.012673553079366684,
0.04814251512289047,
-0.07185439765453339,
-0.001559533760882914,
0.07835108786821365,
-0.04894287884235382,
-0.002705969149246812,
-0.025841359049081802,
0.07244163751602173,
-0.003939787391573191,
-0.02753879502415657,
-0.03496845066547394,
0.03271162509918213,
-0.0019143674289807677,
-0.0052183847874403,
0.03964386135339737,
-0.010682106018066406,
0.03284141421318054,
0.0034828921779990196,
-0.01795175112783909,
0.015499935485422611,
0.03750048950314522,
0.011146361008286476,
0.01446900051087141,
0.006708445027470589,
0.00032050907611846924,
-0.03637772053480148,
0.016161732375621796,
0.01101640984416008,
0.05481782183051109,
0.01067611388862133,
-0.004313766025006771,
0.03528430312871933,
-0.0033616232685744762,
-0.06631331890821457,
0.04460082948207855,
-0.03607853874564171,
-0.038646649569272995,
0.0358969122171402,
0.020764628425240517,
-0.02704811841249466,
0.09264974296092987,
0.005530235823243856,
0.011895032599568367,
0.014827613718807697,
-0.04574035853147507,
0.014834337867796421,
0.012564897537231445,
-0.002776807639747858,
0.006199463736265898,
0.000053598218073602766,
-0.023999134078621864,
-0.016382962465286255,
-0.012119174003601074,
-0.011190565302968025,
0.03559606522321701,
-0.05776787921786308,
-0.004430423956364393,
0.022094229236245155,
-0.022768748924136162,
0.00426642457023263,
0.007903233170509338,
-0.013980377465486526,
0.016375482082366943,
0.003754874225705862,
-0.02391352877020836,
-0.014424190856516361,
0.013285977765917778,
0.010250559076666832,
0.021674100309610367,
-0.019405655562877655,
-0.013414382003247738,
-0.005766674876213074,
0.02281380072236061,
0.03855641931295395,
-0.0015150172403082252,
0.001991397002711892,
-0.017315013334155083,
-0.0024746351409703493,
-0.04887552186846733,
0.019876794889569283,
0.020888740196824074,
-0.014869722537696362,
0.006755582056939602,
-0.01976608671247959,
-0.02913811430335045,
-0.007357036229223013,
-0.01245589554309845,
0.028203897178173065,
-0.002473520115017891,
0.0371130108833313,
-0.032419029623270035,
-0.021526215597987175,
0.02209344506263733,
-0.050167396664619446,
0.007625509053468704,
-0.03509477153420448,
0.03675222396850586,
-0.023587461560964584,
0.011341150850057602,
0.01322187390178442,
0.014124288223683834,
0.006954328157007694,
-0.031819891184568405,
-0.026683300733566284,
0.022442152723670006,
0.0011317977914586663,
0.01764431595802307,
-0.011900514364242554,
0.02625136263668537,
-0.013660079799592495,
-0.028745880350470543,
-0.005352348554879427,
-0.009147240780293941,
0.0425226166844368,
0.04199826717376709,
0.025350889191031456,
-0.0076300050131976604,
-0.015384446829557419,
-0.002070486079901457,
-0.010336561128497124,
0.007310421671718359,
-0.06285770982503891,
-0.008844094350934029,
-0.0013543707318603992,
-0.0011346692917868495,
0.014653529040515423,
-0.0027317474596202374,
-0.035524461418390274,
-0.05015011876821518,
-0.006594346836209297,
-0.056806471198797226,
-0.01702120527625084,
0.030375655740499496,
0.019262172281742096,
0.0206493828445673,
0.033954668790102005,
-0.035872288048267365,
0.013318159617483616,
0.0321211963891983,
0.005071974825114012,
-0.0031968720722943544,
0.036627840250730515,
0.0032647517509758472,
0.030990412458777428,
-0.058841947466135025,
0.053256310522556305,
-0.0032140263356268406,
0.03919224813580513,
-0.016035713255405426,
-0.01881348341703415,
0.009570842608809471,
0.037968020886182785,
0.022875921800732613,
-0.002664378611370921,
-0.01926209218800068,
-0.004704390652477741,
-0.006334845442324877,
-0.013322575017809868,
-0.029600054025650024,
-0.019183380529284477,
0.045732758939266205,
-0.016954101622104645,
0.01269566174596548,
-0.0273845586925745,
-0.029285738244652748,
0.008637587539851665,
-0.043541889637708664,
0.010033193044364452,
0.03530987724661827,
-0.00509188137948513,
-0.051481831818819046,
-0.015397242270410061,
-0.016707949340343475,
-0.012607507407665253,
-0.005873341578990221,
0.05721104145050049,
0.013433655723929405,
-0.005280077923089266,
0.04507607966661453,
0.007662833668291569,
0.021999459713697433,
-0.029096323996782303,
-0.05089223384857178,
0.040520887821912766,
0.0008387405541725457,
0.005181001964956522,
-0.00042104447493329644,
0.04423494264483452,
0.038719888776540756,
0.01683211140334606,
0.024198034778237343,
-0.013409296981990337,
0.010921343229711056,
0.010587555356323719,
-0.02588224597275257,
-0.018670495599508286,
0.01425172109156847,
0.04040955379605293,
0.04065222293138504,
-0.0524156354367733,
-0.015096217393875122,
-0.02105383388698101,
0.02827930636703968,
0.03266298025846481,
0.0442802831530571,
-0.017140576615929604,
0.043304234743118286,
-0.0573323555290699,
-0.009928504005074501,
0.024751167744398117,
-0.021632811054587364,
0.00484091741964221,
-0.03744914382696152,
-0.009803679771721363,
-0.002458458999171853,
0.003734458237886429,
-0.0428951233625412,
0.0058382111601531506,
0.042364928871393204,
-0.005612905602902174,
0.05956469476222992,
0.012927218340337276,
-0.034127723425626755,
-0.09762805700302124,
0.036927033215761185,
0.025412777438759804,
-0.0029003373347222805,
0.018117671832442284,
-0.0006563927745446563,
-0.07063406705856323,
0.01761455275118351,
-0.010568656958639622,
0.012179003097116947,
0.037685003131628036,
0.03945506364107132,
0.02962387166917324,
0.012604021467268467,
-0.030910277739167213,
0.008756313472986221,
0.02696058340370655,
-0.0005401201779022813,
-0.017001250758767128,
-0.0071777706034481525,
-0.05035282298922539,
-0.07459305226802826,
-0.0784892812371254,
0.009038063697516918,
0.042464062571525574,
-0.0003405744209885597,
0.029438110068440437,
0.0440324991941452,
-0.024068409577012062,
0.024102365598082542,
-0.047497786581516266,
0.023081548511981964,
0.018164219334721565,
0.01767806150019169,
-0.02147681824862957,
-0.01372971385717392,
0.005833643954247236,
0.0015260593499988317,
0.01813565380871296,
-0.04182058572769165,
0.012568991631269455,
0.047805722802877426,
-0.05289691314101219,
0.021850042045116425,
0.02268262207508087,
-0.04166204109787941,
-0.004570394288748503,
0.02033165842294693,
0.02487948350608349,
-0.03334281966090202,
0.024396084249019623,
0.007077408023178577,
0.03506120666861534,
-0.028169361874461174,
0.00855875201523304,
-0.0013292889343574643,
0.01431888248771429,
-0.012420720420777798,
0.008102974854409695,
0.0259308610111475,
-0.005454474128782749,
-0.005489425268024206,
0.010457010008394718,
0.0024005130399018526,
0.0033061362337321043,
0.03841305896639824,
0.01181353535503149,
-0.024244485422968864,
0.016289876773953438,
0.02738623507320881,
-0.04649792239069939,
-0.044578295201063156,
-0.010188594460487366,
0.004024585708975792,
0.013120781630277634,
0.03026559017598629,
-0.003072578925639391,
-0.0030207608360797167,
0.020833181217312813,
-0.05025072395801544,
0.03260678052902222,
-0.02184324525296688,
-0.005333091598004103,
0.02594335749745369,
-0.005879452917724848,
0.013774216175079346,
0.040723152458667755,
-0.009090992622077465,
-0.03949728235602379,
-0.023872720077633858,
-0.001675538718700409,
-0.028277087956666946,
0.037229739129543304,
0.03278796002268791,
-0.02550409361720085,
-0.006609405390918255,
0.020617444068193436,
0.008989917114377022,
0.006719037424772978,
0.0403096079826355,
-0.04424092173576355,
-0.03363283723592758,
-0.044286396354436874,
-0.03661080822348595,
-0.03343098610639572,
0.0077200997620821,
0.037558626383543015,
0.012474889867007732,
0.04949900880455971,
-0.028800375759601593,
0.04083884507417679,
-0.06268331408500671,
-0.01256279181689024,
-0.0021273044403642416,
-0.04264480248093605,
-0.03634074702858925,
0.003709993092343211,
-0.029860731214284897,
-0.033318229019641876,
0.0073309652507305145,
-0.014737927354872227,
0.012860879302024841,
0.0033224832732230425,
-0.0019300105050206184,
0.02677057310938835,
0.02110631950199604,
-0.0113855991512537,
0.025328056886792183,
0.004889385309070349,
0.007708351127803326,
0.002777714282274246,
-0.011868766508996487,
0.006935754790902138,
-0.04181414842605591,
-0.002068279078230262,
-0.020622914656996727,
-0.0557810477912426,
-0.02323906123638153,
-0.004821149166673422,
0.039442278444767,
0.07117199897766113,
-0.005591655150055885,
0.013910017907619476,
-0.016073288396000862,
-0.0054712858982384205,
0.011239380575716496,
-0.0519290566444397,
0.009961845353245735,
-0.029597127810120583,
0.012845597229897976,
-0.026315845549106598,
-0.02804676443338394,
-0.045310620218515396,
-0.011408424936234951,
0.023887665942311287,
0.028027765452861786,
0.003480315674096346,
-0.045774076133966446,
0.00045169887016527355,
-0.0057319640181958675,
0.03414282202720642,
0.046118516474962234,
0.004233891610056162,
0.06717561930418015,
-0.030084116384387016,
0.028079884126782417,
0.023796459659934044,
0.05412214249372482,
-0.032201267778873444,
-0.06541579961776733,
-0.007395466323941946,
0.017467955127358437,
0.015831876546144485,
0.020268380641937256,
-0.024341102689504623,
0.01631617546081543,
-0.05410722270607948,
-0.02688175067305565,
-0.010830376297235489,
-0.01734342612326145,
0.009454176761209965,
-0.03539910539984703,
0.0003438591957092285,
0.004475375637412071,
-0.009262362495064735,
0.00039532562368549407,
-0.025435958057641983,
-0.005405129864811897,
-0.0182582326233387,
-0.03269391506910324,
-0.010548422113060951,
-0.018277021124958992,
-0.008996213786303997,
-0.044907309114933014,
-0.02488473244011402,
0.04869790002703667,
0.005445942748337984,
-0.013317979872226715,
-0.009167277254164219,
-0.03457758575677872,
0.03161279484629631,
0.010385125875473022,
0.02362661436200142,
0.04341346025466919,
-0.00253578694537282,
-0.00508815748617053,
-0.00304460059851408,
-0.05181017518043518,
-0.07490670680999756,
0.008229698054492474,
-0.004618579056113958,
0.01384794432669878,
0.03621171414852142,
-0.010512404143810272,
0.016260098665952682,
0.03517675772309303,
-0.010859000496566296,
0.021000033244490623,
-0.04033956676721573,
-0.03438706323504448,
0.006721507757902145,
0.030424492433667183,
-0.005899488460272551,
-0.01503564603626728,
0.003403021953999996,
-0.0019092571455985308,
-0.0019968515262007713,
-0.022752664983272552,
0.0345197394490242,
0.020350774750113487,
0.041832469403743744,
-0.013500502333045006,
-0.02744489349424839,
-0.04733933135867119,
0.016911884769797325,
0.005825015716254711,
-0.011095624417066574,
-0.006972499191761017
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | LoRA LoRA is a fine-tuning technique that belongs to the family of "parameter-efficient" (PEFT) methods, which try to reduce the number of trainable parameters affected by the fine-tuning process. It increases fine-tuning speed while reducing the size of fine-tuned checkpoints. Instead of fine-tuning the model by performing tiny changes to all its weights, we freeze most of the layers and only train a few specific ones in the attention blocks. Furthermore, we avoid touching the parameters of those layers by adding the product of two smaller matrices to the original weights. Those small matrices are the ones whose weights are updated during the fine-tuning process, and then saved to disk. This means that all of the model original parameters are preserved, and we can load the LoRA weights on top using an adaptation method. The LoRA name (Low Rank Adaptation) comes from the small matrices we mentioned. For more information about the method, please refer to this post or the original paper. The diagram above shows two smaller orange matrices that are saved as part of the LoRA adapter. We can later load the LoRA adapter and merge it with the blue base model to obtain the yellow fine-tuned model. Crucially, unloading the adapter is also possible so we can revert back to the original base model at any point. In other words, the LoRA adapter is like an add-on of a base model that can be added and removed on demand. And because of A and B smaller ranks, it is very light in comparison with the model size. Therefore, loading is much faster than loading the whole base model. If you look, for example, inside the Stable Diffusion XL Base 1.0 model repo, which is widely used as a base model for many LoRA adapters, you can see that its size is around 7 GB. However, typical LoRA adapters like this one take a mere 24 MB of space ! There are far less blue base models than there are yellow ones on the Hub. If we can go quickly from the blue to yellow one and vice versa, then we have a way serve many distinct yellow models with only a few distinct blue deployments. For a more exhaustive presentation on what LoRA is, please refer to the following blog post:Using LoRA for Efficient Stable Diffusion Fine-Tuning, or refer directly to the original paper. | [
0.08202136307954788,
-0.059051524847745895,
0.008377701044082642,
0.007439372595399618,
0.06984630972146988,
0.07856978476047516,
-0.04168492928147316,
0.059693317860364914,
-0.03024148754775524,
-0.021843550726771355,
0.002128198044374585,
0.0024184512440115213,
-0.031464241445064545,
0.008488459512591362,
-0.04714673385024071,
-0.016767561435699463,
0.06628181040287018,
-0.08304852992296219,
-0.01486138254404068,
0.09851890057325363,
0.04056410491466522,
-0.038821276277303696,
0.04148635268211365,
-0.05383078008890152,
-0.01996396668255329,
-0.02960595302283764,
0.03582476079463959,
0.022001143544912338,
-0.0034089924301952124,
0.02718643844127655,
-0.08801531791687012,
-0.0007644135621376336,
0.012422223575413227,
-0.03096752054989338,
0.052851635962724686,
-0.07762903720140457,
0.001980733824893832,
0.04527026042342186,
-0.019622571766376495,
-0.05003294348716736,
-0.0003426761250011623,
0.02137143164873123,
-0.08282961696386337,
0.0683031752705574,
0.0391986258327961,
-0.03878086805343628,
-0.17205463349819183,
0.08104734122753143,
0.00019177499052602798,
-0.014856158755719662,
-0.13307708501815796,
0.0478624552488327,
0.03228173404932022,
0.03176077827811241,
0.01588192582130432,
-0.029419757425785065,
0.033737681806087494,
0.026046279817819595,
0.054188575595617294,
-0.02129765786230564,
0.037892960011959076,
-0.013519885949790478,
0.018347514793276787,
0.03180582448840141,
0.057186856865882874,
-0.02386975660920143,
0.003090423531830311,
0.021140582859516144,
-0.01467274408787489,
-0.01516425609588623,
0.00740917818620801,
-0.042600445449352264,
0.04416099935770035,
-0.004456884227693081,
-0.03339767083525658,
-0.07058107852935791,
0.014080136083066463,
0.05040304735302925,
0.027566617354750633,
-0.01842464506626129,
-0.0011345079401507974,
0.03590139001607895,
0.039524637162685394,
0.03872715309262276,
-0.005487340036779642,
-0.05530233308672905,
0.0559217669069767,
-0.00965580902993679,
-0.030263934284448624,
0.018787892535328865,
-0.04191536828875542,
-0.08209269493818283,
0.007563970983028412,
0.03510405868291855,
0.04465619847178459,
-0.02582668513059616,
0.016234388574957848,
0.004063197877258062,
0.0741567313671112,
0.022121421992778778,
-0.015996649861335754,
-0.06504110991954803,
0.06890805065631866,
-0.0901467502117157,
-0.05529976263642311,
0.006479326635599136,
0.009060848504304886,
-0.07138118892908096,
-0.04212548956274986,
0.029384933412075043,
-0.018860140815377235,
0.07373227924108505,
-0.006638337858021259,
0.028504101559519768,
-0.08544675260782242,
0.028610846027731895,
-0.007001092657446861,
0.0016271682688966393,
-0.008215338923037052,
0.033444784581661224,
-0.0038999412208795547,
0.13907752931118011,
0.09371087700128555,
0.02754734642803669,
0.007629522122442722,
0.043369438499212265,
0.04648389294743538,
-0.04283107444643974,
-0.044140782207250595,
0.03381901979446411,
0.03228342533111572,
-0.03317434340715408,
-0.012525231577455997,
-0.018183868378400803,
0.012777993455529213,
-0.08776842057704926,
-0.04416980966925621,
-0.02326527237892151,
0.03750816360116005,
0.006028275936841965,
-0.07410041242837906,
-0.01980493776500225,
0.006323252804577351,
-0.015544068068265915,
0.03380940482020378,
-0.028133828192949295,
-0.0304940864443779,
0.005299095530062914,
0.0006034803227521479,
0.000922978506423533,
-0.057546619325876236,
0.07556721568107605,
0.0028623284306377172,
-0.06371085345745087,
-0.01286547165364027,
0.007636898197233677,
-0.055145762860774994,
-0.09741625189781189,
-0.04281674325466156,
0.005014975089579821,
-0.04122617840766907,
-0.036660417914390564,
-0.02450445294380188,
-0.009798325598239899,
0.06821899116039276,
-0.03432861715555191,
0.017239298671483994,
0.043322306126356125,
0.050791122019290924,
-0.02254658378660679,
0.09680848568677902,
-0.028693530708551407,
0.1224462240934372,
0.007841162383556366,
-0.05657774955034256,
0.026578349992632866,
0.07241295278072357,
0.08363766968250275,
-0.042007382959127426,
-0.026897871866822243,
-0.05094941705465317,
0.02893459051847458,
-0.03887709602713585,
0.06242020055651665,
0.010452674701809883,
-0.10796328634023666,
0.054310452193021774,
-0.0054275235161185265,
0.024713609367609024,
-0.03200868144631386,
-0.03618187457323074,
0.056777290999889374,
0.0661197081208229,
-0.031198689714074135,
0.05146383121609688,
-0.11054926365613937,
-0.06773640960454941,
0.10631177574396133,
0.0460028238594532,
0.017913704738020897,
0.04940398409962654,
0.02948978915810585,
0.02389586716890335,
-0.021648919209837914,
-0.04060601070523262,
-0.023989828303456306,
0.01010181661695242,
-0.01615304872393608,
0.05795104056596756,
-0.008059023879468441,
-0.030893176794052124,
-0.03385581821203232,
0.03431306406855583,
-0.05602959543466568,
0.04762871935963631,
0.03577679023146629,
0.015881802886724472,
-0.038604751229286194,
0.0047331517562270164,
-0.07538120448589325,
0.13421092927455902,
0.008601653389632702,
-0.037196218967437744,
0.05026937276124954,
-0.04809417203068733,
0.00760101992636919,
0.0799194723367691,
-0.10842006653547287,
0.045031119138002396,
-0.04117084667086601,
-0.014150863513350487,
-0.053466249257326126,
-0.06600655615329742,
0.05135566368699074,
0.03132049739360809,
0.020686114206910133,
-0.004411756526678801,
-0.027968546375632286,
0.016373634338378906,
-0.0545518696308136,
0.026438988745212555,
0.02148311771452427,
0.03287661820650101,
0.04887143895030022,
-0.00927853211760521,
-0.0013349105138331652,
0.08508376777172089,
0.018266454339027405,
-0.03571762889623642,
0.012680471874773502,
-0.07444509863853455,
-0.047612302005290985,
-0.0012789826141670346,
-0.02042616717517376,
0.010154289193451405,
-0.04591381177306175,
0.004558011889457703,
-0.02351277321577072,
0.016209561377763748,
0.036249853670597076,
-0.011812550015747547,
0.009338833391666412,
-0.03584423288702965,
0.022616779431700706,
0.013271701522171497,
-0.022736921906471252,
-0.013666300103068352,
0.028326526284217834,
0.013393234461545944,
-0.02920936606824398,
0.033194221556186676,
0.021616732701659203,
-0.0075804791413247585,
0.01814199611544609,
-0.00042301681241951883,
-0.017497535794973373,
0.005677727051079273,
-0.028219934552907944,
-0.021125420928001404,
-0.008865056559443474,
0.01600152812898159,
0.00034026592038571835,
0.017029203474521637,
0.013228092342615128,
0.05523708090186119,
0.009207980707287788,
0.03576988726854324,
0.008900991640985012,
-0.025125687941908836,
0.05509115383028984,
-0.009608810767531395,
-0.015244880691170692,
-0.01286552008241415,
-0.0022680035326629877,
-0.016090404242277145,
0.014055559411644936,
-0.004048697184771299,
-0.009700704365968704,
-0.009776316583156586,
-0.03802702948451042,
0.03443862870335579,
-0.008490133099257946,
0.026677904650568962,
0.002097513759508729,
-0.039365287870168686,
0.06955589354038239,
0.021025648340582848,
0.05356411263346672,
-0.10804814845323563,
-0.03439053148031235,
-0.01705446094274521,
0.06153646856546402,
-0.017967382445931435,
-0.029428165405988693,
0.02792595699429512,
-0.02328368090093136,
0.03822307661175728,
-0.01700325310230255,
-0.018978958949446678,
0.02507062256336212,
0.006047057453542948,
0.017057126387953758,
-0.006636316422373056,
0.0006071137031540275,
0.042272359132766724,
-0.013734905049204826,
0.019761525094509125,
0.006159202195703983,
-0.03197934851050377,
0.03915227949619293,
0.004422474652528763,
0.01218322291970253,
-0.004615901969373226,
0.02357143722474575,
0.00625581806525588,
0.0013171617174521089,
-0.00688538420945406,
-0.005800770595669746,
-0.041230592876672745,
-0.02939510904252529,
-0.002395905554294586,
0.016742441803216934,
-0.03552264720201492,
0.02380686067044735,
-0.009247004985809326,
0.022013090550899506,
0.01911429688334465,
0.02129192277789116,
-0.0025006274227052927,
0.011176666244864464,
0.024969806894659996,
0.01578284241259098,
0.015781810507178307,
0.004740639589726925,
-0.028462428599596024,
-0.00823809951543808,
0.060771819204092026,
0.0073180110193789005,
0.005043612327426672,
0.014094151556491852,
0.03414303809404373,
0.01844046078622341,
-0.019970757886767387,
0.027761656790971756,
0.00621043611317873,
-0.012310156598687172,
0.01639424078166485,
-0.025589050725102425,
-0.06827372312545776,
-0.010000720620155334,
0.0063010891899466515,
-0.0027335595805197954,
-0.02056235820055008,
0.007449072785675526,
0.0034764474257826805,
0.027147328481078148,
-0.015109479427337646,
0.014887106604874134,
-0.03647487610578537,
0.01789127290248871,
0.03539333492517471,
0.0021933261305093765,
0.015352060087025166,
-0.0009738769149407744,
-0.0003918627626262605,
0.02139517106115818,
0.013718824833631516,
0.03303280845284462,
-0.05029769986867905,
-0.016906317323446274,
0.00681085791438818,
-0.021124765276908875,
0.02645403891801834,
0.022734064608812332,
0.021757792681455612,
-0.04695596173405647,
0.031877391040325165,
0.019207969307899475,
0.023315247148275375,
-0.014356941916048527,
0.03962685540318489,
-0.0006615346646867692,
0.01243565883487463,
0.016069063916802406,
0.058706000447273254,
0.005977419670671225,
0.038767438381910324,
0.04241189733147621,
0.019834082573652267,
0.014608949422836304,
-0.027527902275323868,
0.0072173080407083035,
-0.04416713863611221,
0.023647436872124672,
-0.03785198554396629,
0.0083681121468544,
0.0009989462560042739,
-0.025951888412237167,
0.017052145674824715,
-0.013274449855089188,
0.0011943948920816183,
-0.01631442829966545,
0.044844090938568115,
0.04262610897421837,
-0.05537387356162071,
-0.00037827115738764405,
-0.026313088834285736,
0.011655033566057682,
-0.0418815053999424,
0.01721230521798134,
0.010870936326682568,
-0.061625175178050995,
0.036035019904375076,
0.01584354229271412,
0.033037588000297546,
0.0018641684437170625,
-0.014720353297889233,
0.028101135045289993,
-0.04554633051156998,
-0.01685507595539093,
0.0017522774869576097,
0.022221358492970467,
-0.005736626219004393,
-0.0376664474606514,
-0.02573024481534958,
0.021825889125466347,
0.019964484497904778,
-0.047311414033174515,
-0.03644385561347008,
-0.01142110675573349,
0.05725476145744324,
-0.014990219846367836,
0.06144673004746437,
0.024264222010970116,
-0.054404307156801224,
-0.010712587274610996,
-0.03665711730718613,
0.009871399030089378,
0.08116433769464493,
-0.012156333774328232,
-0.0718563124537468,
-0.007432186976075172,
0.0008926547598093748,
-0.06869690865278244,
-0.013894367963075638,
-0.033446718007326126,
-0.03738859295845032,
0.019903503358364105,
-0.0032560788094997406,
0.004245342221111059,
-0.052204057574272156,
0.029477698728442192,
0.02106262929737568,
-0.026831967756152153,
0.0085013872012496,
-0.008868715725839138,
-0.006806166842579842,
-0.006669987924396992,
-0.021528923884034157,
-0.02342882752418518,
-0.025183778256177902,
-0.010482369922101498,
0.052559856325387955,
0.014705593697726727,
0.03300149738788605,
-0.021038340404629707,
-0.009424805641174316,
0.01955755427479744,
-0.012072722427546978,
0.004179010167717934,
0.027951514348387718,
-0.0021828473545610905,
0.00870722346007824,
0.013624998740851879,
0.015187595970928669,
0.04053407534956932,
0.024041004478931427,
0.06290273368358612,
0.04231159761548042,
0.03989095613360405,
0.028563400730490685,
-0.0065308185294270515,
-0.015093502588570118,
0.025378869846463203,
-0.007804470136761665,
0.01783701963722706,
-0.04270690307021141,
-0.03327270597219467,
-0.00653440784662962,
0.02855043113231659,
-0.027233557775616646,
-0.019883442670106888,
-0.0024415201041847467,
0.006951492745429277,
0.02813098020851612,
0.010746898129582405,
0.011171293444931507,
-0.02387915924191475,
-0.03614877909421921,
-0.011896142736077309,
-0.021769341081380844,
-0.053865380585193634,
0.02748456597328186,
-0.048197172582149506,
-0.047639839351177216,
0.02728128992021084,
0.005472690798342228,
-0.016165463253855705,
0.009483917616307735,
-0.04569797217845917,
-0.035417746752500534,
-0.00004027108661830425,
-0.008449842222034931,
-0.05087556689977646,
0.011105851270258427,
0.000086861131421756,
-0.018305504694581032,
0.03883975371718407,
0.024233555421233177,
0.024657389149069786,
-0.0005511539056897163,
-0.0019084905507043004,
0.009154092520475388,
-0.0028270890470594168,
-0.02729777619242668,
0.03931974247097969,
0.05280337482690811,
0.043111883103847504,
-0.009200521744787693,
-0.012507747858762741,
-0.049017708748579025,
-0.0016362397000193596,
-0.07519807666540146,
0.047438155859708786,
0.03239263966679573,
0.008472560904920101,
-0.0026059530209749937,
0.0029001780785620213,
0.014168973080813885,
-0.023944217711687088,
0.031039129942655563,
0.014619935303926468,
0.004742957651615143,
0.0037671669851988554,
0.041030723601579666,
-0.019970083609223366,
0.018468812108039856,
-0.03999638557434082,
0.04609741270542145,
-0.031713929027318954,
0.04323418065905571,
0.043556082993745804,
-0.022825583815574646,
0.052566833794116974,
0.05732399597764015,
-0.04067671671509743,
0.042526185512542725,
0.03225259855389595,
0.006365026813000441,
0.04278237000107765,
-0.020924033597111702,
0.01842581108212471,
-0.0365687757730484,
0.01647338643670082,
0.0111581701785326,
0.012436128221452236,
-0.004624161869287491,
0.02834380976855755,
0.029942862689495087,
0.060534168034791946,
0.0371692068874836,
-0.01528766006231308,
0.06381537765264511,
0.00016987732669804245,
0.05137532204389572,
-0.007901106961071491,
0.02211015857756138,
0.014351196587085724,
-0.002879084087908268,
-0.015321578830480576,
-0.00034624739782884717,
-0.010219172574579716,
-0.017180683091282845,
0.011070202104747295,
0.03250750154256821,
0.002796002198010683,
0.03728833422064781,
-0.029673656448721886,
0.01762501522898674,
0.04163506627082825,
0.03290799260139465,
-0.01306063774973154,
-0.02063082531094551,
-0.012247985228896141,
0.006601169239729643,
0.027196340262889862,
0.020590750500559807,
0.03436332195997238,
-0.017832869663834572,
0.03758916258811951,
-0.0018414354417473078,
0.009760928340256214,
-0.016086697578430176,
-0.013412918895483017,
0.0375729501247406,
-0.03953339159488678,
-0.0031627905555069447,
0.01355812232941389,
0.0024808470625430346,
-0.0005428503500297666,
0.008327423594892025,
-0.007621285039931536,
-0.019063295796513557,
-0.018518107011914253,
0.011701162904500961,
-0.024413714185357094,
-0.0376494862139225,
0.026202859356999397,
0.032166264951229095,
0.03522081300616264,
-0.00009287703142035753,
-0.025364408269524574,
-0.036886099725961685,
0.013674810528755188,
0.002702026627957821,
0.028996141627430916,
-0.00822937861084938,
0.01055886223912239,
-0.02129903994500637,
0.038919396698474884,
-0.002133405301719904,
0.053221214562654495,
0.00964073371142149,
0.014872973784804344,
0.0034143102820962667,
0.013873000629246235,
-0.06065172329545021,
0.0031022687908262014,
-0.008974079973995686,
0.01700184866786003,
-0.04145658388733864,
-0.0017447546124458313,
-0.012302402406930923,
-0.05180683732032776,
0.02009275183081627,
-0.06409306824207306,
-0.0013764165341854095,
-0.01745627447962761,
0.02201809175312519,
0.02166978269815445,
-0.024456925690174103,
-0.02803501859307289,
-0.029180090874433517,
-0.006434567738324404,
-0.03800000250339508,
-0.016386430710554123,
-0.04021873697638512,
-0.01870780438184738,
-0.0026609571650624275,
0.003247973043471575,
0.00269727548584342,
-0.022657491266727448,
-0.03364817053079605,
0.014285469427704811,
0.002380269579589367,
0.005773507058620453,
0.025118546560406685,
-0.007376373279839754,
0.05163198709487915,
0.012519000098109245,
0.021093102172017097,
0.038527701050043106,
0.015448592603206635,
-0.017362050712108612,
-0.037030044943094254,
0.008720619603991508,
-0.0004809233942069113,
0.011318070814013481,
-0.017732055857777596,
-0.03876611217856407,
-0.055778566747903824,
0.007059305440634489,
-0.02616908773779869,
0.01859823428094387,
-0.014827868901193142,
-0.030992446467280388,
-0.011311093345284462,
0.012175305746495724,
-0.034018829464912415,
-0.0018000806448981166,
0.041121646761894226,
0.04673226922750473,
-0.015098885633051395,
-0.004107920452952385,
-0.030995048582553864,
-0.04447257146239281,
-0.01553877629339695,
0.007238204125314951,
0.07295631617307663,
-0.012318123131990433,
-0.025337228551506996,
-0.05214372277259827,
-0.016533086076378822,
0.01110853347927332,
-0.050149690359830856,
0.004298783373087645,
0.028115469962358475,
0.037978291511535645,
0.0007486946415156126,
-0.028014138340950012,
-0.013383186422288418,
0.028788818046450615,
0.054420147091150284,
-0.012979350984096527,
0.02056080475449562,
0.007447947282344103,
0.013701409101486206,
-0.05616017431020737,
-0.004967620130628347,
-0.017363905906677246,
0.021519720554351807,
0.019340720027685165,
0.011391913518309593,
-0.022653577849268913,
-0.0027033055666834116,
-0.023802196606993675,
0.006164903286844492,
0.0021487416233867407,
-0.051733870059251785,
-0.027889659628272057,
0.009493784978985786,
0.019633824005723,
-0.013070384040474892,
-0.04638088867068291,
-0.029578397050499916,
0.06612544506788254,
0.0025287428870797157,
-0.02853413298726082,
-0.003197233658283949,
0.006669405847787857,
-0.011186772026121616,
0.03949705511331558,
-0.022263607010245323,
0.060657862573862076,
0.005420326255261898,
0.01013954821974039,
-0.013889586552977562,
-0.010062521323561668
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | Implementation We implemented LoRA mutualization in the Inference API. When a request is performed on a model available in our platform, we first determine whether this is a LoRA or not. We then identify the base model for the LoRA and route the request to a common backend farm, with the ability to serve requests for the said model. Inference requests get served by keeping the base model warm and loading/unloading LoRAs on the fly. This way we can ultimately reuse the same compute resources to serve many distinct models at once. | [
0.08227952569723129,
-0.03748932108283043,
-0.0003839422424789518,
0.029999617487192154,
0.07847537100315094,
0.027110343798995018,
0.02876916527748108,
0.06564471870660782,
-0.023307975381612778,
-0.016560936346650124,
-0.029304945841431618,
-0.013576118275523186,
0.04574768245220184,
0.09628747403621674,
-0.06601006537675858,
-0.07935050874948502,
0.03391164168715477,
-0.06610311567783356,
0.019876958802342415,
0.04349084943532944,
0.02225402183830738,
-0.029610132798552513,
0.03845759853720665,
-0.040354173630476,
-0.03640114888548851,
-0.05151232331991196,
-0.01788800209760666,
0.03845222294330597,
-0.014242177829146385,
0.0322088748216629,
-0.02222464792430401,
0.0018928810022771358,
-0.01535852625966072,
-0.022744376212358475,
0.01446241233497858,
-0.05015023425221443,
-0.062387123703956604,
-0.008342960849404335,
-0.03360765427350998,
-0.01857333816587925,
0.03655320778489113,
-0.0470702238380909,
-0.07843150943517685,
0.058408431708812714,
-0.003773751435801387,
-0.002787622157484293,
-0.17259690165519714,
0.08515849709510803,
0.006185074336826801,
-0.03686508908867836,
-0.09126273542642593,
0.03407541289925575,
-0.028164861723780632,
0.045489635318517685,
0.05090227723121643,
0.04376537352800369,
-0.02525925822556019,
-0.06540777534246445,
0.02947416715323925,
-0.002981934230774641,
0.0019266149029135704,
0.016516033560037613,
0.04513859376311302,
0.03279874473810196,
0.042205505073070526,
0.03136521205306053,
-0.011244564317166805,
-0.01706896536052227,
0.05124861001968384,
0.007337199989706278,
0.019650759175419807,
-0.07127046585083008,
-0.03896280378103256,
0.0392003171145916,
0.054273784160614014,
-0.0688711404800415,
0.0012290648883208632,
0.06634471565485,
0.05143333971500397,
0.011172599159181118,
-0.06370318681001663,
-0.026411356404423714,
0.03275936096906662,
-0.020483974367380142,
0.05446872487664223,
-0.03637930378317833,
0.029718011617660522,
-0.03923080861568451,
0.012070252560079098,
0.01064465381205082,
-0.013003021478652954,
-0.08499658107757568,
-0.0003235162002965808,
0.05057733133435249,
0.05211230367422104,
-0.0060372743755578995,
0.01921170763671398,
0.03922196850180626,
0.006524345371872187,
-0.06162719428539276,
-0.044453077018260956,
-0.042768534272909164,
-0.03620773181319237,
-0.06067906692624092,
0.004208305850625038,
0.041043639183044434,
0.005345799494534731,
-0.10746992379426956,
-0.08985909074544907,
0.011247968301177025,
-0.035609327256679535,
0.019704896956682205,
-0.0020279958844184875,
0.07934429496526718,
-0.04577390477061272,
0.008497619070112705,
0.023706721141934395,
0.0081446822732687,
0.023904096335172653,
0.044431693851947784,
0.025504058226943016,
0.08939703553915024,
0.05817670002579689,
0.031192800030112267,
-0.04307457059621811,
0.014243576675653458,
0.07467412203550339,
-0.01973859593272209,
-0.06285922974348068,
-0.020915592089295387,
0.038750071078538895,
-0.0042788623832166195,
0.00692592840641737,
-0.015268202871084213,
0.09551338106393814,
-0.027284063398838043,
-0.026019705459475517,
-0.018336454406380653,
0.08134857565164566,
0.021828165277838707,
-0.07778002321720123,
-0.05162636563181877,
0.023089155554771423,
0.010961667634546757,
0.06466461718082428,
0.06417291611433029,
-0.02094554342329502,
0.0005708828684873879,
0.0015771895414218307,
0.01901465468108654,
-0.0753723531961441,
0.11898914724588394,
-0.019291335716843605,
-0.04072597250342369,
-0.03932983800768852,
0.01904783956706524,
-0.04003963619470596,
-0.026814719662070274,
-0.05498642474412918,
0.02817978337407112,
-0.016957459971308708,
-0.062122512608766556,
-0.027737902477383614,
0.009345334954559803,
0.010284461081027985,
0.06738249957561493,
-0.02679668553173542,
-0.0023034331388771534,
0.0719357281923294,
0.045750610530376434,
0.003223845735192299,
-0.019368279725313187,
0.09526994824409485,
-0.014618275687098503,
0.0600392185151577,
0.045543644577264786,
0.05502647906541824,
0.03929802402853966,
0.0013105003163218498,
0.05671471729874611,
-0.03218449279665947,
0.00898888148367405,
-0.04110896959900856,
-0.004625983070582151,
-0.06335516273975372,
-0.034589629620313644,
0.056639138609170914,
-0.07856636494398117,
0.011988752521574497,
0.02250894531607628,
-0.008488461375236511,
0.04620109871029854,
0.027581771835684776,
-0.05906740948557854,
0.04183487221598625,
-0.02083403617143631,
-0.09176374971866608,
0.06565751135349274,
0.03515214845538139,
0.023654596880078316,
0.07125088572502136,
-0.017435584217309952,
0.008959954604506493,
-0.045099448412656784,
-0.006649148650467396,
0.0011731795966625214,
0.02143518440425396,
-0.06152813881635666,
0.06649423390626907,
0.021774213761091232,
-0.061821505427360535,
-0.05436545982956886,
0.045621275901794434,
-0.05573534592986107,
0.06861867755651474,
-0.00509989820420742,
-0.00906091183423996,
0.029278161004185677,
0.004790716804563999,
-0.0774599239230156,
0.18689952790737152,
-0.09348852932453156,
0.03147651627659798,
-0.025874288752675056,
0.011758296750485897,
0.02572980709373951,
0.04953624680638313,
0.010342884808778763,
0.05327552929520607,
0.009504984132945538,
0.020862791687250137,
-0.032680168747901917,
-0.01609242707490921,
0.03827686235308647,
0.017754463478922844,
0.07577303051948547,
0.00786565151065588,
-0.015830839052796364,
0.041916374117136,
-0.03859475255012512,
0.04617178067564964,
0.06633999943733215,
-0.014285113662481308,
0.045027993619441986,
0.00445048650726676,
-0.012400446459650993,
0.04517326131463051,
-0.007642922457307577,
-0.026254555210471153,
0.016701387241482735,
-0.04275742545723915,
-0.04417319968342781,
0.014218711294233799,
-0.0005754980375058949,
0.1063055768609047,
-0.09231815487146378,
-0.023278290405869484,
-0.012931580655276775,
0.0016052605351433158,
0.054249465465545654,
-0.010370153933763504,
-0.01117880828678608,
-0.004196426831185818,
-0.022700395435094833,
0.027692154049873352,
-0.017456520348787308,
0.023863336071372032,
0.006575840059667826,
0.043970707803964615,
0.003936212509870529,
0.06401721388101578,
-0.05718347057700157,
0.015712307766079903,
0.009898403659462929,
0.002161370124667883,
0.02383866161108017,
-0.02312723733484745,
-0.0024328078143298626,
0.016716698184609413,
-0.049534015357494354,
0.0024044523015618324,
-0.02809586375951767,
-0.022045085206627846,
0.019561728462576866,
-0.006046420428901911,
-0.04840807989239693,
0.0014171756338328123,
-0.01652909629046917,
-0.03837623819708824,
0.05320342630147934,
-0.0002590407384559512,
0.009485447779297829,
-0.012598268687725067,
0.005705487914383411,
0.02028372883796692,
-0.0041763256303966045,
-0.02198084443807602,
0.0029029068537056446,
-0.05180942639708519,
-0.04387850686907768,
0.021221552044153214,
-0.0215165913105011,
0.027691567316651344,
-0.03929974511265755,
-0.04903503134846687,
0.06401002407073975,
-0.014741492457687855,
0.015308420173823833,
-0.10083184391260147,
-0.04304521158337593,
-0.010042686015367508,
0.04755980148911476,
0.010478327050805092,
0.0005772848962806165,
0.0823473110795021,
-0.02271723560988903,
0.05990849807858467,
0.010419430211186409,
-0.008087008260190487,
0.012424261309206486,
0.025223301723599434,
-0.03995588794350624,
-0.009731984697282314,
-0.027662957087159157,
0.00031856686109676957,
0.00043149161501787603,
0.0019329495262354612,
-0.007110405247658491,
-0.03635955974459648,
0.038059331476688385,
-0.007171915844082832,
0.013074712827801704,
0.017738522961735725,
-0.0233759805560112,
0.00412166491150856,
0.02122577838599682,
0.0161533672362566,
-0.0449741892516613,
-0.026986734941601753,
0.009573596529662609,
0.010738600045442581,
-0.004730289801955223,
-0.024865534156560898,
0.03041558340191841,
-0.04587751254439354,
-0.014088989235460758,
0.030631590634584427,
0.010780108161270618,
-0.025435928255319595,
0.01594705507159233,
0.03266030177474022,
0.021340755745768547,
0.02534889243543148,
0.01116085983812809,
-0.005590866319835186,
0.011921959929168224,
0.03912227600812912,
-0.01831517182290554,
0.02050253562629223,
-0.014127969741821289,
0.05781484767794609,
0.021084021776914597,
-0.021831300109624863,
-0.013410678133368492,
0.006825030315667391,
-0.0129934623837471,
0.05145736783742905,
-0.012688703835010529,
-0.04183676466345787,
-0.022802095860242844,
0.04161793366074562,
-0.03498469665646553,
-0.07838508486747742,
0.019325749948620796,
0.0518467016518116,
0.01402809377759695,
-0.012422272935509682,
0.018834784626960754,
0.025355104357004166,
0.06779657304286957,
0.015531702898442745,
-0.003246224718168378,
0.035756200551986694,
0.002507929690182209,
0.009306488558650017,
-0.0391976460814476,
0.044849153608083725,
0.04431655630469322,
0.02272062934935093,
0.006195227615535259,
-0.0207563117146492,
-0.03857055678963661,
-0.0015246440889313817,
0.013389351777732372,
0.024814361706376076,
-0.034814298152923584,
-0.018776167184114456,
0.028636254370212555,
0.036202192306518555,
-0.05958518013358116,
0.020520752295851707,
0.05809933319687843,
0.006109228823333979,
0.03137100860476494,
0.04610252007842064,
0.03845435380935669,
0.02172277122735977,
0.0070694186724722385,
0.00010414637654321268,
-0.016117127612233162,
-0.008082863874733448,
0.04842555895447731,
-0.031874462962150574,
-0.009403695352375507,
0.00021896316320635378,
-0.000597543956246227,
0.027750451117753983,
-0.032835494726896286,
-0.007621798664331436,
0.03720429912209511,
-0.011407263576984406,
-0.017227372154593468,
0.02584441751241684,
0.030427321791648865,
-0.048550937324762344,
0.0051689534448087215,
-0.003466902067884803,
-0.00901086162775755,
-0.04236004874110222,
-0.009029793553054333,
0.029644202440977097,
-0.016265686601400375,
0.028453292325139046,
-0.007454858161509037,
0.008965790271759033,
-0.018873360008001328,
-0.022699104622006416,
-0.006080364342778921,
-0.0380505733191967,
-0.012559454888105392,
0.020854324102401733,
0.012941633351147175,
-0.015958726406097412,
0.0002104235318256542,
-0.01740705780684948,
0.03706764802336693,
-0.019155725836753845,
-0.026593992486596107,
-0.030946075916290283,
-0.013436483219265938,
0.021852700039744377,
-0.008184626698493958,
0.005454576574265957,
0.011061242781579494,
-0.05011565238237381,
0.003394797444343567,
-0.05486120283603668,
0.025268910452723503,
-0.010316360741853714,
-0.00837154220789671,
-0.026396138593554497,
-0.004603408742696047,
0.06076129898428917,
-0.021222639828920364,
0.0065381452441215515,
-0.030169203877449036,
0.0017670933157205582,
0.04998171329498291,
0.02409740909934044,
-0.008222152478992939,
-0.02676849439740181,
-0.004052943550050259,
0.015551405027508736,
-0.00888750422745943,
-0.03982190415263176,
-0.049318503588438034,
-0.009841997176408768,
-0.00770982913672924,
-0.059065092355012894,
0.004805072210729122,
-0.0015937909483909607,
-0.008919059298932552,
0.04476509615778923,
0.037368159741163254,
0.041497111320495605,
-0.00232987804338336,
-0.017806878313422203,
-0.0397803857922554,
-0.008894598111510277,
-0.019666427746415138,
0.03315577283501625,
-0.038969043642282486,
0.017501739785075188,
-0.0020228077191859484,
0.06966277211904526,
0.04880562797188759,
0.05025770142674446,
0.04101157560944557,
0.015693314373493195,
0.03560888394713402,
0.054251931607723236,
-0.0036486354656517506,
0.02530968002974987,
0.008125868625938892,
-0.015547172166407108,
0.006811449769884348,
-0.04749211296439171,
-0.04504978284239769,
-0.023194018751382828,
0.04852794110774994,
-0.035298652946949005,
-0.033362846821546555,
0.015089694410562515,
0.002502797171473503,
0.056794680655002594,
-0.009877050295472145,
0.014230710454285145,
0.027867982164025307,
-0.01062479242682457,
-0.037581995129585266,
-0.02162162773311138,
0.00008758962212596089,
0.03373868018388748,
-0.02047661691904068,
-0.03310086205601692,
0.033013444393873215,
-0.0031472821719944477,
0.025732632726430893,
-0.003046740312129259,
-0.028089404106140137,
-0.032717976719141006,
-0.026966596022248268,
-0.006352573167532682,
-0.04936166852712631,
-0.012009529396891594,
-0.0061833662912249565,
-0.007998375222086906,
0.013568608090281487,
0.05607720464468002,
0.003607889637351036,
0.0031323416624218225,
0.004123653285205364,
0.018094675615429878,
0.009411261416971684,
-0.05438157916069031,
0.012162445113062859,
0.027168234810233116,
-0.03466571494936943,
-0.049161337316036224,
-0.05407676845788956,
-0.032217271625995636,
-0.012141406536102295,
-0.03188008442521095,
0.015969732776284218,
0.029037034139037132,
0.014180218800902367,
0.032672010362148285,
-0.00012306800635997206,
-0.0017506905132904649,
-0.006108351983129978,
0.017220206558704376,
-0.00045869153109379113,
0.00761721096932888,
0.01939300261437893,
0.03856569528579712,
-0.011669906787574291,
-0.007795816287398338,
-0.011241715401411057,
0.02726215496659279,
-0.034188561141490936,
-0.04023082181811333,
0.007643862161785364,
-0.03666318207979202,
0.004999518860131502,
0.04894101992249489,
-0.044534578919410706,
-0.026702608913183212,
-0.03060314990580082,
0.06622781604528427,
-0.005648215766996145,
0.005208670627325773,
0.037546709179878235,
-0.013239584863185883,
-0.014319331385195255,
0.003604573430493474,
0.057150036096572876,
-0.006230139173567295,
0.023742759600281715,
-0.0008208037470467389,
0.039247624576091766,
0.01352848019450903,
0.03537490591406822,
0.07116197794675827,
0.002303080167621374,
0.03606260567903519,
-0.017047103494405746,
0.017796499654650688,
-0.0027011374477297068,
-0.00037839895230717957,
-0.016463877633213997,
0.010169818997383118,
0.021680759266018867,
0.0028192908503115177,
0.017749877646565437,
0.007059547584503889,
-0.02302197366952896,
0.04448520764708519,
-0.03322036191821098,
0.025795219466090202,
0.03150177001953125,
0.038379669189453125,
-0.0288590919226408,
-0.03623281791806221,
0.0017564824083819985,
0.0028685741126537323,
0.037798959761857986,
0.026603588834404945,
0.032372016459703445,
-0.0026904516853392124,
0.03998663276433945,
-0.006977081764489412,
-0.013852457515895367,
-0.017875051125884056,
0.04047378897666931,
-0.02413141168653965,
-0.05399356782436371,
-0.01722402311861515,
0.01863216795027256,
0.010368283838033676,
0.02053276263177395,
0.029600879177451134,
-0.0058762747794389725,
-0.026833046227693558,
-0.01092103123664856,
0.02703816071152687,
-0.0074304742738604546,
0.017406612634658813,
-0.016276035457849503,
0.028719153255224228,
0.020682696253061295,
0.029284561052918434,
-0.043115582317113876,
-0.015612038783729076,
-0.016488092020154,
0.005466405302286148,
-0.008042051456868649,
-0.05489720031619072,
0.0019269087351858616,
0.018581412732601166,
0.02644963376224041,
0.033203862607479095,
0.03316102176904678,
-0.012618184089660645,
0.02010956034064293,
0.04018056392669678,
0.0027183382771909237,
-0.018059007823467255,
0.05009131133556366,
-0.03442854434251785,
-0.007028954569250345,
-0.015160389244556427,
-0.022529317066073418,
-0.03802008554339409,
-0.018920905888080597,
-0.006194194778800011,
-0.018960094079375267,
-0.016994349658489227,
-0.004059182479977608,
0.017330048605799675,
0.04317412152886391,
-0.005320408847182989,
-0.02867216058075428,
-0.05709552392363548,
-0.016507454216480255,
0.010726847685873508,
-0.02312675304710865,
0.002546054543927312,
-0.010943823494017124,
0.009903108701109886,
0.0005663432530127466,
0.04734504595398903,
-0.011043529957532883,
-0.005126158241182566,
0.01015405636280775,
0.049236781895160675,
-0.019358482211828232,
-0.010249310173094273,
0.0025124980602413416,
0.038862261921167374,
-0.013426625169813633,
0.03529556840658188,
0.014094852842390537,
-0.01959572546184063,
-0.04043467342853546,
-0.035440120846033096,
-0.02433962933719158,
-0.029328778386116028,
0.05033813789486885,
0.005602342076599598,
-0.04442716762423515,
-0.059802036732435226,
0.006113827228546143,
-0.019900387153029442,
0.023628761991858482,
-0.028943711891770363,
-0.017308518290519714,
0.0029551920015364885,
0.002214450854808092,
-0.02265682816505432,
-0.025958476588129997,
0.049433037638664246,
0.01887006312608719,
0.007590263616293669,
-0.028048140928149223,
-0.018718376755714417,
-0.0347476564347744,
0.027336373925209045,
0.029248453676700592,
0.030489936470985413,
-0.007029086817055941,
-0.023766012862324715,
-0.01914949342608452,
-0.008955243043601513,
0.000025323832232970744,
-0.05582766979932785,
0.027040811255574226,
0.024598607793450356,
-0.00020335755834821612,
-0.03150822967290878,
0.0037973271682858467,
0.005698021966964006,
-0.023195981979370117,
0.042468294501304626,
-0.020724616944789886,
0.03706344962120056,
-0.024326130747795105,
0.006543161813169718,
-0.04211007431149483,
-0.029993092641234398,
-0.021972309798002243,
-0.03481488674879074,
-0.007041091099381447,
-0.0017960917903110385,
-0.0008735164301469922,
-0.058437950909137726,
0.017708607017993927,
0.022849056869745255,
-0.03268948569893837,
-0.027106765657663345,
-0.028026282787322998,
-0.0367513969540596,
-0.007252038456499577,
-0.03807173669338226,
-0.05475829914212227,
-0.009804264642298222,
0.026520632207393646,
-0.02135699987411499,
-0.005215809214860201,
-0.00518360361456871,
-0.032870419323444366,
-0.004453443456441164,
-0.00004584283669828437,
0.003986853640526533,
0.0921487882733345,
0.05380507558584213,
0.011350445449352264,
-0.019269445911049843,
-0.03396127372980118
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | Loading/Offloading LoRA for Diffusers 🧨 Note that there is a more seemless way to perform the same as what is presented in this section using the peft library. Please refer to the documentation for more details. The principle remains the same as below (going from/to the blue box to/from the yellow one in the diagram above) 4 functions are used in the Diffusers library to load and unload distinct LoRA weights: load_lora_weights and fuse_lora for loading and merging weights with the main layers. Note that merging weights with the main model before performing inference can decrease the inference time by 30%. unload_lora_weights and unfuse_lora for unloading. We provide an example below on how one can leverage the Diffusers library to quickly load several LoRA weights on top of a base model: py import torch from diffusers import ( AutoencoderKL, DiffusionPipeline, ) import time base = "stabilityai/stable-diffusion-xl-base-1.0" adapter1 = 'nerijs/pixel-art-xl' weightname1 = 'pixel-art-xl.safetensors' adapter2 = 'minimaxir/sdxl-wrong-lora' weightname2 = None inputs = "elephant" kwargs = {} if torch.cuda.is_available(): kwargs["torch_dtype"] = torch.float16 start = time.time() # Load VAE compatible with fp16 created by madebyollin vae = AutoencoderKL.from_pretrained( "madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16, ) kwargs["vae"] = vae kwargs["variant"] = "fp16" model = DiffusionPipeline.from_pretrained( base, **kwargs ) if torch.cuda.is_available(): model.to("cuda") elapsed = time.time() - start print(f"Base model loaded, elapsed {elapsed:.2f} seconds") def inference(adapter, weightname): start = time.time() model.load_lora_weights(adapter, weight_name=weightname) # Fusing lora weights with the main layers improves inference time by 30 % ! model.fuse_lora() elapsed = time.time() - start print(f"LoRA adapter loaded and fused to main model, elapsed {elapsed:.2f} seconds") start = time.time() data = model(inputs, num_inference_steps=25).images[0] elapsed = time.time() - start print(f"Inference time, elapsed {elapsed:.2f} seconds") start = time.time() model.unfuse_lora() model.unload_lora_weights() elapsed = time.time() - start print(f"LoRA adapter unfused/unloaded from base model, elapsed {elapsed:.2f} seconds") inference(adapter1, weightname1) inference(adapter2, weightname2) | [
0.05804393067955971,
-0.0017202111193910241,
0.029467063024640083,
0.009004851803183556,
0.06344309449195862,
0.08333355188369751,
-0.04749254137277603,
-0.009586752392351627,
0.015406914055347443,
-0.04864457622170448,
-0.009860822930932045,
0.0015380337135866284,
-0.00948168896138668,
0.05698177590966225,
-0.009493586607277393,
-0.062290072441101074,
0.04771232604980469,
-0.07129953801631927,
-0.01444569043815136,
0.10107076168060303,
0.014436283148825169,
-0.06773953884840012,
0.004143028520047665,
-0.029202453792095184,
-0.05052431300282478,
-0.0822436586022377,
-0.009356335736811161,
0.06914380192756653,
0.037456829100847244,
0.02868535928428173,
-0.07840168476104736,
0.017825085669755936,
0.03518935665488243,
-0.02057264931499958,
0.08257772028446198,
-0.048137225210666656,
-0.011647368781268597,
0.004651771858334541,
0.09113612771034241,
-0.02784038707613945,
0.018938753753900528,
0.055968016386032104,
-0.0643756240606308,
0.005543622653931379,
0.04833204671740532,
-0.055122263729572296,
-0.12455915659666061,
0.0439082533121109,
-0.018771005794405937,
0.006908961571753025,
-0.09145239740610123,
0.014265361241996288,
0.003366233082488179,
-0.0006209115381352603,
0.037856247276067734,
0.02769063040614128,
0.0035517713986337185,
0.003147568553686142,
0.056210149079561234,
-0.04937261343002319,
0.02805393375456333,
0.03286284580826759,
-0.010817519389092922,
0.03656281903386116,
0.07663937658071518,
0.02833211049437523,
-0.0016143337124958634,
0.036413781344890594,
-0.022818557918071747,
-0.03377610445022583,
0.034941136837005615,
-0.0171635914593935,
-0.0022905527148395777,
-0.032055508345365524,
0.030259624123573303,
-0.00982598215341568,
0.04048669710755348,
0.0011945198057219386,
0.027725184336304665,
0.04786829650402069,
0.037601493299007416,
0.00034840888110920787,
-0.0007662416319362819,
0.02095845341682434,
0.04669629782438278,
-0.0599377304315567,
0.06963608413934708,
-0.036933235824108124,
0.012752043083310127,
-0.007986309938132763,
-0.03591270372271538,
-0.052772920578718185,
0.025153547525405884,
0.03287147730588913,
0.035585127770900726,
0.02537795901298523,
-0.018265660852193832,
0.0002606455818749964,
0.05013694986701012,
-0.03890109062194824,
-0.037624552845954895,
-0.11194126307964325,
-0.0113390376791358,
-0.08414246886968613,
-0.02489648386836052,
0.0465506985783577,
-0.04583600535988808,
-0.04796098545193672,
-0.04050477221608162,
0.00037387723568826914,
-0.02358032763004303,
0.04736765846610069,
-0.037096649408340454,
0.037968460470438004,
-0.11774013936519623,
-0.005665923003107309,
0.00645704660564661,
0.02307857945561409,
-0.022197945043444633,
0.025031788274645805,
0.00741649279370904,
0.11037009209394455,
0.0977005586028099,
0.04535611346364021,
0.004013144411146641,
0.08748459070920944,
0.07952234148979187,
-0.0013330768560990691,
-0.014675464481115341,
0.07628004252910614,
0.057818882167339325,
-0.06031617522239685,
0.06259717792272568,
-0.0943680852651596,
0.05267702415585518,
-0.13766959309577942,
-0.0817800760269165,
0.010955306701362133,
0.07319815456867218,
0.029515087604522705,
-0.06912163645029068,
0.013995705172419548,
-0.00006704626139253378,
0.01991707645356655,
0.04319490119814873,
-0.02975335717201233,
-0.015369612723588943,
0.0547512024641037,
0.004365014843642712,
0.06012614443898201,
-0.06728775054216385,
0.06672929227352142,
0.013161618262529373,
-0.05532132089138031,
-0.021371478214859962,
0.046527110040187836,
-0.05673682689666748,
-0.038399990648031235,
-0.030309850350022316,
0.02275082841515541,
0.03602675721049309,
-0.029889343306422234,
-0.04404979571700096,
-0.0009661841904744506,
0.025911763310432434,
-0.0073926253244280815,
0.016718540340662003,
0.038207169622182846,
0.11160138994455338,
-0.0112006776034832,
0.06871997565031052,
-0.0211637020111084,
0.07862485200166702,
-0.001554306480102241,
-0.013294360600411892,
0.022966032847762108,
0.04237402603030205,
0.08887423574924469,
-0.01884225755929947,
0.010627295821905136,
-0.08627799898386002,
0.030654720962047577,
-0.046737898141145706,
0.010227457620203495,
0.009325857274234295,
-0.05377960577607155,
0.04995354264974594,
-0.08274234086275101,
0.01362002082169056,
0.05470326170325279,
0.023533111438155174,
0.04605759680271149,
0.020712677389383316,
-0.01969379559159279,
0.026498517021536827,
-0.07445679605007172,
-0.06558407098054886,
0.07123751193284988,
0.04865112155675888,
-0.017344586551189423,
0.06541318446397781,
0.007498631719499826,
0.012580289505422115,
-0.02938409522175789,
-0.0667116567492485,
-0.02325899712741375,
0.00120400614105165,
-0.08160919696092606,
0.05511855706572533,
0.006369451992213726,
-0.037889279425144196,
-0.03467860445380211,
0.026499353349208832,
-0.05299508944153786,
0.06749727576971054,
-0.03184931352734566,
0.03837933391332626,
-0.017145538702607155,
0.021527793258428574,
-0.02245340496301651,
0.12332914769649506,
-0.001782344770617783,
-0.007370456587523222,
0.010728316381573677,
-0.056306999176740646,
0.008917607367038727,
0.11067190766334534,
-0.046253617852926254,
0.015652116388082504,
-0.08130768686532974,
-0.05431478098034859,
-0.07292857021093369,
-0.09467034786939621,
0.05215710029006004,
-0.035471782088279724,
-0.024946529418230057,
-0.018959445878863335,
0.031163401901721954,
0.04236550256609917,
-0.06881154328584671,
0.0613386407494545,
0.026830753311514854,
0.028471842408180237,
0.05392428860068321,
0.0011344021186232567,
0.00932985171675682,
0.07546169310808182,
-0.004061140585690737,
-0.02452050894498825,
0.00867518875747919,
0.02724621258676052,
-0.022377636283636093,
-0.031578704714775085,
-0.022515784949064255,
0.05638962611556053,
-0.012652063742280006,
-0.025441912934184074,
-0.025651339441537857,
0.0029194687958806753,
0.06389743089675903,
-0.015566881746053696,
-0.0013663494028151035,
-0.02557946741580963,
0.02418866567313671,
-0.018765106797218323,
-0.004678244236856699,
0.01693885028362274,
-0.016048626974225044,
0.023428743705153465,
-0.012211384251713753,
0.060949429869651794,
0.018150292336940765,
0.005778721533715725,
0.00536034582182765,
0.015010399743914604,
0.008779605850577354,
0.014361334033310413,
0.015900420024991035,
-0.032426681369543076,
-0.04045932739973068,
0.011552696116268635,
-0.021914513781666756,
0.03055201843380928,
0.014067779295146465,
0.011723434552550316,
0.00921079982072115,
0.0029384763911366463,
-0.014778434298932552,
-0.008495674468576908,
0.06553924083709717,
0.0045075444504618645,
0.01577521301805973,
0.03730769827961922,
-0.01261917594820261,
0.009108132682740688,
0.01549605093896389,
-0.024646854028105736,
-0.012040156871080399,
-0.014631349593400955,
-0.02316279523074627,
0.006727890577167273,
-0.015759805217385292,
-0.006706817075610161,
0.012895322404801846,
-0.07209713757038116,
0.03500470519065857,
0.007502077613025904,
0.04767405614256859,
-0.09565954655408859,
-0.028229370713233948,
-0.02649419941008091,
0.049906253814697266,
0.009900996461510658,
-0.02620801329612732,
0.031336382031440735,
-0.035670388489961624,
0.04486209526658058,
0.023995855823159218,
-0.008405819535255432,
-0.01449340395629406,
-0.018760917708277702,
-0.01523361075669527,
0.0040375529788434505,
-0.026005934923887253,
-0.011533336713910103,
-0.009238041937351227,
0.002378071891143918,
-0.011090187355875969,
-0.03327113389968872,
0.034659527242183685,
0.0011470962781459093,
0.01622016169130802,
0.009530866518616676,
0.0024831509217619896,
-0.0005033126217313111,
-0.009526625275611877,
-0.02820214256644249,
-0.027234362438321114,
-0.03376651555299759,
-0.03918007016181946,
-0.006031219847500324,
0.02334636263549328,
-0.05314381420612335,
0.021324576810002327,
-0.03683074563741684,
-0.01905718259513378,
0.02780051715672016,
0.005325250793248415,
0.01077424269169569,
0.0013124687829986215,
-0.012069585733115673,
0.02418469823896885,
0.011778468266129494,
-0.00858213473111391,
0.004984304774552584,
-0.020002439618110657,
0.02486647292971611,
-0.003146689385175705,
0.007952871732413769,
0.020062392577528954,
0.038184504956007004,
0.00789127591997385,
-0.0027293534949421883,
0.030049582943320274,
0.009671652689576149,
0.01989690400660038,
0.046280089765787125,
-0.0018798605306074023,
-0.04282679408788681,
-0.0017870062729343772,
0.0170004740357399,
-0.011601405218243599,
-0.02382294274866581,
0.012772186659276485,
0.02959841676056385,
0.012274254113435745,
-0.004551563877612352,
0.020510204136371613,
-0.04763094708323479,
0.022565238177776337,
0.012126456014811993,
0.003512660739943385,
-0.013593469746410847,
-0.005260760895907879,
0.003546264488250017,
-0.014468101784586906,
0.02968311682343483,
0.011431777849793434,
-0.03782638534903526,
-0.04147607088088989,
-0.0031621409580111504,
-0.06768455356359482,
-0.02208297699689865,
0.010142617858946323,
-0.002423602854833007,
-0.05065278708934784,
0.0331520140171051,
-0.013137555681169033,
0.005606140475720167,
-0.033173076808452606,
0.02129380963742733,
-0.021158087998628616,
-0.006549312267452478,
-0.004432594869285822,
0.04177006334066391,
0.024535156786441803,
0.04646838456392288,
0.011565538123250008,
0.01734192855656147,
-0.021541377529501915,
-0.018571026623249054,
0.030753009021282196,
-0.021084504202008247,
0.009008885361254215,
-0.04485521465539932,
0.0016656221123412251,
0.0050330935046076775,
-0.008747007697820663,
0.04059712216258049,
0.003614594927057624,
0.0036319608334451914,
-0.008131247013807297,
0.012991917319595814,
0.04316050186753273,
-0.03087235987186432,
-0.03556269034743309,
-0.023966733366250992,
0.025549376383423805,
-0.04977657273411751,
0.021207153797149658,
0.025640616193413734,
-0.079300157725811,
0.01802750676870346,
0.03666036203503609,
0.030416209250688553,
-0.011468197219073772,
-0.002027463633567095,
0.0025283738505095243,
-0.08585715293884277,
-0.011151164770126343,
0.008005325682461262,
0.008922906592488289,
-0.016564231365919113,
-0.029529700055718422,
-0.002975662937387824,
0.03743574023246765,
-0.010728527791798115,
-0.018512584269046783,
-0.059315524995326996,
-0.0016186925349757075,
0.014465483836829662,
-0.02973843179643154,
0.010750449262559414,
0.009996765293180943,
-0.03880860656499863,
0.021180227398872375,
-0.05711572617292404,
0.0019165307749062777,
0.04458029568195343,
0.005589109379798174,
-0.06947065144777298,
0.007214874029159546,
0.020107263699173927,
-0.034039758145809174,
-0.0018276926130056381,
-0.02204245887696743,
0.010788552463054657,
0.020206699147820473,
0.0002564194146543741,
0.01777488924562931,
-0.012100247666239738,
0.019842196255922318,
-0.015406211838126183,
-0.02935061790049076,
-0.027921756729483604,
-0.0609486848115921,
-0.01483193039894104,
0.014433309435844421,
-0.04465314373373985,
0.023302609100937843,
-0.008659488521516323,
0.012449249625205994,
0.03934129327535629,
0.013735497370362282,
-0.001532087684608996,
-0.0046978481113910675,
0.0005523203290067613,
-0.013818863779306412,
-0.001417512889020145,
-0.005720115266740322,
0.040686964988708496,
-0.04685767740011215,
-0.022798635065555573,
0.0370645597577095,
-0.03803641349077225,
0.014682899229228497,
0.05434373766183853,
0.029727265238761902,
-0.029768550768494606,
0.004894754849374294,
0.023793792352080345,
-0.004523232579231262,
0.018286239355802536,
0.040098801255226135,
0.0012933183461427689,
0.03809269145131111,
-0.049696676433086395,
-0.01500395406037569,
-0.003289690474048257,
0.03965854272246361,
-0.040498003363609314,
-0.054943885654211044,
-0.01717076264321804,
0.004003571812063456,
0.04179476201534271,
-0.003533722599968314,
0.02786722593009472,
-0.01385442167520523,
0.005858428776264191,
-0.012078072875738144,
-0.001235711039043963,
-0.0025142005179077387,
0.06039769947528839,
0.018437447026371956,
-0.02230019122362137,
0.042411867529153824,
0.01567247323691845,
0.006649702321738005,
0.014369786716997623,
-0.055672865360975266,
-0.05678039416670799,
-0.013368120416998863,
0.04155069962143898,
-0.054923877120018005,
0.03620347008109093,
-0.010587098076939583,
-0.0016516974428668618,
0.02355649694800377,
0.008719449862837791,
0.010821866802871227,
-0.016878614202141762,
0.022207830101251602,
0.012348514050245285,
0.017720265313982964,
-0.02214600332081318,
0.016487644985318184,
0.045424070209264755,
0.00401501078158617,
-0.0049755750223994255,
-0.01679130643606186,
-0.0500638373196125,
0.011355647817254066,
-0.05365096405148506,
0.07451532036066055,
-0.005862484220415354,
-0.04200029373168945,
0.01948077604174614,
0.022153448313474655,
0.0029063450638204813,
-0.02022257260978222,
0.0038589132018387318,
-0.06576122343540192,
0.01405115146189928,
0.02780364826321602,
0.016293399035930634,
-0.03064926713705063,
0.011058542877435684,
0.018746113404631615,
0.057348065078258514,
-0.03581946715712547,
-0.0033732529263943434,
0.01379614882171154,
-0.002153851091861725,
0.018793050199747086,
0.011050956323742867,
-0.03266763687133789,
0.009374234825372696,
-0.0017514220671728253,
0.03391294926404953,
0.04570731893181801,
-0.013669397681951523,
0.006107347086071968,
-0.01862604171037674,
0.00580622861161828,
0.01698947511613369,
0.015963435173034668,
-0.06806224584579468,
0.011835490353405476,
0.04771466925740242,
0.047656599432229996,
0.008356151171028614,
0.005707900505512953,
0.05520874634385109,
-0.009899317286908627,
0.05593262240290642,
0.015925411134958267,
0.0005182329914532602,
0.026412395760416985,
-0.019076870754361153,
-0.01487323734909296,
-0.03477507457137108,
-0.01938924379646778,
-0.02243766002357006,
0.03908439353108406,
0.021519305184483528,
0.004480038303881884,
0.04243578016757965,
-0.024976423010230064,
0.02012800984084606,
0.04216240718960762,
0.04607433080673218,
0.005179596599191427,
0.015194159932434559,
0.009431962855160236,
0.018940916284918785,
0.03788493573665619,
0.024343345314264297,
0.025422660633921623,
0.002130925888195634,
0.04817606881260872,
0.0042312415316700935,
0.013471877202391624,
0.03601415082812309,
0.01920417509973049,
0.009167843498289585,
-0.02023310214281082,
-0.0036573319230228662,
0.022408291697502136,
0.005660950671881437,
-0.028177250176668167,
-0.023893406614661217,
-0.00864676758646965,
-0.06949654966592789,
-0.005346366204321384,
0.0029099788516759872,
-0.01836618036031723,
-0.008593508042395115,
0.020289381965994835,
0.021280057728290558,
-0.003118619555607438,
0.028375130146741867,
-0.02128027193248272,
-0.007826623506844044,
0.022582918405532837,
0.012034798972308636,
0.03321293368935585,
-0.0034718525130301714,
0.02045256458222866,
-0.006136373616755009,
0.0379272885620594,
0.012578954920172691,
0.025169333443045616,
-0.011531532742083073,
0.0005644564516842365,
0.01667119562625885,
-0.031935468316078186,
0.02278626710176468,
0.027534769847989082,
-0.00034543444053269923,
0.016747212037444115,
0.021789876744151115,
0.008827060461044312,
-0.0161561481654644,
-0.022871358320116997,
0.04095914214849472,
-0.02313590794801712,
-0.0030530847143381834,
0.019447878003120422,
0.02367892675101757,
0.05585300177335739,
-0.042480167001485825,
-0.0018055676482617855,
-0.07806439697742462,
-0.01450259704142809,
-0.012732316739857197,
-0.004558142274618149,
0.0033926628530025482,
-0.03418049216270447,
-0.01107174251228571,
0.015303310938179493,
-0.015988418832421303,
0.018715206533670425,
-0.01446506753563881,
-0.016455521807074547,
0.009066606871783733,
-0.017214063555002213,
0.028200214728713036,
0.031327538192272186,
0.04109007120132446,
-0.0266561359167099,
0.0013681203126907349,
0.04123343527317047,
-0.028674881905317307,
-0.03325464576482773,
-0.02422296814620495,
0.022637972608208656,
-0.024624120444059372,
0.018359696492552757,
-0.00003702539106598124,
0.0034120152704417706,
-0.04589785635471344,
-0.0053088609129190445,
-0.03494321554899216,
0.02931731380522251,
-0.009199119172990322,
-0.0628029853105545,
-0.025953616946935654,
-0.04228617995977402,
-0.014928165823221207,
0.011912425048649311,
0.03931934013962746,
0.050479959696531296,
0.005411605350673199,
0.007685082498937845,
-0.06595402956008911,
-0.012464313767850399,
-0.003267619526013732,
0.05655205622315407,
0.034561119973659515,
0.024250181391835213,
-0.023404235020279884,
-0.03249896317720413,
-0.025269100442528725,
-0.019858399406075478,
-0.056411053985357285,
-0.039214134216308594,
-0.022510498762130737,
-0.0030418825335800648,
-0.04482163116335869,
-0.02518610842525959,
0.022578103467822075,
0.0033206080552190542,
0.030178675428032875,
-0.03110658936202526,
-0.03241676837205887,
0.006695115473121405,
0.03752153366804123,
-0.07003118842840195,
-0.014104397967457771,
-0.037317611277103424,
0.0022636076901108027,
0.0007940495270304382,
-0.0016578369541093707,
0.021091096103191376,
-0.0034470991231501102,
0.0111813610419631,
-0.032515473663806915,
0.027909167110919952,
-0.05242753028869629,
-0.03303157910704613,
-0.029942775145173073,
0.04747007042169571,
-0.014019354246556759,
-0.038200683891773224,
-0.04977357015013695,
0.058455564081668854,
-0.01260195579379797,
-0.010825115256011486,
0.0039000052493065596,
0.01429996732622385,
0.03885797783732414,
0.005284253042191267,
0.0019978631753474474,
0.0731799378991127,
0.02900531515479088,
-0.026049891486763954,
-0.03244292736053467,
-0.0032478871289640665
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | Loading figures All numbers below are in seconds: GPU T4 A10G Base model loading - not cached 20 20 Base model loading - cached 5.95 4.09 Adapter 1 loading 3.07 3.46 Adapter 1 unloading 0.52 0.28 Adapter 2 loading 1.44 2.71 Adapter 2 unloading 0.19 0.13 Inference time 20.7 8.5 With 2 to 4 additional seconds per inference, we can serve many distinct LoRAs. However, on an A10G GPU, the inference time decreases by a lot while the adapters loading time does not change much, so the LoRA's loading/unloading is relatively more expensive. | [
0.04141668230295181,
0.0531090646982193,
0.0012009271886199713,
0.041577257215976715,
-0.02672434225678444,
0.004141272511333227,
0.029160859063267708,
0.054987043142318726,
-0.009947584010660648,
-0.05253516510128975,
0.06306121498346329,
0.028522301465272903,
-0.006548312492668629,
0.024699633941054344,
0.03664359077811241,
-0.04943953454494476,
-0.004508844576776028,
-0.05378670245409012,
-0.04728459566831589,
0.018739789724349976,
0.07236326485872269,
-0.04033815488219261,
0.07251893728971481,
0.00018511907546781003,
-0.03348149359226227,
0.0028291260823607445,
-0.04794998839497566,
0.0017510228790342808,
-0.015100059099495411,
0.0006633278098888695,
-0.07764997333288193,
0.0005869309534318745,
0.0015523092588409781,
-0.01805955357849598,
0.04210614785552025,
-0.10713967680931091,
-0.025635935366153717,
0.0320199653506279,
0.043587520718574524,
-0.027876339852809906,
0.02036590501666069,
-0.022137198597192764,
-0.05765672028064728,
0.029769141227006912,
0.05148946866393089,
0.0098706791177392,
-0.04596000164747238,
0.011358634568750858,
-0.03245016187429428,
0.020886529237031937,
-0.09902455657720566,
0.05588478595018387,
0.04929715394973755,
-0.001325436169281602,
0.06915353238582611,
0.02739897556602955,
0.04285635054111481,
-0.026003269478678703,
0.07739405333995819,
-0.04248643293976784,
0.07771522551774979,
-0.007483731489628553,
0.040746044367551804,
-0.010552333667874336,
0.05472389981150627,
-0.05050600320100784,
-0.0384947769343853,
-0.02220913954079151,
0.03431341424584389,
-0.005967091303318739,
-0.0036150633823126554,
-0.023745374754071236,
0.05238568037748337,
0.0332065112888813,
0.01706032268702984,
0.016258230432868004,
0.020522555336356163,
0.030994754284620285,
0.03163441643118858,
-0.03652149811387062,
-0.019599489867687225,
-0.03025462105870247,
0.028035910800099373,
-0.002705790800973773,
0.03294408321380615,
-0.03724448010325432,
0.025845415890216827,
-0.022770771756768227,
-0.004244706127792597,
0.045899033546447754,
-0.014686058275401592,
-0.08052050322294235,
0.04157181456685066,
-0.015711773186922073,
-0.008002201095223427,
0.026823615655303,
0.0416567325592041,
0.005630976986140013,
0.05346757173538208,
-0.0009037870913743973,
0.02800598368048668,
-0.08998454362154007,
0.060456760227680206,
-0.08140922337770462,
0.001594234025105834,
0.0021347482688724995,
-0.057249560952186584,
-0.07429106533527374,
-0.041350144892930984,
0.02652868814766407,
-0.0908118411898613,
0.06619148701429367,
0.0031713608186692,
0.036433689296245575,
-0.12273260205984116,
0.04779938980937004,
-0.003968908451497555,
0.0032315324060618877,
-0.015119464136660099,
0.04028170183300972,
0.015871722251176834,
0.0366024374961853,
0.05864056199789047,
-0.019094515591859818,
0.010476143099367619,
0.06957149505615234,
0.05641632154583931,
0.056525230407714844,
-0.00665669608861208,
-0.0044470373541116714,
0.055411774665117264,
-0.0910116583108902,
-0.022336874157190323,
-0.02509911172091961,
0.061104413121938705,
-0.07740253210067749,
-0.09740836173295975,
-0.019896164536476135,
0.07594429701566696,
0.05077570304274559,
-0.11355721205472946,
-0.0285799503326416,
0.039954084903001785,
-0.014891154132783413,
0.05619686841964722,
-0.04945311322808266,
-0.04698355123400688,
-0.03110400028526783,
-0.003495006589218974,
0.02416401356458664,
-0.17162342369556427,
0.030545450747013092,
-0.025038139894604683,
-0.06735358387231827,
0.09813573956489563,
0.004396140109747648,
-0.014564855955541134,
-0.013252363540232182,
-0.13232421875,
0.0155180674046278,
0.0108121857047081,
-0.06306329369544983,
-0.009117989800870419,
-0.005788199137896299,
0.06209523603320122,
0.016147639602422714,
-0.012223433703184128,
0.05346740409731865,
0.07333564758300781,
-0.025286776944994926,
0.02179574780166149,
-0.01643788069486618,
0.08092359453439713,
0.01436612382531166,
-0.053001824766397476,
0.033024974167346954,
-0.0026236302219331264,
-0.015679266303777695,
0.03442377969622612,
-0.023641077801585197,
-0.03573460131883621,
-0.009078609757125378,
0.01514433603733778,
0.005119043402373791,
-0.02964947186410427,
-0.09597797691822052,
0.03291298821568489,
-0.07854980230331421,
-0.0029393418226391077,
0.001826411229558289,
0.021649891510605812,
-0.014427212998270988,
0.08720333874225616,
-0.08256468921899796,
-0.03605380281805992,
-0.06824776530265808,
-0.07213583588600159,
0.051002923399209976,
0.0227360837161541,
-0.04182220250368118,
0.02947738952934742,
0.05265054851770401,
0.02202349156141281,
-0.003843930084258318,
-0.02102668769657612,
0.02799355611205101,
-0.01286085695028305,
-0.02369290590286255,
0.02671009488403797,
0.07716156542301178,
-0.012221706099808216,
-0.11597894877195358,
0.02776986174285412,
-0.022322380915284157,
0.07343784719705582,
-0.014980165287852287,
0.038855183869600296,
-0.021833626553416252,
0.048454977571964264,
-0.09332151710987091,
0.10104109346866608,
-0.023138443008065224,
-0.003161172615364194,
0.008861619979143143,
-0.06624112278223038,
-0.028749633580446243,
0.06626343727111816,
0.00854256097227335,
-0.02271592803299427,
-0.050415076315402985,
-0.028485184535384178,
-0.07693691551685333,
-0.04895469546318054,
0.04538894072175026,
0.007997202686965466,
-0.00921070296317339,
-0.05807822197675705,
-0.006880306173115969,
-0.010930045507848263,
-0.06384104490280151,
-0.022585546597838402,
0.02870289236307144,
0.05153166130185127,
0.008617730811238289,
0.005949840415269136,
-0.03670375049114227,
0.00005359369970392436,
-0.03337417170405388,
-0.03154637664556503,
-0.05798077955842018,
-0.005905231926590204,
-0.05334857851266861,
-0.019385600462555885,
0.028998540714383125,
0.02460925467312336,
-0.032709214836359024,
-0.009220871143043041,
-0.0237071942538023,
0.009220313280820847,
0.03507005795836449,
-0.03159262612462044,
-0.025078749284148216,
-0.02114223502576351,
0.02438831888139248,
0.017788022756576538,
-0.056516118347644806,
0.006568902172148228,
-0.04026872292160988,
-0.00018335222557652742,
-0.016498595476150513,
-0.002376250457018614,
-0.0025153046008199453,
0.006684970576316118,
-0.0009729401208460331,
0.029548849910497665,
-0.0030331281013786793,
0.008912737481296062,
0.026597915217280388,
-0.0045613981783390045,
-0.05279078334569931,
0.004434898030012846,
-0.04839964210987091,
0.038020938634872437,
0.009160571731626987,
-0.015874668955802917,
-0.030831146985292435,
0.03795570880174637,
-0.01983138546347618,
-0.020739376544952393,
0.0323021337389946,
0.02635776437819004,
-0.03450034558773041,
0.0005391802405938506,
-0.017306530848145485,
0.024316590279340744,
0.010669020004570484,
-0.02263067290186882,
-0.014580905437469482,
-0.0035059943329542875,
-0.04315204173326492,
0.027581291273236275,
0.04036181420087814,
0.007869529537856579,
0.03177119046449661,
-0.049223318696022034,
0.02619660086929798,
0.017076049000024796,
0.04044223576784134,
-0.07774880528450012,
0.019618794322013855,
-0.0432276576757431,
-0.002651723800227046,
-0.02761613391339779,
-0.003593392437323928,
0.02001887373626232,
-0.01004481315612793,
0.058404937386512756,
0.05694656819105148,
-0.008597257547080517,
0.027226191014051437,
0.025548644363880157,
-0.014090138487517834,
0.008797005750238895,
-0.008150510489940643,
0.04232170805335045,
0.024552302435040474,
-0.0077066305093467236,
-0.020518047735095024,
0.01680753193795681,
-0.01803835853934288,
-0.05172435939311981,
0.005821681581437588,
-0.007877329364418983,
0.03492440655827522,
0.004334471188485622,
-0.027920609340071678,
-0.004704387858510017,
-0.0017673366237431765,
-0.02062729373574257,
-0.015949012711644173,
0.027651097625494003,
0.005233566276729107,
-0.025059713050723076,
-0.011701173149049282,
-0.0650208592414856,
-0.006016245577484369,
0.01957913488149643,
0.02774014137685299,
0.031090766191482544,
-0.0026866053231060505,
0.021970491856336594,
-0.012580242939293385,
0.014398422092199326,
0.038149308413267136,
-0.02003970742225647,
0.02434471994638443,
0.007987269200384617,
-0.00016281666466966271,
0.01763787493109703,
0.023921869695186615,
0.025686798617243767,
0.00862258579581976,
-0.015285227447748184,
0.04107152670621872,
0.0006555955624207854,
-0.008742082864046097,
0.030232273042201996,
-0.056614894419908524,
-0.0583651065826416,
-0.0331527478992939,
0.02659701369702816,
-0.012853159569203854,
-0.05246541649103165,
-0.003012551926076412,
0.0012768070446327329,
0.019581852480769157,
-0.005959720350801945,
0.007429210469126701,
-0.05419548973441124,
0.03191960230469704,
-0.0053255148231983185,
0.00003970681063947268,
0.007965631783008575,
-0.02364579774439335,
0.0018089793156832457,
-0.008636396378278732,
0.061086054891347885,
0.04336324334144592,
-0.007864808663725853,
-0.06365998834371567,
-0.04158412665128708,
-0.047692153602838516,
-0.02718626894056797,
-0.019445057958364487,
-0.04652601480484009,
-0.025048578158020973,
0.01297511626034975,
0.0476713553071022,
0.004925720393657684,
-0.008919884450733662,
0.056566301733255386,
0.008874086663126945,
0.008271876722574234,
0.0011530817719176412,
0.07601787149906158,
0.049037691205739975,
0.07862989604473114,
0.01973957195878029,
0.020913608372211456,
-0.0005849755252711475,
0.042109571397304535,
0.03721896931529045,
-0.060092438012361526,
0.029798919335007668,
0.0032078339718282223,
0.01759491302073002,
-0.02736811712384224,
0.017328104004263878,
0.05551203340291977,
0.016766902059316635,
0.04386131092905998,
-0.011030062101781368,
0.03510701283812523,
0.05892029404640198,
-0.029773231595754623,
-0.00681777810677886,
-0.01391904428601265,
-0.024282775819301605,
-0.029517654329538345,
0.030194666236639023,
-0.013796121813356876,
-0.00618734722957015,
0.03243222460150719,
0.0676003023982048,
-0.013265675865113735,
0.0033710880670696497,
0.01880595088005066,
-0.020233334973454475,
-0.05346654728055,
0.02035471983253956,
-0.003858976298943162,
0.015488186851143837,
-0.020881488919258118,
-0.03052743338048458,
-0.04080526903271675,
0.024074774235486984,
0.00006392786599462852,
-0.008655748330056667,
-0.0005760706262663007,
0.021184589713811874,
0.017672698944807053,
-0.020378287881612778,
0.00675129983574152,
0.029149115085601807,
-0.001978356158360839,
0.04358379542827606,
-0.051684651523828506,
0.04397279769182205,
0.04417894408106804,
-0.01375412568449974,
-0.05291302502155304,
-0.000995420035906136,
0.06229086592793465,
0.017718182876706123,
-0.030414225533604622,
-0.020504964515566826,
-0.04872056096792221,
0.01033004093915224,
-0.018476543948054314,
0.0324968546628952,
0.028260577470064163,
0.04144628718495369,
0.006976303644478321,
0.0034454043488949537,
-0.008794888854026794,
-0.016652902588248253,
0.01509601529687643,
-0.010010672733187675,
-0.033927105367183685,
-0.020668113604187965,
0.0163560938090086,
0.0194933470338583,
0.07980920374393463,
0.025766979902982712,
0.0077928113751113415,
-0.01509032677859068,
0.03972122445702553,
0.0060599022544920444,
-0.04669078439474106,
-0.020541856065392494,
0.037151359021663666,
-0.029662735760211945,
0.02624368853867054,
0.028224963694810867,
0.004560218658298254,
0.06044978275895119,
0.06454270333051682,
0.012445592321455479,
0.036856092512607574,
0.02219591662287712,
0.04057701677083969,
-0.029380694031715393,
0.0032462498638778925,
-0.005672337021678686,
0.05688444525003433,
0.033988408744335175,
-0.04175160825252533,
-0.028192363679409027,
-0.005358503665775061,
0.04575397074222565,
-0.04609471559524536,
-0.051338862627744675,
-0.022361667826771736,
0.030671371147036552,
0.03779846802353859,
-0.009899528697133064,
0.05570681765675545,
-0.02240024507045746,
-0.0053935484029352665,
-0.02956165373325348,
-0.03798281028866768,
0.03648913651704788,
0.01751006580889225,
-0.030963046476244926,
-0.045549552887678146,
0.06009604409337044,
0.013361521996557713,
0.0408964641392231,
-0.008422642014920712,
-0.02915303409099579,
-0.03190477564930916,
-0.05368170887231827,
0.030406014993786812,
-0.06099783629179001,
0.00998890120536089,
-0.03188366815447807,
-0.008044956251978874,
0.02559904381632805,
-0.020728636533021927,
0.004761173855513334,
-0.02794179879128933,
0.036928724497556686,
0.027332564815878868,
0.04602173715829849,
-0.01756221242249012,
-0.006486427970230579,
0.04374944418668747,
0.010580584406852722,
-0.06341458857059479,
0.0007689333287999034,
0.01807505637407303,
-0.03030669130384922,
-0.013284464366734028,
0.01557176373898983,
0.04228948801755905,
-0.04405384510755539,
-0.03459271416068077,
0.027875948697328568,
0.009698199108242989,
-0.021128879860043526,
0.03168953210115433,
0.006753392051905394,
0.012541119940578938,
-0.026881681755185127,
0.018228067085146904,
0.0133095383644104,
0.0046495734713971615,
-0.03033035807311535,
0.023922011256217957,
0.0016444235807284713,
0.011493105441331863,
0.025325853377580643,
-0.002900477731600404,
-0.009489133022725582,
0.010287598706781864,
-0.02527739852666855,
0.038087598979473114,
-0.003953159786760807,
-0.01620827428996563,
-0.03314321115612984,
-0.018697891384363174,
0.015033450908958912,
-0.020857589319348335,
0.0013872759882360697,
0.011461789719760418,
0.05057108774781227,
-0.012309988029301167,
0.005325034726411104,
0.03482776880264282,
0.04068762809038162,
0.03649546578526497,
0.016836345195770264,
0.013580434024333954,
-0.020610572770237923,
0.0431751124560833,
0.01213078387081623,
0.008323673158884048,
0.02802063710987568,
-0.03758714720606804,
-0.022129762917757034,
-0.010837122797966003,
0.009297392331063747,
-0.06266146153211594,
-0.005884150508791208,
0.04879363253712654,
0.018977338448166847,
0.05477757751941681,
-0.026573780924081802,
0.018006157130002975,
0.025730565190315247,
0.043703801929950714,
-0.01877441629767418,
-0.0010117118945345283,
-0.024560289457440376,
0.013376342132687569,
0.02087920904159546,
0.031494561582803726,
-0.011132280342280865,
-0.020293347537517548,
0.02989291027188301,
0.009862029924988747,
0.0018156508449465036,
0.06421303004026413,
0.036890801042318344,
-0.042120520025491714,
-0.004539036191999912,
-0.023289809003472328,
0.026821628212928772,
0.007853544317185879,
0.038575511425733566,
0.010041255503892899,
-0.03113199956715107,
-0.047808822244405746,
0.005116553511470556,
0.031247273087501526,
-0.044407736510038376,
0.016538597643375397,
0.03827463462948799,
0.00011955713125644252,
-0.03596532344818115,
0.03324730694293976,
-0.009663943201303482,
-0.01933334954082966,
0.003257997566834092,
-0.002466122852638364,
-0.00014575528621207923,
0.016178494319319725,
0.047344110906124115,
-0.0020239893347024918,
0.024706464260816574,
0.0010283355368301272,
0.02656715363264084,
0.021667199209332466,
0.024305062368512154,
0.05231703072786331,
-0.033573053777217865,
0.00031192885944619775,
-0.014485463500022888,
-0.03199007362127304,
0.02802210859954357,
0.02523268572986126,
0.012149506248533726,
-0.008699209429323673,
-0.009656908921897411,
0.05755306035280228,
-0.02845935709774494,
-0.020855139940977097,
-0.021641427651047707,
0.03814748302102089,
0.040173836052417755,
-0.009058743715286255,
0.010913965292274952,
-0.03816453740000725,
-0.002011251403018832,
-0.045139167457818985,
-0.006668129004538059,
0.02130204625427723,
-0.048157162964344025,
0.022683048620820045,
0.002393328584730625,
-0.008072572760283947,
0.02726876735687256,
-0.04975523427128792,
0.004196783062070608,
0.03643525391817093,
-0.03167305141687393,
0.025647038593888283,
0.00925392471253872,
0.015063256956636906,
-0.009028208442032337,
0.03331683203577995,
-0.0019519474590197206,
-0.037975698709487915,
-0.020863471552729607,
-0.024597641080617905,
-0.02159085124731064,
0.004386804066598415,
0.02339516580104828,
-0.03945087268948555,
0.030324550345540047,
-0.04978517070412636,
-0.0009889161447063088,
-0.020070180296897888,
0.025420987978577614,
-0.024543553590774536,
-0.027212828397750854,
-0.004089858382940292,
0.01731443777680397,
-0.0046508233062922955,
0.005447594914585352,
0.03565962240099907,
-0.010629372671246529,
0.004013612400740385,
-0.019024010747671127,
0.040527038276195526,
0.009672786109149456,
-0.03303151950240135,
0.03263743594288826,
-0.016400672495365143,
0.005243876948952675,
-0.023425426334142685,
-0.010859011672437191,
0.007710071746259928,
-0.002155614783987403,
-0.03648322448134422,
0.04457646608352661,
0.011627515777945518,
0.06128765270113945,
-0.016448350623250008,
-0.043678805232048035,
-0.0009437104454264045,
0.00124276930000633,
0.0596885047852993,
-0.003292686538770795,
-0.005374534521251917,
0.002149173291400075,
0.036062806844711304,
-0.049105871468782425,
-0.02185431867837906,
0.024649323895573616,
0.013546960428357124,
-0.015746990218758583,
-0.001514096395112574,
-0.0034453095868229866,
0.02985694631934166,
0.002710901666432619,
0.03771575540304184,
0.009906376712024212,
-0.05382817983627319,
0.016592076048254967,
-0.04385729879140854,
0.04868997633457184,
-0.0043611363507807255,
-0.06413916498422623,
-0.018589455634355545,
0.016650311648845673,
0.015376566909253597,
0.009922513738274574,
-0.02859131619334221,
-0.025736438110470772,
0.04160192608833313,
0.016084928065538406,
-0.03368806466460228,
-0.023589620366692543,
0.0466933511197567,
0.02387911081314087,
-0.004510213155299425,
-0.007319034542888403
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | # Goodbye cold boot - how we made LoRA Inference 300% faster tl;dr: We swap the Stable Diffusion LoRA adapters per user request, while keeping the base model warm allowing fast LoRA inference across multiple users. You can experience this by browsing our LoRA catalogue and playing with the inference widget. In this blog we will go in detail over how we achieved that. We've been able to drastically speed up inference in the Hub for public LoRAs based on public Diffusion models. This has allowed us to save compute resources and provide a faster and better user experience. To perform inference on a given model, there are two steps: 1. Warm up phase - that consists in downloading the model and setting up the service (25s). 2. Then the inference job itself (10s). With the improvements, we were able to reduce the warm up time from 25s to 3s. We are now able to serve inference for hundreds of distinct LoRAs, with less than 5 A10G GPUs, while the response time to user requests decreased from 35s to 13s. Let's talk more about how we can leverage some recent features developed in the Diffusers library to serve many distinct LoRAs in a dynamic fashion with one single service. | [
0.03076304867863655,
-0.005983287934213877,
0.016080474480986595,
0.026662113144993782,
0.050188999623060226,
0.04869946464896202,
0.004179639276117086,
0.048257358372211456,
-0.004966019187122583,
-0.03429539501667023,
-0.014946788549423218,
-0.011817380785942078,
-0.0020800677593797445,
0.03459736332297325,
-0.030645079910755157,
-0.06073557958006859,
-0.015118693001568317,
-0.07993432879447937,
-0.028293436393141747,
0.05232224240899086,
0.08195727318525314,
-0.03937860578298569,
0.028164424002170563,
-0.03176455572247505,
-0.04093800112605095,
-0.027116084471344948,
0.04131191968917847,
0.028388213366270065,
-0.01650596223771572,
0.0060518356040120125,
-0.06956140697002411,
0.03864080831408501,
0.010576790198683739,
-0.02381710894405842,
0.08228947222232819,
-0.06256623566150665,
-0.07529257237911224,
0.009355495683848858,
0.044350530952215195,
-0.0008224121411330998,
0.04741276055574417,
-0.032878801226615906,
-0.03313146531581879,
0.025812050327658653,
0.014172903262078762,
-0.030712628737092018,
-0.14674168825149536,
0.027470191940665245,
-0.013342808932065964,
0.0018828990869224072,
-0.10640372335910797,
0.04113394394516945,
-0.025829168036580086,
-0.005635554436594248,
0.02802247367799282,
-0.0050908480770885944,
0.01875930279493332,
0.009334338828921318,
0.044609151780605316,
-0.024916797876358032,
-0.00368824927136302,
0.007464669179171324,
0.02645948715507984,
0.039195433259010315,
0.027425121515989304,
0.021991724148392677,
-0.042925942689180374,
-0.006058053579181433,
0.002059487858787179,
-0.00961671955883503,
0.006298155523836613,
-0.01587214507162571,
0.028367720544338226,
0.0019940175116062164,
0.022034205496311188,
-0.020249515771865845,
0.05766390264034271,
0.09715310484170914,
0.08546025305986404,
-0.03048594482243061,
-0.07291898876428604,
-0.025616249069571495,
0.034661322832107544,
0.00806521624326706,
0.029286818578839302,
-0.018124660477042198,
0.034167394042015076,
-0.030023686587810516,
-0.01700367033481598,
-0.05718313530087471,
0.005144577007740736,
-0.06153528019785881,
0.029721122235059738,
0.03888348489999771,
0.013428740203380585,
0.08825928717851639,
0.008079729042947292,
0.0278921015560627,
0.036371298134326935,
-0.02798127569258213,
0.014747272245585918,
-0.09688232839107513,
-0.00376749481074512,
-0.09527139365673065,
0.015954531729221344,
0.042897116392850876,
-0.07313576340675354,
-0.11817259341478348,
-0.04543603956699371,
0.08972189575433731,
-0.01741175353527069,
0.05598912015557289,
-0.05499807372689247,
0.02265072427690029,
-0.09248725324869156,
0.03920755162835121,
0.00946676917374134,
0.003579744603484869,
-0.029787659645080566,
0.024936342611908913,
0.005247924942523241,
0.07017874717712402,
0.05990414321422577,
-0.004091768059879541,
-0.03963397070765495,
0.04224766418337822,
0.04404803365468979,
-0.005745274014770985,
-0.03293200582265854,
0.04657520726323128,
0.0643015056848526,
-0.04649028182029724,
-0.004289914388209581,
-0.033931486308574677,
0.08341111242771149,
-0.1288975477218628,
-0.0762769803404808,
0.008995508775115013,
0.08099893480539322,
0.04499075934290886,
-0.04579916223883629,
-0.04568883776664734,
0.060794033110141754,
-0.0312860943377018,
0.08157148212194443,
0.03477710857987404,
-0.009148674085736275,
-0.03363804146647453,
-0.014448786154389381,
0.029341766610741615,
-0.08478333801031113,
0.07917772978544235,
-0.03510555624961853,
-0.06835788488388062,
-0.010057024657726288,
0.06340473145246506,
-0.04398592934012413,
-0.07761810719966888,
-0.04268546774983406,
0.001235790434293449,
-0.02479822188615799,
-0.08959023654460907,
-0.03536121919751167,
-0.013311286456882954,
0.05644100159406662,
-0.019581956788897514,
-0.015904059633612633,
0.0018524881452322006,
0.09200289845466614,
0.03865697234869003,
0.10213280469179153,
-0.0028223185800015926,
0.06024178862571716,
-0.013590330258011818,
0.03369543328881264,
0.08470818400382996,
0.05123596265912056,
0.05234801396727562,
0.020294498652219772,
0.005849321838468313,
-0.013082388788461685,
0.058822765946388245,
-0.033557407557964325,
0.025434141978621483,
0.016613950952887535,
-0.0824052169919014,
0.04573935642838478,
-0.032164767384529114,
0.04940876364707947,
-0.026822460815310478,
0.03178587183356285,
0.027975330129265785,
0.07724486291408539,
-0.03103000298142433,
0.026192331686615944,
-0.03187820315361023,
-0.01980026252567768,
0.06478741765022278,
0.008593255653977394,
0.02822910249233246,
-0.004702012054622173,
0.00459599494934082,
0.0782812163233757,
-0.031062159687280655,
-0.026160914450883865,
0.003955489490181208,
-0.004353695549070835,
-0.013924227096140385,
0.03782068192958832,
0.020618941634893417,
-0.062834233045578,
-0.12149973213672638,
0.025774391368031502,
-0.017003685235977173,
0.06186332926154137,
-0.013318164274096489,
0.020454730838537216,
-0.01145823486149311,
0.03749046102166176,
-0.07517573982477188,
0.12563088536262512,
0.002495125401765108,
0.02320602908730507,
0.00610634358599782,
-0.01960291527211666,
-0.0017482753610238433,
0.07862081378698349,
-0.05486775562167168,
0.0611809678375721,
-0.06504292041063309,
-0.02000170759856701,
-0.09202045202255249,
-0.05570448935031891,
-0.006831131875514984,
0.03345510736107826,
0.045461270958185196,
-0.03560565784573555,
-0.03115682862699032,
-0.023942796513438225,
-0.065093494951725,
0.02551916614174843,
0.04236038029193878,
0.016571467742323875,
0.05376260355114937,
-0.01250889990478754,
-0.03834047541022301,
0.09017907828092575,
0.032841771841049194,
0.013106200844049454,
-0.04072907567024231,
-0.016653066501021385,
-0.04798166826367378,
-0.014468290843069553,
-0.00023616597172804177,
0.06481251120567322,
-0.0501701720058918,
-0.020593522116541862,
-0.034775104373693466,
0.001214637071825564,
0.05436401069164276,
-0.00038766430225223303,
-0.005891093052923679,
-0.0035981356631964445,
-0.0016173685435205698,
0.02434910461306572,
0.011234816163778305,
-0.019865306094288826,
-0.0012212373549118638,
0.002230648882687092,
-0.026686957105994225,
0.03263333812355995,
-0.008740187622606754,
0.007237667217850685,
0.012354381382465363,
-0.012878735549747944,
-0.019586071372032166,
0.04830960929393768,
-0.0004849161778111011,
-0.008317661471664906,
-0.03076321817934513,
-0.003855533432215452,
-0.02837652899324894,
-0.004167542327195406,
-0.0026444278191775084,
0.009857375174760818,
-0.022697871550917625,
0.00883864238858223,
-0.019095204770565033,
-0.054168492555618286,
0.0501956045627594,
-0.00009549509559292346,
-0.029725581407546997,
0.02072039619088173,
-0.0248414259403944,
-0.004080294631421566,
-0.0036556352861225605,
-0.00857504177838564,
-0.03772455081343651,
-0.04514613747596741,
0.0017667117062956095,
0.005031160544604063,
-0.04844963178038597,
0.02300240658223629,
-0.00020354799926280975,
-0.03037312813103199,
0.06478872895240784,
-0.03056766279041767,
0.022563235834240913,
-0.09129313379526138,
-0.006950868293642998,
-0.02860439568758011,
0.06059899926185608,
0.0024859861005097628,
-0.03442811220884323,
0.08402562886476517,
-0.04520608112215996,
0.0669754222035408,
0.04753228276968002,
-0.026979103684425354,
0.050035543739795685,
0.004603876266628504,
-0.033111993223428726,
-0.04422830790281296,
0.024799412116408348,
0.04075217992067337,
0.005738591309636831,
0.006240841466933489,
-0.0012317629298195243,
-0.016312768682837486,
0.002861622953787446,
-0.036216359585523605,
0.001389447832480073,
0.024226827546954155,
-0.0031564021483063698,
0.02761789970099926,
0.013217088766396046,
0.030542803928256035,
-0.018009396269917488,
0.005845368839800358,
-0.025071118026971817,
0.011215639300644398,
0.009919377975165844,
-0.018033690750598907,
0.024273281916975975,
-0.03937750682234764,
0.014724036678671837,
0.03674924746155739,
0.010816925205290318,
-0.02030286379158497,
0.019646035507321358,
0.039812877774238586,
0.022326098755002022,
0.015279273502528667,
0.007396407891064882,
-0.016256587579846382,
0.02504682168364525,
0.014245802536606789,
-0.018120041117072105,
0.0066879428923130035,
0.024018142372369766,
0.04217897728085518,
0.013921971432864666,
-0.015840930864214897,
0.026907019317150116,
-0.002257228596135974,
0.037355951964855194,
0.04028603062033653,
-0.05161653086543083,
-0.03568428009748459,
0.008180319331586361,
0.038384564220905304,
-0.00017113363719545305,
-0.05505227670073509,
-0.017150267958641052,
0.04135991260409355,
0.0360676571726799,
0.006754723377525806,
0.01916745863854885,
-0.0331723615527153,
0.008747144602239132,
0.030138345435261726,
-0.0091934222728014,
0.005226610228419304,
0.011691063642501831,
0.0020961971022188663,
-0.03456757590174675,
0.04379327967762947,
0.060110386461019516,
-0.004669476300477982,
-0.032211121171712875,
0.007892830297350883,
-0.03838079050183296,
0.05140221118927002,
0.01073793787509203,
0.002297722501680255,
-0.04326234757900238,
0.03409481793642044,
-0.010511340573430061,
-0.017777495086193085,
-0.012569609098136425,
0.030013298615813255,
-0.0018946980126202106,
0.02483258582651615,
0.010129856877028942,
0.0610758401453495,
0.03238258883357048,
0.06334766745567322,
0.011713193729519844,
-0.009687976911664009,
0.0031267800368368626,
-0.002552524209022522,
0.02694314904510975,
-0.07383561879396439,
-0.0023629842326045036,
-0.021052571013569832,
0.014109757728874683,
-0.009493717923760414,
-0.007829315029084682,
0.027515657246112823,
0.014507376588881016,
-0.01134209893643856,
-0.013018342666327953,
-0.021468592807650566,
0.07602343708276749,
-0.03961391746997833,
-0.010953420773148537,
-0.01909988932311535,
0.007842060178518295,
-0.030003059655427933,
-0.00022431100660469383,
0.024656249210238457,
-0.04410260170698166,
0.05106053873896599,
0.06392700225114822,
0.0031553583685308695,
-0.045058611780405045,
0.010221278294920921,
-0.012727181427180767,
-0.032612986862659454,
-0.014650455676019192,
0.016745591536164284,
0.0009740320965647697,
0.0065950388088822365,
-0.03947865590453148,
-0.022401798516511917,
0.0013375385897234082,
0.005369953811168671,
0.016944672912359238,
-0.05650250241160393,
-0.0180730689316988,
0.03469592332839966,
-0.047620709985494614,
0.010653730481863022,
0.017268594354391098,
-0.024372417479753494,
0.002280247863382101,
-0.037252478301525116,
0.031225573271512985,
0.03042910434305668,
-0.05256335064768791,
-0.027786774560809135,
0.011936507187783718,
0.02717249095439911,
-0.022904518991708755,
-0.04113010689616203,
-0.02381514571607113,
0.025165125727653503,
-0.0025734868831932545,
0.015388492494821548,
0.029008110985159874,
-0.02742394432425499,
0.03278862312436104,
-0.011041861027479172,
-0.024952474981546402,
0.001826458377763629,
-0.003506614360958338,
-0.0252337958663702,
0.016228627413511276,
-0.06782245635986328,
0.02175060659646988,
-0.0036446168087422848,
-0.0032002839725464582,
0.06569068133831024,
-0.0029774103313684464,
0.028398964554071426,
0.001383745577186346,
0.0212309118360281,
0.023862315341830254,
-0.020963577553629875,
-0.013998321257531643,
0.025717031210660934,
-0.05162867531180382,
-0.008583509363234043,
0.0218861885368824,
0.013623276725411415,
0.0527559369802475,
0.08184368163347244,
0.028742264956235886,
0.006798692513257265,
0.007755226455628872,
0.0067175026051700115,
-0.03699818253517151,
-0.0022322647273540497,
-0.025130297988653183,
0.025001738220453262,
0.031047184020280838,
-0.04126061126589775,
-0.003177686594426632,
-0.027821863070130348,
0.01760794408619404,
-0.03287343680858612,
-0.05604095384478569,
0.024526815861463547,
0.009820740669965744,
0.019608188420534134,
0.0030166672077029943,
0.03215046972036362,
-0.004173156805336475,
0.005645055323839188,
-0.02829851396381855,
0.0009528304217383265,
-0.03796885162591934,
0.003235636046156287,
-0.0047495244070887566,
-0.0437212809920311,
0.03662485629320145,
-0.0013521016808226705,
0.018417615443468094,
-0.04085623100399971,
-0.04177334904670715,
-0.03386525437235832,
-0.03619472309947014,
-0.02786848321557045,
-0.04337285831570625,
-0.0013766444753855467,
-0.03112569823861122,
-0.011625359766185284,
0.018589306622743607,
0.03531144931912422,
0.02116512320935726,
0.003474436467513442,
0.017717717215418816,
0.0038870542775839567,
0.030731936916708946,
-0.046468283981084824,
0.030154172331094742,
0.06487826257944107,
0.018888162449002266,
-0.04389963299036026,
-0.025122173130512238,
-0.017569031566381454,
-0.051997262984514236,
-0.04936010390520096,
0.022250019013881683,
0.01811876706779003,
-0.023836495354771614,
-0.033256832510232925,
0.010248239152133465,
-0.01335894875228405,
-0.0245448499917984,
0.05084441229701042,
0.021575137972831726,
0.033004093915224075,
0.01360185444355011,
0.0374467670917511,
-0.032727912068367004,
-0.018494892865419388,
-0.03351922333240509,
0.03404664620757103,
-0.029491690918803215,
0.04303772374987602,
0.0010325531475245953,
0.0008245269418694079,
0.03707144036889076,
0.04392305761575699,
-0.07704337686300278,
0.016622675582766533,
0.012091541662812233,
0.030101081356406212,
0.0023194560781121254,
-0.029966464266180992,
0.014483490027487278,
-0.036498699337244034,
0.020588476210832596,
0.004638989455997944,
0.05260076746344566,
0.0008413120522163808,
-0.0028922799974679947,
0.01899252086877823,
0.04914272576570511,
0.035343680530786514,
-0.018664434552192688,
0.04160340875387192,
0.014465468004345894,
0.016260307282209396,
-0.034326255321502686,
-0.0035346990916877985,
0.011455376632511616,
-0.007941343821585178,
-0.003122952999547124,
0.00903768464922905,
0.007028850726783276,
0.00020061830582562834,
-0.011153637431561947,
0.014028691686689854,
-0.0003156130842398852,
0.00798773393034935,
-0.029342995956540108,
0.034019164741039276,
0.05880017578601837,
0.0992133766412735,
-0.008931530639529228,
-0.003840800141915679,
0.01580774039030075,
0.02638067863881588,
0.030916674062609673,
0.005824337247759104,
0.012950338423252106,
-0.020096203312277794,
-0.033803485333919525,
-0.0120568061247468,
0.0497097447514534,
-0.001579865114763379,
0.04357531666755676,
-0.009641436859965324,
-0.010014797560870647,
-0.003810788504779339,
0.01717494986951351,
0.010870031081140041,
0.027477657422423363,
-0.012853521853685379,
0.008551815524697304,
-0.049670930951833725,
0.013692520558834076,
0.02000541239976883,
-0.045208558440208435,
0.007660132832825184,
0.012703116051852703,
0.027365049347281456,
-0.011919689364731312,
-0.013121707364916801,
-0.009724138304591179,
-0.013743146322667599,
-0.03215426951646805,
0.008607783354818821,
0.007742676883935928,
-0.04844706505537033,
-0.013374121859669685,
0.008034901693463326,
0.025195300579071045,
0.005699892528355122,
0.03444555401802063,
-0.015965746715664864,
0.02355838380753994,
0.028278684243559837,
0.01839602179825306,
-0.004898485261946917,
-0.008983664214611053,
-0.028906594961881638,
0.010285453870892525,
-0.038380082696676254,
-0.010054711252450943,
0.028931468725204468,
-0.06161396950483322,
0.027461545541882515,
-0.011611602269113064,
-0.04364722967147827,
-0.0038676257245242596,
0.035121798515319824,
0.01682923175394535,
-0.033276576548814774,
-0.018533453345298767,
-0.04296102747321129,
0.006029236130416393,
0.007397077977657318,
0.008997931145131588,
0.013918102718889713,
-0.013612662442028522,
0.015077855437994003,
-0.014633950777351856,
0.024264991283416748,
0.0044217463582754135,
-0.005202272906899452,
-0.01718120649456978,
0.053172383457422256,
-0.03290535509586334,
-0.0009866359177976847,
-0.0037046298384666443,
0.04000202566385269,
0.016819491982460022,
0.03464560583233833,
0.03485453501343727,
0.007624662481248379,
-0.003875342896208167,
-0.03993333876132965,
0.008360962383449078,
-0.0169721357524395,
0.03260720521211624,
-0.00476697226986289,
-0.02622871659696102,
-0.048678234219551086,
0.029327336698770523,
-0.024114638566970825,
0.040048327296972275,
-0.006140878424048424,
-0.03017853945493698,
-0.03034747764468193,
0.01158736553043127,
-0.01806783676147461,
-0.0010843061609193683,
0.02115647681057453,
0.028223246335983276,
0.019112369045615196,
0.0010296690743416548,
-0.02144915796816349,
-0.04269171878695488,
-0.0012191429268568754,
0.0833854228258133,
0.02148381620645523,
0.01785476692020893,
-0.021505000069737434,
-0.006394446827471256,
-0.020991118624806404,
0.004951723851263523,
-0.05339021235704422,
0.0036595852579921484,
0.017359236255288124,
-0.0007510089781135321,
-0.03808336332440376,
0.0021957161370664835,
0.047068674117326736,
-0.03825075179338455,
0.0509842187166214,
0.007559502962976694,
-0.009921956807374954,
0.010555379092693329,
0.014083361253142357,
-0.04295921325683594,
-0.03703756630420685,
0.009422278963029385,
0.014447405003011227,
-0.03726332634687424,
0.007950183935463428,
0.013621565885841846,
-0.013973420485854149,
0.004105251748114824,
0.002979469485580921,
-0.00036845714203082025,
-0.062074851244688034,
-0.051811717450618744,
-0.0032875314354896545,
0.026975655928254128,
-0.017096055671572685,
-0.0333373136818409,
-0.023008013144135475,
0.023837408050894737,
-0.018142949789762497,
-0.0013871499104425311,
0.010050780139863491,
-0.009017938748002052,
-0.009798228740692139,
-0.004388032015413046,
-0.052970267832279205,
0.0312773697078228,
0.053977884352207184,
-0.007174369879066944,
-0.02451503835618496,
-0.053494103252887726
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | Benefits We have approximately 2500 distinct public LoRAs on the Hub. The vast majority (~92%) of them are LoRAs based on the Stable Diffusion XL Base 1.0 model. Before this mutualization, this would have meant deploying a dedicated service for all of them (eg. for all the yellow merged matrices in the diagram above); releasing + reserving at least one new GPU. The time to spawn the service and have it ready to serve requests for a specific model is approximately 25s, then on top of this you have the inference time (~10s for a 1024x1024 SDXL inference diffusion with 25 inference steps on an A10G). If an adapter is only occasionally requested, its service gets stopped to free resources preempted by others. If you were requesting a LoRA that was not so popular, even if it was based on the SDXL model like the vast majority of adapters found on the Hub so far, it would have required 35s to warm it up and get an answer on the first request (the following ones would have taken the inference time, eg. 10s). Now: request time has decreased from 35s to 13s since adapters will use only a few distinct "blue" base models (like 2 significant ones for Diffusion). Even if your adapter is not so popular, there is a good chance that its "blue" service is already warmed up. In other words, there is a good chance that you avoid the 25s warm up time, even if you do not request your model that often. The blue model is already downloaded and ready, all we have to do is unload the previous adapter and load the new one, which takes 3s as we see below. Overall, this requires less GPUs to serve all distinct models, even though we already had a way to share GPUs between deployments to maximize their compute usage. In a 2min time frame, there are approximately 10 distinct LoRA weights that are requested. Instead of spawning 10 deployments, and keeping them warm, we simply serve all of them with 1 to 2 GPUs (or more if there is a request burst). | [
0.05387599393725395,
-0.005564588122069836,
0.02170938439667225,
0.04823693633079529,
0.05479033663868904,
0.031100766733288765,
0.024172302335500717,
0.08122032880783081,
-0.0010413023410364985,
-0.05530417338013649,
0.010490558110177517,
-0.007024941500276327,
-0.0059057273901999,
0.05073129013180733,
-0.0015848628245294094,
-0.06592138856649399,
0.04907120019197464,
-0.06758074462413788,
-0.022419791668653488,
0.06964687258005142,
0.0722850039601326,
-0.00843917764723301,
0.058570876717567444,
-0.0052787913009524345,
-0.03487982228398323,
-0.02960357815027237,
0.004355326294898987,
0.022723134607076645,
0.005495281890034676,
-0.003443371271714568,
-0.0664777159690857,
0.04237062484025955,
0.028564034029841423,
0.0025204666890203953,
0.08191728591918945,
-0.09649976342916489,
-0.0624314621090889,
0.027626564726233482,
0.03437136858701706,
-0.012672007083892822,
0.08129999786615372,
-0.025531558319926262,
-0.08731061220169067,
0.03429147228598595,
-0.016758406534790993,
-0.0034454516135156155,
-0.12816505134105682,
0.08587437123060226,
-0.04056929796934128,
0.010065484791994095,
-0.13269563019275665,
-0.015609277412295341,
0.011408703401684761,
0.007369524333626032,
0.06502119451761246,
-0.010594034567475319,
0.03511306643486023,
-0.014745861291885376,
0.027379348874092102,
-0.025747086852788925,
0.03783264011144638,
-0.02598373033106327,
0.0618915818631649,
0.033127956092357635,
0.01955520547926426,
-0.03573385626077652,
0.00838907714933157,
-0.0351954810321331,
0.044260673224925995,
-0.07476925104856491,
0.006463191006332636,
-0.03276725858449936,
-0.006014349404722452,
0.005082019604742527,
0.031332388520240784,
-0.05468716099858284,
0.010354481637477875,
0.06330304592847824,
0.057044267654418945,
-0.06181150674819946,
-0.017897315323352814,
0.013299472630023956,
0.03104179911315441,
-0.042316585779190063,
-0.007639118004590273,
-0.03224597126245499,
0.07493766397237778,
-0.01728595420718193,
-0.039357174187898636,
-0.005391782149672508,
-0.009132599458098412,
-0.03177958354353905,
0.08089283108711243,
0.02216501533985138,
0.03679954633116722,
-0.006853804457932711,
0.00582064688205719,
0.010588529519736767,
0.04088291898369789,
-0.014548520557582378,
-0.020079681649804115,
-0.04447980597615242,
-0.012195193208754063,
-0.07722330093383789,
-0.016087111085653305,
0.027250954881310463,
-0.032082751393318176,
-0.10819683223962784,
-0.05426990985870361,
0.02976640686392784,
-0.015163591131567955,
0.010916958563029766,
-0.034389678388834,
0.038243625313043594,
-0.0636163130402565,
0.05909602716565132,
0.015052927657961845,
0.010221964679658413,
-0.003386371536180377,
0.04357583075761795,
0.013097158633172512,
0.08389484137296677,
0.03989068418741226,
0.010281376540660858,
-0.008416306227445602,
0.03369896486401558,
0.04771910235285759,
-0.02879853919148445,
-0.09712973982095718,
-0.0165349580347538,
-0.0028957086615264416,
-0.04551628232002258,
-0.021471986547112465,
-0.07858163863420486,
0.05223419889807701,
-0.09159906953573227,
-0.03893048316240311,
-0.019941598176956177,
0.03814098984003067,
0.035382311791181564,
-0.0905553549528122,
-0.005527975503355265,
0.03194929286837578,
0.0024508654605597258,
0.061041440814733505,
-0.018513167276978493,
-0.001156234066002071,
-0.027584213763475418,
-0.030629482120275497,
-0.0026675786357373,
-0.08586323261260986,
0.07390591502189636,
-0.06454968452453613,
-0.07911466807126999,
0.020663181319832802,
0.02308797836303711,
-0.0396353080868721,
-0.052379969507455826,
-0.046738989651203156,
0.05605930835008621,
-0.05123237520456314,
-0.06133854761719704,
-0.030876046046614647,
0.002756996313109994,
0.006951855029910803,
-0.010192970745265484,
0.006907159928232431,
-0.0718761757016182,
0.08239904046058655,
0.0014942814595997334,
0.05686284974217415,
-0.010149970650672913,
0.10417306423187256,
-0.012451131828129292,
0.005297321826219559,
0.06909889727830887,
0.09254705905914307,
0.04627002403140068,
0.020888809114694595,
0.0017564942827448249,
-0.0497671514749527,
0.02535976842045784,
-0.05710979923605919,
0.07363785803318024,
0.010987211018800735,
-0.11733315140008926,
0.047304727137088776,
0.013929052278399467,
-0.004156035371124744,
0.0025752082001417875,
0.014949862845242023,
0.029664378613233566,
0.05421864986419678,
-0.012825536541640759,
0.004005586262792349,
-0.08509660512208939,
-0.06387688219547272,
0.09314604848623276,
0.039261024445295334,
-0.024760708212852478,
0.07470069825649261,
0.03406182676553726,
0.024202676489949226,
-0.04116205498576164,
-0.08736249059438705,
-0.012060686014592648,
-0.016557229682803154,
-0.04392344132065773,
0.020609276369214058,
0.01322029810398817,
-0.03723505139350891,
-0.13924042880535126,
0.0239018015563488,
-0.019671719521284103,
0.08160893619060516,
-0.02256934717297554,
-0.0020336133893579245,
-0.020951608195900917,
0.01976572908461094,
-0.08974704146385193,
0.16850334405899048,
-0.01822640560567379,
0.010647299699485302,
0.05467483028769493,
-0.016704894602298737,
0.037405941635370255,
0.08643598109483719,
-0.017366917803883553,
0.015022979117929935,
-0.024834271520376205,
-0.031167391687631607,
-0.05699342116713524,
-0.06194433569908142,
0.02187448740005493,
0.03446907550096512,
0.04700656607747078,
-0.013493472710251808,
-0.061495743691921234,
-0.004373863805085421,
-0.04040364921092987,
0.010592496953904629,
0.045763492584228516,
0.06856311112642288,
0.03565053641796112,
0.010793440975248814,
-0.05437977984547615,
0.027405420318245888,
0.03306272625923157,
-0.034486882388591766,
-0.030565621331334114,
-0.09514268487691879,
-0.03669625520706177,
-0.01745004765689373,
-0.0019818400032818317,
0.057956546545028687,
-0.02168724685907364,
-0.004473600536584854,
-0.03130507469177246,
-0.02105788141489029,
0.03104567900300026,
-0.013871196657419205,
-0.029643861576914787,
-0.04521503299474716,
-0.007015661336481571,
0.019572187215089798,
-0.008453761227428913,
-0.002877376042306423,
-0.02251901477575302,
0.008623046800494194,
-0.01718752272427082,
0.06137418374419212,
0.0025409343652427197,
0.019131222739815712,
0.02383429929614067,
-0.019808106124401093,
-0.003253794275224209,
0.0017309191171079874,
-0.0025428244844079018,
-0.00967559963464737,
-0.041758351027965546,
0.03525527939200401,
-0.020738566294312477,
0.009115420281887054,
-0.0031691077165305614,
0.017527706921100616,
-0.024141784757375717,
0.017471615225076675,
-0.007337377406656742,
-0.05163538455963135,
0.024247361347079277,
0.009721804410219193,
-0.013949341140687466,
-0.00844855047762394,
-0.01553180068731308,
-0.013437971472740173,
-0.02709994465112686,
-0.02244606986641884,
-0.03680906072258949,
-0.05170402675867081,
-0.03875723108649254,
0.006188011262565851,
-0.04384327307343483,
0.030147025361657143,
0.004822154529392719,
-0.04671160876750946,
0.05037206783890724,
0.020991401746869087,
0.02023661881685257,
-0.09867634624242783,
-0.006711685564368963,
-0.04604897275567055,
0.05913585051894188,
-0.0287486519664526,
-0.021350959315896034,
0.049099091440439224,
-0.04655998945236206,
0.023242739960551262,
0.010841296054422855,
-0.013758603483438492,
0.01314178854227066,
0.007383476477116346,
-0.038578491657972336,
-0.040251996368169785,
0.01196011621505022,
0.05646190047264099,
-0.026163263246417046,
0.021074380725622177,
-0.012929212301969528,
0.004826321266591549,
0.009348449297249317,
-0.04273192957043648,
0.004973113536834717,
-0.016716565936803818,
0.009195527993142605,
0.01127648912370205,
0.020970439538359642,
0.035067010670900345,
-0.026896832510828972,
-0.017575491219758987,
-0.021438734605908394,
-0.0229498241096735,
-0.0035653638187795877,
-0.0281605813652277,
-0.012802897952497005,
-0.0426337905228138,
0.016679804772138596,
0.004560638684779406,
0.02686326391994953,
0.022138284519314766,
0.006904734764248133,
0.026730576530098915,
0.04942351579666138,
0.02254633605480194,
0.04917299374938011,
0.02956157550215721,
0.03530402481555939,
0.028838101774454117,
-0.008312513120472431,
-0.007050984539091587,
0.03725176304578781,
0.03980104625225067,
0.05628827214241028,
-0.000028004893465549685,
0.039233166724443436,
-0.006052772514522076,
0.008309409953653812,
-0.00429682107642293,
-0.0395343154668808,
-0.036630917340517044,
-0.003984292037785053,
0.023248672485351562,
0.02706395834684372,
-0.006080554332584143,
0.0028501497581601143,
0.020810920745134354,
0.01756301335990429,
-0.04532787948846817,
0.0063618202693760395,
-0.0159523393958807,
0.06672962009906769,
0.03605802729725838,
-0.010632061399519444,
0.021961325779557228,
0.03202544525265694,
0.016222449019551277,
-0.016596099361777306,
0.02353176847100258,
0.027005957439541817,
-0.015376055613160133,
-0.041285887360572815,
-0.027450669556856155,
-0.020299667492508888,
-0.0052544171921908855,
0.005369049031287432,
0.007221209816634655,
-0.005348141770809889,
0.02815270982682705,
0.020957548171281815,
-0.007669030223041773,
-0.033146314322948456,
0.08173356205224991,
0.023266542702913284,
0.03516519069671631,
0.021184265613555908,
0.03311120346188545,
0.04692820832133293,
0.03549155965447426,
0.030081672593951225,
0.0003383865696378052,
-0.00039264405495487154,
-0.010443756356835365,
0.009506626054644585,
-0.03524436056613922,
0.006603652611374855,
-0.020563635975122452,
0.004849747754633427,
-0.013073237612843513,
-0.02066033147275448,
0.03029724396765232,
0.03357599303126335,
0.028445390984416008,
-0.01925380527973175,
0.02809630148112774,
0.05053966864943504,
-0.01890430971980095,
0.0024356553331017494,
-0.04983018711209297,
-0.0009691768791526556,
-0.0422375462949276,
0.004319786559790373,
0.011607293039560318,
-0.04892227053642273,
0.025787679478526115,
0.04617955535650253,
-0.009929034858942032,
-0.016611196100711823,
0.008279181085526943,
0.009994396939873695,
0.001751884468831122,
-0.025968220084905624,
0.008807160891592503,
0.0003100456378888339,
-0.05664645880460739,
0.009118000976741314,
-0.03150405362248421,
0.028531275689601898,
-0.02090248465538025,
-0.01703963428735733,
-0.00839212629944086,
0.02557302452623844,
0.04439946636557579,
0.0005932924686931074,
0.03891490027308464,
0.031302083283662796,
-0.02810019813477993,
-0.01025526225566864,
-0.06504983454942703,
0.034581612795591354,
0.03864271193742752,
-0.015914468094706535,
-0.02992185205221176,
0.038346853107213974,
0.032840482890605927,
-0.0194405447691679,
-0.022471388801932335,
-0.03078477829694748,
-0.007688149809837341,
0.012194786220788956,
-0.00413545360788703,
0.020150214433670044,
-0.01476240810006857,
0.04607287049293518,
0.028857018798589706,
-0.010435746982693672,
-0.00448501855134964,
-0.03187710791826248,
0.026912258937954903,
-0.011985570192337036,
-0.022155968472361565,
-0.005485275760293007,
0.015809349715709686,
-0.006876377388834953,
0.07329025864601135,
0.04794665798544884,
0.031902652233839035,
-0.0003801320563070476,
0.044487711042165756,
0.018734576180577278,
-0.046327732503414154,
-0.0007490339921787381,
0.02868468500673771,
-0.011886127293109894,
0.02782529778778553,
0.025652233511209488,
0.039985883980989456,
0.04832512512803078,
0.06917145103216171,
0.03703281283378601,
-0.00893467478454113,
0.012171709910035133,
0.032428912818431854,
-0.002161678159609437,
0.004804988857358694,
-0.018574044108390808,
0.005736508406698704,
0.027892310172319412,
-0.008210280910134315,
-0.008050684817135334,
0.0071224914863705635,
0.050020284950733185,
-0.04785333201289177,
-0.031424347311258316,
0.008950791321694851,
0.02149873785674572,
0.049106109887361526,
-0.01572520285844803,
0.018450478091835976,
-0.001360056921839714,
-0.03346085175871849,
0.010857944376766682,
-0.048302728682756424,
-0.01697094924747944,
0.027632908895611763,
-0.028557641431689262,
-0.04890304058790207,
0.04336371272802353,
0.007190616335719824,
0.026034235954284668,
0.003287815023213625,
-0.011191658675670624,
-0.034816890954971313,
-0.048797670751810074,
-0.02178957499563694,
-0.04235142841935158,
0.0032442850060760975,
-0.037054598331451416,
-0.04601403698325157,
0.012539306655526161,
0.03257904574275017,
0.010804821737110615,
0.0015333134215325117,
0.018565800040960312,
0.04065033793449402,
0.030321968719363213,
-0.014014717191457748,
0.011069010011851788,
0.05637998878955841,
0.013884853571653366,
-0.024295341223478317,
-0.012838301248848438,
-0.020760785788297653,
-0.023045280948281288,
-0.05212729424238205,
0.06513770669698715,
0.00876931007951498,
0.0031492796260863543,
-0.008351502008736134,
0.006313433405011892,
0.007798850070685148,
-0.015701215714216232,
-0.0021685350220650434,
0.003957395441830158,
-0.005205530673265457,
-0.0005752886645495892,
0.03064722940325737,
0.012722901068627834,
0.02373472787439823,
-0.030454179272055626,
0.001245051738806069,
-0.049799397587776184,
0.02504154108464718,
0.025224005803465843,
-0.039057258516550064,
0.022498048841953278,
0.06329505890607834,
-0.06227201223373413,
0.024153031408786774,
0.023607423529028893,
0.041170526295900345,
-0.019248507916927338,
-0.032104868441820145,
0.008649741299450397,
-0.047400858253240585,
0.0019732569344341755,
0.0369144007563591,
0.02500409260392189,
-0.0012812917120754719,
0.010035896673798561,
0.03201473131775856,
0.07894309610128403,
0.05781691148877144,
0.006467469036579132,
0.05253782868385315,
0.027025645598769188,
0.029703356325626373,
0.00040961027843877673,
0.02047683484852314,
0.007864932529628277,
-0.01790894940495491,
-0.012804695405066013,
-0.01019760686904192,
0.012875943444669247,
-0.012706792913377285,
0.0001894940942293033,
0.02167426608502865,
0.0012004486052319407,
0.04594777151942253,
-0.02313622273504734,
0.027270210906863213,
0.04335736483335495,
0.06415966153144836,
0.005996892228722572,
-0.02088545821607113,
-0.014039542526006699,
0.011057027615606785,
0.026652876287698746,
0.008029411546885967,
-0.021781452000141144,
0.010186845436692238,
0.004277177155017853,
0.01418397668749094,
0.018160700798034668,
-0.020231952890753746,
0.03451354801654816,
-0.0068930345587432384,
-0.02756808139383793,
0.012286707758903503,
0.02191605605185032,
-0.015064203180372715,
0.03243321552872658,
-0.0012323764385655522,
-0.01476726122200489,
-0.04647009074687958,
-0.008206014521420002,
0.04926324635744095,
-0.04087825119495392,
-0.010120031423866749,
0.027717774733901024,
0.018789809197187424,
-0.001671327743679285,
-0.004456039518117905,
-0.009869476780295372,
-0.0034907800145447254,
0.00870487466454506,
-0.0014792019501328468,
-0.0008036929066292942,
-0.02608192339539528,
0.008995296433568,
0.010994426906108856,
0.027454951778054237,
0.003223082749173045,
0.054555363953113556,
-0.01393232960253954,
0.006849025841802359,
0.01713215932250023,
0.010486734099686146,
-0.0064903865568339825,
0.036181896924972534,
-0.031474363058805466,
-0.007893760688602924,
-0.008336607366800308,
0.005784926470369101,
-0.01589895412325859,
-0.03727562725543976,
0.03401210904121399,
-0.030937539413571358,
0.0013277939287945628,
-0.029912833124399185,
0.028178444132208824,
0.03400183469057083,
-0.01939060539007187,
-0.018949763849377632,
-0.041771531105041504,
-0.010336712934076786,
-0.02498740516602993,
-0.010674561373889446,
0.020291926339268684,
-0.03790545091032982,
0.009322233498096466,
0.022804269567131996,
0.021008804440498352,
0.0022316856775432825,
-0.04851686209440231,
-0.020933762192726135,
0.02807682938873768,
-0.014920822344720364,
0.03143477812409401,
0.02248286083340645,
0.03260282799601555,
0.03126277029514313,
0.052612923085689545,
0.01195484772324562,
-0.028468968346714973,
-0.00839089322835207,
-0.03958426043391228,
-0.004026500508189201,
-0.012360470369458199,
0.03837176784873009,
-0.01573461852967739,
-0.00836650375276804,
-0.05402030795812607,
-0.0028616138733923435,
-0.008713875897228718,
0.0092623895034194,
-0.027125284075737,
-0.05873453617095947,
-0.03270954266190529,
0.003878695424646139,
-0.007755592931061983,
-0.0228141900151968,
0.0178147554397583,
0.01809878833591938,
0.0017532054334878922,
-0.021953826770186424,
-0.02292432077229023,
-0.022643819451332092,
-0.007069909945130348,
0.04751354828476906,
0.047648295760154724,
-0.0027961416635662317,
-0.033515796065330505,
-0.02500801533460617,
-0.006184030789881945,
-0.009720239788293839,
-0.07361031323671341,
0.03384629264473915,
0.030052034184336662,
0.01676691509783268,
-0.004078413359820843,
-0.00057735585141927,
0.02260972186923027,
-0.0035284028854221106,
0.05043845623731613,
-0.030924340710043907,
0.023462925106287003,
0.013616817072033882,
-0.01913759484887123,
-0.041019003838300705,
-0.029344892129302025,
0.00830466952174902,
0.023654820397496223,
0.010512243025004864,
-0.0051208240911364555,
-0.026234712451696396,
-0.002543757436797023,
-0.02721570059657097,
0.034937504678964615,
-0.011924585327506065,
-0.044861845672130585,
-0.0074074603617191315,
-0.025848284363746643,
0.021483218297362328,
0.008949849754571915,
-0.0504855252802372,
-0.03186867758631706,
0.037931475788354874,
0.005016641691327095,
0.011360451579093933,
-0.009921225719153881,
-0.009525134228169918,
-0.011718924157321453,
0.01267026737332344,
-0.014169731177389622,
0.06263214349746704,
0.025590918958187103,
0.008432756178081036,
-0.01850508339703083,
-0.032152678817510605
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | What about batching ? Recently a really interesting paper came out, that described how to increase the throughput by performing batched inference on LoRA models. In short, all inference requests would be gathered in a batch, the computation related to the common base model would be done all at once, then the remaining adapter-specific products would be computed. We did not implement such a technique (close to the approach adopted in text-generation-inference for LLMs). Instead, we stuck to single sequential inference requests. The reason is that we observed that batching was not interesting for diffusers: throughput does not increase significantly with batch size. On the simple image generation benchmark we performed, it only increased 25% for a batch size of 8, in exchange for 6 times increased latency! Comparatively, batching is far more interesting for LLMs because you get 8 times the sequential throughput with only a 10% latency increase. This is the reason why we did not implement batching for diffusers. | [
0.07503798604011536,
0.04413167014718056,
-0.005897216033190489,
0.009562690742313862,
0.04733049497008324,
0.010335266590118408,
-0.006379473488777876,
-0.004768737591803074,
0.00771703477948904,
-0.017032967880368233,
-0.027028245851397514,
0.004183556884527206,
0.01455952413380146,
0.08375206589698792,
-0.03842008113861084,
-0.029187751933932304,
-0.005254087503999472,
-0.009350769221782684,
0.013436498120427132,
0.061173874884843826,
0.054216861724853516,
-0.038373913615942,
0.09901298582553864,
-0.01612071320414543,
-0.05978931859135628,
-0.056971292942762375,
-0.02006363496184349,
0.00531010702252388,
-0.0018790363101288676,
-0.029718108475208282,
-0.053791508078575134,
0.005333266220986843,
0.018475059419870377,
0.028391970321536064,
0.018909631296992302,
-0.07526731491088867,
-0.10583603382110596,
0.03186788037419319,
0.015396490693092346,
-0.0012357234954833984,
0.020763974636793137,
0.01615072414278984,
-0.05208561569452286,
-0.004912451840937138,
0.021775294095277786,
0.018671339377760887,
-0.14088165760040283,
0.022493846714496613,
-0.015918804332613945,
0.02240634150803089,
-0.13044431805610657,
0.0836603045463562,
-0.025474680587649345,
-0.011472527869045734,
0.07526678591966629,
0.01767551712691784,
0.01583067886531353,
-0.062435925006866455,
0.059135571122169495,
0.009398569352924824,
-0.019850363954901695,
-0.010246438905596733,
0.03944564238190651,
0.04375271126627922,
0.02414156123995781,
0.0467391237616539,
-0.007695132866501808,
-0.015241808257997036,
-0.07820600271224976,
0.03180308640003204,
0.032373201102018356,
-0.059785354882478714,
0.014090930111706257,
0.02728281356394291,
0.04795265197753906,
0.005552154500037432,
0.020209962502121925,
0.04591837525367737,
0.06753981113433838,
0.028772864490747452,
-0.04210043326020241,
-0.037355221807956696,
0.06059505045413971,
0.009522891603410244,
0.044744402170181274,
0.06312601268291473,
0.018411904573440552,
-0.03532426431775093,
-0.0373622290790081,
-0.012282291427254677,
-0.06259085237979889,
-0.0813538208603859,
0.012188942171633244,
0.02571333758533001,
0.033518046140670776,
-0.01657370664179325,
0.040038954466581345,
-0.001405294518917799,
-0.01872946508228779,
-0.0020418292842805386,
0.028208628296852112,
-0.030204489827156067,
0.00964308250695467,
-0.01584160327911377,
-0.08112690597772598,
0.05004585161805153,
-0.0524342805147171,
-0.09315433353185654,
-0.07165391743183136,
0.07071363925933838,
-0.02036610059440136,
0.08965170383453369,
-0.019546035677194595,
0.008835243061184883,
-0.11163705587387085,
-0.04247892275452614,
0.0011947107268497348,
0.05932259559631348,
-0.024923568591475487,
0.009681344032287598,
-0.010798469185829163,
0.05815630406141281,
0.13815611600875854,
-0.03339788690209389,
-0.03241819888353348,
0.00046822751755826175,
0.08147934079170227,
0.020743129774928093,
-0.05368237569928169,
0.02813330665230751,
0.006699138320982456,
-0.03516891598701477,
0.0176170002669096,
-0.001090901787392795,
0.06751663237810135,
-0.09922817349433899,
-0.015585565939545631,
-0.018419861793518066,
0.07722797989845276,
0.01883379928767681,
-0.052362602204084396,
0.011697209440171719,
0.011994749307632446,
-0.025002235546708107,
0.025694511830806732,
-0.02790796384215355,
-0.02587011829018593,
-0.022300902754068375,
-0.03741518780589104,
0.012872278690338135,
-0.1330546885728836,
0.09102857112884521,
-0.07067449390888214,
-0.07731601595878601,
0.00840035080909729,
0.03956053778529167,
0.00507728848606348,
-0.047541651874780655,
-0.09242923557758331,
-0.015878260135650635,
-0.03881964460015297,
-0.06968770176172256,
0.037548065185546875,
-0.03751339763402939,
0.02270742505788803,
-0.07547096908092499,
0.01605255901813507,
0.049609504640102386,
0.03910142928361893,
0.03307484835386276,
0.04638209193944931,
0.05632775276899338,
0.004982840735465288,
-0.04850171133875847,
0.008487108163535595,
-0.004590057302266359,
0.04523942247033119,
0.07238837331533432,
0.04778699576854706,
0.010505777783691883,
-0.049733586609363556,
-0.022203288972377777,
-0.01387872826308012,
-0.007824803702533245,
0.00234045903198421,
-0.08150900900363922,
0.03798455372452736,
-0.06085166707634926,
-0.021604521200060844,
0.00023820032947696745,
0.0037860930897295475,
0.04309042543172836,
0.08659855276346207,
-0.05895261839032173,
-0.006016847211867571,
-0.06358043849468231,
-0.028755275532603264,
0.11022697389125824,
0.0769619420170784,
0.010154172778129578,
0.06799930334091187,
0.05914488807320595,
0.0355754978954792,
0.022389469668269157,
0.0073857088573277,
-0.005915770772844553,
0.021046362817287445,
-0.01260516606271267,
0.044335465878248215,
0.018047017976641655,
-0.05349299684166908,
-0.10312750190496445,
0.0007514850003644824,
-0.04624041169881821,
0.012166079133749008,
-0.0013921093195676804,
0.019324110820889473,
-0.026825321838259697,
0.045580919831991196,
-0.055577196180820465,
0.12368423491716385,
-0.01587662845849991,
-0.004609695170074701,
0.022662023082375526,
0.030253298580646515,
0.01459782849997282,
0.08383585512638092,
-0.020126018673181534,
0.04376162961125374,
-0.09654462337493896,
-0.0023373656440526247,
-0.09716653823852539,
0.013600525446236134,
0.07309075444936752,
-0.01824939250946045,
0.031202346086502075,
-0.07321152836084366,
-0.024654529988765717,
0.009729853831231594,
-0.07724996656179428,
0.054941385984420776,
0.0023057926446199417,
0.018051492050290108,
0.0848873183131218,
0.015023774467408657,
-0.035715315490961075,
0.05275000259280205,
-0.024888163432478905,
-0.007347748149186373,
-0.016104605048894882,
-0.023125050589442253,
0.02698889560997486,
-0.005785771179944277,
-0.027365365996956825,
0.04881603643298149,
-0.017717158421874046,
-0.003161068307235837,
-0.000499680929351598,
0.0007112867315299809,
0.043266382068395615,
-0.015135278925299644,
0.008319760672748089,
0.010025068186223507,
-0.02432583086192608,
-0.0018154141725972295,
-0.021639807149767876,
0.015810489654541016,
-0.02996017225086689,
0.003928201273083687,
0.008742458187043667,
0.012898419983685017,
0.012170698493719101,
0.048402875661849976,
0.022878294810652733,
0.012659010477364063,
-0.025807401165366173,
0.018144739791750908,
-0.01816706731915474,
0.012658366933465004,
-0.06442199647426605,
-0.008466018363833427,
-0.05327916517853737,
0.029020309448242188,
0.030449209734797478,
0.013176283799111843,
-0.032188817858695984,
0.012295674532651901,
-0.021809181198477745,
-0.0688508152961731,
0.0012434683740139008,
0.032574430108070374,
0.013022566214203835,
0.02096342109143734,
-0.050632916390895844,
-0.00030841102125123143,
0.0022881256882101297,
-0.028485430404543877,
-0.04202748090028763,
-0.04110339283943176,
-0.013085677288472652,
-0.0183541402220726,
-0.0252129714936018,
0.009382486343383789,
-0.007432268466800451,
-0.051980867981910706,
0.015556849539279938,
0.0044942270033061504,
0.06029792129993439,
-0.0976085290312767,
-0.04487616941332817,
-0.02678355760872364,
0.04431532323360443,
0.014059343375265598,
-0.018829071894288063,
0.04856899380683899,
-0.05551110580563545,
0.03824365511536598,
0.019081899896264076,
0.0026098275557160378,
0.04256110265851021,
-0.005568225868046284,
-0.01573633775115013,
0.015049892477691174,
-0.030652865767478943,
0.012583832256495953,
-0.005447919014841318,
0.003939190413802862,
0.05581652745604515,
0.039561960846185684,
0.03273743763566017,
-0.019767187535762787,
0.02813609689474106,
0.0022860709577798843,
-0.013914519920945168,
-0.004291852004826069,
-0.032864466309547424,
0.00042797919013537467,
-0.007738988380879164,
-0.03373701125383377,
-0.0036908630281686783,
-0.010446318425238132,
0.0037977409083396196,
-0.06230885908007622,
0.014522366225719452,
-0.006264280062168837,
-0.01614462211728096,
0.017649585381150246,
0.028706034645438194,
0.017411114647984505,
0.004023715388029814,
0.017169786617159843,
0.009325557388365269,
-0.025113269686698914,
-0.0038509820587933064,
-0.0060103642754256725,
-0.004394410643726587,
0.06560550630092621,
-0.030827227979898453,
-0.025669410824775696,
0.014114893041551113,
0.07050163298845291,
0.016574082896113396,
0.01734374463558197,
0.015146275982260704,
0.008769896812736988,
0.006790030747652054,
0.05782194435596466,
-0.03530143201351166,
-0.0454835370182991,
0.026538755744695663,
-0.0013372711837291718,
0.031161939725279808,
-0.04330606758594513,
0.05864978954195976,
0.012471976689994335,
-0.0008666018838994205,
0.0013421309413388371,
0.03608950600028038,
-0.00830166507512331,
0.013538816012442112,
0.005116941407322884,
-0.005070754326879978,
-0.0014104555593803525,
0.008061295375227928,
-0.009768964722752571,
-0.024492355063557625,
0.059057701379060745,
0.03067849576473236,
-0.004038690589368343,
-0.02626458741724491,
-0.014133292250335217,
-0.03978700190782547,
0.03359341621398926,
0.020344367250800133,
0.007638347335159779,
-0.024153932929039,
-0.001801060512661934,
0.0020399882923811674,
0.015318459831178188,
-0.0005991059588268399,
0.00946689210832119,
-0.004789560101926327,
0.021329116076231003,
0.015819387510418892,
0.1015019565820694,
0.04023091495037079,
0.03538314253091812,
0.009264574386179447,
0.026896439492702484,
-0.035920027643442154,
-0.011463310569524765,
0.024439411237835884,
-0.009183556772768497,
0.00034484450588934124,
-0.003135718870908022,
0.014925366267561913,
-0.0018685255199670792,
0.0076020886190235615,
0.007142956368625164,
0.017271805554628372,
0.020130403339862823,
-0.004337038844823837,
-0.010947749949991703,
0.013746707700192928,
-0.02669275738298893,
0.012400601990520954,
-0.021514147520065308,
-0.012674274854362011,
-0.0703456923365593,
0.013618618249893188,
-0.0029398787301033735,
-0.005979050882160664,
0.0695781335234642,
-0.002528332406654954,
-0.016816912218928337,
0.01870512217283249,
-0.010173482820391655,
-0.020115643739700317,
-0.044150929898023605,
-0.01111516635864973,
0.011259054765105247,
-0.019857460632920265,
-0.005150549113750458,
-0.041254203766584396,
-0.0310832466930151,
0.014928102493286133,
-0.047691114246845245,
-0.03149541839957237,
-0.026079632341861725,
0.00015957454161252826,
0.0027328762225806713,
-0.019040483981370926,
0.0353117510676384,
0.01422098372131586,
0.007085474673658609,
-0.023111414164304733,
-0.017900582402944565,
0.03028896637260914,
0.044848933815956116,
-0.030469052493572235,
-0.05379674956202507,
-0.002375357784330845,
0.017001330852508545,
-0.00475125340744853,
-0.020631643012166023,
0.016298875212669373,
0.06508506834506989,
-0.01361615490168333,
-0.004865650553256273,
0.025747736915946007,
-0.028128258883953094,
0.023695971816778183,
0.013095632195472717,
-0.02798083797097206,
-0.06255003064870834,
0.020139286294579506,
0.039390455931425095,
-0.00916150864213705,
-0.006213051732629538,
-0.007707900367677212,
-0.03172261640429497,
0.007917043752968311,
0.05278877913951874,
0.03245090693235397,
0.054515283554792404,
0.008819431066513062,
0.01636458747088909,
-0.001111825811676681,
-0.03147560730576515,
-0.040214624255895615,
0.06140269339084625,
-0.017955506220459938,
0.01768294721841812,
0.03201933205127716,
0.020896481350064278,
0.04330151155591011,
0.017023302614688873,
0.009581034071743488,
0.034962669014930725,
0.031181607395410538,
0.020808786153793335,
-0.02018408477306366,
0.013077336363494396,
-0.0042724222876131535,
-0.0047936588525772095,
0.01219851803034544,
-0.047780588269233704,
0.015308057889342308,
-0.007345246616750956,
0.002234833547845483,
-0.017629915848374367,
-0.06100422888994217,
-0.022287752479314804,
-0.013880082406103611,
0.016952063888311386,
-0.011135981418192387,
-0.014428781345486641,
0.01045914739370346,
0.02451154962182045,
-0.04676947742700577,
-0.03849911317229271,
0.03191942349076271,
0.0267979484051466,
-0.023509811609983444,
-0.048439644277095795,
0.08387628942728043,
0.0195060633122921,
0.021579908207058907,
0.006676484830677509,
-0.043423764407634735,
-0.015126687474548817,
-0.011006118729710579,
0.015161938965320587,
-0.014741594903171062,
-0.0038592531345784664,
-0.004567055031657219,
-0.03197962045669556,
0.06635496765375137,
0.002300995634868741,
-0.007378330919891596,
-0.03650207445025444,
0.008945389650762081,
0.022689437493681908,
0.03859921917319298,
-0.051732517778873444,
0.0476512610912323,
0.025672610849142075,
0.017370600253343582,
-0.02697119489312172,
-0.010481267236173153,
-0.026560503989458084,
0.04444713145494461,
-0.044157613068819046,
-0.001570398104377091,
0.014135817997157574,
-0.03775559365749359,
-0.04745638370513916,
0.0091089503839612,
0.0032101410906761885,
-0.01864268071949482,
0.013581530191004276,
0.008607965894043446,
0.02067055180668831,
0.0439179465174675,
0.053518060594797134,
-0.021648604422807693,
0.01885388046503067,
-0.0031623842660337687,
0.034464746713638306,
-0.028942016884684563,
0.04508724436163902,
-0.02055433765053749,
-0.035898130387067795,
0.03423815965652466,
0.012863649986684322,
-0.05540316179394722,
0.022213397547602654,
-0.0009083742625080049,
0.03342137113213539,
0.0013937409967184067,
-0.04791167005896568,
0.014107053168118,
-0.03309377655386925,
0.025350095704197884,
-0.011044350452721119,
0.012139445170760155,
0.023896321654319763,
0.011209789663553238,
0.015270828269422054,
0.04569559916853905,
0.02129862643778324,
-0.0019078816985711455,
0.03014128841459751,
-0.018313327804207802,
0.030048688873648643,
-0.009254640899598598,
-0.015077690593898296,
0.023635204881429672,
-0.00845728162676096,
-0.004252392798662186,
-0.013897914439439774,
-0.0066869319416582584,
-0.024503152817487717,
-0.027206405997276306,
0.0059750438667833805,
-0.028759630396962166,
-0.015641145408153534,
0.005671039689332247,
0.007964546792209148,
0.02461552619934082,
0.02941829338669777,
0.01078698318451643,
-0.0260922871530056,
0.002347343135625124,
-0.0011874863412231207,
-0.004602510016411543,
0.02486622892320156,
0.007821296341717243,
-0.00997044425457716,
0.029848361387848854,
0.0005727207171730697,
0.012121491134166718,
0.02799624390900135,
-0.0036097720731049776,
0.0014800064964219928,
-0.009855425916612148,
0.04565192386507988,
0.0013832965632900596,
0.02378798834979534,
0.01644976995885372,
0.014126719906926155,
-0.0014756208984181285,
-0.05098237842321396,
-0.0010993012692779303,
0.006787281483411789,
-0.00593177042901516,
0.004087619949132204,
0.011818439699709415,
0.02561395801603794,
0.022240344434976578,
-0.01908905990421772,
-0.0273275263607502,
0.00752140861004591,
-0.009362448006868362,
0.044901784509420395,
0.03138604387640953,
-0.02462172694504261,
0.0019441862823441625,
0.023119008168578148,
0.04225989803671837,
0.007729277014732361,
0.03791419789195061,
-0.005925984121859074,
0.016727671027183533,
0.04985860735177994,
-0.027294335886836052,
-0.020621847361326218,
0.037088364362716675,
-0.04430164769291878,
0.016817621886730194,
-0.027918972074985504,
-0.014054734259843826,
0.007164147216826677,
-0.034941114485263824,
0.014115176163613796,
-0.0022270563058555126,
-0.02473282255232334,
0.014569547027349472,
0.022540168836712837,
0.020652715116739273,
-0.022150207310914993,
0.013292175717651844,
-0.01352918241173029,
0.007751276716589928,
-0.015574219636619091,
0.022801080718636513,
-0.0050217038951814175,
0.02243429236114025,
0.0010341242887079716,
-0.006213854067027569,
-0.018515324220061302,
0.03560416400432587,
-0.020003100857138634,
0.0007022785139270127,
0.05689729005098343,
0.0068209609016776085,
-0.02668019011616707,
0.008081925101578236,
0.0659216046333313,
-0.0077514080330729485,
0.054982952773571014,
0.03195437043905258,
0.0007836094591766596,
-0.00860417541116476,
-0.04391467571258545,
0.033116571605205536,
-0.004181587137281895,
0.05818274989724159,
-0.03731055185198784,
-0.019153283908963203,
-0.03727405145764351,
0.006805629935115576,
-0.02287793904542923,
0.05872611328959465,
-0.004925544839352369,
0.01522754319012165,
-0.03690502047538757,
-0.0288318432867527,
-0.04883133992552757,
-0.030474254861474037,
0.07600052654743195,
-0.0004165045393165201,
0.018321705982089043,
-0.0035283260513097048,
-0.024500995874404907,
0.014535718597471714,
-0.04480589181184769,
0.053335897624492645,
0.015080179087817669,
0.014622325077652931,
-0.028240134939551353,
-0.05715411156415939,
-0.0273588877171278,
-0.017228269949555397,
-0.06350433826446533,
0.02701921947300434,
0.023994147777557373,
-0.0008560296846553683,
-0.006839681416749954,
-0.00291622756049037,
0.05439278855919838,
-0.021276170387864113,
0.04702959582209587,
0.014848173595964909,
-0.023038025945425034,
-0.020807845517992973,
0.03201402723789215,
-0.06113502383232117,
-0.032076239585876465,
0.000059294619859429076,
-0.00703846849501133,
0.015311046503484249,
0.012603729031980038,
0.03740547597408295,
-0.037563569843769073,
0.017336439341306686,
-0.00200065691024065,
-0.001857137423940003,
-0.032622892409563065,
-0.043821968138217926,
-0.012185994535684586,
0.002420397475361824,
-0.04440295323729515,
-0.04850267991423607,
-0.008361653424799442,
0.022984705865383148,
0.03488130494952202,
0.008142273873090744,
-0.012018886394798756,
-0.00850315485149622,
-0.020153731107711792,
-0.014857817441225052,
-0.04072549194097519,
0.030862977728247643,
0.06628425419330597,
0.017323508858680725,
-0.010328046977519989,
-0.057497940957546234
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | Conclusion: Time! Using dynamic LoRA loading, we were able to save compute resources and improve the user experience in the Hub Inference API. Despite the extra time added by the process of unloading the previously loaded adapter and loading the one we're interested in, the fact that the serving process is most often already up and running makes the inference time response on the whole much shorter. Note that for a LoRA to benefit from this inference optimization on the Hub, it must both be public, non-gated and based on a non-gated public model. Please do let us know if you apply the same method to your deployment! | [
0.051063988357782364,
-0.01208400260657072,
0.005888878367841244,
0.04688553139567375,
0.024451090022921562,
0.050489116460084915,
0.03725414723157883,
0.05289986729621887,
-0.015924276784062386,
-0.015507437288761139,
0.02851281687617302,
-0.045414235442876816,
-0.016682293266057968,
0.038003623485565186,
0.023318149149417877,
-0.0771913230419159,
0.05631900578737259,
-0.09517834335565567,
-0.042997147887945175,
0.0661432147026062,
0.041073836386203766,
0.01698894239962101,
0.06583204120397568,
-0.026207048445940018,
-0.0675492212176323,
-0.03672785684466362,
-0.01879378966987133,
-0.009995969943702221,
-0.03945949673652649,
-0.011825691908597946,
-0.0581076443195343,
0.02425622195005417,
0.009360176511108875,
-0.01101838331669569,
0.025591570883989334,
-0.06714886426925659,
-0.06869161874055862,
-0.015501842834055424,
0.008136921562254429,
-0.00853933859616518,
-0.002586587332189083,
-0.047135379165410995,
-0.05470617860555649,
0.008678775280714035,
0.028937602415680885,
-0.0036631810944527388,
-0.19305993616580963,
0.027976518496870995,
-0.005217349156737328,
-0.00747771468013525,
-0.11553087085485458,
0.05683797970414162,
0.011890655383467674,
0.030109073966741562,
0.06807728856801987,
0.010563213378190994,
-0.00047678613918833435,
-0.040651895105838776,
0.09674906730651855,
-0.05135888606309891,
-0.0036058989353477955,
-0.002030166331678629,
0.020286213606595993,
0.0014844905817881227,
0.018595078960061073,
-0.03421739861369133,
0.017750516533851624,
0.015281780622899532,
0.039315417408943176,
-0.003865336300805211,
-0.018031198531389236,
-0.017921166494488716,
0.0029107113368809223,
0.004920098930597305,
0.04841655492782593,
-0.031447939574718475,
-0.0067158229649066925,
0.09062349796295166,
0.009585746563971043,
-0.07254461944103241,
-0.025765061378479004,
-0.00259948056191206,
0.013391312211751938,
-0.03141457214951515,
0.02756979502737522,
-0.016475016251206398,
0.016102628782391548,
-0.047203388065099716,
-0.06480749696493149,
-0.010896108113229275,
0.004575209692120552,
-0.06285852938890457,
0.02987002767622471,
0.013044578954577446,
0.0707012191414833,
0.012144383043050766,
0.09094078838825226,
0.060075342655181885,
0.01965605467557907,
-0.026556463912129402,
-0.030130010098218918,
-0.06629358232021332,
-0.026797514408826828,
-0.06585444509983063,
0.042752742767333984,
0.021641088649630547,
-0.02555784024298191,
-0.1292296051979065,
-0.045181985944509506,
0.09176508337259293,
-0.03693854808807373,
0.0674494281411171,
-0.03501205891370773,
0.04944044351577759,
-0.09110774844884872,
0.03107537142932415,
0.01126218494027853,
0.03140808269381523,
0.03456391021609306,
0.01418771967291832,
0.019544148817658424,
0.07662723958492279,
0.029840873554348946,
0.020265474915504456,
0.012088311836123466,
-0.04438837245106697,
0.052636370062828064,
0.0036166429053992033,
-0.002881621243432164,
0.021538594737648964,
0.03217863291501999,
-0.011409685015678406,
0.00394113315269351,
-0.0021393054630607367,
0.018155865371227264,
-0.01948678493499756,
-0.05099015682935715,
-0.02262684516608715,
0.02739647962152958,
0.003914162050932646,
-0.08457688242197037,
0.002719651209190488,
0.02290266379714012,
-0.009054785594344139,
0.07579325139522552,
-0.006859073415398598,
-0.006168668624013662,
-0.033620528876781464,
0.02828330174088478,
0.00905082281678915,
-0.05896338075399399,
0.07182437926530838,
-0.020442567765712738,
-0.0917147547006607,
-0.03403051197528839,
0.018996382132172585,
-0.04766435548663139,
-0.07287188619375229,
-0.0941055417060852,
0.0004905311507172883,
-0.0038350678514689207,
-0.008461288176476955,
-0.023522967472672462,
-0.005247372202575207,
0.007259506732225418,
0.006444878410547972,
0.028301484882831573,
-0.07233566790819168,
0.11430330574512482,
-0.0010504130041226745,
0.029924672096967697,
-0.03093182109296322,
0.06854958832263947,
-0.010760718025267124,
0.007055698893964291,
0.05222390592098236,
0.050075337290763855,
0.03358174115419388,
-0.026487089693546295,
0.030408963561058044,
-0.03284139558672905,
0.058898888528347015,
-0.0302213653922081,
0.022541720420122147,
0.00826960988342762,
-0.08077632635831833,
0.045329608023166656,
-0.05981963127851486,
-0.0121039729565382,
-0.06966210901737213,
-0.0062085604295134544,
0.0018258424242958426,
0.06752743571996689,
-0.03622499853372574,
0.00027484219754114747,
0.004379408899694681,
-0.01172810047864914,
0.1227266788482666,
0.03737635165452957,
0.028563089668750763,
0.06185534968972206,
0.0563959926366806,
0.010363398119807243,
-0.06553880870342255,
-0.040923308581113815,
-0.00560633884742856,
-0.0010687758913263679,
-0.0037026985082775354,
0.047919511795043945,
0.021713536232709885,
-0.05062380060553551,
-0.07941752672195435,
0.04366794601082802,
-0.03565617650747299,
0.04762224107980728,
-0.03274022415280342,
0.00013906882668379694,
0.008734439499676228,
-0.01227589137852192,
-0.06994756311178207,
0.13777366280555725,
-0.001652378006838262,
0.05735686793923378,
0.06666237115859985,
0.01272583194077015,
-0.010810005478560925,
0.06265498697757721,
-0.020025748759508133,
0.025663990527391434,
-0.012917820364236832,
-0.052874695509672165,
-0.07870370149612427,
-0.06606708467006683,
-0.013099453411996365,
0.044000331312417984,
0.09987746179103851,
-0.0006962029729038477,
-0.04099014401435852,
-0.03834174573421478,
-0.011385255493223667,
0.01628708280622959,
-0.00996379368007183,
0.03750719502568245,
0.0878523737192154,
0.024896344169974327,
-0.04100126400589943,
0.055583786219358444,
-0.02951810695230961,
0.0018192152492702007,
-0.07360676676034927,
-0.06323762983083725,
-0.05088050290942192,
0.025458551943302155,
-0.007760205306112766,
0.08407794684171677,
-0.08001859486103058,
-0.014845995232462883,
-0.029471496120095253,
0.014014767482876778,
0.06411466002464294,
0.0038063572719693184,
-0.008956077508628368,
-0.012270985171198845,
-0.010467230342328548,
0.03248370811343193,
-0.0072094751521945,
-0.02270645461976528,
0.001824921346269548,
0.027567606419324875,
-0.029831185936927795,
-0.004775574896484613,
-0.034282028675079346,
0.010706044733524323,
-0.00788879208266735,
0.008225602097809315,
0.0020625756587833166,
0.005612753797322512,
-0.0036778105422854424,
0.006611387711018324,
-0.04744737595319748,
-0.006064071319997311,
-0.061893168836832047,
0.01715943217277527,
-0.00733322836458683,
0.04131545498967171,
-0.039985522627830505,
0.0042091961950063705,
-0.02085375227034092,
-0.011011200025677681,
0.028814027085900307,
0.0012941043823957443,
-0.043279215693473816,
-0.0194340068846941,
0.0002641649334691465,
-0.007790731266140938,
-0.0017198671121150255,
-0.01720285788178444,
-0.04640883952379227,
-0.02807137928903103,
-0.02967372164130211,
-0.011556971818208694,
-0.005810990463942289,
0.024666232988238335,
0.021933985874056816,
-0.024164333939552307,
0.060366399586200714,
-0.02096109837293625,
0.0024771937169134617,
-0.09715826064348221,
-0.0032848312985152006,
-0.04022173583507538,
0.013459949754178524,
-0.02926461771130562,
-0.005054999142885208,
0.05462891235947609,
-0.014396454207599163,
0.03157566487789154,
0.044020310044288635,
-0.0038766618818044662,
0.014848250895738602,
0.009659506380558014,
-0.07646991312503815,
-0.01754537783563137,
0.0010204105637967587,
0.029793450608849525,
0.009079852141439915,
0.014630350284278393,
0.0010062862420454621,
-0.024292070418596268,
0.001523548155091703,
-0.04340245574712753,
-0.004290188662707806,
-0.01460854522883892,
0.011754493229091167,
-0.007725094445049763,
0.025421787053346634,
0.008537717163562775,
-0.033381566405296326,
-0.03625992685556412,
-0.04819343984127045,
0.0038518146611750126,
0.02137298323214054,
-0.028559377416968346,
0.046667519956827164,
-0.046019911766052246,
-0.01346304826438427,
0.008967762812972069,
0.027621397748589516,
0.013433276675641537,
0.014885812066495419,
0.03882327675819397,
0.013353713788092136,
0.006747236475348473,
0.027020633220672607,
0.014463466592133045,
0.007602077443152666,
0.04672172665596008,
0.0007054933230392635,
-0.024489669129252434,
-0.01606430858373642,
0.025190751999616623,
0.02349795587360859,
-0.006936978083103895,
-0.0019805312622338533,
-0.004945351742208004,
-0.0006623636581934988,
0.01540293823927641,
-0.012788555584847927,
-0.03321558237075806,
-0.0009652017033658922,
0.039725225418806076,
-0.00313016539439559,
-0.051606811583042145,
-0.005613977089524269,
-0.004664315842092037,
0.06426708400249481,
-0.012096753343939781,
0.001414213445968926,
-0.026007074862718582,
0.06429057568311691,
0.00953685026615858,
-0.004171373322606087,
0.004012800753116608,
0.03329737111926079,
0.02750234492123127,
0.011673246510326862,
0.06149721145629883,
0.03877578675746918,
-0.007393307518213987,
-0.018459293991327286,
-0.008663135580718517,
-0.039926450699567795,
0.0028624203987419605,
0.046368639916181564,
-0.006062197964638472,
-0.019410718232393265,
-0.046209365129470825,
0.01611582189798355,
-0.013627554289996624,
-0.022554656490683556,
0.03833397477865219,
0.03016001731157303,
-0.005372153595089912,
0.03136766329407692,
0.05920446664094925,
0.02043621428310871,
0.011769196949899197,
0.010864108800888062,
-0.002052490832284093,
0.01648259162902832,
-0.002862198743969202,
0.05176154524087906,
-0.03822888433933258,
0.013768146745860577,
-0.019072052091360092,
0.024177024140954018,
-0.00265567097812891,
-0.034438714385032654,
0.03604520112276077,
0.0018476962577551603,
0.018038030713796616,
-0.0193480271846056,
0.035191722214221954,
0.04324433207511902,
-0.01728583127260208,
0.01694425381720066,
-0.0201147198677063,
-0.0021882671862840652,
-0.06900937110185623,
0.011049372144043446,
0.010836656205356121,
-0.0217452272772789,
-0.02290450595319271,
0.045488692820072174,
-0.015189805068075657,
-0.02880670316517353,
0.02731240727007389,
0.009561853483319283,
0.003241391386836767,
-0.001627934630960226,
-0.007547435816377401,
-0.009322348982095718,
-0.001609854050911963,
-0.036610059440135956,
0.010760465636849403,
0.028260240331292152,
-0.016507159918546677,
0.017658647149801254,
-0.05688052996993065,
-0.03197815641760826,
0.023885566741228104,
-0.0336231030523777,
0.025364330038428307,
0.039833929389715195,
-0.06238440424203873,
0.014273159205913544,
-0.03321892023086548,
0.03274121508002281,
0.05807527154684067,
-0.022395407781004906,
-0.019680647179484367,
0.010386522859334946,
0.05025361105799675,
-0.01889711245894432,
-0.0204009972512722,
-0.021499862894415855,
-0.011211668141186237,
0.0066666570492088795,
0.05170087143778801,
0.029880080372095108,
-0.007226681802421808,
0.04429599270224571,
0.026581544429063797,
-0.02023111656308174,
0.003661384107545018,
-0.013408849947154522,
0.0052774567157030106,
-0.011479477398097515,
-0.02486475370824337,
0.00789768248796463,
0.007113007828593254,
0.004621460102498531,
0.04791257530450821,
0.03347870707511902,
0.03321640193462372,
0.015533197671175003,
0.029824385419487953,
-0.010447917506098747,
-0.025698618963360786,
-0.004006816074252129,
0.04697803035378456,
-0.023144865408539772,
0.015209086239337921,
-0.038695693016052246,
0.04572020471096039,
0.0463690347969532,
0.0343136191368103,
0.019302677363157272,
-0.00789189338684082,
0.011910147964954376,
0.014523214660584927,
-0.02137347124516964,
0.04703691974282265,
-0.007275819778442383,
0.02340974099934101,
-0.013775651343166828,
-0.030605243518948555,
0.010932189412415028,
-0.020909495651721954,
0.033748675137758255,
-0.04985572025179863,
-0.025792939588427544,
-0.014981996268033981,
0.009156368672847748,
0.06636753678321838,
-0.0006718804943375289,
0.04552213102579117,
0.033273160457611084,
-0.05116095393896103,
-0.03223174065351486,
-0.042057886719703674,
0.0025727739557623863,
0.026297051459550858,
-0.010378053411841393,
-0.04068577289581299,
0.06914031505584717,
0.016675621271133423,
0.018944550305604935,
-0.00020792045688722283,
-0.040401674807071686,
-0.04890327528119087,
-0.06427363306283951,
-0.0056491876021027565,
-0.06924530118703842,
0.00761462701484561,
-0.02243860997259617,
-0.02122638374567032,
0.03567326441407204,
0.008932231925427914,
-0.008159023709595203,
-0.004354958888143301,
0.02064276486635208,
0.021444063633680344,
0.007026796694844961,
-0.052728116512298584,
0.01708405651152134,
-0.0001794727286323905,
-0.01142694242298603,
-0.02542424201965332,
-0.0307926032692194,
-0.020127123221755028,
-0.027164200320839882,
-0.05124187842011452,
0.05474912002682686,
0.022737111896276474,
0.005434125661849976,
-0.013477452099323273,
0.03936392441391945,
-0.009149845689535141,
-0.054268334060907364,
0.05821944773197174,
-0.003988398239016533,
0.004172138869762421,
0.0036123984027653933,
0.020087433978915215,
-0.0076006208546459675,
-0.016450483351945877,
-0.023887068033218384,
-0.009775826707482338,
-0.007200296968221664,
0.009678839705884457,
0.0315253920853138,
-0.02863723784685135,
0.04179905354976654,
0.0418386347591877,
-0.0568886436522007,
0.024943385273218155,
-0.01965552754700184,
-0.02557847462594509,
-0.010538151487708092,
-0.021978821605443954,
0.03305632248520851,
-0.01974932663142681,
-0.0017828342970460653,
0.017447365447878838,
0.07032155245542526,
0.012873606756329536,
0.015245444141328335,
0.02160516567528248,
0.08089906722307205,
0.025126997381448746,
0.011362677440047264,
0.037115082144737244,
-0.015099363401532173,
0.021669290959835052,
-0.005160671193152666,
0.012898859567940235,
-0.0023325129877775908,
0.028018813580274582,
-0.0068388949148356915,
0.015014320611953735,
0.0037890507373958826,
-0.032131608575582504,
-0.03257447108626366,
0.007596625480800867,
0.004007440526038408,
0.02643570490181446,
-0.05364955589175224,
0.011172321625053883,
0.034354835748672485,
0.0461193211376667,
0.03262340649962425,
-0.007346394471824169,
0.01350895781069994,
0.022815991193056107,
0.03597230091691017,
0.030753454193472862,
-0.02122177556157112,
-0.013771547935903072,
0.023148786276578903,
-0.014190767891705036,
0.013628465123474598,
-0.0008727240492589772,
0.046961862593889236,
0.0006898479769006371,
0.0005425167037174106,
-0.0028038881719112396,
0.04113810881972313,
0.00750967999920249,
0.015191963873803616,
0.01600601337850094,
-0.024208666756749153,
-0.013002854771912098,
0.0038630515336990356,
0.05422478914260864,
-0.009117643348872662,
-0.02022072859108448,
0.028812259435653687,
0.020841719582676888,
0.027688108384609222,
0.015554572455585003,
-0.01182569656521082,
-0.02386779896914959,
0.00873671192675829,
0.03634832799434662,
0.009228352457284927,
-0.014988400973379612,
0.01757265254855156,
0.03206094726920128,
0.0021825546864420176,
0.005652769468724728,
0.02698725089430809,
-0.008698876015841961,
-0.0082492521032691,
0.01936507597565651,
0.01687762327492237,
-0.006696223746985197,
0.02312043309211731,
-0.043804068118333817,
0.04743547737598419,
0.002610637340694666,
0.00435966532677412,
-0.04568515345454216,
-0.02469833567738533,
0.015979444608092308,
-0.03641046956181526,
-0.004644362255930901,
0.00916883535683155,
0.015115754678845406,
0.022555755451321602,
-0.02641553059220314,
-0.01706058904528618,
-0.003233890747651458,
0.013325303792953491,
0.023635797202587128,
-0.009635564871132374,
0.033574964851140976,
-0.03993288427591324,
0.03253156691789627,
-0.01671910472214222,
0.00814774725586176,
-0.00983102060854435,
-0.007349568419158459,
-0.031810369342565536,
0.07538069039583206,
-0.03169655799865723,
0.01156892441213131,
0.024690156802535057,
0.07416986674070358,
0.00873571541160345,
0.07817737758159637,
0.0108852069824934,
-0.02874288149178028,
-0.01797596365213394,
-0.06695287674665451,
-0.017972569912672043,
-0.02999909594655037,
0.016366107389330864,
-0.0027756174094974995,
-0.022101210430264473,
-0.04630374535918236,
-0.003288564970716834,
-0.005988721735775471,
0.017832329496741295,
-0.011463145725429058,
-0.04539792984724045,
0.016099093481898308,
-0.012498701922595501,
-0.04758599027991295,
0.0009353007189929485,
0.05660558491945267,
0.009799931198358536,
0.0026381320785731077,
0.004523112438619137,
-0.0014355970779433846,
-0.0372370108962059,
-0.0025082190986722708,
0.0635007694363594,
0.0393647700548172,
0.057484209537506104,
-0.01754901371896267,
-0.02313600480556488,
-0.012120932340621948,
0.0110100619494915,
-0.037175990641117096,
0.03621531277894974,
0.05159267038106918,
0.02456383965909481,
-0.022960258647799492,
-0.007424636278301477,
0.01431469526141882,
-0.007817845791578293,
0.06400778144598007,
-0.045566659420728683,
0.022094115614891052,
0.005312570836395025,
0.03713185712695122,
-0.060256581753492355,
-0.04628903418779373,
-0.0349864587187767,
0.008426596410572529,
-0.00041553229675628245,
0.008336156606674194,
-0.014059451408684254,
-0.003094827989116311,
-0.0004597750084940344,
0.01743714138865471,
0.01522366888821125,
-0.0716627985239029,
-0.04628409072756767,
-0.06628968566656113,
0.02330181747674942,
-0.013090497814118862,
-0.02578095719218254,
-0.012904449366033077,
0.007834333926439285,
-0.0043707643635571,
0.02364683523774147,
-0.0013720111455768347,
-0.0036467795725911856,
0.024537453427910805,
0.03562592342495918,
-0.012290392071008682,
0.05492798611521721,
0.06849120557308197,
0.03155761584639549,
-0.05600728467106819,
-0.05153452232480049
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | Serving requests To serve inference requests, we use this open source community image You can find the previously described mechanism used in the TextToImagePipeline class. When a LoRA is requested, we'll look at the one that is loaded and change it only if required, then we perform inference as usual. This way, we are able to serve requests for the base model and many distinct adapters. Below is an example on how you can test and request this image: $ git clone https://github.com/huggingface/api-inference-community.git $ cd api-inference-community/docker_images/diffusers $ docker build -t test:1.0 -f Dockerfile . $ cat > /tmp/env_file <<'EOF' MODEL_ID=stabilityai/stable-diffusion-xl-base-1.0 TASK=text-to-image HF_HUB_ENABLE_HF_TRANSFER=1 EOF $ docker run --gpus all --rm --name test1 --env-file /tmp/env_file_minimal -p 8888:80 -it test:1.0 Then in another terminal perform requests to the base model and/or miscellaneous LoRA adapters to be found on the HF Hub. # Request the base model $ curl 0:8888 -d '{"inputs": "elephant", "parameters": {"num_inference_steps": 20}}' > /tmp/base.jpg # Request one adapter $ curl -H 'lora: minimaxir/sdxl-wrong-lora' 0:8888 -d '{"inputs": "elephant", "parameters": {"num_inference_steps": 20}}' > /tmp/adapter1.jpg # Request another one $ curl -H 'lora: nerijs/pixel-art-xl' 0:8888 -d '{"inputs": "elephant", "parameters": {"num_inference_steps": 20}}' > /tmp/adapter2.jpg | [
0.04812181368470192,
-0.043763644993305206,
-0.018550021573901176,
0.000480980466818437,
0.045723941177129745,
0.05376497656106949,
0.041115667670965195,
0.059077080339193344,
-0.0024046478793025017,
-0.013358136638998985,
-0.08566015213727951,
0.043144796043634415,
0.008210000582039356,
0.0732768177986145,
-0.036419548094272614,
-0.07370065897703171,
0.08626947551965714,
0.0017526726005598903,
-0.05764361098408699,
0.08993242681026459,
0.05216452479362488,
-0.04877784103155136,
0.01672549918293953,
-0.016970625147223473,
-0.035619065165519714,
-0.12250778079032898,
0.006613290403038263,
0.010818086564540863,
-0.00827424880117178,
0.02870989963412285,
-0.04616307467222214,
0.02690305933356285,
-0.010628808289766312,
-0.040741145610809326,
0.05905642360448837,
-0.057361673563718796,
-0.11015281826257706,
-0.02152395248413086,
-0.0009669674327597022,
0.005051170475780964,
0.004686442669481039,
-0.018722405657172203,
-0.09221410006284714,
0.01608482003211975,
0.05588936433196068,
-0.010079806670546532,
-0.1502833515405655,
0.05893661081790924,
-0.0220328401774168,
0.047731585800647736,
-0.061924878507852554,
0.08491593599319458,
-0.006160384975373745,
-0.00396349374204874,
0.04236212745308876,
-0.009115898981690407,
0.00852731429040432,
-0.030286071822047234,
0.045729849487543106,
-0.012849677354097366,
0.02771708369255066,
0.003909060265868902,
0.03824121505022049,
0.07504892349243164,
0.021828660741448402,
0.03138191998004913,
-0.051167573779821396,
-0.025758950039744377,
0.014427927322685719,
-0.019311979413032532,
0.014628652483224869,
-0.01295654196292162,
-0.018147338181734085,
-0.018672971054911613,
0.0698780044913292,
-0.057164568454027176,
0.008024543523788452,
0.081643246114254,
0.004923474509268999,
0.008748534135520458,
-0.020677292719483376,
-0.030083687976002693,
0.03522291034460068,
0.026279360055923462,
0.04495319724082947,
0.03734202682971954,
0.049469877034425735,
-0.039489272981882095,
-0.008158382028341293,
-0.009655906818807125,
0.02980610355734825,
-0.06687939167022705,
-0.009360562078654766,
0.011379431933164597,
0.045301783829927444,
0.03228438273072243,
0.04577984660863876,
0.018907589837908745,
0.013433562591671944,
-0.033018533140420914,
-0.024930201470851898,
-0.03176025673747063,
-0.03626387566328049,
-0.030118146911263466,
-0.06745177507400513,
0.05682288482785225,
-0.0017897241050377488,
-0.10370612144470215,
-0.11461842805147171,
-0.042336344718933105,
0.0373259037733078,
-0.022611690685153008,
-0.04195602238178253,
0.07148508727550507,
-0.09198160469532013,
0.009074230678379536,
-0.015219520777463913,
0.016843462362885475,
-0.07111132889986038,
0.054445136338472366,
0.027457986027002335,
0.08618483692407608,
0.10360937565565109,
0.005333464592695236,
0.013535816222429276,
0.01920081488788128,
0.029360845685005188,
-0.038500960916280746,
-0.03223743289709091,
-0.029678458347916603,
-0.021231690421700478,
-0.036412373185157776,
0.051839783787727356,
-0.01334388367831707,
0.07510817050933838,
-0.02438793145120144,
-0.034188397228717804,
-0.05378683656454086,
0.0642695277929306,
-0.011299735866487026,
-0.018388034775853157,
-0.026621146127581596,
0.010689153335988522,
-0.015450756065547466,
0.07894154638051987,
0.027349144220352173,
-0.008759550750255585,
-0.00233180052600801,
0.03508340194821358,
0.03454123064875603,
-0.09317740797996521,
0.10761349648237228,
0.019546590745449066,
-0.03555022180080414,
0.014052001759409904,
0.015330416150391102,
-0.03335142880678177,
0.000736661721020937,
-0.039672039449214935,
0.03162810578942299,
-0.06191372126340866,
-0.06520412117242813,
-0.03516484424471855,
-0.02002859115600586,
-0.01350774522870779,
-0.005059218965470791,
-0.04258638620376587,
0.03435652703046799,
0.06750410050153732,
-0.013957624323666096,
0.033067621290683746,
-0.053493913263082504,
0.051411695778369904,
-0.008935851976275444,
0.08183173090219498,
0.006275194697082043,
0.04969180002808571,
-0.009151923470199108,
0.01017055008560419,
0.00516703724861145,
-0.051273688673973083,
0.0478939525783062,
-0.0062073166482150555,
0.04229725897312164,
0.001785245374776423,
-0.0795167088508606,
0.04854756221175194,
-0.04543117433786392,
0.023300018161535263,
-0.02835886739194393,
-0.006579391658306122,
0.011478287167847157,
0.08630955964326859,
0.008347942493855953,
0.018253616988658905,
-0.02544386126101017,
-0.06323672086000443,
0.04377926513552666,
0.04361842945218086,
0.044992439448833466,
0.049775708466768265,
0.034007325768470764,
0.031176196411252022,
-0.04494025185704231,
-0.00390031561255455,
0.018612567335367203,
0.013397499918937683,
-0.09054148942232132,
0.0349496491253376,
0.0658637210726738,
-0.020181605592370033,
-0.058170899748802185,
0.008991383016109467,
-0.018307680264115334,
0.06765587627887726,
-0.06447390466928482,
-0.036066021770238876,
-0.030160976573824883,
-0.011148149147629738,
-0.06942787021398544,
0.15734876692295074,
0.021600278094410896,
0.026196449995040894,
-0.02349674515426159,
-0.003123848233371973,
0.02603166177868843,
0.08016804605722427,
0.08636615425348282,
0.01595180295407772,
-0.04147808626294136,
-0.02917645126581192,
-0.02259722352027893,
-0.06677614897489548,
0.013078376650810242,
0.00453896215185523,
0.013953476212918758,
0.03565046936273575,
-0.016015080735087395,
0.005826430395245552,
-0.014101053588092327,
0.06605037301778793,
0.035086169838905334,
0.022743312641978264,
0.053625475615262985,
0.00796786230057478,
-0.05644018575549126,
0.033197250217199326,
0.007245263550430536,
-0.021066157147288322,
-0.0567578487098217,
-0.06121082231402397,
0.007315316703170538,
-0.04533251002430916,
-0.03601962700486183,
0.05532677844166756,
-0.037957802414894104,
-0.008559820242226124,
0.012959351763129234,
0.0004125134146306664,
0.07822219282388687,
0.01421408075839281,
-0.010153711773455143,
-0.005991003941744566,
-0.007281580474227667,
-0.02364986389875412,
-0.02256174013018608,
0.01299881562590599,
-0.02250172197818756,
0.01208107452839613,
-0.02239835448563099,
0.0442163422703743,
0.0305927786976099,
-0.00027551656239666045,
0.030760476365685463,
0.017064306885004044,
0.013665325939655304,
0.03396552801132202,
0.03461165353655815,
0.009125183336436749,
-0.027685198932886124,
-0.0032820093911141157,
-0.043284643441438675,
0.03384000062942505,
0.034097686409950256,
0.017578668892383575,
-0.014559171162545681,
-0.0062669250182807446,
-0.03542758896946907,
-0.010557624511420727,
0.038192979991436005,
0.0011647235369309783,
0.017718413844704628,
0.023881005123257637,
-0.04299192130565643,
-0.010550394654273987,
0.002621639287099242,
0.010144954547286034,
-0.04070742800831795,
-0.029419472441077232,
-0.018832216039299965,
-0.006265330594033003,
0.0009682958479970694,
0.013369995169341564,
0.003256190335378051,
-0.03851597383618355,
0.09823314845561981,
-0.009817489422857761,
0.01258144062012434,
-0.08719532936811447,
-0.03424176946282387,
-0.03803739696741104,
0.057036980986595154,
0.01497871708124876,
0.031198307871818542,
0.05003664270043373,
-0.009286961518228054,
0.06627685576677322,
0.02243121527135372,
-0.045715875923633575,
0.012504031881690025,
-0.006762207020074129,
-0.029387541115283966,
-0.030960671603679657,
-0.04184063524007797,
0.018431246280670166,
-0.006737153977155685,
0.018532270565629005,
0.0030622854828834534,
-0.018894435837864876,
0.025915896520018578,
0.016519341617822647,
0.01687220297753811,
0.02079724706709385,
-0.012932641431689262,
0.04285222291946411,
0.021697333082556725,
0.0051202247850596905,
-0.04858311265707016,
-0.014908675104379654,
-0.005755475256592035,
-0.031354259699583054,
0.016475386917591095,
-0.040056969970464706,
0.030983321368694305,
-0.007720510475337505,
-0.029032934457063675,
-0.0069546266458928585,
0.02237008698284626,
0.0022138170897960663,
0.028345268219709396,
-0.008508916012942791,
0.024826902896165848,
0.007266876753419638,
0.0006393000367097557,
-0.020746132358908653,
-0.012517605908215046,
0.05172206088900566,
-0.018586060032248497,
-0.001964620314538479,
0.010968592017889023,
0.03620056435465813,
0.04293811693787575,
-0.007075609173625708,
0.026964399963617325,
0.0007166580762714148,
0.012082487344741821,
0.03987406939268112,
-0.02569674700498581,
-0.05868569388985634,
-0.0369032546877861,
-0.022933484986424446,
-0.031148165464401245,
-0.05369551107287407,
0.026789236813783646,
0.014316335320472717,
0.004283416550606489,
-0.020472591742873192,
0.009318306110799313,
-0.011571903713047504,
0.06297637522220612,
0.011917020194232464,
-0.002541721798479557,
-0.006216693203896284,
-0.012723651714622974,
-0.01466128509491682,
-0.04659540578722954,
0.06820713728666306,
0.016886845231056213,
-0.016351919621229172,
0.0070602926425635815,
-0.024095019325613976,
-0.008069687522947788,
0.009183099493384361,
-0.003616159316152334,
0.001095258048735559,
-0.022282788529992104,
0.03604922816157341,
-0.016454730182886124,
-0.016089415177702904,
-0.013393662869930267,
0.009856894612312317,
0.03131745755672455,
-0.0002355936449021101,
0.005785161163657904,
0.05454712733626366,
0.04547096788883209,
0.013904872350394726,
0.011789741925895214,
-0.003308212151750922,
-0.03210446238517761,
-0.0044003697112202644,
0.03807931765913963,
-0.03704133257269859,
-0.029848171398043633,
-0.03469908609986305,
-0.004473216366022825,
0.021594449877738953,
-0.006208192091435194,
-0.006596322637051344,
-0.03590629994869232,
-0.024964191019535065,
-0.013332837261259556,
0.014793038368225098,
0.05164537578821182,
-0.009092029184103012,
0.00009606761886971071,
-0.00022723192523699254,
-0.016093984246253967,
-0.02195192314684391,
-0.005943568889051676,
-0.00030757716740481555,
-0.019368475303053856,
0.02968711592257023,
0.03563059866428375,
-0.002419084310531616,
0.012517617084085941,
-0.010252280160784721,
0.02466299571096897,
-0.03283810243010521,
-0.016090260818600655,
0.03185763955116272,
0.005036481190472841,
-0.011485819704830647,
-0.047218892723321915,
-0.03361978754401207,
0.007203808054327965,
-0.017375510185956955,
0.0037154625169932842,
-0.041798487305641174,
0.025957880541682243,
0.01433559600263834,
-0.037013206630945206,
0.007744325324892998,
0.04674963280558586,
-0.06795323640108109,
0.028603602200746536,
-0.060492850840091705,
0.03761034831404686,
0.01765119843184948,
-0.0036485292948782444,
-0.015740640461444855,
0.018668897449970245,
0.06970809400081635,
-0.014604851603507996,
-0.027598220854997635,
-0.05029228329658508,
-0.003095726016908884,
0.0526513010263443,
-0.0022782692685723305,
0.017089910805225372,
0.0048258001916110516,
0.014085319824516773,
-0.022525938227772713,
-0.006253880448639393,
-0.044198278337717056,
-0.07083524763584137,
-0.017754705622792244,
0.008253425359725952,
-0.045963648706674576,
0.004223914351314306,
0.005247510503977537,
-0.017493506893515587,
0.048295944929122925,
0.06473808735609055,
0.056658193469047546,
0.025461236014962196,
0.002511918079108,
-0.03877630829811096,
-0.00002965057865367271,
-0.05229220911860466,
0.0710599347949028,
-0.030585257336497307,
0.015408463776111603,
0.03413766622543335,
0.0929020568728447,
0.05041530728340149,
0.026459012180566788,
0.03704134747385979,
-0.025013862177729607,
0.04175608977675438,
0.01604905165731907,
-0.005098273977637291,
0.009207150898873806,
-0.017421262338757515,
0.009843707084655762,
0.027175508439540863,
0.001929409452714026,
-0.020466608926653862,
0.0069104754365980625,
0.08369586616754532,
-0.033321090042591095,
-0.034293316304683685,
-0.010638785548508167,
-0.020892303436994553,
0.05391814559698105,
0.0038626038003712893,
0.04355626925826073,
0.027247164398431778,
-0.008243120275437832,
-0.04608377814292908,
-0.02487463690340519,
-0.01340346597135067,
0.056558165699243546,
-0.008468816056847572,
0.009147248230874538,
0.02002909779548645,
0.01601364277303219,
0.00828168261796236,
-0.00357765587978065,
-0.041808318346738815,
0.0032890229485929012,
-0.051236506551504135,
0.022285006940364838,
-0.05156077817082405,
0.014806275255978107,
-0.015139049850404263,
0.021051887422800064,
0.039813313633203506,
0.015369842760264874,
0.0055027855560183525,
-0.028354531154036522,
0.019846830517053604,
-0.005474954843521118,
0.031795892864465714,
-0.05868721008300781,
0.04622713476419449,
0.03634325787425041,
-0.040469907224178314,
-0.009064861573278904,
-0.07208282500505447,
-0.03387528657913208,
-0.023090919479727745,
-0.026156777516007423,
0.07034569978713989,
0.03980714827775955,
0.034965645521879196,
0.008829006925225258,
0.026344895362854004,
0.0005946438177488744,
0.013530263677239418,
-0.019024889916181564,
-0.0010413494892418385,
-0.04369935020804405,
0.029924403876066208,
0.01824750192463398,
0.01811428740620613,
0.0003283148107584566,
0.0022951827850192785,
0.023795848712325096,
-0.05770260468125343,
-0.03491472825407982,
0.029657114297151566,
-0.02068708837032318,
-0.016748232766985893,
0.020248498767614365,
-0.05132194980978966,
-0.0007238201797008514,
0.004678915720432997,
0.033081553876399994,
-0.013075562193989754,
-0.006388596724718809,
0.0037313171196728945,
-0.021185781806707382,
0.010070974938571453,
0.01340576820075512,
0.021669166162610054,
0.008760052733123302,
0.022576183080673218,
0.0120449373498559,
0.02074805460870266,
0.03275318443775177,
-0.009558643214404583,
0.04654717072844505,
-0.021609993651509285,
0.0648646354675293,
-0.017816508188843727,
0.001270414562895894,
0.03566870093345642,
-0.03644108027219772,
0.00820175465196371,
-0.0003250027075409889,
-0.02126077376306057,
-0.014213872142136097,
-0.0008971723145805299,
-0.0012593836290761828,
0.0034729838371276855,
0.026108721271157265,
-0.06378418952226639,
0.027844097465276718,
0.028931869193911552,
0.027450326830148697,
0.025456929579377174,
-0.0405624583363533,
0.023431723937392235,
-0.05285583436489105,
-0.00307769188657403,
-0.014284346252679825,
-0.0063038235530257225,
-0.043262407183647156,
0.037158213555812836,
-0.009773018769919872,
-0.007281322032213211,
0.0312676727771759,
0.04673215374350548,
-0.021948492154479027,
-0.06567782908678055,
-0.011276989243924618,
0.02596970833837986,
0.01229084562510252,
0.014475678093731403,
-0.010374504141509533,
0.022586539387702942,
-0.03285856544971466,
0.00011682971671689302,
0.04064309224486351,
-0.023415902629494667,
0.013814512640237808,
0.0008316439343616366,
0.006877467501908541,
0.014162019826471806,
0.02216109074652195,
-0.04229108244180679,
0.026987649500370026,
0.02741357870399952,
0.03256171569228172,
0.005966227501630783,
-0.04686124250292778,
0.0168676245957613,
0.011332969181239605,
-0.008227663114666939,
0.008130202069878578,
0.05303770303726196,
0.013341151177883148,
-0.0015037372941151261,
-0.005528817418962717,
0.020584411919116974,
0.02400905080139637,
0.046298615634441376,
-0.03884265199303627,
0.004007396753877401,
0.021207114681601524,
-0.005941854789853096,
-0.033482346683740616,
-0.042027637362480164,
-0.021887848153710365,
-0.019398385658860207,
0.017809487879276276,
-0.017836300656199455,
0.003501300234347582,
0.031664397567510605,
0.008517267182469368,
-0.01401769369840622,
-0.027291683480143547,
0.010401096194982529,
0.003734780941158533,
-0.02553459443151951,
0.013576943427324295,
-0.04065379500389099,
-0.009129157289862633,
-0.007494399324059486,
0.036668647080659866,
-0.010273192077875137,
0.020853210240602493,
-0.02959321066737175,
0.028248531743884087,
-0.016800958663225174,
-0.025900136679410934,
0.013669996522367,
0.04799709841609001,
0.01061982847750187,
0.06576691567897797,
0.010184974409639835,
-0.02245519310235977,
-0.050743188709020615,
-0.008562145754694939,
0.023172074928879738,
-0.030639048665761948,
0.011821066029369831,
-0.03793159872293472,
-0.003993535414338112,
-0.07258652150630951,
0.02653714455664158,
-0.04549429193139076,
0.04146395996212959,
-0.004741385579109192,
0.011716627515852451,
-0.020704098045825958,
-0.04705451801419258,
-0.009718690998852253,
-0.021322837099432945,
0.049519822001457214,
0.032722119241952896,
0.01037565153092146,
0.010351908393204212,
-0.04296272248029709,
-0.030743082985281944,
-0.05376606434583664,
0.044675588607788086,
0.06078070402145386,
-0.00032183004077523947,
-0.01204494759440422,
-0.017798738554120064,
-0.01648213341832161,
-0.002108889166265726,
-0.06708061695098877,
0.03361476585268974,
0.018901890143752098,
-0.0046145301312208176,
-0.005615747533738613,
0.02143394760787487,
0.030934467911720276,
-0.013391828164458275,
0.005317471921443939,
-0.031847793608903885,
0.03463946655392647,
-0.0016053832368925214,
0.03436315804719925,
-0.06724533438682556,
-0.009914426133036613,
-0.029204197227954865,
-0.011764002963900566,
-0.022900482639670372,
-0.00019982733647339046,
0.0006672547897323966,
-0.04678579419851303,
0.006932163145393133,
0.03672796115279198,
-0.03315691649913788,
-0.05712497979402542,
-0.012810622341930866,
-0.0289138276129961,
0.020241130143404007,
-0.004659946076571941,
-0.03404517471790314,
-0.02376602403819561,
0.011939720250666142,
-0.014525243081152439,
0.0220035407692194,
-0.015767987817525864,
-0.025837978348135948,
0.015593104064464569,
0.007606383413076401,
-0.01548856683075428,
0.036205798387527466,
0.03466453775763512,
-0.011738906614482403,
-0.03250384330749512,
-0.009540856815874577
] |
Goodbye cold boot - how we made LoRA inference 300% faster | raphael-gl | December 5, 2023 | lora-adapters-dynamic-loading | diffusers, lora, models, inference, stable-diffusion | https://huggingface.co/blog/lora-adapters-dynamic-loading | LoRA structure In the Hub, LoRAs can be identified with two attributes: A LoRA will have a base_model attribute. This is simply the model which the LoRA was built for and should be applied to when performing inference. Because LoRAs are not the only models with such an attribute (any duplicated model will have one), a LoRA will also need a lora tag to be properly identified. | [
0.06649057567119598,
-0.035811930894851685,
-0.023179542273283005,
0.023138275370001793,
0.08234165608882904,
0.03377308323979378,
0.01352692674845457,
0.02590463124215603,
-0.027389848604798317,
0.004682349972426891,
-0.023920152336359024,
0.029669348150491714,
0.020204663276672363,
0.06728408485651016,
0.006331652868539095,
-0.03538990020751953,
0.01109392661601305,
0.006462148390710354,
-0.027708888053894043,
0.055525101721286774,
0.041272714734077454,
-0.035888224840164185,
0.04918910562992096,
-0.06990168988704681,
0.02490842528641224,
-0.028597600758075714,
0.03786484897136688,
0.002055906457826495,
-0.0545574314892292,
0.06064235791563988,
-0.033833686262369156,
0.02700890228152275,
0.014253021217882633,
-0.014351068995893002,
0.053871240466833115,
-0.02293979935348034,
-0.06258419901132584,
-0.02423192374408245,
0.0036255293525755405,
-0.05261320248246193,
0.0033975644037127495,
0.0066674016416072845,
-0.07029471546411514,
0.04075890779495239,
0.016691753640770912,
0.02397034503519535,
-0.19291512668132782,
0.08063608407974243,
0.0475299209356308,
0.006903062574565411,
-0.09356960654258728,
0.096616230905056,
-0.018858952447772026,
0.07665984332561493,
0.05600501224398613,
-0.0395599901676178,
-0.016478147357702255,
-0.023229071870446205,
0.03679906576871872,
0.027732601389288902,
-0.02806096524000168,
0.020867692306637764,
0.010271774604916573,
-0.005490115378051996,
0.0036158363800495863,
0.016770245507359505,
0.000027781690732808784,
-0.02461947686970234,
0.009731415659189224,
0.11399076879024506,
-0.0339374914765358,
-0.01723158359527588,
-0.012226985767483711,
-0.03333907574415207,
-0.003958578687161207,
-0.052235811948776245,
-0.018189119175076485,
0.07908034324645996,
0.04435739293694496,
0.03440462052822113,
-0.00048369483556598425,
0.03772253543138504,
0.017688347026705742,
0.02973601408302784,
0.047528017312288284,
-0.029156683012843132,
0.03334006294608116,
-0.012982117012143135,
-0.0317494235932827,
0.07750501483678818,
-0.037221509963274,
-0.11703862249851227,
-0.010166417807340622,
0.06289488077163696,
0.026349516585469246,
-0.016413601115345955,
0.04063202068209648,
-0.015411395579576492,
0.03467569127678871,
0.006677436642348766,
-0.0620957687497139,
-0.05451161041855812,
-0.00602331617847085,
-0.06304189562797546,
-0.04442135617136955,
0.0008489329484291375,
0.022824352607131004,
-0.05896884575486183,
-0.07860658317804337,
0.032317016273736954,
-0.04782738909125328,
-0.005815309938043356,
0.020615922287106514,
0.11595474183559418,
-0.027768345549702644,
0.049113448709249496,
-0.01856888458132744,
-0.03062262572348118,
0.037130944430828094,
0.01924918033182621,
0.0036106554325670004,
0.02637399733066559,
0.042616892606019974,
0.04595410078763962,
0.0838409960269928,
0.040414195507764816,
0.05120668560266495,
-0.0073293535970151424,
-0.07601598650217056,
-0.028923971578478813,
-0.0009441127767786384,
-0.05386912077665329,
0.01705612987279892,
0.04175726696848869,
0.04974725842475891,
-0.052421893924474716,
-0.11351855099201202,
-0.0439688041806221,
0.07983468472957611,
-0.00695035420358181,
-0.0949394628405571,
-0.004841801710426807,
-0.02693404257297516,
0.023218145594000816,
0.05741161108016968,
-0.016618818044662476,
0.03871327266097069,
-0.004046256188303232,
-0.008897718042135239,
0.025163302198052406,
-0.05280090868473053,
0.06075836345553398,
0.020637504756450653,
-0.10955478250980377,
0.02489570714533329,
0.04659774899482727,
-0.005506145302206278,
-0.06540403515100479,
-0.06665457040071487,
0.023376913741230965,
0.01762138307094574,
-0.06735804677009583,
-0.09263334423303604,
0.07156723737716675,
0.07023591548204422,
-0.020564734935760498,
-0.04160746932029724,
-0.012455861084163189,
0.08986048400402069,
0.013371266424655914,
0.06786732375621796,
-0.05475056916475296,
0.08803762495517731,
0.026516003534197807,
-0.011181500740349293,
0.017801258713006973,
-0.01008347887545824,
0.014099843800067902,
0.00023412203881889582,
0.003480273298919201,
-0.021565763279795647,
-0.00024182347988244146,
-0.05372665822505951,
-0.007995563559234142,
-0.016228580847382545,
-0.052898164838552475,
0.04178258031606674,
-0.04453720897436142,
-0.031497277319431305,
0.016858641058206558,
-0.02333422563970089,
-0.0258859284222126,
0.016510186716914177,
-0.01993696205317974,
0.032819557934999466,
-0.06764529645442963,
-0.056698352098464966,
0.11886212974786758,
0.06360006332397461,
0.018407924100756645,
0.02638690173625946,
-0.040095336735248566,
-0.007945439778268337,
-0.008337806910276413,
0.006168396212160587,
0.014943513087928295,
0.01061779074370861,
-0.02139372006058693,
0.0684201717376709,
0.027834603562951088,
0.013230535201728344,
-0.028167152777314186,
0.08355233073234558,
-0.11362205445766449,
0.020046444609761238,
-0.03943212702870369,
0.05765698477625847,
-0.0341377854347229,
0.01730244792997837,
-0.03803402557969093,
0.1704602837562561,
-0.02804001420736313,
-0.040509339421987534,
0.05272197350859642,
-0.030417177826166153,
0.019407885149121284,
0.08911822736263275,
0.006937713827937841,
0.038032520562410355,
-0.049978721886873245,
0.02455729804933071,
-0.015617663972079754,
0.05055003613233566,
0.012141766957938671,
0.006294573191553354,
0.039020877331495285,
0.024447001516819,
0.017670568078756332,
0.022869035601615906,
-0.015439923852682114,
-0.020281566306948662,
0.01565534807741642,
-0.03196420893073082,
0.05593018978834152,
-0.009160750545561314,
-0.03421257808804512,
0.09340450912714005,
-0.026349009945988655,
-0.008728859946131706,
0.03962717205286026,
-0.09996072202920914,
-0.05450696498155594,
0.06850435584783554,
0.001924122916534543,
0.07268384844064713,
-0.024299381300807,
0.01118321530520916,
-0.05533401295542717,
0.01458887942135334,
0.02597099356353283,
-0.009515929967164993,
-0.019110413268208504,
-0.027197759598493576,
-0.050371747463941574,
-0.02549222856760025,
0.01720534823834896,
0.03275098279118538,
0.0019496682798489928,
-0.027847692370414734,
0.009281246922910213,
0.0057871388271451,
-0.04567849636077881,
0.005281620193272829,
0.0022619757801294327,
-0.000446241901954636,
0.005830136593431234,
-0.005760956555604935,
0.00492167379707098,
0.01307915523648262,
-0.0031059151515364647,
-0.021445829421281815,
-0.028191404417157173,
0.022302841767668724,
0.0018693673191592097,
0.014644306153059006,
-0.03935764357447624,
0.020395349711179733,
-0.010154886171221733,
-0.03803148865699768,
-0.007122823968529701,
0.009784928523004055,
0.021428756415843964,
-0.017449844628572464,
0.010096313431859016,
-0.018565459176898003,
0.027086297050118446,
0.013775350525975227,
0.028764110058546066,
-0.01015073899179697,
-0.009950670413672924,
0.04067203775048256,
0.016173701733350754,
0.046967580914497375,
-0.0150315435603261,
-0.05007825791835785,
0.07444301247596741,
0.01778401993215084,
0.02814682014286518,
-0.10865742713212967,
-0.058115359395742416,
-0.030104434117674828,
0.01331537589430809,
0.023819539695978165,
-0.01759442128241062,
0.04710405692458153,
-0.005245351232588291,
0.04247581213712692,
-0.008303607814013958,
-0.02841167151927948,
-0.007444282062351704,
0.01479263510555029,
-0.023375393822789192,
-0.03639990836381912,
-0.002938436344265938,
-0.010683292523026466,
-0.0019467670936137438,
-0.005746148061007261,
-0.005171402357518673,
-0.030169585719704628,
0.034334372729063034,
-0.04091267287731171,
0.02406919188797474,
-0.03692332282662392,
-0.030421141535043716,
0.003513272851705551,
0.021669631823897362,
0.012723361141979694,
-0.038861434906721115,
-0.007385288365185261,
0.019615668803453445,
-0.009313876740634441,
-0.018985146656632423,
-0.05749082192778587,
0.021270887926220894,
-0.024381328374147415,
0.02838321402668953,
0.0554862804710865,
0.01502616424113512,
-0.03868900239467621,
0.029647959396243095,
0.04268974810838699,
0.01494532823562622,
0.029400192201137543,
-0.009382661432027817,
-0.009900319389998913,
-0.017899831756949425,
0.009201355278491974,
-0.03235138580203056,
-0.019626343622803688,
0.005471504759043455,
0.036189183592796326,
0.06722136586904526,
0.03356273099780083,
-0.028745323419570923,
0.01268041878938675,
-0.0023221655283123255,
-0.0017931413603946567,
0.004172336310148239,
-0.05415093153715134,
-0.04069733992218971,
0.028244128450751305,
-0.0285320021212101,
-0.07167144119739532,
-0.005473455414175987,
0.046737249940633774,
0.039064228534698486,
0.003185861511155963,
0.0014758267207071185,
-0.004415964242070913,
0.012391810305416584,
-0.014550123363733292,
0.008305273950099945,
0.009715274907648563,
-0.017846103757619858,
-0.034389667212963104,
-0.0294299628585577,
0.06833383440971375,
-0.01833360083401203,
-0.00156537932343781,
-0.012167422100901604,
-0.016520384699106216,
-0.03405133634805679,
-0.012763788923621178,
0.01605680212378502,
0.00581649225205183,
-0.030948691070079803,
0.010247643105685711,
0.010839119553565979,
0.011553059332072735,
-0.006743851117789745,
0.039752569049596786,
0.01371350884437561,
-0.004863090813159943,
0.014922131784260273,
0.05806664377450943,
-0.017394041642546654,
0.02559303492307663,
0.004753688350319862,
0.02765757031738758,
0.012043171562254429,
-0.0027959959115833044,
-0.023763209581375122,
-0.014829489402472973,
0.04150860384106636,
-0.036731183528900146,
-0.011945606209337711,
0.023311590775847435,
-0.05695512518286705,
0.032474715262651443,
0.008721153251826763,
0.01781284250319004,
-0.0016188216395676136,
0.01873740553855896,
0.030687004327774048,
-0.05096929520368576,
-0.003118612105026841,
0.0017616478726267815,
0.03078504279255867,
-0.04620665684342384,
0.045611489564180374,
-0.004404993262141943,
-0.03389956057071686,
-0.010681199841201305,
-0.01691805012524128,
0.058765608817338943,
-0.013233908452093601,
0.024777278304100037,
-0.010128768160939217,
-0.014150132425129414,
0.01801241934299469,
0.012285231612622738,
-0.010313587263226509,
-0.00655560614541173,
0.02076902613043785,
-0.011203826405107975,
0.03251079469919205,
0.018459374085068703,
-0.0276949442923069,
-0.05458890274167061,
0.009039265103638172,
0.04083710536360741,
-0.013946273364126682,
0.06258702278137207,
-0.033287324011325836,
-0.054327577352523804,
0.004241490736603737,
-0.009125269949436188,
0.03585178405046463,
0.026129676029086113,
-0.02644156478345394,
-0.019388020038604736,
-0.009716324508190155,
-0.017909176647663116,
-0.05185937508940697,
0.011698683723807335,
0.03467455133795738,
-0.005565652623772621,
0.013711986131966114,
0.007843224331736565,
-0.014970937743782997,
-0.003273783018812537,
0.044198960065841675,
0.03782694414258003,
-0.0051910653710365295,
-0.00923168659210205,
-0.06658312678337097,
-0.03246719390153885,
0.026402486488223076,
-0.05312596634030342,
-0.00518041243776679,
-0.006284765433520079,
-0.023471226915717125,
0.02725825645029545,
0.029641520231962204,
0.04112818464636803,
0.03951368108391762,
0.006537309847772121,
-0.01165976095944643,
-0.03230937197804451,
0.002331831492483616,
0.03700735792517662,
-0.014101363718509674,
0.01881924271583557,
0.03147893026471138,
0.017072204500436783,
0.05217643454670906,
0.04100204259157181,
-0.007444407790899277,
0.0065021091140806675,
0.03418463468551636,
0.03897968679666519,
-0.012649420648813248,
0.009026282466948032,
0.03235238417983055,
0.05189203470945358,
-0.011740116402506828,
-0.0029812483116984367,
-0.03216991573572159,
-0.016398508101701736,
0.028613025322556496,
-0.013650191016495228,
-0.0008278778404928744,
0.0005171532393433154,
0.0059118387289345264,
0.04324907436966896,
0.020549172535538673,
0.024516310542821884,
-0.0037808562628924847,
-0.053099729120731354,
-0.06304144114255905,
-0.020720450207591057,
0.012475251220166683,
0.02279556356370449,
-0.08016890287399292,
-0.05671383813023567,
0.02786966785788536,
-0.029735686257481575,
0.0043381513096392155,
0.007265126332640648,
-0.021713165566325188,
-0.020268045365810394,
-0.0062994943000376225,
0.029100723564624786,
-0.06773078441619873,
-0.007926219142973423,
0.03303983062505722,
0.009031141176819801,
0.013621593825519085,
0.011816134676337242,
-0.032789986580610275,
0.022865908220410347,
-0.0029234527610242367,
0.005889354273676872,
0.00636663194745779,
-0.05904717370867729,
0.034521542489528656,
0.03791159391403198,
-0.00020241820311639458,
-0.023758873343467712,
0.010025053285062313,
-0.0647420585155487,
-0.025022506713867188,
-0.04661678150296211,
-0.001955433050170541,
0.035658128559589386,
0.02324177697300911,
-0.013577057048678398,
0.02740885131061077,
0.012019665911793709,
-0.036705031991004944,
0.021998155862092972,
-0.0060817040503025055,
0.005744599737226963,
0.046884458512067795,
0.027968674898147583,
-0.0019460663897916675,
-0.017250927165150642,
-0.0059564621187746525,
0.03369184955954552,
0.005875882692635059,
-0.023059645667672157,
0.039820995181798935,
-0.0006812351639382541,
0.0021691503934562206,
0.03884701058268547,
-0.06457452476024628,
0.00580062298104167,
-0.00779323885217309,
0.041249945759773254,
0.01489772368222475,
0.043101899325847626,
0.01462065614759922,
-0.026703359559178352,
-0.031516242772340775,
0.016455085948109627,
0.023402608931064606,
-0.017903393134474754,
0.03456118330359459,
0.005847315303981304,
0.05129425972700119,
0.05720996856689453,
-0.00692580034956336,
0.016935022547841072,
0.03242744877934456,
0.06723477691411972,
-0.009583277627825737,
0.025587810203433037,
0.0006928383372724056,
-0.013611746951937675,
-0.02167479693889618,
-0.032498251646757126,
0.006369307171553373,
-0.026380505412817,
0.0027158388402312994,
-0.0014851924497634172,
-0.023435518145561218,
0.016742488369345665,
-0.013050948269665241,
0.04037244990468025,
0.03257465362548828,
-0.015318747609853745,
0.014085986651480198,
0.008838171139359474,
0.008270852267742157,
0.007505235727876425,
0.03661949187517166,
0.05209359526634216,
0.005977514199912548,
-0.0019690925255417824,
0.033444564789533615,
0.009477155283093452,
0.0033691292628645897,
-0.006334090139716864,
0.003950120881199837,
-0.005679134279489517,
-0.020477475598454475,
-0.02676526829600334,
0.015405592508614063,
0.0316508449614048,
-0.03205312415957451,
-0.015003624372184277,
0.02594996988773346,
-0.030639823526144028,
-0.026828903704881668,
-0.00334228971041739,
0.007267724256962538,
-0.01838640496134758,
0.02178647369146347,
-0.0025186454877257347,
0.04100170359015465,
0.015124506317079067,
-0.026857292279601097,
0.0018036982510238886,
-0.0012479282449930906,
-0.0071362461894750595,
0.029120108112692833,
-0.02965250425040722,
0.012213700450956821,
-0.020190322771668434,
-0.0022741826251149178,
-0.008680574595928192,
0.03165663406252861,
0.011266744695603848,
0.024912890046834946,
-0.0018405913142487407,
-0.027449961751699448,
0.008764790371060371,
0.02766912244260311,
-0.037789829075336456,
0.016054071485996246,
-0.022698448970913887,
-0.01663295179605484,
-0.0549195259809494,
-0.00015776617510709912,
-0.012474707327783108,
-0.02249249629676342,
0.006719542201608419,
0.005333051551133394,
-0.018873468041419983,
0.058831844478845596,
-0.029753588140010834,
-0.008165603503584862,
-0.054387666285037994,
-0.03377389907836914,
-0.041599445044994354,
0.006033588200807571,
0.011145387776196003,
-0.02279716357588768,
0.013459250330924988,
0.02097170427441597,
-0.01599782332777977,
0.010428315959870815,
-0.06432205438613892,
0.022585416212677956,
0.024071160703897476,
0.004160936456173658,
0.004835833329707384,
0.004875686950981617,
0.03931264206767082,
0.02675660327076912,
0.013841243460774422,
0.012510684318840504,
-0.009673642925918102,
-0.01764533855021,
-0.015305609442293644,
0.013650639913976192,
0.01654752716422081,
0.02770525962114334,
-0.039821408689022064,
-0.028101623058319092,
-0.017015913501381874,
0.018683524802327156,
-0.011668762192130089,
0.016548138111829758,
-0.04166502505540848,
-0.0290310587733984,
0.022853076457977295,
0.006295262835919857,
-0.03212570399045944,
0.04490165039896965,
0.03706200420856476,
0.010670840740203857,
-0.015866538509726524,
-0.04057703912258148,
-0.001783462823368609,
-0.04364616423845291,
0.013948350213468075,
-0.008508681319653988,
0.029113292694091797,
-0.02391551062464714,
-0.019079532474279404,
0.0033963057212531567,
0.004207639489322901,
-0.021758699789643288,
-0.07046721130609512,
0.026889191940426826,
0.015399282798171043,
0.02490546554327011,
0.02206561155617237,
-0.031020741909742355,
0.013261424377560616,
-0.0021796422079205513,
0.03374218940734863,
-0.002921762177720666,
-0.02279413677752018,
-0.05495970696210861,
0.0020995279774069786,
-0.0648743212223053,
-0.028061669319868088,
-0.033245570957660675,
-0.01946408487856388,
-0.028701556846499443,
0.004513310734182596,
-0.035536013543605804,
-0.012857954017817974,
0.056577540934085846,
0.02702166512608528,
0.028264455497264862,
-0.047308310866355896,
-0.06087233126163483,
-0.026099413633346558,
-0.014197738841176033,
-0.03562180697917938,
0.008618837222456932,
0.016328925266861916,
0.017701156437397003,
0.009175397455692291,
-0.011034869588911533,
0.004398021847009659,
-0.02277204394340515,
0.00777101144194603,
0.03165910765528679,
-0.0197047907859087,
0.06740627437829971,
0.04589046165347099,
0.01608196459710598,
0.0318845734000206,
-0.02155698463320732
] |
Optimum-NVIDIA - Unlock blazingly fast LLM inference in just 1 line of code | laikh-nvidia | December 5, 2023 | optimum-nvidia | llm, nvidia, llama, inference, optimum | https://huggingface.co/blog/optimum-nvidia | # Optimum-NVIDIA on Hugging Face enables blazingly fast LLM inference in just 1 line of code Large Language Models (LLMs) have revolutionized natural language processing and are increasingly deployed to solve complex problems at scale. Achieving optimal performance with these models is notoriously challenging due to their unique and intense computational demands. Optimized performance of LLMs is incredibly valuable for end users looking for a snappy and responsive experience, as well as for scaled deployments where improved throughput translates to dollars saved. That's where the Optimum-NVIDIA inference library comes in. Available on Hugging Face, Optimum-NVIDIA dramatically accelerates LLM inference on the NVIDIA platform through an extremely simple API. By changing just a single line of code, you can unlock up to 28x faster inference and 1,200 tokens/second on the NVIDIA platform. Optimum-NVIDIA is the first Hugging Face inference library to benefit from the new float8 format supported on the NVIDIA Ada Lovelace and Hopper architectures. FP8, in addition to the advanced compilation capabilities of NVIDIA TensorRT-LLM software software, dramatically accelerates LLM inference. | [
0.004775621462613344,
0.02051040343940258,
0.08029551059007645,
-0.011128890328109264,
0.0266862865537405,
0.003975412342697382,
-0.02709774300456047,
0.02909432165324688,
-0.0021951342932879925,
-0.03160775080323219,
-0.04257040470838547,
0.05432354286313057,
-0.009479979053139687,
0.05549602210521698,
0.06068085879087448,
-0.05415312945842743,
-0.0200045108795166,
-0.03697235882282257,
-0.019814131781458855,
0.013534682802855968,
0.0509059838950634,
-0.04260362684726715,
0.07458550482988358,
-0.021932730451226234,
-0.08702047914266586,
-0.04178060591220856,
-0.04543698951601982,
0.002944506239145994,
0.013825392350554466,
0.01749575324356556,
-0.03170032054185867,
-0.061889857053756714,
-0.04138122498989105,
-0.005081491079181433,
0.085326187312603,
0.01029431913048029,
-0.12476059794425964,
0.052718497812747955,
-0.015123766846954823,
0.01752804033458233,
0.05438093841075897,
-0.06022518500685692,
-0.09876034408807755,
-0.0549577996134758,
-0.01841004565358162,
0.018720081076025963,
-0.10151354223489761,
0.0592951625585556,
-0.053452540189027786,
-0.06746164709329605,
-0.04565873742103577,
0.10378306359052658,
-0.07343093305826187,
-0.022637031972408295,
0.04379287734627724,
-0.03377501294016838,
0.022165674716234207,
-0.0407843142747879,
0.03257792815566063,
0.01398902665823698,
-0.019025927409529686,
-0.03031659871339798,
0.02136499434709549,
-0.04246023669838905,
-0.0008144861785694957,
0.010871940292418003,
-0.06842909008264542,
-0.036490727216005325,
-0.03133297339081764,
-0.017590565606951714,
0.027712227776646614,
0.020970940589904785,
-0.052639443427324295,
-0.006143738050013781,
-0.010826131328940392,
-0.04792634770274162,
-0.04456976801156998,
0.005379498470574617,
0.03204972669482231,
-0.01850251480937004,
-0.019044898450374603,
0.02480885572731495,
0.020910782739520073,
0.04407406970858574,
0.031661856919527054,
0.05414924398064613,
-0.01493610069155693,
-0.05957762897014618,
-0.049682047218084335,
-0.0056537422351539135,
-0.10017932951450348,
-0.04907458275556564,
-0.045066818594932556,
0.003848317079246044,
0.05021553486585617,
0.014711885713040829,
0.0394146665930748,
0.035072267055511475,
-0.04307400807738304,
-0.055241018533706665,
0.02829461172223091,
-0.06740031391382217,
-0.03153511509299278,
-0.04868481308221817,
-0.0665779709815979,
0.08831919729709625,
-0.04584196209907532,
-0.08252059668302536,
-0.047544144093990326,
0.010344037786126137,
0.011492963880300522,
0.03401009738445282,
0.044584278017282486,
0.01347254030406475,
-0.10041317343711853,
0.06095857173204422,
0.01740124076604843,
0.01512672659009695,
0.015471910126507282,
0.0014750721165910363,
0.0028471346013247967,
0.07282844930887222,
0.09515556693077087,
-0.02071676217019558,
0.030479587614536285,
0.07809475064277649,
0.016543149948120117,
0.022954223677515984,
0.05089263617992401,
-0.017473679035902023,
0.030629457905888557,
-0.053489845246076584,
-0.010343092493712902,
0.015143642202019691,
0.0228195209056139,
-0.04676549881696701,
-0.0015671480214223266,
-0.06752472370862961,
0.027788901701569557,
-0.023689744994044304,
0.008942458778619766,
0.017845023423433304,
0.02407311089336872,
-0.022391581907868385,
0.06523200869560242,
0.018642546609044075,
-0.030521592125296593,
0.022277044132351875,
-0.0011592322262004018,
-0.01915431022644043,
-0.09263892471790314,
0.056693632155656815,
-0.04987824708223343,
-0.05879996344447136,
0.028130142018198967,
0.045944467186927795,
0.05376738682389259,
0.015284155495464802,
-0.0698656365275383,
-0.06012699753046036,
-0.06339164078235626,
-0.04172699153423309,
-0.09900645911693573,
-0.06114162132143974,
-0.012460955418646336,
-0.005248891655355692,
-0.008621009066700935,
0.02568243443965912,
-0.04553686082363129,
0.01914875954389572,
0.036946628242731094,
-0.004950398579239845,
0.024784166365861893,
-0.04883526638150215,
-0.010279277339577675,
0.03136897832155228,
0.03213844075798988,
0.021819839254021645,
-0.011025916785001755,
-0.050896745175123215,
-0.06414271146059036,
0.08688744157552719,
0.008599769324064255,
0.09096390008926392,
0.035308461636304855,
-0.09192721545696259,
0.04206787422299385,
-0.05100557208061218,
-0.019668221473693848,
-0.06565824151039124,
-0.014334139414131641,
0.06535210460424423,
0.06672731041908264,
-0.025936070829629898,
0.02499236725270748,
-0.028069982305169106,
-0.059748150408267975,
0.07975935190916061,
0.059153907001018524,
0.0008113765507005155,
0.06848166882991791,
0.0576782301068306,
0.08180486410856247,
-0.002560245105996728,
0.007957861758768559,
-0.008645178750157356,
-0.05346620827913284,
-0.032755304127931595,
0.006919825915247202,
0.09469659626483917,
0.051051266491413116,
-0.11100701242685318,
-0.017128415405750275,
-0.004546669311821461,
-0.0032054688781499863,
-0.06713763624429703,
-0.043497562408447266,
0.06833714246749878,
0.02136904001235962,
-0.019230766221880913,
0.11248941719532013,
-0.029152097180485725,
0.022282930091023445,
-0.08757531642913818,
-0.07237932831048965,
-0.04368537291884422,
0.07270145416259766,
0.04040764272212982,
-0.010114779695868492,
-0.05408238619565964,
0.00048749803681857884,
-0.08888936787843704,
-0.02795117348432541,
0.012548243626952171,
-0.0033307892736047506,
-0.07202456146478653,
0.05555441603064537,
0.05145570635795593,
-0.02180587314069271,
0.004384675528854132,
0.01887590065598488,
0.06614489108324051,
0.007143884897232056,
-0.001279873657040298,
0.050201352685689926,
0.01986847259104252,
0.0543876551091671,
-0.03042745776474476,
0.04074323549866676,
0.00838107243180275,
0.017634209245443344,
0.007008156273514032,
-0.007610836066305637,
0.014805713668465614,
0.018178045749664307,
-0.007163152564316988,
-0.008450852707028389,
0.011425084434449673,
-0.007654997985810041,
0.018476255238056183,
0.023183468729257584,
-0.00757360877469182,
0.010115575976669788,
0.003740973537787795,
-0.006775919813662767,
-0.024684526026248932,
0.01873060129582882,
0.013902067206799984,
-0.07638920098543167,
0.003097603330388665,
0.03562626615166664,
-0.013702117837965488,
0.039537832140922546,
0.011202681809663773,
0.014543432742357254,
0.06725461781024933,
0.043855976313352585,
-0.03988379240036011,
-0.037700358778238297,
-0.05159928649663925,
0.010543400421738625,
-0.012591357342898846,
0.016463272273540497,
0.052077073603868484,
-0.0049881841987371445,
-0.024817628785967827,
-0.01571154035627842,
-0.029308397322893143,
-0.0518936887383461,
0.06452368199825287,
0.012519700452685356,
0.05504131689667702,
0.004594039637595415,
-0.043760161846876144,
-0.01903279684484005,
-0.009464578703045845,
0.028839003294706345,
-0.020388290286064148,
-0.049930013716220856,
0.033354952931404114,
-0.010729556903243065,
-0.01486510131508112,
-0.00841907411813736,
-0.0006435315008275211,
-0.00462911743670702,
0.019206149503588676,
-0.0007733626989647746,
0.025026455521583557,
-0.06842987984418869,
0.0002801505324896425,
-0.0374348908662796,
-0.008116546086966991,
0.03241559490561485,
0.018809758126735687,
0.0579722635447979,
0.017972353845834732,
0.014009576290845871,
0.0327184684574604,
-0.01290273480117321,
0.021671613678336143,
0.049828555434942245,
-0.005056713707745075,
0.011981346644461155,
-0.006834838073700666,
-0.009090743027627468,
-0.025136832147836685,
0.011461733840405941,
0.005641433876007795,
0.00551012484356761,
0.00013113512250129133,
-0.011080862022936344,
0.010143831372261047,
-0.013345113955438137,
-0.04317249730229378,
0.018072577193379402,
-0.008640684187412262,
-0.00446477672085166,
-0.02436205931007862,
-0.04207681119441986,
-0.009713461622595787,
0.007331870961934328,
0.005019757431000471,
-0.06845196336507797,
0.004065186716616154,
0.011127205565571785,
0.013073677197098732,
0.02955915778875351,
0.01656048186123371,
0.03130178898572922,
-0.0292167030274868,
0.01650978997349739,
-0.04609032720327377,
0.025114232674241066,
-0.004998167511075735,
-0.009555951692163944,
0.03420613706111908,
0.041840020567178726,
-0.03248731046915054,
-0.04062482342123985,
0.03869480639696121,
0.006136409938335419,
0.025966404005885124,
-0.030744673684239388,
0.06085638329386711,
-0.02094319276511669,
-0.039626892656087875,
0.027820253744721413,
0.006947233807295561,
-0.07172571122646332,
-0.024421650916337967,
-0.035828158259391785,
0.019229331985116005,
-0.0371723547577858,
0.019675221294164658,
0.013351134024560452,
-0.016180073842406273,
0.040089186280965805,
0.047327034175395966,
0.026421334594488144,
0.06692690402269363,
-0.00016351045633200556,
-0.002429760294035077,
-0.02174660563468933,
-0.0235064085572958,
-0.018120331689715385,
-0.019725803285837173,
0.06163126975297928,
0.03302659094333649,
-0.020995406433939934,
0.003257573815062642,
-0.010230102576315403,
0.01765066757798195,
0.02543053589761257,
0.01911204867064953,
-0.015069950371980667,
-0.009000740014016628,
-0.0018728120485320687,
-0.019236430525779724,
-0.027871951460838318,
-0.023982875049114227,
0.005906236357986927,
0.007790816482156515,
-0.030956780537962914,
-0.0010064849629998207,
0.02557561546564102,
0.051593631505966187,
0.02400137484073639,
-0.0166782159358263,
0.023825615644454956,
-0.029603812843561172,
0.004804600961506367,
-0.02882070094347,
-0.0598004087805748,
0.022786080837249756,
-0.0008035092614591122,
0.005801185965538025,
0.039665285497903824,
0.02193080633878708,
-0.02962169051170349,
-0.00445053493604064,
-0.005668815225362778,
-0.015194057486951351,
0.048312801867723465,
0.008125084452331066,
-0.052360814064741135,
-0.015575665980577469,
-0.01878560520708561,
0.00953870452940464,
-0.030897578224539757,
0.014275292865931988,
-0.01946238987147808,
-0.016510311514139175,
0.0737808421254158,
0.020110130310058594,
0.0000776119704823941,
-0.007153292652219534,
0.01717585138976574,
-0.010532868094742298,
-0.061922986060380936,
0.002917167264968157,
0.07584821432828903,
-0.00592078035697341,
0.03585941717028618,
-0.05152498930692673,
-0.03312516212463379,
0.014789940789341927,
0.02100806124508381,
0.015390821732580662,
0.013315494172275066,
0.0036605759523808956,
0.022220415994524956,
-0.016722841188311577,
0.016948748379945755,
-0.0037997092586010695,
0.013720136135816574,
0.026855070143938065,
-0.025281354784965515,
0.047769252210855484,
-0.005195962730795145,
-0.05372562259435654,
-0.007859032601118088,
-0.0057744234800338745,
0.030351564288139343,
0.0030656408052891493,
-0.012286543846130371,
0.018489379435777664,
0.04766309633851051,
0.031515367329120636,
0.0008752836147323251,
0.04742182418704033,
0.007537738420069218,
0.023514382541179657,
0.01819446310400963,
-0.013537853956222534,
0.004186995793133974,
-0.024847157299518585,
-0.049605511128902435,
-0.007516887504607439,
0.0001174214921775274,
0.043330997228622437,
0.00992946233600378,
-0.01391627173870802,
-0.015764154493808746,
0.0489393025636673,
0.03288128972053528,
-0.02221795730292797,
0.045260485261678696,
-0.004381197039037943,
-0.015243024565279484,
-0.06103639304637909,
0.051076751202344894,
-0.03346240520477295,
-0.0032812515273690224,
0.04963701218366623,
0.03855467587709427,
0.07705260813236237,
0.01760188862681389,
0.010727071203291416,
0.0073934998363256454,
-0.009448064491152763,
0.02263406664133072,
-0.032585423439741135,
0.019254112616181374,
-0.01551887858659029,
0.0014803172089159489,
0.03805367648601532,
-0.007520594168454409,
-0.027202188968658447,
0.01525919884443283,
0.015635265037417412,
-0.04542576149106026,
-0.04325500875711441,
0.0008698360761627555,
-0.0012195940362289548,
0.006236611865460873,
-0.0041434671729803085,
0.033043380826711655,
-0.030466845259070396,
-0.014613998122513294,
-0.017504623159766197,
0.002719387412071228,
-0.004813752602785826,
0.012196257710456848,
-0.002485558157786727,
0.011439373716711998,
0.0066137174144387245,
-0.005558275617659092,
0.05356283113360405,
-0.02413339540362358,
-0.006430765613913536,
-0.023957423865795135,
-0.0662345439195633,
0.02944626659154892,
-0.04640762507915497,
0.005206907168030739,
-0.021068371832370758,
0.019523320719599724,
-0.0014371328288689256,
0.0021270383149385452,
0.008107064291834831,
0.0225264560431242,
0.034732792526483536,
0.03360074386000633,
0.003707336960360408,
-0.038542430847883224,
-0.02478681690990925,
0.020911328494548798,
-0.0074960775673389435,
-0.02992776595056057,
-0.055667463690042496,
-0.05439253896474838,
-0.001518073957413435,
-0.013669395819306374,
0.03717728704214096,
0.05031339451670647,
-0.012039128690958023,
-0.034903790801763535,
0.01085469126701355,
0.03284694254398346,
0.015665598213672638,
0.03663782402873039,
-0.029501017183065414,
0.0070441849529743195,
-0.0208338163793087,
0.03940802812576294,
-0.042780861258506775,
0.009742205031216145,
0.010352415032684803,
0.020029883831739426,
-0.032214194536209106,
-0.0014383995439857244,
0.04140018671751022,
-0.01924063451588154,
0.0412648543715477,
0.01858133263885975,
-0.019437596201896667,
0.03869209811091423,
0.01158815249800682,
-0.04942147061228752,
-0.03259735181927681,
0.027857737615704536,
0.009344356134533882,
-0.0035449303686618805,
-0.0019023269414901733,
0.013811304233968258,
0.06886836141347885,
0.059578098356723785,
-0.01711893081665039,
0.01381246279925108,
0.017064714804291725,
0.03245076537132263,
0.00679281260818243,
0.023723753169178963,
0.0038562556728720665,
0.0573854073882103,
0.06563639640808105,
0.06384120136499405,
0.022160064429044724,
-0.05019387602806091,
0.009527375921607018,
0.020069655030965805,
0.02232491970062256,
-0.026718517765402794,
-0.018510134890675545,
0.06344538927078247,
0.011222339235246181,
0.020132316276431084,
-0.03969162702560425,
0.0805039033293724,
0.01395626924932003,
0.02782396413385868,
-0.01217770203948021,
0.013867112807929516,
-0.010335241444408894,
0.007522488012909889,
0.05527552589774132,
0.021858494728803635,
-0.009391502477228642,
-0.017122631892561913,
0.03261605277657509,
0.013434131629765034,
0.0549749955534935,
-0.0030128515791147947,
-0.008657045662403107,
-0.04221394285559654,
-0.01982571743428707,
0.013510670512914658,
0.002136476570740342,
-0.01586812548339367,
0.028487687930464745,
-0.0021494452375918627,
-0.04588820040225983,
-0.01073373295366764,
0.03872145339846611,
0.0017112123314291239,
0.033342186361551285,
0.0031040313187986612,
-0.00007815388380549848,
0.013282145373523235,
-0.030701998621225357,
-0.0041673812083899975,
-0.010332748293876648,
0.003442157292738557,
-0.015370436944067478,
0.05117938295006752,
-0.04311079531908035,
-0.006576258689165115,
-0.0003577926254365593,
-0.01171507965773344,
-0.010508286766707897,
-0.009360266849398613,
0.025539815425872803,
-0.0036200738977640867,
0.01098966971039772,
0.01822221651673317,
0.019632907584309578,
0.004453148692846298,
0.0007928453269414604,
0.011930976994335651,
0.019130898639559746,
-0.038595981895923615,
-0.014117775484919548,
0.043976202607154846,
0.023592378944158554,
0.039913538843393326,
-0.03823096305131912,
-0.036129388958215714,
0.009113151580095291,
0.013116973452270031,
-0.0013247249880805612,
0.09074980020523071,
-0.021799003705382347,
-0.05987365171313286,
0.018513884395360947,
-0.009689860977232456,
-0.014851163141429424,
-0.02012772485613823,
-0.02219226211309433,
-0.009337414987385273,
0.0027785173151642084,
0.010359646752476692,
0.016043810173869133,
0.027401013299822807,
0.006465437822043896,
0.06048346310853958,
0.026789339259266853,
-0.023973073810338974,
-0.012999601662158966,
0.04618742689490318,
0.01727118156850338,
0.02305849827826023,
0.06419967859983444,
-0.03269803896546364,
0.011417309753596783,
-0.02799149602651596,
-0.017601419240236282,
-0.005558487959206104,
0.024152865633368492,
-0.014635106548666954,
0.018642554059624672,
-0.022641802206635475,
-0.004700330551713705,
0.007288943510502577,
0.049290433526039124,
0.004222945775836706,
0.006635601632297039,
-0.03582077845931053,
0.017885202541947365,
-0.007846206426620483,
0.00926437322050333,
0.030533116310834885,
0.031526219099760056,
0.029069893062114716,
-0.01135675236582756,
-0.02912350930273533,
0.02409762144088745,
0.012707969173789024,
0.01865721307694912,
0.028678689152002335,
-0.03287211433053017,
-0.02413887344300747,
-0.0813775509595871,
-0.03782886266708374,
0.03177805244922638,
-0.046351589262485504,
0.029168639332056046,
0.014988860115408897,
-0.01914953999221325,
-0.03824865445494652,
0.04633346572518349,
0.05616409331560135,
-0.037002962082624435,
0.036361582577228546,
-0.02746555581688881,
-0.003087479155510664,
0.013232041150331497,
0.010275021195411682,
-0.031011732295155525,
-0.03908046707510948,
0.014284494332969189,
-0.027844473719596863,
0.009596350602805614,
-0.018793944269418716,
0.00438357051461935,
0.006841972470283508,
0.042752064764499664,
-0.037291768938302994,
-0.021008549258112907,
-0.02063312567770481,
-0.005487396847456694,
-0.010414466261863708,
0.018445968627929688,
0.0023090725298970938,
-0.04725097492337227,
0.0005828537978231907,
0.009524339810013771,
0.0326441191136837,
-0.017816096544265747,
-0.04309655725955963,
-0.015805965289473534,
0.014064145274460316,
-0.013854159973561764,
-0.01296834647655487,
0.03366662934422493,
0.05465610697865486,
-0.016269782558083534,
-0.02770029380917549,
-0.02065892517566681
] |
Optimum-NVIDIA - Unlock blazingly fast LLM inference in just 1 line of code | laikh-nvidia | December 5, 2023 | optimum-nvidia | llm, nvidia, llama, inference, optimum | https://huggingface.co/blog/optimum-nvidia | Performance Evaluation When evaluating the performance of an LLM, we consider two metrics: First Token Latency and Throughput. First Token Latency (also known as Time to First Token or prefill latency) measures how long you wait from the time you enter your prompt to the time you begin receiving your output, so this metric can tell you how responsive the model will feel. Optimum-NVIDIA delivers up to 3.3x faster First Token Latency compared to stock transformers: Figure 1. Time it takes to generate the first token (ms) Throughput, on the other hand, measures how fast the model can generate tokens and is particularly relevant when you want to batch generations together. While there are a few ways to calculate throughput, we adopted a standard method to divide the end-to-end latency by the total sequence length, including both input and output tokens summed over all batches. Optimum-NVIDIA delivers up to 28x better throughput compared to stock transformers: Figure 2. Throughput (token / second) Initial evaluations of the recently announced NVIDIA H200 Tensor Core GPU show up to an additional 2x boost in throughput for LLaMA models compared to an NVIDIA H100 Tensor Core GPU. As H200 GPUs become more readily available, we will share performance data for Optimum-NVIDIA running on them. | [
0.025707479566335678,
-0.00956280529499054,
0.023892080411314964,
-0.040447086095809937,
0.05440932512283325,
0.02561737596988678,
-0.017241844907402992,
0.00669405423104763,
0.021111097186803818,
-0.044398315250873566,
0.020419323816895485,
0.0638311505317688,
0.038378939032554626,
0.056461986154317856,
-0.02716072089970112,
0.025771869346499443,
-0.019832102581858635,
-0.04549117758870125,
0.021133486181497574,
0.00564772030338645,
0.061813633888959885,
-0.029730962589383125,
0.0542370043694973,
0.014328286051750183,
-0.01899554207921028,
-0.03813117370009422,
-0.034399714320898056,
0.018219271674752235,
-0.020758459344506264,
-0.00891690794378519,
-0.02493823692202568,
-0.037253811955451965,
0.0033337969798594713,
0.0323265865445137,
0.024331070482730865,
-0.06233995407819748,
-0.056695446372032166,
0.05638890340924263,
0.031655147671699524,
-0.012817359529435635,
0.017753256484866142,
-0.04153820499777794,
-0.0540035143494606,
-0.0052934917621314526,
-0.11126162856817245,
0.04329714551568031,
-0.043815936893224716,
-0.004407859407365322,
-0.0024190142285078764,
-0.03042864426970482,
-0.04237694665789604,
0.04540803283452988,
0.014952493831515312,
0.013681278564035892,
0.05403474345803261,
0.02947312220931053,
0.03510677069425583,
-0.026795433834195137,
-0.01926729455590248,
0.067018523812294,
0.055440112948417664,
-0.018464963883161545,
-0.01059398427605629,
-0.05091455951333046,
-0.0011245973873883486,
-0.03752574324607849,
0.02566942572593689,
0.04665074869990349,
-0.0320376493036747,
-0.09229319542646408,
-0.01435137540102005,
0.06882203370332718,
0.008190772496163845,
0.009723070077598095,
-0.01708287186920643,
-0.00751713989302516,
0.022830361500382423,
0.011866563931107521,
-0.024865634739398956,
0.03414289280772209,
-0.0450541153550148,
0.07001793384552002,
0.02984147146344185,
0.025587845593690872,
-0.014627117663621902,
0.08782035112380981,
0.03428363427519798,
-0.03679648041725159,
-0.05446051433682442,
0.039119523018598557,
-0.07710070163011551,
-0.07673776894807816,
0.0967290922999382,
0.013984978199005127,
0.04062240198254585,
-0.050586674362421036,
0.07521392405033112,
0.05932711437344551,
-0.08952809870243073,
-0.03439551591873169,
0.04152289405465126,
-0.031121915206313133,
-0.026151813566684723,
-0.028155291453003883,
-0.016294417902827263,
0.03501471132040024,
-0.0576038584113121,
-0.0852758064866066,
-0.04985903576016426,
-0.003108573378995061,
-0.00637643039226532,
0.005995131563395262,
0.08196255564689636,
0.06124071031808853,
-0.0643286481499672,
-0.03078322298824787,
-0.039504654705524445,
0.02934209071099758,
-0.0004715074610430747,
0.029102100059390068,
0.017715245485305786,
0.04165732488036156,
0.06896433234214783,
-0.06387975811958313,
-0.003697255626320839,
0.0754321813583374,
0.06387504935264587,
0.030175896361470222,
0.0037602537777274847,
0.011822771281003952,
0.02954387664794922,
-0.0618649385869503,
0.018075138330459595,
0.08156315982341766,
-0.04154131934046745,
-0.059597719460725784,
-0.012463727965950966,
-0.0795326754450798,
0.05123173072934151,
-0.055613212287425995,
-0.012851569801568985,
-0.030724210664629936,
-0.01724116876721382,
-0.05207226052880287,
0.06966783851385117,
-0.01565159484744072,
-0.04155610874295235,
0.006275730207562447,
0.01287416648119688,
0.0033697164617478848,
-0.12515121698379517,
0.05942864343523979,
-0.0600208044052124,
-0.019064849242568016,
0.038935400545597076,
0.05055408924818039,
0.06947897374629974,
0.004541352856904268,
-0.13223128020763397,
0.02434023842215538,
-0.06365374475717545,
0.009793506935238838,
-0.05561346560716629,
-0.011220471002161503,
0.03163133189082146,
-0.011604538187384605,
0.04137439280748367,
0.004769797902554274,
-0.021916473284363747,
-0.013970782980322838,
0.04177740588784218,
0.052122488617897034,
0.0394480898976326,
-0.08380196988582611,
-0.011976547539234161,
0.039069369435310364,
0.015267584472894669,
0.05090799555182457,
0.04408883675932884,
-0.014519934542477131,
-0.04601658880710602,
0.06741738319396973,
0.0087770139798522,
0.10006728768348694,
0.03968043625354767,
-0.11090483516454697,
-0.0008762514917179942,
-0.03886035829782486,
-0.023005913943052292,
-0.05024826526641846,
-0.016463546082377434,
0.020748823881149292,
0.04198103025555611,
-0.060516357421875,
-0.04215141758322716,
-0.06170335412025452,
-0.0023008252028375864,
0.05100368708372116,
0.027838312089443207,
0.02453368529677391,
0.060050904750823975,
0.0760570764541626,
0.04326181858778,
-0.04502550885081291,
-0.06094669923186302,
-0.069286048412323,
0.011154447682201862,
0.00818233285099268,
-0.016272708773612976,
0.020452581346035004,
0.036823052912950516,
-0.07813867926597595,
-0.058771081268787384,
-0.003268520114943385,
0.02261551097035408,
-0.00867914967238903,
0.025317808613181114,
0.009262352250516415,
0.011911315843462944,
-0.06034872308373451,
0.1476624310016632,
-0.036220960319042206,
0.05530167743563652,
-0.056166499853134155,
-0.07203389704227448,
0.014258498325943947,
0.009228636510670185,
0.01675928384065628,
-0.023196235299110413,
-0.05537321791052818,
0.009931444190442562,
-0.09095357358455658,
-0.030170977115631104,
0.0387001596391201,
-0.042216360569000244,
-0.07851005345582962,
-0.05673541873693466,
0.011037432588636875,
0.03501755744218826,
0.027123434469103813,
-0.058292921632528305,
0.031212281435728073,
-0.02868856117129326,
0.05626453086733818,
0.0006713898619636893,
0.0140511654317379,
0.009527329355478287,
-0.08251387625932693,
-0.02812880091369152,
-0.03307685628533363,
-0.0281999409198761,
0.0412386991083622,
0.07324237376451492,
-0.03632010146975517,
0.003040148876607418,
-0.021513810381293297,
-0.051598887890577316,
0.021166030317544937,
0.006813534535467625,
0.004751077387481928,
0.02414153702557087,
-0.009971977211534977,
-0.031161872670054436,
-0.016341589391231537,
0.01059050764888525,
-0.018364429473876953,
0.029940195381641388,
-0.046389929950237274,
-0.05418151617050171,
-0.013227555900812149,
0.06679803133010864,
0.042744845151901245,
0.019286703318357468,
0.00427252147346735,
-0.0368315763771534,
0.022035175934433937,
0.03685944527387619,
-0.018909715116024017,
0.0027713351882994175,
-0.04287157952785492,
0.03772289305925369,
-0.01894965022802353,
0.05918731540441513,
0.02234959416091442,
-0.026879196986556053,
-0.036939557641744614,
-0.03467849642038345,
-0.02836991287767887,
-0.08048893511295319,
0.0025256946682929993,
-0.006052069831639528,
-0.01483151875436306,
-0.015205932781100273,
0.0041007609106600285,
-0.021466271951794624,
-0.021962635219097137,
0.004847647622227669,
-0.030245110392570496,
-0.022115502506494522,
0.03959687426686287,
-0.03982194885611534,
-0.025223970413208008,
-0.02560783550143242,
0.009869218803942204,
0.0003546417865436524,
-0.013190886937081814,
-0.0036296742036938667,
0.0497729554772377,
-0.07206535339355469,
-0.009598910808563232,
-0.011252468451857567,
-0.008272196166217327,
0.010865689255297184,
-0.050457220524549484,
0.04238642379641533,
0.010894780978560448,
-0.015028547495603561,
0.03003459796309471,
0.032030098140239716,
-0.02039564959704876,
-0.02862279675900936,
-0.012105545960366726,
0.032141879200935364,
-0.014061185531318188,
0.030873987823724747,
-0.022657204419374466,
0.0032052479218691587,
0.0065654064528644085,
0.0073912316001951694,
-0.01913391426205635,
-0.03522404655814171,
-0.007578791584819555,
-0.040794387459754944,
0.024769360199570656,
-0.010064058005809784,
-0.026784883812069893,
0.011229852214455605,
0.005220715422183275,
-0.01886470802128315,
0.024137452244758606,
-0.0031820940785109997,
0.019370200112462044,
0.0017441768432036042,
-0.034522268921136856,
0.043441735208034515,
-0.028296934440732002,
0.03241094946861267,
0.047364186495542526,
0.03204648569226265,
-0.030457131564617157,
0.02029845491051674,
-0.0443434976041317,
-0.00002980799399665557,
0.014395052567124367,
0.023566005751490593,
-0.012065647169947624,
0.0009514745906926692,
-0.04831674322485924,
-0.04812737926840782,
0.033630624413490295,
-0.016398007050156593,
0.03678049519658089,
-0.048625607043504715,
0.027949338778853416,
0.001068450277671218,
-0.018479760736227036,
0.005233193747699261,
0.04147800803184509,
-0.07901965826749802,
-0.013423081487417221,
-0.009818578138947487,
0.010523210279643536,
-0.0652824118733406,
0.032322000712156296,
-0.008000205270946026,
0.0211882796138525,
0.0011122586438432336,
0.05640245974063873,
-0.011061389930546284,
0.05297897756099701,
0.0007807971560396254,
0.0017082153353840113,
-0.014318919740617275,
-0.03474855050444603,
0.01555974967777729,
0.0038172320928424597,
0.03241904079914093,
0.027950776740908623,
-0.008708836510777473,
-0.009870017878711224,
-0.026229262351989746,
-0.0273386649787426,
0.00939295906573534,
-0.0021846950985491276,
0.030459754168987274,
0.018162433058023453,
0.020464960485696793,
0.00239695911295712,
0.031915873289108276,
-0.03908969461917877,
-0.025867560878396034,
-0.01037047803401947,
-0.04496638476848602,
-0.07247315347194672,
0.022345712408423424,
0.0487438328564167,
-0.008467838168144226,
0.03743876516819,
0.045934077352285385,
0.014458541758358479,
0.018036620691418648,
0.004394156392663717,
-0.005899379961192608,
0.029964348301291466,
-0.011282575316727161,
-0.029320038855075836,
0.05626760050654411,
0.028766095638275146,
-0.029414203017950058,
-0.03821894899010658,
0.019793620333075523,
0.012561876326799393,
0.009688688442111015,
-0.027451064437627792,
-0.028307361528277397,
0.022373072803020477,
0.04026617854833603,
0.017181571573019028,
-0.03129925951361656,
-0.0027387989684939384,
-0.027558082714676857,
-0.039189621806144714,
0.11428019404411316,
-0.005356473848223686,
0.020044924691319466,
0.000446348829427734,
0.04408424720168114,
-0.021275125443935394,
-0.029267091304063797,
0.03624078258872032,
-0.00925320852547884,
0.027678819373250008,
-0.03994346037507057,
-0.01751876436173916,
-0.043817002326250076,
-0.029976382851600647,
0.0272290650755167,
-0.0046301898546516895,
0.029705332592129707,
0.0004897833568975329,
-0.014063166454434395,
0.004388381727039814,
0.035661522299051285,
0.013852872885763645,
0.037863411009311676,
-0.013092556037008762,
0.014957032166421413,
0.016052570194005966,
0.061801448464393616,
-0.026703650131821632,
-0.009661290794610977,
-0.04011262208223343,
0.03382203355431557,
0.01037292368710041,
0.023568779230117798,
-0.016315197572112083,
0.030278049409389496,
0.017720486968755722,
-0.001233511371538043,
0.016021165996789932,
-0.0329151377081871,
-0.024847233667969704,
0.01382065936923027,
-0.018880873918533325,
-0.03459940478205681,
0.014096099883317947,
-0.005089889280498028,
-0.00007625715807080269,
0.049017515033483505,
0.007074795197695494,
-0.028096163645386696,
-0.028005635365843773,
0.06415076553821564,
0.05492835119366646,
0.00035466309054754674,
-0.027083398774266243,
0.0541570745408535,
0.019381701946258545,
-0.05650167912244797,
-0.02180401049554348,
0.06805600225925446,
-0.0389421284198761,
0.030163314193487167,
0.057295698672533035,
0.04705528914928436,
0.041219260543584824,
0.007912679575383663,
0.0621325820684433,
0.03844569995999336,
-0.009732149541378021,
-0.00042363646207377315,
-0.06429824978113174,
-0.011825520545244217,
0.011136015877127647,
0.004159955773502588,
0.038738787174224854,
-0.04086427390575409,
-0.018603499978780746,
0.046716269105672836,
0.021727275103330612,
-0.011766383424401283,
0.0026586076710373163,
-0.0051955278031528,
-0.01079844031482935,
-0.0019221369875594974,
-0.049700431525707245,
0.008568868972361088,
-0.002019076142460108,
-0.025663157925009727,
-0.014670056290924549,
-0.020336614921689034,
0.008989404886960983,
-0.0020936201326549053,
-0.025039758533239365,
-0.02484637126326561,
0.04810654744505882,
0.04615094140172005,
0.03354370594024658,
0.021477526053786278,
-0.023559672757983208,
-0.03866111859679222,
-0.047151073813438416,
-0.0220563393086195,
-0.021933719515800476,
0.006790079176425934,
-0.02859029546380043,
-0.03199619799852371,
0.05594266578555107,
0.012610407546162605,
-0.06268655508756638,
-0.009006019681692123,
0.030409423634409904,
0.006015602499246597,
0.05413718521595001,
0.026194343343377113,
-0.021091246977448463,
0.016521349549293518,
0.007175121922045946,
-0.03157816082239151,
-0.026331428438425064,
-0.0327753908932209,
-0.020677533000707626,
-0.022199340164661407,
0.05416535213589668,
0.013344473205506802,
-0.022326689213514328,
-0.014076221734285355,
0.042619720101356506,
-0.005521141458302736,
-0.011256742291152477,
-0.015993189066648483,
0.036833398044109344,
-0.020237836986780167,
0.011119878850877285,
0.007538074627518654,
0.00497773103415966,
-0.010299833491444588,
0.010008523240685463,
0.016691310331225395,
-0.030624674633145332,
-0.0112760653719306,
0.02204793691635132,
-0.014886997640132904,
0.025864530354738235,
0.008524665609002113,
-0.04958504065871239,
0.04305904731154442,
-0.0015147888334468007,
-0.0288931243121624,
-0.03577994182705879,
0.06010696664452553,
0.0010011660633608699,
-0.00417542876675725,
-0.04340679571032524,
-0.008574808947741985,
0.014614381827414036,
0.03083975799381733,
0.01033608429133892,
0.003005713690072298,
0.0376838780939579,
0.04360439255833626,
0.03935977816581726,
0.0040528010576963425,
0.001904648612253368,
0.040507782250642776,
0.013347489759325981,
0.03848414123058319,
0.06596890091896057,
-0.01660422794520855,
0.017509857192635536,
-0.0022324163001030684,
-0.012951145879924297,
-0.06027323007583618,
-0.0074293711222708225,
0.006733539514243603,
0.006451183930039406,
-0.010848934762179852,
-0.02178875170648098,
0.03878070414066315,
0.01853090338408947,
-0.01476205512881279,
-0.008599446155130863,
0.017920905724167824,
-0.011996974237263203,
-0.00469754496589303,
0.03326781839132309,
0.028391925618052483,
-0.03462724760174751,
-0.02216927707195282,
0.01802154630422592,
0.029198190197348595,
-0.03000965714454651,
-0.02825985662639141,
-0.012609788216650486,
-0.02388417348265648,
0.009026273153722286,
0.01752312108874321,
-0.024376949295401573,
-0.01843988709151745,
0.047609105706214905,
0.0014101092237979174,
-0.04591190814971924,
0.004368328023701906,
0.02079763635993004,
0.005396501626819372,
-0.003153171157464385,
0.024493737146258354,
0.01295364461839199,
0.014159610494971275,
0.03092849999666214,
-0.003207787638530135,
-0.027316004037857056,
-0.015358136966824532,
0.026370421051979065,
-0.01794738881289959,
0.0016962738009169698,
-0.03891240432858467,
-0.025550389662384987,
0.001358050387352705,
0.03919683396816254,
0.017496883869171143,
0.06137377768754959,
0.030509378761053085,
0.03456757217645645,
0.05193979665637016,
-0.019457964226603508,
-0.025095488876104355,
0.0033322356175631285,
0.001177899306640029,
0.02745926007628441,
-0.03866184130311012,
-0.023295370861887932,
0.042440470308065414,
-0.012947472743690014,
0.0759374350309372,
0.023344356566667557,
-0.023571277037262917,
-0.056099094450473785,
0.0486600287258625,
0.016350414603948593,
0.06184907630085945,
-0.021968906745314598,
0.00799561571329832,
-0.024650046601891518,
-0.024618009105324745,
-0.007441312540322542,
-0.005556657910346985,
0.009382067248225212,
0.009333733469247818,
0.03092285431921482,
-0.023841584101319313,
0.047782182693481445,
0.0017498580273240805,
0.05186358094215393,
0.019915184006094933,
0.037672754377126694,
-0.028020307421684265,
-0.027899043634533882,
-0.0009533696575090289,
0.02345304936170578,
0.02962273545563221,
0.055296123027801514,
-0.005655478220432997,
0.05959662050008774,
-0.016018839552998543,
0.05459187552332878,
-0.01918885111808777,
-0.0029093294870108366,
-0.0069437953643500805,
0.029491927474737167,
-0.024014949798583984,
0.010251417756080627,
-0.01450966764241457,
0.04779015854001045,
-0.054258447140455246,
0.009698213078081608,
-0.04042322188615799,
0.022287318482995033,
-0.008899680338799953,
-0.057936280965805054,
0.05369865149259567,
0.026858394965529442,
0.03204745426774025,
0.0273835901170969,
-0.06714241951704025,
0.035539910197257996,
0.0020522517152130604,
0.021647263318300247,
0.022669875994324684,
-0.025421377271413803,
-0.005250442307442427,
-0.03964316099882126,
0.01851029507815838,
-0.011087247170507908,
-0.007688096258789301,
0.0550394281744957,
0.026637904345989227,
0.005673385225236416,
0.02673296071588993,
0.05288707837462425,
0.025408891960978508,
-0.016430756077170372,
0.036141104996204376,
0.03027253970503807,
0.019914021715521812,
0.0037494285497814417,
-0.004678715020418167,
-0.04444652795791626,
-0.032286543399095535,
0.039020076394081116,
0.011278222315013409,
-0.009551403112709522,
-0.012746785767376423,
0.008536634966731071,
-0.005703937262296677,
0.02946271002292633,
0.01729574240744114,
-0.01753147505223751,
0.0011614502873271704,
-0.0033199109602719545,
-0.0010057451436296105,
-0.031384676694869995,
-0.004345152992755175,
-0.05438078194856644,
0.013617548160254955,
0.011653076857328415,
0.029077820479869843,
-0.010809610597789288,
-0.03947532922029495,
-0.006025651004165411,
0.03647616133093834,
-0.002989670727401972,
-0.01790827140212059,
0.0042218780145049095,
0.020196735858917236,
0.0055673131719231606,
-0.017504191026091576,
-0.0037379865534603596
] |
Optimum-NVIDIA - Unlock blazingly fast LLM inference in just 1 line of code | laikh-nvidia | December 5, 2023 | optimum-nvidia | llm, nvidia, llama, inference, optimum | https://huggingface.co/blog/optimum-nvidia | Next steps Optimum-NVIDIA currently provides peak performance for the LLaMAForCausalLM architecture + task, so any LLaMA-based model, including fine-tuned versions, should work with Optimum-NVIDIA out of the box today. We are actively expanding support to include other text generation model architectures and tasks, all from within Hugging Face. We continue to push the boundaries of performance and plan to incorporate cutting-edge optimization techniques like In-Flight Batching to improve throughput when streaming prompts and INT4 quantization to run even bigger models on a single GPU. Give it a try: we are releasing the Optimum-NVIDIA repository with instructions on how to get started. Please share your feedback with us! 🤗 | [
0.013494962826371193,
-0.007592264097183943,
0.08519235253334045,
0.007043286692351103,
0.04818182811141014,
-0.02698095701634884,
-0.01969810016453266,
0.05266640707850456,
-0.00601371843367815,
-0.08167880773544312,
-0.02500103786587715,
0.07097216695547104,
-0.024029631167650223,
0.05772930011153221,
0.010550214909017086,
-0.04643126577138901,
0.02279839664697647,
0.030021224170923233,
-0.01630825735628605,
0.020130259916186333,
-0.012430529110133648,
-0.05872805044054985,
0.05429483950138092,
-0.011251403950154781,
-0.03832046687602997,
-0.0716833621263504,
0.013047957792878151,
0.012011315673589706,
0.021096043288707733,
0.004464030731469393,
-0.06313950568437576,
-0.029864126816391945,
-0.012767130509018898,
-0.01080300472676754,
0.03592110425233841,
0.020772244781255722,
-0.14261919260025024,
0.06632760167121887,
0.020598288625478745,
-0.026458915323019028,
-0.026349568739533424,
-0.011381600983440876,
-0.08527863770723343,
-0.02206907980144024,
-0.010820098221302032,
0.0053607444278895855,
-0.11415590345859528,
0.035201095044612885,
-0.03629991412162781,
-0.03914732113480568,
-0.040570203214883804,
0.11937491595745087,
-0.041908152401447296,
-0.03467759117484093,
0.03721523657441139,
0.01608520746231079,
0.04927852004766464,
-0.06594870984554291,
0.02067231759428978,
0.012780345045030117,
0.027763795107603073,
-0.046987224370241165,
0.000536345352884382,
-0.01647632010281086,
-0.023105112835764885,
-0.04310809448361397,
-0.05031348019838333,
-0.017543014138936996,
-0.06554284691810608,
-0.029947416856884956,
-0.02653690241277218,
0.015843596309423447,
0.014203467406332493,
-0.06313256174325943,
-0.03303082287311554,
-0.05516280606389046,
-0.01125079020857811,
0.029297376051545143,
-0.00612214207649231,
0.02508784644305706,
-0.03509797900915146,
0.04215788096189499,
0.04221583902835846,
0.03822104632854462,
0.004410038702189922,
0.0730004534125328,
-0.020970337092876434,
-0.04577762261033058,
-0.05258302763104439,
0.033322419971227646,
-0.07926251739263535,
-0.1004621610045433,
-0.03396961838006973,
0.016717810183763504,
0.08729705214500427,
-0.013287137262523174,
0.011557741090655327,
0.004677746444940567,
-0.06108717620372772,
-0.0481187105178833,
-0.0019433079287409782,
-0.0503329373896122,
-0.0236941147595644,
-0.09979703277349472,
-0.08096183091402054,
0.05498503893613815,
-0.04254314303398132,
-0.10169229656457901,
-0.05257156863808632,
0.006346500013023615,
0.016216941177845,
-0.01641332544386387,
0.08396343886852264,
0.03900519013404846,
-0.073380246758461,
0.01944824494421482,
0.019245291128754616,
0.011664562858641148,
-0.007235890720039606,
-0.009077124297618866,
0.088436059653759,
0.10257421433925629,
0.05543720722198486,
-0.024252012372016907,
0.019302163273096085,
0.07605211436748505,
0.04287270829081535,
-0.05600487068295479,
0.0129076037555933,
-0.05464155226945877,
0.04614229500293732,
-0.04692588746547699,
0.013759583234786987,
0.019558286294341087,
0.02095543034374714,
-0.07712110877037048,
-0.006587362848222256,
-0.07744112610816956,
0.001069711404852569,
-0.033084236085414886,
-0.004154165741056204,
0.004292299970984459,
0.025376003235578537,
0.01288877334445715,
0.056316934525966644,
-0.034596264362335205,
-0.06016377732157707,
0.08453528583049774,
-0.023971159011125565,
-0.042725808918476105,
-0.08426526188850403,
0.055050767958164215,
-0.08180870115756989,
-0.04851270467042923,
0.0430319607257843,
0.01783830113708973,
-0.012138539925217628,
0.011194809339940548,
-0.11930938810110092,
-0.04401399567723274,
-0.02332638017833233,
0.016075167804956436,
-0.032426849007606506,
-0.03896632790565491,
-0.024872450157999992,
-0.021727120503783226,
0.0063409823924303055,
0.04149456322193146,
-0.01721750572323799,
-0.04286324232816696,
0.028604557737708092,
0.047206487506628036,
0.045453306287527084,
-0.037045542150735855,
0.017297422513365746,
0.04418424516916275,
0.07302450388669968,
0.003083440475165844,
-0.025347551330924034,
-0.03317229077219963,
-0.07216072827577591,
0.04007837921380997,
-0.015066513791680336,
0.10854054987430573,
0.07465191930532455,
-0.11686529219150543,
-0.001864227349869907,
-0.02987629547715187,
-0.02332782745361328,
-0.06402859836816788,
-0.009276355616748333,
0.05885555222630501,
0.06612933427095413,
0.004409096669405699,
0.0061356364749372005,
-0.029967883601784706,
-0.031700775027275085,
0.06674844026565552,
0.06866612285375595,
0.04922497645020485,
0.07264690101146698,
0.05109948292374611,
0.06289515644311905,
-0.007447050418704748,
-0.06659603118896484,
0.03024633415043354,
-0.028958000242710114,
0.0027660466730594635,
-0.004259251523762941,
0.03407314047217369,
-0.010684739798307419,
-0.1313263475894928,
-0.0012167134555056691,
-0.002914285287261009,
0.020350510254502296,
-0.06417017430067062,
-0.04279765114188194,
0.01387922652065754,
-0.023469608277082443,
-0.0006370338960550725,
0.12173230946063995,
-0.014661325141787529,
0.007540874648839235,
-0.038832906633615494,
-0.019055495038628578,
0.05905698984861374,
0.07730266451835632,
0.038705337792634964,
0.016336051747202873,
-0.088593989610672,
0.043332550674676895,
-0.04734400659799576,
-0.04729672521352768,
0.057910818606615067,
0.03128395229578018,
-0.04568041115999222,
0.015858331695199013,
0.030847476795315742,
0.06679759919643402,
0.04191131889820099,
0.004774538334459066,
0.06516493111848831,
0.0007311376393772662,
0.0036505938041955233,
0.0011044088751077652,
-0.020151570439338684,
0.012449703179299831,
-0.014917094260454178,
-0.03346594050526619,
-0.05038687214255333,
-0.05434068664908409,
0.05390586704015732,
0.0012979095336049795,
0.0091446777805686,
0.006445982493460178,
0.017558103427290916,
-0.026754528284072876,
0.01233285665512085,
-0.006288192234933376,
0.013715422712266445,
-0.008243986405432224,
-0.031441956758499146,
0.012564691714942455,
-0.011263378895819187,
0.000575812766328454,
-0.03251200541853905,
0.029273103922605515,
-0.04479866474866867,
-0.03520140051841736,
-0.015835115686058998,
0.033393312245607376,
-0.03782384842634201,
0.02057461626827717,
-0.0024890503846108913,
0.03549152985215187,
0.026348639279603958,
0.013466985896229744,
-0.04985639080405235,
-0.015225011855363846,
-0.04010460153222084,
-0.005757045932114124,
-0.004431116860359907,
0.06842003762722015,
0.05726393312215805,
0.019646266475319862,
0.004369709640741348,
0.019559158012270927,
-0.049383100122213364,
-0.051173124462366104,
0.017562350258231163,
0.009687839075922966,
0.024928228929638863,
-0.010066326707601547,
-0.023849153891205788,
-0.0037906565703451633,
-0.0096018360927701,
0.05317922309041023,
0.01950564794242382,
-0.05174339935183525,
0.02791735902428627,
-0.017960896715521812,
-0.015637217089533806,
-0.007385722361505032,
-0.01244958397001028,
-0.011288724839687347,
0.01311009842902422,
0.02575700357556343,
0.03783155232667923,
-0.09605037420988083,
-0.018827946856617928,
-0.026875000447034836,
0.02079741843044758,
-0.0036099846474826336,
0.004071557894349098,
0.03555033355951309,
-0.010999735444784164,
0.00540998624637723,
0.01014307327568531,
-0.002982434118166566,
-0.0093363793566823,
0.011268969625234604,
0.011318983510136604,
-0.0047195833176374435,
-0.02272564359009266,
-0.0015341523103415966,
-0.03764297440648079,
0.03263901174068451,
0.017503229901194572,
-0.009701665490865707,
0.023182863369584084,
0.0010746805928647518,
0.022489044815301895,
-0.040972065180540085,
-0.010395046323537827,
0.046034105122089386,
-0.001891913590952754,
0.015748921781778336,
-0.0201362706720829,
-0.019162176176905632,
-0.00988167617470026,
0.019376354292035103,
0.0025994873140007257,
-0.03932477906346321,
0.0024421827401965857,
-0.01031874492764473,
0.002217196859419346,
0.02989201992750168,
0.02843925915658474,
0.018026035279035568,
-0.0030569981317967176,
0.002956600394099951,
-0.022885426878929138,
-0.02678730897605419,
0.023247653618454933,
0.004807874094694853,
0.04623756930232048,
0.06356781721115112,
0.003761212807148695,
-0.0326569490134716,
0.005652934312820435,
-0.009944107383489609,
0.05458804965019226,
-0.014042853377759457,
0.04832760989665985,
0.0036218741443008184,
0.00672887172549963,
0.020228564739227295,
-0.026261543855071068,
-0.052939582616090775,
0.012210034765303135,
-0.045568231493234634,
0.03445849567651749,
-0.013686861842870712,
0.05459725111722946,
0.011374669149518013,
-0.036803726106882095,
0.05405284836888313,
0.04425317049026489,
-0.001294821733608842,
0.03071022592484951,
0.0019221575930714607,
0.013066180981695652,
-0.014279735274612904,
0.00569927366450429,
0.0007469134288839996,
-0.007523630745708942,
0.04019282013177872,
0.0366380512714386,
0.022724943235516548,
-0.029643820598721504,
-0.013288013637065887,
-0.02006608620285988,
0.02332269214093685,
-0.003859125077724457,
0.01982288248836994,
-0.008009068667888641,
0.026170639321208,
0.03157935291528702,
0.023917846381664276,
-0.03483109176158905,
0.005350807216018438,
-0.024247732013463974,
-0.002049172529950738,
0.0003595006710384041,
-0.00014573617954738438,
0.029160302132368088,
0.0034415419213473797,
0.004840624053031206,
0.03132173791527748,
-0.02653539553284645,
0.021012281998991966,
-0.0013681628042832017,
-0.04371757060289383,
0.0533151812851429,
-0.007885751314461231,
-0.04303215071558952,
0.021041449159383774,
0.04090069234371185,
-0.02681187354028225,
-0.029376938939094543,
-0.0163177028298378,
-0.028258290141820908,
0.03228825703263283,
-0.007440763060003519,
-0.01687987521290779,
-0.0028330248314887285,
-0.015909135341644287,
0.021424109116196632,
-0.013090613298118114,
-0.0073947361670434475,
-0.007379923481494188,
-0.021208569407463074,
0.05981239303946495,
-0.020227860659360886,
0.03743844851851463,
0.029568372294306755,
0.02359784208238125,
-0.0243003498762846,
-0.016897112131118774,
-0.04592078924179077,
0.012652985751628876,
0.01265641674399376,
0.02758774533867836,
-0.030582208186388016,
-0.0392543263733387,
-0.005397970322519541,
-0.005043744575232267,
-0.020053301006555557,
-0.007131091319024563,
0.02691442146897316,
0.029853343963623047,
-0.006530501879751682,
0.034838318824768066,
0.011623303405940533,
0.00942927971482277,
0.039039891213178635,
0.013870424591004848,
0.03099442645907402,
0.022687792778015137,
-0.04277721047401428,
-0.01987089030444622,
0.0368451289832592,
0.033335134387016296,
0.02188251167535782,
-0.018306337296962738,
0.004520710092037916,
0.024170788004994392,
0.044381652027368546,
0.030386732891201973,
-0.0027307001873850822,
-0.023373188450932503,
0.03009398840367794,
0.018458547070622444,
-0.010784577578306198,
0.00963445845991373,
-0.026757147163152695,
-0.03252486139535904,
0.003744102781638503,
0.00888236053287983,
0.007026533130556345,
0.01539177168160677,
-0.0598079189658165,
0.03963438421487808,
0.06861671060323715,
0.05072568729519844,
-0.031028088182210922,
0.024462411180138588,
0.036363717168569565,
-0.02645161747932434,
-0.0217934288084507,
0.04646020755171776,
-0.022334024310112,
0.0286205243319273,
0.018897894769906998,
0.07130785286426544,
0.07152758538722992,
0.04331791400909424,
0.010106782428920269,
0.052240319550037384,
0.0130109628662467,
0.02023087628185749,
-0.05881429836153984,
-0.03371017426252365,
0.029872827231884003,
-0.01189751923084259,
0.024874456226825714,
0.018619291484355927,
0.007874473929405212,
0.029707472771406174,
0.0021781488321721554,
-0.05123607814311981,
-0.023434273898601532,
-0.010445751249790192,
0.010476455092430115,
0.01141468808054924,
-0.03320987895131111,
0.05200076103210449,
-0.0388798713684082,
-0.0037124776281416416,
0.005073402542620897,
0.0122526278719306,
-0.011595875956118107,
0.02939600870013237,
-0.03290599584579468,
-0.01061706431210041,
0.02185998111963272,
0.018015459179878235,
0.04728483408689499,
-0.01358050387352705,
-0.020843256264925003,
0.0032640325371176004,
-0.028750263154506683,
-0.02362912707030773,
0.006213092245161533,
0.004676708020269871,
-0.026040896773338318,
-0.003364789532497525,
0.00553110521286726,
0.014897678978741169,
-0.03973551094532013,
0.013916125521063805,
0.04049436002969742,
0.010140146128833294,
0.01169725600630045,
-0.021285321563482285,
-0.015157949179410934,
-0.008445008657872677,
0.00942273996770382,
-0.02085423842072487,
-0.08066070824861526,
-0.040272824466228485,
-0.002138639334589243,
-0.028758537024259567,
0.0677623525261879,
0.04244226962327957,
0.016482118517160416,
-0.02265404909849167,
0.008574767038226128,
0.03622353821992874,
-0.015223679132759571,
-0.022796006873250008,
0.014765805564820766,
0.012885048985481262,
0.03335335850715637,
0.0006022778688929975,
-0.03727602958679199,
0.01362969446927309,
-0.023063788190484047,
0.009964690543711185,
-0.04114112630486488,
0.011250394396483898,
0.0570719949901104,
-0.024685664102435112,
0.024555888026952744,
0.005260654725134373,
-0.01824703998863697,
0.013722485862672329,
0.0270198043435812,
-0.003762943437322974,
-0.007576278410851955,
0.038102272897958755,
0.0019220922840759158,
-0.015983562916517258,
-0.006987500935792923,
0.028341664001345634,
0.061898067593574524,
0.06561635434627533,
0.020080944523215294,
-0.00497074518352747,
0.046186305582523346,
0.01564060151576996,
-0.0035761715844273567,
-0.005598144605755806,
-0.005914977286010981,
0.052148137241601944,
0.05616384744644165,
0.03200048953294754,
0.037903543561697006,
-0.05481453239917755,
-0.015172003768384457,
-0.01158186700195074,
-0.01115548424422741,
-0.02667548693716526,
-0.027942251414060593,
0.05801426246762276,
0.008676661178469658,
0.014887181110680103,
-0.04565480723977089,
0.09196624159812927,
0.047688648104667664,
0.013497170060873032,
-0.0038141710683703423,
0.0214289091527462,
-0.03112204186618328,
-0.015375303104519844,
0.04740102216601372,
-0.02109992317855358,
-0.011662027798593044,
-0.015074621886014938,
0.04170776531100273,
0.01837541162967682,
0.06893766671419144,
-0.01062031090259552,
-0.00554095022380352,
-0.0052670445293188095,
-0.011855632066726685,
0.035220105201005936,
-0.01239872258156538,
0.009697920642793179,
0.01927952654659748,
0.0046379826962947845,
-0.024118054658174515,
-0.0025192699395120144,
0.021136615425348282,
-0.01066146045923233,
0.03171158954501152,
0.003957301843911409,
-0.019950181245803833,
0.0033389374148100615,
0.036604516208171844,
0.029149824753403664,
-0.004458370618522167,
0.006580037996172905,
0.009426755830645561,
0.013190779834985733,
0.012474450282752514,
-0.044874075800180435,
-0.026445109397172928,
-0.026909146457910538,
0.025686709210276604,
-0.017144599929451942,
0.026507772505283356,
0.025698479264974594,
-0.000871578638907522,
0.03963012993335724,
0.01820959523320198,
-0.020401854068040848,
-0.011039918288588524,
0.007877911441028118,
0.028992347419261932,
-0.06976784765720367,
-0.01054437831044197,
0.008044362999498844,
-0.00051054049981758,
0.0038682196754962206,
-0.033754561096429825,
0.00624073576182127,
-0.044713202863931656,
0.025221312418580055,
0.020103443413972855,
0.03977978602051735,
-0.02872893214225769,
-0.013837357982993126,
-0.005840037949383259,
-0.004587534349411726,
-0.014956852421164513,
-0.00877467729151249,
-0.014097148552536964,
0.004870721139013767,
0.010338355787098408,
-0.03856205940246582,
0.04282194375991821,
0.027297087013721466,
0.04330794885754585,
0.05519881471991539,
0.009309222921729088,
-0.01772119477391243,
-0.013289655558764935,
0.07388457655906677,
0.006021020468324423,
0.021203862503170967,
0.06552208960056305,
-0.01324484683573246,
-0.01397255714982748,
-0.035038143396377563,
0.024796675890684128,
-0.0028428782243281603,
0.036476295441389084,
-0.027036232873797417,
-0.026633698493242264,
-0.0034427582286298275,
-0.02341916225850582,
-0.0003561583871487528,
0.0180087648332119,
-0.021014567464590073,
-0.00029525795252993703,
-0.04770391061902046,
-0.006572445388883352,
0.0014107624301686883,
0.003856976982206106,
0.037344787269830704,
0.06267371028661728,
0.04781322926282883,
-0.035024482756853104,
-0.034836288541555405,
0.03175051137804985,
-0.0034387377090752125,
0.004475148394703865,
0.030900610610842705,
-0.048429425805807114,
-0.010778700932860374,
-0.05455184355378151,
0.00592445395886898,
0.02592521533370018,
-0.05545763671398163,
0.02315571717917919,
0.033851586282253265,
-0.014937309548258781,
-0.021300435066223145,
-0.0036409825552254915,
0.027780482545495033,
-0.01859591342508793,
0.04570954665541649,
-0.038318343460559845,
-0.0009633582085371017,
0.007620443589985371,
0.022605707868933678,
-0.05146574229001999,
-0.01628950610756874,
-0.003482935717329383,
-0.011927692219614983,
-0.0019173790933564305,
-0.013468087650835514,
-0.016851359978318214,
0.03290864825248718,
0.0016283368458971381,
0.03995272517204285,
-0.02504671737551689,
-0.006883548106998205,
0.004616829100996256,
0.02178586646914482,
0.011706591583788395,
0.008435290306806564,
-0.0663616731762886,
0.019885171204805374,
-0.000043729112803703174,
-0.0031426125206053257,
0.008045542985200882,
-0.05571215599775314,
-0.01348443515598774,
0.007276732940226793,
0.020446276292204857,
-0.012956817634403706,
0.06772514432668686,
0.030447421595454216,
-0.015617246739566326,
-0.02352070063352585,
-0.016985731199383736
] |
Optimum-NVIDIA - Unlock blazingly fast LLM inference in just 1 line of code | laikh-nvidia | December 5, 2023 | optimum-nvidia | llm, nvidia, llama, inference, optimum | https://huggingface.co/blog/optimum-nvidia | How to Run You can start running LLaMA with blazingly fast inference speeds in just 3 lines of code with a pipeline from Optimum-NVIDIA. If you already set up a pipeline from Hugging Face’s transformers library to run LLaMA, you just need to modify a single line of code to unlock peak performance! diff - from transformers.pipelines import pipeline + from optimum.nvidia.pipelines import pipeline # everything else is the same as in transformers! pipe = pipeline('text-generation', 'meta-llama/Llama-2-7b-chat-hf', use_fp8=True) pipe("Describe a real-world application of AI in sustainable energy.") You can also enable FP8 quantization with a single flag, which allows you to run a bigger model on a single GPU at faster speeds and without sacrificing accuracy. The flag shown in this example uses a predefined calibration strategy by default, though you can provide your own calibration dataset and customized tokenization to tailor the quantization to your use case. The pipeline interface is great for getting up and running quickly, but power users who want fine-grained control over setting sampling parameters can use the Model API. diff - from transformers import AutoModelForCausalLM + from optimum.nvidia import AutoModelForCausalLM from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-13b-chat-hf", padding_side="left") model = AutoModelForCausalLM.from_pretrained( "meta-llama/Llama-2-13b-chat-hf", + use_fp8=True, ) model_inputs = tokenizer( ["How is autonomous vehicle technology transforming the future of transportation and urban planning?"], return_tensors="pt" ).to("cuda") generated_ids, generated_length = model.generate( **model_inputs, top_k=40, top_p=0.7, repetition_penalty=10, ) tokenizer.batch_decode(generated_ids[0], skip_special_tokens=True) For more details, check out our documentation | [
-0.005719079170376062,
0.009029113687574863,
0.07272129505872726,
0.033973563462495804,
0.05900561809539795,
-0.007238874677568674,
0.036157649010419846,
0.042482223361730576,
-0.0004825140058528632,
-0.024562301114201546,
-0.051062267273664474,
0.10259561240673065,
-0.027169840410351753,
0.07931401580572128,
0.03666002303361893,
-0.06611035764217377,
0.04167221114039421,
-0.012270446866750717,
0.006003059446811676,
0.03145395591855049,
0.020550401881337166,
-0.016302356496453285,
0.06464765220880508,
0.0058860876597464085,
-0.056772805750370026,
-0.04839937016367912,
0.01501331478357315,
0.0551888570189476,
-0.0028197108767926693,
0.040737081319093704,
-0.11569894850254059,
-0.01605706661939621,
-0.01650211215019226,
0.024572698399424553,
0.06482700258493423,
-0.009330272674560547,
-0.1306450515985489,
0.0533277727663517,
0.04960315674543381,
-0.027442608028650284,
0.011398217640817165,
-0.008297402411699295,
-0.0667218491435051,
0.02164802886545658,
0.009069742634892464,
0.014863547869026661,
-0.13773764669895172,
0.0367322638630867,
-0.05420904979109764,
-0.0554170086979866,
-0.05097230151295662,
0.08883514255285263,
-0.04460888355970383,
-0.014144397340714931,
0.03864298760890961,
0.02452448010444641,
-0.0017041900428012013,
-0.06872377544641495,
-0.00513972993940115,
0.04776058718562126,
-0.004412864334881306,
-0.010452521964907646,
0.04537510126829147,
0.0014384593814611435,
0.02896573394536972,
0.00593201769515872,
-0.05253886803984642,
0.01903439126908779,
-0.07532072067260742,
-0.04449004679918289,
-0.02957037091255188,
-0.018785960972309113,
-0.05856529250741005,
-0.05211477726697922,
-0.005347284022718668,
-0.05155826732516289,
-0.02950325421988964,
0.008607150055468082,
0.02628389373421669,
0.05777527019381523,
-0.034314125776290894,
0.05252079665660858,
0.027497487142682076,
0.07841982692480087,
0.006989723537117243,
0.07620593905448914,
0.025241825729608536,
-0.010126092471182346,
-0.03461127728223801,
0.07001262158155441,
-0.07186292856931686,
-0.0588078498840332,
-0.05598761513829231,
-0.012064886279404163,
0.053781840950250626,
0.03823636472225189,
0.01246251817792654,
0.010736130177974701,
-0.03308954834938049,
-0.06616885960102081,
0.023045357316732407,
-0.07129257172346115,
-0.003973323851823807,
-0.039646536111831665,
-0.03386707603931427,
0.07318565249443054,
-0.04299787059426308,
-0.09113423526287079,
-0.0515686459839344,
-0.014990159310400486,
-0.0244224164634943,
-0.007645702920854092,
0.03628949820995331,
0.05236417055130005,
-0.09883638471364975,
0.021263204514980316,
0.03261726722121239,
0.016133517026901245,
-0.0018807777669280767,
-0.007838924415409565,
0.03642924129962921,
0.11176195740699768,
0.09096287190914154,
-0.03346257656812668,
0.0072602699510753155,
0.08691306412220001,
0.06429573893547058,
0.05417219549417496,
0.049654923379421234,
0.03367993235588074,
0.03241804987192154,
-0.05821846053004265,
0.006344710476696491,
0.014971657656133175,
0.031670235097408295,
-0.09304790198802948,
-0.013918116688728333,
-0.061912186443805695,
-0.013852890580892563,
-0.026257295161485672,
-0.011545268818736076,
0.010763555765151978,
0.06158653274178505,
-0.023443911224603653,
0.06439729779958725,
0.03635986149311066,
-0.1018870621919632,
0.022743890061974525,
-0.017143551260232925,
-0.023122115060687065,
-0.09857610613107681,
0.062887042760849,
-0.06690594553947449,
-0.015454568900167942,
0.04970172047615051,
0.013308092951774597,
-0.04398934915661812,
0.0059763784520328045,
-0.08883335441350937,
-0.03921613097190857,
0.0070810988545417786,
-0.01440342701971531,
-0.023302098736166954,
-0.03428250178694725,
-0.01264328695833683,
-0.023749535903334618,
-0.004195835907012224,
0.007652491331100464,
0.026413964107632637,
-0.028414608910679817,
0.027133842930197716,
-0.010481343604624271,
0.07865174859762192,
-0.06530974060297012,
0.023303359746932983,
0.07283200323581696,
0.045757535845041275,
0.03040158562362194,
-0.03547060489654541,
0.023587103933095932,
-0.047594103962183,
0.07796472311019897,
-0.05667337775230408,
0.13263475894927979,
0.07318152487277985,
-0.11617309600114822,
0.021458247676491737,
-0.019699398428201675,
-0.018000014126300812,
-0.04650590196251869,
0.03636828809976578,
0.038386162370443344,
0.0823197066783905,
-0.015692053362727165,
0.019596384838223457,
-0.030989501625299454,
-0.04031619429588318,
0.061362456530332565,
0.06935925036668777,
0.06870502233505249,
0.02758895605802536,
0.044090624898672104,
0.054713331162929535,
-0.032106176018714905,
-0.07914096117019653,
0.007091734558343887,
-0.02386319451034069,
-0.05119362846016884,
0.03519688919186592,
0.01862333156168461,
-0.02613171376287937,
-0.10913106054067612,
-0.00025341659784317017,
-0.02414330467581749,
0.025522826239466667,
-0.02656112052500248,
-0.013563360087573528,
0.018262645229697227,
0.012790901586413383,
0.0160039234906435,
0.1115066334605217,
-0.05884125083684921,
-0.022662777453660965,
-0.04534449428319931,
-0.005905698519200087,
-0.034610144793987274,
0.06755075603723526,
0.03512359410524368,
0.022761663421988487,
-0.09583543986082077,
-0.013659674674272537,
-0.03543064743280411,
-0.04432908073067665,
0.036126911640167236,
0.024400213733315468,
-0.053155940026044846,
0.01937146671116352,
0.015514420345425606,
0.03149411827325821,
0.0015825824812054634,
0.028803933411836624,
-0.0011762500507757068,
-0.005515844561159611,
0.027167506515979767,
-0.017914939671754837,
-0.006676543038338423,
0.056166719645261765,
0.005123746115714312,
-0.0087411655113101,
-0.015050078742206097,
-0.033777520060539246,
0.016626864671707153,
0.01350462343543768,
0.022100811824202538,
-0.005198369268327951,
0.013226055540144444,
-0.023373784497380257,
0.007927518337965012,
-0.041687678545713425,
0.03335189446806908,
0.0043092528358101845,
-0.014891484752297401,
-0.024723684415221214,
-0.005348840728402138,
-0.03833701089024544,
-0.03581960126757622,
0.0087836142629385,
0.020131204277276993,
-0.05610848218202591,
-0.008059320040047169,
0.02396807074546814,
-0.02213398367166519,
0.05551309883594513,
-0.0011279238387942314,
0.024614250287413597,
0.021697934716939926,
0.027698161080479622,
-0.027127863839268684,
-0.009423996321856976,
-0.01939297653734684,
0.007403769064694643,
0.009845172986388206,
0.01990557461977005,
0.055493276566267014,
0.00032872785232029855,
-0.015159416012465954,
-0.0015698292991146445,
-0.06537209451198578,
-0.04306042566895485,
0.026588624343276024,
0.029681656509637833,
0.03593824431300163,
0.03895975649356842,
-0.028762172907590866,
-0.011043747887015343,
-0.005576089024543762,
0.03766965866088867,
-0.0273166224360466,
-0.039062969386577606,
-0.007676675915718079,
-0.030264094471931458,
-0.01725838892161846,
-0.033578310161828995,
0.0017684056656435132,
-0.015195943415164948,
0.012169940397143364,
0.0008500257972627878,
0.003724419977515936,
-0.09503800421953201,
0.0034454239066690207,
-0.031548287719488144,
-0.00008077494567260146,
-0.00016707356553524733,
-0.030452348291873932,
0.06666480749845505,
-0.01806473918259144,
-0.01973709836602211,
0.007642686367034912,
-0.033047210425138474,
-0.0011090949410572648,
0.013701976276934147,
-0.018182609230279922,
-0.002710414584726095,
-0.01106036826968193,
-0.0120618911460042,
-0.022382451221346855,
0.02853621356189251,
0.013307840563356876,
-0.011083467863500118,
0.052135810256004333,
-0.018280262127518654,
0.042416371405124664,
-0.024490632116794586,
0.0022520541679114103,
0.0657997876405716,
0.019528506323695183,
0.029076602309942245,
-0.032208044081926346,
-0.011106694117188454,
-0.03179135546088219,
0.0035939801018685102,
0.018697252497076988,
-0.035251960158348083,
0.0048713344149291515,
0.01797296665608883,
0.014278776943683624,
0.006851401180028915,
0.012236080132424831,
0.0008594756363891065,
-0.009550821036100388,
0.03509940579533577,
-0.021988501772284508,
-0.023369094356894493,
-0.005712112411856651,
0.011375941336154938,
-0.011226781643927097,
0.0186684001237154,
-0.03474969416856766,
-0.02439821884036064,
0.006396902725100517,
0.02222558483481407,
0.027889158576726913,
0.00016088377742562443,
0.05138791352510452,
0.007369599770754576,
0.011844187043607235,
0.03842385858297348,
0.008582878857851028,
-0.06739881634712219,
0.036388956010341644,
-0.03167836368083954,
0.027922680601477623,
-0.015332677401602268,
0.03173121064901352,
0.04399605467915535,
-0.009831927716732025,
0.028178447857499123,
0.025869371369481087,
-0.02132670022547245,
0.03272668272256851,
0.02051793783903122,
0.007402993272989988,
-0.01857951283454895,
0.018952414393424988,
-0.051472604274749756,
-0.028019201010465622,
0.036550674587488174,
0.030563345178961754,
0.016596917062997818,
-0.05403832718729973,
-0.022589465603232384,
-0.017810435965657234,
0.0018620295450091362,
-0.001012519933283329,
0.0314069539308548,
-0.032466959208250046,
0.028743339702486992,
0.017230376601219177,
-0.01774345338344574,
-0.01741601899266243,
0.024846285581588745,
-0.014895210042595863,
-0.02512974850833416,
-0.012970546260476112,
0.025019988417625427,
0.01743001863360405,
0.0006949483067728579,
-0.0004540708032436669,
0.02793598733842373,
-0.01812025159597397,
0.0254012793302536,
0.004047252703458071,
-0.05644697695970535,
0.011977816000580788,
-0.001363085233606398,
-0.021036021411418915,
0.019074684008955956,
0.012201331555843353,
0.013528005219995975,
0.002358814934268594,
0.0173615962266922,
-0.00562917860224843,
0.05079291760921478,
0.03765789046883583,
-0.011022239923477173,
-0.018507981672883034,
-0.004236587323248386,
0.006004801485687494,
-0.0380416214466095,
0.013379044830799103,
-0.014137017540633678,
-0.05064810439944267,
0.068540558218956,
-0.004365019500255585,
0.04125914350152016,
0.0528603196144104,
0.010049723088741302,
-0.015011316165328026,
-0.03713817894458771,
-0.043457526713609695,
0.010139263235032558,
0.005728870164602995,
0.04573659971356392,
-0.029005540534853935,
-0.028118502348661423,
-0.02624363638460636,
0.00844680704176426,
0.0039054343942552805,
-0.028193116188049316,
0.014647068455815315,
0.012839014641940594,
-0.0035866459365934134,
0.012328137643635273,
0.015747155994176865,
-0.025589654222130775,
0.010120147839188576,
-0.031846582889556885,
0.02901335433125496,
0.01949235051870346,
-0.04837971180677414,
-0.006619131192564964,
0.010855085216462612,
0.02941817231476307,
-0.001573349116370082,
-0.007697179913520813,
-0.014269326813519001,
0.03718588873744011,
0.018244696781039238,
-0.011085566133260727,
-0.01877738907933235,
-0.008830315433442593,
0.0072752609848976135,
0.03056090511381626,
-0.019016260281205177,
0.004798673093318939,
-0.04080250859260559,
0.0022981204092502594,
-0.0013492361176759005,
0.0041522677056491375,
0.021045776084065437,
0.0071511054411530495,
-0.05101819336414337,
0.0032046858686953783,
0.05503099784255028,
0.04104381427168846,
-0.0198538675904274,
0.040315110236406326,
-0.004470255225896835,
-0.0315215066075325,
-0.029538029804825783,
0.029634831473231316,
-0.0011468753218650818,
-0.028118330985307693,
0.02894357033073902,
0.04599530249834061,
0.07268509268760681,
0.06401601433753967,
0.03255399689078331,
0.022751249372959137,
-0.019333885982632637,
0.022641552612185478,
-0.05064084753394127,
0.014242135919630527,
0.001923883450217545,
-0.013185324147343636,
0.015159540809690952,
-0.03085850365459919,
-0.034290678799152374,
0.019353749230504036,
0.019948534667491913,
-0.04341644421219826,
-0.0454755574464798,
0.008937571197748184,
0.010262611322104931,
0.0019337097182869911,
-0.05348238721489906,
0.03365243226289749,
-0.042328719049692154,
0.012789834290742874,
-0.005093531683087349,
0.0009128589299507439,
-0.016412463039159775,
0.016768094152212143,
-0.004423069767653942,
-0.015437877736985683,
0.05817728117108345,
0.01740955375134945,
0.025049487128853798,
-0.03968888521194458,
-0.032859355211257935,
-0.018588319420814514,
-0.03266305848956108,
-0.0005697438027709723,
0.0008899594540707767,
0.0022514034062623978,
-0.0022662265691906214,
0.013219633139669895,
0.02220849134027958,
0.003760214662179351,
-0.0010745797771960497,
0.010117333382368088,
0.07047814130783081,
0.009006883017718792,
0.009980547241866589,
-0.0406670980155468,
0.0019257536623626947,
0.02258177474141121,
-0.012791451998054981,
-0.02986900322139263,
-0.05648389831185341,
-0.03844895586371422,
-0.01329696737229824,
-0.023434842005372047,
0.050127413123846054,
0.04929028078913689,
0.013463079929351807,
-0.02377927117049694,
0.009679153561592102,
0.010455185547471046,
-0.03788166120648384,
0.025372058153152466,
-0.013307072222232819,
-0.0045163799077272415,
0.005241007078438997,
0.007443083915859461,
-0.009716365486383438,
0.0404360368847847,
-0.009359207935631275,
0.006639732979238033,
-0.06431791931390762,
-0.0030445551965385675,
0.036149341613054276,
0.001694263773970306,
0.05260474607348442,
-0.005083985161036253,
-0.03779172524809837,
0.021232789382338524,
0.03736337646842003,
-0.013340250588953495,
-0.003783079795539379,
-0.011756896041333675,
0.030083032324910164,
-0.015860555693507195,
-0.003883315483108163,
0.0073014176450669765,
0.07704658061265945,
0.02735685370862484,
0.023774106055498123,
0.027918444946408272,
0.05237284675240517,
0.024019816890358925,
0.005177807994186878,
-0.021080011501908302,
0.005040822550654411,
0.05778706073760986,
0.04675202816724777,
0.029974883422255516,
0.013557607308030128,
-0.03822490572929382,
-0.0028498643077909946,
-0.020960133522748947,
0.017263097688555717,
-0.023009033873677254,
0.0004307514172978699,
0.0659128874540329,
-0.00033159952727146447,
0.02833154983818531,
-0.055660929530858994,
0.07465998083353043,
0.04092392325401306,
0.0036862909328192472,
-0.0033760014921426773,
0.018964858725667,
-0.025943279266357422,
0.008763669058680534,
0.022786254063248634,
-0.0033128228969872,
-0.0067279445938766,
-0.027846837416291237,
0.04248105362057686,
0.006392681039869785,
0.10039211809635162,
-0.006901848129928112,
0.02461264096200466,
-0.010765081271529198,
-0.014666822738945484,
0.045469921082258224,
-0.012553699314594269,
0.03029424324631691,
0.02743881195783615,
-0.0038611264899373055,
-0.013585320673882961,
-0.008111962117254734,
-0.006385714281350374,
0.006235397420823574,
-0.015895720571279526,
-0.0006575912702828646,
-0.02157142199575901,
0.005138440988957882,
0.020793182775378227,
0.005718437023460865,
-0.041499581187963486,
0.01916656456887722,
-0.002239142544567585,
-0.0024754866026341915,
-0.03589766472578049,
-0.00811635423451662,
-0.026861436665058136,
0.0017049340531229973,
-0.013947305269539356,
-0.03422834724187851,
0.03964613005518913,
-0.020027857273817062,
-0.007981011644005775,
0.0405116006731987,
0.021710772067308426,
0.008216341026127338,
0.010283255018293858,
0.0029463330283761024,
0.025113921612501144,
-0.034952763468027115,
-0.042957182973623276,
0.04414961487054825,
-0.004853634163737297,
0.03652054816484451,
0.0010852422565221786,
-0.034439075738191605,
0.0037423372268676758,
0.027075618505477905,
0.054670512676239014,
0.050196316093206406,
-0.012466746382415295,
-0.037076860666275024,
0.016538765281438828,
-0.008423160761594772,
-0.04695446789264679,
0.019132431596517563,
-0.029076755046844482,
-0.001234236522577703,
0.018532907590270042,
0.009088163264095783,
0.02353186160326004,
0.02692629024386406,
0.01530405506491661,
0.04722708463668823,
-0.02811049483716488,
-0.04447517544031143,
-0.002740422496572137,
0.01741269789636135,
0.0092034712433815,
0.03881961107254028,
0.053444597870111465,
-0.04404020681977272,
-0.012430684641003609,
-0.019752129912376404,
-0.0030096799600869417,
-0.04035933315753937,
0.022384874522686005,
-0.015656383708119392,
-0.01866510696709156,
-0.02423020452260971,
-0.009122763760387897,
-0.030395178124308586,
0.017322134226560593,
-0.02483775094151497,
-0.03926786780357361,
-0.03884025663137436,
-0.00559642817825079,
0.00012831436470150948,
-0.029056234285235405,
0.049767814576625824,
0.05713701248168945,
0.04860343039035797,
-0.011857634410262108,
-0.03357326239347458,
0.0018579903990030289,
-0.024705849587917328,
0.03529864549636841,
0.03843085840344429,
-0.03282356634736061,
-0.011656492948532104,
-0.04847926273941994,
-0.014731667004525661,
0.02198074199259281,
-0.0719890221953392,
-0.009852109476923943,
-0.008487455546855927,
-0.04413847625255585,
-0.0319737084209919,
0.016776492819190025,
0.03981192037463188,
-0.003990465309470892,
0.05043818801641464,
-0.05079411342740059,
-0.038937319070100784,
0.005551650654524565,
0.01834540255367756,
-0.06984651833772659,
0.0025127085391432047,
0.024939460679888725,
0.007466679904609919,
-0.0007252168725244701,
0.018146894872188568,
0.015573307871818542,
0.014487812295556068,
-0.02331521548330784,
-0.003798574907705188,
0.011364475823938847,
-0.02483363077044487,
-0.03293297067284584,
-0.030483538284897804,
0.03176669403910637,
-0.019899100065231323,
-0.021310094743967056,
0.028730008751153946,
0.035672519356012344,
-0.007171825505793095,
-0.00211120443418622,
-0.007592994254082441,
0.0024855532683432102,
0.0011322437785565853,
-0.0027090178336948156,
-0.008809459395706654,
0.03135378658771515,
0.0918799564242363,
-0.025050532072782516,
-0.03520040214061737,
-0.00834784097969532
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | Training 1. Aspect candidate extraction In this work we assume that aspects, which are usually features of products and services, are mostly nouns or noun compounds (strings of consecutive nouns). We use spaCy to tokenize and extract nouns/noun compounds from the sentences in the (few-shot) training set. Since not all extracted nouns/noun compounds are aspects, we refer to them as aspect candidates. 2. Aspect/Non-aspect classification Now that we have aspect candidates, we need to train a model to be able to distinguish between nouns that are aspects and nouns that are non-aspects. For this purpose, we need training samples with aspect/no-aspect labels. This is done by considering aspects in the training set as True aspects, while other non-overlapping candidate aspects are considered non-aspects and therefore labeled as False: * Training sentence: "Waiters aren't friendly but the cream pasta is out of this world." * Tokenized: [Waiters, are, n't, friendly, but, the, cream, pasta, is, out, of, this, world, .] * Extracted aspect candidates: [Waiters, are, n't, friendly, but, the, cream, pasta, is, out, of, this, world, .] * Gold labels from training set, in BIO format: [B-ASP, O, O, O, O, O, B-ASP, I-ASP, O, O, O, O, O, .] * Generated aspect/non-aspect Labels: [Waiters, are, n't, friendly, but, the, cream, pasta, is, out, of, this, world, .] Now that we have all the aspect candidates labeled, how do we use it to train the candidate aspect classification model? In other words, how do we use SetFit, a sentence classification framework, to classify individual tokens? Well, this is the trick: each aspect candidate is concatenated with the entire training sentence to create a training instance using the following template: aspect_candidate:training_sentence Applying the template to the example above will generate 3 training instances – two with True labels representing aspect training instances, and one with False label representing non-aspect training instance: | Text | Label | |:------------------------------------------------------------------------------|:------| | Waiters:Waiters aren't friendly but the cream pasta is out of this world. | 1 | | cream pasta:Waiters aren't friendly but the cream pasta is out of this world. | 1 | | world:Waiters aren't friendly but the cream pasta is out of this world. | 0 | | ... | ... | After generating the training instances, we are ready to use the power of SetFit to train a few-shot domain-specific binary classifier to extract aspects from an input text review. This will be our first fine-tuned SetFit model. 3. Sentiment polarity classification Once the system extracts the aspects from the text, it needs to associate a sentiment polarity (e.g., positive, negative or neutral) to each aspect. For this purpose, we use a 2nd SetFit model and train it in a similar fashion to the aspect extraction model as illustrated in the following example: * Training sentence: "Waiters aren't friendly but the cream pasta is out of this world." * Tokenized: [Waiters, are, n't, friendly, but, the, cream, pasta, is, out, of, this, world, .] * Gold labels from training set: [NEG, O, O, O, O, O, POS, POS, O, O, O, O, O, .] | Text | Label | |:------------------------------------------------------------------------------|:------| | Waiters:Waiters aren't friendly but the cream pasta is out of this world. | NEG | | cream pasta:Waiters aren't friendly but the cream pasta is out of this world. | POS | | ... | ... | Note that as opposed to the aspect extraction model, we don't include non-aspects in this training set because the goal is to classify the sentiment polarity towards real aspects. | [
0.025104451924562454,
-0.03531789034605026,
-0.03294892609119415,
-0.025061678141355515,
0.07140602171421051,
0.06625121086835861,
0.019755540415644646,
0.025922246277332306,
-0.11895756423473358,
-0.007406618446111679,
-0.11421336978673935,
0.05539949983358383,
-0.009291193448007107,
0.06457001715898514,
0.014590924605727196,
0.04281391575932503,
0.04132875055074692,
0.009900587610900402,
-0.01982508786022663,
0.0009389378246851265,
-0.01855156384408474,
0.013784856535494328,
0.06753361225128174,
0.014569194056093693,
0.036107394844293594,
-0.005798079073429108,
0.02638826332986355,
0.03229190781712532,
-0.022935543209314346,
0.036890435963869095,
-0.09766615927219391,
0.042785730212926865,
-0.010764311999082565,
-0.03571189194917679,
-0.032229021191596985,
-0.0014476084616035223,
-0.06841325014829636,
0.03318100795149803,
0.013993959873914719,
-0.06037556752562523,
-0.045375291258096695,
0.003098112065345049,
-0.03457121178507805,
0.006345376837998629,
-0.04559236764907837,
-0.06342088431119919,
-0.18768210709095,
0.044887326657772064,
-0.035135384649038315,
-0.043794095516204834,
-0.05536092072725296,
0.062151454389095306,
-0.041984084993600845,
-0.03090478479862213,
0.02566445805132389,
-0.002886455040425062,
0.00823279656469822,
-0.049657415598630905,
0.020992325618863106,
-0.0006140528130345047,
-0.03243640065193176,
0.0010576477507129312,
-0.05287741869688034,
0.003224434796720743,
0.058652546256780624,
0.022411221638321877,
-0.040070753544569016,
0.05022920295596123,
-0.09781142324209213,
0.003923868760466576,
0.017551099881529808,
-0.026110056787729263,
-0.028423776850104332,
0.03049105405807495,
0.05927459895610809,
-0.03963487967848778,
0.02737124264240265,
0.012701747938990593,
-0.038100577890872955,
0.029854634776711464,
0.024174071848392487,
-0.004611888434737921,
0.038812074810266495,
0.0766848772764206,
0.07448862493038177,
0.044666651636362076,
-0.00461055152118206,
0.008650841191411018,
-0.06593015789985657,
0.05764269456267357,
0.045887917280197144,
-0.07126879692077637,
-0.0003000687574967742,
0.05164066329598427,
0.024497807025909424,
-0.03859574347734451,
0.033241190016269684,
0.028431471437215805,
-0.030435845255851746,
-0.05847799405455589,
-0.022360557690262794,
-0.03941381722688675,
-0.020457156002521515,
-0.025775562971830368,
-0.10934483259916306,
0.043900325894355774,
-0.0224598441272974,
-0.04425109922885895,
0.0020234445109963417,
0.07700421661138535,
0.02154715545475483,
0.016662608832120895,
0.03875087946653366,
0.10408145934343338,
-0.057600971311330795,
0.05103490874171257,
-0.008105030283331871,
0.023077424615621567,
0.010586818680167198,
-0.021971074864268303,
0.02376731112599373,
0.09416639804840088,
0.04856368154287338,
-0.013360941782593727,
-0.0010993173345923424,
0.019900601357221603,
0.06959407776594162,
0.012413266114890575,
0.03354240953922272,
4.4826145995102706e-7,
-0.02508913353085518,
-0.04375387355685234,
-0.0018961186287924647,
0.027952302247285843,
0.04906350001692772,
-0.016742341220378876,
-0.020354636013507843,
-0.06256702542304993,
0.07086563110351562,
-0.03384964540600777,
-0.03021102584898472,
0.05209106206893921,
-0.04002976045012474,
0.04903275892138481,
0.01843392290174961,
0.012574400752782822,
0.010536673478782177,
0.03350558131933212,
-0.008975806646049023,
-0.018560251221060753,
-0.07257338613271713,
-0.004215575288981199,
0.0003926365461666137,
-0.05689924582839012,
0.07232335209846497,
0.04247560724616051,
0.03369492292404175,
0.030507327988743782,
-0.02956949546933174,
-0.06865271180868149,
-0.022307762876152992,
-0.0035797394812107086,
-0.08774474263191223,
0.03283483535051346,
0.08253780752420425,
0.0029718610458076,
-0.02903621457517147,
-0.002398906974121928,
-0.02201545424759388,
0.03766850754618645,
0.0010758546413853765,
-0.04146399721503258,
-0.00127948890440166,
-0.038664061576128006,
-0.023328285664319992,
-0.045506808906793594,
-0.020308254286646843,
0.009247871115803719,
-0.037774182856082916,
-0.003066704608500004,
-0.00988783873617649,
0.0005920377443544567,
-0.01522789802402258,
-0.04061153903603554,
0.06486622989177704,
-0.03326426073908806,
0.059578023850917816,
-0.024584708735346794,
-0.014307579956948757,
0.04246308654546738,
-0.03468981012701988,
-0.02253478392958641,
0.05732603371143341,
-0.036383241415023804,
-0.011559151113033295,
-0.10478924959897995,
-0.08019023388624191,
0.12699103355407715,
-0.026351481676101685,
0.05454094335436821,
0.05348949506878853,
0.003015237394720316,
-0.011204132810235023,
0.028270253911614418,
-0.04120883718132973,
-0.0029521845281124115,
-0.014530657790601254,
-0.07060521095991135,
0.023900674656033516,
0.010249986313283443,
-0.0023067023139446974,
-0.03184938058257103,
0.09451832622289658,
-0.1323520690202713,
-0.022295648232102394,
0.0545506626367569,
0.017602818086743355,
0.025356551632285118,
0.062109000980854034,
-0.07172595709562302,
0.17651304602622986,
-0.09067624807357788,
-0.0414421372115612,
-0.0047011482529342175,
0.001311469473876059,
0.013507978990674019,
0.06509491056203842,
0.036324676126241684,
0.08608031272888184,
-0.06547972559928894,
0.025528952479362488,
-0.0031679244711995125,
0.02131410874426365,
-0.013503962196409702,
0.005114082712680101,
-0.010496851056814194,
0.06705198436975479,
0.012311582453548908,
0.09553860127925873,
-0.04042091965675354,
-0.02095952257514,
-0.01626690663397312,
-0.02453256957232952,
0.035649169236421585,
0.007085822056978941,
0.002694240305572748,
0.06967473775148392,
0.04862532019615173,
-0.021716317161917686,
-0.011525590904057026,
-0.08100789785385132,
0.05241182819008827,
0.0021607638336718082,
-0.0457095131278038,
-0.030078833922743797,
0.01439344510436058,
0.024939075112342834,
-0.042417529970407486,
-0.013188972137868404,
-0.0005224630585871637,
-0.009356026537716389,
-0.0018435525707900524,
-0.015531793236732483,
-0.0549502931535244,
0.00018341769464313984,
-0.034338172525167465,
0.015063396655023098,
0.010747889056801796,
0.02676788717508316,
0.02403292991220951,
-0.018359551206231117,
-0.056147173047065735,
-0.005797070451080799,
-0.006190004292875528,
0.040798887610435486,
-0.024046607315540314,
0.003690255805850029,
-0.02504926547408104,
0.0026258276775479317,
-0.0355491116642952,
-0.02251591347157955,
-0.026915347203612328,
0.042704153805971146,
0.022099647670984268,
0.01930929347872734,
-0.024604445323348045,
0.04394221678376198,
-0.03682449832558632,
-0.03644203022122383,
0.03259335458278656,
-0.001653019106015563,
0.05913034453988075,
0.0021143595222383738,
0.023329682648181915,
0.07456488907337189,
0.012160996906459332,
-0.0015779512468725443,
0.03897036612033844,
-0.021946093067526817,
0.018467416986823082,
0.014536553993821144,
0.03403225913643837,
-0.02372218482196331,
0.010437036864459515,
-0.04326760396361351,
0.016862239688634872,
0.01572960615158081,
0.025046633556485176,
-0.09939061850309372,
-0.052103281021118164,
0.022301414981484413,
0.006273598410189152,
0.0017370849382132292,
-0.023213954642415047,
0.0627620741724968,
-0.006166630890220404,
-0.032493747770786285,
0.014583112671971321,
-0.04580006003379822,
0.008557234890758991,
-0.01859874650835991,
0.0070205191150307655,
0.012380075640976429,
0.023300617933273315,
0.009165916591882706,
-0.03618363291025162,
0.007058675866574049,
0.05318571627140045,
-0.025261029601097107,
0.0622437410056591,
-0.0032900625374168158,
0.003005340928211808,
0.014604642055928707,
0.0019702438730746508,
-0.008958539925515652,
0.052384182810783386,
0.04112080857157707,
-0.07080544531345367,
0.003980971872806549,
0.01188150979578495,
-0.02762799710035324,
0.014048437587916851,
-0.02632811851799488,
-0.003283511847257614,
0.029302116483449936,
0.04236642271280289,
0.006521577015519142,
0.06617069989442825,
-0.01304134726524353,
0.02680717036128044,
0.017279844731092453,
-0.02843974158167839,
-0.019515058025717735,
-0.013568371534347534,
-0.0357508547604084,
-0.01862921752035618,
0.03177350386977196,
-0.05222497507929802,
-0.014026962220668793,
-0.002899619983509183,
0.035042475908994675,
0.051738470792770386,
-0.013304034247994423,
-0.0012803535209968686,
0.005041301250457764,
-0.015049314126372337,
0.018463676795363426,
-0.048792533576488495,
-0.006979059893637896,
0.02362147532403469,
0.008168602362275124,
-0.029231691733002663,
-0.02922694943845272,
0.08793975412845612,
0.02844597026705742,
0.011312238872051239,
-0.016217032447457314,
0.012680096551775932,
-0.0023350322153419256,
0.02896083891391754,
-0.02763179875910282,
0.010764296166598797,
-0.017877420410513878,
-0.010324637405574322,
-0.02130037546157837,
0.001971286255866289,
0.043905653059482574,
0.004548013675957918,
-0.05180678144097328,
-0.001765821478329599,
-0.026201555505394936,
-0.03575101122260094,
-0.00933837890625,
-0.004260987974703312,
0.02347874455153942,
0.012110406532883644,
-0.008832988329231739,
0.04311319813132286,
-0.008864780887961388,
-0.030811507254838943,
0.015502301044762135,
0.008753213100135326,
-0.022801266983151436,
0.03564760461449623,
0.002068453934043646,
-0.037318408489227295,
-0.0020438109058886766,
0.0054131788201630116,
-0.027897827327251434,
-0.041790008544921875,
0.022327903658151627,
-0.02714318409562111,
0.03522447496652603,
0.013549759984016418,
-0.017109530046582222,
-0.06445592641830444,
0.03223082795739174,
-0.04500564932823181,
0.00423226784914732,
-0.00857684575021267,
-0.02032485418021679,
-0.023984387516975403,
0.03142787888646126,
0.034557320177555084,
-0.04797639325261116,
0.029316473752260208,
-0.011905606836080551,
0.018092716112732887,
-0.032327402383089066,
0.006458412855863571,
-0.015253772959113121,
-0.0011786427348852158,
-0.0034228761214762926,
-0.003357656067237258,
0.027131162583827972,
0.017509013414382935,
0.00035667893826030195,
-0.004227300174534321,
-0.033730339258909225,
0.007642088923603296,
0.008399222046136856,
0.0032424863893538713,
0.020528128370642662,
0.02195104770362377,
-0.01650082692503929,
0.013718032278120518,
0.007690622471272945,
0.0009737802320159972,
0.00031293195206671953,
-0.020925501361489296,
0.0038623251020908356,
-0.004022581037133932,
0.013364966958761215,
-0.00842930655926466,
-0.050342537462711334,
-0.03273821622133255,
0.031046058982610703,
0.026709875091910362,
0.010962164029479027,
0.020389175042510033,
-0.05396468564867973,
-0.009895462542772293,
-0.00014339022163767368,
-0.04010878875851631,
-0.01680554822087288,
0.0334869809448719,
-0.0000552749443158973,
0.03592556342482567,
-0.01879742369055748,
-0.006142091937363148,
-0.029431957751512527,
0.00938942190259695,
0.03406045213341713,
-0.030952252447605133,
-0.028895040974020958,
-0.04674740880727768,
-0.00370925385504961,
0.003627633210271597,
0.01639387011528015,
-0.03548566624522209,
0.013881991617381573,
-0.012659372761845589,
-0.01823260821402073,
0.010893192142248154,
0.07386671006679535,
0.06190986558794975,
-0.0607098750770092,
-0.044006895273923874,
-0.017487572506070137,
-0.045681923627853394,
0.03705398365855217,
0.003048498649150133,
0.03509335592389107,
0.04731953144073486,
0.037582725286483765,
0.05174412205815315,
-0.008356323465704918,
0.06209130212664604,
0.003483827691525221,
-0.01644933968782425,
0.058609019964933395,
-0.008732159622013569,
0.02509160526096821,
0.0007621784461662173,
-0.05248880013823509,
0.02006041444838047,
-0.02266744337975979,
-0.05497157573699951,
0.010516433045268059,
0.016019590198993683,
-0.009873361326754093,
-0.015949614346027374,
0.000900633807759732,
0.03759918734431267,
-0.03375691547989845,
-0.04298620671033859,
-0.04350186139345169,
-0.04232462868094444,
-0.041080180555582047,
-0.05172450840473175,
-0.03298134356737137,
-0.003919268026947975,
-0.035760097205638885,
-0.014071395620703697,
-0.02879766933619976,
0.0060917288064956665,
-0.006341681815683842,
0.02203984186053276,
0.02846742607653141,
-0.006432272493839264,
-0.0020044895354658365,
0.046313561499118805,
0.042300138622522354,
-0.03673774003982544,
0.05848747119307518,
0.02818259596824646,
0.061933934688568115,
0.019025135785341263,
0.019136814400553703,
-0.010920684784650803,
0.013066479936242104,
0.012577204033732414,
0.014435084536671638,
-0.029108650982379913,
-0.005407286807894707,
0.015428598038852215,
0.05091041699051857,
0.002297189086675644,
-0.011864090338349342,
0.010748861357569695,
-0.02430979162454605,
-0.015425519086420536,
-0.000710066466126591,
0.03889385983347893,
0.03349125385284424,
0.01637786440551281,
-0.01530615333467722,
0.02328365109860897,
0.02177872695028782,
0.0005105155287310481,
-0.0017291103722527623,
-0.016526343300938606,
0.04113858565688133,
0.018503352999687195,
0.0231737419962883,
0.01719489134848118,
0.013195971958339214,
0.04409470036625862,
-0.0007365222554653883,
-0.025992901995778084,
-0.01300471555441618,
0.034844283014535904,
-0.06164654716849327,
-0.018598364666104317,
-0.022098539397120476,
-0.02974398247897625,
0.02568914368748665,
0.013300461694598198,
0.06502772122621536,
0.01610742136836052,
-0.009315546602010727,
0.01936359517276287,
0.007587027736008167,
-0.0031489282846450806,
-0.030446859076619148,
0.04081585630774498,
0.024841710925102234,
0.034195877611637115,
0.0030619909521192312,
0.018791930750012398,
0.01884850114583969,
-0.003929655998945236,
-0.0002751495921984315,
0.02575901336967945,
0.07296029478311539,
-0.02601945959031582,
0.010439960286021233,
0.006372002884745598,
0.0013677047099918127,
-0.019556334242224693,
-0.0750044584274292,
-0.040948379784822464,
-0.023248989135026932,
-0.009057478047907352,
0.035769447684288025,
-0.02594073675572872,
-0.004051997791975737,
-0.013530325144529343,
0.02010648511350155,
0.023193364962935448,
0.0035689675714820623,
-0.053391892462968826,
-0.0097654415294528,
0.023045344278216362,
0.00961114652454853,
0.016483502462506294,
0.042917605489492416,
0.0031510984990745783,
-0.00022676486696582288,
0.03823087736964226,
0.03800017386674881,
0.06225523352622986,
0.037232656031847,
0.04874419793486595,
0.05277517810463905,
-0.01348435040563345,
-0.005594711285084486,
0.019985128194093704,
-0.004593612160533667,
-0.030475864186882973,
0.00468072947114706,
-0.03607723489403725,
-0.018356435000896454,
0.0361616313457489,
-0.021629726514220238,
0.009722461923956871,
0.004668497014790773,
-0.019184710457921028,
-0.01581326313316822,
0.07998504489660263,
0.02811221219599247,
-0.05399036407470703,
-0.026159310713410378,
-0.03642351180315018,
0.02592812106013298,
0.00657459395006299,
0.008479265496134758,
-0.03208351880311966,
-0.01211805921047926,
-0.03120388463139534,
-0.017101304605603218,
-0.012602225877344608,
0.005161266308277845,
0.01869809813797474,
0.019191881641745567,
0.051402509212493896,
0.010638932697474957,
-0.0036637713201344013,
0.010001257993280888,
0.01639019139111042,
-0.013820710591971874,
-0.0022945052478462458,
-0.005967855453491211,
-0.007964344695210457,
-0.01124238595366478,
-0.04444185644388199,
0.024718284606933594,
-0.021553559228777885,
-0.012099017389118671,
0.01768992841243744,
0.06114963814616203,
0.004421527963131666,
-0.05639083310961723,
-0.022181009873747826,
-0.030037865042686462,
0.026644689962267876,
-0.0062207612209022045,
0.01477786898612976,
-0.01721152663230896,
-0.014470611698925495,
0.00852193869650364,
-0.011624555103480816,
-0.0327516607940197,
0.025011638179421425,
0.022996993735432625,
0.008640236221253872,
-0.05165940150618553,
0.027180621400475502,
-0.005203342530876398,
0.005298139527440071,
0.01119335275143385,
-0.0029019825160503387,
0.03556739166378975,
0.027584258466959,
-0.03993501886725426,
-0.009028087370097637,
0.007798120379447937,
-0.03453942388296127,
-0.030308306217193604,
-0.010617794468998909,
-0.019617263227701187,
0.014673365280032158,
-0.00858706422150135,
0.02187998965382576,
-0.04722053185105324,
0.02001853659749031,
0.012070082128047943,
0.02190914936363697,
-0.015885982662439346,
0.013065296225249767,
0.06694858521223068,
0.014485645107924938,
0.025458235293626785,
0.042829159647226334,
-0.0028078346513211727,
-0.019093649461865425,
-0.0030979870352894068,
0.043194472789764404,
0.05215489864349365,
0.002284617628902197,
0.005732742138206959,
-0.008517161011695862,
0.01777431182563305,
-0.01873527094721794,
-0.07558591663837433,
-0.022984597831964493,
-0.007515775039792061,
-0.006094985641539097,
-0.019960179924964905,
0.03662728890776634,
0.033979881554841995,
0.00021922498126514256,
-0.014571706764400005,
0.014419863000512123,
-0.009480172768235207,
0.018376177176833153,
0.02126854471862316,
-0.024372780695557594,
-0.014257366769015789,
-0.024973683059215546,
0.006217361427843571,
0.0016556078335270286,
0.02046806924045086,
0.030850913375616074,
-0.020586099475622177,
-0.00970202125608921,
0.0025231712497770786,
0.027049824595451355,
-0.023207126185297966,
-0.030717309564352036,
0.042337678372859955,
0.02030024491250515,
0.0056805238127708435,
-0.013751822523772717,
0.02075934410095215,
0.018210705369710922,
-0.013776865787804127,
-0.03783171623945236,
-0.03610280528664589,
-0.019092116504907608,
0.015382428653538227,
0.008248894475400448,
-0.016342008486390114,
0.04486364498734474,
0.07077055424451828,
-0.009399818256497383,
-0.02069038711488247,
0.027121033519506454
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | How does it work? SetFitABSA's three-stage training process SetFitABSA is comprised of three steps. The first step extracts aspect candidates from the text, the second one yields the aspects by classifying the aspect candidates as aspects or non-aspects, and the final step associates a sentiment polarity to each extracted aspect. Steps two and three are based on SetFit models. | [
0.035198409110307693,
-0.03307902440428734,
0.008557676337659359,
-0.023020578548312187,
0.10262824594974518,
0.07936272770166397,
0.019080258905887604,
0.040973082184791565,
-0.01984468474984169,
-0.002300593536347151,
-0.08530216664075851,
0.1238127276301384,
-0.03941257670521736,
0.03172188624739647,
0.0312388613820076,
-0.01617446355521679,
0.11624404042959213,
-0.007990681566298008,
-0.028232254087924957,
0.008000263944268227,
0.023711400106549263,
-0.023754790425300598,
0.04998030513525009,
0.015027434565126896,
0.08671653270721436,
0.053686365485191345,
0.0790424644947052,
0.03532906249165535,
0.020402509719133377,
0.05207762494683266,
-0.05876029282808304,
-0.03147588670253754,
-0.055797427892684937,
-0.029065687209367752,
-0.04858166724443436,
0.021435249596834183,
-0.07024035602807999,
0.07246722280979156,
0.027360012754797935,
-0.09648819267749786,
-0.0505686029791832,
-0.001115800580009818,
-0.02792075276374817,
-0.0010616818908602,
-0.015773940831422806,
-0.04245644062757492,
-0.1087137758731842,
-0.000488527410198003,
-0.03992963209748268,
-0.016458401456475258,
-0.027095884084701538,
0.10805899649858475,
0.039449356496334076,
0.005467235576361418,
0.04881827160716057,
-0.02293241024017334,
0.008307491429150105,
0.020766830071806908,
0.04282220080494881,
0.0682232677936554,
-0.08837445080280304,
0.018886897712945938,
-0.004474690183997154,
-0.017704084515571594,
0.022196628153324127,
0.038708824664354324,
-0.0215288233011961,
0.02208964340388775,
-0.037330012768507004,
-0.04806642234325409,
0.03170103579759598,
0.032469380646944046,
0.01433505304157734,
-0.002410213928669691,
0.018211284652352333,
-0.01992185227572918,
0.012478171847760677,
0.07509026676416397,
0.0000085272295109462,
0.0029132741037756205,
0.026786552742123604,
-0.0104848463088274,
-0.0587490014731884,
0.07401131093502045,
0.04999024048447609,
0.06898213177919388,
0.05303598567843437,
-0.0620143823325634,
-0.04004817456007004,
-0.008083976805210114,
0.02098318561911583,
-0.07200101017951965,
0.024849751964211464,
0.024530697613954544,
0.04479959234595299,
-0.03873055800795555,
0.05344557389616966,
0.02766396664083004,
0.018870005384087563,
-0.08807086199522018,
0.015105384401977062,
0.004881794098764658,
-0.06153826788067818,
-0.023710018023848534,
-0.00454208767041564,
0.06197685748338699,
-0.0059263501316308975,
-0.025272613391280174,
-0.03725628927350044,
0.0680181235074997,
-0.04113087058067322,
-0.03631847724318504,
0.04744979739189148,
0.09541907161474228,
-0.06008994206786156,
0.042236097157001495,
-0.03231126442551613,
-0.006530097685754299,
0.025501739233732224,
-0.020091261714696884,
-0.020696971565485,
0.11270088702440262,
0.06690423935651779,
-0.014253105968236923,
-0.015385927632451057,
0.016876552253961563,
0.004515891429036856,
0.006636090110987425,
0.010523770935833454,
0.055160894989967346,
-0.04253463074564934,
-0.023657700046896935,
0.021717479452490807,
0.0111643485724926,
-0.039211928844451904,
-0.03308870643377304,
0.004233755636960268,
-0.02802884764969349,
0.11490218341350555,
-0.008954588323831558,
0.02986428514122963,
0.023200487717986107,
-0.03612463176250458,
-0.061701416969299316,
-0.01432773843407631,
-0.015712283551692963,
0.00489233061671257,
0.06815677136182785,
-0.006136169191449881,
0.032381847500801086,
-0.05274858698248863,
-0.020297791808843613,
0.03320048376917839,
-0.11859991401433945,
0.05624300241470337,
0.041047532111406326,
0.028864869847893715,
-0.019223827868700027,
-0.04547284543514252,
0.0029305408243089914,
0.048207253217697144,
-0.0013142728712409735,
-0.07750313729047775,
-0.01086110807955265,
0.062185466289520264,
0.0032029629219323397,
0.049066171050071716,
0.07156967371702194,
-0.028640378266572952,
-0.03462394326925278,
0.01770145818591118,
-0.0138790188357234,
0.013358057476580143,
-0.07918360084295273,
0.01858053170144558,
-0.06376513838768005,
-0.01196290273219347,
-0.05091886967420578,
-0.07341217249631882,
-0.004189225845038891,
-0.0649307370185852,
0.07585106790065765,
-0.012165349908173084,
-0.005989336408674717,
0.01734379306435585,
0.010675213299691677,
0.057121384888887405,
-0.05863603204488754,
-0.04346220940351486,
0.02193635143339634,
-0.05300880968570709,
0.030659545212984085,
0.04131520166993141,
-0.07311569899320602,
0.0346641018986702,
-0.10657092183828354,
-0.03319457173347473,
0.06222008913755417,
-0.07526936382055283,
-0.0016800406156107783,
-0.014745952561497688,
-0.00619394239038229,
0.06488868594169617,
0.036356084048748016,
0.03590977564454079,
0.04655708745121956,
0.03717295825481415,
0.025005990639328957,
0.02497236244380474,
0.0729111060500145,
-0.05645066872239113,
-0.07216379046440125,
-0.018214143812656403,
-0.10165112465620041,
-0.0070453244261443615,
-0.003765690606087446,
0.022903889417648315,
-0.011071915738284588,
0.05317429453134537,
-0.07317835837602615,
0.08643445372581482,
0.032313182950019836,
-0.042707204818725586,
-0.0341939851641655,
-0.006995339412242174,
-0.013220766559243202,
0.05360199883580208,
0.05795596167445183,
0.10134299099445343,
-0.06672030687332153,
0.08715683221817017,
-0.029376378282904625,
0.01718525029718876,
-0.03681297227740288,
-0.01288263127207756,
-0.05659649148583412,
0.044220998883247375,
-0.03168768808245659,
0.09561354666948318,
-0.04653824120759964,
-0.007357924710959196,
0.05400159955024719,
0.004249369725584984,
-0.005845377687364817,
0.023263398557901382,
-0.010430381633341312,
0.03251299262046814,
0.027811788022518158,
-0.037461113184690475,
0.035445667803287506,
-0.08274896442890167,
0.010254201479256153,
0.019581332802772522,
-0.02770502306520939,
-0.05228179320693016,
-0.04541940987110138,
0.017038848251104355,
-0.05637258291244507,
-0.047146473079919815,
-0.027765534818172455,
-0.0036814978811889887,
-0.054537396878004074,
-0.045028042048215866,
-0.044602371752262115,
0.021745752543210983,
-0.010410597547888756,
0.03860657662153244,
-0.005872389301657677,
-0.008091679774224758,
0.01173292938619852,
-0.013650540262460709,
-0.04390512406826019,
0.008200160227715969,
-0.010705076158046722,
0.013361630029976368,
-0.012394419871270657,
0.0770934447646141,
-0.03492574766278267,
-0.023173999041318893,
-0.04468894377350807,
-0.06807812303304672,
-0.037495534867048264,
0.043152470141649246,
0.013292605988681316,
0.06032726168632507,
0.005021070595830679,
0.022627951577305794,
-0.07130789756774902,
-0.013992303982377052,
0.03009059652686119,
0.017774777486920357,
0.05418211966753006,
-0.00952548161149025,
0.012441967613995075,
0.09764688462018967,
0.008733505383133888,
0.027502059936523438,
0.02332434616982937,
0.02409207820892334,
0.03183857724070549,
-0.009649635292589664,
-0.006929537747055292,
-0.012859266251325607,
-0.04149928316473961,
-0.035560205578804016,
0.010302890092134476,
-0.0014762008795514703,
0.025471346452832222,
-0.08573596924543381,
0.00020085116557311267,
0.003536173840984702,
-0.07047098129987717,
0.010830778628587723,
-0.015005324967205524,
0.0391751267015934,
-0.020377561450004578,
-0.0278210137039423,
0.031100980937480927,
-0.031475234776735306,
0.012531353160738945,
0.03311265632510185,
0.002615929115563631,
-0.004277457948774099,
0.03670746088027954,
0.024823354557156563,
-0.02703608013689518,
0.01905795745551586,
0.020450696349143982,
-0.015005473047494888,
-0.003910135943442583,
-0.032489437609910965,
0.023325005546212196,
-0.005338899325579405,
-0.034179605543613434,
0.013786097057163715,
0.03413476049900055,
-0.009586885571479797,
-0.06065619736909866,
0.022691430523991585,
0.022482801228761673,
-0.07269123196601868,
0.019097398966550827,
0.005173478741198778,
-0.033064015209674835,
0.0553271621465683,
0.02716904692351818,
0.016775071620941162,
0.025566721335053444,
-0.002711884444579482,
0.018328292295336723,
-0.027052951976656914,
0.017557356506586075,
0.015583023428916931,
0.017911337316036224,
-0.012559563852846622,
-0.0052444967441260815,
0.01253303699195385,
-0.024633094668388367,
-0.015483833849430084,
-0.005933454260230064,
-0.04896347597241402,
0.06777995824813843,
-0.03823765739798546,
-0.027027728036046028,
0.01526517141610384,
-0.040416158735752106,
0.024890871718525887,
0.007031518965959549,
-0.028190860524773598,
0.0066029978916049,
-0.031426895409822464,
-0.03143663331866264,
0.015620825812220573,
0.034162040799856186,
0.027373436838388443,
-0.015400181524455547,
-0.0018244173843413591,
-0.012327779084444046,
-0.020196465775370598,
0.046800028532743454,
-0.031017107889056206,
0.003570473287254572,
-0.01217227429151535,
0.010720156133174896,
-0.04469110816717148,
-0.016378259286284447,
0.01801139861345291,
-0.014092189259827137,
-0.014275047928094864,
0.015832528471946716,
0.022699782624840736,
-0.025860190391540527,
0.05061841756105423,
0.007164289243519306,
-0.009479082189500332,
-0.029427848756313324,
-0.014165318571031094,
0.013259600847959518,
0.05155022442340851,
-0.01961079053580761,
-0.03216346353292465,
0.02362467348575592,
-0.02843930386006832,
0.04718006029725075,
0.01868572272360325,
0.013521154411137104,
0.03154270723462105,
-0.05195227637887001,
-0.034320954233407974,
-0.013939027674496174,
-0.005932206753641367,
-0.0017664984334260225,
0.03329081833362579,
0.0038083214312791824,
-0.014621654525399208,
-0.04856015741825104,
0.03285284340381622,
0.0028830235823988914,
-0.014428921043872833,
-0.014859280548989773,
0.0016484837979078293,
-0.008655504323542118,
-0.0026608514599502087,
0.0010948764393106103,
-0.028874818235635757,
-0.04313988983631134,
-0.007182120345532894,
0.023732706904411316,
-0.022990288212895393,
0.04817868396639824,
0.0005395644111558795,
-0.012197684496641159,
-0.021135572344064713,
-0.02903260849416256,
0.0020554226357489824,
-0.004323206376284361,
0.03361095115542412,
-0.011646847240626812,
-0.01546137873083353,
-0.025449413806200027,
0.012340273708105087,
0.015689557418227196,
-0.01926552690565586,
0.001692500663921237,
-0.03719055652618408,
0.03392323851585388,
0.03698550537228584,
0.007193973287940025,
-0.0005072325584478676,
-0.02313639596104622,
0.0025909633841365576,
-0.012765350751578808,
0.04116709530353546,
0.003142747562378645,
-0.01689711958169937,
0.012421351857483387,
0.01950887404382229,
0.0273172315210104,
-0.016391316428780556,
0.022897973656654358,
-0.046277906745672226,
-0.03962935507297516,
0.00006596304592676461,
-0.017430003732442856,
-0.017540469765663147,
-0.0030242649372667074,
-0.008413334377110004,
0.02892032079398632,
-0.01759486272931099,
0.0038050587754696608,
-0.051818568259477615,
-0.008547843433916569,
0.04189012199640274,
-0.03126862645149231,
-0.023725857958197594,
-0.06897510588169098,
-0.04380873590707779,
-0.020712217316031456,
-0.012676267884671688,
-0.029653513804078102,
0.014620105735957623,
-0.02593974396586418,
0.0036936732940375805,
0.01203814335167408,
0.051393795758485794,
-0.004238583147525787,
-0.030861428007483482,
-0.012635339982807636,
-0.057770051062107086,
-0.027462447062134743,
0.02350928634405136,
-0.017656592652201653,
0.0007565071573480964,
0.050050150603055954,
-0.0009031312074512243,
0.0004415311850607395,
0.007810597307980061,
0.0733078196644783,
0.016364695504307747,
-0.0006274503539316356,
0.021074118092656136,
-0.011719889007508755,
-0.053489670157432556,
0.005229150876402855,
-0.0074298749677836895,
-0.006655198056250811,
-0.0312521755695343,
-0.0052382140420377254,
-0.011336649768054485,
0.0676627904176712,
-0.032577186822891235,
0.002271716482937336,
0.018619777634739876,
0.017895806580781937,
-0.04013332724571228,
0.004972865339368582,
-0.004079326521605253,
-0.001673473627306521,
-0.033697549253702164,
-0.059852734208106995,
0.00571482116356492,
-0.00036728839040733874,
-0.03572269156575203,
-0.019982583820819855,
-0.027061134576797485,
-0.006381169427186251,
-0.007819152437150478,
0.027758754789829254,
0.03289167955517769,
-0.006182696670293808,
-0.029826238751411438,
0.033690452575683594,
0.031222207471728325,
-0.043718498200178146,
0.059812866151332855,
0.00013916294847149402,
0.06272146850824356,
0.0038542314432561398,
0.020805085077881813,
-0.00877308752387762,
0.018461085855960846,
0.007892646826803684,
0.0323493517935276,
-0.02785598672926426,
-0.05447721108794212,
-0.017408199608325958,
0.05209781974554062,
-0.0124719412997365,
-0.058909982442855835,
-0.0031306706368923187,
-0.0300940852612257,
-0.03307229280471802,
-0.008659514598548412,
0.060433030128479004,
0.03993414342403412,
0.008120199665427208,
0.005040634423494339,
-0.031774990260601044,
-0.04030315577983856,
-0.0069994330406188965,
-0.0006712288595736027,
0.026557527482509613,
-0.0029343608766794205,
0.06702116876840591,
0.05286698043346405,
0.014296222478151321,
0.029338333755731583,
0.03737829998135567,
-0.018630359321832657,
-0.03085247613489628,
0.009807134047150612,
0.0420956164598465,
-0.02945181168615818,
-0.03353593870997429,
-0.0132601298391819,
-0.025688009336590767,
0.012458676472306252,
-0.004823220893740654,
0.02374917082488537,
-0.010850734077394009,
0.03787895292043686,
0.01701754331588745,
-0.046011749655008316,
0.018149588257074356,
0.0037877927534282207,
0.02978185936808586,
0.05243272706866264,
0.002183308592066169,
0.008453813381493092,
0.008078440092504025,
0.07279743254184723,
0.034576620906591415,
0.0034790930803865194,
-0.0005179047002457082,
0.055021487176418304,
0.0030322105158120394,
-0.011815926060080528,
0.00930184405297041,
-0.024052301421761513,
-0.0014362288638949394,
-0.020766358822584152,
-0.0357605405151844,
-0.007562581915408373,
0.011321152560412884,
0.06461817026138306,
0.004527510143816471,
-0.020140038803219795,
0.015627050772309303,
0.027974365279078484,
0.005437440238893032,
0.02377592772245407,
0.03177936375141144,
-0.03319558501243591,
0.01433830801397562,
-0.009987828321754932,
0.007981836795806885,
-0.024926749989390373,
-0.027204474434256554,
-0.003731663804501295,
0.020098190754652023,
0.0270675215870142,
0.054771825671195984,
0.05433241277933121,
0.02260584384202957,
0.032964643090963364,
0.02610502578318119,
-0.012267396785318851,
0.009342791512608528,
-0.02151266299188137,
-0.013549651950597763,
0.04563448578119278,
-0.015563017688691616,
-0.0027013837825506926,
-0.0047957985661923885,
-0.0032183779403567314,
0.02480972185730934,
0.009191514924168587,
0.0028253612108528614,
-0.018568461760878563,
0.0391601137816906,
0.0028437457513064146,
-0.06143675744533539,
-0.0037657569628208876,
-0.04962316155433655,
-0.00211389921605587,
-0.0034768618643283844,
0.015058035962283611,
-0.01670258492231369,
-0.03720645233988762,
-0.022817092016339302,
0.004679911769926548,
0.012602915987372398,
0.024193447083234787,
0.037704989314079285,
-0.025263182818889618,
0.011935272254049778,
-0.03267098590731621,
-0.015557745471596718,
-0.025821436196565628,
-0.006794293876737356,
-0.027379008010029793,
0.006727619096636772,
0.0215509831905365,
-0.026048218831419945,
0.010488901287317276,
-0.04503266513347626,
-0.01878098025918007,
0.012092974968254566,
-0.04015533998608589,
-0.019585298374295235,
0.04222560301423073,
0.012713705189526081,
-0.005501014646142721,
-0.014614252373576164,
0.011430381797254086,
-0.014446111395955086,
0.056957829743623734,
-0.007255694828927517,
0.02677340619266033,
0.03499339893460274,
0.0017755319131538272,
0.016821984201669693,
0.023137055337429047,
0.02907107025384903,
-0.0021666514221578836,
-0.021518070250749588,
-0.06234808638691902,
0.007576012518256903,
-0.0019332962110638618,
-0.002957226475700736,
-0.001520823803730309,
0.04153968021273613,
0.012261250987648964,
0.0024293139576911926,
-0.03953053057193756,
-0.004695155657827854,
0.04336948320269585,
-0.053442005068063736,
-0.04165898635983467,
-0.02311818115413189,
-0.006043045315891504,
0.044462960213422775,
-0.004959017504006624,
0.04441377520561218,
-0.039808254688978195,
0.012182308360934258,
-0.02593924291431904,
0.02926512435078621,
-0.013394258916378021,
0.04281420260667801,
0.06506377458572388,
0.026294218376278877,
0.019249334931373596,
0.04161037877202034,
0.009202152490615845,
0.00503928866237402,
-0.008535436354577541,
0.01196202915161848,
0.05227234214544296,
0.0005746668903157115,
0.0016843120101839304,
-0.03710334375500679,
0.017858045175671577,
-0.02227640524506569,
-0.09075884521007538,
-0.01849786750972271,
-0.0006102643092162907,
0.007799656130373478,
-0.0011085032019764185,
0.0024415645748376846,
-0.004309893120080233,
0.026085250079631805,
0.018983958289027214,
0.003373171901330352,
0.020299144089221954,
0.03933966904878616,
-0.017279163002967834,
-0.011643944308161736,
0.031364552676677704,
-0.010447504930198193,
0.03265496343374252,
0.0019886752124875784,
0.018552104011178017,
0.04158328101038933,
-0.011132268235087395,
0.004929647780954838,
0.0049133580178022385,
0.017519857734441757,
0.007808150257915258,
-0.027832254767417908,
0.01163481641560793,
0.004143950995057821,
0.018141048029065132,
-0.04273271560668945,
0.00041449390118941665,
-0.00022773256932850927,
-0.013413701206445694,
0.0033492385409772396,
-0.02447679452598095,
-0.02175273187458515,
0.027305174618959427,
0.009034515358507633,
-0.019766950979828835,
-0.00884894747287035,
0.026578987017273903,
-0.0011859987862408161,
-0.026178739964962006,
-0.0022045765072107315
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | # SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit SetFitABSA is an efficient technique to detect the sentiment towards specific aspects within the text. Aspect-Based Sentiment Analysis (ABSA) is the task of detecting the sentiment towards specific aspects within the text. For example, in the sentence, "This phone has a great screen, but its battery is too small", the aspect terms are "screen" and "battery" and the sentiment polarities towards them are Positive and Negative, respectively. ABSA is widely used by organizations for extracting valuable insights by analyzing customer feedback towards aspects of products or services in various domains. However, labeling training data for ABSA is a tedious task because of the fine-grained nature (token level) of manually identifying aspects within the training samples. Intel Labs and Hugging Face are excited to introduce SetFitABSA, a framework for few-shot training of domain-specific ABSA models; SetFitABSA is competitive and even outperforms generative models such as Llama2 and T5 in few-shot scenarios. Compared to LLM based methods, SetFitABSA has two unique advantages: 🗣 No prompts needed: few-shot in-context learning with LLMs requires handcrafted prompts which make the results brittle, sensitive to phrasing and dependent on user expertise. SetFitABSA dispenses with prompts altogether by generating rich embeddings directly from a small number of labeled text examples. 🏎 Fast to train: SetFitABSA requires only a handful of labeled training samples; in addition, it uses a simple training data format, eliminating the need for specialized tagging tools. This makes the data labeling process fast and easy. In this blog post, we'll explain how SetFitABSA works and how to train your very own models using the SetFit library. Let's dive in! | [
0.028004413470625877,
-0.06175069883465767,
-0.005913496483117342,
0.021961569786071777,
0.047179222106933594,
0.023259667679667473,
0.07396494597196579,
0.02713407203555107,
0.00763780577108264,
0.013077949173748493,
-0.12476001679897308,
0.04254639893770218,
-0.022538775578141212,
-0.016278356313705444,
0.051968757063150406,
-0.009409341961145401,
0.08018409460783005,
0.003722787369042635,
-0.042334266006946564,
0.03825157508254051,
-0.019127467647194862,
-0.051032450050115585,
0.054996244609355927,
0.059044577181339264,
0.050186168402433395,
0.011996999382972717,
0.09175790101289749,
0.02877727895975113,
-0.06893902271986008,
0.05200040340423584,
-0.05753166228532791,
0.03345317021012306,
-0.03495768457651138,
0.0166275966912508,
-0.04803933948278427,
0.007938990369439125,
-0.07922468334436417,
0.09056422859430313,
0.0024337649811059237,
0.019584495574235916,
-0.068514384329319,
-0.03683624416589737,
0.04166443273425102,
-0.029155759140849113,
-0.013226553797721863,
-0.05230901017785072,
-0.09005079418420792,
0.041502080857753754,
-0.06731439381837845,
-0.03007134050130844,
0.0011345230741426349,
0.06987789273262024,
0.019883722066879272,
-0.008678783662617207,
0.0824718177318573,
0.015108427964150906,
0.005717877298593521,
-0.06851114332675934,
0.01861494779586792,
0.0231839120388031,
-0.036218054592609406,
0.010617440566420555,
-0.026392148807644844,
-0.006216567941009998,
-0.012584226205945015,
0.029763387516140938,
-0.003267809748649597,
0.036282069981098175,
-0.03460650146007538,
-0.012355501763522625,
0.004700315184891224,
0.062188487499952316,
-0.033146485686302185,
-0.0029715471900999546,
0.007810345850884914,
-0.011577407829463482,
0.007155792787671089,
-0.02040807344019413,
-0.0118152080103755,
-0.01106079202145338,
0.0491316132247448,
-0.04051366075873375,
-0.010610022582113743,
0.04035437852144241,
0.04944479465484619,
0.07375591993331909,
0.05545353516936302,
-0.06524977833032608,
-0.06965610384941101,
0.02617512457072735,
0.02314811386168003,
-0.10134756565093994,
0.058484092354774475,
0.011538565158843994,
0.058153074234724045,
-0.07389189302921295,
0.03529232367873192,
0.010486430488526821,
0.04380841553211212,
-0.02331073395907879,
0.04995975270867348,
-0.03225935995578766,
0.025225110352039337,
-0.06929882615804672,
-0.04551699757575989,
0.043988000601530075,
-0.0023596363607794046,
0.07096365839242935,
-0.017909599468111992,
0.07924884557723999,
-0.04375218227505684,
-0.04262742027640343,
0.018297966569662094,
0.05981968715786934,
-0.07367607951164246,
0.013464431278407574,
-0.04317275807261467,
0.0202272217720747,
0.008825944736599922,
-0.02694055251777172,
-0.05185951665043831,
0.10884269326925278,
0.0872025340795517,
-0.044963739812374115,
-0.018716702237725258,
0.05490369349718094,
-0.053718872368335724,
0.033610016107559204,
0.05057474970817566,
0.004152292385697365,
-0.053391244262456894,
0.003953626379370689,
0.06823276728391647,
-0.026401041075587273,
-0.01216000784188509,
-0.026707405224442482,
-0.02828434854745865,
-0.059795185923576355,
0.11097261309623718,
-0.0008661868050694466,
0.06875968724489212,
0.028572523966431618,
-0.04019841551780701,
-0.06137834116816521,
0.028921639546751976,
-0.00391231756657362,
-0.018785148859024048,
0.0067078121937811375,
0.026296477764844894,
-0.028441401198506355,
-0.08720868080854416,
-0.031724050641059875,
0.024877134710550308,
-0.05813794955611229,
0.0009051359375007451,
0.0493859127163887,
-0.053171560168266296,
-0.02978021651506424,
-0.05741254985332489,
-0.0014864667318761349,
0.00046729299356229603,
0.02232241816818714,
-0.026562241837382317,
-0.048692770302295685,
0.030709683895111084,
0.031208254396915436,
0.043250661343336105,
0.011366565711796284,
-0.016369037330150604,
-0.00560498284175992,
0.03252609819173813,
-0.010185956954956055,
0.022742459550499916,
-0.10834416002035141,
-0.020934034138917923,
0.010956616140902042,
-0.005816992372274399,
-0.04342580586671829,
-0.01163678988814354,
0.0003152385470457375,
-0.054687995463609695,
0.08545759320259094,
0.041104014962911606,
0.03571461886167526,
0.02556292712688446,
-0.030363410711288452,
0.09627479314804077,
-0.051305223256349564,
-0.06104167178273201,
-0.02623019553720951,
-0.061859291046857834,
0.08074627071619034,
0.08167202025651932,
-0.026855183765292168,
0.022368166595697403,
-0.08862797170877457,
-0.05277279019355774,
0.060550589114427567,
0.03379816189408302,
-0.04545291140675545,
0.03436478599905968,
0.0002693342976272106,
0.09298579394817352,
0.0218637827783823,
0.0039032469503581524,
0.025030557066202164,
0.02943393401801586,
0.024260615929961205,
-0.0020733920391649008,
0.09293096512556076,
-0.03817422315478325,
-0.07538209110498428,
0.0250543262809515,
-0.05892334505915642,
-0.01307930052280426,
-0.017475053668022156,
0.025171978399157524,
-0.0175042562186718,
0.07196173816919327,
-0.034559205174446106,
0.024391496554017067,
0.0017008983995765448,
-0.052953291684389114,
-0.005799688398838043,
-0.0027408951427787542,
0.012134606949985027,
0.07656353712081909,
0.005918317474424839,
0.09192543476819992,
-0.04792018234729767,
0.07074346393346786,
-0.024571523070335388,
0.032196708023548126,
-0.028717556968331337,
-0.02892330288887024,
-0.026682773604989052,
0.02438972145318985,
0.0007421489572152495,
0.10624855011701584,
-0.03850097209215164,
-0.036566704511642456,
0.06271517276763916,
-0.003582968842238188,
0.007014397997409105,
0.0459093414247036,
-0.040276601910591125,
0.0283544659614563,
0.007035932503640652,
-0.02801448665559292,
0.029288027435541153,
-0.11956417560577393,
0.023345932364463806,
0.0395534448325634,
-0.027740178629755974,
-0.033987075090408325,
-0.012781199999153614,
0.052791353315114975,
-0.019354194402694702,
-0.047971535474061966,
0.00984807126224041,
-0.012006408534944057,
-0.03483292832970619,
-0.002096014330163598,
-0.0403115376830101,
0.011187300086021423,
-0.023947611451148987,
0.06909807026386261,
-0.0012339968234300613,
0.004545373376458883,
0.025354435667395592,
0.014090735465288162,
-0.004358781035989523,
0.008602399379014969,
-0.0390327088534832,
-0.04131915792822838,
0.017292704433202744,
0.05617682263255119,
0.022275807335972786,
-0.027809472754597664,
-0.03683215752243996,
-0.03407265245914459,
-0.03014236129820347,
-0.0005778336781077087,
0.021639928221702576,
0.03835386782884598,
-0.017307111993432045,
0.026303213089704514,
-0.07070189714431763,
-0.02364608459174633,
0.02658560685813427,
0.042484983801841736,
0.035834312438964844,
-0.006762708071619272,
0.02658512443304062,
0.05944368615746498,
0.01129012182354927,
-0.005914885550737381,
0.016611358150839806,
0.0003829521010629833,
0.014893412590026855,
0.0018429290503263474,
-0.008819114416837692,
-0.07174299657344818,
-0.01313931867480278,
-0.0029351951088756323,
-0.006714009679853916,
0.019790662452578545,
0.022137409076094627,
-0.07131922245025635,
-0.04045277461409569,
-0.016063107177615166,
-0.08177787810564041,
-0.014904970303177834,
-0.02866099774837494,
0.07599380612373352,
-0.0008569331839680672,
-0.047793056815862656,
0.010834742337465286,
-0.003431882243603468,
0.02448319084942341,
0.029147490859031677,
-0.004058068618178368,
0.01399984024465084,
-0.008007594384253025,
0.01241613831371069,
-0.016132144257426262,
0.02514502964913845,
0.013680529780685902,
-0.012163123115897179,
-0.009926446713507175,
-0.01273344922810793,
0.027989445254206657,
0.021214904263615608,
-0.030648769810795784,
-0.019291790202260017,
0.013116652145981789,
0.009053166955709457,
-0.048966046422719955,
0.024166960269212723,
0.0030507794581353664,
-0.061249397695064545,
0.029719963669776917,
0.027345433831214905,
0.006472210865467787,
0.02796201966702938,
0.019301624968647957,
0.021378062665462494,
0.039352934807538986,
-0.009625702165067196,
0.01305010449141264,
-0.019544998183846474,
0.02172423154115677,
0.02791041135787964,
-0.005323443096131086,
0.010465819388628006,
-0.022224552929401398,
-0.0037515468429774046,
-0.04666094109416008,
-0.02354203350841999,
-0.01805371232330799,
-0.02691248618066311,
0.04924343153834343,
0.014283346943557262,
0.005986617878079414,
-0.005041371565312147,
-0.032655078917741776,
0.012700581923127174,
-0.005286491010338068,
-0.03802670165896416,
0.029321962967514992,
-0.04291437193751335,
-0.021035809069871902,
0.005440034903585911,
0.04729868471622467,
0.019092271104454994,
0.012755272909998894,
0.007805406115949154,
0.007683963980525732,
-0.03867373615503311,
0.053215913474559784,
0.004914463497698307,
0.007886751554906368,
0.0010623902780935168,
0.024764252826571465,
-0.022346705198287964,
0.007174158934503794,
-0.00018217861361335963,
-0.01177212130278349,
0.015318321995437145,
-0.01758546195924282,
-0.01593029499053955,
-0.01050460897386074,
0.043557435274124146,
-0.017949460074305534,
0.007139337714761496,
-0.060265883803367615,
0.004131328780204058,
0.07351192831993103,
0.05336594954133034,
0.01414666511118412,
-0.03689434379339218,
0.0035421373322606087,
-0.025783872231841087,
0.04224301502108574,
-0.009392691776156425,
-0.015819786116480827,
0.03372578322887421,
-0.021405166015028954,
0.008763291873037815,
-0.008879411034286022,
-0.029130948707461357,
0.007481356151401997,
0.020273275673389435,
-0.0011802595108747482,
-0.01965279132127762,
0.0004999582888558507,
0.0020384406670928,
0.015248470939695835,
-0.082276850938797,
-0.013196511194109917,
0.03196132183074951,
0.0073645091615617275,
0.035102732479572296,
0.01132153533399105,
-0.003390599275007844,
-0.02179296500980854,
-0.015616307966411114,
0.022685926407575607,
-0.036086101084947586,
0.027988919988274574,
-0.011754978448152542,
-0.031623002141714096,
0.021707607433199883,
-0.019188586622476578,
-0.04172135144472122,
0.016486145555973053,
0.021853627637028694,
-0.033182356506586075,
0.0016833802219480276,
-0.032365426421165466,
0.04305875301361084,
-0.0013997573405504227,
-0.01187688484787941,
-0.03580573573708534,
-0.0655195564031601,
-0.028785038739442825,
0.03657267987728119,
-0.00935361348092556,
0.00928390771150589,
-0.01577049121260643,
0.017447685822844505,
-0.04123071953654289,
0.06661543995141983,
0.004865175578743219,
0.007965192198753357,
0.008913329802453518,
0.019876863807439804,
0.03409336134791374,
0.027010830119252205,
0.008908083662390709,
-0.058853551745414734,
-0.032864686101675034,
0.011773474514484406,
-0.018650414422154427,
-0.026960797607898712,
-0.005049214698374271,
0.014779243618249893,
0.03303728252649307,
-0.010393803007900715,
-0.02853447198867798,
-0.04882445186376572,
0.021991880610585213,
-0.02254256047308445,
-0.031950246542692184,
-0.02130998484790325,
-0.029870448634028435,
-0.027789384126663208,
-0.03450646251440048,
-0.021132616326212883,
-0.009924872778356075,
0.02417176589369774,
-0.02128206193447113,
-0.027423907071352005,
0.025719014927744865,
0.036192864179611206,
-0.011305061168968678,
-0.024356108158826828,
0.03429197520017624,
-0.030219225212931633,
-0.08005556464195251,
0.0019480501068755984,
0.023405149579048157,
0.01471614371985197,
0.03876132518053055,
-0.02135937102138996,
0.021751949563622475,
0.03044745698571205,
0.01752726174890995,
-0.014704983681440353,
-0.006515761837363243,
0.008232464082539082,
0.006281871814280748,
0.004850209690630436,
-0.01607006974518299,
-0.048786554485559464,
-0.01935359463095665,
-0.027934255078434944,
0.007334887981414795,
-0.003100069472566247,
0.03812827914953232,
-0.014960790984332561,
0.0429573580622673,
0.0034080951008945704,
0.025846218690276146,
-0.05313878133893013,
-0.01615854725241661,
-0.049100685864686966,
-0.041769832372665405,
-0.04185915365815163,
-0.025470975786447525,
0.013653656467795372,
-0.004287253133952618,
0.005571865011006594,
-0.02995104156434536,
-0.055338211357593536,
0.004927404224872589,
0.053755983710289,
-0.004193557426333427,
-0.005383344832807779,
-0.010921829380095005,
-0.044230058789253235,
0.038118619471788406,
0.0006965166539885104,
-0.012870468199253082,
0.007244682405143976,
0.013787271454930305,
0.03680451214313507,
0.023086508736014366,
-0.0024815979413688183,
0.04748924821615219,
0.004586612340062857,
0.05188567191362381,
0.04694851487874985,
-0.023673970252275467,
-0.05738839507102966,
-0.023210640996694565,
0.027991296723484993,
0.0015827914467081428,
-0.05390319973230362,
0.018184736371040344,
-0.00010854462743736804,
-0.02612786926329136,
-0.033559516072273254,
0.025465482845902443,
-0.0003842798469122499,
-0.017906155437231064,
-0.012436885386705399,
-0.027062591165304184,
-0.02616250514984131,
0.0015013101510703564,
-0.008371416479349136,
-0.007448989897966385,
0.06761080771684647,
0.061949506402015686,
0.07407695800065994,
0.02789027988910675,
0.020138880237936974,
0.007647396996617317,
-0.04065132513642311,
-0.04903784394264221,
0.051905520260334015,
0.05249481648206711,
-0.03487550467252731,
-0.016539426520466805,
0.00867971871048212,
-0.06791094690561295,
-0.0033005496952682734,
-0.005124927498400211,
0.027622347697615623,
-0.03187890350818634,
0.03204672411084175,
0.016563408076763153,
-0.008990518748760223,
0.009453672915697098,
-0.023744752630591393,
0.0434119738638401,
0.017759783193469048,
-0.024149494245648384,
-0.00979082565754652,
-0.006376517470926046,
0.08961839973926544,
0.02629742957651615,
0.008020138368010521,
-0.027700912207365036,
0.07860931754112244,
0.00392059376463294,
0.014270657673478127,
0.01852601021528244,
-0.03510182723402977,
0.03821752965450287,
-0.04555606469511986,
-0.029163770377635956,
-0.000052810537454206496,
-0.004826902877539396,
0.07113268971443176,
0.007429636083543301,
-0.017076263204216957,
-0.01367886271327734,
0.027455857023596764,
-0.0031562186777591705,
-0.023759549483656883,
0.005204470828175545,
0.0006387493922375143,
0.010744853876531124,
-0.02312060445547104,
-0.02936321310698986,
-0.02853093110024929,
-0.046352192759513855,
-0.004649834241718054,
0.020818695425987244,
0.005040077026933432,
0.06188969686627388,
0.041965968906879425,
0.05460193380713463,
0.026304209604859352,
0.003957757260650396,
0.018863728269934654,
0.020656870678067207,
-0.012574880383908749,
0.029084429144859314,
0.029651854187250137,
-0.03640137240290642,
0.0033736126497387886,
-0.010717126540839672,
0.04185892269015312,
0.03940369933843613,
0.03442194312810898,
0.022692978382110596,
-0.005121560767292976,
0.010239345021545887,
0.05754657834768295,
-0.02953718788921833,
-0.030442949384450912,
-0.04637075215578079,
0.014667682349681854,
0.02630561590194702,
0.0008550064521841705,
-0.010729613713920116,
-0.015480189584195614,
-0.03246503695845604,
-0.01709791272878647,
0.03346214070916176,
0.013878151774406433,
-0.02018703706562519,
-0.0004542460083030164,
-0.0022875310387462378,
-0.016588391736149788,
0.0017331965500488877,
-0.04181549325585365,
0.005039028823375702,
-0.028111184015870094,
-0.03223723545670509,
0.003936329856514931,
-0.023623479530215263,
0.0000028644351459661266,
-0.0165546964854002,
-0.002562400884926319,
-0.0037665662821382284,
-0.05068540945649147,
-0.02944258041679859,
0.043632276356220245,
-0.02038738504052162,
0.010855470784008503,
0.031919214874506,
0.022381242364645004,
0.00579185551032424,
0.0136013338342309,
0.0018352442421019077,
-0.0028988951817154884,
-0.0009559428435750306,
-0.049151722341775894,
-0.03324029967188835,
-0.007224820088595152,
0.0273167435079813,
0.018540095537900925,
0.05308487266302109,
-0.04527518153190613,
0.00102770677767694,
-0.013588148169219494,
-0.00131613842677325,
0.010535953566432,
-0.0023682755418121815,
0.016156194731593132,
0.038534458726644516,
-0.026444662362337112,
-0.007768009323626757,
0.01844451203942299,
-0.025929473340511322,
-0.014469520188868046,
0.005330828949809074,
-0.017410125583410263,
0.03465034067630768,
-0.03833404555916786,
0.04369233176112175,
-0.07599752396345139,
0.040798675268888474,
-0.044590603560209274,
0.00802577193826437,
-0.027910195291042328,
0.032500721514225006,
0.029990188777446747,
0.0193015243858099,
0.0006813355139456689,
-0.0061845919117331505,
-0.0230694729834795,
0.005606126971542835,
-0.009574550203979015,
-0.02612919919192791,
0.054144468158483505,
0.0033652998972684145,
0.009695546701550484,
-0.04993337020277977,
0.033867787569761276,
-0.010768571868538857,
-0.05074959248304367,
-0.009337962605059147,
0.032039567828178406,
-0.007432505022734404,
0.0015451962826773524,
0.008114337921142578,
0.04485831409692764,
-0.016402410343289375,
0.005762958899140358,
0.033337339758872986,
0.013561949133872986,
0.07032915949821472,
-0.04057257995009422,
-0.02082008123397827,
0.04302120581269264,
-0.019122304394841194,
0.0559699609875679,
0.014331224374473095,
-0.007840774022042751,
0.07377727329730988,
-0.00484165083616972,
0.00021153941634111106,
0.005221848376095295,
0.02160756289958954,
0.009799398481845856,
0.001978157553821802,
0.031831271946430206,
-0.0010741607984527946,
0.017264069989323616,
-0.0037225245032459497,
-0.028014859184622765,
-0.0021677978802472353,
-0.03259368613362312,
0.0028581314254552126,
-0.025393525138497353,
0.02778015471994877,
0.04555544629693031,
-0.043105918914079666,
-0.01209553424268961,
0.01446363516151905,
0.023110246285796165,
0.02048856019973755,
-0.052371345460414886,
0.02053370140492916
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | Benchmarking SetFitABSA was benchmarked against the recent state-of-the-art work by AWS AI Labs and Salesforce AI Research that finetune T5 and GPT2 using prompts. To get a more complete picture, we also compare our model to the Llama-2-chat model using in-context learning. We use the popular Laptop14 and Restaurant14 ABSA datasets from the Semantic Evaluation Challenge 2014 (SemEval14). SetFitABSA is evaluated both on the intermediate task of aspect term extraction (SB1) and on the full ABSA task of aspect extraction along with their sentiment polarity predictions (SB1+SB2). | [
0.018390728160738945,
-0.08192260563373566,
0.0038782646879553795,
0.06513611227273941,
-0.008021769113838673,
0.025548983365297318,
0.07271873950958252,
0.058658331632614136,
-0.026680275797843933,
-0.05739941447973251,
-0.020235497504472733,
0.10370340198278427,
-0.005686464719474316,
-0.026454124599695206,
0.07950188219547272,
0.003438320942223072,
0.0416063517332077,
0.020690372213721275,
-0.009585351683199406,
-0.023075096309185028,
-0.0160775575786829,
0.006574202794581652,
0.05441347137093544,
0.0010087494738399982,
0.05320011079311371,
0.03291676938533783,
0.021121416240930557,
0.003650893224403262,
-0.0018204933730885386,
0.019848035648465157,
-0.026556789875030518,
0.0018414228688925505,
-0.027306150645017624,
0.02783936634659767,
-0.049647390842437744,
0.025494961068034172,
-0.0811578631401062,
0.08589179813861847,
-0.029449479654431343,
-0.038017988204956055,
-0.052036102861166,
-0.029216192662715912,
0.030196208506822586,
-0.029824404045939445,
-0.011177892796695232,
-0.009350270964205265,
-0.030390692874789238,
-0.0062689026817679405,
-0.013762776739895344,
0.013111642561852932,
-0.07457032054662704,
0.0507076121866703,
0.0623558834195137,
-0.04198136180639267,
0.0927969440817833,
0.007632920518517494,
-0.039539869874715805,
-0.061057690531015396,
0.00439849216490984,
0.017767202109098434,
-0.018092835322022438,
-0.009174919687211514,
0.040009818971157074,
-0.07799487560987473,
-0.025977469980716705,
-0.03630593419075012,
-0.0031477883458137512,
0.055207304656505585,
-0.05504969507455826,
-0.01175706461071968,
0.030055532231926918,
0.0345354788005352,
-0.00393974594771862,
-0.029673341661691666,
-0.016144966706633568,
-0.014728215523064137,
-0.031813085079193115,
0.07765909284353256,
0.06956818699836731,
0.0010439694160595536,
-0.04230890050530434,
0.015802623704075813,
-0.007010063622146845,
-0.016167834401130676,
0.015469184145331383,
0.06877301633358002,
0.04955030232667923,
-0.13125504553318024,
-0.039085905998945236,
-0.0336284339427948,
0.004209242761135101,
-0.025751348584890366,
0.018478691577911377,
-0.00779811991378665,
0.04799953103065491,
-0.06385515630245209,
0.013286314904689789,
-0.0007722695590928197,
0.025556202977895737,
-0.07461769133806229,
-0.03478868305683136,
-0.023783061653375626,
-0.020202849060297012,
-0.049489159137010574,
0.013743565417826176,
0.08811894804239273,
-0.07674271613359451,
-0.05914229154586792,
0.026702038943767548,
0.06313014775514603,
-0.006263944786041975,
0.0014786990359425545,
0.03452374413609505,
0.11804625391960144,
-0.1021299734711647,
0.010602139867842197,
-0.0010567973367869854,
-0.023776879534125328,
-0.004598639439791441,
0.02687101624906063,
0.02493753470480442,
0.07695113122463226,
0.05921084061264992,
-0.030187463387846947,
0.020237484946846962,
0.03183954581618309,
-0.013730978593230247,
0.007394878193736076,
-0.02715134061872959,
0.06215644255280495,
0.0037843137979507446,
-0.07434068620204926,
0.06332359462976456,
-0.022376127541065216,
-0.04020461440086365,
-0.051573462784290314,
-0.014632419683039188,
-0.0525297150015831,
0.06446723639965057,
0.02651243656873703,
0.013781066983938217,
0.003206563415005803,
-0.02919461578130722,
-0.0711381658911705,
0.04230891168117523,
0.012721612118184566,
0.003613673150539398,
0.00007227673631859943,
0.03495184704661369,
-0.07074807584285736,
-0.08315413445234299,
0.013197671622037888,
0.0023852286394685507,
-0.08781837671995163,
0.0624714158475399,
0.056801844388246536,
-0.013721417635679245,
-0.019290555268526077,
-0.07867290824651718,
0.015442096628248692,
0.042686477303504944,
0.001503355917520821,
-0.03306974470615387,
-0.0552205853164196,
0.056300703436136246,
0.04676862061023712,
0.017801014706492424,
-0.0142703577876091,
-0.056490469723939896,
0.02102169767022133,
0.03932122886180878,
0.01622552052140236,
0.060501255095005035,
-0.07540801912546158,
-0.033302560448646545,
0.021020956337451935,
0.010914516635239124,
-0.03488795831799507,
0.030740484595298767,
-0.014251912012696266,
0.016497211530804634,
0.09760506451129913,
0.021234745159745216,
0.03515315800905228,
0.09013630449771881,
-0.03133160248398781,
0.02620168961584568,
-0.05144380033016205,
-0.03164047747850418,
-0.020248817279934883,
-0.06694068759679794,
0.005604273173958063,
0.10116450488567352,
-0.00916085485368967,
0.023518409579992294,
-0.07089085876941681,
0.014077052474021912,
0.040002837777137756,
0.04562179371714592,
-0.014921125024557114,
0.01199059747159481,
0.05209627002477646,
0.05719517916440964,
0.019194073975086212,
-0.014326906763017178,
0.026052046567201614,
-0.045166026800870895,
0.028666142374277115,
-0.010714316740632057,
0.08257084339857101,
-0.06333836168050766,
-0.11336202174425125,
-0.038445282727479935,
-0.03709783777594566,
-0.0578467957675457,
-0.0408095084130764,
-0.010701638646423817,
-0.009083538316190243,
0.04646100476384163,
-0.031253136694431305,
0.07196065783500671,
0.015837552025914192,
-0.008904336020350456,
-0.05397705361247063,
-0.04170464724302292,
0.03273214399814606,
0.08902941644191742,
0.0426032617688179,
0.11259372532367706,
-0.03910553827881813,
0.05269807204604149,
-0.027910202741622925,
0.02282797358930111,
0.018062207847833633,
-0.06188002973794937,
-0.01979098841547966,
0.06322002410888672,
-0.030193861573934555,
0.0709795206785202,
0.00031608089921064675,
-0.0183989517390728,
0.03192161023616791,
0.03688076138496399,
0.05536475405097008,
0.008035494014620781,
-0.10867242515087128,
-0.03332320600748062,
-0.01832934468984604,
-0.05822496488690376,
0.062196165323257446,
-0.1211126521229744,
-0.016685640439391136,
0.031404126435518265,
-0.001356200547888875,
-0.016573337838053703,
-0.02852676995098591,
-0.014084450900554657,
-0.03978527709841728,
-0.06372123211622238,
0.0009644016390666366,
-0.010150866582989693,
-0.012158955447375774,
-0.015973301604390144,
-0.007284143473953009,
0.030935965478420258,
-0.036384016275405884,
0.03195074945688248,
0.010197094641625881,
-0.04051268473267555,
0.0035833092406392097,
-0.02924175187945366,
-0.05092238262295723,
0.0010163446422666311,
-0.007206285372376442,
-0.013846972025930882,
-0.010734634473919868,
0.053473636507987976,
-0.0609673336148262,
-0.011640360578894615,
-0.033364348113536835,
-0.03302022069692612,
-0.036028679460287094,
0.020423900336027145,
0.02256905660033226,
-0.01578444242477417,
0.0009821460116654634,
0.04799296334385872,
-0.02710491418838501,
-0.030769744887948036,
0.018129289150238037,
0.05841897800564766,
0.005603158380836248,
-0.022605279460549355,
0.02108665555715561,
0.026469949632883072,
-0.010080664418637753,
0.012076951563358307,
0.016992762684822083,
-0.0035390034317970276,
-0.006858895532786846,
-0.029785607010126114,
0.009806896559894085,
-0.025617556646466255,
0.002289246767759323,
0.011794057674705982,
-0.02447250671684742,
-0.017459258437156677,
0.011995923705399036,
-0.06908302009105682,
0.03534141927957535,
-0.025249840691685677,
-0.04183107241988182,
-0.028242027387022972,
-0.0072103627026081085,
0.07796435803174973,
-0.00029844100936315954,
-0.033274780958890915,
0.04400930553674698,
-0.02252400480210781,
0.025974515825510025,
-0.0006070914678275585,
0.024124201387166977,
-0.019031686708331108,
0.0016935454914346337,
0.006438812240958214,
-0.044745154678821564,
0.010811015963554382,
-0.00278894929215312,
-0.03772568702697754,
-0.015496429987251759,
-0.051955096423625946,
0.00966731458902359,
-0.019046256318688393,
0.02483905479311943,
-0.021249275654554367,
0.01630116067826748,
0.016765478998422623,
-0.07882297039031982,
0.008766190148890018,
-0.014688419178128242,
-0.06803735345602036,
0.0568181574344635,
0.010423757135868073,
-0.05644109100103378,
-0.0026604675222188234,
0.010586056858301163,
0.029811980202794075,
0.04501286894083023,
0.006937026511877775,
-0.021748121827840805,
-0.012683453038334846,
0.00668531795963645,
0.02211470901966095,
0.02378927357494831,
0.033224109560251236,
0.008196638897061348,
0.02475525252521038,
-0.043551407754421234,
-0.025816481560468674,
0.016644880175590515,
-0.07184801250696182,
0.059262122958898544,
0.021064842119812965,
0.008101009763777256,
0.016751987859606743,
0.014555823989212513,
0.03530767560005188,
-0.00765013974159956,
-0.03532714024186134,
0.03905081748962402,
-0.02077997289597988,
0.0029295526910573244,
0.034914515912532806,
0.016125811263918877,
-0.0088192755356431,
-0.005254247225821018,
-0.004531334154307842,
-0.005862825084477663,
-0.02397914230823517,
0.05905374512076378,
-0.028556836768984795,
0.0036647911183536053,
-0.0032725604251027107,
0.01707596704363823,
0.011324945837259293,
0.018010668456554413,
-0.0042512910440564156,
-0.023499954491853714,
0.0028150146827101707,
-0.01469731330871582,
-0.008595951832830906,
-0.030783481895923615,
0.036474939435720444,
-0.027145706117153168,
0.023769911378622055,
-0.06154172122478485,
0.013229895383119583,
0.05988406389951706,
0.03720482438802719,
-0.0004124715051148087,
-0.03468291833996773,
0.02146187424659729,
-0.006664806976914406,
-0.007273534778505564,
0.0008030683384276927,
0.011826492846012115,
-0.040032438933849335,
0.019586628302931786,
-0.015985246747732162,
-0.004649539012461901,
0.018128162249922752,
0.04358271136879921,
0.046987712383270264,
0.02321350947022438,
0.0024137666914612055,
-0.004384248983114958,
-0.010242102667689323,
0.026553425937891006,
-0.017707277089357376,
-0.020673569291830063,
0.018411127850413322,
0.0027086951304227114,
0.028456425294280052,
0.03639357164502144,
0.025025827810168266,
-0.030559292063117027,
0.004376110155135393,
0.0549221970140934,
-0.009298176504671574,
0.01578715816140175,
-0.01331325713545084,
0.0032926055137068033,
0.011387748643755913,
-0.01944829151034355,
-0.03672978654503822,
0.010274933651089668,
-0.007551003713160753,
0.004404652398079634,
0.010095875710248947,
-0.04659127816557884,
0.016055800020694733,
0.0300121046602726,
0.029544804245233536,
-0.002342500723898411,
-0.05709865689277649,
0.027203617617487907,
0.01190209947526455,
0.001157138030976057,
0.06418336182832718,
0.01695079542696476,
0.03677423298358917,
-0.014555763453245163,
0.03076988086104393,
-0.003589239437133074,
0.028377791866660118,
-0.013109007850289345,
0.036418817937374115,
0.02154645137488842,
-0.006862429436296225,
-0.01688537374138832,
-0.01794438436627388,
-0.0023537427186965942,
0.02042832411825657,
-0.0013046711683273315,
-0.02694409340620041,
-0.018633870407938957,
0.02692786231637001,
0.023197542876005173,
0.0015603885985910892,
-0.01547727920114994,
-0.05915888026356697,
0.007630986627191305,
0.041145116090774536,
-0.016553092747926712,
-0.008264044299721718,
-0.015404721722006798,
-0.02105948142707348,
-0.009023386985063553,
0.028953518718481064,
-0.019012587144970894,
0.0209682397544384,
0.024118604138493538,
-0.0367220975458622,
0.012884900905191898,
0.03740919753909111,
-0.028631316497921944,
-0.00465205404907465,
0.036448195576667786,
-0.038261137902736664,
-0.07459624856710434,
-0.0019699400290846825,
-0.02518860250711441,
0.045248843729496,
0.027062376961112022,
-0.002011495176702738,
0.03461868688464165,
0.047591257840394974,
0.01491142250597477,
-0.04228861629962921,
-0.005641249939799309,
0.004663651343435049,
-0.014930777251720428,
-0.001604748540557921,
-0.01686989888548851,
-0.023738691583275795,
-0.007035154849290848,
-0.0344063937664032,
0.03135194256901741,
-0.011100445874035358,
0.06385067850351334,
-0.053640786558389664,
0.036099910736083984,
0.006046844180673361,
0.04129025712609291,
-0.03431965038180351,
-0.05005539953708649,
-0.008446386083960533,
-0.03448444977402687,
-0.007658170536160469,
0.007050422485917807,
-0.037311166524887085,
0.007521243300288916,
0.016448307782411575,
-0.02391458861529827,
-0.03420840948820114,
0.03297118470072746,
0.024440888315439224,
0.009687788784503937,
-0.015588218346238136,
-0.01489375252276659,
-0.006370406597852707,
0.021723298355937004,
-0.026339486241340637,
-0.020852165296673775,
0.004446105565875769,
0.029347946867346764,
0.01748146116733551,
0.027635354548692703,
-0.0244954414665699,
-0.030429409816861153,
0.010139605030417442,
0.04597698524594307,
0.027500640600919724,
-0.018551582470536232,
-0.04573630541563034,
-0.021080343052744865,
0.06739010661840439,
-0.01686844602227211,
-0.06054983660578728,
0.016371771693229675,
0.007250625174492598,
-0.07782081514596939,
-0.06327842175960541,
0.09158511459827423,
0.038340311497449875,
-0.0213982742279768,
0.0007956412737257779,
-0.06181724742054939,
-0.038914427161216736,
-0.024664849042892456,
0.0008997177937999368,
0.005926302634179592,
0.023611335083842278,
0.01441758219152689,
0.02454868145287037,
0.04629795625805855,
0.030515601858496666,
0.01550267729908228,
-0.01115298643708229,
-0.020013008266687393,
0.0287794042378664,
0.09410689771175385,
-0.0607231967151165,
-0.015150371007621288,
0.055070728063583374,
-0.06502001732587814,
-0.004147568251937628,
-0.006651896983385086,
-0.0033692417200654745,
-0.052882686257362366,
-0.0011685811914503574,
0.012003746815025806,
-0.008805198594927788,
-0.006091184448450804,
-0.012442928738892078,
0.05938640609383583,
0.02726028487086296,
-0.010883450508117676,
0.004192797467112541,
-0.002430116990581155,
0.08504767715930939,
0.025709690526127815,
0.006016615778207779,
0.011201515793800354,
0.019525986164808273,
0.005448289681226015,
-0.003967973403632641,
0.03459436073899269,
-0.03846089541912079,
0.037358351051807404,
-0.028683707118034363,
-0.0434611439704895,
-0.010984804481267929,
-0.019453108310699463,
0.05219532549381256,
-0.005366116296499968,
-0.009159430861473083,
-0.011247172951698303,
0.017913900315761566,
-0.001968557247892022,
-0.011735853739082813,
0.03123272955417633,
-0.02506650984287262,
-0.0009814564837142825,
-0.012307442724704742,
-0.026195457205176353,
0.01143098808825016,
-0.011111407540738583,
-0.009323326870799065,
0.0021611645352095366,
0.015063765458762646,
0.029343603178858757,
-0.018813161179423332,
0.030517246574163437,
-0.017347516492009163,
0.03033488430082798,
-0.012629293836653233,
0.032472752034664154,
0.0051386384293437,
0.039990779012441635,
0.026918547227978706,
-0.00406136829406023,
0.050802163779735565,
-0.03637766093015671,
0.017307590693235397,
0.0399116612970829,
0.022263092920184135,
0.017085980623960495,
0.011038066819310188,
0.019857600331306458,
-0.005946623161435127,
-0.05105429142713547,
-0.023611316457390785,
-0.032628703862428665,
0.014711047522723675,
0.0030000777915120125,
-0.03284589946269989,
0.010187007486820221,
0.011887679807841778,
-0.0051739756017923355,
-0.009573493152856827,
0.032485056668519974,
0.015597285702824593,
0.019996004179120064,
-0.04473983123898506,
0.0007151018944568932,
0.0016608629375696182,
-0.04128884896636009,
-0.029676025733351707,
0.01638111099600792,
0.007609677501022816,
-0.018783213570713997,
0.023917431011795998,
0.008606773801147938,
0.004893377888947725,
-0.012333936989307404,
-0.01647057943046093,
0.0025441742036491632,
-0.04558397829532623,
0.00635182298719883,
0.05109988525509834,
0.006498870439827442,
-0.017050281167030334,
-0.015934517607092857,
0.04414300248026848,
-0.015506048686802387,
0.06954821944236755,
0.001512440969236195,
0.020571911707520485,
-0.00955384224653244,
-0.026373503729701042,
0.006282825954258442,
-0.014365569688379765,
0.0020916119683533907,
0.014126324094831944,
0.03860572725534439,
-0.01864757016301155,
-0.012589814141392708,
0.02143017202615738,
0.0007458216859959066,
0.025977887213230133,
0.010600145906209946,
-0.009564846754074097,
0.028392627835273743,
-0.004788341466337442,
0.0027071016374975443,
-0.040937066078186035,
-0.039816223084926605,
-0.02465483732521534,
-0.01316185761243105,
-0.04213312268257141,
0.023573895916342735,
-0.007924300618469715,
0.05388881638646126,
-0.08170754462480545,
0.007661797571927309,
-0.05682961270213127,
-0.0159979946911335,
-0.0039927056059241295,
0.018254034221172333,
0.06761456280946732,
0.013050887733697891,
0.03953208774328232,
0.008370067924261093,
-0.014230313710868359,
0.012809768319129944,
0.007267897017300129,
-0.0008892000187188387,
0.04720630124211311,
0.016563119366765022,
0.011698756366968155,
-0.045276280492544174,
0.006880125962197781,
-0.001181636587716639,
-0.05301743745803833,
-0.00278977258130908,
0.03613658621907234,
0.005442737601697445,
0.013174685649573803,
-0.024395279586315155,
0.01369610894471407,
0.011991094797849655,
0.0350094735622406,
0.032190605998039246,
0.02808164618909359,
0.02663118951022625,
-0.07680511474609375,
-0.004678418859839439,
0.05037917196750641,
-0.0024129976518452168,
0.01556968130171299,
0.03438004478812218,
0.034329891204833984,
0.09143907576799393,
0.014636627398431301,
0.006774270907044411,
0.006141277030110359,
0.0339030921459198,
-0.03820047527551651,
-0.015302367508411407,
0.0008581604924984276,
-0.040500886738300323,
-0.00630391389131546,
-0.036103807389736176,
0.04801769182085991,
-0.009423840790987015,
-0.00488939369097352,
-0.02959698811173439,
-0.02114872820675373,
0.009472875855863094,
0.03729771077632904,
-0.022932080551981926,
0.011492774821817875,
-0.02752077393233776,
0.08300226181745529,
0.0009471944067627192,
-0.022624576464295387,
0.016529710963368416
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | Performance comparison We see a clear advantage of SetFitABSA when the number of training instances is low, despite being 2x smaller than T5 and x3 smaller than GPT2-medium. Even when compared to Llama 2, which is x64 larger, the performance is on par or better. SetFitABSA vs GPT2 SetFitABSA vs T5 Note that for fair comparison, we conducted comparisons with SetFitABSA against exactly the dataset splits used by the various baselines (GPT2, T5, etc.). SetFitABSA vs Llama2 We notice that increasing the number of in-context training samples for Llama2 did not result in improved performance. This phenomenon has been shown for ChatGPT before, and we think it should be further investigated. | [
0.002775379689410329,
-0.05169610679149628,
0.009709697216749191,
0.07876351475715637,
0.01269164402037859,
0.02588558942079544,
0.009076107293367386,
0.07165686786174774,
-0.04350978508591652,
-0.04372752830386162,
-0.0023614743258804083,
0.08521424233913422,
-0.04647471010684967,
0.006519076880067587,
0.02515094354748726,
-0.05558072030544281,
0.09387629479169846,
-0.024818209931254387,
0.0016381980385631323,
-0.03279947116971016,
0.024767113849520683,
0.0320969894528389,
0.06776929646730423,
-0.07393921911716461,
0.0640723705291748,
0.062258947640657425,
-0.005334876943379641,
-0.0036097499541938305,
-0.0327494852244854,
-0.012409700080752373,
-0.11643960326910019,
-0.027974557131528854,
0.004085073247551918,
0.02369637042284012,
0.01995701901614666,
-0.030793162062764168,
-0.05046609044075012,
0.06472257524728775,
-0.004845075309276581,
-0.05664128437638283,
-0.07243616878986359,
-0.059423357248306274,
-0.03404278680682182,
-0.0015596887096762657,
-0.05256666988134384,
-0.005441907327622175,
-0.08765938133001328,
-0.009905199520289898,
-0.017286201938986778,
-0.017777398228645325,
-0.09328930079936981,
0.026530204340815544,
0.07251725345849991,
0.006119571626186371,
0.06799662113189697,
0.011540704406797886,
0.004608447197824717,
-0.054275114089250565,
0.027919236570596695,
0.05316701531410217,
0.023815592750906944,
0.03454682603478432,
0.0816156193614006,
-0.007829089649021626,
-0.029176153242588043,
-0.04762144759297371,
-0.015201336704194546,
0.024524137377738953,
-0.03999762609601021,
-0.00235326518304646,
-0.010393351316452026,
0.020082207396626472,
0.016685504466295242,
-0.0067471470683813095,
-0.017180223017930984,
-0.001756979268975556,
-0.07846910506486893,
-0.027761315926909447,
0.057735178619623184,
0.01645602099597454,
0.02891319803893566,
0.03765666112303734,
-0.0620838962495327,
0.012053211219608784,
-0.013954113237559795,
0.04794224351644516,
0.026356598362326622,
-0.09284321218729019,
-0.034494347870349884,
0.04062000662088394,
0.007335078902542591,
-0.09485676884651184,
0.054581206291913986,
0.031030360609292984,
0.06753933429718018,
0.004365129396319389,
0.03042447380721569,
-0.01046024914830923,
-0.004748230800032616,
0.0008344403468072414,
-0.0014958876417949796,
-0.06226646900177002,
0.012802998535335064,
-0.06643347442150116,
-0.03019026480615139,
0.025884145870804787,
-0.04140757396817207,
-0.06871378421783447,
-0.04698363319039345,
0.04107903689146042,
-0.0618327334523201,
-0.018085217103362083,
0.021931752562522888,
0.10189566016197205,
-0.08983799815177917,
-0.02045297622680664,
-0.008425128646194935,
-0.008608479052782059,
0.03795918822288513,
0.03668561950325966,
0.032185617834329605,
0.11464773118495941,
0.09522100538015366,
-0.030102908611297607,
-0.0388261079788208,
-0.008178592659533024,
0.013019749894738197,
0.021572371944785118,
0.007799879182130098,
0.04228820279240608,
0.016317371279001236,
-0.03966778516769409,
0.022813163697719574,
-0.00490289693698287,
-0.005332278553396463,
-0.057656180113554,
-0.005022547207772732,
-0.04544156417250633,
0.009553473442792892,
-0.02769007347524166,
-0.040884196758270264,
-0.0022396936547011137,
0.01145560760051012,
-0.03495332971215248,
0.01560657937079668,
0.0711439773440361,
-0.08761990070343018,
0.02599938027560711,
0.02125118300318718,
-0.061009254306554794,
-0.0733494833111763,
0.05196883901953697,
-0.0512380488216877,
-0.07033559679985046,
0.07981442660093307,
0.015022745355963707,
-0.05316751450300217,
-0.06631524115800858,
-0.08776183426380157,
-0.006749686319380999,
-0.0056996094062924385,
-0.05467015132308006,
0.03648490831255913,
-0.04262407124042511,
0.03220009058713913,
-0.021943451836705208,
0.001075754058547318,
0.007101718336343765,
-0.030445430427789688,
0.06253238022327423,
-0.01188656035810709,
0.011500431224703789,
0.07304824888706207,
-0.05841556191444397,
0.013094371184706688,
0.04483850300312042,
-0.025919539853930473,
0.004164609592407942,
0.003094842191785574,
-0.0336768664419651,
-0.015861935913562775,
0.06851720064878464,
0.002887733979150653,
0.05146309733390808,
0.05220318213105202,
-0.11481744796037674,
0.027568884193897247,
-0.04993218928575516,
-0.011329452507197857,
-0.04791197180747986,
-0.050892073661088943,
0.007707171142101288,
0.05962304398417473,
-0.0383138507604599,
0.047179222106933594,
-0.03612404316663742,
-0.0038057458586990833,
0.09607302397489548,
0.09349198639392853,
0.014646009542047977,
0.00400412455201149,
0.05297383293509483,
-0.008254013955593109,
0.07879684120416641,
0.01342415064573288,
0.021941157057881355,
-0.000007288917458936339,
0.03562645986676216,
-0.004629464354366064,
0.015249171294271946,
-0.026826193556189537,
-0.09159768372774124,
-0.029341526329517365,
-0.06372344493865967,
0.010805001482367516,
-0.00713320029899478,
0.05585939437150955,
-0.025642476975917816,
0.03994930163025856,
-0.020697975531220436,
0.09776090830564499,
0.01634366251528263,
0.0055395555682480335,
-0.007859280332922935,
0.017423411831259727,
0.056098807603120804,
0.06620869785547256,
0.0002900715044233948,
0.1242353692650795,
-0.1046595424413681,
0.07323944568634033,
-0.03208133205771446,
0.042984843254089355,
0.07844569534063339,
-0.026486607268452644,
0.01050897128880024,
-0.027449658140540123,
-0.04043295234441757,
0.07588670402765274,
-0.03843896463513374,
-0.04373563826084137,
0.01257372461259365,
0.007695096079260111,
0.00971873477101326,
-0.02551216259598732,
-0.062465306371450424,
0.02724885195493698,
0.0035005128011107445,
-0.012497329153120518,
-0.07890605181455612,
-0.0815025195479393,
-0.022489694878458977,
0.026936093345284462,
0.005217716097831726,
-0.043598175048828125,
0.033566225320100784,
-0.026098990812897682,
-0.057422321289777756,
-0.06319727003574371,
0.025342168286442757,
-0.020716847851872444,
-0.011454782448709011,
0.0007843501516617835,
-0.012462896294891834,
0.04057175666093826,
-0.019078290089964867,
0.032377101480960846,
0.0024456134997308254,
-0.029339106753468513,
-0.05518126115202904,
-0.0011878135846927762,
-0.03862227499485016,
0.027925051748752594,
0.0036593079566955566,
-0.0012292579049244523,
-0.020451676100492477,
0.058679137378931046,
-0.04042266309261322,
-0.045972444117069244,
-0.021431852132081985,
-0.04760323837399483,
-0.02079193852841854,
0.03494225814938545,
0.030704107135534286,
-0.049280669540166855,
0.02679879404604435,
0.027323739603161812,
-0.02390262484550476,
-0.010715572163462639,
0.005415809340775013,
0.03717087209224701,
0.012816580943763256,
-0.012018224224448204,
-0.012304414063692093,
-0.0058144330978393555,
-0.007406219374388456,
0.019230764359235764,
-0.03868444636464119,
0.03629327565431595,
0.026961568742990494,
-0.02362445928156376,
0.03335840627551079,
-0.02755219303071499,
-0.02107674442231655,
-0.01261322945356369,
0.0281557384878397,
-0.024105092510581017,
0.05256162956357002,
-0.08391112834215164,
0.03410880267620087,
0.003000680822879076,
-0.012903130613267422,
-0.05378282815217972,
-0.010810406878590584,
0.0770733505487442,
-0.06723668426275253,
-0.026881542056798935,
0.05643521249294281,
-0.013674530200660229,
-0.002730070846155286,
0.015303333289921284,
0.02573169209063053,
-0.029338441789150238,
0.03102704882621765,
0.01150778029114008,
0.004400833044201136,
0.034859299659729004,
0.009005486965179443,
0.001665341085754335,
0.011069536209106445,
-0.027559353038668633,
0.05410231649875641,
-0.05663914978504181,
-0.0030294409953057766,
-0.028720708563923836,
0.019571159034967422,
-0.004767876584082842,
-0.01717926561832428,
0.00694641936570406,
-0.002597781363874674,
-0.045031819492578506,
0.0119762122631073,
0.01179176289588213,
-0.010464932769536972,
0.030631650239229202,
-0.00777298491448164,
0.030739828944206238,
0.04462157189846039,
-0.004246193449944258,
-0.017065206542611122,
0.03238232806324959,
-0.011128158308565617,
-0.01490646693855524,
0.03065977618098259,
0.02271851897239685,
-0.010978402569890022,
0.06891711056232452,
-0.03637005761265755,
0.020281953737139702,
0.020685767754912376,
-0.0435086153447628,
0.07242610305547714,
0.014060896821320057,
-0.018001217395067215,
0.02832046151161194,
0.018149657174944878,
0.0347575880587101,
-0.0012136470759287477,
-0.03527669981122017,
0.04358220845460892,
-0.009068943560123444,
0.017684385180473328,
-0.013536843471229076,
0.02633034624159336,
0.014228085055947304,
0.01075259130448103,
0.009919460862874985,
-0.0033134694676846266,
0.005221485160291195,
0.04497045278549194,
0.017268918454647064,
0.006033276207745075,
-0.0004711272777058184,
0.04383235424757004,
0.02135852351784706,
-0.022225812077522278,
0.035465728491544724,
-0.013723854906857014,
0.0045767128467559814,
-0.008545460179448128,
-0.025959094986319542,
-0.005740489345043898,
-0.00008034623897401616,
-0.024771684780716896,
-0.004162142518907785,
-0.022133158519864082,
0.0007803675252944231,
0.003484193002805114,
0.01712055318057537,
-0.012529751285910606,
0.031143099069595337,
0.03947128355503082,
-0.011060819961130619,
0.017100313678383827,
0.01848534308373928,
0.05402026325464249,
-0.023405786603689194,
0.01901324652135372,
0.055656544864177704,
-0.006493419874459505,
0.06030021607875824,
-0.007817888632416725,
0.0022799172438681126,
0.02354627102613449,
-0.019466061145067215,
-0.017686277627944946,
0.007146045565605164,
0.05396857485175133,
-0.015188097022473812,
-0.016633739694952965,
0.05064468830823898,
-0.006487273145467043,
0.022817011922597885,
0.0174043420702219,
0.025163421407341957,
0.0073841228149831295,
-0.016544759273529053,
0.053786423057317734,
-0.004015312530100346,
0.012364840134978294,
0.0004955354961566627,
0.00828426331281662,
0.027066189795732498,
-0.01514718309044838,
0.039674073457717896,
-0.004591114819049835,
0.0073574199341237545,
0.004051411058753729,
-0.029285743832588196,
-0.03378339484333992,
-0.01020475011318922,
0.005134941078722477,
-0.020529184490442276,
-0.022180605679750443,
-0.05012255534529686,
0.01792435348033905,
0.008510691113770008,
-0.03864213824272156,
0.004331857897341251,
0.011461415328085423,
0.02584919147193432,
-0.050858840346336365,
0.05262411758303642,
-0.009905567392706871,
-0.024970421567559242,
0.006107402965426445,
-0.0005734172300435603,
0.04835456237196922,
0.03735837712883949,
-0.02603903040289879,
-0.0638129860162735,
0.024694213643670082,
0.042950455099344254,
-0.009725046344101429,
-0.005879916250705719,
0.003935785032808781,
-0.006226117257028818,
0.023678746074438095,
0.011128854937851429,
-0.024879027158021927,
-0.054288942366838455,
-0.055588144809007645,
0.0765390545129776,
0.00538100628182292,
0.037368208169937134,
-0.03206360340118408,
0.017357664182782173,
-0.01790568418800831,
0.016729092225432396,
-0.01611664704978466,
0.0022594959009438753,
-0.005731823388487101,
0.03876107186079025,
-0.011700993403792381,
0.03703085705637932,
-0.001886363374069333,
0.018535122275352478,
0.0235049519687891,
-0.021180594339966774,
-0.05809110775589943,
0.03199722617864609,
-0.020741628482937813,
0.019998259842395782,
-0.0010500432690605521,
0.03711976855993271,
0.05856061726808548,
0.039389677345752716,
0.020189359784126282,
-0.00188760319724679,
0.009525291621685028,
0.05152396485209465,
-0.04992728680372238,
-0.012376205995678902,
-0.013234357349574566,
0.0071094040758907795,
-0.0026336400769650936,
-0.006794070824980736,
0.022509081289172173,
-0.005069801118224859,
0.023944931104779243,
-0.0017336616292595863,
-0.021578114479780197,
-0.006390128284692764,
0.06146315857768059,
-0.015811143442988396,
-0.00965807307511568,
0.006096296943724155,
-0.04084650054574013,
0.00018774055934045464,
-0.04288237914443016,
-0.008902831934392452,
-0.03101157769560814,
-0.01150806900113821,
-0.022183528169989586,
-0.059270117431879044,
0.055145226418972015,
0.03635028749704361,
0.029060006141662598,
0.024012919515371323,
-0.022577384486794472,
-0.04022971913218498,
-0.01711067371070385,
-0.01913999766111374,
-0.028400301933288574,
-0.014078951440751553,
0.01898801326751709,
0.032342616468667984,
0.038792386651039124,
0.012176278978586197,
-0.05794664844870567,
-0.022939318791031837,
0.05586090311408043,
-0.0031045551877468824,
-0.014743713662028313,
-0.00016754298121668398,
-0.018620619550347328,
0.04031196981668472,
-0.03385912626981735,
-0.052718233317136765,
-0.02933657541871071,
0.010844831354916096,
-0.04793769493699074,
-0.060019876807928085,
0.0547892190515995,
0.038968924432992935,
-0.020405836403369904,
-0.007442497182637453,
-0.005582292564213276,
-0.04265105724334717,
-0.05443615838885307,
0.002100562211126089,
0.038996610790491104,
0.01287868618965149,
0.006954486947506666,
0.021476274356245995,
0.004832418169826269,
-0.005698243156075478,
0.02354077622294426,
0.021733012050390244,
-0.0363955982029438,
0.04696584865450859,
0.05199043080210686,
-0.016911521553993225,
-0.009529736824333668,
0.02431621588766575,
-0.054573941975831985,
-0.0020811420399695635,
-0.027477361261844635,
-0.012548265978693962,
0.018518997356295586,
-0.0009707522112876177,
0.014345312491059303,
-0.04520483687520027,
0.006736413110047579,
-0.0017066476866602898,
0.03232228755950928,
0.03805370628833771,
0.04380772262811661,
0.04712526127696037,
0.008845505304634571,
0.07822535187005997,
-0.006033172365278006,
-0.028128523379564285,
0.0037781635764986277,
0.031829219311475754,
0.0018499997677281499,
0.029419858008623123,
0.034981586039066315,
0.009068199433386326,
-0.00039388969889841974,
-0.029228195548057556,
-0.028048817068338394,
-0.012251509353518486,
-0.006703450344502926,
0.060764141380786896,
0.012207645922899246,
0.011620951816439629,
-0.03624412789940834,
0.03977518528699875,
0.02744767628610134,
-0.001986640738323331,
0.03260207176208496,
-0.011158484034240246,
-0.047124266624450684,
-0.036656539887189865,
-0.01532480213791132,
0.01468817237764597,
-0.004538505803793669,
-0.031632110476493835,
0.024816006422042847,
0.02987353876233101,
0.06072735786437988,
0.02475540153682232,
0.0013459272449836135,
0.0071530514396727085,
0.012081142514944077,
-0.016122018918395042,
-0.004109902773052454,
0.047605838626623154,
0.01177354995161295,
0.04758765920996666,
0.004438071046024561,
0.002147174207493663,
-0.01723751425743103,
-0.007298260927200317,
-0.005478047765791416,
0.026267312467098236,
0.006513451691716909,
0.019488049671053886,
0.03248068317770958,
0.04401974380016327,
-0.045931801199913025,
-0.020131466910243034,
-0.04068460687994957,
-0.008652490563690662,
0.01988866925239563,
-0.02070026658475399,
0.0010633867932483554,
0.03035193681716919,
0.002254824386909604,
-0.016727056354284286,
0.015425467863678932,
-0.009214646182954311,
-0.0053067696280777454,
-0.0009836426470428705,
0.02669387497007847,
-0.028607966378331184,
-0.04249229282140732,
-0.02528175339102745,
0.016382502391934395,
-0.017673660069704056,
-0.021717378869652748,
-0.019874172285199165,
-0.0685010701417923,
0.026424594223499298,
-0.02671022340655327,
-0.03011280670762062,
-0.012194334529340267,
0.007429015357047319,
0.027401847764849663,
-0.003236259100958705,
0.0322919636964798,
-0.02412812039256096,
0.010656759142875671,
0.01890585385262966,
-0.023650605231523514,
0.02145584300160408,
0.025579333305358887,
0.018906395882368088,
-0.01018015667796135,
-0.04573468118906021,
-0.019334839656949043,
-0.007288533728569746,
0.03642614558339119,
0.050046660006046295,
0.018135281279683113,
-0.016728628426790237,
0.03183315321803093,
0.054559316486120224,
-0.02273697778582573,
-0.007129678037017584,
0.01924353651702404,
-0.018233247101306915,
-0.016701016575098038,
0.007974429056048393,
0.006551651284098625,
-0.0351296067237854,
-0.0033083749003708363,
-0.036709994077682495,
-0.00981153640896082,
-0.016510363668203354,
0.0035024445969611406,
-0.03375248238444328,
0.011870740912854671,
-0.07856642454862595,
-0.015454692766070366,
-0.007859763689339161,
0.03625280782580376,
-0.0518505722284317,
-0.01150228176265955,
0.03185233473777771,
0.04377913475036621,
0.04252718761563301,
0.020685333758592606,
0.0032770170364528894,
0.007900390774011612,
-0.02639623172581196,
-0.048124976456165314,
0.0231297817081213,
-0.006434643641114235,
-0.004871774464845657,
-0.05709270387887955,
0.02043258212506771,
-0.020042533054947853,
-0.02774672955274582,
0.015658440068364143,
-0.012541040778160095,
0.02795974537730217,
0.04387291893362999,
-0.03945085033774376,
-0.0038894866593182087,
0.01338187512010336,
0.0799066424369812,
-0.0023995216470211744,
0.014265819452702999,
0.016740545630455017,
-0.05859575420618057,
-0.005825435277074575,
0.02350885421037674,
0.01920391619205475,
0.0004521857190411538,
0.06050474941730499,
0.00019345978216733783,
0.03988572955131531,
0.007434377912431955,
-0.01822415366768837,
0.019269676879048347,
0.028163079172372818,
-0.056224506348371506,
-0.033719271421432495,
-0.015826603397727013,
-0.0002712878631427884,
-0.0035383873619139194,
-0.049268122762441635,
0.026112763211131096,
-0.00020758461323566735,
0.017199140042066574,
0.013592150993645191,
0.01269209198653698,
-0.021573679521679878,
-0.017210690304636955,
0.016391387209296227,
0.01047554612159729,
-0.0025317943654954433,
0.06283855438232422,
0.03396245464682579,
-0.010839872993528843,
-0.016535446047782898
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | Training your own model SetFitABSA is part of the SetFit framework. To train an ABSA model, start by installing setfit with the absa option enabled: shell python -m pip install -U "setfit[absa]" Additionally, we must install the en_core_web_lg spaCy model: shell python -m spacy download en_core_web_lg We continue by preparing the training set. The format of the training set is a Dataset with the columns text, span, label, ordinal: * text: The full sentence or text containing the aspects. * span: An aspect from the full sentence. Can be multiple words. For example: "food". * label: The (polarity) label corresponding to the aspect span. For example: "positive". The label names can be chosen arbitrarily when tagging the collected training data. * ordinal: If the aspect span occurs multiple times in the text, then this ordinal represents the index of those occurrences. Often this is just 0, as each aspect usually appears only once in the input text. For example, the training text "Restaurant with wonderful food but worst service I ever seen" contains two aspects, so will add two lines to the training set table: | Text | Span | Label | Ordinal | |:-------------------------------------------------------------|:--------|:---------|:--------| | Restaurant with wonderful food but worst service I ever seen | food | positive | 0 | | Restaurant with wonderful food but worst service I ever seen | service | negative | 0 | | ... | ... | ... | ... | Once we have the training dataset ready we can create an ABSA trainer and execute the training. SetFit models are fairly efficient to train, but as SetFitABSA involves two models trained sequentially, it is recommended to use a GPU for training to keep the training time low. For example, the following training script trains a full SetFitABSA model in about 10 minutes with the free Google Colab T4 GPU. python from datasets import load_dataset from setfit import AbsaTrainer, AbsaModel # Create a training dataset as above # For convenience we will use an already prepared dataset here train_dataset = load_dataset("tomaarsen/setfit-absa-semeval-restaurants", split="train[:128]") # Create a model with a chosen sentence transformer from the Hub model = AbsaModel.from_pretrained("sentence-transformers/paraphrase-mpnet-base-v2") # Create a trainer: trainer = AbsaTrainer(model, train_dataset=train_dataset) # Execute training: trainer.train() That's it! We have trained a domain-specific ABSA model. We can save our trained model to disk or upload it to the Hugging Face hub. Bear in mind that the model contains two submodels, so each is given its own path: python model.save_pretrained( "models/setfit-absa-model-aspect", "models/setfit-absa-model-polarity" ) # or model.push_to_hub( "tomaarsen/setfit-absa-paraphrase-mpnet-base-v2-restaurants-aspect", "tomaarsen/setfit-absa-paraphrase-mpnet-base-v2-restaurants-polarity" ) Now we can use our trained model for inference. We start by loading the model: python from setfit import AbsaModel model = AbsaModel.from_pretrained( "tomaarsen/setfit-absa-paraphrase-mpnet-base-v2-restaurants-aspect", "tomaarsen/setfit-absa-paraphrase-mpnet-base-v2-restaurants-polarity" ) Then, we use the predict API to run inference. The input is a list of strings, each representing a textual review: python preds = model.predict([ "Best pizza outside of Italy and really tasty.", "The food variations are great and the prices are absolutely fair.", "Unfortunately, you have to expect some waiting time and get a note with a waiting number if it should be very full." ]) print(preds) # [ # [{'span': 'pizza', 'polarity': 'positive'}], # [{'span': 'food variations', 'polarity': 'positive'}, {'span': 'prices', 'polarity': 'positive'}], # [{'span': 'waiting time', 'polarity': 'neutral'}, {'span': 'waiting number', 'polarity': 'neutral'}] # ] For more details on training options, saving and loading models, and inference see the SetFit docs. | [
-0.0028809646610170603,
-0.03738302364945412,
0.031048664823174477,
0.009215380996465683,
0.06767796725034714,
0.03860877826809883,
0.04830726236104965,
0.02097460813820362,
-0.058830536901950836,
-0.032030973583459854,
-0.11603818088769913,
0.07711060345172882,
-0.009811309166252613,
0.03579981252551079,
0.03818593546748161,
-0.018732165917754173,
0.08196396380662918,
0.00020350863633211702,
-0.056286998093128204,
0.01995178684592247,
-0.007452231366187334,
-0.0031778966076672077,
0.06487512588500977,
0.00058458634885028,
0.09615875780582428,
0.008477432653307915,
0.07251454889774323,
0.07005546987056732,
-0.06799548864364624,
0.039034850895404816,
-0.09275227040052414,
0.03131614625453949,
-0.01722058467566967,
-0.01776159554719925,
-0.011705136857926846,
0.028502942994236946,
-0.07630033791065216,
0.05041438713669777,
0.04463791847229004,
-0.051054589450359344,
-0.046431247144937515,
0.02554665319621563,
-0.057106420397758484,
0.020277025178074837,
-0.0062715099193155766,
-0.05031761899590492,
-0.12837353348731995,
0.032237593084573746,
-0.015791451558470726,
-0.057031359523534775,
-0.05297194421291351,
0.04152124002575874,
0.014275425113737583,
-0.035424623638391495,
0.031232167035341263,
0.028090232983231544,
-0.024386826902627945,
-0.028744231909513474,
-0.05477975308895111,
0.017756227403879166,
-0.006413294468075037,
0.032837435603141785,
-0.021930351853370667,
0.010378807783126831,
-0.0283163171261549,
-0.03157242015004158,
-0.023646416142582893,
0.046888139098882675,
-0.03900225833058357,
-0.03753433749079704,
0.0007698136614635587,
0.0023362489882856607,
-0.025955969467759132,
-0.02398804761469364,
0.028147302567958832,
-0.061468444764614105,
-0.03208545595407486,
0.007308310363441706,
0.024260548874735832,
0.017521308735013008,
0.05732795596122742,
0.010923223569989204,
-0.014492770656943321,
0.049079328775405884,
0.01986147277057171,
0.025801654905080795,
-0.01121047604829073,
-0.0646379217505455,
-0.06702999025583267,
0.02357909269630909,
0.03301471099257469,
-0.07762256264686584,
0.009928391315042973,
0.030049432069063187,
0.07272747159004211,
-0.05984242632985115,
0.025981765240430832,
0.052937235683202744,
-0.02547351084649563,
-0.02787758782505989,
-0.041861098259687424,
-0.054124508053064346,
0.0036095997784286737,
-0.07417670637369156,
-0.07263625413179398,
0.09983564168214798,
0.01311623863875866,
0.0096609927713871,
-0.025264250114560127,
0.05673211067914963,
-0.04872344806790352,
-0.04320747032761574,
-0.005454780533909798,
0.10256559401750565,
-0.0665675550699234,
0.01982421614229679,
-0.018271517008543015,
-0.0031715265940874815,
-0.01512721087783575,
-0.04196394979953766,
-0.036069050431251526,
0.06798902899026871,
0.07339475303888321,
-0.00262972479686141,
-0.008153775706887245,
0.054727647453546524,
0.0054458254016935825,
0.029455294832587242,
0.010954160243272781,
0.029445506632328033,
0.0436018630862236,
-0.043976303189992905,
0.09758118540048599,
0.00971897691488266,
0.012975336983799934,
-0.050087809562683105,
-0.005658948794007301,
-0.034625258296728134,
0.0741933137178421,
0.042159028351306915,
-0.03611654415726662,
0.06860809028148651,
-0.03280098736286163,
0.02508048340678215,
0.03330568969249725,
0.025969265028834343,
-0.038996461778879166,
0.06416826695203781,
0.013405346311628819,
-0.03126846253871918,
-0.04395226389169693,
0.027197834104299545,
0.02562006190419197,
-0.08817131072282791,
0.05832752585411072,
0.03271156921982765,
-0.01277932059019804,
-0.005969804245978594,
-0.09781956672668457,
0.00583356898277998,
0.006724041886627674,
0.013280833140015602,
-0.08167532831430435,
-0.012037304230034351,
0.05713323503732681,
-0.05788213387131691,
0.01408203411847353,
0.005492902360856533,
0.008631912060081959,
0.019626043736934662,
-0.01253585796803236,
-0.004184364806860685,
0.02535231038928032,
-0.030307695269584656,
-0.036115244030952454,
0.007507865782827139,
0.011705346405506134,
-0.02414701320230961,
-0.021860895678400993,
-0.032212235033512115,
-0.03339683264493942,
0.03996564447879791,
-0.06145963445305824,
0.044452786445617676,
0.05562104657292366,
-0.07805389910936356,
0.05934447795152664,
-0.09431429207324982,
0.012247757986187935,
0.038077957928180695,
-0.04763475060462952,
0.008391018025577068,
0.1079297661781311,
-0.04300573840737343,
0.0011167727643623948,
-0.12711761891841888,
-0.0801367461681366,
0.07981114834547043,
0.021545205265283585,
0.010535433888435364,
0.016484800726175308,
0.035865869373083115,
0.07426799833774567,
0.0018246230902150273,
0.006077243946492672,
0.030592987313866615,
0.009589605033397675,
-0.04115068167448044,
0.05239562317728996,
0.04856475815176964,
-0.06687518954277039,
-0.1142977848649025,
0.034251678735017776,
-0.09714295715093613,
-0.029591238126158714,
-0.0482926070690155,
0.005632810294628143,
0.0036348607391119003,
0.0020951100159436464,
-0.033448632806539536,
0.11527302861213684,
0.004395003896206617,
-0.054310958832502365,
-0.025012176483869553,
-0.06052880734205246,
-0.0016045167576521635,
0.06808753311634064,
0.06599946320056915,
0.09987146407365799,
-0.07927221804857254,
0.03477606549859047,
-0.03409262374043465,
0.026499196887016296,
0.04778718203306198,
-0.030295420438051224,
-0.021974528208374977,
0.009325766004621983,
0.03702374920248985,
0.072426438331604,
-0.04067565128207207,
-0.006132414564490318,
0.0004752074019052088,
-0.023609686642885208,
-0.013637825846672058,
-0.007618992123752832,
-0.0021978775039315224,
0.029969343915581703,
0.016567349433898926,
-0.04719413444399834,
-0.00531832966953516,
-0.12463587522506714,
0.016128335148096085,
0.00810702983289957,
-0.02371090091764927,
-0.012307586148381233,
0.06181231141090393,
-0.007110157515853643,
-0.048007670789957047,
-0.01586022973060608,
-0.011861811392009258,
-0.03104434162378311,
0.017566928640007973,
-0.028230085968971252,
-0.04727824032306671,
0.023990381509065628,
-0.022883689031004906,
0.06942102313041687,
-0.05703488364815712,
-0.011679830960929394,
0.023769626393914223,
-0.002579832449555397,
-0.009284823201596737,
-0.0090834004804492,
-0.020335454493761063,
0.016631154343485832,
0.015856826677918434,
0.024648362770676613,
-0.04954267665743828,
-0.02816247008740902,
-0.049215976148843765,
-0.007829036563634872,
-0.0484483428299427,
0.03469894826412201,
0.04365396872162819,
0.01454214844852686,
-0.01811482384800911,
0.04074162617325783,
-0.03379923105239868,
-0.013262433931231499,
0.04219083487987518,
0.012590174563229084,
0.07618364691734314,
0.0003972624253947288,
0.0006800119881518185,
0.02490895427763462,
0.0060654510743916035,
-0.003566992934793234,
0.030341465026140213,
0.028048928827047348,
-0.01032143272459507,
0.004889071919023991,
-0.03187057003378868,
-0.019079629331827164,
-0.012313831597566605,
-0.025351930409669876,
0.030172130092978477,
0.030987510457634926,
0.028392627835273743,
-0.10310281813144684,
-0.04314463585615158,
0.0020524568390101194,
-0.03791972994804382,
-0.0009228374110534787,
-0.02425260841846466,
0.04375826567411423,
-0.021793456748127937,
-0.023870956152677536,
-0.00678492896258831,
-0.011458170600235462,
0.009491113014519215,
0.016293933615088463,
0.04844314977526665,
0.015122582204639912,
0.017105882987380028,
0.006807925179600716,
-0.022154884412884712,
0.004208095837384462,
0.018882010132074356,
-0.024181077256798744,
0.012599578127264977,
-0.02186950109899044,
0.02936629019677639,
-0.029655558988451958,
0.009922386147081852,
-0.012580032460391521,
0.05984727293252945,
0.027701471000909805,
-0.07335138320922852,
-0.024449899792671204,
0.012979721650481224,
-0.049811363220214844,
0.01240367442369461,
-0.014037908054888248,
-0.010303780436515808,
0.013175074942409992,
0.029926450923085213,
0.012606598436832428,
0.055067528039216995,
-0.005093807354569435,
0.0066613401286304,
0.014951934106647968,
0.002496655797585845,
0.023104360327124596,
0.0226533692330122,
0.015429660677909851,
-0.006152749992907047,
0.0019472105195745826,
-0.03995400667190552,
-0.004643429536372423,
-0.015230315737426281,
0.0077585685066878796,
0.06264283508062363,
0.017264453694224358,
0.020148608833551407,
0.012364636175334454,
0.026500584557652473,
0.05030382052063942,
-0.010869753547012806,
-0.017326440662145615,
0.016647083684802055,
-0.03909830003976822,
-0.014150179922580719,
-0.00526063609868288,
0.09456127882003784,
0.035314980894327164,
0.03810185194015503,
-0.015232952311635017,
-0.02937128394842148,
-0.03847978636622429,
0.034603871405124664,
0.0023099659010767937,
0.011607605032622814,
-0.02040427178144455,
0.01332604605704546,
-0.019324667751789093,
0.016648242250084877,
0.0609813928604126,
0.0011213573161512613,
-0.00794273428618908,
-0.017909204587340355,
-0.0031675708014518023,
-0.024063948541879654,
0.017257435247302055,
-0.02883356809616089,
0.044578514993190765,
-0.04940811172127724,
0.003881874494254589,
0.00669126957654953,
0.012373296543955803,
-0.020748136565089226,
0.00429705111309886,
0.03351207077503204,
-0.055715858936309814,
0.02184210531413555,
-0.0059739998541772366,
-0.026986222714185715,
0.048865754157304764,
-0.012327459640800953,
0.01590706780552864,
-0.006557537242770195,
0.023075293749570847,
0.015796231105923653,
-0.0074583240784704685,
0.029071928933262825,
-0.04146565869450569,
-0.0274658203125,
0.009610598906874657,
-0.00845144223421812,
-0.028917107731103897,
-0.001013982924632728,
0.0021477045956999063,
-0.008381175808608532,
0.03969442844390869,
0.03809579834342003,
-0.03818708285689354,
-0.02407282404601574,
-0.024075858294963837,
0.053193386644124985,
-0.021020889282226562,
0.01597381941974163,
-0.004458526615053415,
-0.04133849963545799,
-0.00892331451177597,
-0.022535378113389015,
0.019032245501875877,
0.02621529996395111,
0.024038290604948997,
-0.009488959796726704,
0.008788371458649635,
-0.0278629120439291,
0.00953607726842165,
0.04625510051846504,
-0.03055702894926071,
-0.004941700026392937,
-0.0480099692940712,
0.010484849102795124,
0.041987787932157516,
-0.003995941951870918,
-0.01044604741036892,
-0.027178257703781128,
0.03880467265844345,
-0.04291968047618866,
0.05384252965450287,
0.002311727963387966,
-0.03336111456155777,
0.002635511802509427,
0.019949285313487053,
0.05041857808828354,
0.01914351060986519,
0.015759790316224098,
-0.04088381305336952,
-0.010736956261098385,
0.0024518989957869053,
-0.007466868031769991,
0.006901439744979143,
0.007406469434499741,
0.03074832819402218,
0.045246172696352005,
-0.009535251185297966,
-0.030985305085778236,
-0.06588506698608398,
-0.005442328285425901,
0.024383071810007095,
-0.004012312274426222,
-0.012224090285599232,
-0.08680140972137451,
0.0016830216627568007,
-0.007527926471084356,
-0.027153920382261276,
-0.02320714108645916,
0.05268692970275879,
-0.026376258581876755,
-0.010329922661185265,
0.014120597392320633,
0.0343451201915741,
0.017971396446228027,
-0.037625376135110855,
0.0285467728972435,
-0.035223767161369324,
-0.015163522213697433,
0.007412493694573641,
-0.0020329239778220654,
-0.024142006412148476,
0.048405107110738754,
0.01175485085695982,
0.051206689327955246,
0.039847083389759064,
0.03205880895256996,
-0.0016181732062250376,
-0.03147535026073456,
0.021973054856061935,
-0.03277740627527237,
0.002795382170006633,
-0.014341471716761589,
-0.052488651126623154,
0.021974986419081688,
-0.022194551303982735,
-0.004721228498965502,
0.02395176701247692,
0.028583906590938568,
-0.011750730685889721,
0.003962290473282337,
0.027439376339316368,
0.06281550973653793,
-0.0324058011174202,
-0.009071946144104004,
-0.009953919798135757,
-0.03047463856637478,
-0.003323116572573781,
-0.023099558427929878,
-0.02492336556315422,
-0.0028626620769500732,
-0.007667628116905689,
0.0016457735328003764,
-0.04293172061443329,
0.01350043248385191,
0.008072429336607456,
0.02395758219063282,
-0.0003433717938605696,
-0.016253743320703506,
-0.0252644382417202,
0.04072098433971405,
-0.00923973135650158,
-0.03197278454899788,
0.021323688328266144,
-0.008377538993954659,
0.060455724596977234,
0.03052990324795246,
0.013159955851733685,
0.029599014669656754,
0.005446737632155418,
0.030388424172997475,
0.040136221796274185,
-0.018550822511315346,
-0.03989303857088089,
0.016641750931739807,
0.03519463911652565,
-0.015016566962003708,
-0.0377003476023674,
0.028271127492189407,
-0.012277311645448208,
-0.009037066251039505,
-0.0019891432020813227,
0.022866783663630486,
0.07800472527742386,
-0.00963594950735569,
-0.00535456370562315,
-0.051364678889513016,
-0.00856329221278429,
-0.01347243320196867,
-0.002609984017908573,
-0.004763749428093433,
0.03322463110089302,
0.025487380102276802,
0.007081122137606144,
0.038058970123529434,
0.01601029932498932,
0.01848798245191574,
-0.00206728745251894,
-0.05105695500969887,
0.03935762122273445,
0.07350534945726395,
-0.03708561509847641,
0.008625980466604233,
0.020571919158101082,
-0.048603858798742294,
-0.007737189065665007,
0.00953337550163269,
0.052513763308525085,
-0.021200524643063545,
-0.014769159257411957,
0.03456608206033707,
-0.02320891246199608,
0.0021372183691710234,
0.006648613605648279,
0.030087845399975777,
0.0028391594532877207,
0.04378078505396843,
-0.006622538901865482,
0.016338055953383446,
0.050999704748392105,
-0.00005070477709523402,
-0.001660082722082734,
0.011365965940058231,
0.07152432203292847,
0.028869139030575752,
0.007132180966436863,
0.0302266962826252,
-0.017922157421708107,
0.0035071512684226036,
-0.06364293396472931,
-0.021924596279859543,
-0.004499262664467096,
-0.022434819489717484,
0.060335513204336166,
-0.006662271451205015,
-0.0129926148802042,
-0.022463614121079445,
0.02300635725259781,
0.039983365684747696,
0.004526893608272076,
-0.024787789210677147,
0.013920225203037262,
0.0490432009100914,
0.009868933819234371,
-0.0008298562606796622,
0.012668624520301819,
0.002722918288782239,
-0.01177382655441761,
0.04990919679403305,
0.03706841170787811,
0.05142757669091225,
0.038215555250644684,
0.03550102189183235,
0.0079507390037179,
-0.03480183705687523,
-0.027144677937030792,
0.0219736285507679,
0.031873006373643875,
-0.009441690519452095,
0.01597144454717636,
-0.014289545826613903,
-0.023516956716775894,
-0.03487420827150345,
-0.017832409590482712,
-0.005946377292275429,
-0.00040104155777953565,
-0.007806421257555485,
-0.033865176141262054,
0.0407799556851387,
0.0335998609662056,
-0.014760801568627357,
-0.04563124477863312,
-0.03961261361837387,
0.007911515422165394,
0.010566937737166882,
-0.010384888388216496,
-0.032605115324258804,
-0.040605440735816956,
-0.055329546332359314,
-0.032238613814115524,
0.0465582013130188,
0.006287651136517525,
-0.014492330141365528,
-0.022265955805778503,
0.033368393778800964,
-0.005449396092444658,
-0.0019589837174862623,
-0.012661146931350231,
0.035383693873882294,
-0.0193635281175375,
-0.021717198193073273,
0.012849953956902027,
-0.010794725269079208,
0.03548632562160492,
-0.01622527837753296,
0.026308448985219002,
-0.018010245636105537,
-0.0316583588719368,
0.02471160888671875,
0.051673416048288345,
0.039184875786304474,
-0.03871351480484009,
-0.0019417691510170698,
-0.019167017191648483,
-0.0060316030867397785,
0.06702045351266861,
0.025633813813328743,
0.013650591485202312,
-0.020974520593881607,
0.001572391833178699,
-0.01156578492373228,
-0.011933335103094578,
0.0014092039782553911,
-0.01797378621995449,
0.028521575033664703,
-0.03195563703775406,
-0.002295116661116481,
0.024472877383232117,
-0.012057879008352757,
-0.003667030017822981,
0.014744766987860203,
0.03312711790204048,
0.04151587933301926,
-0.02838956192135811,
-0.016256168484687805,
0.020011020824313164,
-0.0071264891885221004,
-0.03574086353182793,
-0.015287484973669052,
-0.023571548983454704,
-0.017201608046889305,
-0.030669772997498512,
0.02449510060250759,
-0.04090429097414017,
-0.004359595477581024,
-0.03966663032770157,
0.010687272995710373,
-0.004083447623997927,
0.024687258526682854,
0.06250178813934326,
0.05234809219837189,
0.014352550730109215,
0.0063278586603701115,
-0.028049981221556664,
-0.0007379946182481945,
-0.0018636875320225954,
-0.01793357916176319,
0.032877519726753235,
0.004981301724910736,
0.020634183660149574,
-0.024538913741707802,
0.030590595677495003,
-0.025275375694036484,
-0.07407644391059875,
-0.013805979862809181,
0.019572792574763298,
0.025858208537101746,
0.0003319526731502265,
0.011821686290204525,
0.05069252476096153,
0.029671750962734222,
0.028858991339802742,
0.017074236646294594,
0.026639971882104874,
0.0488089956343174,
-0.03271990641951561,
-0.05334220454096794,
0.009556121192872524,
-0.008598187007009983,
-0.004691774025559425,
0.025087645277380943,
0.008460773155093193,
0.06863962113857269,
0.0009565625223331153,
-0.004961270373314619,
-0.002189010614529252,
0.029307318851351738,
-0.023610595613718033,
-0.06621943414211273,
0.0035318743903189898,
-0.01020467933267355,
0.02714615687727928,
0.000012339614841039293,
0.018634140491485596,
0.011463142931461334,
-0.006173993460834026,
-0.009210994467139244,
0.026286300271749496,
0.023377904668450356,
0.022490717470645905,
-0.0017563101137056947,
0.0030474350787699223,
0.023346364498138428,
0.05022205039858818,
-0.014001533389091492,
-0.029388749971985817,
0.05191347748041153
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | Model size comparison | Model | Size (params) | |:------------------:|:-------------:| | Llama-2-chat | 7B | | T5-base | 220M | | GPT2-base | 124M | | GPT2-medium | 355M | | SetFit (MPNet) | 2x 110M | Note that for the SB1 task, SetFitABSA is 110M parameters, for SB2 it is 110M parameters, and for SB1+SB2 SetFitABSA consists of 220M parameters. | [
0.007567493245005608,
0.0011393862077966332,
-0.0038562084082514048,
0.023278797045350075,
0.0910639762878418,
0.10009432584047318,
0.054159797728061676,
0.02187519706785679,
-0.05224718898534775,
-0.00040361611172556877,
-0.013174089603126049,
0.05658360943198204,
-0.0013128077844157815,
0.0019113142043352127,
0.01051367912441492,
-0.022384408861398697,
0.04229569062590599,
-0.005867867264896631,
0.04504905268549919,
-0.0035621316637843847,
0.03865741938352585,
0.03965790942311287,
0.06961604952812195,
-0.03817298635840416,
0.07277674227952957,
0.00458792457357049,
-0.0125966751947999,
0.00020607853366527706,
0.012581353075802326,
0.035587940365076065,
-0.14586827158927917,
-0.07343592494726181,
-0.031516242772340775,
-0.04820903018116951,
0.02483922429382801,
-0.0095698656514287,
-0.0650356188416481,
0.06882886588573456,
-0.022828618064522743,
-0.08080588281154633,
-0.003181472886353731,
0.0005448153824545443,
-0.04402729496359825,
0.024220814928412437,
0.0010340794688090682,
0.029174434021115303,
-0.0675734207034111,
0.035048045217990875,
0.027593491598963737,
-0.012837028130888939,
-0.0206708163022995,
0.047852739691734314,
0.022286420688033104,
0.017041679471731186,
0.040770016610622406,
0.007700309157371521,
-0.014401388354599476,
-0.029619619250297546,
-0.003016546368598938,
0.015412725508213043,
0.023502105847001076,
0.007181136403232813,
0.11049076169729233,
0.015563879162073135,
0.02641943283379078,
0.002697291085496545,
-0.013738065958023071,
0.02029183879494667,
-0.019767815247178078,
0.018805386498570442,
0.021466219797730446,
0.005311918444931507,
0.025705574080348015,
-0.05873407796025276,
-0.012533248402178288,
-0.05529286339879036,
-0.02997688576579094,
-0.0016180691309273243,
0.06650826334953308,
0.013567625544965267,
-0.018206235021352768,
0.005300574004650116,
0.0038863515947014093,
-0.0023100494872778654,
-0.017032871022820473,
0.03525618091225624,
0.014963502995669842,
-0.03135634958744049,
-0.0033459069672971964,
0.011828439310193062,
-0.03959539905190468,
-0.11138064414262772,
-0.0086623290553689,
-0.002486206591129303,
0.03303908184170723,
-0.02197323739528656,
-0.05633576959371567,
-0.054174162447452545,
-0.008180979639291763,
0.012995833531022072,
0.025338400155305862,
0.0017231719102710485,
-0.0022308926563709974,
-0.02117827907204628,
-0.0177984070032835,
-0.009370015934109688,
-0.036442726850509644,
-0.09925346821546555,
-0.054821062833070755,
0.028698528185486794,
-0.04908047989010811,
0.0011826414847746491,
0.013976276852190495,
0.04853042960166931,
-0.06472254544496536,
-0.008761652745306492,
-0.03784264251589775,
-0.052833255380392075,
0.01679292507469654,
0.07687054574489594,
0.009010865353047848,
0.10762250423431396,
0.13696612417697906,
0.0004707694170065224,
0.034256935119628906,
0.026660148054361343,
0.02734255976974964,
-0.0007978602079674602,
-0.010758200660347939,
0.009815803728997707,
0.018003538250923157,
-0.04105925187468529,
0.08367843180894852,
0.02187633141875267,
-0.026090333238244057,
-0.11755827814340591,
-0.009512865915894508,
-0.011597291566431522,
0.009579923935234547,
0.024227427318692207,
-0.022173603996634483,
0.027908077463507652,
-0.007315259892493486,
0.02704102359712124,
0.025813568383455276,
0.031095700338482857,
-0.02354995533823967,
0.026210080832242966,
-0.02653473988175392,
-0.00799466297030449,
-0.054710932075977325,
0.06623267382383347,
0.016038792207837105,
-0.017938585951924324,
0.046984679996967316,
0.03868316859006882,
-0.017981939017772675,
-0.03266789764165878,
-0.07355505973100662,
-0.002126312116160989,
0.04734194278717041,
-0.0023191007785499096,
-0.0608091875910759,
0.023529812693595886,
0.07240691035985947,
-0.00848409067839384,
0.0016789633082225919,
0.05004480853676796,
0.02874971181154251,
-0.011886696331202984,
-0.006077589467167854,
-0.0344882570207119,
0.05388839542865753,
-0.007788230665028095,
-0.019826410338282585,
0.008959973230957985,
0.0399303212761879,
0.03453277051448822,
0.01096552237868309,
-0.030751973390579224,
0.001828127191402018,
0.050294797867536545,
-0.023158779367804527,
0.0632876306772232,
0.03229900076985359,
-0.09453748166561127,
0.014944933354854584,
-0.03527682647109032,
-0.048734381794929504,
-0.027478555217385292,
-0.040061648935079575,
-0.05762594938278198,
0.08009952306747437,
0.011689664795994759,
0.06410553306341171,
-0.05200764909386635,
-0.008717129938304424,
0.06493671238422394,
0.058901458978652954,
0.07471099495887756,
-0.012585124000906944,
0.08150545507669449,
0.006476797629147768,
0.026496924459934235,
0.05088115110993385,
0.045439500361680984,
0.011707620695233345,
-0.03481282293796539,
-0.014265846461057663,
0.0399937704205513,
0.02035597898066044,
-0.12589770555496216,
-0.03709037974476814,
-0.10479774326086044,
0.0002480049151927233,
-0.06993426382541656,
0.03965240344405174,
-0.0846896544098854,
0.11507203429937363,
-0.05376806855201721,
0.14180725812911987,
0.029773009940981865,
-0.09046725928783417,
-0.042504116892814636,
-0.042201220989227295,
0.01244402676820755,
0.07695259898900986,
0.041094131767749786,
0.07724232226610184,
-0.08771916478872299,
0.06951769441366196,
-0.020637258887290955,
0.03090355545282364,
0.12451590597629547,
-0.06241597980260849,
0.07130414992570877,
-0.04708537831902504,
-0.0024879074189811945,
0.09512582421302795,
-0.07446768134832382,
-0.023383622989058495,
0.05021204426884651,
0.009538239799439907,
0.0070749432779848576,
-0.03619838133454323,
-0.04695478826761246,
0.0741514042019844,
-0.005674873478710651,
-0.02239076793193817,
0.02009827271103859,
-0.073753722012043,
-0.009665189310908318,
0.08158918470144272,
-0.013611145317554474,
0.0340474396944046,
0.0003371440980117768,
-0.022701017558574677,
-0.032297879457473755,
-0.02491169236600399,
0.01929471082985401,
-0.017569245770573616,
0.023418989032506943,
0.00035269366344437003,
0.00485259247943759,
-0.0025309952907264233,
-0.005909170489758253,
0.013082081452012062,
-0.02468622848391533,
-0.026150796562433243,
-0.01086079515516758,
0.03243066743016243,
0.005071958526968956,
0.011247974820435047,
0.016830673441290855,
0.027675285935401917,
-0.04848194122314453,
0.05538446828722954,
-0.04461638256907463,
-0.0323663130402565,
0.007209787145256996,
-0.012013212777674198,
0.0088310232385993,
0.0335494764149189,
0.01422677468508482,
0.01815195009112358,
-0.019408944994211197,
0.008798551745712757,
-0.06605643033981323,
-0.005182667635381222,
-0.03327563777565956,
0.013140983879566193,
0.0046769133768975735,
-0.004168803337961435,
-0.003783569438382983,
-0.009217636659741402,
-0.012538926675915718,
-0.015658609569072723,
-0.022491980344057083,
0.006773892790079117,
0.018710320815443993,
-0.015622119419276714,
0.039933886379003525,
-0.004064943641424179,
-0.0025372507516294718,
-0.02846553362905979,
0.03162291646003723,
-0.002811071462929249,
0.04852108284831047,
-0.10319266468286514,
0.017078233882784843,
0.02862120419740677,
-0.0054883165284991264,
0.022510988637804985,
0.006995347328484058,
0.023668428882956505,
-0.027191217988729477,
0.022115051746368408,
0.037624940276145935,
-0.003881924320012331,
0.006584846880286932,
0.023463767021894455,
0.04907790571451187,
-0.011133511550724506,
0.026596978306770325,
0.009899954311549664,
-0.02696467563509941,
0.03558719530701637,
-0.04052558168768883,
0.0012787326704710722,
-0.0027762746904045343,
-0.022409113124012947,
-0.002629587659612298,
0.0021708952262997627,
0.0016017411835491657,
-0.023348750546574593,
0.0023136758245527744,
-0.014445792883634567,
-0.04231060668826103,
-0.028114762157201767,
0.003136327024549246,
-0.06983896344900131,
-0.01132799219340086,
-0.019209565594792366,
-0.01654425635933876,
-0.019760670140385628,
-0.0016596911009401083,
0.021474748849868774,
0.02231922559440136,
-0.007431838195770979,
-0.03226140886545181,
0.06314826756715775,
-0.010589173063635826,
-0.001764611224643886,
-0.016145480796694756,
0.0024208398535847664,
-0.012799016200006008,
0.033466827124357224,
-0.042450301349163055,
-0.005883431527763605,
-0.009611796587705612,
0.007878758013248444,
0.05460844188928604,
0.02356903627514839,
0.007219677325338125,
0.020605243742465973,
0.028425831347703934,
0.03264918178319931,
-0.016367107629776,
-0.05514877662062645,
0.029860712587833405,
-0.04805358126759529,
-0.0042647854425013065,
0.0034521857742220163,
0.055030595511198044,
0.015185580588877201,
0.06029418855905533,
0.011127656325697899,
0.04714256152510643,
-0.04110204055905342,
0.034122250974178314,
0.001898501068353653,
0.009141701273620129,
0.004757842049002647,
0.015616979449987411,
-0.031507041305303574,
-0.019971739500761032,
0.022542672231793404,
-0.011323758400976658,
-0.021456727758049965,
0.004701539874076843,
-0.05035648122429848,
0.014639431610703468,
0.026002969592809677,
0.028679169714450836,
0.014600188471376896,
-0.06521439552307129,
0.0014902169350534678,
-0.0005585648468695581,
0.024091117084026337,
-0.053413938730955124,
0.0033731430303305387,
0.024469975382089615,
-0.007272512651979923,
-0.006834026891738176,
0.02209281176328659,
0.010848253965377808,
-0.002661861013621092,
-0.005387516226619482,
-0.006366447079926729,
-0.022533169016242027,
0.030670909211039543,
0.007822660729289055,
-0.0009713253239169717,
0.02213934063911438,
-0.05064162611961365,
-0.024581272155046463,
0.021606100723147392,
0.015238315798342228,
-0.027422968298196793,
-0.06595579534769058,
0.02377425506711006,
-0.02558787353336811,
0.03140487149357796,
0.05026683211326599,
-0.03115696832537651,
-0.033994827419519424,
-0.0010346599156036973,
0.050021231174468994,
-0.05601527914404869,
-0.006608740892261267,
-0.03681709244847298,
-0.01124902069568634,
0.021084623411297798,
-0.00002523427247069776,
0.05566801875829697,
0.008867246098816395,
-0.010779713280498981,
0.02470686100423336,
-0.02695363573729992,
0.004565850831568241,
-0.0034998301416635513,
-0.02261902205646038,
-0.02315673977136612,
0.03535009175539017,
-0.06765488535165787,
0.031167151406407356,
0.03885161876678467,
-0.050847746431827545,
-0.009245806373655796,
0.032953858375549316,
0.015763862058520317,
-0.007448135409504175,
0.01946256309747696,
-0.008371951058506966,
-0.013678304851055145,
0.00827409140765667,
-0.0041604917496442795,
0.03997548297047615,
0.02914072573184967,
-0.035878412425518036,
-0.08808809518814087,
-0.00010963479144265875,
0.024881519377231598,
-0.021937254816293716,
0.016241000965237617,
-0.02620244398713112,
0.016210608184337616,
0.053626853972673416,
-0.035134218633174896,
-0.014231090433895588,
-0.05700704827904701,
0.0208374485373497,
0.012772477231919765,
0.01178722269833088,
0.041834719479084015,
-0.06264743208885193,
-0.03935163840651512,
-0.0033524290192872286,
-0.0069783576764166355,
-0.031044913455843925,
0.031139260157942772,
-0.03870297223329544,
0.061407484114170074,
0.023167278617620468,
0.008165557868778706,
0.03606715053319931,
-0.010403771884739399,
0.020369237288832664,
-0.0400080531835556,
-0.041040677577257156,
-0.0007491011638194323,
-0.010842254385352135,
-0.007208096329122782,
0.05400668829679489,
0.0037016156129539013,
0.06900756061077118,
0.031832076609134674,
0.05258309841156006,
0.002676306990906596,
-0.0028622490353882313,
0.03805244714021683,
-0.02605981007218361,
-0.018942829221487045,
0.01127717923372984,
0.010581470094621181,
0.026491647586226463,
0.008594668470323086,
-0.03446473553776741,
-0.006173684727400541,
0.03687712550163269,
-0.00019030130351893604,
0.010804642923176289,
-0.004516908898949623,
0.03417100012302399,
-0.006990729831159115,
-0.03577478975057602,
0.01714317500591278,
-0.025256367400288582,
-0.02496543899178505,
-0.03941347450017929,
-0.004461325239390135,
-0.018845276907086372,
0.007212620694190264,
-0.001977744046598673,
-0.07827065885066986,
0.02227702923119068,
0.04083577170968056,
0.01352579053491354,
0.00797352660447359,
-0.03616815805435181,
-0.027597377076745033,
0.0001539878430776298,
0.02551656775176525,
-0.01606626622378826,
0.0016788874054327607,
0.04956723377108574,
-0.008835075423121452,
0.035810861736536026,
-0.0022436247672885656,
-0.05152951925992966,
0.0013970970176160336,
0.05278840661048889,
0.04175493121147156,
-0.021812034770846367,
-0.050555892288684845,
0.00044088586582802236,
0.030212298035621643,
-0.007887588813900948,
-0.05429850146174431,
0.015365014784038067,
-0.016744771972298622,
0.008875405415892601,
-0.05821146443486214,
0.0005509064067155123,
0.070395328104496,
-0.03524957597255707,
0.0016727090114727616,
-0.048653047531843185,
-0.01016595121473074,
0.006046663969755173,
0.005591993220150471,
0.0012474347604438663,
0.02945164404809475,
0.023327380418777466,
-0.013612772338092327,
0.021520424634218216,
0.009882618673145771,
0.00675611849874258,
0.027608441188931465,
-0.01894538290798664,
0.009247117675840855,
0.014302554540336132,
-0.029933011159300804,
-0.007107622921466827,
0.05151531472802162,
-0.05376599356532097,
0.0007042280631139874,
-0.013835516758263111,
0.024342557415366173,
0.04130890592932701,
-0.08013143390417099,
0.020663650706410408,
-0.030266907066106796,
0.0040372745133936405,
0.01690194196999073,
0.043146658688783646,
0.010801544412970543,
0.033234983682632446,
0.034130845218896866,
0.03380893915891647,
0.06675545871257782,
0.025480490177869797,
-0.047084320336580276,
0.018958043307065964,
0.06996993720531464,
0.02725040353834629,
-0.011764605529606342,
0.02608357183635235,
-0.010429573245346546,
-0.008114349097013474,
-0.0488550029695034,
0.03303186967968941,
-0.04873443394899368,
0.014453904703259468,
0.0045023225247859955,
-0.000044048541894881055,
0.01137079019099474,
-0.0023585595190525055,
0.03553783521056175,
0.0015592625131830573,
-0.04125945642590523,
0.008309544995427132,
-0.011686730198562145,
0.00764557346701622,
-0.02662593685090542,
-0.023368941619992256,
0.019297970458865166,
-0.01995820179581642,
-0.019745277240872383,
0.054853394627571106,
-0.012646941468119621,
-0.02726002037525177,
0.0073991878889501095,
-0.023764224722981453,
-0.007056837435811758,
-0.05259407311677933,
-0.018482666462659836,
0.010022630915045738,
0.04405026137828827,
-0.01567486859858036,
0.04118913412094116,
0.04518619552254677,
-0.015848200768232346,
-0.02320881560444832,
-0.005407651886343956,
-0.0013478355249390006,
0.028161797672510147,
-0.032146796584129333,
-0.0031128081027418375,
0.004287331830710173,
-0.01858639158308506,
-0.037264950573444366,
-0.027163807302713394,
-0.023456165567040443,
0.01032894104719162,
0.019773166626691818,
-0.02640399895608425,
0.030548367649316788,
-0.03353193774819374,
0.03611225634813309,
-0.03852745518088341,
0.012954766862094402,
0.016581369563937187,
0.033003486692905426,
0.0053244284354150295,
-0.0076021370477974415,
-0.020515957847237587,
0.007418221794068813,
-0.030898267403244972,
-0.000811666832305491,
-0.025367340072989464,
-0.005558845121413469,
-0.0070289866998791695,
-0.020494844764471054,
0.014137648977339268,
0.004130643326789141,
-0.03796439617872238,
-0.02772197499871254,
0.018626220524311066,
0.02948157675564289,
0.02148793637752533,
-0.0025077161844819784,
-0.007613730616867542,
-0.013616389594972134,
-0.06195611506700516,
0.007754272781312466,
0.045368652790784836,
-0.003352181054651737,
0.015807650983333588,
0.02214944176375866,
-0.018058868125081062,
-0.038060761988162994,
-0.05506007745862007,
-0.013961020857095718,
0.018110103905200958,
0.005664132069796324,
0.005137490574270487,
0.002237761626020074,
0.05218791216611862,
0.02474275603890419,
0.0037740827538073063,
-0.00023533919011242688,
-0.0020635658875107765,
-0.010891768150031567,
0.019629711285233498,
-0.026097236201167107,
0.00245441566221416,
0.01609196700155735,
-0.02748766914010048,
-0.04185100644826889,
-0.030987100675702095,
0.039006929844617844,
0.0067385779693722725,
-0.0024036294780671597,
-0.08208002150058746,
-0.0195192601531744,
-0.01058936957269907,
-0.005485566798597574,
-0.05945741385221481,
0.03192995861172676,
0.028573520481586456,
0.021902622655034065,
0.0483161024749279,
0.017919642850756645,
-0.017742177471518517,
0.01892823539674282,
-0.012302556075155735,
-0.01924334093928337,
0.007641918491572142,
0.009822656400501728,
-0.011469018645584583,
-0.016604438424110413,
0.049142204225063324,
-0.0021631086710840464,
-0.08516617864370346,
-0.00479097617790103,
0.04254727065563202,
-0.00929836742579937,
0.040168873965740204,
-0.01647905260324478,
-0.0028341691941022873,
0.0433540865778923,
0.04897524416446686,
0.015611101873219013,
0.03990728780627251,
-0.0027420222759246826,
-0.03012562356889248,
-0.0385969914495945,
0.014553852379322052,
0.011351686902344227,
-0.007714116480201483,
0.048408716917037964,
-0.0077047888189554214,
0.02911263145506382,
0.03400649130344391,
-0.03985109552741051,
0.013690819963812828,
0.0011246175272390246,
-0.023399095982313156,
-0.01320741605013609,
-0.010175758972764015,
-0.00017509613826405257,
-0.03506731614470482,
-0.01683696359395981,
0.0077934847213327885,
0.020987816154956818,
-0.0041139498353004456,
-0.05136411264538765,
0.0037937448360025883,
-0.020657213404774666,
0.02713659219443798,
0.015107247978448868,
-0.00891647208482027,
-0.005923317279666662,
0.07922147959470749,
0.005139743443578482,
-0.024057475849986076,
0.013850422576069832
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | Running inference At inference time, the test sentence passes through the spaCy aspect candidate extraction phase, resulting in test instances using the template aspect_candidate:test_sentence. Next, non-aspects are filtered by the aspect/non-aspect classifier. Finally, the extracted aspects are fed to the sentiment polarity classifier that predicts the sentiment polarity per aspect. In practice, this means the model can receive normal text as input, and output aspects and their sentiments: Model Input: "their dinner specials are fantastic." Model Output: [{'span': 'dinner specials', 'polarity': 'positive'}] | [
0.015302048996090889,
-0.057619139552116394,
0.015316355042159557,
0.0038387568201869726,
0.04327193275094032,
0.056334201246500015,
0.032044149935245514,
0.05509290471673012,
-0.07610826939344406,
-0.003956677857786417,
-0.0708819255232811,
0.03461809828877449,
0.03189239278435707,
0.07517175376415253,
-0.007533152587711811,
0.006648377049714327,
0.03282506763935089,
0.006514404434710741,
-0.0015870402567088604,
0.035367198288440704,
0.03563717380166054,
-0.06512158364057541,
0.021342778578400612,
0.02387448586523533,
0.06283427029848099,
-0.008629335090517998,
0.035910025238990784,
0.03658689931035042,
-0.061739083379507065,
-0.011213185265660286,
-0.07290619611740112,
0.009410175494849682,
-0.07217878848314285,
-0.03965301066637039,
-0.014204800128936768,
0.016048701480031013,
-0.1256430298089981,
0.0012174685252830386,
0.020418012514710426,
-0.012378825806081295,
0.017296917736530304,
-0.05470820888876915,
-0.058604829013347626,
-0.01362613495439291,
-0.02258124202489853,
-0.08392741531133652,
-0.12606726586818695,
0.08791319280862808,
-0.059032488614320755,
-0.022978750988841057,
-0.06142623722553253,
0.10005185753107071,
-0.0707763209939003,
-0.05597313866019249,
0.007911276072263718,
0.009241638705134392,
0.007342932280153036,
-0.02385883405804634,
0.06682805716991425,
0.015864966437220573,
-0.08096833527088165,
0.0038363197818398476,
-0.04987392574548721,
-0.0002796364715322852,
0.06930024921894073,
0.0334063358604908,
-0.025188928470015526,
0.026823073625564575,
-0.04433146491646767,
-0.022179968655109406,
-0.017147012054920197,
0.027750089764595032,
0.005292699672281742,
0.05571556091308594,
0.04284000024199486,
0.029534928500652313,
-0.00025450196699239314,
0.05095111206173897,
-0.0052286903373897076,
0.04579448699951172,
-0.016522590070962906,
-0.04028875753283501,
0.015674689784646034,
0.10418276488780975,
0.07177767902612686,
0.03370871767401695,
0.049448058009147644,
0.0007237005047500134,
-0.03669947013258934,
-0.000530622317455709,
0.037309613078832626,
-0.1049976497888565,
0.022842736914753914,
0.0736701637506485,
0.01931149512529373,
0.002632792806252837,
0.040538836270570755,
0.05775038152933121,
-0.04520087316632271,
-0.06828444451093674,
-0.00969606637954712,
-0.035269178450107574,
-0.03354252129793167,
-0.04812830686569214,
-0.0734516903758049,
0.02950158528983593,
-0.012796399183571339,
-0.09141085296869278,
-0.007110462058335543,
0.06675166636705399,
0.011659199371933937,
0.01191688608378172,
0.019315294921398163,
0.10284899175167084,
-0.07822674512863159,
0.0028608834836632013,
-0.028639668598771095,
0.020815951749682426,
0.014464459381997585,
-0.0469365268945694,
0.0494907945394516,
0.05979003757238388,
0.07513121515512466,
0.008024518378078938,
0.01411879900842905,
0.00993607472628355,
0.07240084558725357,
0.005808374844491482,
0.02573106437921524,
-0.027094177901744843,
0.004559425171464682,
-0.02265673317015171,
0.01926874928176403,
0.014948590658605099,
-0.007734604179859161,
-0.050492797046899796,
-0.023483965545892715,
-0.07963830232620239,
0.07565385103225708,
-0.06380448490381241,
-0.046779971569776535,
0.0735466405749321,
-0.06211699917912483,
-0.0071232011541724205,
0.050648488104343414,
0.03475044295191765,
0.027960950508713722,
0.02742466889321804,
-0.053694240748882294,
0.003658497938886285,
-0.12358490377664566,
0.01113945059478283,
0.01209045760333538,
-0.073679618537426,
0.06356433779001236,
0.01818022131919861,
-0.0023830290883779526,
0.002588781761005521,
-0.037823386490345,
-0.02507886290550232,
0.00021574474521912634,
-0.021669374778866768,
-0.04034492373466492,
-0.007098544389009476,
0.0692533403635025,
0.03945618495345116,
0.02063952572643757,
-0.002045067260041833,
0.019967036321759224,
-0.0032649929635226727,
0.03638214245438576,
-0.023114148527383804,
0.050907231867313385,
-0.05302564799785614,
0.021322408691048622,
0.011296750977635384,
-0.04827498272061348,
0.007103247102349997,
-0.0014822266530245543,
-0.024101458489894867,
-0.04072639346122742,
0.04780535399913788,
-0.0891013815999031,
-0.029711876064538956,
0.028867386281490326,
-0.07098302245140076,
0.028941340744495392,
-0.04852991923689842,
-0.005084547679871321,
0.007715942338109016,
-0.026174111291766167,
-0.04535193368792534,
0.0639047771692276,
-0.041888292878866196,
0.030603187158703804,
-0.09935065358877182,
-0.031235983595252037,
0.06878474354743958,
0.0038724348414689302,
0.047060128301382065,
0.04062630981206894,
0.014010225422680378,
0.045947473496198654,
0.0035375177394598722,
-0.00011295737931504846,
0.03229298070073128,
0.0272386372089386,
-0.06270346790552139,
0.00745953107252717,
0.04486943781375885,
-0.03862430527806282,
-0.04754352569580078,
0.02161606214940548,
-0.0679221898317337,
-0.048573341220617294,
-0.02259966917335987,
0.011057217605412006,
0.0013788860524073243,
0.011900845915079117,
-0.07106857001781464,
0.18581177294254303,
-0.08363698422908783,
0.031346820294857025,
-0.04287666827440262,
-0.011481697671115398,
0.014376679435372353,
0.08128521591424942,
0.05698662996292114,
0.05339100956916809,
-0.0035963011905550957,
0.03653152659535408,
0.007677590008825064,
-0.014454533345997334,
-0.021176772192120552,
-0.02194915898144245,
-0.05248177796602249,
0.06768366694450378,
0.022641723975539207,
0.08674759417772293,
-0.03715220466256142,
-0.007816738449037075,
0.014611329883337021,
-0.011506854556500912,
0.07966183871030807,
-0.0538603812456131,
-0.028745077550411224,
0.06686925143003464,
-0.009787825867533684,
-0.06006569787859917,
-0.014136885292828083,
-0.07489973306655884,
-0.0003757439844775945,
0.010882383212447166,
-0.033264968544244766,
0.008243200369179249,
0.010653999634087086,
0.030142420902848244,
-0.03541254252195358,
0.006692225579172373,
0.0007129929726943374,
-0.020726939663290977,
-0.027013443410396576,
-0.03229135647416115,
-0.042616840451955795,
0.0030050838831812143,
-0.0015246968250721693,
0.007630934473127127,
0.008920630440115929,
-0.007065370678901672,
0.025578627362847328,
-0.008362426422536373,
-0.04864643141627312,
0.011712613515555859,
-0.01638546586036682,
0.010804133489727974,
0.013847320340573788,
-0.0068102446384727955,
-0.014570072293281555,
-0.0028001267928630114,
-0.04003190994262695,
-0.038504958152770996,
-0.04668660834431648,
0.05848390981554985,
0.03126863017678261,
0.002230076352134347,
-0.015924112871289253,
0.04091472923755646,
-0.06282670050859451,
-0.038835130631923676,
0.03389402851462364,
0.0065035768784582615,
0.024962730705738068,
0.0010377400321885943,
-0.011154450476169586,
0.054426081478595734,
0.03575783595442772,
-0.0034888943191617727,
0.032122984528541565,
-0.005541353486478329,
0.025480369105935097,
0.014400837942957878,
0.001937973196618259,
-0.013102772645652294,
-0.007951628416776657,
-0.03494298830628395,
0.041878148913383484,
-0.004396313335746527,
0.029664505273103714,
-0.09188704937696457,
-0.025129342451691628,
0.02212628722190857,
-0.012687287293374538,
0.0145919444039464,
-0.01921502687036991,
0.055075615644454956,
-0.0022315450478345156,
-0.001812486443668604,
0.028269171714782715,
-0.05111921951174736,
-0.016080019995570183,
-0.010540176182985306,
0.00783289223909378,
-0.0333147756755352,
0.017925618216395378,
-0.0016758738784119487,
0.015548654831945896,
0.0014853294705972075,
0.032642681151628494,
-0.006020537111908197,
0.05707092210650444,
-0.02096807211637497,
-0.003403116250410676,
0.0041120280511677265,
0.025082070380449295,
0.026081636548042297,
0.041481465101242065,
0.023024918511509895,
-0.06167549267411232,
0.001404121401719749,
-0.0020383032970130444,
-0.01177054550498724,
0.013416072353720665,
-0.014921935275197029,
-0.016687868162989616,
-0.005525375250726938,
0.025861704722046852,
0.007174640893936157,
0.07005993276834488,
-0.00006947170186322182,
0.03129156678915024,
0.01950674131512642,
-0.022041089832782745,
-0.0020076280925422907,
-0.008017824962735176,
-0.000334865995682776,
0.007839263416826725,
-0.014578429982066154,
-0.011653965339064598,
-0.030526507645845413,
-0.0023190155625343323,
0.00439764279872179,
0.0486215315759182,
-0.04489275813102722,
0.011440900154411793,
0.018066026270389557,
-0.0017054517520591617,
-0.017286259680986404,
-0.03643738850951195,
-0.021629508584737778,
-0.00010307483171345666,
0.001329240039922297,
-0.004326616879552603,
-0.009567061439156532,
0.05267925187945366,
0.07186543196439743,
0.011118507012724876,
-0.007298818323761225,
0.006426357664167881,
-0.010290991514921188,
0.03817779943346977,
-0.02532256953418255,
0.012033913284540176,
-0.003914535976946354,
-0.028235234320163727,
-0.03746259585022926,
-0.0006798773538321257,
0.06449785828590393,
0.00031300249975174665,
-0.02937908098101616,
0.008555329404771328,
-0.016500452533364296,
0.00021104200277477503,
-0.022008351981639862,
0.017363984137773514,
-0.021808866411447525,
0.001041205832734704,
-0.006915797013789415,
0.023656832054257393,
-0.007861215621232986,
-0.029362110421061516,
0.009561578743159771,
0.00035797589225694537,
-0.026090245693922043,
0.002078163670375943,
-0.00012793946370948106,
0.00856719259172678,
0.022540541365742683,
-0.021751170977950096,
-0.02265499159693718,
-0.01706136204302311,
0.019907204434275627,
-0.03519565984606743,
0.043795570731163025,
-0.006781609263271093,
-0.02003902569413185,
-0.020534737035632133,
0.03172385320067406,
-0.03927643224596977,
0.022328637540340424,
0.016063766553997993,
-0.0068309432826936245,
0.02322063222527504,
0.039032209664583206,
0.02033880539238453,
-0.016455326229333878,
0.014595049433410168,
-0.002276052488014102,
0.009437359869480133,
-0.0075483317486941814,
0.009842504747211933,
-0.04420623928308487,
0.016180451959371567,
-0.01084674522280693,
0.010939556173980236,
-0.0004040957137476653,
0.00097680336330086,
-0.004864023998379707,
-0.01600852608680725,
0.020192690193653107,
0.005814384203404188,
0.027349749580025673,
0.018573809415102005,
0.01844230480492115,
0.022922305390238762,
0.005415201187133789,
0.009745432995259762,
0.023095685988664627,
0.005887536332011223,
-0.02798127382993698,
0.013957294635474682,
-0.03070741891860962,
-0.014221581630408764,
-0.02328658103942871,
-0.011151650920510292,
-0.03297805413603783,
-0.006297020241618156,
-0.019177548587322235,
0.029289236292243004,
0.003915032371878624,
0.0333404466509819,
-0.02421834133565426,
-0.010440879501402378,
0.023965738713741302,
-0.015407669357955456,
-0.043556421995162964,
0.011974748224020004,
0.015870969742536545,
0.05991567671298981,
-0.006550768855959177,
0.020653458312153816,
-0.04101799055933952,
0.0193257424980402,
-0.004942648578435183,
-0.051960449665784836,
-0.05228045955300331,
-0.06706685572862625,
-0.030206039547920227,
0.008811048232018948,
-0.009440467692911625,
-0.00457335077226162,
0.0018349343445152044,
-0.03518735617399216,
0.0001918205089168623,
0.01520296186208725,
0.08841588348150253,
0.005049026105552912,
-0.03408823534846306,
-0.0016630906611680984,
-0.01364801824092865,
-0.045424532145261765,
0.035968173295259476,
-0.0027706893160939217,
0.010040391236543655,
0.0352039560675621,
0.018839145079255104,
0.021539712324738503,
0.014151590876281261,
0.04960865527391434,
0.001309725339524448,
0.0021037072874605656,
0.01629285328090191,
-0.07161404937505722,
0.005867821630090475,
-0.011920418590307236,
-0.010386866517364979,
0.04690728709101677,
-0.025679536163806915,
-0.018122060224413872,
0.012130791321396828,
0.04062580689787865,
-0.029161600396037102,
-0.031005747616291046,
0.020642828196287155,
-0.008276393637061119,
0.004699587356299162,
-0.016894537955522537,
-0.025597138330340385,
-0.03374277800321579,
0.007576621603220701,
-0.07788526266813278,
-0.01728987693786621,
0.031205635517835617,
0.009656674228608608,
-0.060993436723947525,
-0.03375420719385147,
0.009974169544875622,
-0.012738910503685474,
0.04090335592627525,
0.023707207292318344,
-0.027789928019046783,
-0.02468375489115715,
0.021655164659023285,
0.027497686445713043,
-0.033984046429395676,
0.05200694128870964,
0.009509589523077011,
0.041712477803230286,
0.0027808903250843287,
0.03933238983154297,
-0.0145305460318923,
0.00184286804869771,
-0.0033385346177965403,
0.020327385514974594,
0.0008641773601993918,
-0.04532095044851303,
0.01586129330098629,
0.060927391052246094,
-0.015522386878728867,
-0.0016740603605285287,
-0.012086930684745312,
-0.006215457338839769,
-0.008600052446126938,
-0.027292916551232338,
0.04800693318247795,
0.03011486306786537,
-0.011746162548661232,
-0.037231653928756714,
-0.016660433262586594,
0.001739334431476891,
0.036433909088373184,
-0.002901745494455099,
0.007501922082155943,
0.010403928346931934,
0.04983976110816002,
0.05414832383394241,
0.013195413164794445,
0.033226776868104935,
0.043249309062957764,
0.0033680039923638105,
-0.04381107538938522,
-0.02634553425014019,
0.03624490275979042,
-0.06967359036207199,
0.005796667654067278,
0.020298732444643974,
-0.027844339609146118,
0.009708506986498833,
0.029584266245365143,
0.04229579120874405,
-0.008912157267332077,
0.00429774122312665,
0.012011952698230743,
0.0009163806098513305,
0.0004678728000726551,
-0.025510819628834724,
0.07798132300376892,
0.03327601030468941,
0.022187458351254463,
0.031282927840948105,
0.06278228014707565,
0.021826399490237236,
0.022187812253832817,
-0.019700506702065468,
-0.003821177175268531,
0.08933886140584946,
0.008938043378293514,
-0.0036713441368192434,
-0.022596972063183784,
-0.02317015267908573,
0.03171246126294136,
-0.03645513579249382,
-0.053955551236867905,
-0.025367330759763718,
0.0013295443495735526,
0.03224305808544159,
0.008459009230136871,
0.025688322260975838,
-0.03438771143555641,
0.009209834970533848,
0.04091105982661247,
0.035704828798770905,
0.002195298671722412,
-0.05187852680683136,
0.022997992113232613,
0.017981305718421936,
0.0011022052494809031,
0.04671624302864075,
-0.03201899304986,
0.026876602321863174,
0.025927014648914337,
0.014554916881024837,
0.07186494767665863,
0.011467482894659042,
0.0631667748093605,
0.04293302446603775,
0.004389914683997631,
-0.005573765840381384,
0.026983024552464485,
-0.015865793451666832,
0.009491735137999058,
0.0204781387001276,
-0.0037722645793110132,
-0.020579887554049492,
-0.0006771265179850161,
-0.013163711875677109,
0.0012322510592639446,
0.02935234270989895,
-0.012130283750593662,
0.019404830411076546,
0.0675651878118515,
0.028156528249382973,
-0.0661725103855133,
0.00583902420476079,
-0.03122963197529316,
0.005588925909250975,
0.006384346168488264,
-0.0015838987892493606,
-0.0012588748941197991,
-0.04255257546901703,
-0.04053139314055443,
-0.006265453528612852,
0.0012563763884827495,
0.012372516095638275,
0.018158070743083954,
0.015236069448292255,
0.05187921226024628,
0.021642647683620453,
0.018606776371598244,
0.0008597953710705042,
0.02667892351746559,
0.0014015678316354752,
-0.018166344612836838,
0.013742086477577686,
-0.03151300176978111,
-0.03839264437556267,
-0.06041637435555458,
-0.020468905568122864,
-0.014980423264205456,
-0.013178825378417969,
0.007686165161430836,
0.029117168858647346,
-0.018373893573880196,
-0.012275803834199905,
-0.005400808062404394,
-0.011146600358188152,
0.016697803512215614,
0.009591571986675262,
0.003794778836891055,
-0.021788064390420914,
-0.0043211220763623714,
0.0004245206364430487,
-0.01492160651832819,
-0.01851595565676689,
0.033678386360406876,
0.07881913334131241,
0.014686436392366886,
-0.05290473252534866,
-0.011986454017460346,
-0.009901951998472214,
-0.0011462062830105424,
0.0064034778624773026,
0.04137153923511505,
-0.0130090257152915,
0.00521090766415,
-0.02705136500298977,
0.016544638201594353,
-0.015585353597998619,
-0.0005826085107401013,
-0.008528739213943481,
-0.03950049355626106,
-0.011246021836996078,
0.031208546832203865,
-0.04280146211385727,
0.018798574805259705,
-0.029547205194830894,
-0.007048172876238823,
0.005115478299558163,
0.024716580286622047,
-0.012845749966800213,
0.028786910697817802,
0.08372990787029266,
0.061239417642354965,
0.010507662780582905,
0.03454189375042915,
-0.04351352900266647,
-0.00009841261635301635,
0.011572505347430706,
0.03608234226703644,
0.03893702104687691,
0.012159519828855991,
-0.014377196319401264,
0.01107474509626627,
0.02687152847647667,
-0.02532348223030567,
-0.06455162912607193,
0.002447395818307996,
0.04295787960290909,
-0.020461812615394592,
-0.03751305490732193,
0.01504595298320055,
0.03825176879763603,
-0.027635477483272552,
0.03927306830883026,
0.0027757540810853243,
-0.0029200410936027765,
0.008766215294599533,
0.029016075655817986,
-0.061819422990083694,
-0.029352299869060516,
-0.005165189038962126,
0.011744864284992218,
0.01189294271171093,
0.04515191167593002,
0.05614310875535011,
-0.07355844974517822,
0.017095714807510376,
-0.004987515974789858,
0.01657927967607975,
-0.03863128274679184,
-0.10603037476539612,
-0.0060227252542972565,
0.024720504879951477,
0.006352889351546764,
-0.03448410704731941,
-0.0243136715143919,
-0.00470555666834116,
-0.054677996784448624,
-0.016071682795882225,
-0.01039993204176426,
0.0047233495861291885,
0.0270091462880373,
0.011403772048652172,
-0.042616575956344604,
0.03484093025326729,
0.058948956429958344,
-0.026703743264079094,
0.004842782858759165,
0.020019423216581345
] |
SetFitABSA: Few-Shot Aspect Based Sentiment Analysis using SetFit | ronenlap | December 6, 2023 | setfit-absa | research, nlp | https://huggingface.co/blog/setfit-absa | References * Maria Pontiki, Dimitris Galanis, John Pavlopoulos, Harris Papageorgiou, Ion Androutsopoulos, and Suresh Manandhar. 2014. SemEval-2014 task 4: Aspect based sentiment analysis. In Proceedings of the 8th International Workshop on Semantic Evaluation (SemEval 2014), pages 27–35. * Siddharth Varia, Shuai Wang, Kishaloy Halder, Robert Vacareanu, Miguel Ballesteros, Yassine Benajiba, Neha Anna John, Rishita Anubhai, Smaranda Muresan, Dan Roth, 2023 "Instruction Tuning for Few-Shot Aspect-Based Sentiment Analysis". https://arxiv.org/abs/2210.06629 * Ehsan Hosseini-Asl, Wenhao Liu, Caiming Xiong, 2022. "A Generative Language Model for Few-shot Aspect-Based Sentiment Analysis". https://arxiv.org/abs/2204.05356 * Lewis Tunstall, Nils Reimers, Unso Eun Seo Jo, Luke Bates, Daniel Korat, Moshe Wasserblat, Oren Pereg, 2022. "Efficient Few-Shot Learning Without Prompts". https://arxiv.org/abs/2209.11055 | [
0.08530900627374649,
-0.04613007605075836,
0.016602598130702972,
-0.027582697570323944,
0.030542541295289993,
0.06543613225221634,
0.022892776876688004,
0.03184223175048828,
0.001821612473577261,
-0.021251780912280083,
-0.09555453807115555,
0.013681226409971714,
-0.04133418947458267,
0.01532847248017788,
-0.009922945871949196,
0.01330013107508421,
0.02185625582933426,
-0.000038069221773184836,
0.016957895830273628,
0.0023887152783572674,
-0.040895137935876846,
-0.026541978120803833,
0.07030647993087769,
0.024010607972741127,
-0.029903341084718704,
-0.04016159847378731,
0.03845040872693062,
0.017874825745821,
-0.08392862975597382,
0.013822815380990505,
-0.06196748837828636,
0.024971311911940575,
0.004260523244738579,
0.012032962404191494,
-0.07826720923185349,
-0.044274527579545975,
-0.08918475359678268,
0.04116547480225563,
0.03728652372956276,
0.02970031462609768,
0.0014382046647369862,
-0.07188612222671509,
0.016617827117443085,
0.019671451300382614,
-0.0008013587794266641,
-0.06541618704795837,
-0.11128801852464676,
0.08938287198543549,
-0.018684597685933113,
0.014650803059339523,
-0.028857769444584846,
0.0394454151391983,
-0.0008426978602074087,
0.008879192173480988,
0.021521853283047676,
0.005825300235301256,
0.042895350605249405,
-0.10201822966337204,
0.07713493704795837,
0.006476420909166336,
-0.012124309316277504,
0.0134797478094697,
-0.04521270468831062,
0.0019962454680353403,
0.07499389350414276,
0.0378013476729393,
-0.0020251935347914696,
0.058312173932790756,
-0.06932360678911209,
-0.012265229597687721,
0.021457573398947716,
0.015434086322784424,
-0.04331099987030029,
0.008778251707553864,
0.02533615380525589,
-0.02506006695330143,
-0.0027056860271841288,
0.046057697385549545,
0.020528126507997513,
0.04325298219919205,
0.02614421211183071,
-0.02008810080587864,
0.123590387403965,
0.08057041466236115,
0.03345784917473793,
0.05872397497296333,
0.08570927381515503,
-0.0038634222000837326,
-0.04622742533683777,
-0.0021454093512147665,
0.0024110134690999985,
-0.10484027117490768,
0.010191728360950947,
0.007364977151155472,
0.028302373364567757,
-0.05152459442615509,
0.05907061696052551,
0.05675331875681877,
0.046690620481967926,
-0.03298225253820419,
0.012416764162480831,
0.01065717451274395,
0.005744979716837406,
-0.09861898422241211,
-0.030538441613316536,
0.006904575042426586,
-0.006628687959164381,
-0.03531355410814285,
-0.046125806868076324,
0.06586386263370514,
-0.010678072459995747,
0.08907277137041092,
0.051868196576833725,
0.05974390357732773,
-0.06587740778923035,
0.07281758636236191,
0.024432402104139328,
0.002738908864557743,
-0.02001446671783924,
-0.006697084754705429,
-0.02903156727552414,
0.10380350053310394,
0.07361991703510284,
-0.005112880375236273,
0.04540811479091644,
0.06991058588027954,
0.060512155294418335,
-0.010891069658100605,
-0.03537580370903015,
-0.0550772100687027,
-0.03828304260969162,
-0.014549660496413708,
0.002119430573657155,
-0.02319733425974846,
-0.014465889893472195,
-0.0030756827909499407,
-0.020767126232385635,
-0.08057280629873276,
-0.005162620916962624,
0.02219613827764988,
-0.013752932660281658,
0.04634600877761841,
-0.02191435918211937,
-0.00662444019690156,
0.07422739267349243,
-0.032055728137493134,
-0.04367129132151604,
0.01665383391082287,
0.027013543993234634,
-0.027545403689146042,
-0.054211970418691635,
0.025067344307899475,
-0.06437612324953079,
-0.04265867918729782,
-0.007502636406570673,
0.046735960990190506,
-0.028648827224969864,
0.010104257613420486,
-0.04626918584108353,
-0.0042025186121463776,
0.03251497074961662,
0.02523447759449482,
-0.018449408933520317,
-0.052102766931056976,
0.025826413184404373,
0.016287844628095627,
0.01666855439543724,
0.040856242179870605,
0.0013366731582209468,
-0.0305909626185894,
0.06757865101099014,
-0.02517637424170971,
0.08466948568820953,
-0.05539904534816742,
-0.07375992834568024,
0.015806468203663826,
0.03621886670589447,
0.02941088005900383,
0.05994345620274544,
-0.02677597850561142,
-0.04819478094577789,
0.01508087757974863,
0.020351048558950424,
0.007486519403755665,
0.019629016518592834,
-0.07024362683296204,
0.07055754214525223,
-0.01674288883805275,
0.006147625390440226,
-0.022938771173357964,
-0.10554172098636627,
0.018944308161735535,
0.06885971873998642,
-0.0035875074099749327,
0.005394928622990847,
-0.09023406356573105,
-0.032266709953546524,
0.1527966856956482,
0.05414392426609993,
0.0511489138007164,
0.07617352902889252,
0.04932752251625061,
0.06829813867807388,
0.035645369440317154,
-0.004409640096127987,
0.016009410843253136,
0.026956140995025635,
0.06407531350851059,
-0.005340929608792067,
0.05382678285241127,
-0.05260062590241432,
-0.10454408824443817,
-0.000770788115914911,
-0.04379625618457794,
-0.008899133652448654,
-0.016442952677607536,
0.03906727582216263,
-0.019720878452062607,
0.05768081173300743,
-0.002534957602620125,
0.13656704127788544,
-0.0716337189078331,
-0.04622296988964081,
0.013819348998367786,
-0.01086900569498539,
0.04248334467411041,
0.09714291989803314,
-0.0078046973794698715,
0.0854310616850853,
-0.0367194302380085,
0.02313135378062725,
-0.05383683368563652,
-0.014476646669209003,
0.020954344421625137,
0.02791767381131649,
0.028025414794683456,
0.01585742086172104,
-0.029150376096367836,
0.07565940916538239,
-0.014435985125601292,
-0.0014694128185510635,
0.06348862498998642,
-0.004396738950163126,
0.07486213743686676,
-0.041541870683431625,
-0.08887007087469101,
0.026972513645887375,
-0.0190004650503397,
-0.06489788740873337,
0.03403692692518234,
-0.06435129791498184,
0.07297071069478989,
-0.014604747295379639,
-0.04600249603390694,
-0.01216109935194254,
0.014966200105845928,
0.04195266589522362,
-0.024017561227083206,
0.010275288484990597,
-0.00538182258605957,
-0.01633964478969574,
0.0032620688434690237,
-0.03583258390426636,
-0.02704595774412155,
-0.0035989638417959213,
-0.0020663028117269278,
0.03885943442583084,
0.004175894428044558,
0.04019995778799057,
0.05631779879331589,
-0.009663514792919159,
0.004130698274821043,
0.016277767717838287,
0.025267574936151505,
-0.03631388023495674,
0.00390757666900754,
0.02094772644340992,
0.005452283658087254,
-0.047333166003227234,
-0.04374633729457855,
-0.0234978087246418,
-0.04578542709350586,
0.006709909997880459,
0.0026427877601236105,
0.05816812813282013,
-0.03290007635951042,
0.03732002153992653,
-0.03987441956996918,
0.003194590099155903,
0.029106108471751213,
0.0026199608109891415,
0.007535360753536224,
-0.015425239689648151,
-0.0027153713162988424,
0.008439265191555023,
-0.01963946409523487,
-0.006260143127292395,
0.020274095237255096,
-0.01564962975680828,
0.011041315272450447,
-0.02046099491417408,
0.017625873908400536,
-0.012467772699892521,
-0.008436419069766998,
-0.003513641655445099,
0.010446769185364246,
0.031247522681951523,
0.07031271606683731,
-0.10904455184936523,
-0.04334350302815437,
0.007688925135880709,
0.03564935922622681,
0.004736560862511396,
-0.02278020605444908,
0.09884729236364365,
-0.014190935529768467,
-0.03119862638413906,
-0.006870906800031662,
0.027436837553977966,
0.01679207757115364,
0.0031656604260206223,
-0.017888441681861877,
-0.009821380488574505,
-0.03341098874807358,
-0.024498596787452698,
0.010663097724318504,
0.02134820632636547,
-0.008318201638758183,
0.001629116595722735,
0.06206687167286873,
-0.0019102079095318913,
0.0029044952243566513,
-0.010332684963941574,
0.01829742081463337,
0.011505959555506706,
0.014620702713727951,
0.0376429408788681,
-0.043301839381456375,
0.020817849785089493,
0.012040754780173302,
-0.029697734862565994,
0.05997275933623314,
-0.002211545826867223,
-0.018177097663283348,
-0.009741296991705894,
0.02596050500869751,
0.008583086542785168,
0.013548478484153748,
0.011643636971712112,
-0.007234783843159676,
0.011993295513093472,
0.003994256258010864,
-0.011437698267400265,
0.0015450989594683051,
0.010096075013279915,
-0.009099384769797325,
0.002823498798534274,
-0.032338421791791916,
-0.00950357224792242,
-0.009404684416949749,
-0.0073548536747694016,
0.06629481911659241,
0.022137437015771866,
-0.006783624179661274,
-0.03130323439836502,
-0.0309476125985384,
0.01275330875068903,
-0.000977461808361113,
-0.01601632870733738,
0.037183016538619995,
0.003929093014448881,
-0.025508195161819458,
-0.02203098125755787,
0.04621108993887901,
0.006684107705950737,
0.03734215721487999,
-0.036667779088020325,
0.038563717156648636,
-0.02845524623990059,
0.0466378778219223,
0.0019896766170859337,
0.010432504117488861,
-0.009515355341136456,
0.005090359598398209,
-0.03598003089427948,
-0.022659655660390854,
0.024507997557520866,
-0.00574018619954586,
-0.023297615349292755,
-0.012367790564894676,
-0.025079892948269844,
-0.008080891333520412,
-0.0013791568344458938,
-0.003052704269066453,
0.009735091589391232,
-0.025967847555875778,
-0.0059510585851967335,
0.06998199224472046,
0.01848188042640686,
0.013268954120576382,
-0.010532088577747345,
0.00777276000007987,
0.0004896847531199455,
0.03488853946328163,
0.06277046352624893,
0.010993201285600662,
0.0377177968621254,
0.008374723605811596,
0.020369119942188263,
-0.024056389927864075,
0.0011170570505782962,
-0.011074572801589966,
-0.004832009319216013,
0.036582861095666885,
-0.019987531006336212,
0.006878511980175972,
-0.01934600993990898,
-0.007517166901379824,
-0.004794884007424116,
-0.05103876069188118,
-0.001983966212719679,
-0.009634566493332386,
0.021929845213890076,
0.0040149567648768425,
-0.011804030276834965,
0.006144442595541477,
-0.06435030698776245,
0.02869487553834915,
-0.05174512416124344,
0.007082778494805098,
-0.03684060648083687,
0.011157914996147156,
0.024168526753783226,
-0.029442783445119858,
-0.053791794925928116,
0.028730303049087524,
-0.03766380622982979,
-0.03082270734012127,
-0.0066566928289830685,
-0.03446323797106743,
0.03086310438811779,
0.006899888161569834,
-0.00576341338455677,
0.022488541901111603,
-0.058843355625867844,
-0.0009610411361791193,
0.008079905062913895,
-0.03349677845835686,
0.01683983951807022,
-0.013808815740048885,
-0.001346548437140882,
-0.03983564302325249,
0.01311999000608921,
0.006285865791141987,
-0.012224400416016579,
0.002271372824907303,
0.004868313204497099,
0.03885330259799957,
0.07321171462535858,
-0.005667173303663731,
-0.037656720727682114,
0.0046312240883708,
-0.017492713406682014,
-0.0045275078155100346,
-0.028760623186826706,
0.022430675104260445,
0.011789991520345211,
0.05160117149353027,
0.0019406341016292572,
-0.0013351314701139927,
-0.08426103740930557,
0.022279508411884308,
-0.05000580474734306,
-0.026218609884381294,
-0.03305419906973839,
0.002866024849936366,
-0.02962636761367321,
0.011745499446988106,
0.012904436327517033,
-0.027501598000526428,
0.0020905588753521442,
-0.024608584120869637,
0.0008510076440870762,
-0.027435066178441048,
0.023545702919363976,
-0.02305697090923786,
-0.04634055867791176,
0.029981981962919235,
-0.02095511369407177,
-0.01289789006114006,
0.03023352473974228,
0.024926796555519104,
0.029777767136693,
0.02292647212743759,
0.002906423294916749,
0.013312608003616333,
0.035564254969358444,
0.01744740456342697,
-0.03741050511598587,
0.024852439761161804,
0.006731304805725813,
0.016015226021409035,
-0.0368790365755558,
-0.016838407143950462,
-0.013277179561555386,
-0.02596326917409897,
-0.04260207340121269,
-0.02438063733279705,
0.04248832166194916,
0.003456498496234417,
-0.0178078580647707,
0.006998885422945023,
-0.006339671090245247,
-0.006271765101701021,
-0.051582638174295425,
-0.05943300575017929,
0.002326607471331954,
-0.05948234349489212,
-0.04824509471654892,
-0.01799124851822853,
-0.022838415578007698,
0.023636026307940483,
0.0016013574786484241,
-0.02548547275364399,
-0.026730896905064583,
-0.00864666048437357,
0.012673791497945786,
0.030917009338736534,
0.00012629255070351064,
-0.012989149428904057,
-0.03831369802355766,
0.00874683540314436,
0.010929714888334274,
0.010090157389640808,
-0.025023728609085083,
0.012586463242769241,
-0.004967875313013792,
0.028517693281173706,
0.02977490983903408,
-0.002574418904259801,
-0.00022061631898395717,
0.03885090723633766,
0.01201855018734932,
-0.02058899775147438,
-0.0569131076335907,
0.01615680195391178,
0.030807269737124443,
0.025380553677678108,
-0.026607856154441833,
-0.013390853069722652,
-0.00338951894082129,
-0.048451121896505356,
-0.0742797777056694,
0.02455085888504982,
0.015570859424769878,
-0.0348421111702919,
-0.009924616664648056,
0.000747940328437835,
0.05140446498990059,
0.0014250640524551272,
-0.036129020154476166,
0.002853881102055311,
0.024842118844389915,
0.02848188951611519,
0.054623473435640335,
-0.01725676655769348,
0.029957106336951256,
-0.021626723930239677,
0.0016408677911385894,
-0.03988644853234291,
0.010306216776371002,
0.053772710263729095,
-0.07329194992780685,
-0.01552989985793829,
0.02793140895664692,
-0.046004291623830795,
0.013512843288481236,
0.006617961451411247,
0.03569099307060242,
-0.01481940969824791,
0.006131612695753574,
0.004201943054795265,
-0.023826923221349716,
-0.02041626162827015,
-0.009165500290691853,
0.060790155082941055,
0.03769853338599205,
0.00023283492191694677,
0.018073469400405884,
-0.02414393052458763,
0.05541164427995682,
0.004560631234198809,
-0.013216963037848473,
-0.03131818026304245,
0.05938394367694855,
0.006938152015209198,
0.031174831092357635,
0.018205713480710983,
-0.031389083713293076,
0.015522735193371773,
-0.01188358198851347,
-0.018916482105851173,
-0.039497245103120804,
0.011819984763860703,
0.009989609941840172,
0.02314663492143154,
0.008580724708735943,
-0.06185814365744591,
0.061332423239946365,
0.005185496993362904,
-0.003684649709612131,
0.00025681068655103445,
0.011944261379539967,
0.04211440309882164,
-0.00926264189183712,
-0.07637778669595718,
0.019143328070640564,
-0.03717215731739998,
0.029557161033153534,
0.011462809517979622,
-0.0077372342348098755,
0.010977556928992271,
-0.040459830313920975,
-0.007895223796367645,
0.0485987551510334,
0.015761923044919968,
0.02616586536169052,
0.016715407371520996,
-0.013364623300731182,
-0.016734031960368156,
0.04823186621069908,
-0.04403016343712807,
0.008660736493766308,
0.005917975213378668,
0.0385228730738163,
0.0209224633872509,
-0.001951947109773755,
0.0178998876363039,
-0.022788139060139656,
0.045454297214746475,
0.009907044470310211,
0.005654789973050356,
-0.017635639756917953,
-0.007842757739126682,
-0.011730474419891834,
0.037401750683784485,
-0.04748343676328659,
-0.03863149136304855,
0.02376411110162735,
-0.012269308790564537,
0.023892153054475784,
-0.00986573938280344,
-0.004536996129900217,
-0.009714591316878796,
0.0357096828520298,
0.01420842856168747,
-0.04852090775966644,
0.007756794802844524,
0.011935836635529995,
-0.017059560865163803,
-0.00862445030361414,
-0.008795651607215405,
-0.022757112979888916,
0.0071743205189704895,
-0.04018251225352287,
-0.05045747756958008,
0.019121933728456497,
-0.017419029027223587,
0.0001831295812735334,
-0.003596280002966523,
0.028639934957027435,
-0.06028224900364876,
-0.0433761291205883,
-0.0044718096032738686,
0.02975008636713028,
-0.015659984201192856,
-0.013538345694541931,
-0.02480797842144966,
-0.020252889022231102,
0.005790445953607559,
-0.03014913573861122,
-0.025791235268115997,
-0.014655517414212227,
-0.02050713822245598,
0.022564170882105827,
0.007189071737229824,
-0.011052612215280533,
-0.01536011602729559,
0.017824821174144745,
0.011035189963877201,
0.028439104557037354,
0.027126245200634003,
0.005525830667465925,
0.0134598882868886,
-0.04685157537460327,
0.003716051112860441,
0.018176978453993797,
-0.019997520372271538,
-0.04258396103978157,
-0.0469595231115818,
-0.03857548162341118,
0.03970025107264519,
-0.04020904377102852,
0.005436455365270376,
-0.04080509394407272,
0.03036400116980076,
-0.0474790520966053,
0.014922840520739555,
-0.043862469494342804,
0.009510827250778675,
0.08393293619155884,
0.0002392061724094674,
0.004042270127683878,
-0.03799325227737427,
-0.02043285220861435,
0.022916967049241066,
-0.027410387992858887,
0.033302899450063705,
0.07187437266111374,
0.041790351271629333,
-0.007002651691436768,
-0.0459773987531662,
0.04210400953888893,
-0.024300672113895416,
-0.03569915145635605,
-0.004658236168324947,
0.012802130542695522,
-0.02949552983045578,
-0.03115430288016796,
-0.022800838574767113,
0.03009480983018875,
0.0011549822520464659,
0.008645925670862198,
0.02902594953775406,
-0.023831401020288467,
0.06489916890859604,
-0.018858488649129868,
-0.02665785886347294,
0.04246804490685463,
0.023404251784086227,
0.030983958393335342,
0.03453841060400009,
0.029776515439152718,
0.012661978602409363,
-0.023019544780254364,
-0.04135890677571297,
0.006162033416330814,
0.018814442679286003,
-0.01342336181551218,
0.027582596987485886,
0.024002356454730034,
0.002221655333414674,
-0.003253062954172492,
-0.05187436193227768,
-0.026073187589645386,
0.03916006535291672,
-0.024587731808423996,
-0.05272650718688965,
-0.0037428829818964005,
0.009781932458281517,
0.02870980091392994,
0.01550314947962761,
0.009394989348948002,
0.047657642513513565,
0.04302627220749855,
-0.006476145703345537,
0.004121613688766956,
0.039737917482852936
] |