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
listlengths
768
768
Introducing IDEFICS: An Open Reproduction of State-of-the-art Visual Language Model
VictorSanh
August 22, 2023
idefics
research, nlp, cv
https://huggingface.co/blog/idefics
# Introducing IDEFICS: An Open Reproduction of State-of-the-Art Visual Language Model We are excited to release IDEFICS (Image-aware Decoder Enhanced à la Flamingo with Interleaved Cross-attentionS), an open-access visual language model. IDEFICS is based on Flamingo, a state-of-the-art visual language model initially developed by DeepMind, which has not been released publicly. Similarly to GPT-4, the model accepts arbitrary sequences of image and text inputs and produces text outputs. IDEFICS is built solely on publicly available data and models (LLaMA v1 and OpenCLIP) and comes in two variants—the base version and the instructed version. Each variant is available at the 9 billion and 80 billion parameter sizes. The development of state-of-the-art AI models should be more transparent. Our goal with IDEFICS is to reproduce and provide the AI community with systems that match the capabilities of large proprietary models like Flamingo. As such, we took important steps contributing to bringing transparency to these AI systems: we used only publicly available data, we provided tooling to explore training datasets, we shared technical lessons and mistakes of building such artifacts and assessed the model’s harmfulness by adversarially prompting it before releasing it. We are hopeful that IDEFICS will serve as a solid foundation for more open research in multimodal AI systems, alongside models like OpenFlamingo-another open reproduction of Flamingo at the 9 billion parameter scale. Try out the demo and the models on the Hub!
[ 0.09305782616138458, -0.08945784717798233, 0.0024294524919241667, 0.03494599089026451, 0.04974344000220299, 0.07237040996551514, -0.05983108654618263, 0.02659502439200878, -0.04877493530511856, -0.044251225888729095, -0.010541239753365517, 0.06689037382602692, -0.06939655542373657, 0.09205128997564316, 0.030373625457286835, 0.03498230129480362, -0.03449980169534683, -0.023082410916686058, -0.01382235437631607, 0.02867581881582737, -0.039958883076906204, 0.0016169252339750528, -0.025056904181838036, -0.08800365030765533, -0.11245974898338318, -0.023754911497235298, 0.024412978440523148, -0.04477766528725624, 0.0017237236024811864, -0.04312577471137047, -0.030893443152308464, -0.014249062165617943, 0.006919755134731531, 0.015291535295546055, -0.05010610446333885, 0.006866202689707279, -0.0716032013297081, -0.0017942572012543678, -0.026722628623247147, 0.0019497546600177884, 0.018928024917840958, -0.009447275660932064, -0.040747806429862976, 0.010560733266174793, -0.03229746222496033, -0.005933032836765051, -0.10843654721975327, 0.041149526834487915, 0.020419836044311523, 0.0066505610011518, -0.12691186368465424, 0.00963637325912714, -0.07657086104154587, 0.03143114969134331, -0.023717006668448448, 0.012875284999608994, -0.029795121401548386, -0.049545351415872574, -0.03646525740623474, 0.038243092596530914, -0.004036917816847563, 0.0015829125186428428, 0.0017310661496594548, 0.04123685508966446, 0.10824308544397354, -0.0417434498667717, -0.03921405225992203, 0.020502563565969467, 0.0012388043105602264, -0.035605862736701965, 0.010873955674469471, 0.03528640791773796, -0.022408369928598404, -0.11378203332424164, 0.025575989857316017, -0.08004684746265411, -0.014715606346726418, 0.019815145060420036, 0.02627057023346424, -0.01587631367146969, -0.04442637041211128, 0.008704167790710926, 0.05316930264234543, -0.003040019189938903, -0.01084877923130989, 0.014905130490660667, 0.0006416346877813339, -0.06503178179264069, -0.008717302232980728, 0.01636643148958683, -0.00017891345487441868, -0.15003642439842224, -0.04639821872115135, -0.009856926277279854, 0.029558509588241577, 0.07246950268745422, -0.025993920862674713, -0.015262285247445107, -0.02533012442290783, 0.041734397411346436, 0.02606278844177723, -0.009005511179566383, -0.06383362412452698, -0.07239508628845215, -0.08251279592514038, 0.013387606479227543, -0.07211677730083466, -0.016935329884290695, 0.0035656220279634, -0.0014426502166315913, 0.02657853625714779, 0.0006575290462933481, -0.03768075630068779, 0.04127148911356926, -0.12282243371009827, 0.046709928661584854, 0.06796243041753769, 0.03666149824857712, -0.02497384324669838, 0.03065783716738224, -0.01966828666627407, 0.0015440102433785796, 0.03897567465901375, -0.03151247650384903, 0.04327123239636421, 0.0806313008069992, 0.002313863718882203, 0.031350430101156235, -0.03791989013552666, -0.031198622658848763, 0.030427321791648865, -0.07239704579114914, -0.03390689566731453, -0.005254870280623436, -0.015233522281050682, -0.016086695715785027, -0.009363379329442978, -0.008016384206712246, 0.019137075170874596, 0.020730964839458466, 0.011766867712140083, -0.05170542746782303, -0.015240135602653027, -0.023816106840968132, 0.06919237971305847, 0.05221650376915932, -0.04257737845182419, 0.0621543750166893, -0.0006378792459145188, -0.010586809366941452, -0.05995896831154823, 0.051729246973991394, 0.02379213646054268, 0.005727069452404976, 0.021312983706593513, 0.07371997088193893, -0.00893046148121357, 0.0024431694764643908, -0.06185691058635712, -0.0078013925813138485, 0.0029725173953920603, 0.025258803740143776, -0.029688412323594093, -0.03633944317698479, -0.05612175539135933, -0.05560171604156494, -0.004006172996014357, 0.06436727195978165, -0.0396093875169754, -0.018848799169063568, -0.01086233090609312, -0.008298969827592373, 0.028184082359075546, 0.009051029570400715, 0.029251093044877052, 0.018151775002479553, -0.008933847770094872, 0.0023701966274529696, 0.06810900568962097, -0.002963189734145999, -0.057481277734041214, -0.0714501440525055, 0.03708468750119209, 0.03937918320298195, 0.03148265182971954, -0.12302950024604797, -0.0073918611742556095, -0.033622466027736664, 0.006568119861185551, 0.01159432902932167, -0.042118873447179794, -0.011231258511543274, 0.047257885336875916, -0.002930294256657362, 0.04351923614740372, -0.010929442942142487, -0.06552466750144958, 0.03816431388258934, 0.11838331073522568, 0.05437285453081131, 0.03611600026488304, 0.04574137181043625, 0.010804015211760998, -0.0008894032798707485, -0.0120738809928298, -0.035554274916648865, 0.0657564029097557, 0.02890615351498127, -0.006600789725780487, 0.0381414033472538, -0.00699978694319725, -0.11694326996803284, 0.02284977212548256, -0.07105612754821777, 0.06410197168588638, -0.011206564493477345, 0.041972607374191284, 0.04180072993040085, -0.04501090571284294, -0.03780488297343254, 0.04611961916089058, -0.04344068467617035, -0.011410076171159744, -0.06291761249303818, 0.004476069938391447, 0.043929245322942734, 0.07370439171791077, -0.0028027119114995003, 0.0946507528424263, -0.0174246933311224, -0.029592104256153107, -0.06953184306621552, 0.03187527135014534, -0.0795862004160881, -0.03249851614236832, -0.03173854574561119, -0.015147432684898376, -0.001683320733718574, 0.0701879933476448, -0.02124011516571045, 0.018376505002379417, 0.053454335778951645, -0.008768726140260696, -0.07264038175344467, 0.02613946981728077, -0.07965121418237686, 0.09359122812747955, -0.043331630527973175, -0.006643539760261774, -0.006337662227451801, -0.06974552571773529, 0.08076745271682739, -0.05484318733215332, -0.0005768951959908009, 0.007480638101696968, 0.02950732782483101, 0.04156406968832016, -0.01862892508506775, 0.027067165821790695, -0.017523163929581642, 0.0077343289740383625, 0.012775073759257793, -0.011800491251051426, -0.00896199606359005, -0.009111501276493073, -0.01247573085129261, -0.003419743850827217, 0.05005714297294617, 0.03502114117145538, -0.023346921429038048, -0.02634003758430481, -0.02216745913028717, 0.009643332101404667, 0.007118340115994215, 0.007830442860722542, 0.03656728193163872, 0.06426174938678741, -0.0054680220782756805, -0.04561886563897133, -0.03467893227934837, -0.005860141012817621, 0.008506211452186108, 0.03154145926237106, 0.01714923419058323, 0.05971936881542206, 0.009401815012097359, 0.017975684255361557, 0.02528177574276924, -0.040857817977666855, 0.007331358268857002, 0.07642019540071487, 0.019732430577278137, -0.043255094438791275, 0.03842304274439812, 0.015949249267578125, 0.016889337450265884, -0.01867247000336647, -0.02775835245847702, -0.05902547016739845, 0.0027798102237284184, -0.02571159601211548, 0.013867178931832314, 0.03641708195209503, -0.0019324703607708216, 0.02171100676059723, -0.013291613198816776, 0.016947314143180847, 0.04890889301896095, -0.07912753522396088, -0.008095522411167622, 0.004388386849313974, 0.055023305118083954, -0.008969007059931755, -0.016403649002313614, 0.02291976846754551, 0.03338426351547241, 0.031046930700540543, 0.00437685614451766, -0.0035960788372904062, 0.036831360310316086, -0.020721599459648132, 0.01618843525648117, 0.016636498272418976, -0.040276382118463516, -0.08393602073192596, 0.013650557957589626, -0.00011963254655711353, 0.004500404000282288, 0.021005339920520782, 0.031115328893065453, -0.009544230066239834, 0.018579840660095215, -0.04122861102223396, -0.02461904101073742, 0.012762337923049927, -0.01314078364521265, 0.05443761870265007, 0.005912096705287695, 0.005934830754995346, 0.0006503821932710707, 0.023995576426386833, 0.022917676717042923, -0.0351666621863842, 0.028384752571582794, 0.025252925232052803, 0.00988238025456667, -0.01814897730946541, 0.04366176947951317, -0.0009244154789485037, 0.008979608304798603, -0.010209739208221436, -0.02703685499727726, 0.02598988264799118, 0.008786809630692005, 0.010386652313172817, -0.016196316108107567, 0.061157796531915665, -0.04259888082742691, -0.03085300512611866, -0.016904208809137344, 0.0012380644911900163, 0.03829597309231758, 0.016443610191345215, 0.009448306635022163, 0.023638952523469925, 0.01740802451968193, -0.01294219121336937, -0.01097116805613041, 0.027990873903036118, 0.029727503657341003, -0.013276332058012486, 0.029945163056254387, 0.013997550122439861, 0.09320693463087082, 0.02758021093904972, -0.06321287155151367, -0.024895701557397842, 0.06290543079376221, -0.0008299326873384416, 0.0400468111038208, -0.020487213507294655, 0.0037464068736881018, 0.03043173998594284, 0.043910011649131775, 0.016120679676532745, -0.029046226292848587, 0.029466934502124786, 0.03476431593298912, 0.024612324312329292, -0.03919064253568649, 0.012466560117900372, 0.009104913100600243, 0.047016363590955734, -0.04476036876440048, 0.003277847310528159, -0.01056133583188057, 0.013247744180262089, 0.02135041356086731, -0.013592643663287163, 0.005366107448935509, 0.009636539034545422, 0.009084334596991539, 0.01697646453976631, 0.005697513464838266, -0.007659382652491331, 0.022197557613253593, 0.0034576221369206905, -0.026343127712607384, 0.022845536470413208, -0.05078971013426781, -0.02294277586042881, 0.04343719035387039, -0.06481198966503143, 0.041498955339193344, 0.024939728900790215, -0.06951902061700821, -0.010902023874223232, 0.010821305215358734, -0.007328898645937443, -0.014163677580654621, 0.0018917290726676583, 0.02829865925014019, 0.02364138327538967, 0.02135668322443962, 0.023715166375041008, -0.016747070476412773, -0.0011809722054749727, -0.018544113263487816, -0.004180033691227436, 0.01995992287993431, -0.01992230862379074, 0.025045009329915047, -0.007431632839143276, -0.008769922889769077, 0.02194022201001644, -0.026456452906131744, 0.0018926160410046577, 0.0156505536288023, 0.006263430695980787, 0.015109125524759293, 0.0032903882674872875, 0.004153845366090536, 0.02251097746193409, 0.01247518789023161, -0.007707283832132816, -0.03292860463261604, -0.017067186534404755, -0.014653168618679047, 0.004506927914917469, -0.024039285257458687, 0.03401288017630577, 0.008052061311900616, 0.0014138042461127043, -0.015046969056129456, -0.0029708961956202984, 0.010523014701902866, 0.019809044897556305, 0.006488742306828499, 0.038592398166656494, 0.009683734737336636, -0.022728923708200455, -0.0043616569600999355, 0.03588968515396118, 0.07290328294038773, 0.02191343531012535, 0.021641166880726814, -0.00904071144759655, 0.008639555424451828, 0.014451110735535622, 0.032175954431295395, -0.0506720170378685, -0.032568931579589844, 0.00787399709224701, -0.011172870174050331, 0.06956407427787781, 0.013498908840119839, 0.023318855091929436, 0.012641017325222492, -0.027180436998605728, 0.013519114814698696, 0.028219785541296005, 0.007138953078538179, -0.008030825294554234, 0.02133515477180481, 0.03257923573255539, 0.031703222543001175, -0.03940877690911293, 0.05434416979551315, -0.007955861277878284, -0.02531939372420311, 0.03603056073188782, 0.016308054327964783, -0.026499178260564804, 0.000840210122987628, 0.034866396337747574, 0.06410733610391617, 0.033608417958021164, 0.013016490265727043, -0.04093453660607338, 0.04057491570711136, 0.009259166195988655, -0.045302893966436386, -0.006506543606519699, -0.004120885394513607, 0.005669733043760061, 0.03551714867353439, -0.016829712316393852, -0.03262495994567871, 0.005142396315932274, -0.002736683702096343, -0.03147772327065468, 0.0046485248021781445, 0.012406627647578716, -0.06336129456758499, 0.009632029570639133, -0.01720864325761795, 0.014853283762931824, 0.02458227425813675, -0.01301219966262579, 0.00006554328865604475, -0.01206874754279852, -0.036247171461582184, -0.01836913451552391, -0.012588086538016796, -0.029513642191886902, -0.012446154840290546, -0.03618916869163513, 0.04753143712878227, -0.029899483546614647, -0.062092915177345276, -0.0022027939558029175, 0.0011954408837482333, 0.021903404965996742, -0.043547723442316055, -0.03269825503230095, 0.025484599173069, -0.03477691859006882, 0.031046902760863304, 0.03715278208255768, -0.05029972642660141, 0.024907127022743225, 0.07003667205572128, -0.023492220789194107, 0.021931473165750504, -0.0326954685151577, 0.031109090894460678, 0.016919104382395744, -0.024834180250763893, -0.04250499606132507, -0.017402760684490204, -0.05515392869710922, 0.02537805214524269, -0.045921821147203445, -0.0021655180025845766, 0.0434621162712574, -0.010406803339719772, 0.0002888925955630839, 0.02720208466053009, 0.027967698872089386, -0.00890317838639021, -0.007203743327409029, -0.016336504369974136, -0.008559930138289928, 0.04263697937130928, 0.01395957451313734, -0.015443951822817326, -0.024498874321579933, 0.013094826601445675, -0.026844637468457222, -0.02079709619283676, -0.035951051861047745, 0.04457726702094078, 0.011941065080463886, -0.044236887246370316, 0.05866777524352074, -0.022971900179982185, 0.030231889337301254, 0.025480473414063454, 0.01890808716416359, 0.014954053796827793, -0.017712322995066643, -0.01530272513628006, -0.037541549652814865, -0.02280583791434765, -0.025314487516880035, 0.07093255966901779, 0.038813065737485886, 0.036897726356983185, 0.024904070422053337, 0.024826085194945335, 0.061513081192970276, -0.010996179655194283, 0.0035336760338395834, 0.013978044502437115, 0.006666923873126507, -0.010439405217766762, -0.010779964737594128, -0.006733809597790241, -0.034480053931474686, -0.01900791935622692, -0.0025785656180232763, 0.004952013026922941, -0.0199428703635931, 0.036011774092912674, -0.01411490049213171, 0.027559667825698853, -0.016914652660489082, -0.04187902435660362, 0.08335009217262268, 0.05279916897416115, 0.033499132841825485, 0.0308431014418602, 0.016236834228038788, -0.0010305362520739436, 0.01709122024476528, 0.012744068168103695, 0.01686933822929859, 0.02027858980000019, -0.010685293935239315, 0.02613477036356926, 0.04500741511583328, 0.025768840685486794, 0.040296271443367004, -0.00023432406305801123, -0.026534246280789375, -0.01937292516231537, 0.01549580693244934, 0.01600252464413643, 0.0024907533079385757, -0.013312036171555519, -0.010645191185176373, 0.0020858116913586855, -0.05276335030794144, -0.05302928388118744, -0.004674247000366449, 0.028576137498021126, -0.03869698941707611, 0.02020462043583393, 0.04699792340397835, 0.012501461431384087, -0.0367855466902256, 0.0018323669210076332, -0.022740762680768967, -0.0011246894719079137, -0.021475648507475853, 0.002142575103789568, -0.011453671380877495, -0.0164435226470232, 0.01911182887852192, 0.02201887033879757, -0.0033085085451602936, -0.0072754183784127235, 0.018273118883371353, 0.007215885445475578, 0.015351331792771816, 0.0035721957683563232, 0.003395956940948963, 0.023751752451062202, 0.05606694892048836, 0.007614868227392435, 0.0293133407831192, -0.020234186202287674, 0.00602766266092658, -0.03277958184480667, -0.00005934235377935693, -0.004191022831946611, 0.022211354225873947, -0.0154432263225317, 0.014163258485496044, 0.018798580393195152, 0.060402773320674896, -0.0014078263193368912, -0.008138741366565228, -0.03735412284731865, 0.011026052758097649, 0.0010849593672901392, 0.0024882336147129536, -0.041924796998500824, -0.017778154462575912, 0.016569077968597412, -0.023376455530524254, 0.023348625749349594, -0.0532807931303978, 0.009251286275684834, 0.032908666878938675, -0.011176450178027153, -0.03730520233511925, 0.05519936978816986, 0.044933706521987915, 0.0009804528672248125, -0.000994703616015613, 0.05545036122202873, 0.05467328429222107, 0.060944121330976486, 0.048908818513154984, 0.039689403027296066, 0.013544556684792042, -0.0015021240105852485, -0.050180334597826004, -0.034699633717536926, -0.00810109730809927, 0.04185360670089722, -0.013348842971026897, 0.03595364838838577, -0.05851345136761665, 0.016364892944693565, -0.068382129073143, -0.031737539917230606, -0.0048302276991307735, 0.005901162046939135, 0.09601803123950958, -0.055340006947517395, 0.01610620878636837, -0.0220500361174345, 0.012743936851620674, 0.017853504046797752, -0.04153861105442047, 0.043109145015478134, 0.09798149764537811, 0.015851492062211037, -0.057098787277936935, 0.0037520674522966146, -0.020662561058998108, 0.029250334948301315, -0.004717058967798948, 0.01837841607630253, 0.012528227642178535, -0.026197535917162895, -0.014710798859596252, 0.028195088729262352, -0.0318760983645916, 0.009442400187253952, -0.04517079144716263, -0.004538070410490036, 0.007470724638551474, 0.029539577662944794, -0.021674294024705887, -0.04196169972419739, -0.021601684391498566, 0.00604265509173274, 0.004999912343919277, -0.0031221779063344, -0.03207835555076599, 0.00909383874386549, -0.0164309311658144, 0.036174874752759933, -0.031090009957551956, -0.003797707846388221, -0.03127056360244751, 0.01715267263352871, 0.02089230716228485, 0.021824494004249573, -0.01935134083032608, -0.025667371228337288, 0.05549531430006027, 0.003823146689683199, -0.032279714941978455, -0.03095320612192154, 0.006810041610151529, 0.001992411445826292, -0.02319331467151642, 0.03602231293916702, 0.04579582437872887, 0.06548929959535599, 0.02321154624223709, -0.061890240758657455, -0.014864813536405563, 0.0011560404673218727 ]
Introducing IDEFICS: An Open Reproduction of State-of-the-art Visual Language Model
VictorSanh
August 22, 2023
idefics
research, nlp, cv
https://huggingface.co/blog/idefics
What is IDEFICS? IDEFICS is an 80 billion parameters multimodal model that accepts sequences of images and texts as input and generates coherent text as output. It can answer questions about images, describe visual content, create stories grounded in multiple images, etc. IDEFICS is an open-access reproduction of Flamingo and is comparable in performance with the original closed-source model across various image-text understanding benchmarks. It comes in two variants - 80 billion parameters and 9 billion parameters. We also provide fine-tuned versions idefics-80B-instruct and idefics-9B-instruct adapted for conversational use cases.
[ 0.06664931029081345, -0.03761279582977295, 0.020202090963721275, 0.0125475088134408, 0.0963623896241188, 0.09266646951436996, -0.10433337837457657, 0.009965073317289352, -0.03859027102589607, -0.020988915115594864, -0.025982562452554703, 0.06797745823860168, -0.06569816917181015, -0.026476705446839333, -0.018912920728325844, 0.06005900353193283, -0.018235528841614723, 0.00654034037142992, -0.019617659971117973, -0.014148913323879242, -0.04915207624435425, 0.023787589743733406, 0.013041804544627666, -0.04922683909535408, -0.08506299555301666, -0.015487391501665115, -0.013763368129730225, -0.0599374882876873, -0.0003300468670204282, -0.04663413390517235, -0.037069328129291534, -0.014070983976125717, -0.044189583510160446, -0.01387402880936861, -0.030427392572164536, -0.02216007001698017, -0.0834660455584526, 0.02085956186056137, -0.023716727271676064, 0.008018034510314465, 0.01109705027192831, -0.02018851228058338, -0.031138351187109947, -0.026091499254107475, -0.0021776834037154913, 0.017102792859077454, -0.0932852178812027, 0.021313747391104698, -0.02289607748389244, 0.012244264595210552, -0.09861835837364197, 0.03386159986257553, -0.027915285900235176, 0.04073560610413551, 0.0036330288276076317, 0.02597385086119175, 0.004828247241675854, -0.02348872646689415, 0.0029097592923790216, 0.04350929334759712, 0.004137920215725899, 0.002085552318021655, -0.04300115257501602, 0.043140340596437454, 0.04379137605428696, -0.00455091055482626, -0.07822579145431519, 0.04274898022413254, -0.06386613100767136, 0.02140686847269535, -0.010710541158914566, 0.046687982976436615, -0.028446277603507042, -0.04519705846905708, 0.012553109787404537, -0.11058871448040009, -0.007349312771111727, 0.0030554509721696377, 0.002524534473195672, -0.028224021196365356, -0.05636665225028992, 0.0165907833725214, 0.05594071373343468, -0.007402576971799135, -0.018794743344187737, -0.019755173474550247, -0.024112069979310036, -0.02033870853483677, -0.02251492254436016, 0.01097174920141697, 0.020460516214370728, -0.14117249846458435, -0.08729642629623413, -0.017309876158833504, -0.034435372799634933, 0.06931966543197632, -0.04639950022101402, -0.04736409708857536, -0.010766243562102318, 0.06014106422662735, 0.033937036991119385, 0.01943626068532467, -0.01681247353553772, -0.06004578620195389, -0.10470595955848694, -0.008326804265379906, -0.04314391687512398, -0.04314766079187393, 0.006721431855112314, 0.06729571521282196, -0.004219661932438612, -0.003305702703073621, -0.021733438596129417, 0.003359120571985841, -0.09169650077819824, 0.06816501915454865, 0.06968467682600021, 0.07703498005867004, -0.03849939629435539, -0.010627505369484425, -0.07400985062122345, -0.006730015855282545, 0.02153734490275383, -0.02991609461605549, -0.02979293279349804, 0.07624417543411255, 0.024878857657313347, 0.0002542621223255992, -0.05521129444241524, 0.012799683026969433, 0.026867276057600975, -0.0765952467918396, -0.0261443629860878, -0.032667819410562515, -0.049918994307518005, -0.05257086455821991, 0.027515653520822525, -0.0031429792288690805, 0.017733654007315636, 0.07234526425600052, 0.05192182585597038, -0.059597693383693695, -0.04644538462162018, -0.03499498963356018, 0.04578254371881485, 0.027789659798145294, 0.017190206795930862, 0.03195770084857941, -0.0011656481074169278, 0.010934734717011452, -0.09788589179515839, 0.007007057778537273, 0.031916841864585876, -0.036577288061380386, -0.0002781903895083815, 0.08586810529232025, 0.043289147317409515, 0.006902217864990234, 0.006372797768563032, -0.00500886095687747, 0.08868393301963806, 0.0031280359253287315, -0.011966274119913578, 0.010546375066041946, -0.03346385434269905, -0.04008496180176735, 0.01556394249200821, 0.11759280413389206, -0.023607643321156502, -0.05547069385647774, -0.023686503991484642, -0.04075591638684273, -0.0014472136972472072, 0.009434472769498825, 0.05555325001478195, -0.007390792015939951, 0.00811889860779047, -0.0021385187283158302, 0.056431129574775696, -0.005491168238222599, -0.021130375564098358, -0.08270159363746643, -0.006412615068256855, 0.07360661774873734, 0.019131526350975037, -0.07937323302030563, 0.024479733780026436, -0.055402569472789764, -0.006943590007722378, 0.019317330792546272, -0.05295319855213165, -0.05050162598490715, 0.020779041573405266, 0.006822265684604645, 0.05805887654423714, -0.06852925568819046, -0.04099686071276665, -0.01964183710515499, 0.0996479019522667, 0.051369231194257736, -0.008268655277788639, 0.0928516834974289, 0.07278552651405334, -0.05948411300778389, 0.015865202993154526, -0.032237567007541656, 0.024748362600803375, 0.037046074867248535, 0.01011181902140379, 0.02441457286477089, -0.0061209495179355145, -0.08133230358362198, 0.07479419559240341, -0.06378863006830215, 0.06540749222040176, -0.03628791496157646, 0.0400044247508049, -0.026471232995390892, -0.04791226238012314, -0.034712404012680054, 0.06741821765899658, -0.013040984980762005, -0.06564139574766159, -0.12071152031421661, 0.01648385263979435, 0.01569298282265663, 0.06989586353302002, -0.0036962188314646482, 0.027874309569597244, -0.0446348711848259, -0.023334244266152382, -0.047155335545539856, -0.00043644520337693393, -0.05619937554001808, 0.03153686970472336, 0.016307363286614418, -0.02911178581416607, -0.022949086502194405, 0.09004030376672745, 0.011252188123762608, 0.021993139758706093, 0.05374515801668167, -0.0022893829736858606, -0.08136962354183197, 0.03298283368349075, -0.09902127832174301, 0.03714459389448166, -0.04954811930656433, -0.03677046671509743, -0.013326991349458694, -0.04931480437517166, 0.05061795189976692, -0.009758426807820797, -0.039306748658418655, 0.027763638645410538, 0.02424445003271103, 0.028090959414839745, -0.03394254297018051, 0.024499405175447464, -0.043947815895080566, -0.045578062534332275, 0.013860334642231464, 0.00319753703661263, -0.0018107157666236162, 0.02577640488743782, -0.0017200326547026634, -0.013906732201576233, 0.042659878730773926, -0.006780944764614105, -0.024310551583766937, 0.009103640913963318, -0.006262336857616901, 0.061166878789663315, 0.026438290253281593, 0.0020788726396858692, 0.0304504856467247, 0.04703721031546593, -0.002628911519423127, -0.03866893798112869, -0.029814282432198524, -0.010143105871975422, 0.008575160056352615, 0.023757677525281906, -0.009267156012356281, 0.07495713233947754, 0.020750639960169792, -0.0029749972745776176, -0.01590842939913273, -0.06765109300613403, -0.02923632226884365, 0.040180958807468414, 0.06199943274259567, -0.05094406008720398, 0.007185878232121468, 0.028771396726369858, 0.04464542493224144, -0.0011806481052190065, -0.013490770012140274, -0.06744864583015442, 0.0017027908470481634, 0.014408950693905354, 0.0028523248620331287, -0.0005735799786634743, 0.010068606585264206, 0.0316118560731411, 0.010473082773387432, 0.03133942931890488, 0.06606947630643845, -0.07436404377222061, 0.00361262378282845, -0.004507077857851982, 0.05897251144051552, -0.014187109656631947, 0.004216222558170557, 0.03315840661525726, 0.010883939452469349, 0.06110299378633499, -0.021342994645237923, 0.019732361659407616, 0.012469636276364326, -0.007314842659980059, 0.015833735466003418, 0.009916877374053001, 0.0011928773019462824, -0.05338842421770096, -0.006269664969295263, -0.003017622046172619, 0.007323328871279955, 0.018012134358286858, 0.013375318609178066, 0.011006182059645653, 0.044178497046232224, -0.021194247528910637, -0.02993938885629177, 0.02290865033864975, -0.014220786280930042, 0.03944547474384308, 0.002529546618461609, 0.05255794897675514, -0.0023826591204851866, -0.005576481111347675, 0.045991308987140656, -0.024113282561302185, 0.011820224113762379, 0.04029575362801552, 0.017741013318300247, -0.010662497952580452, 0.010399754159152508, -0.010947713628411293, -0.007594914175570011, -0.015468748286366463, -0.015157638117671013, 0.03367645666003227, 0.007182992063462734, 0.019295109435915947, -0.010415277443826199, 0.056135144084692, -0.010733877308666706, -0.04012548550963402, -0.03926417604088783, 0.0055781579576432705, 0.021726304665207863, 0.030532250180840492, -0.016796503216028214, 0.03482624143362045, -0.018132008612155914, 0.011265435256063938, -0.030446946620941162, 0.024484291672706604, 0.007531487382948399, -0.03496812656521797, 0.023439668118953705, 0.01569039188325405, 0.0535132959485054, 0.04093137010931969, -0.06259320676326752, -0.023696765303611755, 0.07461782544851303, -0.030260827392339706, 0.018221436068415642, 0.02319849655032158, 0.009526954032480717, -0.009661133401095867, 0.023784345015883446, -0.01631828024983406, -0.029001332819461823, 0.03437529876828194, 0.016064653173089027, 0.023412855342030525, -0.025779368355870247, 0.019137319177389145, 0.01771269179880619, 0.05359317734837532, -0.05339919030666351, -0.01641617901623249, -0.02981187216937542, 0.04234185814857483, 0.01078197080641985, -0.017327047884464264, 0.0012808397877961397, 0.0064219762571156025, 0.013340369798243046, 0.007410626858472824, -0.0028138512279838324, -0.021575983613729477, 0.008101044222712517, 0.06136181950569153, -0.020287340506911278, 0.033118508756160736, -0.03294897824525833, -0.02048242837190628, 0.04062720015645027, -0.05130784586071968, 0.035581666976213455, 0.01042199321091175, -0.053408198058605194, -0.01699831150472164, -0.006791216786950827, 0.00793347880244255, -0.01823185198009014, 0.018184596672654152, -0.028748709708452225, -0.024467281997203827, 0.036999236792325974, -0.01747046783566475, -0.017002306878566742, -0.0034059383906424046, -0.039871376007795334, 0.0025889731477946043, 0.032635390758514404, 0.0027699742931872606, 0.014032339677214622, -0.013639593496918678, 0.0188384260982275, 0.026139961555600166, -0.02887333557009697, 0.0133362440392375, 0.040448591113090515, 0.011147993616759777, -0.006995232775807381, 0.004630555398762226, 0.025740662589669228, 0.005088113248348236, 0.014632764272391796, -0.026372317224740982, -0.011302117258310318, -0.005345975048840046, 0.0027150935493409634, 0.012050054967403412, -0.03332197293639183, 0.03793739899992943, 0.024679487571120262, 0.0043605840764939785, 0.019458482041954994, -0.0434981994330883, 0.04271559789776802, 0.03327465057373047, 0.020753085613250732, 0.005500961560755968, 0.02532857656478882, 0.013855008408427238, -0.0071404133923351765, 0.022763662040233612, 0.02259073033928871, 0.022591106593608856, -0.008608072996139526, -0.024158740416169167, 0.018493076786398888, 0.03851790353655815, 0.05207064747810364, -0.04130998253822327, -0.030971316620707512, -0.004904345143586397, 0.000578493345528841, 0.07566355913877487, 0.005366639234125614, 0.00143188436049968, 0.016160979866981506, -0.026265332475304604, 0.01531175710260868, 0.017597738653421402, -0.008495238609611988, 0.004217108711600304, 0.01619785465300083, -0.008461682125926018, 0.026963230222463608, -0.017264239490032196, 0.0577378123998642, 0.0025252709165215492, -0.038055676966905594, 0.06903956830501556, -0.006898831110447645, -0.029111620038747787, 0.0007964515243656933, 0.056372255086898804, 0.03551635146141052, 0.019256528466939926, 0.036143891513347626, -0.013032015413045883, 0.029613256454467773, 0.0070432331413030624, -0.036334484815597534, 0.009699924848973751, 0.039700161665678024, -0.007763823959976435, 0.015833180397748947, -0.01715320535004139, -0.04091622307896614, 0.019815733656287193, -0.006529597565531731, -0.010697521269321442, 0.01450239960104227, -0.02304612472653389, -0.03390975296497345, 0.016036560758948326, -0.010212943889200687, 0.020969655364751816, 0.03246316686272621, 0.0046271369792521, 0.013361457735300064, -0.044759009033441544, -0.02653738670051098, -0.020143423229455948, 0.014480607584118843, -0.002341673942282796, -0.0493243932723999, -0.012793513014912605, 0.015072508715093136, -0.0522104948759079, -0.05422007292509079, 0.03745146468281746, 0.019579259678721428, 0.020239150151610374, -0.020554572343826294, -0.017719877883791924, 0.03236844018101692, -0.04213549196720123, 0.016227027401328087, 0.03108200803399086, -0.022141214460134506, 0.004003910347819328, 0.02241375669836998, -0.0026041341479867697, 0.026352742686867714, -0.033818792551755905, 0.028781330212950706, 0.03881664201617241, -0.0017922880360856652, -0.03726198896765709, 0.02159816585481167, -0.02653949148952961, 0.058704178780317307, -0.03016596846282482, 0.010942027904093266, 0.0736028403043747, -0.024176249280571938, 0.013627888634800911, 0.024484986439347267, 0.055423181504011154, 0.009201149456202984, -0.01075520645827055, -0.004824745934456587, -0.013114691711962223, -0.003112013218924403, 0.038408659398555756, -0.029838167130947113, -0.025431722402572632, 0.05122560262680054, -0.016284581273794174, -0.025479648262262344, 0.0037936647422611713, 0.045983728021383286, 0.02218889445066452, -0.0372827872633934, 0.06668230146169662, 0.015966475009918213, 0.05968024209141731, 0.06086786091327667, 0.0019957772456109524, -0.017569195479154587, -0.010595853440463543, 0.02581780031323433, -0.0178570244461298, 0.0008200046140700579, -0.05805794149637222, 0.0504237599670887, 0.026407720521092415, 0.04505905881524086, 0.038685791194438934, 0.056937433779239655, 0.05507461726665497, 0.025552898645401, -0.05299675837159157, -0.004681335296481848, 0.02410043403506279, -0.05569588765501976, -0.023444227874279022, -0.007083662319928408, -0.01586463488638401, 0.0007635235087946057, 0.01658959686756134, -0.011023164726793766, -0.03689277544617653, 0.00508760754019022, -0.0019423937192186713, 0.0387766994535923, -0.010976815596222878, -0.004104595631361008, 0.08201591670513153, 0.04362332448363304, 0.02141997031867504, 0.005846780259162188, 0.01298261247575283, 0.008390459232032299, 0.025250932201743126, -0.018632961437106133, -0.008120187558233738, 0.015097850933670998, -0.00849159061908722, 0.006733653135597706, 0.010269904509186745, 0.030324088409543037, 0.03920193389058113, -0.007342424243688583, -0.05174325406551361, -0.023119192570447922, 0.039631687104701996, 0.0266795065253973, 0.0005410058074630797, -0.023371083661913872, 0.019376244395971298, -0.019240904599428177, -0.0584048256278038, -0.017110910266637802, 0.011331327259540558, 0.04993882775306702, -0.02092977985739708, -0.016101300716400146, 0.050250034779310226, 0.0038920349907130003, -0.04861392825841904, 0.020454907789826393, -0.027089040726423264, -0.003316662972792983, 0.0028299277182668447, 0.034357231110334396, -0.04381239041686058, -0.02888670563697815, -0.020810633897781372, 0.01585068739950657, 0.05564223974943161, 0.011408571153879166, 0.04096124321222305, 0.02958114817738533, -0.008073881268501282, 0.013397153466939926, 0.018048325553536415, 0.003782074199989438, 0.04099728912115097, 0.03966696560382843, 0.012201051227748394, -0.006373747251927853, 0.02068968489766121, -0.04418284073472023, -0.0077835265547037125, -0.008426882326602936, 0.045005954802036285, 0.0027730364818125963, 0.02441050298511982, -0.0013110527070239186, 0.044124480336904526, -0.02419193834066391, 0.03380423039197922, -0.0035206000320613384, -0.023413686081767082, 0.009157747030258179, -0.006010694894939661, -0.020143069326877594, -0.011906895786523819, 0.0015802093548700213, -0.04461623728275299, 0.006413780618458986, -0.04914795607328415, -0.001645936630666256, 0.00003654824831755832, -0.04499299079179764, -0.04247269406914711, 0.025673827156424522, 0.0015219830675050616, -0.022085709497332573, -0.009657570160925388, 0.04500862583518028, 0.06737493723630905, 0.013555126264691353, 0.058896638453006744, 0.03182826191186905, 0.04102657362818718, 0.0016362015157938004, -0.07161056995391846, -0.03975360468029976, -0.009676984511315823, 0.03353515639901161, -0.024150941520929337, 0.003152204444631934, -0.013146522454917431, -0.000897030346095562, -0.030247854068875313, -0.027275772765278816, -0.010179078206419945, 0.022335685789585114, 0.039705220609903336, -0.06878584623336792, 0.011732983402907848, -0.01710331067442894, 0.034735843539237976, 0.01323152706027031, -0.05171611160039902, 0.02193237468600273, 0.03424476832151413, 0.01318630576133728, -0.04135875031352043, -0.025523317977786064, 0.004102753475308418, 0.04080302640795708, -0.023400526493787766, -0.026207003742456436, 0.04755615442991257, -0.019528038799762726, 0.016236871480941772, -0.003920251037925482, -0.019583187997341156, 0.0251065231859684, -0.012807128950953484, 0.0006171991699375212, 0.008304611779749393, 0.008005938492715359, -0.008628882467746735, -0.007533587981015444, -0.009711511433124542, 0.028401758521795273, -0.006875244434922934, 0.016977082937955856, -0.04782259091734886, 0.03656163439154625, -0.05202822387218475, 0.005451417528092861, -0.007560526952147484, -0.016851354390382767, -0.013193279504776001, 0.01883881725370884, 0.04252440109848976, 0.04470960423350334, -0.0402381494641304, -0.007043772842735052, 0.01434275321662426, 0.010351140983402729, 0.003326413920149207, -0.06269936263561249, 0.005143257323652506, 0.022830408066511154, -0.038622040301561356, 0.045855194330215454, -0.0026360133197158575, 0.03566218540072441, 0.028627129271626472, -0.05327024683356285, 0.03393259271979332, -0.01592145301401615 ]
Introducing IDEFICS: An Open Reproduction of State-of-the-art Visual Language Model
VictorSanh
August 22, 2023
idefics
research, nlp, cv
https://huggingface.co/blog/idefics
Ethical evaluation At the outset of this project, through a set of discussions, we developed an ethical charter that would help steer decisions made during the project. This charter sets out values, including being self-critical, transparent, and fair which we have sought to pursue in how we approached the project and the release of the models. As part of the release process, we internally evaluated the model for potential biases by adversarially prompting the model with images and text that might elicit responses we do not want from the model (a process known as red teaming). Please try out IDEFICS with the demo, check out the corresponding model cards and dataset card and let us know your feedback using the community tab! We are committed to improving these models and making large multimodal AI models accessible to the machine learning community.
[ 0.06571567058563232, -0.14146339893341064, -0.021857721731066704, 0.0880446657538414, 0.06701187789440155, 0.08995648473501205, -0.03341023251414299, -0.019097791984677315, -0.020247427746653557, -0.12335684150457382, -0.04938407614827156, 0.1137622520327568, -0.0710018128156662, 0.03742922469973564, -0.01868557743728161, -0.0022694359067827463, 0.04606999084353447, -0.0016079676570370793, 0.010970745235681534, 0.002811614889651537, -0.06072498485445976, -0.03491869941353798, 0.025608064606785774, -0.06122562661767006, -0.011287416331470013, -0.03696984425187111, 0.06584654748439789, 0.00506152119487524, -0.025124065577983856, 0.00124828121624887, -0.04722451791167259, -0.026705332100391388, -0.06592603027820587, 0.018082275986671448, -0.05357601121068001, 0.005943929310888052, -0.09521744400262833, 0.030463581904768944, -0.040213488042354584, -0.0047543770633637905, 0.029468541964888573, -0.036906737834215164, -0.04992556571960449, 0.0017018768703565001, -0.03715577349066734, -0.06528794020414352, -0.1350637823343277, 0.07470415532588959, 0.002554228063672781, 0.03210059925913811, -0.04757550358772278, 0.03976502642035484, -0.04159463569521904, -0.004475283902138472, 0.04941386356949806, -0.054110221564769745, 0.003287644125521183, -0.020184971392154694, 0.0034904100466519594, -0.008074624463915825, 0.050273727625608444, 0.0038933095056563616, 0.04371372610330582, 0.04062473773956299, 0.039154812693595886, -0.0369514636695385, 0.036903951317071915, -0.0019839578308165073, -0.041433580219745636, -0.0017235015984624624, -0.026203839108347893, 0.024841174483299255, -0.05889609083533287, -0.05383935570716858, 0.037949737161397934, -0.10373502224683762, -0.0374041311442852, 0.02163783833384514, 0.02567211724817753, 0.04135172441601753, -0.01033655647188425, -0.0057835266925394535, 0.07242970913648605, 0.05102379992604256, -0.03978370875120163, 0.050853390246629715, -0.0189446322619915, 0.027289818972349167, 0.01438245177268982, 0.05617043003439903, -0.006967149209231138, -0.07325305044651031, -0.0003933731059078127, -0.02473938837647438, 0.034940022975206375, -0.039984919130802155, 0.01035131886601448, -0.02187480591237545, -0.04534728080034256, 0.02234519086778164, 0.028391962870955467, 0.03010677546262741, -0.028286946937441826, -0.044892579317092896, -0.06927192956209183, 0.042155876755714417, -0.003309349063783884, -0.03700005263090134, -0.039172615855932236, 0.05108596757054329, 0.013113674707710743, 0.029508203268051147, -0.03277837485074997, 0.02491379715502262, -0.058518193662166595, 0.04426456615328789, 0.04150405898690224, 0.011537483893334866, -0.0015390838962048292, 0.03916951268911362, 0.008410211652517319, 0.06524819135665894, -0.05024460330605507, 0.026571307331323624, -0.0016982500674203038, 0.04602043703198433, 0.06899838894605637, 0.0048134359531104565, -0.06916492432355881, -0.07746659219264984, 0.008792073465883732, -0.0184425450861454, -0.03754241019487381, 0.050259869545698166, -0.01878918521106243, -0.038029108196496964, -0.01996004767715931, -0.06199194863438606, 0.017665060237050056, 0.050420697778463364, -0.057582054287195206, -0.0802774503827095, -0.005358326248824596, 0.03421246260404587, 0.08008379489183426, 0.01961788721382618, -0.03126794472336769, 0.04260138049721718, 0.030360709875822067, 0.028089027851819992, -0.09203509986400604, 0.03790315240621567, 0.005153567064553499, -0.07347386330366135, 0.02216397039592266, 0.09361878037452698, -0.029230264946818352, -0.002548381919041276, -0.07088983803987503, 0.02003355696797371, 0.005045940633863211, -0.0022461514454334974, -0.047670695930719376, -0.012546109966933727, 0.013288095593452454, 0.011852444149553776, -0.007872085087001324, -0.025248808786273003, -0.03722143918275833, 0.04710034281015396, -0.023542506620287895, -0.05817956477403641, 0.12159492820501328, -0.023928917944431305, 0.06820912659168243, 0.06700926274061203, 0.05076469108462334, 0.03648917376995087, 0.00494499271735549, 0.02928568795323372, -0.055073417723178864, 0.00001251880075869849, -0.034415021538734436, 0.032229624688625336, 0.055109526962041855, -0.04729699715971947, -0.030074380338191986, -0.030770130455493927, -0.006640658713877201, 0.005147161893546581, -0.09647313505411148, -0.04479766637086868, 0.10394974797964096, -0.020599478855729103, 0.04584018886089325, -0.038640908896923065, -0.03693373501300812, 0.10372969508171082, -0.006200361531227827, 0.09589752554893494, 0.03271091356873512, 0.02035660110414028, 0.006955401971936226, -0.0819779634475708, 0.009739603847265244, -0.0023765971418470144, 0.06009023264050484, -0.0038595974911004305, 0.018336208537220955, 0.07225512713193893, -0.043711017817258835, -0.07886053621768951, -0.010372797027230263, -0.0049050659872591496, 0.03727159649133682, 0.004249206278473139, 0.047812897711992264, 0.07372049242258072, -0.011687715537846088, -0.019504863768815994, 0.13709841668605804, -0.035126157104969025, 0.02474696934223175, -0.02752717398107052, 0.0069473134353756905, 0.0423043929040432, 0.046212490648031235, 0.11390161514282227, 0.08620119839906693, -0.010623417794704437, -0.028301382437348366, 0.03180203586816788, -0.009398887865245342, -0.007181457709521055, 0.002256120089441538, -0.0072540161199867725, 0.023506829515099525, -0.036637429147958755, 0.08135378360748291, -0.03876824676990509, -0.01172266248613596, 0.0025157651398330927, -0.04687200114130974, 0.0332496352493763, -0.04555213823914528, -0.07485532015562057, 0.09050699323415756, 0.024881785735487938, -0.06309044361114502, -0.027916299179196358, -0.0407593660056591, -0.0003865184844471514, -0.03735148906707764, -0.05180032551288605, 0.027180422097444534, 0.010163344442844391, 0.007824809290468693, 0.005670544691383839, -0.03976106271147728, -0.010156229138374329, 0.018246212974190712, -0.014427728950977325, -0.028155557811260223, -0.04295674338936806, 0.056042905896902084, -0.01393649447709322, 0.010187872685492039, 0.0423540435731411, 0.001930131809785962, 0.006669062655419111, 0.008910859003663063, 0.005084498785436153, 0.02303989604115486, -0.012839293107390404, -0.017463112249970436, 0.044377416372299194, 0.014094019308686256, 0.005399693269282579, -0.02889791503548622, -0.028650399297475815, 0.012801408767700195, -0.020932020619511604, 0.039205875247716904, 0.04822644218802452, 0.03877890482544899, -0.009842566214501858, -0.007293729577213526, 0.05520627275109291, -0.009917942807078362, -0.005540128797292709, 0.021320153027772903, 0.0061027659103274345, -0.03691268339753151, 0.005667815450578928, 0.04752637445926666, -0.020450232550501823, 0.016713688150048256, -0.00992062408477068, -0.043484725058078766, -0.008264384232461452, -0.03308829292654991, 0.007199476473033428, -0.002251553814858198, 0.017879197373986244, 0.012594765983521938, 0.05160672590136528, -0.0096031678840518, 0.032422520220279694, -0.10450912266969681, 0.002555324463173747, 0.030428260564804077, 0.07508167624473572, -0.013199608772993088, -0.010628103278577328, 0.0278964601457119, -0.0067351204343140125, 0.006901995278894901, -0.013276421464979649, 0.01890515722334385, 0.015757745131850243, -0.003186022164300084, 0.038456302136182785, -0.0023071737959980965, -0.006123523693531752, -0.0106012849137187, -0.007552162744104862, 0.061970945447683334, 0.004256018437445164, -0.031456153839826584, 0.07600070536136627, -0.031163813546299934, 0.0008403673418797553, -0.01984386518597603, 0.03558602184057236, 0.013836733065545559, 0.022685840725898743, 0.04164275899529457, -0.052373189479112625, 0.007236936129629612, 0.0020240333396941423, -0.043182123452425, -0.019540341570973396, -0.01874789223074913, 0.000781907350756228, 0.01172487810254097, 0.016771377995610237, -0.02951568178832531, 0.038245540112257004, -0.016883715987205505, -0.00490332767367363, -0.004421362187713385, -0.012681475840508938, -0.01397983729839325, 0.04174779728055, -0.006623509805649519, -0.006626811344176531, 0.0670602023601532, -0.020009467378258705, -0.012450765818357468, -0.011414658278226852, 0.007917765527963638, 0.09042511880397797, -0.020556489005684853, 0.0068681975826621056, 0.00980331003665924, 0.04787636175751686, 0.02523067407310009, -0.013193479739129543, -0.020619820803403854, 0.012088236398994923, 0.008873825892806053, -0.0099798534065485, -0.02210221253335476, -0.005155540071427822, 0.05628405883908272, 0.022461652755737305, -0.02052381820976734, 0.026365742087364197, 0.004259500652551651, 0.05863916501402855, 0.005443559028208256, 0.012572921812534332, 0.015211250633001328, 0.0070772417820990086, 0.03740568831562996, -0.004899167455732822, 0.036403100937604904, -0.00423244945704937, -0.013444572687149048, -0.016881292685866356, -0.009115350432693958, -0.003654944244772196, 0.025689374655485153, -0.027990899980068207, 0.051831234246492386, -0.000752164691220969, -0.001100500812754035, 0.07026629894971848, -0.022850586101412773, -0.05877392366528511, 0.017654400318861008, -0.0016321932198479772, 0.002795821987092495, 0.0072140758857131, -0.00783697422593832, 0.007975554093718529, 0.01892019435763359, -0.003444370348006487, -0.0005648238584399223, -0.03395890071988106, 0.027094760909676552, 0.011855351738631725, 0.01963837258517742, 0.04068183898925781, -0.031259700655937195, -0.037361472845077515, 0.005947797559201717, -0.06378818303346634, 0.014213058166205883, -0.023195888847112656, -0.020952606573700905, -0.0039020581170916557, 0.023964164778590202, 0.005933028180152178, -0.00903689581900835, 0.004071194678544998, -0.005560079589486122, -0.025800593197345734, -0.0023909404408186674, -0.022327858954668045, -0.026370689272880554, -0.002422182122245431, 0.011994446627795696, -0.015654217451810837, 0.022550346329808235, 0.016789129003882408, -0.007049814332276583, -0.003945359028875828, 0.02077140100300312, -0.011701763607561588, -0.010506097227334976, -0.0052565946243703365, 0.024230239912867546, 0.004592164885252714, -0.025021206587553024, 0.0015205895761027932, -0.012036459520459175, -0.020707640796899796, 0.037404607981443405, -0.025551725178956985, 0.018312035128474236, -0.000738313072361052, 0.002604394219815731, -0.03758658841252327, -0.04636842757463455, 0.002299023326486349, 0.012304768897593021, -0.020646240562200546, 0.008228510618209839, 0.009893522597849369, -0.05245104059576988, 0.041959498077631, 0.007303562946617603, -0.015147656202316284, 0.03463602438569069, 0.010938694700598717, -0.026543131098151207, 0.020007535815238953, 0.011982868425548077, 0.05742481350898743, -0.044443633407354355, -0.02423330582678318, 0.040240004658699036, 0.03572404012084007, 0.019581198692321777, -0.04810279607772827, -0.02643917314708233, 0.024372123181819916, 0.02549852430820465, 0.01059809885919094, -0.008641669526696205, -0.03512207046151161, 0.025062544271349907, 0.03238898143172264, 0.014102887362241745, 0.008309164084494114, -0.04456412419676781, 0.055537305772304535, -0.025304388254880905, 0.0348329171538353, 0.018656931817531586, -0.009835261851549149, 0.019046679139137268, 0.01003416907042265, 0.05351116508245468, 0.036023180931806564, 0.016063673421740532, -0.009453332051634789, -0.01986577920615673, 0.03901052474975586, 0.014397190883755684, -0.08985090255737305, 0.004434069152921438, 0.031547967344522476, 0.0018933260580524802, 0.012839633040130138, 0.012225163169205189, -0.012081517837941647, 0.0038921255618333817, 0.06695045530796051, -0.040463224053382874, -0.014079056680202484, 0.021022701635956764, -0.025440532714128494, -0.007969389669597149, -0.03679206222295761, 0.017041688784956932, 0.0022738517727702856, 0.016131624579429626, -0.0024190954864025116, -0.033730048686265945, -0.049157943576574326, -0.01228750217705965, -0.024592449888586998, -0.002337419893592596, 0.002332389820367098, -0.023859551176428795, 0.036041371524333954, -0.022176697850227356, -0.025012243539094925, -0.01941707916557789, -0.00009218880586558953, 0.011965862475335598, -0.06971514970064163, -0.0057475632056593895, 0.004928710870444775, 0.023003751412034035, -0.001412085723131895, 0.023815739899873734, -0.02583245560526848, 0.00015466254262719303, 0.035479310899972916, 0.005988534539937973, 0.008908211253583431, -0.03208446502685547, 0.07257461547851562, -0.0017660417361184955, -0.006583321839570999, -0.041994430124759674, -0.039261139929294586, -0.02388409711420536, -0.000916921766474843, -0.04509948194026947, 0.022293783724308014, 0.07327127456665039, 0.00017584656598046422, 0.017255952581763268, 0.020758889615535736, 0.037331365048885345, 0.05735010653734207, -0.01096012257039547, 0.03023534268140793, -0.0037814609240740538, 0.016423126682639122, 0.029322979971766472, 0.015703735873103142, -0.011665542609989643, -0.02368546649813652, -0.006140135694295168, -0.032353658229112625, -0.017301250249147415, 0.024774976074695587, -0.061434365808963776, 0.016781121492385864, 0.029825318604707718, -0.05689352750778198, 0.02536585181951523, 0.008788682520389557, 0.04308217763900757, 0.013664131984114647, 0.0241143349558115, 0.004952168092131615, -0.04588771238923073, -0.043790750205516815, 0.02228098176419735, 0.06149344891309738, 0.00471852021291852, 0.026552321389317513, 0.00473107909783721, 0.03963589668273926, 0.05813555419445038, -0.004537535365670919, 0.020655950531363487, 0.013510514982044697, 0.04765916243195534, -0.014462891034781933, 0.0006407112814486027, -0.029473500326275826, -0.02104172669351101, -0.033657707273960114, 0.02071349509060383, -0.010585563257336617, -0.020054662600159645, 0.011425299569964409, -0.04107057675719261, -0.003700927598401904, -0.009242366999387741, -0.05510459840297699, 0.06666848808526993, 0.015501488000154495, -0.0358831025660038, 0.0038417193572968245, 0.007908308878540993, 0.04285380244255066, 0.02673669531941414, -0.01781018078327179, 0.007302450947463512, 0.02741408348083496, -0.021069997921586037, 0.02330836094915867, 0.034943100064992905, 0.006670715287327766, 0.026724321767687798, 0.009767844341695309, -0.015423359349370003, -0.03137676790356636, 0.011430181562900543, 0.01912924274802208, 0.001694369362667203, 0.0187729150056839, 0.002938758349046111, -0.011624457314610481, -0.056047480553388596, -0.030191462486982346, 0.008603599853813648, 0.02352389506995678, 0.019457189366221428, -0.02464144304394722, -0.03242284059524536, 0.05376080051064491, 0.017612144351005554, 0.01462208665907383, -0.031363166868686676, 0.0040764762088656425, 0.0032413627486675978, 0.011003268882632256, -0.08141971379518509, -0.02386864461004734, -0.01878299005329609, 0.0024637493770569563, -0.015163377858698368, 0.013933176174759865, -0.04294603317975998, 0.057931482791900635, 0.05139763280749321, 0.04165365546941757, -0.010781506076455116, -0.01353494357317686, 0.06178005784749985, -0.011760451830923557, -0.015296030789613724, -0.01161519531160593, 0.007017518859356642, -0.033125605434179306, 0.0005298739415593445, -0.03126881644129753, 0.012860968708992004, -0.01975712738931179, 0.02714572474360466, -0.007427325937896967, 0.0343453511595726, -0.009362527169287205, -0.018277592957019806, -0.008299149572849274, 0.0038134586066007614, -0.02160596288740635, -0.003923291806131601, 0.024913828819990158, -0.01677824929356575, 0.018973572179675102, -0.0021073631942272186, -0.025551948696374893, -0.03355960547924042, 0.031157782301306725, 0.0244541484862566, -0.002612156793475151, -0.031591810286045074, 0.012371408753097057, 0.029917268082499504, 0.001208739122375846, 0.06797128170728683, 0.00044170807814225554, 0.032025307416915894, -0.00883969571441412, -0.016882486641407013, 0.00527140311896801, 0.007395855616778135, 0.06214997544884682, -0.04865922033786774, -0.04298869147896767, -0.03440876677632332, -0.003567058825865388, -0.02212483063340187, 0.010969279333949089, -0.056186139583587646, 0.0008308029500767589, -0.03300004452466965, -0.004678746685385704, -0.029727626591920853, -0.02660021185874939, 0.05236539989709854, -0.04114419221878052, -0.008057745173573494, 0.006356554571539164, -0.002753205131739378, 0.04668688774108887, -0.012088593095541, 0.020195165649056435, 0.018943272531032562, 0.0122974319383502, -0.022143114358186722, 0.03022938035428524, 0.025481807067990303, -0.000020509854948613793, -0.01505990233272314, -0.018759585916996002, 0.03133665770292282, -0.04161111265420914, -0.008914765901863575, -0.005258306860923767, 0.0259453896433115, -0.00010579085937933996, -0.00269455392844975, -0.01067730225622654, 0.01653759926557541, -0.022197384387254715, 0.010830715298652649, -0.05047011747956276, 0.031173618510365486, -0.03360140696167946, 0.003950492013245821, 0.02294379472732544, 0.02587295137345791, -0.022963879629969597, 0.012270569801330566, 0.005606966558843851, 0.010002647526562214, 0.011716483160853386, -0.02439367026090622, -0.058896470814943314, 0.009795346297323704, 0.001905570738017559, -0.018404390662908554, -0.08286405354738235, 0.0183037631213665, 0.012436197139322758, 0.00036639563040807843, -0.02658444456756115, 0.018462924286723137, 0.046456292271614075, 0.013889830559492111, 0.010168503038585186, -0.030559174716472626, 0.060598332434892654, 0.03776353597640991, -0.027400730177760124, 0.013865984976291656, -0.0006934684352017939 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
Using SafeCoder Once SafeCoder is deployed and its endpoints are live within the customer VPC, developers can install compatible SafeCoder IDE plugins to get code suggestions as they work. Today, SafeCoder supports popular IDEs, including VSCode, IntelliJ and with more plugins coming from our partners.
[ 0.059843696653842926, -0.0330987386405468, 0.057657644152641296, 0.08271723240613937, 0.054243702441453934, 0.0216075349599123, 0.036758922040462494, 0.00605585565790534, -0.014093932695686817, -0.04066363349556923, -0.07938383519649506, -0.011700482107698917, 0.014130632393062115, 0.034925248473882675, 0.0018050550715997815, -0.03578941151499748, 0.03912561014294624, 0.03661037236452103, 0.0036859510000795126, 0.005549788009375334, -0.03947770968079567, -0.06694118678569794, -0.01836857572197914, -0.06052597612142563, -0.051423296332359314, 0.0188435111194849, -0.032190803438425064, 0.018822140991687775, -0.08978812396526337, -0.03964458033442497, -0.005041670054197311, 0.04571491479873657, 0.022499868646264076, -0.09342560917139053, -0.023657293990254402, 0.007975200191140175, -0.03566450998187065, 0.07443942874670029, -0.020424697548151016, -0.01676558330655098, -0.06558426469564438, -0.10042959451675415, 0.003064238466322422, 0.03656107187271118, 0.04673371464014053, -0.017107851803302765, -0.16066205501556396, 0.06331557035446167, -0.007996976375579834, -0.044955890625715256, -0.0405547097325325, 0.11736306548118591, -0.0011833274038508534, 0.0036148710642009974, -0.01542961411178112, -0.005698357243090868, 0.008600088767707348, -0.08069182187318802, 0.044395141303539276, 0.006032223347574472, 0.038174644112586975, -0.04325323551893234, -0.018754271790385246, -0.0063836476765573025, 0.11822481453418732, 0.049052316695451736, -0.07617182284593582, -0.0048631890676915646, -0.011934400536119938, -0.05271712690591812, -0.007110754959285259, -0.04685836657881737, 0.001124940812587738, -0.004487038590013981, -0.010075646452605724, -0.07067414373159409, -0.05538182333111763, 0.028066493570804596, 0.03879223391413689, 0.030755456537008286, 0.009891683235764503, 0.0005226137582212687, 0.055138204246759415, 0.011337370611727238, 0.02048383839428425, -0.004026845563203096, 0.01676255837082863, -0.06271157413721085, -0.005079161375761032, 0.0005568781634792686, 0.07247905433177948, -0.14730222523212433, -0.042141567915678024, -0.00011832972813863307, -0.007058756425976753, 0.018471822142601013, 0.012322706170380116, 0.015247669070959091, 0.010240035131573677, 0.01577955298125744, -0.0873659998178482, -0.015941549092531204, -0.0174080953001976, -0.0781201645731926, -0.0005951984203420579, -0.06232753396034241, -0.016349053010344505, -0.06344317644834518, -0.02014126069843769, 0.022920425981283188, 0.02009231224656105, -0.01992502436041832, -0.0002751000283751637, 0.06775116920471191, -0.12252023071050644, 0.10228611528873444, 0.03376111760735512, -0.01749255135655403, 0.028437238186597824, -0.0002240967733087018, -0.004629199393093586, 0.05497274920344353, -0.04893225431442261, 0.04974540323019028, -0.011316781863570213, 0.048693832010030746, -0.0814654603600502, 0.0060256002470850945, 0.0017387729603797197, -0.0399947464466095, 0.03825833275914192, 0.06148867681622505, 0.0055207498371601105, -0.035850875079631805, 0.014792850241065025, 0.0094550009816885, -0.07099006325006485, -0.029602916911244392, -0.023366283625364304, 0.032308515161275864, -0.039425354450941086, 0.05700627714395523, 0.03142711892724037, 0.02420576848089695, 0.020682791247963905, -0.05592186003923416, -0.06099679321050644, 0.05554870143532753, 0.04261738806962967, 0.0876348465681076, 0.012205347418785095, 0.06270522624254227, -0.045330893248319626, -0.02469666488468647, -0.020870689302682877, 0.03745301812887192, 0.005202473606914282, -0.010634203441441059, -0.03157535940408707, 0.006019823718816042, -0.013941160403192043, 0.004233786836266518, -0.04045913740992546, 0.0011462338734418154, -0.022917047142982483, -0.015918919816613197, 0.024618277326226234, -0.019101018086075783, 0.07515463978052139, 0.033230286091566086, -0.020874567329883575, -0.029826084151864052, 0.060512419790029526, 0.0178630743175745, 0.07448747009038925, 0.015986589714884758, 0.07179245352745056, 0.10898243635892868, 0.02662981115281582, -0.06005020812153816, -0.024186240509152412, 0.037772465497255325, -0.07793398946523666, 0.02764095552265644, -0.03283810243010521, -0.08571366965770721, 0.025126473978161812, -0.056197330355644226, 0.0006298847729340196, 0.029929226264357567, -0.012300794944167137, 0.04474937170743942, 0.010680124163627625, -0.01241677813231945, 0.01437621284276247, -0.008618340827524662, -0.004713638685643673, 0.11971327662467957, 0.048838090151548386, 0.04883639141917229, 0.05357383191585541, -0.04739287495613098, 0.06198594719171524, 0.007765044923871756, -0.08886834233999252, 0.10956045985221863, 0.06373224407434464, -0.01779816299676895, 0.034602340310811996, 0.03203864023089409, 0.06012219190597534, -0.03762878105044365, 0.03583657369017601, -0.04529683291912079, 0.015999091789126396, 0.01696835272014141, -0.039190392941236496, 0.03166941925883293, -0.01821715757250786, 0.004451706074178219, 0.15553249418735504, -0.07005450874567032, 0.016729120165109634, -0.028743747621774673, -0.03594338148832321, 0.072856105864048, 0.03436233103275299, -0.0008960213745012879, 0.08968514204025269, 0.0473574735224247, -0.05263209342956543, -0.00010483659571036696, -0.03220684453845024, 0.024433378130197525, 0.06334570795297623, 0.07643076032400131, 0.007817902602255344, -0.01103968545794487, 0.04309213533997536, -0.025730600580573082, 0.000532915408257395, -0.02777717262506485, -0.020045416429638863, 0.016151584684848785, 0.016504090279340744, 0.006949034985154867, 0.09917646646499634, -0.005615637172013521, 0.03638895973563194, -0.019689546898007393, -0.01955532468855381, -0.043050896376371384, 0.01493468601256609, 0.0064314003102481365, 0.0664229542016983, 0.0008766973624005914, -0.012295490130782127, -0.023627324029803276, -0.009484331123530865, 0.017187807708978653, 0.049564991146326065, -0.04359612986445427, 0.016473639756441116, -0.0433395653963089, 0.01544710248708725, -0.0017210528021678329, -0.03591466322541237, 0.005702030844986439, -0.0013115658657625318, -0.03959280252456665, -0.013734258711338043, -0.012207943014800549, 0.003986676223576069, -0.02297942154109478, 0.007919141091406345, 0.02452154830098152, -0.006985282059758902, -0.030446283519268036, -0.03390682488679886, -0.008839826099574566, 0.055222123861312866, -0.031892236322164536, 0.03588666766881943, 0.05544877052307129, 0.015057744458317757, 0.007907265797257423, -0.027134142816066742, -0.02990076132118702, -0.04600818455219269, 0.008531788364052773, 0.031043248251080513, 0.015460583381354809, -0.03281621262431145, 0.046952586621046066, -0.024986987933516502, -0.035293616354465485, 0.013103874400258064, 0.026115549728274345, -0.04541332274675369, -0.00439481483772397, 0.012516616843640804, 0.023479245603084564, -0.005579571705311537, -0.0682918131351471, -0.040847569704055786, 0.0560116283595562, 0.02098141424357891, -0.02923556976020336, -0.1024547591805458, -0.022597650066018105, -0.02031431719660759, 0.030587870627641678, 0.007226567715406418, -0.0008862060494720936, 0.05934500694274902, -0.018664948642253876, -0.021810751408338547, 0.01977776549756527, 0.0004930037539452314, 0.008094246499240398, 0.05901086702942848, 0.024801673367619514, -0.03353501483798027, -0.03086080774664879, -0.026718663051724434, 0.060719918459653854, 0.014835537411272526, 0.011760273948311806, -0.024204879999160767, 0.03859204426407814, -0.0034683600533753633, -0.02295496314764023, 0.014827466569840908, -0.00789333414286375, 0.0383727066218853, 0.03231947869062424, -0.009548463858664036, -0.03380027785897255, 0.03988320752978325, -0.020001595839858055, 0.006384785287082195, -0.05078906938433647, -0.0444021113216877, 0.03271226957440376, -0.019009768962860107, -0.037358906120061874, 0.02816367894411087, -0.0029443984385579824, -0.032868050038814545, -0.01215539313852787, 0.0013893985887989402, -0.05110783129930496, -0.004351568873971701, -0.022988682612776756, 0.031892843544483185, 0.011652580462396145, 0.022301742807030678, -0.020578188821673393, -0.014849403873085976, -0.014864821918308735, 0.02289585955440998, 0.050286099314689636, 0.006220291834324598, -0.019470341503620148, -0.031724780797958374, 0.02380627766251564, 0.01072628516703844, 0.013726314529776573, -0.045279573649168015, -0.024818649515509605, 0.023060355335474014, -0.042491935193538666, -0.055853549391031265, 0.029387442395091057, 0.02687140367925167, -0.03536086156964302, -0.036500368267297745, -0.011941298842430115, -0.007589464075863361, 0.031346991658210754, 0.04892663657665253, 0.01724839210510254, -0.024771733209490776, 0.009146246127784252, -0.01916029490530491, -0.015695717185735703, 0.02395436353981495, 0.03657149896025658, 0.022108806297183037, 0.008512345142662525, 0.0037017192225903273, 0.0037546250969171524, 0.008592204190790653, 0.04171782732009888, -0.0007851592381484807, 0.021721109747886658, 0.007634527049958706, 0.047063443809747696, 0.008342446759343147, -0.022596292197704315, 0.026146765798330307, -0.031047793105244637, 0.0037187307607382536, 0.029402369633316994, 0.008040024898946285, -0.007984151132404804, 0.005799898412078619, -0.01572919450700283, -0.01741350069642067, -0.04958886653184891, 0.014721320942044258, 0.005710894707590342, -0.015581290237605572, 0.016681473702192307, 0.001132496981881559, -0.0009287881548516452, -0.038027696311473846, -0.020321626216173172, 0.027741236612200737, -0.04342673718929291, 0.007649668492376804, -0.05638306587934494, 0.04743034392595291, -0.0029685033950954676, -0.0070393686182796955, -0.02471017837524414, -0.018527096137404442, -0.015758994966745377, 0.016386982053518295, -0.003281800774857402, 0.006562537048012018, 0.03301684930920601, -0.009014329873025417, -0.00394220557063818, 0.025839321315288544, 0.0058886464685201645, -0.02271171472966671, 0.02854171209037304, -0.02203083038330078, 0.01583844982087612, 0.004699320532381535, -0.012029975652694702, 0.01830388605594635, -0.02709999494254589, 0.00025219100643880665, 0.02097965218126774, -0.01953682117164135, -0.05744718760251999, -0.04702536761760712, 0.0366036482155323, 0.035473890602588654, -0.02912316471338272, 0.07069151848554611, -0.016492420807480812, -0.030775019899010658, 0.002943802159279585, -0.015164414420723915, 0.008031911216676235, 0.021646633744239807, -0.031294748187065125, 0.004381221253424883, -0.013708402402698994, 0.006274621468037367, -0.03834626078605652, 0.0033612565603107214, 0.030575376003980637, 0.012436597608029842, 0.014359434135258198, 0.02581653743982315, -0.0016694299411028624, -0.018569273874163628, -0.024380134418606758, 0.007075486239045858, -0.003732831683009863, -0.0139797143638134, -0.014794840477406979, -0.03463832661509514, -0.009592881426215172, 0.009853383526206017, 0.016499685123562813, 0.037068914622068405, -0.006988422013819218, -0.01601600833237171, 0.014867281541228294, 0.03435636684298515, 0.031241878867149353, -0.00022031791741028428, 0.0019993020687252283, 0.0037838974967598915, 0.015928607434034348, 0.01683824695646763, 0.0005756858736276627, 0.006991106551140547, -0.05347984656691551, 0.08723205327987671, 0.0396500825881958, -0.004585234913975, -0.009656584821641445, 0.005817971657961607, 0.0011688743252307177, -0.01264310535043478, -0.026501815766096115, -0.03195466846227646, -0.05632389336824417, 0.008727937936782837, 0.034647732973098755, -0.05869125947356224, -0.023614713922142982, 0.011686467565596104, -0.0060835303738713264, -0.03640727326273918, 0.00464135967195034, -0.004801309201866388, 0.030403049662709236, 0.042404744774103165, -0.01414724625647068, 0.013900893740355968, 0.009111287072300911, 0.02320646308362484, 0.005435988772660494, -0.014701774343848228, 0.013737553730607033, -0.01596680097281933, -0.06991766393184662, -0.0168908778578043, -0.010933428071439266, 0.031821109354496, -0.002874530851840973, 0.00022537689073942602, -0.005288362968713045, -0.006941570434719324, 0.009198887273669243, 0.05383872240781784, 0.013614701107144356, 0.00735111441463232, -0.014449160546064377, -0.029440533369779587, 0.01885681040585041, 0.06901886314153671, 0.020999284461140633, 0.027175847440958023, -0.01780940778553486, -0.009402524679899216, -0.031261298805475235, -0.030641475692391396, 0.02949489839375019, -0.012250786647200584, -0.021779697388410568, -0.023001044988632202, -0.080916628241539, -0.015429861843585968, -0.024753479287028313, -0.06314654648303986, 0.00015699736832175404, 0.0073755839839577675, 0.023571956902742386, 0.015319294296205044, -0.0003656898334156722, 0.05125411972403526, 0.01327715814113617, 0.005347282625734806, -0.042823050171136856, 0.026802536100149155, 0.01575116440653801, 0.02072974480688572, -0.01682163216173649, -0.031230146065354347, -0.033248450607061386, 0.014820634387433529, -0.05552979186177254, 0.023840121924877167, 0.06587911397218704, -0.01771109364926815, 0.009487137198448181, 0.0001294942485401407, 0.0028277134988456964, -0.01887698844075203, -0.013435985893011093, 0.05546288937330246, 0.053112708032131195, 0.03512221574783325, -0.003405281575396657, 0.010817285627126694, -0.028676476329565048, 0.051814112812280655, 0.07618929445743561, -0.0521620474755764, 0.023958800360560417, 0.0038392359856516123, 0.04189704358577728, 0.011920413933694363, 0.0021850336343050003, 0.006876643747091293, -0.02242562547326088, 0.01576904207468033, 0.011665988713502884, 0.03319356217980385, 0.03041074052453041, 0.0029986149165779352, -0.024183373898267746, 0.009531107731163502, 0.01523177232593298, -0.05351899936795235, 0.013324986211955547, -0.003998850006610155, -0.025171322748064995, 0.03182418271899223, -0.04123835265636444, 0.059200137853622437, 0.04372038319706917, 0.04663194343447685, -0.0063344636000692844, 0.02971295826137066, 0.042912766337394714, 0.04617191478610039, 0.02351345308125019, 0.0268879272043705, 0.017688415944576263, -0.002769078128039837, 0.05717524513602257, 0.01419642474502325, 0.04263322427868843, 0.05049915239214897, 0.015635551884770393, 0.013185784220695496, -0.013457375578582287, -0.01243646815419197, 0.014087664894759655, -0.005238678772002459, -0.053550299257040024, -0.05293805152177811, 0.0014220646116882563, -0.03133683279156685, -0.0073352172039449215, 0.02601153776049614, -0.010905206203460693, -0.03217914700508118, -0.014098955318331718, -0.03719310089945793, 0.03567131236195564, 0.016304541379213333, 0.018866660073399544, -0.024102983996272087, -0.001575838658027351, -0.035050828009843826, 0.03617319464683533, -0.04216640070080757, -0.004331147763878107, 0.0009568148525431752, -0.00043061256292276084, -0.005780784413218498, 0.05111083760857582, 0.005130442325025797, -0.010077818296849728, 0.021598102524876595, 0.0034446273930370808, -0.003991261590272188, -0.005492301657795906, 0.032992757856845856, 0.025888262316584587, -0.0334925577044487, 0.018183238804340363, -0.028393181040883064, -0.06163375452160835, -0.025557775050401688, -0.028351223096251488, 0.048637233674526215, -0.027823179960250854, 0.009944413788616657, -0.021022465080022812, 0.030520088970661163, -0.02249087765812874, 0.0029844592791050673, -0.018694281578063965, -0.024251913651823997, -0.020981816574931145, 0.018116841092705727, 0.02684585563838482, -0.013738532550632954, -0.010892421007156372, 0.03254558891057968, -0.017300892621278763, -0.022180933505296707, -0.006711534224450588, 0.04423042759299278, 0.016676917672157288, -0.008629271760582924, -0.00851260032504797, 0.06087569147348404, 0.031819019466638565, 0.0258281622081995, 0.06210934370756149, 0.02490297146141529, -0.01389308087527752, -0.02741928957402706, -0.006200050003826618, -0.052960239350795746, 0.013406291604042053, -0.04008718952536583, -0.03899436816573143, -0.041799355298280716, -0.023467818275094032, 0.011617586016654968, 0.027569731697440147, 0.03216340392827988, 0.0135441729798913, 0.025054683908820152, -0.008943489752709866, -0.027744321152567863, 0.03415333107113838, 0.013638067059218884, 0.002180151641368866, 0.03807832673192024, -0.031257688999176025, 0.010084261186420918, 0.008789298124611378, -0.008170386776328087, 0.01727885566651821, 0.037150364369153976, 0.049504444003105164, -0.03067046031355858, 0.019181663170456886, 0.004482830408960581, -0.023678231984376907, 0.013036489486694336, 0.016646146774291992, -0.012195383198559284, -0.028672952204942703, 0.007123952265828848, -0.010195731185376644, 0.03385141119360924, 0.032009512186050415, -0.022177161648869514, 0.02471974492073059, -0.003128346987068653, 0.003310708561912179, -0.012997276149690151, -0.003197407117113471, -0.04719550162553787, -0.02756841480731964, -0.01690698228776455, 0.023313894867897034, 0.005262632854282856, 0.014877489767968655, -0.040064532309770584, -0.015086568892002106, 0.007771046832203865, -0.03588132560253143, -0.00831519067287445, -0.00565151683986187, -0.045474931597709656, 0.04001458361744881, -0.01707385666668415, -0.04984612390398979, -0.02269757352769375, -0.011464829556643963, -0.04334332421422005, 0.014007408171892166, 0.010611990466713905, -0.03538104519248009, 0.0017940413672477007, 0.037433870136737823, 0.0008610131335444748, 0.07847895473241806, 0.029391756281256676, -0.0063860113732516766, 0.0048428974114358425, -0.003288018750026822 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
How does it work? SafeCoder is a complete commercial solution, including service, software and support.
[ 0.05303284898400307, 0.04299480468034744, 0.10681191086769104, 0.04605735093355179, 0.1115604117512703, 0.036922845989465714, 0.000260276923654601, -0.005351664032787085, -0.01801355555653572, -0.052378639578819275, -0.08852294832468033, 0.030467838048934937, -0.027681639418005943, 0.020673967897892, -0.04012379050254822, 0.021125171333551407, 0.059074945747852325, 0.0027300009969621897, 0.028735755011439323, -0.02768307738006115, -0.08558019250631332, -0.06511113792657852, -0.0012545972131192684, -0.07821600884199142, -0.035308968275785446, 0.05400621518492699, -0.03219931200146675, -0.009647334925830364, -0.09797678142786026, 0.03394286334514618, -0.012051152065396309, 0.044783953577280045, 0.011199789121747017, -0.09607970714569092, 0.019002186134457588, 0.013259189203381538, -0.07497257739305496, 0.0648585855960846, -0.0590636283159256, -0.061551619321107864, -0.04237533360719681, -0.025186065584421158, -0.043962594121694565, 0.009791280142962933, -0.038773417472839355, -0.010997671633958817, -0.263536661863327, 0.10140197724103928, -0.03401380777359009, -0.03844587877392769, -0.052582189440727234, 0.07802313566207886, -0.023850642144680023, 0.023446880280971527, 0.0006904738838784397, 0.021835850551724434, 0.0178618673235178, -0.01571575552225113, 0.03734419122338295, -0.041347794234752655, 0.04410919174551964, -0.07813974469900131, -0.0027741389349102974, 0.006901741027832031, 0.05347238853573799, 0.03628148138523102, -0.018563004210591316, 0.005468756891787052, 0.017731843516230583, -0.04885459318757057, -0.014718431979417801, 0.0009849031921476126, -0.031589947640895844, 0.0009009238565340638, -0.002072923583909869, -0.09383034706115723, -0.057275425642728806, 0.03313004970550537, 0.07495579868555069, 0.03247008100152016, 0.016052182763814926, 0.004245612770318985, 0.05647796764969826, 0.04975686967372894, 0.007729205768555403, -0.0015768904704600573, -0.023584652692079544, -0.02006436139345169, 0.0071610696613788605, -0.0007343101897276938, 0.044773466885089874, -0.1385197639465332, -0.019514456391334534, -0.021230420097708702, -0.025859596207737923, 0.018361540511250496, 0.031821586191654205, 0.026608331128954887, 0.012645610608160496, 0.03054455853998661, -0.04645225778222084, -0.0316208079457283, 0.012749595567584038, -0.05105489119887352, 0.02802114374935627, -0.012255081906914711, -0.0163589995354414, -0.027524791657924652, -0.01539032906293869, 0.025074303150177002, 0.04148569703102112, -0.0053652492351830006, 0.00044376117875799537, 0.043638281524181366, -0.09028235077857971, 0.05806322395801544, 0.02857305109500885, -0.05105440691113472, 0.039671625941991806, 0.023094218224287033, -0.030858322978019714, 0.04875434562563896, -0.04330507293343544, 0.029994847252964973, -0.008200242184102535, -0.014931217767298222, 0.001966955838724971, 0.008234057575464249, -0.03858354315161705, -0.019545644521713257, 0.011007234454154968, 0.05779232084751129, -0.003403684124350548, 0.006066875997930765, 0.00469885254278779, 0.003316964488476515, -0.07471999526023865, -0.014163258485496044, -0.04326370730996132, -0.017474517226219177, -0.05531678721308708, 0.05818357691168785, 0.03605208918452263, 0.034719739109277725, -0.021600419655442238, -0.06399103999137878, -0.05282992497086525, 0.08212175965309143, 0.030465736985206604, 0.031584322452545166, -0.0038037023041397333, 0.04240681231021881, -0.008439983241260052, -0.1021074652671814, -0.0041596912778913975, 0.01975431852042675, 0.018467426300048828, -0.03129341080784798, -0.06427539139986038, 0.015847036615014076, 0.008657754398882389, -0.02530597150325775, -0.04218663275241852, -0.026565920561552048, -0.0051391697488725185, -0.03135549649596214, 0.023876037448644638, 0.008396835997700691, 0.013152968138456345, -0.02579532191157341, -0.057384930551052094, -0.04168661683797836, 0.08541322499513626, -0.012878891080617905, 0.00901013147085905, -0.004105938598513603, 0.07147878408432007, 0.09469311684370041, 0.03493579849600792, -0.023755567148327827, -0.051330454647541046, -0.0028551823925226927, -0.01949593424797058, 0.037686530500650406, -0.05297509953379631, -0.055771246552467346, -0.0018002743599936366, -0.07029172778129578, -0.0050048199482262135, 0.0490361712872982, -0.06474730372428894, 0.008557029999792576, 0.054319269955158234, -0.0316692553460598, 0.00898302998393774, -0.037811487913131714, -0.03069036826491356, 0.11986988037824631, 0.021498914808034897, 0.08049356937408447, 0.04353852570056915, -0.017622210085392, 0.0462084598839283, -0.06684444099664688, -0.07444625347852707, 0.0831046774983406, 0.10746728628873825, 0.0027036655228585005, 0.028683526441454887, 0.03737791255116463, 0.036183133721351624, -0.07891334593296051, 0.00415354548022151, -0.08467521518468857, 0.04311031475663185, 0.022630823776125908, -0.022791752591729164, -0.019146572798490524, 0.0016819274751469493, -0.003998078405857086, 0.1348813772201538, -0.05639040470123291, -0.006707326974719763, 0.024628322571516037, -0.05005428194999695, 0.09448371827602386, 0.042838919907808304, -0.006289314478635788, 0.07751990109682083, -0.03848879784345627, -0.003156085032969713, -0.012216786853969097, -0.02556835114955902, 0.02322394959628582, 0.04027435928583145, 0.04375495761632919, 0.005576078314334154, 0.0022405118215829134, 0.04371493682265282, 0.008962913416326046, 0.01714513637125492, -0.006219725124537945, -0.023435700684785843, -0.008256897330284119, -0.004742335062474012, -0.00857216864824295, 0.048433467745780945, -0.02492363750934601, 0.009440938010811806, -0.015040252357721329, -0.04057306796312332, 0.005000860430300236, -0.0067262789234519005, 0.00020891027816105634, 0.08182395994663239, -0.014711315743625164, -0.01231091283261776, -0.04102788493037224, -0.014628804288804531, -0.005961450282484293, 0.04655413329601288, -0.054649338126182556, 0.021107513457536697, -0.07005831599235535, -0.0001797985314624384, -0.013803199864923954, -0.016902539879083633, 0.05171996355056763, -0.012081237509846687, 0.002337082987651229, -0.011280979961156845, -0.014734643511474133, -0.005121865309774876, -0.0259572584182024, 0.014859858900308609, 0.023143310099840164, 0.02129211276769638, -0.03319434076547623, -0.022882957011461258, 0.007852398790419102, 0.020821526646614075, -0.013878589496016502, 0.0406319797039032, 0.03803016617894173, 0.05433844029903412, 0.014116181060671806, 0.0041938964277505875, 0.029048286378383636, -0.022399717941880226, 0.024095257744193077, -0.01484178937971592, 0.006927886046469212, 0.020783253014087677, 0.022957447916269302, 0.00782108586281538, -0.0410333052277565, 0.01206049881875515, 0.01611233688890934, -0.03956416994333267, -0.01961357705295086, 0.02297935076057911, -0.007515772245824337, -0.008659799583256245, -0.0338953360915184, -0.06437154859304428, 0.06866035610437393, 0.014530728571116924, -0.021308764815330505, -0.12532398104667664, -0.02090878039598465, -0.0033978959545493126, 0.00009738087101140991, 0.012077545747160912, 0.01078388374298811, 0.041477352380752563, -0.030049609020352364, -0.011838799342513084, 0.03763173520565033, 0.024996479973196983, 0.031812626868486404, 0.05684782192111015, -0.00212139287032187, -0.006457366049289703, -0.019664032384753227, -0.012938921339809895, 0.06929813325405121, 0.017403505742549896, 0.002220562193542719, 0.007562858518213034, 0.04353194683790207, 0.0026654668617993593, 0.014275995083153248, -0.025205623358488083, 0.00233716843649745, 0.03643602877855301, -0.002037956379354, -0.0275961272418499, -0.012681033462285995, -0.011097762733697891, 0.010519973002374172, 0.018336018547415733, -0.026362722739577293, -0.03442677482962608, 0.011918501928448677, 0.006405258551239967, -0.026521574705839157, -0.0011330981506034732, -0.007901139557361603, 0.0007196750375442207, 0.0025575177278369665, -0.013377674855291843, -0.03146611899137497, -0.0003530746325850487, -0.02383950725197792, 0.025707632303237915, -0.0054157208651304245, 0.05766356363892555, -0.031414832919836044, -0.019659772515296936, -0.018969248980283737, 0.0036233512219041586, 0.06665446609258652, -0.016947608441114426, -0.018371157348155975, -0.026633011177182198, 0.019965216517448425, 0.0365167111158371, 0.031397148966789246, -0.029933888465166092, -0.007376618683338165, 0.005465550813823938, -0.04765242338180542, -0.06349892169237137, 0.0242454893887043, 0.034655891358852386, -0.02182033099234104, -0.016807440668344498, 0.032457415014505386, -0.008500233292579651, 0.029285002499818802, 0.0228391345590353, 0.02127962000668049, -0.022233745083212852, 0.04154473543167114, -0.03176625072956085, -0.01432777289301157, 0.05962018668651581, 0.013555276207625866, 0.03960397094488144, -0.005733851343393326, 0.026655513793230057, -0.0063662040047347546, 0.004343017004430294, 0.019573962315917015, -0.014934194274246693, 0.060885123908519745, 0.03179639205336571, 0.022277921438217163, 0.017043447121977806, -0.029702967032790184, 0.015829963609576225, 0.020291829481720924, 0.008333140052855015, 0.030658086761832237, 0.03501284867525101, -0.0024120796006172895, 0.018015602603554726, 0.00575295789167285, 0.030067462474107742, -0.04147868603467941, -0.03230585157871246, -0.01317762490361929, -0.016646210104227066, 0.03659180924296379, -0.008418821729719639, -0.034908223897218704, -0.028429776430130005, 0.00977200735360384, 0.027183424681425095, -0.01313603762537241, 0.01860518753528595, -0.04799264669418335, 0.01187837403267622, -0.003479617414996028, -0.016874484717845917, -0.06310725957155228, -0.017646264284849167, -0.019653229042887688, 0.0026190353091806173, 0.019249705597758293, 0.022652655839920044, 0.012687789276242256, -0.030497735366225243, -0.004446408711373806, 0.050081003457307816, 0.02072320133447647, 0.005208995193243027, 0.004710834939032793, -0.02466319501399994, 0.008147033862769604, 0.006811607629060745, -0.010931285098195076, 0.04551275074481964, -0.019489368423819542, 0.022008419036865234, 0.029482733458280563, -0.01740589737892151, -0.07430882751941681, 0.0030080946162343025, 0.02113417722284794, 0.031452395021915436, -0.011874794960021973, 0.07674048095941544, -0.006954618263989687, -0.02736716717481613, 0.018409933894872665, 0.0007407193770632148, 0.009181875735521317, 0.00000547942727280315, -0.04983413219451904, -0.024044370278716087, -0.016425814479589462, 0.010563543066382408, -0.04808730259537697, 0.00681379996240139, 0.00029613939113914967, 0.006811168510466814, 0.056351710110902786, 0.01654360629618168, 0.012748250737786293, -0.04136936739087105, -0.02825542353093624, 0.0002114567469106987, 0.004636785015463829, 0.008197746239602566, -0.017906635999679565, -0.03688814491033554, 0.014940193854272366, -0.01770179159939289, -0.010467610321938992, 0.025933342054486275, 0.004271420184522867, -0.002778488676995039, 0.0502680204808712, 0.0053015477024018764, 0.025577275082468987, 0.004395133350044489, 0.014077926985919476, -0.0004378065641503781, 0.03697296977043152, 0.013153144158422947, 0.020694110542535782, 0.022386204451322556, -0.019986335188150406, 0.06696872413158417, 0.024726880714297295, -0.020286230370402336, 0.02514231577515602, 0.011696208268404007, -0.0029961629770696163, 0.0030804744455963373, -0.022682098671793938, 0.0037805545143783092, -0.03365461528301239, 0.00933125615119934, 0.014729345217347145, -0.03576381504535675, -0.012055888772010803, 0.007939535193145275, 0.00985085591673851, -0.04023094102740288, -0.026187101379036903, -0.030458318069577217, -0.0015287731075659394, 0.027220357209444046, 0.010750878602266312, 0.03641137480735779, 0.008619568310678005, 0.011252105236053467, 0.029810847714543343, -0.0231744684278965, 0.017220722511410713, -0.025752462446689606, -0.048141200095415115, -0.02482634410262108, 0.02686694636940956, 0.007402920629829168, -0.0024007319007068872, 0.01542035210877657, 0.019405947998166084, -0.0227467343211174, 0.03021930530667305, 0.055920276790857315, 0.00769439060240984, 0.014609749428927898, -0.0031121661886572838, 0.003706672228872776, 0.03504440188407898, 0.07078026980161667, 0.007112876512110233, -0.0011952560162171721, -0.014931745827198029, 0.017052145674824715, 0.006289629731327295, -0.03929256647825241, 0.03632364794611931, -0.02352600358426571, -0.013356233015656471, -0.005071376916021109, -0.04482176899909973, 0.007192470598965883, -0.033382926136255264, -0.021536095067858696, 0.0043341731652617455, 0.047089286148548126, 0.0205991230905056, 0.04084327816963196, 0.012521936558187008, 0.052913423627614975, -0.00017279635358136147, 0.014659697189927101, -0.008539621718227863, 0.02022893913090229, 0.018439708277583122, 0.02587498538196087, -0.0031466649379581213, 0.009993629530072212, -0.05557284876704216, 0.004607217386364937, -0.03768137842416763, 0.011417752131819725, 0.053397636860609055, -0.017190398648381233, 0.025809140875935555, 0.03487132489681244, 0.005974296014755964, 0.038338519632816315, -0.008983257226645947, 0.005303908605128527, 0.06628939509391785, 0.0193931981921196, 0.013814135454595089, -0.006265300791710615, -0.038449764251708984, 0.03869926556944847, 0.07346570491790771, -0.036881085485219955, 0.03587901219725609, 0.04424583539366722, 0.04726370796561241, 0.05386070907115936, -0.012022038921713829, -0.006503482349216938, 0.002227232325822115, 0.024168020114302635, 0.005991813726723194, 0.011396249756217003, 0.02221141941845417, 0.004151239991188049, -0.0232884269207716, -0.0007285107858479023, 0.037058956921100616, -0.06879334896802902, 0.01759091392159462, -0.008980206213891506, -0.02887658402323723, 0.04916714131832123, -0.05924046039581299, 0.0322638601064682, 0.0181789081543684, 0.019182352349162102, -0.0030943602323532104, 0.03618571534752846, 0.026663951575756073, 0.04446291923522949, 0.010137969627976418, 0.0016946670366451144, -0.00736397597938776, 0.017847564071416855, 0.06537614017724991, 0.013387459330260754, 0.00609036348760128, 0.05571194365620613, -0.011021053418517113, 0.0495256669819355, -0.010288435965776443, -0.046453170478343964, 0.029313303530216217, 0.02995588816702366, -0.0416240394115448, -0.03333275020122528, 0.005177616141736507, -0.01753038354218006, -0.012501935474574566, 0.017659176141023636, 0.018388401716947556, -0.01601484976708889, -0.015055669471621513, -0.03116043657064438, 0.019995857030153275, -0.01089765876531601, 0.0009881885489448905, -0.025674451142549515, -0.0036331703886389732, -0.030256491154432297, 0.036010224372148514, -0.04362202435731888, -0.03931983560323715, -0.03307649865746498, 0.016711587086319923, -0.03511092811822891, 0.028654182329773903, 0.012499993667006493, 0.0007006102823652327, 0.0327717661857605, 0.00002910097646235954, -0.02326834574341774, 0.010922092944383621, 0.06499574333429337, 0.020457884296774864, -0.04219793528318405, -0.008520335890352726, -0.03151225671172142, -0.021664628759026527, -0.026552066206932068, 0.020334890112280846, 0.03528608754277229, -0.01758679375052452, 0.015596755780279636, -0.008338813669979572, 0.02067696861922741, -0.019336912781000137, -0.017955545336008072, -0.012925063259899616, -0.05137386545538902, -0.01999695971608162, 0.033441025763750076, 0.030865676701068878, -0.03411807119846344, -0.021480737254023552, 0.040299203246831894, 0.01065711211413145, -0.02735021710395813, 0.012713765725493431, 0.02290075644850731, 0.007083304226398468, -0.037427715957164764, 0.007080987095832825, 0.07294321805238724, 0.016102299094200134, 0.04587878659367561, 0.04480325058102608, 0.030359400436282158, -0.02206120267510414, -0.04512670263648033, 0.007419918663799763, -0.0073073068633675575, 0.013231336139142513, -0.019337808713316917, -0.04914363473653793, -0.020780302584171295, -0.027453212067484856, 0.021172616630792618, 0.02206818200647831, 0.004673152230679989, 0.0021962765604257584, 0.023478150367736816, 0.008223462849855423, -0.03834361582994461, 0.028347758576273918, -0.00007591061148559675, -0.024646306410431862, 0.010736048221588135, 0.0021220622584223747, 0.011363837867975235, -0.008675546385347843, 0.0008702368941158056, 0.0004788369406014681, 0.03218669816851616, 0.029654480516910553, -0.019032495096325874, -0.03307649493217468, 0.01506663765758276, -0.05384283512830734, -0.008126510307192802, 0.015800409018993378, 0.0273045152425766, -0.04841697961091995, 0.020096495747566223, -0.009370445273816586, 0.02423756942152977, 0.01623952016234398, 0.00673380121588707, 0.025213586166501045, 0.003046416910365224, 0.0005286909290589392, -0.03847301006317139, -0.008681140840053558, -0.05018110200762749, -0.019048374146223068, -0.009812838397920132, 0.017655592411756516, -0.004076000768691301, -0.004731614608317614, -0.017080562189221382, -0.024103429168462753, 0.028189215809106827, -0.028163529932498932, 0.004526968114078045, 0.007609382271766663, -0.03083166293799877, -0.015848658978939056, -0.005956139415502548, -0.0656314417719841, 0.014200134202837944, -0.007536628749221563, -0.0296123456209898, 0.008479458279907703, -0.026067201048135757, -0.026381606236100197, 0.00855378806591034, 0.052928198128938675, -0.01605786196887493, 0.09737889468669891, 0.024952009320259094, -0.021426914259791374, 0.0196426622569561, 0.0076363529078662395 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
Compliance as a Core Principle As the regulation framework around machine learning models and datasets is still being written across the world, global companies need to make sure the solutions they use minimize legal risks. Data sources, data governance, management of copyrighted data are just a few of the most important compliance areas to consider. BigScience, the older cousin and inspiration for BigCode, addressed these areas in working groups before they were broadly recognized by the draft AI EU Act, and as a result was graded as most compliant among Foundational Model Providers in a Stanford CRFM study. BigCode expanded upon this work by implementing novel techniques for the code domain and building The Stack with compliance as a core principle, such as commercially permissible license filtering, consent mechanisms (developers can easily find out if their code is present and request to be opted out of the dataset), and extensive documentation and tools to inspect the source data, and dataset improvements (such as deduplication and PII removal). All these efforts translate into legal risk minimization for users of the StarCoder models, and customers of SafeCoder. And for SafeCoder users, these efforts translate into compliance features: when software developers get code completions these suggestions are checked against The Stack, so users know if the suggested code matches existing code in the source dataset, and what the license is. Customers can specify which licenses are preferred and surface those preferences to their users.
[ 0.0497564822435379, -0.016280392184853554, -0.00328159611672163, 0.052445050328969955, 0.020256293937563896, -0.03293830156326294, -0.05324043333530426, -0.008605984039604664, 0.007124934811145067, 0.022496001794934273, -0.06678500771522522, 0.02455819770693779, -0.0247661080211401, 0.06043495610356331, 0.02667800337076187, -0.010614803992211819, 0.038386184722185135, 0.010755025781691074, -0.017681119963526726, -0.014776615425944328, -0.023059481754899025, -0.021092206239700317, -0.005539091303944588, -0.008328190073370934, -0.017575230449438095, -0.031119046732783318, -0.045132510364055634, 0.03771591559052467, -0.0788806825876236, 0.09359283745288849, -0.023770228028297424, 0.009883563965559006, -0.036539558321237564, 0.004875428043305874, -0.05559764802455902, 0.02199912630021572, -0.06721851974725723, 0.07118770480155945, -0.0382736511528492, -0.01001971960067749, -0.002200351795181632, -0.012890222482383251, -0.08422257006168365, -0.026516268029808998, -0.007324382662773132, -0.049304161220788956, -0.12795525789260864, 0.08112639933824539, -0.023516209796071053, 0.024229303002357483, -0.01747892051935196, 0.07289730757474899, -0.02707994170486927, 0.07005643099546432, 0.07776225358247757, -0.035400278866291046, -0.02570071443915367, -0.0061689820140600204, -0.03415858745574951, -0.0011890899622812867, -0.016244083642959595, -0.04989549517631531, 0.08070480823516846, -0.019714633002877235, 0.029630286619067192, 0.0010155736235901713, -0.021482087671756744, 0.02608308382332325, -0.012685421854257584, -0.06049749255180359, 0.029916301369667053, -0.04865306615829468, -0.04342111945152283, -0.06521207094192505, -0.08444496244192123, -0.06063394248485565, -0.00031563270022161305, 0.03808429464697838, 0.018300190567970276, -0.022238310426473618, 0.040970329195261, 0.030904704704880714, 0.009530230425298214, -0.020093407481908798, 0.022659344598650932, -0.008587420918047428, -0.0025281275156885386, -0.036977920681238174, 0.034469638019800186, 0.038783010095357895, -0.007105311378836632, -0.12336184829473495, 0.03093094378709793, 0.04076037555932999, 0.04834212735295296, -0.04413117095828056, -0.045293647795915604, 0.02053372748196125, 0.007075605448335409, 0.003313560038805008, -0.07794158160686493, 0.022215235978364944, -0.04819915071129799, -0.07016763836145401, -0.05954555794596672, 0.02437736466526985, -0.0061296927742660046, -0.04369252547621727, -0.06207861006259918, 0.012080345302820206, 0.039869651198387146, -0.008552316576242447, -0.02480178326368332, 0.07425682991743088, -0.10575370490550995, 0.03817939758300781, -0.002743426011875272, -0.08483374118804932, 0.015938615426421165, 0.031045470386743546, 0.01864188350737095, 0.024701016023755074, -0.0835910439491272, 0.008813041262328625, 0.017117835581302643, 0.05466236546635628, 0.016777800396084785, 0.01835809461772442, 0.022112153470516205, -0.12190919369459152, -0.0019750804640352726, -0.021803392097353935, -0.02020881697535515, -0.024386798962950706, 0.0361691378057003, 0.07393629848957062, -0.04318681359291077, -0.07803287357091904, -0.0014995825476944447, 0.008402367122471333, 0.022085778415203094, -0.012245367281138897, 0.02772575616836548, -0.02822297066450119, 0.0654727965593338, 0.0009971136460080743, -0.055430538952350616, 0.04146798327565193, -0.005439260974526405, 0.029598115012049675, 0.022433364763855934, 0.09497906267642975, -0.022639712318778038, -0.06398140639066696, -0.0013676288072019815, -0.011620370671153069, -0.01869932748377323, -0.008532923646271229, -0.029580553993582726, 0.034853097051382065, -0.055562574416399, -0.02973581850528717, -0.04088953137397766, -0.055142417550086975, 0.05226411670446396, -0.07097660005092621, 0.017027119174599648, 0.006792684551328421, -0.006700294092297554, 0.10227399319410324, -0.07730163633823395, -0.008791996166110039, 0.0531611293554306, -0.07730912417173386, -0.029655247926712036, 0.005079439375549555, -0.0585959292948246, 0.057972583919763565, 0.01051768846809864, -0.000551996985450387, -0.07915332913398743, -0.01987328939139843, 0.03853448107838631, 0.017275672405958176, 0.006015139631927013, -0.03245016932487488, 0.08833977580070496, -0.11145072430372238, 0.015391044318675995, 0.003911539446562529, -0.10494749248027802, 0.017213968560099602, 0.154418483376503, -0.030987778678536415, -0.003975841216742992, 0.016263673081994057, -0.04716424643993378, 0.06717996299266815, -0.049265049397945404, 0.015740374103188515, -0.022001268342137337, -0.01049466896802187, -0.0026791710406541824, -0.04473509266972542, -0.02159707061946392, 0.036179106682538986, -0.006879276596009731, -0.03977937623858452, 0.039711568504571915, 0.03319985046982765, 0.01368185319006443, -0.0870063528418541, -0.016421634703874588, -0.03237855061888695, 0.037456221878528595, -0.005464594345539808, -0.05432331934571266, 0.07748769223690033, 0.033117957413196564, -0.013099560514092445, 0.1944076269865036, -0.0719490647315979, 0.008009840734302998, 0.1189010888338089, 0.016484905034303665, 0.031247230246663094, 0.0693504735827446, 0.03459300100803375, 0.011981737799942493, -0.05447778105735779, 0.011279474943876266, -0.009494801983237267, 0.04597112163901329, -0.02996387891471386, 0.04146837443113327, 0.00972618255764246, 0.04003019630908966, 0.046735260635614395, 0.005848163738846779, 0.0008006304851733148, 0.04572083801031113, -0.011435997672379017, -0.044223811477422714, 0.002535435138270259, -0.006289252080023289, -0.06672684103250504, 0.047613367438316345, -0.01797301694750786, 0.0065102968364953995, 0.03974297642707825, -0.05900609865784645, -0.06365707516670227, 0.012736490927636623, 0.0034878200385719538, 0.03474826365709305, -0.019755646586418152, 0.014275405555963516, -0.011153334751725197, -0.045413143932819366, -0.006548072211444378, 0.016353687271475792, -0.044548399746418, 0.0004125453415326774, -0.05693534389138222, -0.01208118163049221, 0.007050470449030399, 0.012658271007239819, 0.01563424803316593, -0.010061181150376797, 0.020256152376532555, 0.017505094408988953, -0.0014183782041072845, -0.017811987549066544, -0.023592675104737282, -0.017361260950565338, 0.034586794674396515, 0.02272706665098667, -0.004563652444630861, -0.002213425235822797, -0.006551981903612614, 0.015341535210609436, -0.005985903088003397, 0.04191620275378227, 0.01566404290497303, 0.023342590779066086, 0.0319182351231575, 0.0018409001640975475, -0.007454365026205778, -0.06485704332590103, 0.05276202782988548, 0.0054396060295403, -0.02595648728311062, -0.027867477387189865, -0.0338817834854126, -0.004905789624899626, -0.0190291665494442, -0.0013644673163071275, -0.02189347892999649, -0.0400417260825634, -0.011868777684867382, -0.039331045001745224, -0.008769901469349861, 0.03237445652484894, -0.006462657358497381, -0.02121802791953087, 0.02418561652302742, 0.0049597700126469135, -0.006578237283974886, -0.0912693440914154, -0.06999624520540237, -0.03469402343034744, 0.008684702217578888, 0.005620730575174093, -0.017192063853144646, 0.04520649462938309, -0.016260763630270958, 0.00830813031643629, 0.0000025668068701634184, 0.0052351937629282475, -0.03915302827954292, 0.04331786185503006, 0.03788650408387184, 0.022944962605834007, 0.023157313466072083, -0.03291938826441765, 0.018522635102272034, -0.031020162627100945, 0.008263486437499523, 0.0019031775882467628, 0.005906191188842058, -0.00846315547823906, 0.021654771640896797, 0.0019108396954834461, 0.02614058554172516, -0.0002564822498243302, 0.04333793744444847, -0.025935208424925804, -0.009502175264060497, -0.02497275359928608, -0.03930719569325447, -0.060154352337121964, -0.030132686719298363, -0.019496340304613113, 0.029970521107316017, 0.016577428206801414, 0.02184486761689186, 0.002772982930764556, 0.04232008010149002, 0.014688050374388695, -0.030647270381450653, 0.027304617688059807, -0.006274685729295015, 0.031037861481308937, -0.04927333816885948, -0.041893135756254196, -0.002368830842897296, 0.014819416217505932, -0.02038411796092987, -0.021143583580851555, 0.0012139517348259687, -0.014464624226093292, 0.07753948867321014, 0.023997150361537933, -0.011418381705880165, 0.014081606641411781, 0.007928945124149323, -0.0020129478070884943, 0.0012569536920636892, -0.002620333107188344, 0.030836526304483414, 0.06572061032056808, -0.04952830821275711, -0.017694024369120598, 0.015921493992209435, 0.048409488052129745, -0.019415825605392456, -0.07040131092071533, 0.0611366406083107, 0.018856413662433624, 0.045752935111522675, 0.00012548748054541647, -0.001719214953482151, -0.01070317905396223, -0.013168955221772194, 0.007395030930638313, -0.017098693177103996, 0.0338980033993721, 0.07693652808666229, 0.01519757229834795, -0.035768333822488785, 0.008941952139139175, -0.04043862223625183, 0.02030906453728676, -0.027703534811735153, 0.031824126839637756, 0.021765820682048798, -0.03288492560386658, -0.003898858092725277, -0.0020801788195967674, -0.054204557090997696, -0.019901400431990623, 0.03822476789355278, -0.012949597090482712, -0.011563302017748356, 0.008197634480893612, 0.004512863699346781, -0.02663322351872921, -0.013152076862752438, 0.038328807801008224, -0.005335635971277952, 0.0074549452401697636, -0.007076086942106485, -0.018541909754276276, -0.020756129175424576, 0.02513868920505047, 0.028620552271604538, 0.01981515809893608, 0.026618875563144684, 0.02111508511006832, 0.015908997505903244, 0.03094823658466339, 0.0009738148073665798, -0.003377168672159314, -0.04458996281027794, -0.029407259076833725, -0.00826837494969368, 0.006276375614106655, 0.030559906736016273, 0.005286237690597773, 0.005307062063366175, 0.02097242698073387, 0.010960358195006847, 0.009022229351103306, -0.04015495628118515, -0.0018483174499124289, 0.006954939104616642, 0.012872481718659401, -0.0588812492787838, -0.042229555547237396, 0.004030671902000904, 0.008212280459702015, -0.008816040121018887, 0.029491908848285675, 0.012295515276491642, -0.010319311171770096, 0.033931512385606766, 0.025212276726961136, -0.02398422360420227, 0.0034731426276266575, 0.017417289316654205, 0.027909789234399796, -0.010350567288696766, 0.03819629177451134, -0.029555751010775566, -0.02198602631688118, -0.01953156851232052, 0.0040035555139184, -0.005189433228224516, 0.03350379690527916, 0.030033068731427193, -0.050396908074617386, 0.019687920808792114, 0.026375750079751015, -0.05337638407945633, 0.019276345148682594, 0.012017606757581234, 0.0023216838017106056, 0.046351850032806396, 0.02891995944082737, 0.01251389179378748, -0.014837488532066345, -0.06481978297233582, 0.054967720061540604, 0.03923198953270912, 0.001970438752323389, -0.025605039671063423, -0.013052654452621937, -0.0032446293625980616, -0.015136068686842918, 0.03150998800992966, -0.004048438742756844, -0.025042157620191574, -0.01895846240222454, 0.021853230893611908, 0.021982014179229736, -0.02536735124886036, -0.03337636962532997, 0.039211224764585495, 0.005634537898004055, 0.01053567510098219, 0.02126377448439598, 0.028130589053034782, 0.029567046090960503, 0.04029254987835884, 0.07793238759040833, 0.06842663884162903, -0.01734776981174946, -0.0338105708360672, -0.011211139149963856, 0.019622087478637695, 0.006940274499356747, -0.022389022633433342, -0.02030700072646141, -0.012838360853493214, 0.021106407046318054, 0.026619069278240204, -0.005704234819859266, -0.010207225568592548, -0.04073163866996765, 0.04403023049235344, 0.005292356014251709, 0.023045530542731285, 0.01906028762459755, -0.03329751268029213, -0.004130190704017878, 0.0018650572746992111, 0.011496216058731079, -0.028342578560113907, 0.012486189603805542, -0.011275777593255043, -0.023642102256417274, -0.015711458399891853, 0.033190418034791946, -0.062479518353939056, -0.04815645143389702, 0.058433882892131805, -0.009651176631450653, 0.04663103446364403, 0.009167210198938847, 0.012654024176299572, 0.0005226632347330451, 0.008182591758668423, 0.0024878971744328737, -0.042929355055093765, -0.008858935907483101, 0.04330821707844734, 0.06287336349487305, 0.009395100176334381, 0.0533444918692112, 0.019576886668801308, 0.010613791644573212, 0.0011315433075651526, -0.015215395949780941, -0.015765929594635963, -0.0010291808284819126, 0.04548879340291023, 0.014234457165002823, 0.013740099966526031, -0.010394123382866383, -0.0005271456902846694, -0.058811914175748825, 0.00243918364867568, -0.021403703838586807, -0.00021740161173511297, -0.0150332972407341, 0.009531416930258274, 0.009364564903080463, 0.0013598670484498143, -0.0005875522620044649, 0.032769400626420975, 0.03932109475135803, -0.007522614672780037, -0.0150222796946764, -0.0057398793287575245, 0.07916140556335449, -0.024576622992753983, -0.00910897459834814, -0.004923350643366575, -0.01926240511238575, -0.051516372710466385, 0.0022908514365553856, -0.011250869370996952, -0.03796917200088501, 0.020595397800207138, -0.009985329583287239, -0.03852442651987076, 0.001987327355891466, -0.07017937302589417, 0.03509439155459404, 0.016373498365283012, 0.06807594746351242, -0.007022055797278881, 0.023045692592859268, -0.023443376645445824, 0.04470081627368927, 0.05670709162950516, -0.0058450582437217236, 0.036725692451000214, -0.007464365568011999, 0.06296788156032562, 0.06914731115102768, 0.009465223178267479, 0.0001347970392089337, -0.002124843653291464, -0.030719775706529617, 0.05231612175703049, 0.024155303835868835, -0.0027887760661542416, -0.05947614088654518, -0.0003567770472727716, -0.004307659342885017, 0.019968902692198753, -0.021170634776353836, -0.02955939993262291, -0.009393210522830486, -0.08238387107849121, 0.01724053919315338, -0.06101815402507782, 0.08866558969020844, 0.02321595326066017, 0.013228073716163635, 0.007084584329277277, -0.0031728819012641907, 0.043341029435396194, 0.01500761043280363, -0.004947636742144823, 0.02211836352944374, 0.05530696362257004, 0.00010065118840429932, 0.00890052318572998, 0.005379050970077515, 0.009351025335490704, -0.025253739207983017, -0.0007468971307389438, 0.011509185656905174, -0.005924580618739128, -0.008291362784802914, 0.05145111307501793, -0.02652130089700222, -0.030942827463150024, 0.001538504264317453, 0.025952652096748352, -0.0413208082318306, 0.01378485094755888, -0.02270621620118618, 0.04122220724821091, -0.0017823037924245, 0.01264875940978527, -0.026870913803577423, -0.003300995333120227, 0.0354868620634079, 0.0009198436164297163, -0.06628169119358063, 0.012651576660573483, -0.001403998932801187, 0.022574814036488533, -0.02171764336526394, 0.026478946208953857, -0.004840527195483446, -0.014430367387831211, -0.0014217047719284892, -0.0030403975397348404, -0.06492526829242706, -0.005570464301854372, 0.0320051908493042, 0.018134620040655136, -0.030308561399579048, 0.002498605055734515, 0.058224596083164215, -0.01842985674738884, -0.04806898906826973, 0.025978194549679756, -0.012269972823560238, 0.009001832455396652, -0.059985093772411346, -0.01361974235624075, 0.027203699573874474, 0.007972406223416328, 0.030999336391687393, 0.010474001057446003, 0.05587313696742058, 0.028039470314979553, -0.006598186679184437, -0.01714225858449936, 0.0683886855840683, 0.004801482893526554, 0.021961627528071404, -0.021119097247719765, 0.024744892492890358, 0.015997102484107018, 0.0032623375300318003, 0.057651370763778687, -0.008186133578419685, -0.028008244931697845, 0.06321007013320923, -0.0010567725403234363, -0.010897022671997547, 0.02671901322901249, 0.05920878052711487, 0.007957249879837036, 0.053475428372621536, 0.0125367920845747, 0.017068911343812943, 0.008966420777142048, -0.03499189019203186, -0.012716635130345821, 0.006079942919313908, 0.037890270352363586, -0.03450663760304451, 0.022343279793858528, 0.005579130724072456, 0.052739597856998444, 0.01952017843723297, 0.032310549169778824, -0.003819800214841962, 0.003322015516459942, 0.0072554671205580235, -0.010301435366272926, -0.045327723026275635, 0.023489823564887047, 0.01699582114815712, -0.015926796942949295, -0.006374041084200144, -0.04307667911052704, 0.0035157001111656427, 0.012370404787361622, -0.017603915184736252, 0.02007155306637287, 0.03287510201334953, -0.015238246880471706, -0.01111573725938797, -0.003247538348659873, -0.017160726711153984, 0.010011516511440277, 0.039517324417829514, 0.00812012143433094, 0.03045281581580639, 0.037310585379600525, -0.021944502368569374, 0.017604805529117584, 0.034747131168842316, 0.006496413145214319, 0.009253563359379768, 0.030024845153093338, -0.012630821205675602, 0.026557231321930885, -0.00773231964558363, -0.005701947491616011, -0.01367779541760683, -0.013719242066144943, -0.03845089301466942, 0.05500546470284462, -0.009101901203393936, -0.013284008018672466, 0.006338368635624647, 0.02325274795293808, -0.03178932145237923, 0.0322350338101387, -0.012045478448271751, -0.0013358212308958173, 0.00884844921529293, 0.027268942445516586, 0.021746443584561348, -0.0007040334166958928, 0.04820537939667702, 0.016100425273180008, -0.03530342876911163, 0.02233877032995224, -0.005039987154304981, 0.0051330337300896645, 0.0014115981757640839, 0.0029482683166861534, -0.00832158513367176, 0.04119599238038063, 0.0810638889670372, 0.007783067412674427, -0.002478900831192732, -0.03062819130718708 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
Privacy and Security as a Core Principle For any company, the internal codebase is some of its most important and valuable intellectual property. A core principle of SafeCoder is that the customer internal codebase will never be accessible to any third party (including Hugging Face) during training or inference. In the initial set up phase of SafeCoder, the Hugging Face team provides containers, scripts and examples to work hand in hand with the customer to select, extract, prepare, duplicate, deidentify internal codebase data into a training dataset to be used in a Hugging Face provided training container configured to the hardware infrastructure available to the customer. In the deployment phase of SafeCoder, the customer deploys containers provided by Hugging Face on their own infrastructure to expose internal private endpoints within their VPC. These containers are configured to the exact hardware configuration available to the customer, including NVIDIA GPUs, AMD Instinct GPUs, Intel Xeon CPUs, AWS Inferentia2 or Habana Gaudi accelerators.
[ 0.0038743733894079924, 0.014306046068668365, -0.006861713249236345, 0.033476050943136215, 0.037433989346027374, 0.017688188701868057, 0.06842852383852005, 0.003855969524011016, -0.050632625818252563, -0.043986186385154724, -0.09899366647005081, 0.026767099276185036, -0.014887788332998753, 0.0386216826736927, -0.0031406101770699024, -0.07361973077058792, 0.04467993974685669, 0.017874155193567276, -0.0647682398557663, 0.0674973577260971, -0.001520609832368791, -0.06864438951015472, -0.028540844097733498, -0.012563586235046387, -0.03377390652894974, -0.033921390771865845, -0.02141123078763485, 0.021232206374406815, -0.004339159000664949, 0.07593706995248795, -0.031054958701133728, -0.030367152765393257, -0.011014326475560665, -0.0707586482167244, 0.05631240829825401, 0.01614774577319622, -0.13876651227474213, 0.046160269528627396, 0.002617212710902095, 0.018800025805830956, 0.0305153988301754, 0.0032535556238144636, -0.06304259598255157, 0.02486380934715271, -0.02443821169435978, -0.02688107267022133, -0.09272357076406479, 0.11291756480932236, -0.024885719642043114, 0.020607097074389458, -0.08058192580938339, 0.04360392689704895, 0.007419112604111433, 0.00570139242336154, 0.0846235379576683, 0.017517564818263054, -0.024671493098139763, -0.07192084193229675, 0.04062137007713318, -0.012066655792295933, 0.01683700457215309, 0.0014343364164233208, 0.050662245601415634, 0.02886250428855419, 0.06089121103286743, 0.053574349731206894, -0.04385372996330261, -0.06414705514907837, 0.010350859723985195, -0.019203776493668556, -0.027868162840604782, -0.029968133196234703, -0.032273147255182266, -0.03968222811818123, -0.03353635594248772, 0.003314048983156681, -0.04009052366018295, 0.009818721562623978, 0.06222352758049965, 0.029347039759159088, 0.0031131801661103964, 0.038832131773233414, -0.03699783235788345, 0.020655157044529915, 0.03690686076879501, 0.04285982623696327, 0.04607085511088371, -0.03710566461086273, -0.06005311757326126, 0.01694050431251526, 0.020263373851776123, -0.05134914442896843, 0.01581503450870514, 0.0025233703199774027, -0.027248965576291084, 0.01503102295100689, -0.019106965512037277, -0.014392008073627949, 0.04669426009058952, -0.008408933877944946, -0.04625226557254791, -0.04076456278562546, -0.09039168804883957, -0.09056735783815384, -0.028553584590554237, 0.03141329064965248, 0.01936246082186699, -0.08467082679271698, -0.0525045283138752, -0.006381638813763857, -0.02988380193710327, -0.06140688806772232, -0.03726876154541969, 0.0762941986322403, -0.16740596294403076, 0.032084785401821136, -0.0579964742064476, -0.06683198362588882, 0.07722979038953781, -0.003234277945011854, 0.0729840025305748, 0.06977878510951996, -0.08939505368471146, 0.0397835411131382, -0.005825838539749384, 0.019143423065543175, -0.05090772733092308, 0.04074976220726967, 0.03936903178691864, -0.0402735099196434, -0.0065631079487502575, -0.06005778908729553, 0.00008464371785521507, -0.030052993446588516, -0.0058462671004235744, -0.042619772255420685, -0.07370159775018692, -0.05442114919424057, -0.02694917656481266, 0.013091165572404861, 0.038595620542764664, 0.041269317269325256, 0.023776432499289513, -0.07720058411359787, 0.01693710871040821, -0.024545444175601006, -0.07746018469333649, 0.05994594469666481, -0.004600537475198507, -0.011992917396128178, -0.009376845322549343, 0.05300834774971008, -0.021833986043930054, -0.10194969922304153, 0.01446661539375782, 0.060397371649742126, -0.016342805698513985, 0.011138521134853363, -0.008473954163491726, -0.0022656619548797607, -0.07037390023469925, -0.03439849987626076, -0.08298453688621521, -0.005780784413218498, -0.01554472278803587, -0.0117948018014431, 0.01370958797633648, -0.0015064635081216693, 0.005221303552389145, 0.013638186268508434, -0.04688308760523796, -0.07629986852407455, 0.08033253997564316, -0.04530308023095131, 0.04201459884643555, 0.07050471752882004, -0.0458698570728302, 0.04829636961221695, 0.04327896609902382, -0.012331175617873669, -0.10916697233915329, 0.04437996819615364, 0.05180124565958977, 0.07114459574222565, -0.030590014532208443, -0.04092976823449135, 0.018950210884213448, -0.07228058576583862, -0.023232709616422653, -0.003626133780926466, -0.077621690928936, 0.05005761608481407, 0.00687947403639555, -0.04689580202102661, 0.012286053970456123, -0.06437710672616959, -0.02952122688293457, 0.0879526138305664, 0.005724430549889803, 0.032840583473443985, 0.03444240987300873, 0.015320546925067902, 0.00807898584753275, -0.06061345338821411, 0.011725280433893204, 0.015794185921549797, 0.02513245679438114, -0.05268218740820885, 0.02597358636558056, 0.08831946551799774, 0.03599795699119568, -0.08673761039972305, -0.024807101115584373, -0.017998777329921722, 0.11507401615381241, -0.020763594657182693, -0.0706067755818367, 0.015168596059083939, 0.03971748799085617, 0.007262350991368294, 0.08535895496606827, -0.07190170884132385, 0.053844064474105835, 0.03906058892607689, 0.000983374658972025, 0.0044091916643083096, 0.008036676794290543, 0.02986782416701317, 0.07197731733322144, -0.02445121668279171, 0.008523098193109035, 0.009245110675692558, -0.024586036801338196, 0.0024790812749415636, 0.049364905804395676, 0.004859437700361013, 0.06609285622835159, 0.02056168206036091, -0.001297610579058528, -0.02129799872636795, -0.007060040254145861, -0.03605489432811737, -0.020502358675003052, -0.05106933042407036, 0.017345581203699112, -0.03267167881131172, 0.015428883954882622, -0.046162668615579605, -0.007684165146201849, 0.017148129642009735, -0.06872967630624771, 0.04368637874722481, -0.06050218269228935, -0.015048223547637463, 0.06580261886119843, -0.029870491474866867, 0.0033408934250473976, 0.007816126570105553, -0.0214100144803524, 0.03279782459139824, -0.007354658097028732, -0.024977296590805054, -0.02118702232837677, -0.030174050480127335, 0.010108319111168385, -0.02476799301803112, -0.011486856266856194, 0.02049902267754078, 0.009855296462774277, 0.02606244944036007, 0.040793851017951965, -0.012801636010408401, 0.027466630563139915, -0.025485465303063393, 0.021838020533323288, 0.02157321758568287, 0.017683127894997597, 0.022785799577832222, -0.010305684991180897, 0.009772070683538914, 0.03418242558836937, -0.05107160657644272, 0.0013178099179640412, 0.06790619343519211, 0.008320286870002747, -0.00021722041128668934, -0.04170531406998634, -0.009197333827614784, -0.056513767689466476, 0.020278695970773697, 0.028468968346714973, -0.0029811456333845854, -0.005088025238364935, -0.016092656180262566, -0.011859449557960033, 0.03716762363910675, -0.042327880859375, -0.014206740073859692, -0.014534138143062592, 0.022278906777501106, -0.03758315369486809, -0.006851742975413799, 0.017755895853042603, -0.034195587038993835, -0.007071248721331358, 0.04307963326573372, -0.016032088547945023, -0.013643871061503887, -0.08022268116474152, -0.007308632601052523, -0.04582707956433296, -0.005943040829151869, 0.005970989819616079, 0.006056643091142178, 0.042267173528671265, -0.026559095829725266, -0.006751541513949633, 0.027478374540805817, 0.016496259719133377, 0.0038876309990882874, 0.028008852154016495, -0.01498518604785204, 0.00709688663482666, -0.019661305472254753, 0.017211224883794785, 0.015908271074295044, -0.0031919630710035563, 0.01413681823760271, -0.013880856335163116, -0.02959391474723816, -0.03326397389173508, 0.004923168569803238, 0.033725805580616, -0.0389113649725914, 0.017855636775493622, -0.01421446818858385, -0.0276198610663414, -0.035155076533555984, 0.030388416722416878, -0.04989885911345482, -0.008622526191174984, -0.05756822228431702, -0.030653713271021843, 0.01928446814417839, -0.011487562209367752, -0.06670688837766647, 0.011925910599529743, 0.013851809315383434, 0.00417302455753088, 0.01877138577401638, 0.004419426433742046, 0.014637566171586514, 0.054130349308252335, -0.019323956221342087, 0.007998328655958176, -0.010568425059318542, 0.0008005818817764521, -0.04772252216935158, 0.010675336234271526, -0.015945440158247948, -0.039623040705919266, 0.08052056282758713, -0.018905265256762505, 0.02006424032151699, -0.012205658480525017, -0.0026295674033463, -0.006855592131614685, 0.008445128798484802, -0.05523168668150902, 0.005054830573499203, 0.01394767127931118, -0.021155495196580887, -0.008455054834485054, 0.044463131576776505, 0.026212891563773155, -0.046142008155584335, -0.04086558520793915, 0.030100632458925247, 0.024726681411266327, 0.0858706533908844, 0.004839813336730003, 0.008333055302500725, 0.006058673840016127, -0.034411363303661346, -0.020156636834144592, -0.05682779476046562, 0.02227223850786686, 0.014925223775207996, 0.01696931943297386, -0.002699230331927538, 0.013911215588450432, 0.02294878102838993, 0.05135795474052429, 0.004349260125309229, 0.0012044694740325212, 0.02407672442495823, 0.023264337331056595, 0.031002825126051903, 0.02356782928109169, -0.04297342896461487, -0.00629084138199687, -0.012071079574525356, -0.012119232676923275, -0.0042799487709999084, -0.030955297872424126, 0.01903434470295906, -0.02017148584127426, -0.018561644479632378, 0.022772613912820816, -0.05043516680598259, 0.0066026668064296246, 0.000587218557484448, -0.015633586794137955, -0.01532210223376751, 0.017087290063500404, -0.018016116693615913, 0.02038731798529625, 0.004807163495570421, 0.017863748595118523, -0.027369748800992966, 0.02726012095808983, -0.012379050254821777, 0.0185324065387249, -0.01559019647538662, -0.018243873491883278, -0.016186559572815895, 0.00012432246876414865, -0.02629946544766426, 0.027677878737449646, 0.01724831759929657, 0.010317396372556686, -0.0013484107330441475, 0.015601064078509808, 0.006877702660858631, 0.038935381919145584, -0.025153571739792824, 0.0271663386374712, -0.04748915135860443, -0.04336029663681984, 0.047328948974609375, 0.07169955223798752, -0.027230575680732727, 0.02388041839003563, -0.010056382976472378, 0.031668730080127716, 0.01606041193008423, 0.030294455587863922, -0.03235664591193199, 0.014650683850049973, 0.040501732379198074, 0.04161117970943451, -0.013670436106622219, 0.028012337163090706, 0.03353450447320938, -0.003953728824853897, -0.024846011772751808, -0.03862126171588898, 0.04242895171046257, -0.02827649749815464, -0.027982983738183975, -0.009711813181638718, 0.03950715437531471, 0.05979767441749573, -0.03727314993739128, -0.0035822270438075066, 0.030555803328752518, -0.0019854886922985315, 0.02097620815038681, 0.0021468347404152155, 0.03781590238213539, -0.0032342579215765, -0.0345047265291214, 0.026425223797559738, 0.04397473484277725, -0.004909619688987732, -0.051032159477472305, -0.045673370361328125, -0.02016201801598072, 0.00030107598286122084, 0.013669975101947784, 0.017181340605020523, -0.005467498674988747, -0.0013753563398495317, 0.06851061433553696, 0.06093445047736168, 0.012596962973475456, -0.024378376081585884, 0.05802369490265846, 0.014029590412974358, 0.03803354874253273, 0.04144802689552307, 0.0015836888924241066, 0.007867958396673203, 0.05435391515493393, 0.06397394835948944, 0.04634164646267891, 0.001550853718072176, 0.0021417660173028708, -0.023322694003582, -0.01564623974263668, 0.03831867501139641, -0.01540437713265419, -0.039066631346940994, -0.04801308736205101, 0.026353146880865097, 0.07882291078567505, 0.056824881583452225, -0.015516888350248337, -0.0057965414598584175, 0.0754353329539299, -0.03484726324677467, 0.015746979042887688, 0.014380606822669506, -0.0162381362169981, 0.0297989584505558, -0.009513432160019875, 0.0309445820748806, 0.007895013317465782, 0.007262018509209156, 0.02820620685815811, -0.023718368262052536, -0.0012186848325654864, -0.03463062271475792, -0.03309062868356705, -0.06134110316634178, 0.05714096873998642, -0.004418559372425079, 0.038431763648986816, 0.003786641638725996, -0.010146223939955235, 0.04010092467069626, -0.012663989327847958, 0.029537810012698174, -0.01876499317586422, 0.025675682350993156, 0.024334793910384178, 0.006271002348512411, 0.004988119937479496, 0.01069216150790453, 0.02560994029045105, 0.02574826590716839, -0.007670321501791477, -0.027760550379753113, 0.006539180874824524, -0.010685794055461884, 0.015945905819535255, -0.0008100919076241553, -0.01560696680098772, 0.01115815807133913, -0.015114215202629566, -0.004721049685031176, -0.019905440509319305, 0.0029857621993869543, 0.03472762182354927, 0.061309631913900375, -0.011878772638738155, 0.029682163149118423, -0.0010177198564633727, 0.03842863813042641, 0.02044174261391163, -0.014488468877971172, -0.03248165547847748, 0.01728026196360588, -0.0034984154626727104, 0.028073078021407127, 0.004143459722399712, 0.0020008955616503954, -0.010499636642634869, -0.012638621963560581, -0.08484364300966263, 0.03827706351876259, -0.00913433637470007, -0.03168287128210068, 0.0007974032196216285, -0.022429339587688446, -0.012680543586611748, 0.030369138345122337, -0.031138496473431587, 0.012110610492527485, 0.011454416438937187, 0.04504157602787018, -0.014761675149202347, -0.00021713538444601, -0.026870306581258774, 0.035182029008865356, 0.030646732077002525, -0.0035621875431388617, -0.03130302578210831, 0.011840621940791607, 0.06606489419937134, 0.0782238319516182, -0.004746044520288706, 0.019401587545871735, -0.03712098300457001, -0.004410524386912584, 0.056398648768663406, 0.048874516040086746, -0.01060759648680687, -0.04249349981546402, 0.010265849530696869, 0.02145230397582054, 0.0013192574260756373, 0.04003412276506424, 0.011023514904081821, -0.00667094299569726, -0.006931810174137354, 0.03751196339726448, -0.02898011915385723, 0.04449980705976486, 0.035078294575214386, -0.03439762443304062, 0.008569792844355106, 0.01173522137105465, 0.04301590844988823, 0.0392976775765419, 0.016159221529960632, 0.027122773230075836, 0.06232469156384468, 0.016420748084783554, 0.038340818136930466, 0.021518561989068985, 0.027872925624251366, 0.020023787394165993, 0.024276193231344223, 0.017097463831305504, -0.004993633832782507, -0.013679536990821362, -0.004544870927929878, -0.017192738130688667, -0.018492622300982475, -0.046113092452287674, 0.008891846984624863, -0.019103189930319786, 0.03695884719491005, -0.01589301973581314, 0.005595146678388119, -0.02032535709440708, 0.010140305384993553, -0.020095806568861008, 0.015475300140678883, 0.004786509554833174, -0.0016612982144579291, 0.025747695937752724, 0.024347851052880287, -0.02190321311354637, 0.026278061792254448, -0.021654827520251274, -0.024962734431028366, -0.011239300481975079, -0.030294185504317284, 0.025654181838035583, 0.023247065022587776, -0.01516864262521267, -0.01421686727553606, 0.040413323789834976, 0.008726479485630989, 0.02878902293741703, 0.010870805941522121, 0.035505589097738266, 0.013414879329502583, -0.06548824906349182, -0.013957967981696129, 0.033751893788576126, -0.0035112472251057625, -0.03596905246376991, -0.0357682891190052, 0.05150710791349411, -0.0034750625491142273, 0.0036102794110774994, -0.001775002689100802, 0.06503629684448242, -0.015158404596149921, -0.017190486192703247, 0.00808397214859724, 0.012346835806965828, -0.017000023275613785, 0.03257589414715767, -0.0032822107896208763, -0.014558663591742516, -0.013045379891991615, 0.006853112485259771, 0.02596122771501541, -0.02086278609931469, -0.009304842911660671, 0.05422631651163101, -0.0026497517246752977, -0.042674027383327484, 0.01020273007452488, 0.06936456263065338, -0.0049674841575324535, 0.05945119634270668, 0.051251158118247986, 0.022526869550347328, 0.012757179327309132, -0.05026813596487045, -0.013459773734211922, -0.0339168980717659, 0.012920765206217766, -0.02387591451406479, 0.012303166091442108, -0.03088352270424366, -0.006362353917211294, 0.04260282218456268, 0.06315318495035172, -0.022802390158176422, -0.02271765097975731, 0.018020879477262497, 0.017623480409383774, -0.038500916212797165, 0.05781492590904236, 0.02378326654434204, 0.023259680718183517, 0.011754382401704788, -0.009369339793920517, -0.018562663346529007, -0.00510548148304224, -0.047142043709754944, -0.017781995236873627, 0.0752946138381958, -0.0010681782150641084, -0.02011794038116932, -0.0102580850943923, -0.05333428457379341, 0.026203516870737076, -0.044894155114889145, -0.0015578664606437087, -0.02129901573061943, 0.006484118290245533, 0.025409286841750145, -0.003474520519375801, 0.02581734210252762, 0.01171034574508667, 0.008798903785645962, -0.0008421959937550128, -0.00041008516564033926, 0.009909369051456451, -0.028476445004343987, -0.01755204051733017, 0.029224008321762085, -0.010988540947437286, 0.03573448210954666, 0.0027458800468593836, -0.009799025021493435, 0.008681976236402988, -0.011049122549593449, 0.011480153538286686, 0.0017015492776408792, 0.002251514932140708, -0.005189820658415556, 0.011723600327968597, -0.03130683675408363, -0.00841986108571291, 0.006636498961597681, -0.032824184745550156, -0.00893619004637003, -0.012257639318704605, -0.008444858714938164, 0.04141351580619812, -0.04727153107523918, -0.008898953907191753, 0.014022406190633774, 0.008718514814972878, -0.008155501447618008, 0.06468375027179718, 0.096128910779953, 0.008307218551635742, -0.028542352840304375, 0.038957275450229645 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
Training your own SafeCoder model StarCoder was trained in more than 80 programming languages and offers state of the art performance on multiple benchmarks. To offer better code suggestions specifically for a SafeCoder customer, we start the engagement with an optional training phase, where the Hugging Face team works directly with the customer team to guide them through the steps to prepare and build a training code dataset, and to create their own code generation model through fine-tuning, without ever exposing their codebase to third parties or the internet. The end result is a model that is adapted to the code languages, standards and practices of the customer. Through this process, SafeCoder customers learn the process and build a pipeline for creating and updating their own models, ensuring no vendor lock-in, and keeping control of their AI capabilities.
[ 0.026398738846182823, 0.021904630586504936, 0.02578589878976345, 0.005798341706395149, 0.015317186713218689, 0.10772302001714706, 0.030380334705114365, -0.009335570968687534, -0.02911771647632122, 0.031923528760671616, -0.1185804232954979, 0.042109839618206024, -0.06674178689718246, 0.038625121116638184, -0.03358586132526398, -0.043323952704668045, 0.02819524146616459, 0.04091739282011986, -0.03796239569783211, 0.0031241383403539658, -0.07458115369081497, -0.08428791910409927, 0.019324159249663353, -0.040793418884277344, -0.0250029768794775, 0.002776784123852849, -0.008350258693099022, 0.019816359505057335, 0.006695651914924383, 0.003814153606072068, -0.053306542336940765, 0.000785280775744468, -0.039722997695207596, -0.099703848361969, 0.004593332298099995, 0.023232625797390938, -0.09640739858150482, 0.08671335130929947, 0.0005019959062337875, -0.03444919362664223, -0.010295449756085873, -0.01735777221620083, -0.01576908677816391, 0.017235921695828438, 0.017396550625562668, -0.020554091781377792, -0.17043256759643555, 0.05395885184407234, 0.02129894681274891, -0.05024559050798416, -0.03778192773461342, 0.0916389748454094, 0.029573045670986176, 0.01988176815211773, 0.020725011825561523, -0.007123134098947048, 0.011912431567907333, -0.05398695915937424, -0.010593214072287083, 0.05493462458252907, 0.030132582411170006, -0.04493169113993645, 0.02478601038455963, 0.019208049401640892, 0.06383545696735382, 0.028023822233080864, -0.07821079343557358, -0.0155674172565341, -0.028152894228696823, -0.07064715772867203, 0.0127225611358881, -0.028033193200826645, -0.01866735704243183, -0.01509467326104641, -0.027189405634999275, -0.07643654197454453, -0.043329235166311264, 0.04128988832235336, 0.017996536567807198, -0.0007297848351299763, 0.0139744458720088, 0.019747240468859673, 0.00883010309189558, 0.00011612303933361545, -0.007338355295360088, 0.0374545194208622, 0.015342130325734615, -0.06976646929979324, -0.02302953228354454, 0.03470132127404213, -0.026050351560115814, -0.11540865153074265, -0.02202099747955799, -0.019618196412920952, 0.03998961299657822, 0.026329008862376213, -0.02279466763138771, 0.02683132328093052, -0.0010313378879800439, -0.0406290739774704, -0.07212743163108826, -0.03918997943401337, -0.0049650054425001144, -0.07290375232696533, -0.03793363273143768, 0.01646963320672512, 0.017968831583857536, -0.06793266534805298, -0.03554603457450867, 0.013842192478477955, 0.042722586542367935, -0.11608115583658218, -0.0211753249168396, 0.1031225174665451, -0.1280698925256729, 0.046388179063797, -0.0071060871705412865, -0.05627288669347763, -0.028153151273727417, 0.011306886561214924, 0.007110314443707466, 0.01198207400739193, -0.0466594472527504, 0.013253625482320786, -0.036103662103414536, 0.09353066235780716, 0.005139633547514677, 0.045170858502388, 0.0443769171833992, -0.05993137136101723, 0.01410749927163124, -0.02599230594933033, 0.0021494554821401834, 0.005861387588083744, 0.031631939113140106, -0.006409741938114166, -0.030453942716121674, -0.034772127866744995, -0.0035750367678701878, 0.0375756099820137, -0.03746200352907181, 0.07816900312900543, 0.01691366173326969, -0.02590676210820675, 0.036072999238967896, -0.03648551180958748, -0.0734558179974556, 0.09814522415399551, 0.016099436208605766, 0.04647589102387428, -0.07246804982423782, 0.04437611624598503, -0.04093434289097786, -0.06505212187767029, 0.03334951773285866, 0.07874704152345657, -0.04436114430427551, -0.028509430587291718, -0.005650459788739681, 0.038588620722293854, -0.017964312806725502, -0.00787978246808052, -0.09803706407546997, 0.0022769069764763117, -0.026582270860671997, -0.0461413711309433, -0.03339571878314018, 0.052516043186187744, 0.011628467589616776, 0.054417308419942856, -0.028442827984690666, -0.02192653901875019, 0.04948832467198372, -0.01272494625300169, 0.031993068754673004, 0.0037515107542276382, 0.01722424104809761, 0.0884830504655838, 0.005582181736826897, -0.015466336160898209, -0.02568327821791172, 0.015279116109013557, 0.0016213521594181657, 0.04516281187534332, 0.028046932071447372, -0.09053991734981537, 0.022262761369347572, -0.048318952322006226, -0.0025130044668912888, 0.05902043357491493, -0.021582242101430893, 0.08475007861852646, 0.049546804279088974, -0.04469922184944153, 0.02471758984029293, -0.08840010315179825, -0.01409806590527296, 0.14563019573688507, 0.029944272711873055, 0.037238989025354385, -0.0012393482029438019, -0.011545692570507526, 0.0427875779569149, -0.007280469406396151, 0.022663338109850883, 0.03342253342270851, 0.015594849362969398, 0.0008166725165210664, 0.047419223934412, 0.026400214061141014, 0.06937137246131897, -0.10419078916311264, -0.012336025014519691, -0.04436735436320305, 0.051812149584293365, 0.01432385016232729, -0.054204750806093216, 0.015806151553988457, 0.013212271966040134, 0.03671525791287422, 0.19965386390686035, -0.059342626482248306, -0.03688696771860123, -0.0216009933501482, 0.013351552188396454, 0.04254346340894699, 0.012342575006186962, 0.05050718039274216, 0.06856416165828705, -0.03764316439628601, -0.027849892154335976, -0.09914401173591614, -0.007766379043459892, -0.00602432806044817, 0.016203559935092926, -0.011963090859353542, 0.03426022082567215, 0.0456421859562397, -0.0015459625283256173, -0.02340106852352619, -0.018889665603637695, -0.020450051873922348, -0.01574716717004776, -0.0025099802296608686, -0.007429220248013735, 0.02006334438920021, 0.047111403197050095, -0.04199215769767761, 0.012309412471950054, 0.013295440934598446, -0.06875643134117126, 0.022423570975661278, -0.016115454956889153, -0.0007056375616230071, 0.06383242458105087, -0.004447825253009796, -0.012073704972863197, -0.028654862195253372, -0.0014153787633404136, 0.03270115703344345, 0.045017123222351074, -0.011819140985608101, -0.054695673286914825, -0.02137317694723606, 0.014292792417109013, -0.04403041675686836, -0.013099845498800278, 0.02288694679737091, -0.014779028482735157, -0.027093080803751945, 0.024034399539232254, -0.01632036827504635, 0.02450685203075409, -0.022984590381383896, 0.02173747681081295, 0.04441022500395775, 0.017853161320090294, -0.013684962876141071, -0.03796828165650368, -0.022737763822078705, 0.007905812934041023, -0.028636286035180092, 0.037249304354190826, 0.05766034126281738, 0.028148522600531578, 0.0365305058658123, -0.03808874636888504, -0.029907945543527603, -0.06983540952205658, 0.02078627049922943, 0.010168628767132759, 0.051958128809928894, -0.038992784917354584, -0.035531867295503616, -0.03825538605451584, -0.017958179116249084, -0.013930323533713818, 0.013979346491396427, 0.012573779560625553, 0.022608710452914238, -0.006939041428267956, 0.01245635561645031, -0.009529348462820053, -0.04227297380566597, -0.024377962574362755, 0.025149090215563774, 0.04856758564710617, 0.020758654922246933, -0.08744055777788162, -0.03737427666783333, -0.023151831701397896, 0.0036330274306237698, 0.005765473935753107, 0.009613453410565853, 0.033427733927965164, -0.022609485313296318, -0.0071638054214417934, 0.046393051743507385, -0.012099942192435265, -0.006814266089349985, 0.061839014291763306, 0.008342551067471504, -0.01452415157109499, -0.013353711925446987, -0.039075352251529694, 0.026528794318437576, 0.011963097378611565, 0.03176219388842583, -0.03831935301423073, -0.02538202330470085, -0.01543855108320713, 0.005314515437930822, 0.006628420203924179, -0.027454569935798645, 0.031130118295550346, -0.0006634036544710398, 0.008692101575434208, -0.01393575593829155, -0.0008898041560314596, 0.019566042348742485, 0.001501270104199648, -0.026706989854574203, -0.04899619519710541, 0.00016942265210673213, 0.014664399437606335, 0.006794346030801535, 0.027298739179968834, -0.013682178221642971, -0.019061679020524025, -0.016400938853621483, -0.014121707528829575, -0.037974316626787186, 0.02738448604941368, -0.018133021891117096, -0.01849162019789219, -0.003758577397093177, -0.0029272292740643024, -0.031589921563863754, 0.014717146754264832, -0.018250538036227226, 0.014120505191385746, 0.05827498435974121, 0.008254686370491982, -0.015021543949842453, -0.007857021875679493, 0.03556579351425171, 0.01882893219590187, 0.038444884121418, -0.0337977260351181, 0.016127092763781548, -0.01137571968138218, -0.055248767137527466, -0.03534403443336487, 0.01866764761507511, 0.031756773591041565, -0.0524749681353569, -0.031084377318620682, 0.03377671167254448, -0.004791114944964647, 0.015799403190612793, 0.012505391612648964, 0.005802748259156942, -0.02918282151222229, -0.007519809994846582, -0.035695355385541916, -0.031823210418224335, 0.05696823447942734, 0.048528846353292465, 0.022955050691962242, -0.0304375309497118, 0.0020945854485034943, -0.005493292585015297, 0.034932296723127365, 0.007804876659065485, 0.02201223000884056, -0.008804711513221264, 0.010645217262208462, 0.03143075481057167, 0.000008451400390185881, -0.040694355964660645, 0.003181200474500656, 0.03353414312005043, -0.007854814641177654, 0.0164320208132267, -0.009684761054813862, -0.007549697067588568, -0.010724657215178013, -0.021641818806529045, 0.04201770946383476, -0.06563827395439148, 0.002223851392045617, -0.03326529636979103, -0.0008803503587841988, 0.026027703657746315, -0.02533867582678795, -0.05009681358933449, 0.0128788398578763, 0.015944136306643486, -0.004537720698863268, 0.0011632242240011692, 0.01772255077958107, -0.016593102365732193, 0.06908534467220306, 0.011250780895352364, -0.034645017236471176, -0.014947660267353058, 0.003256301861256361, 0.019688989967107773, -0.019037671387195587, -0.007035845424979925, 0.036014437675476074, 0.02007155306637287, 0.03989120572805405, -0.01994248293340206, 0.04909443110227585, 0.026482487097382545, 0.026804685592651367, -0.02316894754767418, -0.014185941778123379, -0.0038076823111623526, 0.023889994248747826, 0.018661312758922577, 0.02453387714922428, -0.0017486417200416327, -0.024526244029402733, 0.01897444948554039, 0.0030465994495898485, -0.04737568274140358, -0.02934994548559189, 0.044992852956056595, 0.022189583629369736, 0.0170064065605402, 0.060758378356695175, -0.0067718722857534885, -0.020798565819859505, -0.01641186885535717, -0.0033592439722269773, 0.020346984267234802, 0.0035534780472517014, -0.03381887450814247, -0.04102800786495209, -0.016515666618943214, 0.020261716097593307, -0.04729864373803139, -0.007250009570270777, 0.0031249576713889837, 0.0063656228594481945, 0.01749955303966999, 0.008817107416689396, 0.005987528711557388, -0.045079998672008514, -0.019693106412887573, 0.03552926704287529, -0.0022588379215449095, -0.010083593428134918, -0.026695072650909424, -0.03182953596115112, -0.002447717124596238, -0.016982268542051315, 0.015334646217525005, 0.024620510637760162, -0.008962615393102169, -0.008090285584330559, 0.05823228135704994, 0.05758039653301239, -0.017727013677358627, -0.028194179758429527, 0.024481868371367455, -0.011071485467255116, 0.037109874188899994, 0.011342974379658699, 0.025331299751996994, 0.024513090029358864, -0.004976069554686546, 0.08790769428014755, 0.046956419944763184, 0.016262346878647804, -0.024140236899256706, 0.00805787742137909, -0.0033525002654641867, -0.001455242047086358, 0.0025469488464295864, -0.03175397217273712, -0.03859991580247879, -0.009409838356077671, 0.02620661072432995, -0.010830802842974663, 0.005104643292725086, 0.02315744012594223, 0.011190174147486687, -0.051191166043281555, -0.045310717076063156, 0.0185000691562891, -0.019162030890583992, -0.008497146889567375, -0.02622656710445881, 0.04577360674738884, -0.02387402206659317, 0.025071896612644196, -0.017943954095244408, -0.0012479893630370498, -0.00474610086530447, -0.036831267178058624, -0.02034209854900837, -0.024335047230124474, -0.017648937180638313, 0.03827020525932312, -0.02092265710234642, -0.003582045203074813, -0.012742925435304642, -0.0019145746482536197, -0.034097958356142044, 0.044404126703739166, -0.040688883513212204, 0.012471704743802547, 0.0014628444332629442, 0.016630930826067924, -0.0179052222520113, 0.01733493246138096, 0.004487743601202965, 0.005825226195156574, -0.011298987083137035, 0.00522287143394351, -0.02478981576859951, -0.03729183226823807, 0.012918840162456036, 0.013918043114244938, -0.0037756001111119986, -0.015153697691857815, -0.030312705785036087, -0.014845251105725765, -0.005751663353294134, -0.012116456404328346, 0.029379360377788544, 0.0483047179877758, 0.021747199818491936, 0.02575739100575447, 0.02167029120028019, 0.03699877858161926, 0.018918665125966072, -0.009729772806167603, -0.015236490406095982, 0.020015189424157143, 0.03559174761176109, 0.021048709750175476, 0.01716948300600052, -0.014439785853028297, -0.02407587692141533, 0.01503402553498745, -0.08427582681179047, 0.020284881815314293, 0.06577438861131668, -0.03463918715715408, 0.016564667224884033, 0.027597997337579727, -0.00985761545598507, 0.0307803712785244, -0.004890823271125555, 0.06428216397762299, 0.03069782443344593, 0.013119875453412533, 0.023045983165502548, -0.011996012181043625, -0.02892705798149109, 0.023989344015717506, 0.07262997329235077, -0.0006854235543869436, 0.04373878240585327, 0.0277445986866951, 0.03954546898603439, 0.07010862231254578, -0.0003978340537287295, 0.05973484739661217, -0.028425773605704308, 0.015174636617302895, 0.07473946362733841, 0.016810432076454163, 0.06008007377386093, 0.003088128287345171, -0.023678477853536606, -0.02448023483157158, 0.01279471255838871, -0.03681967407464981, -0.02494027093052864, 0.037347204983234406, -0.0225093811750412, 0.023580674082040787, -0.027722353115677834, 0.0537787489593029, 0.036129411309957504, 0.022114193066954613, 0.00376234226860106, 0.09033013880252838, 0.060125768184661865, 0.043567050248384476, 0.026738416403532028, 0.03420693799853325, 0.04302353411912918, -0.03691598400473595, 0.034389082342386246, 0.038222458213567734, -0.000025468789317528717, 0.04092070087790489, 0.019768547266721725, 0.030962923541665077, -0.030192671343684196, -0.01705947518348694, 0.0032068504951894283, 0.0010798772564157844, -0.004405537620186806, -0.040799908339977264, 0.011336775496602058, -0.02885393053293228, 0.004160208161920309, -0.01988440379500389, -0.021780913695693016, -0.017598113045096397, -0.004286143928766251, -0.05840751528739929, 0.03477795422077179, 0.005542196333408356, -0.01406700350344181, -0.01264949981123209, -0.03607975319027901, -0.015405786223709583, 0.04422759264707565, -0.047874074429273605, -0.06030489131808281, -0.034320320934057236, -0.01409479696303606, -0.02122507058084011, 0.04009860381484032, 0.0035668746568262577, -0.00717014167457819, 0.015953902155160904, 0.008841988630592823, -0.023535815998911858, 0.0005812331801280379, 0.04288197308778763, -0.00329419644549489, -0.05773961916565895, -0.01359066553413868, -0.004720569122582674, -0.02025132067501545, 0.00711242388933897, -0.02933952771127224, 0.02894067019224167, -0.006088981404900551, -0.0027729577850550413, 0.010096126236021519, 0.06780823320150375, -0.005223331972956657, -0.0103809405118227, -0.0257043968886137, -0.016201531514525414, 0.008011761121451855, 0.05459599569439888, -0.010247379541397095, -0.01911259815096855, 0.027295470237731934, 0.011945323087275028, 0.015774564817547798, -0.02243107184767723, 0.01029961183667183, 0.05156693980097771, -0.004189599771052599, -0.05282429978251457, 0.021623529493808746, 0.052243657410144806, 0.03441804647445679, 0.05354607105255127, 0.060090694576501846, 0.01648635044693947, 0.000024319168005604297, -0.049268435686826706, 0.008960944600403309, -0.03139840066432953, 0.019282665103673935, -0.008355352096259594, -0.03090376779437065, -0.036667585372924805, 0.004238992463797331, -0.004575825296342373, 0.04272271320223808, 0.008143131621181965, -0.005509081296622753, -0.02058122307062149, 0.001027504331432283, -0.03182915970683098, 0.056724902242422104, 0.028248528018593788, 0.02028760313987732, 0.051640983670949936, -0.013515389524400234, 0.0053978958167135715, 0.03961756452918053, -0.03771049156785011, 0.0019423513440415263, 0.03894704207777977, 0.00814245454967022, -0.013186771422624588, -0.009709777310490608, 0.005647885147482157, 0.023010261356830597, -0.019467530772089958, -0.004659364465624094, -0.00460941344499588, -0.012075569480657578, 0.026367105543613434, 0.00028544606175273657, 0.04750242084264755, -0.00017009334987960756, -0.0004607597948051989, 0.022562621161341667, 0.001758531085215509, -0.0018295004265382886, 0.0038535944186151028, -0.0008080484694801271, 0.0025265607982873917, -0.012087241746485233, -0.0008629029616713524, 0.017375905066728592, -0.010806085541844368, 0.01636127009987831, -0.009583730250597, 0.009276089258491993, 0.03268258646130562, -0.01192832738161087, -0.017231885343790054, -0.006557180546224117, -0.012286653742194176, 0.04110514372587204, 0.03054879792034626, -0.025176744908094406, 0.006910053081810474, -0.003261601086705923, -0.01927604153752327, 0.031441785395145416, -0.04125550389289856, -0.04252238944172859, -0.013524055480957031, 0.00671462481841445, -0.027492601424455643, 0.06326662003993988, 0.048184607177972794, -0.019390124827623367, -0.0033570819068700075, 0.029689090326428413 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
Why SafeCoder? Code assistant solutions built upon LLMs, such as GitHub Copilot, are delivering strong productivity boosts. For the enterprise, the ability to tune Code LLMs on the company code base to create proprietary Code LLMs improves reliability and relevance of completions to create another level of productivity boost. For instance, Google internal LLM code assistant reports a completion acceptance rate of 25-34% by being trained on an internal code base. However, relying on closed-source Code LLMs to create internal code assistants exposes companies to compliance and security issues. First during training, as fine-tuning a closed-source Code LLM on an internal codebase requires exposing this codebase to a third party. And then during inference, as fine-tuned Code LLMs are likely to “leak” code from their training dataset during inference. To meet compliance requirements, enterprises need to deploy fine-tuned Code LLMs within their own infrastructure - which is not possible with closed source LLMs. With SafeCoder, Hugging Face will help customers build their own Code LLMs, fine-tuned on their proprietary codebase, using state of the art open models and libraries, without sharing their code with Hugging Face or any other third party. With SafeCoder, Hugging Face delivers a containerized, hardware-accelerated Code LLM inference solution, to be deployed by the customer directly within the Customer secure infrastructure, without code inputs and completions leaving their secure IT environment.
[ -0.006453625857830048, -0.0033085476607084274, 0.07108233869075775, 0.03534604609012604, 0.035198844969272614, 0.0538620725274086, 0.05360269173979759, 0.0167058315128088, 0.01587081141769886, -0.0012794964713975787, -0.04894474148750305, -0.021226320415735245, -0.04099429398775101, 0.023103270679712296, -0.018071357160806656, -0.05919129028916359, -0.0013859629398211837, 0.0488886758685112, -0.013455958105623722, 0.03801608830690384, 0.00013132841559126973, -0.02207082509994507, -0.0000960496545303613, -0.05434754863381386, -0.08044388890266418, 0.0067994906567037106, -0.019536128267645836, 0.020859813317656517, -0.053930383175611496, 0.0215977244079113, 0.00932107213884592, -0.023292049765586853, -0.011668737977743149, -0.0655445009469986, 0.043310247361660004, 0.03246545419096947, -0.14699435234069824, 0.024835694581270218, -0.0020232712849974632, 0.0011938600800931454, 0.037168342620134354, -0.0446675606071949, -0.05571066215634346, -0.02507122978568077, -0.021228771656751633, -0.02567485347390175, -0.1528148055076599, 0.07128062099218369, 0.00284236459992826, -0.03007265366613865, -0.09815240651369095, 0.06962589174509048, 0.03574162349104881, -0.03483513370156288, 0.05841774120926857, 0.02356693707406521, 0.03616925701498985, -0.0750734880566597, -0.03950968757271767, 0.015171072445809841, -0.014230310916900635, -0.02973504550755024, 0.04277350381016731, -0.02214403636753559, 0.05311746522784233, 0.042626895010471344, -0.0444759763777256, -0.05728539451956749, -0.0009310805471614003, -0.05366690456867218, 0.014013643376529217, 0.014252887107431889, -0.04704056680202484, -0.025077924132347107, -0.04960279539227486, -0.04808075726032257, -0.032250139862298965, 0.033880580216646194, 0.040445055812597275, -0.03770770877599716, 0.005498270504176617, 0.012411754578351974, -0.031844329088926315, 0.01784411445260048, 0.003759667044505477, 0.08751348406076431, -0.012335929088294506, -0.072347491979599, -0.03478337079286575, -0.02305492013692856, -0.006412152200937271, -0.11067384481430054, -0.040254682302474976, 0.043117959052324295, 0.005651246290653944, 0.01688106544315815, 0.022288676351308823, 0.03269658237695694, -0.02227143943309784, 0.036451976746320724, -0.03971930220723152, -0.002001951914280653, -0.02270650863647461, -0.051416318863630295, -0.043524082750082016, 0.029265660792589188, -0.017302850261330605, -0.04465959221124649, -0.04780197516083717, -0.0038769273087382317, 0.05150533467531204, -0.03431959077715874, -0.021261990070343018, 0.0733683630824089, -0.15863633155822754, 0.030321944504976273, -0.02702333778142929, -0.019244104623794556, 0.03332948684692383, -0.01022653840482235, -0.011377563700079918, 0.027761166915297508, -0.0029240823350846767, 0.00835138838738203, 0.005052779335528612, 0.07169857621192932, -0.04462095722556114, 0.041141923516988754, -0.0005045457510277629, -0.05088305100798607, 0.022680344060063362, 0.015673629939556122, -0.03665769845247269, -0.024689260870218277, -0.04173323139548302, -0.022821839898824692, -0.029610518366098404, -0.03271299600601196, 0.008685879409313202, 0.008708633482456207, -0.015671661123633385, 0.059390582144260406, 0.00037183522363193333, -0.05754131078720093, 0.023838341236114502, 0.027564002200961113, -0.08066495507955551, 0.07946666330099106, 0.0055713411420583725, 0.031114665791392326, -0.023253178223967552, 0.04821595549583435, -0.047519512474536896, -0.05836161598563194, 0.044625431299209595, 0.04929162561893463, 0.01447159331291914, -0.040464021265506744, 0.03896799683570862, 0.02552790939807892, -0.07362760603427887, 0.014882935211062431, -0.08736078441143036, -0.020195070654153824, -0.006287075113505125, -0.013092286884784698, 0.01226462610065937, 0.015462419018149376, -0.028064915910363197, 0.06011437252163887, 0.0050900219939649105, -0.018634112551808357, 0.07119130343198776, -0.07224062830209732, 0.04085368290543556, 0.041088253259658813, 0.012683339416980743, 0.03020496852695942, 0.01783224567770958, -0.05336065590381622, -0.04622048884630203, 0.06239708140492439, 0.0518847294151783, 0.05532229319214821, 0.005263977684080601, -0.09191320836544037, 0.054617781192064285, -0.13358944654464722, -0.05685072019696236, -0.05049879103899002, -0.0439174510538578, 0.055627062916755676, 0.055264588445425034, -0.015779191628098488, 0.013712616637349129, -0.003851647023111582, 0.007786072790622711, 0.11964672803878784, 0.05110832676291466, 0.009639635682106018, 0.08361737430095673, 0.04736115410923958, 0.010731584392488003, -0.02940773218870163, 0.00958680547773838, 0.055416006594896317, 0.022286560386419296, -0.03809063136577606, 0.012059967033565044, 0.0839993804693222, 0.04770207032561302, -0.10128790140151978, -0.00998818501830101, 0.0023673647083342075, 0.07288175076246262, -0.003074660897254944, -0.08564353734254837, -0.003315308131277561, 0.01575697772204876, 0.027216225862503052, 0.11737360060214996, -0.07052791863679886, -0.0013395819114521146, -0.006088085472583771, -0.002846343209967017, 0.019843976944684982, 0.030208978801965714, 0.025926146656274796, 0.0640053078532219, -0.0038505438715219498, -0.004468846134841442, -0.1196109876036644, -0.02211694046854973, -0.023608824238181114, -0.0010168565204367042, 0.008641328662633896, 0.026216605678200722, 0.002910725073888898, -0.0035447708796709776, 0.004602523986250162, 0.003615835914388299, 0.002739989198744297, -0.019714344292879105, 0.004611456301063299, 0.0021102724131196737, -0.04463472589850426, 0.0530574806034565, -0.018408918753266335, 0.05801178142428398, 0.04529421404004097, -0.07534345239400864, 0.02775496430695057, -0.0007515246397815645, 0.0517723485827446, 0.028076082468032837, -0.033100418746471405, -0.020647278055548668, 0.002505218144506216, -0.030367210507392883, 0.022988267242908478, 0.024963585659861565, -0.025692719966173172, 0.002166324993595481, -0.006533863488584757, 0.012169946916401386, 0.013517000712454319, -0.022733282297849655, 0.03367556631565094, -0.02821313589811325, 0.009041658602654934, 0.00284063583239913, -0.016967743635177612, 0.05535106360912323, -0.014693017117679119, 0.04862014949321747, 0.06886160373687744, 0.021922940388321877, -0.002319002989679575, -0.030686918646097183, -0.018175747245550156, 0.04380502179265022, -0.019571984186768532, 0.03213264048099518, 0.044820189476013184, 0.011773605830967426, -0.009173506870865822, -0.05375392362475395, -0.004466981627047062, -0.04781167209148407, 0.03681788221001625, 0.038421545177698135, 0.016954315826296806, -0.03461969271302223, -0.012559613212943077, -0.043027959764003754, -0.01583821140229702, -0.028875278308987617, -0.026231467723846436, -0.032225362956523895, 0.007254611700773239, -0.010821877978742123, -0.038523539900779724, 0.015481853857636452, -0.07202291488647461, -0.011304212734103203, 0.023935411125421524, 0.016541460528969765, 0.014102501794695854, -0.07743047922849655, 0.00857518333941698, -0.05075235664844513, -0.05208252742886543, 0.0392993688583374, 0.0030964554753154516, 0.0720369890332222, -0.018410393968224525, -0.012665197253227234, 0.04366769269108772, 0.019239023327827454, 0.03847106918692589, 0.06478595733642578, 0.015066939406096935, 0.003741638967767358, -0.03891902044415474, -0.01403693575412035, 0.006295522674918175, 0.03087613172829151, 0.005956242326647043, 0.0028378467541188, 0.01873154751956463, -0.03165102005004883, 0.011179161258041859, 0.03349357098340988, -0.028953466564416885, -0.0037398734129965305, -0.02263074554502964, -0.020190658047795296, -0.023659391328692436, 0.007151951547712088, -0.0333002544939518, 0.006668314337730408, -0.03984474763274193, -0.056039705872535706, 0.017005646601319313, 0.03174717724323273, -0.03058554418385029, 0.04458455368876457, 0.05272987112402916, 0.014690517447888851, -0.007704711519181728, -0.0009420632268302143, 0.016986973583698273, 0.016757270321249962, -0.023805920034646988, -0.035976752638816833, -0.02515808492898941, 0.02932574227452278, -0.04927733540534973, 0.012027343735098839, 0.015115109272301197, -0.009622296318411827, 0.10278480499982834, 0.02220992185175419, -0.002603252651169896, -0.0004652797942981124, -0.01210890430957079, -0.014274990186095238, 0.037812165915966034, -0.060840945690870285, -0.012730104848742485, -0.03366503119468689, 0.010390509851276875, -0.01774182915687561, 0.06016615405678749, 0.0556323379278183, -0.06554628163576126, -0.04254409298300743, 0.052384138107299805, 0.025294320657849312, 0.04933557286858559, -0.026113132014870644, 0.0037078724708408117, -0.025288961827754974, -0.022045180201530457, -0.023360950872302055, -0.007548770867288113, 0.04349862039089203, 0.05811913684010506, 0.005293347407132387, -0.01071765273809433, -0.0006326710572466254, 0.021750854328274727, 0.04305235669016838, 0.00782103929668665, 0.01115692500025034, -0.014642790891230106, 0.01761494390666485, 0.04505830630660057, 0.0004812208644580096, -0.04834510758519173, -0.012333976104855537, 0.026771286502480507, 0.02122761867940426, 0.0016543114325031638, -0.017580660060048103, 0.028464559465646744, -0.014117435552179813, -0.014016923494637012, 0.051191262900829315, -0.012193403206765652, 0.0014663598267361522, 0.011888404376804829, -0.003705497831106186, 0.016439639031887054, -0.015000209212303162, -0.003189939074218273, 0.02371392585337162, 0.012658589519560337, -0.011745690368115902, -0.03637641668319702, 0.038860686123371124, -0.012512747198343277, 0.014912949874997139, -0.0013374376576393843, 0.003724753623828292, -0.017709635198116302, -0.02943292260169983, -0.009019163437187672, -0.029734816402196884, -0.016441864892840385, 0.03039741702377796, 0.0203046016395092, 0.05126141384243965, -0.00002227026197942905, 0.01310140173882246, -0.020873628556728363, 0.017140937969088554, 0.010379573330283165, -0.0400073267519474, 0.019769886508584023, 0.03451019525527954, -0.029108792543411255, -0.0026444855611771345, -0.04079127311706543, -0.0018244232051074505, 0.004523455630987883, -0.016589896753430367, -0.038318753242492676, -0.02770056575536728, 0.045952774584293365, -0.018741142004728317, -0.037728823721408844, 0.04675785452127457, 0.0022329105995595455, 0.016900448128581047, -0.05727497488260269, 0.009149807505309582, 0.037142563611269, 0.014228357002139091, -0.036200836300849915, 0.03185725212097168, -0.003818075405433774, 0.013568496331572533, -0.029841260984539986, -0.016244543716311455, 0.02489187940955162, 0.04881688952445984, 0.030021971091628075, 0.01869395188987255, 0.0618707649409771, -0.028192268684506416, -0.03939712420105934, 0.019258592277765274, 0.06368447095155716, -0.017255304381251335, 0.003924966789782047, -0.014643490314483643, -0.02782096154987812, 0.00749680632725358, 0.023333538323640823, 0.02240338735282421, -0.005240293685346842, 0.009446809068322182, 0.03636842966079712, 0.04765452817082405, -0.014949939213693142, -0.012510432861745358, 0.048990752547979355, -0.005873624701052904, -0.01563173718750477, 0.06051397696137428, 0.02815258502960205, 0.016986247152090073, 0.008557494729757309, 0.0866590216755867, 0.030129821971058846, 0.03157059848308563, -0.0011298424797132611, -0.035455141216516495, 0.003316833870485425, 0.010803206823766232, -0.016879038885235786, -0.03587348759174347, -0.050360459834337234, -0.01990991085767746, 0.049908023327589035, -0.013288624584674835, 0.01891951635479927, 0.028343742713332176, 0.030443724244832993, -0.03031599149107933, 0.001574606983922422, -0.0013282191939651966, -0.012663032859563828, 0.022709766402840614, 0.009083174169063568, 0.011739720590412617, -0.006621651817113161, -0.01794714666903019, -0.019287092611193657, -0.01643473282456398, 0.0032525828573852777, -0.024110011756420135, -0.0481080487370491, -0.02086501382291317, 0.030214356258511543, 0.022157322615385056, 0.023167209699749947, -0.017081717029213905, -0.0383358970284462, 0.03641241043806076, -0.020535390824079514, 0.03319002315402031, -0.04662366211414337, 0.003707627998664975, 0.03133142739534378, 0.01150879729539156, -0.0113337691873312, 0.02393292263150215, 0.007289009168744087, 0.015469029545783997, -0.012592018581926823, -0.012520117685198784, 0.014294409193098545, -0.015525520779192448, 0.0020866882987320423, 0.010780390352010727, -0.02067881077528, -0.003603217424824834, -0.015303496271371841, -0.020002072677016258, -0.0068311430513858795, -0.032127998769283295, 0.04711630940437317, 0.005027179606258869, -0.021711798384785652, -0.014094872400164604, -0.011954070068895817, 0.04138728976249695, 0.014148974791169167, 0.012077843770384789, -0.03006606735289097, 0.01840227097272873, 0.00782035756856203, 0.03870152309536934, -0.021660132333636284, 0.0007659357506781816, -0.03639115393161774, 0.024687010794878006, -0.07086553424596786, 0.012300726026296616, 0.07344041019678116, -0.03529202938079834, 0.02426154911518097, 0.010281302966177464, -0.005860715638846159, 0.020993780344724655, -0.06547126919031143, 0.020730528980493546, 0.0028769897762686014, 0.023916257545351982, -0.030722131952643394, 0.012442401610314846, -0.019989939406514168, 0.06680647283792496, 0.056071944534778595, 0.029115580022335052, 0.0033178292214870453, 0.015442782081663609, 0.04212033003568649, 0.060956232249736786, -0.023818258196115494, 0.020085591822862625, -0.019591735675930977, 0.016265956684947014, 0.06257770210504532, 0.020944008603692055, 0.004754058085381985, -0.04777412861585617, -0.009541100822389126, -0.028329530730843544, 0.0192369744181633, -0.03006613813340664, 0.0028548291884362698, 0.010965484194457531, 0.009298543445765972, 0.02530152164399624, -0.00397659232839942, 0.02167881838977337, 0.0013788719661533833, 0.031107546761631966, 0.04219183698296547, -0.001381822512485087, 0.05617856606841087, 0.05042432248592377, -0.002877979539334774, 0.058825984597206116, 0.012063974514603615, -0.009425537660717964, 0.04557802900671959, 0.03764013573527336, 0.03535221517086029, 0.023805195465683937, -0.0006844457820989192, 0.029601136222481728, -0.027422748506069183, 0.009487894363701344, 0.011154428124427795, -0.05547463521361351, -0.001816720818169415, -0.062368862330913544, 0.0006634094170294702, -0.007653324864804745, 0.004878724459558725, -0.0015854480443522334, -0.004468697123229504, -0.028187530115246773, 0.010469603352248669, 0.012194416485726833, 0.015550249256193638, 0.004974194802343845, 0.01455049030482769, -0.016343574970960617, -0.037498533725738525, 0.024797968566417694, 0.005402239505201578, -0.02022494003176689, -0.03728208318352699, -0.016307247802615166, -0.02959591895341873, -0.03121727518737316, 0.0866086483001709, 0.025453273206949234, -0.04078800603747368, 0.04480600357055664, 0.005194366909563541, 0.030061544850468636, 0.03145868331193924, 0.0022866730578243732, 0.02724485471844673, -0.05959051847457886, -0.01403608825057745, 0.016648340970277786, -0.03008045069873333, 0.009106114506721497, -0.026101330295205116, 0.01940966211259365, 0.003310861298814416, -0.003750849748030305, -0.0324883908033371, 0.07775882631540298, -0.018605491146445274, -0.011406668461859226, -0.0015751661267131567, 0.03332971781492233, 0.029684755951166153, 0.036371853202581406, -0.02993849851191044, -0.022691531106829643, 0.00007053841545712203, -0.013156864792108536, 0.019486868754029274, -0.00665675662457943, -0.013340068981051445, 0.06391251087188721, 0.036231979727745056, -0.01530340127646923, -0.014195346273481846, 0.05990761145949364, 0.03317001834511757, 0.06430370360612869, 0.06110579892992973, 0.017574507743120193, 0.013559915125370026, -0.02125626988708973, -0.019684158265590668, -0.07144325226545334, 0.015043653547763824, 0.005440928041934967, -0.04035123437643051, -0.012283939868211746, -0.019885478541254997, 0.03624977916479111, 0.08229703456163406, -0.0010935282334685326, -0.003641046117991209, 0.004939625039696693, -0.008702320046722889, -0.04221489280462265, 0.008337591774761677, 0.029445648193359375, -0.01661228947341442, 0.008725921623408794, -0.01122891902923584, -0.008012879639863968, 0.01484465878456831, -0.009829847142100334, -0.02559017203748226, 0.03346835821866989, -0.011234390549361706, -0.04523485526442528, -0.0077481805346906185, -0.01881786249577999, 0.005890440195798874, -0.016306709498167038, -0.00223156507126987, -0.004021679051220417, -0.0028759825509041548, 0.03386085852980614, 0.05453355237841606, 0.013601506128907204, -0.051781341433525085, 0.010264428332448006, -0.01346555445343256, -0.011631346307694912, 0.04411511495709419, -0.0367041751742363, -0.03153997287154198, -0.03548090532422066, -0.026168812066316605, -0.00760840717703104, 0.007873205468058586, -0.021230462938547134, 0.010232466273009777, -0.01598242111504078, 0.03553232178092003, -0.01202682126313448, -0.03201054409146309, -0.04199346527457237, -0.024659309536218643, -0.0392327643930912, -0.015691271051764488, 0.016316380351781845, -0.011847968213260174, 0.023872215300798416, -0.03389790654182434, 0.028762316331267357, 0.014772606082260609, -0.05534787103533745, -0.03157632797956467, -0.0036794336047023535, 0.002530972706153989, 0.005069752223789692, 0.025637151673436165, 0.05376383662223816, -0.029113812372088432, -0.045008931308984756, 0.02137560397386551 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
# Introducing SafeCoder Today we are excited to announce SafeCoder - a code assistant solution built for the enterprise. The goal of SafeCoder is to unlock software development productivity for the enterprise, with a fully compliant and self-hosted pair programmer. In marketing speak: “your own on-prem GitHub copilot”. Before we dive deeper, here’s what you need to know: - SafeCoder is not a model, but a complete end-to-end commercial solution - SafeCoder is built with security and privacy as core principles - code never leaves the VPC during training or inference - SafeCoder is designed for self-hosting by the customer on their own infrastructure - SafeCoder is designed for customers to own their own Code Large Language Model
[ 0.010051657445728779, 0.007124144583940506, 0.08076558262109756, 0.07924416661262512, 0.02126557007431984, 0.0585685633122921, 0.04029477387666702, -0.022331513464450836, -0.01951504871249199, -0.018108386546373367, -0.02225428633391857, 0.020391959697008133, -0.038045238703489304, 0.06148610636591911, 0.014218034222722054, -0.03967927396297455, 0.004826134070754051, 0.026522895321249962, -0.035761699080467224, -0.018967149779200554, -0.06742238253355026, -0.017689839005470276, -0.011974290944635868, -0.048713039606809616, -0.05321785807609558, 0.02564053051173687, -0.018562471494078636, 0.0018070993246510625, -0.07885394245386124, -0.0018248677952215075, -0.0023323949426412582, 0.00029921074747107923, 0.05191772058606148, -0.09898421168327332, 0.03972289711236954, 0.021430332213640213, -0.09071828424930573, 0.05061042681336403, -0.026320133358240128, -0.04831359535455704, -0.03520131856203079, -0.05195225030183792, -0.020939860492944717, -0.009260546416044235, -0.021607637405395508, -0.023378852754831314, -0.23062294721603394, 0.10267221182584763, -0.015351067297160625, -0.029293034225702286, -0.060709066689014435, 0.051170144230127335, 0.011397349648177624, -0.016476020216941833, 0.03420175239443779, 0.04310425743460655, -0.0242458526045084, -0.08553057163953781, -0.08270493149757385, -0.004896143451333046, 0.03689727932214737, -0.024324048310518265, 0.000437370064901188, -0.0013598334044218063, 0.05850652977824211, 0.004749916959553957, -0.013772784732282162, -0.005827364511787891, -0.0018127963412553072, -0.022823123261332512, -0.034369807690382004, -0.01878245547413826, -0.034635670483112335, -0.023545600473880768, -0.05308249965310097, -0.08714840561151505, -0.02937241457402706, 0.03955208510160446, 0.06073097884654999, -0.023575523868203163, 0.01366463303565979, 0.015801554545760155, 0.019287332892417908, -0.01287312712520361, -0.014692123979330063, 0.05120459571480751, -0.04489469155669212, -0.05890277773141861, 0.015277913771569729, -0.006328709423542023, 0.04890471324324608, -0.15262041985988617, -0.02524395100772381, -0.025235546752810478, -0.0011919722892343998, 0.03840909153223038, -0.006215335801243782, 0.01483713835477829, 0.014085004106163979, 0.018040470778942108, -0.06865981966257095, -0.008179720491170883, -0.035185929387807846, -0.10124993324279785, 0.009576443582773209, 0.049704257398843765, -0.015011132694780827, -0.053632382303476334, 0.001148122944869101, -0.01176437083631754, 0.08837277442216873, 0.00450568413361907, -0.03066648542881012, 0.10386309027671814, -0.12022402137517929, 0.08043374866247177, 0.010959533043205738, -0.05094899609684944, 0.019843146204948425, -0.04302521422505379, 0.0005314365262165666, 0.015353035181760788, -0.04274430871009827, 0.07827550917863846, -0.050934772938489914, 0.03594155237078667, -0.03332604095339775, 0.027276549488306046, -0.01847599633038044, -0.07547866553068161, 0.039326515048742294, -0.027862027287483215, 0.019893821328878403, -0.023455025628209114, -0.019325651228427887, 0.01848183013498783, -0.04507508873939514, -0.04008591175079346, 0.01040190365165472, -0.014151237905025482, -0.053317103534936905, 0.03509845212101936, 0.053165096789598465, -0.007691242266446352, 0.00340562267228961, 0.017848549410700798, -0.054260529577732086, 0.06858737021684647, 0.023109909147024155, 0.03430285304784775, -0.016481913626194, 0.02257871814072132, -0.046140749007463455, -0.0615992397069931, 0.032900821417570114, 0.018113315105438232, 0.007894634269177914, -0.03046938218176365, 0.022361256182193756, 0.0197148397564888, -0.009878433309495449, -0.015288162976503372, -0.09676319360733032, -0.018621088936924934, -0.04118553176522255, 0.005255658179521561, 0.00879482738673687, -0.0019929951522499323, 0.04163621366024017, 0.030487501993775368, -0.02769792266190052, -0.030940422788262367, 0.1160382404923439, 0.021947020664811134, 0.01980806700885296, 0.032878708094358444, 0.020304666832089424, 0.03648829087615013, 0.003988100215792656, 0.0009265824919566512, -0.04623505100607872, 0.06653712689876556, 0.009615251794457436, 0.047143999487161636, -0.020888932049274445, -0.07373158633708954, 0.05565675348043442, -0.08938794583082199, -0.03665073588490486, 0.01262271124869585, -0.05992777645587921, 0.0032690742518752813, 0.010441925376653671, -0.013603507541120052, 0.004081385675817728, -0.009519144892692566, 0.0185733363032341, 0.11771142482757568, 0.04624692350625992, 0.04922374337911606, 0.06889856606721878, 0.02435174398124218, 0.010307812131941319, -0.022471584379673004, -0.04263843968510628, 0.12964366376399994, 0.03753497079014778, 0.004619134124368429, 0.011345702223479748, 0.048877667635679245, 0.013173067010939121, -0.05378846824169159, 0.013063401915133, -0.033320102840662, 0.03146517276763916, 0.009276390075683594, -0.03292527794837952, 0.014995708130300045, 0.009278738871216774, 0.01646699756383896, 0.14117026329040527, -0.10867905616760254, -0.0028914455324411392, 0.030646229162812233, -0.014469578862190247, 0.0705055445432663, 0.06417758017778397, -0.011602926068007946, 0.05932674556970596, 0.030234234407544136, -0.03691164776682854, -0.055820923298597336, -0.03464219346642494, -0.021289290860295296, 0.058702364563941956, 0.05804068222641945, -0.018592923879623413, 0.030971160158514977, 0.004805514123290777, -0.04207935184240341, -0.007404401898384094, -0.03265410661697388, -0.016344916075468063, -0.01495678722858429, -0.023333853110671043, 0.0053664944134652615, 0.08624433726072311, -0.010701063089072704, 0.03915105015039444, 0.02578662894666195, -0.057340607047080994, -0.004923177883028984, -0.0016463813371956348, 0.03281546011567116, 0.09942694753408432, -0.034071631729602814, -0.0081801051273942, -0.023168012499809265, -0.005205899477005005, -0.006097048986703157, 0.025896167382597923, 0.006925305351614952, 0.018119866028428078, -0.04355408251285553, 0.01126245129853487, -0.005054137669503689, -0.059242650866508484, 0.0420251339673996, -0.024787891656160355, -0.014573759399354458, -0.03138253837823868, -0.02826816588640213, 0.012169644236564636, -0.015411232598125935, 0.022207939997315407, 0.03421627730131149, 0.0035064814146608114, -0.016854993999004364, 0.0075693014077842236, -0.016969557851552963, 0.0350591316819191, -0.03367431461811066, 0.01619812846183777, 0.03192310780286789, 0.025683658197522163, -0.0028944811783730984, -0.006737298332154751, 0.007304646540433168, -0.037279315292835236, -0.015498806722462177, 0.04267805814743042, 0.03574053943157196, -0.04002330079674721, 0.02883433923125267, -0.03820570558309555, -0.007809712551534176, 0.02428038977086544, 0.0023008794523775578, -0.021510904654860497, -0.015999579802155495, 0.00008240276656579226, -0.009881104342639446, 0.00543182622641325, -0.043190937489271164, -0.017146775498986244, 0.03814852237701416, 0.03228816017508507, -0.023368678987026215, -0.09718690812587738, -0.027779385447502136, -0.047189321368932724, -0.010059453547000885, 0.012752841226756573, -0.0008594303508289158, 0.03146803006529808, -0.024261798709630966, -0.011649351567029953, 0.019619431346654892, -0.0041495878249406815, -0.0031006527133286, 0.06239546090364456, -0.0033900337293744087, -0.021403532475233078, 0.0015643768711015582, -0.050998423248529434, 0.01757088676095009, 0.012844786047935486, 0.014441070146858692, -0.0011524520814418793, 0.03865550085902214, -0.01163181196898222, 0.005011601373553276, 0.022075165063142776, -0.03964150324463844, 0.012693040072917938, -0.01634533703327179, -0.020705880597233772, 0.008397798985242844, -0.010031764395534992, -0.01271254662424326, 0.015816176310181618, -0.016159478574991226, -0.05831138789653778, 0.0070199426263570786, 0.007255821023136377, -0.00818582996726036, 0.03311096876859665, 0.012101265601813793, 0.019953181967139244, -0.008797470480203629, 0.016567688435316086, -0.02852439135313034, -0.0018741347594186664, -0.0299563929438591, 0.007808354217559099, -0.0205099917948246, 0.04567296802997589, -0.04643641784787178, -0.026388948783278465, -0.021217836067080498, 0.02456502802670002, 0.08472698926925659, 0.014817737974226475, -0.022759048268198967, -0.029293840751051903, 0.04569559544324875, 0.01381953340023756, 0.03170544281601906, -0.026645569130778313, -0.0027139594312757254, 0.031830549240112305, -0.014302031137049198, -0.011413861066102982, 0.042410362511873245, 0.06764784455299377, -0.06013167276978493, -0.03869329392910004, 0.030023716390132904, -0.018515808507800102, 0.040766678750514984, 0.027427714318037033, 0.013626562431454659, -0.043262824416160583, 0.004350874572992325, 0.012495145201683044, -0.0024628129322081804, 0.028784433379769325, 0.08349013328552246, 0.014558733440935612, -0.015423781238496304, 0.0064469981007277966, 0.0037533664144575596, 0.03571823239326477, 0.03186939284205437, 0.0317528210580349, 0.004125252366065979, 0.03317585214972496, 0.06763551384210587, 0.013764753937721252, -0.04023253545165062, 0.01871528849005699, 0.035715918987989426, 0.039867233484983444, 0.026613786816596985, -0.0018369342433288693, -0.02670026756823063, 0.01409901399165392, -0.005499906837940216, 0.06311122328042984, -0.06508702039718628, -0.0033052603248506784, 0.0004188092425465584, -0.01611277461051941, 0.041790638118982315, -0.031204301863908768, -0.0184938907623291, -0.01081401202827692, 0.008802378550171852, 0.0368470698595047, -0.016222698614001274, 0.02321724407374859, -0.03613431751728058, 0.010594556108117104, 0.010784485377371311, -0.013335988856852055, -0.027638988569378853, -0.008980387821793556, 0.02867582067847252, 0.011145692318677902, 0.003059123642742634, 0.01656479574739933, 0.04136558994650841, -0.012236300855875015, 0.00578942708671093, 0.040077775716781616, -0.013347887434065342, 0.029563311487436295, -0.021510064601898193, -0.02274296246469021, 0.03041338361799717, -0.01379403192549944, -0.04519474506378174, 0.005682839546352625, -0.010817673988640308, 0.01923474669456482, 0.024279428645968437, -0.027687078341841698, -0.044713832437992096, -0.04907158762216568, 0.026748454198241234, 0.021327748894691467, -0.04023536667227745, 0.04076904058456421, -0.02081383392214775, -0.06030480936169624, -0.023109832778573036, 0.004883680026978254, 0.047270823270082474, 0.016730401664972305, -0.0443924218416214, 0.014437995851039886, -0.008761700242757797, 0.0032881523948162794, -0.04664582014083862, 0.008198915980756283, 0.020880036056041718, -0.004336351994425058, 0.018498852849006653, 0.029588546603918076, 0.02758079394698143, -0.009315812028944492, -0.04171605408191681, 0.02999798394739628, 0.03788945451378822, -0.023381860926747322, -0.03196077048778534, -0.03842737153172493, -0.0012979710008949041, -0.034457940608263016, 0.04754205793142319, 0.0436069630086422, 0.004326148424297571, 0.0013731253566220403, 0.031983908265829086, 0.03288688138127327, 0.024163775146007538, -0.05282524600625038, 0.03189340606331825, 0.005492742173373699, 0.042167820036411285, -0.0010511557338759303, 0.010940076783299446, -0.004241900518536568, -0.01653307117521763, 0.09651387482881546, 0.028420288115739822, 0.014284294098615646, 0.005798588041216135, 0.009658574126660824, 0.0003297135990578681, 0.002916657831519842, 0.0009632901637814939, -0.0023837657645344734, -0.07199752330780029, -0.01471453346312046, 0.031046733260154724, -0.01787763461470604, 0.0026292724069207907, 0.001306032296270132, 0.02491825632750988, -0.05551743879914284, -0.0005202845786698163, 0.009167605079710484, 0.03269008919596672, 0.03387555852532387, 0.008510617539286613, 0.0042468588799238205, 0.010019654408097267, 0.0370873361825943, 0.040403347462415695, -0.012518975883722305, 0.007534690201282501, -0.004993286449462175, -0.051593828946352005, -0.01262090913951397, 0.02459087036550045, 0.02204430289566517, 0.007847288623452187, -0.03505384549498558, -0.013907269574701786, 0.021481171250343323, -0.003672561142593622, 0.036904916167259216, -0.03278595581650734, -0.0064842780120670795, 0.01616135984659195, 0.00412551686167717, -0.041242554783821106, 0.020354565232992172, 0.015725666657090187, -0.0053232572972774506, 0.00021996951545588672, -0.013784080743789673, 0.0029393015429377556, -0.022555192932486534, 0.02495289407670498, -0.01794222556054592, 0.004329715855419636, -0.024174664169549942, -0.038830216974020004, 0.01929132454097271, -0.027212627232074738, -0.03810427710413933, 0.025056257843971252, 0.0030409954488277435, 0.002859904430806637, 0.02584303542971611, -0.007577836047858, 0.02261602133512497, 0.004488246515393257, -0.021217864006757736, -0.031122157350182533, 0.006372944917529821, 0.0298436488956213, -0.0015718188369646668, -0.015430907718837261, -0.029702428728342056, -0.05704463645815849, 0.02408456988632679, -0.05949675664305687, -0.00973424594849348, 0.09142585843801498, -0.01970306597650051, 0.00401522358879447, 0.01987527869641781, -0.0246390663087368, -0.01377769187092781, -0.03283381834626198, 0.02577284723520279, 0.030674880370497704, 0.004471414722502232, -0.02871253341436386, 0.0021348060108721256, -0.03283357247710228, 0.05257363244891167, 0.07633885741233826, -0.0006282635731622577, 0.038788653910160065, 0.03065590001642704, 0.049061860889196396, 0.05109868198633194, -0.024462418630719185, 0.004504702519625425, -0.011304507032036781, -0.01122139859944582, 0.03556827828288078, 0.006494132801890373, 0.008520437404513359, 0.006081810686737299, 0.0022082056384533644, 0.013651134446263313, 0.03514253348112106, -0.051267702132463455, 0.030533140525221825, -0.011041603982448578, -0.02816830202937126, 0.034413862973451614, -0.02850201539695263, 0.00929751805961132, 0.029171476140618324, 0.008442035876214504, 0.00966758094727993, 0.023831866681575775, 0.07304320484399796, 0.05299536511301994, 0.024524349719285965, 0.04551021382212639, 0.04048412665724754, -0.02768666297197342, 0.04008563607931137, 0.036617107689380646, 0.01560694258660078, 0.01993376575410366, 0.01860174350440502, 0.0292220301926136, -0.03886003419756889, -0.02801232971251011, 0.021324854344129562, -0.0439564473927021, -0.035267170518636703, -0.052595797926187515, 0.0008468992891721427, -0.003995942883193493, -0.03135088086128235, 0.03492268547415733, 0.01599828712642193, -0.015368403866887093, 0.0037861510645598173, -0.031459029763936996, 0.034033603966236115, 0.00985140074044466, 0.02233010344207287, -0.03762179613113403, -0.017695976421236992, 0.01048661395907402, 0.0039237323217093945, -0.04539073631167412, -0.013517740182578564, -0.0367254912853241, 0.009766113013029099, -0.02424628846347332, 0.07029784470796585, 0.016877220943570137, -0.018313439562916756, 0.06548474729061127, 0.018558531999588013, -0.020987581461668015, 0.0054424176923930645, 0.06296618282794952, 0.020585831254720688, -0.04242059215903282, -0.004901696927845478, -0.02705274149775505, -0.01834886707365513, -0.002812766470015049, -0.010924020782113075, 0.04891522601246834, -0.005771049298346043, -0.02757972665131092, -0.009279121644794941, 0.055622633546590805, 0.006096277851611376, -0.024122314527630806, 0.00007937211921671405, 0.010429389774799347, 0.016522271558642387, 0.00921075139194727, -0.04267822578549385, -0.0018125646747648716, -0.005480790976434946, 0.012932336889207363, 0.013366936706006527, -0.011045404709875584, -0.010343664325773716, 0.07576505094766617, 0.02600216306746006, 0.015225518494844437, -0.009352552704513073, 0.07477299124002457, 0.008258138783276081, 0.05185718834400177, 0.05464649200439453, -0.00901815015822649, -0.004926985129714012, -0.03525528311729431, -0.0447993129491806, -0.0448642373085022, 0.009366958402097225, 0.010688301175832748, -0.04257472604513168, -0.040494829416275024, -0.017466947436332703, 0.01716921292245388, 0.0481710210442543, 0.005952971056103706, -0.01612343080341816, 0.00033319249632768333, 0.008177587762475014, -0.028775479644536972, 0.04283333197236061, 0.029045099392533302, -0.011914147064089775, 0.0408722460269928, -0.0028005170170217752, -0.014114678837358952, 0.014322042465209961, -0.0037229822482913733, 0.0008768044644966722, 0.02895522117614746, 0.01783638447523117, -0.02534913271665573, 0.0042230975814163685, -0.004879678599536419, -0.012807621620595455, 0.00829153973609209, -0.0058576264418661594, 0.0023025330156087875, -0.03118101693689823, 0.007421685382723808, 0.03685632720589638, 0.004377398174256086, -0.007198699284344912, -0.009630842134356499, 0.02499949187040329, -0.02910623513162136, 0.04543698951601982, -0.04513709992170334, 0.0017666588537395, -0.05311539024114609, -0.03036746196448803, -0.018018469214439392, 0.04138921573758125, 0.0061738272197544575, 0.0008818887872621417, -0.01353620644658804, 0.0025680356193333864, -0.03625195845961571, 0.01157572865486145, -0.03371449187397957, 0.010243174619972706, -0.03477206453680992, 0.005161485634744167, 0.014138572849333286, 0.005883362609893084, 0.003984668757766485, -0.028848715126514435, 0.0005972509388811886, -0.005107355769723654, -0.013482275418937206, -0.007897223345935345, -0.029351286590099335, 0.01910344883799553, 0.005240065976977348, 0.040323272347450256, 0.043249160051345825, -0.024001305922865868, -0.005250382237136364, 0.027245787903666496 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
Deploying SafeCoder During the setup phase, SafeCoder customers and Hugging Face design and provision the optimal infrastructure to support the required concurrency to offer a great developer experience. Hugging Face then builds SafeCoder inference containers that are hardware-accelerated and optimized for throughput, to be deployed by the customer on their own infrastructure. SafeCoder inference supports various hardware to give customers a wide range of options: NVIDIA Ampere GPUs, AMD Instinct GPUs, Habana Gaudi2, AWS Inferentia 2, Intel Xeon Sapphire Rapids CPUs and more.
[ 0.008659858256578445, -0.0014171741204336286, 0.027847817167639732, 0.049753766506910324, 0.011879068799316883, 0.06354324519634247, 0.03866849094629288, 0.03860766440629959, -0.03907821699976921, -0.06308538466691971, -0.05932660400867462, 0.025373641401529312, -0.0166851244866848, 0.06387808918952942, -0.0014830522704869509, -0.06739780306816101, 0.037637095898389816, 0.026106050238013268, -0.014058957807719707, 0.07327740639448166, 0.0036543093156069517, -0.08761104941368103, 0.030112093314528465, -0.01458622794598341, -0.03161062300205231, -0.03938557952642441, -0.020790448412299156, -0.017416488379240036, 0.01929427869617939, -0.0009325288701802492, -0.020550694316625595, 0.025352299213409424, -0.010063925758004189, -0.08512573689222336, 0.07640109211206436, 0.018858326599001884, -0.1594453901052475, 0.0546724870800972, 0.043674856424331665, 0.027617838233709335, 0.013024330139160156, -0.021300839260220528, -0.07447227835655212, 0.021378925070166588, 0.03792690485715866, -0.006732836365699768, -0.09548462927341461, 0.06691079586744308, -0.03224273771047592, -0.035988692194223404, -0.05271618813276291, 0.08797178417444229, -0.014400866813957691, -0.009301379323005676, 0.07705220580101013, 0.032911766320466995, -0.032979533076286316, -0.08020005375146866, 0.036712490022182465, -0.00463875662535429, 0.019603919237852097, -0.02937573753297329, -0.00017879638471640646, -0.0016579774674028158, 0.012806070037186146, 0.02372983656823635, -0.008291824720799923, -0.07187074422836304, 0.037528906017541885, -0.04216672480106354, 0.030206313356757164, -0.025629283860325813, 0.024574585258960724, -0.027742581441998482, 0.0050869593396782875, -0.062046557664871216, -0.048765990883111954, -0.016713812947273254, 0.06562282145023346, -0.002158689545467496, -0.03754900395870209, -0.016500398516654968, 0.02017669565975666, 0.07344508916139603, 0.00909943412989378, 0.06221332028508186, 0.020453043282032013, -0.05995701998472214, -0.04904027283191681, 0.029318917542696, 0.036234285682439804, -0.07532601058483124, 0.005897300783544779, -0.031017640605568886, 0.0036665264051407576, 0.08364243805408478, 0.006436506286263466, 0.007695176638662815, 0.018979128450155258, -0.010369828902184963, -0.01817181520164013, -0.05689084157347679, -0.03006470762193203, -0.11496085673570633, 0.010300135239958763, 0.02291438728570938, -0.04138866066932678, -0.06367365270853043, -0.050789427012205124, 0.014952373690903187, 0.05510414019227028, -0.057349443435668945, -0.02362901158630848, 0.08416850864887238, -0.11381084471940994, 0.04628019779920578, -0.0063633788377046585, -0.0324307382106781, 0.07224689424037933, 0.00020462599059101194, 0.04776043817400932, 0.05514536425471306, -0.04347778856754303, 0.010646144859492779, -0.04502449557185173, 0.033900197595357895, -0.019993195310235023, 0.01033540815114975, 0.043563466519117355, -0.03377358242869377, -0.02278287336230278, -0.01751895435154438, -0.021622536703944206, -0.035345226526260376, 0.021675955504179, -0.05356063321232796, -0.0741199478507042, -0.05970171093940735, -0.021764086559414864, 0.026946645230054855, -0.031448811292648315, 0.012632288970053196, 0.07860194146633148, -0.04937756434082985, 0.03478409722447395, -0.0402834489941597, -0.045674923807382584, 0.07740426063537598, 0.020223302766680717, 0.03286772221326828, -0.09813565015792847, 0.05738583952188492, -0.0622977651655674, -0.059419091790914536, 0.02353285439312458, 0.04769909381866455, -0.0014068875461816788, -0.016715481877326965, -0.05656014382839203, -0.05211152136325836, -0.07193365693092346, -0.0776841789484024, -0.05552108585834503, -0.029077373445034027, -0.03831425681710243, 0.013285014778375626, 0.054575640708208084, -0.0033095977269113064, 0.01473201997578144, -0.010565631091594696, -0.03191027045249939, -0.032212771475315094, 0.08321529626846313, -0.0002451706095598638, 0.03290596976876259, 0.02249055542051792, -0.003271205350756645, 0.090658999979496, 0.005252705421298742, -0.05700892582535744, -0.07748585194349289, 0.06404535472393036, 0.018231820315122604, 0.08227874338626862, -0.043531619012355804, -0.07079345732927322, 0.025464283302426338, -0.0381128154695034, 0.002130081644281745, -0.006493492983281612, -0.024182545021176338, 0.06262824684381485, -0.003743208711966872, -0.018012290820479393, -4.1066758171837137e-7, -0.04117764160037041, -0.02351360209286213, 0.135242760181427, 0.05933375284075737, 0.0509326308965683, 0.05544626712799072, 0.02478925883769989, 0.07978411018848419, -0.012786070816218853, -0.04937535151839256, 0.0017188922502100468, 0.007289324887096882, -0.05753985792398453, 0.016869233921170235, 0.0986127182841301, 0.036863792687654495, -0.09749352931976318, -0.017721576616168022, -0.017177639529109, 0.054732125252485275, -0.0022159914951771498, -0.014298956841230392, -0.027769584208726883, -0.009818055666983128, -0.008911466225981712, 0.13004666566848755, -0.05759013816714287, 0.025795312598347664, -0.024782681837677956, 0.02329569309949875, 0.017214050516486168, 0.045248936861753464, 0.04368706792593002, 0.07939513772726059, -0.009729452431201935, -0.014021172188222408, -0.06172356754541397, -0.02876167558133602, 0.027548298239707947, 0.05827848240733147, 0.023831238970160484, 0.057339075952768326, 0.035237714648246765, 0.037188075482845306, -0.047405682504177094, 0.02419700287282467, -0.005150341894477606, -0.030071277171373367, -0.05890386179089546, 0.042708057910203934, -0.04524409398436546, 0.05740058794617653, -0.020424233749508858, -0.008269960060715675, -0.04630519449710846, -0.052522238343954086, 0.007420632056891918, 0.004047897178679705, 0.018732724711298943, 0.05882815271615982, 0.008052987977862358, 0.00018819929391611367, -0.02467724308371544, -0.006178602110594511, 0.04005296900868416, 0.02971760742366314, -0.033698029816150665, 0.020349465310573578, -0.03005850873887539, 0.008694441989064217, -0.042326703667640686, -0.019884830340743065, 0.018602440133690834, -0.003790119430050254, -0.03680909052491188, -0.0053379652090370655, -0.02844594232738018, 0.008770628832280636, -0.005283356178551912, 0.029534582048654556, 0.016060808673501015, 0.042235471308231354, -0.000024793969714664854, -0.02986123599112034, -0.004301813431084156, 0.038211170583963394, -0.061690278351306915, 0.03505764156579971, 0.08140836656093597, -0.002389756729826331, -0.011778182350099087, -0.02694280818104744, -0.017764987424016, -0.06340071558952332, 0.009686452336609364, 0.03293982893228531, 0.000968665408436209, -0.0250968299806118, -0.024054305627942085, -0.03665050491690636, 0.009276259690523148, 0.007093737833201885, -0.0055316779762506485, -0.03216550126671791, 0.03447601944208145, -0.00635338481515646, 0.008202715776860714, -0.00964809488505125, -0.020319102331995964, 0.015131489373743534, 0.057914938777685165, 0.021279262378811836, 0.03665480017662048, -0.07442297041416168, -0.02025189809501171, -0.051172759383916855, 0.012477541342377663, -0.0327862910926342, -0.02518518455326557, 0.03307114914059639, 0.011870929971337318, 0.011750316247344017, 0.03044973872601986, 0.029264986515045166, 0.03369801491498947, 0.01637769304215908, -0.052311282604932785, -0.0026195731479674578, -0.031933512538671494, 0.027758944779634476, -0.010891999118030071, 0.013824183493852615, -0.008329711854457855, -0.016220150515437126, -0.01900150440633297, -0.003593257162719965, 0.010623746551573277, 0.00593969551846385, -0.03421095386147499, 0.034600649029016495, -0.03337611258029938, -0.022220779210329056, -0.04462318867444992, -0.009050864726305008, -0.005820795428007841, 0.005706971976906061, -0.058516424149274826, -0.04846496507525444, 0.01772807165980339, -0.04643237218260765, -0.03866276144981384, 0.032058022916316986, 0.010763992555439472, -0.010545194149017334, 0.027300793677568436, -0.0071009001694619656, -0.03236526995897293, 0.04578174278140068, -0.02204689383506775, 0.036839842796325684, 0.003339867340400815, 0.009926620870828629, -0.03521149605512619, -0.002135486574843526, -0.011481501162052155, 0.0054878597147762775, 0.06708213686943054, -0.027732882648706436, 0.018797222524881363, -0.022694338113069534, 0.0320088267326355, 0.016371048986911774, 0.010764279402792454, -0.08795855939388275, -0.005729059688746929, 0.00711145531386137, -0.023610277101397514, -0.040003545582294464, 0.03911106288433075, 0.052642952650785446, -0.058945320546627045, -0.023672016337513924, -0.007977619767189026, -0.01116484496742487, 0.06413280963897705, 0.02391531504690647, 0.006469554267823696, -0.036476559937000275, -0.014245495200157166, -0.014945910312235355, -0.017635677009820938, 0.031660836189985275, 0.007371794432401657, 0.007350585423409939, 0.006603163201361895, 0.007808451075106859, 0.0020675119012594223, 0.02460772916674614, 0.007778176572173834, -0.024154864251613617, 0.010236774571239948, 0.029609428718686104, 0.05245278775691986, -0.014626973308622837, -0.06292174756526947, 0.008376621641218662, -0.034372515976428986, 0.009178314357995987, 0.010246257297694683, 0.018741222098469734, 0.02544940821826458, 0.0010050763376057148, -0.007735289167612791, 0.01744368113577366, -0.057566799223423004, 0.028420090675354004, -0.023766692727804184, -0.017585672438144684, 0.00978390034288168, 0.021734895184636116, -0.005384580697864294, 0.01202077604830265, 0.007767093367874622, 0.018871501088142395, -0.035364650189876556, 0.012368196621537209, -0.01971830055117607, 0.058182306587696075, -0.005999045912176371, 0.016421230509877205, -0.012705320492386818, -0.004774244036525488, -0.017254715785384178, 0.020503224804997444, 0.012912285514175892, 0.008751924149692059, -0.0011863558320328593, 0.04621748626232147, 0.012045192532241344, 0.03689590096473694, 0.015270923264324665, 0.02665451541543007, -0.029891792684793472, -0.005830076523125172, 0.02569180354475975, 0.05661848932504654, 0.02216186374425888, 0.01302819512784481, -0.04441434144973755, -0.01046142727136612, 0.007926272228360176, -0.01035164576023817, -0.03241350129246712, -0.00617489917203784, 0.06397953629493713, 0.039239607751369476, -0.02074650675058365, 0.041422612965106964, 0.012543682008981705, -0.016879258677363396, -0.0030263401567935944, -0.0546070896089077, 0.019805243238806725, -0.035487089306116104, -0.03776276484131813, -0.01417071744799614, 0.032865073531866074, 0.04574689641594887, -0.016099750995635986, -0.01230527926236391, -0.0030845655128359795, 0.023026905953884125, 0.013254569843411446, 0.02496298775076866, 0.03392859920859337, -0.010600397363305092, -0.0434742197394371, 0.013709182851016521, 0.013643207959830761, -0.03013666160404682, -0.04278584569692612, -0.05620220676064491, -0.008835863322019577, -0.028338925912976265, -0.013867752626538277, 0.010723783634603024, -0.01391940750181675, 0.01844043843448162, 0.03611026704311371, 0.052737072110176086, 0.02148793637752533, -0.018977636471390724, 0.010820138268172741, 0.007260601967573166, 0.0011405296390876174, 0.0348861962556839, -0.008358544670045376, 0.030926402658224106, -0.0019547143019735813, 0.06947723776102066, 0.0602966845035553, -0.017644481733441353, -0.0028763434384018183, -0.00946525577455759, 0.01908714324235916, 0.018856266513466835, -0.029204702004790306, -0.02225446328520775, -0.0438501313328743, 0.012289070524275303, 0.03813543915748596, 0.04189392551779747, -0.01652286760509014, 0.009132579900324345, 0.01007635798305273, -0.05916658788919449, -0.00976555235683918, 0.021554773673415184, -0.01471646223217249, 0.025363605469465256, -0.010010233148932457, 0.04554006829857826, 0.02051568031311035, 0.01818077825009823, -0.006930710282176733, -0.009825377725064754, 0.011736973188817501, -0.04495592042803764, -0.02860289067029953, -0.05692971870303154, 0.05919113755226135, 0.040383078157901764, 0.0008780693751759827, -0.020599331706762314, -0.01674407720565796, 0.01883259043097496, -0.04828088730573654, 0.0036091702058911324, -0.006098010577261448, 0.01392942015081644, -0.019081076607108116, -0.019165951758623123, 0.021175935864448547, 0.025253035128116608, 0.002819591900333762, 0.026322558522224426, 0.0010443100472912192, 0.009054113179445267, -0.000426370941568166, -0.005986982025206089, 0.0345950685441494, -0.00405837781727314, 0.014367171563208103, 0.005080642644315958, -0.03898265212774277, -0.002748992061242461, -0.018315669149160385, -0.014033974148333073, 0.02705354243516922, 0.026094036176800728, 0.002026100642979145, 0.024648403748869896, -0.013354402035474777, 0.03625519573688507, 0.014630582183599472, -0.0007568362052552402, -0.023835953325033188, 0.003285030135884881, 0.02496412768959999, 0.03227772191166878, -0.006819300819188356, -0.003771070623770356, -0.03189973905682564, -0.006104357540607452, -0.08640801906585693, 0.02246033027768135, 0.04719247296452522, -0.03733840957283974, 0.014657620340585709, -0.0022033106070011854, 0.009939486160874367, 0.04614568501710892, 0.010014663450419903, 0.009201711975038052, 0.03442579135298729, 0.014684638939797878, 0.006248934660106897, -0.036612361669540405, -0.0048668463714420795, 0.03330489248037338, 0.0684758797287941, 0.0011776827741414309, -0.03657551109790802, 0.016943149268627167, 0.04346565529704094, 0.042897291481494904, -0.013642431236803532, 0.030730903148651123, -0.02290588989853859, 0.04097713157534599, 0.005318878218531609, 0.051377955824136734, 0.05107128247618675, -0.003847819287329912, 0.0013486185343936086, -0.0025303985457867384, -0.008485828526318073, -0.0003236115735489875, 0.012014678679406643, 0.02201109752058983, -0.026264913380146027, 0.043203406035900116, -0.048174601048231125, 0.044969845563173294, 0.052083875983953476, 0.0003549003158695996, 0.005711250007152557, 0.04013175889849663, 0.03175615519285202, 0.03564712032675743, 0.028258997946977615, 0.012936772778630257, 0.031873513013124466, -0.013628429733216763, 0.04083653539419174, 0.04087984189391136, 0.04831559956073761, 0.03295078128576279, 0.03328306972980499, -0.01318034902215004, -0.007746018934994936, -0.01954769343137741, 0.0174917820841074, -0.0056995307095348835, -0.00046669229050166905, -0.02976124919950962, -0.017737403512001038, -0.019733410328626633, 0.024964656680822372, 0.004762996919453144, -0.01327528990805149, -0.002775974106043577, 0.013197686523199081, -0.026797112077474594, 0.035546060651540756, 0.010441549122333527, -0.002940766979008913, 0.023966355249285698, -0.009861177764832973, -0.044714100658893585, 0.0073062046431005, -0.06846728175878525, -0.017912717536091805, -0.008876342326402664, -0.01479814201593399, -0.027092857286334038, 0.04509328678250313, -0.004838853143155575, -0.0023918605875223875, 0.0361265204846859, 0.03595948591828346, 0.014357338659465313, 0.01069441344588995, 0.030743442475795746, 0.037835024297237396, -0.029396919533610344, -0.024575375020503998, 0.020430782809853554, -0.04730596765875816, -0.012378895655274391, -0.04423748701810837, 0.020482778549194336, -0.03911853954195976, -0.026374805718660355, -0.014379296451807022, 0.05728264898061752, -0.03041199781000614, -0.015140335075557232, 0.00733689172193408, -0.03920571878552437, 0.003611047752201557, 0.0295295137912035, -0.01279089692980051, -0.0433952622115612, -0.023195253685116768, 0.02442474290728569, 0.018577056005597115, -0.004076014272868633, 0.020403703674674034, 0.05604325234889984, 0.004634036682546139, -0.04549969360232353, 0.032895926386117935, 0.05934605002403259, 0.005221209488809109, 0.05099957436323166, 0.04266330227255821, -0.022897537797689438, 0.0038309521041810513, -0.006647969596087933, -0.025621913373470306, -0.050529882311820984, 0.03191594406962395, -0.01628773845732212, 0.010147257708013058, -0.029344039037823677, -0.03409557789564133, 0.011326362378895283, 0.04641011729836464, 0.006469973362982273, -0.010758766904473305, 0.003451756201684475, 0.007949710823595524, -0.00747726671397686, 0.03485208749771118, 0.04889029636979103, 0.03267468884587288, 0.023946773260831833, 0.0015248577110469341, -0.027052802965044975, 0.00894222129136324, 0.01594596542418003, -0.0007958554779179394, 0.07872208952903748, -0.023193083703517914, -0.022521866485476494, -0.023162463679909706, -0.04372513294219971, 0.036093149334192276, -0.036463793367147446, 0.012807023711502552, -0.008293302729725838, -0.032744813710451126, 0.012381008826196194, -0.005713769234716892, 0.04624371975660324, 0.007702858652919531, 0.015674017369747162, -0.018209490925073624, 0.0175822451710701, -0.010285587050020695, -0.0055593871511518955, -0.028258750215172768, -0.020226040855050087, -0.006387272849678993, 0.007772020064294338, 0.007430306635797024, -0.03541183844208717, 0.0015474528772756457, -0.02739746682345867, 0.0022334186360239983, 0.008217375725507736, -0.02883446216583252, -0.026505421847105026, -0.011853266507387161, -0.027396416291594505, 0.023654814809560776, 0.003497327910736203, -0.05704402178525925, -0.02598067745566368, -0.022408651188015938, -0.02391078695654869, 0.049743976444005966, -0.059227388352155685, -0.03853413462638855, 0.010152616538107395, 0.008058258332312107, 0.011407561600208282, 0.08031715452671051, 0.0876355916261673, -0.030229099094867706, -0.03136231377720833, -0.010825668461620808 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
From StarCoder to SafeCoder At the core of the SafeCoder solution is the StarCoder family of Code LLMs, created by the BigCode project, a collaboration between Hugging Face, ServiceNow and the open source community. The StarCoder models offer unique characteristics ideally suited to enterprise self-hosted solution: - State of the art code completion results - see benchmarks in the paper and multilingual code evaluation leaderboard - Designed for inference performance: a 15B parameters model with code optimizations, Multi-Query Attention for reduced memory footprint, and Flash Attention to scale to 8,192 tokens context. - Trained on the Stack, an ethically sourced, open source code dataset containing only commercially permissible licensed code, with a developer opt-out mechanism from the get-go, refined through intensive PII removal and deduplication efforts. Note: While StarCoder is the inspiration and model powering the initial version of SafeCoder, an important benefit of building a LLM solution upon open source models is that it can adapt to the latest and greatest open source models available. In the future, SafeCoder may offer other similarly commercially permissible open source models built upon ethically sourced and transparent datasets as the base LLM available for fine-tuning.
[ -0.02816150337457657, -0.0006567038944922388, 0.05313549563288689, -0.01609279401600361, 0.009600760415196419, 0.05938977748155594, 0.022278815507888794, 0.0034727922175079584, -0.02126433700323105, 0.006624168716371059, -0.1036190465092659, 0.042062513530254364, -0.020506519824266434, 0.022629663348197937, 0.022700877860188484, 0.0005259180325083435, 0.030720578506588936, 0.031078897416591644, -0.018867308273911476, -0.01170285139232874, 0.018244264647364616, -0.045155566185712814, 0.007535761222243309, -0.08142419904470444, -0.052377209067344666, 0.011059408076107502, -0.028618035838007927, 0.008931328542530537, -0.035701461136341095, 0.044878676533699036, -0.019558539614081383, -0.015583090484142303, -0.032676540315151215, -0.028929034247994423, 0.027175582945346832, 0.018734734505414963, -0.1112712025642395, 0.08244055509567261, -0.06031816080212593, -0.03186648711562157, 0.006071112118661404, -0.03826645016670227, -0.07198986411094666, 0.002627912675961852, 0.016994750127196312, -0.00964538287371397, -0.15052038431167603, 0.06315261870622635, -0.01646360196173191, 0.009524577297270298, -0.025820927694439888, 0.046780750155448914, 0.022042492404580116, 0.01576118730008602, 0.06384260952472687, -0.01859695464372635, 0.06335423141717911, -0.05910236015915871, -0.0010036211460828781, 0.0015681092627346516, -0.0022284898441284895, -0.07494789361953735, 0.026491638273000717, -0.055883824825286865, 0.06029312312602997, 0.023349612951278687, -0.05822359398007393, -0.03707987442612648, -0.008321015164256096, -0.009076620452105999, 0.021683113649487495, 0.02967073582112789, -0.08806544542312622, 0.0032914229668676853, -0.04193665832281113, -0.07515957951545715, -0.023619718849658966, 0.054234229028224945, 0.03674272447824478, -0.05491902306675911, 0.007923961617052555, 0.029868291690945625, 0.015915701165795326, 0.0413924977183342, -0.029494524002075195, 0.0648573786020279, -0.0375918447971344, -0.09851058572530746, -0.04006629064679146, -0.0010133844334632158, -0.0434262789785862, -0.08228395879268646, 0.030476851388812065, 0.0345827117562294, 0.03793834522366524, 0.016749991104006767, 0.0059959860518574715, -0.017786826938390732, 0.001473693992011249, 0.002078512217849493, -0.0508996844291687, -0.024761585518717766, -0.03298419713973999, -0.07253940403461456, -0.016765234991908073, 0.00292656640522182, -0.003945600241422653, -0.045282501727342606, -0.018891265615820885, 0.018460584804415703, 0.0548621229827404, -0.006655528210103512, -0.06271294504404068, 0.0677519366145134, -0.13958129286766052, 0.032575588673353195, -0.0018948077922686934, -0.08669468015432358, 0.03139623627066612, 0.017721807584166527, -0.037249330431222916, 0.03090035729110241, -0.050303515046834946, -0.04864969477057457, 0.04532041773200035, 0.06855767965316772, -0.017224043607711792, 0.013541920110583305, 0.017991844564676285, -0.02980618178844452, 0.013083579018712044, 0.0030894065275788307, -0.014999044127762318, -0.05645421892404556, 0.010974087752401829, 0.0012053794926032424, -0.011789362877607346, -0.023357465863227844, -0.005899579264223576, 0.030376479029655457, -0.03269552066922188, 0.06139099597930908, 0.03709064796566963, -0.041208796203136444, 0.0430372878909111, -0.02023838274180889, -0.07887545228004456, 0.07242123037576675, 0.033896949142217636, 0.007722628768533468, -0.026781732216477394, 0.029217056930065155, 0.012682603672146797, -0.07120410352945328, 0.010751891881227493, 0.006937050726264715, -0.023396633565425873, -0.003640224225819111, -0.011850837618112564, 0.08474212884902954, -0.009663835167884827, 0.0014619581634178758, -0.1238543689250946, -0.010169011540710926, 0.011112972162663937, -0.04966870695352554, -0.027284851297736168, 0.02932928316295147, -0.029611660167574883, 0.046561162918806076, -0.013361492194235325, 0.028091594576835632, 0.06031009182333946, -0.06571519374847412, 0.03750110790133476, 0.017528779804706573, 0.08071230351924896, 0.04904763773083687, 0.030849231407046318, -0.030256034806370735, -0.07831038534641266, 0.002303983550518751, 0.0032859097700566053, 0.030061637982726097, 0.014834285713732243, -0.09642088413238525, 0.05339423939585686, -0.07294333726167679, -0.046629320830106735, -0.03467966988682747, -0.07769819349050522, 0.05242465063929558, 0.0870550125837326, -0.017842451110482216, -0.004463232588022947, -0.012688690796494484, -0.03879586234688759, 0.12884631752967834, 0.04762319102883339, 0.05680282786488533, 0.045087575912475586, 0.03166891261935234, 0.018647203221917152, -0.02992013283073902, -0.004858247935771942, 0.03380385413765907, 0.01140210684388876, 0.005056444089859724, 0.06331674009561539, 0.01519592572003603, 0.08540516346693039, -0.10625448077917099, -0.016203738749027252, 0.0027337423525750637, 0.018041597679257393, -0.038057927042245865, -0.0504329651594162, 0.00786855909973383, 0.06595876812934875, 0.01946389116346836, 0.19868826866149902, -0.10285118222236633, -0.005004388280212879, -0.02583824098110199, -0.02498290315270424, 0.05214451253414154, 0.055238720029592514, 0.03457840532064438, 0.05882086232304573, -0.05557049810886383, 0.005329711362719536, -0.07529488205909729, 0.003916021902114153, 0.030651522800326347, 0.0513840951025486, -0.0248720683157444, 0.03230893239378929, -0.01463290024548769, 0.012895885854959488, -0.007572463247925043, -0.004621059168130159, -0.004380833823233843, -0.01372508704662323, -0.004724019207060337, -0.0017625725595280528, -0.0285409614443779, 0.05649961903691292, -0.037292324006557465, 0.03042864054441452, 0.03135793283581734, -0.062486432492733, 0.03832559660077095, -0.007356162648648024, -0.010004721581935883, 0.08423376828432083, -0.02829076535999775, -0.028113728389143944, 0.0045077684335410595, -0.057792529463768005, 0.02140013501048088, 0.024438461288809776, 0.00792928971350193, -0.04129965230822563, -0.024398308247327805, -0.002035330282524228, -0.003163559827953577, -0.03502155840396881, 0.052934274077415466, -0.03254286199808121, 0.0010337649146094918, 0.002088075503706932, -0.005904478020966053, 0.01586581952869892, -0.0019212070619687438, 0.024554913863539696, 0.03842760622501373, 0.03397032245993614, -0.044833954423666, -0.032113876193761826, -0.04223689064383507, 0.050614770501852036, -0.01763073168694973, 0.03929680958390236, 0.04111277312040329, 0.03815808147192001, 0.0191360954195261, -0.02246001735329628, -0.024384422227740288, -0.04856434836983681, 0.05055207014083862, 0.022081051021814346, 0.04112929105758667, -0.02928629145026207, -0.013316281139850616, -0.054658349603414536, 0.004275794606655836, 0.004674637224525213, -0.00875150877982378, -0.056888312101364136, -0.009918971918523312, -0.029261089861392975, 0.014129049144685268, 0.03279440477490425, 0.011272734962403774, 0.004026161972433329, 0.04527049511671066, -0.008821133524179459, 0.01177910715341568, -0.0851350873708725, -0.011134146712720394, -0.07022161781787872, -0.020031781867146492, 0.025431575253605843, -0.018861403688788414, 0.0819569006562233, -0.04403434693813324, -0.008414902724325657, 0.05040430277585983, -0.00033951920340768993, 0.018595075234770775, 0.060257136821746826, -0.002770207589492202, 0.0037876637652516365, 0.002045633736997843, -0.044927116483449936, 0.014319078996777534, 0.026269052177667618, 0.0192754827439785, 0.005517723970115185, 0.015924938023090363, -0.03490039333701134, 0.005356465000659227, -0.0085073783993721, -0.02168836072087288, 0.021915877237915993, -0.018829498440027237, -0.02102268673479557, 0.01570608839392662, 0.011738615110516548, 0.016577791422605515, 0.005210365634411573, -0.0380188412964344, -0.055917151272296906, 0.012462474405765533, 0.023176945745944977, -0.028951412066817284, 0.027160299941897392, 0.012259303592145443, 0.004382407292723656, -0.021619733422994614, -0.011249992065131664, -0.038457538932561874, 0.029370374977588654, -0.020751358941197395, 0.003218994941562414, -0.007498683873564005, 0.034562524408102036, -0.03695186972618103, -0.010918958112597466, -0.0017393453745171428, 0.003906829282641411, 0.06809812784194946, -0.014418136328458786, -0.02207517810165882, -0.006761184893548489, -0.015825405716896057, -0.018016785383224487, 0.03767009824514389, -0.04425802081823349, 0.05059811472892761, -0.04774002730846405, -0.03698638826608658, 0.003822112223133445, 0.04363734647631645, 0.03856031969189644, -0.050733186304569244, -0.06059083715081215, 0.048307839781045914, 0.006403285078704357, 0.0599285252392292, -0.021821506321430206, -0.008980005979537964, -0.01710926741361618, 0.008095771074295044, 0.008597991429269314, -0.03014034777879715, 0.040034983307123184, 0.03552564978599548, 0.009335152804851532, -0.007633008528500795, -0.011927264742553234, 0.00914033968001604, 0.025880489498376846, 0.01791788637638092, 0.037958208471536636, 0.019553804770112038, 0.002753127133473754, 0.012074719183146954, -0.011256948113441467, -0.035212576389312744, -0.00664872583001852, 0.02109895646572113, 0.008631784468889236, 0.014891326427459717, -0.027654966339468956, 0.022042715921998024, 0.002953948685899377, 0.005712204612791538, 0.06075271964073181, -0.03012959472835064, -0.0014319699257612228, -0.03555569797754288, -0.013819177635014057, 0.050055939704179764, -0.02668233960866928, 0.0024582818150520325, 0.0326882004737854, 0.0023843736853450537, -0.02592109888792038, -0.03847969323396683, 0.008177381940186024, -0.013682134449481964, 0.019103001803159714, -0.029656602069735527, -0.020159849897027016, -0.0023480502422899008, 0.009463879279792309, 0.012352009303867817, -0.0016602271934971213, -0.016243338584899902, 0.02696821838617325, -0.015870241448283195, 0.04756126180291176, -0.014515991322696209, 0.011698944494128227, -0.018995920196175575, 0.01568526402115822, -0.02632928639650345, -0.056338585913181305, 0.009285069070756435, 0.029588351026177406, -0.014657076448202133, 0.007732762489467859, 0.016493218019604683, -0.033642131835222244, 0.042416926473379135, 0.003480119165033102, -0.04279147461056709, -0.020459581166505814, 0.026447376236319542, -0.02845275029540062, -0.0050325230695307255, 0.047869108617305756, -0.02694251574575901, 0.010666766203939915, -0.02289997972548008, 0.00953859556466341, 0.036719225347042084, 0.012554042041301727, -0.006107223220169544, 0.0034619676880538464, 0.009644346311688423, 0.062183234840631485, -0.05463600531220436, -0.004972066264599562, 0.022502657026052475, 0.036824725568294525, 0.024851279333233833, 0.010505388490855694, 0.02662125788629055, -0.03976954147219658, -0.015588182955980301, 0.025263728573918343, 0.009086266160011292, 0.011777033098042011, -0.0001956894702743739, -0.012884705327451229, 0.009139900095760822, -0.011206354945898056, 0.03158175200223923, 0.027665212750434875, 0.02770937792956829, -0.04245763644576073, 0.02090637758374214, 0.05214035511016846, 0.0025097038596868515, -0.03647569939494133, 0.031865861266851425, -0.024533109739422798, 0.014676852151751518, 0.03889141604304314, 0.016298098489642143, 0.03544311970472336, 0.015606086701154709, 0.08350463211536407, 0.02863594889640808, -0.023513441905379295, -0.016279209405183792, -0.03341897204518318, -0.0033615671563893557, 0.015581932850182056, -0.012674093246459961, 0.015139014460146427, -0.0334564708173275, -0.009621881879866123, 0.0438145250082016, -0.011569171212613583, 0.013084087520837784, 0.00440842192620039, 0.04860788583755493, -0.06905604153871536, -0.014735552482306957, 0.00856077205389738, -0.061177678406238556, 0.01714322529733181, -0.016447296366095543, 0.023078640922904015, -0.030154841020703316, 0.012435467913746834, -0.010162628255784512, -0.02922411449253559, 0.004646401386708021, 0.006417077966034412, -0.039474863559007645, -0.033896297216415405, 0.022704828530550003, 0.017494061961770058, -0.001872289925813675, 0.013966770842671394, 0.006503304932266474, -0.012829792685806751, -0.008994811214506626, 0.02725394070148468, -0.029551800340414047, 0.02121669054031372, 0.01764020510017872, 0.006573717575520277, -0.017713209614157677, 0.04962914064526558, 0.022646544501185417, -0.011522820219397545, -0.03765108436346054, 0.005803050473332405, -0.0106129115447402, -0.012526416219770908, -0.003691416932269931, -0.01238249521702528, 0.0012166062369942665, 0.008756347000598907, -0.02784346602857113, -0.0022493938449770212, -0.020804891362786293, -0.059795089066028595, 0.04847312346100807, 0.054103024303913116, -0.024830665439367294, -0.005087736994028091, 0.015934381633996964, 0.058350060135126114, 0.021185310557484627, 0.0020081200636923313, 0.004664270672947168, 0.016330093145370483, 0.03144253417849541, 0.0801466554403305, -0.0030172569677233696, -0.009202375076711178, -0.055606380105018616, -0.014337926171720028, -0.0626666247844696, 0.016733955591917038, 0.0661422461271286, -0.04076556861400604, 0.004190597217530012, 0.027957938611507416, -0.018165621906518936, 0.04520836099982262, -0.042522914707660675, 0.021756652742624283, 0.009494180791079998, 0.01327461376786232, -0.028846226632595062, -0.008575286716222763, -0.023464595898985863, 0.041636720299720764, 0.07513222098350525, 0.034969840198755264, 0.012247750535607338, 0.023365220054984093, 0.02261173352599144, 0.05350706726312637, -0.008644837886095047, 0.03196021541953087, -0.015307014808058739, 0.005436787847429514, 0.05019884929060936, 0.019513720646500587, 0.05170195922255516, -0.06286144256591797, 0.007486542221158743, -0.015321892686188221, 0.03701874613761902, -0.05099545046687126, -0.04398258775472641, 0.007935469038784504, -0.040155038237571716, 0.014826521277427673, -0.04643440619111061, 0.059827420860528946, 0.018961384892463684, 0.0024577577132731676, 0.02559615671634674, 0.020701579749584198, 0.024782229214906693, 0.025802314281463623, 0.009948472492396832, 0.07281294465065002, 0.04691606014966965, 0.0005243007326498628, 0.048689160495996475, 0.023423299193382263, 0.01657877117395401, 0.014671762473881245, -0.011806627735495567, 0.010090167634189129, -0.01179787702858448, 0.004481898155063391, 0.004647337831556797, -0.03803859278559685, -0.001609165919944644, -0.03797854855656624, 0.026282954961061478, -0.03073025867342949, 0.00658846041187644, 0.02458951063454151, -0.0016306304605677724, -0.03125322610139847, 0.010798363015055656, -0.011589559726417065, 0.022431306540966034, -0.0006055546691641212, 0.007753416895866394, -0.02848665975034237, -0.01572033204138279, -0.011732932180166245, 0.03982064500451088, -0.05108918994665146, -0.009566016495227814, -0.012684214860200882, -0.0017860977677628398, -0.034664336591959, 0.04686663672327995, -0.007792695425450802, 0.0023783149663358927, 0.04542561247944832, -0.014954452402889729, -0.005193816497921944, -0.006654923316091299, 0.008906417526304722, 0.0020113689824938774, -0.051860261708498, -0.01949542947113514, -0.006130036432296038, -0.016171174123883247, -0.035462021827697754, 0.011455166153609753, 0.011670844629406929, -0.00994110107421875, -0.010263769887387753, -0.004818425979465246, 0.09800783544778824, 0.004527979996055365, -0.04315819591283798, -0.018820572644472122, 0.007059301249682903, 0.030330562964081764, 0.047117773443460464, -0.019952159374952316, 0.00938537996262312, -0.006408861838281155, 0.022879144176840782, 0.03297558054327965, -0.025247741490602493, 0.0031586678232997656, 0.060817260295152664, 0.04800025373697281, -0.01605004444718361, 0.0277622751891613, 0.0471530482172966, 0.04731026291847229, 0.06706786155700684, 0.05153927952051163, 0.003778137732297182, 0.030473245307803154, -0.035808756947517395, -0.016126645728945732, 0.009926498867571354, 0.03314592316746712, -0.018831152468919754, -0.028502874076366425, -0.012720946222543716, -0.0017714345594868064, 0.01562858559191227, 0.048289705067873, 0.00726355379447341, -0.011853284202516079, 0.01890420913696289, 0.0031060287728905678, -0.0457313247025013, 0.017861545085906982, 0.000728273531422019, -0.042961254715919495, -0.024188030511140823, 0.010697816498577595, -0.001875669346190989, 0.0533817894756794, 0.003090442391112447, 0.0059791929088532925, 0.024529607966542244, -0.006791089195758104, -0.024379124864935875, -0.022342372685670853, -0.012749542482197285, 0.0027942804154008627, -0.024058762937784195, 0.005036866758018732, -0.0027025409508496523, -0.04431990534067154, -0.0018879142589867115, 0.03572502359747887, 0.04707275331020355, -0.0010755484690889716, 0.014167855493724346, -0.023730508983135223, -0.004954615607857704, 0.02250971458852291, -0.006670479197055101, -0.029485512524843216, -0.007186111528426409, 0.001988158095628023, -0.01989428699016571, 0.017290521413087845, -0.015087124891579151, 0.01048270147293806, -0.03152938932180405, 0.056043658405542374, -0.0318087600171566, -0.0013413294218480587, -0.032257694751024246, 0.026772446930408478, 0.011011535301804543, -0.007294533308595419, 0.023387419059872627, -0.018919644877314568, 0.0253656804561615, 0.031621746718883514, -0.00996499601751566, 0.007531294133514166, -0.05347795411944389, -0.041021622717380524, -0.010996059514582157, 0.01631201058626175, -0.001957857981324196, 0.03868313506245613, 0.028830626979470253, -0.011939612217247486, -0.02510690689086914, -0.011926216073334217 ]
Introducing SafeCoder
jeffboudier
August 22, 2023
safecoder
announcement, partnerships, vmware, bigcode
https://huggingface.co/blog/safecoder
How can I get SafeCoder? Today, we are announcing SafeCoder in collaboration with VMware at the VMware Explore conference and making SafeCoder available to VMware enterprise customers. Working with VMware helps ensure the deployment of SafeCoder on customers’ VMware Cloud infrastructure is successful – whichever cloud, on-premises or hybrid infrastructure scenario is preferred by the customer. In addition to utilizing SafeCoder, VMware has published a reference architecture with code samples to enable the fastest possible time-to-value when deploying and operating SafeCoder on VMware infrastructure. VMware’s Private AI Reference Architecture makes it easy for organizations to quickly leverage popular open source projects such as ray and kubeflow to deploy AI services adjacent to their private datasets, while working with Hugging Face to ensure that organizations maintain the flexibility to take advantage of the latest and greatest in open-source models. This is all without tradeoffs in total cost of ownership or performance. “Our collaboration with Hugging Face around SafeCoder fully aligns to VMware’s goal of enabling customer choice of solutions while maintaining privacy and control of their business data. In fact, we have been running SafeCoder internally for months and have seen excellent results. Best of all, our collaboration with Hugging Face is just getting started, and I’m excited to take our solution to our hundreds of thousands of customers worldwide,” says Chris Wolf, Vice President of VMware AI Labs. Learn more about private AI and VMware’s differentiation in this emerging space here. --- If you’re interested in SafeCoder for your company, please contact us here - our team will contact you to discuss your requirements!
[ 0.008119001053273678, -0.018557941541075706, 0.08396165817975998, 0.04614461213350296, 0.011576510034501553, 0.04050295799970627, 0.06873466819524765, -0.04063519090414047, -0.042129699140787125, -0.03455173596739769, -0.0949777290225029, 0.0513138622045517, -0.034786537289619446, 0.05759797990322113, -0.01284740213304758, -0.07050009071826935, 0.05559388920664787, 0.010201980359852314, 0.014479120261967182, -0.016575206071138382, -0.032917141914367676, -0.06203363463282585, -0.008290986530482769, -0.05437878146767616, -0.03503904864192009, -0.03923548012971878, -0.020737923681735992, -0.012875068932771683, -0.03277214989066124, 0.00761771947145462, -0.02662425860762596, 0.03448910266160965, 0.0188718531280756, -0.04134929180145264, 0.04867712780833244, 0.09133891761302948, -0.07402247935533524, 0.06621728092432022, -0.015952402725815773, 0.026544950902462006, 0.04443095624446869, -0.042019713670015335, -0.053077131509780884, 0.027004512026906013, 0.03924740478396416, -0.05042546987533569, -0.1248834952712059, 0.049876753240823746, -0.0576229989528656, 0.017632724717259407, -0.05858164280653, 0.016294386237859726, 0.016617313027381897, -0.004793286789208651, 0.0515303798019886, 0.021400008350610733, -0.02282058075070381, -0.08507579565048218, -0.018242890015244484, -0.025468576699495316, 0.024582477286458015, -0.05578351765871048, -0.029096081852912903, -0.005446513649076223, 0.03844137489795685, 0.039052192121744156, -0.022164665162563324, -0.04744387045502663, 0.04484618827700615, -0.04466673359274864, 0.01569192297756672, -0.015435836277902126, 0.0019088706467300653, 0.018495731055736542, 0.0005557044642046094, -0.07867395132780075, -0.02168126218020916, 0.046442076563835144, 0.06456346809864044, 0.0033165719360113144, 0.009628154337406158, -0.005820907186716795, -0.0021376332733780146, -0.010907502844929695, 0.028393331915140152, 0.037336867302656174, -0.008629975840449333, -0.0629618838429451, -0.03080575354397297, 0.02835647203028202, 0.01640683226287365, -0.09891616553068161, -0.05664999037981033, 0.006764612160623074, 0.0012503544567152858, -0.006430100649595261, -0.00393528351560235, 0.021660955622792244, 0.023543737828731537, 0.00783889926970005, -0.05061966925859451, -0.017622463405132294, -0.031399961560964584, -0.05466776713728905, -0.01457956526428461, 0.006380750797688961, 0.009886183775961399, -0.0866454616189003, -0.02813747152686119, 0.01960112527012825, 0.03496827185153961, -0.016844570636749268, -0.046635180711746216, 0.08691829442977905, -0.15541651844978333, 0.050562091171741486, 0.02003282681107521, -0.06003483012318611, 0.051010504364967346, 0.003851713612675667, 0.021822143346071243, 0.09149804711341858, -0.007975191809237003, 0.0035369943361729383, -0.06467894464731216, 0.027762532234191895, -0.05621148273348808, 0.02070753090083599, 0.01513692643493414, -0.023845791816711426, -0.0028922937344759703, -0.008786844089627266, 0.044226743280887604, -0.031769827008247375, 0.04628804698586464, 0.0052931043319404125, -0.06746682524681091, -0.017154134809970856, -0.012291734106838703, -0.020411306992173195, -0.01649218052625656, 0.008631313219666481, 0.07056601345539093, -0.014281370677053928, 0.07038618624210358, 0.008567078039050102, -0.11331195384263992, 0.05847686156630516, -0.015639109537005424, 0.04519202560186386, -0.038628872483968735, 0.05637410655617714, -0.015423287637531757, -0.04575992375612259, -0.0019332069205120206, 0.05614825338125229, -0.01126846857368946, -0.000033487885957583785, -0.004327912349253893, -0.02046731300652027, -0.04257313907146454, -0.0114519651979208, -0.10339991748332977, 0.02250932715833187, -0.011715471744537354, -0.048553332686424255, 0.01648346707224846, -0.010085927322506905, -0.03504557907581329, 0.030238255858421326, -0.0028354041278362274, -0.03766089677810669, 0.09664534032344818, -0.02999359555542469, 0.06304647773504257, 0.06775085628032684, 0.05541718006134033, 0.10466944426298141, 0.05843709409236908, -0.07606444507837296, -0.05855489522218704, 0.03343741223216057, 0.01176941953599453, 0.040533654391765594, -0.022390833124518394, -0.1000499278306961, 0.03685568645596504, -0.10447803884744644, 0.021624648943543434, 0.030210595577955246, -0.031868238002061844, 0.02328600361943245, 0.05002785474061966, -0.032057542353868484, -0.052382368594408035, -0.017129218205809593, -0.0029497735667973757, 0.1367878019809723, -0.008507516235113144, 0.0436914786696434, 0.029702046886086464, -0.007586427964270115, 0.043808288872241974, -0.0459451787173748, -0.06039036810398102, 0.02240901254117489, 0.02485845424234867, -0.05096496641635895, -0.006984774023294449, 0.051778644323349, 0.03854205459356308, -0.07038851082324982, -0.016835791990160942, -0.0265345461666584, 0.08439522236585617, 0.011176764965057373, -0.07640986889600754, -0.0014735407894477248, -0.02361171320080757, -0.014093398116528988, 0.15954966843128204, -0.021345550194382668, -0.020313788205385208, 0.04287591576576233, -0.005833629984408617, 0.05162873864173889, 0.057626355439424515, 0.03946531563997269, 0.08920619636774063, -0.013332761824131012, -0.06607268005609512, -0.0658780187368393, -0.03449990972876549, -0.023972162976861, 0.0449681393802166, 0.017244437709450722, 0.04362471029162407, 0.005936312954872847, 0.010890968143939972, -0.015477990731596947, -0.009833728894591331, -0.06619878113269806, -0.0017269044183194637, 0.004266597796231508, -0.008693130686879158, 0.001887889695353806, 0.09562037140130997, -0.020882699638605118, -0.0009569677640683949, 0.014177639037370682, -0.06837443262338638, 0.026325171813368797, -0.006574760191142559, 0.00493896659463644, 0.07717865705490112, 0.012124553322792053, -0.030540917068719864, -0.012225620448589325, -0.04534045234322548, -0.0010173608316108584, 0.008958091959357262, -0.031198929995298386, -0.014898073859512806, -0.03448675572872162, 0.015712985768914223, -0.029462184756994247, -0.03361062705516815, -0.0033534972462803125, 0.0003795152879320085, -0.018747203052043915, 0.015720708295702934, -0.021639812737703323, 0.0019494780572131276, -0.02285941131412983, 0.01332132425159216, 0.004312689881771803, 0.00571339949965477, -0.010537487454712391, -0.0018007244216278195, 0.015984855592250824, 0.03395888954401016, -0.01618444360792637, 0.03463490307331085, 0.06859101355075836, 0.03709886223077774, 0.03064957819879055, -0.036536358296871185, -0.007203766144812107, -0.04044851288199425, 0.0010552633320912719, 0.03795640543103218, 0.025655556470155716, 0.01505583431571722, 0.011417162604629993, -0.03795246779918671, 0.00791240856051445, -0.013651836663484573, 0.03440854698419571, -0.036151252686977386, 0.03584146127104759, 0.013500087894499302, -0.029194332659244537, -0.010648801922798157, -0.05360068380832672, -0.027081366628408432, 0.013249021954834461, 0.004330447409301996, 0.008990934118628502, -0.08815257251262665, -0.02717149630188942, -0.0784972757101059, -0.0008903563139028847, -0.015735581517219543, -0.00335689727216959, 0.06374302506446838, -0.010755082592368126, -0.026027359068393707, 0.025124426931142807, 0.0009024486062116921, 0.013601355254650116, 0.048471543937921524, -0.0033125902991741896, 0.0015804931754246354, -0.02676042914390564, 0.011202538385987282, 0.016086217015981674, 0.015853123739361763, -0.0033900842536240816, -0.013416850008070469, 0.015073847956955433, 0.008005348034203053, -0.0028381971642374992, 0.03588784113526344, -0.022498570382595062, 0.03088841773569584, -0.0070661273784935474, 0.002949917921796441, -0.025411153212189674, 0.004000316374003887, -0.008571840822696686, 0.016643065959215164, -0.056238334625959396, -0.03772318363189697, 0.0276873167604208, -0.030530361458659172, -0.022992974147200584, 0.055230513215065, 0.02054513618350029, -0.01232163142412901, -0.010264642536640167, 0.0057168882340192795, -0.02127888798713684, 0.012538710609078407, 0.0011058883974328637, -0.00015201584028545767, 0.018362797796726227, 0.04523713141679764, -0.006174793001264334, 0.012719102203845978, 0.008935620076954365, 0.015456213615834713, 0.0854448601603508, -0.011519490741193295, 0.019349388778209686, -0.03875308111310005, 0.03807147964835167, 0.0018667401745915413, 0.02818482555449009, -0.06519485265016556, -0.01250070333480835, -0.012635471299290657, -0.027904123067855835, -0.014118976891040802, 0.014641753397881985, 0.04221209138631821, -0.03570271283388138, -0.03376413509249687, 0.05973712354898453, -0.00027754015172831714, 0.06976675242185593, 0.0005093392683193088, 0.007439655717462301, -0.013102663680911064, -0.01881503500044346, 0.025699511170387268, -0.06059511378407478, 0.04582001641392708, 0.03484279289841652, -0.01203286461532116, -0.008868065662682056, 0.030631769448518753, -0.03769989311695099, 0.017157254740595818, 0.005223364103585482, 0.040527522563934326, 0.03362159803509712, 0.027560850605368614, 0.03872945159673691, -0.010600765235722065, -0.0839206650853157, -0.018838634714484215, -0.015237350016832352, 0.02856905572116375, 0.0015411392087116838, 0.01951466128230095, 0.011776149272918701, 0.012850726954638958, -0.014803607016801834, 0.011489512398838997, -0.04548674449324608, 0.00036799017107114196, -0.0492476150393486, -0.010680999606847763, 0.01742747239768505, 0.024735119193792343, -0.0353396013379097, -0.003373832209035754, 0.010356982238590717, 0.015909144654870033, -0.017083825543522835, 0.026467837393283844, -0.02080526575446129, 0.04387464374303818, -0.004200303461402655, 0.008369777351617813, -0.010680156759917736, -0.007841032929718494, -0.006433497183024883, 0.016103284433484077, -0.017237218096852303, 0.012402634136378765, 0.03248296305537224, 0.03591921553015709, 0.024442287161946297, 0.043168894946575165, 0.01030854694545269, -0.004143975209444761, -0.016712013632059097, -0.012068057432770729, 0.005511684343218803, 0.050920434296131134, -0.05461578071117401, -0.004047918599098921, -0.02390674687922001, 0.03761593997478485, 0.042953744530677795, -0.06999658793210983, -0.022014150395989418, -0.0006910909432917833, 0.034524958580732346, 0.026042426005005836, 0.002588466973975301, 0.0071545070968568325, -0.007116958498954773, -0.025674495846033096, -0.006303391419351101, -0.006480881944298744, 0.04637894406914711, 0.023774251341819763, -0.0454745776951313, -0.030526140704751015, 0.022582022473216057, 0.025605492293834686, -0.05930473655462265, -0.010944940149784088, 0.011479375883936882, 0.045870814472436905, 0.01965799555182457, 0.019558023661375046, 0.014992231503129005, -0.036274220794439316, -0.02305670455098152, 0.00828628707677126, 0.022210899740457535, 0.0048561617732048035, -0.019355999305844307, -0.038211897015571594, -0.0011432707542553544, -0.015525766648352146, 0.021689580753445625, 0.021488875150680542, -0.00003933971674996428, -0.031810060143470764, 0.062127165496349335, 0.015312287956476212, 0.027674445882439613, -0.0095822187140584, 0.0435253381729126, 0.007320374250411987, 0.05139004811644554, 0.026525991037487984, -0.0005808278219774365, 0.008854814805090427, -0.014806972816586494, 0.08539015054702759, 0.0366438552737236, -0.01195728499442339, -0.0210016630589962, -0.024767618626356125, 0.03484652563929558, 0.018940409645438194, -0.008621695451438427, 0.009712536819279194, -0.07667677104473114, 0.0144874332472682, 0.028211362659931183, 0.008821445517241955, 0.0031035877764225006, 0.04708965867757797, 0.02572685480117798, -0.049915917217731476, -0.016826465725898743, 0.014618325047194958, -0.032162342220544815, 0.040347497910261154, -0.0085452850908041, 0.035664089024066925, -0.0197975505143404, 0.04594386741518974, 0.01035213004797697, 0.0005761377396993339, 0.02415834553539753, -0.018781598657369614, -0.051160093396902084, -0.0649939551949501, 0.032326217740774155, 0.04342631995677948, 0.005822136066854, -0.03445500135421753, -0.009230601601302624, -0.037190768867731094, -0.02628863789141178, 0.03303884342312813, -0.019126588478684425, 0.007263407576829195, 0.00964638777077198, -0.003291321685537696, -0.015250299125909805, 0.040428534150123596, -0.002957260003313422, 0.00016823678743094206, 0.019171761348843575, -0.008340164087712765, -0.01572469249367714, 0.03115956299006939, 0.02956347167491913, 0.0028095459565520287, -0.010764392092823982, 0.01067410595715046, -0.018223457038402557, 0.01795324869453907, -0.03299325704574585, -0.019755858927965164, 0.03998325392603874, 0.01671183668076992, -0.011992072686553001, 0.008298887871205807, -0.014623948372900486, 0.029393229633569717, 0.019321341067552567, 0.010252397507429123, -0.03943421691656113, 0.037921175360679626, 0.02788081392645836, 0.01928570121526718, 0.01562626101076603, 0.002903972053900361, -0.03753276169300079, -0.005501119419932365, -0.0816483274102211, 0.02533695660531521, 0.049785979092121124, -0.00820209551602602, 0.010142948478460312, 0.00818980298936367, 0.0020569185726344585, 0.02335524931550026, -0.019014248624444008, 0.008875270374119282, 0.029687045142054558, -0.010548270307481289, 0.006748575251549482, -0.0019300878047943115, -0.014077339321374893, 0.046324681490659714, 0.06203996390104294, -0.022894972935318947, -0.010062327608466148, -0.005155615508556366, 0.04666833579540253, 0.019588470458984375, -0.0426214262843132, 0.02800329029560089, -0.015992216765880585, 0.012010608799755573, 0.05489792302250862, 0.018135685473680496, 0.02006877027451992, -0.005544876679778099, -0.0158083476126194, -0.003206670982763171, 0.010268504731357098, -0.02080594375729561, -0.00448819063603878, 0.011548797599971294, -0.023665249347686768, 0.011728007346391678, -0.05081635341048241, 0.04211932420730591, 0.04239669069647789, 0.003848946886137128, 0.014614913612604141, 0.08053009957075119, 0.06911078840494156, 0.03071749024093151, 0.03270123153924942, 0.026058737188577652, 0.04555094242095947, 0.011567722074687481, 0.07616474479436874, 0.03127431869506836, 0.042391251772642136, 0.038352254778146744, 0.05070231482386589, 0.02174563519656658, -0.02425728179514408, -0.04003932327032089, -0.022296862676739693, -0.028061604127287865, -0.013258902356028557, -0.02645285055041313, 0.009608493186533451, -0.05718660727143288, -0.012350896373391151, -0.004615560173988342, 0.02716570533812046, 0.002404826460406184, 0.025035396218299866, -0.0075084795244038105, 0.061951037496328354, 0.005352748092263937, 0.010592267848551273, -0.03920205309987068, -0.016632115468382835, -0.013590455986559391, 0.03539996221661568, -0.07294793426990509, -0.041426606476306915, -0.039585888385772705, -0.01340741291642189, -0.0015943041071295738, 0.06817599385976791, -0.026918822899460793, -0.016665050759911537, 0.047003068029880524, 0.025602342560887337, -0.02388961799442768, 0.03331661596894264, 0.022257892414927483, 0.02969282492995262, -0.04466836526989937, -0.0061348918825387955, -0.01794598251581192, -0.04073868691921234, -0.03281867131590843, -0.024681510403752327, 0.021727832034230232, -0.03696637600660324, -0.027889292687177658, -0.04011134058237076, 0.0520901083946228, -0.018269581720232964, -0.02027721144258976, -0.01720796525478363, -0.01746571995317936, 0.017980044707655907, 0.003812037641182542, 0.006210091058164835, -0.0132529865950346, 0.0027435782831162214, 0.036012712866067886, 0.01435234397649765, -0.018662001937627792, 0.0025044314097613096, 0.03637038916349411, -0.04145240783691406, -0.02291201986372471, 0.013981540687382221, 0.04438292980194092, 0.013716770336031914, 0.05858331546187401, 0.06837392598390579, -0.015361031517386436, -0.02312074787914753, -0.05154833942651749, -0.0159242432564497, -0.01787237823009491, -0.004024821799248457, -0.013288142159581184, -0.011608295142650604, -0.020895997062325478, -0.008761684410274029, 0.02118283323943615, 0.07385912537574768, -0.006901272572577, -0.026452217251062393, 0.020353026688098907, 0.00042349175782874227, -0.028129860758781433, 0.014505812898278236, 0.03321322053670883, -0.022627118974924088, 0.027441740036010742, -0.0038982401601970196, -0.01843896694481373, 0.003954997286200523, -0.03113507106900215, -0.001868420746177435, 0.018482964485883713, 0.007629287429153919, -0.02712101675570011, -0.007129249162971973, -0.03276098892092705, -0.002632573014125228, -0.025833861902356148, 0.019001416862010956, -0.003734232857823372, -0.018690476194024086, -0.009652560576796532, 0.028607819229364395, 0.010416229255497456, 0.006536734290421009, 0.021133707836270332, -0.02373969368636608, 0.005921484436839819, 0.01819533482193947, -0.007963442243635654, -0.0071679214015603065, -0.03877401724457741, -0.00698394188657403, -0.016669992357492447, 0.045006126165390015, -0.010535389184951782, 0.002557923085987568, 0.0011450491147115827, 0.0055756946094334126, -0.003861913690343499, -0.02412360906600952, -0.012606706470251083, 0.02156572788953781, -0.02041926607489586, 0.015104931779205799, 0.02155933529138565, -0.04580453410744667, 0.03334098309278488, -0.02881225384771824, -0.060686029493808746, 0.04325871914625168, -0.03599807620048523, -0.001122388755902648, -0.021150363609194756, -0.00810949131846428, 0.016474418342113495, 0.07573747634887695, 0.04092996567487717, 0.027043279260396957, -0.029006848111748695, 0.017406200990080833 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Table of contents - Resources - A gentle summary of the GPTQ paper - AutoGPTQ library – the one-stop library for efficiently leveraging GPTQ for LLMs - Native support of GPTQ models in 🤗 Transformers - Quantizing models with the Optimum library - Running GPTQ models through Text-Generation-Inference - Fine-tune quantized models with PEFT - Room for improvement * Supported models - Conclusion and final words - Acknowledgements
[ 0.04945969581604004, -0.04208096116781235, 0.08277822285890579, 0.01903371885418892, 0.0724431574344635, 0.043952375650405884, -0.04153609648346901, 0.058556560426950455, 0.020338399335741997, -0.01797998510301113, -0.05541941151022911, 0.06999622285366058, -0.022776691243052483, 0.05857172980904579, 0.013450156897306442, 0.03715348616242409, 0.04209114983677864, 0.007063479162752628, 0.009952040389180183, -0.004189404658973217, 0.04842839762568474, -0.021257922053337097, 0.06512397527694702, -0.00936066173017025, 0.07299532741308212, -0.07089739292860031, 0.004433273803442717, 0.03914817422628403, -0.0780908614397049, 0.04877316951751709, -0.07541210204362869, -0.0227215476334095, -0.026853809133172035, -0.004884841851890087, -0.002428413135930896, -0.04823862388730049, -0.13596096634864807, 0.010807703249156475, 0.0448131300508976, -0.031093787401914597, 0.02894221432507038, -0.041210126131772995, 0.006693914067000151, 0.03831283748149872, -0.027921505272388458, -0.024736197665333748, -0.18057262897491455, 0.07679629325866699, -0.02832920290529728, -0.09688691049814224, -0.013377264142036438, 0.06699004769325256, -0.048225827515125275, 0.007465105503797531, -0.0007777995779179037, 0.01831948012113571, 0.023713767528533936, -0.11006707698106766, -0.00275036646053195, 0.010876420885324478, 0.015751441940665245, -0.023253606632351875, -0.0019555112812668085, 0.036811720579862595, 0.03785443678498268, -0.01568354293704033, -0.037531886249780655, 0.012504939921200275, -0.05638334900140762, 0.04068619757890701, 0.002629391150549054, -0.004140845499932766, -0.03864746913313866, -0.04578562080860138, -0.019476385787129402, -0.008739459328353405, -0.03214284032583237, 0.06310082972049713, 0.06050523370504379, 0.05349553003907204, 0.020295996218919754, 0.01809639297425747, 0.05925991013646126, 0.022630175575613976, 0.031762950122356415, -0.006741627119481564, 0.050095513463020325, -0.06836986541748047, -0.025541266426444054, 0.013533622026443481, -0.024359848350286484, -0.15847764909267426, -0.06341221928596497, -0.006731049623340368, 0.021984685212373734, -0.040469903498888016, 0.04138382896780968, -0.00846801232546568, -0.02039826288819313, 0.013891395181417465, 0.009149636141955853, 0.037832777947187424, 0.045160647481679916, -0.0323285274207592, -0.0507371760904789, 0.052885282784700394, 0.007550723850727081, -0.11328539252281189, -0.0734357237815857, 0.028044983744621277, 0.002379902172833681, 0.00499559985473752, 0.03426024317741394, -0.015832949429750443, -0.08387605845928192, 0.07369212061166763, -0.003377860179170966, -0.008503458462655544, 0.03804472088813782, 0.052524931728839874, -0.04055114835500717, 0.06959233433008194, 0.05953407660126686, 0.02096819318830967, 0.03634203225374222, 0.003311207052320242, 0.06771624833345413, -0.06873401999473572, -0.019143391400575638, 0.009303598664700985, 0.05289572849869728, -0.017098335549235344, 0.02920490875840187, -0.03063531033694744, -0.031163783743977547, -0.04836145415902138, 0.0005043927230872214, -0.061463430523872375, -0.02901904098689556, -0.0031582354567945004, -0.030594248324632645, 0.0286184661090374, 0.0006339718820527196, 0.006284329574555159, 0.0344669371843338, 0.015014663338661194, -0.09366894513368607, 0.07358395308256149, -0.051686983555555344, 0.021177014335989952, -0.0613161139190197, 0.021681101992726326, -0.050755493342876434, -0.10181071609258652, 0.038281626999378204, 0.007286595646291971, 0.001858588308095932, 0.0384872741997242, -0.07823875546455383, -0.033674124628305435, -0.038875337690114975, -0.01159666944295168, -0.020056795328855515, 0.012963189743459225, 0.01871993951499462, -0.03545592352747917, -0.034467704594135284, 0.02289625257253647, -0.00019534447346813977, 0.02294602431356907, 0.02507159858942032, 0.010649389587342739, 0.07959374785423279, -0.02257343754172325, -0.02100992575287819, 0.04912698268890381, 0.03952590748667717, 0.07017389684915543, 0.0164302047342062, -0.0041024647653102875, -0.035008639097213745, 0.035767629742622375, 0.010480423457920551, 0.03530200943350792, 0.010552175343036652, -0.08476348221302032, 0.015474151819944382, -0.03126084432005882, -0.024072563275694847, -0.033323463052511215, -0.08476921916007996, -0.014064653776586056, 0.07490601390600204, 0.022627316415309906, 0.037758056074380875, -0.02678350731730461, -0.029162928462028503, 0.14198856055736542, 0.08956333249807358, 0.0689389631152153, 0.08049824088811874, 0.008598973043262959, 0.02738068625330925, -0.030822044238448143, -0.0004414330469444394, 0.02034752443432808, -0.020202605053782463, 0.025123611092567444, 0.012672034092247486, -0.017159046605229378, 0.059946585446596146, -0.0876753181219101, -0.019219988957047462, -0.06306416541337967, 0.002387029817327857, -0.0677066445350647, 0.001035652356222272, 0.007691027130931616, 0.021749112755060196, -0.02856064774096012, 0.16058465838432312, -0.007407030556350946, 0.019815655425190926, -0.054993629455566406, -0.0717310905456543, 0.07393255829811096, 0.074175626039505, 0.01873278059065342, 0.06432677060365677, -0.04633649066090584, 0.026503371074795723, -0.1074557676911354, 0.05021613836288452, 0.03255753591656685, 0.020188231021165848, -0.02018212340772152, -0.019126614555716515, -0.03342033550143242, 0.08192051947116852, -0.006835214328020811, 0.048836566507816315, 0.0222779493778944, -0.05952337011694908, 0.06758283823728561, 0.04076290875673294, -0.025731002911925316, 0.04080023616552353, -0.015813317149877548, -0.022935351356863976, -0.03757831081748009, -0.07210687547922134, 0.0552373044192791, -0.013462076894938946, -0.003358579007908702, 0.062088724225759506, -0.02149277552962303, 0.006036068312823772, 0.01610877737402916, -0.027836628258228302, 0.009758725762367249, 0.005251428112387657, -0.005023417994379997, 0.012668885290622711, -0.03317906707525253, -0.004027715418487787, -0.004460271913558245, 0.031283941119909286, 0.03595452383160591, -0.017853736877441406, 0.0044266884215176105, 0.007544717751443386, -0.03061547875404358, 0.03997240588068962, 0.013601049780845642, 0.0032100649550557137, 0.025359194725751877, 0.02353542484343052, -0.031883422285318375, -0.02157759852707386, -0.016899578273296356, 0.016710981726646423, -0.021957388147711754, 0.04008365049958229, 0.008549819700419903, -0.010269947350025177, -0.018272340297698975, -0.03488043695688248, -0.03365794196724892, -0.028830982744693756, 0.0144125334918499, -0.003994360566139221, 0.02817130833864212, -0.016122205182909966, -0.04061412066221237, -0.0020199136342853308, 0.0023354263976216316, -0.0002878824598155916, 0.02679849974811077, -0.014558939263224602, 0.0073882280848920345, 0.008963044732809067, 0.026716163381934166, -0.0031430604867637157, 0.032656967639923096, -0.03256819397211075, 0.048203397542238235, 0.033905088901519775, 0.04393962398171425, -0.11787833273410797, -0.04527251049876213, 0.021257665008306503, 0.033243171870708466, 0.019014135003089905, -0.05234947428107262, 0.06517164409160614, -0.026536421850323677, -0.007759153842926025, -0.00422003073617816, 0.06789004057645798, 0.013660743832588196, 0.04967021942138672, 0.02009032852947712, -0.009709328413009644, 0.001540505327284336, -0.041592564433813095, 0.003462826833128929, 0.013749697245657444, 0.032947856932878494, 0.013956599868834019, 0.041785772889852524, -0.01768905110657215, -0.009720975533127785, -0.0004963634419254959, -0.01811577007174492, -0.014673713594675064, 0.012236364185810089, 0.013265210203826427, -0.007223260588943958, -0.015382836572825909, 0.017295408993959427, 0.009049925953149796, 0.025183893740177155, -0.0358864963054657, -0.03505920246243477, -0.01200686115771532, 0.03170640766620636, 0.00222221203148365, 0.05055958405137062, 0.012577271088957787, -0.017315175384283066, 0.048281166702508926, -0.004044456407427788, -0.00601801835000515, 0.024071823805570602, -0.012714025564491749, 0.023127788677811623, 0.07068825513124466, -0.04100877419114113, -0.041497912257909775, -0.0044212331995368, -0.027248073369264603, 0.038792889565229416, 0.0012348336167633533, 0.010684198699891567, -0.0046982187777757645, 0.0055844904854893684, 0.02451615408062935, 0.024232100695371628, -0.028525976464152336, 0.0028879912570118904, 0.002301707398146391, -0.014665470458567142, -0.01364152878522873, 0.0616922490298748, 0.009772694669663906, -0.015278380364179611, 0.018986569717526436, 0.02628781646490097, 0.012878050096333027, 0.03582737594842911, 0.015242080204188824, 0.009517710655927658, -0.03002495877444744, 0.024080775678157806, -0.018876835703849792, -0.01396875362843275, 0.08141336590051651, -0.003755303332582116, -0.03559514135122299, -0.03451938182115555, -0.05397262051701546, -0.008465378545224667, -0.00853919330984354, -0.01811312511563301, -0.01262050960212946, -0.018352504819631577, 0.013706663623452187, 0.0025620090309530497, 0.03623208776116371, -0.016817303374409676, 0.02279581129550934, -0.007855858653783798, -0.0017034778138622642, 0.029741887003183365, 0.0390823669731617, 0.005294001195579767, 0.023575425148010254, 0.012989480048418045, 0.05668291822075844, -0.02824685350060463, 0.020911572501063347, 0.003735368140041828, -0.04457501694560051, 0.03220310062170029, -0.036863774061203, -0.012151290662586689, 0.008444052189588547, 0.033717963844537735, -0.004782204981893301, -0.01628735288977623, 0.003603053744882345, 0.006016198545694351, 0.026181580498814583, -0.020664457231760025, -0.004643146879971027, -0.023783136159181595, -0.004032871685922146, -0.0004446617385838181, -0.04097294434905052, 0.013966710306704044, -0.016135940328240395, -0.004761556629091501, 0.03337312862277031, -0.0038711470551788807, 0.0018330003367736936, 0.0005117192631587386, -0.04078013077378273, 0.010259280912578106, -0.023549435660243034, -0.04165808856487274, 0.004353032447397709, -0.011984207667410374, -0.013730606064200401, 0.014743335545063019, -0.021275950595736504, 0.0304923877120018, -0.00885075144469738, -0.041012492030858994, -0.02061598375439644, -0.004532733000814915, 0.016855105757713318, -0.025464383885264397, 0.05509324371814728, -0.02320512756705284, 0.0020702744368463755, 0.007081913761794567, 0.020639732480049133, 0.04908358305692673, 0.03450780361890793, -0.03052927367389202, -0.0030170376412570477, 0.0005732371937483549, 0.02479374222457409, -0.008507766760885715, -0.013321200385689735, 0.02598566934466362, -0.006426068022847176, 0.0624755434691906, 0.03823724389076233, 0.025064878165721893, -0.04563969746232033, -0.0004553833568934351, 0.01568334735929966, 0.014251729473471642, 0.003779124701395631, -0.012823202647268772, -0.014308444224298, 0.025152765214443207, 0.00016674151993356645, -0.028762219473719597, 0.04193524643778801, -0.041614193469285965, -0.008801008574664593, 0.04075198248028755, 0.03199212625622749, -0.015118070878088474, -0.004780597053468227, -0.0005941319395788014, -0.0017287253867834806, -0.025168633088469505, 0.02385176159441471, -0.01148303598165512, -0.027000073343515396, 0.016622213646769524, 0.04900718852877617, 0.05101610720157623, -0.034008730202913284, -0.010111510753631592, 0.02511725202202797, -0.01473201997578144, 0.02951432205736637, -0.03345567360520363, -0.012206769548356533, 0.005554524250328541, 0.010477464646100998, -0.002087169326841831, -0.005258543882519007, -0.0026484504342079163, 0.05365721136331558, 0.06218043714761734, -0.030073853209614754, -0.020610487088561058, 0.0177517868578434, 0.007841001264750957, 0.01787467487156391, -0.05572405830025673, 0.01827733777463436, -0.01833680085837841, 0.01917887292802334, 0.016812311485409737, -0.025460680946707726, -0.03321883827447891, 0.03276599571108818, -0.02024342678487301, -0.006770297419279814, 0.016888702288269997, 0.002196218818426132, 0.03555183857679367, 0.007983844727277756, -0.027008002623915672, -0.005891396198421717, 0.021103497594594955, 0.041510410606861115, -0.015564236789941788, -0.03850945085287094, 0.003922970034182072, 0.009350056760013103, 0.003627912839874625, 0.008752183988690376, -0.04670017212629318, -0.01455370057374239, 0.03845209628343582, 0.016478881239891052, 0.007269164081662893, -0.037936486303806305, 0.028499040752649307, 0.0007711554644629359, -0.0019075339660048485, 0.01191679947078228, -0.05387180298566818, -0.045917145907878876, -0.029654482379555702, -0.0798182487487793, 0.047032300382852554, 0.09276086091995239, -0.022798126563429832, -0.03053542599081993, 0.011069033294916153, 0.029241682961583138, 0.0018088832730427384, 0.03168641775846481, 0.01879071444272995, 0.0036324895918369293, 0.05102357268333435, 0.046430278569459915, -0.0025471344124525785, -0.0032064837869256735, 0.022877829149365425, 0.013737010769546032, -0.028808467090129852, -0.01849488914012909, 0.03467944636940956, -0.04897652938961983, 0.03202243149280548, -0.007442806381732225, -0.06762351840734482, 0.018618810921907425, 0.0023402783554047346, 0.008473619818687439, 0.011745426803827286, 0.0008978943806141615, 0.002708086743950844, -0.009556799195706844, 0.008885412476956844, 0.024580813944339752, 0.03870927914977074, -0.014427299611270428, 0.028244677931070328, -0.007933815941214561, 0.048410601913928986, 0.024784550070762634, 0.011641117744147778, 0.0005882469704374671, 0.01908155530691147, 0.043601296842098236, -0.006886275950819254, 0.007241143379360437, -0.00205537723377347, -0.021519789472222328, -0.030665190890431404, -0.005592156667262316, -0.026979658752679825, -0.06308680027723312, -0.017225347459316254, 0.023797325789928436, -0.026761911809444427, 0.045658547431230545, -0.014276155270636082, 0.05551918223500252, 0.04199884459376335, 0.03393740952014923, -0.028180573135614395, 0.029240189120173454, 0.004076870623975992, 0.004377041012048721, 0.011850054375827312, 0.013696984387934208, -0.0035537006333470345, -0.013219981454312801, 0.0798235833644867, 0.014208069071173668, 0.026254847645759583, -0.012112793512642384, -0.06621389091014862, -0.0027439729310572147, -0.015018915757536888, 0.025518756359815598, 0.013785366900265217, 0.014860487543046474, -0.008178734220564365, 0.0030273734591901302, 0.01640808768570423, -0.033098068088293076, -0.011406749486923218, 0.017313053831458092, -0.006513428874313831, -0.007370791397988796, -0.04002680629491806, 0.0028795318212360144, 0.033709682524204254, 0.0024791699834167957, -0.012263137847185135, 0.003873381996527314, 0.046408504247665405, -0.018247567117214203, 0.011239510960876942, -0.012302382849156857, -0.026448052376508713, -0.02992895431816578, -0.002922399900853634, -0.031237831339240074, 0.02267756126821041, -0.023866839706897736, -0.015238297171890736, 0.029835760593414307, 0.017552515491843224, -0.03760064020752907, 0.016094369813799858, 0.013762718997895718, -0.011272075586020947, -0.005690632853657007, 0.02164134383201599, -0.02290545590221882, -0.0036917426623404026, 0.01864325813949108, -0.044553402811288834, 0.005932094529271126, -0.03685034066438675, 0.02289324626326561, 0.05538500100374222, 0.05437960475683212, -0.03258606046438217, -0.045113276690244675, 0.00047518726205453277, -0.027651963755488396, -0.001954596722498536, 0.01796191744506359, -0.024473993107676506, -0.019593629986047745, 0.00612687598913908, -0.0259223785251379, 0.007076500914990902, -0.0036258019972592592, -0.021507078781723976, 0.06980673968791962, -0.002037599915638566, -0.010669619776308537, -0.0018379061948508024, 0.052848707884550095, -0.025480052456259727, 0.03703625500202179, 0.035322245210409164, 0.04612581804394722, 0.008482995443046093, -0.024898285046219826, 0.00024575667339377105, -0.023493275046348572, 0.0422094464302063, -0.030147947371006012, -0.06372221559286118, 0.0005334652378223836, -0.005550334695726633, 0.015099059790372849, 0.008090376853942871, -0.0288957878947258, -0.01826820708811283, -0.04773255065083504, -0.03704419359564781, -0.03517978638410568, 0.009421490132808685, 0.059753090143203735, -0.007644981145858765, 0.008341001346707344, -0.007940555922687054, -0.020757418125867844, -0.02045033685863018, -0.015677010640501976, 0.0033939203713089228, 0.030784128233790398, 0.01745631732046604, 0.0017746491357684135, -0.041072361171245575, 0.001473543350584805, -0.06510333716869354, -0.03125867247581482, 0.04181881621479988, 0.013934416696429253, -0.022660257294774055, -0.019441012293100357, 0.008796966634690762, 0.010445063933730125, 0.022674180567264557, 0.009059207513928413, 0.004763898439705372, -0.009947354905307293, 0.011369433254003525, -0.029632670804858208, -0.07035263627767563, 0.014645291492342949, -0.03614705428481102, -0.03617387264966965, 0.024367401376366615, 0.026759490370750427, 0.028236841782927513, -0.031037453562021255, 0.014049221761524677, -0.009883100166916847, 0.008896664716303349, -0.01654304563999176, -0.039300885051488876, 0.031393565237522125, 0.012238271534442902, -0.0427364818751812, -0.022826114669442177, 0.009944441728293896, 0.015810959041118622, -0.0008655768469907343, -0.024441853165626526, -0.014646831899881363, 0.010830342769622803, -0.017372114583849907, 0.022733274847269058, 0.019345583394169807, 0.0395696647465229, 0.02525830641388893, 0.0025418177247047424, -0.028403809294104576, -0.02935629151761532 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Supported models In this initial implementation, only large language models with a decoder or encoder only architecture are supported. This may sound a bit restrictive, but it encompasses most state of the art LLMs such as Llama, OPT, GPT-Neo, GPT-NeoX. Very large vision, audio, and multi-modal models are currently not supported.
[ 0.013804555870592594, -0.030626576393842697, 0.07455079257488251, -0.02251609042286873, 0.10198986530303955, 0.02208532579243183, -0.03063587099313736, 0.08790730684995651, 0.011903859674930573, -0.0271304864436388, -0.03751115873456001, 0.06190108880400658, -0.0418664924800396, 0.0480041541159153, 0.04285130277276039, -0.022785427048802376, -0.005169818177819252, -0.00987363513559103, 0.02458006516098976, 0.02345545031130314, 0.03363648056983948, -0.0344901978969574, 0.0045177447609603405, -0.06436752527952194, 0.004078160040080547, -0.02385341189801693, -0.04546501860022545, 0.06314156204462051, -0.08835230022668839, -0.038148749619722366, -0.03889428451657295, -0.00509108928963542, -0.04971256107091904, 0.018163589760661125, -0.005964255426079035, 0.03471267595887184, -0.14144156873226166, 0.0575871542096138, -0.005810831673443317, -0.037127044051885605, -0.006745487917214632, -0.020661495625972748, -0.04739852249622345, 0.06719101220369339, -0.011866990476846695, -0.018192768096923828, -0.126994788646698, 0.06863576918840408, 0.007444906514137983, 0.0037069586105644703, -0.10840500891208649, 0.03342873975634575, 0.0003645197139121592, 0.02848931774497032, 0.04574538767337799, -0.008452699519693851, 0.004982705693691969, -0.07095998525619507, 0.005727557931095362, 0.06452952325344086, -0.0011049613822251558, -0.002250085584819317, -0.03290204703807831, -0.04162409156560898, 0.04865405708551407, -0.038970887660980225, -0.04525092616677284, -0.027798881754279137, -0.0201194379478693, -0.04240977764129639, -0.004826393909752369, -0.003958929795771837, -0.00868435949087143, -0.032552819699048996, 0.00042091848445124924, -0.08399402350187302, 0.027496054768562317, 0.03760147467255592, 0.058035384863615036, 0.01233461033552885, 0.020994629710912704, -0.005108450539410114, 0.05149231106042862, 0.04867935925722122, -0.0004766991769429296, 0.03974210098385811, 0.0305180586874485, -0.053741440176963806, -0.020655600354075432, 0.011082186363637447, -0.017523379996418953, -0.13469381630420685, -0.008062402717769146, 0.04535358026623726, 0.047838274389505386, 0.0048250434920191765, -0.018891483545303345, 0.03447036072611809, -0.008390912786126137, 0.020786620676517487, 0.01938638463616371, 0.024653859436511993, -0.02826172299683094, -0.0337112694978714, -0.04196735844016075, 0.031111307442188263, -0.07918732613325119, -0.02077779546380043, -0.04007476195693016, -0.002051381394267082, 0.007907488383352757, -0.010789569467306137, 0.03582556173205376, -0.06889616698026657, -0.09613049775362015, 0.029136577621102333, 0.052189819514751434, 0.033059876412153244, 0.057827550917863846, 0.07963579148054123, 0.040843553841114044, 0.03854759782552719, 0.041678931564092636, -0.007634907495230436, 0.0473632849752903, 0.02914978191256523, -0.005689570680260658, -0.005007961764931679, -0.03185439109802246, -0.07697685062885284, 0.04458209127187729, -0.02210336923599243, 0.024671556428074837, 0.0067748925648629665, 0.056308452039957047, -0.030034711584448814, 0.001617288333363831, -0.09465863555669785, 0.011843124404549599, -0.051552366465330124, -0.06855902075767517, -0.031228505074977875, 0.0131382429972291, -0.004195798188447952, 0.01852770894765854, 0.0018549846718087792, 0.003888573730364442, 0.07422482222318649, -0.09560038149356842, -0.02247246541082859, -0.14442206919193268, 0.07156407833099365, -0.004398977849632502, -0.02528337761759758, 0.04228660464286804, 0.0014239420415833592, -0.015180833637714386, 0.007990277372300625, -0.09642841666936874, -0.0264512337744236, -0.02759426459670067, 0.008709079585969448, -0.04189949482679367, -0.001305944286286831, 0.02600158005952835, -0.0549355186522007, -0.024819882586598396, 0.02747770957648754, 0.011748680844902992, 0.05689000338315964, -0.023027729243040085, -0.011717756278812885, 0.04443778842687607, -0.05705532431602478, -0.03375742584466934, -0.02319108135998249, 0.021017592400312424, 0.07611742615699768, 0.01371151302009821, -0.04103769361972809, -0.04316182807087898, -0.003331009531393647, -0.01798279397189617, 0.014277800917625427, -0.011194360442459583, -0.04760875925421715, 0.03783296421170235, -0.08086603879928589, -0.032921064645051956, -0.044655196368694305, -0.006136786658316851, -0.04682643339037895, 0.06640099734067917, 0.040231283754110336, 0.04320882260799408, 0.0027914876118302345, -0.013265599496662617, 0.10682856291532516, 0.10123903304338455, 0.06712182611227036, 0.14670702815055847, 0.029206493869423866, 0.03071543574333191, 0.01455591805279255, -0.024375364184379578, 0.0025542210787534714, 0.015767820179462433, -0.0017635482363402843, 0.022298097610473633, 0.03529631346464157, 0.05205817148089409, -0.08753382414579391, -0.010270842351019382, -0.007102736737579107, 0.071258544921875, -0.062131255865097046, 0.01841885969042778, -0.01313828956335783, -0.030712613835930824, -0.0057278904132544994, 0.16085775196552277, -0.08136171102523804, -0.06273302435874939, -0.09441022574901581, -0.059488445520401, 0.12221754342317581, 0.06375996768474579, 0.03904052451252937, 0.023775739595294, -0.04276736080646515, 0.057581108063459396, -0.05396382883191109, 0.03032495267689228, 0.05087996646761894, 0.03231694549322128, 0.014616324566304684, -0.05764570087194443, 0.025005698204040527, 0.029834171757102013, 0.024521920830011368, 0.02036656066775322, -0.004335231147706509, -0.03277886286377907, 0.014556655660271645, -0.005744329188019037, -0.03273875638842583, 0.07365314662456512, -0.0007088092970661819, 0.012113360688090324, 0.03316234052181244, -0.08138959109783173, 0.05622614175081253, 0.02598312869668007, -0.027604272589087486, 0.02826562710106373, 0.01578865759074688, 0.0009322219411842525, -0.046350304037332535, 0.0038663914892822504, -0.03830556944012642, 0.0023181845899671316, -0.009303664788603783, 0.016983559355139732, -0.04923465475440025, -0.024989556521177292, -0.026407353579998016, 0.0046642678789794445, -0.0020463629625737667, -0.017651325091719627, 0.009416984394192696, -0.0003417294647078961, -0.04738819599151611, 0.042887408286333084, -0.002010821830481291, 0.030733782798051834, 0.0462244376540184, 0.015183469280600548, -0.022915108129382133, -0.02624128758907318, -0.02049044892191887, 0.021562635898590088, -0.009412277489900589, 0.03967335447669029, 0.04634716734290123, -0.02489287219941616, -0.032217204570770264, -0.01238735020160675, -0.044392671436071396, -0.009419388137757778, 0.036379631608724594, 0.010945701971650124, 0.018581444397568703, 0.007235226221382618, -0.025762230157852173, -0.018317701295018196, -0.02706066705286503, 0.038763370364904404, 0.00971914827823639, -0.047224801033735275, 0.007410002406686544, -0.027084525674581528, 0.03998235985636711, 0.03511657565832138, -0.03412983566522598, -0.027261551469564438, 0.03457107022404671, 0.050315435975790024, 0.03781089931726456, -0.09384505450725555, -0.007790077943354845, -0.02111802063882351, 0.008990839123725891, 0.017355136573314667, -0.03542826324701309, 0.03097783960402012, 0.0066558425314724445, 0.03545960783958435, 0.000549742893781513, 0.009160365909337997, 0.019286587834358215, 0.04542282968759537, 0.005727892275899649, -0.020916275680065155, -0.0031400658190250397, -0.03558547794818878, 0.02543802186846733, 0.04786493256688118, 0.005410826299339533, 0.007544804364442825, 0.04221982881426811, 0.026314014568924904, 0.009612511843442917, -0.06433702260255814, -0.035380322486162186, 0.055109381675720215, -0.01271276269108057, 0.011613505892455578, -0.011565880849957466, -0.008501107804477215, 0.0010766040068119764, -0.05260621756315231, 0.0413699634373188, -0.05875008925795555, 0.015232467092573643, 0.0015318309888243675, 0.04124164581298828, 0.04069678112864494, 0.026442887261509895, 0.012928889133036137, -0.03338714316487312, 0.06130267307162285, -0.022581839933991432, -0.0071157654747366905, 0.010651622898876667, -0.009990236721932888, 0.016239723190665245, 0.04483811929821968, -0.005471647717058659, -0.028270427137613297, -0.019897880032658577, 0.0023405731189996004, 0.024878375232219696, -0.008941348642110825, -0.042221616953611374, 0.014992861077189445, -0.0005528568290174007, -0.0007335401023738086, -0.027343468740582466, -0.036004688590765, 0.028957227244973183, -0.0005816565826535225, 0.00032958059455268085, -0.020220642909407616, 0.030079811811447144, 0.07507035881280899, -0.04492650553584099, 0.03554483875632286, 0.026663977652788162, -0.005784480832517147, 0.014807149767875671, 0.004502036143094301, 0.006835115607827902, 0.019237719476222992, 0.034396857023239136, 0.001518532051704824, -0.03777235001325607, 0.05123991519212723, 0.04732305184006691, -0.003946844022721052, 0.024450019001960754, -0.05143589898943901, -0.009821473620831966, -0.016901107504963875, -0.02133329026401043, -0.003171395044773817, -0.0014339560875669122, 0.006889273412525654, 0.02097013033926487, 0.014383097179234028, -0.05036694183945656, -0.01712612621486187, -0.005233027972280979, 0.04063215106725693, -0.003170441836118698, 0.019819431006908417, 0.02291238307952881, 0.02497604861855507, 0.014305347576737404, 0.020707888528704643, -0.04171954467892647, -0.016892140731215477, -0.014289897866547108, 0.006520496681332588, -0.008500147610902786, -0.004453727044165134, -0.02718646079301834, 0.04304300621151924, -0.01155711431056261, -0.005821090657263994, -0.022714560851454735, 0.014940239489078522, 0.0042045461013913155, 0.0458330437541008, -0.01495741493999958, -0.015685822814702988, -0.0052838861010968685, -0.05543028563261032, 0.005361920688301325, 0.010343590751290321, -0.01649167761206627, -0.02326096035540104, -0.01126454584300518, 0.002804691670462489, -0.003342889714986086, 0.011532791890203953, -0.013884739018976688, -0.010260793380439281, 0.018154380843043327, -0.03028416633605957, -0.00659592542797327, 0.02403734251856804, 0.02510015480220318, 0.016743987798690796, -0.0224437415599823, -0.030604908242821693, 0.027623482048511505, -0.008915436454117298, -0.02992522157728672, -0.040325455367565155, -0.013374644331634045, 0.0249291080981493, 0.01293099857866764, 0.049202416092157364, -0.04534643143415451, 0.010777072049677372, 0.01757398247718811, 0.014548209495842457, 0.06217402592301369, 0.04734135791659355, -0.046695489436388016, 0.0008212642278522253, 0.006373513489961624, -0.009608187712728977, 0.009768953546881676, -0.0008268194505944848, 0.04720133915543556, 0.02223484218120575, 0.055585965514183044, 0.03479142114520073, 0.024620704352855682, -0.0688103511929512, 0.013699539937078953, 0.008894063532352448, 0.0068115475587546825, 0.02490643411874771, -0.00781088974326849, -0.03360852599143982, 0.0036858683452010155, 0.022789379581809044, -0.010853241197764874, -0.007654395420104265, -0.017263103276491165, 0.03352874144911766, -0.023118458688259125, 0.027929577976465225, -0.0066847908310592175, -0.05326250195503235, 0.0318814180791378, 0.013302813284099102, -0.05452416464686394, 0.04431501775979996, -0.02292698062956333, -0.02784750610589981, 0.012769380584359169, 0.04886048287153244, 0.04127541556954384, 0.01671685092151165, 0.007713460363447666, 0.007221529260277748, 0.030492214486002922, 0.0012221811339259148, -0.02440899983048439, 0.0047609456814825535, 0.021530047059059143, 0.008479943498969078, -0.01675436645746231, -0.00947019923478365, -0.008791482076048851, -0.002612983575090766, 0.051243506371974945, -0.009613368660211563, 0.020545784384012222, -0.004745404701679945, -0.0534881167113781, -0.008004633709788322, -0.036400292068719864, 0.0188596174120903, -0.006776970811188221, -0.011148643679916859, -0.02010241523385048, -0.013472591526806355, 0.026898449286818504, 0.01417374238371849, -0.011306378990411758, -0.01775878481566906, 0.05546698346734047, 0.0048758904449641705, 0.06868278235197067, 0.01340925320982933, -0.02411171980202198, -0.02360686846077442, 0.003271277993917465, 0.004310279153287411, 0.008754175156354904, -0.02145090326666832, 0.029866045340895653, -0.017513632774353027, 0.01879400573670864, 0.06811462342739105, -0.026149572804570198, -0.0031724898144602776, 0.024971429258584976, 0.0008760819328017533, 0.029213445261120796, -0.058962978422641754, 0.008613740094006062, 0.01603470928966999, -0.009088248014450073, -0.02612200193107128, -0.02357463538646698, -0.05498865619301796, -0.010583312250673771, -0.050266098231077194, -0.006645245477557182, 0.03503063693642616, 0.009807840920984745, -0.016791490837931633, 0.025694580748677254, 0.01844567432999611, -0.0007613992202095687, 0.013962826691567898, 0.0190910492092371, 0.008406165987253189, 0.03853078559041023, 0.0563315749168396, -0.022128000855445862, -0.01613718271255493, -0.008667229674756527, -0.014934254810214043, -0.04708709940314293, 0.01152098923921585, 0.034859463572502136, -0.030602727085351944, -0.03287011384963989, -0.01088509801775217, -0.06542574614286423, -0.03017565980553627, -0.0038906694389879704, 0.005373131949454546, -0.007129544857889414, -0.01728341355919838, -0.009830527938902378, 0.00928458757698536, -0.0237296000123024, 0.013864760287106037, 0.025757450610399246, 0.037929125130176544, 0.029763467609882355, 0.004894008859992027, 0.017086446285247803, 0.025650057941675186, 0.003449532901868224, -0.005879343952983618, 0.026074927300214767, 0.054771631956100464, 0.01690325327217579, -0.007011675741523504, -0.015491793863475323, -0.00599135784432292, -0.00921824760735035, -0.020834296941757202, 0.03310447931289673, -0.06205517426133156, 0.025103555992245674, -0.009224078617990017, 0.00004730819637188688, -0.005213647615164518, -0.035140570253133774, 0.05353819578886032, 0.056418199092149734, 0.04182809963822365, 0.014924870803952217, 0.04348907619714737, -0.003992587793618441, 0.03270857408642769, -0.011187759228050709, 0.03631865233182907, -0.011144683696329594, 0.026743551716208458, 0.05717328563332558, 0.03723805397748947, 0.03441524878144264, 0.013122595846652985, 0.018794815987348557, 0.018245380371809006, 0.00429031765088439, 0.011748929508030415, -0.0019829703960567713, 0.013961594551801682, 0.011327234096825123, -0.04256676509976387, -0.012982967309653759, -0.023670759052038193, -0.03042483516037464, 0.013263554312288761, -0.006911238189786673, 0.020108895376324654, -0.032011352479457855, 0.0060477061197161674, 0.015980420634150505, -0.013782849535346031, -0.00789627805352211, -0.06404217332601547, -0.004300692584365606, -0.0064476425759494305, 0.012188365682959557, -0.03108418919146061, -0.014224046841263771, 0.010009323246777058, 0.011345173232257366, -0.055443424731492996, 0.07552175968885422, 0.0316433422267437, 0.021320320665836334, 0.04167516529560089, 0.003497741650789976, -0.020319318398833275, 0.02316531538963318, 0.03077881410717964, -0.016182009130716324, -0.018204445019364357, -0.0033434522338211536, -0.02768818289041519, -0.019572924822568893, -0.014448386617004871, -0.03109423629939556, -0.011240997351706028, -0.03989943489432335, 0.02603791281580925, 0.042316872626543045, 0.06774213165044785, -0.02651870623230934, -0.04030752554535866, -0.07486414909362793, 0.0034242593683302402, -0.0047117117792367935, -0.006283984053879976, -0.01714668795466423, 0.014894320629537106, -0.006592467427253723, -0.059224050492048264, 0.04102817177772522, -0.024752210825681686, 0.013965193182229996, 0.03184666112065315, 0.04019656032323837, -0.011942386627197266, -0.038769613951444626, 0.06215819716453552, 0.019803809002041817, 0.005934358574450016, 0.022009441629052162, -0.002474886132404208, 0.007505520712584257, -0.021630791947245598, -0.027618102729320526, 0.011224240995943546, 0.04728282243013382, -0.031291477382183075, -0.008422669023275375, -0.004695121664553881, 0.0022946996614336967, 0.030592763796448708, 0.0007234453805722296, -0.036740295588970184, 0.022285014390945435, -0.05853483825922012, 0.005324167665094137, 0.017899665981531143, 0.021601276472210884, 0.0325918011367321, 0.029830697923898697, 0.028544416651129723, -0.01784399524331093, -0.005309338215738535, -0.0041416785679757595, -0.00011836593330372125, -0.0011342540383338928, 0.038652971386909485, -0.023335350677371025, -0.02097260393202305, -0.039405107498168945, 0.004953580908477306, -0.02337176352739334, -0.01764983870089054, 0.022606095299124718, -0.022241873666644096, -0.03341812640428543, -0.036464206874370575, -0.020263701677322388, -0.0008008711156435311, 0.003161381697282195, 0.024957124143838882, 0.03143373504281044, 0.010730341076850891, 0.012526839971542358, -0.010444391518831253, -0.07217880338430405, -0.019620172679424286, -0.022840702906250954, -0.04506840929389, 0.016558390110731125, -0.01340788695961237, -0.013060484081506729, 0.007602650206536055, 0.028977064415812492, 0.008981026709079742, 0.008392972871661186, -0.02787201479077339, 0.02449888549745083, 0.010271653532981873, 0.00026094389613717794, -0.012656030245125294, -0.03810051083564758, 0.0632006973028183, 0.03743718937039375, -0.02131771668791771, -0.0483013391494751, 0.0035813404247164726, -0.032269835472106934, 0.02428566850721836, 0.023189499974250793, -0.017187803983688354, 0.06345672160387039, 0.045377813279628754, -0.013860905542969704, 0.00410592881962657, -0.029529349878430367 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Native support of GPTQ models in 🤗 Transformers After installing the AutoGPTQ library and optimum (pip install optimum), running GPTQ models in Transformers is now as simple as: python from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-7b-Chat-GPTQ", torch_dtype=torch.float16, device_map="auto") Check out the Transformers documentation to learn more about all the features. Our AutoGPTQ integration has many advantages: - Quantized models are serializable and can be shared on the Hub. - GPTQ drastically reduces the memory requirements to run LLMs, while the inference latency is on par with FP16 inference. - AutoGPTQ supports Exllama kernels for a wide range of architectures. - The integration comes with native RoCm support for AMD GPUs. - Finetuning with PEFT is available. You can check on the Hub if your favorite model has already been quantized. TheBloke, one of Hugging Face top contributors, has quantized a lot of models with AutoGPTQ and shared them on the Hugging Face Hub. We worked together to make sure that these repositories will work out of the box with our integration. This is a benchmark sample for the batch size = 1 case. The benchmark was run on a single NVIDIA A100-SXM4-80GB GPU. We used a prompt length of 512, and generated exactly 512 new tokens. The first row is the unquantized fp16 baseline, while the other rows show memory consumption and performance using different AutoGPTQ kernels. | gptq | act_order | bits | group_size | kernel | Load time (s) | Per-token latency (ms) | Throughput (tokens/s) | Peak memory (MB) | |-------|-----------|------|------------|-------------------|---------------|------------------------|-----------------------|------------------| | False | None | None | None | None | 26.0 | 36.958 | 27.058 | 29152.98 | | True | False | 4 | 128 | exllama | 36.2 | 33.711 | 29.663 | 10484.34 | | True | False | 4 | 128 | autogptq-cuda-old | 36.2 | 46.44 | 21.53 | 10344.62 | A more comprehensive reproducible benchmark is available here.
[ -0.03494005277752876, -0.04245694726705551, 0.02739272452890873, 0.02334677428007126, 0.012968383729457855, 0.053089167922735214, 0.009009754285216331, 0.07523061335086823, 0.02393473871052265, 0.000203258590772748, -0.08720425516366959, 0.12091764062643051, -0.021466832607984543, 0.04056474193930626, 0.015873350203037262, -0.04193468764424324, 0.01771603524684906, -0.03694656118750572, -0.019883109256625175, 0.05958568677306175, 0.03984843194484711, -0.059974540024995804, 0.05232949182391167, 0.015329875983297825, 0.004232502542436123, -0.1181037575006485, 0.02384565956890583, 0.020932557061314583, -0.00004791526953340508, -0.00009882309677777812, -0.10261358320713043, 0.0016245197039097548, 0.00372785865329206, -0.03859936445951462, 0.09163498133420944, -0.00595098128542304, -0.13555943965911865, 0.05709046125411987, 0.06624507904052734, -0.009832480922341347, 0.02439681626856327, -0.0032463963143527508, -0.02451457642018795, 0.03792189434170723, 0.0012013179948553443, 0.0033669848926365376, -0.10159744322299957, 0.07513096183538437, -0.005465493071824312, -0.06266963481903076, -0.02459574118256569, 0.06585033237934113, -0.055709172040224075, 0.006809861399233341, 0.04291609674692154, 0.028307637199759483, -0.002994359703734517, -0.07490107417106628, -0.03688829392194748, 0.029904518276453018, -0.0033602460753172636, -0.003587354440242052, -0.005715603474527597, 0.011684936471283436, -0.005181196611374617, -0.004458574578166008, -0.08361345529556274, 0.03828994557261467, -0.05910513922572136, -0.04095545411109924, -0.001996892038732767, -0.036070145666599274, 0.008439249359071255, -0.06266003102064133, -0.07626763731241226, -0.05408629775047302, -0.06569800525903702, 0.05832034721970558, 0.025364520028233528, 0.05534666031599045, 0.010455957613885403, 0.03100219927728176, 0.019184451550245285, 0.026792608201503754, 0.026915837079286575, 0.018763350322842598, -0.0035515092313289642, -0.07343170791864395, -0.03763188421726227, 0.041024770587682724, -0.052460964769124985, -0.11618664115667343, -0.03298337385058403, 0.00609164871275425, -0.005125874653458595, 0.008955243043601513, -0.005373115185648203, -0.008888715878129005, -0.042284995317459106, -0.028496403247117996, -0.014099188148975372, -0.04000004380941391, 0.019695958122611046, -0.058941129595041275, -0.04487956687808037, 0.06164326146245003, -0.037017822265625, -0.13968420028686523, -0.011160049587488174, -0.03435581550002098, -0.010898242704570293, -0.0247584730386734, 0.034817587584257126, 0.041068531572818756, -0.08128446340560913, 0.02660667523741722, -0.02509043924510479, -0.016696037724614143, 0.04218227043747902, 0.02448144555091858, -0.0019425040809437633, 0.0643378496170044, 0.04425254091620445, -0.011759585700929165, 0.0022608586587011814, 0.05505175516009331, 0.06260901689529419, -0.02016809768974781, 0.011701829731464386, -0.021253114566206932, 0.06279236078262329, -0.0295229684561491, 0.02515195496380329, -0.031582631170749664, 0.005318371579051018, -0.06548848748207092, 0.020832588896155357, -0.0999128594994545, -0.0306329894810915, 0.011554641649127007, -0.03104572743177414, 0.04464494809508324, 0.023613372817635536, -0.009767178446054459, 0.03606390953063965, -0.0007646301528438926, -0.0878637433052063, 0.10017047077417374, -0.030713358893990517, 0.013664910569787025, -0.11795752495527267, 0.04507383704185486, -0.03359980881214142, -0.04113931208848953, -0.001663409871980548, 0.009797352366149426, -0.045242369174957275, 0.025601139292120934, -0.09560371190309525, -0.082796111702919, -0.028899194672703743, -0.01745629869401455, -0.055004656314849854, -0.0058366418816149235, -0.011632723733782768, 0.007811842020601034, -0.007855513133108616, -0.03232266753911972, 0.02923436462879181, 0.014344238676130772, 0.030140621587634087, -0.007904553785920143, 0.06394501030445099, -0.007144560106098652, 0.023016832768917084, 0.07240784168243408, 0.018476227298378944, 0.0284920372068882, -0.02579440362751484, -0.03352668881416321, -0.020681574940681458, 0.05777420103549957, 0.0016230108449235559, 0.09249220043420792, 0.0643385648727417, -0.09974104911088943, 0.03291168808937073, -0.020885508507490158, -0.0022443048655986786, -0.009124384261667728, 0.000023174099624156952, 0.015202824026346207, 0.018909117206931114, 0.028784284368157387, 0.0581694021821022, -0.013335322961211205, -0.019542576745152473, 0.07589727640151978, 0.07520180940628052, 0.04299556091427803, 0.07499203085899353, -0.009551004506647587, 0.0609404556453228, -0.026694610714912415, -0.02283954620361328, 0.017668381333351135, -0.03958050534129143, -0.013374731875956059, 0.009619691409170628, 0.007583775091916323, 0.01910664327442646, -0.1281163990497589, -0.0018321489915251732, -0.029177308082580566, 0.020127905532717705, -0.06371299922466278, 0.005497179925441742, -0.01218158844858408, 0.0031725410372018814, 0.016341203823685646, 0.13895480334758759, 0.006052906159311533, 0.03928143531084061, -0.10954789817333221, -0.036466438323259354, 0.07206879556179047, 0.07710055261850357, 0.04855291172862053, 0.054782819002866745, -0.05709302797913551, -0.004602177534252405, -0.10713982582092285, -0.042942970991134644, 0.03325271233916283, -0.0396835096180439, -0.060445524752140045, 0.012364096008241177, 0.021358009427785873, 0.045118268579244614, 0.034654535353183746, 0.009617420844733715, 0.06226709857583046, -0.021213483065366745, 0.017012950032949448, 0.057230960577726364, 0.04609815031290054, 0.006985804066061974, -0.021682098507881165, -0.027083946391940117, -0.02992868237197399, -0.07324211299419403, -0.007253760937601328, 0.005877774208784103, -0.02596292831003666, 0.04623062163591385, 0.01349562220275402, -0.011586872860789299, 0.003269360400736332, -0.02285730093717575, 0.043662212789058685, 0.03617743402719498, 0.023857105523347855, -0.0024556173011660576, -0.0176638625562191, -0.011892128735780716, -0.018804127350449562, -0.0026377285830676556, 0.012885680422186852, -0.005242289509624243, -0.03243384137749672, 0.005166244693100452, -0.030507385730743408, 0.015029544942080975, 0.028908859938383102, 0.0023161061108112335, 0.06645525246858597, 0.021397247910499573, -0.005951481871306896, -0.02315092459321022, -0.00433530705049634, 0.03256285563111305, -0.03650395944714546, 0.019262991845607758, 0.036645229905843735, -0.016528764739632607, 0.027821533381938934, -0.01874655857682228, -0.06070857122540474, -0.05740559101104736, 0.03462328389286995, 0.011691069230437279, 0.02504320815205574, 0.01285210158675909, -0.03380068391561508, -0.01722819358110428, 0.001975558465346694, 0.015772879123687744, -0.019990375265479088, -0.011407830752432346, 0.031116342172026634, -0.01791958510875702, -0.00597412372007966, 0.01806686446070671, 0.01543610543012619, 0.006200350355356932, -0.010815031826496124, 0.0039488025940954685, 0.03998802974820137, -0.08733188360929489, -0.007006184663623571, -0.015166372060775757, 0.02517407014966011, 0.0069674476981163025, -0.020487003028392792, 0.060029614716768265, 0.027569008991122246, -0.013874082826077938, 0.028715046122670174, 0.04108404368162155, -0.012159829027950764, -0.0028344946913421154, 0.030787555500864983, -0.010129393078386784, 0.015183371491730213, -0.027277028188109398, -0.03103969246149063, 0.03580235317349434, 0.01914173550903797, -0.0038749403320252895, 0.02031201682984829, -0.020950922742486, 0.004659661091864109, -0.011175437830388546, -0.014798799529671669, 0.048314161598682404, -0.00039159489097073674, 0.03341725096106529, -0.01955350860953331, -0.020127905532717705, -0.016679484397172928, 0.003081265604123473, 0.04592905566096306, -0.03484386205673218, -0.04485084116458893, -0.02261768840253353, -0.004403586033731699, 0.022186335176229477, 0.02837553806602955, -0.019412560388445854, -0.0008012918406166136, 0.039814505726099014, -0.020316962152719498, 0.020018337294459343, 0.016048651188611984, 0.00816457998007536, 0.013063665479421616, 0.007829170674085617, -0.01983124203979969, -0.04545134678483009, 0.020712874829769135, -0.009475505910813808, 0.04147719964385033, 0.000652139016892761, 0.03342635929584503, -0.009750781580805779, 0.011507057584822178, 0.017504960298538208, 0.007424511946737766, -0.07246770709753036, 0.011964174918830395, -0.04133453220129013, -0.01438052300363779, 0.002414807677268982, 0.023720603436231613, 0.0024514610413461924, -0.03651222586631775, 0.047189582139253616, 0.009160380810499191, -0.013715794309973717, 0.027980783954262733, 0.041214533150196075, 0.013415345922112465, -0.03245450183749199, 0.020678799599409103, -0.01485898531973362, -0.060096874833106995, 0.029577065259218216, 0.022164715453982353, -0.04131840169429779, -0.02441480942070484, -0.03484320268034935, 0.00007436070154653862, -0.016774483025074005, -0.005382824223488569, 0.02404419146478176, -0.023737182840704918, 0.0717882439494133, -0.0025418151635676622, 0.03865524008870125, -0.04515858739614487, 0.03266992047429085, -0.03248255327343941, -0.010100849904119968, -0.013827976770699024, 0.009189208969473839, 0.017297467216849327, -0.0036578786093741655, 0.019020643085241318, 0.025811925530433655, -0.00448691938072443, 0.0281225573271513, 0.012113441713154316, -0.0387294702231884, 0.03713381290435791, -0.024503597989678383, -0.02602475695312023, 0.02348511666059494, 0.0030722669325768948, 0.018279772251844406, -0.02717229165136814, -0.016117947176098824, -0.020791368559002876, 0.04742887243628502, 0.00872722826898098, 0.021486084908246994, -0.036619655787944794, 0.02338678203523159, 0.0462740920484066, -0.017619363963603973, 0.006921703461557627, -0.04373028874397278, -0.03864596039056778, 0.027216369286179543, -0.0034473626874387264, 0.025372985750436783, 0.00885199848562479, -0.01651245541870594, -0.02326943166553974, -0.047374527901411057, -0.0603303387761116, 0.01738416776061058, -0.005425749346613884, 0.007977505214512348, -0.019658075645565987, -0.02295994758605957, 0.004251238889992237, 0.01101912185549736, -0.02092527598142624, -0.021555567160248756, -0.003502922598272562, 0.03511298820376396, -0.04022592306137085, 0.011521794833242893, -0.01244555413722992, -0.007434482220560312, 0.02954181469976902, -0.008455753326416016, 0.03824528679251671, 0.025159509852528572, -0.03204226493835449, -0.002362322760745883, -0.002874328289180994, 0.03853550925850868, 0.014764015562832355, -0.008158635348081589, 0.010200846008956432, 0.00031722558196634054, 0.03512166067957878, 0.03877028822898865, -2.775643395125371e-7, -0.007201211526989937, -0.016350198537111282, 0.021686160936951637, 0.01386481337249279, -0.0013944930396974087, -0.046048104763031006, -0.010526260361075401, 0.020303864032030106, -0.027729254215955734, 0.007611303590238094, 0.0008593063103035092, -0.04413393884897232, 0.03165264055132866, 0.08956611901521683, 0.04237409308552742, -0.025222834199666977, -0.01120750978589058, 0.005470966454595327, -0.005960062611848116, -0.026132531464099884, 0.024596326053142548, 0.008342730812728405, -0.01385608222335577, 0.00755327008664608, 0.026622064411640167, 0.10712236166000366, 0.005257561802864075, 0.011387080885469913, 0.03961527720093727, -0.01682312972843647, 0.03715948387980461, -0.029102308675646782, -0.020976098254323006, -0.022941015660762787, 0.014922413975000381, 0.012865728698670864, 0.001696589170023799, -0.017203908413648605, 0.0679640844464302, 0.06286550313234329, -0.04235360771417618, -0.030455373227596283, 0.046491652727127075, 0.00866311602294445, 0.010792146436870098, -0.023513345047831535, 0.032288819551467896, -0.030550584197044373, 0.017057642340660095, -0.0073369210585951805, 0.005699381697922945, -0.0057098292745649815, 0.02783859334886074, 0.004367414861917496, -0.02340652607381344, 0.03422000631690025, 0.042610254138708115, 0.04995288327336311, -0.023540375754237175, -0.00827046763151884, -0.018213801085948944, -0.023706048727035522, 0.03923069313168526, -0.02471531368792057, -0.007575911935418844, -0.022006144747138023, -0.019708000123500824, -0.00991498026996851, -0.004323543980717659, -0.022253649309277534, -0.015571779571473598, 0.039525311440229416, 0.01869126409292221, -0.000981125864200294, -0.012470690533518791, -0.00006015950202709064, 0.019645467400550842, -0.034200605005025864, -0.011970903724431992, -0.06748200953006744, -0.04380930960178375, 0.00868786871433258, -0.08082105964422226, 0.04372053220868111, 0.08115410804748535, -0.014815106987953186, -0.02735426276922226, 0.0070169162936508656, 0.035573914647102356, 0.002847342286258936, 0.02370302565395832, 0.004958345089107752, 0.008890129625797272, 0.03573565185070038, 0.010845954529941082, -0.0030800828244537115, 0.025281991809606552, 0.04247612878680229, 0.04188060015439987, -0.05392364412546158, 0.006231687497347593, 0.04405076801776886, -0.008153727278113365, 0.034385960549116135, -0.01652851141989231, -0.05290910601615906, 0.0005309497355483472, 0.015379811637103558, -0.007740121800452471, 0.015474715270102024, 0.01417654100805521, 0.01621166430413723, -0.045214470475912094, -0.00518269557505846, 0.022978993132710457, 0.05595634505152702, -0.006423156708478928, 0.04184304177761078, 0.025825846940279007, 0.044006332755088806, 0.03815602511167526, 0.018395915627479553, 0.023205913603305817, -0.004602913279086351, 0.06929631531238556, 0.001650764374062419, 0.017725540325045586, 0.04417988285422325, 0.00006837709224782884, -0.011043167673051357, 0.0031625800766050816, -0.0029170087072998285, -0.045734189450740814, 0.0196085125207901, 0.04822660982608795, -0.008958850055932999, 0.023871950805187225, 0.00875067338347435, 0.05234261602163315, 0.052405279129743576, 0.028037089854478836, -0.017634373158216476, 0.02623888850212097, -0.010208251886069775, 0.012066347524523735, 0.04627937078475952, -0.014652112498879433, 0.006189238745719194, -0.03029230237007141, 0.04850468039512634, 0.012980100698769093, 0.03926757723093033, -0.007024696562439203, -0.02431666851043701, -0.009393270127475262, -0.0391182005405426, -0.026326509192585945, 0.046049002557992935, 0.011539379134774208, 0.0227221567183733, -0.0312793143093586, 0.013514344580471516, 0.009852548129856586, 0.02907790057361126, -0.003940935712307692, 0.0011465527350082994, 0.02473169006407261, -0.025024941191077232, 0.0070561752654612064, 0.03490811213850975, 0.025239989161491394, -0.02029573544859886, 0.039581846445798874, 0.06180651858448982, -0.021351687610149384, 0.023907305672764778, -0.026302432641386986, -0.029196323826909065, -0.0216111708432436, 0.005679478868842125, -0.019165223464369774, 0.04152056947350502, -0.010280040092766285, -0.0009315575589425862, 0.032188963145017624, 0.031951844692230225, -0.010005297139286995, -0.0002824739785864949, 0.014497434720396996, 0.0008529434562660754, -0.0287715345621109, -0.006529306527227163, -0.021557943895459175, -0.020582089200615883, 0.04497981071472168, -0.032056763768196106, 0.02104388177394867, -0.02955508418381214, 0.044209059327840805, 0.07855667173862457, 0.049410246312618256, -0.022175319492816925, -0.054541077464818954, 0.006551251281052828, -0.03747258707880974, -0.03745178133249283, 0.030761053785681725, -0.03112509846687317, -0.001557450625114143, 0.015019547194242477, -0.016850709915161133, 0.03255505487322807, 0.020474573597311974, 0.004718027077615261, 0.05897169187664986, 0.02373030036687851, -0.019482219591736794, 0.002787618665024638, 0.05140761286020279, -0.01900378242135048, 0.016267821192741394, 0.02925492450594902, -0.018307873979210854, 0.005913786590099335, 0.0045476858504116535, 0.003844526130706072, -0.06354448199272156, 0.026384126394987106, -0.029803656041622162, -0.028657341375947, -0.014267788268625736, -0.020276721566915512, 0.013162110932171345, 0.004453220870345831, -0.03142194449901581, -0.02551128715276718, -0.0485103577375412, -0.0032600394915789366, 0.018767112866044044, 0.013355866074562073, 0.05562446638941765, 0.048259228467941284, 0.033125121146440506, -0.000763010757509619, -0.05015918239951134, -0.006886959541589022, -0.02075273171067238, 0.014387317933142185, 0.04820830002427101, -0.014530694112181664, -0.007302078418433666, -0.05227281525731087, -0.0063188043422997, 0.006208101753145456, -0.047620125114917755, 0.03517405316233635, -0.004216792061924934, -0.010737545788288116, -0.03821469843387604, -0.007024264894425869, 0.022413158789277077, 0.004995330702513456, 0.03893481567502022, -0.03788547217845917, 0.0003227028646506369, 0.024721883237361908, -0.02439543418586254, -0.07267966866493225, -0.017996927723288536, -0.023863613605499268, -0.018520722165703773, -0.0039690458215773106, 0.004014029633253813, 0.003187579568475485, 0.016742322593927383, 0.016898030415177345, 0.0020008482970297337, 0.0013950634747743607, -0.0076654935255646706, -0.033067476004362106, -0.013629793189466, 0.07148092985153198, -0.013970507308840752, -0.011102436110377312, 0.005718240514397621, -0.015215407125651836, -0.02235303446650505, -0.006496889982372522, -0.03674732893705368, 0.00690394826233387, 0.03150754049420357, -0.02185526303946972, -0.009854150004684925, 0.018797054886817932, 0.007784741465002298, -0.024777423590421677, -0.03933649882674217, -0.02710954286158085 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
A gentle summary of the GPTQ paper Quantization methods usually belong to one of two categories: 1. Post-Training Quantization (PTQ): We quantize a pre-trained model using moderate resources, such as a calibration dataset and a few hours of computation. 2. Quantization-Aware Training (QAT): Quantization is performed before training or further fine-tuning. GPTQ falls into the PTQ category and this is particularly interesting for massive models, for which full model training or even fine-tuning can be very expensive. Specifically, GPTQ adopts a mixed int4/fp16 quantization scheme where weights are quantized as int4 while activations remain in float16. During inference, weights are dequantized on the fly and the actual compute is performed in float16. The benefits of this scheme are twofold: - Memory savings close to x4 for int4 quantization, as the dequantization happens close to the compute unit in a fused kernel, and not in the GPU global memory. - Potential speedups thanks to the time saved on data communication due to the lower bitwidth used for weights. The GPTQ paper tackles the layer-wise compression problem: Given a layer \(l\) with weight matrix \(W_{l}\) and layer input \(X_{l}\), we want to find a quantized version of the weight \(\hat{W}{l}\) to minimize the mean squared error (MSE): \({\hat{W}{l}}^{} = argmin_{\hat{W_{l}}} \|W_{l}X-\hat{W}{l}X\|^{2}{2}\) Once this is solved per layer, a solution to the global problem can be obtained by combining the layer-wise solutions. In order to solve this layer-wise compression problem, the author uses the Optimal Brain Quantization framework (Frantar et al 2022). The OBQ method starts from the observation that the above equation can be written as the sum of the squared errors, over each row of \(W_{l}\). \( \sum_{i=0}^{d_{row}} \|W_{l[i,:]}X-\hat{W}{l[i,:]}X\|^{2}{2} \) This means that we can quantize each row independently. This is called per-channel quantization. For each row \(W_{l[i,:]}\), OBQ quantizes one weight at a time while always updating all not-yet-quantized weights, in order to compensate for the error incurred by quantizing a single weight. The update on selected weights has a closed-form formula, utilizing Hessian matrices. The GPTQ paper improves this framework by introducing a set of optimizations that reduces the complexity of the quantization algorithm while retaining the accuracy of the model. Compared to OBQ, the quantization step itself is also faster with GPTQ: it takes 2 GPU-hours to quantize a BERT model (336M) with OBQ, whereas with GPTQ, a Bloom model (176B) can be quantized in less than 4 GPU-hours. To learn more about the exact algorithm and the different benchmarks on perplexity and speedups, check out the original paper.
[ 0.013387920334935188, -0.040570635348558426, 0.016766900196671486, 0.045837026089429855, 0.036647770553827286, 0.035459645092487335, -0.017851563170552254, 0.05918298661708832, 0.022431064397096634, -0.01590915024280548, -0.034595344215631485, 0.00753380823880434, -0.021493401378393173, 0.004628468304872513, -0.008844666182994843, 0.001967491814866662, 0.0714041143655777, -0.0730087086558342, 0.023370223119854927, 0.005514948163181543, -0.006883999798446894, 0.0033672372810542583, 0.01385121513158083, -0.010601013898849487, 0.027195164933800697, -0.06542332470417023, 0.04274449869990349, 0.019646618515253067, -0.008512905798852444, 0.037273529917001724, -0.09558373689651489, 0.015730738639831543, -0.05877717211842537, 0.005787297617644072, 0.02837912179529667, -0.03891295939683914, -0.0787440687417984, 0.023421090096235275, 0.0623578242957592, -0.041116416454315186, 0.02389940619468689, -0.021728111431002617, -0.012885411269962788, 0.057493776082992554, -0.0256201159209013, 0.03440875932574272, -0.08659497648477554, 0.06050746515393257, -0.051991160959005356, -0.11681563407182693, -0.026924198493361473, 0.04898670315742493, -0.09158799797296524, 0.04032815247774124, -0.02595151960849762, -0.008682948537170887, 0.0015334172639995813, -0.07036194205284119, -0.04304598644375801, -0.05716363713145256, 0.04228933900594711, -0.028872787952423096, 0.018367506563663483, 0.0288236103951931, 0.08203446865081787, 0.009185141883790493, -0.009695752523839474, 0.018232619389891624, -0.05056629329919815, 0.028504814952611923, -0.03889165446162224, -0.010156819596886635, 0.007821058854460716, -0.054005641490221024, -0.04362329840660095, -0.01060141809284687, -0.018791835755109787, 0.038813430815935135, 0.024334508925676346, 0.008947215043008327, 0.007509295828640461, -0.021882377564907074, 0.017731547355651855, 0.02977604791522026, 0.025288954377174377, -0.027776727452874184, 0.0579095184803009, -0.07161460071802139, -0.041448645293712616, 0.05831759050488472, 0.002206446835771203, -0.1111820638179779, -0.02668788842856884, -0.004821657203137875, 0.03666561469435692, -0.028057685121893883, 0.004660889506340027, -0.03407871350646019, -0.007389037404209375, -0.0026382384821772575, 0.029869159683585167, -0.029439957812428474, 0.027379365637898445, -0.013609127141535282, -0.07944595068693161, 0.07259223610162735, -0.05195250362157822, -0.14856761693954468, -0.038223035633563995, 0.010470901615917683, 0.01500310655683279, 0.03995101898908615, 0.018709663301706314, -0.046320591121912, -0.09753332287073135, 0.08511663973331451, -0.010347620584070683, -0.021945348009467125, 0.007087303791195154, 0.03576278313994408, -0.03275102749466896, 0.08990660309791565, 0.04912622272968292, -0.0037936160806566477, -0.038624390959739685, -0.02491670288145542, 0.08229059725999832, -0.051501598209142685, 0.012567617930471897, 0.008180688135325909, 0.07507923990488052, 0.008267632685601711, 0.055285219103097916, -0.050869766622781754, 0.026154592633247375, -0.014594181440770626, 0.013150488957762718, -0.046288419514894485, -0.08419094234704971, -0.06697189062833786, -0.030299823731184006, 0.03365236893296242, -0.024215856567025185, -0.02622741274535656, 0.012366232462227345, -0.01794504001736641, -0.06288481503725052, 0.02989139035344124, 0.044558171182870865, 0.01942388527095318, -0.08456394076347351, -0.0072521851398050785, -0.051110848784446716, -0.06976606696844101, 0.016920654103159904, -0.0080917002633214, -0.036548588424921036, -0.03930053114891052, -0.08071787655353546, -0.06706801801919937, -0.0075403000228106976, -0.06806040555238724, 0.018353192135691643, 0.018162168562412262, 0.013461231254041195, -0.04489193111658096, 0.016141293570399284, 0.01064620353281498, -0.0218039583414793, 0.03055587038397789, 0.03465357422828674, -0.01348852925002575, 0.11816365271806717, 0.009385773912072182, 0.018140818923711777, 0.046218812465667725, 0.030483607202768326, 0.0989864319562912, -0.014622676186263561, 0.03170740231871605, -0.056052178144454956, -0.01191906537860632, 0.004958627745509148, -0.0053045134991407394, 0.04338967055082321, -0.1228693351149559, 0.01535013783723116, -0.035180673003196716, 0.013683821074664593, 0.019753199070692062, -0.06509678065776825, 0.022081606090068817, 0.04290417581796646, -0.032363735139369965, 0.07470234483480453, -0.11817307025194168, -0.012570377439260483, 0.181682288646698, 0.04646870121359825, 0.03130025416612625, 0.060844536870718, 0.0017274236306548119, 0.03241680935025215, -0.02364536188542843, -0.017484428361058235, 0.02381810173392296, -0.0161860603839159, -0.0030850654002279043, -0.010504116304218769, -0.03162652999162674, -0.0014584496384486556, -0.07203994691371918, -0.013601887971162796, -0.020489679649472237, 0.00008151349175022915, -0.004738743416965008, 0.030586138367652893, 0.0576862096786499, 0.013135327957570553, -0.04315223544836044, 0.1522032767534256, -0.0011442628456279635, -0.00902558397501707, 0.010559244081377983, -0.043293971568346024, 0.02668876200914383, 0.06874731928110123, -0.04071957245469093, 0.06474170833826065, -0.051356423646211624, -0.028353316709399223, -0.11659117043018341, 0.04756336659193039, 0.05959107726812363, 0.03432895243167877, -0.04690736159682274, -0.018373263999819756, -0.0130302794277668, 0.09017512202262878, -0.0017357065808027983, -0.004395915661007166, 0.05108116194605827, -0.015196040272712708, -0.023859193548560143, 0.008037290535867214, 0.009151478298008442, 0.05842198431491852, 0.0013100887881591916, -0.03865719214081764, -0.06551860272884369, -0.018985917791724205, 0.037180133163928986, -0.04046131670475006, -0.02250741608440876, -0.00920775905251503, 0.012651100754737854, 0.03373324126005173, 0.017770031467080116, -0.011267870664596558, -0.0009400280541740358, -0.025419043377041817, -0.0013270318740978837, -0.014544785022735596, -0.009769044816493988, -0.002989416942000389, -0.0008484884747304022, 0.003788238624110818, 0.03351718559861183, 0.009511072188615799, -0.03717060014605522, 0.04513758793473244, 0.002709184307605028, -0.016677383333444595, 0.02743232250213623, -0.014514104463160038, 0.011501776054501534, -0.025931639596819878, -0.028776247054338455, -0.059732694178819656, 0.006146238651126623, 0.017834356054663658, -0.02296135015785694, 0.03584642708301544, 0.05298355594277382, 0.019489802420139313, 0.013352926820516586, 0.028297245502471924, -0.019871611148118973, -0.022755900397896767, 0.05337023735046387, 0.01219787634909153, 0.034184593707323074, -0.0217429269105196, -0.006509772501885891, 0.00835098884999752, 0.013393108732998371, -0.006293933372944593, 0.025278987362980843, 0.020853320136666298, 0.03267372399568558, 0.00871361792087555, -0.0037603264208883047, 0.005720084998756647, 0.0057218438014388084, -0.00805849302560091, 0.026056939736008644, 0.03826334699988365, 0.07255424559116364, -0.09248955547809601, -0.036124564707279205, 0.038957059383392334, 0.050234489142894745, -0.06430581212043762, -0.015574297867715359, 0.032248567789793015, -0.011734196916222572, -0.02179495058953762, -0.02917744778096676, 0.050247907638549805, 0.0074874283745884895, 0.017999500036239624, 0.03654733672738075, 0.001975156832486391, 0.04509502649307251, -0.022305741906166077, -0.023331250995397568, 0.00886478926986456, 0.09205615520477295, -0.01733907125890255, 0.03443199768662453, -0.006429149303585291, 0.004390006419271231, -0.015106103383004665, -0.020372137427330017, -0.015685541555285454, 0.02176017314195633, 0.03197767958045006, 0.011076727882027626, -0.027862191200256348, -0.023828281089663506, 0.03389335423707962, 0.024202635511755943, -0.00010403681517345831, -0.014363173395395279, 0.010515180416405201, 0.040980610996484756, -0.05041474103927612, 0.030273009091615677, -0.015446875244379044, 0.02299758605659008, 0.009929630905389786, -0.023386431857943535, 0.01918100379407406, 0.019852591678500175, 0.025365151464939117, 0.005244466941803694, 0.062390852719545364, -0.031888388097286224, -0.04146447032690048, -0.012547675520181656, -0.005551752168685198, 0.01841931790113449, 0.002420498989522457, 0.018644465133547783, -0.0059007927775382996, 0.01591961272060871, 0.03225420042872429, 0.021247344091534615, -0.015009408816695213, -0.0037377714179456234, 0.025546642020344734, -0.014533410780131817, -0.010712454095482826, 0.0047101727686822414, -0.013115467503666878, -0.028718724846839905, -0.000583022425416857, 0.03812931478023529, 0.011790843680500984, 0.027643918991088867, 0.016839411109685898, 0.00004483775774133392, -0.018774988129734993, 0.02622837945818901, -0.047761984169483185, -0.014799211174249649, 0.06096133217215538, 0.0051820785738527775, -0.03153402358293533, -0.0392095223069191, -0.01777706854045391, -0.015028472058475018, 0.0050196535885334015, 0.011904732324182987, 0.018720898777246475, -0.007583295460790396, 0.018214261159300804, 0.006381602957844734, 0.037281423807144165, -0.0015443675220012665, 0.0412389375269413, -0.018201716244220734, -0.015634212642908096, 0.02170564793050289, 0.0411519855260849, 0.01896991766989231, -0.0010048645781353116, 0.04092151299118996, 0.024022260680794716, -0.030220897868275642, -0.004792002961039543, -0.05837736278772354, 0.003453795099630952, 0.02493947558104992, -0.02669970691204071, -0.006505931261926889, 0.009446128271520138, 0.06577808409929276, 0.01845969259738922, -0.0224476158618927, -0.01122961938381195, -0.01944941282272339, 0.06550445407629013, -0.03248760476708412, -0.036932624876499176, -0.023613201454281807, 0.010131165385246277, 0.020283609628677368, 0.006571036297827959, 0.016971105709671974, -0.03288466855883598, -0.007745096459984779, 0.027709290385246277, 0.04250766709446907, -0.03288442641496658, -0.002241878304630518, -0.0014237479772418737, -0.028828568756580353, -0.009503359906375408, -0.039384517818689346, -0.006727693602442741, -0.000909644179046154, 0.034915514290332794, 0.01408038567751646, -0.011778103187680244, 0.010449745692312717, 0.008854391053318977, -0.045303404331207275, -0.026291729882359505, 0.0173871498554945, 0.030503947287797928, -0.07192932814359665, 0.018199265003204346, 0.022638650611042976, -0.02179148979485035, 0.0008671663235872984, -0.03131576627492905, 0.05027305707335472, 0.03084336593747139, -0.008417274802923203, -0.03884490206837654, -0.028319362550973892, 0.037596408277750015, -0.0040480406023561954, 0.005037953145802021, -0.005010202992707491, 0.001079546520486474, 0.03790722414851189, 0.022718215361237526, 0.02359588071703911, -0.05766754224896431, 0.00040346174500882626, 0.02796851471066475, -0.020895114168524742, -0.0018752414034679532, -0.016138652339577675, 0.006783287040889263, 0.0036433630157262087, 0.01595166325569153, -0.002361704595386982, 0.032710447907447815, -0.045547716319561005, 0.04535190388560295, 0.01706523261964321, -0.007824325002729893, -0.0011425347765907645, 0.015580852515995502, 0.01861932873725891, -0.02290341816842556, 0.007995042949914932, -0.00394640676677227, 0.026172040030360222, 0.007859700359404087, -0.0024139764718711376, 0.010062126442790031, 0.09915098547935486, -0.015126935206353664, 0.019146237522363663, 0.07418612390756607, 0.03332962095737457, 0.08596927672624588, -0.028110701590776443, -0.013867155648767948, 0.005963736213743687, 0.018992645666003227, 0.01050687488168478, 0.0020587758626788855, 0.002117503434419632, 0.03914641961455345, 0.05397345498204231, -0.024073930457234383, 0.004613032098859549, 0.01665513589978218, 0.004241430200636387, -0.0492953285574913, -0.03311329334974289, 0.009884671308100224, -0.006382162682712078, -0.0038165058940649033, 0.0116448774933815, -0.03626817837357521, -0.052984606474637985, -0.0015210594283416867, -0.0036826967261731625, -0.02812519483268261, 0.03141216188669205, 0.04491746425628662, 0.04640286788344383, -0.01841217838227749, -0.020451774820685387, -0.016845956444740295, -0.03067428432404995, 0.00035032921005040407, -0.048601508140563965, -0.006651029456406832, -0.014147856272757053, -0.002793711144477129, 0.012443742714822292, -0.018651261925697327, -0.02193077653646469, -0.03132322430610657, 0.03897419199347496, -0.01439476665109396, -0.048621464520692825, -0.004971049260348082, -0.006048393901437521, -0.009772945195436478, -0.010351132601499557, -0.01777872070670128, -0.05479061231017113, -0.044291798025369644, -0.0005687208031304181, -0.09925924986600876, 0.027186213061213493, 0.05363779515028, -0.029558885842561722, -0.00946797151118517, -0.003075122833251953, 0.023029500618577003, 0.007743380963802338, 0.014817342162132263, 0.0224746186286211, 0.005112665239721537, 0.03523882105946541, 0.02091335318982601, -0.006566403433680534, 0.03934520483016968, 0.039678703993558884, 0.06320808827877045, -0.02072012983262539, -0.0028287405148148537, 0.05430087074637413, -0.00742203276604414, 0.057847581803798676, -0.011948631145060062, -0.06268202513456345, -0.0025969797279685736, 0.048245955258607864, 0.03562016785144806, 0.014594330452382565, -0.004149482119828463, 0.016230426728725433, -0.045534633100032806, -0.025377778336405754, -0.024788616225123405, 0.059287529438734055, -0.02333025075495243, 0.018713584169745445, 0.005053326021879911, 0.03570741415023804, 0.042335961014032364, -0.030904006212949753, 0.029687531292438507, 0.01859448291361332, 0.02158115990459919, 0.002065615961328149, 0.02014791965484619, 0.01624113880097866, -0.023472487926483154, -0.01031923945993185, -0.016760123893618584, -0.02673664502799511, -0.05273352935910225, 0.007649409584701061, 0.027873912826180458, -0.02592879720032215, 0.0796690359711647, -0.04354250803589821, 0.04657602682709694, 0.0682700052857399, 0.0010697373654693365, -0.004456809721887112, 0.0325731486082077, 0.01050883810967207, -0.009854349307715893, -0.010242829099297523, -0.023765480145812035, -0.02060205116868019, 0.007981337606906891, 0.05098176747560501, -0.005978670436888933, 0.03670824319124222, 0.003932009916752577, -0.05127204209566116, 0.03305691480636597, 0.02728373371064663, 0.05301389470696449, 0.04074127599596977, 0.02011450007557869, 0.015596157871186733, 0.021718984469771385, 0.021105162799358368, -0.03867058455944061, 0.03324010223150253, -0.017033636569976807, -0.012063073925673962, -0.016413019970059395, -0.033596839755773544, 0.01501618605107069, 0.03305010870099068, 0.004707490559667349, -0.04266016185283661, 0.011167406104505062, 0.015462435781955719, -0.031061239540576935, 0.0013959669740870595, -0.00862056203186512, 0.002913682721555233, -0.006702200043946505, -0.015555981546640396, -0.045092351734638214, 0.009356909431517124, 0.005853921175003052, 0.017212385311722755, 0.019993528723716736, 0.014086607843637466, -0.009500140324234962, 0.006580649875104427, -0.016072113066911697, -0.0030270509887486696, -0.01109092403203249, 0.023484228178858757, -0.015645558014512062, -0.0185138788074255, 0.03998187556862831, -0.04955887794494629, 0.0011324238730594516, -0.005206731613725424, 0.04596920683979988, 0.029316827654838562, 0.02327711321413517, -0.0022192623000591993, -0.049791499972343445, -0.030211735516786575, 0.00936906598508358, -0.010321914218366146, 0.004770608618855476, -0.006143059581518173, -0.01627247780561447, -0.010460393503308296, 0.022205734625458717, 0.002989275846630335, -0.0045457989908754826, -0.010678024962544441, 0.023046385496854782, -0.0342823751270771, 0.013075966387987137, 0.001327141304500401, 0.05362889543175697, -0.05311921611428261, -0.0029699327424168587, 0.05482450872659683, 0.037306759506464005, 0.02646815963089466, -0.015460296534001827, 0.012566115707159042, -0.03322086110711098, 0.020538724958896637, -0.038697075098752975, -0.054493021219968796, -0.04835059493780136, 0.03258270397782326, 0.03602759912610054, 0.009246551431715488, -0.0013127371203154325, -0.02164938673377037, -0.043440256267786026, -0.01745632104575634, -0.013824711553752422, -0.012278671376407146, 0.08529835939407349, 0.026878656819462776, -0.007715555839240551, 0.030238792300224304, -0.06110629811882973, -0.01202617771923542, -0.005963651463389397, -0.006972367409616709, 0.05366897955536842, 0.0265920739620924, 0.00998680293560028, -0.025808336213231087, 0.018258528783917427, -0.0251874178647995, -0.024830497801303864, -0.002195900771766901, -0.009446987882256508, -0.022611798718571663, -0.052004966884851456, -0.0047176191583275795, -0.0022283270955085754, 0.03282565996050835, 0.005207292269915342, 0.005144955590367317, 0.015608291141688824, 0.04747400060296059, -0.041121188551187515, -0.07018724828958511, -0.0016652762424200773, -0.011430887505412102, 0.02787560410797596, 0.01163189485669136, 0.038222283124923706, 0.041104622185230255, -0.004648581147193909, 0.008871500380337238, -0.02836257964372635, -0.002609790535643697, 0.012380295433104038, -0.008180717006325722, 0.014351146295666695, 0.02476547658443451, -0.0253199003636837, -0.01869104616343975, -0.024262988939881325, -0.024796631187200546, -0.015349485911428928, 0.0013444555224850774, 0.004239760339260101, 0.0343155600130558, -0.020232457667589188, 0.019040226936340332, 0.018431397154927254, 0.054128147661685944, 0.026705140247941017, 0.03218371421098709, 0.005250901449471712, -0.0015791619662195444 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Quantizing models with the Optimum library To seamlessly integrate AutoGPTQ into Transformers, we used a minimalist version of the AutoGPTQ API that is available in Optimum, Hugging Face's toolkit for training and inference optimization. By following this approach, we achieved easy integration with Transformers, while allowing people to use the Optimum API if they want to quantize their own models! Check out the Optimum documentation if you want to quantize your own LLMs. Quantizing 🤗 Transformers models with the GPTQ method can be done in a few lines: python from transformers import AutoModelForCausalLM, AutoTokenizer, GPTQConfig model_id = "facebook/opt-125m" tokenizer = AutoTokenizer.from_pretrained(model_id) quantization_config = GPTQConfig(bits=4, dataset = "c4", tokenizer=tokenizer) model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", quantization_config=quantization_config) Quantizing a model may take a long time. Note that for a 175B model, at least 4 GPU-hours are required if one uses a large dataset (e.g. `"c4"``). As mentioned above, many GPTQ models are already available on the Hugging Face Hub, which bypasses the need to quantize a model yourself in most use cases. Nevertheless, you can also quantize a model using your own dataset appropriate for the particular domain you are working on.
[ 0.014800336211919785, -0.005414281506091356, 0.04151672497391701, 0.03728203848004341, 0.01676338165998459, 0.08266796916723251, 0.01732955127954483, 0.037822175770998, 0.02189195342361927, 0.0051436820067465305, -0.06613212823867798, 0.10558850318193436, -0.040831368416547775, 0.05510310083627701, 0.01018954161554575, -0.042935390025377274, 0.010287088342010975, 0.025284599512815475, 0.011743382550776005, 0.035340845584869385, 0.003760778345167637, -0.05071880668401718, 0.04218586906790733, 0.002268837997689843, 0.021952740848064423, -0.10178975760936737, 0.024246465414762497, 0.034798093140125275, 0.01019216701388359, 0.032347675412893295, -0.060022272169589996, -0.015486175194382668, -0.018204251304268837, -0.033269524574279785, 0.0658591091632843, -0.010552408173680305, -0.15771320462226868, 0.0027952820528298616, 0.056086938828229904, -0.02567119710147381, 0.028475256636738777, 0.002953025745227933, -0.06376763433218002, 0.004696856252849102, 0.008650638163089752, 0.0025962605141103268, -0.15108045935630798, 0.10455203056335449, -0.02029821090400219, -0.1295342594385147, -0.0006399276899173856, 0.09271417558193207, -0.04328066483139992, -0.003035687142983079, 0.037164587527513504, -0.009736189618706703, 0.011606600135564804, -0.0961976870894432, -0.04246436804533005, 0.03623904660344124, 0.029009705409407616, -0.04155070334672928, 0.020167823880910873, 0.018357926979660988, 0.016441013664007187, 0.027800412848591805, -0.08834412693977356, 0.029660630971193314, -0.0400029718875885, -0.04692080244421959, -0.007464451249688864, -0.024555200710892677, -0.030968664214015007, -0.034605734050273895, -0.05100341513752937, -0.0222233384847641, -0.02578420378267765, 0.05142224580049515, 0.050599295645952225, 0.048370976001024246, -0.009662280790507793, 0.02045244537293911, 0.027814500033855438, -0.006913702003657818, 0.042026761919260025, 0.030783766880631447, -0.031281162053346634, -0.04880953207612038, -0.04483487829566002, 0.04160558059811592, -0.04116124287247658, -0.13015085458755493, -0.054290879517793655, -0.05635954812169075, 0.03560297191143036, -0.005671487655490637, 0.030239826068282127, 0.02825506590306759, -0.05343668907880783, -0.05441239848732948, -0.006087952759116888, 0.005452160723507404, -0.0016755101969465613, -0.018407432362437248, -0.06740978360176086, 0.04993819072842598, -0.009531529620289803, -0.118881955742836, -0.036095742136240005, 0.0036541700828820467, -0.0037403127644211054, -0.003793887095525861, 0.01104662660509348, 0.035296615213155746, -0.062293641269207, 0.05277353152632713, 0.008044656366109848, -0.015599709004163742, 0.033433232456445694, 0.03446469083428383, 0.0033847109880298376, 0.07479241490364075, 0.07462867349386215, -0.008267728611826897, 0.03128145635128021, 0.026800908148288727, 0.06246160715818405, -0.013531493954360485, 0.03485662862658501, -0.005846996325999498, 0.05016482248902321, -0.017593158408999443, 0.05872571840882301, -0.02185012400150299, -0.002213862258940935, -0.07597358524799347, 0.024815229699015617, -0.08040334284305573, -0.045662399381399155, -0.0220464039593935, 0.018166719004511833, 0.06374995410442352, 0.004774691071361303, 0.0048462706618011, 0.04737319052219391, 0.015545091591775417, -0.07954437285661697, 0.08763321489095688, 0.002778462367132306, 0.051744766533374786, -0.10959862917661667, 0.04867343232035637, -0.04952636733651161, -0.07204236090183258, 0.012461764737963676, 0.05267217382788658, -0.04499983415007591, 0.017914962023496628, -0.07485063374042511, -0.03790030628442764, -0.023688312619924545, -0.017864320427179337, -0.04830988496541977, 0.006912772078067064, 0.018229294568300247, 0.00600800197571516, -0.017892511561512947, 0.03766871243715286, -0.030998582020401955, 0.018915250897407532, 0.02845906652510166, -0.00009338946983916685, 0.06464656442403793, -0.03003375604748726, 0.014533058740198612, 0.061045367270708084, 0.032786186784505844, 0.04326711222529411, -0.06425576657056808, 0.010903863236308098, -0.05820547789335251, 0.052335310727357864, -0.006892540957778692, 0.044236864894628525, 0.0810626670718193, -0.10175597667694092, 0.01567000523209572, -0.012154364958405495, -0.015800563618540764, -0.036657094955444336, -0.01253504864871502, -0.0007569530862383544, 0.056197647005319595, -0.01686718314886093, 0.051179807633161545, -0.03559156134724617, -0.02608400769531727, 0.1145477220416069, 0.04681483656167984, 0.031047897413372993, 0.03285618871450424, -0.035358525812625885, 0.05771448835730553, -0.0622500441968441, 0.012509388849139214, 0.03765759989619255, -0.029458846896886826, -0.028820160776376724, 0.04188178479671478, 0.011927402578294277, 0.039929650723934174, -0.1015193834900856, -0.024094851687550545, -0.029172783717513084, -0.03135213628411293, -0.06386303901672363, -0.03655044734477997, 0.04816925898194313, 0.0010268347105011344, -0.010304744355380535, 0.14636746048927307, -0.00560670904815197, 0.034077342599630356, -0.0884527787566185, -0.040639784187078476, 0.012413209304213524, 0.0647059753537178, 0.04724984988570213, 0.05169672146439552, -0.06451020389795303, -0.005560626275837421, -0.09433344006538391, 0.0021100444719195366, 0.004258655942976475, -0.047628048807382584, -0.0607464499771595, -0.00890085007995367, 0.020467305555939674, 0.08576031029224396, 0.044946275651454926, 0.01283155009150505, 0.024343891069293022, -0.029459679499268532, 0.010270055383443832, 0.05963288992643356, 0.08266878128051758, 0.036451224237680435, -0.029169803485274315, -0.03797519952058792, -0.02252604067325592, -0.056721560657024384, -0.0029373010620474815, 0.0004517035267781466, -0.03592570126056671, 0.04449460655450821, 0.00035736168501898646, 0.005779912229627371, 0.02917235530912876, -0.020907532423734665, 0.03218438848853111, 0.02060357853770256, 0.01754954271018505, 0.005112599115818739, -0.004952266346663237, -0.0042372457683086395, -0.03548330068588257, 0.011300855316221714, 0.008296513929963112, -0.042104531079530716, -0.005082784220576286, 0.005772820208221674, -0.02703924849629402, 0.043797288089990616, 0.0348687581717968, 0.020810944959521294, 0.050505630671978, 0.03192780911922455, -0.032289113849401474, -0.02664273977279663, -0.019921761006116867, 0.01569708064198494, -0.027768900617957115, 0.02700350061058998, 0.015085749328136444, -0.002615249715745449, -0.015545262955129147, -0.030016854405403137, -0.05240271985530853, -0.0466330423951149, 0.043212443590164185, 0.006337418686598539, 0.07759928703308105, -0.0003840138379018754, -0.02949662320315838, 0.00586259039118886, 0.003015509806573391, -0.001697872648946941, -0.01340095978230238, 0.011196557432413101, 0.03929455578327179, -0.005249562673270702, -0.00665915897116065, 0.00399783905595541, -0.01054353453218937, -0.022173071280121803, 0.022707439959049225, 0.029056275263428688, 0.031192030757665634, -0.0943196639418602, -0.004147743806242943, -0.007444664835929871, -0.0005761662614531815, 0.010918496176600456, -0.0237725917249918, 0.060310568660497665, -0.0026295515708625317, -0.03169238194823265, 0.01364238653331995, 0.049046389758586884, -0.019787080585956573, 0.035625167191028595, 0.04367919638752937, -0.01173250563442707, -0.021992158144712448, -0.008526002988219261, -0.032777056097984314, 0.025985363870859146, 0.05312096327543259, -0.009215309284627438, 0.035967469215393066, -0.0012504988117143512, 0.002626079134643078, 0.02462821826338768, -0.0418018139898777, 0.030863961204886436, 0.003661104943603277, 0.0371934212744236, -0.018019145354628563, -0.025384340435266495, -0.018791377544403076, -0.010620287619531155, 0.028059862554073334, -0.018373966217041016, -0.012235095724463463, -0.004489975981414318, 0.01731119677424431, 0.008973914198577404, 0.02212485484778881, -0.012414053082466125, -0.0013328352943062782, 0.015842171385884285, -0.04251018166542053, 0.026300078257918358, 0.023684564977884293, -0.016945870593190193, 0.00834445096552372, 0.011142008937895298, -0.028734523802995682, -0.04187733307480812, -0.007121275644749403, -0.002198068192228675, 0.03942703455686569, -0.002834019949659705, 0.0360126830637455, -0.007702166680246592, -0.0036851626355201006, 0.026536962017416954, 0.009759614244103432, -0.045895472168922424, 0.0014500162797048688, -0.013367597945034504, -0.010135894641280174, -0.012446224689483643, 0.033483803272247314, -0.0026383521035313606, -0.01924535073339939, 0.04355569928884506, 0.04348108544945717, 0.009609831497073174, 0.017331987619400024, 0.018640898168087006, 0.017179209738969803, -0.02354024350643158, 0.012163909152150154, -0.028775550425052643, -0.030654624104499817, 0.047659363597631454, 0.03449567034840584, -0.01792469620704651, -0.031839385628700256, -0.028338264673948288, 0.016085932031273842, -0.03311019390821457, -0.013751715421676636, 0.025168446823954582, -0.022584330290555954, 0.014828902669250965, 0.008704300038516521, 0.03154274821281433, -0.033411506563425064, 0.02344425581395626, -0.027012309059500694, -0.03488169237971306, 0.010319131426513195, 0.05099615827202797, -0.0006902790628373623, 0.0017611494986340404, -0.00015291411546058953, 0.02447524480521679, 0.003021666780114174, 0.005805755499750376, -0.006358889862895012, -0.032353729009628296, 0.01487746648490429, -0.022565605118870735, -0.026745416224002838, 0.039041321724653244, 0.018733233213424683, 0.03222541883587837, -0.014278406277298927, -0.0369022935628891, -0.02788231521844864, 0.0625404641032219, -0.010355896316468716, -0.013346580788493156, -0.044856783002614975, 0.005395771469920874, 0.039963867515325546, -0.03804705664515495, 0.012039130553603172, -0.02698228694498539, -0.028929609805345535, 0.03140091523528099, -0.00963493250310421, 0.011350261978805065, 0.004289187025278807, -0.01061333529651165, -0.014645307324826717, -0.02127484790980816, -0.05440513789653778, 0.019447393715381622, -0.017777802422642708, 0.011043615639209747, -0.008690642192959785, -0.021482955664396286, 0.008037630468606949, 0.0010531427105888724, -0.004042940679937601, -0.030087120831012726, -0.0039159138686954975, 0.04534006118774414, -0.028832096606492996, 0.016603490337729454, -0.009462302550673485, -0.00508174579590559, 0.007945018820464611, 0.013819319196045399, 0.02640458568930626, 0.013503579422831535, -0.009425065480172634, -0.022481070831418037, -0.017766350880265236, 0.040971290320158005, -0.015492246486246586, -0.005947067867964506, -0.00944499671459198, -0.0065024131909012794, 0.04836369678378105, 0.034844860434532166, 0.013462652452290058, -0.013007122091948986, -0.016848357394337654, 0.020747410133481026, 0.0022096270695328712, 0.0037567224353551865, -0.04801512882113457, -0.03507338836789131, 0.01794457621872425, -0.012197108007967472, 0.00019326394249219447, 0.021579762920737267, -0.035353682935237885, 0.01127154752612114, 0.08798926323652267, 0.021204913035035133, -0.013993289321660995, -0.009486720897257328, 0.014388195239007473, -0.036392711102962494, -0.026766445487737656, 0.01706186681985855, -0.003504885360598564, 0.00047321501187980175, 0.013781066983938217, 0.03354373574256897, 0.09042161703109741, -0.025007128715515137, 0.014526169747114182, 0.04168706014752388, -0.017365429550409317, 0.012975919991731644, -0.039681240916252136, -0.008440998382866383, -0.036959003657102585, 0.009338044561445713, 0.02332710102200508, -0.01354325283318758, -0.01795278489589691, 0.06180534139275551, 0.057356737554073334, -0.034882765263319016, -0.04129262641072273, 0.02111777663230896, 0.0013088295236229897, 0.009787335060536861, -0.042807355523109436, 0.027056805789470673, -0.03436645492911339, 0.020149582996964455, -0.02105288952589035, -0.00788561999797821, -0.021738627925515175, 0.014899845235049725, 0.010718753561377525, 0.004831728059798479, 0.02440677024424076, 0.02340175211429596, 0.028185799717903137, -0.025030825287103653, -0.02355797588825226, 0.002289785770699382, -0.027128130197525024, 0.06753867864608765, -0.04147893562912941, -0.001904625678434968, 0.008355550467967987, 0.02883129194378853, -0.030460109934210777, -0.028302844613790512, -0.03592916578054428, -0.011341182515025139, 0.0529276505112648, 0.018552077934145927, -0.014306411147117615, -0.027344949543476105, 0.013466332107782364, 0.008081083185970783, -0.054347243160009384, 0.005626798141747713, -0.07557735592126846, -0.06161391735076904, 0.009385732002556324, -0.04360286146402359, 0.0426306277513504, 0.06980053335428238, -0.022699778899550438, -0.02027936838567257, -0.02665070816874504, 0.023149562999606133, 0.011834889650344849, 0.03299717605113983, 0.012024495750665665, 0.026515502482652664, 0.02096244879066944, 0.00864356104284525, 0.004674029070883989, 0.03177281469106674, 0.014434229582548141, 0.030895259231328964, -0.04766692966222763, 0.01340258214622736, 0.061577554792165756, -0.032476313412189484, 0.03803185746073723, -0.008526714518666267, -0.06268610060214996, -0.01832527294754982, 0.002460150048136711, -0.003124137409031391, 0.014072385616600513, 0.016479093581438065, 0.03713085502386093, -0.04912203922867775, -0.004468714818358421, 0.01585737057030201, 0.07643246650695801, -0.010895260609686375, 0.033179208636283875, 0.021863559260964394, 0.04413941130042076, 0.06284283846616745, 0.04303531348705292, 0.02608705312013626, 0.005489797797054052, 0.04459211230278015, 0.03277488797903061, 0.015506302006542683, -0.001568242791108787, -0.013495947234332561, -0.016851816326379776, -0.00921555608510971, 0.03260071575641632, -0.024783572182059288, 0.010491345077753067, 0.04788375273346901, -0.017101643607020378, 0.03152644634246826, -0.013079879805445671, 0.055042508989572525, 0.03844156116247177, 0.025473639369010925, -0.05021265521645546, 0.031023599207401276, 0.02835354022681713, 0.01785534992814064, 0.06246102228760719, 0.009945900179445744, 0.010449565947055817, -0.017656905576586723, 0.05376499891281128, 0.013149231672286987, 0.044229645282030106, -0.006500545423477888, -0.004896672908216715, -0.003939371556043625, -0.030994711443781853, -0.02195664308965206, 0.021034570410847664, 0.01232676301151514, 0.009324313141405582, -0.009160829707980156, 0.020169304683804512, -0.009410139173269272, 0.03794864937663078, -0.022307923063635826, 0.007567594293504953, -0.013217714615166187, -0.03414779528975487, -0.014710761606693268, 0.007365117315202951, 0.011940954253077507, -0.01755305752158165, 0.04446380212903023, 0.03356551378965378, 0.003627154277637601, -0.004024220164865255, -0.02844768762588501, -0.018203748390078545, -0.05339069291949272, -0.036503423005342484, -0.040817126631736755, 0.041311729699373245, -0.012510356493294239, 0.0039389049634337425, 0.03736766055226326, 0.023651668801903725, 0.002208312274888158, 0.019300561398267746, 0.008699055761098862, 0.006768229883164167, -0.03211463615298271, -0.005819949321448803, -0.00018703042587731034, -0.00607644347473979, 0.037253864109516144, -0.03317662328481674, 0.01108864601701498, 0.0011864170664921403, 0.04692280665040016, 0.03545138239860535, 0.03724680840969086, -0.01777981035411358, -0.05464261397719383, -0.016102328896522522, -0.018627572804689407, -0.03361674025654793, 0.028214339166879654, -0.020103152841329575, 0.005598784890025854, 0.012722041457891464, -0.001775922835804522, 0.012723702006042004, 0.00629433011636138, -0.006177955772727728, 0.061901215463876724, -0.0004925155662931502, -0.014033607207238674, 0.018767893314361572, 0.04706517606973648, -0.015687711536884308, -0.003019483992829919, 0.02833789400756359, -0.01029813103377819, -0.008583015762269497, -0.04287247359752655, 0.014785544946789742, -0.03156605735421181, 0.047486454248428345, -0.028552435338497162, -0.039560940116643906, -0.006039965897798538, -0.008660436607897282, 0.01389480009675026, 0.012254259549081326, -0.03364938870072365, -0.02800557389855385, -0.05175858736038208, -0.021879391744732857, -0.003651996375992894, -0.006957273930311203, 0.04979408532381058, 0.026441585272550583, 0.04399377107620239, 0.0331256128847599, -0.056457649916410446, 0.006509722210466862, -0.011521636508405209, -0.006745791062712669, 0.030625352635979652, 0.007248050067573786, 0.008195526897907257, -0.06832083314657211, -0.0025395627599209547, 0.0044747465290129185, -0.05119346082210541, 0.05967790633440018, 0.024068625643849373, -0.01761140488088131, -0.03776651248335838, -0.00956043228507042, 0.026105858385562897, 0.009806077927350998, 0.013404886238276958, -0.01724572293460369, -0.010011640377342701, 0.005373542662709951, -0.012299095280468464, -0.04990890994668007, -0.0014127882895991206, -0.027165552601218224, -0.03127820044755936, 0.0037683588452637196, 0.02068755403161049, 0.01282461080700159, 0.010070177726447582, 0.01397913508117199, -0.009689453057944775, 0.006751711945980787, 0.008609452284872532, -0.0510411337018013, 0.007326799910515547, 0.07241206616163254, -0.018713897094130516, -0.007719989400357008, 0.025966273620724678, -0.013354535214602947, -0.010722366161644459, -0.016070237383246422, -0.031556352972984314, 0.004373765550553799, 0.02211887389421463, -0.01617991365492344, -0.017678475007414818, 0.02065027318894863, 0.03123294934630394, -0.021166449412703514, -0.04723813757300377, -0.021604299545288086 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Running GPTQ models through Text-Generation-Inference In parallel to the integration of GPTQ in Transformers, GPTQ support was added to the Text-Generation-Inference library (TGI), aimed at serving large language models in production. GPTQ can now be used alongside features such as dynamic batching, paged attention and flash attention for a wide range of architectures. As an example, this integration allows to serve a 70B model on a single A100-80GB GPU! This is not possible using a fp16 checkpoint as it exceeds the available GPU memory. You can find out more about the usage of GPTQ in TGI in the documentation. Note that the kernel integrated in TGI does not scale very well with larger batch sizes. Although this approach saves memory, slowdowns are expected at larger batch sizes.
[ 0.0077490475960075855, -0.03821033984422684, 0.03044167160987854, -0.004691571928560734, 0.016284802928566933, 0.01758447103202343, -0.01838628388941288, 0.10819388180971146, 0.03229621425271034, -0.023244675248861313, -0.058851975947618484, -0.01529676653444767, -0.007843117229640484, 0.04565809294581413, -0.0028663519769906998, 0.038122422993183136, 0.03847130015492439, -0.02524339035153389, -0.043476443737745285, 0.008833459578454494, 0.0664374902844429, -0.01649150438606739, 0.0362042598426342, 0.03351752087473869, -0.00710248202085495, -0.04920795187354088, 0.027459293603897095, 0.011020169593393803, 0.020049717277288437, -0.03188621252775192, -0.083465576171875, -0.01816444657742977, 0.023342223837971687, 0.002122469013556838, 0.002509758807718754, -0.01919175498187542, -0.11917205899953842, 0.007373638916760683, 0.03788686543703079, 0.00995402317494154, -0.01597352884709835, -0.007927262224256992, -0.021398266777396202, -0.023748118430376053, -0.009385709650814533, 0.009219068102538586, -0.073866106569767, 0.04025832191109657, -0.03796910122036934, -0.0669390857219696, -0.09759610891342163, 0.09537392854690552, -0.07925070822238922, -0.04724792391061783, 0.058079663664102554, 0.06358495354652405, -0.031321898102760315, -0.09249027073383331, 0.01915806159377098, 0.013716289773583412, -0.021299416199326515, -0.02288685366511345, 0.017044266685843468, 0.07184086740016937, -0.024671990424394608, -0.03835432231426239, -0.04651028662919998, -0.008935890160501003, -0.039902471005916595, 0.033710017800331116, -0.004209991544485092, 0.012274591252207756, -0.0027287467382848263, -0.010674538090825081, -0.029073232784867287, -0.04360629990696907, -0.04265538975596428, 0.08737311512231827, -0.004289108328521252, 0.024049682542681694, -0.023430291563272476, 0.0044043660163879395, 0.02452205680310726, -0.009419688023626804, 0.02178144082427025, 0.011830802075564861, 0.05273279547691345, -0.13549065589904785, -0.04906728118658066, 0.0003245365514885634, 0.004632273688912392, -0.18431177735328674, -0.059720996767282486, -0.0478244423866272, 0.008387726731598377, 0.04420360177755356, 0.0018232989823445678, 0.017657620832324028, 0.021646879613399506, 0.03932556137442589, -0.00489761121571064, -0.07462502270936966, 0.01158034149557352, -0.085164375603199, -0.05148105323314667, 0.05395050346851349, -0.03596043586730957, -0.11130031943321228, -0.016149209812283516, 0.030738158151507378, 0.014418958686292171, -0.013827010057866573, -0.031709905713796616, 0.008022595196962357, -0.06730074435472488, 0.03563092648983002, -0.02196960709989071, 0.0036930986680090427, 0.03282150998711586, 0.018957525491714478, 0.01566392183303833, 0.04279254376888275, 0.032049428671598434, -0.02574356645345688, -0.03971286490559578, 0.025579487904906273, 0.059407319873571396, -0.04270140081644058, -0.011342463083565235, -0.01235620491206646, 0.07663744688034058, -0.030962269753217697, 0.03710520267486572, 0.0007212324999272823, 0.023458626121282578, -0.020886050537228584, -0.009100986644625664, -0.07212414592504501, -0.07147351652383804, -0.02587803639471531, -0.0208317618817091, 0.01577547751367092, 0.022898102179169655, -0.07133094221353531, 0.03647822514176369, -0.0195553470402956, -0.10744231939315796, 0.017333533614873886, 0.0025495770387351513, -0.03559704124927521, -0.13914532959461212, 0.07600583881139755, -0.053334493190050125, -0.026739295572042465, 0.06615925580263138, 0.0035540687385946512, -0.01105636265128851, 0.03768550232052803, -0.07642221450805664, -0.0761677548289299, -0.016671914607286453, -0.041451673954725266, -0.024661961942911148, 0.0024814591743052006, -0.019592149183154106, -0.024735722690820694, -0.040175482630729675, -0.022883515805006027, 0.05302675813436508, -0.009625894017517567, -0.04645269364118576, 0.013966737315058708, 0.019086573272943497, -0.010437664575874805, 0.0024366050492972136, 0.030282892286777496, 0.038188863545656204, 0.06375066190958023, 0.0005912186461500823, -0.04483403265476227, -0.06044876202940941, -0.028791116550564766, 0.03411951661109924, 0.0515313483774662, -0.03245784342288971, -0.12460198998451233, 0.021577438339591026, -0.05714428424835205, -0.013953546062111855, -0.01906433515250683, -0.029644401744008064, -0.0009285114356316626, 0.074299156665802, 0.013623755425214767, 0.013541518710553646, -0.024648122489452362, -0.0016248497413471341, 0.06546531617641449, 0.0869678482413292, 0.1072777807712555, 0.04307188838720322, 0.037902429699897766, 0.06952381879091263, -0.03112703561782837, 0.018946576863527298, 0.019959550350904465, -0.003921715542674065, 0.03528213873505592, 0.012194442562758923, 0.005621540360152721, 0.010621278546750546, -0.11350443959236145, -0.011722318828105927, -0.003141503082588315, -0.02674948237836361, -0.06171251833438873, 0.015482703223824501, -0.036509182304143906, 0.0494454950094223, -0.021018091589212418, 0.12795031070709229, 0.013339364901185036, -0.04290412738919258, -0.11116460710763931, 0.016596350818872452, 0.03872378543019295, 0.05790701508522034, -0.00423330208286643, -0.004379617050290108, -0.07073256373405457, 0.007032421417534351, -0.03642099350690842, 0.004368706606328487, 0.04439513757824898, 0.01685989275574684, 0.0004989977460354567, -0.05808001384139061, 0.035540927201509476, 0.013914489187300205, -0.04202786460518837, 0.038887932896614075, 0.06192813068628311, -0.09213018417358398, 0.030489331111311913, 0.09747610241174698, 0.007246427237987518, 0.027481133118271828, 0.018618449568748474, -0.0008076275116764009, -0.11454758793115616, -0.0024287186097353697, 0.06079898774623871, -0.0114772142842412, -0.0729198157787323, 0.011923805810511112, -0.03302760049700737, 0.025090442970395088, -0.02016887627542019, 0.004663479048758745, 0.006050185300409794, 0.014372946694493294, 0.008595852181315422, 0.006662570871412754, -0.015013297088444233, 0.006338050588965416, 0.0031771238427609205, -0.00416280934587121, -0.020707039162516594, -0.002760457107797265, -0.024676205590367317, -0.007530160713940859, -0.020512865856289864, -0.0015492336824536324, 0.007341550663113594, -0.003150393720716238, 0.027669502422213554, 0.0014305341755971313, 0.0007486357353627682, -0.018960285931825638, 0.004368776921182871, 0.004177602473646402, -0.03239666298031807, 0.0007048249244689941, 0.0322578102350235, -0.04662546515464783, 0.021503984928131104, 0.013395953923463821, -0.026320848613977432, -0.039400290697813034, 0.03577100858092308, 0.0013977587223052979, 0.011078821495175362, -0.012560258619487286, -0.023799125105142593, -0.014366725459694862, 0.048170387744903564, 0.019058752804994583, -0.027860838919878006, -0.03599972277879715, -0.006412224844098091, 0.016198934987187386, 0.021756956353783607, 0.0016528741689398885, 0.030228493735194206, -0.0243742186576128, 0.0034141740761697292, -0.03155699744820595, 0.011661113239824772, -0.0771295353770256, -0.05608047544956207, -0.005556343123316765, -0.017199648544192314, 0.002653741044923663, -0.016479145735502243, 0.029048273339867592, 0.002843038411810994, 0.016845915466547012, 0.04477185010910034, 0.02401825785636902, 0.0015812120400369167, 0.015937427058815956, 0.008560667745769024, -0.00560221541672945, 0.02320397086441517, -0.013354824855923653, 0.006639103405177593, 0.04589814692735672, 0.03469184786081314, 0.0012833704240620136, -0.019307231530547142, -0.012240483425557613, -0.027242029085755348, -0.0034139950294047594, -0.012527859769761562, 0.014352168887853622, -0.010568130761384964, 0.007612169720232487, 0.0013334575342014432, -0.02962782047688961, -0.01388902124017477, 0.02245994471013546, 0.03656703606247902, -0.03879598155617714, -0.002942614024505019, -0.012097346596419811, 0.015826234593987465, 0.016884107142686844, 0.017558611929416656, 0.032815493643283844, -0.03214022517204285, 0.034191980957984924, -0.029715919867157936, 0.030103487893939018, 0.020619122311472893, -0.010461116209626198, 0.014987298287451267, 0.04769803583621979, -0.027036147192120552, -0.025255896151065826, -0.04608336463570595, 0.0194050632417202, 0.04005138948559761, -0.01608705334365368, 0.0002537207619752735, 0.023275883868336678, -0.0007926551625132561, 0.03876538947224617, -0.008963909931480885, -0.027649957686662674, -0.009767798706889153, -0.0056901248171925545, -0.005843478254973888, -0.0012864898890256882, 0.09961023181676865, 0.032650724053382874, -0.03256499394774437, 0.005236653611063957, 0.02307252213358879, -0.01487347949296236, 0.038614530116319656, 0.06673203408718109, 0.007116109598428011, -0.007049188483506441, 0.015726882964372635, -0.003418948734179139, -0.048178836703300476, 0.03575631231069565, -0.01602942682802677, 0.013186906464397907, -0.012011216953396797, -0.07253263890743256, -0.014446462504565716, 0.026051202788949013, 0.018992753699421883, -0.008664020337164402, -0.029953401535749435, 0.06097430735826492, -0.022238368168473244, 0.015009787864983082, 0.0035549297463148832, 0.018727708607912064, 0.0017781085334718227, 0.012915188446640968, 0.0019951381254941225, 0.05178462713956833, 0.02694118022918701, 0.024774624034762383, -0.01700688898563385, 0.006441259756684303, -0.06951296329498291, 0.012199022807180882, 0.007383754476904869, -0.050427623093128204, 0.024014996364712715, -0.020254449918866158, 0.004069674760103226, -0.001976853935047984, 0.0442662388086319, 0.0138378432020545, -0.017521683126688004, -0.013422053307294846, 0.01413076650351286, 0.01664668507874012, 0.0202554352581501, 0.005291196051985025, -0.005739791318774223, -0.007125223521143198, 0.011138358153402805, -0.027027543634176254, 0.021698975935578346, 0.005207695998251438, -0.00700517138466239, 0.009896263480186462, 0.03127624839544296, 0.014926801435649395, -0.03407670184969902, 0.01845182105898857, -0.0022347006015479565, -0.00958721898496151, -0.020524272695183754, 0.026590678840875626, 0.047518789768218994, 0.027907690033316612, -0.02160322293639183, -0.036200206726789474, -0.0005877729272469878, -0.018819421529769897, -0.014101987704634666, -0.02911287732422352, 0.008262362331151962, 0.017970290035009384, -0.019983096048235893, -0.024282164871692657, -0.007419661618769169, 0.017502740025520325, 0.03267887979745865, -0.049350347369909286, 0.039055656641721725, 0.04676085337996483, -0.004454958252608776, -0.040697429329156876, 0.019504260271787643, 0.07167474925518036, 0.024976473301649094, -0.005250995978713036, 0.03821392357349396, 0.030254894867539406, 0.0344877690076828, 0.04324832558631897, 0.048206452280282974, -0.019071487709879875, 0.03864376246929169, 0.027038777247071266, 0.01494350004941225, 0.03666050359606743, -0.027855142951011658, -0.03645884990692139, -0.008764940313994884, -0.04909021779894829, 0.013217523694038391, -0.008045748807489872, -0.0019245627336204052, 0.021393675357103348, 0.07853125780820847, 0.029569238424301147, 0.02350938692688942, -0.006182173732668161, 0.0029534888453781605, -0.02096373587846756, -0.02290966361761093, 0.02301393635571003, -0.0008934745565056801, 0.0007999651716090739, 0.03515280410647392, 0.03661006689071655, 0.09729354828596115, -0.010395322926342487, 0.00258000660687685, 0.0367589071393013, 0.008313275873661041, 0.01321867760270834, -0.025941362604498863, 0.008981237187981606, -0.026842452585697174, 0.009711186401546001, 0.0032420058269053698, 0.008488043211400509, 0.0049089230597019196, 0.024500036612153053, 0.02530280314385891, -0.037225015461444855, -0.01975604146718979, 0.04103115200996399, -0.0026564348954707384, -0.034821487963199615, -0.027198199182748795, 0.02455081045627594, 0.021706195548176765, -0.005743055604398251, -0.005327683873474598, -0.0383341908454895, -0.005539525765925646, -0.011807107366621494, -0.010747012682259083, -0.011289358139038086, 0.04445125535130501, 0.012116420082747936, 0.03760344162583351, -0.05337202548980713, -0.06235452741384506, 0.00865063164383173, -0.030302882194519043, -0.009802284650504589, 0.03176368400454521, -0.01099794264882803, -0.0377739742398262, 0.022733725607395172, 0.023317506536841393, 0.0265680942684412, -0.010890843346714973, 0.004767892882227898, 0.03584465757012367, 0.009432374499738216, 0.0170193649828434, -0.03255481645464897, 0.02387727051973343, 0.024688536301255226, -0.004972939379513264, 0.004172066226601601, -0.030864601954817772, -0.00981275923550129, -0.00009384300938108936, -0.06342028826475143, 0.003613583277910948, 0.06307560950517654, -0.033184196799993515, -0.013989396393299103, 0.021842194721102715, 0.03995295986533165, -0.026117118075489998, 0.042815107852220535, 0.044448450207710266, -0.0027126362547278404, 0.04543735459446907, 0.04774082824587822, -0.0416741706430912, 0.031818196177482605, 0.04023856669664383, -0.01273414772003889, 0.0071724290028214455, -0.003382007824257016, 0.015197312459349632, -0.011861667968332767, 0.009591851383447647, -0.018062032759189606, -0.02226145565509796, 0.023484881967306137, 0.0515391044318676, -0.012908644042909145, -0.02094533108174801, -0.04133092612028122, 0.01811409741640091, 0.004233719315379858, 0.012887942604720592, -0.01144032459706068, 0.021870950236916542, 0.0471167117357254, 0.04289711266756058, 0.012106252834200859, 0.0774650052189827, -0.002795785665512085, -0.011907460168004036, -0.00690709101036191, -0.004864990711212158, 0.06563784927129745, -0.02989482879638672, -0.013681638054549694, 0.03315955772995949, 0.0014914997154846787, -0.005184882320463657, -0.006465417332947254, -0.03745488449931145, -0.03830701857805252, -0.02579890564084053, 0.009856972843408585, 0.020105265080928802, 0.020929664373397827, -0.016526727005839348, 0.08111190795898438, 0.031097186729311943, 0.012719860300421715, 0.022273976355791092, 0.007994314655661583, -0.02624657191336155, 0.0032379671465605497, 0.022421078756451607, -0.01953715831041336, -0.002127354731783271, 0.005409441888332367, 0.010862451046705246, -0.002048439346253872, 0.05977246165275574, 0.007330133579671383, -0.04722260683774948, -0.009163842536509037, 0.0028891826514154673, -0.004783485550433397, 0.02781934104859829, 0.044046469032764435, 0.01373873557895422, 0.03005748987197876, -0.011320688761770725, -0.03162457048892975, 0.01730320230126381, -0.0023022331297397614, -0.0033029085025191307, -0.0003151457058265805, -0.045035913586616516, -0.038256265223026276, -0.01321778167039156, 0.053698137402534485, -0.0075064231641590595, -0.0024578655138611794, 0.045243941247463226, 0.01294197328388691, 0.04141257330775261, -0.03145449608564377, 0.000005207354206504533, -0.02020186372101307, 0.043752457946538925, -0.016256850212812424, 0.029776396229863167, 0.029935181140899658, 0.009227640926837921, 0.038148753345012665, 0.030836135149002075, -0.002710282802581787, 0.03319869935512543, 0.006074944511055946, 0.020301304757595062, -0.027309561148285866, 0.02568749710917473, -0.005210865754634142, -0.05660386011004448, -0.009089017286896706, -0.037725985050201416, -0.0036586872301995754, -0.026224682107567787, 0.047983355820178986, 0.05484020709991455, 0.06680420786142349, -0.022278819233179092, -0.033222321420907974, 0.016538145020604134, -0.022811848670244217, -0.05989031493663788, 0.04523244872689247, -0.023105721920728683, -0.01871243491768837, 0.037054575979709625, -0.012066968716681004, 0.0025648283772170544, 0.039195649325847626, -0.002409903099760413, 0.0848817303776741, 0.017729012295603752, -0.008764754049479961, -0.008416876196861267, 0.06286056339740753, -0.0005037930095568299, 0.047449588775634766, 0.04563889279961586, 0.0031917281448841095, -0.015357958152890205, 0.02319919690489769, -0.021572865545749664, -0.04829441010951996, 0.04376517981290817, -0.0323823019862175, -0.04337631165981293, -0.015488519333302975, 0.025564327836036682, 0.002373133087530732, 0.008322575129568577, 0.03399479761719704, -0.006203979253768921, -0.049751754850149155, -0.037137821316719055, 0.02523191086947918, -0.0056680734269320965, 0.08651930838823318, 0.016270210966467857, 0.035561177879571915, -0.006279414054006338, -0.024289250373840332, -0.013229439035058022, -0.030321264639496803, 0.00784163549542427, 0.0702691450715065, 0.009368132799863815, -0.013095060363411903, -0.02413996495306492, -0.014909553341567516, -0.03939494490623474, -0.05212872102856636, 0.022183075547218323, 0.037213023751974106, -0.0055054351687431335, -0.02963460050523281, 0.015588675625622272, 0.045794736593961716, 0.018609128892421722, 0.03363431617617607, -0.014522217214107513, -0.009706990793347359, 0.02736375294625759, -0.01706034503877163, -0.058370910584926605, -0.02244390919804573, -0.02371152676641941, -0.012062003836035728, 0.03717013821005821, -0.02561279572546482, 0.02678850293159485, -0.022251224145293236, -0.0024754987098276615, 0.029837993904948235, 0.004150186199694872, -0.017405100166797638, -0.046168357133865356, 0.06057580187916756, 0.04238878935575485, -0.013114175759255886, -0.014227097854018211, 0.012327012605965137, -0.01633445732295513, -0.006926927249878645, 0.017030704766511917, 0.014148513786494732, -0.004454175941646099, -0.013008678331971169, 0.03018275834619999, 0.0005095942178741097, 0.0194970965385437, 0.05033072829246521, -0.025525132194161415, -0.018463466316461563, -0.03023412823677063 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Room for improvement Our AutoGPTQ integration already brings impressive benefits at a small cost in the quality of prediction. There is still room for improvement, both in the quantization techniques and the kernel implementations. First, while AutoGPTQ integrates (to the best of our knowledge) with the most performant W4A16 kernel (weights as int4, activations as fp16) from the exllama implementation, there is a good chance that the kernel can still be improved. There have been other promising implementations from Kim et al. and from MIT Han Lab that appear to be promising. Moreover, from internal benchmarks, there appears to still be no open-source performant W4A16 kernel written in Triton, which could be a direction to explore. On the quantization side, let’s emphasize again that this method only quantizes the weights. There have been other approaches proposed for LLM quantization that can quantize both weights and activations at a small cost in prediction quality, such as LLM-QAT where a mixed int4/int8 scheme can be used, as well as quantization of the key-value cache. One of the strong advantages of this technique is the ability to use actual integer arithmetic for the compute, with e.g. Nvidia Tensor Cores supporting int8 compute. However, to the best of our knowledge, there are no open-source W4A8 quantization kernels available, but this may well be an interesting direction to explore. On the kernel side as well, designing performant W4A16 kernels for larger batch sizes remains an open challenge.
[ 0.0040452806279063225, -0.03642585873603821, 0.01193422731012106, 0.04092460870742798, 0.027689320966601372, 0.027266155928373337, -0.007501887623220682, 0.026255721226334572, 0.006309856660664082, -0.07956210523843765, -0.03305893763899803, 0.029494773596525192, -0.024180622771382332, -0.03037053532898426, 0.01993831805884838, -0.0013899720506742597, 0.06096947193145752, 0.007828899659216404, 0.051532160490751266, 0.019184112548828125, 0.010802773758769035, -0.026988880708813667, 0.09497776627540588, 0.027957377955317497, 0.0027220312040299177, -0.08405245095491409, -0.01001712679862976, 0.04049091413617134, -0.0058130258694291115, 0.03798551857471466, -0.08992968499660492, 0.016775868833065033, -0.05071128159761429, -0.004694174975156784, 0.06957464665174484, 0.014568908140063286, -0.054336342960596085, 0.04057838022708893, 0.07572414726018906, 0.006452108267694712, 0.012881642207503319, -0.022327205166220665, -0.05736788362264633, 0.08163710683584213, -0.040674079209566116, 0.0057673947885632515, -0.051663316786289215, 0.05499045550823212, -0.04230441525578499, -0.09878374636173248, -0.00754426559433341, -0.007147957105189562, -0.08167123049497604, -0.006870553828775883, 0.06245200335979462, 0.0058031948283314705, 0.0203666090965271, -0.09120391309261322, -0.025596696883440018, -0.0075930021703243256, 0.025676146149635315, -0.018947966396808624, -0.027683908119797707, -0.019070085138082504, 0.022227540612220764, 0.0034009795635938644, -0.0508306547999382, 0.0015043520834296942, -0.05556138604879379, 0.01736186444759369, -0.024178771302103996, -0.009396431036293507, -0.031717874109745026, -0.0005313230212777853, -0.01859118416905403, -0.021427666768431664, -0.036979515105485916, 0.05566434934735298, 0.02115602232515812, -0.025718722492456436, 0.03877217322587967, 0.003166272072121501, 0.013196435756981373, 0.026759600266814232, 0.005590636283159256, -0.008649376221001148, 0.02945733442902565, -0.0939331129193306, -0.045789700001478195, 0.045807961374521255, -0.009067333303391933, -0.11858522146940231, 0.008080060593783855, 0.004451803397387266, -0.04458848759531975, -0.05475511774420738, 0.04333345964550972, -0.010487501509487629, -0.041451938450336456, 0.011258265003561974, 0.0001270818611374125, -0.03753165155649185, 0.011770285665988922, -0.09772511571645737, -0.01772589609026909, 0.09263071417808533, -0.08360736072063446, -0.11134961992502213, -0.03853488340973854, 0.04781555384397507, -0.0166521817445755, 0.04364287480711937, 0.06225362792611122, 0.045812610536813736, -0.11245222389698029, 0.03775511309504509, -0.06838858872652054, -0.02922660857439041, 0.06200172379612923, -0.008448882959783077, -0.010963858105242252, 0.0661768913269043, 0.04890889674425125, -0.017569219693541527, 0.02108027972280979, 0.041582074016332626, 0.07582511752843857, -0.027999818325042725, 0.034209731966257095, -0.029689257964491844, 0.11212644726037979, -0.020862847566604614, 0.058031026273965836, -0.060977671295404434, 0.007523266598582268, -0.03732709214091301, -0.023595429956912994, -0.07191085815429688, -0.020474998280405998, -0.04254342243075371, -0.04899502173066139, 0.03045721910893917, 0.0070881047286093235, -0.04792400076985359, 0.007717816159129143, 0.03220009431242943, -0.07660306245088577, 0.06068573147058487, -0.012667139060795307, 0.0020964769646525383, -0.07249894738197327, -0.014787142165005207, -0.02896633744239807, -0.0934709906578064, 0.02833341807126999, 0.05596006661653519, -0.04344986379146576, -0.01912520080804825, -0.07333910465240479, 0.032919012010097504, -0.028469854965806007, -0.01704316958785057, 0.006321470718830824, -0.04077007994055748, -0.004911788273602724, 0.015616016462445259, 0.05643725395202637, 0.006843667943030596, -0.011014191433787346, 0.05670039355754852, 0.03751051798462868, 0.012803827412426472, 0.041893795132637024, -0.037395864725112915, 0.012368528172373772, 0.03319156542420387, 0.07311104238033295, 0.06520994007587433, 0.01146841049194336, -0.0021553391125053167, -0.00889804121106863, -0.0008260339382104576, -0.052239131182432175, 0.008268075995147228, 0.02331891469657421, -0.15880639851093292, 0.006161510944366455, -0.027650538831949234, -0.01581629365682602, -0.033889297395944595, -0.08247921615839005, 0.009092269465327263, 0.03726010397076607, 0.031110642477869987, 0.033804066479206085, 0.0011908476008102298, 0.015370121225714684, 0.1422526240348816, 0.06404131650924683, 0.037604380398988724, 0.07031463831663132, -0.02818109281361103, 0.051248274743556976, 0.006911731790751219, 0.0017977755051106215, 0.02461189031600952, 0.0008428002474829555, 0.010564041323959827, -0.00885794498026371, -0.004175268579274416, 0.00887370202690363, -0.165397047996521, -0.051072847098112106, 0.025494983419775963, 0.013311853632330894, -0.021226579323410988, 0.041967689990997314, 0.03489385172724724, -0.02640398032963276, 0.021070845425128937, 0.07340869307518005, -0.02805616706609726, 0.03058907948434353, -0.031198011711239815, -0.018767086789011955, 0.07800246775150299, 0.05632556974887848, -0.003569747554138303, 0.05913659185171127, -0.04847007244825363, -0.0005018393276259303, -0.137298122048378, 0.02510722354054451, 0.05459757521748543, -0.001677577500231564, -0.010817162692546844, 0.02590417116880417, -0.0063056438229978085, 0.07328910380601883, 0.0191056951880455, 0.041924525052309036, 0.05040131136775017, -0.029391322284936905, 0.04944395273923874, 0.04111957550048828, -0.026357658207416534, 0.09662365168333054, 0.01583196222782135, -0.0017904093256220222, -0.0444352962076664, -0.03825408220291138, 0.04380969703197479, -0.049255020916461945, -0.020418046042323112, -0.02653416618704796, -0.005181640852242708, 0.023828087374567986, 0.00649744737893343, -0.030008645728230476, 0.0321715772151947, 0.02739817090332508, -0.011183405295014381, 0.007616791874170303, -0.0038853029254823923, 0.013138934038579464, -0.004943857900798321, -0.0013847454683855176, -0.004582960158586502, 0.006057746708393097, -0.031944431364536285, 0.007736222818493843, -0.03630741313099861, 0.021189650520682335, 0.03476360812783241, 0.007288839668035507, 0.0010246249148622155, 0.009903527796268463, -0.018257251009345055, -0.04742363095283508, -0.03371527045965195, 0.039063710719347, -0.044864799827337265, 0.0776643455028534, 0.0308717992156744, -0.018941659480333328, 0.027593517675995827, -0.0065567707642912865, -0.011787178926169872, -0.04566767439246178, 0.023449523374438286, 0.010289119556546211, 0.04014993831515312, 0.006934202276170254, 0.006561177782714367, -0.00003186116009601392, -0.006694070994853973, 0.019291436299681664, -0.034725990146398544, 0.024753671139478683, -0.012363960966467857, 0.014016770757734776, 0.015714019536972046, -0.0013254041550680995, 0.01623355969786644, 0.013114089146256447, 0.0471968911588192, 0.019099365919828415, 0.0375736765563488, -0.08764553815126419, -0.0054249875247478485, 0.03641216456890106, 0.006280955392867327, -0.004276040941476822, -0.016205256804823875, 0.03264845907688141, -0.011471610516309738, -0.013746347278356552, 0.0028685880824923515, 0.04871055483818054, -0.0008931499323807657, 0.020977020263671875, 0.011584390886127949, -0.0004507199628278613, 0.04224327579140663, 0.012408859096467495, 0.016056908294558525, 0.030020253732800484, 0.03760498762130737, 0.042407941073179245, 0.011375847272574902, -0.011617105454206467, 0.009392695501446724, -0.0186260137706995, 0.012765195220708847, -0.005907066632062197, 0.023277366533875465, 0.02394992671906948, -0.0062254383228719234, -0.010755433700978756, -0.03555944561958313, 0.017887739464640617, 0.008726613596081734, -0.050280358642339706, -0.05597619712352753, -0.040354348719120026, 0.0008084044675342739, 0.022544894367456436, 0.05924654379487038, -0.000299578852718696, 0.03799501061439514, 0.00527099147439003, -0.026493171229958534, -0.01068252231925726, 0.04255804419517517, 0.025267789140343666, 0.04448220506310463, 0.028434859588742256, -0.035543471574783325, -0.026058068498969078, 0.018430018797516823, -0.010865585878491402, 0.01934780739247799, -0.011214624159038067, 0.028024068102240562, -0.036762967705726624, 0.019222499802708626, 0.017200514674186707, -0.0023605090100318193, -0.039407432079315186, -0.0016298285918310285, 0.00616562832146883, -0.030677907168865204, -0.00892831664532423, 0.045541662722826004, 0.008288642391562462, -0.03783538192510605, 0.02589174546301365, -0.010623759590089321, -0.013476603664457798, 0.03132662922143936, 0.013950805179774761, 0.003411498386412859, 0.011618228629231453, 0.007127323653548956, -0.006825554650276899, -0.0603274442255497, 0.04602343216538429, 0.027506235986948013, 0.00023965151922311634, -0.005835121031850576, -0.008045689202845097, 0.013258978724479675, -0.005027446895837784, -0.010068241506814957, -0.023657742887735367, -0.038892969489097595, -0.0020841937512159348, 0.030660392716526985, 0.03591427579522133, -0.026221685111522675, 0.030563820153474808, -0.048569854348897934, 0.004815319087356329, 0.01284359022974968, 0.031107502058148384, -0.010040809400379658, -0.02295287884771824, 0.01573513075709343, 0.04517015069723129, -0.019229106605052948, 0.025047339498996735, -0.03965410962700844, -0.026837771758437157, 0.04597283899784088, -0.03012119047343731, -0.003717191284522414, -0.012243738397955894, 0.04802549257874489, 0.004264975897967815, -0.006628732196986675, 0.013184328563511372, 0.021022306755185127, 0.07148697227239609, -0.0066068535670638084, -0.004932444542646408, 0.0037128529511392117, 0.011953068897128105, 0.019152596592903137, 0.0045591131784021854, -0.002900240942835808, -0.03125395253300667, -0.00010034351726062596, 0.06920348852872849, -0.0006185868987813592, -0.027386203408241272, -0.029182223603129387, -0.016618086025118828, -0.02555634267628193, -0.03543773293495178, -0.06931454688310623, -0.001936514861881733, -0.020985903218388557, -0.018346058204770088, -0.030965598300099373, -0.056776951998472214, 0.015674611553549767, -0.0431869737803936, -0.061955370008945465, -0.034349992871284485, 0.006832253187894821, -0.0033651215489953756, -0.056705910712480545, 0.03449980914592743, 0.00783953070640564, -0.006901309825479984, -0.004134859889745712, -0.027597647160291672, 0.06900278478860855, 0.013079190626740456, -0.013816873542964458, -0.021239833906292915, 0.009365478530526161, 0.014912199229001999, 0.007689436431974173, -0.007179203908890486, 0.01513696275651455, -0.03697481006383896, 0.04877255856990814, 0.04779320955276489, -0.0038471531588584185, -0.027361253276467323, -0.03665720298886299, 0.012847949750721455, -0.0019931611604988575, 0.023707076907157898, -0.01093805581331253, 0.015508568845689297, 0.009635912254452705, -0.020434878766536713, -0.0023624193854629993, 0.01980244740843773, -0.013528985902667046, 0.012071479111909866, -0.016282496973872185, 0.011579173617064953, -0.04240584746003151, -0.016090314835309982, 0.0038870605640113354, -0.02175741083920002, 0.008593405596911907, 0.03399572893977165, -0.00981671642512083, -0.018736151978373528, 0.013029305264353752, 0.013178224675357342, 0.07911542057991028, 0.011513742618262768, 0.001001878990791738, 0.03607422485947609, 0.032820653170347214, 0.031559497117996216, -0.019912105053663254, 0.04448222741484642, 0.005948090460151434, 0.027182551100850105, 0.009843609295785427, 0.0019670426845550537, 0.01513617392629385, 0.05286592245101929, 0.03202137351036072, -0.01662878692150116, -0.005930902902036905, 0.02534298226237297, 0.017450710758566856, 0.03890227898955345, -0.057423122227191925, 0.024365469813346863, -0.025168340653181076, 0.00732596917077899, 0.03727662190794945, -0.024723151698708534, -0.016468243673443794, 0.055666521191596985, -0.025770153850317, -0.012971249409019947, 0.07046713680028915, 0.010140573605895042, 0.019413238391280174, -0.011254041455686092, -0.003395422361791134, 0.0026567084714770317, -0.01799618825316429, 0.048408955335617065, -0.04786953330039978, -0.04071862995624542, -0.024717601016163826, -0.004467886406928301, -0.02452159859240055, -0.019283633679151535, -0.07271627336740494, -0.032402362674474716, 0.03543853759765625, 0.024584412574768066, -0.012178097851574421, -0.0068077039904892445, 0.005163747351616621, -0.007356102578341961, -0.04008631408214569, -0.02793274074792862, -0.0328003391623497, -0.03430952876806259, -0.012881600297987461, -0.09321543574333191, 0.08947218209505081, 0.026121342554688454, -0.02409263327717781, -0.020943207666277885, 0.0007741246954537928, 0.04118763655424118, -0.018041115254163742, 0.021848754957318306, 0.024730771780014038, 0.04296325519680977, 0.008296865038573742, 0.03372053802013397, -0.012990391813218594, 0.011056325398385525, 0.027828408405184746, 0.022048402577638626, -0.06944407522678375, -0.039107032120227814, 0.060514383018016815, -0.035078875720500946, 0.03330951929092407, -0.02978293038904667, -0.0784912258386612, 0.036035601049661636, -0.005353018641471863, 0.010140284895896912, -0.001671252422966063, 0.013050497509539127, -0.017232481390237808, -0.04795755073428154, 0.02594759687781334, 0.017899366095662117, 0.03194483369588852, 0.0009303229162469506, -0.012989458627998829, 0.0006354369688779116, 0.05096079409122467, 0.01947600767016411, 0.005214594304561615, -0.018638763576745987, -0.004158901050686836, 0.02875252440571785, 0.046580806374549866, 0.027706224471330643, -0.002651757560670376, 0.0019476221641525626, -0.024403447285294533, 0.00953864585608244, -0.03302411362528801, -0.030790621414780617, -0.005256054922938347, 0.02971506677567959, -0.017862046137452126, 0.02359754405915737, -0.05430535972118378, 0.037891633808612823, 0.05259120464324951, 0.005977911408990622, 0.03024212270975113, -0.018043192103505135, -0.015411235392093658, 0.014784117229282856, -0.014151137322187424, -0.012387064285576344, -0.019728850573301315, -0.009520311839878559, 0.02159668691456318, 0.00047378058661706746, 0.027171600610017776, 0.017479468137025833, 0.0003023599274456501, 0.0029383825603872538, 0.01885504648089409, 0.06219416484236717, 0.050023119896650314, -0.029131514951586723, -0.00412547355517745, 0.025795113295316696, 0.015145238488912582, -0.015648705884814262, 0.013910854235291481, -0.01300332322716713, -0.030305102467536926, -0.007534211967140436, -0.015422730706632137, 0.015032037161290646, 0.028452422469854355, -0.01887318678200245, -0.0064275823533535, 0.017953749746084213, 0.02758089080452919, -0.012467648833990097, -0.007164828013628721, -0.036532483994960785, -0.028111448511481285, -0.00532804150134325, 0.04166608676314354, -0.028948627412319183, 0.036547306925058365, 0.0008456336217932403, -0.02859323099255562, 0.02967138960957527, -0.012260052375495434, -0.019247259944677353, -0.013678288087248802, 0.007785446476191282, -0.008289436809718609, -0.056139785796403885, -0.004271358717232943, -0.04872255027294159, -0.05164707452058792, 0.01622534729540348, -0.06510856747627258, 0.020482616499066353, 0.015903929248452187, 0.035481151193380356, 0.023268038406968117, 0.06909222155809402, 0.003441896289587021, -0.024517564103007317, -0.01016524713486433, -0.04068664833903313, 0.0012925557093694806, 0.03158159926533699, -0.024000979959964752, -0.056902896612882614, 0.014236743561923504, -0.017098022624850273, -0.0030737475026398897, -0.0009935927810147405, -0.021821876987814903, 0.04475468397140503, 0.012337933294475079, -0.02881334163248539, 0.022177621722221375, 0.052024129778146744, -0.01142540480941534, 0.013460496440529823, 0.06380610167980194, -0.02549772709608078, 0.03789830207824707, -0.016227707266807556, 0.024698907509446144, -0.01426311582326889, 0.04481462389230728, -0.039711594581604004, -0.04055256396532059, 0.008527101017534733, 0.0006036517443135381, 0.04738660156726837, -0.011630558408796787, -0.03636205568909645, -0.025235360488295555, -0.05490081012248993, 0.003662399249151349, -0.01064392365515232, -0.026829689741134644, 0.07699009031057358, 0.04251245781779289, -0.013121439144015312, 0.012254077009856701, -0.008908080868422985, 0.0001462761138100177, -0.00257694348692894, 0.000418335956055671, 0.04443443566560745, 0.05860545486211777, -0.008229231461882591, -0.04371672868728638, 0.010725739412009716, 0.0016609600279480219, 0.0018742488464340568, 0.0019029092509299517, 0.028783826157450676, -0.02650461159646511, -0.038995519280433655, -0.003404618240892887, 0.0028370001818984747, 0.02286185324192047, -0.003947938326746225, -0.002778052818030119, 0.004519635811448097, 0.054894860833883286, -0.02085999585688114, -0.058319445699453354, -0.013084843754768372, -0.0060660564340651035, 0.0005117023829370737, 0.031827088445425034, 0.013305936940014362, 0.03720748424530029, 0.034057147800922394, 0.004906613379716873, -0.007863895036280155, 0.017895519733428955, -0.03029041178524494, -0.01453925110399723, -0.009776122868061066, 0.07075641304254532, -0.018623976036906242, -0.02852715365588665, -0.012745732441544533, -0.047323767095804214, -0.031384024769067764, 0.0021447038743644953, -0.016654537990689278, 0.04170650988817215, 0.020164301618933678, 0.023658085614442825, 0.009602300822734833, 0.03772054612636566, 0.03789566829800606, 0.020524069666862488, -0.04752053692936897, -0.0072165890596807 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Conclusion and final words In this blogpost we have presented the integration of the AutoGPTQ library in Transformers, making it possible to quantize LLMs with the GPTQ method to make them more accessible for anyone in the community and empower them to build exciting tools and applications with LLMs. This integration is available both for Nvidia GPUs, and RoCm-powered AMD GPUs, which is a huge step towards democratizing quantized models for broader GPU architectures. The collaboration with the AutoGPTQ team has been very fruitful, and we are very grateful for their support and their work on this library. We hope that this integration will make it easier for everyone to use LLMs in their applications, and we are looking forward to seeing what you will build with it! Do not miss the useful resources shared above for better understanding the integration and how to quickly get started with GPTQ quantization. - Original Paper - Basic usage Google Colab notebook - This notebook shows how to quantize your transformers model with GPTQ method, how to do inference, and how to do fine-tuning with the quantized model. - Transformers integration documentation - Optimum integration documentation - The Bloke repositories with compatible GPTQ models.
[ 0.03598329797387123, -0.0590222142636776, 0.0487605556845665, 0.006310227792710066, 0.05728809908032417, 0.04022596403956413, -0.012834575027227402, 0.05535636842250824, 0.019677814096212387, 0.025392604991793633, -0.052446190267801285, 0.10067098587751389, -0.026048464700579643, 0.10162074863910675, 0.042537204921245575, 0.0072305575013160706, -0.012388791888952255, -0.018486931920051575, -0.001196170225739479, 0.03477869927883148, 0.05953395739197731, -0.034732986241579056, 0.052506886422634125, 0.0046007223427295685, 0.04214681684970856, -0.07145005464553833, 0.01215013861656189, 0.048289746046066284, -0.06606792658567429, 0.049797121435403824, -0.031190648674964905, -0.016441795974969864, -0.06021895259618759, -0.044098857790231705, 0.04164169356226921, -0.019762812182307243, -0.12287666648626328, 0.011787723749876022, 0.07126739621162415, -0.020578648895025253, 0.05366817116737366, -0.028867103159427643, -0.021657215431332588, 0.0243523009121418, 0.008177331648766994, 0.0005126265459693968, -0.11481017619371414, 0.08270229399204254, -0.043158918619155884, -0.09896475076675415, 0.013654160313308239, 0.06194839999079704, -0.04950442910194397, -0.010437828488647938, 0.029341401532292366, 0.033291932195425034, 0.010790959931910038, -0.11480530351400375, -0.022557690739631653, 0.008587315678596497, 0.006164892576634884, -0.024432171136140823, -0.025306833907961845, 0.02021978050470352, 0.012872172519564629, -0.007987456396222115, -0.06267702579498291, 0.005044369027018547, -0.05907086282968521, -0.00937698781490326, -0.0014933515340089798, -0.02660764753818512, -0.03693314269185066, -0.06292855739593506, -0.05944173038005829, -0.010551883839070797, -0.04228425770998001, 0.07883018255233765, 0.04685857146978378, 0.026873620226979256, 0.014169590547680855, -0.014879314228892326, 0.037136390805244446, 0.0370817668735981, 0.006343393586575985, 0.012724592350423336, 0.02754925936460495, -0.06949848681688309, -0.026161793619394302, 0.023012766614556313, -0.05124709755182266, -0.15562961995601654, -0.056609973311424255, 0.004029952455312014, 0.028330255299806595, -0.010164186358451843, 0.036069270223379135, 0.024745263159275055, -0.052208755165338516, -0.0040458329021930695, 0.047167807817459106, 0.03804624453186989, 0.03223857283592224, -0.04479698836803436, -0.03418627753853798, 0.053135111927986145, -0.043284930288791656, -0.12947627902030945, -0.04248407855629921, -0.0034757370594888926, -0.009964588098227978, -0.009480034001171589, 0.053784094750881195, 0.001792276743799448, -0.07832344621419907, 0.05052296817302704, -0.010197092778980732, -0.004053611773997545, 0.05377373471856117, 0.07306849211454391, -0.059407323598861694, 0.06987222284078598, 0.06745205819606781, 0.02326054312288761, 0.017675595358014107, -0.021717436611652374, 0.05436312407255173, -0.05046848580241203, -0.007724577561020851, -0.03458401560783386, 0.04766770452260971, 0.001550914952531457, 0.04000868275761604, -0.0597354918718338, -0.0399012453854084, -0.05989124998450279, 0.007557164411991835, -0.10419043153524399, -0.031976208090782166, 0.02803650125861168, 0.006282632704824209, 0.029179679229855537, -0.014786528423428535, 0.0012072359677404165, -0.017966479063034058, 0.031360216438770294, -0.08412320911884308, 0.07741803675889969, -0.05445151403546333, 0.05821487680077553, -0.0964437872171402, 0.04393678158521652, -0.050349265336990356, -0.08172065764665604, 0.027440693229436874, 0.048277292400598526, 0.0000468727812403813, 0.02238663099706173, -0.08368676155805588, -0.01314931083470583, -0.0487198680639267, -0.027935195714235306, -0.03747418150305748, 0.026375457644462585, 0.015910804271697998, -0.008227040991187096, 0.0088606346398592, -0.008396871387958527, -0.008758693933486938, -0.0015733069740235806, 0.018638471141457558, -0.02124328352510929, 0.03612109273672104, -0.03348833695054054, 0.0017509664176031947, 0.06095204874873161, 0.056564778089523315, 0.06623876094818115, 0.03010309487581253, -0.011618837714195251, -0.03999241814017296, 0.031831126660108566, 0.004079918377101421, 0.040515556931495667, 0.015085240826010704, -0.0825503021478653, 0.02459411881864071, -0.037303533405065536, -0.010695778764784336, -0.025567512959241867, -0.05402648448944092, 0.017278406769037247, 0.049035996198654175, -0.0005078004323877394, 0.03604014590382576, -0.009913919493556023, -0.025121944025158882, 0.12247645109891891, 0.05218501761555672, 0.05592399463057518, 0.06423088908195496, -0.025447001680731773, 0.050527557730674744, -0.05011333152651787, 0.02625149115920067, 0.030896713957190514, 0.0036383795086294413, -0.008186375722289085, 0.012537481263279915, 0.005890520289540291, 0.03765243664383888, -0.12457911670207977, -0.022660180926322937, -0.036586858332157135, -0.0019057263853028417, -0.0741388350725174, -0.022684147581458092, 0.040159646421670914, -0.012744296342134476, -0.013344145379960537, 0.1328202784061432, -0.07281617075204849, 0.027394859120249748, -0.05672125518321991, -0.039534542709589005, 0.07618216425180435, 0.06875831633806229, 0.029515830799937248, 0.02683795616030693, -0.06346356868743896, 0.017626352608203888, -0.11325684189796448, 0.01955004781484604, 0.027659019455313683, -0.0478200763463974, -0.053031712770462036, -0.025441162288188934, -0.05181817337870598, 0.047047242522239685, 0.029606709256768227, 0.03967352956533432, 0.03532114252448082, -0.06738561391830444, 0.04296260327100754, 0.07107772678136826, 0.005091950763016939, 0.042475249618291855, -0.0009652561275288463, 0.008093207143247128, -0.008973462507128716, -0.06100396066904068, 0.00518003199249506, -0.05462275817990303, -0.02140638791024685, 0.03806695714592934, -0.02811766043305397, 0.0015151712577790022, 0.019089406356215477, -0.04304184392094612, 0.012685866095125675, 0.003298747818917036, -0.0009222552180290222, -0.00044853545841760933, -0.037820495665073395, -0.009829499758780003, -0.001960861263796687, 0.0051360665820539, 0.017443912103772163, -0.017526259645819664, -0.02012900821864605, 0.0022877096198499203, -0.029279956594109535, 0.041678741574287415, 0.01476746890693903, 0.005355068948119879, 0.020792560651898384, 0.01665665954351425, -0.006867602001875639, -0.0004549844888970256, -0.01750756800174713, 0.013766144402325153, -0.026932397857308388, 0.0421750508248806, 0.03683919832110405, -0.010810010135173798, 0.012187873013317585, -0.06560206413269043, -0.048734791576862335, -0.01089706551283598, 0.00219582743011415, -0.007258242927491665, 0.0520545169711113, -0.024371175095438957, -0.03095225803554058, 0.007106021046638489, 0.010869450867176056, -0.0049019078724086285, -0.0021458682604134083, -0.00974753126502037, 0.03873485326766968, 0.005999191664159298, 0.00420262711122632, 0.042270708829164505, 0.0180139672011137, 0.005692667327821255, 0.015553450211882591, 0.02538236789405346, 0.056731030344963074, -0.09092926979064941, -0.039026759564876556, 0.0033429074101150036, 0.016122443601489067, 0.03266233950853348, -0.022980721667408943, 0.047894205898046494, -0.002931555500254035, -0.01861068420112133, 0.0041264379397034645, 0.05274205282330513, 0.021213145926594734, 0.036890044808387756, 0.013240796513855457, 0.0034471347462385893, -0.004888634663075209, -0.020994992926716805, -0.0027001111302524805, 0.009544236585497856, 0.04624874144792557, 0.02655128575861454, 0.03683226555585861, -0.036999549716711044, -0.0191387627273798, 0.022148659452795982, -0.01867668703198433, 0.013446830213069916, 0.018624750897288322, 0.03371807932853699, 0.016894996166229248, -0.0001978552754735574, 0.0081257289275527, 0.013270935975015163, 0.021825416013598442, -0.03391268104314804, -0.03265409916639328, 0.0032552778720855713, -0.015171111561357975, 0.004744060803204775, 0.04331294074654579, 0.02607627771794796, 0.015506748110055923, 0.042379412800073624, -0.016135280951857567, 0.00859406404197216, 0.012679272331297398, -0.009304474107921124, 0.0470397062599659, 0.03480909392237663, -0.031163310632109642, -0.03837791085243225, 0.019493283703923225, -0.020108092576265335, 0.03238803520798683, -0.020724741742014885, -0.001680517802014947, 0.00012191520363558084, -0.005420064087957144, 0.023643646389245987, 0.030502891167998314, -0.02450772188603878, -0.0015301811508834362, -0.0041996147483587265, -0.009550905786454678, -0.015869591385126114, 0.04957600310444832, 0.029760874807834625, -0.02028670348227024, 0.03564257174730301, 0.06117600202560425, 0.00888009462505579, 0.050290558487176895, 0.021959705278277397, 0.0071529727429151535, -0.0280752070248127, 0.015735354274511337, -0.020721979439258575, -0.04232003539800644, 0.05331120640039444, 0.018890492618083954, -0.050710126757621765, -0.025614453479647636, -0.04882524535059929, -0.01141930278390646, -0.008272787556052208, 0.001811130903661251, 0.017385045066475868, -0.011219696141779423, 0.022097265347838402, 0.0186468455940485, 0.05199625715613365, -0.04942528158426285, 0.018076298758387566, -0.022667892277240753, -0.004450542852282524, 0.017744967713952065, 0.025838902220129967, -0.0005740054184570909, 0.025115586817264557, 0.01263086125254631, 0.03276725113391876, -0.04339248687028885, 0.01138295792043209, -0.005249370355159044, -0.04139227792620659, 0.033642545342445374, -0.003631903789937496, 0.007538672536611557, 0.024097951129078865, 0.03728076443076134, 0.03187042474746704, -0.019028419628739357, -0.013381633907556534, 0.029757391661405563, 0.01394918654114008, -0.03308515623211861, -0.013343309983611107, -0.029760660603642464, -0.004143346566706896, 0.018367363139986992, -0.05135738477110863, 0.0004126421990804374, -0.03187740221619606, -0.028835304081439972, 0.023809464648365974, 0.011138943023979664, -0.013383502140641212, -0.01198195107281208, -0.04139895737171173, -0.014033964835107327, -0.03871423378586769, -0.06809119880199432, -0.0007093254826031625, -0.00023981090635061264, -0.019107241183519363, 0.008706433698534966, -0.026292940601706505, 0.020348045974969864, -0.015694936737418175, -0.010418067686259747, -0.03773042559623718, -0.012912021018564701, 0.03707854077219963, -0.029900556430220604, 0.036710649728775024, -0.028768932446837425, 0.027432026341557503, 0.015706822276115417, 0.023674238473176956, 0.04280339926481247, 0.01760909892618656, -0.03635430708527565, -0.0025371627416461706, -0.016242697834968567, 0.03018319047987461, 0.036120038479566574, 0.0014713651034981012, 0.03364400565624237, -0.003233234165236354, 0.05117171257734299, 0.011068285442888737, 0.05098598822951317, -0.018346445634961128, -0.030743921175599098, 0.012324067763984203, 0.020727863535284996, 0.008675477467477322, -0.0003882429446093738, -0.01835513673722744, 0.03938862681388855, -0.015977611765265465, -0.01255075540393591, 0.02311452478170395, -0.0307458583265543, 0.01345918420702219, 0.031048119068145752, 0.038207899779081345, 0.0005020033568143845, 0.011778021231293678, -0.015021081082522869, 0.005454080179333687, -0.030420854687690735, 0.03797221556305885, -0.01165352575480938, -0.03780410811305046, 0.01646566577255726, 0.03503437712788582, 0.06298620998859406, -0.04363579303026199, 0.0105167580768466, 0.010879246518015862, -0.013101920485496521, 0.045792579650878906, -0.02593638375401497, -0.00465859891846776, -0.049685996025800705, 0.024018926545977592, 0.01921975240111351, -0.019322380423545837, -0.0011649626540020108, 0.06356162577867508, 0.058401718735694885, -0.030782733112573624, -0.015224754810333252, 0.023755619302392006, -0.0028917985036969185, 0.030335495248436928, -0.03606003522872925, 0.009889911860227585, -0.02458885870873928, 0.009419731795787811, -0.022654198110103607, 0.009020619094371796, -0.017392566427588463, 0.03629905357956886, -0.019366595894098282, 0.001146296737715602, 0.030093321576714516, 0.009930104948580265, 0.046830177307128906, 0.013276316225528717, -0.0012668146518990397, -0.006195104215294123, 0.00758111197501421, 0.05999739095568657, -0.03428079932928085, -0.030657978728413582, 0.02315417304635048, 0.0015412981156259775, -0.009968072175979614, 0.007520593237131834, -0.04205431789159775, -0.035478826612234116, 0.037318821996450424, 0.03334840014576912, -0.014772914350032806, -0.01981230266392231, 0.007015483919531107, 0.020652921870350838, -0.04187664017081261, 0.0034868712536990643, -0.059731077402830124, -0.04083440080285072, -0.024128776043653488, -0.05051423981785774, 0.040110401809215546, 0.10000832378864288, -0.019558841362595558, -0.05932752415537834, -0.010824608616530895, 0.04827238991856575, 0.04088421165943146, 0.023919491097331047, 0.010162577964365482, 0.03223120793700218, 0.05324995517730713, 0.045909617096185684, 0.0001672960934229195, 0.00890043843537569, 0.009773926809430122, 0.015583546832203865, -0.06368705630302429, -0.01597108505666256, 0.02487950585782528, -0.047627031803131104, 0.04181786626577377, -0.010439485311508179, -0.070231132209301, -0.0018292339518666267, 0.01142998319119215, 0.013002059422433376, 0.012009353376924992, 0.002588925650343299, 0.037883494049310684, -0.011476956307888031, 0.010801841504871845, 0.0183122381567955, 0.04081198573112488, -0.0049864863976836205, 0.006701789330691099, -0.0011578736593946815, 0.053972277790308, 0.038814280182123184, 0.014795939438045025, 0.035776399075984955, 0.015560930594801903, 0.04390217736363411, -0.004220296628773212, 0.016117077320814133, 0.0030101186130195856, -0.03791948780417442, -0.04404687136411667, 0.005548975430428982, -0.015175833366811275, -0.04690893739461899, 0.006105958949774504, 0.01735299825668335, -0.011607852764427662, 0.030335595831274986, -0.0032932914327830076, 0.051144711673259735, 0.034330736845731735, 0.052271414548158646, -0.025473525747656822, 0.007685605436563492, 0.01342471968382597, -0.0002775575267150998, 0.042509038001298904, 0.029571952298283577, 0.03012082725763321, -0.008924342691898346, 0.07639805227518082, 0.008459290489554405, 0.052348893135786057, -0.019302526488900185, -0.020333144813776016, -0.013054514303803444, 0.005487486254423857, 0.00568106584250927, 0.03921283408999443, 0.0002951297501567751, 0.007054359186440706, -0.0036796913482248783, 0.008741865865886211, -0.02188100479543209, 0.015715686604380608, -0.006060656160116196, -0.011014267802238464, -0.0028759618289768696, -0.04671349748969078, 0.008070936426520348, -0.006915311794728041, -0.0026537952944636345, -0.017756029963493347, 0.021860482171177864, 0.07053535431623459, 0.00922473892569542, 0.005814955569803715, -0.018599584698677063, -0.026788176968693733, -0.03392207622528076, -0.01077731978148222, -0.03943377360701561, 0.04066256061196327, -0.0199760589748621, 0.001990847522392869, 0.03640983998775482, 0.022582873702049255, -0.03866276890039444, 0.0202566497027874, 0.009342441335320473, 0.0024346355348825455, -0.04797206446528435, -0.009319332428276539, 0.0016622281400486827, 0.004477030597627163, 0.014335709623992443, -0.04262883588671684, 0.011215835809707642, -0.010650749318301678, 0.01841658167541027, 0.026524638757109642, 0.07511736452579498, -0.023220941424369812, -0.047001633793115616, 0.005636465735733509, 0.004285432398319244, -0.01036477368324995, 0.015612039715051651, -0.04758673906326294, -0.021728433668613434, -0.0005309050902724266, -0.02588190883398056, 0.025383036583662033, 0.009375449270009995, -0.0322546660900116, 0.05122780799865723, 0.02494696155190468, -0.01032485906034708, 0.028963157907128334, 0.030849436298012733, -0.018496856093406677, 0.03189053013920784, 0.03563744202256203, 0.01306043192744255, 0.008157160133123398, 0.00007018889300525188, 0.01579117774963379, -0.03370947018265724, 0.03150269389152527, -0.01230646949261427, -0.0469747819006443, -0.0015843277797102928, -0.008257872425019741, 0.01313205435872078, 0.01122832577675581, -0.03504391014575958, -0.03131185099482536, -0.0642441138625145, -0.035812683403491974, -0.010083271190524101, -0.017488451674580574, 0.06513859331607819, 0.010041733272373676, -0.007242488209158182, -0.028381137177348137, -0.029623204842209816, 0.0022296870592981577, -0.017046591266989708, 0.03262817859649658, 0.045031946152448654, -0.0006292986799962819, 0.01414202805608511, -0.055752914398908615, 0.0003086086653638631, -0.0368247851729393, -0.033907342702150345, 0.04930535703897476, 0.026520095765590668, -0.005026656668633223, -0.004121703095734119, 0.004540229216217995, 0.025430448353290558, 0.010770855471491814, 0.0022203056141734123, -0.028275173157453537, 0.009423427283763885, 0.018001217395067215, -0.058361005038022995, -0.05990903452038765, -0.00633857911452651, -0.015136648900806904, -0.041098278015851974, -0.0029173733200877905, -0.0017981338314712048, 0.011633800342679024, -0.018551137298345566, 0.021965736523270607, -0.012328222393989563, 0.0020483455155044794, 0.020202375948429108, -0.02421076036989689, 0.012794573791325092, 0.03376433998346329, -0.03891823813319206, -0.04094378650188446, 0.024824677035212517, -0.006013000849634409, 0.00005099417830933817, -0.01603802852332592, -0.03940105438232422, 0.025760885328054428, 0.013197026215493679, -0.005713097285479307, 0.015825936570763588, 0.019169673323631287, -0.011343277990818024, -0.025515859946608543, -0.04155860096216202, -0.058958183974027634 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
AutoGPTQ library – the one-stop library for efficiently leveraging GPTQ for LLMs The AutoGPTQ library enables users to quantize 🤗 Transformers models using the GPTQ method. While parallel community efforts such as GPTQ-for-LLaMa, Exllama and llama.cpp implement quantization methods strictly for the Llama architecture, AutoGPTQ gained popularity through its smooth coverage of a wide range of transformer architectures. Since the AutoGPTQ library has a larger coverage of transformers models, we decided to provide an integrated 🤗 Transformers API to make LLM quantization more accessible to everyone. At this time we have integrated the most common optimization options, such as CUDA kernels. For more advanced options like Triton kernels or fused-attention compatibility, check out the AutoGPTQ library.
[ 0.016390500590205193, -0.0199684277176857, 0.02171395532786846, 0.02427614852786064, 0.013116001151502132, 0.03956712782382965, -0.005498087499290705, 0.032415442168712616, 0.04045923054218292, 0.043606627732515335, -0.06171130761504173, 0.07300478965044022, -0.05564321577548981, 0.07361235469579697, 0.04339214041829109, 0.009598278440535069, -0.004305816255509853, 0.01335452776402235, -0.014133946038782597, 0.05987866222858429, 0.03854268416762352, -0.03363541513681412, 0.08822353184223175, -0.030041823163628578, 0.0049122595228254795, -0.05962558835744858, 0.009918583557009697, 0.07813344150781631, -0.0235056784003973, 0.01993877999484539, -0.06021087244153023, 0.012987370602786541, -0.035115644335746765, -0.024675417691469193, 0.05232717841863632, -0.026742668822407722, -0.08915382623672485, 0.010663299821317196, 0.06424234807491302, -0.026259269565343857, 0.04392695054411888, -0.059741877019405365, -0.03366082161664963, 0.007715917658060789, -0.003500700928270817, 0.030236219987273216, -0.05022807791829109, 0.061371248215436935, -0.06003210321068764, -0.09146930277347565, -0.013204896822571754, 0.048624373972415924, -0.0475173220038414, 0.011284359730780125, 0.04653582721948624, 0.08715797960758209, 0.03289858624339104, -0.09802304953336716, -0.04919419810175896, 0.013516663573682308, 0.007132810074836016, -0.007026930805295706, 0.035016901791095734, 0.03821137174963951, 0.02682359330356121, 0.007789435796439648, -0.05400489643216133, -0.000550417578779161, -0.027225440368056297, -0.021682020276784897, -0.012264352291822433, 0.010978440754115582, -0.04590922221541405, -0.02260996401309967, -0.005110672675073147, -0.012153241783380508, -0.04985194280743599, 0.07428053766489029, 0.05607384070754051, 0.028374921530485153, 0.011537553742527962, 0.04907536134123802, 0.05809702351689339, -0.007084997836500406, 0.026973027735948563, 0.018694570288062096, 0.005204859655350447, -0.15217559039592743, -0.020423106849193573, 0.0018835626542568207, -0.05219722166657448, -0.14279013872146606, -0.0497397817671299, -0.013961657881736755, -0.0027053907979279757, 0.016649598255753517, 0.033151883631944656, -0.02056451328098774, -0.02599583938717842, 0.003767982590943575, 0.005232155788689852, 0.018878823146224022, 0.017871588468551636, -0.006733880843967199, -0.049367111176252365, 0.04895303398370743, -0.020124126225709915, -0.09495294094085693, -0.07855110615491867, 0.0007176845683716238, -0.02449158765375614, -0.011203491128981113, 0.049322374165058136, -0.003809131681919098, -0.08339240401983261, 0.03012550063431263, 0.015123662538826466, 0.005453355610370636, 0.01588463969528675, 0.06608802825212479, -0.05234982445836067, 0.05790150910615921, 0.0635748878121376, -0.007951048202812672, 0.05372542142868042, 0.02524162083864212, 0.017960986122488976, -0.06213543191552162, 0.032619133591651917, -0.004472567234188318, 0.0694618970155716, 0.010036692954599857, 0.07432147860527039, -0.048559825867414474, -0.025337254628539085, -0.029963022097945213, -0.009112497791647911, -0.05648958310484886, -0.03560240566730499, -0.019800595939159393, -0.006357372738420963, 0.018568813800811768, -0.00020641833543777466, -0.0810137689113617, -0.01050327904522419, 0.0671846866607666, -0.11490722000598907, 0.08362800627946854, -0.029601773247122765, 0.02025996707379818, -0.05632833018898964, 0.03960711508989334, -0.056392110884189606, -0.08529231697320938, 0.05922625958919525, 0.041705768555402756, -0.010554715991020203, 0.05449525639414787, -0.08441248536109924, -0.006604850757867098, -0.025527311488986015, -0.02052539587020874, -0.036725692451000214, -0.0011891555041074753, -0.008297975175082684, -0.016811255365610123, -0.021912533789873123, -0.004087192937731743, -0.0219444427639246, 0.038915809243917465, -0.01097172312438488, -0.009184788912534714, 0.020991139113903046, -0.03401842340826988, 0.009755670092999935, 0.008575519546866417, 0.09262637794017792, 0.03193172439932823, 0.011378994211554527, 0.014376785606145859, -0.030162954702973366, 0.028873341158032417, 0.00916553009301424, 0.017509400844573975, -0.03529096022248268, -0.058974213898181915, 0.029623348265886307, -0.014919883571565151, -0.022931357845664024, -0.06235925480723381, -0.05868501961231232, 0.039431069046258926, 0.033666059374809265, 0.023693595081567764, 0.048441287130117416, 0.02645588107407093, -0.05007973313331604, 0.12133410573005676, 0.09571781754493713, 0.0294062290340662, 0.06459008157253265, -0.026613816618919373, 0.05261190980672836, -0.030528750270605087, 0.02494448609650135, 0.009012876078486443, -0.029029538854956627, 0.03350496292114258, 0.0286263357847929, 0.01546555943787098, 0.06364016979932785, -0.0938749834895134, -0.04775043576955795, -0.010536625981330872, -0.004318314604461193, -0.0637725219130516, -0.01740303263068199, 0.006401244085282087, -0.006687107030302286, -0.029240190982818604, 0.10231401026248932, -0.07732493430376053, 0.002101725898683071, -0.07623348385095596, -0.08117339760065079, 0.0901719182729721, 0.05019081383943558, 0.03554486855864525, 0.031149161979556084, -0.018319519236683846, 0.045707449316978455, -0.10936335474252701, 0.028652779757976532, 0.013239029794931412, -0.00852824468165636, -0.06494675576686859, 0.011709786020219326, -0.026289330795407295, 0.10528184473514557, 0.047563083469867706, 0.03407789021730423, 0.07479581981897354, -0.06995626538991928, 0.04741766303777695, 0.09756902605295181, 0.01763586327433586, 0.016866089776158333, -0.05079029127955437, 0.028012601658701897, -0.003198588266968727, -0.02625580132007599, 0.022969182580709457, -0.001219367142766714, -0.02836301364004612, 0.007374331820756197, -0.04411235824227333, 0.007422964554280043, 0.010222733952105045, -0.047281164675951004, 0.014950820244848728, 0.0003405176103115082, -2.454297600706923e-7, -0.009737424552440643, -0.04390012472867966, -0.022497156634926796, -0.003912290558218956, 0.085944764316082, 0.01713789440691471, -0.01697666198015213, -0.009270199574530125, -0.0063005792908370495, -0.027094872668385506, 0.050794560462236404, 0.007847292348742485, 0.013436374254524708, 0.01610354147851467, -0.002217481378465891, -0.007177345454692841, -0.04880218580365181, -0.024947840720415115, 0.003751171985641122, -0.03269759938120842, 0.043358031660318375, 0.015343507751822472, -0.048173271119594574, 0.007853871211409569, -0.03518684208393097, -0.011290095746517181, -0.023392051458358765, 0.020590152591466904, -0.0019230367615818977, 0.04190816730260849, -0.026792993769049644, -0.017740357667207718, -0.016178347170352936, -0.015244399197399616, -0.007299833465367556, 0.0028226329013705254, -0.010195976123213768, 0.033056747168302536, 0.02284684032201767, 0.002344756852835417, 0.017429521307349205, 0.04900519549846649, 0.014012019149959087, 0.024703998118638992, 0.030228326097130775, 0.04408929497003555, -0.07120095938444138, -0.040149059146642685, -0.022713547572493553, -0.01012780424207449, 0.033282894641160965, -0.052831556648015976, 0.06281686574220657, 0.009395135566592216, -0.005008467938750982, 0.014268388040363789, 0.0538695864379406, -0.003460285719484091, 0.025357984006404877, 0.03762061148881912, 0.0038527282886207104, 0.0019786416087299585, -0.04271955415606499, 0.002684192033484578, 0.033852871507406235, 0.043366748839616776, 0.04693872854113579, 0.005630158353596926, 0.005015598144382238, 0.010118640027940273, 0.005416258238255978, -0.04720328748226166, -0.024287905544042587, 0.0012393984943628311, 0.02815745770931244, 0.01993502490222454, -0.0036110524088144302, 0.01833568513393402, 0.027573226019740105, -0.004671980161219835, -0.046203501522541046, -0.036040931940078735, -0.00029856120818294585, 0.029651060700416565, 0.015958158299326897, 0.05084533244371414, 0.028542134910821915, -0.022879164665937424, 0.038515571504831314, -0.04098879545927048, 0.01893741451203823, -0.002917442237958312, -0.005430661141872406, 0.028964737430214882, 0.034969404339790344, -0.054311297833919525, -0.020235808566212654, -0.0013872056733816862, -0.019150620326399803, 0.028931351378560066, -0.0035146342124789953, -0.030971800908446312, 0.0028591156005859375, -0.01914951764047146, 0.011669663712382317, 0.04495931416749954, -0.03743712604045868, 0.015587943606078625, -0.004823204595595598, -0.014144337736070156, -0.015805942937731743, 0.02720917947590351, 0.01263489667326212, -0.035608869045972824, 0.02624262124300003, 0.04023298621177673, 0.028024284169077873, 0.020161068066954613, 0.011926833540201187, 0.006002525333315134, -0.03872830048203468, 0.027615850791335106, -0.010758426040410995, -0.03092658519744873, 0.031945761293172836, 0.011307002045214176, -0.02607479691505432, -0.025929657742381096, -0.07431916147470474, 0.007394232787191868, -0.010533621534705162, -0.028554746881127357, 0.003985990304499865, -0.025761401280760765, 0.008160006254911423, 0.008495631627738476, 0.024610256776213646, -0.017470700666308403, 0.0190779697149992, -0.04080449417233467, 0.002955950330942869, 0.018056385219097137, 0.025269392877817154, 0.039129145443439484, 0.024881059303879738, 0.0028326997999101877, 0.026297397911548615, -0.0155640235170722, -0.013556281104683876, -0.005100194364786148, -0.07888288795948029, 0.019776901230216026, -0.006299437489360571, -0.022005945444107056, 0.024633662775158882, 0.04711247235536575, 0.008108524605631828, -0.04195360839366913, -0.0108495419844985, 0.04742523655295372, 0.03808821737766266, -0.009791459888219833, 0.02214084379374981, 0.002511573489755392, 0.013219844549894333, 0.0012650464195758104, -0.009424891322851181, 0.0013135994086042047, -0.026160115376114845, -0.03564342483878136, 0.0535925067961216, -0.007999751716852188, -0.011859431862831116, -0.024180619046092033, -0.016257435083389282, 0.017435723915696144, -0.047164492309093475, -0.05609576776623726, 0.016940513625741005, 0.0044304984621703625, -0.0281707551330328, -0.014251695945858955, -0.03746495023369789, 0.030210718512535095, -0.008654089644551277, -0.006548757199198008, -0.03659436106681824, -0.005718308035284281, -0.009387809783220291, -0.03531767055392265, 0.007647034712135792, -0.03405921906232834, 0.044564150273799896, 0.023093964904546738, -0.017361339181661606, 0.048439543694257736, 0.01774120330810547, -0.04987375810742378, 0.021680861711502075, -0.027378402650356293, 0.031028687953948975, 0.04441559314727783, 0.008467510342597961, 0.026259826496243477, -0.002005909336730838, 0.03840205445885658, 0.021434053778648376, 0.020295025780797005, -0.05158497765660286, -0.05061458796262741, 0.03516406938433647, 0.023539870977401733, 0.01953832432627678, -0.027359377592802048, -0.005161358509212732, 0.0353766530752182, -0.009804955683648586, -0.009029582142829895, 0.023685894906520844, -0.003375287866219878, 0.004860101267695427, 0.05432481691241264, 0.03896256536245346, -0.023081662133336067, -0.01809557154774666, -0.03236136958003044, -0.03144068643450737, -0.04237653687596321, 0.04913339763879776, -0.01035483367741108, -0.01054385956376791, 0.005355473142117262, 0.008411722257733345, 0.07732980698347092, -0.060589276254177094, 0.01509041152894497, 0.0016278449911624193, -0.005983322858810425, 0.015527326613664627, 0.0008572639781050384, 0.0009533941629342735, -0.01660872995853424, 0.02113550528883934, 0.0090642049908638, 0.006811743602156639, -0.03343627601861954, 0.06666787713766098, 0.03226977959275246, -0.04531238600611687, -0.030539924278855324, 0.017549948766827583, -0.004282992798835039, 0.03902332857251167, -0.05825120210647583, -0.001625079894438386, -0.01560151670128107, 0.007463518064469099, 0.0000678027790854685, 0.00440539326518774, -0.02177189476788044, 0.02599741332232952, -0.00580263277515769, 0.0097272964194417, 0.031041475012898445, 0.001743250759318471, -0.001413901336491108, 0.01731288805603981, -0.008349291048943996, 0.03095639869570732, 0.000014096041013544891, 0.009592639282345772, -0.029963353648781776, -0.026826776564121246, -0.01344427838921547, 0.020647037774324417, -0.011815018951892853, -0.004320742562413216, -0.0383266881108284, -0.00894248764961958, -0.006195781286805868, 0.004717830568552017, 0.0029813172295689583, -0.046331048011779785, 0.023594312369823456, -0.01298963837325573, -0.040173694491386414, -0.006959567777812481, -0.07115180790424347, -0.03740808367729187, -0.003669851692393422, -0.0716681033372879, 0.049136072397232056, 0.05767522007226944, -0.011120934970676899, -0.025192392989993095, -0.02236168459057808, 0.021580008789896965, 0.004407122265547514, 0.02916642278432846, 0.03397447615861893, 0.014871381223201752, 0.026059988886117935, 0.05437449365854263, 0.009596005082130432, 0.014150785282254219, 0.019495051354169846, 0.013945401646196842, -0.03012087009847164, -0.021461468189954758, 0.05421106889843941, -0.05878552421927452, 0.01708045043051243, -0.002351451897993684, -0.08224263042211533, -0.024154530838131905, -0.0357355922460556, -0.0011231097159907222, 0.008160557597875595, 0.021858973428606987, 0.008363954722881317, -0.036704882979393005, -0.025100335478782654, 0.0035054420586675406, 0.05804909020662308, 0.0027818349190056324, 0.026441093534231186, -0.004894833080470562, 0.038784753531217575, 0.025316689163446426, 0.015449095517396927, 0.0348537340760231, 0.005977202672511339, 0.026225581765174866, 0.011591071262955666, 0.005700153764337301, -0.008389762602746487, -0.04163141921162605, -0.03841300681233406, 0.021077590063214302, -0.006889548152685165, -0.03090144693851471, -0.0033087499905377626, 0.0276277344673872, 0.022201882675290108, 0.01159637700766325, -0.025131946429610252, 0.06390943378210068, 0.05487791821360588, 0.05307566002011299, -0.0019855881109833717, 0.017196470871567726, -0.029080040752887726, -0.0016503992956131697, 0.042865123599767685, -0.006026937626302242, 0.006215224973857403, -0.020228715613484383, 0.06096846982836723, 0.026113880798220634, 0.04671340435743332, -0.00441130343824625, -0.04037557914853096, -0.00271158991381526, -0.03365042060613632, 0.008822813630104065, 0.042672909796237946, -0.015514087863266468, 0.0025197009090334177, 0.016609396785497665, 0.014606785960495472, -0.027304554358124733, -0.02197684906423092, 0.019358400255441666, -0.030936555936932564, -0.004772950429469347, -0.02763570100069046, 0.008368358016014099, -0.02303534373641014, -0.013038268312811852, -0.01710835099220276, 0.032462939620018005, 0.0541129931807518, -0.014044401235878468, 0.000006113958079367876, -0.023919228464365005, -0.022638505324721336, -0.02082103118300438, -0.0033264867961406708, -0.02224820852279663, 0.056207429617643356, 0.0062754894606769085, 0.003365081502124667, 0.04162881150841713, 0.005815571174025536, -0.0008737639291211963, 0.02859090268611908, -0.0063042547553777695, 0.021137798205018044, -0.05724634602665901, -0.007128305267542601, -0.020825309678912163, -0.01398802362382412, 0.032912228256464005, -0.037697043269872665, 0.031183920800685883, 0.016337692737579346, 0.012369625270366669, 0.06602758914232254, 0.06651998311281204, -0.005568854045122862, -0.02015671506524086, -0.005886363796889782, -0.0009403915028087795, -0.020172199234366417, 0.04686926305294037, -0.010816747322678566, -0.022597182542085648, 0.023994887247681618, -0.04331965371966362, 0.04789125919342041, 0.026169169694185257, -0.01874096319079399, 0.07438827306032181, 0.024921834468841553, -0.0005108097684569657, 0.018890714272856712, 0.01983007602393627, -0.039355479180812836, 0.032176610082387924, 0.034329213201999664, 0.014625038020312786, 0.018389886245131493, -0.0072334688156843185, 0.012007458135485649, -0.047634780406951904, 0.028502997010946274, -0.026300014927983284, -0.04627862945199013, 0.006623703055083752, 0.022424720227718353, 0.026007486507296562, 0.010428340174257755, -0.02383381687104702, 0.009022964164614677, -0.058196090161800385, -0.0608152411878109, 0.007090083323419094, 0.009415966458618641, 0.06332655251026154, 0.002400808036327362, -0.0025208187289536, -0.013962973840534687, -0.01767572946846485, 0.0017194767715409398, -0.02516510710120201, 0.00643828883767128, 0.03682616353034973, 0.009452048689126968, 0.006903016474097967, -0.042595330625772476, -0.02282397449016571, -0.03347853198647499, -0.018571699038147926, 0.03749449923634529, -0.01802264153957367, -0.019845500588417053, -0.02183958701789379, -0.008190041407942772, 0.01778615638613701, 0.028192859143018723, -0.02810623310506344, -0.006836897227913141, 0.0016185306012630463, 0.018172938376665115, -0.07577408850193024, -0.08195792883634567, -0.001341798808425665, -0.0038234347011893988, -0.06988029181957245, -0.0004903986118733883, 0.00573754170909524, 0.03107660822570324, -0.01145070232450962, 0.06158427521586418, -0.00641481950879097, 0.009141606278717518, 0.01951500028371811, -0.001992969773709774, 0.019459214061498642, 0.04804319888353348, -0.05483821779489517, -0.02195746824145317, -0.013688555918633938, 0.0029063562396913767, 0.012437461875379086, -0.029566001147031784, -0.034459441900253296, 0.010988052934408188, 0.027749769389629364, 0.0021412598434835672, 0.0015672094887122512, 0.01569277048110962, 0.0049297078512609005, -0.015234514139592648, -0.06641915440559387, -0.03147098422050476 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Resources This blogpost and release come with several resources to get started with GPTQ quantization: - Original Paper - Basic usage Google Colab notebook - This notebook shows how to quantize your transformers model with GPTQ method, how to do inference, and how to do fine-tuning with the quantized model. - Transformers integration documentation - Optimum integration documentation - The Bloke repositories with compatible GPTQ models.
[ 0.06113232672214508, -0.055890362709760666, 0.02434632182121277, 0.039538148790597916, 0.07059694081544876, 0.03359542414546013, -0.021133070811629295, 0.06471405923366547, 0.04710988327860832, -0.012375451624393463, -0.03441754728555679, 0.07706697285175323, -0.008669129572808743, 0.06274550408124924, 0.024444352835416794, -0.01413223147392273, 0.01600186713039875, -0.018314167857170105, 0.006707021966576576, 0.039390161633491516, 0.027654262259602547, -0.008960960432887077, -0.009108660742640495, 0.004941269755363464, 0.07821786403656006, -0.10589803755283356, 0.0073936935514211655, 0.032253727316856384, -0.051045093685388565, 0.04905368760228157, -0.07266481220722198, 0.0028253833297640085, -0.016896365210413933, -0.037001460790634155, 0.013859604485332966, -0.007722384762018919, -0.10588601976633072, 0.0022207549773156643, 0.048536062240600586, -0.024001121520996094, 0.03219306096434593, -0.03987498581409454, -0.0017018485814332962, 0.054263368248939514, -0.0033048151526600122, -0.001159090781584382, -0.1338450312614441, 0.058170534670352936, -0.04667312651872635, -0.11242998391389847, 0.03557652235031128, 0.09689120948314667, -0.04038045182824135, -0.03872213512659073, 0.0007174748461693525, -0.0015955358976498246, 0.017243998125195503, -0.10385004431009293, -0.015542866662144661, -0.02387087792158127, 0.07445023208856583, -0.016059510409832, -0.0009684307151474059, 0.05714038014411926, 0.01906680129468441, -0.013756672851741314, -0.053734537214040756, 0.058581333607435226, -0.041005633771419525, -0.010792993009090424, -0.02580626681447029, -0.022311821579933167, -0.008721914142370224, -0.05949699878692627, -0.06229792907834053, -0.02285318449139595, -0.05571356788277626, 0.06846267729997635, 0.024279162287712097, 0.049984537065029144, -0.01310696080327034, 0.002960112877190113, 0.03727618604898453, 0.03937143459916115, 0.04125965014100075, 0.03623490780591965, 0.015495344065129757, -0.015832355245947838, -0.055154215544462204, 0.08476243168115616, 0.024839479476213455, -0.17432187497615814, -0.06759205460548401, -0.0510517954826355, 0.0365658737719059, -0.04662676155567169, 0.044518761336803436, 0.023524640128016472, -0.028448613360524178, -0.04357641562819481, -0.017021996900439262, 0.017044976353645325, 0.003030217718333006, -0.04257863759994507, -0.04657672345638275, 0.04685122147202492, -0.029886124655604362, -0.11869607120752335, -0.04570940509438515, 0.022266935557127, -0.006933035794645548, -0.028639599680900574, 0.023661591112613678, 0.04061374068260193, -0.06422632932662964, 0.079534612596035, -0.010478410869836807, -0.023109864443540573, -0.01883937232196331, 0.0778295025229454, -0.039819035679101944, 0.06627921015024185, 0.055665936321020126, 0.027708714827895164, 0.0006854712264612317, -0.019216369837522507, 0.06048628315329552, -0.04666195064783096, -0.004077362362295389, -0.02044420689344406, 0.04298132285475731, -0.016473805531859398, 0.07612258195877075, -0.08520513772964478, -0.004053768701851368, -0.0940687283873558, 0.00959060899913311, -0.07054497301578522, -0.06633036583662033, 0.004834109917283058, 0.02815409004688263, 0.061761416494846344, -0.013882472179830074, 0.00498960493132472, 0.04143693670630455, -0.015140725299715996, -0.0856359675526619, 0.05324754863977432, -0.03430939465761185, 0.06212418153882027, -0.09052413702011108, 0.0538690984249115, -0.05778493732213974, -0.05785325914621353, 0.003520549274981022, 0.015322854742407799, -0.023730071261525154, 0.0091128284111619, -0.0638383999466896, -0.03753183037042618, -0.02951006591320038, -0.06241605430841446, -0.008352198638021946, 0.029225671663880348, 0.0035181655548512936, -0.009793021716177464, -0.008460340090095997, -0.0064181191846728325, -0.0093757975846529, 0.010252549313008785, 0.060362834483385086, -0.04229525849223137, 0.05954480916261673, -0.009560995735228062, -0.021458406001329422, 0.046541161835193634, 0.0194990336894989, 0.045219726860523224, 0.002241058275103569, 0.0031778309494256973, -0.046518512070178986, 0.01869792677462101, 0.006905737332999706, 0.02534043788909912, 0.039061132818460464, -0.10460702329874039, 0.031086331233382225, -0.03360260650515556, 0.02510068193078041, -0.017828237265348434, -0.046194564551115036, -0.007007690612226725, 0.0687304213643074, -0.0018158166203647852, 0.0845239982008934, -0.03937467560172081, -0.010010973550379276, 0.09923112392425537, 0.03981134667992592, 0.011083303019404411, 0.047463640570640564, -0.0347135066986084, 0.04131047800183296, -0.04985306039452553, -0.0027916710823774338, 0.02456497959792614, 0.012784324586391449, -0.029831670224666595, 0.04477504640817642, -0.015758518129587173, 0.023128962144255638, -0.08268380165100098, 0.015283185988664627, -0.06588172912597656, 0.024479428306221962, -0.0494348481297493, -0.012370523065328598, 0.06625167280435562, 0.008449390530586243, -0.056837767362594604, 0.183280810713768, -0.022938234731554985, 0.05181698873639107, -0.029194261878728867, -0.030554167926311493, 0.00863048154860735, 0.10827330499887466, 0.01815209910273552, 0.0677589401602745, -0.01593216508626938, -0.020099440589547157, -0.03439619392156601, 0.017742082476615906, 0.049362581223249435, -0.02536817081272602, -0.042145803570747375, -0.033925365656614304, -0.015441344119608402, 0.054546747356653214, -0.021074052900075912, 0.03466450795531273, 0.027229445055127144, -0.057890232652425766, 0.014033723622560501, 0.05004683509469032, 0.03329849988222122, 0.053906116634607315, 0.018901215866208076, -0.0059697250835597515, -0.044298842549324036, -0.08633019030094147, 0.014679448679089546, -0.014825782738626003, -0.017444206401705742, 0.0472903698682785, 0.02097676321864128, 0.04341938719153404, 0.010948778130114079, -0.003101194277405739, 0.024945518001914024, 0.008968720212578773, 0.02088371478021145, -0.02062097191810608, -0.01177670806646347, 0.009728767909109592, -0.013139929622411728, -0.023595251142978668, -0.004844087641686201, -0.014979439787566662, -0.029747342690825462, 0.004370844457298517, -0.01890387572348118, 0.02479088120162487, 0.012778681702911854, 0.013123221695423126, 0.010042686946690083, -0.006279176566749811, -0.030098658055067062, 0.006287640891969204, 0.0010847168741747737, 0.019720252603292465, -0.023362888023257256, 0.03767280653119087, 0.026413019746541977, 0.016368318349123, 0.009158981963992119, -0.0338585190474987, -0.05573936551809311, -0.015242929570376873, 0.010227787308394909, -0.008017115294933319, 0.031124290078878403, -0.03274383395910263, -0.014945988543331623, -0.0028216762002557516, 0.004583185538649559, 0.002474823733791709, -0.01220079604536295, 0.01800634153187275, 0.040638405829668045, -0.007491467986255884, 0.003464632900431752, 0.04063904285430908, -0.01283639669418335, -0.01547734159976244, 0.03425457328557968, 0.022898660972714424, 0.03237646818161011, -0.10159648954868317, -0.018756238743662834, 0.008680732920765877, 0.05820425972342491, 0.008521316573023796, -0.0384383350610733, 0.034013569355010986, -0.009466340765357018, -0.024125587195158005, -0.035693779587745667, 0.020346788689494133, -0.005739555694162846, 0.020397504791617393, 0.02777104079723358, -0.0018894467502832413, -0.007439790293574333, -0.005992467515170574, 0.008370940573513508, 0.010491468012332916, 0.04302969202399254, -0.0345698818564415, 0.07224516570568085, -0.017766380682587624, -0.029666027054190636, 0.0323789119720459, -0.0016132957534864545, 0.019873684272170067, 0.054561104625463486, 0.04112133011221886, -0.01600012555718422, 0.009311010129749775, -0.009155873209238052, 0.001862754113972187, 0.021643266081809998, -0.01087731309235096, -0.0004545171686913818, -0.03468351438641548, -0.013249830342829227, 0.002152231289073825, 0.04313470050692558, -0.009005515836179256, 0.01030841562896967, 0.011129754595458508, -0.03194457292556763, 0.006335083395242691, 0.030334925279021263, -0.00040617468766868114, 0.028335807844996452, 0.02005595527589321, -0.03050234727561474, -0.06294803321361542, 0.007921201176941395, -0.008143800310790539, 0.01901903748512268, -0.003967965953052044, 0.012880923226475716, -0.0016457070596516132, -0.00016628217417746782, 0.047899648547172546, 0.00857714656740427, -0.02271060273051262, -0.004100682679563761, 0.010852260515093803, -0.009933087043464184, -0.040897712111473083, 0.040365852415561676, -0.010424165055155754, 0.005029556341469288, 0.018971659243106842, 0.03010328859090805, 0.0075297788716852665, 0.040373485535383224, 0.04277307540178299, 0.011949129402637482, -0.022024117410182953, 0.03890470042824745, -0.02463822439312935, -0.01656031236052513, 0.06694824993610382, 0.03082726150751114, -0.05567613244056702, -0.0459870807826519, -0.03682127967476845, -0.017636071890592575, -0.017481524497270584, -0.016576388850808144, 0.0002862662367988378, -0.04721398279070854, 0.015534219332039356, 0.020541664212942123, 0.038866039365530014, -0.00376827921718359, 0.01869901642203331, -0.006498289760202169, -0.021598495543003082, 0.03270595148205757, 0.044150080531835556, 0.00961225014179945, 0.01741766929626465, 0.016800198704004288, 0.002574615180492401, -0.031243007630109787, 0.0005391033482737839, -0.0006202453514561057, -0.016146009787917137, 0.04295927658677101, -0.003165798494592309, -0.02763729728758335, 0.015369880944490433, 0.03130035474896431, 0.0584682933986187, -0.021808138117194176, -0.053708918392658234, -0.026009108871221542, 0.052906230092048645, -0.02013465017080307, -0.00395904341712594, -0.02575812116265297, 0.010170066729187965, 0.03356651961803436, -0.016745831817388535, -0.013253016397356987, -0.03781517967581749, -0.019830357283353806, 0.01922360435128212, 0.033649690449237823, -0.008878832682967186, 0.004611574113368988, -0.02869737148284912, 0.015968620777130127, 0.010086004622280598, -0.06028331071138382, -0.02879214845597744, 0.0040667555294930935, -0.019288072362542152, 0.009931441396474838, -0.020356498658657074, 0.027865378186106682, -0.018804235383868217, -0.05128549039363861, -0.011503963731229305, 0.003690895391628146, 0.0686897560954094, -0.04988938570022583, 0.02872285805642605, 0.0029441702645272017, -0.019805150106549263, -0.009769645519554615, 0.0002036612422671169, 0.029983481392264366, 0.046613726764917374, -0.021253477782011032, 0.003338853595778346, -0.006846988573670387, 0.03046313114464283, -0.001730342861264944, -0.008063116110861301, 0.030693862587213516, -0.021337907761335373, 0.056925274431705475, 0.03939303383231163, 0.027232756838202477, -0.03042466752231121, -0.009473524987697601, 0.030875474214553833, -0.005658975802361965, -0.00205264613032341, -0.03035047836601734, -0.031170064583420753, 0.022875331342220306, -0.027987848967313766, -0.01524948887526989, 0.04299669712781906, -0.03745182603597641, 0.02635323628783226, 0.05747222900390625, 0.0408344492316246, 0.020973557606339455, 0.015494459308683872, -0.003262928454205394, -0.02351986989378929, -0.03482929244637489, 0.03555501252412796, -0.004758763127028942, -0.0001244750019395724, 0.004079591948539019, 0.02274627611041069, 0.07032940536737442, -0.015520778484642506, 0.012384168803691864, 0.04779310151934624, -0.021506356075406075, 0.05148022249341011, -0.03352690115571022, -0.030921826139092445, -0.029623571783304214, 0.011005961336195469, 0.009243838489055634, -0.006931374780833721, -0.016501925885677338, 0.04905671253800392, 0.050990063697099686, -0.039867475628852844, -0.0036996444687247276, 0.040443260222673416, 0.014422125183045864, -0.007438799366354942, -0.026170888915657997, 0.03219124674797058, -0.03199131414294243, 0.01540568470954895, -0.016338130459189415, -0.0049250018782913685, -0.06375940144062042, 0.02887900546193123, -0.022936269640922546, -0.024726497009396553, -0.004058718681335449, 0.018066229298710823, 0.03645018860697746, -0.02558876760303974, -0.01064008567482233, -0.014176781289279461, 0.022823497653007507, 0.030410444363951683, -0.015894781798124313, -0.009776141494512558, 0.0071980613283813, 0.006543742027133703, -0.011791003867983818, 0.005564532708376646, -0.031751252710819244, -0.021427998319268227, 0.04724409431219101, -0.0067841662093997, -0.0017898406367748976, -0.04608597233891487, 0.013532271608710289, 0.026295024901628494, -0.05362004041671753, -0.007463476620614529, -0.069991335272789, -0.020827334374189377, -0.013488943688571453, -0.05404007062315941, 0.031895603984594345, 0.10764919221401215, 0.002530738478526473, 0.01245717704296112, -0.008122562430799007, 0.030367860570549965, -0.010542264208197594, 0.023367470130324364, 0.00029153694049455225, 0.02334645576775074, 0.04158535599708557, 0.03934384137392044, -0.016178501769900322, 0.019849875941872597, 0.0318012610077858, 0.0369025357067585, -0.03142538666725159, 0.020908888429403305, 0.035480186343193054, -0.02835438773036003, 0.04210527986288071, -0.04692402854561806, -0.06048424541950226, 0.0011946255108341575, 0.021423684433102608, 0.03157960996031761, 0.021872512996196747, -0.004365698900073767, 0.019713815301656723, -0.021530061960220337, -0.027013661339879036, 0.015455697663128376, 0.047215357422828674, -0.023437613621354103, 0.019399339333176613, 0.010020922869443893, 0.037504587322473526, 0.050445251166820526, 0.021879425272345543, 0.006462765857577324, -0.0007521602092310786, 0.035176005214452744, 0.012000910006463528, 0.01978636533021927, 0.011823580600321293, -0.03414803370833397, -0.04768719524145126, -0.0004498095659073442, -0.0250333771109581, -0.04079742729663849, 0.03894542157649994, 0.027240581810474396, -0.025543315336108208, 0.04234020411968231, -0.03389153629541397, 0.05711991339921951, 0.04458750784397125, 0.019349224865436554, -0.03595362976193428, 0.02040688507258892, 0.05009271949529648, -0.019783809781074524, 0.02001970261335373, -0.0032611247152090073, -0.014372183009982109, -0.0004814813146367669, 0.06793126463890076, 0.005159398075193167, 0.03244208171963692, -0.007857016287744045, 0.0000696638526278548, -0.0038004149682819843, -0.008662164211273193, -0.009037265554070473, 0.013686105608940125, 0.024843256920576096, -0.013679731637239456, 0.01026152539998293, -0.008400964550673962, -0.03437411040067673, 0.023073099553585052, 0.003998695407062769, -0.009559858590364456, -0.007185643073171377, -0.03483977168798447, 0.006708711385726929, 0.03169156238436699, 0.015095957554876804, -0.019602477550506592, 0.029452910646796227, 0.057891830801963806, -0.012064715847373009, -0.012980351224541664, -0.02726752869784832, -0.015115123242139816, -0.05154448747634888, -0.03559785708785057, -0.03721795231103897, 0.031056104227900505, -0.036522556096315384, -0.004571047145873308, 0.03256041556596756, 0.037807103246450424, -0.03741113841533661, 0.018555769696831703, 0.015134064480662346, 0.014862185344099998, -0.038301732391119, 0.03985728695988655, -0.008338484913110733, -0.033088818192481995, 0.028659487143158913, -0.04301284998655319, -0.005671235267072916, -0.01804214157164097, 0.027029044926166534, 0.05380653217434883, 0.03776930645108223, -0.04238414764404297, -0.03419005125761032, 0.029476497322320938, -0.026610422879457474, -0.041327543556690216, 0.00891667790710926, -0.03275688365101814, 0.007895786315202713, -0.006761026103049517, -0.001347244018688798, 0.0549963153898716, -0.005128099117428064, 0.011987172067165375, 0.055466070771217346, 0.005488772410899401, -0.017819929867982864, 0.007650190964341164, 0.021657634526491165, -0.010530871339142323, -0.00029469470609910786, 0.024178974330425262, 0.023826345801353455, -0.0073195588774979115, -0.032305773347616196, 0.00556632224470377, -0.03142433986067772, 0.018746940419077873, -0.04692244529724121, -0.048057492822408676, -0.011711899191141129, 0.008559049107134342, 0.01611959934234619, 0.01746087707579136, -0.03716195374727249, -0.0396980345249176, -0.03959709778428078, -0.016713598743081093, -0.01662483811378479, -0.0047432915307581425, 0.049202922731637955, 0.03646621108055115, 0.035081036388874054, -0.005707046017050743, -0.028113732114434242, 0.004053676500916481, -0.00589560205116868, 0.0003237862838432193, 0.03973742946982384, 0.018410678952932358, 0.002419650787487626, -0.02884497307240963, 0.010021673515439034, -0.007157405838370323, -0.05272369831800461, 0.06224596127867699, 0.03467302396893501, 0.008917000144720078, -0.033568788319826126, -0.003489202819764614, 0.010749283246695995, 0.015358802862465382, -0.008032413199543953, -0.0034759037662297487, -0.0037708927411586046, -0.0008370819268748164, -0.03428420051932335, -0.04284096881747246, -0.005047064274549484, -0.01981455273926258, -0.04037976637482643, -0.021500881761312485, 0.015310392715036869, 0.003071552375331521, -0.019697703421115875, -0.02884448878467083, -0.013599216006696224, 0.028193557634949684, 0.026503881439566612, -0.03769971430301666, 0.028831884264945984, 0.04665014520287514, -0.03058069571852684, -0.02973053604364395, 0.017177317291498184, -0.010776408016681671, -0.017090756446123123, 0.009903480298817158, 0.02392427809536457, 0.0191918034106493, -0.011539586819708347, 0.001984580419957638, -0.006845690775662661, 0.038103654980659485, 0.026137126609683037, -0.000017015101548167877, -0.03237263858318329, -0.030623286962509155 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Acknowledgements We would like to thank William for his support and his work on the amazing AutoGPTQ library and for his help in the integration. We would also like to thank TheBloke for his work on quantizing many models with AutoGPTQ and sharing them on the Hub and for his help with the integration. We would also like to aknowledge qwopqwop200 for his continuous contributions on AutoGPTQ library and his work on extending the library for CPU that is going to be released in the next versions of AutoGPTQ. Finally, we would like to thank Pedro Cuenca for his help with the writing of this blogpost.
[ 0.028038959950208664, -0.06510678678750992, 0.0597386509180069, 0.020027611404657364, 0.06790195405483246, 0.08241232484579086, 0.0037851128727197647, 0.04814543202519417, -0.021629970520734787, -0.06211487948894501, -0.049213800579309464, 0.028232185170054436, -0.041072819381952286, 0.01234810147434473, 0.0062306541949510574, 0.023745683953166008, 0.029761727899312973, -0.005443716421723366, 0.0032060991507023573, 0.02115740068256855, 0.028874142095446587, -0.05307067185640335, 0.09253612905740738, -0.00041422268259339035, -0.02365250140428543, -0.0705452412366867, -0.010915735736489296, 0.02450275607407093, -0.06234780699014664, 0.0692133828997612, -0.08437156677246094, 0.018119022250175476, 0.01314336434006691, -0.03037952072918415, 0.011957385577261448, -0.04825461283326149, -0.109080009162426, 0.03527512773871422, 0.05921664834022522, -0.03531687334179878, 0.035099949687719345, -0.02181202732026577, -0.012129596434533596, 0.07200929522514343, -0.010811119340360165, -0.03194546326994896, -0.17114685475826263, 0.09244256466627121, -0.010285000316798687, -0.07436345517635345, -0.005944360047578812, 0.029197201132774353, -0.06678952276706696, 0.032466594129800797, 0.021664932370185852, 0.02577291429042816, 0.010297886095941067, -0.10797571390867233, -0.011702042073011398, -0.060588523745536804, 0.04927048087120056, -0.014469749294221401, -0.015724699944257736, 0.014054030179977417, 0.04010344669222832, 0.012166822329163551, -0.01926320791244507, 0.02729307860136032, -0.05110080540180206, 0.017074530944228172, 0.014365609735250473, -0.02072945050895214, -0.009647944942116737, -0.03423639386892319, -0.0028779732529073954, -0.009264982305467129, -0.03378105163574219, 0.011204509995877743, 0.056842099875211716, 0.03194323927164078, 0.04432912543416023, 0.0018553269328549504, 0.07363350689411163, 0.0736994743347168, 0.02549089305102825, -0.04368292912840843, 0.06941733509302139, -0.09125793725252151, -0.0019552698358893394, 0.008367747999727726, -0.03864086791872978, -0.14614710211753845, -0.008190306834876537, -0.0005222528125159442, 0.00860507506877184, -0.04854625090956688, 0.04023197665810585, 0.027788996696472168, 0.004957104101777077, 0.02400246262550354, 0.0043673450127244, 0.0244708601385355, 0.016942676156759262, -0.053455717861652374, -0.0059658559039235115, 0.05353500321507454, -0.019072139635682106, -0.08791770786046982, -0.09111477434635162, 0.01191732194274664, -0.007057282142341137, 0.06761492043733597, 0.03783423453569412, 0.06162754073739052, -0.08499818295240402, 0.07229681313037872, -0.03187284991145134, -0.0027049619238823652, 0.07607119530439377, 0.019746119156479836, -0.028193403035402298, 0.06902717053890228, 0.0732290968298912, -0.00024635414592921734, 0.07024478912353516, 0.027917426079511642, 0.08180822432041168, -0.0409160852432251, -0.03800505772233009, -0.0351153127849102, 0.03925960883498192, -0.0021377291996032, 0.04435250163078308, -0.03762032464146614, -0.035891465842723846, -0.07370353490114212, -0.04620294272899628, -0.04665616899728775, -0.03419004753232002, 0.05043770372867584, -0.026588235050439835, 0.017107220366597176, -0.026702847331762314, 0.018801260739564896, 0.027747638523578644, 0.05967763066291809, -0.08808045089244843, 0.049433548003435135, -0.040873512625694275, -0.016823550686240196, -0.06548056751489639, 0.015154208987951279, -0.07347482442855835, -0.07921883463859558, 0.022353123873472214, 0.007912376895546913, -0.02225768193602562, 0.023069586604833603, -0.08369798958301544, -0.02203350141644478, 0.002775716595351696, 0.02148454263806343, -0.0478355772793293, -0.006221854127943516, 0.041187040507793427, 0.006458882242441177, 0.03483560308814049, 0.005099765956401825, -0.0032360029872506857, -0.060001008212566376, 0.009053616784512997, -0.03200386092066765, 0.08939702063798904, 0.0021024243906140327, -0.010175950825214386, 0.05065702274441719, 0.08468569815158844, 0.0364888459444046, 0.020299788564443588, 0.012588990852236748, -0.04803606867790222, 0.0168483667075634, -0.019671091809868813, 0.022792434319853783, 0.010956881567835808, -0.05851507931947708, 0.038483407348394394, 0.021332792937755585, -0.026372771710157394, 0.03816895931959152, -0.10450060665607452, -0.035050228238105774, 0.08134908229112625, -0.01520626898854971, 0.006426459178328514, -0.06693770736455917, -0.043382834643125534, 0.12006506323814392, 0.09390086680650711, 0.0755196362733841, 0.050423938781023026, 0.005117582622915506, 0.051066216081380844, -0.03698890283703804, -0.032288238406181335, 0.01297785248607397, 0.026059694588184357, -0.010423634201288223, -0.0037863506004214287, -0.011729962192475796, -0.03357769548892975, -0.10952325910329819, -0.01774827018380165, -0.051343441009521484, -0.013684048317372799, -0.012778437696397305, 0.032516203820705414, -0.017338059842586517, 0.01332485768944025, -0.05490308254957199, 0.13737981021404266, -0.021674832329154015, 0.006648276932537556, 0.0005572524969466031, -0.0212116576731205, 0.09704865515232086, 0.08845767378807068, -0.002063989406451583, 0.07511695474386215, -0.05426483601331711, -0.007611085660755634, -0.055184505879879, 0.029415536671876907, 0.06979705393314362, 0.03823719173669815, 0.016450127586722374, 0.013412192463874817, -0.03177805617451668, 0.06040627136826515, -0.004404760431498289, 0.023416440933942795, 0.03585882857441902, -0.05979454517364502, 0.025701036676764488, 0.0050842249765992165, -0.05390539392828941, 0.030126424506306648, 0.009493100456893444, -0.051572658121585846, -0.025111177936196327, -0.055585071444511414, 0.05661948770284653, -0.02237086556851864, -0.037959493696689606, 0.06070677191019058, -0.010248985141515732, 0.01427928265184164, -0.01761334203183651, -0.015182189643383026, 0.028293641284108162, 0.00789286382496357, 0.0042763520032167435, 0.011896424926817417, -0.043769605457782745, -0.01487550139427185, -0.02207079902291298, 0.0030943993479013443, 0.014680325984954834, 0.017471518367528915, 0.021066423505544662, -0.005695658270269632, -0.013986949808895588, 0.017082899808883667, 0.029607336968183517, 0.01019024197012186, 0.009251092560589314, 0.009275377728044987, -0.008213973604142666, -0.008353376761078835, -0.031873781234025955, 0.021081717684864998, -0.035617344081401825, 0.024906747043132782, 0.022123271599411964, 0.022560965269804, -0.010268593207001686, 0.008819294162094593, -0.008095461875200272, -0.02396238036453724, 0.03581799566745758, -0.018278351053595543, 0.024223003536462784, -0.023188121616840363, -0.030008157715201378, 0.014295462518930435, 0.021258017048239708, 0.010922686196863651, 0.014753324910998344, -0.01968606561422348, -0.002637390745803714, 0.03458939120173454, 0.024330319836735725, -0.0015373247442767024, 0.034526437520980835, -0.003108629258349538, 0.04919808357954025, -0.0018930155783891678, 0.0478476844727993, -0.12762293219566345, -0.022201592102646828, 0.040643639862537384, 0.060032665729522705, -0.018448028713464737, -0.0028711259365081787, 0.06001419201493263, -0.03643374890089035, -0.009368679486215115, -0.005280132871121168, 0.08437754958868027, -0.002347862347960472, 0.03314359113574028, -0.000212847298826091, 0.002684118691831827, 0.010884812101721764, -0.01861892268061638, 0.005413110833615065, 0.015935182571411133, -0.0024242487270385027, 0.0003921331372112036, 0.04373931139707565, -0.04288389906287193, -0.0031152472365647554, -0.004649896174669266, 0.01416507363319397, 0.014861952513456345, 0.004056480247527361, 0.03686342015862465, -0.01582624576985836, -0.03979452699422836, 0.012012396939098835, -0.0052429926581680775, 0.02930491790175438, -0.01721431314945221, -0.050749771296978, -0.024303540587425232, -0.01574479229748249, 0.00997723825275898, 0.060766641050577164, 0.017694590613245964, 0.011328876949846745, 0.0539366640150547, -0.01636924035847187, -0.007115192711353302, 0.029251612722873688, 0.022293489426374435, 0.04093435779213905, 0.031393103301525116, -0.03625624626874924, -0.03684644773602486, -0.006424902006983757, 0.011859730817377567, 0.06297124177217484, 0.009071026928722858, 0.018262116238474846, -0.04922591522336006, 0.022725073620676994, 0.02226242795586586, 0.018651461228728294, -0.0186916571110487, -0.00011666033969959244, 0.017104806378483772, -0.0063697886653244495, -0.028736472129821777, 0.07229100912809372, 0.01806136593222618, 0.002020345302298665, -0.03777678683400154, 0.024031484499573708, 0.015278879553079605, 0.043735090643167496, -0.007114322856068611, 0.015529309399425983, 0.019794128835201263, 0.022340964525938034, -0.019642295315861702, -0.022238878533244133, 0.05814164876937866, -0.015078859403729439, -0.021504096686840057, -0.04151950031518936, -0.03240270912647247, -0.01962893456220627, -0.0024162866175174713, 0.012464730069041252, -0.04093577340245247, 0.017987458035349846, 0.010988470166921616, 0.043650124222040176, 0.03922634944319725, -0.004650630988180637, 0.031179027631878853, -0.04239504784345627, 0.003141720313578844, 0.03836233913898468, 0.05646451190114021, 0.009669175371527672, 0.01960994116961956, 0.0287556704133749, 0.03323895111680031, -0.013290644623339176, 0.015208176337182522, -0.012906917370855808, -0.02065545693039894, 0.039215125143527985, -0.026736494153738022, -0.04164497181773186, 0.0014959233812987804, 0.02280740812420845, 0.017092958092689514, -0.047534044831991196, 0.01924430951476097, -0.005094069521874189, 0.039847977459430695, 0.001373926643282175, -0.024365389719605446, -0.040396373718976974, -0.016780264675617218, 0.02585599198937416, -0.03988123685121536, 0.003906811121851206, -0.030420677736401558, -0.027645142748951912, 0.014010909013450146, -0.0029778575990349054, -0.009748292155563831, 0.0040681264363229275, -0.022151581943035126, -0.0003781988052651286, -0.020306400954723358, -0.0551070012152195, 0.009175317361950874, -0.005183743312954903, -0.0016807066276669502, 0.004878767300397158, 0.0017509007593616843, 0.028671709820628166, -0.005867913365364075, -0.05015574395656586, 0.004507516976445913, 0.013900049030780792, 0.005078843329101801, -0.041087325662374496, 0.027001114562153816, -0.005813916679471731, 0.001328072976320982, -0.007908499799668789, 0.01068021822720766, 0.04244516044855118, 0.012969194911420345, -0.04093576595187187, -0.019808733835816383, 0.009830069728195667, 0.03239467367529869, 0.020653488114476204, 0.019604355096817017, 0.0015539673622697592, -0.04837866872549057, 0.07666870951652527, 0.01685240864753723, -0.0026769470423460007, -0.04357877001166344, -6.675695090052614e-7, -0.023938234895467758, 0.03218233957886696, 0.004471041727811098, -0.026150384917855263, 0.0033596616704016924, 0.02884422242641449, -0.04953237622976303, -0.01764654740691185, 0.02301815152168274, -0.0516013577580452, 0.0398038886487484, 0.022985870018601418, 0.02062586136162281, 0.011101584881544113, -0.009227223694324493, -0.007423182483762503, -0.05239662528038025, 0.026200901716947556, 0.03712296113371849, -0.026889178901910782, -0.01435228530317545, 0.008067402988672256, 0.03336561471223831, 0.06781533360481262, -0.006316845305263996, 0.03672460839152336, 0.00101611262653023, 0.005478030536323786, 0.0044075255282223225, -0.0253437589854002, -0.01388876885175705, -0.02334594912827015, 0.004433872643858194, -0.0024490526411682367, -0.016378726810216904, -0.02129213511943817, 0.030525624752044678, 0.04832974448800087, -0.0102878762409091, -0.0036118170246481895, 0.03945598378777504, 0.054621536284685135, 0.01378963328897953, -0.04434844106435776, 0.042296234518289566, -0.04151597246527672, -0.016062170267105103, 0.014319333247840405, -0.04161515831947327, -0.023379065096378326, 0.011611719615757465, -0.0428137443959713, -0.028204355388879776, 0.027922827750444412, 0.007826493121683598, 0.01603798381984234, -0.007359493523836136, 0.0009252566960640252, -0.016454285010695457, 0.01232717651873827, 0.04988834261894226, -0.012983914464712143, -0.037106599658727646, 0.025302428752183914, 0.0015356525545939803, 0.051324889063835144, 0.0083277253434062, -0.03492625802755356, -0.03713525831699371, 0.029043370857834816, 0.026832332834601402, -0.030904332175850868, -0.03756760060787201, 0.01612108387053013, 0.016066182404756546, -0.0009475789265707135, 0.02944762259721756, -0.03667149320244789, -0.03297412768006325, -0.004029232542961836, -0.07078634947538376, 0.03346223756670952, 0.08148423582315445, -0.022388149052858353, -0.01961876079440117, -0.005889201536774635, 0.017840975895524025, -0.019086340442299843, -0.0016730318311601877, 0.014429431408643723, 0.018139997497200966, 0.03736018016934395, 0.023141734302043915, -0.02897835150361061, 0.029444478452205658, 0.019794808700680733, 0.01316744927316904, -0.04601278156042099, -0.024778183549642563, 0.030710993334650993, -0.011929705739021301, 0.024322442710399628, -0.003523344872519374, -0.05187617242336273, 0.010085757821798325, 0.0020176395773887634, 0.031936973333358765, 0.02786092273890972, -0.004964498803019524, 0.005871902219951153, -0.03185486048460007, 0.005732627585530281, 0.03006695583462715, 0.04613573104143143, 0.008161411620676517, 0.016920706257224083, -0.007110052276402712, 0.01615576446056366, 0.03787539154291153, 0.03161749616265297, -0.009411660023033619, 0.022091208025813103, 0.0720943808555603, -0.014107304625213146, 0.02746324986219406, 0.008930469863116741, 0.00016004791541490704, -0.004301432985812426, -0.029033876955509186, -0.015195677056908607, -0.013931342400610447, 0.012959538027644157, 0.05875391140580177, -0.025043897330760956, 0.03392883017659187, -0.03450932726264, 0.034775346517562866, 0.028494175523519516, 0.003704716684296727, 0.02852655202150345, -0.015819868072867393, 0.010911189019680023, 0.018107272684574127, -0.0018180877668783069, -0.020910538733005524, -0.02780521661043167, -0.006851379759609699, 0.05952097848057747, 0.0005161367007531226, -0.00007299102435354143, -0.020339732989668846, -0.056653134524822235, 0.023538650944828987, -0.004287965130060911, 0.009072353132069111, 0.023795748129487038, 0.01973501406610012, -0.017284918576478958, 0.008513142354786396, -0.0024718577042222023, -0.03197493031620979, -0.03483254835009575, 0.004696432035416365, -0.006145325489342213, -0.02479831874370575, -0.01593887060880661, 0.020634504035115242, 0.005896394141018391, -0.020637160167098045, -0.009308288805186749, 0.008072979748249054, 0.04198881611227989, -0.026012860238552094, 0.009744999930262566, 0.0004000692570116371, -0.01968066208064556, -0.030891895294189453, 0.03595065325498581, -0.004962244536727667, 0.01520596630871296, -0.023480987176299095, -0.014131887815892696, 0.019243426620960236, 0.021631509065628052, -0.033433277159929276, -0.00040738872485235333, 0.04689420387148857, 0.004941359627991915, -0.008831001818180084, 0.024076560512185097, -0.03909609839320183, 0.011320361867547035, -0.0023318063467741013, -0.031101908534765244, 0.008676808327436447, -0.023847876116633415, 0.004187657963484526, 0.051917754113674164, 0.048705920577049255, -0.024543525651097298, -0.044126417487859726, -0.022030802443623543, -0.022647710517048836, -0.004606578499078751, 0.032200343906879425, -0.027120502665638924, -0.03904015198349953, -0.009258695878088474, -0.011879130266606808, 0.009852205403149128, -0.032317690551280975, -0.054868776351213455, 0.03132586553692818, -0.024948660284280777, 0.0012129709357395768, 0.005619892384856939, 0.055407118052244186, 0.006358298938721418, 0.03396379202604294, 0.057331763207912445, 0.03247573599219322, 0.020517591387033463, -0.021277204155921936, -0.017159810289740562, -0.00661042332649231, 0.0410296656191349, -0.041665755212306976, -0.04825887456536293, -0.011070769280195236, -0.006060582585632801, 0.014489863067865372, -0.010310015641152859, -0.05137324333190918, -0.04324161633849144, -0.03449896723031998, -0.026821119710803032, -0.015154141932725906, -0.02257652021944523, 0.06546671688556671, 0.023476924747228622, 0.013696420006453991, 0.0039202929474413395, -0.02070753462612629, 0.009817701764404774, 0.00842572282999754, 0.0030524842441082, 0.02309146523475647, 0.03737177327275276, -0.005882145371288061, -0.04986419528722763, 0.012753122486174107, -0.04711418226361275, -0.050890710204839706, 0.016322938725352287, 0.02675614506006241, -0.019918126985430717, -0.033225636929273605, -0.016507264226675034, 0.0016553906025364995, 0.0210611280053854, 0.025344397872686386, 0.02180591970682144, -0.017482107505202293, -0.00155393045861274, -0.03104512207210064, -0.058837465941905975, -0.000010606418982206378, -0.012703314423561096, -0.007953523658216, 0.01683516427874565, 0.01175864040851593, 0.00757151423022151, 0.010406002402305603, -0.014441232196986675, 0.024158243089914322, -0.0085917292162776, 0.0063355183228850365, -0.025443239137530327, -0.0015855280216783285, 0.014437981881201267, -0.03797869011759758, -0.02441534958779812, 0.011290248483419418, 0.013600356876850128, -0.030017515644431114, -0.01947224885225296, -0.0277419313788414, 0.04044795408844948, -0.027584386989474297, 0.019439760595560074, 0.024769345298409462, 0.06117093563079834, 0.041684217751026154, -0.016651861369609833, -0.03036065772175789, 0.006767704617232084 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
# Making LLMs lighter with AutoGPTQ and transformers Large language models have demonstrated remarkable capabilities in understanding and generating human-like text, revolutionizing applications across various domains. However, the demands they place on consumer hardware for training and deployment have become increasingly challenging to meet. 🤗 Hugging Face's core mission is to democratize good machine learning, and this includes making large models as accessible as possible for everyone. In the same spirit as our bitsandbytes collaboration, we have just integrated the AutoGPTQ library in Transformers, making it possible for users to quantize and run models in 8, 4, 3, or even 2-bit precision using the GPTQ algorithm (Frantar et al. 2023). There is negligible accuracy degradation with 4-bit quantization, with inference speed comparable to the fp16 baseline for small batch sizes. Note that GPTQ method slightly differs from post-training quantization methods proposed by bitsandbytes as it requires to pass a calibration dataset. This integration is available both for Nvidia GPUs, and RoCm-powered AMD GPUs.
[ 0.0011433855397626758, -0.034366000443696976, 0.027211453765630722, -0.0017994128866121173, 0.021121131256222725, 0.059517551213502884, -0.004292761441320181, 0.060349635779857635, 0.022928133606910706, 0.0007989972946234047, -0.11764519661664963, 0.036256950348615646, -0.03661304712295532, 0.041064515709877014, 0.03769727051258087, -0.00018887297483161092, -0.0003140014305245131, -0.019813887774944305, -0.012566997669637203, 0.056906215846538544, 0.026809802278876305, -0.06127335876226425, 0.08404718339443207, -0.003049735678359866, -0.015660395845770836, -0.08064208179712296, 0.0458582304418087, 0.016760816797614098, 0.03787006810307503, 0.03893689066171646, -0.039468612521886826, -0.06758350133895874, -0.054306309670209885, 0.010908197611570358, 0.047821078449487686, -0.01817997172474861, -0.13550573587417603, 0.028006883338093758, 0.02496083825826645, -0.02408643811941147, 0.03047935850918293, 0.005074876826256514, -0.015603170730173588, -0.009382522664964199, 0.024846220389008522, 0.01365001779049635, -0.1071285754442215, 0.05723861977458, -0.05398892983794212, -0.10041569918394089, -0.03034878708422184, 0.07098840177059174, -0.04797368124127388, -0.006072539836168289, 0.04724730923771858, 0.030949844047427177, 0.031183084473013878, -0.11326508224010468, -0.03969179093837738, 0.030196834355592728, -0.007814417593181133, -0.036536768078804016, 0.004725458100438118, 0.012562723830342293, 0.02480289526283741, -0.004577920772135258, -0.04885832220315933, -0.03833545744419098, -0.06359382718801498, 0.04029744490981102, 0.04453166574239731, 0.019623173400759697, -0.04719933122396469, -0.05479554831981659, -0.06731843203306198, 0.013845857232809067, -0.02663118951022625, 0.0740392804145813, 0.04769882187247276, 0.03559780865907669, 0.000824126647785306, 0.008678816258907318, 0.07164081186056137, 0.006084319669753313, 0.030357208102941513, 0.052075956016778946, 0.02126910723745823, -0.10777880251407623, -0.04393891990184784, 0.030000831931829453, -0.05805545300245285, -0.1309693455696106, -0.03531607240438461, 0.015636198222637177, 0.01767612248659134, 0.039352960884571075, -0.01642223261296749, 0.023794736713171005, 0.0016550027066841722, -0.009407371282577515, 0.03466970846056938, 0.017426395788788795, 0.031939249485731125, -0.03393394500017166, -0.04140682891011238, 0.046424511820077896, -0.06092975288629532, -0.12499364465475082, 0.017046518623828888, 0.022282367572188377, 0.04088408872485161, -0.04913658648729324, 0.004854903556406498, 0.01072688214480877, -0.06399893015623093, 0.05497214198112488, -0.005273435264825821, -0.015612977556884289, 0.06416898965835571, 0.030715791508555412, -0.034559931606054306, 0.034460220485925674, 0.0466698594391346, -0.013093091547489166, 0.012686473317444324, -0.013309547677636147, 0.026977650821208954, -0.04818308353424072, 0.06453389674425125, 0.021314727142453194, 0.03596297279000282, -0.06595243513584137, 0.046400658786296844, -0.06379418820142746, 0.01011926680803299, -0.02364627830684185, 0.03659236058592796, -0.09558643400669098, -0.045555584132671356, -0.00852372869849205, -0.0037071143742650747, 0.05987883359193802, -0.0018577842274680734, -0.06667765229940414, -0.011772816069424152, 0.01460101455450058, -0.10393742471933365, 0.07975614070892334, -0.0564088448882103, 0.0011688098311424255, -0.10261258482933044, 0.019112620502710342, -0.041534196585416794, -0.0698157325387001, 0.055643074214458466, 0.04274459183216095, -0.0507698692381382, 0.013896450400352478, -0.024877233430743217, -0.029149258509278297, -0.08559530973434448, -0.06439369171857834, -0.047308921813964844, -0.04150373116135597, 0.012706604786217213, -0.005914704408496618, -0.047805484384298325, 0.06071307510137558, 0.002161391545087099, 0.024879490956664085, 0.028821557760238647, -0.0008949009934440255, 0.05159873887896538, -0.06787042319774628, 0.015411722473800182, 0.0526367612183094, 0.056582145392894745, 0.08691352605819702, -0.010089351795613766, -0.02437463030219078, -0.07178391516208649, 0.04308818653225899, 0.05486234277486801, 0.03567639738321304, 0.0041675991378724575, -0.07525189965963364, 0.031080761924386024, -0.03358553722500801, -0.01913093961775303, -0.010255087167024612, -0.019337214529514313, 0.03596181422472, 0.0924653559923172, 0.026771526783704758, 0.025748617947101593, -0.00006461275916080922, -0.025437017902731895, 0.13680942356586456, 0.02726210281252861, 0.04859330132603645, 0.0605413019657135, -0.038010403513908386, 0.04672856256365776, -0.026548072695732117, 0.0027917304541915655, 0.02637992799282074, -0.004093274474143982, 0.02458352968096733, -0.015070047229528427, 0.009966953657567501, 0.05839383602142334, -0.12174423038959503, -0.016644198447465897, 0.009844904765486717, -0.018589738756418228, -0.08028226345777512, 0.0011403069365769625, 0.02858458273112774, 0.016120068728923798, 0.014947699382901192, 0.09905102103948593, -0.02573312446475029, -0.011213034391403198, -0.047801822423934937, -0.030831994488835335, 0.07280709594488144, 0.04901443421840668, -0.0055090878158807755, 0.02892092801630497, -0.07386909425258636, 0.0051834131591022015, -0.129348486661911, -0.003385270945727825, -0.006040309555828571, -0.02602003701031208, -0.06074408441781998, -0.014506155624985695, -0.04958413913846016, 0.059648845344781876, 0.046486321836709976, 0.01240089163184166, 0.08627579361200333, -0.03679213672876358, 0.03822121396660805, 0.04301939159631729, -0.006670418661087751, 0.07443659752607346, -0.01492660865187645, 0.004554654471576214, 0.014588945545256138, -0.0590609535574913, 0.031847044825553894, -0.02151470258831978, -0.016042187809944153, 0.00673229806125164, -0.044188208878040314, 0.03293941915035248, 0.024817047640681267, -0.057330891489982605, -0.0006894328398630023, -0.012248942628502846, 0.009985345415771008, -0.004319387022405863, 0.0153000857681036, -0.02008489891886711, -0.01254019234329462, 0.013652859255671501, 0.028758186846971512, -0.012985721230506897, -0.017706118524074554, 0.03281750530004501, -0.04025232419371605, 0.05353688821196556, 0.006807078141719103, -0.000987779232673347, 0.05558847263455391, 0.06704215705394745, -0.020526636391878128, -0.0008326686802320182, -0.030019400641322136, -0.00003731493779923767, -0.014976601116359234, 0.029534120112657547, 0.0009815618395805359, -0.04458734020590782, 0.010512121953070164, -0.02134842425584793, -0.05832181125879288, -0.03467140719294548, 0.0033711809664964676, -0.0069489930756390095, 0.02984665334224701, 0.00240193004719913, -0.027135081589221954, 0.026414034888148308, 0.017686033621430397, 0.01782708242535591, 0.010108004324138165, -0.013147514313459396, 0.019773609936237335, 0.02608177624642849, 0.004961578641086817, 0.006175949238240719, 0.031645890325307846, 0.024002065882086754, -0.008797742426395416, 0.016961798071861267, 0.04054310917854309, -0.0736016184091568, -0.02858046442270279, -0.0006257346831262112, 0.023752259090542793, 0.01811150275170803, -0.04693007096648216, 0.04855869337916374, -0.017219368368387222, 0.01428716629743576, 0.0346820093691349, 0.032193828374147415, 0.01926342397928238, 0.031161170452833176, 0.016966408118605614, 0.018007710576057434, 0.04135481268167496, -0.05946242809295654, -0.027037473395466805, 0.022697588428854942, 0.045585133135318756, 0.017812155187129974, 0.01473406795412302, 0.021093077957630157, -0.02033391408622265, 0.008848794735968113, -0.034686390310525894, 0.013731950893998146, -0.011477664113044739, 0.008437328040599823, 0.02196253277361393, -0.02187260240316391, -0.00019663956481963396, 0.0014297086745500565, 0.05035790801048279, -0.008056938648223877, -0.03955593332648277, -0.007614549249410629, 0.03170048072934151, 0.027881305664777756, 0.0346464104950428, 0.03301410749554634, 0.012187774293124676, 0.012876312248408794, -0.03351837769150734, 0.026119176298379898, -0.004148358013480902, -0.0255891103297472, 0.005826398730278015, 0.010711479932069778, -0.03796139732003212, -0.02832697704434395, 0.01076514646410942, 0.0014710220275446773, 0.004494066815823317, -0.002447946462780237, -0.030480241402983665, 0.024390380829572678, -0.00946828257292509, 0.020670946687459946, 0.026655739173293114, -0.036521926522254944, -0.0001222347200382501, -0.014063257724046707, -0.030287861824035645, 0.002001520711928606, 0.06636221706867218, 0.0021235747262835503, -0.04408751428127289, 0.0182197205722332, 0.03327752277255058, 0.0014581135474145412, 0.027330709621310234, -0.012197804637253284, 0.00015152376727201045, -0.02022080309689045, 0.00950966589152813, -0.012291071005165577, -0.041096705943346024, 0.058396000415086746, 0.019541269168257713, -0.022433187812566757, -0.029029930010437965, -0.03356067091226578, 0.01972423493862152, 0.01114070788025856, 0.006137212738394737, 0.020056914538145065, -0.0006997421151027083, 0.01760067418217659, 0.016157636418938637, 0.018265463411808014, -0.02885381318628788, 0.0022769360803067684, -0.0061135790310800076, 0.01616174727678299, -0.005405830685049295, 0.028957011178135872, 0.026542378589510918, 0.019607868045568466, -0.014822244644165039, 0.024536654353141785, -0.05091717094182968, -0.009778602980077267, -0.037226613610982895, -0.02931607887148857, 0.025355003774166107, 0.0010511783184483647, -0.014111528173089027, 0.024151476100087166, 0.05415493994951248, -0.0030789619777351618, -0.013357425108551979, -0.0009699669317342341, 0.012565214186906815, 0.054957065731287, -0.01922982558608055, -0.026137398555874825, -0.014457330107688904, 0.008785322308540344, 0.009824993088841438, -0.03708646818995476, 0.02060486190021038, -0.018080025911331177, -0.015757504850625992, 0.04287038370966911, 0.006910823285579681, -0.030293021351099014, 0.000020504694475675933, -0.0020602212753146887, -0.03773273527622223, -0.031978294253349304, -0.06821350008249283, 0.014891083352267742, 0.0144580639898777, 0.004285815637558699, 0.012446759268641472, -0.031155114993453026, 0.005370189435780048, -0.04823682829737663, -0.003515911055728793, -0.019303562119603157, 0.013287424109876156, -0.004075832664966583, -0.06372439861297607, 0.02030424401164055, -0.02659338340163231, 0.033852919936180115, 0.0010732895461842418, -0.022773772478103638, 0.07019767165184021, 0.03263701871037483, -0.02845558524131775, -0.011049174703657627, -0.010737873613834381, 0.03764813020825386, -0.0031731410417705774, 0.00909358263015747, 0.0325060673058033, 0.02362786792218685, 0.028738876804709435, 0.02089017815887928, 0.040582895278930664, -0.014999744482338428, -0.016779761761426926, 0.012519457377493382, 0.0280363280326128, 0.02492222934961319, -0.02473408542573452, -0.02364087663590908, 0.01718895137310028, -0.0033393576741218567, 0.005915846209973097, -0.005943514872342348, 0.004327716771513224, 0.005514772143214941, 0.04191245138645172, 0.04661307483911514, -0.003286859020590782, -0.028471192345023155, 0.009561811573803425, 0.0017393049784004688, -0.035129766911268234, 0.030272185802459717, -0.01082543469965458, -0.013248246163129807, 0.02381652407348156, 0.030950093641877174, 0.08934782445430756, -0.04661189392209053, 0.01668880321085453, 0.00004407863525557332, 0.004355465527623892, 0.013455076143145561, -0.017433198168873787, 0.007523733656853437, -0.045676566660404205, 0.01989218406379223, 0.02266424521803856, -0.00768768135458231, -0.008351488038897514, 0.06270472705364227, 0.03469853475689888, -0.021412523463368416, -0.0037714228965342045, 0.017148669809103012, -0.014616958796977997, 0.0002630899543873966, -0.02740822173655033, 0.0023120713885873556, -0.03354441747069359, 0.0097199073061347, 0.020070994272828102, 0.006764992140233517, -0.029110629111528397, 0.014642734080553055, 0.001059210393577814, 0.009778406471014023, 0.0447615310549736, 0.0030938105192035437, 0.012305166572332382, -0.03896211460232735, -0.0001783434272510931, -0.03204745426774025, -0.03470190614461899, 0.03879223391413689, -0.029730690643191338, -0.013688276521861553, 0.027276286855340004, 0.03222447261214256, -0.022455591708421707, 0.007935471832752228, -0.009881759993731976, 0.0019025050569325686, -0.01201663538813591, 0.030837738886475563, 0.007854594849050045, -0.05479033291339874, -0.009800964966416359, -0.004423144739121199, -0.021805332973599434, 0.01713862270116806, -0.06300586462020874, -0.04009298235177994, -0.01923590525984764, -0.08360970765352249, 0.037867289036512375, 0.03092128597199917, 0.0023414245806634426, -0.031881071627140045, -0.0042776064947247505, 0.0044315834529697895, 0.015961643308401108, 0.03658685088157654, 0.045219384133815765, 0.017092391848564148, 0.032942380756139755, 0.037233833223581314, 0.01733005978167057, 0.02275298908352852, 0.0071997265331447124, -0.019093282520771027, -0.03932737186551094, -0.013137005269527435, 0.055645301938056946, -0.021522371098399162, 0.03423728421330452, 0.003348835278302431, -0.06727083027362823, -0.026605283841490746, 0.0023433766327798367, -0.004552652593702078, 0.01948137767612934, -0.001191229559481144, 0.03901560232043266, -0.029950032010674477, -0.008669978938996792, 0.038180671632289886, 0.030727684497833252, 0.023406391963362694, -0.008122595027089119, 0.007960795424878597, 0.0374024473130703, 0.05090409889817238, -0.014910990372300148, 0.033180464059114456, -0.029724739491939545, 0.049943726509809494, -0.007819597609341145, 0.006695142015814781, 0.02243768237531185, -0.007834160700440407, -0.02510228008031845, 0.009417871944606304, -0.036825768649578094, -0.055448081344366074, -0.009726901538670063, 0.008527715690433979, -0.035948414355516434, 0.00835015531629324, -0.0028317568358033895, 0.053994014859199524, 0.044038716703653336, 0.05616164207458496, -0.0010419890750199556, 0.01644434779882431, 0.0007314329850487411, 0.005663431249558926, 0.02783403918147087, 0.023925546556711197, 0.031564585864543915, -0.002175709931179881, 0.04416544735431671, 0.01741766929626465, 0.034685831516981125, -0.010154582560062408, -0.007488976698368788, 0.0046289898455142975, 0.015496713109314442, 0.01827397570014, 0.03059452772140503, -0.004163114354014397, 0.022523419931530952, -0.003968363162130117, 0.045379914343357086, -0.02103898487985134, 0.04220873489975929, 0.0008115664822980762, -0.010561797767877579, -0.01906721107661724, -0.026991650462150574, -0.0002267504605697468, -0.026220589876174927, -0.0073013911023736, -0.03698520362377167, 0.032492879778146744, 0.03852957487106323, 0.02314293198287487, 0.019411463290452957, -0.01589702069759369, -0.022657934576272964, -0.018612699583172798, -0.018887516111135483, -0.041154682636260986, 0.045364510267972946, -0.002038239501416683, 0.02958628535270691, 0.005701533053070307, 0.028645068407058716, -0.0013960853684693575, 0.027493314817547798, -0.011529956012964249, 0.009270024485886097, -0.051447030156850815, -0.016562435775995255, -0.003320413874462247, -0.0494220145046711, 0.012772216461598873, -0.05982762575149536, 0.01931949332356453, -0.0020472146570682526, 0.0011026179417967796, 0.05539892986416817, 0.08785451203584671, -0.03333532065153122, -0.027764543890953064, 0.012964213266968727, 0.01373873557895422, -0.003119416069239378, 0.04983612522482872, -0.028040532022714615, -0.0332513153553009, 0.012839696370065212, -0.03070283681154251, 0.010639070533216, -0.0013210311299189925, -0.01048307679593563, 0.05306351184844971, 0.01145266741514206, -0.027077043429017067, 0.03283281251788139, 0.05088411644101143, -0.01703210547566414, 0.021660979837179184, 0.03148559853434563, -0.01053715217858553, 0.029336854815483093, -0.017322087660431862, 0.025778155773878098, -0.027560047805309296, 0.04914359003305435, -0.024215932935476303, -0.07437268644571304, 0.00047085847472772, 0.0032636995892971754, 0.015540645457804203, 0.016084929928183556, -0.018660517409443855, -0.01387436967343092, -0.06255972385406494, -0.010969053953886032, -0.005784857086837292, -0.01016273908317089, 0.04632360115647316, 0.014323749579489231, -0.022803131490945816, 0.02467494085431099, -0.011155560612678528, 0.013382244855165482, -0.013427085243165493, 0.0012138966703787446, 0.08955219388008118, 0.0023133771028369665, -0.03313973546028137, -0.06148814782500267, -0.062074076384305954, 0.009857391007244587, -0.0567539818584919, 0.009602267295122147, 0.007740024011582136, -0.02332700975239277, -0.012117265723645687, -0.0015160884940996766, 0.017673932015895844, -0.02812471240758896, 0.015539982356131077, -0.009107193909585476, -0.019983841106295586, 0.03575129806995392, -0.040970444679260254, -0.0611918605864048, 0.021602535620331764, -0.022127613425254822, 0.0011284099891781807, 0.015763048082590103, 0.010553723201155663, 0.0516962967813015, -0.01820100098848343, 0.04181406646966934, 0.0001064017487806268, -0.0002620111627038568, -0.004397668410092592, -0.01356621365994215, 0.020697759464383125, 0.054944828152656555, -0.018478792160749435, -0.009733660146594048, 0.015005339868366718, -0.016349615529179573, 0.016675390303134918, -0.044813647866249084, -0.028530187904834747, 0.027655689045786858, -0.008626488037407398, -0.020900443196296692, -0.00030452123610302806, 0.01892288774251938, 0.02008794993162155, -0.013644702732563019, -0.06536108255386353, -0.05074463412165642 ]
Making LLMs lighter with AutoGPTQ and transformers
marcsun13
August 23, 2023
gptq-integration
llm, optimization, quantization
https://huggingface.co/blog/gptq-integration
Fine-tune quantized models with PEFT* You can not further train a quantized model using the regular methods. However, by leveraging the PEFT library, you can train adapters on top! To do that, we freeze all the layers of the quantized model and add the trainable adapters. Here are some examples on how to use PEFT with a GPTQ model: colab notebook and finetuning script.
[ 0.08603094518184662, -0.050436802208423615, 0.020983824506402016, 0.033771391957998276, 0.08326561003923416, 0.004655016586184502, -0.05553432181477547, 0.03839990124106407, 0.028300518169999123, -0.04608803242444992, -0.013482863083481789, -0.012198119424283504, -0.08598551899194717, -0.006250804755836725, 0.0026117386296391487, -0.05155889317393303, 0.10406312346458435, -0.07292395830154419, -0.035912178456783295, 0.05330156907439232, 0.02169167995452881, -0.056166451424360275, 0.039801131933927536, -0.022349940612912178, -0.01123440358787775, -0.05668531730771065, 0.06164107844233513, 0.055333107709884644, -0.02679959498345852, 0.05508114770054817, -0.09339998662471771, 0.053908009082078934, -0.038402266800403595, -0.04208145663142204, 0.044165510684251785, -0.04025569558143616, -0.08021465688943863, 0.01110010500997305, 0.03497062250971794, -0.06509129703044891, -0.023146921768784523, 0.00896634254604578, 0.04543057829141617, 0.09936950355768204, 0.021473003551363945, -0.05026626214385033, -0.11502275615930557, 0.047470174729824066, -0.0018276399932801723, -0.10755517333745956, -0.030085686594247818, 0.10876664519309998, 0.045456111431121826, 0.04222000762820244, 0.00968543067574501, -0.025600187480449677, -0.009596777148544788, -0.0463273711502552, -0.013207159005105495, 0.009872108697891235, 0.061963941901922226, 0.014860781840980053, -0.0208288561552763, 0.017635472118854523, 0.01887054368853569, 0.027193306013941765, -0.02661922015249729, 0.022363049909472466, -0.031209267675876617, -0.04894055798649788, 0.013833961449563503, -0.04606504365801811, 0.008040200918912888, -0.06431645900011063, 0.005213393364101648, -0.023424141108989716, -0.043673839420080185, 0.0599030926823616, 0.025709053501486778, 0.0817912369966507, 0.011213690973818302, -0.006464565638452768, 0.04094361513853073, 0.05363060161471367, 0.020344426855444908, -0.03456538915634155, -0.025059549137949944, -0.026605263352394104, -0.018462136387825012, 0.07907161116600037, 0.014098985120654106, -0.12416386604309082, -0.07856131345033646, -0.03520222008228302, 0.009369073435664177, 0.022136183455586433, -0.021122097969055176, -0.02095043659210205, 0.04787404090166092, -0.04722423478960991, -0.04009046033024788, -0.047032568603754044, 0.012047993019223213, -0.03950978070497513, -0.07499243319034576, 0.051792215555906296, -0.03752288594841957, -0.12254902720451355, -0.0970974713563919, -0.021288160234689713, 0.009452538564801216, 0.005965059157460928, 0.013718411326408386, 0.038335081189870834, -0.06039406731724739, 0.08379815518856049, -0.0064527676440775394, -0.03685373812913895, -0.032902419567108154, 0.01866668462753296, -0.0022585242986679077, 0.11616089195013046, 0.09191766381263733, 0.014111277647316456, 0.022256361320614815, -0.01727464236319065, 0.038315627723932266, -0.04559322074055672, 0.03504106402397156, 0.04264189675450325, 0.06299096345901489, 0.021420039236545563, 0.003512707771733403, 0.014773531816899776, 0.02126270718872547, -0.0630517303943634, 0.02594863995909691, -0.09250784665346146, -0.02689429558813572, 0.014490691013634205, -0.012055546045303345, 0.05112806707620621, -0.0002934765361715108, -0.022512037307024002, 0.030222175642848015, 0.0007183485431596637, -0.0388941764831543, 0.10914938151836395, -0.016307123005390167, 0.0466260127723217, -0.08354277163743973, 0.05255410447716713, -0.039840374141931534, -0.04952717944979668, 0.002870049560442567, 0.0197773277759552, -0.07482529431581497, 0.00511068943887949, -0.04195275157690048, -0.005674573592841625, -0.00976797565817833, -0.03973953798413277, -0.0078835878521204, 0.021740220487117767, 0.024501608684659004, -0.0052059609442949295, 0.0018039520364254713, -0.030202481895685196, 0.01825033500790596, 0.06572845578193665, 0.028704358264803886, 0.032041218131780624, 0.08368129283189774, 0.00514311483129859, -0.012820948846638203, 0.012455577030777931, -0.0038408527616411448, 0.07044251263141632, -0.04994750767946243, 0.007816511206328869, -0.010211359709501266, 0.04627874866127968, -0.02354619838297367, 0.030621778219938278, -0.017216414213180542, -0.04776855930685997, 0.010546883568167686, -0.021631307899951935, 0.02631334774196148, 0.027182839810848236, -0.07389595359563828, 0.05441046133637428, 0.04854290559887886, -0.010827898047864437, 0.1018945574760437, -0.04746417701244354, 0.0036791854072362185, 0.09295284003019333, 0.072499580681324, 0.020983166992664337, 0.042678456753492355, -0.02445105090737343, 0.003887031227350235, 0.003073167521506548, 0.01987256295979023, 0.01267374400049448, -0.02236887626349926, -0.031046483665704727, -0.00012936982966493815, -0.020263100042939186, 0.03054049238562584, -0.02118639275431633, 0.01865469105541706, -0.0817999467253685, 0.04703408107161522, -0.009817627258598804, 0.0021362791303545237, -0.004957430064678192, -0.06054256856441498, -0.028720390051603317, 0.1634712964296341, 0.020629534497857094, 0.048123303800821304, -0.017822712659835815, -0.06552840024232864, 0.019308695569634438, 0.07461018860340118, -0.014893301762640476, 0.04301821440458298, -0.06574507802724838, -0.00861392728984356, -0.09058346599340439, 0.008137392811477184, 0.03178482875227928, -0.023093484342098236, -0.05033577233552933, -0.03564193844795227, -0.01090568583458662, 0.06474494189023972, -0.04541902244091034, 0.019644495099782944, -0.011207367293536663, -0.05307126045227051, 0.0441921129822731, 0.024207334965467453, 0.026164811104536057, 0.057215332984924316, 0.007078934460878372, -0.0035898289643228054, -0.051008764654397964, -0.08388714492321014, -0.011346696875989437, -0.03189710155129433, -0.03291705623269081, 0.030558183789253235, 0.04650064557790756, 0.012588592246174812, -0.02598520554602146, -0.01012039091438055, 0.02422415278851986, 0.012323766946792603, 0.03532324731349945, -0.011701395735144615, -0.006537419278174639, -0.039388276636600494, -0.021014966070652008, -0.012903571128845215, 0.030286677181720734, -0.014169322326779366, -0.027855699881911278, 0.020669901743531227, -0.023600690066814423, -0.014813767746090889, -0.0016707724425941706, 0.014477545395493507, 0.027062106877565384, -0.003983150701969862, -0.03093103878200054, -0.03644556924700737, -0.0032806762028485537, 0.03549382463097572, -0.0208577923476696, 0.029741941019892693, 0.02473856508731842, 0.024839764460921288, 0.024204624816775322, -0.021649181842803955, -0.002901732921600342, -0.03915715962648392, 0.019338838756084442, 0.028728459030389786, 0.027501126751303673, -0.006447134539484978, -0.015155709348618984, 0.006424835883080959, -0.00976943876594305, 0.027371732518076897, 0.018449483439326286, 0.04423822835087776, 0.016507506370544434, 0.00003315049616503529, -0.000719160889275372, 0.0165077056735754, -0.033680543303489685, -0.005484963301569223, 0.014743962325155735, 0.05797768756747246, 0.029969893395900726, -0.08964235335588455, -0.042966924607753754, 0.021545182913541794, 0.07038215547800064, -0.02544192597270012, -0.049548715353012085, 0.0006992767448537052, -0.05638276785612106, 0.0172961987555027, -0.01546873152256012, 0.045319411903619766, 0.015341946855187416, 0.013422471471130848, 0.030248723924160004, -0.00045649780076928437, -0.013109279796481133, 0.0003526046348270029, 0.00333306472748518, 0.038557279855012894, 0.03741348162293434, -0.05075962841510773, 0.04461481422185898, 0.003972482401877642, 0.009518848732113838, 0.019902026280760765, -0.022928934544324875, -0.005391822662204504, 0.008070618845522404, 0.014927318319678307, -0.0048512620851397514, -0.01177931483834982, -0.03736326843500137, -0.007890796288847923, 0.02690335176885128, -0.008131143637001514, -0.022158371284604073, 0.016880091279745102, 0.014040566980838776, 0.011810163967311382, 0.015040029771625996, -0.0023271951358765364, 0.023107420653104782, 0.029006676748394966, -0.0034082112833857536, -0.0016683217836543918, 0.01825641095638275, -0.02152562141418457, 0.003282745135948062, 0.016375450417399406, -0.03824542462825775, -0.030499309301376343, 0.02142041176557541, -0.008932885713875294, 0.0344543382525444, -0.02745458483695984, 0.01976466365158558, 0.010341322980821133, 0.06092550978064537, 0.03547920659184456, -0.02303488738834858, -0.039410486817359924, 0.0066330512054264545, 0.006966454442590475, 0.007573619019240141, -0.009896091185510159, -0.03412182629108429, -0.023753013461828232, 0.0005811461596749723, 0.019163085147738457, 0.01072133518755436, -0.0053492095321416855, 0.010217414237558842, 0.03146747872233391, 0.011502289213240147, -0.005808663554489613, -0.0039060977287590504, -0.0027954131364822388, -0.010727567598223686, 0.04555697366595268, -0.008608889766037464, -0.025202590972185135, -0.027349118143320084, -0.006720633711665869, -0.010463395155966282, 0.014239027164876461, -0.021059466525912285, -0.02268822304904461, -0.06046215444803238, -0.005357242655009031, -0.020038999617099762, 0.06987917423248291, -0.019303619861602783, 0.04730274900794029, -0.004536833614110947, -0.012762997299432755, 0.017959922552108765, 0.03004131279885769, 0.031596213579177856, -0.018754249438643456, 0.03536013141274452, 0.033214010298252106, -0.03378238156437874, 0.01767170988023281, -0.01304548792541027, -0.024392634630203247, 0.04081788286566734, -0.021913528442382812, -0.00799010694026947, 0.01889466494321823, 0.003267749445512891, -0.0021226289682090282, -0.02811560221016407, 0.0034151021391153336, -0.02999746985733509, 0.04994979128241539, 0.014511016197502613, 0.01508212648332119, 0.0010558649664744735, 0.0341927744448185, 0.014914345927536488, -0.01640627346932888, -0.0003964778734371066, 0.018012475222349167, -0.03473096340894699, 0.02218998596072197, -0.008799879811704159, 0.031486306339502335, 0.007394952233880758, -0.027489498257637024, 0.020192397758364677, -0.014900176785886288, -0.04238840937614441, -0.047259848564863205, 0.011382968164980412, 0.005846464075148106, -0.018740737810730934, 0.012148085050284863, 0.04214410111308098, 0.035212475806474686, -0.02812260575592518, 0.0010315903928130865, 0.009098432958126068, 0.05422917753458023, -0.04214107617735863, 0.047852903604507446, -0.00362212467007339, -0.009688335470855236, -0.00913952849805355, -0.016880204901099205, 0.03769732639193535, 0.037492066621780396, -0.025782987475395203, -0.02921091951429844, -0.014362288638949394, 0.008879079483449459, -0.03588385879993439, 0.013746566139161587, -0.018725166097283363, 0.028629234060645103, 0.06716516613960266, 0.04714560881257057, -0.017531096935272217, -0.07249549776315689, 0.00562360230833292, 0.014869092032313347, -0.02533702924847603, -0.025567421689629555, -0.03472831845283508, -0.028717946261167526, -0.03886013105511665, -0.024907324463129044, -0.034311503171920776, 0.050035636872053146, -0.02246791683137417, 0.0373288057744503, -0.0007763927569612861, 0.03909686580300331, -0.0404939129948616, -0.011256090365350246, 0.005472132936120033, 0.002633247757330537, 0.011477051302790642, 0.030982904136180878, 0.02611362934112549, 0.0019483409123495221, -0.012667616829276085, 0.033781375735998154, 0.04106823727488518, -0.03036240115761757, 0.0007472100551240146, 0.03354266285896301, 0.007462513167411089, 0.01938631758093834, -0.02771322801709175, -0.011645537801086903, -0.019518831744790077, 0.019081715494394302, 0.0007174771162681282, -0.04897446557879448, -0.02685638517141342, 0.023502839729189873, 0.016280362382531166, -0.012001545168459415, -0.019911522045731544, 0.017812324687838554, 0.041592493653297424, -0.03499232977628708, -0.02241101674735546, 0.020296866074204445, -0.016410555690526962, -0.015095875598490238, -0.011612697504460812, 0.023889044299721718, -0.05240336060523987, 0.02092391811311245, -0.028972243890166283, 0.005019666161388159, 0.014603208750486374, -0.013683496974408627, -0.0008413901668973267, -0.00010671613563317806, -0.01760799065232277, -0.008631261996924877, -0.02545645646750927, 0.017391685396432877, -0.041844628751277924, 0.020501140505075455, 0.018864614889025688, 0.012848950922489166, 0.027167219668626785, -0.000051093978981953114, -0.008730156347155571, 0.009008046239614487, 0.012031671591103077, -0.0004701705474872142, -0.024212399497628212, -0.03468213602900505, 0.036622073501348495, 0.013899533078074455, -0.022658739238977432, 0.013014625757932663, -0.08175522834062576, -0.05257505923509598, -0.004630049224942923, -0.06006278470158577, 0.03125428035855293, 0.07172079384326935, 0.009421182796359062, 0.02097465842962265, 0.012358196079730988, 0.011045411229133606, -0.013160725124180317, 0.02746875211596489, -0.01003362238407135, 0.026607690379023552, 0.005387655459344387, 0.04478038102388382, -0.030144277960062027, 0.045074887573719025, 0.03326965123414993, 0.05636002868413925, -0.05118869990110397, 0.024091606959700584, 0.03224123641848564, -0.025107840076088905, 0.06318289041519165, -0.00022903221542946994, -0.04526189714670181, -0.04055897518992424, 0.023395221680402756, 0.03975917398929596, 0.031710997223854065, -0.03933313861489296, -0.007339794654399157, 0.005120421759784222, -0.004321323707699776, 0.014075348153710365, 0.01919732801616192, -0.009851532056927681, 0.028725486248731613, 0.024563683196902275, 0.037314966320991516, 0.036232516169548035, 0.032106783241033554, 0.033395279198884964, 0.03254591301083565, 0.04323545843362808, -0.016469504684209824, 0.03909323737025261, 0.026186766102910042, -0.0018529243534430861, -0.010858850553631783, -0.04064635559916496, -0.06085582077503204, -0.029176469892263412, 0.011422842741012573, 0.05537202209234238, -0.049039117991924286, 0.044328946620225906, -0.03921407088637352, 0.038583047688007355, 0.04811087250709534, 0.03539034724235535, -0.030613526701927185, 0.03598815202713013, 0.021180784329771996, 0.023150838911533356, 0.035819098353385925, 0.0037916088476777077, -0.012205586768686771, -0.014600980095565319, 0.03527358919382095, 0.021025434136390686, 0.03189239650964737, 0.01567763462662697, -0.009471697732806206, 0.0072520519606769085, -0.031734589487314224, -0.020757874473929405, 0.042878296226263046, 0.008411775343120098, -0.004891358781605959, 0.0027221941854804754, 0.01041265856474638, -0.052727919071912766, -0.03114832565188408, -0.01360110193490982, -0.03920990228652954, -0.030325770378112793, 0.011487196199595928, -0.03278541564941406, 0.04202571511268616, 0.02060830220580101, -0.04880391061306, 0.006349662318825722, 0.032349325716495514, -0.0334429107606411, 0.015957893803715706, -0.03241592273116112, -0.02080647088587284, -0.053153738379478455, -0.020005708560347557, -0.029199527576565742, 0.04611842334270477, -0.013887318782508373, -0.004369752015918493, 0.027255190536379814, 0.0339992418885231, -0.03586961328983307, 0.01367966178804636, 0.035534873604774475, -0.011133341118693352, -0.04840041324496269, 0.05142584443092346, -0.027382995933294296, -0.04625443369150162, 0.03998202458024025, -0.061036836355924606, -0.004282557405531406, 0.01885898783802986, 0.060697779059410095, 0.03778897225856781, 0.00221530650742352, -0.0008731254492886364, -0.01841163821518421, 0.0035823022481054068, -0.03883809968829155, -0.049524035304784775, 0.01938539557158947, -0.01772080920636654, -0.002662880579009652, 0.005220768041908741, -0.018014436587691307, 0.022379282861948013, 0.007549948990345001, 0.0516076385974884, 0.030883027240633965, -0.0014430740848183632, -0.05870473384857178, 0.00400377344340086, 0.033027566969394684, -0.016190148890018463, -0.0060302517376840115, 0.0068856533616781235, 0.05829561501741409, -0.012540147639811039, -0.0032215421088039875, -0.001174837350845337, -0.05654769018292427, 0.002930369460955262, -0.045663584023714066, -0.04901046305894852, -0.009405964985489845, 0.006485970690846443, 0.014030694030225277, -0.0010360952001065016, -0.01727685146033764, -0.01941516622900963, -0.009569724090397358, 0.008341122418642044, -0.021715449169278145, 0.036572881042957306, 0.0415499210357666, 0.05115175247192383, 0.029088523238897324, 0.007689120713621378, -0.05660773813724518, -0.014248221181333065, -0.03201361745595932, 0.00944853387773037, 0.038852572441101074, -0.021096648648381233, -0.041245073080062866, -0.0013080838834866881, -0.006922743283212185, -0.01682734116911888, -0.05296747758984566, -0.005545740015804768, -0.02401643991470337, 0.02876433916389942, -0.03733455389738083, -0.025857634842395782, 0.026582378894090652, 0.057969965040683746, 0.02141737751662731, 0.0659416988492012, -0.010717812925577164, -0.0016499736811965704, -0.019088516011834145, -0.046371784061193466, -0.005474308971315622, -0.06583250313997269, -0.006376318167895079, 0.01703508198261261, 0.007365328725427389, -0.005290661007165909, -0.014152432791888714, -0.0064163813367486, 0.008191956207156181, 0.01612394116818905, 0.007782455068081617, -0.02987080067396164, 0.009372446686029434, 0.03120613284409046, -0.030146120116114616, 0.006173413712531328, 0.017536502331495285, 0.052747249603271484, -0.0397234708070755, 0.02696406841278076, 0.04065260663628578, 0.04270678386092186, 0.027072522789239883, 0.006685773376375437, -0.047563232481479645, 0.041602857410907745, 0.01967097818851471, 0.006212735082954168, -0.019115792587399483, -0.02203054167330265 ]
Deprecation of Git Authentication using password
Sylvestre
August 25, 2023
password-git-deprecation
announcement, security
https://huggingface.co/blog/password-git-deprecation
Background In recent months, we have implemented various security enhancements, including sign-in alerts and support for SSH keys in Git. However, users have still been able to authenticate Git operations using their username and password. To further improve security, we are now transitioning to token-based or SSH key authentication. Token-based and SSH key authentication offer several advantages over traditional password authentication, including unique, revocable, and random features that enhance security and control.
[ 0.0598602369427681, 0.03286202251911163, 0.035541217774152756, -0.007688295561820269, 0.10164479911327362, 0.038688015192747116, -0.008149084635078907, 0.044269341975450516, -0.013007297180593014, -0.11056234687566757, -0.06924781948328018, 0.021957602351903915, -0.017055179923772812, 0.016252093017101288, -0.07552510499954224, 0.03329607471823692, 0.04555584862828255, -0.0358736552298069, 0.017070557922124863, -0.007435983046889305, 0.014094789512455463, -0.01253603771328926, 0.057034704834222794, -0.05175663158297539, -0.041734177619218826, -0.010520345531404018, 0.0357852429151535, -0.05238385498523712, -0.06473987549543381, 0.020650267601013184, -0.06954819709062576, -0.041450612246990204, 0.052773091942071915, -0.0866122916340828, 0.013798736035823822, 0.020065851509571075, -0.06667256355285645, 0.008163335733115673, 0.012732697650790215, -0.03334978222846985, -0.028306929394602776, -0.06656649708747864, 0.023193616420030594, 0.05481038987636566, -0.09315083920955658, -0.011731965467333794, -0.17766477167606354, 0.08016615360975266, -0.029235249385237694, 0.024583445861935616, -0.06519517302513123, 0.02232075110077858, -0.03442666679620743, -0.048604801297187805, 0.019480349496006966, 0.00426712678745389, -0.03079744055867195, -0.06122395768761635, 0.04704313352704048, 0.0006532404222525656, 0.03865671157836914, -0.045147091150283813, -0.005376389715820551, -0.010985189117491245, 0.04083705693483353, -0.032159388065338135, 0.0022757824044674635, 0.01522430032491684, -0.028762735426425934, 0.0708235502243042, 0.08388595283031464, 0.016012990847229958, -0.09553242474794388, -0.025837698951363564, -0.028112106025218964, -0.08586171269416809, 0.048845190554857254, 0.04503442347049713, 0.028102070093154907, -0.006787356920540333, 0.07508358359336853, 0.041906457394361496, -0.01171578373759985, 0.012125951237976551, 0.04456230252981186, 0.017693759873509407, 0.017604675143957138, -0.04486662894487381, -0.022535275667905807, 0.028664235025644302, 0.0482245497405529, -0.06080188229680061, -0.03278117626905441, 0.0017371030990034342, 0.04048807919025421, -0.02467331290245056, -0.006831965409219265, 0.03972980007529259, -0.0004543412069324404, 0.004619516432285309, -0.05885353311896324, -0.048635974526405334, 0.014351957477629185, -0.06871169805526733, -0.06440914422273636, -0.013937094248831272, -0.060035962611436844, -0.05335087701678276, -0.02059357985854149, 0.002053334377706051, 0.00701120076701045, 0.025706689804792404, 0.12924832105636597, -0.011826565489172935, 0.03290228545665741, 0.05962684378027916, -0.009576093405485153, -0.0642065778374672, 0.01114878710359335, 0.022170845419168472, 0.009694060310721397, 0.068951316177845, -0.039318714290857315, 0.04896652325987816, 0.007686377502977848, -0.004889436531811953, 0.005727503448724747, 0.009982680901885033, -0.05933816358447075, -0.08683875948190689, 0.020478960126638412, 0.042464952915906906, 0.07194094359874725, 0.0022925289813429117, -0.02437148615717888, 0.019033066928386688, -0.02123689092695713, -0.09679418802261353, 0.0361957885324955, -0.008060538209974766, -0.0032585118897259235, 0.009115656837821007, 0.020689085125923157, 0.029667530208826065, -0.010184711776673794, 0.057490866631269455, -0.040685512125492096, 0.009020746685564518, 0.028447937220335007, -0.0007175653008744121, 0.03481452539563179, -0.04250708967447281, -0.03538588806986809, -0.03623625263571739, -0.024974679574370384, 0.02500980533659458, 0.058674249798059464, 0.010366672649979591, -0.042017050087451935, -0.04486002400517464, -0.0022171111777424812, 0.0014015634078532457, 0.00011938738316530362, 0.00990496575832367, 0.03510222211480141, 0.01181016769260168, 0.019196640700101852, 0.007388547994196415, 0.05139949917793274, 0.036624785512685776, 0.021355418488383293, -0.019341403618454933, 0.0015152775449678302, -0.030229225754737854, 0.08813226222991943, 0.0555478073656559, 0.01513049565255642, 0.03165614232420921, 0.04600653797388077, -0.06225582957267761, -0.027392666786909103, 0.018353035673499107, 0.02352803945541382, 0.07500957697629929, -0.019700227305293083, -0.10318148881196976, -0.049722716212272644, -0.05589058995246887, 0.06966819614171982, -0.029186518862843513, -0.06881842762231827, -0.03640245646238327, 0.05417415872216225, -0.02576698549091816, 0.03685062751173973, -0.002607258502393961, 0.020300451666116714, 0.05632111057639122, 0.04777691513299942, 0.04382965713739395, 0.02742064744234085, -0.008861592039465904, -0.046470317989587784, -0.07104194909334183, -0.03222724422812462, 0.028821175917983055, 0.04056578502058983, -0.02990197204053402, 0.04594604671001434, -0.02605222538113594, -0.004870678298175335, 0.028074562549591064, -0.00942130945622921, -0.01744348555803299, -0.022044116631150246, 0.0250020120292902, -0.029257064685225487, -0.04407276585698128, 0.03278431296348572, -0.03050096519291401, 0.15064364671707153, -0.028299270197749138, 0.020934633910655975, 0.14285066723823547, -0.016208762302994728, 0.05070735514163971, 0.021101126447319984, -0.017395952716469765, 0.12300951778888702, 0.034646809101104736, -0.06121915951371193, -0.11331062018871307, -0.0013320364523679018, -0.022405846044421196, 0.03717074543237686, 0.009524384513497353, -0.02457667887210846, -0.08831478655338287, 0.018101677298545837, -0.014823783189058304, -0.03341806307435036, -0.06323132663965225, 0.001326595083810389, 0.030667947605252266, 0.03609685227274895, -0.05165793001651764, 0.08373778313398361, -0.06629163026809692, 0.020622966811060905, -0.03733127936720848, -0.07817209511995316, 0.0001795333082554862, 0.03224401921033859, -0.016150902956724167, 0.09658446162939072, 0.014332619495689869, 0.011261454783380032, -0.05406849458813667, -0.03158269450068474, 0.007857738994061947, -0.029296403750777245, -0.01971788890659809, -0.014301903545856476, -0.055901043117046356, -0.02685382589697838, 0.0015902201412245631, -0.006819617934525013, -0.01858881302177906, -0.009775929152965546, -0.01661095768213272, 0.016951153054833412, -0.06020693480968475, -0.010728520341217518, -0.0007523168460465968, -0.036988887935876846, 0.007161612622439861, -0.010856783017516136, 0.01768697053194046, 0.029858384281396866, -0.014227040112018585, 0.050173766911029816, -0.06368577480316162, 0.027134522795677185, 0.0351051390171051, 0.01433455292135477, 0.015800083056092262, 0.02847331203520298, -0.01603711023926735, -0.03787057101726532, -0.004538241308182478, -0.007872778922319412, 0.011814959347248077, -0.02455560490489006, 0.04056435450911522, -0.00985624548047781, 0.015690339729189873, -0.01412383932620287, -0.011651776731014252, -0.02824806049466133, 0.016224069520831108, 0.03259747847914696, -0.05384790897369385, 0.006425732746720314, -0.04452788829803467, -0.02925427444279194, 0.04689459875226021, -0.014756781049072742, -0.01735627092421055, -0.10009193420410156, -0.0722971260547638, 0.009329205378890038, 0.03670738264918327, 0.013559785671532154, 0.014087571762502193, 0.05028556287288666, -0.0029256369452923536, -0.02818678878247738, -0.011903948150575161, 0.016268279403448105, -0.009938692674040794, 0.019192712381482124, 0.006198447197675705, -0.039485953748226166, -0.026453368365764618, 0.015925807878375053, 0.011888831853866577, 0.025302179157733917, -0.020397108048200607, -0.031282130628824234, -0.017456719651818275, -0.019404886290431023, -0.006142646074295044, -0.017589889466762543, -0.018101293593645096, 0.016832081601023674, -0.0018170223338529468, 0.039254795759916306, -0.03856155276298523, 0.016117600724101067, -0.026950374245643616, 0.02220647595822811, 0.017824096605181694, -0.03257729485630989, -0.007001507095992565, 0.05764578655362129, -0.01539548672735691, 0.029162811115384102, -0.004085489083081484, 0.030067989602684975, 0.007464414928108454, 0.032416362315416336, -0.06483732908964157, -0.020115090534090996, -0.04462222382426262, -0.0017066325526684523, -0.015660356730222702, 0.04986172541975975, -0.022797606885433197, -0.03448248654603958, 0.024281783029437065, 0.03296723961830139, 0.010341687127947807, 0.035473424941301346, -0.02079472877085209, -0.016007281839847565, 0.014366262592375278, -0.011887799017131329, 0.023974839597940445, -0.017095530405640602, 0.018505260348320007, 0.0527878999710083, -0.03349877521395683, -0.03126077353954315, 0.047276727855205536, -0.031294506043195724, 0.04376755282282829, -0.006603761576116085, -0.02129410207271576, -0.04560049623250961, 0.03770224004983902, -0.014082776382565498, 0.001653102575801313, 0.0012580513721331954, -0.03317152336239815, -0.013764009810984135, -0.012890134938061237, 0.07715832442045212, 0.03495481610298157, -0.009967581368982792, -0.004883116576820612, 0.03142767399549484, -0.006185431499034166, -0.009226204827427864, -0.006243831943720579, -0.033011067658662796, -0.014612097293138504, -0.032563287764787674, 0.03679295629262924, -0.005679980851709843, -0.021418914198875427, 0.010876345448195934, -0.021886924281716347, 0.018455252051353455, 0.040056873112916946, 0.0763237327337265, -0.004501601215451956, -0.011313209310173988, 0.017258981242775917, 0.03799254819750786, -0.0031538535840809345, 0.0016140741063281894, -0.019812652841210365, 0.029806360602378845, 0.05385439097881317, -0.024721475318074226, 0.01243657898157835, -0.017240360379219055, 0.03960549458861351, 0.01963900402188301, -0.006379639729857445, 0.040360383689403534, -0.02699730172753334, -0.023674611002206802, 0.041523873805999756, 0.0019228310557082295, -0.012501394376158714, -0.003391711972653866, 0.03574106842279434, -0.0663803294301033, 0.020247751846909523, 0.025798138231039047, 0.03887413069605827, 0.03855862095952034, -0.021606620401144028, 0.023911859840154648, -0.008641956374049187, -0.032066285610198975, -0.027317726984620094, 0.01839972473680973, 0.004449320491403341, -0.026449905708432198, 0.03219226375222206, 0.005480390507727861, 0.017260342836380005, 0.0012603405630216002, 0.025829441845417023, -0.00926284771412611, -0.05482732877135277, -0.014589616097509861, 0.02407831884920597, 0.01783238910138607, -0.03033526800572872, 0.04293503612279892, -0.008792238309979439, -0.0407712422311306, -0.016721060499548912, 0.005860662553459406, 0.050075579434633255, 0.031151961535215378, -0.015787657350301743, 0.042358461767435074, -0.005054119974374771, 0.031159674748778343, -0.04164021089673042, -0.012907695025205612, -0.008586473762989044, -0.01952008716762066, 0.03318288177251816, 0.02966439165174961, -0.00491733942180872, 0.008246377110481262, -0.010667940601706505, -0.015161162242293358, -0.009072738699615002, 0.01384422741830349, 0.019827069714665413, -0.02130107209086418, 0.016773512586951256, 0.022514360025525093, 0.03724466636776924, 0.0037002572789788246, -0.032336167991161346, 0.023583505302667618, -0.0170635636895895, 0.017495552077889442, 0.03607382997870445, 0.011561921797692776, 0.010942486114799976, 0.013195222243666649, -0.0017957511590793729, 0.006606611423194408, 0.01918834261596203, 0.00787916500121355, -0.017867181450128555, 0.07907500863075256, 0.01581994816660881, 0.004225809592753649, 0.02678593248128891, 0.0070955497212708, -0.012844817712903023, -1.608978266176564e-7, -0.03651099279522896, 0.04607124999165535, -0.03049801103770733, 0.02246031165122986, 0.00009949897503247485, -0.018590964376926422, 0.013327510096132755, 0.026204971596598625, 0.04356821998953819, 0.006287031807005405, 0.021224521100521088, 0.0017720988253131509, 0.028244128450751305, 0.024475185200572014, 0.0023169254418462515, -0.015730293467640877, -0.01854606904089451, 0.018859827890992165, 0.02037898264825344, -0.008309094235301018, -0.03467245027422905, 0.021303681656718254, -0.006869275588542223, -0.030638499185442924, 0.008290129713714123, -0.0018201539060100913, -0.007369339000433683, 0.009761259891092777, 0.007769396994262934, -0.02700488083064556, 0.04227843135595322, 0.03879909589886665, -0.01715531200170517, -0.02413606457412243, 0.0661947950720787, 0.00524020055308938, 0.011618614196777344, 0.07165838778018951, -0.0168316550552845, 0.0376097708940506, -0.006401704624295235, -0.005948385689407587, 0.019109077751636505, 0.010440158657729626, -0.009846722707152367, -0.004978809040039778, 0.01892193593084812, -0.034804414957761765, 0.019752217456698418, -0.009441845118999481, -0.037369947880506516, -0.0711679607629776, -0.025395555421710014, 0.05085435137152672, 0.03830145299434662, 0.0062969159334897995, 0.03498717397451401, -0.00005889736712560989, -0.023122513666749, 0.017807846888899803, 0.0011189280776306987, -0.00035969028249382973, 0.022572815418243408, 0.05893879383802414, -0.03173913061618805, -0.0035377824679017067, -0.0416116900742054, 0.0575760118663311, -0.04685182496905327, -0.00945068895816803, 0.031715914607048035, 0.015447602607309818, 0.011066229082643986, 0.03346281498670578, -0.09729216247797012, -0.016546394675970078, -0.0028862282633781433, 0.0016528157284483314, -0.0021566872019320726, 0.028687534853816032, -0.032393816858530045, -0.04939016327261925, -0.05605778470635414, 0.01753281056880951, 0.01673710159957409, -0.012822831980884075, 0.029408378526568413, -0.0018279108917340636, 0.06390676647424698, 0.024539044126868248, 0.018340613692998886, -0.01972566917538643, 0.023636983707547188, 0.020199215039610863, -0.02315170131623745, 0.08370765298604965, -0.016573142260313034, -0.007768178824335337, -0.003990371245890856, -0.0019649730529636145, 0.020639730617403984, -0.049088384956121445, 0.001107410411350429, -0.03218205273151398, -0.010613774880766869, 0.03539449721574783, -0.030932126566767693, 0.030576707795262337, -0.006054465658962727, -0.0029626546893268824, 0.02889885939657688, 0.0035996774677187204, 0.033242445439100266, 0.02596393972635269, 0.04218592122197151, 0.021028896793723106, -0.001794906915165484, 0.008526218123733997, 0.032468199729919434, 0.015512943267822266, 0.004776248708367348, -0.003775025485083461, -0.0028689182363450527, 0.02842249535024166, -0.020932430401444435, -0.006557073909789324, -0.05710712447762489, 0.016089854761958122, -0.05459662899374962, -0.008447556756436825, 0.025407901033759117, 0.003325332887470722, 0.016540471464395523, 0.021001098677515984, -0.009874806739389896, 0.00978201162070036, -0.023911109194159508, 0.033859316259622574, 0.04425995051860809, 0.03610013425350189, -0.006909183692187071, -0.06540104001760483, 0.010433361865580082, 0.03297286853194237, 0.0020594687666743994, -0.019335296005010605, -0.00959779042750597, -0.01849602349102497, -0.0013840574538335204, 0.011296200565993786, -0.0006192654836922884, -0.01671133190393448, -0.01629646122455597, -0.04021785408258438, 0.01704740896821022, -0.03383554518222809, -0.007685875054448843, -0.022049374878406525, -0.04254290461540222, -0.011997579596936703, 0.018006756901741028, -0.024346522986888885, -0.037549007683992386, -0.04478812217712402, -0.018238039687275887, 0.05600140243768692, -0.03603523224592209, 0.07713188230991364, 0.03305607661604881, 0.008122589439153671, -0.04649842530488968, -0.004060387145727873, 0.010584578849375248, -0.0029973750934004784, -0.07030996680259705, 0.018828008323907852, 0.0536956787109375, 0.007407440338283777, 0.00937248207628727, 0.0013999338261783123, 0.021337393671274185, 0.04286697879433632, 0.05129292979836464, 0.0569957010447979, 0.008569915778934956, -0.04457483068108559, 0.046427033841609955, 0.08869372308254242, 0.005437867715954781, 0.014583999291062355, 0.005725803319364786, -0.0176993440836668, 0.03940573334693909, -0.018107526004314423, -0.004554896615445614, -0.012448104098439217, -0.0028022476471960545, 0.021415716037154198, -0.03334471210837364, -0.0398830808699131, 0.02381652593612671, 0.06143002584576607, 0.018633386120200157, -0.04483885318040848, 0.030987348407506943, 0.024709492921829224, -0.00022537245240528136, -0.027866898104548454, 0.0016606879653409123, 0.014731688424944878, -0.0176685880869627, 0.005834197159856558, 0.007535796146839857, -0.06198114529252052, -0.019288893789052963, 0.017834721133112907, 0.04955533891916275, -0.0012945695780217648, 0.04773600399494171, -0.022596273571252823, 0.02855517715215683, -0.013569680042564869, -0.03387383744120598, 0.017823930829763412, 0.0039382874965667725, 0.013508603908121586, -0.007805323228240013, 0.00020200165454298258, 0.015362502075731754, -0.003758552484214306, -0.003172948956489563, 0.00843289215117693, 0.02021251991391182, -0.008153548464179039, 0.031133057549595833, -0.004719279706478119, 0.017795845866203308, -0.003946592565625906, -0.026302965357899666, 0.022737152874469757, -0.009778442792594433, 0.012297766283154488, -0.023834800347685814, 0.035957831889390945, -0.013879811391234398, 0.01649603433907032, -0.02476162649691105, -0.026254326105117798, -0.012734349817037582, 0.00003188246409990825, 0.01004565879702568, -0.019752806052565575, -0.01828487403690815, 0.04138267785310745, -0.02142214961349964, -0.017673438414931297, -0.015618818812072277, -0.006973550654947758, 0.00344086904078722, 0.013991503044962883, 0.03905101120471954, -0.03803465887904167, 0.05173894390463829, -0.041655074805021286, 0.04856054484844208, -0.02696322649717331, -0.008101626299321651 ]
Deprecation of Git Authentication using password
Sylvestre
August 25, 2023
password-git-deprecation
announcement, security
https://huggingface.co/blog/password-git-deprecation
Action Required Today If you currently use your HF account password to authenticate with Git, please switch to using a personal access token or SSH keys before October 1st, 2023.
[ 0.019730888307094574, 0.06149447336792946, 0.10264527797698975, 0.010963916778564453, 0.0957549661397934, 0.018947597593069077, 0.008152415044605732, 0.03806963190436363, -0.00038171716732904315, -0.10494493693113327, -0.05433035269379616, 0.044508181512355804, -0.025850700214505196, 0.03919119015336037, -0.07015673071146011, -0.030481765046715736, 0.02218838594853878, -0.0398419015109539, 0.018107613548636436, -0.00678391195833683, 0.050051286816596985, 0.007609470747411251, 0.019751615822315216, -0.009900682605803013, -0.029673075303435326, -0.028470881283283234, 0.018772616982460022, 0.007342403754591942, 0.004444268066436052, 0.03331033140420914, -0.046113353222608566, -0.06050208956003189, 0.10897671431303024, -0.06826579570770264, 0.026471251621842384, 0.02838089130818844, -0.05757015943527222, 0.0059426394291222095, 0.043802011758089066, -0.013806459493935108, 0.01918010599911213, -0.09307201206684113, 0.009770111180841923, 0.035384438931941986, -0.0504094734787941, 0.031085431575775146, -0.17928849160671234, 0.06882757693529129, 0.003984504379332066, 0.015165041200816631, -0.06230304390192032, 0.049444347620010376, -0.0033952610101550817, -0.08032217621803284, 0.04227060824632645, -0.00994517095386982, -0.05548559129238129, -0.06849507242441177, -0.004680966027081013, 0.03994494304060936, 0.10390632599592209, -0.06733079999685287, -0.060830630362033844, -0.010947181843221188, 0.0491645410656929, -0.04469040036201477, -0.009461726993322372, -0.017994973808526993, -0.03457646816968918, 0.03152282536029816, 0.03941746801137924, 0.04396873340010643, -0.020436685532331467, -0.03875720128417015, 0.003423374844714999, -0.05831978842616081, -0.04198557883501053, 0.10573000460863113, 0.05234450846910477, 0.03991888463497162, 0.08061056584119797, 0.011434788815677166, 0.026039959862828255, 0.01923813298344612, -0.007121032103896141, -0.011211124248802662, 0.028190068900585175, -0.03204518184065819, 0.002549168188124895, 0.01902281865477562, 0.007517182268202305, -0.06824328005313873, -0.027209967374801636, -0.007481186185032129, 0.04791909083724022, -0.048941634595394135, 0.015010112896561623, 0.016346769407391548, -0.015854185447096825, -0.01302393153309822, -0.06683942675590515, -0.03397710621356964, -0.006837789434939623, -0.06879632920026779, 0.008285026997327805, -0.012246595695614815, -0.05227954685688019, -0.08672285825014114, -0.04299534484744072, -0.0659307986497879, 0.0498192235827446, 0.0713915154337883, 0.07456394284963608, -0.031393058598041534, 0.0314142107963562, 0.056257668882608414, 0.040477629750967026, -0.11997487396001816, -0.0010065250098705292, 0.06928007304668427, 0.008115382865071297, 0.09385890513658524, -0.010287751443684101, 0.055604785680770874, 0.062439925968647, 0.021172039210796356, -0.017148492857813835, -0.016475699841976166, -0.030008243396878242, -0.1259857416152954, 0.026074664667248726, 0.018805382773280144, 0.020381171256303787, -0.03300772234797478, -0.02429356426000595, -0.004798299632966518, -0.02364267036318779, -0.05567045509815216, 0.0326051190495491, 0.016423098742961884, -0.009827280417084694, -0.026398668065667152, 0.03200746700167656, 0.032847415655851364, 0.056008048355579376, 0.048959385603666306, 0.019100533798336983, 0.01838523894548416, 0.02880885638296604, 0.040813203901052475, 0.012109232135117054, 0.03136739134788513, -0.04639284312725067, -0.03654443472623825, 0.012101317755877972, -0.012961536645889282, 0.028659364208579063, -0.012022517621517181, -0.04447350278496742, 0.008922155015170574, 0.027319177985191345, 0.011395097710192204, -0.0046342890709638596, -0.005706702824681997, 0.0631844773888588, -0.01576283946633339, 0.05514137074351311, -0.021163977682590485, 0.018620647490024567, -0.06396735459566116, 0.05225328728556633, -0.03690318763256073, 0.06470424681901932, -0.047046270221471786, 0.053844332695007324, 0.05932377278804779, 0.04244538024067879, 0.057224903255701065, 0.005697566084563732, -0.0016382175963371992, -0.04009035602211952, 0.09477036446332932, 0.017027346417307854, 0.0385955348610878, -0.004501302260905504, -0.11079589277505875, -0.05473652482032776, 0.005280738230794668, 0.09641841053962708, 0.040733322501182556, -0.08067062497138977, -0.08554203063249588, 0.07894419133663177, -0.03344424068927765, 0.08200402557849884, 0.0065624103881418705, 0.015143774449825287, 0.07172024995088577, 0.032786887139081955, 0.057345062494277954, 0.02326735109090805, 0.028846126049757004, 0.03493659943342209, -0.04536315053701401, -0.04420054703950882, 0.032970089465379715, 0.02394278533756733, -0.02010570466518402, 0.03471576049923897, -0.0025657592341303825, 0.015673857182264328, 0.014420760795474052, 0.023981133475899696, -0.035259537398815155, 0.012420893646776676, -0.013171651400625706, -0.0055498527362942696, 0.007929159328341484, -0.012454787269234657, -0.02931387349963188, 0.11930779367685318, 0.04973602667450905, 0.02725672908127308, 0.08743337541818619, -0.03182920813560486, 0.02887134626507759, 0.061448775231838226, -0.0017757921013981104, 0.10065947473049164, -0.019192667677998543, -0.04913656413555145, -0.07336144894361496, -0.0545029491186142, 0.021634841337800026, 0.024775274097919464, 0.016142461448907852, -0.03214997798204422, -0.050571244210004807, 0.015371261164546013, 0.007945583201944828, -0.015759434551000595, -0.031039338558912277, 0.04429065063595772, 0.0012194225564599037, -0.007629480212926865, -0.00241345283575356, 0.07452213764190674, 0.01188604161143303, 0.00933138094842434, 0.0005299585754983127, -0.06196440011262894, 0.019474737346172333, -0.02948811836540699, 0.004581361077725887, 0.0892636775970459, -0.01277118269354105, -0.003958059474825859, -0.03615441918373108, -0.00014762231148779392, -0.005373884923756123, -0.03215794637799263, -0.008195946924388409, -0.020771706476807594, -0.02923993021249771, -0.02921394445002079, 0.017593752592802048, 0.010219995863735676, -0.008611797355115414, -0.06256265193223953, -0.009504847228527069, 0.004061088897287846, -0.04761619493365288, 0.00987985823303461, 0.008958650752902031, -0.01189569104462862, -0.0010314863175153732, 0.03550567477941513, -0.007384709548205137, 0.0173324104398489, 0.004466810263693333, 0.013274050317704678, -0.023148393258452415, 0.015873290598392487, -0.012603380717337132, 0.018631815910339355, -0.0008738049073144794, 0.002966828178614378, -0.030662082135677338, 0.018928125500679016, -0.01680997759103775, -0.00788036547601223, 0.018839839845895767, 0.007056742906570435, 0.02384498342871666, 0.0019162825774401426, -0.006766691338270903, 0.027454592287540436, -0.00762505317106843, -0.03628440573811531, 0.02492554858326912, 0.008820006623864174, -0.04441302642226219, 0.005650797393172979, -0.04021361097693443, -0.02683882787823677, 0.04020971432328224, 0.005793113727122545, -0.01820671744644642, -0.10887882113456726, -0.0425134114921093, 0.0074569773860275745, 0.045603569597005844, -0.018916301429271698, 0.01294101495295763, 0.04273470118641853, 0.03923787176609039, -0.00969685148447752, -0.016970772296190262, -0.004005820956081152, -0.011297578923404217, 0.007827668450772762, -0.0016404221532866359, -0.060897864401340485, -0.045946765691041946, 0.0014495757641270757, -0.022094009444117546, -0.005613985937088728, -0.040984831750392914, -0.04389962926506996, 0.03334168717265129, -0.013181562535464764, -0.006406431086361408, -0.017797715961933136, -0.006351252552121878, 0.037978895008563995, 0.014881491661071777, 0.013098059222102165, -0.03979242220520973, 0.04860367998480797, -0.005793246440589428, -0.0029816902242600918, 0.019266830757260323, -0.06746120005846024, -0.015057484619319439, 0.018074586987495422, -0.00019988992426078767, 0.03186767175793648, 0.028465023264288902, 0.03237060084939003, -0.014583940617740154, -0.029228927567601204, -0.014579263515770435, -0.03382215276360512, -0.021937264129519463, 0.01027800515294075, -0.015128244645893574, 0.02782180719077587, -0.023898808285593987, -0.04279572144150734, 0.03420870751142502, 0.034597303718328476, 0.026619257405400276, 0.01252603717148304, 0.03698958456516266, -0.01630418375134468, 0.02909114956855774, 0.0015622603241354227, 0.0022224942222237587, -0.022543007507920265, 0.008235008455812931, 0.05202184617519379, -0.001680090674199164, -0.02401997521519661, 0.018459895625710487, -0.02416803501546383, 0.04232072830200195, -0.011731293983757496, -0.01137587707489729, 0.022230863571166992, 0.020901083946228027, -0.030376581475138664, 0.013382922857999802, 0.008861728943884373, -0.05843370407819748, -0.010493959300220013, -0.001061225775629282, 0.05994081869721413, 0.02431991510093212, 0.008081864565610886, -0.026620958000421524, 0.00492538558319211, 0.0031978643964976072, -0.0050019328482449055, 0.020177941769361496, -0.0007861580816097558, 0.017165010794997215, -0.012582005001604557, 0.036227524280548096, -0.00262093055061996, -0.023742550984025, 0.004110035952180624, -0.007935111410915852, -0.0204299483448267, 0.00771596934646368, 0.06221630051732063, -0.020083412528038025, -0.01488383486866951, 0.02831599861383438, 0.01706411875784397, -0.0006622533546760678, 0.005405592266470194, -0.03542201966047287, 0.01244888175278902, 0.04818928241729736, 0.007306610234081745, -0.026612991467118263, -0.028160635381937027, 0.05560535937547684, 0.019545117393136024, -0.03128958120942116, 0.03248850628733635, -0.03014538437128067, -0.06121362745761871, 0.03208962827920914, -0.020047230646014214, -0.04034263268113136, -0.03218880295753479, 0.08396676927804947, -0.038138628005981445, -0.015219156630337238, 0.010800971649587154, -0.018567532300949097, 0.047473348677158356, -0.0013687227619811893, 0.026304442435503006, -0.02831714227795601, -0.014152329415082932, 0.013511980883777142, -0.011400138959288597, -0.024346671998500824, 0.0030330228619277477, -0.0015491826925426722, -0.003108629025518894, 0.013637766242027283, 0.0013423076597973704, 0.0372757762670517, -0.005324018653482199, -0.07881633192300797, -0.008820603601634502, 0.015882013365626335, 0.02426089718937874, -0.02820330671966076, 0.04066547751426697, 0.024613499641418457, -0.0327703021466732, -0.006525176577270031, -0.027428673580288887, 0.03472137078642845, 0.044273387640714645, -0.028832722455263138, 0.018911058083176613, -0.017834438011050224, 0.014814984053373337, -0.00013602514809463173, -0.026643384248018265, -0.002514534629881382, -0.030078163370490074, 0.03949638083577156, 0.028643086552619934, -0.026498954743146896, -0.013557957485318184, 0.0012038693530485034, 0.014411862939596176, -0.020341360941529274, -0.007220852188766003, 0.032870445400476456, -0.04287448152899742, -0.02157331258058548, -0.009486435912549496, 0.052508678287267685, 0.020255008712410927, -0.056601382791996, 0.0028613151516765356, -0.009750272147357464, 0.0438985675573349, 0.04154438152909279, 0.05201461911201477, 0.027536725625395775, -0.01595449447631836, -0.0009964153869077563, 0.026690632104873657, 0.03277791291475296, 0.002563278889283538, -0.004065208602696657, 0.09799296408891678, 0.01148991473019123, 0.039205510169267654, 0.033271048218011856, 0.009044620208442211, -0.058035314083099365, -0.004053932148963213, -0.03180631250143051, 0.008084204979240894, -0.04123837500810623, 0.03293099254369736, -0.015265910886228085, -0.0055493987165391445, 0.011470718309283257, 0.042408909648656845, 0.0699092373251915, -0.010095564648509026, -0.008740340359508991, 0.027349190786480904, -0.00040005086339078844, 0.00719043193385005, 0.010461855679750443, 0.001532750204205513, -0.004103404935449362, 0.01905660890042782, 0.004704215098172426, -0.010318335145711899, -0.03100135549902916, 0.028903236612677574, -0.0170344989746809, -0.03946941718459129, -0.010382450185716152, -0.03721102327108383, 0.03916173055768013, -0.011016642674803734, 0.002780588809400797, 0.01569369062781334, 0.022125981748104095, 0.019108092412352562, 0.006905954331159592, 0.0013114867033436894, 0.05199694633483887, 0.002014369936659932, 0.030332567170262337, 0.07067693024873734, -0.019598249346017838, 0.04447499290108681, 0.04077688604593277, 0.04162871837615967, 0.04527733102440834, -0.004176318179816008, 0.001229267567396164, 0.027878936380147934, -0.0013774184044450521, -0.01403164491057396, 0.012063578702509403, -0.019923916086554527, -0.06139250844717026, -0.08120764791965485, 0.004574572667479515, 0.06395384669303894, 0.009919906035065651, 0.02523542381823063, 0.009252628311514854, -0.0007382765761576593, -0.02603861503303051, 0.003916765097528696, -0.03601938113570213, -0.003031371161341667, 0.007255209144204855, 0.04405556991696358, -0.004436848685145378, 0.009981258772313595, -0.05258098244667053, 0.05378074198961258, -0.04672805964946747, -0.04013074189424515, 0.04919306933879852, 0.03130747750401497, 0.010230829939246178, -0.0044519067741930485, -0.04715476930141449, -0.025694213807582855, 0.011119289323687553, -0.023853128775954247, -0.01952666975557804, -0.03653820604085922, -0.02109842747449875, -0.05883099138736725, -0.046360891312360764, 0.011430648155510426, 0.008176129311323166, -0.030288977548480034, 0.015364604070782661, 0.005891871172934771, 0.07368245720863342, 0.023261329159140587, 0.01013461034744978, -0.01835421845316887, 0.01601725071668625, 0.002078925957903266, -0.016667375341057777, 0.06288739293813705, -0.026717759668827057, -0.013642989099025726, 0.007285513915121555, -0.00008208328654291108, 0.0119958920404315, -0.009485275484621525, 0.023712219670414925, -0.035473864525556564, -0.0031301002018153667, 0.05803700536489487, -0.05434894934296608, 0.03055240586400032, -0.008201738819479942, -0.012709789909422398, 0.002768506994470954, 0.002514009829610586, 0.03343265876173973, 0.017238499596714973, 0.034102920442819595, 0.019283918663859367, 0.012079200707376003, 0.03651480749249458, 0.031965065747499466, 0.006753042805939913, 0.014663738198578358, -0.0239879097789526, -0.006553896702826023, -0.007303270976990461, -0.013532803393900394, -0.0453486330807209, -0.05284402146935463, -0.03557433560490608, -0.04898272827267647, -0.05013976991176605, 0.028421975672245026, -0.006301099434494972, -0.027203567326068878, -0.013141447678208351, 0.0038151880726218224, -0.025968613103032112, -0.04193040728569031, 0.01770496740937233, -0.002114159520715475, 0.0013567080022767186, 0.024360310286283493, -0.0289801936596632, 0.03451427444815636, 0.014368939213454723, 0.008561015129089355, -0.01995365135371685, -0.035530123859643936, -0.004816884640604258, 0.019949570298194885, -0.018089659512043, 0.002466327976435423, -0.0068866717629134655, -0.015442324802279472, -0.030379822477698326, 0.031752441078424454, 0.0009152114507742226, 0.0032908846624195576, 0.00040097933379001915, -0.023739999160170555, -0.025035114958882332, 0.011544223874807358, -0.013099007308483124, 0.006352540105581284, -0.025280214846134186, 0.014567608945071697, 0.058522727340459824, -0.022683624178171158, 0.04673503339290619, 0.039393920451402664, 0.014611414633691311, -0.0420784093439579, -0.025850702077150345, -0.013889788649976254, -0.007885809056460857, -0.021693382412195206, 0.01822875253856182, 0.010816141031682491, -0.014110052026808262, 0.007061411160975695, 0.017210686579346657, 0.0088588772341609, 0.0060433279722929, 0.023281222209334373, 0.04347885027527809, -0.03632853180170059, -0.0313662625849247, 0.04109807312488556, 0.04738471657037735, -0.050894107669591904, 0.002719129668548703, 0.018663356080651283, -0.006656881421804428, 0.031191688030958176, -0.04575188830494881, -0.01141042448580265, 0.021623576059937477, -0.017700906842947006, 0.002693425863981247, -0.03944959118962288, -0.040319062769412994, -0.022759420797228813, 0.01178666576743126, -0.03858645632863045, -0.01473849918693304, -0.0168557520955801, 0.025200046598911285, 0.028707826510071754, -0.016342515125870705, -0.031079759821295738, 0.018821585923433304, -0.002784361829981208, 0.03364896774291992, -0.02285490743815899, -0.02756212092936039, 0.0016678525134921074, 0.00011678725422825664, 0.059815794229507446, -0.017235176637768745, 0.0592007078230381, -0.03134952858090401, 0.037911392748355865, 0.011340162716805935, -0.04465210810303688, -0.015814930200576782, 0.012245109304785728, 0.016339443624019623, -0.04519146308302879, -0.01401463896036148, -0.005637700203806162, 0.014410868287086487, 0.011630898341536522, 0.031082462519407272, 0.012981954030692577, -0.015800349414348602, 0.028149519115686417, -0.010409289039671421, 0.004438748583197594, -0.010702426545321941, -0.025833556428551674, -0.0024212938733398914, 0.012894093059003353, 0.023945195600390434, -0.042718324810266495, -0.0235456433147192, -0.07688099890947342, 0.0000803282528067939, -0.017173882573843002, -0.03064374253153801, -0.04760759696364403, -0.011071736924350262, 0.013754491694271564, -0.01809973642230034, -0.03757338598370552, 0.08345208317041397, 0.03128397837281227, -0.041174352169036865, -0.019447164610028267, -0.028292575851082802, -0.009065532125532627, 0.03879886865615845, 0.03693341836333275, -0.0228294488042593, 0.060335662215948105, -0.01691504754126072, 0.0005810250877402723, -0.011186660267412663, -0.008790126070380211 ]
Deprecation of Git Authentication using password
Sylvestre
August 25, 2023
password-git-deprecation
announcement, security
https://huggingface.co/blog/password-git-deprecation
# Hugging Face Hub: Important Git Authentication Changes Because we are committed to improving the security of our services, we are making changes to the way you authenticate when interacting with the Hugging Face Hub through Git. Starting from October 1st, 2023, we will no longer accept passwords as a way to authenticate your command-line Git operations. Instead, we recommend using more secure authentication methods, such as replacing the password with a personal access token or using an SSH key.
[ -0.011416041292250156, 0.027427569031715393, 0.04424477368593216, -0.04360083118081093, 0.04757727310061455, 0.02155197784304619, 0.02911529876291752, 0.07573606073856354, -0.02337491884827614, -0.08846375346183777, -0.10202991217374802, 0.042480725795030594, -0.06847366690635681, 0.07535484433174133, -0.06237003952264786, -0.04531034082174301, 0.026064282283186913, -0.010563931427896023, -0.04712492227554321, 0.04476562514901161, 0.03125521540641785, -0.06900794059038162, 0.03549256920814514, -0.05306561663746834, -0.041452355682849884, -0.04701667279005051, 0.04054651036858559, -0.006385128945112228, 0.008246212266385555, 0.027418451383709908, -0.07838734984397888, -0.07667035609483719, 0.04774961620569229, -0.04666009545326233, 0.07029815763235092, 0.049012307077646255, -0.1287725269794464, 0.03986445814371109, 0.04834890738129616, 0.052887290716171265, -0.03176493942737579, -0.027977103367447853, -0.030799031257629395, 0.010316427797079086, -0.04790231212973595, -0.03189057484269142, -0.12121675908565521, 0.07077483087778091, -0.02954297699034214, -0.014229989610612392, -0.09848260134458542, 0.04600817710161209, -0.009458956308662891, -0.05996596813201904, 0.02781085856258869, -0.04820215329527855, -0.034046970307826996, -0.09135245531797409, -0.0063175964169204235, 0.03835116699337959, 0.044620659202337265, -0.06656843423843384, -0.030074195936322212, 0.04560406878590584, 0.019095975905656815, -0.007361277937889099, -0.006110323127359152, -0.06329402327537537, -0.058113161474466324, 0.013721148483455181, 0.04888676851987839, 0.04200132563710213, -0.029049735516309738, -0.026756444945931435, -0.007095798384398222, -0.05003637075424194, 0.006974187213927507, 0.058079350739717484, 0.05250462144613266, 0.00993996299803257, 0.044759877026081085, -0.015278277918696404, -0.028333613649010658, 0.01916823536157608, 0.01193753071129322, 0.05969540402293205, 0.026689020916819572, -0.06975840032100677, -0.04198075458407402, 0.05112910643219948, -0.002525554969906807, -0.032359808683395386, -0.03934227302670479, 0.019747285172343254, 0.0722208246588707, 0.018354397267103195, -0.025348277762532234, 0.006015507038682699, -0.01573282480239868, -0.03105947934091091, -0.06854209303855896, -0.07022983580827713, -0.027717288583517075, -0.08012893050909042, -0.08326223492622375, -0.00431726174429059, -0.02262420766055584, -0.052429892122745514, -0.016565268859267235, -0.05978687107563019, 0.04805238917469978, 0.011450610123574734, 0.08616407215595245, 0.0314389243721962, -0.01094880048185587, 0.0582343190908432, -0.030581464990973473, -0.08536768704652786, -0.009995758533477783, 0.04073481261730194, 0.015709666535258293, 0.07855479419231415, -0.029610447585582733, 0.000685154227539897, 0.03753077611327171, 0.03411344066262245, 0.00034785602474585176, -0.019534023478627205, 0.034741926938295364, -0.1033710166811943, -0.001018496579490602, 0.0112737026065588, 0.05275754630565643, -0.05071815475821495, 0.0003218218917027116, -0.011927305720746517, 0.0058167846873402596, -0.09369315952062607, 0.07028652727603912, 0.008996894583106041, 0.006806652527302504, 0.046734634786844254, 0.026900678873062134, -0.000715650909114629, 0.014036186970770359, 0.01622394658625126, -0.06441983580589294, 0.06242017075419426, 0.02493629790842533, 0.020039835944771767, 0.010703304782509804, 0.014373506419360638, -0.0208418108522892, -0.0656871646642685, -0.02239024080336094, 0.015047091990709305, -0.020512547343969345, 0.021593058481812477, -0.013722660019993782, 0.000963186495937407, 0.0027794912457466125, 0.003103118622675538, -0.05769273638725281, -0.010521548800170422, 0.05366704612970352, 0.02344808727502823, 0.02460823394358158, -0.0333150178194046, 0.03725053369998932, 0.030797433108091354, 0.03747282922267914, -0.057118553668260574, 0.01521970797330141, -0.07338635623455048, 0.08664267510175705, 0.07297404110431671, -0.0008135102107189596, 0.03515760600566864, -0.005302050616592169, -0.010483451187610626, -0.01608416996896267, 0.12239169329404831, 0.03331104293465614, 0.06642742455005646, 0.03415052592754364, -0.06396961212158203, -0.07507839053869247, 0.023081403225660324, 0.06935001909732819, 0.03257104381918907, -0.039105020463466644, -0.01083246897906065, 0.05814199522137642, -0.016230164095759392, 0.065918929874897, 0.03264947608113289, -0.007516559679061174, 0.08005808293819427, 0.023945188149809837, 0.0217091366648674, 0.004171185195446014, -0.024493088945746422, -0.004362195264548063, -0.04876229166984558, 0.02310212142765522, 0.05997263640165329, 0.019533421844244003, -0.07410163432359695, -0.008758015930652618, 0.040655240416526794, 0.03797245770692825, -0.033025458455085754, 0.010834836401045322, 0.0022605732083320618, 0.027838999405503273, -0.01577318273484707, -0.054573606699705124, -0.031145337969064713, 0.019318563863635063, -0.01219961792230606, 0.12360525131225586, 0.010068278759717941, 0.002702483907341957, 0.0769449770450592, -0.03377528116106987, 0.045205723494291306, 0.052323099225759506, 0.07774735242128372, 0.11034107208251953, -0.01533184852451086, -0.06758058071136475, -0.1212545707821846, -0.02791004255414009, -0.0022808508947491646, -0.0020071822218596935, -0.03170422464609146, 0.0021088076755404472, -0.07899242639541626, -0.021404653787612915, 0.007973561994731426, -0.03685798496007919, -0.052770864218473434, 0.08019015938043594, 0.008112271316349506, 0.03534436225891113, -0.010667338036000729, 0.0854882150888443, -0.0019895487930625677, -0.020520180463790894, -0.01474900171160698, -0.09595482796430588, 0.022926531732082367, 0.009757681749761105, 0.015499832108616829, 0.05714414641261101, 0.026680542156100273, -0.009523389860987663, -0.021189600229263306, -0.04214156046509743, 0.020660612732172012, -0.007367574609816074, -0.0191841721534729, -0.04526323825120926, -0.03774352744221687, -0.047327157109975815, 0.005406482145190239, 0.005525681655853987, -0.0023065521381795406, -0.03617756441235542, -0.011582735925912857, 0.06900566816329956, -0.06821586936712265, 0.0018411477794870734, 0.007918245159089565, -0.01243360061198473, 0.012463160790503025, 0.018386611714959145, 0.014979247935116291, -0.01015209686011076, 0.011368593201041222, 0.010924180969595909, -0.04998914152383804, 0.022489579394459724, 0.028594983741641045, -0.012298590503633022, 0.018605800345540047, -0.005185420159250498, -0.04423496127128601, -0.004116610623896122, 0.0029500427190214396, -0.002051636343821883, 0.04139666631817818, -0.02870144695043564, 0.029867075383663177, -0.024161284789443016, 0.033451732248067856, 0.02248482219874859, -0.03064856491982937, -0.0264456607401371, 0.049872204661369324, 0.007185819558799267, -0.03213281184434891, 0.026302520185709, -0.037966471165418625, -0.029289253056049347, 0.03546316549181938, -0.0032080919481813908, -0.03085843287408352, -0.08349483460187912, -0.06902236491441727, -0.020207466557621956, 0.03699922561645508, -0.03746563568711281, 0.018656589090824127, 0.04754609987139702, 0.0023047325666993856, -0.016421407461166382, 0.01528127770870924, 0.010966840200126171, 0.005432379897683859, 0.008551215752959251, 0.020931560546159744, -0.06804682314395905, -0.028390593826770782, -0.011974377557635307, -0.03286701440811157, 0.018247606232762337, -0.045054834336042404, -0.03057512640953064, 0.015032552182674408, 0.011089809238910675, -0.034299399703741074, -0.005076578818261623, -0.03624208644032478, 0.06791745871305466, 0.0105430344119668, 0.025962907820940018, -0.04947906732559204, 0.053904224187135696, -0.04285099729895592, -0.00663365051150322, 0.009435967542231083, -0.060050107538700104, -0.0007886546081863344, 0.028778821229934692, 0.002617270452901721, 0.047865789383649826, -0.0005658938898704946, 0.03703151270747185, 0.03165960684418678, -0.010222689248621464, -0.025042220950126648, -0.01366861630231142, -0.02758171223104, -0.020273463800549507, -0.03145314007997513, 0.018834538757801056, -0.018091894686222076, -0.01844218373298645, 0.03049592673778534, -0.003552896436303854, 0.04133179038763046, 0.03354375809431076, 0.019166314974427223, -0.0023790867999196053, 0.03353135660290718, -0.012497063726186752, -0.006909615825861692, -0.027405021712183952, 0.021342389285564423, 0.018909506499767303, -0.06843864172697067, -0.004999273922294378, 0.042032789438962936, -0.024110160768032074, 0.0049142856150865555, 0.005252140574157238, 0.0011503384448587894, 0.00790354423224926, 0.015064663253724575, -0.01921193301677704, 0.0049962191842496395, -0.01751154661178589, -0.05577661469578743, -0.032543033361434937, -0.048530519008636475, 0.06573566049337387, 0.024055715650320053, -0.004986535292118788, -0.020870937034487724, 0.0353509783744812, 0.02737078256905079, -0.01119752787053585, -0.01890842244029045, 0.004161634016782045, 0.01935693994164467, -0.006889169104397297, 0.036551352590322495, -0.024615511298179626, -0.012864634394645691, 0.013198066502809525, -0.03146602213382721, 0.013829223811626434, 0.003563601290807128, 0.04772567376494408, 0.024867629632353783, -0.02584908902645111, 0.01011272706091404, 0.00042578624561429024, -0.026580439880490303, -0.026142287999391556, -0.021163271740078926, 0.014814609661698341, 0.06325352191925049, 0.01340858917683363, -0.012913060374557972, -0.004821290262043476, 0.0365554615855217, 0.013839156366884708, -0.010417191311717033, 0.00893545150756836, -0.03782033547759056, -0.02230014093220234, 0.019840022549033165, 0.0068236785009503365, -0.0005568865453824401, -0.03502446785569191, 0.06947162747383118, -0.049057524651288986, 0.02926092967391014, 0.021808544173836708, 0.002833872102200985, 0.07537418603897095, 0.02261943742632866, 0.0018930700607597828, -0.005902551580220461, -0.012973925098776817, -0.022900564596056938, -0.02117002010345459, 0.012620427645742893, 0.01528195571154356, -0.024913132190704346, 0.007255189586430788, 0.023041605949401855, 0.00816423911601305, 0.03264810889959335, -0.034046269953250885, -0.021974176168441772, -0.04667410999536514, 0.012165418826043606, 0.03866046294569969, -0.02737424708902836, 0.0241446141153574, 0.014213962480425835, -0.0431237667798996, -0.01207172404974699, -0.015326145105063915, 0.03248103708028793, 0.017416169866919518, -0.022617662325501442, 0.007113460451364517, -0.00713388854637742, 0.04524298757314682, -0.015149193815886974, -0.03235433250665665, 0.016073616221547127, -0.024394406005740166, 0.023989804089069366, 0.007914746180176735, 0.004652020521461964, 0.012752655893564224, 0.012045592069625854, 0.006984898820519447, 0.0057763452641665936, -0.0072890534065663815, -0.023928575217723846, 0.0028167180716991425, -0.015017538331449032, 0.000930845330003649, 0.045673906803131104, 0.0215008407831192, -0.04705312103033066, -0.009838186204433441, 0.01655307598412037, 0.060447808355093, 0.018235284835100174, 0.014228628017008305, 0.028582267463207245, -0.01245811115950346, 0.010616875253617764, 0.030973125249147415, 0.018624138087034225, 0.02507493458688259, 0.017920251935720444, 0.06432873755693436, 0.06067477911710739, -0.001021136180497706, 0.022116532549262047, 0.009014774113893509, -0.046049073338508606, -0.0018751878524199128, -0.016381675377488136, 0.028028210625052452, -0.02475636638700962, 0.013580393977463245, 0.01144826877862215, 0.008986972272396088, 0.03429004177451134, 0.0321374349296093, 0.07185578346252441, -0.036535460501909256, 0.015202575363218784, 0.023789184167981148, -0.03121480531990528, -0.007700896356254816, 0.036707911640405655, -0.0010563614778220654, -0.02273806929588318, 0.021424943581223488, 0.01040940172970295, 0.016791056841611862, -0.03130323439836502, 0.03519533574581146, -0.0030519054271280766, -0.05070849135518074, -0.005050690844655037, -0.026221929118037224, 0.013624870218336582, -0.0171424001455307, 0.0014964687870815396, -0.049281250685453415, -0.014346781186759472, 0.03832502290606499, -0.02826315350830555, -0.002879468025639653, 0.012469991110265255, 0.02794516831636429, -0.0037949897814542055, 0.06421614438295364, 0.018291672691702843, 0.01581575535237789, 0.01927533932030201, 0.003117440966889262, 0.026677479967474937, 0.006880100816488266, 0.008939327672123909, 0.025077631697058678, -0.0068825180642306805, -0.011480783112347126, 0.003089207224547863, -0.009618693962693214, -0.013604937121272087, -0.0629110038280487, 0.016289936378598213, 0.05696329474449158, 0.0050423708744347095, 0.02664043940603733, 0.014847577549517155, -0.0027945437468588352, 0.010763969272375107, -0.014655661769211292, 0.009660735726356506, 0.009982820600271225, 0.012483044527471066, 0.06115638464689255, -0.02117285691201687, -0.0008145561441779137, -0.04263269901275635, 0.04717180132865906, -0.07290978729724884, -0.013379275798797607, 0.016483433544635773, -0.00046248664148151875, 0.022360721603035927, -0.013956249691545963, -0.07562137395143509, -0.015878215432167053, 0.012505839578807354, 0.017783207818865776, -0.00612763362005353, 0.01910664327442646, -0.009087368845939636, -0.03464774042367935, -0.04629124701023102, 0.011734385043382645, 0.018719874322414398, -0.021726146340370178, 0.001890259562060237, -0.00450402544811368, 0.06587269902229309, 0.018323732540011406, 0.011261977255344391, 0.021306267008185387, 0.006183076184242964, 0.05250540375709534, 0.0004036606987938285, 0.07981811463832855, -0.010245051234960556, -0.03612269461154938, 0.039153456687927246, 0.01982298120856285, -0.02560311369597912, 0.00430922769010067, 0.009588856250047684, 0.0008843995747156441, 0.03139076754450798, 0.05010034143924713, -0.031086787581443787, 0.053350504487752914, 0.011046278290450573, 0.02524411678314209, 0.014369047246873379, -0.018635647371411324, 0.039804697036743164, 0.020780619233846664, 0.0413968525826931, 0.03189863637089729, 0.028730347752571106, -0.0072442227974534035, 0.04865732416510582, 0.03235941007733345, 0.03793200105428696, 0.0058357566595077515, 0.041622672230005264, -0.004705483093857765, -0.02665328048169613, -0.028644749894738197, -0.03859955817461014, -0.004910614807158709, -0.01381651684641838, -0.053708191961050034, 0.020054891705513, 0.011782373301684856, 0.01742365211248398, -0.003317419206723571, 0.013925832696259022, -0.0036878471728414297, -0.023090384900569916, -0.004364512395113707, -0.009154204279184341, 0.006940834224224091, 0.011251326650381088, 0.005817637778818607, 0.013264760375022888, 0.03204605355858803, -0.036005087196826935, -0.009764514863491058, -0.04898880794644356, -0.024640526622533798, -0.005156483501195908, -0.03309129923582077, 0.003815858392044902, -0.006188003346323967, -0.004043113440275192, -0.027476344257593155, 0.054343417286872864, -0.01155339926481247, 0.002029030118137598, 0.004463985096663237, -0.0031314135994762182, -0.03137443587183952, -0.008410623297095299, 0.012320845387876034, 0.009565720334649086, -0.00581548223271966, -0.04792680963873863, 0.058984361588954926, -0.013932917267084122, 0.06864595413208008, 0.046567801386117935, 0.04350772872567177, -0.02270011603832245, -0.005280221346765757, 0.002231589052826166, -0.010965166613459587, -0.05842217057943344, 0.03204023092985153, -0.001106546144001186, 0.002512773498892784, 0.024832751601934433, 0.02027084119617939, -0.0017248439835384488, 0.02783283218741417, 0.026825949549674988, 0.05175192654132843, -0.028743401169776917, -0.05157458782196045, 0.06949131935834885, 0.06619195640087128, 0.01601416990160942, -0.005196007899940014, 0.015086219646036625, -0.02307439036667347, 0.03946199268102646, -0.06079230457544327, 0.019495554268360138, -0.004642581567168236, -0.027512263506650925, 0.0015838759718462825, -0.0169842466711998, -0.016272036358714104, -0.02837146632373333, 0.024357348680496216, 0.011379661038517952, -0.028062254190444946, 0.005480502266436815, 0.020538698881864548, 0.01351790502667427, 0.0074926987290382385, 0.01329762116074562, 0.0008447919390164316, 0.05032055079936981, 0.0014874953776597977, -0.010183614678680897, -0.05679958313703537, -0.006593786645680666, 0.013434412889182568, 0.031287066638469696, 0.002808106131851673, 0.010948027484118938, -0.018848687410354614, 0.028863724321126938, -0.01995905488729477, -0.012524653226137161, -0.03036617487668991, 0.021493971347808838, -0.03595037758350372, -0.015111935324966908, -0.02139917016029358, 0.00008062343840720132, 0.017695531249046326, -0.010546352714300156, 0.0349385030567646, -0.005739368498325348, 0.0023705733474344015, 0.01827659271657467, 0.0069419038482010365, -0.0005341820069588721, 0.02873264253139496, -0.029883088544011116, 0.026985300704836845, 0.0018550896784290671, 0.0028252997435629368, -0.030117511749267578, 0.01113659143447876, -0.017670661211013794, 0.030729049816727638, -0.02482260949909687, -0.026430491358041763, -0.03804808855056763, 0.007139692548662424, 0.049009308218955994, -0.010801849886775017, -0.0299757719039917, 0.056183699518442154, -0.009569642134010792, -0.028510184958577156, -0.0036769798025488853, -0.03575824201107025, -0.01573888212442398, 0.013803623616695404, -0.006343200337141752, -0.03766809403896332, 0.015701336786150932, -0.0623391792178154, 0.016102921217679977, -0.05275101587176323, -0.0014521307311952114 ]
Deprecation of Git Authentication using password
Sylvestre
August 25, 2023
password-git-deprecation
announcement, security
https://huggingface.co/blog/password-git-deprecation
Switching to SSH keys Follow our guide to generate an SSH key and add it to your account: https://huggingface.co/docs/hub/security-git-ssh Then you'll be able to update your Git repository using: bash $: git remote set-url origin [email protected]:<repo_path> # see above for the format of the repo path
[ -0.0018253546440973878, 0.023966418579220772, 0.013691273517906666, 0.01455338578671217, 0.055577535182237625, 0.01686357520520687, 0.031993258744478226, 0.07058697938919067, 0.009213064797222614, -0.08857649564743042, -0.09410607069730759, 0.060686711221933365, -0.049315404146909714, 0.029793133959174156, -0.05182658135890961, -0.028653400018811226, -0.00990302488207817, -0.010445287451148033, -0.0719885602593422, 0.02851533144712448, 0.005945765879005194, 0.0021845451556146145, 0.017444400116801262, -0.017670774832367897, -0.03854730725288391, -0.08482346683740616, 0.01815931312739849, 0.021593764424324036, -0.0005271515692584217, 0.011646336875855923, -0.08075978606939316, -0.03704114258289337, 0.03614715486764908, -0.0804198682308197, 0.01595163717865944, 0.08098211884498596, -0.09424971789121628, 0.024379318580031395, 0.017708849161863327, -0.035921044647693634, -0.026578053832054138, -0.014035528525710106, -0.008315126411616802, 0.06347782164812088, -0.03350113704800606, 0.010347646661102772, -0.17705321311950684, 0.06874954700469971, -0.01042842771857977, 0.000265717797446996, -0.07684222608804703, -0.006007013376802206, 0.0114382803440094, -0.0688343197107315, 0.005537821911275387, -0.02427366003394127, -0.05951919034123421, -0.07111034542322159, 0.01310794334858656, -0.01880933716893196, 0.10761404037475586, -0.043268680572509766, -0.022939294576644897, 0.04334854334592819, -0.004008134361356497, 0.023851647973060608, 0.00451695779338479, -0.0012574330903589725, -0.06688205152750015, 0.024996737018227577, 0.055955562740564346, 0.025663655251264572, -0.005238019395619631, -0.04443606734275818, -0.03854094818234444, -0.04751665145158768, -0.027497362345457077, 0.08225094527006149, 0.03393745422363281, 0.06635382026433945, 0.05324823409318924, -0.00568517716601491, -0.06529729068279266, 0.060315195471048355, 0.06903592497110367, 0.048747334629297256, -0.0016532866284251213, -0.020911986008286476, -0.06714838743209839, 0.034373991191387177, 0.03976386785507202, -0.06659918278455734, -0.046691104769706726, 0.0054857670329511166, 0.07010188698768616, -0.027176929637789726, 0.008524153381586075, -0.012397142127156258, 0.004994253162294626, 0.025735707953572273, -0.0333845429122448, -0.055500905960798264, -0.009321396239101887, -0.0746074989438057, -0.00831024069339037, -0.0027412734925746918, -0.03470062464475632, -0.08293309807777405, -0.03040795773267746, -0.07538138329982758, 0.03354427218437195, -0.01469848956912756, 0.0448920801281929, -0.006158928386867046, -0.01534090656787157, 0.047605469822883606, -0.012577131390571594, -0.05594992637634277, 0.02337002009153366, 0.037702493369579315, 0.016240384429693222, 0.09021250903606415, -0.05210339277982712, 0.05036979168653488, 0.06612766534090042, 0.046880047768354416, -0.060929104685783386, -0.036370426416397095, -0.016242695972323418, -0.08037874102592468, 0.06447730958461761, 0.0057946452870965, 0.08779701590538025, -0.012378418818116188, -0.021672304719686508, -0.03260334953665733, 0.027231838554143906, -0.06466947495937347, 0.055744245648384094, -0.014043685048818588, 0.06584520637989044, 0.04756689444184303, -0.002388815628364682, 0.06360320001840591, 0.040974847972393036, 0.04556583613157272, -0.08684264123439789, 0.023797104135155678, 0.029485808685421944, 0.049209825694561005, 0.010482871904969215, 0.05324292927980423, -0.023666730150580406, -0.04369555786252022, -0.010031124576926231, 0.05028921365737915, 0.0037775859236717224, 0.024714574217796326, -0.022064441815018654, -0.004539699759334326, -0.007909213192760944, 0.041418422013521194, -0.07461078464984894, -0.00057268887758255, 0.02136593498289585, 0.009791919961571693, 0.02258376032114029, 0.002900631632655859, -0.009871433489024639, -0.042085446417331696, 0.047841738909482956, -0.07407640665769577, 0.030963486060500145, -0.0417034886777401, 0.075734943151474, 0.08911161869764328, 0.03388224542140961, 0.06403830647468567, -0.012730492278933525, -0.018980832770466805, -0.04030022770166397, 0.07561203092336655, -0.010848252102732658, 0.030392998829483986, 0.023727448657155037, -0.07281342893838882, -0.06930539757013321, 0.0023965865839272738, 0.05136500298976898, -0.01703590713441372, -0.06172560527920723, -0.04365069419145584, 0.08606664091348648, -0.012355531565845013, 0.022749880328774452, -0.012440391816198826, -0.013387545943260193, 0.05343051254749298, 0.03952192887663841, 0.06328921020030975, -0.03554340824484825, -0.00425625778734684, 0.006902631372213364, -0.052182815968990326, -0.013605285435914993, 0.07687985152006149, -0.004166558384895325, -0.09577235579490662, 0.0751916915178299, 0.031046604737639427, -0.00864457432180643, -0.026170173659920692, 0.06775569915771484, -0.042893264442682266, 0.009806008078157902, -0.03632352128624916, -0.05065430700778961, -0.029643122106790543, 0.005591230932623148, 0.04059169441461563, 0.14631561934947968, 0.0371052548289299, 0.011703988537192345, 0.04533793032169342, -0.014026817865669727, 0.03881664574146271, 0.0414474792778492, 0.07826822251081467, 0.09349265694618225, 0.0021188349928706884, -0.0709746778011322, -0.09072469174861908, -0.05728358030319214, 0.0035111538600176573, 0.02776135317981243, -0.04203270003199577, 0.011826512403786182, -0.06586937606334686, -0.01149380300194025, 0.0074949623085558414, -0.026350112631917, -0.04318620264530182, 0.05650520697236061, -0.03328824043273926, 0.006805222947150469, -0.024730104953050613, 0.034841276705265045, -0.0011518587125465274, -0.019521107897162437, 0.004046114161610603, -0.08252325654029846, -0.0070076920092105865, 0.013869146816432476, 0.018288422375917435, 0.07587777823209763, 0.017942538484930992, -0.012518173083662987, -0.0017627645283937454, -0.0261844415217638, 0.05546736344695091, 0.0008460915414616466, 0.023488309234380722, -0.050765980035066605, -0.019156619906425476, -0.04505792632699013, 0.003017445793375373, -0.012318210676312447, -0.0038224232848733664, -0.02541710063815117, -0.016473690047860146, 0.018668195232748985, -0.02726217918097973, 0.034933093935251236, 0.010570759885013103, -0.010562727227807045, 0.026019176468253136, 0.008666802197694778, 0.002937830751761794, 0.00379594205878675, -0.014732039533555508, 0.057677075266838074, -0.03648361936211586, -0.012867909856140614, 0.044995058327913284, 0.04139789566397667, 0.03008592315018177, 0.00955199170857668, -0.05604250356554985, -0.013495050370693207, 0.0026361404452472925, 0.01200051512569189, 0.03517888858914375, 0.016623569652438164, 0.009008478373289108, -0.017878491431474686, 0.008112478069961071, 0.027823908254504204, -0.020551947876811028, -0.009642386808991432, 0.02587251178920269, 0.000740205287002027, -0.01259604748338461, 0.04039989039301872, -0.0435807928442955, -0.013482118025422096, 0.046746209263801575, -0.021193578839302063, -0.030231758952140808, -0.10070379078388214, -0.04360133036971092, -0.02767624519765377, 0.055022068321704865, -0.006690355483442545, -0.03182224929332733, 0.035670485347509384, 0.028541823849081993, 0.003405623370781541, -0.007696700282394886, -0.004988614469766617, 0.009612121619284153, 0.032907720655202866, -0.01357431523501873, -0.04279191792011261, -0.052272289991378784, -0.0010696512181311846, -0.006761789787560701, 0.0100864227861166, -0.0498175285756588, -0.0725768432021141, 0.0074717761017382145, -0.021805157884955406, -0.012563792057335377, 0.03002423234283924, -0.03712693601846695, 0.050288937985897064, 0.03384027257561684, 0.012211469933390617, -0.04444608464837074, 0.03194146975874901, -0.023831387981772423, 0.00979120098054409, 0.00977233611047268, -0.029652990400791168, -0.008091909810900688, 0.04712142050266266, -0.025121401995420456, 0.016586683690547943, 0.030177554115653038, 0.004792152438312769, -0.0057852487079799175, -0.0017230978701263666, -0.015101083554327488, 0.005890313535928726, -0.05066186189651489, -0.014612028375267982, -0.013926355168223381, 0.02928047813475132, -0.012091265991330147, -0.03971821442246437, -0.007970570586621761, 0.013056937605142593, 0.022232694551348686, 0.030360527336597443, 0.027758723124861717, -0.01365396473556757, 0.030886059626936913, -0.01271941140294075, 0.01418618019670248, -0.03785538673400879, -0.006243763491511345, -0.010464677587151527, -0.0703824833035469, -0.007782003376632929, 0.022980747744441032, -0.029177911579608917, 0.02415146864950657, -0.0017595314420759678, 0.02278323285281658, -0.014627586118876934, 0.0035572797060012817, -0.01637420617043972, 0.013642211444675922, -0.030665135011076927, -0.05561332777142525, -0.03978889063000679, -0.01652028225362301, 0.07670390605926514, 0.012325797230005264, -0.02042725309729576, -0.008606748655438423, 0.016587506979703903, -0.005766600836068392, -0.020275773480534554, 0.002920295111835003, 0.015385457314550877, -0.013927559368312359, 0.015634292736649513, 0.027548765763640404, -0.03932713717222214, -0.023076903074979782, 0.0057046785950660706, -0.06336984783411026, -0.017624273896217346, -0.008296488784253597, 0.02539386786520481, -0.012947152368724346, -0.008093266747891903, 0.03252401575446129, 0.0004651989438571036, -0.0055654230527579784, -0.027543099597096443, -0.019637713208794594, 0.03594280779361725, 0.05975910648703575, -0.00042659160681068897, -0.03888330236077309, -0.03861672431230545, -0.005365634802728891, -0.02478526346385479, -0.04006728157401085, -0.0091931764036417, -0.032265156507492065, -0.025084294378757477, 0.03611921891570091, -0.018587350845336914, -0.029179580509662628, -0.040844522416591644, 0.07169964909553528, -0.026559369638562202, 0.026372946798801422, 0.011662879958748817, -0.022502435371279716, -0.012503458186984062, 0.05861135199666023, 0.02074531465768814, 0.02492349036037922, -0.02464989945292473, -0.0033563715405762196, -0.02215064875781536, -0.0008472118061035872, 0.02737835794687271, 0.017858918756246567, -0.004034433048218489, 0.006082475651055574, 0.025040611624717712, 0.015950553119182587, -0.007310188841074705, -0.04820125922560692, -0.008853975683450699, 0.0021946218330413103, 0.04388466849923134, -0.046232324093580246, 0.0165255144238472, 0.05898362770676613, -0.04910333827137947, -0.011188902892172337, -0.0024015295784920454, 0.026806501671671867, 0.039763420820236206, -0.0020237797871232033, -0.011804385110735893, 0.0407455712556839, 0.030174024403095245, -0.005450479686260223, -0.0411214716732502, -0.0036320635117590427, -0.01300015952438116, 0.051953330636024475, -0.05141644924879074, -0.006976868491619825, 0.01030160952359438, 0.02482127770781517, 0.0011682137846946716, 0.008889767341315746, 0.0352625735104084, -0.04501074552536011, -0.027793822810053825, -0.019768644124269485, -0.0037049604579806328, 0.037771180272102356, 0.008370387367904186, -0.053858302533626556, -0.021962065249681473, 0.042407240718603134, 0.043728653341531754, 0.007859084755182266, 0.02154131606221199, 0.0254853293299675, 0.0004436488961800933, 0.0009535698918625712, 0.019988272339105606, 0.028794093057513237, 0.006518824957311153, -0.009852626360952854, 0.08471103012561798, 0.04351745545864105, 0.0224379301071167, -0.007762234192341566, -0.016054924577474594, -0.005630232393741608, 0.018475499004125595, -0.041359446942806244, 0.02928408421576023, -0.02752915397286415, 0.017708290368318558, -0.022449441254138947, 0.000024520724764443003, 0.015637850388884544, 0.03324121981859207, 0.097457654774189, -0.023653939366340637, 0.0036812589969486, 0.020139118656516075, -0.006225451361387968, -0.0028063138015568256, 0.02406654693186283, 0.02200431376695633, 0.00984610989689827, 0.004068760666996241, -0.0015975056448951364, -0.014505699276924133, -0.04952459782361984, 0.027078956365585327, -0.013052941299974918, -0.02965601347386837, 0.019018348306417465, 0.0012397862737998366, 0.045312102884054184, -0.015327121131122112, -0.006495281122624874, 0.006265131291002035, 0.023868223652243614, -0.012542570941150188, -0.016310809180140495, 0.008459803648293018, 0.07711080461740494, -0.0007690044585615396, 0.013395801186561584, 0.035419922322034836, -0.022711364552378654, 0.031039094552397728, 0.037646643817424774, 0.01927870884537697, 0.039282623678445816, 0.006525153759866953, -0.012806017883121967, 0.00582086481153965, -0.0014276864239946008, 0.0016157382633537054, -0.004651036579161882, -0.009411594830453396, -0.01630398817360401, -0.03091985173523426, 0.004981354810297489, 0.07891558855772018, 0.0462467260658741, 0.03673730790615082, 0.013922696933150291, 0.012827996164560318, 0.009352175518870354, 0.011849927715957165, -0.006504841148853302, -0.012995092198252678, 0.02590753138065338, 0.021051395684480667, 0.029347514733672142, -0.010815163142979145, -0.019252948462963104, 0.03924176096916199, -0.061154384166002274, 0.0022851754911243916, 0.05851416662335396, 0.01364977564662695, 0.0009819180704653263, -0.015757523477077484, -0.04817952960729599, -0.013579849153757095, 0.04675466567277908, -0.002965973224490881, -0.001191972172819078, 0.03919854387640953, -0.03004157356917858, -0.044661689549684525, -0.029510922729969025, 0.034489259123802185, 0.021599041298031807, -0.05119260773062706, 0.04801342263817787, -0.0004051084688398987, 0.045961685478687286, 0.028438778594136238, -0.010843749158084393, 0.012077421881258488, 0.01621101051568985, 0.06100022420287132, 0.008401946164667606, 0.07998759299516678, 0.015993034467101097, -0.01640847884118557, 0.0036237183958292007, 0.008414898999035358, -0.014925878494977951, -0.0022746101021766663, 0.02456761710345745, 0.0015986340586096048, -0.005548373330384493, 0.02809227630496025, -0.040252625942230225, 0.026714932173490524, 0.01635272055864334, 0.01656646467745304, 0.003899933537468314, -0.027837511152029037, 0.02163015864789486, -0.0073850080370903015, 0.021763872355222702, 0.06489928066730499, 0.02968897856771946, 0.002863918663933873, 0.02857351489365101, 0.010318515822291374, -0.007010344881564379, -0.0013125048717483878, 0.005509147886186838, -0.002709572669118643, -0.033059440553188324, -0.03357456251978874, -0.022673754021525383, 0.02781587466597557, -0.019863136112689972, -0.042485058307647705, 0.0211630892008543, 0.026058711111545563, 0.016507349908351898, -0.0405782125890255, 0.03502112627029419, -0.008113048039376736, -0.045776162296533585, 0.02075548842549324, 0.018642500042915344, -0.011946037411689758, 0.023977793753147125, -0.0065995012409985065, 0.0393621064722538, 0.063423290848732, -0.01160482782870531, -0.02371324971318245, -0.039401840418577194, -0.04902036860585213, -0.009788601659238338, -0.008070051670074463, 0.0072026001289486885, -0.03310546278953552, -0.01882513053715229, -0.015667112544178963, 0.038346633315086365, 0.0064498307183384895, 0.007860309444367886, 0.04017038270831108, 0.029860977083444595, -0.03482739254832268, 0.021668976172804832, -0.013081809505820274, 0.003711923025548458, -0.0030304803512990475, 0.0018644690280780196, 0.038138311356306076, -0.008338609710335732, 0.07316198945045471, 0.01592705026268959, 0.019590236246585846, -0.02707652747631073, -0.010654724203050137, 0.02534339390695095, -0.028504105284810066, -0.046884823590517044, 0.05030384659767151, -0.006404905114322901, -0.011107672937214375, 0.028994502499699593, 0.013320785015821457, 0.016191763803362846, 0.01995806209743023, -0.005030403379350901, 0.0676388293504715, 0.010071796365082264, -0.006922764237970114, 0.041865259408950806, 0.052608244121074677, 0.0066323853097856045, -0.0012873333180323243, 0.041608285158872604, 0.012389719486236572, 0.031265173107385635, -0.03269455209374428, 0.038688790053129196, -0.04402942955493927, -0.020618075504899025, -0.022722771391272545, -0.06544429808855057, -0.03066241927444935, -0.02530682645738125, 0.017740771174430847, 0.012606939300894737, -0.03876253962516785, -0.01794462651014328, 0.0008419300429522991, -0.012038719840347767, -0.01418702770024538, 0.024759791791439056, 0.028541481122374535, 0.021180152893066406, 0.022478677332401276, 0.006251079495996237, -0.03633364662528038, -0.0005167056806385517, -0.007276247721165419, 0.05256406217813492, -0.0026250588707625866, 0.024926353245973587, -0.02474602498114109, -0.00308974995277822, 0.009471430443227291, -0.0001692892546998337, -0.02110261470079422, -0.000532827340066433, -0.015204444527626038, -0.022904686629772186, -0.03659435734152794, 0.016400564461946487, -0.0005411117454059422, -0.0033504439052194357, 0.04248810559511185, -0.009474735707044601, -0.01647374778985977, 0.0041031804867088795, -0.004539212211966515, 0.0003549443499650806, 0.005242174491286278, -0.03828207403421402, 0.038223978132009506, 0.023337142542004585, 0.009565655142068863, -0.01542259007692337, -0.004359295126050711, -0.048500023782253265, 0.037509720772504807, -0.02556602656841278, -0.02199108712375164, -0.006937933620065451, -0.007292282301932573, 0.03487948328256607, -0.04352634772658348, -0.016567204147577286, 0.05150825157761574, -0.01228094007819891, -0.042270250618457794, -0.011520810425281525, 0.009426220320165157, -0.0006055819103494287, 0.012385937385261059, -0.0000453499706054572, -0.03328842669725418, 0.0012975805439054966, -0.023115208372473717, -0.016947438940405846, -0.0562853179872036, 0.014246010221540928 ]
Deprecation of Git Authentication using password
Sylvestre
August 25, 2023
password-git-deprecation
announcement, security
https://huggingface.co/blog/password-git-deprecation
Timeline Here's what you can expect in the coming weeks: - Today: Users relying on passwords for Git authentication may receive emails urging them to update their authentication method. - October 1st: Personal access tokens or SSH keys will be mandatory for all Git operations. For more details, reach out to HF Support to address any questions or concerns at [email protected]
[ -0.006496438756585121, 0.03586845099925995, 0.06151263788342476, 0.0029773612041026354, 0.039243265986442566, 0.017848201096057892, 0.02631007507443428, 0.05422903969883919, -0.031012237071990967, -0.07918725162744522, -0.1197815090417862, 0.06897223740816116, -0.02791902795433998, 0.04985591396689415, -0.07369744032621384, -0.04412587732076645, 0.01920270547270775, -0.027953162789344788, -0.024799436330795288, 0.03544694930315018, 0.03934301435947418, -0.042904578149318695, 0.04704296961426735, 0.021964412182569504, -0.02406514808535576, -0.08014563471078873, 0.03447800129652023, -0.03466922044754028, 0.010582968592643738, 0.017893532291054726, -0.04758001118898392, -0.07864806056022644, 0.05317160487174988, -0.07646604627370834, 0.0035726195201277733, 0.04341624677181244, -0.1153610572218895, 0.002137796487659216, 0.04428008571267128, -0.0014049217570573092, 0.026461996138095856, -0.05131613463163376, -0.029826341196894646, 0.05013812705874443, -0.036156971007585526, -0.013819307088851929, -0.14214147627353668, 0.05738939344882965, -0.003932897932827473, 0.012346029281616211, -0.08442343771457672, 0.04007311910390854, 0.005142719019204378, -0.053375985473394394, 0.03505675122141838, -0.026900388300418854, -0.020657889544963837, -0.05495945364236832, 0.0098300501704216, 0.02641783282160759, 0.06641483306884766, -0.09667937457561493, -0.0669887363910675, 0.00014854811888653785, 0.040394432842731476, -0.039176829159259796, -0.014906659722328186, -0.026269881054759026, -0.03615245223045349, 0.01599714159965515, 0.06605487316846848, 0.022703416645526886, -0.00929153524339199, -0.013851288706064224, 0.010305186733603477, -0.04737295210361481, -0.020837748423218727, 0.05687177553772926, 0.0316324420273304, -0.003232309129089117, 0.02647097408771515, 0.010857641696929932, -0.002827721182256937, 0.034123022109270096, 0.04515763744711876, 0.032948173582553864, 0.042594946920871735, -0.03207014873623848, -0.030344394966959953, 0.028238575905561447, 0.032282061874866486, -0.1000249981880188, 0.014299224130809307, -0.016019625589251518, 0.009250551462173462, -0.01715734414756298, -0.03356746956706047, 0.012024369090795517, -0.0019201947143301368, -0.04456750303506851, -0.04290115460753441, -0.08745457977056503, -0.04083491489291191, -0.07338092476129532, -0.019482066854834557, -0.010329478420317173, -0.06270507723093033, -0.08639927208423615, -0.04246022179722786, -0.06564684957265854, 0.07491206377744675, 0.012167360633611679, 0.08094432204961777, -0.011669045314192772, -0.018705733120441437, 0.030795110389590263, -0.014719490893185139, -0.11188729852437973, 0.02429932728409767, 0.08461964875459671, 0.04825213551521301, 0.08410342037677765, -0.03075665421783924, 0.04400502145290375, 0.04314497858285904, 0.015605504624545574, -0.03392653539776802, -0.02992117404937744, -0.008248741738498211, -0.1276843547821045, -0.03818688169121742, -0.007430019788444042, 0.03304299712181091, -0.048089660704135895, -0.006284272763878107, -0.01551738753914833, 0.010385393165051937, -0.07917775213718414, 0.05145609751343727, 0.0038167655002325773, 0.005118473898619413, 0.031079817563295364, 0.01735571026802063, 0.046254731714725494, 0.06478777527809143, -0.009868231602013111, -0.03123423084616661, 0.05371170863509178, -0.010497678071260452, 0.02514701895415783, -0.025033507496118546, 0.041770875453948975, -0.02218148112297058, 0.004427306354045868, 0.03417087346315384, 0.02634504809975624, 0.007670959457755089, -0.014232884161174297, -0.002418799325823784, -0.028343049809336662, -0.016558608040213585, 0.018416760489344597, -0.03737838938832283, -0.001111748511902988, 0.04874732717871666, 0.014755922369658947, 0.009206459857523441, 0.01185835525393486, 0.051240332424640656, -0.011079980991780758, 0.06224982067942619, -0.04524579271674156, 0.020798934623599052, -0.053637389093637466, 0.05097666382789612, 0.07699032127857208, 0.007852205075323582, 0.002198712434619665, 0.01476831641048193, 0.03594934567809105, -0.02815360017120838, 0.09121372550725937, 0.026917634531855583, 0.06879626959562302, 0.03126021474599838, -0.0956500843167305, -0.0679236575961113, 0.029719281941652298, 0.02411673031747341, 0.046495165675878525, -0.0637698695063591, -0.024525215849280357, 0.06501714885234833, -0.04190928488969803, 0.06912558525800705, -0.044989775866270065, 0.045964810997247696, 0.08905129134654999, 0.04545345529913902, 0.028659995645284653, 0.0010549149010330439, 0.008434864692389965, 0.026317942887544632, -0.06683512777090073, -0.02232273668050766, 0.019108206033706665, -0.023101719096302986, -0.047014523297548294, 0.007238099351525307, 0.03587992489337921, 0.0048965224996209145, -0.03435785695910454, -0.0034972522407770157, -0.009883678518235683, 0.044249024242162704, -0.046568986028432846, -0.02283085510134697, 0.002480319468304515, -0.009312993846833706, -0.06457463651895523, 0.13304001092910767, 0.018886130303144455, 0.01907494105398655, 0.06999621540307999, 0.005733182653784752, 0.02622295543551445, 0.07395315915346146, 0.0487118735909462, 0.07889296859502792, -0.014666831120848656, -0.0625251904129982, -0.09575507044792175, -0.06635496765375137, -0.0038929996080696583, 0.025195203721523285, -0.027394786477088928, -0.025275275111198425, -0.07773328572511673, 0.025579500943422318, -0.009409372694790363, -0.0011037342483177781, -0.010666903108358383, 0.10342095047235489, 0.006543193943798542, -0.00925108976662159, -0.042465560138225555, 0.0807892382144928, -0.007821466773748398, -0.03620719909667969, 0.003414489096030593, -0.07565732300281525, 0.051511552184820175, 0.0002318460465176031, 0.02276022918522358, 0.10982003062963486, -0.002475232118740678, -0.009125594049692154, -0.02234220691025257, -0.03486848995089531, 0.04522167518734932, 0.012349522672593594, -0.013182483613491058, -0.03710205852985382, -0.03467966616153717, -0.05105338245630264, 0.0118488110601902, 0.005293502006679773, -0.008209850639104843, -0.02564813941717148, 0.02368929237127304, 0.027161896228790283, -0.047018054872751236, 0.025889867916703224, 0.008928296156227589, 0.005456652492284775, 0.015916351228952408, 0.04514781013131142, 0.03543337434530258, 0.03578822687268257, -0.009602239355444908, 0.029702065512537956, -0.021148882806301117, 0.023017430678009987, 0.0017952671041712165, 0.0011544941226020455, 0.0002456112706568092, -0.022891376167535782, -0.05654383450746536, -0.025709763169288635, -0.008265062235295773, 0.0034198067151010036, 0.003926713485270739, -0.031421855092048645, 0.00590724591165781, -0.005773923359811306, 0.030902210623025894, 0.002671271562576294, -0.021922223269939423, -0.007288285531103611, 0.05203954502940178, -0.02268017828464508, -0.024120893329381943, 0.02739432454109192, -0.020757552236318588, -0.0016626508440822363, 0.03190287947654724, 0.022641250863671303, -0.0015999064780771732, -0.09364821761846542, -0.03437202423810959, -0.017476769164204597, 0.040482524782419205, -0.03498407080769539, 0.026650402694940567, 0.02826336771249771, 0.03046676144003868, 0.010590852238237858, 0.005917256232351065, -0.005447302479296923, -0.029097633436322212, 0.01709866337478161, -0.014308607205748558, -0.059155140072107315, -0.05342540889978409, 0.014591490849852562, -0.01938447915017605, 0.028589453548192978, -0.04873405396938324, -0.04094035550951958, 0.001141358632594347, -0.020572029054164886, -0.006412070244550705, -0.0004285273898858577, -0.03358522802591324, 0.044489048421382904, 0.021947866305708885, 0.028459789231419563, -0.06042257323861122, 0.04536896198987961, -0.009631671011447906, 0.012245334684848785, 0.039960749447345734, -0.04592195153236389, -0.008150925859808922, 0.014760470949113369, 0.022165097296237946, 0.005400900263339281, 0.04912591353058815, 0.03284398466348648, 0.020540982484817505, -0.019787706434726715, -0.002002553315833211, -0.006191742140799761, -0.0205052699893713, -0.00795595720410347, -0.027768729254603386, 0.013535292819142342, 0.008820188231766224, -0.04259880632162094, 0.03753383085131645, 0.022776981815695763, 0.038384415209293365, 0.020402705296874046, 0.03911111131310463, -0.04082632064819336, 0.015129953622817993, -0.037338145077228546, 0.006682110019028187, -0.022133419290184975, 0.00714538712054491, 0.014441831968724728, -0.02740130014717579, 0.010166690684854984, 0.05882483348250389, -0.02741733379662037, 0.005274263676255941, -0.021422700956463814, 0.016410280019044876, -0.011106178164482117, 0.04146905243396759, -0.03124978393316269, 0.0007763468311168253, -0.008729379624128342, -0.07338181883096695, -0.00663595600053668, -0.03462141752243042, 0.05441409349441528, 0.04222448542714119, -0.00771726667881012, -0.0015632539289072156, 0.006880674045532942, -0.02708105929195881, 0.011721513234078884, -0.011422641575336456, 0.016114922240376472, -0.02859855629503727, 0.02324792556464672, 0.04362958297133446, -0.004748941864818335, -0.028603559359908104, 0.029903043061494827, -0.009949927218258381, -0.011532665230333805, 0.018363049253821373, 0.03790513426065445, -0.021742451936006546, -0.022132888436317444, 0.028899285942316055, 0.012143475003540516, -0.008562680333852768, -0.001773742726072669, -0.018908681347966194, 0.01945175789296627, 0.08829488605260849, -0.01435756403952837, -0.03876632824540138, -0.02499336749315262, 0.06449826806783676, -0.01692275144159794, -0.023702464997768402, 0.02600250206887722, -0.04617709293961525, -0.040361061692237854, 0.018595557659864426, -0.015848957002162933, -0.01719365455210209, -0.025420911610126495, 0.07958657294511795, -0.02054804004728794, 0.020518217235803604, 0.007089545484632254, 0.014880990609526634, 0.08545175939798355, 0.02162001095712185, -0.019940894097089767, -0.012918210588395596, -0.02074931189417839, -0.00602713180705905, -0.016378149390220642, 0.004015197511762381, -0.0054916078224778175, 0.01129243802279234, -0.013827340677380562, 0.07124315202236176, -0.009609170258045197, 0.018387051299214363, -0.0006481772288680077, -0.051800671964883804, -0.016362905502319336, 0.03883614391088486, 0.046034496277570724, -0.018574059009552002, 0.019104838371276855, 0.03823069855570793, -0.025095153599977493, -0.013357811607420444, -0.028523847460746765, 0.032802481204271317, -0.008363122120499611, 0.005192030221223831, -0.015911558642983437, 0.01330212876200676, 0.0237880889326334, -0.00919197965413332, -0.017034457996487617, 0.01285790279507637, -0.01549023948609829, 0.028769968077540398, 0.0031077289022505283, 0.01891266368329525, 0.028867965564131737, 0.004402666352689266, -0.006880245637148619, -0.026208022609353065, -0.01745365373790264, -0.0030929394997656345, -0.049861885607242584, -0.028325628489255905, -0.023361727595329285, 0.04424266889691353, 0.023060474544763565, -0.028410008177161217, 0.009726062417030334, 0.008415475487709045, 0.041008856147527695, 0.014503353275358677, 0.024746088311076164, 0.02708660066127777, 0.012459022924304008, 0.012694049626588821, 0.026999596506357193, 0.023378584533929825, 0.02681783027946949, 0.0077135912142694, 0.09274062514305115, 0.03307382017374039, 0.0073141977190971375, 0.033220626413822174, 0.018102237954735756, -0.01883101649582386, 0.015213713981211185, -0.018052419647574425, 0.015188939869403839, -0.032226771116256714, 0.03213581442832947, 0.008447765372693539, 0.0021822385024279356, 0.007087409496307373, 0.029150474816560745, 0.0789487436413765, -0.011013384908437729, -0.020001627504825592, 0.025094153359532356, -0.02236870676279068, 0.024213621392846107, -0.011636179871857166, 0.01591864600777626, -0.015825185924768448, 0.018836870789527893, -0.00042445812141522765, -0.0005114599480293691, -0.03632558509707451, 0.020803652703762054, -0.01929404027760029, -0.06579185277223587, 0.012092465534806252, -0.016866439953446388, 0.032692793756723404, -0.028080422431230545, 0.01586255244910717, -0.028209034353494644, -0.024265462532639503, 0.03340871259570122, -0.03505546599626541, -0.004768488463014364, 0.028912397101521492, -0.023186473175883293, 0.008835764601826668, 0.039864230901002884, -0.008772775530815125, 0.0325625017285347, 0.02308654971420765, 0.0127446623519063, 0.041878893971443176, -0.011088084429502487, 0.007327624596655369, 0.006262998562306166, 0.010802903212606907, 0.031836651265621185, -0.0176930520683527, -0.010264396667480469, -0.03210359066724777, -0.06470470130443573, 0.04023316875100136, 0.057045336812734604, 0.04902525991201401, 0.0437827929854393, 0.02229292131960392, -0.016587376594543457, 0.01353497989475727, -0.01923207752406597, -0.026702553033828735, -0.02091842330992222, 0.015093376860022545, 0.024827267974615097, -0.01153112854808569, 0.026493515819311142, -0.06092739850282669, 0.02817397192120552, -0.06531158089637756, -0.009153407998383045, 0.04536215588450432, -0.019233429804444313, 0.015026510693132877, -0.015738504007458687, -0.0370735339820385, 0.008170729503035545, 0.026922916993498802, -0.030709555372595787, -0.012775425799190998, -0.005035682115703821, -0.03349584341049194, -0.06359805166721344, -0.06440084427595139, 0.019044093787670135, 0.014569235034286976, 0.0002978623961098492, -0.013920169323682785, -0.011875497177243233, 0.07001005113124847, 0.029231222346425056, 0.01602577418088913, 0.005216879304498434, -0.029735183343291283, 0.028086494654417038, -0.010913104750216007, 0.06843768805265427, -0.0027742087841033936, -0.01992056518793106, 0.027519267052412033, 0.032431405037641525, -0.00698959780856967, -0.002181523246690631, -0.004496796056628227, 0.00012508036161307245, 0.012119614519178867, 0.039667028933763504, -0.017954615876078606, 0.04150768741965294, 0.01714152842760086, -0.014827175065875053, 0.005883051548153162, -0.0037872481625527143, 0.028224699199199677, 0.01301558781415224, 0.04454175382852554, 0.05699601396918297, -0.005996254272758961, 0.021336127072572708, 0.029515115544199944, 0.015750626102089882, 0.03401482477784157, -0.031405434012413025, -0.0030868672765791416, 0.0021306127309799194, -0.053294096142053604, -0.00847313180565834, -0.05528167262673378, -0.024601498618721962, -0.02213991805911064, -0.05638817325234413, 0.00895687285810709, 0.002944680629298091, 0.005365658551454544, -0.010934489779174328, 0.030053049325942993, 0.010878430679440498, -0.021446742117404938, 0.0414445661008358, -0.013449444435536861, 0.0327446386218071, 0.0010090790456160903, -0.011025940999388695, -0.023755962029099464, 0.018020860850811005, 0.010072327218949795, -0.006023493595421314, -0.021156782284379005, 0.005504061933606863, 0.001382820075377822, -0.005657861940562725, 0.017338359728455544, -0.020836222916841507, -0.003927722107619047, -0.01613113097846508, 0.040433984249830246, -0.00998303759843111, -0.004945022985339165, 0.03502574563026428, -0.024377118796110153, -0.036342471837997437, -0.006494143046438694, 0.0005406061536632478, 0.018385689705610275, -0.02247549593448639, -0.011431032791733742, 0.061994768679142, -0.03196604922413826, 0.062289439141750336, 0.03775253891944885, 0.04722956568002701, -0.06700567901134491, -0.004519025329500437, -0.004694489762187004, -0.02377656288444996, -0.03343300521373749, 0.04802965372800827, 0.01462872326374054, -0.027284424751996994, 0.026857489719986916, 0.01002975832670927, -0.01742260716855526, 0.0001717758714221418, 0.01150453370064497, 0.057791344821453094, -0.033580344170331955, -0.04226718842983246, 0.07707890123128891, 0.05241356045007706, -0.01230413094162941, 0.0001374950079480186, 0.032417912036180496, -0.02331249788403511, 0.03878939524292946, -0.0634630024433136, 0.028293471783399582, -0.009726743213832378, -0.0008660563034936786, -0.005180693231523037, -0.02969779632985592, -0.03102824278175831, 0.004040467087179422, 0.03111547976732254, -0.01997092179954052, -0.029244881123304367, 0.009078172035515308, 0.02566850371658802, 0.03095974400639534, -0.002352434443309903, -0.017178639769554138, 0.025952301919460297, 0.029092809185385704, 0.036478497087955475, -0.004660532344132662, -0.0555315800011158, -0.010753454640507698, -0.0011159954592585564, 0.04634738713502884, 0.022247912362217903, 0.024643225595355034, -0.03815670683979988, 0.02990993857383728, 0.007381258066743612, -0.02005353569984436, -0.0531352162361145, 0.01810852810740471, -0.005841128993779421, -0.00974609050899744, 0.015578695572912693, -0.0026748431846499443, 0.005242872051894665, 0.007741008885204792, 0.031524404883384705, 0.015603822655975819, 0.007068929262459278, 0.015986990183591843, 0.01721118949353695, -0.01440160721540451, -0.020827272906899452, -0.0019806218333542347, 0.03310193493962288, 0.002380914753302932, 0.0008102423162199557, -0.02892419323325157, -0.02703547105193138, -0.04648825526237488, 0.013837247155606747, -0.01327210757881403, -0.021318085491657257, -0.03358199819922447, 0.023012220859527588, 0.02065066434442997, 0.00906734261661768, -0.02850988693535328, 0.04072488099336624, 0.015808183699846268, -0.05137249082326889, -0.018696311861276627, -0.034397635608911514, -0.018534628674387932, 0.04434777796268463, 0.025248274207115173, -0.03974154219031334, 0.04186896234750748, -0.030861226841807365, 0.0038123971316963434, -0.047077301889657974, -0.016751550137996674 ]
Deprecation of Git Authentication using password
Sylvestre
August 25, 2023
password-git-deprecation
announcement, security
https://huggingface.co/blog/password-git-deprecation
Switching to personal access token You will need to generate an access token for your account; you can follow https://huggingface.co/docs/hub/security-tokens#user-access-tokens to generate one. After generating your access token, you can update your Git repository using the following commands: bash $: git remote set-url origin https://<user_name>:<token>@huggingface.co/<repo_path> $: git pull origin where <repo_path> is in the form of: - <user_name>/<repo_name> for models - datasets/<user_name>/<repo_name> for datasets - spaces/<user_name>/<repo_name> for Spaces If you clone a new repo, you can just input a token in place of your password when your Git credential manager asks you for your authentication credentials.
[ 0.028750240802764893, 0.023051874712109566, 0.016584400087594986, -0.024612125009298325, 0.02062099240720272, 0.03950217366218567, 0.023132847622036934, 0.04398028180003166, 0.009277025237679482, -0.05851709842681885, -0.09067922830581665, 0.07165208458900452, -0.014874153770506382, 0.04860677570104599, -0.01680850051343441, -0.04240817949175835, 0.020053111016750336, -0.0022191177122294903, -0.034826990216970444, 0.03089926578104496, 0.024064045399427414, -0.055260226130485535, 0.03360803797841072, -0.021743575111031532, -0.045846302062273026, -0.0817922055721283, 0.03796912729740143, 0.025247812271118164, 0.007193972822278738, -0.0049204458482563496, -0.10261018574237823, -0.05104266107082367, 0.032441891729831696, -0.06978662312030792, 0.03787916526198387, 0.07239402085542679, -0.11156293749809265, 0.030822034925222397, 0.04311787337064743, -0.01798228546977043, -0.04869939014315605, -0.0168421883136034, -0.01639709435403347, 0.079157754778862, -0.03351482003927231, -0.02409210428595543, -0.15384089946746826, 0.06496881693601608, -0.01102682389318943, -0.029527705162763596, -0.07918278127908707, -0.004033877048641443, -0.01188741996884346, -0.0603596530854702, 0.05908782035112381, -0.017054814845323563, -0.031252194195985794, -0.09328923374414444, -0.013926848769187927, -0.04025334492325783, 0.09629867225885391, -0.013127651996910572, 0.01789015717804432, 0.054270800203084946, -0.0012050643563270569, 0.0025321724824607372, -0.0005632941029034555, -0.02365855872631073, -0.04703045263886452, -0.03313431516289711, 0.05917270481586456, -0.007463918533176184, -0.00630164472386241, -0.036823004484176636, -0.044317279011011124, -0.052948638796806335, 0.016782689839601517, 0.06366203725337982, 0.06036759540438652, 0.05286901071667671, 0.049754612147808075, 0.026217550039291382, -0.047787874937057495, 0.0202986728399992, 0.08235349506139755, 0.05587904900312424, -0.019785895943641663, -0.043794695287942886, -0.021236855536699295, 0.03213392198085785, 0.0027237320318818092, -0.06688658148050308, -0.021044882014393806, -0.004372680094093084, 0.07455386966466904, 0.004010559059679508, 0.004106881562620401, 0.016837816685438156, 0.005681395530700684, 0.013253460638225079, -0.04067075252532959, -0.05623948946595192, -0.03556092083454132, -0.0552402101457119, -0.04914657026529312, 0.002388402121141553, -0.008021065033972263, -0.061196669936180115, -0.05131140723824501, -0.06066461279988289, 0.02045699581503868, -0.021721068769693375, 0.04080493375658989, 0.028042232617735863, -0.038792114704847336, 0.038140274584293365, -0.021570464596152306, -0.057472243905067444, 0.014600390568375587, 0.038666170090436935, 0.03348099812865257, 0.10912971198558807, -0.028429357334971428, -0.006842595059424639, 0.06250865757465363, 0.059233810752630234, -0.022557944059371948, -0.019046084955334663, 0.0021994109265506268, -0.07998480647802353, 0.02509717270731926, 0.010784550569951534, 0.04372257739305496, -0.0015985430218279362, 0.032008253037929535, -0.012292343191802502, 0.026308484375476837, -0.09290748089551926, 0.0673622265458107, -0.009289092384278774, 0.03290146589279175, 0.02604653127491474, -0.011486560106277466, 0.05532329902052879, 0.015438592992722988, 0.06548137217760086, -0.08000031113624573, 0.05037754774093628, 0.016011783853173256, 0.04011067748069763, -0.012406614609062672, 0.03642731532454491, 0.010466423816978931, -0.03005671314895153, -0.010441388003528118, 0.03154681250452995, 0.004655181895941496, 0.02031792886555195, -0.03074045665562153, 0.04911499470472336, 0.005448410287499428, 0.0614982470870018, -0.08097099512815475, 0.02173447795212269, 0.04723470285534859, 0.004114957991987467, 0.006186138838529587, -0.016012540087103844, -0.008382448926568031, -0.03423021733760834, 0.0700753778219223, -0.07019971311092377, -0.030619964003562927, -0.0474235862493515, 0.08954668790102005, 0.08751627057790756, 0.004890419542789459, 0.00825969222933054, -0.009912141598761082, 0.005900359712541103, -0.03333846479654312, 0.09172972291707993, 0.002243173774331808, 0.05104747787117958, 0.06717748194932938, -0.07215018570423126, -0.08782552927732468, 0.00801098346710205, 0.021965157240629196, -0.015134455636143684, -0.053993109613657, -0.054723434150218964, 0.049705419689416885, -0.029384389519691467, -0.013894910924136639, -0.04089467599987984, 0.011822372674942017, 0.07041116058826447, 0.0402093231678009, 0.055522385984659195, -0.03963436558842659, -0.0599757581949234, 0.009838362224400043, -0.07819807529449463, -0.01676781289279461, 0.03603347763419151, 0.025121944025158882, -0.1045900210738182, 0.056335702538490295, 0.01408359780907631, -0.02792268991470337, -0.025806589052081108, 0.07281439751386642, -0.058222949504852295, -0.005122182425111532, -0.01594918593764305, -0.054419420659542084, -0.009391305036842823, 0.02107551507651806, 0.03617885708808899, 0.16024905443191528, -0.004537863656878471, 0.025289906188845634, 0.06385504454374313, -0.021112767979502678, 0.04969099909067154, 0.015901941806077957, 0.07919676601886749, 0.09641984105110168, -0.046038564294576645, -0.07298710942268372, -0.10592181980609894, -0.04935682937502861, -0.016289277002215385, 0.012536552734673023, -0.05230020731687546, 0.002295960672199726, -0.09755875170230865, -0.01311347633600235, 0.0012623019283637404, -0.001392869744449854, -0.03814943507313728, 0.04721447452902794, -0.03775542974472046, 0.043496035039424896, 0.004876246210187674, 0.03025275655090809, -0.004169173073023558, -0.021529480814933777, -0.03148307278752327, -0.06831865757703781, 0.006146004423499107, -0.008740528486669064, 0.011733874678611755, 0.03805132582783699, 0.009195220656692982, -0.01853024587035179, -0.0028024769853800535, -0.03871066868305206, 0.04789898172020912, -0.0041196406818926334, 0.00581825478002429, -0.04877566173672676, -0.011747031472623348, -0.03812471404671669, -0.00028090833802707493, -0.0049011437222361565, -0.0038876666221767664, -0.016987238079309464, -0.004633542615920305, 0.03436985984444618, -0.037302419543266296, 0.023173106834292412, 0.02568334899842739, -0.009918802417814732, 0.023653360083699226, 0.006306488066911697, -0.0003101594338659197, 0.012718887999653816, -0.0036375506315380335, 0.0572250634431839, -0.0492820143699646, 0.017227714881300926, 0.05111449211835861, 0.04322553798556328, 0.007765517570078373, 0.011834640055894852, -0.05443672835826874, -0.026337014511227608, 0.008394110016524792, -0.003442911896854639, 0.02779175527393818, 0.00047322141472250223, 0.014070617966353893, -0.018725555390119553, -0.008882846683263779, 0.0328654907643795, -0.007240431848913431, -0.000863830151502043, 0.038287464529275894, -0.017436066642403603, -0.02645583637058735, 0.04867302253842354, -0.028780082240700722, -0.031156376004219055, 0.04518355801701546, -0.028621837496757507, -0.03466904163360596, -0.09308573603630066, -0.0448543056845665, -0.013657376170158386, 0.046069711446762085, -0.007402100600302219, -0.010826541110873222, 0.050056006759405136, 0.023221641778945923, -0.023802684620022774, 0.016115454956889153, 0.01647980883717537, 0.011819371022284031, 0.02637619338929653, 0.012251034379005432, -0.04343544691801071, -0.029826972633600235, 0.007760265842080116, -0.018345745280385017, 0.014080116525292397, -0.04318767786026001, -0.045810405164957047, -0.005923366639763117, -0.022978967055678368, -0.007695411331951618, 0.024034421890974045, -0.02106386050581932, 0.03541892021894455, 0.018216604366898537, 0.033453911542892456, -0.02585926093161106, 0.03595251217484474, -0.040768351405858994, 0.017204539850354195, 0.007823925465345383, -0.044571757316589355, -0.014599079266190529, 0.06575114279985428, -0.022538451477885246, 0.03722519427537918, 0.0158925149589777, 0.016903439536690712, -0.015338672325015068, 0.005687509197741747, -0.014912418089807034, 0.011052655056118965, -0.040895599871873856, -0.02764524146914482, -0.011976298876106739, 0.01901438646018505, -0.023832637816667557, -0.030819637700915337, 0.01995467022061348, 0.009692090563476086, 0.02045329287648201, 0.0127266151830554, 0.01813269779086113, 0.001296786474995315, 0.03723281994462013, -0.046297673135995865, 0.04535719379782677, -0.03944995999336243, 0.00021704162645619363, 0.004661788232624531, -0.04849245399236679, -0.028514936566352844, 0.02098405547440052, -0.007358528207987547, 0.03702431544661522, -0.017267337068915367, 0.05574233829975128, -0.025698736310005188, 0.0054418668150901794, -0.019140373915433884, 0.012893381528556347, -0.01722639612853527, -0.05775408819317818, -0.04294256493449211, -0.022390106692910194, 0.06581909209489822, 0.028690816834568977, 0.00807823147624731, -0.019884340465068817, 0.030990228056907654, -0.004593325778841972, -0.022990327328443527, -0.00260244426317513, 0.021326063200831413, -0.008158472366631031, 0.028813624754548073, 0.04667854309082031, -0.008819728158414364, -0.016672024503350258, 0.024802319705486298, -0.06358492374420166, -0.018642183393239975, 0.00849941000342369, 0.003045349847525358, 0.004571189172565937, 0.012316920794546604, 0.037493716925382614, 0.018925897777080536, 0.003700696863234043, -0.01497568842023611, -0.0234910249710083, 0.044108182191848755, 0.04682396724820137, -0.037444211542606354, -0.04014449566602707, 0.005494605749845505, 0.020080698654055595, -0.028598669916391373, -0.03566298633813858, -0.003114809514954686, -0.023646339774131775, -0.030330481007695198, 0.04120301082730293, 0.0012173529248684645, -0.01146125327795744, -0.02326199784874916, 0.06369069963693619, -0.029850030317902565, 0.02200925350189209, 0.006319911684840918, -0.029571926221251488, 0.027904141694307327, 0.03175341710448265, 0.004967377055436373, -0.0064615523442626, -0.007553954143077135, 0.009921720251441002, -0.015104414895176888, -0.016738079488277435, 0.01927538774907589, -0.00010913251753663644, -0.019449511542916298, 0.005479056853801012, -0.002217069733887911, -0.00314253824763, 0.006135420873761177, 0.0021482505835592747, -0.004678771831095219, -0.000625999178737402, 0.056317802518606186, -0.03686952218413353, 0.023004209622740746, 0.048857688903808594, -0.04643530026078224, -0.013514242134988308, -0.02522743120789528, -0.008778868243098259, 0.023276513442397118, -0.0076698544435203075, -0.0005457965889945626, 0.04413106292486191, 0.027104847133159637, -0.0063934908248484135, 0.006463348399847746, 0.0017296439036726952, 0.0013293471420183778, 0.017040131613612175, -0.03763987869024277, -0.0224271472543478, 0.03391363471746445, 0.032120946794748306, 0.015212766826152802, -0.003222540719434619, -0.00005390631849877536, -0.05854851379990578, -0.014149066992104053, -0.016493303701281548, -0.00992919597774744, 0.043851640075445175, 0.003955403342843056, -0.05226650461554527, -0.02613108791410923, 0.06055117025971413, 0.055798184126615524, 0.004270270466804504, 0.008844629861414433, 0.021404532715678215, -0.025844959542155266, 0.006251960061490536, 0.031621888279914856, 0.002583317458629608, 0.006447305902838707, 0.03598155826330185, 0.10015348345041275, 0.043975137174129486, 0.009701989591121674, 0.008802225813269615, -0.03363681957125664, -0.02208743803203106, 0.00957820750772953, -0.03302210196852684, 0.0279235877096653, -0.02670750953257084, -0.0072578066028654575, -0.029807712882757187, -0.005530793685466051, 0.0037109986878931522, 0.031141646206378937, 0.10154696553945541, -0.0075290328823029995, -0.016662219539284706, 0.027530279010534286, 0.0035702732857316732, 0.008517619222402573, 0.044663283973932266, 0.012926618568599224, 0.006698883604258299, -0.01827218569815159, -0.011524105444550514, 0.0084676593542099, -0.02779531665146351, 0.02252626046538353, -0.01618395373225212, -0.01852293312549591, 0.023487389087677002, -0.013092749752104282, 0.05767153203487396, -0.0013315536780282855, -0.008725800551474094, -0.029683858156204224, 0.0027154325507581234, 0.0019408034859225154, -0.020005935803055763, 0.012340673245489597, 0.033576544374227524, 0.007269596680998802, -0.01023663766682148, 0.03931276500225067, -0.021775640547275543, 0.014340097084641457, 0.027717266231775284, 0.008258338086307049, 0.03225770592689514, 0.03259541466832161, 0.006551326718181372, 0.008725127205252647, -0.0018956755520775914, -0.002474823035299778, 0.0032564066350460052, -0.04199598357081413, -0.02314480021595955, -0.044999975711107254, 0.016140034422278404, 0.05076728016138077, 0.02661433443427086, 0.024825574830174446, 0.019501743838191032, -0.006567672360688448, 0.013731816783547401, 0.02731594443321228, -0.008448810316622257, -0.002724529942497611, 0.005822108127176762, 0.0404948890209198, -0.0001965879782801494, 0.009046557359397411, -0.011360708624124527, 0.03393267095088959, -0.06970395892858505, 0.005223748739808798, 0.04634043946862221, -0.010506080463528633, -0.014768210239708424, -0.042026616632938385, -0.06981644034385681, -0.018653949722647667, 0.043921563774347305, 0.018397318199276924, 0.0029835470486432314, 0.027069825679063797, -0.023315828293561935, -0.033796682953834534, -0.03635767102241516, -0.0012184284860268235, 0.04021330550312996, -0.05258534103631973, 0.054835449904203415, -0.02035176381468773, 0.041049178689718246, 0.028580624610185623, 0.01454644463956356, 0.016148995608091354, 0.023116759955883026, 0.06962157785892487, 0.01980447955429554, 0.06695505231618881, 0.012316998094320297, -0.00938616506755352, 0.0026537165977060795, -0.003829645225778222, 0.007741598412394524, 0.019168671220541, 0.016966307535767555, 0.002030446194112301, -0.019393878057599068, 0.027862174436450005, -0.022369980812072754, 0.029086651280522346, 0.01046245452016592, 0.03598984703421593, 0.004060837440192699, -0.007715784013271332, 0.008477643132209778, 0.022852227091789246, 0.02712424099445343, 0.058717891573905945, 0.04738054424524307, -0.0069536506198346615, 0.01871858537197113, 0.030884195119142532, 0.010602843016386032, -0.013528144918382168, 0.013942355290055275, 0.00009679897630121559, -0.0316290482878685, -0.04749883711338043, -0.04717550799250603, 0.008470353670418262, -0.00994996540248394, -0.04293735697865486, 0.02142850123345852, 0.005083419848233461, 0.014115136116743088, -0.018806258216500282, 0.004962571430951357, -0.0021794058848172426, -0.036012355238199234, -0.0027116751298308372, 0.014401099644601345, 0.014844831079244614, 0.0255647674202919, -0.00028316653333604336, 0.037295591086149216, 0.03636791184544563, -0.007449927739799023, -0.046722665429115295, -0.05325828120112419, -0.04505454748868942, -0.01733224280178547, -0.006551445461809635, 0.013782193884253502, -0.02804945781826973, -0.021488089114427567, -0.008138895034790039, 0.054005593061447144, -0.022687992081046104, 0.007689294405281544, 0.021837104111909866, 0.012519090436398983, -0.038593776524066925, -0.009561811573803425, -0.0004353878030087799, -0.013998990878462791, -0.016246216371655464, -0.03531179577112198, 0.040501609444618225, -0.0026076599024236202, 0.06609388440847397, 0.02278835140168667, 0.020665721967816353, -0.03237629681825638, -0.025008907541632652, 0.022234056144952774, -0.02104553021490574, -0.04412269592285156, 0.05687775835394859, 0.00833303201943636, 0.009823871776461601, 0.034385696053504944, -0.005955826956778765, 0.014498991891741753, 0.019932962954044342, 0.006816937122493982, 0.06775899976491928, -0.016350997611880302, -0.031062962487339973, 0.03333884850144386, 0.05712510645389557, 0.025421258062124252, -0.01709023490548134, 0.04286617785692215, 0.005898569710552692, 0.020462479442358017, -0.054407671093940735, 0.06694899499416351, -0.0524110309779644, -0.007836079224944115, -0.01957070827484131, -0.06351576000452042, -0.006295693106949329, -0.02345915324985981, 0.009151122532784939, 0.016506318002939224, -0.040697742253541946, -0.028862005099654198, 0.021486686542630196, 0.006106508430093527, 0.004323683213442564, 0.030131611973047256, 0.037745095789432526, 0.013342315331101418, 0.018390074372291565, 0.007320234552025795, -0.059984758496284485, 0.013891464099287987, -0.010272802785038948, 0.05356203764677048, 0.02451576665043831, -0.009766444563865662, -0.021504711359739304, 0.02745104394853115, 0.01138241309672594, 0.013931148685514927, -0.01689968816936016, 0.028249166905879974, -0.015246682800352573, -0.024779360741376877, -0.014327202923595905, 0.010534844361245632, 0.023673202842473984, 0.010143210180103779, 0.02806307002902031, -0.01526420097798109, -0.01896904595196247, 0.005357134621590376, 0.03778352588415146, -0.0013511191355064511, -0.00857921876013279, -0.053426343947649, 0.048315346240997314, 0.030925914645195007, 0.003206995315849781, 0.006283319555222988, 0.021119369193911552, -0.024494005367159843, 0.026008307933807373, -0.016771936789155006, -0.016912901774048805, -0.00404023053124547, 0.007583035156130791, 0.05306535214185715, -0.029132075607776642, -0.027886470779776573, 0.042838118970394135, -0.013901595957577229, -0.0534961000084877, -0.020833998918533325, -0.0034462253097444773, 0.007546731270849705, 0.015148447826504707, -0.0167299322783947, -0.05907671898603439, 0.003399341832846403, -0.03439372405409813, 0.0008648128714412451, -0.07844965159893036, -0.0034923723433166742 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
4-bit Loading Integration of Code Llama in Transformers means that you get immediate support for advanced features like 4-bit loading. This allows you to run the big 32B parameter models on consumer GPUs like nvidia 3090 cards! Here's how you can run inference in 4-bit mode: Python from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig import torch model_id = "codellama/CodeLlama-34b-hf" quantization_config = BitsAndBytesConfig( load_in_4bit=True, bnb_4bit_compute_dtype=torch.float16 ) tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained( model_id, quantization_config=quantization_config, device_map="auto", ) prompt = 'def remove_non_ascii(s: str) -> str:\n """ ' inputs = tokenizer(prompt, return_tensors="pt").to("cuda") output = model.generate( inputs["input_ids"], max_new_tokens=200, do_sample=True, top_p=0.9, temperature=0.1, ) output = output[0].to("cpu") print(tokenizer.decode(output))
[ 0.00461935717612505, 0.010410908609628677, 0.011854712851345539, 0.021743135526776314, 0.039562828838825226, 0.03121970407664776, 0.05245201662182808, 0.05405198782682419, 0.06475326418876648, 0.022985106334090233, -0.053240641951560974, 0.05580369010567665, -0.06751565635204315, 0.10493733733892441, 0.031753528863191605, -0.017862189561128616, 0.01884087361395359, -0.0424182154238224, -0.006956969387829304, 0.0342559888958931, 0.05116492509841919, -0.0750974714756012, 0.03276131674647331, 0.020111974328756332, -0.049293261021375656, -0.04575979709625244, 0.02153303660452366, 0.05950949713587761, 0.03399486094713211, 0.024587970227003098, -0.12648512423038483, -0.021079156547784805, -0.018028205260634422, 0.017328955233097076, 0.033492110669612885, 0.024456525221467018, -0.18323107063770294, 0.022114088758826256, 0.015447440557181835, -0.04161472246050835, 0.014128091745078564, -0.03306563198566437, -0.019985081627964973, 0.03945217281579971, 0.047887884080410004, 0.0063917669467628, -0.08711863309144974, 0.05482525750994682, -0.0783369317650795, -0.05131271854043007, -0.05103926733136177, 0.030143748968839645, 0.0015629285480827093, 0.007908624596893787, 0.09607047587633133, 0.03786291554570198, -0.025051450356841087, -0.05642208829522133, 0.011130359955132008, -0.00009484316979069263, 0.026244021952152252, -0.020682936534285545, 0.03769060596823692, -0.003279757220298052, 0.058024339377880096, 0.0010180422104895115, -0.039934191852808, 0.01682453230023384, -0.026498349383473396, -0.020468546077609062, -0.012048007920384407, -0.0017112494679167867, -0.015409278683364391, -0.10347040742635727, -0.06291145086288452, -0.08679495751857758, 0.01890110969543457, 0.018303772434592247, 0.06352680921554565, 0.07012970745563507, -0.04060334712266922, 0.06786477565765381, 0.06878984719514847, 0.10335368663072586, 0.07194484025239944, 0.053557172417640686, 0.028020750731229782, -0.021357547491788864, -0.024435359984636307, 0.06841467320919037, -0.035315629094839096, -0.11518613994121552, -0.012490559369325638, 0.022735057398676872, 0.010432231239974499, -0.0009132569539360702, 0.030270777642726898, 0.012565012089908123, -0.032731492072343826, -0.05540560185909271, 0.01960090547800064, -0.0446857213973999, 0.010925366543233395, -0.03934041038155556, -0.04357793182134628, 0.0415244922041893, -0.02786448411643505, -0.054090578109025955, 0.02105606347322464, -0.012757522985339165, -0.0398942194879055, -0.05287521705031395, 0.04514661431312561, 0.04516216740012169, -0.08481784909963608, -0.03522714972496033, -0.014610116370022297, 0.02350534498691559, 0.018563272431492805, 0.007818584330379963, 0.019309787079691887, 0.06958039849996567, 0.04330028221011162, -0.025284752249717712, 0.029932215809822083, 0.03297225758433342, 0.04912491515278816, 0.025642937049269676, 0.038672953844070435, -0.021582065150141716, 0.08147423714399338, -0.06667975336313248, 0.025143342092633247, -0.057425402104854584, -0.007332315668463707, -0.07598941773176193, -0.08664882928133011, -0.09256903827190399, -0.05046457797288895, -0.049373921006917953, -0.0140452291816473, -0.0067855240777134895, 0.032659340649843216, -0.06911437958478928, 0.03224563971161842, -0.04661698639392853, -0.047750502824783325, 0.07617474347352982, -0.0021297126077115536, -0.0016629054443910718, -0.06710419058799744, 0.06409405171871185, -0.048857301473617554, -0.019419468939304352, 0.03214584290981293, -0.03563953936100006, -0.07106629014015198, 0.030043024569749832, -0.12213794142007828, -0.025238439440727234, -0.03342803940176964, -0.08023229986429214, 0.007387546822428703, -0.023875674232840538, 0.008154712617397308, -0.0045130508951842785, -0.027043795213103294, 0.014274480752646923, 0.048033762723207474, 0.015070226043462753, 0.01141256932169199, -0.025473153218626976, 0.01488184928894043, -0.049656834453344345, -0.01525020506232977, 0.05301601439714432, 0.06442364305257797, 0.03931376338005066, -0.03821764886379242, -0.06041545048356056, -0.04646654427051544, 0.02579480968415737, -0.04550760239362717, 0.09289427101612091, 0.022380420938134193, -0.05694299563765526, 0.04463842138648033, -0.09907945990562439, -0.007588566280901432, 0.04225783050060272, 0.02609202452003956, 0.00031272682826966047, 0.08508217334747314, 0.020867515355348587, 0.04052930325269699, 0.029877005144953728, -0.05117716267704964, 0.06402125209569931, 0.039965927600860596, -0.015553819015622139, 0.03180915489792824, 0.017487546429038048, 0.025909366086125374, 0.017366865649819374, 0.013282270170748234, 0.04476930946111679, 0.04175106808543205, -0.018309062346816063, 0.06260638684034348, 0.019117446616292, 0.01286266278475523, -0.13166770339012146, 0.01918349228799343, 0.004674648866057396, 0.055051982402801514, 0.03503122553229332, -0.04878897964954376, 0.029561955481767654, 0.03280871734023094, -0.005994210951030254, 0.08619258552789688, -0.03980892896652222, -0.02846253663301468, -0.0910463035106659, 0.002307421062141657, 0.026177100837230682, 0.04712960496544838, 0.0063163358718156815, 0.01169406808912754, -0.0991421565413475, 0.006720508448779583, -0.05330616608262062, -0.04385004937648773, 0.002190869301557541, -0.024031493812799454, -0.024513177573680878, -0.05424856022000313, 0.020156988874077797, 0.03078601509332657, 0.0417126789689064, -0.019994601607322693, 0.06408153474330902, -0.01755729503929615, -0.014494572766125202, 0.013281728141009808, -0.07794217765331268, 0.09301068633794785, -0.0038059467915445566, 0.06659596413373947, 0.012476258911192417, -0.02711562253534794, -0.021515261381864548, 0.03000456467270851, -0.04429686814546585, -0.006374099757522345, -0.011095341295003891, 0.014140990562736988, -0.012487380765378475, -0.009098916314542294, 0.024568110704421997, -0.006833590101450682, -0.00260133552365005, -0.022773632779717445, -0.044532451778650284, -0.03229919821023941, -0.025276625528931618, -0.033116891980171204, 0.04017503187060356, -0.01923125423491001, -0.05757606402039528, -0.003298115450888872, -0.030941950157284737, 0.04244524985551834, -0.003569058608263731, 0.05944042280316353, 0.05045970529317856, 0.0879744291305542, 0.02925756387412548, -0.05233781412243843, -0.012343144975602627, -0.013835721649229527, 0.0013118346687406301, 0.03206547722220421, 0.0036448242608457804, -0.07419298589229584, 0.006752315908670425, -0.006917115300893784, -0.04990279674530029, -0.024853534996509552, 0.026656147092580795, -0.029457228258252144, 0.010836711153388023, 0.024565912783145905, -0.022914575412869453, 0.0056387875229120255, 0.014249698258936405, -0.00032380115590058267, -0.023942995816469193, -0.036053478717803955, -0.02578199841082096, -0.009500720538198948, 0.01731867901980877, 0.006727432366460562, 0.009965112432837486, -0.018637705594301224, -0.009797081351280212, -0.014455512166023254, 0.016617340967059135, -0.07896935939788818, -0.013803476467728615, -0.021240340545773506, -0.011797560378909111, 0.017067497596144676, -0.028556643053889275, 0.036579884588718414, 0.017631402239203453, 0.023723918944597244, 0.009893464855849743, -0.009612497873604298, 0.001901396200992167, 0.0027427328750491142, -0.0014673462137579918, -0.0062733362428843975, -0.010025235824286938, 0.0036662633065134287, 0.014199912548065186, 0.0187227763235569, -0.009108604863286018, -0.009470012038946152, 0.04791794344782829, -0.027704913169145584, 0.023472582921385765, 0.0015324406558647752, 0.02615380473434925, 0.06605571508407593, 0.015378003939986229, -0.03947051987051964, 0.0018541875761002302, -0.04314075782895088, -0.034358855336904526, -0.015623130835592747, 0.005408881232142448, -0.010549969039857388, -0.014827201142907143, 0.02427089586853981, -0.06316585838794708, 0.02590419352054596, 0.0058831931091845036, 0.026200702413916588, -0.0026130490005016327, 0.03787383809685707, -0.05013347044587135, -0.007142010144889355, -0.014724892564117908, -0.03047581948339939, -0.026649262756109238, 0.0007352381362579763, -0.028155578300356865, -0.0344105027616024, -0.0325797013938427, -0.002868416951969266, -0.010427557863295078, -0.00003941289469366893, -0.01718190684914589, 0.00586890522390604, 0.005855764262378216, 0.03202451765537262, -0.015051391907036304, -0.05945437029004097, 0.026381444185972214, 0.016156475991010666, -0.016109442338347435, -0.03324156254529953, 0.04197583720088005, 0.05038345232605934, -0.010691209696233273, 0.008479432202875614, -0.01185461226850748, -0.02392447181046009, 0.010377791710197926, -0.02755911648273468, 0.00489871995523572, -0.013655062764883041, 0.020943528041243553, -0.028173035010695457, -0.024611376225948334, 0.07184124737977982, 0.042396754026412964, 0.01839236542582512, -0.05154719576239586, -0.013096918351948261, -0.0020818707998842, -0.007632418069988489, 0.0031648236326873302, 0.0019946559332311153, -0.015200185589492321, 0.016547098755836487, 0.01344225462526083, -0.01091403141617775, -0.013904036954045296, 0.004462297074496746, -0.023246459662914276, -0.0022818129509687424, 0.01788645051419735, 0.0029148298781365156, 0.02539883926510811, -0.037156324833631516, -0.00519784027710557, 0.02015247382223606, -0.04550886154174805, 0.0020574540831148624, 0.010002504102885723, -0.0064056976698338985, 0.003161464584991336, -0.0020319309551268816, -0.005433417856693268, 0.009443900547921658, 0.011527087539434433, -0.018352240324020386, -0.03202429413795471, -0.012175723910331726, 0.015162382274866104, 0.06709928810596466, -0.0011451805476099253, 0.0044248769991099834, -0.0424719862639904, 0.011887195520102978, 0.015948519110679626, -0.03989434614777565, 0.01587081141769886, 0.01924280822277069, -0.0478900745511055, 0.044651322066783905, -0.011738663539290428, 0.024478495121002197, 0.038515619933605194, -0.022122055292129517, -0.033551134169101715, -0.04357879236340523, -0.029215654358267784, 0.020222390070557594, 0.0031180069781839848, 0.007282201200723648, -0.02509959228336811, -0.019414594396948814, -0.00405436335131526, 0.01793363131582737, 0.005945393815636635, -0.04654297977685928, 0.018287930637598038, -0.004197654780000448, -0.02079060673713684, 0.03332061693072319, -0.01205264963209629, 0.022758645936846733, -0.01294696144759655, -0.047671787440776825, 0.01745450682938099, 0.036834463477134705, -0.03019183874130249, -0.010052863508462906, 0.021067380905151367, -0.0004985109553672373, 0.024967726320028305, 0.029245642945170403, 0.02309725433588028, 0.022384395822882652, 0.006891355849802494, 0.0608886182308197, 0.03129539638757706, -0.034145817160606384, -0.0012466941261664033, 0.0541192963719368, 0.010517127811908722, -0.019712142646312714, -0.07285909354686737, -0.012988956645131111, 0.05198856070637703, -0.05450407415628433, -0.005881895311176777, -0.00040779061964713037, -0.03573507070541382, -0.02118607424199581, 0.06053954362869263, 0.0192192904651165, -0.04252701625227928, -0.011355498805642128, 0.0072564235888421535, 0.029329558834433556, -0.059956144541502, 0.03915255889296532, -0.0038845394738018513, -0.019101468846201897, 0.033430662006139755, 0.01775319315493107, 0.07785243541002274, 0.04399845376610756, 0.0073196194134652615, 0.02191249467432499, -0.005314957816153765, 0.0024960427545011044, -0.0007227422320283949, -0.0031494374852627516, 0.0022396892309188843, 0.013039547018706799, 0.00005083202267996967, -0.021022386848926544, -0.005969137419015169, 0.020634697750210762, 0.021207785233855247, -0.03947363793849945, -0.025451641529798508, 0.014456870965659618, -0.004142903257161379, -0.008673709817230701, -0.01740971952676773, 0.0438048355281353, -0.0326860174536705, 0.020923705771565437, 0.012832414358854294, 0.041634757071733475, 0.007378170266747475, 0.012440267018973827, 0.011151042766869068, -0.03654692694544792, 0.0463540256023407, 0.017138682305812836, 0.040364235639572144, -0.028904467821121216, -0.020064707845449448, 0.024982430040836334, -0.029369115829467773, 0.04149998724460602, -0.003308404702693224, 0.003660671878606081, 0.03328903019428253, -0.004233529791235924, -0.01688220724463463, 0.05596373602747917, -0.009882728569209576, -0.015251846052706242, 0.03754507005214691, 0.01391246635466814, 0.03465629369020462, -0.033764153718948364, -0.01750815100967884, 0.04488404095172882, -0.00011527020978974178, -0.025288624688982964, -0.015889449045062065, -0.05935114622116089, 0.0002872570767067373, -0.03228423744440079, 0.0012975225690752268, 0.03193306550383568, 0.013064153492450714, -0.01415812224149704, -0.004920666571706533, 0.0238477922976017, -0.025483908131718636, 0.028794439509510994, 0.02077842317521572, -0.0022198182996362448, 0.05947936698794365, 0.04407427832484245, 0.027315955609083176, 0.04115055873990059, 0.01162844430655241, 0.010547548532485962, -0.026673931628465652, 0.0006720874225720763, 0.03452232852578163, -0.019326578825712204, 0.029413465410470963, -0.006028869189321995, -0.052134789526462555, -0.013844517059624195, 0.019701480865478516, 0.015164686366915703, 0.031719036400318146, 0.01233154721558094, 0.029951568692922592, 0.0013828163500875235, -0.011804714798927307, 0.040563713759183884, 0.039905596524477005, 0.03480289503931999, -0.007386851590126753, 0.01918219029903412, 0.04424821585416794, 0.034079570323228836, 0.002166684018447995, 0.0020315160509198904, -0.019378365948796272, 0.08320698142051697, 0.031191829591989517, -0.020758965983986855, 0.021346449851989746, 0.016325578093528748, 0.024288374930620193, 0.0025517139583826065, -0.017105557024478912, -0.05674896016716957, -0.008935539051890373, 0.05959663167595863, -0.011080900207161903, 0.010554702021181583, -0.0240851528942585, 0.07344397157430649, 0.05147266387939453, 0.039452049881219864, 0.013838911429047585, 0.03258880227804184, -0.036395519971847534, 0.025157950818538666, 0.008026168681681156, -0.027696028351783752, 0.03031275048851967, 0.008242417126893997, 0.01789109967648983, -0.009839585982263088, 0.04393288493156433, 0.02733132243156433, 0.019753124564886093, 0.019884206354618073, 0.014833720400929451, 0.007326891180127859, 0.02605985477566719, -0.0045247129164636135, 0.03313232213258743, 0.008085106499493122, 0.004145725164562464, -0.03059789538383484, 0.010052835568785667, -0.0016999539220705628, -0.03465636447072029, -0.021708181127905846, -0.02155265025794506, 0.00271486584097147, -0.0008618555730208755, 0.007453535217791796, -0.015054046176373959, -0.017373433336615562, -0.0060309479013085365, 0.006622920744121075, 0.030367212370038033, -0.01276262104511261, 0.012910371646285057, 0.006055204197764397, -0.018497256562113762, -0.02474440634250641, 0.021930178627371788, -0.0007819366292096674, 0.015403236262500286, 0.04103371500968933, -0.02189955860376358, 0.03405691683292389, 0.03474173694849014, 0.0032475211191922426, 0.028821906074881554, -0.047124579548835754, -0.022776685655117035, 0.032271336764097214, -0.055235449224710464, 0.017488596960902214, -0.014337167143821716, 0.0036967622581869364, -0.005260266829282045, 0.011237121187150478, 0.04641944169998169, 0.05754232779145241, -0.020245112478733063, -0.02887345477938652, 0.012111527845263481, -0.03536324203014374, -0.041052673012018204, -0.00026634117239154875, -0.04980200156569481, 0.004252757411450148, 0.008821243420243263, -0.024841047823429108, 0.03466276451945305, 0.03915475681424141, -0.0006710789166390896, 0.06419307738542557, -0.01968657784163952, 0.0050487336702644825, -0.03810618445277214, 0.053461771458387375, 0.0050651077181100845, -0.0012278711656108499, 0.0032265568152070045, -0.009708069264888763, -0.03464946150779724, 0.021941402927041054, 0.011281398124992847, -0.036328207701444626, 0.04260197654366493, -0.029472636058926582, -0.00420365808531642, -0.060572732239961624, -0.002061996376141906, -0.0003772383206523955, 0.03855593875050545, -0.026854954659938812, -0.0024203271605074406, -0.04126644879579544, -0.010106481611728668, 0.012830445542931557, -0.01930169016122818, 0.015494294464588165, 0.05954207479953766, 0.01717539131641388, 0.015664298087358475, -0.025244994089007378, 0.0019160883966833353, -0.022013889625668526, 0.012110856361687183, 0.059457991272211075, 0.002350943861529231, 0.002955102827399969, -0.054448146373033524, 0.007900165393948555, 0.008921541273593903, -0.028187043964862823, -0.02010463736951351, 0.02059355191886425, -0.014552188105881214, -0.01587354764342308, -0.03467454016208649, 0.012993807904422283, -0.004149308893829584, 0.045834749937057495, -0.02768273651599884, 0.03178875893354416, -0.005320672411471605, 0.009335096925497055, -0.11149429529905319, -0.009832564741373062, -0.019412333145737648, -0.03175819665193558, 0.022365964949131012, 0.0320756658911705, 0.02410857565701008, 0.01634354516863823, 0.001254757633432746, -0.00586480088531971, -0.005772872362285852, -0.032505568116903305, -0.029922910034656525, -0.030642712488770485, 0.0826873704791069, -0.017945580184459686, -0.003553098998963833, 0.010053358972072601, -0.008488920517265797, -0.013253643177449703, 0.01746596023440361, -0.012614203616976738, 0.0011457937071099877, 0.03694411367177963, -0.008758127689361572, 0.014602105133235455, 0.02624298818409443, 0.034349698573350906, -0.011468392796814442, -0.014089223928749561, -0.005552456248551607 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Using VS Code extension HF Code Autocomplete is a VS Code extension for testing open source code completion models. The extension was developed as part of StarCoder project and was updated to support the medium-sized base model, Code Llama 13B. Find more here on how to install and run the extension with Code Llama.
[ 0.01721075363457203, -0.03003641963005066, 0.08863350749015808, 0.024881066754460335, 0.03181808814406395, 0.059292349964380264, 0.02129005640745163, 0.015057317912578583, 0.004361723084002733, 0.010369876399636269, -0.13449051976203918, -0.027856528759002686, 0.04756009578704834, 0.012723484076559544, 0.023070817813277245, 0.020110949873924255, 0.007494390942156315, -0.020966120064258575, -0.006535543128848076, 0.09568499028682709, -0.03371496498584747, 0.0032681685406714678, 0.052844785153865814, -0.008808902464807034, -0.056153375655412674, 0.0021305035334080458, -0.01021934300661087, 0.06391159445047379, 0.008590449579060078, 0.015461054630577564, -0.04824746027588844, 0.0031555562745779753, 0.021027682349085808, -0.08325652033090591, -0.036967258900403976, 0.04986315593123436, -0.03208690509200096, 0.07675867527723312, 0.006513701751828194, -0.03166189417243004, 0.012305337935686111, -0.10988744348287582, -0.05193144828081131, -0.026018671691417694, 0.02522106096148491, 0.030364181846380234, -0.14152555167675018, 0.024461399763822556, -0.027494089677929878, -0.007920709438621998, -0.019687646999955177, 0.10046780109405518, 0.007055787369608879, -0.007192826364189386, 0.06345872581005096, 0.04895223304629326, -0.04238981381058693, 0.003179495921358466, 0.014232661575078964, 0.0985390692949295, 0.0364871509373188, -0.055676598101854324, 0.014077992178499699, -0.00021766537975054234, 0.0875534787774086, 0.024049390107393265, -0.046897199004888535, -0.02140749804675579, -0.015715966001152992, 0.017664195969700813, -0.07400888204574585, 0.03986288234591484, -0.03220929577946663, -0.0574982613325119, 0.011392774060368538, -0.013981735333800316, -0.04662572592496872, 0.09243672341108322, 0.051367685198783875, -0.017407342791557312, 0.04448303207755089, 0.04783120006322861, 0.040816713124513626, 0.051212016493082047, -0.033538818359375, -0.006593832280486822, -0.0682542696595192, -0.06928993761539459, -0.03955391049385071, 0.05177782475948334, 0.0028916862793266773, -0.1080932468175888, -0.06345400214195251, -0.0016888955142349005, 0.06502322107553482, -0.04309472069144249, 0.012866712175309658, 0.04508056491613388, -0.06907457113265991, -0.014749385416507721, -0.10593211650848389, -0.02872350811958313, 0.005527414381504059, -0.07219332456588745, -0.0008158732671290636, -0.0595373660326004, -0.005839871242642403, -0.010646650567650795, -0.022330131381750107, -0.011794271878898144, 0.04234016686677933, -0.03228624165058136, 0.011535150930285454, 0.11152517050504684, -0.10294704884290695, 0.021157441660761833, 0.04736364632844925, -0.009134202264249325, -0.039493024349212646, 0.04783468693494797, 0.02254560776054859, 0.03094121627509594, 0.01509682647883892, 0.02489214949309826, 0.08417671173810959, 0.12495959550142288, -0.07393356412649155, -0.048404935747385025, 0.035680707544088364, -0.013348251581192017, 0.06374655663967133, 0.0643608570098877, -0.015656178817152977, 0.052884895354509354, -0.008489969186484814, 0.02726653590798378, 0.002444286597892642, -0.050664834678173065, -0.0023074247874319553, 0.06719119101762772, -0.005377814639359713, -0.031624581664800644, 0.02987798862159252, -0.03916388005018234, 0.042749375104904175, -0.0062003545463085175, -0.005779722705483437, 0.0036916991230100393, 0.006202149670571089, 0.049429357051849365, -0.03172404691576958, 0.047064706683158875, -0.03959255665540695, 0.020393691956996918, 0.06401284784078598, -0.04330560192465782, -0.006858617067337036, -0.037847451865673065, 0.008890395052731037, 0.02340959943830967, 0.03877858445048332, -0.020419031381607056, -0.0640530213713646, -0.004856396466493607, -0.011959017254412174, -0.02020941860973835, 0.0009276994969695807, 0.04353883117437363, 0.01766565442085266, 0.05693264678120613, 0.03878002613782883, -0.037598833441734314, 0.02674836665391922, -0.07607056200504303, 0.06720234453678131, 0.022847069427371025, 0.05927054584026337, 0.0676896795630455, 0.016034817323088646, 0.014307268895208836, -0.006019608583301306, 0.07634800672531128, -0.022162659093737602, -0.04241494834423065, -0.001642452203668654, -0.06844298541545868, 0.02920348197221756, 0.002149411477148533, 0.011753515340387821, 0.019564662128686905, 0.024778807535767555, -0.01797005906701088, 0.06365830451250076, -0.010479087941348553, 0.06006297469139099, -0.016285693272948265, 0.01449974812567234, 0.045848067849874496, 0.10690135508775711, 0.02945498377084732, -0.0004548931901808828, 0.038254331797361374, 0.07540405541658401, -0.03913727402687073, -0.029223565012216568, 0.04204995557665825, 0.02823774144053459, 0.02669527567923069, -0.01255747489631176, 0.004745139740407467, 0.07130496203899384, -0.004188267048448324, 0.060946788638830185, 0.05043705925345421, 0.03818792104721069, 0.04248673841357231, -0.05817859247326851, 0.0013505909591913223, -0.028435146436095238, -0.031829893589019775, 0.1270800083875656, -0.014062215574085712, -0.06712592393159866, -0.06514942646026611, -0.05109775811433792, 0.06598132848739624, 0.09061168879270554, 0.036397725343704224, 0.06625880300998688, 0.007262499071657658, 0.019080819562077522, -0.0037907040677964687, -0.022107180207967758, 0.07544364035129547, 0.04782067611813545, -0.0015870867064222693, 0.0860309973359108, 0.0238165482878685, 0.008469320833683014, 0.05982768535614014, 0.013912500813603401, -0.0007097580237314105, 0.02560516633093357, -0.012936433777213097, -0.0031417820136994123, -0.0433039516210556, 0.05919506773352623, 0.020614616572856903, 0.01702863723039627, 0.05333239585161209, -0.02840513549745083, 0.022198595106601715, 0.052428118884563446, 0.01469732541590929, 0.04913580045104027, -0.018950097262859344, 0.012891322374343872, -0.031065398827195168, -0.0552900955080986, 0.026541896164417267, 0.006964916829019785, -0.0035461781080812216, -0.027129605412483215, -0.006584150716662407, -0.0435410737991333, -0.003387373872101307, 0.04312198609113693, 0.06215104088187218, -0.042989447712898254, 0.002041411818936467, -0.04505816102027893, 0.006570903118699789, 0.031965047121047974, -0.02434913069009781, 0.01924009807407856, 0.027760935947299004, 0.049223702400922775, -0.00754891661927104, -0.04488135501742363, -0.028903594240546227, -0.0072664679028093815, 0.02550102025270462, 0.041430890560150146, -0.0014749763067811728, 0.01213684119284153, -0.024482158944010735, -0.03255488723516464, -0.05418407544493675, -0.012120604515075684, 0.016723453998565674, 0.0038053577300161123, 0.04693220928311348, -0.011743856593966484, 0.01975756697356701, -0.018093956634402275, 0.00022445911599788815, 0.005938446149230003, 0.04634014517068863, -0.043644651770591736, -0.0021224466618150473, 0.03444637358188629, 0.00814261008054018, 0.012522722594439983, 0.003022518241778016, -0.0315832756459713, 0.04013911262154579, 0.028459355235099792, -0.023748409003019333, -0.08438626676797867, -0.008484031073749065, -0.013942321762442589, 0.01697504334151745, -0.013139033690094948, 0.011888019740581512, 0.07102996110916138, 0.026671992614865303, 0.007054168730974197, 0.002063069259747863, -0.045930467545986176, -0.02610652893781662, 0.05178750678896904, 0.043130893260240555, -0.0390605591237545, -0.029688380658626556, -0.03805210441350937, 0.03017755039036274, 0.017803531140089035, 0.02982502058148384, -0.03895939886569977, 0.011004246771335602, 0.0022005673963576555, 0.030461018905043602, -0.003940234426409006, -0.06449610739946365, 0.020774297416210175, 0.025735659524798393, -0.024361006915569305, -0.02836153656244278, 0.028201371431350708, 0.012370765209197998, -0.02795925922691822, -0.000980667187832296, -0.012803085148334503, 0.015226658433675766, 0.032757822424173355, -0.011922746896743774, 0.014718004502356052, 0.021952122449874878, 0.014031009748578072, -0.05676243454217911, -0.017303580418229103, -0.03794801980257034, -0.02397860400378704, -0.033266667276620865, 0.0017488443991169333, 0.020584940910339355, 0.016998769715428352, -0.03412732109427452, -0.013073321431875229, 0.0036893372889608145, 0.01322577241808176, 0.015073900111019611, 0.009815441444516182, 0.006150857545435429, 0.022649891674518585, 0.007661048322916031, -0.025340814143419266, 0.005248492583632469, -0.05565584450960159, 0.0033802709076553583, -0.02004401385784149, -0.05449420586228371, -0.0411703884601593, 0.0029651932418346405, 0.045828208327293396, -0.031040964648127556, -0.04283282905817032, 0.004293160047382116, 0.030871117487549782, 0.020731858909130096, -0.02722207084298134, -0.0015688961138948798, -0.057512592524290085, -0.029838351532816887, -0.02144620008766651, -0.029773367568850517, 0.056121379137039185, 0.026068950071930885, 0.022482167929410934, -0.04141729325056076, -0.005755843129009008, -0.011159969493746758, 0.0051742312498390675, -0.003435153281316161, 0.0027453312650322914, -0.019694851711392403, -0.01745842583477497, 0.008517691865563393, -0.022682925686240196, -0.054416775703430176, 0.018239744007587433, 0.010582380928099155, 0.0028281474951654673, -0.005916567053645849, 0.0045621334575116634, 0.012903250753879547, 0.0009300518431700766, -0.007455224171280861, 0.026283876970410347, 0.030871447175741196, 0.014327368699014187, 0.0027798546943813562, 0.0027394641656428576, 0.019430100917816162, 0.0005335733294487, -0.029263542965054512, -0.0010753828100860119, 0.0087286913767457, -0.0164844561368227, -0.09287424385547638, 0.009532682597637177, -0.0029776974115520716, -0.0031531816348433495, 0.009722206741571426, -0.02438894659280777, -0.02959996461868286, -0.0444997102022171, 0.028886737301945686, -0.003058913629502058, -0.03223451226949692, 0.001898928196169436, -0.005809740163385868, 0.0031024953350424767, -0.006260996218770742, 0.01717042736709118, 0.0071689169853925705, 0.007563724182546139, 0.05211922526359558, -0.03911707550287247, -0.029726309701800346, -0.011013458482921124, -0.005779313389211893, 0.014588848687708378, -0.00972282700240612, -0.06267524510622025, -0.0045464239083230495, 0.015337168239057064, -0.059374403208494186, -0.032736051827669144, -0.0017930228495970368, -0.008374285884201527, -0.0025365599431097507, 0.020959917455911636, -0.026859691366553307, -0.020708704367280006, -0.035473763942718506, 0.00860370323061943, -0.003935015294700861, 0.04037861153483391, -0.04578782618045807, 0.0030952729284763336, -0.02439984865486622, 0.04958594590425491, 0.005073259584605694, -0.005109318532049656, 0.023049673065543175, 0.021001845598220825, -0.03560730069875717, 0.03891073539853096, -0.04715363308787346, -0.07212837040424347, -0.00550890201702714, -0.022199993953108788, -0.041081491857767105, -0.014919348992407322, 0.007362304255366325, -0.029224202036857605, 0.01575411483645439, -0.030360937118530273, 0.05473095923662186, -0.0037312093190848827, -0.00397280789911747, -0.055922046303749084, 0.004289556760340929, 0.08170195668935776, 0.0038925032131373882, 0.019308676943182945, -0.009695325046777725, -0.01391784381121397, 0.002937267767265439, 0.013898846693336964, 0.04760207235813141, -0.004310826305299997, 0.01255524531006813, 0.04701574891805649, 0.0327591747045517, 0.02650117687880993, -0.009277616627514362, 0.008872676640748978, -0.059571314603090286, -0.03912633657455444, -0.03049660287797451, 0.016204919666051865, -0.022216899320483208, -0.02184244804084301, -0.024478906765580177, -0.014699273742735386, -0.03890669718384743, 0.002803071169182658, 0.04197103530168533, -0.03383307531476021, -0.007597856689244509, 0.05524066463112831, -0.021090760827064514, 0.02507188357412815, -0.021770253777503967, 0.036935508251190186, -0.009100090712308884, -0.025683656334877014, -0.05064188688993454, -0.010795826092362404, -0.00044815201545134187, -0.017686227336525917, -0.07119804620742798, 0.0009972433326765895, -0.011300216428935528, -0.00862154085189104, 0.0013612451730296016, -0.04870688542723656, 0.013360047712922096, 0.03072671964764595, -0.032491616904735565, 0.010679773986339569, -0.00018961240130010992, 0.018034040927886963, -0.002271938370540738, 0.03627510741353035, 0.03874493017792702, 0.09878092259168625, 0.011929663829505444, 0.027466684579849243, -0.025929367169737816, 0.02321181260049343, 0.03116009756922722, -0.03722085431218147, 0.013066946528851986, 0.014897230081260204, -0.03295078128576279, -0.0018034572713077068, -0.03122977539896965, -0.0341055691242218, -0.029509661719202995, -0.05102839693427086, 0.0318952240049839, 0.04000676050782204, -0.0079957889392972, -0.018230635672807693, -0.0076815406791865826, -0.00728788785636425, -0.03413252905011177, -0.024348337203264236, -0.007240943610668182, -0.020903155207633972, 0.007724321912974119, 0.00660706078633666, 0.06564049422740936, -0.021049674600362778, -0.055430278182029724, 0.03120848909020424, -0.029111197218298912, -0.041541680693626404, 0.07346267998218536, 0.001235542818903923, 0.009874778799712658, 0.030449047684669495, 0.021778810769319534, -0.03055497817695141, -0.016426673159003258, 0.030244255438447, 0.015805736184120178, 0.00006666535045951605, 0.020781265571713448, 0.02328459732234478, -0.032114412635564804, 0.04040829837322235, 0.02605372667312622, 0.004438991658389568, 0.03005971573293209, 0.023434292525053024, 0.06133229658007622, 0.03761490061879158, -0.03379334136843681, -0.035282205790281296, -0.052093181759119034, 0.01235324889421463, -0.017694922164082527, 0.016728347167372704, 0.006579827982932329, -0.05704411864280701, -0.03205780312418938, 0.01807657815515995, -0.012400937266647816, -0.037984251976013184, 0.010299807414412498, 0.0137706957757473, 0.01793946884572506, 0.014636936597526073, -0.026214227080345154, 0.06045955419540405, 0.0222431942820549, 0.008972838521003723, 0.0015936841955408454, 0.06166442483663559, -0.005936219822615385, -0.020314130932092667, -0.01143212802708149, 0.0346185602247715, 0.0008684201748110354, -0.029530493542551994, 0.03664861619472504, -0.0205455981194973, 0.03233388066291809, -0.002507480327039957, 0.035133205354213715, 0.02182859182357788, 0.020849276334047318, -0.006977263372391462, 0.022027190774679184, -0.045121967792510986, -0.006496710237115622, -0.018038833513855934, 0.04229913651943207, -0.03338975831866264, -0.03115534409880638, -0.014947740361094475, 0.0037189372815191746, -0.04871947318315506, -0.007591919973492622, 0.03716356307268143, -0.014092059805989265, 0.01299313921481371, -0.013087047263979912, -0.015722954645752907, -0.02108742855489254, -0.023133808746933937, 0.023159462958574295, 0.004681308753788471, -0.0003079562447965145, -0.027074549347162247, 0.03663083165884018, -0.0340409018099308, 0.009991152212023735, 0.029604250565171242, -0.04449345916509628, -0.018112635239958763, 0.030306434258818626, 0.0337025448679924, -0.044113315641880035, -0.012974971905350685, 0.0108991339802742, -0.030221564695239067, -0.03003060817718506, -0.0324830524623394, -0.011227872222661972, -0.011028832755982876, -0.007556443568319082, 0.0014853589236736298, 0.00006571014819201082, -0.02160627953708172, -0.0042176516726613045, 0.04993559047579765, 0.019775932654738426, 0.011336997151374817, -0.0550849586725235, -0.047645460814237595, -0.03248198330402374, 0.005878682713955641, -0.03996159881353378, 0.014800705946981907, 0.011746120639145374, -0.007542672101408243, 0.0296207033097744, -0.029756493866443634, -0.016212139278650284, 0.05560797080397606, 0.020058661699295044, -0.01751065067946911, 0.031448591500520706, 0.021614916622638702, -0.015464747324585915, 0.010311707854270935, 0.03863871097564697, 0.004892132245004177, 0.010679368861019611, 0.017901020124554634, 0.0028269304893910885, -0.03128762170672417, 0.002989169443026185, -0.03392215818166733, -0.035340316593647, -0.021310273557901382, -0.027691993862390518, 0.005356333218514919, 0.008798877708613873, -0.018116692081093788, 0.012063233181834221, 0.0012977690203115344, -0.010402078740298748, -0.013020179234445095, -0.008655671961605549, 0.006705177947878838, -0.0025517414323985577, -0.014376568607985973, -0.029746204614639282, 0.053364939987659454, -0.000796500185970217, -0.05240491032600403, 0.04961772635579109, 0.016395866870880127, 0.06250230967998505, -0.012717358767986298, -0.01870618760585785, 0.004601635504513979, -0.014182657934725285, -0.03831978142261505, -0.0038324692286551, 0.03237726166844368, -0.03182481601834297, -0.023470193147659302, -0.005637127906084061, -0.00601195776835084, 0.0001450544805265963, -0.002105639548972249, -0.023561421781778336, -0.02967103011906147, 0.023792767897248268, -0.030075952410697937, -0.03437650576233864, -0.07576083391904831, -0.009596244432032108, -0.0030740241054445505, -0.00739405769854784, 0.02379247173666954, 0.032846469432115555, -0.02978621795773506, 0.02164337784051895, -0.01940331421792507, -0.005176704842597246, -0.030896924436092377, -0.07372335344552994, -0.04933493956923485, 0.06391990184783936, 0.007911455817520618, 0.004247450269758701, 0.01833350956439972, 0.008998287841677666, -0.020652204751968384, -0.009556036442518234, -0.05134015157818794, -0.012749702669680119, 0.02200581505894661, 0.03689030185341835, 0.002755585592240095, 0.05372442677617073, 0.05123497173190117, -0.011417081579566002, -0.01771126687526703, -0.017065996304154396 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
# Code Llama: Llama 2 learns to code
[ 0.060790371149778366, -0.0012795026414096355, 0.09055475145578384, -0.005181597080081701, 0.1279270052909851, 0.011106620542705059, 0.03586728125810623, 0.014842678792774677, -0.029908178374171257, -0.014419346116483212, -0.04834416136145592, 0.04442955181002617, -0.061371851712465286, 0.08014295250177383, 0.022589419037103653, 0.005188379902392626, 0.013218756765127182, -0.038021519780159, 0.03156236931681633, 0.015376669354736805, -0.06850985437631607, -0.03797148913145065, 0.016276979818940163, -0.06916001439094543, 0.0016507022082805634, 0.029891060665249825, 0.002207983285188675, 0.008525329641997814, -0.06425049155950546, 0.034358035773038864, -0.05852606147527695, -0.029989728704094887, 0.06314485520124435, -0.02767150104045868, -0.010876848362386227, 0.01884029060602188, -0.12174396216869354, 0.04033205658197403, 0.03810944780707359, -0.08810800313949585, -0.050348103046417236, -0.0823502168059349, -0.028701264411211014, -0.009333771653473377, -0.035201672464609146, 0.014335684478282928, -0.23290389776229858, 0.04257650300860405, 0.008275548927485943, -0.051994163542985916, -0.0691070556640625, 0.04182353988289833, 0.021119361743330956, -0.03893965110182762, -0.01534503698348999, 0.001792827621102333, -0.020015081390738487, -0.020805183798074722, 0.0002836377825587988, 0.025675183162093163, 0.06841124594211578, 0.018219301477074623, 0.03949902951717377, 0.035364069044589996, 0.019368084147572517, 0.03185909613966942, 0.006323846522718668, 0.05192726105451584, -0.09449652582406998, 0.0016021426999941468, 0.020479807630181313, -0.07229415327310562, -0.057383082807064056, -0.07072578370571136, 0.04453400522470474, -0.08353199064731598, -0.0008495700894854963, 0.06505689024925232, 0.062457967549562454, 0.08649494498968124, -0.0033070070203393698, 0.022710653021931648, 0.07760843634605408, 0.1130438894033432, 0.031725361943244934, 0.01869012974202633, 0.04006297141313553, -0.03305913135409355, -0.022803710773587227, 0.03667140752077103, -0.051586419343948364, -0.1295994073152542, -0.07908977568149567, 0.03282947838306427, 0.07806536555290222, -0.038668982684612274, -0.016301793977618217, -0.033451735973358154, -0.009127344004809856, 0.002397437347099185, -0.03167811036109924, -0.04317039996385574, 0.04882572591304779, -0.04761678725481033, -0.07652747631072998, 0.018747543916106224, 0.008970036171376705, -0.07749664038419724, -0.07057271152734756, -0.0325850173830986, -0.0018723031971603632, -0.021317027509212494, 0.1142159029841423, 0.01240205392241478, -0.054909493774175644, 0.039091821759939194, 0.030278434976935387, 0.017408231273293495, -0.03937172889709473, 0.028505465015769005, -0.0149376867339015, 0.07630854845046997, 0.050938427448272705, 0.02897702530026436, 0.050996601581573486, 0.030963756144046783, -0.02711646817624569, 0.036688417196273804, -0.016628067940473557, -0.038387008011341095, 0.020200172439217567, 0.018658943474292755, 0.04706818610429764, -0.007071113679558039, 0.01244116760790348, -0.023204868659377098, -0.026114650070667267, -0.012901349924504757, -0.0024034802336245775, -0.022103222087025642, -0.021302323788404465, 0.0451425276696682, 0.04168150946497917, 0.0633508637547493, 0.04038117825984955, 0.005823594983667135, -0.06698516756296158, 0.043367113918066025, -0.02813573367893696, 0.007879387587308884, 0.0029744950588792562, 0.016576731577515602, -0.07140477001667023, -0.044934213161468506, 0.031635116785764694, -0.006299216765910387, -0.0034564181696623564, 0.002155363094061613, -0.0653911605477333, 0.04321941360831261, -0.000583210785407573, -0.0031992404256016016, -0.020278025418519974, -0.003987810108810663, 0.02363474853336811, -0.034858256578445435, -0.03530631959438324, 0.011833260767161846, 0.005107363685965538, -0.015933049842715263, -0.005128849763423204, -0.07132292538881302, 0.06489761918783188, -0.029872817918658257, -0.05741247534751892, 0.043515902012586594, 0.0360981784760952, 0.01637950725853443, 0.012214149348437786, 0.0217557605355978, -0.019340313971042633, -0.006019269581884146, -0.03829433023929596, 0.010380078107118607, -0.005435187369585037, -0.03672320768237114, -0.0033628572709858418, -0.04728657752275467, 0.014394277706742287, -0.012531648389995098, -0.04612962529063225, 0.019585153087973595, 0.031826794147491455, -0.009472065605223179, 0.009062841534614563, -0.05460677295923233, -0.04552089050412178, 0.12217986583709717, 0.08498795330524445, 0.08310534805059433, 0.0157022625207901, 0.05134546756744385, 0.055613432079553604, 0.04803403094410896, -0.053674325346946716, 0.04681965708732605, 0.05891045555472374, 0.029002098366618156, 0.035406433045864105, -0.0067461286671459675, -0.008227109909057617, -0.03894241154193878, 0.051026977598667145, -0.01879226602613926, 0.07262960076332092, 0.017806468531489372, -0.022100403904914856, 0.015056262724101543, 0.013490921817719936, -0.05556061118841171, 0.07563668489456177, -0.05849144235253334, -0.01576029695570469, -0.0026409446727484465, 0.0015299190999940038, 0.07832362502813339, 0.10228053480386734, -0.0020056944340467453, 0.11503790318965912, -0.12399991601705551, -0.03117864578962326, -0.0292886383831501, 0.004002762492746115, 0.06345181167125702, 0.06211072951555252, 0.006591702811419964, 0.005317109636962414, -0.02698138915002346, 0.04617040604352951, -0.03610161319375038, 0.017346521839499474, 0.019273456186056137, 0.00950363278388977, 0.03590409830212593, -0.054340723901987076, -0.07624730467796326, 0.03554573282599449, -0.010905679315328598, -0.02011691965162754, 0.014853224158287048, -0.0309589933604002, -0.012472422793507576, 0.06123429164290428, 0.024576431140303612, 0.03509816154837608, -0.0013178503140807152, -0.030847350135445595, -0.04241221025586128, -0.02570986934006214, 0.022624175995588303, 0.01953112706542015, -0.028423108160495758, -0.003684903960675001, -0.026397380977869034, -0.03889679163694382, -0.02040453627705574, 0.002495169173926115, 0.021587848663330078, -0.04276471585035324, 0.008618084713816643, 0.018781816586852074, -0.02410818636417389, 0.043474141508340836, -0.02438441850244999, 0.013857245445251465, -0.009255185723304749, 0.06344419717788696, -0.007374471519142389, -0.009723933413624763, -0.02244231477379799, -0.022810686379671097, -0.01379919983446598, 0.04138436168432236, 0.03623416647315025, 0.0036320521030575037, 0.006310201250016689, 0.001648161793127656, -0.02316993661224842, 0.02772313356399536, 0.04264197498559952, -0.012121444568037987, 0.02655956894159317, -0.024520747363567352, 0.00004644728687708266, 0.004989506211131811, -0.0419747494161129, -0.017234602943062782, 0.03956029936671257, 0.0010041937930509448, 0.02666478417813778, 0.022010771557688713, -0.011682185344398022, -0.020944979041814804, -0.013683833181858063, -0.03899417817592621, 0.032727159559726715, 0.031774308532476425, 0.005909476429224014, -0.13084597885608673, -0.03912370279431343, 0.02424651011824608, 0.016410095617175102, -0.003956978674978018, -0.02348821982741356, 0.05747989937663078, -0.05061274766921997, -0.01739495061337948, 0.006447982974350452, -0.02352614887058735, 0.019251186400651932, 0.021753616631031036, -0.008945943787693977, -0.020867101848125458, -0.029343700036406517, -0.04361803084611893, 0.021628037095069885, -0.005286786705255508, 0.00229449849575758, -0.03758852556347847, 0.06389019638299942, -0.025200137868523598, 0.017059288918972015, -0.021390344947576523, -0.00684468075633049, 0.030822018161416054, 0.016655828803777695, 0.026402341201901436, -0.025076929479837418, -0.015484881587326527, 0.02651769109070301, -0.02664930559694767, -0.0015692055458202958, -0.06202252581715584, 0.05253247171640396, 0.028831275179982185, -0.022431541234254837, 0.035891011357307434, 0.028752030804753304, 0.0319078229367733, -0.024028077721595764, 0.024850932881236076, -0.04561299830675125, -0.029255826026201248, -0.020125145092606544, -0.0206363033503294, -0.012691961601376534, 0.058421578258275986, -0.0465923510491848, -0.006427706219255924, -0.004679741803556681, 0.010631117038428783, 0.03907809779047966, 0.027735600247979164, -0.027390651404857635, 0.004024126101285219, 0.01496473141014576, 0.039606913924217224, -0.02049599215388298, -0.027941079810261726, 0.0024397852830588818, 0.001497554243542254, 0.0069579556584358215, -0.030515864491462708, 0.023611169308423996, 0.011619850061833858, 0.03837588429450989, -0.001364910276606679, 0.03955546393990517, 0.003683966351673007, -0.010316779837012291, -0.03154529258608818, 0.014309671707451344, -0.013319181278347969, 0.049724649637937546, -0.04371245577931404, -0.010113682597875595, 0.09075231105089188, -0.004022402688860893, 0.018609244376420975, -0.03637000545859337, 0.007863400503993034, -0.01426149345934391, -0.011387111619114876, -0.0078072031028568745, 0.003628382459282875, -0.012427575886249542, 0.01781337335705757, 0.05579289793968201, -0.030804278329014778, -0.002875278238207102, 0.014917336404323578, -0.0020918273366987705, 0.03558431193232536, 0.042547039687633514, 0.03688821196556091, -0.00943563412874937, -0.03775527700781822, 0.034133341163396835, 0.04529201611876488, -0.037400271743535995, -0.019945720210671425, 0.019478583708405495, 0.02768680267035961, 0.042332738637924194, -0.018892105668783188, -0.05042633041739464, 0.0030402615666389465, 0.006802720949053764, 0.006636554840952158, -0.059924278408288956, 0.008561398833990097, -0.022929904982447624, -0.01974264718592167, -0.009289257228374481, 0.008852018974721432, -0.04179440066218376, -0.04494771733880043, 0.01783689111471176, -0.056246474385261536, -0.006081164348870516, 0.002204437740147114, -0.005259724799543619, 0.02004932053387165, -0.024395527318120003, 0.052503492683172226, 0.006635390687733889, -0.005106758326292038, -0.004468471277505159, -0.03668736293911934, -0.04194276034832001, -0.009758979082107544, -0.03871200606226921, 0.014157973229885101, 0.010401283390820026, -0.001840043580159545, 0.036846913397312164, 0.019350552931427956, -0.0846722424030304, -0.040530186146497726, 0.023539630696177483, 0.026876289397478104, -0.02992689609527588, 0.037532273679971695, -0.031744927167892456, -0.01648736000061035, -0.012198788113892078, 0.0019171119201928377, 0.0093187615275383, 0.03839591518044472, -0.06602595746517181, -0.002130940556526184, 0.010931381955742836, -0.010303903371095657, 0.022802656516432762, 0.014774023555219173, 0.01050197146832943, -0.0031919803004711866, 0.055052392184734344, -0.0205900426954031, -0.018611809238791466, -0.06471285223960876, 0.0031941377092152834, 0.011309623718261719, -0.03223738446831703, 0.016598088666796684, -0.04297351837158203, 0.032647985965013504, -0.01768573373556137, 0.00367183331400156, 0.0015279012732207775, 0.04482664540410042, 0.008130193687975407, 0.006693270523101091, 0.02942897565662861, 0.008406080305576324, -0.004859773442149162, 0.01195825170725584, 0.004527294542640448, 0.00641163345426321, -0.014971805736422539, 0.02161390148103237, -0.01790253072977066, -0.011096211150288582, -0.006535142660140991, 0.017666015774011612, 0.028583522886037827, 0.0300791896879673, 0.032605379819869995, 0.023286689072847366, -0.012881092727184296, 0.028950683772563934, 0.008550802245736122, -0.011983388103544712, -0.006249878089874983, -0.008912162855267525, -0.01235178578644991, -0.016293717548251152, -0.011348086409270763, -0.012839608825743198, -0.02117147669196129, -0.016874995082616806, -0.029553530737757683, 0.0325503833591938, 0.011419218964874744, -0.004259993322193623, -0.03289397060871124, 0.016865387558937073, 0.0036140475422143936, 0.01333178672939539, -0.034313082695007324, -0.0016309958882629871, -0.027013860642910004, 0.008261686190962791, -0.03575749322772026, -0.028647979721426964, 0.005476455669850111, 0.02453666739165783, -0.014618423767387867, -0.0039852517656981945, 0.0012128521921113133, 0.0042992872186005116, 0.016241200268268585, 0.05189015716314316, 0.006628952920436859, 0.01939966343343258, 0.03393925353884697, 0.012144871056079865, 0.030815178528428078, 0.05286627262830734, -0.011102876625955105, 0.013254662975668907, 0.042637284845113754, -0.031861353665590286, 0.0022235128562897444, -0.07315344363451004, 0.013941902667284012, 0.011809238232672215, 0.034097738564014435, -0.012298754416406155, -0.013645158149302006, -0.04884796217083931, -0.0215065348893404, -0.021755335852503777, -0.014725768007338047, 0.06369465589523315, 0.03120816871523857, 0.003728389972820878, 0.01674438826739788, 0.0221750158816576, -0.024994703009724617, 0.019691316410899162, 0.030299540609121323, -0.002345816697925329, 0.032885994762182236, 0.018829312175512314, -0.01326766051352024, 0.0026055825874209404, -0.04484878107905388, 0.056730132550001144, -0.024948766455054283, -0.008601294830441475, 0.0224036555737257, 0.011843107640743256, 0.031440619379282, 0.040725547820329666, -0.016505764797329903, 0.01792437955737114, 0.038325440138578415, 0.009404654614627361, 0.02550896629691124, 0.027541767805814743, -0.0030228469986468554, 0.0022718252148479223, -0.05116446688771248, -0.00009822833089856431, 0.05020179599523544, 0.010840056464076042, 0.042917344719171524, 0.0029564525466412306, 0.03370238095521927, 0.024661412462592125, -0.007737479638308287, -0.0344807393848896, 0.02604888565838337, 0.06477349251508713, 0.018411561846733093, 0.04893183708190918, 0.0563814677298069, -0.008187541738152504, -0.027097363024950027, -0.017472783103585243, 0.020995181053876877, -0.03207714855670929, 0.05508236214518547, 0.04624313861131668, -0.006933634169399738, 0.031201187521219254, -0.04849435016512871, 0.07707860320806503, 0.037928879261016846, -0.0031111917924135923, -0.007152685895562172, 0.022561926394701004, 0.006591789424419403, -0.008608485572040081, 0.016037099063396454, 0.0007036590250208974, -0.020197702571749687, -0.03807588666677475, 0.02702922560274601, -0.014962554909288883, 0.017567215487360954, 0.010988098569214344, 0.016431206837296486, 0.04397190734744072, -0.011805887334048748, 0.008803188800811768, -0.011645977385342121, 0.03575386479496956, -0.02132721245288849, -0.00784847792237997, -0.02255936898291111, 0.0004974829498678446, -0.044329315423965454, 0.051073916256427765, -0.015013913623988628, -0.004126331303268671, -0.03202984854578972, 0.006629545707255602, 0.03409718722105026, 0.025981184095144272, 0.013053292408585548, -0.027785668149590492, -0.002998306415975094, 0.0014245046768337488, 0.0027257606852799654, -0.007016019430011511, -0.010628762654960155, 0.0015778172528371215, -0.003294143360108137, -0.004953515250235796, 0.014876228757202625, 0.012666262686252594, -0.026414545252919197, 0.014769485220313072, -0.013704477809369564, -0.042237039655447006, 0.026253901422023773, 0.02579946257174015, 0.01998062990605831, -0.030684005469083786, 0.013387108221650124, 0.00553071778267622, 0.008768103085458279, -0.006335302256047726, -0.04169706627726555, -0.008769871667027473, 0.002963930368423462, -0.02738415077328682, 0.05295372009277344, 0.011139122769236565, 0.013610889203846455, 0.00547889806330204, 0.002961809281259775, -0.029259052127599716, -0.01535144355148077, 0.025677423924207687, 0.007955576293170452, -0.03654539957642555, 0.00004481008363654837, 0.023181794211268425, 0.03152060508728027, -0.01569315418601036, 0.01785997860133648, 0.025846291333436966, -0.013074732385575771, -0.001007289974950254, -0.008919882588088512, 0.08520425856113434, -0.02674003876745701, 0.019350122660398483, 0.002478133887052536, 0.028740951791405678, -0.0017465362325310707, -0.03546961396932602, 0.055587347596883774, -0.028432613238692284, 0.016836345195770264, 0.0030764290131628513, -0.050560444593429565, -0.006642856169492006, -0.04789871349930763, -0.0107810627669096, 0.012457847595214844, -0.03584719076752663, -0.006420877296477556, 0.010904581286013126, 0.0016464042710140347, -0.03390493616461754, 0.017510714009404182, 0.0402894951403141, 0.014258000068366528, 0.04368288069963455, -0.01817225106060505, 0.006121640559285879, -0.016214363276958466, -0.032102249562740326, 0.03027379885315895, 0.01624239608645439, 0.02503129653632641, -0.025352904573082924, -0.02732883207499981, 0.009667989797890186, -0.048140037804841995, -0.01377433817833662, -0.005398462060838938, -0.022957412526011467, -0.030025064945220947, -0.005820062942802906, -0.04075320437550545, -0.009459034539759159, -0.01624891348183155, 0.03295553848147392, -0.01714474707841873, -0.0402938537299633, -0.006132539361715317, -0.00016712948854546994, -0.046896547079086304, 0.002795269014313817, 0.0013092274311929941, 0.016465822234749794, 0.030667558312416077, 0.07294609397649765, -0.013166042044758797, -0.009985381737351418, 0.0033042137511074543, 0.01891319453716278, 0.030829399824142456, -0.02386699989438057, -0.004012220539152622, -0.03397154435515404, -0.0035781858023256063, -0.03322095796465874, -0.032770492136478424, 0.028731761500239372, 0.015060797333717346, -0.030876806005835533, -0.015546846203505993, 0.005627333652228117, 0.0033264944795519114, 0.006013970822095871, 0.020167097449302673, 0.00031991422292776406, 0.06543198227882385, 0.018651429563760757, -0.007434864528477192, 0.011177517473697662, 0.04590955376625061 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Transformers Starting with transformers 4.33, you can use Code Llama and leverage all the tools within the HF ecosystem, such as: - training and inference scripts and examples - safe file format (safetensors) - integrations with tools such as bitsandbytes (4-bit quantization) and PEFT (parameter efficient fine-tuning) - utilities and helpers to run generation with the model - mechanisms to export the models to deploy bash !pip install --upgrade transformers
[ 0.012957220897078514, -0.009146787226200104, 0.0771162286400795, 0.05606938898563385, 0.1017584577202797, 0.03416474536061287, 0.028270378708839417, 0.027487559244036674, 0.007661199662834406, -0.008281566202640533, -0.08542847633361816, 0.08406326174736023, -0.03637918084859848, 0.0515812486410141, 0.009986259043216705, -0.03213644400238991, 0.01022709347307682, 0.0037102133501321077, -0.006541539914906025, 0.04987802729010582, 0.022503897547721863, -0.08715081959962845, 0.018377361819148064, -0.011121525429189205, -0.0011619222350418568, -0.060812607407569885, 0.052812136709690094, 0.051141396164894104, -0.016700580716133118, 0.06338128447532654, -0.09828446060419083, 0.0028809860814362764, -0.03235664591193199, -0.06074994429945946, 0.0031701030675321817, 0.010961738415062428, -0.12032583355903625, 0.037872057408094406, 0.021876053884625435, -0.0819864273071289, 0.05438374727964401, -0.05097546428442001, -0.05476725846529007, 0.009792603552341461, 0.019576366990804672, -0.019496867433190346, -0.15991339087486267, 0.04615103453397751, -0.034512341022491455, -0.021815955638885498, -0.07820533215999603, 0.09986715763807297, 0.018379071727395058, -0.03939327225089073, 0.08722906559705734, 0.013316195458173752, 0.005389710888266563, -0.04669329896569252, -0.01781518943607807, 0.07257578521966934, 0.021571509540081024, -0.04481830820441246, -0.006507917772978544, 0.024243563413619995, 0.06154169887304306, -0.01607721485197544, -0.01059820968657732, -0.02271108329296112, -0.016796784475445747, -0.03879458084702492, 0.008481772616505623, -0.008778556250035763, -0.04685790091753006, -0.08236395567655563, -0.0017105566803365946, -0.08647298812866211, -0.04174496605992317, 0.07092896103858948, 0.04014983028173447, 0.03870364651083946, 0.01511357631534338, 0.08993013203144073, 0.08211784809827805, 0.043906550854444504, 0.04668024554848671, 0.0274801105260849, 0.05530563369393349, -0.009773594327270985, -0.05409443378448486, 0.08174052834510803, 0.018882587552070618, -0.15586480498313904, -0.10192417353391647, 0.015805559232831, 0.04552114009857178, 0.015116432681679726, 0.016464844346046448, -0.007422648835927248, -0.03289211913943291, -0.03161363676190376, -0.04287467524409294, -0.00909027736634016, 0.00654760655015707, -0.05479392409324646, 0.03317807987332344, -0.01820085383951664, -0.011941694654524326, -0.10586134344339371, -0.02402060106396675, -0.012123401276767254, 0.015410849824547768, -0.07224710285663605, 0.0802057757973671, 0.06097151339054108, -0.030072350054979324, 0.0009017531992867589, 0.01322245690971613, -0.06176692247390747, 0.026798129081726074, 0.029514405876398087, 0.037328917533159256, 0.07426435500383377, 0.022745443508028984, 0.021768340840935707, 0.04820546880364418, 0.07075249403715134, -0.02062523178756237, -0.01729903370141983, 0.015162835828959942, 0.006321403197944164, 0.04238000139594078, -0.04331168159842491, 0.04387541115283966, -0.03927162289619446, -0.017934296280145645, -0.0773196667432785, -0.04159386456012726, -0.06735969334840775, -0.0384814590215683, 0.0013211129698902369, 0.009644427336752415, 0.07018233090639114, 0.02819744125008583, -0.030674388632178307, 0.009684201329946518, -0.03863438963890076, -0.03682456538081169, 0.0985790267586708, 0.034777965396642685, 0.021351125091314316, 0.014263158664107323, 0.060504645109176636, -0.0231323204934597, -0.03620506450533867, 0.04138074070215225, 0.008506888523697853, 0.001012958469800651, 0.013484501279890537, -0.06924407184123993, -0.05709867924451828, -0.03361954912543297, -0.04776586592197418, -0.019338127225637436, -0.03910033777356148, 0.016783645376563072, -0.053663745522499084, -0.02263483963906765, 0.005895695183426142, 0.0076159341260790825, 0.0148739879950881, 0.02640673518180847, -0.010279761627316475, 0.07991832494735718, -0.04058890417218208, -0.02571941167116165, 0.04429386556148529, 0.08094555884599686, 0.06931035965681076, 0.022383930161595345, -0.013218970969319344, -0.06196422502398491, 0.06722452491521835, -0.03423464298248291, 0.049260422587394714, 0.021800443530082703, -0.08168359845876694, 0.04009446129202843, -0.04735216125845909, 0.04422465339303017, 0.06546717882156372, -0.04564715921878815, -0.0019031648989766836, 0.11625336855649948, -0.00447077676653862, 0.07262574881315231, -0.0006908075301907957, 0.0031249471940100193, 0.12650348246097565, 0.05747635290026665, 0.008215770125389099, 0.015315418131649494, 0.06088300794363022, 0.0029041627421975136, -0.013880307786166668, -0.03369159623980522, 0.0434105359017849, -0.0025484163779765368, -0.015318946912884712, 0.03285035490989685, 0.014350726269185543, 0.03852669894695282, -0.05872257798910141, 0.03282353654503822, -0.06803470849990845, 0.03318638727068901, -0.028030995279550552, -0.04701345041394234, 0.015733826905488968, 0.0008377471822313964, 0.0010904312366619706, 0.10759728401899338, -0.028537122532725334, -0.025159919634461403, -0.021571049466729164, 0.014408009126782417, 0.02222817949950695, 0.0741024762392044, 0.015504765324294567, 0.06268233805894852, -0.0912369042634964, 0.0030634182039648294, -0.03227706253528595, -0.049959950149059296, 0.029191646724939346, 0.00635765353217721, -0.021909579634666443, -0.014562644995748997, 0.022194989025592804, 0.027328791096806526, 0.011664217337965965, 0.04326535388827324, 0.03255510330200195, -0.03215761482715607, 0.010965928435325623, 0.008346060290932655, -0.011258161626756191, 0.06796962022781372, 0.013625916093587875, 0.01622278243303299, 0.03283729404211044, -0.09830938279628754, 0.030394425615668297, 0.03695574775338173, -0.042308274656534195, -0.0004204870492685586, 0.004432596266269684, 0.013642534613609314, 0.006658753380179405, -0.02966938726603985, 0.03064560703933239, -0.021401701495051384, 0.005022779107093811, -0.02232612483203411, -0.052615758031606674, -0.017332790419459343, -0.01603633351624012, 0.0016180401435121894, 0.004568090662360191, -0.0385470949113369, -0.040152404457330704, -0.007943592965602875, -0.038128867745399475, 0.043922703713178635, -0.008350327610969543, 0.04293147847056389, 0.004262196831405163, 0.08380360901355743, 0.004034786019474268, -0.016683775931596756, 0.012353889644145966, -0.00906419474631548, 0.0014507189625874162, 0.04469004273414612, 0.013993690721690655, 0.006883705500513315, 0.018938271328806877, -0.013516709208488464, -0.06467212736606598, -0.009129024110734463, -0.002793268533423543, 0.011705470271408558, 0.014076942577958107, 0.019554683938622475, 0.010834410786628723, -0.015526734292507172, 0.0038235641550272703, -0.02110467106103897, 0.02565891668200493, -0.02963886968791485, 0.006159048993140459, 0.022718746215105057, -0.006106068845838308, 0.0147384162992239, -0.024313153699040413, 0.0021738524083048105, 0.013593253679573536, 0.0022423735354095697, -0.00864288117736578, -0.101103775203228, -0.024374889209866524, -0.029352376237511635, 0.030770570039749146, -0.005178702995181084, -0.029024744406342506, 0.05273113772273064, 0.0022649678867310286, 0.02142159454524517, 0.01831107772886753, -0.00975876022130251, -0.007460620254278183, 0.01423606276512146, 0.009744130074977875, 0.006678587757050991, -0.030491773039102554, -0.024294419214129448, -0.001968510914593935, 0.02699192985892296, 0.02844550460577011, -0.02645586058497429, 0.05919787660241127, 0.02604646421968937, -0.0033344440162181854, -0.01558774895966053, -0.004578807856887579, 0.06110118329524994, 0.017066631466150284, -0.030188940465450287, -0.044891249388456345, 0.020063595846295357, -0.0065564801916480064, -0.004718150943517685, -0.0018988302908837795, -0.01027139462530613, -0.013983507640659809, -0.03561381250619888, -0.0012681246735155582, 0.043992895632982254, 0.011401106603443623, 0.00912205409258604, -0.004111524671316147, -0.007369949948042631, -0.025290336459875107, -0.017979305237531662, -0.011192567646503448, -0.01663908176124096, -0.021210087463259697, 0.01614442653954029, -0.024287134408950806, -0.04005379602313042, -0.0403757318854332, 0.0135852862149477, 0.03324023261666298, 0.014166926965117455, 0.0014972937060520053, 0.007352558430284262, 0.03292892500758171, 0.0150532815605402, 0.0125286765396595, -0.09501978009939194, 0.023974517360329628, 0.00845693051815033, -0.021731847897171974, -0.03694920986890793, 0.06265755742788315, 0.016487782821059227, -0.007150151766836643, 0.0035725359339267015, 0.00795700866729021, -0.013190624304115772, 0.035987261682748795, 0.004911559633910656, 0.012003444135189056, -0.05060569569468498, 0.011784442700445652, -0.015503124333918095, 0.004359833430498838, 0.07203234732151031, 0.010824928060173988, -0.011777076870203018, -0.07091505825519562, -0.002983004553243518, -0.027821945026516914, 0.0011635205009952188, 0.02386704459786415, 0.022238178178668022, -0.03000115416944027, 0.027837814763188362, 0.02108757384121418, 0.028283752501010895, -0.046389564871788025, 0.005246073938906193, -0.018610961735248566, -0.015582612715661526, 0.01720576174557209, 0.006820827256888151, -0.023875130340456963, -0.04508957639336586, 0.019494211301207542, 0.01889599673449993, -0.05450078472495079, 0.004843402653932571, -0.0224204882979393, -0.04137430712580681, 0.008538713678717613, -0.014784516766667366, -0.045008499175310135, -0.018646473065018654, 0.025937112048268318, -0.002772256499156356, -0.014926807023584843, -0.020466705784201622, -0.003001210745424032, 0.0007805090863257647, 0.018954049795866013, -0.02134617231786251, -0.026053015142679214, -0.04094959422945976, 0.0317811481654644, -0.023432554677128792, -0.01388141606003046, -0.0002023051492869854, -0.04814182221889496, 0.025634562596678734, -0.023681432008743286, 0.06509178876876831, 0.04977819323539734, -0.012807413004338741, 0.018254023045301437, -0.002128337509930134, -0.02625737339258194, 0.023107074201107025, 0.02775505743920803, 0.02984190359711647, 0.025349659845232964, -0.019625922664999962, 0.02191399410367012, -0.015400891192257404, -0.04687265679240227, -0.008184115402400494, 0.02261858992278576, 0.0423569530248642, -0.037039048969745636, 0.03505019471049309, -0.031826842576265335, -0.003876474918797612, -0.02059544250369072, -0.02409956231713295, 0.012793024070560932, 0.033999908715486526, -0.02515147626399994, 0.0029675804544240236, -0.011601272970438004, -0.015685144811868668, -0.017849359661340714, 0.0021873104851692915, 0.003858182579278946, 0.03142091631889343, 0.040912795811891556, 0.04205481335520744, 0.015784576535224915, -0.07282103598117828, -0.0027858929242938757, 0.020219791680574417, 0.014722541905939579, -0.021895989775657654, -0.05703626200556755, -0.02958769164979458, -0.009889841079711914, -0.02030457742512226, -0.013185575604438782, 0.02920808643102646, -0.01937936432659626, -0.05548102408647537, 0.06274890154600143, 0.06318949908018112, 0.010246138088405132, 0.004933597519993782, 0.009528874419629574, 0.009994938038289547, -0.0499197319149971, 0.028780121356248856, 0.002660545753315091, -0.0014589568600058556, 0.018205607309937477, 0.04542531818151474, 0.03497854992747307, 0.015874015167355537, -0.003467746777459979, 0.010727893561124802, -0.025164056569337845, 0.0038256673142313957, -0.0066442061215639114, -0.04663022980093956, -0.022241096943616867, 0.007251337170600891, 0.004151420202106237, 0.00007388275116682053, -0.019411368295550346, 0.030574534088373184, 0.05266288295388222, -0.03195040673017502, -0.03399820998311043, 0.007478958927094936, -0.0317213237285614, 0.017676960676908493, -0.027428055182099342, 0.049278322607278824, -0.037073951214551926, 0.03940645232796669, 0.002680335659533739, -0.007050120737403631, 0.007756560109555721, -0.0076608806848526, -0.04079167917370796, -0.001969896024093032, 0.025425905361771584, -0.013957012444734573, 0.0008693748386576772, -0.04049750417470932, -0.014052881859242916, 0.036929089576005936, 0.01519080065190792, 0.029542475938796997, -0.03374335542321205, 0.004331271629780531, 0.017330190166831017, 0.016285236924886703, 0.010357744991779327, 0.07180416584014893, -0.010468745604157448, 0.0031308780889958143, 0.012819030322134495, 0.0064478362910449505, 0.02949911542236805, -0.05151677876710892, 0.015130504965782166, 0.04391378164291382, -0.020273197442293167, 0.0009986660443246365, -0.0219877902418375, -0.028508394956588745, -0.0221669040620327, -0.03454434126615524, 0.05482613295316696, 0.05971216410398483, -0.013968238607048988, -0.009851906448602676, -0.003963354043662548, 0.003130948403850198, -0.003882827004417777, 0.022090790793299675, 0.02093886211514473, 0.02051880769431591, 0.045114874839782715, 0.019424259662628174, 0.03389569744467735, 0.02680501900613308, -0.008543135598301888, -0.007179609965533018, -0.02743375673890114, -0.006109069567173719, 0.040280915796756744, -0.014697454869747162, 0.0271658543497324, -0.010216585360467434, -0.0011801602086052299, -0.008748676627874374, -0.0007625967846252024, -0.021608879789710045, 0.05386677011847496, 0.005242899060249329, 0.02096150815486908, -0.004492155276238918, -0.030334684997797012, 0.062238436192274094, -0.020591266453266144, 0.034141235053539276, 0.003474637633189559, 0.029196130111813545, 0.06371501088142395, 0.057660285383462906, -0.027285227552056313, 0.008214360103011131, -0.003582811914384365, 0.03503793105483055, 0.03923773393034935, -0.00681858928874135, 0.04639076068997383, -0.030008142814040184, -0.038541022688150406, -0.030942277982831, -0.007660585455596447, -0.04208069667220116, 0.018126556649804115, 0.016113167628645897, -0.022690126672387123, -0.0004886609967797995, -0.05250674858689308, 0.06635426729917526, 0.03695374354720116, 0.02862393669784069, 0.005872342269867659, 0.042881786823272705, -0.006394368130713701, 0.03742218017578125, -0.0010859286412596703, 0.010933461599051952, 0.04129766300320625, -0.0026987092569470406, 0.053788233548402786, 0.00486814696341753, 0.05373312905430794, 0.0007547485874965787, -0.005106904078274965, 0.01889858953654766, 0.001131662866100669, 0.020611144602298737, 0.022981993854045868, 0.012209808453917503, -0.04686930403113365, -0.020677924156188965, 0.017354603856801987, -0.035550378262996674, -0.03326084464788437, -0.009880511090159416, -0.015128844417631626, -0.05170437693595886, -0.02368367463350296, 0.003502547275274992, 0.05072832852602005, -0.0006247665151022375, -0.028688527643680573, -0.020340945571660995, -0.009319618344306946, 0.015261724591255188, 0.04034662991762161, -0.01595635525882244, -0.02333623729646206, -0.02564178965985775, -0.02403734251856804, -0.01544628944247961, 0.04449547454714775, 0.0017134182853624225, -0.028566403314471245, 0.019553402438759804, 0.008666431531310081, 0.01032275427132845, 0.04888547956943512, 0.027181435376405716, 0.014367057941854, -0.07124903798103333, -0.0227492805570364, -0.007980216294527054, -0.023844074457883835, -0.003963841125369072, -0.022287875413894653, 0.019485516473650932, -0.022708680480718613, 0.015316133387386799, 0.03216871619224548, 0.028070077300071716, -0.016818834468722343, 0.0011225225171074271, -0.00559763889759779, -0.005244891159236431, -0.028247306123375893, 0.027200229465961456, -0.026429401710629463, 0.008954137563705444, -0.00829336792230606, -0.01840643770992756, 0.048284705728292465, -0.006770126521587372, 0.011904423125088215, 0.049941886216402054, 0.007047978695482016, -0.017447305843234062, 0.01435002125799656, 0.05324670299887657, 0.007726260926574469, 0.01290726289153099, 0.018479924649000168, -0.0022683015558868647, -0.0027761661913245916, -0.013305312022566795, -0.007174775470048189, -0.029140803962945938, 0.018302088603377342, -0.011751417070627213, -0.0507299080491066, -0.04838459566235542, 0.009802947752177715, 0.020660998299717903, 0.014878903515636921, -0.04796186089515686, 0.014675460755825043, -0.04149061068892479, -0.028701594099402428, -0.011175074614584446, -0.02417968213558197, 0.02562466636300087, 0.04358599707484245, 0.02454984001815319, -0.02026422694325447, -0.013172912411391735, -0.008407785557210445, -0.01800272800028324, -0.0005656594294123352, 0.052628565579652786, 0.01985216699540615, -0.017703209072351456, -0.04140709713101387, -0.02171601913869381, -0.00021648859546985477, -0.050116945058107376, -0.03584744781255722, 0.03280268982052803, -0.026452114805579185, -0.0008771376451477408, -0.03249996900558472, 0.013535959646105766, 0.01959807612001896, 0.02324901521205902, -0.00057984609156847, 0.01235187891870737, 0.007352093234658241, -0.03673075884580612, -0.05048934742808342, 0.011172645725309849, -0.02825477533042431, -0.028496257960796356, 0.006705233361572027, 0.045150816440582275, -0.010327905416488647, 0.005642058327794075, -0.0176310446113348, -0.01816568151116371, -0.007337486837059259, -0.04192528873682022, -0.05690877139568329, -0.0031166865956038237, 0.030774995684623718, -0.03460304066538811, -0.03484693914651871, 0.01321606244891882, 0.01817995309829712, -0.04669969156384468, 0.012716186232864857, 0.0023625160101801157, -0.00003556892625056207, -0.0051728892140090466, 0.018444078043103218, 0.012218402698636055, 0.05827609449625015, 0.045685064047575, -0.017507396638393402, -0.01592547819018364, 0.009468892589211464 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Code Completion The 7B and 13B models can be used for text/code completion or infilling. The following code snippet uses the pipeline interface to demonstrate text completion. It runs on the free tier of Colab, as long as you select a GPU runtime. python from transformers import AutoTokenizer import transformers import torch tokenizer = AutoTokenizer.from_pretrained("codellama/CodeLlama-7b-hf") pipeline = transformers.pipeline( "text-generation", model="codellama/CodeLlama-7b-hf", torch_dtype=torch.float16, device_map="auto", ) sequences = pipeline( 'def fibonacci(', do_sample=True, temperature=0.2, top_p=0.9, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id, max_length=100, ) for seq in sequences: print(f"Result: {seq['generated_text']}") This may produce output like the following: python Result: def fibonacci(n): if n == 0: return 0 elif n == 1: return 1 else: return fibonacci(n-1) + fibonacci(n-2) def fibonacci_memo(n, memo={}): if n == 0: return 0 elif n == 1: return Code Llama is specialized in code understanding, but it's a language model in its own right. You can use the same generation strategy to autocomplete comments or general text.
[ 0.054155200719833374, -0.082109235227108, 0.021968474611639977, 0.0032401131466031075, 0.023473290726542473, 0.06196548417210579, 0.040905650705099106, 0.06000478193163872, 0.0022416114807128906, 0.005921805277466774, -0.04818183556199074, 0.005981454625725746, 0.028844961896538734, 0.045934125781059265, 0.012494565919041634, 0.026906942948698997, 0.09491579979658127, 0.029228154569864273, -0.019427252933382988, 0.04821416363120079, -0.017557311803102493, 0.005327576771378517, 0.07574810087680817, -0.009063531644642353, -0.03928154334425926, -0.09669654071331024, 0.011084625497460365, 0.012619376182556152, -0.0932186022400856, 0.029892385005950928, -0.07848698645830154, 0.007980862632393837, 0.013972997665405273, -0.018321136012673378, -0.022412313148379326, -0.010191547684371471, -0.07306142896413803, 0.045794758945703506, 0.06632602959871292, -0.004378675017505884, -0.030836420133709908, -0.042465146631002426, -0.011971387080848217, 0.05751127749681473, 0.003069395897909999, 0.04180131480097771, -0.13307702541351318, 0.044936906546354294, -0.038766536861658096, -0.053064703941345215, -0.07998262345790863, 0.0554729588329792, -0.032382335513830185, -0.03113810531795025, 0.011627675965428352, 0.046329665929079056, -0.022548848763108253, -0.05036681517958641, 0.024488095194101334, 0.04269838705658913, 0.030992252752184868, 0.048593197017908096, 0.005783149041235447, 0.052277084439992905, 0.04341079667210579, -0.02043016441166401, -0.04839546978473663, 0.0350436307489872, -0.09399741888046265, 0.022206762805581093, -0.009748953394591808, -0.03971931338310242, -0.045822493731975555, -0.03407769650220871, -0.02961145155131817, -0.04980402812361717, -0.00889546051621437, 0.03423623740673065, 0.014097915962338448, 0.05598649010062218, -0.008279669098556042, 0.04126795381307602, 0.04936014860868454, 0.026587069034576416, 0.02568274922668934, 0.041707638651132584, -0.011603504419326782, -0.08868640661239624, 0.005069035105407238, 0.03536051884293556, -0.03903878480195999, -0.1540614366531372, 0.019069937989115715, 0.02773483470082283, -0.015060381963849068, -0.0624399334192276, -0.009431888349354267, 0.06133429706096649, -0.09016303718090057, -0.04660140350461006, -0.012472088448703289, -0.08575115352869034, -0.004600681364536285, -0.04573036730289459, -0.11924010515213013, 0.03799888864159584, -0.06174709275364876, -0.042833361774683, -0.04727819561958313, -0.0335034541785717, -0.0032499649096280336, -0.06223104149103165, -0.020500656217336655, 0.08898484706878662, -0.10562250018119812, -0.00755314901471138, -0.003416897263377905, 0.070193350315094, -0.0851287916302681, 0.042265500873327255, -0.022821050137281418, 0.049286577850580215, 0.06686776876449585, 0.028455492109060287, 0.00770706357434392, 0.09288201481103897, -0.0340859480202198, 0.04076191037893295, -0.013280936516821384, -0.0010348580544814467, 0.0667513757944107, 0.008783487603068352, 0.018773013725876808, -0.06021532416343689, -0.004334703553467989, -0.05965152382850647, -0.04314226657152176, -0.0844033733010292, -0.005001652520149946, 0.022099671885371208, 0.005677758250385523, 0.0755237489938736, 0.020942119881510735, 0.023886198177933693, 0.07681707292795181, -0.03752008453011513, -0.08127445727586746, 0.07390578091144562, -0.0004473909502848983, 0.051071494817733765, -0.044840723276138306, 0.019650282338261604, -0.03545353561639786, 0.0010393434204161167, 0.01469912938773632, 0.03556569665670395, -0.005419256631284952, -0.0076295314356684685, -0.009763805195689201, -0.022451041266322136, -0.004569901619106531, 0.02514912746846676, -0.016905516386032104, -0.020003220066428185, -0.011182589456439018, -0.023338424041867256, 0.054346807301044464, 0.012806361541152, 0.048628393560647964, 0.017945868894457817, 0.0003181320207659155, -0.0389777235686779, 0.06428268551826477, -0.06578633189201355, -0.012462460435926914, 0.010008085519075394, 0.06406556814908981, -0.04106585681438446, -0.02649771422147751, -0.042595621198415756, -0.011489595286548138, -0.012241743505001068, -0.0013709550257772207, 0.030890345573425293, 0.010693388991057873, -0.09717404097318649, 0.016392305493354797, -0.06441300362348557, -0.0012405319139361382, 0.026737267151474953, -0.007547358516603708, -0.027727462351322174, 0.058265067636966705, -0.030749594792723656, 0.040594156831502914, -0.036336902529001236, -0.024766787886619568, -0.0002449127205181867, 0.06645655632019043, 0.05920141190290451, 0.052845001220703125, 0.02955695427954197, 0.058317121118307114, -0.03694409504532814, 0.008494635112583637, -0.0046485913917422295, 0.05873703956604004, -0.018227338790893555, -0.0001408256939612329, -0.00073528807843104, 0.05406293645501137, -0.08339736610651016, 0.035459212958812714, -0.09014547616243362, 0.03229159489274025, 0.01215065736323595, -0.06288812309503555, 0.015906505286693573, 0.015925858169794083, 0.007097005844116211, 0.1670783907175064, -0.07036735117435455, -0.01430142018944025, -0.09578049927949905, -0.005380251444876194, 0.0256393700838089, 0.04928412288427353, 0.07598413527011871, 0.036691006273031235, -0.012543848715722561, -0.027992814779281616, -0.0681534856557846, -0.0033374715130776167, 0.04922894760966301, -0.009378507733345032, -0.03985600918531418, 0.014460890553891659, 0.055632755160331726, -0.026094920933246613, 0.01329510286450386, 0.004201478324830532, 0.01132493931800127, -0.040194690227508545, 0.016642548143863678, -0.009017053060233593, -0.02291545271873474, 0.05452972277998924, -0.004525503143668175, -0.009189940057694912, 0.006907344795763493, -0.03222503513097763, 0.056386057287454605, 0.0002444273268338293, -0.02664761431515217, 0.07046151161193848, 0.005376575514674187, 0.005700026173144579, -0.030197780579328537, -0.016489079222083092, 0.047727037221193314, -0.01697349175810814, -0.03193442523479462, -0.03539996221661568, -0.03990571200847626, -0.023342425003647804, -0.018691109493374825, 0.014954864047467709, -0.006742831319570541, 0.0008818610804155469, 0.031534966081380844, -0.01920498162508011, -0.028427816927433014, 0.05028832331299782, 0.017092764377593994, 0.022811805829405785, 0.03836851567029953, 0.054486505687236786, 0.015482084825634956, -0.04885144531726837, -0.05527346208691597, -0.005476873368024826, -0.013356496579945087, 0.028862373903393745, 0.022021805867552757, 0.002232667524367571, -0.009014754556119442, -0.03994983807206154, -0.0251916591078043, -0.021712148562073708, 0.016106216236948967, -0.03508962690830231, 0.02392701432108879, 0.0024883635342121124, -0.03811325877904892, -0.009986694902181625, 0.009644250385463238, -0.005299475975334644, 0.00906430371105671, -0.04395222291350365, 0.0027249737177044153, -0.027314092963933945, -0.03756352514028549, -0.026538940146565437, -0.020062940195202827, -0.009649409912526608, 0.007243759464472532, 0.05273718014359474, 0.012857240624725819, -0.09280708432197571, -0.0377621054649353, -0.01211975235491991, -0.005387891083955765, 0.0203001257032156, -0.018794750794768333, 0.020746689289808273, 0.014459364116191864, -0.044448960572481155, -0.002613613847643137, -0.041256558150053024, 0.009532714262604713, 0.005156333092600107, 0.0010779929580166936, -0.016084030270576477, 0.0029265242628753185, -0.03917915001511574, 0.02408154495060444, 0.022239208221435547, 0.03652039170265198, -0.02554704062640667, 0.055275674909353256, -0.03309519588947296, 0.01789276860654354, -0.019498145207762718, -0.05097676068544388, 0.012363537214696407, 0.028495758771896362, 0.015517215244472027, -0.016676563769578934, -0.01105562411248684, -0.0086412588134408, -0.007432485930621624, 0.01760171540081501, -0.025448814034461975, 0.019536908715963364, 0.01883554644882679, -0.023488257080316544, -0.003936858382076025, 0.02960049733519554, -0.007523748092353344, -0.0028556878678500652, -0.013703315518796444, -0.007751044817268848, -0.006685306783765554, -0.02514232136309147, -0.0072006722912192345, -0.03259185329079628, 0.02366725541651249, -0.03490849956870079, -0.04149070009589195, -0.03365183249115944, 0.023536361753940582, 0.041588686406612396, 0.042225662618875504, -0.03043675608932972, 0.006565808318555355, 0.018703963607549667, 0.041832879185676575, 0.012279250659048557, -0.06348851323127747, -0.0004893523291684687, -0.02591574378311634, 0.0007536151679232717, -0.03283090516924858, 0.03017685003578663, 0.03810865804553032, -0.01040431298315525, -0.03915903717279434, 0.020723069086670876, 0.0034156760666519403, 0.0753079280257225, 0.005969990976154804, 0.002650955691933632, -0.012134979479014874, 0.01738641783595085, -0.04970887675881386, -0.017499957233667374, 0.06787925958633423, 0.03154149651527405, -0.02472991682589054, -0.060971468687057495, -0.042715173214673996, -0.012356759048998356, 0.014519943855702877, -0.009370937012135983, 0.016247078776359558, -0.049283791333436966, 0.021886153146624565, 0.016237549483776093, 0.026017015799880028, -0.03191567584872246, 0.03853648900985718, 0.02935667894780636, 0.02211959846317768, 0.010221892036497593, -0.040200699120759964, 0.01359813753515482, -0.029252992942929268, 0.01796784996986389, 0.019840257242321968, -0.05402342230081558, 0.007946403697133064, 0.04364960640668869, 0.017186030745506287, 0.04337787255644798, -0.06061350926756859, -0.007642202079296112, -0.011593993753194809, -0.006764197256416082, -0.029113108292222023, -0.021388255059719086, 0.016626955941319466, -0.0014301770133897662, 0.0198435727506876, 0.051231395453214645, 0.014741391874849796, -0.08493340015411377, -0.014596326276659966, 0.005401925183832645, -0.06568317115306854, -0.01686634123325348, 0.010657423175871372, -0.03550245985388756, 0.04107137396931648, 0.0019003559136763215, 0.02246040664613247, 0.01143694669008255, 0.00630012433975935, 0.0166094359010458, -0.01743745058774948, -0.018091736361384392, -0.0012883612653240561, 0.01707437075674534, -0.04406966269016266, -0.01076775323599577, -0.03878767415881157, -0.006701716687530279, 0.005389019381254911, -0.028713131323456764, -0.06255175173282623, 0.009920190088450909, 0.012047449126839638, -0.026275454089045525, 0.004346680361777544, -0.010811340063810349, -0.004306022543460131, 0.01381564699113369, -0.021061038598418236, 0.016337905079126358, 0.07189708203077316, -0.007983673363924026, -0.016370529308915138, -0.006659385282546282, 0.058468278497457504, 0.0071296654641628265, 0.024896100163459778, 0.013410333544015884, 0.0014436300843954086, 0.012039532884955406, 0.025689613074064255, 0.0008577523403801024, -0.02553291618824005, 0.04854524880647659, 0.0025538441259413958, -0.005534348078072071, -0.010732078924775124, -0.05211722105741501, 0.025508714839816093, 0.05258047580718994, -0.027648696675896645, 0.01742352917790413, -0.009968563914299011, -0.02426687814295292, 0.004632412921637297, 0.01269754208624363, 0.05628376826643944, -0.013879130594432354, -0.02624380961060524, -0.0073242150247097015, 0.014011841267347336, -0.024382710456848145, 0.06159617006778717, 0.04861880838871002, 0.028756946325302124, 0.03130238503217697, 0.04144774377346039, 0.059497661888599396, 0.03295860439538956, 0.0049588908441364765, 0.01710715889930725, -0.01716577634215355, -0.020358195528388023, -0.03273990377783775, 0.022249972447752953, -0.01960822194814682, -0.01106414943933487, 0.013897839933633804, -0.028794145211577415, -0.010363971814513206, 0.02797785960137844, -0.006905234884470701, -0.01320262998342514, 0.026914067566394806, 0.06945810467004776, 0.03943639621138573, 0.0032377485185861588, -0.029633188620209694, 0.02297603338956833, -0.05712655186653137, 0.006880526896566153, -0.020345935598015785, 0.012036358937621117, 0.0039004809223115444, 0.01903395727276802, -0.0011775930179283023, 0.025441832840442657, 0.00828434620052576, 0.021621767431497574, 0.02907157503068447, 0.005563289392739534, -0.012839197181165218, 0.04142672196030617, 0.02327195182442665, 0.037650011479854584, -0.0026343190111219883, -0.0003504969645291567, 0.02136039175093174, -0.0027061286382377148, 0.014666090719401836, 0.059416987001895905, -0.03789380565285683, 0.000085042578575667, 0.01161376666277647, 0.02115185186266899, -0.02112509496510029, -0.02578461542725563, 0.009323063306510448, 0.002271107165142894, -0.03497568145394325, -0.008212830871343613, -0.03204499930143356, -0.02682013064622879, -0.009061549790203571, -0.03641641139984131, 0.02831200510263443, 0.06957406550645828, 0.010043740272521973, -0.003886189078912139, 0.03339572250843048, 0.04323958978056908, -0.021681154146790504, -0.03767793998122215, 0.003414591308683157, -0.0028791320510208607, 0.04357978329062462, 0.034528959542512894, -0.015131093561649323, 0.024982651695609093, 0.00217655417509377, 0.03939231485128403, -0.045463718473911285, -0.003505624597892165, 0.05109066516160965, -0.019606107845902443, 0.029325004667043686, 0.007110336795449257, -0.06129058077931404, 0.013473594561219215, -0.009707717224955559, 0.056113261729478836, 0.03275159373879433, 0.012730672024190426, -0.004732960369437933, -0.0022706540767103434, -0.03488171845674515, 0.007200013846158981, 0.05555521696805954, 0.00044422352220863104, 0.06568875908851624, 0.04460865631699562, 0.05426543578505516, 0.006819300819188356, 0.04997844994068146, -0.02643008343875408, -0.039243437349796295, 0.06597327440977097, 0.07689278572797775, 0.023232409730553627, 0.06439553946256638, -0.008293576538562775, -0.018557611852884293, -0.06128907576203346, -0.040669482201337814, -0.0551382377743721, 0.03147194907069206, 0.03806799650192261, 0.014989832416176796, 0.010882309637963772, -0.02498633787035942, 0.06553667038679123, 0.016566960141062737, -0.00003638076668721624, 0.003890663618221879, 0.01925869844853878, -0.007112939842045307, -0.009048234671354294, 0.015191753394901752, 0.030379366129636765, -0.005443359259516001, 0.0032568792812526226, 0.05750511214137077, 0.019728900864720345, 0.03500891476869583, 0.03325451910495758, -0.000418962532421574, 0.011703508906066418, -0.010282768867909908, -0.007114848587661982, 0.019837291911244392, 0.02926996350288391, -0.003670352976769209, -0.02660856768488884, 0.01055734883993864, -0.04138714447617531, -0.007503485307097435, -0.024839164689183235, 0.001029652776196599, 0.0029477630741894245, 0.0045333607122302055, 0.016044490039348602, 0.008803723379969597, 0.013813093304634094, -0.02457856759428978, 0.0004945900291204453, 0.010253479704260826, 0.0016539220232516527, 0.03783724457025528, -0.0015883843880146742, 0.0012518460862338543, -0.007125443778932095, 0.019513173028826714, -0.043693315237760544, -0.007798933889716864, -0.006856872234493494, 0.00046843846212141216, 0.015189598314464092, -0.01589556783437729, -0.004384039435535669, 0.018649132922291756, -0.012268698774278164, 0.01225332636386156, 0.005122721195220947, 0.003883166704326868, -0.012873688712716103, -0.06164413318037987, 0.023023787885904312, -0.007075523026287556, -0.005475766025483608, -0.023688603192567825, -0.0009955991990864277, 0.02899532951414585, 0.059976186603307724, -0.006853151600807905, -0.04086224362254143, -0.006486659403890371, -0.026402181014418602, -0.057681381702423096, 0.007269142661243677, -0.03825482726097107, -0.02209245041012764, 0.024467725306749344, -0.014694815501570702, 0.011073179543018341, 0.004435914568603039, -0.0196390338242054, 0.029054591432213783, 0.012879892252385616, -0.02409997582435608, 0.01793811470270157, 0.02471080794930458, -0.006690900307148695, -0.012276971712708473, 0.05696292966604233, 0.008403029292821884, -0.007531856186687946, 0.01749153807759285, 0.05937410518527031, -0.09141598641872406, 0.01279296725988388, -0.041442036628723145, -0.02224607765674591, -0.005190912168473005, -0.007702897768467665, -0.02525193803012371, 0.03232898563146591, -0.039762597531080246, 0.018982255831360817, -0.043086156249046326, -0.043108899146318436, 0.01980789192020893, -0.032935138791799545, 0.07018937915563583, 0.03237442672252655, 0.029950715601444244, 0.01808973029255867, -0.005160885863006115, -0.002514556283131242, -0.03328801319003105, 0.0067924875766038895, 0.047215402126312256, 0.0016774756368249655, -0.008136008866131306, -0.015836495906114578, -0.011202778667211533, -0.03601360321044922, -0.010275078937411308, 0.013882379047572613, 0.006347249262034893, 0.002344859065487981, -0.010383516550064087, 0.013214795850217342, 0.023469967767596245, 0.015420116484165192, 0.0027005630545318127, 0.019824625924229622, -0.0055896686390042305, 0.04701559245586395, 0.001778838806785643, -0.04115898907184601, -0.055455151945352554, -0.010720725171267986, -0.016495589166879654, 0.028997790068387985, 0.014414233155548573, 0.06458475440740585, 0.022062858566641808, 0.018536565825343132, -0.03390878811478615, 0.030951455235481262, -0.040787968784570694, -0.024841023609042168, 0.0015420911367982626, 0.03940832242369652, -0.026072468608617783, 0.03170996531844139, 0.046935874968767166, 0.014115477912127972, 0.005624945275485516, -0.005749776493757963, 0.0044533065520226955, 0.041738368570804596, 0.016596661880612373, -0.005702173803001642, 0.02644176036119461, 0.030862953513860703, 0.04471711069345474, 0.005126702133566141, -0.0233465563505888, 0.018737608566880226 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Additional Resources - Models on the Hub - Paper Page - Official Meta announcement - Responsible Use Guide - Demo (code completion, streaming server) - Demo (instruction fine-tuned, self-contained & clonable)
[ 0.04708480462431908, -0.011467565782368183, 0.042279381304979324, 0.04800499230623245, 0.1401001363992691, -0.0069056409411132336, 0.02111193910241127, 0.02444704994559288, -0.06733836233615875, -0.06226370111107826, -0.10486892610788345, -0.00768894562497735, 0.00026580551639199257, 0.00018929867655970156, 0.0002808080753311515, -0.019575387239456177, 0.08125042915344238, -0.03872474655508995, -0.014221282675862312, -0.002683802740648389, -0.0018552966648712754, -0.004408296197652817, 0.02422027289867401, 0.007423582021147013, -0.010490114800632, -0.009883258491754532, 0.04733598604798317, 0.015388802625238895, -0.03690808638930321, 0.006172153167426586, -0.05076492950320244, -0.003183831926435232, 0.02186541073024273, -0.027836833149194717, -0.033870525658130646, -0.001592179643921554, -0.07946714013814926, 0.0585959255695343, 0.013997669331729412, -0.0045754574239254, 0.0024306096602231264, -0.076167531311512, -0.03425848111510277, 0.05757109075784683, 0.03325946256518364, 0.03428727388381958, -0.197428360581398, 0.033847786486148834, -0.0526873916387558, 0.003529222449287772, -0.07692421227693558, 0.0624428428709507, 0.012977810576558113, -0.004484253469854593, 0.008174946531653404, -0.001735243247821927, 0.056473053991794586, -0.06714390218257904, 0.019502414390444756, 0.010608659125864506, 0.07393906265497208, 0.004549896344542503, -0.03859763965010643, -0.0025732244830578566, -0.003729599993675947, -0.014463137835264206, -0.021152755245566368, 0.0445663221180439, -0.0334642194211483, 0.01603206805884838, 0.025332560762763023, 0.016874955967068672, -0.025507206097245216, -0.0297258123755455, 0.032932575792074203, -0.08634499460458755, -0.02916109375655651, 0.027751939371228218, 0.04802212119102478, 0.009900810196995735, 0.032097261399030685, 0.013776007108390331, 0.07813727110624313, -0.006260596215724945, -0.038632832467556, -0.00464587053284049, 0.02695479243993759, -0.03344224765896797, -0.029160205274820328, 0.015482082962989807, -0.01814841851592064, -0.070045106112957, 0.024771468713879585, 0.005985097959637642, 0.06664999574422836, -0.036845702677965164, 0.01664775237441063, 0.028291506692767143, 0.016487430781126022, -0.008028659969568253, -0.04805798828601837, -0.01609664410352707, 0.013981913216412067, -0.061324287205934525, -0.027604006230831146, -0.008408416993916035, -0.007030800450593233, -0.11035092920064926, -0.06598105281591415, 0.03771860525012016, 0.05541953444480896, 0.01748722791671753, -0.04660938307642937, 0.050901565700769424, -0.049318186938762665, 0.09018471837043762, -0.03456461802124977, -0.02554035745561123, 0.0038421147037297487, 0.08323821425437927, 0.009623746387660503, 0.06547845900058746, 0.006533920299261808, 0.08017328381538391, 0.03869334235787392, 0.07058516144752502, 0.022051101550459862, 0.04737613722681999, -0.04915293678641319, -0.09328300505876541, 0.06919462978839874, -0.012702686712145805, 0.02023439109325409, -0.051940493285655975, -0.02825564332306385, -0.07232794910669327, -0.007509435992687941, -0.0885128602385521, 0.008326200768351555, 0.058026641607284546, -0.03842305392026901, 0.027153540402650833, -0.05932455137372017, -0.00013064582890365273, 0.03507519140839577, -0.01777077093720436, -0.03350229188799858, 0.052347563207149506, -0.03439765051007271, 0.017654716968536377, -0.025849519297480583, 0.06049761548638344, -0.030319368466734886, -0.03148815035820007, -0.0014367634430527687, 0.021648714318871498, 0.01521382573992014, 0.015836693346500397, -0.07227848470211029, 0.017881669104099274, -0.0013418977614492178, 0.002641616854816675, -0.05555053427815437, -0.002806752221658826, 0.07108592987060547, 0.005137730855494738, -0.047173239290714264, -0.023352472111582756, 0.10598306357860565, -0.08439517766237259, -0.018225694075226784, -0.04987303912639618, 0.10842243582010269, -0.0035491064190864563, -0.02623659372329712, 0.05344224348664284, 0.03622882813215256, 0.07644443213939667, -0.018310409039258957, 0.0006202245713211596, -0.04737827181816101, 0.019723255187273026, 0.04377806559205055, -0.004328086040914059, -0.009548231028020382, -0.07326533645391464, 0.05383392795920372, -0.010509182699024677, 0.00023855525068938732, -0.0069913556799292564, -0.047918274998664856, -0.01335665863007307, 0.07755827158689499, 0.04058937355875969, 0.01429380476474762, -0.02015560306608677, -0.06616828590631485, 0.07505691051483154, 0.08897297084331512, 0.06943954527378082, 0.031844064593315125, 0.07606903463602066, 0.02549104206264019, -0.043163709342479706, -0.072549968957901, 0.037097591906785965, 0.04151295870542526, -0.0030817424412816763, 0.033967193216085434, -0.04005443677306175, -0.005247641820460558, -0.09554173797369003, 0.006441021338105202, -0.042277682572603226, 0.026135332882404327, -0.021751830354332924, -0.06580847501754761, 0.009442768059670925, -0.03527063876390457, -0.01150099653750658, 0.162007674574852, -0.04329204186797142, 0.012151493690907955, 0.052338916808366776, -0.011897305957973003, 0.061978019773960114, 0.09911590069532394, 0.06997989118099213, 0.06907469034194946, -0.036610160022974014, -0.026215845718979836, -0.02371762879192829, -0.055065080523490906, 0.07494296878576279, 0.06416164338588715, 0.043369852006435394, -0.0122860511764884, 0.0210813470184803, 0.02435828000307083, -0.02735736407339573, 0.015753956511616707, -0.004274970386177301, -0.004019719082862139, 0.0544852577149868, 0.005113945342600346, -0.0239889957010746, 0.060544755309820175, 0.03780408203601837, -0.06249528005719185, 0.05724629387259483, -0.056245628744363785, 0.05785501003265381, 0.007388152647763491, -0.03166311979293823, 0.054942190647125244, 0.0017869285074993968, 0.020073624327778816, 0.0020492319017648697, -0.03147147223353386, 0.0033793062902987003, 0.023687809705734253, 0.013831750489771366, -0.033746786415576935, -0.05550787225365639, 0.019945407286286354, -0.015593422576785088, 0.00506608048453927, 0.001823693746700883, 0.02306579053401947, -0.029357705265283585, 0.02280144952237606, -0.02884817123413086, 0.003889052662998438, -0.014758354052901268, 0.017352858558297157, 0.030631709843873978, 0.02960844151675701, 0.0032393462024629116, -0.001295818598009646, -0.008524891920387745, -0.029426079243421555, -0.021847741678357124, 0.02880808338522911, 0.009347003884613514, 0.04491690546274185, 0.004210806451737881, -0.007393559440970421, -0.005460684187710285, -0.04323628917336464, -0.023989086970686913, -0.02235325239598751, -0.00009877731645246968, 0.004242981784045696, -0.027495332062244415, -0.011882017366588116, 0.005422454793006182, -0.02164716273546219, 0.026492873206734657, -0.03136766701936722, -0.02146940678358078, -0.00845347624272108, -0.0078104897402226925, -0.0005706748925149441, 0.005510264541953802, -0.012982229702174664, 0.048356667160987854, 0.034738726913928986, 0.0013825702480971813, -0.12043245136737823, -0.011349941603839397, 0.0004896886530332267, 0.02829654887318611, -0.02230105549097061, -0.01576079986989498, 0.05956307426095009, -0.0272444486618042, -0.008872931823134422, 0.003008559113368392, -0.014612996950745583, -0.020418886095285416, 0.02879154682159424, 0.0015007227193564177, -0.010228539817035198, 0.006575214676558971, 0.021129412576556206, -0.000025991386792156845, 0.00493964646011591, -0.01406265888363123, -0.040566928684711456, 0.050303928554058075, -0.02227693796157837, -0.03010767139494419, -0.020945802330970764, 0.03065105341374874, 0.04618087410926819, 0.04231508821249008, 0.011420049704611301, -0.02105177566409111, 0.0012076711282134056, -0.02882348746061325, -0.024440104141831398, 0.02874220907688141, -0.042195502668619156, -0.023122450336813927, -0.019510459154844284, -0.004281654953956604, 0.004570754244923592, 0.022341413423419, 0.02256109192967415, -0.003489167196676135, 0.060744088143110275, 0.01934521645307541, -0.008439349941909313, 0.02928781695663929, 0.02946096658706665, 0.007415515370666981, 0.026042982935905457, -0.0026263894978910685, -0.020902052521705627, -0.014668864198029041, 0.018575040623545647, 0.08634454756975174, 0.0014173306990414858, -0.01013199146836996, -0.008726741187274456, 0.01653488725423813, 0.020241381600499153, -0.011276590637862682, -0.02559215947985649, 0.027522554621100426, -0.00033689234987832606, 0.0011731815757229924, -0.05601077154278755, 0.029778895899653435, -0.012729818001389503, -0.01995905674993992, -0.027495073154568672, 0.0077646272256970406, 0.02918156050145626, 0.03616606071591377, 0.012095973826944828, 0.006754642818123102, -0.002495683031156659, 0.0016817995347082615, 0.0024186125956475735, -0.01412275992333889, 0.07324959337711334, 0.07888174802064896, 0.011633958667516708, -0.006130201742053032, -0.0011196599807590246, -0.016743134707212448, -0.0050256033428013325, -0.01423732191324234, 0.026117028668522835, 0.01087573915719986, 0.017135564237833023, 0.03649986907839775, 0.0013131167506799102, -0.06319962441921234, 0.024421095848083496, -0.009570784866809845, 0.010968673974275589, 0.030639568343758583, 0.03335210680961609, 0.02639867179095745, 0.04439801722764969, 0.008170069195330143, 0.009214370511472225, -0.03185294568538666, 0.033559899777173996, 0.04802186042070389, -0.014971522614359856, 0.03979890048503876, -0.04825111851096153, -0.02411361038684845, -0.01754177361726761, -0.023789716884493828, -0.004877491854131222, -0.014440350234508514, 0.04176902770996094, -0.02157088927924633, 0.011218533851206303, -0.004455511458218098, -0.032828189432621, -0.02350347489118576, -0.03365926072001457, 0.03812737017869949, 0.008108150213956833, -0.022872617468237877, 0.054737284779548645, -0.039117481559515, 0.01145158801227808, -0.020183296874165535, 0.007018549833446741, -0.0041648694314062595, 0.019173605367541313, 0.01665225252509117, -0.0004305209149606526, -0.0401003360748291, 0.0012944680638611317, 0.02818142995238304, 0.009204099886119366, 0.04697573930025101, -0.001598901697434485, 0.057185061275959015, -0.015415710397064686, -0.07749936729669571, -0.03863366320729256, 0.002728699240833521, 0.006083225831389427, -0.026028750464320183, 0.04932301864027977, 0.0008912015473470092, -0.02778933383524418, -0.009927504695951939, 0.0026038058567792177, 0.01398637518286705, 0.045408692210912704, -0.01835542917251587, -0.00759113347157836, -0.00790890771895647, 0.014295898377895355, 0.0012960585299879313, -0.03197178989648819, 0.025912966579198837, 0.008229246363043785, 0.045764632523059845, -0.02067641355097294, 0.03794474899768829, -0.054503969848155975, 0.03172401338815689, -0.01575208269059658, 0.0507795475423336, 0.005779992323368788, -0.001714190118946135, -0.008616180159151554, -0.04103606939315796, -0.032209426164627075, 0.03015676513314247, 0.00893185194581747, 0.00252955942414701, 0.034422945231199265, 0.026634562760591507, 0.011045124381780624, 0.04384745657444, -0.00417940691113472, 0.03549373522400856, -0.03862892463803291, 0.000876753416378051, 0.028915757313370705, -0.001318332739174366, 0.019574644044041634, 0.016658790409564972, 0.06837940961122513, 0.01062525063753128, 0.02721432037651539, 0.016907507553696632, -0.023288805037736893, -0.0180934127420187, -0.001538797514513135, 0.036952998489141464, 0.016139190644025803, -0.032862089574337006, 0.002208942314609885, 0.0003614319721236825, -0.020330829545855522, -0.04556971415877342, 0.04721342772245407, 0.042633313685655594, -0.04191461578011513, 0.04640757665038109, 0.020057709887623787, -0.022427333518862724, 0.017929470166563988, -0.04718590900301933, 0.023314151912927628, -0.06522206962108612, -0.00547384936362505, -0.004480672534555197, -0.03656824678182602, -0.022021589800715446, 0.01408504880964756, -0.04882262647151947, -0.013307188637554646, -0.0160974133759737, 0.011459706351161003, 0.041110262274742126, 0.014167627319693565, 0.009422698989510536, 0.0055694133043289185, -0.01125077810138464, -0.0068838209845125675, 0.008802244439721107, 0.011591632850468159, 0.044267211109399796, -0.011187680996954441, -0.023013338446617126, 0.038051363080739975, 0.018832644447684288, 0.0205913744866848, -0.0004990012384951115, 0.0463978573679924, -0.011007411405444145, -0.0766284242272377, 0.02981514297425747, 0.03800256922841072, -0.01474110595881939, 0.0017902590334415436, -0.03977319970726967, -0.0320139043033123, -0.016113338991999626, -0.06180039420723915, 0.006165241356939077, 0.05206545442342758, 0.0001355398417217657, 0.031562235206365585, -0.0014743016799911857, 0.058472972363233566, -0.013119949027895927, -0.02359897643327713, -0.014752693474292755, -0.01313040405511856, 0.009949223138391972, 0.01773201674222946, -0.028859300538897514, 0.012063521891832352, -0.052352115511894226, -0.0004081081133335829, -0.014007139950990677, -0.003383146831765771, 0.035641662776470184, -0.037829939275979996, 0.029199160635471344, -0.02006249874830246, -0.03294030949473381, -0.01164396945387125, -0.00504855765029788, 0.018400589004158974, 0.027540257200598717, 0.007507250178605318, -0.011645309627056122, 0.0007841635961085558, -0.017146794125437737, 0.030009202659130096, 0.07008306682109833, 0.02651282399892807, 0.014969561249017715, -0.01226176880300045, 0.07097036391496658, -0.007885802537202835, 0.01011248491704464, -0.04945468530058861, 0.026156337931752205, 0.056491076946258545, 0.07117509841918945, 0.004122429993003607, 0.03852434456348419, -0.01864970475435257, -0.026888882741332054, -0.007596765179187059, -0.015268859453499317, -0.05148429423570633, 0.007221211213618517, 0.03885343670845032, -0.019585449248552322, 0.0015744146658107638, -0.03696703538298607, 0.06849613040685654, 0.01969895325601101, -0.00020807012333534658, 0.008089127019047737, 0.009109949693083763, 0.0018333931220695376, -0.01612456515431404, 0.016275132074952126, 0.0029429164715111256, -0.006147495936602354, -0.0019279543776065111, 0.06935876607894897, 0.019829146564006805, 0.010354864411056042, -0.048906538635492325, -0.006482511758804321, 0.011372257955372334, -0.025120332837104797, 0.008477780967950821, -0.009374412707984447, -0.008281964808702469, 0.012017889879643917, -0.023626659065485, -0.017911383882164955, -0.034161604940891266, -0.01568976230919361, 0.010259550996124744, -0.0016992189921438694, -0.009136133827269077, 0.002102471422404051, 0.010658138431608677, 0.029107999056577682, 0.0027622119523584843, -0.008748427964746952, -0.035425640642642975, 0.0710453912615776, 0.02696918696165085, 0.02298220805823803, -0.02089800499379635, -0.04539244994521141, -0.03360798582434654, 0.04343695193529129, 0.011375580914318562, -0.009688043966889381, -0.012890784069895744, -0.03779252618551254, 0.019754920154809952, 0.008088859729468822, -0.012918862514197826, -0.00772663950920105, 0.01721939817070961, -0.0008545350283384323, -0.018731405958533287, 0.045480865985155106, -0.03431978076696396, -0.018696652725338936, -0.019019773229956627, -0.031722839921712875, 0.017958512529730797, -0.022013837471604347, -0.017962604761123657, 0.01992865465581417, 0.019998721778392792, -0.05174761265516281, -0.034832894802093506, 0.005786965601146221, 0.003098385641351342, 0.006597172003239393, 0.0601905956864357, -0.024067936465144157, -0.00683539779856801, -0.004196280613541603, -0.006481639109551907, -0.0060309236869215965, -0.034928496927022934, -0.011670979671180248, 0.003058635862544179, -0.003174577606841922, -0.011110322549939156, -0.009919191710650921, 0.061402928084135056, 0.02766762487590313, 0.03975518047809601, 0.003951224498450756, 0.01805265061557293, 0.002851943951100111, -0.016517916694283485, -0.005536925978958607, -0.020791303366422653, -0.0009042878518812358, -0.05793337896466255, -0.02804988995194435, -0.05531138554215431, -0.02867269515991211, -0.022287124767899513, 0.002985991071909666, -0.04651636630296707, -0.03217910975217819, 0.01317634992301464, -0.043182212859392166, -0.06891649961471558, -0.0015653531299903989, 0.0626397654414177, 0.011244941502809525, 0.043776411563158035, -0.024896949529647827, 0.010261273942887783, -0.02472766488790512, -0.01996665820479393, 0.01783614046871662, 0.008600737899541855, 0.008473219349980354, -0.009583517909049988, 0.01020379550755024, 0.02224132791161537, -0.019476935267448425, -0.0832824856042862, -0.028702786192297935, 0.02900131419301033, -0.015634218230843544, -0.042218148708343506, -0.009588683024048805, -0.008233924396336079, 0.020870355889201164, 0.015142831951379776, 0.03162282332777977, -0.03546978533267975, 0.01969379186630249, -0.027413127943873405, -0.025799548253417015, 0.01589103788137436, -0.030446792021393776, -0.027148747816681862, 0.05520963296294212, -0.015240051783621311, -0.0460895337164402, 0.0023082192055881023, -0.048135992139577866, 0.013382273726165295, -0.017630210146307945, -0.04082910344004631, -0.0174342580139637, 0.012903091497719288, -0.008345300331711769, -0.014074624516069889, -0.013093317858874798, 0.01578301563858986, -0.0034812616650015116, -0.03076213411986828, 0.016933470964431763, 0.012090828269720078, 0.01825777068734169, 0.013261210173368454, 0.03556140139698982, -0.00952852237969637, 0.0851292684674263, 0.03450256213545799, -0.01974453032016754, -0.036306075751781464, 0.010349960997700691 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Using text-generation-inference and Inference Endpoints Text Generation Inference is a production-ready inference container developed by Hugging Face to enable easy deployment of large language models. It has features such as continuous batching, token streaming, tensor parallelism for fast inference on multiple GPUs, and production-ready logging and tracing. You can try out Text Generation Inference on your own infrastructure, or you can use Hugging Face's Inference Endpoints. To deploy a Codellama 2 model, go to the model page and click on the Deploy -> Inference Endpoints widget. - For 7B models, we advise you to select "GPU [medium] - 1x Nvidia A10G". - For 13B models, we advise you to select "GPU [xlarge] - 1x Nvidia A100". - For 34B models, we advise you to select "GPU [1xlarge] - 1x Nvidia A100" with bitsandbytes quantization enabled or "GPU [2xlarge] - 2x Nvidia A100" Note: You might need to request a quota upgrade via email to [email protected] to access A100s You can learn more on how to Deploy LLMs with Hugging Face Inference Endpoints in our blog. The blog includes information about supported hyperparameters and how to stream your response using Python and Javascript.
[ 0.0031484588980674744, -0.01420805137604475, 0.0491236113011837, -0.040428899228572845, 0.01325535960495472, 0.03015882894396782, 0.02243938110768795, 0.048916999250650406, -0.004712461028248072, -0.03346189484000206, -0.0958804190158844, -0.03097750060260296, 0.015521868132054806, 0.05323471128940582, 0.027477653697133064, -0.055618613958358765, -0.008716943673789501, 0.018875589594244957, -0.03624582663178444, 0.028083212673664093, 0.03038731962442398, -0.01840638369321823, 0.03802179545164108, 0.009088403545320034, -0.04687150940299034, -0.06137172132730484, 0.005203216802328825, -0.007658740971237421, 0.03591485694050789, 0.030231589451432228, -0.05927709862589836, -0.03283778205513954, -0.012619494460523129, -0.0016689238836988807, 0.044951122254133224, 0.018993688747286797, -0.15377557277679443, 0.0371725931763649, 0.03654943406581879, 0.03248909115791321, -0.002293321769684553, -0.005055857356637716, -0.0467538945376873, 0.011800962500274181, 0.022995196282863617, -0.004288507625460625, -0.05195838212966919, 0.014615789987146854, -0.0393148809671402, 0.024691037833690643, -0.10491324961185455, 0.09451604634523392, -0.05952839553356171, -0.05094475299119949, 0.03830120339989662, 0.03948541358113289, -0.04258403554558754, -0.13685573637485504, 0.06415341794490814, 0.026850374415516853, -0.006379454396665096, -0.01533481664955616, 0.032855112105607986, 0.0596710741519928, 0.04718500375747681, -0.012906293384730816, -0.014590968377888203, 0.00019524649542290717, -0.03587895631790161, 0.0063012284226715565, 0.009652489796280861, 0.01573016121983528, -0.012535004876554012, -0.03630164638161659, -0.0006786499288864434, -0.01912989467382431, -0.03786872699856758, 0.011559966020286083, 0.01985550858080387, 0.008630883879959583, -0.04756621643900871, 0.02163180336356163, 0.027390209957957268, -0.012282533571124077, 0.006795462686568499, 0.13542863726615906, 0.019544539973139763, -0.03792247921228409, -0.06008380278944969, 0.006697891280055046, -0.023764319717884064, -0.12549272179603577, -0.02156808041036129, 0.0474010594189167, -0.0055619399063289165, 0.04472638666629791, 0.02397027425467968, 0.05408275127410889, -0.0012736599892377853, -0.06155542656779289, 0.01223441120237112, -0.0701545849442482, -0.014203017577528954, -0.05613319203257561, -0.09805004298686981, 0.053902868181467056, -0.01616734452545643, -0.05609506741166115, -0.059263523668050766, 0.04028882086277008, 0.017720069736242294, -0.029448099434375763, 0.02517574466764927, 0.04154805466532707, -0.09793452173471451, -0.006900275591760874, -0.05997539684176445, 0.016526617109775543, 0.006460146978497505, -0.014029846526682377, 0.02814730629324913, 0.08588096499443054, 0.04901057481765747, -0.02117643691599369, -0.05188789218664169, 0.05949504300951958, 0.02896956354379654, -0.015748556703329086, 0.019171418622136116, 0.006995870731770992, 0.01187084149569273, -0.05475437268614769, -0.0002521733404137194, -0.010031383484601974, 0.04343736544251442, -0.07599502801895142, -0.011791813187301159, -0.10976460576057434, 0.01594238542020321, -0.012957348488271236, -0.018617577850818634, 0.03937714174389839, 0.042847584933042526, -0.035947930067777634, 0.058009907603263855, -0.006205209530889988, -0.06933560222387314, -0.04833201691508293, -0.016402963548898697, 0.0423809289932251, -0.11543241143226624, 0.044639330357313156, -0.038456808775663376, -0.02268012799322605, 0.02069556526839733, 0.029105287045240402, 0.0015620330814272165, 0.04611504077911377, -0.0929999053478241, -0.02537086419761181, -0.0380086749792099, -0.05901569128036499, -0.026063505560159683, 0.015772849321365356, -0.031002935022115707, -0.008215583860874176, -0.010162285529077053, 0.02217727154493332, -0.0025326248724013567, -0.009839296340942383, -0.003995709121227264, -0.03920528665184975, 0.049192700535058975, -0.0337047278881073, 0.08015947788953781, 0.015063559636473656, 0.017130648717284203, 0.006180169992148876, 0.014162852428853512, -0.018072092905640602, -0.07284113019704819, 0.06222648546099663, 0.031456250697374344, 0.019086385145783424, 0.010111596435308456, -0.09107929468154907, 0.02281338907778263, -0.07315055280923843, -0.013352305628359318, -0.01801048219203949, -0.015920784324407578, -0.016132840886712074, 0.06574691087007523, 0.005062366835772991, 0.017071420326828957, -0.07239829748868942, -0.06096778064966202, 0.10964489728212357, 0.048614006489515305, 0.06561589241027832, 0.021083222702145576, 0.05361613631248474, 0.07896315306425095, -0.03369714692234993, -0.031081516295671463, 0.02885158732533455, -0.029751479625701904, -0.018130050972104073, -0.020893990993499756, 0.06758876889944077, 0.030069198459386826, -0.11614936590194702, 0.04252468794584274, -0.03673345595598221, -0.01030438020825386, -0.05149746313691139, -0.024050915613770485, -0.061109669506549835, 0.04117778316140175, -0.043947383761405945, 0.16193483769893646, -0.08742358535528183, 0.0003956277505494654, -0.08072502911090851, -0.017126014456152916, -0.013013448566198349, 0.031837113201618195, 0.07299556583166122, 0.040602944791316986, -0.06943138688802719, -0.025077927857637405, -0.06884074956178665, -0.02294469065964222, 0.030509047210216522, 0.020487390458583832, 0.0018677309853956103, 0.02991674840450287, -0.019273078069090843, 0.0003849088097922504, -0.06713331490755081, 0.06796618551015854, 0.033726781606674194, -0.034397024661302567, -0.02434384636580944, 0.022502761334180832, -0.056543026119470596, 0.06974295526742935, 0.01926237717270851, -0.056969575583934784, -0.0947529524564743, -0.025143634527921677, 0.03641839697957039, 0.004549239296466112, -0.0011244857450947165, 0.018510086461901665, -0.015824342146515846, -0.020158415660262108, 0.014801899902522564, -0.002838225569576025, 0.04561730474233627, -0.006888022646307945, -0.025418318808078766, 0.026109011843800545, -0.030682068318128586, 0.031155578792095184, -0.045714959502220154, -0.03373738005757332, 0.0005143337184563279, -0.02624952793121338, -0.00861303135752678, 0.03825065866112709, -0.033787600696086884, 0.020508218556642532, 0.015881428495049477, 0.03499399125576019, 0.008492913097143173, 0.05983290076255798, -0.011186130344867706, -0.035912565886974335, -0.034299518913030624, 0.018803933635354042, -0.028883270919322968, -0.013932548463344574, 0.05872165411710739, 0.0037132042925804853, -0.030193284153938293, -0.001720733125694096, -0.02271370217204094, -0.03721100464463234, 0.035337213426828384, 0.027948830276727676, -0.010044890455901623, 0.00015335340867750347, -0.029195385053753853, 0.0001461239589843899, 0.023860899731516838, 0.03174314647912979, -0.009076776914298534, -0.0015412549255415797, 0.026080302894115448, -0.01376568153500557, -0.016568060964345932, -0.022660154849290848, 0.016689399257302284, -0.01374876033514738, 0.052543703466653824, 0.0009733979823067784, 0.01614663004875183, -0.07504874467849731, -0.03455774486064911, -0.03802549093961716, -0.01581782102584839, -0.017204733565449715, -0.008585983887314796, 0.04217163100838661, -0.04767869412899017, 0.0034352228976786137, 0.03357585147023201, -0.018211999908089638, 0.03012138046324253, 0.0046709761954844, -0.03546666353940964, -0.00021328650473151356, -0.02157643623650074, -0.002252938924357295, -0.05312087759375572, 0.03347666561603546, 0.039569683372974396, -0.02907300367951393, -0.0077781411819159985, 0.023290209472179413, -0.009697820991277695, 0.02579592540860176, -0.016594797372817993, 0.024360140785574913, -0.004534677602350712, 0.033562157303094864, -0.02907814271748066, 0.005603261757642031, -0.04044197499752045, -0.003495616838335991, -0.011869021691381931, -0.06345048546791077, 0.012085731141269207, 0.02944733202457428, -0.021384064108133316, 0.0006793985958211124, -0.013495135121047497, 0.02943122573196888, 0.01676645502448082, -0.0029392929282039404, -0.03074129857122898, -0.0007374775013886392, 0.0068135941401124, -0.0030714499298483133, 0.045661889016628265, 0.04568963497877121, -0.036788392812013626, 0.011641966179013252, 0.004806106444448233, 0.01063559576869011, 0.028152232989668846, 0.0027124301996082067, 0.011535142548382282, 0.023655198514461517, 0.0031031782273203135, 0.03826914355158806, -0.010826343670487404, -0.09256213158369064, 0.0006965940119698644, -0.02226952277123928, -0.02105027064681053, -0.012845570221543312, 0.07455559819936752, 0.023208215832710266, -0.03140300139784813, 0.005129035096615553, 0.04279203340411186, 0.008134450763463974, 0.08567865192890167, 0.022959541529417038, 0.005120163317769766, -0.0311270821839571, -0.014205989427864552, -0.029304808005690575, -0.08784430474042892, 0.031008044257760048, 0.018439752981066704, 0.0030269369017332792, 0.0002968406770378351, -0.03159951791167259, 0.0016232364578172565, 0.028500225394964218, -0.006866519805043936, 0.027560515329241753, -0.03127352520823479, 0.03309483453631401, 0.02397986315190792, -0.007837976329028606, -0.005664435680955648, 0.015527508221566677, 0.0032772370614111423, 0.003434936050325632, -0.01925833150744438, 0.007781941443681717, 0.049387671053409576, 0.006449033506214619, 0.00408196309581399, -0.008219913579523563, -0.05354967713356018, -0.0034255434293299913, -0.0022435723803937435, -0.041979510337114334, 0.0419265516102314, -0.00225467374548316, 0.014135578647255898, 0.0008312388090416789, 0.007000422570854425, 0.004997985437512398, 0.008002548478543758, -0.016176264733076096, 0.005864247679710388, 0.030744129791855812, 0.04188079014420509, 0.017092563211917877, -0.002015553181990981, -0.013532889075577259, -0.005382135044783354, -0.01605364866554737, 0.037588492035865784, 0.04011841118335724, -0.045307084918022156, 0.05161876603960991, 0.040234968066215515, 0.0009592268615961075, 0.012500466778874397, -0.004005117807537317, -0.03674300014972687, -0.023939134553074837, 0.029692361131310463, 0.07340393215417862, 0.013471908867359161, 0.013252845034003258, -0.01452624425292015, -0.05356907099485397, -0.016458703204989433, 0.022448185831308365, 0.021102117374539375, -0.020425040274858475, 0.022556481882929802, -0.0014360611094161868, -0.015053723007440567, 0.005871575325727463, 0.03826751559972763, -0.014329206198453903, 0.0002502695133443922, -0.06265055388212204, 0.03596494719386101, 0.003501205937936902, -0.005168357864022255, -0.00614898232743144, 0.03272030130028725, 0.056569624692201614, 0.009554537944495678, -0.028170723468065262, 0.004214620683342218, 0.0003380587440915406, 0.03346092253923416, 0.014147559180855751, 0.022511044517159462, -0.0016158479265868664, 0.0089771319180727, 0.014605664648115635, -0.0006145808147266507, 0.010634164325892925, -0.022593868896365166, -0.02089553326368332, -0.03202902153134346, -0.05245407298207283, 0.03276585787534714, 0.02375071309506893, -0.034574203193187714, 0.005734715145081282, 0.055042944848537445, 0.032760556787252426, 0.01726551540195942, -0.004440687131136656, 0.0178592000156641, -0.0009984496282413602, -0.03308023139834404, 0.0656270906329155, 0.0004391824477352202, 0.01875840686261654, 0.052546579390764236, 0.06378228962421417, 0.06665388494729996, 0.01518548559397459, -0.004475952126085758, -0.000770727579947561, 0.01599775068461895, 0.019173668697476387, -0.035109929740428925, -0.025529073551297188, -0.01901358924806118, 0.0019949220586568117, 0.028751982375979424, 0.019953139126300812, -0.0207107774913311, 0.020539984107017517, 0.05420438200235367, -0.036821816116571426, 0.00981950107961893, 0.02137315459549427, 0.013781881891191006, 0.00513996509835124, -0.007632183376699686, 0.023673495277762413, 0.00611308915540576, -0.011941522359848022, -0.02342996373772621, -0.015095895156264305, 0.015545768663287163, 0.0019931767601519823, -0.03494855388998985, -0.02012700028717518, 0.027806011959910393, 0.03778083994984627, 0.06090531125664711, -0.04941514506936073, -0.01976940780878067, 0.004166703671216965, -0.036412790417671204, -0.007167323958128691, -0.016283361241221428, -0.011988408863544464, 0.008319045417010784, -0.0008753718575462699, -0.006151266861706972, 0.02466438338160515, -0.01348880399018526, 0.02361569181084633, 0.054391756653785706, 0.04149579629302025, 0.022522686049342155, -0.025953035801649094, 0.028858834877610207, 0.05354156345129013, 0.028037112206220627, -0.006045616697520018, -0.014726639725267887, -0.0029597594402730465, -0.010650895535945892, -0.012621955014765263, 0.04180547595024109, 0.013721153140068054, -0.03339889645576477, -0.03822647035121918, 0.03835555166006088, 0.018657736480236053, -0.011750337667763233, -0.013044491410255432, -0.010401294566690922, 0.01923629269003868, 0.029542244970798492, 0.05942054092884064, -0.006417775060981512, 0.0017191529041156173, 0.0033981837332248688, -0.008567952550947666, -0.021027496084570885, 0.04182267189025879, -0.02749573066830635, -0.06274579465389252, 0.013006710447371006, -0.030360400676727295, -0.003641426097601652, 0.03383634239435196, 0.03538951650261879, -0.001982930116355419, -0.0258327629417181, 0.005698007997125387, 0.002509862184524536, 0.02143213152885437, 0.0019603439141064882, 0.004243740811944008, 0.0299665667116642, -0.008143885061144829, 0.018641959875822067, 0.012584266252815723, 0.07049023360013962, 0.021807365119457245, -0.004151640925556421, 0.03636150062084198, -0.04392018914222717, 0.12025105953216553, 0.03824498504400253, 0.0321795754134655, 0.024078702554106712, -0.03433612361550331, 0.014944551512598991, 0.01097762119024992, -0.02646533027291298, -0.012306886725127697, -0.002890686271712184, 0.0416911244392395, -0.001237528515048325, 0.05475173145532608, 0.0028204957488924265, 0.06856123358011246, 0.00666023651137948, 0.029160818085074425, -0.025275547057390213, 0.003534299321472645, 0.002287687500938773, 0.0017257104627788067, 0.01572675071656704, 0.009709594771265984, 0.04797804355621338, -0.0201274286955595, 0.0255219005048275, 0.0387224480509758, 0.029791750013828278, 0.006546693854033947, 0.009119207970798016, -0.027985895052552223, -0.023961974307894707, -0.0032458659261465073, 0.0028128805570304394, 0.02788187563419342, 0.033374007791280746, 0.008293934166431427, 0.003097779583185911, -0.03220096975564957, 0.037348274141550064, -0.005704631097614765, 0.02112433686852455, -0.007353721186518669, -0.016040822491049767, -0.02173873409628868, 0.040860503911972046, 0.027675392106175423, -0.062210869044065475, -0.007739505264908075, -0.024515002965927124, -0.001529592671431601, -0.0062102521769702435, -0.033460795879364014, -0.027953073382377625, -0.007106002885848284, -0.013338403776288033, 0.02333906479179859, 0.009477042593061924, -0.012502438388764858, 0.02792346477508545, 0.027335859835147858, 0.021460406482219696, 0.007634857669472694, -0.01741565391421318, 0.017756272107362747, 0.028681272640824318, -0.02346988394856453, -0.005838112439960241, 0.03235161304473877, -0.02291116863489151, -0.017124967649579048, -0.02633059024810791, -0.03266732767224312, -0.01951323263347149, 0.0041252626106143, 0.05068553239107132, 0.07141046971082687, -0.025431020185351372, -0.02901044487953186, 0.01914888620376587, -0.015072240494191647, -0.02104613557457924, 0.035224881023168564, 0.009527608752250671, -0.023863470181822777, -0.014763344079256058, -0.0009417381370440125, -0.002693667309358716, -0.010122621431946754, -0.0020011537708342075, 0.07577313482761383, 0.0018386233132332563, -0.06076192110776901, -0.007445117458701134, 0.03465665876865387, -0.0017420247895643115, 0.06605484336614609, 0.036197323352098465, -0.008852338418364525, 0.00953713059425354, 0.0037660931702703238, 0.0025212618056684732, -0.05253453180193901, 0.017126409336924553, -0.034735869616270065, -0.012548205442726612, -0.040005628019571304, 0.020909862592816353, -0.023387886583805084, 0.021692005917429924, 0.003592821303755045, 0.0029322810005396605, -0.029566358774900436, -0.025025658309459686, -0.01314185094088316, -0.007719673682004213, 0.08118004351854324, 0.04438808932900429, 0.02619767189025879, -0.02688566967844963, -0.021572941914200783, 0.035366181284189224, 0.008133886381983757, 0.020761463791131973, 0.04662736505270004, 0.013664351776242256, -0.01922064833343029, -0.020287660881876945, -0.016048789024353027, 0.018708011135458946, -0.032991956919431686, 0.03977755457162857, -0.006015527527779341, -0.0017517058877274394, -0.017880510538816452, 0.04695248603820801, 0.07215528935194016, 0.008859232068061829, 0.019393153488636017, -0.03753075748682022, 0.0027281984221190214, 0.0029413755983114243, -0.021733570843935013, -0.06500659137964249, -0.027328455820679665, -0.0052366117015480995, 0.005774824880063534, 0.035977691411972046, -0.02130470611155033, 0.04727545753121376, -0.024187294766306877, 0.0024526063352823257, 0.006156745832413435, -0.009003622457385063, -0.027461981400847435, -0.011545512825250626, 0.028550514951348305, 0.02527952753007412, -0.0308245699852705, 0.0019217334920540452, -0.026108643040060997, -0.002896486548706889, 0.0047665247693657875, 0.0004963249666616321, -0.014986161142587662, -0.020903490483760834, 0.006655567791312933, 0.015142571181058884, 0.003320038551464677, 0.0524100661277771, 0.08323293179273605, 0.005488276015967131, -0.043758004903793335, -0.016044041141867638 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
A Note on dtypes When using models like Code Llama, it's important to take a look at the data types of the models. * 32-bit floating point (float32): PyTorch convention on model initialization is to load models in float32, no matter with which precision the model weights were stored. transformers also follows this convention for consistency with PyTorch. * 16-bit Brain floating point (bfloat16): Code Llama was trained with this precision, so we recommend using it for further training or fine-tuning. * 16-bit floating point (float16): We recommend running inference using this precision, as it's usually faster than bfloat16, and evaluation metrics show no discernible degradation with respect to bfloat16. You can also run inference using bfloat16, and we recommend you check inference results with both float16 and bfloat16 after fine-tuning. As mentioned above, transformers loads weights using float32 (no matter with which precision the models are stored), so it's important to specify the desired dtype when loading the models. If you want to fine-tune Code Llama, it's recommended to use bfloat16, as using float16 can lead to overflows and NaNs. If you run inference, we recommend using float16 because bfloat16 can be slower.
[ 0.00014170493523124605, 0.0037487507797777653, -0.015009323135018349, 0.06988535076379776, 0.024849331006407738, 0.060350142419338226, 0.04138291999697685, 0.06829825788736343, 0.006132148206233978, -0.004166867583990097, -0.007911907508969307, 0.033145442605018616, -0.008371863514184952, 0.07062132656574249, 0.04776119440793991, -0.04851270094513893, 0.03619052842259407, -0.0243963822722435, 0.01804642379283905, 0.0870479941368103, -0.01236565038561821, -0.0781920924782753, -0.0011002315441146493, -0.0016523394733667374, -0.05972519889473915, -0.08176230639219284, -0.024008959531784058, 0.0035580468829721212, -0.07174340635538101, 0.029672881588339806, -0.13028070330619812, -0.01587800309062004, 0.004379159305244684, 0.02517426386475563, -0.0004975182237103581, -0.004828124772757292, -0.11816675215959549, 0.0877716988325119, 0.02940824069082737, -0.053741760551929474, 0.005671696737408638, -0.04514474421739578, -0.07508650422096252, 0.004470277577638626, -0.015924442559480667, -0.0189905297011137, -0.17046158015727997, 0.01971818506717682, -0.06798506528139114, -0.01683071069419384, -0.07562962919473648, 0.027038978412747383, -0.07871188968420029, 0.06106260046362877, 0.04560719057917595, -0.020508350804448128, -0.02744770422577858, -0.028868677094578743, 0.0351613387465477, -0.001995437080040574, 0.055419791489839554, 0.016228605061769485, 0.038351383060216904, 0.007884889841079712, 0.08250007778406143, 0.002905538072809577, 0.04140473157167435, 0.03938581794500351, -0.02954033948481083, 0.012544186785817146, -0.032806385308504105, 0.003619123250246048, 0.025071730837225914, -0.061077747493982315, -0.06530297547578812, -0.01652805507183075, -0.03113284893333912, -0.010408861562609673, 0.07833108305931091, 0.0820203647017479, -0.016403067857027054, 0.0450439453125, 0.08645715564489365, 0.10984553396701813, 0.054582368582487106, 0.041012346744537354, 0.02677414007484913, -0.052796971052885056, 0.004347953014075756, 0.05897122249007225, -0.018592985346913338, -0.06965363770723343, 0.002120528370141983, 0.030792981386184692, 0.05151405557990074, -0.018023695796728134, -0.013997509144246578, -0.01750822179019451, 0.0014278579037636518, -0.03638938069343567, -0.031167102977633476, -0.02231346070766449, 0.039548277854919434, -0.010209879837930202, -0.02578083612024784, 0.03828396275639534, -0.03311239928007126, -0.07084469497203827, 0.004039251245558262, -0.047079890966415405, -0.10001365095376968, 0.009591475129127502, 0.015611216425895691, 0.03262079134583473, -0.07382402569055557, -0.022746695205569267, -0.00019569195865187794, 0.015933994203805923, -0.003637013491243124, 0.02828879840672016, 0.016015658155083656, 0.12226913124322891, -0.0129941925406456, -0.03848225623369217, -0.001289545209147036, 0.09394507110118866, 0.029990550130605698, 0.10877838730812073, -0.01034589670598507, -0.01778363808989525, 0.06838074326515198, 0.0013757841661572456, 0.03823439031839371, -0.05690363794565201, 0.013235359452664852, -0.0888880267739296, -0.060117170214653015, -0.04539615288376808, -0.015907028689980507, -0.04468512907624245, -0.0704261064529419, 0.07628002017736435, -0.06396326422691345, 0.04449129104614258, 0.04419548436999321, -0.023782089352607727, -0.028431549668312073, 0.06460440158843994, 0.019677549600601196, 0.018939733505249023, -0.017009370028972626, 0.09497296810150146, -0.018270067870616913, -0.023693835362792015, 0.015759792178869247, -0.018734406679868698, -0.0609767809510231, 0.024743787944316864, -0.07712718844413757, -0.04803990572690964, 0.004623903892934322, -0.05272573232650757, -0.01935778371989727, -0.047561969608068466, 0.05045941099524498, 0.0023513855412602425, 0.03696326166391373, -0.016636181622743607, 0.04465824365615845, 0.025916317477822304, -0.017741752788424492, -0.04222217947244644, 0.061597611755132675, -0.007955046370625496, -0.07347530126571655, 0.040981780737638474, -0.010798580013215542, 0.02462453953921795, -0.03592846542596817, -0.0948035940527916, 0.006130707450211048, 0.07144331932067871, -0.03431257978081703, 0.066530741751194, 0.04212098568677902, -0.03567733243107796, -0.00023513934866059572, -0.060263775289058685, -0.019948558881878853, 0.10600997507572174, -0.02267732471227646, 0.01738608628511429, 0.02019559033215046, -0.008748612366616726, 0.07554859668016434, -0.0712256208062172, -0.031992435455322266, 0.08601637929677963, 0.03954383358359337, -0.022311009466648102, 0.06082525849342346, -0.011990545317530632, 0.028849685564637184, -0.032650504261255264, 0.007144683040678501, -0.014108434319496155, 0.018541591241955757, -0.008470353670418262, 0.016654398292303085, 0.01702241227030754, 0.038115233182907104, -0.12194877862930298, -0.014478124678134918, -0.08560922741889954, 0.04359302669763565, -0.030039586126804352, 0.004496547393500805, -0.02974899671971798, 0.02089698612689972, -0.02319176495075226, 0.1080409362912178, -0.002044388558715582, -0.010385814122855663, -0.03551692143082619, -0.036931440234184265, 0.030496472492814064, 0.057783618569374084, 0.016380028799176216, 0.04659489914774895, -0.08784237504005432, -0.006171663291752338, -0.02470194175839424, -0.007545518223196268, 0.04313061386346817, -0.036860186606645584, -0.05921453982591629, -0.056500453501939774, -0.008513753302395344, 0.0038741205353289843, -0.039957012981176376, -0.02623492106795311, 0.013935827650129795, -0.0299705658107996, -0.04722273349761963, -0.05477011576294899, -0.024701816961169243, 0.09123227000236511, -0.034398116171360016, -0.014693929813802242, -0.02858535200357437, -0.03027448244392872, 0.01067483238875866, 0.06766065955162048, -0.01676531508564949, 0.020808091387152672, 0.019946414977312088, -0.0020349666010588408, 0.005623278673738241, -0.010909141041338444, 0.0027243488002568483, 0.016348889097571373, 0.032201144844293594, -0.04009099677205086, -0.04569179564714432, -0.017875781282782555, -0.04496725648641586, -0.008102706633508205, 0.0497596338391304, -0.009071996435523033, 0.011350915767252445, 0.019804254174232483, -0.036509059369564056, 0.05112171545624733, 0.018419302999973297, 0.014058693312108517, 0.02856241911649704, 0.06014407426118851, 0.0044441563077270985, -0.06931478530168533, 0.0022887929808348417, -0.010822695679962635, -0.01864650845527649, 0.02432650327682495, 0.003855810035020113, -0.03023114800453186, -0.014711522497236729, 0.008535908535122871, -0.0222755316644907, -0.018078606575727463, 0.006437585223466158, -0.003880760632455349, 0.012364398688077927, -0.02540581300854683, 0.006323016714304686, 0.009408221580088139, 0.030006036162376404, -0.017109885811805725, 0.019973205402493477, -0.00799582526087761, 0.030839351937174797, -0.04410860687494278, 0.033504556864500046, 0.014423619024455547, 0.003177368314936757, -0.028157802298665047, -0.01722920872271061, -0.013961589895188808, 0.044411782175302505, -0.09905678778886795, -0.017104238271713257, -0.004295588005334139, 0.02590222842991352, -0.039135631173849106, -0.03344154357910156, 0.040202539414167404, 0.0046297842636704445, -0.02977578528225422, 0.02855478599667549, 0.007767847739160061, 0.002668562810868025, -0.0272806566208601, 0.05040008947253227, 0.02747786045074463, 0.0029299017041921616, -0.03749847039580345, 0.01781967468559742, 0.018789134919643402, 0.02271372079849243, -0.04002337530255318, 0.05077815055847168, -0.034942928701639175, 0.01586521975696087, -0.048578858375549316, 0.020004579797387123, 0.048461221158504486, 0.04332493618130684, -0.03941499814391136, -0.03462473675608635, -0.022791512310504913, 0.00010885803203564137, -0.006410622503608465, -0.01646430976688862, -0.011683550663292408, 0.012986819259822369, -0.01763271540403366, -0.04869776964187622, 0.014731807634234428, 0.02939027175307274, -0.0038898149505257607, 0.0143118379637599, -0.020262762904167175, -0.030330752953886986, 0.007938859984278679, -0.005295895040035248, 0.018270205706357956, -0.013685221783816814, 0.02099195308983326, -0.043488968163728714, -0.022608833387494087, -0.035473234951496124, -0.015513826161623001, 0.02283395268023014, -0.0009992443956434727, -0.01476061251014471, -0.01519582699984312, 0.049470629543066025, -0.0061291600577533245, 0.012525033205747604, -0.056307367980480194, 0.09166933596134186, 0.03459053859114647, 0.01972304657101631, -0.05779675766825676, 0.03170943632721901, 0.021334251388907433, 0.0453343391418457, -0.02801067754626274, 0.01660989038646221, -0.03246554359793663, 0.03466697037220001, 0.011449448764324188, 0.010002490133047104, -0.013890305534005165, -0.011079233139753342, -0.0123795997351408, 0.00013182483962737024, 0.06907304376363754, 0.032926663756370544, -0.018384402617812157, -0.030574405565857887, -0.005938075948506594, -0.013960334472358227, -0.023819981142878532, 0.026464175432920456, 0.0025786254554986954, -0.0014650675002485514, 0.011198220774531364, 0.019611407071352005, 0.024465259164571762, -0.008960075676441193, 0.023906735703349113, -0.0015446339966729283, -0.013592028059065342, 0.00012589407560881227, 0.014285086654126644, 0.02723103202879429, -0.011131027713418007, 0.047900550067424774, 0.013809558004140854, -0.04273189604282379, -0.015662727877497673, 0.025921063497662544, 0.027240214869379997, -0.0039893584325909615, -0.014088627882301807, -0.025178520008921623, 0.005485515110194683, -0.008477690629661083, 0.023443123325705528, -0.0017326574306935072, 0.021238205954432487, 0.004254112485796213, 0.05342436581850052, 0.0341796949505806, 0.005260223988443613, -0.03500274196267128, -0.027172178030014038, 0.03222936764359474, -0.028000710532069206, 0.029766114428639412, -0.044593170285224915, -0.051970016211271286, 0.03710344806313515, 0.006402222439646721, 0.029748614877462387, 0.04968324303627014, -0.0020656674169003963, -0.030209291726350784, -0.03652669116854668, -0.01906002312898636, 0.0032555744983255863, -0.013312184251844883, -0.03396809846162796, 0.01965433731675148, 0.02349148504436016, 0.0006265129777602851, 0.032424602657556534, -0.05105721578001976, -0.022406335920095444, 0.006924278102815151, 0.014615698717534542, -0.018866529688239098, 0.03686583414673805, -0.02478810027241707, -0.012250702828168869, 0.013908219523727894, -0.024552471935749054, -0.014441589824855328, 0.029216548427939415, -0.01987903192639351, -0.005671287886798382, 0.009222718887031078, -0.014551544561982155, -0.008109786547720432, 0.03748905286192894, 0.019081195816397667, 0.02132134512066841, 0.01643729768693447, 0.013576490804553032, 0.003137212246656418, -0.02639826014637947, 0.025288553908467293, 0.03101561777293682, 0.004687180742621422, -0.020032498985528946, -0.06049159914255142, 0.018633108586072922, -0.0097665349021554, -0.03780481591820717, 0.008369125425815582, 0.013031044974923134, -0.043885957449674606, 0.015400593169033527, 0.05571693554520607, 0.022388724610209465, 0.003569485619664192, 0.02105441503226757, -0.0023651716765016317, -0.0022328621707856655, -0.04544443264603615, 0.03782200813293457, 0.015091504901647568, 0.01894182711839676, -0.003933898638933897, 0.01439648773521185, 0.09042280167341232, 0.029715342447161674, -0.0007440504850819707, 0.004982312209904194, -0.031237563118338585, -0.007387558929622173, 0.008712686598300934, 0.007647729944437742, 0.012586181983351707, 0.011964426375925541, 0.006818488240242004, 0.016711747273802757, -0.022179683670401573, 0.015251931734383106, 0.07768823951482773, -0.01549747958779335, 0.011323357000946999, -0.0029510415624827147, -0.011668482795357704, -0.010810013860464096, -0.03485206514596939, 0.066072978079319, -0.026482880115509033, 0.028661254793405533, 0.01973000355064869, -0.013259523548185825, 0.00394026655703783, -0.0083539430052042, -0.015058929100632668, -0.0682884082198143, 0.027913201600313187, 0.035050589591264725, 0.045125216245651245, 0.009948455728590488, 0.03457936272025108, -0.009383050724864006, -0.010096203535795212, 0.045647069811820984, -0.029545262455940247, -0.0075976611115038395, 0.03543093428015709, 0.006104128435254097, 0.005903077311813831, 0.027224265038967133, -0.019278543069958687, -0.016966750845313072, 0.03711502254009247, 0.0004999593365937471, -0.004602300468832254, -0.02503373846411705, 0.03860655799508095, 0.015031784772872925, -0.039560411125421524, -0.04920569062232971, -0.01180943101644516, -0.024378711357712746, 0.03965598717331886, -0.01863565482199192, -0.004836477339267731, 0.03823975846171379, -0.03239154443144798, -0.008795827627182007, -0.011473037302494049, 0.019231026992201805, -0.02679847553372383, 0.023311788216233253, 0.03735969215631485, -0.02550951950252056, -0.013073260895907879, -0.003632205305621028, -0.014096743427217007, 0.015569894574582577, -0.010806528851389885, 0.03780113160610199, 0.013112278655171394, 0.015691135078668594, 0.055721815675497055, -0.009360913187265396, 0.05663815885782242, 0.002333188196644187, -0.04317259415984154, 0.0014099663821980357, 0.009491819888353348, 0.007108212914317846, 0.0646706074476242, 0.015304096043109894, -0.010588841512799263, 0.0074960608035326, -0.02605390176177025, -0.005719910375773907, 0.03770878538489342, -0.007753907237201929, 0.012282722629606724, 0.034354038536548615, 0.02313794009387493, 0.029455769807100296, -0.019059250131249428, 0.008887019008398056, -0.011105753481388092, 0.07631169259548187, 0.03836369886994362, 0.050540193915367126, 0.043605394661426544, 0.004176761023700237, 0.0469343475997448, -0.05263879895210266, -0.02177491970360279, -0.04656437784433365, 0.036901336163282394, 0.027220003306865692, 0.010877304710447788, 0.037945978343486786, -0.04806959629058838, 0.04084295406937599, 0.02496941201388836, 0.0381125807762146, 0.013726112432777882, 0.025653216987848282, 0.014036644250154495, 0.059097349643707275, 0.010164874605834484, 0.03826596960425377, 0.034747421741485596, -0.02680332027375698, 0.020229917019605637, 0.015083461999893188, 0.04826823249459267, 0.003256036201491952, -0.02853858470916748, 0.03301342576742172, 0.020692141726613045, -0.00429697846993804, -0.01592937856912613, 0.02300102449953556, 0.0076866354793310165, -0.0026961867697536945, 0.014218572527170181, -0.026228219270706177, -0.009176205843687057, -0.026791619136929512, -0.026780374348163605, -0.02554812841117382, 0.026752343401312828, -0.0019309818744659424, 0.030976446345448494, -0.0027281837537884712, -0.04011494293808937, -0.007452244870364666, -0.016132790595293045, 0.010829228907823563, 0.02671668864786625, -0.014572571963071823, 0.013662387616932392, -0.01619027741253376, -0.01992059126496315, -0.01704789325594902, 0.048357654362916946, -0.04269693046808243, 0.012543659657239914, 0.01790863648056984, -0.030389877036213875, 0.023437676951289177, 0.019037190824747086, 0.010283352807164192, 0.004949805326759815, -0.021175211295485497, 0.008732385002076626, 0.010052050463855267, -0.03460416570305824, 0.008808068931102753, 0.002255051862448454, -0.015624046325683594, 0.01818995550274849, 0.034621357917785645, 0.013417685404419899, -0.002985250437632203, -0.023903289809823036, -0.057840604335069656, 0.00002533327460696455, -0.04819069057703018, -0.01751602254807949, -0.008436501026153564, 0.010306969285011292, -0.031146852299571037, 0.01688525080680847, -0.008077258244156837, 0.02976033091545105, 0.0017818249762058258, 0.03039519675076008, 0.023599237203598022, -0.011230251751840115, -0.012504042126238346, -0.022314582020044327, 0.059544142335653305, 0.005781454499810934, -0.005869931075721979, 0.03335609287023544, 0.01983627863228321, -0.015216990374028683, 0.013890422880649567, 0.01196202076971531, -0.06758545339107513, 0.044367704540491104, -0.002307039685547352, 0.0008402511011809111, -0.0228901244699955, -0.007032269611954689, -0.0062703946605324745, -0.0132986418902874, -0.051835253834724426, -0.009956195019185543, -0.026770569384098053, -0.021233363077044487, -0.0021025666501373053, -0.0011009679874405265, 0.06267686933279037, 0.09212539345026016, -0.0036366735585033894, -0.01438306923955679, -0.016781263053417206, 0.010492864064872265, -0.00538849039003253, -0.008274010382592678, 0.045345157384872437, -0.007534489035606384, -0.0057837083004415035, -0.03703181818127632, 0.013905997388064861, 0.010603589937090874, -0.017793746665120125, 0.0007827968220226467, -0.019679682329297066, -0.013570285402238369, -0.03288218006491661, -0.019499314948916435, 0.0388922244310379, 0.008948138915002346, 0.042820896953344345, -0.024280954152345657, 0.021879449486732483, 0.013917502015829086, -0.022971538826823235, -0.09191038459539413, 0.024760644882917404, -0.03325033187866211, -0.026792248710989952, -0.001277657924219966, 0.029021460562944412, 0.04650226607918739, 0.034112002700567245, -0.011180260218679905, -0.018966712057590485, 0.025397567078471184, -0.03736099228262901, -0.02911538816988468, -0.003363655647262931, 0.03907998651266098, -0.010873081162571907, -0.05929238721728325, -0.023444509133696556, 0.017137175425887108, -0.010614905506372452, -0.0011881201062351465, -0.013812570832669735, -0.013353120535612106, 0.038879379630088806, -0.0075579141266644, -0.0010690760100260377, 0.034344226121902466, 0.024544021114706993, -0.00938347540795803, 0.012931091710925102, 0.02498256415128708 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Demo You can easily try the Code Llama Model (13 billion parameters!) in this Space or in the playground embedded below: Under the hood, this playground uses Hugging Face's Text Generation Inference, the same technology that powers HuggingChat, and we'll share more in the following sections. If you want to try out the bigger instruct-tuned 34B model, it is now available on HuggingChat! You can try it out here: hf.co/chat. Make sure to specify the Code Llama model. You can also check this chat-based demo and duplicate it for your use – it's self-contained, so you can examine the source code and adapt it as you wish!
[ 0.004186231642961502, -0.015779724344611168, 0.08633691817522049, -0.006880185101181269, 0.10952972620725632, 0.03087170049548149, 0.07343863695859909, 0.05476456135511398, -0.03115631453692913, -0.04633493721485138, -0.07994922250509262, 0.0407758429646492, -0.03087388537824154, 0.05376792699098587, -0.055086199194192886, -0.05091593414545059, 0.02983907237648964, -0.0030181342735886574, 0.03274742513895035, 0.04317951202392578, -0.030360104516148567, -0.0007863712962716818, 0.05007930099964142, -0.03163720667362213, 0.007105517201125622, -0.03660847246646881, 0.02687828429043293, -0.003927165642380714, -0.01642107591032982, 0.041595567017793655, -0.11529971659183502, -0.03489077091217041, 0.011267120018601418, -0.021035972982645035, 0.015397739596664906, 0.008783543482422829, -0.14986832439899445, 0.05782502517104149, -0.03426791727542877, -0.02056865207850933, 0.01377780083566904, -0.03769877552986145, -0.03511641174554825, 0.044525571167469025, 0.005130518693476915, -0.00969367753714323, -0.20490127801895142, 0.07097836583852768, -0.03410857915878296, -0.0015880208229646087, -0.10436398535966873, 0.06902101635932922, -0.017106633633375168, 0.00011623056343523785, 0.0414869524538517, -0.029555730521678925, -0.027092790231108665, -0.0616561658680439, 0.00861510168761015, 0.008684027008712292, 0.005806645378470421, -0.009386396035552025, 0.03643949329853058, 0.02338186651468277, 0.03890424221754074, 0.05834835767745972, 0.00029364496003836393, -0.01490767765790224, -0.04381468519568443, -0.0048793600872159, 0.028693433851003647, -0.03970892354846001, -0.055734578520059586, -0.03402104601264, 0.016863008961081505, -0.07144532352685928, -0.04608883708715439, 0.06065436825156212, 0.0533573217689991, 0.02395797148346901, -0.0459444597363472, 0.007265995256602764, 0.06236725673079491, 0.047549907118082047, -0.0019982559606432915, 0.058953721076250076, 0.07574647665023804, 0.011740763671696186, -0.042228810489177704, 0.028239261358976364, -0.06516389548778534, -0.15236598253250122, -0.04981748014688492, 0.012438383884727955, 0.05666530504822731, -0.003799258964136243, 0.01808251440525055, 0.019557897001504898, 0.02297312580049038, -0.04146333783864975, -0.02774002216756344, -0.05747022107243538, 0.03636962175369263, -0.03555048257112503, -0.03789876028895378, -0.001328032580204308, -0.028030045330524445, -0.11204633861780167, -0.037449028342962265, -0.03276266157627106, -0.016665775328874588, 0.0022477409802377224, 0.07593405246734619, 0.09638819843530655, -0.09984259307384491, 0.01878468133509159, 0.016982268542051315, 0.0153512516990304, 0.010992857627570629, -0.0067451042123138905, 0.0011879954254254699, 0.0846431776881218, 0.06121541187167168, 0.019188527017831802, 0.05088730528950691, 0.05911555513739586, 0.00884431041777134, 0.01685466431081295, 0.011814638040959835, -0.000838965643197298, 0.019540905952453613, -0.03318953141570091, 0.04452335089445114, -0.0109229302033782, -0.0024883963633328676, -0.045105814933776855, -0.0015516909770667553, -0.06327246129512787, 0.01955738477408886, 0.007829016074538231, -0.007748807314783335, 0.03227008134126663, 0.03227832913398743, 0.006112632341682911, 0.07547295093536377, -0.014320719987154007, -0.06964949518442154, 0.020475156605243683, -0.034297678619623184, -0.02436615340411663, -0.07501619309186935, 0.029509825631976128, -0.008167565800249577, -0.034789759665727615, 0.016769463196396828, 0.011086251586675644, -0.05128238722681999, -0.02548760548233986, -0.07218755781650543, -0.01795736514031887, 0.03891529515385628, -0.004720598459243774, -0.03195947781205177, 0.0032328672241419554, -0.0005985659081488848, 0.018389269709587097, -0.01325069647282362, 0.025742195546627045, -0.05739777535200119, -0.052319109439849854, 0.01570720411837101, -0.03367087244987488, 0.05012708157300949, -0.03313660994172096, -0.024332320317626, 0.07753423601388931, 0.05050961673259735, 0.020582742989063263, 0.023663422092795372, 0.02394915372133255, -0.03914127126336098, 0.03225204721093178, -0.0017664892366155982, 0.04114602878689766, 0.06448129564523697, -0.09029072523117065, 0.023272985592484474, -0.01063917763531208, -0.01645474322140217, -0.02899681217968464, -0.01502399891614914, 0.0013158146757632494, 0.10189414024353027, 0.06564494967460632, 0.030978921800851822, -0.0807003602385521, -0.012364544905722141, 0.08330272138118744, 0.07830691337585449, 0.11278598755598068, 0.04455946013331413, 0.07835379242897034, 0.043826326727867126, -0.02416110411286354, -0.04761423543095589, 0.01957710087299347, -0.009039360098540783, 0.009751305915415287, -0.023049771785736084, -0.002234836807474494, 0.010444940999150276, -0.10027654469013214, 0.05875689163804054, -0.03631984442472458, 0.03822387754917145, -0.04938200116157532, -0.040957897901535034, -0.023264609277248383, -0.006102803163230419, 0.011171149089932442, 0.15844830870628357, -0.032766927033662796, -0.02982877381145954, -0.04295750707387924, 0.03067055158317089, 0.06641706824302673, 0.06576613336801529, 0.02316606603562832, 0.08253073692321777, -0.0818312019109726, -0.030366797000169754, -0.011941405944526196, -0.016282150521874428, 0.04248000681400299, 0.008829427883028984, -0.005889290478080511, 0.014389138668775558, -0.031055284664034843, 0.03689822927117348, -0.013582768850028515, 0.04677548259496689, -0.011254262179136276, 0.0120826605707407, 0.054281506687402725, -0.07753351330757141, -0.05686912685632706, 0.020455697551369667, 0.055157072842121124, -0.05494910106062889, 0.05357753112912178, -0.058842409402132034, 0.047861140221357346, 0.025469666346907616, 0.01730242557823658, 0.028423862531781197, -0.032697275280952454, -0.015875451266765594, -0.028301650658249855, -0.04262135550379753, 0.02204606868326664, 0.000004574516879074508, -0.001424236223101616, -0.008404701948165894, -0.03025783784687519, -0.014344031922519207, -0.03933611139655113, -0.020792342722415924, 0.022811517119407654, -0.014577079564332962, 0.009940747171640396, 0.021429238840937614, -0.03065001219511032, 0.04995235055685043, 0.009401616640388966, 0.026308944448828697, 0.009598789736628532, 0.04757208749651909, 0.005543980747461319, -0.01105625182390213, -0.018035106360912323, -0.02368500456213951, -0.015595933422446251, 0.032705940306186676, 0.04433353245258331, 0.057473793625831604, -0.008167058229446411, -0.007857692427933216, -0.042836982756853104, -0.022287506610155106, 0.011018039658665657, 0.013475117273628712, 0.022195179015398026, 0.011349793523550034, -0.013065249659121037, 0.007442879490554333, -0.017424292862415314, 0.019011829048395157, 0.011058999225497246, -0.030292967334389687, 0.016088301315903664, 0.016748763620853424, -0.019035324454307556, -0.02267615497112274, -0.0016329975333064795, 0.001063597621396184, 0.027866708114743233, 0.02205740474164486, 0.035693518817424774, -0.1207960769534111, -0.00576227530837059, 0.002828403376042843, 0.009584628976881504, -0.015722131356596947, -0.013838355429470539, 0.05588655173778534, -0.048077501356601715, -0.019227173179388046, 0.01780351810157299, -0.058762695640325546, 0.016763361170887947, 0.025314152240753174, -0.05095039680600166, -0.039900194853544235, -0.008309788070619106, -0.015382455661892891, -0.0012993940617889166, 0.028774319216609, -0.00697525916621089, -0.05496731400489807, 0.059393223375082016, 0.013356762938201427, 0.01284916140139103, -0.047860220074653625, -0.01223045028746128, 0.046673476696014404, -0.007757202256470919, 0.028887232765555382, -0.04018494114279747, 0.0031469545792788267, -0.01134877186268568, -0.033530183136463165, 0.018870260566473007, -0.05914633348584175, 0.0026664200704544783, -0.030094033107161522, 0.007160365115851164, 0.047014232724905014, 0.03597036376595497, 0.03217903897166252, 0.02163289487361908, 0.02866942062973976, -0.03359774127602577, -0.023194149136543274, 0.012240544892847538, -0.04382038116455078, 0.01808864437043667, 0.0582679808139801, -0.038063015788793564, -0.00017968293104786426, -0.02254287526011467, 0.019494323059916496, 0.022676892578601837, 0.010597231797873974, 0.021096641197800636, 0.023087386041879654, 0.01651046611368656, 0.025525124743580818, -0.03478919342160225, -0.06451822072267532, 0.038541924208402634, -0.04165193811058998, 0.020312966778874397, -0.0033520017750561237, 0.05374066159129143, -0.00015861164138186723, 0.009228202514350414, -0.008325474336743355, 0.047544654458761215, -0.01054853480309248, 0.026654936373233795, 0.0020719068124890327, 0.009294329211115837, -0.00804869830608368, 0.011993853375315666, -0.014819401316344738, -0.03438051417469978, 0.08055932074785233, 0.005948572885245085, -0.013429652899503708, -0.015030384995043278, -0.02491910010576248, -0.026309607550501823, 0.02112693339586258, -0.016784440726041794, 0.03187405690550804, -0.021841373294591904, 0.0022884951904416084, 0.04628400132060051, -0.008639642968773842, -0.009609263390302658, 0.02340390905737877, 0.014472845941781998, 0.011817158199846745, 0.028382433578372, 0.02328384853899479, -0.002397929085418582, -0.015920063480734825, 0.008501493372023106, 0.057841554284095764, -0.01716935820877552, -0.0077985613606870174, 0.025179779157042503, -0.01044699177145958, 0.041960444301366806, -0.03745774179697037, -0.026355937123298645, 0.007301545701920986, 0.007075706962496042, -0.028059881180524826, -0.02525205910205841, 0.016800209879875183, -0.002318932907655835, 0.008761672303080559, 0.02673421800136566, -0.024946924299001694, -0.016867540776729584, -0.043782107532024384, -0.004234999418258667, -0.017127322033047676, 0.010776140727102757, 0.01012437604367733, -0.016663122922182083, 0.010621526278555393, -0.023334112018346786, 0.019818639382719994, 0.02341408096253872, 0.022702429443597794, 0.026793600991368294, -0.02307133749127388, -0.05514548346400261, 0.023099370300769806, 0.01285888347774744, 0.004065710585564375, 0.023707497864961624, -0.03596175089478493, 0.009148700162768364, -0.032155249267816544, -0.0524296797811985, -0.014683619141578674, 0.004034803714603186, -0.0009753269841894507, -0.009936864487826824, 0.021247657015919685, 0.005775075405836105, -0.014724086970090866, -0.03085016831755638, 0.007438150700181723, 0.0185227133333683, 0.04201990365982056, -0.03831254318356514, -0.02628946304321289, 0.014059611596167088, 0.016517559066414833, 0.0000859761712490581, -0.005203650798648596, 0.03540794178843498, -0.020127326250076294, 0.04117998480796814, 0.0034977407194674015, 0.012738901190459728, -0.04428098723292351, 0.04013568162918091, -0.006011690478771925, -0.030115796253085136, 0.01025407761335373, -0.025605138391256332, 0.002066798508167267, -0.019719043746590614, -0.029972825199365616, -0.00834580697119236, 0.02666022628545761, -0.008400404825806618, -0.0024200270418077707, 0.0620141364634037, 0.03137950971722603, 0.005569515284150839, 0.02605294995009899, 0.0305700171738863, -0.03543700650334358, -0.03027978725731373, 0.018663953989744186, 0.015463263727724552, 0.02432226948440075, 0.0026357746683061123, 0.07432357966899872, 0.05155777558684349, 0.04898818954825401, 0.02726754918694496, -0.024331985041499138, 0.010322313755750656, -0.014096853323280811, -0.03127621114253998, 0.004424093756824732, -0.01547639537602663, -0.003530304878950119, -0.0002997729752678424, -0.005209330935031176, 0.010665358044207096, 0.032348982989788055, 0.03058682195842266, -0.03713594004511833, -0.007332582958042622, 0.00762706995010376, -0.003849342931061983, 0.0034056741278618574, -0.0563695915043354, 0.032103829085826874, -0.04028411582112312, -0.029361864551901817, -0.010028209537267685, -0.000655508425552398, -0.002385440981015563, 0.023326775059103966, -0.013586844317615032, -0.02277262508869171, -0.006663308013230562, 0.036098115146160126, 0.05445009469985962, 0.016663409769535065, -0.02965952642261982, -0.010680470615625381, -0.014808835461735725, 0.020737813785672188, -0.022522959858179092, 0.01431613601744175, 0.027942346408963203, -0.005070755258202553, 0.012009701691567898, 0.05630110204219818, 0.0032407213002443314, 0.021670058369636536, 0.04822942242026329, 0.008918012492358685, 0.02573341876268387, -0.08070437610149384, 0.020471563562750816, 0.02650555782020092, -0.001207781839184463, 0.01787506602704525, -0.03155609592795372, -0.03370754420757294, -0.02063097059726715, -0.032234709709882736, 0.030190907418727875, 0.06869570910930634, 0.00465139327570796, -0.0036637664306908846, -0.022030729800462723, 0.018892664462327957, -0.030633332207798958, 0.017631199210882187, 0.0017200232250615954, -0.01960226148366928, 0.017490725964307785, 0.01104193925857544, 0.007319908123463392, 0.01159493438899517, -0.02386181615293026, 0.008063189685344696, -0.04577965661883354, 0.0054009780287742615, 0.0333099402487278, -0.02547692134976387, 0.04536762461066246, 0.016921285539865494, -0.0040719457902014256, 0.0037156660109758377, 0.024092011153697968, 0.021379174664616585, 0.008109047077596188, -0.022277196869254112, 0.0034548863768577576, 0.004778920207172632, -0.025454280897974968, 0.024452554062008858, 0.0902295708656311, 0.007761032786220312, 0.030076337978243828, 0.01559413317590952, 0.056902021169662476, 0.04157298803329468, 0.02514893375337124, -0.024205725640058517, 0.03487393632531166, 0.058988042175769806, 0.009274485521018505, 0.01763542741537094, -0.013431575149297714, -0.04153316468000412, 0.0053947861306369305, -0.04393889009952545, 0.01241154596209526, -0.0013273379299789667, 0.012886122800409794, 0.04134383797645569, 0.0028754558879882097, 0.033616166561841965, -0.040210142731666565, 0.057496946305036545, 0.027845054864883423, 0.004684060346335173, -0.013312575407326221, 0.006248020101338625, -0.01205405592918396, 0.0008442749385721982, -0.016975287348031998, 0.009895204566419125, 0.010957092046737671, -0.01985989883542061, 0.03356451541185379, -0.0020205306354910135, 0.02988971211016178, -0.03546435013413429, -0.010296178981661797, 0.013330036774277687, 0.013290351256728172, 0.011431612074375153, 0.0117398202419281, 0.010354713536798954, -0.004785193596035242, -0.00589704280719161, -0.004103933461010456, 0.012234438210725784, -0.031193966045975685, -0.008874911814928055, -0.01031115185469389, -0.017614658921957016, -0.017159923911094666, 0.004433854483067989, 0.06792323291301727, -0.008275128901004791, -0.03578763082623482, -0.00587443495169282, -0.0111295897513628, -0.017479147762060165, 0.00364111689850688, -0.014438536018133163, 0.005527612287551165, 0.02395859733223915, -0.03124157153069973, -0.016932953149080276, -0.00725431926548481, -0.015183818526566029, -0.012783011421561241, 0.010098656639456749, 0.04869148135185242, -0.01690349169075489, 0.0207726638764143, 0.011198649182915688, 0.01150465290993452, -0.041900165379047394, 0.005823776591569185, 0.00727489311248064, 0.01921178586781025, -0.04594811052083969, -0.031350020319223404, -0.0067787813022732735, -0.0018643836956471205, 0.003599035320803523, 0.022125691175460815, 0.024365225806832314, -0.034123871475458145, -0.02464035153388977, -0.004713425878435373, -0.002418601419776678, -0.015363773331046104, 0.035021472722291946, 0.0006646355031989515, 0.0053647346794605255, -0.010604677721858025, 0.009930011816322803, -0.0024441550485789776, -0.032582953572273254, 0.009162433445453644, 0.04904237762093544, -0.017613433301448822, -0.05507611483335495, -0.006100587546825409, 0.06133556738495827, 0.012245843186974525, 0.033062148839235306, 0.04708411172032356, -0.006648211274296045, 0.030576052144169807, -0.048938751220703125, 0.0308388564735651, -0.03160640597343445, 0.016346706077456474, -0.01532344613224268, -0.042701855301856995, -0.016157260164618492, -0.003139994340017438, 0.0067468625493347645, -0.011480406858026981, -0.049546293914318085, -0.0388813316822052, -0.024921784177422523, 0.009730842895805836, -0.02521040476858616, 0.007219267543405294, 0.0741158053278923, 0.01818721555173397, 0.0573694184422493, -0.010410861112177372, -0.004380630794912577, -0.02030530571937561, -0.000058750531024998054, 0.016451211646199226, 0.05561225488781929, -0.0062056900933384895, -0.008276629261672497, -0.052150920033454895, -0.012755638919770718, 0.006147788371890783, -0.07415317744016647, 0.01319793239235878, 0.027268776670098305, -0.028682619333267212, 0.0015964902704581618, -0.01632048562169075, 0.009442628361284733, 0.019788503646850586, 0.057444099336862564, -0.02332950383424759, -0.006019970867782831, -0.006913862656801939, 0.007085530087351799, -0.054782528430223465, 0.009491161443293095, -0.016537059098482132, 0.006502160802483559, 0.013860475271940231, 0.026538539677858353, 0.01320380438119173, 0.011682434938848019, -0.03884188085794449, 0.010461904108524323, 0.024930788204073906, -0.04249081760644913, -0.02364812232553959, -0.0002579213469289243, 0.004800676833838224, -0.03331751748919487, -0.007408942095935345, 0.021152900531888008, 0.016264183446764946, -0.04010779783129692, -0.050978485494852066, -0.00430684769526124, -0.01939287781715393, 0.004549592733383179, 0.028609860688447952, 0.0062199062667787075, 0.0698397159576416, 0.058387722820043564, -0.014607931487262249, -0.021619873121380806, 0.03133923560380936 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Evaluation Language models for code are typically benchmarked on datasets such as HumanEval. It consists of programming challenges where the model is presented with a function signature and a docstring and is tasked to complete the function body. The proposed solution is then verified by running a set of predefined unit tests. Finally, a pass rate is reported which describes how many solutions passed all tests. The pass@1 rate describes how often the model generates a passing solution when having one shot whereas pass@10 describes how often at least one solution passes out of 10 proposed candidates. While HumanEval is a Python benchmark there have been significant efforts to translate it to more programming languages and thus enable a more holistic evaluation. One such approach is MultiPL-E which translates HumanEval to over a dozen languages. We are hosting a multilingual code leaderboard based on it to allow the community to compare models across different languages to evaluate which model fits their use-case best. | Model | License | Dataset known | Commercial use? | Pretraining length [tokens] | Python | JavaScript | Leaderboard Avg Score | | ---------------------- | ------------------ | ------------- | --------------- | --------------------------- | ------ | ---------- | --------------------- | | CodeLlaMa-34B | Llama 2 license | ❌ | ✅ | 2,500B | 45.11 | 41.66 | 33.89 | | CodeLlaMa-13B | Llama 2 license | ❌ | ✅ | 2,500B | 35.07 | 38.26 | 28.35 | | CodeLlaMa-7B | Llama 2 license | ❌ | ✅ | 2,500B | 29.98 | 31.8 | 24.36 | | CodeLlaMa-34B-Python | Llama 2 license | ❌ | ✅ | 2,620B | 53.29 | 44.72 | 33.87 | | CodeLlaMa-13B-Python | Llama 2 license | ❌ | ✅ | 2,620B | 42.89 | 40.66 | 28.67 | | CodeLlaMa-7B-Python | Llama 2 license | ❌ | ✅ | 2,620B | 40.48 | 36.34 | 23.5 | | CodeLlaMa-34B-Instruct | Llama 2 license | ❌ | ✅ | 2,620B | 50.79 | 45.85 | 35.09 | | CodeLlaMa-13B-Instruct | Llama 2 license | ❌ | ✅ | 2,620B | 50.6 | 40.91 | 31.29 | | CodeLlaMa-7B-Instruct | Llama 2 license | ❌ | ✅ | 2,620B | 45.65 | 33.11 | 26.45 | | StarCoder-15B | BigCode-OpenRail-M | ✅ | ✅ | 1,035B | 33.57 | 30.79 | 22.74 | | StarCoderBase-15B | BigCode-OpenRail-M | ✅ | ✅ | 1,000B | 30.35 | 31.7 | 22.4 | | WizardCoder-15B | BigCode-OpenRail-M | ❌ | ✅ | 1,035B | 58.12 | 41.91 | 32.07 | | OctoCoder-15B | BigCode-OpenRail-M | ✅ | ✅ | 1,000B | 45.3 | 32.8 | 24.01 | | CodeGeeX-2-6B | CodeGeeX License | ❌ | ❌ | 2,000B | 33.49 | 29.9 | 21.23 | | CodeGen-2.5-7B-Mono | Apache-2.0 | ✅ | ✅ | 1400B | 45.65 | 23.22 | 12.1 | | CodeGen-2.5-7B-Multi | Apache-2.0 | ✅ | ✅ | 1400B | 28.7 | 26.27 | 20.04 | Note: The scores presented in the table above are sourced from our code leaderboard, where we evaluate all models with the same settings. For more details, please refer to the leaderboard.
[ 0.04802427440881729, -0.031196510419249535, -0.01266185101121664, -0.013502118177711964, 0.03672130033373833, 0.0962907001376152, 0.036462608724832535, -0.013759457506239414, -0.00917320791631937, 0.026024706661701202, 0.0034754963126033545, 0.04036809131503105, -0.025126798078417778, -0.025602972134947777, 0.04102572053670883, -0.03142565116286278, 0.046704456210136414, 0.008648449555039406, 0.07117567956447601, 0.04632830247282982, -0.08981998264789581, -0.030995484441518784, 0.05477301776409149, -0.03742820769548416, -0.09416437149047852, 0.002135314978659153, -0.018297355622053146, -0.006733841262757778, -0.0712779313325882, 0.02817337028682232, -0.07139256596565247, 0.006781012751162052, -0.039527617394924164, 0.005288221873342991, -0.019016360864043236, -0.011879798024892807, -0.06606612354516983, 0.07858431339263916, 0.000005955254437139956, -0.09209343045949936, 0.07859992980957031, -0.07029392570257187, 0.008684763684868813, 0.034536439925432205, -0.0377865731716156, 0.030163858085870743, -0.09512518346309662, 0.022021425887942314, -0.023856783285737038, 0.05772706866264343, -0.10717859119176865, 0.040015071630477905, -0.04818104952573776, 0.00579150952398777, -0.013260316103696823, -0.021797869354486465, -0.012334589846432209, -0.09484710544347763, 0.007110449951142073, 0.11081510037183762, 0.032266125082969666, -0.05644463375210762, 0.023205412551760674, -0.005237694829702377, 0.07726418226957321, 0.02155335806310177, -0.02545659802854061, 0.11935468018054962, -0.02370375394821167, -0.029714208096265793, -0.019689086824655533, -0.07824137061834335, -0.07486923038959503, -0.01026663277298212, 0.023684769868850708, -0.08884800225496292, -0.05896709859371185, 0.033068086951971054, 0.02156631276011467, 0.04992412403225899, 0.007596696726977825, 0.05514140427112579, 0.059581734240055084, -0.006319782231003046, -0.0032149450853466988, 0.0006698580691590905, 0.0024485953617841005, -0.020509395748376846, -0.027595242485404015, -0.008349532261490822, -0.023291006684303284, -0.09155037999153137, -0.014392961747944355, 0.04717226326465607, 0.0436137355864048, -0.07278376072645187, 0.014788080006837845, 0.05617842450737953, -0.08583768457174301, -0.008090055547654629, 0.00009755354403750971, -0.016051724553108215, 0.05116531252861023, -0.039314791560173035, -0.05448669567704201, 0.0450553335249424, -0.042316924780607224, -0.05055544152855873, -0.05116892606019974, 0.014348557218909264, -0.05476915463805199, -0.0017701111501082778, -0.021299049258232117, 0.05335717275738716, -0.004634196404367685, 0.020660806447267532, 0.010027832351624966, 0.01814580149948597, -0.0375974215567112, 0.0555560365319252, 0.03815392777323723, 0.016824524849653244, 0.009252138435840607, 0.033685196191072464, 0.029881276190280914, 0.07167692482471466, -0.006182518787682056, 0.0808275043964386, -0.029386796057224274, -0.0296039879322052, 0.08903349936008453, -0.03478950634598732, 0.013954095542430878, 0.037616100162267685, 0.011711275205016136, -0.02151309698820114, -0.03154390677809715, -0.033290982246398926, 0.007220642641186714, -0.032599207013845444, -0.06986989080905914, 0.0301912073045969, -0.0023723614867776632, 0.004862770903855562, 0.04750590771436691, 0.032658956944942474, -0.03184118866920471, 0.02785896509885788, 0.026594480499625206, 0.0031623952090740204, -0.05825083702802658, 0.08368188142776489, -0.014455336146056652, -0.005216939374804497, 0.06297474354505539, 0.08684692531824112, -0.008305635303258896, -0.017934530973434448, -0.05822410807013512, 0.01729239709675312, -0.009859885089099407, -0.026351066306233406, -0.06059570610523224, -0.03382504731416702, 0.04635585844516754, 0.030754441395401955, 0.009002964943647385, 0.0656212791800499, -0.006922672037035227, 0.03857024386525154, 0.003009955631569028, -0.007201402448117733, 0.08028939366340637, -0.0015246722614392638, -0.0932173803448677, 0.024216877296566963, 0.05652262270450592, -0.02980954945087433, 0.05194898322224617, 0.03565937280654907, -0.04486514627933502, 0.05856912583112717, 0.018319737166166306, 0.05912958085536957, 0.02653600461781025, -0.11598961800336838, 0.019592110067605972, -0.10393788665533066, 0.030282476916909218, -0.006365668959915638, -0.10836745798587799, 0.03149747848510742, 0.11581360548734665, -0.03646795451641083, 0.027736051008105278, -0.08356024324893951, -0.033610329031944275, 0.05597557872533798, 0.053868088871240616, 0.02771511860191822, 0.013620284385979176, 0.04360580071806908, 0.0529354028403759, -0.0791364461183548, -0.04025588184595108, 0.015774626284837723, 0.008055184036493301, -0.013987275771796703, -0.00890547689050436, 0.017127202823758125, 0.0890410766005516, -0.050671473145484924, -0.033370375633239746, -0.006882058456540108, -0.008978089317679405, 0.042357321828603745, -0.032632384449243546, 0.06183978542685509, 0.02880149334669113, -0.03188255801796913, 0.1780966967344284, -0.06323934346437454, -0.01127348467707634, -0.025093531236052513, -0.037113968282938004, 0.0006723934202454984, 0.0702514797449112, 0.08275401592254639, 0.08452042937278748, -0.04025597870349884, -0.0026722510810941458, -0.02936386875808239, -0.005922546144574881, 0.07447630912065506, -0.022330906242132187, -0.005041304975748062, 0.018352311104536057, 0.004034752491861582, 0.03178967908024788, -0.04239242523908615, 0.01975506730377674, 0.0077943457290530205, 0.01372151356190443, 0.06811962276697159, -0.04263794422149658, -0.055170029401779175, 0.030064653605222702, -0.05590548738837242, 0.010810254141688347, -0.007379091810435057, -0.01736588403582573, 0.02313520759344101, 0.0045141070149838924, -0.002768367063254118, 0.03681657835841179, -0.002788337180390954, -0.021634111180901527, 0.020788274705410004, -0.0170710738748312, 0.0008456236100755632, 0.019861578941345215, 0.02585105411708355, -0.022060515359044075, -0.015406227670609951, -0.0031346066389232874, -0.03158228471875191, -0.0139639712870121, 0.006324680056422949, -0.02067841775715351, -0.01493899803608656, -0.028460880741477013, -0.007887584157288074, 0.019644659012556076, -0.004662692546844482, 0.005261578597128391, 0.016843825578689575, -0.012038341723382473, -0.0385378822684288, -0.04821440204977989, -0.038906458765268326, -0.030847031623125076, -0.024663442745804787, 0.04922456294298172, -0.03195624798536301, 0.020817823708057404, -0.016823437064886093, 0.011961632408201694, -0.013117682188749313, -0.01158127747476101, 0.04177284240722656, 0.00003428669515415095, 0.030518101528286934, -0.02506170980632305, -0.007407796569168568, -0.0021812443155795336, -0.06475996226072311, -0.015109781175851822, 0.026019351556897163, -0.0008253100677393377, -0.0010537225753068924, -0.01814979314804077, 0.0080338753759861, -0.024270901456475258, 0.019273826852440834, -0.033042650669813156, 0.03438675031065941, -0.01629883423447609, 0.030851736664772034, -0.10000655055046082, 0.022531718015670776, 0.0024158915039151907, -0.004056673031300306, -0.0012560838367789984, -0.017522215843200684, 0.05969243124127388, 0.015228264033794403, -0.0387112982571125, 0.0170461256057024, -0.002966614905744791, -0.008214917033910751, 0.04019331932067871, 0.03557320311665535, 0.023233365267515182, 0.015205354429781437, -0.03695429489016533, 0.036792073398828506, 0.01763211190700531, 0.048017553985118866, 0.0063708447851240635, 0.037655241787433624, -0.05137427896261215, -0.003956370521336794, -0.041182853281497955, 0.008715664967894554, 0.032664719969034195, 0.014530566520988941, 0.06216305494308472, 0.006797787267714739, -0.029608149081468582, -0.0066040195524692535, -0.030346980318427086, -0.011209609918296337, -0.06219775974750519, -0.010063565336167812, 0.0068048215471208096, -0.0035712921526283026, -0.0020030171144753695, 0.04224389046430588, -0.02037881314754486, -0.012618716806173325, 0.02757573500275612, -0.041418347507715225, 0.02305935136973858, 0.007056283298879862, 0.02184312418103218, -0.020577112212777138, 0.0012271808227524161, -0.043231330811977386, -0.05851685628294945, 0.017224760726094246, 0.000013175789717934094, 0.07133681327104568, 0.001077819848433137, 0.0032406954560428858, -0.011288757435977459, -0.011317679658532143, -0.007052655331790447, 0.02151595614850521, -0.002794862724840641, 0.045789554715156555, 0.02114652656018734, -0.01522113848477602, -0.049080461263656616, 0.004225028213113546, 0.010293245315551758, -0.019987616688013077, -0.040988706052303314, 0.02431853860616684, 0.00404069758951664, 0.04532909020781517, -0.0008567066979594529, 0.00547847431153059, -0.017573915421962738, -0.020351100713014603, -0.015085071325302124, -0.017367631196975708, 0.048311494290828705, 0.048595741391181946, 0.000467234815005213, -0.06725859642028809, -0.008036091923713684, -0.057843875139951706, 0.0012124305358156562, -0.025500955060124397, 0.04517693072557449, -0.01109510101377964, -0.0029714975971728563, 0.021854015067219734, 0.0026490052696317434, -0.07134952396154404, 0.01240038312971592, 0.06911575049161911, 0.011360276490449905, -0.04001860320568085, 0.06983795017004013, -0.04498140513896942, -0.06627560406923294, 0.03388253226876259, 0.014041232876479626, -0.012023423798382282, -0.010977955535054207, 0.017323818057775497, 0.0037641420494765043, 0.017792291939258575, -0.04079463332891464, -0.0217807125300169, -0.014891844242811203, 0.004994061775505543, -0.008810807950794697, 0.02883327007293701, 0.004574489314109087, -0.011109081096947193, 0.0333617627620697, -0.0010808168444782495, 0.0029311806429177523, 0.004112821072340012, -0.018007751554250717, -0.023412352427840233, -0.025919754058122635, -0.04665003716945648, 0.022869683802127838, -0.014842290431261063, 0.038868390023708344, -0.05397692322731018, 0.038461118936538696, -0.01396562997251749, -0.007299983408302069, 0.0017814523307606578, -0.04596300423145294, 0.017886724323034286, 0.004319468513131142, 0.014737600460648537, -0.025385858491063118, 0.016097676008939743, 0.024983856827020645, -0.008877954445779324, 0.02005075104534626, -0.017547767609357834, 0.0018370598554611206, 0.014408607967197895, -0.01893233321607113, 0.027541350573301315, -0.007083444390445948, -0.00828482210636139, 0.0139163201674819, 0.004237188957631588, -0.03808000683784485, 0.044778622686862946, 0.028762921690940857, -0.029973749071359634, -0.05413880571722984, -0.02321699447929859, 0.0058605060912668705, 0.007662594318389893, -0.0060098920948803425, 0.0009106124634854496, -0.00008117719698930159, 0.01910526491701603, 0.017972875386476517, -0.0289437435567379, -0.05902247130870819, -0.013551718555390835, -0.01759185455739498, -0.003995500970631838, -0.00987449660897255, 0.0010480934288352728, 0.0127329770475626, -0.03262333199381828, -0.01955418474972248, 0.028299445286393166, -0.008282281458377838, -0.021766798570752144, -0.0033401763066649437, -0.026704588904976845, 0.011069443076848984, -0.025586426258087158, -0.014826012775301933, 0.03601296991109848, -0.005459690000861883, -0.03939586877822876, 0.015036674216389656, 0.02399423159658909, 0.04358898475766182, 0.012080817483365536, 0.03223953768610954, 0.07481496781110764, 0.03808925300836563, -0.005821208469569683, -0.03176109865307808, -0.010173458606004715, -0.021998491138219833, -0.029882468283176422, -0.0029863908421248198, -0.03056965582072735, -0.004839912988245487, -0.005490387324243784, -0.04108111187815666, -0.02418099157512188, 0.04671868309378624, 0.02679816074669361, -0.014948530122637749, -0.0030508649069815874, 0.02247040718793869, -0.020426645874977112, 0.016971049830317497, -0.043235599994659424, -0.0017326127272099257, -0.061203837394714355, -0.0082005076110363, -0.032077156007289886, -0.05391586199402809, -0.02690904214978218, 0.021747048944234848, -0.03561587631702423, 0.004794012755155563, -0.006664815824478865, -0.03273424506187439, -0.0012278299545869231, -0.0184637364000082, 0.009865777567029, 0.01965322345495224, -0.0283932164311409, 0.043956540524959564, -0.015282569453120232, -0.016505742445588112, 0.010911684483289719, 0.0026193743105977774, 0.012674440629780293, 0.035741765052080154, -0.00322272558696568, 0.011167153716087341, 0.03271067142486572, 0.004433688707649708, 0.0033778788056224585, -0.03222627937793732, 0.016353383660316467, 0.005159621126949787, -0.03636569902300835, -0.042845286428928375, 0.009338545612990856, -0.02250991016626358, -0.007462720386683941, -0.049384668469429016, 0.051272403448820114, 0.03324354067444801, -0.017047850415110588, 0.024518543854355812, 0.008361715823411942, -0.008412846364080906, 0.02894633077085018, 0.012500686571002007, 0.013331562280654907, 0.014992918819189072, 0.046827685087919235, 0.03248332068324089, -0.012920415960252285, 0.01940576359629631, 0.010318990796804428, 0.04424768686294556, -0.007987934164702892, 0.02148827351629734, 0.05782362073659897, -0.015648894011974335, 0.03310461342334747, 0.03031322918832302, -0.07263985276222229, 0.006663864478468895, 0.0037410114891827106, -0.011249719187617302, -0.005525160115212202, 0.021901734173297882, 0.03697613999247551, 0.05777347832918167, -0.04186628758907318, 0.003008657367900014, 0.054275620728731155, 0.00608862703666091, 0.03043796494603157, 0.06553900986909866, 0.04668329656124115, 0.04046924412250519, 0.029017241671681404, 0.026452625170350075, -0.0013753223465755582, 0.05216291919350624, 0.049494482576847076, 0.03682449087500572, 0.04033271223306656, -0.023297306150197983, -0.029524829238653183, -0.027182789519429207, 0.010903348214924335, -0.053950514644384384, 0.061166439205408096, 0.03026585653424263, -0.004356172401458025, -0.0034739819820970297, -0.04824826121330261, 0.05397213250398636, 0.018278002738952637, 0.03239942342042923, 0.013189352117478848, -0.013963013887405396, -0.0010396410943940282, -0.0026022621896117926, -0.008256452158093452, 0.0364118292927742, 0.012472741305828094, -0.00043534694123081863, 0.05376579239964485, 0.002752140397205949, -0.01824951171875, 0.012442735023796558, 0.02919255569577217, 0.0003418846754357219, -0.05842515081167221, 0.028252147138118744, 0.030032441020011902, 0.023357978090643883, 0.0024729417636990547, 0.008498270064592361, -0.017142726108431816, -0.015677878633141518, -0.042735688388347626, -0.024475812911987305, -0.009231535717844963, 0.024962864816188812, -0.025258643552660942, 0.02033485844731331, 0.03648321330547333, 0.024696022272109985, -0.05396332964301109, -0.0730881318449974, 0.0023742513731122017, -0.002729055704548955, 0.034921638667583466, -0.010013680905103683, 0.006632916163653135, -0.03543279320001602, 0.026226216927170753, -0.009370075538754463, 0.016687460243701935, -0.020837999880313873, 0.020093418657779694, -0.008805160410702229, -0.04377448558807373, -0.0030521792359650135, 0.03356565907597542, 0.023365775123238564, -0.032070912420749664, 0.02708846516907215, 0.007760325446724892, 0.01752939261496067, -0.047825127840042114, 0.02686360292136669, -0.022177647799253464, -0.022444680333137512, -0.021688077598810196, 0.028561875224113464, 0.01915072277188301, 0.021182186901569366, -0.0037956901360303164, -0.0376688577234745, -0.014253792352974415, -0.023007487878203392, -0.04662790149450302, -0.0066016679629683495, 0.020776186138391495, -0.005832616239786148, 0.0212122593075037, -0.0011159285204485059, 0.009109514765441418, 0.009374242275953293, -0.0019095567986369133, 0.04466893523931503, -0.01777750626206398, 0.001048191450536251, -0.017648499459028244, 0.037114519625902176, 0.021842574700713158, 0.059018325060606, 0.018113479018211365, -0.011111794039607048, -0.005247666034847498, 0.013689880259335041, 0.018100162968039513, -0.03387952968478203, 0.035167232155799866, 0.007292799651622772, -0.015625111758708954, -0.02568797953426838, 0.018448328599333763, -0.009483100846409798, -0.023267550393939018, -0.044999606907367706, 0.011981962248682976, -0.00741036469116807, -0.019909389317035675, -0.02311006188392639, -0.0026085195131599903, 0.024653078988194466, 0.04064508154988289, 0.001121063600294292, -0.02377886138856411, -0.013742736540734768, 0.005125942640006542, -0.0032499865628778934, -0.0037308032624423504, 0.02294454723596573, -0.004345931112766266, -0.01362350583076477, -0.024899674579501152, 0.020093413069844246, -0.03504597768187523, -0.0249186959117651, -0.04087406024336815, 0.013583654537796974, -0.025822533294558525, 0.00016682103159837425, -0.00771226966753602, 0.0013700115960091352, -0.031118154525756836, 0.034941308200359344, 0.016749678179621696, -0.010717100463807583, 0.009602389298379421, -0.03866879642009735, -0.0418822281062603, -0.009322671219706535, 0.018971048295497894, -0.006295191589742899, 0.0374533049762249, 0.009534393437206745, 0.042409591376781464, 0.019818497821688652, 0.05200488120317459, -0.015826160088181496, -0.0005561563302762806, 0.004752103239297867, -0.023345952853560448, -0.0010521761141717434, 0.0067916675470769405, -0.016748841851949692, -0.012209207750856876, 0.0667182058095932, 0.05359738692641258, 0.01021602749824524, -0.032213401049375534, 0.02636294811964035, 0.00091605877969414, 0.0035501334350556135, 0.04258092865347862, -0.018448222428560257, 0.06643526256084442, 0.07866603881120682, 0.0072534698992967606, -0.015800857916474342, 0.0642382800579071 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Conversational Instructions The base model can be used for both completion and infilling, as described. The Code Llama release also includes an instruction fine-tuned model that can be used in conversational interfaces. To prepare inputs for this task we have to use a prompt template like the one described in our Llama 2 blog post, which we reproduce again here: <s>[INST] <<SYS>> {{ system_prompt }} <</SYS>> {{ user_msg_1 }} [/INST] {{ model_answer_1 }} </s><s>[INST] {{ user_msg_2 }} [/INST] Note that the system prompt is optional - the model will work without it, but you can use it to further configure its behavior or style. For example, if you'd always like to get answers in JavaScript, you could state that here. After the system prompt, you need to provide all the previous interactions in the conversation: what was asked by the user and what was answered by the model. As in the infilling case, you need to pay attention to the delimiters used. The final component of the input must always be a new user instruction, which will be the signal for the model to provide an answer. The following code snippets demonstrate how the template works in practice. 1. First user query, no system prompt python user = 'In Bash, how do I list all text files in the current directory (excluding subdirectories) that have been modified in the last month?' prompt = f"<s>[INST] {user.strip()} [/INST]" inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to("cuda") 2. First user query with system prompt python system = "Provide answers in JavaScript" user = "Write a function that computes the set of sums of all contiguous sublists of a given list." prompt = f"<s>[INST] <<SYS>>\\n{system}\\n<</SYS>>\\n\\n{user}[/INST]" inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to("cuda") 3. On-going conversation with previous answers The process is the same as in Llama 2. We haven’t used loops or generalized this example code for maximum clarity: python system = "System prompt" user_1 = "user_prompt_1" answer_1 = "answer_1" user_2 = "user_prompt_2" answer_2 = "answer_2" user_3 = "user_prompt_3" prompt = f"<<SYS>>\\n{system}\\n<</SYS>>\\n\\n{user_1}" prompt += f"<s>[INST] {prompt.strip()} [/INST] {answer_1.strip()} </s>" prompt += f"<s>[INST] {user_2.strip()} [/INST] {answer_2.strip()} </s>" prompt += f"<s>[INST] {user_3.strip()} [/INST]" inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to("cuda")
[ 0.021973848342895508, 0.0127857131883502, 0.01090061105787754, 0.05578063428401947, 0.06860721856355667, 0.024296501651406288, 0.03388887271285057, 0.009012130089104176, -0.010848432779312134, -0.017971409484744072, -0.0702291950583458, 0.030504615977406502, 0.008161949925124645, -0.02125607058405876, -0.06297759711742401, -0.02099519781768322, 0.0674620270729065, -0.004006888717412949, -0.022380825132131577, 0.06463328748941422, 0.03772435337305069, -0.05112418532371521, 0.05020160228013992, -0.04618445411324501, 0.020191019400954247, -0.037379730492830276, 0.014352474361658096, -0.019909875467419624, -0.03988052159547806, 0.04593612998723984, -0.07940787076950073, 0.008567793294787407, -0.01899731531739235, -0.04515453055500984, 0.025929663330316544, -0.020815132185816765, -0.14074234664440155, 0.036326125264167786, 0.03631307929754257, 0.004032291006296873, -0.0031324189621955156, -0.0715225413441658, -0.008918294683098793, 0.0028253155760467052, -0.014810468070209026, -0.025904327630996704, -0.07708684355020523, -0.013580985367298126, -0.04790083318948746, -0.034261684864759445, -0.10722993314266205, 0.07959017157554626, -0.008253986947238445, -0.032064326107501984, 0.03368333727121353, 0.018102824687957764, 0.005254797637462616, -0.03738301992416382, -0.021960120648145676, 0.01039733737707138, 0.008122569881379604, 0.05958140268921852, 0.0280828308314085, -0.0004172456683591008, 0.021519873291254044, -0.014967580325901508, -0.00047057628398761153, 0.014277485199272633, -0.0910545065999031, -0.06804995983839035, 0.013716919347643852, 0.023474138230085373, -0.02693338133394718, 0.021078094840049744, 0.043645165860652924, -0.06913234293460846, -0.001663314993493259, 0.06353143602609634, 0.010203011333942413, 0.03034934028983116, -0.0950886681675911, 0.02240392565727234, 0.05844502151012421, -0.015485906973481178, 0.02630617655813694, 0.03660120815038681, 0.05144881829619408, -0.03860383853316307, -0.032171159982681274, -0.00654379278421402, -0.002492697909474373, -0.10919471085071564, -0.004689393099397421, 0.0683499127626419, 0.05667450651526451, -0.03241211548447609, -0.030233850702643394, 0.04005058482289314, -0.036435890942811966, 0.01884123869240284, -0.024426020681858063, -0.07976929098367691, 0.05678052082657814, -0.05082458257675171, -0.09369561821222305, 0.08483294397592545, -0.0530838742852211, -0.0659666582942009, -0.04865174740552902, -0.02427815832197666, 0.007580540608614683, -0.008810168132185936, 0.08391780406236649, 0.08040483295917511, -0.047138020396232605, 0.01568548008799553, -0.018285680562257767, 0.06484120339155197, -0.03835892304778099, 0.005790151190012693, 0.040164247155189514, 0.04491191357374191, 0.12262611091136932, -0.020405026152729988, 0.03943479806184769, 0.045263342559337616, -0.000006661774023086764, 0.010672868229448795, 0.016635984182357788, -0.03149556741118431, 0.01791302300989628, 0.009369099512696266, 0.07037025690078735, 0.019452573731541634, 0.02362503856420517, -0.08692500740289688, 0.004996457137167454, -0.10655508190393448, 0.06482957303524017, -0.010613502934575081, 0.021662235260009766, 0.0026128662284463644, 0.02235141582787037, -0.05757513642311096, 0.07414884865283966, -0.029037952423095703, -0.040354255586862564, 0.03638261929154396, -0.015138823539018631, 0.012362268753349781, -0.06411436945199966, -0.0015377058880403638, 0.02494659833610058, -0.043453965336084366, 0.056989699602127075, 0.022139063104987144, 0.020138736814260483, 0.056178297847509384, -0.04684290662407875, -0.0332704596221447, 0.07400542497634888, 0.06877592206001282, -0.04550709202885628, -0.008899367414414883, 0.032748688012361526, 0.0035646632313728333, -0.00012279128713998944, -0.017159970477223396, 0.11331205070018768, -0.0046652997843921185, 0.08012951910495758, 0.020128369331359863, 0.05413882061839104, -0.051837529987096786, -0.010815698653459549, 0.04329434782266617, -0.004018566105514765, -0.0010619336972013116, 0.038074906915426254, -0.0007668766775168478, 0.02582872286438942, 0.00102254340890795, -0.03471630439162254, 0.055792711675167084, 0.014095374383032322, -0.03821595385670662, -0.02393980510532856, -0.1331491619348526, -0.03207697346806526, 0.019041651859879494, 0.027112221345305443, 0.036538124084472656, 0.01844768226146698, 0.03531261906027794, 0.039793774485588074, -0.018743697553873062, -0.06861421465873718, 0.040331948548555374, 0.06435709446668625, 0.1013508141040802, 0.06368756294250488, 0.10145603120326996, 0.04641075059771538, -0.00452670780941844, 0.014171519316732883, 0.021156396716833115, 0.013499640859663486, -0.0680341050028801, 0.01387713011354208, 0.05281717702746391, -0.03672673925757408, -0.08837702125310898, 0.04993750900030136, -0.02295573242008686, 0.04274774715304375, -0.027417058125138283, -0.06531314551830292, -0.0549609400331974, 0.0020604771561920643, 0.020673848688602448, 0.08484359085559845, -0.07358689606189728, 0.018952766433358192, -0.0699242576956749, -0.002606842899695039, 0.0549202524125576, 0.04264240711927414, 0.044618088752031326, 0.044971663504838943, -0.04035719111561775, 0.033376313745975494, -0.05289577320218086, 0.012484862469136715, 0.09818870574235916, 0.029887212440371513, 0.0028586280532181263, 0.03200206160545349, 0.022689437493681908, -0.02380380593240261, 0.01571854203939438, 0.08931320160627365, 0.039844393730163574, 0.006089729256927967, 0.009180138818919659, -0.004032099153846502, -0.03886134549975395, 0.010498663410544395, 0.010875312611460686, -0.07772526144981384, 0.045924875885248184, -0.05674640089273453, 0.07952702790498734, 0.010096871294081211, 0.057039204984903336, 0.012617078609764576, -0.0016825452912598848, -0.00246405485086143, -0.034003354609012604, -0.03671204298734665, 0.004476832691580057, 0.0022561736404895782, 0.008727343752980232, -0.03952725604176521, -0.039991866797208786, -0.04966419190168381, -0.05829133838415146, 0.06341936439275742, -0.015980994328856468, -0.010044724680483341, 0.017996501177549362, 0.033968083560466766, -0.05684009939432144, -0.025377055630087852, 0.004141077399253845, 0.018550531938672066, 0.0036896206438541412, 0.017872706055641174, 0.013424642384052277, -0.005870303139090538, -0.03653667867183685, -0.011641661636531353, -0.018847104161977768, 0.002748270984739065, 0.056152116507291794, -0.014183654449880123, -0.017929451540112495, 0.03503211960196495, -0.0014934273203834891, -0.04887833073735237, 0.01468170341104269, 0.003315556328743696, 0.002143168356269598, 0.02517380379140377, -0.001020326977595687, -0.04328120872378349, 0.02413385920226574, -0.004134117625653744, 0.012190471403300762, -0.01730438880622387, 0.028196698054671288, 0.013807310722768307, -0.02633402869105339, 0.004511531908065081, 0.011916766874492168, 0.00953003205358982, -0.006418287754058838, 0.00666878093034029, 0.019115805625915527, -0.09027975052595139, -0.00018587677914183587, -0.045659445226192474, -0.0460817925632, 0.01872311159968376, 0.01614868827164173, 0.04967419058084488, -0.026604685932397842, -0.015082295052707195, 0.00599471852183342, -0.03420228138566017, 0.03229304403066635, -0.05964982137084007, -0.022970007732510567, -0.004666354041546583, -0.0310547836124897, 0.022548388689756393, -0.007685615681111813, 0.006286104209721088, -0.01836930401623249, 0.004295761231333017, 0.03929982706904411, -0.02582058310508728, -0.013636567629873753, -0.014369080774486065, -0.023286787793040276, 0.05304864048957825, 0.034602485597133636, -0.01790326088666916, -0.04621283710002899, 0.0030795123893767595, -0.036000557243824005, -0.016804885119199753, 0.009315826930105686, -0.060810018330812454, 0.006395007483661175, -0.0015459435526281595, 0.005152618512511253, 0.036984991282224655, 0.013059069402515888, 0.020954029634594917, -0.0015667369589209557, 0.028892677277326584, -0.011619689874351025, -0.022732917219400406, -0.007173872087150812, -0.019873477518558502, -0.016554856672883034, 0.004583280999213457, -0.047460366040468216, 0.0020597055554389954, -0.00774494418874383, -0.011500617489218712, 0.04816317930817604, 0.004531297832727432, 0.003754939418286085, 0.028826283290982246, 0.04516236111521721, 0.008219888433814049, -0.012036880478262901, -0.04033054783940315, 0.02846638485789299, -0.06596071273088455, 0.025417836382985115, -0.02142876386642456, 0.06561928242444992, 0.01894323155283928, -0.005581958685070276, 0.032783087342977524, 0.042533453553915024, 0.003738028695806861, 0.06329955160617828, -0.0002986395556945354, 0.004341859836131334, -0.004742224235087633, -0.004084473010152578, -0.02696268819272518, -0.02243209071457386, 0.038160212337970734, -0.021849455311894417, -0.01716812327504158, -0.04721534997224808, -0.03913275897502899, -0.03296446055173874, -0.0009685452678240836, -0.03860236331820488, 0.009817133657634258, -0.04019762575626373, 0.03910871595144272, 0.039158895611763, -0.009079145267605782, -0.042884714901447296, 0.042642198503017426, -0.002403975697234273, -0.012814125046133995, -0.020914429798722267, -0.0023951679468154907, 0.029562942683696747, -0.016274843364953995, -0.007633530534803867, 0.04927315562963486, -0.05840185657143593, -0.0115733677521348, 0.03341441974043846, -0.015453868545591831, 0.02335340529680252, -0.023270105943083763, -0.015246102586388588, 0.0030075644608587027, -0.003283668076619506, -0.0662086009979248, -0.036047063767910004, 0.02209119126200676, -0.004033060744404793, 0.0061220284551382065, 0.02148200199007988, -0.047164298593997955, -0.003600703552365303, -0.0018368244636803865, -0.009359171614050865, -0.0035936778876930475, -0.06159205362200737, 0.026747331023216248, -0.019883012399077415, 0.07717186957597733, -0.03212389722466469, -0.0016571495216339827, -0.03655305132269859, 0.020936736837029457, 0.01599128358066082, -0.05749290809035301, -0.0034923714119940996, 0.0031710416078567505, 0.008860697038471699, 0.0028053470887243748, 0.01726941205561161, -0.030528023838996887, 0.01687568426132202, -0.02359415777027607, -0.04718334227800369, -0.01901853084564209, -0.016650792211294174, 0.04583387449383736, -0.03600236400961876, 0.024808716028928757, -0.030502615496516228, -0.010123616084456444, 0.023928580805659294, 0.02327893301844597, 0.03821489214897156, 0.027379760518670082, 0.0024657687172293663, -0.01578017883002758, -0.012816797941923141, 0.013516384176909924, 0.025871286168694496, -0.001832868903875351, -0.02702653594315052, 0.07355659455060959, 0.05492845177650452, -0.008638199418783188, 0.01759272813796997, -0.05246361345052719, 0.03147382661700249, -0.017399316653609276, -0.03792640194296837, -0.02532387524843216, -0.004098366480320692, 0.041459862142801285, -0.032453589141368866, -0.025914112105965614, -0.01423759013414383, 0.05077870562672615, -0.01792478933930397, 0.02927361987531185, -0.011336385272443295, 0.0760737806558609, -0.000559369393158704, 0.024707220494747162, 0.00598854199051857, -0.021753227338194847, -0.06327752768993378, 0.07154879719018936, -0.01571013778448105, 0.019644085317850113, -0.00549886841326952, 0.023103419691324234, 0.03559857979416847, 0.042054906487464905, 0.032421402633190155, 0.005558549426496029, 0.006862768437713385, 0.010263446718454361, -0.012040671892464161, -0.019533280283212662, 0.016754768788814545, -0.061008792370557785, 0.04221368208527565, -0.03796366602182388, -0.004357956815510988, 0.03480222448706627, 0.0064317453652620316, -0.011468346230685711, 0.025712838396430016, 0.021300682798027992, -0.009913529269397259, -0.007375454995781183, -0.03421240672469139, 0.013800651766359806, 0.014685576781630516, -0.01522644329816103, -0.03320099040865898, 0.0032478338107466698, 0.032005492597818375, 0.06255641579627991, 0.003439367050305009, 0.015880964696407318, 0.02430747263133526, 0.022365761920809746, 0.039312951266765594, -0.017831996083259583, -0.01201754342764616, 0.015684431418776512, 0.024648863822221756, 0.015009460970759392, -0.0033019091933965683, 0.020407134667038918, 0.05685454234480858, 0.006808111909776926, 0.01776805892586708, 0.017042921856045723, -0.012295744381844997, -0.03623373061418533, 0.037765782326459885, 0.00603891396895051, 0.03910810127854347, -0.08490125089883804, -0.02966269478201866, 0.006092979107052088, -0.04559428617358208, 0.02101798914372921, -0.01774744875729084, -0.023896265774965286, -0.02039293758571148, -0.006567523814737797, 0.058007001876831055, 0.0290177334100008, -0.014228744432330132, -0.0182172991335392, 0.00798481609672308, 0.021533677354454994, -0.025983750820159912, -0.042020801454782486, 0.009902402758598328, -0.025462912395596504, 0.030538415536284447, 0.01272035576403141, -0.039802439510822296, -0.006129985675215721, -0.024574652314186096, 0.012173282913863659, -0.025969862937927246, -0.0148749565705657, 0.033076491206884384, 0.0013029755791649222, 0.04193134978413582, 0.01923394948244095, -0.014220718294382095, 0.003215978853404522, 0.021800994873046875, 0.01825820654630661, 0.0034006412606686354, 0.01052121352404356, 0.008903129026293755, 0.02611430361866951, -0.07251300662755966, -0.02494431659579277, 0.09528840333223343, 0.024723954498767853, 0.017308039590716362, 0.0193097572773695, 0.02140974998474121, 0.002565844217315316, 0.02693045511841774, -0.0500766858458519, -0.009746355935931206, 0.05269347131252289, 0.0015740885864943266, -0.006287488155066967, 0.04087037220597267, -0.0431121364235878, 0.02183469757437706, -0.006897229701280594, 0.006882632616907358, -0.022106105461716652, 0.0030771393794566393, 0.011857977136969566, 0.02619089186191559, -0.009496592916548252, -0.018770545721054077, 0.07208183407783508, 0.0441908985376358, 0.01900363340973854, 0.009261045604944229, -0.01495751179754734, 0.0012040087021887302, 0.0183822400867939, 0.016044825315475464, 0.018145769834518433, -0.047605182975530624, -0.027419423684477806, -0.008379395119845867, 0.02043898217380047, 0.022966507822275162, 0.04467421770095825, 0.007548800203949213, 0.006785416044294834, 0.011006629094481468, 0.007935730740427971, 0.08154600858688354, -0.013295409269630909, -0.004275463055819273, -0.03858013078570366, -0.018819978460669518, 0.003703434020280838, -0.0026681937742978334, -0.005434256047010422, -0.031256455928087234, 0.0017418579664081335, -0.012897759675979614, -0.0011291211703792214, 0.043341830372810364, 0.060243844985961914, -0.06435111910104752, -0.023649252951145172, -0.011983742006123066, -0.005605223588645458, -0.001975451363250613, -0.031201235949993134, -0.0006111167022027075, -0.013980233110487461, 0.0017554194200783968, -0.02083902806043625, 0.01521077286452055, 0.0024212475400418043, 0.005274473689496517, 0.0030291585717350245, 0.021681087091565132, -0.00599546916782856, 0.004242858849465847, 0.009170543402433395, 0.009070483967661858, 0.011771711520850658, -0.016696754842996597, 0.02373352274298668, -0.047786835581064224, 0.003755059326067567, -0.0011988304322585464, 0.0302530899643898, -0.054281167685985565, 0.04131952300667763, 0.027530759572982788, 0.027064470574259758, -0.023239580914378166, -0.008312069810926914, 0.002524616662412882, -0.014479764737188816, -0.014097456820309162, 0.019194386899471283, -0.04560783505439758, 0.01453766506165266, 0.014940576627850533, -0.04030710831284523, -0.008869979530572891, -0.004833577200770378, 0.00424361415207386, 0.043928224593400955, 0.012848884798586369, -0.04093988239765167, -0.02215450070798397, 0.0505170002579689, 0.0474795401096344, 0.032642148435115814, -0.01566832698881626, -0.01916877180337906, -0.01703101582825184, 0.006049278657883406, 0.024905292317271233, -0.061064254492521286, 0.020893612876534462, -0.017504127696156502, -0.027240462601184845, -0.06228463724255562, -0.018435312435030937, -0.04086791351437569, 0.051767125725746155, -0.02306869439780712, 0.018119128420948982, -0.007370366714894772, -0.05149485170841217, -0.024699872359633446, 0.01728285476565361, 0.05811991170048714, 0.0062067448161542416, 0.03705587983131409, -0.024227028712630272, -0.033505674451589584, -0.027485379949212074, 0.023435331881046295, 0.012075466103851795, 0.0013635203940793872, -0.01850888878107071, 0.0004518096393439919, -0.02897505648434162, -0.003085571574047208, -0.007400557864457369, -0.04940227046608925, -0.02093415893614292, 0.0005489366012625396, -0.013324112631380558, -0.0074244095012545586, -0.011576932854950428, 0.00902931671589613, 0.015240891836583614, 0.01632768288254738, -0.002928393892943859, -0.0048130229115486145, 0.060861390084028244, 0.016497619450092316, -0.06705445051193237, 0.004315265454351902, -0.044966500252485275, 0.006352962926030159, 0.021014854311943054, 0.0038842461071908474, 0.04262619465589523, 0.001293401699513197, 0.004468569066375494, 0.04031393304467201, -0.018938854336738586, -0.03417985513806343, -0.024893227964639664, -0.018013788387179375, 0.014861231669783592, -0.03819660097360611, 0.015399537049233913, 0.006126742344349623, -0.03617909178137779, -0.05943124368786812, -0.011171181686222553, -0.029179072007536888, 0.01828884519636631, 0.021528130397200584, -0.003992623649537563, -0.027237774804234505, 0.027437662705779076, 0.02808219939470291, 0.010712092742323875, -0.02417503483593464, 0.03304700180888176 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Code Infilling This is a specialized task particular to code models. The model is trained to generate the code (including comments) that best matches an existing prefix and suffix. This is the strategy typically used by code assistants: they are asked to fill the current cursor position, considering the contents that appear before and after it. This task is available in the base and instruction variants of the 7B and 13B models. It is not available for any of the 34B models or the Python versions. To use this feature successfully, you need to pay close attention to the format used to train the model for this task, as it uses special separators to identify the different parts of the prompt. Fortunately, transformers' CodeLlamaTokenizer makes this very easy, as demonstrated below: python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model_id = "codellama/CodeLlama-7b-hf" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype=torch.float16 ).to("cuda") prompt = '''def remove_non_ascii(s: str) -> str: """ <FILL_ME> return result ''' input_ids = tokenizer(prompt, return_tensors="pt")["input_ids"].to("cuda") output = model.generate( input_ids, max_new_tokens=200, ) output = output[0].to("cpu") filling = tokenizer.decode(output[input_ids.shape[1]:], skip_special_tokens=True) print(prompt.replace("<FILL_ME>", filling)) Python def remove_non_ascii(s: str) -> str: """ Remove non-ASCII characters from a string. Args: s: The string to remove non-ASCII characters from. Returns: The string with non-ASCII characters removed. """ result = "" for c in s: if ord(c) < 128: result += c return result Under the hood, the tokenizer automatically splits by <FILL_ME> to create a formatted input string that follows the original training pattern. This is more robust than preparing the pattern yourself: it avoids pitfalls, such as token glueing, that are very hard to debug.
[ 0.009167421609163284, -0.0017147292383015156, 0.009724660776555538, 0.02090528793632984, -0.023880360648036003, 0.1207646057009697, 0.04468569532036781, -0.0072079370729625225, -0.03654026612639427, -0.00226401723921299, -0.1185186356306076, -0.007276334799826145, 0.0322222001850605, 0.04203147441148758, -0.0020648909267038107, 0.07476318627595901, 0.09916288405656815, -0.02305537648499012, -0.0506025105714798, 0.031881485134363174, -0.021381348371505737, -0.005358686670660973, 0.08907950669527054, -0.025054987519979477, -0.04578512907028198, -0.03739529475569725, -0.017809296026825905, -0.030276479199528694, -0.04524170234799385, 0.037882134318351746, -0.0667148306965828, -0.01631387695670128, 0.07527489960193634, -0.01415544655174017, -0.05052497610449791, 0.0034486481454223394, -0.08875006437301636, 0.029321564361453056, 0.05797048658132553, -0.01941453292965889, -0.08837240934371948, 0.007177344057708979, -0.009669163264334202, 0.04592622071504593, 0.024322744458913803, -0.020278288051486015, -0.16268597543239594, 0.0745677798986435, -0.005134300794452429, -0.09263540059328079, -0.0824906975030899, 0.045027006417512894, -0.04743373394012451, -0.035317424684762955, -0.04128950461745262, 0.016585808247327805, -0.016215326264500618, -0.07485655695199966, 0.026603350415825844, 0.01600540801882744, 0.025891458615660667, 0.023036904633045197, 0.04609221592545509, 0.058666832745075226, 0.06331968307495117, 0.012055659666657448, -0.037934139370918274, 0.027245109900832176, -0.06923424452543259, -0.06336560100317001, -0.00020016358757857233, -0.010984597727656364, -0.011543108150362968, -0.021552065387368202, -0.035872120410203934, -0.012004144489765167, 0.0007724939496256411, 0.05043570697307587, -0.0010709016351029277, 0.06944393366575241, -0.022368889302015305, 0.03439084440469742, 0.05499032884836197, 0.004473775625228882, 0.09070761501789093, -0.00473054638132453, -0.008407194167375565, -0.06298428028821945, 0.01055322214961052, 0.023986943066120148, -0.03169088438153267, -0.11837685108184814, 0.010993671603500843, 0.052466463297605515, 0.015714263543486595, -0.036299895495176315, 0.020028674975037575, 0.02526477910578251, -0.05265776067972183, -0.0037692594341933727, -0.02768203802406788, -0.05355807766318321, 0.004826896358281374, -0.04520024359226227, -0.10343453288078308, 0.035632357001304626, -0.03351627662777901, -0.025779830291867256, 0.0053803096525371075, -0.01838899776339531, 0.03911472484469414, -0.03364526480436325, -0.0011330015258863568, 0.07276428490877151, -0.11001450568437576, -0.021423406898975372, -0.06834694743156433, 0.028786463662981987, -0.06419793516397476, 0.008743536658585072, 0.03728989139199257, 0.0714164525270462, 0.03928534314036369, -0.0021911771036684513, 0.024045944213867188, 0.05921246483922005, 0.012045205570757389, 0.007680530659854412, 0.021184327080845833, -0.007350776344537735, 0.017026832327246666, 0.029853401705622673, 0.01727217063307762, -0.02190118096768856, 0.03759796544909477, -0.049385178834199905, -0.021198060363531113, -0.05753568932414055, 0.053055208176374435, -0.017757663503289223, 0.03536013886332512, 0.023435987532138824, 0.005434787832200527, 0.019459640607237816, 0.023343611508607864, -0.020053289830684662, -0.1060275137424469, 0.0853780061006546, 0.05763222649693489, 0.09418126195669174, -0.03284058719873428, -0.022473664954304695, -0.009966052137315273, -0.03876502066850662, 0.042262498289346695, 0.08093641698360443, -0.014380758628249168, 0.0023133549839258194, -0.014213506132364273, -0.0347461961209774, 0.06307896226644516, 0.0392494834959507, -0.013776219449937344, 0.026745621114969254, -0.01541659515351057, -0.02251793071627617, 0.03315751627087593, -0.018616871908307076, 0.06411834061145782, 0.05590010806918144, -0.011606852523982525, -0.028171291574835777, 0.04780799150466919, -0.017419924959540367, -0.01740889810025692, 0.032013583928346634, 0.04865599051117897, -0.03561931848526001, -0.03724707290530205, -0.06338383257389069, -0.017996232956647873, 0.07830774039030075, -0.03253822401165962, 0.001934652216732502, 0.06094129756093025, -0.09103570878505707, 0.021448655053973198, -0.0672137662768364, -0.021512754261493683, 0.06433645635843277, -0.0536256805062294, -0.01731422357261181, 0.03949812799692154, 0.01993267983198166, 0.045832447707653046, -0.04852800816297531, -0.05059727281332016, 0.03604990243911743, 0.004780314862728119, 0.0806906521320343, 0.028768690302968025, 0.05654691532254219, 0.04631533473730087, 0.0005764500238001347, -0.009661945514380932, -0.019765742123126984, 0.027493637055158615, -0.02034103311598301, 0.033990953117609024, 0.04112647473812103, 0.030504848808050156, -0.055308833718299866, 0.04518067091703415, -0.0894099548459053, 0.022116998210549355, 0.037473391741514206, -0.08186917006969452, -0.042345184832811356, 0.004655495285987854, 0.011805206537246704, 0.13924972712993622, -0.03186856955289841, -0.009344292804598808, -0.11584760248661041, -0.013399592600762844, 0.05104084685444832, 0.05903714522719383, 0.05537031963467598, 0.0018794568022713065, -0.0614604614675045, -0.040204450488090515, -0.05447283014655113, -0.006638689897954464, 0.011281696148216724, -0.016867993399500847, -0.0714481770992279, 0.04340653494000435, 0.013825375586748123, 0.0007661048439331353, 0.054393038153648376, 0.0053489734418690205, 0.0024648774415254593, -0.006481850054115057, 0.010858207941055298, -0.005256342701613903, 0.0028621340170502663, 0.05958804115653038, -0.016301186755299568, -0.024783601984381676, 0.01702132634818554, -0.00038947773282416165, 0.023912793025374413, 0.024032875895500183, -0.04682675004005432, 0.04120790213346481, 0.010914258658885956, -0.024696022272109985, -0.00344073330052197, 0.03515953570604324, 0.020589115098118782, 0.015511864796280861, -0.025650005787611008, -0.04971854016184807, -0.04335368424654007, -0.0252518393099308, -0.018756460398435593, -0.007346229162067175, 0.0031558081973344088, -0.016264664009213448, 0.014881426468491554, -0.008905548602342606, -0.020657537505030632, 0.023815274238586426, -0.009719294495880604, 0.007726561278104782, 0.026095956563949585, 0.053602371364831924, 0.00946744717657566, -0.03987564891576767, -0.0261797197163105, -0.023103680461645126, -0.03663481026887894, 0.024074148386716843, 0.019104279577732086, 0.0025395399425178766, 0.010199149139225483, -0.011030917055904865, -0.036153849214315414, -0.038058940321207047, 0.03711492568254471, 0.009875883348286152, 0.03357233852148056, 0.00822355505079031, 0.01854383945465088, -0.0059343804605305195, -0.012159252539277077, -0.011018996126949787, 0.02461821772158146, -0.03408552706241608, -0.008558613248169422, -0.028342267498373985, -0.02614305354654789, -0.051727697253227234, 0.008998248726129532, -0.029485531151294708, -0.01598050817847252, 0.04114987328648567, 0.016140036284923553, -0.09452223777770996, -0.04062794893980026, -0.009289497509598732, -0.04177217558026314, 0.0037698710802942514, -0.01375140342861414, 0.03658521920442581, 0.015286789275705814, -0.06629680842161179, 0.022920770570635796, 0.01820899359881878, 0.005947163328528404, -0.013034911826252937, 0.03679649531841278, -0.020104510709643364, 0.00032630469650030136, -0.01270610373467207, 0.03058917447924614, 0.03573349118232727, 0.01022039633244276, -0.018841281533241272, 0.018734468147158623, -0.00407268526032567, 0.008225967176258564, 0.014467700384557247, -0.011082325130701065, 0.04131998494267464, 0.04414684697985649, 0.01302284188568592, -0.009921843186020851, -0.012931546196341515, -0.043566443026065826, -0.007776070386171341, 0.018144750967621803, -0.03262786567211151, 0.01684216409921646, 0.013763143680989742, -0.011362249031662941, -0.015256442129611969, 0.03977004066109657, -0.012316292151808739, -0.014109931886196136, 0.004772652871906757, -0.007322880905121565, 0.017205290496349335, -0.0350625105202198, -0.023737231269478798, -0.026034856215119362, 0.0445258803665638, -0.05346732586622238, -0.01598844863474369, -0.04138118401169777, 0.00015771480684634298, 0.024676252156496048, 0.047230370342731476, -0.01708027720451355, 0.0143210394307971, 0.0358760841190815, 0.031168466433882713, 0.01617344655096531, -0.04580200836062431, -0.032027263194322586, -0.012817301787436008, -0.035306092351675034, -0.00873914361000061, 0.07327661663293839, -0.020397968590259552, 0.015641547739505768, 0.0000653823881293647, 0.05608939751982689, -0.004088122863322496, 0.04523949325084686, -0.027466047555208206, -0.0003961632028222084, -0.03420634567737579, -0.00456627132371068, -0.04948867857456207, -0.014847582206130028, 0.011039317585527897, -0.01556034293025732, -0.02130371704697609, -0.04456092789769173, 0.00397254154086113, -0.008767756633460522, -0.002101095160469413, -0.014612107537686825, 0.0032685992773622274, -0.002143337856978178, 0.022475097328424454, 0.008678347803652287, -0.013686640188097954, -0.021976448595523834, 0.010253948159515858, -0.003231586189940572, -0.01578362099826336, -0.013864725828170776, -0.02671574242413044, -0.021578313782811165, -0.011039008386433125, 0.021702900528907776, -0.0008271362748928368, -0.07354991883039474, -0.017937934026122093, 0.02731945924460888, 0.025789879262447357, 0.015693845227360725, -0.047552239149808884, -0.014384564012289047, 0.002663941355422139, 0.007201080676168203, -0.03259119391441345, -0.05570177361369133, -0.01825355552136898, -0.017113326117396355, 0.03936943784356117, 0.0383782796561718, 0.02343670465052128, -0.08715106546878815, 0.008781666867434978, 0.004587810952216387, -0.07694483548402786, -0.0023435165639966726, -0.0033216793090105057, -0.017417123541235924, 0.015124191530048847, 0.010926859453320503, 0.030796468257904053, 0.04079999029636383, 0.006730186752974987, 0.020384054630994797, -0.05580908805131912, 0.04169471189379692, -0.004265254829078913, 0.012455277144908905, 0.004017431754618883, 0.014260156080126762, -0.0182905662804842, 0.00666886568069458, 0.009686929173767567, -0.020430007949471474, -0.011266360059380531, -0.003274976508691907, -0.0020149729680269957, -0.032697226852178574, 0.023602647706866264, -0.0043229004368186, 0.005291930865496397, -0.032353535294532776, 0.02943807654082775, 0.005169621203094721, 0.05033363774418831, 0.01243822742253542, -0.05273331329226494, 0.01849309541285038, 0.07365678995847702, -0.03094583936035633, -0.02202599123120308, 0.004918577149510384, 0.011823995038866997, 0.025134114548563957, 0.04610423743724823, -0.005911130923777819, -0.0465024970471859, 0.060744818300008774, 0.03100087121129036, -0.012496436014771461, -0.008373585529625416, -0.0629533976316452, 0.05933200567960739, 0.015663402155041695, -0.023753605782985687, 0.007080039009451866, 0.022806242108345032, -0.032603368163108826, 0.011310234665870667, 0.01700817607343197, 0.04601160064339638, 0.02571237087249756, -0.03668978810310364, -0.010314278304576874, 0.05110393464565277, 0.0032605279702693224, 0.05806493014097214, 0.043487560003995895, 0.004981973208487034, 0.022525683045387268, 0.014589773491024971, 0.04099731147289276, 0.027804173529148102, -0.017529312521219254, 0.005343681667000055, -0.009351877495646477, -0.0286884643137455, -0.00449136970564723, 0.008572249673306942, -0.002089205663651228, -0.04415082931518555, 0.021250499412417412, -0.05308828875422478, 0.007493578363209963, -0.00005601542579825036, 0.03628797084093094, -0.026123037561774254, 0.019248483702540398, 0.017008677124977112, 0.0360855795443058, 0.0164033230394125, -0.04919290542602539, 0.009595630690455437, -0.021973930299282074, 0.002493722829967737, -0.004169974476099014, 0.009728806093335152, 0.03042805753648281, 0.003487402806058526, -0.008140350691974163, 0.02547098696231842, -0.004873550031334162, 0.00014772852591704577, 0.049207255244255066, -0.034734003245830536, -0.012029358185827732, 0.03176504001021385, 0.02500997669994831, 0.015235026367008686, -0.012272074818611145, -0.008961186744272709, 0.011104987002909184, 0.015832986682653427, 0.012852467596530914, 0.04956052079796791, -0.009106663055717945, 0.01795213483273983, 0.021533651277422905, 0.02114933542907238, -0.027105662971735, -0.014396964572370052, 0.01816767267882824, 0.009700911119580269, -0.04780195280909538, 0.009354428388178349, -0.012703312560915947, -0.022096898406744003, 0.041349366307258606, -0.020775917917490005, 0.03886628895998001, 0.0030157852452248335, -0.009489982388913631, 0.0006714792107231915, 0.049580831080675125, 0.02857332117855549, -0.009200114756822586, -0.04111834242939949, -0.05217365548014641, -0.007694848347455263, 0.004843283910304308, 0.007102015893906355, -0.0060958717949688435, 0.012932178564369678, -0.004144576378166676, 0.03530155494809151, -0.06704416126012802, 0.0009418088593520224, 0.023548157885670662, 0.00008378706115763634, 0.02963564172387123, -0.002784003270789981, -0.02442304790019989, 0.05181713402271271, -0.022915812209248543, 0.061481036245822906, 0.046842098236083984, 0.028620589524507523, -0.029269220307469368, 0.01649261638522148, 0.0035150167532265186, 0.005774475634098053, 0.05313270539045334, -0.00984257087111473, 0.03159328177571297, 0.019715502858161926, 0.05040640011429787, 0.0015029119094833732, 0.045329004526138306, -0.004940139129757881, -0.04816729947924614, 0.06480918079614639, 0.03577077016234398, 0.0048803891986608505, 0.022664248943328857, -0.0038189191836863756, 0.01681261509656906, -0.05820683762431145, -0.023796597495675087, -0.03172637149691582, 0.01071301568299532, 0.08112698048353195, 0.0106762470677495, 0.02943890541791916, -0.01897362619638443, 0.06554615497589111, -0.0009360117255710065, 0.01998261548578739, 0.004701318219304085, -0.0215150136500597, 0.030307218432426453, 0.031983476132154465, 0.0533912219107151, 0.059757668524980545, 0.04402823746204376, -0.012894551269710064, 0.005458548199385405, 0.011167682707309723, 0.021935753524303436, 0.03646768257021904, -0.012321289628744125, 0.0173735860735178, -0.04021139815449715, -0.04739750549197197, 0.03569886088371277, -0.020803572610020638, 0.020489243790507317, -0.014793851412832737, 0.011732340790331364, -0.019815567880868912, -0.014739464037120342, -0.026688260957598686, 0.005914758890867233, -0.021274685859680176, -0.007839519530534744, -0.03874623402953148, 0.008505668491125107, 0.02132928930222988, -0.030876465141773224, -0.0009871844667941332, -0.025073867291212082, 0.018811572343111038, 0.017271215096116066, -0.03373587131500244, 0.011504155583679676, -0.04193030670285225, 0.010898968204855919, -0.04789471998810768, -0.02718784660100937, 0.008016105741262436, 0.026939688250422478, 0.024376152083277702, 0.036086659878492355, -0.004527663346379995, 0.0011948291212320328, 0.004001522436738014, 0.0500762015581131, -0.003953353501856327, -0.027343815192580223, 0.0047709825448691845, -0.02840721607208252, -0.004230455961078405, -0.02301899902522564, -0.010921339504420757, -0.030867766588926315, 0.026096025481820107, 0.0006896571139805019, 0.050815608352422714, -0.02966303937137127, -0.02175915241241455, -0.022284872829914093, -0.0200676117092371, -0.014225360006093979, 0.020810946822166443, -0.02270127646625042, 0.024302545934915543, 0.025308365002274513, -0.023734470829367638, -0.050714682787656784, -0.007735273335129023, -0.052979689091444016, 0.026945358142256737, -0.016226867213845253, -0.04157581925392151, 0.020683471113443375, 0.0503833070397377, -0.0024628618266433477, -0.006879827473312616, 0.059541959315538406, 0.018664004281163216, 0.002162915887311101, 0.006275706458836794, 0.07129950821399689, -0.08331125229597092, 0.0093937236815691, -0.055064328014850616, -0.033351343125104904, -0.027607500553131104, -0.025843381881713867, -0.017482178285717964, 0.0368800014257431, -0.04406510666012764, 0.01963634043931961, -0.040356338024139404, 0.008600168861448765, -0.0076196445152163506, -0.0024982928298413754, 0.0723424181342125, 0.006760848686099052, 0.030973488464951515, 0.04295630380511284, 0.0014202474849298596, -0.029677480459213257, 0.007260515820235014, -0.01420295424759388, 0.028151238337159157, 0.02211128920316696, -0.043662142008543015, -0.0025660116225481033, 0.023748217150568962, -0.02496541291475296, -0.03160613775253296, 0.015003243461251259, 0.01803525723516941, -0.025190958753228188, -0.02960365265607834, 0.015728337690234184, 0.03579987585544586, 0.01658042147755623, -0.03438175842165947, 0.0006745241116732359, -0.015990309417247772, 0.03253251314163208, 0.030339261516928673, -0.06158662587404251, -0.030292369425296783, -0.033624619245529175, 0.026908159255981445, 0.06747742742300034, 0.04723086208105087, 0.05517832934856415, 0.02537154220044613, -0.007101408205926418, -0.008436157368123531, 0.012865177355706692, 0.007814292795956135, -0.047384560108184814, -0.03067917190492153, 0.0721518024802208, -0.01203480176627636, -0.005328810308128595, 0.020184852182865143, 0.00249158195219934, 0.009041954763233662, 0.026873400434851646, 0.010590383782982826, 0.04178331419825554, 0.038419995456933975, -0.0017370000714436173, -0.007961494848132133, 0.04926445707678795, 0.010683247819542885, 0.0026729197707027197, -0.01101738028228283, 0.045632608234882355 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
What’s Code Llama? The Code Llama release introduces a family of models of 7, 13, and 34 billion parameters. The base models are initialized from Llama 2 and then trained on 500 billion tokens of code data. Meta fine-tuned those base models for two different flavors: a Python specialist (100 billion additional tokens) and an instruction fine-tuned version, which can understand natural language instructions. The models show state-of-the-art performance in Python, C++, Java, PHP, C#, TypeScript, and Bash. The 7B and 13B base and instruct variants support infilling based on surrounding content, making them ideal for use as code assistants. Code Llama was trained on a 16k context window. In addition, the three model variants had additional long-context fine-tuning, allowing them to manage a context window of up to 100,000 tokens. Increasing Llama 2’s 4k context window to Code Llama’s 16k (that can extrapolate up to 100k) was possible due to recent developments in RoPE scaling. The community found that Llama’s position embeddings can be interpolated linearly or in the frequency domain, which eases the transition to a larger context window through fine-tuning. In the case of Code Llama, the frequency domain scaling is done with a slack: the fine-tuning length is a fraction of the scaled pretrained length, giving the model powerful extrapolation capabilities. All models were initially trained with 500 billion tokens on a near-deduplicated dataset of publicly available code. The dataset also contains some natural language datasets, such as discussions about code and code snippets. Unfortunately, there is not more information about the dataset. For the instruction model, they used two datasets: the instruction tuning dataset collected for Llama 2 Chat and a self-instruct dataset. The self-instruct dataset was created by using Llama 2 to create interview programming questions and then using Code Llama to generate unit tests and solutions, which are later evaluated by executing the tests.
[ 0.04388514161109924, 0.009510116651654243, 0.0299306008964777, 0.006690941285341978, 0.09079591929912567, 0.038585443049669266, 0.06279470771551132, 0.06117036193609238, -0.02246127836406231, 0.03355187177658081, -0.09362165629863739, 0.054370611906051636, -0.022577175870537758, 0.02845931239426136, -0.01771259866654873, -0.04778771102428436, 0.04231899231672287, -0.020582331344485283, -0.0005739563493989408, 0.024493128061294556, -0.052269209176301956, -0.04397901892662048, 0.027899200096726418, -0.04671335592865944, -0.04713449254631996, 0.02053554728627205, 0.007157749962061644, -0.040266070514917374, -0.04489610716700554, 0.045950450003147125, -0.13181304931640625, -0.01822102814912796, -0.03259609267115593, -0.015658771619200706, -0.00332043063826859, -0.024539683014154434, -0.14597485959529877, 0.0632646232843399, 0.00010622675472404808, -0.05049693211913109, -0.03282139450311661, -0.08140566200017929, -0.03783316910266876, 0.07026927918195724, -0.02979464828968048, -0.004243694711476564, -0.11535952985286713, 0.02174392156302929, -0.02350183017551899, -0.034549057483673096, -0.11865450441837311, 0.006824403535574675, 0.011527685448527336, -0.02355482429265976, 0.031730327755212784, -0.01929495483636856, 0.04068300127983093, -0.03472908213734627, -0.012497001327574253, 0.02620181255042553, 0.037814296782016754, -0.030000362545251846, 0.06263907253742218, -0.04413721710443497, 0.031827542930841446, 0.004817006178200245, -0.0229133702814579, 0.07339245826005936, -0.04236050695180893, -0.007543586194515228, -0.0036848054733127356, -0.030051246285438538, -0.04180315509438515, -0.0549294613301754, -0.05252232030034065, -0.061380449682474136, -0.0606207512319088, 0.04211215674877167, 0.07693247497081757, 0.0029600856360048056, -0.029836934059858322, 0.05260704830288887, 0.051666419953107834, -0.0025005112402141094, 0.009563949890434742, 0.052410662174224854, 0.053264208137989044, -0.03849614039063454, -0.054482199251651764, 0.023639239370822906, -0.03734998032450676, -0.13054025173187256, -0.02963569574058056, 0.025879651308059692, 0.037435561418533325, -0.026820294559001923, 0.011103973723948002, 0.047056641429662704, -0.026189247146248817, -0.0038711673114448786, -0.035004422068595886, -0.04230376332998276, 0.023700082674622536, -0.015043738298118114, -0.059104036539793015, 0.05288553982973099, 0.014218758791685104, -0.11299676448106766, -0.06892340630292892, -0.022049380466341972, -0.020584676414728165, -0.013666637241840363, 0.015549667179584503, 0.06934253871440887, -0.0814237967133522, 0.024484146386384964, 0.008829843252897263, 0.042698927223682404, 0.002580341650173068, 0.0028248701710253954, 0.016440073028206825, 0.05926244705915451, 0.070004403591156, 0.03579994663596153, 0.02239571325480938, 0.08027325570583344, -0.019096599891781807, 0.042461708188056946, 0.008455058559775352, -0.021983817219734192, 0.04251667112112045, -0.03264446556568146, 0.05431170016527176, -0.012010815553367138, -0.04364416003227234, -0.02740822173655033, -0.05186406522989273, -0.0735301524400711, 0.07014594972133636, -0.014764655381441116, -0.02834523469209671, -0.0030600314494222403, -0.05324600264430046, -0.025130288675427437, 0.10651355236768723, 0.013331412337720394, -0.039431631565093994, 0.009866989217698574, -0.03208085522055626, -0.00739711569622159, -0.07183217257261276, 0.028672145679593086, -0.05214576795697212, -0.02410016395151615, 0.07683217525482178, -0.01881471835076809, -0.009372114203870296, -0.02138926275074482, -0.06319332122802734, 0.012974738143384457, 0.01930355839431286, -0.036731623113155365, -0.03164726495742798, -0.020696474239230156, 0.016746411100029945, 0.00548526318743825, -0.03577711433172226, 0.03487982228398323, -0.013640000484883785, 0.05122683197259903, 0.013033272698521614, 0.006988994311541319, 0.08795300871133804, -0.013903374783694744, -0.04088357836008072, 0.037806980311870575, -0.0044489335268735886, 0.015755578875541687, 0.01642909273505211, 0.05015087500214577, 0.015092974528670311, 0.023676997050642967, -0.009738788940012455, 0.06063157320022583, 0.02167615294456482, -0.06059480458498001, 0.00018683863163460046, -0.09201034158468246, -0.039190199226140976, -0.026738716289401054, -0.012516402639448643, 0.04376755282282829, 0.026149723678827286, -0.0031299658585339785, 0.05806213617324829, -0.07522721588611603, 0.004892048891633749, 0.10907559096813202, 0.13255514204502106, 0.082657590508461, 0.03138047084212303, 0.07344529032707214, 0.043555960059165955, -0.017599985003471375, -0.056734081357717514, 0.018481215462088585, 0.04761754348874092, 0.027694057673215866, 0.005243862513452768, 0.005279235076159239, 0.03630228713154793, -0.10810967534780502, -0.01686091534793377, -0.03815409168601036, 0.06848615407943726, -0.03083612024784088, -0.02192358300089836, -0.0054151201620697975, 0.022350342944264412, -0.013297912664711475, 0.12745524942874908, -0.07747984677553177, -0.03975030779838562, -0.01527335587888956, 0.007279459852725267, 0.01581660658121109, 0.07066337019205093, 0.0005460219108499587, 0.1006324291229248, -0.07234526425600052, 0.015652576461434364, -0.029518505558371544, -0.033368512988090515, 0.015282955020666122, 0.05952385067939758, 0.007382172159850597, -0.006833964493125677, -0.021350650116801262, 0.05102136358618736, 0.000465144170448184, 0.06692858040332794, 0.019129479303956032, 0.029460076242685318, 0.018926935270428658, -0.043600574135780334, -0.07796081900596619, 0.05839564651250839, -0.014977037906646729, -0.0365603081882, 0.050146378576755524, -0.03578608110547066, 0.01754673384130001, 0.060901086777448654, 0.04878224432468414, -0.04144452139735222, 0.016124598681926727, -0.02373364381492138, -0.05176618695259094, -0.030570710077881813, 0.015990452840924263, 0.004476858768612146, 0.012858734466135502, 0.0015063444152474403, -0.019783439114689827, 0.0030533140525221825, -0.018889393657445908, -0.006003471557050943, 0.04442533850669861, -0.012491405010223389, -0.016391323879361153, 0.021215129643678665, -0.025398528203368187, 0.015055473893880844, 0.005509678740054369, 0.034130774438381195, 0.02040707692503929, 0.0339723564684391, -0.009589169174432755, -0.03202114626765251, -0.033390194177627563, -0.03858695551753044, -0.01122591458261013, 0.03558003157377243, 0.02587716095149517, 0.036115121096372604, -0.029721232131123543, -0.01613198220729828, -0.029774988070130348, -0.04400553181767464, 0.01103118434548378, 0.03080442175269127, 0.002046240260824561, 0.005309418775141239, -0.009258268401026726, -0.027300667017698288, -0.025078093633055687, -0.0075225019827485085, 0.003473259275779128, 0.019120628014206886, 0.028117645531892776, 0.00554976612329483, -0.017479920759797096, -0.02381102927029133, -0.004070916213095188, 0.010044571943581104, 0.04717984050512314, 0.0035965244751423597, 0.05974893271923065, -0.10507063567638397, 0.0066424645483493805, -0.014429936185479164, -0.04666517674922943, -0.002652681665495038, -0.0006889323703944683, 0.09463085979223251, -0.03617343679070473, -0.027643969282507896, 0.020894354209303856, -0.03631533309817314, 0.010213550180196762, 0.028643880039453506, -0.0030894316732883453, 0.00702486140653491, 0.014191052876412868, -0.03809256851673126, -0.0027710762806236744, 0.019698819145560265, 0.009356427937746048, -0.029427796602249146, 0.06301707774400711, -0.016566021367907524, 0.022423353046178818, -0.03918614238500595, -0.015777690336108208, 0.017305413261055946, 0.0030567441135644913, 0.009995815344154835, -0.016863837838172913, -0.01280873455107212, -0.014988319016993046, 0.0008288976969197392, 0.006293090991675854, -0.037655286490917206, 0.011023788712918758, 0.03101385198533535, 0.0036503474693745375, 0.03229917213320732, 0.036758556962013245, 0.035528771579265594, -0.04160473495721817, 0.011293882504105568, -0.0260169617831707, 0.007090411614626646, -0.01614014245569706, -0.001587134087458253, -0.04706903174519539, 0.022991443052887917, -0.026150058954954147, -0.002708530519157648, -0.0317109040915966, -0.03107241913676262, 0.07040885090827942, 0.01228325255215168, -0.03567865863442421, -0.0027109021320939064, -0.017303403466939926, 0.01104507502168417, 0.0006769603351131082, -0.034595735371112823, 0.0502249076962471, -0.02050994336605072, 0.02403438091278076, -0.006347775459289551, 0.0151780741289258, 0.011961936950683594, -0.019553199410438538, 0.013604143634438515, 0.04640805348753929, -0.016868729144334793, 0.05503928288817406, -0.01775149628520012, 0.0016361982561647892, -0.02183806337416172, -0.02059631608426571, -0.014018996618688107, -0.0024187802337110043, 0.06756886094808578, 0.06681041419506073, -0.0005923997960053384, -0.0258913766592741, 0.0206647589802742, 0.005163812078535557, 0.018728021532297134, -0.0309666208922863, 0.004532408434897661, -0.04780636355280876, 0.01284926850348711, 0.05245986953377724, -0.023173874244093895, 0.0038857890758663416, 0.02053762972354889, 0.015642883256077766, 0.019671104848384857, 0.009169972501695156, 0.028819462284445763, -0.0026057125069200993, 0.004881450906395912, 0.002178196795284748, 0.04638582468032837, -0.039243824779987335, -0.01084948517382145, 0.029111221432685852, -0.013055062852799892, 0.04910501837730408, -0.01929335668683052, -0.054666224867105484, 0.0079517662525177, 0.017696792259812355, -0.027750076726078987, -0.012379012070596218, 0.02417946606874466, 0.007149850018322468, 0.028469327837228775, 0.005463678389787674, -0.0011259055463597178, -0.003328271908685565, -0.028737002983689308, -0.017797674983739853, 0.002969741355627775, -0.033650122582912445, 0.009269903413951397, -0.009846108965575695, 0.021880680695176125, -0.016596313565969467, 0.04511623829603195, -0.014460737816989422, 0.034109748899936676, 0.01485756877809763, -0.01779940538108349, -0.010258669033646584, 0.011119408532977104, -0.012920240871608257, -0.04672360420227051, 0.025034943595528603, -0.015001561492681503, -0.0190548337996006, 0.018989646807312965, -0.030406776815652847, -0.020668400451540947, 0.010770817287266254, 0.0013106527039781213, 0.016026359051465988, 0.018422717228531837, -0.013850266113877296, -0.029759537428617477, -0.04424531012773514, -0.0062815104611217976, 0.00559078948572278, 0.0095319589599967, -0.045814044773578644, 0.010504265315830708, 0.007408157456666231, -0.010043924674391747, -0.012076599523425102, 0.009832104668021202, 0.04226371645927429, -0.003181626321747899, 0.021708350628614426, 0.005943459924310446, -0.01604166254401207, -0.07644626498222351, -0.0029373159632086754, 0.012755576521158218, -0.04795762896537781, 0.014570478349924088, 0.021334679797291756, 0.002770650666207075, -0.01555023156106472, -0.026296112686395645, 0.022637203335762024, 0.013177318498492241, -0.025121059268712997, 0.016148552298545837, 0.05164649710059166, 0.04413013905286789, 0.007760471198707819, -0.002279495121911168, 0.022868655622005463, -0.016239343211054802, -0.03227339684963226, 0.024903731420636177, -0.005483050365000963, -0.0050907745026052, -0.0035019428469240665, 0.08030137419700623, 0.08644185960292816, 0.04050303250551224, 0.05127055570483208, 0.008606120944023132, -0.0030359725933521986, 0.004508438054472208, -0.0026750671677291393, -0.014917428605258465, 0.0030112022068351507, -0.0035720469895750284, 0.03478839993476868, -0.028355620801448822, -0.046560365706682205, 0.014534843154251575, 0.025006083771586418, -0.02347544953227043, 0.012076672166585922, 0.02807631529867649, 0.017099833115935326, -0.04325951635837555, -0.06811701506376266, 0.007447266485542059, -0.02113362029194832, -0.019150471314787865, -0.019425908103585243, -0.002075115917250514, 0.009540276601910591, 0.02368037775158882, -0.035549864172935486, -0.011772886849939823, 0.013465135358273983, 0.024683300405740738, 0.0040551042184233665, -0.021755551919341087, -0.01972266659140587, 0.009902933612465858, -0.004932799842208624, 0.020773855969309807, -0.017161065712571144, 0.014560475014150143, 0.03044106625020504, 0.024266760796308517, -0.0037408946081995964, 0.04527755454182625, 0.006321956869214773, 0.025068363174796104, 0.05476582422852516, -0.02044057846069336, 0.011135764420032501, -0.056645479053258896, 0.006054425612092018, 0.025603020563721657, 0.02841445989906788, -0.054317936301231384, -0.02580374851822853, -0.03709360584616661, -0.026584520936012268, -0.043210819363594055, 0.039683010429143906, 0.05715937539935112, 0.0067170592956244946, -0.005206085275858641, -0.029969120398163795, 0.015271984972059727, -0.004032446071505547, -0.00025050973636098206, 0.048102546483278275, 0.024276459589600563, 0.04333529248833656, 0.032353490591049194, -0.015457184053957462, 0.003503059968352318, -0.054215654730796814, 0.022336643189191818, -0.03763670474290848, 0.03989811986684799, 0.0675162747502327, -0.03271638974547386, 0.02616998367011547, 0.04694357514381409, -0.03728240355849266, 0.04095475375652313, 0.01247321255505085, 0.027304023504257202, 0.016849948093295097, 0.016454122960567474, -0.0005281515186652541, -0.006972416769713163, -0.0635460615158081, -0.004805993754416704, 0.07172776758670807, 0.038091275840997696, 0.026281077414751053, 0.03162028640508652, 0.03249949961900711, 0.10882402211427689, -0.015175530686974525, -0.01859203912317753, 0.014796712435781956, 0.05263426527380943, 0.056422147899866104, 0.028467781841754913, 0.019149169325828552, -0.02615397237241268, 0.010882768779993057, -0.01819237880408764, 0.020443197339773178, -0.057727593928575516, 0.011018254794180393, 0.08726349472999573, -0.00878297071903944, 0.032702602446079254, -0.016493234783411026, 0.05610615760087967, 0.04342556372284889, -0.022297479212284088, 0.04394787922501564, 0.023276513442397118, -0.022582704201340675, -0.007219236344099045, 0.008417079225182533, 0.03476560115814209, -0.012902111746370792, -0.025954799726605415, 0.012487162835896015, 0.04329219087958336, 0.04383866488933563, -0.015327460132539272, 0.0027493336237967014, 0.018346872180700302, 0.014195533469319344, 0.014208836480975151, 0.01879502646625042, -0.03168238326907158, -0.018989572301506996, 0.009014327079057693, 0.010334932245314121, 0.002100034151226282, -0.02145928516983986, 0.029727693647146225, -0.014843679964542389, 0.009555772878229618, -0.04465988278388977, -0.002104002283886075, 0.05634405463933945, 0.02088232897222042, -0.026431061327457428, -0.06699566543102264, -0.025054380297660828, -0.032233528792858124, 0.033462055027484894, -0.016681749373674393, -0.002170282881706953, 0.04135964810848236, -0.008338337764143944, 0.010800941847264767, 0.0287524051964283, 0.025056086480617523, -0.003758005565032363, 0.029610764235258102, 0.005797609221190214, 0.007165690418332815, -0.003943103831261396, 0.01448859367519617, 0.004676382057368755, -0.05814002826809883, -0.015289782546460629, 0.027752531692385674, -0.04564117267727852, 0.008360069245100021, 0.005927613936364651, -0.020469240844249725, -0.024332690984010696, 0.023884687572717667, 0.03875363618135452, 0.025466451421380043, -0.011004220694303513, -0.01070678886026144, 0.0025896462611854076, -0.040659986436367035, -0.014034157618880272, 0.025259314104914665, -0.025649946182966232, -0.0007624075515195727, -0.014389591291546822, -0.015299167484045029, 0.0004612221382558346, -0.04401380941271782, 0.0035105424467474222, 0.0301329605281353, 0.00025295570958405733, -0.026165533810853958, -0.017411965876817703, 0.04317759349942207, 0.00713540893048048, 0.02959335409104824, 0.030682668089866638, -0.006521075498312712, 0.008094902150332928, -0.022459404543042183, 0.04533112049102783, -0.054441120475530624, 0.011396290734410286, -0.01197112537920475, -0.02269946038722992, -0.047517720609903336, 0.008749770931899548, -0.005010190419852734, 0.004958798177540302, -0.00982685573399067, -0.02101012133061886, -0.02004866488277912, -0.027893951162695885, -0.03365594148635864, -0.000403594080125913, 0.07279752194881439, 0.031255804002285004, 0.016981836408376694, 0.010940120555460453, -0.0204376969486475, -0.028194673359394073, -0.0037465603090822697, 0.0021966153290122747, 0.04062904790043831, -0.03525632247328758, -0.02059904672205448, -0.02834015153348446, 0.0085456483066082, 0.009642669931054115, -0.02211940661072731, -0.02655342034995556, -0.004597529303282499, -0.007201585453003645, 0.006038185674697161, -0.0030070708598941565, -0.0014084543799981475, -0.00029345956863835454, 0.024131696671247482, -0.0201747827231884, 0.03073175996541977, 0.02983599156141281, -0.025899598374962807, -0.058265864849090576, 0.017577780410647392, -0.008712392300367355, -0.01941848173737526, 0.052272167056798935, 0.007181791588664055, 0.0005782814114354551, 0.026803594082593918, 0.01201361883431673, 0.02844572439789772, 0.021604159846901894, -0.03783942013978958, -0.00927039235830307, -0.018076332286000252, 0.021047653630375862, -0.015888607129454613, 0.0047644926235079765, 0.034150127321481705, 0.023623459041118622, -0.03912607952952385, -0.013591485098004341, 0.003712479257956147, -0.004215391352772713, -0.026693755760788918, -0.008723569102585316, -0.01789066009223461, 0.044217467308044434, 0.06280148774385452, -0.014478081837296486, -0.032721202820539474, 0.018356049433350563 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Table of Contents - Introduction - Table of Contents - What’s Code Llama? - How to use Code Llama? - Demo - Transformers - A Note on dtypes - Code Completion - Code Infilling - Conversational Instructions - 4-bit Loading - Using text-generation-inference and Inference Endpoints - Using VS Code extension - Evaluation - Additional Resources
[ 0.05785902962088585, -0.009200663305819035, 0.07145091891288757, 0.06770673394203186, 0.09172069281339645, 0.06400376558303833, 0.0450485423207283, 0.0657646581530571, 0.0021892052609473467, -0.03686985746026039, -0.061794381588697433, 0.01419124472886324, 0.016348008066415787, 0.05119883641600609, 0.025194264948368073, 0.004947860259562731, 0.06476813554763794, -0.03988165780901909, 0.008806630969047546, 0.049688346683979034, -0.035598285496234894, -0.05533837154507637, 0.03606513887643814, -0.013013293035328388, -0.023018943145871162, -0.010625704191625118, -0.00457608699798584, 0.0182481836527586, -0.06235705316066742, 0.04708876088261604, -0.09515652060508728, -0.021276989951729774, 0.015185441821813583, 0.01001404132694006, -0.03887098655104637, -0.026662474498152733, -0.1453511118888855, 0.04940061271190643, 0.04960040748119354, -0.053524941205978394, 0.00997141283005476, -0.07836749404668808, -0.06642288714647293, 0.0011763270013034344, -0.03197462856769562, -0.014774211682379246, -0.22821570932865143, 0.03167260065674782, -0.09015971422195435, -0.013609438203275204, -0.0646304115653038, 0.03532036021351814, -0.014347901567816734, -0.008180812001228333, 0.0264190174639225, 0.005762347020208836, -0.015191012062132359, -0.057625629007816315, 0.029396168887615204, 0.029033757746219635, 0.048288799822330475, -0.020680030807852745, 0.02292429469525814, 0.002230065641924739, 0.1017698124051094, 0.026729494333267212, -0.01615416631102562, 0.04605559632182121, -0.07548908144235611, -0.005024779122322798, -0.051575418561697006, -0.030271079391241074, -0.04543151706457138, -0.030186107382178307, 0.013845911249518394, -0.034883808344602585, -0.03529044985771179, 0.03621085360646248, 0.07932325452566147, 0.04688246175646782, -0.027532722800970078, 0.05201340094208717, 0.08834661543369293, 0.07257059961557388, 0.04908950999379158, -0.0015878698322921991, 0.053527794778347015, -0.03263312578201294, -0.04159386828541756, 0.049897126853466034, -0.050345275551080704, -0.09598967432975769, -0.0326281413435936, 0.034035682678222656, 0.05458727478981018, -0.0756201520562172, 0.060047272592782974, -0.008261475712060928, -0.010200398042798042, -0.03778944909572601, -0.06334896385669708, 0.0024822221603244543, 0.0014051131438463926, -0.06101435795426369, -0.052207622677087784, 0.008402152918279171, -0.0037155714817345142, -0.04994048550724983, -0.04921602085232735, 0.031587667763233185, -0.061255089938640594, 0.026981957256793976, 0.08738147467374802, 0.056813254952430725, -0.14218193292617798, 0.02628113143146038, -0.007592606823891401, 0.04075666889548302, -0.028143418952822685, 0.021993564441800117, 0.03339120000600815, 0.0983072817325592, 0.09164160490036011, -0.03716660663485527, 0.03320052847266197, 0.05888310447335243, -0.015845270827412605, 0.019383234903216362, -0.004518902860581875, -0.025041187182068825, 0.02204257622361183, -0.003559886012226343, 0.036359552294015884, -0.03634577989578247, -0.05164240300655365, -0.04680272564291954, -0.042114656418561935, -0.05015672743320465, 0.02993844635784626, -0.031135864555835724, -0.005246190819889307, 0.022504126653075218, -0.017822537571191788, 0.03024168685078621, 0.05269180238246918, -0.010610142722725868, -0.09742002189159393, 0.011941368691623211, -0.03198333457112312, 0.009642696008086205, 0.01861645095050335, 0.05365706607699394, -0.0314343236386776, -0.03042086772620678, 0.038910940289497375, 0.0075753675773739815, 0.018726935610175133, 0.021589865908026695, -0.11897888034582138, -0.04500841349363327, 0.05589287355542183, -0.019176531583070755, -0.030803464353084564, 0.00794335175305605, 0.031290072947740555, 0.0035245781764388084, -0.03265589475631714, -0.006806826218962669, -0.005125235766172409, -0.0052207233384251595, -0.022242536768317223, -0.04730294644832611, 0.04217369481921196, -0.01428800169378519, -0.019683996215462685, 0.06774884462356567, 0.04652026668190956, 0.018614834174513817, -0.0038529159501194954, -0.03834057226777077, -0.023781340569257736, 0.007015586365014315, -0.020632700994610786, 0.03118886426091194, -0.006950305309146643, -0.03815857321023941, 0.039748068898916245, -0.061253491789102554, -0.033860109746456146, 0.023556316271424294, -0.04631092771887779, 0.020335443317890167, 0.0657704770565033, -0.004660624545067549, 0.01811697520315647, -0.06052638590335846, -0.03285818174481392, 0.1375083178281784, 0.07481840252876282, 0.05975353345274925, 0.05375644192099571, 0.06045132502913475, 0.07830347865819931, 0.0026521654799580574, -0.04151631146669388, 0.044749628752470016, 0.045464321970939636, 0.04787479713559151, 0.010877459309995174, -0.023667823523283005, 0.008747071027755737, -0.09084427356719971, 0.018662091344594955, -0.04906971752643585, 0.06652005016803741, -0.00018414836085867137, -0.04580480977892876, 0.008210399188101292, 0.010400103405117989, -0.06601491570472717, 0.08869265764951706, -0.021101681515574455, -0.016084816306829453, -0.03813403472304344, -0.026625564321875572, 0.05459103733301163, 0.09194914996623993, 0.029199430719017982, 0.05149539187550545, -0.07302942872047424, -0.0004102077800780535, -0.01779751107096672, -0.03287671506404877, 0.0607350654900074, 0.01774926297366619, -0.019289588555693626, -0.001058641355484724, -0.03604957461357117, 0.030776044353842735, -0.02146853692829609, 0.017726557329297066, -0.005228736437857151, 0.008474643342196941, 0.013984580524265766, -0.03891041502356529, -0.09815594553947449, 0.07707703858613968, 0.013208006508648396, -0.023013047873973846, 0.01752653159201145, -0.019669421017169952, 0.042068250477313995, 0.08650389313697815, 0.020099928602576256, 0.06640975177288055, 0.0055434489622712135, -0.013709619641304016, -0.016284039244055748, -0.03694523125886917, 0.009955571964383125, 0.0017964502330869436, -0.005440059583634138, -0.017167557030916214, -0.061891477555036545, -0.024248197674751282, -0.014197269454598427, 0.03424952179193497, 0.0454665832221508, -0.018364084884524345, 0.018841687589883804, -0.01067871879786253, -0.025267722085118294, 0.04145854711532593, -0.0121962521225214, 0.014473972842097282, -0.0026729709934443235, 0.05672132968902588, 0.011460421606898308, -0.028074836358428, -0.03436838835477829, -0.03934856504201889, -0.010030833072960377, 0.04421092942357063, 0.030175553634762764, 0.001824254752136767, -0.020022345706820488, -0.014821397140622139, -0.05601373314857483, -0.03830157220363617, 0.011070601642131805, 0.005793199874460697, 0.02288946695625782, -0.007111784070730209, -0.0009119411697611213, 0.0037997837644070387, -0.012358865700662136, -0.0243039783090353, 0.021144883707165718, -0.03967488929629326, 0.022080540657043457, 0.006605907808989286, 0.016224611550569534, -0.008296429179608822, 0.0024249637499451637, -0.03958802670240402, 0.014145812951028347, 0.009145909920334816, 0.033702440559864044, -0.1321817934513092, -0.017694391310214996, 0.015546536073088646, -0.00561819551512599, -0.009720739908516407, 0.006528320722281933, 0.07985688000917435, -0.030125562101602554, -0.04315100610256195, 0.012072225101292133, -0.0070799170061945915, -0.0018755365163087845, 0.03198007866740227, -0.0015663547674193978, 0.002299934858456254, -0.024271227419376373, -0.02750042825937271, 0.028207967057824135, 0.023886090144515038, 0.014349591918289661, -0.03093104250729084, 0.05162886157631874, -0.02927563339471817, -0.003922790288925171, -0.03166383132338524, 0.006577131804078817, 0.04558446630835533, 0.05585531145334244, 0.0067553711123764515, -0.045716866850852966, -0.00706350477412343, -0.002661778824403882, -0.008628027513623238, 0.023980820551514626, -0.02234639786183834, 0.02062285505235195, 0.004738106392323971, -0.06039715185761452, 0.027570800855755806, 0.04319129139184952, 0.019467150792479515, -0.015943024307489395, 0.03247513994574547, -0.023780779913067818, -0.041159771382808685, 0.0020727389492094517, 0.012364830821752548, -0.017753764986991882, 0.03538043051958084, -0.03809593617916107, -0.023134073242545128, -0.0002202063478762284, -0.020635424181818962, 0.05894880369305611, -0.01542707346379757, -0.005308221094310284, 0.005973774008452892, 0.015059911645948887, 0.009835648350417614, -0.016498573124408722, -0.04670801758766174, 0.020462216809391975, 0.009773384779691696, -0.005772928707301617, -0.024107571691274643, 0.05530570074915886, -0.022622125223279, 0.01839343272149563, -0.010613538324832916, 0.03073417954146862, -0.01913866400718689, 0.03909018635749817, -0.03444576635956764, 0.004680911544710398, -0.017052939161658287, 0.024492600932717323, -0.04118773341178894, -0.0032732398249208927, 0.08345511555671692, 0.02957802638411522, 0.013703719712793827, -0.023074887692928314, -0.020977621898055077, -0.021782489493489265, -0.012712753377854824, 0.0023972834460437298, 0.0030473044607788324, 0.005559389945119619, -0.002324481029063463, 0.043689701706171036, 0.016144054010510445, -0.035010695457458496, 0.027179161086678505, -0.003274026094004512, -0.005005848128348589, 0.01573336310684681, 0.051315173506736755, 0.016364578157663345, 0.005877616349607706, 0.012391177006065845, 0.03338808938860893, -0.011920029297471046, -0.0070652118884027, 0.04051130637526512, -0.018028993159532547, 0.020127620548009872, -0.039026979357004166, -0.0405905656516552, -0.00206969422288239, -0.002196274232119322, -0.0027056150138378143, -0.03978888690471649, 0.017231067642569542, -0.017468908801674843, 0.02233049087226391, 0.05148778855800629, -0.012778323143720627, -0.03745799884200096, -0.04314795881509781, 0.0026929157320410013, -0.00936130154877901, 0.020658668130636215, -0.00022693116625305265, -0.01744229532778263, 0.0374874621629715, -0.00029001833172515035, 0.04249894246459007, 0.012129733338952065, 0.005714340601116419, 0.020891796797513962, -0.026944154873490334, -0.03893677890300751, 0.027745366096496582, -0.012279738672077656, 0.011329412460327148, 0.02487950399518013, -0.021223582327365875, 0.023963121697306633, -0.010745706968009472, -0.06576341390609741, -0.013746368698775768, -0.01661752723157406, 0.022558419033885002, 0.006434400100260973, 0.04278029873967171, -0.03692040219902992, -0.007702227216213942, -0.014938374049961567, 0.0023469398729503155, 0.00845065712928772, 0.035185929387807846, -0.03294805809855461, 0.0035624464508146048, 0.014131603762507439, 0.010094705037772655, 0.013085996732115746, 0.04833059385418892, 0.013816534541547298, 0.016915636137127876, 0.028952792286872864, -0.004884448833763599, 0.00631282152608037, -0.041182998567819595, 0.00258370372466743, 0.008857052773237228, 0.016570141538977623, -0.012608920224010944, -0.030607573688030243, 0.016771327704191208, -0.01751149259507656, -0.031499993056058884, 0.026116468012332916, 0.033232681453228, -0.00923458393663168, -0.006293184589594603, 0.0336989127099514, 0.05536627769470215, -0.006289077922701836, 0.02121136710047722, 0.01518799178302288, -0.00352432020008564, -0.06604644656181335, 0.032076574862003326, -0.010129845701158047, -0.0104851508513093, 0.012808662839233875, 0.04527946561574936, 0.04721126705408096, 0.03395075723528862, 0.025445176288485527, -0.008698897436261177, -0.035751309245824814, -0.014767911285161972, -0.006081204861402512, -0.004469639156013727, 0.0016578937647864223, 0.007804422173649073, 0.019291715696454048, -0.018471064046025276, -0.024657011032104492, 0.01567831076681614, 0.025072121992707253, -0.01911849156022072, 0.018229158595204353, 0.02832830883562565, 0.027784010395407677, -0.0030241699423640966, -0.04866694286465645, 0.048112593591213226, -0.02477024681866169, 0.001656661625020206, 0.007982928305864334, -0.012882930226624012, -0.005752632860094309, 0.01517273485660553, -0.04701835662126541, -0.018969930708408356, 0.004171729553490877, 0.039454635232686996, 0.031134530901908875, -0.01538045797497034, 0.016028253361582756, 0.006794781424105167, 0.03698892891407013, 0.035792913287878036, -0.033578045666217804, -0.015331356786191463, 0.010679432190954685, -0.0080109853297472, 0.009427640587091446, 0.07570604979991913, -0.016179179772734642, 0.0033017832320183516, 0.02311401255428791, -0.019210556522011757, 0.041134655475616455, -0.06225888431072235, 0.01225205697119236, 0.0280902162194252, 0.0007715161191299558, -0.016221417114138603, -0.04739801213145256, -0.028411224484443665, -0.026608427986502647, -0.04455668106675148, 0.02473154105246067, 0.03657342866063118, -0.03061346895992756, -0.016989201307296753, 0.00676166033372283, 0.009363111108541489, -0.036781832575798035, 0.019304689019918442, 0.0060843247920274734, -0.02255764976143837, 0.024377308785915375, 0.003192712552845478, -0.00026240001898258924, -0.0029960081446915865, -0.021344000473618507, 0.008799337781965733, -0.03037819266319275, 0.02753484435379505, 0.027953842654824257, -0.03385119512677193, 0.02948162704706192, 0.023654473945498466, 0.006043783389031887, 0.011922246776521206, 0.0008422065293416381, -0.0021013356745243073, 0.03368457779288292, 0.050798360258340836, -0.011195305734872818, 0.029637334868311882, -0.039107102900743484, 0.004863813519477844, 0.037630580365657806, 0.005571384448558092, 0.004717683419585228, 0.013899486511945724, 0.012835878878831863, 0.021297749131917953, -0.008027524687349796, -0.023471282795071602, -0.022466568276286125, 0.06936357915401459, 0.030690258368849754, 0.055063094943761826, 0.022407039999961853, -0.03541335463523865, 0.031991712749004364, -0.010519970208406448, -0.011641516350209713, -0.06433415412902832, 0.0010069194249808788, 0.06795602291822433, 0.010467728599905968, 0.024808915331959724, -0.04092959687113762, 0.06098753958940506, 0.026418831199407578, 0.0062889778055250645, -0.004036316182464361, 0.007368588354438543, 0.013570756651461124, 0.024579860270023346, 0.0023062366526573896, -0.006196713075041771, 0.01411766093224287, -0.019274212419986725, 0.03700433671474457, 0.013466550968587399, 0.026240302249789238, 0.0010200043907389045, -0.023246895521879196, 0.03759685531258583, 0.014444034546613693, 0.027912603691220284, 0.0041128103621304035, 0.02903089113533497, 0.01099854800850153, 0.011165748350322247, -0.02756192348897457, -0.054413340985774994, -0.04285859316587448, 0.02524869702756405, -0.01163236889988184, -0.0036796052008867264, -0.009218675084412098, 0.02869359590113163, 0.046227458864450455, 0.017048921436071396, -0.022459937259554863, -0.0178645309060812, -0.002517323475331068, 0.007256438490003347, 0.01944190450012684, -0.0031856985297054052, -0.009497320279479027, 0.011975841596722603, 0.013482939451932907, 0.0026859010104089975, 0.027386009693145752, -0.002717883326113224, -0.02788175828754902, 0.023686423897743225, 0.010172529146075249, -0.009752687066793442, 0.014069946482777596, 0.002132858382537961, 0.012437413446605206, -0.03751864284276962, 0.010585579089820385, 0.014558258466422558, -0.02209065854549408, -0.03643466532230377, -0.01683267392218113, -0.0035770104732364416, -0.012595346197485924, 0.002650274196639657, 0.02488839626312256, 0.02838275395333767, 0.003970584832131863, -0.025448983535170555, 0.000762292998842895, -0.02871263399720192, -0.02108013443648815, -0.017671287059783936, -0.02465224638581276, -0.022742388769984245, -0.008341801352798939, -0.0028379715513437986, 0.020658928900957108, -0.013169954530894756, -0.01448148675262928, 0.015454661101102829, -0.03267588093876839, -0.02001962997019291, -0.03346767649054527, 0.06494145840406418, 0.006187032908201218, 0.026372024789452553, 0.03523432835936546, 0.031116817146539688, -0.010948746465146542, -0.02646484598517418, -0.0072057414799928665, -0.04412215203046799, 0.03235718235373497, -0.03633098676800728, -0.03281600400805473, -0.032946836203336716, -0.014842706732451916, 0.004864303395152092, 0.02300213649868965, -0.05898980051279068, -0.03506089374423027, 0.005274096969515085, -0.012538266368210316, -0.004834972321987152, -0.024723008275032043, 0.043684978038072586, 0.021639863029122353, 0.04828489571809769, -0.006760741118341684, 0.029396070167422295, -0.008212102577090263, -0.00697791064158082, 0.01136622205376625, 0.021801980212330818, 0.02943023107945919, -0.022892320528626442, -0.054420407861471176, 0.005962012335658073, -0.04246293008327484, -0.05006818845868111, 0.0007314985268749297, -0.003756431397050619, -0.009159347042441368, -0.008221864700317383, -0.014188012108206749, 0.015385414473712444, 0.016501491889357567, 0.018632348626852036, 0.003459000727161765, 0.0017724039498716593, 0.04164363071322441, -0.008482234552502632, -0.06779918074607849, 0.009683539159595966, 0.0030419689137488604, 0.012189721688628197, 0.035492654889822006, 0.04327540844678879, 0.044690582901239395, 0.0015823615249246359, -0.0022093583829700947, 0.019702469930052757, 0.026881080120801926, -0.04656888544559479, -0.007377802859991789, -0.014270801097154617, 0.021676816046237946, -0.02197965793311596, -0.03890903666615486, 0.007395362947136164, 0.015190018340945244, -0.01680060476064682, -0.011690673418343067, -0.02525571919977665, 0.004703390412032604, 0.0017965649021789432, 0.052289169281721115, 0.01342308335006237, 0.08083881437778473, 0.05028083920478821, 0.010299830697476864, -0.02836867980659008, 0.05384708195924759 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
How to use Code Llama? Code Llama is available in the Hugging Face ecosystem, starting with transformers version 4.33.
[ 0.021007943898439407, -0.028371375054121017, 0.10612711310386658, -0.036340415477752686, 0.08122092485427856, 0.02855176106095314, 0.03203621506690979, 0.042052239179611206, 0.003693334525451064, -0.007444316986948252, -0.05267299711704254, 0.08250641822814941, -0.0703284740447998, 0.11223353445529938, 0.010840317234396935, -0.02570216916501522, 0.011578752659261227, 0.017134923487901688, 0.023680849000811577, 0.04271905496716499, -0.024635400623083115, -0.08851819485425949, 0.02243187092244625, -0.05892148241400719, -0.02240966632962227, -0.02008819952607155, 0.04118170961737633, 0.06881672888994217, -0.016314933076500893, 0.06683375686407089, -0.09302891045808792, -0.025024065747857094, 0.07137919217348099, -0.007307474967092276, 0.020841112360358238, 0.062090273946523666, -0.16987314820289612, 0.02690226398408413, 0.009767027571797371, -0.03328690677881241, -0.008751662448048592, -0.0631476640701294, -0.05274805426597595, 0.001107487827539444, -0.03154679387807846, -0.028370575979351997, -0.20172487199306488, 0.0695604532957077, -0.02003106288611889, -0.0019996496848762035, -0.06269058585166931, 0.04328971728682518, 0.01928521879017353, -0.043899793177843094, 0.01966167986392975, -0.025078285485506058, -0.045375578105449677, -0.07028277218341827, 0.011545605957508087, 0.02774243801832199, 0.04383203387260437, -0.0158908162266016, 0.037789326161146164, 0.025085579603910446, 0.03922497481107712, 0.047412339597940445, 0.003128698095679283, -0.018917789682745934, -0.0672842413187027, -0.024946419522166252, 0.028553789481520653, -0.03956155478954315, -0.014340340159833431, -0.07046055793762207, 0.00884198397397995, -0.041169423609972, -0.060866598039865494, 0.06980675458908081, 0.06429021060466766, 0.09860655665397644, 0.00353578245267272, 0.00675613759085536, 0.048853158950805664, 0.09795801341533661, 0.020635120570659637, 0.06817827373743057, 0.03751526027917862, -0.05731930211186409, -0.06319928169250488, 0.06637382507324219, -0.04396013543009758, -0.12248240411281586, -0.04937778785824776, 0.00023351616982836276, 0.0956840068101883, -0.04229019954800606, -0.020838981494307518, -0.0035034706816077232, -0.03662049397826195, -0.021701477468013763, -0.03973134979605675, -0.028740160167217255, 0.002883194712921977, -0.03302750736474991, -0.02498352900147438, -0.012156309559941292, 0.007122170180082321, -0.0720401480793953, 0.0018551680259406567, -0.03723641484975815, 0.009570300579071045, -0.042541198432445526, 0.11730118840932846, 0.04147034510970116, -0.08416393399238586, 0.06691612303256989, 0.03977024182677269, 0.0137332109734416, -0.004755410831421614, 0.032761942595243454, 0.035974591970443726, 0.08116180449724197, 0.04144638031721115, 0.02990426868200302, 0.06744705140590668, 0.06908600777387619, -0.02879655361175537, 0.009257745929062366, 0.016202693805098534, -0.02193416841328144, 0.033544931560754776, -0.026508118957281113, 0.019035402685403824, -0.01669849455356598, 0.020997582003474236, -0.02457958459854126, 0.01564374566078186, -0.07479632645845413, 0.019530989229679108, -0.016621045768260956, -0.024717040359973907, 0.045280180871486664, 0.02088869921863079, 0.027346352115273476, 0.06895178556442261, -0.034370411187410355, -0.09785843640565872, 0.05812268704175949, -0.0297041367739439, 0.005062596406787634, 0.0008306718082167208, 0.023581380024552345, -0.0518978014588356, -0.0018349422607570887, -0.012833020649850368, -0.016128240153193474, -0.05679157376289368, 0.004262567963451147, -0.11753902584314346, -0.03987938165664673, -0.005630233325064182, -0.018658669665455818, -0.06945003569126129, -0.003494810312986374, 0.025089122354984283, -0.017714466899633408, -0.046318475157022476, -0.022960767149925232, 0.03745337575674057, -0.01651277393102646, 0.023343035951256752, -0.054796185344457626, 0.02789226360619068, -0.03406103327870369, -0.026781592518091202, 0.039878010749816895, 0.04479731246829033, 0.050661616027355194, -0.007641561329364777, -0.003774569369852543, -0.024216752499341965, 0.025431295856833458, -0.01900172419846058, 0.009378738701343536, 0.0002802212839014828, -0.06620386242866516, 0.007013981696218252, -0.01663335971534252, -0.002301921369507909, 0.007462903391569853, -0.013275225646793842, -0.0032513486221432686, 0.03684345260262489, -0.0013754621613770723, 0.0403105765581131, -0.013692493550479412, -0.058170873671770096, 0.1045282706618309, 0.0507899671792984, 0.05401439592242241, 0.06282220035791397, 0.02219821698963642, 0.07065201550722122, 0.005866391118615866, -0.04539809376001358, 0.05031570792198181, 0.041913364082574844, 0.001589856925420463, 0.017393087968230247, -0.007341619115322828, 0.022634610533714294, -0.0876675397157669, 0.02760615199804306, -0.01610274612903595, 0.08026691526174545, 0.0015273394528776407, -0.030291739851236343, 0.011395779438316822, 0.006520261988043785, -0.013402847573161125, 0.10981743782758713, -0.0294824056327343, -0.052807312458753586, -0.05388674512505531, -0.03006422333419323, 0.054151199758052826, 0.09782756865024567, 0.029380131512880325, 0.10578900575637817, -0.0783689096570015, 0.014472748152911663, -0.027978921309113503, -0.03664853796362877, 0.04846594110131264, 0.015466718003153801, -0.05108335241675377, 0.03338918834924698, -0.028544778004288673, 0.039563242346048355, -0.0030169696547091007, 0.018168216571211815, 0.015930794179439545, 0.026274610310792923, 0.01717446744441986, -0.014522552490234375, -0.04173775389790535, 0.04066234827041626, 0.013567195273935795, -0.006000463850796223, 0.01411975547671318, -0.06940419971942902, -0.009998931549489498, 0.0575694739818573, -0.006667370907962322, 0.004271012730896473, 0.049368035048246384, -0.011758923530578613, -0.020080983638763428, -0.02502545341849327, 0.027186039835214615, 0.01711631380021572, -0.017923086881637573, -0.003995160106569529, -0.03417098894715309, -0.06285350024700165, -0.006938865873962641, 0.010563364252448082, 0.039652906358242035, -0.023078402504324913, -0.004560238681733608, 0.03829120844602585, -0.05030789598822594, 0.04896247014403343, -0.021312395110726357, 0.03174932301044464, -0.002236428903415799, 0.06329906731843948, 0.009491504170000553, -0.043894652277231216, -0.007659689523279667, -0.02739262953400612, -0.005403739400207996, 0.05226588249206543, 0.016849907115101814, 0.006467737723141909, -0.0010940018109977245, 0.008633574470877647, -0.03805918991565704, -0.0262512918561697, 0.023978576064109802, 0.02369234897196293, 0.03662853315472603, 0.00747778220102191, 0.003262320766225457, -0.012911589816212654, -0.040285058319568634, 0.01951662451028824, 0.038745149970054626, 0.002367116743698716, 0.049259867519140244, 0.01853799633681774, -0.00870375894010067, -0.022512394934892654, -0.019455555826425552, -0.039865270256996155, 0.012820406816899776, 0.03299834951758385, 0.01253163069486618, -0.11266805976629257, -0.0590398833155632, -0.013791000470519066, 0.0041940342634916306, -0.018004639074206352, -0.03936375677585602, 0.06049691513180733, -0.019971372559666634, -0.009154804982244968, 0.008737388998270035, -0.018748920410871506, -0.019963689148426056, 0.055999089032411575, 0.01076328195631504, -0.03240303322672844, -0.05380542576313019, -0.050789982080459595, 0.0019241335103288293, 0.04041047394275665, 0.0015394339570775628, -0.02515028789639473, 0.06651663035154343, 0.003979903645813465, -0.009264015592634678, -0.02478654310107231, -0.000605541979894042, 0.06401695311069489, 0.02207011729478836, 0.021755123510956764, -0.04491065815091133, 0.009416787885129452, -0.01107877492904663, -0.024329839274287224, 0.017937585711479187, -0.06198522448539734, 0.026543423533439636, -0.00222783419303596, -0.030289052054286003, 0.05796350538730621, -0.003551911097019911, 0.02169829048216343, -0.027999838814139366, 0.010457857511937618, -0.04325031116604805, -0.030104052275419235, -0.001570440479554236, -0.03857173025608063, -0.011907248757779598, 0.039603132754564285, -0.021563369780778885, -0.026134517043828964, 0.00011192104284418747, 0.003468553302809596, 0.03598712757229805, 0.02204902470111847, 0.005418580491095781, -0.00003916252899216488, 0.013277118094265461, 0.007772123906761408, 0.018011804670095444, -0.06179269030690193, 0.01130136288702488, -0.017169827595353127, 0.006358559709042311, -0.02858796715736389, 0.029395369812846184, 0.00875786878168583, 0.020801294595003128, 0.016110023483633995, 0.02332271635532379, 0.016479646787047386, 0.011875772848725319, -0.03229367733001709, 0.014665537513792515, -0.02257189340889454, 0.03514200448989868, -0.015454395674169064, -0.017003651708364487, 0.06969038397073746, -0.003284633858129382, 0.024896176531910896, -0.019931316375732422, 0.0067468429915606976, -0.016928642988204956, -0.013827143236994743, -0.028306247666478157, 0.0393400564789772, -0.0011191779049113393, 0.024910572916269302, 0.03797847032546997, 0.0007590778404846787, -0.019003523513674736, 0.017983166500926018, -0.026467783376574516, 0.0065449317917227745, 0.0158251840621233, 0.02601328305900097, -0.003248069202527404, -0.017089352011680603, 0.0299514327198267, 0.00921125989407301, -0.020686162635684013, 0.0075456625781953335, 0.012670096941292286, 0.016351737082004547, 0.022699465975165367, -0.008376019075512886, -0.0591294951736927, -0.009631775319576263, -0.0015775939682498574, 0.019027777016162872, -0.06213586404919624, -0.008138604462146759, -0.01966330036520958, 0.020093409344553947, -0.005789236631244421, 0.008051857352256775, -0.028237290680408478, -0.05113906040787697, 0.023636098951101303, -0.02638866938650608, 0.00018099955923389643, -0.009415616281330585, -0.016143525019288063, 0.029375720769166946, -0.02316131256520748, 0.039717093110084534, 0.022354405373334885, 0.009956121444702148, 0.04797552525997162, -0.02337447926402092, -0.024827366694808006, 0.012129023671150208, -0.009446641430258751, 0.010668324306607246, 0.01988382264971733, -0.03790748491883278, 0.014780458062887192, 0.0005382286035455763, -0.06706726551055908, -0.042492497712373734, -0.024596519768238068, 0.05928778648376465, -0.027716385200619698, 0.046300362795591354, -0.015307880006730556, -0.018626011908054352, -0.0055366214364767075, -0.032175030559301376, 0.01607261225581169, 0.05194542929530144, -0.04543500393629074, 0.0013606434222310781, 0.028070200234651566, 0.019105661660432816, 0.005908437073230743, -0.0025476794689893723, 0.018999330699443817, 0.01692959852516651, 0.04014545679092407, -0.0009237176855094731, -0.010161023586988449, -0.04164789989590645, 0.0014291285770013928, 0.0144461365416646, -0.021102169528603554, -0.0005580647266469896, -0.0544038787484169, 0.001626569777727127, 0.0045203217305243015, -0.03242241218686104, -0.016471149399876595, 0.02190413512289524, -0.04018295183777809, -0.038635801523923874, 0.048228077590465546, 0.04503607004880905, -0.02009662613272667, 0.01819700188934803, 0.029824133962392807, -0.02120601013302803, -0.01963604986667633, 0.0051455385982990265, 0.009230421856045723, 0.009944666177034378, -0.0012649957789108157, 0.044740527868270874, 0.06989440321922302, 0.04325124993920326, 0.019827159121632576, 0.006436100695282221, -0.015732381492853165, 0.02457481063902378, -0.02744472399353981, -0.007114020176231861, -0.02779367007315159, -0.0045005157589912415, -0.013519138097763062, 0.007783249951899052, -0.01861187070608139, -0.005445276387035847, 0.022615469992160797, -0.039107903838157654, -0.005550091154873371, 0.029031800106167793, -0.014696158468723297, -0.01466130930930376, -0.02067132666707039, 0.005976925604045391, -0.030145026743412018, 0.009410593658685684, -0.011698472313582897, 0.019905414432287216, -0.005016174633055925, -0.0021305950358510017, -0.033270616084337234, -0.02555876411497593, 0.0026971010956913233, 0.023207664489746094, 0.043118204921483994, -0.006659691222012043, -0.006812043953686953, 0.0012008644407615066, 0.00235546356998384, 0.030483804643154144, -0.0017498924862593412, 0.018857022747397423, 0.035184767097234726, -0.004501331131905317, 0.04682546108961105, 0.07813546061515808, -0.010678836144506931, 0.03194769099354744, 0.01878940872848034, -0.012299330905079842, 0.029725106433033943, -0.06302197277545929, 0.01544900517910719, 0.02200506627559662, -0.005977977532893419, -0.008418756537139416, -0.026958493515849113, -0.05632700026035309, -0.05479372292757034, -0.026383070275187492, 0.004144406411796808, 0.07257825136184692, 0.005027055274695158, -0.00313692563213408, -0.0010014628060162067, 0.016096744686365128, -0.03734559193253517, 0.012681490741670132, -0.009127752855420113, 0.0025507647078484297, 0.03885960951447487, 0.02035386674106121, 0.05307723209261894, 0.002339528175070882, -0.004345259629189968, 0.007011114619672298, -0.04553137719631195, -0.004590445663779974, 0.04278688132762909, 0.00021416136587504297, 0.03216935694217682, 0.0005667884252034128, -0.02280404604971409, 0.002665778622031212, 0.030280206352472305, -0.00475473003461957, 0.04253876581788063, 0.04196881130337715, 0.0003281865210738033, -0.011138350702822208, -0.048652611672878265, 0.010150209069252014, 0.03949529305100441, 0.0055829379707574844, 0.053315967321395874, 0.023463966324925423, 0.02757282741367817, 0.023145766928792, 0.009492091834545135, -0.018194109201431274, 0.0055567012168467045, 0.06348773837089539, 0.011816414073109627, 0.037959177047014236, 0.03311403840780258, -0.035507529973983765, -0.0031146621331572533, -0.022229675203561783, -0.008686390705406666, -0.03111722134053707, 0.02264966070652008, 0.018209125846624374, 0.0037797698751091957, 0.030647633597254753, -0.0329664945602417, 0.06969860941171646, 0.040488842874765396, 0.024281270802021027, -0.01921495981514454, 0.030070200562477112, 0.01509250421077013, 0.031919825822114944, 0.01838432438671589, -0.006625140551477671, 0.01059637125581503, -0.024779293686151505, 0.04876558110117912, 0.014954652637243271, 0.05956414341926575, -0.0010493173031136394, 0.0046648602001369, 0.019792309030890465, -0.004563333000987768, 0.0045557483099401, -0.036382611840963364, 0.016432881355285645, -0.019961126148700714, -0.029353033751249313, 0.015596194192767143, -0.018627943471074104, -0.019020667299628258, 0.02834639698266983, 0.0036116410046815872, -0.011924846097826958, -0.027214042842388153, 0.01913352869451046, 0.0308943223208189, 0.027782676741480827, 0.01651586778461933, 0.004262950737029314, 0.02128143608570099, 0.01018470898270607, 0.004934167955070734, -0.023591214790940285, -0.009671960957348347, 0.00888870470225811, -0.006485454272478819, -0.03591025248169899, 0.005931641440838575, 0.01769660972058773, -0.012901989743113518, 0.02112293615937233, 0.04219556972384453, -0.008192285895347595, 0.017955303192138672, 0.026889387518167496, 0.011847668327391148, -0.06357567012310028, -0.008418192155659199, 0.018449369817972183, -0.0037313576322048903, -0.01628955267369747, -0.06192570552229881, 0.014312252402305603, -0.011308679357171059, -0.009697942063212395, 0.0387021079659462, 0.02733789011836052, -0.0016041486524045467, -0.030401939526200294, -0.01152000855654478, -0.039144366979599, -0.013402928598225117, 0.02457752823829651, -0.01047851238399744, -0.013750405982136726, 0.018717866390943527, 0.005717678461223841, 0.0481722466647625, 0.023478474467992783, 0.048108067363500595, 0.03402474895119667, -0.01350034587085247, -0.03240879252552986, -0.008662539534270763, 0.05261729657649994, 0.0033927529584616423, 0.012933431193232536, 0.024341046810150146, 0.016663942486047745, -0.006728679407387972, -0.03403310477733612, 0.033760134130716324, -0.03121940977871418, 0.006393201649188995, -0.019947094842791557, -0.025774015113711357, -0.00021995713177602738, -0.04029412195086479, -0.005836527794599533, 0.028795236721634865, -0.022722899913787842, -0.01063003484159708, -0.011798053048551083, -0.027149999514222145, 0.004966902546584606, 0.01716066338121891, 0.03652968630194664, 0.053330183029174805, 0.0627070888876915, -0.015118186362087727, 0.01071941014379263, -0.01289189513772726, -0.016713786870241165, -0.0018710863078013062, 0.03910703957080841, -0.0095828240737319, -0.014551525935530663, -0.039024583995342255, -0.023064691573381424, -0.014501506462693214, -0.040641333907842636, 0.015426799654960632, -0.023868460208177567, -0.045914314687252045, -0.0405581034719944, -0.04510226845741272, 0.005550730973482132, -0.004052482079714537, 0.045975957065820694, -0.0455087386071682, -0.011413090862333775, 0.010972561314702034, -0.00205876212567091, -0.05553758144378662, 0.004514643922448158, 0.00784272700548172, -0.009254250675439835, 0.008258108980953693, 0.03439977020025253, -0.013430573977530003, -0.008517700247466564, 0.005449949763715267, 0.006439445074647665, 0.03778184950351715, -0.035900767892599106, -0.026897385716438293, -0.023270608857274055, 0.02054339088499546, -0.020105360075831413, -0.0556122250854969, -0.0030727041885256767, 0.021537892520427704, -0.04813734069466591, -0.02387157268822193, -0.007994255051016808, -0.013232900761067867, -0.007845542393624783, 0.0016305402386933565, 0.010580494068562984, 0.056257445365190506, 0.02255570888519287, -0.02967994101345539, -0.004329170566052198, -0.0005940932896919549 ]
Code Llama: Llama 2 learns to code
philschmid
August 25, 2023
codellama
nlp, community, research, LLM
https://huggingface.co/blog/codellama
Introduction Code Llama is a family of state-of-the-art, open-access versions of Llama 2 specialized on code tasks, and we’re excited to release integration in the Hugging Face ecosystem! Code Llama has been released with the same permissive community license as Llama 2 and is available for commercial use. Today, we’re excited to release: - Models on the Hub with their model cards and license - Transformers integration - Integration with Text Generation Inference for fast and efficient production-ready inference - Integration with Inference Endpoints - Integration with VS Code extension - Code benchmarks Code LLMs are an exciting development for software engineers because they can boost productivity through code completion in IDEs, take care of repetitive or annoying tasks like writing docstrings, or create unit tests.
[ 0.027322666719555855, -0.0232332032173872, 0.06976845860481262, -0.01792968437075615, 0.05740714818239212, 0.013618911616504192, 0.021564021706581116, 0.029444994404911995, 0.03207315504550934, 0.01541820541024208, -0.05271784961223602, 0.036957480013370514, -0.04924039542675018, 0.10308075696229935, 0.04982778802514076, -0.017939159646630287, -0.010128789581358433, 0.008515828289091587, 0.005779446568340063, 0.012451691552996635, -0.019938789308071136, -0.07082440704107285, 0.013544410467147827, -0.08875364065170288, -0.07560908049345016, 0.024789828807115555, 0.022345269098877907, 0.005998269189149141, -0.01661539636552334, 0.010581795126199722, -0.0777040421962738, -0.010515965521335602, -0.005271972622722387, -0.006919070612639189, 0.03183748945593834, 0.01979929395020008, -0.16227835416793823, 0.07404451817274094, 0.007442135829478502, -0.06210622936487198, 0.014303796924650669, -0.07251663506031036, -0.08011744916439056, -0.029194766655564308, -0.022884787991642952, 0.029296454042196274, -0.0994449332356453, 0.010309218429028988, -0.04397139698266983, 0.03283974155783653, -0.11585316807031631, 0.04428262636065483, 0.011862657032907009, -0.013750909827649593, 0.04652734845876694, -0.004391173832118511, -0.017947256565093994, -0.06888661533594131, 0.029981516301631927, 0.05622575059533119, 0.002290847012773156, -0.047859467566013336, 0.04905318468809128, -0.01995779760181904, 0.06272764503955841, 0.052152328193187714, -0.020503688603639603, -0.019790759310126305, -0.046166129410266876, -0.015650609508156776, 0.03377510607242584, -0.01371468510478735, -0.09787527471780777, -0.10452773422002792, 0.009930578991770744, -0.08355136215686798, -0.054414961487054825, 0.05304288864135742, 0.05035383626818657, 0.011303159408271313, 0.007334584835916758, 0.01782146468758583, 0.03528514876961708, 0.023066168650984764, 0.01651962287724018, 0.06788615137338638, -0.006662309169769287, -0.09691914170980453, -0.06708109378814697, 0.01004190742969513, -0.04389287903904915, -0.10085712373256683, -0.03745296597480774, -0.00248020701110363, 0.08799266070127487, -0.004758442286401987, -0.015491018071770668, 0.010329114273190498, -0.07985848188400269, -0.0214252807199955, 0.00202808971516788, -0.002388895722106099, -0.01847761496901512, -0.0541875883936882, -0.03644778952002525, 0.015495623461902142, 0.00003712936086230911, -0.07608545571565628, -0.06382886320352554, 0.01594061218202114, 0.03715336695313454, -0.018480440601706505, 0.08786449581384659, 0.05239175632596016, -0.11037113517522812, 0.049260739237070084, -0.010653396137058735, -0.0071184029802680016, -0.01587824337184429, 0.02604508399963379, 0.007517282385379076, 0.0036562520544975996, 0.049825020134449005, 0.023595867678523064, 0.09069916605949402, 0.06921502947807312, -0.05076554790139198, -0.014232054352760315, 0.03784972056746483, -0.022176312282681465, 0.02247525006532669, -0.014555564150214195, 0.002189639722928405, -0.00016558679635636508, 0.03310893476009369, -0.00010781142191262916, -0.013378370553255081, -0.08640796691179276, 0.054211292415857315, 0.010656130500137806, 0.007873767986893654, 0.024874506518244743, 0.03438510745763779, -0.01205055508762598, 0.043156031519174576, -0.012137808836996555, -0.0719999223947525, 0.03672966733574867, -0.04000836983323097, 0.00008561575668863952, -0.022617226466536522, -0.0018111079698428512, -0.04981400817632675, -0.0009982894407585263, 0.02311081625521183, -0.01843644678592682, 0.0035534172784537077, 0.011027404107153416, -0.04025294631719589, 0.01018618792295456, -0.038396358489990234, -0.025073425844311714, -0.04527997970581055, 0.00042106659384444356, 0.01648535765707493, -0.01841372810304165, -0.037863895297050476, -0.004544658586382866, 0.018131636083126068, 0.013347472064197063, 0.002104952000081539, -0.029716359451413155, 0.004508055280894041, -0.07466759532690048, 0.012118132784962654, 0.017461391165852547, 0.030146347358822823, 0.026491722092032433, 0.03138577565550804, 0.038841165602207184, -0.027169855311512947, 0.024227282032370567, 0.01992621272802353, 0.004982117563486099, -0.01746099628508091, -0.09740513563156128, -0.00849820114672184, -0.06592611968517303, -0.04641743376851082, -0.06875047832727432, -0.033221594989299774, 0.03896304592490196, 0.06583019345998764, -0.01690419390797615, 0.019353756681084633, 0.030424127355217934, -0.042641233652830124, 0.07384195923805237, 0.07281738519668579, 0.06808026134967804, 0.03374533727765083, 0.05712554603815079, 0.013348208740353584, -0.015621230006217957, -0.04694116860628128, 0.040958158671855927, 0.044708359986543655, 0.018912572413682938, -0.024240586906671524, 0.010654076933860779, 0.028791820630431175, -0.0695580542087555, 0.02411375753581524, 0.02956726960837841, 0.06480680406093597, -0.03770361840724945, -0.0851367861032486, 0.004474520683288574, 0.047708965837955475, -0.044831473380327225, 0.14764493703842163, -0.1261754333972931, -0.03194845840334892, -0.04329535365104675, -0.03401041030883789, 0.046621717512607574, 0.1222047209739685, 0.029419874772429466, 0.08683253824710846, -0.04723053053021431, -0.017309272661805153, -0.0546867698431015, -0.03792690485715866, -0.0056195869110524654, 0.04221454635262489, -0.02176143415272236, 0.028524475172162056, -0.03948739916086197, 0.04632611572742462, -0.00042691215639933944, 0.03492140397429466, 0.04311206564307213, 0.05330492928624153, 0.04041575640439987, 0.03692382946610451, -0.07278360426425934, 0.06508087366819382, 0.016141127794981003, 0.0036133185494691133, 0.0512467622756958, -0.033393748104572296, -0.005844448693096638, 0.05665888264775276, 0.060686782002449036, -0.01418843399733305, -0.0038017237093299627, -0.05013939365744591, -0.012312086299061775, -0.05123073607683182, 0.026731519028544426, 0.01858365163207054, -0.03602566197514534, -0.009741413407027721, -0.02064497582614422, -0.0449356846511364, 0.0073271337896585464, 0.017257826402783394, 0.039941154420375824, -0.028082750737667084, -0.013463211245834827, 0.04682318493723869, -0.008961278013885021, 0.023513220250606537, -0.03891293331980705, 0.042439211159944534, 0.00936258677393198, 0.047700610011816025, -0.013871977105736732, -0.03550757095217705, -0.04617103189229965, -0.0249860268086195, -0.018238717690110207, 0.06235393509268761, 0.03895595669746399, 0.007886570878326893, -0.007847785018384457, 0.02509627677500248, -0.034811053425073624, -0.0013485206291079521, 0.006019874941557646, 0.0504799522459507, -0.0006212960579432547, -0.04184461385011673, -0.023241784423589706, -0.04520965367555618, -0.048850711435079575, 0.025108810514211655, -0.005701466463506222, -0.022136451676487923, 0.027984878048300743, 0.014245404861867428, -0.03210783377289772, 0.005793694872409105, 0.010144860483705997, -0.023447711020708084, 0.01678321696817875, 0.023507803678512573, -0.009127956815063953, -0.08590623736381531, -0.022753968834877014, -0.05437634512782097, 0.0022436645813286304, -0.009019710123538971, -0.020361870527267456, 0.06578164547681808, -0.01426953449845314, 0.021828360855579376, 0.03365323320031166, -0.03595496341586113, 0.02855066768825054, 0.046028021723032, -0.0067244223318994045, -0.020227668806910515, -0.03470299020409584, -0.04201524332165718, 0.0026235608384013176, 0.02513369917869568, 0.016162781044840813, -0.00923608336597681, 0.05240725725889206, -0.020693497732281685, -0.0319254994392395, -0.009911253117024899, -0.05957062542438507, 0.054630205035209656, -0.00390328885987401, 0.010656345635652542, -0.020199699327349663, 0.004839981906116009, -0.027889983728528023, 0.02143973857164383, -0.004438507836312056, -0.06372296065092087, 0.02988966926932335, 0.02157645858824253, -0.023866023868322372, 0.06593231856822968, 0.01611573062837124, 0.041151754558086395, -0.04408176988363266, 0.01406823005527258, -0.0427342988550663, -0.021922500804066658, 0.006189377512782812, -0.014294267632067204, 0.013824843801558018, 0.05998438596725464, -0.018738510087132454, -0.0019098506309092045, -0.013364452868700027, 0.010702197439968586, 0.04061219096183777, 0.01885385997593403, -0.008929384872317314, 0.003996811341494322, -0.022566843777894974, -0.022962551563978195, 0.034337107092142105, -0.05005231872200966, 0.01180284470319748, -0.036498431116342545, -0.02294798195362091, -0.01635255292057991, 0.044824641197919846, 0.039328087121248245, -0.04193151369690895, 0.008110112510621548, 0.03358606621623039, 0.0096734669059515, 0.031745295971632004, -0.04086972773075104, -0.0016863236669450998, -0.04382937401533127, 0.029281679540872574, -0.03464949503540993, -0.02079620212316513, 0.06110714003443718, 0.03550193831324577, 0.03646672144532204, -0.03397560119628906, 0.030996454879641533, -0.0068437932059168816, 0.016512075439095497, -0.029786763712763786, 0.029203087091445923, -0.03133930265903473, 0.02189311385154724, 0.048636168241500854, -0.02721826359629631, -0.00806040596216917, 0.03261924907565117, -0.006134505849331617, 0.054469794034957886, 0.02332269586622715, 0.022471757605671883, 0.027550673112273216, -0.03832767531275749, 0.021032115444540977, 0.03035472147166729, -0.011697862297296524, -0.00400850223377347, 0.03298579528927803, -0.0238636564463377, 0.03684259578585625, -0.01530323177576065, -0.035614367574453354, 0.0290850643068552, 0.009201050736010075, -0.02850012108683586, -0.04333166778087616, -0.004216708708554506, -0.024842100217938423, 0.04436188191175461, -0.018164146691560745, -0.0036478594411164522, -0.00591401057317853, -0.05413324385881424, 0.002919043879956007, -0.04828682169318199, -0.018015652894973755, 0.016985829919576645, 0.01573617197573185, 0.044814158231019974, -0.012332717888057232, 0.022435467690229416, -0.023762866854667664, -0.001076909713447094, 0.05879286304116249, -0.02421930804848671, -0.010009719990193844, 0.01682809367775917, -0.01864173263311386, -0.006888932548463345, 0.026613302528858185, -0.029735449701547623, 0.01647905446588993, -0.014002347365021706, -0.0425008200109005, -0.02527007646858692, 0.0004868340620305389, 0.02529018558561802, 0.0029952586628496647, 0.0056654359214007854, -0.03564174845814705, 0.00008325064845848829, -0.003923685289919376, 0.0017715806607156992, -0.013590031303465366, 0.02616487629711628, -0.04066390171647072, -0.0027659335173666477, 0.019405437633395195, 0.03193981200456619, 0.023958196863532066, -0.02192658558487892, 0.026393860578536987, 0.05074170231819153, 0.01631854474544525, -0.02301270328462124, 0.023054955527186394, -0.049500878900289536, -0.008547848090529442, 0.021532224491238594, -0.028709031641483307, -0.0010513926390558481, 0.016776524484157562, -0.0008088930626399815, -0.00517320679500699, -0.019479718059301376, 0.025846322998404503, 0.023985611274838448, -0.0011590303620323539, -0.034468021243810654, 0.05312732607126236, 0.06065164878964424, 0.01946653425693512, 0.011521673761308193, 0.005285236053168774, -0.009777193889021873, -0.04945017024874687, 0.054874107241630554, 0.014959673397243023, 0.020431246608495712, 0.020395083352923393, 0.04508250579237938, 0.055860284715890884, 0.017271580174565315, 0.0033467859029769897, 0.005962400231510401, -0.009595165029168129, 0.013307273387908936, -0.004282550420612097, 0.007432709448039532, -0.01081195380538702, -0.030904360115528107, 0.005246749613434076, -0.016393456608057022, -0.0190740916877985, -0.016776707023382187, 0.01682790368795395, -0.05125313997268677, 0.005959335248917341, 0.014082668349146843, -0.032188646495342255, 0.0040835728868842125, -0.04120202362537384, 0.004128551110625267, -0.005466937553137541, -0.02119343914091587, -0.03481403738260269, 0.011735769920051098, -0.007887697778642178, 0.012793236412107944, -0.03736414387822151, -0.012134797871112823, 0.02247759886085987, 0.012573172338306904, 0.022592313587665558, -0.01637417823076248, -0.02146955393254757, 0.02034600079059601, -0.03628505766391754, 0.04326041787862778, -0.024723002687096596, -0.015607988461852074, 0.014467593282461166, 0.025309499353170395, 0.017061790451407433, 0.07943651080131531, -0.005531002301722765, 0.04267771169543266, 0.0059768883511424065, -0.017745155841112137, 0.03963275998830795, -0.04470410570502281, -0.012932533398270607, 0.02658349648118019, -0.0047892015427351, -0.04440375417470932, -0.03738432377576828, -0.05025835335254669, -0.06386598944664001, -0.03882111608982086, 0.0010899341432377696, 0.04928372800350189, 0.011773111298680305, -0.03115326166152954, 0.012453748844563961, 0.0018036268884316087, -0.01271647959947586, 0.024096639826893806, 0.015584832988679409, 0.014568153768777847, 0.04082011058926582, 0.06839533895254135, -0.002624571556225419, -0.013485696166753769, -0.03495684266090393, 0.01576603762805462, -0.03595678135752678, -0.020242884755134583, 0.04457297921180725, -0.03721122816205025, 0.011860078200697899, 0.025269828736782074, -0.027858449146151543, 0.02125234715640545, 0.00855802372097969, -0.00726341363042593, 0.009194239042699337, 0.04700001701712608, -0.03812919929623604, 0.011081189848482609, -0.03746317699551582, 0.006029381416738033, 0.02877655439078808, 0.030463475733995438, 0.01571546122431755, 0.025216467678546906, 0.05317399278283119, 0.07675410807132721, 0.014630024321377277, -0.005763845052570105, -0.018175199627876282, 0.08105337619781494, -0.006892427336424589, 0.034729838371276855, 0.012240028008818626, -0.06723884493112564, -0.04881554841995239, -0.004286809824407101, 0.0022590006701648235, -0.039158936589956284, 0.0005145672475919127, 0.010038706474006176, -0.01257233414798975, 0.02010253630578518, -0.009116687811911106, 0.08637286722660065, 0.02305568940937519, 0.055692289024591446, -0.0035506514832377434, 0.022240357473492622, -0.011045795865356922, -0.010547497309744358, 0.0009568677050992846, 0.02627726085484028, 0.02359187602996826, -0.04799242317676544, 0.034897688776254654, 0.02867087721824646, 0.06290054321289062, -0.00660286471247673, 0.01816057600080967, 0.028847942128777504, 0.0031697992235422134, 0.047619521617889404, -0.021167144179344177, -0.024964764714241028, 0.005210493225604296, -0.005669714417308569, 0.004404885694384575, 0.005153873935341835, -0.011901313439011574, 0.03579230234026909, 0.004076572600752115, -0.024969996884465218, -0.025737429037690163, 0.04153807833790779, 0.02788008190691471, 0.03145652636885643, 0.017897408455610275, -0.044850051403045654, -0.0153586994856596, 0.013756975531578064, 0.0005186959751881659, -0.008703775703907013, -0.006711531896144152, 0.02874915860593319, 0.01620725728571415, -0.03653939813375473, 0.031098082661628723, 0.023281356319785118, -0.006920074112713337, 0.02065255306661129, 0.0277086291462183, 0.017027098685503006, 0.010539498180150986, 0.017190933227539062, 0.04105150327086449, -0.038100939244031906, -0.011792544275522232, 0.01971282996237278, -0.017091019079089165, 0.006428015884011984, -0.04073885828256607, 0.027195358648896217, 0.009103545919060707, -0.019437940791249275, 0.024121999740600586, 0.0622384138405323, 0.002903740620240569, -0.006169480737298727, -0.018986674025654793, 0.0023496064823120832, -0.007582002319395542, 0.044067274779081345, -0.043025337159633636, -0.010348622687160969, -0.01145990937948227, -0.00341256195679307, 0.03922552615404129, 0.012540196068584919, -0.015412557870149612, 0.057217132300138474, 0.012054541148245335, -0.005826546344906092, 0.031331438571214676, 0.06604873389005661, 0.021406754851341248, 0.06282822042703629, 0.004492098465561867, 0.004130118060857058, -0.00791019294410944, -0.0021902895532548428, 0.041391756385564804, -0.04457482695579529, 0.01951465755701065, -0.01651233807206154, -0.01868532970547676, -0.013883566483855247, 0.01880892552435398, 0.006242734380066395, 0.05425981804728508, -0.04208216071128845, 0.01990511082112789, -0.01693190634250641, -0.026441341266036034, 0.01674043945968151, 0.0025403767358511686, 0.03644825518131256, 0.0015331299509853125, 0.007266481872648001, -0.01641601137816906, 0.028716348111629486, 0.027212044224143028, -0.016311924904584885, 0.044663943350315094, 0.023484453558921814, -0.023670995607972145, -0.024560341611504555, -0.02225622348487377, -0.007682168856263161, 0.026602990925312042, -0.02188180945813656, 0.003643833799287677, 0.017377791926264763, -0.022564539685845375, 0.004788059275597334, -0.008139170706272125, 0.003314132569357753, -0.036922160536050797, 0.01954628899693489, -0.03604139760136604, 0.010947818867862225, 0.012388919480144978, -0.005413778126239777, -0.06832864880561829, -0.017778445035219193, 0.005450320430099964, -0.02024218812584877, 0.011060523800551891, 0.019531022757291794, 0.011628628708422184, -0.015363129787147045, 0.06994003802537918, 0.01783677376806736, 0.007571246474981308, -0.033947937190532684, -0.024286145344376564, -0.025975674390792847, 0.008685660548508167, -0.01934616081416607, -0.02000202052295208, -0.01876441389322281, 0.009398904629051685, -0.017912736162543297, -0.011061294004321098, -0.018378471955657005, -0.00787662249058485, 0.012920374050736427, 0.005455239210277796, 0.0012090136297047138, 0.03370656073093414, 0.0650031641125679, -0.01103601697832346, -0.011768242344260216, -0.024603193625807762 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Conclusion In this blog post, we showcased four optimisation methods that are available out of the box with 🧨 Diffusers, taking the generation time of AudioLDM 2 from 14 seconds down to less than 1 second. We also highlighted how to employ memory saving tricks, such as half-precision and CPU offload, to reduce peak memory usage for long audio samples or large checkpoint sizes. Blog post by Sanchit Gandhi. Many thanks to Vaibhav Srivastav and Sayak Paul for their constructive comments. Spectrogram image source: Getting to Know the Mel Spectrogram. Waveform image source: Aalto Speech Processing.
[ 0.05290108174085617, 0.04608743637800217, 0.02367323450744152, -0.07328737527132034, 0.030750326812267303, -0.050624772906303406, 0.0014601654838770628, -0.07969871163368225, -0.00391347985714674, -0.11951648443937302, 0.000980469398200512, 0.002497840905562043, 0.03667253628373146, 0.04253213107585907, 0.04319602996110916, -0.03398902714252472, -0.000543788424693048, -0.07154227048158646, 0.0374128594994545, 0.02687755413353443, 0.018075939267873764, -0.030673198401927948, 0.045639216899871826, 0.008837270550429821, -0.015809454023838043, 0.02962302789092064, -0.06601957976818085, -0.0010067911352962255, -0.03862766548991203, -0.01025842223316431, -0.09900544583797455, 0.03009236976504326, -0.043315257877111435, 0.0255334060639143, 0.02270270325243473, -0.03660197928547859, -0.0927264541387558, 0.012751013040542603, 0.0684901773929596, -0.0009263152605853975, -0.029098093509674072, -0.010568231344223022, 0.010170877911150455, 0.0330597460269928, -0.030685432255268097, -0.03177577629685402, -0.11312378197908401, -0.01694519631564617, -0.08067324012517929, 0.013771627098321915, -0.09954307973384857, 0.06718575954437256, -0.02298724092543125, 0.02382943406701088, 0.033060673624277115, 0.017950640991330147, 0.051365651190280914, 0.014378556981682777, -0.032925818115472794, -0.012315667234361172, 0.02432088553905487, -0.05526013299822807, -0.02162790857255459, -0.034928325563669205, 0.056504666805267334, -0.008034933358430862, -0.026231825351715088, -0.013060606084764004, -0.053318314254283905, -0.053222741931676865, 0.030908990651369095, 0.017256854102015495, -0.040988605469465256, -0.06327428668737411, 0.0267820842564106, 0.0027650040574371815, 0.034186217933893204, 0.023758405819535255, -0.015856212005019188, 0.039791785180568695, 0.05370938777923584, 0.0038027814589440823, 0.05461693927645683, 0.0026506877038627863, -0.04070410504937172, -0.027850134298205376, 0.07138030230998993, 0.033259645104408264, -0.05290709435939789, -0.06805815547704697, -0.013988563790917397, -0.08650879561901093, 0.008593213744461536, 0.005547105800360441, 0.022427381947636604, 0.035798218101263046, 0.00046901233145035803, 0.009836516343057156, 0.021976221352815628, 0.03397893160581589, 0.059867095202207565, -0.01905922219157219, -0.04202219098806381, -0.06973399966955185, -0.11258114129304886, 0.049738168716430664, -0.06615443527698517, -0.05579590052366257, -0.06310191005468369, 0.06621382385492325, -0.04448780044913292, 0.07885870337486267, 0.002169332467019558, 0.059791695326566696, -0.12873433530330658, -0.018039602786302567, 0.02853653021156788, 0.08995800465345383, -0.02586749941110611, 0.09334170073270798, -0.025147706270217896, 0.12016604840755463, 0.02082575298845768, -0.027845051139593124, -0.03345397487282753, 0.012683172710239887, 0.04123559221625328, 0.035381101071834564, 0.011239760555326939, 0.02682478167116642, -0.04471816495060921, -0.013768252916634083, 0.07532203942537308, -0.06323490291833878, 0.03150462731719017, -0.07366479933261871, 0.038629449903964996, -0.03456424921751022, 0.040096551179885864, 0.02198977954685688, -0.04110988229513168, 0.028753696009516716, -0.03729446604847908, -0.07479126006364822, 0.04686469957232475, -0.043975453823804855, -0.08325385302305222, -0.021808112040162086, 0.04329906776547432, -0.018831947818398476, -0.011240242049098015, 0.06958776712417603, -0.05956626683473587, -0.11236171424388885, 0.0052115400321781635, 0.03861463814973831, -0.01274663582444191, -0.04637495055794716, -0.05424317717552185, -0.028042493388056755, 0.05112545192241669, -0.010987268760800362, -0.06031320244073868, 0.02479656971991062, -0.003602601122111082, 0.0031643284019082785, -0.033423010259866714, 0.09232728183269501, 0.02965663932263851, -0.025635378435254097, 0.000058567147789290175, -0.01290755346417427, 0.061938222497701645, -0.004088146146386862, 0.00696369307115674, 0.04319972172379494, 0.09093531221151352, 0.0725274458527565, -0.01742631569504738, -0.0067196013405919075, -0.01834745891392231, -0.014135957695543766, 0.006668939720839262, 0.03443247079849243, 0.13204988837242126, -0.052425336092710495, 0.06562414020299911, -0.02278916910290718, -0.04917781054973602, -0.05039680749177933, 0.05099811777472496, -0.019625475630164146, 0.0477442741394043, -0.05094769969582558, -0.06304198503494263, -0.018460212275385857, -0.0026719856541603804, 0.07515696436166763, 0.0795125812292099, 0.039475858211517334, 0.026320993900299072, 0.06349688023328781, 0.019770845770835876, 0.024905309081077576, -0.07407624274492264, 0.018260054290294647, -0.019958214834332466, -0.04543508216738701, -0.0012856636894866824, 0.020778603851795197, -0.024403801187872887, -0.10920670628547668, -0.021216053515672684, -0.007040453143417835, -0.02441430650651455, -0.012846002355217934, -0.011439659632742405, 0.004245620220899582, 0.01996668241918087, -0.05146962031722069, 0.06777750700712204, -0.02943429909646511, -0.006765269674360752, 0.04484623670578003, -0.0041478462517261505, 0.12588490545749664, 0.08041083812713623, -0.022585656493902206, 0.04374635964632034, -0.01224405225366354, -0.03692442551255226, -0.11121439188718796, -0.029208043590188026, 0.027008716017007828, 0.018539054319262505, -0.004902202636003494, 0.04534304887056351, 0.039817437529563904, 0.029355166479945183, -0.014371737837791443, 0.009570568799972534, -0.024144502356648445, -0.043134160339832306, 0.02187652513384819, -0.02446558140218258, 0.00018276495393365622, 0.013318651355803013, 0.035027578473091125, -0.015951288864016533, 0.03671882301568985, -0.016080426052212715, 0.04141838103532791, -0.017150485888123512, -0.003363623283803463, 0.015997182577848434, 0.00927590299397707, -0.016335396096110344, -0.005347575061023235, -0.025719963014125824, 0.05168938264250755, -0.060505934059619904, -0.016063960269093513, 0.0022691083140671253, -0.03250488266348839, -0.005211085546761751, -0.03614947199821472, 0.03219858929514885, -0.00916507188230753, 0.03615167737007141, -0.032107751816511154, 0.002225305186584592, 0.0267227403819561, 0.0067220586352050304, 0.043716032058000565, -0.0102835139259696, -0.012018328532576561, -0.02735418640077114, -0.037823379039764404, 0.0017897913930937648, -0.02020515315234661, 0.0146635128185153, -0.007939591072499752, 0.06821118295192719, 0.004175086971372366, 0.012476742267608643, 0.007813431322574615, -0.04909972473978996, -0.03992324694991112, 0.010193371213972569, -0.007050463929772377, 0.02121858485043049, 0.016503408551216125, 0.016985144466161728, -0.03127770498394966, 0.0024306566920131445, 0.005678076762706041, -0.019926471635699272, -0.01787031814455986, -0.025638943538069725, -0.019490260630846024, -0.03950578346848488, -0.04229864105582237, -0.006255928426980972, -0.0018415760714560747, -0.018108002841472626, 0.002811909420415759, 0.012362836860120296, 0.027903351932764053, -0.08509598672389984, -0.008597237057983875, -0.0232533011585474, -0.03378678485751152, -0.017121870070695877, 0.011166280135512352, 0.03236405923962593, -0.06702195852994919, -0.004288750234991312, -0.028179731220006943, -0.033554527908563614, 0.06285028159618378, -0.00823990162461996, -0.0008119900594465435, -0.03473750874400139, -0.010714448057115078, -0.015985693782567978, 0.017339184880256653, -0.00812691543251276, 0.0023434727918356657, 0.01616520993411541, 0.014858219772577286, 0.03235948458313942, -0.003974705468863249, -0.03822555020451546, 0.014696306549012661, -0.024139296263456345, 0.0030949674546718597, 0.007481670938432217, -0.008221217431128025, -0.03141138330101967, -0.0021713559981435537, 0.022551709786057472, 0.04397524148225784, -0.033884916454553604, 0.006945473607629538, -0.037683531641960144, 0.0458097867667675, 0.05005014315247536, -0.011421478353440762, 0.07632765918970108, -0.018073029816150665, 0.028980936855077744, 0.006580917164683342, -0.03655924275517464, -0.009454603306949139, 0.023163657635450363, -0.02662050724029541, 0.044986482709646225, -0.01504012942314148, -0.025094257667660713, -0.014677620492875576, 0.031419768929481506, 0.004539920948445797, 0.008369848132133484, -0.005241856910288334, 0.00032155527151189744, 0.06891690939664841, 0.051863327622413635, 0.007992705330252647, -0.009507599286735058, -0.006657205987721682, -0.015779443085193634, 0.024862555786967278, 0.00618008291348815, 0.04455675929784775, 0.03415010869503021, -0.003416404128074646, -0.024577569216489792, 0.05161365121603012, 0.01826261170208454, 0.056901752948760986, 0.008152751252055168, -0.003489443566650152, -0.029399726539850235, 0.0544566810131073, 0.013236550614237785, 0.0243673212826252, 0.04412687569856644, 0.059019073843955994, -0.02883961610496044, 0.0025878092274069786, -0.009043358266353607, -0.04484187811613083, -0.015129352919757366, 0.00020101151312701404, -0.017171625047922134, 0.02187860943377018, 0.06233218312263489, -0.013063481077551842, -0.000328427558997646, -0.02059277519583702, -0.00986833032220602, -0.04667961969971657, 0.009596453979611397, -0.03357653692364693, -0.014810949563980103, 0.030873693525791168, 0.012771843932569027, -0.02563226781785488, 0.02476884052157402, -0.019201038405299187, 0.0009562899358570576, -0.01512526348233223, -0.012077146209776402, -0.03314022719860077, -0.03319422900676727, 0.01632259599864483, 0.012975768186151981, 0.01573259010910988, -0.03466595336794853, -0.012520086020231247, -0.015550986863672733, 0.019208431243896484, 0.014674196019768715, -0.005190102383494377, -0.05263284593820572, 0.03796425089240074, -0.0000660227524349466, 0.012310759164392948, -0.024056587368249893, 0.009445485658943653, 0.041319966316223145, 0.0045760259963572025, 0.07775797694921494, 0.06129654124379158, -0.03264901041984558, -0.0020490114111453295, -0.00014302249473985285, 0.009007660672068596, -0.0044275266118347645, -0.025271009653806686, 0.06477072089910507, 0.044404931366443634, 0.01488470658659935, -0.006506983656436205, -0.04377876967191696, 0.04130510613322258, 0.02428537607192993, 0.005518644116818905, 0.013360194861888885, -0.043773699551820755, 0.05532414838671684, -0.05106440931558609, -0.008382710628211498, 0.02763473615050316, 0.044960081577301025, -0.0023972494527697563, 0.01054207794368267, -0.030407821759581566, 0.061459124088287354, 0.0016940623754635453, -0.021616360172629356, -0.04494043067097664, 0.020357666537165642, 0.017819508910179138, -0.02606208249926567, -0.020055877044796944, 0.0040130908600986, 0.02420017309486866, -0.003392667043954134, 0.03964750096201897, -0.02991720288991928, 0.02512568049132824, 0.007486078888177872, -0.010785571299493313, 0.021129140630364418, 0.0186648927628994, 0.01713504269719124, -0.0064212423749268055, 0.05539066717028618, 0.037420086562633514, 0.010072977282106876, -0.019872965291142464, 0.018727706745266914, 0.017481757327914238, 0.013036916963756084, 0.014116323553025723, -0.014917572028934956, -0.00940011814236641, -0.049776919186115265, 0.020593693479895592, 0.03267000988125801, -0.00013709429185837507, 0.019413156434893608, 0.0325329564511776, 0.018841302022337914, 0.025006020441651344, 0.027416495606303215, 0.003920360933989286, -0.014559522271156311, -0.018129682168364525, 0.013753012754023075, -0.03002047911286354, 0.018757931888103485, -0.04461276903748512, -0.012710172683000565, 0.02183437906205654, -0.04679512232542038, 0.027042299509048462, 0.057022739201784134, 0.017945924773812294, -0.021106868982315063, -0.027254469692707062, -0.03222336992621422, 0.03547271713614464, 0.019890261813998222, 0.014879897236824036, -0.008977951481938362, -0.003477235557511449, -0.013228408992290497, -0.038350049406290054, -0.03591826930642128, -0.0011654045665636659, -0.0027208738029003143, 0.005481922999024391, -0.015652451664209366, 0.024335600435733795, 0.01804506406188011, 0.032660048454999924, 0.020636415109038353, -0.001569295534864068, -0.03489929437637329, 0.019442299380898476, -0.006524892058223486, -0.027609355747699738, 0.0005462408298626542, -0.012781936675310135, -0.018389392644166946, 0.032068997621536255, -0.0069677443243563175, 0.0020393957383930683, 0.023361796513199806, 0.07244992256164551, -0.007009556051343679, 0.0007768077775835991, -0.05576419085264206, 0.009103368036448956, 0.011440797708928585, 0.03885183483362198, -0.0215477105230093, -0.00905303843319416, -0.015125486999750137, 0.01377025991678238, -0.062305107712745667, 0.04827040806412697, -0.030351541936397552, -0.022949226200580597, -0.03932935744524002, 0.018499113619327545, -0.00576728954911232, -0.02268904447555542, -0.023782722651958466, -0.022766554728150368, 0.009966474957764149, 0.04786815121769905, 0.011375152505934238, -0.024906804785132408, 0.010339967906475067, -0.03313376381993294, -0.018161246553063393, -0.030569687485694885, 0.03526904433965683, -0.004494498949497938, -0.03947029635310173, 0.02684844098985195, 0.006429417058825493, -0.02310226298868656, 0.006805470213294029, 0.013339419849216938, -0.011324136517941952, -0.01941961608827114, 0.0070521957240998745, 0.015582690015435219, -0.008538465946912766, -0.029596010223031044, 0.010938568972051144, 0.06162790581583977, 0.03803442791104317, 0.029144473373889923, 0.058632150292396545, 0.014110742136836052, 0.06625629961490631, -0.01996007189154625, 0.01168019138276577, 0.031026780605316162, 0.0192012507468462, 0.018044792115688324, 0.020959146320819855, -0.030303562059998512, 0.003220020094886422, 0.0045778388157486916, -0.01600876823067665, -0.011419875547289848, -0.04850346967577934, -0.0076975151896476746, 0.01520618051290512, -0.0018777538789436221, -0.02170971781015396, -0.058864984661340714, 0.0776536837220192, 0.012813788838684559, 0.029538240283727646, -0.03401484340429306, -0.003211936680600047, -0.0011772174621000886, 0.028499580919742584, -0.019420016556978226, -0.03524656966328621, -0.0010199443204328418, 0.0033364477567374706, 0.06326530128717422, 0.03675828129053116, 0.004504416603595018, 0.03552962467074394, -0.01962774619460106, 0.04623635113239288, -0.017318345606327057, 0.05264018476009369, -0.020002510398626328, 0.023626890033483505, -0.08304541558027267, 0.0006485123303718865, -0.025957338511943817, -0.05636245384812355, 0.04288022220134735, 0.02609841525554657, -0.0041158366948366165, 0.03337998315691948, 0.027477430179715157, 0.04263820871710777, 0.00629101786762476, 0.029640765860676765, -0.00537016661837697, 0.00036654475843533874, -0.03174179419875145, -0.00055197614710778, 0.014541313983500004, -0.01210935227572918, -0.03887167572975159, 0.06498722732067108, 0.048453714698553085, 0.05077045410871506, -0.008860766887664795, 0.0012447115732356906, -0.0005105803138576448, -0.012142021209001541, 0.01534476038068533, -0.006574434693902731, 0.006344336085021496, -0.00801786407828331, 0.007974857464432716, -0.02820974960923195, 0.03341381996870041, 0.02565428428351879, 0.030270801857113838, 0.00952861923724413, -0.005611702799797058, -0.03623814508318901, 0.000794741150457412, 0.01966286078095436, 0.028625953942537308, 0.021908201277256012, 0.02017790824174881, -0.041963692754507065, -0.05133826285600662, 0.01180928386747837, -0.03098982758820057, 0.0190513264387846, 0.010192040354013443, -0.0038123431149870157, -0.03998488932847977, -0.04749322310090065, 0.014484736137092113, -0.007597933057695627, 0.007186353672295809, 0.02946075238287449, -0.019458666443824768, 0.019769111648201942, 0.0016696825623512268, 0.036436792463064194, -0.009412799961864948, 0.004210444632917643, 0.03818165883421898, 0.017489973455667496, 0.009106611832976341, -0.04922362416982651, 0.016934039071202278, -0.022741176187992096, 0.028949322178959846, -0.013525048270821571, -0.014917434193193913, 0.0007512838928960264, 0.0038539522793143988, 0.009749294258654118, -0.013756027445197105, -0.003598438110202551, -0.08387189358472824, -0.040455762296915054, -0.012580211274325848, -0.04198092222213745, 0.006876020692288876, 0.027302967384457588, 0.02689574658870697, 0.013534112833440304, 0.044648271054029465, -0.0026337665040045977, -0.011770934797823429, -0.024532321840524673, 0.044043779373168945, 0.02486894652247429, 0.009646182879805565, -0.021004661917686462, -0.048482585698366165, 0.008102190680801868, 0.0019108522683382034, -0.05478404462337494, 0.00491289934143424, -0.023189246654510498, -0.03871080279350281, -0.005133367609232664, 0.018229248002171516, -0.0032427164260298014, -0.0077397325076162815, 0.0852043554186821, 0.01196085661649704, -0.031091637909412384, 0.048811547458171844, 0.04276178032159805, -0.05420631915330887, -0.020666124299168587, 0.04366308078169823, 0.00896543450653553, -0.02370544523000717, -0.015480061061680317, -0.005234370473772287, 0.013518360443413258, -0.036925237625837326, 0.03802840784192085, 0.007593118119984865, -0.00576667208224535, 0.0046304333955049515, -0.011906384490430355, 0.0058464729227125645, -0.003949152305722237, -0.04828169569373131, -0.013567648828029633, -0.026389719918370247, 0.05415453389286995, -0.033610276877880096, -0.0021653359290212393, -0.021764831617474556, 0.04244469478726387, 0.020699122920632362, 0.0001744777400745079, 0.040245138108730316, 0.061126936227083206, 0.01615261659026146, 0.013115781359374523, -0.015390385873615742 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Optimisation 1: Flash Attention PyTorch 2.0 and upwards includes an optimised and memory-efficient implementation of the attention operation through the torch.nn.functional.scaled_dot_product_attention (SDPA) function. This function automatically applies several in-built optimisations depending on the inputs, and runs faster and more memory-efficient than the vanilla attention implementation. Overall, the SDPA function gives similar behaviour to flash attention, as proposed in the paper Fast and Memory-Efficient Exact Attention with IO-Awareness by Dao et. al. These optimisations will be enabled by default in Diffusers if PyTorch 2.0 is installed and if torch.nn.functional.scaled_dot_product_attention is available. To use it, just install torch 2.0 or higher as per the official instructions, and then use the pipeline as is 🚀 python audio = pipe(prompt, negative_prompt=negative_prompt, generator=generator.manual_seed(0)).audios[0] Output: 100%|███████████████████████████████████████████| 200/200 [00:12<00:00, 16.60it/s] For more details on the use of SDPA in diffusers, refer to the corresponding documentation.
[ 0.0688442587852478, 0.03660992905497551, 0.03073028475046158, -0.00028314441442489624, -0.04951752722263336, -0.003177936188876629, 0.03480637073516846, 0.04246845468878746, 0.014459948986768723, -0.0631478801369667, -0.030031027272343636, 0.04940788820385933, -0.031347792595624924, 0.0054215979762375355, -0.01499488390982151, 0.009552349336445332, 0.06690962612628937, -0.006830899510532618, -0.026419231668114662, 0.07713261991739273, 0.04080796241760254, -0.025614148005843163, 0.023554611951112747, -0.010494386777281761, -0.03298671916127205, -0.012776792049407959, -0.005844200495630503, 0.020342709496617317, -0.07983605563640594, -0.008198254741728306, -0.0735773891210556, 0.009456508792936802, 0.1004326120018959, -0.016968926414847374, 0.03174033761024475, 0.00770840048789978, -0.08893902599811554, 0.028791407123208046, 0.012924334034323692, -0.028368618339300156, -0.05001000687479973, -0.04018896445631981, -0.09875964373350143, 0.010648812167346478, -0.015318221412599087, -0.008223744109272957, -0.069241464138031, 0.03210702911019325, -0.06258115917444229, 0.01715913414955139, -0.10500490665435791, 0.07292449474334717, -0.03557679057121277, -0.030537230893969536, 0.02018933929502964, 0.03460758179426193, -0.036723483353853226, 0.036928653717041016, 0.028073474764823914, -0.03104245290160179, 0.024605199694633484, -0.034265343099832535, -0.03466513752937317, 0.045024942606687546, 0.05276615545153618, -0.008333955891430378, 0.04236116260290146, 0.021110184490680695, -0.02281130664050579, -0.052336085587739944, 0.08921124786138535, -0.0022947858087718487, -0.02175605483353138, 0.004978293552994728, -0.0762300118803978, -0.05262823402881622, 0.06305866688489914, 0.023323187604546547, 0.008198927156627178, 0.044126830995082855, 0.04390764236450195, 0.04246467351913452, 0.09805327653884888, 0.018908174708485603, 0.03558342903852463, 0.0170790646225214, 0.05065254122018814, -0.06418716907501221, -0.03738638758659363, -0.0507727675139904, -0.03669150918722153, -0.022643206641077995, 0.040332019329071045, -0.018395105376839638, 0.02427615597844124, 0.061256010085344315, -0.029538020491600037, -0.0399189367890358, 0.019608603790402412, 0.0022817032877355814, 0.018782448023557663, -0.10673768073320389, 0.02820385992527008, -0.023865586146712303, -0.03214649111032486, 0.0836230218410492, -0.024541888386011124, -0.04041061922907829, -0.0387779138982296, 0.08687332272529602, -0.06722689419984818, 0.052991561591625214, 0.010750750079751015, 0.02186020091176033, -0.011148354038596153, -0.08845788985490799, -0.07986665517091751, 0.08713176846504211, -0.0239421259611845, 0.035354774445295334, 0.0027281097136437893, 0.049536045640707016, 0.04334147274494171, 0.033712465316057205, -0.002452930435538292, 0.029752524569630623, 0.03571499511599541, 0.08222668617963791, 0.00510071637108922, -0.0006557168089784682, 0.0010378464357927442, -0.04434818774461746, 0.031914401799440384, 0.0018356770742684603, -0.0013602495891973376, -0.0502476803958416, -0.018297985196113586, -0.04437713325023651, -0.005018230527639389, -0.0010385499335825443, 0.001554543967358768, 0.05284014344215393, -0.0018794296775013208, -0.05365089327096939, 0.05542807653546333, -0.05361749976873398, -0.11017147451639175, 0.03155287355184555, 0.02729920484125614, 0.025898568332195282, -0.038481418043375015, 0.042574234306812286, -0.044945236295461655, -0.05569984018802643, -0.10408610850572586, 0.032533079385757446, 0.027568040415644646, -0.04882322996854782, -0.09489534795284271, -0.0063349418342113495, 0.06773919612169266, 0.002803723094984889, -0.019112616777420044, -0.023494049906730652, -0.0167375598102808, 0.03627603128552437, 0.03569481894373894, 0.05391953885555267, -0.009995978325605392, -0.010485381819307804, 0.07442591339349747, 0.05588666722178459, 0.061161309480667114, 0.014829174615442753, -0.021628307178616524, -0.004357202909886837, 0.028427762910723686, 0.05353625863790512, -0.010471700690686703, -0.04110173135995865, -0.03365395963191986, 0.08326133340597153, 0.020891977474093437, 0.10706358402967453, 0.038415975868701935, -0.09114117175340652, 0.08973078429698944, -0.005858124699443579, -0.026293838396668434, -0.00860519427806139, -0.0228038989007473, -0.009565696120262146, -0.013560337945818901, -0.07337358593940735, 0.007207592483609915, -0.02926560305058956, -0.0369904488325119, 0.047021977603435516, 0.045135170221328735, -0.021077878773212433, 0.015058981254696846, 0.006985989864915609, 0.01168545987457037, 0.02236192114651203, 0.045752424746751785, -0.03922039642930031, -0.005676000379025936, -0.03091556765139103, 0.026356760412454605, -0.006789282895624638, -0.014251910150051117, -0.10187731683254242, -0.00471449876204133, -0.04796592518687248, -0.03198545053601265, 0.0055218106135725975, -0.01816224865615368, 0.04089512303471565, 0.024229208007454872, 0.0020448355935513973, 0.05069839954376221, -0.03449086472392082, 0.008083617314696312, 0.0006746115395799279, -0.031816013157367706, 0.09423825889825821, 0.07750526070594788, 0.01745118945837021, 0.038730964064598083, -0.0537041537463665, -0.04061564803123474, -0.04922154173254967, -0.054123345762491226, 0.06636262685060501, -0.04157255217432976, -0.05635775253176689, -0.019244354218244553, 0.10062725841999054, -0.028225764632225037, -0.04062696546316147, 0.02340036630630493, 0.031650952994823456, -0.030233843252062798, 0.03255797177553177, -0.006178522482514381, 0.011204847134649754, 0.009041965007781982, 0.001290780957788229, 0.007252030074596405, 0.019624581560492516, -0.042378105223178864, 0.07878033071756363, -0.003211035393178463, -0.055587880313396454, 0.025668764486908913, 0.03508089855313301, -0.010587582364678383, -0.007844161242246628, -0.0034062687773257494, 0.047426145523786545, 0.03609674423933029, 0.023541154339909554, 0.009613033384084702, 0.0010272470535710454, -0.025744369253516197, -0.06572484970092773, 0.030033215880393982, 0.008654048666357994, 0.013055353425443172, 0.010978888720273972, -0.009500176645815372, 0.04355412721633911, 0.023573903366923332, 0.023807568475604057, -0.035832442343235016, 0.02878972887992859, 0.07056666165590286, -0.0648987889289856, -0.025416890159249306, -0.04508456960320473, -0.028838226571679115, -0.021170180290937424, 0.036604948341846466, 0.019070196896791458, 0.00795071478933096, 0.01789124682545662, -0.014203961007297039, 0.018650023266673088, -0.023195192217826843, 0.025827407836914062, -0.025995735079050064, -0.009177393279969692, 0.044903095811605453, -0.015084592625498772, -0.027983974665403366, 0.026513274759054184, -0.06514327973127365, -0.022627562284469604, -0.026155972853302956, 0.002889595925807953, -0.009346705861389637, -0.00925025437027216, -0.018784433603286743, -0.009676485322415829, -0.036965154111385345, -0.04685916751623154, -0.035033512860536575, 0.002538467990234494, -0.07119182497262955, 0.023212134838104248, -0.0297847967594862, -0.02608950436115265, 0.020910292863845825, -0.019109191372990608, 0.012690435163676739, 0.027716554701328278, -0.025900429114699364, 0.0017376739997416735, -0.03792016580700874, 0.018618391826748848, -0.046550557017326355, 0.02204938232898712, -0.02192004956305027, 0.0030680641066282988, 0.027571873739361763, -0.018559055402874947, 0.02327156998217106, -0.007688705809414387, 0.015412969514727592, 0.018349768593907356, -0.018106609582901, -0.04604445770382881, -0.028266120702028275, 0.00726710120216012, 0.007204730529338121, -0.010158335790038109, 0.02612392231822014, 0.0034734616056084633, -0.031447526067495346, -0.04679098725318909, 0.039171237498521805, 0.043159548193216324, -0.02169262245297432, 0.01512999553233385, -0.015186966396868229, -0.033485520631074905, 0.0055183726362884045, 0.004934349097311497, 0.011278409510850906, -0.023904383182525635, 0.016516495496034622, -0.0031639328226447105, 0.0649251639842987, -0.0402110256254673, -0.007531856652349234, -0.03045048378407955, 0.06558722257614136, -0.040436673909425735, -0.06590038537979126, -0.02536623552441597, -0.001352256047539413, 0.03569452464580536, -0.009724169038236141, 0.01892973855137825, 0.005691065918654203, 0.02512323670089245, 0.050681643187999725, 0.03339263051748276, -0.007621064782142639, 0.039403583854436874, 0.021668018773198128, 0.001956840045750141, -0.04069378599524498, 0.030433759093284607, 0.015141976997256279, -0.05751625448465347, -0.029627762734889984, 0.03142848610877991, 0.008598024956882, 0.054045360535383224, 0.055625174194574356, -0.0013283392181620002, 0.0003459721338003874, 0.04382407292723656, 0.0426306426525116, 0.018887052312493324, 0.010450843721628189, 0.01704493537545204, -0.02046525664627552, -0.00877912063151598, -0.011963621713221073, -0.03016408160328865, 0.03516359254717827, 0.01838774047791958, -0.003910164814442396, -0.044521939009428024, 0.04657828435301781, -0.0649007186293602, -0.0003141380148008466, -0.0034739470575004816, -0.00019109250570181757, -0.07414321601390839, -0.069673553109169, -0.01502192858606577, 0.007496446371078491, -0.0005354036693461239, -0.0005415730411186814, 0.015666740015149117, -0.0002881292311940342, -0.04075385257601738, -0.043105460703372955, 0.029588116332888603, 0.00019689729379024357, -0.007235561031848192, -0.06773651391267776, 0.007842459715902805, 0.016929129138588905, -0.02381172403693199, -0.011015386320650578, 0.0282692089676857, -0.01173224113881588, 0.01448750589042902, 0.020538967102766037, 0.07044696062803268, 0.019163960590958595, -0.004920657258480787, -0.08883842080831528, -0.005743100307881832, -0.0420895554125309, 0.00856261607259512, 0.0032051533926278353, -0.042483050376176834, 0.0942331999540329, 0.04058227688074112, 0.03030095435678959, 0.01416851207613945, 0.01971154287457466, -0.029830554500222206, -0.0036217740271240473, 0.003011711174622178, -0.00765649788081646, 0.037256188690662384, 0.015378315933048725, -0.037704408168792725, -0.03813057020306587, 0.02773117646574974, -0.008840163238346577, -0.008802066557109356, 0.027571015059947968, -0.033513929694890976, 0.0747501477599144, -0.01795576512813568, -0.023605503141880035, 0.016841018572449684, -0.001201133243739605, 0.03364302217960358, -0.038065455853939056, 0.008769161067903042, 0.04932219907641411, -0.016858868300914764, -0.005494933109730482, -0.015182792209088802, 0.07293428480625153, -0.02422410063445568, -0.021055232733488083, -0.021686190739274025, 0.025027567520737648, 0.020771585404872894, 0.008093145675957203, 0.012887828052043915, -0.035920362919569016, 0.046312879770994186, 0.04789791628718376, -0.006817879620939493, -0.017770975828170776, -0.041715171188116074, 0.024394311010837555, -0.03388693928718567, 0.015939868986606598, -0.004934950266033411, -0.0093871233984828, -0.005129672586917877, 0.04033232852816582, -0.0208719652146101, 0.048135772347450256, 0.057615455240011215, -0.033147938549518585, -0.0055818404071033, 0.012381110340356827, -0.014263053424656391, 0.0115780895575881, 0.02109336666762829, 0.024879729375243187, 0.0612175427377224, -0.027195196598768234, 0.06927710771560669, 0.032637644559144974, -0.014091885648667812, -0.016255678609013557, -0.002156074857339263, -0.04383508861064911, 0.009615866467356682, 0.04596738889813423, -0.03621192276477814, -0.07417387515306473, 0.06027493253350258, -0.012767736800014973, 0.013954944908618927, 0.036892350763082504, 0.0024877258110791445, -0.008918272331357002, -0.048578426241874695, -0.01517454907298088, 0.03719695657491684, 0.005813506431877613, 0.01251587551087141, -0.016593197360634804, -0.06386958062648773, 0.02454100176692009, -0.029807675629854202, -0.024993281811475754, -0.021554892882704735, -0.000516897882334888, -0.038017962127923965, -0.03444783017039299, -0.004094727803021669, -0.0016428608214482665, 0.037935346364974976, 0.008404053747653961, -0.015495643950998783, -0.01222248375415802, 0.07204259932041168, -0.001479652477428317, -0.03971481695771217, 0.02510729432106018, 0.04398772865533829, -0.028738990426063538, 0.028567994013428688, 0.003996145911514759, 0.04967363551259041, 0.016547923907637596, 0.049313317984342575, 0.0020801136270165443, -0.02540084533393383, -0.035207051783800125, 0.03100823424756527, 0.008083301596343517, 0.02600179612636566, -0.009416383691132069, 0.004853090271353722, -0.016487253829836845, 0.016128677874803543, -0.04277011752128601, 0.024745486676692963, 0.03571933135390282, -0.044552259147167206, 0.004011551383882761, -0.044602543115615845, 0.04452439025044441, -0.012665549293160439, -0.08040113747119904, 0.009157056920230389, 0.000039169328374555334, -0.0022804387845098972, 0.011717471294105053, 0.005930331069976091, 0.08067131042480469, 0.00418445747345686, 0.027648484334349632, -0.042857974767684937, 0.009428726509213448, 0.011629709973931313, 0.0030191969126462936, 0.022919276729226112, -0.002114689676091075, -0.02632562257349491, 0.011873788200318813, 0.03719298541545868, 0.014660329557955265, -0.01063845306634903, -0.006830242928117514, -0.025762027129530907, -0.04913124814629555, -0.00670512393116951, -0.02693927474319935, 0.011075908318161964, -0.01136682741343975, 0.031830571591854095, 0.04516160860657692, 0.0361425019800663, 0.011040288023650646, -0.0317789763212204, 0.02240213006734848, -0.0023244747426360846, 0.07634440809488297, -0.01714775711297989, 0.008166033774614334, 0.004276488441973925, -0.0032903295941650867, 0.04360893741250038, -0.031863708049058914, -0.011882673017680645, -0.004131661728024483, -0.022227684035897255, 0.05713857710361481, -0.01999496854841709, 0.010677099227905273, -0.050299882888793945, 0.04943223297595978, -0.04731316119432449, 0.026730066165328026, 0.0019411356188356876, -0.020831076428294182, -0.009545812383294106, 0.03492768108844757, 0.003645804710686207, -0.006227412261068821, -0.0005639896262437105, 0.0029884199611842632, -0.006706125568598509, 0.023117806762456894, -0.002553318627178669, 0.0076330434530973434, -0.04172497242689133, -0.009006472304463387, -0.0589977502822876, -0.018420180305838585, 0.03335518762469292, 0.03625737130641937, -0.029732612892985344, -0.013165255077183247, -0.02053619734942913, -0.01834796369075775, -0.009003800339996815, 0.004079732112586498, -0.0203274954110384, 0.012927630916237831, -0.007837259210646152, 0.020689358934760094, 0.0017703238409012556, 0.013828342780470848, 0.00536000682041049, -0.03925411403179169, -0.0043803490698337555, 0.0643056258559227, 0.005495950113981962, -0.04426473379135132, -0.028369000181555748, -0.011820480227470398, 0.010376611724495888, -0.005756675731390715, 0.019277531653642654, -0.000037580084608634934, 0.00007530365837737918, 0.0334821417927742, -0.05786438658833504, -0.04359782487154007, 0.017441000789403915, 0.02057122066617012, 0.030103346332907677, -0.01125346403568983, 0.00608082814142108, 0.021032780408859253, -0.03112955205142498, 0.020602231845259666, 0.03719151392579079, -0.004239512141793966, 0.013720802031457424, 0.03954659402370453, 0.006102117709815502, -0.00020290471729822457, -0.02428765594959259, 0.0013322271406650543, -0.027533933520317078, 0.01887938752770424, -0.04617754742503166, 0.00022004882339388132, 0.046263232827186584, 0.03839622437953949, 0.02225511148571968, -0.07764463126659393, -0.01050010696053505, 0.05410228297114372, 0.01914050616323948, 0.014813030138611794, 0.06166832149028778, 0.026947451755404472, 0.0038188069593161345, 0.07636239379644394, 0.05120977386832237, -0.012769106775522232, 0.05451739579439163, -0.03589234873652458, 0.012781374156475067, -0.03528078645467758, -0.00777932396158576, -0.03808319568634033, -0.03256826102733612, -0.010770019143819809, -0.0007455534650944173, 0.009997879154980183, 0.05705951526761055, -0.0022569955326616764, -0.004779672250151634, -0.0317789763212204, -0.008807792328298092, -0.026155102998018265, 0.0008203586912713945, -0.020591048523783684, 0.024792209267616272, 0.05711952596902847, 0.05700834468007088, 0.03214997425675392, 0.004264159593731165, -0.06585952639579773, -0.0015549500240013003, -0.017293553799390793, -0.0017599709099158645, 0.047517500817775726, 0.015512646175920963, -0.030135879293084145, -0.06288675218820572, -0.004606539849191904, 0.015039033256471157, -0.016559846699237823, -0.0058307466097176075, -0.011970498599112034, -0.055870357900857925, -0.00934548769146204, 0.008103269152343273, 0.0006852901424281299, -0.009656073525547981, 0.03656464442610741, 0.014281651936471462, -0.025445889681577682, 0.01475186925381422, -0.039544299244880676, -0.029820524156093597, -0.0036294711753726006, 0.04360039159655571, -0.002400684868916869, 0.02947905659675598, 0.024800797924399376, 0.014066692441701889, -0.011723463423550129, 0.007569505833089352, 0.006509920582175255, -0.037916235625743866, -0.02918832190334797, -0.032004214823246, 0.03217456862330437, -0.0036311049479991198, -0.030289404094219208, -0.03081716038286686, -0.018502134829759598, -0.013609246350824833, -0.020903723314404488, 0.008901738561689854, -0.03201312944293022, 0.025945929810404778, 0.019578689709305763, 0.022176280617713928, -0.012509308755397797, 0.041866838932037354, 0.02572433091700077, -0.015346022322773933, 0.018994001671671867, -0.016501374542713165 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
# AudioLDM 2, but faster ⚡️ AudioLDM 2 was proposed in AudioLDM 2: Learning Holistic Audio Generation with Self-supervised Pretraining by Haohe Liu et al. AudioLDM 2 takes a text prompt as input and predicts the corresponding audio. It can generate realistic sound effects, human speech and music. While the generated audios are of high quality, running inference with the original implementation is very slow: a 10 second audio sample takes upwards of 30 seconds to generate. This is due to a combination of factors, including a deep multi-stage modelling approach, large checkpoint sizes, and un-optimised code. In this blog post, we showcase how to use AudioLDM 2 in the Hugging Face 🧨 Diffusers library, exploring a range of code optimisations such as half-precision, flash attention, and compilation, and model optimisations such as scheduler choice and negative prompting, to reduce the inference time by over 10 times, with minimal degradation in quality of the output audio. The blog post is also accompanied by a more streamlined Colab notebook, that contains all the code but fewer explanations. Read to the end to find out how to generate a 10 second audio sample in just 1 second!
[ 0.0115311648696661, -0.021559759974479675, 0.023015255108475685, -0.04465165734291077, 0.019412212073802948, -0.011434623040258884, 0.035502079874277115, -0.04220784455537796, 0.00123065325897187, -0.08350729197263718, -0.051905591040849686, -0.003866814076900482, 0.012379270978271961, 0.03541039675474167, 0.03529694303870201, -0.0714695006608963, 0.011027746833860874, -0.021654250100255013, -0.0348735935986042, 0.005374688655138016, -0.007740529254078865, -0.013704607263207436, 0.060249872505664825, 0.048512399196624756, -0.0467132069170475, -0.009032861329615116, 0.021397480741143227, -0.04198203980922699, -0.023706994950771332, -0.036198727786540985, -0.10660405457019806, -0.0017375015886500478, 0.0009116220171563327, 0.033982742577791214, 0.049546629190444946, 0.008739238604903221, -0.11831827461719513, 0.009546504355967045, 0.09103553742170334, -0.019006332382559776, -0.03448331728577614, 0.007597770541906357, -0.021232301369309425, 0.005384853575378656, -0.024946510791778564, -0.06156499683856964, -0.08241276443004608, -0.02086486481130123, -0.10807199031114578, 0.02561154030263424, -0.0715826228260994, 0.05812981724739075, -0.024573279544711113, -0.01358511857688427, 0.03312104940414429, 0.0020590706262737513, 0.03293699398636818, -0.024201812222599983, -0.0038976669311523438, 0.026423120871186256, 0.0009352710330858827, -0.049829546362161636, -0.06706187129020691, 0.007490135729312897, 0.023401455953717232, -0.012112109921872616, -0.023848649114370346, 0.005281440913677216, -0.038124311715364456, -0.03913731500506401, 0.039590928703546524, 0.04920727014541626, -0.06439371407032013, -0.06419780850410461, 0.027649670839309692, -0.020318057388067245, 0.011157889850437641, -0.0019073403673246503, -0.0052397889085114, 0.03589719906449318, -0.006090891547501087, -0.02286522276699543, 0.060731932520866394, -0.011503897607326508, -0.04429658129811287, 0.03551547974348068, 0.011139040812849998, -0.010591442696750164, -0.09996280074119568, -0.001848880434408784, -0.04911162704229355, -0.10463850945234299, -0.00601159455254674, -0.005552082788199186, 0.019279908388853073, 0.09688276797533035, -0.0004455222515389323, -0.0012615134473890066, -0.02000490576028824, 0.02819315902888775, 0.05531059205532074, -0.08456619083881378, 0.033501993864774704, -0.056181177496910095, -0.09554663300514221, 0.09173266589641571, -0.09864192456007004, -0.04688340425491333, -0.06522525101900101, 0.05586030334234238, 0.007307092659175396, 0.03643707558512688, 0.04385723918676376, 0.03234732523560524, -0.12441448122262955, 0.007107711862772703, -0.007622774224728346, 0.06300392746925354, -0.028574034571647644, 0.056973300874233246, -0.06818778067827225, 0.04668188840150833, 0.03353418409824371, -0.0633404552936554, -0.013630431145429611, 0.08503905683755875, 0.010017216205596924, 0.041947539895772934, 0.008388262242078781, 0.05381976440548897, -0.02489330619573593, -0.023539219051599503, 0.045207563787698746, -0.03364390879869461, 0.031790345907211304, -0.0332283154129982, 0.004235147498548031, -0.06702975183725357, 0.07184241712093353, 0.004919028375297785, 0.009029816836118698, 0.055426038801670074, -0.004039722960442305, -0.07157763838768005, 0.05045666545629501, -0.043444447219371796, -0.10554124414920807, 0.036973290145397186, -0.011677540838718414, 0.028707507997751236, -0.06548318266868591, 0.07158739119768143, -0.07344017177820206, -0.10199429839849472, -0.05195217579603195, 0.06768812984228134, 0.01844828762114048, -0.06559974700212479, -0.047016583383083344, -0.02556363120675087, 0.058571137487888336, 0.025737779214978218, -0.04454666003584862, 0.004952824674546719, 0.004285634029656649, 0.024107784032821655, -0.05219794437289238, 0.0649728924036026, 0.0020096381194889545, 0.002142218640074134, 0.04805829003453255, 0.0022518360055983067, 0.0610743910074234, -0.01003692764788866, 0.050533924251794815, 0.002549468306824565, 0.045261550694704056, 0.06928025186061859, 0.007529192604124546, 0.014344239607453346, -0.012389169074594975, 0.06032605096697807, 0.028605522587895393, 0.06481695920228958, 0.15400612354278564, -0.07333634793758392, 0.047394759953022, -0.016604097560048103, -0.03001365065574646, -0.05459266155958176, 0.039964012801647186, 0.0010549065191298723, 0.06157981976866722, -0.044875338673591614, -0.041189856827259064, -0.045309439301490784, -0.028981277719140053, 0.061256274580955505, 0.015335087664425373, 0.04947130009531975, 0.04756373539566994, 0.001804470201022923, 0.0606204979121685, 0.0122761195525527, -0.008526262827217579, 0.024958891794085503, -0.00835367850959301, -0.03346928581595421, -0.002941608428955078, 0.004342195112258196, -0.025012319907546043, -0.08484480530023575, 0.002728194696828723, -0.010941451415419579, -0.017951874062418938, -0.027517063543200493, -0.01626659743487835, 0.01678224839270115, -0.04154711216688156, -0.01591501198709011, 0.09369104355573654, -0.0744999423623085, 0.008245282806456089, -0.0162162147462368, -0.007219549268484116, 0.09041844308376312, 0.07309120893478394, 0.019521387293934822, 0.08067890256643295, -0.034232620149850845, -0.0387444831430912, -0.07477595657110214, -0.03263053670525551, -0.0013771428493782878, 0.0034855275880545378, -0.04065900668501854, 0.09270783513784409, -0.01817295141518116, -0.015820186585187912, -0.007176442537456751, 0.04216250777244568, -0.016934772953391075, -0.07582738250494003, 0.05661303922533989, -0.06929115951061249, 0.002360458020120859, -0.002057850593701005, 0.02557358331978321, -0.015617632307112217, 0.06652356684207916, -0.04468686133623123, 0.030463501811027527, 0.056772612035274506, 0.05752436816692352, -0.01377050019800663, 0.018771646544337273, -0.027275225147604942, -0.013692829757928848, -0.054155025631189346, 0.03996167704463005, -0.006763833574950695, -0.028991419821977615, 0.016461608931422234, -0.031206093728542328, -0.027996500954031944, -0.06257116049528122, 0.025818215683102608, 0.009660587646067142, -0.009023167192935944, 0.012076674960553646, 0.008059036917984486, 0.005174681078642607, 0.036806803196668625, 0.02164045162498951, -0.021160811185836792, 0.036560870707035065, 0.036308832466602325, -0.02129506692290306, 0.012264846824109554, -0.037010207772254944, 0.0075183166190981865, 0.005989008117467165, 0.028036292642354965, 0.021418718621134758, 0.030183110386133194, -0.011945855803787708, -0.03509464114904404, -0.029971595853567123, -0.0052241007797420025, -0.010914496146142483, 0.03886986896395683, 0.02015252783894539, 0.007136097177863121, -0.031052550300955772, -0.011827369220554829, 0.013386966660618782, 0.002655496820807457, -0.028867453336715698, -0.021306753158569336, 0.015595819801092148, -0.01895640790462494, -0.04040909558534622, -0.012796220369637012, 0.029924429953098297, -0.0006818195688538253, 0.001991775119677186, 0.01517302356660366, 0.0021155031863600016, -0.06401636451482773, -0.01164479274302721, -0.019946960732340813, -0.054930418729782104, -0.004997486714273691, -0.05672743543982506, 0.06211356446146965, -0.044549036771059036, -0.003497116034850478, 0.01796119660139084, -0.029086101800203323, 0.03134136274456978, 0.013184620998799801, -0.01524698082357645, -0.0019469860708341002, -0.017283521592617035, -0.037243783473968506, -0.016338715329766273, 0.016061564907431602, 0.0032196983229368925, -0.0017176811816170812, 0.033750806003808975, -0.010886471718549728, -0.008076219819486141, -0.008585439063608646, -0.019401973113417625, 0.003636528505012393, -0.01732947677373886, 0.057505328208208084, -0.024820223450660706, 0.0010235158260911703, -0.04722977429628372, 0.04344375431537628, 0.03295792266726494, -0.03787972778081894, 0.022737586870789528, -0.036515578627586365, 0.06127219274640083, 0.024591149762272835, -0.0019260154804214835, 0.024644644930958748, -0.025054775178432465, 0.010236315429210663, 0.010906747542321682, -0.04168904945254326, -0.006677549332380295, -0.02405785769224167, 0.018987169489264488, 0.034280262887477875, -0.053383730351924896, -0.03460763022303581, -0.006590701639652252, 0.0136214355006814, 0.038706354796886444, 0.041175052523612976, -0.0011966257588937879, -0.006658619269728661, 0.044727832078933716, 0.04080899432301521, 0.003416092600673437, -0.009903893806040287, 0.01780674047768116, -0.05763126537203789, 0.007727788761258125, -0.0038123433478176594, 0.029898708686232567, 0.03645150735974312, -0.011179878376424313, -0.005766875576227903, 0.04181947186589241, 0.020499249920248985, 0.02515331842005253, 0.019162900745868683, -0.0006945491186343133, -0.018227044492959976, 0.0247818436473608, -0.010733924806118011, 0.00039513077354058623, 0.019106078892946243, 0.053902383893728256, -0.009697158820927143, 0.026497911661863327, 0.015094583854079247, -0.0033744988031685352, 0.00853760540485382, -0.006952203810214996, 0.011868845671415329, -0.046062368899583817, 0.07623888552188873, 0.009298233315348625, -0.03399601951241493, 0.006052111275494099, -0.03859640285372734, -0.068329818546772, -0.006362447515130043, -0.03801881894469261, -0.015455997548997402, 0.030668102204799652, 0.01860799826681614, -0.016959816217422485, 0.010542800650000572, -0.01793791726231575, 0.005199054721742868, -0.010257252492010593, -0.015926890075206757, -0.016188008710741997, -0.006196410395205021, 0.049749184399843216, 0.03551105037331581, -0.002222926588729024, -0.012394584715366364, 0.02644583396613598, 0.01797032542526722, 0.01658370904624462, 0.009877661243081093, 0.014691327698528767, -0.02930549718439579, -0.001853154506534338, -0.0027921709697693586, -0.007195860613137484, -0.008180377073585987, 0.00824281107634306, 0.01564251445233822, -0.01719227060675621, 0.0858297124505043, 0.05653311312198639, -0.009298651479184628, -0.011719737201929092, -0.0028417089488357306, -0.012014281004667282, -0.025988392531871796, -0.017829010263085365, 0.05225454643368721, 0.02095327340066433, -0.021236801519989967, -0.011541180312633514, -0.057127293199300766, 0.009670731611549854, -0.019710415974259377, 0.005529850721359253, 0.0050414795987308025, -0.026810789480805397, 0.033000439405441284, -0.019917037338018417, 0.005069891922175884, 0.026509728282690048, 0.016873136162757874, -0.006290502846240997, -0.011312665417790413, -0.05936840921640396, 0.03196300193667412, -0.021998226642608643, -0.00884169340133667, -0.04268019273877144, 0.03300430625677109, -0.0003527638327796012, -0.009936496615409851, 0.011338314041495323, 0.01334535051137209, 0.011347373016178608, -0.002935945289209485, 0.039205461740493774, -0.020538751035928726, 0.03365659341216087, 0.03468816354870796, 0.004288815427571535, 0.006146319676190615, 0.025289615616202354, 0.04275372251868248, -0.03800696134567261, 0.02365177683532238, 0.016462543979287148, 0.025468509644269943, -0.0318276472389698, 0.014760341495275497, 0.015202212147414684, 0.0480114109814167, 0.00743055809289217, -0.02582758106291294, -0.0024964434560388327, -0.054107390344142914, -0.0063505941070616245, 0.019444378092885017, 0.0022105586249381304, 0.011868013069033623, 0.04912815988063812, 0.012570684775710106, 0.027179338037967682, 0.03509114682674408, -0.03322409465909004, -0.020657384768128395, -0.031214412301778793, 0.006410554517060518, -0.05090551823377609, 0.02885848842561245, -0.07323703914880753, -0.043266091495752335, 0.02967008575797081, -0.042767707258462906, 0.011912169866263866, 0.03836163878440857, 0.015967542305588722, -0.019772129133343697, -0.015792114660143852, -0.00427479762583971, -0.012367530725896358, -0.028086703270673752, -0.01129186898469925, 0.010353387333452702, -0.033377762883901596, 0.0012847979087382555, -0.03140028193593025, -0.008282868191599846, -0.0035463410895317793, -0.009799053892493248, -0.016283944249153137, 0.0007839675527065992, 0.031339239329099655, 0.027307933196425438, 0.06671299785375595, -0.026345226913690567, 0.003217340912669897, -0.005198627710342407, 0.0023781326599419117, -0.005543447565287352, -0.050684038549661636, 0.003295539179816842, 0.014335829764604568, -0.03337563946843147, 0.030515296384692192, 0.0030086333863437176, 0.03625784441828728, 0.024012630805373192, 0.03283768892288208, -0.011036962270736694, 0.000050054328312398866, -0.07569676637649536, 0.045204129070043564, 0.01168625708669424, 0.02487930655479431, -0.013560783118009567, 0.0012811063788831234, -0.018544621765613556, -0.003317439230158925, -0.06827136874198914, 0.053593024611473083, -0.0015873060328885913, -0.032013025134801865, -0.026196330785751343, 0.003974963910877705, 0.0265924371778965, -0.013427563942968845, -0.04850025102496147, -0.008595489896833897, 0.0007020225166343153, 0.036263857036828995, 0.034643031656742096, -0.0018658054759725928, 0.023478349670767784, -0.04232089966535568, 0.018400929868221283, -0.042887408286333084, 0.06629414856433868, -0.0009604949736967683, -0.022202489897608757, 0.02072899416089058, 0.011654842644929886, -0.0010212109191343188, 0.020412269979715347, 0.033859118819236755, 0.022351671010255814, -0.019147561863064766, 0.024472221732139587, 0.009132563136518002, 0.0005366576951928437, -0.011537755839526653, -0.012133057229220867, 0.06523773819208145, 0.020011480897665024, 0.01077825017273426, 0.05208312347531319, 0.02035735920071602, 0.054893866181373596, -0.006184134632349014, 0.02439882606267929, 0.001664637355133891, 0.06624286621809006, 0.01544059719890356, 0.04903554171323776, -0.006895996164530516, -0.02399582602083683, -0.03483620658516884, -0.019447149708867073, -0.035248663276433945, -0.028984440490603447, -0.0013236424420028925, -0.011692562140524387, 0.001525035360828042, -0.0006433426169678569, -0.05306435748934746, 0.08743368089199066, 0.013860178180038929, 0.057194970548152924, -0.013515165075659752, 0.021047554910182953, -0.005180251318961382, 0.030537743121385574, -0.017552703619003296, -0.022441038861870766, -0.012735921889543533, -0.005727105773985386, 0.048003870993852615, 0.030622446909546852, 0.030606526881456375, 0.013241239823400974, 0.009285551495850086, 0.033001773059368134, -0.024032795801758766, 0.06134108826518059, -0.004753178916871548, -0.010745890438556671, -0.03578988462686539, -0.0022462294436991215, -0.029963940382003784, -0.006387048400938511, 0.00994147639721632, 0.01299065351486206, -0.020524106919765472, 0.023592183366417885, 0.02255128137767315, 0.0363321378827095, 0.007964587770402431, 0.02815370075404644, 0.0074320402927696705, -0.017564935609698296, -0.05401701480150223, 0.04531579092144966, -0.00694667175412178, -0.028546608984470367, -0.04817161709070206, 0.00792678166180849, -0.01375415176153183, 0.0033080563880503178, 0.031855612993240356, -0.013558435253798962, 0.0000017710932525005774, 0.013511152938008308, 0.036255236715078354, -0.008584110997617245, -0.002138851210474968, 0.01903774030506611, 0.043605297803878784, -0.008563153445720673, -0.01574612595140934, 0.039375703781843185, 0.0220830999314785, 0.027270250022411346, -0.009500140324234962, -0.0027463037986308336, -0.0013865886721760035, 0.015908462926745415, 0.0341014601290226, 0.05882062017917633, -0.023209968581795692, -0.014973093755543232, -0.019792277365922928, 0.04091724753379822, -0.016564076766371727, 0.04975343868136406, 0.04346295818686485, 0.0016712300712242723, -0.028298377990722656, -0.06611854583024979, 0.012702705338597298, 0.01758386939764023, 0.005323620513081551, 0.05405615642666817, -0.015589914284646511, -0.05351069197058678, 0.024657849222421646, -0.002080070087686181, 0.032094839960336685, 0.025636030361056328, 0.05545653775334358, -0.009173424914479256, 0.02240651287138462, -0.011096966452896595, 0.05034418776631355, -0.039502859115600586, -0.0008280246984213591, -0.005684079602360725, -0.032303959131240845, 0.017837222665548325, 0.004149748478084803, -0.0012730159796774387, -0.011852921918034554, -0.013432778418064117, -0.04738663509488106, -0.05314785987138748, 0.019597239792346954, -0.035995323210954666, 0.0323975533246994, 0.05212238430976868, 0.018212562426924706, 0.009638986550271511, 0.030265802517533302, -0.014960582368075848, -0.02053886465728283, -0.017477506771683693, 0.055211178958415985, 0.028521111235022545, -0.02737327851355076, -0.034435711801052094, -0.007092831656336784, 0.006990388501435518, 0.03187175095081329, -0.06279195100069046, 0.024129802361130714, -0.024660613387823105, -0.04640064761042595, -0.011346150189638138, 0.03304039314389229, 0.028479665517807007, -0.028566354885697365, 0.06337491422891617, -0.003278617514297366, -0.03953597694635391, 0.01943650096654892, 0.03232074901461601, -0.05522590130567551, -0.006317927967756987, 0.04663956165313721, -0.004234285559505224, -0.010932665318250656, -0.04166143387556076, 0.014206700958311558, -0.01638239063322544, 0.019246194511651993, 0.05370955169200897, 0.006975278258323669, -0.031156105920672417, -0.031364474445581436, -0.0072298659943044186, 0.03826773166656494, -0.024478729814291, 0.000955612282268703, -0.004822418559342623, 0.008796767331659794, 0.016401752829551697, -0.027347814291715622, -0.031307779252529144, 0.0016143359243869781, 0.029068661853671074, 0.047241631895303726, -0.022367840632796288, 0.030414607375860214, 0.03227904811501503, 0.03552677854895592, -0.04509786143898964, 0.03239015117287636 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
What about memory? The length of the audio sample we want to generate dictates the width of the latent variables we de-noise in the LDM. Since the memory of the cross-attention layers in the UNet scales with sequence length (width) squared, generating very long audio samples might lead to out-of-memory errors. Our batch size also governs our memory usage, controlling the number of samples that we generate. We've already mentioned that loading the model in float16 half precision gives strong memory savings. Using PyTorch 2.0 SDPA also gives a memory improvement, but this might not be suffienct for extremely large sequence lengths. Let's try generating an audio sample 2.5 minutes (150 seconds) in duration. We'll also generate 4 candidate audios by setting num_waveforms_per_prompt=4. Once num_waveforms_per_prompt>1, automatic scoring is performed between the generated audios and the text prompt: the audios and text prompts are embedded in the CLAP audio-text embedding space, and then ranked based on their cosine similarity scores. We can access the 'best' waveform as that in position 0. Since we've changed the width of the latent variables in the UNet, we'll have to perform another torch compilation step with the new latent variable shapes. In the interest of time, we'll re-load the pipeline without torch compile, such that we're not hit with a lengthy compilation step first up: python pipe = AudioLDM2Pipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe.to("cuda") audio = pipe(prompt, negative_prompt=negative_prompt, num_waveforms_per_prompt=4, audio_length_in_s=150, num_inference_steps=20, generator=generator.manual_seed(0)).audios[0] Output: --------------------------------------------------------------------------- OutOfMemoryError Traceback (most recent call last) <ipython-input-33-c4cae6410ff5> in <cell line: 5>() 3 pipe.to("cuda") 4 ----> 5 audio = pipe(prompt, negative_prompt=negative_prompt, num_waveforms_per_prompt=4, audio_length_in_s=150, num_inference_steps=20, generator=generator.manual_seed(0)).audios[0] 23 frames /usr/local/lib/python3.10/dist-packages/torch/nn/modules/linear.py in forward(self, input) 112 113 def forward(self, input: Tensor) -> Tensor: --> 114 return F.linear(input, self.weight, self.bias) 115 116 def extra_repr(self) -> str: OutOfMemoryError: CUDA out of memory. Tried to allocate 1.95 GiB. GPU 0 has a total capacty of 14.75 GiB of which 1.66 GiB is free. Process 414660 has 13.09 GiB memory in use. Of the allocated memory 10.09 GiB is allocated by PyTorch, and 1.92 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF Unless you have a GPU with high RAM, the code above probably returned an OOM error. While the AudioLDM 2 pipeline involves several components, only the model being used has to be on the GPU at any one time. The remainder of the modules can be offloaded to the CPU. This technique, called CPU offload, can reduce memory usage, with a very low penalty to inference time. We can enable CPU offload on our pipeline with the function enable_model_cpu_offload(): python pipe.enable_model_cpu_offload() Running generation with CPU offload is then the same as before: python audio = pipe(prompt, negative_prompt=negative_prompt, num_waveforms_per_prompt=4, audio_length_in_s=150, num_inference_steps=20, generator=generator.manual_seed(0)).audios[0] Output: 100%|███████████████████████████████████████████| 20/20 [00:36<00:00, 1.82s/it] And with that, we can generate four samples, each of 150 seconds in duration, all in one call to the pipeline! Using the large AudioLDM 2 checkpoint will result in higher overall memory usage than the base checkpoint, since the UNet is over twice the size (750M parameters compared to 350M), so this memory saving trick is particularly beneficial here.
[ 0.04292527213692665, -0.03528733551502228, 0.02450723573565483, 0.008574672043323517, -0.03775567188858986, -0.012244229204952717, 0.020425383001565933, -0.0355684868991375, 0.00955114234238863, -0.06444881856441498, -0.0508054681122303, 0.0021433017682284117, 0.02474551647901535, 0.03185761347413063, 0.012557287700474262, -0.03888458013534546, 0.06843162328004837, -0.013637675903737545, -0.00884814839810133, 0.02419952116906643, 0.021109944209456444, 0.021393056958913803, 0.006032776553183794, 0.027381978929042816, -0.051958996802568436, -0.020858388394117355, -0.033359650522470474, -0.013490807265043259, -0.06430257111787796, 0.003731383243575692, -0.1447945535182953, 0.001606281497515738, 0.030547326430678368, -0.023174602538347244, -0.002511329250410199, 0.01529569923877716, -0.11241506785154343, 0.06590801477432251, 0.07675312459468842, 0.03196301683783531, -0.0022417071741074324, -0.012092831544578075, -0.03520800918340683, 0.0032352935522794724, -0.007321231998503208, -0.03234748914837837, -0.06266029924154282, 0.030244478955864906, -0.06992113590240479, 0.033221833407878876, -0.09680158644914627, 0.08292020112276077, -0.10521416366100311, 0.026261121034622192, 0.04381505399942398, -0.01668870821595192, 0.07074079662561417, -0.03281489387154579, 0.010888908058404922, -0.028904328122735023, 0.027849098667502403, -0.04674229770898819, -0.05078325793147087, 0.011396906338632107, 0.026870397850871086, -0.000512129336129874, 0.049050990492105484, 0.06855601817369461, -0.0504954494535923, -0.03275828808546066, 0.0843483954668045, 0.003268470987677574, -0.057148706167936325, -0.07285232841968536, -0.07381998002529144, -0.038376450538635254, 0.051092471927404404, -0.01035008393228054, 0.06573839485645294, 0.11886712908744812, 0.020267898216843605, 0.036020420491695404, 0.06197668984532356, 0.01541871391236782, -0.047157272696495056, -0.01815885305404663, 0.03916974738240242, -0.03233465924859047, -0.05675415322184563, -0.012183371931314468, -0.009507913142442703, -0.08779270946979523, 0.047246310859918594, 0.0027816009242087603, -0.04592618718743324, 0.048426270484924316, -0.010363191366195679, -0.013526318594813347, 0.01784178428351879, 0.06515185534954071, 0.03799286484718323, -0.09659457951784134, -0.0012504813494160771, -0.07301847636699677, -0.08704070746898651, 0.12298458069562912, -0.03680325299501419, -0.0898873507976532, -0.08136732876300812, 0.01931462623178959, -0.011261289939284325, 0.0576355941593647, -0.020450349897146225, 0.018115434795618057, -0.06565437465906143, -0.048817701637744904, 0.013537656515836716, 0.05176425352692604, -0.030234619975090027, -0.032515138387680054, -0.06886698305606842, 0.0682816356420517, -0.005018534604460001, -0.031752947717905045, -0.04898718744516373, 0.06714680790901184, 0.061081722378730774, 0.03277100995182991, 0.01359732635319233, -0.032520074397325516, -0.021525071933865547, -0.014060664921998978, 0.0587184838950634, 0.0029785824008286, 0.03778764232993126, -0.08401551097631454, 0.02031204104423523, -0.07091424614191055, 0.022391628473997116, -0.02970331721007824, -0.010462199337780476, 0.06375979632139206, 0.02398373745381832, -0.03107551299035549, 0.01952948421239853, -0.02342681959271431, -0.10328299552202225, 0.05571603402495384, -0.008554975502192974, 0.051889609545469284, -0.05809661000967026, 0.08204613626003265, -0.04909471049904823, -0.08894051611423492, -0.04108455404639244, 0.03951192647218704, -0.02188130095601082, -0.035141076892614365, -0.0835283100605011, -0.02125314250588417, 0.04783613607287407, 0.03641194850206375, -0.014448764733970165, -0.024698849767446518, 0.036200862377882004, -0.021403266116976738, -0.027929110452532768, 0.024999728426337242, -0.026712369173765182, 0.020232124254107475, 0.05071686953306198, 0.015340395271778107, 0.045607537031173706, -0.029285432770848274, 0.030736824497580528, -0.012171468697488308, 0.04712987691164017, 0.048712607473134995, -0.016537705436348915, -0.026358092203736305, -0.028415733948349953, 0.04285296052694321, -0.02097143605351448, 0.05701013654470444, 0.10150109976530075, -0.09016755223274231, 0.08012575656175613, -0.07436858117580414, -0.09978634119033813, 0.017753243446350098, 0.03515971079468727, -0.0506814643740654, 0.00572494650259614, -0.05122903734445572, 0.049682632088661194, 0.02286120317876339, -0.026825837790966034, 0.06535150110721588, 0.05691869556903839, 0.07393850386142731, -0.0053977034986019135, 0.046377137303352356, 0.02449067123234272, -0.0017652236856520176, 0.020023465156555176, -0.02833440713584423, -0.020171450451016426, -0.05204625055193901, 0.013981057330965996, 0.016307825222611427, 0.03755875304341316, -0.07073885202407837, 0.044221241027116776, -0.10212673991918564, -0.07951052486896515, -0.046869002282619476, 0.008797920309007168, -0.017640111967921257, 0.03397570550441742, -0.0048195780254900455, 0.06527610123157501, 0.009248961694538593, -0.03510129824280739, -0.00909469649195671, -0.055840566754341125, 0.08606167137622833, -0.05743866786360741, 0.02049265243113041, 0.018908090889453888, -0.07191058248281479, 0.010826562531292439, -0.0579739473760128, -0.03062361851334572, 0.02004161849617958, -0.03983418643474579, -0.015657473355531693, -0.015574930235743523, 0.018046285957098007, 0.016504228115081787, -0.03476026654243469, 0.02320270612835884, -0.0057867225259542465, -0.04293902590870857, 0.028696805238723755, -0.05876186862587929, -0.022525621578097343, 0.028900722041726112, -0.10665314644575119, -0.003837445518001914, 0.03160717338323593, -0.02740771695971489, 0.006173864006996155, -0.016260825097560883, -0.0017779701156541705, -0.008085372857749462, -0.0011853803880512714, 0.0061101061291992664, -0.025454893708229065, -0.030457312241196632, 0.016828855499625206, 0.02983079105615616, 0.02348533272743225, 0.003411262994632125, -0.002356260549277067, 0.012147266417741776, -0.058013830333948135, 0.0018073675455525517, 0.009480372071266174, -0.003806861350312829, 0.016117317602038383, -0.0036266904789954424, 0.014106091111898422, 0.031408850103616714, 0.026203656569123268, -0.04087953642010689, 0.053169023245573044, 0.06553886085748672, -0.045646730810403824, -0.0044451127760112286, -0.026897739619016647, 0.029260313138365746, -0.02193426340818405, 0.011724444106221199, 0.013864610344171524, 0.00882569421082735, 0.038475681096315384, -0.01766715757548809, 0.002260286593809724, 0.016971858218312263, 0.006994674913585186, 0.006861033849418163, 0.02775484137237072, 0.017559373751282692, -0.014902259223163128, 0.02022629603743553, 0.046389590948820114, -0.01686812937259674, -0.030758893117308617, -0.03686105087399483, -0.008533068001270294, -0.037486281245946884, -0.011510898359119892, -0.02735365740954876, -0.038116976618766785, -0.04754792898893356, -0.0442814901471138, 0.002282492583617568, 0.023230604827404022, -0.07578401267528534, 0.028251037001609802, -0.025636449456214905, -0.014976666308939457, -0.029998598620295525, -0.013144420459866524, 0.020841430872678757, 0.00033109294599853456, 0.01956607587635517, 0.013464340008795261, -0.017802704125642776, 0.037167247384786606, -0.019446389749646187, 0.024698710069060326, 0.03342819586396217, -0.02574992924928665, -0.012599517591297626, -0.006953612435609102, 0.034075167030096054, 0.0034332284703850746, 0.045313239097595215, 0.03484141081571579, 0.005671427585184574, 0.018908478319644928, -0.021085040643811226, -0.016595499590039253, -0.015039839781820774, 0.025132328271865845, 0.01521687489002943, -0.016484465450048447, -0.012630768120288849, -0.053955063223838806, 0.04117056354880333, 0.009934714064002037, -0.06324050575494766, -0.014885439537465572, -0.01980919949710369, -0.008163955062627792, 0.013246416114270687, 0.02476334385573864, 0.028744565322995186, -0.03019160032272339, -0.003146545263007283, 0.017056845128536224, 0.02648741379380226, -0.05474427342414856, -0.010126164183020592, -0.02649897150695324, 0.029294220730662346, -0.026591185480356216, -0.050896286964416504, -0.023002775385975838, 0.0167759507894516, 0.027605824172496796, -0.0015158773167058825, -0.010541149415075779, 0.012470023706555367, 0.06350640952587128, 0.019315404817461967, -0.0034726916346699, -0.0036491781938821077, -0.022342238575220108, 0.014851930551230907, 0.01775161176919937, 0.028748884797096252, 0.0362829826772213, 0.02038816176354885, -0.015191711485385895, -0.025376494973897934, 0.05282605439424515, -0.002496687462553382, 0.01214288454502821, 0.026374906301498413, 0.00807446613907814, -0.024542897939682007, 0.06724724918603897, 0.016181472688913345, -0.015298868529498577, 0.011242028325796127, 0.03740064427256584, -0.04921991378068924, 0.015927832573652267, -0.015484652481973171, -0.0002308177063241601, -0.01565706543624401, 0.055227991193532944, -0.005295334849506617, -0.0010082947555929422, 0.029054025188088417, 0.00019891209376510233, -0.007096686400473118, -0.008642371743917465, -0.01237583626061678, -0.03754185140132904, -0.0441320538520813, -0.01136998925358057, -0.0033922649454325438, 0.01062096282839775, 0.02060837857425213, 0.022757725790143013, 0.018246378749608994, -0.03969519957900047, 0.019751911982893944, -0.03308899700641632, -0.002530425088480115, 0.000639467325527221, -0.05755887180566788, 0.009287746623158455, -0.002179663861170411, -0.025253186002373695, -0.024550030007958412, -0.005395719315856695, 0.006289980374276638, 0.038618940860033035, 0.0456346794962883, 0.029931163415312767, -0.008591598831117153, -0.009809008799493313, -0.005910215899348259, 0.027518924325704575, -0.03260650485754013, 0.03950860723853111, 0.022105583921074867, -0.025629382580518723, 0.07747593522071838, 0.028504474088549614, 0.015253330580890179, 0.014993981458246708, -0.05450240522623062, -0.023686546832323074, -0.011822912842035294, 0.03613229840993881, 0.026282532140612602, 0.05755968019366264, -0.003735329257324338, -0.017194973304867744, -0.059268198907375336, 0.012193824164569378, 0.01744990050792694, 0.009392017498612404, -0.012322582304477692, -0.03178606927394867, 0.021767979487776756, -0.008417339995503426, 0.015648508444428444, 0.019704872742295265, -0.010022789239883423, 0.0023740066681057215, -0.054350584745407104, -0.0031639740336686373, 0.02491491474211216, -0.012767340056598186, -0.031318653374910355, -0.004207703750580549, 0.016991136595606804, -0.010137785226106644, 0.004669060930609703, -0.002734386594966054, -0.013320302590727806, 0.03948219493031502, -0.045849382877349854, 0.026128090918064117, -0.02028282918035984, 0.021805448457598686, 0.03202827274799347, 0.018117010593414307, -0.011649335734546185, -0.0564449280500412, 0.06205226108431816, -0.014621780253946781, 0.0054756528697907925, 0.015130214393138885, 0.004118947312235832, -0.058020781725645065, 0.019497832283377647, 0.016203390434384346, 0.03477104380726814, 0.013229906558990479, -0.0195829588919878, 0.002797280205413699, -0.009994135238230228, -0.015310104005038738, 0.045243289321660995, -0.015971694141626358, 0.006245397962629795, 0.032914720475673676, 0.0189528688788414, 0.10320905596017838, 0.03249542787671089, 0.01317876111716032, 0.007426421623677015, -0.004316928330808878, -0.0031311127822846174, -0.0440007820725441, 0.009959149174392223, -0.011062271893024445, -0.03617702051997185, 0.008478572592139244, 0.00986879225820303, -0.02651328407227993, 0.04607801139354706, 0.008106434717774391, -0.0006508545484393835, -0.0038692383095622063, 0.004285842180252075, 0.032472774386405945, 0.0031212009489536285, -0.005580602213740349, 0.011219430714845657, -0.01606127619743347, -0.014692110009491444, 0.0008397504570893943, -0.024018513038754463, 0.025811776518821716, 0.010665874928236008, -0.00873064436018467, -0.02591860108077526, 0.02348886989057064, 0.030155489221215248, 0.07879854738712311, -0.009861617349088192, -0.002454096684232354, -0.029693104326725006, 0.018827231600880623, 0.04186198115348816, -0.031004326418042183, -0.014728013426065445, 0.027895180508494377, -0.004997286479920149, 0.02240161783993244, 0.00363581208512187, -0.013170674443244934, 0.02142435312271118, 0.053344789892435074, -0.004543599206954241, -0.009921208024024963, -0.0035812919959425926, 0.04549432545900345, -0.008426215499639511, 0.028164830058813095, -0.017287602648139, -0.017940957099199295, -0.033812981098890305, 0.04698671028017998, -0.03398394584655762, 0.023928236216306686, 0.017302654683589935, -0.03476439788937569, -0.007759111933410168, 0.010311893187463284, 0.0011334843002259731, -0.017188768833875656, -0.017315078526735306, -0.016630802303552628, 0.009899244643747807, 0.017180202528834343, 0.0459284633398056, -0.03512825071811676, 0.056071095168590546, -0.016915787011384964, 0.02013791911303997, -0.047505881637334824, 0.028112197294831276, -0.01330311968922615, -0.010664624162018299, 0.038001492619514465, 0.007190162781625986, -0.017580481246113777, 0.05048549547791481, 0.0032979752868413925, 0.0327213779091835, 0.022191233932971954, -0.022461118176579475, -0.007994594983756542, -0.020275238901376724, 0.003973544109612703, 0.00980932917445898, 0.04666612297296524, 0.006408740300685167, 0.04339883103966713, 0.04520343989133835, 0.03479083999991417, 0.021843282505869865, -0.008367358706891537, -0.012068966403603554, 0.007920782081782818, 0.07102768868207932, 0.02925865165889263, -0.010478523559868336, -0.0280334260314703, -0.01607326976954937, 0.024158164858818054, 0.011291077360510826, -0.01922633685171604, -0.054550718516111374, -0.02435549534857273, 0.03050038404762745, -0.0012415776727721095, 0.010253331623971462, -0.01801139861345291, 0.05623571202158928, -0.005671042017638683, 0.03270557150244713, 0.015031097456812859, 0.012940225191414356, -0.015375037677586079, 0.03413264453411102, -0.026286263018846512, 0.012352360412478447, 0.022575926035642624, -0.008643105626106262, 0.039888110011816025, 0.006419513374567032, 0.012480435892939568, 0.042944326996803284, -0.01942550577223301, 0.012488123960793018, -0.015548836439847946, 0.008348487317562103, 0.021300511434674263, -0.023783313110470772, -0.09999625384807587, -0.017076456919312477, 0.026961524039506912, 0.01858554594218731, 0.025090549141168594, 0.003505294444039464, -0.03401035815477371, -0.0020133289508521557, 0.007289818953722715, -0.010873368009924889, 0.02917998470366001, 0.006720454432070255, 0.013073400594294071, -0.021445032209157944, -0.05725644528865814, 0.03699067234992981, 0.05861616134643555, -0.04379246011376381, -0.03325086459517479, 0.027869516983628273, -0.021089160814881325, 0.008458837866783142, 0.028551198542118073, -0.01970059983432293, 0.01948363147675991, 0.008968466892838478, -0.03551005572080612, -0.00278096878901124, 0.02063288725912571, 0.03498101606965065, 0.012182679027318954, 0.01621592976152897, 0.03677527606487274, -0.01221927348524332, -0.03909298777580261, 0.0355510339140892, 0.039017852395772934, 0.00441682618111372, 0.011316089890897274, 0.08264065533876419, 0.02442614734172821, 0.004351381678134203, -0.014807592146098614, -0.01877068728208542, -0.019884036853909492, 0.023359084501862526, 0.002830997807905078, 0.007705816067755222, 0.018978675827383995, 0.0049586608074605465, -0.006927313283085823, -0.08316463232040405, -0.00615343451499939, -0.00723678432404995, -0.0018262563971802592, 0.052338216453790665, 0.012117757461965084, -0.021117864176630974, 0.023562442511320114, 0.03151731938123703, 0.052427999675273895, 0.0015672602457925677, 0.02377299964427948, 0.025634294375777245, 0.03769106790423393, -0.013165714219212532, 0.027891019359230995, -0.054674334824085236, 0.03650841861963272, -0.04064515605568886, -0.05871585011482239, 0.0033470718190073967, 0.04494909569621086, -0.03519273176789284, -0.03367618843913078, 0.008343951776623726, -0.037576884031295776, -0.03862829878926277, 0.013800952583551407, -0.027023643255233765, 0.03458027169108391, 0.06280527263879776, 0.05545932427048683, 0.011538316495716572, 0.00697255227714777, -0.07073087990283966, 0.012295029126107693, -0.005904003977775574, 0.04629068821668625, 0.03570862486958504, 0.01549315731972456, -0.030848942697048187, -0.000980729004368186, 0.033141229301691055, 0.027932994067668915, -0.015121692791581154, 0.021546952426433563, 0.006068786606192589, -0.051624469459056854, 0.010830159299075603, 0.02230335958302021, -0.012515624985098839, -0.013370485976338387, 0.07581666857004166, -0.0008102884166873991, -0.01319145131856203, 0.002389713190495968, 0.013927989639341831, -0.02442067861557007, 0.0026851792354136705, 0.006589971017092466, -0.02321118861436844, 0.030698973685503006, -0.005522100254893303, 0.01793726533651352, 0.04490610957145691, 0.007980679161846638, 0.0021233658771961927, 0.012277534231543541, -0.01760074682533741, -0.030629022046923637, 0.02085266262292862, 0.03533433750271797, -0.0426158681511879, -0.017181726172566414, -0.009378070011734962, 0.009578844532370567, -0.0039008082821965218, -0.0441664382815361, -0.014776341617107391, 0.017232775688171387, 0.015168029814958572, 0.013202917762100697, -0.050276484340429306, 0.017041843384504318, 0.04079226404428482, 0.05107707902789116, -0.01015477441251278, 0.01810609921813011 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Model overview Inspired by Stable Diffusion, AudioLDM 2 is a text-to-audio latent diffusion model (LDM) that learns continuous audio representations from text embeddings. The overall generation process is summarised as follows: 1. Given a text input \(\boldsymbol{x}\), two text encoder models are used to compute the text embeddings: the text-branch of CLAP, and the text-encoder of Flan-T5 $$ \boldsymbol{E}{1} = \text{CLAP}\left(\boldsymbol{x} \right); \quad \boldsymbol{E}{2} = \text{T5}\left(\boldsymbol{x}\right) $$ The CLAP text embeddings are trained to be aligned with the embeddings of the corresponding audio sample, whereas the Flan-T5 embeddings give a better representation of the semantics of the text. 2. These text embeddings are projected to a shared embedding space through individual linear projections: $$ \boldsymbol{P}{1} = \boldsymbol{W}{\text{CLAP}} \boldsymbol{E}{1}; \quad \boldsymbol{P}{2} = \boldsymbol{W}{\text{T5}}\boldsymbol{E}{2} $$ In the diffusers implementation, these projections are defined by the AudioLDM2ProjectionModel. 3. A GPT2 language model (LM) is used to auto-regressively generate a sequence of \(N\) new embedding vectors, conditional on the projected CLAP and Flan-T5 embeddings: $$ \tilde{\boldsymbol{E}}{i} = \text{GPT2}\left(\boldsymbol{P}{1}, \boldsymbol{P}{2}, \tilde{\boldsymbol{E}}{1:i-1}\right) \qquad \text{for } i=1,\dots,N $$ 4. The generated embedding vectors \(\tilde{\boldsymbol{E}}{1:N}\) and Flan-T5 text embeddings \(\boldsymbol{E}{2}\) are used as cross-attention conditioning in the LDM, which de-noises a random latent via a reverse diffusion process. The LDM is run in the reverse diffusion process for a total of \(T\) inference steps: $$ \boldsymbol{z}{t} = \text{LDM}\left(\boldsymbol{z}{t-1} | \tilde{\boldsymbol{E}}{1:N}, \boldsymbol{E}{2}\right) \qquad \text{for } t = 1, \dots, T $$ where the initial latent variable \(\boldsymbol{z}{0}\) is drawn from a normal distribution \(\mathcal{N} \left(\boldsymbol{0}, \boldsymbol{I} \right)\). The UNet of the LDM is unique in the sense that it takes two sets of cross-attention embeddings, \(\tilde{\boldsymbol{E}}{1:N}\) from the GPT2 language model and \(\boldsymbol{E}{2}\) from Flan-T5, as opposed to one cross-attention conditioning as in most other LDMs. 5. The final de-noised latents \(\boldsymbol{z}{T}\) are passed to the VAE decoder to recover the Mel spectrogram \(\boldsymbol{s}\): $$ \boldsymbol{s} = \text{VAE}{\text{dec}} \left(\boldsymbol{z}{T}\right) $$ 6. The Mel spectrogram is passed to the vocoder to obtain the output audio waveform \(\mathbf{y}\): $$ \boldsymbol{y} = \text{Vocoder}\left(\boldsymbol{s}\right) $$ The diagram below demonstrates how a text input is passed through the text conditioning models, with the two prompt embeddings used as cross-conditioning in the LDM: For full details on how the AudioLDM 2 model is trained, the reader is referred to the AudioLDM 2 paper. Hugging Face 🧨 Diffusers provides an end-to-end inference pipeline class AudioLDM2Pipeline that wraps this multi-stage generation process into a single callable object, enabling you to generate audio samples from text in just a few lines of code. AudioLDM 2 comes in three variants. Two of these checkpoints are applicable to the general task of text-to-audio generation. The third checkpoint is trained exclusively on text-to-music generation. See the table below for details on the three official checkpoints, which can all be found on the Hugging Face Hub: | Checkpoint | Task | Model Size | Training Data / h | |-----------------------------------------------------------------------|---------------|------------|-------------------| | cvssp/audioldm2 | Text-to-audio | 1.1B | 1150k | | cvssp/audioldm2-music | Text-to-music | 1.1B | 665k | | cvssp/audioldm2-large | Text-to-audio | 1.5B | 1150k | Now that we've covered a high-level overview of how the AudioLDM 2 generation process works, let's put this theory into practice!
[ -0.00010597959044389427, -0.06968783587217331, 0.02902628295123577, -0.05269479751586914, 0.07277011126279831, 0.04329865798354149, -0.0650697723031044, 0.00885525718331337, -0.0009515387355349958, -0.026298075914382935, -0.052181560546159744, 0.0348222441971302, 0.06455671787261963, 0.04709094762802124, 0.01438647136092186, 0.0009103972115553916, 0.05163665488362312, -0.058665405958890915, 0.011632237583398819, 0.004488239996135235, 0.004611976910382509, 0.011759459972381592, -0.006562530528753996, 0.019952092319726944, -0.03397979587316513, 0.012434936128556728, 0.045593321323394775, -0.015385073609650135, -0.09049181640148163, -0.04606255888938904, -0.069623664021492, 0.04433456063270569, 0.001599692041054368, -0.014676663093268871, 0.06629285216331482, 0.006500789895653725, -0.10553799569606781, 0.011651073582470417, 0.08189605176448822, -0.03834206610918045, -0.0253602284938097, 0.019053779542446136, -0.0291841309517622, 0.02644963376224041, -0.02147323079407215, -0.06663571298122406, -0.0767088457942009, -0.017787767574191093, -0.054164987057447433, 0.02990577183663845, -0.11763221025466919, 0.048512574285268784, -0.06803067028522491, 0.06252725422382355, 0.012313304468989372, 0.01949622482061386, 0.027465786784887314, -0.06922618299722672, 0.02849293127655983, 0.017734479159116745, -0.019600145518779755, -0.04237624630331993, -0.027157194912433624, -0.020607629790902138, 0.06282642483711243, 0.013873815536499023, -0.010390029288828373, -0.00045848602894693613, -0.036039285361766815, -0.004260969813913107, 0.0355260968208313, -0.013167057186365128, -0.0638870969414711, -0.059139154851436615, 0.034010082483291626, -0.0785798653960228, -0.015212549827992916, 0.05048886686563492, 0.030304759740829468, -0.0052879489958286285, -0.010294357314705849, 0.009280767291784286, 0.07868894189596176, 0.02906547114253044, -0.08990775793790817, 0.02078370749950409, 0.05685211345553398, 0.006945186294615269, -0.05166020616889, -0.015108979307115078, -0.08396433293819427, -0.13874101638793945, -0.05349123477935791, 0.03186144307255745, 0.042355019599199295, 0.011554744094610214, -0.07361270487308502, -0.03550778329372406, -0.05509423092007637, 0.06821834295988083, 0.02769363671541214, -0.025087203830480576, 0.04225911572575569, -0.09377473592758179, -0.04473576322197914, 0.05505041033029556, -0.06573208421468735, 0.003359872614964843, -0.06929676979780197, -0.008240021765232086, 0.028742274269461632, 0.020133523270487785, 0.05199646204710007, -0.01767193153500557, -0.08788104355335236, 0.03342797979712486, -0.005180431995540857, 0.09257523715496063, 0.01953648030757904, 0.0992741510272026, -0.11024761199951172, 0.08399782329797745, 0.04670381173491478, -0.07631251960992813, -0.09387551248073578, 0.07272138446569443, -0.02499520033597946, -0.007440229412168264, -0.061627913266420364, 0.03629125654697418, 0.02567603439092636, 0.019144611433148384, 0.06316694617271423, -0.02689317613840103, 0.02300436981022358, -0.018046710640192032, 0.02017810568213463, -0.0306323803961277, 0.05294608324766159, 0.004786480218172073, -0.00752456346526742, 0.04562782496213913, -0.030275098979473114, -0.039025966078042984, 0.005727242212742567, -0.015591041184961796, -0.0747060626745224, 0.00583425210788846, -0.01928524859249592, 0.00022031781554687768, -0.061333078891038895, 0.019282124936580658, -0.014507927931845188, -0.10522396117448807, -0.005342878866940737, 0.048370182514190674, 0.03742532059550285, 0.009330283850431442, -0.017534343525767326, 0.003564733313396573, 0.06763681769371033, -0.03623126074671745, -0.07308409363031387, 0.047771062701940536, 0.046175383031368256, -0.02904479205608368, -0.03296597674489021, 0.06246087700128555, -0.019457029178738594, -0.03058013692498207, 0.030198032036423683, 0.03014802560210228, 0.06841490417718887, 0.03404929116368294, 0.02114080637693405, -0.03096753917634487, 0.031045710667967796, 0.10554327070713043, -0.0242291409522295, 0.006656020414084196, -0.04092385992407799, 0.029143383726477623, 0.06541202962398529, 0.000916565244551748, 0.10727689415216446, -0.03544288128614426, 0.041874878108501434, -0.01941823773086071, -0.014958305284380913, -0.04193378984928131, 0.02336060255765915, -0.010606619529426098, 0.05905464291572571, -0.032156798988580704, -0.0011258649174124002, -0.05523208528757095, -0.035488054156303406, 0.03561209887266159, 0.06771331280469894, 0.04661683738231659, 0.005446327850222588, -0.01642233319580555, -0.005365634802728891, 0.0033668945543468, -0.02849728986620903, 0.01599441096186638, 0.01761840470135212, -0.03075040504336357, 0.015069684013724327, 0.006837958004325628, -0.05580602586269379, -0.03465664014220238, 0.02808425761759281, -0.03552200272679329, -0.022923344746232033, -0.08505254983901978, -0.0358797088265419, -0.0016109589487314224, -0.03145763650536537, -0.018871698528528214, 0.09012458473443985, -0.07015965133905411, 0.023321330547332764, -0.03136064112186432, -0.030023135244846344, 0.10737697035074234, 0.07422228157520294, -0.017850499600172043, 0.07610189914703369, -0.008231564424932003, 0.024533942341804504, -0.04898492991924286, 0.06380472332239151, -0.04509209841489792, 0.07971080392599106, -0.012355961836874485, 0.05784788727760315, -0.0010892427526414394, 0.026215476915240288, -0.052772652357816696, 0.08530855923891068, -0.0014288988895714283, -0.08569659292697906, 0.03881392255425453, -0.06271204352378845, 0.0032913116738200188, 0.02664901688694954, 0.008676762692630291, -0.0353420227766037, 0.04299350455403328, -0.05656013637781143, -0.018211420625448227, -0.008985654450953007, 0.004734837915748358, -0.017540069296956062, 0.000682393612805754, 0.014528507366776466, -0.009282859973609447, 0.003236502641811967, -0.0031765722669661045, -0.02242692932486534, -0.007503495551645756, 0.024551331996917725, -0.05709013342857361, -0.00418013334274292, -0.036717258393764496, 0.017678696662187576, 0.04202970117330551, -0.024494851008057594, 0.004442078527063131, 0.02868032455444336, 0.01882665418088436, -0.012533918023109436, 0.042072661221027374, -0.029248086735606194, 0.014545420184731483, 0.047357939183712006, -0.07152660191059113, -0.017184553667902946, -0.04825573042035103, 0.007560763508081436, 0.04130740463733673, 0.0495917908847332, 0.026107175275683403, 0.03533580154180527, 0.01645885966718197, -0.04585942253470421, -0.010543611831963062, 0.04006924480199814, 0.018682850524783134, 0.017157748341560364, -0.010118571110069752, 0.008014002814888954, 0.02262883260846138, 0.030712652951478958, 0.009386628866195679, 0.009610201232135296, -0.005886221770197153, -0.04716313257813454, -0.0018711653538048267, 0.017144478857517242, -0.0016817263094708323, 0.01556647103279829, 0.043206118047237396, 0.005824197083711624, 0.01881350390613079, 0.017119571566581726, 0.03357789292931557, -0.07917797565460205, -0.01420695148408413, -0.0016061231726780534, -0.01204746589064598, 0.011184810660779476, -0.05273488536477089, 0.05981973186135292, -0.028209226205945015, -0.007656914182007313, 0.008419555611908436, -0.009763023816049099, 0.05355244129896164, 0.018517358228564262, -0.005113290157169104, 0.030964704230427742, -0.021038739010691643, 0.029096461832523346, -0.024603398516774178, -0.013314502313733101, 0.0262934360653162, -0.014294461347162724, 0.017087914049625397, 0.012099678628146648, -0.014960557222366333, -0.01965123414993286, -0.02875705435872078, -0.01221892423927784, -0.0027237543836236, 0.019585486501455307, -0.01167275570333004, -0.0006928822258487344, 0.002803240902721882, -0.01742560602724552, 0.03131413087248802, -0.06512446701526642, 0.03879322111606598, 0.01700536534190178, 0.04536081477999687, 0.03272329643368721, 0.016575682908296585, 0.041325245052576065, -0.023082606494426727, 0.00042056344682350755, -0.0036363271065056324, -0.03682258352637291, -0.0017077794764190912, 0.00037849563523195684, 0.01042955368757248, -0.020355233922600746, -0.016717877238988876, 0.00770756509155035, -0.004216163419187069, -0.013813380151987076, 0.023406805470585823, 0.030336059629917145, 0.011547060683369637, 0.01668003760278225, -0.004005645401775837, 0.06133285537362099, 0.024143381044268608, -0.002289124298840761, 0.0033816639333963394, -0.03211517632007599, -0.00995460245758295, 0.005056132562458515, 0.04960859939455986, 0.010288134217262268, 0.002606633584946394, 0.00030376072390936315, 0.026909377425909042, 0.03465976566076279, 0.023533130064606667, 0.0007011732668615878, 0.011141356080770493, -0.02749459259212017, 0.041742175817489624, -0.0036597526632249355, -0.021334199234843254, 0.02012621983885765, -0.007092725019901991, -0.012952595949172974, 0.049254558980464935, 0.04140223190188408, -0.014482450671494007, 0.019122861325740814, -0.01512523740530014, 0.030774308368563652, -0.0013173772022128105, 0.05641083046793938, 0.005301422905176878, -0.006672346498817205, -0.002252592472359538, -0.000595622870605439, -0.018920503556728363, 0.010866282507777214, -0.032486140727996826, -0.02866513654589653, 0.019607827067375183, 0.03872404247522354, 0.0265749990940094, 0.017175517976284027, -0.016412975266575813, -0.02602577582001686, -0.028880136087536812, -0.013763464987277985, -0.05488664656877518, -0.017810681834816933, 0.020500874146819115, 0.02384817786514759, -0.011164079420268536, -0.029604412615299225, 0.050851259380578995, 0.022615641355514526, 0.04589386284351349, 0.03354362025856972, 0.012822335585951805, -0.06625956296920776, -0.01784338243305683, -0.014471504837274551, 0.005228761583566666, 0.010112459771335125, -0.008517502807080746, 0.008844584226608276, 0.007680665701627731, 0.041064728051424026, 0.03120170533657074, -0.004497495014220476, -0.04914141818881035, -0.04481815919280052, -0.027829183265566826, -0.042256325483322144, -0.028334293514490128, 0.01801929622888565, -0.011717668734490871, -0.026211032643914223, -0.03901158273220062, -0.010318553075194359, 0.04121081158518791, 0.017458653077483177, -0.01641269400715828, -0.04400278255343437, -0.036681801080703735, 0.06155086308717728, -0.020022273063659668, 0.016054373234510422, -0.004759426228702068, 0.0076966905035078526, -0.020297130569815636, 0.011935168877243996, -0.05117348954081535, 0.02722867950797081, 0.003701148321852088, 0.014178972691297531, -0.014836289919912815, 0.03291170299053192, 0.01214253157377243, -0.02062320150434971, 0.011352664791047573, -0.024005305022001266, 0.052809327840805054, 0.010208805091679096, 0.05059964582324028, -0.02930726855993271, 0.04033904895186424, 0.02308960258960724, -0.009409754537045956, 0.019665855914354324, -0.01694527268409729, 0.02397320605814457, -0.024427097290754318, 0.007494600024074316, 0.0026884232647717, 0.037535160779953, -0.014301220886409283, 0.016188345849514008, -0.017233166843652725, 0.010479575954377651, 0.04265422746539116, -0.03789644315838814, 0.007751440163701773, -0.023699210956692696, -0.02698495425283909, 0.03971713036298752, -0.032538462430238724, -0.009546914137899876, 0.04051409661769867, 0.0595673993229866, 0.0188967976719141, 0.016242999583482742, 0.00758220162242651, 0.004746113438159227, 0.0002845885755959898, 0.005921001546084881, -0.011431116610765457, -0.015324946492910385, -0.0018287858692929149, -0.040256936103105545, -0.0247347392141819, -0.028783505782485008, -0.024741001427173615, 0.03591127321124077, 0.060022853314876556, -0.009437820874154568, -0.027524644508957863, 0.026087434962391853, -0.02242235466837883, -0.03671686351299286, -0.03640863299369812, 0.01494510192424059, 0.025587158277630806, -0.02492709830403328, -0.03216177225112915, -0.030420247465372086, 0.007904005236923695, -0.01809542439877987, -0.023834139108657837, -0.014264484867453575, -0.012098022736608982, 0.010844385251402855, 0.06591882556676865, -0.009805743582546711, -0.025427907705307007, -0.012891859747469425, -0.00877285748720169, 0.026668792590498924, -0.05275306478142738, -0.01485009677708149, 0.04094461724162102, -0.025773916393518448, -0.003540244186297059, 0.033402182161808014, 0.012341219931840897, -0.00807657465338707, 0.02307070419192314, -0.010746853426098824, -0.028119094669818878, -0.06835464388132095, 0.057762254029512405, -0.0018501590238884091, 0.041287388652563095, -0.00657193548977375, 0.015063250437378883, -0.06392908841371536, 0.013336462900042534, -0.06425721943378448, 0.04988972470164299, 0.004472303204238415, -0.025832034647464752, -0.02139834128320217, -0.018578575924038887, 0.0192909874022007, 0.012962526641786098, -0.032778628170490265, -0.029837876558303833, 0.0016698362305760384, 0.040465325117111206, 0.062414273619651794, -0.005455117207020521, 0.002432406647130847, -0.030300697311758995, 0.01779717393219471, -0.033912770450115204, 0.05851110443472862, 0.018413739278912544, -0.022260868921875954, 0.012720408849418163, 0.010905435308814049, -0.05228782445192337, 0.03527912124991417, 0.010071446187794209, 0.027111032977700233, -0.004118261393159628, -0.009922055527567863, -0.019306140020489693, -0.008431068621575832, 0.0066125658340752125, 0.012734489515423775, 0.04171489179134369, -0.025308221578598022, 0.04084673896431923, 0.00751133356243372, 0.020001742988824844, 0.05403057113289833, 0.015591942705214024, -0.003134425962343812, 0.05503205582499504, 0.033158399164676666, 0.004843167494982481, 0.053661320358514786, -0.0028997815679758787, -0.02893712744116783, -0.005137736443430185, -0.003994126338511705, -0.027395790442824364, -0.012876184657216072, 0.02806774526834488, -0.02986995317041874, 0.002354714088141918, -0.004395026247948408, -0.005426269024610519, 0.09555254131555557, 0.026827920228242874, 0.04471013322472572, -0.030329912900924683, 0.023422924801707268, -0.029557039961218834, 0.040391843765974045, -0.04109705612063408, 0.006353948265314102, 0.012547953985631466, 0.01873180642724037, 0.05430404096841812, -0.0058898632414639, 0.016735492274165154, 0.002708469284698367, -0.022910207509994507, 0.020747166126966476, 0.01354497391730547, 0.01831841468811035, -0.019257500767707825, 0.004336971789598465, -0.05188724398612976, 0.027863169088959694, -0.025073746219277382, 0.0010984099935740232, 0.021263834089040756, 0.05927741527557373, -0.024731673300266266, 0.04418594762682915, 0.014410819858312607, 0.0228884257376194, 0.019892167299985886, 0.0009135007858276367, 0.0042869895696640015, -0.06524194031953812, -0.05148383602499962, -0.006857026368379593, 0.015303945168852806, -0.052299611270427704, -0.054831117391586304, -0.02433602325618267, 0.05069904401898384, 0.021569516509771347, 0.000860867032315582, -0.008253151550889015, -0.017025750130414963, -0.014374082908034325, 0.020444560796022415, -0.01943684183061123, 0.00179757596924901, -0.009788280352950096, 0.0054738582111895084, 0.0016572180902585387, 0.019596438854932785, 0.04730468988418579, 0.004174448549747467, -0.013233406469225883, -0.027474796399474144, 0.006662118248641491, -0.003469724440947175, 0.03085857629776001, 0.06613975018262863, 0.06962114572525024, 0.014800860546529293, 0.0007120381924323738, -0.038696084171533585, 0.021846724674105644, 0.0020400260109454393, -0.0018299007788300514, 0.02765616960823536, -0.01848764345049858, -0.03646542504429817, -0.03208931162953377, 0.02549077197909355, -0.010896092280745506, 0.029487133026123047, 0.03594907745718956, -0.025804365053772926, 0.008477817289531231, -0.005935470573604107, -0.02505199797451496, 0.025478122755885124, 0.010555199347436428, 0.030617954209446907, 0.03890952467918396, 0.02674517035484314, 0.04223201796412468, 0.03649980574846268, -0.035096555948257446, -0.010163444094359875, -0.015656789764761925, -0.07197552174329758, 0.0090235136449337, -0.009422280825674534, -0.007607883308082819, -0.03843746706843376, -0.017417727038264275, -0.042165420949459076, -0.04363592714071274, -0.010459208860993385, -0.007110072299838066, 0.029159195721149445, 0.047641873359680176, -0.007503574714064598, -0.025333210825920105, -0.005799436010420322, -0.05933671072125435, -0.018602298572659492, 0.0027160781901329756, 0.029902150854468346, 0.05470516160130501, -0.0026914027985185385, -0.0498402938246727, 0.005640319548547268, 0.006581256631761789, 0.0051918793469667435, -0.07823401689529419, 0.020465457811951637, -0.0024235830642282963, -0.04495428875088692, 0.04187137633562088, 0.030782263725996017, -0.03435326740145683, -0.005747429560869932, 0.040260426700115204, 0.040930699557065964, -0.019035689532756805, -0.008345641195774078, 0.009264697320759296, -0.038954515010118484, 0.011513158679008484, 0.04433201253414154, -0.03237500041723251, -0.03920875862240791, -0.02619590237736702, 0.025937749072909355, -0.01663978397846222, 0.014822854660451412, 0.030544249340891838, 0.03625548258423805, 0.004300384316593409, -0.022935057058930397, -0.004130495246499777, 0.03224242106080055, -0.02161593921482563, -0.0209567379206419, -0.0021152656991034746, 0.04856083169579506, 0.009772012941539288, -0.048454977571964264, -0.01910390332341194, 0.007925087586045265, 0.015456831082701683, 0.02579808048903942, 0.020160743966698647, 0.03610185161232948, 0.02342040091753006, 0.002445088466629386, -0.009091059677302837, -0.01295695174485445 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Optimisation 4: Scheduler Another option is to reduce the number of inference steps. Choosing a more efficient scheduler can help decrease the number of steps without sacrificing the output audio quality. You can find which schedulers are compatible with the AudioLDM2Pipeline by calling the schedulers.compatibles attribute: python pipe.scheduler.compatibles Output: [diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler, diffusers.schedulers.scheduling_k_dpm_2_discrete.KDPM2DiscreteScheduler, diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler, diffusers.schedulers.scheduling_unipc_multistep.UniPCMultistepScheduler, diffusers.schedulers.scheduling_euler_discrete.EulerDiscreteScheduler, diffusers.schedulers.scheduling_pndm.PNDMScheduler, diffusers.schedulers.scheduling_dpmsolver_singlestep.DPMSolverSinglestepScheduler, diffusers.schedulers.scheduling_heun_discrete.HeunDiscreteScheduler, diffusers.schedulers.scheduling_ddpm.DDPMScheduler, diffusers.schedulers.scheduling_deis_multistep.DEISMultistepScheduler, diffusers.utils.dummy_torch_and_torchsde_objects.DPMSolverSDEScheduler, diffusers.schedulers.scheduling_ddim.DDIMScheduler, diffusers.schedulers.scheduling_k_dpm_2_ancestral_discrete.KDPM2AncestralDiscreteScheduler, diffusers.schedulers.scheduling_euler_ancestral_discrete.EulerAncestralDiscreteScheduler] Alright! We've got a long list of schedulers to choose from 📝. By default, AudioLDM 2 uses the DDIMScheduler, and requires 200 inference steps to get good quality audio generations. However, more performant schedulers, like DPMSolverMultistepScheduler, require only 20-25 inference steps to achieve similar results. Let's see how we can switch the AudioLDM 2 scheduler from DDIM to DPM Multistep. We'll use the ConfigMixin.from_config() method to load a DPMSolverMultistepScheduler from the configuration of our original DDIMScheduler: python from diffusers import DPMSolverMultistepScheduler pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config) Let's set the number of inference steps to 20 and re-run the generation with the new scheduler. Since the shape of the LDM latents are un-changed, we don't have to repeat the compilation step: python audio = pipe(prompt, negative_prompt=negative_prompt, num_inference_steps=20, generator=generator.manual_seed(0)).audios[0] Output: 100%|███████████████████████████████████████████| 20/20 [00:00<00:00, 49.14it/s] That took less than 1 second to generate the audio! Let's have a listen to the resulting generation: python Audio(audio, rate=16000) Your browser does not support the audio element. More or less the same as our original audio sample, but only a fraction of the generation time! 🧨 Diffusers pipelines are designed to be composable, allowing you two swap out schedulers and other components for more performant counterparts with ease.
[ 0.02328631654381752, 0.06196759641170502, 0.0422864705324173, 0.03425358980894089, 0.04710854962468147, 0.027072837576270103, 0.05975087732076645, -0.0107084009796381, -0.012410875409841537, -0.05341769754886627, -0.03393217548727989, 0.038477133959531784, -0.0054350062273442745, 0.056194696575403214, 0.0018509516958147287, -0.06098923459649086, 0.05949033796787262, -0.013660701923072338, 0.004977424629032612, -0.011968071572482586, -0.025015104562044144, -0.02094850316643715, 0.06397148221731186, -0.00983063131570816, -0.04088759422302246, -0.04043873772025108, -0.07864781469106674, 0.012840264476835728, -0.10145020484924316, 0.02481970004737377, -0.06823749095201492, 0.0032099660020321608, 0.010104848071932793, 0.004002253524959087, 0.047848012298345566, -0.016015930101275444, -0.09622815251350403, -0.0011157440021634102, 0.07500407844781876, 0.0161551795899868, -0.0035730653908103704, -0.027532104402780533, -0.0596199557185173, 0.01021666917949915, -0.05068758875131607, 0.007549926172941923, -0.07736469805240631, -0.01513601653277874, -0.025261620059609413, -0.028075868263840675, -0.08940519392490387, 0.07897881418466568, 0.0018991740653291345, -0.00809132307767868, 0.06007285788655281, -0.10579939186573029, 0.045357074588537216, 0.009437194094061852, -0.016343088820576668, 0.027132056653499603, -0.010606572031974792, -0.02474491484463215, -0.04641859233379364, 0.03484072908759117, 0.029201935976743698, 0.014566396363079548, -0.04641003534197807, -0.001721663516946137, -0.035316843539476395, -0.013647697865962982, -0.03003230132162571, -0.006893619429320097, -0.060208432376384735, -0.03057040274143219, 0.007029063533991575, -0.09663254767656326, -0.00552285136654973, -0.002442256547510624, -0.0103005925193429, 0.07948005199432373, 0.02678907848894596, 0.038154251873493195, 0.036094024777412415, 0.07715155184268951, 0.015765102580189705, -0.005018534138798714, 0.043948665261268616, -0.027856843546032906, -0.032199926674366, -0.015326868742704391, -0.02172659896314144, -0.0673496201634407, 0.0026796837337315083, -0.005504135973751545, 0.0064330920577049255, 0.037617284804582596, 0.017614105716347694, -0.014544820412993431, 0.008392047137022018, 0.024873116984963417, 0.040017418563365936, -0.058391496539115906, -0.02139432728290558, -0.011738292872905731, -0.0678568184375763, 0.04960213229060173, -0.03919461369514465, -0.03444775938987732, -0.10813332349061966, 0.09871219098567963, -0.05618944764137268, 0.07845474034547806, -0.009327187202870846, 0.03668736293911934, -0.08127477020025253, -0.010372498072683811, -0.048289086669683456, 0.04741187021136284, -0.038886021822690964, 0.04069391265511513, -0.020580338314175606, 0.08145932108163834, 0.09464321285486221, -0.010004081763327122, -0.048845767974853516, 0.03283305466175079, 0.03608129173517227, 0.02734244614839554, -0.016103224828839302, 0.014609943144023418, -0.004703169222921133, 0.0097272377461195, 0.03799881041049957, -0.013610857538878918, 0.07315466552972794, -0.10909517854452133, 0.0005912150954827666, -0.03266090154647827, 0.04802008718252182, 0.0029119232203811407, -0.02920183539390564, 0.061748206615448, -0.009145690128207207, -0.020890003070235252, -0.025123026221990585, 0.013389687985181808, -0.09525010734796524, 0.021950973197817802, 0.0325954370200634, 0.06856879591941833, -0.0775713175535202, 0.07820992916822433, -0.13120171427726746, -0.11562854051589966, -0.028101013973355293, 0.020369239151477814, 0.006548191886395216, -0.08190504461526871, -0.07413464039564133, -0.05427257716655731, 0.04353492334485054, -0.015004243701696396, 0.0639527216553688, -0.04068839177489281, 0.009845845401287079, 0.012146571651101112, 0.003749628085643053, 0.05472405627369881, 0.013686011545360088, 0.009149287827312946, 0.003978796303272247, 0.02744748815894127, 0.01632584072649479, 0.01142068114131689, 0.03397650644183159, -0.006770305335521698, 0.05428818240761757, 0.0325358584523201, -0.018159089609980583, -0.00909443013370037, -0.04169873520731926, 0.051348209381103516, -0.09901891648769379, 0.0819510817527771, 0.12423031777143478, -0.07109879702329636, 0.04387636110186577, -0.06186862662434578, -0.042643770575523376, 0.024069199338555336, -0.003875849535688758, -0.037143319845199585, 0.10923516005277634, -0.030229391530156136, -0.005035489797592163, -0.007026584818959236, -0.008188337087631226, 0.04901125654578209, 0.06260032951831818, 0.021206265315413475, 0.04552099108695984, 0.025938015431165695, 0.030798276886343956, 0.030228838324546814, -0.002596822800114751, 0.04396593198180199, -0.030876893550157547, -0.10424157977104187, 0.06324055045843124, 0.015830688178539276, 0.004344286397099495, -0.12207416445016861, 0.00024306532577611506, -0.07662829011678696, -0.021508120000362396, -0.030218049883842468, -0.02560742385685444, -0.007931466214358807, 0.0193608570843935, -0.07831370830535889, 0.048824459314346313, -0.03213028609752655, 0.021283011883497238, 0.07230030745267868, -0.052621252834796906, 0.014686193317174911, 0.07291120290756226, 0.007620260585099459, 0.05183034390211105, -0.05302753672003746, -0.0511813759803772, -0.03840523213148117, -0.031281162053346634, 0.04598277434706688, 0.03022201731801033, 0.009524693712592125, -0.01711721532046795, -0.005747103597968817, 0.013684617355465889, -0.05510752275586128, 0.08717890828847885, 0.025309201329946518, -0.03479363024234772, 0.023206043988466263, -0.026153916493058205, -0.011206019669771194, 0.07491432875394821, 0.023441554978489876, -0.013862618245184422, 0.04467469081282616, 0.00564614636823535, -0.010596428997814655, -0.03184669837355614, -0.043909184634685516, 0.08566807210445404, 0.06997987627983093, -0.006662789266556501, 0.0006858091801404953, -0.04242536053061485, 0.03454316034913063, -0.024441810324788094, -0.034325312823057175, 0.02146698534488678, -0.03137955442070961, 0.019613714888691902, -0.031941093504428864, 0.022529246285557747, 0.0038003900554031134, -0.002191566163673997, 0.008124108426272869, -0.03558427095413208, 0.02240154892206192, 0.07277648150920868, 0.02874012105166912, 0.01828174665570259, 0.023932218551635742, 0.050981681793928146, -0.04592961445450783, -0.0038092650938779116, -0.027740996330976486, 0.010720980353653431, -0.03094995580613613, 0.013676228933036327, 0.044534604996442795, -0.007590542081743479, 0.012338606640696526, -0.031562142074108124, -0.035781290382146835, 0.010319082997739315, -0.006325304042547941, -0.033975157886743546, 0.0007762053865008056, 0.03829536214470863, -0.03435872867703438, 0.004173635505139828, 0.007815921679139137, -0.03123302198946476, -0.07443390041589737, 0.03018038347363472, 0.005637995898723602, -0.07629583775997162, 0.005060052499175072, -0.007389219012111425, 0.025683848187327385, -0.042939573526382446, 0.03690449893474579, -0.006124821025878191, 0.008984622545540333, -0.09099436551332474, 0.01849762164056301, -0.00807258766144514, 0.019653892144560814, 0.013123218901455402, -0.00408924138173461, 0.06179876998066902, -0.041958533227443695, -0.02112550288438797, 0.007609598338603973, 0.0028546706307679415, 0.05274176597595215, 0.04909489303827286, -0.014896329492330551, -0.0011892392067238688, -0.047824591398239136, -0.003508326131850481, 0.017344215884804726, 0.012435286305844784, -0.012256422080099583, 0.0320449098944664, 0.03872738033533096, 0.015146739780902863, -0.02509012632071972, -0.018979931250214577, -0.02324661798775196, 0.0458836704492569, 0.0648093894124031, 0.010467687621712685, -0.035684000700712204, -0.029895586892962456, -0.023307420313358307, -0.026949267834424973, -0.008328915573656559, -0.010203271172940731, -0.003054635366424918, -0.04548224061727524, 0.03394120931625366, 0.05879192426800728, 0.028686288744211197, 0.008277292363345623, -0.0547882616519928, 0.021924378350377083, 0.012353241443634033, 0.002511237747967243, -0.0063749440014362335, 0.0009733146871440113, -0.04610799252986908, 0.05345175042748451, -0.009076384827494621, -0.0024160107132047415, -0.029359467327594757, 0.041480571031570435, 0.01685265824198723, 0.028489096090197563, -0.015022635459899902, -0.0003684060648083687, 0.07022350281476974, 0.08286656439304352, 0.01612904667854309, -0.007707029581069946, 0.03258515149354935, -0.01703551784157753, -0.0033558595459908247, -0.023644329980015755, 0.04389039799571037, 0.03949444368481636, 0.008779682219028473, 0.0013694997178390622, 0.01096911821514368, -0.025173749774694443, 0.021008575335144997, 0.023425068706274033, 0.0039035449735820293, -0.04500991478562355, 0.036496344953775406, -0.024475280195474625, -0.001843912759795785, 0.038885120302438736, 0.032360196113586426, -0.010166923515498638, -0.00289429840631783, -0.001975969411432743, -0.02156103029847145, 0.003322938457131386, 0.04225994646549225, -0.02425191178917885, -0.019193628802895546, -0.00009285196574637666, -0.0004530001024249941, -0.039987511932849884, -0.01966823637485504, 0.00958116352558136, -0.024319903925061226, -0.011169864796102047, 0.01241154596209526, 0.02911802940070629, 0.00898134894669056, 0.009166008792817593, -0.015009960159659386, 0.01889195665717125, -0.004442269913852215, -0.0020609605126082897, -0.010164078325033188, -0.03618061542510986, -0.005163604859262705, -0.02629856951534748, 0.006364559754729271, -0.0043196845799684525, -0.021448932588100433, 0.02556878887116909, -0.0072072348557412624, 0.02476024068892002, -0.022358179092407227, 0.020368002355098724, 0.03569445386528969, 0.012861931696534157, 0.011134806089103222, -0.02987797185778618, -0.001530330628156662, -0.02219856157898903, 0.024868538603186607, 0.04900737479329109, 0.0024279807694256306, 0.04945458099246025, 0.01991504430770874, 0.013513308949768543, 0.0008724569925107062, 0.0010892510181292892, -0.035658836364746094, -0.010176420211791992, -0.012875817716121674, 0.025549069046974182, 0.00874020904302597, 0.013799391686916351, -0.01179070770740509, -0.018266336992383003, 0.04564455896615982, 0.005725774448364973, -0.005431359633803368, -0.004254810977727175, 0.03323187306523323, 0.034238386899232864, -0.02591630257666111, 0.026057837530970573, -0.0031532736029475927, -0.007584135979413986, -0.026710253208875656, -0.0025502305943518877, 0.003225730499252677, 0.0603698268532753, -0.04865526407957077, -0.02167625166475773, -0.019375400617718697, 0.019441116601228714, -0.0014882168034091592, -0.008981835097074509, 0.00041049561696127057, 0.0432223342359066, 0.032180942595005035, 0.007958007045090199, -0.009395629167556763, -0.027566049247980118, 0.021046055480837822, 0.05687669292092323, -0.028868330642580986, -0.04365091770887375, -0.03021359071135521, 0.004155006259679794, -0.0018629919504746795, 0.0037451451644301414, 0.029248153790831566, 0.041300218552351, -0.0023023446556180716, 0.06660478562116623, 0.010983881540596485, 0.020261874422430992, 0.04641294106841087, 0.0185896847397089, -0.03326227143406868, -0.000166230252943933, -0.025530511513352394, 0.036265209317207336, -0.014525169506669044, -0.055157966911792755, 0.02213849499821663, 0.02068479172885418, 0.020988689735531807, 0.04667597636580467, 0.02014407329261303, -0.005292342975735664, -0.007331185042858124, -0.009510643780231476, -0.04296253249049187, 0.012825139798223972, -0.05809902027249336, -0.009637576527893543, 0.06144937500357628, -0.02636577934026718, -0.013370150700211525, 0.00750423688441515, 0.010530216619372368, 0.002332912292331457, -0.03302081301808357, 0.020352603867650032, 0.03591272234916687, 0.0010636934312060475, -0.0037339709233492613, 0.019751522690057755, -0.0347045361995697, 0.01811867579817772, -0.059340156614780426, -0.05749950185418129, -0.007648791186511517, 0.015355151146650314, -0.021154126152396202, -0.008962769992649555, 0.03476014360785484, 0.016878409311175346, 0.03835491091012955, -0.010835528373718262, 0.0018383903661742806, -0.029069596901535988, 0.031731344759464264, 0.030471596866846085, -0.05103958770632744, -0.020720018073916435, -0.01625964604318142, -0.03816642612218857, 0.02781960368156433, 0.016420911997556686, 0.013401648961007595, -0.015474234707653522, 0.06099812313914299, 0.0070463912561535835, -0.006738283671438694, -0.04294614866375923, 0.056969527155160904, 0.007818054407835007, 0.03443261235952377, -0.008711918257176876, -0.032343048602342606, -0.034240491688251495, 0.018623117357492447, -0.02105269581079483, 0.0184188075363636, 0.03156173974275589, -0.018488595262169838, -0.036352820694446564, 0.009781783446669579, 0.058133114129304886, 0.001990351127460599, -0.008629484102129936, -0.031239822506904602, 0.01114178542047739, 0.03766864165663719, 0.03248017653822899, -0.004238123539835215, 0.0583413690328598, -0.015019770711660385, 0.019381679594516754, -0.04554818198084831, 0.028389902785420418, -0.008921078406274319, -0.017459465190768242, 0.015826158225536346, -0.011582287959754467, -0.05372767150402069, 0.02638464793562889, 0.009689746424555779, -0.008689559064805508, -0.00869080051779747, -0.006506512872874737, 0.008564695715904236, 0.004976493306457996, -0.010176037438213825, 0.03401453047990799, 0.014453304931521416, 0.025621449574828148, 0.0045607066713273525, 0.05135288089513779, -0.006383035331964493, 0.02623152732849121, -0.015023010782897472, 0.002439334988594055, 0.0026956978254020214, 0.07844381034374237, 0.01301825512200594, 0.005831750109791756, -0.014406299218535423, 0.002472379244863987, -0.021146539598703384, 0.020864039659500122, 0.0011807575356215239, -0.015794411301612854, -0.0022657611407339573, 0.01376891229301691, -0.01765662617981434, 0.040184035897254944, -0.027929196134209633, 0.04320885241031647, 0.003366583026945591, 0.03404146805405617, 0.016137808561325073, -0.04740701988339424, -0.013151537626981735, 0.015704667195677757, -0.02768811397254467, -0.00914964359253645, -0.006921620573848486, -0.03452497720718384, 0.06119781360030174, -0.009059001691639423, 0.029769837856292725, 0.03986317664384842, 0.0010905893286690116, 0.05625145509839058, -0.06774596869945526, 0.01993546634912491, -0.006101873703300953, 0.004420203156769276, -0.05450266972184181, 0.008665855973958969, -0.025396103039383888, -0.04484322667121887, -0.016970861703157425, -0.03326507285237312, -0.008209594525396824, 0.026170825585722923, 0.006094151642173529, 0.019237888976931572, 0.005983381997793913, 0.02194673754274845, -0.003354745451360941, -0.006568926852196455, -0.0346401184797287, 0.0006920567248016596, -0.0029748608358204365, -0.02949780412018299, -0.0301840677857399, 0.03836365416646004, 0.012768768705427647, 0.02250981703400612, 0.06483450531959534, -0.04550578445196152, 0.015252986922860146, 0.0005325000383891165, -0.030419636517763138, -0.010718091391026974, 0.015953801572322845, -0.012922379188239574, 0.007692921906709671, -0.0026874204631894827, 0.003132369602099061, -0.019351208582520485, -0.00931346882134676, 0.03580694645643234, -0.025548221543431282, -0.007128521334379911, 0.05854644998908043, 0.021723290905356407, 0.005109289661049843, -0.026401426643133163, 0.0063537308014929295, -0.030804097652435303, -0.023360535502433777, 0.007583308964967728, -0.04497740790247917, 0.003829548368230462, 0.018656307831406593, 0.022341059520840645, -0.016091926023364067, -0.0633542537689209, 0.015312546864151955, 0.008811949752271175, -0.015314703807234764, 0.02902873232960701, -0.006288609001785517, -0.014727273024618626, 0.05168820917606354, 0.051032450050115585, 0.018363328650593758, 0.021701721474528313, 0.03447185456752777, 0.0010103824315592647, 0.02743322029709816, -0.05328496918082237, -0.00633107777684927, -0.01737850531935692, 0.02143818326294422, -0.04567968472838402, -0.0027434234507381916, -0.01932234689593315, 0.008428177796304226, -0.04898587614297867, -0.03310919180512428, -0.012384475208818913, -0.0414801724255085, -0.05650254711508751, 0.0022178306244313717, -0.03473171964287758, -0.009164678864181042, 0.032057832926511765, 0.018595783039927483, -0.02282160148024559, 0.03759659454226494, -0.008567078970372677, -0.013399828225374222, -0.012767362408339977, 0.04361942410469055, 0.005174869671463966, -0.00010021962953032926, 0.013855266384780407, -0.03489266335964203, 0.046043988317251205, 0.010455187410116196, -0.04103916510939598, 0.008122068829834461, -0.018471403047442436, -0.041825536638498306, -0.007390902377665043, 0.012393866665661335, 0.04496551677584648, -0.00018643746443558484, 0.06577944755554199, -0.001486712833866477, -0.024087902158498764, 0.02343817614018917, 0.010303014889359474, -0.015020590275526047, -0.050685543566942215, 0.030459903180599213, -0.028808465227484703, 0.001977478386834264, -0.0165827926248312, 0.033808059990406036, 0.023852860555052757, 0.026315592229366302, 0.010568195022642612, -0.01885283924639225, -0.016298774629831314, -0.0387808121740818, 0.041804783046245575, 0.029698463156819344, -0.0522829070687294, -0.04051416367292404, 0.040042486041784286, 0.0029951436445116997, 0.013315586373209953, 0.008448860608041286, 0.004334956407546997, 0.003968330565840006, -0.022588247433304787, -0.0002690980036277324, -0.028238793835043907, 0.02300114929676056, 0.0613168440759182, 0.06582489609718323, 0.017318569123744965, -0.006596946157515049 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Optimisation 3: Torch Compile To get an additional speed-up, we can use the new torch.compile feature. Since the UNet of the pipeline is usually the most computationally expensive, we wrap the unet with torch.compile, leaving the rest of the sub-models (text encoders and VAE) as is: python pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True) After wrapping the UNet with torch.compile the first inference step we run is typically going to be slow, due to the overhead of compiling the forward pass of the UNet. Let's run the pipeline forward with the compilation step get this longer run out of the way. Note that the first inference step might take up to 2 minutes to compile, so be patient! python audio = pipe(prompt, negative_prompt=negative_prompt, generator=generator.manual_seed(0)).audios[0] Output: 100%|███████████████████████████████████████████| 200/200 [01:23<00:00, 2.39it/s] Great! Now that the UNet is compiled, we can now run the full diffusion process and reap the benefits of faster inference: python audio = pipe(prompt, negative_prompt=negative_prompt, generator=generator.manual_seed(0)).audios[0] Output: 100%|███████████████████████████████████████████| 200/200 [00:04<00:00, 48.98it/s] Only 4 seconds to generate! In practice, you will only have to compile the UNet once, and then get faster inference for all successive generations. This means that the time taken to compile the model is amortised by the gains in subsequent inference time. For more information and options regarding torch.compile, refer to the torch compile docs.
[ 0.027529947459697723, 0.01842709816992283, 0.020544053986668587, 0.0073263030499219894, -0.026614630594849586, 0.010903444141149521, 0.06409791857004166, 0.013520401902496815, 0.020970016717910767, -0.029313156381249428, -0.04375627636909485, 0.04955366253852844, -0.032710038125514984, 0.03521198779344559, 0.015787264332175255, -0.0735781341791153, 0.05678990110754967, -0.00698506273329258, -0.0388740636408329, 0.04986263066530228, 0.021161528304219246, -0.024306010454893112, 0.04664212092757225, 0.009851892478764057, -0.04319790378212929, -0.08472000807523727, 0.004351459443569183, -0.003949691541492939, -0.060554139316082, 0.03878647834062576, -0.11699285358190536, -0.022076083347201347, 0.025787971913814545, -0.03020358458161354, -0.005458367057144642, -0.006100869737565517, -0.09711926430463791, 0.04337300732731819, 0.07962823659181595, 0.021739033982157707, 0.048476286232471466, 0.03493224084377289, -0.04215594753623009, 0.04587710276246071, 0.02330338954925537, 0.012818009592592716, -0.10684961080551147, 0.07997531443834305, -0.05548139289021492, 0.006736075039952993, -0.09178418666124344, 0.04007690027356148, -0.11188741773366928, -0.0022522250656038523, -0.0007322034216485918, 0.014862654730677605, 0.07351108640432358, 0.010064778849482536, -0.003019224386662245, -0.0137062668800354, 0.019318388774991035, 0.0226907879114151, -0.023267751559615135, 0.04305870831012726, 0.02241014875471592, 0.010917059145867825, -0.042660754173994064, 0.034855917096138, -0.10612016171216965, -0.06886539608240128, 0.03413330018520355, -0.016988078132271767, -0.004673209507018328, -0.01242362055927515, -0.02349114418029785, -0.005407174117863178, 0.051436420530080795, -0.007449788972735405, 0.05809309333562851, 0.10360787808895111, 0.003052074695006013, 0.030565183609724045, -0.009113498032093048, 0.0416654609143734, 0.02590847760438919, 0.04286833852529526, 0.05092770233750343, -0.04859572649002075, -0.06280632317066193, 0.018081283196806908, -0.04976358637213707, -0.05498366430401802, -0.010984322987496853, -0.01874700002372265, -0.03644179925322533, 0.06562888622283936, -0.0166856050491333, 0.017368942499160767, 0.0005348718259483576, -0.015187064185738564, 0.01791931688785553, -0.08156781643629074, 0.012081053107976913, -0.06676987558603287, -0.08445155620574951, 0.10353414714336395, -0.06286077201366425, -0.09031912684440613, -0.0828012153506279, 0.04386747255921364, -0.008369006216526031, 0.05797990784049034, -0.04278729110956192, -0.006894123274832964, -0.05553271621465683, -0.028714146465063095, -0.05133235454559326, 0.007202410139143467, -0.03438938781619072, 0.00026089235325343907, -0.0025465551298111677, 0.06697134673595428, 0.08547716587781906, 0.0028759180568158627, -0.029893558472394943, 0.08981150388717651, 0.043742671608924866, 0.0825633853673935, 0.026647035032510757, -0.049677733331918716, 0.007685004733502865, -0.021363122388720512, 0.05282709747552872, -0.021425973623991013, 0.02101072669029236, -0.08254225552082062, -0.03753908351063728, -0.0757918432354927, -0.06050794571638107, 0.02500685304403305, -0.03828329220414162, 0.05353894829750061, 0.013857693411409855, 0.000941747217439115, -0.02659592404961586, -0.029913965612649918, -0.059309422969818115, 0.027739007025957108, 0.013526302762329578, 0.047945816069841385, -0.07232680916786194, 0.05319249629974365, -0.03260481357574463, -0.054124679416418076, -0.07975679636001587, 0.09809499233961105, 0.03449719399213791, -0.027161069214344025, -0.07308287918567657, -0.03948191553354263, 0.048088859766721725, -0.01585392840206623, 0.03269561752676964, -0.039399243891239166, -0.013670731335878372, -0.020265866070985794, -0.0038559797685593367, 0.039157141000032425, 0.021794013679027557, 0.05111650377511978, 0.031110549345612526, -0.017134083434939384, 0.11794007569551468, -0.044851697981357574, 0.004999211989343166, 0.01866011880338192, 0.03251072019338608, 0.08853167295455933, -0.032773956656455994, -0.033551812171936035, -0.05499770864844322, 0.08475528657436371, -0.024544913321733475, 0.060053255409002304, 0.044476110488176346, -0.10493548959493637, 0.06692817807197571, -0.10260838270187378, -0.02566547319293022, 0.020907696336507797, 0.013753842562437057, -0.05602419748902321, 0.023211736232042313, -0.040704503655433655, -0.009485293179750443, -0.016492128372192383, 0.0022622838150709867, 0.058513082563877106, 0.002440408570691943, 0.01051929872483015, 0.03827314451336861, -0.005590042099356651, 0.03955641761422157, 0.01997169852256775, -0.005677337758243084, 0.025261200964450836, -0.035467006266117096, -0.034926917403936386, 0.011994618922472, -0.00049241678789258, 0.02929045632481575, -0.05712155997753143, 0.011391903273761272, -0.08104770630598068, 0.006355616729706526, -0.029654916375875473, -0.0190948024392128, 0.025426475331187248, 0.01671494171023369, -0.04995155707001686, 0.103572778403759, -0.07295471429824829, -0.02245672233402729, -0.05627827346324921, -0.03384251147508621, 0.011289888992905617, 0.044906944036483765, 0.00011187116615474224, 0.051857538521289825, -0.07836563140153885, -0.03522772341966629, -0.06671273708343506, -0.04900696501135826, 0.050596728920936584, -0.004722396843135357, -0.04034843295812607, -0.011699452996253967, 0.03648558259010315, 0.029795655980706215, -0.0429970882833004, 0.047331176698207855, -0.00613158056512475, 0.014762320555746555, 0.022738317027688026, 0.005280259996652603, 0.0436435304582119, 0.05976786091923714, -0.07184360921382904, 0.024790911003947258, 0.02638676017522812, 0.0037606041878461838, 0.010481920093297958, -0.02404061332345009, -0.0321083702147007, 0.04940515384078026, 0.02301115356385708, -0.005176193546503782, -0.0023186616599559784, 0.0003550716210156679, 0.03027656115591526, 0.005459971260279417, 0.02497083507478237, -0.017854878678917885, -0.04737270623445511, 0.002370990812778473, -0.09951287508010864, -0.025131022557616234, 0.012772416695952415, 0.012894416227936745, 0.0030633260030299425, 0.007104360964149237, -0.006004992872476578, -0.0011185327311977744, 0.00777913723140955, 0.03391268104314804, 0.05562954396009445, 0.062133561819791794, -0.035435423254966736, -0.013601244427263737, -0.08669362217187881, -0.036208588629961014, -0.03623756393790245, -0.029507262632250786, 0.023091889917850494, -0.020209873095154762, 0.02860197052359581, -0.036755532026290894, -0.025890760123729706, -0.03252303972840309, 0.04928773269057274, -0.00529229873791337, 0.031124722212553024, 0.019109506160020828, -0.05303243547677994, 0.030497802421450615, 0.023211713880300522, -0.007023141719400883, -0.017697734758257866, 0.0002584344183560461, 0.02917242795228958, -0.033898063004016876, -0.03218034654855728, -0.03189485892653465, -0.030679112300276756, -0.05819639191031456, 0.008709081448614597, 0.04155489802360535, 0.02181973308324814, -0.0793488472700119, 0.04304971918463707, -0.0049463436007499695, -0.04391609877347946, 0.02110273577272892, -0.03534950315952301, 0.029855217784643173, -0.01718522608280182, 0.012200199998915195, 0.0057557630352675915, 0.021936731413006783, -0.009437195025384426, 0.00987890176475048, 0.029595643281936646, 0.01177731528878212, -0.025006309151649475, -0.0038789878599345684, 0.004868196789175272, 0.02496526949107647, -0.021098224446177483, 0.0027943935710936785, 0.025461481884121895, -0.00838710367679596, -0.011589537374675274, -0.03619417920708656, 0.007100118789821863, 0.05706734582781792, 0.004736822564154863, -0.0014001124072819948, -0.018385112285614014, -0.011494018137454987, -0.04279129579663277, 0.03299105167388916, 0.014423667453229427, -0.03584931418299675, 0.005822345614433289, -0.03518714755773544, 0.012897707521915436, 0.018422674387693405, 0.023198412731289864, -0.01210071798413992, -0.013030026108026505, 0.004841926041990519, 0.032584961503744125, 0.01633249782025814, -0.007942840456962585, 0.019217707216739655, 0.0006553350249305367, 0.03175249323248863, -0.028706496581435204, -0.06867220252752304, -0.009594595059752464, 0.013633462600409985, 0.010363681241869926, 0.025652773678302765, 0.007302840240299702, -0.01853826455771923, 0.0178013164550066, 0.07837476581335068, -0.002130452310666442, -0.03582395613193512, 0.026833532378077507, 0.03935495764017105, -0.0016824961639940739, -0.020708927884697914, 0.0025930311530828476, 0.018925167620182037, -0.033564165234565735, 0.009012770839035511, 0.024466650560498238, 0.011028354987502098, 0.035933829843997955, -0.001658791210502386, 0.010068867355585098, -0.045556992292404175, 0.07922980934381485, -0.025981679558753967, -0.021003587171435356, 0.021780462935566902, 0.03492710739374161, -0.021312648430466652, -0.01795518957078457, -0.003127052914351225, -0.004074721597135067, -0.0016937957843765616, 0.014249727129936218, 0.04077417030930519, -0.056727055460214615, -0.004020087420940399, -0.03613932058215141, -0.004364944063127041, 0.0005434910417534411, 0.02268211357295513, -0.02630367875099182, -0.03797220438718796, -0.012475590221583843, 0.032707225531339645, 0.029631203040480614, 0.013621521182358265, 0.005163274705410004, 0.013286609202623367, -0.07053837180137634, -0.0008244724594987929, -0.0032905316911637783, -0.024419957771897316, 0.00811774656176567, -0.06592632830142975, 0.013283724896609783, 0.022165736183524132, 0.0032151334453374147, 0.011951189488172531, 0.00992601364850998, 0.0005472534685395658, 0.0327259823679924, 0.04531220346689224, -0.010947959497570992, 0.03402508422732353, -0.022701293230056763, 0.0035572503693401814, 0.00929621048271656, -0.0037130513228476048, 0.05907723680138588, 0.026928508654236794, -0.04071609675884247, 0.07557660341262817, 0.02993921935558319, 0.03503866493701935, 0.05942147225141525, -0.017454765737056732, -0.013112769462168217, -0.023927893489599228, 0.020582713186740875, 0.023083418607711792, 0.029293663799762726, -0.0007253938820213079, -0.024026604369282722, -0.006923086941242218, 0.001735564786940813, 0.002655577613040805, -0.02732934057712555, -0.050486933439970016, 0.018906384706497192, 0.008100099861621857, -0.000016384467016905546, -0.0013024618383497, 0.01711832359433174, -0.02756805531680584, 0.013235760852694511, -0.03289172053337097, 0.044768307358026505, 0.049413036555051804, -0.0012044128961861134, -0.008555727079510689, -0.019796697422862053, 0.0005326184327714145, 0.0230204276740551, -0.06127509847283363, -0.00520361540839076, 0.0353887602686882, 0.034006256610155106, -0.025680163875222206, 0.02262253873050213, -0.009164678864181042, 0.00837040040642023, 0.03431648761034012, 0.014348265714943409, -0.022850288078188896, -0.05943826586008072, 0.010728768073022366, -0.019332539290189743, -0.01022212952375412, 0.045078061521053314, -0.001741859712637961, -0.039879828691482544, 0.03898951783776283, -0.010609171353280544, 0.04942445829510689, -0.005086339544504881, -0.004042839631438255, 0.00197811471298337, 0.025625478476285934, -0.0012489710934460163, 0.0404135063290596, 0.009737380780279636, 0.007502775173634291, 0.011224673129618168, -0.05548522248864174, 0.045850761234760284, 0.010975823737680912, 0.007092080544680357, 0.01618335396051407, -0.029821842908859253, 0.007979066111147404, -0.01641331985592842, 0.020793750882148743, -0.017624301835894585, -0.04079997539520264, 0.014241037890315056, -0.010995049960911274, -0.017761705443263054, 0.03712126612663269, 0.010806265287101269, -0.025388166308403015, -0.05869854614138603, 0.013227433897554874, 0.02731255255639553, 0.018096428364515305, -0.006028743926435709, 0.026919804513454437, -0.053415946662425995, 0.023923607543110847, -0.032711200416088104, -0.015786660835146904, 0.028686776757240295, 0.018239930272102356, -0.02710968628525734, -0.021649757400155067, 0.01580343395471573, 0.01881222613155842, 0.04252629354596138, -0.0367317870259285, -0.041011933237314224, -0.02427557297050953, 0.018044179305434227, 0.03469927981495857, -0.030551670119166374, -0.03650197386741638, 0.009973053820431232, 0.0017347002867609262, 0.01813080906867981, 0.001224414212629199, 0.009343747980892658, -0.01729762740433216, 0.0534934364259243, 0.0475308857858181, 0.010699577629566193, -0.0031303097493946552, 0.008477416820824146, 0.02041814662516117, -0.007164044305682182, -0.01960519142448902, -0.024411682039499283, -0.03086591325700283, 0.029220055788755417, -0.0227675624191761, 0.05195425823330879, 0.034165289252996445, -0.06166580319404602, 0.006226358935236931, 0.0052467635832726955, 0.0274447500705719, 0.0010538423666730523, -0.03811604902148247, -0.03760956600308418, -0.009703892283141613, 0.0010459715267643332, 0.06202428415417671, 0.00016926616081036627, 0.04875289276242256, 0.009084793739020824, 0.03179517388343811, -0.048481956124305725, -0.011056951247155666, -0.013602331280708313, -0.03878951445221901, 0.035173460841178894, 0.004880093038082123, -0.03132503852248192, -0.007286861073225737, 0.00840596854686737, 0.007823747582733631, 0.00985358003526926, -0.002184155862778425, 0.003691775491461158, 0.011704923585057259, -0.00735616497695446, -0.005245293024927378, 0.07657714933156967, -0.011059897020459175, 0.03268303722143173, 0.006122785620391369, 0.0614449679851532, 0.012955443002283573, -0.02489696629345417, -0.0006866037147119641, 0.03477242588996887, 0.09610156714916229, 0.011991120874881744, 0.008758950978517532, 0.030061034485697746, -0.0077878208830952644, 0.03133315220475197, -0.029336407780647278, -0.003367462893947959, -0.03857777640223503, -0.02545260451734066, -0.004532642662525177, 0.006696752738207579, 0.004749802406877279, -0.04369058087468147, 0.07196822762489319, 0.011789163574576378, 0.039216458797454834, -0.02090131863951683, 0.009420829825103283, 0.006833351217210293, 0.024814927950501442, -0.020798610523343086, 0.022408924996852875, 0.019866151735186577, -0.020377950742840767, 0.02152012661099434, 0.016116861253976822, 0.042775340378284454, 0.024420173838734627, -0.00710783526301384, 0.01120399683713913, -0.0196236465126276, 0.011281300336122513, 0.019456567242741585, -0.0011713720159605145, -0.05069942772388458, -0.026537451893091202, 0.010799555107951164, -0.031148899346590042, 0.050402089953422546, -0.021127071231603622, -0.013760747388005257, -0.017290417104959488, -0.018163448199629784, -0.013320829719305038, 0.010569415055215359, 0.01631680503487587, -0.014987044967710972, -0.02922237478196621, -0.015076438896358013, 0.04081789031624794, 0.02515205182135105, -0.027569811791181564, 0.02727392315864563, -0.015822475776076317, 0.02916611358523369, -0.026559703052043915, 0.0010648880852386355, -0.053472306579351425, -0.010982494801282883, 0.01747817173600197, -0.03958432748913765, -0.02595009095966816, 0.02137802168726921, 0.01692671701312065, 0.009789906442165375, -0.014102763496339321, 0.009272957220673561, 0.015330583788454533, -0.047342587262392044, 0.04189538583159447, 0.004517597611993551, -0.0201780553907156, 0.027158018201589584, 0.04100503399968147, 0.015967603772878647, 0.011243271641433239, -0.04227921739220619, -0.04325639829039574, -0.01195749081671238, 0.024299008771777153, -0.014756028540432453, 0.013236896134912968, 0.024666763842105865, 0.013884180225431919, 0.013850285671651363, -0.057371098548173904, -0.010934977792203426, -0.0019410697277635336, 0.01769946701824665, 0.03671173378825188, -0.017575662583112717, -0.02279878780245781, 0.014512662775814533, 0.04533474147319794, 0.03411354497075081, 0.022303001955151558, 0.034937601536512375, -0.01686829701066017, -0.02311047911643982, -0.035658806562423706, 0.04104091227054596, -0.04059094935655594, -0.0001227112952619791, -0.011290214024484158, 0.028704149648547173, 0.0055545540526509285, 0.041756924241781235, -0.03342852368950844, 0.020497096702456474, -0.010075502097606659, -0.036407846957445145, -0.018480222672224045, 0.017720138654112816, 0.009863709099590778, 0.008987070992588997, 0.045772455632686615, 0.06914982199668884, 0.012236182577908039, 0.016606783494353294, -0.04169024899601936, -0.00417310232296586, -0.007472299970686436, 0.061873629689216614, 0.047335755079984665, 0.016841866075992584, -0.00648369500413537, -0.03658739849925041, 0.001723085530102253, 0.011525683104991913, -0.01683330349624157, 0.014256752096116543, -0.0241593886166811, -0.026181116700172424, -0.03934583067893982, 0.017857497557997704, 0.03301871567964554, 0.03928254172205925, 0.05381958186626434, -0.01118934154510498, -0.037551429122686386, 0.03905389830470085, -0.012410968542098999, -0.048501916229724884, -0.0017135592643171549, 0.009599936194717884, -0.04310654476284981, 0.04097815230488777, 0.011088771745562553, 0.0541265532374382, 0.061796654015779495, 0.0038476220797747374, -0.012802411802113056, 0.0043698265217244625, -0.0305990818887949, -0.05672886595129967, 0.012921329587697983, 0.06757961213588715, -0.03895298019051552, -0.017137575894594193, -0.020746873691678047, 0.0015735356137156487, 0.0028527104295790195, 0.010029798373579979, -0.0259611327201128, 0.01091523002833128, 0.00017833083984442055, 0.01750694029033184, -0.03687450662255287, 0.045041389763355255, 0.05680888518691063, 0.03957472741603851, 0.008586565032601357, 0.015482289716601372 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Load the pipeline For the purposes of this tutorial, we'll initialise the pipeline with the pre-trained weights from the base checkpoint, cvssp/audioldm2. We can load the entirety of the pipeline using the .from_pretrained method, which will instantiate the pipeline and load the pre-trained weights: python from diffusers import AudioLDM2Pipeline model_id = "cvssp/audioldm2" pipe = AudioLDM2Pipeline.from_pretrained(model_id) Output: Loading pipeline components...: 100%|███████████████████████████████████████████| 11/11 [00:01<00:00, 7.62it/s] The pipeline can be moved to the GPU in much the same way as a standard PyTorch nn module: python pipe.to("cuda"); Great! We'll define a Generator and set a seed for reproducibility. This will allow us to tweak our prompts and observe the effect that they have on the generations by fixing the starting latents in the LDM model: python import torch generator = torch.Generator("cuda").manual_seed(0) Now we're ready to perform our first generation! We'll use the same running example throughout this notebook, where we'll condition the audio generations on a fixed text prompt and use the same seed throughout. The audio_length_in_s argument controls the length of the generated audio. It defaults to the audio length that the LDM was trained on (10.24 seconds): python prompt = "The sound of Brazilian samba drums with waves gently crashing in the background" audio = pipe(prompt, audio_length_in_s=10.24, generator=generator).audios[0] Output: 100%|███████████████████████████████████████████| 200/200 [00:13<00:00, 15.27it/s] Cool! That run took about 13 seconds to generate. Let's have a listen to the output audio: python from IPython.display import Audio Audio(audio, rate=16000) Your browser does not support the audio element. Sounds much like our text prompt! The quality is good, but still has artefacts of background noise. We can provide the pipeline with a negative prompt to discourage the pipeline from generating certain features. In this case, we'll pass a negative prompt that discourages the model from generating low quality audio in the outputs. We'll omit the audio_length_in_s argument and leave it to take its default value: python negative_prompt = "Low quality, average quality." audio = pipe(prompt, negative_prompt=negative_prompt, generator=generator.manual_seed(0)).audios[0] Output: 100%|███████████████████████████████████████████| 200/200 [00:12<00:00, 16.50it/s] The inference time is un-changed when using a negative prompt \({}^1\); we simply replace the unconditional input to the LDM with the negative input. That means any gains we get in audio quality we get for free. Let's take a listen to the resulting audio: python Audio(audio, rate=16000) Your browser does not support the audio element. There's definitely an improvement in the overall audio quality - there are less noise artefacts and the audio generally sounds sharper. \({}^1\) Note that in practice, we typically see a reduction in inference time going from our first generation to our second. This is due to a CUDA "warm-up" that occurs the first time we run the computation. The second generation is a better benchmark for our actual inference time.
[ 0.017568282783031464, -0.00014741152699571103, -0.012070548720657825, 0.007587754633277655, 0.02536940574645996, 0.023286962881684303, 0.01020418293774128, 0.05661778151988983, 0.034261275082826614, -0.06935697048902512, -0.013918142765760422, 0.04204251244664192, 0.01763698272407055, 0.05035214126110077, 0.03607606887817383, -0.03386847302317619, 0.08567608892917633, -0.06788348406553268, -0.027652733027935028, 0.07413479685783386, 0.009549722075462341, -0.0031460195314139128, 0.0209516491740942, 0.03151119127869606, -0.050990331918001175, -0.060025185346603394, 0.027363188564777374, 0.09067375957965851, -0.061178985983133316, 0.00522245466709137, -0.0763246938586235, 0.013635601848363876, 0.053176600486040115, -0.0329669713973999, 0.037724945694208145, 0.04059799388051033, -0.09975701570510864, 0.016540855169296265, 0.07601781189441681, 0.013038679026067257, -0.0018818560056388378, 0.03370416909456253, -0.015513332560658455, 0.05298307165503502, -0.009678082540631294, -0.05807547643780708, -0.03743494302034378, 0.01535851787775755, -0.060637690126895905, -0.0025849861558526754, -0.13795806467533112, 0.061114948242902756, -0.021325254812836647, -0.029515845701098442, -0.0017007554415613413, -0.01470195036381483, 0.05619712173938751, 0.011585691943764687, 0.03403029590845108, -0.03531785309314728, 0.04608019068837166, 0.0004816389118786901, -0.0778961181640625, -0.00630206847563386, 0.061034560203552246, -0.02214849926531315, 0.01662338711321354, 0.0596345029771328, -0.047861531376838684, -0.06515877693891525, 0.029355723410844803, -0.010451002046465874, -0.03792842477560043, -0.11909857392311096, 0.0045076110400259495, -0.0038664990570396185, 0.02513141557574272, -0.008455066941678524, -0.036315545439720154, 0.075198695063591, 0.03366202116012573, 0.044234585016965866, 0.01146592665463686, 0.03890812397003174, 0.0083699906244874, 0.020756851881742477, 0.10814809799194336, -0.009964880533516407, -0.0371532216668129, 0.018400905653834343, -0.03458603844046593, -0.0458359494805336, -0.008478064090013504, -0.013544975779950619, 0.06739898771047592, 0.05874250456690788, 0.0004954679170623422, 0.0005411541787907481, 0.02678673528134823, -0.017902124673128128, 0.0016415683785453439, -0.12897460162639618, -0.0024215278681367636, -0.04458785057067871, -0.04267113283276558, 0.128178671002388, -0.08738651126623154, -0.0238243006169796, -0.06636137515306473, 0.04812958091497421, 0.0030182378832250834, -0.02207222767174244, -0.009939582087099552, 0.024152008816599846, -0.05786237493157387, -0.0396791510283947, 0.00893040094524622, 0.03396964073181152, 0.00506098847836256, -0.004116996191442013, -0.05575913190841675, 0.07649418711662292, 0.061271049082279205, -0.02276609092950821, -0.0059573110193014145, 0.06270701438188553, 0.026127435266971588, 0.056370530277490616, 0.027081258594989777, 0.001184615190140903, 0.020335564389824867, -0.0365372896194458, 0.10341145843267441, -0.03163432329893112, 0.013583396561443806, -0.06775001436471939, 0.025626109912991524, -0.0785914957523346, 0.06180739030241966, 0.008603192865848541, -0.023252319544553757, 0.08125012367963791, -0.020464332774281502, -0.04031909629702568, 0.03919428959488869, -0.04722541943192482, -0.07879672199487686, 0.034032247960567474, 0.01635408028960228, 0.019011637195944786, -0.0864000990986824, 0.11425749212503433, -0.046345144510269165, -0.1152149960398674, -0.054033439606428146, 0.0280133169144392, 0.047855038195848465, -0.03274325653910637, -0.05371968448162079, -0.01821362040936947, 0.07430297136306763, 0.04483862593770027, 0.0026311050169169903, -0.01473845075815916, 0.03361523523926735, -0.027996379882097244, -0.02662540040910244, -0.006589329335838556, 0.049826569855213165, -0.013789705000817776, -0.010637928731739521, -0.007528128568083048, 0.03845511004328728, -0.03344740718603134, 0.10367629677057266, 0.022782504558563232, 0.0638536885380745, 0.0029542602133005857, -0.0022822462487965822, -0.024884995073080063, -0.03173661231994629, 0.03659256547689438, -0.025213420391082764, 0.08388424664735794, 0.06463219970464706, -0.07831377536058426, 0.04997844994068146, -0.056207314133644104, -0.023291269317269325, 0.022493552416563034, 0.008327119052410126, 0.011892934329807758, 0.04386550560593605, -0.05860466882586479, -0.005009682849049568, -0.05442385748028755, -0.010325384326279163, 0.01740269362926483, -0.005388071294873953, 0.05726609751582146, 0.06498000025749207, 0.03638303279876709, 0.06488347798585892, -0.038189832121133804, -0.01739690639078617, 0.007376344408839941, -0.01837029680609703, -0.07007959485054016, 0.03560176119208336, 0.031006600707769394, -0.04627729207277298, -0.07680075615644455, 0.01167302392423153, -0.03897826373577118, 0.006739084143191576, -0.004602478351444006, -0.01858077570796013, -0.07839395850896835, 0.01079354714602232, -0.008320033550262451, 0.10324545949697495, -0.058492884039878845, -0.005254029296338558, -0.008698872290551662, -0.06619706749916077, 0.03327649459242821, 0.057464588433504105, 0.03770625963807106, 0.041392963379621506, -0.0800059363245964, -0.052204761654138565, -0.04378701373934746, -0.033708907663822174, 0.06622949242591858, -0.03972342237830162, 0.0009687528945505619, 0.020364953204989433, -0.008062010630965233, 0.00997837632894516, 0.02639283612370491, 0.08035408705472946, 0.012007567100226879, -0.08419923484325409, 0.019273648038506508, -0.05655980110168457, -0.028936803340911865, 0.04884341359138489, -0.039229873567819595, -0.013763298280537128, 0.0027501732110977173, -0.025797121226787567, 0.028760764747858047, -0.02396775782108307, -0.0018292476888746023, -0.0025731988716870546, 0.028124315664172173, -0.0124460244551301, 0.004087005276232958, -0.029743598774075508, 0.051974549889564514, 0.006120846141129732, 0.0015964151825755835, -0.002609091345220804, -0.016894599422812462, -0.035014837980270386, -0.034375522285699844, 0.03790903836488724, -0.008874691091477871, -0.0008878366206772625, -0.03392188996076584, 0.020755095407366753, 0.001991927158087492, 0.030215010046958923, 0.02514626830816269, 0.01015449222177267, 0.03708741441369057, -0.008970806375145912, -0.011695720255374908, -0.014198923483490944, -0.05361885204911232, 0.00864553451538086, 0.010945570655167103, 0.025004126131534576, 0.03783411160111427, 0.0017500536050647497, -0.0009951386600732803, -0.02553756907582283, -0.021512629464268684, -0.028406674042344093, 0.02684619650244713, 0.016802432015538216, 0.0070263235829770565, 0.05349423736333847, -0.017802663147449493, -0.014395385980606079, 0.018694918602705002, -0.020995398983359337, -0.032958026975393295, 0.024190254509449005, 0.01116414088755846, -0.030766868963837624, -0.05184154585003853, -0.014377073384821415, 0.011326317675411701, -0.026728494092822075, -0.00915443617850542, 0.020079655572772026, 0.014195157214999199, -0.07450838387012482, 0.03305445984005928, 0.016901105642318726, -0.04837202653288841, -0.007432793267071247, -0.02763204090297222, 0.02833002805709839, -0.023785626515746117, 0.028585687279701233, -0.03445880115032196, -0.024227920919656754, 0.04468094930052757, -0.02482428587973118, -0.003873032983392477, 0.03666947782039642, -0.04102606326341629, -0.019178908318281174, -0.018427571281790733, 0.04319896548986435, -0.004473669920116663, -0.005679289344698191, 0.022439440712332726, 0.0026536062359809875, -0.03372231125831604, -0.002459613373503089, 0.017475629225373268, 0.022833773866295815, 0.013974231667816639, 0.008722125552594662, -0.006560368929058313, -0.04334118962287903, -0.0729570984840393, -0.004037944134324789, 0.045224450528621674, -0.037609197199344635, -0.024792851880192757, -0.020842378959059715, 0.010269228368997574, 0.03424238786101341, 0.005202216561883688, 0.001981880981475115, -0.018666578456759453, -0.028972849249839783, -0.0042212288826704025, -0.0006350515759550035, -0.01039993017911911, -0.02254377119243145, -0.01379185076802969, 0.03807780519127846, -0.02744339406490326, -0.04444726184010506, -0.007735738065093756, 0.005942352581769228, 0.04683419689536095, -0.002156014321371913, 0.00373671087436378, 0.02214391715824604, 0.04074360430240631, 0.02331598289310932, 0.012978478334844112, -0.02662287838757038, 0.03501936420798302, 0.005793790332973003, -0.010176964104175568, 0.013292846269905567, 0.0735190138220787, 0.020220588892698288, 0.00576278381049633, 0.0027745901606976986, 0.020635563880205154, -0.009747396223247051, 0.0701766237616539, 0.01854471117258072, 0.00046800076961517334, -0.031348779797554016, 0.032260261476039886, 0.02043927274644375, -0.030450381338596344, 0.007523129694163799, 0.021231191232800484, -0.007552889175713062, 0.009844549931585789, -0.03040359541773796, -0.061942946165800095, -0.016708752140402794, 0.020004697144031525, 0.00031480484176427126, -0.0468997098505497, 0.056587133556604385, -0.013403289951384068, 0.0034509720280766487, 0.03314463421702385, -0.01642560586333275, -0.057935357093811035, -0.010947887785732746, -0.013349348679184914, -0.011429847218096256, 0.010943081229925156, -0.02229314297437668, -0.038973454385995865, 0.005962547846138477, -0.03739770129323006, -0.017868932336568832, 0.009342392906546593, 0.01071927323937416, 0.01727832295000553, -0.06256076693534851, -0.007758565247058868, -0.005254129879176617, -0.06462851166725159, -0.006120219826698303, -0.016328932717442513, 0.038435108959674835, 0.016083523631095886, 0.03461375832557678, 0.0637289434671402, -0.029911082237958908, 0.00692309346050024, 0.020909057930111885, 0.02408653311431408, -0.057080041617155075, 0.012331044301390648, 0.014682808890938759, -0.052000243216753006, 0.05140021815896034, 0.02666003815829754, 0.02358224056661129, 0.006010617595165968, 0.016242574900388718, -0.039822328835725784, -0.021819129586219788, -0.02955673448741436, 0.03819509595632553, 0.056403275579214096, 0.010154579766094685, -0.03292960673570633, -0.03171493485569954, 0.016176147386431694, 0.03980930149555206, 0.043436795473098755, 0.006323783192783594, -0.024228837341070175, 0.04289120063185692, -0.0029101145919412374, 0.07120959460735321, 0.03900248184800148, 0.004322797525674105, 0.042006365954875946, -0.03416619449853897, 0.008704876527190208, 0.042881906032562256, 0.041175808757543564, -0.010298981331288815, -0.012137859128415585, 0.05423857644200325, -0.022488953545689583, -0.018831493332982063, -0.012400771491229534, 0.011577905155718327, 0.04233451187610626, -0.042698558419942856, 0.039575472474098206, -0.027580371126532555, 0.045905452221632004, -0.005185871850699186, -0.008409038186073303, -0.024099446833133698, -0.03662316873669624, -0.0013835420832037926, -0.014037915505468845, 0.037004824727773666, 0.022286174818873405, 0.04513883590698242, -0.04992545396089554, 0.053353648632764816, 0.03143705427646637, 0.02742978371679783, 0.026204176247119904, -0.042042944580316544, -0.026974353939294815, 0.0036428426392376423, -0.0031748064793646336, 0.04739154502749443, 0.0026650952640920877, -0.0234821829944849, 0.011165853589773178, -0.03194088488817215, 0.039124298840761185, 0.04325907677412033, 0.026426203548908234, -0.03140479326248169, -0.0010599350789561868, 0.021952055394649506, -0.01733524166047573, 0.00847846269607544, -0.01789577305316925, -0.03715909644961357, 0.02688191644847393, -0.04718819633126259, -0.026660466566681862, 0.028551407158374786, 0.06326908618211746, -0.0033585308119654655, 0.009818460792303085, -0.02737869881093502, 0.044266823679208755, -0.01037485059350729, -0.02566540800035, -0.0074210576713085175, -0.03376729041337967, 0.002127797110006213, -0.015600988641381264, -0.023691700771450996, -0.004537120461463928, 0.036762651056051254, -0.004155236762017012, -0.015932805836200714, 0.03289607912302017, 0.050530802458524704, 0.08258703351020813, -0.006219496484845877, -0.02092866599559784, -0.041007883846759796, 0.029765591025352478, -0.01316322386264801, -0.03833026438951492, 0.010387683287262917, 0.012411589734256268, -0.02721758931875229, 0.024286264553666115, 0.01100797951221466, 0.016402510926127434, 0.02000541426241398, 0.03236115723848343, -0.014128516428172588, -0.015313439071178436, -0.0304348673671484, 0.028164172545075417, -0.005059500224888325, 0.03868919238448143, -0.012808579951524734, -0.026917269453406334, 0.007418346591293812, 0.013914077542722225, -0.030330924317240715, 0.040486302226781845, 0.008028977550566196, -0.02998626045882702, 0.017986200749874115, 0.0032238203566521406, 0.028428055346012115, 0.01863887719810009, -0.04213913530111313, -0.05190149322152138, -0.016868092119693756, 0.012987044639885426, 0.020898854359984398, -0.0356074683368206, 0.014048038050532341, -0.013357480987906456, -0.003960618283599615, -0.06861307471990585, -0.021516602486371994, -0.004569939337670803, 0.00507981376722455, 0.0047151329927146435, -0.013755139894783497, -0.0020575057715177536, 0.003593843663111329, 0.017810726538300514, 0.053047750145196915, 0.00010935553291346878, -0.010797145776450634, -0.02853483334183693, 0.0127090560272336, -0.014551055617630482, -0.00005553842493100092, 0.01560273114591837, -0.04394407570362091, 0.04222460091114044, 0.03547170013189316, 0.017899664118885994, -0.0028305789455771446, -0.012656228616833687, 0.004175151232630014, -0.016024896875023842, 0.08271689713001251, 0.06397901475429535, 0.01952330954372883, 0.02911822497844696, -0.0036525391042232513, -0.021221473813056946, -0.036377180367708206, -0.047829948365688324, -0.028339607641100883, -0.012072602286934853, 0.0071245343424379826, 0.017203615978360176, -0.00974184088408947, -0.014173947274684906, 0.033376939594745636, 0.0137789286673069, 0.04139098525047302, 0.008222697302699089, 0.020311279222369194, 0.019894445315003395, 0.045936983078718185, 0.0036885873414576054, -0.0006221278454177082, -0.01486799493432045, -0.025708531960844994, 0.05156286433339119, 0.01652301475405693, 0.02279393933713436, 0.015939343720674515, 0.009610917419195175, 0.00535787595435977, 0.02869671769440174, 0.01955789141356945, 0.0076860589906573296, 0.004701221827417612, -0.07438713312149048, -0.018941644579172134, 0.00041272814269177616, -0.004710197914391756, -0.003032710636034608, 0.0012577265733852983, -0.004594159312546253, 0.014879819005727768, 0.012056855484843254, -0.01037877518683672, -0.019025135785341263, 0.009067429229617119, -0.01358437817543745, -0.01944783143699169, -0.010558543726801872, 0.00556867616251111, 0.012375998310744762, -0.018185142427682877, -0.04161956533789635, 0.005885603372007608, -0.0405355840921402, -0.0013450345722958446, 0.03792915493249893, -0.029066747054457664, 0.019231127575039864, 0.013247865252196789, -0.019916661083698273, 0.005698570981621742, 0.019529469311237335, 0.015892094001173973, 0.0023838873021304607, 0.024976355955004692, -0.027312833815813065, 0.013786553405225277, -0.048202719539403915, 0.05335897579789162, -0.0024971775710582733, 0.0207002405077219, -0.015662500634789467, 0.03887813538312912, 0.02240612357854843, 0.03239932283759117, -0.012895409017801285, -0.053034111857414246, -0.020102066919207573, 0.004424897488206625, -0.06428715586662292, 0.03516779839992523, 0.008128938265144825, 0.0020800039637833834, -0.0251710657030344, -0.05586116760969162, 0.04222054034471512, 0.054385289549827576, -0.003097282722592354, 0.01681460253894329, 0.008708136156201363, 0.0075575727969408035, 0.048709891736507416, 0.019120216369628906, 0.021219993010163307, 0.022068306803703308, 0.032163310796022415, -0.01967107504606247, -0.01505420170724392, 0.005147547926753759, 0.022056052461266518, -0.053280383348464966, -0.013004621490836143, -0.02335517667233944, -0.019662225618958473, -0.030557936057448387, 0.0020459459628909826, -0.04215019941329956, -0.04559500887989998, -0.008611728437244892, -0.04709281399846077, -0.04336921498179436, -0.00917055830359459, 0.01778849959373474, 0.005286817904561758, 0.056315794587135315, 0.0413518026471138, -0.018036192283034325, 0.021054601296782494, -0.05564587563276291, 0.013272457756102085, -0.03488564118742943, 0.03355579450726509, 0.024441884830594063, 0.022635342553257942, -0.04404083266854286, 0.008626396767795086, 0.009025126695632935, 0.013540398329496384, -0.050256453454494476, -0.016249682754278183, 0.003048266051337123, -0.02380582131445408, -0.042983528226614, -0.008549545891582966, 0.01887550763785839, 0.004061585292220116, 0.05337219312787056, -0.013209220953285694, -0.035495828837156296, 0.027933979406952858, -0.006630798801779747, -0.09380313754081726, -0.00537737924605608, -0.004983828403055668, -0.027733244001865387, 0.01120923925191164, -0.02320563606917858, -0.006949294824153185, 0.0355328805744648, -0.02046574465930462, 0.03922458365559578, 0.039073646068573, -0.012386421672999859, -0.019317150115966797, -0.023758968338370323, 0.024611571803689003, -0.05886644124984741, -0.02526688762009144, -0.003467066213488579, 0.0016911274287849665, -0.007964164949953556, 0.003905113087967038, -0.007772192824631929, 0.03192858397960663, 0.036416128277778625, 0.048294831067323685, -0.032732266932725906, 0.03778734430670738, 0.0613074004650116, 0.0028698178939521313, -0.04501430690288544, 0.03252500668168068 ]
AudioLDM 2, but faster ⚡️
sanchit-gandhi
Aug 30, 2023
audioldm2
guide, audio, diffusers, diffusion
https://huggingface.co/blog/audioldm2
Optimisation 2: Half-Precision By default, the AudioLDM2Pipeline loads the model weights in float32 (full) precision. All the model computations are also performed in float32 precision. For inference, we can safely convert the model weights and computations to float16 (half) precision, which will give us an improvement to inference time and GPU memory, with an impercivable change to generation quality. We can load the weights in float16 precision by passing the torch_dtype argument to .from_pretrained: python pipe = AudioLDM2Pipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe.to("cuda"); Let's run generation in float16 precision and listen to the audio outputs: python audio = pipe(prompt, negative_prompt=negative_prompt, generator=generator.manual_seed(0)).audios[0] Audio(audio, rate=16000) Output: 100%|███████████████████████████████████████████| 200/200 [00:09<00:00, 20.94it/s] Your browser does not support the audio element. The audio quality is largely un-changed from the full precision generation, with an inference speed-up of about 2 seconds. In our experience, we've not seen any significant audio degradation using diffusers pipelines with float16 precision, but consistently reap a substantial inference speed-up. Thus, we recommend using float16 precision by default.
[ 0.009246999397873878, 0.034216903150081635, 0.0001427724346285686, 0.004706008359789848, -0.012861412949860096, -0.020232247188687325, 0.043740011751651764, 0.00008175234688678756, 0.009790784679353237, -0.09486646205186844, 0.006800711154937744, -0.02422185428440571, 0.03269164264202118, 0.011658396571874619, 0.05627623572945595, -0.030036618933081627, 0.016813063994050026, -0.02591080218553543, -0.013033958151936531, 0.06687072664499283, 0.027312371879816055, -0.017301471903920174, 0.020211761817336082, -0.01684848964214325, -0.0870460495352745, -0.061144497245550156, -0.00823271181434393, 0.018561920151114464, -0.08151841163635254, -0.0017536147497594357, -0.10587690025568008, 0.01815984770655632, -0.009308766573667526, -0.0005972186918370426, 0.039000093936920166, 0.006910738069564104, -0.11713171750307083, 0.037788260728120804, 0.03326642885804176, 0.023328090086579323, -0.002907547866925597, 0.005967000499367714, -0.02787986397743225, 0.016447853296995163, -0.01715799793601036, 0.007987839169800282, -0.00921864714473486, -0.014183662831783295, -0.07619018852710724, -0.005140591878443956, -0.1100522056221962, 0.05169223994016647, -0.06395061314105988, 0.02951851487159729, 0.0437932051718235, -0.017031915485858917, 0.035264886915683746, 0.007108698133379221, 0.011880961246788502, 0.010146183893084526, 0.029601287096738815, -0.017747875303030014, -0.024360613897442818, -0.03508457541465759, 0.05289946123957634, -0.001704958500340581, 0.008016273379325867, 0.06051766872406006, -0.03630971908569336, -0.017213543877005577, 0.01897813193500042, 0.005199364386498928, -0.00767966452986002, -0.11285383999347687, -0.02321811392903328, -0.03696378692984581, -0.021018551662564278, -0.028619643300771713, 0.04685704782605171, 0.09305401891469955, 0.00710371183231473, 0.002137985546141863, 0.047315698117017746, 0.06523872911930084, 0.015359699726104736, -0.026371171697974205, 0.08314210176467896, -0.023089949041604996, 0.01531134732067585, 0.00014169282803777605, -0.0012738044606521726, -0.06843604147434235, 0.03229237720370293, 0.010658485814929008, 0.04093318060040474, 0.07833687216043472, 0.016905847936868668, -0.026537206023931503, 0.02985556423664093, 0.027006883174180984, 0.03435476869344711, -0.08796357363462448, 0.021739618852734566, -0.017713602632284164, -0.057875532656908035, 0.12800750136375427, -0.1150863841176033, -0.045145485550165176, -0.06030862778425217, 0.06826911866664886, -0.04217579960823059, 0.05724578723311424, 0.001479530823417008, 0.02138136513531208, -0.08372236043214798, -0.03797653689980507, -0.023954622447490692, 0.05129557475447655, -0.011823872104287148, 0.018179796636104584, -0.04821382090449333, 0.10342840850353241, 0.023050198331475258, -0.025463275611400604, -0.011044632643461227, 0.10015369206666946, 0.0654754638671875, 0.09343436360359192, 0.032601483166217804, 0.0254654623568058, 0.014136630110442638, 0.0155172785744071, 0.03670061379671097, -0.013315759599208832, 0.016652900725603104, -0.06493812799453735, -0.03333181515336037, -0.13188908994197845, 0.04797948896884918, -0.034861911088228226, -0.0327690914273262, 0.060992494225502014, -0.04193256050348282, -0.04553408920764923, 0.011668351478874683, -0.0068596126511693, -0.03209825977683067, 0.032108139246702194, 0.02985907346010208, 0.08969531953334808, -0.08728374540805817, 0.0840192511677742, -0.05542464181780815, -0.14939504861831665, -0.03510284423828125, -0.01016844343394041, -0.013641663827002048, -0.04214133694767952, -0.06294747442007065, -0.038963206112384796, 0.04780849814414978, -0.05383361876010895, -0.017059506848454475, -0.052877914160490036, -0.008920981548726559, 0.016547929495573044, -0.03981475159525871, 0.029321422800421715, 0.03490540385246277, -0.004353626165539026, 0.018036071211099625, -0.018725141882896423, 0.11997991055250168, -0.023772096261382103, -0.007890983484685421, 0.015262948349118233, -0.013391373679041862, 0.04597834497690201, -0.01692517288029194, -0.08384916931390762, 0.033850327134132385, 0.10371269285678864, -0.02264699898660183, 0.09678605943918228, 0.07625816017389297, -0.07165998965501785, 0.038624707609415054, -0.09872209280729294, -0.04200829192996025, 0.05727780982851982, 0.016440454870462418, -0.02863425202667713, 0.017387928441166878, -0.029203854501247406, -0.004160027019679546, -0.03064347803592682, 0.002518017077818513, 0.05832454562187195, 0.02924009971320629, 0.02147003635764122, 0.04881695657968521, -0.04346996918320656, 0.029314976185560226, -0.02591700665652752, -0.027267800644040108, -0.0292216669768095, 0.010834069922566414, -0.07012985646724701, -0.02766435220837593, 0.07347802072763443, -0.008632753975689411, -0.07909468561410904, -0.03598962351679802, -0.03869244456291199, -0.031804509460926056, -0.04585406929254532, -0.0044007920660078526, -0.026342026889324188, 0.0025134964380413294, -0.031212735921144485, 0.0689033642411232, -0.03606000542640686, 0.019498175010085106, -0.012745514512062073, -0.11570937931537628, 0.02231205813586712, 0.04149692878127098, 0.019399913027882576, 0.021884266287088394, -0.015316558070480824, -0.06182117387652397, -0.02638447843492031, -0.025819065049290657, 0.06714417040348053, -0.0003984980867244303, -0.02979583479464054, -0.01711433008313179, 0.03920482471585274, 0.024829665198922157, -0.011780539527535439, 0.023329971358180046, 0.02777341566979885, -0.0749908834695816, 0.009521381929516792, -0.017946042120456696, -0.016906166449189186, 0.07739754766225815, -0.032430149614810944, -0.013793041929602623, 0.01309030968695879, -0.0018063497263938189, 0.019067516550421715, 0.0008192752138711512, -0.008258896879851818, -0.02984505705535412, 0.04312708601355553, 0.02749396115541458, 0.002924872562289238, 0.002314814366400242, 0.05108282342553139, 0.002479594200849533, 0.023946184664964676, 0.00027351779863238335, -0.005049868952482939, -0.009211773052811623, -0.07862603664398193, 0.017535436898469925, 0.019919591024518013, -0.007118308451026678, -0.01230570487678051, 0.00549914687871933, -0.0322284996509552, 0.036029666662216187, 0.04265705868601799, -0.004995942115783691, 0.04131413251161575, 0.017071353271603584, -0.04168674722313881, -0.048049408942461014, -0.021324699744582176, 0.010817591100931168, -0.004141153302043676, 0.042804114520549774, 0.04656463488936424, -0.02796093560755253, 0.003173324279487133, -0.006468502338975668, -0.028933878988027573, -0.0037670067977160215, 0.02115817554295063, 0.017511894926428795, -0.010476358234882355, 0.01739790104329586, -0.0030711174476891756, -0.006775374058634043, 0.039775945246219635, -0.00943053886294365, -0.012150940485298634, 0.02153443545103073, 0.009785163216292858, -0.06226780638098717, -0.026949794963002205, -0.0007814128184691072, -0.020631588995456696, -0.029588693752884865, 0.000620612467173487, -0.0041870190761983395, -0.005463536363095045, -0.06942115724086761, 0.025890452787280083, -0.0024211157578974962, -0.028858331963419914, -0.0076343342661857605, -0.026677433401346207, 0.026044107973575592, -0.012244008481502533, -0.0010333042591810226, 0.018786659464240074, -0.00016011986008379608, 0.06042776256799698, 0.011482291854918003, 0.01391807571053505, 0.0061521404422819614, -0.021727396175265312, -0.0406227670609951, -0.024128491058945656, -0.01809672825038433, -0.018337301909923553, 0.03428881987929344, 0.019977297633886337, -0.01079781074076891, -0.02714148536324501, -0.01365773007273674, 0.021576320752501488, 0.0029275561682879925, 0.006340268533676863, -0.011581850238144398, -0.052337631583213806, -0.032880999147892, -0.05038951709866524, 0.03490521386265755, 0.0005530990310944617, -0.02470162697136402, -0.019944408908486366, -0.03322317823767662, 0.009809467941522598, 0.029285840690135956, 0.021918561309576035, 0.0171478521078825, -0.021121138706803322, -0.007163003087043762, -0.00674517173320055, 0.010578353889286518, -0.017242146655917168, -0.0006144012440927327, -0.01722920686006546, 0.04850009083747864, -0.03900304436683655, -0.06132201477885246, -0.03502402827143669, 0.04841409623622894, 0.034184206277132034, 0.004618324339389801, -0.016544409096240997, 0.004189699422568083, 0.06691263616085052, 0.05465082451701164, 0.006947738118469715, -0.03709746524691582, 0.014951391145586967, 0.019128475338220596, 0.0018230814021080732, -0.017324548214673996, 0.05677724629640579, 0.0255562886595726, -0.012517542578279972, -0.004347085487097502, 0.015118660405278206, -0.012592455372214317, 0.05341372638940811, 0.040441229939460754, 0.0034155615139752626, -0.009660392068326473, 0.008518553338944912, 0.01612008549273014, 0.034360844641923904, 0.003650956554338336, 0.04088662192225456, -0.03267572447657585, 0.003712452482432127, -0.03330429643392563, -0.030180061236023903, -0.027721621096134186, -0.0010248980252072215, 0.0022620700765401125, -0.020160429179668427, 0.04879523441195488, -0.017983783036470413, 0.014225681312382221, -0.009647207334637642, -0.004794260486960411, -0.0638783872127533, -0.026578731834888458, -0.024758096784353256, 0.003283402882516384, 0.028933808207511902, -0.024744512513279915, 0.022901982069015503, 0.03292829543352127, -0.017855538055300713, -0.019154073670506477, 0.010691672563552856, 0.02530706487596035, 0.005222523119300604, -0.015360549092292786, 0.026309121400117874, -0.01030938420444727, -0.036195822060108185, 0.0004574822960421443, 0.012515582144260406, 0.04260213300585747, 0.020124312490224838, 0.03790489211678505, 0.044309426099061966, -0.010189155116677284, -0.018437664955854416, -0.0303427092730999, 0.001222041784785688, -0.0299664456397295, 0.04502979293465614, 0.024085361510515213, -0.0383109375834465, 0.08470688760280609, 0.05619264394044876, 0.027880145236849785, 0.02632766216993332, -0.016240520402789116, -0.07776480913162231, -0.03142391890287399, 0.0024840787518769503, 0.039569564163684845, 0.03702165558934212, 0.03197062388062477, -0.03988250344991684, -0.025135941803455353, 0.028553634881973267, 0.03778417780995369, 0.00681346608325839, 0.023658547550439835, 0.011686285957694054, 0.025523751974105835, -0.011315910145640373, 0.013191580772399902, 0.043346863240003586, 0.018525704741477966, 0.019674064591526985, -0.04454105719923973, -0.006038090214133263, 0.028928015381097794, -0.006519431713968515, 0.02201901376247406, -0.06717602163553238, 0.03982376679778099, -0.0009218385093845427, -0.004507568199187517, -0.00044054529280401766, 0.008585503324866295, 0.03815273568034172, -0.013800224289298058, 0.03750099614262581, -0.007321776356548071, 0.04484887793660164, 0.034124791622161865, -0.0022292551584541798, -0.023465048521757126, -0.014496696181595325, 0.00908065214753151, 0.007792134769260883, 0.045116931200027466, 0.03120388276875019, 0.040593221783638, -0.06563408672809601, 0.06348811835050583, 0.04169096052646637, 0.03493876755237579, 0.020614907145500183, -0.027748100459575653, -0.025433115661144257, -0.006837156601250172, -0.018576722592115402, 0.037944305688142776, 0.018752260133624077, -0.01304276380687952, 0.021203745156526566, -0.005160842556506395, 0.0798594132065773, 0.054452214390039444, -0.0009374861256219447, 0.016540169715881348, -0.026072775945067406, 0.006559410598129034, -0.029625382274389267, 0.01858634315431118, -0.0340266078710556, 0.012604664079844952, 0.04439491033554077, -0.021621529012918472, -0.045142412185668945, 0.03540969640016556, 0.030236948281526566, 0.014530944637954235, -0.011146113276481628, -0.008540942333638668, 0.016568606719374657, 0.009883658029139042, -0.006288100499659777, 0.006686444394290447, -0.02011089026927948, 0.02588161826133728, -0.013702476397156715, -0.03615294024348259, 0.03325194865465164, 0.03918652981519699, -0.023869166150689125, -0.03899156302213669, 0.028268858790397644, 0.028505489230155945, 0.04507146403193474, -0.009161717258393764, -0.041791561990976334, -0.0493491105735302, 0.0029568178579211235, 0.027242839336395264, -0.031700968742370605, -0.008638479746878147, 0.024526208639144897, -0.014137758873403072, 0.008276499807834625, -0.003385352436453104, 0.004291517660021782, 0.01688285917043686, 0.032128721475601196, 0.011246289126574993, -0.019565515220165253, -0.04302922636270523, 0.007712699472904205, -0.0012217675102874637, -0.02124142274260521, -0.0361432246863842, -0.03598872199654579, -0.011187690310180187, 0.015290914103388786, -0.03333235904574394, 0.026669921353459358, -0.030837370082736015, -0.05516218766570091, 0.00849106628447771, 0.027665330097079277, 0.03576977923512459, 0.011591751128435135, -0.02435487136244774, 0.006284280214458704, -0.01635640673339367, -0.03171573951840401, 0.03987259417772293, -0.05181503668427467, 0.03457900509238243, -0.029972877353429794, 0.01954381912946701, -0.001843649661168456, -0.005821095313876867, 0.01890086568892002, -0.016943689435720444, 0.05431424081325531, -0.014566048048436642, -0.04291795939207077, -0.004596346523612738, 0.03653053566813469, 0.016379185020923615, 0.028883429244160652, 0.01548404898494482, -0.022933248430490494, -0.0287439227104187, -0.013501112349331379, -0.004816238768398762, 0.050144098699092865, 0.004637585021555424, 0.005118045024573803, 0.039644982665777206, 0.030146803706884384, 0.010484722442924976, -0.030627112835645676, 0.010488845407962799, 0.009408229030668736, 0.08415424078702927, 0.05426524206995964, 0.014326045289635658, 0.005018563009798527, 0.025703690946102142, 0.03002328611910343, -0.02885955013334751, -0.07648054510354996, -0.05330050364136696, 0.0063850958831608295, 0.024475831538438797, 0.01376103051006794, 0.028311539441347122, -0.07494094222784042, 0.026591679081320763, 0.0036651301197707653, 0.04231290519237518, -0.005933370441198349, 0.02295009046792984, -0.00870769377797842, 0.054247479885816574, -0.020089996978640556, 0.01939994841814041, 0.024626215919852257, -0.018253592774271965, 0.0568050853908062, 0.05802740156650543, 0.023682475090026855, 0.05130341276526451, -0.021092286333441734, 0.0030076184775680304, 0.012772610411047935, 0.026572035625576973, -0.001668495126068592, -0.024002375081181526, -0.03090846538543701, 0.005524736363440752, 0.00824317242950201, -0.011946149170398712, -0.01784118451178074, -0.006921930704265833, -0.023015281185507774, 0.017143750563263893, 0.03344720974564552, -0.018784308806061745, 0.008686687797307968, -0.0035167657770216465, -0.013260495848953724, -0.04442532733082771, -0.046026043593883514, 0.009395169094204903, -0.0071327402256429195, 0.0034102557692676783, -0.023739349097013474, 0.022785844281315804, -0.013258724473416805, 0.015758220106363297, 0.0311900582164526, -0.007175669074058533, 0.039649125188589096, -0.00763980858027935, -0.04243116080760956, 0.03763148933649063, -0.020932160317897797, 0.0009454710525460541, 0.009387913160026073, 0.0009554215939715505, -0.008461990393698215, 0.010565953329205513, -0.022296974435448647, 0.016239356249570847, 0.0139955785125494, -0.025332912802696228, 0.0239803995937109, -0.0014871371677145362, -0.010474014095962048, 0.028288135305047035, -0.01954563334584236, -0.06652843207120895, -0.006885298993438482, -0.006069950759410858, -0.02923702262341976, 0.017929840832948685, 0.020726246759295464, -0.009866221807897091, -0.026682883501052856, -0.05110347270965576, 0.025482848286628723, 0.02376709319651127, 0.0003514452837407589, 0.049110785126686096, -0.009335234761238098, -0.01324017345905304, 0.02188451774418354, 0.01169268973171711, 0.002627287060022354, 0.003786507062613964, 0.05146804824471474, -0.0009118681773543358, 0.018455449491739273, 0.014541903510689735, 0.049279846251010895, -0.040834493935108185, 0.013516847044229507, 0.00828360952436924, 0.023876870051026344, -0.009148882701992989, 0.0061334106139838696, -0.06350070238113403, -0.03365003317594528, -0.010318133048713207, -0.03640639781951904, -0.034506119787693024, -0.020751861855387688, -0.015848660841584206, 0.020917370915412903, 0.05148381367325783, 0.05597558990120888, -0.05586591362953186, 0.03380519524216652, -0.06004142388701439, -0.005334157031029463, -0.005684200208634138, 0.03412408009171486, 0.021878156810998917, -0.02673995867371559, -0.013250050134956837, -0.04327745735645294, 0.03680790960788727, 0.029964977875351906, -0.01758912019431591, -0.003750838106498122, -0.012742219492793083, -0.023187296465039253, -0.02973901480436325, -0.010199702344834805, 0.004837511107325554, -0.012333758175373077, 0.05805899202823639, -0.006680389400571585, 0.005449860822409391, 0.037555016577243805, -0.027997257187962532, -0.06392234563827515, 0.03048687055706978, 0.0005164649337530136, -0.0050209565088152885, 0.004954778589308262, -0.02575713023543358, 0.02844124287366867, 0.023727836087346077, 0.0180523619055748, 0.006493085529655218, -0.004185479134321213, -0.0038395950105041265, -0.05153977870941162, 0.005487481132149696, 0.0350264236330986, -0.04875527694821358, -0.035597071051597595, -0.026013381779193878, -0.008514272049069405, -0.001185956527478993, -0.0007339179865084589, -0.011283944360911846, 0.010675742290914059, 0.07564082741737366, 0.006099385675042868, -0.009630974382162094, 0.007885982282459736, 0.05454980209469795, 0.007046704180538654, 0.00447862921282649, 0.02147815190255642 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
# Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face This article is a cross-post from an originally published post on September 2023 on AWS's website.
[ -0.0024088656064122915, 0.012725276872515678, 0.035090722143650055, -0.01104712300002575, 0.004776718094944954, 0.00021507815108634531, 0.001859211828559637, 0.01872171089053154, -0.030078867450356483, -0.040776826441287994, -0.07001784443855286, 0.04999476298689842, -0.022637957707047462, 0.0954071581363678, -0.0013560348888859153, -0.046956293284893036, -0.036071375012397766, 0.014786548912525177, 0.02182929590344429, -0.0029799621552228928, 0.04970112070441246, -0.04648647829890251, 0.036155346781015396, 0.04406774044036865, -0.06973356753587723, -0.04734800383448601, -0.01427365094423294, -0.020467810332775116, -0.06640622019767761, 0.06526023149490356, -0.06385467201471329, -0.033978480845689774, 0.07412413507699966, 0.033431075513362885, -0.0012328593293204904, -0.018515368923544884, -0.16498303413391113, 0.05234280601143837, 0.011378512717783451, -0.016481850296258926, 0.0096859997138381, -0.03390039876103401, -0.052434004843235016, 0.033440981060266495, -0.024077730253338814, -0.034146904945373535, -0.16510523855686188, 0.050602950155735016, -0.04033597186207771, -0.03523794561624527, -0.10509460419416428, 0.08576485514640808, -0.031888194382190704, -0.02204737812280655, 0.012368230149149895, -0.0036038232501596212, 0.028814315795898438, -0.0636722519993782, -0.02602389082312584, 0.009476151317358017, 0.02127883955836296, -0.08028893917798996, 0.009420985355973244, 0.013634700328111649, -0.020883770659565926, 0.024845536798238754, 0.03189646825194359, -0.019443675875663757, -0.048765525221824646, -0.02384217642247677, 0.02231496013700962, -0.050386860966682434, 0.004846643190830946, 0.013480234891176224, -0.024904120713472366, -0.008146719075739384, -0.008849677629768848, -0.0007252073846757412, 0.06948261708021164, 0.04352649673819542, -0.04727959260344505, -0.002088065491989255, 0.03860943764448166, 0.060325074940919876, 0.06859633326530457, 0.017077893018722534, 0.052604854106903076, -0.09200967848300934, -0.023960744962096214, 0.052558690309524536, 0.07154089212417603, -0.05007847025990486, 0.0381457544863224, 0.017996665090322495, 0.053401462733745575, -0.00972045585513115, 0.05231529101729393, -0.02528361976146698, -0.01966191828250885, -0.04001108184456825, 0.015193280763924122, -0.0857527107000351, 0.02764640748500824, -0.01812034845352173, -0.03324031084775925, 0.07525905966758728, -0.04444340988993645, -0.141561359167099, 0.0013934809248894453, 0.03258996084332466, 0.022276461124420166, 0.07578837126493454, 0.007981105707585812, 0.07233954966068268, -0.1459951251745224, 0.0941065326333046, -0.0007737361011095345, -0.03150687739253044, -0.002419494790956378, 0.020609743893146515, 0.04311569407582283, 0.06539003551006317, 0.03629360720515251, -0.027440829202532768, 0.010037985630333424, 0.04507874697446823, 0.04530883580446243, 0.0038441314827650785, 0.05110098421573639, -0.010812039487063885, 0.021180534735322, -0.03337583690881729, 0.0031501809135079384, 0.01516412291675806, -0.04084846377372742, -0.009133151732385159, 0.03608053922653198, -0.06226629391312599, 0.026431770995259285, -0.02482920140028, -0.01582212559878826, 0.021695148199796677, 0.020862644538283348, 0.033278681337833405, 0.07021434605121613, -0.00423851003870368, -0.07893171906471252, 0.020879613235592842, 0.009849260561168194, 0.020680977031588554, -0.09788911789655685, 0.05968301370739937, -0.1040915921330452, -0.06265119463205338, -0.015193600207567215, 0.07878436893224716, 0.02612524852156639, -0.046553246676921844, -0.05191606655716896, -0.03125922009348869, -0.02669108472764492, 0.024461966007947922, -0.0036148421932011843, -0.07150980830192566, 0.06303302943706512, -0.00651181535795331, 0.03161749988794327, 0.006360567174851894, 0.009913363493978977, -0.018232477828860283, -0.0060212682001292706, 0.0031981219071894884, 0.07118023186922073, -0.029072552919387817, 0.03120575100183487, 0.01342695765197277, 0.0657171681523323, 0.09547109156847, -0.015697119757533073, -0.025903211906552315, -0.011428249068558216, 0.017882466316223145, 0.005920106545090675, 0.01948440819978714, 0.02360541746020317, -0.051214683800935745, 0.08810155093669891, 0.0071298894472420216, 0.024413136765360832, 0.029141344130039215, -0.01738862507045269, -0.04057738557457924, 0.06243990734219551, -0.003568746615201235, 0.00753154419362545, -0.007625569123774767, -0.05473773553967476, 0.18007060885429382, -0.006455019116401672, 0.08366797119379044, 0.033090732991695404, 0.01633932814002037, 0.02398448996245861, 0.019476765766739845, -0.02227671816945076, 0.009910891763865948, 0.0493120513856411, -0.012899110093712807, -0.034897979348897934, -0.006180217489600182, -0.005644896533340216, -0.11333206295967102, 0.02109641022980213, -0.0545121394097805, -0.04099450260400772, -0.014807326719164848, 0.008991459384560585, -0.018044104799628258, -0.03451387584209442, 0.0229467935860157, 0.11079059541225433, 0.030891481786966324, 0.04941074550151825, 0.014928760007023811, 0.0009267423884011805, 0.0334579199552536, 0.09803609549999237, 0.043385088443756104, 0.09272948652505875, -0.03751356154680252, -0.030052557587623596, -0.07939507812261581, -0.057100266218185425, 0.05898979678750038, 0.01528630219399929, -0.04242423549294472, -0.005523110739886761, 0.005596707575023174, 0.004054729361087084, 0.017041508108377457, -0.039901573210954666, 0.01454523392021656, 0.04312958940863609, 0.0427037850022316, 0.01166607066988945, -0.05288930982351303, 0.014095926657319069, -0.03551826998591423, -0.07159055024385452, -0.004202923271805048, -0.07348981499671936, 0.042028266936540604, 0.0029959585517644882, 0.005391288548707962, 0.04808536544442177, 0.03607567027211189, -0.02561836689710617, 0.019136257469654083, 0.0013412947300821543, 0.04448894411325455, 0.037129905074834824, 0.011572104878723621, -0.013302970677614212, -0.016238167881965637, -0.011401159688830376, -0.037167005240917206, -0.006197236478328705, -0.019463468343019485, 0.004236447624862194, -0.004945564083755016, 0.06150638684630394, -0.031971488147974014, 0.004988877102732658, 0.024890359491109848, -0.004243658855557442, 0.023603370413184166, 0.06546119600534439, 0.0006124016363173723, 0.001656377804465592, -0.03203288093209267, 0.01245066337287426, -0.024742305278778076, 0.04065024480223656, 0.019657298922538757, 0.01641577109694481, -0.0007671616622246802, 0.026708094403147697, -0.021544313058257103, -0.04314364492893219, -0.008132630959153175, 0.025249041616916656, 0.018979350104928017, 0.018923025578260422, -0.03500272333621979, 0.027113119140267372, -0.006763211451470852, 0.01443466730415821, -0.04558946564793587, -0.02521147020161152, 0.02311791479587555, -0.039491403847932816, -0.005786594469100237, -0.03890015184879303, 0.0037970615085214376, -0.02579963579773903, -0.00468033691868186, 0.019523221999406815, 0.021172136068344116, -0.10892263799905777, -0.052782244980335236, 0.0026231452357023954, 0.039069246500730515, -0.013338377699255943, -0.03635594621300697, 0.046584147959947586, -0.0035054185427725315, -0.03149709850549698, 0.02218063361942768, 0.033526159822940826, 0.013832401484251022, 0.02136131376028061, -0.008773942478001118, 0.0030322468373924494, 0.008619304746389389, -0.01742463745176792, -0.006411302834749222, -0.02879638411104679, 0.009564351290464401, 0.011212732642889023, 0.04960598796606064, 0.02400628849864006, -0.04159800335764885, -0.00577019015327096, 0.04475918412208557, 0.026500362902879715, -0.013502271845936775, 0.022701479494571686, -0.03626631200313568, -0.006589248310774565, -0.00569155253469944, -0.004893855191767216, 0.023106751963496208, -0.029086697846651077, -0.0069950358010828495, -0.008225909434258938, 0.020676694810390472, 0.06309131532907486, 0.03323512524366379, 0.03970892354846001, -0.022600140422582626, 0.04663292318582535, 0.0010719491401687264, 0.028147028759121895, -0.007924007251858711, -0.0001565576094435528, -0.004908336326479912, 0.049018632620573044, -0.03700214996933937, -0.037916094064712524, -0.014176487922668457, -0.021012725308537483, 0.03335874527692795, 0.009721972979605198, -0.01443749014288187, -0.027747686952352524, 0.01058703288435936, 0.031503014266490936, -0.021643269807100296, -0.03898542746901512, 0.019649168476462364, 0.0304550863802433, 0.005516664125025272, -0.04141067713499069, 0.045156341046094894, -0.020744822919368744, -0.008776157163083553, 0.004193061031401157, 0.015481664799153805, 0.012721078470349312, -0.01628613844513893, -0.012008807621896267, 0.009268192574381828, -0.03204993158578873, 0.02369683049619198, -0.01387053169310093, -0.0005700684268958867, 0.06378356367349625, 0.027148855850100517, -0.022773459553718567, -0.04017530009150505, -0.005976716987788677, -0.025801558047533035, 0.017531251534819603, -0.014868893660604954, -0.01190220471471548, 0.01932690478861332, 0.03543178737163544, 0.036990005522966385, -0.010073013603687286, -0.02784503437578678, 0.001027331338264048, -0.039440494030714035, -0.0133772362023592, -0.029426654800772667, 0.05619840696454048, 0.034654296934604645, -0.012934445403516293, -0.005281824618577957, -0.02381332404911518, -0.015630872920155525, -0.018526384606957436, -0.0079506142064929, -0.020022805780172348, 0.005245799198746681, 0.0063638282008469105, -0.035018064081668854, -0.004573877435177565, 0.019493266940116882, 0.0323713943362236, 0.0030444394797086716, -0.003811500035226345, -0.03294292464852333, 0.012672028504312038, 0.044277578592300415, -0.008321682922542095, -0.04506401717662811, -0.000519576424267143, 0.017774730920791626, -0.047325968742370605, 0.027924872934818268, -0.015805453062057495, -0.012847642414271832, 0.03580141067504883, 0.0010137261124327779, -0.02459377981722355, 0.01266778539866209, -0.0040642567910254, -0.05689194053411484, -0.02298136241734028, -0.0061025419272482395, 0.05432063713669777, -0.016800353303551674, 0.04566864296793938, 0.0034051919355988503, -0.003936073277145624, 0.03725248575210571, -0.03332744166254997, -0.04121771827340126, -0.009013480506837368, 0.005655492655932903, 0.002947986824437976, -0.032461512833833694, 0.01556944940239191, -0.0028260964900255203, -0.031936611980199814, 0.006931026931852102, -0.02096843346953392, 0.02663792110979557, 0.03230874612927437, -0.023010199889540672, -0.06416325271129608, -0.012943175621330738, 0.02807290107011795, 0.009828176349401474, 0.004536760505288839, 0.04584038257598877, 0.00033798947697505355, 0.0580582395195961, -0.0295078344643116, 0.020149823278188705, -0.036884937435388565, 0.003730114083737135, 0.009322685189545155, -0.003708641044795513, -0.020401913672685623, -0.0010589082958176732, 0.04666063189506531, 0.02694375440478325, -0.03274061158299446, 0.00931787583976984, 0.01920427940785885, -0.04461511969566345, 0.013654794543981552, 0.06682900339365005, 0.026920892298221588, -0.028580330312252045, 0.008627934381365776, 0.009477915242314339, -0.03157581016421318, 0.016181066632270813, -0.0049788556061685085, -0.015337941236793995, 0.0006439424469135702, 0.019146712496876717, 0.08021300286054611, 0.06164928153157234, 0.007237359881401062, 0.045177385210990906, 0.04952333867549896, -0.005842413753271103, 0.04370023310184479, -0.04589269682765007, 0.038743261247873306, -0.0007554009789600968, 0.0007819964666850865, 0.004420503508299589, -0.01920725405216217, 0.01449152547866106, 0.01974487490952015, 0.026641547679901123, -0.00851837545633316, -0.013443929143249989, 0.017933454364538193, -0.022171547636389732, -0.016328386962413788, 0.006647746544331312, 0.019559243693947792, -0.0012962047476321459, 0.013725968077778816, 0.024104278534650803, -0.01822325401008129, -0.015797989442944527, 0.004607667680829763, -0.03252306953072548, -0.010047015734016895, 0.04286282882094383, -0.005955393426120281, 0.03046935237944126, -0.035119473934173584, -0.019329283386468887, -0.0010352511890232563, -0.008999200537800789, 0.0049687777645885944, -0.014110323041677475, -0.00673259561881423, 0.010367024689912796, -0.0375819094479084, 0.02769593708217144, 0.01856713742017746, 0.0012801625998690724, -0.008612919598817825, 0.01720047928392887, 0.020860260352492332, 0.011477379128336906, -0.015057417564094067, 0.0738711804151535, 0.012846263125538826, -0.012682395055890083, -0.02093113213777542, -0.01615796610713005, -0.04965447261929512, -0.006958784069865942, -0.034372203052043915, 0.00702127069234848, 0.049843449145555496, 0.0204219501465559, -0.0017901472747325897, 0.00402761809527874, 0.008852713741362095, 0.01939750462770462, 0.019739819690585136, 0.011993687599897385, 0.015226906165480614, -0.015660187229514122, 0.0009945089695975184, 0.004809831269085407, 0.0021814059000462294, -0.029136361554265022, 0.010537141002714634, -0.062345948070287704, 0.009891205467283726, 0.03938007354736328, -0.03210638090968132, 0.056857723742723465, -0.0003361123672220856, -0.04899545758962631, 0.03268260881304741, 0.022722531110048294, 0.02641567774116993, 0.008852937258780003, -0.00006414347444660962, 0.021625518798828125, 0.01252763345837593, -0.027862392365932465, 0.0008055432699620724, 0.049997616559267044, 0.004942326806485653, 0.010226957499980927, -0.017593899741768837, 0.023340461775660515, 0.029333697631955147, 0.001408866373822093, -0.004434778355062008, -0.025321543216705322, 0.030276324599981308, -0.020981619134545326, 0.08298638463020325, 0.05059545859694481, -0.01825150102376938, 0.03321818262338638, -0.010045998729765415, -0.05199893191456795, 0.006649031303822994, -0.028849219903349876, 0.052606698125600815, -0.007428925018757582, -0.0014107992174103856, -0.024708688259124756, 0.03919852152466774, 0.05154319480061531, 0.007410075049847364, 0.005674494430422783, 0.00012140995386289433, 0.05809325724840164, -0.009693597443401814, 0.01822689175605774, 0.01271519623696804, -0.010351971723139286, 0.02153291553258896, 0.04700135439634323, 0.022095797583460808, 0.02672629989683628, -0.026089884340763092, -0.003979428205639124, -0.022565161809325218, -0.003868319559842348, -0.009374368004500866, -0.0076449098996818066, -0.036268386989831924, -0.02403341233730316, -0.025355221703648567, -0.008251110091805458, 0.004084235057234764, -0.003920632414519787, -0.019911346957087517, 0.012640551663935184, 0.013039655052125454, 0.025848019868135452, -0.01640980876982212, 0.01084829680621624, -0.012543856166303158, -0.03479267656803131, 0.0313890166580677, 0.012262487784028053, 0.01442599855363369, 0.0002857903018593788, -0.049142174422740936, -0.020927608013153076, 0.020786894485354424, 0.00126782082952559, 0.00046317261876538396, 0.0032817984465509653, -0.04110999032855034, -0.031361959874629974, 0.05678417161107063, 0.01930561102926731, -0.002654591342434287, 0.020692182704806328, 0.014028799720108509, 0.03289710357785225, -0.04242834076285362, 0.01049859169870615, -0.0182950496673584, 0.001556907664053142, 0.004427305422723293, -0.034959517419338226, 0.01835482195019722, -0.03458990156650543, 0.06125712767243385, 0.01684224233031273, 0.017872273921966553, 0.001634112442843616, 0.026071686297655106, -0.021845249459147453, 0.025322526693344116, -0.04266631230711937, 0.03606307879090309, -0.01563868299126625, -0.0280486810952425, 0.015287036076188087, 0.015247375704348087, 0.019761493429541588, -0.0236721932888031, 0.021741710603237152, 0.05984795093536377, -0.060103047639131546, -0.03148755431175232, -0.013089122250676155, 0.020680619403719902, 0.02010190859436989, 0.03315800800919533, 0.028860168531537056, -0.005464725662022829, 0.0063268085941672325, -0.08228050917387009, 0.00016078642511274666, -0.009318492375314236, -0.0025020248722285032, -0.055435407906770706, -0.025522420182824135, -0.03840218111872673, -0.016323283314704895, -0.013291522860527039, 0.029383022338151932, -0.03800366818904877, 0.00796670001000166, -0.010343925096094608, 0.001307441620156169, -0.02157433331012726, -0.035842426121234894, 0.03443297743797302, 0.028892958536744118, 0.004645811393857002, 0.010705381631851196, -0.030423283576965332, -0.009444115683436394, 0.016663799062371254, 0.03597433120012283, 0.040692053735256195, -0.018716150894761086, -0.027686893939971924, -0.02431017905473709, 0.025410078465938568, -0.02144666202366352, -0.04690488800406456, 0.04995932802557945, -0.0098210908472538, -0.006951877847313881, -0.02115841768682003, -0.0006884640315547585, 0.05619645491242409, -0.036377448588609695, 0.03197386488318443, -0.00021866064344067127, -0.019154278561472893, -0.007284313440322876, -0.0015985849313437939, -0.0371110774576664, 0.006115724798291922, 0.0006786930025555193, 0.01898195408284664, 0.05127460137009621, 0.012582257390022278, 0.030084598809480667, -0.06639202684164047, -0.0017542653949931264, 0.013222931884229183, -0.020025674253702164, -0.09877672791481018, -0.03960242494940758, -0.01274922490119934, 0.006593168247491121, -0.013383458368480206, -0.0800754651427269, 0.020393967628479004, -0.019952263683080673, -0.003885742509737611, -0.01575077325105667, -0.04926934838294983, -0.007226684130728245, -0.032930824905633926, 0.02047710306942463, 0.014632262289524078, 0.022545358166098595, 0.04855204373598099, 0.008101633749902248, 0.014293618500232697, 0.013595708645880222 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
Outcome | Expanding ML to New Use Cases The ML team at Fetch is continually working on new models and iterating on existing ones to tune them for better performance. “Another thing we like is being able to keep our technology stack up to date with new features of Amazon SageMaker,” says Chris Lee, ML developer at Fetch. The company will continue expanding its use of AWS to different ML use cases, such as fraud prevention, across multiple teams. Already one of the biggest consumer engagement software companies, Fetch aims to continue growing. “AWS is a key part of how we plan to scale, and we’ll lean into the features of Amazon SageMaker to continue improving our accuracy,” says Corzine.
[ 0.021947573870420456, -0.00028627735446207225, -0.020556792616844177, -0.042409464716911316, -0.018674684688448906, 0.061368707567453384, -0.04442672058939934, -0.018430564552545547, 0.0002878377272281796, -0.02913384512066841, -0.0646868571639061, 0.007543838117271662, -0.0005960535490885377, 0.09492750465869904, 0.02386564202606678, -0.05354776978492737, 0.008109520189464092, 0.02689986862242222, -0.025161394849419594, -0.024283045902848244, -0.0020428088027983904, -0.027852464467287064, 0.051360152661800385, 0.025703243911266327, -0.08616296947002411, 0.022817064076662064, -0.00870050024241209, -0.017435355111956596, -0.07952894270420074, 0.06449674069881439, -0.007403835654258728, 0.023788105696439743, -0.03211023285984993, -0.0034055751748383045, -0.07486157864332199, 0.019482115283608437, -0.06753044575452805, 0.06452757120132446, -0.05018934980034828, -0.05366694927215576, 0.02440210059285164, 0.00274521391838789, -0.09777556359767914, -0.017026666551828384, 0.014297718182206154, 0.0021848275791853666, -0.12362035363912582, -0.05891309306025505, -0.05922974273562431, 0.0061055985279381275, -0.107062429189682, 0.08101226389408112, -0.06982821971178055, -0.011070833541452885, 0.061927422881126404, 0.022610461339354515, 0.028248261660337448, -0.08701552450656891, -0.030515512451529503, -0.01240503042936325, -0.006117961835116148, -0.08490042388439178, 0.0938234031200409, -0.02519875019788742, -0.03380381315946579, -0.06360489875078201, 0.0646260604262352, -0.025049583986401558, -0.04511512070894241, -0.028877541422843933, 0.033661771565675735, -0.06633509695529938, -0.03898825868964195, 0.020250439643859863, 0.01036464050412178, -0.03873686119914055, 0.0026483682449907064, 0.011873211711645126, 0.032089024782180786, -0.03435967490077019, -0.06027827039361, 0.07991864532232285, 0.055950045585632324, -0.0002724798978306353, 0.04514169320464134, 0.013035597279667854, 0.002003900008276105, -0.11013279110193253, 0.005793045274913311, 0.11375503242015839, 0.07226046174764633, -0.06551671028137207, 0.06595869362354279, 0.045536886900663376, 0.059546392410993576, -0.036468517035245895, -0.018857041373848915, -0.006253449246287346, -0.03825782239437103, -0.05710822343826294, 0.013192899525165558, -0.05517259240150452, -0.020184166729450226, -0.04393875598907471, -0.05693690851330757, 0.0389462374150753, -0.03194545954465866, -0.11005660891532898, -0.020536525174975395, 0.01181039959192276, 0.04910542443394661, -0.0077638342045247555, -0.003714999184012413, 0.0903027206659317, -0.08047539740800858, 0.08957023918628693, 0.03536327928304672, 0.04825639724731445, 0.010025331750512123, -0.02772458828985691, 0.05852610245347023, 0.023254748433828354, -0.005984107032418251, 0.03828724846243858, -0.01513717882335186, 0.047025300562381744, -0.017774304375052452, -0.005539853125810623, 0.010384592227637768, -0.07954727113246918, 0.015863405540585518, -0.050965119153261185, -0.006276211701333523, 0.03825107589364052, -0.020664852112531662, 0.02071124128997326, 0.023944778367877007, -0.07984482496976852, 0.023537790402770042, -0.024503780528903008, 0.018576186150312424, 0.019568579271435738, 0.03205929696559906, 0.05073857679963112, 0.07910464704036713, 0.08043990284204483, -0.015941662713885307, -0.009436290711164474, -0.0038136006332933903, 0.05454607307910919, -0.017095375806093216, 0.04754718393087387, -0.056111231446266174, -0.12313956767320633, 0.0051133958622813225, 0.10253199934959412, 0.02043347805738449, 0.015828736126422882, 0.009910086169838905, -0.012727764435112476, -0.04214438796043396, 0.05506114661693573, 0.028672484681010246, -0.05877307802438736, 0.03548126667737961, 0.0154228201135993, -0.02048669196665287, 0.0036747350823134184, 0.008361143060028553, 0.07360918819904327, -0.06645408272743225, -0.014860514551401138, 0.04083098843693733, -0.03600843623280525, 0.08461875468492508, 0.018072037026286125, 0.017915166914463043, 0.0006055755657143891, 0.014758072793483734, -0.021302230656147003, -0.012040085159242153, 0.03872212395071983, 0.004466456361114979, -0.03861623257398605, -0.002841962268576026, 0.024119123816490173, 0.09926076978445053, -0.0011900055687874556, 0.010967163369059563, -0.013524794951081276, 0.021418318152427673, 0.016436101868748665, 0.07348571717739105, 0.055972736328840256, 0.027285601943731308, 0.010957924649119377, -0.028917808085680008, 0.07860492169857025, -0.004313370678573847, -0.006926725618541241, 0.02975274808704853, 0.01064964197576046, 0.030994044616818428, 0.020621920004487038, -0.0030562730971723795, -0.0011990191414952278, 0.06122881919145584, -0.009040209464728832, -0.05518524721264839, 0.003790884278714657, 0.0191214457154274, -0.1012144684791565, -0.010181281715631485, -0.07346055656671524, -0.019630055874586105, -0.0324428416788578, -0.07638413459062576, 0.02927609719336033, -0.04748077318072319, 0.016597677022218704, 0.07201282680034637, -0.0001354149280814454, 0.03455062583088875, 0.01111586857587099, 0.06585036218166351, 0.0840335264801979, 0.07785291224718094, 0.050326358526945114, 0.027665529400110245, -0.03559248894453049, -0.0014602087903767824, -0.05526458099484444, -0.0056942836381495, 0.006915809120982885, -0.013752885162830353, -0.042186908423900604, 0.011667778715491295, -0.0003540663165040314, -0.002892394782975316, -0.002359420992434025, 0.024990878999233246, 0.07651779055595398, -0.027569817379117012, 0.06402349472045898, 0.09609272330999374, -0.0789303407073021, 0.009936023503541946, -0.05218416079878807, -0.005509387236088514, -0.035020291805267334, -0.06399054825305939, -0.00426809536293149, -0.03751374036073685, -0.03993794694542885, 0.039860714226961136, 0.027421722188591957, -0.001348290592432022, 0.012905176728963852, -0.03177785128355026, 0.057002417743206024, 0.00812859833240509, 0.027392493560910225, 0.030944926664233208, -0.024323299527168274, 0.009846690110862255, -0.05377177521586418, -0.0204313974827528, -0.024945588782429695, 0.0014461757382377982, -0.027694886550307274, 0.027444414794445038, -0.05723952874541283, 0.007407022174447775, -0.008917221799492836, -0.003403470618650317, 0.019904043525457382, 0.04717503860592842, 0.02065691538155079, -0.007399956230074167, -0.06410565972328186, 0.005098236259073019, -0.014841402880847454, 0.04460398107767105, 0.008878398686647415, 0.0016854561399668455, 0.002067802008241415, -0.008905588649213314, 0.019432224333286285, -0.01138011459261179, 0.028334040194749832, 0.017072957009077072, -0.0002221546892542392, -0.0047485302202403545, 0.011920497752726078, 0.011040573008358479, 0.008500155061483383, 0.020964231342077255, 0.0008267209050245583, -0.060905180871486664, 0.024873850867152214, -0.0371512696146965, -0.018420519307255745, -0.03581935167312622, 0.0016269816551357508, 0.00827352050691843, -0.006674873176962137, 0.021488267928361893, -0.0016340026631951332, -0.07274793833494186, -0.05918091535568237, -0.014280514791607857, 0.034009166061878204, 0.04801458492875099, 0.0004890842828899622, 0.02705485187470913, -0.021340688690543175, -0.03355225548148155, 0.029759015887975693, 0.012860603630542755, 0.019186953082680702, 0.049432188272476196, -0.008103049360215664, 0.012312514707446098, 0.033897146582603455, -0.02319292537868023, -0.02617013081908226, -0.028650395572185516, 0.013645479455590248, 0.030525730922818184, 0.001939984387718141, -0.006723773665726185, -0.0010896227322518826, -0.047841742634773254, 0.05227096006274223, 0.02044617012143135, 0.03399597480893135, 0.009371902793645859, -0.010671249590814114, -0.021955516189336777, -0.03746074065566063, -0.025474941357970238, -0.017940882593393326, -0.021572861820459366, 0.02362344227731228, 0.02272001840174198, 0.037464942783117294, 0.04969063401222229, 0.022576183080673218, 0.026747366413474083, -0.01857682503759861, 0.016191205009818077, -0.02602326311171055, 0.04312147945165634, -0.01694617234170437, 0.01105850376188755, 0.027446642518043518, 0.02794358879327774, -0.023130422458052635, -0.013063332997262478, -0.03425745666027069, -0.03053097240626812, 0.030630173161625862, -0.0015047541819512844, -0.04806223139166832, -0.0015679033240303397, -0.02582954801619053, 0.016874609515070915, -0.00017757699242793024, 0.009444070048630238, 0.003118359949439764, 0.035147909075021744, -0.0387040376663208, -0.007060542237013578, -0.03565578535199165, 0.011927206069231033, -0.04518747329711914, 0.020050713792443275, -0.013783474452793598, 0.023025963455438614, -0.0014751392882317305, 0.013541067950427532, 0.0004636262310668826, -0.03378123790025711, 0.013993142172694206, 0.038021840155124664, 0.012622653506696224, 0.05288344621658325, 0.05070311948657036, 0.00991727039217949, -0.05081920325756073, 0.003702196292579174, -0.01557078305631876, 0.05569904297590256, -0.030043302103877068, 0.006366115994751453, -0.04214867949485779, -0.015205999836325645, 0.05348033457994461, 0.0563717857003212, -0.05663364753127098, 0.026524171233177185, 0.012192870490252972, 0.019205914810299873, -0.0181502066552639, 0.036284077912569046, 0.0515960268676281, -0.039133455604314804, 0.013603813014924526, -0.010967789217829704, -0.014597737230360508, -0.019247038289904594, -0.026773029938340187, 0.010062784887850285, -0.012893116101622581, -0.026925817131996155, -0.0352698415517807, -0.03266027569770813, -0.025659793987870216, 0.015823109075427055, -0.01582122966647148, -0.059746112674474716, -0.020746054127812386, 0.021433280780911446, 0.046654075384140015, 0.0012653281446546316, 0.019209090620279312, -0.014447922818362713, 0.024110227823257446, -0.03312478959560394, -0.02345493622124195, -0.019654883071780205, -0.027119990438222885, 0.009439492598176003, -0.015881163999438286, 0.010773305781185627, -0.018220210447907448, 0.006082258187234402, -0.05141431838274002, -0.013128871098160744, -0.03277129307389259, 0.024856360629200935, 0.012992311269044876, 0.03167354315519333, 0.008624225854873657, -0.012502118945121765, 0.061831213533878326, -0.030828578397631645, -0.013087362982332706, 0.004301642533391714, 0.002745442558079958, -0.0098465196788311, -0.021339770406484604, 0.011733279563486576, -0.08443266153335571, -0.0019629730377346277, -0.016210976988077164, -0.0015629582339897752, 0.01682625338435173, -0.011838354170322418, 0.011759349144995213, -0.03201306611299515, -0.0025152328889817, 0.0273797158151865, -0.0036725474055856466, -0.029045546427369118, 0.022979171946644783, 0.01916615106165409, 0.05027219280600548, -0.026118282228708267, 0.04395155608654022, -0.004483961965888739, -0.01018442865461111, 0.013281945139169693, 0.004198411013931036, -0.01652521826326847, -0.017735134810209274, 0.031584616750478745, 0.059959180653095245, -0.028580043464899063, -0.014117262326180935, -0.05255453288555145, -0.031312622129917145, -0.015663743019104004, 0.05048321560025215, 0.07329520583152771, -0.006288221571594477, -0.05251162126660347, 0.004273888189345598, -0.0024462779983878136, -0.011483722366392612, -0.044590339064598083, -0.016107933595776558, 0.007244073320180178, 0.002887882525101304, 0.051989201456308365, 0.020491119474172592, -0.011298773810267448, 0.02190922573208809, 0.018608296290040016, -0.02518932893872261, 0.030589783564209938, -0.01695125736296177, 0.019598262384533882, 0.01226385310292244, 0.012766418047249317, -0.006842915900051594, -0.01041519083082676, -0.0030777021311223507, 0.006391070317476988, 0.015187368728220463, 0.026673253625631332, -0.01015420537441969, 0.018195172771811485, -0.07423096895217896, 0.023620475083589554, 0.01030820794403553, 0.04232975095510483, 0.0029906423296779394, -0.007221149746328592, 0.02204681932926178, 0.010304458439350128, 0.015413758344948292, -0.00473361648619175, -0.049223411828279495, 0.00952943041920662, 0.06299812346696854, -0.010147816501557827, -0.002397362142801285, -0.0203104168176651, -0.00590523611754179, 0.019805755466222763, -0.024270769208669662, 0.013116223737597466, -0.05198172107338905, -0.012470216490328312, 0.029668893665075302, -0.018598074093461037, -0.025321513414382935, 0.004833454731851816, -0.02123912237584591, -0.0329645574092865, 0.020720573142170906, 0.0039223977364599705, -0.021513892337679863, -0.028600117191672325, 0.07861261069774628, -0.01105931494385004, -0.03572278842329979, -0.02613547071814537, -0.014274288900196552, -0.02513296902179718, -0.04597359895706177, 0.010310287587344646, 0.03249601647257805, -0.040558524429798126, 0.03378772363066673, -0.0331546775996685, 0.011705363169312477, -0.026782631874084473, 0.01711914874613285, 0.04164885729551315, 0.017812995240092278, -0.029662124812602997, -0.027561625465750694, 0.029154548421502113, 0.012423410080373287, -0.002419614465907216, -0.02102026529610157, -0.018003538250923157, -0.04420153424143791, 0.022272130474448204, 0.051591839641332626, -0.022368745878338814, 0.053073301911354065, -0.013270526193082333, -0.05107162892818451, -0.0012651714496314526, 0.014416324906051159, 0.02585633471608162, 0.03592789173126221, 0.06045913323760033, 0.011659028008580208, 0.024947218596935272, 0.013083860278129578, -0.028685040771961212, 0.015108844265341759, 0.050691552460193634, 0.008413172326982021, -0.03902450576424599, 0.04002660512924194, 0.04006922245025635, 0.0383220911026001, 0.005682095419615507, 0.017956258729100227, 0.01841638796031475, 0.005236949305981398, 0.05071059241890907, 0.03510616347193718, -0.023133940994739532, 0.02263765223324299, -0.010737334378063679, -0.04127594083547592, 0.013669339939951897, -0.05599695444107056, 0.044753044843673706, -0.005944418255239725, -0.023861536756157875, 0.018014704808592796, 0.05270981788635254, 0.04770946875214577, 0.015887731686234474, 0.033382683992385864, -0.007605161517858505, 0.03409532830119133, 0.00762836541980505, 0.01726972497999668, 0.002044810215011239, 0.004921033512800932, -0.010027527809143066, -0.022120730951428413, -0.0014173921663314104, 0.021323421970009804, 0.017301321029663086, 0.036234140396118164, -0.04837821424007416, -0.0021387527231127024, 0.0289553701877594, 0.03823654726147652, -0.06486855447292328, -0.04347509145736694, -0.046935684978961945, -0.024880951270461082, -0.010950334370136261, 0.00034660109668038785, 0.0070132240653038025, 0.03936193510890007, 0.022425776347517967, 0.04994049295783043, 0.003048914484679699, -0.029056869447231293, -0.017722101882100105, -0.040197983384132385, -0.025530457496643066, -0.020337648689746857, 0.03445300832390785, 0.020784344524145126, -0.02753806672990322, -0.02363021858036518, 0.026840362697839737, 0.009669801220297813, -0.008288531564176083, 0.01830078661441803, -0.0526750348508358, -0.0021043093875050545, 0.019671473652124405, 0.025621937587857246, 0.009518558159470558, 0.044616058468818665, 0.009939778596162796, 0.01568102277815342, -0.05396375060081482, 0.029070990160107613, -0.024731211364269257, -0.04833516106009483, -0.03787599503993988, -0.02661171741783619, 0.006583027075976133, 0.012907982803881168, 0.01856633834540844, -0.013926302082836628, 0.06651721894741058, 0.012813949026167393, 0.04138189181685448, -0.004358254373073578, 0.02291015535593033, -0.06633942574262619, -0.0007326679187826812, -0.01082149613648653, -0.014263017103075981, 0.00881941057741642, -0.01037563756108284, 0.01194112841039896, -0.0015065118204802275, 0.030657367780804634, 0.04146358743309975, 0.00045246651279740036, -0.039586037397384644, 0.014252361841499805, 0.018651865422725677, 0.02342616580426693, 0.05899764597415924, -0.01641077920794487, 0.006379489786922932, 0.00564473494887352, -0.04414653405547142, -0.03407580778002739, -0.03405669704079628, 0.03349735215306282, -0.027205944061279297, -0.03551169112324715, -0.03247074410319328, 0.03362850472331047, -0.0012804403668269515, 0.026782521978020668, -0.013191355392336845, 0.04843861237168312, -0.01832457073032856, -0.02340657263994217, -0.04081622511148453, 0.0006811268976889551, 0.05239364132285118, -0.0018290805164724588, 0.02546052075922489, -0.02973746508359909, -0.008250921033322811, 0.006196280475705862, 0.00786516536027193, 0.06445974856615067, 0.02374161221086979, -0.04313931614160538, -0.0005884079146198928, 0.03099352866411209, 0.009786335751414299, -0.005542781203985214, -0.0430489145219326, 0.05481124669313431, -0.004934265743941069, 0.04899309575557709, -0.007030613720417023, 0.019249731674790382, 0.041506752371788025, -0.015956036746501923, -0.010754236951470375, -0.0009434639941900969, -0.010166024789214134, -0.005267799366265535, -0.02166900411248207, -0.021921232342720032, -0.04827408492565155, 0.004589191172271967, -0.024187112227082253, 0.043262772262096405, 0.028648419305682182, 0.032429929822683334, -0.04600640758872032, -0.02210233360528946, 0.03096139430999756, -0.06580416858196259, -0.06735792011022568, -0.010662462562322617, 0.017466483637690544, 0.02727329172194004, -0.001353576546534896, -0.03414692357182503, 0.02216501161456108, -0.01197446696460247, -0.0024690264835953712, 0.008344558998942375, 0.005157900042831898, 0.022904332727193832, -0.01440222468227148, 0.01303355023264885, 0.021781379356980324, 0.054268136620521545, 0.06201886013150215, 0.049676474183797836, -0.022908339276909828, -0.013233226723968983 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
Opportunity | Using Amazon SageMaker to Accelerate an ML Pipeline in 12 Months for Fetch Using the Fetch app, customers can scan receipts, receive points, and redeem those points for gift cards. To reward users for receipt scans instantaneously, Fetch needed to be able to capture text from a receipt, extract the pertinent data, and structure it so that the rest of its system can process and analyze it. With over 80 million receipts processed per week—hundreds of receipts per second at peak traffic—it needed to perform this process quickly, accurately, and at scale. In 2021, Fetch set out to optimize its app’s scanning functionality. Fetch is an AWS-native company, and its ML operations team was already using Amazon SageMaker for many of its models. This made the decision to enhance its ML pipeline by migrating its models to Amazon SageMaker a straightforward one. Throughout the project, Fetch had weekly calls with the AWS team and received support from a subject matter expert whom AWS paired with Fetch. The company built, trained, and deployed more than five ML models using Amazon SageMaker in 12 months. In late 2022, Fetch rolled out its updated mobile app and new ML pipeline.
[ 0.011894311755895615, 0.053699079900979996, -0.006973384413868189, -0.004066242836415768, 0.009758816100656986, 0.05163584649562836, -0.01799410954117775, 0.004667040891945362, 0.01037581916898489, 0.023394642397761345, -0.014750966802239418, 0.05672368034720421, 0.009987303987145424, 0.0611380934715271, 0.058220699429512024, -0.09550940245389938, -0.013443474657833576, 0.03636084496974945, 0.010078709572553635, -0.0633755773305893, 0.027759430930018425, -0.0329451784491539, 0.05647539719939232, 0.06608684360980988, -0.08856818825006485, 0.01904241368174553, 0.030178947374224663, -0.04565519466996193, -0.051885008811950684, 0.0783330425620079, -0.02301313914358616, 0.0010557868517935276, 0.035956010222435, -0.03784208372235298, -0.030543286353349686, 0.010090199299156666, -0.10034655034542084, 0.017003599554300308, -0.002850994700565934, -0.05179157853126526, 0.002069914247840643, 0.0014523678692057729, -0.05375804007053375, -0.00121768016833812, 0.004320998676121235, -0.017692945897579193, -0.11483427882194519, -0.05484425276517868, -0.0817703828215599, -0.010335230268537998, -0.101907879114151, 0.08161383867263794, -0.08683531731367111, -0.04988609626889229, 0.02074727602303028, 0.0317484587430954, 0.03708871826529503, -0.001168651506304741, -0.0684896931052208, 0.005446576979011297, -0.000423239340307191, -0.0998370423913002, 0.05172731354832649, -0.01697327382862568, -0.010673252865672112, -0.04596211761236191, 0.05083663389086723, 0.009113896638154984, -0.0034829783253371716, -0.041700948029756546, 0.052239980548620224, -0.117103211581707, -0.06417273730039597, 0.016955114901065826, -0.012338388711214066, -0.03494063764810562, -0.0007201755652204156, 0.0571049340069294, 0.03764767572283745, -0.036954544484615326, -0.061833109706640244, 0.026557153090834618, -0.0060998317785561085, 0.005480938125401735, 0.08611168712377548, 0.008732417598366737, 0.0655260756611824, -0.12942717969417572, -0.04141007736325264, 0.013108992949128151, 0.08442888408899307, -0.015142823569476604, 0.029562147334218025, 0.032711226493120193, 0.010586868040263653, -0.032067276537418365, 0.04748416692018509, -0.012287833727896214, -0.025716526433825493, -0.07654200494289398, 0.085330531001091, -0.0691201239824295, 0.0009325850987806916, 0.03202630579471588, -0.052106570452451706, 0.07983829826116562, -0.08413480222225189, -0.10090956091880798, -0.017647944390773773, 0.0023730776738375425, 0.08473711460828781, 0.036657918244600296, -0.05874475836753845, 0.0958896353840828, -0.08485428988933563, 0.0539027638733387, 0.06870551407337189, 0.013546888716518879, -0.016852473840117455, -0.07596936076879501, 0.06871513277292252, 0.056999124586582184, 0.017407627776265144, -0.004309710115194321, -0.03584425896406174, 0.03635260462760925, 0.01514782290905714, -0.02348226122558117, 0.029722144827246666, -0.04759743809700012, 0.03137493133544922, -0.0639948770403862, -0.021638812497258186, 0.014508232474327087, 0.004900337662547827, 0.022527866065502167, 0.04421784728765488, -0.05742296203970909, 0.03964069485664368, 0.011644149199128151, 0.021760113537311554, 0.07798061519861221, 0.006681872997432947, 0.0010037468746304512, 0.08279001712799072, 0.027738241478800774, -0.0303366519510746, -0.027181405574083328, 0.014879726804792881, 0.021514015272259712, -0.11587049067020416, 0.03625463321805, -0.05913709104061127, -0.08235189318656921, -0.031144501641392708, 0.09527362883090973, 0.05615532770752907, 0.04761337861418724, -0.02740548551082611, -0.018223406746983528, -0.07693351805210114, 0.029785428196191788, 0.03165677934885025, -0.029536046087741852, -0.009627465158700943, 0.03413210064172745, 0.04907257482409477, 0.00026609504129737616, 0.002989591332152486, -0.017889775335788727, 0.028107410296797752, -0.04889847710728645, 0.03771844133734703, -0.03229546919465065, 0.03900347650051117, 0.03136492520570755, 0.05010739713907242, 0.019948380067944527, 0.015510030090808868, -0.051869168877601624, -0.03916887193918228, 0.05159072205424309, 0.0022381942253559828, -0.013730150647461414, 0.006215906701982021, -0.011638112366199493, 0.08463484793901443, 0.0136327613145113, -0.014011762104928493, -0.026777353137731552, -0.015503611415624619, 0.00235776137560606, 0.06726007163524628, -0.029106909409165382, -0.022916408255696297, 0.005248753819614649, -0.012722491286695004, 0.0766211673617363, 0.017592180520296097, 0.025088803842663765, 0.06029845401644707, 0.006825553718954325, 0.015836238861083984, 0.007455095648765564, 0.016374418511986732, -0.0026828828267753124, 0.03541446477174759, -0.015349242836236954, -0.0010438694152981043, 0.012068944051861763, -0.015817593783140182, -0.07583118230104446, 0.026285741478204727, -0.04959898442029953, 0.013736330904066563, 0.004003037698566914, -0.0179279912263155, 0.001999377505853772, -0.020679490640759468, -0.0013040053891018033, 0.06578124314546585, -0.029187090694904327, -0.00018533818365540355, -0.002677596639841795, 0.03403325751423836, 0.016950303688645363, 0.04124228656291962, 0.06595932692289352, 0.041050754487514496, 0.0027853965293616056, 0.00795653648674488, -0.060533542186021805, -0.05230390653014183, -0.01798938401043415, -0.04397295415401459, -0.044615812599658966, 0.026740718632936478, -0.028800126165151596, -0.012003927491605282, 0.05705111846327782, 0.04172749072313309, 0.07123085111379623, -0.024098040536046028, 0.025427216663956642, 0.06552704423666, -0.07418157905340195, 0.04783947020769119, -0.03468729928135872, -0.02328510396182537, -0.040582358837127686, -0.08988498151302338, 0.048908308148384094, -0.06746085733175278, -0.04946822673082352, 0.044206611812114716, 0.020214421674609184, 0.004660680424422026, 0.03513306379318237, 0.02429666928946972, 0.0765426903963089, -0.010454732924699783, 0.052411649376153946, 0.02200884185731411, 0.010425635613501072, -0.009477338753640652, -0.04744503274559975, 0.0031927493400871754, -0.023884132504463196, 0.0016475616721436381, 0.00039590991218574345, 0.03718692436814308, -0.06902175396680832, -0.02230878174304962, 0.02198789082467556, 0.03130480647087097, 0.021303782239556313, 0.03654555603861809, 0.03912666067481041, -0.014032538048923016, -0.04056795686483383, 0.036932796239852905, -0.03503561019897461, -0.009109104983508587, -0.00021343638945836574, 0.03914455324411392, 0.02103031799197197, 0.02964334934949875, -0.01783820055425167, -0.022039709612727165, 0.012125171720981598, 0.0211078729480505, 0.016580404713749886, 0.010445383377373219, -0.03614285588264465, 0.02448955923318863, 0.006298236083239317, 0.0064469315111637115, 0.0032790317200124264, -0.02648802101612091, 0.05558587238192558, -0.014041741378605366, -0.042501699179410934, -0.07359248399734497, 0.012968182563781738, -0.016726035624742508, -0.008729930967092514, 0.015593362972140312, -0.012101010419428349, -0.0648128017783165, -0.025401758030056953, -0.036988552659749985, -0.02793688327074051, 0.041226133704185486, -0.02921144664287567, 0.011029759421944618, 0.01573583297431469, -0.015356069430708885, 0.013037065975368023, -0.017276152968406677, 0.0195448100566864, 0.010672947391867638, -0.03690161928534508, 0.02288207598030567, 0.011718103662133217, -0.03400082141160965, -0.0273019690066576, -0.03622814640402794, 0.020702050998806953, 0.004150779917836189, 0.008297733031213284, 0.022345509380102158, -0.033193718641996384, -0.023561829701066017, 0.029107242822647095, 0.009073782712221146, -0.02948693186044693, 0.031118473038077354, -0.0076642995700240135, -0.028498603031039238, -0.023833632469177246, 0.018702879548072815, 0.0070876493118703365, 0.0033540737349539995, 0.001214187708683312, -0.005120435729622841, 0.030015435069799423, 0.05503721907734871, -0.005898873321712017, 0.023956676945090294, -0.022279152646660805, 0.022059950977563858, -0.008752956055104733, 0.07113153487443924, 0.00852421298623085, 0.01770181581377983, -0.010864968411624432, 0.02926170825958252, -0.02730233408510685, -0.011260014958679676, 0.004095588345080614, -0.04004526138305664, 0.025311924517154694, -0.0014187355991452932, -0.026442401111125946, 0.0069144107401371, -0.016429293900728226, 0.03364480659365654, -0.002220936119556427, -0.0027550566010177135, 0.03493940457701683, 0.04664583131670952, -0.0012372543569654226, 0.014231802895665169, -0.014942530542612076, 0.01604483835399151, -0.008273502811789513, 0.015784062445163727, 0.02303374744951725, 0.0028053680434823036, 0.018905052915215492, -0.00871958490461111, 0.00014415527402888983, -0.04222262650728226, -0.0033790923189371824, 0.002853293437510729, 0.011413688771426678, 0.018562939018011093, 0.07001950591802597, 0.015590447001159191, -0.05243225768208504, 0.015324342995882034, -0.04616924002766609, 0.04586318880319595, -0.009048321284353733, -0.030040482059121132, -0.06197367608547211, 0.018790828064084053, 0.012409472838044167, 0.010676524601876736, -0.011543352156877518, 0.006682682316750288, 0.006942311767488718, 0.012864106334745884, -0.04073529317975044, 0.04112086445093155, 0.023196659982204437, -0.02355574071407318, -0.030524827539920807, -0.04879779741168022, 0.0033257771283388138, -0.04278530180454254, -0.026852909475564957, -0.02345474436879158, -0.01913994364440441, -0.04848957806825638, -0.05594755709171295, -0.024959763512015343, 0.007281885482370853, 0.013513002544641495, 0.002827885327860713, -0.046692751348018646, 0.022310025990009308, 0.021027524024248123, 0.05954093486070633, 0.0014686724171042442, -0.010793154127895832, 0.012513015419244766, 0.01209476962685585, -0.07488895207643509, 0.017058778554201126, -0.037105150520801544, 0.000937473145313561, 0.006345835048705339, 0.011281878687441349, -0.03145836293697357, 0.013993896543979645, 0.01059019472450018, -0.06156241521239281, 0.023639556020498276, -0.027084827423095703, 0.02136560156941414, -0.0078038619831204414, 0.022840624675154686, -0.020514486357569695, 0.013132688589394093, 0.02660195715725422, -0.052398424595594406, 0.01919959858059883, 0.02243158221244812, -0.0017765883821994066, -0.010649544186890125, -0.0022604286205023527, 0.02473076991736889, -0.03869681805372238, 0.010846097953617573, -0.013032408431172371, -0.05486053228378296, 0.03342956677079201, -0.01791725866496563, -0.011727741919457912, -0.042111895978450775, -0.014657552354037762, 0.018565107136964798, 0.0033321536611765623, -0.015530102886259556, 0.02117566019296646, 0.008527087979018688, 0.05593452602624893, -0.039438631385564804, 0.05136018246412277, -0.007940864190459251, 0.0020868638530373573, 0.0040439460426568985, 0.013921012170612812, -0.0382082499563694, -0.008698816411197186, 0.02895953319966793, 0.02610808238387108, -0.0501551628112793, -0.0408049114048481, -0.016607578843832016, -0.018058879300951958, -0.013721969909965992, 0.0577768012881279, 0.051791802048683167, -0.010311659425497055, -0.024309000000357628, 0.009455716237425804, -0.04315696656703949, -0.0025338560808449984, -0.02031603828072548, 0.00249371281825006, -0.012065441347658634, 0.027629822492599487, 0.08273547142744064, 0.009187323972582817, -0.01592572033405304, 0.04963211342692375, -0.0015376085648313165, -0.03235388547182083, 0.057368747889995575, -0.021615982055664062, 0.05249848961830139, -0.003969935700297356, -0.0058710407465696335, 0.03463583067059517, -0.009938107803463936, 0.004954723175615072, 0.07074776291847229, 0.03351122885942459, 0.01680753193795681, -0.01173999160528183, 0.027610430493950844, -0.021771952509880066, -0.006417006719857454, 0.018993889912962914, 0.008444211445748806, 0.01916607841849327, 0.007636156398802996, 0.02188240922987461, -0.010668065398931503, 0.01735827699303627, 0.006540987640619278, -0.04254602640867233, 0.04786323755979538, 0.07557181268930435, -0.02060372196137905, -0.007339613512158394, -0.044160518795251846, 0.00013704961747862399, 0.0018818739335983992, -0.000366822729120031, 0.03741392493247986, -0.01586524024605751, 0.016694096848368645, 0.010387660935521126, -0.0614657998085022, -0.029833288863301277, 0.0018254999304190278, -0.01381985004991293, -0.03902304917573929, 0.025896962732076645, -0.01886449195444584, -0.027362721040844917, -0.041812051087617874, 0.050169527530670166, -0.01020817644894123, 0.008922338485717773, -0.01720421388745308, -0.00630134716629982, -0.017319560050964355, -0.029166413471102715, -0.02638089470565319, 0.048287589102983475, 0.012416244484484196, 0.006900588050484657, -0.020836643874645233, 0.03459468483924866, 0.002105967840179801, 0.03575030714273453, 0.03570578992366791, 0.03285088762640953, 0.004316740669310093, -0.036395274102687836, 0.02130592055618763, 0.030893474817276, 0.0050779059529304504, -0.022478226572275162, 0.00440967408940196, -0.03562239930033684, 0.0006567658274434507, 0.0673338919878006, -0.009027809835970402, 0.027597397565841675, -0.023319944739341736, -0.048289112746715546, 0.03659578785300255, 0.024801963940262794, 0.016008226200938225, -0.022348027676343918, 0.043331947177648544, 0.027123836800456047, 0.025135017931461334, -0.008626783266663551, -0.011660436168313026, 0.06248630955815315, 0.01768575608730316, 0.025974076241254807, -0.02540970779955387, 0.017145203426480293, -0.0036574993282556534, 0.03077533468604088, 0.03283217176795006, -0.00396471843123436, 0.01338930707424879, -0.015648791566491127, 0.06788057088851929, 0.01855269819498062, -0.006776390131562948, -0.011939178220927715, 0.006455456838011742, 0.006428856868296862, 0.03772740438580513, -0.0729612335562706, 0.039378322660923004, -0.0075127906166017056, -0.03167077898979187, 0.02860281430184841, 0.053111542016267776, 0.036852262914180756, 0.034083299338817596, 0.02541165053844452, -0.014930764213204384, 0.07297403365373611, -0.0022886747028678656, 0.018501292914152145, 0.011886928230524063, -0.005629883613437414, -0.012834486551582813, -0.031382396817207336, 0.009592495858669281, 0.019071582704782486, -0.013991965912282467, 0.015822703018784523, -0.050270792096853256, 0.005944621749222279, 0.02330555021762848, 0.005567249841988087, -0.006023224908858538, -0.022510934621095657, -0.046234793961048126, -0.034753140062093735, -0.009794884361326694, -0.003092119935899973, -0.0029367629904299974, -0.011138955131173134, -0.01828172244131565, 0.028074638918042183, -0.0015244606183841825, -0.021524721756577492, -0.03068738803267479, -0.06430739164352417, -0.022376377135515213, -0.019661618396639824, 0.016431540250778198, -0.022217921912670135, -0.039233092218637466, -0.03940928354859352, 0.023650959134101868, 0.018789874389767647, 0.022544434294104576, -0.006132251117378473, -0.05061567574739456, -0.003927558660507202, 0.019607318565249443, 0.04194942116737366, 0.03955596312880516, 0.05863044410943985, 0.010185088962316513, 0.003437439911067486, -0.03621726483106613, 0.019502395763993263, 0.008608394302427769, -0.032920338213443756, 0.0020075724460184574, -0.010787054896354675, 0.01671438105404377, -0.0011841158848255873, 0.02855476550757885, -0.006751982495188713, 0.04053113982081413, 0.009868266992270947, 0.034294888377189636, -0.030809808522462845, 0.028599876910448074, -0.01003369502723217, 0.011945242993533611, -0.04315989837050438, -0.02200400084257126, 0.021917851641774178, -0.012030011974275112, 0.048316046595573425, 0.010483632795512676, 0.030530119314789772, 0.04040760546922684, -0.03734232112765312, -0.012418725527822971, -0.0009271320304833353, 0.0015382819110527635, 0.04916905611753464, 0.05043946951627731, 0.00782237108796835, -0.014513174071907997, -0.020975196734070778, -0.06924664974212646, -0.045210421085357666, -0.01780821941792965, -0.026418309658765793, -0.05565932020545006, -0.02742835506796837, -0.00321176927536726, 0.008804550394415855, -0.030639365315437317, 0.034362804144620895, -0.022501884028315544, 0.027999969199299812, -0.01870677061378956, -0.002411600900813937, -0.022529149428009987, -0.010735609568655491, 0.061595797538757324, 0.0021760843228548765, 0.007516545709222555, -0.019467299804091454, -0.04887427017092705, -0.008277688175439835, -0.01839805766940117, 0.06048291549086571, 0.0601208359003067, -0.04073699563741684, -0.027589691802859306, 0.02244339883327484, -0.0013616879004985094, -0.011177444830536842, -0.041521988809108734, 0.05136728286743164, 0.02951492741703987, 0.021451501175761223, -0.02648484706878662, 0.013890910893678665, 0.05757666379213333, -0.03838043287396431, 0.004038686864078045, -0.019833527505397797, -0.016063503921031952, 0.01904677413403988, -0.011460199020802975, -0.04183238372206688, 0.0017917549703270197, 0.010990546084940434, -0.04203527420759201, 0.046946339309215546, -0.028469013050198555, -0.01732385717332363, -0.052413325756788254, -0.0020751238334923983, 0.015269563533365726, -0.028808336704969406, -0.059667982161045074, -0.025175869464874268, 0.002731691813096404, 0.04397866129875183, 0.0027146197389811277, -0.048387978225946426, 0.028917213901877403, -0.02563476376235485, 0.019721398130059242, -0.00327321351505816, -0.005115346983075142, 0.012141232378780842, 0.0018237573094666004, 0.019971728324890137, 0.030661214143037796, 0.041186925023794174, 0.059771910309791565, 0.03417205438017845, -0.02001676894724369, -0.009474294260144234 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
About Fetch Fetch is a consumer engagement company that provides insights on consumer purchases to brand partners. It also offers a mobile rewards app that lets users earn rewards on purchases through a receipt-scanning feature. If you need support in using Hugging Face on SageMaker for your company, please contact us here - our team will contact you to discuss your requirements!
[ 0.04886090010404587, 0.07957705110311508, 0.01892760954797268, -0.04192618653178215, 0.000904739077668637, 0.0673854798078537, -0.02122003212571144, 0.043442558497190475, 0.0093484316021204, 0.017906196415424347, -0.08540528267621994, 0.051601968705654144, 0.005944036412984133, 0.030959822237491608, -0.017097778618335724, -0.04701999947428703, 0.02653609588742256, 0.08248832821846008, 0.01565065234899521, -0.034540917724370956, -0.005989436991512775, -0.000880697276443243, 0.002444436075165868, 0.02781345695257187, -0.06258774548768997, -0.06258509308099747, 0.032154738903045654, -0.03510511666536331, -0.05239603668451309, 0.05014960840344429, -0.05870398133993149, 0.02484060637652874, 0.05037568882107735, -0.04702160879969597, 0.010821797885000706, 0.030038515105843544, -0.12403922528028488, 0.05505196750164032, -0.0465724803507328, -0.03478798642754555, 0.0002762358053587377, -0.057045333087444305, -0.06308045238256454, -0.016015606001019478, -0.021870696917176247, -0.07100121676921844, -0.142074316740036, 0.012075033970177174, -0.05805197358131409, -0.021130837500095367, -0.05571511387825012, 0.10364726930856705, -0.08473376929759979, -0.021434875205159187, 0.019618021324276924, 0.029903756454586983, -0.03565848246216774, -0.027671223506331444, -0.0031787194311618805, -0.03894946351647377, 0.005837402306497097, -0.0772082656621933, 0.04365444928407669, 0.02712392807006836, -0.04517539218068123, 0.03882528841495514, 0.06500329077243805, -0.027903670445084572, -0.008649861440062523, -0.008486405946314335, 0.0008114888914860785, -0.07035551220178604, -0.0783647745847702, 0.03822402283549309, -0.015371523797512054, -0.017669403925538063, -0.011948652565479279, 0.018019402399659157, 0.06637044250965118, -0.009641195647418499, -0.09299015253782272, 0.0015223848167806864, 0.04798002541065216, 0.06095495820045471, 0.09432663023471832, 0.03862765431404114, 0.045941054821014404, -0.11318331211805344, -0.05001615732908249, 0.04862166568636894, 0.03060058131814003, -0.03240189701318741, 0.011174588464200497, -0.02654990181326866, 0.016464538872241974, -0.09144018590450287, 0.04206344857811928, -0.005867666099220514, -0.029737597331404686, -0.0451996736228466, 0.004836752079427242, -0.11062121391296387, 0.015130678191781044, -0.0053208558820188046, -0.030829913914203644, 0.042097970843315125, -0.08163977414369583, -0.07983741164207458, -0.0034879688173532486, 0.01644597388803959, 0.053176943212747574, 0.005532822571694851, 0.02688601054251194, 0.1091616079211235, -0.04684041440486908, 0.0941622406244278, 0.05328742787241936, -0.010279510170221329, 0.0009722287068143487, -0.036871302872896194, 0.007816716097295284, 0.062254030257463455, -0.0381697453558445, -0.038866400718688965, 0.009389831684529781, 0.08084061741828918, 0.011890335008502007, -0.0606180876493454, 0.03796054422855377, -0.020670920610427856, 0.025428935885429382, -0.06817076355218887, -0.037247490137815475, 0.065702423453331, -0.019588284194469452, -0.03246433287858963, 0.045845549553632736, -0.1044725701212883, 0.06330478936433792, 0.010584273375570774, 0.03815709799528122, 0.02761671133339405, -0.01667279377579689, 0.026726510375738144, 0.05596158280968666, 0.0033568129874765873, -0.05815574526786804, 0.03267069533467293, -0.04154262691736221, 0.030893737450242043, -0.10629788041114807, 0.04201103746891022, -0.0092744380235672, -0.05783358961343765, -0.056195519864559174, 0.04872007295489311, 0.02664605714380741, 0.02863384410738945, -0.0044260104186832905, -0.04498859867453575, -0.09459622949361801, -0.025771455839276314, -0.0607302226126194, 0.01359714288264513, 0.02458125166594982, 0.07617873698472977, 0.009922842495143414, 0.0028274408541619778, 0.0008747294778004289, -0.035859331488609314, 0.016005855053663254, -0.08395256847143173, 0.050828561186790466, -0.04478130489587784, 0.06422765552997589, 0.025004763156175613, 0.03020450845360756, 0.025422560051083565, -0.012970108538866043, 0.005396772641688585, -0.028600940480828285, -0.006435636430978775, 0.005469853989779949, -0.02174469456076622, -0.012247633188962936, 0.03462892025709152, 0.05000486597418785, 0.014498156495392323, -0.002785963471978903, -0.015349718742072582, -0.012952898629009724, -0.01848849654197693, 0.09113824367523193, -0.01715666987001896, -0.023070745170116425, -0.027170170098543167, -0.036279935389757156, 0.07114481180906296, 0.0014521704288199544, 0.021557079628109932, -0.015210242941975594, -0.01775929518043995, 0.01747788116335869, 0.01261184923350811, -0.007637062110006809, 0.015218876302242279, 0.05184478685259819, -0.02838343195617199, -0.024269886314868927, -0.008469333872199059, -0.003128617536276579, -0.09194131940603256, 0.09554659575223923, -0.06504407525062561, 0.015080890618264675, -0.025227440521121025, -0.04100760444998741, 0.010558747686445713, 0.003806031309068203, 0.06812135130167007, 0.07464388757944107, 0.02326194755733013, 0.04276503250002861, -0.0005421918467618525, 0.0065017505548894405, 0.05055540055036545, 0.08871565759181976, 0.06346511095762253, 0.042323820292949677, -0.03484100103378296, 0.016611427068710327, -0.053491078317165375, -0.06130088493227959, 0.0023424443788826466, -0.04265173152089119, -0.08125296980142593, 0.07147599011659622, -0.017264505848288536, 0.007048628758639097, 0.07981618493795395, -0.010466939769685268, 0.03720856085419655, 0.005938527174293995, 0.05078753083944321, 0.06992890685796738, -0.10091432929039001, -0.02339775860309601, -0.011959429830312729, -0.053601112216711044, -0.010757447220385075, -0.09569000452756882, 0.03547154739499092, 0.006781432777643204, 0.011809831485152245, 0.043862633407115936, -0.015305145643651485, 0.015438956208527088, 0.014068497344851494, 0.010536808520555496, 0.07074546068906784, 0.009963116608560085, 0.014981839805841446, 0.03864159435033798, -0.026887530460953712, -0.026909055188298225, -0.044979680329561234, -0.010555798187851906, 0.03313654661178589, 0.005595867056399584, 0.031165819615125656, 0.04804449528455734, -0.029232652857899666, -0.003252505324780941, 0.0279016625136137, -0.006987419910728931, 0.05701786279678345, 0.03406611829996109, -0.005407159216701984, -0.016310274600982666, -0.017003275454044342, 0.025287510827183723, -0.01690407283604145, 0.011505712755024433, -0.0006493922555819154, 0.04153376445174217, -0.013827750459313393, 0.02692602388560772, -0.016953907907009125, -0.014906020835042, 0.007192063145339489, 0.01382362749427557, 0.005997061729431152, 0.02550167217850685, -0.02839629538357258, 0.0004624871944542974, 0.015389198437333107, 0.02945001609623432, 0.030299872159957886, -0.04003852978348732, 0.04073851555585861, 0.0015865993918851018, -0.03468788042664528, -0.0322144441306591, -0.002453475259244442, -0.0003157533938065171, -0.005667997989803553, 0.022358883172273636, -0.024671854451298714, -0.08487606793642044, -0.040826354175806046, -0.0024659859482198954, 0.018841490149497986, 0.04373863339424133, -0.037135157734155655, 0.01672750525176525, 0.0016320396680384874, -0.014455088414251804, 0.030322924256324768, 0.0030506132170557976, 0.0016410634852945805, 0.04270823299884796, -0.03205621615052223, 0.023030973970890045, 0.023821702226996422, 0.011242548003792763, 0.0006025147740729153, 0.007240013685077429, 0.014555981382727623, 0.013072526082396507, 0.04027184471487999, 0.008144021965563297, 0.007915324531495571, -0.007685352582484484, -0.004769999999552965, 0.02052680030465126, -0.031157787889242172, 0.017436573281884193, -0.04208419844508171, 0.00778103107586503, -0.019560357555747032, -0.012590906582772732, 0.006047702860087156, -0.014430342242121696, -0.008882388472557068, -0.01626635529100895, 0.009161097928881645, 0.044074952602386475, 0.008881720714271069, 0.01928858458995819, 0.025631381198763847, 0.016384165734052658, -0.005310887470841408, 0.04272559657692909, -0.006204013247042894, -0.03776172548532486, 0.003914675675332546, 0.002079801633954048, -0.03272639960050583, -0.009146314114332199, -0.0026760657783597708, -0.03851260617375374, 0.04028978571295738, -0.0028305375017225742, 0.02606101892888546, 0.0026706235948950052, -0.011962395161390305, 0.012952806428074837, 0.0014624760951846838, -0.03096708469092846, -0.012379853054881096, 0.001398131251335144, -0.043081630021333694, -0.02678258717060089, -0.0011513166828081012, -0.0026771354023367167, -0.03511388227343559, 0.017822446301579475, -0.007783459033817053, 0.009432952851057053, -0.021105799823999405, -0.009588043205440044, 0.015350052155554295, -0.02527465857565403, -0.003386211581528187, -0.013302290812134743, 0.009492096491158009, 0.041000671684741974, 0.017644278705120087, 0.00361770112067461, -0.020907459780573845, 0.01589166186749935, -0.031441740691661835, 0.015987960621714592, -0.02080404758453369, -0.022082241252064705, -0.019714217633008957, 0.04146423935890198, 0.05551551654934883, 0.017707178369164467, -0.028789961710572243, 0.02836533635854721, 0.003914469387382269, -0.014795483089983463, 0.007948623038828373, 0.03805939853191376, -0.0000717354632797651, -0.009069833904504776, -0.019323229789733887, -0.016141658648848534, -0.0009530789102427661, -0.03523676097393036, 0.013314597308635712, 0.017061855643987656, 0.0062977103516459465, -0.036627575755119324, -0.06325442343950272, 0.0023962489794939756, 0.019731765612959862, -0.007388024590909481, -0.0005321112112142146, -0.05151965469121933, 0.006041657645255327, 0.03678488731384277, 0.048677824437618256, -0.021637018769979477, -0.012011880055069923, -0.0019877031445503235, 0.02271314337849617, -0.04967290908098221, 0.03487720713019371, -0.014725621789693832, 0.0007439889013767242, 0.022726034745573997, -0.00898715853691101, -0.011855578050017357, 0.006245003081858158, -0.043062593787908554, -0.036343932151794434, -0.013514324091374874, -0.02107437327504158, 0.01686200685799122, -0.028741583228111267, 0.031151600182056427, 0.011854874901473522, -0.019352149218320847, 0.041410528123378754, -0.04992510378360748, -0.008354909718036652, 0.01295726839452982, -0.02709559164941311, 0.03199067339301109, 0.03271489590406418, -0.013628880493342876, -0.028121793642640114, -0.004308508709073067, 0.01146510150283575, -0.022431738674640656, 0.003331689164042473, 0.005624670535326004, -0.012536649592220783, -0.06382892280817032, 0.021478930488228798, 0.05855175852775574, -0.02862684242427349, 0.0018280950607731938, 0.04377562925219536, 0.017150450497865677, 0.05941588431596756, -0.01848636195063591, 0.032749418169260025, 0.024354448541998863, 0.009543024003505707, -0.003250121371820569, 0.003884833073243499, -0.04116452857851982, -0.01957414485514164, 0.025806471705436707, 0.0359325148165226, -0.06498270481824875, -0.00964896660298109, -0.009774099104106426, -0.023663228377699852, -0.05563073232769966, 0.07821444422006607, 0.061067502945661545, -0.008463242091238499, -0.012410905212163925, 0.05403926596045494, -0.02330484800040722, -0.004924366250634193, -0.002257989952340722, -0.018450945615768433, 0.0008117287652567029, 0.031566694378852844, 0.1082916259765625, 0.020196618512272835, -0.005288299638777971, 0.04436768963932991, 0.009958147071301937, -0.009282039478421211, 0.06675128638744354, -0.049110107123851776, 0.04767769202589989, 0.0036287871189415455, -0.015589579939842224, 0.00403093546628952, -0.020121293142437935, -0.028095869347453117, 0.03722534701228142, 0.042459193617105484, -0.018116934224963188, 0.017964620143175125, 0.019206997007131577, -0.020412426441907883, 0.0047843726351857185, 0.01850014552474022, 0.03288331627845764, 0.009653517976403236, -0.026303129270672798, 0.02869485691189766, 0.012834176421165466, -0.015376285649836063, 0.0036926118191331625, -0.048529718071222305, -0.0004190985346212983, 0.030135707929730415, 0.026470288634300232, 0.0001947275159182027, -0.05014301836490631, 0.007373232860118151, 0.0024347887374460697, -0.0017801002832129598, 0.051851920783519745, -0.008729941211640835, -0.02484036050736904, 0.022828545421361923, 0.0003432026132941246, 0.0053339931182563305, 0.009372355416417122, 0.009945686906576157, -0.016382873058319092, -0.019958620890975, -0.016785649582743645, 0.01719675213098526, -0.022853268310427666, 0.022749990224838257, 0.002162487944588065, -0.020749904215335846, -0.00039192152325995266, -0.0023605867754667997, -0.03378545492887497, -0.04678957909345627, 0.006111901719123125, 0.023890992626547813, 0.053954433649778366, 0.016869906336069107, 0.024782953783869743, 0.024941138923168182, -0.009650333784520626, 0.033525947481393814, 0.035190995782613754, 0.04089893773198128, -0.01647174172103405, -0.03718458116054535, -0.00534678902477026, 0.035988699644804, -0.0011947958264499903, -0.022233106195926666, 0.02471613697707653, -0.05993669852614403, 0.014825152233242989, 0.05010110139846802, -0.06539159268140793, 0.052428264170885086, -0.020998988300561905, -0.013748632743954659, 0.05064025893807411, 0.05915731191635132, 0.01908571831882, 0.010529333725571632, 0.048254113644361496, 0.026007089763879776, 0.0001251289650099352, -0.007242058403789997, 0.008812524378299713, 0.05128297582268715, -0.020878106355667114, 0.008909815922379494, -0.020856671035289764, 0.023890767246484756, 0.019193803891539574, 0.051031917333602905, -0.003170531243085861, -0.021944280713796616, 0.05999360978603363, -0.03643454983830452, 0.07629217207431793, 0.014523016288876534, -0.026538481935858727, -0.007010375149548054, -0.0007729947101324797, -0.030449606478214264, 0.032771967351436615, -0.05358186736702919, 0.05115286260843277, -0.00807834044098854, -0.017778512090444565, 0.01192808523774147, 0.046895407140254974, 0.028030531480908394, 0.07792294770479202, -0.001370076322928071, 0.013114691711962223, 0.03872973099350929, -0.006398563738912344, 0.01316813938319683, -0.011435616761446, -0.003397703403607011, 0.021300045773386955, -0.02406400814652443, 0.0010817954316735268, 0.00724266842007637, 0.028210226446390152, 0.034649211913347244, -0.021835267543792725, 0.014515182003378868, -0.023518474772572517, 0.00893297791481018, -0.02352047897875309, -0.012705681845545769, -0.03885336220264435, -0.016067396849393845, 0.023922573775053024, -0.008477781899273396, -0.0069782910868525505, 0.035207029432058334, 0.04345440864562988, 0.002001692308112979, 0.009839693084359169, 0.0034970047418028116, -0.015425917692482471, -0.026462111622095108, 0.005048982333391905, 0.01665215753018856, 0.0036292069125920534, -0.00711155915632844, -0.05055508390069008, -0.03869541734457016, -0.017780907452106476, 0.0025498191826045513, 0.0030019159894436598, -0.012374026700854301, 0.004840556066483259, -0.0009796681115403771, 0.01810104213654995, 0.01990453153848648, 0.040601249784231186, 0.03842421621084213, 0.013063411228358746, 0.006258208770304918, -0.034430231899023056, 0.03249259293079376, 0.006290234159678221, 0.009060913696885109, -0.017852481454610825, -0.01962955668568611, 0.049887947738170624, 0.01767544634640217, 0.045838553458452225, 0.006706207059323788, 0.019738569855690002, 0.002279038308188319, 0.01939954236149788, -0.021206248551607132, -0.0012241848744452, -0.020717496052384377, 0.03193763270974159, -0.025482177734375, -0.04561254754662514, 0.030104216188192368, -0.009946566075086594, 0.049800314009189606, -0.010066857561469078, 0.03930941969156265, 0.067116379737854, -0.028138967230916023, -0.009742897935211658, -0.004741547163575888, 0.0026777940802276134, 0.02059488371014595, 0.024722006171941757, 0.019131368026137352, 0.026291416957974434, 0.00701593142002821, -0.06930463016033173, -0.010858273133635521, -0.044303469359874725, -0.0214395709335804, -0.03986041247844696, -0.03503596410155296, -0.012124001048505306, -0.0006962139741517603, 0.00799830537289381, 0.025914384052157402, -0.021912990137934685, 0.048118527978658676, 0.010721423663198948, -0.019772736355662346, 0.01525053009390831, 0.00007936899783089757, 0.063050776720047, 0.006045705638825893, 0.010736307129263878, -0.012290428392589092, -0.022782014682888985, -0.016842670738697052, -0.004094548523426056, 0.01590942218899727, 0.04694361984729767, -0.0313742570579052, -0.005974648054689169, -0.04120054468512535, 0.0001290651416638866, -0.026926269754767418, -0.04810488596558571, 0.06129223108291626, 0.027457628399133682, 0.008930101990699768, 0.014224188402295113, -0.0007713728118687868, 0.06902601569890976, -0.04349098727107048, 0.02535771206021309, -0.04428970068693161, -0.012755034491419792, -0.039435479789972305, -0.008499335497617722, -0.03528701886534691, -0.0027442709542810917, -0.01575394906103611, -0.01863645762205124, 0.0425712950527668, -0.014442474581301212, 0.0005952084320597351, -0.0604943111538887, -0.00567964231595397, -0.014794067479670048, -0.021027036011219025, -0.06640870124101639, -0.0492846705019474, -0.007437491323798895, 0.026156866922974586, -0.023511026054620743, -0.0321672186255455, 0.012620192021131516, -0.06850557029247284, -0.02730642817914486, 0.001997428946197033, -0.023870257660746574, 0.010662387125194073, -0.021783888339996338, 0.00595461530610919, 0.03373187407851219, 0.05872603878378868, 0.02310408465564251, 0.0037329650949686766, -0.004094622563570738, -0.00023024970141705126 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
Overview Consumer engagement and rewards company Fetch offers an application that lets users earn rewards on their purchases by scanning their receipts. The company also parses these receipts to generate insights into consumer behavior and provides those insights to brand partners. As weekly scans rapidly grew, Fetch needed to improve its speed and precision. On Amazon Web Services (AWS), Fetch optimized its machine learning (ML) pipeline using Hugging Face and Amazon SageMaker , a service for building, training, and deploying ML models with fully managed infrastructure, tools, and workflows. Now, the Fetch app can process scans faster and with significantly higher accuracy.
[ 0.034599266946315765, 0.08010060340166092, 0.01463508140295744, -0.013763661496341228, 0.010001923888921738, 0.06443372368812561, -0.01073935441672802, 0.04825463145971298, -0.008127608336508274, 0.006476258393377066, -0.0557355135679245, 0.051657214760780334, 0.0015172534622251987, 0.03317670896649361, 0.03960614278912544, -0.08697584271430969, 0.038072019815444946, 0.04210479557514191, -0.0008628572104498744, -0.04796377941966057, -0.010376246646046638, -0.04966874048113823, 0.03852970153093338, 0.034692250192165375, -0.07812721282243729, -0.03363124653697014, 0.01922057941555977, -0.0748024582862854, -0.07216905802488327, 0.04601553454995155, -0.059569984674453735, -0.002046025125309825, 0.017604699358344078, -0.019514573737978935, -0.06272869557142258, 0.009792688302695751, -0.13922548294067383, 0.04680568352341652, -0.03774309530854225, -0.05228693038225174, -0.01792522892355919, -0.043454598635435104, -0.07460803538560867, 0.018518218770623207, -0.005908783990889788, -0.016936393454670906, -0.15597160160541534, -0.022844359278678894, -0.08050847053527832, -0.042410463094711304, -0.07394913583993912, 0.08792570978403091, -0.07555986940860748, -0.004640455823391676, 0.006775497924536467, 0.039750657975673676, -0.005339867435395718, -0.013007987290620804, -0.025212040171027184, 0.004030123818665743, 0.015043121762573719, -0.09231898933649063, 0.0894014835357666, -0.009970185346901417, -0.031035026535391808, -0.017855053767561913, 0.04623027890920639, 0.015985948964953423, 0.017945880070328712, -0.023285681381821632, 0.006724467966705561, -0.08234948664903641, -0.08366136252880096, 0.02217295952141285, -0.013954604975879192, -0.006759787444025278, -0.03997631371021271, 0.0030905287712812424, 0.0074483491480350494, -0.0405573807656765, -0.09643818438053131, 0.03266669437289238, 0.0032820829655975103, 0.04381078854203224, 0.10414747893810272, 0.034899767488241196, 0.035039156675338745, -0.09504883736371994, -0.06771072000265121, 0.02813751809298992, 0.06787503510713577, -0.03471532091498375, 0.0055179474875330925, 0.016879772767424583, 0.014016959816217422, -0.06365056335926056, 0.031348951160907745, 0.019854726269841194, -0.03325493633747101, -0.08303870260715485, -0.0032783960923552513, -0.07995758205652237, -0.0021145623177289963, -0.0059436047449707985, -0.05069767311215401, 0.09832892566919327, -0.09120642393827438, -0.09371902048587799, 0.002215910004451871, 0.011962246149778366, 0.06651967018842697, 0.025238037109375, -0.024323461577296257, 0.10661028325557709, -0.05410493537783623, 0.06666901707649231, 0.04488394036889076, 0.0016436517471447587, 0.00841082539409399, -0.05950784310698509, -0.005359106231480837, 0.06427633762359619, -0.02498776465654373, -0.033230092376470566, -0.007609004154801369, 0.03012915514409542, 0.020852649584412575, -0.04612407833337784, 0.05672613903880119, -0.01784520596265793, 0.015672877430915833, -0.04772333800792694, -0.03017790988087654, 0.06442772597074509, -0.024599425494670868, -0.003521912032738328, 0.027967173606157303, -0.07788778096437454, 0.035379353910684586, 0.030811063945293427, 0.04858769103884697, 0.05934887006878853, -0.024071741849184036, -0.0235037412494421, 0.07591643929481506, -0.02627917192876339, -0.02675776742398739, 0.006766654085367918, 0.0097206374630332, 0.0051387157291173935, -0.06439267843961716, 0.03955487534403801, -0.031935080885887146, -0.05768130347132683, -0.02198960818350315, 0.061993710696697235, 0.060221437364816666, 0.028007306158542633, 0.032730672508478165, -0.013449985533952713, -0.11684611439704895, -0.010238238610327244, -0.07313510030508041, 0.002824663883075118, -0.0013120101066306233, 0.07336743921041489, -0.007527854759246111, 0.005993330851197243, -0.007536615710705519, -0.024180127307772636, 0.004473414272069931, -0.026043115183711052, 0.039608169347047806, -0.03196832165122032, 0.04347192496061325, 0.05546976998448372, 0.002692342968657613, 0.011511397548019886, 0.009754134342074394, -0.01582152582705021, -0.007039265241473913, 0.04130752012133598, 0.02157016471028328, 0.014165499247610569, -0.020915428176522255, 0.027965519577264786, 0.0685030072927475, 0.06178826466202736, -0.03209778293967247, -0.030076755210757256, -0.013582717627286911, -0.007228047586977482, 0.062459543347358704, -0.02858487330377102, -0.03549206629395485, 0.005910471081733704, -0.050674304366111755, 0.07973631471395493, 0.004287221934646368, -0.004128741100430489, -0.015210879035294056, -0.04346847906708717, 0.03423856198787689, -0.02576376125216484, -0.025318482890725136, -0.0313701406121254, 0.030924269929528236, -0.02839387021958828, -0.04332730546593666, 0.012046637944877148, -0.025118596851825714, -0.07651452720165253, 0.0577172189950943, -0.053447380661964417, 0.021790681406855583, -0.02160472422838211, -0.043801408261060715, 0.03178957849740982, -0.02149851806461811, 0.030242078006267548, 0.05589079111814499, 0.0015639964258298278, 0.031295012682676315, 0.03179662674665451, 0.04750027135014534, -0.00038996103103272617, 0.06693421304225922, 0.045561011880636215, 0.05195210501551628, -0.015823839232325554, 0.014387109316885471, -0.06393815577030182, -0.04592627286911011, -0.005557045340538025, -0.04948718100786209, -0.04949529096484184, 0.0751064345240593, -0.0026898798532783985, 0.021472884342074394, 0.06327658891677856, -0.019021695479750633, 0.04300893470644951, -0.007181468419730663, 0.06277099251747131, 0.08237815648317337, -0.11939316987991333, -0.015503623522818089, -0.010744989849627018, -0.07430743426084518, -0.027328351512551308, -0.0854465663433075, 0.044449545443058014, -0.023040639236569405, -0.004892661701887846, 0.05098798871040344, -0.009245947934687138, 0.02245422452688217, 0.028707409277558327, 0.007805946748703718, 0.07291403412818909, -0.012633569538593292, 0.05189801752567291, 0.023322315886616707, 0.0046770283952355385, -0.0006992651615291834, -0.046565499156713486, -0.003693218110129237, 0.019380375742912292, 0.009506023488938808, 0.03507959470152855, 0.02317962609231472, -0.04971534013748169, -0.005777428857982159, 0.026500899344682693, 0.023145662620663643, 0.033626627177000046, 0.034511517733335495, 0.013873813673853874, -0.003993854857981205, -0.015817083418369293, 0.023214703425765038, -0.027671631425619125, 0.0367039293050766, 0.00202657631598413, 0.0529630109667778, -0.016975373029708862, 0.016692858189344406, -0.042735062539577484, -0.012989681214094162, 0.02728871814906597, 0.020325351506471634, 0.00635102204978466, 0.01617491990327835, -0.011485103517770767, -0.005160107742995024, 0.029977550730109215, 0.003200304228812456, 0.031155215576291084, -0.04411965608596802, 0.03484367951750755, -0.02269572764635086, -0.05173419043421745, -0.03683756664395332, -0.0015818028477951884, 0.023694250732660294, -0.010604710318148136, 0.011663827113807201, -0.028970234096050262, -0.0745362937450409, -0.006396332755684853, 0.006633634679019451, 0.0032055818010121584, 0.037160489708185196, -0.050767309963703156, 0.026845429092645645, 0.00961502268910408, -0.020744964480400085, 0.0349053293466568, -0.010933811776340008, 0.01712404005229473, 0.01881340891122818, -0.03448987752199173, 0.02595679648220539, 0.02127588540315628, 0.005732515826821327, 0.005309164524078369, -0.02010597102344036, 0.0033431309275329113, 0.014098241925239563, 0.02791040763258934, 0.01632644794881344, -0.025148719549179077, -0.02699289284646511, 0.012292534112930298, 0.004151998087763786, -0.004898255690932274, 0.029557179659605026, -0.024417180567979813, -0.003047232748940587, -0.02727019600570202, 0.03339904174208641, 0.018040698021650314, 0.0038897155318409204, -0.013906367123126984, -0.006412532180547714, 0.014367195777595043, 0.05641726031899452, -0.0022301783319562674, 0.013372442685067654, 0.002025171183049679, 0.023042544722557068, 0.00675969710573554, 0.04208473116159439, -0.006572369951754808, -0.006562656257301569, -0.02712251991033554, -0.008222908712923527, -0.05020562931895256, -0.02307610772550106, -0.018782896921038628, -0.054673828184604645, 0.06245800852775574, -0.02169588953256607, 0.0026898563373833895, 0.014263657853007317, -0.030363405123353004, 0.014723256230354309, 0.015666810795664787, -0.020918799564242363, 0.018943412229418755, 0.029575632885098457, -0.024886753410100937, -0.011513831093907356, -0.018296536058187485, -0.005973438266664743, -0.02899862825870514, 0.011007053777575493, -0.019304607063531876, 0.012459700927138329, -0.005191478878259659, -0.03002159669995308, 0.006174316164106131, -0.025756629183888435, -0.012867769226431847, -0.002799208741635084, 0.019481373950839043, 0.0466548427939415, 0.038800887763500214, 0.004072750452905893, -0.043358221650123596, 0.0009331571636721492, -0.039193540811538696, 0.044970039278268814, -0.027377180755138397, -0.03440779820084572, -0.04424859210848808, 0.009009797126054764, 0.03700576722621918, 0.01000721100717783, -0.03248509764671326, 0.0240793414413929, 0.008727343752980232, -0.01796231046319008, -0.005303975660353899, 0.03370148688554764, 0.027070263400673866, -0.02082028239965439, -0.020185230299830437, -0.010188608430325985, 0.0059905387461185455, -0.03810644522309303, 0.04169664531946182, 0.004086953587830067, 0.0002804112446028739, -0.048507437109947205, -0.05272044241428375, 0.0035758153535425663, 0.011904734186828136, -0.006555190775543451, 0.01590164378285408, -0.06488820165395737, -0.006313737016171217, 0.03461230918765068, 0.042918503284454346, -0.013068577274680138, -0.005591047462075949, 0.008048029616475105, 0.014024624601006508, -0.038883816450834274, 0.046385202556848526, -0.03731987252831459, 0.00303223030641675, 0.014313298277556896, 0.008631662465631962, -0.006516321562230587, 0.007696638349443674, -0.009844738990068436, -0.0596613883972168, -0.003914357163012028, -0.04673554003238678, 0.02822231687605381, -0.007172974292188883, 0.03704293072223663, -0.014929329045116901, 0.001538345473818481, 0.029408583417534828, -0.057459112256765366, 0.0037404350005090237, 0.027522075921297073, -0.010492844507098198, 0.0006814723019488156, 0.023992516100406647, -0.003470937954261899, -0.02505180984735489, 0.026878636330366135, -0.003116028616204858, -0.03744971752166748, -0.008283893577754498, -0.0015259948559105396, -0.019236970692873, -0.03699224442243576, 0.01527873333543539, 0.050155166536569595, -0.018420221284031868, 0.011021398939192295, 0.034705448895692825, 0.013635417446494102, 0.05146962031722069, -0.03788839653134346, 0.02775951661169529, 0.02525498904287815, 0.02185719460248947, -0.007921726442873478, 0.009756537154316902, -0.017550991848111153, -0.005656098946928978, 0.012768765911459923, 0.043695494532585144, -0.04856903851032257, -0.017296062782406807, -0.016000883653759956, -0.002129250206053257, -0.04639206826686859, 0.0752917230129242, 0.04553791508078575, -0.00976860336959362, -0.018871432170271873, 0.050890274345874786, -0.015959937125444412, -0.011104089207947254, -0.016490276902914047, 0.015461049042642117, 0.010138147510588169, 0.015692999586462975, 0.10439900308847427, -0.002911618212237954, -0.02525174245238304, 0.04604843258857727, 0.012704355642199516, -0.027781272307038307, 0.05080338194966316, -0.021588820964097977, 0.05661841481924057, 0.006217174232006073, -0.017586685717105865, 0.015039210207760334, -0.01846885122358799, -0.013380288146436214, 0.04491199925541878, 0.019986264407634735, 0.010260263457894325, 0.013951374217867851, 0.0035602576099336147, -0.0062415688298642635, 0.0036302567459642887, 0.012223421595990658, 0.03157537803053856, 0.012323752045631409, -0.01980413869023323, 0.008310189470648766, -0.007867974229156971, -0.011143606156110764, 0.00202708481810987, -0.041713569313287735, 0.044552285224199295, 0.0561225526034832, 0.01018050778657198, -0.0049690124578773975, -0.06290484964847565, 0.026056785136461258, -0.007006033323705196, 0.0025507460813969374, 0.04442240297794342, -0.019923927262425423, 0.005381939932703972, 0.004915337078273296, -0.011589640751481056, -0.011771677061915398, 0.029506029561161995, 0.0033862891141325235, -0.0039049042388796806, 0.013710301369428635, -0.019740991294384003, -0.008365236222743988, -0.03330235928297043, 0.022390587255358696, 0.02026059851050377, -0.004422854632139206, -0.018394343554973602, -0.010548627004027367, -0.022030504420399666, -0.03067111410200596, 0.022032108157873154, 0.06404133141040802, 0.014618213288486004, 0.024522900581359863, 0.004189208149909973, 0.05126500874757767, -0.01082863099873066, 0.019396882504224777, 0.047778695821762085, 0.03535507619380951, -0.021542439237236977, -0.016037389636039734, 0.010446475818753242, 0.04860365763306618, 0.00940543133765459, -0.025584619492292404, 0.004981867503374815, -0.02412043884396553, 0.012315832078456879, 0.08120722323656082, -0.04250287637114525, 0.05809333547949791, -0.012936578132212162, -0.02880387008190155, 0.03770828992128372, 0.03574902191758156, 0.008496692404150963, 0.007360690739005804, 0.05443635582923889, 0.041197262704372406, -0.0012183281360194087, 0.00014150727656669915, -0.01837419718503952, 0.06403134018182755, 0.021977977827191353, 0.016172921285033226, -0.023629849776625633, 0.007579202763736248, 0.005597107112407684, 0.02161838300526142, 0.0038237967528402805, -0.02700522355735302, 0.023353805765509605, -0.014087289571762085, 0.08079800754785538, 0.028518354520201683, 0.002377721481025219, 0.013524430803954601, 0.01706383004784584, -0.02920677326619625, 0.03166092932224274, -0.05341054126620293, 0.04855804145336151, -0.03045204095542431, -0.028812048956751823, 0.008359040133655071, 0.03640993684530258, 0.021740535274147987, 0.05867641046643257, -0.0023456066846847534, 0.011174090206623077, 0.06524349749088287, -0.004460665863007307, 0.02221766673028469, 0.011618264019489288, 0.022764956578612328, -0.0182562954723835, -0.034024182707071304, 0.024116646498441696, 0.03960121423006058, 0.0033057131804525852, 0.014972618781030178, 0.0025587077252566814, 0.006834543310105801, 0.010201247408986092, 0.01089194230735302, -0.04419052600860596, -0.011135057546198368, -0.030224686488509178, -0.033329855650663376, 0.00580742210149765, 0.0066518220119178295, -0.0007717254920862615, 0.020969262346625328, 0.018946798518300056, 0.016732409596443176, 0.019908374175429344, -0.020216071978211403, -0.012905731797218323, -0.05174697935581207, 0.007118104491382837, 0.00023099410464055836, -0.004917978774756193, 0.009932208806276321, -0.04515358805656433, -0.06222222000360489, 0.0014840902294963598, -0.006321728229522705, 0.016055714339017868, -0.004563754890114069, -0.010562757030129433, 0.012244665063917637, 0.010905695147812366, 0.055386319756507874, 0.03473609685897827, 0.034597788006067276, 0.006646736059337854, 0.015799827873706818, -0.0215411689132452, 0.041170526295900345, 0.019007137045264244, -0.03006107546389103, -0.004329804331064224, -0.004703600890934467, 0.005861641373485327, -0.0031563257798552513, 0.02660107985138893, 0.0038096087519079447, 0.056557003408670425, -0.02003571018576622, 0.04814734309911728, 0.011264917440712452, -0.004275682847946882, -0.016093159094452858, 0.022317947819828987, -0.0319213941693306, -0.0493650957942009, 0.011692526750266552, -0.005477061029523611, 0.04049128293991089, -0.002571053570136428, 0.03876064717769623, 0.0767921581864357, -0.02629050798714161, -0.015411436557769775, -0.008071543648838997, 0.004798800218850374, 0.04692097380757332, 0.048789408057928085, -0.007384470198303461, -0.022023726254701614, 0.0014350302517414093, -0.07799653708934784, -0.0003757258236873895, -0.04892941936850548, 0.0020002860110253096, -0.043852683156728745, -0.03415592387318611, 0.008270428515970707, 0.0027713982854038477, -0.017762137576937675, 0.034630320966243744, -0.03319866582751274, 0.04837854206562042, 0.020249344408512115, -0.000058306774008087814, -0.017388038337230682, -0.010058206506073475, 0.04685251787304878, -0.010257878340780735, -0.004164348356425762, -0.0025560464709997177, -0.02704557031393051, -0.015102173201739788, -0.008539387956261635, 0.025059765204787254, 0.054509859532117844, -0.036206286400556564, -0.015002510510385036, -0.018404291942715645, -0.017832471057772636, 0.015380755066871643, -0.049550652503967285, 0.054031819105148315, 0.024901986122131348, 0.022602809593081474, 0.018250521272420883, 0.0017737658927217126, 0.057587578892707825, -0.04113525152206421, 0.012532999739050865, -0.037338122725486755, -0.02243966981768608, -0.01463248673826456, -0.011391371488571167, -0.03859496861696243, 0.0008113133371807635, 0.006455216556787491, -0.008197374641895294, 0.057050921022892, -0.020388523116707802, 0.002078423975035548, -0.06307981163263321, 0.0077089001424610615, 0.02716735377907753, -0.047691814601421356, -0.06159264221787453, -0.053259167820215225, -0.01905990019440651, 0.002696869196370244, 0.006964445114135742, -0.03734404221177101, 0.027110101655125618, -0.04945267736911774, -0.007672272622585297, 0.01619415357708931, -0.02229407988488674, 0.01739671640098095, -0.0175588671118021, 0.02291906625032425, 0.01215331070125103, 0.07640238106250763, 0.0811547338962555, 0.01877453364431858, -0.014562804251909256, -0.03840937837958336 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
Solution | Cutting Latency by 50% Using ML & Hugging Face on Amazon SageMaker GPU Instances
[ -0.0064043160527944565, -0.03882455453276634, 0.0561705082654953, 0.002895002719014883, -0.00636935792863369, -0.0036742936354130507, 0.026297839358448982, 0.005794460419565439, -0.014624767005443573, -0.07288994640111923, -0.04317742958664894, 0.03447996824979782, -0.010409575887024403, 0.10531754046678543, -0.01956537738442421, -0.024541350081562996, -0.021110106259584427, 0.007838076911866665, 0.01794605515897274, -0.00679195299744606, 0.039972446858882904, -0.046338316053152084, 0.04182592034339905, 0.046896133571863174, -0.054919034242630005, -0.041237518191337585, -0.046027883887290955, -0.007942095398902893, -0.04288066551089287, 0.03128282353281975, -0.04550689086318016, -0.010939451865851879, 0.0534045435488224, 0.00046866669435985386, 0.02454650029540062, -0.01669219695031643, -0.14850063621997833, 0.07538528740406036, 0.023698793724179268, 0.0025646851863712072, 0.004831172991544008, -0.06297805905342102, -0.06794817745685577, 0.06248944252729416, -0.028638755902647972, -0.007374124601483345, -0.16271227598190308, 0.09395190328359604, -0.011537319980561733, -0.020549317821860313, -0.11412286758422852, 0.10137224942445755, 0.015074136666953564, -0.01368042267858982, 0.006686225067824125, 0.040740448981523514, -0.0009623243240639567, -0.04864904284477234, -0.014853158965706825, -0.011560125276446342, 0.04547584801912308, -0.05596822127699852, -0.024543397128582, 0.029551703482866287, -0.007087092846632004, 0.04193177819252014, 0.03947116434574127, -0.077013298869133, -0.042963821440935135, -0.02118554897606373, 0.010048269294202328, -0.06360911577939987, 0.013490119948983192, -0.02100634202361107, -0.04490600526332855, -0.018133169040083885, 0.010257013142108917, -0.019504688680171967, 0.03843875974416733, 0.07319406419992447, -0.06018468365073204, -0.014478709548711777, 0.02289382554590702, 0.07315919548273087, 0.03805318847298622, 0.03034987859427929, 0.04251299053430557, -0.0578196682035923, 0.00010762282181531191, 0.06905573606491089, 0.030550479888916016, -0.06599164754152298, 0.04704161733388901, 0.04786798357963562, 0.05682671442627907, -0.01730000041425228, 0.04179657623171806, -0.03983426094055176, -0.02000504732131958, -0.01698993518948555, 0.003147116396576166, -0.11305375397205353, 0.05659843236207962, -0.03465990349650383, -0.027574334293603897, 0.06308892369270325, -0.03156545013189316, -0.11465044319629669, -0.001665107673034072, 0.04704468324780464, -0.003820917336270213, 0.044178593903779984, 0.014161991886794567, 0.044074878096580505, -0.1385793834924698, 0.10598890483379364, -0.014964062720537186, -0.016414595767855644, 0.011377904564142227, 0.05052003636956215, 0.027663137763738632, 0.09731976687908173, 0.038966838270425797, -0.00954675767570734, 0.006924145855009556, 0.05809031426906586, 0.06940099596977234, -0.0035260289441794157, 0.022383596748113632, 0.005638216156512499, 0.019908130168914795, -0.036982789635658264, -0.006942912470549345, 0.0017270375974476337, 0.027423974126577377, -0.05192388594150543, 0.048573702573776245, -0.07063791155815125, 0.03664834052324295, 0.009345876052975655, -0.017870591953396797, 0.06558500975370407, 0.05419471487402916, 0.053043365478515625, 0.05545121803879738, 0.0195212010294199, -0.0760989859700203, 0.008580097928643227, -0.007056627422571182, 0.021465497091412544, -0.11395544558763504, 0.04396674409508705, -0.09903588145971298, -0.08009886741638184, 0.00037721818080171943, 0.07780241966247559, -0.02582469768822193, -0.05276520550251007, -0.08139793574810028, -0.04906653240323067, -0.01113296952098608, -0.004704709630459547, -0.03315398097038269, -0.045668892562389374, 0.05532735958695412, -0.009571592323482037, 0.05374429002404213, 0.011398016475141048, 0.0160771943628788, -0.015793180093169212, 0.010670637711882591, -0.001964673399925232, 0.03598906099796295, -0.006738316733390093, -0.003812806447967887, 0.046810347586870193, 0.08216139674186707, 0.12374943494796753, -0.0353362113237381, -0.044038742780685425, -0.007726855110377073, 0.030457649379968643, -0.0308106429874897, 0.031996261328458786, 0.04991218447685242, -0.07325249165296555, 0.03253702074289322, 0.016228536143898964, 0.025773288682103157, 0.004249644465744495, 0.00495689595118165, -0.013312596827745438, 0.028391504660248756, -0.02739989198744297, 0.02088906802237034, -0.0068593379110097885, -0.056152064353227615, 0.14739932119846344, 0.020352402701973915, 0.06658907234668732, 0.025329114869236946, 0.018861155956983566, -0.006415276788175106, 0.010938139632344246, -0.019125936552882195, 0.016897259280085564, 0.016619514673948288, -0.022705407813191414, 0.004377551376819611, -0.01767859049141407, -0.003587865736335516, -0.15133507549762726, 0.02039475180208683, -0.04446125403046608, -0.017288904637098312, -0.015173671767115593, 0.03221623972058296, -0.0629131942987442, -0.007293344475328922, 0.0017334824660792947, 0.1378207802772522, -0.004595763050019741, 0.030202282592654228, -0.02652057074010372, -0.025528421625494957, 0.035994723439216614, 0.06184358522295952, 0.0344519168138504, 0.08178170025348663, -0.06807750463485718, -0.05071033164858818, -0.0726020485162735, -0.034689389169216156, 0.05587682127952576, 0.022136636078357697, -0.009656102396547794, 0.0047318050637841225, 0.009194614365696907, 0.014265635050833225, 0.012800856493413448, -0.041928283870220184, -0.041670847684144974, 0.02467944473028183, 0.03155843913555145, -0.007103886920958757, -0.03788560628890991, 0.0337410643696785, -0.02534477226436138, -0.06566806882619858, -0.00938403606414795, -0.0561128705739975, 0.016507335007190704, -0.0198604054749012, -0.0036720538046211004, 0.04226579889655113, 0.017183545976877213, -0.029413441196084023, -0.011597871780395508, -0.001834713388234377, 0.052921026945114136, 0.050193868577480316, -0.009663054719567299, -0.006461115088313818, -0.003052572486922145, -0.00914645753800869, -0.028108278289437294, -0.01493083406239748, -0.02655881457030773, -0.004313542507588863, 0.02445509284734726, 0.02911374904215336, -0.01716052182018757, 0.025268731638789177, 0.020324986428022385, 0.0005649622762575746, 0.009878531098365784, 0.056651871651411057, -0.0032085366547107697, -0.00016880175098776817, -0.01566222310066223, 0.03388917073607445, -0.03135920688509941, 0.033772505819797516, 0.020814912393689156, -0.013508698903024197, -0.002356947399675846, 0.013242886401712894, -0.007425567135214806, -0.04768824204802513, 0.0068193706683814526, 0.031136153265833855, 0.02844836935400963, 0.010019859299063683, -0.0061055743135511875, 0.03226787969470024, 0.010986816138029099, 0.012700685299932957, -0.0545988567173481, -0.0026018465869128704, 0.01709645986557007, -0.0075498237274587154, -0.0022449290845543146, -0.03335028514266014, -0.010258784517645836, -0.03376355767250061, 0.004769624676555395, 0.007692561950534582, 0.01080978475511074, -0.11106307804584503, -0.03482465818524361, -0.031040629372000694, 0.028228668496012688, -0.020791348069906235, -0.048210568726062775, 0.028071289882063866, 0.00799296610057354, -0.025118371471762657, 0.014305038377642632, 0.02533712424337864, 0.03387320041656494, 0.013048318214714527, -0.01579030603170395, -0.0020150034688413143, 0.0027967968489974737, -0.010677495039999485, 0.007667158264666796, 0.00718372967094183, 0.019341273233294487, -0.021846989169716835, 0.049413640052080154, 0.021149972453713417, -0.010263573378324509, 0.013844496570527554, 0.036323562264442444, 0.002121932804584503, -0.017729610204696655, 0.015747712925076485, -0.03196021541953087, -0.022451624274253845, -0.002776159206405282, -0.020315054804086685, 0.023720748722553253, -0.03992964327335358, 0.004101675935089588, -0.013668256811797619, 0.02786971814930439, 0.05008320510387421, 0.030912993475794792, 0.03419496491551399, -0.005588093306869268, 0.038175199180841446, -0.012353813275694847, 0.011887051165103912, 0.016989700496196747, -0.017649320885539055, -0.004555443301796913, 0.06170707568526268, -0.02856343425810337, -0.010876737534999847, -0.019333459436893463, 0.005993252154439688, 0.004102644510567188, 0.008936497382819653, 0.007923627272248268, -0.01927410438656807, 0.030557630583643913, 0.01820385456085205, -0.029326695948839188, -0.06405631452798843, 0.002121933503076434, -0.0057450332678854465, -0.007444001734256744, -0.023904282599687576, 0.045906804502010345, 0.0008024226990528405, 0.007148340810090303, 0.003760784398764372, 0.025905372574925423, 0.015200840309262276, -0.016979703679680824, -0.0028271067421883345, 0.017565172165632248, -0.023253461346030235, 0.010432022623717785, -0.0035914669279009104, -0.003024136181920767, 0.04528643190860748, 0.006707458756864071, -0.019758928567171097, -0.009479066357016563, -0.020103059709072113, -0.042067527770996094, 0.02835669368505478, -0.01569083333015442, -0.0008443261031061411, 0.009538044221699238, 0.023063400760293007, 0.0492766909301281, -0.007006804924458265, -0.07082322239875793, 0.02074376307427883, -0.04712425544857979, 0.003415345214307308, -0.023110870271921158, 0.025708043947815895, 0.01671452820301056, 0.012708963826298714, 0.03334161266684532, -0.011864440515637398, -0.018861211836338043, 0.02159813791513443, -0.006303293164819479, -0.03375812992453575, 0.026867857202887535, 0.0005052519263699651, -0.00777281541377306, 0.00834574643522501, 0.007556704804301262, 0.04565832018852234, -0.007661614567041397, 0.012219254858791828, -0.032768405973911285, 0.04456179589033127, 0.042204923927783966, -0.010848968289792538, -0.02757960744202137, -0.011112326756119728, 0.04061396047472954, -0.03976733610033989, 0.04084307327866554, -0.03001929447054863, -0.026022935286164284, 0.03830235078930855, 0.006508325692266226, -0.006973637267947197, 0.016629399731755257, -0.00861725676804781, -0.04821161553263664, -0.03167802095413208, -0.008535723201930523, 0.062046684324741364, 0.015034221112728119, 0.05380295589566231, -0.030448434874415398, -0.019025027751922607, 0.02908346615731716, -0.0024144488852471113, -0.030880920588970184, -0.0193619541823864, 0.0009937031427398324, 0.03265657275915146, -0.03841463848948479, 0.04124721884727478, 0.0054777031764388084, -0.04578810930252075, 0.017380747944116592, -0.011714397929608822, 0.05217311903834343, 0.03715924173593521, -0.03709699586033821, -0.05640292540192604, 0.000668778084218502, 0.044032007455825806, 0.0014062258414924145, 0.004664494190365076, 0.03700505569577217, 0.005300887394696474, 0.03711423650383949, -0.012410094030201435, -0.0021816277876496315, -0.030608098953962326, 0.0038831885904073715, 0.021843979135155678, -0.018264662474393845, -0.015521317720413208, -0.02535855583846569, 0.03438299894332886, 0.02260131947696209, -0.0059757898561656475, 0.012087739072740078, 0.012421331368386745, -0.06569666415452957, 0.03092467412352562, 0.05168450251221657, 0.016574682667851448, -0.03517180308699608, 0.004176967777311802, 0.017603248357772827, -0.025012429803609848, 0.020426349714398384, -0.011743077076971531, -0.024412034079432487, -0.017245952039957047, 0.009061864577233791, 0.060251735150814056, 0.06972018629312515, 0.01037994772195816, 0.0344238318502903, 0.04766087606549263, 0.007683150935918093, 0.036055244505405426, -0.05814344808459282, 0.02324512042105198, -0.004746642895042896, 0.020862387493252754, 0.013376807793974876, -0.033458590507507324, 0.004479346796870232, 0.006291706580668688, 0.01847791112959385, -0.036506786942481995, -0.029417583718895912, 0.02522837556898594, -0.01715214177966118, 0.021800437942147255, -0.0029202685691416264, -0.003697531297802925, 0.009521869011223316, 0.009351623244583607, 0.03271658346056938, -0.02245514467358589, -0.02079129032790661, -0.005023941397666931, -0.02856193482875824, -0.04149951413273811, 0.0462924987077713, 0.026495415717363358, 0.01980718784034252, -0.01815999299287796, -0.010141982696950436, 0.0052843824960291386, -0.048475898802280426, 0.0016499514458701015, -0.0028880692552775145, -0.002870128257200122, 0.009306270629167557, -0.04624747857451439, 0.07816991955041885, 0.02521439827978611, 0.001340774237178266, -0.01295485720038414, 0.01966012269258499, 0.04072297737002373, 0.027657723054289818, -0.005696411710232496, 0.05069589614868164, 0.02410290762782097, -0.020625285804271698, 0.00247116363607347, -0.0024332976900041103, -0.037370067089796066, -0.0025482969358563423, -0.02274826355278492, -0.0062059564515948296, 0.04926164448261261, 0.0037394114769995213, -0.008756968192756176, 0.0006547050434164703, 0.027877705171704292, -0.009747486561536789, 0.03355538472533226, -0.002541739959269762, 0.02925705350935459, 0.007818779908120632, 0.006494477391242981, 0.013258647173643112, -0.000023234424588736147, -0.019851641729474068, 0.008820662274956703, -0.08482664823532104, 0.024012180045247078, -0.0001896372123155743, -0.030520860105752945, 0.035483378916978836, 0.004788638092577457, -0.05790210887789726, 0.037492766976356506, 0.04850918427109718, 0.0386834479868412, 0.017362181097269058, -0.011183470487594604, 0.012721643783152103, -0.005329556297510862, -0.011916620656847954, 0.01868702843785286, 0.05440717190504074, -0.032352760434150696, 0.017477594316005707, -0.01150994561612606, 0.026265043765306473, 0.03497503325343132, 0.02241472341120243, -0.004249632358551025, -0.009968374855816364, 0.045543573796749115, -0.027776362374424934, 0.0672837346792221, 0.049009598791599274, -0.011457269079983234, -0.005054295528680086, -0.009114634245634079, -0.027774879708886147, -0.009724080562591553, -0.012008018791675568, 0.029577264562249184, -0.012477920390665531, 0.014668668620288372, -0.03686734661459923, 0.0324835442006588, 0.05671342462301254, 0.03224288672208786, -0.01678827591240406, 0.0091711999848485, 0.04368302971124649, 0.026517873629927635, -0.00014808806008659303, 0.027743544429540634, -0.009310527704656124, 0.025169171392917633, 0.026603413745760918, 0.022969042882323265, 0.007898317649960518, -0.018438512459397316, -0.021966733038425446, -0.012386632151901722, -0.017286786809563637, -0.01189099159091711, -0.020460905507206917, -0.006457390263676643, -0.031047163531184196, -0.009828400798141956, 0.007787765469402075, 0.0025141346268355846, 0.004913278389722109, -0.02851075492799282, -0.0022620302625000477, 0.012255333364009857, 0.009821038693189621, -0.00022601716045755893, 0.020510202273726463, 0.0013160028029233217, -0.026884466409683228, 0.04758033528923988, -0.005635096691548824, 0.01775628700852394, 0.0014062457485124469, -0.0663413479924202, -0.03592810034751892, 0.01481864508241415, 0.010543414391577244, -0.010815686546266079, 0.01855878345668316, -0.04604078084230423, 0.003358644898980856, 0.04279535263776779, 0.020655088126659393, -0.006942018400877714, 0.011923014186322689, 0.017080727964639664, 0.034754686057567596, -0.03004322201013565, 0.004969039931893349, -0.018894808366894722, -0.0028890972025692463, 0.03146592900156975, -0.04113732650876045, 0.011925894767045975, -0.02050936408340931, 0.05134863033890724, 0.011805379763245583, -0.012495839968323708, -0.003309947205707431, -0.004248668439686298, -0.014615891501307487, 0.012749495916068554, -0.01840231567621231, 0.02175009809434414, 0.008688061498105526, -0.044305093586444855, 0.006806596647948027, 0.009522324427962303, -0.006178473122417927, -0.003981537651270628, 0.023640677332878113, 0.05970760062336922, -0.054066359996795654, -0.004288556519895792, 0.007389289792627096, 0.040309857577085495, 0.018428253009915352, 0.039669882506132126, 0.020560072734951973, 0.013449817895889282, -0.018057584762573242, -0.06422524899244308, 0.0042255111038684845, -0.036646414548158646, -0.0007724962779320776, -0.05687505006790161, -0.03560078889131546, -0.0219667237251997, -0.03861892968416214, -0.018842017278075218, 0.024208610877394676, -0.03824174776673317, 0.01109024416655302, -0.027055393904447556, 0.017587123438715935, -0.0314190536737442, -0.012121830135583878, 0.038909103721380234, 0.043059855699539185, 0.012538302689790726, 0.003832553280517459, -0.02752586267888546, -0.00388910248875618, 0.015486085787415504, 0.035207007080316544, 0.04133748635649681, -0.014666027389466763, -0.01820472441613674, -0.04712219163775444, 0.023691503331065178, -0.01593300886452198, -0.03929333761334419, 0.05308906361460686, 0.005541048012673855, -0.01665005274116993, -0.018813882023096085, -0.015300813131034374, 0.040208227932453156, -0.038684628903865814, 0.058831438422203064, -0.013970647938549519, -0.030095094814896584, -0.01847069524228573, 0.012323749251663685, -0.024037400260567665, 0.0009201273787766695, 0.013125895522534847, 0.009419377893209457, 0.05196637287735939, 0.012729674577713013, 0.0217636376619339, -0.05308416485786438, 0.005436899606138468, 0.005792780313640833, -0.020895356312394142, -0.07881204038858414, -0.057087041437625885, -0.01784832775592804, 0.00693488959223032, -0.041731517761945724, -0.08290231227874756, -0.00784730538725853, -0.023811232298612595, 0.011739874258637428, -0.002416477771475911, -0.020774951204657555, -0.016385456547141075, -0.02471357397735119, -0.0012613661820068955, 0.019496971741318703, 0.019412178546190262, 0.04640810564160347, -0.015345863997936249, 0.038822025060653687, 0.0009286786080338061 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
"Amazon SageMaker is a game changer for Fetch. We use almost every feature extensively. As new features come out, they are immediately valuable. It’s hard to imagine having done this project without the features of Amazon SageMaker.” Sam Corzine, Machine Learning Engineer, Fetch
[ 0.028035342693328857, 0.02398708276450634, 0.015593579038977623, 0.034460533410310745, 0.04003534093499184, 0.027498435229063034, -0.027673842385411263, 0.003291501197963953, -0.022793428972363472, -0.0735681802034378, -0.05539950355887413, 0.03698279708623886, -0.003908522427082062, 0.0539526641368866, 0.018900806084275246, -0.0026483123656362295, -0.012983093038201332, 0.04058123379945755, -0.016685834154486656, -0.015494601801037788, 0.013645713217556477, -0.02651149407029152, 0.0356387123465538, -0.0008032014011405408, -0.056949108839035034, 0.0011614644899964333, -0.00006514908454846591, -0.03728929162025452, -0.09470272809267044, 0.0442032553255558, -0.033345628529787064, -0.003100913716480136, 0.03511473909020424, -0.03617090359330177, -0.054899927228689194, -0.01513082068413496, -0.0911150872707367, 0.057132720947265625, -0.031477898359298706, -0.06715776771306992, -0.017700130119919777, -0.014939948916435242, -0.08308273553848267, 0.031991396099328995, -0.03566937521100044, -0.029775472357869148, -0.21268625557422638, 0.02970806695520878, -0.03330457955598831, -0.04999789968132973, -0.09454499185085297, 0.06943625956773758, -0.05694359540939331, -0.047538548707962036, 0.010689097456634045, 0.005411853082478046, 0.054781630635261536, -0.016404008492827415, -0.030458981171250343, -0.006620110012590885, 0.013374567031860352, -0.06575815379619598, 0.06516822427511215, 0.0061093950644135475, 0.0017015779158100486, -0.015134818851947784, 0.0585775263607502, -0.022818459197878838, -0.03129345923662186, -0.004667213652282953, 0.02489328384399414, -0.10329976677894592, -0.05451163277029991, -0.0423683263361454, 0.011900165118277073, -0.06794993579387665, 0.018213262781500816, 0.02172921597957611, 0.06185736879706383, 0.0459197498857975, -0.040696460753679276, 0.059518326073884964, 0.028870414942502975, 0.05351868271827698, 0.06494929641485214, -0.006321283522993326, 0.0754990503191948, -0.08217792958021164, -0.0048101213760674, 0.07439499348402023, 0.06946053355932236, -0.07926275581121445, 0.03348774462938309, -0.015780074521899223, 0.010097106918692589, -0.05797604098916054, 0.07246369123458862, -0.01923610083758831, -0.0048777880147099495, 0.005407249554991722, 0.0013135442277416587, -0.08634864538908005, 0.03359106928110123, -0.024275651201605797, -0.003709936048835516, 0.028234587982296944, -0.05503976717591286, -0.14981546998023987, -0.0004966554697602987, 0.08026663213968277, 0.03786503151059151, 0.031367652118206024, -0.004108743276447058, 0.07650233060121536, -0.058431029319763184, 0.13149990141391754, 0.06174338236451149, -0.0007589449523948133, 0.02437710016965866, -0.03493925929069519, 0.07122804969549179, 0.0474248081445694, 0.03489246591925621, 0.02871783636510372, 0.005748662631958723, 0.04471000283956528, 0.04388773441314697, -0.0008208164945244789, 0.007904868572950363, -0.061057135462760925, 0.0201119277626276, -0.04976768046617508, -0.022155361250042915, 0.03085547871887684, -0.0464736707508564, -0.023240260779857635, -0.014920448884367943, -0.09005818516016006, -0.006854061968624592, 0.005409907549619675, -0.008521678857505322, 0.03643194958567619, 0.020597264170646667, 0.07140420377254486, 0.05643804743885994, 0.005235190037637949, -0.006848698481917381, 0.008276419714093208, -0.010747185908257961, 0.051094699651002884, -0.04808714613318443, 0.03810691088438034, -0.09017561376094818, -0.11503629386425018, -0.044692087918519974, 0.07430559396743774, 0.008571634069085121, 0.011113052256405354, -0.012955338694155216, -0.04136289283633232, -0.012953553348779678, 0.02366761863231659, -0.00831269659101963, -0.03460495546460152, 0.03182019665837288, 0.0015978694427758455, 0.04309304058551788, 0.0037790569476783276, -0.0012352480553090572, -0.02370118349790573, -0.004391650669276714, -0.04774482920765877, 0.07205703854560852, -0.022552136331796646, -0.005787666421383619, 0.01575900986790657, 0.05678343027830124, 0.01867322251200676, 0.017433570697903633, -0.02549079805612564, -0.020063063129782677, -0.0072282832115888596, -0.03736839070916176, 0.001948365243151784, 0.012963305227458477, -0.012503783218562603, 0.06594715267419815, 0.013596467673778534, 0.017216596752405167, 0.008347958326339722, -0.06355732679367065, -0.03156520053744316, 0.0892348513007164, 0.004128828179091215, -0.020775994285941124, -0.062281958758831024, -0.03328562527894974, 0.1244107037782669, 0.026453062891960144, 0.06028825789690018, 0.019680585712194443, 0.022276246920228004, -0.0071641686372458935, 0.008089430630207062, -0.037142589688301086, 0.01572078838944435, 0.03776680678129196, 0.008785533718764782, 0.015147428028285503, -0.05240732803940773, 0.007909661158919334, -0.10499957203865051, 0.07116082310676575, -0.08343150466680527, -0.04598173499107361, 0.012748783454298973, -0.10139136016368866, 0.010215169750154018, -0.0067450981587171555, 0.008044607937335968, 0.09395008534193039, -0.00020317541202530265, 0.012354656122624874, 0.03206714242696762, 0.024579135701060295, 0.07247283309698105, 0.08236297219991684, 0.03690313175320625, 0.07251933962106705, -0.055672306567430496, -0.04213958606123924, -0.060814645141363144, -0.04873380437493324, 0.04141036793589592, 0.002362060360610485, -0.042924076318740845, 0.005309720523655415, -0.009517285972833633, -0.0046401917934417725, 0.04278731718659401, 0.008028160780668259, 0.07611619681119919, 0.005347420461475849, 0.05278940871357918, -0.008505075238645077, -0.09714385122060776, 0.03279542922973633, -0.03838047757744789, -0.042420946061611176, 0.014670232310891151, -0.06001934036612511, 0.003510197391733527, 0.02544349431991577, 0.008093110285699368, 0.08047324419021606, 0.004679481033235788, -0.028404397889971733, -0.018150700256228447, 0.011467267759144306, 0.06453792750835419, 0.01677205041050911, -0.000797695480287075, 0.028097564354538918, -0.028246896341443062, 0.026359042152762413, -0.058505360037088394, -0.017140772193670273, -0.004522689152508974, 0.01634868048131466, 0.002473242115229368, 0.024447575211524963, -0.05571413040161133, 0.013955900445580482, 0.01150519959628582, -0.015292328782379627, 0.019235659390687943, 0.046272117644548416, 0.0010777279967442155, 0.00546046020463109, -0.03290130943059921, 0.03217009827494621, -0.03911488130688667, 0.025354815647006035, 0.011320280842483044, 0.05137108638882637, 0.001962073612958193, 0.012719296850264072, -0.005939694121479988, -0.024131489917635918, 0.02460450679063797, 0.018612675368785858, 0.022449808195233345, 0.01669152081012726, -0.028891777619719505, 0.0362185463309288, -0.0020019174553453922, -0.0022521379869431257, -0.017175588756799698, -0.014232234098017216, 0.020564498379826546, 0.002860426204279065, -0.0049965339712798595, -0.019940534606575966, 0.014606029726564884, -0.03143811225891113, 0.011138441041111946, 0.014382841065526009, -0.0006729684537276626, -0.11234752833843231, -0.05076682195067406, 0.013290409930050373, 0.00903769489377737, 0.058712683618068695, -0.0415884368121624, 0.030933251604437828, -0.00511157838627696, -0.04015909135341644, 0.04372764378786087, 0.009131545200943947, 0.01891751028597355, 0.035759229212999344, -0.038208864629268646, -0.00187014602124691, 0.026022618636488914, -0.014404204674065113, -0.003539149183779955, -0.020618759095668793, -0.012604794465005398, -0.01125594973564148, 0.07119403779506683, -0.023077169433236122, -0.043768689036369324, -0.03154874965548515, 0.022946376353502274, 0.032459717243909836, 0.007149137556552887, -0.0016506242100149393, -0.03208014369010925, -0.008581123314797878, -0.00043761133565567434, -0.031950660049915314, 0.01433730497956276, -0.0075326901860535145, -0.0050882454961538315, 0.013540155254304409, 0.04114460572600365, 0.034214191138744354, 0.03357356786727905, 0.03927178308367729, -0.007991801016032696, 0.032901111990213394, -0.01364181563258171, 0.05895427241921425, -0.03815809264779091, -0.009404377080500126, 0.04199720919132233, 0.03835147246718407, -0.05618947371840477, -0.025300541892647743, -0.025295674800872803, -0.035693082958459854, 0.05131344124674797, 0.03014536388218403, -0.03467746824026108, 0.023268070071935654, 0.006852635182440281, 0.022645235061645508, -0.01491511519998312, -0.009132595732808113, 0.026416128501296043, 0.05702114850282669, 0.009631600230932236, -0.015878872945904732, 0.02281220257282257, 0.006442676298320293, 0.013541150838136673, -0.012117075733840466, 0.01943105086684227, 0.02805965580046177, 0.0197954960167408, 0.004347598180174828, 0.009507933631539345, -0.02758064679801464, 0.03490286320447922, -0.00043012230889871716, 0.018815122544765472, 0.0445418544113636, 0.02720852941274643, -0.0037125006783753633, -0.06358301639556885, 0.03125042840838432, -0.04888446256518364, 0.01987406425178051, 0.01022174023091793, -0.037126265466213226, -0.018267301842570305, 0.022279564291238785, 0.052354175597429276, 0.011979182250797749, -0.028200117871165276, 0.033231064677238464, -0.021555112674832344, -0.004775935783982277, -0.00994399655610323, 0.06152487173676491, -0.0008357467595487833, -0.016047891229391098, -0.01017026137560606, 0.019440701231360435, -0.02902107685804367, -0.020900942385196686, -0.0068223136477172375, -0.012133053503930569, 0.016398712992668152, -0.03198644891381264, -0.056252337992191315, -0.01650300808250904, 0.013144060969352722, 0.032794661819934845, -0.004390161484479904, -0.021105723455548286, 0.0018523911712691188, 0.013992445543408394, 0.055338259786367416, 0.014325691387057304, -0.03532858192920685, 0.0019088716944679618, 0.03956310451030731, -0.07927031069993973, 0.014694105833768845, -0.0005130693316459656, -0.011732705868780613, -0.014743703417479992, -0.017184387892484665, 0.015296339057385921, 0.0021628604736179113, -0.010352992452681065, -0.04139450564980507, -0.015814241021871567, -0.0016246529994532466, 0.007257859222590923, 0.005056518595665693, 0.05279979854822159, 0.015416020527482033, -0.025197720155119896, 0.056936509907245636, -0.038173746317625046, -0.03054160624742508, -0.002411630004644394, 0.0010316910920664668, 0.0033694140147417784, -0.0014271719846874475, 0.03979310393333435, -0.04094884917140007, -0.0205336045473814, -0.003798592370003462, -0.0022244122810661793, 0.018485726788640022, 0.005298330914229155, -0.027013646438717842, -0.033399928361177444, -0.0017839536303654313, 0.006850424688309431, -0.00823108572512865, -0.016966430470347404, 0.005832816008478403, 0.0000026037637326226104, 0.03082515113055706, -0.029249507933855057, 0.017361830919981003, -0.010179989971220493, 0.032975684851408005, -0.0037811726797372103, 0.044193021953105927, -0.0203083585947752, 0.004918522667139769, 0.029391687363386154, 0.04849701747298241, -0.022089295089244843, -0.028988201171159744, 0.01947854273021221, -0.016099903732538223, -0.008458498865365982, 0.03962454944849014, 0.03689032420516014, -0.0006340053514577448, 0.009386632591485977, 0.008380729705095291, -0.0037098380271345377, 0.0001841987977968529, -0.021106041967868805, 0.0007767724455334246, -0.007219698745757341, 0.030258990824222565, 0.055107977241277695, 0.023998891934752464, 0.01416352391242981, 0.04774322360754013, 0.007226296700537205, -0.010907679796218872, 0.045611001551151276, -0.02645387500524521, 0.0426873154938221, 0.0007905022939667106, 0.0244185458868742, 0.026522822678089142, -0.0265192911028862, -0.0030183615162968636, 0.04138779267668724, 0.02449902705848217, -0.01958785578608513, -0.018371962010860443, 0.026581795886158943, -0.009172855876386166, 0.0014361264184117317, -0.010257050395011902, 0.03349657729268074, -0.004162963479757309, -0.006880131084471941, 0.03245643898844719, 0.006677830126136541, -0.02012409269809723, -0.0009181472705677152, -0.03503678739070892, 0.019938752055168152, 0.06953226774930954, -0.006945488043129444, -0.00730177341029048, -0.030395951122045517, -0.008867708966135979, 0.014795346185564995, 0.005722775124013424, 0.05168265476822853, -0.044928908348083496, 0.003934403415769339, 0.01807231269776821, -0.02760433778166771, 0.007227275520563126, 0.015385511331260204, 0.021082399412989616, -0.005830954760313034, -0.008515313267707825, -0.00979643501341343, -0.020148281008005142, -0.01974068209528923, 0.0569697730243206, -0.008255040273070335, -0.018314041197299957, -0.02188234031200409, -0.02512405440211296, -0.0431947186589241, -0.015451975166797638, -0.021782392635941505, 0.035070110112428665, 0.05494682118296623, 0.01769033446907997, 0.0062532126903533936, -0.00479142926633358, -0.0013646415900439024, 0.03833683952689171, 0.025440070778131485, 0.03325716406106949, 0.0071874698624014854, -0.022120485082268715, 0.009428536519408226, 0.03436636924743652, 0.006231929175555706, -0.051988355815410614, -0.003449545241892338, -0.05379258096218109, 0.016886910423636436, 0.06020365282893181, -0.007808322552591562, 0.04767065867781639, 0.006851811893284321, -0.03970642387866974, 0.04348335042595863, 0.02866019494831562, 0.011694247834384441, 0.03676935285329819, 0.06964227557182312, 0.034557145088911057, 0.011697331443428993, -0.028536904603242874, 0.01584029383957386, 0.049089476466178894, -0.027065034955739975, 0.003120735287666321, -0.02087128721177578, 0.04718524590134621, 0.028423914685845375, 0.014271673746407032, -0.015804000198841095, 0.03052375651896, 0.028816338628530502, -0.02728010155260563, 0.053771428763866425, 0.04941270500421524, -0.029080985113978386, 0.008338063023984432, -0.023359373211860657, 0.014679756946861744, -0.02707180753350258, -0.03358587622642517, 0.06593120098114014, -0.012991823256015778, -0.014620124362409115, -0.017379866912961006, 0.0344218872487545, 0.042267922312021255, 0.030336014926433563, 0.04118407517671585, -0.0029654877725988626, 0.013632173649966717, -0.017063243314623833, 0.022745763882994652, -0.005351358558982611, -0.018911197781562805, 0.03107835352420807, 0.01043037697672844, -0.008095643483102322, -0.0038845238741487265, -0.03480672091245651, -0.013950650580227375, -0.005071644671261311, 0.021216917783021927, 0.00495329312980175, 0.023627951741218567, -0.015408181585371494, -0.050794173032045364, -0.05442652478814125, -0.011499290354549885, -0.013541584834456444, -0.02189229428768158, 0.011128278449177742, 0.038425054401159286, -0.016050375998020172, 0.003402104601264, -0.01125667430460453, 0.019876638427376747, -0.01209073793143034, -0.04527640342712402, -0.041352324187755585, 0.003761934582144022, 0.017243696376681328, 0.026512494310736656, -0.026339245960116386, -0.024793412536382675, 0.023147646337747574, 0.0049478705041110516, 0.008269315585494041, -0.005398225970566273, -0.05364609137177467, -0.01502282079309225, 0.02834940515458584, 0.010382595472037792, 0.0031968990806490183, 0.013784677721560001, 0.009456563740968704, 0.03613480553030968, -0.005692231934517622, 0.017386136576533318, -0.03666014224290848, 0.005755385383963585, 0.0027993102557957172, -0.04822629317641258, 0.017250752076506615, -0.022428544238209724, 0.03949006646871567, -0.006306643132120371, 0.002042153850197792, -0.008199782110750675, 0.0003750604810193181, -0.010272894985973835, 0.006238356698304415, -0.04854699969291687, 0.016017435118556023, -0.0015518175205215812, -0.048939142376184464, -0.004644899629056454, 0.0015098564326763153, 0.023554110899567604, -0.01073659211397171, 0.01593899168074131, 0.0322844572365284, -0.04269728437066078, -0.01071157306432724, 0.014346782118082047, 0.05780559405684471, 0.02791048400104046, 0.03702428936958313, 0.004997926764190197, 0.012702889740467072, -0.014234572649002075, -0.06268981844186783, -0.004802689887583256, 0.0011012735776603222, 0.00806653592735529, -0.023673424497246742, -0.041585952043533325, -0.040938641875982285, 0.0002961845020763576, 0.012865889817476273, 0.001406138064339757, -0.0375383198261261, 0.040459729731082916, 0.011095631867647171, -0.01204278226941824, -0.03081958182156086, -0.019606443122029305, 0.04499942064285278, 0.024310076609253883, 0.010123183019459248, -0.00701054185628891, -0.022761235013604164, -0.016070276498794556, -0.010833109728991985, 0.07105129957199097, 0.03475634381175041, -0.015759285539388657, -0.004815145395696163, -0.03798014298081398, 0.027495035901665688, -0.05683772638440132, -0.014403198845684528, 0.03506798297166824, 0.031504590064287186, 0.003486624453216791, -0.012701844796538353, -0.017548266798257828, 0.036015212535858154, -0.0025779164861887693, 0.014071791432797909, -0.007042981684207916, 0.002392449649050832, -0.04316815361380577, -0.032596517354249954, -0.04650897532701492, -0.0057548717595636845, -0.011076083406805992, -0.01495557650923729, 0.0372721292078495, 0.027086181566119194, -0.0030912929214537144, -0.05741371586918831, -0.023587245494127274, -0.0015166864031925797, -0.03582838177680969, -0.08350145071744919, -0.029034113511443138, -0.011915850453078747, 0.03248264640569687, -0.021849434822797775, -0.05327402427792549, 0.01735171303153038, -0.028269831091165543, -0.016139237210154533, 0.006951087154448032, 0.011592746712267399, 0.018630661070346832, -0.03135078400373459, 0.042748089879751205, 0.03317621722817421, 0.030769672244787216, 0.06850024312734604, 0.031565602868795395, 0.02668757177889347, 0.019515717402100563 ]
Fetch Cuts ML Processing Latency by 50% Using Amazon SageMaker & Hugging Face
Violette
September 1, 2023
fetch-case-study
case-studies
https://huggingface.co/blog/fetch-case-study
"Using the flexibility of the Hugging Face AWS Deep Learning Container, we could improve the quality of our models,and Hugging Face’s partnership with AWS meant that it was simple to deploy these models.” Sam Corzine, Machine Learning Engineer, Fetch Fetch’s ML pipeline is powered by several Amazon SageMaker features, particularly Amazon SageMaker Model Training, which reduces the time and cost to train and tune ML models at scale, and Amazon SageMaker Processing, a simplified, managed experience to run data-processing workloads. The company runs its custom ML models using multi-GPU instances for fast performance. “The GPU instances on Amazon SageMaker are simple to use,” says Ellen Light, backend engineer at Fetch. Fetch trains these models to identify and extract key information on receipts that the company can use to generate valuable insights and reward users. And on Amazon SageMaker, Fetch’s custom ML system is seamlessly scalable. “By using Amazon SageMaker, we have a simple way to scale up our systems, especially for inference and runtime,” says Sam Corzine, ML engineer at Fetch. Meanwhile, standardized model deployments mean less manual work. Fetch heavily relied on the ML training features of Amazon SageMaker, particularly its training jobs, as it refined and iterated on its models. Fetch can also train ML models in parallel, which speeds up development and deployments. “There’s little friction for us to deploy models,” says Alec Stashevsky, applied scientist at Fetch. “Basically, we don’t have to think about it.” This has increased confidence and improved productivity for the entire company. In one example, a new intern was able to deploy a model himself by his third day on the job. Since adopting Amazon SageMaker for ML tuning, training, and retraining, Fetch has enhanced the accuracy of its document-understanding model by 200 percent. It continues to fine-tune its models for further improvement. “Amazon SageMaker has been a key tool in building these outstanding models,” says Quency Yu, ML engineer at Fetch. To optimize the tuning process, Fetch relies on Amazon SageMaker Inference Recommender, a capability of Amazon SageMaker that reduces the time required to get ML models in production by automating load testing and model tuning. In addition to its custom ML models, Fetch uses AWS Deep Learning Containers (AWS DL Containers), which businesses can use to quickly deploy deep learning environments with optimized, prepackaged container images. This simplifies the process of using libraries from Hugging Face Inc.(Hugging Face), an artificial intelligence technology company and AWS Partner. Specifically, Fetch uses the Amazon SageMaker Hugging Face Inference Toolkit, an open-source library for serving transformers models, and the Hugging Face AWS Deep Learning Container for training and inference. “Using the flexibility of the Hugging Face AWS Deep Learning Container, we could improve the quality of our models,” says Corzine. “And Hugging Face’s partnership with AWS meant that it was simple to deploy these models.” For every metric that Fetch measures, performance has improved since adopting Amazon SageMaker. The company has reduced latency for its slowest scans by 50 percent. “Our improved accuracy also creates confidence in our data among partners,” says Corzine. With more confidence, partners will increase their use of Fetch’s solution. “Being able to meaningfully improve accuracy on literally every data point using Amazon SageMaker is a huge benefit and propagates throughout our entire business,” says Corzine. Fetch can now extract more types of data from a receipt, and it has the flexibility to structure resulting insights according to the specific needs of brand partners. “Leaning into ML has unlocked the ability to extract exactly what our partners want from a receipt,” says Corzine. “Partners can make new types of offers because of our investment in ML, and that’s a huge additional benefit for them.” Users enjoy the updates too; Fetch has grown from 10 million to 18 million monthly active users since it released the new version. “Amazon SageMaker is a game changer for Fetch,” says Corzine. “We use almost every feature extensively. As new features come out, they are immediately valuable. It’s hard to imagine having done this project without the features of Amazon SageMaker.” For example, Fetch migrated from a custom shadow testing pipeline to Amazon SageMaker shadow testing—which validates the performance of new ML models against production models to prevent outages. Now, shadow testing is more direct because Fetch can directly compare performance with production traffic.
[ 0.005925226956605911, -0.013531972654163837, -0.03619801253080368, 0.05811886116862297, -0.014855964109301567, 0.04609261453151703, -0.02770315669476986, 0.01116762775927782, -0.02817087434232235, -0.016883796080946922, -0.06124512478709221, 0.05038459226489067, -0.011675482615828514, 0.086131751537323, 0.046645451337099075, -0.09650956839323044, 0.02185315266251564, 0.040520355105400085, -0.05857235565781593, 0.03332158178091049, -0.003903643460944295, -0.04766807705163956, 0.04287730157375336, 0.04814311861991882, -0.08525053411722183, -0.06423082202672958, 0.03270192816853523, -0.052461884915828705, -0.0146619388833642, 0.05471170321106911, -0.05169644206762314, -0.015558246523141861, 0.02040274813771248, -0.01824309676885605, -0.01811235211789608, -0.043774157762527466, -0.14777079224586487, 0.04099801182746887, 0.01641226001083851, -0.0031253763008862734, 0.0022181214299052954, 0.016231941059231758, -0.09030461311340332, 0.011533522978425026, 0.014547747559845448, -0.038944266736507416, -0.08459504693746567, -0.01765712909400463, -0.00917748548090458, -0.03717489540576935, -0.12648974359035492, 0.06742474436759949, -0.0074701919220387936, -0.022637678310275078, 0.023661373183131218, 0.0067939311265945435, 0.04178287833929062, -0.01939033344388008, -0.02745393104851246, -0.014251219108700752, -0.014513256959617138, -0.06180783361196518, 0.0440562441945076, -0.02821728214621544, -0.005357447080314159, -0.0007519701030105352, 0.004895815160125494, -0.03546055778861046, -0.015074252150952816, -0.014567147940397263, 0.020399197936058044, -0.06197432801127434, -0.02185809053480625, -0.05372312292456627, -0.00979196559637785, -0.044967684894800186, -0.024723617359995842, -0.026390455663204193, 0.03868221864104271, -0.008699709549546242, -0.09522548317909241, 0.047008711844682693, -0.04012346640229225, 0.055013518780469894, 0.06048782169818878, 0.014153826981782913, 0.027836687862873077, -0.06470542401075363, -0.06420107185840607, 0.07004190981388092, 0.06052667275071144, -0.026290271431207657, 0.018622249364852905, 0.03223446011543274, 0.05587904527783394, 0.02587856911122799, 0.009605956263840199, 0.006550122518092394, 0.004987616557627916, -0.023484840989112854, 0.04652347043156624, -0.05907737836241722, 0.015521387569606304, -0.01843986101448536, -0.05713934078812599, 0.07443740218877792, -0.040756773203611374, -0.154521182179451, 0.0062356023117899895, 0.03594015911221504, 0.06144607812166214, -0.024459797888994217, -0.012726204469799995, 0.10035746544599533, -0.13250693678855896, 0.0636688768863678, 0.01795177534222603, -0.04101233184337616, 0.023089425638318062, -0.06746521592140198, 0.04785098508000374, 0.07544204592704773, 0.050626400858163834, -0.03437149152159691, -0.012760655954480171, 0.04684143513441086, -0.020931951701641083, -0.006130021531134844, 0.04998321458697319, -0.044836465269327164, 0.025502612814307213, -0.05357036367058754, 0.00005001274621463381, 0.04923911392688751, -0.0063858358189463615, -0.0352148599922657, 0.012723136693239212, -0.0769377127289772, 0.007084238808602095, 0.007922288030385971, 0.0012474368559196591, 0.09153991937637329, 0.011306495405733585, 0.019186310470104218, 0.07687761634588242, 0.05049305036664009, -0.02533777803182602, 0.004878984298557043, -0.0030022363644093275, 0.049889203161001205, -0.09306050837039948, 0.030908122658729553, -0.05084299296140671, -0.09160135686397552, 0.016674669459462166, 0.09880276769399643, -0.027898987755179405, 0.009916095994412899, -0.006809223908931017, -0.03597994148731232, -0.10385596752166748, -0.02772689051926136, -0.04449966549873352, -0.03460836037993431, -0.0005777162150479853, 0.025660188868641853, -0.001317251124419272, 0.0031037202570587397, -0.010395078919827938, 0.007140055764466524, -0.010445778258144855, -0.005382980685681105, 0.06120213493704796, -0.029431505128741264, 0.040428031235933304, 0.02015497535467148, 0.021659620106220245, 0.028453415259718895, 0.02728615328669548, -0.01055191084742546, -0.04284017160534859, 0.07393688708543777, 0.013832364231348038, 0.022413406521081924, 0.039702218025922775, -0.047060586512088776, 0.04054250195622444, -0.010118845850229263, -0.017024507746100426, 0.004226821009069681, -0.04548393934965134, 0.015845632180571556, 0.050316620618104935, 0.015831930562853813, 0.00023655315453652292, -0.0325918085873127, -0.05652143806219101, 0.1032734364271164, 0.006833340041339397, 0.03054163046181202, 0.048814043402671814, -0.006224858108907938, 0.004030902404338121, -0.0039021866396069527, -0.03171304240822792, -0.001811578287743032, -0.004052597098052502, -0.02091206982731819, -0.01416165940463543, 0.04304664209485054, 0.029507486149668694, -0.17743591964244843, 0.027388563379645348, -0.04755014553666115, 0.002057010307908058, -0.0165666863322258, -0.07152560353279114, -0.047740183770656586, -0.013525435701012611, 0.03269458934664726, 0.11706367880105972, 0.043013691902160645, 0.014672558754682541, -0.021400470286607742, 0.038651157170534134, -0.00849223043769598, 0.06849334388971329, 0.04938303306698799, 0.09664637595415115, -0.05237476900219917, -0.051759667694568634, -0.09719367325305939, -0.04718644544482231, 0.0002203248004661873, -0.025647679343819618, -0.04382453113794327, 0.06520833820104599, -0.01742463745176792, -0.021777592599391937, 0.004176920745521784, 0.032691095024347305, 0.01801307313144207, -0.007507261820137501, 0.044589411467313766, 0.029727647081017494, -0.0576493926346302, 0.014412306249141693, -0.04071889445185661, -0.026924533769488335, -0.030560482293367386, -0.05326799303293228, 0.03158952668309212, -0.011224430054426193, -0.0024952273815870285, 0.05085096135735512, -0.013380937278270721, -0.009223886765539646, 0.01727304980158806, 0.002237489679828286, 0.08478926867246628, 0.008882975205779076, 0.012736044824123383, -0.01826116070151329, 0.009358172304928303, 0.013797937892377377, -0.06030752509832382, -0.020541366189718246, -0.019017262384295464, 0.028102146461606026, -0.013681910000741482, 0.03798422962427139, -0.051263757050037384, 0.026010824367403984, -0.01664041541516781, -0.015620095655322075, 0.04627720266580582, 0.014163081534206867, 0.011431337334215641, 0.0024792831391096115, -0.04843832552433014, 0.04334988072514534, -0.04356245696544647, 0.013295385055243969, 0.011473407968878746, 0.036888547241687775, -0.0011148954508826137, -0.012939928099513054, -0.04696815833449364, -0.04171862453222275, 0.028216037899255753, 0.032033585011959076, 0.0255783349275589, 0.030219608917832375, -0.035441357642412186, 0.017496684566140175, 0.028872177004814148, -0.027715805917978287, -0.012092637829482555, -0.0003496615681797266, 0.06879184395074844, -0.014836509712040424, -0.011314800940454006, -0.021614069119095802, 0.04447825625538826, -0.011689652688801289, -0.01494956947863102, 0.049632664769887924, 0.019536450505256653, -0.07034261524677277, -0.025774585083127022, -0.014958493411540985, 0.004913013428449631, 0.01941843144595623, -0.04468711093068123, 0.03037063591182232, -0.008328944444656372, -0.008244505152106285, 0.06357918679714203, 0.012381098233163357, 0.05641637369990349, 0.024537529796361923, -0.031101955100893974, 0.014320213347673416, 0.007509049493819475, -0.0011552589712664485, -0.04013527184724808, -0.01588444970548153, 0.012328337877988815, -0.011485109105706215, 0.009702127426862717, 0.003480828832834959, -0.029742201790213585, -0.00730942515656352, -0.005725329741835594, 0.060890763998031616, -0.024404501542448997, 0.042490337044000626, -0.031744420528411865, -0.03138167783617973, 0.005933776497840881, -0.015872560441493988, -0.012207363732159138, -0.013567757792770863, -0.006968968082219362, 0.006264431867748499, 0.03670535609126091, 0.054386261850595474, 0.03339653089642525, 0.013468381948769093, 0.005474874284118414, 0.001354871317744255, 0.0230995025485754, 0.1036590114235878, 0.0030125228222459555, -0.0149093521758914, -0.003760897321626544, 0.03449131175875664, -0.03785768896341324, -0.013708870857954025, -0.006390642374753952, -0.01632864400744438, 0.04705639183521271, 0.010335598140954971, 0.0072832838632166386, 0.028406484052538872, 0.011765615083277225, -0.002471386222168803, -0.01612100936472416, -0.025770647451281548, 0.02563600428402424, 0.0027353379409760237, 0.013024681247770786, 0.00919220969080925, 0.0051391213200986385, -0.008436882868409157, -0.02732427977025509, 0.012766432948410511, 0.021921519190073013, 0.002827652031555772, 0.03784389793872833, -0.044926967471838, -0.004276001825928688, -0.0348987840116024, -0.01965835504233837, 0.00868185330182314, 0.010800180025398731, 0.046898696571588516, 0.00939568318426609, -0.013855887576937675, -0.02096293680369854, 0.016966253519058228, -0.02344825677573681, 0.051321882754564285, -0.02109820954501629, -0.002602646593004465, -0.05549732595682144, 0.04796043783426285, 0.035542573779821396, -0.014146753586828709, -0.02656647376716137, 0.0348966158926487, -0.015496375039219856, 0.009434068575501442, -0.051084790378808975, 0.029167428612709045, 0.0398714616894722, -0.022508732974529266, 0.00011215333506697789, -0.033693715929985046, 0.004060826264321804, -0.023272139951586723, -0.00036398967495188117, -0.03487319499254227, 0.011477043852210045, -0.015492119826376438, -0.05000549182295799, -0.019765449687838554, -0.011719794012606144, 0.02854919247329235, 0.009869595989584923, -0.010869313031435013, 0.003932766616344452, 0.06243632361292839, 0.05331265181303024, 0.025745969265699387, -0.0019476437009871006, -0.0071844556368887424, 0.03867584094405174, -0.037095002830028534, 0.03903152793645859, -0.028504515066742897, -0.02341185323894024, 0.0160469189286232, 0.03634065389633179, 0.02603602595627308, 0.0015836262609809637, -0.007713919039815664, -0.06631608307361603, -0.014114752411842346, 0.016056900843977928, 0.05152977630496025, -0.021009240299463272, 0.02502383291721344, -0.02777133882045746, -0.025343265384435654, 0.029056446626782417, -0.028011662885546684, 0.03188076615333557, -0.00246337684802711, 0.022564556449651718, 0.019441019743680954, -0.0064681051298975945, 0.031070828437805176, -0.0004414071445353329, -0.018004169687628746, 0.0016333828680217266, -0.027245905250310898, 0.03578801453113556, -0.021089786663651466, -0.008335800841450691, -0.033886395394802094, 0.018559958785772324, 0.026799079030752182, -0.0006299957749433815, -0.023824380710721016, 0.012139811180531979, 0.005230303388088942, 0.05598357692360878, -0.03489170968532562, 0.040582574903964996, -0.00900298822671175, 0.0015434763627126813, 0.010533317923545837, 0.03625218942761421, -0.010178592056035995, 0.004034580662846565, -0.006479473318904638, 0.03570333495736122, -0.043956127017736435, -0.007749288808554411, -0.007286364678293467, -0.03856101632118225, 0.016587916761636734, 0.08122307062149048, 0.061789076775312424, -0.010356232523918152, -0.010663037188351154, 0.03735846281051636, -0.03187684342265129, 0.0037094266153872013, -0.047702133655548096, -0.0163632370531559, -0.001609215629287064, 0.02980319783091545, 0.0745358020067215, 0.045714203268289566, -0.029774397611618042, 0.0303182452917099, -0.0008449249435216188, -0.015666333958506584, 0.04591922461986542, -0.019642915576696396, 0.03481374308466911, 0.007965425960719585, 0.017426686361432076, 0.020589536055922508, 0.00613070884719491, 0.007064155302941799, 0.0352507159113884, 0.026807915419340134, -0.0223435889929533, -0.004818201530724764, 0.026935243979096413, -0.018511297181248665, -0.02091960795223713, -0.018148357048630714, 0.036307405680418015, -0.015885643661022186, -0.006222193595021963, -0.0000529581775481347, -0.010803957469761372, -0.016186516731977463, 0.01749540865421295, -0.038597989827394485, -0.008224482648074627, 0.06731218099594116, 0.02157469093799591, -0.012234453111886978, -0.04186517745256424, -0.007960062474012375, -0.012471448630094528, -0.03687482699751854, 0.005209128372371197, -0.054438818246126175, 0.00680558942258358, 0.008678698912262917, -0.018992090597748756, -0.02244831807911396, 0.01022324152290821, 0.0060068052262067795, -0.006898407358676195, 0.029172558337450027, -0.0023074341006577015, -0.04454775154590607, 0.01052162703126669, 0.03875028342008591, 0.010041715577244759, -0.0264597125351429, -0.009526711888611317, -0.035814426839351654, -0.0045967730693519115, -0.02162681706249714, -0.03354712575674057, 0.04521065205335617, 0.030960049480199814, 0.016613740473985672, -0.01023000106215477, 0.014444832690060139, 0.018321514129638672, 0.03413379192352295, 0.0524737723171711, 0.009539271704852581, 0.016106871888041496, -0.018626566976308823, 0.006076689809560776, 0.060694124549627304, 0.014146191067993641, -0.027965812012553215, -0.011599143967032433, -0.050860971212387085, 0.013494974002242088, 0.044812772423028946, -0.02733340859413147, -0.004995428491383791, -0.018228670582175255, -0.041382741183042526, 0.01917075552046299, 0.0074127791449427605, 0.014402870088815689, 0.034286994487047195, 0.019308989867568016, 0.04872692748904228, 0.0199879202991724, 0.008149653673171997, -0.019292127341032028, 0.03240843489766121, 0.0287901870906353, -0.023682337254285812, -0.025003138929605484, 0.025429842993617058, 0.03950900956988335, 0.012989269569516182, 0.014773028902709484, -0.009911466389894485, 0.06176953762769699, -0.01570313051342964, 0.06112583726644516, 0.051588937640190125, -0.021864967420697212, -0.006760040298104286, 0.000757196918129921, -0.009490524418652058, -0.025760507211089134, -0.030780959874391556, 0.052157964557409286, -0.02720818482339382, 0.01415487565100193, 0.002491920255124569, 0.04070340096950531, 0.07047267258167267, 0.010141058824956417, 0.0183623768389225, 0.022692205384373665, 0.03498172014951706, 0.006932901684194803, 0.036656081676483154, 0.05004488676786423, -0.0008591640507802367, -0.02024594321846962, 0.01696215383708477, -0.001777730300091207, 0.04313419759273529, -0.03278949111700058, 0.007040560245513916, -0.007368341088294983, 0.015067024156451225, -0.0013964225072413683, 0.03877044469118118, -0.02285616286098957, -0.05466039851307869, -0.03618558868765831, -0.02030722238123417, 0.0075940415263175964, 0.012195504270493984, -0.02614784799516201, 0.026786720380187035, -0.006159829907119274, 0.037569817155599594, -0.0040315063670277596, -0.015067768283188343, 0.0031118153128772974, -0.06006815657019615, -0.0013225078582763672, -0.005608370993286371, 0.0018607203382998705, -0.021856458857655525, -0.006145583000034094, -0.0351567417383194, 0.0100395567715168, -0.02854520082473755, 0.004934228491038084, 0.012111975811421871, -0.044206127524375916, 0.0010140578960999846, 0.005638000089675188, 0.03948307782411575, 0.036583952605724335, 0.014272690750658512, 0.0027456171810626984, -0.0028387513011693954, -0.014899149537086487, 0.006194751709699631, 0.023521365597844124, -0.03496891260147095, 0.006131191272288561, -0.06446541100740433, 0.021310584619641304, -0.000637405610177666, 0.03956989571452141, -0.00027038290863856673, 0.04044544696807861, -0.004045828711241484, 0.007771553937345743, 0.000028722002753056586, 0.016385585069656372, -0.034666288644075394, 0.04575008153915405, -0.026564672589302063, -0.03220151737332344, 0.004393327049911022, -0.003057051682844758, 0.012644542381167412, -0.0068074967712163925, 0.01031668484210968, 0.06732179969549179, -0.03622453659772873, -0.0321057103574276, 0.003537568496540189, 0.023823412135243416, 0.04853305220603943, 0.054796114563941956, 0.01734723150730133, -0.01219957321882248, 0.009347881190478802, -0.04291041940450668, -0.0012998048914596438, -0.027272406965494156, 0.015928391367197037, -0.05511147156357765, -0.017862172797322273, -0.021502094343304634, 0.0239406805485487, 0.005252225324511528, 0.012485128827393055, -0.02954663708806038, 0.03833591938018799, -0.006791209802031517, -0.013748199678957462, -0.012410188093781471, 0.0027040098793804646, 0.056979693472385406, 0.03974132612347603, -0.007410172838717699, -0.013723762705922127, -0.045943669974803925, -0.023670338094234467, -0.00009205653623212129, 0.05757882073521614, 0.05436096340417862, -0.047057949006557465, 0.02338794246315956, -0.0244649276137352, -0.025806521996855736, 0.02102447673678398, -0.029818251729011536, 0.027001550421118736, 0.015155759640038013, 0.0220765620470047, 0.011577077209949493, 0.005438963416963816, 0.06581207364797592, -0.019736001268029213, 0.025619691237807274, -0.04634634032845497, -0.028904134407639503, 0.011417213827371597, 0.012547468766570091, -0.0501934252679348, -0.010530833154916763, -0.02624017931520939, 0.007539407350122929, 0.03927111625671387, -0.013615887612104416, 0.027073226869106293, -0.05163578689098358, 0.008740332908928394, 0.02713620290160179, -0.05608328804373741, -0.05990412086248398, -0.04533381760120392, -0.00865508895367384, 0.0141014214605093, 0.000012745217645715456, -0.043488673865795135, -0.006852111779153347, -0.015944156795740128, 0.0017033354379236698, 0.016995325684547424, -0.018208041787147522, -0.018751243129372597, -0.04555941000580788, 0.01095226313918829, 0.020865049213171005, 0.016517605632543564, 0.07398996502161026, 0.016496066004037857, -0.028231987729668617, -0.005050443112850189 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Hardware requirements We ran several tests on the hardware needed to run the model for different use cases. Those are not the minimum numbers, but the minimum numbers for the configurations we had access to. | | Type | Kind | Memory | Example | | ----------- | --------- | ---------------- | ------------------- | --------------- | | Falcon 180B | Training | Full fine-tuning | 5120GB | 8x 8x A100 80GB | | Falcon 180B | Training | LoRA with ZeRO-3 | 1280GB | 2x 8x A100 80GB | | Falcon 180B | Training | QLoRA | 160GB | 2x A100 80GB | | Falcon 180B | Inference | BF16/FP16 | 640GB | 8x A100 80GB | | Falcon 180B | Inference | GPTQ/int4 | 320GB | 8x A100 40GB |
[ 0.03713805973529816, 0.019087065011262894, 0.017026325687766075, 0.0685964897274971, 0.09493748843669891, 0.023744091391563416, 0.0028055815491825342, 0.06512598693370819, -0.023769371211528778, -0.062254562973976135, -0.009951126761734486, 0.050369374454021454, -0.009364890865981579, -0.008391027338802814, 0.03130309283733368, -0.03585097938776016, 0.02207028865814209, -0.029348812997341156, 0.008089538663625717, 0.01821139268577099, 0.008226059377193451, -0.04321005940437317, 0.042503759264945984, 0.011838167905807495, 0.021204054355621338, -0.07692869752645493, -0.005431280937045813, -0.019257722422480583, 0.01338692381978035, -0.00968216359615326, -0.059804946184158325, 0.022860871627926826, -0.01194282528012991, -0.0763426423072815, 0.03955081105232239, 0.029802121222019196, -0.07620301097631454, 0.06265419721603394, -0.0038911080919206142, -0.015356583520770073, -0.012026618234813213, 0.020782580599188805, -0.018161140382289886, 0.042669832706451416, -0.0053428225219249725, 0.04929105564951897, -0.16390475630760193, 0.06094963476061821, -0.009486605413258076, 0.0010762241436168551, -0.06339220702648163, 0.04852547124028206, -0.027173519134521484, -0.054361741989851, 0.08066582679748535, 0.005844933912158012, -0.03127482160925865, -0.02491828054189682, 0.031987957656383514, 0.04448777809739113, 0.04382044076919556, 0.003026074729859829, 0.002234757412225008, 0.03153427317738533, -0.013897223398089409, -0.07597561180591583, 0.030159205198287964, -0.027003226801753044, -0.04399610310792923, 0.06521549075841904, -0.008506362326443195, -0.021634653210639954, 0.05827885493636131, -0.030183296650648117, -0.06285496801137924, -0.12220688909292221, 0.02707134559750557, 0.06092292442917824, 0.08603062480688095, 0.05730481445789337, 0.0368945337831974, 0.004293878097087145, 0.04982819780707359, 0.025803742930293083, -0.02257489040493965, -0.005339012481272221, 0.010548734106123447, 0.019671130925416946, -0.02018931694328785, 0.0482029914855957, -0.023912865668535233, -0.11599447578191757, -0.010794013738632202, 0.009598028846085072, -0.015296092256903648, -0.030020879581570625, -0.030165428295731544, 0.04049801826477051, 0.0411464162170887, 0.009910373948514462, -0.009274953976273537, -0.002363923704251647, 0.07528485357761383, -0.08091116696596146, -0.026081576943397522, 0.08038995414972305, -0.03900986537337303, -0.05359599366784096, -0.045573968440294266, 0.02207392267882824, -0.03925967961549759, -0.010655432008206844, -0.03350893780589104, -0.011222385801374912, -0.09829078614711761, 0.03468039631843567, 0.0016678377287462354, 0.011694874614477158, 0.03278420865535736, 0.03144119307398796, 0.05252383276820183, 0.11176112294197083, 0.008918623439967632, -0.02728007547557354, -0.003968086093664169, 0.04399740695953369, 0.0458092987537384, -0.003749180119484663, -0.06785114109516144, -0.06129369139671326, 0.01927982270717621, -0.03116011805832386, -0.00011270225513726473, -0.02297794632613659, 0.016245126724243164, -0.05338094010949135, -0.07115918397903442, 0.0046942587941884995, -0.016599535942077637, 0.021822549402713776, -0.06988286972045898, -0.0005906550213694572, 0.046068981289863586, -0.0005403562099672854, 0.04710206761956215, -0.041677478700876236, 0.018622182309627533, 0.028567863628268242, -0.06738364696502686, -0.03975078836083412, -0.08310183137655258, 0.06437727808952332, -0.037049151957035065, -0.08130575716495514, 0.04540075361728668, 0.02297147549688816, -0.05161955580115318, -0.05113711953163147, -0.10000540316104889, -0.06309331208467484, -0.05410325899720192, 0.0010600823443382978, -0.04371451586484909, 0.03113741986453533, 0.05615967884659767, -0.010659851133823395, 0.018679704517126083, 0.02472199685871601, 0.027102967724204063, -0.003603558521717787, 0.02558763325214386, -0.04090752452611923, 0.11945425719022751, -0.01190126035362482, -0.042657170444726944, 0.03019554913043976, 0.05682012811303139, 0.031099919229745865, -0.006570660043507814, 0.013563094660639763, 0.012149754911661148, -0.005712863989174366, -0.016255734488368034, 0.04821636900305748, -0.002705559367313981, -0.09247218072414398, -0.005601123441010714, -0.04897156357765198, -0.03644394502043724, -0.026319969445466995, -0.0541224330663681, -0.06937018781900406, 0.05892757698893547, 0.03993140161037445, 0.044666800647974014, -0.0553700290620327, -0.013264978304505348, 0.09741320461034775, 0.06614342331886292, 0.09865998476743698, 0.04227956756949425, 0.05601660907268524, 0.05962234362959862, 0.011360262520611286, -0.043345704674720764, 0.07326369732618332, 0.02814103104174137, -0.011139796115458012, 0.038602832704782486, 0.014446411281824112, -0.007443610578775406, -0.12617073953151703, -0.013498097658157349, -0.055754780769348145, 0.03622499853372574, -0.03658011555671692, 0.019608085975050926, -0.0075870705768466, 0.05154752358794212, -0.0669279620051384, 0.09091036021709442, 0.030725227668881416, -0.030144983902573586, -0.011518951505422592, -0.05330578610301018, 0.021892307326197624, 0.092165507376194, 0.014482079073786736, -0.012037335895001888, -0.079530268907547, 0.011211439967155457, -0.043212227523326874, -0.027338603511452675, 0.08988720923662186, 0.01883973740041256, 0.05742111802101135, -0.04514593258500099, 0.036417197436094284, 0.08052518218755722, -0.017582880333065987, -0.014828710816800594, 0.051354873925447464, -0.019854526966810226, 0.02292688377201557, -0.02576494961977005, -0.08734697848558426, 0.08877447992563248, 0.027180122211575508, -0.054248880594968796, -0.0746234580874443, -0.07684221118688583, -0.020749801769852638, 0.016577959060668945, -0.014850729145109653, 0.05318760499358177, -0.0142793208360672, -0.0034495063591748476, -0.03955036401748657, -0.008550490252673626, 0.00906667485833168, -0.014665238559246063, 0.019095180556178093, 0.027017859742045403, -0.03986532986164093, 0.006869867909699678, -0.024312829598784447, -0.02433657832443714, -0.027412312105298042, 0.0002213659172412008, 0.002679228549823165, 0.002304785419255495, -0.03253572806715965, 0.01878475584089756, 0.021583637222647667, 0.0029072032775729895, 0.032848943024873734, 0.04908742010593414, -0.03163394704461098, -0.015920689329504967, -0.004082569386810064, 0.04539266973733902, -0.021176902577280998, 0.01696496456861496, -0.013679281808435917, -0.001260529737919569, 0.005376056768000126, 0.04113433137536049, -0.010060100816190243, 0.0007011385168880224, 0.016920842230319977, 0.0012787566520273685, -0.0042806086130440235, -0.016293026506900787, -0.020259151235222816, -0.0014977440005168319, 0.008133254013955593, 0.024615852162241936, 0.017610114067792892, -0.03824875131249428, -0.022327981889247894, -0.022756138816475868, 0.03830331936478615, 0.003424169961363077, 0.02840290032327175, -0.03254878148436546, 0.04387718066573143, -0.0014394279569387436, 0.044998038560152054, -0.11941579729318619, 0.010373062454164028, -0.02183893881738186, 0.04008002206683159, -0.022038385272026062, 0.007099156733602285, 0.042489662766456604, -0.004690464586019516, 0.046250831335783005, -0.027606571093201637, -0.028864121064543724, 0.03043845295906067, 0.02062215469777584, 0.011131741106510162, -0.03363905847072601, 0.032428447157144547, 0.06806432455778122, -0.017701564356684685, 0.012262399308383465, 0.002554314909502864, -0.007366531528532505, 0.024950269609689713, 0.0008927799062803388, 0.003317647846415639, -0.02725212089717388, -0.006899448577314615, -0.007137503009289503, 0.006361734122037888, 0.024141825735569, -0.011406436562538147, -0.022844886407256126, -0.0037782778963446617, -0.04721362516283989, 0.0260023046284914, -0.031838156282901764, -0.041114065796136856, -0.012203220278024673, -0.0032934618648141623, -0.0012934679398313165, 0.053714361041784286, 0.005888490471988916, 0.012646079994738102, 0.04286615923047066, 0.008840606547892094, -0.005169888027012348, 0.02653411030769348, 0.01834566332399845, 0.006908471696078777, 0.03766513615846634, 0.0049690138548612595, -0.04396285116672516, 0.026850197464227676, 0.01405822392553091, 0.07103044539690018, 0.001311238738708198, -0.006001843139529228, 0.012685811147093773, 0.059752192348241806, 0.03947361931204796, -0.0433308370411396, -0.0745987594127655, 0.012911871075630188, 0.011050129309296608, 0.031033242121338844, -0.03998645022511482, 0.02163843810558319, 0.03449799865484238, 0.028968552127480507, -0.009185499511659145, -0.017665430903434753, -0.022567715495824814, 0.0298286285251379, 0.018756216391921043, 0.021960822865366936, 0.02978585846722126, -0.004692382644861937, -0.010629118420183659, -0.01447618380188942, 0.05946649610996246, 0.052837640047073364, 0.017290331423282623, -0.019270645454525948, -0.05553389713168144, -0.047601137310266495, 0.0069745746441185474, -0.007636153604835272, -0.005049524363130331, -0.017838293686509132, 0.018997875973582268, 0.035817451775074005, 0.01192410197108984, -0.041903480887413025, 0.04143919050693512, -0.024070080369710922, 0.026789000257849693, -0.007733579259365797, 0.05651484429836273, -0.03233187273144722, 0.03642978146672249, 0.01976184733211994, 0.021352306008338928, 0.0170268714427948, 0.019752629101276398, -0.015242177061736584, -0.0082758329808712, 0.007741132285445929, -0.015616503544151783, -0.02724403887987137, -0.007833106443285942, 0.017798814922571182, 0.05003814026713371, -0.04164490848779678, 0.039032336324453354, -0.02948991395533085, 0.012591207399964333, 0.0252300426363945, -0.017868386581540108, -0.007253725081682205, -0.006884589325636625, 0.02536562830209732, -0.04003879427909851, 0.002958559663966298, -0.027038568630814552, 0.008527887985110283, -0.0044272588565945625, -0.016876911744475365, 0.023827798664569855, 0.01568754017353058, -0.0019715602975338697, -0.009129867888987064, -0.017710359767079353, -0.019397836178541183, 0.0011141322320327163, 0.02755214460194111, 0.001419059932231903, -0.002195060485973954, -0.04223408177495003, 0.013833700679242611, 0.007655330467969179, -0.051667165011167526, -0.02158987894654274, 0.011722687631845474, 0.03274047002196312, -0.01452248077839613, 0.01778309978544712, 0.018831729888916016, -0.03837551921606064, 0.0071993558667600155, -0.011510992422699928, 0.02244844101369381, 0.0020751510746777058, -0.06418038159608841, -0.04619518294930458, 0.04135093092918396, -0.01326130609959364, -0.021362606436014175, -0.007332477252930403, 0.006570373196154833, 0.005163868423551321, 0.02789488434791565, 0.024067746475338936, 0.014177283272147179, -0.023620441555976868, 0.033043272793293, 0.022987276315689087, 0.01987527683377266, 0.01857350580394268, -0.033939942717552185, -0.03626922145485878, 0.016976894810795784, -0.0018341138493269682, -0.04990595579147339, 0.003383804112672806, -0.03881654515862465, 0.0661020576953888, 0.03883691132068634, 0.021900931373238564, -0.001719802850857377, 0.009488563984632492, 0.037086132913827896, 0.014338197186589241, 0.004618589300662279, 0.020982669666409492, -0.020451638847589493, 0.008760806173086166, 0.007067046128213406, 0.058744125068187714, 0.04312222823500633, 0.038780875504016876, -0.013947154395282269, 0.032361116260290146, -0.011306717991828918, 0.046834155917167664, -0.01949395425617695, 0.015033247880637646, 0.031193802133202553, 0.026723481714725494, 0.023152923211455345, 0.021535171195864677, -0.010493194684386253, -0.011949088424444199, 0.030586939305067062, 0.017486467957496643, -0.00588442524895072, 0.024981798604130745, 0.015423025004565716, 0.04955129697918892, -0.0003228788555134088, 0.02882479876279831, -0.005778607912361622, -0.005837166681885719, -0.03904168680310249, -0.038714997470378876, -0.0025550550781190395, 0.013395932503044605, -0.04100315645337105, -0.0614447146654129, 0.06209269538521767, -0.0011957735987380147, 0.021980958059430122, -0.02964559942483902, -0.001995596569031477, 0.012028065510094166, 0.009048079140484333, 0.021360712125897408, 0.009950095787644386, 0.03388500213623047, 0.013276191428303719, -0.006096090655773878, 0.027393020689487457, -0.0030280102510005236, -0.02291904389858246, 0.0375431627035141, 0.01627040095627308, 0.053073666989803314, 0.018472954630851746, -0.04752359911799431, 0.001249558525159955, 0.0298356544226408, 0.01897946372628212, -0.03218989819288254, -0.001677096588537097, -0.03326985612511635, 0.014323499985039234, -0.0882311686873436, 0.00448059756308794, 0.029609087854623795, -0.0373256653547287, -0.01048989687114954, -0.00035765458596870303, 0.012633675709366798, 0.003940869122743607, 0.033066798001527786, 0.011125246994197369, -0.00026689443620853126, 0.020013893023133278, -0.005093354731798172, -0.008549736812710762, 0.0238301083445549, -0.0008589911740273237, 0.02079787850379944, 0.0023849892895668745, 0.005418216343969107, 0.05793284624814987, -0.02259356901049614, 0.039890144020318985, -0.01095390785485506, -0.042432598769664764, 0.008562861010432243, 0.04153870791196823, 0.020665492862462997, 0.022569702938199043, -0.029337113723158836, -0.010872057639062405, -0.07896000146865845, 0.007951000705361366, 0.038065019994974136, 0.056898608803749084, -0.010295458137989044, 0.01625744439661503, -0.010885064490139484, 0.060045741498470306, 0.05895398557186127, -0.011163337156176567, -0.054115090519189835, 0.029948865994811058, 0.08661632984876633, -0.021886179223656654, -0.004406945779919624, 0.03385934233665466, 0.027228526771068573, -0.006669004913419485, -0.024021444842219353, -0.015864085406064987, -0.0767485648393631, 0.01930929347872734, -0.023224182426929474, -0.038763467222452164, 0.002559643005952239, -0.057757847011089325, 0.04071449115872383, 0.01396110188215971, -0.0147765027359128, -0.004288101568818092, 0.032893985509872437, -0.005703759845346212, -0.013843809254467487, -0.004788749385625124, 0.0015515657141804695, -0.020246652886271477, 0.014395787380635738, -0.005240179598331451, 0.012757888063788414, 0.030855130404233932, 0.02423994243144989, 0.006036202888935804, 0.017052417621016502, -0.03107733093202114, 0.0036861002445220947, 0.035756733268499374, 0.033396802842617035, -0.0034087682142853737, 0.008539973758161068, 0.0052597494795918465, -0.04117410629987717, -0.01919618435204029, -0.03637150675058365, -0.014745345339179039, -0.018772011622786522, -0.03220279514789581, 0.010036159306764603, -0.007233910728245974, 0.02673022449016571, -0.018797939643263817, -0.025214646011590958, 0.00017675037088338286, -0.029261771589517593, -0.025614697486162186, -0.021562714129686356, -0.015327684581279755, -0.012400687672197819, 0.031045986339449883, -0.030982250347733498, 0.06447115540504456, 0.007532412186264992, 0.024029221385717392, 0.019512319937348366, -0.006091775838285685, -0.049799688160419464, 0.01502237282693386, -0.019888708367943764, -0.0034442630130797625, -0.0013717933325096965, 0.02456430159509182, -0.03191347420215607, -0.059294119477272034, 0.017184173688292503, -0.020875710994005203, 0.025963304564356804, -0.038539182394742966, 0.014551699161529541, 0.0327601432800293, 0.04302937537431717, -0.010240154340863228, -0.04771377891302109, -0.0171792134642601, -0.07124905288219452, -0.014999272301793098, 0.021942345425486565, 0.0045648966915905476, -0.005024420563131571, -0.0008773633162491024, -0.004295393358916044, -0.013612164184451103, -0.05329925939440727, -0.010329794138669968, 0.00465667899698019, -0.02643662318587303, -0.0003051856183446944, -0.028765620663762093, 0.04598710313439369, -0.016475485637784004, 0.01362635474652052, 0.029250796884298325, 0.011794138699769974, 0.0009613443980924785, 0.003397315042093396, 0.004624560941010714, 0.018961934372782707, 0.05262673646211624, -0.03244280442595482, -0.0756731629371643, 0.0005914735374972224, -0.012584748677909374, 0.021705355495214462, -0.0027763384860008955, -0.00790508184581995, -0.05609237030148506, -0.030831115320324898, -0.014249585568904877, 0.005993368104100227, -0.012991638854146004, 0.03189351037144661, 0.05475553125143051, 0.04256020858883858, -0.02278139628469944, -0.005925216246396303, 0.016208970919251442, -0.021010473370552063, 0.00953815970569849, 0.017788531258702278, 0.03968261182308197, -0.02855616807937622, -0.029150674119591713, 0.03719227761030197, -0.024873781949281693, -0.03845538571476936, -0.01677422970533371, 0.058473095297813416, -0.0037159924395382404, 0.022388076409697533, 0.0011708688689395785, 0.009189814329147339, 0.011268039233982563, 0.05293409153819084, -0.013262991793453693, -0.011110814288258553, 0.02951817587018013, -0.0039296383038163185, -0.06218976899981499, -0.040941208600997925, -0.014405903406441212, 0.0191040001809597, -0.003409875789657235, 0.015250959433615208, -0.016094451770186424, 0.007247496396303177, -0.015356945805251598, 0.025531332939863205, -0.00022016809089109302, -0.06057445704936981, -0.013905664905905724, 0.01492962334305048, 0.027875099331140518, -0.0030983437318354845, -0.046674907207489014, 0.014443697407841682, 0.010405367240309715, 0.019218899309635162, -0.01807190664112568, -0.022025231271982193, -0.02059965766966343, 0.026025425642728806, 0.040818292647600174, -0.005348679143935442, 0.05248229578137398, -0.0053419871255755424, 0.001381648937240243, 0.007384054828435183, -0.018627438694238663 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
8-bit and 4-bit with bitsandbytes The 8-bit and 4-bit quantized versions of Falcon 180B show almost no difference in evaluation with respect to the bfloat16 reference! This is very good news for inference, as you can confidently use a quantized version to reduce hardware requirements. Keep in mind, though, that 8-bit inference is much faster than running the model in 4-bit. To use quantization, you need to install the bitsandbytes library and simply enable the corresponding flag when loading the model: python model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype=torch.bfloat16, load_in_8bit=True, device_map="auto", )
[ 0.026294497773051262, 0.021247807890176773, 0.004482920281589031, 0.03873833268880844, 0.04833024740219116, 0.04621425271034241, -0.02105540782213211, 0.04562721773982048, 0.00023227240308187902, -0.04106602072715759, -0.055670205503702164, 0.04443221539258957, -0.04826067015528679, -0.06876737624406815, 0.03032105416059494, -0.0381476916372776, 0.02285679616034031, -0.054536979645490646, -0.02618815191090107, 0.05404923856258392, 0.004979909397661686, -0.062303557991981506, 0.0354287326335907, 0.004256639163941145, -0.07110943645238876, -0.08060772716999054, 0.006697142496705055, 0.029129739850759506, -0.0032470673322677612, 0.047513656318187714, -0.09600771218538284, -0.024268684908747673, -0.03366183862090111, -0.012829480692744255, 0.01139091420918703, 0.06541798263788223, -0.13636411726474762, 0.046016085892915726, 0.00402618944644928, -0.0746966078877449, 0.035934627056121826, -0.014162298291921616, 0.00634012883529067, 0.027045615017414093, 0.05003058910369873, 0.029025672003626823, -0.05743579939007759, 0.04360715672373772, 0.017083745449781418, -0.050465866923332214, -0.026659006252884865, 0.018950264900922775, -0.1027594581246376, -0.010635497979819775, 0.1177646666765213, -0.022754106670618057, -0.0523146316409111, -0.03907538577914238, 0.02383977547287941, 0.051440730690956116, 0.07550150901079178, -0.035112712532281876, 0.0033411576878279448, 0.0694970041513443, -0.0009351617773063481, -0.0061161108314991, -0.017992282286286354, 0.014490404166281223, -0.021753570064902306, 0.08782919496297836, -0.05618417263031006, 0.014488612301647663, -0.004458418115973473, -0.05299730598926544, -0.05080198869109154, -0.10309212654829025, -0.014525712467730045, -0.005553857889026403, 0.07541994005441666, 0.042546577751636505, 0.03022587299346924, 0.038765836507081985, 0.08758732676506042, 0.0441473051905632, 0.02856266126036644, 0.015193535946309566, -0.048614751547575, 0.016619276255369186, -0.02851637825369835, 0.06351029872894287, -0.07874652743339539, -0.09672196954488754, 0.07480350881814957, -0.02426130138337612, -0.02803920954465866, -0.02288956381380558, 0.007215132936835289, 0.0683794841170311, 0.06079964339733124, -0.05541668459773064, 0.006434459704905748, -0.018890297040343285, 0.045464444905519485, -0.021162135526537895, -0.0023751952685415745, 0.08477413654327393, -0.07973708212375641, -0.05597573146224022, -0.029093187302350998, 0.026275357231497765, 0.01829972118139267, -0.019048096612095833, -0.037386856973171234, -0.03655596822500229, -0.04723944514989853, -0.03943053260445595, -0.04390404373407364, 0.06852146238088608, 0.029341617599129677, -0.02233053743839264, 0.022703010588884354, 0.09667015820741653, 0.054117362946271896, -0.03354176878929138, 0.03619696572422981, -0.011878038756549358, 0.06435170024633408, 0.09082488715648651, 0.0010904031805694103, 0.008565331809222698, 0.057881537824869156, -0.06354562193155289, 0.04736799746751785, -0.042058732360601425, -0.03957885131239891, -0.04793878272175789, -0.06245521828532219, -0.094774529337883, -0.0674779936671257, -0.03373317793011665, -0.0666799247264862, 0.02193916030228138, -0.01936476305127144, 0.007268212735652924, 0.003698579501360655, -0.02697117254137993, -0.013721161521971226, 0.050750721246004105, -0.031403593719005585, 0.005648288410156965, -0.07263851165771484, 0.015613927505910397, -0.03192049637436867, -0.05529217794537544, -0.001420661574229598, 0.03671139478683472, -0.05523747578263283, 0.01974423974752426, -0.0710211992263794, -0.06600026786327362, -0.027354924008250237, -0.07287105172872543, -0.017149699851870537, -0.06005826219916344, 0.004547155927866697, 0.05036349594593048, 0.007721119560301304, 0.04938746616244316, 0.01125671248883009, 0.011978387832641602, 0.03908991068601608, -0.004291911143809557, 0.13009092211723328, -0.026735441759228706, -0.0012303671101108193, 0.06453554332256317, 0.04513134807348251, 0.027802547439932823, -0.03619302064180374, -0.05740002542734146, -0.0571773499250412, 0.005154422949999571, -0.02326107956469059, 0.022802338004112244, 0.02445773221552372, -0.039719097316265106, 0.04561977833509445, -0.05204101651906967, -0.009996901266276836, 0.11452239006757736, -0.041042815893888474, -0.006211989559233189, 0.052435290068387985, -0.0020040564704686403, 0.08089097589254379, -0.016749707981944084, -0.0003435258404351771, 0.07512309402227402, 0.05371304601430893, -0.0652783066034317, -0.015064883977174759, -0.04259893298149109, 0.007189115975052118, -0.0042405277490615845, 0.02865821309387684, 0.04223765432834625, 0.014312071725726128, -0.011059622280299664, 0.06502669304609299, 0.03229188174009323, 0.08684605360031128, -0.07309827208518982, 0.020842423662543297, -0.044207558035850525, 0.010229453444480896, 0.012030445970594883, -0.007181612309068441, 0.008707218803465366, 0.03154073283076286, -0.046499934047460556, 0.10188687592744827, 0.0024876538664102554, -0.009084573946893215, -0.07961145043373108, -0.016582859680056572, -0.011907464824616909, -0.010768255218863487, 0.016484051942825317, -0.03593338280916214, -0.06912858039140701, -0.008953732438385487, -0.06989490240812302, 0.00017333005962427706, 0.022381549701094627, -0.06594225764274597, -0.03394884243607521, -0.053007420152425766, 0.028719820082187653, 0.027608348056674004, -0.050272852182388306, -0.028350258246064186, 0.06378547102212906, -0.022621972486376762, 0.0007289214991033077, -0.0410010926425457, -0.02730194292962551, 0.10226944833993912, -0.0387800857424736, -0.03077797032892704, 0.003892740933224559, -0.041119661182165146, -0.009320374578237534, 0.02993439882993698, -0.007795846555382013, 0.039217639714479446, 0.027667826041579247, 0.04251813143491745, 0.013129058293998241, -0.023946193978190422, 0.006519940681755543, 0.013468354009091854, 0.03128961846232414, -0.007568496745079756, 0.0011247238144278526, 0.005080877337604761, -0.017956634983420372, -0.029219171032309532, 0.014575707726180553, 0.005429464392364025, -0.00005054919165559113, -0.03106399066746235, 0.011107797734439373, 0.05708194524049759, 0.01416746061295271, 0.023517215624451637, 0.08398763090372086, 0.09274642169475555, -0.019791942089796066, -0.06309300661087036, 0.002621413441374898, -0.016022900119423866, -0.021792590618133545, 0.040944211184978485, -0.018221985548734665, -0.0418313704431057, -0.017111197113990784, 0.00006244551332201809, -0.027394158765673637, -0.0507277250289917, 0.03345751762390137, -0.012539802119135857, 0.03929734230041504, 0.03741857036948204, -0.04026598483324051, 0.03073449619114399, 0.06286951154470444, -0.0030655376613140106, 0.011442957445979118, 0.02284918911755085, 0.01257581077516079, -0.014641283079981804, -0.007541171740740538, -0.02573333866894245, 0.006507363636046648, -0.005793394520878792, 0.00044961931416764855, -0.010830757208168507, 0.002395396353676915, -0.07429429888725281, 0.008854245766997337, -0.02114873006939888, -0.010074540972709656, -0.011200856417417526, -0.013294943608343601, 0.020017052069306374, 0.006976226344704628, 0.03975523263216019, -0.010614793747663498, 0.027125012129545212, -0.02258264273405075, 0.010722845792770386, 0.024349259212613106, 0.00048768092528916895, 0.05129950866103172, -0.01854982227087021, -0.0012558673042804003, -0.00017740947077982128, 0.007318011950701475, 0.006370364222675562, 0.02558828890323639, -0.016541486606001854, -0.028127208352088928, -0.024393122643232346, -0.020281881093978882, 0.04784449189901352, 0.0008856134372763336, -0.010043671354651451, -0.03576023131608963, -0.0629425048828125, -0.036300964653491974, -0.016377633437514305, -0.020398303866386414, 0.016406210139393806, -0.041697677224874496, -0.010439962148666382, -0.015759818255901337, 0.004916143137961626, 0.03430473804473877, -0.024391192942857742, 0.05429881066083908, 0.019630732014775276, -0.01765337958931923, 0.011548993177711964, 0.02341959998011589, 0.002077181590721011, 0.0163161288946867, 0.009186922572553158, -0.023998774588108063, -0.028195517137646675, -0.03809873014688492, -0.006183881778270006, 0.003129828255623579, 0.041561610996723175, -0.024629106745123863, -0.0033743800595402718, 0.04736855998635292, 0.04481356590986252, -0.0393555574119091, -0.02670195885002613, 0.03850109875202179, 0.027236273512244225, -0.02667238935828209, -0.03948336839675903, 0.004005580674856901, 0.03858678415417671, -0.017201581969857216, -0.0056187366135418415, -0.025554988533258438, -0.036979950964450836, 0.03816157579421997, 0.01767730712890625, 0.010499447584152222, 0.01791638508439064, 0.011328332126140594, -0.0165711697191, -0.017903706058859825, 0.07417844980955124, 0.033465899527072906, 0.006486402824521065, -0.0445016473531723, -0.01833406090736389, 0.010925710201263428, -0.029114272445440292, 0.006314295809715986, -0.012058716267347336, -0.012167033739387989, -0.022585060447454453, 0.009652075357735157, 0.02491520717740059, -0.005436462350189686, 0.05450686812400818, 0.0056811003014445305, -0.04000101611018181, 0.0018758203368633986, 0.03904576599597931, 0.020992210134863853, 0.017756659537553787, 0.05443412810564041, 0.02019682340323925, -0.05817171186208725, -0.025294635444879532, -0.03181339055299759, -0.017434507608413696, -0.00878895353525877, -0.032781071960926056, -0.001974567538127303, 0.015003707259893417, 0.015399591997265816, -0.002037293277680874, -0.028955621644854546, 0.03304067254066467, 0.033651985228061676, 0.062099967151880264, 0.028324676677584648, 0.004985821899026632, -0.04720837250351906, -0.022830747067928314, 0.0011437415378168225, -0.06698715686798096, 0.047254376113414764, 0.009087740443646908, -0.03243348374962807, -0.010716457851231098, 0.013275490142405033, 0.015963967889547348, 0.01950846053659916, 0.0013109600404277444, -0.05952528119087219, -0.016571246087551117, 0.007463245652616024, -0.018748532980680466, -0.00944184884428978, 0.0177790317684412, 0.01891949027776718, -0.024944737553596497, 0.0016533922171220183, 0.022489668801426888, -0.02701740525662899, -0.013174321502447128, 0.037465695291757584, 0.005231007933616638, -0.030982816591858864, -0.009213034994900227, 0.028491074219346046, 0.003167893970385194, 0.024811411276459694, -0.040900446474552155, 0.028746888041496277, 0.03629599139094353, -0.009150282479822636, -0.022420259192585945, 0.023104729130864143, 0.014337033033370972, -0.007995990104973316, 0.023065127432346344, 0.012123893946409225, 0.0337006039917469, -0.003376915119588375, 0.0635739117860794, 0.055329032242298126, 0.009870887733995914, 0.02203737013041973, 0.05680261552333832, 0.0028317321557551622, 0.006179708521813154, -0.06489862501621246, -0.013322817161679268, 0.0011829662835225463, -0.038896966725587845, 0.004611363168805838, -0.018312348052859306, -0.028655461966991425, 0.02683059126138687, -0.005021112039685249, -0.0012004809686914086, -0.01677772030234337, 0.010062654502689838, 0.032599709928035736, 0.01897541806101799, -0.043964266777038574, 0.04929891973733902, -0.01638329029083252, -0.008623365312814713, 0.02806765027344227, -0.03633076697587967, 0.056783825159072876, 0.029120132327079773, 0.02097429521381855, 0.009287926368415356, 0.029829813167452812, -0.021486414596438408, -0.005352618172764778, 0.019610535353422165, -0.012853913009166718, -0.016689177602529526, -0.01375378668308258, -0.009916195645928383, -0.0015479910653084517, 0.025664154440164566, 0.022179754450917244, 0.010169359855353832, -0.03362251818180084, -0.01985236071050167, -0.024932721629738808, 0.0011091969208791852, 0.013107187114655972, 0.013738254085183144, -0.04744825139641762, 0.0317302905023098, -0.008668141439557076, 0.002162882126867771, 0.018623467534780502, 0.02281125634908676, 0.002621610648930073, -0.045095693320035934, 0.03921130299568176, -0.0021750947926193476, 0.013928926549851894, -0.03598005697131157, -0.01338197011500597, 0.003356274915859103, -0.003534118179231882, 0.031081827357411385, -0.015166007913649082, 0.0022026586811989546, 0.055596549063920975, 0.0028620462398976088, 0.02557450719177723, -0.012507792562246323, -0.006254509091377258, 0.014051506295800209, -0.014182889834046364, 0.03465526923537254, 0.000646772445179522, -0.03532830998301506, -0.031223544850945473, -0.0021835954394191504, -0.013997908681631088, -0.008339767344295979, -0.011384490877389908, -0.0063874367624521255, 0.009288121946156025, -0.0809774100780487, -0.001316478243097663, 0.05289974808692932, -0.05600680410861969, -0.0018511228263378143, 0.002625281922519207, 0.0040269880555570126, 0.0020113536156713963, 0.026459950953722, 0.029031923040747643, 0.023370221257209778, 0.02229071594774723, 0.008305816911160946, -0.0021029463969171047, 0.0008904842543415725, -0.009051963686943054, 0.03368104249238968, 0.03431663662195206, -0.02072962187230587, 0.05495764687657356, 0.0005543550360016525, 0.042927853763103485, -0.010746175423264503, -0.07762335985898972, -0.03924352675676346, 0.029831387102603912, 0.02158740907907486, 0.031043071299791336, -0.006124673876911402, 0.023845387622714043, -0.06089251488447189, -0.006661801598966122, 0.03932236135005951, 0.05707883462309837, 0.002899655606597662, -0.013238795101642609, 0.016539238393306732, 0.037451520562171936, 0.04020589590072632, 0.020599931478500366, -0.006112910807132721, -0.013487784191966057, 0.10747440904378891, 0.004652431234717369, -0.019253011792898178, 0.02927049994468689, 0.04070933908224106, 0.03966432809829712, -0.04809977114200592, -0.01883748732507229, -0.05551612749695778, 0.01948656514286995, 0.034614283591508865, -0.004543324001133442, 0.016715114936232567, -0.027220850810408592, 0.02137371152639389, 0.023207910358905792, -0.023380104452371597, 0.017674919217824936, 0.047416966408491135, -0.038285430520772934, 0.003180838655680418, 0.011776983737945557, -0.02531295083463192, 0.021567096933722496, 0.0148352961987257, 0.009205756708979607, 0.009854651987552643, 0.012750024907290936, 0.011006670072674751, 0.005389153026044369, 0.02977963536977768, 0.032282762229442596, 0.008478892035782337, 0.012795832939445972, 0.026326343417167664, 0.02232964150607586, 0.019350850954651833, 0.0528864711523056, -0.0428713783621788, -0.004676504991948605, -0.02097948268055916, -0.01668321155011654, -0.01430104672908783, 0.021961504593491554, -0.03124047815799713, 0.02304389886558056, 0.015171625651419163, -0.03574676811695099, 0.004080635961145163, 0.0011985856108367443, 0.03808668255805969, 0.0369986966252327, 0.012295642867684364, 0.020830223336815834, -0.019727811217308044, -0.003023636993020773, -0.020901169627904892, 0.05237314850091934, -0.0014394732424989343, 0.05012179911136627, 0.004416454583406448, -0.016068220138549805, -0.014358136802911758, 0.013974174857139587, -0.006890533026307821, 0.010419216006994247, 0.015332164242863655, 0.025919493287801743, 0.015248688869178295, -0.06393545120954514, 0.023403765633702278, -0.0052732015028595924, 0.018241964280605316, 0.026934605091810226, 0.054757215082645416, 0.04366685450077057, 0.05610162764787674, -0.004792455583810806, -0.05574965849518776, -0.005759058054536581, -0.06448011100292206, -0.041377585381269455, -0.016202853992581367, -0.006963736843317747, 0.009069887921214104, 0.0016429785173386335, -0.03406747058033943, 0.03404976427555084, 0.0048557668924331665, -0.018193233758211136, 0.006069754250347614, -0.006224334239959717, -0.0558333620429039, -0.042388733476400375, 0.04709475859999657, -0.025700056925415993, 0.04031834006309509, 0.014043171890079975, -0.016143782064318657, 0.019523661583662033, -0.007210792973637581, 0.01202990859746933, -0.03471905365586281, 0.03742117062211037, -0.047181833535432816, -0.03236529603600502, -0.006370926275849342, 0.007240483071655035, -0.02708466351032257, -0.008298651315271854, -0.03917564079165459, -0.034087374806404114, -0.05056542158126831, 0.010276539251208305, -0.0002550246426835656, -0.03737146034836769, 0.025161385536193848, 0.07404875755310059, -0.026192927733063698, -0.013754729181528091, -0.028693443164229393, 0.04493848979473114, -0.01958949863910675, -0.025999758392572403, 0.004623889923095703, 0.03650698438286781, -0.0045341611839830875, -0.03014575131237507, 0.009346770122647285, -0.0030774506740272045, -0.015551745891571045, -0.010330730117857456, 0.03724147751927376, 0.007330368272960186, -0.015413994900882244, 0.010428634472191334, 0.0220449548214674, 0.00825275294482708, 0.0018543029436841607, 0.04569033160805702, -0.00021106703206896782, -0.024652864784002304, -0.024934962391853333, -0.07410482317209244, 0.02505079284310341, -0.026766100898385048, -0.018533222377300262, -0.013742942363023758, -0.007907628081738949, 0.006892306264489889, 0.0488053597509861, 0.007270734291523695, -0.03476990759372711, 0.0069446139968931675, -0.010819340124726295, -0.042460840195417404, 0.00020150328055024147, 0.08752557635307312, -0.002745141740888357, -0.0030629094690084457, 0.005855971481651068, -0.006409540306776762, -0.0067069209180772305, -0.00875399261713028, 0.016842683777213097, 0.03343107923865318, 0.06354676187038422, -0.023592673242092133, 0.014434155076742172, 0.022389579564332962, -0.007406050805002451, 0.028199825435876846, -0.007004459388554096, -0.003423143643885851 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
bfloat16 This is how you’d use the base model in bfloat16. Falcon 180B is a big model, so please take into account the hardware requirements summarized in the table above. python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model_id = "tiiuae/falcon-180B" tokenizer = AutoTokenizer.from_pretrained(model_id) model = AutoModelForCausalLM.from_pretrained( model_id, torch_dtype=torch.bfloat16, device_map="auto", ) prompt = "My name is Pedro, I live in" inputs = tokenizer(prompt, return_tensors="pt").to("cuda") output = model.generate( input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"], do_sample=True, temperature=0.6, top_p=0.9, max_new_tokens=50, ) output = output[0].to("cpu") print(tokenizer.decode(output) This could produce an output such as: My name is Pedro, I live in Portugal and I am 25 years old. I am a graphic designer, but I am also passionate about photography and video. I love to travel and I am always looking for new adventures. I love to meet new people and explore new places.
[ 0.02511873096227646, -0.002557787112891674, 0.0019081919454038143, -0.02103881537914276, 0.05014193430542946, 0.061880096793174744, 0.016640879213809967, 0.0480460487306118, -0.003974607214331627, -0.04300322383642197, -0.09195602685213089, 0.026826750487089157, 0.03435510769486427, -0.008862294256687164, 0.020686442032456398, -0.007226904388517141, 0.00875943899154663, -0.02916884981095791, -0.0043085841462016106, 0.08411765843629837, 0.0682561993598938, -0.06259825825691223, 0.019451143220067024, 0.0383930504322052, -0.028617393225431442, -0.09104825556278229, 0.007021937519311905, 0.012165296822786331, 0.0024306827690452337, 0.043430931866168976, -0.06782073527574539, -0.00044677272671833634, 0.03310896083712578, -0.01404136884957552, 0.016325440257787704, 0.02654443494975567, -0.10253987461328506, 0.0551375076174736, 0.014958860352635384, -0.06651878356933594, -0.027832604944705963, 0.048845160752534866, -0.06228729337453842, 0.03922062739729881, 0.024844739586114883, 0.011027971282601357, -0.16529685258865356, 0.06285121291875839, 0.02961091883480549, -0.03320726752281189, -0.05020395293831825, 0.03740661218762398, -0.06432019919157028, -0.01208081841468811, 0.12076831609010696, 0.057741474360227585, -0.04124213382601738, -0.07599827647209167, 0.04206853359937668, 0.022902291268110275, 0.05104214325547218, 0.07182185351848602, 0.05322502180933952, 0.08192401379346848, 0.003553855698555708, -0.032330047339200974, -0.013572253286838531, -0.020574495196342468, -0.07632505148649216, -0.0043717618100345135, -0.030162256211042404, -0.030882766470313072, -0.020428620278835297, -0.058572061359882355, -0.04604886472225189, -0.04835906997323036, -0.005794788710772991, 0.01509432028979063, 0.0781489685177803, 0.089417964220047, 0.03491837903857231, 0.04501229524612427, 0.04300278052687645, 0.008608519099652767, 0.024072548374533653, -0.01273402851074934, -0.03595542162656784, -0.033555496484041214, 0.02273610793054104, 0.03737074136734009, -0.08843943476676941, -0.11104561388492584, 0.02180483005940914, -0.002830774988979101, 0.03517869859933853, -0.02946694940328598, -0.05079542100429535, 0.02172459475696087, 0.04288126900792122, 0.008675776422023773, -0.013105803169310093, -0.06353718787431717, 0.02150828205049038, -0.04245965927839279, -0.016415709629654884, 0.014548249542713165, -0.029399551451206207, -0.030909953638911247, -0.012451489455997944, -0.06457463651895523, -0.01705269142985344, -0.05921977013349533, -0.05189523473381996, 0.06800979375839233, -0.01769535429775715, -0.05062879994511604, -0.03419293463230133, 0.04783058539032936, -0.017896026372909546, -0.03253219649195671, -0.011119733564555645, 0.09665483236312866, 0.007746723480522633, -0.018966367468237877, 0.015082193538546562, 0.10683004558086395, 0.03443826735019684, 0.04279020428657532, -0.051220763474702835, -0.0028647121507674456, 0.06601936370134354, -0.06280705332756042, 0.025264380499720573, 0.05160127207636833, 0.0600690059363842, -0.06830937415361404, -0.030693471431732178, -0.049705490469932556, -0.0077342502772808075, -0.016141628846526146, -0.024020735174417496, 0.01154593750834465, -0.01508923526853323, 0.01101007405668497, 0.03986920416355133, -0.018191445618867874, -0.028713777661323547, 0.11052289605140686, 0.004144659731537104, 0.019641337916254997, -0.06963017582893372, 0.02554253861308098, -0.03351016342639923, -0.04009806364774704, 0.03310755640268326, 0.03965536877512932, -0.054223429411649704, -0.03721443563699722, -0.07509574294090271, -0.04732143506407738, 0.04615582525730133, 0.007368088234215975, -0.0696321502327919, 0.028136910870671272, 0.013420837000012398, 0.020895374938845634, 0.05455261841416359, 0.017962176352739334, 0.030145497992634773, -0.03072545677423477, 0.03364869952201843, 0.006471979897469282, 0.0773511528968811, -0.019856708124279976, 0.006343943066895008, 0.0909985825419426, 0.07440435141324997, -0.00017168848717119545, 0.002946673659607768, 0.004190576262772083, -0.013431099243462086, 0.04330876097083092, 0.0006515216082334518, 0.030404215678572655, 0.03434942290186882, -0.12730050086975098, 0.010876612737774849, -0.025774722918868065, -0.01904924213886261, 0.08741222321987152, -0.028353404253721237, -0.0007970103761181235, 0.05147499218583107, 0.006579534150660038, 0.030984509736299515, -0.05035513639450073, -0.013881076127290726, 0.027108415961265564, 0.04349822551012039, 0.03819848597049713, 0.04216001182794571, -0.0110490582883358, 0.007180819753557444, -0.01771385967731476, -0.03907165676355362, 0.007462494540959597, -0.01641652174293995, -0.04759370535612106, 0.07669998705387115, 0.07749001681804657, 0.03581264615058899, -0.12460865080356598, 0.025786586105823517, -0.10618116706609726, -0.02538631483912468, -0.06422162801027298, -0.05060005187988281, 0.016448309645056725, 0.06051947921514511, -0.016728946939110756, 0.13011237978935242, -0.05910200625658035, -0.001985298004001379, -0.08064638823270798, -0.030322320759296417, 0.04298969358205795, 0.03600999712944031, -0.027317585423588753, -0.006776230409741402, -0.07292997092008591, -0.030025629326701164, -0.0477612167596817, -0.0322222076356411, 0.029277894645929337, -0.08348898589611053, -0.0044457209296524525, -0.018188703805208206, 0.02474583312869072, -0.02079874463379383, -0.002079814439639449, -0.03539220616221428, 0.03379980847239494, -0.050969913601875305, -0.005457812454551458, -0.016343344002962112, 0.03871776908636093, 0.04958290979266167, -0.03630739822983742, -0.01708853803575039, -0.0012386535527184606, -0.037264544516801834, 0.08078307658433914, -0.0010424216743558645, 0.014687365852296352, 0.04719321057200432, 0.05195249617099762, 0.02337680198252201, -0.004592711105942726, -0.017268000170588493, 0.017407609149813652, 0.021360574290156364, 0.007240775972604752, -0.05409308895468712, -0.04723954200744629, -0.030728913843631744, -0.04042862728238106, 0.01868761144578457, 0.010503571480512619, -0.0014644134789705276, -0.019146449863910675, -0.0030442033894360065, -0.032627787441015244, 0.027805227786302567, 0.01831192895770073, -0.013971538282930851, 0.048891831189394, 0.056363530457019806, -0.00500325346365571, -0.04035833477973938, -0.03063957765698433, 0.030850786715745926, -0.0388975627720356, 0.050920162349939346, 0.010952797718346119, 0.0035372511483728886, -0.010596317239105701, 0.011673920787870884, -0.01634315587580204, -0.07023920863866806, 0.01779988780617714, -0.012390919029712677, 0.03602207452058792, 0.006087092682719231, 0.009548326954245567, -0.025928733870387077, 0.031146422028541565, 0.013261607848107815, 0.015308930538594723, -0.013830269686877728, -0.010748018510639668, -0.021741798147559166, 0.002358504803851247, 0.006849960889667273, 0.02444474771618843, -0.008127923123538494, -0.0017109430627897382, -0.008031774312257767, -0.0075055514462292194, -0.0943082720041275, -0.02896023541688919, -0.04039181396365166, 0.00807826779782772, 0.008842730894684792, -0.008308764547109604, -0.020074330270290375, -0.0058277263306081295, 0.02628743089735508, 0.015965284779667854, 0.018663154914975166, 0.024403758347034454, 0.0035755375865846872, -0.003424731781706214, -0.000517407082952559, 0.015511773526668549, 0.024766532704234123, 0.012284296564757824, 0.012848922982811928, -0.0008813256281428039, -0.018551694229245186, 0.005645758472383022, -0.022828390821814537, 0.00021900753199588507, -0.03896660357713699, -0.03747232258319855, 0.04266916215419769, -0.02479323372244835, -0.003867307910695672, 0.03828982636332512, -0.023848310112953186, -0.0030746543779969215, 0.021824588999152184, 0.0010274115484207869, -0.039937082678079605, -0.00885495264083147, -0.015995390713214874, -0.02466120757162571, 0.02298511564731598, 0.02505440078675747, 0.00837804190814495, 0.0006843231385573745, 0.025913363322615623, -0.022064318880438805, 0.05423109233379364, -0.028775786980986595, -0.0013727525947615504, 0.00926201418042183, -0.009348244406282902, -0.04800362512469292, -0.03051569312810898, -0.012467416934669018, 0.02743523009121418, 0.021476000547409058, 0.03640679642558098, -0.04580264911055565, -0.0023040573578327894, 0.06592649966478348, 0.03663605451583862, -0.01756814680993557, -0.04620491713285446, 0.00026454951148480177, -0.02945372648537159, -0.011269512586295605, -0.02593625895678997, 0.030097002163529396, 0.04048188403248787, -0.05217791721224785, -0.029968321323394775, 0.02230236679315567, -0.028031643480062485, 0.03842919319868088, 0.021503938362002373, -0.0012354147620499134, 0.010776238515973091, 0.03290504962205887, -0.023086031898856163, -0.0468418151140213, 0.034899648278951645, 0.041030582040548325, -0.00692746601998806, -0.09078162908554077, -0.03004954569041729, -0.033814914524555206, -0.00710707064718008, 0.00533554470166564, 0.011580221354961395, -0.003566694213077426, -0.0032030646689236164, 0.023290375247597694, 0.046674735844135284, 0.006248716730624437, 0.06464169919490814, -0.01640927419066429, -0.017211131751537323, -0.009838742204010487, -0.009365763515233994, 0.009013086557388306, 0.04506231099367142, 0.0032416237518191338, 0.05933545157313347, -0.058818571269512177, -0.027672646567225456, -0.00576695566996932, -0.002762053394690156, 0.012790273874998093, -0.08612003177404404, -0.032624296844005585, 0.01829293742775917, -0.007995988242328167, 0.018792927265167236, -0.0197987649589777, 0.009027814492583275, -0.02763967216014862, 0.025086963549256325, 0.05557292699813843, -0.01745935156941414, -0.03833913430571556, 0.003039166796952486, 0.010396993719041348, -0.03483092784881592, 0.014778124168515205, -0.008007527329027653, -0.03137533366680145, -0.007097412366420031, -0.004004719667136669, 0.05689457803964615, 0.018734484910964966, 0.021440623328089714, -0.01913796365261078, -0.04477975517511368, 0.028063267469406128, -0.016842056065797806, 0.015508233569562435, -0.0053108190186321735, 0.01216986682265997, -0.04302775487303734, -0.00759088434278965, 0.03610078990459442, 0.0025976512115448713, -0.012793119065463543, 0.03368297964334488, -0.001363573595881462, -0.035167209804058075, 0.01047525741159916, 0.019520936533808708, -0.014307747595012188, 0.008676262572407722, -0.01203061267733574, -0.004548553843051195, 0.030399322509765625, 0.029050348326563835, -0.04522160440683365, 0.013322519138455391, 0.04183259978890419, 0.0046635824255645275, 0.00869712419807911, 0.014819812960922718, 0.01925736851990223, 0.009307180531322956, 0.009060363285243511, -0.0020019442308694124, 0.019039325416088104, 0.0590084008872509, 0.0416705347597599, -0.009966563433408737, -0.011190739460289478, -0.06303483992815018, -0.004130672663450241, 0.03896999731659889, -0.010642356239259243, -0.004526300821453333, -0.052503641694784164, -0.04347160458564758, 0.017329953610897064, 0.043502673506736755, 0.02043035812675953, 0.027748409658670425, -0.019956471398472786, 0.03036464750766754, -0.022013066336512566, -0.037583574652671814, 0.04933224618434906, -0.022511374205350876, 0.028760291635990143, 0.034826382994651794, 0.00115272868424654, 0.04120439291000366, 0.05112045630812645, 0.002443329431116581, -0.038553234189748764, -0.023969406262040138, -0.011027899570763111, 0.003212730400264263, -0.015080228447914124, -0.016185346990823746, -0.022223761305212975, 0.03604725003242493, -0.01684901863336563, 0.0005160310538485646, 0.004491895902901888, 0.05576701834797859, 0.006430258508771658, -0.02550576627254486, 0.04271172732114792, 0.03683162108063698, -0.018645383417606354, -0.02158982865512371, 0.03310800716280937, -0.01318212877959013, 0.00824518408626318, -0.010825623758137226, -0.006934992503374815, 0.050345342606306076, 0.015813341364264488, -0.003556589363142848, -0.048434171825647354, 0.02282227762043476, 0.042305268347263336, 0.05698233097791672, -0.02010962925851345, -0.03621434047818184, 0.005339952651411295, 0.012612714432179928, 0.03270427882671356, 0.008403495885431767, 0.02343493513762951, 0.0496223084628582, -0.026390139013528824, 0.025144031271338463, -0.01389539334923029, -0.011283546686172485, 0.018951859325170517, 0.04764268174767494, 0.004175660666078329, -0.011815804056823254, -0.04005272686481476, -0.015421591699123383, 0.005049781873822212, -0.02987021952867508, 0.009706624783575535, -0.006448040250688791, -0.039903756231069565, 0.04662163928151131, -0.04327592998743057, 0.031489379703998566, 0.033245038241147995, -0.021771034225821495, -0.004216955974698067, 0.006666754838079214, 0.018900904804468155, -0.02091061882674694, -0.033258501440286636, 0.020423011854290962, -0.0011149203637614846, 0.00025666755391284823, 0.0007387563236989081, 0.012962445616722107, -0.008450424298644066, 0.015587754547595978, 0.052434906363487244, 0.006873656529933214, -0.02803421951830387, 0.029303576797246933, 0.0448555089533329, 0.02531106397509575, -0.0039258380420506, -0.03455864638090134, -0.008467164821922779, 0.02042962610721588, 0.05575722083449364, 0.02092653140425682, 0.010414478369057178, 0.0018430788768455386, -0.04601321369409561, -0.03198304399847984, 0.07124347239732742, 0.045905135571956635, -0.013788626529276371, 0.015860937535762787, 0.0003691749006975442, 0.03338942676782608, 0.035018935799598694, 0.015986960381269455, 0.008084001019597054, 0.017110373824834824, 0.08200056105852127, 0.0016671782359480858, 0.0038573143538087606, 0.047599416226148605, 0.02708951197564602, -0.018966129049658775, -0.06568267941474915, -0.0015446575125679374, -0.023117786273360252, 0.010933686047792435, -0.007353472989052534, 0.00294190039858222, 0.01936451718211174, 0.006227478384971619, 0.02960527502000332, 0.03394712507724762, -0.03922054171562195, -0.00609235605224967, 0.03915586695075035, -0.017355823889374733, 0.019977230578660965, 0.04788937047123909, 0.04256639629602432, 0.0373445563018322, 0.020536430180072784, 0.0372171625494957, -0.001268106047064066, 0.0037742373533546925, 0.014964773319661617, 0.01659666746854782, -0.005639044567942619, -0.031888965517282486, -0.02032729610800743, 0.012847117148339748, -0.013126690872013569, -0.029223132878541946, -0.03535543754696846, 0.03333371505141258, -0.036907859146595, 0.0028434479609131813, -0.02739720791578293, -0.01325291395187378, -0.0272096898406744, 0.013336548581719398, -0.027136756107211113, 0.02298085018992424, 0.016564058139920235, 0.00273660640232265, 0.005916821304708719, 0.049299851059913635, 0.017696384340524673, 0.028150001540780067, -0.007796873804181814, 0.018554991111159325, -0.016163984313607216, 0.03207053616642952, -0.00845272932201624, 0.02349407970905304, 0.01706874556839466, 0.03608189895749092, -0.020372340455651283, -0.0019926975946873426, -0.0032893626485019922, -0.019013719633221626, -0.026295538991689682, 0.014077801257371902, 0.0015366778243333101, -0.0033142727334052324, 0.029096215963363647, -0.0188530795276165, 0.022601820528507233, -0.018160147592425346, 0.002061055041849613, -0.003489813767373562, 0.046763259917497635, 0.05817650631070137, 0.04617920145392418, -0.031640298664569855, -0.05283340811729431, -0.047752659767866135, -0.04362810403108597, -0.0197377298027277, 0.010318290442228317, 0.03341082111001015, 0.023946592584252357, -0.00032088515581563115, -0.007536109071224928, -0.006579876411706209, -0.004412992391735315, 0.008852075785398483, 0.020412789657711983, 0.007273330353200436, -0.04446442797780037, -0.02483389340341091, 0.055870916694402695, -0.0068891579285264015, 0.02953294850885868, 0.06382870674133301, 0.04641091451048851, 0.011925763450562954, 0.014645264483988285, -0.014992195181548595, -0.05732089653611183, 0.036486025899648666, -0.035469722002744675, -0.0283859521150589, -0.000192688632523641, -0.006815990433096886, -0.03825826197862625, -0.016230536624789238, -0.04601529985666275, -0.005632949993014336, -0.061949826776981354, -0.017598280683159828, 0.013181600719690323, -0.024075448513031006, 0.04423588141798973, 0.03822167217731476, 0.02008332870900631, -0.03553134948015213, -0.03760766237974167, 0.0058358036912977695, -0.0021517067216336727, 0.0034419416915625334, 0.0086040198802948, 0.026427343487739563, -0.013237293809652328, -0.04470781236886978, 0.032896511256694794, 0.023441284894943237, -0.06226256862282753, 0.011748863384127617, 0.014610755257308483, -0.010647817514836788, -0.011965145356953144, 0.010846370831131935, 0.027829226106405258, 0.015739506110548973, 0.005783988628536463, -0.033386457711458206, -0.055598191916942596, -0.001575012574903667, 0.008886748924851418, -0.07862561196088791, -0.012462673708796501, -0.04159478098154068, -0.02543465793132782, -0.008847642689943314, 0.007201012223958969, 0.020264629274606705, 0.05764661356806755, 0.00991878192871809, -0.049773626029491425, 0.006684575695544481, 0.0015898357378318906, -0.031186990439891815, -0.007085161283612251, 0.04710294306278229, 0.007201087195426226, -0.024430811405181885, 0.047044362872838974, 0.005405464209616184, -0.008203533478081226, 0.0006476762355305254, -0.0217884611338377, 0.011332910507917404, 0.06500822305679321, -0.020377395674586296, 0.0026820730417966843, 0.028895724564790726, -0.01023485790938139, -0.013902162201702595, -0.004705859813839197, 0.007797120604664087 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Chat Model As mentioned above, the version of the model fine-tuned to follow conversations used a very straightforward training template. We have to follow the same pattern in order to run chat-style inference. For reference, you can take a look at the format_prompt function in the Chat demo, which looks like this: python def format_prompt(message, history, system_prompt): prompt = "" if system_prompt: prompt += f"System: {system_prompt}\n" for user_prompt, bot_response in history: prompt += f"User: {user_prompt}\n" prompt += f"Falcon: {bot_response}\n" prompt += f"User: {message}\nFalcon:" return prompt As you can see, interactions from the user and responses by the model are preceded by User: and Falcon: separators. We concatenate them together to form a prompt containing the conversation's whole history. We can provide a system prompt to tweak the generation style.
[ 0.004079882986843586, -0.019145121797919273, -0.01625639572739601, 0.02097816951572895, 0.06400997936725616, 0.026526208966970444, 0.03557862713932991, 0.057815391570329666, -0.010743369348347187, -0.050361987203359604, -0.10575727373361588, 0.04137025773525238, -0.019880563020706177, 0.04879896715283394, -0.05286801606416702, -0.04609483480453491, 0.03559080883860588, -0.04193202033638954, 0.012961525470018387, 0.02748848870396614, -0.030461834743618965, -0.00435790466144681, -0.018214328214526176, -0.03449384123086929, 0.030839568004012108, -0.03008427284657955, -0.0014366694958880544, 0.0013191411271691322, -0.04689875990152359, 0.005590732675045729, -0.057238783687353134, -0.015364007093012333, 0.0082071702927351, -0.07841076701879501, -0.055183399468660355, -0.004255097359418869, -0.1026255413889885, 0.06998199969530106, 0.010843413881957531, -0.0007921107462607324, 0.03312624990940094, -0.0575118213891983, -0.01879240944981575, 0.03843770921230316, 0.015759436413645744, -0.051411084830760956, -0.2372826486825943, 0.02347542718052864, -0.0013102353550493717, -0.024943377822637558, -0.11861807107925415, 0.11090249568223953, -0.06190156936645508, -0.011837142519652843, 0.0007176377112045884, -0.008887994103133678, -0.06647246330976486, -0.061296746134757996, -0.01024025958031416, 0.03580870479345322, -0.030733907595276833, 0.0688423216342926, 0.03501252457499504, 0.0035715929698199034, 0.011784699745476246, -0.0004629486647900194, 0.0576857253909111, 0.02701614610850811, -0.06029985472559929, 0.016819404438138008, 0.014288113452494144, -0.005904113408178091, -0.004954397212713957, 0.018253417685627937, 0.004515983629971743, -0.06460074335336685, -0.03854970261454582, 0.06349313259124756, -0.011954519897699356, 0.003240282414481044, -0.06332941353321075, 0.001096575171686709, 0.03296317905187607, -0.024212973192334175, -0.01967109553515911, 0.053286463022232056, 0.06092739850282669, 0.002867036033421755, -0.007920953445136547, -0.008655143901705742, -0.06522496044635773, -0.14190737903118134, 0.0026672256644815207, 0.010852571576833725, -0.019593220204114914, 0.016128936782479286, -0.014444977045059204, 0.08055711537599564, -0.001376906642690301, -0.03853900730609894, 0.002873594406992197, -0.10404518991708755, 0.01955379918217659, -0.06355804204940796, -0.02948733977973461, 0.05725444108247757, -0.06273169815540314, -0.06832768768072128, -0.052957482635974884, -0.015274317935109138, -0.012617615051567554, 0.013106895610690117, 0.022959556430578232, 0.11702519655227661, -0.04451758787035942, 0.010123588144779205, -0.02784048393368721, -0.0021168249659240246, -0.011314764618873596, -0.03351908549666405, -0.011131014674901962, 0.030601700767874718, 0.09379775077104568, 0.01131931971758604, -0.01378879975527525, 0.07648544013500214, 0.047091443091630936, 0.009104291908442974, -0.010989469476044178, -0.041100338101387024, -0.007361027877777815, 0.042019255459308624, 0.03522190451622009, 0.03509632870554924, 0.008605357259511948, -0.03448399528861046, 0.030494416132569313, -0.08252166211605072, 0.07330982387065887, 0.046473778784275055, 0.026126787066459656, 0.0012110131792724133, 0.056052979081869125, 0.05406232923269272, 0.049977436661720276, 0.0005975260282866657, -0.061213135719299316, 0.002152698580175638, -0.020227815955877304, -0.015434798784554005, -0.0841754749417305, -0.007117447443306446, 0.03183569386601448, -0.09170649945735931, -0.010203547775745392, 0.052583158016204834, -0.006496205925941467, -0.03734031319618225, -0.05053512379527092, -0.07655429095029831, 0.06593944132328033, 0.04647418484091759, -0.05569131299853325, 0.031705938279628754, 0.058133166283369064, -0.017131876200437546, -0.0322309248149395, 0.0039992197416722775, 0.030912477523088455, -0.01216849498450756, 0.02299356274306774, -0.011337763629853725, 0.061281751841306686, 0.004692561458796263, -0.009079958312213421, 0.046187933534383774, 0.03002002276480198, 0.036329902708530426, 0.04599962756037712, -0.029491795226931572, -0.04561822861433029, 0.002274023601785302, -0.04688463732600212, -0.02945592626929283, 0.05999554321169853, -0.059141308069229126, 0.012351453304290771, -0.07689254730939865, -0.022626478224992752, 0.054783694446086884, 0.009775734506547451, -0.020923487842082977, 0.06779790669679642, 0.040199872106313705, 0.050502367317676544, -0.06126587465405464, -0.029362156987190247, 0.04738934710621834, 0.03500752151012421, 0.10704992711544037, 0.08365244418382645, -0.00466989865526557, -0.007122828625142574, -0.021013159304857254, 0.0351540669798851, 0.07792071253061295, 0.02269424870610237, -0.06893623620271683, 0.0025349967181682587, 0.005688379518687725, -0.0197164174169302, -0.0563485287129879, 0.025881273671984673, -0.07738912105560303, -0.008432386443018913, -0.050729598850011826, -0.02286609448492527, -0.028559748083353043, -0.033923469483852386, 0.01690058782696724, 0.1374189853668213, -0.05020563304424286, 0.022435003891587257, -0.01591595634818077, -0.020422635599970818, 0.009557738900184631, 0.06681527197360992, 0.04191961511969566, 0.09849539399147034, -0.08530813455581665, 0.00563727505505085, -0.045285630971193314, 0.04067137464880943, 0.040011774748563766, -0.05942462384700775, -0.020128263160586357, 0.05281822010874748, 0.016407378017902374, 0.03726103901863098, -0.04955049231648445, 0.06888660788536072, 0.024760140106081963, 0.01024502795189619, 0.037621039897203445, -0.044660523533821106, 0.001797409146092832, 0.029084647074341774, 0.011572192423045635, -0.0515003427863121, 0.043988365679979324, -0.018693003803491592, 0.02959119901061058, 0.028708303347229958, -0.014033243060112, 0.0313616544008255, 0.06625647842884064, 0.009714171290397644, -0.015250920318067074, -0.020593950524926186, 0.0012774307979270816, 0.020602243021130562, 0.002186655532568693, -0.007205700036138296, -0.032862938940525055, -0.019096137955784798, -0.07355708628892899, 0.021755995228886604, -0.005201700143516064, 0.02225973643362522, 0.024061426520347595, 0.009807998314499855, -0.0444183349609375, -0.013054835610091686, 0.017557844519615173, 0.0014552122447639704, 0.03847455605864525, 0.01830909214913845, -0.003461758838966489, 0.014086678624153137, -0.017482643947005272, -0.01662268117070198, -0.010383110493421555, 0.02439253032207489, 0.032690394669771194, 0.027578264474868774, -0.0030107563361525536, 0.02096293307840824, -0.010928119532763958, -0.006794766057282686, 0.00018418209219817072, 0.011694719083607197, 0.0258594062179327, 0.003987405449151993, 0.004386827349662781, 0.009472401812672615, 0.055157825350761414, 0.02508215792477131, 0.0067382268607616425, -0.006752363406121731, 0.016860555857419968, 0.02820025011897087, -0.004246400203555822, -0.004824459087103605, -0.011771177873015404, 0.002126807114109397, 0.018144629895687103, 0.02135327085852623, 0.02213389240205288, -0.10383882373571396, -0.008855374529957771, 0.034814540296792984, -0.005945935845375061, -0.011460441164672375, -0.00877076480537653, 0.049259793013334274, -0.03920859843492508, -0.00628142524510622, 0.029461504891514778, -0.055741097778081894, 0.03013847954571247, -0.0018485845066606998, -0.008574114181101322, -0.03618457168340683, 0.003910592291504145, -0.021974148228764534, -0.0014935581712052226, 0.038837578147649765, 0.015761174261569977, -0.034344594925642014, 0.05874486640095711, 0.005271578207612038, 0.013881930150091648, -0.00406335573643446, 0.014891227707266808, 0.06521008908748627, -0.014245442114770412, 0.01241308730095625, -0.05679136514663696, 0.016999073326587677, -0.039843231439590454, -0.04678807407617569, 0.0039948634803295135, -0.07561295479536057, 0.009252279996871948, -0.015092790126800537, 0.01776549406349659, 0.047765444964170456, 0.012195464223623276, -0.018712632358074188, 0.030410612002015114, 0.023665331304073334, -0.015166672877967358, -0.006872063502669334, 0.014280641451478004, -0.026644118130207062, -0.01652013510465622, 0.005245174281299114, -0.01792430877685547, -0.036669619381427765, -0.0029216750990599394, -0.004733263049274683, 0.03638629615306854, 0.017554881051182747, 0.02289424277842045, 0.040130022913217545, 0.04744675010442734, 0.035668667405843735, -0.0016200655372813344, -0.05598258972167969, 0.01516002882272005, 0.0035951489116996527, -0.0034725614823400974, -0.01703648269176483, 0.060913436114788055, 0.0064095486886799335, 0.022006485611200333, 0.010682965628802776, -0.004579158499836922, 0.005071321967989206, 0.018642550334334373, -0.004425561986863613, 0.020657049492001534, -0.005733456462621689, -0.0005487726884894073, -0.026056064292788506, -0.022944189608097076, 0.08448674529790878, 0.0037194129545241594, -0.020664626732468605, -0.004755143541842699, -0.04682980477809906, -0.036543019115924835, 0.019136864691972733, 0.012315332889556885, 0.06319373846054077, -0.05907440930604935, 0.020973753184080124, 0.021324776113033295, 0.022852905094623566, -0.03651782125234604, 0.05360718071460724, 0.033678844571113586, -0.025558188557624817, 0.006108762696385384, 0.0320613831281662, 0.0054436675272881985, 0.023089848458766937, 0.022130144760012627, 0.028409769758582115, -0.04855775833129883, -0.002185272751376033, -0.0022973574232310057, 0.013063819147646427, 0.024928633123636246, -0.030570778995752335, -0.041456326842308044, 0.017845196649432182, -0.015135829336941242, -0.02761351689696312, 0.002102692611515522, 0.023744862526655197, 0.009098525159060955, 0.012922258116304874, 0.05122354254126549, -0.014103843830525875, -0.028540249913930893, -0.039714351296424866, 0.021862080320715904, -0.04051180183887482, 0.02467932179570198, 0.008764081634581089, 0.013880936428904533, 0.0058845775201916695, -0.04044399783015251, 0.01826784946024418, -0.016737643629312515, 0.005083637777715921, -0.025984348729252815, -0.006981040816754103, -0.021348726004362106, 0.01171659305691719, 0.06678999960422516, 0.05475844815373421, 0.025467809289693832, -0.0022871613036841154, 0.0012266404228284955, -0.008869693614542484, -0.06365935504436493, -0.025843506678938866, -0.038877300918102264, 0.023794231936335564, 0.0018332310719415545, -0.03331679478287697, 0.012163233943283558, -0.044594042003154755, -0.0268848966807127, 0.04447491839528084, 0.019808512181043625, 0.03175954520702362, -0.0065399156883358955, -0.04582147300243378, -0.022382674738764763, -0.003022911958396435, -0.0004702362639363855, -0.015809770673513412, 0.032717976719141006, 0.0014252255205065012, 0.06621617823839188, 0.03881832957267761, 0.0019874335266649723, 0.008465479128062725, 0.007913660258054733, 0.004074217285960913, -0.0001025890014716424, -0.01709316484630108, -0.05636341869831085, 0.02699800580739975, -0.01002834364771843, -0.03665560856461525, -0.01497561763972044, 0.0012642031069844961, -0.02368416078388691, 0.03668612614274025, 0.0010981407249346375, 0.05895950272679329, 0.04143703356385231, -0.004713890608400106, -0.007177527528256178, -0.023682914674282074, -0.005692976526916027, 0.02202603407204151, -0.007502389140427113, 0.0010846261866390705, -0.011253777891397476, 0.028679396957159042, 0.012327583506703377, 0.02142915315926075, 0.053933899849653244, 0.019690098240971565, 0.01732647977769375, 0.00824054330587387, -0.011984183453023434, 0.005069171544164419, 0.01649479568004608, -0.03505140542984009, 0.048157285898923874, -0.03260515630245209, 0.028020402416586876, 0.010400141589343548, 0.01693829894065857, 0.007384528871625662, -0.015606592409312725, 0.0331457182765007, -0.00034817931009456515, -0.014298698864877224, -0.03165683522820473, 0.040687110275030136, -0.04088600352406502, 0.01392446830868721, -0.05190360173583031, -0.004403847269713879, 0.023982027545571327, 0.03327697888016701, -0.02123422548174858, 0.0114024942740798, -0.0009755276259966195, -0.01738346926867962, 0.07428991049528122, -0.02977226860821247, -0.007985868491232395, -0.006823468022048473, 0.002574547426775098, 0.014047513715922832, -0.04216090962290764, -0.008038857951760292, 0.03699571639299393, 0.006613866426050663, 0.03120800293982029, 0.03907636180520058, -0.015074580907821655, 0.019163645803928375, 0.04636338725686073, 0.0004793723055627197, 0.018413981422781944, -0.079152911901474, 0.0129154147580266, 0.01185174286365509, -0.04259780794382095, 0.0012534511042758822, -0.008605252020061016, -0.021067513152956963, 0.008421839214861393, -0.005564073566347361, 0.00323738856241107, 0.058309074491262436, -0.020453015342354774, 0.01841544918715954, -0.0035495159681886435, 0.014357194304466248, -0.021187597885727882, 0.021745169535279274, -0.005589443724602461, 0.003691405989229679, -0.0031386022455990314, 0.04229400306940079, 0.0026368065737187862, -0.01758304424583912, -0.008198647759854794, 0.03162938728928566, -0.03577965125441551, -0.007955766282975674, -0.02549222856760025, -0.01873827539384365, 0.04722641780972481, 0.04641095548868179, -0.005547566805034876, -0.017327498644590378, -0.00577727472409606, 0.042114052921533585, 0.006407737731933594, -0.0019661709666252136, -0.008005122654139996, 0.006018614862114191, -0.020243903622031212, -0.004809221252799034, 0.10838163644075394, -0.01973193697631359, 0.06278273463249207, 0.009246929548680782, 0.01202821359038353, -0.02080722153186798, 0.054418276995420456, -0.008693677373230457, 0.009650742635130882, 0.08004599064588547, -0.01483902893960476, -0.019904766231775284, 0.0012384298024699092, -0.028531748801469803, 0.011539477854967117, -0.052618999034166336, 0.000873653101734817, 0.005160836968570948, 0.011599121615290642, 0.01497667096555233, 0.011775936000049114, 0.042973842471838, -0.033423811197280884, 0.03990091383457184, 0.05365827679634094, 0.020100565627217293, 0.005191828589886427, -0.013486496172845364, 0.07613503187894821, -0.011020397767424583, -0.0035421173088252544, 0.06276887655258179, -0.006841317284852266, -0.008519047871232033, 0.022878730669617653, 0.020518997684121132, 0.010239050723612309, -0.008340737782418728, -0.018623825162649155, 0.015748923644423485, 0.02647300623357296, -0.029273593798279762, 0.02434917725622654, -0.004894891753792763, -0.019389349967241287, -0.013823789544403553, -0.029600510373711586, 0.01823730394244194, -0.03282439336180687, -0.0207385141402483, -0.009232698939740658, 0.008847648277878761, -0.02469286508858204, -0.0018111229874193668, 0.04168148711323738, 0.01312424335628748, -0.04674944281578064, -0.018275275826454163, -0.049156125634908676, 0.00636118883267045, -0.023225044831633568, 0.012174929492175579, -0.0021203327924013138, -0.015911031514406204, 0.00605296203866601, -0.025457974523305893, -0.00523697305470705, -0.02795390784740448, 0.01792260631918907, 0.015682687982916832, 0.02219241112470627, -0.037758633494377136, 0.029451051726937294, -0.0008561842259950936, 0.013911950401961803, -0.04012903943657875, -0.014426983892917633, -0.030421635136008263, -0.04315956309437752, -0.03254694491624832, -0.0339338555932045, 0.008588085882365704, 0.015258025377988815, 0.037807684391736984, 0.0033454904332756996, 0.03513890504837036, -0.04452842101454735, -0.055262625217437744, -0.008825081400573254, -0.031391266733407974, -0.01107074599713087, 0.036159586161375046, 0.042206861078739166, -0.012188088148832321, 0.005629143677651882, -0.028582146391272545, -0.031988970935344696, -0.02241012640297413, 0.002502345247194171, 0.04127621278166771, 0.02085733972489834, -0.025303829461336136, -0.020558517426252365, 0.06310800462961197, 0.02852165326476097, 0.009351477026939392, 0.01736249402165413, -0.011480058543384075, 0.03934727609157562, -0.004654051270335913, 0.02435189113020897, -0.0528082475066185, 0.008402103558182716, -0.04413430765271187, -0.04972447082400322, -0.0327790230512619, 0.019064418971538544, -0.01191369816660881, 0.011670337058603764, -0.008907678537070751, -0.013409503735601902, -0.02217826433479786, 0.003555047558620572, -0.014483759179711342, 0.03601626306772232, 0.0554506778717041, -0.0211161058396101, 0.05199958384037018, -0.012410406023263931, -0.007733316160738468, -0.03038904257118702, 0.005872574169188738, 0.007136152591556311, 0.024184372276067734, 0.01776341162621975, 0.003582506673410535, -0.0077115935273468494, -0.002143734833225608, -0.0030874661169946194, -0.05603552982211113, 0.007499312050640583, 0.01792280189692974, -0.019179319962859154, -0.01582593470811844, 0.024496905505657196, 0.021417034789919853, -0.006633813958615065, 0.049010928720235825, -0.00905910786241293, -0.03345583751797676, -0.001658109831623733, 0.025793729349970818, -0.028222275897860527, -0.015313461422920227, -0.023377476260066032, -0.00997028686106205, 0.017479712143540382, -0.02405821532011032, 0.031491052359342575, 0.012250395491719246, -0.0053154826164245605, 0.03046826273202896, 0.017224419862031937, -0.019739875569939613, -0.08638081699609756, -0.005663969554007053, 0.009238265454769135, -0.03722947835922241, 0.0028514182195067406, 0.011799885891377926, 0.0022079122718423605, -0.0008621604065410793, -0.019907137379050255, 0.016840964555740356, 0.024382570758461952, -0.03327830135822296, 0.036694567650556564, 0.01573188789188862, 0.07789845764636993, 0.026223281398415565, -0.0026422052178531885, -0.010077666491270065, 0.021600259467959404 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
How to use Falcon 180B? Falcon 180B is available in the Hugging Face ecosystem, starting with Transformers version 4.33.
[ -0.011959374882280827, -0.025983363389968872, 0.08050864189863205, -0.0410955473780632, 0.059174034744501114, 0.007966871373355389, -0.02911386452615261, 0.07257608324289322, -0.03253502771258354, -0.05268961936235428, -0.08837775141000748, 0.09906907379627228, -0.05414284020662308, 0.03963541239500046, 0.03380700573325157, -0.04482496529817581, -0.014145737513899803, 0.0017068983288481832, -0.013120516203343868, 0.0007698259432800114, 0.002947235945612192, -0.09186975657939911, 0.015872934833168983, -0.06126610189676285, 0.0011567630572244525, -0.06777185201644897, 0.03211112320423126, 0.05472380295395851, 0.0023141326382756233, 0.0784631073474884, -0.02560211904346943, -0.03154340013861656, 0.060567643493413925, -0.05099443346261978, 0.013395016081631184, 0.1027623787522316, -0.1256747543811798, 0.0009350994951091707, -0.0013743980089202523, -0.02493123896420002, 0.02596425823867321, 0.002365936292335391, -0.009422151371836662, -0.03160689398646355, 0.0042969887144863605, -0.045266732573509216, -0.2031954973936081, 0.0808725580573082, 0.03755345940589905, -0.013731546700000763, -0.07430597394704819, 0.08261074870824814, -0.05017184466123581, -0.08827433735132217, 0.06313974410295486, -0.0018427754985168576, -0.10836366564035416, -0.048520613461732864, 0.04151137173175812, 0.016822081059217453, 0.07934252172708511, 0.028192788362503052, 0.007005680352449417, 0.1043681651353836, -0.016019251197576523, 0.026478039100766182, -0.004948770627379417, -0.05989188328385353, -0.05236780643463135, 0.02072121389210224, -0.008971763774752617, 0.035752955824136734, 0.002338989172130823, -0.04784214869141579, -0.019272562116384506, -0.10393579304218292, -0.04172394424676895, 0.06865798681974411, 0.07179217785596848, 0.10505557805299759, 0.07614659518003464, -0.022747140377759933, 0.022489743307232857, 0.040633443742990494, -0.016232727095484734, 0.020818304270505905, 0.026198552921414375, -0.040877312421798706, -0.04048549011349678, 0.0664067268371582, -0.05212549492716789, -0.1088462695479393, 0.011824642308056355, -0.049524638801813126, 0.08920080959796906, -0.07482217997312546, -0.03105839341878891, 0.04352525621652603, 0.06822825223207474, -0.0020311111584305763, -0.020464301109313965, -0.02062586136162281, 0.0160059817135334, -0.03576480969786644, 0.042032696306705475, -0.0032934967894107103, -0.02666124887764454, -0.05402035638689995, 0.009385769255459309, 0.009709768928587437, 0.03479507565498352, -0.04703585058450699, 0.034149885177612305, 0.04513460770249367, -0.09184260666370392, 0.06568534672260284, 0.02389795519411564, 0.005528231617063284, -0.006649548653513193, -0.010866458527743816, 0.05365724861621857, 0.1255379319190979, -0.03597520291805267, 0.03683192655444145, 0.062301043421030045, 0.06444109231233597, 0.02618698589503765, 0.009197661653161049, -0.00009073624823940918, -0.020256871357560158, 0.021020393818616867, -0.019006365910172462, 0.006456385832279921, 0.011885316111147404, 0.02696620114147663, -0.05035685747861862, 0.027502721175551414, -0.05470741167664528, 0.016856325790286064, 0.007357877679169178, -0.04562694951891899, 0.04306897893548012, 0.032389722764492035, 0.008315677754580975, 0.03242800757288933, -0.04749557003378868, -0.07122872024774551, 0.039067041128873825, -0.05008889362215996, -0.018023701384663582, -0.03914588317275047, 0.02285480685532093, -0.04161170497536659, -0.06575722247362137, -0.01333196647465229, 0.017886962741613388, -0.032793913036584854, -0.010923082008957863, -0.09677883237600327, -0.054867688566446304, 0.01871177926659584, -0.04250982776284218, -0.07219724357128143, 0.018940100446343422, 0.03544359654188156, -0.02344944328069687, 0.006802927702665329, 0.004039297346025705, 0.02729148231446743, -0.04627159982919693, 0.0324004627764225, -0.015792984515428543, 0.03096255473792553, -0.011203687638044357, -0.018048012629151344, 0.015366223640739918, 0.07526270300149918, 0.05019344016909599, 0.011415376327931881, 0.022939646616578102, -0.04349713400006294, -0.0008056970546022058, 0.015432977117598057, 0.024763694033026695, -0.02664024569094181, -0.03697291761636734, 0.00523072574287653, 0.030461763963103294, 0.024131035432219505, 0.0834084004163742, -0.025110796093940735, -0.03421305865049362, 0.027584601193666458, 0.014441827312111855, 0.037137772887945175, -0.028547216206789017, -0.050060685724020004, 0.04693814367055893, 0.009062502533197403, 0.028304632753133774, 0.012811400927603245, -0.024531517177820206, 0.0642201229929924, -0.028580045327544212, -0.01084747165441513, 0.028527963906526566, 0.09517849236726761, -0.036586079746484756, 0.013232635334134102, 0.011354790069162846, 0.05959131196141243, -0.08643181622028351, 0.026897206902503967, -0.07668740302324295, 0.03439212217926979, -0.059281665831804276, -0.03312581777572632, -0.02408106066286564, 0.014711171388626099, -0.03551535680890083, 0.06092879921197891, 0.017341794446110725, -0.010198090225458145, -0.11128535866737366, -0.03566597402095795, -0.00546781811863184, 0.06782478839159012, -0.024215711280703545, -0.01791665144264698, -0.04935430362820625, 0.013223735615611076, 0.003970082849264145, -0.04955263063311577, 0.059595271944999695, -0.008163735270500183, -0.027834003791213036, 0.03124285116791725, -0.03263509273529053, 0.08019057661294937, -0.012698139995336533, -0.04639323055744171, 0.024535464122891426, 0.027095366269350052, 0.023421434685587883, -0.009053918533027172, -0.026897042989730835, 0.037809040397405624, 0.04306606948375702, -0.014297302812337875, 0.0048852418549358845, -0.0793096274137497, -0.004209876526147127, 0.05944022163748741, -0.02717810869216919, 0.018605027347803116, 0.08060641586780548, -0.0000862451852299273, -0.021980775520205498, 0.003905546385794878, 0.0004031787975691259, 0.025701195001602173, -0.015599480830132961, 0.012091445736587048, -0.005414328072220087, -0.012282424606382847, 0.010478134267032146, -0.009270577691495419, 0.03577209264039993, -0.004822147078812122, 0.001761601073667407, 0.026353860273957253, -0.06423728168010712, 0.024868927896022797, 0.005594879854470491, 0.012403171509504318, 0.0038045477122068405, 0.08207064867019653, 0.005432149861007929, -0.07155121862888336, -0.005015037953853607, 0.012221652083098888, -0.004160325974225998, 0.05091198906302452, 0.005274272058159113, 0.0028239458333700895, -0.006573124323040247, 0.021349744871258736, -0.016238927841186523, -0.024541890248656273, 0.012231588363647461, 0.02965998277068138, 0.042430806905031204, 0.006834577769041061, 0.004296096041798592, -0.03186693415045738, 0.005778883118182421, 0.02482537552714348, 0.04619745537638664, 0.00300184590741992, 0.014783846214413643, 0.010811652056872845, -0.0007194112404249609, -0.006901818327605724, -0.0030808327719569206, -0.027648188173770905, 0.016987336799502373, 0.026850935071706772, 0.006026808172464371, -0.10487452149391174, -0.07867085188627243, -0.018192410469055176, 0.006951363291591406, -0.0077271233312785625, -0.03051472082734108, 0.02861631289124489, -0.036934852600097656, 0.04005996510386467, 0.010156519711017609, 0.008835682645440102, -0.008102300576865673, 0.06853599846363068, 0.0004792360996361822, -0.07103227823972702, -0.035208821296691895, 0.01385822705924511, -0.017736194655299187, 0.008338045328855515, -0.0031813306268304586, -0.02695985697209835, 0.025442225858569145, 0.02519366331398487, -0.03135744109749794, 0.0022095830645412207, -0.017610857263207436, 0.044820863753557205, -0.011972913518548012, 0.016519024968147278, -0.04128943383693695, -0.007402080111205578, -0.009928270243108273, -0.03289911150932312, 0.021064823493361473, -0.026730356737971306, 0.005275934003293514, 0.0029654507525265217, -0.017601298168301582, 0.04795701429247856, 0.0025196706410497427, 0.014329023659229279, -0.026432599872350693, 0.004653794225305319, -0.01659054309129715, -0.004614183679223061, 0.009211570955812931, -0.02593645267188549, 0.007362300995737314, 0.03440222889184952, 0.005723089911043644, 0.004250478930771351, 0.005618598777800798, 0.0049589877016842365, 0.01632702723145485, 0.028416134417057037, 0.013191165402531624, 0.0012234087334945798, 0.02938324213027954, 0.0524621307849884, 0.013033490628004074, -0.05341928452253342, -0.016453927382826805, -0.041219230741262436, 0.027215151116251945, -0.03651338815689087, 0.038173068314790726, 0.02146596647799015, -0.0038949265144765377, 0.019303886219859123, 0.0027442232239991426, -0.0007404491771012545, -0.0031545052770525217, -0.0042404127307236195, 0.011378894560039043, 0.013221626169979572, 0.012672949582338333, -0.022203119471669197, -0.012335422448813915, 0.037945251911878586, 0.0017005822155624628, -0.01040652859956026, -0.01691923290491104, -0.022892357781529427, -0.024840328842401505, -0.013977505266666412, -0.0018747146241366863, 0.044896937906742096, -0.007853895425796509, 0.011312410235404968, 0.01097686868160963, 0.025755422189831734, -0.008926796726882458, 0.03410259634256363, -0.031078850850462914, -0.011301274411380291, 0.005710460711270571, 0.005750071723014116, -0.03367328271269798, 0.04344192519783974, 0.0029714861884713173, 0.010218427516520023, -0.046503107994794846, -0.025544164702296257, -0.030024897307157516, 0.003441158216446638, -0.01068948581814766, -0.011418995447456837, -0.04841095209121704, -0.008783252909779549, 0.013775412924587727, 0.059966444969177246, -0.03436330705881119, -0.00957406684756279, -0.028333229944109917, 0.01030314527451992, 0.015549522824585438, -0.022479450330138206, -0.029849961400032043, -0.06738808006048203, 0.0350363589823246, -0.016553619876503944, 0.04055129364132881, 0.009281174279749393, -0.01219994854182005, -0.025896664708852768, -0.004778564907610416, 0.04548799246549606, 0.007637255359441042, 0.013063902966678143, 0.026051338762044907, 0.018196789547801018, 0.0023861487861722708, -0.010794756934046745, 0.02307942882180214, 0.026331359520554543, -0.00869438610970974, -0.03923292085528374, 0.010472961701452732, 0.01783265359699726, -0.08067775517702103, -0.029344109818339348, 0.00016824995691422373, 0.06816142052412033, -0.03244403749704361, 0.027566751465201378, 0.012779181823134422, -0.023680100217461586, 0.028439823538064957, -0.018482200801372528, 0.04168648645281792, 0.04868372902274132, -0.013519287109375, -0.03548191115260124, 0.06970459222793579, 0.03492875397205353, 0.004638344515115023, 0.0009615810704417527, 0.023761430755257607, 0.015513687394559383, 0.029320823028683662, 0.025272401049733162, 0.016811061650514603, -0.015285401605069637, 0.008584095165133476, 0.041872285306453705, 0.023738913238048553, -0.000014003668184159324, -0.06213504821062088, -0.026728076860308647, 0.05063501000404358, -0.023989129811525345, -0.017762672156095505, 0.008365357294678688, -0.03947031497955322, -0.02580706588923931, 0.06284678727388382, 0.034619566053152084, -0.018197888508439064, 0.047001615166664124, 0.021663323044776917, -0.03355830907821655, -0.011187740601599216, 0.03278280049562454, -0.04259384050965309, -0.006164446473121643, 0.017839692533016205, 0.008799404837191105, 0.04393959417939186, 0.047951631247997284, 0.018980180844664574, 0.006669118534773588, -0.019427284598350525, 0.013596239499747753, -0.04383688420057297, 0.005190049298107624, -0.024054991081357002, -0.03389979153871536, 0.004383574705570936, 0.017527079209685326, -0.027310052886605263, -0.026647472754120827, 0.025637442246079445, -0.008195090107619762, 0.017671361565589905, 0.027882689610123634, -0.010001575574278831, -0.013920264318585396, 0.019130351021885872, 0.005934146698564291, -0.028177296742796898, 0.013919324614107609, -0.03787001594901085, 0.04306423291563988, -0.007506219670176506, 0.004146945662796497, -0.0299693550914526, -0.02778356894850731, -0.018513355404138565, 0.011721215210855007, 0.0377269946038723, -0.008293962106108665, -0.006444345694035292, -0.007946214638650417, -0.017080314457416534, 0.01636269874870777, -0.0010010632686316967, 0.04248352721333504, 0.008814459666609764, -0.015574324876070023, 0.0619170106947422, 0.02815900556743145, 0.023636313155293465, 0.06149337813258171, 0.0029003580566495657, 0.030163032934069633, 0.0361519493162632, -0.06618925929069519, 0.006394930183887482, -0.0007325374172069132, -0.0007873487775214016, 0.02163298800587654, -0.018693028017878532, -0.02555553801357746, -0.03909847512841225, -0.04320956766605377, -0.011215992271900177, 0.05683619901537895, -0.011392406187951565, 0.013394203037023544, -0.03295297175645828, 0.011901255697011948, -0.0031660941895097494, 0.031987063586711884, 0.01372365653514862, -0.0004936984041705728, 0.0015154274879023433, 0.011550369672477245, 0.04685566946864128, -0.051318615674972534, 0.011620678938925266, 0.008360478095710278, -0.009361987002193928, -0.020915506407618523, 0.03659209981560707, 0.0035348336677998304, 0.0526978000998497, -0.01770828105509281, -0.015017296187579632, -0.007094612345099449, 0.03281480818986893, 0.0021536618005484343, 0.046447332948446274, 0.04175204038619995, 0.008716450072824955, -0.034331370145082474, -0.010925719514489174, 0.04948354512453079, 0.08045028895139694, -0.016504455357789993, 0.045533426105976105, 0.025221308693289757, 0.03617450222373009, -0.00002151996159227565, 0.005263790488243103, -0.029135223478078842, 0.04200972244143486, 0.09876679629087448, -0.018930584192276, 0.019248466938734055, 0.03691769391298294, -0.015215101651847363, 0.00131870131008327, -0.05085540935397148, -0.008715777657926083, -0.01976853236556053, 0.001329359714873135, -0.021097460761666298, -0.016547000035643578, 0.031158287078142166, -0.04350719973444939, 0.028052804991602898, 0.02176082693040371, 0.001188819296658039, -0.03515729308128357, 0.05517268180847168, 0.024353642016649246, 0.0107569620013237, 0.0015810790937393904, -0.01348597276955843, 0.04519542306661606, 0.0006701042875647545, 0.04339166358113289, 0.008425946347415447, 0.041613515466451645, 0.0015954007394611835, 0.04080694541335106, -0.005270630586892366, 0.01155017875134945, -0.01634364388883114, -0.004917867016047239, -0.011518104933202267, -0.02216123230755329, -0.019249960780143738, 0.015331153757870197, -0.03713010996580124, -0.0031269164755940437, 0.007480296306312084, 0.018435465171933174, -0.01044846698641777, -0.009068318642675877, 0.012727700173854828, 0.012087475508451462, 0.013064516708254814, 0.03028724156320095, 0.016126245260238647, 0.00926192943006754, 0.022027501836419106, 0.02200218476355076, -0.030021170154213905, -0.01568729057908058, -0.0024328967556357384, -0.003704345552250743, 0.009523726999759674, 0.005597890354692936, 0.02368100732564926, 0.009622409008443356, -0.017079098150134087, 0.037603069096803665, -0.008946252055466175, -0.0047777313739061356, 0.011857281439006329, 0.016370872035622597, -0.03340445086359978, 0.0009682592353783548, 0.013447578065097332, -0.017247376963496208, -0.04362662881612778, -0.072808638215065, 0.014116798527538776, -0.013058316893875599, 0.007109357975423336, 0.03807508572936058, 0.05688050016760826, -0.026520853862166405, -0.05504392087459564, -0.03702760860323906, -0.04846857860684395, -0.012485113926231861, 0.03537227213382721, 0.006287117023020983, 0.005349210929125547, -0.002426899503916502, 0.014935145154595375, 0.04133079946041107, 0.016800986602902412, 0.031051255762577057, 0.01393289677798748, 0.002520269714295864, -0.048678815364837646, -0.01968543604016304, 0.01536982599645853, 0.022499898448586464, 0.03801722452044487, 0.024223245680332184, 0.04123213142156601, -0.007431515026837587, -0.034244369715452194, 0.00627099396660924, -0.018703848123550415, 0.0004333366814535111, -0.0441245436668396, -0.03905358538031578, 0.01688350737094879, -0.051400698721408844, -0.012387102469801903, 0.024466997012495995, 0.007103354204446077, -0.009268330410122871, -0.04438482224941254, 0.002152299042791128, 0.017506582662463188, 0.0030768737196922302, 0.029838044196367264, 0.04074209928512573, 0.05715043470263481, -0.034067291766405106, 0.017053980380296707, 0.01508962269872427, 0.012372158467769623, -0.02767866477370262, 0.020027300342917442, 0.0142382076010108, 0.006421561352908611, -0.021644972264766693, -0.011812649667263031, 0.01117284782230854, -0.07471155375242233, 0.044746145606040955, 0.004277970641851425, 0.008906286209821701, -0.024301394820213318, -0.011633467860519886, 0.0012029014760628343, 0.011736763641238213, 0.027264703065156937, -0.044466786086559296, -0.026620250195264816, -0.02507013827562332, 0.030575644224882126, -0.03043593093752861, 0.027528008446097374, -0.02268173173069954, -0.012563977390527725, -0.015179519541561604, -0.01885702833533287, -0.02807420678436756, 0.03419483080506325, -0.023616528138518333, -0.0051711853593587875, -0.003443543566390872, -0.03760655224323273, -0.023768942803144455, 0.005070490762591362, -0.0067663658410310745, -0.02646317146718502, -0.08886057138442993, 0.008624499663710594, 0.021453792229294777, -0.012661723420023918, -0.007776318117976189, -0.02833961695432663, 0.008165276609361172, 0.003896866226568818, -0.003266948042437434, 0.02416127361357212, 0.023872148245573044, -0.009961096569895744, 0.0029082787223160267, 0.0130579499527812, 0.01009894348680973 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Introduction Today, we're excited to welcome TII's Falcon 180B to HuggingFace! Falcon 180B sets a new state-of-the-art for open models. It is the largest openly available language model, with 180 billion parameters, and was trained on a massive 3.5 trillion tokens using TII's RefinedWeb dataset. This represents the longest single-epoch pretraining for an open model. You can find the model on the Hugging Face Hub (base and chat model) and interact with the model on the Falcon Chat Demo Space. In terms of capabilities, Falcon 180B achieves state-of-the-art results across natural language tasks. It tops the leaderboard for (pre-trained) open-access models and rivals proprietary models like PaLM-2. While difficult to rank definitively yet, it is considered on par with PaLM-2 Large, making Falcon 180B one of the most capable LLMs publicly known. In this blog post, we explore what makes Falcon 180B so good by looking at some evaluation results and show how you can use the model. * What is Falcon-180B? * How good is Falcon 180B? * How to use Falcon 180B? * Demo * Hardware requirements * Prompt format * Transformers * Additional Resources
[ -0.02788384072482586, -0.023910215124487877, 0.008646927773952484, -0.022976547479629517, 0.05288424715399742, 0.031494226306676865, 0.014168756082654, 0.10151001065969467, -0.050901371985673904, -0.03607788309454918, -0.06444333493709564, 0.0742175430059433, -0.004642312880605459, 0.033679816871881485, 0.03459426015615463, -0.019021213054656982, -0.014998412691056728, -0.011479920707643032, -0.01912439987063408, -0.009822700172662735, 0.03223847225308418, -0.010625189170241356, 0.01966993696987629, -0.05699640512466431, -0.028455479070544243, -0.0347890667617321, -0.01586955599486828, -0.0016511076828464866, 0.022070465609431267, 0.011970764957368374, -0.060102205723524094, -0.058923717588186264, -0.03582402318716049, -0.0564940981566906, -0.018461063504219055, 0.07769355922937393, -0.08577194809913635, 0.023410571739077568, 0.0070746648125350475, -0.026532679796218872, 0.03801131993532181, 0.0145292142406106, -0.014302498660981655, -0.0024334201589226723, 0.018322359770536423, -0.016992388293147087, -0.15380869805812836, 0.0727718397974968, 0.05213978886604309, 0.006580864079296589, -0.11105623096227646, 0.05798915773630142, -0.08434760570526123, -0.03997420892119408, 0.0707535594701767, -0.015327300876379013, -0.06555113196372986, -0.06339338421821594, 0.002806564327329397, 0.022973554208874702, 0.023704417049884796, 0.02353702299296856, 0.04619072377681732, 0.07742486149072647, -0.041036807000637054, -0.025187645107507706, -0.05363171175122261, -0.01855120249092579, -0.06298073381185532, 0.0145729323849082, 0.016970928758382797, 0.05553315579891205, -0.07118543237447739, -0.05355118587613106, -0.04406122863292694, -0.07082571089267731, -0.01986391842365265, 0.06348833441734314, 0.017406946048140526, 0.03198854625225067, 0.049738653004169464, 0.040260300040245056, -0.0005651593673974276, -0.013903073966503143, -0.018736092373728752, 0.045416735112667084, 0.017134645953774452, -0.08622825145721436, -0.05023285746574402, 0.001162044471129775, -0.012745355255901814, -0.09927432239055634, 0.01829005591571331, -0.01559432316571474, 0.050542861223220825, -0.045865900814533234, -0.06503618508577347, 0.06757686287164688, 0.03536725044250488, 0.0015007549664005637, 0.012769595719873905, -0.02170310541987419, 0.013494044542312622, -0.061312511563301086, -0.02784709818661213, 0.05576905608177185, -0.043204519897699356, -0.0930420532822609, -0.0022247708402574062, -0.01234275009483099, 0.003935493528842926, -0.04088153690099716, -0.050611384212970734, 0.010019517503678799, -0.1263691931962967, 0.04915911331772804, -0.027847502380609512, 0.004130690358579159, -0.007528563961386681, -0.04521022364497185, 0.045290619134902954, 0.10239119082689285, 0.01179332472383976, -0.05604162812232971, 0.05343735218048096, 0.05082656815648079, 0.027772394940257072, 0.03115931712090969, 0.013446114957332611, -0.026965105906128883, 0.03332957997918129, -0.030916765332221985, 0.04759809002280235, -0.001738173421472311, -0.008438067510724068, -0.03988134115934372, 0.028686553239822388, -0.06661607325077057, 0.05278555676341057, -0.006272794678807259, -0.011187070049345493, 0.026823420077562332, 0.0029469607397913933, -0.07497567683458328, 0.016312455758452415, 0.031214991584420204, -0.05405960977077484, 0.025167316198349, -0.054686181247234344, -0.0707336962223053, -0.10659879446029663, 0.05542051047086716, -0.008246919140219688, -0.0387798473238945, 0.0363193079829216, 0.07775261253118515, -0.017682718113064766, -0.003898841328918934, -0.037523724138736725, -0.04232575371861458, 0.028102431446313858, -0.04685856029391289, -0.06373438239097595, 0.0380559116601944, 0.02486974000930786, -0.012278491631150246, -0.0085417740046978, 0.0361536368727684, -0.022307362407445908, -0.004076533485203981, 0.06022213026881218, 0.030483389273285866, 0.040711235255002975, -0.010795678943395615, -0.07490881532430649, 0.043173108249902725, 0.04536205530166626, -0.04141037538647652, 0.032035015523433685, 0.07171757519245148, -0.04999120160937309, -0.02445315197110176, 0.035096872597932816, 0.07657279074192047, 0.023347778245806694, -0.051756467670202255, 0.0028967466205358505, -0.006365188863128424, -0.010845182463526726, 0.01906345598399639, -0.010408514179289341, 0.04016510397195816, 0.07761017233133316, 0.025398489087820053, 0.03366054594516754, -0.05388278141617775, 0.006016537081450224, 0.060859039425849915, 0.04740655794739723, 0.04985480755567551, 0.028304021805524826, 0.03300906717777252, 0.0362069196999073, -0.07165410369634628, -0.037864089012145996, -0.03241081163287163, 0.08329758793115616, -0.018542155623435974, -0.0038820181507617235, 0.0253747645765543, 0.0746091678738594, -0.10114773362874985, 0.016941377893090248, -0.06094776839017868, -0.010757333599030972, -0.11378224939107895, -0.036351993680000305, -0.02800220437347889, 0.0666726604104042, -0.020349949598312378, 0.09135795384645462, -0.055524326860904694, -0.003117630258202553, -0.14092309772968292, 0.031898945569992065, 0.009964101016521454, 0.03793620690703392, 0.03407004848122597, 0.0014300624607130885, -0.04431667551398277, -0.022493017837405205, -0.05365324392914772, -0.0376581996679306, 0.018839089199900627, -0.009551729075610638, -0.04677540808916092, 0.0053083342500030994, -0.0486757718026638, 0.05307050421833992, 0.03143218904733658, -0.007708947639912367, 0.03345281630754471, 0.04003198817372322, 0.05449094995856285, -0.04183889552950859, -0.03130321577191353, 0.055456288158893585, 0.024068841710686684, -0.03313399851322174, 0.07868288457393646, -0.06015494838356972, 0.07148570567369461, -0.001028585247695446, 0.010203812271356583, -0.015119263902306557, 0.04033374413847923, 0.00010939611092908308, -0.029847249388694763, 0.021306542679667473, 0.007463441696017981, 0.01908561959862709, 0.008677405305206776, -0.01466437429189682, -0.0166737399995327, 0.0005715935840271413, -0.014683462679386139, -0.033500414341688156, 0.00014484809071291238, 0.019514882937073708, 0.001813646755181253, -0.0006053262623026967, -0.02947901003062725, 0.028290238231420517, 0.019981101155281067, 0.005926746875047684, 0.025512153282761574, 0.030580487102270126, -0.0039145429618656635, -0.05796334519982338, -0.02840413898229599, 0.03628390654921532, -0.020957237109541893, 0.053023237735033035, 0.014457840472459793, 0.02249586209654808, -0.008408674038946629, 0.00965722743421793, -0.004063093569129705, -0.042992204427719116, 0.02684439904987812, 0.040867485105991364, 0.05051437020301819, -0.019897477701306343, -0.021950196474790573, -0.03446757048368454, 0.008553317748010159, 0.0027366888243705034, 0.00519513338804245, -0.0010263844160363078, -0.004708088934421539, -0.030163859948515892, 0.002007960807532072, 0.018620772287249565, 0.03340949863195419, 0.017236098647117615, 0.0015482308808714151, 0.008166863583028316, 0.018276531249284744, -0.08407056331634521, -0.003478621831163764, -0.02948182448744774, -0.046081334352493286, 0.020438743755221367, 0.014248722232878208, 0.04563770070672035, -0.05285285413265228, 0.02104092203080654, 0.020894650369882584, -0.019618868827819824, 0.010432779788970947, 0.06434504687786102, -0.0021721243392676115, -0.043946944177150726, 0.017690438777208328, -0.01370168849825859, -0.008664106950163841, 0.041316766291856766, -0.007160512264817953, -0.01878209412097931, -0.005756025668233633, -0.012677880004048347, 0.004563047084957361, -0.018582908436655998, -0.02485218271613121, 0.031688541173934937, -0.0414276085793972, -0.004174685571342707, -0.01219009980559349, 0.014467675238847733, -0.013099371455609798, -0.04380279406905174, 0.03550514951348305, -0.02993270941078663, -0.0046930937096476555, -0.0009878950659185648, 0.024703195318579674, 0.008357524871826172, 0.04749944433569908, 0.009214797057211399, -0.013737732544541359, 0.010219329036772251, -0.0062463306821882725, 0.0033657653257250786, 0.01929096318781376, -0.022701622918248177, -0.020945116877555847, 0.06057784706354141, -0.025764470919966698, -0.036541420966386795, -0.02448135055601597, -0.01755201257765293, 0.017207635566592216, 0.029532836750149727, -0.01226212177425623, 0.010088623501360416, -0.003206634195521474, 0.007805099245160818, 0.0028769392520189285, -0.010693829506635666, 0.004437302704900503, -0.05819493159651756, 0.034723613411188126, -0.017637725919485092, 0.07798965275287628, 0.039767153561115265, -0.04122548550367355, 0.001232919399626553, 0.03331616148352623, 0.0016238151583820581, 0.024839526042342186, -0.0034216030035167933, -0.00029921618988737464, 0.032812707126140594, 0.004015845246613026, -0.0058588068932294846, -0.049686331301927567, 0.013200049288570881, 0.049821462482213974, -0.05215565115213394, -0.001698871492408216, -0.06170890852808952, -0.028760356828570366, 0.02124873921275139, 0.009111284278333187, 0.021998072043061256, -0.0494234673678875, 0.01690140925347805, 0.027724262326955795, -0.011463367380201817, -0.0014920535031706095, 0.03479578718543053, 0.03318890556693077, -0.0069778673350811005, -0.010345160961151123, -0.004309001844376326, -0.02103891223669052, 0.05006959289312363, -0.016062520444393158, 0.04091295599937439, -0.0443921722471714, -0.036321334540843964, -0.03453247994184494, -0.034884899854660034, -0.019546909257769585, -0.01800241880118847, -0.031410444527864456, 0.029803141951560974, 0.009722867049276829, -0.003490778151899576, -0.025294339284300804, -0.016568446531891823, 0.020349161699414253, 0.0025270211044698954, 0.04657583683729172, -0.02552924118936062, 0.016283830627799034, -0.06911821663379669, 0.02612042985856533, -0.008933733217418194, 0.0033273363951593637, -0.0011305449297651649, -0.000819987733848393, -0.01992710679769516, -0.0038362496998161077, 0.013828489929437637, -0.008522720076143742, 0.003004948142915964, -0.012455876916646957, -0.010936674661934376, -0.01830931380391121, -0.010343720205128193, 0.050987597554922104, -0.011862237006425858, 0.04074043035507202, -0.031253255903720856, -0.012267767451703548, 0.030635274946689606, -0.04809683933854103, -0.04012952744960785, 0.006687018554657698, 0.012466443702578545, -0.010203557088971138, 0.0020823106169700623, 0.020307986065745354, -0.010579179041087627, -0.006978182587772608, 0.011505953967571259, 0.029284430667757988, 0.020520882681012154, -0.004013288300484419, -0.0443149209022522, 0.039914973080158234, 0.03293093293905258, 0.02656499855220318, -0.02241283468902111, 0.01575845293700695, 0.039127591997385025, 0.025318114086985588, -0.012921840883791447, 0.03133069723844528, -0.00628984160721302, 0.041813526302576065, 0.0451783686876297, -0.003587412880733609, 0.027809223160147667, 0.020764023065567017, -0.027412384748458862, 0.0069382027722895145, 0.0017133926739916205, 0.02817218378186226, -0.005238143261522055, 0.012294264510273933, -0.04044755548238754, 0.01649651862680912, 0.033977944403886795, 0.02106885425746441, 0.01971365138888359, 0.02499411627650261, -0.02809821255505085, -0.014547101221978664, 0.06342041492462158, -0.029208954423666, -0.014557506889104843, 0.013851274736225605, 0.01827290467917919, 0.07136102020740509, 0.022318925708532333, 0.031200358644127846, -0.008029925636947155, -0.03420330211520195, 0.020318124443292618, -0.02941736951470375, -0.004018040373921394, -0.027380535379052162, -0.0020851842127740383, 0.051612239331007004, 0.018996737897396088, -0.025820985436439514, -0.0166955403983593, 0.02497457154095173, -0.016761627048254013, 0.018769994378089905, 0.03640293329954147, 0.021227331832051277, -0.019248219206929207, -0.015987155959010124, 0.004570418503135443, -0.00693848542869091, -0.02744179032742977, -0.022976603358983994, 0.03848641738295555, -0.010590246878564358, 0.04841281846165657, -0.007388803642243147, 0.018514683470129967, -0.011658337898552418, 0.01467917114496231, 0.04749729111790657, 0.006404220592230558, -0.03856446593999863, -0.005011225119233131, -0.0676439106464386, 0.03610175848007202, -0.03500636667013168, 0.03219752386212349, 0.01007759664207697, -0.015032798051834106, 0.007931739091873169, 0.008171542547643185, -0.013561448082327843, 0.04099920019507408, 0.04184514284133911, 0.013880574144423008, 0.024487163871526718, -0.07969757914543152, -0.04764486104249954, 0.00980364065617323, 0.017201365903019905, 0.008253647945821285, -0.015874719247221947, -0.013060587458312511, 0.03670773282647133, -0.06545121222734451, 0.03278268128633499, 0.040214743465185165, -0.0260754581540823, -0.008501662872731686, -0.024830549955368042, -0.03370967507362366, 0.021232997998595238, 0.03188381344079971, 0.01282750815153122, 0.00972001813352108, -0.014649610966444016, -0.014339817687869072, 0.005905443336814642, -0.025275982916355133, 0.0018743452383205295, 0.004715044982731342, -0.030365576967597008, -0.025983698666095734, 0.04217515513300896, -0.021850865334272385, 0.019054774194955826, 0.0294028352946043, -0.039563778787851334, 0.02272515930235386, -0.00035371017293073237, 0.010967600159347057, -0.009371001273393631, 0.002319963416084647, -0.016411758959293365, -0.082569420337677, -0.0008894312777556479, 0.07808492332696915, 0.11876675486564636, 0.017481666058301926, 0.043924275785684586, 0.04385710507631302, 0.023147063329815865, 0.04659157246351242, 0.014295839704573154, -0.014653760008513927, 0.0511760450899601, 0.10378417372703552, 0.022502476349473, 0.012473001144826412, 0.015553144738078117, -0.0009834148222580552, 0.01279533188790083, -0.056231237947940826, -0.014797238633036613, -0.022444749251008034, -0.0006627393304370344, 0.016836216673254967, -0.03829168155789375, -0.0037149901036173105, -0.04199661687016487, 0.03006424941122532, 0.0056039271876215935, 0.029915792867541313, 0.03485235571861267, 0.0660991445183754, -0.020621705800294876, -0.00277180434204638, 0.03298509120941162, 0.022205214947462082, 0.04122839868068695, 0.011744054965674877, 0.006821340415626764, 0.048516254872083664, 0.06022052839398384, -0.00123615434858948, 0.02856561914086342, 0.016190681606531143, -0.005572974216192961, -0.004661895334720612, 0.028536593541502953, -0.003029197221621871, 0.011910234577953815, 0.0040558516047894955, 0.014077036641538143, -0.022185305133461952, 0.0290099885314703, -0.0075235916301608086, 0.0075280191376805305, -0.018838301301002502, -0.00970165804028511, 0.011301069520413876, 0.039588041603565216, 0.0021473101805895567, -0.007379633840173483, -0.029710059985518456, -0.017661016434431076, 0.01376187801361084, 0.005333746783435345, -0.04063771292567253, -0.010884486138820648, 0.013099285773932934, -0.0145401107147336, 0.00910971313714981, 0.04101242870092392, 0.020783742889761925, 0.009134368039667606, -0.023349177092313766, 0.033393070101737976, 0.0024937856942415237, 0.0374336838722229, 0.0037666205316781998, -0.008604571223258972, 0.012072525918483734, -0.01790669374167919, 0.03468285873532295, -0.041410576552152634, -0.03580286353826523, -0.053601041436195374, -0.0306838471442461, -0.00028859026497229934, 0.017100373283028603, 0.04153520241379738, 0.09718604385852814, -0.045130323618650436, -0.06108595058321953, -0.029826588928699493, -0.02509208954870701, -0.015921056270599365, 0.035341616719961166, 0.014058458618819714, 0.024113882333040237, -0.028205465525388718, 0.0172046460211277, 0.004653128795325756, -0.0116406986489892, -0.036420661956071854, 0.039650801569223404, 0.01628505066037178, -0.03409046307206154, -0.02189173735678196, 0.02110813558101654, 0.0587141290307045, 0.045867253094911575, 0.030180005356669426, 0.005445250775665045, 0.01962878741323948, -0.0036403208505362272, 0.014556574635207653, -0.016348153352737427, 0.01621495746076107, -0.04497808590531349, -0.028833085671067238, 0.02226424030959606, -0.006992497947067022, 0.020345088094472885, 0.004666017834097147, -0.03580673411488533, -0.022613374516367912, -0.061561547219753265, 0.001224069856107235, 0.01664140820503235, -0.006808511447161436, 0.028805268928408623, 0.01636945828795433, 0.03961921110749245, -0.0103759765625, 0.016960861161351204, 0.031772226095199585, -0.007170346565544605, -0.02086043544113636, 0.04978702589869499, 0.004810407292097807, -0.016132565215229988, 0.016569502651691437, -0.03219831362366676, 0.011997351422905922, -0.07231954485177994, 0.03675268217921257, 0.04756205156445503, 0.022165315225720406, -0.010253718122839928, 0.03990398347377777, 0.005794284865260124, -0.012961192056536674, 0.011330737732350826, -0.03043866530060768, -0.02045608125627041, -0.003391261212527752, -0.004180343821644783, -0.051176074892282486, 0.03932409733533859, -0.03273550793528557, 0.020660052075982094, 0.03915983811020851, -0.01003669761121273, 0.01886701211333275, 0.0267756637185812, 0.0014729329850524664, -0.03527966886758804, -0.010869201272726059, -0.03540126234292984, 0.004288090392947197, 0.022561190649867058, 0.00007911536522442475, -0.017372073605656624, -0.036941539496183395, 0.05153074488043785, 0.004662585444748402, 0.020183563232421875, -0.032495759427547455, -0.0101365577429533, 0.016874494031071663, 0.03661927208304405, -0.04035025089979172, 0.030717987567186356, 0.0007786499918438494, 0.007430813740938902, 0.008240045048296452, -0.03934869542717934, 0.02420186810195446 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Prompt format The base model has no prompt format. Remember that it’s not a conversational model or trained with instructions, so don’t expect it to generate conversational responses—the pretrained model is a great platform for further finetuning, but you probably shouldn’t driectly use it out of the box. The Chat model has a very simple conversation structure. bash System: Add an optional system prompt here User: This is the user input Falcon: This is what the model generates User: This might be a second turn input Falcon: and so on
[ 0.01334307063370943, -0.012414422817528248, 0.018681885674595833, 0.021916020661592484, 0.07067884504795074, 0.008277463726699352, 0.030110416933894157, 0.027649950236082077, -0.00348829897120595, -0.05606469884514809, -0.10881026089191437, 0.02863699570298195, -0.0034303634893149137, -0.011892041191458702, -0.05946021154522896, 0.008134443312883377, -0.010170805267989635, -0.02936888299882412, -0.03847866877913475, -0.009217878803610802, -0.043209899216890335, -0.06912937015295029, 0.011631684377789497, -0.00753730209544301, 0.04728196561336517, -0.05049042031168938, 0.04464128986001015, -0.03666800633072853, -0.010960272513329983, 0.017492279410362244, -0.09087087213993073, -0.011334674432873726, 0.01244831457734108, -0.0377560593187809, -0.005202664528042078, -0.02542063221335411, -0.08518312126398087, 0.041481178253889084, 0.04120209813117981, -0.030960168689489365, -0.0135256452485919, -0.0336490124464035, 0.02029375359416008, 0.0563870444893837, -0.009672986343502998, -0.02471040189266205, -0.18948155641555786, 0.009640485979616642, -0.053029753267765045, 0.00988689437508583, -0.07265777885913849, 0.06114225834608078, -0.06298124045133591, -0.011650013737380505, 0.07425857335329056, -0.023160681128501892, -0.03259057551622391, -0.024806763976812363, -0.022799359634518623, 0.008281338028609753, -0.012711020186543465, 0.0649503692984581, -0.03024255856871605, 0.04375016316771507, 0.012551289051771164, -0.03972415253520012, 0.009454886429011822, -0.021448660641908646, -0.053249333053827286, -0.0077620577067136765, -0.025285279378294945, 0.05497866868972778, -0.011808643117547035, -0.04558619111776352, -0.011350496672093868, -0.05237801745533943, 0.06211010739207268, 0.12786735594272614, -0.010050226002931595, 0.06014218553900719, -0.010254988446831703, 0.022662170231342316, 0.07993966341018677, -0.011432752013206482, -0.03091013804078102, 0.031971290707588196, 0.018082229420542717, -0.009898830205202103, -0.002052292926236987, -0.006540006026625633, -0.03450477123260498, -0.1305968165397644, -0.0005996749387122691, 0.016118254512548447, -0.0033943927846848965, 0.008597430773079395, 0.01687135174870491, 0.02042442187666893, -0.01359406765550375, 0.03222166374325752, -0.045829445123672485, -0.06684160977602005, 0.09259830415248871, -0.039101071655750275, -0.0735626146197319, 0.013150284066796303, -0.04093555361032486, -0.08321548998355865, -0.039982233196496964, -0.022311918437480927, 0.021380765363574028, -0.02405599132180214, 0.09492594748735428, 0.04611250385642052, -0.03641367331147194, 0.029282821342349052, -0.029343269765377045, -0.014644554816186428, -0.005380647256970406, 0.023748593404889107, 0.011438896879553795, 0.03259845823049545, 0.06665786355733871, 0.020399438217282295, 0.051223255693912506, 0.07475414872169495, 0.03649961203336716, 0.00010064837260870263, 0.025807619094848633, -0.039386555552482605, 0.045773036777973175, 0.00027024635346606374, 0.020556651055812836, 0.06033354252576828, 0.025404449552297592, -0.09083936363458633, -0.006765848025679588, -0.08971407264471054, 0.08179836720228195, 0.02876896783709526, 0.003099296474829316, -0.009128374047577381, 0.050597742199897766, 0.01963096112012863, 0.06124885380268097, -0.03281662240624428, -0.041021768003702164, 0.014903229661285877, -0.0645158439874649, 0.021392306312918663, -0.04819421097636223, 0.012564975768327713, 0.0010140861850231886, -0.07637475430965424, 0.001915047294460237, 0.029146961867809296, 0.0069693648256361485, -0.04206415265798569, -0.046216074377298355, -0.055852923542261124, 0.05870278924703598, 0.04041563719511032, -0.055993497371673584, 0.03005753643810749, 0.06959577649831772, -0.025522133335471153, 0.0070739747025072575, -0.02725863642990589, 0.07507870346307755, -0.03345770016312599, 0.05082482472062111, -0.000004853491191170178, 0.13447581231594086, -0.02262367308139801, 0.04160410910844803, 0.021694740280508995, 0.04783369600772858, 0.014478721655905247, 0.07728143781423569, -0.04507455602288246, 0.003431231714785099, -0.03334018215537071, -0.048164498060941696, -0.014308272860944271, 0.05248262360692024, -0.09668096899986267, -0.017849165946245193, -0.0739133283495903, -0.015489992685616016, 0.05210321024060249, -0.01251014694571495, 0.014720898121595383, 0.08284581452608109, 0.05795980244874954, 0.06434435397386551, -0.05316780135035515, -0.08627960085868835, 0.05234171450138092, 0.006016750354319811, 0.08853765577077866, 0.05455957353115082, 0.03143308311700821, 0.051018211990594864, -0.05771171301603317, 0.018982835114002228, 0.0845193862915039, 0.020984109491109848, -0.041453827172517776, 0.052121665328741074, 0.03906941041350365, -0.027874384075403214, -0.060122936964035034, 0.038371454924345016, -0.06664948910474777, -0.007933199405670166, -0.05353039130568504, -0.01880475878715515, -0.07891920953989029, 0.006663284730166197, 0.04233256354928017, 0.11019573360681534, -0.020176947116851807, -0.01576707884669304, -0.02419845573604107, -0.010668663308024406, 0.05129019170999527, 0.04799768328666687, 0.058114390820264816, 0.033180661499500275, -0.08228551596403122, -0.00011280303442617878, -0.05039014667272568, 0.010518157854676247, 0.06184154748916626, -0.015629567205905914, 0.031223203986883163, 0.06109924986958504, -0.01966998167335987, -0.005949636921286583, -0.044312410056591034, 0.020911525934934616, -0.016542868688702583, 0.018734725192189217, 0.02404220588505268, -0.03650815784931183, -0.002833518898114562, 0.028345514088869095, -0.017118897289037704, -0.07030066847801208, 0.048794977366924286, -0.0901523157954216, 0.07290523499250412, 0.03756034001708031, -0.028351787477731705, 0.03606554493308067, 0.05252979323267937, 0.015851467847824097, -0.03144806995987892, -0.031867824494838715, -0.01635775901377201, 0.008506045676767826, 0.009066721424460411, -0.02185991406440735, -0.03062894195318222, -0.05412163957953453, -0.06550412625074387, 0.006482610944658518, -0.014569254592061043, 0.011428306810557842, 0.01675797626376152, 0.009746851399540901, -0.023003187030553818, -0.014980052597820759, 0.003280946519225836, -0.019379088655114174, 0.007357277907431126, 0.023737013339996338, -0.023961948230862617, 0.01840529590845108, -0.013323628343641758, 0.012933500111103058, -0.01876956596970558, 0.003089538076892495, 0.04036214202642441, 0.04488470032811165, -0.005517525132745504, 0.049218617379665375, -0.01721341162919998, -0.06104766204953194, -0.024661356583237648, 0.004301779437810183, 0.03322570025920868, 0.007749013602733612, 0.04067106544971466, -0.019905271008610725, 0.02168797329068184, -0.013078308664262295, 0.0427696630358696, -0.012569600716233253, 0.014632036909461021, 0.03632818162441254, -0.0038895958568900824, 0.023622587323188782, 0.005576792173087597, 0.014558748342096806, 0.0074015953578054905, -0.0005370058352127671, 0.046598006039857864, -0.09764780849218369, -0.0542706735432148, -0.03191661089658737, -0.010542540811002254, 0.009896176867187023, -0.004156183451414108, 0.016600150614976883, -0.02273593842983246, 0.005890390370041132, 0.011972739361226559, -0.02770315669476986, 0.029210872948169708, -0.015276671387255192, 0.021706772968173027, -0.029011856764554977, 0.0038284731563180685, 0.007188999094069004, 0.02497970312833786, 0.027657249942421913, 0.011488339863717556, -0.036661356687545776, 0.05033658817410469, -0.0017786192474886775, 0.021090468391776085, 0.024230321869254112, 0.018586957827210426, 0.075423963367939, -0.004541914910078049, 0.0034952894784510136, -0.06332112848758698, 0.024705074727535248, -0.027954617515206337, -0.022458311170339584, 0.0287636611610651, -0.03343256562948227, -0.0034644913394004107, -0.021283825859427452, 0.049655914306640625, 0.06094934046268463, 0.03736298158764839, 0.0029572707135230303, -0.0025867640506476164, 0.010683356784284115, -0.010267802514135838, -0.036086346954107285, 0.029223211109638214, -0.028421657159924507, 0.013552119955420494, -0.012890616431832314, -0.03240790218114853, -0.045171041041612625, -0.02034507319331169, -0.004091390408575535, 0.05549672618508339, 0.028820034116506577, 0.027143701910972595, -0.017422789707779884, 0.06574977934360504, 0.026474207639694214, -0.03431849554181099, -0.043250493705272675, -0.003913369495421648, -0.012906178832054138, -0.031222235411405563, -0.04522446170449257, 0.02545241080224514, 0.011313819326460361, 0.027758842334151268, 0.032302938401699066, 0.04281855747103691, -0.008923524059355259, -0.009507188573479652, 0.004920975770801306, 0.016084084287285805, 0.023501142859458923, -0.02569708786904812, -0.030368193984031677, -0.05228385701775551, 0.04384094849228859, -0.014111229218542576, 0.002085892716422677, -0.013312418013811111, -0.0209671538323164, -0.020970860496163368, -0.01683640480041504, 0.017662566155195236, 0.03500569611787796, -0.05953267589211464, 0.018779845908284187, 0.047330331057310104, -0.013210072182118893, -0.04406830295920372, 0.061557184904813766, -0.023038426414132118, -0.0006116511067375541, -0.004078598693013191, 0.019945748150348663, -0.002561836736276746, -0.026387058198451996, 0.010990040376782417, 0.03600795567035675, -0.041813068091869354, -0.008076616562902927, 0.012042712420225143, 0.012779474258422852, 0.02292991243302822, -0.03428125008940697, -0.021370744332671165, 0.01128872949630022, -0.005642736330628395, -0.021898111328482628, -0.023334555327892303, 0.02372974343597889, -0.018172157928347588, 0.014869466423988342, 0.01902962103486061, -0.015134712681174278, -0.009830297902226448, -0.01365671120584011, 0.037721339613199234, -0.06207455322146416, -0.001655127969570458, 0.005067815072834492, 0.0028334306553006172, 0.005451068747788668, -0.039289940148591995, 0.02022133208811283, 0.00011646806524368003, 0.0018159206956624985, -0.03152092918753624, 0.00661487877368927, 0.010685386136174202, 0.015526042319834232, 0.08196575194597244, 0.02320736274123192, 0.0224504005163908, -0.04146678000688553, 0.04935790225863457, -0.0010039146291092038, -0.050014227628707886, -0.01716635748744011, 0.0035294382832944393, 0.01773110404610634, -0.012371175922453403, 0.03769361227750778, 0.007568581961095333, -0.008715823292732239, -0.0062940591014921665, 0.057477209717035294, 0.04367324337363243, 0.01996355876326561, 0.03584107756614685, -0.043343495577573776, -0.05197243019938469, -0.00635419599711895, -0.03689219430088997, -0.0503946915268898, -0.0017555727390572429, 0.012468820437788963, 0.04017796739935875, 0.011813567951321602, -0.02330479398369789, -0.016839323565363884, 0.04597883298993111, 0.018549064174294472, 0.02175460197031498, -0.017820458859205246, -0.021396145224571228, -0.009318441152572632, -0.0008239441085606813, -0.0076998258009552956, -0.03567616641521454, 0.011623470112681389, -0.0466470792889595, 0.022264357656240463, 0.0012053768150508404, 0.06864331662654877, 0.03731407970190048, -0.015603753738105297, -0.02215024270117283, -0.033591609448194504, 0.00938008539378643, 0.025401119142770767, -0.02254880778491497, 0.0011391465086489916, -0.0005566145409829915, 0.014480570331215858, 0.03400202840566635, 0.03215121477842331, 0.004850376397371292, 0.047130607068538666, 0.021496912464499474, 0.028014320880174637, -0.012883464805781841, -0.0020719075109809637, 0.03380110114812851, -0.008260853588581085, 0.041171420365571976, -0.003464111592620611, 0.018521485850214958, 0.06393781304359436, 0.06025271117687225, 0.012309586629271507, 0.01176799088716507, 0.04658902809023857, -0.022435473278164864, -0.009885099716484547, -0.0037643122486770153, 0.034633271396160126, -0.02837195433676243, -0.013785358518362045, -0.03568851202726364, -0.003622557735070586, 0.004586684517562389, 0.04079718887805939, -0.05784100666642189, -0.02056718058884144, 0.008005263283848763, -0.008036406710743904, 0.055991146713495255, -0.005176596809178591, -0.0011224716436117887, -0.029840800911188126, 0.022599998861551285, 0.019050510600209236, -0.01912243850529194, 0.04563300311565399, 0.058802682906389236, -0.007368423044681549, 0.029170256108045578, 0.042715854942798615, -0.013243076391518116, 0.003332223277539015, 0.014115413650870323, 0.0037198802456259727, 0.025814490392804146, -0.09421282261610031, 0.024577513337135315, 0.025769449770450592, -0.005625956226140261, 0.01866690069437027, -0.01180247962474823, -0.015876172110438347, 0.02508891373872757, -0.02132284641265869, -0.0014606675831601024, 0.01623552292585373, -0.027936341241002083, -0.005748351104557514, 0.030893437564373016, 0.024148548021912575, -0.02211584895849228, -0.030414896085858345, -0.005172748118638992, 0.007843024097383022, 0.010068177245557308, -0.0077881948091089725, 0.02797672711312771, -0.01479988731443882, -0.03573203086853027, 0.03615958243608475, -0.008100646547973156, -0.03590836003422737, 0.007751920726150274, 0.008592739701271057, 0.03331926837563515, 0.015503921546041965, -0.0010615779319778085, -0.0011381999356672168, 0.01928381249308586, 0.03349578380584717, 0.004914936609566212, 0.000004322250333643751, 0.012552399188280106, -0.006882392335683107, -0.04179318994283676, 0.028315633535385132, 0.06717664748430252, 0.008328879252076149, 0.050830598920583725, -0.006530324462801218, 0.05538596957921982, -0.001942864153534174, 0.009003182873129845, -0.03769608214497566, -0.011668198741972446, 0.0800505131483078, -0.004104484338313341, 0.004659363068640232, 0.04236849024891853, -0.007946663536131382, -0.03417825326323509, -0.015108723193407059, -0.008317449130117893, -0.01264607347548008, 0.024160072207450867, -0.033844903111457825, -0.014437520876526833, 0.013577921316027641, -0.036458712071180344, 0.039405178278684616, 0.023735009133815765, 0.0013551190495491028, 0.0025723795406520367, 0.01115929801017046, 0.026852257549762726, 0.018463827669620514, 0.035479191690683365, -0.0034509694669395685, -0.025116823613643646, 0.01477585919201374, 0.02459809184074402, 0.0030618561431765556, -0.00913350097835064, -0.006338335108011961, -0.001106059062294662, 0.007678702007979155, 0.0018242064397782087, -0.022321416065096855, 0.0159969050437212, -0.024803245440125465, -0.030331822112202644, -0.05632157623767853, -0.00010165857383981347, 0.014604904688894749, -0.047661200165748596, -0.00569551857188344, -0.011055435054004192, 0.04097674414515495, -0.03126994147896767, -0.014689348638057709, -0.00817633606493473, 0.04601442068815231, -0.038102831691503525, -0.03158797323703766, 0.013777298852801323, 0.020534902811050415, -0.002886710222810507, -0.02441483736038208, 0.003924512304365635, -0.031601641327142715, 0.006162285339087248, -0.01883968524634838, 0.00794548075646162, -0.0010152069153264165, 0.05103569105267525, 0.014363945461809635, 0.029522649943828583, -0.04401613771915436, 0.014351156540215015, 0.010192709043622017, -0.0028527516406029463, -0.007928852923214436, -0.019696027040481567, -0.03046705201268196, -0.044426001608371735, -0.019840585067868233, -0.019478406757116318, 0.020111646503210068, -0.034637607634067535, 0.03146810829639435, 0.03816352039575577, 0.026918239891529083, -0.05256318300962448, -0.04890484735369682, -0.013639437966048717, -0.02874556928873062, -0.013714433647692204, 0.033362582325935364, 0.010136891156435013, -0.005763242952525616, 0.001963499467819929, -0.03985483571887016, -0.03814778849482536, -0.04868216812610626, 0.021668290719389915, 0.0135768111795187, 0.045179154723882675, -0.030175119638442993, 0.0036483623553067446, 0.028333371505141258, 0.044768787920475006, 0.019185421988368034, 0.010043364949524403, -0.015468106605112553, -0.015943946316838264, -0.01240629330277443, -0.005116329062730074, -0.026551561430096626, 0.043733056634664536, -0.038446664810180664, -0.03410184383392334, -0.059538424015045166, -0.011764422059059143, -0.010077272541821003, 0.016655322164297104, -0.0017594185192137957, 0.02660176530480385, -0.01896139420568943, 0.013039052486419678, -0.00919938925653696, 0.053007036447525024, 0.050932690501213074, -0.03008325956761837, 0.0466683991253376, -0.04745297133922577, -0.0034847951028496027, -0.016383329406380653, -0.004950662609189749, 0.0047228289768099785, -0.03853101283311844, 0.022692648693919182, -0.0038091749884188175, -0.00975587498396635, 0.020110221579670906, -0.021668458357453346, -0.08021674305200577, -0.039733391255140305, 0.018189258873462677, -0.042165279388427734, -0.019511042162775993, 0.031147941946983337, 0.010434882715344429, 0.0032143823336809874, 0.059610314667224884, 0.02468903735280037, -0.03164972737431526, 0.0028112411964684725, 0.026240289211273193, -0.0678057074546814, 0.03331030160188675, -0.06544190645217896, 0.020926175639033318, 0.0502915158867836, 0.025098824873566628, -0.0007800781750120223, 0.035112570971250534, -0.01654304936528206, 0.03411203995347023, -0.009287201799452305, -0.01819651387631893, -0.02651805803179741, 0.0013675701338797808, 0.011368301697075367, -0.018875421956181526, 0.03345761448144913, 0.02345149777829647, -0.02946939691901207, -0.0021676169708371162, 0.010166148655116558, -0.019903048872947693, 0.023581109941005707, 0.025657061487436295, 0.012642287649214268, -0.01543387770652771, 0.027275467291474342, -0.0013196126092225313, 0.0025304921437054873, -0.009846949018537998, 0.031907785683870316 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
What is Falcon-180B? Falcon 180B is a model released by TII that follows previous releases in the Falcon family. Architecture-wise, Falcon 180B is a scaled-up version of Falcon 40B and builds on its innovations such as multiquery attention for improved scalability. We recommend reviewing the initial blog post introducing Falcon to dive into the architecture. Falcon 180B was trained on 3.5 trillion tokens on up to 4096 GPUs simultaneously, using Amazon SageMaker for a total of ~7,000,000 GPU hours. This means Falcon 180B is 2.5 times larger than Llama 2 and was trained with 4x more compute. The dataset for Falcon 180B consists predominantly of web data from RefinedWeb (\~85%). In addition, it has been trained on a mix of curated data such as conversations, technical papers, and a small fraction of code (\~3%). This pretraining dataset is big enough that even 3.5 trillion tokens constitute less than an epoch. The released chat model is fine-tuned on chat and instruction datasets with a mix of several large-scale conversational datasets. ‼️ Commercial use: Falcon 180b can be commercially used but under very restrictive conditions, excluding any "hosting use". We recommend to check the license and consult your legal team if you are interested in using it for commercial purposes.
[ -0.022076701745390892, -0.014439289458096027, -0.0013441510964185, 0.0028322504367679358, 0.04187288135290146, -0.007476008031517267, -0.015252042561769485, 0.10292738676071167, -0.03099883906543255, -0.05659186840057373, -0.06621138006448746, 0.061723269522190094, -0.038450274616479874, 0.036631595343351364, 0.02422860823571682, -0.04095214605331421, -0.004527338780462742, -0.02477029711008072, -0.03357773646712303, -0.008401821367442608, 0.04514484852552414, -0.04001477733254433, -0.030045827850699425, -0.06918482482433319, -0.06117364764213562, 0.03270652890205383, 0.0030786541756242514, 0.017103511840105057, 0.010822431184351444, 0.051009807735681534, -0.04583532363176346, -0.015560737811028957, -0.05217625945806503, -0.03453774377703667, -0.001287680002860725, 0.06788628548383713, -0.10765868425369263, 0.04397488757967949, -0.019480902701616287, -0.07164496183395386, 0.03987463563680649, 0.01612335816025734, -0.02633538469672203, 0.02121293544769287, 0.04726589843630791, -0.009172901511192322, -0.12212055921554565, 0.0415380634367466, 0.03767473250627518, -0.011889087967574596, -0.10889208316802979, 0.05905400961637497, -0.07756244391202927, -0.045658938586711884, 0.11384475231170654, 0.0363374762237072, -0.0780932605266571, -0.054100681096315384, 0.02232016995549202, 0.01730959117412567, 0.029717721045017242, 0.03250570595264435, 0.07028895616531372, 0.07186530530452728, -0.049413569271564484, -0.044488679617643356, 0.02540905959904194, -0.016691304743289948, -0.0770837590098381, 0.037873297929763794, -0.013411043211817741, 0.05884982645511627, -0.05359465256333351, -0.06089352071285248, -0.08413366973400116, -0.08015348017215729, -0.023055551573634148, 0.05020567402243614, 0.04568137601017952, 0.01827138476073742, 0.007677149958908558, 0.06625555455684662, 0.003319336101412773, 0.013305464759469032, -0.05659634992480278, 0.03510063886642456, -0.009099382907152176, -0.06985738128423691, -0.04021230712532997, 0.005480745807290077, -0.045846957713365555, -0.08870001882314682, 0.03396095335483551, -0.005340417847037315, 0.03663698583841324, -0.037538882344961166, -0.03406684100627899, 0.022585632279515266, 0.06658919155597687, -0.026455845683813095, 0.005888925399631262, -0.030585207045078278, 0.022686971351504326, -0.04134233295917511, 0.04288719967007637, 0.0763959065079689, -0.04485137388110161, -0.09940791875123978, -0.030785255134105682, 0.010967044159770012, 0.026501910760998726, -0.01808757148683071, -0.05676300823688507, 0.022284725680947304, -0.10072273015975952, 0.058322034776210785, -0.009785976260900497, 0.02701607719063759, -0.017957143485546112, -0.0327751450240612, 0.060330599546432495, 0.0848977267742157, 0.011543390341103077, -0.04706243798136711, 0.018323730677366257, 0.0524296797811985, 0.05492949113249779, 0.017787067219614983, -0.0024030336644500494, -0.035102080553770065, 0.029299728572368622, -0.054779984056949615, 0.018179867416620255, -0.00632459344342351, 0.007880328223109245, -0.022725367918610573, -0.0291718952357769, -0.059735581278800964, 0.06187117099761963, -0.012071517296135426, -0.020545220002532005, 0.014052494429051876, 0.05138223618268967, -0.05608638748526573, 0.0069886865094304085, 0.021577345207333565, -0.01550440862774849, -0.014263760298490524, -0.03023623488843441, -0.07957804203033447, -0.1308930367231369, 0.04419933632016182, -0.0722903162240982, -0.06961154192686081, 0.07563705742359161, 0.027897831052541733, 0.0025694677606225014, -0.04739933833479881, -0.03707757219672203, -0.01868925429880619, 0.020962897688150406, -0.030196892097592354, -0.03837495297193527, -0.0014400670770555735, 0.037331968545913696, -0.007040802855044603, -0.020243525505065918, 0.038384806364774704, -0.017685111612081528, -0.02124759368598461, 0.02523001655936241, -0.02082163281738758, 0.07946384698152542, 0.01851239986717701, -0.035623546689748764, 0.07549304515123367, 0.07459308207035065, 0.0024821360129863024, 0.04024583473801613, 0.05646233260631561, -0.03292576223611832, -0.08791741728782654, 0.007033361122012138, 0.05867672711610794, -0.018435899168252945, -0.03898642957210541, 0.03001103363931179, -0.0006892703822813928, -0.014018084853887558, 0.05047734081745148, -0.020877564325928688, 0.047218307852745056, 0.014583754353225231, 0.0706859827041626, 0.06052348390221596, -0.0727459192276001, 0.011505049653351307, 0.0322287380695343, 0.08227692544460297, 0.034449633210897446, -0.01909092254936695, -0.0013250302290543914, 0.034131452441215515, -0.06696648895740509, -0.03228223696351051, -0.004117100965231657, 0.09080994874238968, -0.005664311349391937, -0.003133937017992139, -0.024306626990437508, 0.0069494545459747314, -0.13256849348545074, -0.007123768795281649, -0.057295627892017365, 0.020179135724902153, -0.07662324607372284, -0.009587490931153297, -0.02498510852456093, 0.06561978906393051, -0.07129470258951187, 0.1121952012181282, -0.04639159515500069, 0.01726372353732586, -0.0906013771891594, 0.022190002724528313, -0.0069594113156199455, 0.030135182663798332, -0.04944013059139252, 0.005026803817600012, -0.04215480387210846, -0.004233445040881634, 0.00544314831495285, -0.023863261565566063, 0.006683858577162027, 0.02232830971479416, -0.014719086699187756, -0.011183365248143673, -0.02011384628713131, 0.07959039509296417, -0.00627924082800746, 0.017254959791898727, 0.0744401291012764, 0.012879587709903717, 0.04312795028090477, -0.002366460859775543, -0.0213067214936018, 0.005520503968000412, 0.0157181229442358, -0.018575480207800865, 0.021609580144286156, -0.04042116552591324, 0.042818453162908554, 0.017704909667372704, 0.002759231487289071, -0.049040794372558594, 0.055124346166849136, 0.007542093750089407, -0.04878639802336693, -0.001661524991504848, -0.008083897642791271, 0.028429962694644928, 0.015486755408346653, -0.01216607540845871, -0.016966193914413452, 0.034732963889837265, -0.01559538021683693, -0.000806786643806845, -0.02443659119307995, 0.005353166256099939, -0.030487768352031708, 0.027320370078086853, -0.051684245467185974, 0.008949538692831993, 0.01765250787138939, -0.005054985638707876, 0.017242738977074623, 0.028568483889102936, -0.014788414351642132, -0.04636482521891594, -0.029348894953727722, 0.02231472358107567, -0.026937788352370262, 0.04739104583859444, 0.033494070172309875, 0.013570011593401432, -0.01830947957932949, 0.04453073441982269, 0.03079257160425186, -0.035404134541749954, 0.02258516661822796, 0.031090127304196358, 0.041551362723112106, -0.00615967670455575, 0.01983216591179371, -0.03276344761252403, 0.010596959851682186, 0.00601451750844717, 0.026928309351205826, -0.0043144552037119865, 0.01247494388371706, -0.011175120249390602, -0.014289293438196182, 0.003678628010675311, 0.0399681031703949, 0.03947380185127258, 0.0157081950455904, 0.02118438296020031, 0.04058719426393509, -0.08392372727394104, -0.0035204552114009857, -0.02574855275452137, -0.008868207223713398, -0.00928489863872528, 0.006313334684818983, 0.04394643008708954, -0.039007436484098434, 0.02169124037027359, 0.020889492705464363, 0.011079220101237297, 0.0014526477316394448, 0.05152710899710655, -0.014694132842123508, -0.035529885441064835, 0.028636932373046875, -0.015446864999830723, -0.024646110832691193, 0.035204071551561356, -0.008066586218774319, -0.027757083997130394, -0.025051696226000786, -0.032579392194747925, -0.004888533148914576, -0.023853043094277382, -0.001081907656043768, 0.009299537166953087, -0.03579024225473404, -0.003994998522102833, 0.014445362612605095, 0.0010471796849742532, -0.010333739221096039, 0.00088715017773211, 0.003668437013402581, -0.019793976098299026, 0.001655998290516436, 0.011843572370707989, -0.0001254325470654294, 0.021767761558294296, 0.07829584926366806, 0.020338300615549088, -0.01845853589475155, 0.012100115418434143, -0.026126790791749954, 0.04545603320002556, 0.02575356885790825, -0.0009228122071363032, -0.014512866735458374, 0.029263973236083984, -0.0174495130777359, -0.03449999541044235, -0.008081632666289806, -0.0631667971611023, 0.0434715673327446, 0.020827604457736015, -0.013401110656559467, -0.009569798596203327, 0.027569131925702095, 0.006240898743271828, 0.021782441064715385, -0.010370668023824692, 0.02562772110104561, -0.020390331745147705, 0.040866024792194366, -0.005845831241458654, 0.04333829507231712, 0.0768146961927414, -0.03699880465865135, -0.011064494960010052, 0.037877198308706284, -0.013730524107813835, 0.04452319070696831, 0.0062447767704725266, -0.00731646129861474, 0.024792738258838654, 0.008623245172202587, 0.003925041761249304, -0.00014860813098493963, 0.017707714810967445, 0.06614229083061218, 0.03637383133172989, -0.02557896263897419, -0.036900777369737625, -0.05227458104491234, 0.028141504153609276, -0.0038057416677474976, -0.00035572421620599926, -0.04772782698273659, 0.03277929127216339, -0.01281026378273964, -0.014759581536054611, 0.010760863311588764, 0.06174073368310928, 0.0373498871922493, 0.0047516231425106525, 0.015121440403163433, -0.005711403209716082, 0.005920495837926865, 0.044966816902160645, -0.0043839686550199986, 0.044918693602085114, -0.02979031391441822, -0.023145081475377083, -0.033422183245420456, -0.04785437136888504, -0.019139045849442482, -0.01632792130112648, -0.04815847426652908, 0.005939910188317299, 0.03916126862168312, 0.03229215368628502, -0.019685033708810806, -0.003898210357874632, 0.026505649089813232, -0.016764583066105843, 0.05556070804595947, -0.03649751469492912, 0.007048160769045353, -0.051621031016111374, 0.03871748968958855, 0.007336122915148735, 0.011401951313018799, 0.006351567339152098, -0.023934809491038322, -0.030305709689855576, 0.002248489996418357, 0.02595438063144684, -0.047306668013334274, 0.006673898547887802, -0.04097370803356171, 0.006946743931621313, -0.04397256672382355, -0.03284209966659546, 0.05959377810359001, 0.027018366381525993, -0.006315649952739477, -0.02703346684575081, 0.005454998929053545, 0.02037479728460312, -0.04841683804988861, -0.03770675137639046, 0.041883811354637146, 0.004973473493009806, -0.006323598325252533, -0.020129986107349396, 0.01362857036292553, -0.03401923552155495, 0.003153566736727953, -0.008714057505130768, 0.04530172422528267, 0.018674926832318306, -0.024733062833547592, -0.06137460842728615, 0.050615694373846054, -0.003456531325355172, 0.007542204577475786, 0.004523368552327156, 0.010685492306947708, 0.025511503219604492, 0.030550148338079453, -0.01358513068407774, 0.023134103044867516, -0.01292711216956377, -0.006896891165524721, 0.07843861728906631, -0.026518268510699272, 0.019903305917978287, 0.01724500209093094, -0.034130629152059555, 0.036812495440244675, -0.015871381387114525, 0.021622080355882645, -0.017452387139201164, 0.0138904033228755, -0.010869699530303478, 0.05218535661697388, 0.021585738286376, 0.01911035180091858, 0.012726978398859501, 0.013525797985494137, -0.06179484724998474, -0.003874242538586259, 0.037605635821819305, -0.013740696012973785, 0.009071365930140018, 0.02795664221048355, 0.004337220452725887, 0.06951501220464706, 0.030108211562037468, 0.05869399383664131, 0.00007268178160302341, -0.010168683715164661, 0.027422310784459114, -0.03724052384495735, 0.012119431979954243, 0.0181961078196764, -0.00786580704152584, 0.06236918270587921, 0.013143378309905529, -0.04747677221894264, -0.012202921323478222, -0.009181510657072067, -0.02035944163799286, 0.016979238018393517, 0.031002234667539597, -0.000343272986356169, -0.02247663401067257, -0.002143233548849821, -0.005163533613085747, -0.013346916064620018, -0.026599418371915817, -0.01532378513365984, 0.02172948233783245, -0.022829635068774223, 0.015067978762090206, -0.02671264111995697, -0.0042127505876123905, -0.006877794396132231, 0.017813406884670258, 0.01432507298886776, -0.010605941526591778, -0.03364463523030281, 0.027302507311105728, -0.03736269474029541, 0.01826275698840618, -0.014632799662649632, 0.048060134053230286, 0.014015182852745056, -0.02439034916460514, 0.010843128897249699, 0.026697205379605293, 0.018008466809988022, 0.011028081178665161, 0.016160542145371437, 0.008215357549488544, 0.0007211960619315505, -0.0814586728811264, -0.009095869958400726, 0.03411280736327171, -0.008112046867609024, -0.0025623480323702097, -0.04307971149682999, -0.027087513357400894, -0.010694745928049088, -0.07047577947378159, 0.013011491857469082, 0.020243242383003235, -0.022844165563583374, 0.03432242199778557, -0.04121192917227745, -0.03263835608959198, -0.013821462169289589, 0.04017236456274986, 0.027252033352851868, -0.013174152001738548, -0.01693120039999485, 0.008848249912261963, -0.019195804372429848, -0.029834838584065437, -0.016995538026094437, 0.010578576475381851, 0.010851481929421425, -0.014382367953658104, 0.026759879663586617, -0.017799118533730507, 0.046635184437036514, 0.030601460486650467, -0.022945303469896317, 0.01606830209493637, 0.018187768757343292, 0.021785445511341095, 0.010719732381403446, -0.0012960854219272733, -0.001982838846743107, -0.08828142285346985, -0.03143838047981262, 0.026038585230708122, 0.11359506845474243, 0.005201200023293495, 0.04521328955888748, 0.021947981789708138, 0.024698734283447266, 0.050011198967695236, 0.002124517923220992, -0.02227749489247799, 0.06477726995944977, 0.06841637194156647, 0.0005985473981127143, 0.007096418645232916, 0.02487296238541603, 0.0024031521752476692, 0.02037755399942398, -0.07442573457956314, 0.0017660977318882942, -0.01603146269917488, 0.013239657506346703, 0.02241119183599949, -0.023204762488603592, 0.037043359130620956, -0.03724690154194832, 0.035195834934711456, -0.002438504481688142, 0.004623911343514919, 0.03124341182410717, 0.08490685373544693, -0.029321154579520226, -0.03323103487491608, 0.03252808749675751, 0.022623751312494278, 0.03410433977842331, 0.035666659474372864, -0.020103955641388893, 0.047209884971380234, 0.06634967774152756, -0.0056322552263736725, 0.035495322197675705, -0.027532659471035004, 0.012784033082425594, 0.024174164980649948, 0.009447122924029827, -0.008077996782958508, 0.013238930143415928, 0.015313471667468548, -0.01353600062429905, -0.019283395260572433, 0.022372538223862648, 0.007420698180794716, -0.00947605725377798, -0.02100887894630432, -0.005367344245314598, 0.004347669892013073, 0.02275131270289421, 0.04369848221540451, -0.021003419533371925, -0.05357512831687927, -0.027052003890275955, -0.014751576818525791, -0.005413698963820934, -0.06164121255278587, -0.030998438596725464, 0.0193988848477602, 0.009255975484848022, 0.010613755322992802, 0.034708257764577866, -0.014645073562860489, 0.01867040991783142, 0.02316434495151043, 0.006066740956157446, -0.0049942610785365105, 0.01029954943805933, -0.01089382916688919, 0.03193617984652519, 0.004972551017999649, -0.04188806936144829, 0.03816145285964012, -0.05712421238422394, -0.03785489872097969, -0.019945526495575905, -0.0076689571142196655, -0.017588619142770767, 0.025492871180176735, 0.037132732570171356, 0.09947521984577179, -0.010220784693956375, -0.06396296620368958, -0.016631655395030975, -0.050505612045526505, -0.0010739474091678858, 0.01506004948168993, 0.006350033916532993, 0.026487678289413452, -0.024364864453673363, -0.008748823776841164, 0.024891629815101624, -0.015023668296635151, -0.017504358664155006, 0.052004650235176086, 0.019248278811573982, -0.037689704447984695, -0.03890882059931755, 0.024617904797196388, 0.04347817599773407, 0.05161435157060623, 0.006164219230413437, 0.02685677260160446, 0.005882520228624344, 0.00316346506588161, 0.0313870906829834, -0.01887316256761551, 0.002518633846193552, -0.027891986072063446, -0.036816783249378204, 0.014242039062082767, -0.004421145189553499, 0.0020569567568600178, 0.004302511923015118, -0.014379486441612244, -0.04668927192687988, -0.06204211711883545, 0.017974024638533592, 0.00992062222212553, -0.01172298938035965, 0.031055008992552757, 0.011248567141592503, 0.02764786034822464, -0.040327657014131546, 0.015393664129078388, 0.017750512808561325, 0.003751196898519993, -0.016963807865977287, 0.02798406034708023, -0.005347278900444508, 0.006338201928883791, 0.0022396943531930447, 0.004632063675671816, 0.011625888757407665, -0.06418692320585251, 0.03942669555544853, 0.021029306575655937, 0.01800747588276863, -0.04145234078168869, 0.03654918819665909, 0.02157021313905716, 0.019392751157283783, 0.007355506531894207, -0.027648139744997025, 0.005185757763683796, -0.025347471237182617, -0.02807404100894928, -0.0333489328622818, 0.025327611714601517, -0.016767002642154694, 0.020040694624185562, -0.011491655372083187, -0.017760559916496277, -0.02012445777654648, 0.03411871939897537, 0.022780073806643486, 0.006491990759968758, 0.003789067966863513, -0.03702303767204285, 0.004336364567279816, 0.01016507763415575, -0.023026345297694206, -0.0112219899892807, -0.03620080277323723, 0.02584364078938961, 0.03504426032304764, 0.015534581616520882, -0.0022878944873809814, -0.017569497227668762, 0.03432369977235794, -0.009322217665612698, 0.010314174927771091, 0.029339395463466644, -0.014914070256054401, 0.00794283114373684, 0.012691514566540718, 0.015137074515223503, 0.01699233241379261 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Acknowledgments Releasing such a model with support and evaluations in the ecosystem would not be possible without the contributions of many community members, including Clémentine and Eleuther Evaluation Harness for LLM evaluations; Loubna and BigCode for code evaluations; Nicolas for Inference support; Lysandre, Matt, Daniel, Amy, Joao, and Arthur for integrating Falcon into transformers. Thanks to Baptiste and Patrick for the open-source demo. Thanks to Thom, Lewis, TheBloke, Nouamane, Tim Dettmers for multiple contributions enabling this to get out. Finally, thanks to the HF Cluster for enabling running LLM evaluations as well as providing inference for a free, open-source demo of the model.
[ 0.02819906175136566, -0.060686253011226654, 0.056841444224119186, -0.0061462391167879105, 0.09762068092823029, 0.03612801805138588, -0.011546865105628967, 0.07137633115053177, -0.0006933188997209072, -0.04306861385703087, -0.062476012855768204, 0.041581857949495316, -0.04322049766778946, 0.03144945204257965, 0.015191341750323772, 0.015696782618761063, 0.014021964743733406, 0.01282444130629301, 0.038961876183748245, 0.013255655765533447, 0.016410954296588898, -0.06867971271276474, 0.015193129889667034, -0.017465660348534584, -0.011042870581150055, -0.06576921790838242, 0.029901981353759766, 0.05387437716126442, -0.07582378387451172, 0.08585992455482483, 0.015452262945473194, 0.012086895294487476, -0.03019881807267666, -0.03444237634539604, -0.03990644961595535, 0.008488264866173267, -0.15460634231567383, 0.028473617509007454, -0.007178724277764559, -0.024184945970773697, 0.112408846616745, -0.029417341575026512, -0.05536648631095886, 0.020442817360162735, 0.004534924868494272, -0.026912590488791466, -0.1715853214263916, 0.07774052768945694, 0.0087481290102005, 0.022687794640660286, -0.0878390222787857, 0.015211825259029865, -0.028035787865519524, -0.02617531828582287, 0.0540563203394413, -0.01847218908369541, -0.0343259796500206, -0.09766478091478348, 0.10399570316076279, 0.03287366405129433, -0.012169909663498402, -0.029114320874214172, 0.011904468759894371, -0.004764399025589228, 0.04329121857881546, 0.00575410109013319, 0.014077800326049328, -0.006516640540212393, -0.039175115525722504, 0.028555043041706085, -0.012453801929950714, -0.017196400091052055, -0.060025654733181, -0.01078767329454422, -0.011042042635381222, -0.07964169979095459, 0.013550790026783943, 0.08865062892436981, 0.11193930357694626, 0.04113202542066574, 0.01838183030486107, 0.011920832097530365, 0.04599158465862274, 0.023870131000876427, -0.015141457319259644, 0.023558538407087326, 0.04079775884747505, -0.06084055081009865, -0.04094848409295082, -0.023087263107299805, -0.06820540875196457, -0.13009808957576752, -0.030754083767533302, 0.0525338388979435, 0.06427997350692749, -0.013421611860394478, 0.03661687299609184, 0.06287539750337601, -0.017240390181541443, 0.009547065943479538, 0.0031206244602799416, 0.039376672357320786, -0.030658870935440063, -0.03475238010287285, 0.016872916370630264, 0.02135869860649109, -0.04120684787631035, -0.07639026641845703, -0.05221036076545715, 0.04078226909041405, 0.025320598855614662, 0.028979452326893806, 0.029335156083106995, 0.02991923876106739, -0.08286340534687042, 0.032175201922655106, -0.0051047541201114655, -0.01770426705479622, 0.04907403513789177, 0.025598585605621338, -0.021315382793545723, 0.06022939085960388, 0.011790299788117409, 0.03390779718756676, 0.03168043866753578, 0.07455404847860336, -0.0009232743177562952, -0.004096690099686384, -0.04927690327167511, -0.027401454746723175, 0.029759250581264496, -0.06397829949855804, 0.015103462152183056, -0.025933533906936646, -0.02078869566321373, -0.03264220431447029, -0.03184374049305916, -0.03322896733880043, 0.00969729758799076, 0.014328974299132824, -0.05477286875247955, 0.044849805533885956, -0.021408652886748314, -0.03858528658747673, 0.05706378445029259, 0.013432352803647518, -0.05447209253907204, 0.0787527784705162, -0.016720112413167953, 0.018038025125861168, 0.003533144248649478, 0.07412126660346985, -0.04335283488035202, -0.06913846731185913, 0.022735323756933212, 0.03668060898780823, 0.052630215883255005, -0.0019269913900643587, -0.09860839694738388, 0.02358981780707836, -0.015116451308131218, -0.011883999221026897, -0.07330156117677689, -0.0076302820816636086, 0.032631829380989075, -0.02381274476647377, 0.001504303072579205, -0.04308874160051346, -0.016140636056661606, 0.0007381739560514688, 0.02651706524193287, 0.0018448821501806378, 0.08343767374753952, -0.04136398062109947, -0.06154852360486984, 0.028254803270101547, 0.07293801009654999, 0.02949284389615059, 0.08016868680715561, 0.060827016830444336, -0.08506029099225998, 0.04009187966585159, 0.015071798115968704, -0.005843711085617542, 0.015599429607391357, -0.051485102623701096, 0.041013676673173904, -0.03084391914308071, -0.0442405603826046, 0.017722493037581444, -0.08387117087841034, -0.034576788544654846, 0.11626138538122177, -0.0037437439896166325, 0.021886173635721207, -0.03806861862540245, -0.04736963286995888, 0.11794979870319366, 0.0355181060731411, 0.07876893877983093, 0.07610765099525452, 0.06563538312911987, 0.05858109891414642, -0.02167229726910591, -0.019902760162949562, 0.011845008470118046, 0.03280537202954292, 0.004095447715371847, 0.015636926516890526, 0.030095817521214485, 0.024361947551369667, -0.073616623878479, 0.008906728588044643, -0.07820530980825424, -0.006208477541804314, -0.07264003157615662, -0.051028020679950714, 0.03549645096063614, 0.025131018832325935, -0.05075613036751747, 0.10687582939863205, -0.030900048092007637, -0.030649498105049133, -0.09161895513534546, -0.022648153826594353, 0.030128855258226395, 0.06197936832904816, -0.00041240177233703434, 0.022810261696577072, -0.04704366624355316, 0.015117580071091652, -0.03383586183190346, -0.02741999179124832, 0.031128523871302605, -0.01355552114546299, 0.0024620185140520334, -0.03705817833542824, -0.02193608321249485, 0.023109707981348038, -0.01946427673101425, -0.0006240920629352331, 0.053497277200222015, -0.015508320182561874, 0.053282998502254486, -0.050096821039915085, -0.05524032935500145, 0.038846150040626526, 0.04273397848010063, 0.002371078124269843, 0.01962166279554367, -0.048645202070474625, 0.06482524424791336, 0.051622338593006134, -0.05615943297743797, 0.05045703798532486, -0.027381956577301025, 0.004044866189360619, -0.012985365465283394, -0.021294884383678436, -0.02132519520819187, 0.007340220734477043, -0.013224220834672451, -0.021193966269493103, -0.047038719058036804, -0.009481245651841164, -0.010438731871545315, 0.01054388377815485, 0.030032355338335037, 0.006256288383156061, 0.012337605468928814, -0.019095297902822495, -0.03793058171868324, 0.055977463722229004, 0.014341644942760468, 0.012733672745525837, 0.02370837703347206, 0.06183868274092674, 0.005196799524128437, -0.006985147017985582, -0.05552506819367409, 0.0048088752664625645, -0.03332287073135376, 0.022879663854837418, -0.022793931886553764, 0.025033652782440186, -0.02121785841882229, -0.02268196828663349, -0.041907668113708496, 0.03273541480302811, 0.022109854966402054, -0.010792081244289875, 0.014726758003234863, 0.006472333334386349, -0.02532116509974003, -0.01650061272084713, 0.008416254073381424, 0.015131407417356968, 0.015825999900698662, -0.03577912971377373, -0.0068715824745595455, 0.013957454822957516, -0.0003029070794582367, 0.025434482842683792, 0.044869713485240936, -0.007563155610114336, 0.034442510455846786, 0.010570913553237915, 0.028544988483190536, -0.10770203173160553, -0.008183734491467476, 0.006561688147485256, 0.01968434453010559, 0.005154040642082691, 0.0070123872719705105, 0.04940075799822807, -0.02933509275317192, -0.0019470122642815113, 0.008522921241819859, 0.030186865478754044, 0.001734828227199614, 0.047640737146139145, -0.03374944254755974, 0.002018136437982321, -0.032376907765865326, -0.0025190417654812336, 0.013726310804486275, 0.037739966064691544, 0.01893453113734722, -0.010375945828855038, 0.030992655083537102, -0.03818339481949806, -0.04457017779350281, -0.01519178505986929, 0.0007324948674067855, 0.01854870282113552, -0.0050865598022937775, 0.015285220928490162, -0.042349547147750854, 0.004160990938544273, -0.01631656289100647, -0.010795765556395054, 0.05473515763878822, -0.031977616250514984, 0.01138842012733221, -0.01897936686873436, -0.00987255945801735, 0.020374586805701256, 0.06996621936559677, 0.030187727883458138, -0.003414612263441086, 0.012958263047039509, -0.02811145968735218, -0.00026839820202440023, 0.00851606298238039, 0.01032978668808937, -0.011870182119309902, 0.049285806715488434, -0.002732898574322462, -0.030153881758451462, 0.003719862550497055, 0.006533175706863403, 0.05573970079421997, 0.02918495237827301, -0.01679137535393238, -0.0030409800820052624, -0.015153225511312485, 0.018640829250216484, 0.013003029860556126, -0.08466935902833939, -0.01474482286721468, -0.009861470200121403, 0.03167857229709625, -0.015545738860964775, 0.08609328418970108, 0.028781598433852196, 0.00916177686303854, -0.031001925468444824, 0.022276999428868294, 0.03461189568042755, 0.049143269658088684, -0.022097129374742508, 0.0010561018716543913, 0.004577086307108402, 0.03898046538233757, -0.011584395542740822, -0.023958859965205193, 0.06801001727581024, -0.012194544076919556, -0.021579384803771973, -0.03163246810436249, -0.044039689004421234, -0.024197913706302643, -0.012772979214787483, 0.023271091282367706, 0.01573636755347252, 0.013652034103870392, -0.009043853729963303, 0.010732850059866905, 0.014775687828660011, -0.020133594051003456, -0.018133053556084633, -0.0004889883566647768, -0.014986972324550152, -0.006745421793311834, 0.04847658798098564, 0.010561353527009487, 0.023708339780569077, -0.001609539263881743, 0.035606540739536285, -0.043812621384859085, -0.008716163225471973, 0.011468705721199512, 0.014182651415467262, 0.0005053487839177251, -0.0364624485373497, -0.043640751391649246, 0.004086875822395086, -0.016572875902056694, 0.029221661388874054, -0.007947211153805256, -0.019318394362926483, 0.007456016726791859, -0.012868898920714855, -0.01899082586169243, -0.020721156150102615, -0.029354574158787727, -0.03274071589112282, 0.029273780062794685, -0.05865113437175751, -0.016678879037499428, 0.015073767863214016, -0.028942491859197617, -0.010992016643285751, -0.024746783077716827, -0.006142735481262207, 0.0010100702056661248, -0.018940463662147522, 0.014497307129204273, -0.024225890636444092, -0.01839650422334671, 0.00235836673527956, 0.0032931328751146793, -0.0018487042980268598, 0.03755468130111694, -0.01864422857761383, 0.038517359644174576, 0.008797219023108482, -0.0029752443078905344, -0.02223724126815796, -0.008915328420698643, 0.01700734905898571, -0.017166253179311752, 0.030897021293640137, -0.03591476008296013, 0.01669727824628353, -0.032300274819135666, -0.0011701645562425256, -0.01476672850549221, 0.04522024840116501, -0.011593639850616455, 0.00027333403704687953, 0.04130177199840546, 0.008599615655839443, 0.007235174532979727, -0.0015151645056903362, 0.03130924329161644, 0.017224522307515144, 0.05966714769601822, 0.01688055507838726, 0.061259932816028595, -0.05684950202703476, 0.019837837666273117, 0.011642048135399818, 0.02445523999631405, -0.022505490109324455, -0.02098582498729229, -0.026863761246204376, 0.02139156125485897, -0.036848876625299454, -0.04890960082411766, -0.0070150867104530334, -0.016479674726724625, -0.027441559359431267, 0.003631436498835683, 0.04806571826338768, 0.017451776191592216, 0.03913680836558342, 0.03942660987377167, -0.018255893141031265, -0.04314538463950157, 0.028206687420606613, -0.04426980018615723, 0.02095320075750351, -0.013792584650218487, 0.05302567034959793, 0.020640097558498383, 0.010477105155587196, -0.014251637272536755, -0.047587741166353226, -0.02999272756278515, -0.03589870408177376, -0.013734920881688595, -0.003982339985668659, -0.020758669823408127, -0.005570353474467993, -0.002837724983692169, -0.030018849298357964, 0.004031045828014612, -0.006829807534813881, 0.058613523840904236, -0.03714397922158241, 0.0164809413254261, 0.03240164369344711, -0.02603818289935589, -0.0032713536638766527, -0.01886444166302681, 0.030163167044520378, -0.04214892536401749, -0.026125255972146988, -0.021402141079306602, -0.02544773742556572, 0.022627724334597588, 0.02667878568172455, -0.045597270131111145, 0.011601803824305534, 0.025996895506978035, -0.025701915845274925, 0.04853764921426773, -0.0017762979259714484, -0.016708901152014732, 0.03298449516296387, 0.006482406053692102, 0.04187890887260437, -0.02153378166258335, 0.007952803745865822, 0.01944899931550026, 0.002791676204651594, 0.012846291996538639, 0.050549525767564774, 0.0009441269212402403, -0.0068327211774885654, 0.032996781170368195, 0.022296207025647163, 0.019963599741458893, -0.08873052150011063, -0.004450909327715635, 0.033147163689136505, 0.013139463029801846, 0.02142741158604622, -0.025076737627387047, -0.02862905152142048, -0.015851985663175583, -0.054298035800457, 0.03445221483707428, 0.046947114169597626, -0.035600148141384125, -0.014975866302847862, -0.010459771379828453, 0.015511827543377876, 0.025748712942004204, 0.025163749232888222, 0.011637895368039608, 0.00791364535689354, 0.009630531072616577, 0.023711657151579857, 0.003907856997102499, 0.00714968703687191, -0.021430272608995438, 0.01810740865767002, -0.01601477526128292, -0.038345854729413986, 0.0610676147043705, -0.0529671385884285, -0.005986198782920837, -0.004682847764343023, -0.040131110697984695, 0.021830732002854347, -0.012350767850875854, 0.01152093056589365, 0.012953496538102627, 0.03589366748929024, -0.008005311712622643, 0.016384461894631386, -0.025920763611793518, 0.07288269698619843, 0.03771964833140373, 0.04140441492199898, -0.009763222187757492, 0.035058487206697464, 0.030390894040465355, 0.025863397866487503, 0.014292605221271515, 0.0022796965204179287, 0.04858296364545822, 0.06013190373778343, 0.005432351492345333, -0.018756741657853127, 0.00017554064106661826, -0.023916853591799736, -0.007347923703491688, -0.011389495804905891, -0.009822716936469078, -0.06866801530122757, 0.0024498121347278357, -0.023012405261397362, -0.025302909314632416, 0.03950612619519234, -0.03636113181710243, 0.04916508495807648, 0.04608749970793724, 0.013469193130731583, -0.0020854012109339237, 0.00614883890375495, 0.039862412959337234, 0.000027680222046910785, -0.017269451171159744, 0.014100085012614727, 0.028999891132116318, -0.014867927879095078, 0.038263287395238876, -0.028707576915621758, 0.009529141709208488, -0.02687373384833336, 0.006156248971819878, -0.015145429410040379, 0.005027771461755037, 0.042338572442531586, 0.025169966742396355, -0.0025151895824819803, -0.012090113945305347, -0.00911811925470829, -0.005721669178456068, -0.01908567175269127, -0.03142108395695686, 0.0015759243397042155, 0.024686390534043312, -0.03876347839832306, -0.00841778889298439, 0.012857809662818909, 0.018826574087142944, -0.014340815134346485, -0.00038457143818959594, -0.025871871039271355, 0.012640571221709251, 0.017954997718334198, 0.05901632085442543, 0.002833767095580697, 0.004352967720478773, -0.00713488319888711, 0.004566661082208157, 0.003944408148527145, 0.026050040498375893, -0.0006523036281578243, -0.029045116156339645, 0.008729018270969391, 0.0068841599859297276, -0.017077788710594177, 0.029441555961966515, 0.027264542877674103, -0.023638760671019554, -0.024592485278844833, 0.006252966821193695, -0.00843442790210247, 0.001588650862686336, -0.019663289189338684, -0.012887303717434406, -0.024254770949482918, -0.0029595508240163326, 0.02175704389810562, 0.022582408040761948, 0.09466438740491867, -0.019078779965639114, -0.06998325139284134, -0.04790438711643219, 0.008118118159472942, 0.03246954083442688, -0.006409038323909044, -0.015089095570147038, -0.0069959890097379684, -0.028529688715934753, 0.028745969757437706, 0.026730898767709732, -0.013148309662938118, -0.018578825518488884, 0.018539635464549065, -0.01061578281223774, -0.000686105340719223, -0.03266531974077225, 0.04994542524218559, 0.02312329038977623, 0.05638498812913895, 0.06556496769189835, 0.03406338021159172, 0.03512363135814667, -0.021200567483901978, 0.011089809238910675, 0.001262787845917046, 0.031062116846442223, -0.042214613407850266, -0.057492561638355255, -0.002261918503791094, 0.06401250511407852, 0.03005378507077694, 0.014508265070617199, -0.02402927353978157, -0.020338576287031174, -0.034413792192935944, -0.015172694809734821, -0.025007007643580437, -0.04482106491923332, 0.052977804094552994, 0.012177075259387493, 0.011395763605833054, -0.019946785643696785, 0.004424412734806538, 0.0010275458917021751, 0.016794223338365555, 0.02125047892332077, 0.03701155632734299, 0.020800387486815453, -0.039169929921627045, -0.05617322772741318, 0.0031386956106871367, -0.04704362154006958, -0.05899092182517052, -0.007685862015932798, 0.03486599400639534, -0.025494029745459557, -0.0064319116063416, 0.014384676702320576, 0.008567987941205502, 0.005712915677577257, 0.021069485694169998, -0.008266917429864407, -0.01227948721498251, 0.01984928548336029, -0.027945218607783318, -0.046049609780311584, -0.013795333914458752, -0.025823544710874557, -0.008868463337421417, 0.046451959758996964, 0.020053058862686157, 0.01482461579144001, 0.007538708858191967, 0.03720364719629288, -0.011542369611561298, 0.0013415442081168294, -0.039719853550195694, -0.023270897567272186, 0.006894565187394619, -0.03347506746649742, -0.03218180686235428, -0.06352775543928146, 0.021410418674349785, 0.0541560985147953, 0.005752245895564556, -0.008278211578726768, -0.030912937596440315, 0.006602026056498289, 0.019719278439879417, -0.0017400648212060332, 0.025037402287125587, 0.05812700465321541, 0.04046986997127533, -0.020450402051210403, -0.01868577115237713, -0.01882295310497284 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Demo You can easily try the Big Falcon Model (180 billion parameters!) in this Space or in the playground embedded below:
[ 0.01084710843861103, -0.011640750803053379, 0.08701851218938828, 0.022944891825318336, 0.11887884140014648, 0.04330054298043251, 0.02408110536634922, 0.05967702344059944, -0.04061678797006607, -0.08354197442531586, -0.020108221098780632, 0.03560049459338188, -0.02411869540810585, 0.0004063616506755352, 0.026543645188212395, 0.006144159939140081, 0.015675703063607216, -0.03874228522181511, 0.01666388474404812, 0.003800594015046954, -0.003677202621474862, -0.05673618242144585, 0.06490045040845871, -0.02036435529589653, -0.027042819187045097, -0.06406287848949432, -0.015912720933556557, 0.015433401800692081, -0.0206490159034729, 0.07489119470119476, -0.05190271511673927, -0.007036291528493166, 0.015954384580254555, -0.024382930248975754, -0.03499511629343033, 0.009329892694950104, -0.10539188981056213, 0.05234593525528908, -0.021621204912662506, -0.06297401338815689, 0.04894016683101654, -0.013141815550625324, -0.01023838110268116, 0.05508507043123245, 0.004306440241634846, 0.0018111332319676876, -0.23495742678642273, 0.11047273874282837, 0.006849243771284819, -0.030284732580184937, -0.06091079115867615, 0.022391704842448235, -0.01653878018260002, 0.00022821013408247381, 0.05711051821708679, -0.015597589313983917, 0.019516142085194588, -0.062003206461668015, -0.0009871147340163589, -0.03561355546116829, 0.06484746187925339, 0.00502530112862587, 0.024836286902427673, 0.012109462171792984, 0.02382042445242405, 0.03777076303958893, -0.0018715646583586931, 0.05213212966918945, -0.038032934069633484, -0.006031421944499016, 0.02331032045185566, -0.02424277924001217, -0.03736070543527603, -0.0056461431086063385, -0.015036479569971561, -0.09114453196525574, -0.02561916597187519, 0.05269007384777069, 0.06593940407037735, 0.06289027631282806, 0.014368964359164238, -0.003154181409627199, 0.08086588233709335, 0.02473018877208233, -0.023931603878736496, -0.025298483669757843, 0.04708147048950195, -0.03095139004290104, -0.014952069148421288, 0.0035041342489421368, -0.05911813676357269, -0.12957575917243958, 0.019226636737585068, 0.03714082017540932, 0.022239046171307564, -0.020263364538550377, 0.0084270890802145, 0.009568676352500916, 0.061165548861026764, 0.00365279009565711, -0.03642352670431137, 0.02400342933833599, -0.008580065332353115, -0.05271276831626892, -0.0131909204646945, 0.02591937780380249, -0.026263965293765068, -0.0901905745267868, -0.06491783261299133, 0.023633236065506935, -0.058989267796278, 0.05242612585425377, 0.018477052450180054, 0.003943850751966238, -0.06952939927577972, 0.03521256148815155, -0.013176880776882172, 0.015229202806949615, 0.02068333327770233, -0.006087291985750198, -0.036563269793987274, 0.10890019685029984, 0.04250781238079071, -0.005969256162643433, 0.020277539268136024, 0.047298844903707504, 0.03855389729142189, 0.0296259056776762, -0.07757323235273361, -0.021115778014063835, 0.026052122935652733, -0.02983926050364971, 0.04282316938042641, -0.019789906218647957, -0.036185864359140396, -0.07840567827224731, -0.03512268140912056, 0.01002050843089819, -0.007144967559725046, -0.0046601551584899426, -0.009133913554251194, 0.03491230309009552, 0.0020977428648620844, 0.03440334275364876, 0.07751978188753128, -0.03285809978842735, -0.005168254021555185, 0.03127622976899147, -0.02118813432753086, -0.015191554091870785, -0.018293019384145737, 0.07746326923370361, -0.02008373662829399, -0.04255089908838272, 0.01267855055630207, 0.057798832654953, 0.007980202324688435, -0.01578041911125183, -0.09571591764688492, 0.007726938463747501, 0.09180175513029099, 0.015325426124036312, -0.023015741258859634, 0.009386374615132809, 0.04022527486085892, 0.006081240717321634, 0.0555729866027832, -0.000043241270759608597, -0.05863020941615105, -0.08205141872167587, -0.028747685253620148, 0.028632381930947304, 0.07206210494041443, -0.014011341147124767, -0.10711994767189026, 0.03532298281788826, 0.05125190690159798, 0.010710147209465504, 0.04640910029411316, 0.04039682820439339, -0.03801509365439415, 0.007937670685350895, 0.02527272142469883, 0.03815064579248428, 0.013767026364803314, -0.06082174926996231, 0.0562618225812912, 0.025706566870212555, -0.038620688021183014, 0.0241559948772192, -0.08755060285329819, -0.02958340384066105, 0.15132655203342438, 0.04400469735264778, 0.002100009238347411, -0.09783446043729782, -0.009482729248702526, 0.06603019684553146, 0.07456562668085098, 0.087521493434906, 0.02087385393679142, 0.05124787986278534, 0.08180037140846252, -0.05518800765275955, -0.05347563326358795, 0.006066536530852318, 0.03309401124715805, -0.0286394115537405, 0.0165353175252676, -0.0107021639123559, -0.024606244638562202, -0.0941535085439682, 0.02031407319009304, -0.11948347091674805, -0.012990657240152359, -0.023776205256581306, -0.03229350224137306, -0.014878605492413044, 0.016373278573155403, -0.03888668119907379, 0.12441359460353851, 0.013850937597453594, -0.04957627132534981, -0.02841372787952423, -0.013818045146763325, 0.0771152526140213, 0.07646451145410538, -0.024747604504227638, 0.02329123578965664, -0.07260463386774063, -0.018290651962161064, -0.0011566386092454195, 0.0018743573455139995, 0.062090132385492325, -0.009875599294900894, 0.027472445741295815, 0.0018810061737895012, -0.04172191768884659, 0.0630112737417221, -0.04972141981124878, -0.012007683515548706, 0.03362707421183586, -0.026736784726381302, 0.06039590388536453, -0.060548990964889526, -0.07534715533256531, 0.049207430332899094, 0.049838948994874954, -0.07484988123178482, 0.000512004888150841, -0.08028043806552887, 0.0829487219452858, 0.01038629561662674, -0.031716618686914444, 0.05597410351037979, -0.0301513671875, -0.008710687048733234, -0.03229362517595291, -0.01605152152478695, 0.008412479422986507, 0.023769471794366837, 0.007299993187189102, 0.005556450225412846, -0.03559200093150139, -0.0008581123547628522, -0.028317442163825035, 0.0022218695376068354, -0.011226273141801357, 0.01736423932015896, 0.013148394413292408, -0.009247356094419956, -0.012413561344146729, 0.06449627876281738, 0.015154778957366943, 0.006781347561627626, 0.008414828218519688, 0.03233708068728447, -0.009345723316073418, -0.016616059467196465, -0.036651574075222015, 0.0004835183499380946, -0.02959122136235237, 0.026190539821982384, -0.009095171466469765, 0.06917862594127655, -0.027645360678434372, 0.006462625227868557, -0.0186943169683218, -0.015049155801534653, 0.01277111005038023, -0.0017191926017403603, 0.030660312622785568, 0.007150199264287949, -0.02853034809231758, 0.019313914701342583, -0.00405374588444829, -0.0021212578285485506, 0.014256720431149006, -0.028878608718514442, -0.023126017302274704, 0.016062378883361816, 0.02026638202369213, -0.006429778877645731, 0.0046736630611121655, -0.009459327906370163, 0.019187020137906075, 0.004581092856824398, 0.05159210041165352, -0.14477939903736115, -0.02611698769032955, -0.010121307335793972, 0.01553548313677311, -0.02377310022711754, -0.008193585090339184, 0.03908829763531685, -0.031154004856944084, -0.0052739717066287994, -0.011441398411989212, 0.024671640247106552, 0.004862348083406687, 0.008245727978646755, -0.025403236970305443, -0.011922357603907585, -0.00040045648347586393, 0.012587049975991249, 0.026971301063895226, 0.011449228040874004, -0.0016977769555523992, -0.012590046972036362, 0.02460210584104061, -0.01331288367509842, -0.02884547784924507, -0.04721394181251526, 0.023995323106646538, 0.0344991609454155, -0.014598596841096878, 0.012509720399975777, -0.028420498594641685, -0.011722956784069538, -0.0021273274905979633, -0.031199749559164047, 0.04477526992559433, -0.010790601372718811, -0.008087368682026863, -0.029125766828656197, -0.011810005642473698, 0.014049636200070381, 0.05719950795173645, 0.01832331344485283, -0.011466517113149166, 0.04907013103365898, 0.009398170746862888, -0.009530069306492805, 0.01835537701845169, 0.020918752998113632, 0.01827259175479412, 0.05960047245025635, -0.04425922781229019, -0.024869419634342194, 0.007882348261773586, 0.0017625095788389444, 0.03555203229188919, 0.012363444082438946, -0.0020084104035049677, 0.005641500931233168, 0.019298695027828217, 0.05509937182068825, -0.015406033955514431, 0.0015032049268484116, 0.014765418134629726, 0.002091828966513276, 0.01608484983444214, 0.0008615549886599183, 0.05090312287211418, 0.008572028018534184, 0.015050534158945084, -0.04332418367266655, 0.037591300904750824, -0.000802807800937444, 0.007055188994854689, -0.011197087354958057, 0.014647410251200199, 0.007961966097354889, 0.03339925408363342, 0.010803718119859695, -0.030716432258486748, 0.061646390706300735, -0.005038711708039045, -0.016085539013147354, -0.04993550479412079, -0.03706635907292366, -0.025145551189780235, -0.0030838875100016594, 0.034701939672231674, 0.0007593478076159954, -0.007626039441674948, -0.016693850979208946, 0.038433920592069626, 0.03503596782684326, 0.019346382468938828, -0.0018189070979133248, 0.007919225841760635, 0.009523263201117516, 0.01320139691233635, 0.048292119055986404, -0.02143547683954239, 0.026557212695479393, 0.009311683475971222, 0.02826499007642269, -0.009993179701268673, -0.01798817701637745, 0.006946762558072805, -0.01639280840754509, 0.015288988128304482, -0.03335981443524361, -0.03550859913229942, 0.018042173236608505, 0.018263407051563263, 0.013459298759698868, -0.03173557668924332, -0.0004555140039883554, -0.030615119263529778, 0.0089064696803689, 0.013559729792177677, -0.03970375657081604, -0.01909537799656391, -0.02235800214111805, 0.009645654819905758, -0.03300480544567108, 0.014917236752808094, -0.004568025935441256, -0.03793375939130783, -0.02128920890390873, -0.003544253297150135, 0.015736764296889305, 0.005805528722703457, 0.01334331650286913, -0.004869338124990463, -0.02462450973689556, -0.02853584662079811, 0.024562327191233635, 0.007429094519466162, 0.011896809563040733, 0.027258530259132385, -0.009595157578587532, 0.027390243485569954, 0.008429547771811485, -0.05746103823184967, -0.001596421585418284, 0.01831391640007496, -0.005736850202083588, -0.011909782886505127, 0.009564710780978203, -0.006585848052054644, 0.009375635534524918, -0.010691414587199688, -0.010370940901339054, 0.023262176662683487, 0.02911251038312912, -0.020067624747753143, -0.04617319628596306, 0.008488950319588184, 0.01526973582804203, 0.016285862773656845, 0.03584928438067436, -0.004786199890077114, -0.01970016211271286, 0.06445997208356857, 0.025694318115711212, -0.007861391641199589, -0.052389957010746, 0.05369490012526512, -0.017347168177366257, 0.02178763970732689, 0.010008534416556358, -0.014127188362181187, -0.034978050738573074, 0.0023461133241653442, -0.03740914911031723, -0.04123847559094429, 0.020037390291690826, -0.019136572256684303, 0.0016163180116564035, 0.03305349126458168, 0.0003538180608302355, -0.004859341774135828, -0.0004919039783999324, 0.04944072291254997, -0.04510047659277916, -0.030600933358073235, 0.03189955651760101, -0.011845330707728863, -0.0053256843239068985, -0.012659745290875435, 0.03473702445626259, 0.02865789085626602, 0.019658830016851425, 0.05633457005023956, -0.04005199670791626, -0.012951874174177647, -0.04049704223871231, -0.023010926321148872, 0.023306962102651596, 0.0008118198602460325, 0.003907725680619478, 0.01740426942706108, 0.005878416821360588, -0.013516546227037907, 0.012788115069270134, 0.04242745041847229, -0.019524449482560158, 0.021598970517516136, 0.02734522335231304, 0.04320790246129036, -0.0021795271895825863, -0.006315666250884533, 0.019625667482614517, -0.06167428940534592, -0.021959444507956505, -0.02112586982548237, -0.03902621194720268, -0.016540177166461945, 0.0014919486129656434, -0.02502843178808689, -0.028611188754439354, 0.022960344329476357, 0.004972224589437246, 0.054535504430532455, 0.009307424537837505, -0.0048449039459228516, -0.004261907190084457, 0.029024871066212654, 0.046906668692827225, -0.027729541063308716, -0.014627890661358833, 0.03594870865345001, -0.01824396662414074, 0.03218202292919159, 0.03805641457438469, -0.0053877620957791805, -0.006108029745519161, 0.03187331184744835, 0.022055845707654953, -0.006745224352926016, -0.08420964330434799, 0.006635763216763735, -0.006224112585186958, 0.02214830368757248, 0.010370070114731789, -0.0260667372494936, -0.008549968712031841, 0.016828522086143494, -0.0516665019094944, 0.02528025209903717, 0.0491468608379364, -0.02175814099609852, 0.017156364396214485, -0.02087172493338585, 0.02420090138912201, -0.014502492733299732, 0.022600525990128517, -0.005046805366873741, -0.012239040806889534, 0.03767858445644379, 0.017042912542819977, -0.018696503713726997, 0.024759046733379364, 0.002998455660417676, -0.00276313372887671, -0.00029249946237541735, 0.03188927844166756, 0.04706849157810211, -0.014114591293036938, 0.0293984767049551, -0.002441409742459655, -0.043111156672239304, 0.01475400198251009, 0.00972248800098896, 0.02076110616326332, 0.006580127868801355, 0.009986904449760914, -0.008230139501392841, -0.01595577970147133, 0.0004813976993318647, 0.06688708066940308, 0.05876521021127701, 0.020190350711345673, 0.012747232802212238, 0.011515544727444649, 0.02864675037562847, 0.01783047243952751, 0.010615098290145397, -0.024055782705545425, 0.04795677959918976, 0.04371669888496399, 0.026206977665424347, 0.00991027895361185, 0.005145528353750706, 0.015494470484554768, 0.0284666046500206, -0.05988624691963196, 0.01181782130151987, -0.022981218993663788, 0.04016945883631706, 0.026478387415409088, -0.04550115764141083, 0.028477029874920845, -0.044683847576379776, 0.021995434537529945, 0.005083403550088406, -0.005350704304873943, 0.019365958869457245, -0.012436716817319393, 0.005514012183994055, 0.017330652102828026, -0.012701948173344135, -0.000581631378736347, -0.02177795022726059, 0.00863731000572443, 0.03588734194636345, -0.03053700365126133, -0.005453313235193491, -0.035150326788425446, -0.013335865922272205, 0.022492079064249992, -0.006558508146554232, -0.002777968067675829, 0.017659079283475876, 0.038723837584257126, -0.0057431296445429325, 0.011238842271268368, -0.022009698674082756, -0.04540151730179787, -0.06664250046014786, -0.004201201722025871, 0.0030729505233466625, -0.029118547216057777, -0.006101395469158888, 0.015006274916231632, -0.0018567031947895885, -0.03415894880890846, 0.0014308977406471968, -0.00502821197733283, 0.03806147351861, 0.0124843530356884, 0.04526229202747345, 0.004451205022633076, -0.012181801721453667, -0.009841062128543854, 0.011810919269919395, 0.02705327607691288, -0.010774461552500725, -0.004633255768567324, -0.020495979115366936, -0.004194766283035278, 0.024885250255465508, -0.024214642122387886, 0.03119916468858719, 0.026185009628534317, -0.0007707738550379872, -0.016820469871163368, 0.04607871547341347, -0.022914210334420204, -0.008655703626573086, -0.02877560630440712, 0.0021907987538725138, -0.010562535375356674, -0.008231628686189651, 0.009949996136128902, 0.04262610897421837, 0.034434977918863297, -0.04711730405688286, -0.05226222798228264, -0.01879875548183918, -0.037415385246276855, 0.028814028948545456, 0.02385207638144493, 0.014491609297692776, -0.0057157790288329124, -0.017539450898766518, 0.02501937747001648, 0.007768084295094013, -0.06265677511692047, -0.03587563335895538, -0.021365897729992867, -0.021746806800365448, -0.01389304269105196, -0.03481388837099075, 0.03732858970761299, 0.02536296844482422, 0.025798680260777473, 0.06723468750715256, 0.03560525178909302, 0.028240837156772614, -0.020435791462659836, 0.01458281371742487, 0.016329927369952202, 0.04198061674833298, -0.03806937485933304, -0.02708926424384117, -0.010859043337404728, 0.0035788442473858595, -0.004116775467991829, -0.01843043975532055, -0.05410952866077423, -0.059789370745420456, -0.02477956935763359, 0.012393537908792496, -0.04265345260500908, 0.010400339029729366, 0.04249449074268341, 0.01551275234669447, 0.04597850143909454, -0.012035081163048744, -0.0278165340423584, -0.005327184684574604, 0.02653675712645054, -0.01538283284753561, 0.046663686633110046, 0.035983309149742126, -0.029916422441601753, -0.06266339868307114, 0.03803572803735733, -0.008472831919789314, -0.06666500121355057, -0.00011314884613966569, 0.04895084351301193, -0.021583829075098038, -0.016939854249358177, -0.013313541188836098, -0.0005663110641762614, 0.04245372116565704, 0.021283797919750214, 0.018340636044740677, -0.016195762902498245, -0.004122587386518717, -0.0017568240873515606, -0.0430462509393692, 0.004813567269593477, 0.008562137372791767, 0.02177506312727928, 0.036519985646009445, 0.020932551473379135, -0.0005614890833385289, 0.042624522000551224, -0.03997841104865074, 0.019804587587714195, -0.0007125560659915209, -0.01357209775596857, 0.016719810664653778, 0.032791826874017715, -0.037453293800354004, -0.021947814151644707, -0.0327274389564991, 0.05070164054632187, 0.037094708532094955, -0.015909871086478233, -0.03197818994522095, -0.006314282305538654, 0.01840250752866268, 0.016447044909000397, 0.023923225700855255, -0.017040425911545753, 0.05350618064403534, 0.041938845068216324, -0.03496210277080536, -0.007577689830213785, 0.04732006788253784 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Additional Resources - Models - Demo - The Falcon has landed in the Hugging Face ecosystem - Official Announcement
[ 0.006268981844186783, -0.05719638988375664, 0.05666520819067955, 0.009252859279513359, 0.0966617614030838, 0.06448180973529816, -0.024603383615612984, 0.09069891273975372, -0.09998946636915207, -0.06643930077552795, -0.09078444540500641, 0.06349898129701614, -0.0066201589070260525, 0.054784927517175674, 0.0325179249048233, -0.04484017565846443, -0.00038231443613767624, -0.005375599022954702, -0.004014416132122278, 0.015430396422743797, -0.041013751178979874, -0.07556423544883728, 0.020065773278474808, -0.014772155322134495, -0.013353738002479076, -0.09101427346467972, 0.051209691911935806, 0.02090601436793804, 0.0038508963771164417, 0.04249730706214905, -0.050907544791698456, -0.022000759840011597, -0.024545246735215187, -0.028192058205604553, 0.00023083388805389404, 0.07171674817800522, -0.16155602037906647, 0.04760229215025902, -0.005323735531419516, -0.041485536843538284, 0.04057816043496132, -0.02385687455534935, -0.021945595741271973, 0.05372403562068939, 0.01206005085259676, -0.03794240206480026, -0.21127697825431824, 0.09132537245750427, 0.05281660705804825, -0.01867169886827469, -0.08252556622028351, 0.06833000481128693, -0.01951765827834606, -0.062200743705034256, 0.03487832471728325, -0.027898168191313744, -0.03946676850318909, -0.06064849719405174, 0.035932768136262894, -0.014078185893595219, 0.06742826104164124, 0.028407663106918335, 0.011710535734891891, 0.044740114361047745, -0.022402195259928703, 0.03872501850128174, 0.026264842599630356, -0.0341816172003746, -0.053390588611364365, 0.027969786897301674, 0.03447280824184418, -0.016758553683757782, -0.0279953945428133, -0.026074301451444626, 0.024234386160969734, -0.04256092384457588, -0.002958653960376978, 0.06556128710508347, 0.06271678954362869, 0.07714904099702835, 0.07655211538076401, -0.04772357642650604, 0.053198590874671936, 0.04711560532450676, -0.016019737347960472, 0.03320365771651268, 0.021232442930340767, -0.03614414110779762, -0.04104512929916382, 0.055094558745622635, -0.0499972328543663, -0.09560699760913849, 0.04824315756559372, 0.03216085955500603, 0.11316167563199997, -0.008334496058523655, 0.006232208572328091, 0.017734289169311523, 0.040287017822265625, 0.0040447898209095, -0.04312404245138168, -0.0632597804069519, 0.005412377882748842, -0.03692882880568504, 0.01005604863166809, 0.016652612015604973, -0.05505692958831787, -0.08351264894008636, -0.010305388830602169, 0.03546633571386337, -0.011925800703465939, -0.03478539362549782, 0.039794567972421646, 0.003690978977829218, -0.09348154067993164, 0.08678946644067764, -0.022140473127365112, -0.05462343990802765, 0.03662356734275818, 0.04015173763036728, 0.0025405760388821363, 0.07777675241231918, -0.031127942726016045, 0.01078950148075819, 0.05114257335662842, 0.07543162256479263, 0.02547377161681652, 0.009153789840638638, -0.043570008128881454, -0.04927263781428337, 0.012058992870151997, -0.03678382933139801, 0.0439114011824131, -0.015818364918231964, -0.021778903901576996, -0.06411264836788177, -0.03129153326153755, -0.04218117892742157, 0.04526370018720627, -0.004390356130897999, -0.03819257393479347, 0.028062257915735245, -0.0012891265796497464, 0.03800757974386215, 0.05516262352466583, -0.05115165188908577, -0.08034351468086243, 0.04722889885306358, -0.06305934488773346, -0.02138568088412285, -0.012475027702748775, 0.032961685210466385, -0.030722839757800102, -0.02565646544098854, -0.005536267068237066, 0.011501297354698181, 0.019451724365353584, -0.035467326641082764, -0.04961998388171196, -0.015276188962161541, 0.03436199948191643, 0.0006413283408619463, -0.02430698089301586, -0.0032896415796130896, 0.060403045266866684, 0.0009400391136296093, -0.025228997692465782, -0.023569367825984955, 0.003566704923287034, -0.06663469970226288, -0.007508726324886084, -0.0469566248357296, 0.06317095458507538, 0.016009444370865822, -0.04978680983185768, 0.0589727908372879, 0.06468088179826736, 0.04535742476582527, 0.001877231989055872, 0.07667786628007889, -0.033167287707328796, -0.002306820824742317, 0.024652618914842606, -0.007658584974706173, 0.014708961360156536, -0.084722600877285, 0.02872016280889511, 0.06522378325462341, -0.018414560705423355, 0.026938365772366524, -0.04314756393432617, -0.034219302237033844, 0.050005603581666946, -0.010320693254470825, 0.03519636392593384, -0.06307647377252579, -0.05151761695742607, 0.09232930094003677, 0.026386629790067673, 0.07315381616353989, 0.02206440642476082, 0.013765314593911171, 0.046733558177948, -0.036199964582920074, -0.05150735750794411, 0.02505267783999443, 0.019863277673721313, -0.0388278104364872, -0.0009114074055105448, -0.014483406208455563, 0.029843445867300034, -0.0810500830411911, 0.053550783544778824, -0.07840050011873245, 0.018388893455266953, -0.055741216987371445, -0.08028320223093033, -0.00007206853479146957, -0.011790896765887737, -0.036663539707660675, 0.12182149291038513, 0.004700419493019581, -0.014259482733905315, -0.06249232590198517, -0.01126185804605484, 0.05017166584730148, 0.09751687943935394, -0.0011964115547016263, 0.022505953907966614, -0.06060683727264404, 0.002203820738941431, -0.05338050797581673, -0.04518115147948265, 0.05961616709828377, -0.007797700352966785, -0.02221360057592392, 0.06663397699594498, -0.013863240368664265, 0.0566093847155571, -0.046593353152275085, -0.03484213352203369, -0.03528415039181709, 0.041800133883953094, 0.05094846710562706, -0.01689847745001316, -0.07293874025344849, 0.06486444920301437, 0.027436120435595512, -0.08938293159008026, 0.004808860365301371, -0.07642670720815659, 0.060601312667131424, 0.03985932096838951, 0.002286031609401107, 0.04701783508062363, 0.026409966871142387, 0.00041599402902647853, -0.02209377847611904, -0.01286246720701456, 0.02419019117951393, 0.04533255472779274, -0.0036520594730973244, -0.015139475464820862, -0.0330267995595932, -0.009678687900304794, -0.009163682349026203, -0.008175340481102467, 0.0033763237297534943, 0.013232396915555, 0.03345092758536339, 0.02495519258081913, -0.02401554211974144, 0.039062999188899994, 0.016241218894720078, 0.004006543196737766, 0.010864777490496635, 0.02924294024705887, 0.011300626210868359, -0.011422108858823776, -0.012439669109880924, -0.03130451962351799, -0.0029634188394993544, 0.057641759514808655, 0.03871938958764076, 0.054411038756370544, -0.00976052600890398, -0.008430168963968754, -0.034582123160362244, -0.03248889371752739, -0.007510486990213394, 0.02908087708055973, 0.013288581743836403, 0.009487350471317768, -0.011477583087980747, 0.013276923447847366, 0.007618485018610954, 0.03237970173358917, 0.02736973948776722, -0.006997148506343365, 0.029702700674533844, 0.02449493296444416, 0.01386239193379879, -0.007194125093519688, 0.0012058994034305215, -0.012045502662658691, 0.03446822613477707, 0.050765663385391235, 0.03492540866136551, -0.12475700676441193, -0.06305444985628128, 0.0006861037691123784, 0.010802538134157658, -0.03978857398033142, -0.020675785839557648, 0.034190382808446884, -0.006161299534142017, 0.021273436024785042, 0.00002735158705036156, 0.012665397487580776, -0.010899553075432777, 0.04200276359915733, -0.017503613606095314, -0.040453821420669556, -0.015708986669778824, -0.000874703808221966, 0.009042561054229736, 0.02473686821758747, 0.03676983714103699, -0.06055852025747299, 0.048122111707925797, -0.00265392754226923, -0.015042271465063095, -0.01036925707012415, -0.0031381675507873297, 0.029227498918771744, 0.009982801973819733, 0.013448651880025864, -0.05503261461853981, 0.005308077204972506, -0.017425986006855965, -0.03617570549249649, 0.03357614949345589, -0.03010859340429306, 0.009100358933210373, -0.026437224820256233, 0.0030949385836720467, 0.044944554567337036, 0.027594607323408127, 0.004209506791085005, 0.003721168264746666, 0.03667553886771202, 0.001220953301526606, -0.01597191020846367, 0.012970319017767906, -0.02035016007721424, 0.037828486412763596, 0.05487614870071411, -0.018619908019900322, 0.010718743316829205, 0.008250265382230282, 0.005123035050928593, 0.06920651346445084, 0.014703369699418545, 0.03335123509168625, -0.011325803585350513, 0.02306739054620266, 0.010639120824635029, -0.018696140497922897, -0.07152706384658813, 0.00034083647187799215, -0.012685376219451427, 0.012706447392702103, -0.038097310811281204, 0.06715048104524612, 0.0017534536309540272, -0.011679921299219131, -0.018238596618175507, 0.00739710358902812, 0.024037223309278488, 0.004391082096844912, -0.0409979484975338, 0.01925038918852806, 0.00601522671058774, 0.011298165656626225, -0.00771126477047801, -0.04853680729866028, 0.06642740219831467, -0.00996355153620243, -0.021805034950375557, -0.02785259112715721, 0.000634570315014571, -0.03437980264425278, -0.02625933103263378, 0.01061174925416708, 0.023441556841135025, 0.0024715012405067682, 0.00008669956878293306, 0.07309110462665558, 0.00252927397377789, -0.038780681788921356, 0.024964261800050735, -0.02472067065536976, 0.007396308705210686, 0.018395163118839264, 0.027291156351566315, -0.018436390906572342, 0.020843634381890297, 0.009823165833950043, 0.021440843120217323, -0.043417561799287796, -0.027624372392892838, 0.009106042794883251, -0.0058393594808876514, 0.018378013744950294, -0.021491115912795067, -0.046604499220848083, 0.02770075388252735, 0.012389583513140678, 0.03507295623421669, -0.01838207058608532, 0.015986895188689232, -0.029367486014962196, 0.010126923210918903, 0.013449298217892647, -0.014712468720972538, -0.013311772607266903, -0.04108817130327225, 0.033839400857686996, -0.03249400109052658, 0.02856622077524662, -0.004989858716726303, -0.021237073466181755, -0.006402197293937206, -0.015320594422519207, 0.015264619141817093, -0.012737957760691643, 0.005282174330204725, 0.00020511460024863482, -0.016904711723327637, -0.013857503421604633, 0.03137652948498726, 0.017620565369725227, 0.0216896440833807, 0.03899358585476875, -0.004092939663678408, 0.04162568598985672, 0.023387636989355087, -0.07658383995294571, -0.028360171243548393, 0.010732115246355534, 0.03737493231892586, -0.009642314165830612, 0.01812799461185932, 0.022556107491254807, -0.03809436410665512, 0.00035007373662665486, -0.018585532903671265, 0.03169417381286621, 0.031461201608181, -0.0006373418727889657, -0.04695199429988861, 0.06523673981428146, 0.03105226904153824, -0.005227472633123398, 0.0002764018427114934, 0.025418760254979134, -0.0342937633395195, 0.049262236803770065, 0.004829238634556532, 0.04279371351003647, -0.02585875801742077, 0.023189645260572433, -0.0019834053236991167, 0.009410649538040161, -0.014722093939781189, -0.043555550277233124, -0.013143855147063732, 0.0058327605947852135, -0.023234756663441658, -0.02848781645298004, -0.008333088830113411, -0.012371172197163105, -0.019630882889032364, 0.047368187457323074, 0.03369620069861412, 0.007585390470921993, 0.00789085403084755, 0.05460143834352493, -0.03102167882025242, -0.0013330306392163038, 0.027900751680135727, -0.022931430488824844, 0.011520328931510448, 0.016792206093668938, 0.024882761761546135, 0.035610854625701904, 0.025624265894293785, 0.010527514852583408, -0.017512837424874306, -0.005688035394996405, -0.019932249560952187, -0.020390840247273445, 0.0015362484846264124, 0.00936167687177658, -0.00671564694494009, -0.0052861301228404045, 0.013354599475860596, -0.02058153599500656, -0.008982219733297825, 0.0008074179058894515, -0.029509181156754494, 0.014283855445683002, 0.0006120236939750612, -0.0036116132978349924, -0.011201084591448307, 0.014134342782199383, 0.016364354640245438, -0.04545026645064354, -0.020503228530287743, -0.008306430652737617, -0.004798218607902527, -0.025021029636263847, 0.007196906488388777, -0.043630219995975494, -0.051425933837890625, 0.0015065777115523815, -0.010274164378643036, 0.04193713515996933, -0.017658507451415062, 0.007898401468992233, -0.0014698137529194355, 0.00883167888969183, 0.0006968766101635993, -0.019021863117814064, 0.003278295276686549, 0.022812265902757645, -0.03195342794060707, 0.01305445097386837, 0.015994615852832794, -0.012762005440890789, 0.03984799608588219, 0.013516630046069622, 0.028685130178928375, 0.026450885459780693, -0.06587132066488266, 0.011772924102842808, -0.00949796847999096, -0.013222334906458855, 0.02219284512102604, 0.009420125745236874, -0.025139156728982925, -0.0006916291895322502, -0.05392734333872795, -0.016158847138285637, 0.08387399464845657, 0.012823017314076424, 0.02926030568778515, -0.0036111632362008095, 0.015397871844470501, 0.010790744796395302, 0.01077650673687458, -0.009406238794326782, 0.004661529324948788, 0.004320149309933186, 0.0020366909448057413, -0.003687161486595869, -0.028790775686502457, -0.03169720992445946, 0.012628686614334583, -0.007798851002007723, -0.016188861802220345, 0.03626639023423195, -0.01612807996571064, 0.02277025207877159, -0.009703516960144043, -0.022285623475909233, 0.004538143519312143, 0.03476032242178917, 0.01700976863503456, 0.05384814739227295, 0.0211094468832016, 0.010521434247493744, -0.02513941004872322, -0.023698890581727028, 0.07496382296085358, 0.07608470320701599, -0.0107036754488945, 0.03565163165330887, -0.004341951105743647, 0.0567045658826828, -0.012166542932391167, 0.00322739128023386, -0.01409301720559597, 0.059912700206041336, 0.07348697632551193, 0.017027921974658966, 0.019944030791521072, 0.04507015645503998, -0.00665759202092886, -0.018054615706205368, -0.022606810554862022, -0.00772496685385704, -0.006352490745484829, 0.008495642803609371, -0.014165708795189857, -0.022019002586603165, 0.020321041345596313, -0.04461699724197388, 0.028801079839468002, 0.0315173901617527, -0.0035388758406043053, -0.01228931825608015, 0.021958230063319206, 0.02340032532811165, 0.005548688583076, 0.0077535188756883144, 0.019503558054566383, 0.026892026886343956, 0.01704498752951622, 0.04646562784910202, 0.00037676215288229287, 0.02155420370399952, -0.03602593392133713, 0.036128200590610504, 0.017475949600338936, -0.012384001165628433, 0.0017871977761387825, -0.02047422155737877, 0.01434163935482502, -0.009667527861893177, -0.0006873040110804141, -0.014580205082893372, -0.0308673232793808, -0.024499112740159035, -0.014896792359650135, 0.029004834592342377, -0.004031976219266653, 0.0006524896598421037, 0.009503842331469059, 0.011532139033079147, 0.02187868021428585, 0.013220351189374924, 0.0067246584221720695, 0.03825588896870613, 0.03581599146127701, 0.037896767258644104, -0.015205487608909607, -0.007157143671065569, 0.00760764442384243, -0.0012369054602459073, 0.014879937283694744, -0.0074196443893015385, 0.008780897594988346, -0.014167528599500656, -0.020576344802975655, 0.04342470318078995, -0.005001353099942207, 0.02413739264011383, 0.010916485451161861, 0.007999919354915619, -0.028416188433766365, 0.03363789990544319, -0.01070454902946949, 0.009631825610995293, -0.01965917833149433, -0.023645540699362755, -0.0032609521877020597, -0.02125479467213154, 0.020944630727171898, 0.06432648003101349, 0.05088210850954056, -0.029074328020215034, -0.053501784801483154, -0.020787745714187622, -0.04000260680913925, 0.025341317057609558, 0.059654656797647476, -0.00816301442682743, -0.03257420286536217, 0.00855236779898405, 0.030314398929476738, 0.005882224068045616, -0.02439013496041298, 0.015392757952213287, 0.011051722802221775, -0.022755462676286697, -0.011924238875508308, 0.008769480511546135, 0.03210105746984482, 0.011910581029951572, 0.0383223332464695, 0.02290276251733303, 0.049121592193841934, 0.012371840886771679, -0.045299991965293884, 0.020093200728297234, -0.018962416797876358, 0.006365017034113407, -0.04481176286935806, -0.030086699873209, -0.004152867943048477, -0.03751659765839577, -0.015565356239676476, -0.002653369912877679, -0.034624673426151276, -0.02303197979927063, -0.03239542618393898, 0.02024366892874241, -0.004529797006398439, 0.02109428681433201, 0.0346563421189785, 0.039181455969810486, 0.038114599883556366, -0.002091839211061597, 0.020948315039277077, -0.005893521010875702, 0.009008987806737423, 0.011822059750556946, 0.02836514078080654, -0.01280992478132248, -0.03060866892337799, -0.04337970167398453, 0.0034492278937250376, -0.014245442114770412, -0.06940922141075134, 0.01425144262611866, 0.014223822392523289, -0.01279150415211916, -0.055011797696352005, -0.027782093733549118, -0.012927405536174774, 0.003819321980699897, 0.037012599408626556, -0.015617932192981243, -0.05175603926181793, -0.027067435905337334, 0.033457666635513306, -0.033195022493600845, 0.01741485670208931, -0.010198664851486683, 0.0275775957852602, 0.040241602808237076, 0.005884290207177401, -0.013561902567744255, 0.01680796779692173, -0.016354072839021683, 0.014417706988751888, 0.014921408146619797, -0.059281330555677414, -0.016745666041970253, 0.017354335635900497, -0.026745762676000595, -0.019964469596743584, -0.06981702148914337, 0.017736472189426422, 0.008270107209682465, -0.015792448073625565, 0.003745840396732092, -0.023615393787622452, 0.02618883177638054, -0.007521200459450483, 0.005476891528815031, -0.0021770058665424585, 0.04621290788054466, -0.006002925336360931, -0.01443250197917223, -0.01861307956278324, 0.024346036836504936 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
How good is Falcon 180B? Falcon 180B is the best openly released LLM today, outperforming Llama 2 70B and OpenAI’s GPT-3.5 on MMLU, and is on par with Google's PaLM 2-Large on HellaSwag, LAMBADA, WebQuestions, Winogrande, PIQA, ARC, BoolQ, CB, COPA, RTE, WiC, WSC, ReCoRD. Falcon 180B typically sits somewhere between GPT 3.5 and GPT4 depending on the evaluation benchmark and further finetuning from the community will be very interesting to follow now that it's openly released. With 68.74 on the Hugging Face Leaderboard, Falcon 180B is the highest-scoring openly released pre-trained LLM, surpassing Meta’s LLaMA 2 (67.35). | Model | Size | Leaderboard score | Commercial use or license | Pretraining length | | ------- | ---- | ----------------- | ------------------------- | ------------------ | | Falcon | 180B | 68.74 | 🟠 | 3,500B | | Llama 2 | 70B | 67.35 | 🟠 | 2,000B | | LLaMA | 65B | 64.23 | 🔴 | 1,400B | | Falcon | 40B | 61.48 | 🟢 | 1,000B | | MPT | 30B | 56.15 | 🟢 | 1,000B | The quantized Falcon models preserve similar metrics across benchmarks. The results were similar when evaluating torch.float16, 8bit, and 4bit. See results in the Open LLM Leaderboard.
[ -0.037359025329351425, -0.019587531685829163, 0.030772356316447258, -0.0065844240598380566, 0.045401681214571, -0.013747358694672585, 0.00046574263251386583, 0.059731364250183105, -0.03543128818273544, -0.027141688391566277, -0.03944581374526024, 0.08399278670549393, 0.01340207364410162, 0.005745477043092251, 0.07623046636581421, -0.04261729121208191, -0.009732536971569061, 0.007417016196995974, 0.013370715081691742, -0.03441904857754707, 0.0238212738186121, -0.029607625678181648, 0.01188187301158905, -0.14357464015483856, -0.013492435216903687, -0.030839713290333748, 0.02245589904487133, 0.03644406422972679, -0.013417908921837807, 0.028738683089613914, -0.01794031821191311, -0.002939871046692133, -0.03640107810497284, -0.001379805733449757, 0.03846074268221855, 0.03774792328476906, -0.10325434058904648, 0.016938863322138786, -0.011250240728259087, -0.0378868542611599, 0.06178225204348564, 0.002415734576061368, -0.03334733471274376, -0.020145099610090256, -0.02464594505727291, 0.005499619524925947, -0.1224215105175972, 0.03598269447684288, 0.03506842628121376, -0.011981640011072159, -0.08721806108951569, 0.060696348547935486, -0.061515044420957565, -0.010371409356594086, 0.0745689868927002, -0.012293979525566101, 0.004432824440300465, -0.04637667536735535, 0.03231530636548996, 0.07677236199378967, 0.04498778283596039, -0.000133365232613869, 0.06471852213144302, 0.06173750013113022, -0.013840440660715103, -0.024059496819972992, -0.03798471391201019, 0.01691947691142559, -0.056374095380306244, 0.0495820976793766, -0.012410973198711872, 0.043408121913671494, -0.05065472051501274, -0.07637602090835571, -0.03506237640976906, -0.0929451584815979, 0.00010808985825860873, 0.04666091874241829, 0.006067338399589062, 0.0034569604322314262, 0.04054862633347511, 0.0285026952624321, 0.0033764538820832968, 0.0064513664692640305, -0.07648420333862305, 0.03180139139294624, -0.0009855474345386028, -0.06339273601770401, -0.060111191123723984, -0.009543631225824356, -0.059571485966444016, -0.060900211334228516, 0.03449668735265732, 0.022925570607185364, 0.07140374928712845, -0.05892602354288101, -0.06299193948507309, 0.05373894050717354, 0.009340384043753147, -0.014472685754299164, 0.015118323266506195, -0.04047563672065735, 0.01396376732736826, -0.022155197337269783, 0.00884268805384636, 0.07471408694982529, -0.08461181074380875, -0.058156099170446396, 0.0011548836482688785, 0.050186630338430405, 0.00044145312858745456, -0.011384095996618271, -0.021041348576545715, -0.005102857481688261, -0.11816708743572235, 0.026001131162047386, -0.0015032313531264663, -0.025063080713152885, 0.023181840777397156, 0.00758568849414587, 0.0035364332143217325, 0.11594410240650177, 0.03252994641661644, -0.04925927519798279, 0.05256741866469383, 0.02026633359491825, 0.04182960465550423, 0.035716503858566284, 0.04595928266644478, 0.008091981522738934, 0.05732939392328262, -0.022950438782572746, 0.019817305728793144, 0.007646136451512575, -0.025481456890702248, -0.012559465132653713, 0.02529573254287243, -0.0761047974228859, 0.015611386857926846, -0.03555135801434517, -0.07575055211782455, 0.030016569420695305, -0.010031047277152538, -0.04097133129835129, 0.07336410880088806, 0.014605537988245487, -0.05055897310376167, 0.03095209412276745, -0.06753960251808167, -0.04206040874123573, -0.0587613582611084, 0.08039530366659164, -0.05775165557861328, -0.08729620277881622, 0.09615153074264526, 0.09190560132265091, 0.004273589700460434, -0.018766062334179878, -0.023335330188274384, -0.008884003385901451, -0.027133285999298096, -0.051860641688108444, -0.040128082036972046, 0.00374820688739419, 0.029370594769716263, -0.01709250546991825, 0.0319167785346508, 0.0012119824532419443, -0.08205552399158478, 0.04594224691390991, 0.05776642635464668, 0.049183353781700134, 0.12174856662750244, -0.046448010951280594, -0.037509359419345856, 0.05051499605178833, 0.07087461650371552, -0.02531607449054718, 0.07686267793178558, 0.037544671446084976, -0.038742922246456146, -0.0007537606288678944, -0.012650278396904469, 0.07542422413825989, -0.020475972443819046, -0.06956053525209427, 0.007832967676222324, -0.028523217886686325, -0.007105645257979631, -0.006149945314973593, -0.045990075916051865, 0.022211406379938126, 0.06410082429647446, 0.01741018332540989, 0.03878854215145111, -0.020939094945788383, 0.004271836020052433, 0.05831598490476608, 0.094759002327919, -0.005289401859045029, 0.022192955017089844, 0.056626465171575546, 0.042973995208740234, -0.04235494136810303, -0.0362229086458683, -0.036023568361997604, 0.07619024068117142, -0.0025850331876426935, -0.017991334199905396, 0.043829295784235, 0.10052959620952606, -0.07626447081565857, -0.02170580066740513, -0.05055416375398636, -0.010152846574783325, -0.06353625655174255, -0.016620775684714317, 0.01134904008358717, 0.0693831667304039, 0.0030449582263827324, 0.09652199596166611, -0.05117683485150337, 0.019239630550146103, -0.07812049984931946, -0.04062485694885254, 0.032326389104127884, 0.03393201902508736, 0.05029400810599327, -0.014846541918814182, -0.01905369944870472, 0.012993941083550453, -0.04700412601232529, -0.000671802437864244, 0.029052700847387314, 0.009266183711588383, -0.06640703231096268, -0.008954725228250027, -0.04156111553311348, 0.08954939246177673, -0.0000010262593832521816, -0.03409787639975548, 0.07307150959968567, 0.037492409348487854, 0.09188825637102127, -0.02833239547908306, -0.04627174139022827, 0.01720411330461502, -0.027995094656944275, 0.006315126083791256, 0.04621858522295952, -0.07957731187343597, -0.021672135218977928, 0.0494670532643795, 0.0645512267947197, -0.05146805942058563, 0.008147768676280975, -0.0012586346128955483, 0.00571361044421792, -0.01594618335366249, -0.009620714001357555, 0.027917787432670593, -0.021207699552178383, 0.00008587929187342525, 0.008822977542877197, 0.021715935319662094, 0.019243931397795677, -0.0387546643614769, 0.018567437306046486, -0.015126408077776432, -0.0029625906608998775, -0.009084547869861126, -0.033289797604084015, 0.07162203639745712, 0.01721680723130703, -0.0012770562898367643, 0.03335124999284744, 0.04453841596841812, -0.044280752539634705, -0.06424055248498917, -0.029852379113435745, 0.01483144611120224, -0.005226079374551773, 0.05150420963764191, 0.016968248412013054, -0.008183912374079227, -0.03270895034074783, 0.01897130347788334, 0.010568560101091862, -0.03099488653242588, 0.028188813477754593, 0.02522468753159046, 0.04406500980257988, -0.004636186640709639, -0.028116358444094658, -0.049941081553697586, -0.042513199150562286, 0.031653642654418945, 0.01087369117885828, -0.01917547732591629, 0.011891799047589302, -0.048366621136665344, -0.02912582829594612, 0.011984114535152912, -0.0028354472015053034, 0.024670446291565895, 0.015960874035954475, -0.000014417903003050014, 0.03067311830818653, -0.0859450101852417, 0.00042389941518194973, -0.04827103018760681, -0.041708510369062424, 0.012815424241125584, -0.004506685305386782, 0.05112304538488388, -0.04357399418950081, 0.016280481591820717, 0.021362727507948875, 0.027670813724398613, 0.012775104492902756, 0.04371364787220955, 0.01988369971513748, -0.020338064059615135, 0.008690478280186653, -0.002885226858779788, -0.006868535652756691, 0.0029286418575793505, 0.02070799469947815, 0.03126808628439903, 0.02187219075858593, -0.04245462641119957, -0.025817887857556343, -0.017147701233625412, -0.018130537122488022, 0.003873272566124797, -0.025715380907058716, 0.0031165543477982283, -0.03503187373280525, 0.027318604290485382, -0.01503962092101574, -0.030876733362674713, 0.019658442586660385, -0.032071929425001144, -0.002710350090637803, 0.0102797020226717, 0.001204627682454884, 0.004428847227245569, 0.07482504099607468, 0.02688763104379177, -0.021800315007567406, 0.008382506668567657, 0.005376752465963364, 0.0116889588534832, 0.035934895277023315, -0.009724105708301067, 0.0029308204539120197, 0.05721955746412277, -0.054439302533864975, -0.029684174805879593, 0.00284451711922884, -0.02899882011115551, 0.0431620329618454, 0.013985490426421165, -0.00026022546808235347, 0.020514022558927536, -0.002128500258550048, -0.000977680436335504, 0.039431534707546234, -0.04986229166388512, 0.00975813064724207, -0.05767574906349182, 0.03049871139228344, 0.004698663484305143, 0.051639966666698456, 0.036620885133743286, -0.0480683408677578, 0.002102653030306101, 0.013744902797043324, 0.00431058369576931, 0.02472289651632309, -0.000455458095530048, -0.0016621724935248494, 0.005647867918014526, 0.01791447401046753, -0.008970648050308228, 0.00692058727145195, 0.04157450050115585, 0.06443390995264053, -0.04235190153121948, -0.02495255134999752, -0.06998599320650101, -0.028690537437796593, -0.01327822357416153, -0.00310755567625165, 0.014521935023367405, -0.02651931345462799, 0.03286519646644592, -0.022619450464844704, -0.02916633151471615, -0.009614314883947372, 0.025305652990937233, 0.02308839000761509, 0.00614550244063139, -0.02110566571354866, -0.002063450403511524, -0.00796469859778881, 0.017648519948124886, 0.009667498990893364, 0.040740761905908585, -0.0420529805123806, -0.03389369323849678, -0.05565257370471954, -0.031896498054265976, -0.007953321561217308, -0.006796407978981733, -0.0038468088023364544, 0.0043318127281963825, 0.02144220843911171, -0.0058904532343149185, -0.01620136946439743, 0.021671809256076813, -0.0005036334623582661, 0.03870391100645065, 0.017570989206433296, -0.02777048572897911, 0.017257176339626312, -0.02787635661661625, 0.007851646281778812, -0.04501382261514664, 0.026030175387859344, 0.007880613207817078, -0.00503030838444829, -0.002961002290248871, -0.014338540844619274, 0.0029875803738832474, -0.04367344453930855, 0.0023745354264974594, -0.026381954550743103, -0.0378953255712986, 0.02986285649240017, -0.022835463285446167, 0.017312457785010338, 0.008128199726343155, 0.022221319377422333, -0.04280438646674156, 0.010203779675066471, 0.03800402954220772, -0.06755274534225464, -0.021059688180685043, 0.022826621308922768, 0.014050343073904514, -0.042481113225221634, 0.024878455325961113, 0.00890481285750866, -0.009476244449615479, 0.019388947635889053, -0.014594110660254955, 0.023169877007603645, 0.01272984966635704, -0.028006695210933685, -0.048889849334955215, 0.010416625998914242, 0.015381809324026108, 0.0026997574605047703, -0.03313283622264862, 0.004860800225287676, 0.04340130835771561, 0.03574077785015106, -0.005251484923064709, 0.033352743834257126, -0.02470860816538334, 0.0005903951241634786, 0.054490961134433746, 0.021969987079501152, 0.02432149276137352, 0.02875172533094883, -0.0053332787938416, 0.016705656424164772, 0.0484209880232811, -0.005539247300475836, 0.014601638540625572, -0.0026662047021090984, -0.020455364137887955, 0.02162737213075161, 0.020320730283856392, -0.012166518718004227, 0.028950732201337814, 0.020132601261138916, -0.017904337495565414, -0.027781473472714424, 0.04851406440138817, -0.04975896328687668, 0.0028545872773975134, 0.016075965017080307, -0.011119064874947071, 0.04250681772828102, -0.007892408408224583, -0.002174433320760727, 0.003262295387685299, -0.01024117786437273, 0.019269896671175957, -0.0443388931453228, 0.029568267986178398, -0.00973696168512106, -0.011752580292522907, 0.03161861374974251, 0.0025317289400845766, -0.04190214350819588, -0.022913264110684395, -0.01180657185614109, -0.01194402202963829, -0.0044365860521793365, 0.0003279849770478904, -0.013078170828521252, -0.024142039939761162, -0.012309827841818333, 0.001134401885792613, -0.011053011752665043, -0.024400241672992706, -0.033412449061870575, 0.030497441068291664, -0.017926963046193123, 0.06655794382095337, -0.019752999767661095, 0.02815413475036621, 0.004508214071393013, 0.024811970070004463, 0.034105390310287476, 0.022128816694021225, -0.030204055830836296, -0.02629169262945652, -0.06136507913470268, 0.03422289341688156, -0.03943181410431862, 0.02993261255323887, 0.022674307227134705, -0.011069641448557377, 0.03135913237929344, 0.006423582322895527, -0.027209490537643433, 0.050039488822221756, 0.022137660533189774, 0.010090511292219162, -0.00496403593569994, -0.06705350428819656, -0.06808670610189438, 0.012535952031612396, 0.016772404313087463, -0.015026096254587173, -0.033900078386068344, -0.0194622203707695, -0.0017681343015283346, -0.0733543112874031, 0.024080196395516396, 0.00787512119859457, -0.03785073384642601, -0.015676720067858696, -0.030401594936847687, -0.0206309724599123, 0.023924432694911957, 0.047681476920843124, 0.044445883482694626, 0.01647806353867054, -0.025910526514053345, 0.008725560270249844, 0.010613207705318928, -0.06496667116880417, 0.015036046504974365, 0.02830635942518711, -0.007722627371549606, -0.005528224632143974, 0.06189846992492676, -0.04873225837945938, 0.016437768936157227, 0.04335198551416397, -0.0600900836288929, -0.007773840334266424, -0.009453140199184418, 0.01862925849854946, -0.0052127051167190075, 0.028772953897714615, -0.008685710839927197, -0.06384778767824173, -0.003477330319583416, 0.06094972416758537, 0.07752522081136703, 0.011386196129024029, 0.03455008938908577, 0.03630470857024193, 0.011497457511723042, 0.024875199422240257, -0.006653394550085068, -0.05479438230395317, 0.04365462809801102, 0.06401945650577545, 0.057174354791641235, 0.023263396695256233, 0.019628897309303284, 0.0018952341051772237, -0.02817278727889061, -0.06482495367527008, -0.012729113921523094, -0.02761741168797016, -0.01926336996257305, 0.02301037311553955, -0.012886366806924343, 0.0011037634685635567, -0.04897487163543701, 0.029866907745599747, 0.0007327291532419622, 0.03368476778268814, 0.0029387003742158413, 0.09148194640874863, -0.021529603749513626, -0.02738119475543499, -0.007296825293451548, 0.02025950513780117, 0.036606598645448685, -0.012855758890509605, 0.003839898621663451, 0.042834460735321045, 0.060163699090480804, -0.01865556463599205, 0.01013844832777977, -0.004786819685250521, 0.019265340641140938, 0.044084399938583374, 0.036761511117219925, -0.025045428425073624, 0.02330891601741314, 0.0035810922272503376, 0.008701471611857414, -0.008708610199391842, 0.00001886607424239628, 0.0017143575241789222, 0.012000277638435364, 0.01233197096735239, 0.013995622284710407, 0.020815324038267136, 0.022618873044848442, -0.022356880828738213, -0.044383369386196136, -0.05216581001877785, -0.025056995451450348, -0.023632187396287918, 0.01907288283109665, -0.05951741337776184, -0.0013554382603615522, 0.01013197097927332, -0.001678815227933228, -0.01671283133327961, 0.05736348032951355, 0.0028285717125982046, 0.009299012832343578, -0.007997306063771248, 0.02309194952249527, -0.013520936481654644, 0.02258353866636753, 0.0002256934531033039, -0.0182673167437315, -0.0016186184948310256, -0.030075864866375923, 0.009851682931184769, -0.019684970378875732, 0.005700228735804558, -0.013868249021470547, -0.05140744894742966, -0.006510160397738218, 0.04097738489508629, 0.021085238084197044, 0.07275839149951935, 0.008539199829101562, -0.049861740320920944, -0.010702542029321194, -0.027045229449868202, 0.011833777651190758, 0.002400430152192712, 0.020564129576086998, -0.020054608583450317, -0.025257915258407593, 0.011749357916414738, 0.053931787610054016, 0.010137374512851238, -0.005457347258925438, 0.037167828530073166, 0.02979608066380024, -0.02645721659064293, -0.015211899764835835, 0.02848850004374981, 0.022716660052537918, 0.05610990524291992, 0.005645723082125187, -0.0015095267444849014, 0.018263518810272217, 0.0080527039244771, 0.04567323997616768, -0.02965250238776207, 0.0024439371190965176, -0.005766283255070448, -0.044006362557411194, -0.0026769889518618584, -0.006401786580681801, -0.024756690487265587, 0.017949456349015236, -0.018761765211820602, -0.0013425271026790142, -0.04595775902271271, -0.0095558762550354, 0.003925624303519726, -0.03999001905322075, 0.016489556059241295, 0.03664611652493477, -0.0024959519505500793, -0.014451045542955399, 0.002044370397925377, 0.03354676812887192, 0.00007013489084783942, -0.03084144927561283, 0.0001510568254161626, -0.00011894026101799682, -0.014596580527722836, -0.04006267338991165, 0.011161050759255886, -0.0008708648383617401, -0.05001576244831085, 0.012639787979424, 0.03569409251213074, 0.03802347183227539, 0.028309445828199387, 0.0009317848598584533, 0.003886226797476411, -0.013687048107385635, 0.033407460898160934, 0.009657027199864388, 0.009816625155508518, -0.00819548312574625, -0.01077423244714737, -0.06490013748407364, 0.03803987056016922, -0.01413901336491108, 0.001527245156466961, 0.021308284252882004, -0.02399882674217224, 0.01712995581328869, 0.0358114168047905, 0.03644154593348503, -0.012994565069675446, 0.009978902526199818, -0.054072219878435135, -0.016644984483718872, 0.01170570868998766, -0.022943053394556046, -0.030739622190594673, -0.04996322840452194, 0.06478516012430191, 0.03191547840833664, 0.03676903620362282, -0.006697969976812601, -0.018029971048235893, 0.008265545591711998, 0.045135919004678726, -0.02127036452293396, 0.034946393221616745, 0.00628354586660862, -0.006128157489001751, 0.019625384360551834, -0.02388484589755535, 0.023424668237566948 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
Transformers With the release of Transformers 4.33, you can use Falcon 180B and leverage all the tools in the HF ecosystem, such as: - training and inference scripts and examples - safe file format (safetensors) - integrations with tools such as bitsandbytes (4-bit quantization), PEFT (parameter efficient fine-tuning) and GPTQ - assisted generation (also known as “speculative decoding”) - RoPE scaling support for larger context lengths - rich and powerful generation parameters Use of the model requires you to accept its license and terms of use. Please, make sure you are logged into your Hugging Face account and ensure you have the latest version of transformers: bash pip install --upgrade transformers huggingface-cli login
[ 0.0014356754254549742, -0.04031962901353836, 0.06209036707878113, 0.008049286901950836, 0.06506025791168213, 0.04157043620944023, -0.0004758494033012539, 0.06281567364931107, -0.020365813747048378, -0.03571951016783714, -0.10649183392524719, 0.08346018940210342, -0.050175007432699203, 0.019354891031980515, 0.014411930926144123, -0.05084194615483284, 0.010706010274589062, 0.0016561575466766953, -0.029905550181865692, 0.009073169901967049, 0.029839230701327324, -0.11578963696956635, 0.002628578804433346, -0.006301602348685265, 0.01690196618437767, -0.09887722879648209, 0.040124475955963135, 0.026340244337916374, 0.011043063364923, 0.07612074911594391, -0.07829547673463821, -0.016413351520895958, 0.0028924487996846437, -0.06169067323207855, 0.01657492108643055, 0.06452103704214096, -0.1423172652721405, 0.020970838144421577, 0.014604981057345867, -0.03502273932099342, 0.05170471966266632, -0.03504277765750885, -0.044566549360752106, -0.011950330808758736, 0.039676785469055176, -0.01589067466557026, -0.17426620423793793, 0.07275274395942688, -0.0019609781447798014, -0.04211059585213661, -0.0609607994556427, 0.10466372221708298, -0.040621303021907806, -0.05903350189328194, 0.09366986155509949, -0.013309229165315628, -0.06211884319782257, -0.07931556552648544, 0.02188706211745739, 0.05516275390982628, 0.029059210792183876, -0.017259133979678154, -0.01691790670156479, 0.0668647438287735, 0.020397458225488663, -0.023164918646216393, -0.019702566787600517, -0.04911987856030464, -0.044947683811187744, 0.008507831953465939, 0.02331668511033058, 0.020908726379275322, -0.048405569046735764, -0.0738271027803421, -0.03119034692645073, -0.09614219516515732, -0.02678660862147808, 0.06432058662176132, 0.0618201419711113, 0.04425468668341637, 0.05075672268867493, 0.039417341351509094, 0.04544234275817871, 0.016331840306520462, 0.013401086442172527, 0.016721080988645554, 0.05857240781188011, -0.011658658273518085, -0.0638481006026268, 0.07217047363519669, -0.0029388414695858955, -0.15170523524284363, -0.05583445727825165, -0.021537186577916145, 0.02746734581887722, 0.0072521851398050785, -0.004554819315671921, 0.052407991141080856, 0.037881772965192795, -0.032966140657663345, -0.03673887997865677, 0.00824364647269249, 0.006300062406808138, -0.08176448196172714, 0.030198659747838974, -0.009821109473705292, -0.03568890318274498, -0.09400293231010437, -0.014248345978558064, -0.012000166811048985, 0.04991705343127251, -0.06140132620930672, 0.022414442151784897, 0.04185281693935394, -0.06768332421779633, 0.023135457187891006, 0.0016288838814944029, -0.04616730660200119, 0.015035261400043964, -0.018027344718575478, 0.019932806491851807, 0.09228555858135223, -0.03065825253725052, 0.01497643906623125, 0.02949707582592964, 0.06824353337287903, 0.020113961771130562, -0.03491341322660446, 0.015544875524938107, -0.02456982061266899, 0.02326413057744503, -0.05780056491494179, 0.03420952335000038, -0.021578349173069, -0.0014090160839259624, -0.07539662718772888, -0.016538361087441444, -0.10229498893022537, -0.04297260195016861, 0.008700789883732796, -0.002804490504786372, 0.06542158126831055, 0.025731254369020462, -0.023267628625035286, 0.017811667174100876, -0.034953996539115906, -0.06939281523227692, 0.08402229845523834, -0.000015979312593117356, 0.007602745201438665, -0.010924272239208221, 0.05667169764637947, -0.01572311669588089, -0.05852305889129639, 0.029340041801333427, 0.029185660183429718, 0.0012772621121257544, 0.00037425797199830413, -0.049519944936037064, -0.0729294866323471, -0.029785849153995514, -0.05497893691062927, -0.022376636043190956, -0.02051752619445324, 0.026820078492164612, -0.030194364488124847, -0.021180162206292152, 0.002892376622185111, -0.00995088554918766, -0.009392679668962955, 0.05070033296942711, 0.0063486481085419655, 0.08687060326337814, -0.034839022904634476, -0.0003168336988892406, 0.06509719789028168, 0.0648588314652443, 0.07107973098754883, 0.02603323571383953, 0.007328807841986418, -0.0534382238984108, 0.05575594678521156, 0.0188152939081192, 0.06575218588113785, 0.022591736167669296, -0.07185535877943039, 0.02855093777179718, 0.02628413960337639, 0.05801184102892876, 0.09254413098096848, -0.04747878387570381, -0.013756031170487404, 0.10187529027462006, -0.011361353099346161, 0.07345057278871536, -0.03309716656804085, -0.021399635821580887, 0.12749572098255157, 0.025852791965007782, 0.020888784900307655, -0.005819911137223244, 0.007862202823162079, 0.05331471934914589, -0.04725047945976257, -0.021671714261174202, 0.033945437520742416, 0.019646380096673965, -0.019897054880857468, 0.002399608725681901, 0.015034088864922523, 0.06712690740823746, -0.07780904322862625, 0.03818764165043831, -0.08347576856613159, 0.02594691328704357, -0.0618075393140316, -0.035795751959085464, -0.005435317754745483, 0.004540356807410717, -0.024319292977452278, 0.11561471223831177, -0.00013401541218627244, -0.013385220430791378, -0.07776489108800888, -0.018913326784968376, 0.00982401892542839, 0.05574481561779976, 0.020054221153259277, 0.010225106030702591, -0.07190723717212677, -0.012156224809587002, -0.04313202202320099, -0.04795491322875023, 0.020934680476784706, -0.008162621408700943, -0.04454711079597473, 0.0024974634870886803, 0.012280996888875961, 0.045899104326963425, -0.005739361979067326, -0.012003730051219463, 0.026430973783135414, 0.0070085301995277405, 0.006706390995532274, 0.009995002299547195, -0.022528579458594322, 0.044597651809453964, 0.05234909430146217, -0.0031005318742245436, -0.004143855534493923, -0.08019412308931351, 0.05915600061416626, 0.014074831269681454, -0.029724230989813805, -0.004991742316633463, 0.04202358424663544, 0.02706061117351055, 0.006717449054121971, -0.017509564757347107, 0.014059405773878098, 0.02362176775932312, 0.01393057405948639, -0.00960041955113411, -0.025503860786557198, -0.012399943545460701, -0.022207798436284065, -0.015419596806168556, 0.015153184533119202, -0.015614058822393417, -0.022682948037981987, 0.008578398264944553, -0.06370288133621216, 0.019251223653554916, 0.022170092910528183, 0.01713518425822258, 0.028774116188287735, 0.10837530344724655, 0.016147121787071228, -0.03266172111034393, 0.020371096208691597, 0.01886448636651039, -0.001569994492456317, 0.029049769043922424, 0.019269203767180443, 0.003707005875185132, 0.009781796485185623, -0.015650523826479912, -0.04441571235656738, -0.037349991500377655, 0.011431673541665077, 0.02925661765038967, 0.03309151902794838, -0.0008771503926254809, -0.007910133339464664, -0.017820019274950027, 0.030072234570980072, -0.003963267896324396, 0.040308624505996704, -0.02571776695549488, 0.015246400609612465, 0.017714357003569603, -0.012072140350937843, 0.00877314992249012, -0.014086571522057056, 0.004095245618373156, 0.011106869205832481, 0.016709480434656143, -0.0007364939665421844, -0.09936828911304474, -0.048478227108716965, -0.014194625429809093, 0.01726793497800827, -0.017062220722436905, -0.030390629544854164, 0.043860383331775665, -0.008468945510685444, 0.04364515095949173, -0.005167946685105562, 0.007701259572058916, 0.0007117404020391405, 0.02802676148712635, 0.012196309864521027, -0.027224116027355194, -0.027478285133838654, 0.010076652280986309, -0.02393578551709652, 0.018363263458013535, 0.02796269580721855, -0.02921733818948269, 0.043051429092884064, 0.03617595508694649, -0.031338486820459366, -0.008521156385540962, -0.019049784168601036, 0.04798760265111923, 0.0088586937636137, -0.011358699761331081, -0.049593254923820496, 0.029033174738287926, -0.02948250062763691, -0.0051010907627642155, 0.03964591771364212, -0.011561772786080837, -0.02863890677690506, -0.03500068560242653, -0.00672127166762948, 0.051438093185424805, -0.007581041660159826, 0.017837969586253166, -0.0012958248844370246, -0.013174050487577915, -0.004262203816324472, -0.0005197965074330568, 0.0030246968381106853, -0.03148292750120163, -0.012330593541264534, 0.03130686655640602, -0.011752072721719742, -0.029615482315421104, -0.023814350366592407, 0.014824639074504375, 0.03613372892141342, 0.01974627934396267, 0.03609711676836014, 0.0008884704438969493, 0.04157093167304993, 0.019628481939435005, 0.019472572952508926, -0.09842231869697571, -0.009698992595076561, -0.024016620591282845, -0.02716122195124626, -0.018525639548897743, 0.06914127618074417, 0.009614735841751099, -0.02634970098733902, 0.007298614364117384, 0.012997196055948734, -0.003933258354663849, 0.02337532863020897, 0.017511460930109024, 0.007253364194184542, -0.010796783491969109, 0.0009186860406771302, -0.026673126965761185, -0.019906358793377876, 0.05535154417157173, 0.014482920989394188, -0.03216967731714249, -0.055198583751916885, -0.034892696887254715, -0.01907469518482685, 0.003749383147805929, 0.02313450537621975, 0.027803029865026474, -0.027706652879714966, 0.04123541712760925, 0.0193313155323267, 0.023804616183042526, -0.03868088498711586, 0.02804958075284958, -0.023825012147426605, -0.031055700033903122, 0.009328771382570267, 0.010958468541502953, -0.002826226642355323, -0.00123356725089252, 0.010231288149952888, 0.03101811558008194, -0.06772821396589279, 0.001862452132627368, -0.05197778344154358, -0.05507199838757515, 0.01058516651391983, -0.02993488684296608, -0.029854848980903625, 0.00017286042566411197, 0.03660671040415764, 0.04130718111991882, -0.02141483500599861, -0.031082194298505783, -0.01747347228229046, -0.00033823514240793884, 0.029690520837903023, -0.039973217993974686, -0.03237738832831383, -0.0547446645796299, 0.046809494495391846, -0.020453229546546936, 0.022290056571364403, -0.002169038401916623, -0.039796382188797, -0.011325919069349766, -0.005370447877794504, 0.056848082691431046, 0.04009249433875084, -0.015694471076130867, -0.006853950209915638, 0.015029920265078545, -0.028448348864912987, 0.015690453350543976, 0.022273100912570953, 0.030140116810798645, 0.0231422558426857, -0.032519157975912094, 0.0236778873950243, -0.010421042330563068, -0.037490468472242355, -0.024251272901892662, 0.03414684161543846, 0.05274316295981407, -0.03601111099123955, 0.021861877292394638, 0.006612736731767654, -0.009282867424190044, -0.010001512244343758, -0.006902692839503288, 0.019825169816613197, 0.028968246653676033, -0.01170472800731659, -0.022996829822659492, 0.03570392355322838, 0.026955893263220787, -0.03845459967851639, 0.012007730081677437, 0.004279331304132938, 0.02096971496939659, 0.04365094378590584, 0.03939264267683029, 0.030540212988853455, -0.029523000121116638, -0.002641251077875495, 0.01955968514084816, 0.029898468405008316, -0.01759553886950016, -0.04696132242679596, -0.04207517206668854, 0.009895055554807186, -0.01367206685245037, -0.008813723921775818, 0.017840083688497543, -0.024455342441797256, -0.06148078665137291, 0.06787575781345367, 0.056577060371637344, 0.013526509515941143, 0.019623003900051117, 0.039970096200704575, -0.002121097408235073, -0.037757471203804016, 0.05335518345236778, -0.027402758598327637, 0.026040134951472282, 0.026582200080156326, 0.0376572422683239, 0.05448403209447861, 0.03121965192258358, -0.0064705414697527885, 0.0032124368008226156, -0.04010223597288132, 0.006731028202921152, -0.012728228233754635, -0.030450616031885147, -0.03846113011240959, 0.013429391197860241, 0.008684651926159859, 0.008882839232683182, -0.026034845039248466, 0.01840529777109623, 0.0473763607442379, -0.005763102322816849, -0.020876100286841393, 0.04064011201262474, -0.019103161990642548, -0.0023188013583421707, -0.01037241518497467, 0.03157469630241394, -0.03161920979619026, 0.028345653787255287, -0.011125353164970875, 0.030725236982107162, 0.00969897024333477, 0.01193067617714405, -0.036017291247844696, 0.016588745638728142, -0.006265555042773485, -0.005218708887696266, 0.03220852091908455, -0.043902598321437836, -0.013817843049764633, 0.0032329719979315996, -0.000034407348721288145, 0.03582160919904709, -0.014531385153532028, 0.013838378712534904, 0.006469937041401863, 0.005172974430024624, 0.01870732381939888, 0.04700083285570145, 0.00894147902727127, 0.025689978152513504, 0.023935312405228615, -0.0025313724763691425, 0.048366039991378784, -0.05465107038617134, 0.004210892133414745, 0.04165217652916908, 0.01676979474723339, 0.02238628640770912, -0.031836774200201035, 0.0009805957088246942, -0.020619554445147514, -0.046235091984272, 0.03426569327712059, 0.041554659605026245, -0.03554558753967285, -0.007587722036987543, -0.016101546585559845, -0.007680918090045452, 0.014902188442647457, 0.03847154974937439, 0.033219534903764725, 0.011639042757451534, 0.013448938727378845, 0.011566915549337864, 0.017390768975019455, -0.02199593558907509, 0.005545911379158497, 0.006743196398019791, -0.029705798253417015, -0.015332386828958988, 0.03403564170002937, -0.02153635583817959, 0.02762109600007534, -0.02074623480439186, -0.008192839100956917, -0.009527371264994144, 0.02165958099067211, -0.01106652244925499, 0.03689117729663849, 0.022964097559452057, 0.036872100085020065, -0.03199602663516998, -0.015452726744115353, 0.07956159859895706, 0.02175918221473694, 0.009568174369633198, 0.006001222878694534, 0.024783233180642128, 0.05693274363875389, 0.04165102541446686, -0.02015547640621662, 0.009055900387465954, 0.014732708223164082, 0.0739504024386406, 0.010234524495899677, 0.011676786467432976, 0.033915355801582336, -0.018869474530220032, -0.021462246775627136, -0.03677232190966606, -0.017729174345731735, -0.03408518433570862, -0.010159024968743324, 0.0034923232160508633, -0.046832580119371414, 0.01575697585940361, -0.044094767421483994, 0.04393488168716431, 0.030792567878961563, 0.0210855882614851, -0.0030780048109591007, 0.05328281223773956, 0.00008392387826461345, 0.014541002921760082, 0.0052801393903791904, 0.022396236658096313, 0.06691767275333405, 0.003292757784947753, 0.045625150203704834, 0.014914981089532375, 0.035605333745479584, -0.004329003859311342, 0.002257087267935276, -0.0012650355929508805, -0.004739579278975725, -0.005042796488851309, 0.018420269712805748, 0.0016672462224960327, -0.027763068675994873, -0.015103674493730068, 0.033513281494379044, -0.029129402711987495, 0.009492859244346619, 0.005364249460399151, 0.007529747672379017, -0.04266980290412903, -0.014138021506369114, 0.004377792589366436, 0.039160724729299545, -0.007387946359813213, -0.005362838041037321, -0.002830534242093563, 0.003557666903361678, 0.03752082586288452, 0.058795854449272156, -0.007062610238790512, -0.03476810082793236, -0.014105381444096565, -0.02780642919242382, -0.007825328968465328, 0.042829856276512146, -0.011121280491352081, -0.00279640662483871, -0.024275848641991615, 0.039536233991384506, 0.007144823204725981, 0.030629636719822884, 0.027300845831632614, 0.0022711718920618296, -0.043551139533519745, 0.0017753884894773364, 0.012190300971269608, -0.008637421764433384, -0.03309117257595062, -0.04479724168777466, 0.018909825012087822, -0.029851382598280907, 0.008793138898909092, 0.04639264941215515, 0.06537409871816635, -0.03210403025150299, -0.047060515731573105, -0.024436619132757187, -0.008699183352291584, -0.017419740557670593, 0.01366901583969593, -0.019036902114748955, -0.012734188698232174, -0.019412536174058914, -0.014277416281402111, 0.02500443533062935, -0.005780059844255447, 0.022682590410113335, 0.03764563798904419, 0.003734563011676073, -0.01546565629541874, -0.012883004732429981, 0.04226144403219223, 0.020461374893784523, 0.02325848862528801, 0.01935390941798687, 0.019233934581279755, 0.017444057390093803, -0.024618705734610558, -0.002190213417634368, -0.02945341169834137, 0.010108524933457375, -0.024662453681230545, -0.037178657948970795, -0.014094196259975433, -0.010242976248264313, 0.015472687780857086, 0.016437361016869545, -0.026059646159410477, -0.004442271776497364, -0.06680726259946823, 0.005831460934132338, 0.005133648868650198, -0.024332134053111076, 0.036286644637584686, 0.04656955227255821, 0.029175754636526108, -0.029830070212483406, -0.007608065847307444, 0.011738740839064121, -0.0065430523827672005, -0.010138090699911118, 0.05512383580207825, 0.02980518713593483, -0.006032909732311964, -0.03399531543254852, -0.017311247065663338, 0.023136036470532417, -0.04609072580933571, 0.0038396185263991356, 0.04190340265631676, -0.005843748804181814, -0.0010337976273149252, -0.0059710475616157055, 0.0058671655133366585, 0.017111442983150482, 0.013589668087661266, -0.020017558708786964, 0.006770458072423935, -0.01599493809044361, -0.004623245447874069, -0.03870148956775665, 0.01979827880859375, -0.04046442359685898, 0.016334116458892822, 0.013974158093333244, 0.008822161704301834, -0.018826143816113472, 0.03312426060438156, -0.013400795869529247, -0.016474789008498192, -0.01533781923353672, -0.04515475779771805, -0.038232479244470596, 0.009970479644834995, 0.03766029700636864, -0.023487932980060577, -0.0479457825422287, 0.011265377514064312, 0.022398922592401505, -0.025030946359038353, -0.004602604545652866, -0.006963933818042278, 0.01370300818234682, -0.016152603551745415, -0.000983879086561501, 0.0024097049608826637, 0.03738721087574959, 0.015013820491731167, -0.0022119442000985146, -0.022663528099656105, -0.0013043041108176112 ]
Spread Your Wings: Falcon 180B is here
philschmid
September 6, 2023
falcon-180b
nlp, community, research, LLM
https://huggingface.co/blog/falcon-180b
# Spread Your Wings: Falcon 180B is here
[ 0.05213549733161926, 0.012087388895452023, 0.09686439484357834, -0.0058073000982403755, 0.11057988554239273, 0.010231156833469868, 0.02158953994512558, 0.08264289051294327, -0.056167230010032654, -0.08950944244861603, -0.06458260118961334, 0.010464618913829327, -0.01064231712371111, 0.01730438880622387, 0.04090530797839165, 0.025228340178728104, -0.0002966343890875578, 0.0006711532478220761, 0.011686453595757484, -0.027980979532003403, -0.01188603788614273, -0.04475875943899155, 0.036408431828022, -0.054721493273973465, 0.003264846047386527, 0.014985170215368271, 0.054683867841959, 0.04469248652458191, -0.06377717852592468, 0.07227208465337753, 0.02909899689257145, -0.022319285199046135, 0.05351972207427025, -0.0286090224981308, 0.008819765411317348, 0.04535394161939621, -0.04299383610486984, 0.02593718282878399, 0.01939944364130497, -0.08687199652194977, 0.01196432113647461, -0.05628568306565285, 0.024537064135074615, -0.00722822081297636, -0.02940283715724945, -0.026780931279063225, -0.24941416084766388, 0.11239907890558243, 0.03728066384792328, -0.0157175250351429, -0.02897365763783455, 0.05258527398109436, -0.07890426367521286, -0.062369562685489655, 0.07597068697214127, 0.007032395340502262, -0.03937310725450516, -0.03668172284960747, -0.03141240403056145, -0.04464014247059822, 0.12293148040771484, 0.024948831647634506, 0.04442331939935684, 0.04962591454386711, -0.036033809185028076, 0.025507356971502304, -0.01031685434281826, 0.01552943792194128, -0.08835884183645248, 0.023264531046152115, 0.0056655071675777435, -0.011883447878062725, -0.007382640615105629, -0.050038158893585205, 0.06419625878334045, -0.11388599127531052, -0.01508247572928667, 0.057106148451566696, 0.08467720448970795, 0.05337633192539215, 0.06815456598997116, -0.0033219102770090103, 0.06483776122331619, 0.0735461637377739, -0.04559248685836792, -0.02534511126577854, 0.02720964513719082, -0.03489670529961586, -0.011146311648190022, 0.016382429748773575, -0.06511896103620529, -0.11406654119491577, 0.030780738219618797, 0.040785953402519226, 0.060053881257772446, -0.07241766899824142, 0.02378842607140541, 0.001863347366452217, 0.05781719461083412, -0.033130351454019547, -0.027007276192307472, -0.00908250268548727, 0.02395920269191265, -0.03581413999199867, 0.012574410997331142, 0.016302132979035378, -0.011028168722987175, -0.044276200234889984, -0.033022280782461166, -0.012454577721655369, -0.023073943331837654, 0.01584409736096859, -0.023321490734815598, -0.025391383096575737, -0.05756490305066109, 0.032663118094205856, 0.03206021338701248, -0.020830288529396057, -0.005270709283649921, -0.0023791149724274874, -0.005955902393907309, 0.15498407185077667, 0.007160451728850603, 0.05988533794879913, 0.027132917195558548, 0.02876516617834568, -0.012263022363185883, 0.05175536870956421, -0.04261663928627968, -0.06968190521001816, 0.017430119216442108, 0.013809749856591225, 0.014469020999968052, -0.00989868026226759, -0.015595252625644207, -0.0629817470908165, -0.005242497660219669, 0.007217502687126398, 0.09382639080286026, -0.026223473250865936, -0.02517329342663288, 0.04396113380789757, -0.017675014212727547, 0.0900764986872673, 0.04497664049267769, -0.029221219941973686, -0.02332485280930996, -0.010440133512020111, -0.01689700037240982, 0.0038019935600459576, -0.006133039947599173, 0.04440915957093239, -0.0035186689347028732, -0.0904914140701294, 0.044136371463537216, 0.06218012794852257, 0.008303357288241386, -0.02823732979595661, -0.027019377797842026, 0.012683596462011337, 0.05079805478453636, -0.03355984762310982, 0.014848260208964348, -0.021938381716609, 0.025446981191635132, 0.008569763042032719, 0.03465660288929939, -0.03303969278931618, -0.008730299770832062, -0.12721887230873108, -0.02233697660267353, -0.009255653247237206, 0.01647353172302246, -0.01834099367260933, -0.052741240710020065, 0.017530981451272964, 0.08377989381551743, 0.015150070190429688, -0.012314868159592152, 0.03824363276362419, -0.030870474874973297, -0.009463234804570675, 0.010259207338094711, 0.030203089118003845, -0.041433025151491165, -0.035820119082927704, 0.0007783416658639908, 0.01601060852408409, 0.011509671807289124, 0.06268095225095749, -0.12209004908800125, -0.05382278934121132, 0.04408969730138779, 0.03474434092640877, -0.018486032262444496, -0.07069653272628784, -0.02058769017457962, 0.07807710021734238, 0.04260732978582382, 0.05431882292032242, 0.0016311806393787265, 0.02900657057762146, 0.08327183872461319, -0.03494523465633392, -0.06720370054244995, 0.04401775076985359, 0.058457937091588974, -0.023876160383224487, -0.00011572829680517316, 0.010037590749561787, -0.0009862007573246956, -0.026457346975803375, 0.044128455221652985, -0.10006505250930786, -0.018459739163517952, -0.059061869978904724, -0.019624970853328705, 0.00016806415806058794, -0.014182297512888908, -0.06067913398146629, 0.051958274096250534, 0.037937551736831665, -0.009910239838063717, -0.03857526183128357, 0.02369033545255661, 0.031637128442525864, 0.07670285552740097, -0.03493376076221466, -0.007489800453186035, -0.04646778106689453, -0.03107961267232895, 0.015778696164488792, -0.027068473398685455, 0.07826120406389236, 0.01685633882880211, 0.021781357005238533, 0.03471929207444191, -0.06364884972572327, 0.07349029928445816, -0.06933637708425522, -0.015263909474015236, 0.013969890773296356, 0.020766573026776314, 0.019014036282896996, -0.09063263982534409, -0.05652833729982376, 0.04359891265630722, -0.025382641702890396, -0.0024464158341288567, 0.02116364613175392, -0.05274864286184311, 0.019447363913059235, 0.04681054502725601, -0.02252786047756672, 0.047062475234270096, 0.031605206429958344, -0.011303845793008804, -0.03007993847131729, -0.0325162298977375, -0.02649763412773609, 0.03488137573003769, -0.03347739577293396, 0.024492939934134483, -0.017703227698802948, -0.017892401665449142, 0.037981968373060226, -0.01321125403046608, 0.024238834157586098, -0.012058892287313938, 0.018599946051836014, -0.0044336398132145405, -0.05563848093152046, 0.0471976213157177, 0.02028162218630314, -0.014672857709228992, 0.0002449942985549569, 0.07262501120567322, -0.009207564406096935, -0.03250860422849655, -0.024892499670386314, 0.01900867000222206, 0.016600163653492928, 0.030339134857058525, 0.00017252804536838084, 0.026780756190419197, -0.02550949715077877, 0.026407252997159958, 0.020780662074685097, -0.000966574705671519, 0.006370309740304947, 0.04256245121359825, 0.050788167864084244, 0.015367554500699043, 0.009847010485827923, 0.013974485918879509, -0.05354347452521324, 0.015256278216838837, 0.03785628452897072, -0.04861631989479065, -0.02004564367234707, 0.025258339941501617, 0.006254097912460566, -0.02850235626101494, -0.01713895983994007, -0.01727740466594696, 0.039073143154382706, 0.0448315255343914, 0.020754871889948845, -0.1389075666666031, -0.06742598861455917, -0.00015392147179227322, -0.001551730907522142, -0.017019061371684074, 0.0025278651155531406, 0.03426363319158554, -0.0702841505408287, -0.0173319224268198, 0.0002583380846772343, -0.01188487745821476, -0.011938522569835186, 0.009358511306345463, -0.04339529946446419, -0.06201118975877762, 0.016512230038642883, 0.00457976758480072, -0.01675836741924286, -0.021386174485087395, 0.03582791984081268, -0.021765854209661484, 0.035482607781887054, -0.01139901578426361, -0.014820069074630737, -0.012301801703870296, 0.027548734098672867, 0.019058506935834885, 0.02294689044356346, 0.010654838755726814, -0.012351630255579948, -0.03176378086209297, 0.05645110085606575, -0.028035983443260193, 0.0033580451272428036, -0.028293222188949585, 0.012963657267391682, 0.0008545906748622656, -0.04390595108270645, -0.004719686694443226, 0.02617826499044895, 0.0032958819065243006, -0.023852257058024406, 0.01148181688040495, -0.011107394471764565, -0.003877360373735428, -0.01591026410460472, 0.011547379195690155, 0.024788033217191696, 0.0596686527132988, -0.021965892985463142, -0.010165391489863396, -0.004782677162438631, 0.02049613744020462, 0.0413568951189518, -0.004140621516853571, -0.027252662926912308, -0.016567271202802658, 0.026010336354374886, 0.060734570026397705, -0.010257648304104805, -0.0311603844165802, 0.006778416223824024, 0.004265645984560251, 0.049575433135032654, -0.00786083098500967, 0.026884306222200394, 0.012316844426095486, -0.0033216907177120447, -0.013234490528702736, 0.011686126701533794, 0.011907890439033508, -0.033993806689977646, -0.025005033239722252, 0.019214922562241554, 0.0337112732231617, 0.018065983429551125, -0.03346221521496773, 0.010026226751506329, 0.010662797838449478, 0.006000020075589418, 0.00965009443461895, -0.029666578397154808, -0.015574827790260315, -0.043133027851581573, -0.018384389579296112, 0.014086334966123104, 0.006639005150645971, -0.021496903151273727, -0.00017593886877875775, 0.03326667100191116, 0.027060480788350105, -0.016277989372611046, 0.03123989887535572, 0.0011275650467723608, 0.0002092042996082455, 0.007883972488343716, 0.04042341932654381, -0.028978293761610985, 0.017977988347411156, -0.0105145163834095, 0.030786927789449692, -0.04817415773868561, -0.0063172997906804085, 0.002398210112005472, -0.002679872792214155, 0.03207140043377876, -0.022154731675982475, -0.0393456369638443, -0.02169751562178135, 0.030537612736225128, 0.05325735732913017, -0.017814969643950462, 0.0011633731191977859, -0.0046652150340378284, -0.024899188429117203, 0.01143551990389824, -0.04036516323685646, -0.04841388761997223, -0.062365539371967316, 0.006127313245087862, -0.014799244701862335, 0.025150341913104057, 0.01379239372909069, -0.030305957421660423, -0.05664559453725815, 0.024984678253531456, 0.035316213965415955, -0.0191266518086195, 0.020298248156905174, -0.012465852312743664, -0.008148803375661373, -0.013878990896046162, 0.009142498485744, -0.029587900266051292, 0.018630467355251312, 0.020435994490981102, -0.024173816666007042, 0.03864268958568573, 0.033746879547834396, -0.09142289310693741, -0.03464381769299507, 0.03898828476667404, 0.037636760622262955, -0.011989905498921871, 0.024790601804852486, 0.032089438289403915, -0.03341130167245865, 0.0051082102581858635, -0.00822045374661684, 0.03986826539039612, 0.02278776280581951, 0.010692877694964409, 0.003143279580399394, 0.0338272899389267, 0.010740093886852264, 0.028570426627993584, 0.025812938809394836, -0.0145299406722188, -0.006787754129618406, 0.03854246065020561, -0.023769600316882133, -0.011671395041048527, -0.03754553943872452, 0.026478730142116547, -0.010344186797738075, 0.011682748794555664, 0.0037479503080248833, -0.027748899534344673, -0.016904480755329132, 0.05610040947794914, -0.01082684751600027, -0.013188022188842297, -0.000690039130859077, -0.009157480672001839, 0.0018436843529343605, 0.021641910076141357, 0.006211831700056791, 0.03946861997246742, 0.027219058945775032, 0.013740427792072296, -0.030246559530496597, -0.00941478181630373, 0.04044141247868538, -0.018692564219236374, -0.039126668125391006, 0.00465053366497159, 0.011038752272725105, -0.00007857337914174423, 0.028732502833008766, 0.05159766227006912, -0.020768115296959877, -0.006046679802238941, -0.03343746438622475, -0.026787590235471725, 0.001792068942449987, 0.011970879510045052, 0.0021963356994092464, -0.008963361382484436, 0.0006727471482008696, -0.019503887742757797, 0.002151403808966279, 0.0037607999984174967, -0.004351062700152397, -0.00898206327110529, 0.010066239163279533, 0.030409054830670357, 0.011516452766954899, 0.011652166955173016, 0.010792752727866173, -0.014136772602796555, 0.0075434171594679356, -0.004283431451767683, 0.04012534022331238, -0.04412534087896347, -0.008476721122860909, -0.027411507442593575, -0.048552170395851135, -0.012599552050232887, 0.01294948160648346, 0.020336324349045753, 0.017987310886383057, 0.0030923732556402683, 0.006270513404160738, 0.030231768265366554, 0.008911430835723877, 0.0004719722201116383, 0.0018182422500103712, 0.017992420122027397, -0.026139894500374794, 0.04484717175364494, 0.01744101010262966, 0.02159368246793747, 0.032686829566955566, 0.016345461830496788, 0.033117249608039856, 0.03434275835752487, -0.06880470365285873, 0.015402492135763168, -0.015563825145363808, 0.012332222424447536, 0.0012375558726489544, -0.033169399946928024, -0.016370713710784912, -0.02750878967344761, -0.050972092896699905, 0.0043606506660580635, 0.03515467420220375, 0.007901971228420734, 0.024184895679354668, -0.022710781544446945, 0.013004268519580364, -0.0026861585211008787, 0.018813481554389, 0.003865489037707448, -0.0162041038274765, -0.005188964307308197, -0.014294258318841457, 0.005442336667329073, -0.006621612701565027, -0.019924670457839966, 0.01674048975110054, -0.00022974575404077768, 0.017023902386426926, 0.025401055812835693, 0.007130423095077276, 0.04050826281309128, 0.0053970408625900745, -0.004527245182543993, -0.013518684543669224, 0.005134739447385073, -0.010159224271774292, 0.023272333666682243, 0.03579285368323326, -0.019184505566954613, -0.019433284178376198, -0.004417710937559605, 0.0639154240489006, 0.06816336512565613, -0.01770230010151863, 0.025183159857988358, 0.018361689522862434, -0.006395359057933092, -0.010992849245667458, 0.0014795333845540881, -0.0463050901889801, 0.06464552879333496, 0.054631881415843964, 0.010819099843502045, 0.04580963775515556, 0.057462599128484726, 0.05575694516301155, -0.020189039409160614, -0.06452811509370804, 0.01186220534145832, -0.008337811566889286, 0.05075851455330849, 0.013584041967988014, -0.04946158081293106, 0.029798639938235283, -0.04447432607412338, 0.026750417426228523, -0.013897369615733624, -0.02311692386865616, 0.008687776513397694, -0.004734918475151062, 0.004973180126398802, -0.0033596705179661512, -0.003263278165832162, 0.01031076442450285, 0.01395193301141262, 0.003687842283397913, 0.03558256849646568, -0.019837433472275734, 0.004516953602433205, -0.014159206300973892, 0.0071521964855492115, 0.01055817399173975, -0.016450056806206703, 0.021326910704374313, -0.0009875919204205275, 0.015681803226470947, -0.007283862680196762, -0.016168277710676193, -0.012113146483898163, -0.03173983842134476, -0.04534301534295082, 0.049837466329336166, 0.05040533468127251, 0.007948826998472214, 0.01226053200662136, 0.006099093705415726, 0.002915781456977129, 0.004802119918167591, 0.03921637684106827, 0.0010449076071381569, 0.021936366334557533, 0.049735039472579956, 0.06025449186563492, -0.012297487817704678, -0.0010563891846686602, -0.02419726364314556, -0.013378938660025597, 0.027975261211395264, 0.001254224102012813, 0.03794261813163757, -0.01325085386633873, -0.024710532277822495, 0.009696855209767818, -0.01709739677608013, 0.017166147008538246, 0.020490318536758423, 0.03185274824500084, 0.0026257289573550224, 0.0043586730025708675, -0.017274577170610428, -0.011986814439296722, -0.0350516214966774, -0.03054005652666092, 0.0018429742194712162, 0.019273091107606888, -0.020382659509778023, 0.021146461367607117, 0.028336282819509506, -0.0364263579249382, -0.04754411056637764, 0.007851345464587212, -0.015159588307142258, -0.026429293677210808, 0.02735973708331585, 0.031086347997188568, -0.004239257425069809, -0.0033849989995360374, 0.010416079312562943, 0.016140615567564964, -0.024596264585852623, 0.00035122636472806334, -0.01259336993098259, 0.0075192139483988285, -0.02043718844652176, -0.013449188321828842, 0.019579172134399414, -0.000795898784417659, 0.044923994690179825, -0.006407331675291061, 0.07222799956798553, 0.015185532160103321, -0.046026017516851425, 0.015024368651211262, -0.002021688735112548, 0.017296336591243744, -0.022122014313936234, -0.024678992107510567, -0.021754426881670952, -0.06807136535644531, -0.01799033023416996, 0.005214165896177292, -0.04891398176550865, -0.005895453039556742, -0.003359355730935931, 0.00032194715458899736, -0.0066427988931536674, 0.005736400373280048, 0.025705991312861443, 0.003761323168873787, 0.03739944472908974, -0.023295266553759575, 0.020615963265299797, -0.016308506950736046, 0.011279769241809845, -0.040547534823417664, 0.019378235563635826, 0.030131252482533455, -0.00465526944026351, -0.01738450676202774, 0.054341502487659454, -0.0609443336725235, -0.04107898473739624, 0.029357561841607094, 0.0435665026307106, 0.0067287920974195, -0.017168119549751282, -0.010249639861285686, 0.01212417520582676, 0.001772903953678906, 0.010033384896814823, 0.014256349764764309, -0.025467507541179657, 0.0025623473338782787, -0.003888769308105111, -0.03168226405978203, 0.043595850467681885, -0.036729343235492706, -0.008891552686691284, 0.041787128895521164, 0.002179210539907217, -0.02600821480154991, 0.06953034549951553, -0.03704049810767174, -0.0017197566339746118, 0.011435482650995255, -0.028274167329072952, -0.010410734452307224, 0.012712537311017513, -0.021453961730003357, -0.022735819220542908, -0.06931078433990479, 0.05826932191848755, 0.020609769970178604, 0.005118794273585081, 0.0037681476678699255, -0.012386485934257507, 0.02542771026492119, 0.0345250703394413, 0.011749926954507828, 0.002164684934541583, 0.03009514883160591, -0.017676325514912605, 0.002284219954162836, 0.034141283482313156, 0.04893375188112259 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Training T2I-Adapter-SDXL with diffusers We built our training script on this official example provided by diffusers. Most of the T2I-Adapter models we mention in this blog post were trained on 3M high-resolution image-text pairs from LAION-Aesthetics V2 with the following settings: - Training steps: 20000-35000 - Batch size: Data parallel with a single GPU batch size of 16 for a total batch size of 128. - Learning rate: Constant learning rate of 1e-5. - Mixed precision: fp16 We encourage the community to use our scripts to train custom and powerful T2I-Adapters, striking a competitive trade-off between speed, memory, and quality.
[ 0.04420783743262291, 0.024901006370782852, -0.04543297737836838, -0.01349481102079153, 0.04318184033036232, -0.017737705260515213, -0.06479112058877945, 0.006704266183078289, 0.04754594340920448, -0.08511479943990707, -0.0014099585823714733, 0.04080578312277794, 0.05899258702993393, -0.01786298118531704, 0.008138974197208881, 0.009475949220359325, -0.04832017421722412, 0.06022722274065018, -0.01904205046594143, 0.05656469240784645, 0.025651339441537857, 0.026162587106227875, 0.008819433860480785, 0.029466303065419197, -0.03864303231239319, 0.012897397391498089, -0.04437708482146263, 0.02524532377719879, 0.04664454236626625, -0.03539159893989563, -0.05547734349966049, 0.03123987838625908, -0.012801029719412327, -0.10358832776546478, 0.05593547224998474, -0.03712093457579613, -0.05205264687538147, 0.042537249624729156, -0.0030895122326910496, -0.01508463267236948, -0.01939619891345501, -0.0023446399718523026, -0.03774218261241913, -0.004123598802834749, 0.02254226803779602, -0.0416501946747303, -0.08767306059598923, -0.0006621991051360965, -0.09394393861293793, 0.024195387959480286, -0.0844920426607132, 0.05402621254324913, 0.03447802737355232, -0.04480620101094246, 0.10720272362232208, 0.046106453984975815, 0.04407093673944473, 0.009641095995903015, 0.06628847122192383, 0.00035707722418010235, 0.026064053177833557, -0.026381472125649452, 0.024582326412200928, 0.022609934210777283, -0.012804250232875347, -0.06288204342126846, -0.023494312539696693, -0.014313612133264542, -0.032079946249723434, -0.09129896014928818, 0.006628846284002066, -0.004814610350877047, 0.038053032010793686, -0.0040085711516439915, 0.004892511758953333, -0.06079212948679924, -0.016744600608944893, 0.058994110673666, 0.06265974044799805, 0.031056784093379974, -0.03605848178267479, 0.002126475563272834, 0.019386043772101402, -0.02211786061525345, -0.07978232949972153, 0.016261784359812737, 0.04388083890080452, -0.044063810259103775, -0.032805364578962326, -0.009960890747606754, -0.03081549145281315, -0.04430757462978363, -0.00642416812479496, -0.030082903802394867, 0.03091696836054325, 0.03261854499578476, -0.024869583547115326, -0.012187737040221691, 0.07633139193058014, 0.011475796811282635, 0.02564079686999321, -0.010411522351205349, 0.060302525758743286, -0.08454599976539612, -0.0742671862244606, 0.0705067589879036, -0.05974441021680832, -0.03956207260489464, -0.03142593055963516, 0.055786848068237305, -0.01539407204836607, 0.0070199668407440186, -0.008607962168753147, 0.0408305823802948, -0.11114193499088287, 0.008973374962806702, -0.0007456838502548635, 0.046091724187135696, -0.05122888460755348, -0.010976619087159634, -0.07208599150180817, 0.07172081619501114, 0.07679372280836105, -0.07754085958003998, -0.08646347373723984, 0.043550003319978714, -0.05144568160176277, 0.056556034833192825, -0.05825705826282501, 0.014321479015052319, 0.0020552135538309813, -0.03421016409993172, 0.04662921279668808, -0.07078170031309128, 0.04581562429666519, -0.10615595430135727, -0.004001735243946314, -0.0033505905885249376, 0.028780538588762283, 0.07711025327444077, -0.011810238473117352, 0.08457442373037338, 0.0026700261514633894, -0.05408679321408272, -0.0072526815347373486, -0.0057526202872395515, -0.006031633820384741, 0.005489586852490902, -0.016997475177049637, 0.0017517268424853683, -0.13819333910942078, 0.08209140598773956, -0.06703408807516098, -0.0583343431353569, 0.09127087891101837, 0.04048899561166763, -0.005231043789535761, -0.03448759391903877, -0.07814852148294449, 0.03535756841301918, -0.0006473177927546203, -0.021976109594106674, -0.05476585030555725, 0.023519242182374, 0.030676279217004776, -0.0484498105943203, 0.020227212458848953, 0.06436462700366974, 0.04628525301814079, -0.08065573871135712, 0.06190317124128342, 0.02694677747786045, -0.04316888749599457, 0.047360535711050034, 0.002902340842410922, -0.0036833826452493668, 0.060067784041166306, 0.05868268758058548, -0.02993970923125744, -0.05792560055851936, -0.01378567237406969, 0.05038603022694588, -0.0413503460586071, -0.0038161862175911665, 0.03204009309411049, -0.06777498126029968, 0.0732254907488823, -0.021101687103509903, -0.017536615952849388, -0.012763318605720997, -0.012944852001965046, 0.05533433333039284, 0.055442746728658676, -0.03199684992432594, -0.008212846703827381, -0.08537554740905762, 0.017456265166401863, 0.067540243268013, 0.0035568897146731615, -0.0002880511456169188, 0.05767779052257538, -0.004889146890491247, -0.0016289099585264921, 0.04743659123778343, -0.001285930396988988, 0.0048282574862241745, 0.03236125782132149, 0.03652983903884888, 0.019521888345479965, 0.013925560750067234, -0.03399422764778137, -0.15507225692272186, -0.012622629292309284, 0.020899221301078796, 0.05259648337960243, 0.0015293119940906763, 0.006990589667111635, 0.024548597633838654, 0.06460301578044891, -0.026913024485111237, 0.11755501478910446, 0.0028318052645772696, -0.013996814377605915, -0.004434055183082819, -0.01846817508339882, 0.015768280252814293, 0.10239700973033905, -0.0022151374723762274, 0.032540254294872284, -0.07211080193519592, -0.08431869745254517, -0.055258795619010925, 0.03588072210550308, 0.01647808402776718, -0.018059832975268364, -0.010144432075321674, 0.042589880526065826, -0.026438577100634575, 0.026370437815785408, -0.03409392014145851, 0.016735726967453957, 0.030301015824079514, -0.04331463575363159, -0.01028924435377121, -0.01797385886311531, -0.014257309027016163, 0.03378637135028839, 0.03816595301032066, -0.028401322662830353, 0.02756378799676895, -0.0351855494081974, 0.017490195110440254, -0.030860360711812973, -0.057283464819192886, 0.05829721316695213, 0.018959198147058487, -0.0004388654779177159, 0.008063284680247307, 0.007624204270541668, 0.029133295640349388, -0.028512097895145416, 0.05006106570363045, -0.03474824130535126, -0.015844162553548813, 0.01332252286374569, -0.04002070426940918, 0.034268129616975784, -0.04087658226490021, -0.027263527736067772, 0.01898120902478695, 0.0020931486506015062, 0.019832337275147438, -0.0029564681462943554, -0.018192484974861145, -0.03505099564790726, -0.045443736016750336, 0.02736027166247368, 0.0074688163585960865, -0.01132049597799778, -0.08077274262905121, 0.04107312858104706, -0.014469610527157784, 0.03459395095705986, 0.021335436031222343, 0.019093293696641922, 0.020575139671564102, 0.0073118796572089195, -0.023239245638251305, -0.05538260564208031, -0.009253797121345997, 0.015711307525634766, 0.016561666503548622, 0.0037456725258380175, 0.011541884392499924, -0.00402531074360013, 0.05674136057496071, 0.014475598931312561, -0.031071892008185387, -0.0052676633931696415, 0.01127232238650322, 0.01562640443444252, 0.026441574096679688, -0.004275181796401739, -0.010455145500600338, -0.017916126176714897, -0.03351578116416931, -0.015125769190490246, 0.042258404195308685, -0.07121267169713974, 0.007637445814907551, 0.012346891686320305, -0.007439387030899525, 0.015488721430301666, -0.030109761282801628, 0.010880785062909126, -0.06268270313739777, 0.009589927271008492, 0.02308061346411705, 0.006620320957154036, 0.06206773221492767, 0.04042264074087143, -0.02082967571914196, 0.012542999349534512, 0.03924364224076271, -0.027453307062387466, -0.05995631217956543, 0.03444058448076248, 0.0089467978104949, -0.015753665938973427, -0.006575875449925661, 0.014080248773097992, 0.023875657469034195, -0.026539552956819534, 0.034090980887413025, 0.010375301353633404, -0.03438757732510567, 0.01159980334341526, 0.0075690848752856255, -0.026126332581043243, -0.010430224239826202, -0.03001081570982933, 0.004297297447919846, -0.03913647308945656, -0.009917430579662323, 0.024270053952932358, 0.01792604848742485, 0.03412877768278122, -0.010315525345504284, -0.013113506138324738, 0.011885501444339752, 0.04534149169921875, -0.017186269164085388, 0.04187241941690445, 0.009000767953693867, 0.016281088814139366, 0.017941268160939217, 0.012599561363458633, -0.00470947427675128, -0.02003486268222332, 0.04337361827492714, 0.010853410698473454, 0.0100212711840868, 0.01680774986743927, 0.01717809960246086, 0.04623652249574661, 0.06225370243191719, 0.05440841615200043, -0.079123854637146, -0.03002510592341423, -0.0027953607495874166, -0.01725398376584053, 0.05272470787167549, 0.007504475302994251, 0.040571995079517365, 0.020409587770700455, -0.03168054670095444, -0.05604882165789604, 0.025401582941412926, -0.02047448232769966, 0.026861703023314476, 0.03342943638563156, -0.006550269667059183, -0.028832992538809776, 0.006990040186792612, 0.005169108510017395, 0.005672307685017586, -0.006391438189893961, 0.03246025741100311, -0.006435721646994352, -0.008569087833166122, -0.03549681603908539, -0.030920667573809624, 0.03910261392593384, 0.01715206354856491, 0.004393009468913078, -0.036794234067201614, 0.01768270693719387, -0.0033320682123303413, 0.006038518622517586, 0.024598238989710808, 0.019963715225458145, 0.019882727414369583, 0.029435431584715843, -0.02211376652121544, 0.03579912334680557, 0.00661330996081233, 0.02019696682691574, 0.04665655270218849, 0.03600752726197243, -0.021437030285596848, -0.02019989676773548, -0.0069572837091982365, 0.001006369711831212, -0.006125280167907476, -0.04521860182285309, 0.0000878366336110048, -0.009089227765798569, 0.0243672002106905, 0.060498014092445374, -0.02499108947813511, 0.053011853247880936, 0.004810404498130083, -0.005048700608313084, 0.048424310982227325, -0.01777423731982708, 0.039125874638557434, -0.04940108209848404, -0.0044880216009914875, -0.009878439828753471, -0.006920288782566786, 0.011329418048262596, -0.03924369812011719, 0.03430254012346268, 0.025888334959745407, -0.007899390533566475, 0.02954849600791931, 0.04513679817318916, -0.05157088860869408, -0.06964356452226639, -0.054699938744306564, -0.016417929902672768, 0.01566113717854023, -0.04037202522158623, -0.03915579989552498, -0.04802006855607033, 0.0020254850387573242, -0.019173655658960342, -0.028857586905360222, 0.03583890199661255, 0.02495202049612999, 0.0674256905913353, -0.016358649358153343, -0.0012505563208833337, 0.007063520140945911, 0.006272946018725634, -0.019161706790328026, -0.01625554822385311, -0.00556942680850625, 0.04140839725732803, -0.005875793751329184, -0.016449473798274994, -0.007812044583261013, 0.02589324302971363, 0.02722153253853321, -0.007491122931241989, 0.019356315955519676, 0.019431520253419876, 0.014524569734930992, -0.00796225480735302, 0.047409746795892715, -0.05507778003811836, 0.022935274988412857, 0.025736268609762192, -0.01053796336054802, 0.005297700874507427, -0.023308932781219482, 0.009408468380570412, -0.014225883409380913, 0.013423708267509937, 0.004198586568236351, 0.007683941628783941, -0.0036277922336012125, 0.04036572575569153, 0.034892819821834564, 0.04596007987856865, 0.0012158436002209783, -0.0011751123238354921, 0.007830323651432991, -0.0697566345334053, 0.01004374772310257, 0.040294043719768524, -0.017647504806518555, 0.013986188918352127, 0.013419203460216522, 0.011768295429646969, 0.011491427198052406, 0.04632971063256264, 0.052207205444574356, 0.00536706205457449, -0.0004908426199108362, 0.00935638789087534, 0.005371576640754938, 0.0013692212523892522, -0.053425561636686325, 0.017865274101495743, 0.05164527893066406, -0.06026826798915863, 0.0194370336830616, -0.013922845013439655, 0.013474768958985806, -0.02870982699096203, -0.0550144724547863, 0.0021484794560819864, 0.012843837961554527, 0.014695008285343647, -0.0005158092826604843, -0.014300075359642506, -0.04159601777791977, 0.008586145006120205, 0.005410718731582165, -0.02037086710333824, -0.016255320981144905, 0.0016451694536954165, -0.03981117159128189, -0.04357721284031868, -0.0018236003816127777, 0.005648154299706221, -0.00988155510276556, -0.02388150244951248, -0.006245858501642942, -0.018362784758210182, -0.01540689542889595, 0.01610439270734787, -0.016409017145633698, 0.06416264921426773, -0.012613709084689617, -0.03582344576716423, 0.013418604619801044, -0.03044293448328972, 0.0452420674264431, -0.029303673654794693, 0.020792288705706596, 0.013448238372802734, 0.014461222104728222, -0.06185014545917511, 0.02875804528594017, 0.04944837838411331, -0.00887943897396326, -0.022780103608965874, 0.02085700072348118, -0.011176560074090958, 0.03225059434771538, -0.0403800792992115, 0.01845371536910534, -0.0026326761581003666, -0.030054418370127678, -0.008065338246524334, -0.0370454266667366, 0.05755599960684776, -0.015712207183241844, -0.03776692599058151, 0.005680965259671211, 0.03239188715815544, 0.05436038225889206, 0.014717239886522293, -0.013300602324306965, 0.03279384225606918, -0.04355549067258835, -0.007076806854456663, -0.057974331080913544, 0.07356370240449905, 0.02901456132531166, 0.02128329500555992, 0.010222261771559715, 0.014250587671995163, 0.00044992941548116505, 0.003672510851174593, 0.0665973648428917, 0.04989263787865639, -0.006011328659951687, -0.029658831655979156, -0.0228426530957222, -0.05028640851378441, -0.028268737718462944, -0.021776501089334488, 0.0742109939455986, -0.01109983492642641, 0.0053917719051241875, 0.01998981088399887, 0.013140745460987091, 0.09263359755277634, 0.0037542558275163174, -0.00032294937409460545, 0.04920008406043053, 0.015461617149412632, 0.004742739722132683, -0.0011568785412237048, 0.0309003796428442, -0.003350144485011697, -0.06872028857469559, -0.013220477849245071, -0.01081260945647955, -0.059073153883218765, -0.007155160419642925, 0.037254828959703445, 0.029793990775942802, -0.05752760171890259, -0.0006471640663221478, 0.06636866927146912, 0.04331100732088089, 0.05731398984789848, -0.0018777070799842477, 0.02769789844751358, -0.016389966011047363, -0.0007685253513045609, -0.02612301893532276, 0.006939464248716831, -0.026086928322911263, 0.047997456043958664, 0.0061552016995847225, 0.009244333952665329, 0.005276321433484554, 0.029715806245803833, 0.01634957641363144, 0.0098717100918293, 0.010174005292356014, 0.012272031977772713, 0.025372261181473732, 0.009367174468934536, -0.021766481921076775, -0.004257571883499622, -0.046560220420360565, -0.05322415009140968, -0.006293038371950388, -0.008278719149529934, -0.028370602056384087, 0.009973907843232155, 0.0389493964612484, -0.010336465202271938, -0.024599285796284676, -0.014612612314522266, -0.014607743360102177, -0.03261534497141838, -0.026613891124725342, 0.013587902300059795, 0.008809007704257965, 0.0035391340497881174, -0.02039029821753502, 0.0006720870733261108, 0.030154123902320862, 0.014806672930717468, 0.03960149362683296, -0.010081508196890354, 0.026252970099449158, -0.010970552451908588, -0.02580995112657547, 0.006666966248303652, 0.007002866826951504, -0.012216093018651009, -0.003209424903616309, -0.03728785365819931, 0.03656516969203949, 0.01801804080605507, -0.05631903186440468, -0.008347587659955025, -0.033760134130716324, 0.029144667088985443, 0.0523357056081295, 0.01457645371556282, -0.019987912848591805, 0.054304253309965134, 0.029330629855394363, -0.03584151715040207, -0.029546726495027542, -0.01402889285236597, 0.006678023375570774, 0.041176024824380875, 0.0048832460306584835, -0.03838895261287689, 0.021760616451501846, -0.013949808664619923, 0.01685880683362484, 0.000960322271566838, -0.012272956781089306, -0.00478969095274806, -0.01616629585623741, 0.00730355316773057, 0.01929471641778946, 0.028325045481324196, -0.010174550116062164, 0.0038644373416900635, 0.02551531046628952, 0.019731421023607254, -0.014311367645859718, -0.01772225648164749, -0.0043543740175664425, 0.012921313755214214, -0.008781440556049347, -0.015475510619580746, -0.0504881925880909, -0.005569789558649063, -0.00034992306609638035, -0.028845474123954773, 0.06429228186607361, -0.02778899110853672, -0.01124002505093813, -0.0510595329105854, -0.04427207261323929, -0.012448186054825783, 0.04418891295790672, 0.06015439331531525, 0.00362936919555068, 0.0061999736353755, 0.0231015644967556, -0.0314849354326725, 0.05513361096382141, -0.0650901347398758, 0.007799540646374226, 0.013765709474682808, 0.021524880081415176, -0.04094448313117027, -0.06151716038584709, -0.0009165710071101785, 0.011462677270174026, -0.07461673021316528, -0.012000571005046368, 0.05453476309776306, -0.000899976585060358, -0.02136516198515892, 0.0024016746319830418, 0.03563554957509041, 0.0018549414817243814, 0.022804157808423042, 0.037222739309072495, -0.037842314690351486, 0.039791807532310486, 0.023904170840978622, -0.036244574934244156, -0.0005736739258281887, -0.024362735450267792, -0.00885254517197609, 0.016156913712620735, -0.047957032918930054, 0.0345342755317688, -0.022989852353930473, -0.009159451350569725, 0.025183992460370064, 0.015186581760644913, 0.020216796547174454, -0.0043209632858633995, 0.0361972376704216, 0.01051921397447586, 0.02281886152923107, -0.009230457246303558, 0.009198530577123165, -0.013408832252025604, 0.04534172639250755, -0.015282033011317253, -0.019603518769145012, -0.03875888139009476, 0.04104836285114288, 0.00016735741519369185, -0.012745516374707222, 0.02605927176773548, 0.04944438114762306, -0.03133644908666611, -0.00042043006396852434, -0.03331681713461876 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
More Results Below, we present results obtained from using different kinds of conditions. We also supplement the results with links to their corresponding pre-trained checkpoints. Their model cards contain more details on how they were trained, along with example usage.
[ 0.08266101032495499, -0.05332247540354729, 0.04988953843712807, 0.029389094561338425, 0.11351107805967331, 0.05825037881731987, 0.012636837549507618, 0.03224201872944832, -0.0491144135594368, -0.10275011509656906, -0.0025350095238536596, -0.0055024935863912106, 0.01752549596130848, 0.0002358117199037224, -0.04381542652845383, 0.0309759434312582, 0.04423217475414276, -0.04680870845913887, -0.0180621687322855, 0.013040565885603428, 0.011589959263801575, -0.07416056096553802, 0.08416550606489182, -0.012125588953495026, 0.015028492547571659, -0.037293970584869385, 0.02314825728535652, -0.00753345200791955, -0.04924856498837471, 0.009682798758149147, -0.08486902713775635, 0.00007621051918249577, 0.016576824709773064, -0.04509221762418747, 0.011902044527232647, 0.0019424472702667117, -0.09147658944129944, 0.0026961471885442734, -0.024442298337817192, -0.07339330017566681, 0.02205016277730465, -0.01686832495033741, -0.021587632596492767, 0.047977667301893234, -0.002538622822612524, -0.01530163548886776, -0.2043108195066452, 0.08805897831916809, -0.01977931149303913, -0.024061402305960655, -0.05420736223459244, 0.06615155935287476, 0.022113319486379623, 0.030042560771107674, 0.022596212103962898, 0.004361163359135389, -0.004019862972199917, -0.02257949858903885, 0.08445031940937042, -0.046413883566856384, 0.03601201996207237, 0.0032963075209409, -0.010174705646932125, 0.008921909146010876, 0.027553696185350418, 0.0006289006560109556, 0.028483595699071884, 0.049028027802705765, -0.039849698543548584, 0.01444435864686966, 0.032444290816783905, -0.015782561153173447, 0.03193812444806099, 0.02758048288524151, 0.029525047168135643, -0.04809955507516861, -0.042812857776880264, -0.010716577060520649, -0.009661098010838032, -0.024071870371699333, 0.04750329256057739, -0.024491820484399796, 0.0651714950799942, 0.07132180780172348, -0.007562834303826094, -0.0014829265419393778, 0.06650780141353607, -0.004255816340446472, 0.004616969730705023, 0.015718597918748856, 0.0072780270129442215, -0.03031601756811142, 0.01992284506559372, -0.0044740489684045315, 0.03475959971547127, -0.05144713819026947, 0.035183846950531006, 0.05717618763446808, -0.015313166193664074, -0.06685663014650345, -0.005349327344447374, -0.008298132568597794, 0.009522323496639729, -0.022156743332743645, -0.05836823210120201, -0.0019755198154598475, -0.07223536819219589, -0.08519277721643448, -0.06008753180503845, 0.04035090655088425, -0.05175964906811714, -0.03334406763315201, 0.049272485077381134, 0.023413710296154022, -0.07742901891469955, 0.041395772248506546, 0.004378958605229855, -0.0045401304960250854, 0.05284665524959564, 0.029023464769124985, -0.010267365723848343, 0.12894272804260254, 0.06722958385944366, 0.030047116801142693, 0.020446138456463814, 0.044446397572755814, 0.02574734576046467, 0.029647527262568474, -0.06607821583747864, 0.013621113263070583, -0.002845112467184663, -0.023117272183299065, 0.014690352603793144, 0.0049782260321080685, -0.008087577298283577, -0.08889899402856827, -0.041845858097076416, -0.03348720073699951, -0.013867366127669811, 0.03359462320804596, -0.0948079377412796, 0.026290586218237877, -0.03467556834220886, 0.01581532508134842, 0.04499005153775215, -0.046543508768081665, -0.042188119143247604, 0.05008065328001976, -0.014897453598678112, -0.002094106050208211, -0.023671165108680725, 0.05036275461316109, -0.037315551191568375, -0.06585844606161118, 0.016308065503835678, 0.050937410444021225, -0.01837523840367794, -0.026995880529284477, -0.09577120840549469, -0.07547160983085632, 0.010706528089940548, 0.04756763204932213, 0.005209001712501049, -0.003601064207032323, 0.04762209579348564, -0.02554234303534031, 0.014679144136607647, 0.026984352618455887, -0.03813466429710388, -0.0011646555503830314, -0.010967963375151157, -0.06680139154195786, 0.1151467114686966, -0.017963042482733727, -0.06620348244905472, 0.07118572294712067, 0.019144335761666298, 0.05348082631826401, 0.016053706407546997, -0.027121420949697495, -0.028093762695789337, 0.012262803502380848, -0.03423226624727249, 0.005155003629624844, 0.03474915027618408, -0.08113519102334976, 0.04986367002129555, -0.02103051356971264, -0.029284905642271042, 0.029558353126049042, -0.10472828149795532, 0.030884787440299988, 0.09516648948192596, -0.006532382685691118, 0.01650196686387062, -0.10151650011539459, -0.0008356269681826234, 0.10936495661735535, 0.0340450257062912, 0.04405193030834198, 0.07025869935750961, 0.016786985099315643, 0.03147400543093681, -0.029304075986146927, -0.06525518000125885, 0.044540971517562866, 0.04674554243683815, -0.0412435382604599, 0.008491335436701775, -0.016969576478004456, -0.004259469918906689, -0.08574964851140976, -0.01769774593412876, -0.0509563609957695, -0.008803906850516796, 0.02978643961250782, 0.0062493556179106236, 0.0213515255600214, 0.013222193345427513, -0.0503484308719635, 0.12603890895843506, 0.030692223459482193, -0.008952714502811432, 0.04580806940793991, -0.018039656803011894, 0.03855213150382042, 0.059380482882261276, 0.013892587274312973, 0.047044333070516586, -0.11096563935279846, 0.010371874086558819, -0.06710859388113022, 0.04766416177153587, 0.10209928452968597, 0.01660274527966976, 0.024838997051119804, 0.05972353368997574, -0.0799727737903595, 0.027831578627228737, -0.006318609230220318, -0.021790632978081703, -0.009869638830423355, 0.009403004311025143, 0.06740762293338776, -0.01540022250264883, -0.06349590420722961, 0.057439275085926056, 0.05784020572900772, -0.11654625833034515, -0.03895663470029831, -0.08392493426799774, 0.06446617096662521, -0.015236941166222095, -0.07798527181148529, 0.06623686105012894, 0.00255923462100327, 0.02520116977393627, -0.04605412855744362, -0.021618284285068512, 0.03166550397872925, 0.02851923555135727, -0.03540630266070366, -0.048951901495456696, -0.03316269814968109, 0.010249804705381393, -0.048895902931690216, 0.016348203644156456, -0.01132910791784525, 0.0326443687081337, 0.0013857119483873248, 0.018195144832134247, -0.04303431138396263, 0.019003814086318016, 0.01626228541135788, 0.021092550829052925, 0.004075052682310343, 0.0195111446082592, -0.006643187254667282, -0.04045216366648674, -0.020686358213424683, -0.0205390527844429, -0.02385527268052101, 0.05138952285051346, 0.02427893504500389, 0.050861798226833344, -0.005557968746870756, 0.004553444217890501, -0.0015914055984467268, -0.032428767532110214, 0.011022672988474369, 0.005823588464409113, 0.010576284490525723, -0.006535503547638655, -0.029691992327570915, 0.010763362981379032, -0.0002268163370899856, 0.007051585242152214, 0.01710553653538227, -0.00021021928114350885, 0.0010960561921820045, 0.005152618512511253, 0.013690643943846226, 0.018406450748443604, -0.001644525327719748, -0.022481534630060196, 0.04102804884314537, 0.003594760550186038, 0.052766453474760056, -0.1311059445142746, -0.012460367754101753, 0.03838032856583595, 0.05189185589551926, -0.04386850818991661, -0.011119497008621693, 0.02680169604718685, -0.027041159570217133, -0.01619267649948597, -0.03873347118496895, 0.02871147356927395, 0.0028034227434545755, 0.03746664151549339, -0.01073172315955162, -0.03874851390719414, 0.02176545560359955, 0.015421954914927483, 0.0038719356525689363, 0.0525367334485054, -0.002425707411020994, -0.023601848632097244, 0.03658457472920418, -0.02926558256149292, 0.007067485712468624, -0.059328049421310425, 0.06405329704284668, 0.02772373892366886, 0.03370387479662895, 0.007388600148260593, -0.04353863373398781, -0.022968841716647148, 0.006455676630139351, -0.023876355960965157, 0.04254957288503647, 0.00724765146151185, 0.012662424705922604, -0.030645357444882393, 0.033392954617738724, -0.004846897441893816, 0.02196144498884678, 0.021870316937565804, 0.011585747823119164, 0.04887104034423828, 0.0035049282014369965, -0.02425367571413517, 0.019205043092370033, 0.029348624870181084, -0.010060050524771214, 0.06211152300238609, -0.043772973120212555, -0.02841407246887684, 0.01803502067923546, -0.00008613153477199376, 0.05805554986000061, -0.011730026453733444, 0.0008740085759200156, -0.014776921831071377, 0.013884254731237888, 0.03981221839785576, -0.02130141109228134, -0.03340776637196541, 0.026046166196465492, -0.009123641066253185, -0.02258668839931488, -0.041334714740514755, 0.03903530165553093, -0.005437628366053104, 0.005284646060317755, -0.03579546883702278, -0.005307139828801155, 0.0035668343771249056, 0.038731008768081665, -0.014654082246124744, 0.013884966261684895, -0.003321857424452901, 0.01838923804461956, -0.0007618146482855082, -0.006828291341662407, 0.07713529467582703, 0.005813915748149157, -0.01570361666381359, -0.018513496965169907, -0.036939170211553574, -0.01903793402016163, 0.017691798508167267, 0.030261816456913948, 0.006572953425347805, 0.016466693952679634, -0.0032128712628036737, 0.024201923981308937, 0.036067601293325424, 0.012251629494130611, 0.0017148344777524471, -0.015113011002540588, 0.026408972218632698, 0.04246840998530388, 0.02134155109524727, -0.004396071191877127, 0.02246413379907608, 0.024609699845314026, 0.0026801591739058495, 0.02352221868932247, 0.00017668030341155827, -0.004945641383528709, -0.011206848546862602, 0.01886935532093048, -0.019297821447253227, -0.03298928588628769, -0.0033621813636273146, -0.005486344452947378, 0.021936172619462013, -0.022413456812500954, 0.02924269251525402, -0.01112054381519556, 0.01835712045431137, 0.004310922231525183, -0.007424359209835529, -0.006056644953787327, -0.0005104568554088473, -0.010272406972944736, -0.0362723246216774, 0.028635390102863312, 0.004456893540918827, -0.0014567914186045527, 0.025994153693318367, 0.012215320952236652, 0.01018066518008709, 0.027605228126049042, -0.005316950846463442, 0.008298559114336967, -0.02621205523610115, -0.03504418581724167, 0.008123933337628841, 0.031396325677633286, 0.004121188540011644, 0.006534769665449858, -0.03449264168739319, 0.024516060948371887, -0.024965031072497368, -0.07588186860084534, 0.008214452303946018, 0.000915664539206773, 0.04498283565044403, 0.0016069706762209535, 0.06383396685123444, -0.005118014290928841, -0.02967768907546997, -0.017951443791389465, 0.002594988327473402, 0.0110031608492136, 0.04348405823111534, 0.011613111011683941, -0.07156538963317871, 0.002453961642459035, -0.017170600593090057, -0.020490288734436035, -0.0067814853973686695, 0.01932472363114357, 0.013916810974478722, 0.05361717566847801, 0.0072918725199997425, 0.015315460041165352, -0.046270642429590225, 0.04193570092320442, -0.018353205174207687, 0.004600743297487497, 0.006853689439594746, -0.01050026249140501, -0.0012723342515528202, 0.008643602952361107, 0.010661372914910316, -0.05853888392448425, 0.011945927515625954, -0.029406948015093803, 0.040722038596868515, 0.008339622989296913, -0.0029412414878606796, 0.005642104893922806, 0.03846883401274681, 0.008440813980996609, -0.003652774030342698, 0.008758672513067722, 0.061638571321964264, 0.0016941799549385905, -0.0011592231458052993, 0.005162086803466082, 0.04905432090163231, 0.008513237349689007, 0.008744052611291409, 0.045943308621644974, -0.015645038336515427, -0.0018022173317149282, 0.023629838600754738, -0.024205293506383896, -0.012927000410854816, 0.005408467259258032, 0.017758673056960106, 0.006215472240000963, -0.028389856219291687, 0.01167511660605669, 0.03113236092031002, 0.03771897405385971, -0.007340151350945234, 0.02301744744181633, -0.014687404036521912, 0.0403672493994236, -0.036228787153959274, -0.007546567358076572, 0.0017480237875133753, -0.07805182784795761, -0.023891307413578033, -0.00401082681491971, -0.04175283759832382, -0.0024601337499916553, -0.015143259428441525, -0.036020852625370026, -0.0430004745721817, 0.027789277955889702, 0.011379278264939785, 0.05750653147697449, 0.02098270319402218, -0.010673743672668934, -0.038419026881456375, 0.03454068303108215, 0.015025313012301922, -0.001035907305777073, 0.0032605943270027637, 0.025428831577301025, -0.013009232468903065, 0.030923930928111076, -0.023836499080061913, -0.004733712412416935, -0.0023496306966990232, 0.014865121804177761, 0.009858833625912666, -0.023367520421743393, -0.05914793163537979, 0.0024514750111848116, 0.01407146081328392, -0.004913602024316788, -0.0005245437496341765, -0.017109476029872894, -0.004637264646589756, -0.01827789843082428, -0.058727461844682693, 0.02626100927591324, 0.04955111816525459, -0.04116585850715637, 0.023472828790545464, 0.03042025677859783, 0.01795096881687641, 0.008831240236759186, 0.01296626590192318, 0.017048975452780724, -0.0034676517825573683, 0.04413716122508049, 0.002940358128398657, -0.021595606580376625, 0.013980227522552013, 0.008692970499396324, 0.003224835731089115, 0.004832493606954813, 0.017288951203227043, 0.0387352779507637, -0.07120327651500702, 0.031978972256183624, 0.010594208724796772, -0.035669129341840744, 0.03650607913732529, 0.013158458285033703, 0.015687227249145508, 0.02045568823814392, 0.026432625949382782, -0.012160411104559898, -0.038451071828603745, 0.012773781083524227, 0.04143432900309563, 0.06293122470378876, 0.009813548065721989, -0.000303480657748878, 0.007048589177429676, 0.016726646572351456, 0.017655007541179657, 0.019187258556485176, -0.035240449011325836, 0.018112704157829285, 0.03483894094824791, -0.00934651866555214, 0.0178768839687109, 0.049693699926137924, -0.009496637620031834, -0.017064958810806274, -0.05150582268834114, -0.030695099383592606, -0.016707243397831917, 0.031415779143571854, -0.005738365929573774, -0.010585281997919083, -0.013628230430185795, -0.027443787083029747, 0.04433951899409294, 0.009486074559390545, 0.010325444862246513, -0.0076805418357253075, 0.0011550085619091988, 0.01503453217446804, 0.03382736071944237, -0.01969531737267971, 0.03406668081879616, -0.04584287106990814, 0.003452823730185628, 0.0478738471865654, 0.0037618265487253666, 0.014834878966212273, -0.00700421491637826, 0.0006470973021350801, 0.029780041426420212, -0.03187223896384239, 0.014462454244494438, -0.0015984794590622187, 0.06448414921760559, 0.028643202036619186, 0.005206741858273745, -0.012615063227713108, -0.06636751443147659, -0.024219423532485962, -0.009185596369206905, -0.023244410753250122, 0.00023357402824331075, 0.007017696276307106, 0.021411193534731865, 0.019909687340259552, -0.0034283227287232876, -0.04853426665067673, -0.002772545674815774, 0.018384423106908798, -0.0059742070734500885, 0.009680528193712234, 0.018155673518776894, -0.006676089484244585, -0.005981685593724251, -0.006692832335829735, 0.022189293056726456, 0.03607368841767311, -0.010457910597324371, 0.021741075441241264, -0.005394102539867163, 0.012485808692872524, -0.03821050003170967, -0.001918095164000988, 0.05215694382786751, -0.0159428883343935, -0.018582135438919067, 0.02767723985016346, -0.017058923840522766, -0.03658869490027428, -0.014542405493557453, -0.03903251513838768, -0.006953143980354071, -0.012966676615178585, 0.011858888901770115, 0.017916373908519745, 0.007315486203879118, -0.018712611868977547, -0.008050837554037571, -0.034182801842689514, -0.027034716680645943, -0.01177949644625187, 0.00019863483612425625, 0.035751502960920334, -0.05066849663853645, -0.02399487979710102, -0.0018536271527409554, 0.01744363084435463, -0.023090844973921776, 0.0009318087249994278, 0.010041058994829655, -0.03296065330505371, -0.017102645710110664, -0.011989716440439224, 0.07780097424983978, 0.018463296815752983, 0.035639334470033646, 0.05324669927358627, 0.011185954324901104, 0.015286121517419815, -0.038879066705703735, -0.02321951650083065, -0.005049750674515963, 0.050420381128787994, -0.009760956279933453, -0.015040586702525616, -0.04022732004523277, -0.005998816341161728, 0.02001793682575226, -0.016102435067296028, -0.024727972224354744, -0.022046614438295364, -0.003721518674865365, -0.021657979115843773, -0.038767728954553604, 0.020182102918624878, 0.056762002408504486, -0.000027131378374178894, 0.036775071173906326, 0.008767625316977501, 0.012371804565191269, -0.003216841723769903, 0.0014661125605925918, 0.007586829364299774, 0.025476543232798576, 0.018747305497527122, -0.01382707990705967, -0.07678630203008652, -0.0008998829871416092, -0.07361198216676712, -0.0654914453625679, -0.015401240438222885, 0.04637889191508293, 0.0045012254267930984, -0.025236541405320168, -0.008732249960303307, 0.007659876719117165, 0.03900192677974701, 0.04697372391819954, 0.009713033214211464, -0.028040850535035133, -0.009796390309929848, 0.011214502155780792, -0.048464179039001465, -0.023599127307534218, -0.01764742285013199, 0.023973872885107994, 0.013412179425358772, 0.014979689382016659, -0.024702493101358414, 0.026258205994963646, -0.02430485375225544, 0.043452292680740356, -0.011976952664554119, -0.005767215974628925, -0.050057679414749146, 0.00556616485118866, -0.043816130608320236, 0.022372383624315262, -0.03994017839431763, 0.03543655574321747, 0.02593245543539524, -0.01973874494433403, -0.027684006839990616, -0.021431459113955498, 0.0194698479026556, 0.0008090833434835076, 0.03897031024098396, 0.0084179462864995, 0.07474469393491745, 0.004154952242970467, -0.012047277763485909, 0.0005684205680154264, 0.029340816661715508 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Try out the Demo You can easily try T2I-Adapter-SDXL in this Space or in the playground embedded below: You can also try out Doodly, built using the sketch model that turns your doodles into realistic images (with language supervision):
[ 0.058341968804597855, -0.01879630982875824, 0.08371596783399582, 0.03512883558869362, 0.13182783126831055, -0.017301276326179504, -0.03221749886870384, 0.00874514039605856, 0.01529262587428093, -0.09615593403577805, 0.002614115597680211, 0.010166456922888756, -0.005414894782006741, -0.014897593297064304, 0.06766344606876373, 0.014850595034658909, 0.006999435368925333, 0.006312868092209101, 0.03577568382024765, -0.020895540714263916, -0.010273919440805912, -0.05218907818198204, -0.019404403865337372, -0.02490760199725628, -0.052507434040308, -0.06956904381513596, 0.023812079802155495, 0.05000854656100273, 0.012127194553613663, -0.04758819192647934, -0.07983523607254028, -0.02851461060345173, 0.03149748593568802, -0.06866736710071564, 0.01612517051398754, -0.02353057637810707, -0.0871078297495842, 0.0016500670462846756, -0.055926594883203506, -0.05160386115312576, 0.02900855615735054, 0.003403495531529188, 0.01074223406612873, 0.04110810160636902, 0.010875294916331768, -0.05470656231045723, -0.2008751779794693, 0.07458963245153427, -0.03921028971672058, 0.053870826959609985, -0.03268961235880852, 0.07314808666706085, 0.04320742189884186, -0.017128612846136093, 0.03094318136572838, 0.036086585372686386, 0.04245802387595177, -0.01614266075193882, 0.033410124480724335, -0.00016183441039174795, 0.07751235365867615, -0.02566653862595558, -0.003100720699876547, 0.008872542530298233, -0.03226536512374878, -0.013943859376013279, -0.02438122034072876, 0.03799896687269211, -0.051165033131837845, -0.04607394337654114, 0.0009650526917539537, -0.0185253769159317, -0.030803728848695755, 0.027812300249934196, 0.07142078876495361, -0.09569162130355835, -0.01323779672384262, 0.11747737973928452, 0.034774214029312134, 0.016402602195739746, 0.00349396001547575, -0.007468412164598703, 0.11033190786838531, 0.03326750919222832, 0.01485743373632431, -0.008435271680355072, 0.03369900584220886, -0.010689356364309788, -0.03698914125561714, 0.017342865467071533, 0.03292655944824219, -0.1367848813533783, -0.01722315140068531, -0.006187761202454567, 0.0364048033952713, -0.03492359071969986, 0.004537636414170265, 0.008067087270319462, 0.08868473768234253, 0.023517658933997154, -0.005530232563614845, -0.025097602978348732, 0.07829805463552475, -0.05534418672323227, -0.03734516724944115, -0.03567738085985184, -0.008796020410954952, -0.06145457923412323, -0.01401639822870493, 0.0027612652629613876, -0.008542470633983612, 0.025145061314105988, 0.0526387020945549, 0.012763910926878452, -0.06296586990356445, 0.014242788776755333, 0.02196398749947548, 0.08952299505472183, -0.08755885809659958, 0.01884731650352478, -0.0077285729348659515, 0.04267705976963043, 0.030489206314086914, -0.014563756063580513, -0.014979713596403599, 0.057231605052948, -0.024218201637268066, 0.05955561622977257, -0.05091412737965584, 0.011671075597405434, -0.0020405964460223913, 0.06587226688861847, 0.06054775416851044, -0.06341899931430817, 0.010242247954010963, -0.10111366212368011, -0.005777564365416765, -0.020107001066207886, -0.006525091361254454, 0.006204233039170504, -0.014377593994140625, 0.02353600040078163, 0.043608564883470535, 0.061260297894477844, 0.0201764777302742, -0.052832670509815216, -0.06189289316534996, 0.08611315488815308, -0.07220422476530075, -0.02402491495013237, -0.09520885348320007, 0.03670095279812813, -0.04945577681064606, -0.0669916644692421, 0.0002467278973199427, 0.04267895221710205, -0.017987295985221863, -0.002646413864567876, -0.07578566670417786, 0.051390983164310455, 0.01634269580245018, -0.000290284282527864, -0.04841364175081253, -0.03150905296206474, 0.021139901131391525, 0.0063071162439882755, 0.009598773904144764, -0.010793889872729778, 0.0036760445218533278, -0.04506077617406845, 0.0016519998898729682, -0.020176587626338005, 0.06733334064483643, 0.07463908940553665, 0.011482409201562405, 0.029895156621932983, 0.05752914398908615, 0.020988594740629196, -0.008619903586804867, -0.029174499213695526, -0.015483363531529903, 0.05902840569615364, -0.01648068241775036, 0.01248448807746172, 0.028627922758460045, -0.07638654112815857, 0.03829091414809227, -0.015613791532814503, -0.011011048220098019, -0.043817464262247086, -0.07478639483451843, -0.02587413415312767, 0.09102753549814224, -0.02284710295498371, 0.030824070796370506, -0.074148990213871, -0.05924780294299126, 0.07304800301790237, 0.002862460445612669, 0.09507424384355545, 0.02867400087416172, 0.011385435238480568, 0.025415092706680298, 0.030574489384889603, -0.01710481569170952, -0.006345254834741354, 0.07940258085727692, -0.01800754852592945, 0.03853870555758476, -0.02091553807258606, -0.011385537683963776, -0.10996703803539276, 0.09947104007005692, -0.023649398237466812, -0.022992946207523346, -0.010828799568116665, 0.014066939242184162, -0.006644291337579489, -0.0053528910502791405, 0.0017985153244808316, 0.11438405513763428, -0.02298329584300518, -0.04828361049294472, -0.0029100333340466022, -0.02504814602434635, 0.09819940477609634, 0.10231447964906693, -0.02402733638882637, -0.008528221398591995, -0.08249467611312866, -0.04417955502867699, -0.0031529772095382214, 0.0134760532528162, 0.0294133760035038, 0.013792107813060284, 0.028661159798502922, 0.07460735738277435, -0.06327907741069794, 0.08338892459869385, -0.04540793225169182, 0.04935409128665924, -0.014423388987779617, -0.06686010211706161, -0.04277960583567619, 0.0013300735736265779, 0.009327164851129055, 0.05073107033967972, 0.03523843362927437, 0.014705036766827106, 0.0007141727837733924, -0.030284546315670013, -0.042471375316381454, -0.04404869303107262, -0.03793507069349289, 0.09107545018196106, 0.023777468129992485, 0.01918305642902851, -0.049151960760354996, 0.005174835678189993, 0.05685808137059212, -0.03295474499464035, -0.0380210280418396, -0.004868883173912764, -0.03970403969287872, -0.006924271583557129, -0.027248667553067207, -0.004462436307221651, 0.00625600665807724, -0.01672736182808876, 0.025045502930879593, -0.006072950083762407, 0.016592679545283318, 0.024342631921172142, -0.03061939775943756, -0.016653750091791153, 0.010162127204239368, 0.04049304127693176, 0.021723132580518723, -0.006935864221304655, -0.02829575724899769, 0.010532784275710583, -0.011798907071352005, 0.060011159628629684, 0.01884332485496998, 0.030654393136501312, 0.008049994707107544, 0.023622652515769005, -0.008817548863589764, -0.04135136678814888, 0.001115792547352612, -0.0068166605196893215, 0.014275719411671162, -0.028297534212470055, -0.03936981409788132, 0.001915807370096445, -0.037724558264017105, 0.03527746722102165, -0.022861352190375328, -0.013460892252624035, -0.0012059849686920643, 0.006685346830636263, 0.028365617617964745, 0.011167868040502071, 0.007759949658066034, -0.051128968596458435, 0.014660879969596863, 0.0037718277890235186, -0.02967643365263939, -0.12211202085018158, -0.011215455830097198, 0.0026913671754300594, 0.010145969688892365, -0.06047271937131882, -0.039015255868434906, 0.027041397988796234, -0.035879313945770264, -0.009907384403049946, 0.006053853314369917, 0.002416580682620406, 0.018165869638323784, 0.028052667155861855, -0.024037351831793785, -0.010829819366335869, 0.0025023852940648794, -0.012485654093325138, 0.007636864669620991, 0.0027836356312036514, 0.01563168875873089, -0.039188072085380554, 0.02528264746069908, 0.01290818303823471, -0.0020099959801882505, -0.014461842365562916, 0.020934540778398514, 0.03484049811959267, -0.02082241140305996, 0.0207669734954834, 0.0037378333508968353, -0.01049367617815733, -0.010655852034687996, 0.002523986157029867, -0.010877393186092377, -0.03565974906086922, -0.012591756880283356, -0.010996322147548199, 0.018075693398714066, 0.036950696259737015, 0.00318254716694355, 0.00799022801220417, -0.014754174277186394, 0.060495056211948395, -0.03125200420618057, -0.00033051782520487905, 0.005867367144674063, -0.008261141367256641, 0.024563021957874298, 0.050651758909225464, -0.011263812892138958, 0.015384473837912083, 0.055388785898685455, 0.01459573581814766, 0.01815732941031456, -0.011253354139626026, 0.004406624007970095, 0.006484086625277996, 0.06487536430358887, 0.03380024805665016, -0.04340019449591637, -0.03652576357126236, -0.005471720360219479, -0.019340597093105316, 0.05276915431022644, -0.021003475412726402, 0.04700431972742081, 0.034682150930166245, 0.023679623380303383, -0.022863179445266724, 0.060585614293813705, -0.0004100088553968817, 0.01783442310988903, 0.0014405273832380772, 0.021157048642635345, -0.014936442486941814, 0.03689686954021454, 0.0014359067426994443, 0.012003193609416485, 0.04978763312101364, 0.00001982575486181304, 0.021196670830249786, -0.043013203889131546, -0.021869512274861336, -0.02542530559003353, -0.02147572673857212, 0.024621939286589622, -0.04107051342725754, -0.008245307020843029, -0.011272354051470757, 0.02367173507809639, 0.030782872810959816, -0.025291435420513153, 0.009073720313608646, 0.008058810606598854, 0.024829361587762833, -0.010121104307472706, 0.04638531804084778, -0.027390897274017334, 0.012665112502872944, 0.007950376719236374, 0.021038783714175224, 0.029818551614880562, -0.0366881899535656, 0.023434903472661972, 0.010969310067594051, 0.02369663491845131, -0.027860503643751144, -0.009540343657135963, 0.02047724835574627, 0.024208389222621918, 0.0000022587655621464364, -0.05336759239435196, 0.019546788185834885, 0.033119332045316696, -0.007820094004273415, 0.0050559318624436855, 0.000027603857233771123, 0.002649791305884719, -0.042838238179683685, -0.02499704621732235, -0.024642683565616608, -0.001984534552320838, -0.006532496772706509, -0.015259824693202972, -0.020919878035783768, -0.009492863900959492, 0.007055740337818861, 0.0016933080041781068, 0.016254331916570663, 0.004464243073016405, -0.022097889333963394, -0.03035314567387104, 0.01891264319419861, 0.0060016862116754055, 0.02407996356487274, 0.01342554297298193, -0.020387209951877594, 0.01955975592136383, -0.007720804773271084, -0.06498318910598755, -0.008251240476965904, 0.008349322713911533, 0.02878727577626705, -0.019393963739275932, 0.019575832411646843, 0.007410723716020584, -0.015745772048830986, -0.0033708750270307064, 0.010179857723414898, -0.01312793418765068, 0.03397013247013092, 0.0007961103692650795, -0.00031380928703583777, 0.0058820671401917934, 0.007571082562208176, 0.0019714045338332653, 0.003237253287807107, -0.011586157605051994, 0.009063671343028545, 0.04976273328065872, 0.04033598676323891, 0.0213344544172287, -0.024237731471657753, 0.04066495597362518, -0.006016615312546492, -0.029746010899543762, 0.03406786546111107, -0.04118950292468071, -0.005132084246724844, -0.007493882905691862, -0.029686734080314636, -0.016412969678640366, 0.056918371468782425, 0.008900417946279049, 0.018514981493353844, 0.0351366326212883, 0.02148040384054184, -0.006297759246081114, 0.02818758599460125, 0.013185089454054832, -0.04535425081849098, -0.0017850934527814388, 0.0042544882744550705, -0.03015417419373989, -0.0013170859310775995, -0.024048905819654465, 0.08177848905324936, -0.008187546394765377, 0.009877771139144897, 0.038973815739154816, 0.003097186330705881, 0.026881853118538857, 0.014806604012846947, -0.025497928261756897, 0.02641337178647518, -0.01607806608080864, -0.02487790957093239, -0.007897675968706608, -0.010331109166145325, -0.013960544019937515, 0.007533018011599779, 0.019443996250629425, -0.0493406280875206, -0.05496063083410263, 0.0077123939990997314, 0.011640893295407295, 0.0032520322129130363, 0.000689895823597908, 0.005730881355702877, -0.016886508092284203, -0.004319692961871624, -0.02484631910920143, -0.03955822438001633, -0.03352693095803261, -0.017609478905797005, 0.005957800429314375, 0.0154681745916605, -0.03474583849310875, -0.009430586360394955, 0.023899799212813377, 0.01993483491241932, 0.00031948357354849577, -0.03398136794567108, 0.00883707869797945, 0.03358859196305275, -0.013572381809353828, -0.005518412683159113, 0.026358718052506447, -0.05499255284667015, 0.021263711154460907, 0.06429991126060486, 0.021461276337504387, -0.015301000326871872, 0.01875349134206772, 0.012719209305942059, 0.016542300581932068, -0.039272740483284, 0.053421154618263245, 0.022911392152309418, 0.022419899702072144, 0.007439649198204279, -0.026859400793910027, -0.006087090354412794, 0.01689947582781315, -0.030295316129922867, 0.024675020948052406, 0.025788798928260803, -0.03749945014715195, -0.036595750600099564, 0.026075975969433784, 0.052709199488162994, -0.032901037484407425, 0.016133204102516174, -0.012389949522912502, -0.004150737542659044, 0.052133917808532715, 0.047868531197309494, -0.040829937905073166, 0.010703302919864655, -0.003347282065078616, -0.010334158316254616, -0.03919016569852829, 0.0541725754737854, 0.03376872092485428, -0.021693898364901543, 0.03476367145776749, 0.023157883435487747, -0.021273000165820122, -0.03606133535504341, 0.03550247848033905, 0.010221142321825027, 0.047049473971128464, 0.0017833003075793386, -0.020511208102107048, -0.02166101522743702, -0.030915850773453712, 0.001284831203520298, 0.06571909785270691, -0.009104958735406399, 0.027696827426552773, 0.025955207645893097, 0.04779031127691269, 0.04640127345919609, -0.004563827067613602, -0.025699716061353683, 0.0704183280467987, 0.05468696728348732, -0.014740277081727982, 0.02452121302485466, 0.04643070325255394, 0.022054217755794525, -0.06425626575946808, -0.013133655302226543, -0.026674555614590645, -0.03773530200123787, 0.035350244492292404, 0.031420521438121796, -0.02642957493662834, -0.02798556163907051, -0.05560314655303955, 0.07813477516174316, 0.042228613048791885, 0.04706745594739914, -0.04613209143280983, 0.007577697746455669, 0.016473110765218735, -0.00850597582757473, -0.0074560800567269325, 0.004324863664805889, -0.0008314941078424454, 0.038522347807884216, 0.03990917280316353, -0.054930537939071655, 0.014309600926935673, 0.029901357367634773, 0.055937957018613815, 0.0470423623919487, 0.03214319795370102, -0.053343191742897034, 0.013720492832362652, 0.025118675082921982, -0.04353845864534378, -0.03406072407960892, -0.0010219230316579342, -0.03744750842452049, -0.05852794274687767, -0.008393042720854282, -0.018359214067459106, 0.008467473089694977, -0.009707516059279442, 0.01696147210896015, -0.025201207026839256, 0.006455245427787304, 0.02808801643550396, 0.0034320729319006205, 0.01660948246717453, -0.030439840629696846, 0.0033045874442905188, -0.0081449244171381, -0.013533076271414757, -0.022503197193145752, 0.027949312701821327, -0.03930766135454178, -0.02928825095295906, -0.021464770659804344, -0.0015704174293205142, -0.030504003167152405, -0.04285651445388794, -0.011154850013554096, 0.02303525246679783, 0.04019513353705406, 0.010129442438483238, -0.031916528940200806, 0.06848935782909393, -0.021731602028012276, -0.024614857509732246, -0.03602530062198639, -0.06154639646410942, 0.04768408089876175, 0.009564242325723171, 0.004310342948883772, 0.015736812725663185, 0.023538345471024513, -0.012097506783902645, -0.03723188489675522, 0.01635880023241043, 0.010291734710335732, 0.013344666920602322, 0.03262098506093025, 0.009946247562766075, 0.006105603184551001, 0.02685810625553131, -0.024390794336795807, 0.018491841852664948, -0.021474508568644524, 0.006705349776893854, 0.012803260236978531, 0.01752176135778427, -0.02421185001730919, -0.05244157090783119, 0.01824222318828106, -0.029820641502738, 0.006672594230622053, 0.053859345614910126, 0.05343623459339142, 0.01783856377005577, -0.0010774090187624097, 0.028523193672299385, -0.024408604949712753, 0.028135070577263832, -0.060355305671691895, -0.05178049951791763, -0.005317228380590677, -0.032532282173633575, 0.006836457643657923, -0.019546911120414734, -0.024579865857958794, -0.025065261870622635, -0.0191273745149374, -0.030633853748440742, -0.03331245109438896, 0.02754749357700348, 0.044638361781835556, -0.008688303641974926, -0.003305179299786687, 0.01898828148841858, -0.0044383700005710125, 0.003309225896373391, -0.014003132469952106, 0.0050206794403493404, 0.016901062801480293, 0.02659495547413826, -0.028833573684096336, 0.00029169328627176583, 0.04649311676621437, -0.013650916516780853, -0.030613666400313377, 0.015264627523720264, 0.023055315017700195, -0.004984235856682062, -0.02152949571609497, -0.01095061656087637, 0.010215994901955128, 0.027494845911860466, -0.0003469489165581763, 0.0018182402709499002, -0.050892338156700134, 0.022398600354790688, 0.025602446869015694, -0.05463920906186104, 0.002763655735179782, -0.02499321661889553, 0.04119890183210373, -0.013251104392111301, 0.002282926347106695, 0.005383528769016266, -0.03355170786380768, -0.008981763385236263, 0.03480447828769684, -0.0036041734274476767, -0.012384909205138683, -0.0184671338647604, 0.01720697246491909, 0.023839078843593597, -0.015948651358485222, -0.013681666925549507, 0.001898507704026997, 0.019451964646577835, 0.0072418623603880405, -0.03646615147590637, 0.01951870322227478, 0.01349605806171894, 0.022775093093514442, 0.0016895871376618743, 0.018872562795877457, 0.04983101040124893, 0.020639263093471527, -0.01809077523648739, -0.005239131394773722, 0.0423041433095932 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Lineart Guided Model from TencentARC/t2i-adapter-lineart-sdxl-1.0
[ 0.04643472656607628, -0.054261427372694016, 0.07325254380702972, 0.03759664297103882, 0.0539383664727211, -0.01669367030262947, -0.03856782987713814, 0.0022733386140316725, 0.0017889016307890415, -0.06208723783493042, -0.030391903594136238, -0.040320105850696564, 0.04944494739174843, 0.03936883807182312, 0.009113015606999397, 0.04502395540475845, 0.004215729422867298, -0.027214668691158295, 0.025922095403075218, 0.009676904417574406, 0.06367898732423782, -0.035620760172605515, 0.08299995958805084, -0.011040669865906239, -0.010493830777704716, -0.044494256377220154, 0.02280869148671627, 0.004217804875224829, -0.003906707279384136, 0.04801080748438835, -0.007513889577239752, 0.06233109161257744, 0.005442623049020767, -0.09531699866056442, -0.004561597015708685, -0.000667763699311763, -0.08942804485559464, -0.014084388501942158, -0.051208533346652985, -0.0752362534403801, -0.030567141249775887, 0.0056137144565582275, 0.0018765766872093081, 0.037818022072315216, -0.019869938492774963, -0.029241284355521202, -0.2085666060447693, 0.06645332276821136, -0.012269783765077591, 0.07298477739095688, -0.018082233145833015, 0.05981924384832382, 0.022863343358039856, 0.004984393250197172, 0.037272222340106964, 0.0033615059219300747, 0.03289532661437988, -0.03118547797203064, 0.018943751230835915, -0.04190468788146973, 0.022902153432369232, -0.016669292002916336, 0.004995164927095175, 0.005150477401912212, -0.019141869619488716, -0.03419703245162964, 0.001565188285894692, -0.015492058359086514, -0.020180150866508484, -0.07106023281812668, 0.0334877148270607, -0.01977408304810524, -0.003581217722967267, -0.009667889215052128, 0.02311220020055771, -0.08091450482606888, -0.08013316243886948, 0.09675540030002594, 0.07236886769533157, 0.036590978503227234, -0.06059222295880318, 0.011550352908670902, 0.07354386895895004, 0.061870623379945755, 0.014955705031752586, 0.0009985145879909396, 0.02871745266020298, -0.023317581042647362, -0.01608428917825222, 0.08092381060123444, -0.04690558835864067, -0.14274004101753235, 0.025365693494677544, -0.0195497777312994, -0.04703766852617264, -0.05620408430695534, 0.023884395137429237, -0.0022984968964010477, 0.08981334418058395, 0.03995076194405556, -0.005399355664849281, -0.0016592767788097262, 0.08808610588312149, -0.04535302519798279, -0.05408138781785965, 0.057020850479602814, 0.005735813174396753, -0.04275558143854141, -0.06422905623912811, 0.008318175561726093, -0.09545084834098816, 0.018195951357483864, 0.0674881860613823, -0.013664920814335346, -0.07476822286844254, 0.044746577739715576, -0.002765154931694269, 0.003767904592677951, 0.0191227775067091, 0.04007347300648689, -0.10418780148029327, 0.11705536395311356, 0.005337300710380077, -0.00661120330914855, 0.008098513819277287, 0.038361258804798126, 0.01689416915178299, 0.021485647186636925, -0.10392628610134125, -0.01934003457427025, 0.0408816859126091, -0.0022870975080877542, 0.04870860278606415, 0.037218887358903885, -0.00620653759688139, -0.09378944337368011, 0.04690500348806381, -0.009049931541085243, 0.05858675017952919, 0.023117462173104286, -0.0398733913898468, 0.025304092094302177, 0.05255889520049095, 0.02568180486559868, 0.007905595935881138, -0.017201554030179977, -0.02056339755654335, 0.05489242076873779, -0.035085372626781464, 0.0011602116283029318, -0.04125269874930382, 0.02278641238808632, -0.06451601535081863, -0.04845196008682251, -0.020979393273591995, 0.018546510487794876, 0.013496436178684235, 0.025027431547641754, -0.09684410691261292, 0.011005990207195282, 0.03173437714576721, 0.047824107110500336, -0.07869453728199005, -0.027508672326803207, 0.07714039087295532, -0.006934432312846184, -0.003061635885387659, -0.010173937305808067, 0.05471865087747574, -0.06982485949993134, 0.01296551339328289, -0.057060204446315765, 0.014465732499957085, 0.0864802896976471, -0.0400744304060936, 0.022716734558343887, 0.0745081901550293, 0.07657627016305923, -0.05712994188070297, -0.027802277356386185, 0.013749328441917896, 0.055686552077531815, -0.0458698607981205, 0.029077623039484024, -0.02207738533616066, -0.04491496458649635, 0.02374437265098095, -0.030191512778401375, -0.04081985354423523, 0.01609707623720169, -0.06068001314997673, -0.0726497545838356, 0.03568577766418457, 0.0007212654454633594, 0.04947248846292496, -0.11369678378105164, -0.0398436039686203, 0.025454195216298103, 0.005462580360472202, 0.05984004959464073, 0.01605464145541191, -0.01847476325929165, 0.02742082253098488, -0.024972781538963318, -0.047666266560554504, 0.04533734172582626, 0.07783939689397812, 0.025009579956531525, 0.03349389135837555, 0.019719000905752182, -0.042011991143226624, -0.06108035892248154, -0.01811128295958042, -0.07034167647361755, 0.01519830897450447, -0.05133966729044914, -0.021187763661146164, 0.018778640776872635, 0.03336410969495773, -0.031171360984444618, 0.11519918590784073, -0.02391643077135086, -0.02431633695960045, 0.03431118652224541, -0.03613859787583351, 0.04043789580464363, 0.06795495748519897, 0.023539716377854347, 0.027033284306526184, -0.04465481638908386, 0.004723499529063702, -0.029279328882694244, 0.04209692403674126, 0.11735665798187256, 0.043637946248054504, 0.026826702058315277, -0.01284887082874775, -0.04581103473901749, 0.05902627855539322, -0.04134628176689148, 0.03936381638050079, 0.006894311401993036, -0.011869499459862709, 0.005578612443059683, -0.05658740922808647, -0.06351263076066971, 0.00026793190045282245, -0.026895010843873024, -0.025039296597242355, 0.052669648081064224, -0.06134716048836708, 0.020586570724844933, 0.001937922672368586, -0.10277993232011795, 0.038209084421396255, 0.035977572202682495, 0.018231315538287163, -0.025396110489964485, -0.0357213132083416, 0.041708316653966904, 0.0008310552802868187, -0.006125336047261953, 0.005558548960834742, -0.05615633353590965, 0.001471497118473053, -0.026243165135383606, -0.002209806814789772, 0.0140147116035223, -0.02022760547697544, 0.05312572792172432, 0.010834559798240662, -0.03316012769937515, 0.022265402600169182, -0.004182758741080761, -0.00938834622502327, -0.04918510094285011, 0.03905520588159561, 0.0024891647044569254, -0.004528918769210577, -0.030619043856859207, 0.027942843735218048, -0.005989587400108576, 0.05167771130800247, -0.005614808760583401, 0.07532738894224167, 0.015316582284867764, 0.048966504633426666, -0.003077337983995676, -0.01508505828678608, -0.012909436598420143, -0.04008123278617859, 0.013907859101891518, -0.018749505281448364, -0.00017791445134207606, 0.05105968937277794, 0.009999535046517849, 0.016631046310067177, -0.014648965559899807, -0.009538811631500721, -0.04450139403343201, -0.03136979416012764, 0.03857859596610069, 0.010372169315814972, 0.03774228319525719, -0.03272916004061699, 0.02341497130692005, -0.0001739656290737912, 0.032979726791381836, -0.11159046739339828, -0.01731938123703003, 0.007004376035183668, 0.007503163535147905, -0.01792946457862854, -0.004795728716999292, 0.03790474683046341, -0.04766898229718208, 0.011041651479899883, -0.0344528965651989, 0.05033227428793907, 0.04106515645980835, 0.02692086435854435, -0.026176033541560173, 0.009330250322818756, -0.02969522401690483, -0.01374764833599329, -0.002915413584560156, 0.06276927888393402, -0.042098380625247955, -0.02480507828295231, 0.0028396323323249817, -0.013621451333165169, -0.0002784014504868537, 0.022824546322226524, 0.0364726260304451, 0.01906551606953144, 0.02030474692583084, 0.014214972034096718, -0.003290280932560563, -0.07005291432142258, -0.021348757669329643, -0.02992110513150692, 0.007092880550771952, -0.03367187827825546, -0.04226917400956154, 0.027189280837774277, 0.02509395033121109, 0.03013223223388195, 0.025521259754896164, 0.03117317520081997, 0.004103218205273151, 0.08575107157230377, -0.011987640522420406, -0.023521794006228447, 0.007862553000450134, -0.0013391624670475721, 0.030510714277625084, -0.002830157522112131, -0.006544000003486872, -0.029215045273303986, 0.02794792503118515, 0.019832687452435493, 0.04669156298041344, 0.005895703099668026, -0.003220102982595563, -0.02637927606701851, 0.03662159666419029, 0.030441831797361374, 0.007842266000807285, -0.02002396062016487, -0.05538719519972801, -0.003892585402354598, 0.01656332053244114, -0.04153389856219292, 0.016250520944595337, 0.013037297874689102, 0.03171786665916443, -0.05486133322119713, 0.047575291246175766, 0.0126359136775136, 0.014810707420110703, -0.007468524854630232, 0.02143079787492752, 0.008964141830801964, 0.027929332107305527, 0.006423800252377987, -0.021576646715402603, 0.018261443823575974, -0.015021982602775097, 0.0007404031930491328, -0.008960496634244919, 0.005054499953985214, 0.004338208120316267, 0.00036378606455400586, 0.0019472147105261683, 0.017389854416251183, -0.0177798829972744, 0.0139289740473032, 0.01946062594652176, 0.018932057544589043, -0.021515144035220146, -0.003760588588193059, 0.006083224900066853, -0.01400069147348404, 0.01725148968398571, 0.02494749240577221, -0.029470739886164665, 0.044474128633737564, 0.024933280423283577, 0.02473587729036808, 0.006958107464015484, -0.01626460626721382, 0.002037039725109935, -0.012557773850858212, 0.03197787329554558, -0.0257782731205225, -0.031733594834804535, 0.010651426389813423, 0.011884467676281929, 0.04015764221549034, -0.04791417345404625, 0.024985888972878456, 0.00157198088709265, -0.0013679495314136147, 0.008095069788396358, -0.044832341372966766, -0.05991131812334061, -0.014441919513046741, 0.014429762959480286, -0.031528063118457794, 0.019450604915618896, -0.0071465796791017056, -0.007166414987295866, 0.012459072284400463, -0.001355769345536828, -0.0064616091549396515, 0.011672710068523884, 0.023653868585824966, -0.003285791492089629, -0.05816485360264778, -0.046092454344034195, 0.07209818810224533, -0.011219102889299393, -0.008571617305278778, 0.021244583651423454, 0.0031620848458260298, 0.051911335438489914, 0.010888762772083282, -0.06066619232296944, 0.002106471685692668, -0.015815740451216698, 0.011456314474344254, 0.01642778515815735, 0.03222601115703583, -0.012194686569273472, -0.02670487016439438, -0.017250854521989822, 0.012677578255534172, 0.015366178937256336, 0.019887933507561684, -0.02421909011900425, 0.002388207707554102, 0.013747099786996841, 0.042527470737695694, 0.007545906119048595, 0.06187668442726135, 0.024307921528816223, 0.01050544623285532, 0.04885337874293327, 0.02335960604250431, 0.0067341201938688755, -0.028011200949549675, 0.044783513993024826, 0.0377010777592659, -0.00045323302038013935, 0.04091750457882881, -0.06600004434585571, 0.0061970544047653675, -0.006605880800634623, -0.0383928120136261, -0.05727917328476906, 0.050224918872117996, -0.027415771037340164, 0.003565968247130513, 0.00101579655893147, -0.015595443546772003, -0.03226657584309578, 0.021631034091114998, 0.06392472982406616, -0.03636433184146881, 0.017399219796061516, 0.008824003860354424, 0.02588787116110325, -0.01243528164923191, -0.004559976514428854, 0.023156577721238136, 0.019228290766477585, 0.024336732923984528, 0.05438588932156563, 0.028919270262122154, -0.03314787149429321, 0.007116185035556555, -0.007411736994981766, -0.0038298454601317644, -0.03096776269376278, -0.012308575212955475, 0.02639867551624775, -0.003280764212831855, -0.03398504853248596, -0.01777300238609314, 0.04472028836607933, 0.004749784711748362, -0.001239791396073997, 0.006012120749801397, 0.005809282884001732, 0.025392580777406693, 0.03846592828631401, -0.02339695580303669, -0.02133062668144703, -0.03239588439464569, -0.0243567805737257, -0.04222724959254265, 0.020974546670913696, 0.026624733582139015, -0.026301920413970947, -0.03746304288506508, -0.0014343190705403686, 0.024002600461244583, 0.032884951680898666, 0.03739313781261444, -0.012870332226157188, -0.009667583741247654, -0.010926843620836735, 0.0020297591108828783, 0.010922525078058243, -0.012361994944512844, -0.0027469773776829243, -0.006123244762420654, 0.06184801459312439, 0.02779812179505825, 0.041254326701164246, -0.02634597197175026, 0.023588288575410843, 0.016123879700899124, 0.012929716147482395, -0.06742368638515472, 0.04241982474923134, -0.010705183260142803, -0.024112632498145103, -0.04372726380825043, -0.03769265487790108, -0.029536304995417595, -0.014390428550541401, -0.019551925361156464, 0.004303344059735537, 0.045965079218149185, -0.01934655010700226, -0.015787307173013687, -0.016138726845383644, 0.05146611109375954, -0.018828410655260086, -0.008013519458472729, 0.008505884557962418, 0.006863410118967295, 0.028613310307264328, 0.020219195634126663, 0.004150506108999252, 0.03994982689619064, -0.0021217679604887962, -0.015667492523789406, -0.04145629703998566, 0.02862515300512314, 0.04506604000926018, -0.020549973472952843, 0.019727196544408798, -0.011611714027822018, -0.027925388887524605, 0.000011044302482332569, 0.03566369786858559, 0.004321757238358259, 0.022158149629831314, -0.012402345426380634, -0.03581807389855385, -0.004555283114314079, -0.019427286460995674, 0.018267758190631866, 0.08194620162248611, -0.03265833482146263, 0.02863527275621891, -0.0070143393240869045, -0.00019492620776873082, 0.0443972609937191, 0.019890761002898216, -0.03649452328681946, 0.07041776925325394, 0.04209072142839432, 0.0038096595089882612, 0.017499243840575218, 0.037198927253484726, -0.02530849538743496, -0.012232677079737186, -0.01556030847132206, -0.01803012005984783, -0.04877534136176109, 0.04298761114478111, -0.004780222661793232, -0.00243588350713253, 0.00948646105825901, -0.029784228652715683, 0.07954901456832886, 0.004383201710879803, 0.0436270609498024, 0.00558442622423172, -0.0070394896902143955, -0.0013487170217558742, 0.0064904880709946156, -0.006271545775234699, 0.0016046559903770685, -0.012645241804420948, 0.05341245234012604, 0.03580223768949509, -0.04358283430337906, -0.012803712859749794, 0.009409558027982712, -0.023642031475901604, 0.027330080047249794, 0.01891370117664337, -0.03735406696796417, 0.007595943287014961, 0.025372756645083427, -0.013691450469195843, -0.012815834023058414, 0.014832543209195137, -0.021786335855722427, -0.06235727295279503, 0.03876061737537384, 0.008595564402639866, -0.025849418714642525, -0.010973739437758923, 0.0021933219395577908, -0.009643936529755592, 0.026594489812850952, 0.041680581867694855, -0.013871772214770317, 0.023390792310237885, 0.03999394178390503, 0.006204074714332819, 0.011771079152822495, -0.014397126622498035, -0.027381399646401405, 0.03195428103208542, -0.008432726375758648, 0.0027584051713347435, 0.0058715492486953735, 0.001039785798639059, -0.009573010727763176, 0.0008740171324461699, -0.020446235314011574, 0.01798987202346325, 0.05031999573111534, 0.01884157769382, 0.01824290305376053, 0.029274282976984978, -0.03545860946178436, -0.0317043662071228, -0.0056203375570476055, -0.0199320949614048, 0.009595101699233055, -0.004116591531783342, 0.04014622047543526, 0.02187443897128105, -0.009984273463487625, -0.051796264946460724, -0.03803161159157753, -0.019061192870140076, -0.0415286049246788, -0.0223146490752697, 0.0010900481138378382, -0.020320331677794456, -0.004511643201112747, 0.037586942315101624, 0.0038782013580203056, 0.011387976817786694, -0.011508452706038952, 0.022041523829102516, -0.010194564238190651, -0.007374912034720182, -0.016803821548819542, -0.02679799124598503, 0.04732099547982216, -0.0037910800892859697, 0.0334765762090683, -0.00683693028986454, 0.046394381672143936, -0.017214220017194748, -0.00024935128749348223, 0.03180356323719025, -0.0013718418776988983, -0.0011046768631786108, -0.03536791354417801, -0.06394781172275543, 0.004683098755776882, -0.016598528251051903, 0.009388558566570282, 0.024768760427832603, -0.0068949488922953606, -0.011720646172761917, 0.005354078020900488, -0.012168419547379017, -0.06534671783447266, 0.036735255271196365, 0.04991269111633301, 0.0037695385981351137, -0.0005371161387301981, -0.0041069649159908295, -0.025217121466994286, -0.01963995397090912, -0.01925615780055523, 0.022217243909835815, 0.0640687569975853, 0.004823076538741589, -0.03283288702368736, -0.009972628206014633, 0.06173275038599968, -0.008893844671547413, -0.0551055409014225, -0.01958514004945755, 0.02210819348692894, -0.004659288562834263, -0.04760688543319702, 0.021346546709537506, -0.007998364977538586, 0.005711076315492392, -0.0027332669124007225, 0.013736432418227196, -0.021417224779725075, -0.0019006606889888644, -0.00747001962736249, -0.0360550656914711, 0.013217251747846603, -0.003287132130935788, -0.03270752727985382, 0.01708359085023403, 0.014909912832081318, 0.02441791072487831, -0.023592881858348846, -0.02470831200480461, 0.022298336029052734, 0.003342936048284173, 0.013092411682009697, -0.04784251004457474, 0.010749157518148422, 0.008991437032818794, -0.024277638643980026, -0.0651303082704544, -0.00750588858500123, 0.015628036111593246, 0.024920329451560974, -0.02408754639327526, -0.004287048242986202, 0.015228848904371262, 0.014315782114863396, 0.029505105689167976, 0.014440057799220085, 0.029984453693032265, -0.007081992924213409, 0.008653312921524048, 0.03128023445606232, -0.016394227743148804 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Using T2I-Adapter-SDXL in diffusers Here, we take the lineart condition as an example to demonstrate the usage of T2I-Adapter-SDXL. To get started, first install the required dependencies: bash pip install -U git+https://github.com/huggingface/diffusers.git pip install -U controlnet_aux==0.0.7 # for conditioning models and detectors pip install transformers accelerate The generation process of the T2I-Adapter-SDXL mainly consists of the following two steps: 1. Condition images are first prepared into the appropriate control image format. 2. The control image and prompt are passed to the StableDiffusionXLAdapterPipeline. Let's have a look at a simple example using the Lineart Adapter. We start by initializing the T2I-Adapter pipeline for SDXL and the lineart detector. python import torch from controlnet_aux.lineart import LineartDetector from diffusers import (AutoencoderKL, EulerAncestralDiscreteScheduler, StableDiffusionXLAdapterPipeline, T2IAdapter) from diffusers.utils import load_image, make_image_grid # load adapter adapter = T2IAdapter.from_pretrained( "TencentARC/t2i-adapter-lineart-sdxl-1.0", torch_dtype=torch.float16, varient="fp16" ).to("cuda") # load pipeline model_id = "stabilityai/stable-diffusion-xl-base-1.0" euler_a = EulerAncestralDiscreteScheduler.from_pretrained( model_id, subfolder="scheduler" ) vae = AutoencoderKL.from_pretrained( "madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16 ) pipe = StableDiffusionXLAdapterPipeline.from_pretrained( model_id, vae=vae, adapter=adapter, scheduler=euler_a, torch_dtype=torch.float16, variant="fp16", ).to("cuda") # load lineart detector line_detector = LineartDetector.from_pretrained("lllyasviel/Annotators").to("cuda") Then, load an image to detect lineart: python url = "https://huggingface.co/Adapter/t2iadapter/resolve/main/figs_SDXLV1.0/org_lin.jpg" image = load_image(url) image = line_detector(image, detect_resolution=384, image_resolution=1024) Then we generate: python prompt = "Ice dragon roar, 4k photo" negative_prompt = "anime, cartoon, graphic, text, painting, crayon, graphite, abstract, glitch, deformed, mutated, ugly, disfigured" gen_images = pipe( prompt=prompt, negative_prompt=negative_prompt, image=image, num_inference_steps=30, adapter_conditioning_scale=0.8, guidance_scale=7.5, ).images[0] gen_images.save("out_lin.png") There are two important arguments to understand that help you control the amount of conditioning. 1. adapter_conditioning_scale This argument controls how much influence the conditioning should have on the input. High values mean a higher conditioning effect and vice-versa. 2. adapter_conditioning_factor This argument controls how many initial generation steps should have the conditioning applied. The value should be set between 0-1 (default is 1). The value of adapter_conditioning_factor=1 means the adapter should be applied to all timesteps, while the adapter_conditioning_factor=0.5 means it will only applied for the first 50% of the steps. For more details, we welcome you to check the official documentation.
[ 0.05341862514615059, -0.03812764212489128, 0.011511679738759995, 0.04023534059524536, 0.03882421553134918, -0.038442689925432205, -0.016830042004585266, -0.03623325750231743, 0.02206718549132347, -0.07761184126138687, -0.04079839959740639, 0.010271301493048668, 0.03838128224015236, 0.05333497375249863, -0.012811408378183842, -0.05336805805563927, 0.016075827181339264, 0.010640286840498447, -0.04527050629258156, 0.07793586701154709, 0.05727669969201088, -0.02993352711200714, -0.01149175874888897, 0.025963421911001205, -0.06169869750738144, -0.09185142070055008, -0.02399599924683571, 0.04081379622220993, 0.058152131736278534, -0.011306148022413254, -0.05301828682422638, -0.001730842050164938, 0.012862887233495712, -0.07621374726295471, 0.09043296426534653, -0.0015879280399531126, -0.09273744374513626, -0.06286991387605667, 0.02119658887386322, -0.038393497467041016, -0.01772775687277317, 0.0047003598883748055, -0.023245617747306824, 0.00044533476466313004, 0.05249809846282005, -0.08048395812511444, -0.13187696039676666, 0.04540314897894859, -0.04715527966618538, 0.07610991597175598, -0.04195968806743622, 0.035574715584516525, 0.049988094717264175, -0.03096606954932213, 0.07609908282756805, 0.03403184190392494, 0.020632460713386536, 0.019299600273370743, 0.050537824630737305, -0.0406455472111702, 0.004218607675284147, -0.0019456616137176752, -0.006087982561439276, 0.03107033111155033, -0.0032982975244522095, -0.04970230907201767, -0.03350764140486717, 0.012034974992275238, -0.052018553018569946, -0.07563965022563934, 0.016413498669862747, 0.008123325183987617, 0.00011504627036629245, 0.029772425070405006, 0.03134876862168312, -0.028526809066534042, -0.04431656375527382, 0.05544228106737137, 0.03258637338876724, 0.08087854832410812, -0.026993248611688614, 0.014241285622119904, 0.0037566821556538343, 0.048993103206157684, 0.007801740430295467, 0.007686728611588478, 0.041050124913454056, -0.03381200134754181, -0.009338960982859135, 0.030921198427677155, -0.013699417002499104, -0.04311130568385124, 0.02511690743267536, -0.04208926856517792, 0.012775629758834839, 0.024510398507118225, -0.01689116656780243, 0.017209241166710854, 0.05173161253333092, 0.011377302929759026, 0.012693026103079319, -0.05901477113366127, 0.033848848193883896, -0.14698709547519684, -0.08759421110153198, 0.026940764859318733, -0.06049058586359024, -0.00479517225176096, -0.05423587188124657, -0.006668706424534321, 0.012082631699740887, -0.012148796580731869, -0.016687216237187386, 0.03151905909180641, -0.09779701381921768, 0.028253940865397453, -0.029688112437725067, 0.04230286180973053, -0.03077876940369606, 0.03572528809309006, -0.07862190902233124, 0.08514534682035446, 0.06941968947649002, -0.05088186636567116, -0.08486194163560867, 0.058240991085767746, -0.06763110309839249, 0.030108291655778885, -0.04482688754796982, 0.011747624725103378, 0.03050537221133709, -0.03839638829231262, 0.07448666542768478, -0.07155053317546844, 0.08206188678741455, -0.07394389808177948, 0.01038307324051857, -0.0357917919754982, 0.06402382254600525, 0.03549151122570038, 0.03244681656360626, 0.059429217129945755, 0.002645171945914626, -0.04857773706316948, -0.027719926089048386, -0.00806236919015646, -0.007033683825284243, 0.05930575355887413, -0.0450713224709034, 0.02653159201145172, -0.051926612854003906, 0.035174254328012466, -0.04523604363203049, -0.0243119765073061, -0.024226730689406395, 0.060771286487579346, -0.05411547049880028, 0.01804075948894024, -0.06609493494033813, 0.03693403676152229, 0.011377082206308842, 0.021571187302470207, -0.0693436935544014, -0.03488617017865181, 0.058047499507665634, -0.029941998422145844, 0.0052063846960663795, 0.017110750079154968, 0.06425449252128601, -0.03839368000626564, 0.0688789114356041, -0.048060737550258636, -0.01676069386303425, 0.04364599660038948, 0.04880402982234955, 0.04548632726073265, 0.02435232326388359, 0.062408626079559326, -0.04137022793292999, -0.08773946017026901, -0.038439083844423294, 0.09235446900129318, -0.03935004025697708, 0.04169543460011482, 0.06797154247760773, -0.017382293939590454, 0.03339124098420143, -0.039174359291791916, -0.005134034901857376, 0.014223294332623482, -0.014601437374949455, 0.021397829055786133, 0.02771073766052723, -0.03113720566034317, 0.003301446558907628, -0.09502510726451874, -0.057459816336631775, 0.04564691707491875, 0.014697336591780186, -0.03932274505496025, 0.01060765702277422, -0.017168959602713585, 0.003285151207819581, -0.0151281226426363, -0.02530963160097599, 0.037300996482372284, 0.04646335169672966, -0.044071100652217865, 0.01180719118565321, 0.047159288078546524, -0.023218713700771332, -0.1470838040113449, 0.0049964506179094315, -0.03653820976614952, 0.046833258122205734, -0.040991004556417465, -0.03071664460003376, 0.03161634877324104, 0.07318253815174103, -0.009813638404011726, 0.09022525697946548, -0.020506829023361206, 0.02160997875034809, 0.0009405525051988661, 0.01237031165510416, 0.0018060050206258893, 0.11434736847877502, 0.041475653648376465, 0.011467461474239826, -0.0920722484588623, -0.07770960032939911, -0.055441949516534805, 0.0053487555123865604, 0.026697296649217606, -0.01365702785551548, -0.03293493762612343, 0.056108489632606506, -0.037758637219667435, 0.030239854007959366, -0.013196577318012714, 0.07337198406457901, 0.02482839673757553, -0.012444793246686459, -0.034181442111730576, -0.04565998539328575, 0.009421384893357754, 0.006541588809341192, -0.00027324369875714183, -0.02011655643582344, 0.008428437635302544, -0.03223036974668503, 0.032609160989522934, -0.023139430209994316, -0.07748982310295105, 0.02379835955798626, 0.08861663192510605, 0.045034654438495636, 0.024300752207636833, -0.04918733611702919, 0.07797320932149887, -0.0016069129342213273, 0.021083306521177292, -0.03162910044193268, -0.05795678496360779, -0.03701842948794365, -0.012321307323873043, 0.021264296025037766, -0.008028168231248856, -0.01365337148308754, 0.005844765342772007, 0.02201146073639393, 0.015623923391103745, 0.023850010707974434, 0.008995418436825275, 0.0016542325029149652, 0.01686358079314232, 0.05170759558677673, 0.02468983456492424, -0.03153640031814575, -0.05733747035264969, 0.036697834730148315, -0.014265017583966255, 0.03366047516465187, 0.051468316465616226, 0.01948668621480465, 0.039669185876846313, 0.006907682865858078, 0.011867212131619453, -0.037225719541311264, -0.01572599820792675, -0.00017648398352321237, 0.019098730757832527, 0.03557813540101051, 0.0028092185966670513, 0.022627854719758034, 0.0450681708753109, -0.01531753409653902, -0.0398852601647377, 0.014204717241227627, 0.016475902870297432, -0.009054101072251797, 0.01358182542026043, 0.01723591983318329, 0.03373979777097702, -0.034153424203395844, -0.01568259298801422, -0.01843782141804695, -0.01688467524945736, -0.07364963740110397, -0.03275255858898163, 0.01309448666870594, 0.0026666189078241587, -0.005727752111852169, -0.025550369173288345, 0.04542459174990654, -0.06769201159477234, 0.012178143486380577, -0.016222096979618073, 0.021492060273885727, 0.031100789085030556, 0.03578009083867073, -0.024339431896805763, 0.028719939291477203, -0.030809594318270683, 0.018753735348582268, -0.015573152340948582, 0.05568522959947586, -0.02654557302594185, -0.04600468650460243, 0.01178720872849226, 0.005987570621073246, 0.032189998775720596, 0.00740186357870698, 0.025516800582408905, 0.02909783460199833, 0.0031661326065659523, -0.020761359483003616, -0.00005758606130257249, -0.034906405955553055, -0.035917382687330246, -0.017764220014214516, 0.00210271286778152, -0.03763049840927124, 0.014043127186596394, -0.0025829600635915995, -0.005253943149000406, 0.04500412568449974, 0.01794905960559845, 0.009882127866148949, 0.007893741130828857, 0.03975481539964676, 0.013622000813484192, 0.029344404116272926, -0.009775076061487198, 0.01766490377485752, -0.01796238124370575, -0.026667162775993347, 0.0314396508038044, -0.010109166614711285, 0.07729507982730865, -0.00029880658257752657, 0.03261611610651016, 0.021375499665737152, 0.04347603768110275, 0.00833919644355774, 0.04863934963941574, 0.03427403047680855, -0.04941568523645401, -0.034051671624183655, -0.042880699038505554, -0.022904271259903908, -0.0021727720741182566, -0.0048712026327848434, 0.03846299648284912, 0.02671726420521736, -0.03204213082790375, -0.04780592396855354, 0.0261747594922781, -0.015325905755162239, 0.033637065440416336, 0.023111823946237564, -0.0008915536454878747, 0.005624879617244005, -0.003445001784712076, -0.0014659696025773883, -0.03628931939601898, 0.0073506031185388565, -0.003007911378517747, -0.020517239347100258, -0.04726444184780121, -0.01998215541243553, -0.0010312872473150492, 0.0157917607575655, 0.022908518090844154, 0.0062134526669979095, -0.04576309025287628, 0.02399047650396824, 0.0011311725247651339, 0.0026196157559752464, 0.006816990673542023, 0.00661909393966198, -0.012425810098648071, -0.025140732526779175, -0.027594231069087982, -0.0019363167230039835, -0.002487337915226817, 0.04359981045126915, 0.03573812544345856, 0.014054347760975361, -0.035945843905210495, -0.007720574736595154, -0.009008760564029217, -0.03216637298464775, -0.01892681233584881, -0.07185417413711548, -0.030588125810027122, 0.011134764179587364, -0.0076545411720871925, 0.042499180883169174, -0.023876510560512543, 0.028183676302433014, 0.008097856305539608, -0.022869735956192017, 0.025019794702529907, 0.02571077272295952, -0.018905626609921455, -0.04464400187134743, 0.004644352942705154, -0.030578214675188065, 0.007912806235253811, 0.0023916561622172594, -0.025643019005656242, 0.02119319885969162, 0.04420626908540726, -0.0022288986947387457, 0.03747447580099106, 0.04287286475300789, -0.025407835841178894, -0.08740471303462982, -0.05185466259717941, 0.040908001363277435, -0.023682937026023865, -0.03632248565554619, 0.004170239437371492, -0.024120444431900978, 0.02172722853720188, -0.0037620635703206062, -0.015075880102813244, -0.010627360083162785, 0.011591709218919277, 0.04332764446735382, -0.014569186605513096, -0.0039008697494864464, 0.03247490152716637, -0.022605888545513153, 0.018788998946547508, -0.0019232752965763211, -0.04554266482591629, 0.04377973824739456, 0.017530236393213272, -0.0086857620626688, -0.002444688929244876, 0.0386040173470974, -0.023539360612630844, 0.02248389832675457, 0.021212704479694366, 0.054438915103673935, 0.021544409915804863, -0.015556585974991322, 0.002835946623235941, -0.008267728611826897, 0.04016166552901268, 0.03462478891015053, 0.0048840101808309555, -0.01466792356222868, -0.046967796981334686, 0.024433135986328125, -0.030098149552941322, -0.021531999111175537, 0.014332848601043224, 0.0372760184109211, -0.0072698332369327545, -0.003731715027242899, 0.04794342443346977, 0.03651814162731171, 0.009537316858768463, -0.006060121115297079, -0.005458054598420858, -0.011185217648744583, -0.010917451232671738, 0.03836154192686081, -0.0432407520711422, -0.0026415283791720867, 0.0046554869040846825, 0.018047092482447624, 0.029890550300478935, 0.05572012439370155, 0.08207321166992188, -0.015737494453787804, -0.035690564662218094, 0.03196398913860321, 0.007253897842019796, -0.026216790080070496, -0.01302572526037693, -0.00012113510456401855, 0.05271776393055916, -0.015782848000526428, -0.018448837101459503, 0.005141969304531813, 0.031421761959791183, -0.04249490052461624, -0.04683683067560196, 0.018834782764315605, 0.025274304673075676, -0.0035136756487190723, 0.040800467133522034, -0.013126332312822342, -0.040479857474565506, 0.025155965238809586, -0.013032215647399426, -0.0059807077050209045, -0.02752869576215744, 0.003877911949530244, 0.006113138049840927, 0.00043363095028325915, 0.0045135729014873505, 0.024476682767271996, 0.020627662539482117, -0.005935527849942446, -0.016984272748231888, 0.0021712256129831076, -0.023855309933423996, 0.019290516152977943, -0.01264633983373642, 0.05362246558070183, -0.02310401387512684, -0.008446510881185532, 0.007788832765072584, -0.0232442244887352, 0.05492864549160004, -0.058718059211969376, 0.043269164860248566, -0.005763581953942776, 0.009734918363392353, -0.026949338614940643, 0.01784064993262291, 0.04671834781765938, -0.02611953392624855, -0.015904443338513374, -0.0022103332448750734, -0.036732256412506104, 0.03482627123594284, -0.022163504734635353, 0.06412053853273392, -0.005701142363250256, -0.033236678689718246, -0.008597766049206257, -0.015514593571424484, 0.03285416215658188, 0.0028362232260406017, -0.05507514998316765, -0.007946274243295193, 0.02939833328127861, 0.039803773164749146, 0.0036554597318172455, -0.010262971743941307, 0.0497126579284668, 0.006907391361892223, -0.031832240521907806, -0.06890780478715897, 0.01620345190167427, 0.02533072978258133, -0.0008586809271946549, -0.0023801946081221104, -0.0030630421824753284, -0.006326489150524139, -0.01804768480360508, 0.028318841010332108, 0.0380936898291111, 0.000557703198865056, -0.03285468742251396, -0.019802244380116463, -0.024505412206053734, -0.0064444211311638355, -0.04286119341850281, 0.08192571252584457, -0.039215125143527985, -0.003482947824522853, 0.01631222851574421, 0.007047960069030523, 0.05618840828537941, 0.0017982162535190582, 0.01091745961457491, 0.015225894749164581, 0.04169236496090889, 0.0014578073751181364, 0.02209596522152424, 0.05153641849756241, -0.020099487155675888, -0.04123028367757797, -0.014685316011309624, -0.04585007578134537, -0.0351766012609005, 0.021018285304307938, 0.030883193016052246, 0.0021455599926412106, -0.019907061010599136, -0.0354420468211174, 0.08233287185430527, 0.059362974017858505, 0.07379334419965744, 0.0022822576574981213, -0.0011063559213653207, -0.011248980648815632, -0.01085369661450386, 0.004169632215052843, 0.024274222552776337, -0.011039272882044315, 0.04315153509378433, 0.030686412006616592, -0.0228427704423666, 0.01733020320534706, 0.05495496094226837, 0.04627007991075516, 0.010928756557404995, -0.0031204940751194954, -0.03653628006577492, 0.0013354119146242738, 0.004973098635673523, -0.025814644992351532, -0.03377729654312134, 0.020168092101812363, -0.04421558976173401, -0.003687191056087613, 0.01343877986073494, 0.008593897335231304, 0.003767115529626608, 0.034953027963638306, 0.04829345643520355, -0.045459214597940445, 0.02001779153943062, 0.01817932352423668, -0.018093181774020195, 0.014677425846457481, 0.028697168454527855, 0.01097247563302517, 0.016768597066402435, -0.012573973275721073, -0.0013568218564614654, 0.019562717527151108, -0.02189348079264164, 0.04636714607477188, -0.02618991583585739, -0.00660070450976491, -0.044168222695589066, 0.004180021118372679, 0.0069749378599226475, 0.012938760221004486, 0.03531133756041527, 0.015199581161141396, 0.030420565977692604, -0.0023280587047338486, 0.019820278510451317, -0.06022507697343826, 0.005922581069171429, -0.04947037622332573, 0.04412640631198883, 0.045518022030591965, 0.05346640944480896, 0.02392188273370266, 0.010491128079593182, -0.019019195809960365, -0.047355975955724716, -0.030149416998028755, -0.013323714956641197, -0.021007122471928596, 0.011404570192098618, -0.021204497665166855, -0.019576165825128555, 0.037682779133319855, -0.07613226026296616, 0.009289294481277466, 0.03528768569231033, -0.0004420695477165282, -0.004466847982257605, 0.0024337596260011196, 0.013103037141263485, 0.008373341523110867, 0.07858721911907196, 0.020214062184095383, 0.01246822439134121, 0.019137496128678322, 0.01834632270038128, -0.024232588708400726, -0.006985703017562628, 0.04584650322794914, -0.03853187337517738, -0.004032880067825317, -0.030195772647857666, -0.03197747468948364, 0.020104417577385902, 0.00009352683264296502, -0.021170562133193016, 0.03140437602996826, -0.006528363563120365, -0.015117675997316837, -0.02372581511735916, -0.06369739025831223, -0.02627423219382763, 0.023884231224656105, 0.05371001362800598, 0.038104794919490814, -0.0030921015422791243, 0.03168376907706261, -0.030800091102719307, 0.029683852568268776, -0.047342028468847275, 0.015392526052892208, 0.0356711708009243, 0.0151339927688241, -0.008944202214479446, -0.029350614175200462, 0.0007619215757586062, 0.004985245410352945, -0.043992601335048676, -0.01249813660979271, 0.014532040804624557, -0.010714487172663212, -0.03702715039253235, 0.04733637347817421, 0.039757683873176575, 0.0030700217466801405, -0.0004489354323595762, 0.0034377228002995253, -0.049669165164232254, 0.01953662931919098, 0.01709270104765892, -0.031740330159664154, 0.02477608062326908, -0.017277318984270096, -0.005439381115138531, 0.007712054066359997, -0.046893492341041565, 0.035718824714422226, -0.023341532796621323, 0.008364898152649403, -0.0033046570606529713, 0.01101491879671812, -0.02718226984143257, -0.038749467581510544, 0.016971107572317123, 0.02818947844207287, 0.01613401621580124, -0.03428920358419418, -0.01747250184416771, 0.013470412231981754, 0.023947982117533684, -0.0019620617385953665, -0.005478839389979839, -0.02320079691708088, 0.006338617764413357, -0.007335851434618235, 0.03879816085100174, 0.016600897535681725, -0.008297517895698547, -0.020435862243175507, -0.033855192363262177, -0.03135157376527786 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
OpenPose Guided Model from TencentARC/t2i-adapter-openpose-sdxl-1.0 --- Acknowledgements: Immense thanks to William Berman for helping us train the models and sharing his insights.
[ 0.03667271509766579, -0.029018418863415718, 0.07210992276668549, 0.014441566541790962, 0.05947320535778999, 0.023156868293881416, -0.05341029167175293, -0.013768286444246769, 0.003168597351759672, -0.04821515083312988, -0.026600725948810577, -0.038352709263563156, -0.008647440001368523, 0.029792090877890587, 0.044495221227407455, 0.010322465561330318, 0.0007344728801399469, -0.017186613753437996, 0.030261803418397903, 0.01984855905175209, 0.05269993469119072, -0.029272140935063362, 0.027782833203673363, -0.010456894524395466, -0.01185463834553957, -0.04776644706726074, 0.0031352639198303223, -0.013636920601129532, -0.03517769277095795, -0.012033130042254925, -0.09363579005002975, 0.03424863517284393, 0.022086400538682938, -0.111200712621212, -0.012128804810345173, -0.03478254750370979, -0.08411876112222672, 0.04844914376735687, -0.03381210193037987, -0.07553309202194214, -0.00938829593360424, 0.004683033097535372, -0.013118770904839039, 0.05589744448661804, -0.028276653960347176, -0.053263768553733826, -0.1547217071056366, 0.04333936423063278, -0.009640863165259361, 0.02317686751484871, -0.009649023413658142, 0.019235139712691307, 0.02752343751490116, 0.01757204905152321, 0.03532954677939415, 0.04433967545628548, 0.030222998932003975, -0.013256863690912724, 0.03880928456783295, -0.06734873354434967, 0.014763373881578445, -0.012834717519581318, -0.00321223889477551, 0.0015836579259485006, -0.01038611214607954, -0.0304703526198864, -0.006850093603134155, -0.021854804828763008, -0.048168424516916275, -0.07204774767160416, 0.010962411761283875, -0.02097266912460327, -0.017550412565469742, 0.027688486501574516, 0.05282709002494812, -0.05575576052069664, -0.017954453825950623, 0.0626070573925972, 0.05219529569149017, 0.006683179643005133, -0.052370186895132065, 0.023819049820303917, 0.05907004699110985, 0.06087382882833481, 0.019321685656905174, -0.032478105276823044, 0.07086075842380524, -0.06660106778144836, -0.009632262401282787, 0.05811005085706711, 0.0030625334475189447, -0.1535380631685257, 0.009308567270636559, 0.02791419066488743, -0.023787574842572212, -0.0820419117808342, 0.008001725189387798, -0.009808014146983624, 0.07113988697528839, 0.06263100355863571, -0.002662420505657792, -0.021147949621081352, 0.05215674266219139, -0.03990863263607025, -0.05720370262861252, 0.0377805270254612, 0.032376740127801895, -0.0437731072306633, -0.010946092195808887, 0.020233921706676483, -0.04058006778359413, 0.036576397716999054, 0.03513767197728157, 0.03081306628882885, -0.09054563194513321, 0.059130989015102386, -0.015642691403627396, 0.017515596002340317, 0.03152672201395035, 0.012155551463365555, -0.10465734452009201, 0.14780883491039276, -0.005287596490234137, -0.008379623293876648, 0.0047475602477788925, 0.04893742501735687, 0.02177773043513298, 0.019286271184682846, -0.09763947874307632, 0.01180344633758068, 0.023579668253660202, 0.006095370277762413, 0.041392792016267776, 0.00918752420693636, 0.007019584067165852, -0.09926005452871323, 0.019868900999426842, -0.015596777200698853, 0.029476365074515343, 0.042082201689481735, -0.043815046548843384, 0.06176213547587395, 0.06308150291442871, 0.014940699562430382, 0.013378038071095943, 0.03665710613131523, -0.020182035863399506, 0.07083629071712494, -0.017370149493217468, -0.007200165186077356, -0.07668454945087433, 0.04065820202231407, -0.06488638371229172, -0.057608284056186676, 0.01294877752661705, 0.05930846929550171, 0.037777386605739594, 0.04256751015782356, -0.09845193475484848, -0.03011629730463028, 0.02287409082055092, 0.01706209033727646, -0.060455188155174255, 0.018418679013848305, 0.02224644273519516, -0.011231246404349804, 0.06176988407969475, -0.028841067105531693, 0.04311477020382881, -0.05270792543888092, -0.02082943730056286, -0.011313003487884998, 0.0507657490670681, 0.06850138306617737, -0.061641186475753784, 0.032281484454870224, 0.05884579196572304, 0.06956253200769424, -0.03652051091194153, -0.04497165605425835, -0.013289567083120346, 0.055660180747509, -0.02314753271639347, 0.03398540988564491, -0.003440400818362832, -0.04950663074851036, 0.06509678810834885, -0.0002213748375652358, -0.042859647423028946, -0.0064262086525559425, -0.13658180832862854, -0.011222788132727146, 0.0596330352127552, 0.0026504946872591972, 0.032504964619874954, -0.08630392700433731, -0.05904810130596161, 0.05433661863207817, 0.010574078187346458, 0.07357826828956604, 0.032208360731601715, -0.023447252810001373, 0.012198986485600471, 0.005305772181600332, -0.03743071109056473, 0.0030189300887286663, 0.06587092578411102, 0.025355085730552673, 0.02187317982316017, -0.0023582056164741516, -0.08628032356500626, -0.0676371157169342, -0.046342313289642334, -0.0020452584140002728, 0.03391468524932861, -0.04338832572102547, -0.023439455777406693, -0.003018266288563609, 0.019503885880112648, -0.044836848974227905, 0.1356617659330368, -0.02019503153860569, -0.01673481985926628, 0.016197070479393005, -0.024310123175382614, 0.060206178575754166, 0.06414764374494553, 0.028775647282600403, 0.06038287654519081, -0.05546344071626663, 0.013976797461509705, -0.03847745805978775, 0.0398394949734211, 0.10950098186731339, 0.04669483006000519, 0.016332486644387245, -0.0020997007377445698, -0.057916972786188126, 0.04865622520446777, -0.031168824061751366, 0.041713740676641464, 0.038862232118844986, -0.01665378175675869, -0.006734550464898348, -0.03087189607322216, -0.06467974931001663, 0.009655080735683441, 0.03830885514616966, -0.06152021139860153, 0.05897505581378937, -0.06978656351566315, 0.048529550433158875, 0.012096632272005081, -0.10841948539018631, 0.06503628939390182, 0.012496699579060078, -0.003870677202939987, -0.03349188342690468, -0.011271962895989418, 0.04358406737446785, 0.004401744343340397, 0.016218064352869987, 0.007409301586449146, -0.059126876294612885, 0.005205011460930109, -0.03098294883966446, -0.015221488662064075, 0.006579825188964605, 0.006590690463781357, 0.031624387949705124, 0.001493068179115653, -0.04834103584289551, -0.0020308701787143946, 0.00023430281726177782, 0.007160630077123642, -0.04036073014140129, 0.048200156539678574, 0.010180915705859661, 0.001472835778258741, -0.016011696308851242, 0.038537923246622086, -0.013165001757442951, 0.0286270659416914, 0.014008157886564732, 0.04348325729370117, 0.017931312322616577, 0.03601054102182388, -0.017315490171313286, -0.021059341728687286, -0.0014403258683159947, -0.03154650330543518, 0.029908180236816406, -0.024790845811367035, -0.02866785228252411, 0.022647684440016747, 0.01652766950428486, 0.011913314461708069, -0.023749390617012978, -0.002782585332170129, -0.06929179280996323, -0.03232447803020477, 0.05301092565059662, 0.0028288045432418585, 0.02184256538748741, -0.009777559898793697, 0.02030915766954422, -0.007184747606515884, 0.03549744933843613, -0.11507432162761688, 0.0108414925634861, 0.035371266305446625, 0.03420104458928108, -0.030047588050365448, -0.008552958257496357, 0.01874893344938755, -0.047452665865421295, -0.004377743694931269, -0.01947943866252899, 0.051216695457696915, 0.03364354744553566, -0.0008064653375186026, -0.026823457330465317, 0.007149324286729097, 0.02466590143740177, 0.01612044870853424, 0.016655365005135536, 0.037143856287002563, -0.030433977022767067, -0.021417666226625443, 0.0020143194124102592, -0.010991569608449936, -0.003712570061907172, -0.0018257028423249722, 0.05881587415933609, 0.013815809972584248, 0.004005900584161282, 0.012327468022704124, -0.028559258207678795, -0.04540177807211876, -0.019428327679634094, -0.034092098474502563, 0.03978189453482628, -0.03121834434568882, -0.03550506755709648, 0.01607569120824337, 0.04956333711743355, -0.00356385949999094, 0.03747967630624771, 0.041866201907396317, -0.004734236281365156, 0.08331503719091415, 0.009610778652131557, 0.025607256218791008, 0.019198989495635033, 0.02264123223721981, 0.030577385798096657, 0.008048168383538723, -0.024129092693328857, -0.03285092115402222, 0.015509729273617268, 0.027160510420799255, 0.05619232356548309, 0.005159853026270866, 0.02426847442984581, -0.009668068028986454, 0.0027380986139178276, 0.014523572288453579, 0.019828524440526962, -0.01741609536111355, -0.043755244463682175, 0.00029457948403432965, 0.03196842595934868, -0.020560983568429947, 0.03515638783574104, 0.038302093744277954, 0.03023730218410492, -0.07280877232551575, 0.05055791884660721, 0.01880478672683239, 0.037373870611190796, -0.014044702053070068, 0.017641855403780937, -0.004687761887907982, 0.039231590926647186, 0.017404180020093918, -0.031376052647829056, 0.020530400797724724, -0.01721540465950966, -0.018201837316155434, -0.004553980194032192, 0.008982790634036064, -0.023768005892634392, 0.02176731452345848, 0.0034966503735631704, -0.033629387617111206, -0.013433828018605709, 0.002659157384186983, 0.026538779959082603, 0.024827687069773674, -0.002727706450968981, -0.0015589800896123052, 0.008454320952296257, 0.017492257058620453, 0.01763366535305977, 0.03623253479599953, -0.00994262844324112, 0.03440761938691139, 0.017431607469916344, 0.019955389201641083, -0.005427826661616564, -0.035716768354177475, 0.0010228600585833192, 0.0005727494135499001, 0.02881930023431778, -0.01292768307030201, -0.02856009267270565, 0.02842191606760025, -0.016034545376896858, 0.009078672155737877, -0.05822049081325531, 0.02888939529657364, -0.011977734044194221, 0.00038879807107150555, 0.019954737275838852, -0.04015924036502838, -0.04029843583703041, -0.040430206805467606, -0.00258953170850873, -0.019363094121217728, 0.01257572416216135, 0.0017467037541791797, -0.008205405436456203, 0.014569714665412903, -0.016233013942837715, -0.018688615411520004, 0.028082678094506264, 0.023243235424160957, 0.0006553682615049183, -0.043713800609111786, -0.03275332599878311, 0.029402416199445724, -0.009546929970383644, -0.025975750759243965, 0.011303050443530083, -0.00830822717398405, 0.024761194363236427, -0.02273503877222538, -0.03374414145946503, 0.002618813654407859, 0.01581057533621788, -0.00558993685990572, 0.010007163509726524, 0.03846368566155434, -0.022270511835813522, -0.031016455963253975, -0.012234505265951157, 0.017801528796553612, 0.004232731647789478, 0.0489497035741806, -0.00433017872273922, -0.028771109879016876, 0.025629226118326187, 0.025144359096884727, 0.013082120567560196, 0.031959131360054016, 0.020691629499197006, 0.019080299884080887, 0.08566730469465256, 0.00849194172769785, 0.013108287006616592, -0.06249210983514786, 0.040601715445518494, 0.0047279056161642075, -0.013001330196857452, 0.046598486602306366, -0.07353852689266205, 0.022066207602620125, 0.013029404915869236, -0.030217764899134636, -0.04672691598534584, 0.04509549215435982, -0.05925384536385536, 0.013028980232775211, 0.002046669367700815, 0.006221287418156862, -0.009036119095981121, 0.03358033299446106, 0.05867578089237213, -0.06356959789991379, 0.014714342541992664, 0.017680328339338303, 0.006339860614389181, 0.0027389933820813894, -0.009459802880883217, 0.03748750686645508, 0.014853526838123798, 0.006541192065924406, 0.029990289360284805, 0.028076572343707085, -0.04394613578915596, 0.012618628330528736, 0.005080237518996, 0.004359204787760973, -0.02736998349428177, -0.005822787061333656, 0.017659196630120277, -0.017920345067977905, 0.012201415374875069, -0.01596308872103691, 0.05425754934549332, -0.030472127720713615, -0.020243100821971893, 0.01920013315975666, 0.023790111765265465, 0.017618073150515556, -0.008492174558341503, 0.012716345489025116, -0.03234805539250374, -0.022596193477511406, -0.004192901775240898, -0.04609522968530655, -0.002364270854741335, 0.008292494341731071, -0.03499850630760193, -0.02290399558842182, 0.0064113447442650795, -0.0029324048664420843, 0.006522798910737038, 0.026936344802379608, -0.001543613150715828, -0.012606753967702389, -0.013596705161035061, 0.0324113629758358, 0.010568439029157162, -0.020430536940693855, 0.005390665959566832, -0.029269544407725334, 0.03891677409410477, 0.017318900674581528, 0.0409918949007988, -0.05263572931289673, -0.0008865240379236639, 0.03265390172600746, -0.00546981580555439, -0.05517083406448364, 0.02155291475355625, 0.0017260625027120113, -0.0062530552968382835, -0.013430620543658733, -0.033741388469934464, -0.020189445465803146, -0.0007885119412094355, -0.03974370285868645, 0.04471604526042938, 0.04560135677456856, -0.05017104372382164, -0.03671787306666374, -0.01204589195549488, 0.04299123212695122, -0.02594621479511261, 0.011308805085718632, -0.011663409881293774, 0.0062850466929376125, 0.023555075749754906, 0.022578010335564613, 0.007217371836304665, 0.023285454139113426, 0.014446740038692951, 0.0212913416326046, -0.04895443096756935, 0.041984934359788895, 0.07175061851739883, -0.010167889297008514, 0.022569632157683372, 0.009989031590521336, -0.019947636872529984, 0.022593814879655838, 0.03780541196465492, 0.0019886919762939215, 0.02094343863427639, 0.00905890204012394, -0.04221896827220917, -0.02072436921298504, -0.0037126101087778807, 0.03604493290185928, 0.10394410043954849, -0.005745833273977041, 0.022822894155979156, -0.017227251082658768, -0.008167805150151253, 0.053758371621370316, 0.022534485906362534, -0.036784373223781586, 0.032013289630413055, 0.07046064734458923, -0.015798863023519516, 0.030185148119926453, 0.046676136553287506, -0.022560086101293564, -0.032746244221925735, -0.039521828293800354, -0.03771747648715973, -0.03209269046783447, 0.011536029167473316, -0.00675271125510335, -0.012065961956977844, 0.017657862976193428, -0.02130298502743244, 0.06232704594731331, 0.017167026177048683, 0.03951144218444824, 0.004569686017930508, 0.016812244430184364, 0.015148146077990532, 0.021620849147439003, -0.0053909351117908955, -0.02914571575820446, -0.03295261785387993, 0.006824120879173279, 0.025179548189044, -0.01264375913888216, -0.024140091612935066, 0.005897462368011475, -0.024745723232626915, 0.03906581923365593, 0.0201251320540905, -0.04083937034010887, -0.006255963817238808, 0.032010581344366074, -0.015557835809886456, 0.01838110201060772, -0.04207649454474449, -0.03386000543832779, -0.042828354984521866, 0.024320924654603004, -0.02439338155090809, -0.03649093210697174, -0.019258396700024605, -0.002135224873200059, 0.022596945986151695, -0.00886323768645525, 0.021273061633110046, -0.015789484605193138, 0.01710955984890461, 0.023629633709788322, -0.00273502548225224, 0.012595356442034245, -0.025056108832359314, -0.03565419092774391, 0.03850742429494858, 0.017245979979634285, 0.006801209878176451, -0.033056896179914474, -0.011441518552601337, 0.006400831509381533, 0.00941609125584364, -0.008953548036515713, 0.021431948989629745, 0.05864796042442322, 0.022488927468657494, -0.020515048876404762, 0.07060911506414413, 0.004803940188139677, -0.033629320561885834, -0.02606525644659996, -0.034071121364831924, 0.032577380537986755, -0.012629274278879166, 0.030722279101610184, 0.017610814422369003, 0.013897130265831947, -0.008032227866351604, -0.0064766062423586845, -0.033048663288354874, -0.027488525956869125, -0.004198935814201832, 0.015203621238470078, 0.0036093024536967278, -0.03064035065472126, 0.018956372514367104, 0.029548851773142815, 0.0017534213839098811, -0.019695861265063286, 0.016200417652726173, -0.019768202677369118, -0.03644510358572006, -0.008065677247941494, -0.028961284086108208, 0.022587426006793976, -0.033145491033792496, 0.02088957652449608, 0.011633379384875298, 0.03333074972033501, -0.005803350824862719, 0.03996376693248749, 0.016517961397767067, 0.010365606285631657, -0.000018866190657718107, -0.031250253319740295, -0.06976184993982315, 0.010529603809118271, -0.01707313023507595, 0.005427480675280094, 0.016617989167571068, -0.04578521102666855, -0.019613200798630714, 0.01911655254662037, -0.009305980987846851, -0.06692319363355637, 0.030572116374969482, 0.06566673517227173, -0.000692216504830867, 0.0019667907617986202, -0.0034118436742573977, -0.02477380633354187, -0.009898764081299305, -0.02860161103308201, 0.03749682754278183, 0.06663885712623596, -0.004093503579497337, -0.031426846981048584, -0.0407949760556221, 0.029662135988473892, -0.018160777166485786, -0.06696107983589172, -0.00998103991150856, 0.03548705577850342, -0.006355396006256342, -0.0537104606628418, 0.01487007737159729, 0.016343599185347557, 0.0008191871456801891, 0.006233422085642815, 0.018912754952907562, -0.008585895411670208, 0.0400424599647522, -0.01034689974039793, -0.04488890618085861, -0.0053480579517781734, -0.005701184738427401, -0.035327453166246414, 0.01910950057208538, 0.019082721322774887, 0.022158056497573853, -0.03559156507253647, -0.03817221149802208, 0.009352713823318481, -0.022457478567957878, 0.01869569718837738, -0.03433674946427345, -0.01771657168865204, -0.010684197768568993, -0.0032156642992049456, -0.04235655441880226, -0.021352913230657578, -0.008526219055056572, 0.028427138924598694, -0.014535469934344292, -0.010469027794897556, -0.006950443144887686, 0.02661670558154583, 0.00350879761390388, 0.02725539356470108, 0.04906325042247772, 0.03283544257283211, -0.02074035070836544, 0.028330158442258835, -0.014697023667395115 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Depth Guided Depth guided models from TencentARC/t2i-adapter-depth-midas-sdxl-1.0 and TencentARC/t2i-adapter-depth-zoe-sdxl-1.0 respectively
[ 0.0402679517865181, -0.020974379032850266, 0.053836870938539505, 0.04658197611570358, 0.08320879936218262, 0.014364957809448242, -0.009768126532435417, -0.0008112204959616065, -0.04099060222506523, -0.05902939662337303, -0.05340495705604553, -0.03539902716875076, 0.027457162737846375, 0.041086595505476, 0.06003601476550102, 0.0021435997914522886, -0.0038709763903170824, -0.0014995983801782131, 0.00889859814196825, 0.010012597776949406, 0.015962418168783188, -0.04922302067279816, 0.056018490344285965, -0.04243491217494011, -0.04645301029086113, -0.032630402594804764, 0.0020615202374756336, -0.0016966114053502679, -0.0035159378312528133, -0.006041606888175011, -0.07289448380470276, 0.048150066286325455, 0.020822841674089432, -0.09601299464702606, -0.04032965749502182, -0.006812795996665955, -0.0961332693696022, 0.002526327967643738, -0.05573631823062897, -0.07285698503255844, -0.057038720697164536, -0.012533428147435188, 0.016800638288259506, 0.0337446890771389, -0.026478776708245277, 0.013185983523726463, -0.12152505666017532, 0.06363411992788315, -0.01536382082849741, 0.06319445371627808, -0.05349668487906456, 0.03399928659200668, 0.06120846047997475, -0.003773402888327837, 0.048712216317653656, 0.04039302468299866, 0.01740793138742447, -0.005334292538464069, 0.05640895292162895, -0.03392425552010536, 0.02618853747844696, -0.027251578867435455, 0.053637538105249405, -0.012350373901426792, 0.004174526780843735, -0.04839169606566429, -0.021319298073649406, -0.03849167749285698, -0.032321929931640625, -0.027516374364495277, 0.016761278733611107, 0.033136408776044846, -0.024875527247786522, -0.017652420327067375, -0.006740067154169083, -0.043164391070604324, -0.07846978306770325, 0.04340515658259392, 0.08760902285575867, -0.016290578991174698, -0.0069112409837543964, 0.00651173759251833, 0.06979263573884964, 0.07324594259262085, -0.014207272790372372, -0.028011998161673546, 0.059492915868759155, -0.03939797356724739, -0.023585600778460503, 0.11915642768144608, -0.010172026231884956, -0.15395940840244293, 0.029963502660393715, -0.006632685661315918, -0.022772498428821564, -0.07186388224363327, -0.0025645692367106676, 0.011109491810202599, 0.10532023012638092, 0.06375356763601303, 0.011732468381524086, -0.005858381278812885, 0.05120999738574028, -0.021253740414977074, -0.04691331461071968, 0.04583119973540306, -0.0026744683273136616, -0.046366382390260696, -0.07801710069179535, 0.015167723409831524, -0.09086111187934875, 0.015987582504749298, 0.06750123202800751, 0.019870029762387276, -0.08823495358228683, 0.028718940913677216, -0.04357977211475372, 0.01664225198328495, 0.017917433753609657, 0.027367666363716125, -0.06522909551858902, 0.11884603649377823, 0.03663158044219017, -0.0042491029016673565, 0.04383815824985504, 0.06901631504297256, 0.04005110636353493, 0.04169091209769249, -0.09543725103139877, -0.00238865427672863, 0.03184954449534416, -0.029767772182822227, 0.06282934546470642, -0.005790520925074816, -0.01359446719288826, -0.10468660295009613, 0.014901120215654373, -0.001926773926243186, 0.07281586527824402, 0.048988889902830124, -0.06270936876535416, -0.008960307575762272, 0.04682597890496254, -0.0009403203148394823, 0.004933612421154976, -0.033563364297151566, -0.04750634357333183, 0.0719933807849884, -0.03156695142388344, 0.03551129624247551, -0.06330884993076324, 0.03191567584872246, -0.09571699798107147, -0.04493570327758789, -0.01924249157309532, 0.03700924664735794, -0.002120699267834425, 0.01213695015758276, -0.029609838500618935, 0.02069041319191456, 0.034443940967321396, 0.006399234291166067, -0.06439083814620972, 0.002954816445708275, 0.03750484809279442, -0.017621221020817757, 0.0017906792927533388, -0.016783390194177628, 0.034204162657260895, -0.08005884289741516, -0.00963263027369976, -0.026463786140084267, 0.0625428631901741, 0.06605692207813263, -0.02711508236825466, -0.022034646943211555, 0.031866975128650665, 0.09891415387392044, -0.005634755827486515, -0.016832387074828148, 0.004910237155854702, 0.01393917202949524, -0.07018402218818665, 0.018633361905813217, 0.003103055991232395, -0.04822884872555733, -0.026652518659830093, -0.006448774598538876, -0.029383666813373566, 0.054603226482868195, -0.10851343721151352, -0.07612946629524231, 0.04795082286000252, 0.020793916657567024, 0.01593351736664772, -0.06742792576551437, -0.022882450371980667, 0.02672748640179634, -0.006824313197284937, 0.027810560539364815, -0.00220135017298162, -0.006723042111843824, 0.00209390209056437, 0.004044842440634966, -0.0502474419772625, 0.08188668638467789, 0.06414447724819183, 0.029683612287044525, 0.02640502341091633, 0.007329434156417847, -0.028924737125635147, -0.07330964505672455, 0.010267652571201324, -0.07250888645648956, 0.04121098667383194, -0.026930278167128563, -0.018494337797164917, 0.007436312269419432, -0.016402365639805794, -0.0331403985619545, 0.09717253595590591, 0.01761145330965519, -0.0010513517772778869, 0.029537931084632874, -0.058363426476716995, 0.034032661467790604, 0.09715237468481064, 0.011259710416197777, 0.07148228585720062, -0.04719758406281471, -0.03651612997055054, -0.03914704546332359, 0.02051663212478161, 0.10162405669689178, 0.07922077924013138, 0.0357498899102211, -0.020864930003881454, -0.05933252349495888, 0.06047603860497475, -0.001735943602398038, -0.0030882081482559443, -0.013486790470778942, -0.016466261819005013, -0.0027750988956540823, -0.008663938380777836, -0.04505610093474388, 0.06030341982841492, 0.010373555123806, -0.033444952219724655, 0.04423246160149574, -0.08092398196458817, 0.05087319016456604, 0.0023117195814847946, -0.06632635742425919, 0.12202557176351547, 0.024694981053471565, 0.026830660179257393, -0.055436596274375916, -0.04574368894100189, 0.04687810316681862, -0.012712604366242886, -0.01952490769326687, 0.006309532560408115, -0.055033475160598755, 0.002736730268225074, -0.0306441318243742, -0.004019150044769049, -0.0215477142482996, -0.012521561235189438, 0.03928366303443909, 0.002271376783028245, 0.008590023033320904, 0.015031126327812672, -0.03317427635192871, 0.0005565912579186261, -0.03329720348119736, 0.06281452625989914, 0.006481838878244162, -0.0006264985422603786, -0.03323424607515335, 0.009972680360078812, -0.0031351426150649786, 0.030280496925115585, 0.02406575344502926, 0.028899308294057846, 0.01809755712747574, 0.04527948424220085, -0.03416631743311882, -0.011264591477811337, -0.01571059226989746, 0.0009883499005809426, 0.006540786940604448, -0.012643557973206043, -0.007069965358823538, 0.011865300126373768, 0.03259757533669472, 0.006291587371379137, -0.0002865802380256355, -0.012182587757706642, -0.022496948018670082, -0.04024098813533783, 0.07931170612573624, 0.01575413905084133, 0.02219267003238201, -0.04235445335507393, 0.00969712994992733, 0.008483527228236198, 0.03941015526652336, -0.10536347329616547, 0.001014186185784638, -0.007191027048975229, 0.034278735518455505, -0.021247301250696182, -0.009845396503806114, 0.03839324787259102, -0.048491984605789185, 0.024850018322467804, -0.027620915323495865, 0.04213952273130417, 0.01574302278459072, 0.03472793474793434, -0.030565841123461723, -0.001988347852602601, 0.0033781053498387337, 0.0009132166742347181, 0.0285632461309433, 0.0355733223259449, -0.06488515436649323, -0.041102226823568344, 0.020892955362796783, -0.009872795082628727, -0.04089462012052536, 0.012701778672635555, 0.013538012281060219, 0.04083820432424545, 0.0005923477583564818, 0.028784988448023796, -0.02762838639318943, -0.07503659278154373, -0.006544278934597969, -0.02997325174510479, 0.02167143113911152, -0.028058089315891266, -0.04534776881337166, -0.0022163609974086285, 0.01765507273375988, 0.04865533486008644, 0.014841439202427864, 0.03023245744407177, -0.010935167782008648, 0.06699186563491821, 0.01720537059009075, -0.02603345736861229, -0.009260335937142372, 0.014919533394277096, 0.03200236335396767, 0.006001926492899656, -0.007492568343877792, -0.023782450705766678, 0.023598579689860344, 0.018341870978474617, 0.03187570720911026, -0.003232200164347887, -0.0046522184275090694, -0.007524162996560335, 0.04959762841463089, 0.008486052043735981, 0.016992716118693352, -0.017755597829818726, -0.0166432186961174, -0.018567848950624466, 0.007409709505736828, -0.026896296069025993, 0.02475186437368393, 0.018369160592556, 0.013706672005355358, -0.05558377131819725, 0.052717868238687515, 0.008384056389331818, 0.03621990978717804, -0.046023186296224594, 0.023252660408616066, -0.0048417989164590836, 0.026635969057679176, -0.01498685497790575, -0.03221212327480316, 0.036037884652614594, 0.012446983717381954, -0.024947475641965866, -0.027909209951758385, 0.017356151714920998, 0.006650482304394245, -0.0042222714982926846, -0.023777224123477936, -0.0035749294329434633, -0.0088471295312047, 0.012131795287132263, 0.04571259766817093, -0.004875520244240761, -0.008338164538145065, 0.04154697433114052, -0.00919438898563385, -0.004299802239984274, 0.013552576303482056, 0.02068491093814373, -0.02654770202934742, 0.017658604308962822, 0.0029122920241206884, 0.018816616386175156, -0.017307789996266365, -0.012565485201776028, 0.0019112337613478303, -0.015081677585840225, 0.027492260560393333, -0.0012937600258737803, -0.03386252745985985, 0.00808480754494667, 0.0032813239376991987, 0.019511811435222626, -0.04805696755647659, 0.01572609134018421, 0.02155051752924919, -0.007207322865724564, -0.003575472394004464, -0.029220184311270714, -0.031786467880010605, -0.04726090282201767, 0.0067818923853337765, -0.015863198786973953, 0.05387195572257042, -0.015728406608104706, -0.0026883226819336414, 0.01215277798473835, -0.01874721422791481, -0.00931673962622881, -0.01503886841237545, 0.02462080866098404, 0.02700860984623432, -0.04295998439192772, -0.021849321201443672, 0.06062646582722664, 0.003639694768935442, -0.010496390983462334, 0.010692900978028774, -0.0224283616989851, 0.032371025532484055, -0.016948116943240166, -0.033832937479019165, 0.015091681852936745, 0.0075193000957369804, 0.0008459299569949508, 0.01070448663085699, 0.027935070917010307, 0.008281624875962734, -0.031684454530477524, -0.002867154311388731, 0.02471296861767769, -0.01655791886150837, 0.05232232064008713, -0.01901709847152233, -0.020019138231873512, -0.010366257280111313, 0.03641822934150696, 0.01589129865169525, 0.050857074558734894, 0.025372914969921112, 0.012024808675050735, 0.027199838310480118, 0.026032522320747375, 0.015539671294391155, -0.035947054624557495, 0.048752959817647934, 0.026184380054473877, 0.01238508801907301, 0.032552752643823624, -0.06442457437515259, -0.008672360330820084, 0.007637724280357361, -0.043047934770584106, -0.0296796765178442, 0.05882113799452782, -0.03928758576512337, 0.02875988930463791, -0.014235563576221466, -0.02073993906378746, 0.014576299116015434, 0.03589436411857605, 0.03908802568912506, -0.04258475452661514, 0.010801858268678188, 0.0015019380953162909, 0.003406449919566512, -0.010664375498890877, 0.0074302456341683865, 0.04698740318417549, 0.01924804225564003, 0.0305682010948658, 0.04448164626955986, 0.031213615089654922, -0.027583710849285126, 0.0213017500936985, 0.02968164160847664, 0.009239211678504944, -0.026075173169374466, 0.0040885768830776215, 0.020549684762954712, -0.0075027295388281345, -0.014980316162109375, 0.010668830946087837, 0.007195284590125084, -0.017040472477674484, -0.001413132413290441, 0.005947454366832972, 0.018443875014781952, 0.021376309916377068, 0.03688114508986473, 0.006126596592366695, -0.017015980556607246, -0.04303143918514252, -0.014153116382658482, -0.05158064141869545, 0.007946428842842579, 0.0066659883596003056, -0.03201491758227348, -0.02667390927672386, -0.010131100192666054, 0.026453834027051926, 0.019786590710282326, 0.03364485874772072, 0.0017311649862676859, 0.005327993538230658, -0.003418132197111845, -0.004111125133931637, -0.01005437970161438, -0.0179881751537323, 0.020267579704523087, 0.01051633432507515, 0.04720691218972206, 0.021909302100539207, 0.058825962245464325, -0.016460996121168137, -0.006399874575436115, 0.028289662674069405, 0.027323616668581963, -0.03574572503566742, 0.03800366073846817, -0.009350012987852097, -0.016225753352046013, -0.05218096449971199, -0.014792274683713913, 0.0014781964709982276, -0.0026934491470456123, -0.04036717489361763, -0.0007497954647988081, 0.05354367569088936, -0.031181808561086655, -0.009458575397729874, 0.006037602666765451, 0.07091670483350754, -0.0017869253642857075, -0.015557467937469482, -0.022665005177259445, 0.022306978702545166, 0.021202217787504196, 0.027781831100583076, -0.005782326217740774, 0.005930596496909857, -0.01705203391611576, 0.027196716517210007, -0.03250132128596306, 0.036429695785045624, 0.06314907222986221, -0.04743046313524246, -0.008088399656116962, 0.001179652870632708, -0.01649516262114048, -0.002643464831635356, 0.04387165233492851, 0.013387649320065975, 0.04144331067800522, -0.001445234753191471, -0.05231519043445587, -0.05887804552912712, -0.024799862876534462, 0.03770345449447632, 0.06271843612194061, 0.002414685906842351, 0.021064288914203644, -0.006722764577716589, 0.025481615215539932, 0.034603312611579895, 0.01746152527630329, -0.0295852143317461, 0.04969548434019089, 0.06535328179597855, 0.003653298132121563, 0.02144433744251728, 0.0349305234849453, -0.025404514744877815, -0.024247128516435623, -0.01819312386214733, -0.03292623534798622, -0.03233250230550766, 0.042544592171907425, -0.011922643519937992, 0.002045404864475131, -0.00030589805101044476, -0.04442799836397171, 0.07055488973855972, 0.033489011228084564, 0.02707819640636444, 0.008600864559412003, 0.03447334095835686, 0.010939530096948147, 0.021098114550113678, -0.014133668504655361, 0.004266624804586172, -0.02076241746544838, 0.031165482476353645, 0.04454094544053078, -0.02852638065814972, 0.004778061527758837, 0.01698574610054493, 0.004193794913589954, 0.021006343886256218, 0.012822405435144901, -0.028412936255335808, -0.00734347477555275, 0.015622096136212349, -0.0072662788443267345, 0.00832771323621273, -0.0042225513607263565, -0.06202978268265724, -0.07518289983272552, 0.005270222667604685, 0.019704656675457954, -0.01915040984749794, -0.006322628352791071, -0.0014647371135652065, -0.006350905634462833, 0.019544878974556923, 0.04811662808060646, 0.004504771903157234, 0.035753365606069565, 0.019101187586784363, 0.005906729493290186, 0.013064618222415447, 0.011058080941438675, -0.00645312387496233, 0.04253007471561432, -0.0077834660187363625, 0.01713516376912594, 0.004031906370073557, 0.018401993438601494, 0.00021266710245981812, -0.021655913442373276, -0.0058507719077169895, 0.018941299989819527, 0.027062932029366493, 0.018423890694975853, 0.005631906911730766, 0.05536188185214996, -0.033880285918712616, -0.019398052245378494, -0.016020363196730614, -0.05709579214453697, 0.038651518523693085, 0.014013920910656452, 0.03236966207623482, 0.039181195199489594, 0.010514713823795319, -0.039610959589481354, -0.020243382081389427, -0.034281373023986816, -0.05208992585539818, -0.022972777485847473, 0.014870109036564827, 0.002197143156081438, 0.00024306740669999272, 0.03385429456830025, 0.007565265987068415, 0.010505365207791328, -0.017575379461050034, -0.005028925836086273, -0.04198523238301277, 0.0020977917592972517, -0.014263665303587914, -0.02577536553144455, 0.027006395161151886, -0.01055459026247263, 0.03234291449189186, 0.01815403252840042, 0.04472450166940689, -0.017757724970579147, -0.0016995674232020974, 0.04083114117383957, -0.0021069718059152365, 0.004573533311486244, -0.02689533494412899, -0.06618724763393402, 0.013136832043528557, -0.02550319768488407, 0.006853471975773573, 0.024954237043857574, -0.028906842693686485, -0.016981806606054306, 0.009452398866415024, -0.030044421553611755, -0.07040160894393921, 0.017146524041891098, 0.06767187267541885, 0.013466953299939632, -0.0017391613218933344, 0.008405261673033237, -0.02637649141252041, -0.019244840368628502, -0.04437168315052986, 0.019573984667658806, 0.06326017528772354, -0.018432097509503365, -0.024693604558706284, -0.017035139724612236, 0.05307941511273384, -0.04955350607633591, -0.0614379458129406, -0.013632348738610744, 0.017095079645514488, 0.005923516117036343, -0.02573026716709137, -0.015606280416250229, -0.02246786281466484, 0.025336097925901413, -0.011849887669086456, 0.023762226104736328, -0.03857209533452988, 0.00615660147741437, -0.0200326107442379, -0.0521756075322628, -0.009233272634446621, -0.015150023624300957, -0.007508829701691866, 0.037116412073373795, 0.011004908010363579, 0.015307767316699028, -0.02254965528845787, -0.030980313196778297, 0.028315329924225807, -0.029933419078588486, -0.00901447981595993, -0.07765871286392212, -0.003338457318022847, -0.004502781666815281, -0.02973507158458233, -0.0725930780172348, -0.0026817331090569496, 0.0015718081267550588, -0.013571400195360184, 0.0017401835648342967, -0.011587260290980339, -0.004259442910552025, 0.005627850070595741, 0.02235301211476326, 0.010343599133193493, 0.024936223402619362, 0.028036287054419518, 0.03251631557941437, 0.049566514790058136, -0.036810923367738724 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
# Efficient Controllable Generation for SDXL with T2I-Adapters T2I-Adapter is an efficient plug-and-play model that provides extra guidance to pre-trained text-to-image models while freezing the original large text-to-image models. T2I-Adapter aligns internal knowledge in T2I models with external control signals. We can train various adapters according to different conditions and achieve rich control and editing effects. As a contemporaneous work, ControlNet has a similar function and is widely used. However, it can be computationally expensive to run. This is because, during each denoising step of the reverse diffusion process, both the ControlNet and UNet need to be run. In addition, ControlNet emphasizes the importance of copying the UNet encoder as a control model, resulting in a larger parameter number. Thus, the generation is bottlenecked by the size of the ControlNet (the larger, the slower the process becomes). T2I-Adapters provide a competitive advantage to ControlNets in this matter. T2I-Adapters are smaller in size, and unlike ControlNets, T2I-Adapters are run just once for the entire course of the denoising process. | Model Type | Model Parameters | Storage (fp16) | | --- | --- | --- | | ControlNet-SDXL | 1251 M | 2.5 GB | | ControlLoRA (with rank 128) | 197.78 M (84.19% reduction) | 396 MB (84.53% reduction) | | T2I-Adapter-SDXL | 79 M (93.69% reduction) | 158 MB (94% reduction) | Over the past few weeks, the Diffusers team and the T2I-Adapter authors have been collaborating to bring the support of T2I-Adapters for Stable Diffusion XL (SDXL) in diffusers. In this blog post, we share our findings from training T2I-Adapters on SDXL from scratch, some appealing results, and, of course, the T2I-Adapter checkpoints on various conditionings (sketch, canny, lineart, depth, and openpose)! Compared to previous versions of T2I-Adapter (SD-1.4/1.5), T2I-Adapter-SDXL still uses the original recipe, driving 2.6B SDXL with a 79M Adapter! T2I-Adapter-SDXL maintains powerful control capabilities while inheriting the high-quality generation of SDXL!
[ -0.01467185653746128, -0.040186166763305664, -0.0040489304810762405, 0.03451010584831238, 0.0636301040649414, -0.04602651298046112, -0.05007645860314369, -0.023261262103915215, 0.009888448752462864, -0.11081986129283905, -0.0297904871404171, -0.007869603112339973, -0.007105445489287376, -0.07152020186185837, 0.00406018178910017, -0.01701964996755123, 0.0007119190413504839, -0.0031541709322482347, -0.009323162958025932, 0.06555260717868805, 0.07579480111598969, -0.008816334418952465, 0.007134296000003815, 0.029497841373085976, -0.013783622533082962, -0.004139674827456474, -0.02423360012471676, -0.0438045896589756, 0.07544805109500885, -0.03504917770624161, -0.04793320968747139, 0.03459843993186951, -0.006481320597231388, -0.057606909424066544, 0.04764294624328613, -0.083223357796669, -0.05692598596215248, -0.011331682093441486, -0.03868141770362854, -0.04832003265619278, -0.08126245439052582, 0.00867818295955658, -0.017265085130929947, 0.018665898591279984, 0.04445277526974678, -0.04117155447602272, -0.10640124976634979, 0.03551698848605156, -0.03689021244645119, 0.05350625142455101, -0.07883083820343018, 0.023152684792876244, 0.026824239641427994, -0.01747192069888115, 0.029534166678786278, 0.01541915349662304, 0.04607943445444107, -0.007346956990659237, 0.07213541865348816, -0.027097485959529877, 0.007922986522316933, 0.00744551420211792, 0.05584216117858887, 0.07439868152141571, 0.028339076787233353, -0.05416715517640114, -0.02082713134586811, 0.01363336481153965, -0.052230484783649445, -0.08421435952186584, 0.005725950468331575, 0.014193209819495678, -0.03236633911728859, 0.027339376509189606, 0.04859272018074989, -0.09743180871009827, -0.026793520897626877, 0.08057752996683121, 0.035366836935281754, -0.015553753823041916, -0.04338502883911133, 0.07917337864637375, 0.054322969168424606, -0.016664592549204826, 0.015733519569039345, -0.06411396712064743, 0.02292511612176895, -0.0654967650771141, -0.020527319982647896, -0.005057898815721273, 0.013611195608973503, -0.042845502495765686, 0.03493409976363182, -0.07096002250909805, -0.036772988736629486, -0.007559013087302446, -0.05183717980980873, 0.020566364750266075, 0.0504581592977047, 0.019342903047800064, 0.028118116781115532, -0.03458327800035477, 0.04010702297091484, -0.14474137127399445, -0.09623792767524719, 0.007095869164913893, -0.061611562967300415, -0.06338948011398315, -0.0464058555662632, 0.028013033792376518, -0.01031340193003416, 0.07452316582202911, -0.03514429181814194, 0.029250049963593483, -0.13537628948688507, 0.007961752824485302, -0.05211606249213219, 0.03525426983833313, -0.004686181899160147, 0.03365055471658707, -0.0767107680439949, 0.04814489185810089, 0.047452833503484726, -0.061586037278175354, -0.1008150652050972, 0.037738874554634094, -0.098441943526268, 0.020937778055667877, -0.03839092329144478, 0.028490612283349037, 0.01922028325498104, 0.0012679279316216707, 0.0473422072827816, -0.047023020684719086, 0.08130433410406113, -0.09594674408435822, 0.012066425755620003, -0.06860992312431335, -0.06516670435667038, 0.011126410216093063, -0.005461208522319794, 0.06498193740844727, 0.017064901068806648, -0.09273326396942139, -0.004344692919403315, 0.01641474850475788, -0.03207980841398239, 0.018287086859345436, -0.017052587121725082, -0.0035491976886987686, -0.07045593857765198, -0.01572764292359352, -0.06811286509037018, -0.050128690898418427, 0.01192441675812006, 0.0442771352827549, -0.021221870556473732, 0.022572416812181473, -0.08426542580127716, 0.03470106050372124, 0.006406097672879696, 0.010415584780275822, -0.020741380751132965, -0.028610501438379288, 0.05952765420079231, -0.05962929502129555, 0.003936520777642727, 0.052537113428115845, 0.01799386367201805, -0.04371216893196106, 0.05150402709841728, -0.034838076680898666, 0.03667425364255905, 0.05535561591386795, 0.028772540390491486, 0.03052418865263462, 0.008453737013041973, 0.07750694453716278, -0.01620292104780674, -0.05036348104476929, -0.04280253127217293, 0.06969879567623138, -0.04658208787441254, 0.014456824399530888, 0.03922451287508011, -0.06126457825303078, 0.09758062660694122, -0.04982953146100044, -0.019753294065594673, -0.05466423183679581, -0.05425849184393883, 0.030145470052957535, 0.05497070401906967, -0.00795346312224865, -0.03538937866687775, -0.0496089830994606, 0.0006023096502758563, 0.07804728299379349, 0.025387652218341827, 0.008296799845993519, 0.04997071996331215, 0.011671206913888454, -0.0013822615146636963, -0.016121670603752136, -0.016938498243689537, -0.0003287656290922314, 0.06364112347364426, -0.016061389818787575, -0.001284237951040268, 0.008863515220582485, -0.009910252876579762, -0.11441189050674438, 0.033681463450193405, -0.01600264199078083, 0.01269786898046732, -0.024193191900849342, -0.0326935239136219, 0.029774265363812447, 0.0473250150680542, -0.043442513793706894, 0.08217336982488632, -0.021625373512506485, -0.053672630339860916, 0.030069036409258842, 0.0017229894874617457, 0.0015231720171868801, 0.04813670367002487, -0.005612445529550314, 0.008019978180527687, -0.08593574166297913, -0.040378689765930176, -0.025100592523813248, 0.02968849614262581, 0.0053456611931324005, 0.03690965846180916, -0.032403018325567245, 0.02052290551364422, -0.021858062595129013, 0.04007068648934364, -0.03899566829204559, 0.00827265065163374, 0.009800000116229057, -0.023533761501312256, 0.02456248737871647, -0.048539306968450546, 0.009405241347849369, 0.03746411204338074, 0.01582062803208828, -0.0060258847661316395, 0.04300565645098686, -0.09619202464818954, 0.04837867245078087, -0.014374853111803532, -0.08158360421657562, 0.03212903439998627, 0.0076418290846049786, 0.03464188426733017, 0.009408197365701199, -0.009251504205167294, 0.07688996940851212, -0.011009532026946545, -0.002921224571764469, -0.06306754052639008, -0.03155277296900749, 0.00680877361446619, -0.019802145659923553, 0.031075280159711838, 0.003347905119881034, -0.02944887802004814, 0.022321103140711784, 0.022826792672276497, 0.015183687210083008, 0.0039006872102618217, 0.011512715369462967, 0.013192473910748959, -0.02139085903763771, 0.05320635065436363, 0.02119571343064308, -0.02512357011437416, -0.03832080215215683, 0.030240418389439583, 0.01792418397963047, 0.03923565521836281, 0.03559920936822891, 0.017097391188144684, 0.04099942371249199, -0.007940296083688736, 0.024392714723944664, -0.02912045083940029, -0.0018545931670814753, 0.004897479899227619, 0.023349223658442497, -0.017229638993740082, 0.006957951933145523, 0.007658745627850294, 0.029750827699899673, -0.0022744678426533937, -0.040364380925893784, 0.012314707040786743, -0.016898449510335922, -0.008845898322761059, 0.02822490781545639, 0.0036950374487787485, 0.01815544255077839, 0.0007053574663586915, 0.01044356357306242, -0.0299021415412426, -0.02042028121650219, -0.06990213692188263, 0.05141114071011543, -0.01421541441231966, -0.014147508889436722, -0.007882364094257355, -0.030404439195990562, 0.047359634190797806, -0.07087891548871994, -0.0018689970020204782, 0.027471771463751793, 0.037460263818502426, 0.04494279995560646, 0.021891500800848007, -0.007961602881550789, 0.0010041887871921062, 0.02314855344593525, 0.02863246574997902, -0.030537648126482964, 0.04473123699426651, -0.012666360475122929, -0.03588331118226051, 0.00517383823171258, 0.04429004341363907, 0.027251457795500755, -0.011036507785320282, 0.011834235861897469, 0.012785917147994041, -0.017961841076612473, -0.02416071854531765, 0.009467375464737415, -0.040183644741773605, -0.057330090552568436, -0.013542662374675274, 0.02685745432972908, -0.04407811909914017, -0.0034181601367890835, -0.0019664892461150885, 0.036711905151605606, 0.03863421082496643, 0.018111122772097588, 0.012789066880941391, 0.020430603995919228, 0.0719694271683693, 0.011610734276473522, -0.004427432548254728, 0.02277239039540291, 0.0420590303838253, 0.005837994161993265, -0.013141936622560024, 0.01869996450841427, 0.013027170673012733, 0.06425339728593826, 0.02733859419822693, 0.04144047573208809, 0.0090388935059309, 0.021666821092367172, 0.04494580999016762, -0.01366210076957941, 0.015019445680081844, -0.05951182171702385, -0.016673242673277855, -0.02256637252867222, -0.0005400195950642228, 0.056382086127996445, 0.005029053892940283, 0.04322770982980728, 0.02339460700750351, -0.0312592014670372, -0.052261680364608765, 0.05148088186979294, -0.005802771542221308, 0.03496275469660759, 0.02747432515025139, -0.010353382676839828, -0.024315906688570976, 0.033144425600767136, -0.0026591175701469183, -0.019123122096061707, 0.015150662511587143, 0.006393074057996273, -0.01679171994328499, -0.0006932520191185176, -0.04162631928920746, 0.04495823755860329, 0.012184002436697483, 0.03161311149597168, 0.031812772154808044, -0.04890693724155426, 0.06404460966587067, -0.02184279076755047, 0.008965021930634975, 0.02506418339908123, -0.015268892049789429, 0.007256461773067713, 0.014505150727927685, -0.019777609035372734, -0.00969692412763834, 0.003992174286395311, 0.024769838899374008, 0.017189880833029747, 0.05742916837334633, -0.03601318597793579, -0.025683920830488205, -0.02665404975414276, -0.03791534900665283, -0.007146359886974096, -0.0738045871257782, 0.011932087130844593, -0.007690692786127329, 0.0015853096265345812, -0.03081614337861538, -0.03395819664001465, 0.023455774411559105, 0.008823136799037457, -0.016391752287745476, 0.05046575888991356, 0.01982814632356167, -0.0026712832041084766, -0.05145779997110367, -0.05977886915206909, -0.040753092616796494, 0.002543980022892356, 0.06600117683410645, -0.017199689522385597, 0.02871592901647091, 0.029833225533366203, -0.028786761686205864, 0.016644466668367386, 0.035246532410383224, -0.02622366137802601, -0.06850562989711761, -0.029515571892261505, 0.03961459919810295, -0.02066629007458687, -0.03757481276988983, -0.008572433143854141, -0.02339748479425907, 0.017951034009456635, -0.005427774041891098, -0.04663979634642601, 0.02419358491897583, 0.005612221080809832, 0.001772131654433906, -0.05898427218198776, 0.007198921404778957, 0.012843423523008823, -0.007957500405609608, -0.011844545602798462, 0.000979420728981495, -0.02649916708469391, 0.03675726801156998, -0.0034364671446383, -0.04409002885222435, -0.026263698935508728, 0.025606457144021988, -0.0128755709156394, 0.018730685114860535, -0.007575638592243195, 0.053727492690086365, 0.0261599812656641, -0.01695331372320652, 0.02289540506899357, -0.024483121931552887, 0.05139575153589249, 0.05458805710077286, 0.013849682174623013, 0.02269216813147068, 0.018526630476117134, 0.027881719172000885, -0.048614658415317535, -0.011678709648549557, 0.0009073999826796353, 0.008833736181259155, 0.0003423410526011139, 0.024247732013463974, 0.021718613803386688, 0.012977885082364082, -0.0006790257175453007, 0.008695971220731735, 0.002413123846054077, -0.03406596556305885, 0.0012305459240451455, 0.04010588303208351, -0.0027335365302860737, 0.033586323261260986, -0.01607431098818779, 0.03702404350042343, 0.008539654314517975, 0.0151096535846591, 0.040119417011737823, -0.0197609830647707, -0.007545395754277706, -0.004975493531674147, -0.00625436007976532, 0.0038255273830145597, -0.020447468385100365, -0.007657631300389767, 0.02881237305700779, -0.04382599890232086, 0.0033548681531101465, -0.009594349190592766, 0.05056757479906082, -0.004207380581647158, -0.054105259478092194, 0.010873324237763882, 0.03734832629561424, 0.0068603442050516605, -0.007531711831688881, -0.001753423479385674, -0.04395715147256851, -0.015581715852022171, 0.006228514015674591, -0.0322045236825943, -0.016435032710433006, -0.01691339537501335, 0.0002323036314919591, -0.006291267462074757, 0.024203559383749962, 0.008680103346705437, 0.034308794885873795, 0.019367022439837456, -0.022601716220378876, -0.00464337645098567, -0.030829668045043945, 0.024339910596609116, -0.021669751033186913, 0.046683263033628464, -0.028221391141414642, -0.007785262539982796, 0.00028605537954717875, -0.008551196195185184, 0.063205286860466, -0.02058286964893341, 0.05008453130722046, -0.014275582507252693, -0.01503704208880663, -0.022676831111311913, 0.03038792498409748, 0.03845800459384918, 0.010998646728694439, -0.0034854039549827576, -0.006832791958004236, -0.025602901354432106, 0.02687818370759487, -0.040250830352306366, 0.06143045052886009, -0.018727367743849754, -0.0594337098300457, 0.0131068741902709, -0.01882358454167843, 0.05306579917669296, -0.009602922014892101, -0.03606726974248886, -0.0010856280568987131, 0.02114281803369522, 0.015081985853612423, 0.030619964003562927, -0.008768852800130844, 0.04121197760105133, -0.018895793706178665, -0.03156398609280586, -0.058335985988378525, 0.06055577099323273, 0.04838763177394867, -0.0071701472625136375, -0.0038575383368879557, 0.010285538621246815, -0.035209834575653076, 0.024056240916252136, 0.047290366142988205, -0.00006633652810705826, -0.010331163182854652, -0.0044477456249296665, -0.01758538745343685, -0.03542711213231087, 0.0013366288039833307, -0.038187891244888306, 0.06330127269029617, -0.0022441833280026913, -0.00382226356305182, 0.029150761663913727, 0.04659583792090416, 0.08259647339582443, -0.00957076158374548, 0.0034392389934509993, 0.03326796740293503, 0.02302997186779976, -0.003402701113373041, -0.00470092473551631, 0.01989831030368805, -0.03361820802092552, -0.031440842896699905, -0.013757719658315182, -0.031247982755303383, -0.037388432770967484, 0.02372969128191471, 0.029988612979650497, 0.004434017930179834, -0.005188676994293928, -0.009990283288061619, 0.09967553615570068, 0.06433622539043427, 0.04873542860150337, 0.018048375844955444, 0.001831168308854103, -0.01955135352909565, -0.009233926422894001, -0.020009612664580345, -0.03214123100042343, -0.027821145951747894, 0.054734013974666595, -0.007900198921561241, -0.0381840281188488, 0.02244909666478634, 0.047410979866981506, 0.003863783786073327, 0.0487484484910965, -0.017563797533512115, -0.003454058663919568, 0.0249068271368742, -0.0019074550364166498, 0.01679549552500248, -0.019611166790127754, 0.005830150097608566, -0.05676228180527687, 0.031565550714731216, 0.0387096144258976, -0.0032070528250187635, -0.032415393739938736, 0.03643428161740303, 0.013982499949634075, -0.026068832725286484, 0.01594754122197628, 0.018720360472798347, -0.03066294454038143, 0.0022341704461723566, 0.05150556564331055, 0.03227849677205086, 0.014724132604897022, 0.023958440870046616, -0.005304972641170025, 0.022618306800723076, 0.02913741208612919, 0.06266433745622635, 0.0066554429940879345, -0.007506099995225668, 0.004904385656118393, 0.02002004161477089, 0.018246278166770935, 0.025643225759267807, 0.03985787183046341, -0.0017188003985211253, 0.033169448375701904, 0.003997626714408398, -0.012705240398645401, -0.054278988391160965, -0.009377755224704742, -0.040394969284534454, 0.029838211834430695, 0.010930323041975498, 0.05427173897624016, 0.03772411495447159, 0.046063877642154694, 0.01257951371371746, -0.014490187168121338, -0.015113363042473793, -0.0005019954405725002, 0.03171444684267044, 0.014487204141914845, 0.004574410151690245, -0.021515175700187683, 0.012340540066361427, -0.04467889294028282, 0.0063761393539607525, 0.005912274122238159, -0.01548775564879179, 0.0006230834987945855, -0.0349828340113163, -0.014505780301988125, -0.02764633484184742, 0.07031939178705215, -0.007546847220510244, 0.0060209836810827255, -0.00407976983115077, 0.046905677765607834, -0.04941939935088158, -0.02716127224266529, -0.016600845381617546, -0.007737885229289532, 0.011948758736252785, -0.011542105115950108, -0.042714089155197144, 0.019388314336538315, 0.038047678768634796, -0.011456900276243687, 0.06544879823923111, 0.000737793103326112, 0.0019999982323497534, -0.010671124793589115, -0.01610475406050682, -0.03649221360683441, 0.016373980790376663, 0.05168330296874046, 0.034596607089042664, 0.006355172488838434, 0.035402812063694, -0.004719365853816271, 0.025404926389455795, -0.06852114945650101, 0.02000904083251953, 0.047051239758729935, -0.004143541678786278, -0.037653714418411255, -0.01636505126953125, -0.01548419427126646, -0.0028312753420323133, -0.017791036516427994, -0.024056965485215187, 0.061699673533439636, 0.015771077945828438, -0.00577967707067728, 0.0325591079890728, 0.023382660001516342, 0.020487822592258453, -0.02526942640542984, 0.023119522258639336, -0.03180672600865364, 0.04703314229846001, 0.006265574134886265, -0.039101678878068924, 0.005440687760710716, 0.009631235152482986, 0.014745421707630157, 0.021762322634458542, -0.04417071118950844, 0.04535360261797905, -0.03134079650044441, 0.0030693497974425554, -0.012571251019835472, 0.011699731461703777, 0.02449798211455345, -0.012450005859136581, 0.031228939071297646, 0.025605743750929832, 0.024240465834736824, -0.010456892661750317, -0.0018791545880958438, 0.008500431664288044, 0.03864331915974617, -0.0019350001821294427, -0.0018481320003047585, -0.0026138322427868843, -0.0053427573293447495, -0.0022926076781004667, 0.007128938101232052, 0.024624845013022423, 0.06912124156951904, 0.00764191010966897, -0.011235026642680168, -0.03136970102787018 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Canny Guided Model from TencentARC/t2i-adapter-canny-sdxl-1.0
[ 0.03240424767136574, -0.017646346241235733, 0.05190512537956238, 0.057270925492048264, 0.06393669545650482, -0.027497349306941032, -0.05459543690085411, -0.005575364455580711, -0.010949645191431046, -0.0736139640212059, -0.031004026532173157, -0.03129417821764946, 0.03484127297997475, 0.05964295566082001, 0.012954841367900372, 0.0568222738802433, 0.01888458803296089, -0.004315249156206846, -0.003826635889708996, 0.018916364759206772, 0.06829793751239777, -0.05012024566531181, 0.06990817189216614, -0.03199655935168266, -0.011852811090648174, -0.0002914719807449728, 0.016764149069786072, 0.03967871889472008, -0.011613849550485611, -0.020987533032894135, -0.02382972091436386, 0.0613897368311882, 0.00863919872790575, -0.09295757859945297, 0.0321650356054306, 0.014305341988801956, -0.11865834891796112, -0.002265878254547715, -0.04764637351036072, -0.09199260920286179, -0.02541210502386093, 0.011742288246750832, 0.003210110357031226, 0.07347466796636581, 0.013537398539483547, -0.01148198451846838, -0.12052667140960693, 0.05189410597085953, -0.04859063774347305, 0.021184969693422318, -0.010577261447906494, 0.06787419319152832, 0.04912344738841057, -0.03305172920227051, 0.07576430588960648, -0.006508862599730492, 0.019490094855427742, 0.0029850066639482975, 0.025486096739768982, -0.0400342233479023, 0.03764031082391739, -0.01719955913722515, -0.03787457197904587, 0.014336070977151394, -0.022682487964630127, -0.03477531298995018, 0.03630960360169411, 0.020497150719165802, -0.03543701767921448, -0.06668365746736526, 0.027841126546263695, -0.01431828923523426, -0.03368302434682846, -0.018308576196432114, 0.0016974007012322545, -0.07387983798980713, -0.07330189645290375, 0.09902296960353851, 0.06522611528635025, 0.046655863523483276, -0.06123380362987518, 0.0069625647738575935, 0.09028524160385132, 0.05171641334891319, 0.009722894988954067, -0.038449715822935104, -0.010348745621740818, -0.015747394412755966, -0.027882473543286324, 0.08612118661403656, 0.006402808241546154, -0.1282864511013031, 0.030470959842205048, 0.008358164690434933, -0.06635872274637222, -0.05270953103899956, 0.02337903529405594, -0.03559690713882446, 0.1299663931131363, 0.03877481818199158, -0.0028657454531639814, -0.008619998581707478, 0.0866033211350441, -0.04693799093365669, -0.0728093609213829, 0.04441540315747261, -0.009779990650713444, -0.027225246652960777, -0.05206695944070816, 0.04920174553990364, -0.05960133299231529, 0.03339851275086403, 0.0537259504199028, 0.012679788284003735, -0.08892215043306351, 0.02878054976463318, 0.0015119976596906781, 0.015018141828477383, 0.02020612731575966, 0.0016060728812590241, -0.06115705519914627, 0.12770819664001465, 0.015798842534422874, -0.021353717893362045, 0.049190327525138855, 0.017802352085709572, 0.014565804973244667, 0.03840932622551918, -0.07633669674396515, 0.009968779981136322, 0.010948839597404003, 0.0031746276654303074, 0.036057762801647186, -0.020176032558083534, 0.025282924994826317, -0.0999656692147255, -0.01043006032705307, -0.008889555931091309, 0.0352853387594223, 0.021788109093904495, -0.026324419304728508, 0.05519389361143112, 0.05009501054883003, 0.03319712355732918, 0.04693523794412613, 0.020048554986715317, -0.024416539818048477, 0.053643856197595596, -0.05048457160592079, 0.008057737722992897, -0.053595688194036484, -0.001860986347310245, -0.07709837704896927, 0.006840377114713192, -0.0341741219162941, 0.010723371990025043, 0.003544967155903578, 0.008621841669082642, -0.08668559044599533, -0.002536686370149255, 0.007182263769209385, 0.02863381989300251, -0.069718137383461, -0.04599691182374954, 0.06347370147705078, -0.016742579638957977, -0.0050954315811395645, 0.00329525931738317, 0.026045432314276695, -0.07447506487369537, 0.01767965592443943, -0.0459553487598896, 0.050714146345853806, 0.06725790351629257, -0.039397940039634705, 0.02173776365816593, 0.07440999150276184, 0.03548309579491615, -0.049090977758169174, -0.02828202210366726, -0.009587295353412628, 0.06732738763093948, -0.058553535491228104, 0.007682268973439932, -0.0285851638764143, -0.013433602638542652, 0.05822569504380226, -0.05461374297738075, -0.020057925954461098, 0.01126535888761282, -0.04475525766611099, -0.05634305998682976, 0.06622195243835449, 0.0015571401454508305, 0.03177866339683533, -0.0927932858467102, -0.031165070831775665, 0.04486212506890297, 0.01123531349003315, 0.0655423104763031, 0.055326782166957855, -0.008086186833679676, 0.04482535645365715, 0.010555557906627655, -0.08688518404960632, 0.06518761068582535, 0.08533018082380295, 0.03574499860405922, 0.02083536423742771, 0.037459563463926315, -0.028494376689195633, -0.06717628985643387, 0.02356676571071148, -0.04211292788386345, 0.005951113998889923, -0.06092893332242966, -0.048819687217473984, -0.030106086283922195, -0.012093473225831985, -0.02637532725930214, 0.1356031894683838, -0.016000792384147644, -0.027439981698989868, 0.006545622367411852, -0.025478646159172058, 0.02792670764029026, 0.06675655394792557, 0.0457315556704998, 0.05601497367024422, -0.06114772707223892, 0.0022917804308235645, -0.03560087829828262, 0.02578592114150524, 0.10731379687786102, 0.07852066308259964, 0.04434922710061073, 0.009575908072292805, -0.008730863220989704, 0.03302835673093796, -0.03890861198306084, 0.04302122816443443, -0.015160905197262764, -0.05249939486384392, 0.015145138837397099, -0.019830279052257538, -0.05453344061970711, 0.01892087422311306, 0.007119424175471067, -0.03319821506738663, 0.03599021956324577, -0.06519335508346558, 0.004959331825375557, 0.001371149905025959, -0.12676788866519928, 0.09725823253393173, 0.0329577699303627, 0.006048642564564943, -0.05047236755490303, -0.0372382290661335, 0.052905574440956116, 0.0024092309176921844, -0.012299626134335995, 0.004322077613323927, -0.03900563344359398, -0.005551464390009642, -0.03112460859119892, 0.021354814991354942, -0.0061380802653729916, -0.020412562415003777, 0.03340918570756912, 0.012859535403549671, -0.038012463599443436, 0.01786768063902855, -0.014743021689355373, 0.006892779842019081, -0.06320458650588989, 0.030326124280691147, 0.008181018754839897, -0.016819633543491364, -0.035769086331129074, 0.03944852203130722, -0.0017108903266489506, 0.049227215349674225, 0.0029451316222548485, 0.06000958010554314, 0.030623704195022583, 0.025010166689753532, -0.020602107048034668, -0.04426541179418564, 0.00011885173444170505, -0.05991026386618614, 0.00858019758015871, -0.0047994256019592285, -0.005435761529952288, 0.03029068186879158, 0.020586326718330383, 0.01280283648520708, -0.009705722332000732, -0.01759273372590542, -0.05241721123456955, -0.012523687444627285, 0.05242693051695824, 0.000035460481740301475, 0.028145859017968178, -0.03131185472011566, 0.01631912589073181, -0.028908628970384598, 0.007938445545732975, -0.10926096141338348, 0.01693868264555931, -0.00013604537525679916, 0.0074944449588656425, -0.023353207856416702, -0.007493710611015558, 0.02320081926882267, -0.03246692195534706, 0.013929257169365883, -0.001241518766619265, 0.031231803819537163, 0.028654957190155983, 0.010923034511506557, -0.029443006962537766, 0.02027004212141037, -0.018762242048978806, 0.0009838567348197103, -0.019482119008898735, 0.054412443190813065, -0.05033903941512108, -0.02500135265290737, 0.010887512937188148, 0.005074723158031702, 0.011751919984817505, 0.006431859452277422, 0.02940906211733818, 0.035454388707876205, 0.014652044512331486, -0.005265743471682072, -0.01951703615486622, -0.0827505886554718, -0.023450978100299835, -0.015780655667185783, 0.008570900186896324, -0.029198719188570976, -0.00708685303106904, 0.011050274595618248, 0.0357428677380085, 0.05250878632068634, 0.03252841532230377, 0.02179707959294319, 0.0026228800415992737, 0.09677070379257202, 0.009842464700341225, -0.017722835764288902, 0.009515127167105675, 0.003165512578561902, -0.0019237715750932693, 0.006429166998714209, -0.026235993951559067, -0.036562856286764145, 0.02601635456085205, 0.008754679001867771, 0.02806815132498741, -0.0029150419868528843, 0.03198063001036644, -0.002873326651751995, 0.023974629119038582, 0.03653409332036972, -0.02274317853152752, -0.027919918298721313, -0.04279208555817604, 0.004074770957231522, 0.04927205666899681, -0.021713947877287865, 0.032703809440135956, 0.02881537936627865, 0.01783009059727192, -0.05053824931383133, 0.03499908000230789, -0.0062741548754274845, 0.030745476484298706, -0.029718607664108276, 0.023830924183130264, -0.005035764072090387, 0.054746728390455246, -0.005018198862671852, -0.010921576991677284, 0.0011284543434157968, -0.0020411061123013496, 0.003897859249264002, 0.0015660678036510944, 0.003405987052246928, 0.00745205394923687, 0.0048971474170684814, -0.003560832468792796, -0.0022631341125816107, 0.008868359960615635, 0.011818154715001583, 0.03236481174826622, -0.012059302069246769, 0.006717455107718706, 0.012139621190726757, -0.012520378455519676, 0.006414424162358046, -0.013214844278991222, 0.030491095036268234, -0.01529421005398035, 0.029100840911269188, 0.025487326085567474, 0.009113184176385403, 0.00794906634837389, -0.013491380959749222, -0.004118708427995443, -0.001494268188253045, 0.03751266375184059, -0.023930441588163376, -0.04913165047764778, 0.023117875680327415, 0.00019098969642072916, 0.002740930998697877, -0.039994318038225174, 0.014487199485301971, -0.015638697892427444, 0.00014718176680617034, 0.011158080771565437, -0.016543515026569366, -0.03340565785765648, -0.0239214226603508, 0.007852833718061447, -0.03777023032307625, 0.011157386936247349, -0.001207164372317493, -0.005709672346711159, 0.018018482252955437, 0.00909901037812233, -0.01295195147395134, -0.003973227459937334, 0.00694230105727911, 0.0006826984463259578, -0.050798263400793076, -0.04526200890541077, 0.06733912229537964, -0.004075086209923029, -0.016634294763207436, 0.0007521516527049243, -0.007980335503816605, 0.05644790828227997, 0.019059928134083748, -0.0770261138677597, 0.0062718018889427185, -0.010968312621116638, -0.010643207468092442, -0.0031249092426151037, 0.04204242303967476, -0.019206436350941658, -0.019719064235687256, -0.0073127225041389465, 0.026372460648417473, 0.0013556876219809055, 0.014585799537599087, -0.03918973729014397, -0.0030122846364974976, 0.021301554515957832, 0.03249555826187134, 0.022325273603200912, 0.046503156423568726, 0.011762784793972969, 0.02686929516494274, 0.06812907010316849, 0.020323297008872032, 0.00937695149332285, -0.046840496361255646, 0.03799762576818466, 0.02544369548559189, -0.004223351366817951, 0.0590156652033329, -0.07145365327596664, -0.03055371530354023, -0.007569590583443642, -0.04260767996311188, -0.05864730477333069, 0.05524776130914688, -0.014907144010066986, 0.0015977106522768736, -0.033015549182891846, 0.01361023634672165, -0.013560106977820396, 0.03760382533073425, 0.04166704788804054, -0.022968899458646774, 0.005657073576003313, 0.004200514405965805, 0.015541085042059422, 0.0016148757422342896, -0.006541979964822531, 0.037475891411304474, 0.026876285672187805, 0.004473600070923567, 0.028840718790888786, 0.038691550493240356, -0.008522645570337772, 0.012415491044521332, -0.007068882696330547, 0.04039580747485161, -0.038429372012615204, -0.010910073295235634, 0.013479379937052727, 0.0012967238435521722, -0.019542383030056953, 0.0016679781256243587, 0.021004533395171165, -0.021896183490753174, -0.018743351101875305, -0.013324646279215813, 0.008524935692548752, 0.02590985968708992, 0.03561766445636749, -0.03186069801449776, -0.023654701188206673, -0.03249096870422363, -0.026001809164881706, -0.04520006477832794, 0.01862977258861065, 0.025206854566931725, -0.03615947812795639, -0.031379904597997665, 0.011214668862521648, 0.013604613952338696, -0.01515800692141056, 0.03763510286808014, -0.009914279915392399, 0.022380514070391655, -0.008759458549320698, -0.010440261103212833, 0.01774192973971367, 0.0017179101705551147, 0.0026864362880587578, 0.0017512800404801965, 0.05101267993450165, 0.02121257595717907, 0.044547732919454575, -0.04056191444396973, -0.005568888504058123, 0.007517855614423752, 0.031585633754730225, -0.0699848085641861, 0.04481612518429756, -0.00217712065204978, -0.03123178705573082, -0.023359358310699463, -0.03191429004073143, 0.010745063424110413, -0.033167026937007904, -0.031484074890613556, 0.005108540412038565, 0.03288397938013077, -0.020648326724767685, -0.004272674210369587, -0.010849340818822384, 0.04921066388487816, -0.02318493090569973, -0.007507406175136566, -0.027744192630052567, 0.011264118365943432, 0.009571393951773643, 0.045070912688970566, -0.0053647891618311405, 0.03233170509338379, -0.024150922894477844, -0.0019574593752622604, -0.060010623186826706, 0.05446183308959007, 0.012807763181626797, -0.042390838265419006, 0.006448759231716394, -0.0250948928296566, -0.04891367629170418, 0.010521986521780491, 0.054795004427433014, 0.024513157084584236, 0.020833365619182587, -0.0062670330516994, -0.036039188504219055, -0.0066148932091891766, -0.004209103062748909, 0.028963953256607056, 0.06326978653669357, -0.01926918514072895, 0.02291666343808174, 0.005682680290192366, 0.01599826104938984, 0.04788053780794144, 0.02563980221748352, -0.03555625304579735, 0.043515466153621674, 0.07161980867385864, -0.006766736041754484, 0.015815552324056625, 0.05836096778512001, -0.018495339900255203, -0.009085807017982006, -0.021043766289949417, -0.0317363515496254, -0.040280986577272415, 0.04856809601187706, -0.002710483269765973, -0.008755842223763466, 0.002016130369156599, -0.0516517236828804, 0.07085681706666946, 0.024460813030600548, 0.04823433235287666, -0.0004495659959502518, -0.016645653173327446, 0.003982898313552141, 0.01018685381859541, -0.014372177422046661, 0.0010470757260918617, -0.03732803463935852, 0.03905952721834183, 0.02480693720281124, -0.047384899109601974, -0.012914933264255524, 0.019916433840990067, -0.00043900616583414376, 0.03274030610918999, 0.010501296259462833, -0.028413094580173492, 0.009303449653089046, 0.040996283292770386, -0.010245580226182938, -0.004149817395955324, -0.018251491710543633, -0.03897839039564133, -0.044409580528736115, 0.024236174300312996, -0.008636350743472576, -0.0032437036279588938, -0.0030706024263054132, -0.007350764237344265, -0.01350974477827549, 0.03538518771529198, 0.0338766910135746, -0.027126403525471687, 0.025623250752687454, 0.05024408549070358, 0.0024689810816198587, 0.002640900667756796, -0.00012680389045272022, -0.044158272445201874, -0.009958181530237198, -0.01882048323750496, -0.009242319501936436, -0.005097901914268732, 0.024633964523673058, 0.0013120371149852872, -0.005253128241747618, -0.00600010622292757, 0.036598749458789825, 0.058615557849407196, 0.03773096948862076, 0.009719999507069588, 0.023662984371185303, -0.028452027589082718, -0.03406732529401779, -0.02315704897046089, -0.019963951781392097, 0.003613279201090336, -0.01627292111515999, 0.02863214910030365, 0.0006938990554772317, -0.026815403252840042, -0.040949296206235886, -0.004274171311408281, -0.030669162049889565, -0.06006745994091034, 0.007369390223175287, 0.009721496142446995, -0.040985215455293655, -0.007243033964186907, 0.03677433729171753, 0.0002644094347488135, 0.013781833462417126, -0.031710051000118256, 0.005063265562057495, -0.011706962250173092, -0.0172256026417017, -0.03854113072156906, -0.013240528292953968, 0.02342773787677288, -0.00802644994109869, 0.012603018432855606, -0.007024351041764021, 0.044969651848077774, -0.020496021956205368, 0.01315875630825758, 0.011643031612038612, 0.017754172906279564, 0.0008740173070691526, -0.04090644791722298, -0.06395812332630157, 0.0201093889772892, -0.02232125960290432, 0.0017019732622429729, 0.016047172248363495, -0.01695135049521923, -0.027180882170796394, 0.010711782611906528, -0.003500628285109997, -0.05160818248987198, 0.03528415039181709, 0.039488330483436584, 0.012863022275269032, 0.00825529359281063, 0.014496930874884129, -0.038529813289642334, -0.0069250501692295074, -0.02190324477851391, 0.03070400096476078, 0.0665864571928978, 0.037873152643442154, -0.031736135482788086, 0.00559733621776104, 0.04377446696162224, -0.016020968556404114, -0.06647010147571564, 0.010617637075483799, 0.027644535526633263, 0.008323428221046925, -0.03317412734031677, 0.000008868904842529446, -0.010509260930120945, 0.000510792771819979, 0.006893380545079708, 0.019698986783623695, -0.024698607623577118, 0.004067117813974619, 0.0004008391697425395, -0.06434842199087143, 0.0031483795028179884, -0.012834837660193443, -0.02604963630437851, 0.02550618350505829, 0.008631682023406029, 0.011690414510667324, -0.03786518797278404, -0.026777274906635284, 0.02933124452829361, 0.01706959865987301, 0.010199440643191338, -0.02992459200322628, -0.020032837986946106, 0.01162026822566986, -0.007125528529286385, -0.03911217302083969, -0.015610994771122932, 0.03538906201720238, -0.020321734249591827, -0.0012236809125170112, 0.004864509683102369, 0.022323470562696457, 0.030284898355603218, 0.020899180322885513, -0.01058101188391447, 0.023557644337415695, 0.0038526973221451044, 0.00395673094317317, 0.032226450741291046, 0.007806309964507818 ]
Efficient Controllable Generation for SDXL with T2I-Adapters
Adapter
September 8, 2023
t2i-sdxl-adapters
guide, collaboration, diffusers, diffusion
https://huggingface.co/blog/t2i-sdxl-adapters
Sketch Guided Model from TencentARC/t2i-adapter-sketch-sdxl-1.0
[ 0.024783434346318245, -0.028595613315701485, 0.055358242243528366, 0.05909516289830208, 0.08565844595432281, -0.015667054802179337, -0.059862807393074036, -0.018082737922668457, -0.006469132844358683, -0.0860462337732315, -0.02055603638291359, -0.049887143075466156, 0.032337214797735214, 0.03109719417989254, 0.03906061872839928, 0.036541491746902466, 0.003556763054803014, -0.007019700948148966, 0.014614669606089592, 0.02320830337703228, 0.07693216949701309, -0.05097554996609688, 0.04029307886958122, -0.02391744591295719, -0.02438441663980484, -0.042330238968133926, -0.009027425199747086, 0.03607583045959473, 0.02440536953508854, -0.006636426318436861, -0.054802633821964264, 0.04849977791309357, -0.0010651954216882586, -0.10844343155622482, -0.002713356167078018, 0.029904641211032867, -0.10656680166721344, -0.03328715264797211, -0.054054372012615204, -0.08360903710126877, -0.024567412212491035, -0.005172524601221085, 0.04787524789571762, 0.052121344953775406, 0.00951311457902193, -0.022261545062065125, -0.1277586966753006, 0.05002738535404205, -0.019949419423937798, 0.05296612158417702, -0.006355051416903734, 0.058751415461301804, 0.043409839272499084, -0.010933930985629559, 0.006719951052218676, 0.01839582249522209, 0.025493202731013298, 0.0008191230008378625, 0.038856443017721176, -0.01770070008933544, 0.03762178122997284, -0.014606761746108532, 0.02479584887623787, 0.028481289744377136, -0.04171799123287201, -0.0469156876206398, 0.00962674431502819, -0.007847337983548641, -0.03920445591211319, -0.04501375928521156, 0.01833193376660347, -0.011542337015271187, -0.021646982058882713, 0.010969431139528751, 0.007922823540866375, -0.0588715523481369, -0.038361597806215286, 0.10716185718774796, 0.03780476376414299, 0.02699866332113743, -0.015444356016814709, 0.02942596562206745, 0.08999203145503998, 0.03154555708169937, 0.02007276751101017, -0.019286317750811577, 0.022665435448288918, -0.045589860528707504, -0.016861792653799057, 0.06412745267152786, -0.04716027155518532, -0.14418433606624603, 0.033238671720027924, -0.010647832415997982, -0.05104901269078255, -0.05743156000971794, 0.013675144873559475, -0.013470305129885674, 0.10229144990444183, 0.046641722321510315, -0.0060967132449150085, -0.021769626066088676, 0.05969381332397461, -0.018129510805010796, -0.05243635177612305, 0.07891163229942322, 0.04475341737270355, -0.05743798986077309, -0.03758756443858147, 0.034249596297740936, -0.030415061861276627, -0.02010960876941681, 0.057826414704322815, 0.009418428875505924, -0.09093106538057327, 0.039603859186172485, 0.03224174678325653, -0.012343691661953926, -0.0296220351010561, 0.0113262590020895, -0.06623485684394836, 0.08128956705331802, -0.028053799644112587, 0.014301402494311333, 0.03707020357251167, 0.07129541039466858, 0.007824467495083809, 0.02738608792424202, -0.08504586666822433, -0.000008570070349378511, 0.012967533431947231, 0.014683347195386887, 0.06107425317168236, -0.03818342462182045, -0.018878096714615822, -0.11016758531332016, 0.008067685179412365, -0.020781612023711205, 0.06052093952894211, 0.06679080426692963, -0.020726695656776428, 0.0054342676885426044, 0.07448161393404007, 0.007973583415150642, 0.009702946990728378, -0.028860265389084816, -0.044474344700574875, 0.05136343836784363, -0.05266648903489113, 0.021789459511637688, -0.08718129247426987, 0.003668596036732197, -0.08642164617776871, -0.025305215269327164, -0.03767065331339836, 0.03196829929947853, 0.011191005818545818, 0.03580227494239807, -0.09382176399230957, 0.0031741675920784473, -0.012981075793504715, 0.016235869377851486, -0.07213706523180008, -0.01939784176647663, 0.03847618028521538, 0.03866438567638397, -0.014064076356589794, -0.05650211498141289, 0.08115924894809723, -0.07046880573034286, 0.030188484117388725, -0.06559791415929794, 0.03202495723962784, 0.06062877178192139, -0.0021915961988270283, 0.0351821631193161, 0.0611567460000515, 0.040499161928892136, -0.0406486876308918, -0.032597463577985764, 0.01438959315419197, 0.05078035220503807, -0.06308016180992126, 0.046400245279073715, -0.012651327066123486, -0.06946449726819992, 0.014365380629897118, 0.004629241302609444, -0.04981480911374092, -0.004463849123567343, -0.06200786679983139, -0.03741717338562012, 0.030996518209576607, -0.015722090378403664, 0.05276013910770416, -0.08409781754016876, -0.062025036662817, 0.018875544890761375, 0.0017356962198391557, 0.08705928921699524, 0.03497522696852684, -0.014925364404916763, 0.011728433892130852, 0.0449211522936821, 0.001460432424210012, 0.0672653391957283, 0.09429334104061127, 0.024114754050970078, 0.03144797682762146, 0.019299576058983803, -0.011303314939141273, -0.07735967636108398, 0.02443511039018631, -0.037481192499399185, -0.006009034812450409, -0.06661022454500198, -0.0010558812646195292, 0.012896549887955189, -0.0173158161342144, -0.014840368181467056, 0.13422580063343048, -0.010325953364372253, -0.034879446029663086, 0.02312532439827919, -0.03869381919503212, 0.0586569681763649, 0.06835944205522537, 0.009000187739729881, 0.008905948139727116, -0.0565287247300148, -0.017413390800356865, -0.023412469774484634, 0.03926439583301544, 0.10821280628442764, 0.07164646685123444, 0.018407398834824562, 0.02672351896762848, -0.033212289214134216, 0.05253799632191658, -0.051025696098804474, 0.03759501501917839, 0.007211614400148392, -0.02900977060198784, -0.041790671646595, -0.014870519749820232, -0.0539705790579319, -0.027472611516714096, -0.013817844912409782, -0.0034212551545351744, 0.06615368276834488, -0.05053318291902542, -0.0048732515424489975, -0.013047152198851109, -0.0629267618060112, 0.060334715992212296, 0.024915028363466263, 0.013678244315087795, -0.06233124062418938, -0.021714452654123306, 0.05908884480595589, -0.029035700485110283, -0.02750145085155964, -0.020215904340147972, -0.03828226029872894, -0.00766045693308115, -0.03299635276198387, 0.022752806544303894, -0.025752324610948563, 0.0023955614306032658, 0.044851988554000854, 0.017037218436598778, -0.02152102254331112, -0.011066291481256485, -0.013964110054075718, -0.00220101117156446, -0.043177179992198944, 0.04900424927473068, 0.03626343980431557, 0.004477181471884251, -0.003144120331853628, 0.01144416257739067, -0.007336410693824291, 0.04434952512383461, 0.01361098513007164, 0.03145548328757286, 0.03434430807828903, 0.04996449127793312, -0.0036898537073284388, -0.038867268711328506, -0.004417801275849342, -0.029314374551177025, 0.02040911093354225, -0.021910499781370163, -0.0007591450703330338, 0.026347024366259575, 0.024399876594543457, 0.039529141038656235, -0.033666521310806274, -0.006098147947341204, -0.04260769858956337, -0.037491291761398315, 0.05287039652466774, 0.010454630479216576, 0.02080729976296425, -0.03656443953514099, 0.018697461113333702, -0.01288411021232605, 0.014088122174143791, -0.09767067432403564, -0.008257183246314526, 0.02120516449213028, -0.004332617856562138, -0.04637955501675606, 0.00027193824644200504, 0.02623532898724079, -0.041025806218385696, 0.037037841975688934, -0.0022135169710963964, 0.03291594609618187, 0.01108268741518259, 0.03414565697312355, -0.009267570450901985, 0.008233118802309036, 0.02739005722105503, -0.025189053267240524, 0.007070065941661596, 0.054750844836235046, -0.06844234466552734, -0.03928087651729584, -0.005521520506590605, 0.00516134686768055, -0.0015917620621621609, 0.02964365854859352, 0.007349791470915079, 0.01981150358915329, 0.006316502578556538, 0.013410593383014202, -0.002731253392994404, -0.0699101984500885, -0.024556541815400124, -0.022016577422618866, -0.03308289870619774, -0.027905872091650963, -0.03171120211482048, 0.0015012692892923951, 0.03403222933411598, 0.042892370373010635, 0.010051025077700615, 0.01608929969370365, -0.0011214871192350984, 0.09818962961435318, 0.005284472368657589, -0.02045908384025097, 0.00880672037601471, -0.0146291209384799, 0.028855344280600548, 0.013260292820632458, -0.009958508424460888, -0.001851116307079792, 0.0388493649661541, 0.0038736355490982533, 0.03205523639917374, -0.007975930348038673, 0.004264612682163715, 0.00041145452996715903, 0.03560034558176994, 0.01651456393301487, 0.009608601219952106, -0.02835835888981819, -0.045515481382608414, -0.0082487091422081, 0.027160758152604103, -0.055116407573223114, 0.021632079035043716, 0.052954062819480896, 0.020899612456560135, -0.05859622359275818, 0.06046174094080925, 0.001367557211779058, 0.027313943952322006, -0.004877007100731134, 0.019410358741879463, 0.02693411149084568, 0.04846883565187454, 0.003347900463268161, -0.039134543389081955, 0.03789302706718445, 0.008325112983584404, 0.009902974590659142, 0.0043708025477826595, 0.00807184912264347, 0.015004176646471024, -0.003779064631089568, 0.024954890832304955, -0.022387098520994186, -0.006221866235136986, 0.004575351718813181, 0.021917087957262993, 0.022351227700710297, -0.007112403865903616, 0.016723761335015297, -0.009964095428586006, -0.005157890263944864, -0.009101367555558681, 0.012149183079600334, -0.013718219473958015, 0.03231806308031082, 0.03580238297581673, 0.024931445717811584, 0.011659244075417519, -0.03683622181415558, 0.000304587185382843, -0.015087812207639217, 0.03187214955687523, -0.010240538977086544, -0.03809338063001633, 0.02309652790427208, 0.04199742525815964, 0.0028785662725567818, -0.06180363893508911, 0.022970570251345634, 0.016673434525728226, 0.0006296706851571798, -0.004478964488953352, -0.02791040763258934, -0.020100705325603485, -0.025608818978071213, 0.003669544355943799, -0.0324924997985363, -0.0018066205084323883, -0.0037515831645578146, -0.02968498133122921, 0.024811727926135063, 0.005809552036225796, -0.018215110525488853, -0.000013983139069750905, 0.01584150455892086, -0.018504591658711433, -0.052337948232889175, -0.03414929658174515, 0.04083636403083801, 0.0002172126987716183, 0.005615799222141504, 0.02454417757689953, -0.01810089498758316, 0.040511973202228546, 0.01742900349199772, -0.06725942343473434, 0.041313376277685165, 0.00030612346017733216, -0.004811696708202362, 0.006790785118937492, 0.033119168132543564, -0.013351377099752426, -0.0048939078114926815, -0.005794897209852934, 0.014546148478984833, -0.009702715091407299, 0.030072787776589394, -0.018815137445926666, -0.019329937174916267, 0.02877151221036911, 0.045065540820360184, 0.0015532085672020912, 0.05113963037729263, 0.017183814197778702, 0.025106465443968773, 0.04498281702399254, 0.012859123758971691, 0.03418074548244476, -0.044003166258335114, 0.0449552983045578, 0.031864188611507416, -0.015923665836453438, 0.040352802723646164, -0.07988062500953674, -0.0042293258011341095, 0.01250644400715828, -0.06899195909500122, -0.0366939902305603, 0.06828571856021881, -0.014899732545018196, 0.013878894969820976, 0.003535020397976041, 0.00546313775703311, -0.02794826775789261, 0.04118267446756363, 0.0705527514219284, -0.03799023851752281, 0.011291662231087685, 0.0016194587806239724, 0.02664922922849655, -0.00017888705770019442, -0.016076771542429924, 0.030152037739753723, 0.0007982306415215135, 0.011248845607042313, 0.00983634777367115, 0.021784042939543724, -0.0131578603759408, 0.011619585566222668, -0.014937291853129864, 0.014346376061439514, -0.05384686589241028, -0.015558889135718346, 0.02375791408121586, 0.010786926373839378, -0.03339377045631409, -0.0059503791853785515, 0.008797939866781235, -0.03064671903848648, -0.021900376304984093, 0.011968470178544521, 0.00435552978888154, 0.026312395930290222, 0.05639368295669556, -0.02493072673678398, -0.0087890038266778, -0.018000520765781403, -0.025687959045171738, -0.03026619181036949, 0.010627727955579758, 0.02822323888540268, -0.02175871655344963, -0.005382508039474487, -0.029455142095685005, 0.009750116616487503, 0.007450592704117298, 0.01714455522596836, 0.009140655398368835, -0.003698910353705287, -0.006889599375426769, 0.010504504665732384, 0.014593660831451416, 0.015303407795727253, -0.004423647653311491, -0.002519448520615697, 0.046679768711328506, 0.022527271881699562, 0.04983372241258621, -0.011920600198209286, -0.001150918542407453, 0.02232254482805729, 0.02908533811569214, -0.06247887760400772, 0.023318126797676086, -0.011587006971240044, -0.017454594373703003, -0.039106033742427826, -0.03745797649025917, -0.0086916359141469, -0.02518371306359768, -0.012809191830456257, -0.005767379887402058, 0.06692925840616226, -0.02394137904047966, -0.025597767904400826, 0.008693977259099483, 0.05317153409123421, -0.02990184724330902, -0.016158631071448326, -0.022296851500868797, 0.004240354523062706, 0.04800904542207718, 0.021928055211901665, -0.004108973313122988, 0.01396351121366024, -0.021595072001218796, 0.01286145020276308, -0.0483434684574604, 0.03892086446285248, 0.017859017476439476, -0.046166956424713135, 0.020456969738006592, -0.0030425069853663445, -0.024067481979727745, -0.019849561154842377, 0.02666436694562435, 0.014683960936963558, 0.03038085624575615, 0.00035062478855252266, -0.047853656113147736, -0.045374881476163864, -0.02864534594118595, 0.020374272018671036, 0.06762202084064484, -0.03232865035533905, 0.036835744976997375, -0.007801705971360207, 0.0296892412006855, 0.043169621378183365, 0.008615243248641491, -0.023752471432089806, 0.058197684586048126, 0.06619790196418762, 0.0016595643246546388, 0.03887356072664261, 0.052986301481723785, -0.019504748284816742, -0.05215711146593094, -0.010254055261611938, -0.04076429829001427, -0.04791157320141792, 0.04488256201148033, 0.0239925105124712, -0.002367981243878603, -0.007965747267007828, -0.04550788924098015, 0.07875940203666687, 0.03516504168510437, 0.03289720416069031, 0.005208333022892475, -0.005590778775513172, 0.0016474559670314193, -0.02535686455667019, 0.00043476722203195095, 0.0003599138872232288, -0.012764176353812218, 0.04431072250008583, 0.016039088368415833, -0.03704781085252762, -0.014871149323880672, 0.013990717940032482, -0.0016777960117906332, 0.031250935047864914, 0.02451532892882824, -0.03475070372223854, 0.01750960387289524, 0.02788669429719448, -0.036374930292367935, -0.036061182618141174, 0.007766190450638533, -0.028907228261232376, -0.06308542191982269, 0.006983089726418257, -0.003021054435521364, -0.014479019679129124, -0.007972423918545246, -0.01674366183578968, -0.02123851701617241, 0.027443870902061462, 0.05166865512728691, 0.0022595063783228397, 0.019643059000372887, 0.013256190344691277, -0.010415812022984028, 0.015520479530096054, 0.017271526157855988, -0.023593761026859283, 0.03691395744681358, -0.007066338788717985, -0.016026994213461876, 0.0158635713160038, 0.01844022423028946, -0.011422517709434032, -0.01277491357177496, -0.007471457589417696, 0.029552742838859558, 0.05192972719669342, 0.018605461344122887, -0.004071830306202173, 0.048497274518013, -0.04252973943948746, -0.03166569769382477, -0.008503690361976624, -0.025134501978754997, 0.012757828459143639, -0.0016938351327553391, 0.01839769072830677, 0.007058693096041679, 0.006061960011720657, -0.056588221341371536, -0.029215317219495773, -0.01621762476861477, -0.03526180982589722, -0.0022141109220683575, 0.03366775065660477, -0.020057067275047302, -0.00923500582575798, 0.05698917806148529, -0.0460166335105896, 0.04302600398659706, 0.014282243326306343, -0.010177179239690304, 0.009554092772305012, 0.002323274966329336, -0.009742038324475288, -0.024906190112233162, 0.03467361629009247, -0.03192706033587456, 0.036121152341365814, -0.014909142628312111, 0.039100103080272675, -0.005960793700069189, 0.007518178783357143, 0.014969823881983757, -0.02479814551770687, 0.01849653571844101, -0.04742995277047157, -0.05476010590791702, 0.006564707029610872, -0.031266991049051285, 0.01355966180562973, 0.03412311524152756, -0.005419221706688404, -0.017179399728775024, 0.008545870892703533, -0.02258417382836342, -0.06615329533815384, 0.049847863614559174, 0.04396841675043106, -0.006286351475864649, -0.009201521053910255, 0.018699737265706062, -0.03541145846247673, -0.01547272875905037, -0.04388784244656563, 0.0491177961230278, 0.04571913182735443, 0.023254578933119774, -0.051140882074832916, 0.01261421199887991, 0.07299069315195084, -0.004694368224591017, -0.0610806830227375, 0.012964170426130295, 0.0005043784040026367, -0.024851419031620026, -0.07295841723680496, 0.008318750187754631, -0.009827510453760624, 0.0020493785850703716, 0.010975991375744343, -0.0020447915885597467, -0.038296837359666824, 0.014902454800903797, 0.0261947363615036, -0.04351372271776199, 0.020750518888235092, -0.019858021289110184, -0.010931412689387798, 0.017859388142824173, 0.008145825937390327, 0.026436474174261093, -0.04383067786693573, -0.027881423011422157, 0.02532840706408024, -0.006981442216783762, 0.015133914537727833, -0.05104338377714157, -0.009606539271771908, 0.014569899067282677, -0.03316158056259155, -0.03989418223500252, -0.027516650035977364, 0.007850341498851776, 0.015494182705879211, -0.010456535965204239, 0.021025098860263824, 0.02923407591879368, -0.0006542690098285675, -0.019468750804662704, 0.009742542169988155, 0.016095470637083054, -0.003672077087685466, -0.006437323056161404, 0.038727886974811554, -0.002380445832386613 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
Security and privacy Security is always a top concern, all the more when source code is involved. Intellectual property and privacy must be protected at all costs. Whether you run on-premise or in the cloud, SafeCoder is under your complete administrative control. You can apply and monitor your security checks and maintain strong and consistent compliance across your IT platform. SafeCoder doesn't spy on any of your data. Your prompts and suggestions are yours and yours only. SafeCoder doesn't call home and send telemetry data to Hugging Face or anyone else. No one but you needs to know how and when you're using SafeCoder. SafeCoder doesn't even require an Internet connection. You can (and should) run it fully air-gapped. Closed-source services rely on the security of the underlying cloud. Whether this works or not for your compliance posture is your call. For enterprise users, prompts and suggestions are not stored (they are for individual users). However, we regret to point out that GitHub collects "user engagement data" with no possibility to opt-out. AWS does the same by default but lets you opt out.
[ 0.03458201512694359, 0.041492123156785965, 0.06599058210849762, 0.05990627035498619, 0.03343303129076958, 0.011444483883678913, 0.01834842376410961, 0.03170599788427353, -0.053591035306453705, -0.0544406920671463, -0.10504862666130066, 0.019969765096902847, -0.03985633701086044, 0.00633317930623889, -0.032789651304483414, -0.04224761947989464, 0.06984953582286835, 0.06190784275531769, -0.003301580436527729, 0.029678266495466232, -0.009288697503507137, -0.07849206030368805, -0.0888151079416275, -0.05893108993768692, -0.04948674887418747, -0.021204771474003792, -0.017331121489405632, -0.028464827686548233, -0.0843324288725853, 0.03539486974477768, -0.05211174115538597, 0.010712441056966782, -0.0034846768248826265, -0.10340248048305511, 0.047925278544425964, 0.01347807701677084, -0.1066896840929985, 0.0959348976612091, -0.014090735465288162, -0.020648455247282982, -0.04236132651567459, -0.08372148871421814, -0.07226927578449249, 0.010865977965295315, -0.025719108060002327, -0.055375732481479645, -0.16896188259124756, 0.11082762479782104, -0.03203106299042702, 0.00485307676717639, -0.07212121039628983, 0.08579757809638977, -0.001460968516767025, 0.005458760540932417, 0.06089375168085098, 0.010673162527382374, 0.037175845354795456, -0.05616600811481476, -0.022450018674135208, -0.015674736350774765, -0.006267068441957235, -0.06886988878250122, 0.03849169611930847, -0.005010611843317747, 0.08740684390068054, 0.01520198117941618, -0.011816754005849361, -0.03425319120287895, 0.008567511104047298, -0.05132228508591652, -0.0029038707725703716, 0.019247595220804214, -0.036392711102962494, 0.010386739857494831, -0.055258605629205704, -0.051463574171066284, -0.01332408282905817, 0.04863275587558746, 0.033513475209474564, -0.008501527830958366, 0.028186865150928497, 0.04741009324789047, 0.013316648080945015, 0.003497403347864747, 0.0075445701368153095, 0.013906505890190601, -0.024039408192038536, -0.022996505722403526, -0.019884159788489342, -0.0032094705384224653, 0.03090372122824192, -0.08546027541160583, -0.006423410959541798, -0.013465925119817257, -0.04620092734694481, 0.049347102642059326, -0.04517350718379021, -0.008149117231369019, -0.033521104604005814, 0.01395454816520214, -0.09110403805971146, -0.06638552248477936, -0.01859552413225174, -0.11264875531196594, -0.020291058346629143, 0.04445590078830719, -0.007200994994491339, -0.022170208394527435, -0.003085484029725194, 0.016157599166035652, 0.05646774172782898, 0.006553105544298887, 0.017462529242038727, 0.06235114485025406, -0.11787962913513184, 0.05065470561385155, 0.0003766178560908884, -0.07596041262149811, 0.028004251420497894, -0.012728158384561539, 0.03761918470263481, 0.05311528965830803, -0.03836466744542122, 0.006426691077649593, 0.0026862029917538166, 0.045139532536268234, -0.04112042859196663, 0.0007715814281255007, 0.06275036931037903, -0.08116397261619568, 0.01189768873155117, 0.03318525478243828, 0.013194810599088669, -0.036001257598400116, 0.007173237856477499, 0.023458829149603844, -0.05000642314553261, -0.08848201483488083, 0.003256047610193491, -0.015239319764077663, -0.0016483311774209142, 0.0699760839343071, 0.015970658510923386, -0.02644818089902401, -0.018232321366667747, -0.00866559986025095, -0.10196993499994278, 0.08490045368671417, 0.003780899802222848, 0.039637111127376556, 0.01413500215858221, 0.0890212133526802, 0.019657913595438004, -0.0634390190243721, -0.035893481224775314, 0.0006762495031580329, -0.002998415846377611, 0.01627158373594284, 0.04151275008916855, 0.020841151475906372, -0.012319865636527538, 0.0364673025906086, -0.05956188216805458, -0.016404706984758377, 0.02125188149511814, 0.011679183691740036, 0.024233391508460045, -0.04505546763539314, -0.0029265915509313345, 0.031583741307258606, -0.04944474622607231, -0.04449489712715149, 0.08838311582803726, -0.07320205867290497, 0.08091062307357788, 0.054300758987665176, 0.0066248648799955845, 0.03307652473449707, 0.03374534845352173, -0.03288746252655983, -0.0691225603222847, 0.035798199474811554, 0.0014523922000080347, 0.10182454437017441, -0.017139673233032227, -0.029559263959527016, 0.05211465433239937, -0.05749564617872238, -0.03146170824766159, 0.013370580039918423, -0.05112673342227936, 0.013087397441267967, 0.06942742317914963, -0.05310084670782089, -0.006596078630536795, -0.0336027666926384, 0.026808487251400948, 0.10431120544672012, 0.03793219104409218, 0.005066133104264736, 0.01438522431999445, 0.013133596628904343, 0.05235770717263222, -0.03624041751027107, -0.016051366925239563, 0.05744574964046478, 0.03076718933880329, -0.07583100348711014, -0.009952294640243053, 0.04185855761170387, 0.014707488007843494, -0.07229138910770416, 0.01551696378737688, -0.03602344170212746, 0.04825160652399063, 0.0034768066834658384, -0.06681516021490097, -0.022312592715024948, -0.004972688853740692, 0.04272666946053505, 0.14645816385746002, -0.03317401930689812, 0.03152500465512276, 0.02789595164358616, -0.024492783471941948, 0.004616825375705957, 0.02645988017320633, 0.058484550565481186, 0.09366483241319656, -0.027575166895985603, -0.06427449733018875, -0.04760995879769325, -0.00810343399643898, -0.029746154323220253, 0.013019714504480362, 0.018238017335534096, 0.037003908306360245, -0.0383695587515831, 0.010411550290882587, -0.007859938777983189, -0.007349912077188492, -0.039422016590833664, 0.03477587178349495, 0.0235931146889925, -0.017623858526349068, -0.06852167099714279, 0.04305422678589821, -0.04053658992052078, -0.018026059493422508, -0.01969386450946331, -0.0885460376739502, 0.006897598039358854, 0.011880822479724884, 0.019744664430618286, 0.10519623011350632, -0.04906707629561424, 0.014488134533166885, 0.022220348939299583, -0.03728897497057915, 0.02115398831665516, 0.05838165432214737, -0.030139151960611343, -0.01486800517886877, -0.04915007948875427, -0.01343667320907116, -0.028024787083268166, -0.02775052934885025, 0.03449518606066704, -0.012714657932519913, 0.032647062093019485, 0.03232326731085777, -0.01790039986371994, 0.0006225378601811826, -0.004064861685037613, 0.031084712594747543, 0.040800902992486954, 0.021071692928671837, -0.004364004824310541, 0.011790639720857143, 0.01772153191268444, 0.039242055267095566, -0.05344729870557785, 0.002185354009270668, 0.04791771247982979, 0.018022321164608, 0.011863109655678272, 0.006469074171036482, -0.00897927675396204, -0.07451034337282181, 0.018697164952754974, 0.020022355020046234, 0.031868353486061096, -0.02266281098127365, 0.03308987244963646, -0.0585385225713253, 0.002750145271420479, -0.010823645628988743, 0.017101803794503212, -0.060388918966054916, 0.016767770051956177, 0.0026606556493788958, -0.028156941756606102, -0.01279688160866499, -0.06032993644475937, 0.003156291786581278, 0.00014936481602489948, 0.02406315691769123, -0.03382692113518715, -0.10175424814224243, 0.0063792322762310505, -0.020947258919477463, 0.007533142808824778, 0.008839643560349941, 0.0018340370152145624, 0.041819244623184204, -0.015903957188129425, 0.01595277525484562, 0.03783825412392616, 0.00020744555513374507, -0.008814238011837006, 0.027870865538716316, 0.0322260819375515, 0.003124662209302187, 0.0024376579094678164, -0.01227804645895958, 0.0566834956407547, 0.049695324152708054, -0.01178999524563551, -0.0028419571463018656, 0.049083027988672256, -0.016951965168118477, -0.003981027752161026, -0.004795405548065901, -0.038488224148750305, 0.018455976620316505, 0.010136649943888187, -0.02317010797560215, -0.034368135035037994, 0.00759185990318656, -0.04803800955414772, 0.03140551596879959, -0.0016537044430151582, -0.02806222066283226, 0.030677814036607742, 0.00048795199836604297, -0.029869407415390015, 0.016561098396778107, 0.02454911172389984, -0.009138055145740509, 0.012284668162465096, -0.002551003824919462, 0.007714755833148956, 0.05229631066322327, -0.008174188435077667, -0.012625516392290592, -0.015013536438345909, 0.016740890219807625, -0.027030952274799347, -0.018052291125059128, 0.004089925903826952, -0.013284612447023392, 0.05931447446346283, 0.013339676894247532, -0.004893828649073839, -0.029830997809767723, 0.02410600148141384, -0.02030888944864273, 0.022209076210856438, -0.032778549939394, 0.01792086474597454, 0.04694092273712158, -0.03689481317996979, -0.030225049704313278, 0.026917533949017525, 0.0593060739338398, -0.036018140614032745, -0.056444231420755386, 0.014648116193711758, -0.007875101640820503, 0.044387515634298325, 0.013562577776610851, 0.007736067287623882, -0.0011485549621284008, -0.012147612869739532, 0.0008839481743052602, -0.03329120948910713, 0.05994964763522148, 0.03750228509306908, 0.01028547901660204, -0.010736350901424885, 0.02690299227833748, 0.026368921622633934, 0.003942286595702171, -0.0011309352703392506, -0.004263699986040592, 0.02274288609623909, 0.015306670218706131, 0.021547038108110428, 0.010869142599403858, -0.040397755801677704, 0.007847080938518047, -0.0017706783255562186, 0.014220130629837513, -0.013030944392085075, 0.009930352680385113, 0.02342551201581955, -0.023158637806773186, -0.001748819719068706, 0.02062857523560524, -0.05313177779316902, 0.0035259469877928495, -0.008987060748040676, 0.002626903122290969, 0.05330391973257065, -0.014836756512522697, 0.023578861728310585, -0.0002375323383603245, 0.011218186467885971, -0.010817373171448708, -0.022242290899157524, 0.03300284221768379, -0.0417049303650856, 0.010951222851872444, -0.0007780201849527657, 0.025676866993308067, -0.03187413141131401, 0.008062610402703285, -0.0010863408679142594, -0.030303223058581352, -0.007256737910211086, -0.011228840798139572, 0.017835145816206932, 0.0409516878426075, 0.005198781844228506, 0.011583259329199791, -0.0031707698944956064, -0.04328599199652672, -0.038604069501161575, -0.024374639615416527, -0.003324764082208276, 0.00588567228987813, -0.00652284873649478, 0.014312615618109703, 0.016580544412136078, 0.006721808109432459, 0.02609974518418312, -0.009808994829654694, -0.022858986631035805, 0.003949853125959635, 0.036314599215984344, 0.01692836545407772, 0.009007753804326057, 0.019397344440221786, -0.006992830894887447, -0.05340171605348587, -0.009543939493596554, -0.014649143442511559, 0.018926041200757027, 0.025439130142331123, -0.010725559666752815, -0.002983209677040577, -0.005175070837140083, 0.04699691757559776, -0.04970674216747284, 0.01050981692969799, 0.014365117065608501, 0.03080678917467594, 0.03664706274867058, 0.007851163856685162, -0.006326442118734121, -0.030010832473635674, -0.02146092988550663, 0.017539571970701218, 0.010524432174861431, -0.0020852985326200724, 0.002594650723040104, -0.04399273544549942, -0.028707511723041534, 0.0022130936849862337, 0.011596906930208206, 0.04917839542031288, 0.029614927247166634, -0.0014243569457903504, 0.03738135099411011, 0.04297957941889763, 0.01609059050679207, 0.005054972134530544, 0.04263217747211456, 0.02952561154961586, 0.020724035799503326, 0.049506768584251404, 0.001497932244092226, 0.03521198406815529, -0.004800171125680208, 0.09887291491031647, 0.053257398307323456, 0.00808008387684822, 0.009483231231570244, -0.023403186351060867, 0.00928760040551424, -0.006282004527747631, -0.01978466659784317, 0.02249871753156185, -0.02071204036474228, 0.010776074603199959, 0.037750549614429474, -0.0014666146598756313, 0.006930809933692217, 0.02582916058599949, 0.03799206763505936, -0.052969954907894135, 0.007058538496494293, 0.010080261155962944, 0.0041606188751757145, 0.027492407709360123, 0.024388238787651062, 0.03202689066529274, -0.022528385743498802, 0.016582993790507317, 0.012873642146587372, -0.01592831313610077, 0.0039115832187235355, -0.011440266855061054, -0.025279147550463676, -0.05418645590543747, 0.058725640177726746, 0.022353116422891617, 0.007901138626039028, -0.00138138048350811, 0.012340866029262543, 0.010632704943418503, 0.010654078796505928, 0.012010371312499046, -0.028943996876478195, -0.004512769635766745, 0.022424479946494102, 0.01802513562142849, 0.022915543988347054, 0.03789188712835312, 0.044656917452812195, 0.000747798359952867, 0.00013512450095731765, -0.04225220903754234, 0.011166321113705635, -0.048172563314437866, 0.005118891596794128, -0.031098227947950363, 0.004205578472465277, -0.012781141325831413, -0.0402056947350502, -0.021630797535181046, -0.00578604731708765, -0.028734389692544937, 0.047325942665338516, 0.04927881807088852, 0.010138880461454391, 0.017316117882728577, -0.013449409045279026, 0.009938216768205166, 0.013634436763823032, -0.018407732248306274, -0.022054145112633705, 0.03408072143793106, -0.002944023348391056, 0.018282640725374222, -0.006032731384038925, 0.0002455062640365213, -0.060130760073661804, -0.01603822410106659, -0.07188871502876282, -0.005665880162268877, 0.05370931699872017, -0.03817269578576088, 0.010123426094651222, 0.04412271827459335, 0.024587109684944153, 0.02138592302799225, -0.049958765506744385, 0.009536473080515862, 0.036602918058633804, 0.026587044820189476, -0.04721718654036522, -0.025793062523007393, -0.017264345660805702, 0.028108488768339157, 0.06005965545773506, -0.01721280626952648, 0.008340124040842056, 0.012785454280674458, 0.05457468703389168, 0.06306708604097366, -0.024931106716394424, 0.008081738837063313, -0.041803617030382156, 0.01107699703425169, 0.045112837105989456, 0.05103529989719391, 0.019310513511300087, -0.061111077666282654, 0.014634347520768642, 0.010452872142195702, 0.011513237841427326, -0.018955737352371216, -0.0018803823040798306, -0.02894321270287037, -0.015269456431269646, 0.055759213864803314, -0.04523509368300438, 0.04623717442154884, -0.012452074326574802, 0.017982378602027893, 0.03722389414906502, 0.015292545780539513, 0.05172716826200485, 0.04636421054601669, 0.011567146517336369, 0.034538235515356064, 0.022809794172644615, -0.035604070872068405, 0.044859934598207474, 0.02914470247924328, 0.04193577915430069, 0.012476315721869469, 0.013819520361721516, 0.008513986133038998, -0.005132885184139013, -0.031951289623975754, 0.014583236537873745, 0.01909872703254223, -0.053016066551208496, -0.05274375528097153, 0.027195528149604797, -0.010440153069794178, -0.001872860244475305, 0.033497825264930725, 0.03946831822395325, 0.021285250782966614, 0.02112371101975441, -0.02388869971036911, 0.032774657011032104, 0.009622199460864067, -0.027801312506198883, -0.017122607678174973, -0.007386066485196352, -0.010455235838890076, 0.02049083821475506, -0.05501437187194824, -0.06443604826927185, -0.05942445248365402, -0.02248017117381096, -0.011893382295966148, 0.07579564303159714, 0.007279845420271158, -0.015011174604296684, 0.008619202300906181, 0.018298078328371048, -0.02015378698706627, 0.010186492465436459, 0.02951299585402012, 0.022456536069512367, -0.032128505408763885, -0.02693542093038559, -0.01565902680158615, 0.0024710434954613447, -0.03208373486995697, 0.023609863594174385, 0.040998540818691254, -0.02790035493671894, 0.05358298867940903, -0.03844675421714783, 0.02708183228969574, -0.005776785779744387, 0.015613545663654804, 0.020045869052410126, 0.008354444056749344, -0.027393871918320656, 0.023624060675501823, 0.013712712563574314, -0.011148515157401562, 0.014791937544941902, 0.014027371071279049, 0.01502049621194601, 0.0024942478630691767, 0.003981868736445904, 0.06127128377556801, 0.01699313521385193, -0.03131671994924545, 0.016231266781687737, 0.06828141957521439, 0.018532471731305122, 0.04737264662981033, 0.04235612973570824, -0.0014342963695526123, 0.012394278310239315, -0.05002937838435173, 0.0023009662982076406, -0.028302649036049843, 0.0066973199136555195, 0.006336627062410116, -0.005774728488177061, -0.024722138419747353, -0.015616201795637608, -0.0012722726678475738, 0.020466504618525505, -0.011389271356165409, 0.00010883160575758666, 0.030473392456769943, 0.03114851750433445, -0.0223785862326622, 0.024653654545545578, -0.0062040407210588455, 0.006361215841025114, 0.004037889186292887, 0.00892228540033102, -0.006699400022625923, 0.019486356526613235, -0.015379148535430431, -0.004320776555687189, 0.02063167095184326, 0.027394503355026245, -0.04032290354371071, -0.02989167347550392, 0.0024153294507414103, -0.02509317919611931, -0.01868412084877491, 0.007003589533269405, 0.013994062319397926, -0.026775266975164413, 0.01209229789674282, 0.0067393966019153595, 0.04771558567881584, 0.023454954847693443, 0.010992164723575115, 0.010540652088820934, -0.00588787067681551, 0.02927887998521328, -0.0007026568055152893, -0.014850162900984287, -0.02435852400958538, -0.026766272261738777, 0.0067144036293029785, 0.045102525502443314, -0.015417173504829407, -0.007618248462677002, -0.013472862541675568, -0.007581042591482401, -0.0031397331040352583, -0.014444079250097275, -0.025944573804736137, -0.00197148066945374, -0.01576365903019905, -0.00767945870757103, 0.013332672417163849, -0.021969115361571312, -0.01936606504023075, -0.03590339422225952, -0.06030159071087837, 0.012551928870379925, -0.02668762020766735, -0.0323617123067379, 0.039965733885765076, 0.017320802435278893, -0.054440148174762726, 0.044889844954013824, 0.05750460922718048, -0.019462039694190025, -0.034991540014743805, 0.03873937949538231 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
Transparency In line with the Chinchilla Scaling Law, SafeCoder is a compute-optimal model trained on 1 trillion (1,000 billion) code tokens. These tokens are extracted from The Stack, a 2.7 terabyte dataset built from permissively licensed open-source repositories. All efforts are made to honor opt-out requests, and we built a tool that lets repository owners check if their code is part of the dataset. In the spirit of transparency, our research paper discloses the model architecture, the training process, and detailed metrics. Unfortunately, closed-source services stick to vague information, such as "[the model was trained on] billions of lines of code." To the best of our knowledge, no metrics are available.
[ -0.009409627877175808, -0.00325813633389771, 0.023915307596325874, 0.021422097459435463, -0.018083281815052032, 0.020721621811389923, 0.005141394212841988, 0.006143191829323769, -0.06102745980024338, 0.01683569885790348, -0.03425319865345955, 0.059449080377817154, -0.027431383728981018, 0.03159566596150398, -0.05391848459839821, -0.02949518896639347, 0.03754304349422455, -0.016971105709671974, 0.024916209280490875, 0.02231595478951931, -0.07479719817638397, -0.04889822006225586, -0.053815774619579315, -0.12429728358983994, -0.06266271322965622, 0.017729829996824265, 0.04389205574989319, -0.022841008380055428, -0.038084931671619415, 0.05101047828793526, -0.036210641264915466, 0.05301187187433243, -0.04617410525679588, -0.12512996792793274, -0.010655594989657402, 0.013688195496797562, -0.09847840666770935, 0.028973229229450226, 0.023104680702090263, -0.038907986134290695, 0.003038319991901517, -0.03341799974441528, -0.06973419338464737, 0.05116550624370575, -0.026502203196287155, 0.023928599432110786, -0.0715470016002655, 0.06679090857505798, -0.03176785632967949, -0.018561406061053276, -0.039559006690979004, 0.004184529650956392, -0.04428985342383385, 0.027843544259667397, -0.0144934868440032, -0.015288637019693851, 0.007737092208117247, -0.05806572735309601, -0.07185263931751251, -0.004663617815822363, 0.02447141706943512, -0.026263458654284477, 0.07657662034034729, -0.05451108515262604, 0.0909636840224266, -0.009224596433341503, -0.001156380632892251, -0.009139667265117168, 0.03464984893798828, -0.08902669697999954, 0.04685426130890846, 0.052874017506837845, -0.029278971254825592, -0.017679329961538315, -0.059234123677015305, -0.036358047276735306, -0.014705576933920383, 0.06378240883350372, 0.04706263914704323, -0.006770706735551357, -0.010163838043808937, 0.11142830550670624, 0.013115902431309223, -0.02205251343548298, 0.04173017293214798, 0.004910330753773451, -0.0003524749190546572, -0.08188657462596893, -0.025791386142373085, -0.005677669774740934, 0.009475591592490673, -0.07786135375499725, -0.025033624842762947, 0.028485415503382683, -0.03340738266706467, -0.0238521508872509, -0.00966811552643776, 0.042826518416404724, 0.002549088094383478, -0.020627539604902267, -0.059747204184532166, -0.04745810851454735, -0.025008318945765495, -0.08444888889789581, -0.06665504723787308, 0.04679195210337639, -0.0007636694936081767, -0.0671996995806694, -0.0398438423871994, -0.005514232907444239, 0.03533557429909706, -0.001924761920236051, -0.06410020589828491, 0.0717141330242157, -0.09243566542863846, 0.0650356262922287, -0.023154648020863533, -0.05406669154763222, 0.06697054952383041, 0.01167200319468975, 0.003456162055954337, 0.07549053430557251, -0.006916404701769352, -0.018666373565793037, -0.028370102867484093, 0.022477222606539726, -0.02541637048125267, 0.019746065139770508, -0.049852292984724045, -0.009143873117864132, -0.006000834051519632, 0.05989140272140503, -0.01229889690876007, 0.007478029001504183, 0.025378014892339706, -0.011283361352980137, -0.02565019577741623, -0.022889820858836174, -0.003853517584502697, 0.010098169557750225, -0.05400789529085159, 0.06163041293621063, 0.033212218433618546, -0.043507978320121765, 0.09960050135850906, -0.025429729372262955, -0.047080498188734055, 0.071712926030159, 0.0481409914791584, 0.04420102760195732, -0.04214882105588913, 0.09721968322992325, 0.02037443406879902, -0.057618673890829086, 0.03918377682566643, 0.004255913197994232, 0.019552957266569138, -0.001428012503311038, -0.07859588414430618, 0.06948692351579666, -0.03375084325671196, -0.034910667687654495, -0.0597461499273777, -0.031621888279914856, -0.006748445797711611, -0.015508456155657768, -0.012803063727915287, -0.012908197939395905, -0.0681849867105484, 0.055372484028339386, -0.08465808629989624, -0.045461203902959824, 0.06598479300737381, -0.018390478566288948, 0.03760538995265961, -0.0047157276421785355, 0.03396889567375183, -0.00469569768756628, 0.030833778902888298, 0.001406476367264986, -0.08937164396047592, -0.01916295662522316, 0.009889268316328526, 0.09589925408363342, 0.002098669996485114, -0.08379262685775757, 0.04943730682134628, -0.059462618082761765, -0.05469094216823578, 0.06447473168373108, -0.046394579112529755, 0.04583287239074707, 0.07898610085248947, -0.05270254984498024, 0.026135144755244255, -0.04755301773548126, 0.01842481456696987, 0.06623828411102295, 0.06255283951759338, 0.0002415775234112516, 0.03585053235292435, 0.023342682048678398, 0.02870064228773117, -0.08581438660621643, -0.039474550634622574, 0.020945318043231964, 0.0013776543783023953, -0.026904158294200897, 0.017018631100654602, -0.01643649861216545, 0.02190144546329975, -0.03948094695806503, -0.03401773050427437, -0.028937585651874542, 0.011473588645458221, 0.05588601529598236, -0.025376882404088974, 0.0017119088442996144, 0.03358079493045807, -0.017402831465005875, 0.17648756504058838, -0.05549578741192818, -0.024949736893177032, -0.019374385476112366, -0.03685246407985687, 0.01068100705742836, 0.07223466038703918, 0.01664314791560173, 0.09702136367559433, -0.05369912460446358, -0.07104644924402237, -0.07696337252855301, -0.06679993122816086, -0.040330592542886734, 0.028881268575787544, -0.022246122360229492, -0.00902426429092884, 0.00802851002663374, 0.08137942105531693, -0.015781937167048454, -0.012082275934517384, -0.02652600035071373, 0.03843562304973602, -0.007772284094244242, 0.03342327103018761, -0.03729337453842163, 0.05883138254284859, -0.006391548551619053, -0.008740386925637722, 0.018415184691548347, -0.03378323093056679, 0.01665535569190979, 0.009452369064092636, -0.003233889816328883, 0.047397684305906296, -0.01588270254433155, -0.0134469298645854, -0.033259373158216476, -0.015356194227933884, 0.02000165916979313, 0.04486735910177231, 0.008085557259619236, -0.034212786704301834, -0.04750417545437813, 0.012895639054477215, -0.0166190005838871, -0.05340588092803955, 0.02790643833577633, 0.03226754069328308, -0.020617755129933357, 0.021999457851052284, -0.004276709631085396, 0.0013151302700862288, 0.008236042223870754, 0.01331199612468481, 0.020134441554546356, -0.017761114984750748, -0.019283611327409744, -0.009455924853682518, 0.001960169291123748, 0.03245381638407707, -0.04466838389635086, 0.02323683723807335, 0.032579969614744186, 0.03599633276462555, 0.026029732078313828, 0.01573975384235382, -0.007912034168839455, -0.015279477462172508, 0.04399319365620613, 0.016859931871294975, 0.035214219242334366, 0.025480635464191437, -0.004630120005458593, -0.03599197044968605, -0.021096903830766678, -0.05013164505362511, 0.018921909853816032, -0.002675007563084364, -0.005644054152071476, -0.008515017107129097, -0.010206780396401882, 0.00716687086969614, -0.050940971821546555, 0.016335859894752502, 0.02529946155846119, 0.01515849120914936, 0.01230804156512022, -0.07888209074735641, 0.03587744012475014, -0.01727925054728985, -0.013299929909408092, 0.00120706541929394, 0.0015072704991325736, 0.03804778680205345, 0.022523557767271996, 0.012024758383631706, 0.0020772037096321583, 0.034296970814466476, -0.009115551598370075, 0.03811168670654297, 0.007052663713693619, -0.0030875816009938717, -0.04875889793038368, -0.050625305622816086, 0.00006467106868512928, 0.04117457568645477, 0.012616648338735104, -0.016528906300663948, 0.0022388247307389975, -0.02592816948890686, 0.005963895469903946, 0.006513678468763828, -0.00793487299233675, 0.057773832231760025, -0.01658782735466957, 0.005885197781026363, -0.04874127730727196, -0.040843505412340164, -0.03141358867287636, -0.017159858718514442, 0.0028504054062068462, -0.04342139884829521, 0.035683028399944305, 0.019830478355288506, -0.041346725076436996, -0.036787841469049454, -0.00016366069030482322, -0.0013128446880728006, -0.03313190117478371, 0.02706260420382023, -0.0347982719540596, 0.08142434060573578, 0.004126318730413914, 0.04821430891752243, -0.04227579012513161, 0.0444033145904541, -0.07537786662578583, 0.0035778365563601255, -0.02586500719189644, 0.023083973675966263, 0.0811346024274826, -0.018985500559210777, -0.019030263647437096, -0.02679254300892353, -0.009802383370697498, -0.03259212151169777, 0.029925912618637085, -0.018572641536593437, 0.004580995999276638, 0.019253522157669067, -0.016528649255633354, -0.020408855751156807, 0.008567346259951591, 0.046667344868183136, -0.039477527141571045, -0.06852269917726517, 0.05192020907998085, -0.00886318925768137, 0.07542311400175095, -0.011699170805513859, 0.0026218059938400984, -0.026414740830659866, -0.003692007390782237, 0.021073251962661743, -0.01839582994580269, 0.0461670383810997, 0.05728714540600777, -0.022752398625016212, -0.022120442241430283, 0.01768447645008564, 0.009612136520445347, -0.0039484440349042416, -0.009274778887629509, 0.04148216173052788, 0.019872836768627167, 0.03337832912802696, 0.0009333490743301809, 0.008271566592156887, -0.0586271770298481, 0.002866016933694482, 0.01015335600823164, 0.0060721151530742645, 0.004201630596071482, 0.037998348474502563, 0.018411021679639816, -0.006885681301355362, 0.026308894157409668, 0.04022059589624405, -0.03643006831407547, 0.023896003141999245, -0.002881007269024849, 0.00020544153812807053, 0.022551780566573143, -0.007203808519989252, -0.02732965163886547, 0.01630830578505993, -0.016284344717860222, -0.007235961500555277, -0.039107684046030045, -0.012789040803909302, -0.046616047620773315, 0.029439959675073624, -0.006305561866611242, 0.0017047470901161432, 0.0005143411108292639, 0.018919451162219048, 0.022690895944833755, 0.030644824728369713, -0.03960853070020676, 0.019420552998781204, 0.017971228808164597, 0.04842394217848778, -0.021191144362092018, 0.018722448498010635, -0.03683526813983917, 0.017094096168875694, -0.027186140418052673, 0.0021943943575024605, -0.009350859560072422, -0.0038773685228079557, -0.00579292606562376, -0.04118882119655609, 0.04933948442339897, -0.0005560443387366831, 0.005594272166490555, -0.009335349313914776, -0.034230563789606094, 0.022567681968212128, 0.0321265384554863, 0.0015731343301013112, -0.023777009919285774, 0.04395254701375961, -0.030129114165902138, -0.012077254243195057, -0.019887223839759827, 0.006455961614847183, 0.03306787833571434, 0.014353938400745392, -0.015001114457845688, -0.008974209427833557, 0.001482341205701232, 0.042316727340221405, -0.03962061554193497, 0.032060373574495316, 0.021116621792316437, 0.023732637986540794, 0.02517588995397091, 0.02275829203426838, 0.030871577560901642, -0.03590267151594162, -0.030772922560572624, 0.039549320936203, -0.02712395042181015, 0.024074267596006393, -0.013771675527095795, -0.06217768415808678, -0.007694766856729984, -0.024751385673880577, 0.022508181631565094, 0.03444376960396767, 0.06226501986384392, 0.029611246660351753, 0.07030636817216873, 0.04167693853378296, 0.012723497115075588, -0.04041844606399536, 0.018272047862410545, -0.02982410602271557, 0.01615823805332184, 0.03173531964421272, 0.02328384481370449, 0.04854337498545647, 0.007725616451352835, 0.08217622339725494, 0.05515633895993233, -0.029111098498106003, 0.01762336492538452, 0.009682508185505867, -0.0019227484008297324, -0.017760569229722023, -0.01559385098516941, -0.033099912106990814, -0.0230486448854208, -0.025557437911629677, 0.04586894437670708, 0.00695476308465004, -0.04145640879869461, 0.009735986590385437, 0.03662686049938202, -0.014988265000283718, 0.03746075555682182, 0.00632448447868228, 0.023721005767583847, 0.00876824650913477, -0.014245946891605854, 0.039681799709796906, 0.012976077385246754, 0.019393760710954666, 0.0038268875796347857, -0.055287301540374756, -0.00983019545674324, 0.016617843881249428, -0.04733125865459442, -0.019910065457224846, 0.026736918836832047, 0.0005721173365600407, -0.022284220904111862, -0.006077891681343317, 0.026362858712673187, -0.009440887719392776, -0.015412184409797192, 0.027437517419457436, -0.05836057290434837, -0.001533234491944313, 0.005454850383102894, 0.00025809710496105254, -0.008637804538011551, 0.01404475886374712, 0.00773934181779623, 0.0002676948788575828, 0.019710060209035873, 0.016908802092075348, -0.02080778405070305, -0.009902642108500004, 0.01588699035346508, -0.024349085986614227, -0.0037263811100274324, -0.02700185962021351, -0.00786575023084879, -0.008404750376939774, -0.008762759156525135, -0.0489327609539032, 0.023422302678227425, 0.01671934686601162, 0.027250586077570915, 0.0034595164470374584, -0.017466392368078232, 0.03501899912953377, 0.020508529618382454, 0.013639505952596664, 0.020136121660470963, 0.042804475873708725, 0.051127489656209946, 0.020805424079298973, 0.01614421233534813, 0.002475905232131481, -0.036261752247810364, -0.0027154197450727224, -0.03646549582481384, 0.02928079292178154, 0.06785287708044052, -0.02690763585269451, 0.012361937202513218, 0.03394126519560814, -0.000037493682611966506, 0.05223318189382553, -0.04627075418829918, 0.025841662660241127, 0.0043474240228533745, -0.004291643854230642, -0.03334204852581024, -0.04943963885307312, -0.030024442821741104, 0.031839519739151, 0.07845396548509598, -0.000707219704054296, 0.031197000294923782, 0.005548164714127779, 0.02113632671535015, 0.08807109296321869, 0.003096854779869318, 0.04031822457909584, -0.022945299744606018, 0.012539194896817207, 0.045695602893829346, -0.01768372766673565, 0.036951471120119095, -0.01525964681059122, -0.027008283883333206, -0.002367987297475338, 0.01649393141269684, -0.019682295620441437, 0.008432270959019661, 0.005224192049354315, -0.03481743857264519, 0.08094888925552368, -0.031118119135499, 0.04048086330294609, -0.00462281983345747, -0.006566834636032581, 0.007681693881750107, 0.046087514609098434, 0.01716369390487671, 0.014732184819877148, 0.04262303560972214, 0.025628957897424698, 0.03029537945985794, -0.03883514180779457, 0.012574933469295502, 0.04146679490804672, 0.0507674477994442, 0.04196283221244812, 0.010203440673649311, 0.02630435861647129, -0.013203771784901619, -0.02708764746785164, 0.0023322035558521748, -0.03008442372083664, -0.0015724627301096916, -0.02907240390777588, -0.017711056396365166, -0.02644079551100731, -0.000654756382573396, -0.005890133790671825, 0.013935922645032406, -0.015717580914497375, -0.03216690942645073, -0.02786647528409958, 0.018528621643781662, 0.007058935239911079, -0.010941681452095509, -0.034618690609931946, -0.040265120565891266, -0.011800234206020832, 0.04432056471705437, -0.037116002291440964, -0.007146693300455809, -0.039784986525774, 0.01655450090765953, 0.027684135362505913, 0.04628106951713562, -0.01928846165537834, 0.01269087940454483, 0.05356525629758835, 0.01609773002564907, -0.004473195876926184, 0.044009979814291, 0.027067920193076134, 0.03871837630867958, -0.014702772721648216, -0.006559028755873442, -0.02419281005859375, -0.032252758741378784, 0.002227927790954709, 0.01124382670968771, 0.015706351026892662, -0.01963128335773945, 0.031021323055028915, -0.013774688355624676, 0.050429295748472214, 0.0032661696895956993, -0.03169912099838257, -0.05668630823493004, -0.01234730426222086, 0.008574208244681358, 0.015890570357441902, 0.017980093136429787, -0.018574289977550507, -0.03741615638136864, 0.07405634969472885, 0.07297450304031372, -0.03065892867743969, 0.030510980635881424, 0.04538477957248688, 0.008927418850362301, -0.032772935926914215, 0.022649595513939857, 0.02240132912993431, 0.00555418012663722, 0.030927449464797974, 0.04518772289156914, 0.027959320694208145, 0.01629798114299774, -0.05178142338991165, 0.033441945910453796, 0.019714612513780594, -0.00874929130077362, -0.004837780259549618, -0.015269779600203037, -0.039298851042985916, 0.03898973762989044, 0.009627816267311573, -0.007599027827382088, 0.01803545281291008, -0.03913533315062523, -0.006935406476259232, 0.03263688459992409, 0.010594507679343224, 0.023326726630330086, -0.013832340948283672, -0.0244203619658947, 0.034071311354637146, 0.011680161580443382, -0.04447750747203827, 0.022848399356007576, 0.001457015983760357, 0.004140540491789579, 0.055736932903528214, 0.0043949829414486885, -0.004355777520686388, 0.027454691007733345, -0.02492806501686573, -0.010115169920027256, -0.0047342777252197266, -0.04602525755763054, 0.040140170603990555, 0.011717446148395538, 0.005490636453032494, 0.039350803941488266, 0.002349886577576399, 0.061257362365722656, 0.0007294114911928773, -0.018912415951490402, 0.014903627336025238, 0.02508934959769249, -0.028224404901266098, -0.03497644513845444, -0.039178457111120224, -0.009956042282283306, -0.023258836939930916, 0.06667611002922058, 0.02346453070640564, 0.0007933285087347031, 0.05566269904375076, 0.013589509762823582, -0.018281342461705208, -0.029681280255317688, 0.002375690033659339, 0.004934104159474373, -0.026169871911406517, -0.02683134377002716, 0.002906995825469494, -0.022359296679496765, 0.03242740035057068, -0.00035753296106122434, -0.03830570727586746, -0.014518811367452145, 0.014152605086565018, 0.014859323389828205, 0.007383026648312807, -0.005582216661423445, -0.04829064756631851, 0.04845992848277092, 0.05868609994649887, -0.023595184087753296, -0.025060633197426796, 0.016761435195803642 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
Customization The StarCoder models have been specifically designed to be customizable, and we have already built different versions: * StarCoderBase: the original model trained on 80+ languages from The Stack. * StarCoder: StarCoderBase further trained on Python. * StarCoder+: StarCoderBase further trained on English web data for coding conversations. We also shared the fine-tuning code on GitHub. Every company has its preferred languages and coding guidelines, i.e., how to write inline documentation or unit tests, or do's and don'ts on security and performance. With SafeCoder, we can help you train models that learn the peculiarities of your software engineering process. Our team will help you prepare high-quality datasets and fine-tune StarCoder on your infrastructure. Your data will never be exposed to anyone. Unfortunately, closed-source services cannot be customized.
[ 0.053356949239969254, 0.031970053911209106, 0.03863993287086487, 0.01185027975589037, 0.03849561884999275, 0.0765235498547554, 0.02966000698506832, 0.059867773205041885, -0.05915146321058273, -0.009047145023941994, -0.1285562962293625, 0.03046979382634163, -0.026458241045475006, 0.00881581474095583, -0.02543703280389309, -0.02226424776017666, 0.028301969170570374, 0.03330884873867035, -0.027205048128962517, 0.010480936616659164, -0.0719180479645729, -0.0418197400867939, -0.00476067466661334, -0.06096140667796135, -0.017814991995692253, 0.02319500409066677, -0.012602481991052628, 0.033550579100847244, -0.0866614282131195, -0.013054647482931614, -0.05884445831179619, 0.029490092769265175, -0.04645290598273277, -0.04314381629228592, -0.0403953492641449, 0.01871032640337944, -0.08585090190172195, 0.08259252458810806, -0.029460497200489044, -0.057940445840358734, -0.017246676608920097, -0.05275961756706238, -0.05266813561320305, 0.04691231995820999, 0.015118583105504513, -0.03802704066038132, -0.19340288639068604, 0.07137764245271683, 0.010018520057201385, -0.03857038542628288, -0.02918350324034691, 0.05874551460146904, 0.013277718797326088, 0.02170586585998535, 0.04367227852344513, -0.01969953440129757, 0.020062530413269997, -0.04230523854494095, -0.016780266538262367, 0.02207282744348049, 0.04200040549039841, -0.044542230665683746, 0.011218000203371048, -0.028040364384651184, 0.10379143804311752, 0.015843193978071213, -0.07255576550960541, -0.030751237645745277, -0.01114985253661871, -0.0431559756398201, -0.01715129427611828, -0.04755740612745285, -0.009598545730113983, -0.02369481883943081, -0.011013228446245193, -0.10034578293561935, -0.06794977188110352, 0.058569300919771194, 0.00047373893903568387, -0.014252685010433197, 0.011550799943506718, 0.025287769734859467, 0.040251098573207855, 0.006098449230194092, -0.04089215025305748, -0.01017756201326847, -0.002085168845951557, -0.026753747835755348, -0.022861836478114128, 0.021738413721323013, -0.02060031332075596, -0.11821455508470535, -0.011961649172008038, 0.023626090958714485, 0.04916561022400856, 0.01343797892332077, 0.022637294605374336, 0.022476594895124435, 0.028380179777741432, -0.0072641228325665, -0.09099999070167542, -0.026380125433206558, -0.007405387237668037, -0.07802672684192657, -0.017315160483121872, 0.029216783121228218, 0.03539085388183594, -0.06457867473363876, -0.013964892365038395, 0.049766428768634796, 0.04936812445521355, -0.038626451045274734, -0.040308889001607895, 0.10007746517658234, -0.12584935128688812, 0.018856443464756012, 0.04045530781149864, -0.06155144423246384, -0.017170947045087814, -0.006571219768375158, -0.0013701767893508077, 0.03378021717071533, -0.047047048807144165, 0.045426540076732635, 0.006568501703441143, 0.07942574471235275, 0.020981350913643837, 0.025105250999331474, 0.004662109538912773, -0.07270736247301102, 0.013060849159955978, 0.016548102721571922, 0.025157645344734192, -0.002791142091155052, 0.032376326620578766, -0.018372073769569397, -0.040763504803180695, -0.02151903137564659, 0.02284732460975647, -0.003129012184217572, -0.05771994963288307, 0.06104646623134613, 0.001404654118232429, 0.020231522619724274, 0.023365987464785576, -0.0036391224712133408, -0.03713740035891533, 0.0792972519993782, 0.011048907414078712, 0.026549585163593292, -0.03593137115240097, 0.03040168620646, -0.008527997881174088, -0.0673326924443245, 0.018900813534855843, 0.04915901646018028, -0.08055466413497925, -0.027419302612543106, -0.011738495901226997, 0.042843930423259735, 0.026326866820454597, -0.008799501694738865, -0.07790016382932663, -0.0091139180585742, 0.012719212099909782, -0.06242525205016136, -0.01770820841193199, 0.025746330618858337, -0.007359813433140516, 0.03233970329165459, -0.014723334461450577, 0.01159302145242691, 0.0817386731505394, 0.014562529511749744, 0.0042929030023515224, 0.003037915797904134, 0.048365600407123566, 0.03426298126578331, -0.015630969777703285, -0.03605243191123009, -0.005487259477376938, 0.024087440222501755, -0.027321822941303253, 0.029015978798270226, -0.023938307538628578, -0.06758450716733932, 0.03966217115521431, -0.07916419953107834, -0.010769265703856945, 0.03534071147441864, -0.1071319505572319, 0.01109289564192295, 0.06659319251775742, -0.010559949092566967, 0.045318685472011566, -0.08939602971076965, -0.0009387767058797181, 0.13197338581085205, 0.02917374111711979, 0.07214724272489548, 0.011826534755527973, -0.005673633422702551, 0.02110528200864792, -0.010541185736656189, 0.000847341027110815, 0.006418873555958271, 0.03878602758049965, -0.03325792774558067, 0.051169924437999725, -0.030105693265795708, 0.03913279250264168, -0.1042933315038681, 0.017212579026818275, -0.06101333722472191, 0.03890344500541687, 0.01862669736146927, -0.08817461133003235, -0.02526300773024559, 0.010453923605382442, -0.022949008271098137, 0.2045212835073471, -0.041875965893268585, -0.04214560613036156, 0.02324555441737175, -0.03173839673399925, 0.08004941046237946, 0.05346434563398361, 0.03274465352296829, 0.1020079106092453, -0.048275139182806015, -0.019634485244750977, -0.05119738727807999, -0.004230432212352753, 0.025879550725221634, -0.0033826404251158237, 0.007272719405591488, -0.007608809042721987, -0.01448624674230814, 0.03270205855369568, -0.03710699453949928, -0.0126593466848135, 0.0005750965210609138, -0.04119565710425377, 0.006675302982330322, -0.03540591150522232, 0.0023726143408566713, 0.05849067121744156, -0.03250977769494057, 0.0003825474123004824, 0.003566295839846134, -0.08212675154209137, 0.0007985150441527367, 0.003123261034488678, -0.027632396668195724, 0.10117501765489578, 0.017378846183419228, -0.011861288920044899, -0.01964208483695984, -0.006488071754574776, 0.005982882343232632, 0.013180027715861797, -0.017380019649863243, -0.02957800403237343, -0.02694431133568287, 0.02590457908809185, -0.04885752126574516, 0.0009436785476282239, 0.02018130011856556, 0.0033052319195121527, -0.03145427629351616, 0.021452000364661217, -0.0006921408930793405, 0.01914161629974842, -0.013625389896333218, 0.033108651638031006, 0.03620998561382294, 0.03292078152298927, -0.02351260371506214, -0.04353312402963638, -0.01929677464067936, 0.014250645413994789, -0.034808143973350525, 0.039733149111270905, 0.056240227073431015, 0.0489562563598156, 0.0014214927796274424, -0.032322779297828674, -0.009295935742557049, -0.06398053467273712, 0.05095955729484558, 0.0032024458050727844, 0.04743238911032677, -0.02562183327972889, 0.019926728680729866, -0.015437494963407516, -0.017521727830171585, -0.00022616163187194616, 0.035146038979291916, -0.023549914360046387, 0.012486082501709461, 0.013595816679298878, 0.032304227352142334, 0.011303200386464596, -0.00746797863394022, -0.019974466413259506, 0.042716991156339645, 0.028015457093715668, 0.008532378822565079, -0.11188999563455582, -0.03518201783299446, -0.01587994396686554, 0.03231034055352211, -0.010707600973546505, 0.03485317900776863, 0.041291698813438416, -0.02161886915564537, -0.014146561734378338, 0.02160067670047283, -0.005711046978831291, 0.002135257003828883, 0.06005290150642395, 0.0031228975858539343, -0.03182147443294525, 0.012440472841262817, -0.014685273170471191, 0.04412342980504036, 0.0106836361810565, 0.020975904539227486, -0.016222575679421425, 0.02748078666627407, -0.01873803324997425, 0.007741448935121298, -0.01486927643418312, 0.016313700005412102, 0.04814651608467102, 0.02117299474775791, 0.013668326660990715, -0.03343799337744713, -0.019212862476706505, 0.024701697751879692, 0.00586509658023715, -0.020776823163032532, -0.03839963674545288, 0.007265463005751371, -0.0012876609107479453, 0.011513428762555122, 0.015118705108761787, 0.02592962235212326, -0.032078392803668976, -0.0028360660653561354, -0.0007513290038332343, -0.01491036918014288, 0.04219259321689606, -0.02500767447054386, -0.0021491502411663532, 0.006315571255981922, 0.042685702443122864, -0.00612019095569849, 0.0016540245851501822, -0.0026605078019201756, 0.015523369424045086, 0.0637928768992424, 0.00498107448220253, -0.01559538021683693, 0.015168319456279278, 0.06062065064907074, 0.012160183861851692, -0.009331216104328632, -0.02126031555235386, 0.05609165504574776, -0.006075093522667885, -0.012245699763298035, -0.03538134694099426, 0.03169518709182739, 0.0332019105553627, -0.027577199041843414, -0.06446686387062073, -0.00459354417398572, -0.0031522202771157026, 0.0557313933968544, 0.009365078061819077, 0.007961182855069637, -0.0048131938092410564, -0.009423371404409409, -0.025870846584439278, -0.030039725825190544, 0.04061807319521904, 0.04167958348989487, 0.03654519468545914, -0.04940257593989372, 0.013689196668565273, -0.045631155371665955, 0.03574945405125618, 0.0006069722003303468, -0.0038458805065602064, -0.010798049159348011, -0.011482322588562965, 0.01112003531306982, 0.02074662782251835, -0.020830634981393814, 0.04205155372619629, 0.03587760031223297, 0.0037308642640709877, 0.013379507698118687, 0.025726230815052986, -0.023295020684599876, 0.0015966705977916718, 0.0010196062503382564, 0.04216793179512024, -0.050703007727861404, 0.000901202205568552, -0.00735276797786355, 0.023214224725961685, 0.028339508920907974, -0.017399031668901443, -0.04119940102100372, 0.01998213864862919, -0.02332194894552231, 0.014720733277499676, -0.00016961876826826483, 0.019371669739484787, -0.027192046865820885, 0.034434471279382706, 0.021767374128103256, -0.04050244390964508, 0.005145147442817688, 0.005089984275400639, 0.03227787837386131, -0.027430392801761627, -0.041498105973005295, 0.040693607181310654, 0.019153812900185585, 0.020002178847789764, -0.021912839263677597, 0.04680461063981056, 0.004070125985890627, 0.0016011977568268776, 0.008489202708005905, -0.02091396600008011, -0.02806585654616356, -0.006867547519505024, 0.0205711480230093, 0.027654234319925308, 0.010992513038218021, -0.008200819604098797, 0.01950802467763424, 0.031651176512241364, -0.06791692227125168, -0.010392660275101662, 0.022221745923161507, 0.018660027533769608, 0.010800942778587341, 0.050979796797037125, -0.03301642835140228, -0.017818355932831764, -0.02954717166721821, 0.023128561675548553, 0.027370961382985115, 0.016603216528892517, -0.0103743402287364, -0.015691041946411133, -0.00992044247686863, 0.008570459671318531, -0.04066409543156624, -0.015245686285197735, 0.020933011546730995, -0.00791972130537033, 0.04111558198928833, 0.030128266662359238, -0.019186196848750114, -0.048404891043901443, 0.007227979134768248, 0.046960748732089996, 0.01465735025703907, -0.012334289029240608, -0.03302619233727455, -0.02614070475101471, 0.007788603659719229, -0.020174821838736534, 0.01796712540090084, 0.04336351528763771, -0.010804531164467335, 0.011768585070967674, 0.023888083174824715, 0.07020166516304016, 0.026014419272542, -0.012906573712825775, 0.017092227935791016, -0.015186591073870659, 0.04314238950610161, -0.002289138501510024, 0.04032789170742035, -0.013926633633673191, 0.009519079700112343, 0.09836752712726593, 0.04794178530573845, 0.021384257823228836, 0.009445538744330406, -0.00875376258045435, 0.00939920824021101, 0.0012193646980449557, -0.00619875080883503, -0.010631941258907318, -0.007520812563598156, -0.03509603068232536, -0.0018655018648132682, -0.017094166949391365, 0.004015864804387093, 0.0012678829953074455, 0.022330468520522118, -0.03657392039895058, -0.023215634748339653, -0.0006004464812576771, -0.015865545719861984, 0.022740192711353302, -0.04014662653207779, 0.0502571277320385, -0.029418881982564926, -0.014038692228496075, 0.00015208593686111271, 0.005506885703653097, 0.002800889313220978, -0.018874093890190125, -0.052971139550209045, -0.05533844977617264, -0.004849267657846212, 0.017361540347337723, -0.02620459906756878, 0.017136598005890846, 0.002127391053363681, -0.02847917005419731, 0.009140364825725555, 0.04366280511021614, -0.037721797823905945, 0.017851650714874268, 0.02946530655026436, 0.0040890490636229515, -0.00617387006059289, 0.04679705575108528, 0.014889383688569069, 0.021984245628118515, -0.012235955335199833, -0.01029735803604126, -0.040402818471193314, -0.04359791427850723, 0.006302588619291782, -0.012568417005240917, -0.01200325507670641, -0.0072770691476762295, -0.04454915598034859, -0.01513583306223154, -0.002048961352556944, -0.023795507848262787, 0.02739265188574791, 0.04234055429697037, 0.020264888182282448, 0.01824183575809002, -0.0037906558718532324, 0.042399462312459946, 0.006321080960333347, -0.0036337473429739475, -0.029866956174373627, 0.016103141009807587, 0.003890963504090905, 0.005303359590470791, 0.0075040217489004135, 0.0011497446103021502, -0.034424472600221634, 0.01062887255102396, -0.08284904807806015, 0.023880327120423317, 0.05864172428846359, -0.008170204237103462, 0.02848699688911438, 0.043797463178634644, -0.03618477284908295, 0.04179191216826439, -0.032448381185531616, 0.04867606237530708, 0.05346878990530968, 0.01071180310100317, 0.012425260618329048, -0.02414422482252121, -0.01601642556488514, -0.002370888367295265, 0.06697436422109604, -0.001803528401069343, 0.039276380091905594, 0.014480117708444595, 0.017458757385611534, 0.044755857437849045, 0.0002189794322475791, 0.017308073118329048, 0.016914594918489456, 0.006831332575529814, 0.05788198858499527, 0.019459318369627, 0.027729155495762825, -0.0019968105480074883, -0.01179115753620863, -0.04228155314922333, 0.03405654802918434, -0.07006140053272247, -0.0033190941903740168, 0.047599490731954575, -0.029313595965504646, 0.012681164778769016, -0.022989312186837196, 0.06572526693344116, 0.03911235183477402, 0.030737202614545822, 0.017221126705408096, 0.06316440552473068, 0.06682024896144867, 0.029208535328507423, 0.025925127789378166, 0.036690764129161835, 0.012067313306033611, -0.019773246720433235, 0.06257495284080505, 0.031130654737353325, -0.009206785820424557, -0.0008532138308510184, 0.010511284694075584, 0.031566474586725235, 0.0018052227096632123, -0.027991298586130142, 0.0032707599457353354, 0.006439355202019215, -0.017805183306336403, -0.03521718084812164, 0.03449355438351631, -0.04050777480006218, -0.01384531706571579, 0.004963486455380917, 0.007361424155533314, -0.014522284269332886, -0.0004928242415189743, -0.03416670486330986, 0.03160044178366661, 0.00397212291136384, -0.02394133247435093, -0.048058826476335526, -0.023957332596182823, -0.004629557486623526, 0.04492749273777008, -0.02780088037252426, -0.03722652792930603, -0.06748830527067184, -0.030380135402083397, -0.02248099446296692, 0.03151945397257805, 0.008852198719978333, 0.012221311219036579, 0.007770882919430733, 0.0033535065595060587, -0.04808640107512474, -0.021146642044186592, 0.010981827042996883, 0.02353065460920334, -0.06166147440671921, 0.02033282443881035, -0.05723252147436142, -0.021892080083489418, 0.002623541047796607, -0.019131314009428024, 0.017186081036925316, -0.02269371598958969, 0.01344341691583395, -0.011341377161443233, 0.043774671852588654, -0.017951663583517075, -0.0244615375995636, -0.03604525327682495, 0.00003566343002603389, 0.003406389383599162, 0.026778535917401314, 0.0030118629802018404, 0.010129286907613277, 0.006687757559120655, 0.008618359453976154, 0.006411162205040455, -0.05243315547704697, 0.018082894384860992, 0.037954360246658325, 0.017739668488502502, -0.03300346061587334, -0.00461356807500124, 0.06338699162006378, 0.03808679059147835, 0.039471328258514404, 0.020611485466361046, 0.020283136516809464, 0.016141656786203384, -0.02332572638988495, -0.02256987802684307, 0.0010042155627161264, 0.021814003586769104, -0.03155113756656647, -0.048992518335580826, -0.025635911151766777, 0.021191440522670746, -0.016779880970716476, 0.0018223350634798408, -0.031798332929611206, -0.04071749001741409, -0.00263221631757915, 0.00046006712364032865, -0.03134617954492569, 0.0330631397664547, 0.023365801200270653, -0.004616528283804655, 0.005203808192163706, -0.0026679926086217165, 0.007981684058904648, 0.023467790335416794, -0.00040318287210538983, -0.0207204632461071, 0.025187188759446144, 0.016397153958678246, 0.00006729812594130635, 0.006280974950641394, 0.04713187366724014, -0.005695372819900513, -0.0017677469877526164, -0.026329318061470985, -0.007121375296264887, -0.0127300675958395, -0.011834452860057354, -0.0033845114521682262, 0.02526031993329525, 0.019208086654543877, 0.008778759278357029, 0.04339924454689026, 0.026526032015681267, 0.0033373062033206224, -0.022481951862573624, -0.04460284858942032, -0.017272744327783585, -0.041443515568971634, -0.041751038283109665, 0.026772543787956238, 0.01656252145767212, 0.01675811968743801, 0.015507711097598076, -0.021499579772353172, 0.01993015967309475, -0.00789154227823019, -0.006667716894298792, -0.001516756252385676, -0.00962178036570549, 0.005198344122618437, 0.029711347073316574, -0.03018268197774887, 0.041121430695056915, 0.025803904980421066, -0.0407114252448082, 0.028404662385582924, -0.001663503237068653, -0.02719102054834366, -0.0025098964106291533, 0.05619386211037636, 0.000950226909480989, 0.05397932603955269, 0.07299377769231796, 0.015051175840198994, 0.02682066336274147, 0.04408997297286987 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
Conclusion We're very excited about the future of SafeCoder, and so are our customers. No one should have to compromise on state-of-the-art code generation, transparency, customization, IT flexibility, security, and privacy. We believe SafeCoder delivers them all, and we'll keep working hard to make it even better. If you’re interested in SafeCoder for your company, please contact us. Our team will contact you shortly to learn more about your use case and discuss requirements. Thanks for reading!
[ 0.07609265297651291, 0.008308392949402332, 0.12381423264741898, 0.04748855531215668, 0.08479726314544678, 0.04481949284672737, 0.0194050632417202, 0.015730170533061028, -0.04591092839837074, -0.08901037275791168, -0.0350077748298645, 0.00815710797905922, -0.039205215871334076, 0.031562723219394684, -0.0404217429459095, 0.010673205368220806, 0.07368054986000061, 0.01689239591360092, 0.03118876740336418, -0.019669171422719955, -0.08108177781105042, -0.039865996688604355, 0.015438619069755077, -0.05475853756070137, 0.00401948532089591, 0.028181957080960274, -0.03320569172501564, -0.02400193363428116, -0.10092166811227798, 0.02472815476357937, -0.022498514503240585, 0.017572974786162376, 0.003368979087099433, -0.06590471416711807, -0.012950818985700607, 0.0072592454962432384, -0.07155199348926544, 0.0659818947315216, -0.03906279057264328, -0.04135878384113312, -0.033370040357112885, -0.05736219137907028, -0.06405675411224365, 0.02082141302525997, 0.006015289109200239, -0.029305970296263695, -0.24608103930950165, 0.08079465478658676, -0.006910252850502729, -0.01939331367611885, -0.04175060987472534, 0.06444784253835678, -0.029518458992242813, 0.025846002623438835, 0.033554352819919586, -0.004838855471462011, 0.012935490347445011, -0.06302107870578766, -0.01898496225476265, -0.026946213096380234, 0.03733880817890167, -0.07022195309400558, 0.016064999625086784, 0.01140601746737957, 0.07848460227251053, 0.01550227403640747, -0.030975254252552986, 0.012292689643800259, -0.0009339338284917176, -0.021141134202480316, 0.005002674646675587, -0.035130176693201065, -0.029400771483778954, -0.012554295361042023, -0.004055080469697714, -0.07397648692131042, -0.07090983539819717, 0.021840667352080345, 0.05574393272399902, 0.03588889166712761, 0.019463395699858665, 0.019673412665724754, 0.08814429491758347, 0.02302045002579689, 0.009112367406487465, -0.02807985618710518, 0.03600156307220459, -0.011493352241814137, 0.011181806214153767, 0.015476786531507969, 0.013244387693703175, -0.13308218121528625, 0.00980660691857338, -0.026258384808897972, -0.016613822430372238, -0.04952705278992653, 0.015553856268525124, 0.019625116139650345, -0.0056405276991426945, 0.02597620151937008, -0.0450955405831337, -0.02829030528664589, -0.015446813777089119, -0.07131081819534302, -0.008735544048249722, -0.0198618583381176, -0.03049583174288273, -0.05741157382726669, -0.0020723629277199507, 0.04970293119549751, 0.027378149330615997, 0.01899629645049572, 0.028203176334500313, 0.04868081584572792, -0.09763915091753006, 0.047129902988672256, 0.02200697921216488, -0.04030401259660721, 0.034747667610645294, -0.004469442181289196, 0.007129943463951349, 0.06107921898365021, -0.021522939205169678, 0.028958801180124283, 0.000645094143692404, 0.007039994467049837, -0.019490661099553108, 0.04979737475514412, -0.04687948524951935, -0.057342056185007095, 0.008863148279488087, 0.04120348393917084, -0.0082872798666358, -0.010170862078666687, -0.038903262466192245, -0.027682984247803688, -0.086651511490345, -0.05175994336605072, -0.010064474307000637, -0.03955196589231491, -0.041432466357946396, 0.03919288143515587, 0.034804146736860275, 0.06503698974847794, 0.00780358025804162, -0.06017712503671646, -0.0807749405503273, 0.07677614688873291, 0.016615452244877815, 0.02174253575503826, 0.019763058051466942, 0.035365451127290726, -0.0537695586681366, -0.09157150238752365, -0.008941386826336384, 0.04833518713712692, -0.019770698621869087, -0.006455789785832167, -0.06941121816635132, -0.0075753480195999146, 0.013836492784321308, -0.006029368378221989, -0.03692436218261719, -0.01035001315176487, -0.01171251479536295, -0.024505743756890297, 0.03609494864940643, -0.005658223759382963, -0.00809925515204668, -0.018341228365898132, -0.03920835629105568, -0.024457519873976707, 0.07452483475208282, -0.03467774763703346, -0.008704052306711674, 0.033620696514844894, 0.0619669072329998, 0.07064248621463776, 0.02832758240401745, -0.008078600279986858, -0.0373593308031559, 0.0301961749792099, 0.0012495197588577867, 0.041268009692430496, -0.03232234716415405, -0.0689498633146286, 0.033450670540332794, -0.0595264658331871, -0.04003968834877014, 0.04412855580449104, -0.10348217189311981, 0.014375920407474041, 0.0906466618180275, -0.049795396625995636, 0.017663121223449707, -0.0423714704811573, 0.006871952209621668, 0.14419852197170258, 0.025985408574342728, 0.06926041841506958, 0.06295500695705414, 0.019833670929074287, 0.06697729229927063, -0.05508967116475105, -0.04631665721535683, 0.06088220700621605, 0.06536373496055603, 0.02977808564901352, 0.007822573184967041, 0.037034038454294205, 0.03646066412329674, -0.06894493103027344, 0.001042165677063167, -0.06421267986297607, 0.04249511659145355, 0.007370559498667717, -0.04130693897604942, 0.0011382956290617585, 0.021524803712964058, -0.025546591728925705, 0.15655942261219025, -0.04909267649054527, -0.004511616658419371, 0.05734851211309433, -0.022830767557024956, 0.129001647233963, 0.04629143700003624, 0.016243064776062965, 0.09750258177518845, -0.024736301973462105, -0.010303779505193233, -0.031539130955934525, -0.02558048814535141, 0.014795091934502125, 0.04709158465266228, 0.056906186044216156, -0.0181310772895813, -0.02458609826862812, 0.009752800688147545, 0.0021130864042788744, 0.020232170820236206, -0.007908963598310947, -0.006528819911181927, 0.024714697152376175, -0.025377677753567696, -0.062319010496139526, 0.06330025941133499, 0.005927206948399544, 0.0121826296672225, -0.003535900032147765, -0.07885541021823883, 0.03279170021414757, -0.014534568414092064, -0.017053108662366867, 0.11653085052967072, -0.01912176050245762, -0.006760504096746445, -0.03037470579147339, -0.02363388054072857, -0.0012343634152784944, 0.011906164698302746, -0.047277599573135376, 0.021256256848573685, -0.06413969397544861, 0.011195297352969646, -0.016041317954659462, -0.03662963956594467, 0.03562242537736893, -0.010011494159698486, 0.025286469608545303, -0.021817490458488464, -0.012149321846663952, 0.019347501918673515, 0.0005739949992857873, 0.025461899116635323, 0.0341121107339859, 0.04521739482879639, 0.0013772461097687483, -0.0015118030132725835, 0.006371626630425453, 0.009605332277715206, -0.04531969130039215, 0.0386369451880455, 0.033203255385160446, 0.044545743614435196, 0.017486175522208214, -0.00199250690639019, 0.00966730061918497, -0.05931488052010536, 0.0148713868111372, 0.0025316064711660147, 0.007801807019859552, -0.007483329623937607, -0.00862595159560442, -0.00445623230189085, -0.04483410343527794, -0.00034055166179314256, 0.016131991520524025, -0.0333162285387516, -0.0075411200523376465, 0.003356854896992445, -0.00535506010055542, -0.0021053447853773832, -0.029798034578561783, -0.0456680953502655, 0.05667486414313316, 0.015368744730949402, -0.006367282941937447, -0.13629190623760223, -0.016284797340631485, 0.003431186079978943, 0.029483472928404808, -0.015053128823637962, 0.008837569504976273, 0.04652586951851845, -0.048280179500579834, -0.010835789144039154, 0.014925489202141762, 0.004717889241874218, 0.02253546565771103, 0.048558369278907776, -0.01493815053254366, -0.003914772067219019, 0.002975969109684229, 0.014449969865381718, 0.05090662091970444, 0.002456711372360587, -0.0029174641240388155, 0.010977379977703094, 0.039463531225919724, -0.00518080685287714, 0.007205790840089321, -0.03304195776581764, 0.004206966608762741, 0.020384281873703003, 0.03425854817032814, -0.00498260697349906, -0.03608659282326698, -0.017855478450655937, 0.004062593914568424, 0.0071890209801495075, -0.020903678610920906, -0.06153693422675133, 0.015609641559422016, -0.0007276107789948583, -0.015120942145586014, -0.0026446592528373003, 0.020000221207737923, 0.004032159689813852, -0.002304765861481428, -0.0009089530794881284, -0.004587091505527496, -0.0013555153273046017, 0.0005194954574108124, 0.02143835462629795, 0.006587095558643341, 0.06976016610860825, -0.025349922478199005, -0.009437876753509045, -0.02451033517718315, 0.0033872753847390413, 0.06921343505382538, -0.00793064758181572, -0.014950688928365707, -0.02753748558461666, 0.02749962918460369, 0.03358996659517288, 0.01572592929005623, -0.002693323651328683, -0.003805006854236126, 0.025090493261814117, -0.025829238817095757, -0.04388801008462906, 0.05577845871448517, 0.006285021081566811, -0.02948586456477642, -0.04119133576750755, 0.049451928585767746, -0.0013727842597290874, 0.03704441338777542, 0.010692249983549118, 0.021608129143714905, -0.006134366150945425, 0.022971302270889282, -0.006311849225312471, -0.014668561518192291, 0.08012398332357407, 0.019030610099434853, 0.017794150859117508, -0.03471159562468529, 0.015537714585661888, -0.005694338586181402, 0.013017733581364155, 0.03817892447113991, 0.006605136673897505, 0.04920896142721176, 0.019375789910554886, 0.048248812556266785, 0.03643535077571869, -0.03092503547668457, 0.0358344204723835, 0.018103957176208496, 0.014196961186826229, 0.024928763508796692, 0.04470616579055786, -0.01488974317908287, 0.004980777390301228, -0.002032798482105136, 0.03334355354309082, -0.03257236257195473, -0.015302279964089394, -0.005829071160405874, -0.002260292414575815, 0.0607571080327034, -0.023686835542321205, -0.012769173830747604, -0.03134756535291672, 0.01882854476571083, 0.016514956951141357, -0.0298865158110857, 0.026773672550916672, -0.04001517966389656, 0.02371908165514469, -0.010187816806137562, -0.008519462309777737, -0.02931175008416176, -0.04046420007944107, -0.00958892423659563, -0.020447924733161926, 0.009876390919089317, 0.02448236383497715, 0.027303392067551613, 0.0013859843602403998, -0.020915020257234573, 0.027240457013249397, 0.006123707629740238, 0.022006480023264885, 0.01309683732688427, -0.008307522162795067, 0.005513519048690796, -0.019951753318309784, -0.002060539089143276, 0.003047750098630786, 0.023872284218668938, 0.010835317894816399, 0.0508064404129982, -0.027133049443364143, -0.09585738182067871, 0.0027235785964876413, 0.024632057175040245, 0.023006264120340347, -0.01016601175069809, 0.05006174370646477, -0.009949666447937489, -0.03368621692061424, -0.011286471039056778, 0.012380116619169712, -0.002219094894826412, 0.021911367774009705, -0.06922658532857895, -0.050335898995399475, 0.0032233274541795254, -0.003553313435986638, -0.04172663763165474, 0.007693535648286343, 0.015793394297361374, -0.023968158289790154, 0.03398914262652397, 0.031452424824237823, 0.02851784974336624, -0.04103098809719086, -0.00029397461912594736, 0.003802052466198802, 0.0013642051490023732, 0.0006366072339005768, -0.0034015867859125137, -0.0353127084672451, -0.0026767177041620016, 0.006452641449868679, -0.014411261305212975, 0.02856052853167057, -0.012801571749150753, 0.00670324033126235, 0.032132841646671295, 0.01653759367763996, 0.016405323520302773, 0.010271154344081879, 0.0358986034989357, 0.0016639349050819874, 0.02316238172352314, 0.019935496151447296, 0.012875251471996307, 0.02085292711853981, -0.011120538227260113, 0.07386317849159241, 0.026933057233691216, -0.010004566051065922, 0.0210597962141037, -0.006209452636539936, -0.017128122970461845, -0.008774733170866966, -0.016955992206931114, 0.009164680726826191, -0.022881383076310158, 0.016493937000632286, 0.021740898489952087, -0.02082362212240696, -0.0012147758388891816, 0.03228375315666199, 0.024644210934638977, -0.00200179242528975, 0.005523593630641699, -0.011627783998847008, 0.02393524907529354, 0.055075567215681076, -0.01572178490459919, 0.00743171526119113, -0.014001121744513512, 0.011224774643778801, 0.03913998603820801, -0.02859947644174099, 0.011528780683875084, 0.014129345305263996, -0.05908400937914848, -0.02848110906779766, 0.035829782485961914, 0.003966407850384712, 0.005263925064355135, 0.02489166520535946, -0.003926082048565149, -0.035779278725385666, 0.020444948226213455, 0.04835885390639305, 0.010526788420975208, -0.010073441080749035, 0.014499076642096043, -0.007816841825842857, 0.028546852990984917, 0.0522284135222435, -0.0019615618512034416, -0.0008892635232768953, 0.014609545469284058, -0.028166646137833595, -0.012538200244307518, -0.04502782225608826, 0.032733310014009476, -0.04018319398164749, -0.007974573411047459, -0.02887866087257862, -0.054347749799489975, -0.0032730859238654375, -0.04016381502151489, -0.055305249989032745, 0.031146181747317314, 0.046790216118097305, -0.016405705362558365, 0.016296276822686195, 0.0014096155064180493, 0.04067164659500122, 0.021774016320705414, -0.007638623472303152, -0.018114054575562477, 0.029125532135367393, 0.003059102687984705, 0.026168081909418106, -0.006464194972068071, 0.015399916097521782, -0.04641775041818619, -0.016189802438020706, -0.05915796384215355, 0.007145948242396116, 0.04349592700600624, -0.008812316693365574, 0.02514093928039074, 0.020488128066062927, -0.016395328566432, 0.039416950196027756, -0.021789638325572014, 0.014113222248852253, 0.06326325237751007, 0.04976522549986839, -0.0012119455495849252, 0.00887116976082325, -0.034275393933057785, 0.042285509407520294, 0.050252802670001984, -0.010047266259789467, 0.01793387159705162, 0.034276191145181656, 0.0398290753364563, 0.05244501680135727, 0.00940083246678114, 0.004851629491895437, -0.026299532502889633, 0.001848156563937664, 0.0135647589340806, 0.035402458161115646, 0.014851302839815617, -0.013051535002887249, -0.014690124429762363, -0.005999079439789057, 0.03287997469305992, -0.03815208002924919, 0.0016698134131729603, 0.017089208588004112, -0.02201693505048752, 0.03806808218359947, -0.04275702312588692, 0.06004765257239342, 0.013463927432894707, -0.017020806670188904, 0.017039302736520767, 0.018822090700268745, 0.03203754872083664, 0.04961354285478592, 0.0056081125512719154, 0.011027658358216286, 0.010626413859426975, -0.017383204773068428, 0.0663350522518158, 0.006863946560770273, 0.006474721245467663, 0.028078025206923485, -0.019780611619353294, 0.030841656029224396, -0.01733648031949997, -0.01796698197722435, -0.005938536021858454, 0.013218864798545837, -0.03201055899262428, -0.04357234761118889, -0.0016252376371994615, -0.017124755308032036, -0.039565689861774445, 0.01167262066155672, 0.02890242449939251, -0.028472598642110825, -0.007966523990035057, -0.025235038250684738, 0.05793072283267975, -0.0009246874251402915, 0.018938636407256126, -0.02786807343363762, 0.005554563831537962, -0.0011401678202673793, 0.04907384514808655, -0.033911269158124924, -0.028005007654428482, -0.02021823450922966, 0.01616276614367962, -0.042109016329050064, 0.025111455470323563, -0.018636805936694145, -0.0037998093757778406, 0.03131622076034546, 0.016097640618681908, -0.01436685398221016, 0.0054085589945316315, 0.042005229741334915, 0.02819581888616085, -0.04332553967833519, 0.0325174480676651, -0.03412919491529465, -0.015520887449383736, -0.025795474648475647, -0.009580183774232864, 0.02131526917219162, -0.036643434315919876, 0.01082808617502451, -0.013659980148077011, 0.01611621491611004, -0.023327868431806564, -0.031984396278858185, -0.029930243268609047, -0.029278092086315155, 0.016231518238782883, -0.015811987221240997, 0.00048288400284945965, -0.04859410226345062, -0.017413122579455376, 0.03058360330760479, 0.024732496589422226, -0.024421075358986855, 0.012154603376984596, 0.027919160202145576, -0.012329954653978348, -0.028549140319228172, 0.009261510334908962, 0.07083780318498611, 0.026500916108489037, 0.03992243856191635, 0.03790467232465744, 0.005847258493304253, -0.01650034636259079, -0.058659784495830536, -0.013015552423894405, 0.005396413151174784, 0.01161192823201418, -0.009962420910596848, -0.04126816987991333, -0.0260116346180439, -0.03159807249903679, 0.030201522633433342, 0.00792525801807642, -0.02709966152906418, -0.000146950435009785, 0.0123131163418293, 0.011134606786072254, -0.03060808777809143, 0.0035776677541434765, 0.031634047627449036, -0.005607528146356344, 0.030978647992014885, -0.020184122025966644, -0.005683892872184515, -0.0022384992334991693, 0.007039149757474661, 0.015904858708381653, 0.02001359313726425, 0.03768579289317131, -0.023478422313928604, -0.028885945677757263, 0.0067712776362895966, -0.06252474337816238, -0.013880450278520584, -0.004526284523308277, 0.04737072065472603, -0.01790168322622776, 0.018723009154200554, 0.009398582391440868, 0.00724194198846817, 0.020223980769515038, 0.008257829584181309, 0.019342776387929916, 0.008166808634996414, 0.0074448538944125175, -0.01436484232544899, -0.014278089627623558, -0.01869715377688408, -0.02152523398399353, 0.00486292177811265, 0.03558960556983948, 0.00009275807678932324, -0.016672030091285706, -0.01709321327507496, -0.0332297757267952, 0.012728262692689896, -0.0029539596289396286, -0.006591991055756807, -0.002464733785018325, 0.0032206722535192966, -0.0044493055902421474, -0.0018207344692200422, -0.04886360466480255, 0.03573775291442871, -0.01210844237357378, -0.044509854167699814, -0.010293971747159958, -0.023960936814546585, -0.01765586994588375, -0.0024991745594888926, 0.0544561892747879, 0.018577052280306816, 0.08561073988676071, 0.042246829718351364, -0.017541462555527687, -0.011639056727290154, 0.03337056189775467 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
# SafeCoder vs. Closed-source Code Assistants For decades, software developers have designed methodologies, processes, and tools that help them improve code quality and increase productivity. For instance, agile, test-driven development, code reviews, and CI/CD are now staples in the software industry. In "How Google Tests Software" (Addison-Wesley, 2012), Google reports that fixing a bug during system tests - the final testing stage - is 1000x more expensive than fixing it at the unit testing stage. This puts much pressure on developers - the first link in the chain - to write quality code from the get-go. For all the hype surrounding generative AI, code generation seems a promising way to help developers deliver better code fast. Indeed, early studies show that managed services like GitHub Copilot or Amazon CodeWhisperer help developers be more productive. However, these services rely on closed-source models that can't be customized to your technical culture and processes. Hugging Face released SafeCoder a few weeks ago to fix this. SafeCoder is a code assistant solution built for the enterprise that gives you state-of-the-art models, transparency, customizability, IT flexibility, and privacy. In this post, we'll compare SafeCoder to closed-source services and highlight the benefits you can expect from our solution.
[ 0.006014131009578705, -0.01247784961014986, 0.04301704466342926, 0.058682072907686234, 0.01453582476824522, 0.07733319699764252, 0.02662397362291813, -0.021133987233042717, -0.0005464702844619751, -0.03785422071814537, -0.041645172983407974, 0.019573617726564407, -0.04628067836165428, 0.039815887808799744, -0.019838489592075348, -0.06858270615339279, 0.03364335000514984, 0.023189488798379898, -0.03980052098631859, 0.030717553570866585, -0.041785065084695816, -0.013107895851135254, -0.059257712215185165, -0.07751210778951645, -0.08543480187654495, 0.004601108375936747, 0.009012628346681595, -0.005187126807868481, -0.07554716616868973, -0.03725576400756836, -0.06234757974743843, 0.008328464813530445, -0.030479375272989273, -0.09209837764501572, 0.023645130917429924, 0.015238488093018532, -0.09554282575845718, 0.06529717147350311, 0.008149583823978901, -0.03812834620475769, 0.011841749772429466, -0.05791100114583969, -0.07458488643169403, -0.019515149295330048, 0.004397611599415541, 0.036219045519828796, -0.16794823110103607, 0.04682861268520355, -0.04746183007955551, -0.06320389360189438, -0.08621963858604431, 0.05189100280404091, 0.017680514603853226, -0.021253617480397224, 0.019575469195842743, 0.04442906752228737, 0.055528394877910614, -0.054626207798719406, -0.035417813807725906, 0.0028356739785522223, 0.04368121922016144, -0.06729764491319656, 0.030341902747750282, 0.005481076426804066, 0.07734405994415283, 0.0387691929936409, 0.00015391390479635447, -0.03470826894044876, 0.0068385242484509945, -0.022427361458539963, -0.034759581089019775, 0.004370035137981176, -0.020631875842809677, -0.004813456907868385, -0.03225577995181084, -0.03809897601604462, -0.054005399346351624, 0.034483227878808975, 0.029211396351456642, -0.056858666241168976, 0.009145078249275684, 0.01230623573064804, 0.020557833835482597, 0.029234586283564568, 0.009604143910109997, 0.04123813658952713, 0.001369739999063313, -0.07926591485738754, -0.04836155101656914, 0.016962459310889244, 0.020000679418444633, -0.13703137636184692, -0.05474486202001572, 0.01977851614356041, -0.00836524274200201, 0.06000153347849846, 0.05962860956788063, 0.06123074144124985, 0.003410609671846032, 0.04107539728283882, -0.09426851570606232, -0.02018974907696247, -0.044232532382011414, -0.04803686961531639, -0.030549420043826103, 0.004298687446862459, 0.0021068875212222338, -0.06258610635995865, -0.0036809768062084913, 0.04005437716841698, 0.07492350786924362, 0.0012383563444018364, 0.00825189333409071, 0.11282654851675034, -0.12141580879688263, 0.05341959372162819, -0.04555920884013176, -0.09002850949764252, -0.024460941553115845, 0.037162527441978455, -0.0035062776878476143, -0.013843164779245853, -0.037192899733781815, -0.01504420954734087, -0.001686301315203309, 0.06878534704446793, -0.008878299035131931, 0.02258296124637127, 0.04137713462114334, -0.032906509935855865, -0.017194591462612152, 0.05446654558181763, 0.013766497373580933, -0.019789166748523712, -0.01453987043350935, -0.021638456732034683, -0.006612746510654688, -0.03560921549797058, 0.0035877565387636423, 0.005804906133562326, 0.000589631381444633, 0.0752066969871521, 0.05964824929833412, -0.03817084804177284, 0.0177242960780859, -0.023307662457227707, -0.07145512104034424, 0.06743361055850983, 0.04282523691654205, 0.035750046372413635, -0.043969061225652695, 0.010424884036183357, -0.0718296691775322, -0.03264118358492851, 0.013504698872566223, 0.05439557507634163, -0.015963222831487656, -0.06481876969337463, 0.06153581291437149, -0.018253766000270844, -0.00008730075205676258, 0.0065376595593988895, -0.02285144105553627, -0.0470847524702549, -0.019927462562918663, -0.022931639105081558, -0.003869743784889579, 0.044879794120788574, 0.0014325297670438886, 0.0666794404387474, -0.03899839147925377, -0.018608257174491882, 0.08759581297636032, -0.04962415620684624, 0.07251359522342682, 0.03384242579340935, 0.03192983940243721, 0.033365458250045776, 0.022964471951127052, -0.011289063841104507, -0.057167209684848785, 0.06344232708215714, 0.048162732273340225, 0.05883243307471275, 0.02403620444238186, -0.09165065735578537, 0.05505663529038429, -0.06082896515727043, -0.03761399909853935, -0.014839786104857922, -0.07837557047605515, 0.01742108352482319, 0.04365706071257591, -0.03017151914536953, 0.026232924312353134, 0.016363326460123062, -0.020149437710642815, 0.14178811013698578, 0.07060027867555618, 0.006669729016721249, 0.056677691638469696, -0.022656751796603203, -0.007772523909807205, -0.059671126306056976, -0.032723549753427505, 0.043151725083589554, 0.07786213606595993, -0.033674456179142, -0.03835287317633629, 0.05543629080057144, 0.03887384012341499, -0.0789654552936554, 0.027306657284498215, -0.025279836729168892, 0.061897750943899155, 0.07951930910348892, -0.06722840666770935, -0.03342539817094803, 0.040407344698905945, 0.029338756576180458, 0.09921866655349731, -0.08677302300930023, -0.04026121646165848, 0.008893007412552834, 0.02851995639503002, 0.05917499214410782, 0.07003214210271835, 0.05887486785650253, 0.07145949453115463, -0.0235389843583107, -0.03790386766195297, -0.07123296707868576, -0.03518538549542427, -0.024818699806928635, 0.03474833816289902, 0.012269915081560612, 0.010633506812155247, -0.014161622151732445, -0.0014835407491773367, -0.012528447434306145, -0.021621666848659515, -0.003724741516634822, 0.023972569033503532, 0.031037695705890656, 0.009721814654767513, -0.02567354217171669, 0.02380836196243763, -0.03589950501918793, 0.05881809815764427, 0.011598576791584492, -0.0767144188284874, 0.0286798644810915, 0.035703178495168686, 0.048875968903303146, 0.041860904544591904, -0.0034810153301805258, -0.025344492867588997, -0.008234960027039051, -0.014059933833777905, 0.08272740244865417, 0.023053986951708794, -0.014177898876369, -0.0190975833684206, 0.0011788273695856333, 0.011880734004080296, -0.011105618439614773, -0.043667785823345184, 0.012784129939973354, -0.018486222252249718, -0.0005141221918165684, 0.020329482853412628, 0.004340610932558775, 0.04348061606287956, -0.00011033745249733329, 0.0206518042832613, 0.034289032220840454, 0.0314875990152359, 0.03449608385562897, -0.004339553415775299, 0.037873782217502594, 0.01861944980919361, -0.029023312032222748, 0.03982280567288399, 0.03791698440909386, 0.05377746745944023, 0.011025351472198963, -0.01690182089805603, -0.0021824368741363287, -0.03233617916703224, 0.02712121792137623, 0.03127996623516083, 0.008172675967216492, -0.06200330704450607, 0.00566978519782424, -0.00729745626449585, -0.012838777154684067, -0.01795043982565403, -0.027672309428453445, -0.035966381430625916, -0.004213680047541857, -0.0080413818359375, -0.020072463899850845, -0.00936000794172287, -0.03807554766535759, 0.01110973209142685, 0.02858087792992592, 0.027345135807991028, -0.006598914973437786, -0.087851382791996, -0.0028415964916348457, -0.055118680000305176, -0.02027110382914543, -0.030456306412816048, -0.014698303304612637, 0.05653231590986252, -0.01747465319931507, -0.012279640883207321, 0.05759093910455704, -0.004009641706943512, 0.025022849440574646, 0.01873760297894478, 0.02672470360994339, -0.026197411119937897, -0.05400596931576729, -0.040129899978637695, 0.00966817419975996, 0.00963961984962225, 0.011098833754658699, 0.015886586159467697, 0.02683713287115097, 0.019509736448526382, -0.020028062164783478, 0.011398738250136375, -0.025912752375006676, 0.011425093747675419, -0.022380389273166656, -0.0025539787020534277, -0.01771220751106739, 0.007836573757231236, -0.0225201565772295, 0.012596266344189644, -0.010059352032840252, -0.025070326402783394, 0.03737333416938782, 0.00007039570482447743, -0.010121280327439308, 0.03680295869708061, 0.024076903238892555, 0.02701307274401188, -0.0086124949157238, -0.004205093719065189, 0.024822693318128586, 0.013372394256293774, -0.03888923302292824, -0.0065996828489005566, -0.026468466967344284, 0.017417481169104576, -0.0069601465947926044, -0.005816278047859669, -0.01911110244691372, 0.004973583854734898, 0.09330594539642334, 0.03310970962047577, -0.004257155582308769, -0.0181876253336668, 0.004926345776766539, -0.014212768524885178, 0.03177650645375252, -0.046080805361270905, 0.016291409730911255, 0.002706222701817751, -0.031247979030013084, -0.029175734147429466, 0.05362200364470482, 0.04748726263642311, -0.058367591351270676, -0.06392516940832138, 0.023775119334459305, -0.008344910107553005, 0.03700017184019089, -0.019028110429644585, -0.0003870240179821849, -0.06121679022908211, 0.0016999341314658523, -0.026429815217852592, -0.03551188483834267, 0.028292544186115265, 0.044518981128931046, 0.027847224846482277, -0.02937457337975502, 0.029658617451786995, 0.007731529884040356, 0.016874300315976143, 0.0189833901822567, 0.021224770694971085, 0.043496184051036835, 0.013944780454039574, 0.04292988032102585, 0.016237305477261543, -0.0548078715801239, 0.005947730969637632, 0.03472154214978218, 0.03526425361633301, 0.018077699467539787, 0.006880439352244139, 0.026645494624972343, -0.006205949001014233, -0.007559932302683592, 0.03997179865837097, -0.03522041440010071, -0.003880831180140376, -0.008036874234676361, -0.006076495628803968, 0.05555819720029831, -0.03448610380291939, -0.03568173199892044, 0.018890393897891045, 0.022831009700894356, -0.01332365907728672, -0.046627696603536606, 0.024689869955182076, -0.048906490206718445, 0.026989134028553963, 0.02661161683499813, 0.011899689212441444, -0.022817254066467285, -0.005668607074767351, -0.000781229289714247, -0.0205382127314806, -0.0317506305873394, 0.03836715966463089, 0.03132950887084007, 0.057153064757585526, 0.023689458146691322, 0.030295340344309807, 0.01043315976858139, 0.01635880395770073, -0.003317803144454956, -0.010415852069854736, 0.015512934885919094, 0.0025200708769261837, -0.04070453718304634, -0.012560139410197735, -0.018494654446840286, 0.01683463715016842, 0.026159897446632385, -0.04165549576282501, -0.02871134504675865, 0.0007797295111231506, 0.06537717580795288, -0.0024074793327599764, -0.05521904677152634, 0.034816015511751175, -0.0025990367867052555, -0.015652349218726158, -0.021987872198224068, 0.009435904212296009, 0.03734283894300461, 0.00787390861660242, -0.024877186864614487, -0.006331868469715118, 0.012265699915587902, 0.030558252707123756, -0.03600521758198738, -0.015658538788557053, 0.01997668482363224, -0.008651955053210258, 0.017291339114308357, 0.037002503871917725, 0.020839137956500053, -0.02802196703851223, -0.04469672590494156, 0.012254915200173855, 0.024445075541734695, -0.0032958134543150663, -0.034508466720581055, -0.011145981028676033, -0.002539253095164895, -0.008799673058092594, 0.05618995428085327, 0.030813591554760933, 0.02116863988339901, -0.002283439738675952, 0.03589491918683052, 0.06965487450361252, 0.007497849874198437, -0.034233953803777695, 0.006068516056984663, -0.007373097352683544, 0.014069457538425922, 0.045073434710502625, 0.00401550717651844, 0.028526054695248604, -0.024573585018515587, 0.06911621242761612, 0.053057070821523666, -0.01890796795487404, 0.0012651628348976374, -0.037808772176504135, 0.02533646486699581, 0.007574854884296656, -0.013269568793475628, 0.015508175827562809, -0.046047694981098175, -0.0194696132093668, 0.021477345377206802, -0.03817665949463844, 0.0035209765192121267, -0.008561626076698303, 0.037222638726234436, -0.024144217371940613, -0.003934966865926981, 0.01226374413818121, -0.007643014192581177, -0.0009487336501479149, -0.013507419265806675, 0.04814034327864647, 0.012012622319161892, -0.0050020236521959305, -0.0025057154707610607, -0.02605433203279972, -0.034422896802425385, -0.030200770124793053, -0.04230383038520813, -0.015612110495567322, 0.03835025802254677, 0.01794586516916752, -0.03063887357711792, -0.016013121232390404, -0.008217079564929008, -0.004841666202992201, -0.018071303144097328, 0.05555139482021332, -0.04768045246601105, 0.009356731548905373, -0.0072258710861206055, 0.006151799578219652, -0.012105019763112068, 0.04899130016565323, 0.03108130767941475, -0.011499292217195034, -0.005400089547038078, -0.0006110136746428907, -0.0010462278733029962, 0.004485583398491144, 0.03225740045309067, -0.02169007621705532, -0.03712425008416176, -0.019313082098960876, -0.02050461433827877, 0.0019020175095647573, 0.006895721424371004, -0.033486757427453995, 0.03683280944824219, -0.01307942159473896, -0.026335757225751877, -0.0022465239744633436, 0.01450430229306221, 0.01733771339058876, 0.01508092600852251, -0.01877599023282528, -0.037453968077898026, 0.03459981828927994, 0.011865087784826756, 0.0015927681233733892, -0.004112835042178631, -0.03270215168595314, -0.02977892756462097, 0.021175527945160866, -0.06088615953922272, -0.015180443413555622, 0.051684241741895676, -0.04085882008075714, 0.014195652678608894, 0.019738225266337395, -0.0014073072234168649, 0.05401793122291565, -0.05669224634766579, 0.0324367992579937, 0.03289278224110603, 0.02944857068359852, -0.012446030043065548, -0.029811890795826912, -0.05279521644115448, 0.04865771159529686, 0.060537006705999374, 0.006088563706725836, 0.004944768734276295, 0.07417111843824387, 0.0646769255399704, 0.04926461726427078, -0.04909074306488037, 0.028085753321647644, -0.0399886816740036, 0.008721843361854553, 0.0323934406042099, 0.0345684252679348, 0.03620738163590431, -0.04573538899421692, -0.01821237988770008, 0.02065720036625862, -0.0032258438877761364, -0.047522421926259995, 0.018557265400886536, 0.010767300613224506, -0.010322646237909794, 0.04062116891145706, -0.008444861508905888, 0.021450800821185112, -0.0057404483668506145, 0.032524604350328445, 0.04156474024057388, 0.06428676843643188, 0.06435883045196533, 0.005576010327786207, -0.010842419229447842, 0.03713870048522949, 0.005632162559777498, -0.027021726593375206, 0.05603298917412758, 0.04951438307762146, 0.02356906421482563, 0.020143788307905197, 0.02987505868077278, 0.03543241322040558, -0.004998279735445976, -0.007871410809457302, 0.018962334841489792, -0.027776634320616722, -0.011884723789989948, -0.027757661417126656, 0.0030581580940634012, -0.000939568504691124, -0.008019670844078064, 0.026886040344834328, 0.00882867444306612, -0.0185046698898077, 0.00609606271609664, -0.00498936977237463, 0.013517309911549091, 0.0043523781932890415, -0.010538807138800621, -0.026520831510424614, -0.04634473845362663, 0.02872118167579174, 0.006381077226251364, -0.03777490556240082, -0.026977038010954857, -0.00677272817119956, -0.021856866776943207, -0.01308568473905325, 0.04989948496222496, 0.012448083609342575, -0.03556406497955322, 0.04779563099145889, 0.009235498495399952, -0.0017676097340881824, 0.022009115666151047, 0.016969779506325722, 0.036386843770742416, -0.05184093117713928, -0.0012807667953893542, -0.025328239426016808, -0.023889407515525818, -0.008376412093639374, -0.03663383051753044, -0.0062973820604383945, -0.021258654072880745, 0.039935044944286346, -0.04633470997214317, 0.034161221235990524, -0.026431849226355553, 0.02203042432665825, -0.01734085939824581, -0.01982313208281994, 0.005819894839078188, 0.0067509254440665245, 0.011482969857752323, -0.015002806670963764, 0.023532500490546227, -0.029149170964956284, 0.03764442354440689, -0.007254284340888262, -0.004359655547887087, 0.07130540907382965, 0.025590410456061363, -0.02343372255563736, 0.0011314471485093236, 0.05904156342148781, 0.04058685898780823, 0.04947014898061752, 0.06369978934526443, 0.005346461199223995, -0.004322027321904898, -0.02030402608215809, -0.00009950067033059895, -0.054072048515081406, 0.0038629367481917143, 0.008164034225046635, -0.024886365979909897, -0.05061943084001541, 0.006198176182806492, 0.030132528394460678, 0.03447049483656883, -0.018582485616207123, 0.0033099493011832237, 0.022937053814530373, 0.006389616522938013, -0.03788333013653755, 0.022881975397467613, 0.027826672419905663, -0.028523283079266548, -0.007701504975557327, -0.0016559564974159002, -0.003894547000527382, -0.00519915297627449, -0.004174969624727964, -0.02589864656329155, 0.005572640337049961, -0.009936920367181301, -0.004304082132875919, 0.009596209973096848, -0.003136698855087161, 0.0209340900182724, 0.013956047594547272, 0.01195322722196579, 0.00642388267442584, -0.02668333798646927, 0.02125117927789688, 0.03885167837142944, 0.016002139076590538, -0.0002492339408490807, -0.027969559654593468, -0.01008528284728527, -0.022196391597390175, 0.01962059549987316, -0.036533430218696594, -0.014871597290039062, -0.038819991052150726, -0.00033127955975942314, 0.006937786936759949, 0.009255326353013515, 0.0016460767947137356, 0.02126157097518444, -0.003473882097750902, 0.01730433478951454, 0.006843194831162691, -0.020395370200276375, -0.03519643470644951, -0.008813982829451561, -0.042512889951467514, 0.01056266762316227, 0.00041490676812827587, -0.05007994547486305, -0.026041988283395767, -0.03706089407205582, -0.020849786698818207, 0.00978939514607191, -0.01173267513513565, -0.03729184344410896, -0.02493450418114662, 0.061872370541095734, -0.038983337581157684, 0.016403283923864365, 0.044666849076747894, -0.026242133229970932, -0.014731713570654392, 0.030971352010965347 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
IT flexibility SafeCoder relies on Docker containers for fine-tuning and deployment. It's easy to run on-premise or in the cloud on any container management service. In addition, SafeCoder includes our Optimum hardware acceleration libraries. Whether you work with CPU, GPU, or AI accelerators, Optimum will kick in automatically to help you save time and money on training and inference. Since you control the underlying hardware, you can also tune the cost-performance ratio of your infrastructure to your needs. Unfortunately, closed-source services are only available as managed services.
[ 0.02648339606821537, -0.005433333572000265, 0.05850027874112129, 0.09581226110458374, 0.019414380192756653, 0.038866229355335236, 0.0007436329615302384, 0.013948465697467327, -0.02889074943959713, -0.06637929379940033, -0.04034766927361488, 0.03439656272530556, -0.004446643404662609, -0.00016544354730285704, 0.01517609041184187, -0.04075600206851959, 0.04963437467813492, -0.0038254729006439447, -0.046067092567682266, 0.07014773041009903, -0.0447169691324234, -0.0583549328148365, 0.0068393549881875515, -0.052537836134433746, -0.06154252588748932, -0.009691783227026463, -0.0486377589404583, 0.03266766294836998, -0.0610194206237793, -0.0242567490786314, 0.03505086526274681, 0.022888628765940666, -0.015477530658245087, -0.09953676164150238, 0.056743916124105453, 0.01250643189996481, -0.09244266897439957, 0.0496261864900589, -0.03630663827061653, -0.03644384816288948, -0.019038192927837372, -0.018820207566022873, -0.07820943742990494, -0.029782673344016075, 0.04725402966141701, 0.019526882097125053, -0.12239132821559906, 0.07798322290182114, -0.02268822304904461, -0.05264171585440636, -0.04376816004514694, 0.07834266871213913, 0.018124006688594818, -0.010674030520021915, 0.056518733501434326, 0.04193646460771561, 0.04515218734741211, -0.05311242863535881, -0.027497993782162666, 0.0010039564222097397, 0.01967412605881691, -0.019134962931275368, -0.03873211890459061, -0.03155266121029854, 0.06471854448318481, -0.03714689612388611, -0.07360710948705673, -0.04216239973902702, 0.04341929033398628, -0.07229975610971451, -0.015271100215613842, 0.021887142211198807, -0.021123312413692474, 0.007764812558889389, 0.00012792747293133289, -0.10508118569850922, -0.06159065291285515, 0.0138036347925663, 0.03645794093608856, -0.030486369505524635, -0.002623647218570113, 0.06443720310926437, 0.03366953134536743, 0.038384053856134415, 0.02328297682106495, 0.00391200790181756, -0.03540583699941635, 0.009172182530164719, -0.029336510226130486, 0.009000656194984913, 0.05463277921080589, -0.061294034123420715, -0.021752292290329933, 0.031067898496985435, -0.01859172433614731, 0.03327976539731026, 0.020027650520205498, 0.03520079329609871, -0.0064830114133656025, 0.008304973132908344, -0.05232341215014458, 0.0009930615779012442, -0.017411548644304276, -0.08489728718996048, 0.00408067274838686, 0.035140905529260635, -0.0015509027289226651, -0.05235912650823593, -0.046718817204236984, 0.025611767545342445, 0.06276851147413254, 0.004383204970508814, -0.013647278770804405, 0.0667445957660675, -0.08208142966032028, 0.013443260453641415, 0.05480421334505081, -0.030543014407157898, 0.007388886064291, -0.03799295052886009, 0.017907019704580307, 0.07331959158182144, -0.045699428766965866, 0.005387633107602596, -0.05461091175675392, -0.007807294372469187, -0.011604920029640198, 0.03768876940011978, 0.02199571579694748, -0.04969416558742523, 0.04083121940493584, 0.015494691208004951, 0.004423556383699179, -0.017364313825964928, -0.0000911839961190708, -0.008922248147428036, -0.07896289229393005, -0.05955785885453224, -0.08348975330591202, -0.0012502401368692517, -0.06290682405233383, -0.021811651065945625, 0.03580482676625252, 0.015064692124724388, 0.029728248715400696, -0.02994062565267086, -0.012334691360592842, 0.041160859167575836, 0.027067091315984726, 0.071415014564991, -0.021364867687225342, 0.0821201279759407, -0.05825445055961609, -0.05670517310500145, 0.0324353389441967, 0.056484974920749664, 0.0262528695166111, -0.00357624888420105, -0.0324774906039238, -0.022379158064723015, -0.06812704354524612, -0.040505778044462204, -0.08571265637874603, -0.04775666072964668, -0.044183723628520966, -0.034725867211818695, 0.001342135015875101, 0.013394745998084545, -0.006379419006407261, -0.029418393969535828, -0.04139844700694084, -0.03991174325346947, 0.08484791964292526, 0.01695409044623375, 0.052082907408475876, -0.003684654366225004, 0.007225917652249336, 0.08712507784366608, 0.021431902423501015, -0.09529171139001846, -0.05159710720181465, 0.06049277260899544, 0.0020626476034522057, 0.09073152393102646, -0.01315968669950962, -0.10930158942937851, 0.041442058980464935, -0.09496884793043137, 0.024397889152169228, -0.025333276018500328, -0.03976784646511078, 0.03871513158082962, 0.02209826186299324, -0.019292611628770828, 0.015295966528356075, -0.047331180423498154, -0.036526113748550415, 0.14516118168830872, 0.0763825923204422, 0.03591538220643997, 0.04489149898290634, 0.025582987815141678, 0.03039046749472618, -0.03788701817393303, -0.07148634642362595, 0.02971198782324791, 0.01878879964351654, -0.05771965906023979, -0.000377772405045107, 0.09519480168819427, 0.02766517922282219, -0.12789897620677948, -0.0394848957657814, -0.02211415022611618, 0.07816994190216064, 0.022317426279187202, -0.082135409116745, -0.004312502220273018, -0.03073078766465187, -0.03544064611196518, 0.1058238297700882, -0.0348007008433342, 0.0049729919992387295, 0.021995406597852707, -0.023253099992871284, 0.014651958830654621, 0.055511657148599625, -0.027185101062059402, 0.08868787437677383, 0.03135719150304794, 0.018126660957932472, -0.04672002047300339, -0.08484958112239838, 0.011847911402583122, 0.04546668753027916, 0.051743283867836, 0.008554165251553059, 0.04663810133934021, 0.05928041413426399, -0.014269774779677391, 0.009350376203656197, -0.0038021905347704887, -0.08868394792079926, -0.03947080299258232, 0.038378894329071045, 0.02344830334186554, 0.05388907343149185, -0.04939425736665726, 0.021040823310613632, -0.07627005130052567, -0.017730185762047768, -0.055753469467163086, -0.03897174820303917, -0.03417222946882248, 0.06637050211429596, -0.028134528547525406, -0.01419048011302948, -0.016401950269937515, -0.012543180957436562, 0.006687011104077101, 0.02709345519542694, -0.0012673886958509684, 0.0036430994514375925, -0.015567426569759846, 0.03665858134627342, -0.028395649045705795, -0.017796315252780914, -0.014993097633123398, -0.007398529909551144, -0.039298947900533676, -0.014257756061851978, -0.012562751770019531, 0.031139222905039787, -0.00472042104229331, 0.034426432102918625, 0.04198957234621048, 0.025788115337491035, -0.03953148424625397, -0.008638598956167698, 0.0020734413992613554, 0.041343361139297485, -0.04176158085465431, 0.060808029025793076, 0.07465039193630219, 0.01487960945814848, 0.00005322278229868971, -0.024564092978835106, 0.00859391875565052, -0.05982312560081482, 0.004533765837550163, -0.004651165101677179, 0.011635002680122852, -0.007686547003686428, 0.033101633191108704, -0.010488152503967285, -0.032717037945985794, -0.009234346449375153, -0.008406088687479496, -0.053150106221437454, -0.010244840756058693, -0.006172091234475374, -0.02140396274626255, 0.0076581197790801525, -0.005938399583101273, -0.011983024887740612, 0.03967412933707237, 0.008766591548919678, -0.012798490934073925, -0.08297277987003326, 0.010285990312695503, -0.06425277143716812, 0.01790025271475315, -0.011735545471310616, 0.0016105324029922485, 0.014332982711493969, -0.00210261857137084, -0.0001445122907171026, 0.04543840140104294, 0.00550108915194869, 0.015245003625750542, 0.029020637273788452, 0.023119254037737846, 0.015236123465001583, -0.04827265068888664, 0.05903014913201332, 0.00839468464255333, -0.014683657325804234, 0.004962222650647163, 0.00024018294061534107, 0.0165414921939373, 0.022569892928004265, 0.023012837395071983, 0.0029401672072708607, -0.0023019209038466215, 0.019623039290308952, 0.0037152436561882496, -0.03948519006371498, -0.021331775933504105, -0.01862441748380661, 0.009709089063107967, 0.009704582393169403, -0.036193329840898514, -0.015049528330564499, 0.030765710398554802, -0.03343323618173599, -0.05008522793650627, 0.012627475894987583, -0.003596790600568056, -0.013594468124210835, 0.0007581792888231575, 0.003162814537063241, -0.05859006568789482, 0.03490016236901283, -0.018025783821940422, 0.030438225716352463, 0.0049202400259673595, 0.03385074436664581, -0.005823221057653427, -0.021573159843683243, -0.012474561110138893, 0.003976881038397551, 0.07330687344074249, 0.0021147262305021286, 0.008482399396598339, -0.02774476818740368, 0.025199266150593758, 0.030641630291938782, 0.028747672215104103, -0.062244266271591187, -0.004873684141784906, 0.03063647449016571, -0.0028867314103990793, -0.014094201847910881, 0.029501521959900856, 0.04178524389863014, -0.04000790789723396, -0.027992861345410347, 0.005909088999032974, -0.0112055204808712, 0.08426215499639511, 0.0437299907207489, 0.01151056308299303, -0.020737415179610252, 0.0016718256520107388, 0.006355510093271732, -0.006267401855438948, 0.041189566254615784, 0.03634338080883026, 0.022794172167778015, -0.006439501885324717, 0.020059699192643166, 0.026488620787858963, 0.019227363169193268, 0.015520431101322174, -0.01453892420977354, 0.030799543485045433, 0.03883367031812668, 0.018073808401823044, -0.0007285638712346554, -0.07345431298017502, 0.026514453813433647, 0.006516132969409227, 0.010728164575994015, 0.033713094890117645, 0.029310978949069977, 0.045407239347696304, 0.014816513285040855, -0.04487494379281998, 0.021440859884023666, -0.021632883697748184, 0.01981440559029579, -0.031118230894207954, -0.03191687539219856, 0.023882368579506874, 0.02840968780219555, -0.0012314415071159601, 0.016505606472492218, 0.0005396627821028233, 0.03173746168613434, -0.026291746646165848, 0.006878973450511694, -0.05273602902889252, 0.03348061442375183, 0.006867521442472935, 0.011705063283443451, -0.009025382809340954, 0.02273486740887165, 0.00847083330154419, 0.011056059040129185, -0.018671637400984764, 0.02491566352546215, 0.022826284170150757, 0.022762300446629524, 0.006725525949150324, 0.04231412336230278, 0.010078215040266514, 0.018382538110017776, -0.007842931896448135, 0.016725238412618637, 0.013212914578616619, 0.03152478486299515, -0.011993019841611385, 0.03048991970717907, -0.07403525710105896, 0.022577179595828056, -0.0023280568420886993, -0.006987455766648054, -0.034906502813100815, -0.00722752558067441, 0.0512600801885128, 0.033773038536310196, -0.03673018142580986, 0.043168265372514725, 0.03012499213218689, -0.019357118755578995, 0.01717057265341282, 0.008341062813997269, 0.045129287987947464, -0.03002321906387806, -0.024098431691527367, 0.035418689250946045, 0.014270562678575516, 0.03980765491724014, -0.03479955717921257, 0.00692993588745594, 0.0017660480225458741, 0.022275984287261963, 0.034583110362291336, 0.05355048179626465, 0.04798571392893791, -0.03949015587568283, -0.052070505917072296, -0.00033834425266832113, 0.02516361139714718, 0.0349622406065464, -0.009129606187343597, -0.0612565353512764, 0.0016861319309100509, -0.021359410136938095, 0.00804472528398037, 0.022726934403181076, 0.010210737586021423, 0.04347581788897514, 0.026590699329972267, 0.0025361033622175455, -0.004791845101863146, -0.007850815542042255, 0.005852492991834879, 0.01479741744697094, 0.021254032850265503, 0.02062584087252617, -0.01483064703643322, 0.0241364985704422, -0.013937617652118206, 0.0818445235490799, 0.015804219990968704, 0.0021349028684198856, 0.01859656721353531, 0.01459540706127882, 0.004015213809907436, 0.03255749121308327, -0.009824837557971478, -0.017660941928625107, -0.017343182116746902, 0.026401251554489136, 0.046733058989048004, 0.007354868110269308, -0.03672923147678375, 0.05991099774837494, 0.055702582001686096, -0.03233985975384712, -0.04075666517019272, -0.010804274119436741, 0.034202829003334045, 0.050562143325805664, -0.022452984005212784, 0.02882707305252552, -0.0036766089033335447, 0.02054254710674286, 0.024324554949998856, -0.027837790548801422, 0.006846688687801361, -0.02816781774163246, -0.04902026802301407, -0.02460440807044506, 0.0178311076015234, 0.03334829956293106, -0.02300679124891758, 0.0005627832724712789, -0.009527302347123623, 0.01011730171740055, -0.018703503534197807, 0.008435668423771858, -0.025289591401815414, 0.04201023280620575, -0.01681569032371044, -0.025521019473671913, -0.016374358907341957, 0.02942124754190445, -0.01070980355143547, -0.00622034864500165, 0.018005577847361565, -0.007316967006772757, -0.0210852213203907, 0.014784300699830055, 0.018085427582263947, -0.023138880729675293, 0.021368535235524178, -0.017845764756202698, -0.08688385039567947, 0.00002286857670696918, 0.001760158222168684, -0.04036276787519455, 0.041785839945077896, 0.032215818762779236, 0.017409751191735268, 0.014105753973126411, -0.013824052177369595, 0.040669187903404236, 0.021413393318653107, 0.03031928278505802, -0.041179854422807693, 0.009644309990108013, -0.008881664834916592, 0.026020649820566177, 0.00007036970055196434, -0.01918712444603443, -0.051382675766944885, -0.012904520146548748, -0.0494845025241375, 0.01123582012951374, 0.08129686862230301, -0.013660059310495853, 0.025272449478507042, 0.0002653395931702107, -0.009491431526839733, 0.027100957930088043, -0.027147041633725166, -0.03998364135622978, 0.031553227454423904, 0.025341281667351723, -0.002633750904351473, -0.022030435502529144, -0.022951381281018257, 0.019147828221321106, 0.05272233113646507, 0.02040201425552368, 0.0077364579774439335, 0.02931254915893078, 0.05461367219686508, 0.021993963047862053, -0.04164682328701019, 0.010531662032008171, -0.013514082878828049, 0.0037133442237973213, 0.03903008624911308, 0.03447215259075165, 0.026630599051713943, 0.016673387959599495, -0.03292287141084671, 0.007345069665461779, 0.009287510998547077, -0.04917202889919281, -0.0019520795904099941, 0.019056323915719986, -0.020960548892617226, 0.04793557897210121, -0.05546625703573227, 0.026518700644373894, 0.03705991804599762, -0.01093711331486702, 0.01911144331097603, 0.05806352198123932, 0.024245675653219223, 0.03316451236605644, 0.03469408303499222, 0.008547722361981869, 0.007676020730286837, -0.03022126853466034, 0.04602120816707611, 0.02101881243288517, 0.04445747286081314, 0.010408484376966953, 0.020059650763869286, 0.006031340919435024, -0.02618207409977913, -0.021431278437376022, 0.040238525718450546, -0.005219696555286646, -0.028490489348769188, -0.05455521494150162, -0.0035542009864002466, -0.03716681897640228, 0.016125289723277092, 0.04149337485432625, -0.0038257562555372715, -0.014409422874450684, 0.04571717232465744, -0.04037017375230789, 0.0028414216358214617, 0.0006767393788322806, 0.013942107558250427, -0.039018914103507996, 0.005722923204302788, 0.0007017123280093074, 0.014638561755418777, -0.04360119253396988, -0.03605768457055092, -0.03294473513960838, -0.0032047752756625414, -0.002221522619947791, 0.060214605182409286, 0.019998416304588318, 0.0015229425625875592, 0.03947308287024498, 0.025930698961019516, -0.012021920643746853, 0.004038593266159296, 0.041680529713630676, 0.0368875227868557, -0.024784667417407036, -0.01577836461365223, -0.017540553584694862, -0.029536688700318336, 0.006192099303007126, -0.02293572574853897, 0.018184497952461243, -0.032877929508686066, 0.0022815323900431395, -0.029563933610916138, 0.01575949788093567, -0.013212764635682106, -0.03899580240249634, 0.004890527576208115, -0.010296291671693325, 0.005598853807896376, -0.01479586772620678, 0.000417217961512506, -0.034667737782001495, -0.017351817339658737, 0.012205084785819054, 0.052523672580718994, -0.004102047998458147, 0.024061886593699455, 0.04568988457322121, 0.025062406435608864, -0.025664571672677994, -0.017459731549024582, 0.047665830701589584, -0.025524962693452835, 0.046040307730436325, 0.03735053539276123, -0.00459463894367218, -0.023621030151844025, -0.0066245561465620995, -0.013830513693392277, -0.004421364050358534, 0.05738256871700287, -0.006232024170458317, -0.0036122240126132965, -0.012266378849744797, -0.02372724376618862, 0.0010027907555922866, 0.022466879338026047, -0.008231145329773426, -0.010120177641510963, 0.0019240743713453412, -0.0014186172047629952, -0.05303128436207771, 0.015914354473352432, 0.02398713119328022, 0.02646484225988388, 0.021313251927495003, -0.020073119550943375, -0.009930438362061977, 0.03726329281926155, -0.01844356767833233, -0.0007719824789091945, 0.05089721083641052, 0.0010641131084412336, -0.02505318634212017, -0.022574806585907936, 0.011929561384022236, 0.025260381400585175, -0.015210983343422413, -0.010897547006607056, 0.012284460477530956, -0.0004789218364749104, -0.0040507991798222065, 0.04044625535607338, 0.017780300229787827, 0.01595180109143257, -0.025007037445902824, 0.002275064354762435, -0.002620675368234515, 0.01755053922533989, -0.020140761509537697, -0.02254072204232216, -0.037466298788785934, -0.02058938518166542, -0.025234131142497063, 0.00444307504221797, -0.005325039383023977, -0.019423259422183037, 0.008855797350406647, -0.02415766380727291, -0.00044355448335409164, -0.07191967219114304, 0.015815624967217445, 0.007728382479399443, -0.03860350698232651, 0.01599876396358013, 0.031085694208741188, -0.06820113211870193, 0.005265348590910435, 0.003805784974247217, -0.00768146850168705, 0.02542637102305889, -0.058051399886608124, -0.049098748713731766, 0.005874380003660917, 0.031036419793963432, -0.015568716451525688, 0.07302164286375046, 0.09579673409461975, -0.03452042117714882, -0.0230155810713768, -0.01933552697300911 ]
SafeCoder vs. Closed-source Code Assistants
julsimon
September 11, 2023
safecoder-vs-closed-source-code-assistants
bigcode
https://huggingface.co/blog/safecoder-vs-closed-source-code-assistants
State-of-the-art models SafeCoder is currently built on top of the StarCoder models, a family of open-source models designed and trained within the BigCode collaborative project. StarCoder is a 15.5 billion parameter model trained for code generation in over 80 programming languages. It uses innovative architectural concepts, like Multi-Query Attention (MQA), to improve throughput and reduce latency, a technique also present in the Falcon and adapted for LLaMa 2 models. StarCoder has an 8192-token context window, helping it take into account more of your code to generate new code. It can also do fill-in-the-middle, i.e., insert within your code, instead of just appending new code at the end. Lastly, like HuggingChat, SafeCoder will introduce new state-of-the-art models over time, giving you a seamless upgrade path. Unfortunately, closed-source code assistant services don't share information about the underlying models, their capabilities, and their training data.
[ 0.0026413281448185444, 0.01479439064860344, 0.030683496966958046, -0.0044404808431863785, 0.012702257372438908, 0.07127642631530762, 0.026358269155025482, 0.046674709767103195, -0.014626668766140938, 0.009240047074854374, -0.09111559391021729, 0.010326766408979893, -0.04857562109827995, 0.04746026173233986, 0.027511494234204292, 0.004379212390631437, 0.012788007967174053, 0.0604608952999115, -0.013117021881043911, -0.009167785756289959, -0.029527923092246056, -0.04511232674121857, -0.02117747813463211, -0.11519919335842133, -0.03816621005535126, 0.030808784067630768, -0.012218993157148361, 0.023676691576838493, -0.009234104305505753, -0.0019442198099568486, -0.0664965808391571, 0.04085465520620346, -0.021809861063957214, -0.07210582494735718, -0.01384049654006958, -0.017145076766610146, -0.06612970679998398, 0.05777040496468544, -0.040870774537324905, -0.0481075644493103, -0.012214113026857376, -0.019459547474980354, -0.042006272822618484, 0.018155328929424286, 0.015010013245046139, -0.0020663600880652666, -0.11174989491701126, 0.06022544950246811, 0.028283651918172836, -0.04920846223831177, -0.03986472636461258, 0.04920046404004097, -0.004674037452787161, 0.03519773110747337, 0.04441545531153679, 0.007023669313639402, 0.0025563924573361874, -0.04248682036995888, -0.0365566611289978, -0.011604002676904202, 0.01226064283400774, -0.07205533236265182, 0.0415632389485836, -0.003292589681223035, 0.057552777230739594, -0.01187900174409151, -0.03236748278141022, -0.028085188940167427, -0.011431297287344933, -0.018513944000005722, 0.033198047429323196, 0.03767399117350578, -0.041430484503507614, -0.028323091566562653, -0.05292893573641777, -0.10287139564752579, -0.04136444628238678, 0.07156816124916077, 0.04092045873403549, -0.06486771255731583, 0.0338217057287693, 0.014772145077586174, 0.04496242105960846, -0.025041133165359497, -0.024307841435074806, 0.06028702110052109, -0.0006654418539255857, -0.09708024561405182, -0.047992855310440063, 0.0019129341235384345, -0.020573420450091362, -0.16560350358486176, -0.036900654435157776, -0.0031169105786830187, 0.03017011471092701, 0.0674780085682869, -0.0330069363117218, 0.012832350097596645, -0.0017357772449031472, -0.0006583456415683031, -0.073635995388031, -0.044120632112026215, -0.0012664832174777985, -0.07637732475996017, -0.022657396271824837, 0.011020156554877758, 0.00037115075974725187, -0.059924229979515076, -0.04040930047631264, -0.0010000267066061497, 0.07145778834819794, -0.035332463681697845, -0.022458471357822418, 0.08557412773370743, -0.12162572145462036, 0.03886693716049194, -0.03305971994996071, -0.04647916927933693, -0.006419365759938955, 0.02381781116127968, -0.022136587649583817, 0.012918442487716675, -0.03422156348824501, -0.050206299871206284, 0.015209375880658627, 0.11001414060592651, 0.005273645278066397, 0.003938304726034403, 0.005203429143875837, -0.02728346362709999, 0.048007845878601074, 0.0073702046647667885, -0.001195066375657916, 0.014147604815661907, 0.05024319514632225, 0.029316658154129982, -0.021356573328375816, -0.005747902672737837, -0.004510718397796154, 0.02989555150270462, -0.004712643101811409, 0.011647720821201801, 0.05826635658740997, -0.06734735518693924, 0.04694211483001709, -0.03549051657319069, -0.11348249018192291, 0.05559076368808746, 0.03100099042057991, 0.023891551420092583, -0.06945878267288208, -0.01779366098344326, -0.024275679141283035, -0.049888353794813156, -0.005884351208806038, 0.01818799413740635, -0.05269793048501015, -0.011477580294013023, 0.0018934851977974176, 0.03750181943178177, 0.05372466519474983, -0.02146007865667343, -0.05651220679283142, 0.007560843136161566, -0.05287396162748337, -0.07139195501804352, -0.012640704400837421, 0.05612983554601669, -0.02323506399989128, 0.038795024156570435, -0.04785642772912979, 0.007651728577911854, 0.05861878767609596, -0.05960826948285103, -0.023982634767889977, -0.014533397741615772, 0.042184989899396896, 0.03178765997290611, 0.017096690833568573, 0.032107189297676086, -0.05687664821743965, 0.002344423206523061, -0.023337991908192635, 0.07062321901321411, 0.030255664139986038, -0.11279517412185669, 0.052318476140499115, -0.061689458787441254, -0.03368605673313141, 0.030623624101281166, -0.047543272376060486, 0.05763832479715347, 0.03687288239598274, 0.027187177911400795, 0.05357317999005318, -0.019392671063542366, 0.0009407078614458442, 0.12109372764825821, 0.11704909056425095, 0.011994963511824608, 0.03387240692973137, 0.008114457130432129, 0.010174122639000416, -0.0045225415378808975, -0.042446643114089966, -0.0003747766313608736, 0.011005214415490627, 0.03171549364924431, 0.008949494920670986, 0.02398635819554329, 0.025730691850185394, -0.09832470864057541, -0.02815275266766548, -0.03270620480179787, 0.048610955476760864, 0.03052924945950508, -0.0541439950466156, -0.016363192349672318, 0.024085791781544685, 0.022609300911426544, 0.21378199756145477, -0.10769642144441605, -0.07185119390487671, -0.05330372974276543, -0.015267403796315193, 0.08342757821083069, 0.060179319232702255, -0.0029654691461473703, 0.057106003165245056, -0.027273662388324738, -0.023942487314343452, -0.06335052102804184, -0.02149254083633423, -0.0027715908363461494, 0.06312109529972076, -0.01056267973035574, 0.016543960198760033, 0.024070845916867256, 0.029546072706580162, -0.04601256549358368, -0.022450746968388557, 0.01800016313791275, 0.003051061648875475, -0.02565653994679451, -0.0009048029314726591, -0.041356902569532394, 0.0588885135948658, 0.00560182798653841, 0.03990090638399124, 0.024903010576963425, -0.07154808938503265, 0.04280143231153488, -0.01174626499414444, 0.03402596712112427, 0.043139632791280746, -0.008044552057981491, -0.016009559854865074, -0.030583396553993225, -0.0017115467926487327, -0.0030583536718040705, 0.04000087454915047, 0.0010848571546375751, -0.019295675680041313, -0.004380842205137014, -0.008980464190244675, -0.0306695643812418, -0.037236619740724564, 0.023685675114393234, -0.01967824436724186, -0.03290635347366333, 0.015858108177781105, -0.013515247032046318, 0.031955987215042114, -0.006751422770321369, 0.020585089921951294, 0.022225666791200638, 0.015479953028261662, -0.035345789045095444, -0.019339067861437798, -0.02589370682835579, 0.018100006505846977, -0.03297494724392891, 0.0475202351808548, 0.03671041876077652, 0.05284080654382706, 0.03814171627163887, 0.0025759218260645866, 0.00030448695179075, -0.027545809745788574, 0.02184460125863552, 0.04135843738913536, 0.04061417281627655, -0.04883691295981407, -0.000690027023665607, -0.05533171072602272, -0.021705055609345436, -0.0006048111245036125, 0.0011472179321572185, -0.04011641442775726, -0.0068958052434027195, -0.012286929413676262, 0.02478243224322796, -0.005529284942895174, -0.02097771130502224, 0.020850319415330887, 0.02909485064446926, -0.007170714903622866, 0.0059486934915184975, -0.0821688324213028, -0.034312501549720764, -0.04046100005507469, -0.012812938541173935, -0.015180334448814392, 0.0070579941384494305, 0.05367102473974228, -0.011556465178728104, 0.020563097670674324, 0.04112169146537781, -0.01066295150667429, 0.016468673944473267, 0.022425152361392975, 0.010472569614648819, -0.021488431841135025, 0.0007899897755123675, -0.0736505463719368, 0.01602134481072426, 0.020086906850337982, 0.03158226236701012, -0.004713427275419235, 0.016727551817893982, -0.027051568031311035, -0.03558970242738724, -0.0035470924340188503, -0.03358208015561104, 0.03196842595934868, -0.022121267393231392, 0.0038646964821964502, -0.02943398803472519, -0.010033215396106243, 0.008163985796272755, -0.01103142462670803, -0.01508807111531496, -0.03318413719534874, 0.014971930533647537, 0.012583313509821892, -0.012124448083341122, 0.023514555767178535, -0.0076772174797952175, 0.007363488897681236, -0.020864127203822136, -0.010638643987476826, -0.05217411369085312, -0.0010770070366561413, -0.0164383202791214, -0.014418985694646835, -0.01167042925953865, 0.00636730482801795, -0.031347207725048065, -0.001543932594358921, -0.014229795895516872, 0.017988545820116997, 0.03442538157105446, -0.014918340370059013, -0.026923704892396927, 0.0027715624310076237, 0.0004310749063733965, -0.0016140959924086928, 0.014897268265485764, -0.025622041895985603, 0.05264207348227501, -0.031016383320093155, -0.039796434342861176, -0.004864401184022427, 0.061571262776851654, 0.04612022265791893, -0.06619709730148315, -0.060398053377866745, 0.0576079897582531, -0.0315341018140316, 0.035612378269433975, -0.004174452740699053, -0.0023798777256160975, -0.016498016193509102, 0.022703463211655617, -0.007739363703876734, -0.04500984027981758, 0.025749925523996353, 0.04086336866021156, -0.0018265449907630682, -0.07568498700857162, 0.01015152595937252, 0.007044897880405188, 0.02558692917227745, -0.00859730876982212, 0.039517831057310104, 0.00639359001070261, 0.023791233077645302, 0.04711117967963219, -0.0031907877419143915, -0.009892672300338745, 0.020662395283579826, 0.030159082263708115, 0.028935503214597702, 0.03052079863846302, -0.016473950818181038, -0.00034140778006985784, -0.010855951346457005, -0.005563794169574976, 0.04202140122652054, -0.0461050420999527, -0.018928995355963707, -0.02994210086762905, -0.030853908509016037, 0.04683329537510872, -0.004573870915919542, -0.03552059084177017, 0.036630697548389435, 0.017423663288354874, -0.013668430969119072, -0.050333552062511444, -0.006784006953239441, 0.019058939069509506, 0.04142310470342636, -0.010514470748603344, -0.011207452975213528, -0.004636618308722973, -0.02364831231534481, -0.0028733054641634226, 0.004448338877409697, -0.00032385223312303424, 0.028042541816830635, 0.040888480842113495, -0.0057340036146342754, -0.01219946052879095, 0.04898129776120186, -0.009816527366638184, 0.007824829779565334, -0.022393042221665382, 0.0033195968717336655, -0.005279969424009323, 0.003389818361029029, 0.02007964812219143, 0.0013936293544247746, -0.00518987188115716, -0.022513113915920258, 0.005773359443992376, 0.014902753755450249, -0.06908876448869705, -0.021266112104058266, 0.04189981147646904, -0.004603069741278887, 0.013493808917701244, 0.03893008455634117, -0.03103448450565338, -0.00894910842180252, -0.03131767734885216, 0.01370660588145256, 0.03144864737987518, 0.0070390524342656136, -0.03454655781388283, -0.01356013584882021, -0.011812154203653336, 0.054000671952962875, -0.0502018928527832, 0.023435162380337715, 0.008632777258753777, 0.014674702659249306, 0.04516316577792168, 0.06437418609857559, -0.027022818103432655, -0.07247042655944824, -0.027769925072789192, 0.01912226527929306, -0.023396814242005348, 0.028383761644363403, 0.003586714155972004, -0.017554139718413353, -0.019208339974284172, -0.007574457675218582, 0.0016686361050233245, 0.040118005126714706, 0.018200073391199112, -0.024728281423449516, 0.025546664372086525, 0.05751470848917961, 0.03178981691598892, -0.0365542434155941, 0.004770240280777216, -0.049146126955747604, 0.02589184045791626, 0.055094413459300995, 0.021850505843758583, 0.00967212114483118, 0.004596575628966093, 0.07179224491119385, 0.034318000078201294, 0.026414234191179276, -0.005905307363718748, -0.007837324403226376, 0.02800113521516323, -0.01315379235893488, 0.023190224543213844, -0.024028338491916656, -0.026530196890234947, -0.025993669405579567, 0.011095810681581497, 0.00015154381981119514, 0.026317739859223366, -0.0021102214232087135, 0.01044981088489294, -0.04824516177177429, 0.008811856620013714, 0.04030821844935417, -0.015895649790763855, 0.0017367568798363209, -0.02852485701441765, 0.04343687370419502, 0.029230767861008644, -0.0020802938379347324, -0.007108952850103378, -0.018902840092778206, 0.008409908972680569, 0.0045630838721990585, -0.04525895044207573, -0.00036894853110425174, 0.005562799517065287, 0.0025096803437918425, -0.014151154085993767, -0.028587089851498604, -0.03386256843805313, -0.008923700079321861, -0.02741916850209236, 0.017825040966272354, -0.028806664049625397, 0.014376474544405937, 0.0029859377536922693, -0.015498998574912548, -0.005863240920007229, 0.06364364176988602, 0.018183492124080658, 0.00045801434316672385, -0.005928180646151304, -0.008420620113611221, -0.0014384770765900612, -0.02962697297334671, -0.013455779291689396, -0.010071340948343277, 0.006784361787140369, -0.017528710886836052, -0.006204612553119659, -0.009278438985347748, 0.01780763268470764, -0.05140640586614609, 0.041377510875463486, 0.020283488556742668, -0.0011244525667279959, 0.015805227681994438, -0.0035475168842822313, 0.05550482124090195, 0.02027921937406063, -0.006779092364013195, 0.01682976633310318, 0.008344066329300404, 0.04870770499110222, 0.043892454355955124, -0.003957548178732395, -0.013453485444188118, -0.0377182736992836, -0.0032872529700398445, -0.06171068549156189, 0.016102157533168793, 0.059914469718933105, -0.00869445689022541, -0.01508729811757803, 0.053019165992736816, -0.013696586713194847, 0.06224102899432182, -0.01934073492884636, 0.07995639741420746, 0.04061108082532883, -0.008125420659780502, 0.0018426089081913233, -0.020650675520300865, -0.05326544865965843, 0.051071491092443466, 0.09045183658599854, 0.017107969149947166, 0.053258638828992844, 0.03721277415752411, 0.05731021985411644, 0.07076840102672577, -0.0010582533432170749, 0.06375788897275925, 0.000567937851883471, 0.014941394329071045, 0.0381714291870594, 0.013226106762886047, 0.025953976437449455, -0.017542194575071335, -0.008037647232413292, -0.03247229382395744, 0.04075448215007782, -0.04403470456600189, -0.03193602338433266, 0.036653995513916016, -0.014228166081011295, 0.04659290611743927, -0.0602639764547348, 0.05839558690786362, 0.02272886596620083, 0.012638533487915993, 0.024127645418047905, 0.06843159347772598, 0.01601899228990078, 0.02253793179988861, 0.023366281762719154, 0.024342160671949387, 0.045044705271720886, -0.014047065749764442, 0.02001968026161194, 0.037795424461364746, 0.009297079406678677, 0.028696544468402863, -0.004287669900804758, 0.015761112794280052, -0.025308847427368164, -0.008888617157936096, -0.007988707162439823, -0.03438130393624306, 0.005419653840363026, -0.0016726888716220856, 0.02220945805311203, -0.019333146512508392, 0.0015633880393579602, 0.009441658854484558, -0.017280559986829758, -0.026734834536910057, -0.0005343164666555822, -0.04541151225566864, 0.03501955047249794, 0.0023188695777207613, 0.01594817079603672, -0.020889880135655403, -0.029422692954540253, -0.011465700343251228, 0.049756962805986404, -0.040818650275468826, -0.015878234058618546, 0.005485645495355129, 0.01966111920773983, -0.012730445712804794, 0.048194341361522675, 0.022336812689900398, 0.02102980762720108, 0.034205831587314606, -0.0029540490359067917, -0.03219875693321228, 0.008448333479464054, 0.01358338724821806, 0.045828137546777725, -0.06593827903270721, -0.026470784097909927, -0.01844143122434616, -0.03043305315077305, -0.016918759793043137, -0.004416082054376602, -0.03456136956810951, -0.005684720352292061, 0.025070911273360252, 0.05053958669304848, 0.06975848227739334, -0.012754679657518864, -0.007953016087412834, -0.03612768277525902, -0.03838418796658516, 0.010351705364882946, 0.019908593967556953, -0.009468592703342438, 0.011764610186219215, -0.014882653951644897, 0.003015352413058281, 0.04259083420038223, -0.057499222457408905, 0.018744172528386116, 0.05953755974769592, 0.05653124675154686, -0.01932450197637081, 0.03232347220182419, 0.04222320020198822, 0.027947155758738518, 0.03177918493747711, 0.05658495053648949, -0.003285390557721257, 0.005423043854534626, -0.017455704510211945, -0.025650104507803917, -0.006604204420000315, 0.0038107631262391806, -0.02164350636303425, -0.004797613713890314, -0.0290529727935791, 0.02723211608827114, 0.03367791697382927, 0.016846004873514175, 0.0073142885230481625, -0.018574705347418785, -0.00103005429264158, 0.008007721975445747, -0.013842814601957798, 0.03534394130110741, 0.027382664382457733, -0.045797403901815414, 0.028826871886849403, -0.017416607588529587, 0.0013307657791301608, 0.037905313074588776, -0.028534870594739914, 0.007341240532696247, 0.046530917286872864, -0.012611262500286102, -0.023303555324673653, 0.010332096368074417, -0.0279692430049181, 0.040069516748189926, -0.028946133330464363, -0.00521549629047513, 0.03868532553315163, -0.030419643968343735, -0.00020837955526076257, 0.01292579248547554, 0.010761701501905918, -0.0020201927982270718, -0.009036561474204063, -0.0030777868814766407, -0.007224186323583126, 0.01062876544892788, -0.016309984028339386, -0.014630359597504139, -0.006159465294331312, 0.017828527837991714, 0.002836510306224227, 0.03869713470339775, 0.00142343295738101, 0.003112754551693797, 0.013162360526621342, 0.010700801387429237, 0.02534398064017296, -0.012707781046628952, -0.029793355613946915, 0.022443115711212158, 0.012072693556547165, 0.034389838576316833, 0.002490175887942314, 0.0046654799953103065, 0.00981492456048727, 0.005916623864322901, -0.025006748735904694, 0.002188896993175149, -0.033219944685697556, -0.04509655013680458, -0.01857657916843891, 0.029915722087025642, -0.018371332436800003, 0.04622761905193329, 0.0682213082909584, -0.006470033898949623, -0.0195864699780941, -0.016853604465723038 ]
Overview of natively supported quantization schemes in 🤗 Transformers
ybelkada
September 12, 2023
overview-quantization-transformers
llm, optimization, quantization, comparison, bitsandbytes, gptq
https://huggingface.co/blog/overview-quantization-transformers
use_cache Let's test use_cache to better understand the impact of caching the hidden state during the generation. The benchmark was run on an A100 with a prompt length of 30 and we generated exactly 30 tokens. The model we used was meta-llama/Llama-2-7b-hf. with use_cache=True with use_cache=False From the two benchmarks, we conclude that generation is faster when we use attention caching, as expected. Moreover, GPTQ is, in general, faster than bitsandbytes. For example, with batch_size=4 and use_cache=True, it is twice as fast! Therefore let’s use use_cache for the next benchmarks. Note that use_cache will consume more memory.
[ -0.0011432933388277888, 0.03571806102991104, -0.005266985855996609, -0.016892723739147186, -0.04388272017240524, -0.03893439844250679, -0.004323159344494343, 0.04251181334257126, -0.03984135389328003, -0.04255228862166405, -0.02438747137784958, -0.009973847307264805, -0.029645415022969246, 0.02957654371857643, -0.010257033631205559, -0.03084707446396351, 0.07807061821222305, -0.013173921965062618, 0.0032920658122748137, -0.006261209025979042, 0.030109597370028496, -0.0033873477950692177, 0.08426496386528015, -0.07861903309822083, 0.03767259046435356, 0.012611367739737034, 0.04632839187979698, -0.0826440304517746, -0.0007805447094142437, -0.037810977548360825, -0.11967030167579651, 0.018100298941135406, 0.0436696857213974, 0.025789838284254074, -0.017775872722268105, -0.06311546266078949, -0.11343778669834137, 0.03381216526031494, 0.04127338528633118, -0.053753387182950974, -0.011654794216156006, -0.0470479279756546, -0.06265826523303986, 0.03650324046611786, -0.033808980137109756, 0.042246147990226746, -0.10989976674318314, 0.004612932447344065, -0.08302655071020126, -0.07772191613912582, -0.12232401967048645, 0.06642956286668777, -0.01062736101448536, -0.04060988500714302, 0.014609591104090214, 0.07148652523756027, -0.04737178608775139, -0.0436391718685627, -0.05569310858845711, -0.02590799331665039, 0.06970854848623276, -0.023766422644257545, 0.07584340125322342, 0.06992286443710327, 0.049088530242443085, -0.018938250839710236, -0.05169662460684776, -0.011996667832136154, -0.09597697854042053, 0.0006750322063453496, 0.02584189362823963, 0.0037599431816488504, -0.019623888656497, -0.009475776925683022, -0.04572996497154236, 0.04250920191407204, 0.00609733397141099, 0.05718382075428963, 0.04820098355412483, 0.044553693383932114, -0.0061806365847587585, 0.00789768248796463, 0.0312395878136158, -0.054295144975185394, 0.0427531935274601, 0.034196171909570694, 0.007910511456429958, -0.07069040834903717, -0.11886927485466003, -0.03756413236260414, -0.09250840544700623, -0.10631238669157028, 0.03734083101153374, -0.009457222186028957, -0.04655804485082626, 0.038492102175951004, 0.020760178565979004, 0.02535548061132431, 0.0014993688091635704, -0.0052634854800999165, -0.057413388043642044, -0.12585660815238953, 0.024111269041895866, -0.057107113301754, -0.01805793307721615, 0.012445391155779362, -0.0622306764125824, -0.09566685557365417, 0.017026564106345177, 0.03106529265642166, 0.01683993823826313, 0.02476159855723381, -0.023058822378516197, 0.046099357306957245, -0.027975313365459442, 0.01058568898588419, -0.058657560497522354, 0.006673451047390699, 0.040828052908182144, 0.02936701290309429, -0.005343354772776365, 0.07195053994655609, 0.07753409445285797, -0.06764274090528488, 0.002954775234684348, -0.010150669142603874, 0.03411493077874184, -0.002203356008976698, -0.0013066361425444484, 0.023768987506628036, 0.010115989483892918, -0.015085609629750252, 0.0051129902713000774, -0.011481364257633686, 0.004889421630650759, -0.013109817169606686, -0.032630905508995056, -0.05124774947762489, -0.05441993474960327, 0.015484481118619442, -0.061548862606287, -0.019664069637656212, 0.027898933738470078, -0.025552257895469666, 0.01901232823729515, 0.009853191673755646, -0.03402304649353027, -0.04135523736476898, 0.03828522935509682, -0.02098473347723484, -0.06755879521369934, 0.021788377314805984, -0.01809478923678398, -0.05672779679298401, -0.008245068602263927, 0.067085400223732, -0.047762226313352585, -0.00577513687312603, -0.045976925641298294, -0.044035471975803375, -0.005903130862861872, -0.008114071562886238, 0.027908168733119965, -0.019685445353388786, 0.07027329504489899, 0.04364681616425514, -0.02292652614414692, 0.004652425181120634, 0.011510699987411499, 0.03606904670596123, -0.029279114678502083, 0.028863517567515373, 0.07419583946466446, -0.03293360769748688, 0.057053856551647186, 0.06839952617883682, -0.039579056203365326, 0.06563382595777512, 0.00750423688441515, -0.037811536341905594, 0.009716875851154327, -0.014833888038992882, -0.020245328545570374, 0.05675487220287323, -0.011331922374665737, -0.11518623679876328, 0.03933778405189514, -0.004701790865510702, -0.002273544203490019, 0.006128496024757624, -0.008650328032672405, -0.01926203817129135, 0.05043260380625725, -0.021492306143045425, -0.012404516339302063, 0.00352489179931581, 0.009872306138277054, 0.10797558724880219, 0.10936447232961655, 0.01683984510600567, -0.0343472920358181, 0.04495507851243019, 0.03965725749731064, -0.05505341663956642, -0.03431396931409836, -0.015070189721882343, -0.029012488201260567, -0.0010752781527116895, 0.03218116983771324, 0.023909922689199448, 0.01012332271784544, -0.08247171342372894, 0.01986505463719368, -0.035740926861763, -0.0006412348593585193, 0.011741972528398037, 0.06839868426322937, -0.014773820526897907, 0.053099941462278366, -0.0029662337619811296, 0.10248564183712006, 0.033117424696683884, 0.033317144960165024, -0.05032772198319435, -0.024891188368201256, 0.03109101392328739, -0.008698571473360062, -0.012478956021368504, 0.03772302344441414, -0.09207319468259811, -0.04769192636013031, -0.11934688687324524, -0.02388441376388073, 0.09049961715936661, -0.0030009259935468435, -0.039423223584890366, -0.009159776382148266, 0.01588541455566883, -0.009357938542962074, -0.025978567078709602, -0.06263673305511475, -0.011253047734498978, -0.014638916589319706, 0.028808053582906723, -0.02005700208246708, -0.028338763862848282, -0.04002625495195389, -0.06314464658498764, -0.10799994319677353, -0.059704236686229706, -0.07952520996332169, -0.04651915282011032, 0.004522036761045456, -0.030438754707574844, 0.04680049419403076, 0.012820469215512276, -0.046512942761182785, -0.04863470047712326, -0.021412810310721397, 0.005601109936833382, -0.016064217314124107, 0.0324661023914814, -0.023822112008929253, 0.030431345105171204, 0.031968869268894196, -0.01187666691839695, -0.020382054150104523, -0.013021169230341911, 0.032598789781332016, 0.004924057051539421, -0.030038461089134216, -0.008366595022380352, 0.02623647265136242, 0.04567233473062515, 0.005600562319159508, 0.01198238879442215, 0.009031453169882298, -0.02743062749505043, -0.02657279744744301, 0.0022978985216468573, -0.009797340258955956, -0.026124073192477226, -0.010117405094206333, 0.00018387651653029025, -0.047204211354255676, 0.025591861456632614, 0.021332714706659317, -0.03425545617938042, -0.03765454143285751, 0.009186518378555775, 0.03156300261616707, -0.00166904809884727, 0.029887482523918152, 0.006465826649218798, 0.004174881614744663, 0.020226797088980675, -0.0014221967430785298, 0.006736230570822954, 0.035517673939466476, 0.01778494007885456, -0.03276347741484642, 0.011677912436425686, -0.00558016262948513, -0.020066536962985992, 0.018412217497825623, 0.04448174685239792, -0.014382687397301197, 0.008092857897281647, -0.08509673178195953, -0.004572870675474405, 0.0034836451523005962, -0.011571980081498623, -0.016457540914416313, -0.017131103202700615, 0.035274479538202286, -0.004974280018359423, 0.017415238544344902, 0.05111182481050491, 0.010555736720561981, 0.018266895785927773, -0.029012305662035942, 0.013760197907686234, -0.03478008508682251, 0.016131548210978508, 0.012348187156021595, 0.007041369564831257, 0.019096802920103073, 0.002250650431960821, 0.009571244940161705, -0.015425420366227627, -0.007214303594082594, -0.018567796796560287, -0.008026115596294403, -0.008109251037240028, 0.0038063505198806524, 0.0057259202003479, 0.047692518681287766, -0.009858587756752968, 0.007972155697643757, -0.053434763103723526, 0.04525580629706383, 0.043355803936719894, -0.037443432956933975, 0.018196260556578636, 0.005554666742682457, 0.01081122923642397, 0.011301489546895027, 0.004534546751528978, 0.011723218485713005, -0.02878720313310623, 0.030003424733877182, 0.00881153903901577, 0.022221921011805534, -0.010853408835828304, -0.01323123462498188, 0.015841301530599594, 0.03415408730506897, -0.052080683410167694, -0.039769962430000305, -0.012200448662042618, -0.009756481274962425, 0.034928854554891586, 0.01908992789685726, 0.01933101750910282, -0.0008497809758409858, 0.014672867953777313, 0.03585584834218025, -0.027829233556985855, -0.05002762749791145, 0.00363444397225976, 0.059477318078279495, -0.011412110179662704, -0.020187821239233017, 0.0009654879104346037, 0.014232607558369637, -0.03915230929851532, -0.03440650552511215, 0.016037654131650925, 0.017693638801574707, -0.031260017305612564, 0.008884281851351261, 0.0049804807640612125, -0.04162117838859558, 0.042445842176675797, -0.028907231986522675, 0.01752692274749279, 0.05813894793391228, 0.016649017110466957, -0.011721222661435604, -0.0239120963960886, -0.031936902552843094, 0.029782701283693314, 0.008285573683679104, -0.019924139603972435, -0.002094910480082035, 0.0026357341557741165, -0.0010088103590533137, 0.008735672570765018, 0.025427062064409256, -0.03137851133942604, 0.0011254270793870091, -0.015277056023478508, -0.020962895825505257, -0.029535571113228798, 0.08061280846595764, 0.017117245122790337, 0.0173688605427742, 0.0299440436065197, 0.0002995150862261653, -0.006880437023937702, 0.0222779493778944, -0.038788050413131714, -0.0002553159720264375, 0.04233885928988457, -0.04927733540534973, 0.010806492529809475, -0.002097736345604062, 0.01901877485215664, 0.0289034191519022, -0.002971033798530698, 0.004625547211617231, -0.009596222080290318, 0.02375626750290394, 0.06974242627620697, 0.020535534247756004, -0.011092432774603367, -0.028491685166954994, -0.019165216013789177, -0.02351800538599491, 0.022960513830184937, 0.005361973773688078, 0.010861292481422424, 0.021129267290234566, 0.010914468206465244, 0.006483691744506359, -0.06329072266817093, 0.009379519149661064, 0.003398120403289795, -0.0011803355300799012, -0.02118256688117981, 0.016592955216765404, -0.016499344259500504, 0.0420149527490139, 0.04488034546375275, -0.06639668345451355, 0.0028357270639389753, -0.02359062246978283, -0.0685204342007637, 0.012201685458421707, 0.012995971366763115, 0.03326817974448204, -0.0327482596039772, -0.006639192812144756, 0.040499430149793625, -0.01868780143558979, 0.02838948369026184, 0.005486347246915102, 0.008517554961144924, 0.031330354511737823, -0.010775425471365452, -0.0492686927318573, -0.02255687490105629, 0.038348715752363205, -0.008847667835652828, 0.007891005836427212, -0.029490403831005096, 0.04749539867043495, 0.012644200585782528, 0.017915375530719757, 0.008615714497864246, 0.024677226319909096, -0.007799939718097448, 0.01762406714260578, 0.02315899170935154, 0.010002107359468937, -0.03963781148195267, 0.03112405724823475, -0.0220190342515707, -0.003679177025333047, 0.0027367572765797377, -0.014985165558755398, 0.056556105613708496, 0.03180693835020065, 0.007741403300315142, 0.054198965430259705, -0.021615024656057358, 0.03254910930991173, 0.015667852014303207, -0.021485591307282448, 0.034478992223739624, 0.02178737334907055, 0.0013269241899251938, 0.039883822202682495, 0.016391854733228683, 0.020031623542308807, 0.1078316867351532, 0.00990634597837925, 0.006675290875136852, 0.0352974534034729, -0.004683957900851965, 0.06530258804559708, -0.0007134815095923841, -0.0015381723642349243, -0.013222195208072662, 0.016153855249285698, 0.015644339844584465, -0.025493791326880455, 0.011226748116314411, 0.05184256285429001, 0.015090106055140495, -0.03198341652750969, 0.0007016017334535718, 0.015529739670455456, 0.01773439347743988, 0.018319547176361084, -0.0028456440195441246, 0.02507386915385723, -0.043933674693107605, -0.01597774773836136, 0.00527340779080987, -0.07473564893007278, -0.01784461736679077, 0.017695903778076172, 0.0007585076382383704, -0.01639523357152939, 0.054597157984972, 0.01885245554149151, 0.053057245910167694, -0.04276290908455849, 0.0021470554638653994, -0.025379130616784096, -0.02491530030965805, 0.004975419025868177, -0.024853570386767387, -0.02837042137980461, 0.04610101133584976, 0.03672059252858162, 0.04940902814269066, -0.00037645260454155505, -0.01444723829627037, 0.025949569419026375, 0.04404711350798607, 0.036663781851530075, 0.008740900084376335, -0.004320107400417328, 0.02341717667877674, 0.04669249430298805, 0.003798580262809992, -0.03811004012823105, -0.018473805859684944, 0.003664629999548197, -0.018701348453760147, -0.04530752822756767, 0.014049534685909748, 0.020638154819607735, -0.005518002435564995, -0.04610680416226387, -0.006827280391007662, 0.034531690180301666, -0.04372486099600792, -0.0025628767907619476, 0.07045936584472656, 0.02492852695286274, -0.01834716834127903, 0.01303144358098507, -0.0546545572578907, 0.0047358921729028225, 0.03799217939376831, 0.00835579913109541, -0.007463853806257248, 0.03300292789936066, 0.01896236464381218, -0.03200213983654976, 0.051229964941740036, 0.022375356405973434, -0.016977477818727493, 0.039861880242824554, 0.0561358742415905, 0.01276304665952921, -0.01838194951415062, -0.009335613809525967, 0.04617662727832794, -0.030299127101898193, 0.020862624049186707, -0.016253111883997917, 0.0720212459564209, 0.02381124161183834, 0.06343428790569305, 0.02820972166955471, 0.06399140506982803, 0.04084267094731331, 0.0021708838175982237, -0.0025479255709797144, 0.00010443881910759956, 0.019636627286672592, 0.018173865973949432, 0.010507172904908657, 0.017368728294968605, 0.003752829972654581, -0.020422378554940224, -0.03492400050163269, -0.013908691704273224, -0.0036355771590024233, -0.003085517091676593, 0.026921898126602173, 0.010043468326330185, 0.04569079354405403, -0.024067245423793793, 0.05084260180592537, 0.018361082300543785, 0.044397369027137756, 0.03382854163646698, 0.012145229615271091, -0.048937465995550156, 0.029824992641806602, 0.023392267525196075, 0.02221629023551941, -0.02292420156300068, -0.010363003239035606, 0.01113918237388134, 0.0740397498011589, 0.014806128107011318, 0.0023959586396813393, -0.05185338109731674, 0.005235617980360985, 0.0017744284123182297, -0.0024616827722638845, 0.0034827515482902527, 0.031870681792497635, 0.017695419490337372, -0.007359108421951532, 0.029412439092993736, 0.029587406665086746, 0.020730646327137947, 0.007994387298822403, -0.0426565557718277, -0.020027562975883484, -0.015802860260009766, 0.004213759675621986, 0.02457394264638424, -0.006684912368655205, -0.04805389419198036, 0.03013426810503006, 0.012587896548211575, 0.010860548354685307, 0.019619476050138474, -0.04281376674771309, -0.011457156389951706, 0.017605887725949287, 0.002370737958699465, -0.041660893708467484, -0.0014180325670167804, 0.019662432372570038, 0.03861232474446297, 0.03025348298251629, 0.03047417663037777, -0.03233301639556885, -0.00031276806839741766, -0.003662741044536233, 0.09496966004371643, -0.049262579530477524, 0.003857665928080678, 0.004179462790489197, -0.03718511015176773, 0.017757229506969452, 0.019685177132487297, -0.05095317214727402, 0.019594280049204826, 0.08408261090517044, 0.05555536597967148, -0.0098460353910923, 0.006961856037378311, -0.002328508300706744, 0.0024253728333860636, -0.04465577006340027, -0.03255071863532066, 0.07158087193965912, 0.030701860785484314, 0.006136350333690643, -0.005667001474648714, 0.00293176993727684, -0.016379881650209427, 0.014335467480123043, 0.03698020428419113, 0.04596990719437599, 0.013542620465159416, 0.003499726764857769, -0.0011323263170197606, 0.08339432626962662, 0.0007594532216899097, 0.002139620715752244, 0.03573939576745033, -0.013449762016534805, 0.014936678111553192, -0.01331684086471796, 0.04368699714541435, -0.06769832223653793, 0.007216625846922398, 0.0008911623153835535, -0.03076023980975151, -0.0005417221691459417, -0.0016198706580325961, 0.001742792665027082, 0.04187334328889847, -0.036735210567712784, -0.010914698243141174, -0.028170270845294, 0.008967988193035126, 0.02584676258265972, -0.028734799474477768, 0.053140874952077866, 0.009663503617048264, 0.07604840397834778, 0.026296311989426613, -0.040166713297367096, -0.0020483294501900673, -0.016534334048628807, 0.00907022226601839, 0.021150775253772736, 0.019007645547389984, -0.006732438690960407, -0.03705785423517227, -0.025930417701601982, -0.04158630594611168, 0.007019014097750187, 0.025948846712708473, 0.004744893871247768, 0.0010992730967700481, 0.009214508347213268, -0.011515315622091293, 0.021035896614193916, 0.04419773072004318, 0.03445104509592056, 0.011354321613907814, -0.021036602556705475, 0.004822132643312216, 0.020566783845424652, -0.04689355939626694, -0.03076680563390255, 0.010999876074492931, 0.016483701765537262, 0.030312206596136093, 0.022945968434214592, 0.028397977352142334, -0.007411840837448835, -0.01714518293738365, 0.036675695329904556, 0.0264072697609663, -0.03781113028526306, -0.05095628276467323, -0.001989726908504963, 0.02688019722700119, -0.06302344799041748, -0.02729726769030094, 0.012850440107285976, -0.030977213755249977, -0.010390943847596645, 0.012614965438842773, -0.0057710204273462296, -0.00036629196256399155, 0.03468449413776398, 0.0462183840572834, 0.016451554372906685, 0.04221533238887787, 0.025597479194402695, 0.011366157792508602, -0.05177399888634682, 0.022094279527664185 ]
Overview of natively supported quantization schemes in 🤗 Transformers
ybelkada
September 12, 2023
overview-quantization-transformers
llm, optimization, quantization, comparison, bitsandbytes, gptq
https://huggingface.co/blog/overview-quantization-transformers
Generation length In the following benchmark, we will try different generation lengths to see their impact on the quantized model. It was run on a A100 and we used a prompt length of 30, and varied the number of generated tokens. The model we used was meta-llama/Llama-2-7b-hf. with 30 tokens generated: with 512 tokens generated: From the benchmark above, we can conclude that GPTQ is faster than bitsandbytes independently of the generation length.
[ 0.00964709185063839, -0.009494641795754433, 0.013020365498960018, -0.003229875350371003, -0.0042977603152394295, -0.026541443541646004, -0.025389406830072403, -0.003207820700481534, 0.011986811645328999, -0.0263048205524683, -0.027873340994119644, -0.033260852098464966, 0.007188890129327774, -0.005336690694093704, -0.02129528671503067, -0.022010620683431625, 0.05549301207065582, -0.016158409416675568, 0.01377728208899498, -0.05671001598238945, 0.033300768584012985, 0.004567826632410288, 0.07112906873226166, -0.016681354492902756, 0.0005449273157864809, -0.006053128745406866, 0.0056039090268313885, -0.0675034299492836, 0.045269742608070374, -0.029670603573322296, -0.12672509253025055, -0.030550042167305946, 0.029261503368616104, 0.018459852784872055, 0.03885863348841667, -0.0666269063949585, -0.12324555963277817, 0.07920185476541519, 0.07403778284788132, -0.01228925958275795, -0.03196040913462639, 0.01163848303258419, 0.0467626191675663, 0.04258804768323898, -0.004029466304928064, 0.06828058511018753, -0.051770374178886414, -0.0010296441614627838, -0.04122157394886017, -0.057797517627477646, -0.031733911484479904, 0.02408316731452942, -0.05281849205493927, 0.015148702077567577, 0.036950770765542984, 0.006369427312165499, 0.0001531545858597383, -0.06512066721916199, 0.019559748470783234, 0.01254306174814701, 0.0958474650979042, -0.0980379730463028, 0.05865966156125069, 0.014067105017602444, 0.006958883721381426, -0.02431049942970276, -0.03393314406275749, 0.03253637254238129, -0.05354630574584007, 0.047659486532211304, -0.012320766225457191, -0.0027594445273280144, -0.02824079804122448, -0.06011603772640228, -0.04334968701004982, 0.026699688285589218, 0.04527102783322334, 0.05079825222492218, 0.06409749388694763, 0.05081961676478386, 0.03562622889876366, 0.056032173335552216, 0.03963639587163925, -0.07819639146327972, 0.008921531960368156, 0.03735259920358658, 0.012451298534870148, 0.00230314489454031, -0.07409630715847015, 0.0520206056535244, -0.051577866077423096, -0.10731255263090134, -0.02788383699953556, -0.03174120932817459, -0.013070895336568356, 0.05237029120326042, -0.03514653071761131, 0.022130241617560387, 0.002697566756978631, 0.004803147166967392, 0.02760159969329834, -0.042289286851882935, 0.04395381733775139, -0.055577557533979416, -0.047930195927619934, 0.05285166576504707, -0.06590268760919571, -0.1596454232931137, -0.04441060125827789, 0.012846089899539948, 0.002581537002697587, -0.008020041510462761, 0.027212057262659073, 0.04324168711900711, -0.024349333718419075, 0.03821156173944473, -0.06389104574918747, -0.03608771041035652, 0.05705026537179947, 0.06389880180358887, 0.002935969503596425, 0.04022356495261192, 0.05519508570432663, -0.07265447080135345, -0.008121286518871784, -0.010591737926006317, 0.10484941303730011, -0.0067587969824671745, 0.022673364728689194, -0.00209125061519444, -0.0036517498083412647, -0.03843355551362038, 0.04586997255682945, 0.006214032880961895, -0.04803086444735527, -0.06866634637117386, -0.034705307334661484, -0.0596560500562191, -0.04166921600699425, -0.04473251849412918, -0.04750307649374008, 0.02277713268995285, 0.0076225679367780685, -0.06949948519468307, 0.010194254107773304, -0.05372095853090286, -0.08031537383794785, -0.015554383397102356, -0.035816825926303864, -0.03474261984229088, -0.08969399333000183, 0.05244450271129608, -0.048888128250837326, -0.03723765164613724, 0.030130591243505478, 0.008363161236047745, -0.0534292496740818, 0.012594606727361679, -0.05779765173792839, -0.042641233652830124, -0.019139235839247704, -0.02282015234231949, 0.041041672229766846, -0.036558058112859726, 0.031183481216430664, 0.013969264924526215, -0.03836935758590698, 0.0430678091943264, -0.02699180133640766, 0.021733535453677177, 0.037685200572013855, 0.0436762273311615, 0.07711497694253922, -0.050833165645599365, 0.01032958459109068, 0.06067243963479996, 0.045853935182094574, 0.030329639092087746, 0.06361842155456543, -0.06116126850247383, -0.05222654342651367, -0.015946045517921448, 0.02564268745481968, 0.0312311090528965, 0.08131574094295502, -0.1027546152472496, 0.0013402861077338457, 0.004642510320991278, -0.0025959371123462915, -0.03318662941455841, 0.010232072323560715, -0.001188657945021987, 0.08372125774621964, -0.0020952036138623953, -0.006756346672773361, -0.043312493711709976, 0.03134353831410408, 0.05535956844687462, 0.07193446904420853, 0.06336697936058044, -0.018767224624753, 0.026561737060546875, 0.08659957349300385, -0.08124711364507675, -0.06363619118928909, 0.0343252457678318, -0.0819716528058052, 0.04489857330918312, -0.005862358957529068, 0.012264372780919075, 0.03448478877544403, -0.022463468834757805, 0.03625175356864929, -0.01629657857120037, -0.006711483001708984, 0.012869943864643574, 0.08436332643032074, -0.05255420506000519, 0.06629268079996109, -0.007779818028211594, 0.15343424677848816, -0.02111230418086052, 0.004285034723579884, -0.058655086904764175, 0.01639857329428196, 0.07213963568210602, -0.029427215456962585, 0.011197825893759727, 0.032113250344991684, -0.061607878655195236, -0.00229507009498775, -0.14770321547985077, 0.01331373956054449, 0.016537081450223923, -0.005679070018231869, -0.020988233387470245, -0.03069586120545864, -0.01867932640016079, 0.08653448522090912, -0.03221224993467331, -0.010323845781385899, 0.000833000463899225, -0.036003585904836655, 0.058997321873903275, -0.02333705872297287, 0.007343386299908161, 0.017139768227934837, -0.047631971538066864, -0.04401785135269165, -0.04651905596256256, -0.07896403968334198, 0.009917467832565308, 0.03391686826944351, -0.005465025082230568, 0.014084289781749249, -0.0021596800070255995, -0.014262951910495758, -0.0026631378568708897, -0.05980880931019783, -0.033829912543296814, -0.01998402178287506, -0.0037803417071700096, -0.03909517824649811, 0.02497727796435356, 0.025809498503804207, -0.025425655767321587, -0.06675130873918533, -0.015916896983981133, -0.0407797247171402, -0.03373764827847481, 0.033777687698602676, 0.007220996543765068, 0.0022224599961191416, 0.013922355137765408, -0.036063939332962036, 0.005241151433438063, 0.012351702898740768, -0.031804174184799194, -0.0008170296787284315, 0.03202427551150322, 0.03140183538198471, 0.006605286151170731, 0.0026884744875133038, 0.003841471392661333, -0.015817180275917053, 0.017534852027893066, 0.025357188656926155, -0.07791727781295776, -0.04993582144379616, -0.016613822430372238, 0.0032685326877981424, 0.009579749777913094, -0.02308848686516285, -0.025565922260284424, 0.023389723151922226, 0.018345501273870468, 0.004483538679778576, 0.020656097680330276, 0.013320477679371834, 0.031874317675828934, 0.00479108514264226, 0.006236459128558636, -0.03638060763478279, -0.013020443730056286, -0.008307944983243942, -0.0069289300590753555, -0.004296962637454271, 0.07245995849370956, -0.0696684792637825, 0.013444318436086178, -0.0044851526618003845, 0.01220459584146738, -0.03193425387144089, -0.0251656174659729, 0.0436214879155159, -0.038728680461645126, 0.012075155973434448, 0.021128317341208458, 0.00011180920409969985, -0.0008405603584833443, -0.0275589432567358, 0.01829160936176777, 0.0016942410729825497, 0.054802678525447845, -0.041043251752853394, -0.004821778275072575, 0.03793693333864212, 0.046043314039707184, -0.022424794733524323, -0.01521831750869751, -0.004934540018439293, -0.025528373196721077, 0.006575858686119318, -0.01226569339632988, 0.03393707796931267, -0.029122691601514816, 0.03913503140211105, -0.0015299537917599082, -0.028362032026052475, -0.055533137172460556, 0.0278442595154047, 0.0429212860763073, -0.00970314908772707, -0.036387283354997635, 0.00018061311857309192, 0.011865110136568546, 0.023392636328935623, 0.019902432337403297, 0.02023090235888958, -0.03785855323076248, 0.01675325259566307, -0.01259713713079691, 0.011084252037107944, 0.029001448303461075, -0.004467296414077282, 0.040922898799180984, 0.018119366839528084, -0.04625580087304115, -0.041182536631822586, -0.0013997737551108003, -0.004709184169769287, 0.039048999547958374, 0.03266926854848862, 0.006569652818143368, -0.00879084225744009, 0.02917659655213356, 0.008730369620025158, -0.02317529357969761, -0.02966969646513462, -0.015183736570179462, 0.041933391243219376, -0.004819436464458704, -0.03308645263314247, 0.017200851812958717, -0.020969059318304062, 0.00845625251531601, 0.010694152675569057, 0.03336020186543465, -0.010346852242946625, -0.009336678311228752, 0.022221704944968224, 0.00610960042104125, -0.015351002104580402, 0.03217141702771187, -0.025840435177087784, 0.01166535634547472, 0.04533771798014641, 0.010387989692389965, 0.028900448232889175, 0.0035028334241360426, -0.03584926947951317, -0.003836015472188592, -0.017727602273225784, -0.014895832166075706, -0.0023849662393331528, -0.009630472399294376, 0.022044306620955467, 0.012494627386331558, 0.024426380172371864, -0.0007732054218649864, -0.014367704279720783, 0.021532434970140457, -0.007872394286096096, -0.038392163813114166, 0.057749200612306595, 0.03944394737482071, -0.015764959156513214, 0.053056396543979645, 0.05142601206898689, -0.02742796018719673, 0.03912476450204849, -0.0496954545378685, -0.022969067096710205, 0.03739823028445244, -0.03243061155080795, 0.012672333978116512, 0.02373254857957363, 0.03898070752620697, -0.008184202946722507, -0.02851235121488571, 0.02685939334332943, -0.0052765668369829655, 0.05974529683589935, 0.027161791920661926, 0.008156650699675083, 0.011566698551177979, 0.01820920966565609, 0.006938998121768236, -0.011773637495934963, 0.03135472163558006, -0.008344595320522785, 0.01391602773219347, 0.028324127197265625, -0.0015743315452709794, -0.030426794663071632, -0.018365705385804176, -0.002485371893271804, 0.025697119534015656, 0.0012058231513947248, -0.02392495796084404, -0.022368965670466423, 0.004762575961649418, 0.013482904061675072, 0.0257511455565691, -0.08176937699317932, -0.015182103030383587, -0.00937451608479023, -0.02436058036983013, 0.02504138834774494, 0.02656388282775879, -0.0004076769982930273, -0.005607398226857185, 0.00823491532355547, 0.05615754425525665, 0.03238936886191368, -0.018716828897595406, -0.03733011707663536, 0.015209263190627098, 0.03332597762346268, -0.04070339724421501, -0.033878177404403687, -0.0010147376451641321, -0.023108111694455147, -0.022052345797419548, -0.021405497565865517, -0.0214457418769598, 0.016600163653492928, 0.005463927052915096, 0.015431554988026619, 0.0011511435732245445, -0.013880869373679161, 0.029053954407572746, 0.009291970171034336, 0.024038424715399742, 0.006960115861147642, -0.00591204222291708, -0.006611601449549198, -0.007189612369984388, 0.0062450384721159935, -0.01060676109045744, -0.01192499604076147, -0.00008502155833411962, 0.017267808318138123, 0.03278028219938278, 0.057662855833768845, -0.004297147039324045, 0.024862756952643394, 0.016637315973639488, -0.007162549067288637, -0.028350451961159706, 0.018867699429392815, -0.00857081264257431, 0.03961404785513878, 0.017440689727663994, 0.02254914492368698, 0.07774814963340759, -0.012722437269985676, -0.027160663157701492, 0.05588103085756302, -0.0026330463588237762, 0.017954226583242416, -0.047354038804769516, 0.0005120349233038723, -0.017615262418985367, -0.022199515253305435, 0.00950849149376154, -0.0046028802171349525, -0.008742837235331535, 0.06897033751010895, -0.0015028045745566487, -0.02090390771627426, -0.014630322344601154, 0.0026371069252490997, 0.01708577200770378, -0.0187382809817791, -0.024648791179060936, 0.043370768427848816, -0.03302427753806114, -0.016657644882798195, 0.013794856145977974, -0.08271264284849167, -0.04336463660001755, 0.006756064016371965, -0.016535550355911255, -0.005799985025078058, 0.053585443645715714, 0.03529519960284233, 0.03922082483768463, -0.054465264081954956, 0.00802689976990223, -0.03238224610686302, -0.032005373388528824, -0.002884169341996312, 0.012889770790934563, -0.00312692834995687, 0.04796674847602844, 0.010631726123392582, -0.010653737932443619, -0.006100209429860115, -0.06940056383609772, 0.009560201317071915, 0.038273170590400696, 0.02828257344663143, -0.024693286046385765, -0.02306954748928547, -0.0018148028757423162, 0.007925260812044144, 0.05049162358045578, -0.01100108865648508, -0.009212066419422626, 0.006241937633603811, -0.0112252626568079, -0.0891440287232399, 0.002061262261122465, 0.046885062009096146, -0.02521355077624321, -0.06351649761199951, 0.013528347946703434, 0.00429114792495966, -0.028036125004291534, 0.0195616427809, 0.0326920785009861, 0.06982249021530151, 0.010912112891674042, 0.020810887217521667, -0.03749321028590202, 0.04244784638285637, 0.01636364683508873, 0.002614774974063039, 0.0040303487330675125, -0.009963402524590492, 0.0427878312766552, -0.03968936204910278, 0.02109421417117119, 0.019705036655068398, -0.04136677831411362, 0.013192114420235157, 0.02800520695745945, 0.019077884033322334, -0.019163431599736214, -0.015810640528798103, 0.05195990577340126, -0.04246990755200386, 0.01076535601168871, -0.0022425581701099873, 0.04360048472881317, 0.02015947550535202, 0.054513681679964066, 0.008022846654057503, 0.07247105985879898, 0.06846025586128235, 0.022882485762238503, -0.032557569444179535, -0.021196825429797173, 0.027555879205465317, 0.010234428569674492, 0.027181603014469147, -0.006888320203870535, 0.008470119908452034, -0.018266629427671432, -0.025103675201535225, -0.026556648313999176, -0.04936597868800163, 0.009155110456049442, 0.004845061339437962, 0.009947379119694233, 0.05412169173359871, -0.009291444905102253, 0.06622885167598724, -0.005150999408215284, 0.004462201613932848, -0.008087990805506706, 0.0321999192237854, -0.019482197239995003, 0.023974811658263206, 0.017607925459742546, 0.008450853638350964, -0.02579076588153839, -0.008622673340141773, 0.0032660437282174826, 0.02632809430360794, -0.0047247386537492275, 0.012058350257575512, -0.01852957159280777, -0.024012645706534386, 0.01141565851867199, 0.009196598082780838, 0.008216442540287971, 0.04841909557580948, 0.01954200305044651, -0.005264121573418379, 0.02771042287349701, 0.012065389193594456, 0.03298889845609665, -0.012193580158054829, -0.026533443480730057, -0.00017188179481308907, -0.025829317048192024, -0.006774930749088526, 0.021825501695275307, 0.005731498822569847, -0.08754049986600876, 0.02902180328965187, -0.007986859418451786, -0.0410146489739418, 0.043136678636074066, -0.0655534565448761, 0.010404937900602818, 0.008943604305386543, 0.029576044529676437, -0.03413495048880577, 0.017511039972305298, -0.01387550588697195, 0.037135738879442215, 0.027699725702404976, 0.03173552453517914, -0.04740632697939873, 0.0034724578727036715, 0.005387708079069853, 0.03143401816487312, -0.0003839842102024704, -0.009976956062018871, 0.00048529147170484066, -0.007413312327116728, 0.0682547464966774, -0.01934288628399372, -0.025904931128025055, -0.01292191632091999, 0.07168973982334137, 0.0855153277516365, 0.011040996760129929, 0.0040710377506911755, 0.013642987236380577, 0.015011853538453579, -0.060910988599061966, -0.035473160445690155, 0.05832052230834961, 0.002841437002643943, -0.0029628563206642866, -0.011649305000901222, -0.016541386023163795, 0.0018217037431895733, -0.023135624825954437, 0.022863637655973434, 0.04467763006687164, -0.02455196902155876, -0.011124365963041782, -0.005474550649523735, 0.033126283437013626, 0.01907491497695446, 0.03247750177979469, 0.022228628396987915, -0.034999169409275055, -0.02750827744603157, -0.009658347815275192, 0.05196043476462364, -0.05733135715126991, 0.03877956047654152, -0.003452861215919256, -0.027868879958987236, -0.0038324391935020685, 0.05075592175126076, 0.02107197977602482, 0.015152842737734318, -0.019166946411132812, -0.021921591833233833, -0.0359296053647995, 0.03573291003704071, -0.004224791657179594, -0.00782111193984747, 0.02076715975999832, 0.01064764428883791, 0.07227832823991776, -0.00904509425163269, -0.03569458797574043, -0.004206062760204077, -0.022455476224422455, 0.008058489300310612, 0.058982331305742264, 0.015664059668779373, -0.01868377812206745, 0.008777833543717861, 0.0030859310645610094, -0.04039023071527481, -0.022219721227884293, 0.03763752803206444, -0.019296808168292046, 0.0027917036786675453, 0.013021611608564854, -0.020503589883446693, -0.004622127860784531, -0.006917373277246952, 0.0550285242497921, 0.08605673909187317, -0.015238665044307709, -0.01036077830940485, 0.001670211786404252, -0.034937698394060135, 0.011609059758484364, -0.021501002833247185, 0.01252700760960579, 0.024929260835051537, 0.014592231251299381, 0.021753180772066116, 0.035003911703825, -0.03103262186050415, 0.046941135078668594, 0.02212650142610073, 0.00742444908246398, 0.0029122375417500734, 0.0007816263241693377, 0.037908148020505905, -0.04133038595318794, -0.005645110737532377, 0.014271517284214497, 0.0007711658836342394, -0.0015862715663388371, 0.016001086682081223, -0.008774903602898121, 0.0023126171436160803, 0.004842571914196014, 0.030471578240394592, -0.04020627588033676, -0.007328587584197521, 0.018109900876879692, 0.04735441878437996, -0.021920882165431976, 0.03200583532452583 ]
Overview of natively supported quantization schemes in 🤗 Transformers
ybelkada
September 12, 2023
overview-quantization-transformers
llm, optimization, quantization, comparison, bitsandbytes, gptq
https://huggingface.co/blog/overview-quantization-transformers
Generate speed The following benchmarks measure the generation speed of the model during inference. The benchmarking script can be found here for reproducibility.
[ -0.0026397614274173975, 0.014744140207767487, 0.0716264396905899, 0.009301434271037579, 0.04568866267800331, -0.01795608177781105, -0.0027043712325394154, 0.015984024852514267, -0.01081401202827692, -0.07630912214517593, 0.027746593579649925, 0.011780807748436928, 0.01826515980064869, 0.00249728886410594, 0.0416775643825531, -0.015616270713508129, 0.01782870478928089, 0.019209828227758408, -0.008798927068710327, -0.047741204500198364, 0.00654196972027421, -0.031486205756664276, 0.03771597892045975, -0.030907414853572845, -0.04307224601507187, 0.0032475709449499846, -0.024157728999853134, -0.06629237532615662, -0.047217391431331635, -0.02326114848256111, -0.13528528809547424, 0.005033043213188648, 0.01022349763661623, 0.005804914515465498, -0.028666118159890175, -0.03434470295906067, -0.13872277736663818, 0.04772673174738884, 0.02912052534520626, -0.01698688417673111, 0.03322797641158104, 0.01877579092979431, 0.013981050811707973, 0.0320618711411953, -0.021162161603569984, 0.03702472522854805, -0.12391703575849533, 0.03251408413052559, -0.027575472369790077, -0.006702349055558443, -0.06169779971241951, 0.046868711709976196, -0.08637291938066483, 0.016370246186852455, 0.0008689618553034961, 0.04783966392278671, 0.0045722960494458675, -0.028317436575889587, 0.05654934421181679, -2.3243011071372166e-7, 0.06162596121430397, -0.018820924684405327, 0.05350274220108986, 0.057745154947042465, 0.04165516421198845, -0.0031492107082158327, -0.008457220159471035, 0.04529290273785591, -0.041099913418293, 0.040423065423965454, -0.043122466653585434, -0.03197518736124039, 0.040586743503808975, 0.00014445616398006678, 0.011074472218751907, 0.016554391011595726, 0.00045528143527917564, 0.06279715150594711, 0.09745761752128601, 0.040780019015073776, 0.006772445049136877, -0.0010224797297269106, 0.05313706025481224, 0.01611984334886074, -0.0027110299561172724, 0.0018674875609576702, 0.046555522829294205, -0.021256322041153908, -0.030153151601552963, 0.04927126690745354, 0.014288599602878094, -0.09231168776750565, -0.034221772104501724, 0.003863152815029025, 0.013628223910927773, -0.02106565423309803, 0.024767722934484482, 0.07244998961687088, -0.011392980813980103, 0.022316738963127136, -0.0003992349375039339, -0.033556077629327774, 0.006127544678747654, -0.01942124217748642, -0.010457864962518215, 0.0315619632601738, -0.0418635718524456, -0.11033756285905838, -0.08688593655824661, 0.09149261564016342, -0.037365417927503586, 0.034157730638980865, 0.02943110279738903, 0.03548264876008034, -0.0646083801984787, 0.014556841924786568, -0.01767023093998432, -0.05523037537932396, -0.009465498849749565, 0.025224920362234116, -0.029759958386421204, 0.06492861360311508, 0.03963259607553482, -0.0002526435418985784, -0.013791501522064209, 0.09733445942401886, 0.11264698952436447, 0.06923390924930573, 0.008932113647460938, 0.013380257412791252, 0.034041743725538254, -0.03897165134549141, 0.012762797065079212, 0.029544832184910774, 0.05104735121130943, -0.08939017355442047, -0.02915474772453308, -0.03299654647707939, -0.0244308952242136, 0.024972736835479736, -0.05678122863173485, -0.009003250859677792, 0.04580921307206154, -0.014522284269332886, 0.03945585712790489, -0.07216361165046692, -0.026874465867877007, -0.008086991496384144, 0.0052529373206198215, 0.009648908860981464, -0.09102945774793625, 0.09354778379201889, -0.05632144957780838, -0.0477050356566906, 0.017715202644467354, 0.049382057040929794, -0.0330364890396595, -0.03379500284790993, -0.08824341744184494, -0.02444232441484928, -0.002028835704550147, -0.014565649442374706, 0.0037246504798531532, -0.033944323658943176, 0.06055096909403801, -0.026538405567407608, 0.012170057743787766, 0.027230147272348404, 0.011588944122195244, 0.0007439582841470838, -0.04470858350396156, -0.024776315316557884, 0.10810009390115738, -0.026868335902690887, 0.023206422105431557, 0.05095110833644867, 0.0060815103352069855, 0.07162337750196457, 0.021581405773758888, 0.001289148349314928, -0.046130720525979996, 0.0016518424963578582, -0.0782182440161705, 0.043600160628557205, 0.042594391852617264, -0.13941015303134918, 0.04511532187461853, -0.04112230986356735, 0.0305083766579628, -0.013077028095722198, -0.03002142161130905, -0.045692890882492065, 0.11082103848457336, -0.06900455802679062, -0.03719567880034447, -0.07498816400766373, 0.010875930078327656, 0.10538573563098907, 0.06372351199388504, 0.05559302493929863, -0.013439660891890526, 0.01463652029633522, 0.021725507453083992, -0.045622654259204865, -0.024379242211580276, 0.05459682270884514, -0.0009764439892023802, -0.0038221178110688925, 0.03451034426689148, 0.014720657840371132, -0.018499072641134262, -0.10836272686719894, -0.0018100487068295479, -0.046665534377098083, -0.03319943696260452, -0.010254096239805222, 0.0021241577342152596, -0.013674397021532059, 0.035579994320869446, -0.010294185020029545, 0.1859825998544693, -0.026535460725426674, 0.00981782004237175, -0.01060251984745264, -0.05332271009683609, 0.00425539817661047, 0.010668808594346046, 0.05360886827111244, 0.019285505637526512, -0.058808982372283936, -0.010405423119664192, -0.04151305928826332, 0.021164190024137497, 0.09267541021108627, -0.03859793022274971, 0.02368536777794361, 0.011809850111603737, 0.04162978380918503, 0.05313355103135109, -0.06443721055984497, 0.056375809013843536, -0.020055070519447327, -0.024849271401762962, 0.12796863913536072, -0.002169943181797862, 0.013838137499988079, 0.05253520980477333, -0.004263611510396004, -0.03319522365927696, -0.025650329887866974, -0.04574570059776306, 0.014416213147342205, 0.053214337676763535, -0.05506440997123718, 0.06816764920949936, 0.021636437624692917, -0.020919501781463623, -0.014399227686226368, -0.04488501697778702, 0.03692237660288811, 0.005579353775829077, 0.0007847842643968761, -0.03391118347644806, 0.0022682854905724525, 0.03579363599419594, -0.054913438856601715, -0.02107221819460392, -0.007851306349039078, -0.04941476508975029, 0.014215456321835518, 0.029458118602633476, -0.02321142889559269, -0.017533523961901665, -0.011763349175453186, 0.0026879338547587395, 0.0011853169417008758, 0.011218802072107792, -0.07100356370210648, -0.033748771995306015, 0.01127893477678299, -0.04117124155163765, -0.024311959743499756, 0.0014219973236322403, 0.03443167358636856, 0.005344317760318518, -0.011340160854160786, 0.021009353920817375, -0.02924494259059429, -0.029470592737197876, 0.005070168059319258, 0.01632077805697918, 0.009043317288160324, 0.002977929776534438, 0.012648341245949268, 0.007478952873498201, 0.00385836698114872, -0.023082688450813293, -0.0292118638753891, -0.02135745994746685, -0.038004837930202484, -0.02019566483795643, 0.020575156435370445, -0.027850965037941933, -0.0159774087369442, -0.05634364113211632, 0.041390206664800644, -0.018840644508600235, 0.022676074877381325, -0.10962636023759842, -0.02137770690023899, -0.002915919991210103, 0.023047102615237236, -0.020344203338027, -0.05845446139574051, 0.023617492988705635, -0.021215442568063736, 0.03377057984471321, 0.04490048065781593, 0.02013654261827469, -0.017731089144945145, 0.026714961975812912, 0.030637644231319427, 0.0010435825679451227, 0.02787289209663868, -0.01648555137217045, 0.011167938821017742, -0.010321996174752712, 0.025796890258789062, -0.0036655485164374113, 0.018067937344312668, 0.00622304854914546, -0.049689289182424545, -0.029573118314146996, 0.05635844171047211, 0.02313082478940487, 0.005323139950633049, 0.006602500565350056, -0.0181686133146286, -0.04802827537059784, -0.037938058376312256, -0.001783879240974784, 0.001113508245907724, -0.042470574378967285, -0.013073494657874107, -0.030787084251642227, 0.013926241546869278, 0.02323151007294655, 0.0038857313338667154, 0.013446832075715065, -0.032379090785980225, 0.013831354677677155, 0.003674187930300832, -0.01947472058236599, 0.01401652954518795, 0.0216754712164402, 0.03795960173010826, 0.027525020763278008, -0.05114040896296501, -0.0420006588101387, -0.01338114868849516, 0.033216625452041626, 0.05828772112727165, -0.00036188610829412937, 0.04202094301581383, -0.002330901799723506, 0.04624006524682045, 0.06613918393850327, -0.04671306908130646, -0.06484261900186539, -0.01094745472073555, 0.029022235423326492, -0.013066805899143219, -0.08408936858177185, 0.03602161630988121, 0.012445459142327309, 0.012853126041591167, -0.026882395148277283, 0.030783139169216156, -0.013489187695086002, 0.012114624492824078, 0.007478849031031132, 0.01819499209523201, -0.02664724737405777, -0.0036274895537644625, -0.04663555324077606, -0.0177215114235878, 0.06209375336766243, 0.010821748524904251, -0.00929639209061861, -0.012758331373333931, -0.019043786451220512, -0.02707076445221901, 0.0042870864272117615, -0.00892707984894514, 0.05726184695959091, -0.01277155801653862, -0.003657321445643902, 0.02893735095858574, 0.037423595786094666, -0.01927231065928936, -0.023286068812012672, -0.014085443690419197, -0.0031932478304952383, -0.012508268468081951, 0.04577593877911568, -0.002272017765790224, 0.008310312405228615, 0.04372415319085121, 0.011022550985217094, -0.03259022906422615, 0.008299321867525578, 0.0047676716931164265, -0.012518933042883873, 0.032425180077552795, -0.008267100900411606, 0.019167209044098854, 0.010853743180632591, -0.009061126038432121, 0.016806388273835182, -0.018057841807603836, 0.015421448275446892, -0.027084529399871826, 0.045192185789346695, 0.03727457672357559, -0.020810335874557495, -0.017180105671286583, -0.013271099887788296, 0.01799280196428299, -0.04848893731832504, 0.021212900057435036, -0.003154771402478218, 0.019239861518144608, 0.01773819886147976, -0.009263214655220509, 0.017903560772538185, 0.0038598289247602224, -0.008527077734470367, -0.006598592270165682, 0.007866247557103634, 0.03477884456515312, 0.03860620781779289, 0.03126811981201172, 0.0008003346156328917, -0.0008957848185673356, -0.026469096541404724, -0.005149859935045242, -0.01542605459690094, -0.04070039093494415, 0.04013081267476082, 0.05877725034952164, 0.01175417099148035, 0.006145339459180832, 0.03966055065393448, 0.026924246922135353, -0.005375769920647144, -0.015505151823163033, -0.01426794845610857, 0.015266712754964828, 0.05523044243454933, -0.0003061323659494519, -0.06419618427753448, -0.04574790224432945, 0.019145365804433823, -0.012216071598231792, 0.014569302089512348, -0.014963832683861256, -0.009102283976972103, 0.021351192146539688, 0.031011193990707397, 0.0003259339719079435, -0.020057762041687965, 0.01404281985014677, -0.016809353604912758, 0.045424915850162506, -0.002732866909354925, -0.024457750841975212, 0.016797205433249474, 0.023745151236653328, 0.02338891290128231, -0.0017794916639104486, -0.016710592433810234, -0.02730766497552395, 0.021469375118613243, 0.012294941581785679, 0.018990149721503258, 0.006817848887294531, 0.02492874674499035, -0.0173952616751194, -0.021991591900587082, -0.038384512066841125, 0.020150255411863327, -0.01583987846970558, 0.021485162898898125, -0.004764143843203783, 0.06137246638536453, 0.06939458101987839, 0.0012779367389157414, -0.002108575776219368, 0.023132797330617905, 0.03212219104170799, 0.04301050677895546, -0.07440908253192902, 0.025443457067012787, -0.0049760062247514725, 0.032051339745521545, -0.0047578588128089905, -0.01679106056690216, -0.016796370968222618, 0.04149104282259941, 0.011880958452820778, 0.0058195567689836025, -0.01926352083683014, 0.015012179501354694, 0.022443242371082306, -0.03828270733356476, -0.042086049914360046, 0.03386461362242699, -0.0242164246737957, 0.030665580183267593, -0.0002564819878898561, -0.07722441852092743, 0.00704825296998024, 0.005429701413959265, -0.036775246262550354, -0.03261326625943184, 0.011203210800886154, 0.007941893301904202, 0.041492022573947906, -0.0433790422976017, -0.0005528038600459695, -0.03467151150107384, -0.009603065438568592, 0.016564125195145607, 0.003797623561695218, -0.021575184538960457, -0.029147636145353317, 0.005744004622101784, 0.02351236343383789, 0.020993627607822418, 0.00027102616149932146, 0.01298687793314457, 0.019296811893582344, 0.045371174812316895, 0.018925197422504425, -0.004219616297632456, 0.05713539198040962, 0.021455494686961174, 0.0006782033015042543, -0.041445355862379074, 0.0013881332706660032, -0.006964406464248896, 0.0005686897784471512, -0.054153840988874435, -0.000009021825462696142, 0.06963370740413666, -0.032238852232694626, -0.025196317583322525, 0.0281535591930151, -0.00899533648043871, -0.012084370478987694, 0.02732660621404648, 0.015473644249141216, 0.03682596608996391, -0.0016818606527522206, 0.03111165389418602, -0.03788136690855026, -0.003718095365911722, 0.015055380761623383, 0.020794792100787163, -0.011813744902610779, 0.02187240682542324, -0.0006635391619056463, -0.07143843919038773, 0.06530454009771347, -0.00039014226058498025, -0.037275537848472595, 0.052863407880067825, 0.030196361243724823, 0.028455670922994614, 0.007515728939324617, -0.005948764272034168, 0.025822971016168594, -0.0319560170173645, -0.008067920804023743, -0.02020592801272869, 0.07532817870378494, 0.008348261937499046, 0.04530308395624161, 0.009646166115999222, 0.06072063744068146, 0.02010192535817623, -0.010099979117512703, -0.017502088099718094, 0.01142588909715414, 0.03988204896450043, 0.036668404936790466, 0.007949955761432648, 0.01113335695117712, 0.0033200844191014767, -0.05282962694764137, -0.038462281227111816, -0.01156618818640709, -0.06348001211881638, 0.0018779687816277146, -0.003091556718572974, -0.01573321595788002, 0.011019853875041008, -0.049774132668972015, 0.0375312864780426, -0.0103965038433671, 0.021697327494621277, -0.011410324834287167, 0.0022846776992082596, 0.009690163657069206, 0.020815424621105194, -0.009919941425323486, 0.032977860420942307, 0.0089614512398839, 0.012638231739401817, 0.05816138535737991, 0.00892490241676569, 0.003523815656080842, 0.030885670334100723, -0.008806375786662102, 0.01480196975171566, 0.015553273260593414, 0.006524757947772741, 0.013852846808731556, 0.04463120922446251, 0.0358428992331028, -0.013266556896269321, 0.001170164323411882, -0.02535921335220337, -0.027701707556843758, -0.021431995555758476, 0.011769713833928108, -0.028746498748660088, -0.0353570282459259, -0.0026873848401010036, 0.031360823661088943, -0.011067508719861507, -0.03273821622133255, -0.0019047631649300456, -0.007451146841049194, -0.01289443951100111, 0.021042361855506897, -0.044567033648490906, -0.030169596895575523, 0.010340812616050243, 0.017300231382250786, -0.011327192187309265, 0.012411270290613174, -0.02174908109009266, 0.0247584767639637, 0.0287953969091177, -0.011203739792108536, -0.021503161638975143, 0.011318748816847801, 0.031117429956793785, 0.006777919363230467, -0.041541796177625656, 0.0004932967131026089, 0.0025973375886678696, -0.014674118719995022, 0.047595325857400894, 0.026511946693062782, -0.058871228247880936, -0.008278070949018002, 0.052733223885297775, 0.020028166472911835, 0.013203389942646027, -0.002395039889961481, -0.020324798300862312, -0.02517418935894966, -0.05244537815451622, -0.0029047776479274035, 0.02956770360469818, 0.019005266949534416, -0.0019440343603491783, -0.016355963423848152, -0.008546988479793072, 0.04051768407225609, -0.03785356134176254, 0.012200664728879929, 0.05914195626974106, -0.032526176422834396, -0.02741888165473938, -0.03756874427199364, 0.043166905641555786, 0.0035393093712627888, 0.03835245966911316, 0.03804034739732742, 0.010379493236541748, -0.019965648651123047, -0.03563394770026207, 0.01815839484333992, -0.02023160085082054, 0.05846092477440834, -0.031096920371055603, -0.04184330627322197, -0.03411431238055229, -0.0022961434442549944, -0.00698112091049552, 0.02659669890999794, -0.01457560621201992, -0.036119699478149414, -0.006017278879880905, -0.014972302131354809, -0.03213333711028099, 0.0004885264206677675, 0.07084177434444427, 0.033112794160842896, 0.04918331652879715, -0.02062956430017948, -0.013491968624293804, 0.00536416657269001, -0.007973001338541508, 0.022877590730786324, 0.001871975720860064, 0.027679022401571274, -0.015481262467801571, 0.0015390561893582344, 0.0251412745565176, -0.03559179976582527, -0.02548798732459545, 0.039902519434690475, 0.0239143967628479, -0.03405683860182762, -0.031078217551112175, -0.0070358095690608025, 0.03405313193798065, -0.002976197050884366, 0.07409895956516266, 0.0209187064319849, -0.02680497244000435, -0.04115646332502365, -0.0023535636719316244, -0.04989909008145332, -0.004292660858482122, 0.0072036003693938255, -0.010424633510410786, 0.03817880153656006, 0.03370016813278198, 0.02852696366608143, 0.010817959904670715, -0.016011441126465797, 0.027902353554964066, 0.021096965298056602, -0.022107334807515144, -0.024161063134670258, -0.017647279426455498, -0.017050422728061676, -0.04627807065844536, -0.05884353816509247, -0.004081051796674728, -0.02915351465344429, -0.0006688521825708449, 0.011795596219599247, -0.01471513882279396, 0.02161279320716858, -0.0008900060784071684, 0.00965830497443676, -0.034652695059776306, 0.014643699862062931, 0.08139877021312714, 0.015560399740934372, 0.013565907254815102, -0.012115596793591976 ]
Overview of natively supported quantization schemes in 🤗 Transformers
ybelkada
September 12, 2023
overview-quantization-transformers
llm, optimization, quantization, comparison, bitsandbytes, gptq
https://huggingface.co/blog/overview-quantization-transformers
Conclusion and final words In this blogpost, we compared bitsandbytes and GPTQ quantization across multiple setups. We saw that bitsandbytes is better suited for fine-tuning while GPTQ is better for generation. From this observation, one way to get better merged models would be to: - (1) quantize the base model using bitsandbytes (zero-shot quantization) - (2) add and fine-tune the adapters - (3) merge the trained adapters on top of the base model or the dequantized model ! - (4) quantize the merged model using GPTQ and use it for deployment We hope that this overview will make it easier for everyone to use LLMs in their applications and usecases, and we are looking forward to seeing what you will build with it!
[ 0.074164479970932, -0.05055776983499527, 0.04475606232881546, 0.03473137319087982, 0.07795547693967819, 0.023318104445934296, -0.033866483718156815, 0.012661434710025787, 0.003861498786136508, -0.025468990206718445, -0.03751329705119133, 0.00777212530374527, -0.008871396072208881, 0.03742648661136627, 0.01849380135536194, 0.0063777221366763115, 0.04589627683162689, -0.012794150039553642, 0.01744828186929226, 0.021693112328648567, 0.05679023265838623, -0.0324874110519886, 0.017995193600654602, -0.051636528223752975, 0.06310645490884781, -0.09346326440572739, 0.013179277069866657, 0.006773869972676039, 0.0010299088899046183, 0.022252624854445457, -0.023182958364486694, -0.05832163989543915, -0.04645748436450958, -0.02910020761191845, 0.004835593514144421, -0.02343376912176609, -0.11008882522583008, 0.01886659860610962, 0.012326287105679512, -0.06744153797626495, -0.018406067043542862, -0.03507349640130997, -0.03762374818325043, 0.021103400737047195, 0.024049440398812294, -0.02333075739443302, -0.12152069807052612, 0.03872362896800041, -0.054259415715932846, -0.10091669112443924, -0.005790859926491976, 0.05139566585421562, -0.06398285925388336, 0.023837538436055183, 0.010389854200184345, -0.01487086620181799, 0.026549873873591423, -0.11321406811475754, -0.03212325647473335, 0.03888164088129997, 0.04528713598847389, -0.07262757420539856, 0.04143555462360382, 0.04665756970643997, -0.009868765249848366, -0.01210879161953926, -0.04574801027774811, 0.013899702578783035, -0.05947889760136604, 0.04259597510099411, 0.008124778978526592, 0.008997093886137009, -0.0007108813733793795, -0.05665341019630432, -0.0005431135650724173, -0.0355350486934185, 0.020395245403051376, 0.042297787964344025, 0.060055211186409, 0.029547685757279396, 0.023648157715797424, 0.01721598207950592, 0.013730221427977085, -0.013899427838623524, 0.03946245089173317, 0.03717253357172012, 0.022951414808630943, -0.028765980154275894, -0.07590804994106293, 0.03172072023153305, -0.023489153012633324, -0.11984027177095413, 0.009880940429866314, 0.03178904205560684, 0.020318694412708282, -0.013190239667892456, 0.028776079416275024, 0.01711885817348957, 0.036842186003923416, 0.023490028455853462, 0.018853850662708282, 0.0211564339697361, 0.011225670576095581, 0.005828684661537409, -0.027685150504112244, 0.05407734215259552, -0.0782676637172699, -0.12175202369689941, -0.05031488835811615, 0.04904834181070328, -0.03782287985086441, -0.030238589271903038, 0.02690809965133667, -0.017873600125312805, -0.04564911499619484, 0.035369113087654114, -0.026669008657336235, -0.009636969305574894, 0.08113935589790344, 0.070546954870224, -0.013877437449991703, 0.0786949172616005, 0.09601754695177078, -0.02560187689960003, 0.03459327295422554, -0.042369697242975235, 0.03705922141671181, -0.04048091173171997, 0.03746381029486656, 0.03677573800086975, 0.015120171010494232, -0.005612880922853947, 0.0434139110147953, -0.029518043622374535, -0.03415636718273163, -0.07592900842428207, -0.012337452732026577, -0.1125389114022255, -0.04152741655707359, -0.023546691983938217, -0.02583867497742176, 0.055269110947847366, -0.009754772298038006, -0.003849511733278632, -0.024854568764567375, -0.0034803051967173815, -0.06426170468330383, 0.042146969586610794, -0.011323886923491955, -0.0038818540051579475, -0.07640320062637329, 0.05340886488556862, -0.06933765858411789, -0.1051594540476799, 0.037837181240320206, 0.04972115159034729, -0.03913191333413124, 0.025029491633176804, -0.03741210326552391, 0.0023560465779155493, -0.061225831508636475, -0.05599072203040123, -0.029350634664297104, -0.013149606063961983, 0.008866919204592705, -0.01685267500579357, -0.03646380081772804, 0.07634110003709793, -0.028973665088415146, 0.02848651073873043, 0.04735993966460228, 0.05761334300041199, 0.09102636575698853, -0.025690646842122078, 0.03308714181184769, 0.03391217440366745, 0.07650453597307205, 0.09914173185825348, -0.010639902204275131, -0.03504801169037819, -0.02833094634115696, 0.01908879168331623, -0.0009387395693920553, -0.006843368522822857, -0.026273595169186592, -0.059197232127189636, 0.029498660936951637, -0.05988391488790512, -0.044455546885728836, -0.024594027549028397, -0.06563401222229004, 0.03756449744105339, 0.11797399073839188, -0.017806224524974823, 0.01879432052373886, -0.043274737894535065, 0.0009166810195893049, 0.14203310012817383, 0.05301200598478317, 0.04633432626724243, 0.0715908482670784, 0.002838969463482499, 0.01871020905673504, 0.0030250854324549437, 0.015792962163686752, 0.034800298511981964, -0.026777055114507675, 0.03334031626582146, 0.004458815790712833, -0.015956994146108627, 0.06259232014417648, -0.054158639162778854, 0.016958974301815033, -0.024154597893357277, 0.022925488650798798, -0.056693848222494125, 0.023901276290416718, -0.041569311171770096, 0.037788812071084976, -0.05845553055405617, 0.14034779369831085, -0.06369666755199432, 0.016371166333556175, 0.004094060976058245, 0.00623348169028759, 0.039086565375328064, 0.09261351823806763, 0.014141352847218513, 0.012821128591895103, -0.09054137766361237, 0.03517421707510948, -0.13001234829425812, 0.045931119471788406, 0.020004499703645706, -0.007405424956232309, -0.0330948643386364, -0.07092925161123276, -0.06869746744632721, 0.0745568498969078, -0.019270865246653557, -0.003235843265429139, 0.004976867698132992, -0.06577705591917038, 0.029698608443140984, 0.01340529229491949, -0.0409153550863266, 0.08764253556728363, -0.07406766712665558, -0.022331323474645615, -0.04233212396502495, -0.03248615935444832, 0.007594186346977949, 0.013883478939533234, -0.02308575063943863, 0.06432435661554337, -0.0572335384786129, -0.007123367395251989, 0.014329604804515839, -0.04791119322180748, 0.009558149613440037, -0.02090022712945938, 0.005855953320860863, 0.02267446368932724, -0.00914741586893797, 0.02742144837975502, -0.009367442689836025, 0.004912902135401964, 0.003382669761776924, -0.023576023057103157, -0.0010094516910612583, 0.00889975018799305, 0.008668599650263786, 0.06495251506567001, 0.006332916673272848, 0.008871045894920826, 0.017480390146374702, 0.02819369174540043, -0.03158058226108551, -0.010327206924557686, -0.005800342652946711, 0.02464292384684086, -0.009330843575298786, 0.03189847990870476, 0.009252473711967468, -0.037162359803915024, -0.006457815878093243, 0.0026188755873590708, -0.035337112843990326, -0.07573108375072479, 0.013687189668416977, 0.024525543674826622, 0.02349337562918663, -0.008631170727312565, -0.02353314869105816, 0.01802663318812847, 0.010722885839641094, -0.009037607349455357, 0.0036064244341105223, 0.003995589911937714, 0.01442976575344801, 0.009722402319312096, 0.0065758973360061646, -0.021733615547418594, -0.010239072144031525, -0.02887330949306488, 0.010928508825600147, 0.04241231456398964, 0.02946014702320099, -0.09554529190063477, -0.024327903985977173, -0.010707363486289978, 0.03245413675904274, 0.02131008543074131, -0.026528015732765198, 0.06919118762016296, -0.06504996120929718, -0.0054999166168272495, 0.01999383606016636, 0.03947998583316803, 0.01460797619074583, 0.011330137960612774, 0.024221887812018394, -0.0019359566504135728, 0.020720884203910828, -0.033534470945596695, -0.011209038086235523, 0.02637767791748047, 0.06213698908686638, 0.004288292024284601, 0.036437153816223145, 0.041567787528038025, -0.025241507217288017, 0.013706102967262268, -0.02539755031466484, -0.02068135514855385, 0.010898642241954803, -0.010562551207840443, -0.002471091691404581, -0.05711586773395538, 0.011806098744273186, -0.012166519649326801, 0.029913729056715965, -0.03068326972424984, -0.003420541761443019, 0.03197432681918144, 0.058316878974437714, 0.010357212275266647, 0.055461522191762924, 0.01709744520485401, 0.018350491300225258, 0.0316370390355587, -0.01027406845241785, 0.013911853544414043, 0.012430639937520027, -0.030492443591356277, 0.035447437316179276, 0.06830081343650818, -0.02135487273335457, -0.030117196962237358, 0.010731755755841732, 0.01632019877433777, 0.03567127138376236, 0.005937285255640745, -0.02153472788631916, 0.03698676452040672, 0.008142974227666855, 0.040574703365564346, 0.008046253584325314, -0.036699824035167694, 0.015370124951004982, 0.013255894184112549, -0.01189370360225439, -0.021675454452633858, 0.05647466331720352, -0.01198881957679987, -0.0009164969087578356, 0.013178782537579536, 0.05044744163751602, 0.004470895044505596, 0.013022949919104576, -0.01892504096031189, 0.005111422389745712, 0.006074170581996441, 0.014292670413851738, -0.0017497095977887511, 0.0052683111280202866, 0.06564245373010635, -0.02517254278063774, -0.012803318910300732, -0.020910367369651794, -0.025493526831269264, -0.023443451151251793, 0.015837306156754494, -0.00895135011523962, -0.021491406485438347, -0.028251176699995995, -0.01974330097436905, -0.005446275696158409, 0.016240915283560753, -0.055765680968761444, 0.025220466777682304, -0.014788582921028137, -0.019074689596891403, 0.014329256489872932, 0.057650115340948105, 0.01795612834393978, 0.007226415444165468, 0.026228494942188263, 0.03214443102478981, -0.016341539099812508, 0.0038945216219872236, -0.021688757464289665, 0.003645677585154772, 0.061733078211545944, 0.004456655588001013, 0.010597942396998405, 0.023364895954728127, 0.04157242178916931, 0.01036064699292183, -0.02158968336880207, -0.00221905461512506, 0.023358942940831184, 0.07573764026165009, -0.029424183070659637, -0.03641769662499428, -0.0002628279326017946, 0.022669246420264244, -0.0014518374809995294, -0.061821114271879196, 0.0101456418633461, -0.03167971968650818, -0.02361798658967018, 0.007339209318161011, -0.004215736407786608, -0.015331258065998554, -0.014527831226587296, -0.005988305434584618, -0.003948792349547148, -0.022195028141140938, -0.035187236964702606, -0.00036156681017018855, -0.007631620857864618, -0.019763994961977005, 0.007791226729750633, -0.026297129690647125, 0.03229627013206482, -0.02353878878057003, -0.04978285729885101, -0.0027417363598942757, 0.02504696324467659, 0.0461856871843338, -0.06119157373905182, 0.009376048110425472, 0.016601786017417908, 0.03433700650930405, -0.013330266810953617, 0.00296234292909503, 0.02409912832081318, 0.038995418697595596, -0.04299411550164223, -0.023864950984716415, -0.010456452146172523, -0.018589887768030167, -0.04041283577680588, -0.012551826424896717, 0.0019139352953061461, 0.04088062047958374, 0.011377177201211452, 0.016818778589367867, 0.04420216381549835, -0.03554088622331619, -0.018104849383234978, 0.0466536208987236, -0.0021425802260637283, 0.031575758010149, -0.020775988698005676, -0.020341461524367332, -0.025742558762431145, -0.015650061890482903, -0.028037022799253464, 0.030385753139853477, -0.0013243912253528833, 0.024814363569021225, 0.01668466441333294, 0.002381828147917986, -0.002928260713815689, 0.01017320342361927, 0.009262621402740479, 0.0012031211517751217, -0.022373035550117493, 0.02464481070637703, -0.024750718846917152, -0.0014896664069965482, 0.020096205174922943, 0.0389445424079895, 0.04469543322920799, -0.07374482601881027, -0.00313678034581244, 0.016139371320605278, 0.03407009690999985, 0.04978609085083008, 0.002133990405127406, 0.0006784132565371692, -0.0005617707502096891, 0.0004091554437763989, 0.010563630610704422, -0.028719717636704445, -0.015908904373645782, 0.03774388134479523, 0.027955545112490654, -0.005228561349213123, 0.019391188398003578, -0.03735646605491638, -0.007090266793966293, 0.014240600168704987, -0.03380962461233139, -0.00334350042976439, -0.020202606916427612, -0.0279596708714962, -0.04198003187775612, -0.015521587803959846, -0.045590590685606, 0.0365421436727047, -0.021742403507232666, -0.007354633882641792, 0.07395126670598984, -0.005342575255781412, 0.039395418018102646, 0.005473099648952484, -0.02165883593261242, -0.05451401323080063, -0.017356161028146744, 0.00010459328768774867, -0.003659481182694435, -0.004726228769868612, 0.04512465000152588, 0.010703395120799541, -0.005593840032815933, -0.008588467724621296, -0.059443313628435135, 0.0011239077430218458, 0.011487431824207306, 0.017365844920277596, 0.004279433283954859, -0.039304740726947784, -0.016412947326898575, 0.0221325121819973, -0.01780056767165661, -0.005700927693396807, -0.05856163427233696, -0.028573155403137207, -0.029323961585760117, -0.07209886610507965, 0.01424363162368536, 0.04561464861035347, -0.011173754930496216, -0.016281846910715103, -0.004499678499996662, 0.002889257622882724, 0.0031737624667584896, 0.022394215688109398, 0.04671621322631836, 0.044223107397556305, 0.062235280871391296, 0.05268622189760208, 0.00012435308599378914, 0.008361163549125195, -0.006318566855043173, 0.002956399228423834, -0.04193591699004173, -0.0168888159096241, 0.043026402592659, -0.0425405353307724, 0.041563231498003006, 0.019080080091953278, -0.07295260578393936, -0.0034461496397852898, 0.010024593211710453, 0.02231159619987011, 0.014515453949570656, -0.0034058724995702505, 0.05193907395005226, -0.04654146358370781, 0.004204959142953157, 0.016065625473856926, 0.0197485089302063, -0.016149047762155533, -0.000574424397200346, 0.007195943035185337, 0.038493674248456955, 0.048799995332956314, 0.005160891450941563, 0.03070460632443428, 0.01931385137140751, 0.047426898032426834, 0.0006598123000003397, 0.044097550213336945, 0.031328316777944565, -0.022890206426382065, -0.016160663217306137, -0.03323328495025635, -0.02916589565575123, -0.026793507859110832, -0.033064693212509155, 0.03451339155435562, -0.0361483208835125, 0.009365840815007687, 0.010441477410495281, 0.08637852966785431, -0.003050538944080472, 0.022676831111311913, -0.007198144681751728, 0.04714902117848396, -0.005253887735307217, -0.01050910260528326, 0.046791598200798035, 0.02439579740166664, -0.0007720442954450846, 0.003920142073184252, 0.05730761960148811, 0.00035964816925115883, 0.016154443845152855, 0.012539203278720379, -0.021150419488549232, 0.017501313239336014, 0.009271334856748581, 0.038231756538152695, 0.010841662995517254, 0.02352910302579403, -0.0008747767424210906, -0.01758546754717827, 0.04291704297065735, -0.0366055965423584, 0.0029298458248376846, 0.00005549241177504882, -0.006026410032063723, -0.041708171367645264, -0.021263759583234787, -0.0017425972037017345, 0.020474357530474663, 0.012650101445615292, -0.03642952814698219, -0.005413329228758812, 0.033997081220149994, -0.014662927947938442, 0.029865939170122147, -0.0497593991458416, 0.0023125610314309597, -0.020685482770204544, -0.005318628158420324, -0.03625713288784027, 0.057740312069654465, -0.031231138855218887, 0.042906153947114944, 0.04048454761505127, -0.004084218293428421, -0.023091932758688927, 0.015781475231051445, 0.0038715144619345665, 0.022749127820134163, -0.019436674192547798, 0.010003640316426754, -0.013812324963510036, -0.04791912063956261, 0.038819026201963425, -0.029481325298547745, -0.022128451615571976, -0.012231717817485332, 0.05509905144572258, -0.00447904784232378, 0.03324500471353531, -0.009019700810313225, -0.01904894784092903, 0.0035656627733260393, -0.012166515924036503, -0.012451003305613995, 0.028118286281824112, -0.002910780953243375, -0.013024158775806427, 0.005401125177741051, -0.04792878404259682, 0.009772531688213348, -0.021450486034154892, -0.003836630843579769, 0.06096094474196434, 0.0021388663444668055, -0.010613493621349335, 0.012956174090504646, 0.08200372010469437, 0.019668079912662506, 0.03262383118271828, 0.010993056930601597, 0.01947842538356781, 0.012437104247510433, -0.016212567687034607, 0.02730632573366165, -0.04135839268565178, 0.021760236471891403, -0.00954856351017952, -0.04373740032315254, 0.03138380125164986, 0.032019730657339096, 0.03299249708652496, 0.035577114671468735, -0.033784110099077225, -0.024159442633390427, -0.041894350200891495, -0.004683878272771835, -0.025220083072781563, -0.00126948906108737, 0.04865627363324165, 0.00676101166754961, -0.017623016610741615, 0.02259848266839981, -0.03050306625664234, 0.018751565366983414, -0.01267815101891756, -0.014883923344314098, 0.06658248603343964, 0.0012919759610667825, -0.016964664682745934, -0.03609748184680939, 0.03338530659675598, -0.04807039722800255, -0.013332940638065338, 0.008625421673059464, 0.02221681736409664, 0.0061619156040251255, 0.003701857291162014, -0.005102756433188915, 0.0327649787068367, 0.032574109733104706, 0.009853726252913475, 0.028987936675548553, -0.011841249652206898, -0.0009257232304662466, -0.034633006900548935, -0.069542795419693, 0.0014200292062014341, -0.05251062288880348, -0.03235771879553795, 0.0029153802897781134, 0.011636144481599331, 0.0585651621222496, -0.0037135505117475986, 0.010959917679429054, -0.013405129313468933, 0.002643272513523698, -0.00875758845359087, 0.00341042666696012, 0.025179840624332428, 0.031146634370088577, -0.03210696578025818, -0.031904421746730804, -0.0064764609560370445, 0.011835508048534393, -0.011220521293580532, -0.020088370889425278, -0.012071091681718826, 0.016275078058242798, 0.0012574340216815472, 0.024383677169680595, -0.0022519982885569334, 0.031495168805122375, 0.010671650059521198, 0.029779577627778053, -0.03912645950913429, -0.02176152914762497 ]