modelId
stringlengths
4
122
author
stringlengths
2
42
last_modified
unknown
downloads
int64
0
74.7M
likes
int64
0
9.67k
library_name
stringlengths
2
84
tags
sequence
pipeline_tag
stringlengths
5
30
createdAt
unknown
card
stringlengths
1
901k
embedding
sequence
soleimanian/financial-roberta-large-sentiment
soleimanian
"2022-10-12T21:04:39Z"
21,133
30
transformers
[ "transformers", "pytorch", "roberta", "text-classification", "Sentiment", "RoBERTa", "Financial Statements", "Accounting", "Finance", "Business", "ESG", "CSR Reports", "Financial News", "Earnings Call Transcripts", "Sustainability", "Corporate governance", "eng", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-05-16T04:09:10Z"
--- license: apache-2.0 language: - eng tags: - text-classification - Sentiment - RoBERTa - Financial Statements - Accounting - Finance - Business - ESG - CSR Reports - Financial News - Earnings Call Transcripts - Sustainability - Corporate governance --- <!DOCTYPE html> <html> <body> <h1><b>Financial-RoBERTa</b></h1> <p><b>Financial-RoBERTa</b> is a pre-trained NLP model to analyze sentiment of financial text including:</p> <ul style="PADDING-LEFT: 40px"> <li>Financial Statements,</li> <li>Earnings Announcements,</li> <li>Earnings Call Transcripts,</li> <li>Corporate Social Responsibility (CSR) Reports,</li> <li>Environmental, Social, and Governance (ESG) News,</li> <li>Financial News,</li> <li>Etc.</li> </ul> <p>Financial-RoBERTa is built by further training and fine-tuning the RoBERTa Large language model using a large corpus created from 10k, 10Q, 8K, Earnings Call Transcripts, CSR Reports, ESG News, and Financial News text.</p> <p>The model will give softmax outputs for three labels: <b>Positive</b>, <b>Negative</b> or <b>Neutral</b>.</p> <p><b>How to perform sentiment analysis:</b></p> <p>The easiest way to use the model for single predictions is Hugging Face's sentiment analysis pipeline, which only needs a couple lines of code as shown in the following example:</p> <pre> <code> from transformers import pipeline sentiment_analysis = pipeline("sentiment-analysis",model="soleimanian/financial-roberta-large-sentiment") print(sentiment_analysis("In fiscal 2021, we generated a net yield of approximately 4.19% on our investments, compared to approximately 5.10% in fiscal 2020.")) </code> </pre> <p>I provide an example script via <a href="https://colab.research.google.com/drive/11RGWU3UDtxnjan8Ug6dyX82m9fBV6CGo?usp=sharing" target="_blank">Google Colab</a>. You can load your data to a Google Drive and run the script for free on a Colab. <p><b>Citation and contact:</b></p> <p>Please cite <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4115943" target="_blank">this paper</a> when you use the model. Feel free to reach out to mohammad.soleimanian@concordia.ca with any questions or feedback you may have.<p/> </body> </html>
[ -0.20872481167316437, -0.8034477829933167, 0.2152453362941742, 0.5436035394668579, -0.17891088128089905, -0.014679851941764355, -0.19985748827457428, -0.2865811586380005, 0.4669942259788513, 0.43084433674812317, -0.8294800519943237, -0.765304446220398, -0.7429657578468323, -0.050772495567798615, -0.24981807172298431, 1.48451566696167, 0.4533115327358246, 0.31617364287376404, -0.012462726794183254, 0.170634925365448, 0.08163006603717804, -0.5903605222702026, -0.8769785165786743, -0.01448399480432272, 0.4178401231765747, 0.12398911267518997, 0.7446873784065247, 0.03851925581693649, 0.7452712655067444, 0.3644053637981415, -0.19588473439216614, -0.19767792522907257, -0.39722687005996704, -0.13347585499286652, 0.08194245398044586, -0.27420541644096375, -1.0937763452529907, 0.3460768163204193, 0.5026907920837402, 0.5730264186859131, -0.08923523873090744, 0.3879989981651306, 0.20525671541690826, 0.8306531310081482, -0.3583862781524658, 0.5333481431007385, -0.5895393490791321, -0.047133393585681915, -0.17209337651729584, 0.10162908583879471, -0.6045451760292053, -0.6790055632591248, 0.39757391810417175, -0.3909164071083069, 0.0773623138666153, 0.18530985713005066, 1.2641253471374512, 0.09952916204929352, -0.3333663046360016, -0.3359331488609314, -0.32630181312561035, 1.1739104986190796, -0.756357729434967, 0.23659929633140564, 0.1985643357038498, -0.0014228405198082328, 0.14174160361289978, -0.6207815408706665, -0.6486477255821228, -0.05515674874186516, -0.03221365064382553, 0.5401015281677246, -0.4881897568702698, -0.18561112880706787, 0.09052135050296783, 0.4325498044490814, -0.5983883738517761, -0.35936620831489563, -0.3599328100681305, -0.049842189997434616, 0.6340377330780029, 0.03892470896244049, 0.1620299071073532, -0.536094069480896, -0.8165012001991272, -0.5647356510162354, -0.2916790246963501, 0.003258099313825369, 0.5001977682113647, 0.6588917970657349, -0.5529512763023376, 0.5251861810684204, 0.1997063010931015, 0.5559595823287964, 0.1303655505180359, -0.12029639631509781, 0.4698205590248108, -0.33170294761657715, -0.3241945803165436, -0.3254014253616333, 0.9763492345809937, 0.3873428702354431, 0.3263944387435913, 0.11932238936424255, -0.0590207502245903, 0.11584220081567764, 0.22485794126987457, -0.7300742268562317, -0.17314143478870392, 0.35433563590049744, -0.6263523697853088, -0.5590332746505737, 0.22291406989097595, -1.3563605546951294, -0.03692198544740677, -0.34573519229888916, 0.23954668641090393, -0.5083257555961609, -0.2810060977935791, 0.2539121210575104, -0.27150943875312805, 0.47615039348602295, 0.1996198445558548, -0.605772078037262, 0.33176034688949585, 0.6258612275123596, 0.7660083174705505, 0.10418310761451721, -0.07174931466579437, -0.7255669832229614, -0.06517023593187332, 0.12000034004449844, 0.8223060369491577, -0.2586860954761505, -0.46168017387390137, 0.10473573952913284, -0.08754368871450424, -0.18631890416145325, -0.14168430864810944, 0.7036464810371399, -0.45559900999069214, 0.4677004814147949, -0.018684152513742447, -0.40313851833343506, -0.25793808698654175, 0.17487919330596924, -0.5982801914215088, 0.7256646156311035, 0.16407960653305054, -1.0078519582748413, 0.3647298216819763, -0.8798024654388428, -0.29173994064331055, -0.11395900696516037, 0.16045324504375458, -0.7266486883163452, -0.13241542875766754, 0.1792345643043518, 0.45190614461898804, -0.3961997628211975, 0.2601831555366516, -0.698188304901123, 0.2726423740386963, 0.37091556191444397, -0.28332120180130005, 1.206783652305603, 0.10368566960096359, -0.20129060745239258, 0.2923519015312195, -0.8632966876029968, 0.2787243127822876, 0.16031862795352936, -0.16444648802280426, -0.11489906907081604, -0.08466717600822449, 0.5297781825065613, 0.11687807738780975, 0.5290021300315857, -0.5134052038192749, 0.36416664719581604, -0.5977157950401306, 0.31243187189102173, 0.8383368253707886, -0.16103105247020721, 0.5251166224479675, -0.22802670300006866, 0.8541275262832642, -0.033837027847766876, 0.5321174263954163, 0.13195329904556274, -0.45102840662002563, -0.5791230797767639, -0.42718705534935, 0.3839823305606842, 0.7254272699356079, -0.2756252586841583, 0.42690029740333557, -0.20839960873126984, -0.41631829738616943, -0.4512716829776764, 0.07373180985450745, 0.3213373124599457, 0.46495771408081055, 0.49393007159233093, -0.23517751693725586, -0.787972092628479, -0.8345574140548706, -0.3928724527359009, -0.16590705513954163, 0.02916708029806614, 0.13888421654701233, 0.4630878269672394, -0.030250433832406998, 0.8585518598556519, -1.0049349069595337, -0.6027929782867432, -0.39462539553642273, 0.28400760889053345, 0.5569532513618469, 0.41180574893951416, 0.562011182308197, -1.0276018381118774, -0.713068962097168, -0.29619300365448, -0.7357521653175354, 0.3043569326400757, -0.11115224659442902, -0.2743387222290039, 0.3802454471588135, 0.07784312963485718, -0.6776794195175171, 0.5050082802772522, 0.9079586863517761, -0.49985718727111816, 0.48929935693740845, 0.08722151070833206, -0.20290957391262054, -1.3448859453201294, 0.1334477961063385, 0.47159701585769653, -0.03775932639837265, -0.4134306013584137, 0.0028302352875471115, -0.17912939190864563, -0.2583167850971222, -0.3263435959815979, 0.5613594651222229, -0.3587416112422943, -0.04866984114050865, 0.10192195326089859, 0.32025253772735596, 0.016701828688383102, 0.42342743277549744, -0.03562941774725914, 0.7100167274475098, 0.6957361102104187, -0.21703994274139404, 0.150072380900383, 0.5279300808906555, -0.20204611122608185, 0.47993573546409607, -0.7931880950927734, 0.03134330362081528, 0.015333772636950016, 0.38605746626853943, -0.904751181602478, 0.026822036132216454, 0.2446879893541336, -0.7479754686355591, 0.22952274978160858, -0.2523452043533325, -0.38971859216690063, -0.27192074060440063, -0.42336133122444153, -0.0860481932759285, 0.6357313394546509, -0.38169893622398376, 1.0076760053634644, 0.49176737666130066, -0.49623018503189087, -0.6443015336990356, -0.5813038945198059, 0.09735547751188278, -0.42605888843536377, -1.0313093662261963, 0.3354533910751343, -0.18709006905555725, -0.39596062898635864, -0.0008655746350996196, 0.18366046249866486, -0.1233941912651062, -0.11622902750968933, 0.4186210036277771, 1.010848045349121, -0.15127424895763397, -0.09840001910924911, -0.36837485432624817, -0.39807313680648804, 0.13332369923591614, -0.40794920921325684, 0.6897241473197937, -0.5839750170707703, 0.15586768090724945, -0.4812559485435486, 0.2889171838760376, 0.5955605506896973, -0.3893193006515503, 0.9633015394210815, 0.6406815648078918, -0.10259594768285751, -0.03702010586857796, -0.3619561493396759, 0.027226105332374573, -0.48656171560287476, -0.017017358914017677, -0.13529309630393982, -0.42303720116615295, 0.5613042116165161, 0.03698807209730148, -0.20887407660484314, 0.8280848860740662, 0.4105585515499115, -0.04150617495179176, 1.0494354963302612, 0.7396570444107056, -0.27801796793937683, 0.4240482449531555, -0.7095049023628235, 0.4908919930458069, -0.7085326910018921, -0.2105591595172882, -0.7211451530456543, 0.0019297660328447819, -0.7440313100814819, -0.17310750484466553, 0.38760116696357727, -0.030189240351319313, -0.26083043217658997, 0.36354732513427734, -0.5305853486061096, 0.10689743608236313, 0.6534300446510315, 0.09530854225158691, 0.21736599504947662, -0.007921651937067509, 0.05569591745734215, -0.16032291948795319, -0.3329731822013855, -0.5652663111686707, 1.1795779466629028, 0.3980250954627991, 0.7839845418930054, 0.15048542618751526, 0.7370615005493164, 0.24755781888961792, 0.31804460287094116, -0.7632232308387756, 0.5404357314109802, -0.5488964915275574, -0.5603820085525513, -0.11904024332761765, -0.5574153065681458, -0.583299994468689, -0.11694228649139404, -0.3859553039073944, -0.686518669128418, 0.09204576909542084, -0.0030794753693044186, -0.4144193232059479, 0.1610480397939682, -0.699062705039978, 0.8679757118225098, -0.14576120674610138, -0.4057014584541321, -0.18860219419002533, -0.4512062966823578, 0.32997921109199524, 0.08104261010885239, 0.3407933712005615, 0.009733711369335651, 0.1824367642402649, 0.6577234864234924, -0.5520329475402832, 1.029058814048767, -0.33551543951034546, -0.13744887709617615, 0.36524319648742676, -0.1728707104921341, 0.6383396983146667, 0.05421345308423042, -0.22594484686851501, 0.2652116119861603, -0.10388527810573578, -0.44415804743766785, -0.3947536051273346, 0.7856838703155518, -0.7454288601875305, -0.37371253967285156, -0.7766677737236023, -0.4524845778942108, -0.14266255497932434, 0.029968734830617905, 0.16753505170345306, 0.19886414706707, -0.0224784966558218, 0.3502626419067383, 0.28185737133026123, -0.35867539048194885, 0.3820854127407074, 0.24771688878536224, -0.46565860509872437, -0.5768464803695679, 0.770118236541748, -0.004295434802770615, 0.1178654283285141, 0.12131533026695251, 0.2585452198982239, -0.5990602970123291, -0.16855742037296295, -0.23331724107265472, 0.3502807915210724, -0.4472517669200897, -0.38026440143585205, -0.797522246837616, -0.22389210760593414, -0.7409501671791077, -0.234573632478714, -0.38096344470977783, -0.37850242853164673, -0.2387719750404358, -0.19038718938827515, 0.6497794389724731, 0.5467327833175659, -0.16496147215366364, 0.2772537171840668, -0.7284479141235352, 0.22507797181606293, 0.13189086318016052, 0.3036222755908966, 0.09499423950910568, -0.38428476452827454, -0.003127666423097253, 0.10962948948144913, -0.4585253894329071, -0.7654668092727661, 0.8890919089317322, 0.09409026801586151, -0.03548234701156616, 0.360993355512619, 0.11680442094802856, 0.7872000932693481, -0.06488746404647827, 0.8277878761291504, 0.4446173906326294, -1.2331221103668213, 0.7019184827804565, -0.5113245844841003, 0.03660760074853897, 0.5311141610145569, 0.6041713356971741, -0.17921321094036102, -0.3913741111755371, -0.8965215086936951, -1.1162008047103882, 0.5910937190055847, 0.05420393496751785, 0.1812475621700287, -0.04985320195555687, -0.010466919280588627, -0.13201816380023956, 0.2190198451280594, -1.0537736415863037, -0.28623107075691223, -0.2736240327358246, -0.2429928481578827, -0.08476608991622925, -0.12299671769142151, -0.13500607013702393, -0.2384606897830963, 0.9562121033668518, -0.1394876390695572, 0.2818280756473541, 0.057832177728414536, 0.30972185730934143, -0.04016157239675522, 0.1687612235546112, 0.2849132716655731, 0.4282996952533722, -0.5617923140525818, -0.37049806118011475, 0.16693295538425446, -0.28694674372673035, -0.43947485089302063, 0.14257001876831055, -0.22578544914722443, 0.02567695640027523, 0.1469648778438568, 0.5163509845733643, 0.28757745027542114, -0.5176888704299927, 0.7711420655250549, -0.2295963168144226, -0.2522644102573395, -1.049191951751709, -0.2867439091205597, 0.22077573835849762, 0.3053407669067383, 0.5021072626113892, 0.304152250289917, 0.11467049270868301, -0.7941992878913879, 0.20394955575466156, 0.6321358680725098, -0.3559087812900543, -0.3084302842617035, 0.7031297087669373, 0.002709729364141822, -0.051065199077129364, 0.8326907157897949, -0.2326328307390213, -0.6748045086860657, 0.6468048691749573, 0.500639021396637, 1.028563141822815, 0.20037595927715302, 0.43616968393325806, 0.6562646627426147, -0.051167167723178864, 0.1103418692946434, 0.5625284314155579, 0.36691752076148987, -0.5851498246192932, -0.5894344449043274, -1.1648961305618286, -0.33904311060905457, 0.14181119203567505, -1.1621534824371338, 0.4474973678588867, -0.790371298789978, -0.45149731636047363, 0.45506495237350464, 0.07008200138807297, -0.7743412852287292, 0.4494248628616333, -0.14541465044021606, 0.8644181489944458, -0.7085986137390137, 0.5940144062042236, 0.5574358701705933, -1.0157148838043213, -0.972222089767456, 0.09731721132993698, 0.27143457531929016, -0.7359914183616638, 0.96315997838974, -0.05629872903227806, -0.2579568326473236, -0.16713625192642212, -0.7718023061752319, -0.8660323023796082, 0.8561508655548096, 0.07781112194061279, -0.3795655369758606, -0.16337238252162933, -0.19303931295871735, 0.542733371257782, -0.6008723378181458, 0.16831223666667938, 0.09507986158132553, 0.6454100012779236, 0.17638403177261353, -0.5925710797309875, -0.07569809257984161, -0.3575758635997772, -0.15062788128852844, 0.1410900354385376, -0.9448779225349426, 1.1031038761138916, -0.14386743307113647, -0.1700516641139984, 0.08487385511398315, 0.7193877100944519, 0.09420669078826904, 0.4253862202167511, 0.47744619846343994, 0.6136536002159119, 0.5477914810180664, -0.25042903423309326, 1.2640868425369263, -0.6318294405937195, 0.8406535983085632, 1.0991703271865845, -0.2727978527545929, 1.2627149820327759, 0.3537837564945221, -0.584789514541626, 0.8820397257804871, 0.21119186282157898, -0.36613890528678894, 0.24139852821826935, 0.17213517427444458, -0.23717355728149414, -0.18425950407981873, 0.03164136782288551, -0.3306996822357178, 0.7017941474914551, 0.11019311845302582, -0.43682265281677246, 0.05202725902199745, -0.15666401386260986, 0.22915014624595642, 0.17807579040527344, -0.06990525871515274, 0.767069935798645, 0.2569439113140106, -0.5083855390548706, 0.22047263383865356, -0.09498083591461182, 0.8208330273628235, -0.735418438911438, 0.17793700098991394, -0.1234203353524208, 0.37725114822387695, -0.2867579162120819, -0.6940215229988098, 0.6369350552558899, 0.42336493730545044, -0.3480754494667053, -0.48794764280319214, 0.5271754860877991, -0.19693207740783691, -0.7777112126350403, 0.6311142444610596, 0.38879191875457764, 0.09833085536956787, -0.04129903018474579, -0.8167746067047119, -0.007830137386918068, 0.1941150575876236, -0.3718756437301636, 0.40998944640159607, 0.17833945155143738, 0.5704420804977417, 0.6519017219543457, 0.9330756068229675, 0.2279137670993805, -0.22676163911819458, 0.10512048006057739, 0.8203269243240356, -0.8800852298736572, -0.5262537002563477, -0.6613627076148987, 0.7091076374053955, -0.27011463046073914, -0.4084632694721222, 0.919628918170929, 0.696488082408905, 0.7337565422058105, -0.29501503705978394, 0.8085113167762756, -0.10771699249744415, 0.6642144322395325, -0.5279897451400757, 0.7810867428779602, -0.6895854473114014, -0.02016630209982395, -0.5059250593185425, -0.9298843741416931, -0.3593614399433136, 0.8898554444313049, -0.4626810550689697, 0.23612357676029205, 0.5602112412452698, 0.7333698868751526, 0.09484311193227768, 0.35421785712242126, 0.013465640135109425, 0.5355621576309204, -0.07029823213815689, 0.23722565174102783, 0.3802573084831238, -0.5573193430900574, 0.6742751598358154, -0.16088388860225677, -0.1869315356016159, -0.0719192773103714, -0.9814896583557129, -0.6567016839981079, -0.6267406344413757, -0.5463619232177734, -0.8150547742843628, -0.10042860358953476, 0.8048655390739441, 0.588874340057373, -0.7592616677284241, -0.2851578891277313, -0.017818430438637733, -0.15319985151290894, -0.0060042100958526134, -0.3460542857646942, 0.549048662185669, -0.3240598738193512, -0.9740194082260132, 0.1971489042043686, 0.28835293650627136, 0.019360501319169998, -0.24512700736522675, 0.09238381683826447, -0.2249332070350647, 0.10855617374181747, 0.6263632774353027, 0.09396947920322418, -0.6666238307952881, -0.23363164067268372, 0.13637299835681915, 0.012333305552601814, -0.01793062500655651, 0.3183867633342743, -0.45428505539894104, 0.0258951298892498, 0.2526175379753113, 0.30403369665145874, 0.6125829815864563, 0.1998831033706665, 0.45035311579704285, -0.4423288106918335, 0.01605941168963909, 0.21309679746627808, 0.35764092206954956, 0.24493256211280823, -0.46814271807670593, 0.4414248466491699, 0.05942333862185478, -0.5288892388343811, -0.5399278402328491, 0.03881244361400604, -1.5153270959854126, -0.16715067625045776, 0.9581856727600098, -0.34716328978538513, -0.3453102111816406, 0.44511839747428894, -0.12380947172641754, 0.04934702813625336, -0.7353160381317139, 0.7531469464302063, 0.6938048005104065, -0.04046734794974327, 0.03194170072674751, -0.4322907626628876, 0.4721294045448303, 0.5728961229324341, -0.6851038336753845, 0.053109582513570786, 0.44207701086997986, 0.30365896224975586, 0.374770849943161, 0.5568264722824097, -0.33067160844802856, 0.06183696165680885, 0.21952654421329498, 0.21643571555614471, 0.27119892835617065, -0.2846396267414093, -0.315251886844635, 0.4819079041481018, -0.22699235379695892, -0.04613113775849342 ]
sshleifer/tiny-mbart
sshleifer
"2021-08-26T10:55:11Z"
21,003
7
transformers
[ "transformers", "pytorch", "tf", "mbart", "text2text-generation", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
facebook/mbart-large-50-one-to-many-mmt
facebook
"2023-03-28T10:00:25Z"
20,960
26
transformers
[ "transformers", "pytorch", "tf", "jax", "mbart", "text2text-generation", "mbart-50", "multilingual", "ar", "cs", "de", "en", "es", "et", "fi", "fr", "gu", "hi", "it", "ja", "kk", "ko", "lt", "lv", "my", "ne", "nl", "ro", "ru", "si", "tr", "vi", "zh", "af", "az", "bn", "fa", "he", "hr", "id", "ka", "km", "mk", "ml", "mn", "mr", "pl", "ps", "pt", "sv", "sw", "ta", "te", "th", "tl", "uk", "ur", "xh", "gl", "sl", "arxiv:2008.00401", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: - multilingual - ar - cs - de - en - es - et - fi - fr - gu - hi - it - ja - kk - ko - lt - lv - my - ne - nl - ro - ru - si - tr - vi - zh - af - az - bn - fa - he - hr - id - ka - km - mk - ml - mn - mr - pl - ps - pt - sv - sw - ta - te - th - tl - uk - ur - xh - gl - sl tags: - mbart-50 --- # mBART-50 one to many multilingual machine translation This model is a fine-tuned checkpoint of [mBART-large-50](https://huggingface.co/facebook/mbart-large-50). `mbart-large-50-one-to-many-mmt` is fine-tuned for multilingual machine translation. It was introduced in [Multilingual Translation with Extensible Multilingual Pretraining and Finetuning](https://arxiv.org/abs/2008.00401) paper. The model can translate English to other 49 languages mentioned below. To translate into a target language, the target language id is forced as the first generated token. To force the target language id as the first generated token, pass the `forced_bos_token_id` parameter to the `generate` method. ```python from transformers import MBartForConditionalGeneration, MBart50TokenizerFast article_en = "The head of the United Nations says there is no military solution in Syria" model = MBartForConditionalGeneration.from_pretrained("facebook/mbart-large-50-one-to-many-mmt") tokenizer = MBart50TokenizerFast.from_pretrained("facebook/mbart-large-50-one-to-many-mmt", src_lang="en_XX") model_inputs = tokenizer(article_en, return_tensors="pt") # translate from English to Hindi generated_tokens = model.generate( **model_inputs, forced_bos_token_id=tokenizer.lang_code_to_id["hi_IN"] ) tokenizer.batch_decode(generated_tokens, skip_special_tokens=True) # => 'संयुक्त राष्ट्र के नेता कहते हैं कि सीरिया में कोई सैन्य समाधान नहीं है' # translate from English to Chinese generated_tokens = model.generate( **model_inputs, forced_bos_token_id=tokenizer.lang_code_to_id["zh_CN"] ) tokenizer.batch_decode(generated_tokens, skip_special_tokens=True) # => '联合国首脑说,叙利亚没有军事解决办法' ``` See the [model hub](https://huggingface.co/models?filter=mbart-50) to look for more fine-tuned versions. ## Languages covered Arabic (ar_AR), Czech (cs_CZ), German (de_DE), English (en_XX), Spanish (es_XX), Estonian (et_EE), Finnish (fi_FI), French (fr_XX), Gujarati (gu_IN), Hindi (hi_IN), Italian (it_IT), Japanese (ja_XX), Kazakh (kk_KZ), Korean (ko_KR), Lithuanian (lt_LT), Latvian (lv_LV), Burmese (my_MM), Nepali (ne_NP), Dutch (nl_XX), Romanian (ro_RO), Russian (ru_RU), Sinhala (si_LK), Turkish (tr_TR), Vietnamese (vi_VN), Chinese (zh_CN), Afrikaans (af_ZA), Azerbaijani (az_AZ), Bengali (bn_IN), Persian (fa_IR), Hebrew (he_IL), Croatian (hr_HR), Indonesian (id_ID), Georgian (ka_GE), Khmer (km_KH), Macedonian (mk_MK), Malayalam (ml_IN), Mongolian (mn_MN), Marathi (mr_IN), Polish (pl_PL), Pashto (ps_AF), Portuguese (pt_XX), Swedish (sv_SE), Swahili (sw_KE), Tamil (ta_IN), Telugu (te_IN), Thai (th_TH), Tagalog (tl_XX), Ukrainian (uk_UA), Urdu (ur_PK), Xhosa (xh_ZA), Galician (gl_ES), Slovene (sl_SI) ## BibTeX entry and citation info ``` @article{tang2020multilingual, title={Multilingual Translation with Extensible Multilingual Pretraining and Finetuning}, author={Yuqing Tang and Chau Tran and Xian Li and Peng-Jen Chen and Naman Goyal and Vishrav Chaudhary and Jiatao Gu and Angela Fan}, year={2020}, eprint={2008.00401}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.5359107851982117, -0.4221167266368866, 0.06019016355276108, 0.49283847212791443, -0.38062894344329834, 0.11196255683898926, -0.3826659023761749, -0.37378615140914917, 0.2946346402168274, 0.19212476909160614, -0.6327897310256958, -0.6237202882766724, -0.6910894513130188, 0.2883761525154114, -0.12681059539318085, 1.1217234134674072, -0.1759161353111267, 0.2945629954338074, 0.24415276944637299, -0.40791091322898865, -0.21475200355052948, -0.4734082520008087, -0.4647764563560486, -0.14411354064941406, 0.24017778038978577, 0.43774163722991943, 0.5172457098960876, 0.4739586114883423, 0.688053548336029, 0.3531223237514496, -0.28314971923828125, 0.1485472470521927, -0.16461358964443207, -0.34172317385673523, -0.192365825176239, -0.2851022779941559, -0.7631675601005554, -0.13454346358776093, 0.7814624309539795, 0.5810772776603699, 0.02568897418677807, 0.5015095472335815, 0.046319033950567245, 0.7163619995117188, -0.37910181283950806, 0.11190120875835419, -0.3127480447292328, 0.08375664800405502, -0.4311062693595886, 0.07148537039756775, -0.3654697835445404, -0.3592452108860016, -0.15202344954013824, -0.4101592004299164, -0.02608194574713707, -0.03073778748512268, 1.1543217897415161, -0.08867929130792618, -0.6058732867240906, -0.0981912761926651, -0.5688847899436951, 0.8938974142074585, -0.9138549566268921, 0.5737131237983704, 0.5484187602996826, 0.2785358130931854, -0.12237526476383209, -0.684456467628479, -0.7050147652626038, -0.0334179624915123, -0.171902135014534, 0.38219091296195984, -0.14463497698307037, -0.1697249412536621, 0.2438146024942398, 0.3980274796485901, -0.8883458971977234, -0.13762979209423065, -0.6569798588752747, -0.1297796666622162, 0.4958811402320862, -0.015111302956938744, 0.42649808526039124, -0.4766896963119507, -0.5250318646430969, -0.0009611139539629221, -0.5492384433746338, 0.33330947160720825, 0.1739427149295807, 0.4526664614677429, -0.6161024570465088, 0.8042258620262146, -0.4141753613948822, 0.842500627040863, 0.11609981209039688, -0.30737173557281494, 0.6037734150886536, -0.7722997665405273, -0.12057723104953766, -0.1476466804742813, 1.1483347415924072, 0.2855711281299591, 0.3286062777042389, 0.05485503375530243, 0.005028530955314636, -0.21668599545955658, -0.16898459196090698, -0.9052830934524536, 0.1595572680234909, 0.2777266502380371, -0.5484693646430969, 0.034287597984075546, 0.30134984850883484, -0.7692338228225708, 0.19602587819099426, -0.01271669939160347, 0.25683271884918213, -0.7511930465698242, -0.41234084963798523, -0.02474283054471016, 0.11666678637266159, 0.4282113015651703, 0.08156108856201172, -0.8150656223297119, -0.07211113721132278, 0.3966016471385956, 0.9467132091522217, 0.07635624706745148, -0.6625814437866211, -0.27249249815940857, 0.24346940219402313, -0.3402315378189087, 0.5533971190452576, -0.3962675929069519, -0.4136158525943756, -0.0850159153342247, 0.3559035658836365, -0.15656395256519318, -0.30376914143562317, 0.6179373860359192, -0.18090498447418213, 0.32494571805000305, -0.4561570882797241, -0.14476844668388367, -0.33232346177101135, 0.43457141518592834, -0.6464462280273438, 1.1270865201950073, 0.2743985950946808, -0.774967610836029, 0.3839702308177948, -0.6662523746490479, -0.6126725673675537, 0.003619315568357706, -0.04449378326535225, -0.5673378109931946, -0.14728274941444397, 0.31268349289894104, 0.41740766167640686, -0.37461718916893005, 0.28095245361328125, -0.09040852636098862, -0.24338436126708984, -0.03313145041465759, -0.18109022080898285, 1.18728506565094, 0.5100944638252258, -0.39562854170799255, 0.19321134686470032, -0.7895371317863464, 0.1314215511083603, 0.24885915219783783, -0.5385397672653198, -0.04757982864975929, -0.3207927644252777, 0.09815429151058197, 0.746386706829071, 0.26049765944480896, -0.6577441096305847, 0.19287161529064178, -0.52498459815979, 0.3607023060321808, 0.5034494400024414, -0.06094128265976906, 0.4007219076156616, -0.3841498792171478, 0.7213818430900574, 0.29895588755607605, 0.1903536468744278, -0.3010166585445404, -0.5866817235946655, -0.7611945271492004, -0.4364873170852661, 0.19775749742984772, 0.7482277750968933, -0.7376956343650818, 0.3985152244567871, -0.5058771371841431, -0.5931165814399719, -0.7529667019844055, 0.2478545904159546, 0.5892748832702637, 0.23739126324653625, 0.42794710397720337, -0.358982652425766, -0.570589542388916, -0.7973694801330566, -0.23409761488437653, -0.2299492508172989, 0.16915544867515564, 0.20840196311473846, 0.643101155757904, -0.2649555504322052, 0.7447782754898071, -0.15546494722366333, -0.4017622470855713, -0.2943926155567169, -0.08523420244455338, 0.3048591613769531, 0.7366350889205933, 0.6833793520927429, -0.9436166286468506, -0.8663915991783142, 0.4662667512893677, -0.616854190826416, 0.27621448040008545, -0.028402814641594887, -0.3178859353065491, 0.4774341583251953, 0.3706505596637726, -0.588416576385498, 0.36285799741744995, 0.7688801884651184, -0.4428558051586151, 0.635636568069458, -0.09819959104061127, 0.40192729234695435, -1.6379835605621338, 0.3520585596561432, -0.1144338846206665, -0.07828918099403381, -0.5452211499214172, 0.04143668711185455, 0.24644945561885834, -0.06814183294773102, -0.6758854389190674, 0.8209273815155029, -0.6163301467895508, 0.3862617313861847, 0.11322763562202454, 0.08426171541213989, -0.11357337236404419, 0.522106409072876, -0.11963968724012375, 0.7410292625427246, 0.46997854113578796, -0.4775664806365967, 0.39613115787506104, 0.4132400155067444, -0.2405635118484497, 0.7406843304634094, -0.5494363903999329, -0.19694004952907562, -0.0973530039191246, 0.27524977922439575, -1.1128166913986206, -0.27037808299064636, 0.4313008189201355, -0.8084102272987366, 0.33554807305336, -0.1787838190793991, -0.5589291453361511, -0.6845386028289795, -0.21939529478549957, 0.4331870973110199, 0.2684449851512909, -0.36785057187080383, 0.5318772792816162, 0.05280514061450958, -0.2448805719614029, -0.7402145862579346, -1.0992119312286377, 0.12304512411355972, -0.1462988257408142, -0.672458827495575, 0.22999884188175201, -0.1443556547164917, 0.11271382868289948, 0.11912914365530014, -0.0365009568631649, -0.11264096945524216, -0.046726666390895844, 0.18992316722869873, 0.28627949953079224, -0.3804629147052765, 0.1192958801984787, 0.06117533519864082, -0.015779126435518265, -0.2484700083732605, -0.2908315062522888, 0.750786542892456, -0.21976543962955475, -0.37235763669013977, -0.4522676169872284, 0.5037379264831543, 0.703914999961853, -0.9929092526435852, 1.1322962045669556, 1.1543747186660767, -0.39213070273399353, 0.23988023400306702, -0.47498026490211487, 0.043010860681533813, -0.43323561549186707, 0.6698336005210876, -0.8892183899879456, -0.8163906931877136, 0.8218215703964233, -0.12731996178627014, 0.08186372369527817, 0.7939283847808838, 0.9767558574676514, 0.29873126745224, 1.0067501068115234, 0.6540572047233582, -0.17773324251174927, 0.5783110857009888, -0.3549538850784302, 0.11064662784337997, -0.762113630771637, -0.4074695110321045, -0.6178188323974609, 0.0035520249512046576, -0.9967055320739746, -0.5047060251235962, 0.14546222984790802, 0.050045695155858994, -0.39155876636505127, 0.46762311458587646, -0.49128463864326477, 0.14444544911384583, 0.6718890070915222, 0.09358187764883041, 0.19038835167884827, 0.009632567875087261, -0.4772804081439972, -0.08383242785930634, -0.6798267364501953, -0.5796103477478027, 1.1329824924468994, 0.16133767366409302, 0.42664146423339844, 0.49500367045402527, 0.757423996925354, -0.2527819871902466, 0.2610177993774414, -0.6074913740158081, 0.5114452838897705, -0.3651125133037567, -1.0473644733428955, -0.17691467702388763, -0.5028030872344971, -0.9632257223129272, 0.13850009441375732, -0.17631107568740845, -0.7144062519073486, 0.24454255402088165, -0.11803355813026428, -0.3213719427585602, 0.24564124643802643, -0.8368009924888611, 1.0312293767929077, -0.36366814374923706, -0.27678191661834717, -0.040652547031641006, -0.8576881289482117, 0.5492350459098816, -0.2503145635128021, 0.30350619554519653, -0.17602430284023285, 0.054817210882902145, 0.7863544821739197, -0.2116081863641739, 0.6064165234565735, 0.04298771917819977, 0.0002914929937105626, 0.17752113938331604, -0.09487713873386383, 0.4077150225639343, -0.009989216923713684, -0.24227915704250336, 0.2440190315246582, 0.1441178172826767, -0.7567746639251709, -0.1918853521347046, 0.6205276846885681, -0.8018020391464233, -0.506900429725647, -0.5598431825637817, -0.576245129108429, 0.06988228112459183, 0.7286885380744934, 0.5511652231216431, 0.0823391005396843, -0.17577825486660004, 0.23424457013607025, 0.2642798125743866, -0.3933883309364319, 0.4134337902069092, 0.4909219443798065, -0.2770948112010956, -0.628892183303833, 0.9689180850982666, 0.2882225215435028, 0.4092104732990265, 0.3621063530445099, 0.08293572068214417, -0.10984588414430618, -0.17980407178401947, -0.6561790108680725, 0.5438699126243591, -0.5204742550849915, -0.15170730650424957, -0.648426353931427, -0.18055616319179535, -0.8579779863357544, -0.09826048463582993, -0.5093446969985962, -0.3719402253627777, -0.12625256180763245, 0.0762747973203659, 0.27955374121665955, 0.49553653597831726, -0.06111590936779976, 0.29927271604537964, -0.8084462285041809, 0.48125386238098145, -0.055146269500255585, 0.313041090965271, -0.11514147371053696, -0.7136431932449341, -0.6278703212738037, 0.2161819338798523, -0.3786388635635376, -1.0036983489990234, 0.4784868359565735, 0.3271028995513916, 0.6055274605751038, 0.546656608581543, 0.058661025017499924, 0.8598862886428833, -0.5972978472709656, 0.7869396805763245, 0.3459838926792145, -1.0203520059585571, 0.6040456891059875, -0.3614956736564636, 0.6831774115562439, 0.5712093710899353, 0.7319964170455933, -0.9157739281654358, -0.49498823285102844, -0.40832969546318054, -1.0532944202423096, 0.843773365020752, 0.059686992317438126, 0.2540094256401062, 0.015752192586660385, 0.08777369558811188, -0.08912229537963867, 0.10918376594781876, -0.9330436587333679, -0.6100488901138306, -0.27859047055244446, -0.33712348341941833, -0.2916766107082367, -0.32611021399497986, -0.16487671434879303, -0.5205104947090149, 0.7912541627883911, 0.11278824508190155, 0.3344709575176239, 0.2224137783050537, 0.0204346664249897, -0.1988038420677185, 0.38401609659194946, 0.8927563428878784, 0.6776298880577087, -0.1637393683195114, 0.025469185784459114, 0.25144755840301514, -0.6569975018501282, 0.15714240074157715, 0.2984543442726135, -0.05163266509771347, 0.17742465436458588, 0.3824617862701416, 0.8138211965560913, -0.08951253443956375, -0.4115389883518219, 0.42326369881629944, 0.07242192327976227, -0.16598357260227203, -0.328242689371109, -0.33876481652259827, 0.26142004132270813, 0.31479310989379883, 0.4344308376312256, -0.003613770240917802, -0.18753677606582642, -0.6608631014823914, 0.26147523522377014, 0.5247628092765808, -0.35254189372062683, -0.4404216706752777, 0.7894980907440186, 0.0934082418680191, -0.2031063735485077, 0.5445569753646851, -0.4335700273513794, -0.8363618850708008, 0.4324471950531006, 0.6088638305664062, 0.7762512564659119, -0.6993223428726196, 0.20043614506721497, 0.8263064026832581, 0.7068414688110352, -0.03437860682606697, 0.4169464409351349, 0.08425027877092361, -0.5139249563217163, -0.38822296261787415, -0.7660596966743469, -0.12045546621084213, -0.07642810791730881, -0.73358154296875, 0.4053625762462616, -0.12161603569984436, -0.385650098323822, -0.13469739258289337, 0.21643571555614471, -0.7385788559913635, 0.2069871723651886, -0.08865079283714294, 0.8267335295677185, -0.9882312417030334, 1.1662358045578003, 1.075265645980835, -0.6760634779930115, -0.9982385635375977, -0.028923075646162033, -0.1017979308962822, -0.5937455296516418, 0.6796930432319641, -0.005259564146399498, 0.21586300432682037, 0.19999931752681732, -0.28255465626716614, -0.9350940585136414, 1.0364625453948975, 0.4114757180213928, -0.37539273500442505, 0.14083215594291687, 0.32023823261260986, 0.46374472975730896, -0.11181434988975525, 0.10674341022968292, 0.3776685893535614, 0.7137331366539001, 0.12967871129512787, -1.2924647331237793, 0.28071168065071106, -0.6064212918281555, -0.20451030135154724, 0.1648579239845276, -0.9748995304107666, 1.1475450992584229, -0.3799641728401184, -0.07260692864656448, 0.06901940703392029, 0.6193128228187561, 0.46037107706069946, 0.2874962091445923, 0.14805153012275696, 0.5129657983779907, 0.5590822696685791, -0.1261024922132492, 0.9162240624427795, -0.4825451672077179, 0.5565786957740784, 0.9046149849891663, 0.10397445410490036, 0.9053285717964172, 0.6187832355499268, -0.4006248116493225, 0.2590465843677521, 0.6402682662010193, -0.024024400860071182, 0.37611204385757446, -0.09141787141561508, -0.20212920010089874, -0.1450231671333313, -0.2626630663871765, -0.6249252557754517, 0.5938104391098022, 0.035389188677072525, -0.48846858739852905, -0.0567590594291687, 0.1686469167470932, 0.5318989753723145, -0.22271551191806793, -0.09632328897714615, 0.5263859629631042, 0.18663734197616577, -0.6814442873001099, 0.8529606461524963, 0.2281969040632248, 0.78098064661026, -0.7616713643074036, 0.10914237797260284, -0.33878451585769653, 0.28653788566589355, -0.2323005050420761, -0.5799345374107361, 0.15939748287200928, 0.10367410629987717, -0.2804269790649414, -0.10245277732610703, 0.2820284068584442, -0.7689099907875061, -1.0051509141921997, 0.2835933268070221, 0.6810981035232544, 0.21673762798309326, 0.07112183421850204, -0.8318653702735901, -0.04583891108632088, 0.23868787288665771, -0.5923078656196594, 0.2517414689064026, 0.6934576034545898, -0.14187580347061157, 0.6307110786437988, 0.6374938488006592, 0.34032976627349854, 0.3158923387527466, -0.24304966628551483, 0.7997748255729675, -0.7538789510726929, -0.4159751236438751, -1.01054048538208, 0.5629729628562927, 0.21910442411899567, -0.5146148800849915, 1.2576435804367065, 0.7663987874984741, 1.0572328567504883, -0.06255286186933517, 0.7291297912597656, -0.2880542576313019, 0.42269381880760193, -0.27242857217788696, 1.0093271732330322, -0.9643364548683167, -0.2141152173280716, -0.5493205189704895, -0.7800455093383789, -0.44814419746398926, 0.6338189244270325, -0.2644141912460327, 0.44714289903640747, 0.6675010323524475, 0.6495142579078674, -0.04417053982615471, -0.49708330631256104, 0.24568045139312744, 0.31640028953552246, 0.23458437621593475, 0.7057424783706665, 0.28455284237861633, -0.5106943249702454, 0.7763314247131348, -0.4991258978843689, -0.049321167171001434, -0.2211654782295227, -0.6263269782066345, -0.7518038749694824, -0.7809916138648987, -0.19884377717971802, -0.4751753807067871, -0.12497945874929428, 1.0894430875778198, 0.718671977519989, -0.9936474561691284, -0.36701107025146484, 0.2898728549480438, 0.08576762676239014, -0.38722920417785645, -0.13638198375701904, 0.6012649536132812, -0.012935270555317402, -1.008122205734253, 0.02831648476421833, 0.07472150027751923, 0.24132683873176575, -0.12207601219415665, -0.33803755044937134, -0.6428493857383728, -0.04381071403622627, 0.7084423899650574, 0.3393102288246155, -0.7293918132781982, 0.1269562989473343, 0.14243362843990326, -0.39278391003608704, 0.0751182958483696, 0.19337737560272217, -0.3057484030723572, 0.5472993850708008, 0.47060519456863403, 0.32787302136421204, 0.5751104950904846, 0.03609619662165642, 0.28299984335899353, -0.6453201770782471, 0.5165656805038452, 0.003794217947870493, 0.30064743757247925, 0.3237934410572052, -0.13827061653137207, 0.5604051351547241, 0.2605443000793457, -0.4079820513725281, -1.044459342956543, 0.06954745948314667, -1.125794529914856, -0.18415765464305878, 1.3255788087844849, -0.4338969588279724, -0.3350028693675995, 0.018774330615997314, -0.2097395807504654, 0.7079206705093384, -0.25845232605934143, 0.4060373902320862, 0.8556259274482727, 0.22877417504787445, -0.19905507564544678, -0.777107298374176, 0.2661878168582916, 0.5373918414115906, -0.7848595380783081, -0.14642426371574402, 0.052182089537382126, 0.23402652144432068, 0.2641020715236664, 0.7043794989585876, -0.2381514012813568, 0.38197755813598633, -0.17680759727954865, 0.4730968475341797, -0.02096717059612274, -0.06476006656885147, -0.2885414958000183, -0.16190382838249207, 0.10282415896654129, -0.36254191398620605 ]
microsoft/graphcodebert-base
microsoft
"2022-09-26T17:06:54Z"
20,944
25
transformers
[ "transformers", "pytorch", "tf", "jax", "roberta", "fill-mask", "arxiv:2009.08366", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
## GraphCodeBERT model GraphCodeBERT is a graph-based pre-trained model based on the Transformer architecture for programming language, which also considers data-flow information along with code sequences. GraphCodeBERT consists of 12 layers, 768 dimensional hidden states, and 12 attention heads. The maximum sequence length for the model is 512. The model is trained on the CodeSearchNet dataset, which includes 2.3M functions with document pairs for six programming languages. More details can be found in the [paper](https://arxiv.org/abs/2009.08366) by Guo et. al. **Disclaimer:** The team releasing BERT did not write a model card for this model so this model card has been written by the Hugging Face community members.
[ -0.5108221769332886, -0.5402935743331909, 0.3110610842704773, 0.22404845058918, -0.05046351999044418, 0.38905781507492065, 0.2194681167602539, -0.4876262843608856, 0.13580599427223206, 0.7950922250747681, -0.5883405208587646, -0.7292603254318237, -0.8264120221138, -0.1240651085972786, -0.7240748405456543, 1.280578851699829, 0.11144412308931351, -0.011054979637265205, -0.025957578793168068, 0.08090905845165253, -0.11395002901554108, -0.6657977104187012, -0.26541784405708313, -0.43509575724601746, 0.5727141499519348, 0.114370197057724, 1.0086637735366821, 0.6108257174491882, 0.4435751140117645, 0.22470834851264954, -0.22909681499004364, -0.21114787459373474, -0.8374456763267517, -0.41731712222099304, 0.3748551905155182, -0.6179556846618652, -0.5774058103561401, 0.010418549180030823, 0.4374393820762634, 0.8106792569160461, 0.2671930193901062, 0.28678157925605774, 0.03416982293128967, 0.8787533044815063, -0.41323617100715637, 0.44083473086357117, -0.27246084809303284, 0.18328198790550232, 0.16446486115455627, 0.28235939145088196, -0.6970643401145935, -0.5973054766654968, 0.2886549234390259, -0.17766466736793518, 0.21663230657577515, -0.08694019913673401, 0.8792030215263367, 0.05496685206890106, -0.49180924892425537, -0.19177810847759247, -0.7605636119842529, 0.4071601927280426, -0.5051632523536682, 0.3889026939868927, 0.03995707631111145, 0.3652178943157196, 0.15525873005390167, -1.3118715286254883, -0.30195507407188416, 0.10430824756622314, -0.20996098220348358, -0.12347248196601868, -0.4585258364677429, 0.28558042645454407, 0.6774536371231079, 0.09874866157770157, -0.776383101940155, -0.1745661348104477, -0.7997815012931824, -0.2139514684677124, 0.7212063074111938, 0.18198347091674805, 0.2516782283782959, -0.2650853097438812, -0.5139364004135132, -0.09815442562103271, -0.4940926730632782, 0.24339911341667175, 0.5590918064117432, 0.10817084461450577, -0.26865363121032715, 0.32689547538757324, 0.19490286707878113, 1.0895417928695679, -0.06766194105148315, 0.20799404382705688, 0.5074153542518616, 0.07567708939313889, -0.468231201171875, -0.007061870768666267, 0.8397476077079773, -0.058096744120121, 0.4673677682876587, -0.3548797070980072, -0.2284267544746399, 0.37395012378692627, 0.5139928460121155, -0.8702492713928223, -0.7530987858772278, 0.2892208695411682, -0.6461078524589539, -0.6320574283599854, 0.01195839885622263, -0.49634864926338196, -0.17957936227321625, -0.03865257278084755, 0.2660716474056244, -0.6761284470558167, -0.18765400350093842, -0.062142591923475266, -0.23710514605045319, 0.2544096112251282, 0.09429940581321716, -0.5361227989196777, 0.396811842918396, 0.5396084189414978, 0.8385107517242432, -0.028276164084672928, -0.33021074533462524, -0.0503903292119503, -0.2980510890483856, -0.5424545407295227, 0.6051581501960754, -0.9506503939628601, -0.38651251792907715, 0.052663449198007584, 0.17482484877109528, -0.2305905967950821, -0.18403837084770203, 0.472026526927948, -0.9262956976890564, -0.022026820108294487, -0.01248641312122345, -0.696628212928772, -0.46874281764030457, -0.008358433842658997, -0.9443545341491699, 1.0096726417541504, 0.47142547369003296, -0.760894238948822, 0.0979992225766182, -0.6744644045829773, -0.27849727869033813, 0.2232758104801178, -0.2200983762741089, -0.43205586075782776, -0.1996246874332428, 0.1655409038066864, 0.37967994809150696, 0.07071071863174438, 0.3145221471786499, -0.28164541721343994, -0.5749369263648987, 0.13067591190338135, 0.03223762661218643, 1.2272846698760986, 0.37675267457962036, -0.20633237063884735, 0.422537624835968, -0.8888405561447144, 0.3124430179595947, 0.17405270040035248, -0.21762719750404358, 0.2182929813861847, -0.23059004545211792, 0.12807311117649078, 0.4438774883747101, 0.19691981375217438, -0.4475053548812866, 0.2920874059200287, -0.2946820557117462, 0.9572970867156982, 0.5281147360801697, -0.22451673448085785, 0.3331396281719208, -0.37558621168136597, 0.8338778614997864, -0.04817759618163109, 0.29609113931655884, -0.49121639132499695, -0.6726570129394531, -0.699519157409668, -0.3892342746257782, 0.4597063362598419, 0.5593865513801575, -0.5044378638267517, 0.6267539262771606, -0.24589596688747406, -0.8640046715736389, -0.310556024312973, -0.08200518041849136, 0.4627701938152313, 0.23196688294410706, 0.07640927284955978, -0.2734615206718445, -0.49668383598327637, -0.9609900712966919, 0.16852179169654846, 0.09055962413549423, 0.22328141331672668, 0.3954586088657379, 0.5947458148002625, -0.5159245133399963, 0.8970947265625, -0.7619960904121399, -0.003969421144574881, -0.4865100681781769, 0.17556153237819672, 0.5089505314826965, 0.25427278876304626, 0.950782299041748, -0.6472062468528748, -0.47702711820602417, -0.49175646901130676, -0.7055545449256897, 0.2748448848724365, 0.20776236057281494, -0.40865737199783325, 0.009888211265206337, 0.46858784556388855, -0.6961504220962524, 0.6143866777420044, 0.9682236313819885, -0.08070371299982071, 0.4262634813785553, -0.0392368845641613, -0.32715702056884766, -0.9084340929985046, 0.22001893818378448, -0.09052024036645889, -0.3741934597492218, -0.7943960428237915, 0.19196955859661102, 0.33510255813598633, -0.8796065449714661, -0.3944791853427887, 0.18214888870716095, -0.5797178745269775, -0.22651487588882446, -0.21783766150474548, 0.061105187982320786, 0.06229256093502045, 0.9110425114631653, -0.09474441409111023, 0.5570761561393738, 1.070647954940796, -0.6040290594100952, 0.5480203032493591, 0.4670882225036621, -0.19707751274108887, 0.01847255229949951, -0.9304251670837402, 0.6680417060852051, -0.29053908586502075, 0.391044557094574, -1.328288197517395, -0.0028339133132249117, 0.028383813798427582, -0.620811402797699, 0.29824215173721313, -0.24564145505428314, -0.5096254944801331, -0.9090148210525513, -0.21828407049179077, 0.37139075994491577, 0.6742908358573914, -0.5135424733161926, 0.6471590399742126, 0.49369874596595764, 0.17783254384994507, -0.6127641797065735, -0.6054452657699585, -0.04482865706086159, 0.20620357990264893, -0.9824137687683105, 0.1789485663175583, -0.15596136450767517, 0.26057225465774536, 0.15669727325439453, 0.16284973919391632, -0.24516573548316956, -0.14531677961349487, 0.529019296169281, 0.5629199743270874, 0.02938501350581646, 0.12497501075267792, -0.21111546456813812, -0.09084112197160721, 0.18816521763801575, -0.39713120460510254, 0.9798848628997803, -0.5278733968734741, -0.04178611561655998, -0.2801162302494049, 0.1866811215877533, 0.6434825658798218, -0.40806281566619873, 0.6767278909683228, 0.4178110957145691, -0.41241225600242615, -0.25848188996315, 0.09058106690645218, 0.015261592343449593, -0.5085669159889221, 0.43091118335723877, -0.4450490474700928, -0.8977780342102051, 0.8067747950553894, 0.05908054858446121, -0.09047238528728485, 0.4239579737186432, 0.4587412178516388, 0.18626205623149872, 1.248138189315796, 0.8221139311790466, -0.3873329758644104, 0.3794132173061371, -0.685829222202301, 0.4795849025249481, -0.593916654586792, -0.2815205156803131, -0.4192555546760559, -0.41778695583343506, -0.6042012572288513, -0.2390230894088745, 0.12491945922374725, 0.1774563044309616, -0.5886911749839783, 0.9200214743614197, -1.0056726932525635, 0.14852389693260193, 0.7165632843971252, 0.34244829416275024, -0.21634897589683533, -0.17472781240940094, -0.11460895836353302, 0.2577960789203644, -0.9047324061393738, -0.40435004234313965, 1.115347981452942, 0.477922260761261, 1.0090872049331665, -0.08635424822568893, 0.7085254192352295, 0.3674406111240387, 0.14409250020980835, -0.7070997953414917, 0.6065894961357117, 0.06136281415820122, -0.8467035889625549, -0.33212581276893616, -0.3144929111003876, -0.9460399746894836, -0.0905369445681572, -0.1057727262377739, -0.9036422967910767, 0.03692825883626938, 0.28289252519607544, -0.07882646471261978, 0.2541367709636688, -0.8177867531776428, 1.001475214958191, -0.2711963653564453, 0.14762356877326965, 0.10057959705591202, -0.8178328275680542, 0.36968737840652466, -0.010305602103471756, -0.008550613187253475, 0.07722004503011703, 0.6052641272544861, 0.8526633977890015, -0.4114100933074951, 0.9167982339859009, -0.22959724068641663, 0.09142348915338516, 0.5139437317848206, 0.13014887273311615, 0.7979333400726318, -0.33052459359169006, 0.2678718864917755, 0.4419640004634857, 0.046384211629629135, -0.47561976313591003, -0.4377903640270233, 0.5004822611808777, -1.0724462270736694, -0.27910587191581726, -0.16708609461784363, -0.4533129930496216, -0.16274642944335938, 0.4666283130645752, 0.5029134154319763, 0.5710105895996094, 0.0012137742014601827, 0.12365257740020752, 0.5203111171722412, -0.371872216463089, 0.3541872501373291, -0.05951940268278122, -0.511546790599823, -0.23702910542488098, 0.7908728122711182, 0.050200771540403366, 0.1593806892633438, 0.23565945029258728, -0.15896975994110107, -0.0635605901479721, -0.11757594347000122, -0.3637160658836365, 0.3627345561981201, -0.9602195024490356, -0.09696929156780243, -0.9498850107192993, -0.9098547101020813, -0.6010960936546326, -0.19931986927986145, -0.43425697088241577, -0.31409952044487, -0.20631043612957, -0.20821499824523926, 0.30719444155693054, 0.8291608691215515, 0.3458148241043091, 0.39915141463279724, -0.9090086817741394, 0.07893233001232147, 0.27422288060188293, 0.6628638505935669, 0.069227434694767, -0.38784220814704895, -0.2346111536026001, -0.21409572660923004, -0.30499979853630066, -0.9707369208335876, 0.4641215205192566, 0.030559116974473, 0.6868413686752319, 0.40545180439949036, -0.015796607360243797, 0.30190250277519226, -0.5083418488502502, 0.6687462329864502, 0.3495502769947052, -1.219038963317871, 0.5947369933128357, -0.1361606866121292, 0.23646356165409088, -0.03677557408809662, 0.7552763819694519, -0.43331217765808105, -0.4861702024936676, -0.8120822310447693, -0.717555582523346, 0.799299418926239, 0.2092927098274231, 0.339006632566452, 0.09791570901870728, 0.24141749739646912, -0.119192935526371, 0.3034907579421997, -0.861976146697998, -0.6287630796432495, -0.5517473220825195, -0.22606508433818817, 0.10676833987236023, -0.476676881313324, -0.25261035561561584, -0.3136739432811737, 0.29572635889053345, -0.29377347230911255, 0.9294012784957886, -0.09540437906980515, -0.24335208535194397, 0.08591246604919434, -0.22844134271144867, 0.6106733679771423, 0.9314661622047424, -0.2575593888759613, 0.048125192523002625, -0.20722359418869019, -0.45532849431037903, -0.13173747062683105, 0.23816394805908203, -0.04084615781903267, -0.01188769843429327, 0.6544055342674255, 1.1966100931167603, 0.03291646018624306, -0.5950735211372375, 0.6778686046600342, 0.09831327944993973, -0.5257762670516968, -0.48900681734085083, 0.2915453612804413, 0.19938316941261292, 0.4321618676185608, 0.1910591423511505, 0.14608260989189148, 0.08360528945922852, -0.29719704389572144, 0.4460499882698059, 0.26066359877586365, -0.8092528581619263, -0.3605961501598358, 0.9545906782150269, 0.10248083621263504, -0.4304220974445343, 0.83918696641922, 0.1012749969959259, -0.8187316060066223, 0.8717371225357056, 0.4393170475959778, 0.6529881358146667, 0.039051540195941925, 0.32755106687545776, 0.4742398262023926, 0.3001980781555176, 0.2878649830818176, 0.254841685295105, 0.07283072173595428, -0.7972126007080078, -0.20373499393463135, -0.2580169439315796, -0.2127041071653366, 0.11424914747476578, -0.8095045685768127, 0.3313060700893402, -0.7253486514091492, -0.3975265920162201, 0.33711275458335876, -0.2533547282218933, -0.8683024048805237, 0.19297142326831818, 0.29219987988471985, 1.2701388597488403, -0.8602791428565979, 1.07821786403656, 0.6341646909713745, -0.367579847574234, -1.0124255418777466, -0.27164703607559204, -0.20594990253448486, -1.2710932493209839, 1.083426833152771, 0.31723716855049133, -0.14123260974884033, 0.26426467299461365, -1.0430489778518677, -0.9740189909934998, 0.9877318143844604, 0.4344049096107483, -0.5447618365287781, -0.27959519624710083, -0.13294634222984314, 0.5981127023696899, -0.5581347346305847, 0.24538680911064148, 0.2667997479438782, 0.013988868333399296, 0.22053655982017517, -0.5988115668296814, -0.19737966358661652, -0.4918665289878845, 0.377018004655838, 0.2393644005060196, -0.7337034940719604, 1.183117151260376, -0.3730241358280182, -0.2621517777442932, -0.20565393567085266, 0.40347325801849365, -0.004162923898547888, -0.204499289393425, 0.4013042449951172, 0.5073358416557312, 0.8166256546974182, -0.008789745159447193, 1.107240915298462, -1.1731585264205933, 0.9035851955413818, 0.8597210049629211, -0.24707578122615814, 0.31057438254356384, -0.17878177762031555, -0.24428869783878326, 0.8551767468452454, 0.7684262990951538, -0.3522942364215851, 0.573790431022644, 0.19028893113136292, 0.21104636788368225, -0.19509106874465942, 0.3614315390586853, -0.3651050925254822, 0.4011736214160919, 0.2581331133842468, -0.9794294238090515, -0.026548830792307854, -0.06500846892595291, 0.13628478348255157, -0.24164742231369019, -0.19499431550502777, 0.37415435910224915, -0.04527509957551956, -0.47550737857818604, 0.7570163607597351, -0.030692731961607933, 0.17471608519554138, -0.5291260480880737, -0.08399742841720581, -0.08478294312953949, 0.18172848224639893, -0.3164726495742798, -0.9954151511192322, 0.13988357782363892, -0.10663852095603943, -0.12356556206941605, 0.012125127948820591, 0.8153433799743652, -0.13590200245380402, -0.6321355104446411, 0.6758750081062317, 0.15745821595191956, 0.14705349504947662, 0.12453971058130264, -0.8648967146873474, 0.2567649185657501, -0.02573344297707081, -0.2575211226940155, -0.056377824395895004, 0.2665509283542633, 0.17660580575466156, 0.9047958254814148, 0.23518358170986176, -0.22437405586242676, 0.19376637041568756, 0.10607833415269852, 1.2455965280532837, -0.6076832413673401, -0.6713095903396606, -0.6669065356254578, 0.43361231684684753, -0.05600631237030029, -0.1455640196800232, 0.586439311504364, 0.7041721343994141, 0.7915721535682678, -0.22189445793628693, 1.035415530204773, -0.0857650563120842, 0.40877100825309753, -0.17416369915008545, 0.5125707387924194, -0.19045208394527435, -0.11206488311290741, -0.5481573343276978, -0.9476000666618347, -0.24280692636966705, 0.7207462191581726, -0.36056622862815857, 0.22160163521766663, 0.624565601348877, 0.753606379032135, 0.23703138530254364, 0.13463464379310608, 0.4619940519332886, 0.008268947713077068, 0.3573157489299774, 0.8780429363250732, 0.5133177042007446, -0.4333611726760864, 0.7380903959274292, -0.16017626225948334, -0.3383456766605377, -0.23120275139808655, -0.48269617557525635, -1.280031681060791, -0.6101746559143066, -0.18912726640701294, -0.7245545983314514, -0.1353011578321457, 0.5878399610519409, 1.019946813583374, -0.6064959764480591, -0.03888576477766037, -0.21157187223434448, -0.08754041790962219, -0.13367366790771484, -0.26973918080329895, 0.42909204959869385, -0.19275511801242828, -0.5406411290168762, -0.18467052280902863, 0.32667824625968933, -0.1569967269897461, -0.32729005813598633, -0.11129545420408249, 0.10720132291316986, 0.01873912289738655, 0.6219131350517273, 0.15814311802387238, -0.3420356512069702, -0.5691098570823669, 0.1841622143983841, -0.3853854537010193, 0.3925500512123108, 0.8625468611717224, -0.7893482446670532, 0.492332398891449, 0.40521085262298584, 0.4535682201385498, 0.9735238552093506, -0.1241927295923233, 0.46399015188217163, -0.6519612073898315, 0.24989862740039825, 0.16927562654018402, 0.41313406825065613, 0.07121254503726959, -0.4406740963459015, 0.4432535171508789, 0.2929377257823944, -0.5960223078727722, -0.5327734351158142, 0.5888307690620422, -1.0136258602142334, -0.32782676815986633, 0.83154296875, -0.34768572449684143, -0.37571975588798523, 0.13770078122615814, -0.05824853107333183, 0.271614134311676, -0.19296713173389435, 0.5507042407989502, 0.6263349056243896, -0.5442741513252258, -0.5516409873962402, -0.3847483694553375, 0.2754809558391571, -0.37309530377388, -0.6145650744438171, -0.18285976350307465, 0.34847718477249146, 0.32837533950805664, 0.4786019027233124, 0.6907712817192078, -0.23329825699329376, 0.21892096102237701, 0.4335939288139343, 0.34791281819343567, -0.16076689958572388, -0.5157087445259094, -0.055852968245744705, 0.22984042763710022, 0.049292583018541336, -0.2126268744468689 ]
kandinsky-community/kandinsky-2-1
kandinsky-community
"2023-10-09T11:33:20Z"
20,903
32
diffusers
[ "diffusers", "text-to-image", "kandinsky", "license:apache-2.0", "has_space", "diffusers:KandinskyPipeline", "region:us" ]
text-to-image
"2023-05-24T09:52:07Z"
--- license: apache-2.0 prior: - kandinsky-community/kandinsky-2-1-prior tags: - text-to-image - kandinsky inference: false --- # Kandinsky 2.1 Kandinsky 2.1 inherits best practices from Dall-E 2 and Latent diffusion while introducing some new ideas. It uses the CLIP model as a text and image encoder, and diffusion image prior (mapping) between latent spaces of CLIP modalities. This approach increases the visual performance of the model and unveils new horizons in blending images and text-guided image manipulation. The Kandinsky model is created by [Arseniy Shakhmatov](https://github.com/cene555), [Anton Razzhigaev](https://github.com/razzant), [Aleksandr Nikolich](https://github.com/AlexWortega), [Igor Pavlov](https://github.com/boomb0om), [Andrey Kuznetsov](https://github.com/kuznetsoffandrey) and [Denis Dimitrov](https://github.com/denndimitrov) ## Usage Kandinsky 2.1 is available in diffusers! ```python pip install diffusers transformers accelerate ``` ### Text to image ```python from diffusers import AutoPipelineForText2Image import torch pipe = AutoPipelineForText2Image.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16) pipe.enable_model_cpu_offload() prompt = "A alien cheeseburger creature eating itself, claymation, cinematic, moody lighting" negative_prompt = "low quality, bad quality" image = pipe(prompt=prompt, negative_prompt=negative_prompt, prior_guidance_scale =1.0, height=768, width=768).images[0] image.save("cheeseburger_monster.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/cheeseburger.png) ### Text Guided Image-to-Image Generation ```python from diffusers import AutoPipelineForImage2Image import torch import requests from io import BytesIO from PIL import Image import os pipe = AutoPipelineForImage2Image.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16) pipe.enable_model_cpu_offload() prompt = "A fantasy landscape, Cinematic lighting" negative_prompt = "low quality, bad quality" url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg" response = requests.get(url) original_image = Image.open(BytesIO(response.content)).convert("RGB") original_image.thumbnail((768, 768)) image = pipe(prompt=prompt, image=original_image, strength=0.3).images[0] out.images[0].save("fantasy_land.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/img2img_fantasyland.png) ### Interpolate ```python from diffusers import KandinskyPriorPipeline, KandinskyPipeline from diffusers.utils import load_image import PIL import torch pipe_prior = KandinskyPriorPipeline.from_pretrained( "kandinsky-community/kandinsky-2-1-prior", torch_dtype=torch.float16 ) pipe_prior.to("cuda") img1 = load_image( "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/cat.png" ) img2 = load_image( "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/starry_night.jpeg" ) # add all the conditions we want to interpolate, can be either text or image images_texts = ["a cat", img1, img2] # specify the weights for each condition in images_texts weights = [0.3, 0.3, 0.4] # We can leave the prompt empty prompt = "" prior_out = pipe_prior.interpolate(images_texts, weights) pipe = KandinskyPipeline.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16) pipe.to("cuda") image = pipe(prompt, **prior_out, height=768, width=768).images[0] image.save("starry_cat.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/starry_cat.png) ## Model Architecture ### Overview Kandinsky 2.1 is a text-conditional diffusion model based on unCLIP and latent diffusion, composed of a transformer-based image prior model, a unet diffusion model, and a decoder. The model architectures are illustrated in the figure below - the chart on the left describes the process to train the image prior model, the figure in the center is the text-to-image generation process, and the figure on the right is image interpolation. <p float="left"> <img src="https://raw.githubusercontent.com/ai-forever/Kandinsky-2/main/content/kandinsky21.png"/> </p> Specifically, the image prior model was trained on CLIP text and image embeddings generated with a pre-trained [mCLIP model](https://huggingface.co/M-CLIP/XLM-Roberta-Large-Vit-L-14). The trained image prior model is then used to generate mCLIP image embeddings for input text prompts. Both the input text prompts and its mCLIP image embeddings are used in the diffusion process. A [MoVQGAN](https://openreview.net/forum?id=Qb-AoSw4Jnm) model acts as the final block of the model, which decodes the latent representation into an actual image. ### Details The image prior training of the model was performed on the [LAION Improved Aesthetics dataset](https://huggingface.co/datasets/bhargavsdesai/laion_improved_aesthetics_6.5plus_with_images), and then fine-tuning was performed on the [LAION HighRes data](https://huggingface.co/datasets/laion/laion-high-resolution). The main Text2Image diffusion model was trained on the basis of 170M text-image pairs from the [LAION HighRes dataset](https://huggingface.co/datasets/laion/laion-high-resolution) (an important condition was the presence of images with a resolution of at least 768x768). The use of 170M pairs is due to the fact that we kept the UNet diffusion block from Kandinsky 2.0, which allowed us not to train it from scratch. Further, at the stage of fine-tuning, a dataset of 2M very high-quality high-resolution images with descriptions (COYO, anime, landmarks_russia, and a number of others) was used separately collected from open sources. ### Evaluation We quantitatively measure the performance of Kandinsky 2.1 on the COCO_30k dataset, in zero-shot mode. The table below presents FID. FID metric values ​​for generative models on COCO_30k | | FID (30k)| |:------|----:| | eDiff-I (2022) | 6.95 | | Image (2022) | 7.27 | | Kandinsky 2.1 (2023) | 8.21| | Stable Diffusion 2.1 (2022) | 8.59 | | GigaGAN, 512x512 (2023) | 9.09 | | DALL-E 2 (2022) | 10.39 | | GLIDE (2022) | 12.24 | | Kandinsky 1.0 (2022) | 15.40 | | DALL-E (2021) | 17.89 | | Kandinsky 2.0 (2022) | 20.00 | | GLIGEN (2022) | 21.04 | For more information, please refer to the upcoming technical report. ## BibTex If you find this repository useful in your research, please cite: ``` @misc{kandinsky 2.1, title = {kandinsky 2.1}, author = {Arseniy Shakhmatov, Anton Razzhigaev, Aleksandr Nikolich, Vladimir Arkhipkin, Igor Pavlov, Andrey Kuznetsov, Denis Dimitrov}, year = {2023}, howpublished = {}, } ```
[ -0.40020859241485596, -0.7227492928504944, 0.48735132813453674, 0.1958715170621872, -0.3002399504184723, -0.09235397726297379, -0.037303488701581955, -0.2727535367012024, 0.025210442021489143, 0.38819989562034607, -0.37366560101509094, -0.5113964080810547, -0.5406426191329956, -0.18033123016357422, -0.17333239316940308, 0.8202515244483948, -0.25448518991470337, 0.04736627638339996, -0.31462571024894714, 0.0130970049649477, -0.13936366140842438, -0.04964492842555046, -0.6730399131774902, -0.29168230295181274, 0.3030121624469757, 0.37703537940979004, 0.6402199864387512, 0.3581201434135437, 0.4987773299217224, 0.2884429097175598, -0.015165356919169426, -0.06003306061029434, -0.5612492561340332, 0.020972957834601402, 0.15788863599300385, -0.3976157009601593, -0.1987629532814026, -0.05821638181805611, 0.7054262161254883, 0.050968945026397705, 0.029129348695278168, -0.09540776163339615, 0.1827373057603836, 0.7893388867378235, -0.3847435712814331, -0.09484643489122391, -0.252029150724411, 0.1879218965768814, -0.18602541089057922, -0.1477021872997284, -0.2979066073894501, -0.17866608500480652, 0.23196139931678772, -0.9514955282211304, 0.3184056878089905, -0.08211559802293777, 1.2683665752410889, 0.024517366662621498, -0.3361663222312927, -0.2234400510787964, -0.4098619520664215, 0.8974360823631287, -0.6530935168266296, 0.12257103621959686, 0.27970826625823975, 0.2187642604112625, -0.09591100364923477, -0.9928274154663086, -0.5793057084083557, -0.12349800020456314, -0.2589571177959442, 0.45886704325675964, -0.25551143288612366, 0.049199216067790985, 0.24375581741333008, 0.23462748527526855, -0.6739201545715332, -0.15292851626873016, -0.6034284234046936, -0.17114543914794922, 0.7436596155166626, 0.006939499638974667, 0.38812512159347534, -0.3318960666656494, -0.43949076533317566, -0.3511579930782318, -0.3969738185405731, 0.041433826088905334, 0.4004017114639282, -0.3626064956188202, -0.5139729976654053, 0.5381789803504944, -0.08359275758266449, 0.5718749165534973, 0.19177314639091492, -0.2176109254360199, 0.3043321669101715, -0.2932257652282715, -0.29514753818511963, -0.36982572078704834, 1.1657503843307495, 0.5090746283531189, 0.1692395657300949, 0.2926570773124695, 0.05475173890590668, -0.23759718239307404, -0.1701393872499466, -1.1778781414031982, -0.54466712474823, 0.2660459876060486, -0.558966338634491, -0.44885462522506714, -0.18092432618141174, -1.0483609437942505, -0.13898110389709473, 0.03158625215291977, 0.6432281136512756, -0.6131371259689331, -0.43699997663497925, -0.0673062801361084, -0.22079621255397797, 0.19589541852474213, 0.3629772961139679, -0.6564328074455261, 0.19530875980854034, 0.12223253399133682, 1.2251888513565063, 0.029967544600367546, -0.1336267590522766, -0.16204030811786652, -0.14927326142787933, -0.38357463479042053, 0.7806053161621094, -0.42162132263183594, -0.41666680574417114, -0.1618298441171646, 0.16066838800907135, 0.09460455179214478, -0.4889207184314728, 0.5135454535484314, -0.44222745299339294, 0.28829485177993774, -0.12553423643112183, -0.39567673206329346, -0.29256489872932434, -0.054860297590494156, -0.41202452778816223, 1.001801609992981, 0.29271677136421204, -0.862908124923706, 0.21955639123916626, -0.6450161933898926, -0.06766057014465332, -0.11967416107654572, -0.03730446472764015, -0.7610259652137756, -0.19279322028160095, 0.2510322630405426, 0.6269329786300659, -0.3314269781112671, 0.1610744297504425, -0.39306342601776123, -0.12169405072927475, 0.22890114784240723, -0.2519035041332245, 0.952903151512146, 0.39126619696617126, -0.2556035816669464, 0.0005780694773420691, -0.48440098762512207, -0.010440991260111332, 0.21244940161705017, -0.07647442072629929, -0.14719362556934357, -0.3597131669521332, 0.32693740725517273, 0.3379087746143341, -0.010537969879806042, -0.4746570885181427, 0.16046646237373352, -0.2729474604129791, 0.4184211492538452, 0.687035322189331, 0.20100699365139008, 0.5293536186218262, -0.4546607434749603, 0.6529726982116699, 0.36977168917655945, 0.09309068322181702, -0.4036681056022644, -0.6068563461303711, -0.9370920062065125, -0.46686437726020813, 0.190830260515213, 0.45968180894851685, -0.9406262040138245, 0.06623917073011398, -0.032660674303770065, -0.6265820264816284, -0.32885608077049255, -0.043370988219976425, 0.33759260177612305, 0.5612911581993103, 0.35191380977630615, -0.28276318311691284, -0.3453349471092224, -1.0080907344818115, 0.05364128574728966, 0.11039509624242783, 0.017289454117417336, 0.3078838288784027, 0.6301026940345764, -0.06907057762145996, 0.8190754652023315, -0.6469671726226807, -0.23776155710220337, 0.21622756123542786, 0.2641398310661316, 0.19964726269245148, 0.8272307515144348, 0.61602783203125, -0.8927407264709473, -1.094675064086914, 0.07377561181783676, -0.8580367565155029, 0.029332662001252174, -0.12289664149284363, -0.41070884466171265, 0.33624857664108276, 0.49480366706848145, -0.6955627799034119, 0.5366296172142029, 0.523666501045227, -0.39283761382102966, 0.6929125785827637, -0.2469436526298523, 0.36371225118637085, -1.2424901723861694, 0.2857287526130676, 0.239105224609375, -0.4516638517379761, -0.7730726599693298, -0.015656959265470505, 0.0010337120620533824, -0.16246066987514496, -0.5652291774749756, 0.7595985531806946, -0.6670563817024231, 0.20709611475467682, -0.13722766935825348, -0.08534495532512665, 0.08072203397750854, 0.5493564009666443, 0.21191668510437012, 0.6791761517524719, 0.9636154174804688, -0.4416314661502838, 0.4014962613582611, 0.1851409375667572, -0.457091361284256, 0.7633330821990967, -0.8665120601654053, 0.32875460386276245, -0.27705928683280945, 0.21304211020469666, -1.179216980934143, -0.24926796555519104, 0.586475133895874, -0.6162506937980652, 0.37685227394104004, -0.30212920904159546, -0.5174776911735535, -0.2227991819381714, -0.27994805574417114, 0.58320152759552, 0.9790318012237549, -0.3859347105026245, 0.4024816155433655, 0.03778737783432007, 0.007012398913502693, -0.5211629867553711, -0.7817928791046143, -0.1505151391029358, -0.38416802883148193, -0.7574146389961243, 0.40979480743408203, -0.30226922035217285, -0.12073738127946854, 0.18609243631362915, 0.33418068289756775, -0.19565647840499878, -0.30766820907592773, 0.2994700074195862, 0.18639405071735382, -0.15281756222248077, -0.05809333175420761, 0.24267521500587463, -0.1300610452890396, -0.15328581631183624, -0.31710299849510193, 0.5577269792556763, 0.00022977907792665064, -0.010602584108710289, -0.9251425862312317, 0.24307206273078918, 0.5054899454116821, 0.20894017815589905, 0.7807304859161377, 0.9821872711181641, -0.3029314875602722, 0.2259415239095688, -0.42316481471061707, -0.05130046606063843, -0.5158553719520569, 0.3438234031200409, -0.4266258478164673, -0.5430122017860413, 0.5730578899383545, 0.17884224653244019, -0.0887199342250824, 0.734037458896637, 0.5840273499488831, -0.34957292675971985, 0.9372063875198364, 0.4431706368923187, 0.41112565994262695, 0.6095970869064331, -0.9266473054885864, -0.23447313904762268, -1.0259230136871338, -0.33053168654441833, -0.10665144771337509, -0.34860819578170776, -0.3175467252731323, -0.7362955212593079, 0.554502010345459, 0.4728585183620453, -0.1050381287932396, 0.13380295038223267, -0.48602065443992615, 0.39931410551071167, 0.34582197666168213, 0.22748954594135284, -0.010378267616033554, 0.40060779452323914, -0.3120875358581543, -0.23545579612255096, -0.5696937441825867, -0.27756673097610474, 1.1122980117797852, 0.3918525278568268, 0.7597393989562988, -0.010437033139169216, 0.6175549030303955, 0.16601647436618805, 0.3106204867362976, -0.5288983583450317, 0.4576939046382904, -0.07148200273513794, -0.4794827103614807, -0.14576424658298492, -0.3094339072704315, -0.967054009437561, 0.29803213477134705, -0.2207375317811966, -0.617668867111206, 0.3930968940258026, 0.3923639953136444, -0.10242554545402527, 0.2600480616092682, -0.8051227331161499, 0.8182616829872131, 0.13756850361824036, -0.6598438620567322, -0.22873768210411072, -0.5973547697067261, 0.41673868894577026, 0.11884813010692596, -0.013834770768880844, -0.08657258003950119, -0.0634528324007988, 0.8256332278251648, -0.42987263202667236, 0.5688992738723755, -0.3728715479373932, 0.009308912791311741, 0.45635315775871277, 0.048620618879795074, 0.3304472863674164, 0.19923028349876404, -0.061851851642131805, 0.1888410598039627, 0.24730929732322693, -0.6397451162338257, -0.5826947093009949, 0.7704566717147827, -0.778779149055481, -0.3151491582393646, -0.5077052712440491, -0.37732094526290894, 0.3727187216281891, 0.21794570982456207, 0.9070714712142944, 0.6070516109466553, -0.023709489032626152, 0.20690657198429108, 0.5567100048065186, -0.27555492520332336, 0.4560891389846802, 0.14668335020542145, -0.4097493886947632, -0.6773064136505127, 0.8066607713699341, 0.1892814189195633, 0.61649090051651, 0.3315503001213074, 0.29162323474884033, -0.23594707250595093, -0.38178184628486633, -0.4134039878845215, 0.4577324688434601, -0.7723066210746765, -0.42303434014320374, -0.7142917513847351, -0.3356187343597412, -0.347420334815979, -0.36131706833839417, -0.2713135778903961, -0.3001900911331177, -0.8540238738059998, 0.39971041679382324, 0.5080273747444153, 0.4542817175388336, -0.2675609290599823, 0.35596394538879395, -0.3674449026584625, 0.24589356780052185, 0.2591400742530823, 0.2384420484304428, 0.07010480761528015, -0.7200760841369629, -0.33618974685668945, 0.16427333652973175, -0.512222170829773, -0.715575098991394, 0.5099949836730957, 0.29491403698921204, 0.28342005610466003, 0.33076295256614685, -0.2345239818096161, 0.6875938773155212, -0.23682071268558502, 0.7949050664901733, 0.434106707572937, -0.8041315674781799, 0.5912628173828125, -0.4604015350341797, 0.46803468465805054, 0.2227543592453003, 0.5105758309364319, -0.5909086465835571, -0.2699006497859955, -0.761025071144104, -0.6109846234321594, 0.8045846819877625, 0.5225635170936584, -0.0065170712769031525, 0.3390640616416931, 0.5836590528488159, 0.029641583561897278, 0.010093869641423225, -0.8877921104431152, -0.34985339641571045, -0.42592698335647583, -0.28182825446128845, -0.1757814586162567, -0.31800711154937744, -0.09906233847141266, -0.4728893041610718, 0.7421585917472839, -0.11282929033041, 0.6489535570144653, 0.6347272396087646, -0.23855820298194885, -0.20811061561107635, -0.20738370716571808, 0.6617377996444702, 0.4649644196033478, -0.19207987189292908, -0.032384615391492844, -0.08652924001216888, -0.634120762348175, 0.2937074303627014, 0.04430282488465309, -0.2830548584461212, 0.02079901471734047, 0.3209913969039917, 0.9289774298667908, -0.3058626055717468, -0.3885011374950409, 0.5775524973869324, -0.09628953784704208, -0.5505772829055786, -0.3647725582122803, 0.05159718915820122, 0.0026275862473994493, 0.3404686152935028, 0.37582454085350037, 0.36398768424987793, 0.1826479583978653, -0.24043503403663635, 0.15970680117607117, 0.4510228633880615, -0.3642040193080902, -0.4519915282726288, 0.5584962964057922, -0.07332951575517654, -0.16741332411766052, 0.38484910130500793, -0.2580956518650055, -0.3435073792934418, 0.766025185585022, 0.5836057066917419, 0.9040189981460571, -0.1549684703350067, 0.5136815309524536, 0.802886962890625, 0.11369618773460388, 0.0255265012383461, 0.09249952435493469, 0.016948962584137917, -0.5801229476928711, 0.00513474503532052, -0.4231376349925995, 0.1469942182302475, 0.20258674025535583, -0.38344255089759827, 0.5214468836784363, -0.5674456357955933, -0.039925090968608856, -0.032241690903902054, 0.06893284618854523, -0.7786046862602234, 0.15923531353473663, -0.11694367974996567, 0.662109375, -0.8595291972160339, 0.7680372595787048, 0.5029467940330505, -0.3704347312450409, -0.5647669434547424, 0.15983720123767853, -0.044026002287864685, -0.6050229668617249, 0.6225322484970093, 0.15967419743537903, -0.0777931734919548, 0.2962230443954468, -0.7504611015319824, -0.9544323682785034, 1.3699886798858643, 0.36209291219711304, -0.34328731894493103, 0.24996407330036163, -0.23576460778713226, 0.6126751899719238, -0.3511428236961365, 0.5536753535270691, 0.27652105689048767, 0.2575366795063019, 0.3412264585494995, -0.5963871479034424, 0.08312103897333145, -0.34033435583114624, 0.3712513744831085, 0.08900581300258636, -0.9807126522064209, 0.9079909920692444, -0.24014632403850555, -0.4933374226093292, 0.3573797941207886, 0.7154582738876343, 0.12384217977523804, 0.1456211805343628, 0.44617924094200134, 0.7584925293922424, 0.35933995246887207, 0.015876561403274536, 0.9241662621498108, 0.06158721074461937, 0.7028732895851135, 0.5126376748085022, 0.21934866905212402, 0.6238242387771606, 0.3717097043991089, -0.2727753520011902, 0.7309902906417847, 0.7521093487739563, -0.045010145753622055, 0.767860472202301, 0.07110337167978287, -0.3187224864959717, 0.14002323150634766, -0.04827861487865448, -0.5212218761444092, 0.12549784779548645, 0.27481919527053833, -0.4107401669025421, -0.003053403226658702, 0.31500759720802307, 0.17128922045230865, -0.14856308698654175, 0.04516014829277992, 0.5146801471710205, 0.04797425493597984, -0.5322674512863159, 0.9635242819786072, 0.016164448112249374, 0.9051845073699951, -0.5859121680259705, -0.1804889440536499, -0.08682354539632797, -0.046020038425922394, -0.2939183712005615, -1.0140495300292969, 0.2389945238828659, -0.17483735084533691, -0.06089768186211586, -0.1628037542104721, 0.7642679214477539, -0.6304988265037537, -0.6141471862792969, 0.24966584146022797, -0.19475968182086945, 0.4098269045352936, 0.22080256044864655, -0.9764388799667358, 0.2004493623971939, 0.11853902041912079, -0.43383949995040894, 0.09940920025110245, 0.07471189647912979, 0.493001788854599, 0.5158917903900146, 0.5926544666290283, -0.027456562966108322, 0.033789657056331635, -0.3642684519290924, 0.7101113796234131, -0.3574914336204529, -0.40956875681877136, -0.8036987781524658, 0.8584479093551636, -0.24789966642856598, -0.4419114291667938, 0.5947999954223633, 0.6011514663696289, 0.6232485771179199, -0.2006661295890808, 0.691548228263855, -0.3082430958747864, 0.2444813847541809, -0.9347465634346008, 0.8040553331375122, -0.9029071927070618, -0.1449308842420578, -0.5106521844863892, -0.8864759802818298, -0.17386092245578766, 0.7222424149513245, -0.17617225646972656, 0.24823449552059174, 0.7757694125175476, 1.089528203010559, -0.2394924908876419, -0.5514233708381653, 0.30802106857299805, 0.31466782093048096, 0.40556052327156067, 0.5570620894432068, 0.6891583800315857, -0.8321416974067688, 0.40849557518959045, -0.6023728251457214, -0.19074903428554535, -0.21846874058246613, -0.8154157400131226, -0.8589109182357788, -1.1043906211853027, -0.5613865852355957, -0.6103372573852539, -0.13002459704875946, 0.5442845225334167, 1.1405006647109985, -0.550427258014679, -0.16278089582920074, -0.2949449121952057, 0.03168094530701637, 0.03314325958490372, -0.30852392315864563, 0.37011271715164185, 0.09765897691249847, -0.8348519206047058, -0.20166617631912231, 0.3098815381526947, 0.4928702116012573, -0.3656138777732849, -0.3275708556175232, -0.47538256645202637, -0.10298103094100952, 0.35439032316207886, 0.31715044379234314, -0.773841917514801, -0.06419426202774048, -0.19873566925525665, -0.02263297326862812, 0.30613845586776733, 0.48469316959381104, -0.6116711497306824, 0.7533141374588013, 0.6776140928268433, 0.035077568143606186, 0.995926558971405, -0.19918544590473175, 0.2628943622112274, -0.586837887763977, 0.5171161890029907, 0.08218865096569061, 0.10296062380075455, 0.37288397550582886, -0.5594778060913086, 0.27841317653656006, 0.49171432852745056, -0.7804157733917236, -0.7563319802284241, 0.11879400908946991, -1.0588370561599731, -0.18964934349060059, 1.1595187187194824, -0.20736312866210938, -0.25158676505088806, 0.1676253080368042, -0.4444001615047455, 0.16537705063819885, -0.41809409856796265, 0.36302024126052856, 0.8231412768363953, -0.16582924127578735, -0.7872605323791504, -0.5410686731338501, 0.7080281972885132, 0.3675650954246521, -0.7791807651519775, -0.4146226942539215, 0.39052632451057434, 0.6049787402153015, 0.2676442563533783, 1.0477774143218994, -0.10290364176034927, 0.27221474051475525, 0.14446188509464264, 0.01319318450987339, 0.15321451425552368, -0.26953551173210144, -0.5066745281219482, -0.20015810430049896, -0.15446767210960388, -0.1745699793100357 ]
timm/eva_large_patch14_196.in22k_ft_in22k_in1k
timm
"2023-03-31T06:13:42Z"
20,899
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "dataset:imagenet-22k", "arxiv:2211.07636", "license:mit", "region:us" ]
image-classification
"2022-12-22T07:08:20Z"
--- tags: - image-classification - timm library_tag: timm license: mit datasets: - imagenet-1k - imagenet-22k - imagenet-22k --- # Model card for eva_large_patch14_196.in22k_ft_in22k_in1k An EVA image classification model. Pretrained on ImageNet-22k with masked image modeling (using EVA-CLIP as a MIM teacher) and fine-tuned on ImageNet-22k then on ImageNet-1k by paper authors. NOTE: `timm` checkpoints are float32 for consistency with other models. Original checkpoints are float16 or bfloat16 in some cases, see originals if that's preferred. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 304.1 - GMACs: 61.6 - Activations (M): 63.5 - Image size: 196 x 196 - **Papers:** - EVA: Exploring the Limits of Masked Visual Representation Learning at Scale: https://arxiv.org/abs/2211.07636 - **Pretrain Dataset:** - ImageNet-22k - ImageNet-22k - **Dataset:** ImageNet-1k - **Original:** - https://github.com/baaivision/EVA - https://huggingface.co/BAAI/EVA ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('eva_large_patch14_196.in22k_ft_in22k_in1k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'eva_large_patch14_196.in22k_ft_in22k_in1k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 197, 1024) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Model Comparison Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results). |model |top1 |top5 |param_count|img_size| |-----------------------------------------------|------|------|-----------|--------| |eva02_large_patch14_448.mim_m38m_ft_in22k_in1k |90.054|99.042|305.08 |448 | |eva02_large_patch14_448.mim_in22k_ft_in22k_in1k|89.946|99.01 |305.08 |448 | |eva_giant_patch14_560.m30m_ft_in22k_in1k |89.792|98.992|1014.45 |560 | |eva02_large_patch14_448.mim_in22k_ft_in1k |89.626|98.954|305.08 |448 | |eva02_large_patch14_448.mim_m38m_ft_in1k |89.57 |98.918|305.08 |448 | |eva_giant_patch14_336.m30m_ft_in22k_in1k |89.56 |98.956|1013.01 |336 | |eva_giant_patch14_336.clip_ft_in1k |89.466|98.82 |1013.01 |336 | |eva_large_patch14_336.in22k_ft_in22k_in1k |89.214|98.854|304.53 |336 | |eva_giant_patch14_224.clip_ft_in1k |88.882|98.678|1012.56 |224 | |eva02_base_patch14_448.mim_in22k_ft_in22k_in1k |88.692|98.722|87.12 |448 | |eva_large_patch14_336.in22k_ft_in1k |88.652|98.722|304.53 |336 | |eva_large_patch14_196.in22k_ft_in22k_in1k |88.592|98.656|304.14 |196 | |eva02_base_patch14_448.mim_in22k_ft_in1k |88.23 |98.564|87.12 |448 | |eva_large_patch14_196.in22k_ft_in1k |87.934|98.504|304.14 |196 | |eva02_small_patch14_336.mim_in22k_ft_in1k |85.74 |97.614|22.13 |336 | |eva02_tiny_patch14_336.mim_in22k_ft_in1k |80.658|95.524|5.76 |336 | ## Citation ```bibtex @article{EVA, title={EVA: Exploring the Limits of Masked Visual Representation Learning at Scale}, author={Fang, Yuxin and Wang, Wen and Xie, Binhui and Sun, Quan and Wu, Ledell and Wang, Xinggang and Huang, Tiejun and Wang, Xinlong and Cao, Yue}, journal={arXiv preprint arXiv:2211.07636}, year={2022} } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ```
[ -0.7007371187210083, -0.4287622570991516, 0.10307125002145767, 0.14482586085796356, -0.2944536507129669, 0.02307971939444542, -0.19906491041183472, -0.42972004413604736, 0.6315441727638245, 0.4670681953430176, -0.5083843469619751, -0.7658345699310303, -0.7488783001899719, 0.060138631612062454, -0.026599247008562088, 0.934065580368042, -0.10780730098485947, -0.007077402900904417, 0.012099738232791424, -0.4964820146560669, -0.35333743691444397, -0.3715756833553314, -0.6703319549560547, -0.2571100890636444, 0.4073156714439392, 0.3492535650730133, 0.5692004561424255, 0.6800339221954346, 0.5826162099838257, 0.4082941710948944, -0.2204868495464325, 0.15182554721832275, -0.27941855788230896, -0.22539842128753662, 0.4324440658092499, -0.6295157074928284, -0.6790213584899902, 0.14008212089538574, 0.971468448638916, 0.4341570734977722, 0.060883987694978714, 0.3533354699611664, 0.13345713913440704, 0.6264509558677673, -0.4122104346752167, 0.05628552287817001, -0.3408304452896118, 0.24845066666603088, -0.15123350918293, 0.043285589665174484, -0.31263983249664307, -0.24129576981067657, 0.012056476436555386, -0.7507567405700684, 0.4420522153377533, 0.1022036075592041, 1.3968335390090942, 0.0978153869509697, -0.14973099529743195, 0.10749416053295135, -0.22328747808933258, 0.821388840675354, -0.7949342727661133, 0.2522723078727722, 0.37372902035713196, 0.15752772986888885, -0.03731522709131241, -0.9141148924827576, -0.5937525629997253, -0.08232405036687851, -0.2720184028148651, 0.1003916785120964, -0.3845609724521637, 0.08665134757757187, 0.5358633399009705, 0.5048027038574219, -0.5425618886947632, 0.12804275751113892, -0.6266935467720032, -0.30521050095558167, 0.7455992102622986, 0.027043970301747322, 0.35952234268188477, -0.3441169261932373, -0.6673088669776917, -0.459431529045105, -0.5153816938400269, 0.2576811909675598, 0.39453569054603577, -0.02126885950565338, -0.5467684268951416, 0.43443506956100464, 0.008426966145634651, 0.5756826400756836, 0.1638077050447464, -0.25300389528274536, 0.7280871868133545, -0.08217296749353409, -0.4558068811893463, -0.18883323669433594, 1.1030831336975098, 0.5865120887756348, 0.051766715943813324, 0.26642414927482605, -0.2098073959350586, -0.4054359495639801, -0.0964035838842392, -1.2415211200714111, -0.293294221162796, 0.17685554921627045, -0.5652197003364563, -0.36285632848739624, 0.3231704533100128, -1.0170704126358032, -0.08915872126817703, -0.11932290345430374, 0.7503907680511475, -0.5203859210014343, -0.36762535572052, 0.031596045941114426, -0.1629677265882492, 0.2455109804868698, 0.3080112934112549, -0.6243963241577148, 0.3486759662628174, 0.2684588134288788, 1.1402561664581299, 0.05610792338848114, -0.3208555579185486, -0.21728107333183289, -0.29847630858421326, -0.5538691878318787, 0.47824859619140625, -0.2233000546693802, -0.10152298957109451, -0.23181389272212982, 0.4067592918872833, -0.25212520360946655, -0.6255247592926025, 0.23803994059562683, -0.13878759741783142, 0.1827155500650406, -0.14755719900131226, -0.34657496213912964, -0.5566250681877136, 0.32405757904052734, -0.6142022013664246, 1.2319903373718262, 0.37787553668022156, -0.8233946561813354, 0.43388769030570984, -0.5919256806373596, 0.1310807317495346, -0.09629561752080917, 0.042661458253860474, -1.0682754516601562, -0.1409178078174591, 0.49494943022727966, 0.692722737789154, -0.13788874447345734, -0.04279327765107155, -0.46133187413215637, -0.3275997042655945, 0.24091847240924835, -0.07292485237121582, 1.0657035112380981, 0.13955390453338623, -0.5757903456687927, 0.2795548737049103, -0.8120734691619873, 0.16827209293842316, 0.41008469462394714, -0.07740885019302368, -0.026481568813323975, -0.7427607178688049, 0.06456552445888519, 0.28245118260383606, 0.01060510240495205, -0.5375681519508362, 0.33762118220329285, -0.04137494042515755, 0.514596164226532, 0.9519912600517273, 0.08286774158477783, 0.28326791524887085, -0.4050777554512024, 0.5766339302062988, 0.1974242627620697, 0.32151761651039124, -0.24332697689533234, -0.6202861070632935, -0.9426310062408447, -0.8635644316673279, 0.46286189556121826, 0.31359750032424927, -0.5642149448394775, 0.7233827710151672, -0.08385302871465683, -0.7354245185852051, -0.4922357201576233, 0.07378509640693665, 0.6016668081283569, 0.5382726788520813, 0.46056878566741943, -0.5443330407142639, -0.5336560606956482, -1.0658011436462402, 0.14808358252048492, 0.03276089206337929, -0.08498021960258484, 0.4460766017436981, 0.925301194190979, -0.14018283784389496, 0.7095449566841125, -0.6526142358779907, -0.3656264543533325, -0.20937620103359222, 0.022721299901604652, 0.3664565682411194, 0.7660048604011536, 0.9759327173233032, -0.5644840598106384, -0.7147665619850159, -0.20097286999225616, -0.8549243807792664, 0.022190887480974197, 0.027264650911092758, -0.2662349045276642, 0.3575943410396576, 0.3433181047439575, -0.7031415700912476, 0.7586036920547485, 0.37505948543548584, -0.4951424300670624, 0.4939773380756378, -0.3124094009399414, 0.29114359617233276, -1.1326032876968384, 0.25106069445610046, 0.24288184940814972, -0.26100459694862366, -0.583756685256958, 0.1279829442501068, 0.23436088860034943, -0.07540649175643921, -0.47000446915626526, 0.7141201496124268, -0.6543617248535156, -0.05807304382324219, 0.047626446932554245, -0.24746409058570862, 0.13680773973464966, 0.8749142289161682, -0.018553439527750015, 0.6070374846458435, 0.8039178252220154, -0.3250596225261688, 0.36241745948791504, 0.2746690511703491, -0.44591763615608215, 0.5729878544807434, -0.7388117909431458, 0.11579877883195877, -0.03680756688117981, 0.5441480875015259, -1.010486364364624, -0.39281919598579407, 0.4094146490097046, -0.521872878074646, 0.6716091632843018, -0.5059268474578857, -0.46867552399635315, -0.6478858590126038, -0.667011559009552, 0.5139470100402832, 0.7008827924728394, -0.714968204498291, 0.29839786887168884, 0.19248142838478088, 0.15832312405109406, -0.6552666425704956, -0.7461983561515808, -0.2090567797422409, -0.486396461725235, -0.6992425918579102, 0.4255249798297882, -0.03645157441496849, 0.04843926802277565, -0.043284960091114044, -0.03278207406401634, 0.08052890747785568, -0.21413308382034302, 0.500495970249176, 0.5491481423377991, -0.3879072964191437, -0.1732873022556305, -0.30032387375831604, -0.12845109403133392, -0.011103827506303787, -0.18953824043273926, 0.6409059762954712, -0.26608574390411377, -0.3645293712615967, -0.7235777378082275, 0.0793565958738327, 0.706641674041748, -0.2190680354833603, 0.9091607332229614, 0.9744903445243835, -0.5707516074180603, 0.0010780387092381716, -0.6710281372070312, -0.3219721019268036, -0.5020713806152344, 0.46951162815093994, -0.3723403215408325, -0.617377519607544, 1.0275580883026123, 0.30549243092536926, -0.04902932420372963, 0.8791931867599487, 0.3667460083961487, 0.06000296771526337, 1.0775514841079712, 0.4925689995288849, 0.21221470832824707, 0.7455871105194092, -1.093501329421997, -0.1311062127351761, -1.0938562154769897, -0.5513118505477905, -0.2598905563354492, -0.6756852865219116, -0.5976765155792236, -0.4866366684436798, 0.5814318656921387, 0.4158906936645508, -0.4913060963153839, 0.45516473054885864, -0.8419315218925476, 0.22534701228141785, 0.7577702403068542, 0.7197717428207397, -0.22699730098247528, 0.30586278438568115, -0.20368210971355438, -0.05745961517095566, -0.7421329021453857, -0.1201789453625679, 1.304999589920044, 0.6233925223350525, 0.5537465810775757, -0.1398467719554901, 0.7433571815490723, -0.08582977950572968, 0.28902703523635864, -0.5257295370101929, 0.6765387654304504, 0.08245591819286346, -0.6843104958534241, -0.24194855988025665, -0.4167790114879608, -0.990362286567688, 0.33515793085098267, -0.3805997669696808, -0.9600790739059448, 0.39017343521118164, 0.1717763990163803, -0.2984147071838379, 0.8620670437812805, -0.8896512985229492, 0.8841738700866699, 0.0007768530049361289, -0.48501715064048767, 0.013918117620050907, -0.8016539216041565, 0.35127002000808716, 0.1589372158050537, -0.05973348021507263, 0.014925487339496613, 0.16496163606643677, 1.2564224004745483, -0.7644204497337341, 0.8409326672554016, -0.3515867292881012, 0.32708507776260376, 0.5431896448135376, -0.1548052579164505, 0.5672948360443115, 0.038918327540159225, 0.11650201678276062, 0.42503172159194946, 0.0031974767334759235, -0.6058529615402222, -0.43919169902801514, 0.5756188035011292, -1.015286922454834, -0.5549192428588867, -0.5691493153572083, -0.47816503047943115, 0.19653251767158508, 0.19096744060516357, 0.6554669737815857, 0.6794018745422363, 0.2551021873950958, 0.4637584686279297, 0.7854712605476379, -0.38718733191490173, 0.4673914611339569, 0.06461459398269653, -0.31816205382347107, -0.8136714100837708, 0.9992222785949707, 0.3385295569896698, 0.3065408170223236, 0.07915236800909042, 0.21769268810749054, -0.18350166082382202, -0.4780638813972473, -0.4554056227207184, 0.48437294363975525, -0.7323554754257202, -0.5339921116828918, -0.6089186072349548, -0.47977352142333984, -0.3340230882167816, -0.19814902544021606, -0.42150095105171204, -0.4811515212059021, -0.3883342742919922, -0.02826724946498871, 0.7843895554542542, 0.7027564644813538, -0.31729447841644287, 0.3175939619541168, -0.5255265235900879, 0.11421435326337814, 0.23047266900539398, 0.4612138867378235, -0.06411278247833252, -0.9077087640762329, -0.2065066546201706, -0.004695052746683359, -0.5172908306121826, -0.9792013764381409, 0.6234585046768188, 0.009673652239143848, 0.4831783175468445, 0.5184481143951416, -0.21653792262077332, 0.9594553112983704, -0.06574471294879913, 0.7838018536567688, 0.5823967456817627, -0.7257190942764282, 0.5695328116416931, -0.2660766541957855, 0.056143905967473984, 0.17826662957668304, 0.27616196870803833, -0.314438134431839, -0.22799959778785706, -1.1681269407272339, -0.9029996991157532, 0.9717496633529663, 0.272476464509964, -0.1208709254860878, 0.39915695786476135, 0.44546982645988464, 0.015111192129552364, 0.004980162717401981, -0.8005169630050659, -0.5900850296020508, -0.33194154500961304, -0.09791365265846252, -0.17812736332416534, -0.18998035788536072, -0.1844446212053299, -0.7671967148780823, 0.7172768115997314, -0.05171491950750351, 0.7517358064651489, 0.3287103772163391, -0.042760882526636124, -0.16901198029518127, -0.3552568256855011, 0.6928713321685791, 0.5206968188285828, -0.4045197665691376, 0.046883054077625275, 0.31024500727653503, -0.725252091884613, -0.07285382598638535, 0.18431971967220306, -0.13779063522815704, 0.04246098920702934, 0.5858757495880127, 1.023705244064331, 0.00905142817646265, -0.14587390422821045, 0.5768024921417236, 0.06767326593399048, -0.5425357222557068, -0.1824687272310257, 0.10613442212343216, -0.2706700265407562, 0.3833572268486023, 0.4816872179508209, 0.28313592076301575, -0.23673340678215027, -0.35207459330558777, 0.18685896694660187, 0.6074060201644897, -0.4451451897621155, -0.3636552393436432, 0.6689698696136475, -0.28813403844833374, -0.19914987683296204, 0.6645041108131409, -0.009294655174016953, -0.6686834096908569, 1.1952824592590332, 0.4671645760536194, 0.9041709899902344, -0.3225138783454895, 0.16023869812488556, 1.0448943376541138, 0.23920616507530212, 0.031769927591085434, 0.0721995010972023, 0.22039149701595306, -0.43184366822242737, 0.05629122257232666, -0.57857346534729, 0.014316454529762268, 0.6040071249008179, -0.611242949962616, 0.35850638151168823, -0.6109342575073242, -0.24843916296958923, -0.0000034973911624547327, 0.36518532037734985, -0.8732239603996277, 0.16629257798194885, 0.023194627836346626, 0.9311848282814026, -0.9777173399925232, 0.7178040742874146, 0.6800978183746338, -0.6112821102142334, -1.0942662954330444, -0.20201991498470306, 0.0006076248828321695, -1.0236812829971313, 0.523799479007721, 0.34940245747566223, 0.4275185465812683, -0.052014078944921494, -0.8851702809333801, -0.903710126876831, 1.5941048860549927, 0.48644396662712097, -0.29644304513931274, 0.24180224537849426, -0.0437774658203125, 0.3557441830635071, -0.4014175236225128, 0.6299096345901489, 0.18976402282714844, 0.4618789255619049, 0.3046064078807831, -0.7955207228660583, 0.28349053859710693, -0.4109418988227844, 0.0922706127166748, 0.20710580050945282, -1.0299651622772217, 1.1125248670578003, -0.2964402139186859, -0.013457870110869408, 0.03874587640166283, 0.5591649413108826, 0.39875438809394836, 0.12165191024541855, 0.5606917142868042, 0.8295875191688538, 0.6016201376914978, -0.25108760595321655, 0.9177838563919067, -0.17093513906002045, 0.5817286372184753, 0.4337675869464874, 0.5005633234977722, 0.5498339533805847, 0.4075275957584381, -0.38850870728492737, 0.45409995317459106, 1.0439196825027466, -0.37813374400138855, 0.3121219873428345, 0.18368642032146454, -0.15250501036643982, -0.18891006708145142, 0.11665206402540207, -0.666771411895752, 0.2859514653682709, 0.2968645393848419, -0.5168397426605225, -0.07409930974245071, 0.11338440328836441, 0.1300310641527176, -0.3603242039680481, -0.3975014388561249, 0.48513999581336975, 0.008707815781235695, -0.5586324334144592, 0.8979834914207458, -0.019162621349096298, 0.7681575417518616, -0.5676253437995911, -0.1650179624557495, -0.421460896730423, 0.2513137757778168, -0.4510664939880371, -0.9483767747879028, 0.12067943811416626, -0.14838367700576782, -0.000681157223880291, 0.013873986899852753, 0.6859000325202942, -0.3178004026412964, -0.6459258198738098, 0.1743209809064865, 0.12345681339502335, 0.31180310249328613, 0.0055845328606665134, -1.0027457475662231, 0.14767485857009888, 0.04638140648603439, -0.7561043500900269, 0.5109792351722717, 0.410407155752182, 0.010922885499894619, 0.6737027168273926, 0.6363046169281006, -0.08649812638759613, 0.30749303102493286, -0.4015968441963196, 0.9493440985679626, -0.4615824818611145, -0.4644129276275635, -0.8173159956932068, 0.6621032357215881, -0.17674942314624786, -0.5486121773719788, 0.7171574831008911, 0.6983455419540405, 0.7408249974250793, -0.03684966266155243, 0.40012767910957336, -0.21472841501235962, 0.04101507365703583, -0.5590740442276001, 0.7885952591896057, -0.8021625876426697, -0.023077312856912613, -0.3592837452888489, -0.890352725982666, -0.4494624435901642, 0.8405918478965759, -0.2438848614692688, 0.27991431951522827, 0.6369833946228027, 1.104249119758606, -0.24926777184009552, -0.32218223810195923, 0.15186937153339386, 0.21835988759994507, 0.1563025861978531, 0.6342484951019287, 0.44841358065605164, -0.7603595852851868, 0.38740602135658264, -0.6640290021896362, -0.29908424615859985, -0.31255611777305603, -0.6772221326828003, -1.146971344947815, -0.8924129009246826, -0.6030465364456177, -0.7326689958572388, -0.1835595816373825, 0.972802460193634, 1.089100956916809, -0.7629106044769287, 0.003354029031470418, -0.020218797028064728, 0.2038247436285019, -0.3452305197715759, -0.2579799294471741, 0.8319290280342102, 0.04928502440452576, -0.8052017092704773, -0.28202152252197266, 0.008832139894366264, 0.34562715888023376, -0.06104122847318649, -0.4276832342147827, -0.10052896291017532, -0.1504734605550766, 0.24906601011753082, 0.47326332330703735, -0.8265187740325928, -0.40449008345603943, -0.15715663135051727, -0.0658484697341919, 0.4704603850841522, 0.3666532039642334, -0.6164005994796753, 0.4251629114151001, 0.4920496344566345, 0.1057928279042244, 1.0339068174362183, -0.31040889024734497, 0.01014985516667366, -0.8497121334075928, 0.4571629464626312, -0.038428712636232376, 0.5185447931289673, 0.21160945296287537, -0.25110527873039246, 0.6691645383834839, 0.5104320645332336, -0.5313754081726074, -1.1087770462036133, -0.12159562855958939, -1.2084916830062866, -0.15161488950252533, 1.0855293273925781, -0.36398401856422424, -0.4570643901824951, 0.41578346490859985, -0.25373536348342896, 0.41636648774147034, -0.2078496217727661, 0.47885406017303467, 0.41051971912384033, -0.033914800733327866, -0.6570277810096741, -0.5956120491027832, 0.48267945647239685, 0.19152173399925232, -0.642249584197998, -0.3945431113243103, 0.1343580186367035, 0.579221248626709, 0.432123064994812, 0.5605577826499939, -0.17718325555324554, 0.14981986582279205, 0.16074536740779877, 0.3486354947090149, -0.38282322883605957, -0.17500047385692596, -0.3633095622062683, 0.07543870061635971, -0.23102612793445587, -0.5749733448028564 ]
Universal-NER/UniNER-7B-all
Universal-NER
"2023-08-11T21:24:35Z"
20,899
53
transformers
[ "transformers", "pytorch", "llama", "text-generation", "en", "arxiv:2308.03279", "license:cc-by-nc-4.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-11T20:52:49Z"
--- license: cc-by-nc-4.0 language: - en --- --- # UniNER-7B-all **Description**: This model is the best UniNER model. It is trained on the combinations of three data splits: (1) ChatGPT-generated [Pile-NER-type data](https://huggingface.co/datasets/Universal-NER/Pile-NER-type), (2) ChatGPT-generated [Pile-NER-definition data](https://huggingface.co/datasets/Universal-NER/Pile-NER-definition), and (3) 40 supervised datasets in the Universal NER benchmark (see Fig. 4 in paper), where we randomly sample up to 10K instances from the train split of each dataset. Note that CrossNER and MIT datasets are excluded from training for OOD evaluation. Check our [paper](https://arxiv.org/abs/2308.03279) for more information. Check our [repo](https://github.com/universal-ner/universal-ner) about how to use the model. ## Inference The template for inference instances is as follows: <div style="background-color: #f6f8fa; padding: 20px; border-radius: 10px; border: 1px solid #e1e4e8; box-shadow: 0 2px 5px rgba(0,0,0,0.1);"> <strong>Prompting template:</strong><br/> A virtual assistant answers questions from a user based on the provided text.<br/> USER: Text: <span style="color: #d73a49;">{Fill the input text here}</span><br/> ASSISTANT: I’ve read this text.<br/> USER: What describes <span style="color: #d73a49;">{Fill the entity type here}</span> in the text?<br/> ASSISTANT: <span style="color: #0366d6;">(model's predictions in JSON format)</span><br/> </div> ### Note: Inferences are based on one entity type at a time. For multiple entity types, create separate instances for each type. ## License This model and its associated data are released under the [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) license. They are primarily used for research purposes. ## Citation ```bibtex @article{zhou2023universalner, title={UniversalNER: Targeted Distillation from Large Language Models for Open Named Entity Recognition}, author={Wenxuan Zhou and Sheng Zhang and Yu Gu and Muhao Chen and Hoifung Poon}, year={2023}, eprint={2308.03279}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.4481808841228485, -0.50700843334198, 0.4134162366390228, -0.09631998836994171, -0.2333345264196396, -0.08424726128578186, -0.14551733434200287, -0.4175110161304474, -0.0010817929869517684, 0.5759769678115845, -0.19195593893527985, -0.4686490595340729, -0.5072606801986694, 0.03649953380227089, -0.5678671598434448, 1.0878666639328003, 0.12833493947982788, 0.2189578413963318, -0.0980018675327301, -0.08453264832496643, -0.2257693111896515, -0.5503578782081604, -0.604518473148346, -0.4520741105079651, 0.4083755910396576, 0.22142735123634338, 0.4098966419696808, 0.5440200567245483, 0.4834071099758148, 0.31780242919921875, -0.3596404790878296, -0.06843328475952148, -0.5103808641433716, -0.20328429341316223, -0.13928914070129395, -0.2989524006843567, -0.4200880229473114, -0.24494178593158722, 0.4128915071487427, 0.7837061285972595, -0.4483998715877533, 0.20135276019573212, 0.12540359795093536, 0.5733103156089783, -0.7300839424133301, -0.06074901670217514, -0.5962785482406616, -0.11677952110767365, -0.32431161403656006, 0.20779450237751007, -0.49167442321777344, -0.052364781498909, 0.17221200466156006, -0.532511293888092, 0.37945741415023804, 0.1815466433763504, 1.0248233079910278, 0.25976166129112244, -0.6864590644836426, 0.10275567322969437, -0.9133488535881042, 0.7492567896842957, -0.8627406358718872, 0.5255762338638306, 0.02860892564058304, 0.4041845500469208, -0.2503340244293213, -0.8252977132797241, -0.6974816918373108, 0.021264618262648582, -0.01801370270550251, 0.36898982524871826, -0.5686880350112915, 0.12691058218479156, 0.2664043605327606, 0.5478692054748535, -0.6498672366142273, 0.06308935582637787, -0.7015515565872192, 0.025359846651554108, 0.5279748439788818, 0.08931786566972733, 0.1441199779510498, -0.2471812218427658, -0.6559690237045288, -0.12478125095367432, -0.3978838324546814, 0.17387786507606506, 0.27057546377182007, 0.1724119782447815, -0.22644130885601044, 0.6400126218795776, -0.3223772346973419, 0.8047438263893127, 0.21965938806533813, 0.05313865467905998, 0.33204665780067444, -0.19157668948173523, -0.4434119164943695, -0.04512200132012367, 1.2123709917068481, 0.4412913918495178, 0.44846010208129883, -0.19834589958190918, -0.1366618573665619, 0.13807174563407898, 0.37294742465019226, -0.7562897205352783, -0.35277125239372253, 0.12877050042152405, -0.4069610834121704, -0.297946035861969, 0.3586520254611969, -1.1583346128463745, -0.22390145063400269, -0.14459273219108582, 0.10731066763401031, -0.28415781259536743, -0.36727723479270935, 0.2968811094760895, -0.010278018191456795, 0.06419843435287476, 0.17137810587882996, -0.781420886516571, 0.4043625295162201, 0.21171942353248596, 0.6829343438148499, -0.14220671355724335, -0.2667616009712219, -0.10272099077701569, 0.04184182360768318, -0.10806775093078613, 1.1381843090057373, -0.3795027732849121, -0.35311609506607056, -0.16977240145206451, 0.030487583950161934, -0.28994396328926086, -0.3547685146331787, 0.7843800783157349, -0.48109155893325806, 0.6064273118972778, -0.15714439749717712, -0.5901541113853455, -0.5859125256538391, -0.07709617167711258, -0.6755931377410889, 1.259381890296936, 0.20923857390880585, -1.0571330785751343, 0.44736984372138977, -0.880723774433136, 0.0660405158996582, -0.05326898768544197, 0.040506549179553986, -0.3450978696346283, 0.21078181266784668, 0.1741591989994049, 0.4121870696544647, -0.6464220285415649, 0.5720822215080261, -0.6545078158378601, -0.0868702307343483, 0.0665278285741806, -0.36387768387794495, 0.9698318243026733, 0.1347314566373825, -0.43709373474121094, 0.13681209087371826, -1.1435987949371338, -0.0034995703026652336, 0.4398142397403717, -0.3692649006843567, -0.3027264177799225, -0.26000258326530457, 0.24989300966262817, 0.21996909379959106, -0.008144252933561802, -0.726667582988739, 0.17371393740177155, -0.2592569887638092, 0.4008719027042389, 0.6818896532058716, -0.040874604135751724, 0.5161687135696411, -0.3239378333091736, 0.3363330662250519, -0.07480809837579727, 0.1622433066368103, 0.21752910315990448, -0.4023285210132599, -0.9097780585289001, -0.3506357669830322, 0.6364753842353821, 0.6149399876594543, -0.26363813877105713, 0.5080599784851074, -0.12954387068748474, -0.5952252149581909, -0.5448880195617676, -0.08287820219993591, 0.5354418754577637, 0.6345617175102234, 0.5556679964065552, -0.20675355195999146, -0.88114994764328, -0.8054044246673584, -0.13619180023670197, -0.12696583569049835, -0.04251563549041748, -0.06456130743026733, 0.7567187547683716, -0.3605005741119385, 0.9147584438323975, -0.3860253095626831, -0.14596447348594666, -0.3513408601284027, 0.03575659543275833, 0.14557886123657227, 0.48685938119888306, 0.5807825922966003, -0.8001943826675415, -0.5838939547538757, -0.11834842711687088, -0.8982070684432983, 0.059475094079971313, 0.17968355119228363, -0.2581399083137512, 0.27590861916542053, 0.2617887258529663, -0.6224985122680664, 0.7603697776794434, 0.5216525793075562, -0.3966594338417053, 0.41723862290382385, -0.23785679042339325, -0.06995924562215805, -1.24025297164917, 0.25984999537467957, 0.12809807062149048, -0.07656532526016235, -0.7952828407287598, -0.05213163048028946, -0.1811549961566925, 0.2100437432527542, -0.4326551854610443, 0.8970332741737366, -0.7538166046142578, 0.044690195471048355, -0.15045101940631866, -0.1591508984565735, -0.016103770583868027, 0.6601667404174805, 0.029491202905774117, 0.34078285098075867, 0.6812498569488525, -0.6214388012886047, 0.33296555280685425, 0.4613099694252014, -0.4065490663051605, 0.6335565447807312, -1.0563545227050781, 0.16949661076068878, -0.14182017743587494, 0.24208152294158936, -1.0074204206466675, -0.30775678157806396, 0.09981779009103775, -0.4759569466114044, 0.37837472558021545, -0.21360436081886292, -0.5344659686088562, -0.4766843020915985, -0.09370511770248413, 0.256072461605072, 0.602227509021759, -0.6727153062820435, 0.8650869727134705, 0.3218253552913666, 0.27929210662841797, -0.6049042344093323, -0.7270346879959106, -0.41535645723342896, -0.3823554813861847, -0.6837587952613831, 0.3293108642101288, -0.17476940155029297, -0.2494783252477646, 0.15904942154884338, -0.23443010449409485, -0.20814883708953857, -0.018490729853510857, 0.44853177666664124, 0.46757933497428894, -0.1358405351638794, -0.25592371821403503, -0.12778526544570923, -0.21466320753097534, -0.05136097967624664, -0.17951205372810364, 0.7302524447441101, -0.0956023707985878, -0.3679443299770355, -0.38342028856277466, 0.25612354278564453, 0.5296035408973694, -0.12891092896461487, 0.924807608127594, 0.6708944439888, -0.5056464672088623, 0.2051006257534027, -0.6715283393859863, 0.009186389856040478, -0.3939175307750702, 0.17943798005580902, -0.35429322719573975, -0.7418767213821411, 0.6934988498687744, 0.19575023651123047, 0.21867366135120392, 0.755249559879303, 0.42035815119743347, -0.027247551828622818, 1.1489347219467163, 0.7846051454544067, -0.024402862414717674, 0.39845672249794006, -0.45876994729042053, 0.14115861058235168, -1.1838325262069702, -0.5785928964614868, -0.5697960257530212, -0.056467197835445404, -0.6033281087875366, -0.1901126354932785, 0.18841038644313812, 0.4093172252178192, -0.6492050290107727, 0.3100243806838989, -0.7408877015113831, 0.2989853322505951, 0.851874828338623, -0.12247788161039352, 0.3508521318435669, 0.10410822927951813, -0.4596143960952759, 0.10769587010145187, -0.7721753120422363, -0.5411537885665894, 1.2456520795822144, 0.21120254695415497, 0.8682444095611572, 0.09654953330755234, 0.7055116295814514, 0.04084538295865059, 0.10594385117292404, -0.399233877658844, 0.43747830390930176, -0.09826309233903885, -0.8695327043533325, -0.23444217443466187, -0.5279005169868469, -1.2825801372528076, 0.49287375807762146, -0.3240612745285034, -1.224041223526001, 0.38266849517822266, 0.2010200023651123, -0.43369752168655396, 0.6709131002426147, -0.5331792235374451, 0.9881722927093506, -0.31343910098075867, -0.08724895119667053, 0.2430550754070282, -0.6476906538009644, 0.39402690529823303, 0.1198175922036171, 0.06640154868364334, 0.09654326736927032, 0.2327522337436676, 0.8560886979103088, -0.34919050335884094, 0.7723007798194885, -0.1243753656744957, 0.29265373945236206, 0.34774407744407654, 0.025996536016464233, 0.4565253257751465, -0.11791577935218811, 0.002639554673805833, 0.4721004366874695, -0.09367028623819351, -0.39944130182266235, -0.40792298316955566, 0.5146861672401428, -0.8927425146102905, -0.24840302765369415, -0.7555572986602783, -0.34672266244888306, 0.1247091293334961, 0.5437836647033691, 0.8727127313613892, 0.4700831472873688, -0.4344675540924072, 0.38917338848114014, 0.6801556944847107, -0.05469556525349617, 0.40112438797950745, 0.5729703307151794, -0.35295987129211426, -0.4956190288066864, 0.6189860105514526, 0.025245755910873413, 0.18055829405784607, 0.5037287473678589, 0.18217073380947113, -0.5275434255599976, -0.5563663840293884, -0.49764156341552734, 0.45951658487319946, -0.626054584980011, -0.2653103768825531, -1.104524850845337, -0.2439049482345581, -0.5671359300613403, -0.05448412895202637, -0.5082079172134399, -0.3421781063079834, -0.39056891202926636, -0.2992135286331177, 0.3906957805156708, 0.8094270825386047, -0.1122608482837677, 0.454475998878479, -0.6275424957275391, 0.13707102835178375, 0.2087428867816925, 0.1756545454263687, 0.017848070710897446, -0.7810428738594055, 0.11182203143835068, 0.1370256096124649, -0.2419176548719406, -0.8241394758224487, 0.46391910314559937, -0.1450781524181366, 0.8427116274833679, 0.5202787518501282, 0.10376699268817902, 0.6124815344810486, -0.3593834936618805, 0.6032742261886597, 0.4153936803340912, -0.7413330674171448, 0.15331803262233734, -0.35512956976890564, 0.2140195071697235, 0.6887500882148743, 0.4577436149120331, -0.4902913272380829, -0.13988660275936127, -1.0403789281845093, -1.038893461227417, 0.7242835760116577, 0.1651872992515564, -0.1672831028699875, 0.07868967205286026, -0.013125442899763584, -0.023172471672296524, 0.3280894160270691, -1.0087361335754395, -0.41952458024024963, -0.2274875044822693, -0.18209557235240936, 0.08695737272500992, -0.46788692474365234, 0.0667949840426445, -0.18887054920196533, 0.8466517925262451, 0.03190157562494278, 0.542009711265564, 0.06639714539051056, -0.07541989535093307, -0.13310009241104126, 0.3583282232284546, 0.44762757420539856, 0.5959858298301697, -0.397809773683548, 0.05047980695962906, 0.23523391783237457, -0.1913464516401291, -0.2557819187641144, 0.3115052282810211, -0.3596990406513214, 0.06342916190624237, 0.3396483361721039, 1.187446117401123, 0.26300379633903503, -0.42020383477211, 0.39126935601234436, -0.09096847474575043, -0.41799306869506836, -0.6215009093284607, 0.09537055343389511, 0.002632983261719346, 0.274079293012619, 0.18053820729255676, 0.12498506158590317, 0.3118213415145874, -0.42874547839164734, -0.12502670288085938, 0.26148930191993713, -0.4761251211166382, -0.42974039912223816, 0.9591257572174072, 0.08848868310451508, -0.11182157695293427, 0.7304410338401794, -0.4190441370010376, -0.5629353523254395, 0.3571181297302246, 0.5055638551712036, 0.7665305137634277, -0.27540287375450134, 0.1917887181043625, 0.5963411331176758, 0.20352941751480103, -0.47018420696258545, 0.3511182963848114, 0.286319762468338, -0.6955974698066711, -0.16641201078891754, -0.7576277256011963, -0.1059836596250534, 0.398045152425766, -0.8992154598236084, 0.22919733822345734, -0.34515535831451416, -0.08886883407831192, 0.1282677948474884, -0.17352065443992615, -0.8435200452804565, 0.16411873698234558, -0.028077129274606705, 0.8200727701187134, -0.6918983459472656, 0.4615914225578308, 0.9097335338592529, -0.6795734763145447, -0.9214357137680054, -0.29224175214767456, 0.26887810230255127, -0.7367306351661682, 0.4481101632118225, 0.05796379968523979, 0.19611920416355133, -0.052592385560274124, -0.5415736436843872, -1.0778557062149048, 1.0619935989379883, 0.3257298171520233, -0.6979743838310242, -0.4069197177886963, -0.051693711429834366, 0.5930649042129517, -0.30810341238975525, 0.8476921916007996, 0.3740592300891876, 0.4780549705028534, 0.2485480159521103, -1.1368275880813599, 0.026245076209306717, -0.3724680542945862, 0.1257409304380417, 0.3597768247127533, -0.778197705745697, 1.2244162559509277, -0.2611117362976074, -0.19356192648410797, 0.18201085925102234, 0.6428942084312439, 0.23386964201927185, 0.29963716864585876, 0.6919679641723633, 0.9146021604537964, 0.839401364326477, -0.0630965530872345, 1.0706186294555664, -0.1387912631034851, 0.6475462317466736, 1.2466479539871216, -0.1716628521680832, 0.6212550401687622, 0.21862450242042542, -0.15300847589969635, 0.7784972786903381, 0.6463683843612671, -0.24461664259433746, 0.5972237586975098, 0.20498979091644287, 0.07033445686101913, -0.2219822108745575, -0.09439688920974731, -0.502842903137207, 0.5646767020225525, -0.03233279660344124, -0.3030046820640564, -0.34513014554977417, -0.1772913783788681, 0.26225510239601135, -0.06908999383449554, -0.04658917337656021, 0.8826805353164673, -0.06959976255893707, -0.5669479966163635, 0.6685150265693665, -0.09622815996408463, 0.6525562405586243, -0.5017982125282288, -0.04043566435575485, -0.1882929503917694, 0.33545222878456116, -0.2970263659954071, -0.5356025695800781, -0.058562230318784714, 0.2886672019958496, -0.3259497880935669, 0.10790573060512543, 0.6156834363937378, -0.3038426339626312, -0.722119927406311, 0.6220206022262573, 0.5591757893562317, 0.40287715196609497, -0.252661794424057, -0.8538019061088562, -0.3319028913974762, 0.17716115713119507, -0.4862822890281677, 0.3658018410205841, 0.619618833065033, -0.16113179922103882, 0.6275284886360168, 0.7985484004020691, -0.008267533034086227, 0.15118050575256348, 0.0934840589761734, 0.8817282319068909, -0.6848443746566772, -0.3674326539039612, -0.7343790531158447, 0.9106071591377258, -0.19184529781341553, -0.5106367468833923, 0.6776150465011597, 0.7889721393585205, 1.196212887763977, 0.1765814870595932, 0.8195229172706604, -0.28688502311706543, 0.7644237875938416, -0.3685090243816376, 0.3839327394962311, -0.6905832290649414, -0.0821620374917984, -0.40139782428741455, -1.057776689529419, -0.07701113820075989, 0.7977206110954285, -0.17898689210414886, 0.32425713539123535, 0.8310519456863403, 0.48935091495513916, -0.257989764213562, -0.002807849319651723, 0.21085086464881897, 0.2837979197502136, 0.11718175560235977, 0.5756269693374634, 0.7615272402763367, -0.3538842797279358, 0.6441500782966614, -0.5296424627304077, -0.1523619294166565, -0.2816701829433441, -0.638968288898468, -1.3417571783065796, -0.4742420017719269, -0.16263778507709503, -0.48698559403419495, -0.14637017250061035, 0.858044445514679, 0.6930449604988098, -0.9891769289970398, -0.19067150354385376, -0.312127023935318, -0.10565739125013351, -0.14181771874427795, -0.22436660528182983, 0.29879888892173767, 0.2399819791316986, -0.7881370782852173, 0.1896677166223526, -0.026333419606089592, 0.23355230689048767, -0.13845820724964142, -0.015774913132190704, -0.4515978693962097, -0.15491178631782532, 0.24198949337005615, 0.31065553426742554, -0.7501590251922607, -0.04037787765264511, 0.21547850966453552, -0.004859440494328737, 0.12786953151226044, 0.5473893880844116, -0.42738837003707886, 0.37515702843666077, 0.39278802275657654, 0.38297486305236816, 0.7064290642738342, 0.07299842685461044, 0.37124231457710266, -0.24183227121829987, 0.03605144843459129, 0.08275844901800156, 0.7606683969497681, 0.36166033148765564, -0.40566742420196533, 0.8755419850349426, 0.30715593695640564, -0.655730664730072, -1.028083086013794, 0.04869569092988968, -1.1519341468811035, -0.15120640397071838, 1.2651257514953613, -0.12405630201101303, -0.23721225559711456, -0.09361962229013443, -0.09592682123184204, 0.47049495577812195, -0.8429126739501953, 0.6051862239837646, 0.4217228889465332, -0.19422268867492676, -0.1394398808479309, -0.5704495310783386, 0.2268090695142746, 0.23971779644489288, -0.8433632254600525, -0.08584410697221756, 0.3850114345550537, 0.5335899591445923, 0.29102998971939087, 0.7148008942604065, -0.001560209784656763, 0.05843549221754074, -0.044401559978723526, 0.5360325574874878, -0.2357746958732605, -0.4320114552974701, -0.26394355297088623, -0.13955268263816833, -0.23827458918094635, -0.17867213487625122 ]
microsoft/DialoGPT-large
microsoft
"2023-01-24T16:55:06Z"
20,881
223
transformers
[ "transformers", "pytorch", "tf", "jax", "gpt2", "text-generation", "conversational", "arxiv:1911.00536", "license:mit", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
conversational
"2022-03-02T23:29:05Z"
--- thumbnail: https://huggingface.co/front/thumbnails/dialogpt.png tags: - conversational license: mit --- ## A State-of-the-Art Large-scale Pretrained Response generation model (DialoGPT) DialoGPT is a SOTA large-scale pretrained dialogue response generation model for multiturn conversations. The [human evaluation results](https://github.com/dreasysnail/Dialogpt_dev#human-evaluation) indicate that the response generated from DialoGPT is comparable to human response quality under a single-turn conversation Turing test. The model is trained on 147M multi-turn dialogue from Reddit discussion thread. * Multi-turn generation examples from an interactive environment: |Role | Response | |---------|--------| |User | Does money buy happiness? | | Bot | Depends how much money you spend on it .| |User | What is the best way to buy happiness ? | | Bot | You just have to be a millionaire by your early 20s, then you can be happy . | |User |This is so difficult ! | | Bot | You have no idea how hard it is to be a millionaire and happy . There is a reason the rich have a lot of money | Please find the information about preprocessing, training and full details of the DialoGPT in the [original DialoGPT repository](https://github.com/microsoft/DialoGPT) ArXiv paper: [https://arxiv.org/abs/1911.00536](https://arxiv.org/abs/1911.00536) ### How to use Now we are ready to try out how the model works as a chatting partner! ```python from transformers import AutoModelForCausalLM, AutoTokenizer import torch tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-large") model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-large") # Let's chat for 5 lines for step in range(5): # encode the new user input, add the eos_token and return a tensor in Pytorch new_user_input_ids = tokenizer.encode(input(">> User:") + tokenizer.eos_token, return_tensors='pt') # append the new user input tokens to the chat history bot_input_ids = torch.cat([chat_history_ids, new_user_input_ids], dim=-1) if step > 0 else new_user_input_ids # generated a response while limiting the total chat history to 1000 tokens, chat_history_ids = model.generate(bot_input_ids, max_length=1000, pad_token_id=tokenizer.eos_token_id) # pretty print last ouput tokens from bot print("DialoGPT: {}".format(tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True))) ```
[ -0.40404075384140015, -0.9616655111312866, 0.04592444747686386, 0.12039355933666229, -0.16956380009651184, 0.16156040132045746, -0.02061869017779827, -0.1982615888118744, 0.2016816884279251, 0.45165932178497314, -0.847843587398529, -0.13304582238197327, -0.4398767352104187, -0.052357267588377, -0.2027396857738495, 1.1012529134750366, 0.3968861699104309, 0.18848398327827454, 0.0005481243133544922, 0.13066366314888, -0.49569186568260193, -0.744245707988739, -0.8624225854873657, -0.18969982862472534, 0.05947091430425644, 0.26775306463241577, 0.5194186568260193, -0.04186077415943146, 0.33207714557647705, 0.4952956438064575, -0.03145674243569374, 0.10559281706809998, -0.7731389999389648, 0.06133360415697098, 0.20845602452754974, -0.5491676926612854, -0.7157825827598572, 0.10514798760414124, 0.25284329056739807, 0.2923864722251892, 0.012282012030482292, 0.38672590255737305, 0.12989924848079681, 0.32415223121643066, -0.38033556938171387, 0.2725047171115875, -0.6042816638946533, 0.051016177982091904, 0.17417751252651215, -0.6265338659286499, -0.4569246470928192, -0.24806827306747437, 0.47854340076446533, -0.5526552796363831, 0.264395147562027, 0.21561433374881744, 0.9039211869239807, -0.04417536407709122, -0.44980287551879883, -0.5310876965522766, -0.496988445520401, 0.774194061756134, -0.9114969968795776, 0.27118003368377686, 0.31252697110176086, 0.24199308454990387, -0.5190798044204712, -0.8674669861793518, -0.6079315543174744, -0.2925313115119934, 0.025990422815084457, 0.15832658112049103, -0.22309429943561554, 0.3562852442264557, 0.3925105035305023, 0.3507723808288574, -0.7192819714546204, -0.265899658203125, -0.5307175517082214, -0.6137674450874329, 0.531960666179657, 0.25607097148895264, 0.2153071165084839, -0.3102017343044281, -0.4172717034816742, -0.13809825479984283, -0.41259700059890747, 0.0814407616853714, 0.4542759358882904, 0.22404371201992035, -0.19278748333454132, 0.6785010099411011, -0.28150612115859985, 0.7983132600784302, 0.15009133517742157, -0.30943819880485535, 0.39507192373275757, -0.5225383043289185, -0.23915590345859528, -0.15455903112888336, 0.973889946937561, 0.5358842611312866, 0.2891693711280823, 0.2563282251358032, -0.032027535140514374, -0.36923500895500183, -0.06536225229501724, -1.0693867206573486, -0.17309868335723877, 0.4581933915615082, -0.5697795748710632, -0.31096112728118896, -0.24261637032032013, -0.789320170879364, -0.18792681396007538, -0.15218161046504974, 0.707751452922821, -0.5189192295074463, -0.4323374032974243, 0.09177593141794205, -0.24326282739639282, 0.2574179768562317, 0.344759076833725, -0.7933396697044373, 0.0895501896739006, 0.41611918807029724, 0.9646680355072021, 0.2340782880783081, -0.42125266790390015, -0.5498421788215637, -0.4104042947292328, -0.03368467465043068, 0.5512613654136658, -0.2166639119386673, -0.3031449317932129, 0.06688657402992249, -0.08112883567810059, -0.11681315302848816, -0.4357714056968689, -0.06153026223182678, -0.5075965523719788, 0.6860105395317078, 0.13566365838050842, -0.7390378713607788, -0.015014882199466228, 0.36018723249435425, -0.3142712116241455, 0.7787368893623352, 0.058823999017477036, -0.8573669791221619, 0.2759872376918793, -0.9622789025306702, -0.19311697781085968, 0.08567584306001663, -0.042639922350645065, -0.2455090582370758, 0.011762351728975773, -0.0033342617098242044, 0.5491338968276978, -0.2737479507923126, 0.05633779987692833, -0.37032878398895264, -0.16134780645370483, 0.6085169315338135, -0.5366771817207336, 0.9948999881744385, 0.37018725275993347, -0.2971060872077942, 0.4284176528453827, -0.62406986951828, 0.21591438353061676, 0.20737862586975098, -0.3236587643623352, 0.3134893476963043, -0.26984068751335144, 0.17352013289928436, 0.5146353244781494, 0.46101248264312744, -0.5464358329772949, 0.15387806296348572, -0.3875373899936676, 0.8786783218383789, 0.860566258430481, 0.007053333334624767, 0.2110414206981659, -0.29001370072364807, 0.4527478516101837, 0.04111494868993759, 0.2405436933040619, -0.44288793206214905, -0.4382558763027191, -0.8346067070960999, -0.32723018527030945, 0.16925090551376343, 0.5142150521278381, -0.793070912361145, 0.7502755522727966, -0.09222828596830368, -0.3931483328342438, -0.38289904594421387, -0.08518540859222412, 0.2259223908185959, 0.5051840543746948, 0.11698778718709946, -0.3829580843448639, -0.6826620101928711, -0.6593406796455383, -0.05800292268395424, -0.3826736807823181, -0.18043668568134308, 0.36606988310813904, 0.6123138070106506, -0.05053187906742096, 0.9927569627761841, -0.6356233358383179, -0.1222171038389206, -0.44271525740623474, 0.37440991401672363, 0.08992360532283783, 0.6140289902687073, 0.4110720455646515, -0.6261640787124634, -0.44541916251182556, -0.3780041038990021, -0.5493654608726501, 0.24499379098415375, -0.2060873955488205, -0.2624572515487671, 0.22200952470302582, 0.464639276266098, -0.759900689125061, 0.5447142720222473, 0.5142108798027039, -0.6599929332733154, 0.7177255153656006, -0.16657212376594543, 0.3723379075527191, -1.355197787284851, 0.01342890877276659, -0.38387417793273926, -0.46718475222587585, -0.6009004712104797, -0.17605791985988617, -0.38647520542144775, -0.4475609362125397, -0.6701037883758545, 0.5905358195304871, -0.3511849641799927, -0.007824734784662724, -0.24825797975063324, 0.04065855219960213, -0.36575832962989807, 0.7909482717514038, -0.012368764728307724, 0.764038622379303, 0.5831260681152344, -0.4122799038887024, 0.7125756740570068, 0.39828798174858093, -0.16581204533576965, 0.559866189956665, -0.8525052070617676, 0.34176233410835266, 0.09475260972976685, 0.4203783869743347, -1.45261549949646, -0.4008537232875824, 0.1384865939617157, -0.9547106027603149, 0.14153771102428436, -0.19000239670276642, -0.5652127265930176, -0.506271481513977, -0.28904902935028076, 0.2229500561952591, 0.6369007229804993, -0.3621423840522766, 0.6103996634483337, 0.36044731736183167, -0.14782346785068512, -0.4133499264717102, -0.3913611173629761, 0.1001015231013298, -0.14367763698101044, -0.8655106425285339, -0.12201286852359772, -0.4201721251010895, 0.23687084019184113, -0.4063713252544403, 0.10461258888244629, -0.12793739140033722, -0.04295337200164795, 0.25555935502052307, 0.43993890285491943, -0.05971187353134155, 0.032466672360897064, -0.5075198411941528, -0.24690213799476624, 0.012185509316623211, -0.08313372731208801, 1.4127496480941772, -0.364978164434433, -0.22035962343215942, -0.742916464805603, 0.27446144819259644, 0.698864758014679, -0.002893645316362381, 0.6361813545227051, 0.6913897395133972, -0.26545342803001404, 0.2259584218263626, -0.6802471280097961, -0.6182985305786133, -0.5483563542366028, 0.6986632943153381, -0.3864628076553345, -0.9940235614776611, 0.5912845730781555, 0.01660999283194542, 0.3668070137500763, 0.4532335698604584, 0.8860490918159485, -0.01629212498664856, 1.2734702825546265, 0.5238391160964966, 0.002587903756648302, 0.740492045879364, -0.39913520216941833, 0.2086077183485031, -0.5613041520118713, -0.01875269040465355, -0.2956226170063019, -0.1723586618900299, -0.5939985513687134, -0.20223769545555115, 0.140238419175148, -0.008309870027005672, -0.4946134388446808, 0.3765106797218323, -0.4414919316768646, 0.15568722784519196, 0.7517175078392029, 0.04640870541334152, 0.0924544706940651, -0.0864444375038147, 0.0946672335267067, -0.023436322808265686, -0.7369664311408997, -0.5222051739692688, 1.258375883102417, 0.40211784839630127, 0.6934706568717957, -0.2083258181810379, 0.7950778007507324, 0.07392720878124237, 0.09457580000162125, -0.8585923910140991, 0.7420462369918823, 0.5282475352287292, -0.9441758394241333, -0.4644283652305603, -0.6259504556655884, -0.9831084609031677, 0.13064949214458466, -0.2861953377723694, -1.08773672580719, -0.20241615176200867, 0.3984276354312897, -0.47883009910583496, 0.1890755444765091, -0.9490350484848022, 0.9359431266784668, -0.30147576332092285, -0.26812127232551575, -0.1255561262369156, -0.7106139063835144, 0.21286919713020325, 0.20302151143550873, -0.13145332038402557, -0.15834516286849976, 0.3047674298286438, 0.8934592008590698, -0.5076853036880493, 0.7956967353820801, -0.23669381439685822, 0.28984272480010986, 0.3595186769962311, 0.16080942749977112, 0.3171626031398773, 0.09501343965530396, 0.24745197594165802, -0.030210917815566063, 0.15061509609222412, -0.4688479006290436, -0.31688472628593445, 0.5404697060585022, -0.9735086560249329, -0.5769907832145691, -0.3494156002998352, -0.5404608249664307, -0.15225057303905487, 0.41107451915740967, 0.6732231378555298, 0.5061479210853577, -0.28286582231521606, 0.3109111189842224, 0.34712445735931396, -0.3694564700126648, 0.4963189661502838, 0.3276948630809784, -0.2856009900569916, -0.5064803957939148, 0.8640957474708557, 0.08871284872293472, 0.47402846813201904, 0.0798117071390152, 0.03573913499712944, -0.3250580132007599, -0.20437969267368317, -0.37142419815063477, 0.08274422585964203, -0.44714537262916565, -0.2195967584848404, -0.639151394367218, -0.4847654402256012, -0.6553241014480591, -0.11350706219673157, -0.6118170022964478, -0.298516184091568, -0.20737749338150024, 0.029628237709403038, 0.34218838810920715, 0.38514018058776855, -0.006887554656714201, 0.39377784729003906, -0.6882084012031555, 0.2689707279205322, 0.6356832385063171, 0.12376031279563904, 0.05103814974427223, -0.5318567156791687, 0.050722938030958176, 0.2781856060028076, -0.5326195359230042, -0.7397228479385376, 0.5032704472541809, 0.10871010273694992, 0.5014470219612122, 0.4577804207801819, 0.12176261097192764, 0.7670780420303345, -0.2811219394207001, 0.986272394657135, 0.5374696850776672, -0.9023953080177307, 0.3715291917324066, -0.19268898665905, 0.3838425576686859, 0.4323425590991974, 0.11995256692171097, -0.6851173639297485, -0.2897178530693054, -0.8943272829055786, -0.9368700981140137, 0.885822594165802, 0.612212598323822, 0.43073001503944397, 0.10400000214576721, 0.04115692153573036, -0.0034826137125492096, 0.4930882155895233, -0.7798479199409485, -0.37097787857055664, -0.34975868463516235, -0.10213299095630646, 0.016815772280097008, -0.3007112145423889, -0.12268194556236267, -0.168049618601799, 0.6242645382881165, -0.10112021118402481, 0.79127037525177, 0.14786066114902496, -0.10428807139396667, 0.05542793124914169, 0.1844468116760254, 0.6550087928771973, 0.838628888130188, -0.36607739329338074, -0.11178512871265411, 0.15927395224571228, -0.4696875512599945, -0.0565640926361084, 0.17314527928829193, 0.2685248553752899, -0.10347367823123932, 0.4259129464626312, 0.9216131567955017, -0.08895320445299149, -0.6613944172859192, 0.6859539747238159, -0.4071873128414154, -0.3705641031265259, -0.49660468101501465, 0.027327895164489746, 0.1754615157842636, 0.16490918397903442, 0.5569713115692139, -0.02018897794187069, 0.05953983962535858, -0.7310220003128052, 0.13278724253177643, 0.49473968148231506, -0.3609083294868469, -0.33890822529792786, 0.6048128008842468, 0.612998902797699, -0.635423481464386, 0.867699384689331, -0.11555364727973938, -0.6940180659294128, 0.4872431457042694, 0.494890421628952, 0.9655557870864868, 0.008636264130473137, 0.22805486619472504, 0.518975019454956, -0.010030554607510567, 0.15428102016448975, 0.33108997344970703, -0.17957885563373566, -0.7688254117965698, -0.22651231288909912, -0.4219047725200653, -0.20951780676841736, 0.34908199310302734, -0.47103217244148254, 0.2946700155735016, -0.47570836544036865, -0.40850353240966797, 0.04879244044423103, 0.019572874531149864, -1.0038917064666748, 0.015722179785370827, -0.07173101603984833, 0.7461472153663635, -0.6302964687347412, 0.345139741897583, 0.46091052889823914, -0.3320392668247223, -0.5754036903381348, -0.057200755923986435, 0.13451255857944489, -1.0110299587249756, 0.523777425289154, 0.32352519035339355, 0.1069975271821022, 0.2408771514892578, -0.8111834526062012, -0.7254853248596191, 0.9221172332763672, 0.32795172929763794, -0.4695536494255066, -0.11503362655639648, 0.200979545712471, 0.3934265375137329, -0.37546974420547485, 0.699820339679718, 0.42766353487968445, 0.11545512080192566, 0.3599708378314972, -1.1171890497207642, -0.002212296240031719, -0.2963602840900421, -0.1233752965927124, -0.036623429507017136, -0.749154269695282, 0.8989359140396118, -0.21903125941753387, -0.13261766731739044, 0.28324368596076965, 0.5920712351799011, 0.3214152157306671, 0.04934268072247505, 0.7426236271858215, 0.32691022753715515, 0.4976149797439575, -0.20838910341262817, 0.8130485415458679, -0.586979866027832, 0.6946789026260376, 0.9914016127586365, 0.1643398106098175, 0.6942060589790344, 0.54234379529953, -0.17112253606319427, 0.23467420041561127, 0.7771409153938293, 0.20846499502658844, 0.32763099670410156, 0.2725377678871155, -0.1794162541627884, -0.41395801305770874, 0.03521985188126564, -0.4566847085952759, 0.48979419469833374, 0.17183417081832886, -0.33033499121665955, -0.11854425072669983, 0.10454146564006805, 0.19067932665348053, -0.6507952809333801, 0.01429606880992651, 0.9124782681465149, -0.0853152796626091, -0.6511420607566833, 0.6671603322029114, -0.29301491379737854, 0.8853189945220947, -0.8197416663169861, -0.07825478911399841, -0.0863812118768692, 0.25293204188346863, -0.13106535375118256, -0.5627676844596863, -0.14991061389446259, -0.18057483434677124, 0.16961729526519775, -0.044069383293390274, 0.6336333751678467, -0.3649229407310486, -0.30726027488708496, -0.01414813008159399, 0.5282894968986511, 0.25144466757774353, 0.007946465164422989, -0.9349525570869446, -0.05128278210759163, 0.25484898686408997, -0.7162500023841858, 0.290981262922287, 0.2563156485557556, 0.36093464493751526, 0.7539824843406677, 0.8112085461616516, -0.14833854138851166, 0.14397664368152618, -0.1678875982761383, 0.8647506833076477, -0.6178596019744873, -0.5888727307319641, -0.7901853322982788, 0.7193554639816284, -0.3732912838459015, -0.7964537739753723, 0.7444005608558655, 0.5927976369857788, 0.7598787546157837, -0.20794858038425446, 0.6789265275001526, -0.331983357667923, 0.3444768190383911, -0.2558714747428894, 0.5935818552970886, -0.48064374923706055, -0.050107378512620926, -0.27676352858543396, -0.7968578934669495, 0.0018973295809701085, 0.8614072799682617, -0.15514282882213593, 0.21526947617530823, 0.47576645016670227, 0.8843929171562195, 0.12103965133428574, -0.08404528349637985, 0.406787246465683, 0.36328351497650146, 0.5419338345527649, 0.5296222567558289, 0.9443926215171814, -0.38867607712745667, 0.8007631897926331, -0.1079452633857727, -0.4191346764564514, -0.4462883770465851, -0.6436524987220764, -1.2281767129898071, -0.7198699712753296, -0.21315403282642365, -0.5565820932388306, -0.13015475869178772, 1.350429654121399, 1.0195677280426025, -0.6680134534835815, -0.4159488081932068, -0.15422536432743073, -0.1234952062368393, 0.03404638171195984, -0.3172972798347473, 0.1837938129901886, -0.44462084770202637, -0.8673058152198792, -0.14930947124958038, 0.09059339761734009, 0.3621792197227478, -0.4256855249404907, -0.0477304570376873, -0.16492296755313873, 0.12315395474433899, 0.633788526058197, 0.38381242752075195, -0.5230602622032166, -0.3456284701824188, 0.15415188670158386, -0.14390723407268524, 0.040022578090429306, 0.6807273626327515, -0.42291393876075745, 0.7122753858566284, 0.7393457889556885, 0.16316190361976624, 0.7766375541687012, -0.1879948377609253, 0.8055153489112854, -0.4933757185935974, 0.395876944065094, 0.29802238941192627, 0.42599812150001526, 0.1941763162612915, -0.2634294331073761, 0.28294146060943604, 0.17869648337364197, -0.7785741090774536, -0.8054828643798828, 0.21777768433094025, -0.9465067386627197, -0.1478869616985321, 1.0207575559616089, -0.2586909532546997, -0.16425274312496185, -0.1520085632801056, -0.7628297805786133, 0.2480320781469345, -0.6943328380584717, 0.8473292589187622, 0.6946201324462891, -0.3433307111263275, -0.06957775354385376, -0.4729952812194824, 0.588923990726471, 0.3146854043006897, -0.6730855703353882, 0.07820025086402893, 0.44611993432044983, 0.4550358057022095, 0.3062485158443451, 0.9504044651985168, 0.007526323199272156, 0.3413963317871094, 0.13306719064712524, 0.21455389261245728, -0.09615513682365417, -0.02712370827794075, 0.04933667927980423, 0.21621595323085785, -0.04195113107562065, -0.4686511158943176 ]
BAAI/bge-base-en
BAAI
"2023-10-12T03:37:19Z"
20,850
41
transformers
[ "transformers", "pytorch", "safetensors", "bert", "feature-extraction", "mteb", "en", "arxiv:2310.07554", "arxiv:2309.07597", "license:mit", "model-index", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2023-08-05T08:03:50Z"
--- tags: - mteb model-index: - name: bge-base-en results: - task: type: Classification dataset: type: mteb/amazon_counterfactual name: MTEB AmazonCounterfactualClassification (en) config: en split: test revision: e8379541af4e31359cca9fbcf4b00f2671dba205 metrics: - type: accuracy value: 75.73134328358209 - type: ap value: 38.97277232632892 - type: f1 value: 69.81740361139785 - task: type: Classification dataset: type: mteb/amazon_polarity name: MTEB AmazonPolarityClassification config: default split: test revision: e2d317d38cd51312af73b3d32a06d1a08b442046 metrics: - type: accuracy value: 92.56522500000001 - type: ap value: 88.88821771869553 - type: f1 value: 92.54817512659696 - task: type: Classification dataset: type: mteb/amazon_reviews_multi name: MTEB AmazonReviewsClassification (en) config: en split: test revision: 1399c76144fd37290681b995c656ef9b2e06e26d metrics: - type: accuracy value: 46.91 - type: f1 value: 46.28536394320311 - task: type: Retrieval dataset: type: arguana name: MTEB ArguAna config: default split: test revision: None metrics: - type: map_at_1 value: 38.834 - type: map_at_10 value: 53.564 - type: map_at_100 value: 54.230000000000004 - type: map_at_1000 value: 54.235 - type: map_at_3 value: 49.49 - type: map_at_5 value: 51.784 - type: mrr_at_1 value: 39.26 - type: mrr_at_10 value: 53.744 - type: mrr_at_100 value: 54.410000000000004 - type: mrr_at_1000 value: 54.415 - type: mrr_at_3 value: 49.656 - type: mrr_at_5 value: 52.018 - type: ndcg_at_1 value: 38.834 - type: ndcg_at_10 value: 61.487 - type: ndcg_at_100 value: 64.303 - type: ndcg_at_1000 value: 64.408 - type: ndcg_at_3 value: 53.116 - type: ndcg_at_5 value: 57.248 - type: precision_at_1 value: 38.834 - type: precision_at_10 value: 8.663 - type: precision_at_100 value: 0.989 - type: precision_at_1000 value: 0.1 - type: precision_at_3 value: 21.218999999999998 - type: precision_at_5 value: 14.737 - type: recall_at_1 value: 38.834 - type: recall_at_10 value: 86.629 - type: recall_at_100 value: 98.86200000000001 - type: recall_at_1000 value: 99.644 - type: recall_at_3 value: 63.656 - type: recall_at_5 value: 73.68400000000001 - task: type: Clustering dataset: type: mteb/arxiv-clustering-p2p name: MTEB ArxivClusteringP2P config: default split: test revision: a122ad7f3f0291bf49cc6f4d32aa80929df69d5d metrics: - type: v_measure value: 48.88475477433035 - task: type: Clustering dataset: type: mteb/arxiv-clustering-s2s name: MTEB ArxivClusteringS2S config: default split: test revision: f910caf1a6075f7329cdf8c1a6135696f37dbd53 metrics: - type: v_measure value: 42.85053138403176 - task: type: Reranking dataset: type: mteb/askubuntudupquestions-reranking name: MTEB AskUbuntuDupQuestions config: default split: test revision: 2000358ca161889fa9c082cb41daa8dcfb161a54 metrics: - type: map value: 62.23221013208242 - type: mrr value: 74.64857318735436 - task: type: STS dataset: type: mteb/biosses-sts name: MTEB BIOSSES config: default split: test revision: d3fb88f8f02e40887cd149695127462bbcf29b4a metrics: - type: cos_sim_pearson value: 87.4403443247284 - type: cos_sim_spearman value: 85.5326718115169 - type: euclidean_pearson value: 86.0114007449595 - type: euclidean_spearman value: 86.05979225604875 - type: manhattan_pearson value: 86.05423806568598 - type: manhattan_spearman value: 86.02485170086835 - task: type: Classification dataset: type: mteb/banking77 name: MTEB Banking77Classification config: default split: test revision: 0fd18e25b25c072e09e0d92ab615fda904d66300 metrics: - type: accuracy value: 86.44480519480518 - type: f1 value: 86.41301900941988 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-p2p name: MTEB BiorxivClusteringP2P config: default split: test revision: 65b79d1d13f80053f67aca9498d9402c2d9f1f40 metrics: - type: v_measure value: 40.17547250880036 - task: type: Clustering dataset: type: mteb/biorxiv-clustering-s2s name: MTEB BiorxivClusteringS2S config: default split: test revision: 258694dd0231531bc1fd9de6ceb52a0853c6d908 metrics: - type: v_measure value: 37.74514172687293 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackAndroidRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 32.096000000000004 - type: map_at_10 value: 43.345 - type: map_at_100 value: 44.73 - type: map_at_1000 value: 44.85 - type: map_at_3 value: 39.956 - type: map_at_5 value: 41.727 - type: mrr_at_1 value: 38.769999999999996 - type: mrr_at_10 value: 48.742000000000004 - type: mrr_at_100 value: 49.474000000000004 - type: mrr_at_1000 value: 49.513 - type: mrr_at_3 value: 46.161 - type: mrr_at_5 value: 47.721000000000004 - type: ndcg_at_1 value: 38.769999999999996 - type: ndcg_at_10 value: 49.464999999999996 - type: ndcg_at_100 value: 54.632000000000005 - type: ndcg_at_1000 value: 56.52 - type: ndcg_at_3 value: 44.687 - type: ndcg_at_5 value: 46.814 - type: precision_at_1 value: 38.769999999999996 - type: precision_at_10 value: 9.471 - type: precision_at_100 value: 1.4909999999999999 - type: precision_at_1000 value: 0.194 - type: precision_at_3 value: 21.268 - type: precision_at_5 value: 15.079 - type: recall_at_1 value: 32.096000000000004 - type: recall_at_10 value: 60.99099999999999 - type: recall_at_100 value: 83.075 - type: recall_at_1000 value: 95.178 - type: recall_at_3 value: 47.009 - type: recall_at_5 value: 53.348 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackEnglishRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 32.588 - type: map_at_10 value: 42.251 - type: map_at_100 value: 43.478 - type: map_at_1000 value: 43.617 - type: map_at_3 value: 39.381 - type: map_at_5 value: 41.141 - type: mrr_at_1 value: 41.21 - type: mrr_at_10 value: 48.765 - type: mrr_at_100 value: 49.403000000000006 - type: mrr_at_1000 value: 49.451 - type: mrr_at_3 value: 46.73 - type: mrr_at_5 value: 47.965999999999994 - type: ndcg_at_1 value: 41.21 - type: ndcg_at_10 value: 47.704 - type: ndcg_at_100 value: 51.916 - type: ndcg_at_1000 value: 54.013999999999996 - type: ndcg_at_3 value: 44.007000000000005 - type: ndcg_at_5 value: 45.936 - type: precision_at_1 value: 41.21 - type: precision_at_10 value: 8.885 - type: precision_at_100 value: 1.409 - type: precision_at_1000 value: 0.189 - type: precision_at_3 value: 21.274 - type: precision_at_5 value: 15.045 - type: recall_at_1 value: 32.588 - type: recall_at_10 value: 56.333 - type: recall_at_100 value: 74.251 - type: recall_at_1000 value: 87.518 - type: recall_at_3 value: 44.962 - type: recall_at_5 value: 50.609 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackGamingRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 40.308 - type: map_at_10 value: 53.12 - type: map_at_100 value: 54.123 - type: map_at_1000 value: 54.173 - type: map_at_3 value: 50.017999999999994 - type: map_at_5 value: 51.902 - type: mrr_at_1 value: 46.394999999999996 - type: mrr_at_10 value: 56.531 - type: mrr_at_100 value: 57.19800000000001 - type: mrr_at_1000 value: 57.225 - type: mrr_at_3 value: 54.368 - type: mrr_at_5 value: 55.713 - type: ndcg_at_1 value: 46.394999999999996 - type: ndcg_at_10 value: 58.811 - type: ndcg_at_100 value: 62.834 - type: ndcg_at_1000 value: 63.849999999999994 - type: ndcg_at_3 value: 53.88699999999999 - type: ndcg_at_5 value: 56.477999999999994 - type: precision_at_1 value: 46.394999999999996 - type: precision_at_10 value: 9.398 - type: precision_at_100 value: 1.2309999999999999 - type: precision_at_1000 value: 0.136 - type: precision_at_3 value: 24.221999999999998 - type: precision_at_5 value: 16.539 - type: recall_at_1 value: 40.308 - type: recall_at_10 value: 72.146 - type: recall_at_100 value: 89.60900000000001 - type: recall_at_1000 value: 96.733 - type: recall_at_3 value: 58.91499999999999 - type: recall_at_5 value: 65.34299999999999 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackGisRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 27.383000000000003 - type: map_at_10 value: 35.802 - type: map_at_100 value: 36.756 - type: map_at_1000 value: 36.826 - type: map_at_3 value: 32.923 - type: map_at_5 value: 34.577999999999996 - type: mrr_at_1 value: 29.604999999999997 - type: mrr_at_10 value: 37.918 - type: mrr_at_100 value: 38.732 - type: mrr_at_1000 value: 38.786 - type: mrr_at_3 value: 35.198 - type: mrr_at_5 value: 36.808 - type: ndcg_at_1 value: 29.604999999999997 - type: ndcg_at_10 value: 40.836 - type: ndcg_at_100 value: 45.622 - type: ndcg_at_1000 value: 47.427 - type: ndcg_at_3 value: 35.208 - type: ndcg_at_5 value: 38.066 - type: precision_at_1 value: 29.604999999999997 - type: precision_at_10 value: 6.226 - type: precision_at_100 value: 0.9079999999999999 - type: precision_at_1000 value: 0.11 - type: precision_at_3 value: 14.463000000000001 - type: precision_at_5 value: 10.35 - type: recall_at_1 value: 27.383000000000003 - type: recall_at_10 value: 54.434000000000005 - type: recall_at_100 value: 76.632 - type: recall_at_1000 value: 90.25 - type: recall_at_3 value: 39.275 - type: recall_at_5 value: 46.225 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackMathematicaRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 17.885 - type: map_at_10 value: 25.724000000000004 - type: map_at_100 value: 26.992 - type: map_at_1000 value: 27.107999999999997 - type: map_at_3 value: 23.04 - type: map_at_5 value: 24.529 - type: mrr_at_1 value: 22.264 - type: mrr_at_10 value: 30.548 - type: mrr_at_100 value: 31.593 - type: mrr_at_1000 value: 31.657999999999998 - type: mrr_at_3 value: 27.756999999999998 - type: mrr_at_5 value: 29.398999999999997 - type: ndcg_at_1 value: 22.264 - type: ndcg_at_10 value: 30.902 - type: ndcg_at_100 value: 36.918 - type: ndcg_at_1000 value: 39.735 - type: ndcg_at_3 value: 25.915 - type: ndcg_at_5 value: 28.255999999999997 - type: precision_at_1 value: 22.264 - type: precision_at_10 value: 5.634 - type: precision_at_100 value: 0.9939999999999999 - type: precision_at_1000 value: 0.13699999999999998 - type: precision_at_3 value: 12.396 - type: precision_at_5 value: 9.055 - type: recall_at_1 value: 17.885 - type: recall_at_10 value: 42.237 - type: recall_at_100 value: 68.489 - type: recall_at_1000 value: 88.721 - type: recall_at_3 value: 28.283 - type: recall_at_5 value: 34.300000000000004 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackPhysicsRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 29.737000000000002 - type: map_at_10 value: 39.757 - type: map_at_100 value: 40.992 - type: map_at_1000 value: 41.102 - type: map_at_3 value: 36.612 - type: map_at_5 value: 38.413000000000004 - type: mrr_at_1 value: 35.804 - type: mrr_at_10 value: 45.178000000000004 - type: mrr_at_100 value: 45.975 - type: mrr_at_1000 value: 46.021 - type: mrr_at_3 value: 42.541000000000004 - type: mrr_at_5 value: 44.167 - type: ndcg_at_1 value: 35.804 - type: ndcg_at_10 value: 45.608 - type: ndcg_at_100 value: 50.746 - type: ndcg_at_1000 value: 52.839999999999996 - type: ndcg_at_3 value: 40.52 - type: ndcg_at_5 value: 43.051 - type: precision_at_1 value: 35.804 - type: precision_at_10 value: 8.104 - type: precision_at_100 value: 1.256 - type: precision_at_1000 value: 0.161 - type: precision_at_3 value: 19.121 - type: precision_at_5 value: 13.532 - type: recall_at_1 value: 29.737000000000002 - type: recall_at_10 value: 57.66 - type: recall_at_100 value: 79.121 - type: recall_at_1000 value: 93.023 - type: recall_at_3 value: 43.13 - type: recall_at_5 value: 49.836000000000006 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackProgrammersRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 26.299 - type: map_at_10 value: 35.617 - type: map_at_100 value: 36.972 - type: map_at_1000 value: 37.096000000000004 - type: map_at_3 value: 32.653999999999996 - type: map_at_5 value: 34.363 - type: mrr_at_1 value: 32.877 - type: mrr_at_10 value: 41.423 - type: mrr_at_100 value: 42.333999999999996 - type: mrr_at_1000 value: 42.398 - type: mrr_at_3 value: 39.193 - type: mrr_at_5 value: 40.426 - type: ndcg_at_1 value: 32.877 - type: ndcg_at_10 value: 41.271 - type: ndcg_at_100 value: 46.843 - type: ndcg_at_1000 value: 49.366 - type: ndcg_at_3 value: 36.735 - type: ndcg_at_5 value: 38.775999999999996 - type: precision_at_1 value: 32.877 - type: precision_at_10 value: 7.580000000000001 - type: precision_at_100 value: 1.192 - type: precision_at_1000 value: 0.158 - type: precision_at_3 value: 17.541999999999998 - type: precision_at_5 value: 12.443 - type: recall_at_1 value: 26.299 - type: recall_at_10 value: 52.256 - type: recall_at_100 value: 75.919 - type: recall_at_1000 value: 93.185 - type: recall_at_3 value: 39.271 - type: recall_at_5 value: 44.901 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 27.05741666666667 - type: map_at_10 value: 36.086416666666665 - type: map_at_100 value: 37.26916666666667 - type: map_at_1000 value: 37.38191666666666 - type: map_at_3 value: 33.34225 - type: map_at_5 value: 34.86425 - type: mrr_at_1 value: 32.06008333333333 - type: mrr_at_10 value: 40.36658333333333 - type: mrr_at_100 value: 41.206500000000005 - type: mrr_at_1000 value: 41.261083333333325 - type: mrr_at_3 value: 38.01208333333334 - type: mrr_at_5 value: 39.36858333333333 - type: ndcg_at_1 value: 32.06008333333333 - type: ndcg_at_10 value: 41.3535 - type: ndcg_at_100 value: 46.42066666666666 - type: ndcg_at_1000 value: 48.655166666666666 - type: ndcg_at_3 value: 36.78041666666667 - type: ndcg_at_5 value: 38.91783333333334 - type: precision_at_1 value: 32.06008333333333 - type: precision_at_10 value: 7.169833333333332 - type: precision_at_100 value: 1.1395 - type: precision_at_1000 value: 0.15158333333333332 - type: precision_at_3 value: 16.852 - type: precision_at_5 value: 11.8645 - type: recall_at_1 value: 27.05741666666667 - type: recall_at_10 value: 52.64491666666666 - type: recall_at_100 value: 74.99791666666667 - type: recall_at_1000 value: 90.50524999999999 - type: recall_at_3 value: 39.684000000000005 - type: recall_at_5 value: 45.37225 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackStatsRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 25.607999999999997 - type: map_at_10 value: 32.28 - type: map_at_100 value: 33.261 - type: map_at_1000 value: 33.346 - type: map_at_3 value: 30.514999999999997 - type: map_at_5 value: 31.415 - type: mrr_at_1 value: 28.988000000000003 - type: mrr_at_10 value: 35.384 - type: mrr_at_100 value: 36.24 - type: mrr_at_1000 value: 36.299 - type: mrr_at_3 value: 33.717000000000006 - type: mrr_at_5 value: 34.507 - type: ndcg_at_1 value: 28.988000000000003 - type: ndcg_at_10 value: 36.248000000000005 - type: ndcg_at_100 value: 41.034 - type: ndcg_at_1000 value: 43.35 - type: ndcg_at_3 value: 32.987 - type: ndcg_at_5 value: 34.333999999999996 - type: precision_at_1 value: 28.988000000000003 - type: precision_at_10 value: 5.506 - type: precision_at_100 value: 0.853 - type: precision_at_1000 value: 0.11199999999999999 - type: precision_at_3 value: 14.11 - type: precision_at_5 value: 9.417 - type: recall_at_1 value: 25.607999999999997 - type: recall_at_10 value: 45.344 - type: recall_at_100 value: 67.132 - type: recall_at_1000 value: 84.676 - type: recall_at_3 value: 36.02 - type: recall_at_5 value: 39.613 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackTexRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 18.44 - type: map_at_10 value: 25.651000000000003 - type: map_at_100 value: 26.735 - type: map_at_1000 value: 26.86 - type: map_at_3 value: 23.409 - type: map_at_5 value: 24.604 - type: mrr_at_1 value: 22.195 - type: mrr_at_10 value: 29.482000000000003 - type: mrr_at_100 value: 30.395 - type: mrr_at_1000 value: 30.471999999999998 - type: mrr_at_3 value: 27.409 - type: mrr_at_5 value: 28.553 - type: ndcg_at_1 value: 22.195 - type: ndcg_at_10 value: 30.242 - type: ndcg_at_100 value: 35.397 - type: ndcg_at_1000 value: 38.287 - type: ndcg_at_3 value: 26.201 - type: ndcg_at_5 value: 28.008 - type: precision_at_1 value: 22.195 - type: precision_at_10 value: 5.372 - type: precision_at_100 value: 0.9259999999999999 - type: precision_at_1000 value: 0.135 - type: precision_at_3 value: 12.228 - type: precision_at_5 value: 8.727 - type: recall_at_1 value: 18.44 - type: recall_at_10 value: 40.325 - type: recall_at_100 value: 63.504000000000005 - type: recall_at_1000 value: 83.909 - type: recall_at_3 value: 28.925 - type: recall_at_5 value: 33.641 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackUnixRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 26.535999999999998 - type: map_at_10 value: 35.358000000000004 - type: map_at_100 value: 36.498999999999995 - type: map_at_1000 value: 36.597 - type: map_at_3 value: 32.598 - type: map_at_5 value: 34.185 - type: mrr_at_1 value: 31.25 - type: mrr_at_10 value: 39.593 - type: mrr_at_100 value: 40.443 - type: mrr_at_1000 value: 40.498 - type: mrr_at_3 value: 37.018 - type: mrr_at_5 value: 38.492 - type: ndcg_at_1 value: 31.25 - type: ndcg_at_10 value: 40.71 - type: ndcg_at_100 value: 46.079 - type: ndcg_at_1000 value: 48.287 - type: ndcg_at_3 value: 35.667 - type: ndcg_at_5 value: 38.080000000000005 - type: precision_at_1 value: 31.25 - type: precision_at_10 value: 6.847 - type: precision_at_100 value: 1.079 - type: precision_at_1000 value: 0.13699999999999998 - type: precision_at_3 value: 16.262 - type: precision_at_5 value: 11.455 - type: recall_at_1 value: 26.535999999999998 - type: recall_at_10 value: 52.92099999999999 - type: recall_at_100 value: 76.669 - type: recall_at_1000 value: 92.096 - type: recall_at_3 value: 38.956 - type: recall_at_5 value: 45.239000000000004 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackWebmastersRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 24.691 - type: map_at_10 value: 33.417 - type: map_at_100 value: 35.036 - type: map_at_1000 value: 35.251 - type: map_at_3 value: 30.646 - type: map_at_5 value: 32.177 - type: mrr_at_1 value: 30.04 - type: mrr_at_10 value: 37.905 - type: mrr_at_100 value: 38.929 - type: mrr_at_1000 value: 38.983000000000004 - type: mrr_at_3 value: 35.276999999999994 - type: mrr_at_5 value: 36.897000000000006 - type: ndcg_at_1 value: 30.04 - type: ndcg_at_10 value: 39.037 - type: ndcg_at_100 value: 44.944 - type: ndcg_at_1000 value: 47.644 - type: ndcg_at_3 value: 34.833999999999996 - type: ndcg_at_5 value: 36.83 - type: precision_at_1 value: 30.04 - type: precision_at_10 value: 7.4510000000000005 - type: precision_at_100 value: 1.492 - type: precision_at_1000 value: 0.234 - type: precision_at_3 value: 16.337 - type: precision_at_5 value: 11.897 - type: recall_at_1 value: 24.691 - type: recall_at_10 value: 49.303999999999995 - type: recall_at_100 value: 76.20400000000001 - type: recall_at_1000 value: 93.30000000000001 - type: recall_at_3 value: 36.594 - type: recall_at_5 value: 42.41 - task: type: Retrieval dataset: type: BeIR/cqadupstack name: MTEB CQADupstackWordpressRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 23.118 - type: map_at_10 value: 30.714999999999996 - type: map_at_100 value: 31.656000000000002 - type: map_at_1000 value: 31.757 - type: map_at_3 value: 28.355000000000004 - type: map_at_5 value: 29.337000000000003 - type: mrr_at_1 value: 25.323 - type: mrr_at_10 value: 32.93 - type: mrr_at_100 value: 33.762 - type: mrr_at_1000 value: 33.829 - type: mrr_at_3 value: 30.775999999999996 - type: mrr_at_5 value: 31.774 - type: ndcg_at_1 value: 25.323 - type: ndcg_at_10 value: 35.408 - type: ndcg_at_100 value: 40.083 - type: ndcg_at_1000 value: 42.542 - type: ndcg_at_3 value: 30.717 - type: ndcg_at_5 value: 32.385000000000005 - type: precision_at_1 value: 25.323 - type: precision_at_10 value: 5.564 - type: precision_at_100 value: 0.843 - type: precision_at_1000 value: 0.116 - type: precision_at_3 value: 13.001 - type: precision_at_5 value: 8.834999999999999 - type: recall_at_1 value: 23.118 - type: recall_at_10 value: 47.788000000000004 - type: recall_at_100 value: 69.37 - type: recall_at_1000 value: 87.47399999999999 - type: recall_at_3 value: 34.868 - type: recall_at_5 value: 39.001999999999995 - task: type: Retrieval dataset: type: climate-fever name: MTEB ClimateFEVER config: default split: test revision: None metrics: - type: map_at_1 value: 14.288 - type: map_at_10 value: 23.256 - type: map_at_100 value: 25.115 - type: map_at_1000 value: 25.319000000000003 - type: map_at_3 value: 20.005 - type: map_at_5 value: 21.529999999999998 - type: mrr_at_1 value: 31.401 - type: mrr_at_10 value: 42.251 - type: mrr_at_100 value: 43.236999999999995 - type: mrr_at_1000 value: 43.272 - type: mrr_at_3 value: 39.164 - type: mrr_at_5 value: 40.881 - type: ndcg_at_1 value: 31.401 - type: ndcg_at_10 value: 31.615 - type: ndcg_at_100 value: 38.982 - type: ndcg_at_1000 value: 42.496 - type: ndcg_at_3 value: 26.608999999999998 - type: ndcg_at_5 value: 28.048000000000002 - type: precision_at_1 value: 31.401 - type: precision_at_10 value: 9.536999999999999 - type: precision_at_100 value: 1.763 - type: precision_at_1000 value: 0.241 - type: precision_at_3 value: 19.153000000000002 - type: precision_at_5 value: 14.228 - type: recall_at_1 value: 14.288 - type: recall_at_10 value: 36.717 - type: recall_at_100 value: 61.9 - type: recall_at_1000 value: 81.676 - type: recall_at_3 value: 24.203 - type: recall_at_5 value: 28.793999999999997 - task: type: Retrieval dataset: type: dbpedia-entity name: MTEB DBPedia config: default split: test revision: None metrics: - type: map_at_1 value: 9.019 - type: map_at_10 value: 19.963 - type: map_at_100 value: 28.834 - type: map_at_1000 value: 30.537999999999997 - type: map_at_3 value: 14.45 - type: map_at_5 value: 16.817999999999998 - type: mrr_at_1 value: 65.75 - type: mrr_at_10 value: 74.646 - type: mrr_at_100 value: 74.946 - type: mrr_at_1000 value: 74.95100000000001 - type: mrr_at_3 value: 72.625 - type: mrr_at_5 value: 74.012 - type: ndcg_at_1 value: 54 - type: ndcg_at_10 value: 42.014 - type: ndcg_at_100 value: 47.527 - type: ndcg_at_1000 value: 54.911 - type: ndcg_at_3 value: 46.586 - type: ndcg_at_5 value: 43.836999999999996 - type: precision_at_1 value: 65.75 - type: precision_at_10 value: 33.475 - type: precision_at_100 value: 11.16 - type: precision_at_1000 value: 2.145 - type: precision_at_3 value: 50.083 - type: precision_at_5 value: 42.55 - type: recall_at_1 value: 9.019 - type: recall_at_10 value: 25.558999999999997 - type: recall_at_100 value: 53.937999999999995 - type: recall_at_1000 value: 77.67399999999999 - type: recall_at_3 value: 15.456 - type: recall_at_5 value: 19.259 - task: type: Classification dataset: type: mteb/emotion name: MTEB EmotionClassification config: default split: test revision: 4f58c6b202a23cf9a4da393831edf4f9183cad37 metrics: - type: accuracy value: 52.635 - type: f1 value: 47.692783881403926 - task: type: Retrieval dataset: type: fever name: MTEB FEVER config: default split: test revision: None metrics: - type: map_at_1 value: 76.893 - type: map_at_10 value: 84.897 - type: map_at_100 value: 85.122 - type: map_at_1000 value: 85.135 - type: map_at_3 value: 83.88 - type: map_at_5 value: 84.565 - type: mrr_at_1 value: 83.003 - type: mrr_at_10 value: 89.506 - type: mrr_at_100 value: 89.574 - type: mrr_at_1000 value: 89.575 - type: mrr_at_3 value: 88.991 - type: mrr_at_5 value: 89.349 - type: ndcg_at_1 value: 83.003 - type: ndcg_at_10 value: 88.351 - type: ndcg_at_100 value: 89.128 - type: ndcg_at_1000 value: 89.34100000000001 - type: ndcg_at_3 value: 86.92 - type: ndcg_at_5 value: 87.78200000000001 - type: precision_at_1 value: 83.003 - type: precision_at_10 value: 10.517999999999999 - type: precision_at_100 value: 1.115 - type: precision_at_1000 value: 0.11499999999999999 - type: precision_at_3 value: 33.062999999999995 - type: precision_at_5 value: 20.498 - type: recall_at_1 value: 76.893 - type: recall_at_10 value: 94.374 - type: recall_at_100 value: 97.409 - type: recall_at_1000 value: 98.687 - type: recall_at_3 value: 90.513 - type: recall_at_5 value: 92.709 - task: type: Retrieval dataset: type: fiqa name: MTEB FiQA2018 config: default split: test revision: None metrics: - type: map_at_1 value: 20.829 - type: map_at_10 value: 32.86 - type: map_at_100 value: 34.838 - type: map_at_1000 value: 35.006 - type: map_at_3 value: 28.597 - type: map_at_5 value: 31.056 - type: mrr_at_1 value: 41.358 - type: mrr_at_10 value: 49.542 - type: mrr_at_100 value: 50.29900000000001 - type: mrr_at_1000 value: 50.334999999999994 - type: mrr_at_3 value: 46.579 - type: mrr_at_5 value: 48.408 - type: ndcg_at_1 value: 41.358 - type: ndcg_at_10 value: 40.758 - type: ndcg_at_100 value: 47.799 - type: ndcg_at_1000 value: 50.589 - type: ndcg_at_3 value: 36.695 - type: ndcg_at_5 value: 38.193 - type: precision_at_1 value: 41.358 - type: precision_at_10 value: 11.142000000000001 - type: precision_at_100 value: 1.8350000000000002 - type: precision_at_1000 value: 0.234 - type: precision_at_3 value: 24.023 - type: precision_at_5 value: 17.963 - type: recall_at_1 value: 20.829 - type: recall_at_10 value: 47.467999999999996 - type: recall_at_100 value: 73.593 - type: recall_at_1000 value: 90.122 - type: recall_at_3 value: 32.74 - type: recall_at_5 value: 39.608 - task: type: Retrieval dataset: type: hotpotqa name: MTEB HotpotQA config: default split: test revision: None metrics: - type: map_at_1 value: 40.324 - type: map_at_10 value: 64.183 - type: map_at_100 value: 65.037 - type: map_at_1000 value: 65.094 - type: map_at_3 value: 60.663 - type: map_at_5 value: 62.951 - type: mrr_at_1 value: 80.648 - type: mrr_at_10 value: 86.005 - type: mrr_at_100 value: 86.157 - type: mrr_at_1000 value: 86.162 - type: mrr_at_3 value: 85.116 - type: mrr_at_5 value: 85.703 - type: ndcg_at_1 value: 80.648 - type: ndcg_at_10 value: 72.351 - type: ndcg_at_100 value: 75.279 - type: ndcg_at_1000 value: 76.357 - type: ndcg_at_3 value: 67.484 - type: ndcg_at_5 value: 70.31500000000001 - type: precision_at_1 value: 80.648 - type: precision_at_10 value: 15.103 - type: precision_at_100 value: 1.7399999999999998 - type: precision_at_1000 value: 0.188 - type: precision_at_3 value: 43.232 - type: precision_at_5 value: 28.165000000000003 - type: recall_at_1 value: 40.324 - type: recall_at_10 value: 75.517 - type: recall_at_100 value: 86.982 - type: recall_at_1000 value: 94.072 - type: recall_at_3 value: 64.848 - type: recall_at_5 value: 70.41199999999999 - task: type: Classification dataset: type: mteb/imdb name: MTEB ImdbClassification config: default split: test revision: 3d86128a09e091d6018b6d26cad27f2739fc2db7 metrics: - type: accuracy value: 91.4 - type: ap value: 87.4422032289312 - type: f1 value: 91.39249564302281 - task: type: Retrieval dataset: type: msmarco name: MTEB MSMARCO config: default split: dev revision: None metrics: - type: map_at_1 value: 22.03 - type: map_at_10 value: 34.402 - type: map_at_100 value: 35.599 - type: map_at_1000 value: 35.648 - type: map_at_3 value: 30.603 - type: map_at_5 value: 32.889 - type: mrr_at_1 value: 22.679 - type: mrr_at_10 value: 35.021 - type: mrr_at_100 value: 36.162 - type: mrr_at_1000 value: 36.205 - type: mrr_at_3 value: 31.319999999999997 - type: mrr_at_5 value: 33.562 - type: ndcg_at_1 value: 22.692999999999998 - type: ndcg_at_10 value: 41.258 - type: ndcg_at_100 value: 46.967 - type: ndcg_at_1000 value: 48.175000000000004 - type: ndcg_at_3 value: 33.611000000000004 - type: ndcg_at_5 value: 37.675 - type: precision_at_1 value: 22.692999999999998 - type: precision_at_10 value: 6.5089999999999995 - type: precision_at_100 value: 0.936 - type: precision_at_1000 value: 0.104 - type: precision_at_3 value: 14.413 - type: precision_at_5 value: 10.702 - type: recall_at_1 value: 22.03 - type: recall_at_10 value: 62.248000000000005 - type: recall_at_100 value: 88.524 - type: recall_at_1000 value: 97.714 - type: recall_at_3 value: 41.617 - type: recall_at_5 value: 51.359 - task: type: Classification dataset: type: mteb/mtop_domain name: MTEB MTOPDomainClassification (en) config: en split: test revision: d80d48c1eb48d3562165c59d59d0034df9fff0bf metrics: - type: accuracy value: 94.36844505243957 - type: f1 value: 94.12408743818202 - task: type: Classification dataset: type: mteb/mtop_intent name: MTEB MTOPIntentClassification (en) config: en split: test revision: ae001d0e6b1228650b7bd1c2c65fb50ad11a8aba metrics: - type: accuracy value: 76.43410852713177 - type: f1 value: 58.501855709435624 - task: type: Classification dataset: type: mteb/amazon_massive_intent name: MTEB MassiveIntentClassification (en) config: en split: test revision: 31efe3c427b0bae9c22cbb560b8f15491cc6bed7 metrics: - type: accuracy value: 76.04909213180902 - type: f1 value: 74.1800860395823 - task: type: Classification dataset: type: mteb/amazon_massive_scenario name: MTEB MassiveScenarioClassification (en) config: en split: test revision: 7d571f92784cd94a019292a1f45445077d0ef634 metrics: - type: accuracy value: 79.76126429051781 - type: f1 value: 79.85705217473232 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-p2p name: MTEB MedrxivClusteringP2P config: default split: test revision: e7a26af6f3ae46b30dde8737f02c07b1505bcc73 metrics: - type: v_measure value: 34.70119520292863 - task: type: Clustering dataset: type: mteb/medrxiv-clustering-s2s name: MTEB MedrxivClusteringS2S config: default split: test revision: 35191c8c0dca72d8ff3efcd72aa802307d469663 metrics: - type: v_measure value: 32.33544316467486 - task: type: Reranking dataset: type: mteb/mind_small name: MTEB MindSmallReranking config: default split: test revision: 3bdac13927fdc888b903db93b2ffdbd90b295a69 metrics: - type: map value: 30.75499243990726 - type: mrr value: 31.70602251821063 - task: type: Retrieval dataset: type: nfcorpus name: MTEB NFCorpus config: default split: test revision: None metrics: - type: map_at_1 value: 6.451999999999999 - type: map_at_10 value: 13.918 - type: map_at_100 value: 17.316000000000003 - type: map_at_1000 value: 18.747 - type: map_at_3 value: 10.471 - type: map_at_5 value: 12.104 - type: mrr_at_1 value: 46.749 - type: mrr_at_10 value: 55.717000000000006 - type: mrr_at_100 value: 56.249 - type: mrr_at_1000 value: 56.288000000000004 - type: mrr_at_3 value: 53.818 - type: mrr_at_5 value: 55.103 - type: ndcg_at_1 value: 45.201 - type: ndcg_at_10 value: 35.539 - type: ndcg_at_100 value: 32.586 - type: ndcg_at_1000 value: 41.486000000000004 - type: ndcg_at_3 value: 41.174 - type: ndcg_at_5 value: 38.939 - type: precision_at_1 value: 46.749 - type: precision_at_10 value: 25.944 - type: precision_at_100 value: 8.084 - type: precision_at_1000 value: 2.076 - type: precision_at_3 value: 38.7 - type: precision_at_5 value: 33.56 - type: recall_at_1 value: 6.451999999999999 - type: recall_at_10 value: 17.302 - type: recall_at_100 value: 32.14 - type: recall_at_1000 value: 64.12 - type: recall_at_3 value: 11.219 - type: recall_at_5 value: 13.993 - task: type: Retrieval dataset: type: nq name: MTEB NQ config: default split: test revision: None metrics: - type: map_at_1 value: 32.037 - type: map_at_10 value: 46.565 - type: map_at_100 value: 47.606 - type: map_at_1000 value: 47.636 - type: map_at_3 value: 42.459 - type: map_at_5 value: 44.762 - type: mrr_at_1 value: 36.181999999999995 - type: mrr_at_10 value: 49.291000000000004 - type: mrr_at_100 value: 50.059 - type: mrr_at_1000 value: 50.078 - type: mrr_at_3 value: 45.829 - type: mrr_at_5 value: 47.797 - type: ndcg_at_1 value: 36.153 - type: ndcg_at_10 value: 53.983000000000004 - type: ndcg_at_100 value: 58.347 - type: ndcg_at_1000 value: 59.058 - type: ndcg_at_3 value: 46.198 - type: ndcg_at_5 value: 50.022 - type: precision_at_1 value: 36.153 - type: precision_at_10 value: 8.763 - type: precision_at_100 value: 1.123 - type: precision_at_1000 value: 0.11900000000000001 - type: precision_at_3 value: 20.751 - type: precision_at_5 value: 14.646999999999998 - type: recall_at_1 value: 32.037 - type: recall_at_10 value: 74.008 - type: recall_at_100 value: 92.893 - type: recall_at_1000 value: 98.16 - type: recall_at_3 value: 53.705999999999996 - type: recall_at_5 value: 62.495 - task: type: Retrieval dataset: type: quora name: MTEB QuoraRetrieval config: default split: test revision: None metrics: - type: map_at_1 value: 71.152 - type: map_at_10 value: 85.104 - type: map_at_100 value: 85.745 - type: map_at_1000 value: 85.761 - type: map_at_3 value: 82.175 - type: map_at_5 value: 84.066 - type: mrr_at_1 value: 82.03 - type: mrr_at_10 value: 88.115 - type: mrr_at_100 value: 88.21 - type: mrr_at_1000 value: 88.211 - type: mrr_at_3 value: 87.19200000000001 - type: mrr_at_5 value: 87.85 - type: ndcg_at_1 value: 82.03 - type: ndcg_at_10 value: 88.78 - type: ndcg_at_100 value: 89.96300000000001 - type: ndcg_at_1000 value: 90.056 - type: ndcg_at_3 value: 86.051 - type: ndcg_at_5 value: 87.63499999999999 - type: precision_at_1 value: 82.03 - type: precision_at_10 value: 13.450000000000001 - type: precision_at_100 value: 1.5310000000000001 - type: precision_at_1000 value: 0.157 - type: precision_at_3 value: 37.627 - type: precision_at_5 value: 24.784 - type: recall_at_1 value: 71.152 - type: recall_at_10 value: 95.649 - type: recall_at_100 value: 99.58200000000001 - type: recall_at_1000 value: 99.981 - type: recall_at_3 value: 87.767 - type: recall_at_5 value: 92.233 - task: type: Clustering dataset: type: mteb/reddit-clustering name: MTEB RedditClustering config: default split: test revision: 24640382cdbf8abc73003fb0fa6d111a705499eb metrics: - type: v_measure value: 56.48713646277477 - task: type: Clustering dataset: type: mteb/reddit-clustering-p2p name: MTEB RedditClusteringP2P config: default split: test revision: 282350215ef01743dc01b456c7f5241fa8937f16 metrics: - type: v_measure value: 63.394940772438545 - task: type: Retrieval dataset: type: scidocs name: MTEB SCIDOCS config: default split: test revision: None metrics: - type: map_at_1 value: 5.043 - type: map_at_10 value: 12.949 - type: map_at_100 value: 15.146 - type: map_at_1000 value: 15.495000000000001 - type: map_at_3 value: 9.333 - type: map_at_5 value: 11.312999999999999 - type: mrr_at_1 value: 24.9 - type: mrr_at_10 value: 35.958 - type: mrr_at_100 value: 37.152 - type: mrr_at_1000 value: 37.201 - type: mrr_at_3 value: 32.667 - type: mrr_at_5 value: 34.567 - type: ndcg_at_1 value: 24.9 - type: ndcg_at_10 value: 21.298000000000002 - type: ndcg_at_100 value: 29.849999999999998 - type: ndcg_at_1000 value: 35.506 - type: ndcg_at_3 value: 20.548 - type: ndcg_at_5 value: 18.064 - type: precision_at_1 value: 24.9 - type: precision_at_10 value: 10.9 - type: precision_at_100 value: 2.331 - type: precision_at_1000 value: 0.367 - type: precision_at_3 value: 19.267 - type: precision_at_5 value: 15.939999999999998 - type: recall_at_1 value: 5.043 - type: recall_at_10 value: 22.092 - type: recall_at_100 value: 47.323 - type: recall_at_1000 value: 74.553 - type: recall_at_3 value: 11.728 - type: recall_at_5 value: 16.188 - task: type: STS dataset: type: mteb/sickr-sts name: MTEB SICK-R config: default split: test revision: a6ea5a8cab320b040a23452cc28066d9beae2cee metrics: - type: cos_sim_pearson value: 83.7007085938325 - type: cos_sim_spearman value: 80.0171084446234 - type: euclidean_pearson value: 81.28133218355893 - type: euclidean_spearman value: 79.99291731740131 - type: manhattan_pearson value: 81.22926922327846 - type: manhattan_spearman value: 79.94444878127038 - task: type: STS dataset: type: mteb/sts12-sts name: MTEB STS12 config: default split: test revision: a0d554a64d88156834ff5ae9920b964011b16384 metrics: - type: cos_sim_pearson value: 85.7411883252923 - type: cos_sim_spearman value: 77.93462937801245 - type: euclidean_pearson value: 83.00858563882404 - type: euclidean_spearman value: 77.82717362433257 - type: manhattan_pearson value: 82.92887645790769 - type: manhattan_spearman value: 77.78807488222115 - task: type: STS dataset: type: mteb/sts13-sts name: MTEB STS13 config: default split: test revision: 7e90230a92c190f1bf69ae9002b8cea547a64cca metrics: - type: cos_sim_pearson value: 82.04222459361023 - type: cos_sim_spearman value: 83.85931509330395 - type: euclidean_pearson value: 83.26916063876055 - type: euclidean_spearman value: 83.98621985648353 - type: manhattan_pearson value: 83.14935679184327 - type: manhattan_spearman value: 83.87938828586304 - task: type: STS dataset: type: mteb/sts14-sts name: MTEB STS14 config: default split: test revision: 6031580fec1f6af667f0bd2da0a551cf4f0b2375 metrics: - type: cos_sim_pearson value: 81.41136639535318 - type: cos_sim_spearman value: 81.51200091040481 - type: euclidean_pearson value: 81.45382456114775 - type: euclidean_spearman value: 81.46201181707931 - type: manhattan_pearson value: 81.37243088439584 - type: manhattan_spearman value: 81.39828421893426 - task: type: STS dataset: type: mteb/sts15-sts name: MTEB STS15 config: default split: test revision: ae752c7c21bf194d8b67fd573edf7ae58183cbe3 metrics: - type: cos_sim_pearson value: 85.71942451732227 - type: cos_sim_spearman value: 87.33044482064973 - type: euclidean_pearson value: 86.58580899365178 - type: euclidean_spearman value: 87.09206723832895 - type: manhattan_pearson value: 86.47460784157013 - type: manhattan_spearman value: 86.98367656583076 - task: type: STS dataset: type: mteb/sts16-sts name: MTEB STS16 config: default split: test revision: 4d8694f8f0e0100860b497b999b3dbed754a0513 metrics: - type: cos_sim_pearson value: 83.55868078863449 - type: cos_sim_spearman value: 85.38299230074065 - type: euclidean_pearson value: 84.64715256244595 - type: euclidean_spearman value: 85.49112229604047 - type: manhattan_pearson value: 84.60814346792462 - type: manhattan_spearman value: 85.44886026766822 - task: type: STS dataset: type: mteb/sts17-crosslingual-sts name: MTEB STS17 (en-en) config: en-en split: test revision: af5e6fb845001ecf41f4c1e033ce921939a2a68d metrics: - type: cos_sim_pearson value: 84.99292526370614 - type: cos_sim_spearman value: 85.58139465695983 - type: euclidean_pearson value: 86.51325066734084 - type: euclidean_spearman value: 85.56736418284562 - type: manhattan_pearson value: 86.48190836601357 - type: manhattan_spearman value: 85.51616256224258 - task: type: STS dataset: type: mteb/sts22-crosslingual-sts name: MTEB STS22 (en) config: en split: test revision: 6d1ba47164174a496b7fa5d3569dae26a6813b80 metrics: - type: cos_sim_pearson value: 64.54124715078807 - type: cos_sim_spearman value: 65.32134275948374 - type: euclidean_pearson value: 67.09791698300816 - type: euclidean_spearman value: 65.79468982468465 - type: manhattan_pearson value: 67.13304723693966 - type: manhattan_spearman value: 65.68439995849283 - task: type: STS dataset: type: mteb/stsbenchmark-sts name: MTEB STSBenchmark config: default split: test revision: b0fddb56ed78048fa8b90373c8a3cfc37b684831 metrics: - type: cos_sim_pearson value: 83.4231099581624 - type: cos_sim_spearman value: 85.95475815226862 - type: euclidean_pearson value: 85.00339401999706 - type: euclidean_spearman value: 85.74133081802971 - type: manhattan_pearson value: 85.00407987181666 - type: manhattan_spearman value: 85.77509596397363 - task: type: Reranking dataset: type: mteb/scidocs-reranking name: MTEB SciDocsRR config: default split: test revision: d3c5e1fc0b855ab6097bf1cda04dd73947d7caab metrics: - type: map value: 87.25666719585716 - type: mrr value: 96.32769917083642 - task: type: Retrieval dataset: type: scifact name: MTEB SciFact config: default split: test revision: None metrics: - type: map_at_1 value: 57.828 - type: map_at_10 value: 68.369 - type: map_at_100 value: 68.83399999999999 - type: map_at_1000 value: 68.856 - type: map_at_3 value: 65.38000000000001 - type: map_at_5 value: 67.06299999999999 - type: mrr_at_1 value: 61 - type: mrr_at_10 value: 69.45400000000001 - type: mrr_at_100 value: 69.785 - type: mrr_at_1000 value: 69.807 - type: mrr_at_3 value: 67 - type: mrr_at_5 value: 68.43299999999999 - type: ndcg_at_1 value: 61 - type: ndcg_at_10 value: 73.258 - type: ndcg_at_100 value: 75.173 - type: ndcg_at_1000 value: 75.696 - type: ndcg_at_3 value: 68.162 - type: ndcg_at_5 value: 70.53399999999999 - type: precision_at_1 value: 61 - type: precision_at_10 value: 9.8 - type: precision_at_100 value: 1.087 - type: precision_at_1000 value: 0.11299999999999999 - type: precision_at_3 value: 27 - type: precision_at_5 value: 17.666999999999998 - type: recall_at_1 value: 57.828 - type: recall_at_10 value: 87.122 - type: recall_at_100 value: 95.667 - type: recall_at_1000 value: 99.667 - type: recall_at_3 value: 73.139 - type: recall_at_5 value: 79.361 - task: type: PairClassification dataset: type: mteb/sprintduplicatequestions-pairclassification name: MTEB SprintDuplicateQuestions config: default split: test revision: d66bd1f72af766a5cc4b0ca5e00c162f89e8cc46 metrics: - type: cos_sim_accuracy value: 99.85247524752475 - type: cos_sim_ap value: 96.25640197639723 - type: cos_sim_f1 value: 92.37851662404091 - type: cos_sim_precision value: 94.55497382198953 - type: cos_sim_recall value: 90.3 - type: dot_accuracy value: 99.76138613861386 - type: dot_ap value: 93.40295864389073 - type: dot_f1 value: 87.64267990074441 - type: dot_precision value: 86.99507389162562 - type: dot_recall value: 88.3 - type: euclidean_accuracy value: 99.85049504950496 - type: euclidean_ap value: 96.24254350525462 - type: euclidean_f1 value: 92.32323232323232 - type: euclidean_precision value: 93.26530612244898 - type: euclidean_recall value: 91.4 - type: manhattan_accuracy value: 99.85346534653465 - type: manhattan_ap value: 96.2635334753325 - type: manhattan_f1 value: 92.37899073120495 - type: manhattan_precision value: 95.22292993630573 - type: manhattan_recall value: 89.7 - type: max_accuracy value: 99.85346534653465 - type: max_ap value: 96.2635334753325 - type: max_f1 value: 92.37899073120495 - task: type: Clustering dataset: type: mteb/stackexchange-clustering name: MTEB StackExchangeClustering config: default split: test revision: 6cbc1f7b2bc0622f2e39d2c77fa502909748c259 metrics: - type: v_measure value: 65.83905786483794 - task: type: Clustering dataset: type: mteb/stackexchange-clustering-p2p name: MTEB StackExchangeClusteringP2P config: default split: test revision: 815ca46b2622cec33ccafc3735d572c266efdb44 metrics: - type: v_measure value: 35.031896152126436 - task: type: Reranking dataset: type: mteb/stackoverflowdupquestions-reranking name: MTEB StackOverflowDupQuestions config: default split: test revision: e185fbe320c72810689fc5848eb6114e1ef5ec69 metrics: - type: map value: 54.551326709447146 - type: mrr value: 55.43758222986165 - task: type: Summarization dataset: type: mteb/summeval name: MTEB SummEval config: default split: test revision: cda12ad7615edc362dbf25a00fdd61d3b1eaf93c metrics: - type: cos_sim_pearson value: 30.305688567308874 - type: cos_sim_spearman value: 29.27135743434515 - type: dot_pearson value: 30.336741878796563 - type: dot_spearman value: 30.513365725895937 - task: type: Retrieval dataset: type: trec-covid name: MTEB TRECCOVID config: default split: test revision: None metrics: - type: map_at_1 value: 0.245 - type: map_at_10 value: 1.92 - type: map_at_100 value: 10.519 - type: map_at_1000 value: 23.874000000000002 - type: map_at_3 value: 0.629 - type: map_at_5 value: 1.0290000000000001 - type: mrr_at_1 value: 88 - type: mrr_at_10 value: 93.5 - type: mrr_at_100 value: 93.5 - type: mrr_at_1000 value: 93.5 - type: mrr_at_3 value: 93 - type: mrr_at_5 value: 93.5 - type: ndcg_at_1 value: 84 - type: ndcg_at_10 value: 76.447 - type: ndcg_at_100 value: 56.516 - type: ndcg_at_1000 value: 48.583999999999996 - type: ndcg_at_3 value: 78.877 - type: ndcg_at_5 value: 79.174 - type: precision_at_1 value: 88 - type: precision_at_10 value: 80.60000000000001 - type: precision_at_100 value: 57.64 - type: precision_at_1000 value: 21.227999999999998 - type: precision_at_3 value: 82 - type: precision_at_5 value: 83.6 - type: recall_at_1 value: 0.245 - type: recall_at_10 value: 2.128 - type: recall_at_100 value: 13.767 - type: recall_at_1000 value: 44.958 - type: recall_at_3 value: 0.654 - type: recall_at_5 value: 1.111 - task: type: Retrieval dataset: type: webis-touche2020 name: MTEB Touche2020 config: default split: test revision: None metrics: - type: map_at_1 value: 2.5170000000000003 - type: map_at_10 value: 10.915 - type: map_at_100 value: 17.535 - type: map_at_1000 value: 19.042 - type: map_at_3 value: 5.689 - type: map_at_5 value: 7.837 - type: mrr_at_1 value: 34.694 - type: mrr_at_10 value: 49.547999999999995 - type: mrr_at_100 value: 50.653000000000006 - type: mrr_at_1000 value: 50.653000000000006 - type: mrr_at_3 value: 44.558 - type: mrr_at_5 value: 48.333 - type: ndcg_at_1 value: 32.653 - type: ndcg_at_10 value: 26.543 - type: ndcg_at_100 value: 38.946 - type: ndcg_at_1000 value: 49.406 - type: ndcg_at_3 value: 29.903000000000002 - type: ndcg_at_5 value: 29.231 - type: precision_at_1 value: 34.694 - type: precision_at_10 value: 23.265 - type: precision_at_100 value: 8.102 - type: precision_at_1000 value: 1.5 - type: precision_at_3 value: 31.293 - type: precision_at_5 value: 29.796 - type: recall_at_1 value: 2.5170000000000003 - type: recall_at_10 value: 16.88 - type: recall_at_100 value: 49.381 - type: recall_at_1000 value: 81.23899999999999 - type: recall_at_3 value: 6.965000000000001 - type: recall_at_5 value: 10.847999999999999 - task: type: Classification dataset: type: mteb/toxic_conversations_50k name: MTEB ToxicConversationsClassification config: default split: test revision: d7c0de2777da35d6aae2200a62c6e0e5af397c4c metrics: - type: accuracy value: 71.5942 - type: ap value: 13.92074156956546 - type: f1 value: 54.671999698839066 - task: type: Classification dataset: type: mteb/tweet_sentiment_extraction name: MTEB TweetSentimentExtractionClassification config: default split: test revision: d604517c81ca91fe16a244d1248fc021f9ecee7a metrics: - type: accuracy value: 59.39728353140916 - type: f1 value: 59.68980496759517 - task: type: Clustering dataset: type: mteb/twentynewsgroups-clustering name: MTEB TwentyNewsgroupsClustering config: default split: test revision: 6125ec4e24fa026cec8a478383ee943acfbd5449 metrics: - type: v_measure value: 52.11181870104935 - task: type: PairClassification dataset: type: mteb/twittersemeval2015-pairclassification name: MTEB TwitterSemEval2015 config: default split: test revision: 70970daeab8776df92f5ea462b6173c0b46fd2d1 metrics: - type: cos_sim_accuracy value: 86.46957143708649 - type: cos_sim_ap value: 76.16120197845457 - type: cos_sim_f1 value: 69.69919295671315 - type: cos_sim_precision value: 64.94986326344576 - type: cos_sim_recall value: 75.19788918205805 - type: dot_accuracy value: 83.0780234845324 - type: dot_ap value: 64.21717343541934 - type: dot_f1 value: 59.48375497624245 - type: dot_precision value: 57.94345759319489 - type: dot_recall value: 61.108179419525065 - type: euclidean_accuracy value: 86.6543482148179 - type: euclidean_ap value: 76.4527555010203 - type: euclidean_f1 value: 70.10156056477584 - type: euclidean_precision value: 66.05975723622782 - type: euclidean_recall value: 74.67018469656992 - type: manhattan_accuracy value: 86.66030875603504 - type: manhattan_ap value: 76.40304567255436 - type: manhattan_f1 value: 70.05275426328058 - type: manhattan_precision value: 65.4666360926393 - type: manhattan_recall value: 75.32981530343008 - type: max_accuracy value: 86.66030875603504 - type: max_ap value: 76.4527555010203 - type: max_f1 value: 70.10156056477584 - task: type: PairClassification dataset: type: mteb/twitterurlcorpus-pairclassification name: MTEB TwitterURLCorpus config: default split: test revision: 8b6510b0b1fa4e4c4f879467980e9be563ec1cdf metrics: - type: cos_sim_accuracy value: 88.42123646524624 - type: cos_sim_ap value: 85.15431437761646 - type: cos_sim_f1 value: 76.98069301530742 - type: cos_sim_precision value: 72.9314502239063 - type: cos_sim_recall value: 81.50600554357868 - type: dot_accuracy value: 86.70974502270346 - type: dot_ap value: 80.77621563599457 - type: dot_f1 value: 73.87058697285117 - type: dot_precision value: 68.98256396552877 - type: dot_recall value: 79.50415768401602 - type: euclidean_accuracy value: 88.46392672798541 - type: euclidean_ap value: 85.20370297495491 - type: euclidean_f1 value: 77.01372369624886 - type: euclidean_precision value: 73.39052800446397 - type: euclidean_recall value: 81.01324299353249 - type: manhattan_accuracy value: 88.43481973066325 - type: manhattan_ap value: 85.16318289864545 - type: manhattan_f1 value: 76.90884877182597 - type: manhattan_precision value: 74.01737396753062 - type: manhattan_recall value: 80.03541730828458 - type: max_accuracy value: 88.46392672798541 - type: max_ap value: 85.20370297495491 - type: max_f1 value: 77.01372369624886 license: mit language: - en --- **Recommend switching to newest [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5), which has more reasonable similarity distribution and same method of usage.** <h1 align="center">FlagEmbedding</h1> <h4 align="center"> <p> <a href=#model-list>Model List</a> | <a href=#frequently-asked-questions>FAQ</a> | <a href=#usage>Usage</a> | <a href="#evaluation">Evaluation</a> | <a href="#train">Train</a> | <a href="#contact">Contact</a> | <a href="#citation">Citation</a> | <a href="#license">License</a> <p> </h4> More details please refer to our Github: [FlagEmbedding](https://github.com/FlagOpen/FlagEmbedding). [English](README.md) | [中文](https://github.com/FlagOpen/FlagEmbedding/blob/master/README_zh.md) FlagEmbedding can map any text to a low-dimensional dense vector which can be used for tasks like retrieval, classification, clustering, or semantic search. And it also can be used in vector databases for LLMs. ************* 🌟**Updates**🌟 ************* - 10/12/2023: Release [LLM-Embedder](./FlagEmbedding/llm_embedder/README.md), a unified embedding model to support diverse retrieval augmentation needs for LLMs. [Paper](https://arxiv.org/pdf/2310.07554.pdf) :fire: - 09/15/2023: The [technical report](https://arxiv.org/pdf/2309.07597.pdf) of BGE has been released - 09/15/2023: The [masive training data](https://data.baai.ac.cn/details/BAAI-MTP) of BGE has been released - 09/12/2023: New models: - **New reranker model**: release cross-encoder models `BAAI/bge-reranker-base` and `BAAI/bge-reranker-large`, which are more powerful than embedding model. We recommend to use/fine-tune them to re-rank top-k documents returned by embedding models. - **update embedding model**: release `bge-*-v1.5` embedding model to alleviate the issue of the similarity distribution, and enhance its retrieval ability without instruction. <details> <summary>More</summary> <!-- ### More --> - 09/07/2023: Update [fine-tune code](https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/README.md): Add script to mine hard negatives and support adding instruction during fine-tuning. - 08/09/2023: BGE Models are integrated into **Langchain**, you can use it like [this](#using-langchain); C-MTEB **leaderboard** is [available](https://huggingface.co/spaces/mteb/leaderboard). - 08/05/2023: Release base-scale and small-scale models, **best performance among the models of the same size 🤗** - 08/02/2023: Release `bge-large-*`(short for BAAI General Embedding) Models, **rank 1st on MTEB and C-MTEB benchmark!** :tada: :tada: - 08/01/2023: We release the [Chinese Massive Text Embedding Benchmark](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB) (**C-MTEB**), consisting of 31 test dataset. </details> ## Model List `bge` is short for `BAAI general embedding`. | Model | Language | | Description | query instruction for retrieval [1] | |:-------------------------------|:--------:| :--------:| :--------:|:--------:| | [BAAI/llm-embedder](https://huggingface.co/BAAI/llm-embedder) | English | [Inference](./FlagEmbedding/llm_embedder/README.md) [Fine-tune](./FlagEmbedding/llm_embedder/README.md) | a unified embedding model to support diverse retrieval augmentation needs for LLMs | See [README](./FlagEmbedding/llm_embedder/README.md) | | [BAAI/bge-reranker-large](https://huggingface.co/BAAI/bge-reranker-large) | Chinese and English | [Inference](#usage-for-reranker) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/reranker) | a cross-encoder model which is more accurate but less efficient [2] | | | [BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base) | Chinese and English | [Inference](#usage-for-reranker) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/reranker) | a cross-encoder model which is more accurate but less efficient [2] | | | [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `Represent this sentence for searching relevant passages: ` | | [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `Represent this sentence for searching relevant passages: ` | | [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `Represent this sentence for searching relevant passages: ` | | [BAAI/bge-large-zh-v1.5](https://huggingface.co/BAAI/bge-large-zh-v1.5) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `为这个句子生成表示以用于检索相关文章:` | | [BAAI/bge-base-zh-v1.5](https://huggingface.co/BAAI/bge-base-zh-v1.5) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `为这个句子生成表示以用于检索相关文章:` | | [BAAI/bge-small-zh-v1.5](https://huggingface.co/BAAI/bge-small-zh-v1.5) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | version 1.5 with more reasonable similarity distribution | `为这个句子生成表示以用于检索相关文章:` | | [BAAI/bge-large-en](https://huggingface.co/BAAI/bge-large-en) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | :trophy: rank **1st** in [MTEB](https://huggingface.co/spaces/mteb/leaderboard) leaderboard | `Represent this sentence for searching relevant passages: ` | | [BAAI/bge-base-en](https://huggingface.co/BAAI/bge-base-en) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | a base-scale model but with similar ability to `bge-large-en` | `Represent this sentence for searching relevant passages: ` | | [BAAI/bge-small-en](https://huggingface.co/BAAI/bge-small-en) | English | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) |a small-scale model but with competitive performance | `Represent this sentence for searching relevant passages: ` | | [BAAI/bge-large-zh](https://huggingface.co/BAAI/bge-large-zh) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | :trophy: rank **1st** in [C-MTEB](https://github.com/FlagOpen/FlagEmbedding/tree/master/C_MTEB) benchmark | `为这个句子生成表示以用于检索相关文章:` | | [BAAI/bge-base-zh](https://huggingface.co/BAAI/bge-base-zh) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | a base-scale model but with similar ability to `bge-large-zh` | `为这个句子生成表示以用于检索相关文章:` | | [BAAI/bge-small-zh](https://huggingface.co/BAAI/bge-small-zh) | Chinese | [Inference](#usage-for-embedding-model) [Fine-tune](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) | a small-scale model but with competitive performance | `为这个句子生成表示以用于检索相关文章:` | [1\]: If you need to search the relevant passages to a query, we suggest to add the instruction to the query; in other cases, no instruction is needed, just use the original query directly. In all cases, **no instruction** needs to be added to passages. [2\]: Different from embedding model, reranker uses question and document as input and directly output similarity instead of embedding. To balance the accuracy and time cost, cross-encoder is widely used to re-rank top-k documents retrieved by other simple models. For examples, use bge embedding model to retrieve top 100 relevant documents, and then use bge reranker to re-rank the top 100 document to get the final top-3 results. All models have been uploaded to Huggingface Hub, and you can see them at https://huggingface.co/BAAI. If you cannot open the Huggingface Hub, you also can download the models at https://model.baai.ac.cn/models . ## Frequently asked questions <details> <summary>1. How to fine-tune bge embedding model?</summary> <!-- ### How to fine-tune bge embedding model? --> Following this [example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune) to prepare data and fine-tune your model. Some suggestions: - Mine hard negatives following this [example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune#hard-negatives), which can improve the retrieval performance. - If you pre-train bge on your data, the pre-trained model cannot be directly used to calculate similarity, and it must be fine-tuned with contrastive learning before computing similarity. - If the accuracy of the fine-tuned model is still not high, it is recommended to use/fine-tune the cross-encoder model (bge-reranker) to re-rank top-k results. Hard negatives also are needed to fine-tune reranker. </details> <details> <summary>2. The similarity score between two dissimilar sentences is higher than 0.5</summary> <!-- ### The similarity score between two dissimilar sentences is higher than 0.5 --> **Suggest to use bge v1.5, which alleviates the issue of the similarity distribution.** Since we finetune the models by contrastive learning with a temperature of 0.01, the similarity distribution of the current BGE model is about in the interval \[0.6, 1\]. So a similarity score greater than 0.5 does not indicate that the two sentences are similar. For downstream tasks, such as passage retrieval or semantic similarity, **what matters is the relative order of the scores, not the absolute value.** If you need to filter similar sentences based on a similarity threshold, please select an appropriate similarity threshold based on the similarity distribution on your data (such as 0.8, 0.85, or even 0.9). </details> <details> <summary>3. When does the query instruction need to be used</summary> <!-- ### When does the query instruction need to be used --> For the `bge-*-v1.5`, we improve its retrieval ability when not using instruction. No instruction only has a slight degradation in retrieval performance compared with using instruction. So you can generate embedding without instruction in all cases for convenience. For a retrieval task that uses short queries to find long related documents, it is recommended to add instructions for these short queries. **The best method to decide whether to add instructions for queries is choosing the setting that achieves better performance on your task.** In all cases, the documents/passages do not need to add the instruction. </details> ## Usage ### Usage for Embedding Model Here are some examples for using `bge` models with [FlagEmbedding](#using-flagembedding), [Sentence-Transformers](#using-sentence-transformers), [Langchain](#using-langchain), or [Huggingface Transformers](#using-huggingface-transformers). #### Using FlagEmbedding ``` pip install -U FlagEmbedding ``` If it doesn't work for you, you can see [FlagEmbedding](https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/README.md) for more methods to install FlagEmbedding. ```python from FlagEmbedding import FlagModel sentences_1 = ["样例数据-1", "样例数据-2"] sentences_2 = ["样例数据-3", "样例数据-4"] model = FlagModel('BAAI/bge-large-zh-v1.5', query_instruction_for_retrieval="为这个句子生成表示以用于检索相关文章:", use_fp16=True) # Setting use_fp16 to True speeds up computation with a slight performance degradation embeddings_1 = model.encode(sentences_1) embeddings_2 = model.encode(sentences_2) similarity = embeddings_1 @ embeddings_2.T print(similarity) # for s2p(short query to long passage) retrieval task, suggest to use encode_queries() which will automatically add the instruction to each query # corpus in retrieval task can still use encode() or encode_corpus(), since they don't need instruction queries = ['query_1', 'query_2'] passages = ["样例文档-1", "样例文档-2"] q_embeddings = model.encode_queries(queries) p_embeddings = model.encode(passages) scores = q_embeddings @ p_embeddings.T ``` For the value of the argument `query_instruction_for_retrieval`, see [Model List](https://github.com/FlagOpen/FlagEmbedding/tree/master#model-list). By default, FlagModel will use all available GPUs when encoding. Please set `os.environ["CUDA_VISIBLE_DEVICES"]` to select specific GPUs. You also can set `os.environ["CUDA_VISIBLE_DEVICES"]=""` to make all GPUs unavailable. #### Using Sentence-Transformers You can also use the `bge` models with [sentence-transformers](https://www.SBERT.net): ``` pip install -U sentence-transformers ``` ```python from sentence_transformers import SentenceTransformer sentences_1 = ["样例数据-1", "样例数据-2"] sentences_2 = ["样例数据-3", "样例数据-4"] model = SentenceTransformer('BAAI/bge-large-zh-v1.5') embeddings_1 = model.encode(sentences_1, normalize_embeddings=True) embeddings_2 = model.encode(sentences_2, normalize_embeddings=True) similarity = embeddings_1 @ embeddings_2.T print(similarity) ``` For s2p(short query to long passage) retrieval task, each short query should start with an instruction (instructions see [Model List](https://github.com/FlagOpen/FlagEmbedding/tree/master#model-list)). But the instruction is not needed for passages. ```python from sentence_transformers import SentenceTransformer queries = ['query_1', 'query_2'] passages = ["样例文档-1", "样例文档-2"] instruction = "为这个句子生成表示以用于检索相关文章:" model = SentenceTransformer('BAAI/bge-large-zh-v1.5') q_embeddings = model.encode([instruction+q for q in queries], normalize_embeddings=True) p_embeddings = model.encode(passages, normalize_embeddings=True) scores = q_embeddings @ p_embeddings.T ``` #### Using Langchain You can use `bge` in langchain like this: ```python from langchain.embeddings import HuggingFaceBgeEmbeddings model_name = "BAAI/bge-large-en-v1.5" model_kwargs = {'device': 'cuda'} encode_kwargs = {'normalize_embeddings': True} # set True to compute cosine similarity model = HuggingFaceBgeEmbeddings( model_name=model_name, model_kwargs=model_kwargs, encode_kwargs=encode_kwargs, query_instruction="为这个句子生成表示以用于检索相关文章:" ) model.query_instruction = "为这个句子生成表示以用于检索相关文章:" ``` #### Using HuggingFace Transformers With the transformers package, you can use the model like this: First, you pass your input through the transformer model, then you select the last hidden state of the first token (i.e., [CLS]) as the sentence embedding. ```python from transformers import AutoTokenizer, AutoModel import torch # Sentences we want sentence embeddings for sentences = ["样例数据-1", "样例数据-2"] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-large-zh-v1.5') model = AutoModel.from_pretrained('BAAI/bge-large-zh-v1.5') model.eval() # Tokenize sentences encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt') # for s2p(short query to long passage) retrieval task, add an instruction to query (not add instruction for passages) # encoded_input = tokenizer([instruction + q for q in queries], padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input) # Perform pooling. In this case, cls pooling. sentence_embeddings = model_output[0][:, 0] # normalize embeddings sentence_embeddings = torch.nn.functional.normalize(sentence_embeddings, p=2, dim=1) print("Sentence embeddings:", sentence_embeddings) ``` ### Usage for Reranker Different from embedding model, reranker uses question and document as input and directly output similarity instead of embedding. You can get a relevance score by inputting query and passage to the reranker. The reranker is optimized based cross-entropy loss, so the relevance score is not bounded to a specific range. #### Using FlagEmbedding ``` pip install -U FlagEmbedding ``` Get relevance scores (higher scores indicate more relevance): ```python from FlagEmbedding import FlagReranker reranker = FlagReranker('BAAI/bge-reranker-large', use_fp16=True) # Setting use_fp16 to True speeds up computation with a slight performance degradation score = reranker.compute_score(['query', 'passage']) print(score) scores = reranker.compute_score([['what is panda?', 'hi'], ['what is panda?', 'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.']]) print(scores) ``` #### Using Huggingface transformers ```python import torch from transformers import AutoModelForSequenceClassification, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-reranker-large') model = AutoModelForSequenceClassification.from_pretrained('BAAI/bge-reranker-large') model.eval() pairs = [['what is panda?', 'hi'], ['what is panda?', 'The giant panda (Ailuropoda melanoleuca), sometimes called a panda bear or simply panda, is a bear species endemic to China.']] with torch.no_grad(): inputs = tokenizer(pairs, padding=True, truncation=True, return_tensors='pt', max_length=512) scores = model(**inputs, return_dict=True).logits.view(-1, ).float() print(scores) ``` ## Evaluation `baai-general-embedding` models achieve **state-of-the-art performance on both MTEB and C-MTEB leaderboard!** For more details and evaluation tools see our [scripts](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB/README.md). - **MTEB**: | Model Name | Dimension | Sequence Length | Average (56) | Retrieval (15) |Clustering (11) | Pair Classification (3) | Reranking (4) | STS (10) | Summarization (1) | Classification (12) | |:----:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| | [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) | 1024 | 512 | **64.23** | **54.29** | 46.08 | 87.12 | 60.03 | 83.11 | 31.61 | 75.97 | | [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) | 768 | 512 | 63.55 | 53.25 | 45.77 | 86.55 | 58.86 | 82.4 | 31.07 | 75.53 | | [BAAI/bge-small-en-v1.5](https://huggingface.co/BAAI/bge-small-en-v1.5) | 384 | 512 | 62.17 |51.68 | 43.82 | 84.92 | 58.36 | 81.59 | 30.12 | 74.14 | | [bge-large-en](https://huggingface.co/BAAI/bge-large-en) | 1024 | 512 | 63.98 | 53.9 | 46.98 | 85.8 | 59.48 | 81.56 | 32.06 | 76.21 | | [bge-base-en](https://huggingface.co/BAAI/bge-base-en) | 768 | 512 | 63.36 | 53.0 | 46.32 | 85.86 | 58.7 | 81.84 | 29.27 | 75.27 | | [gte-large](https://huggingface.co/thenlper/gte-large) | 1024 | 512 | 63.13 | 52.22 | 46.84 | 85.00 | 59.13 | 83.35 | 31.66 | 73.33 | | [gte-base](https://huggingface.co/thenlper/gte-base) | 768 | 512 | 62.39 | 51.14 | 46.2 | 84.57 | 58.61 | 82.3 | 31.17 | 73.01 | | [e5-large-v2](https://huggingface.co/intfloat/e5-large-v2) | 1024| 512 | 62.25 | 50.56 | 44.49 | 86.03 | 56.61 | 82.05 | 30.19 | 75.24 | | [bge-small-en](https://huggingface.co/BAAI/bge-small-en) | 384 | 512 | 62.11 | 51.82 | 44.31 | 83.78 | 57.97 | 80.72 | 30.53 | 74.37 | | [instructor-xl](https://huggingface.co/hkunlp/instructor-xl) | 768 | 512 | 61.79 | 49.26 | 44.74 | 86.62 | 57.29 | 83.06 | 32.32 | 61.79 | | [e5-base-v2](https://huggingface.co/intfloat/e5-base-v2) | 768 | 512 | 61.5 | 50.29 | 43.80 | 85.73 | 55.91 | 81.05 | 30.28 | 73.84 | | [gte-small](https://huggingface.co/thenlper/gte-small) | 384 | 512 | 61.36 | 49.46 | 44.89 | 83.54 | 57.7 | 82.07 | 30.42 | 72.31 | | [text-embedding-ada-002](https://platform.openai.com/docs/guides/embeddings) | 1536 | 8192 | 60.99 | 49.25 | 45.9 | 84.89 | 56.32 | 80.97 | 30.8 | 70.93 | | [e5-small-v2](https://huggingface.co/intfloat/e5-base-v2) | 384 | 512 | 59.93 | 49.04 | 39.92 | 84.67 | 54.32 | 80.39 | 31.16 | 72.94 | | [sentence-t5-xxl](https://huggingface.co/sentence-transformers/sentence-t5-xxl) | 768 | 512 | 59.51 | 42.24 | 43.72 | 85.06 | 56.42 | 82.63 | 30.08 | 73.42 | | [all-mpnet-base-v2](https://huggingface.co/sentence-transformers/all-mpnet-base-v2) | 768 | 514 | 57.78 | 43.81 | 43.69 | 83.04 | 59.36 | 80.28 | 27.49 | 65.07 | | [sgpt-bloom-7b1-msmarco](https://huggingface.co/bigscience/sgpt-bloom-7b1-msmarco) | 4096 | 2048 | 57.59 | 48.22 | 38.93 | 81.9 | 55.65 | 77.74 | 33.6 | 66.19 | - **C-MTEB**: We create the benchmark C-MTEB for Chinese text embedding which consists of 31 datasets from 6 tasks. Please refer to [C_MTEB](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB/README.md) for a detailed introduction. | Model | Embedding dimension | Avg | Retrieval | STS | PairClassification | Classification | Reranking | Clustering | |:-------------------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:| | [**BAAI/bge-large-zh-v1.5**](https://huggingface.co/BAAI/bge-large-zh-v1.5) | 1024 | **64.53** | 70.46 | 56.25 | 81.6 | 69.13 | 65.84 | 48.99 | | [BAAI/bge-base-zh-v1.5](https://huggingface.co/BAAI/bge-base-zh-v1.5) | 768 | 63.13 | 69.49 | 53.72 | 79.75 | 68.07 | 65.39 | 47.53 | | [BAAI/bge-small-zh-v1.5](https://huggingface.co/BAAI/bge-small-zh-v1.5) | 512 | 57.82 | 61.77 | 49.11 | 70.41 | 63.96 | 60.92 | 44.18 | | [BAAI/bge-large-zh](https://huggingface.co/BAAI/bge-large-zh) | 1024 | 64.20 | 71.53 | 54.98 | 78.94 | 68.32 | 65.11 | 48.39 | | [bge-large-zh-noinstruct](https://huggingface.co/BAAI/bge-large-zh-noinstruct) | 1024 | 63.53 | 70.55 | 53 | 76.77 | 68.58 | 64.91 | 50.01 | | [BAAI/bge-base-zh](https://huggingface.co/BAAI/bge-base-zh) | 768 | 62.96 | 69.53 | 54.12 | 77.5 | 67.07 | 64.91 | 47.63 | | [multilingual-e5-large](https://huggingface.co/intfloat/multilingual-e5-large) | 1024 | 58.79 | 63.66 | 48.44 | 69.89 | 67.34 | 56.00 | 48.23 | | [BAAI/bge-small-zh](https://huggingface.co/BAAI/bge-small-zh) | 512 | 58.27 | 63.07 | 49.45 | 70.35 | 63.64 | 61.48 | 45.09 | | [m3e-base](https://huggingface.co/moka-ai/m3e-base) | 768 | 57.10 | 56.91 | 50.47 | 63.99 | 67.52 | 59.34 | 47.68 | | [m3e-large](https://huggingface.co/moka-ai/m3e-large) | 1024 | 57.05 | 54.75 | 50.42 | 64.3 | 68.2 | 59.66 | 48.88 | | [multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) | 768 | 55.48 | 61.63 | 46.49 | 67.07 | 65.35 | 54.35 | 40.68 | | [multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small) | 384 | 55.38 | 59.95 | 45.27 | 66.45 | 65.85 | 53.86 | 45.26 | | [text-embedding-ada-002(OpenAI)](https://platform.openai.com/docs/guides/embeddings/what-are-embeddings) | 1536 | 53.02 | 52.0 | 43.35 | 69.56 | 64.31 | 54.28 | 45.68 | | [luotuo](https://huggingface.co/silk-road/luotuo-bert-medium) | 1024 | 49.37 | 44.4 | 42.78 | 66.62 | 61 | 49.25 | 44.39 | | [text2vec-base](https://huggingface.co/shibing624/text2vec-base-chinese) | 768 | 47.63 | 38.79 | 43.41 | 67.41 | 62.19 | 49.45 | 37.66 | | [text2vec-large](https://huggingface.co/GanymedeNil/text2vec-large-chinese) | 1024 | 47.36 | 41.94 | 44.97 | 70.86 | 60.66 | 49.16 | 30.02 | - **Reranking**: See [C_MTEB](https://github.com/FlagOpen/FlagEmbedding/blob/master/C_MTEB/) for evaluation script. | Model | T2Reranking | T2RerankingZh2En\* | T2RerankingEn2Zh\* | MMarcoReranking | CMedQAv1 | CMedQAv2 | Avg | |:-------------------------------|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:|:--------:| | text2vec-base-multilingual | 64.66 | 62.94 | 62.51 | 14.37 | 48.46 | 48.6 | 50.26 | | multilingual-e5-small | 65.62 | 60.94 | 56.41 | 29.91 | 67.26 | 66.54 | 57.78 | | multilingual-e5-large | 64.55 | 61.61 | 54.28 | 28.6 | 67.42 | 67.92 | 57.4 | | multilingual-e5-base | 64.21 | 62.13 | 54.68 | 29.5 | 66.23 | 66.98 | 57.29 | | m3e-base | 66.03 | 62.74 | 56.07 | 17.51 | 77.05 | 76.76 | 59.36 | | m3e-large | 66.13 | 62.72 | 56.1 | 16.46 | 77.76 | 78.27 | 59.57 | | bge-base-zh-v1.5 | 66.49 | 63.25 | 57.02 | 29.74 | 80.47 | 84.88 | 63.64 | | bge-large-zh-v1.5 | 65.74 | 63.39 | 57.03 | 28.74 | 83.45 | 85.44 | 63.97 | | [BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base) | 67.28 | 63.95 | 60.45 | 35.46 | 81.26 | 84.1 | 65.42 | | [BAAI/bge-reranker-large](https://huggingface.co/BAAI/bge-reranker-large) | 67.6 | 64.03 | 61.44 | 37.16 | 82.15 | 84.18 | 66.09 | \* : T2RerankingZh2En and T2RerankingEn2Zh are cross-language retrieval tasks ## Train ### BAAI Embedding We pre-train the models using [retromae](https://github.com/staoxiao/RetroMAE) and train them on large-scale pairs data using contrastive learning. **You can fine-tune the embedding model on your data following our [examples](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/finetune).** We also provide a [pre-train example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/pretrain). Note that the goal of pre-training is to reconstruct the text, and the pre-trained model cannot be used for similarity calculation directly, it needs to be fine-tuned. More training details for bge see [baai_general_embedding](https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/README.md). ### BGE Reranker Cross-encoder will perform full-attention over the input pair, which is more accurate than embedding model (i.e., bi-encoder) but more time-consuming than embedding model. Therefore, it can be used to re-rank the top-k documents returned by embedding model. We train the cross-encoder on a multilingual pair data, The data format is the same as embedding model, so you can fine-tune it easily following our [example](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/reranker). More details please refer to [./FlagEmbedding/reranker/README.md](https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/reranker) ## Contact If you have any question or suggestion related to this project, feel free to open an issue or pull request. You also can email Shitao Xiao(stxiao@baai.ac.cn) and Zheng Liu(liuzheng@baai.ac.cn). ## Citation If you find this repository useful, please consider giving a star :star: and citation ``` @misc{bge_embedding, title={C-Pack: Packaged Resources To Advance General Chinese Embedding}, author={Shitao Xiao and Zheng Liu and Peitian Zhang and Niklas Muennighoff}, year={2023}, eprint={2309.07597}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` ## License FlagEmbedding is licensed under the [MIT License](https://github.com/FlagOpen/FlagEmbedding/blob/master/LICENSE). The released models can be used for commercial purposes free of charge.
[ -0.49340587854385376, -0.9019327163696289, 0.3857579231262207, 0.169977068901062, -0.39136165380477905, -0.2794041931629181, -0.3318132162094116, -0.29087191820144653, 0.3808787763118744, 0.3538365066051483, -0.3586483597755432, -0.867159366607666, -0.5144842267036438, -0.05428457632660866, -0.0656530037522316, 0.5743923783302307, -0.03249229118227959, 0.14714039862155914, 0.039073240011930466, -0.26999157667160034, -0.4271610379219055, -0.23640938103199005, -0.7020725011825562, -0.2954729497432709, 0.36365580558776855, 0.21978887915611267, 0.5813374519348145, 0.7297956943511963, 0.33696484565734863, 0.2710293233394623, -0.2668151557445526, 0.1415870040655136, -0.5048904418945312, -0.07031241059303284, -0.24383094906806946, -0.32728585600852966, -0.4263065457344055, 0.12345888465642929, 0.6464145183563232, 0.46840742230415344, -0.11191283911466599, 0.10807067900896072, -0.009975737892091274, 0.7390921115875244, -0.48362261056900024, 0.2688601613044739, -0.5492295026779175, 0.03321896120905876, -0.24834898114204407, 0.14467822015285492, -0.5100741386413574, -0.34495317935943604, 0.18841513991355896, -0.6033258438110352, 0.12749667465686798, 0.2836860418319702, 1.3220933675765991, 0.20514050126075745, -0.4320434629917145, -0.14202922582626343, -0.1314714103937149, 0.9933990836143494, -1.0326533317565918, 0.7188549041748047, 0.48968759179115295, 0.2739572525024414, -0.072090744972229, -0.8286557793617249, -0.3435482084751129, -0.16171224415302277, -0.19839856028556824, 0.41964462399482727, -0.036922015249729156, 0.028983019292354584, 0.3593721091747284, 0.617851972579956, -0.5939546823501587, 0.07645124942064285, -0.10017495602369308, -0.1752864569425583, 0.7705275416374207, -0.18380913138389587, 0.4213184416294098, -0.5438640117645264, -0.2902991771697998, -0.4157449007034302, -0.8401713967323303, 0.04148252680897713, 0.37114816904067993, 0.1308598667383194, -0.34923073649406433, 0.5487661957740784, -0.24435879290103912, 0.612400472164154, 0.09444845467805862, 0.0207198578864336, 0.6096540093421936, -0.3709404468536377, -0.23284591734409332, -0.10773668438196182, 0.8873991966247559, 0.4159238040447235, -0.027693383395671844, 0.05230089649558067, -0.3145834505558014, -0.07893827557563782, -0.07292991876602173, -0.9366285800933838, -0.27210402488708496, 0.19284559786319733, -0.80381840467453, -0.16544854640960693, 0.2140277475118637, -0.7829160690307617, 0.09092943370342255, 0.005514094140380621, 0.5678830742835999, -0.7739953398704529, -0.08227705210447311, 0.3116850256919861, -0.19682595133781433, 0.38935738801956177, -0.015693815425038338, -0.6709463596343994, -0.2122577428817749, 0.5276651978492737, 0.899809718132019, 0.12980927526950836, -0.09584132581949234, -0.38840752840042114, 0.04505869001150131, -0.15710380673408508, 0.3312130570411682, -0.4976043701171875, -0.2190510481595993, 0.16889235377311707, 0.39640316367149353, -0.10046656429767609, -0.34536710381507874, 0.883560836315155, -0.5256352424621582, 0.3566949963569641, -0.387010395526886, -0.811812162399292, -0.5264742374420166, 0.09673741459846497, -0.800713300704956, 1.1339552402496338, -0.07205091416835785, -0.872108519077301, 0.12795299291610718, -0.639961838722229, -0.24003878235816956, -0.24582229554653168, -0.0026057905051857233, -0.6152880787849426, -0.1056271642446518, 0.37913691997528076, 0.5837673544883728, -0.20378626883029938, 0.048310477286577225, -0.34912827610969543, -0.6052661538124084, -0.05688498914241791, -0.24402981996536255, 1.090302586555481, 0.2966512441635132, -0.38661545515060425, -0.23268133401870728, -0.46210965514183044, 0.09889070689678192, 0.2695416212081909, -0.2714417576789856, -0.36590880155563354, 0.22906500101089478, 0.20763638615608215, 0.04483982175588608, 0.5454363226890564, -0.7044274210929871, 0.14893054962158203, -0.6036540865898132, 0.5561907887458801, 0.5724145174026489, 0.19232423603534698, 0.2614040970802307, -0.5084935426712036, 0.2895478904247284, 0.011632701382040977, -0.04100647568702698, -0.18569333851337433, -0.5718494057655334, -0.5975246429443359, -0.32530269026756287, 0.7145681381225586, 0.6515597701072693, -0.834402859210968, 0.6801473498344421, -0.466972678899765, -0.6325944662094116, -0.9653605222702026, 0.1351175606250763, 0.5358282923698425, 0.019834592938423157, 0.7290329933166504, -0.19756768643856049, -0.482858270406723, -0.9513183236122131, -0.05740625411272049, 0.059288378804922104, -0.05247557535767555, 0.5538766980171204, 0.5726518630981445, -0.3905676007270813, 0.4212125837802887, -0.7476237416267395, -0.3130929470062256, -0.23764890432357788, -0.06428305804729462, 0.33739739656448364, 0.489274263381958, 0.712439239025116, -1.0260827541351318, -0.5864932537078857, 0.015227694995701313, -0.7459699511528015, 0.061124153435230255, 0.07445084303617477, -0.2886222302913666, 0.2255481779575348, 0.6080036759376526, -0.41718000173568726, 0.23937658965587616, 0.47269243001937866, -0.24714285135269165, 0.26708176732063293, -0.020168524235486984, 0.15241406857967377, -1.3764451742172241, 0.08659786731004715, 0.31291356682777405, -0.13506872951984406, -0.27902278304100037, 0.5319693088531494, 0.15238918364048004, 0.22657442092895508, -0.3324495851993561, 0.6400520205497742, -0.5320071578025818, 0.239699125289917, 0.09934750944375992, 0.554054319858551, -0.11401303112506866, 0.509626030921936, -0.04588461294770241, 0.7453224658966064, 0.40894457697868347, -0.3879461884498596, 0.15217170119285583, 0.5372723937034607, -0.47524935007095337, 0.07555315643548965, -0.6674717664718628, -0.07949527353048325, -0.0871780589222908, 0.17194786667823792, -0.8516595363616943, -0.05883137881755829, 0.28952205181121826, -0.5887806415557861, 0.5599284172058105, -0.30881592631340027, -0.4731779396533966, -0.36384904384613037, -0.9066322445869446, 0.17078129947185516, 0.6319511532783508, -0.6687108874320984, 0.23035356402397156, 0.259538859128952, 0.04553249105811119, -0.8253720998764038, -0.8711569905281067, -0.1532628983259201, -0.014292345382273197, -0.5519579648971558, 0.5522589087486267, -0.07554297149181366, 0.2651071548461914, 0.19852159917354584, -0.12245868146419525, 0.19225959479808807, 0.09485466033220291, 0.008121254853904247, 0.2214801013469696, -0.4778660535812378, 0.009123784489929676, 0.27138179540634155, 0.13348044455051422, -0.20710717141628265, -0.13985399901866913, 0.44048213958740234, -0.15537182986736298, -0.32021990418434143, -0.17610196769237518, 0.31791776418685913, 0.2771148383617401, -0.38620832562446594, 0.6173436045646667, 1.0054987668991089, -0.37009352445602417, -0.0670199990272522, -0.6789649128913879, -0.10440172255039215, -0.4940018057823181, 0.48096445202827454, -0.37454357743263245, -0.9746140837669373, 0.4346259534358978, -0.0543924905359745, 0.22216570377349854, 0.6701765060424805, 0.3642970323562622, -0.11435331404209137, 1.085709571838379, 0.3928622305393219, -0.3232278525829315, 0.6932567954063416, -0.6679821610450745, 0.20598682761192322, -1.1909458637237549, -0.049850061535835266, -0.3596571087837219, -0.40156590938568115, -1.3232556581497192, -0.47829291224479675, 0.04102626442909241, 0.2627808153629303, -0.37331122159957886, 0.4373812675476074, -0.5765420198440552, 0.1472059041261673, 0.48594915866851807, 0.30448290705680847, -0.039062321186065674, 0.17917616665363312, -0.4275302290916443, -0.24439816176891327, -0.607736349105835, -0.4722644090652466, 1.0196824073791504, 0.4759896993637085, 0.638091504573822, 0.3930099606513977, 0.8384546637535095, 0.17394709587097168, 0.09114043414592743, -0.7687459588050842, 0.5776851177215576, -0.5402795076370239, -0.5759003758430481, -0.34134307503700256, -0.5330690741539001, -1.1500155925750732, 0.38799935579299927, -0.2535969316959381, -0.7932004332542419, 0.12311338633298874, -0.1814337521791458, -0.009260810911655426, 0.4467405378818512, -0.7161639332771301, 1.05669105052948, -0.06758375465869904, -0.3118918538093567, -0.09464222192764282, -0.45463263988494873, 0.3259214758872986, 0.1821468025445938, 0.06856793910264969, 0.09832381457090378, -0.23361581563949585, 0.7219275236129761, -0.19943612813949585, 0.6225806474685669, -0.17985527217388153, 0.14652875065803528, 0.43444517254829407, -0.163539856672287, 0.557960033416748, 0.0692412257194519, -0.2055734395980835, 0.30034929513931274, 0.08198972791433334, -0.5163771510124207, -0.5056806802749634, 0.9234290719032288, -0.7241517305374146, -0.696358323097229, -0.38125431537628174, -0.23468177020549774, 0.1708938181400299, 0.4450867772102356, 0.42108991742134094, 0.24892275035381317, -0.10880250483751297, 0.6426148414611816, 0.9370827674865723, -0.49823668599128723, 0.3742271363735199, 0.3221491277217865, -0.23761247098445892, -0.5801383852958679, 1.151107668876648, 0.2366081327199936, -0.0404793843626976, 0.6617637872695923, 0.026119429618120193, -0.28588035702705383, -0.5906842947006226, -0.49082547426223755, 0.6331706643104553, -0.5964621305465698, -0.1976054459810257, -0.6410329937934875, -0.4467591643333435, -0.45846009254455566, 0.017281508073210716, -0.2387213110923767, -0.25508007407188416, -0.1750182807445526, -0.284544974565506, 0.28025951981544495, 0.44453153014183044, 0.10580279678106308, 0.08643858134746552, -0.7280406951904297, 0.22663626074790955, -0.09724757820367813, 0.44425809383392334, 0.08601211756467819, -0.6086759567260742, -0.6034578084945679, 0.16676056385040283, -0.4759314954280853, -1.110546350479126, 0.338859885931015, 0.08915109187364578, 0.8536391854286194, 0.3162977993488312, -0.0650685653090477, 0.4276140034198761, -0.5310795903205872, 1.0624147653579712, -0.09661518037319183, -0.7721410989761353, 0.4770090579986572, -0.30154553055763245, 0.20492658019065857, 0.6087164878845215, 0.665367841720581, -0.49753081798553467, -0.247706338763237, -0.5253637433052063, -0.99223393201828, 0.5131669640541077, 0.18543009459972382, 0.018474170938134193, -0.2845762372016907, 0.3371503949165344, -0.15530556440353394, 0.007895836606621742, -0.8090885281562805, -0.7503376007080078, -0.35041543841362, -0.3788514733314514, -0.12728695571422577, -0.2762794494628906, 0.2313724011182785, -0.29435351490974426, 1.0420078039169312, -0.008496887050569057, 0.5364596843719482, 0.35769742727279663, -0.33867892622947693, 0.20530642569065094, 0.212004154920578, 0.2977818250656128, 0.22272129356861115, -0.41976505517959595, -0.14554205536842346, 0.3311023414134979, -0.5882006883621216, -0.07004860043525696, 0.34085333347320557, -0.47003069519996643, 0.2075992077589035, 0.3109634518623352, 0.7645447254180908, 0.4445788562297821, -0.45019853115081787, 0.5895048379898071, 0.13172467052936554, -0.1965167075395584, -0.26039761304855347, -0.037979211658239365, 0.31504568457603455, 0.2494455724954605, 0.09621437638998032, -0.4009782373905182, 0.2944328486919403, -0.5888946652412415, 0.3230552077293396, 0.4114812910556793, -0.3337593376636505, -0.07399323582649231, 0.636624813079834, 0.023164791986346245, -0.034758247435092926, 0.49612298607826233, -0.5552497506141663, -0.6959325671195984, 0.41081690788269043, 0.39575594663619995, 0.8641975522041321, -0.16929401457309723, 0.215807244181633, 0.8870809078216553, 0.4912678897380829, -0.37312695384025574, 0.37497588992118835, 0.10009496659040451, -0.5929398536682129, -0.4599778950214386, -0.5420168042182922, -0.06318666785955429, 0.2835060954093933, -0.5751422643661499, 0.3681845963001251, -0.41430020332336426, -0.1337127387523651, 0.029748527333140373, 0.4723038971424103, -0.7431827187538147, 0.14441479742527008, 0.061101701110601425, 1.1248559951782227, -0.6073505282402039, 0.8166912794113159, 1.0605814456939697, -0.9131397008895874, -0.7756044864654541, 0.07880577445030212, -0.13318254053592682, -0.6015003323554993, 0.33434978127479553, 0.2409183830022812, 0.16082045435905457, 0.06199139356613159, -0.49355101585388184, -0.9455450773239136, 1.603142499923706, 0.058727070689201355, -0.573042094707489, -0.0718555897474289, -0.3181649148464203, 0.4935978353023529, -0.34455451369285583, 0.4440523684024811, 0.42572349309921265, 0.5867410898208618, -0.14950673282146454, -0.6471410989761353, 0.5548920631408691, -0.3150441646575928, 0.2387821227312088, 0.0708673745393753, -1.0195997953414917, 0.8179088830947876, 0.034608032554388046, -0.3222021460533142, 0.21969178318977356, 0.7172313928604126, 0.3018997311592102, 0.4595251977443695, 0.27639687061309814, 0.946904182434082, 0.664435088634491, -0.16017596423625946, 1.1302244663238525, -0.25876495242118835, 0.6335996389389038, 0.8754009008407593, 0.1549442857503891, 1.100396990776062, 0.09175627678632736, -0.21159926056861877, 0.6984890699386597, 0.8313729763031006, -0.3494042158126831, 0.5213567018508911, 0.04334666579961777, 0.05598929896950722, -0.2941250205039978, 0.11047370731830597, -0.5553119778633118, 0.2685719132423401, 0.313888818025589, -0.5069872736930847, 0.0189804807305336, -0.29060080647468567, 0.09943331778049469, 0.0799420103430748, -0.030279623344540596, 0.5793449878692627, 0.31802502274513245, -0.47589924931526184, 0.6618488430976868, 0.24269850552082062, 1.0296968221664429, -0.42806127667427063, -0.13026608526706696, -0.3383196294307709, -0.10297874361276627, -0.22423043847084045, -0.7691700458526611, -0.07919709384441376, -0.23007233440876007, -0.23567867279052734, 0.09996934235095978, 0.6036959886550903, -0.6119992733001709, -0.42238906025886536, 0.5805287957191467, 0.5227604508399963, 0.2776414453983307, 0.1873161792755127, -1.1185972690582275, 0.038696981966495514, 0.3742802143096924, -0.5545528531074524, 0.329182893037796, 0.4956188201904297, -0.0947796180844307, 0.5862374305725098, 0.5788304805755615, 0.07933928817510605, -0.01275375485420227, 0.05704145133495331, 0.5317270159721375, -0.9234306216239929, -0.3148469030857086, -0.6068448424339294, 0.30458444356918335, -0.32794204354286194, -0.024775709956884384, 0.7826158404350281, 0.7395908832550049, 1.1151862144470215, -0.044130198657512665, 0.7961103916168213, -0.12914593517780304, 0.40769997239112854, -0.5906642079353333, 0.8863733410835266, -1.0478851795196533, 0.21739013493061066, -0.39901605248451233, -1.0145578384399414, -0.13736508786678314, 0.7547219395637512, -0.33301040530204773, 0.2730608284473419, 0.699065625667572, 1.0022711753845215, -0.3104528486728668, -0.20982232689857483, 0.31244292855262756, 0.4346698522567749, 0.1524050086736679, 0.7951325178146362, 0.3433188498020172, -0.9745052456855774, 0.6507622003555298, -0.22952795028686523, 0.10666988044977188, -0.5344357490539551, -0.6472737789154053, -0.9524534940719604, -0.7176474332809448, -0.41786831617355347, -0.28511881828308105, -0.001997356303036213, 0.9357702136039734, 0.37859004735946655, -0.76318359375, -0.04892744868993759, 0.24460911750793457, 0.40898752212524414, -0.2926762104034424, -0.2752154469490051, 0.6652230620384216, -0.0816502794623375, -0.9471107721328735, 0.3255787491798401, -0.08993586152791977, -0.07868608087301254, -0.013091322965919971, -0.24198254942893982, -0.8645985126495361, 0.10204234719276428, 0.5969288945198059, 0.26532045006752014, -0.8959516286849976, -0.4702460467815399, 0.103643499314785, -0.2798444330692291, -0.15008556842803955, 0.16692079603672028, -0.42758408188819885, 0.36917197704315186, 0.6548839807510376, 0.8071340918540955, 0.7020865082740784, -0.046359673142433167, 0.21336454153060913, -0.6143971085548401, -0.06849479675292969, -0.05623713135719299, 0.7255669832229614, 0.38855478167533875, -0.3187784254550934, 0.9339329600334167, 0.22683385014533997, -0.41534364223480225, -0.757731020450592, 0.045769963413476944, -1.0998640060424805, -0.3428792953491211, 1.1575376987457275, -0.4193432927131653, -0.26513320207595825, 0.31006160378456116, -0.22005438804626465, 0.5428681969642639, -0.4886583387851715, 0.5108007788658142, 0.8290995955467224, 0.44799479842185974, -0.1680937558412552, -0.8406147956848145, 0.32995590567588806, 0.6809418201446533, -0.26330170035362244, -0.3449750244617462, 0.3531321883201599, 0.5066882967948914, 0.2265775501728058, 0.1542687714099884, -0.24237653613090515, 0.33014923334121704, -0.07857751101255417, 0.00926078949123621, -0.14591188728809357, 0.20806385576725006, -0.1968650370836258, -0.025662189349532127, -0.16215460002422333, -0.29975685477256775 ]
aneuraz/awesome-align-with-co
aneuraz
"2022-04-29T16:16:12Z"
20,774
1
transformers
[ "transformers", "pytorch", "bert", "fill-mask", "sentence alignment", "de", "fr", "en", "ro", "zh", "arxiv:2101.08231", "license:bsd-3-clause", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-04-29T14:55:54Z"
--- language: - de - fr - en - ro - zh thumbnail: tags: - sentence alignment license: bsd-3-clause --- # AWESOME: Aligning Word Embedding Spaces of Multilingual Encoders This model comes from the following GitHub repository: [https://github.com/neulab/awesome-align](https://github.com/neulab/awesome-align) It corresponds to this paper: [https://arxiv.org/abs/2101.08231](https://arxiv.org/abs/2101.08231) Please cite the original paper if you decide to use the model: ``` @inproceedings{dou2021word, title={Word Alignment by Fine-tuning Embeddings on Parallel Corpora}, author={Dou, Zi-Yi and Neubig, Graham}, booktitle={Conference of the European Chapter of the Association for Computational Linguistics (EACL)}, year={2021} } ``` `awesome-align` is a tool that can extract word alignments from multilingual BERT (mBERT) [Demo](https://colab.research.google.com/drive/1205ubqebM0OsZa1nRgbGJBtitgHqIVv6?usp=sharing) and allows you to fine-tune mBERT on parallel corpora for better alignment quality (see our paper for more details). ## Usage (copied from this [DEMO](https://colab.research.google.com/drive/1205ubqebM0OsZa1nRgbGJBtitgHqIVv6?usp=sharing) ) ```python from transformers import AutoModel, AutoTokenizer import itertools import torch # load model model = AutoModel.from_pretrained("aneuraz/awesome-align-with-co") tokenizer = AutoTokenizer.from_pretrained("aneuraz/awesome-align-with-co") # model parameters align_layer = 8 threshold = 1e-3 # define inputs src = 'awesome-align is awesome !' tgt = '牛对齐 是 牛 !' # pre-processing sent_src, sent_tgt = src.strip().split(), tgt.strip().split() token_src, token_tgt = [tokenizer.tokenize(word) for word in sent_src], [tokenizer.tokenize(word) for word in sent_tgt] wid_src, wid_tgt = [tokenizer.convert_tokens_to_ids(x) for x in token_src], [tokenizer.convert_tokens_to_ids(x) for x in token_tgt] ids_src, ids_tgt = tokenizer.prepare_for_model(list(itertools.chain(*wid_src)), return_tensors='pt', model_max_length=tokenizer.model_max_length, truncation=True)['input_ids'], tokenizer.prepare_for_model(list(itertools.chain(*wid_tgt)), return_tensors='pt', truncation=True, model_max_length=tokenizer.model_max_length)['input_ids'] sub2word_map_src = [] for i, word_list in enumerate(token_src): sub2word_map_src += [i for x in word_list] sub2word_map_tgt = [] for i, word_list in enumerate(token_tgt): sub2word_map_tgt += [i for x in word_list] # alignment align_layer = 8 threshold = 1e-3 model.eval() with torch.no_grad(): out_src = model(ids_src.unsqueeze(0), output_hidden_states=True)[2][align_layer][0, 1:-1] out_tgt = model(ids_tgt.unsqueeze(0), output_hidden_states=True)[2][align_layer][0, 1:-1] dot_prod = torch.matmul(out_src, out_tgt.transpose(-1, -2)) softmax_srctgt = torch.nn.Softmax(dim=-1)(dot_prod) softmax_tgtsrc = torch.nn.Softmax(dim=-2)(dot_prod) softmax_inter = (softmax_srctgt > threshold)*(softmax_tgtsrc > threshold) align_subwords = torch.nonzero(softmax_inter, as_tuple=False) align_words = set() for i, j in align_subwords: align_words.add( (sub2word_map_src[i], sub2word_map_tgt[j]) ) print(align_words) ```
[ -0.26295527815818787, -0.7700795531272888, 0.2579266428947449, 0.15640544891357422, -0.28547433018684387, -0.07374988496303558, -0.18022724986076355, -0.23764492571353912, 0.17431052029132843, 0.11011722683906555, -0.47335970401763916, -0.8346890807151794, -0.6207342743873596, -0.06845018267631531, -0.33870118856430054, 1.0341801643371582, -0.2758203148841858, 0.05249993875622749, 0.07421902567148209, -0.3436605930328369, -0.37907111644744873, -0.42821642756462097, -0.339608758687973, -0.343345046043396, 0.10736168175935745, 0.1563228964805603, 0.5635760426521301, 0.6079784035682678, 0.5523867607116699, 0.41108110547065735, -0.0187268927693367, 0.20328767597675323, -0.30928996205329895, -0.06375903636217117, -0.16749140620231628, -0.2956952452659607, -0.4921249449253082, -0.042235568165779114, 0.639134407043457, 0.3321402668952942, -0.07801950722932816, 0.2919856905937195, 0.019626550376415253, 0.2728114724159241, -0.4746631383895874, 0.1635008156299591, -0.7196153998374939, 0.06799572706222534, -0.21311694383621216, -0.10640662163496017, -0.19843758642673492, -0.3946073353290558, 0.03770752251148224, -0.6747109293937683, 0.2652071416378021, 0.1773572415113449, 1.5733766555786133, 0.1749042123556137, -0.12628646194934845, -0.46362608671188354, -0.4504821300506592, 0.8130333423614502, -0.9686548113822937, 0.47385263442993164, 0.09546560049057007, -0.21691907942295074, -0.1231762245297432, -0.9491026401519775, -0.9031195640563965, -0.06965240836143494, -0.06633193045854568, 0.3718874156475067, -0.20228494703769684, 0.11777311563491821, 0.22950845956802368, 0.5433202981948853, -0.6898723840713501, 0.11264997720718384, -0.36409977078437805, -0.3866191506385803, 0.5000213980674744, 0.2662830054759979, 0.5602090954780579, -0.22135867178440094, -0.42930638790130615, -0.3086702823638916, -0.35812732577323914, 0.08021131902933121, 0.3652428984642029, 0.22236399352550507, -0.38620510697364807, 0.7425603270530701, 0.10048465430736542, 0.7763587832450867, 0.04194959998130798, -0.08161512762308121, 0.5758258104324341, -0.4561869502067566, -0.23585134744644165, -0.07404132187366486, 1.0484992265701294, 0.3313743472099304, 0.08432472497224808, -0.029853591695427895, -0.15138129889965057, 0.31731608510017395, -0.14498963952064514, -0.8310909867286682, -0.3984403908252716, 0.4005197584629059, -0.25294217467308044, -0.12531650066375732, -0.011373786255717278, -0.5164273977279663, -0.15671011805534363, -0.06713183224201202, 1.0555791854858398, -0.8174816370010376, -0.19256795942783356, 0.26209014654159546, -0.3065612316131592, 0.31880417466163635, -0.14518316090106964, -0.8215099573135376, 0.05306942015886307, 0.5366495251655579, 0.9221534729003906, 0.19196921586990356, -0.6050648093223572, -0.30943915247917175, 0.05693725124001503, -0.2823040187358856, 0.39133593440055847, -0.3997561037540436, -0.20979620516300201, -0.18407441675662994, -0.008329583331942558, -0.4957387447357178, -0.2771250903606415, 0.6202875971794128, -0.4144619107246399, 0.5379961133003235, -0.16015100479125977, -0.8960448503494263, -0.23536548018455505, 0.30612075328826904, -0.3655003309249878, 1.150953769683838, 0.16461780667304993, -0.9213994741439819, 0.2610575556755066, -0.6195405125617981, -0.27689775824546814, 0.026998329907655716, -0.21904855966567993, -0.6568378806114197, 0.13243018090724945, 0.415735125541687, 0.4667316675186157, -0.08083903789520264, 0.054259441792964935, -0.27857524156570435, -0.3024229109287262, 0.20756062865257263, -0.15249672532081604, 1.117539644241333, 0.20809011161327362, -0.5656095743179321, 0.24433831870555878, -0.6371837854385376, 0.3105645477771759, 0.1852755844593048, -0.24067339301109314, -0.10005353391170502, -0.259906142950058, 0.07360890507698059, 0.3395504355430603, 0.3970600962638855, -0.8101872801780701, 0.25668928027153015, -0.48741456866264343, 0.5721051692962646, 0.6807023286819458, -0.19816067814826965, 0.32506847381591797, -0.2345355898141861, 0.4419582486152649, 0.0909721702337265, 0.07912834733724594, 0.12343286722898483, -0.36304405331611633, -0.8736387491226196, -0.5922197699546814, 0.6142067909240723, 0.6112881898880005, -0.6545976996421814, 0.8739528656005859, -0.4176158905029297, -0.5934211611747742, -0.8369861841201782, 0.007337830029428005, 0.3658054769039154, 0.5237516164779663, 0.4655350148677826, -0.3074192702770233, -0.5444068908691406, -0.8123945593833923, -0.160111203789711, 0.06594289094209671, 0.15493372082710266, 0.06547967344522476, 0.6681953072547913, -0.289346843957901, 0.8531322479248047, -0.4780997335910797, -0.5555206537246704, -0.2769802510738373, 0.17893578112125397, 0.41105708479881287, 0.765337347984314, 0.5080497860908508, -0.4385858476161957, -0.6230279207229614, -0.068562351167202, -0.7258766889572144, 0.01355704478919506, -0.01902174763381481, -0.47969213128089905, 0.21735627949237823, 0.4511086940765381, -0.7332260012626648, 0.37601402401924133, 0.4832077622413635, -0.46260976791381836, 0.43666255474090576, -0.46579885482788086, -0.016404947265982628, -1.3068408966064453, 0.10551577061414719, -0.1502573937177658, 0.011522565968334675, -0.5520130395889282, 0.34646353125572205, 0.3558335304260254, -0.026741351932287216, -0.3445849120616913, 0.6084350347518921, -0.8332306146621704, 0.17902690172195435, -0.05762125924229622, 0.16450099647045135, 0.09121480584144592, 0.5303830504417419, -0.1137128472328186, 0.580193281173706, 0.8158599138259888, -0.4195932149887085, 0.26194214820861816, 0.3962599039077759, -0.3299848735332489, 0.34905529022216797, -0.634403645992279, 0.12775583565235138, 0.012576138600707054, 0.14608673751354218, -1.1958503723144531, -0.10554128885269165, 0.24491886794567108, -0.6617645025253296, 0.514411985874176, 0.06578600406646729, -0.6622481942176819, -0.6016075015068054, -0.42305228114128113, 0.3129447102546692, 0.44317275285720825, -0.5290473699569702, 0.572697639465332, 0.4299079477787018, 0.14419390261173248, -0.6847838759422302, -0.8236640691757202, -0.13562649488449097, -0.10426998883485794, -0.739233136177063, 0.623640775680542, -0.09140647202730179, 0.17710445821285248, 0.3124505281448364, -0.042284902185201645, 0.10131948441267014, -0.07243714481592178, -0.03227268531918526, 0.4202387034893036, -0.07317216694355011, 0.06562685966491699, -0.026989871636033058, -0.02521703951060772, -0.08580972999334335, -0.4005901515483856, 0.9042022228240967, -0.3435280919075012, -0.3078688085079193, -0.5703319311141968, 0.28712359070777893, 0.5210638046264648, -0.44468241930007935, 1.1192599534988403, 1.135080099105835, -0.639320969581604, -0.015397283248603344, -0.5238385200500488, -0.12007816135883331, -0.5119954347610474, 0.6517425179481506, -0.5072634220123291, -0.7105547189712524, 0.7181463241577148, 0.36831632256507874, 0.3276360332965851, 0.6564252376556396, 0.6944596767425537, 0.03948906436562538, 1.2760673761367798, 0.6385707259178162, -0.0834127813577652, 0.4404071867465973, -0.781136691570282, 0.6071866154670715, -1.0264761447906494, -0.23874199390411377, -0.33355870842933655, -0.3428463041782379, -0.6805610060691833, -0.28197532892227173, 0.2789042592048645, 0.39090052247047424, -0.18276961147785187, 0.3968748450279236, -0.8309546709060669, 0.17700009047985077, 0.5109688639640808, -0.002159105148166418, -0.260498970746994, 0.1483222246170044, -0.6166809797286987, -0.24588410556316376, -0.8098148703575134, -0.260733038187027, 0.8877534866333008, 0.23815201222896576, 0.659881591796875, 0.09002253413200378, 0.9245386719703674, -0.2471260130405426, 0.14179280400276184, -0.7098653316497803, 0.5991984009742737, -0.2287754863500595, -0.5849785208702087, -0.16789962351322174, -0.306988000869751, -0.904659628868103, 0.36338549852371216, -0.23599815368652344, -0.8997284770011902, 0.03659120947122574, 0.18250267207622528, -0.49452096223831177, 0.4421204626560211, -0.7457695603370667, 0.9457436800003052, -0.08804841339588165, -0.5088896751403809, -0.08453711867332458, -0.46845731139183044, 0.23997260630130768, 0.19137981534004211, 0.16204868257045746, -0.16876639425754547, -0.015497597865760326, 1.0206786394119263, -0.678735077381134, 0.42361631989479065, -0.1707753986120224, 0.0004842030175495893, 0.275979608297348, -0.14984650909900665, 0.5314742922782898, -0.24688704311847687, -0.12641924619674683, 0.17788882553577423, -0.07764949649572372, -0.36819618940353394, -0.3380390405654907, 0.8603467345237732, -0.9305546283721924, -0.42494457960128784, -0.4806702136993408, -0.7533263564109802, -0.0010950630530714989, 0.37085336446762085, 0.8038961887359619, 0.676464319229126, 0.26722240447998047, 0.12582887709140778, 0.46496132016181946, -0.30342668294906616, 0.5709800124168396, 0.2738219201564789, -0.2044844627380371, -0.665215253829956, 1.0904220342636108, 0.617030918598175, 0.07942146062850952, 0.3306403160095215, 0.18104401230812073, -0.6117607951164246, -0.5126675367355347, -0.47517359256744385, 0.44488558173179626, -0.6531400084495544, -0.25434333086013794, -0.9500373601913452, -0.4287691116333008, -0.7745656371116638, -0.21266241371631622, -0.314691424369812, -0.46662747859954834, -0.35397541522979736, -0.16636738181114197, 0.4745507836341858, 0.3972553610801697, -0.3743401765823364, 0.1830572485923767, -0.6904042959213257, 0.26111695170402527, 0.15096397697925568, 0.19165188074111938, -0.026065926998853683, -0.8447079062461853, -0.33169522881507874, -0.15809044241905212, -0.37008509039878845, -0.9496743679046631, 0.7335739731788635, 0.2517280876636505, 0.6193908452987671, 0.1275310516357422, 0.09830747544765472, 0.9786044359207153, -0.39930471777915955, 0.8005098700523376, 0.2841557264328003, -1.2174409627914429, 0.31640827655792236, -0.10040343552827835, 0.4226055145263672, 0.3247279226779938, 0.36402252316474915, -0.5774073004722595, -0.4716067910194397, -0.645738959312439, -1.4650278091430664, 0.8178176283836365, 0.36434197425842285, 0.17135444283485413, -0.09119255095720291, 0.13916656374931335, -0.02410053461790085, 0.042687851935625076, -0.8040163516998291, -0.5133129358291626, -0.32923179864883423, -0.5318816900253296, 0.04691017419099808, -0.24480265378952026, -0.13134852051734924, -0.5324428677558899, 1.0816303491592407, 0.14219562709331512, 0.6737370491027832, 0.35505643486976624, -0.3987507224082947, 0.17424453794956207, 0.22396299242973328, 0.6276103854179382, 0.5384248495101929, -0.23532481491565704, 0.09491471201181412, 0.28248730301856995, -0.47666996717453003, -0.013256416656076908, 0.4345456063747406, 0.03374190255999565, 0.12834204733371735, 0.31122392416000366, 0.8827074766159058, -0.07081834226846695, -0.1703232228755951, 0.47571778297424316, -0.10607582330703735, -0.388317346572876, -0.30588972568511963, -0.07612916827201843, 0.28406545519828796, 0.09726303815841675, 0.24001280963420868, -0.06692283600568771, -0.16173672676086426, -0.2837413251399994, 0.03737778216600418, 0.5762782096862793, -0.2622668743133545, -0.32421424984931946, 0.9330331087112427, -0.00017286061483900994, -0.316200315952301, 0.7602537870407104, -0.3725050091743469, -0.8438714146614075, 0.5192089080810547, 0.6495461463928223, 0.9243320822715759, 0.08463266491889954, -0.04375256597995758, 0.6225358843803406, 0.37749379873275757, 0.12943647801876068, 0.5257986783981323, 0.035124603658914566, -0.9261758327484131, -0.06997446715831757, -0.712330162525177, 0.041401270776987076, 0.28259915113449097, -0.6158362030982971, 0.17005908489227295, -0.4143834114074707, -0.23433013260364532, 0.035625070333480835, 0.2340286374092102, -0.8932973742485046, 0.1329382061958313, 0.16995814442634583, 0.7544744610786438, -0.8034543395042419, 0.9837356805801392, 0.7270759344100952, -0.46098729968070984, -1.2967497110366821, -0.08813700824975967, -0.16863124072551727, -0.8819764256477356, 0.40983501076698303, 0.373602032661438, -0.049762941896915436, 0.4390604496002197, -0.5279065370559692, -1.1243252754211426, 1.1603448390960693, 0.46845847368240356, -0.4539688229560852, 0.04161654785275459, 0.05930795148015022, 0.5013870596885681, -0.09560815989971161, 0.41534316539764404, 0.4281589984893799, 0.4159742295742035, -0.30623018741607666, -0.811333179473877, 0.1871500015258789, -0.5058861374855042, 0.080635204911232, 0.22142495214939117, -0.6636013984680176, 1.1696103811264038, -0.15180441737174988, -0.3649977147579193, 0.21320678293704987, 0.8024634122848511, 0.41487911343574524, -0.138270765542984, 0.3099977672100067, 1.0117157697677612, 0.8202452659606934, -0.17385809123516083, 0.9143670797348022, -0.5492022037506104, 0.7715449333190918, 0.9396520853042603, -0.1013617292046547, 0.7535492181777954, 0.44984835386276245, -0.06116310879588127, 0.582422137260437, 0.5838476419448853, -0.05659611150622368, 0.5171582698822021, 0.12704521417617798, -0.16120880842208862, -0.030438652262091637, -0.009892014786601067, -0.7363300323486328, 0.3752095103263855, 0.43604594469070435, -0.3393944203853607, -0.16762055456638336, 0.0362829864025116, 0.1772461086511612, -0.19274047017097473, -0.16689245402812958, 0.43922582268714905, -0.04653313383460045, -0.47122445702552795, 0.7971921563148499, 0.16484220325946808, 1.0814567804336548, -0.6150849461555481, 0.14256978034973145, -0.021412190049886703, 0.5343582630157471, -0.3090697228908539, -0.6731048822402954, 0.08174973726272583, -0.17028674483299255, -0.11191783100366592, -0.08720678836107254, 0.42392662167549133, -0.7086865901947021, -0.7137184143066406, 0.41096827387809753, 0.25856998562812805, 0.2427336573600769, 0.32707491517066956, -1.03753662109375, 0.14388535916805267, 0.04385529085993767, -0.42794570326805115, 0.0911552906036377, 0.37078505754470825, 0.14252826571464539, 0.311868816614151, 0.5406039357185364, 0.0586857870221138, 0.4891151487827301, 0.004852769430726767, 0.6663379073143005, -0.5816831588745117, -0.5055195093154907, -1.051934003829956, 0.5748542547225952, -0.15146587789058685, -0.564574122428894, 0.9488739967346191, 0.7223662734031677, 1.0450767278671265, 0.0012436544056981802, 0.6993216872215271, -0.452146977186203, 0.32169443368911743, -0.4714992940425873, 0.8737788796424866, -0.7202600836753845, -0.03516532480716705, -0.28714048862457275, -0.7880387902259827, -0.2728520929813385, 0.7223523855209351, -0.27846282720565796, -0.06452734023332596, 0.734912633895874, 1.0739169120788574, -0.12143736332654953, -0.2694711983203888, 0.21671976149082184, 0.37307634949684143, 0.3793580234050751, 0.5351905822753906, 0.4626380205154419, -0.7973483800888062, 0.5665152668952942, -0.6860947012901306, -0.06790987402200699, 0.0012654730817303061, -0.7162712216377258, -0.5916024446487427, -0.7118658423423767, -0.44090473651885986, -0.48246899247169495, -0.11818500608205795, 1.0711349248886108, 0.6463715434074402, -0.8656823635101318, -0.12374523282051086, -0.21960663795471191, 0.0019498377805575728, -0.26894864439964294, -0.3098379969596863, 0.786004900932312, -0.3198387026786804, -0.8712526559829712, 0.07399454712867737, 0.001961067784577608, 0.01813027821481228, 0.03816702216863632, -0.02563566528260708, -0.49489066004753113, 0.09570074826478958, 0.3960610628128052, 0.18241789937019348, -0.6948279738426208, -0.31463325023651123, 0.033752746880054474, -0.40060240030288696, 0.04797322675585747, 0.26390302181243896, -0.5283361673355103, 0.5215996503829956, 0.6327643990516663, 0.4257270097732544, 0.5282765030860901, -0.34750667214393616, 0.4593813419342041, -0.6599159240722656, 0.19266587495803833, 0.0598367340862751, 0.618351399898529, 0.44581490755081177, -0.29522275924682617, 0.3852246105670929, 0.2768345773220062, -0.562099277973175, -0.9580193161964417, -0.0684797465801239, -0.8301328420639038, -0.15148517489433289, 0.9801547527313232, -0.32000574469566345, -0.39903342723846436, 0.14761699736118317, -0.2558775544166565, 0.6619803309440613, -0.23287318646907806, 0.694108247756958, 0.7075159549713135, -0.1350432187318802, 0.15476065874099731, -0.26022157073020935, 0.26483723521232605, 0.7702980637550354, -0.49511152505874634, -0.19120489060878754, 0.20228436589241028, 0.5064930319786072, 0.3360143005847931, 0.6954910755157471, -0.1334526240825653, 0.17624451220035553, 0.14913129806518555, 0.40174680948257446, -0.22377872467041016, 0.05053708702325821, -0.44359755516052246, 0.20713543891906738, -0.20843453705310822, -0.6832535862922668 ]
uw-madison/nystromformer-512
uw-madison
"2022-01-11T14:13:39Z"
20,752
1
transformers
[ "transformers", "pytorch", "nystromformer", "fill-mask", "arxiv:2102.03902", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
# Nyströmformer Nyströmformer model for masked language modeling (MLM) pretrained on BookCorpus and English Wikipedia for sequence length 512. ## About Nyströmformer The Nyströmformer model was proposed in [Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention](https://arxiv.org/abs/2102.03902) by Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, and Vikas Singh. The abstract from the paper is the following: Transformers have emerged as a powerful tool for a broad range of natural language processing tasks. A key component that drives the impressive performance of Transformers is the self-attention mechanism that encodes the influence or dependence of other tokens on each specific token. While beneficial, the quadratic complexity of self-attention on the input sequence length has limited its application to longer sequences — a topic being actively studied in the community. To address this limitation, we propose Nyströmformer — a model that exhibits favorable scalability as a function of sequence length. Our idea is based on adapting the Nyström method to approximate standard self-attention with O(n) complexity. The scalability of Nyströmformer enables application to longer sequences with thousands of tokens. We perform evaluations on multiple downstream tasks on the GLUE benchmark and IMDB reviews with standard sequence length, and find that our Nyströmformer performs comparably, or in a few cases, even slightly better, than standard self-attention. On longer sequence tasks in the Long Range Arena (LRA) benchmark, Nyströmformer performs favorably relative to other efficient self-attention methods. Our code is available at this https URL. ## Usage ```python >>> from transformers import pipeline >>> unmasker = pipeline('fill-mask', model='uw-madison/nystromformer-512') >>> unmasker("Paris is the [MASK] of France.") [{'score': 0.829957902431488, 'token': 1030, 'token_str': 'capital', 'sequence': 'paris is the capital of france.'}, {'score': 0.022157637402415276, 'token': 16081, 'token_str': 'birthplace', 'sequence': 'paris is the birthplace of france.'}, {'score': 0.01904447190463543, 'token': 197, 'token_str': 'name', 'sequence': 'paris is the name of france.'}, {'score': 0.017583081498742104, 'token': 1107, 'token_str': 'kingdom', 'sequence': 'paris is the kingdom of france.'}, {'score': 0.005948934704065323, 'token': 148, 'token_str': 'city', 'sequence': 'paris is the city of france.'}] ```
[ -0.4115055799484253, -0.439359575510025, 0.4036732316017151, 0.4017837345600128, -0.04792973771691322, 0.13888204097747803, -0.13026162981987, -0.10208936780691147, 0.447105348110199, 0.3582335114479065, -0.7457447052001953, -0.3546416163444519, -0.772057294845581, 0.2507960796356201, -0.40171563625335693, 0.883031964302063, 0.03250368684530258, -0.28930413722991943, -0.05540673807263374, 0.006611240562051535, -0.2569314241409302, -0.43600034713745117, -0.5187122821807861, 0.06384909152984619, 0.7316745519638062, 0.343392938375473, 0.4558439552783966, 0.7782279849052429, 0.5825244188308716, 0.4812101721763611, -0.08076012879610062, -0.11692871153354645, -0.6176993250846863, 0.1090342327952385, 0.18442469835281372, -0.39045292139053345, -0.6372975707054138, 0.026201030239462852, 0.6759034395217896, 0.6723512411117554, 0.22298239171504974, 0.5536499619483948, -0.026404865086078644, 0.8587560653686523, -0.3176640570163727, 0.12172245234251022, -0.24346928298473358, 0.2175055593252182, -0.0930924043059349, -0.012078465893864632, -0.18762043118476868, -0.16632898151874542, 0.25471431016921997, -0.22626444697380066, 0.35822075605392456, 0.08998133987188339, 0.7599588632583618, 0.49113503098487854, -0.21755246818065643, 0.08733302354812622, -0.6699038147926331, 0.9282767176628113, -0.7672757506370544, 0.5669766664505005, 0.12071461975574493, 0.2826475501060486, 0.0558115690946579, -0.8082143068313599, -0.5232681035995483, -0.19823119044303894, -0.4354249835014343, 0.16183698177337646, -0.2939813435077667, -0.12847110629081726, 0.4844323992729187, 0.6220930218696594, -0.7465816736221313, -0.018255263566970825, -0.7462345361709595, -0.31547489762306213, 0.613105058670044, 0.05668758228421211, 0.09712991118431091, -0.5355143547058105, -0.43415483832359314, -0.11941296607255936, -0.1931229531764984, 0.2993997037410736, 0.28827404975891113, 0.11647418141365051, -0.21279002726078033, 0.4994071424007416, -0.4789336025714874, 0.615096926689148, 0.6083499193191528, 0.025246109813451767, 0.4628176987171173, -0.115079864859581, -0.2725350558757782, -0.21117591857910156, 1.0606845617294312, 0.3873823583126068, 0.21870994567871094, -0.2101171761751175, -0.23245486617088318, -0.02887341007590294, 0.3206929862499237, -0.9340472221374512, -0.20807580649852753, 0.48889413475990295, -0.4717135727405548, -0.08308155834674835, 0.1516977697610855, -0.98260098695755, 0.17379701137542725, -0.21839098632335663, 0.6052376627922058, -0.14400598406791687, -0.0017515076324343681, -0.06735384464263916, 0.08341731876134872, 0.08003637939691544, -0.13142521679401398, -0.9662108421325684, 0.12611062824726105, 0.4910053610801697, 1.0113842487335205, -0.39980632066726685, -0.21722303330898285, -0.37182357907295227, -0.45591285824775696, -0.2003834843635559, 0.6147989630699158, 0.06517839431762695, -0.2941337823867798, -0.333080530166626, 0.15242719650268555, -0.1563359498977661, -0.27337348461151123, 0.5074307322502136, -0.5199137330055237, 0.5628756284713745, 0.25956764817237854, -0.42528367042541504, 0.08359690755605698, 0.26952195167541504, -0.8769374489784241, 1.0212544202804565, 0.42677897214889526, -0.5721713900566101, 0.11203809827566147, -0.8958435654640198, -0.29135429859161377, -0.03960501775145531, 0.022050177678465843, -0.6345081925392151, 0.016131067648530006, 0.4311215281486511, 0.6493540406227112, -0.12519919872283936, 0.3778454065322876, -0.07559812068939209, -0.26328232884407043, 0.14592793583869934, -0.45706841349601746, 0.636517345905304, 0.293855756521225, -0.4392396807670593, 0.4093588590621948, -1.010009527206421, -0.034267131239175797, 0.23658227920532227, -0.08908609300851822, 0.14606554806232452, -0.4939400851726532, 0.10995101928710938, 0.37556496262550354, 0.31069672107696533, -0.561919093132019, 0.12239116430282593, -0.790058970451355, 0.6957886219024658, 0.8047840595245361, -0.07270415872335434, 0.7139165997505188, -0.23947584629058838, 0.7735936045646667, 0.003355885623022914, 0.49479392170906067, -0.5012719631195068, -0.2796977162361145, -0.8363857269287109, -0.3155856728553772, 0.30989935994148254, 0.38957515358924866, -0.3884105980396271, 0.6924394369125366, -0.485385537147522, -0.6350728273391724, -0.6097636222839355, -0.09615085273981094, 0.2751980423927307, 0.6187285780906677, 0.4790475368499756, -0.35469740629196167, -0.7996222972869873, -1.0366401672363281, -0.08951236307621002, 0.16322650015354156, -0.0502043142914772, 0.1716700792312622, 0.4169248640537262, -0.29309505224227905, 1.2419699430465698, -0.7114772200584412, -0.33522143959999084, -0.03113018162548542, -0.01772797293961048, 0.950143575668335, 0.41887080669403076, 0.6136325001716614, -0.7769498825073242, -0.7132721543312073, -0.39353448152542114, -0.4521472156047821, 0.11244846880435944, 0.17106983065605164, 0.05002310872077942, 0.30315983295440674, 0.5384901762008667, -0.645218551158905, 0.4482284486293793, 0.6322243809700012, -0.45886480808258057, 0.5403072237968445, -0.16078926622867584, 0.08362279087305069, -1.2066694498062134, 0.15803024172782898, -0.23784534633159637, -0.30323290824890137, -0.9053474068641663, -0.2788316309452057, 0.18362441658973694, 0.02186153270304203, -0.49303168058395386, 0.6963621377944946, -0.3735792338848114, 0.2670145034790039, -0.057999514043331146, 0.04347982630133629, -0.010260266251862049, 0.7955254316329956, -0.20552171766757965, 0.6056408286094666, 0.5038572549819946, -0.4584769010543823, 0.4770493507385254, 0.19120554625988007, -0.35504335165023804, 0.3557121455669403, -0.7065659761428833, 0.06522046774625778, -0.3659849762916565, 0.055123232305049896, -1.2811081409454346, -0.26200973987579346, 0.17805194854736328, -0.5071336627006531, 0.3922497034072876, -0.19332684576511383, -0.17396076023578644, -0.9543840289115906, -0.3387683629989624, 0.7308565378189087, 0.6017144918441772, -0.547577440738678, 0.6062466502189636, 0.22194957733154297, -0.21522817015647888, -0.7453626394271851, -0.6591933965682983, -0.11870630830526352, -0.46369701623916626, -0.700940728187561, 0.34693872928619385, -0.39569804072380066, 0.1760440468788147, -0.24088160693645477, -0.2751307785511017, 0.11722321808338165, -0.156941220164299, 0.39141592383384705, 0.46295130252838135, -0.24560612440109253, 0.002230382524430752, -0.4464060068130493, -0.4905283451080322, 0.2275666892528534, -0.5082462430000305, 0.749409556388855, -0.13873843848705292, -0.06971748173236847, -0.43639031052589417, 0.12126459181308746, 0.9142568111419678, -0.26330283284187317, 0.6170804500579834, 0.7628877758979797, -0.20127063989639282, -0.07035133242607117, -0.7265871167182922, -0.3061303198337555, -0.5020260810852051, 0.4584718644618988, -0.4071495234966278, -1.2216099500656128, 0.588192880153656, 0.21293115615844727, -0.19427551329135895, 1.0625510215759277, 0.5981898307800293, -0.023046378046274185, 0.8260678052902222, 0.5981451272964478, -0.3328837752342224, 0.37780752778053284, -0.6053623557090759, 0.6557101011276245, -0.8302367329597473, -0.32803061604499817, -0.18157163262367249, -0.47151148319244385, -0.6348446011543274, -0.6004450917243958, 0.3461105525493622, -0.03330536186695099, -0.2310519516468048, 0.679186999797821, -0.7401160001754761, 0.4245946407318115, 0.5624897480010986, -0.21180234849452972, -0.028189055621623993, -0.17987187206745148, -0.18803218007087708, -0.18777614831924438, -0.7576484680175781, -0.13202087581157684, 1.126491904258728, 0.5386580228805542, 0.7763239741325378, 0.030912257730960846, 0.8396424651145935, 0.3059402406215668, 0.22175270318984985, -0.7496622204780579, 0.3078251779079437, -0.13496147096157074, -0.5770716071128845, -0.694599986076355, -0.4299451410770416, -0.9345389008522034, 0.015301144681870937, 0.008466130122542381, -0.8148936629295349, 0.2966873347759247, 0.09856119751930237, -0.7928008437156677, 0.16200761497020721, -0.5514307022094727, 1.014513373374939, -0.34068092703819275, -0.39413660764694214, 0.30646035075187683, -0.7675142884254456, 0.3320886492729187, -0.38561752438545227, 0.27444663643836975, -0.1897236704826355, 0.4108210802078247, 0.789254367351532, -0.22532224655151367, 0.7707111239433289, 0.023194007575511932, -0.21808815002441406, 0.09859611093997955, -0.11721140146255493, 0.41827183961868286, 0.1317523568868637, 0.11355365812778473, 0.3150481879711151, -0.10724232345819473, -0.25663354992866516, -0.5985183715820312, 0.8079985976219177, -0.762230634689331, -0.6639840602874756, -0.4216100573539734, -0.6134768128395081, 0.20644433796405792, 0.4232288897037506, 0.5330445766448975, 0.49314942955970764, -0.0477977953851223, 0.28193023800849915, 0.4125337302684784, 0.01428399421274662, 0.7505502104759216, 0.27327853441238403, -0.3813450336456299, -0.7053696513175964, 0.6825849413871765, 0.28125470876693726, 0.23245777189731598, 0.6109220385551453, 0.2920665144920349, -0.6621050834655762, -0.15911009907722473, -0.15970301628112793, 0.2196384221315384, -0.5920509696006775, -0.3491942584514618, -0.8796281814575195, -0.5588379502296448, -0.7399492263793945, 0.054414935410022736, -0.507287323474884, -0.6666768789291382, -0.05901273339986801, -0.05985436961054802, 0.3375117778778076, 0.6591874361038208, -0.11803591251373291, 0.034539125859737396, -0.6894558668136597, 0.722525954246521, 0.6014972925186157, 0.6336469054222107, -0.015674425289034843, -0.8673136830329895, -0.26467233896255493, -0.24485398828983307, -0.12564970552921295, -0.6175693869590759, 0.5080773830413818, -0.00848698616027832, 0.5199987292289734, 0.5202358961105347, 0.02619125321507454, 0.8299764394760132, -0.7839227914810181, 0.6791369915008545, 0.237716406583786, -0.8986856341362, 0.4180815517902374, -0.1358955353498459, 0.49074214696884155, 0.23059572279453278, 0.2909091114997864, -0.6607798337936401, -0.3201267421245575, -0.7896125316619873, -1.0080486536026, 0.8778800368309021, 0.5218837261199951, 0.2016116976737976, -0.1756880134344101, 0.2748020887374878, -0.1518660932779312, 0.10266653448343277, -0.948732852935791, -0.7999162673950195, -0.3339071571826935, -0.3250329792499542, -0.5493200421333313, -0.3932839334011078, 0.0647839680314064, -0.4300932288169861, 0.5528983473777771, -0.06407781690359116, 0.4613625705242157, 0.5948807001113892, -0.044056486338377, -0.2054854780435562, 0.26946327090263367, 0.7813001871109009, 0.5097209215164185, -0.37399837374687195, 0.1469748616218567, 0.2490271031856537, -0.3554840385913849, 0.03572263568639755, 0.34528449177742004, -0.028139740228652954, -0.07551122456789017, 0.4428959786891937, 0.735640823841095, 0.2315034121274948, -0.4304966926574707, 0.5583586096763611, 0.08143072575330734, -0.31479412317276, -0.471213698387146, -0.019786523655056953, 0.08255334943532944, 0.42844274640083313, 0.4802030920982361, 0.3001844882965088, 0.17574016749858856, -0.2915007174015045, 0.42713916301727295, 0.26909953355789185, -0.6918760538101196, -0.24438172578811646, 0.9500288367271423, -0.11335068196058273, -0.6238357424736023, 0.39029884338378906, -0.13997052609920502, -0.7479757070541382, 0.7558543086051941, 0.41134363412857056, 1.0434013605117798, -0.45907163619995117, -0.0943627581000328, 0.7349786162376404, 0.2676529884338379, -0.10022488236427307, 0.032312940806150436, -0.07020124047994614, -0.42058756947517395, -0.6184914708137512, -0.9028416275978088, 0.22317487001419067, 0.23371970653533936, -0.5067102909088135, 0.14866375923156738, -0.24571554362773895, -0.3683128356933594, 0.0681229829788208, -0.26022154092788696, -0.7268154621124268, 0.19840657711029053, 0.22459015250205994, 0.8741359114646912, -0.68152916431427, 0.6030535697937012, 0.343007892370224, -0.0703030452132225, -0.7122650742530823, -0.19472625851631165, -0.3259325921535492, -0.6741551160812378, 0.7366898059844971, 0.5043255090713501, 0.03077048435807228, 0.18369701504707336, -0.28135278820991516, -1.4391684532165527, 1.2330321073532104, 0.024503331631422043, -0.822647750377655, 0.02073332667350769, 0.30150148272514343, 0.6444545388221741, -0.36114925146102905, 0.3176638185977936, 0.6087834239006042, 0.42699557542800903, 0.08534353226423264, -0.9155685901641846, 0.02975749783217907, -0.3404603898525238, -0.12620650231838226, 0.36921384930610657, -0.8482468128204346, 0.9797233939170837, -0.3257875144481659, -0.0464012548327446, 0.21324069797992706, 0.7037848234176636, 0.08149662613868713, 0.1749960333108902, 0.6472816467285156, 0.5995410680770874, 0.38003870844841003, -0.24730151891708374, 0.7213166356086731, -0.5630285143852234, 0.8326764106750488, 0.9470961689949036, 0.14281855523586273, 0.636608898639679, 0.561936616897583, -0.4649133086204529, 0.5622796416282654, 0.34080594778060913, -0.3482881784439087, 0.42856836318969727, 0.2786100506782532, 0.2105732411146164, 0.026659462600946426, 0.3117138743400574, -0.08000154793262482, 0.5681360363960266, 0.02113850601017475, -0.44921115040779114, -0.018431156873703003, -0.05162365734577179, -0.17020253837108612, -0.02630612812936306, -0.25545457005500793, 0.5276705026626587, 0.07207049429416656, -0.8451751470565796, 0.5766810774803162, -0.0463506281375885, 0.6860429644584656, -0.42834237217903137, 0.10723650455474854, -0.25725942850112915, 0.251629501581192, -0.15557120740413666, -0.6104466319084167, 0.15945488214492798, -0.11966414749622345, -0.5206595063209534, -0.3580666482448578, 0.5575637817382812, -0.5294197201728821, -0.7667070031166077, 0.22307460010051727, 0.20675978064537048, -0.10417107492685318, -0.18658563494682312, -0.6268080472946167, -0.3375810384750366, -0.027424974367022514, -0.39427903294563293, -0.13943758606910706, 0.18727897107601166, 0.1263929009437561, 0.656395435333252, 0.7418819665908813, -0.1971081793308258, 0.3349270522594452, 0.04410223290324211, 0.639872133731842, -0.84340500831604, -0.6980573534965515, -1.030727744102478, 0.7036039233207703, -0.035898420959711075, -0.1198456808924675, 0.7969159483909607, 0.8088813424110413, 0.567812442779541, -0.5368587374687195, 0.39128822088241577, -0.09477265924215317, 0.5091917514801025, -0.29494404792785645, 0.7196288704872131, -0.5200464129447937, -0.00042295915773138404, -0.1904631108045578, -1.112903118133545, -0.4781203866004944, 0.5567168593406677, -0.3236987590789795, 0.17212523519992828, 0.6141119599342346, 0.63387131690979, -0.12924756109714508, -0.38325434923171997, 0.5500511527061462, 0.5592164397239685, 0.11481650918722153, 0.5693903565406799, 0.7515876293182373, -0.6582129001617432, 0.4335489273071289, -0.578316867351532, -0.020989907905459404, -0.3019169569015503, -0.8615380525588989, -1.1278413534164429, -0.596556544303894, -0.12572473287582397, -0.1565025895833969, -0.40075793862342834, 0.8311522603034973, 0.9546419382095337, -0.9462675452232361, -0.029114961624145508, 0.07077072560787201, -0.015351166017353535, -0.10922267287969589, -0.3446076512336731, 0.741975724697113, -0.31568649411201477, -1.0212289094924927, 0.37182268500328064, 0.5570976138114929, 0.14156079292297363, -0.3969647288322449, -0.15227460861206055, -0.03974511846899986, -0.12646591663360596, 0.7128598690032959, 0.16310755908489227, -0.9256290793418884, -0.276172399520874, 0.39053693413734436, -0.03994392231106758, 0.3185615539550781, 0.4666561484336853, -0.8495625257492065, 0.564125120639801, 0.4381476938724518, 0.2013251781463623, 0.602425217628479, 0.06594939529895782, 0.3609751760959625, -0.8668323159217834, 0.15842457115650177, 0.1757381558418274, 0.4252556264400482, 0.2467677891254425, -0.5824489593505859, 0.41263359785079956, 0.15148556232452393, -0.6957914233207703, -0.5103437900543213, 0.03405254706740379, -1.1177996397018433, 0.09725294262170792, 0.799002468585968, 0.14093056321144104, -0.3510543704032898, 0.08892454206943512, -0.15777671337127686, 0.25154563784599304, -0.29893940687179565, 1.00563645362854, 0.5303417444229126, -0.03664591163396835, -0.2848619222640991, -0.4571670889854431, 0.5174843072891235, 0.3664434254169464, -0.47860926389694214, -0.2677502930164337, -0.10765501856803894, 0.5134856104850769, 0.8205342292785645, 0.5481674075126648, -0.06887920945882797, 0.13259418308734894, -0.28981947898864746, 0.05374717712402344, 0.0543619766831398, -0.36423754692077637, -0.4416673481464386, 0.18664638698101044, -0.2305079698562622, -0.1815892457962036 ]
laion/CLIP-ViT-g-14-laion2B-s12B-b42K
laion
"2023-01-24T01:01:19Z"
20,710
27
open_clip
[ "open_clip", "pytorch", "clip", "arxiv:1910.04867", "license:mit", "has_space", "region:us" ]
null
"2022-09-14T22:53:40Z"
--- license: mit widget: - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png candidate_labels: playing music, playing sports example_title: Cat & Dog --- # Model Card for CLIP ViT-g/14 - LAION-2B # Table of Contents 1. [Model Details](#model-details) 2. [Uses](#uses) 3. [Training Details](#training-details) 4. [Evaluation](#evaluation) 5. [Acknowledgements](#acknowledgements) 6. [Citation](#citation) 7. [How To Get Started With the Model](#how-to-get-started-with-the-model) # Model Details ## Model Description A CLIP ViT-g/14 model trained with the LAION-2B English subset of LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/open_clip). Model training done by Romain Beaumont on the [stability.ai](https://stability.ai/) cluster. # Uses As per the original [OpenAI CLIP model card](https://github.com/openai/CLIP/blob/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1/model-card.md), this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model. The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. Additionally, the LAION-5B blog (https://laion.ai/blog/laion-5b/) and upcoming paper include additional discussion as it relates specifically to the training dataset. ## Direct Use Zero-shot image classification, image and text retrieval, among others. ## Downstream Use Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others. ## Out-of-Scope Use As per the OpenAI models, **Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful. Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use. Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases. Further the above notice, the LAION-5B dataset used in training of these models has additional considerations, see below. # Training Details ## Training Data This model was trained with the 2 Billion sample English subset of LAION-5B (https://laion.ai/blog/laion-5b/). **IMPORTANT NOTE:** The motivation behind dataset creation is to democratize research and experimentation around large-scale multi-modal model training and handling of uncurated, large-scale datasets crawled from publically available internet. Our recommendation is therefore to use the dataset for research purposes. Be aware that this large-scale dataset is uncurated. Keep in mind that the uncurated nature of the dataset means that collected links may lead to strongly discomforting and disturbing content for a human viewer. Therefore, please use the demo links with caution and at your own risk. It is possible to extract a “safe” subset by filtering out samples based on the safety tags (using a customized trained NSFW classifier that we built). While this strongly reduces the chance for encountering potentially harmful content when viewing, we cannot entirely exclude the possibility for harmful content being still present in safe mode, so that the warning holds also there. We think that providing the dataset openly to broad research and other interested communities will allow for transparent investigation of benefits that come along with training large-scale models as well as pitfalls and dangers that may stay unreported or unnoticed when working with closed large datasets that remain restricted to a small community. Providing our dataset openly, we however do not recommend using it for creating ready-to-go industrial products, as the basic research about general properties and safety of such large-scale models, which we would like to encourage with this release, is still in progress. ## Training Procedure Please see [training notes](https://docs.google.com/document/d/1EFbMLRWSSV0LUf9Du1pWzWqgeiIRPwEWX2s1C6mAk5c) and [wandb logs](https://wandb.ai/rom1504/eval_openclip/reports/slow-g-14--VmlldzoyNTMwMjg5). # Evaluation Evaluation done with code in the [LAION CLIP Benchmark suite](https://github.com/LAION-AI/CLIP_benchmark). ## Testing Data, Factors & Metrics ### Testing Data The testing is performed with VTAB+ (A combination of VTAB (https://arxiv.org/abs/1910.04867) w/ additional robustness datasets) for classification and COCO and Flickr for retrieval. **TODO** - more detail ## Results The model achieves a 76.6 zero-shot top-1 accuracy on ImageNet-1k. An initial round of benchmarks have been performed on a wider range of datasets, currently viewable at https://github.com/LAION-AI/CLIP_benchmark/blob/main/benchmark/results.ipynb **TODO** - create table for just this model's metrics. # Acknowledgements Acknowledging [stability.ai](https://stability.ai/) for the compute used to train this model. # Citation **BibTeX:** In addition to forthcoming LAION-5B (https://laion.ai/blog/laion-5b/) paper, please cite: OpenAI CLIP paper ``` @inproceedings{Radford2021LearningTV, title={Learning Transferable Visual Models From Natural Language Supervision}, author={Alec Radford and Jong Wook Kim and Chris Hallacy and A. Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever}, booktitle={ICML}, year={2021} } ``` OpenCLIP software ``` @software{ilharco_gabriel_2021_5143773, author = {Ilharco, Gabriel and Wortsman, Mitchell and Wightman, Ross and Gordon, Cade and Carlini, Nicholas and Taori, Rohan and Dave, Achal and Shankar, Vaishaal and Namkoong, Hongseok and Miller, John and Hajishirzi, Hannaneh and Farhadi, Ali and Schmidt, Ludwig}, title = {OpenCLIP}, month = jul, year = 2021, note = {If you use this software, please cite it as below.}, publisher = {Zenodo}, version = {0.1}, doi = {10.5281/zenodo.5143773}, url = {https://doi.org/10.5281/zenodo.5143773} } ``` # How to Get Started with the Model Use the code below to get started with the model. ** TODO ** - Hugging Face transformers, OpenCLIP, and timm getting started snippets
[ -0.2897414565086365, -0.5865513682365417, 0.1946401298046112, 0.04809151217341423, -0.4074087142944336, -0.4226212799549103, -0.17330656945705414, -0.6370274424552917, 0.030753806233406067, 0.41616806387901306, -0.42732131481170654, -0.5706555247306824, -0.6113711595535278, -0.12334448844194412, -0.388121098279953, 0.8917287588119507, -0.20085425674915314, -0.01662736013531685, -0.234767347574234, -0.4163356423377991, -0.5260076522827148, -0.52286297082901, -0.4357587993144989, 0.0691143125295639, 0.09710366278886795, 0.2663252353668213, 0.6220331192016602, 0.7879738211631775, 0.6998732089996338, 0.2152164727449417, -0.09328249096870422, -0.044514428824186325, -0.5574660301208496, -0.5460297465324402, -0.029926352202892303, -0.3242490291595459, -0.6556001305580139, 0.1545097827911377, 0.5148777961730957, 0.27109435200691223, -0.14162780344486237, 0.23340626060962677, -0.0374642089009285, 0.39508572220802307, -0.7242928743362427, 0.23108859360218048, -0.5551294684410095, -0.0010442538186907768, -0.2118101269006729, 0.21504166722297668, -0.2741873562335968, -0.1318930685520172, 0.1720123589038849, -0.6853651404380798, 0.19108788669109344, -0.15897494554519653, 1.3484262228012085, 0.19754812121391296, -0.2626289129257202, 0.1811932921409607, -0.6348661184310913, 0.7101984024047852, -0.7149103879928589, 0.35129883885383606, 0.35786357522010803, 0.44872504472732544, 0.23093733191490173, -0.8546894192695618, -0.3919808268547058, -0.23272056877613068, 0.16972821950912476, 0.2494024634361267, -0.2721591591835022, 0.011016330681741238, 0.46590617299079895, 0.15553294122219086, -0.35610833764076233, -0.0026969602331519127, -0.682838499546051, -0.0356014184653759, 0.6910434365272522, -0.018809178844094276, 0.40193915367126465, -0.33299437165260315, -0.7077721357345581, -0.4135843515396118, -0.5929298400878906, 0.4451735019683838, 0.242606982588768, -0.020514152944087982, -0.527612566947937, 0.442125529050827, 0.005641041323542595, 0.3613453507423401, -0.05918111279606819, -0.32655516266822815, 0.4616217017173767, -0.37726983428001404, -0.32302790880203247, -0.20496739447116852, 1.0594823360443115, 0.662754476070404, 0.16145779192447662, 0.08643115311861038, -0.0181186031550169, -0.06784538924694061, 0.3052443861961365, -0.9380605816841125, -0.1685059368610382, -0.030630601570010185, -0.5828114151954651, -0.30879437923431396, 0.45282769203186035, -0.7117268443107605, 0.11499117314815521, -0.1269463151693344, 0.5492660999298096, -0.5436626672744751, -0.24157270789146423, 0.013929069973528385, -0.016680559143424034, 0.21616604924201965, 0.2924957275390625, -0.5569260120391846, 0.1722811609506607, 0.36385953426361084, 1.0831596851348877, -0.20292171835899353, -0.38726648688316345, -0.25255295634269714, 0.19746117293834686, -0.2541462779045105, 0.471624493598938, -0.14815470576286316, -0.3901210427284241, -0.11461712419986725, 0.4167911410331726, -0.09778618812561035, -0.5461483001708984, 0.6217114329338074, -0.1876029223203659, 0.034450482577085495, -0.1501212865114212, -0.1713070273399353, -0.5731461644172668, 0.10709189623594284, -0.6437777280807495, 0.8885712623596191, 0.028098158538341522, -0.8076229691505432, 0.3320900797843933, -0.5826922059059143, -0.1830214560031891, -0.17285244166851044, -0.04123013839125633, -0.5805646181106567, -0.24241532385349274, 0.4694522023200989, 0.4984303116798401, -0.24876342713832855, 0.49407869577407837, -0.6243947744369507, -0.32822033762931824, 0.1989140659570694, -0.37728989124298096, 0.92648845911026, -0.007976876571774483, -0.3438669741153717, 0.1938917636871338, -0.5767661929130554, -0.12375269830226898, 0.2454136461019516, 0.08825461566448212, -0.19106066226959229, -0.24488168954849243, -0.030285263434052467, 0.26322996616363525, 0.09946707636117935, -0.49296677112579346, 0.027088521048426628, -0.10160358250141144, 0.4625518023967743, 0.6977644562721252, 0.10020444542169571, 0.28216060996055603, -0.4238854646682739, 0.6151968240737915, 0.09598897397518158, 0.6404269337654114, -0.19555403292179108, -0.5255534052848816, -0.7090654969215393, -0.584880530834198, 0.39974063634872437, 0.5303518772125244, -0.6429909467697144, 0.3710664212703705, -0.21956604719161987, -0.4823872148990631, -0.40235763788223267, -0.0415339395403862, 0.4725908041000366, 0.5226624011993408, 0.38948360085487366, -0.4999232590198517, -0.44832855463027954, -0.849158525466919, 0.2738247215747833, -0.027331707999110222, -0.06782272458076477, 0.6203826665878296, 0.7370460629463196, -0.16479414701461792, 0.8876442909240723, -0.6317380666732788, -0.4925057888031006, -0.1217046007514, 0.08404990285634995, 0.06856544315814972, 0.4417431652545929, 0.911761999130249, -0.8315135836601257, -0.48090532422065735, -0.11962689459323883, -1.1273369789123535, 0.07123782485723495, 0.058652929961681366, -0.2718023955821991, 0.09570980817079544, 0.5154867172241211, -0.5858520269393921, 0.6753470301628113, 0.4236176311969757, 0.09805701673030853, 0.4856419563293457, -0.10358846187591553, 0.02805733121931553, -1.090065360069275, 0.36167922616004944, 0.09102077037096024, -0.24470672011375427, -0.494477242231369, 0.033637240529060364, 0.02094656601548195, -0.3775582015514374, -0.8751997947692871, 0.5054689645767212, -0.3151072859764099, 0.1300351768732071, -0.052728235721588135, 0.0579795315861702, 0.04798728600144386, 0.5555974245071411, 0.089104562997818, 0.9034305810928345, 0.750442385673523, -0.6288719773292542, 0.02797100692987442, 0.3399192988872528, -0.330427348613739, 0.3221019208431244, -0.9803673624992371, 0.05704963207244873, -0.05937744677066803, 0.12319552898406982, -0.3278798460960388, -0.43602192401885986, 0.45929571986198425, -0.4270399510860443, 0.3177339732646942, -0.34025025367736816, -0.17403863370418549, -0.40931057929992676, -0.5921743512153625, 0.4832152724266052, 0.7138741612434387, -0.5978425145149231, 0.34325018525123596, 0.47689127922058105, 0.11574344336986542, -0.7108932137489319, -0.6096830368041992, -0.30296748876571655, -0.38171353936195374, -0.6948278546333313, 0.3769419491291046, -0.06666385382413864, -0.020255323499441147, 0.057669319212436676, 0.11635220050811768, -0.18712280690670013, -0.07680337131023407, 0.6509113311767578, 0.515375018119812, -0.024953706189990044, -0.1452212631702423, -0.13572774827480316, 0.0004868581600021571, 0.011378062888979912, -0.026240147650241852, 0.17898154258728027, -0.22371602058410645, -0.28132206201553345, -0.5843952298164368, 0.17408913373947144, 0.6055053472518921, -0.3808492124080658, 0.7163608074188232, 0.747136652469635, -0.4350016415119171, 0.013143109157681465, -0.3363817632198334, -0.07137887924909592, -0.46590089797973633, 0.4360930025577545, -0.04646727070212364, -0.6475702524185181, 0.589874804019928, 0.12558671832084656, -0.19598612189292908, 0.5460354685783386, 0.3373929560184479, -0.01736471988260746, 0.9033622145652771, 0.8958994150161743, -0.054777588695287704, 0.6295567750930786, -0.7155957818031311, 0.1448495090007782, -0.9428182244300842, -0.3608085811138153, -0.14277055859565735, -0.03859570994973183, -0.5226668119430542, -0.5470008850097656, 0.6630621552467346, 0.45955413579940796, -0.14402079582214355, 0.45062458515167236, -0.3167025148868561, 0.27415475249290466, 0.48693206906318665, 0.37123048305511475, 0.0030325925908982754, -0.08338122814893723, -0.022465704008936882, -0.08634386211633682, -0.6615443229675293, -0.4255673587322235, 1.1195780038833618, 0.6223365068435669, 0.7773250341415405, -0.0518764890730381, 0.4096447825431824, 0.17276740074157715, 0.1084311231970787, -0.6854658722877502, 0.6146018505096436, -0.35862791538238525, -0.5878944396972656, -0.2559574842453003, -0.3420027792453766, -0.741905927658081, -0.0006457208655774593, -0.07379969209432602, -0.7874507904052734, 0.343127578496933, 0.06851358711719513, -0.3259034752845764, 0.44185325503349304, -0.5759178400039673, 0.9845076203346252, -0.4186067581176758, -0.3261722922325134, 0.08821015805006027, -0.728787899017334, 0.5878931879997253, 0.14862491190433502, 0.0652690976858139, -0.2573182284832001, 0.17087309062480927, 0.980548620223999, -0.6220739483833313, 0.9378113746643066, -0.1911638379096985, 0.25114721059799194, 0.7000160813331604, -0.22961561381816864, 0.15160377323627472, 0.2246769815683365, 0.1522974669933319, 0.7284470796585083, 0.03401196002960205, -0.12404120713472366, -0.3887958228588104, 0.4167833924293518, -0.9049350023269653, -0.306845486164093, -0.42686063051223755, -0.46776843070983887, 0.19046540558338165, 0.34179186820983887, 0.6173884868621826, 0.5076038837432861, -0.14958582818508148, 0.3129982650279999, 0.5398961305618286, -0.27066972851753235, 0.48664259910583496, 0.23839104175567627, -0.2325497418642044, -0.6908963918685913, 0.9511715173721313, 0.29724860191345215, 0.3131379783153534, 0.05370625481009483, 0.09289190173149109, -0.06457816809415817, -0.3648238480091095, -0.525962233543396, 0.32581740617752075, -0.6815090775489807, -0.3998321294784546, -0.4375103712081909, -0.40920311212539673, -0.41321057081222534, -0.06511528044939041, -0.49181580543518066, -0.1813831776380539, -0.588652491569519, -0.06958498805761337, 0.3848792314529419, 0.5525845885276794, -0.14229832589626312, 0.3335459530353546, -0.8331857919692993, 0.30439895391464233, 0.3078392744064331, 0.4112091362476349, -0.0055867829360067844, -0.6251798272132874, -0.2592541575431824, 0.18904557824134827, -0.5334995985031128, -0.6344513893127441, 0.37679529190063477, 0.28048089146614075, 0.49305084347724915, 0.6708353757858276, 0.12630599737167358, 0.580262303352356, -0.3960303068161011, 1.0024946928024292, 0.320833683013916, -0.8146096467971802, 0.5639292597770691, -0.5914655327796936, 0.19181643426418304, 0.6026762127876282, 0.7415317893028259, -0.13817808032035828, 0.04624629393219948, -0.6801131963729858, -0.8980751633644104, 0.9020851254463196, 0.1591602861881256, 0.018394796177744865, 0.14292432367801666, 0.35614386200904846, 0.0008644431363791227, 0.18608348071575165, -0.9011080861091614, -0.007331696804612875, -0.46122944355010986, 0.0015027637127786875, 0.16041605174541473, -0.27885207533836365, -0.21474534273147583, -0.42174461483955383, 0.7541452646255493, -0.2588071823120117, 0.5835110545158386, 0.22129489481449127, -0.1404908448457718, -0.09102881699800491, -0.06052888557314873, 0.501487135887146, 0.5887386798858643, -0.5038324594497681, -0.2760864198207855, 0.14523780345916748, -0.6204355955123901, -0.09065618366003036, 0.10696694254875183, -0.6393099427223206, -0.14247262477874756, 0.396383136510849, 1.248764157295227, 0.17074008285999298, -0.6761612892150879, 0.9045679569244385, -0.04297588765621185, -0.3560042977333069, -0.3296750783920288, 0.12256745994091034, -0.27400970458984375, 0.16364900767803192, 0.03112497180700302, 0.1025162935256958, 0.12321866303682327, -0.5320600867271423, 0.21341615915298462, 0.4617795944213867, -0.5120188593864441, -0.4954548478126526, 0.8710150718688965, -0.0018489178037270904, -0.1143428385257721, 0.6043638586997986, -0.12406641989946365, -0.5202144980430603, 0.6627947092056274, 0.45644599199295044, 0.9586622714996338, -0.04639315977692604, 0.37863925099372864, 0.6245156526565552, 0.25657153129577637, -0.26013773679733276, 0.12084466218948364, 0.15289069712162018, -0.526663064956665, -0.09195762127637863, -0.4077433943748474, -0.3293065130710602, 0.2887517213821411, -0.9613535404205322, 0.5506591796875, -0.6711033582687378, -0.4396425783634186, -0.24656862020492554, -0.47473347187042236, -0.48703619837760925, 0.1773291826248169, 0.16909828782081604, 0.8578975200653076, -0.8742892742156982, 0.6965171098709106, 0.6718268394470215, -0.8004894852638245, -0.8709198236465454, 0.10870323330163956, -0.10718581825494766, -0.4673902690410614, 0.3748338520526886, 0.5123807787895203, -0.061946310102939606, -0.39354681968688965, -0.9130144715309143, -0.9678422212600708, 1.3926817178726196, 0.5119898915290833, -0.24990913271903992, -0.1098782867193222, 0.038989417254924774, 0.40136367082595825, -0.25432923436164856, 0.3603222966194153, 0.2148355394601822, 0.1209973469376564, 0.14265133440494537, -1.0610387325286865, -0.06867071986198425, -0.26778584718704224, 0.18746663630008698, -0.011787442490458488, -1.1200675964355469, 0.9939226508140564, -0.23493878543376923, -0.26430729031562805, 0.06500212103128433, 0.6822729706764221, 0.02597276121377945, 0.3641436696052551, 0.3717798590660095, 0.6749728918075562, 0.49814432859420776, 0.009900502860546112, 0.9813488721847534, -0.21108849346637726, 0.41046810150146484, 1.081985592842102, -0.14234744012355804, 0.9468947052955627, 0.21783451735973358, -0.2031717598438263, 0.35429078340530396, 0.36606380343437195, -0.37668776512145996, 0.6702353358268738, -0.3413505256175995, 0.10385869443416595, -0.09646826982498169, -0.45981162786483765, -0.4092344641685486, 0.5385032296180725, 0.013196593150496483, -0.3485836982727051, 0.004267179872840643, 0.3761056065559387, 0.05285034701228142, -0.23889875411987305, -0.17885686457157135, 0.5045511722564697, 0.21459051966667175, -0.3809037506580353, 0.7704133987426758, 0.04400487616658211, 0.6726487874984741, -0.724678099155426, -0.044476427137851715, -0.02969495765864849, 0.2344571053981781, -0.12118484824895859, -0.6883413195610046, 0.2815885543823242, 0.023226067423820496, -0.1420755684375763, -0.0966440811753273, 0.7157503962516785, -0.1556989550590515, -0.4716149866580963, 0.4858129918575287, 0.03178709000349045, 0.18681544065475464, 0.04233021289110184, -0.6321406960487366, 0.16236327588558197, 0.01878158189356327, -0.07239679992198944, 0.3896838426589966, 0.14236584305763245, -0.2687043845653534, 0.6888402104377747, 0.4635851979255676, -0.18056586384773254, 0.1326126903295517, -0.05932670459151268, 0.9592105150222778, -0.3772135078907013, -0.430909126996994, -0.5343539118766785, 0.6103405952453613, -0.09413428604602814, -0.4182165563106537, 0.7795352339744568, 0.470041424036026, 1.0768026113510132, -0.21307075023651123, 0.6954616904258728, -0.2531067430973053, 0.26308712363243103, -0.668556272983551, 0.7157341837882996, -0.6408067345619202, 0.0536496527493, -0.47896987199783325, -0.6909744143486023, -0.15411224961280823, 0.5926146507263184, -0.2414020597934723, 0.10260028392076492, 0.6524974703788757, 0.7123616337776184, -0.2893357276916504, -0.08408199995756149, 0.22656074166297913, 0.16585752367973328, 0.2615630328655243, 0.4183172583580017, 0.5012495517730713, -0.7664637565612793, 0.5849073529243469, -0.7944794297218323, -0.28659114241600037, -0.15309959650039673, -0.816912055015564, -1.122848391532898, -0.4933011829853058, -0.4125511050224304, -0.2166110724210739, 0.04708312824368477, 0.6844717264175415, 0.9436424374580383, -0.7409968972206116, -0.3238978981971741, 0.17624938488006592, -0.21225544810295105, -0.22344909608364105, -0.21568989753723145, 0.4716912508010864, 0.27375736832618713, -0.5532122850418091, 0.2111351490020752, 0.14747844636440277, 0.2880938947200775, -0.04548971354961395, -0.04830343276262283, -0.36064237356185913, -0.11820898950099945, 0.45347732305526733, 0.43649691343307495, -0.5898045301437378, -0.30183884501457214, 0.13867789506912231, 0.14249595999717712, 0.2722666263580322, 0.5138641595840454, -0.52093505859375, 0.4308032691478729, 0.4048635959625244, 0.38152581453323364, 0.6515145301818848, 0.29615241289138794, 0.24179424345493317, -0.5875745415687561, 0.4140949249267578, 0.018180686980485916, 0.3418724238872528, 0.3188892900943756, -0.3644687235355377, 0.6656938195228577, 0.42152437567710876, -0.437242716550827, -0.8604570627212524, -0.056958481669425964, -1.136317491531372, -0.03141619265079498, 1.1004531383514404, -0.46982771158218384, -0.49372947216033936, 0.39764344692230225, -0.2327682226896286, 0.36981722712516785, -0.3706187605857849, 0.45136362314224243, 0.3943687975406647, -0.0471760630607605, -0.38643312454223633, -0.7883309721946716, 0.33972135186195374, 0.14268434047698975, -0.8285109400749207, -0.1921340972185135, 0.3698441982269287, 0.44275790452957153, 0.20169489085674286, 0.48689350485801697, -0.29645848274230957, 0.3332754075527191, -0.03290776163339615, 0.28613734245300293, -0.34983253479003906, -0.6700676083564758, -0.4655870497226715, 0.038422103971242905, -0.11780817806720734, -0.426484078168869 ]
sentence-transformers/sentence-t5-large
sentence-transformers
"2022-02-09T14:01:09Z"
20,692
14
sentence-transformers
[ "sentence-transformers", "pytorch", "t5", "feature-extraction", "sentence-similarity", "transformers", "en", "arxiv:2108.08877", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- pipeline_tag: sentence-similarity language: en license: apache-2.0 tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- # sentence-transformers/sentence-t5-large This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space. The model works well for sentence similarity tasks, but doesn't perform that well for semantic search tasks. This model was converted from the Tensorflow model [st5-large-1](https://tfhub.dev/google/sentence-t5/st5-large/1) to PyTorch. When using this model, have a look at the publication: [Sentence-T5: Scalable sentence encoders from pre-trained text-to-text models](https://arxiv.org/abs/2108.08877). The tfhub model and this PyTorch model can produce slightly different embeddings, however, when run on the same benchmarks, they produce identical results. The model uses only the encoder from a T5-large model. The weights are stored in FP16. ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer sentences = ["This is an example sentence", "Each sentence is converted"] model = SentenceTransformer('sentence-transformers/sentence-t5-large') embeddings = model.encode(sentences) print(embeddings) ``` The model requires sentence-transformers version 2.2.0 or newer. ## Evaluation Results For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/sentence-t5-large) ## Citing & Authors If you find this model helpful, please cite the respective publication: [Sentence-T5: Scalable sentence encoders from pre-trained text-to-text models](https://arxiv.org/abs/2108.08877)
[ -0.12520577013492584, -0.6631167531013489, 0.6015716791152954, 0.3329218924045563, -0.2626338005065918, -0.32353416085243225, -0.3185403645038605, -0.2784492075443268, 0.10454108566045761, 0.5304859280586243, -0.47292211651802063, -0.5900484323501587, -0.828098475933075, 0.3026830852031708, -0.7823368906974792, 0.9444547891616821, -0.15160813927650452, -0.024219227954745293, -0.33160579204559326, -0.07941894978284836, -0.2589291036128998, -0.30534347891807556, -0.30522361397743225, -0.2522582411766052, 0.43153658509254456, 0.30547332763671875, 0.708013117313385, 0.44630923867225647, 0.7830832004547119, 0.40840664505958557, -0.06469103693962097, -0.17525328695774078, -0.5905961394309998, -0.04487905651330948, -0.12775571644306183, -0.20969609916210175, -0.22008247673511505, -0.0493580624461174, 0.5736225843429565, 0.6088396310806274, -0.18071837723255157, 0.2973495423793793, -0.28006577491760254, 0.18356330692768097, -0.4625321328639984, 0.24831070005893707, -0.48549214005470276, 0.27229174971580505, 0.013510025106370449, -0.005003499332815409, -0.5822744369506836, -0.43688374757766724, 0.3731895983219147, -0.3728457987308502, 0.3446790277957916, 0.2809750437736511, 1.161077618598938, 0.44627952575683594, -0.5192251205444336, -0.2607743442058563, -0.46805986762046814, 0.7138990759849548, -0.7248153686523438, 0.40638086199760437, 0.12325158715248108, 0.29192057251930237, -0.14962030947208405, -1.2508244514465332, -0.6255496144294739, -0.42750218510627747, -0.1616116315126419, 0.12494850903749466, -0.47276294231414795, 0.15776216983795166, 0.5617084503173828, 0.36899131536483765, -0.6745879054069519, 0.09491477161645889, -0.6357097625732422, -0.19661672413349152, 0.35010021924972534, 0.14240433275699615, 0.2940446138381958, -0.45412445068359375, -0.4952773451805115, -0.3501250147819519, -0.276551753282547, -0.15886999666690826, 0.22413843870162964, -0.021324682980775833, -0.17295263707637787, 0.9706628322601318, -0.09028161317110062, 0.6448166966438293, 0.05056150630116463, 0.015790199860930443, 0.5336519479751587, -0.2639599144458771, -0.15578049421310425, 0.047762952744960785, 1.079420804977417, 0.49667611718177795, 0.41031011939048767, -0.4074166417121887, -0.254393607378006, 0.11846558004617691, 0.5958529114723206, -1.179805040359497, -0.2709503471851349, 0.27172303199768066, -0.6369494199752808, -0.42312392592430115, 0.2281942516565323, -0.5129801630973816, -0.03972744941711426, 0.10089828819036484, 0.781250536441803, -0.5198291540145874, 0.21410678327083588, 0.270242303609848, -0.3937063217163086, 0.28003329038619995, -0.06486950814723969, -0.7345435619354248, 0.305147260427475, 0.3962814509868622, 0.8469496369361877, -0.06256759166717529, -0.49149414896965027, -0.3376082479953766, -0.0041695707477629185, -0.21462130546569824, 0.7102173566818237, -0.44312742352485657, -0.1705218404531479, 0.11746343970298767, 0.2532649040222168, -0.06377480924129486, -0.5236945748329163, 0.934141218662262, -0.3251909017562866, 0.5856778025627136, 0.09388583898544312, -0.7167771458625793, -0.18314601480960846, 0.19188638031482697, -0.6795924305915833, 0.961654782295227, 0.20954151451587677, -0.8241870999336243, 0.2674199044704437, -0.7461099028587341, -0.3654803931713104, -0.23074185848236084, 0.18343640863895416, -0.8182681202888489, 0.1909014880657196, 0.251461923122406, 0.6848366856575012, -0.3504467308521271, 0.1625298410654068, -0.5304424166679382, -0.6525775194168091, 0.33309969305992126, -0.25803589820861816, 0.8109293580055237, 0.10787519067525864, -0.2857138216495514, 0.31940963864326477, -0.4823225438594818, -0.12154965847730637, 0.20415052771568298, -0.22992850840091705, 0.08232171833515167, -0.10518638789653778, 0.456555038690567, 0.24354761838912964, 0.5011481046676636, -0.7222162485122681, 0.3879936933517456, -0.350347101688385, 0.8710769414901733, 0.4666074216365814, -0.19094586372375488, 0.529873788356781, -0.29442840814590454, 0.29448583722114563, 0.31939592957496643, -0.1428454965353012, -0.1218389943242073, -0.24972692131996155, -0.7861103415489197, -0.037510957568883896, 0.29088452458381653, 0.2784927785396576, -0.6848738193511963, 0.8195029497146606, -0.7178904414176941, -0.6106557846069336, -0.7205056548118591, -0.2530968487262726, -0.03298106789588928, 0.3211537301540375, 0.6495270729064941, 0.016268370673060417, -0.617655336856842, -1.0735294818878174, -0.3819577693939209, 0.10802490264177322, -0.1011255756020546, -0.11718390882015228, 0.9194768071174622, -0.47016873955726624, 0.6954764127731323, -0.5865679383277893, -0.49028271436691284, -0.33887219429016113, 0.14604364335536957, 0.14705754816532135, 0.4121592938899994, 0.598690390586853, -0.6108008623123169, -0.27831554412841797, -0.25707682967185974, -0.6304261088371277, -0.04793248325586319, -0.008466649800539017, 0.1105264276266098, 0.15411897003650665, 0.5748077034950256, -0.9455730319023132, 0.36640664935112, 0.558323323726654, -0.5914070010185242, 0.28618794679641724, -0.3564191162586212, -0.038843151181936264, -1.5910968780517578, 0.09422486275434494, -0.01750384084880352, -0.38641083240509033, -0.15751832723617554, 0.1458825170993805, 0.2538001835346222, -0.2766633927822113, -0.23878881335258484, 0.32447418570518494, -0.3007771968841553, -0.16745038330554962, -0.05298113450407982, 0.17158737778663635, -0.11381742358207703, 0.45090100169181824, -0.2511971592903137, 0.9369506239891052, 0.29155784845352173, -0.310581237077713, 0.6498994827270508, 0.6201503872871399, -0.5586751103401184, 0.17958231270313263, -0.9631705284118652, 0.14280450344085693, -0.13188861310482025, 0.5060192942619324, -0.9583949446678162, -0.25735747814178467, 0.12855443358421326, -0.4773519039154053, -0.08139156550168991, 0.22561894357204437, -0.7985028624534607, -0.5758923888206482, -0.36786478757858276, 0.19755108654499054, 0.6345957517623901, -0.5441686511039734, 0.6944807171821594, 0.02780798263847828, 0.10170014202594757, -0.5261502265930176, -0.9756929874420166, 0.17169873416423798, -0.31486251950263977, -0.6658684015274048, 0.6910990476608276, 0.08949026465415955, 0.22518406808376312, 0.30795910954475403, 0.040078405290842056, 0.034238994121551514, -0.15337973833084106, 0.13102714717388153, -0.024378903210163116, -0.19546906650066376, 0.2697680592536926, -0.02250221185386181, -0.09042525291442871, 0.1559119075536728, -0.4590292274951935, 0.6792560815811157, -0.1677355021238327, -0.017054755240678787, -0.4159047305583954, 0.21842485666275024, 0.703421950340271, -0.23863035440444946, 0.9954433441162109, 1.051200270652771, -0.26441970467567444, -0.17506082355976105, -0.5813606381416321, -0.25698357820510864, -0.45813968777656555, 0.7221801280975342, -0.4464709162712097, -1.0746556520462036, 0.34994083642959595, 0.00335106928832829, -0.08277421444654465, 0.7417653799057007, 0.4971112906932831, -0.12142817676067352, 0.8070613145828247, 0.5610654950141907, -0.10603506863117218, 0.5271843075752258, -0.28689780831336975, 0.43405336141586304, -0.6438469290733337, -0.08016940206289291, -0.6217278242111206, -0.4056988060474396, -0.868412971496582, -0.3548530638217926, 0.2686597406864166, -0.28757885098457336, -0.5469130277633667, 0.6904152631759644, -0.5469147562980652, 0.24693164229393005, 0.540140688419342, 0.06576946377754211, 0.043385546654462814, 0.21701671183109283, -0.12055488675832748, -0.13054120540618896, -0.657513439655304, -0.45366716384887695, 1.0370047092437744, 0.2808677852153778, 0.706180214881897, 0.15053468942642212, 0.49343541264533997, 0.032055191695690155, -0.24131183326244354, -0.9076635241508484, 0.5768934488296509, -0.5350543856620789, -0.3703973591327667, -0.17441855370998383, -0.4938342869281769, -1.1358860731124878, 0.18341737985610962, -0.3785724639892578, -0.7396759986877441, -0.2330792248249054, -0.401397168636322, -0.14101563394069672, 0.2692924439907074, -0.9374698996543884, 1.3027241230010986, 0.0071622407995164394, -0.11413561552762985, -0.2356766164302826, -0.5041531920433044, -0.07538086175918579, 0.16477324068546295, -0.249892920255661, 0.13082255423069, -0.058695241808891296, 0.7511815428733826, -0.33487406373023987, 0.6229619383811951, 0.13043956458568573, 0.12915228307247162, 0.06857356429100037, -0.15269142389297485, 0.5241130590438843, -0.3218432068824768, -0.08346690982580185, 0.05144498869776726, -0.004414460621774197, -0.4435105323791504, -0.6247193217277527, 0.7330217361450195, -1.0946801900863647, -0.48027902841567993, -0.4349609613418579, -0.5696431398391724, 0.15312950313091278, 0.3546004295349121, 0.3457292318344116, 0.5082671046257019, -0.2724398672580719, 0.8912620544433594, 0.3930964469909668, -0.2776487469673157, 0.599819004535675, 0.034180898219347, -0.04366002604365349, -0.31166231632232666, 0.5384266972541809, 0.05620579048991203, 0.04946262761950493, 0.7216985821723938, 0.14880992472171783, -0.548975944519043, -0.3710465133190155, -0.12755832076072693, 0.15098756551742554, -0.6485249400138855, -0.09271053969860077, -0.9116722345352173, -0.3401493430137634, -0.7096806764602661, -0.060057368129491806, -0.19399192929267883, -0.3791452646255493, -0.34696170687675476, -0.26852816343307495, 0.5487049221992493, 0.7211605310440063, 0.20696385204792023, 0.40811842679977417, -0.7085307240486145, 0.351749449968338, 0.01019669882953167, 0.21274541318416595, -0.12475225329399109, -0.6625298261642456, -0.1791287064552307, -0.15495875477790833, -0.48268622159957886, -0.7775711417198181, 0.556795060634613, 0.03673434630036354, 0.28584396839141846, 0.29455217719078064, 0.05975334346294403, 0.6669279932975769, -0.5734413862228394, 0.8176475167274475, 0.0759633406996727, -0.9777458310127258, 0.25491559505462646, -0.35359373688697815, 0.608006477355957, 0.3788004517555237, 0.34675005078315735, -0.49138209223747253, -0.14372465014457703, -0.7631992697715759, -0.9229907989501953, 0.6929465532302856, 0.4283944070339203, 0.35916271805763245, 0.025302376598119736, 0.19884942471981049, -0.051180560141801834, 0.30295518040657043, -0.9688084721565247, 0.0176080334931612, -0.4529126286506653, -0.711203396320343, -0.3944967985153198, -0.30254584550857544, 0.2553340792655945, -0.10973301529884338, 0.4052944481372833, -0.0034008119255304337, 0.7458717823028564, 0.1743386685848236, -0.3348125219345093, 0.19316723942756653, 0.31692254543304443, 0.509012758731842, 0.2649354636669159, -0.23426498472690582, 0.22529339790344238, 0.3918209969997406, -0.46016570925712585, -0.15427616238594055, 0.381788045167923, 0.013695907779037952, 0.08418907970190048, 0.5329135060310364, 1.0116755962371826, 0.46876561641693115, -0.3835977017879486, 0.7445632219314575, 0.06312704086303711, -0.2635490894317627, -0.6320037245750427, -0.13591411709785461, 0.3500942587852478, 0.28202202916145325, 0.187887504696846, 0.06969401240348816, 0.17889869213104248, -0.5969411730766296, 0.12235794216394424, 0.07782670855522156, -0.3813779950141907, -0.09927817434072495, 0.7761135101318359, 0.10991225391626358, -0.33041244745254517, 1.009210467338562, 0.009596609510481358, -0.6438354253768921, 0.5645018219947815, 0.6300529837608337, 0.9342679977416992, 0.21949118375778198, 0.17842702567577362, 0.5171306729316711, 0.3361240029335022, -0.36340343952178955, 0.04609215632081032, -0.014956907369196415, -0.7177883982658386, -0.3420847952365875, -0.5393512845039368, -0.1296195238828659, 0.001110466313548386, -0.48798736929893494, 0.44523611664772034, -0.27742722630500793, -0.1306939423084259, 0.09167694300413132, 0.02247488871216774, -0.7559633255004883, 0.16694487631320953, -0.1836036890745163, 0.7479081153869629, -0.6829609274864197, 0.7721613645553589, 0.7852609157562256, -0.8003536462783813, -0.941902756690979, 0.1302526891231537, -0.5646826028823853, -0.6173093318939209, 0.6059840321540833, 0.3585682213306427, 0.17567789554595947, 0.18231524527072906, -0.668366551399231, -0.6871315836906433, 1.2930415868759155, 0.37035009264945984, -0.4432423412799835, -0.4137957990169525, 0.3777023255825043, 0.6819648742675781, -0.38095715641975403, 0.49716493487358093, 0.20860187709331512, 0.37226229906082153, 0.04421568661928177, -0.9675511121749878, 0.31525465846061707, -0.1174585148692131, 0.2121468335390091, 0.11122589558362961, -0.674229085445404, 0.9967617988586426, -0.09699314832687378, 0.11312250792980194, 0.30731990933418274, 0.7010965347290039, 0.04849991202354431, -0.11109782755374908, 0.31620359420776367, 0.8373416066169739, 0.5293137431144714, -0.27302268147468567, 1.1182377338409424, -0.1813298612833023, 0.82850581407547, 0.8755096793174744, -0.014657511375844479, 1.1374688148498535, 0.559259295463562, -0.022154951468110085, 0.7375417947769165, 0.5170249938964844, -0.5370425581932068, 0.3832131624221802, 0.20845115184783936, 0.14498740434646606, -0.3311536908149719, 0.13080666959285736, -0.3000394403934479, 0.5712760090827942, 0.10111303627490997, -0.7135389447212219, -0.21909870207309723, -0.11068406701087952, -0.07596730440855026, -0.06248728558421135, -0.03389919176697731, 0.6248762607574463, 0.1941710114479065, -0.5583421587944031, 0.3691367506980896, 0.1994364708662033, 0.7640597820281982, -0.4032366871833801, 0.049115609377622604, 0.04318445175886154, 0.526187539100647, -0.1372426152229309, -0.8447501063346863, 0.3943973779678345, -0.12732075154781342, -0.08143669366836548, -0.40994590520858765, 0.8049070239067078, -0.5146551132202148, -0.5947275161743164, 0.2830897271633148, 0.31340691447257996, 0.11857735365629196, -0.026682903990149498, -0.6574569344520569, -0.008881350047886372, -0.08523739874362946, -0.14662528038024902, 0.07050375640392303, 0.4933917224407196, 0.11456631869077682, 0.6455687284469604, 0.3909856081008911, -0.2925699055194855, -0.05956777557730675, 0.06186966598033905, 0.6311082243919373, -0.8918020129203796, -0.6231955289840698, -0.7117255926132202, 0.4482196271419525, -0.19820985198020935, -0.4785372316837311, 0.6553555130958557, 0.6205664873123169, 0.8875280618667603, -0.45794764161109924, 0.4967608153820038, -0.081333227455616, 0.2575286626815796, -0.4933859705924988, 0.8743859529495239, -0.7234581112861633, -0.22721320390701294, -0.2639088034629822, -1.1536355018615723, -0.2406023144721985, 1.015255093574524, -0.4615640342235565, 0.1999501734972, 1.1401381492614746, 0.7416942119598389, -0.27922341227531433, -0.07817579060792923, 0.2848528325557709, 0.606936514377594, 0.1653994470834732, 0.648790717124939, 0.6042284965515137, -0.8372737169265747, 0.8877713084220886, 0.00866689532995224, 0.4027100205421448, -0.28649336099624634, -0.7110110521316528, -1.1147831678390503, -0.7277428507804871, -0.265593022108078, -0.5050069689750671, 0.05060848221182823, 1.0327703952789307, 0.49980399012565613, -0.5967988967895508, -0.12021701782941818, -0.33016252517700195, -0.2543160915374756, 0.08935917168855667, -0.23842984437942505, 0.333953857421875, -0.2666604518890381, -0.8745085000991821, 0.048140086233615875, -0.15612275898456573, 0.02341865561902523, -0.23876723647117615, 0.3160613775253296, -0.08563599735498428, -0.19296449422836304, 0.5786675214767456, -0.34901562333106995, -0.8159105777740479, -0.6542592644691467, 0.1433650255203247, -0.3515131175518036, -0.02762739174067974, 0.43714115023612976, -0.6925327181816101, 0.15231843292713165, 0.6842488050460815, 0.7045575976371765, 0.9204130172729492, -0.27278873324394226, 0.7236493825912476, -0.42437073588371277, 0.21138298511505127, 0.12383897602558136, 0.5289078950881958, 0.4564000070095062, -0.09815490990877151, 0.5289064049720764, 0.08920484036207199, -0.5443207025527954, -0.5145547986030579, -0.015429578721523285, -1.2953822612762451, -0.18177911639213562, 1.346360445022583, -0.11702743172645569, -0.29096439480781555, 0.32226258516311646, -0.36557239294052124, 0.40422025322914124, -0.46428290009498596, 0.8983218669891357, 0.9028626084327698, 0.4026022255420685, -0.3164694309234619, -0.35919061303138733, 0.2679530084133148, 0.44217267632484436, -0.570855975151062, -0.3466378152370453, 0.2771718502044678, 0.4663582146167755, 0.18733863532543182, 0.05818892642855644, -0.045806437730789185, 0.10202645510435104, 0.21095868945121765, 0.15175451338291168, -0.1358666718006134, 0.003366399323567748, -0.2570568919181824, 0.47009706497192383, -0.23694412410259247, -0.1956893801689148 ]
Minej/bert-base-personality
Minej
"2023-07-13T13:11:50Z"
20,597
5
transformers
[ "transformers", "pytorch", "safetensors", "bert", "text-classification", "en", "arxiv:1810.04805", "license:mit", "endpoints_compatible", "region:us" ]
text-classification
"2023-06-06T19:17:08Z"
--- license: mit language: - en library_name: transformers pipeline_tag: text-classification --- ## How to Get Started with the Model To use the model through Hosted inference API, follow the code snippet provided below: ```python from transformers import BertTokenizer, BertForSequenceClassification def personality_detection(text): tokenizer = BertTokenizer.from_pretrained("Minej/bert-base-personality") model = BertForSequenceClassification.from_pretrained("Minej/bert-base-personality") inputs = tokenizer(text, truncation=True, padding=True, return_tensors="pt") outputs = model(**inputs) predictions = outputs.logits.squeeze().detach().numpy() label_names = ['Extroversion', 'Neuroticism', 'Agreeableness', 'Conscientiousness', 'Openness'] result = {label_names[i]: predictions[i] for i in range(len(label_names))} return result ``` #### Result Format The personality_detection function returns a dictionary containing the predicted personality traits based on the given input text. The dictionary contains the following personality traits with their corresponding predicted values: Extroversion: A value between 0 and 1 representing the predicted extroversion trait. Neuroticism: A value between 0 and 1 representing the predicted neuroticism trait. Agreeableness: A value between 0 and 1 representing the predicted agreeableness trait. Conscientiousness: A value between 0 and 1 representing the predicted conscientiousness trait. Openness: A value between 0 and 1 representing the predicted openness trait. ```python text_input = "I am feeling excited about the upcoming event." personality_prediction = personality_detection(text_input) print(personality_prediction) ``` ###### Output: ```python { "Extroversion": 0.535, "Neuroticism": 0.576, "Agreeableness": 0.399, "Conscientiousness": 0.253, "Openness": 0.563 } ``` Note: The values in the example output are just placeholders and may not reflect the actual predictions. You can modify the example code and the result format to match your specific use case and desired output format. ### Model Description Transfer Learning for Big Five Personality Prediction In machine learning, training accurate models can be challenging when labeled data is limited. Transfer learning offers a solution by leveraging pre-existing labeled data from a similar task or domain. By transferring knowledge learned from one task to another, we can overcome data scarcity and train more effective models. In this project, we used transfer learning with the BERT BASE UNCASED model to predict Big Five personality traits. The model was fine-tuned on a curated dataset for personality traits, learning patterns between input text and personality characteristics. By applying transfer learning, we improved the accuracy of personality trait predictions. By leveraging transfer learning and fine-tuning BERT BASE UNCASED, we accurately predict an individual's Big Five personality traits based on their input text. This approach addresses the challenges of limited labeled data in personality prediction, providing insights into individuals' personalities. This project showcases the power of transfer learning in machine learning and highlights the effectiveness of BERT BASE UNCASED for predicting Big Five personality traits. - **Model type:** BERT BASE UNCASED - **Language(s) (NLP):** English - **License:** MIT - **Finetuned from model [optional]:** https://huggingface.co/bert-base-uncased ## Uses <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. --> ### Direct Use The personality prediction model can be used directly by individuals who are interested in gaining insights into their own personality traits based on their input text. Users can input text and receive predictions for the Big Five personality traits. ### Downstream Use This model is not intended for downstream use or fine-tuning for specific tasks. It is designed as a standalone personality prediction model. ### Out-of-Scope Use This model is not suitable for uses beyond personality prediction. It should not be used for making critical decisions or judgments about individuals in areas such as employment, education, or legal matters. ## Bias, Risks, and Limitations The personality prediction model, like any machine learning model, has certain limitations and potential biases that should be taken into account: Limited Context: The model makes predictions based on input text alone and may not capture the full context of an individual's personality. It is important to consider that personality traits are influenced by various factors beyond textual expression. Generalization: The model predicts personality traits based on patterns learned from a specific dataset. Its performance may vary when applied to individuals from different demographic or cultural backgrounds not well represented in the training data. Ethical Considerations: Personality prediction models should be used responsibly, with an understanding that personality traits do not determine a person's worth or abilities. It is important to avoid making unfair judgments or discriminating against individuals based on predicted personality traits. Privacy Concerns: The model relies on user-provided input text, which may contain sensitive or personal information. Users should exercise caution when sharing personal details and ensure the security of their data. False Positives/Negatives: The model's predictions may not always align perfectly with an individual's actual personality traits. It is possible for the model to generate false positives (predicting a trait that is not present) or false negatives (missing a trait that is present). ### Recommendations To mitigate risks and limitations associated with personality prediction models, the following recommendations are suggested: Awareness and Education: Users should be informed about the limitations and potential biases of the model. Promote understanding that personality traits are complex and cannot be fully captured by a single model or text analysis. Avoid Stereotyping and Discrimination: Users should be cautious about making judgments or decisions solely based on predicted personality traits. Personality predictions should not be used to discriminate against individuals or perpetuate stereotypes. Interpret with Context: Interpret the model's predictions in the appropriate context and consider additional information about an individual beyond their input text. Data Privacy and Security: Ensure that user data is handled securely and with respect to privacy regulations. Users should be aware of the information they provide and exercise caution when sharing personal details. Promote Ethical Use: Encourage responsible use of personality prediction models and discourage misuse or harmful applications. It is important to note that the above recommendations are general guidelines, and further context-specific recommendations should be developed based on the particular use case and ethical considerations. ## How to Download the Model If you would like to download the model files and use them instead of the Hosted inference API, then you can follow the code snippet provided below: ```python from transformers import BertForSequenceClassification, BertTokenizer import torch # Initialization of the model values model = BertForSequenceClassification.from_pretrained(".", num_labels=5) tokenizer = BertTokenizer.from_pretrained('.', do_lower_case=True) model.config.label2id = { "Extroversion": 0, "Neuroticism": 1, "Agreeableness": 2, "Conscientiousness": 3, "Openness": 4, } model.config.id2label = { "0": "Extroversion", "1": "Neuroticism", "2": "Agreeableness", "3": "Conscientiousness", "4": "Openness", } def personality_detection(model_input: str) -> dict: ''' Performs personality prediction on the given input text Args: model_input (str): The text conversation Returns: dict: A dictionary where keys are speaker labels and values are their personality predictions ''' if len(model_input) == 0: ret = { "Extroversion": float(0), "Neuroticism": float(0), "Agreeableness": float(0), "Conscientiousness": float(0), "Openness": float(0), } return ret else: dict_custom = {} preprocess_part1 = model_input[:len(model_input)] dict1 = tokenizer.encode_plus(preprocess_part1, max_length=1024, padding=True, truncation=True) dict_custom['input_ids'] = [dict1['input_ids'], dict1['input_ids']] dict_custom['token_type_ids'] = [dict1['token_type_ids'], dict1['token_type_ids']] dict_custom['attention_mask'] = [dict1['attention_mask'], dict1['attention_mask']] outs = model(torch.tensor(dict_custom['input_ids']), token_type_ids=None, attention_mask=torch.tensor(dict_custom['attention_mask'])) b_logit_pred = outs[0] pred_label = torch.sigmoid(b_logit_pred) ret = { "Extroversion": float(pred_label[0][0]), "Neuroticism": float(pred_label[0][1]), "Agreeableness": float(pred_label[0][2]), "Conscientiousness": float(pred_label[0][3]), "Openness": float(pred_label[0][4]), } return ret personality_prediction = personality_detection(text_input) ``` Make sure you have the required dependencies installed (transformers and torch). This code snippet initializes the model, tokenizer, and configuration. It then defines the personality_detection function, which takes a text conversation as input and returns a dictionary with personality predictions for each speaker. You can call the personality_detection function with your input text to obtain the personality predictions. The personality_prediction variable will hold the resulting dictionary. Please note that this code assumes you have already downloaded the necessary model files (config.json, pytorch_model.bin, special_tokens_map.json, tokenizer_config.json, vocab.txt ) and placed them in the current directory (indicated by "."). Adjust the paths and filenames accordingly if needed. ## Citation @article{DBLP:journals/corr/abs-1810-04805, author = {Jacob Devlin and Ming{-}Wei Chang and Kenton Lee and Kristina Toutanova}, title = {{BERT:} Pre-training of Deep Bidirectional Transformers for Language Understanding}, journal = {CoRR}, volume = {abs/1810.04805}, year = {2018}, url = {http://arxiv.org/abs/1810.04805}, archivePrefix = {arXiv}, eprint = {1810.04805}, timestamp = {Tue, 30 Oct 2018 20:39:56 +0100}, biburl = {https://dblp.org/rec/journals/corr/abs-1810-04805.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ## More Information TBA
[ -0.5152985453605652, -0.32263413071632385, 0.4964555501937866, 0.38184165954589844, -0.07758557796478271, -0.2770094573497772, -0.257318377494812, -0.6259907484054565, 0.10310904681682587, 0.5508598685264587, -0.8990511894226074, -0.5728480815887451, -0.7571751475334167, -0.034955114126205444, -0.0473519042134285, 1.092559814453125, 0.31007906794548035, 0.25250044465065, -0.21038390696048737, 0.09408480674028397, -0.5644363164901733, -0.7227941155433655, -0.3828050494194031, -0.644997239112854, 0.49656519293785095, 0.4023718237876892, 0.39205384254455566, 0.19050748646259308, 0.3950316905975342, 0.26781800389289856, -0.02300707995891571, -0.1499815136194229, -0.4734867513179779, -0.14857067167758942, -0.20597437024116516, -0.24964861571788788, -0.49381595849990845, 0.1846773624420166, 0.23502442240715027, 0.5727639198303223, -0.012649849988520145, 0.26610133051872253, -0.09211831539869308, 0.6320398449897766, -0.4615781307220459, 0.40430477261543274, -0.5178520679473877, 0.1275666058063507, 0.04283980652689934, 0.3627415597438812, -0.4868156909942627, -0.48636457324028015, 0.5605476498603821, -0.2438935935497284, 0.001304319128394127, 0.041436389088630676, 0.7087464928627014, 0.13424348831176758, -0.558340847492218, -0.0690934881567955, -0.7717980146408081, 0.8236609101295471, -0.719099760055542, 0.1837550848722458, 0.6467509269714355, 0.3914935886859894, -0.06469906121492386, -0.6449964642524719, -0.644710123538971, -0.23957078158855438, -0.0802023708820343, 0.22529757022857666, -0.045253682881593704, 0.004691862501204014, 0.3189444839954376, 0.1956053227186203, -0.3468305170536041, -0.06281038373708725, -0.46045124530792236, -0.09302128106355667, 0.8933991193771362, 0.015459718182682991, -0.12160561233758926, -0.06877795606851578, -0.21246382594108582, -0.15358205139636993, -0.3434264659881592, 0.08003208041191101, 0.399551659822464, 0.21469198167324066, -0.06611797958612442, 0.36980488896369934, 0.005332498345524073, 0.3388326168060303, 0.44411569833755493, -0.026473408564925194, 0.3891308605670929, -0.03452957049012184, -0.2009519338607788, 0.0794302448630333, 0.6398573517799377, 0.36786311864852905, 0.4099455177783966, -0.09398101270198822, 0.0989445373415947, -0.2695353925228119, 0.34309667348861694, -0.9552704691886902, -0.5311197638511658, 0.6776509881019592, -0.6410775184631348, -0.4055519104003906, 0.10251729190349579, -0.8549196720123291, -0.414188414812088, -0.22318647801876068, 0.40449467301368713, -0.7131072282791138, -0.2504417300224304, -0.13666731119155884, -0.26032859086990356, 0.16052362322807312, 0.2030002474784851, -1.1538273096084595, 0.10023316740989685, 0.20220141112804413, 0.5486522912979126, -0.0318114273250103, -0.3252086043357849, -0.030580518767237663, 0.08941907435655594, 0.011234106495976448, 0.4052102565765381, -0.3812403678894043, -0.567555844783783, -0.06714503467082977, 0.19005689024925232, -0.0007571704336442053, -0.23723694682121277, 0.7167819738388062, -0.28486865758895874, 0.15117155015468597, -0.3881925046443939, -0.7991510629653931, -0.32565638422966003, -0.0293075293302536, -0.5231581330299377, 0.7795750498771667, 0.24101565778255463, -0.7319933772087097, 0.4285276532173157, -0.7749430537223816, -0.41063550114631653, -0.08730289340019226, 0.3047928810119629, -0.7837283611297607, -0.13050450384616852, 0.15413467586040497, 0.8000421524047852, 0.36050158739089966, 0.2441502809524536, -0.8311935067176819, -0.3192235827445984, 0.37715214490890503, 0.1676754355430603, 0.9735119938850403, 0.03478555381298065, -0.3800819516181946, 0.2079499214887619, -0.8575937151908875, 0.15789218246936798, 0.11667954176664352, -0.24067245423793793, -0.15666931867599487, 0.12006101757287979, 0.11669699847698212, 0.20404411852359772, 0.42306503653526306, -0.6954175233840942, 0.3817842900753021, -0.20071358978748322, 0.30977001786231995, 0.8651811480522156, -0.17653073370456696, 0.2664906978607178, -0.3190852701663971, 0.03573862090706825, 0.1874663382768631, 0.1712544858455658, 0.352337121963501, -0.6198194622993469, -0.43709272146224976, -0.32642805576324463, 0.24677658081054688, 0.5770596265792847, -0.29329097270965576, 1.2170143127441406, -0.042688753455877304, -1.007846713066101, -0.21480876207351685, -0.08956519514322281, 0.26199662685394287, 0.5211365222930908, 0.4489620625972748, -0.06444139778614044, -0.9415217041969299, -0.5661512613296509, -0.1587095707654953, -0.10480590164661407, -0.08360342681407928, 0.42070624232292175, 0.9419023394584656, -0.4909723103046417, 0.749330997467041, -0.6450843214988708, -0.20356756448745728, -0.39119964838027954, 0.1519835889339447, 0.3734591603279114, 0.6698084473609924, 0.6534457802772522, -0.8063439130783081, -0.3958030939102173, -0.19844843447208405, -0.569595217704773, 0.09909804165363312, 0.07834559679031372, -0.16723382472991943, 0.13045570254325867, -0.0024238841142505407, -0.4569558799266815, 0.5220580697059631, 0.5406768918037415, -0.6325659155845642, 0.8995076417922974, -0.13434994220733643, -0.3302329480648041, -1.142339825630188, 0.284891277551651, 0.004843407776206732, -0.032483987510204315, -0.6125916242599487, -0.19352081418037415, -0.055234089493751526, -0.04271730035543442, -0.09554289281368256, 0.7651346325874329, 0.02793269231915474, -0.07327821850776672, -0.06935334950685501, -0.4544059634208679, -0.06757941842079163, 0.5685389637947083, 0.24637728929519653, 0.4652104377746582, 0.5975173711776733, -0.6321167349815369, 0.3936576247215271, 0.6553339958190918, -0.35977116227149963, 0.4556061923503876, -0.6852976679801941, 0.24597866833209991, -0.1053340956568718, 0.4608058035373688, -0.9493528008460999, -0.3599221706390381, 0.10807620733976364, -0.7410957217216492, 0.23332345485687256, -0.011281636543571949, -0.10962110012769699, -0.4990614950656891, -0.2775557339191437, -0.2612111568450928, 0.6981475949287415, -0.5373966693878174, 0.7771488428115845, 0.09334821999073029, -0.0005316819297149777, -0.5550124049186707, -0.7723331451416016, -0.4063222408294678, -0.3604642152786255, -0.6223649978637695, 0.5007661581039429, -0.3339761197566986, 0.01649540662765503, -0.15881018340587616, 0.21917033195495605, -0.15895520150661469, 0.03373859450221062, 0.4598329961299896, 0.45853742957115173, 0.1940818727016449, 0.2437039315700531, -0.014901378192007542, 0.03659221902489662, 0.17011681199073792, -0.3643925189971924, 0.28184211254119873, -0.2558911144733429, 0.04342876002192497, -0.3850003182888031, 0.27080589532852173, 0.5905504822731018, -0.09774044901132584, 1.1307182312011719, 1.0343571901321411, -0.34691575169563293, -0.061887502670288086, -0.43497586250305176, -0.48094645142555237, -0.38965925574302673, 0.40493643283843994, -0.34049853682518005, -0.5669102668762207, 0.7195618152618408, -0.006104946602135897, 0.15130728483200073, 0.3337099552154541, 0.7611634135246277, -0.352558970451355, 1.173877239227295, 0.8540153503417969, 0.053897786885499954, 0.5910911560058594, -0.3511693775653839, 0.17141549289226532, -0.7433856129646301, -0.35028767585754395, -0.3246210515499115, -0.45416373014450073, -0.710540771484375, 0.1380603313446045, 0.03778776526451111, -0.21256256103515625, -0.6845910549163818, 0.34576496481895447, -0.5885657668113708, 0.09046965092420578, 0.7491474747657776, 0.3042908012866974, -0.055500760674476624, -0.12977628409862518, -0.11131016165018082, -0.2980107367038727, -0.1028457060456276, -0.37160661816596985, 1.471992015838623, 0.4936053156852722, 0.7730340957641602, 0.12799276411533356, 0.6504223346710205, 0.41286662220954895, 0.3710680305957794, -0.8229332566261292, 0.3628164827823639, -0.3765125870704651, -0.8611513376235962, -0.3420943319797516, -0.24842806160449982, -0.684765636920929, 0.08713355660438538, -0.3611961603164673, -1.1515657901763916, 0.43775618076324463, 0.1501365602016449, -0.4082612991333008, 0.18375734984874725, -0.867614209651947, 0.9047337770462036, -0.13185228407382965, -0.27889126539230347, -0.07025033980607986, -1.0060604810714722, 0.46433669328689575, -0.027104737237095833, -0.26621612906455994, -0.10372316092252731, 0.36839553713798523, 0.7609079480171204, -0.4100584387779236, 1.0656155347824097, -0.3861946165561676, 0.436204195022583, -0.0418492890894413, -0.00485958019271493, 0.4238634705543518, -0.17829591035842896, -0.26975902915000916, 0.4760842025279999, 0.38743457198143005, -0.30426931381225586, -0.4229925870895386, 0.6057220101356506, -1.3132236003875732, -0.09428009390830994, -0.35695794224739075, -0.45924368500709534, -0.35150375962257385, 0.4235273003578186, 0.4642113745212555, 0.09074435383081436, -0.22920063138008118, 0.32302847504615784, 0.7618523240089417, -0.08993863314390182, 0.3014043867588043, 0.3245165944099426, -0.20005017518997192, -0.5494421124458313, 0.735406756401062, 0.03942805901169777, 0.09288685768842697, 0.11222632974386215, 0.4976453185081482, -0.5750865936279297, -0.24330109357833862, 0.0690249428153038, 0.19802361726760864, -0.6511300206184387, 0.09606482088565826, -0.5928659439086914, -0.21381038427352905, -0.8366931080818176, -0.12387514114379883, -0.17480400204658508, -0.059955958276987076, -0.15380117297172546, -0.10824555903673172, 0.3740214705467224, 0.416099488735199, -0.1703585386276245, 0.4461348354816437, -0.48777517676353455, -0.016384756192564964, 0.32822200655937195, 0.28399890661239624, -0.04593810439109802, -0.459932804107666, -0.004743336699903011, -0.048705004155635834, -0.6008935570716858, -0.8495432138442993, 0.5741791129112244, 0.17725862562656403, 0.3532862365245819, 0.6674356460571289, 0.031232625246047974, 0.392167866230011, -0.275532066822052, 0.6298574805259705, 0.08309175074100494, -0.9070968627929688, 0.6326180100440979, -0.30736956000328064, 0.07952316105365753, 0.5172551870346069, 0.7121539115905762, -0.4030528664588928, 0.007253772113472223, -0.8510183095932007, -0.5079314708709717, 0.6473051905632019, 0.34415650367736816, -0.10388614982366562, 0.20653212070465088, 0.3260423541069031, 0.24007247388362885, 0.3794289529323578, -1.0487271547317505, -0.22678864002227783, -0.6055384874343872, -0.2347322702407837, 0.003166180569678545, -0.09433026611804962, -0.09258642047643661, -0.7809876203536987, 0.8869972825050354, -0.21963071823120117, 0.7928668856620789, 0.27874886989593506, 0.31337326765060425, 0.01247458066791296, 0.0302735548466444, 0.5167697668075562, 0.6486244201660156, -0.7791683673858643, -0.24115249514579773, 0.2233864665031433, -0.5885175466537476, -0.07208642363548279, 0.19545778632164001, 0.16686619818210602, -0.03801862522959709, 0.22347357869148254, 0.8723231554031372, -0.1430233120918274, -0.40524956583976746, 0.43922457098960876, -0.06615391373634338, -0.3705313503742218, -0.8629154562950134, -0.05491512268781662, 0.2517736256122589, 0.20612166821956635, 0.13388484716415405, 0.10867509990930557, 0.07055871188640594, -0.6866360306739807, 0.03590225428342819, 0.24807044863700867, -0.3248380720615387, -0.3348362445831299, 0.6953542828559875, 0.24595950543880463, -0.06986460089683533, 0.892571747303009, 0.017985979095101357, -0.4913204610347748, 0.8063349723815918, 0.5071346759796143, 0.828640878200531, -0.33989307284355164, 0.14984913170337677, 0.5165061950683594, 0.016034873202443123, 0.12481227517127991, 0.5316141247749329, 0.14256806671619415, -0.9797868728637695, -0.33560529351234436, -0.7169101238250732, -0.5728188753128052, 0.4532965123653412, -0.6437462568283081, 0.42709875106811523, -0.779563307762146, -0.2967139184474945, 0.160774827003479, 0.29361864924430847, -0.6523087620735168, 0.35077103972435, 0.39218077063560486, 0.9297980070114136, -0.9320169687271118, 0.9080840349197388, 0.8432308435440063, -0.5816045999526978, -0.9234456419944763, 0.016565442085266113, -0.009553800337016582, -0.7725829482078552, 0.6367006301879883, 0.44951489567756653, 0.25256428122520447, 0.061592645943164825, -0.8355347514152527, -0.675014317035675, 1.0876985788345337, 0.20749236643314362, -0.280677855014801, -0.12937059998512268, -0.22758157551288605, 0.4512062966823578, -0.3197496831417084, 0.4807772636413574, 0.6368755102157593, 0.6928402185440063, 0.4664124846458435, -0.6356152892112732, 0.040683623403310776, 0.11010976880788803, 0.06291797757148743, -0.15141646564006805, -0.5635059475898743, 0.9788455367088318, -0.46845653653144836, 0.3153064250946045, 0.1931464523077011, 0.772418200969696, 0.31992268562316895, 0.20054443180561066, 0.25402700901031494, 0.5497045516967773, 0.8493487238883972, -0.1113838255405426, 0.8929755687713623, -0.3658182919025421, 0.5601653456687927, 1.0184344053268433, -0.27428698539733887, 0.8723157644271851, 0.3018709123134613, -0.350101500749588, 0.9243488907814026, 0.865938127040863, -0.41214290261268616, 0.6833739280700684, 0.02287818305194378, -0.1955128312110901, -0.2254863828420639, 0.1359037160873413, -0.32465746998786926, 0.5641496777534485, 0.4087342321872711, -0.5958477854728699, 0.10652817785739899, 0.13741810619831085, 0.049641408026218414, -0.3750322461128235, -0.19242022931575775, 0.47807982563972473, -0.15675793588161469, -0.6336604952812195, 0.2712830901145935, -0.04617014527320862, 0.7297064661979675, -0.7577953934669495, -0.11387906968593597, -0.06936106830835342, 0.5154848098754883, -0.3763560950756073, -0.9009371399879456, 0.422264963388443, -0.49611562490463257, -0.37573185563087463, -0.352274090051651, 1.0374723672866821, -0.27606016397476196, -0.36542990803718567, 0.29741647839546204, 0.290971964597702, 0.3503491282463074, -0.2954925000667572, -0.7320992946624756, -0.3812544643878937, 0.05038798600435257, -0.2551930546760559, 0.3310217261314392, 0.13355392217636108, 0.13735288381576538, 0.813214898109436, 0.6624036431312561, 0.012435938231647015, -0.1891416311264038, -0.19044142961502075, 0.7226030230522156, -0.728131890296936, -0.6390101909637451, -0.7738668322563171, 0.5911868810653687, -0.18368250131607056, -0.4570425748825073, 0.532326877117157, 0.2137182652950287, 0.6313676238059998, -0.4866093099117279, 0.942276120185852, -0.4208333492279053, 0.5754010081291199, -0.1482580155134201, 0.779828667640686, -0.31874746084213257, -0.3163830041885376, -0.14880335330963135, -0.77776038646698, 0.17582137882709503, 0.6670244932174683, -0.6989237666130066, 0.42194515466690063, 0.6364436745643616, 0.3775191903114319, 0.06404881924390793, 0.06827424466609955, 0.401461124420166, 0.2929174602031708, 0.18616220355033875, 0.623085618019104, 0.26774248480796814, -0.1083676815032959, 0.36482495069503784, -0.5669337511062622, -0.3500328063964844, -0.43772703409194946, -0.7978963851928711, -1.1328436136245728, -0.6909772157669067, -0.11179258674383163, -0.4712889492511749, -0.08108214288949966, 0.8584975600242615, 0.8809908032417297, -0.9123810529708862, 0.006618585903197527, -0.07509271055459976, 0.06953299045562744, -0.37160953879356384, -0.33280566334724426, 0.2601817846298218, 0.08672887086868286, -0.7452601194381714, -0.09117447584867477, -0.2550518214702606, 0.10136686265468597, -0.5505374670028687, 0.05898899957537651, -0.26290568709373474, -0.02167769894003868, 0.585862934589386, 0.3646904230117798, -0.7409265637397766, -0.6095733642578125, -0.12375500053167343, 0.011125699616968632, -0.12870094180107117, 0.2667485475540161, -0.695191502571106, 0.2778182625770569, 0.3264176845550537, 0.4221835136413574, 0.4497866630554199, -0.03997373580932617, 0.4956827461719513, -0.7499936819076538, -0.13280591368675232, 0.3458046615123749, 0.46501556038856506, 0.1926157921552658, -0.8712061643600464, 0.43586596846580505, 0.3326246440410614, -0.7600348591804504, -0.4065600633621216, 0.056142229586839676, -1.0914151668548584, -0.31103721261024475, 0.9876319766044617, -0.37404415011405945, -0.30190765857696533, -0.11709656566381454, -0.24145148694515228, 0.1787131428718567, -0.4834684133529663, 0.8211982250213623, 0.9150639772415161, -0.6717134714126587, -0.11248325556516647, -0.5224874019622803, 0.4118184745311737, 0.34425589442253113, -0.7334421873092651, -0.06830456852912903, 0.34287455677986145, 0.6890060901641846, 0.2388572096824646, 0.33728426694869995, 0.13806267082691193, 0.22713348269462585, -0.07996626943349838, 0.6073747277259827, -0.06049514561891556, -0.07616621255874634, -0.19368994235992432, -0.136245459318161, -0.19943119585514069, -0.2952280342578888 ]
DeepPavlov/rubert-base-cased-sentence
DeepPavlov
"2021-05-18T18:18:43Z"
20,589
16
transformers
[ "transformers", "pytorch", "jax", "bert", "feature-extraction", "ru", "arxiv:1508.05326", "arxiv:1809.05053", "arxiv:1908.10084", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2022-03-02T23:29:04Z"
--- language: - ru --- # rubert-base-cased-sentence Sentence RuBERT \(Russian, cased, 12-layer, 768-hidden, 12-heads, 180M parameters\) is a representation‑based sentence encoder for Russian. It is initialized with RuBERT and fine‑tuned on SNLI\[1\] google-translated to russian and on russian part of XNLI dev set\[2\]. Sentence representations are mean pooled token embeddings in the same manner as in Sentence‑BERT\[3\]. \[1\]: S. R. Bowman, G. Angeli, C. Potts, and C. D. Manning. \(2015\) A large annotated corpus for learning natural language inference. arXiv preprint [arXiv:1508.05326](https://arxiv.org/abs/1508.05326) \[2\]: Williams A., Bowman S. \(2018\) XNLI: Evaluating Cross-lingual Sentence Representations. arXiv preprint [arXiv:1809.05053](https://arxiv.org/abs/1809.05053) \[3\]: N. Reimers, I. Gurevych \(2019\) Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. arXiv preprint [arXiv:1908.10084](https://arxiv.org/abs/1908.10084)
[ -0.04488581418991089, -0.9532947540283203, 0.29327163100242615, 0.22330260276794434, -0.2297997772693634, 0.056343961507081985, -0.5611252188682556, 0.07093722373247147, 0.3165218234062195, 0.35451120138168335, -0.507142961025238, -0.36907148361206055, -0.5022338032722473, 0.07092559337615967, -0.2997097671031952, 1.6762491464614868, -0.00373703776858747, 0.5133106708526611, -0.145219624042511, 0.12906192243099213, -0.25551608204841614, -0.4283941686153412, -0.08966103196144104, -0.38797345757484436, 0.4162740409374237, 0.5677963495254517, 0.946985125541687, 0.4414774775505066, 0.5626436471939087, 0.32203006744384766, -0.16271404922008514, -0.367533802986145, -0.395272433757782, 0.1259704828262329, -0.07273255288600922, -0.7329046130180359, -0.2774396538734436, -0.0355265773832798, 0.840296745300293, 0.6561866998672485, -0.49713489413261414, -0.0874800831079483, -0.4213230013847351, 0.7569688558578491, -0.5366280674934387, -0.10911978781223297, -0.6294627785682678, 0.4059434235095978, -0.34739142656326294, -0.03438339754939079, -0.7326246500015259, -0.20101742446422577, 0.14325681328773499, -0.7336360216140747, 0.15984505414962769, 0.4273979663848877, 1.3171943426132202, -0.20039372146129608, -0.34728139638900757, -0.46046775579452515, -0.2815321683883667, 1.0060032606124878, -0.5857922434806824, 0.28481581807136536, 0.24320395290851593, 0.45338454842567444, -0.4707794785499573, -0.8332867622375488, -0.8278411030769348, -0.43135783076286316, -0.5438862442970276, 0.09795854985713959, -0.1270475834608078, 0.06486952304840088, 0.2764763832092285, 0.5868849158287048, -1.0939369201660156, -0.34891608357429504, -0.3548636734485626, -0.09494803845882416, 0.3241106867790222, -0.028978193178772926, 0.21163462102413177, -0.5783880949020386, -0.6726791262626648, -0.3117539882659912, -0.496194064617157, 0.008139373734593391, 0.5146099328994751, 0.18209421634674072, -0.2203335165977478, 0.8634931445121765, -0.23783516883850098, 0.5643900036811829, 0.08809511363506317, 0.1173822283744812, 0.5522254109382629, -0.15471862256526947, -0.35902139544487, -0.2306334227323532, 1.0028856992721558, -0.05042572692036629, 0.45002245903015137, -0.3225264549255371, -0.24184240400791168, 0.1102934330701828, 0.29500317573547363, -0.4448925852775574, -0.4696590006351471, 0.24786613881587982, -0.33977848291397095, -0.3093908429145813, 0.3890663683414459, -0.9281197190284729, -0.12857306003570557, 0.06095806881785393, 0.48921334743499756, -0.6118376851081848, 0.09743043035268784, 0.3146451711654663, -0.24762405455112457, 0.5904297828674316, 0.13972152769565582, -0.7351986765861511, 0.6429647207260132, 0.863499641418457, 0.5152441263198853, -0.1565619707107544, -0.29610225558280945, -0.724907636642456, -0.23140577971935272, -0.13196732103824615, 0.8729999661445618, -0.6047922372817993, -0.1261359006166458, 0.2927820086479187, 0.12932467460632324, 0.11493334174156189, -0.3186667859554291, 0.7769668102264404, -0.6835988759994507, 0.9052695035934448, 0.12370074540376663, -0.5854036808013916, -0.10801494121551514, 0.43302375078201294, -0.518807590007782, 1.2761296033859253, 0.13524369895458221, -0.7844807505607605, 0.4918944835662842, -0.7711038589477539, -0.6515403389930725, 0.0907529965043068, -0.019020790234208107, -0.7511796355247498, -0.05428545922040939, 0.15133866667747498, 0.565525472164154, -0.2706931233406067, 0.46121537685394287, 0.11496984958648682, 0.011750472709536552, 0.7621800303459167, 0.11553527414798737, 1.0183117389678955, 0.28324785828590393, -0.27515169978141785, 0.25058117508888245, -0.8171918392181396, 0.1973317563533783, 0.11067304760217667, -0.4018922448158264, -0.18515752255916595, -0.17831872403621674, 0.5008087754249573, -0.01292644813656807, 0.09212245792150497, -0.7284469604492188, 0.27713218331336975, -0.37389591336250305, 0.44682633876800537, 0.7044858336448669, -0.1410549283027649, 0.7657961249351501, -0.3379311263561249, 0.6118390560150146, 0.17037799954414368, 0.03821198642253876, -0.39919179677963257, -0.5238714814186096, -1.1427443027496338, -0.1752394437789917, 0.5473460555076599, 0.8443787693977356, -1.0335320234298706, 0.5189287066459656, -0.5347844958305359, -0.2770935595035553, -0.44293516874313354, -0.032868169248104095, 0.5905049443244934, 0.058310143649578094, 0.26359158754348755, -0.0029378251638263464, -0.6342682242393494, -1.1388124227523804, -0.4069196879863739, -0.006691422313451767, 0.2799375057220459, -0.06846306473016739, 0.9969010949134827, -0.0009040000732056797, 0.834848165512085, -0.46206191182136536, -0.31071367859840393, -0.6069175004959106, 0.2952934205532074, 0.4765198528766632, 0.7258166670799255, 0.4364171624183655, -0.8581239581108093, -1.0566859245300293, 0.29972654581069946, -0.40331003069877625, 0.05419863015413284, -0.44044458866119385, -0.40017127990722656, 0.48535335063934326, 0.19339270889759064, -0.8870739340782166, 0.5598949790000916, 0.5679615139961243, -0.8421473503112793, 0.43089407682418823, -0.13168376684188843, 0.21775852143764496, -1.241899013519287, 0.08730039745569229, -0.07254073768854141, -0.5578678846359253, -0.8803948163986206, 0.30145689845085144, 0.17308329045772552, -0.07293478399515152, -0.42961403727531433, 0.31478020548820496, -0.7943527698516846, 0.08345600217580795, 0.12259557843208313, 0.3769964873790741, -0.02309601753950119, 0.7977803349494934, -0.17025601863861084, 0.7881230115890503, 0.7123935222625732, -0.23764552175998688, 0.40322259068489075, 0.42127373814582825, -0.5922996401786804, 0.6357771158218384, -0.6510497331619263, 0.09841610491275787, 0.03482826054096222, 0.18744303286075592, -1.0051064491271973, -0.0871252566576004, 0.5448935627937317, -0.660734236240387, 0.34547966718673706, 0.05555294454097748, -0.7318457365036011, -0.06410638242959976, -0.5457226634025574, 0.34785377979278564, 0.7172068357467651, -0.3462733328342438, 0.48546552658081055, 0.3575184941291809, -0.010224691592156887, -0.8532500267028809, -1.152356505393982, 0.2985962927341461, -0.023313293233513832, -0.6976281404495239, 0.4296693205833435, -0.03062833845615387, -0.32463887333869934, 0.18085269629955292, 0.27683255076408386, -0.23713929951190948, -0.39007923007011414, 0.004178889561444521, 0.07751915603876114, -0.34064149856567383, 0.18308396637439728, -0.07685483992099762, -0.08520355075597763, -0.15462636947631836, 0.23687806725502014, 0.6003429889678955, -0.256483793258667, -0.03252614662051201, -0.39791417121887207, 0.5677231550216675, 0.3950054943561554, -0.06690437346696854, 0.7641424536705017, 0.650147020816803, -0.1534564346075058, -0.4568820595741272, -0.6093294620513916, -0.09169892221689224, -0.4927770495414734, 0.2409934401512146, -0.3844231367111206, -0.9956174492835999, 0.7466597557067871, 0.3105725347995758, -0.38794079422950745, 0.4353979527950287, 0.5625672340393066, 0.08011064678430557, 0.3629724383354187, 0.509435772895813, -0.07749641686677933, 0.5829002261161804, -0.4108571708202362, 0.21514621376991272, -0.7758715748786926, -0.28117844462394714, -0.6261779069900513, -0.17657913267612457, -0.6858367323875427, -0.638239324092865, 0.22061428427696228, -0.3071405589580536, -0.1554340422153473, 0.5339226722717285, -0.42561227083206177, 0.5514559745788574, 0.6891456842422485, 0.06736322492361069, 0.0787356048822403, 0.12953515350818634, -0.23427340388298035, -0.19965305924415588, -0.9446332454681396, -0.3758774995803833, 0.8643956184387207, 0.23907215893268585, 0.9296969771385193, 0.3338944911956787, 0.4905474781990051, 0.5168351531028748, -0.025859365239739418, -0.8949003219604492, 0.8506600260734558, -0.037850625813007355, -1.0062109231948853, -0.22938421368598938, -0.38846555352211, -1.2838984727859497, 0.32614004611968994, -0.5127003788948059, -0.7269478440284729, 0.11478818953037262, -0.2423945665359497, 0.04072280600667, 0.16775691509246826, -0.8208543062210083, 1.017448902130127, -0.021215487271547318, -0.25235268473625183, -0.4054366648197174, -0.8308382034301758, 0.17851953208446503, 0.5606759190559387, 0.036250531673431396, 0.019446944817900658, 0.040228407829999924, 0.7973556518554688, -0.44953951239585876, 0.7946568131446838, -0.07784590125083923, 0.2393546849489212, 0.28410008549690247, 0.21713770925998688, 0.5690543055534363, 0.15901662409305573, 0.021125802770256996, -0.013285474851727486, -0.15736377239227295, -0.5115996599197388, -0.8171668648719788, 0.6934732794761658, -0.7342365384101868, -0.6583539843559265, -1.0474963188171387, -0.48599109053611755, 0.2530205249786377, 0.2692725956439972, -0.08108191937208176, 0.3841719329357147, -0.43245190382003784, 0.49506908655166626, 0.4565815329551697, -0.2848895490169525, 0.5614393949508667, 0.49303120374679565, -0.239076167345047, -0.7631166577339172, 0.68172287940979, -0.18450812995433807, 0.11422927677631378, 0.9317105412483215, 0.17956046760082245, 0.15181964635849, -0.20804499089717865, -0.41194722056388855, 0.47941991686820984, -0.9345720410346985, -0.3954308032989502, -0.5893265604972839, -0.14262926578521729, -0.33876845240592957, -0.3225853741168976, -0.05633959919214249, -0.7373915910720825, -0.3595130741596222, -0.06992485374212265, 0.5968942046165466, 0.6923370957374573, -0.02844160795211792, 0.5565780997276306, -0.4808720052242279, 0.4111121892929077, 0.013742231763899326, 0.32972514629364014, -0.48112520575523376, -0.6774317622184753, -0.5439457893371582, -0.17077457904815674, -0.1961272954940796, -0.8541443347930908, 0.6043299436569214, 0.41814616322517395, 0.8066458106040955, 0.17244720458984375, 0.11234408617019653, 0.606562077999115, -0.7677503228187561, 1.1522125005722046, 0.20551809668540955, -1.2578785419464111, 0.6923158764839172, -0.27316969633102417, 0.3015161454677582, 0.38457101583480835, 0.13889947533607483, -0.8602009415626526, -0.3615453839302063, -0.700822114944458, -0.7138740420341492, 0.9749700427055359, 0.3636433482170105, 0.35511577129364014, -0.2482907474040985, 0.343794047832489, 0.31483370065689087, 0.11444814503192902, -1.316061019897461, -0.4799308776855469, -0.22690661251544952, -0.32209113240242004, -0.018597066402435303, -0.6301468014717102, -0.33850449323654175, -0.19516536593437195, 0.7959197163581848, 0.10317154228687286, 0.7150213122367859, 0.39900490641593933, -0.5060839056968689, -0.15229235589504242, 0.5590579509735107, 0.9967151880264282, 0.3288652002811432, -0.013104104436933994, 0.1993728131055832, 0.18107293546199799, -0.5369734168052673, -0.04766691476106644, -0.09535134583711624, 0.024241330102086067, 0.19118022918701172, 0.46729928255081177, 0.9744566082954407, 0.15737392008304596, -0.7259805202484131, 0.956796407699585, 0.08504008501768112, -0.28229188919067383, -0.7140674591064453, -0.23121079802513123, -0.5327084064483643, 0.2223009169101715, 0.524462103843689, -0.042177703231573105, 0.17150026559829712, -0.6351145505905151, 0.3311312198638916, 0.5122837424278259, -0.4035584032535553, -0.416782408952713, 0.3032586872577667, 0.08499731868505478, -0.4120122790336609, 0.42673569917678833, -0.35641080141067505, -0.8125579953193665, 0.3786819279193878, 0.46587973833084106, 1.0668123960494995, 0.1244688630104065, 0.5317120552062988, 0.25061631202697754, 0.4920061528682709, 0.1097332015633583, 0.4982931613922119, 0.03941532224416733, -0.893362820148468, -0.5380632281303406, -0.25760647654533386, -0.3747338056564331, -0.1497417837381363, -0.8254733681678772, 0.3120023310184479, -0.3998720943927765, 0.030986864119768143, -0.21395616233348846, -0.07427023351192474, -0.3559313416481018, 0.09708791971206665, -0.17893175780773163, 0.8555447459220886, -0.7933369278907776, 0.8774003982543945, 1.0856590270996094, -0.20537148416042328, -0.3108331561088562, -0.09646017104387283, -0.27089497447013855, -0.8183785080909729, 0.9793028235435486, -0.1664257049560547, 0.27530521154403687, -0.4197044372558594, -0.6199464201927185, -0.8294588327407837, 1.0343726873397827, 0.20639942586421967, -0.11076910048723221, 0.4963979721069336, 0.31204795837402344, 0.7301896810531616, -0.48289862275123596, 0.1786755621433258, 0.22802063822746277, 0.5891595482826233, -0.1870366632938385, -0.9362075924873352, 0.14339764416217804, -0.6027043461799622, 0.16461297869682312, 0.3202192783355713, -0.6260648965835571, 1.0711820125579834, -0.11986901611089706, -0.31983572244644165, 0.25694704055786133, 0.6744380593299866, -0.05126349627971649, -0.05026868358254433, 0.3749260902404785, 0.9047414660453796, 0.44307124614715576, -0.2960311770439148, 1.1156487464904785, -0.29134804010391235, 0.6278714537620544, 0.8640925884246826, 0.06680511683225632, 1.0682837963104248, 0.8245799541473389, -0.41273242235183716, 1.2076292037963867, 0.32543912529945374, -0.02306598424911499, 0.8388739824295044, 0.3636836111545563, -0.05959082767367363, -0.08388500660657883, 0.336829274892807, -0.18004193902015686, 0.3957695960998535, 0.3086005449295044, -0.41824325919151306, -0.011847659945487976, 0.17432500422000885, 0.3685082793235779, 0.22691193222999573, -0.004043103661388159, 0.6918128132820129, -0.21087829768657684, -0.7452475428581238, 0.47011104226112366, -0.04015246033668518, 0.6367926001548767, -0.541631281375885, -0.18377985060214996, -0.12545610964298248, 0.24069468677043915, -0.1262376457452774, -1.013985514640808, 0.11077133566141129, -0.07577776163816452, -0.24326783418655396, -0.41944634914398193, 0.5907159447669983, -0.7150560021400452, -0.6197937726974487, -0.01726541481912136, 0.4347962737083435, 0.13218417763710022, 0.5187652707099915, -0.8095132112503052, -0.08196023106575012, 0.05625848472118378, -0.6792991161346436, 0.1655960977077484, 0.8992834687232971, 0.18321773409843445, 0.8234286904335022, 0.4979614019393921, 0.032593876123428345, 0.1983577311038971, -0.06472290307283401, 1.1482455730438232, -0.9088161587715149, -0.6400346755981445, -0.7110876441001892, 1.0750764608383179, -0.13796819746494293, -0.6158352494239807, 0.7362022995948792, 0.6546959280967712, 0.7584983110427856, -0.5298568606376648, 0.5854988694190979, -0.41991865634918213, 0.5357287526130676, -0.7544312477111816, 0.6155064105987549, -0.5080529451370239, -0.03392401710152626, -0.11346565186977386, -0.8380348682403564, -0.8930574655532837, 1.1062484979629517, -0.3831324279308319, -0.003088530618697405, 1.2917324304580688, 1.029382586479187, -0.03121349774301052, -0.3469368517398834, 0.4840996563434601, 0.3045262396335602, 0.08182957768440247, 0.40565747022628784, 0.6991307735443115, -0.7675465941429138, 0.78519207239151, -0.26434940099716187, -0.03348708897829056, -0.3901478946208954, -0.9266142845153809, -1.247706413269043, -0.7369284629821777, -0.508083164691925, -0.33740144968032837, 0.2344328612089157, 0.8611652255058289, 0.5502243041992188, -1.2059714794158936, -0.5123485922813416, -0.36663559079170227, 0.1782578080892563, -0.10662717372179031, -0.312242716550827, 0.31381815671920776, -0.5524861812591553, -0.6496289968490601, 0.1813950538635254, 0.14366883039474487, -0.21671777963638306, -0.2836288511753082, -0.1909584254026413, -0.6916360855102539, -0.10660897195339203, 0.453083872795105, 0.01299967709928751, -1.0531370639801025, -0.5655744671821594, 0.2215740829706192, -0.26707521080970764, 0.3627099394798279, 0.9023405909538269, -0.7584619522094727, 0.5058294534683228, 0.626122772693634, 0.32485681772232056, 0.5509565472602844, -0.29141128063201904, 0.7326595783233643, -0.8984872698783875, 0.48823636770248413, 0.26209425926208496, 0.6548835039138794, 0.45615115761756897, -0.31683725118637085, 0.6074508428573608, 0.2910047173500061, -0.8126161694526672, -0.8555958271026611, 0.13851776719093323, -1.5386433601379395, -0.10291377454996109, 1.4931447505950928, -0.33262157440185547, -0.41861262917518616, -0.012177040800452232, -0.5166895985603333, -0.04604169353842735, -0.7577312588691711, 0.6186407208442688, 0.8254138827323914, 0.20898471772670746, -0.6924577355384827, -0.3710416257381439, 0.44878989458084106, 0.7067564725875854, -0.5793998837471008, -0.1435631960630417, 0.25418341159820557, 0.010619445703923702, 0.4526120126247406, 0.19712039828300476, -0.027995143085718155, 0.37409988045692444, 0.10348667204380035, 0.5877876281738281, 0.2866901755332947, -0.029413854703307152, -0.30303987860679626, 0.11544636636972427, -0.1990022212266922, -0.18441130220890045 ]
facebook/wav2vec2-conformer-rel-pos-large
facebook
"2022-12-07T14:01:31Z"
20,576
7
transformers
[ "transformers", "pytorch", "wav2vec2-conformer", "pretraining", "speech", "en", "dataset:librispeech_asr", "arxiv:2010.05171", "license:apache-2.0", "endpoints_compatible", "region:us" ]
null
"2022-04-17T15:54:03Z"
--- language: en datasets: - librispeech_asr tags: - speech license: apache-2.0 --- # Wav2Vec2-Conformer-Large with Relative Position Embeddings Wav2Vec2 Conformer with relative position embeddings, pretrained on 960 hours of Librispeech on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz. **Note**: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model **speech recognition**, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more in-detail explanation of how to fine-tune the model. **Paper**: [fairseq S2T: Fast Speech-to-Text Modeling with fairseq](https://arxiv.org/abs/2010.05171) **Authors**: Changhan Wang, Yun Tang, Xutai Ma, Anne Wu, Sravya Popuri, Dmytro Okhonko, Juan Pino The results of Wav2Vec2-Conformer can be found in Table 3 and Table 4 of the [official paper](https://arxiv.org/abs/2010.05171). The original model can be found under https://github.com/pytorch/fairseq/tree/master/examples/wav2vec#wav2vec-20. # Usage See [this notebook](https://colab.research.google.com/drive/1FjTsqbYKphl9kL-eILgUc-bl4zVThL8F?usp=sharing) for more information on how to fine-tune the model.
[ 0.03112194500863552, -0.4234177768230438, 0.32364732027053833, 0.04700655862689018, -0.21613706648349762, -0.5054827928543091, -0.23557883501052856, -0.7267751693725586, -0.3176742196083069, 0.26778504252433777, -0.5029648542404175, -0.4312160313129425, -0.791219174861908, -0.42493119835853577, -0.2670741379261017, 0.7887861728668213, 0.037921082228422165, 0.24374477565288544, 0.0707935020327568, -0.11368133127689362, -0.5405552983283997, -0.3255101144313812, -0.6917206048965454, -0.21604178845882416, 0.09479556977748871, 0.3959429860115051, 0.3241316080093384, 0.5436257123947144, 0.1446223258972168, 0.252497136592865, -0.5631598234176636, -0.2025451362133026, -0.733712375164032, 0.1358441263437271, -0.2170293927192688, -0.5589116811752319, -0.4430653750896454, 0.11171232908964157, 1.002365231513977, 0.03863724321126938, -0.3521585762500763, 0.4904618263244629, 0.06846007704734802, 0.46555861830711365, -0.3677463233470917, 0.32928866147994995, -0.7635511755943298, -0.1923956274986267, -0.3050503730773926, 0.3477698266506195, -0.44418829679489136, -0.2685006558895111, 0.1327524036169052, -0.5118956565856934, 0.1481969803571701, -0.004612098913639784, 1.0008734464645386, 0.25286737084388733, -0.6798162460327148, -0.20231159031391144, -0.8004632592201233, 0.9318103790283203, -0.6293102502822876, 0.9663715958595276, 0.481387734413147, 0.3422776758670807, -0.22375273704528809, -1.2033498287200928, -0.5221026539802551, 0.06921949237585068, 0.5044430494308472, 0.3217715620994568, -0.2675236761569977, -0.09538117796182632, 0.42522311210632324, 0.14199298620224, -0.5923238396644592, 0.1845620572566986, -0.5599960088729858, -0.5186412334442139, 0.544352114200592, -0.1355718970298767, -0.11636330932378769, 0.11893168091773987, -0.3271130323410034, -0.33577004075050354, -0.44858136773109436, 0.5112748742103577, 0.35308554768562317, 0.04313834384083748, -0.33734509348869324, 0.6087937355041504, 0.0638572946190834, 0.654872477054596, 0.05265580490231514, -0.3639422357082367, 0.5346066355705261, -0.36540451645851135, 0.04178089648485184, 0.1717272698879242, 0.6985479593276978, 0.4086851477622986, 0.20922331511974335, 0.26873406767845154, -0.3996465504169464, -0.13822878897190094, -0.055215612053871155, -1.1675289869308472, -0.3261350989341736, 0.2914307415485382, -0.6933124661445618, 0.03529897332191467, 0.20269666612148285, -0.3229121267795563, -0.03732585906982422, -0.6387592554092407, 0.5458015203475952, -0.2983359694480896, -0.2028924822807312, -0.022868962958455086, -0.3897804915904999, 0.6048973202705383, 0.17142660915851593, -0.8155925273895264, 0.3254498541355133, 0.7003071904182434, 0.8609762191772461, -0.11368472129106522, 0.07896909862756729, -0.6712130904197693, 0.25668421387672424, -0.1445346623659134, 0.6732503175735474, -0.2707522511482239, -0.5211660861968994, 0.016516637057065964, 0.2711013853549957, 0.2940579950809479, -0.47276824712753296, 0.9284640550613403, -0.41790080070495605, 0.22149132192134857, -0.2166633903980255, -0.7299163937568665, -0.0820913091301918, -0.22506749629974365, -0.5501224398612976, 1.2187590599060059, 0.042778726667165756, -0.6642573475837708, 0.20331305265426636, -0.22373199462890625, -0.3579180836677551, -0.3963991701602936, -0.14792348444461823, -0.6314094066619873, 0.03933803364634514, -0.11040354520082474, 0.25295770168304443, -0.20335504412651062, -0.046454671770334244, -0.028993166983127594, -0.4276372194290161, 0.29537853598594666, -0.4695480465888977, 0.7923951148986816, 0.29181164503097534, -0.2704686224460602, 0.23936238884925842, -0.9831831455230713, 0.0945492684841156, 0.11560481041669846, -0.5776727795600891, 0.06275974214076996, 0.020079152658581734, 0.8045762181282043, 0.3098064363002777, 0.24755574762821198, -0.6423438191413879, -0.06355486810207367, -0.7001644372940063, 0.7306320667266846, 0.6264960169792175, 0.006931053474545479, 0.3191848397254944, -0.4286884367465973, 0.04537138715386391, -0.2652035355567932, 0.16084513068199158, 0.1938091665506363, -0.8450109362602234, -0.35078805685043335, -0.23669832944869995, 0.3846668303012848, 0.6802647709846497, -0.03706612437963486, 0.6204457879066467, -0.12427698075771332, -0.7437411546707153, -0.668239414691925, -0.22117939591407776, 0.2779839038848877, 0.346206396818161, 0.46830302476882935, -0.0939917117357254, -0.5172074437141418, -0.8293001651763916, -0.17529824376106262, -0.14610010385513306, -0.30792516469955444, 0.22415900230407715, 0.35137858986854553, -0.35033172369003296, 0.7682282328605652, -0.3468703031539917, -0.41754594445228577, 0.1866854876279831, -0.1296893060207367, 0.250236451625824, 0.6739363670349121, 0.409286767244339, -0.7334500551223755, -0.278322696685791, -0.3902064859867096, 0.0060149128548800945, 0.045691851526498795, 0.21595601737499237, -0.07229287922382355, 0.21075458824634552, 0.6521307229995728, -0.2686985433101654, 0.3663139343261719, 0.6936572790145874, -0.38886570930480957, 0.43496838212013245, -0.13363729417324066, -0.010411549359560013, -1.340132713317871, 0.008639052510261536, 0.0087427394464612, -0.5604552626609802, -0.5412903428077698, -0.4460608661174774, 0.19938667118549347, 0.008929919451475143, -0.642571210861206, 0.4728502035140991, -0.3863655626773834, 0.02664964273571968, -0.4346652030944824, 0.301760733127594, -0.14632363617420197, 0.09895473718643188, 0.07591845840215683, 0.8370873928070068, 0.48445141315460205, -0.6281344294548035, 0.2673743665218353, 0.667982280254364, -0.5469597578048706, 0.20633815228939056, -1.089577317237854, 0.38107219338417053, 0.09843365848064423, 0.4958144724369049, -1.237355351448059, -0.11796833574771881, 0.03462827205657959, -0.7813220620155334, 0.5397855043411255, -0.35628703236579895, -0.4640820026397705, -0.2211366593837738, -0.3130214214324951, 0.7037556171417236, 0.9270278811454773, -0.6009409427642822, 0.48636120557785034, 0.6841465830802917, -0.06216583773493767, -0.23590150475502014, -1.0898973941802979, -0.3903386890888214, 0.05784359201788902, -0.7448742389678955, 0.7136574387550354, -0.14309567213058472, 0.13057371973991394, -0.41942593455314636, -0.29911157488822937, 0.1242792159318924, -0.144705131649971, 0.6394522190093994, 0.10115832090377808, -0.10565992444753647, 0.1476144939661026, 0.13795365393161774, -0.3108358681201935, 0.059322647750377655, -0.5493025779724121, 0.4231927990913391, -0.03682449087500572, -0.14596085250377655, -1.1484220027923584, 0.0782623216509819, 0.5266359448432922, -0.329276442527771, 0.5118321776390076, 1.0168778896331787, -0.6036520004272461, 0.10601961612701416, -0.6160524487495422, -0.2840422987937927, -0.4962502121925354, 0.755190908908844, -0.45586785674095154, -0.9315030574798584, 0.3801692724227905, -0.10346292704343796, -0.06274829804897308, 0.7433630228042603, 0.8836705088615417, -0.039435502141714096, 0.9185305237770081, 0.4818459153175354, -0.013647183775901794, 0.7635961174964905, -0.29819512367248535, -0.04633960500359535, -0.8880263566970825, -0.5995994806289673, -0.8479446172714233, -0.22320792078971863, -0.754347026348114, -0.7351647615432739, 0.1574893742799759, 0.21225374937057495, -0.4440907835960388, 0.29103797674179077, -0.665668785572052, 0.31020915508270264, 0.6475197076797485, -0.04740191251039505, -0.11665607988834381, 0.09278374165296555, 0.03082429990172386, -0.19709521532058716, -0.4039742648601532, -0.43600666522979736, 0.9428043961524963, 0.8674424290657043, 0.5920504927635193, 0.3569859564304352, 0.46682098507881165, -0.11230288445949554, -0.41776415705680847, -1.1116327047348022, 0.16700449585914612, -0.21051549911499023, -0.6309552192687988, -0.25443658232688904, 0.02936793677508831, -0.7530518174171448, -0.13286948204040527, -0.39228931069374084, -0.9491361379623413, 0.340170294046402, 0.09755481779575348, 0.024895187467336655, 0.012796260416507721, -0.5162979364395142, 0.7577928304672241, 0.26179155707359314, -0.2469245344400406, -0.29864436388015747, -0.7137218713760376, 0.07083913683891296, 0.09983241558074951, 0.22280330955982208, -0.10700983554124832, -0.009622742421925068, 1.175279140472412, -0.39687344431877136, 0.5370213985443115, -0.4915156066417694, -0.35213711857795715, 0.6663540005683899, -0.15715496242046356, 0.9780256748199463, 0.19584548473358154, -0.2781268358230591, 0.2813349664211273, 0.45862188935279846, -0.2234136164188385, -0.1515001803636551, 0.7121254205703735, -1.0123941898345947, -0.1984839290380478, -0.2455788105726242, -0.352327436208725, -0.27689236402511597, -0.000006688238499918953, 0.6279279589653015, 0.6423535943031311, -0.20002782344818115, 0.3954803943634033, 0.6945953965187073, 0.08605006337165833, 0.2987828254699707, 0.5572159886360168, 0.03763978183269501, -0.5514770746231079, 0.7908022999763489, 0.15957799553871155, 0.18509170413017273, 0.2432619035243988, 0.29485076665878296, -0.7045708894729614, -0.6962069272994995, -0.07319766283035278, 0.28049036860466003, -0.5396993160247803, -0.16167663037776947, -0.5678227543830872, -0.28951144218444824, -0.7976450324058533, 0.28171953558921814, -0.8306150436401367, -0.6806285381317139, -0.421790212392807, -0.0088435597717762, 0.5891311168670654, 0.7116588354110718, -0.2668207287788391, 0.39629843831062317, -0.6958377957344055, 0.4296262562274933, 0.24682551622390747, 0.33446258306503296, -0.14366532862186432, -1.3283628225326538, -0.191104918718338, 0.1973186880350113, -0.19693878293037415, -0.8281748294830322, -0.1263066977262497, 0.24630361795425415, 0.5829669237136841, 0.45191991329193115, -0.11736960709095001, 0.6072250604629517, -0.7038097977638245, 0.9005996584892273, 0.35466334223747253, -1.0691591501235962, 0.8488700985908508, -0.203249990940094, 0.22999005019664764, 0.5753377676010132, 0.14146901667118073, -0.5343201756477356, -0.2179819941520691, -0.3643227815628052, -1.0318056344985962, 0.848677396774292, 0.3593771755695343, 0.13442149758338928, 0.2160472869873047, 0.5878311395645142, -0.06865012645721436, -0.27763137221336365, -0.6227337121963501, -0.5011164546012878, -0.3895826041698456, -0.3465190529823303, -0.07115150988101959, -0.7674412131309509, -0.03144488483667374, -0.51450514793396, 0.9847380518913269, 0.30575817823410034, 0.44653844833374023, 0.3802173137664795, 0.04226106032729149, -0.022409390658140182, 0.10560192912817001, 0.6450542211532593, 0.23113995790481567, -0.31707829236984253, -0.10232175886631012, 0.27021777629852295, -0.7146787047386169, 0.12116315960884094, 0.3264915347099304, -0.08642055839300156, 0.007434946950525045, 0.24665382504463196, 0.9564310312271118, -0.052710309624671936, -0.4093925952911377, 0.8295287489891052, -0.17393504083156586, -0.49879032373428345, -0.5236855745315552, 0.14023031294345856, 0.2763867676258087, 0.5164667367935181, 0.1876065880060196, -0.012152657844126225, 0.3534697890281677, -0.33728209137916565, 0.3312514126300812, 0.25082212686538696, -0.9547498822212219, -0.2890879809856415, 1.0941509008407593, 0.1488562375307083, -0.43827903270721436, 0.546988844871521, -0.21056939661502838, -0.21330006420612335, 0.4803915321826935, 0.9189968109130859, 0.6971957087516785, -0.4852808117866516, -0.37773609161376953, 0.7463770508766174, 0.12789687514305115, -0.4385194480419159, 0.4744636118412018, 0.004981013014912605, -0.42030754685401917, -0.28118598461151123, -0.5155153870582581, -0.04718116670846939, 0.19845867156982422, -0.7936135530471802, 0.531917154788971, -0.23428839445114136, -0.4365200102329254, 0.05198133364319801, 0.03135627880692482, -0.6437295079231262, 0.1300496608018875, 0.2973094880580902, 1.1062147617340088, -0.6605493426322937, 1.1695880889892578, 0.5709147453308105, -0.11874653398990631, -1.1019618511199951, 0.15203581750392914, 0.15729285776615143, -0.5947669148445129, 0.3913670778274536, 0.27085450291633606, -0.23969611525535583, 0.23745225369930267, -0.5859894752502441, -1.033870816230774, 1.4703174829483032, 0.08417199552059174, -1.2810635566711426, 0.21046888828277588, -0.24470354616641998, 0.272535502910614, -0.03993481025099754, 0.15082983672618866, 0.5276986956596375, 0.4881388545036316, 0.30066579580307007, -1.1002720594406128, 0.07915569841861725, 0.019238585606217384, 0.1697712540626526, -0.06784611940383911, -0.7782576680183411, 0.5428075194358826, -0.34139928221702576, -0.1461697518825531, 0.4339355528354645, 0.9910815358161926, 0.3165525794029236, 0.26690685749053955, 0.45723333954811096, 0.3166694641113281, 1.0308215618133545, -0.04141056537628174, 0.6051123738288879, -0.30383044481277466, 0.4810541272163391, 1.3518682718276978, -0.022929897531867027, 1.2151134014129639, 0.48041486740112305, -0.3378818929195404, 0.3562225103378296, 0.5131937861442566, -0.313058465719223, 0.7298436164855957, 0.38796254992485046, -0.06511487066745758, -0.0705864280462265, -0.03156507760286331, -0.8375042676925659, 0.6762140393257141, 0.3344327509403229, -0.2763163447380066, 0.39356669783592224, -0.06234915181994438, -0.19525320827960968, -0.03297068923711777, -0.18175631761550903, 0.8582882881164551, 0.14981625974178314, -0.09753414243459702, 0.5621390342712402, 0.4482665956020355, 0.6749594807624817, -0.4886273145675659, 0.07047857344150543, 0.3470824360847473, 0.18647706508636475, -0.11561357229948044, -0.775053858757019, 0.24291670322418213, -0.17875567078590393, -0.4821302592754364, 0.043000780045986176, 0.7040477395057678, -0.534473717212677, -0.40159842371940613, 0.3982070982456207, 0.07695198804140091, 0.2553430199623108, -0.10748480260372162, -0.6947090029716492, 0.20075920224189758, 0.17483936250209808, -0.370393842458725, 0.017159845679998398, 0.37395817041397095, 0.105857715010643, 0.22998777031898499, 0.5284631848335266, -0.08298052847385406, -0.11214516311883926, 0.3939895033836365, 0.5093558430671692, -0.6372566819190979, -0.6369344592094421, -0.4523204267024994, 0.5923009514808655, 0.09499971568584442, -0.30555638670921326, 0.3267701268196106, 1.0296615362167358, 0.745525598526001, -0.08561993390321732, 0.5712169408798218, 0.2532106041908264, 0.6583177447319031, -0.7184664607048035, 0.7974057197570801, -0.5574760437011719, -0.004728204570710659, -0.004265693947672844, -0.9534730315208435, -0.09308397024869919, 0.8426309823989868, 0.0741121843457222, 0.04449520632624626, 0.46457579731941223, 1.0224741697311401, 0.006578492000699043, -0.11746963858604431, 0.21698367595672607, 0.6031596660614014, 0.4167039692401886, 0.44450870156288147, 0.7153183221817017, -0.998288094997406, 0.7686297297477722, -0.0015820006374269724, -0.2566419541835785, -0.24523340165615082, -0.6016284823417664, -0.8119441270828247, -0.876947283744812, -0.574964702129364, -0.8116825819015503, 0.1440366804599762, 0.9981960654258728, 0.8376452922821045, -1.0213090181350708, -0.12174152582883835, 0.055870965123176575, -0.17977340519428253, -0.020081931725144386, -0.1754707247018814, 0.47146183252334595, 0.06291748583316803, -0.8515651226043701, 0.44358691573143005, -0.12721902132034302, 0.5175850987434387, 0.40182018280029297, -0.2758084237575531, -0.03294956684112549, 0.07240869849920273, 0.3694632947444916, 0.048693444579839706, -0.875457227230072, -0.366564005613327, -0.37412166595458984, -0.19728271663188934, 0.04770538583397865, 0.6452030539512634, -0.5053989887237549, 0.28858670592308044, 0.5956360101699829, 0.026208972558379173, 0.9806914329528809, -0.06588410586118698, 0.28845611214637756, -0.6887372136116028, 0.4904499053955078, 0.09676601737737656, 0.3041583299636841, 0.05629962682723999, -0.15733176469802856, 0.05351829156279564, 0.24904105067253113, -0.8521682024002075, -0.6258238554000854, 0.17723348736763, -1.5965473651885986, -0.2823905348777771, 1.6585441827774048, 0.2824726700782776, -0.1157519742846489, -0.045274388045072556, -0.6605437397956848, 0.78087317943573, -0.6191790103912354, 0.26883432269096375, 0.4400975704193115, 0.13570651412010193, 0.1830296516418457, -0.7046504616737366, 0.7256587147712708, 0.007639690767973661, -0.2239619940519333, 0.04985169693827629, 0.4436895251274109, 0.7606651782989502, -0.11852142214775085, 0.555375337600708, -0.38311490416526794, 0.28761494159698486, 0.1205129474401474, 0.11398389935493469, -0.14691971242427826, -0.07629536837339401, -0.47605669498443604, -0.03490590304136276, 0.4517042338848114, -0.5123935341835022 ]
cardiffnlp/twitter-roberta-base-hate-latest
cardiffnlp
"2023-08-02T00:30:47Z"
20,551
11
transformers
[ "transformers", "pytorch", "tf", "roberta", "text-classification", "en", "endpoints_compatible", "region:us" ]
text-classification
"2023-03-30T05:47:39Z"
--- model-index: - name: twitter-roberta-base-hate-latest results: [] pipeline_tag: text-classification language: - en --- # cardiffnlp/twitter-roberta-base-hate-latest This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-2022-154m](https://huggingface.co/cardiffnlp/twitter-roberta-base-2022-154m) for binary hate-speech classification. A combination of 13 different hate-speech datasets in the English language were used to fine-tune the model. More details in the [reference paper](https://aclanthology.org/2023.woah-1.25/). | **Dataset** | **Accuracy** | **Macro-F1** | **Weighted-F1** | |:----------|-----------:|-----------:|--------------:| | hatEval, SemEval-2019 Task 5: Multilingual Detection of Hate Speech Against Immigrants and Women in Twitter | 0.5831 | 0.5646 | 0.548 | | ucberkeley-dlab/measuring-hate-speech | 0.9273 | 0.9193 | 0.928 | | Detecting East Asian Prejudice on Social Media | 0.9231 | 0.6623 | 0.9428 | | Call me sexist, but | 0.9686 | 0.9203 | 0.9696 | | Predicting the Type and Target of Offensive Posts in Social Media | 0.9164 | 0.6847 | 0.9098 | | HateXplain | 0.8653 | 0.845 | 0.8662 | | Large Scale Crowdsourcing and Characterization of Twitter Abusive BehaviorLarge Scale Crowdsourcing and Characterization of Twitter Abusive Behavior | 0.7801 | 0.7446 | 0.7614 | | Multilingual and Multi-Aspect Hate Speech Analysis | 0.9944 | 0.4986 | 0.9972 | | Hate speech and offensive content identification in indo-european languages | 0.8779 | 0.6904 | 0.8706 | | Are You a Racist or Am I Seeing Things? | 0.921 | 0.8935 | 0.9216 | | Automated Hate Speech Detection | 0.9423 | 0.9249 | 0.9429 | | Hate Towards the Political Opponent | 0.8783 | 0.6595 | 0.8788 | | Hateful Symbols or Hateful People? | 0.8187 | 0.7833 | 0.8323 | | **Overall** | **0.8766** | **0.7531** | **0.8745** | ### Usage Install tweetnlp via pip. ```shell pip install tweetnlp ``` Load the model in python. ```python import tweetnlp model = tweetnlp.Classifier("cardiffnlp/twitter-roberta-base-hate-latest") model.predict('I love everybody :)') >> {'label': 'NOT-HATE'} ``` ### Reference paper - Model based on: ``` @inproceedings{antypas-camacho-collados-2023-robust, title = "Robust Hate Speech Detection in Social Media: A Cross-Dataset Empirical Evaluation", author = "Antypas, Dimosthenis and Camacho-Collados, Jose", booktitle = "The 7th Workshop on Online Abuse and Harms (WOAH)", month = jul, year = "2023", address = "Toronto, Canada", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2023.woah-1.25", pages = "231--242" } ```
[ -0.3173062205314636, -0.8081988096237183, 0.061783839017152786, 0.16095691919326782, -0.16111460328102112, 0.2767849266529083, -0.25624558329582214, -0.7423664331436157, 0.34512823820114136, 0.26171353459358215, -0.5690391659736633, -0.880527913570404, -0.9950460195541382, -0.013067149557173252, -0.6089997291564941, 0.9499136805534363, 0.5767934322357178, 0.0913342759013176, 0.5732259750366211, -0.32676807045936584, -0.06579674780368805, -0.5477041602134705, -0.8169263005256653, 0.002802981762215495, 0.6468415260314941, 0.1791989803314209, 0.6871061325073242, 0.5076552033424377, 0.4609576165676117, 0.3418995141983032, -0.1687106490135193, -0.05776397883892059, -0.561332643032074, -0.0476638525724411, -0.16300413012504578, -0.09731102734804153, -0.3873944878578186, 0.1284707933664322, 0.4411843717098236, 0.3802681565284729, 0.018840817734599113, 0.14219480752944946, -0.04667917639017105, 0.10138822346925735, -0.4516211748123169, -0.10595903545618057, -0.979590117931366, -0.17112602293491364, -0.30376479029655457, -0.003970510326325893, -0.24220795929431915, -0.5303985476493835, -0.03995174169540405, 0.014971837401390076, 0.25165292620658875, 0.10082554817199707, 0.903487503528595, 0.1500372737646103, -0.2858991324901581, -0.2513069212436676, -0.519930899143219, 1.07203209400177, -0.9887911677360535, 0.31316736340522766, 0.30807241797447205, 0.1356024593114853, 0.08845198899507523, -0.2707875370979309, -0.7038907408714294, -0.10288280993700027, 0.13256314396858215, -0.04836024343967438, -0.5616563558578491, -0.1523144394159317, 0.14611633121967316, 0.025688016787171364, -0.5202082991600037, 0.29941990971565247, -0.6101476550102234, -0.28946879506111145, 0.8401767015457153, -0.026902345940470695, 0.3380691409111023, -0.2779136896133423, -0.13471169769763947, 0.08081307262182236, -0.18615558743476868, -0.2952186167240143, 0.4046858847141266, 0.7565177083015442, -0.5363028049468994, 0.39009565114974976, 0.06851791590452194, 0.5862853527069092, -0.05665894225239754, -0.3047868311405182, 0.6157042980194092, 0.016222920268774033, -0.16849598288536072, -0.030077330768108368, 1.0737112760543823, 0.7202728390693665, 0.5528053641319275, -0.20736154913902283, 0.056897785514593124, 0.4328126907348633, 0.1488519310951233, -0.817590594291687, -0.0909510925412178, 0.29555097222328186, -0.37005722522735596, -0.6715855002403259, -0.3790522515773773, -0.9574112892150879, -0.4697743356227875, -0.11081555485725403, 0.21099556982517242, -0.6783276796340942, -0.4947665333747864, -0.1636587679386139, -0.23199059069156647, 0.07489986717700958, 0.2991120517253876, -0.7332518696784973, 0.11385258287191391, 0.47026461362838745, 0.9082270860671997, -0.36425507068634033, -0.23122674226760864, -0.2756797671318054, -0.02195758745074272, -0.09873095154762268, 0.6751327514648438, -0.6190779805183411, 0.07010035216808319, 0.09261772036552429, -0.22184891998767853, 0.09165672212839127, -0.38936755061149597, 0.7864628434181213, -0.42639002203941345, 0.33142930269241333, 0.03863103687763214, -0.47790223360061646, -0.1714104264974594, 0.19189463555812836, -0.41032513976097107, 0.983591616153717, 0.2420932799577713, -0.9682012796401978, 0.420289546251297, -0.6830867528915405, -0.2721615135669708, -0.045681487768888474, 0.07285061478614807, -0.48486652970314026, -0.18353630602359772, 0.016840066760778427, 0.3939172923564911, -0.2935723066329956, 0.2132507860660553, -0.6649898886680603, 0.008710475638508797, -0.1352492719888687, -0.16483958065509796, 1.550785779953003, 0.4532299339771271, -0.6449525952339172, 0.23091883957386017, -1.0087498426437378, 0.00271270121447742, 0.2749861478805542, -0.07801699638366699, -0.20864726603031158, -0.12744274735450745, 0.45149925351142883, 0.4471253454685211, 0.08305581659078598, -0.964225172996521, -0.20945122838020325, -0.3763432800769806, 0.4368588924407959, 0.9266381859779358, -0.17873595654964447, 0.15489009022712708, -0.6062297821044922, 0.4908726215362549, -0.10523007810115814, 0.3122679889202118, 0.48960641026496887, -0.7144306898117065, -0.4832703471183777, -0.37284499406814575, 0.023974280804395676, 0.562229335308075, -0.2929568588733673, 0.6317654252052307, -0.14933791756629944, -0.8802616596221924, -0.32330724596977234, -0.08197622746229172, 0.45929279923439026, 0.3429015278816223, 0.5281027555465698, 0.056716106832027435, -1.3015557527542114, -0.8427759408950806, -0.5640751123428345, -0.3743431270122528, 0.2820332944393158, 0.18516041338443756, 0.5425989627838135, -0.17374403774738312, 0.8591720461845398, -0.1493384838104248, -0.07567030191421509, -0.39899489283561707, 0.25415128469467163, 0.11393380165100098, 0.3269120156764984, 0.9537994265556335, -0.9178930521011353, -0.8790584802627563, -0.262936532497406, -0.48542875051498413, -0.40165069699287415, 0.34761694073677063, -0.23637813329696655, 0.34115713834762573, 0.28229331970214844, -0.16566619277000427, 0.47077253460884094, 0.6111071109771729, -0.5883978009223938, 0.5355682373046875, 0.6534096002578735, 0.19898445904254913, -1.3693619966506958, -0.25208771228790283, 0.2201911062002182, -0.26579549908638, -0.8848364949226379, -0.03127535432577133, -0.22773483395576477, 0.36100441217422485, -0.6994413733482361, 0.5684398412704468, -0.003967880271375179, 0.29755130410194397, -0.1004536896944046, -0.06398990750312805, -0.6679690480232239, 0.5779492259025574, -0.15438665449619293, 0.500910758972168, 0.5239447951316833, -0.46669381856918335, 0.4626428186893463, 0.14668002724647522, -0.34521588683128357, 0.4594666361808777, -0.34105318784713745, 0.10819056630134583, 0.0562235563993454, -0.08305609226226807, -1.1048939228057861, -0.17600928246974945, 0.3974037766456604, -0.8972700238227844, 0.02836902253329754, -0.34610164165496826, -0.45264723896980286, -0.541983425617218, -0.4444868266582489, 0.3106365203857422, 0.5002369284629822, -0.2539784610271454, 0.5770692825317383, 0.9210387468338013, -0.04575714096426964, -0.6726406216621399, -0.8776613473892212, 0.23581762611865997, -0.3892058730125427, -0.6822930574417114, 0.38211166858673096, -0.2171405553817749, -0.5945881605148315, -0.042676400393247604, 0.22277651727199554, -0.22766155004501343, 0.007647725287824869, 0.22430942952632904, 0.21923159062862396, -0.01877366565167904, -0.22497302293777466, -0.3048804998397827, 0.3607387840747833, 0.026462342590093613, -0.06690327823162079, 0.9519152641296387, 0.004523892421275377, 0.10952463001012802, -0.4268800914287567, 0.4431595802307129, 0.6292630434036255, 0.19217440485954285, 0.8415959477424622, 0.9003021717071533, -0.6284113526344299, -0.16346532106399536, -0.6029688715934753, 0.0806155577301979, -0.4247276782989502, 0.5227283835411072, -0.061139754951000214, -1.0938235521316528, 0.5680375695228577, 0.6085330247879028, 0.22441039979457855, 0.7834969162940979, 0.8208352327346802, 0.14341604709625244, 1.1219584941864014, 0.6274546980857849, -0.42015373706817627, 0.6449192762374878, -0.22159065306186676, 0.2606835663318634, -0.21550165116786957, -0.19646131992340088, -0.8577366471290588, -0.2663534879684448, -0.8643388748168945, -0.3194306492805481, 0.1005496233701706, -0.20659871399402618, -0.6322237253189087, 0.49722519516944885, -0.5445444583892822, 0.3110681176185608, 0.4988867938518524, -0.10713756829500198, -0.012033576145768166, 0.34987154603004456, -0.05756410211324692, -0.36133164167404175, -0.4161950945854187, -0.3983231782913208, 1.0948870182037354, 0.27747103571891785, 0.49889445304870605, 0.5029659271240234, 0.6921529769897461, 0.5422622561454773, 0.41122838854789734, -0.6283776164054871, 0.6373042464256287, -0.354449987411499, -0.9885397553443909, -0.2879783511161804, -0.5466427206993103, -0.7243297100067139, 0.10269825160503387, -0.18928204476833344, -1.1872506141662598, 0.1087576150894165, -0.006678493693470955, -0.2529152035713196, 0.7663002014160156, -0.5393419861793518, 0.5861302018165588, -0.06374581903219223, -0.2658693492412567, -0.29922133684158325, -0.4514024555683136, 0.3529723882675171, -0.05601468309760094, 0.5834249258041382, -0.32320645451545715, 0.002419725526124239, 1.1391546726226807, -0.3836973309516907, 1.0075539350509644, -0.22873666882514954, -0.12999531626701355, 0.17297148704528809, -0.0996752604842186, 0.29940032958984375, -0.45775073766708374, -0.38602325320243835, 0.2568714916706085, -0.18556995689868927, -0.33861392736434937, -0.2320227324962616, 0.6554431915283203, -0.7941205501556396, -0.33454906940460205, -0.5738438367843628, -0.547432541847229, -0.27050772309303284, 0.3661371171474457, 0.4115857481956482, 0.4060863256454468, -0.22332535684108734, 0.28113439679145813, 0.407746285200119, -0.31693702936172485, 0.3936406373977661, 0.4967981278896332, -0.2092178910970688, -0.6170485615730286, 0.747883677482605, 0.13716790080070496, 0.13596652448177338, 0.33214089274406433, 0.23054008185863495, -0.2994902729988098, -0.8013296723365784, -0.03922645002603531, 0.2505246698856354, -0.504202127456665, -0.3697446286678314, -1.0389310121536255, -0.49264273047447205, -0.9023083448410034, -0.07944593578577042, -0.16970056295394897, -0.4664842486381531, -0.21152140200138092, -0.06843359023332596, 0.7011100649833679, 0.934375524520874, -0.38728806376457214, 0.3890411853790283, -0.32835468649864197, 0.44592925906181335, -0.01247711107134819, 0.3522724509239197, -0.12043996900320053, -1.1438320875167847, -0.1686050295829773, 0.1864413172006607, -0.3252824544906616, -1.1356937885284424, 0.7613959312438965, 0.09582164138555527, 0.351836234331131, 0.269212007522583, 0.17199668288230896, 0.6266406774520874, -0.39863839745521545, 0.7861068248748779, 0.37206387519836426, -0.6699325442314148, 0.6098960638046265, -0.5739647150039673, 0.02428947202861309, 0.31805551052093506, 0.6098045110702515, -0.658684492111206, -0.87385493516922, -0.9117938876152039, -0.765845775604248, 1.1170363426208496, 0.3488771319389343, 0.19247972965240479, -0.19602999091148376, -0.05785580724477768, -0.06135900691151619, 0.05173641815781593, -0.9634730219841003, -0.7843129634857178, -0.06449346989393234, -0.5133556127548218, -0.04135291650891304, -0.590823233127594, -0.016988107934594154, -0.6320311427116394, 0.8680211305618286, 0.27452632784843445, 0.44029369950294495, -0.3724389374256134, -0.017207438126206398, -0.07938750833272934, 0.26118141412734985, 0.5573738813400269, 0.7255193591117859, -0.6164118647575378, -0.08313790708780289, 0.2648060619831085, -0.6172813773155212, -0.0668150782585144, 0.09683293849229813, -0.22106996178627014, 0.23820558190345764, 0.420882910490036, 0.6902682185173035, 0.05529920756816864, -0.4282514750957489, 0.5484503507614136, -0.0373544804751873, -0.5308314561843872, -0.5800284743309021, 0.052131377160549164, -0.1868123561143875, 0.30157291889190674, 0.5607006549835205, 0.3032449781894684, 0.06136532127857208, -0.6149966716766357, 0.2864699959754944, 0.3605228066444397, -0.28093644976615906, -0.29170364141464233, 0.6775190830230713, -0.07100514322519302, -0.5617193579673767, 0.04292330890893936, -0.44264209270477295, -1.024113416671753, 0.48444506525993347, 0.49086371064186096, 0.891423225402832, -0.43133673071861267, 0.3136587142944336, 0.7670186758041382, 0.4015542268753052, 0.48269444704055786, 0.5931897759437561, 0.29890596866607666, -0.998234748840332, -0.17625723779201508, -0.9194179773330688, -0.1403229981660843, 0.5522733926773071, -0.4570044279098511, 0.3352784812450409, -0.7476968169212341, -0.1560104936361313, 0.5304935574531555, 0.2155686616897583, -0.5712379813194275, 0.3076398968696594, 0.3314179480075836, 0.9343991875648499, -0.9037386178970337, 0.8778483271598816, 0.5085628628730774, -0.33003243803977966, -0.7745223045349121, -0.1936275064945221, 0.2690567672252655, -0.8575257062911987, 0.5718076229095459, 0.07259948551654816, -0.20586684346199036, 0.09962686896324158, -0.9601121544837952, -0.9550492763519287, 0.4877566695213318, 0.37575116753578186, -0.49109628796577454, -0.009521376341581345, 0.30119380354881287, 0.6905224323272705, -0.4219096899032593, 0.37968698143959045, 0.5340321063995361, 0.41620323061943054, 0.17206816375255585, -0.9364601969718933, -0.012001294642686844, -0.4215084910392761, -0.20073151588439941, -0.037250809371471405, -0.6991080045700073, 1.010560393333435, 0.06693410128355026, -0.10620319098234177, -0.11656583100557327, 0.5798503756523132, 0.08719886094331741, 0.19141004979610443, 0.8075571060180664, 0.7444426417350769, 0.6826358437538147, -0.07939580082893372, 0.8399826884269714, -0.1652454286813736, 0.4209468364715576, 1.257101058959961, 0.29114800691604614, 0.7524311542510986, -0.00638597272336483, -0.454820841550827, 0.4521121382713318, 0.5060514807701111, -0.03511433303356171, 0.4135139584541321, 0.013936171308159828, -0.19653481245040894, -0.1685114949941635, -0.3285452723503113, -0.26196563243865967, 0.5443769693374634, 0.3409150540828705, -0.39368629455566406, -0.2857936918735504, 0.011582352221012115, 0.4214719533920288, 0.20121338963508606, -0.2933520972728729, 0.6471893787384033, -0.22301502525806427, -0.3319856524467468, 0.8855851292610168, 0.2176494598388672, 1.2104735374450684, -0.39557623863220215, 0.17962872982025146, 0.11075473576784134, 0.1641075313091278, -0.3471783399581909, -0.745123565196991, 0.4515814185142517, 0.5545281171798706, -0.19456787407398224, -0.17318332195281982, 0.49717268347740173, -0.4608958959579468, -0.4313105344772339, 0.7021238803863525, 0.14582189917564392, 0.2618120014667511, -0.14015726745128632, -1.1268242597579956, 0.33928796648979187, 0.371766597032547, 0.04551001265645027, 0.01242741011083126, 0.4297678470611572, -0.054109662771224976, 0.5821672677993774, 0.4634629487991333, 0.34050795435905457, 0.52664715051651, 0.35427236557006836, 0.8232973217964172, -0.8631467819213867, -0.2729610502719879, -0.9980367422103882, 0.30378660559654236, -0.3977755904197693, -0.4417671263217926, 0.7878621220588684, 0.7489164471626282, 0.9576990604400635, 0.2984292507171631, 1.036881446838379, -0.608426570892334, 1.2845953702926636, -0.08463407307863235, 0.5657856464385986, -0.6863645911216736, -0.11957485973834991, -0.5955587029457092, -0.6686395406723022, -0.5433603525161743, 0.6711747050285339, -0.5244695544242859, 0.23045788705348969, 0.5364657044410706, 1.0118484497070312, -0.017375366762280464, 0.0678987056016922, 0.44033941626548767, 0.822361171245575, 0.4183894991874695, 0.339931458234787, 0.6020312905311584, -0.4026455879211426, 0.7044947147369385, -0.6241129636764526, -0.19300173223018646, -0.32634803652763367, -0.6450163722038269, -0.97892165184021, -0.7410609126091003, -0.3529636859893799, -0.7829668521881104, 0.1790255308151245, 1.214117407798767, 0.6743862628936768, -1.3334881067276, -0.2672615945339203, 0.0865263119339943, 0.09573874622583389, 0.18320441246032715, -0.29678845405578613, 0.1659352332353592, -0.10733146965503693, -1.0354326963424683, 0.04179347679018974, -0.025452597066760063, -0.05071999132633209, 0.13463659584522247, 0.03458474949002266, -0.7990721464157104, -0.027884790673851967, 0.5756452083587646, 0.14750933647155762, -0.8762718439102173, -0.3926512897014618, -0.33758434653282166, -0.29983192682266235, 0.08019468188285828, 0.27766653895378113, -0.2778325080871582, -0.004027565009891987, 0.3491468131542206, 0.3325888216495514, 0.38093042373657227, -0.1372477412223816, 0.19535352289676666, -0.5208743810653687, 0.2976050078868866, 0.5579965710639954, 0.4161648154258728, 0.38078492879867554, -0.19132493436336517, 0.4354059398174286, 0.4386650323867798, -0.36833834648132324, -0.9554711580276489, 0.0891776755452156, -1.1589791774749756, -0.24350309371948242, 1.3605642318725586, 0.3221103847026825, -0.3509462773799896, -0.3985191583633423, -0.17490734159946442, 0.5038142800331116, -0.8384100198745728, 0.7226941585540771, 0.6800535321235657, 0.2463122457265854, -0.24657249450683594, -0.4259102940559387, 0.7602565288543701, 0.19849924743175507, -0.44019460678100586, 0.08568751066923141, 0.5442935228347778, 0.38991373777389526, 0.1611928641796112, 0.669505774974823, -0.016728274524211884, 0.18766698241233826, -0.17408202588558197, 0.2853427827358246, 0.23645323514938354, -0.19100330770015717, -0.1889508068561554, 0.20328833162784576, -0.29616427421569824, -0.04841003939509392 ]
facebook/convnextv2-tiny-22k-384
facebook
"2023-09-26T17:19:37Z"
20,473
1
transformers
[ "transformers", "pytorch", "tf", "convnextv2", "image-classification", "vision", "dataset:imagenet-22k", "arxiv:2301.00808", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
image-classification
"2023-02-19T07:24:50Z"
--- license: apache-2.0 tags: - vision - image-classification datasets: - imagenet-22k widget: - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg example_title: Tiger - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg example_title: Teapot - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg example_title: Palace --- # ConvNeXt V2 (tiny-sized model) ConvNeXt V2 model pretrained using the FCMAE framework and fine-tuned on the ImageNet-22K dataset at resolution 384x384. It was introduced in the paper [ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders](https://arxiv.org/abs/2301.00808) by Woo et al. and first released in [this repository](https://github.com/facebookresearch/ConvNeXt-V2). Disclaimer: The team releasing ConvNeXT V2 did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description ConvNeXt V2 is a pure convolutional model (ConvNet) that introduces a fully convolutional masked autoencoder framework (FCMAE) and a new Global Response Normalization (GRN) layer to ConvNeXt. ConvNeXt V2 significantly improves the performance of pure ConvNets on various recognition benchmarks. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/convnextv2_architecture.png) ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=convnextv2) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import AutoImageProcessor, ConvNextV2ForImageClassification import torch from datasets import load_dataset dataset = load_dataset("huggingface/cats-image") image = dataset["test"]["image"][0] preprocessor = AutoImageProcessor.from_pretrained("facebook/convnextv2-tiny-22k-384") model = ConvNextV2ForImageClassification.from_pretrained("facebook/convnextv2-tiny-22k-384") inputs = preprocessor(image, return_tensors="pt") with torch.no_grad(): logits = model(**inputs).logits # model predicts one of the 1000 ImageNet classes predicted_label = logits.argmax(-1).item() print(model.config.id2label[predicted_label]), ``` For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/convnextv2). ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2301-00808, author = {Sanghyun Woo and Shoubhik Debnath and Ronghang Hu and Xinlei Chen and Zhuang Liu and In So Kweon and Saining Xie}, title = {ConvNeXt {V2:} Co-designing and Scaling ConvNets with Masked Autoencoders}, journal = {CoRR}, volume = {abs/2301.00808}, year = {2023}, url = {https://doi.org/10.48550/arXiv.2301.00808}, doi = {10.48550/arXiv.2301.00808}, eprinttype = {arXiv}, eprint = {2301.00808}, timestamp = {Tue, 10 Jan 2023 15:10:12 +0100}, biburl = {https://dblp.org/rec/journals/corr/abs-2301-00808.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.6940432786941528, -0.36779823899269104, -0.3513941764831543, 0.17077922821044922, -0.35678985714912415, -0.27811846137046814, -0.17235879600048065, -0.8031855821609497, 0.3245704174041748, 0.4044494032859802, -0.5570757389068604, -0.09214311093091965, -0.5698256492614746, -0.08176793903112411, -0.2191406488418579, 0.7784149050712585, 0.07756861299276352, 0.044752832502126694, -0.2978459894657135, -0.23596033453941345, -0.4034941494464874, -0.44532477855682373, -0.8938941359519958, -0.31820598244667053, 0.21787069737911224, 0.4210542142391205, 0.623650848865509, 0.6691861748695374, 0.7011482119560242, 0.34831076860427856, -0.010881377384066582, 0.14312045276165009, -0.3543267846107483, -0.3279777467250824, 0.14146453142166138, -0.2734081745147705, -0.39172977209091187, 0.09301088750362396, 0.22964413464069366, 0.3421746492385864, 0.23859979212284088, 0.3452063798904419, 0.19989322125911713, 0.4943862557411194, -0.2670884430408478, 0.28122830390930176, -0.46765756607055664, 0.12092109024524689, 0.08755979686975479, 0.11110664904117584, -0.39398205280303955, -0.0654996857047081, 0.21846379339694977, -0.5760000944137573, 0.5392733216285706, 0.1909518837928772, 1.1365141868591309, 0.2424348145723343, -0.3656739294528961, -0.00035094638587906957, -0.4395536184310913, 0.6169212460517883, -0.6025861501693726, 0.2999230623245239, 0.09327516704797745, 0.3944355845451355, 0.001936615677550435, -1.086316704750061, -0.5741398334503174, -0.12948472797870636, -0.40166106820106506, 0.11851615458726883, -0.3957682251930237, 0.13275592029094696, 0.37207725644111633, 0.4696398377418518, -0.7843215465545654, 0.3289194703102112, -0.5916093587875366, -0.39661741256713867, 0.8253967761993408, -0.13749650120735168, 0.15771403908729553, -0.2776237726211548, -0.6961296796798706, -0.3633652627468109, -0.3963108956813812, 0.23998934030532837, 0.12745922803878784, -0.020727965980768204, -0.5446993708610535, 0.46236592531204224, -0.103427954018116, 0.5259758830070496, 0.3777485191822052, 0.27309420704841614, 0.35340389609336853, -0.36304354667663574, -0.41268229484558105, 0.015273647382855415, 1.0488804578781128, 0.6102133393287659, 0.2370406538248062, 0.18453188240528107, -0.0005696212174370885, 0.07708945870399475, -0.00507347984239459, -1.1214710474014282, -0.6276344060897827, 0.23672670125961304, -0.5792469382286072, -0.3305298686027527, 0.10590148717164993, -0.5748255252838135, -0.17883984744548798, -0.3590950071811676, 0.5239077806472778, -0.04725727066397667, -0.5173658132553101, -0.015451636165380478, -0.16038459539413452, 0.33181852102279663, 0.2989215850830078, -0.6971996426582336, 0.4287603497505188, 0.4025322198867798, 0.8499273061752319, -0.07278410345315933, 0.07925902307033539, -0.13870926201343536, -0.4960181415081024, -0.2839786410331726, 0.509943425655365, 0.07664931565523148, -0.049263034015893936, -0.21025103330612183, 0.4871864914894104, 0.1138928085565567, -0.5470305681228638, 0.38036009669303894, -0.4771542251110077, 0.018309785053133965, -0.20108911395072937, -0.3880309760570526, -0.24143926799297333, 0.25809451937675476, -0.7874640226364136, 1.0058438777923584, 0.3214593529701233, -0.815250813961029, 0.19730931520462036, -0.41321730613708496, -0.017520727589726448, -0.022887790575623512, 0.021444249898195267, -0.8181026577949524, -0.15252995491027832, 0.12348630279302597, 0.6277593374252319, -0.28473109006881714, 0.21456655859947205, -0.4872296154499054, -0.2713960111141205, 0.0687175765633583, -0.3664911985397339, 1.0386673212051392, 0.24439884722232819, -0.43104374408721924, -0.026094350963830948, -0.6782995462417603, 0.074822798371315, 0.31325098872184753, 0.09018032252788544, -0.13456597924232483, -0.49395838379859924, 0.3038063049316406, 0.6693012714385986, 0.26064807176589966, -0.583983838558197, 0.3027341961860657, -0.3562430143356323, 0.48490121960639954, 0.5601586103439331, 0.012802883982658386, 0.44720277190208435, -0.20507219433784485, 0.2951880395412445, 0.08283735811710358, 0.5643898844718933, 0.04517423361539841, -0.4851192235946655, -0.9296457767486572, -0.18197545409202576, 0.11712571978569031, 0.38527607917785645, -0.777178943157196, 0.3436979055404663, -0.22893065214157104, -0.7485450506210327, -0.2939409017562866, 0.012712792493402958, 0.47118762135505676, 0.3326590657234192, 0.5344134569168091, -0.5340006351470947, -0.8975871801376343, -1.0640124082565308, 0.0999540388584137, 0.09248752892017365, -0.0005664198542945087, 0.38904619216918945, 0.6345782279968262, -0.18424446880817413, 0.7784857749938965, -0.20152902603149414, -0.23097936809062958, -0.04014546796679497, 0.021267518401145935, 0.30048269033432007, 0.8614122867584229, 0.6799486875534058, -1.0118709802627563, -0.6402935981750488, -0.045914944261312485, -0.7745041847229004, 0.22245542705059052, -0.09579882025718689, -0.1720554083585739, 0.17016395926475525, 0.5433692336082458, -0.48890867829322815, 0.5596361756324768, 0.5824827551841736, -0.3869105577468872, 0.6084467172622681, -0.05186489596962929, -0.17049704492092133, -1.094262719154358, 0.007333853747695684, 0.256161630153656, -0.23375928401947021, -0.4339989423751831, -0.11768698692321777, 0.11178537458181381, -0.03229345753788948, -0.661727786064148, 0.8142708539962769, -0.6566489338874817, -0.021539300680160522, -0.21459996700286865, -0.2282131165266037, 0.12421451508998871, 0.8090838193893433, 0.23359617590904236, 0.29710349440574646, 0.5354443192481995, -0.5350915193557739, 0.6612699627876282, 0.2970961332321167, -0.3213822543621063, 0.38537099957466125, -0.9054016470909119, 0.14921101927757263, 0.14667335152626038, 0.47048085927963257, -0.9583860635757446, -0.2377028912305832, 0.36239251494407654, -0.5546406507492065, 0.6166663765907288, -0.3262152075767517, -0.38845187425613403, -0.8440760970115662, -0.2811526358127594, 0.5782144665718079, 0.4534773528575897, -0.6801403164863586, 0.12029745429754257, 0.24738962948322296, 0.34593579173088074, -0.5478722453117371, -0.930493175983429, -0.11423113942146301, 0.054031115025281906, -0.7196205258369446, 0.3697686195373535, -0.21152113378047943, 0.054825544357299805, 0.14138326048851013, -0.14698442816734314, -0.030825112015008926, -0.1351177841424942, 0.3401661813259125, 0.4354826509952545, -0.2838672697544098, -0.08469749242067337, -0.0032767716329544783, -0.2167683243751526, 0.07430745661258698, -0.5477486252784729, 0.4119284451007843, -0.2594601809978485, 0.0013857559533789754, -0.6493407487869263, 0.14073075354099274, 0.4151538014411926, -0.10265412926673889, 0.6311787366867065, 0.9496951103210449, -0.5060182809829712, -0.12553587555885315, -0.4258274734020233, -0.3768100440502167, -0.5290521383285522, 0.4233088195323944, -0.2737818956375122, -0.7979147434234619, 0.5280551314353943, 0.12022626399993896, 0.006438195705413818, 0.7778680920600891, 0.5582050681114197, -0.08442290872335434, 0.7027716040611267, 0.5413107872009277, 0.3162497878074646, 0.6314287781715393, -1.024783730506897, 0.01142922043800354, -1.0483602285385132, -0.4711640775203705, -0.24565334618091583, -0.6079261302947998, -0.9651850461959839, -0.5116970539093018, 0.29154279828071594, 0.052376627922058105, -0.5299417972564697, 0.7763406038284302, -0.9564383625984192, 0.21120402216911316, 0.6371213793754578, 0.34306275844573975, -0.23745308816432953, 0.16518764197826385, 0.017715802416205406, 0.033464476466178894, -0.8073070049285889, -0.03820330277085304, 0.8963261842727661, 0.41736122965812683, 0.4986138939857483, -0.07488446682691574, 0.36005890369415283, 0.17287033796310425, 0.3049561679363251, -0.7174537181854248, 0.40685269236564636, -0.34381937980651855, -0.8671148419380188, -0.10139993578195572, -0.19541257619857788, -0.9267019033432007, 0.17132551968097687, -0.2778834402561188, -0.6871850490570068, 0.885646402835846, 0.3250204026699066, -0.1890777200460434, 0.38094601035118103, -0.7464028596878052, 1.0529969930648804, -0.17119453847408295, -0.5315082669258118, 0.15759174525737762, -0.9358187317848206, 0.3827945590019226, 0.17139598727226257, -0.05200773850083351, 0.088870108127594, 0.26690784096717834, 0.8111739158630371, -0.7233577966690063, 0.9020428657531738, -0.23900003731250763, 0.3576138913631439, 0.6838587522506714, 0.018213659524917603, 0.6381275057792664, 0.056308165192604065, -0.02076752483844757, 0.5349632501602173, 0.1372654289007187, -0.45786720514297485, -0.5525626540184021, 0.6874700784683228, -0.9250947833061218, -0.2667103111743927, -0.40731051564216614, -0.2934756577014923, 0.13860252499580383, 0.1330161988735199, 0.8732501268386841, 0.6792879700660706, 0.04149249941110611, 0.5268205404281616, 0.639571487903595, -0.15617825090885162, 0.4877431094646454, 0.07484564185142517, 0.010383964516222477, -0.42189207673072815, 0.8191898465156555, 0.3648970425128937, 0.4370994567871094, 0.3561335802078247, 0.15606264770030975, -0.3708016276359558, -0.20640438795089722, -0.37983059883117676, 0.21538449823856354, -0.5764349102973938, -0.5360732674598694, -0.6956405639648438, -0.5491703152656555, -0.4692167043685913, -0.2263990044593811, -0.6124756336212158, -0.47511914372444153, -0.4608476758003235, 0.04833522439002991, 0.4552076756954193, 0.3873394727706909, -0.39367038011550903, 0.38049834966659546, -0.26438724994659424, 0.16837874054908752, 0.29846036434173584, 0.3466843068599701, 0.0201122909784317, -0.7110024094581604, -0.4008110463619232, 0.114996537566185, -0.3558349013328552, -0.4312855303287506, 0.47194501757621765, 0.11615617573261261, 0.34324711561203003, 0.3404671251773834, 0.11377444863319397, 0.46295371651649475, -0.08601600676774979, 0.6712225675582886, 0.5935004949569702, -0.5740125775337219, 0.38760510087013245, -0.0967220589518547, 0.1331922560930252, 0.23744405806064606, 0.2767595052719116, -0.484670490026474, 0.035718828439712524, -0.98419189453125, -0.8364373445510864, 0.7073716521263123, 0.2632177770137787, 0.11485839635133743, 0.23782946169376373, 0.48373687267303467, 0.020982900634407997, 0.04307083040475845, -0.8052316308021545, -0.5495404005050659, -0.5815850496292114, -0.23036564886569977, -0.12719887495040894, -0.4182411730289459, 0.10941491276025772, -0.6040087342262268, 0.6248399615287781, -0.1306801587343216, 0.8180761337280273, 0.38627418875694275, 0.014286385849118233, -0.04234808683395386, -0.4108651280403137, 0.424233078956604, 0.06500253826379776, -0.2878119647502899, 0.11654047667980194, -0.02651960216462612, -0.5935136675834656, 0.02590576931834221, 0.17687134444713593, -0.10070744901895523, 0.12173103541135788, 0.42060962319374084, 1.0364234447479248, 0.11881103366613388, 0.05837114527821541, 0.7185132503509521, -0.21392928063869476, -0.40770038962364197, -0.5489473938941956, 0.07653744518756866, -0.14704790711402893, 0.2811291813850403, 0.10572542995214462, 0.517349362373352, 0.182304248213768, -0.32144129276275635, 0.3898184597492218, 0.33943331241607666, -0.5600738525390625, -0.35153907537460327, 0.8023282885551453, 0.047632116824388504, -0.10617890954017639, 0.7337204813957214, -0.2603442966938019, -0.42621123790740967, 1.2060039043426514, 0.5093365907669067, 0.8901961445808411, -0.0738634318113327, 0.10968320816755295, 0.9582057595252991, 0.4396038055419922, -0.08430986106395721, -0.059756964445114136, 0.05310055613517761, -0.7271567583084106, -0.10336021333932877, -0.50974041223526, -0.04379485175013542, 0.2847183644771576, -0.6451975703239441, 0.5271657109260559, -0.5141522288322449, -0.1394951343536377, 0.03099488466978073, 0.4857339859008789, -1.16202974319458, 0.5237059593200684, 0.1509203016757965, 1.0493946075439453, -0.7818202376365662, 0.9147287011146545, 0.48775580525398254, -0.45180749893188477, -1.13176429271698, -0.497249960899353, 0.022739002481102943, -0.6265550851821899, 0.4790639877319336, 0.3613382875919342, 0.33939090371131897, 0.15495355427265167, -1.0433459281921387, -0.879438579082489, 1.3264974355697632, 0.20156356692314148, -0.6144030094146729, 0.2253183126449585, -0.1388331800699234, 0.4956640601158142, -0.3858780562877655, 0.4779001474380493, 0.15530194342136383, 0.35821884870529175, 0.36212363839149475, -0.7639622092247009, 0.21970561146736145, -0.5038968324661255, 0.1517912894487381, -0.11244764178991318, -1.0205563306808472, 0.8858200907707214, -0.23282504081726074, 0.04320552572607994, 0.06127273663878441, 0.8107578158378601, -0.04053566977381706, 0.369858980178833, 0.4096105098724365, 0.3990332782268524, 0.5250846147537231, -0.2756894528865814, 1.088623046875, -0.0071828593499958515, 0.7025917768478394, 1.0036085844039917, 0.47372862696647644, 0.4620725214481354, 0.20972859859466553, -0.08114824444055557, 0.40892255306243896, 1.0827833414077759, -0.4435274600982666, 0.43474680185317993, 0.15907257795333862, 0.08222964406013489, -0.18945758044719696, -0.04292140156030655, -0.5120996832847595, 0.40596455335617065, 0.2605453133583069, -0.41112077236175537, 0.12617476284503937, 0.2168741226196289, 0.10051925480365753, -0.36877596378326416, -0.24833789467811584, 0.46292078495025635, 0.26085638999938965, -0.4629972279071808, 0.8561245203018188, -0.09066493809223175, 0.740311324596405, -0.340369313955307, -0.012260948307812214, -0.38863542675971985, 0.2407536506652832, -0.2958908677101135, -0.6719520092010498, 0.3028615117073059, -0.3238084018230438, -0.16858911514282227, 0.07363419234752655, 0.7544211745262146, -0.40068158507347107, -0.6200763583183289, 0.28881341218948364, -0.031210441142320633, 0.20717346668243408, -0.0035808230750262737, -0.9784735441207886, 0.2338642179965973, -0.07425826787948608, -0.49506688117980957, 0.15961377322673798, 0.37242481112480164, -0.19785673916339874, 0.5628100037574768, 0.6357527375221252, -0.23382054269313812, 0.08361633121967316, -0.3344212472438812, 0.8691237568855286, -0.281633198261261, -0.2309044897556305, -0.6153595447540283, 0.5898268222808838, -0.24980293214321136, -0.37922653555870056, 0.5884137749671936, 0.6735318899154663, 1.0411678552627563, -0.17130987346172333, 0.6477627158164978, -0.3709052503108978, -0.019614657387137413, -0.22538094222545624, 0.5944744348526001, -0.781971275806427, -0.09929948300123215, -0.2074543833732605, -0.6114895939826965, -0.4092012643814087, 0.5271486043930054, -0.17969466745853424, 0.21806344389915466, 0.5034428834915161, 0.9682878255844116, -0.2563200294971466, -0.2205956131219864, 0.26479217410087585, 0.34471598267555237, 0.2578279376029968, 0.5720584392547607, 0.2208320051431656, -1.019372820854187, 0.4438592791557312, -0.7641687989234924, -0.22595477104187012, -0.5791629552841187, -0.6327037811279297, -0.7999228239059448, -0.7711447477340698, -0.5676292181015015, -0.7635431885719299, -0.20879212021827698, 0.9599012732505798, 1.0897647142410278, -0.8656280636787415, -0.02992735244333744, -0.22692669928073883, 0.005828076042234898, -0.45961064100265503, -0.2341695874929428, 0.6821326017379761, 0.18313446640968323, -0.7330718636512756, -0.25554829835891724, -0.026647767052054405, 0.21966689825057983, -0.15629957616329193, -0.290105938911438, -0.15039707720279694, -0.05884357541799545, 0.5789635181427002, 0.4885810315608978, -0.48793813586235046, -0.32423877716064453, 0.03753609582781792, -0.26046860218048096, 0.12172361463308334, 0.46304455399513245, -0.5822409391403198, 0.6351115703582764, 0.4847460985183716, 0.2546539604663849, 0.7516942024230957, -0.25379645824432373, 0.09063630551099777, -0.7235203981399536, 0.537554919719696, 0.06844806671142578, 0.26849257946014404, 0.31550267338752747, -0.5686028599739075, 0.59722900390625, 0.5494532585144043, -0.5752458572387695, -0.6876519918441772, 0.04814274236559868, -1.4215666055679321, -0.08890032768249512, 1.1861343383789062, -0.0912373811006546, -0.3918933570384979, 0.050589561462402344, -0.1775970607995987, 0.5567197203636169, -0.09840381890535355, 0.38271695375442505, 0.3513735234737396, 0.013730166479945183, -0.5175856351852417, -0.5528677701950073, 0.5534253716468811, -0.09497789293527603, -0.43825775384902954, -0.3357275724411011, 0.19406144320964813, 0.3563114106655121, 0.10910765826702118, 0.4347241520881653, -0.10461574047803879, 0.3722272217273712, 0.20819108188152313, 0.44123557209968567, -0.3642795979976654, -0.14174491167068481, -0.2050967961549759, -0.1283281296491623, -0.3367200493812561, -0.4467354416847229 ]
microsoft/swin-tiny-patch4-window7-224
microsoft
"2023-09-15T19:59:37Z"
20,451
23
transformers
[ "transformers", "pytorch", "tf", "safetensors", "swin", "image-classification", "vision", "dataset:imagenet-1k", "arxiv:2103.14030", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 tags: - vision - image-classification datasets: - imagenet-1k widget: - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg example_title: Tiger - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg example_title: Teapot - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg example_title: Palace --- # Swin Transformer (tiny-sized model) Swin Transformer model trained on ImageNet-1k at resolution 224x224. It was introduced in the paper [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://arxiv.org/abs/2103.14030) by Liu et al. and first released in [this repository](https://github.com/microsoft/Swin-Transformer). Disclaimer: The team releasing Swin Transformer did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description The Swin Transformer is a type of Vision Transformer. It builds hierarchical feature maps by merging image patches (shown in gray) in deeper layers and has linear computation complexity to input image size due to computation of self-attention only within each local window (shown in red). It can thus serve as a general-purpose backbone for both image classification and dense recognition tasks. In contrast, previous vision Transformers produce feature maps of a single low resolution and have quadratic computation complexity to input image size due to computation of self-attention globally. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/swin_transformer_architecture.png) [Source](https://paperswithcode.com/method/swin-transformer) ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=swin) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import AutoImageProcessor, AutoModelForImageClassification from PIL import Image import requests url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) processor = AutoImageProcessor.from_pretrained("microsoft/swin-tiny-patch4-window7-224") model = AutoModelForImageClassification.from_pretrained("microsoft/swin-tiny-patch4-window7-224") inputs = processor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits # model predicts one of the 1000 ImageNet classes predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` For more code examples, we refer to the [documentation](https://huggingface.co/transformers/model_doc/swin.html#). ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2103-14030, author = {Ze Liu and Yutong Lin and Yue Cao and Han Hu and Yixuan Wei and Zheng Zhang and Stephen Lin and Baining Guo}, title = {Swin Transformer: Hierarchical Vision Transformer using Shifted Windows}, journal = {CoRR}, volume = {abs/2103.14030}, year = {2021}, url = {https://arxiv.org/abs/2103.14030}, eprinttype = {arXiv}, eprint = {2103.14030}, timestamp = {Thu, 08 Apr 2021 07:53:26 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2103-14030.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.6170997619628906, -0.37464576959609985, -0.13312357664108276, 0.09135100245475769, -0.07362804561853409, -0.3221012055873871, -0.024697020649909973, -0.7776786088943481, 0.08895986527204514, 0.28131377696990967, -0.592170774936676, -0.16107849776744843, -0.5301610827445984, -0.07016320526599884, -0.4271520674228668, 0.8681241273880005, 0.019774653017520905, -0.16678526997566223, -0.2518155872821808, -0.21520572900772095, -0.2000768631696701, -0.1463230401277542, -0.559852659702301, -0.24626150727272034, 0.5066106915473938, 0.22197182476520538, 0.7807396650314331, 0.540242075920105, 0.8619433045387268, 0.47444987297058105, -0.03415338322520256, -0.0827179104089737, -0.27740365266799927, -0.3434998691082001, 0.11313074827194214, -0.48034796118736267, -0.4825837016105652, 0.1437806487083435, 0.49362748861312866, 0.4363495707511902, 0.20121145248413086, 0.48043256998062134, 0.12163905799388885, 0.48062098026275635, -0.3690805733203888, 0.1339258998632431, -0.6201762557029724, 0.25188449025154114, -0.03529837355017662, -0.020896241068840027, -0.3129766881465912, -0.09177938848733902, 0.20177887380123138, -0.46033382415771484, 0.7880602478981018, 0.3277882933616638, 1.3969924449920654, 0.13209755718708038, -0.22867923974990845, 0.18968547880649567, -0.48238950967788696, 0.8591683506965637, -0.6996319890022278, 0.17978417873382568, -0.007150573190301657, 0.5259003043174744, 0.18083788454532623, -0.8848733305931091, -0.47800135612487793, -0.021261123940348625, -0.4057442843914032, 0.1032235324382782, -0.4557640552520752, 0.08812908828258514, 0.42257145047187805, 0.4261154234409332, -0.4857034981250763, 0.18894265592098236, -0.7171840667724609, -0.29067263007164, 0.7481499314308167, 0.1198916956782341, 0.3410803973674774, -0.3651641607284546, -0.6253020167350769, -0.3719368875026703, -0.28930655121803284, 0.21210111677646637, -0.06250673532485962, 0.18599100410938263, -0.4773494601249695, 0.5268428325653076, 0.20268423855304718, 0.5888819694519043, 0.4005019962787628, -0.3021833896636963, 0.467764675617218, -0.25601962208747864, -0.3522762358188629, -0.09676403552293777, 0.9100699424743652, 0.5108248591423035, 0.042327430099248886, 0.1805853396654129, -0.2974286675453186, 0.009483433328568935, 0.3019949495792389, -0.9712687134742737, -0.2261611819267273, 0.03324271738529205, -0.6767905354499817, -0.6005977988243103, 0.05879930779337883, -0.6587374806404114, -0.03805023059248924, -0.2071826457977295, 0.37864288687705994, -0.1839202642440796, -0.2840166687965393, -0.4559204876422882, -0.1736857146024704, 0.5682154893875122, 0.4067036211490631, -0.6985808610916138, 0.1292768269777298, 0.23011700809001923, 0.9820497632026672, -0.30841460824012756, -0.4501681327819824, 0.0959269180893898, -0.23224470019340515, -0.3536238968372345, 0.5957567691802979, -0.05014101043343544, -0.1384291648864746, -0.12531912326812744, 0.459677129983902, -0.24151471257209778, -0.499058336019516, 0.2886342704296112, -0.4323822557926178, 0.15315482020378113, 0.08336695283651352, -0.08672137558460236, -0.21148152649402618, 0.23078447580337524, -0.6663724780082703, 1.1293569803237915, 0.41328859329223633, -0.9962369799613953, 0.20445333421230316, -0.5185977220535278, -0.2666061222553253, 0.15714405477046967, -0.0075578102841973305, -0.6393768787384033, 0.06414984166622162, 0.1741444170475006, 0.5110056400299072, -0.17381136119365692, 0.25821471214294434, -0.4149610698223114, -0.29259875416755676, 0.06338746100664139, -0.3452429175376892, 0.9947549700737, 0.1696736365556717, -0.48557978868484497, 0.2718527913093567, -0.5552322864532471, -0.03756777197122574, 0.4842064380645752, 0.10618208348751068, -0.22188526391983032, -0.45482394099235535, 0.34962567687034607, 0.5304606556892395, 0.3569582402706146, -0.6041349768638611, 0.3051306903362274, -0.2870873212814331, 0.4714043140411377, 0.661796510219574, -0.08974980562925339, 0.6427924036979675, -0.28942736983299255, 0.3833659589290619, 0.2854903042316437, 0.6561148166656494, -0.1460176408290863, -0.6274927258491516, -0.9745989441871643, -0.156474307179451, 0.11723557114601135, 0.40242719650268555, -0.666561484336853, 0.5064517259597778, -0.4221523702144623, -0.6841130256652832, -0.6056458950042725, -0.06815043091773987, 0.037458308041095734, 0.5863462090492249, 0.48773297667503357, -0.16982951760292053, -0.7909265756607056, -1.1306558847427368, 0.13896465301513672, -0.009103786200284958, -0.038691092282533646, 0.35369572043418884, 0.8232719302177429, -0.5775511860847473, 0.9265762567520142, -0.33403152227401733, -0.40153196454048157, -0.2685171663761139, 0.08267642557621002, 0.2830907106399536, 0.5678793787956238, 0.7352208495140076, -0.8304412364959717, -0.481471449136734, -0.03192126005887985, -0.7791009545326233, 0.10212772339582443, -0.14904175698757172, -0.18278451263904572, 0.3789932429790497, 0.2487475425004959, -0.4583141803741455, 0.809186577796936, 0.6077733635902405, -0.2737220525741577, 0.6518411040306091, 0.03105822578072548, 0.14355294406414032, -0.9037894606590271, 0.06697414815425873, 0.2644234001636505, -0.17116904258728027, -0.5114296674728394, 0.0103988628834486, 0.2692015469074249, -0.18845517933368683, -0.5585277676582336, 0.5660879015922546, -0.38911953568458557, -0.09277625381946564, -0.21066373586654663, 0.023186897858977318, 0.051418986171483994, 0.6761911511421204, 0.13071012496948242, 0.33665230870246887, 0.7200024724006653, -0.4481849670410156, 0.37805888056755066, 0.3136904239654541, -0.3161604404449463, 0.4474927484989166, -0.8382783532142639, -0.15519391000270844, 0.05182555690407753, 0.2500738501548767, -0.9369090795516968, -0.05137402564287186, 0.021079884842038155, -0.4012897312641144, 0.49733346700668335, -0.3294872045516968, -0.26405999064445496, -0.8668545484542847, -0.3403446674346924, 0.5121907591819763, 0.6266404390335083, -0.7929904460906982, 0.6249874830245972, 0.14621229469776154, 0.1409611850976944, -0.6090505719184875, -1.1093151569366455, -0.12762655317783356, -0.02131452038884163, -0.9019430875778198, 0.5179665088653564, 0.017136190086603165, 0.017907073721289635, 0.22212271392345428, -0.18157891929149628, 0.06282032281160355, -0.2626212239265442, 0.491903156042099, 0.8880589008331299, -0.2876570522785187, -0.2890131175518036, -0.009689577855169773, -0.13801558315753937, -0.008217331022024155, -0.02914239838719368, 0.2674590051174164, -0.5812616944313049, -0.15773043036460876, -0.4487074017524719, 0.030104681849479675, 0.7098801136016846, 0.02736430987715721, 0.6049162745475769, 0.9827553629875183, -0.35361921787261963, -0.1076296865940094, -0.5429990887641907, -0.3331635892391205, -0.5522168874740601, 0.26839709281921387, -0.3138982355594635, -0.6386687755584717, 0.6409876346588135, 0.11747419834136963, 0.1723441183567047, 0.9144038558006287, 0.28484785556793213, -0.2930370271205902, 1.036033272743225, 0.5250052809715271, -0.0008481096010655165, 0.6186683177947998, -0.8605348467826843, 0.19436444342136383, -0.8563011288642883, -0.35050809383392334, -0.26977333426475525, -0.7028717398643494, -0.6952871084213257, -0.4784024655818939, 0.35003921389579773, 0.01714061200618744, -0.4061742126941681, 0.6695961952209473, -0.8611100912094116, 0.06394150853157043, 0.5892677307128906, 0.14522281289100647, -0.09520337730646133, 0.18763570487499237, -0.16667112708091736, -0.12468832731246948, -0.8146094083786011, -0.04034506157040596, 0.6010459065437317, 0.5393778681755066, 0.854621410369873, -0.29426175355911255, 0.5103501677513123, 0.17902836203575134, 0.28458428382873535, -0.7876279354095459, 0.6748475432395935, -0.013863577507436275, -0.689984917640686, -0.2466355562210083, -0.3211594820022583, -0.9834058284759521, 0.292980432510376, -0.3363659381866455, -0.6175678968429565, 0.6210721731185913, 0.12068559974431992, 0.07145531475543976, 0.6469570994377136, -0.6583727598190308, 0.9157046675682068, -0.36079007387161255, -0.3305250108242035, 0.049374017864465714, -0.8422587513923645, 0.2990592122077942, 0.1977694183588028, 0.04084743186831474, -0.006083117797970772, 0.15440885722637177, 0.8155920505523682, -0.5729421973228455, 1.0977026224136353, -0.3336390554904938, 0.2583456337451935, 0.4984300434589386, -0.021972786635160446, 0.4488317668437958, -0.276955783367157, 0.27684351801872253, 0.6525086760520935, 0.13245521485805511, -0.4493880569934845, -0.6375576853752136, 0.7012208104133606, -0.9785183072090149, -0.42324063181877136, -0.4977931082248688, -0.4200962781906128, 0.1739341765642166, 0.279714971780777, 0.6761860251426697, 0.511165976524353, 0.04721599817276001, 0.33287110924720764, 0.43358123302459717, -0.1317438930273056, 0.5898681282997131, 0.17004595696926117, -0.31831854581832886, -0.1746883988380432, 0.7560035586357117, 0.20543909072875977, 0.15317513048648834, 0.352702796459198, 0.3786952793598175, -0.1774291843175888, -0.22394675016403198, -0.39249926805496216, 0.2608405351638794, -0.6545660495758057, -0.6058046817779541, -0.46567294001579285, -0.6784425377845764, -0.5558872222900391, -0.418795645236969, -0.4830014407634735, -0.38440725207328796, -0.2776394486427307, 0.05729171261191368, 0.324838250875473, 0.5518460273742676, 0.019362138584256172, 0.12628185749053955, -0.5703502297401428, 0.1926967054605484, 0.373584508895874, 0.2965541183948517, 0.2381996065378189, -0.8765043616294861, -0.20984064042568207, 0.006928710266947746, -0.4116570055484772, -0.5576602220535278, 0.5600674748420715, 0.1906737983226776, 0.5255203247070312, 0.5548475384712219, 0.08830462396144867, 0.8049828410148621, -0.3237697184085846, 0.8090647459030151, 0.6256893873214722, -0.6232765316963196, 0.6986419558525085, -0.04779735952615738, 0.3679955005645752, 0.1800716668367386, 0.3811829686164856, -0.3582913279533386, -0.21093538403511047, -0.9406527876853943, -0.8586516380310059, 0.7508828043937683, 0.06642985343933105, -0.051379743963479996, 0.2867380678653717, 0.16704241931438446, 0.026048462837934494, -0.0689869225025177, -0.8147796988487244, -0.5258873701095581, -0.6113266944885254, -0.1880398690700531, -0.023700833320617676, -0.15952175855636597, -0.16197991371154785, -0.8296201229095459, 0.6060866713523865, -0.1632262021303177, 0.7563995718955994, 0.29916948080062866, -0.2521904408931732, -0.1726536899805069, -0.09796079248189926, 0.27119243144989014, 0.25467395782470703, -0.1544530689716339, 0.08540679514408112, 0.20664098858833313, -0.6524320244789124, -0.1538201868534088, -0.019368667155504227, -0.29444795846939087, -0.03442935273051262, 0.5464065670967102, 1.089724063873291, 0.3697400689125061, -0.12689298391342163, 0.8637596964836121, 0.038979001343250275, -0.5277575254440308, -0.42363834381103516, 0.08677573502063751, -0.14005868136882782, 0.29267165064811707, 0.45786160230636597, 0.6939828395843506, 0.1163778156042099, -0.29292789101600647, 0.037920985370874405, 0.25708889961242676, -0.4514656066894531, -0.30841386318206787, 0.634014368057251, 0.05752265080809593, -0.1340014487504959, 0.8271182775497437, 0.06621631979942322, -0.5243125557899475, 0.8459948897361755, 0.6980628967285156, 0.8147555589675903, -0.04665130749344826, 0.14808493852615356, 0.7627905011177063, 0.41963469982147217, 0.006191890686750412, -0.1533929407596588, -0.03758174553513527, -0.8298554420471191, -0.04561607539653778, -0.5514260530471802, -0.13607746362686157, 0.1274210512638092, -0.7447243332862854, 0.4107121527194977, -0.3523043394088745, -0.2757013738155365, 0.11049818992614746, 0.22960032522678375, -1.0609277486801147, 0.2088133990764618, 0.2534792125225067, 1.1480580568313599, -0.8709111213684082, 0.8194624781608582, 0.6484012007713318, -0.4083784520626068, -0.8803873658180237, -0.5130611658096313, -0.03559888154268265, -0.908502459526062, 0.5129135251045227, 0.3554002642631531, -0.05870681628584862, -0.10960812121629715, -1.0178309679031372, -0.7349115014076233, 1.528083086013794, 0.008627698756754398, -0.6272539496421814, -0.1396089494228363, -0.12178660929203033, 0.4639238119125366, -0.4651004672050476, 0.4057864546775818, 0.28129586577415466, 0.5544591546058655, 0.35378342866897583, -0.6455376148223877, 0.17041261494159698, -0.549767017364502, 0.33571141958236694, -0.060571376234292984, -0.6415085792541504, 0.6611572504043579, -0.5211343169212341, -0.1457333266735077, -0.022870797663927078, 0.6669988036155701, 0.03405307978391647, 0.3066267967224121, 0.6999080181121826, 0.4538220763206482, 0.47284603118896484, -0.36141639947891235, 1.0177496671676636, -0.11910362541675568, 0.6021965742111206, 0.8125831484794617, 0.2750205397605896, 0.682567834854126, 0.41698387265205383, -0.31468236446380615, 0.7164926528930664, 0.7205621600151062, -0.6733380556106567, 0.3496246039867401, -0.16884084045886993, 0.24341900646686554, -0.02453792467713356, 0.16990995407104492, -0.4316418170928955, 0.3001170754432678, 0.2912024259567261, -0.4997604787349701, 0.12745587527751923, 0.3142920732498169, -0.368524968624115, -0.4401998221874237, -0.48371514678001404, 0.427202969789505, 0.02868902124464512, -0.44409501552581787, 0.7259895205497742, -0.1561240404844284, 1.0302393436431885, -0.5583577752113342, 0.17424046993255615, -0.18050308525562286, 0.14945442974567413, -0.5271826982498169, -0.7210003733634949, 0.24202482402324677, -0.31315067410469055, -0.18290521204471588, -0.030888112261891365, 1.1710456609725952, -0.31151020526885986, -0.5595905184745789, 0.355024129152298, 0.11623910814523697, 0.1732153743505478, 0.1371200531721115, -1.0487468242645264, 0.08463296294212341, -0.01048095989972353, -0.48754173517227173, 0.350067138671875, 0.23639941215515137, -0.035342540591955185, 0.7552144527435303, 0.43815669417381287, -0.07302847504615784, 0.22444085776805878, 0.007480571046471596, 0.8301380276679993, -0.6186586618423462, -0.3793143332004547, -0.3122057318687439, 0.5824165344238281, -0.2452092468738556, -0.291666179895401, 0.819617748260498, 0.46907883882522583, 0.7333521842956543, -0.3609374463558197, 0.6521233320236206, -0.4302285611629486, 0.025372719392180443, 0.12987026572227478, 0.6093588471412659, -0.7629302740097046, -0.12025295943021774, -0.2894570529460907, -0.7280699610710144, -0.26242077350616455, 0.7654527425765991, -0.3319789469242096, 0.23333634436130524, 0.6581451296806335, 0.8733279705047607, -0.21638460457324982, 0.017886562272906303, 0.43967965245246887, 0.2678278386592865, -0.0640576034784317, 0.250362366437912, 0.4917706847190857, -0.8800286650657654, 0.5495725274085999, -0.7753547430038452, -0.29522714018821716, -0.5217476487159729, -0.610154926776886, -0.8768369555473328, -0.7989659905433655, -0.49412307143211365, -0.5685175061225891, -0.4374125301837921, 0.6400855183601379, 1.0711299180984497, -0.9696925282478333, -0.027921883389353752, -0.014177496545016766, 0.06609685719013214, -0.5343866944313049, -0.33793318271636963, 0.43610918521881104, -0.11754560470581055, -0.6894364953041077, -0.10254593193531036, 0.10300269722938538, 0.31707751750946045, -0.3477882444858551, -0.2353203445672989, -0.05524039268493652, -0.19012551009655, 0.6595313549041748, 0.3730047345161438, -0.6026115417480469, -0.2596558928489685, 0.10935208201408386, -0.32446569204330444, 0.2378472089767456, 0.6280872821807861, -0.5984963774681091, 0.2847505211830139, 0.5726800560951233, 0.2650544047355652, 0.8403896689414978, -0.17307262122631073, 0.00815021712332964, -0.6224408149719238, 0.31816890835762024, 0.17069080471992493, 0.5436270236968994, 0.2735816240310669, -0.3565397262573242, 0.5370901823043823, 0.46291080117225647, -0.630343496799469, -0.7077928781509399, -0.07550384104251862, -1.3981879949569702, -0.20856623351573944, 0.9777403473854065, -0.06911955773830414, -0.5432493090629578, 0.10485225915908813, -0.14301031827926636, 0.20945477485656738, -0.2017333060503006, 0.477816641330719, 0.13357855379581451, -0.047498419880867004, -0.5385354161262512, -0.3456302285194397, 0.22266541421413422, -0.1405908316373825, -0.4416014552116394, -0.3532823324203491, 0.10531637072563171, 0.44279173016548157, 0.4636487662792206, 0.22372201085090637, -0.36424145102500916, 0.20659147202968597, 0.32425999641418457, 0.49592605233192444, -0.10298533737659454, -0.3239203989505768, -0.2783083915710449, 0.05787910893559456, -0.30748647451400757, -0.24396589398384094 ]
HuggingFaceH4/tiny-random-LlamaForCausalLM
HuggingFaceH4
"2023-04-19T21:39:04Z"
20,441
1
transformers
[ "transformers", "pytorch", "llama", "text-generation", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-04-17T07:42:23Z"
--- duplicated_from: HuggingFaceM4/tiny-random-LlamaForCausalLM ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
uer/sbert-base-chinese-nli
uer
"2023-10-17T15:29:59Z"
20,379
81
sentence-transformers
[ "sentence-transformers", "pytorch", "bert", "feature-extraction", "sentence-similarity", "transformers", "zh", "arxiv:1909.05658", "arxiv:2212.06385", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- language: zh pipeline_tag: sentence-similarity tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers license: apache-2.0 widget: - source_sentence: "那个人很开心" sentences: - "那个人非常开心" - "那只猫很开心" - "那个人在吃东西" --- # Chinese Sentence BERT ## Model description This is the sentence embedding model pre-trained by [UER-py](https://github.com/dbiir/UER-py/), which is introduced in [this paper](https://arxiv.org/abs/1909.05658). Besides, the model could also be pre-trained by [TencentPretrain](https://github.com/Tencent/TencentPretrain) introduced in [this paper](https://arxiv.org/abs/2212.06385), which inherits UER-py to support models with parameters above one billion, and extends it to a multimodal pre-training framework. ## How to use You can use this model to extract sentence embeddings for sentence similarity task. We use cosine distance to calculate the embedding similarity here: ```python >>> from sentence_transformers import SentenceTransformer >>> model = SentenceTransformer('uer/sbert-base-chinese-nli') >>> sentences = ['那个人很开心', '那个人非常开心'] >>> sentence_embeddings = model.encode(sentences) >>> from sklearn.metrics.pairwise import paired_cosine_distances >>> cosine_score = 1 - paired_cosine_distances([sentence_embeddings[0]],[sentence_embeddings[1]]) ``` ## Training data [ChineseTextualInference](https://github.com/liuhuanyong/ChineseTextualInference/) is used as training data. ## Training procedure The model is fine-tuned by [UER-py](https://github.com/dbiir/UER-py/) on [Tencent Cloud](https://cloud.tencent.com/). We fine-tune five epochs with a sequence length of 128 on the basis of the pre-trained model [chinese_roberta_L-12_H-768](https://huggingface.co/uer/chinese_roberta_L-12_H-768). At the end of each epoch, the model is saved when the best performance on development set is achieved. ``` python3 finetune/run_classifier_siamese.py --pretrained_model_path models/cluecorpussmall_roberta_base_seq512_model.bin-250000 \ --vocab_path models/google_zh_vocab.txt \ --config_path models/sbert/base_config.json \ --train_path datasets/ChineseTextualInference/train.tsv \ --dev_path datasets/ChineseTextualInference/dev.tsv \ --learning_rate 5e-5 --epochs_num 5 --batch_size 64 ``` Finally, we convert the pre-trained model into Huggingface's format: ``` python3 scripts/convert_sbert_from_uer_to_huggingface.py --input_model_path models/finetuned_model.bin \ --output_model_path pytorch_model.bin \ --layers_num 12 ``` ### BibTeX entry and citation info ``` @article{reimers2019sentence, title={Sentence-bert: Sentence embeddings using siamese bert-networks}, author={Reimers, Nils and Gurevych, Iryna}, journal={arXiv preprint arXiv:1908.10084}, year={2019} } @article{zhao2019uer, title={UER: An Open-Source Toolkit for Pre-training Models}, author={Zhao, Zhe and Chen, Hui and Zhang, Jinbin and Zhao, Xin and Liu, Tao and Lu, Wei and Chen, Xi and Deng, Haotang and Ju, Qi and Du, Xiaoyong}, journal={EMNLP-IJCNLP 2019}, pages={241}, year={2019} } @article{zhao2023tencentpretrain, title={TencentPretrain: A Scalable and Flexible Toolkit for Pre-training Models of Different Modalities}, author={Zhao, Zhe and Li, Yudong and Hou, Cheng and Zhao, Jing and others}, journal={ACL 2023}, pages={217}, year={2023} ```
[ -0.2526182532310486, -0.6679840087890625, 0.35056009888648987, 0.47231656312942505, -0.29865971207618713, -0.5111209750175476, -0.4459282159805298, -0.29287052154541016, 0.2632734477519989, 0.2917396128177643, -0.6461741924285889, -0.4884383976459503, -0.36332884430885315, -0.08660654723644257, 0.0026705956552177668, 0.9917126893997192, -0.12611378729343414, 0.32744771242141724, -0.28413036465644836, -0.19459857046604156, -0.09291759878396988, -0.642366349697113, -0.2590268552303314, -0.31683045625686646, 0.235004261136055, 0.06421993672847748, 0.3542279899120331, 0.35984212160110474, 0.40155503153800964, 0.4097272455692291, -0.04292510449886322, -0.16325730085372925, -0.3363327980041504, -0.2273121178150177, 0.27876579761505127, -0.3226069509983063, -0.5352215766906738, 0.1875305473804474, 0.5893145203590393, 0.5525450706481934, -0.101877361536026, 0.11365634948015213, 0.10690510272979736, 0.2871033251285553, -0.2603297531604767, 0.08348503708839417, -0.4034709930419922, 0.04485418647527695, -0.14652550220489502, 0.23117101192474365, -0.31901705265045166, -0.45110657811164856, 0.44731345772743225, -0.6523969769477844, 0.14860400557518005, -0.1196165680885315, 1.4129412174224854, 0.10733926296234131, -0.14131852984428406, -0.05878056213259697, -0.16922006011009216, 0.8496765494346619, -1.04278564453125, 0.4818301498889923, 0.1183679848909378, 0.061923786997795105, -0.05805085971951485, -0.9211686253547668, -0.7517908215522766, -0.32112258672714233, -0.30516135692596436, 0.13673917949199677, 0.03734137862920761, 0.16216173768043518, 0.2543007433414459, 0.3552435040473938, -0.6630165576934814, 0.08320827782154083, -0.25928446650505066, -0.41716140508651733, 0.6188063025474548, -0.1383255124092102, 0.39592957496643066, -0.5363186597824097, -0.485287606716156, -0.510372519493103, -0.38069725036621094, 0.3520300090312958, 0.2297285795211792, 0.2813176214694977, -0.48318973183631897, 0.3982139527797699, -0.11416281014680862, 0.5205898284912109, 0.051361676305532455, -0.11307010054588318, 0.7176733613014221, -0.38912343978881836, -0.28936848044395447, -0.07377662509679794, 1.2176363468170166, 0.23636946082115173, 0.4538581669330597, 0.0044858623296022415, -0.1435384303331375, -0.12703853845596313, 0.1370721012353897, -1.0761442184448242, -0.5428611040115356, 0.15515431761741638, -0.46180763840675354, -0.1633605808019638, 0.2673637568950653, -0.4605063498020172, 0.1348385214805603, -0.1796390861272812, 0.6535224318504333, -0.7994832992553711, -0.22466984391212463, 0.06624452024698257, 0.007117393892258406, 0.3793799579143524, 0.10317154228687286, -0.6081453561782837, 0.009293805807828903, 0.33637696504592896, 0.8348602652549744, 0.15855494141578674, -0.5578532814979553, -0.24456535279750824, -0.30343157052993774, -0.01229854766279459, 0.4978257715702057, -0.27292999625205994, -0.07897036522626877, -0.05823812261223793, 0.2990041971206665, -0.33862268924713135, -0.26512855291366577, 0.4143080413341522, -0.2314121425151825, 0.6579756736755371, -0.1754409223794937, -0.6195824146270752, -0.4160305857658386, 0.2158849984407425, -0.4616343379020691, 1.1910784244537354, 0.26224416494369507, -0.8214820027351379, 0.24796660244464874, -0.5948830842971802, -0.38033390045166016, -0.09649372100830078, -0.14438588917255402, -0.8219477534294128, -0.013777240179479122, 0.40062397718429565, 0.835880696773529, -0.017709245905280113, 0.2926695644855499, -0.5614588260650635, -0.32449954748153687, 0.07625145465135574, -0.08726315945386887, 1.3010103702545166, 0.13191989064216614, -0.3631952702999115, 0.275164932012558, -0.7097388505935669, 0.23676520586013794, 0.31352484226226807, -0.1645433008670807, -0.41656699776649475, -0.44393444061279297, 0.36602696776390076, 0.31966331601142883, 0.3645309805870056, -0.794011652469635, 0.16458824276924133, -0.5143935680389404, 0.5887395143508911, 0.6667940020561218, -0.14230358600616455, 0.33576110005378723, -0.242939293384552, 0.29453223943710327, 0.24181845784187317, 0.12489910423755646, -0.2873026430606842, -0.28866204619407654, -0.7805833220481873, -0.12917901575565338, 0.46342310309410095, 0.554507851600647, -0.7299808859825134, 0.8003916144371033, -0.42261645197868347, -0.7102934122085571, -0.8146829605102539, 0.059719376266002655, 0.49926507472991943, 0.3162505328655243, 0.4564858078956604, -0.29217761754989624, -0.5246028304100037, -0.6740031838417053, -0.15528975427150726, -0.10601525008678436, -0.09993430227041245, 0.31190767884254456, 0.6165193319320679, -0.21220241487026215, 0.7948940396308899, -0.4132416248321533, -0.2929852604866028, -0.24619761109352112, 0.10290046036243439, 0.17865778505802155, 0.8806284666061401, 0.8762742877006531, -0.6558817028999329, -0.5347952842712402, -0.33840474486351013, -0.9025959968566895, 0.11974812299013138, -0.35960134863853455, -0.3163869082927704, 0.2082664668560028, 0.48071038722991943, -0.5644752979278564, 0.24078074097633362, 0.4981032907962799, -0.3408187925815582, 0.5574159622192383, -0.29295453429222107, -0.07400453835725784, -1.4229187965393066, 0.14977744221687317, 0.19759494066238403, -0.06844767928123474, -0.44104838371276855, 0.07477390021085739, 0.1724603921175003, -0.03340736776590347, -0.5178955793380737, 0.4223003089427948, -0.6060574650764465, 0.1317872703075409, 0.23864339292049408, 0.26462632417678833, -0.040779441595077515, 0.8185047507286072, 0.13359296321868896, 0.6203356385231018, 0.5120878219604492, -0.6268813610076904, 0.3080461621284485, 0.5485772490501404, -0.47007787227630615, 0.3840155005455017, -0.9960070252418518, 0.10632917284965515, 0.1462736427783966, 0.24634309113025665, -0.8482089042663574, -0.10262248665094376, 0.21969623863697052, -0.6570048332214355, 0.23220303654670715, 0.12183774262666702, -0.4821224808692932, -0.529178261756897, -0.525558352470398, 0.2151389718055725, 0.4803829789161682, -0.6058075428009033, 0.4971325993537903, 0.06736631691455841, -0.04935586452484131, -0.4768219292163849, -0.8340990543365479, -0.313514769077301, -0.1676526516675949, -0.8351320028305054, 0.5138379335403442, -0.24213063716888428, 0.2929557263851166, 0.056095823645591736, 0.19561217725276947, -0.055182743817567825, 0.06902723014354706, 0.25573307275772095, 0.3680574893951416, -0.4135964810848236, 0.17720408737659454, 0.04561822861433029, 0.019465332850813866, 0.09412037581205368, -0.22003397345542908, 0.6718219518661499, -0.2494949996471405, -0.14293411374092102, -0.6838111281394958, 0.010694297030568123, 0.29229825735092163, -0.28962278366088867, 0.9179853796958923, 1.1313170194625854, -0.3484673798084259, 0.15433156490325928, -0.503218412399292, -0.27687186002731323, -0.5006132125854492, 0.47647106647491455, -0.49598798155784607, -0.8867958188056946, 0.44490310549736023, 0.0035148216411471367, 0.04138907790184021, 0.5890917778015137, 0.325514554977417, -0.07288838922977448, 0.7266687750816345, 0.8013781309127808, -0.19836439192295074, 0.763949990272522, -0.582334578037262, 0.0073216697201132774, -0.9114112257957458, -0.29490935802459717, -0.3408486545085907, -0.12674279510974884, -0.7604312300682068, -0.14548766613006592, 0.2572958171367645, 0.21635444462299347, -0.5648930072784424, 0.6435613036155701, -0.5649527907371521, 0.06223221495747566, 0.7472910284996033, 0.28662464022636414, -0.2003941684961319, 0.06744273006916046, -0.46948498487472534, -0.15255609154701233, -0.6216243505477905, -0.34539079666137695, 0.9706990122795105, 0.4204823076725006, 0.6253268718719482, -0.07942385226488113, 0.8795874714851379, -0.22205539047718048, 0.004574986640363932, -0.5414581894874573, 0.5361932516098022, -0.2578620910644531, -0.41511332988739014, -0.3485686480998993, -0.4857271909713745, -0.8310521841049194, 0.17882269620895386, -0.36034876108169556, -0.7812268137931824, -0.05450139194726944, -0.09936489909887314, -0.595176637172699, 0.33531174063682556, -0.729900598526001, 1.2347897291183472, -0.4012965261936188, -0.11188028007745743, 0.1005762368440628, -0.85099858045578, 0.22993457317352295, 0.17612692713737488, -0.24604815244674683, 0.0485723651945591, 0.28025200963020325, 1.053992509841919, -0.5401528477668762, 0.8212576508522034, -0.36121606826782227, 0.09092365205287933, 0.24854499101638794, -0.23622025549411774, 0.24140481650829315, -0.09562411904335022, 0.034319572150707245, 0.3531310260295868, 0.1375625878572464, -0.47948017716407776, -0.36413922905921936, 0.6355500817298889, -1.1831121444702148, -0.35697346925735474, -0.42878761887550354, -0.3797135353088379, 0.022374652326107025, 0.41478559374809265, 0.5396032929420471, 0.42894789576530457, -0.2588401436805725, 0.38276979327201843, 0.5210580229759216, -0.5363328456878662, 0.673051655292511, 0.2543400824069977, -0.07223241031169891, -0.5186142921447754, 0.7752012610435486, 0.12442559748888016, 0.13005422055721283, 0.40688350796699524, 0.10469071567058563, -0.40984347462654114, -0.2707167863845825, -0.35530805587768555, 0.6041471362113953, -0.38861480355262756, -0.10074806213378906, -0.9104016423225403, -0.4700528383255005, -0.8330814838409424, -0.035040777176618576, -0.4134976863861084, -0.24939964711666107, -0.42762309312820435, -0.004096179269254208, 0.5086815357208252, 0.5518031120300293, -0.07673516124486923, 0.6401747465133667, -0.8305739164352417, 0.10459206998348236, 0.12667474150657654, 0.4460536539554596, 0.05653035640716553, -0.7502098083496094, -0.36481770873069763, 0.19054459035396576, -0.3949790298938751, -0.6290162205696106, 0.4865340292453766, 0.24917973577976227, 0.6560053825378418, 0.5371041297912598, 0.1554322987794876, 0.8099812269210815, -0.37619584798812866, 0.9465537667274475, 0.29334452748298645, -0.9444349408149719, 0.6413446068763733, -0.09731904417276382, 0.2622557282447815, 0.5506904721260071, 0.5987242460250854, -0.4945724308490753, 0.032650385051965714, -0.781654417514801, -0.7499462962150574, 0.8763967156410217, 0.11573535203933716, 0.2932698726654053, 0.18831098079681396, 0.43659985065460205, -0.06419365853071213, 0.09236083924770355, -1.0619707107543945, -0.25660252571105957, -0.5045310854911804, -0.36387091875076294, -0.2982420027256012, -0.17034775018692017, 0.21292859315872192, -0.5460945963859558, 0.7758257389068604, 0.0025230669416487217, 0.5997775197029114, 0.3347061574459076, -0.44073009490966797, 0.19074079394340515, 0.030595194548368454, 0.45744243264198303, 0.15592879056930542, -0.38119685649871826, -0.27940934896469116, 0.17513543367385864, -0.5609073638916016, -0.0440114289522171, 0.47028282284736633, -0.13914549350738525, 0.13968773186206818, 0.541811466217041, 0.9820443391799927, 0.2788819372653961, -0.42259466648101807, 0.7929899096488953, -0.040702562779188156, -0.2289784550666809, -0.5637010335922241, -0.03665651008486748, 0.10385442525148392, 0.28352510929107666, 0.07861991226673126, -0.20866762101650238, -0.1784801334142685, -0.41797304153442383, 0.28146374225616455, 0.2627972662448883, -0.5234709978103638, -0.5120706558227539, 0.6823265552520752, 0.25584882497787476, -0.12973111867904663, 1.0280205011367798, -0.2272237092256546, -0.8090484142303467, 0.5004504323005676, 0.42788174748420715, 0.9096616506576538, -0.2369854748249054, 0.2475523054599762, 0.6852462291717529, 0.22417785227298737, 0.007344729267060757, 0.2643357217311859, -0.05610809475183487, -0.8662628531455994, -0.1939886212348938, -0.6423288583755493, 0.06757617741823196, 0.2582658529281616, -0.7315596342086792, 0.24700190126895905, -0.40578901767730713, -0.09228678792715073, -0.04189756512641907, 0.3830190598964691, -0.808597981929779, 0.260306715965271, 0.07319246232509613, 0.8779693841934204, -0.837404727935791, 0.9752983450889587, 0.9195565581321716, -0.8091123104095459, -1.0684138536453247, 0.031457480043172836, -0.15629449486732483, -0.8778373003005981, 0.5130889415740967, 0.5440130829811096, 0.25538739562034607, 0.0721023753285408, -0.6119664311408997, -0.652920126914978, 1.4065264463424683, 0.3019995093345642, -0.47470951080322266, -0.22055034339427948, -0.007103693205863237, 0.51860511302948, -0.4203939139842987, 0.49178561568260193, 0.35961583256721497, 0.26854655146598816, 0.013703905045986176, -0.953937292098999, 0.2515191435813904, -0.4656882584095001, 0.24568718671798706, -0.10171612352132797, -0.8085643649101257, 1.2285431623458862, -0.43033915758132935, -0.15235450863838196, 0.2506134808063507, 0.8253404498100281, 0.23863781988620758, 0.14248991012573242, 0.5626384615898132, 0.7909070253372192, 0.6425063014030457, -0.13056717813014984, 0.9302665591239929, -0.3109954297542572, 0.49909326434135437, 1.0183453559875488, 0.15259289741516113, 0.8962669968605042, 0.20432274043560028, -0.2915886640548706, 0.8561908602714539, 0.867277979850769, -0.17840078473091125, 0.4615230858325958, 0.015389588661491871, 0.15631240606307983, -0.33907684683799744, 0.05172395333647728, -0.6559120416641235, 0.4901276230812073, 0.008581842295825481, -0.35751351714134216, -0.05800611898303032, 0.07119153439998627, 0.35444197058677673, 0.010198618285357952, 0.05452077463269234, 0.7317367792129517, 0.1444927453994751, -0.5196754336357117, 0.6257357001304626, -0.05450521036982536, 1.0502989292144775, -0.6204103231430054, 0.1554829180240631, -0.1777866929769516, 0.36127692461013794, 0.02078351192176342, -0.5961478352546692, -0.059838827699422836, -0.2671898603439331, 0.10424982011318207, -0.05379772558808327, 0.47803300619125366, -0.6538044810295105, -0.4634638726711273, 0.43040135502815247, 0.5400078296661377, 0.2441164255142212, -0.21730633080005646, -1.1474674940109253, -0.059079818427562714, 0.13565929234027863, -0.5093492269515991, 0.2603651285171509, 0.661210298538208, 0.16189683973789215, 0.5267903208732605, 0.6573344469070435, -0.08292223513126373, -0.0699322372674942, 0.09802372008562088, 0.9503096342086792, -0.8719700574874878, -0.7515411376953125, -0.7493898868560791, 0.5969403982162476, -0.15939851105213165, -0.5723543167114258, 0.767177402973175, 0.376958966255188, 1.1085416078567505, -0.08219540864229202, 0.5833520889282227, -0.1910889446735382, 0.38386082649230957, -0.5254796147346497, 0.9641225337982178, -0.7716717720031738, -0.013370341621339321, -0.5434970855712891, -0.8583449721336365, -0.11877097189426422, 0.9670382738113403, -0.2542605698108673, 0.4014657139778137, 0.6105855107307434, 0.7602798342704773, -0.0668712854385376, -0.13037018477916718, 0.10450341552495956, 0.4075081944465637, 0.2631038725376129, 0.6756414175033569, 0.35649970173835754, -0.8062711358070374, 0.5396965146064758, -0.6312969326972961, -0.09542125463485718, -0.22705605626106262, -0.8062788844108582, -1.1454355716705322, -0.8527184128761292, -0.30667829513549805, -0.3744625449180603, -0.12321837991476059, 1.0517631769180298, 0.8122066259384155, -0.8502183556556702, -0.13349400460720062, -0.030609481036663055, -0.2209017425775528, -0.21792548894882202, -0.2588750720024109, 0.6591929793357849, -0.3323444128036499, -0.6563023328781128, -0.1468164175748825, -0.2678050696849823, 0.3778442442417145, -0.19681416451931, -0.262406587600708, -0.5599132776260376, -0.15335021913051605, 0.5562675595283508, 0.08176040649414062, -0.8015226721763611, -0.30552878975868225, 0.18523672223091125, -0.22223134338855743, -0.0571637861430645, 0.4249570369720459, -0.6904773712158203, 0.4032943546772003, 0.32396483421325684, 0.5627321600914001, 0.5783069133758545, -0.11747486144304276, 0.45862752199172974, -0.7460892796516418, 0.34060177206993103, -0.046440839767456055, 0.48666268587112427, 0.49048805236816406, -0.1975986361503601, 0.5215803384780884, 0.38914385437965393, -0.48974609375, -0.7212254405021667, -0.19424892961978912, -1.1920803785324097, -0.21804504096508026, 0.9424013495445251, -0.6744176745414734, -0.2760635316371918, 0.34830600023269653, -0.12227317690849304, 0.5861839056015015, -0.3047705590724945, 0.5701128244400024, 0.6356078386306763, 0.0754704549908638, -0.2870066165924072, -0.18990416824817657, 0.4287234842777252, 0.4370836019515991, -0.682451605796814, -0.2480977326631546, 0.23412883281707764, 0.43798378109931946, 0.24907563626766205, 0.5269739627838135, -0.005027048755437136, 0.15785926580429077, 0.029096703976392746, 0.43607857823371887, -0.16057875752449036, -0.09783132374286652, -0.2941659092903137, -0.18603479862213135, -0.34916505217552185, -0.3885749578475952 ]
circulus/canvers-ko2en-v1
circulus
"2023-05-22T09:59:34Z"
20,260
0
transformers
[ "transformers", "pytorch", "bart", "text2text-generation", "license:gpl-3.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
text2text-generation
"2023-05-17T01:56:49Z"
--- license: gpl-3.0 ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
Helsinki-NLP/opus-mt-ca-en
Helsinki-NLP
"2023-08-16T11:26:39Z"
20,170
0
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "ca", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-ca-en * source languages: ca * target languages: en * OPUS readme: [ca-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/ca-en/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2019-12-18.zip](https://object.pouta.csc.fi/OPUS-MT-models/ca-en/opus-2019-12-18.zip) * test set translations: [opus-2019-12-18.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/ca-en/opus-2019-12-18.test.txt) * test set scores: [opus-2019-12-18.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/ca-en/opus-2019-12-18.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba.ca.en | 51.4 | 0.678 |
[ -0.22843801975250244, -0.4902068078517914, 0.2982475757598877, 0.5361901521682739, -0.4555743336677551, -0.3874513506889343, -0.46713221073150635, -0.06076457351446152, 0.10035433620214462, 0.5174208283424377, -0.7507784962654114, -0.6851482391357422, -0.6526252627372742, 0.18329977989196777, -0.07761573046445847, 0.756034791469574, -0.19997833669185638, 0.6001480221748352, 0.33401191234588623, -0.46197107434272766, -0.38560962677001953, -0.48261669278144836, -0.6048897504806519, -0.3721509873867035, 0.39282599091529846, 0.3861131966114044, 0.44083407521247864, 0.4642416834831238, 0.9924204349517822, 0.21205824613571167, -0.08510977029800415, 0.10178948193788528, -0.5215869545936584, -0.1649247407913208, 0.06293558329343796, -0.7054517269134521, -0.7788446545600891, -0.1973622888326645, 1.158819556236267, 0.4143533706665039, -0.09410011023283005, 0.3986213207244873, -0.03713547810912132, 0.9764601588249207, -0.4595572352409363, 0.16115592420101166, -0.6957695484161377, 0.061340443789958954, -0.38866403698921204, -0.42699530720710754, -0.7496498823165894, -0.296529084444046, 0.10621675103902817, -0.7314310669898987, 0.019053000956773758, 0.08555010706186295, 1.5641978979110718, 0.3960358500480652, -0.4053429067134857, -0.1898748129606247, -0.5932469367980957, 1.0921019315719604, -0.8148691654205322, 0.6878487467765808, 0.4809650480747223, 0.32219183444976807, 0.17373880743980408, -0.6464473605155945, -0.36390069127082825, 0.10512407124042511, -0.10232511162757874, 0.28093627095222473, -0.04721364006400108, -0.2913558781147003, 0.27391159534454346, 0.8218142986297607, -0.7768216729164124, 0.06007511913776398, -0.5830844044685364, -0.10608598589897156, 0.7297808527946472, 0.14013579487800598, 0.21177120506763458, -0.04693783074617386, -0.48423436284065247, -0.6928766965866089, -0.8575261235237122, 0.1890401393175125, 0.4136483073234558, 0.39412564039230347, -0.5461174845695496, 0.7383098006248474, -0.16062110662460327, 0.5818402171134949, -0.03416306525468826, 0.06577600538730621, 1.0443381071090698, -0.39753130078315735, -0.3953586518764496, -0.09875153005123138, 1.3088983297348022, 0.2837749421596527, 0.08054979890584946, 0.04369169846177101, -0.22046364843845367, -0.20476402342319489, 0.09908152371644974, -0.9585006833076477, -0.07692338526248932, 0.11305739730596542, -0.454267293214798, -0.0941886380314827, 0.0868610292673111, -0.6721184849739075, 0.2396688461303711, -0.46691709756851196, 0.623814046382904, -0.6009102463722229, -0.2591317594051361, 0.43915092945098877, 0.08848413825035095, 0.5415736436843872, -0.011582649312913418, -0.6999084949493408, 0.2936684489250183, 0.40920984745025635, 0.806038498878479, -0.5092820525169373, -0.2820208966732025, -0.5950396060943604, -0.24847930669784546, -0.13590383529663086, 0.7299768924713135, -0.10649305582046509, -0.5389731526374817, -0.030991345643997192, 0.5697574615478516, -0.4783153235912323, -0.32252997159957886, 1.4774401187896729, -0.3383130729198456, 0.6477141976356506, -0.6273474097251892, -0.4578515887260437, -0.31369587779045105, 0.513630747795105, -0.7007390260696411, 1.441389799118042, 0.020941292867064476, -0.8695568442344666, 0.22924460470676422, -0.9322763085365295, -0.22387804090976715, -0.07367400825023651, 0.040401436388492584, -0.6388612985610962, 0.0400874949991703, 0.22785614430904388, 0.39269042015075684, -0.4062601327896118, 0.3748914301395416, 0.002924316329881549, -0.3364886939525604, 0.08417869359254837, -0.47547435760498047, 1.1162551641464233, 0.35826119780540466, -0.38845762610435486, 0.20379555225372314, -0.9846253991127014, -0.06791137903928757, -0.033970907330513, -0.5481002330780029, -0.11678490787744522, 0.09315265715122223, 0.3719523251056671, 0.1551768183708191, 0.4248466193675995, -0.7437196969985962, 0.23787470161914825, -0.6941149234771729, 0.17245785892009735, 0.6701196432113647, -0.29376280307769775, 0.3665544390678406, -0.40425020456314087, 0.39092928171157837, 0.18532656133174896, 0.13922862708568573, 0.05796392261981964, -0.5268182754516602, -0.9391495585441589, -0.25041162967681885, 0.6262034177780151, 1.2036681175231934, -0.8471987843513489, 0.860411524772644, -0.7553972601890564, -0.888140857219696, -0.8492732048034668, -0.13588815927505493, 0.546036422252655, 0.40166014432907104, 0.6229755878448486, -0.27874183654785156, -0.3904203474521637, -1.1879003047943115, -0.13340045511722565, -0.16585156321525574, -0.13346263766288757, 0.12233598530292511, 0.6756213903427124, -0.176964670419693, 0.5678704977035522, -0.6148563027381897, -0.45636141300201416, -0.12027334421873093, 0.14618846774101257, 0.444299578666687, 0.7198031544685364, 0.5642618536949158, -1.0052591562271118, -0.5752114057540894, -0.005894888192415237, -0.7148342728614807, -0.11900898814201355, 0.11379212141036987, -0.23566707968711853, 0.029615368694067, 0.08719956129789352, -0.27564701437950134, 0.22178803384304047, 0.6732547283172607, -0.6048200130462646, 0.5479487776756287, -0.18602371215820312, 0.3651162385940552, -1.484998345375061, 0.16908733546733856, -0.07534735649824142, -0.03795602172613144, -0.4276721477508545, 0.06405457109212875, 0.3414640724658966, 0.10198625922203064, -0.9818971157073975, 0.5999406576156616, -0.2555696368217468, -0.007010305766016245, 0.3045293092727661, -0.04733199253678322, 0.02860303595662117, 0.8574165105819702, 0.04961730167269707, 0.9447202682495117, 0.8132150173187256, -0.6137521266937256, 0.13829278945922852, 0.6287998557090759, -0.450408935546875, 0.3570657968521118, -0.8856170177459717, -0.3282652795314789, 0.4011407196521759, -0.026685182005167007, -0.6861322522163391, 0.1429121196269989, 0.32111287117004395, -0.685336709022522, 0.4201677739620209, 0.05414337292313576, -0.9039965867996216, 0.00044512393651530147, -0.30720797181129456, 0.6769421696662903, 0.6865724921226501, -0.29083794355392456, 0.6129269003868103, 0.10226837545633316, 0.052649255841970444, -0.5907415151596069, -1.2058231830596924, -0.06939730793237686, -0.38300520181655884, -0.7553116679191589, 0.24660706520080566, -0.4956774115562439, 0.05071556195616722, -0.06077142059803009, 0.3605377972126007, -0.15687735378742218, 0.04566830024123192, 0.10016593337059021, 0.1926337033510208, -0.5530295968055725, 0.1064729318022728, 0.03723786771297455, -0.13047011196613312, -0.18339933454990387, -0.0759577825665474, 0.6529029607772827, -0.3912087380886078, -0.3492175340652466, -0.7727111577987671, -0.029200615361332893, 0.6161027550697327, -0.571832001209259, 0.9261106252670288, 0.6267313361167908, -0.17270751297473907, 0.1716507375240326, -0.5099092721939087, 0.12272819131612778, -0.46577808260917664, 0.10607647895812988, -0.5602049827575684, -0.8422342538833618, 0.685362696647644, 0.18315643072128296, 0.4857425093650818, 0.9585413932800293, 0.7872321605682373, 0.27248746156692505, 0.7031208276748657, 0.32389509677886963, -0.012661667540669441, 0.4717625081539154, -0.5678632259368896, -0.12879860401153564, -1.1531789302825928, 0.032546233385801315, -0.8840367197990417, -0.28552645444869995, -0.9259247183799744, -0.30178043246269226, 0.21875910460948944, -0.045483510941267014, -0.24984221160411835, 0.8129080533981323, -0.6083075404167175, 0.24874357879161835, 0.5629673600196838, -0.09136346727609634, 0.3183508515357971, 0.0003158897743560374, -0.6256766319274902, -0.21898069977760315, -0.47667959332466125, -0.6205362677574158, 1.4051566123962402, 0.48551157116889954, 0.34685206413269043, 0.2744831442832947, 0.5161209106445312, 0.002630020724609494, 0.25581902265548706, -0.6862446069717407, 0.4844459593296051, -0.31717586517333984, -0.7670659422874451, -0.2979735732078552, -0.6251152157783508, -0.9638949632644653, 0.5246952176094055, -0.25832825899124146, -0.6533701419830322, 0.3121996223926544, -0.03881223127245903, -0.1196308434009552, 0.5121564269065857, -0.7247892022132874, 1.2380015850067139, -0.049836982041597366, -0.1220361515879631, 0.2870807349681854, -0.47904375195503235, 0.3855075538158417, -0.04938172549009323, 0.2793584167957306, -0.13344943523406982, 0.10516827553510666, 0.6859921813011169, -0.11149416118860245, 0.5057634115219116, 0.0033514464739710093, -0.15221373736858368, 0.14307788014411926, 0.08468832820653915, 0.3507678508758545, -0.10546556115150452, -0.5262128114700317, 0.42399412393569946, 0.15316727757453918, -0.5293132662773132, -0.11326853930950165, 0.6922184824943542, -0.8624037504196167, 0.017518267035484314, -0.5233115553855896, -0.7364208102226257, 0.022397639229893684, 0.2896440327167511, 0.7689221501350403, 0.8160900473594666, -0.3592323660850525, 0.5933188199996948, 0.896767258644104, -0.3388354778289795, 0.43533238768577576, 0.7924201488494873, -0.13526782393455505, -0.5865141153335571, 0.9525429010391235, 0.14218461513519287, 0.37967023253440857, 0.7307015061378479, 0.03240354359149933, -0.25102654099464417, -0.8076002597808838, -0.7270122170448303, 0.28749170899391174, -0.33888402581214905, -0.1547626256942749, -0.6389994025230408, -0.10566780716180801, -0.3524104058742523, 0.29613903164863586, -0.565864086151123, -0.5851876139640808, -0.24876077473163605, -0.24883818626403809, 0.13057301938533783, 0.1874571293592453, 0.0033788441214710474, 0.6180613040924072, -1.106062650680542, 0.21378596127033234, -0.16384810209274292, 0.36548131704330444, -0.4279114007949829, -0.8286404609680176, -0.4976332187652588, 0.12144956737756729, -0.8465725779533386, -0.7753005027770996, 0.5791124105453491, 0.09302081912755966, 0.31609058380126953, 0.38376423716545105, 0.20153267681598663, 0.45085203647613525, -0.6913954019546509, 1.1584542989730835, -0.015715643763542175, -0.8067034482955933, 0.5318028330802917, -0.461741179227829, 0.5421944260597229, 1.0598140954971313, 0.2587791383266449, -0.2933295667171478, -0.5778180360794067, -0.8129147291183472, -0.8324288129806519, 0.8396613597869873, 0.8338520526885986, -0.17274977266788483, 0.13717041909694672, -0.0722908228635788, -0.06784981489181519, 0.11811959743499756, -1.2291638851165771, -0.3622739315032959, 0.0678286924958229, -0.4366658329963684, -0.2851879596710205, -0.1977052390575409, -0.17965097725391388, -0.13876746594905853, 1.2327697277069092, 0.12009473145008087, 0.12038011848926544, 0.5272125601768494, -0.18954719603061676, -0.2560107111930847, 0.39238646626472473, 1.0851768255233765, 0.6252756714820862, -0.5422431826591492, -0.23240774869918823, 0.39707425236701965, -0.531677782535553, -0.20454750955104828, 0.09787824004888535, -0.39281007647514343, 0.24445068836212158, 0.48057451844215393, 1.1249067783355713, 0.2908577024936676, -0.7041122913360596, 0.5162686109542847, -0.5171934366226196, -0.47902029752731323, -0.7257484197616577, -0.11479974538087845, 0.09208313375711441, -0.03449629247188568, 0.2887309193611145, 0.1015179231762886, 0.1958218514919281, -0.28742846846580505, 0.09715818613767624, 0.08852534741163254, -0.8257289528846741, -0.6216031312942505, 0.5461484789848328, 0.11339163780212402, -0.36318114399909973, 0.4973692297935486, -0.3608919084072113, -0.5735778212547302, 0.5395882725715637, 0.1294938325881958, 1.1454627513885498, -0.25829413533210754, -0.24204039573669434, 0.8551161289215088, 0.6326619386672974, -0.36458948254585266, 0.5093944072723389, 0.049467217177152634, -0.7602031826972961, -0.5493842363357544, -0.9312142729759216, -0.19290640950202942, 0.13222713768482208, -0.9931051135063171, 0.4743247628211975, 0.28857192397117615, 0.021448969841003418, -0.37092554569244385, 0.3142317235469818, -0.6633210778236389, 0.19171902537345886, -0.344896525144577, 1.2653694152832031, -1.066438913345337, 1.0068258047103882, 0.5390552282333374, -0.34069886803627014, -0.9713427424430847, -0.2789969742298126, -0.2290000170469284, -0.5386231541633606, 0.6536197662353516, 0.21788111329078674, 0.2890676259994507, -0.15702691674232483, -0.28890326619148254, -0.8378552794456482, 1.3261423110961914, 0.24683044850826263, -0.6783071160316467, 0.06422898918390274, 0.20543894171714783, 0.5660926699638367, -0.45507657527923584, 0.14328931272029877, 0.5136460661888123, 0.7717834711074829, 0.14569203555583954, -1.2893211841583252, -0.3074339032173157, -0.578339159488678, -0.3794141411781311, 0.5373035073280334, -0.7075040936470032, 0.9967269897460938, 0.5205919742584229, -0.1773444563150406, 0.17583370208740234, 0.6761013865470886, 0.3937839865684509, 0.43007761240005493, 0.5455136895179749, 1.2995020151138306, 0.3932575583457947, -0.5033157467842102, 1.0930966138839722, -0.3568739593029022, 0.512181282043457, 1.317631483078003, -0.0794975534081459, 1.0629053115844727, 0.35241439938545227, -0.08426197618246078, 0.5440274477005005, 0.8035082817077637, -0.28141748905181885, 0.511105477809906, 0.06784278154373169, 0.1589345932006836, -0.17332084476947784, 0.1758091151714325, -0.8167452216148376, 0.2907036244869232, 0.2451809197664261, -0.23605211079120636, 0.03204503655433655, -0.1176142692565918, 0.021453827619552612, 0.03833748400211334, -0.21902801096439362, 0.6630741357803345, 0.02767518162727356, -0.6992554068565369, 0.7329705357551575, -0.049425650388002396, 0.671390950679779, -0.8012072443962097, 0.13660196959972382, -0.02653605490922928, 0.25513142347335815, -0.03016616217792034, -0.6092801690101624, 0.4341346025466919, 0.012634171172976494, -0.25353100895881653, -0.3997856080532074, 0.12893137335777283, -0.570296585559845, -0.9794242978096008, 0.4621991217136383, 0.44622883200645447, 0.4270026683807373, 0.056650903075933456, -0.9584220051765442, 0.054566845297813416, 0.12553493678569794, -0.6011515259742737, 0.09223947674036026, 0.7767340540885925, 0.24579773843288422, 0.5402966141700745, 0.7661594748497009, 0.301655113697052, 0.29130804538726807, 0.06571777909994125, 0.7416499853134155, -0.45940038561820984, -0.5926727056503296, -0.8419091701507568, 0.8728130459785461, -0.05262918770313263, -0.7907761931419373, 0.7110131978988647, 1.1756691932678223, 1.0567463636398315, -0.11029817909002304, 0.2242865413427353, 0.03639252483844757, 0.6392759084701538, -0.7339038252830505, 0.6735193729400635, -1.0104331970214844, 0.2967025637626648, -0.11814823746681213, -1.0958753824234009, -0.2826060950756073, 0.23143553733825684, -0.2743762135505676, -0.4207995533943176, 0.9153299331665039, 0.8359880447387695, -0.2692168056964874, -0.1809280514717102, 0.2996167540550232, 0.2881617844104767, 0.32556650042533875, 0.6790638566017151, 0.3761664032936096, -1.1359316110610962, 0.6023333668708801, -0.26033565402030945, -0.12564074993133545, 0.01750805787742138, -0.7783514857292175, -0.9186846017837524, -0.7386983036994934, -0.2322046458721161, -0.21189576387405396, -0.34424448013305664, 0.9285447001457214, 0.5858011245727539, -1.0325356721878052, -0.6388900876045227, 0.010687552392482758, 0.09801093488931656, -0.16687335073947906, -0.2824615240097046, 0.7474974393844604, -0.3959023654460907, -1.054565668106079, 0.47248736023902893, 0.037007108330726624, -0.12336914241313934, -0.02235332876443863, -0.3760758936405182, -0.5650778412818909, -0.02092009410262108, 0.25928300619125366, 0.14883138239383698, -0.6476389765739441, 0.15074148774147034, 0.12272009998559952, -0.1125517264008522, 0.39419347047805786, 0.4640175998210907, -0.2873072028160095, 0.2928648889064789, 0.8489287495613098, 0.4888346493244171, 0.5540066361427307, -0.15564541518688202, 0.5715219974517822, -0.6904827356338501, 0.3704071640968323, 0.1756010204553604, 0.6862571835517883, 0.40759649872779846, -0.11904054880142212, 0.8726918697357178, 0.1856537014245987, -0.7092629075050354, -1.147497296333313, 0.07469864934682846, -1.481065273284912, 0.06558821350336075, 1.0005649328231812, -0.32212015986442566, -0.3757348358631134, 0.40108156204223633, -0.19661009311676025, 0.24358254671096802, -0.4186226725578308, 0.4237477481365204, 0.9475681781768799, 0.464752197265625, 0.11108069121837616, -0.7901356220245361, 0.3376692235469818, 0.5802380442619324, -0.8100252747535706, -0.2581236660480499, 0.183076873421669, 0.14129500091075897, 0.428895503282547, 0.5393092036247253, -0.42417430877685547, 0.19936609268188477, -0.37665876746177673, 0.44053399562835693, -0.01676950789988041, -0.1788261979818344, -0.36852580308914185, 0.011837810277938843, -0.06053417548537254, -0.35136961936950684 ]
KoboldAI/LLaMA2-13B-Tiefighter
KoboldAI
"2023-10-19T16:55:50Z"
20,142
33
transformers
[ "transformers", "pytorch", "llama", "text-generation", "license:llama2", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-10-18T18:22:59Z"
--- license: llama2 --- # LLaMA2-13B-Tiefighter Tiefighter is a merged model achieved trough merging two different lora's on top of a well established existing merge. To achieve this the following recipe was used: * We begin with the base model Undi95/Xwin-MLewd-13B-V0.2 which is a well established merged, contrary to the name this model does not have a strong NSFW bias. * Then we applied the PocketDoc/Dans-RetroRodeo-13b lora which is a finetune on the Choose your own Adventure datasets from our Skein model. * After applying this lora we merged the new model with PocketDoc/Dans-RetroRodeo-13b at 5% to weaken the newly introduced adventure bias. * The resulting merge was used as a new basemodel to which we applied Blackroot/Llama-2-13B-Storywriter-LORA and repeated the same trick, this time at 10%. This means this model contains the following ingredients from their upstream models for as far as we can track them: - Undi95/Xwin-MLewd-13B-V0.2 - - Undi95/ReMM-S-Light - Undi95/CreativeEngine - Brouz/Slerpeno - - elinas/chronos-13b-v2 - jondurbin/airoboros-l2-13b-2.1 - NousResearch/Nous-Hermes-Llama2-13b+nRuaif/Kimiko-v2 - CalderaAI/13B-Legerdemain-L2+lemonilia/limarp-llama2-v2 - - KoboldAI/LLAMA2-13B-Holodeck-1 - NousResearch/Nous-Hermes-13b - OpenAssistant/llama2-13b-orca-8k-3319 - ehartford/WizardLM-1.0-Uncensored-Llama2-13b - Henk717/spring-dragon - The-Face-Of-Goonery/Huginn-v3-13b (Contains undisclosed model versions, those we assumed where possible) - - SuperCOT (Undisclosed version) - elinas/chronos-13b-v2 (Version assumed) - NousResearch/Nous-Hermes-Llama2-13b - stabilityai/StableBeluga-13B (Version assumed) - zattio770/120-Days-of-LORA-v2-13B - PygmalionAI/pygmalion-2-13b - Undi95/Storytelling-v1-13B-lora - TokenBender/sakhi_13B_roleplayer_NSFW_chat_adapter - nRuaif/Kimiko-v2-13B - The-Face-Of-Goonery/Huginn-13b-FP16 - - "a lot of different models, like hermes, beluga, airoboros, chronos.. limarp" - lemonilia/LimaRP-Llama2-13B-v3-EXPERIMENT - Xwin-LM/Xwin-LM-13B-V0.2 - PocketDoc/Dans-RetroRodeo-13b - Blackroot/Llama-2-13B-Storywriter-LORA While we could possibly not credit every single lora or model involved in this merged model, we'd like to thank all involved creators upstream for making this awesome model possible! Thanks to you the AI ecosystem is thriving, and without your dedicated tuning efforts models such as this one would not be possible. # Usage This model is meant to be creative, If you let it improvise you get better results than if you drown it in details. ## Story Writing Regular story writing in the traditional way is supported, simply copy paste your story and continue writing. Optionally use an instruction in memory or an authors note to guide the direction of your story. ### Generate a story on demand To generate stories on demand you can use an instruction (tested in the Alpaca format) such as "Write a novel about X, use chapters and dialogue" this will generate a story. The format can vary between generations depending on how the model chooses to begin, either write what you want as shown in the earlier example or write the beginning of the story yourself so the model can follow your style. A few retries can also help if the model gets it wrong. ## Chatbots and persona's This model has been tested with various forms of chatting, testers have found that typically less is more and the model is good at improvising. Don't drown the model in paragraphs of detailed information, instead keep it simple first and see how far you can lean on the models own ability to figure out your character. Copy pasting paragraphs of background information is not suitable for a 13B model such as this one, code formatted characters or an instruction prompt describing who you wish to talk to goes much further. For example, you can put this in memory in regular chat mode: ``` ### Instruction: Generate a conversation between Alice and Henk where they discuss language models. In this conversation Henk is excited to teach Alice about Tiefigther. ### Response: ``` Because the model is a merge of a variety of models, it should support a broad range of instruct formats, or plain chat mode. If you have a particular favourite try it, otherwise we recommend to either use the regular chat mode or Alpaca's format. ## Instruct Prompting This model features various instruct models on a variety of instruction styles, when testing the model we have used Alpaca for our own tests. If you prefer a different format chances are it can work. During instructions we have observed that in some cases the adventure data can leak, it may also be worth experimenting using > as the prefix for a user command to remedy this. But this may result in a stronger fiction bias. Keep in mind that while this model can be used as a factual instruct model, the focus was on fiction. Information provided by the model can be made up. ## Adventuring and Adventure Games This model contains a lora that was trained on the same adventure dataset as the KoboldAI Skein model. Adventuring is best done using an small introduction to the world and your objective while using the > prefix for a user command (KoboldAI's adventure mode). It is possible that the model does not immediately pick up on what you wish to do and does not engage in its Adventure mode behaviour right away. Simply manually correct the output to trim excess dialogue or other undesirable behaviour and continue to submit your actions using the appropriate mode. The model should pick up on this style quickly and will correctly follow this format within 3 turns. ## Discovered something cool and want to engage with us? Join our community at https://koboldai.org/discord !
[ -0.4452228248119354, -0.8434061408042908, 0.3577636778354645, 0.1524575799703598, -0.402648001909256, 0.0352504588663578, 0.09436622262001038, -0.8798037767410278, 0.6107687950134277, 0.7510426640510559, -0.7235876321792603, -0.22712861001491547, -0.475774347782135, -0.15223677456378937, -0.3913452625274658, 1.2884297370910645, -0.034617241472005844, -0.2597344219684601, -0.04234185814857483, -0.14839434623718262, -0.6358737945556641, -0.5158154964447021, -0.4988996684551239, -0.5049125552177429, 0.7045931816101074, 0.4157842695713043, 0.7958378195762634, 0.7455465197563171, 0.7209094166755676, 0.3022051453590393, -0.31010109186172485, 0.27955877780914307, -0.5830625295639038, -0.04209838807582855, -0.009836471639573574, -0.5816073417663574, -0.8109212517738342, 0.1819128394126892, 0.31024765968322754, 0.39512601494789124, -0.20146329700946808, 0.08625490963459015, -0.05325401574373245, 0.3375645577907562, -0.4469459354877472, 0.12934568524360657, -0.29696354269981384, -0.07255320250988007, -0.11156570166349411, 0.06065305322408676, -0.14155368506908417, -0.3383629024028778, 0.09851294755935669, -0.7321981191635132, 0.018519841134548187, 0.10068866610527039, 1.1877588033676147, 0.12544997036457062, -0.5025123357772827, -0.6309327483177185, -0.6712695956230164, 0.508901834487915, -0.9192402958869934, 0.09370763599872589, 0.48297715187072754, 0.2618507146835327, -0.16734915971755981, -0.7041203379631042, -0.5505750179290771, -0.22219392657279968, -0.12555284798145294, 0.05398295819759369, -0.30747029185295105, -0.31218215823173523, 0.044677745550870895, 0.4087405204772949, -0.35678204894065857, 0.3194388151168823, -0.6658112406730652, 0.11200853437185287, 0.7648112773895264, 0.22345006465911865, 0.20265540480613708, -0.18893393874168396, -0.4517025351524353, -0.3464725613594055, -0.6998040080070496, 0.09856989234685898, 0.5198636054992676, 0.0902615562081337, -0.46754226088523865, 0.7228498458862305, -0.02442929893732071, 0.46155330538749695, 0.2596892714500427, -0.4935610592365265, 0.1841709315776825, -0.31563499569892883, -0.26866573095321655, -0.07163102179765701, 0.7416408061981201, 0.5557215213775635, 0.047286901623010635, -0.03244858980178833, -0.09655851125717163, 0.08710844814777374, 0.19134370982646942, -0.6766530275344849, -0.013808343559503555, 0.18793784081935883, -0.49763166904449463, -0.7694076299667358, -0.03609825670719147, -0.7073702216148376, -0.44340428709983826, -0.008754385635256767, 0.40150564908981323, -0.4043348729610443, -0.21463662385940552, 0.05917741730809212, -0.22616668045520782, 0.5587571859359741, 0.3887532949447632, -0.752082109451294, 0.1570126712322235, 0.5202438235282898, 0.6410597562789917, -0.010953247547149658, -0.46649008989334106, -0.16369126737117767, 0.1517648547887802, -0.5012493133544922, 0.798845648765564, -0.15944714844226837, -0.5509364008903503, -0.21845270693302155, 0.14185276627540588, 0.13401807844638824, -0.35491928458213806, 0.4988040030002594, -0.436286598443985, 0.34326037764549255, -0.20642097294330597, -0.5018913745880127, -0.38705822825431824, 0.07246676087379456, -0.8071576356887817, 0.7282100319862366, -0.01958555355668068, -0.6887292265892029, 0.06608812510967255, -0.5882934331893921, -0.3848921060562134, -0.020305365324020386, 0.04268481582403183, -0.3757523000240326, -0.03736427426338196, 0.09966308623552322, 0.3023982644081116, -0.5753079056739807, 0.4442233443260193, -0.28040269017219543, -0.43376433849334717, 0.2895911931991577, -0.17455147206783295, 1.0352786779403687, 0.1541638821363449, -0.3938334286212921, -0.15305009484291077, -0.5649328827857971, -0.11160219460725784, 0.5053998827934265, -0.16731373965740204, -0.1527019888162613, -0.10850056260824203, -0.0625229924917221, -0.048765186220407486, 0.26867350935935974, -0.19455711543560028, 0.5533580183982849, -0.31140682101249695, 0.42263033986091614, 0.751523494720459, 0.20330458879470825, 0.45408788323402405, -0.7360268831253052, 0.6773350834846497, -0.04383905604481697, 0.23646683990955353, -0.2349979430437088, -0.8760481476783752, -1.304964303970337, -0.07820896059274673, 0.1829196959733963, 0.6466636061668396, -0.6273322701454163, 0.7176621556282043, 0.06328634172677994, -1.020877480506897, -0.45473524928092957, -0.09514819830656052, 0.3811722993850708, 0.39052245020866394, 0.0442173145711422, -0.2239413857460022, -0.6177762150764465, -0.7402818202972412, 0.12898367643356323, -0.5103338360786438, 0.23395532369613647, 0.34660613536834717, 0.6716698408126831, -0.5033704042434692, 0.7353732585906982, -0.6636316180229187, -0.28252366185188293, -0.37779122591018677, 0.08716173470020294, 0.3444531261920929, 0.61081463098526, 0.7637932300567627, -0.6601036787033081, -0.2428230494260788, 0.13981427252292633, -0.951875627040863, 0.12431172281503677, -0.08348062634468079, -0.3420642912387848, 0.14265906810760498, 0.30760785937309265, -0.761985719203949, 0.7198360562324524, 0.5739792585372925, -0.554237961769104, 0.33575239777565, -0.1031818687915802, 0.23930762708187103, -1.121564507484436, 0.19378605484962463, -0.4086846709251404, -0.09058108925819397, -0.5778323411941528, 0.4982503056526184, -0.3006124794483185, -0.16743618249893188, -0.4037158787250519, 0.8128082752227783, -0.3234831690788269, 0.1607029139995575, -0.24165911972522736, 0.13231675326824188, 0.16838321089744568, 0.6476322412490845, -0.15136083960533142, 0.5231010317802429, 0.43204742670059204, -0.4939514994621277, 0.5925676226615906, 0.4717777371406555, -0.3442472815513611, 0.2692827880382538, -0.8189647793769836, 0.3987404406070709, -0.03052934817969799, 0.3357028067111969, -0.8418790102005005, -0.3756515383720398, 0.4216524362564087, -0.49686309695243835, 0.07642652839422226, -0.04578666388988495, -0.3488980829715729, -0.29137569665908813, -0.24467414617538452, 0.20959851145744324, 0.7468205094337463, -0.5815871357917786, 0.6905144453048706, 0.3977878987789154, 0.014391668140888214, -0.41046401858329773, -0.8205196857452393, -0.062267180532217026, -0.5666766166687012, -0.7367759943008423, 0.3218824863433838, -0.40434911847114563, -0.2166837900876999, 0.007632095366716385, 0.24247007071971893, -0.33755603432655334, 0.07338247448205948, 0.36870434880256653, 0.600683331489563, -0.29306381940841675, -0.2914508581161499, 0.035398516803979874, 0.09622637927532196, -0.2517462372779846, 0.1675325185060501, 0.6199443340301514, -0.0984259769320488, -0.11448059231042862, -0.2700998783111572, 0.5344567894935608, 0.5169012546539307, -0.3109177350997925, 0.8949726223945618, 0.47965487837791443, -0.3994530737400055, 0.16818271577358246, -0.6447376608848572, 0.049015119671821594, -0.4657852053642273, 0.01426482480019331, -0.22978618741035461, -0.8165061473846436, 0.7789987921714783, 0.2512977421283722, 0.19101481139659882, 0.6402304172515869, 0.44636642932891846, -0.22869771718978882, 0.751266360282898, 0.9121122360229492, -0.02119562402367592, 0.35365769267082214, -0.5898451805114746, 0.3083730638027191, -0.6760790944099426, -0.46322137117385864, -0.4619482457637787, -0.30772697925567627, -0.712385892868042, -0.41603991389274597, 0.23322021961212158, 0.5117071866989136, -0.23797543346881866, 0.6976536512374878, -0.2309240996837616, 0.5450372099876404, 0.5768980383872986, 0.10295621305704117, 0.3457964360713959, -0.010601251386106014, 0.20889964699745178, 0.08247728645801544, -0.7428332567214966, -0.3675410747528076, 0.9983038306236267, 0.39262259006500244, 0.9009006023406982, 0.26565155386924744, 0.9612495303153992, 0.21776922047138214, 0.17113050818443298, -0.6707124710083008, 0.5056036710739136, -0.11576981842517853, -0.7588847875595093, -0.12193390727043152, -0.14808371663093567, -0.8244975805282593, -0.03481657803058624, -0.20349429547786713, -0.889045774936676, 0.5687810182571411, 0.04945813864469528, -0.5134679675102234, 0.1630963385105133, -0.7517049312591553, 0.6819238066673279, -0.2343435436487198, -0.02429966628551483, -0.01798609271645546, -0.647905170917511, 0.7064757347106934, -0.10367482155561447, 0.027129540219902992, 0.004506812896579504, 0.02010929025709629, 0.8395295143127441, -0.516058623790741, 0.9257690906524658, 0.27273431420326233, -0.29144933819770813, 0.6380112171173096, 0.11589580774307251, 0.588677704334259, -0.024809686467051506, 0.17510852217674255, 0.34269917011260986, -0.038505878299474716, -0.06077670678496361, -0.47221097350120544, 0.8032973408699036, -1.0132299661636353, -0.5155895948410034, -0.5757486820220947, -0.2604125440120697, 0.2590983510017395, 0.17569586634635925, 0.7006027698516846, 0.3579118251800537, -0.2925872802734375, 0.22984661161899567, 0.4706234931945801, -0.20636619627475739, 0.3909260928630829, 0.47980931401252747, -0.5241659283638, -0.5374182462692261, 0.7153294682502747, 0.030163927003741264, 0.22410404682159424, 0.22025562822818756, 0.11053746193647385, -0.033672552555799484, -0.04121583327651024, -0.343810111284256, 0.5255041718482971, -0.834004282951355, -0.4705316126346588, -0.5361979603767395, -0.545947253704071, -0.5080918073654175, -0.3476853668689728, -0.3525450825691223, -0.3839286267757416, -0.4415331780910492, -0.00270492909476161, 0.6200271248817444, 0.945334792137146, -0.06640166789293289, 0.8284546732902527, -0.5525834560394287, 0.3753257989883423, 0.3515859842300415, 0.0782945305109024, 0.003380728652700782, -0.7581291198730469, -0.17805439233779907, 0.09036023914813995, -0.35176610946655273, -0.9208611845970154, 0.46714454889297485, 0.10601990669965744, 0.333026647567749, 0.4447363317012787, -0.10706087201833725, 0.8485526442527771, -0.4557667672634125, 0.7984273433685303, 0.1618308275938034, -0.8072099089622498, 0.6032207012176514, -0.42388632893562317, 0.11185647547245026, 0.27535325288772583, 0.3535939157009125, -0.49231410026550293, -0.2760515809059143, -0.9539155960083008, -0.5408118963241577, 0.8085224032402039, 0.4953736364841461, -0.08509739488363266, 0.11652670800685883, 0.28869715332984924, -0.05783621594309807, 0.20719493925571442, -0.9415668249130249, -0.41221126914024353, -0.18151575326919556, 0.2023896425962448, -0.21228563785552979, -0.2719157636165619, -0.1980133354663849, -0.19188642501831055, 0.7090058922767639, 0.03878773748874664, 0.41905319690704346, 0.03521256893873215, 0.16183993220329285, -0.1628732681274414, -0.10010739415884018, 0.4723680317401886, 0.5757781863212585, -0.2973860800266266, -0.302258163690567, 0.02466624602675438, -0.45705440640449524, 0.13217976689338684, 0.12311627715826035, -0.2873821556568146, -0.0510551854968071, 0.8192518353462219, 1.0771106481552124, 0.13761432468891144, -0.6840147972106934, 0.40666627883911133, -0.10194659233093262, 0.03908645734190941, -0.2369636744260788, 0.3270319104194641, 0.3239116668701172, 0.3439521789550781, 0.011025236919522285, 0.04942198097705841, 0.06161840260028839, -0.8393789529800415, -0.15812630951404572, 0.2173570990562439, -0.005496067460626364, -0.1461852490901947, 0.6353892087936401, 0.312164843082428, -0.5729078054428101, 0.6502577662467957, -0.2527620792388916, -0.3486955463886261, 0.9472920298576355, 0.6738842725753784, 0.9060512781143188, -0.4496992528438568, 0.19792763888835907, 0.3728460967540741, 0.4702773094177246, 0.039938006550073624, 0.18908359110355377, 0.19904014468193054, -0.7306246161460876, -0.07656911760568619, -0.49648481607437134, -0.29887911677360535, 0.3071427047252655, -0.7144912481307983, 0.6233792901039124, -0.4689052700996399, -0.07990613579750061, 0.009748972952365875, 0.05424463003873825, -0.6374542713165283, 0.1142285093665123, 0.031960129737854004, 0.8670263290405273, -0.860866904258728, 0.827342689037323, 0.5981011390686035, -0.6274353861808777, -0.9029175043106079, -0.10357367247343063, -0.01005892176181078, -0.8293163776397705, 0.302019864320755, 0.15793377161026, 0.05491490289568901, -0.21173107624053955, -0.8921141624450684, -1.000049352645874, 1.3852720260620117, 0.22304074466228485, -0.47574639320373535, -0.40470606088638306, -0.14391924440860748, 0.4718565046787262, -0.6240988373756409, 0.18008838593959808, 0.6448694467544556, 0.2503971457481384, 0.2983046770095825, -0.9860888719558716, -0.17099110782146454, -0.3584270179271698, 0.03559039533138275, -0.07573581486940384, -0.9105868339538574, 1.0901802778244019, -0.3160926103591919, -0.10513485968112946, 0.6325817108154297, 0.6718230247497559, 0.4486702084541321, 0.0918990969657898, 0.49421849846839905, 0.5421069860458374, 0.650821328163147, 0.016713272780179977, 0.9751384258270264, -0.08426010608673096, 0.32402005791664124, 1.1967235803604126, -0.2675063908100128, 0.7529488205909729, 0.2911727726459503, -0.13631819188594818, 0.5217211246490479, 0.6968534588813782, 0.017326420173048973, 0.5102388262748718, -0.24453045427799225, 0.025506725534796715, -0.061712637543678284, -0.2632606029510498, -0.5929450988769531, 0.7756833434104919, 0.18133099377155304, -0.22840704023838043, 0.018667757511138916, -0.011471698060631752, 0.2823600471019745, -0.271239697933197, 0.010326750576496124, 0.7885802388191223, 0.0326293408870697, -0.757409930229187, 0.714482307434082, 0.1724577099084854, 0.6740308403968811, -0.9915125370025635, -0.2128763347864151, -0.7265645861625671, 0.10248395800590515, 0.058294255286455154, -0.6424539089202881, 0.06459151953458786, 0.15649959444999695, -0.215450257062912, 0.09082995355129242, 0.6698817014694214, -0.4091586768627167, -0.691360592842102, 0.3838556408882141, 0.3526328504085541, 0.2974183261394501, 0.23461201786994934, -0.5653994679450989, 0.4225207567214966, 0.24665439128875732, -0.024494627490639687, 0.1771802455186844, 0.36819136142730713, -0.035505909472703934, 0.718568742275238, 0.4815977215766907, -0.10033026337623596, -0.12242117524147034, -0.282636433839798, 1.0554708242416382, -0.7411897778511047, -0.7472596764564514, -0.5370224714279175, 0.394863486289978, 0.08732455223798752, -0.547073483467102, 0.704033374786377, 0.3793174922466278, 0.5901415944099426, -0.09111939370632172, 0.5087960362434387, -0.395572692155838, 0.3553566038608551, -0.5741333961486816, 0.8312633633613586, -0.6903621554374695, 0.2572665512561798, -0.36048439145088196, -0.9793105125427246, 0.23177017271518707, 0.6846046447753906, 0.2981979250907898, 0.021826814860105515, 0.5689238905906677, 0.6561403870582581, -0.09302815049886703, 0.015984762459993362, 0.10647490620613098, 0.247763991355896, 0.35474279522895813, 0.6783124804496765, 0.9401967525482178, -0.787315845489502, 0.4486348032951355, -0.5107356309890747, -0.3831173777580261, -0.2888624370098114, -0.9702742099761963, -1.0345220565795898, -0.5746763348579407, -0.26927080750465393, -0.398253470659256, 0.12332237511873245, 0.6752701997756958, 0.7156022787094116, -0.47043290734291077, -0.6037250757217407, 0.24264411628246307, 0.08703556656837463, 0.02363567240536213, -0.21656565368175507, 0.1316637247800827, 0.20229791104793549, -0.7005540728569031, 0.45182862877845764, -0.08503375947475433, 0.4096447229385376, -0.38308775424957275, -0.19772085547447205, -0.4810347855091095, 0.19239206612110138, 0.37359419465065, 0.29708215594291687, -0.8029838800430298, -0.14542318880558014, 0.045834485441446304, -0.04276454448699951, -0.08722000569105148, 0.6182148456573486, -0.7337721586227417, 0.16127537190914154, 0.3285606801509857, 0.3149099051952362, 0.5650878548622131, -0.12828722596168518, 0.5003227591514587, -0.5422051548957825, 0.4789314866065979, 0.05952615663409233, 0.3462366759777069, 0.25707492232322693, -0.546698272228241, 0.707446277141571, 0.19586101174354553, -0.5914398431777954, -0.862210750579834, -0.04470572993159294, -1.1011853218078613, -0.22624312341213226, 1.0350160598754883, -0.16005486249923706, -0.31386855244636536, 0.4812203645706177, -0.39284923672676086, 0.15387895703315735, -0.22170411050319672, 0.39828065037727356, 0.8042466640472412, -0.14713209867477417, -0.01160228531807661, -0.27539950609207153, 0.3696851134300232, -0.0005134628154337406, -0.9277797341346741, -0.08544366806745529, 0.34625518321990967, 0.1095767393708229, 0.4598066210746765, 0.6456407308578491, 0.20788513123989105, 0.3229103088378906, 0.06853378564119339, 0.05781896784901619, 0.0789506658911705, -0.5548317432403564, -0.2432253360748291, -0.39290764927864075, -0.13603122532367706, -0.029238898307085037 ]
ckpt/anything-v4.5-vae-swapped
ckpt
"2023-01-27T17:58:43Z"
20,123
28
diffusers
[ "diffusers", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
null
"2023-01-22T01:47:34Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
google/pegasus-large
google
"2023-01-24T16:42:31Z"
20,116
74
transformers
[ "transformers", "pytorch", "tf", "jax", "pegasus", "text2text-generation", "summarization", "en", "arxiv:1912.08777", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
summarization
"2022-03-02T23:29:05Z"
--- language: en tags: - summarization --- ### Pegasus Models See Docs: [here](https://huggingface.co/transformers/master/model_doc/pegasus.html) Original TF 1 code [here](https://github.com/google-research/pegasus) Authors: Jingqing Zhang, Yao Zhao, Mohammad Saleh and Peter J. Liu on Dec 18, 2019 Maintained by: [@sshleifer](https://twitter.com/sam_shleifer) Task: Summarization The following is copied from the authors' README. # Mixed & Stochastic Checkpoints We train a pegasus model with sampled gap sentence ratios on both C4 and HugeNews, and stochastically sample important sentences. The updated the results are reported in this table. | dataset | C4 | HugeNews | Mixed & Stochastic| | ---- | ---- | ---- | ----| | xsum | 45.20/22.06/36.99 | 47.21/24.56/39.25 | 47.60/24.83/39.64| | cnn_dailymail | 43.90/21.20/40.76 | 44.17/21.47/41.11 | 44.16/21.56/41.30| | newsroom | 45.07/33.39/41.28 | 45.15/33.51/41.33 | 45.98/34.20/42.18| | multi_news | 46.74/17.95/24.26 | 47.52/18.72/24.91 | 47.65/18.75/24.95| | gigaword | 38.75/19.96/36.14 | 39.12/19.86/36.24 | 39.65/20.47/36.76| | wikihow | 43.07/19.70/34.79 | 41.35/18.51/33.42 | 46.39/22.12/38.41 *| | reddit_tifu | 26.54/8.94/21.64 | 26.63/9.01/21.60 | 27.99/9.81/22.94| | big_patent | 53.63/33.16/42.25 | 53.41/32.89/42.07 | 52.29/33.08/41.66 *| | arxiv | 44.70/17.27/25.80 | 44.67/17.18/25.73 | 44.21/16.95/25.67| | pubmed | 45.49/19.90/27.69 | 45.09/19.56/27.42 | 45.97/20.15/28.25| | aeslc | 37.69/21.85/36.84 | 37.40/21.22/36.45 | 37.68/21.25/36.51| | billsum | 57.20/39.56/45.80 | 57.31/40.19/45.82 | 59.67/41.58/47.59| The "Mixed & Stochastic" model has the following changes: - trained on both C4 and HugeNews (dataset mixture is weighted by their number of examples). - trained for 1.5M instead of 500k (we observe slower convergence on pretraining perplexity). - the model uniformly sample a gap sentence ratio between 15% and 45%. - importance sentences are sampled using a 20% uniform noise to importance scores. - the sentencepiece tokenizer is updated to be able to encode newline character. (*) the numbers of wikihow and big_patent datasets are not comparable because of change in tokenization and data: - wikihow dataset contains newline characters which is useful for paragraph segmentation, the C4 and HugeNews model's sentencepiece tokenizer doesn't encode newline and loose this information. - we update the BigPatent dataset to preserve casing, some format cleanings are also changed, please refer to change in TFDS. The "Mixed & Stochastic" model has the following changes (from pegasus-large in the paper): trained on both C4 and HugeNews (dataset mixture is weighted by their number of examples). trained for 1.5M instead of 500k (we observe slower convergence on pretraining perplexity). the model uniformly sample a gap sentence ratio between 15% and 45%. importance sentences are sampled using a 20% uniform noise to importance scores. the sentencepiece tokenizer is updated to be able to encode newline character. Citation ``` @misc{zhang2019pegasus, title={PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarization}, author={Jingqing Zhang and Yao Zhao and Mohammad Saleh and Peter J. Liu}, year={2019}, eprint={1912.08777}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.4113668203353882, -0.8416750431060791, 0.4185120463371277, 0.2995237112045288, -0.3830392360687256, -0.3629390299320221, -0.15511076152324677, -0.48696649074554443, 0.5701156258583069, 0.3200134336948395, -0.8436052203178406, -0.6632044315338135, -0.7918631434440613, -0.02022361382842064, -0.4397812485694885, 1.077467918395996, -0.02596474625170231, -0.05957246944308281, 0.12185198068618774, -0.00828259065747261, -0.17014674842357635, -0.34594210982322693, -0.6807125210762024, 0.10000505298376083, 0.4156748056411743, 0.14950700104236603, 0.6919630765914917, 0.6933354139328003, 0.4920555353164673, 0.2717551290988922, -0.5130740404129028, -0.112210214138031, -0.2140475958585739, -0.382376492023468, 0.26970505714416504, -0.1547442227602005, -0.3648441433906555, 0.02509637176990509, 0.5973333120346069, 0.964661717414856, -0.16727390885353088, 0.051063355058431625, 0.2317497879266739, 0.511483371257782, -0.4368410110473633, 0.121620774269104, -0.2922567129135132, 0.26288121938705444, -0.2766166031360626, 0.13282489776611328, -0.05770983546972275, -0.2088683396577835, 0.2008717805147171, -1.0139565467834473, 0.4930206835269928, 0.033448152244091034, 1.55755615234375, 0.3090611398220062, -0.418661504983902, -0.16010218858718872, -0.08706911653280258, 0.8480444550514221, -1.0646743774414062, 0.32620003819465637, 0.1048499271273613, -0.13036811351776123, -0.2221396416425705, -1.1612586975097656, -0.7961346507072449, 0.006474754307419062, -0.04933552071452141, 0.3455609679222107, -0.12812557816505432, 0.022408192977309227, 0.33357948064804077, 0.65092533826828, -0.5003460645675659, 0.2938239872455597, -0.5842434763908386, -0.24744388461112976, 0.639897882938385, 0.19491606950759888, 0.2108387053012848, -0.3962421715259552, -0.5852663516998291, -0.09113559126853943, -0.3936341106891632, 0.46282780170440674, 0.27783626317977905, 0.14388014376163483, -0.40869376063346863, 0.5768852233886719, -0.3045211434364319, 0.7360197305679321, 0.0029884090181440115, -0.057462096214294434, 0.8182903528213501, -0.5870617032051086, -0.38888272643089294, 0.009202344343066216, 1.0819544792175293, 0.5912969708442688, 0.10075600445270538, 0.1593790203332901, 0.04400790482759476, -0.12858876585960388, 0.11780073493719101, -1.0414493083953857, 0.06344052404165268, 0.2470463365316391, -0.553024172782898, -0.2731498181819916, 0.44735291600227356, -0.855486273765564, -0.05165039747953415, -0.14638890326023102, 0.31340792775154114, -0.4743632972240448, -0.06895416229963303, 0.4894651174545288, -0.2861361503601074, 0.3029479384422302, 0.37231895327568054, -0.9616566896438599, -0.007796054240316153, 0.7131056189537048, 1.0746175050735474, 0.0451992005109787, -0.6160509586334229, -0.3246952295303345, -0.1405898481607437, -0.4422636926174164, 0.6913226842880249, -0.3047964572906494, -0.1259225457906723, 0.040160492062568665, 0.31863510608673096, -0.4098828434944153, -0.16031420230865479, 0.992485761642456, -0.3675917983055115, 0.7615553140640259, -0.36334893107414246, -0.719953715801239, -0.16578520834445953, 0.18628695607185364, -0.7514522075653076, 1.1966757774353027, 0.16456860303878784, -1.2457938194274902, 0.7618961930274963, -0.67562335729599, -0.24787355959415436, -0.36445218324661255, 0.03932366147637367, -0.7225790619850159, -0.21610859036445618, 0.571307897567749, 0.3461196720600128, -0.16601689159870148, 0.39803123474121094, -0.3546099364757538, -0.5135718584060669, 0.07445212453603745, -0.20846550166606903, 1.0509612560272217, 0.2058088183403015, -0.5838887691497803, 0.179764986038208, -0.7049102187156677, -0.2783207595348358, -0.10874447226524353, -0.3303000330924988, -0.06002238020300865, -0.26042261719703674, 0.04024209454655647, 0.5113815665245056, 0.16093096137046814, -0.6404115557670593, 0.18457312881946564, -0.8049041628837585, 0.7234218120574951, 0.6925292611122131, 0.3801920413970947, 0.25179803371429443, -0.4986083209514618, 0.4429619312286377, 0.47936201095581055, 0.22939489781856537, -0.3567381501197815, -0.5430794358253479, -1.2330735921859741, -0.35155028104782104, 0.47497114539146423, 0.32096996903419495, -0.5631873607635498, 0.849192202091217, -0.29334285855293274, -0.41669604182243347, -0.5049536228179932, -0.23407237231731415, 0.14894135296344757, 0.8365647196769714, 0.4761955738067627, -0.3232819437980652, -0.4473207890987396, -1.1741503477096558, -0.219181627035141, -0.1028340682387352, -0.21020905673503876, -0.03621009364724159, 0.7411276698112488, -0.15766531229019165, 0.9809059500694275, -0.6126415729522705, -0.17212611436843872, -0.1577455699443817, 0.1358751356601715, 0.5431351065635681, 0.5161063075065613, 0.45503169298171997, -0.8383132219314575, -0.20975477993488312, -0.5198760628700256, -0.7306076884269714, -0.008139512501657009, -0.20795877277851105, -0.15758511424064636, 0.29609420895576477, 0.8254896402359009, -1.057949423789978, 0.4473794996738434, 0.20484304428100586, -0.5980793237686157, 0.642283022403717, 0.012111078947782516, 0.14051304757595062, -1.5137261152267456, 0.17387379705905914, 0.2676294445991516, 0.13018111884593964, -0.5624688267707825, -0.10605926811695099, 0.035319726914167404, -0.0876467302441597, -0.6513186097145081, 0.49177876114845276, -0.5987015962600708, 0.01710004173219204, 0.10643760114908218, 0.1286219358444214, 0.1488444209098816, 0.7914028167724609, -0.003286044578999281, 0.840471625328064, 0.42317891120910645, -0.6281850934028625, -0.020552754402160645, 0.5090497732162476, -0.8201027512550354, 0.0544537790119648, -0.8252466320991516, -0.2968434989452362, -0.16461396217346191, 0.4425298273563385, -0.9884229302406311, -0.3045846223831177, 0.21580256521701813, -0.6240302324295044, 0.04288442060351372, 0.3153744041919708, -0.3843878507614136, -0.5637171864509583, -0.5763393044471741, 0.13390015065670013, 0.3315194249153137, -0.31777292490005493, 0.2508161664009094, 0.3994230031967163, -0.41750216484069824, -0.8071855902671814, -1.0964232683181763, 0.055704765021800995, -0.3867345452308655, -0.9757435917854309, 0.6832455396652222, 0.10561530292034149, 0.038858812302351, 0.06216287985444069, -0.08759886026382446, -0.14237435162067413, 0.09421785920858383, 0.1319419890642166, 0.3603210151195526, -0.3622191548347473, 0.1905318796634674, -0.004980878438800573, -0.18075595796108246, -0.04711105674505234, -0.31543731689453125, 0.46272769570350647, -0.08057287335395813, -0.14196644723415375, -0.5591385364532471, 0.11843439191579819, 0.5243874788284302, -0.18438169360160828, 0.9365251660346985, 0.669425368309021, -0.41354668140411377, 0.1690957099199295, -0.5352388620376587, -0.14196206629276276, -0.47955116629600525, 0.6091753244400024, -0.2854248285293579, -1.3430663347244263, 0.6172298789024353, 0.3414321839809418, 0.2450692504644394, 1.032272458076477, 0.5415446162223816, 0.0721617043018341, 0.6519012451171875, 0.6900631785392761, -0.23023061454296112, 0.5168116688728333, -0.4782693684101105, 0.09007824212312698, -0.7103918194770813, -0.30800357460975647, -0.4627145528793335, -0.30128198862075806, -0.5184973478317261, -0.360193133354187, 0.38299787044525146, 0.32247114181518555, -0.5037058591842651, 0.34394368529319763, -0.43935254216194153, 0.219953715801239, 0.7937722206115723, 0.048447102308273315, 0.2061437964439392, 0.03297846019268036, -0.3675578534603119, -0.3037028908729553, -0.861227810382843, -0.41221344470977783, 0.8888723254203796, 0.46728330850601196, 0.4026327431201935, 0.01618070900440216, 0.4500245451927185, 0.15638461709022522, 0.0800032913684845, -0.6654903292655945, 0.43236878514289856, -0.059817224740982056, -0.634565532207489, -0.528902530670166, -0.6125972270965576, -1.08626127243042, 0.4582711160182953, -0.2820133864879608, -0.899646520614624, 0.2877463400363922, -0.24021008610725403, -0.6832723617553711, 0.22834277153015137, -0.6506283283233643, 1.233241319656372, 0.20928406715393066, -0.28383150696754456, 0.03481774404644966, -0.8710504770278931, 0.6267750859260559, -0.005692481063306332, 0.24085700511932373, 0.009223373606801033, -0.14926284551620483, 1.0978296995162964, -0.886243462562561, 0.6385781764984131, -0.12453848868608475, 0.06298816949129105, 0.25560566782951355, -0.6260508894920349, 0.4531019926071167, -0.10221925377845764, -0.10632067918777466, 0.23014214634895325, -0.12188562750816345, -0.47436243295669556, -0.3280046582221985, 0.5073226094245911, -0.883491039276123, -0.6908455491065979, -0.651799738407135, -0.38033226132392883, -0.06846292316913605, 0.34156712889671326, 0.8421755433082581, 0.35951098799705505, -0.27863869071006775, 0.26559334993362427, 0.4486730098724365, -0.41408729553222656, 0.9080209136009216, 0.4398617446422577, 0.1975010484457016, -0.6426678895950317, 0.312409907579422, 0.19271279871463776, 0.09963357448577881, 0.30643707513809204, -0.0529145784676075, -0.46507954597473145, -0.3800382614135742, -0.5329836010932922, 0.37503623962402344, -0.31106382608413696, 0.033940982073545456, -1.024794578552246, -0.519594132900238, -0.8000966310501099, -0.0781954675912857, -0.25583913922309875, -0.7632016539573669, -0.5504789352416992, -0.33844059705734253, 0.1324106752872467, 0.40714818239212036, 0.1824151575565338, 0.37550976872444153, -0.8052639961242676, -0.025832848623394966, 0.15331454575061798, 0.08843093365430832, -0.041161905974149704, -0.977310299873352, -0.5333770513534546, -0.0453333780169487, -0.6157094836235046, -0.7337754368782043, 0.47493889927864075, 0.09414072334766388, 0.521393895149231, 0.5612645745277405, 0.11490222811698914, 0.8564168214797974, -0.41398224234580994, 1.2932301759719849, 0.4931851029396057, -0.9917083382606506, 0.39956793189048767, -0.4812220633029938, 0.43838220834732056, 0.7222115993499756, 0.26895883679389954, -0.8764611482620239, -0.5823642015457153, -1.0197268724441528, -1.172507882118225, 0.919871985912323, 0.4365728497505188, 0.016573702916502953, 0.06150556728243828, 0.21313655376434326, -0.18738864362239838, 0.43771952390670776, -0.9066112041473389, -0.20001286268234253, -0.3349461257457733, -0.3669581413269043, -0.1464749276638031, -0.33088400959968567, 0.03449086472392082, -0.08454172313213348, 0.808612048625946, 0.20446249842643738, 0.31970956921577454, 0.5734182596206665, -0.022021669894456863, 0.1427464634180069, 0.3161211311817169, 0.8751214146614075, 0.6013587117195129, -0.14537128806114197, -0.17717020213603973, 0.08532585948705673, -0.6059693694114685, 0.021769141778349876, 0.6952735185623169, -0.3238022029399872, 0.13037849962711334, 0.683914840221405, 1.0036004781723022, 0.23474329710006714, -0.5151754021644592, 0.965774416923523, -0.09998537600040436, -0.5861203074455261, -0.632991373538971, 0.019101785495877266, 0.07501094788312912, 0.2832218110561371, 0.4514344036579132, -0.023369675502181053, 0.2395656406879425, -0.31280025839805603, 0.34046217799186707, 0.025447797030210495, -0.501372754573822, -0.18003731966018677, 0.9013963937759399, 0.1874106377363205, 0.03328943997621536, 0.4999655783176422, -0.22505463659763336, -0.5535526275634766, 0.8446250557899475, 0.25646960735321045, 0.8475985527038574, -0.06090404838323593, 0.11590836942195892, 0.7339160442352295, 0.6123759746551514, -0.28553467988967896, -0.13614925742149353, 0.18600821495056152, -0.6235833168029785, -0.48166584968566895, -0.6973881125450134, -0.1408444494009018, 0.4400935471057892, -0.5963998436927795, 0.48863208293914795, -0.23109674453735352, -0.1640537828207016, 0.10468018800020218, 0.1375570148229599, -0.3366868197917938, 0.31052911281585693, -0.09757369011640549, 1.36235773563385, -0.9670016169548035, 0.6982672810554504, 0.48969176411628723, -0.715603232383728, -1.068717360496521, 0.2867124378681183, -0.02125847339630127, -0.5000849366188049, 0.49576249718666077, 0.6442946195602417, 0.4360058903694153, -0.11624133586883545, -0.3694547712802887, -1.0635663270950317, 1.2335073947906494, 0.27956435084342957, -0.6022828221321106, -0.34844914078712463, 0.19297516345977783, 0.5224177241325378, -0.28067532181739807, 0.26640161871910095, 0.5184201002120972, 0.37933072447776794, 0.22201277315616608, -0.9264401793479919, 0.00998427253216505, -0.6560502052307129, -0.07170896977186203, 0.3496803343296051, -1.263573169708252, 1.2910066843032837, -0.07359229028224945, -0.2822187542915344, 0.1281835287809372, 0.8160250186920166, 0.5520617961883545, 0.5057031512260437, 0.6512247920036316, 1.2057288885116577, 0.8052217960357666, -0.1845656931400299, 1.022390604019165, -0.40927138924598694, 0.456699013710022, 0.9773087501525879, 0.16118282079696655, 0.6594948172569275, 0.43125608563423157, -0.1786525696516037, 0.5943654179573059, 1.1851329803466797, -0.07970815151929855, 0.48308515548706055, 0.12338029593229294, -0.120883509516716, -0.0025426929350942373, 0.053773097693920135, -0.728087842464447, 0.18958568572998047, 0.23151732981204987, -0.6373289227485657, -0.11724335700273514, -0.13204993307590485, 0.4707706570625305, -0.3769059479236603, -0.21454142034053802, 0.5560334920883179, 0.2216591238975525, -0.838741660118103, 0.49003806710243225, 0.3366348445415497, 0.8082653880119324, -0.6156315803527832, 0.3081423342227936, -0.26545852422714233, 0.06498941779136658, -0.2128397822380066, -0.5832927227020264, 0.2656046748161316, 0.05192253738641739, -0.08704540878534317, -0.04261494800448418, 0.5457785129547119, -0.5094111561775208, -0.7056523561477661, 0.02403857745230198, 0.2685493230819702, 0.02659449353814125, -0.02689005620777607, -0.8784752488136292, -0.31335878372192383, 0.15396596491336823, -0.6831932067871094, -0.14412318170070648, 0.7238813042640686, 0.17665381729602814, 0.39290478825569153, 0.6427440047264099, -0.030444646254181862, 0.04363975301384926, 0.0376274473965168, 1.0856739282608032, -1.090867519378662, -1.1328016519546509, -0.872439444065094, 0.7950137257575989, -0.45295268297195435, -0.8556225299835205, 0.9306047558784485, 0.8765400648117065, 0.6764904260635376, 0.11115750670433044, 0.6940107345581055, 0.016087176278233528, 0.6617228388786316, -1.0317414999008179, 0.5316605567932129, -0.7656031250953674, 0.2920355796813965, -0.46089205145835876, -0.8861127495765686, -0.3181998133659363, 0.5931248664855957, -0.332870215177536, 0.22342951595783234, 1.021599531173706, 0.9118238687515259, -0.00288032041862607, 0.31586965918540955, -0.09758532792329788, 0.3731789290904999, 0.28548112511634827, 0.8402773141860962, 0.8323794603347778, -0.6586740016937256, 0.6191596984863281, -0.04661140963435173, -0.2603168487548828, -0.22652968764305115, -0.7148604393005371, -0.8335320353507996, -0.5784161686897278, -0.29683539271354675, -0.520511269569397, -0.1772538125514984, 0.6838803887367249, 0.7887465357780457, -0.4982714354991913, 0.04883269593119621, -0.3314538598060608, -0.20889295637607574, 0.034024953842163086, -0.3073611557483673, 0.7258878350257874, -0.38754862546920776, -0.727001428604126, 0.04767773672938347, 0.11976220458745956, 0.2061837613582611, -0.005183624103665352, 0.01908351480960846, -0.2637750208377838, -0.11311226338148117, 0.2451169192790985, 0.06058478355407715, -0.6257368326187134, -0.09008714556694031, 0.12694106996059418, -0.3683203160762787, 0.10612275451421738, 0.7001914978027344, -0.35797184705734253, 0.008492318913340569, 0.2992887794971466, 0.712616503238678, 1.06160306930542, 0.10007414221763611, 0.2663963735103607, -0.7169010639190674, 0.56858229637146, 0.05838654562830925, 0.607408881187439, 0.28758180141448975, -0.298244446516037, 0.6308097243309021, 0.5195058584213257, -0.655546247959137, -0.609573245048523, -0.10913538932800293, -1.1804420948028564, -0.4312017858028412, 1.065062403678894, -0.17749379575252533, -0.39074215292930603, 0.030973516404628754, 0.06267097592353821, 0.37600353360176086, -0.5683643221855164, 0.8995377421379089, 1.137547254562378, 0.06377647817134857, -0.17122647166252136, -0.6283660531044006, 0.5187309980392456, 0.501056432723999, -0.8938695788383484, -0.2591521441936493, 0.6918516755104065, 0.17797771096229553, 0.24476146697998047, 0.9614627957344055, -0.1979779452085495, 0.27229610085487366, 0.1332615166902542, 0.021483400836586952, -0.05066389590501785, -0.030533932149410248, -0.3005121946334839, 0.278279185295105, -0.24017801880836487, -0.36888912320137024 ]
Helsinki-NLP/opus-mt-cs-en
Helsinki-NLP
"2023-08-16T11:27:09Z"
20,092
0
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "cs", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- tags: - translation license: apache-2.0 --- ### opus-mt-cs-en * source languages: cs * target languages: en * OPUS readme: [cs-en](https://github.com/Helsinki-NLP/OPUS-MT-train/blob/master/models/cs-en/README.md) * dataset: opus * model: transformer-align * pre-processing: normalization + SentencePiece * download original weights: [opus-2019-12-18.zip](https://object.pouta.csc.fi/OPUS-MT-models/cs-en/opus-2019-12-18.zip) * test set translations: [opus-2019-12-18.test.txt](https://object.pouta.csc.fi/OPUS-MT-models/cs-en/opus-2019-12-18.test.txt) * test set scores: [opus-2019-12-18.eval.txt](https://object.pouta.csc.fi/OPUS-MT-models/cs-en/opus-2019-12-18.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | newstest2014-csen.cs.en | 34.1 | 0.612 | | newstest2015-encs.cs.en | 30.4 | 0.565 | | newstest2016-encs.cs.en | 31.8 | 0.584 | | newstest2017-encs.cs.en | 28.7 | 0.556 | | newstest2018-encs.cs.en | 30.3 | 0.566 | | Tatoeba.cs.en | 58.0 | 0.721 |
[ -0.3851093649864197, -0.31462857127189636, 0.3499886989593506, 0.4471713900566101, -0.31241869926452637, -0.23954986035823822, -0.42356252670288086, -0.019626479595899582, 0.05578475445508957, 0.4126221537590027, -0.8559826612472534, -0.7063812613487244, -0.6340163946151733, 0.14711235463619232, -0.17587371170520782, 0.7969273924827576, -0.14312288165092468, 0.560012936592102, 0.19214993715286255, -0.5163748264312744, -0.4273427128791809, -0.527759313583374, -0.5721801519393921, -0.31288081407546997, 0.2757514417171478, 0.5457295775413513, 0.49375277757644653, 0.41643187403678894, 0.9598748683929443, 0.2871631383895874, -0.14725516736507416, 0.12609240412712097, -0.5784136056900024, -0.21442122757434845, 0.19005323946475983, -0.664320707321167, -0.8655931949615479, -0.11012575030326843, 1.1249608993530273, 0.4834342896938324, -0.0040814499370753765, 0.4808487594127655, 0.10649304836988449, 1.0233062505722046, -0.37088701128959656, 0.010355532169342041, -0.6269243955612183, 0.1707633137702942, -0.3236253261566162, -0.43451181054115295, -0.680390477180481, -0.25309184193611145, 0.12961611151695251, -0.7899098992347717, 0.10520628094673157, 0.15716059505939484, 1.611763596534729, 0.29153892397880554, -0.32298269867897034, -0.09868614375591278, -0.5362322926521301, 1.2755241394042969, -0.8829568028450012, 0.5466076731681824, 0.45285764336586, 0.2718413472175598, 0.20250411331653595, -0.5780242085456848, -0.31063583493232727, 0.1961519420146942, -0.24931983649730682, 0.26756709814071655, -0.22833149135112762, -0.31974515318870544, 0.3075399696826935, 0.8027458190917969, -0.9537785053253174, 0.03607160598039627, -0.7262943387031555, -0.031307172030210495, 0.7444167137145996, 0.28949594497680664, 0.21282285451889038, -0.06645844876766205, -0.3972487449645996, -0.5523383021354675, -0.8921341300010681, 0.24945950508117676, 0.4151362478733063, 0.3437211215496063, -0.6146929860115051, 0.6473593711853027, -0.18057629466056824, 0.7378032207489014, 0.054736655205488205, 0.012049412354826927, 1.1228171586990356, -0.37817972898483276, -0.3822776675224304, -0.21104277670383453, 1.2355635166168213, 0.3806135058403015, 0.06020417436957359, 0.09339456260204315, -0.09127315878868103, -0.1810424029827118, 0.1215493306517601, -1.0201553106307983, -0.092403843998909, 0.227841317653656, -0.5700656771659851, -0.33914652466773987, 0.08649787306785583, -0.7267244458198547, 0.15678898990154266, -0.5434294939041138, 0.4586484134197235, -0.5891480445861816, -0.3484467566013336, 0.2802388668060303, 0.05774378031492233, 0.5469544529914856, -0.004463677294552326, -0.6196372509002686, 0.3425002694129944, 0.42943838238716125, 0.766413152217865, -0.4993247091770172, -0.2584635615348816, -0.4898172914981842, -0.37366220355033875, -0.25106382369995117, 0.6945697069168091, -0.16294562816619873, -0.44552579522132874, -0.08367571234703064, 0.5712918639183044, -0.3431425988674164, -0.31817853450775146, 1.3741981983184814, -0.26885586977005005, 0.74335777759552, -0.6321703791618347, -0.5022667050361633, -0.34458768367767334, 0.5733413100242615, -0.5770912170410156, 1.5497934818267822, 0.08883180469274521, -0.9698649048805237, 0.1617017239332199, -0.8319146633148193, -0.11777371913194656, -0.1505512297153473, -0.02701754681766033, -0.7106428146362305, 0.05031793192028999, 0.14296205341815948, 0.41196608543395996, -0.408888041973114, 0.2772875726222992, -0.03145194798707962, -0.390448659658432, 0.051985107362270355, -0.39499637484550476, 1.2464017868041992, 0.3901931047439575, -0.31703662872314453, 0.32559674978256226, -1.1577627658843994, 0.09904194623231888, 0.08661847561597824, -0.515904426574707, -0.09411181509494781, 0.16646075248718262, 0.34468263387680054, 0.19609187543392181, 0.32909029722213745, -0.6373987793922424, 0.23263326287269592, -0.7018138766288757, 0.3101045787334442, 0.8205568194389343, -0.31801357865333557, 0.44186511635780334, -0.45580998063087463, 0.4933795928955078, 0.19098956882953644, 0.11347745358943939, 0.16484741866588593, -0.4436347484588623, -1.007799506187439, -0.2211473137140274, 0.5229962468147278, 1.2161303758621216, -0.7778953313827515, 0.9491564631462097, -0.6923929452896118, -0.974787712097168, -0.6665160059928894, -0.20434732735157013, 0.44950106739997864, 0.4897666573524475, 0.5650800466537476, -0.1806020885705948, -0.5222234129905701, -1.2554502487182617, -0.13770559430122375, -0.06779196858406067, -0.14340899884700775, 0.2745342552661896, 0.7329773902893066, -0.04912745952606201, 0.6415109634399414, -0.721943199634552, -0.42255568504333496, -0.18773779273033142, 0.14807893335819244, 0.5444024205207825, 0.7504172325134277, 0.7414783835411072, -0.8964117169380188, -0.6822985410690308, -0.06761355698108673, -0.7116037011146545, -0.19781845808029175, 0.06411104649305344, -0.3388681709766388, 0.02792149782180786, 0.20396603643894196, -0.19423267245292664, 0.2315768450498581, 0.8104586005210876, -0.7349415421485901, 0.7421658039093018, -0.06544061005115509, 0.31361138820648193, -1.5454248189926147, 0.11469725519418716, -0.19156137108802795, -0.15429940819740295, -0.48362910747528076, -0.04396659880876541, 0.27335670590400696, 0.0008922442211769521, -0.8916870355606079, 0.5371137261390686, -0.46945029497146606, -0.07848465442657471, 0.27575254440307617, 0.011723409406840801, 0.1052093356847763, 0.9037439823150635, -0.03739021718502045, 0.9144761562347412, 1.049850344657898, -0.5910521745681763, 0.19720503687858582, 0.5322644710540771, -0.4227285385131836, 0.5306294560432434, -0.8579105138778687, -0.2954031527042389, 0.3172149360179901, -0.0866379365324974, -0.8354281187057495, 0.15102806687355042, 0.2940051257610321, -0.7687872052192688, 0.36167460680007935, -0.07809150964021683, -0.7425458431243896, -0.1772957146167755, -0.4069153070449829, 0.5123898386955261, 0.652726948261261, -0.16465328633785248, 0.6117913722991943, 0.11825073510408401, 0.04749811068177223, -0.5622661709785461, -1.1810424327850342, -0.15813259780406952, -0.42393484711647034, -0.8496109843254089, 0.2781301438808441, -0.4966719448566437, 0.02779288776218891, 0.05255361273884773, 0.3344935476779938, -0.23271967470645905, 0.05803810805082321, 0.12674617767333984, 0.3376356363296509, -0.5479089021682739, 0.020616548135876656, -0.10316245257854462, -0.12504690885543823, -0.16902455687522888, -0.10303031653165817, 0.6821926832199097, -0.512991189956665, -0.42042672634124756, -0.562907338142395, 0.07068315893411636, 0.6052274107933044, -0.574874222278595, 0.8993867635726929, 0.5996075868606567, -0.20414327085018158, 0.14345477521419525, -0.4301818013191223, 0.08509275317192078, -0.49724093079566956, 0.2367064505815506, -0.5197486281394958, -0.9992665648460388, 0.7671917676925659, 0.10847603529691696, 0.5589627027511597, 0.9315637350082397, 0.7202252745628357, 0.18422549962997437, 0.9295556545257568, 0.3144734799861908, 0.04607934504747391, 0.5123525261878967, -0.5610526204109192, -0.18001064658164978, -1.1811408996582031, 0.20051825046539307, -0.8041316866874695, -0.4593537747859955, -1.0017517805099487, -0.31061869859695435, 0.3831849992275238, -0.013236671686172485, -0.4565495252609253, 0.8085318803787231, -0.8206419944763184, 0.35050782561302185, 0.6081988215446472, -0.048971667885780334, 0.23744235932826996, -0.005820083897560835, -0.6367893218994141, -0.33120301365852356, -0.4650868773460388, -0.41191208362579346, 1.4085338115692139, 0.32365840673446655, 0.2730828523635864, 0.3003957271575928, 0.6279823780059814, -0.023044496774673462, 0.17417019605636597, -0.5928104519844055, 0.5163347125053406, -0.23690372705459595, -0.8635660409927368, -0.2530403435230255, -0.6188364624977112, -0.8868371248245239, 0.557610273361206, -0.2537243366241455, -0.6779173016548157, 0.3550701141357422, 0.013951812870800495, -0.24981720745563507, 0.4998736083507538, -0.6577287316322327, 1.3176456689834595, -0.12263862043619156, -0.16435636579990387, 0.2403312474489212, -0.5346801280975342, 0.34559306502342224, 0.0868317261338234, 0.3638782799243927, -0.22984559834003448, 0.1945829689502716, 0.7618309259414673, -0.24501870572566986, 0.5271187424659729, -0.03359869867563248, 0.041148263961076736, 0.19848476350307465, 0.15565088391304016, 0.49349695444107056, -0.19357484579086304, -0.38935473561286926, 0.3402636647224426, 0.11462156474590302, -0.5273489952087402, -0.09749520570039749, 0.7235112190246582, -0.8397324085235596, -0.0656784176826477, -0.7133935689926147, -0.6536303758621216, -0.027389539405703545, 0.3753616511821747, 0.7521260976791382, 0.7507240176200867, -0.3442532420158386, 0.6748461127281189, 0.9038828611373901, -0.42180120944976807, 0.42678630352020264, 0.8695252537727356, -0.21567536890506744, -0.611843466758728, 0.9786781072616577, 0.1340266764163971, 0.41665369272232056, 0.5653234124183655, 0.12519070506095886, -0.05268549174070358, -0.7449594736099243, -0.671128511428833, 0.12796907126903534, -0.38177892565727234, -0.2717524766921997, -0.5155292749404907, -0.17674189805984497, -0.3675433099269867, 0.06268706172704697, -0.6235609650611877, -0.6485304832458496, -0.3963310122489929, -0.23716804385185242, 0.268073707818985, 0.20181652903556824, -0.10903539508581161, 0.47237107157707214, -1.0307886600494385, 0.14332573115825653, -0.19622617959976196, 0.3609280288219452, -0.4066906273365021, -0.9294993281364441, -0.4632434546947479, -0.05622221156954765, -0.910964846611023, -0.8588361144065857, 0.6520097851753235, 0.11538462340831757, 0.3635944128036499, 0.45656317472457886, 0.13461045920848846, 0.5445083975791931, -0.7956255078315735, 1.1693708896636963, 0.040564749389886856, -0.800325334072113, 0.5686941146850586, -0.5301584601402283, 0.5350432991981506, 1.0270668268203735, 0.21619512140750885, -0.45953601598739624, -0.5527551770210266, -0.8064994215965271, -0.9767910838127136, 0.9642521739006042, 0.7748686075210571, -0.19771058857440948, 0.25016146898269653, -0.23797324299812317, -0.24503925442695618, 0.059756118804216385, -1.2662140130996704, -0.5739240050315857, 0.048105232417583466, -0.4385068416595459, -0.005809355061501265, -0.24885597825050354, -0.22191645205020905, -0.3364306092262268, 1.225575566291809, 0.09494828432798386, 0.22653666138648987, 0.48806512355804443, -0.019011259078979492, -0.17007198929786682, 0.41710981726646423, 1.0943750143051147, 0.7254679799079895, -0.438530296087265, -0.1749047040939331, 0.47292715311050415, -0.4260590076446533, -0.21387988328933716, 0.09696472436189651, -0.3738069236278534, 0.18242047727108002, 0.37851545214653015, 1.030577540397644, 0.34193944931030273, -0.6341505646705627, 0.5653678178787231, -0.3374190926551819, -0.5016639232635498, -0.8793885111808777, -0.23653368651866913, 0.16407792270183563, -0.01858757808804512, 0.2365415096282959, 0.2639513909816742, 0.2662428915500641, -0.2108401507139206, 0.11896238476037979, 0.20674434304237366, -0.7734615206718445, -0.4803677499294281, 0.6091853380203247, 0.09283547848463058, -0.16906651854515076, 0.48518985509872437, -0.47582754492759705, -0.7488130331039429, 0.6053066849708557, 0.09945313632488251, 1.179357886314392, -0.2545515298843384, -0.31544241309165955, 0.9238294959068298, 0.6468853950500488, -0.2420240193605423, 0.6122002601623535, 0.1934092938899994, -0.7380679845809937, -0.503311038017273, -0.9072699546813965, -0.13021688163280487, 0.05842624604701996, -0.9830001592636108, 0.5475098490715027, 0.31322458386421204, 0.007021198980510235, -0.33956751227378845, 0.23537930846214294, -0.7162575125694275, 0.07229115068912506, -0.2284448891878128, 1.2290732860565186, -1.0462385416030884, 0.9745934009552002, 0.5208560228347778, -0.3977232277393341, -1.0134849548339844, -0.47906985878944397, -0.06552113592624664, -0.5571449398994446, 0.6427204012870789, 0.08651352673768997, 0.3598096966743469, -0.13599622249603271, -0.40745729207992554, -1.0932420492172241, 1.3092474937438965, 0.1070755124092102, -0.6711046099662781, 0.05479581281542778, 0.21351252496242523, 0.5302146673202515, -0.3952716588973999, 0.2056954801082611, 0.5010514855384827, 0.8523153066635132, 0.08479894697666168, -1.2075361013412476, -0.2243683636188507, -0.6539531946182251, -0.3690164089202881, 0.5383691191673279, -0.7195543646812439, 1.151039719581604, 0.49740955233573914, -0.0714653730392456, 0.09738815575838089, 0.6976519227027893, 0.46525588631629944, 0.22218148410320282, 0.5996115207672119, 1.3172131776809692, 0.47450724244117737, -0.6245446801185608, 1.0188686847686768, -0.40460947155952454, 0.66334468126297, 1.3274613618850708, -0.007802440319210291, 0.9571250677108765, 0.2430662214756012, -0.24815136194229126, 0.6574278473854065, 0.8504010438919067, -0.42938628792762756, 0.46069398522377014, 0.2174682915210724, 0.18220007419586182, -0.26003357768058777, 0.30457866191864014, -0.8442530035972595, 0.23610858619213104, 0.20393618941307068, -0.3555227518081665, -0.01857871003448963, -0.1826944649219513, 0.22653315961360931, -0.04656216502189636, -0.2226894646883011, 0.5708591938018799, -0.04727178066968918, -0.5816227197647095, 0.833105742931366, -0.02554190158843994, 0.74339359998703, -0.7983828783035278, 0.06538308411836624, 0.05644286423921585, 0.38529375195503235, -0.14440245926380157, -0.6770119071006775, 0.5312196612358093, 0.07728878408670425, -0.3760104179382324, -0.48290297389030457, 0.29838067293167114, -0.5433520674705505, -1.1005820035934448, 0.41151225566864014, 0.4562838673591614, 0.3936721086502075, -0.05116555467247963, -1.0388959646224976, 0.05200209096074104, 0.1721777468919754, -0.7448572516441345, 0.12834011018276215, 0.7567157745361328, 0.2683596909046173, 0.44803717732429504, 0.775263786315918, 0.2349626123905182, 0.3084408938884735, -0.08711478114128113, 0.8363662362098694, -0.47011885046958923, -0.6172035932540894, -0.8492183089256287, 0.9405747056007385, -0.20213806629180908, -0.795711874961853, 0.8233455419540405, 1.233096957206726, 0.9931057691574097, -0.1034630760550499, 0.37357720732688904, -0.1447877436876297, 0.8524128794670105, -0.5066620707511902, 0.7912309765815735, -1.0452765226364136, 0.19980691373348236, -0.11489180475473404, -0.950346052646637, -0.2245756983757019, 0.32018667459487915, -0.3435475826263428, -0.3667694330215454, 0.8938603401184082, 0.7736218571662903, -0.15545064210891724, -0.15142583847045898, 0.28903183341026306, 0.3327929973602295, 0.27430260181427, 0.7714941501617432, 0.37882938981056213, -1.0946152210235596, 0.6911903619766235, -0.3732231557369232, -0.18344950675964355, 0.022901296615600586, -0.8528534770011902, -0.882580578327179, -0.6795961260795593, -0.21050196886062622, -0.31897681951522827, -0.41025620698928833, 1.011287808418274, 0.7142326235771179, -1.1606190204620361, -0.5856060981750488, -0.061187952756881714, 0.07007487863302231, -0.3068957030773163, -0.35155022144317627, 0.7888501882553101, -0.3420426845550537, -1.020476222038269, 0.5162269473075867, -0.09018272906541824, -0.14734229445457458, -0.1014174222946167, -0.3885023295879364, -0.5120782852172852, -0.03194613382220268, 0.35889512300491333, 0.13637295365333557, -0.6028540730476379, 0.10694040358066559, 0.202609583735466, -0.1379498839378357, 0.4352114796638489, 0.36679431796073914, -0.2979959547519684, 0.19490934908390045, 1.0132238864898682, 0.27653393149375916, 0.4444333016872406, -0.17221233248710632, 0.4552236795425415, -0.9036014676094055, 0.3509666323661804, 0.2381768822669983, 0.6889601945877075, 0.3295176923274994, -0.0569990798830986, 0.8705486059188843, 0.284137487411499, -0.7394046187400818, -1.2094510793685913, 0.032858956605196, -1.42234468460083, -0.041236475110054016, 1.0756851434707642, -0.2520101070404053, -0.2622549831867218, 0.3762650191783905, -0.1699308305978775, 0.05988933891057968, -0.38421711325645447, 0.33231407403945923, 1.1285821199417114, 0.25451865792274475, 0.14161176979541779, -0.8707983493804932, 0.421630322933197, 0.4300185441970825, -0.8568519353866577, -0.17079715430736542, 0.2788376808166504, 0.2078968733549118, 0.48565271496772766, 0.5629309415817261, -0.4115082621574402, 0.11351917684078217, -0.2827223241329193, 0.5002740621566772, -0.06337326765060425, -0.09646740555763245, -0.2602490186691284, -0.028680255636572838, -0.12287119776010513, -0.3427089750766754 ]
bergum/xtremedistil-l6-h384-go-emotion
bergum
"2023-03-21T11:55:16Z"
20,091
6
transformers
[ "transformers", "pytorch", "safetensors", "bert", "text-classification", "dataset:go_emotions", "license:apache-2.0", "model-index", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 datasets: - go_emotions metrics: - accuracy model-index: - name: xtremedistil-emotion results: - task: name: Multi Label Text Classification type: multi_label_classification dataset: name: go_emotions type: emotion args: default metrics: - name: Accuracy type: accuracy value: NaN --- # xtremedistil-l6-h384-go-emotion This model is a fine-tuned version of [microsoft/xtremedistil-l6-h384-uncased](https://huggingface.co/microsoft/xtremedistil-l6-h384-uncased) on the [go_emotions dataset](https://huggingface.co/datasets/go_emotions). See notebook for how the model was trained and converted to ONNX format [![Training Notebook](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/jobergum/emotion/blob/main/TrainGoEmotions.ipynb) This model is deployed to [aiserv.cloud](https://aiserv.cloud/) for live demo of the model. See [https://github.com/jobergum/browser-ml-inference](https://github.com/jobergum/browser-ml-inference) for how to reproduce. ### Training hyperparameters - batch size 128 - learning_rate=3e-05 - epocs 4 <pre> Num examples = 211225 Num Epochs = 4 Instantaneous batch size per device = 128 Total train batch size (w. parallel, distributed & accumulation) = 128 Gradient Accumulation steps = 1 Total optimization steps = 6604 [6604/6604 53:23, Epoch 4/4] Step Training Loss 500 0.263200 1000 0.156900 1500 0.152500 2000 0.145400 2500 0.140500 3000 0.135900 3500 0.132800 4000 0.129400 4500 0.127200 5000 0.125700 5500 0.124400 6000 0.124100 6500 0.123400 </pre>
[ -0.311331182718277, -0.1304032802581787, 0.3008914291858673, 0.23223131895065308, -0.06662266701459885, -0.25223493576049805, 0.058822210878133774, -0.17425762116909027, 0.3670988380908966, 0.25443965196609497, -0.8918070197105408, -0.5745766758918762, -0.525290310382843, -0.18816152215003967, -0.1029798835515976, 1.091997504234314, -0.17365017533302307, 0.34268295764923096, 0.04785888269543648, -0.3148465156555176, 0.05036471039056778, -0.6207846999168396, -0.74399334192276, -0.41288915276527405, 0.5413462519645691, 0.3362888991832733, 0.6566043496131897, 0.5561555624008179, 0.7452261447906494, 0.31195545196533203, -0.16651348769664764, -0.3758351802825928, -0.7890859246253967, -0.09418362379074097, 0.13106633722782135, -0.5066537857055664, -0.7337890267372131, 0.07882237434387207, 0.5973498225212097, 0.2803191542625427, -0.25348910689353943, 0.3581896126270294, -0.01027638278901577, 0.5739103555679321, -0.6760510206222534, 0.17317649722099304, -0.15111127495765686, 0.4151194989681244, 0.13549552857875824, 0.11067691445350647, -0.276763916015625, -0.2656433880329132, 0.3201542794704437, -0.55815589427948, 0.16664384305477142, 0.19401849806308746, 1.188321828842163, 0.5412120223045349, -0.4063929319381714, 0.09566327929496765, -0.37720903754234314, 0.8808989524841309, -0.7582736015319824, 0.45033493638038635, 0.37186819314956665, 0.4377894699573517, 0.09263227880001068, -0.9925905466079712, -0.26632601022720337, 0.11050117015838623, 0.12592916190624237, 0.3349885940551758, -0.38638702034950256, 0.033875495195388794, 0.4296533465385437, 0.3762776255607605, -0.7979415655136108, 0.10410892218351364, -0.21198806166648865, -0.18968355655670166, 0.5025055408477783, 0.36766737699508667, 0.15933802723884583, -0.11317335069179535, -0.6507634520530701, -0.34261354804039, -0.5072032809257507, 0.4237925112247467, 0.2068016678094864, 0.039356183260679245, -0.5706621408462524, 0.35321852564811707, -0.12874573469161987, 0.6774206161499023, -0.0618155300617218, -0.18110719323158264, 0.7197916507720947, -0.15888547897338867, -0.5911333560943604, 0.07362981140613556, 0.8620549440383911, 0.7087533473968506, 0.006955451797693968, 0.002883516950532794, -0.2927618622779846, 0.11572860181331635, 0.47067323327064514, -1.0928905010223389, -0.3677300214767456, 0.4555054306983948, -0.6521074175834656, -0.4435092508792877, -0.24454043805599213, -0.6469509601593018, -0.1645534336566925, -0.2994335889816284, 0.5674957036972046, -0.5099407434463501, -0.12982380390167236, 0.08322679996490479, -0.16277630627155304, 0.1303819864988327, 0.29762783646583557, -0.5797340869903564, 0.18866778910160065, 0.2847016453742981, 0.7649379372596741, -0.14371852576732635, -0.09629382193088531, -0.2490094155073166, -0.20851297676563263, -0.2511098086833954, 0.43612852692604065, -0.3213001489639282, -0.41139793395996094, -0.0775860920548439, 0.25230178236961365, -0.2714833915233612, -0.5379012823104858, 0.9341583251953125, -0.4009547233581543, 0.33603236079216003, -0.27836501598358154, -0.6645942330360413, -0.3811662495136261, 0.5608123540878296, -0.6460480093955994, 1.1373811960220337, 0.4729355275630951, -0.9051347970962524, 0.2302093654870987, -0.9376826286315918, 0.3013920187950134, -0.1165226623415947, 0.06881929188966751, -0.7673670053482056, 0.055943891406059265, -0.30322229862213135, 0.5189943909645081, -0.30215075612068176, 0.13871394097805023, -0.6647146344184875, -0.24357587099075317, 0.11825504899024963, -0.12626631557941437, 0.9262430667877197, 0.04405634105205536, -0.5094653367996216, 0.46352899074554443, -1.1971393823623657, 0.29737624526023865, 0.1117645800113678, -0.2963235378265381, -0.1554895043373108, -0.47200873494148254, 0.29808154702186584, 0.6472815275192261, 0.182941734790802, -0.8231483101844788, 0.13175486028194427, -0.2652002274990082, 0.33111652731895447, 0.6337664723396301, 0.0372263602912426, 0.0861189067363739, -0.2849397659301758, 0.6788482666015625, 0.24289390444755554, 0.4779703617095947, 0.25480177998542786, -0.5026963949203491, -0.8781551718711853, -0.39427435398101807, 0.10387109965085983, 0.5649983882904053, -0.5424289703369141, 0.4074532985687256, -0.15665161609649658, -0.8415652513504028, -0.6282497048377991, -0.22871838510036469, 0.5535010099411011, 0.947815477848053, 0.4846465289592743, -0.10674674063920975, -0.5682501792907715, -1.1035315990447998, -0.10984264314174652, 0.09160396456718445, 0.06688655912876129, 0.3552573621273041, 0.6468748450279236, -0.5622174739837646, 0.758966326713562, -0.3876795768737793, -0.1325615793466568, 0.1705024689435959, 0.24758535623550415, 0.26540955901145935, 0.6266286969184875, 0.6829925775527954, -0.7449002265930176, -0.47664639353752136, -0.2224167436361313, -0.8115040063858032, 0.1715506911277771, 0.04231623560190201, -0.3540772795677185, 0.2604031562805176, 0.178081676363945, -0.42958858609199524, 0.8253610134124756, 0.5122116804122925, -0.5791805982589722, 0.6882674098014832, -0.2274906039237976, 0.20028038322925568, -1.248846173286438, 0.1442798674106598, 0.39829540252685547, -0.38877207040786743, -0.4824093282222748, -0.06631477922201157, 0.35861337184906006, -0.10831242054700851, -0.8268167972564697, 0.6485056281089783, -0.3007427155971527, 0.11928290873765945, -0.16755066812038422, -0.36731889843940735, -0.04101031273603439, 0.767376184463501, 0.07911838591098785, 0.5304238200187683, 0.7519075870513916, -0.3771993815898895, 0.5993202328681946, 0.5202446579933167, -0.4072321057319641, 0.42145079374313354, -0.8023054599761963, -0.05340367928147316, -0.007534043863415718, 0.23406551778316498, -1.0266120433807373, -0.4025663733482361, 0.4271766245365143, -0.37270355224609375, 0.16625908017158508, -0.2513333857059479, -0.2814449369907379, -0.3817870318889618, -0.3658229112625122, 0.332370787858963, 0.6845702528953552, -0.46611669659614563, 0.5814579129219055, 0.2086414247751236, -0.03827466815710068, -0.5292770862579346, -0.7680937647819519, -0.09192711114883423, -0.402931809425354, -0.7077279686927795, 0.4924400746822357, -0.18408244848251343, -0.07689168304204941, -0.13787034153938293, 0.04999461770057678, -0.27961087226867676, -0.14222504198551178, 0.5951198935508728, 0.4529131054878235, -0.15979979932308197, -0.0355251245200634, -0.0910998284816742, -0.09159292280673981, 0.39983123540878296, 0.10937143117189407, 0.3304000496864319, -0.1748942881822586, -0.19435903429985046, -0.7579952478408813, 0.2814127206802368, 0.6520658731460571, 0.10012193024158478, 0.7398699522018433, 0.8588535785675049, -0.566288411617279, -0.06444643437862396, -0.2142624855041504, -0.3380032181739807, -0.4527924656867981, 0.36847183108329773, -0.43147337436676025, -0.6022568345069885, 0.7247863411903381, -0.008537725545465946, -0.16646768152713776, 0.5116506814956665, 0.7870055437088013, 0.15799467265605927, 1.4118170738220215, 0.423004686832428, -0.09956395626068115, 0.3478913903236389, -0.6500656008720398, -0.15790659189224243, -0.6537567973136902, -0.42083919048309326, -0.4214056134223938, -0.47416332364082336, -0.5817306637763977, -0.14332669973373413, 0.49625417590141296, -0.12922315299510956, -0.7883592844009399, 0.21285380423069, -0.37368130683898926, -0.005711447913199663, 0.7670961022377014, 0.4278829097747803, -0.33011138439178467, 0.0912698432803154, -0.2506631910800934, -0.13867676258087158, -0.8632311820983887, -0.25074243545532227, 1.0228501558303833, 0.5807573795318604, 0.7774192690849304, 0.08734311908483505, 0.7447782754898071, 0.16614873707294464, 0.32814687490463257, -0.7731298804283142, 0.4714828431606293, 0.0276825912296772, -0.5932396054267883, 0.0648103877902031, -0.3798591196537018, -0.8745005130767822, -0.09843836724758148, -0.3064057528972626, -1.1018593311309814, 0.4977130591869354, 0.4412521421909332, -0.5639134049415588, 0.2736462950706482, -0.8713539242744446, 1.4551475048065186, -0.14197605848312378, -0.5402336716651917, 0.06833574920892715, -0.9667121767997742, 0.35201120376586914, -0.06341864168643951, -0.1714707463979721, -0.06716211885213852, 0.02178819850087166, 0.9683717489242554, -0.8430424928665161, 0.8646729588508606, -0.432295560836792, 0.1657504141330719, 0.12456318736076355, -0.18733473122119904, 0.676646888256073, -0.17692050337791443, -0.17869174480438232, 0.08416840434074402, 0.058415550738573074, -0.4826723337173462, -0.6500436663627625, 0.7987506985664368, -1.0797274112701416, -0.06555544584989548, -0.4943443536758423, -0.6709697842597961, -0.3162305951118469, 0.035111766308546066, 0.6994067430496216, 0.7109172940254211, -0.05937192216515541, 0.3569295108318329, 0.7482898831367493, -0.12988649308681488, 0.4691242277622223, 0.3570447266101837, -0.2536602020263672, -0.49890854954719543, 1.0599887371063232, -0.026455584913492203, 0.20331840217113495, 0.0842515230178833, 0.16422253847122192, -0.583429217338562, -0.25020813941955566, -0.48581501841545105, 0.08188676089048386, -0.7159861326217651, -0.2000482976436615, -0.6885598301887512, -0.14293842017650604, -0.6120617985725403, 0.06689756363630295, -0.4101123511791229, -0.2729785144329071, -0.7147736549377441, -0.028531938791275024, 0.5195280909538269, 0.512657105922699, -0.10356315225362778, 0.7212287783622742, -0.9061301350593567, 0.16006046533584595, -0.04773840308189392, 0.36215412616729736, -0.28516218066215515, -0.8490101099014282, -0.3786701261997223, 0.06689795106649399, -0.3836601674556732, -0.9237567782402039, 0.8105430603027344, 0.18546894192695618, 0.41484907269477844, 0.6384731531143188, 0.1036263033747673, 0.6444729566574097, -0.2673904001712799, 0.661639928817749, 0.4197154939174652, -0.634779155254364, 0.2923702299594879, -0.2960273325443268, 0.31503888964653015, 0.4305970370769501, 1.1189037561416626, -0.38134849071502686, 0.16738076508045197, -0.9544223546981812, -0.9960753321647644, 0.7432968616485596, 0.25414174795150757, -0.35008320212364197, 0.17610281705856323, 0.24356120824813843, -0.05408147722482681, 0.04008083418011665, -0.7119375467300415, -0.49789607524871826, -0.3628648817539215, -0.5353518724441528, -0.13239029049873352, -0.29264503717422485, -0.3228524327278137, -0.403400182723999, 1.0484620332717896, -0.035039108246564865, 0.5402140617370605, 0.25411778688430786, 0.013762972317636013, 0.11125563085079193, -0.08955952525138855, 0.5132642388343811, 0.43709859251976013, -0.7339016199111938, -0.1572599709033966, -0.08413351327180862, -0.4286124110221863, 0.3378947973251343, 0.23536932468414307, 0.04777192696928978, -0.010129254311323166, 0.11400068551301956, 1.43781316280365, 0.2491959184408188, -0.5864423513412476, 0.5498131513595581, -0.35050761699676514, -0.34006351232528687, -0.4045352339744568, 0.15574446320533752, 0.04068449139595032, 0.38474616408348083, -0.002605934627354145, 0.24723997712135315, 0.3955058753490448, -0.17667976021766663, 0.2407890260219574, 0.17526468634605408, -0.9863899350166321, -0.39229294657707214, 0.6785542964935303, 0.1991575062274933, -0.33871254324913025, 0.4821290373802185, -0.3632303774356842, -0.5419883131980896, 0.7436473369598389, 0.48158013820648193, 0.9480655193328857, -0.15615147352218628, -0.03409478813409805, 0.4216592609882355, -0.06911227852106094, -0.18422061204910278, 0.9019347429275513, 0.2938564717769623, -0.5766282677650452, -0.36874327063560486, -0.6261245012283325, -0.5530818700790405, 0.1905437409877777, -1.1455475091934204, 0.16202408075332642, -0.3722597658634186, -0.5463712215423584, 0.22850336134433746, -0.010767040774226189, -0.9005383253097534, 0.8561063408851624, 0.07913154363632202, 1.4200873374938965, -0.8478652238845825, 0.9161505103111267, 0.8934616446495056, -0.26509925723075867, -1.006989598274231, -0.3113182485103607, 0.24797683954238892, -0.9029889106750488, 0.7407671213150024, 0.2146121859550476, 0.17719292640686035, 0.20923106372356415, -0.5915857553482056, -0.7482513189315796, 0.9447000622749329, 0.3845612108707428, -0.6281788349151611, 0.11130549758672714, 0.11731152981519699, 0.46818989515304565, -0.34415557980537415, 0.5894168615341187, 0.35799992084503174, 0.3581865131855011, 0.021588940173387527, -0.6991330981254578, -0.08656208962202072, -0.6518886089324951, -0.08817683905363083, 0.052658889442682266, -0.6456447839736938, 1.0339300632476807, -0.036113668233156204, 0.3339138627052307, 0.0369875431060791, 0.5185549855232239, 0.19428479671478271, 0.19967055320739746, 0.5422911047935486, 1.1680901050567627, 0.6329357028007507, -0.06777238100767136, 1.2155983448028564, -0.6117173433303833, 0.5995040535926819, 1.160807490348816, -0.166185200214386, 0.7324479222297668, 0.4193289279937744, -0.16079938411712646, 0.6324966549873352, 1.1933844089508057, 0.0627691000699997, 0.3715318739414215, 0.25115129351615906, -0.4391823709011078, -0.307755708694458, -0.008421871811151505, -0.5054638981819153, 0.3500538170337677, 0.07239329814910889, -0.662580668926239, -0.20247338712215424, 0.21709281206130981, 0.23246382176876068, -0.6198888421058655, -0.47787657380104065, 0.6256446242332458, -0.19694086909294128, -0.5046709179878235, 0.8937159180641174, -0.10608679801225662, 0.5011166930198669, -0.7615636587142944, 0.07018996775150299, -0.10743208229541779, 0.4171072542667389, -0.19341449439525604, -0.6573280096054077, 0.1328253597021103, -0.024821624159812927, -0.37358736991882324, -0.1224018931388855, 0.7690468430519104, -0.36313387751579285, -0.6948432922363281, 0.44130733609199524, 0.31030377745628357, 0.4523073732852936, -0.35809388756752014, -1.1711713075637817, 0.2324204295873642, 0.09586752951145172, -0.7349613904953003, 0.5104146003723145, 0.3354852497577667, -0.029067300260066986, 0.8012583255767822, 0.3813294768333435, -0.1728508174419403, 0.08355270326137543, -0.04394447058439255, 0.9480770826339722, -0.8280854225158691, -0.5710341334342957, -0.7486352920532227, 0.8146494626998901, -0.19760917127132416, -0.7553178071975708, 0.5752048492431641, 0.7567314505577087, 0.6303697824478149, -0.27180415391921997, 0.7561373710632324, 0.12501461803913116, 0.5418060421943665, -0.21637244522571564, 0.7076796293258667, -0.8501017093658447, -0.4668816030025482, -0.13708321750164032, -0.6098663210868835, -0.13198935985565186, 0.4478093683719635, -0.05281531810760498, 0.079545758664608, 0.44369590282440186, 1.0335752964019775, -0.20602674782276154, 0.05237457528710365, 0.33252838253974915, 0.34421005845069885, -0.0008709082030691206, 0.5736786723136902, 0.3763732314109802, -0.6430999636650085, 0.35508301854133606, -0.4824722111225128, -0.5865795016288757, -0.39271241426467896, -0.9930448532104492, -0.5947666764259338, -0.3236527144908905, -0.6702374219894409, -0.7970446348190308, 0.11422310769557953, 1.224057674407959, 1.0047413110733032, -0.7615058422088623, -0.23246124386787415, 0.10759105533361435, -0.3429725468158722, -0.04121808335185051, -0.16894903779029846, 0.30643877387046814, -0.19660916924476624, -0.7310290932655334, 0.23705466091632843, 0.07207320630550385, 0.3142628073692322, -0.15956304967403412, -0.3790110647678375, -0.23015977442264557, -0.12491840124130249, 0.4954472482204437, 0.3645542562007904, -0.35233569145202637, -0.24869108200073242, 0.017816439270973206, -0.17903847992420197, 0.2136952131986618, 0.3916264474391937, -0.7179026007652283, 0.41864317655563354, 0.5044472217559814, 0.4994729161262512, 0.6073036789894104, -0.12964051961898804, 0.35212740302085876, -0.6429876685142517, 0.17948666214942932, 0.1355714201927185, 0.8153504133224487, 0.2044169157743454, -0.11159086972475052, 0.5029038786888123, 0.4563775658607483, -0.8376208543777466, -0.8883849382400513, -0.057508062571287155, -1.339168906211853, -0.006540360394865274, 1.0804551839828491, -0.7037540078163147, -0.6483867168426514, 0.2989339828491211, -0.2810659110546112, 0.4097770154476166, -0.44075533747673035, 0.6011542081832886, 0.5010053515434265, -0.31590622663497925, -0.15123365819454193, -0.3835439383983612, 0.5794124603271484, 0.46804100275039673, -0.8759486675262451, -0.2305712103843689, 0.38985952734947205, 0.2546118497848511, 0.11162237077951431, 0.30690595507621765, 0.1592235118150711, 0.2618633210659027, 0.008271735161542892, 0.5963402390480042, 0.07771055400371552, -0.1316104233264923, -0.36385878920555115, 0.18736043572425842, -0.284160315990448, -0.5178552865982056 ]
bhadresh-savani/roberta-base-emotion
bhadresh-savani
"2023-03-22T08:48:07Z"
20,081
1
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "roberta", "text-classification", "emotion", "en", "dataset:emotion", "arxiv:1907.11692", "license:apache-2.0", "model-index", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: - en license: apache-2.0 tags: - text-classification - emotion - pytorch datasets: - emotion metrics: - Accuracy, F1 Score thumbnail: https://avatars3.githubusercontent.com/u/32437151?s=460&u=4ec59abc8d21d5feea3dab323d23a5860e6996a4&v=4 model-index: - name: bhadresh-savani/roberta-base-emotion results: - task: type: text-classification name: Text Classification dataset: name: emotion type: emotion config: default split: test metrics: - type: accuracy value: 0.931 name: Accuracy verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjg5OTI4ZTlkY2VmZjYzNGEzZGQ3ZjczYzY5YjJmMGVmZDQ4ZWNiYTAyZTJiZjlmMTU2MjE1NTllMWFhYzU0MiIsInZlcnNpb24iOjF9.dc44cEsbu900M2s64GyVIWKPagBzwI-dPlfvh0NGyJFMGKOcypke9P2ary9fBZITrH3UF6lza3sCh7vWYZFHBQ - type: precision value: 0.9168321948556312 name: Precision Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiN2EzYTcxNTExNGU1MmFiZjE3NGE5MDIyMDU2M2U3OGExOTdjZDE5YWU2NDhmOTJlYWMzY2NkN2U5MmRmZTE0MiIsInZlcnNpb24iOjF9.4U7vJ3ALdUUxySMhVeb4Qa1tSp3wphSIZkRYNMujz-KrOZW8kkcmCde3ioStBg3Qqyf1powYd88uk1R7DuWRBA - type: precision value: 0.931 name: Precision Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMjhmZGRlYWE5ZTAzMmJiMzlmMWZiM2VlYjdiNzI0NjVmN2M2YzcxM2EzYTg0OTFiZTE1MjVmNzE5NGEzYTg2ZCIsInZlcnNpb24iOjF9.8eCHAK0rlZWnhBNQdh9kcuAeItmDUAgK3KkZ7eC-GyYhi4HT5dZiS6btcC5EjkYVOS4czcjzqxfVz4PuZgtLDQ - type: precision value: 0.9357445689014415 name: Precision Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDhhZTdkNzYzMjhjZjc4MTAxNWZiYjgzMjhhNjRiZWRmYjc5YTA0NTQ1MzllMTYxMTVkMDk4OTE0ZGEyMTNhMiIsInZlcnNpb24iOjF9.YIZfj2Eo1nMX2GVSfqJy-Cp7VBubfUh2LuOnU60sG5Lci8FdlNbAanS1IzAyxU3U29lqiTasxfS_yrwAj5cmBQ - type: recall value: 0.8743657671177089 name: Recall Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiM2Y2YTcyNzMwYzZiMmM1Yzc4YWZhNDM3ZDQyMjI1NWZhMjQyNmU5NTA0YmE2ZDBiZmY1MmUyZWRlMjRhMjFmYSIsInZlcnNpb24iOjF9.XKlFy_Cx4T4l7Otd8aAwWcI-fJ_dJ6V1Kp3uZm6OWjwCb1Do6mSdPFfwiMeBZZyfEIsNBnguegssZvHsOfTSAQ - type: recall value: 0.931 name: Recall Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzgzN2JkNzAzZDRjNjJmZjNkY2RmYzVkMWEzYTMzZDU4NzJlYzBmOWE4MTU0MGU0MTJhM2JjZDdjODhlZDExOCIsInZlcnNpb24iOjF9.9tSVB4yNBdFXpH3equwo1ZaEnVUktO6lm93UEJ-luKhxo6wgS54OLjgDq7IpJYwa3lvYyjy-sxzQEe9ri31WAg - type: recall value: 0.931 name: Recall Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGVhZTIyMmVmOTU1YWNjMmZiZjNmOTNlNzlhZTk3NjhlZmMwZGFkZWQxZTlhZWUwZGQyN2JhOWQyNWQ3MTVhOCIsInZlcnNpb24iOjF9.2odv2fK7zH0_S_7wC3obONzjxOipDdjWvddhnGdMnrIN6CiZwLp7XgizpqcWbwAQ_9YJwjC-6wXpbq2jTvN0Bw - type: f1 value: 0.8821236522209227 name: F1 Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZDI0YTUxOTA2M2ZjNGM1OTJlZDAzZTAxNTg4YjY3OWNmMjNmMTk0YWRjZTE2Y2ZmYWI1ZmU3ZmJmNzNjMjBlOCIsInZlcnNpb24iOjF9.P5-TbuEUrCtX9H7F-tKn8LI1RBPhoJwjJm_l853WTSzdLioThAtIK5HBG0xgXT2uB0Q8v94qH2b8cz1j_WonDg - type: f1 value: 0.931 name: F1 Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYjNmNDgyMmFjODYwNjcwOTJiOGM2N2YwYjUyMDk5Yjk2Y2I3NmFmZGFhYjU0NGM2OGUwZmRjNjcxYTU3YzgzNSIsInZlcnNpb24iOjF9.2ZoRJwQWVIcl_Ykxce1MnZ3mSxBGxGeNYFPxt9mivo9yTi3gUE7ua6JRpVEOnOUbevlWxVkUUNnmOPFqBN1sCQ - type: f1 value: 0.9300782840205046 name: F1 Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGE1OTcxNmNmMjQ3ZDAzYzk0N2Q1MGFjM2VhNWMyYmRjY2E3ZThjODExOTNlNWMxYzdlMWM2MDBiMTZhY2M2OSIsInZlcnNpb24iOjF9.r63SEArCiFB5m0ccV2q_t5uSOtjVnWdz4PfvCYUchm0JlrRC9YAm5oWKeO419wdyFY4rZFe014yv7sRcV-CgBQ - type: loss value: 0.15155883133411407 name: loss verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiN2M4MmVlNjAzZjhiMWJlNWQxMDg5ZTRiYjFlZGYyMGMyYzU4M2IwY2E1M2E2MzA5NmU5ZjgwZTZmMDI5YjgzMyIsInZlcnNpb24iOjF9.kjgFJohkTxLKtzHJDlBvd6qolGQDSZLbrDE7C07xNGmarhTLc_A3MmLeC4MmQGOl1DxfnHflImIkdqPylyylDA --- # robert-base-emotion ## Model description: [roberta](https://arxiv.org/abs/1907.11692) is Bert with better hyperparameter choices so they said it's Robustly optimized Bert during pretraining. [roberta-base](https://huggingface.co/roberta-base) finetuned on the emotion dataset using HuggingFace Trainer with below Hyperparameters ``` learning rate 2e-5, batch size 64, num_train_epochs=8, ``` ## Model Performance Comparision on Emotion Dataset from Twitter: | Model | Accuracy | F1 Score | Test Sample per Second | | --- | --- | --- | --- | | [Distilbert-base-uncased-emotion](https://huggingface.co/bhadresh-savani/distilbert-base-uncased-emotion) | 93.8 | 93.79 | 398.69 | | [Bert-base-uncased-emotion](https://huggingface.co/bhadresh-savani/bert-base-uncased-emotion) | 94.05 | 94.06 | 190.152 | | [Roberta-base-emotion](https://huggingface.co/bhadresh-savani/roberta-base-emotion) | 93.95 | 93.97| 195.639 | | [Albert-base-v2-emotion](https://huggingface.co/bhadresh-savani/albert-base-v2-emotion) | 93.6 | 93.65 | 182.794 | ## How to Use the model: ```python from transformers import pipeline classifier = pipeline("text-classification",model='bhadresh-savani/roberta-base-emotion', return_all_scores=True) prediction = classifier("I love using transformers. The best part is wide range of support and its easy to use", ) print(prediction) """ Output: [[ {'label': 'sadness', 'score': 0.002281982684507966}, {'label': 'joy', 'score': 0.9726489186286926}, {'label': 'love', 'score': 0.021365027874708176}, {'label': 'anger', 'score': 0.0026395076420158148}, {'label': 'fear', 'score': 0.0007162453257478774}, {'label': 'surprise', 'score': 0.0003483477921690792} ]] """ ``` ## Dataset: [Twitter-Sentiment-Analysis](https://huggingface.co/nlp/viewer/?dataset=emotion). ## Training procedure [Colab Notebook](https://github.com/bhadreshpsavani/ExploringSentimentalAnalysis/blob/main/SentimentalAnalysisWithDistilbert.ipynb) follow the above notebook by changing the model name to roberta ## Eval results ```json { 'test_accuracy': 0.9395, 'test_f1': 0.9397328860104454, 'test_loss': 0.14367154240608215, 'test_runtime': 10.2229, 'test_samples_per_second': 195.639, 'test_steps_per_second': 3.13 } ``` ## Reference: * [Natural Language Processing with Transformer By Lewis Tunstall, Leandro von Werra, Thomas Wolf](https://learning.oreilly.com/library/view/natural-language-processing/9781098103231/)
[ -0.35865625739097595, -0.6366602778434753, 0.24500730633735657, 0.46622562408447266, -0.27634671330451965, -0.000527424446772784, -0.45144930481910706, -0.3434982895851135, 0.3828529417514801, 0.01834896020591259, -0.8355479836463928, -0.7422969937324524, -0.8378980755805969, -0.07127930968999863, -0.09175857156515121, 1.3341020345687866, 0.010543778538703918, 0.30585747957229614, 0.033775363117456436, -0.2541697025299072, -0.1766410619020462, -0.6708307266235352, -0.643923819065094, -0.4884384572505951, 0.3941097855567932, 0.11071264743804932, 0.5313683152198792, 0.16168475151062012, 0.6045299172401428, 0.3710779547691345, -0.3450539708137512, -0.21894219517707825, -0.5780606865882874, 0.07982160151004791, 0.3004838526248932, -0.6277888417243958, -0.6943947076797485, 0.13213546574115753, 0.39524000883102417, 0.324187695980072, 0.0215509831905365, 0.43673428893089294, 0.058871734887361526, 0.807475745677948, -0.44218555092811584, 0.4644670784473419, -0.5528599619865417, 0.1467115879058838, -0.09828758984804153, -0.058708541095256805, -0.476150244474411, -0.40156522393226624, 0.39128488302230835, -0.2728213667869568, 0.34267479181289673, 0.13387656211853027, 1.5437647104263306, 0.3742632269859314, -0.1030288115143776, -0.11778826266527176, -0.4602861702442169, 1.1965258121490479, -0.8782591819763184, 0.32309389114379883, 0.2467411458492279, 0.14111241698265076, 0.22248509526252747, -0.6497209668159485, -0.5962854027748108, -0.1429847627878189, -0.1276882141828537, 0.4321690499782562, -0.4218672215938568, -0.11509614437818527, 0.31804928183555603, 0.38659238815307617, -0.6294583082199097, -0.1726907193660736, -0.16605933010578156, -0.10723953694105148, 0.6353384852409363, 0.1979537457227707, 0.1326393187046051, -0.47567492723464966, -0.44451120495796204, -0.4670291543006897, 0.04819607734680176, 0.34564921259880066, 0.37676534056663513, 0.47503241896629333, -0.5215622186660767, 0.4966619610786438, 0.023454930633306503, 0.5125885009765625, 0.26660865545272827, -0.10773026943206787, 0.9944252371788025, 0.09482906013727188, -0.2778695523738861, -0.056779954582452774, 1.1350268125534058, 0.4460962116718292, 0.4209042191505432, 0.09494463354349136, -0.08260641247034073, 0.2488664835691452, 0.11664966493844986, -0.8498800992965698, -0.3884279727935791, 0.48069101572036743, -0.5938851237297058, -0.44826316833496094, 0.013299896381795406, -1.0047084093093872, 0.08094305545091629, -0.3435959815979004, 0.40066632628440857, -0.7755527496337891, -0.2792404890060425, 0.08143501728773117, -0.19334779679775238, 0.037549491971731186, -0.04037047550082207, -0.8817328214645386, 0.11343920230865479, 0.3787793517112732, 0.7929810285568237, 0.0334126353263855, -0.2816101312637329, -0.07657970488071442, -0.4550023078918457, -0.07696279138326645, 0.5959698557853699, -0.1193029060959816, -0.21690119802951813, -0.16906629502773285, -0.01059743296355009, -0.21434016525745392, -0.16947868466377258, 0.8351033329963684, -0.2906471788883209, 0.5000714659690857, -0.034497857093811035, -0.435046523809433, -0.24869932234287262, 0.4484075903892517, -0.5504444241523743, 1.3684276342391968, 0.34647300839424133, -0.9882073998451233, 0.3383283317089081, -0.6859458088874817, -0.20906080305576324, -0.37462863326072693, 0.3606884777545929, -0.7339474558830261, -0.007516108453273773, 0.27981036901474, 0.6866591572761536, -0.2053564339876175, 0.22002612054347992, -0.46148014068603516, -0.21719814836978912, 0.31951454281806946, -0.35729190707206726, 1.0873388051986694, 0.056238360702991486, -0.4747617244720459, 0.20853546261787415, -1.0739933252334595, 0.36323341727256775, 0.32041439414024353, -0.22486208379268646, -0.12439727783203125, -0.2963288724422455, 0.3578989803791046, 0.19396737217903137, 0.28718873858451843, -0.5197681784629822, 0.03917583450675011, -0.6304060816764832, 0.1256248652935028, 0.7785047888755798, -0.17185577750205994, 0.2811373770236969, -0.21433652937412262, 0.5325960516929626, 0.048772040754556656, 0.2834245562553406, 0.27102741599082947, -0.480254590511322, -0.965519368648529, -0.3893861472606659, 0.38584282994270325, 0.6643017530441284, -0.2834743857383728, 1.0551908016204834, -0.27169719338417053, -0.8742292523384094, -0.8057452440261841, -0.10297049582004547, 0.4031810462474823, 0.7862161993980408, 0.6572659611701965, -0.2118212729692459, -0.9385122060775757, -0.7941136956214905, -0.19451700150966644, -0.282297283411026, 0.02391199767589569, 0.1911129653453827, 0.4511444866657257, -0.4885752499103546, 1.0293515920639038, -0.6151055097579956, -0.1910586655139923, -0.37992995977401733, 0.4740244746208191, 0.6773348450660706, 0.4709802269935608, 0.761957049369812, -0.6524835228919983, -0.7942513227462769, -0.38451045751571655, -0.8516142964363098, -0.08833711594343185, 0.035710327327251434, -0.32396793365478516, 0.5517501831054688, -0.1150738000869751, -0.7875848412513733, 0.3476346433162689, 0.546799898147583, -0.32554593682289124, 0.6210855841636658, 0.05169763043522835, 0.005679289810359478, -1.2019850015640259, 0.08196276426315308, 0.326784610748291, 0.0007656139205209911, -0.5862034559249878, -0.26890355348587036, -0.038537461310625076, 0.2019834816455841, -0.4813060760498047, 0.4989168345928192, -0.28058281540870667, 0.18784253299236298, 0.037160295993089676, 0.058461640030145645, 0.023619964718818665, 0.7842758893966675, 0.0829058364033699, 0.33728694915771484, 0.7108006477355957, -0.23976004123687744, 0.4473268687725067, 0.6197523474693298, -0.21075913310050964, 0.3988368809223175, -0.6861752271652222, 0.10002772510051727, -0.20196618139743805, 0.3167530596256256, -1.1068090200424194, -0.18535743653774261, 0.3079269230365753, -0.8788438439369202, 0.3533119857311249, -0.1657850444316864, -0.41117358207702637, -0.5152751803398132, -0.4869302213191986, 0.004201747942715883, 0.8754679560661316, -0.5435584187507629, 0.8097122311592102, 0.03790983930230141, 0.044807691127061844, -0.7773810625076294, -0.8376030325889587, -0.2547159790992737, -0.3587121367454529, -0.7423619031906128, 0.24195684492588043, -0.290485143661499, -0.0629773810505867, -0.03435637801885605, 0.03559574484825134, -0.11613111943006516, -0.09251873940229416, 0.4049552083015442, 0.6423843502998352, -0.058985646814107895, 0.1318497359752655, -0.2199973165988922, -0.28848299384117126, 0.3121272027492523, 0.2770061790943146, 0.9420098066329956, -0.5248395800590515, 0.16171802580356598, -0.6538710594177246, -0.11977704614400864, 0.40369531512260437, -0.08892232179641724, 0.9864771962165833, 1.181921362876892, -0.2879471480846405, -0.10580073297023773, -0.38507041335105896, -0.042308565229177475, -0.46956706047058105, 0.36122480034828186, -0.3130491077899933, -0.5792169570922852, 0.5844609141349792, 0.17105211317539215, -0.24055562913417816, 0.8507037162780762, 0.6946219205856323, -0.19074954092502594, 1.1628063917160034, 0.37954044342041016, -0.3539777398109436, 0.5277767181396484, -0.8302315473556519, 0.24812959134578705, -0.9456238150596619, -0.2538037896156311, -0.4524109363555908, -0.4079100787639618, -0.6544208526611328, -0.08103040605783463, 0.3056654930114746, 0.11436879634857178, -0.6498889327049255, 0.3374290466308594, -0.6612863540649414, 0.13739319145679474, 0.6471343636512756, 0.3067757487297058, -0.17592822015285492, -0.06702081859111786, 0.001229063724167645, -0.39490222930908203, -0.4671620726585388, -0.3769689202308655, 1.1212255954742432, 0.600329577922821, 0.7851182818412781, -0.05758950114250183, 0.8040858507156372, -0.013295766897499561, 0.3014783561229706, -0.9436392784118652, 0.5226023197174072, -0.059097129851579666, -0.6017134785652161, -0.19507567584514618, -0.5233808755874634, -0.8213192820549011, 0.056343674659729004, -0.5086632966995239, -0.902258038520813, -0.08236328512430191, 0.11958248168230057, -0.27441301941871643, 0.19170713424682617, -0.852601170539856, 0.9469785690307617, -0.3974456787109375, -0.27766183018684387, 0.12582814693450928, -0.9252570867538452, 0.27542704343795776, 0.06410348415374756, -0.05184619501233101, -0.2827068269252777, 0.3539241850376129, 0.8102255463600159, -0.27127355337142944, 0.9236829876899719, -0.3199444115161896, 0.33052220940589905, 0.29326900839805603, -0.06294672936201096, 0.47825029492378235, -0.08021525293588638, -0.23546187579631805, 0.3336392045021057, -0.1771409809589386, -0.44209447503089905, -0.5046992897987366, 0.6285902261734009, -1.0576115846633911, -0.13057558238506317, -0.7233601808547974, -0.5269064903259277, -0.4027654826641083, 0.1353355348110199, 0.6261063814163208, 0.28158289194107056, -0.04511737823486328, 0.2897958755493164, 0.597643256187439, -0.07800955325365067, 0.4680321216583252, 0.14970938861370087, -0.0961741954088211, -0.44759076833724976, 0.7243293523788452, -0.2202310413122177, 0.0836356058716774, 0.2891012728214264, 0.4221694767475128, -0.5560539960861206, -0.29111939668655396, -0.10226750373840332, 0.3422008156776428, -0.5628194808959961, -0.3844579756259918, -0.8018053770065308, -0.34471839666366577, -0.56959468126297, -0.07589326798915863, -0.4993476867675781, -0.40861400961875916, -0.5502937436103821, -0.2744533121585846, 0.6992673873901367, 0.30647510290145874, 0.023674586787819862, 0.4770605266094208, -0.936457097530365, 0.22444412112236023, -0.004347544629126787, 0.45446062088012695, -0.014706415124237537, -0.720365583896637, -0.2138843536376953, 0.07095250487327576, -0.43565893173217773, -0.7886273264884949, 0.8363676071166992, 0.18655739724636078, 0.3224335312843323, 0.2934558689594269, 0.02540275640785694, 0.7998148798942566, -0.24801547825336456, 0.9542515873908997, 0.5060541033744812, -1.147562861442566, 0.7720489501953125, -0.2833085358142853, 0.12800292670726776, 0.5115308165550232, 0.6475569605827332, -0.37483903765678406, -0.25294730067253113, -0.9598628282546997, -1.181539535522461, 0.94265216588974, 0.31983327865600586, 0.04542416334152222, 0.181431844830513, 0.010436181910336018, -0.11317292600870132, 0.21852602064609528, -0.9756402969360352, -0.5480142831802368, -0.4268198609352112, -0.7234536409378052, -0.23241963982582092, -0.24697668850421906, -0.11673085391521454, -0.5153824687004089, 1.0096933841705322, 0.0033438552636653185, 0.5358284115791321, 0.2444579303264618, 0.040935616940259933, -0.34102678298950195, 0.04943842440843582, 0.25148680806159973, 0.26268574595451355, -0.8849912285804749, -0.3633091151714325, 0.2085007280111313, -0.4542442858219147, -0.023003773763775826, 0.18172727525234222, 0.09662364423274994, 0.18860851228237152, 0.6870351433753967, 1.1993662118911743, 0.09869487583637238, -0.5440241098403931, 0.563229501247406, -0.1542271226644516, -0.28329893946647644, -0.6249213814735413, 0.05851330608129501, 0.02803959883749485, 0.3686281144618988, 0.2319585531949997, 0.38568854331970215, 0.021212195977568626, -0.4647254943847656, 0.15458332002162933, 0.19257643818855286, -0.577605664730072, -0.4985291063785553, 0.7369889616966248, -0.03327270224690437, -0.3060300648212433, 0.6890694499015808, -0.12562814354896545, -0.869416356086731, 0.6021236777305603, 0.3663257658481598, 1.1771905422210693, -0.0016959129134193063, 0.18332071602344513, 0.6848950982093811, 0.005752974189817905, -0.0959969013929367, 0.5456975698471069, 0.31666573882102966, -0.8192920088768005, -0.24197575449943542, -0.83992999792099, -0.2928132116794586, 0.05975857749581337, -0.9863470792770386, 0.23674878478050232, -0.4513120949268341, -0.5296174883842468, 0.09093713760375977, 0.16995565593242645, -0.854299008846283, 0.5566315054893494, 0.004332798067480326, 0.9853340983390808, -0.9214702248573303, 0.7735401391983032, 0.6420836448669434, -0.522189736366272, -1.1740821599960327, 0.06418704986572266, -0.053570158779621124, -0.7287831902503967, 0.8047807812690735, 0.20390687882900238, 0.1291167438030243, 0.04412039741873741, -0.6646862030029297, -0.7887082695960999, 1.1615476608276367, 0.14143326878547668, -0.3895717263221741, 0.08565270900726318, -0.0509004108607769, 1.0979413986206055, -0.2791154384613037, 0.5761790871620178, 0.6139557957649231, 0.5062139630317688, 0.08513663709163666, -0.6271205544471741, -0.15516312420368195, -0.4776477813720703, -0.09030263125896454, 0.21511459350585938, -0.9463729858398438, 1.141465425491333, 0.02770148031413555, 0.1647278517484665, -0.010946636088192463, 0.7147312164306641, 0.41077467799186707, 0.35776185989379883, 0.6719021201133728, 0.9287137389183044, 0.6366446614265442, -0.39614471793174744, 1.0840188264846802, -0.4399721324443817, 1.0588947534561157, 0.9250175356864929, -0.0747000128030777, 0.8881506323814392, 0.3612811863422394, -0.47770580649375916, 0.8222307562828064, 0.7244672775268555, -0.20844194293022156, 0.5426068902015686, 0.051442358642816544, -0.05624678358435631, -0.08145751059055328, 0.1581646353006363, -0.30251219868659973, 0.5203390717506409, 0.1321457326412201, -0.4028339684009552, 0.07494879513978958, -0.11150891333818436, 0.19693326950073242, -0.06941568851470947, 0.07036512345075607, 0.4399051070213318, -0.1530923843383789, -0.4552612900733948, 0.8030360341072083, -0.2398592233657837, 0.8988713622093201, -0.7174412608146667, 0.1611882597208023, -0.06723149120807648, 0.3374938666820526, -0.29458993673324585, -0.8181418180465698, 0.22762714326381683, 0.2097022384405136, -0.17064042389392853, -0.22960056364536285, 0.6334038972854614, -0.3861551284790039, -0.670324444770813, 0.606104850769043, 0.3458377718925476, 0.12025419622659683, -0.05830884352326393, -1.090937852859497, 0.15703614056110382, 0.1617659330368042, -0.8164167404174805, 0.014209242537617683, 0.39425501227378845, 0.4103153645992279, 0.6619183421134949, 0.6554581522941589, 0.16515474021434784, 0.04129772633314133, 0.14017710089683533, 0.8624590635299683, -0.824006199836731, -0.37149637937545776, -0.8382430672645569, 0.9215083122253418, -0.18507899343967438, -0.6717810034751892, 0.7131935954093933, 0.5550864338874817, 0.7224034070968628, -0.19355598092079163, 0.7117084264755249, -0.34265294671058655, 0.7813629508018494, -0.47794386744499207, 0.5765406489372253, -0.580142617225647, -0.09450273215770721, -0.4726894795894623, -0.9242973327636719, -0.26007726788520813, 0.7146720886230469, -0.23839469254016876, 0.26428014039993286, 0.7933186292648315, 0.6184936165809631, 0.05817127227783203, -0.0681045800447464, -0.08545161783695221, 0.4973771274089813, 0.21770235896110535, 0.6242620348930359, 0.522101640701294, -0.7504310011863708, 0.4879571497440338, -0.7301622033119202, -0.2937619388103485, -0.2641383707523346, -0.7977402806282043, -1.1293057203292847, -0.5804443359375, -0.1890024095773697, -0.6961424946784973, -0.21469393372535706, 1.2000566720962524, 0.6912601590156555, -0.9443403482437134, -0.11527795344591141, 0.01767685078084469, -0.2363598495721817, -0.20557931065559387, -0.3639537990093231, 0.5556061863899231, -0.3199317455291748, -1.0714589357376099, 0.03119046613574028, -0.18763183057308197, 0.1829824149608612, 0.04415557160973549, -0.20501981675624847, -0.3105069696903229, -0.13508988916873932, 0.5434278249740601, -0.043896548449993134, -0.6471160650253296, -0.3176407814025879, 0.02315870113670826, -0.13834914565086365, 0.2844735383987427, 0.12779781222343445, -0.5558919906616211, 0.3538340926170349, 0.6335912942886353, 0.3177926242351532, 0.7235042452812195, 0.19753189384937286, 0.16770164668560028, -0.912668764591217, 0.2777491509914398, 0.41605493426322937, 0.46619707345962524, 0.3332612216472626, -0.40783214569091797, 0.7684754133224487, 0.3972201943397522, -0.5977488160133362, -0.8174391984939575, -0.21470120549201965, -1.5397995710372925, 0.052324097603559494, 0.9999123215675354, -0.17876914143562317, -0.4921841323375702, 0.47607776522636414, -0.3550041615962982, 0.5957245230674744, -0.6598606109619141, 0.9540616273880005, 0.8344169855117798, -0.3671974539756775, -0.11912639439105988, -0.32831263542175293, 0.4214075207710266, 0.5846776366233826, -0.660519003868103, -0.26011043787002563, 0.16696660220623016, 0.26145097613334656, 0.38221460580825806, 0.47542276978492737, 0.07560788840055466, -0.042840294539928436, 0.007483317516744137, 0.5195719003677368, 0.09484640508890152, -0.13587363064289093, -0.39885303378105164, -0.04298172518610954, -0.21471087634563446, -0.3217087388038635 ]
DeepFloyd/IF-II-L-v1.0
DeepFloyd
"2023-06-02T19:05:09Z"
20,049
44
diffusers
[ "diffusers", "pytorch", "if", "text-to-image", "arxiv:2205.11487", "arxiv:2110.02861", "license:deepfloyd-if-license", "has_space", "diffusers:IFSuperResolutionPipeline", "region:us" ]
text-to-image
"2023-03-21T13:09:58Z"
--- license: deepfloyd-if-license extra_gated_prompt: "DeepFloyd LICENSE AGREEMENT\nThis License Agreement (as may be amended in accordance with this License Agreement, “License”), between you, or your employer or other entity (if you are entering into this agreement on behalf of your employer or other entity) (“Licensee” or “you”) and Stability AI Ltd.. (“Stability AI” or “we”) applies to your use of any computer program, algorithm, source code, object code, or software that is made available by Stability AI under this License (“Software”) and any specifications, manuals, documentation, and other written information provided by Stability AI related to the Software (“Documentation”).\nBy clicking “I Accept” below or by using the Software, you agree to the terms of this License. If you do not agree to this License, then you do not have any rights to use the Software or Documentation (collectively, the “Software Products”), and you must immediately cease using the Software Products. If you are agreeing to be bound by the terms of this License on behalf of your employer or other entity, you represent and warrant to Stability AI that you have full legal authority to bind your employer or such entity to this License. If you do not have the requisite authority, you may not accept the License or access the Software Products on behalf of your employer or other entity.\n1. LICENSE GRANT\n a. Subject to your compliance with the Documentation and Sections 2, 3, and 5, Stability AI grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty free and limited license under Stability AI’s copyright interests to reproduce, distribute, and create derivative works of the Software solely for your non-commercial research purposes. The foregoing license is personal to you, and you may not assign or sublicense this License or any other rights or obligations under this License without Stability AI’s prior written consent; any such assignment or sublicense will be void and will automatically and immediately terminate this License.\n b. You may make a reasonable number of copies of the Documentation solely for use in connection with the license to the Software granted above.\n c. The grant of rights expressly set forth in this Section 1 (License Grant) are the complete grant of rights to you in the Software Products, and no other licenses are granted, whether by waiver, estoppel, implication, equity or otherwise. Stability AI and its licensors reserve all rights not expressly granted by this License.\L\n2. RESTRICTIONS\n You will not, and will not permit, assist or cause any third party to:\n a. use, modify, copy, reproduce, create derivative works of, or distribute the Software Products (or any derivative works thereof, works incorporating the Software Products, or any data produced by the Software), in whole or in part, for (i) any commercial or production purposes, (ii) military purposes or in the service of nuclear technology, (iii) purposes of surveillance, including any research or development relating to surveillance, (iv) biometric processing, (v) in any manner that infringes, misappropriates, or otherwise violates any third-party rights, or (vi) in any manner that violates any applicable law and violating any privacy or security laws, rules, regulations, directives, or governmental requirements (including the General Data Privacy Regulation (Regulation (EU) 2016/679), the California Consumer Privacy Act, and any and all laws governing the processing of biometric information), as well as all amendments and successor laws to any of the foregoing;\n b. alter or remove copyright and other proprietary notices which appear on or in the Software Products;\n c. utilize any equipment, device, software, or other means to circumvent or remove any security or protection used by Stability AI in connection with the Software, or to circumvent or remove any usage restrictions, or to enable functionality disabled by Stability AI; or\n d. offer or impose any terms on the Software Products that alter, restrict, or are inconsistent with the terms of this License.\n e. 1) violate any applicable U.S. and non-U.S. export control and trade sanctions laws (“Export Laws”); 2) directly or indirectly export, re-export, provide, or otherwise transfer Software Products: (a) to any individual, entity, or country prohibited by Export Laws; (b) to anyone on U.S. or non-U.S. government restricted parties lists; or (c) for any purpose prohibited by Export Laws, including nuclear, chemical or biological weapons, or missile technology applications; 3) use or download Software Products if you or they are: (a) located in a comprehensively sanctioned jurisdiction, (b) currently listed on any U.S. or non-U.S. restricted parties list, or (c) for any purpose prohibited by Export Laws; and (4) will not disguise your location through IP proxying or other methods.\L\n3. ATTRIBUTION\n Together with any copies of the Software Products (as well as derivative works thereof or works incorporating the Software Products) that you distribute, you must provide (i) a copy of this License, and (ii) the following attribution notice: “DeepFloyd is licensed under the DeepFloyd License, Copyright (c) Stability AI Ltd. All Rights Reserved.”\L\n4. DISCLAIMERS\n THE SOFTWARE PRODUCTS ARE PROVIDED “AS IS” and “WITH ALL FAULTS” WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. STABILITY AIEXPRESSLY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, WHETHER BY STATUTE, CUSTOM, USAGE OR OTHERWISE AS TO ANY MATTERS RELATED TO THE SOFTWARE PRODUCTS, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, SATISFACTORY QUALITY, OR NON-INFRINGEMENT. STABILITY AI MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE SOFTWARE PRODUCTS WILL BE ERROR FREE OR FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, OR PRODUCE ANY PARTICULAR RESULTS.\L\n5. LIMITATION OF LIABILITY\n TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL STABILITY AI BE LIABLE TO YOU (A) UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE UNDER THIS LICENSE, OR (B) FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, PUNITIVE OR SPECIAL DAMAGES OR LOST PROFITS, EVEN IF STABILITY AI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE SOFTWARE PRODUCTS, THEIR CONSTITUENT COMPONENTS, AND ANY OUTPUT (COLLECTIVELY, “SOFTWARE MATERIALS”) ARE NOT DESIGNED OR INTENDED FOR USE IN ANY APPLICATION OR SITUATION WHERE FAILURE OR FAULT OF THE SOFTWARE MATERIALS COULD REASONABLY BE ANTICIPATED TO LEAD TO SERIOUS INJURY OF ANY PERSON, INCLUDING POTENTIAL DISCRIMINATION OR VIOLATION OF AN INDIVIDUAL’S PRIVACY RIGHTS, OR TO SEVERE PHYSICAL, PROPERTY, OR ENVIRONMENTAL DAMAGE (EACH, A “HIGH-RISK USE”). IF YOU ELECT TO USE ANY OF THE SOFTWARE MATERIALS FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK. YOU AGREE TO DESIGN AND IMPLEMENT APPROPRIATE DECISION-MAKING AND RISK-MITIGATION PROCEDURES AND POLICIES IN CONNECTION WITH A HIGH-RISK USE SUCH THAT EVEN IF THERE IS A FAILURE OR FAULT IN ANY OF THE SOFTWARE MATERIALS, THE SAFETY OF PERSONS OR PROPERTY AFFECTED BY THE ACTIVITY STAYS AT A LEVEL THAT IS REASONABLE, APPROPRIATE, AND LAWFUL FOR THE FIELD OF THE HIGH-RISK USE.\L\n6. INDEMNIFICATION\n You will indemnify, defend and hold harmless Stability AI and our subsidiaries and affiliates, and each of our respective shareholders, directors, officers, employees, agents, successors, and assigns (collectively, the “Stability AI Parties”) from and against any losses, liabilities, damages, fines, penalties, and expenses (including reasonable attorneys’ fees) incurred by any Stability AI Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation (collectively, “Claims”) arising out of or related to: (a) your access to or use of the Software Products (as well as any results or data generated from such access or use), including any High-Risk Use (defined below); (b) your violation of this License; or (c) your violation, misappropriation or infringement of any rights of another (including intellectual property or other proprietary rights and privacy rights). You will promptly notify the Stability AI Parties of any such Claims, and cooperate with Stability AI Parties in defending such Claims. You will also grant the Stability AI Parties sole control of the defense or settlement, at Stability AI’s sole option, of any Claims. This indemnity is in addition to, and not in lieu of, any other indemnities or remedies set forth in a written agreement between you and Stability AI or the other Stability AI Parties.\L\n7. TERMINATION; SURVIVAL\n a. This License will automatically terminate upon any breach by you of the terms of this License.\L\Lb. We may terminate this License, in whole or in part, at any time upon notice (including electronic) to you.\L\Lc. The following sections survive termination of this License: 2 (Restrictions), 3 (Attribution), 4 (Disclaimers), 5 (Limitation on Liability), 6 (Indemnification) 7 (Termination; Survival), 8 (Third Party Materials), 9 (Trademarks), 10 (Applicable Law; Dispute Resolution), and 11 (Miscellaneous).\L\n8. THIRD PARTY MATERIALS\n The Software Products may contain third-party software or other components (including free and open source software) (all of the foregoing, “Third Party Materials”), which are subject to the license terms of the respective third-party licensors. Your dealings or correspondence with third parties and your use of or interaction with any Third Party Materials are solely between you and the third party. Stability AI does not control or endorse, and makes no representations or warranties regarding, any Third Party Materials, and your access to and use of such Third Party Materials are at your own risk.\L\n9. TRADEMARKS\n Licensee has not been granted any trademark license as part of this License and may not use any name or mark associated with Stability AI without the prior written permission of Stability AI, except to the extent necessary to make the reference required by the “ATTRIBUTION” section of this Agreement.\L\n10. APPLICABLE LAW; DISPUTE RESOLUTION\n This License will be governed and construed under the laws of the State of California without regard to conflicts of law provisions. Any suit or proceeding arising out of or relating to this License will be brought in the federal or state courts, as applicable, in San Mateo County, California, and each party irrevocably submits to the jurisdiction and venue of such courts.\L\n11. MISCELLANEOUS\n If any provision or part of a provision of this License is unlawful, void or unenforceable, that provision or part of the provision is deemed severed from this License, and will not affect the validity and enforceability of any remaining provisions. The failure of Stability AI to exercise or enforce any right or provision of this License will not operate as a waiver of such right or provision. This License does not confer any third-party beneficiary rights upon any other person or entity. This License, together with the Documentation, contains the entire understanding between you and Stability AI regarding the subject matter of this License, and supersedes all other written or oral agreements and understandings between you and Stability AI regarding such subject matter. No change or addition to any provision of this License will be binding unless it is in writing and signed by an authorized representative of both you and Stability AI." extra_gated_fields: "Organization /\_Affiliation": text Previously related publications: text I accept the above license agreement, and will use the Software non-commercially and for research purposes only: checkbox tags: - if - text-to-image inference: false --- # IF-II-L-v1.0 DeepFloyd-IF is a pixel-based text-to-image triple-cascaded diffusion model, that can generate pictures with new state-of-the-art for photorealism and language understanding. The result is a highly efficient model that outperforms current state-of-the-art models, achieving a zero-shot FID-30K score of `6.66` on the COCO dataset. *Inspired by* [*Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding*](https://arxiv.org/pdf/2205.11487.pdf) ![](./pics/deepfloyd_if_scheme.jpg) ## Model Details - **Developed by:** DeepFloyd, StabilityAI - **Model type:** pixel-based text-to-image cascaded diffusion model - **Cascade Stage:** II - **Num Parameters:** 1.2B - **Language(s):** primarily English and, to a lesser extent, other Romance languages - **License:** <span style="color:blue"><a href="https://huggingface.co/spaces/DeepFloyd/deepfloyd-if-license">DeepFloyd IF License Agreement</a></span> - **Model Description:** DeepFloyd-IF is modular composed of frozen text mode and three pixel cascaded diffusion modules, each designed to generate images of increasing resolution: 64x64, 256x256, and 1024x1024. All stages of the model utilize a frozen text encoder based on the T5 transformer to extract text embeddings, which are then fed into a UNet architecture enhanced with cross-attention and attention-pooling - **Resources for more information:** [GitHub](https://github.com/deep-floyd/IF), [Website](https://deepfloyd.ai/), [All Links](https://linktr.ee/deepfloyd) ## Using with `diffusers` IF is integrated with the 🤗 Hugging Face [🧨 diffusers library](https://github.com/huggingface/diffusers/), which is optimized to run on GPUs with as little as 14 GB of VRAM. Before you can use IF, you need to accept its usage conditions. To do so: 1. Make sure to have a [Hugging Face account](https://huggingface.co/join) and be loggin in 2. Accept the license on the model card of [DeepFloyd/IF-I-XL-v1.0](https://huggingface.co/DeepFloyd/IF-I-XL-v1.0) 3. Make sure to login locally. Install `huggingface_hub` ```sh pip install huggingface_hub --upgrade ``` run the login function in a Python shell ```py from huggingface_hub import login login() ``` and enter your [Hugging Face Hub access token](https://huggingface.co/docs/hub/security-tokens#what-are-user-access-tokens). Next we install `diffusers` and dependencies: ```sh pip install diffusers accelerate transformers safetensors sentencepiece ``` And we can now run the model locally. By default `diffusers` makes use of [model cpu offloading](https://huggingface.co/docs/diffusers/optimization/fp16#model-offloading-for-fast-inference-and-memory-savings) to run the whole IF pipeline with as little as 14 GB of VRAM. If you are using `torch>=2.0.0`, make sure to **remove all** `enable_xformers_memory_efficient_attention()` functions. * **Load all stages and offload to CPU** ```py from diffusers import DiffusionPipeline from diffusers.utils import pt_to_pil import torch # stage 1 stage_1 = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-XL-v1.0", variant="fp16", torch_dtype=torch.float16) stage_1.enable_xformers_memory_efficient_attention() # remove line if torch.__version__ >= 2.0.0 stage_1.enable_model_cpu_offload() # stage 2 stage_2 = DiffusionPipeline.from_pretrained( "DeepFloyd/IF-II-L-v1.0", text_encoder=None, variant="fp16", torch_dtype=torch.float16 ) stage_2.enable_xformers_memory_efficient_attention() # remove line if torch.__version__ >= 2.0.0 stage_2.enable_model_cpu_offload() # stage 3 safety_modules = {"feature_extractor": stage_1.feature_extractor, "safety_checker": stage_1.safety_checker, "watermarker": stage_1.watermarker} stage_3 = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-x4-upscaler", **safety_modules, torch_dtype=torch.float16) stage_3.enable_xformers_memory_efficient_attention() # remove line if torch.__version__ >= 2.0.0 stage_3.enable_model_cpu_offload() ``` * **Retrieve Text Embeddings** ```py prompt = 'a photo of a kangaroo wearing an orange hoodie and blue sunglasses standing in front of the eiffel tower holding a sign that says "very deep learning"' # text embeds prompt_embeds, negative_embeds = stage_1.encode_prompt(prompt) ``` * **Run stage 1** ```py generator = torch.manual_seed(0) image = stage_1(prompt_embeds=prompt_embeds, negative_prompt_embeds=negative_embeds, generator=generator, output_type="pt").images pt_to_pil(image)[0].save("./if_stage_I.png") ``` * **Run stage 2** ```py image = stage_2( image=image, prompt_embeds=prompt_embeds, negative_prompt_embeds=negative_embeds, generator=generator, output_type="pt" ).images pt_to_pil(image)[0].save("./if_stage_II.png") ``` * **Run stage 3** ```py image = stage_3(prompt=prompt, image=image, generator=generator, noise_level=100).images image[0].save("./if_stage_III.png") ``` There are multiple ways to speed up the inference time and lower the memory consumption even more with `diffusers`. To do so, please have a look at the Diffusers docs: - 🚀 [Optimizing for inference time](https://huggingface.co/docs/diffusers/api/pipelines/if#optimizing-for-speed) - ⚙️ [Optimizing for low memory during inference](https://huggingface.co/docs/diffusers/api/pipelines/if#optimizing-for-memory) For more in-detail information about how to use IF, please have a look at [the IF blog post](https://huggingface.co/blog/if) and the [documentation](https://huggingface.co/docs/diffusers/main/en/api/pipelines/if) 📖. Diffusers dreambooth scripts also supports fine-tuning 🎨 [IF](https://huggingface.co/docs/diffusers/main/en/training/dreambooth#if). With parameter efficient finetuning, you can add new concepts to IF with a single GPU and ~28 GB VRAM. ## Training **Training Data:** 1.2B text-image pairs (based on LAION-A and few additional internal datasets) Test/Valid parts of datasets are not used at any cascade and stage of training. Valid part of COCO helps to demonstrate "online" loss behaviour during training (to catch incident and other problems), but dataset is never used for train. **Training Procedure:** IF-II-L-v1.0 is a pixel-based diffusion cascade which uses T5-Encoder embeddings (hidden states) to upscale image from 64px to 256px. During training, - Images are cropped to square via shifted-center-crop augmentation (randomly shift from center up to 0.1 of size) and resized to 64px (low-res) and 256px (ground-truth) using `Pillow==9.2.0` BICUBIC resampling with reducing_gap=None (it helps to avoid aliasing) and processed to tensor BxCxHxW - Low-res images are extra augmented by noise (q-sample methods) with the same diffusion configuration for cascade-I series. Uniform distributed randomised augmentation noising param (aug-level) is added to Unet as condition to process by trainable layers timestep embedding and linear projection with activation. - Text prompts are encoded through open-sourced frozen T5-v1_1-xxl text-encoder (that completely was trained by Google team), random 10% of texts are dropped to empty string to add ability for classifier free guidance (CFG) - The non-pooled output of the text encoder is fed into the projection (linear layer without activation) and is used in UNet backbone of the diffusion model via controlled hybrid self- and cross- attention - Also, the output of the text encode is pooled via attention-pooling (64 heads) and is used in time embed as additional features - Diffusion process is limited by 1000 discrete steps, with cosine beta schedule of noising image - The loss is a reconstruction objective between the noise that was added to the image and the prediction made by the UNet - The training process for checkpoint IF-II-L-v1.0 has 2_500_000 steps at resolution 256x256 on all datasets, OneCycleLR policy, few-bit backward GELU activations, optimizer AdamW8bit + DeepSpeed-Zero1, fully frozen T5-Encoder ![](./pics/loss.jpg) **Hardware:** 32 x 8 x A100 GPUs **Optimizer:** [AdamW8bit](https://arxiv.org/abs/2110.02861) + [DeepSpeed ZeRO-1](https://www.deepspeed.ai/tutorials/zero/) **Batch:** 1536 **Learning rate**: [one-cycle](https://pytorch.org/docs/stable/generated/torch.optim.lr_scheduler.OneCycleLR.html) cosine strategy, warmup 10000 steps, start_lr=4e-6, max_lr=1e-4, final_lr=1e-8 ![](./pics/lr.jpg) ## Evaluation Results `FID-30K: 6.66` ![](./pics/fid30k_if.jpg) # Uses ## Direct Use The model is released for research purposes. Any attempt to deploy the model in production requires not only that the LICENSE is followed but full liability over the person deploying the model. Possible research areas and tasks include: - Generation of artistic imagery and use in design and other artistic processes. - Safe deployment of models which have the potential to generate harmful content. - Probing and understanding the limitations and biases of generative models. - Applications in educational or creative tools. - Research on generative models. Excluded uses are described below. ### Misuse, Malicious Use, and Out-of-Scope Use _Note: This section is originally taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), was used for Stable Diffusion but applies in the same way for IF_. The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes. #### Out-of-Scope Use The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model. #### Misuse and Malicious Use Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to: - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc. - Intentionally promoting or propagating discriminatory content or harmful stereotypes. - Impersonating individuals without their consent. - Sexual content without consent of the people who might see it. - Mis- and disinformation - Representations of egregious violence and gore - Sharing of copyrighted or licensed material in violation of its terms of use. - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use. ## Limitations and Bias ### Limitations - The model does not achieve perfect photorealism - The model was trained mainly with English captions and will not work as well in other languages. - The model was trained on a subset of the large-scale dataset [LAION-5B](https://laion.ai/blog/laion-5b/), which contains adult, violent and sexual content. To partially mitigate this, we have... (see Training section). ### Bias While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. IF was primarily trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/), which consists of images that are limited to English descriptions. Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for. This affects the overall output of the model, as white and western cultures are often set as the default. Further, the ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts. IF mirrors and exacerbates biases to such a degree that viewer discretion must be advised irrespective of the input or its intent. *This model card was written by: DeepFloyd-Team and is based on the [StableDiffusion model card](https://huggingface.co/CompVis/stable-diffusion-v1-4).*
[ -0.5772581696510315, -0.8448310494422913, 0.25829777121543884, 0.3977459967136383, -0.22109735012054443, -0.04663028195500374, -0.2455524504184723, -0.4642629623413086, 0.08754059672355652, 0.30472639203071594, -0.5295971632003784, -0.5580241084098816, -0.6064231991767883, -0.16790367662906647, -0.2249579131603241, 1.0028769969940186, -0.16571688652038574, -0.1787203997373581, -0.13085387647151947, 0.02107403799891472, -0.19525326788425446, -0.1067095398902893, -0.9611557126045227, -0.3301362991333008, 0.24928709864616394, 0.26900145411491394, 0.5091356635093689, 0.3452450633049011, 0.3182695508003235, 0.3547881543636322, -0.24075588583946228, -0.005901718512177467, -0.509871780872345, -0.4101946949958801, 0.13636234402656555, -0.26939576864242554, -0.4405706822872162, 0.00555821880698204, 0.6314517259597778, 0.1647825837135315, -0.016004018485546112, 0.04484683647751808, 0.14718250930309296, 0.6790412664413452, -0.6300196647644043, 0.2887115478515625, -0.27240756154060364, 0.19177867472171783, 0.030554182827472687, 0.19330674409866333, -0.16653549671173096, -0.180387943983078, 0.2585422694683075, -0.6572754383087158, 0.4746106266975403, -0.07637517154216766, 1.120654582977295, 0.30843234062194824, -0.14183571934700012, -0.08453136682510376, -0.35002240538597107, 0.6766980886459351, -0.7090561985969543, 0.2872563600540161, 0.1670505553483963, 0.010605919174849987, 0.07429684698581696, -0.8832131624221802, -0.6609828472137451, -0.13330233097076416, -0.01696987822651863, 0.34712377190589905, -0.18207547068595886, 0.13819390535354614, 0.2939867675304413, 0.658170759677887, -0.4268704652786255, -0.083275206387043, -0.5050308704376221, -0.19987936317920685, 0.8124288320541382, -0.027119068428874016, 0.2678040564060211, -0.09324046224355698, -0.5125739574432373, -0.18869836628437042, -0.22657862305641174, 0.15720584988594055, 0.033276624977588654, 0.014498041942715645, -0.6650223135948181, 0.3318105638027191, -0.08973907679319382, 0.3568839728832245, 0.3806142210960388, -0.22010289132595062, 0.4187600612640381, -0.17351660132408142, -0.4245302379131317, 0.1367168128490448, 1.072540283203125, 0.3347480595111847, 0.1178167313337326, 0.08898505568504333, -0.13802440464496613, 0.034475065767765045, 0.005076044239103794, -1.2564395666122437, -0.5123330950737, 0.3731655180454254, -0.35343945026397705, -0.47853654623031616, -0.16044430434703827, -0.8393420577049255, -0.14442886412143707, 0.15688234567642212, 0.5422850847244263, -0.7665451169013977, -0.42524605989456177, 0.2347075343132019, -0.21866820752620697, 0.216117262840271, 0.3740839660167694, -0.7554238438606262, 0.3645493686199188, 0.32739585638046265, 1.0394337177276611, -0.10656734555959702, -0.11086229979991913, -0.1532488912343979, -0.1915493756532669, -0.2936843931674957, 0.5996620655059814, -0.2581481337547302, -0.39801841974258423, -0.12793846428394318, 0.11708191782236099, -0.1288371980190277, -0.39934006333351135, 0.6570314764976501, -0.35044941306114197, 0.4904457926750183, -0.08976928889751434, -0.6499074697494507, -0.35818973183631897, 0.09906868636608124, -0.5732426047325134, 1.2308672666549683, 0.2730811834335327, -0.9923168420791626, 0.17474395036697388, -0.7232557535171509, -0.41008827090263367, -0.030106637626886368, 0.028281832113862038, -0.7317120432853699, 0.020056668668985367, 0.3456641733646393, 0.6296188831329346, -0.20041029155254364, 0.024157434701919556, -0.2770773470401764, -0.3864840567111969, 0.031222332268953323, -0.3316788375377655, 1.115018606185913, 0.26174846291542053, -0.6984187364578247, -0.020881297066807747, -0.6551088094711304, -0.06675441563129425, 0.37145838141441345, -0.35310426354408264, 0.0864100381731987, -0.4027954936027527, 0.3061836063861847, 0.26778775453567505, 0.22542957961559296, -0.6122896075248718, 0.20285318791866302, -0.3659786283969879, 0.4894046485424042, 0.6320884227752686, -0.0032337987795472145, 0.5289402604103088, -0.13689163327217102, 0.4659952223300934, 0.28626343607902527, 0.21760359406471252, -0.2620672285556793, -0.79474937915802, -0.9746741652488708, -0.40984511375427246, 0.18234282732009888, 0.5425873398780823, -0.802093505859375, 0.39646556973457336, -0.008579100482165813, -0.5173858404159546, -0.6255800724029541, 0.033261124044656754, 0.5410138964653015, 0.6396240592002869, 0.4197274446487427, -0.24798166751861572, -0.24670517444610596, -0.8218291997909546, 0.1587057262659073, 0.09447437524795532, 0.1255914568901062, 0.3185017704963684, 0.63331139087677, -0.22223089635372162, 0.6368729472160339, -0.5795961022377014, -0.46343669295310974, -0.11689524352550507, 0.013347657397389412, 0.3268687129020691, 0.6208633184432983, 0.7184705138206482, -0.703303337097168, -0.6062824130058289, -0.04317830502986908, -0.8699066638946533, 0.1344718188047409, -0.15653379261493683, -0.061553724110126495, 0.4167264401912689, 0.4241817593574524, -0.9207504391670227, 0.5774285197257996, 0.5518267750740051, -0.37418195605278015, 0.5363425016403198, -0.342229962348938, 0.10442449897527695, -0.9896979331970215, 0.14794713258743286, 0.3407328724861145, -0.21593698859214783, -0.3872048854827881, 0.10885275155305862, 0.12398049980401993, -0.17276544868946075, -0.5820435285568237, 0.7968959808349609, -0.6202027797698975, 0.27619239687919617, -0.17232733964920044, 0.05327543243765831, 0.19943542778491974, 0.616447925567627, 0.12764385342597961, 0.6547647714614868, 0.8795908093452454, -0.6953825950622559, 0.20831546187400818, 0.14297880232334137, -0.39491456747055054, 0.46319055557250977, -0.6157450675964355, 0.15113379061222076, -0.20127800107002258, 0.3057767152786255, -1.0519049167633057, -0.12558503448963165, 0.5040110349655151, -0.44474148750305176, 0.5962311625480652, -0.047689225524663925, -0.39816299080848694, -0.5645596385002136, -0.34595561027526855, 0.33354857563972473, 0.8033067584037781, -0.5387975573539734, 0.5643206834793091, 0.18541298806667328, 0.21920065581798553, -0.6491955518722534, -0.7567294239997864, -0.08168979734182358, -0.22528144717216492, -0.7703619599342346, 0.6855482459068298, -0.15555348992347717, -0.010776814073324203, 0.08219309151172638, 0.04513191059231758, 0.056259214878082275, -0.02069624327123165, 0.26385682821273804, 0.16062916815280914, -0.2959987223148346, -0.18108288943767548, 0.22864633798599243, -0.19846442341804504, 0.0693202093243599, -0.3761534094810486, 0.48265495896339417, -0.22588980197906494, 0.08032222837209702, -0.9495866894721985, 0.10659857839345932, 0.3269512355327606, 0.08023224025964737, 0.7842047810554504, 1.1711095571517944, -0.48278409242630005, -0.08057276904582977, -0.616256594657898, -0.13187165558338165, -0.566251814365387, 0.2071966826915741, -0.4038110077381134, -0.7358860969543457, 0.44316768646240234, -0.04426346719264984, 0.19189082086086273, 0.6315252184867859, 0.5097063779830933, -0.2276698797941208, 0.8794923424720764, 0.6625786423683167, -0.16562040150165558, 0.5098102688789368, -0.9107383489608765, 0.08899562805891037, -0.7608568668365479, -0.30809104442596436, -0.08887223899364471, -0.4058999717235565, -0.4028646647930145, -0.6563847064971924, 0.29802194237709045, 0.3314562439918518, -0.3470904231071472, 0.20426726341247559, -0.7160457968711853, 0.33165764808654785, 0.3733658492565155, 0.2909511923789978, 0.040142204612493515, 0.16449421644210815, -0.16477219760417938, 0.01591738499701023, -0.7054232358932495, -0.224150151014328, 0.7947942614555359, 0.3911500871181488, 0.5486542582511902, -0.27881190180778503, 0.6869545578956604, 0.18494270741939545, 0.39984169602394104, -0.48182404041290283, 0.5293081998825073, -0.025863733142614365, -0.6447961330413818, 0.03923528268933296, -0.29965001344680786, -0.7865976691246033, 0.19366027414798737, -0.32319512963294983, -0.7688155174255371, 0.2894406020641327, 0.2416246086359024, -0.3462938666343689, 0.5525330901145935, -0.8133735060691833, 0.964972734451294, -0.216779887676239, -0.646198570728302, -0.14561417698860168, -0.6762860417366028, 0.44762298464775085, 0.21691884100437164, 0.0036935503594577312, -0.108623206615448, -0.11034855246543884, 0.7087801694869995, -0.4564010798931122, 0.7429566979408264, -0.3917272090911865, -0.03107193298637867, 0.5396273136138916, -0.09457384794950485, 0.27913281321525574, 0.08893875032663345, -0.2632501721382141, 0.506264328956604, -0.09066903591156006, -0.545570969581604, -0.3778417408466339, 0.8281006217002869, -0.8694010972976685, -0.3978725075721741, -0.4170239567756653, -0.2640822231769562, 0.19951783120632172, 0.25595876574516296, 0.7163129448890686, 0.27513620257377625, -0.2166946679353714, -0.0063133761286735535, 0.8457606434822083, -0.5130590796470642, 0.6911765933036804, -0.06063628941774368, -0.3264697194099426, -0.5833457708358765, 0.9810792207717896, -0.12272351235151291, 0.17796126008033752, 0.385966956615448, 0.2817947566509247, -0.2891845107078552, -0.35216617584228516, -0.6598471403121948, 0.3960486948490143, -0.564054548740387, -0.3431386351585388, -0.8977358341217041, -0.41004931926727295, -0.4418761730194092, -0.2778610587120056, -0.5765525102615356, -0.25165894627571106, -0.7426561713218689, 0.006304300855845213, 0.6108794212341309, 0.4506939947605133, -0.10535896569490433, 0.46464303135871887, -0.39543965458869934, 0.3561268746852875, 0.06445416808128357, 0.25317123532295227, 0.1729470044374466, -0.5073764324188232, -0.23660868406295776, 0.038090676069259644, -0.504069447517395, -0.5941484570503235, 0.5496580004692078, 0.3114164173603058, 0.22953450679779053, 0.7285396456718445, -0.1348898708820343, 0.7877240777015686, -0.2549934983253479, 0.7315501570701599, 0.34335845708847046, -0.8704550266265869, 0.4429484009742737, -0.2638915777206421, 0.30570366978645325, 0.34345361590385437, 0.5740953087806702, -0.21584762632846832, -0.11125876009464264, -0.8490898013114929, -0.8010317087173462, 0.7719924449920654, 0.45823028683662415, 0.1957825869321823, 0.1209162250161171, 0.6713632941246033, -0.10479806363582611, 0.1611524224281311, -0.7497350573539734, -0.46765536069869995, -0.26185327768325806, -0.11202570796012878, -0.08788572996854782, -0.08842525631189346, 0.14417892694473267, -0.6286221146583557, 0.8117449879646301, -0.009227494709193707, 0.6906915307044983, 0.4141530990600586, -0.0011075383517891169, 0.008449901826679707, -0.3356685936450958, 0.3414866328239441, 0.27707329392433167, -0.2384185940027237, -0.1288633942604065, 0.1861269176006317, -0.5643049478530884, -0.04096941649913788, 0.194977268576622, -0.2351968139410019, -0.01595955900847912, 0.18361890316009521, 0.9821799397468567, 0.11270461976528168, -0.3903791606426239, 0.5890399217605591, -0.19688506424427032, -0.3160007894039154, -0.3928150236606598, 0.18332549929618835, 0.28503793478012085, 0.38694825768470764, 0.2058192938566208, 0.18584880232810974, 0.11942895501852036, -0.37746933102607727, 0.17924146354198456, 0.41961848735809326, -0.3600776195526123, -0.2748909890651703, 0.9758347272872925, 0.09379525482654572, -0.35835304856300354, 0.7368534803390503, -0.3371747136116028, -0.5104709267616272, 0.7348266243934631, 0.5580239295959473, 0.9190520644187927, -0.19388577342033386, 0.27296265959739685, 0.6618359088897705, 0.237700954079628, -0.021441463381052017, 0.28857702016830444, -0.11848457157611847, -0.7064992785453796, -0.2347337305545807, -0.6772087812423706, -0.05566940829157829, 0.1550329029560089, -0.4194428324699402, 0.47157421708106995, -0.7850461006164551, -0.17687900364398956, 0.03225939720869064, 0.2084060162305832, -0.901430606842041, 0.4284924268722534, 0.32573723793029785, 0.9878854155540466, -0.6916851997375488, 0.784483790397644, 0.4170117974281311, -0.5040584206581116, -0.5994932055473328, -0.06939822435379028, -0.14401768147945404, -0.8668365478515625, 0.36124786734580994, 0.5112344622612, -0.06941717118024826, 0.1377326399087906, -0.7439908981323242, -0.7771437168121338, 1.1929794549942017, 0.40835219621658325, -0.4457957446575165, -0.028683321550488472, -0.18671518564224243, 0.5182260274887085, -0.4241030514240265, 0.3924511969089508, 0.520995020866394, 0.34237542748451233, 0.1965365707874298, -0.6227288246154785, 0.20237641036510468, -0.39832165837287903, 0.049070462584495544, 0.06176956743001938, -0.9626919627189636, 0.9316956996917725, -0.5909779071807861, -0.3008768558502197, 0.1790902316570282, 0.8933190107345581, 0.22624222934246063, 0.39490941166877747, 0.3727332651615143, 0.9465367197990417, 0.6781622171401978, -0.008768369443714619, 1.280446171760559, -0.29183638095855713, 0.5263775587081909, 0.6294220089912415, 0.09924807399511337, 0.6123951077461243, 0.19891510903835297, -0.16364601254463196, 0.6059615015983582, 0.8497039675712585, -0.023228704929351807, 0.5178741812705994, 0.020402882248163223, -0.3639729917049408, -0.1217217966914177, 0.160150945186615, -0.4744446575641632, 0.15984030067920685, 0.4822731912136078, -0.49444711208343506, -0.023706745356321335, 0.17315763235092163, 0.28576549887657166, -0.4082586169242859, -0.14863517880439758, 0.6338388323783875, 0.22389118373394012, -0.6031160950660706, 0.8389452695846558, 0.09519819170236588, 0.988946259021759, -0.35612958669662476, 0.0036422396078705788, -0.2592445909976959, 0.39561817049980164, -0.37870973348617554, -0.797199547290802, 0.06591619551181793, -0.19421714544296265, 0.025926509872078896, -0.18938963115215302, 0.7477641701698303, -0.3307085335254669, -0.7492654323577881, 0.4433993399143219, 0.06950923800468445, 0.3419117033481598, -0.2849147915840149, -1.1970359086990356, 0.24139802157878876, 0.09364359825849533, -0.4630085229873657, 0.32588517665863037, 0.3416670262813568, 0.22282291948795319, 0.681201696395874, 0.5322239995002747, -0.17002511024475098, 0.12234120815992355, -0.14958469569683075, 0.967050313949585, -0.5436450242996216, -0.2989283800125122, -0.8590990304946899, 0.7323274612426758, -0.22548088431358337, -0.4741329550743103, 0.628917932510376, 0.6552442908287048, 0.827964186668396, -0.05394790321588516, 0.6170933842658997, -0.25492793321609497, -0.07420004159212112, -0.4527748227119446, 0.7778632044792175, -0.8404258489608765, 0.044051676988601685, -0.5981310606002808, -0.8518898487091064, -0.16494132578372955, 0.8891854286193848, -0.13696135580539703, 0.2708299458026886, 0.5781939625740051, 0.769382655620575, -0.31936323642730713, 0.05475379899144173, 0.11111608147621155, 0.26149117946624756, 0.19213542342185974, 0.5961433053016663, 0.4003206193447113, -0.9405680894851685, 0.38175949454307556, -0.7509892582893372, -0.3463473320007324, -0.1124679446220398, -0.8675617575645447, -0.8706256747245789, -0.6228467226028442, -0.7719115614891052, -0.6562478542327881, -0.1061258614063263, 0.5506196618080139, 0.827137291431427, -0.5892925262451172, -0.14514411985874176, -0.18734219670295715, 0.06888878345489502, -0.21502719819545746, -0.3204125165939331, 0.5203850865364075, -0.10594530403614044, -0.875476062297821, 0.04084814712405205, 0.278300017118454, 0.02919013984501362, -0.3281360864639282, -0.1286858469247818, -0.294927716255188, -0.17387531697750092, 0.7075235843658447, 0.2931760847568512, -0.5411920547485352, -0.011726523749530315, -0.19213438034057617, 0.05848954990506172, 0.3370952606201172, 0.5051102638244629, -0.8244881629943848, 0.37367013096809387, 0.39202380180358887, 0.462650865316391, 1.1496328115463257, -0.19417043030261993, 0.15533895790576935, -0.559225857257843, 0.3718551695346832, 0.14676669239997864, 0.38300222158432007, 0.396785706281662, -0.5573642253875732, 0.4176001250743866, 0.3942635655403137, -0.5661619305610657, -0.6068537831306458, -0.1504918485879898, -1.2257442474365234, -0.3105510473251343, 1.1096832752227783, -0.19833172857761383, -0.5194801688194275, 0.19742658734321594, -0.3438340127468109, 0.2566066384315491, -0.5262318849563599, 0.7074015140533447, 0.36791864037513733, -0.2487165927886963, -0.5487790703773499, -0.4523434340953827, 0.5917789340019226, 0.18620067834854126, -0.6542718410491943, -0.3163057863712311, 0.3583797216415405, 0.6555477976799011, 0.24245956540107727, 0.91468346118927, -0.0693918839097023, 0.102965347468853, 0.1241840347647667, 0.20199187099933624, 0.19944408535957336, -0.1187252402305603, -0.3093739449977875, 0.09450431168079376, -0.4234451651573181, -0.21534276008605957 ]
sentence-transformers/msmarco-MiniLM-L6-cos-v5
sentence-transformers
"2023-11-02T09:31:43Z"
20,045
6
sentence-transformers
[ "sentence-transformers", "pytorch", "tf", "jax", "bert", "feature-extraction", "sentence-similarity", "transformers", "en", "arxiv:1908.10084", "endpoints_compatible", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- language: - en pipeline_tag: sentence-similarity tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- # msmarco-MiniLM-L6-cos-v5 This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and was designed for **semantic search**. It has been trained on 500k (query, answer) pairs from the [MS MARCO Passages dataset](https://github.com/microsoft/MSMARCO-Passage-Ranking). For an introduction to semantic search, have a look at: [SBERT.net - Semantic Search](https://www.sbert.net/examples/applications/semantic-search/README.html) ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer, util query = "How many people live in London?" docs = ["Around 9 Million people live in London", "London is known for its financial district"] #Load the model model = SentenceTransformer('sentence-transformers/msmarco-MiniLM-L6-cos-v5') #Encode query and documents query_emb = model.encode(query) doc_emb = model.encode(docs) #Compute dot score between query and all document embeddings scores = util.dot_score(query_emb, doc_emb)[0].cpu().tolist() #Combine docs & scores doc_score_pairs = list(zip(docs, scores)) #Sort by decreasing score doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True) #Output passages & scores for doc, score in doc_score_pairs: print(score, doc) ``` ## Usage (HuggingFace Transformers) Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the correct pooling-operation on-top of the contextualized word embeddings. ```python from transformers import AutoTokenizer, AutoModel import torch import torch.nn.functional as F #Mean Pooling - Take average of all tokens def mean_pooling(model_output, attention_mask): token_embeddings = model_output.last_hidden_state #First element of model_output contains all token embeddings input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float() return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9) #Encode text def encode(texts): # Tokenize sentences encoded_input = tokenizer(texts, padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input, return_dict=True) # Perform pooling embeddings = mean_pooling(model_output, encoded_input['attention_mask']) # Normalize embeddings embeddings = F.normalize(embeddings, p=2, dim=1) return embeddings # Sentences we want sentence embeddings for query = "How many people live in London?" docs = ["Around 9 Million people live in London", "London is known for its financial district"] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/msmarco-MiniLM-L6-cos-v5") model = AutoModel.from_pretrained("sentence-transformers/msmarco-MiniLM-L6-cos-v5") #Encode query and docs query_emb = encode(query) doc_emb = encode(docs) #Compute dot score between query and all document embeddings scores = torch.mm(query_emb, doc_emb.transpose(0, 1))[0].cpu().tolist() #Combine docs & scores doc_score_pairs = list(zip(docs, scores)) #Sort by decreasing score doc_score_pairs = sorted(doc_score_pairs, key=lambda x: x[1], reverse=True) #Output passages & scores for doc, score in doc_score_pairs: print(score, doc) ``` ## Technical Details In the following some technical details how this model must be used: | Setting | Value | | --- | :---: | | Dimensions | 384 | | Produces normalized embeddings | Yes | | Pooling-Method | Mean pooling | | Suitable score functions | dot-product (`util.dot_score`), cosine-similarity (`util.cos_sim`), or euclidean distance | Note: When loaded with `sentence-transformers`, this model produces normalized embeddings with length 1. In that case, dot-product and cosine-similarity are equivalent. dot-product is preferred as it is faster. Euclidean distance is proportional to dot-product and can also be used. ## Citing & Authors This model was trained by [sentence-transformers](https://www.sbert.net/). If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084): ```bibtex @inproceedings{reimers-2019-sentence-bert, title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", author = "Reimers, Nils and Gurevych, Iryna", booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", month = "11", year = "2019", publisher = "Association for Computational Linguistics", url = "http://arxiv.org/abs/1908.10084", } ```
[ -0.24321411550045013, -0.7646604776382446, 0.40981924533843994, 0.1284233182668686, -0.22466252744197845, -0.3577939569950104, -0.268374502658844, -0.1178697794675827, 0.24745497107505798, 0.36626380681991577, -0.4823315739631653, -0.6450644135475159, -0.6280449628829956, 0.16823194921016693, -0.4055766761302948, 0.8904810547828674, -0.03247109055519104, 0.14314040541648865, -0.366372287273407, -0.21623080968856812, -0.2511589527130127, -0.2949019968509674, -0.44806501269340515, -0.1881154328584671, 0.3248336613178253, 0.36201441287994385, 0.5835344195365906, 0.5191766619682312, 0.4123833179473877, 0.45519590377807617, -0.023573750630021095, 0.22824494540691376, -0.44348853826522827, -0.0426141656935215, 0.005056525114923716, -0.5037294030189514, -0.1123768761754036, 0.3069953918457031, 0.5784847140312195, 0.4301140308380127, -0.08364731818437576, 0.09807579964399338, 0.10659105330705643, 0.44396981596946716, -0.23303325474262238, 0.46784061193466187, -0.49569225311279297, 0.10878706723451614, 0.05659344047307968, -0.08968395739793777, -0.5300583243370056, -0.24400530755519867, 0.23357176780700684, -0.5230423212051392, 0.3600899577140808, 0.30462977290153503, 1.1513632535934448, 0.2745704650878906, -0.27341026067733765, -0.5869031548500061, -0.15537406504154205, 0.8851218223571777, -0.7383251786231995, 0.1992923766374588, 0.3310421109199524, 0.0643119290471077, -0.03136684000492096, -0.9889637231826782, -0.685784101486206, -0.19758501648902893, -0.509757399559021, 0.21525275707244873, -0.18927088379859924, -0.058396145701408386, 0.17133550345897675, 0.2531844675540924, -0.7747126817703247, -0.05163339152932167, -0.5806466937065125, -0.1926257163286209, 0.7150037884712219, 0.24332290887832642, 0.2664341628551483, -0.6250162720680237, -0.5279039740562439, -0.3836405277252197, -0.3214263916015625, 0.14658506214618683, 0.16979534924030304, 0.22979134321212769, -0.28440481424331665, 0.7814307808876038, -0.06472645699977875, 0.6011283993721008, -0.09441494941711426, 0.0800303965806961, 0.4537791907787323, -0.4256362318992615, -0.24987928569316864, -0.08038445562124252, 1.0654489994049072, 0.41477230191230774, 0.3060152530670166, 0.0301791001111269, -0.19533908367156982, 0.021229546517133713, 0.12775440514087677, -0.7992298007011414, -0.38630127906799316, 0.17133915424346924, -0.4598481059074402, -0.3865407705307007, 0.15020930767059326, -0.6196670532226562, -0.0787268579006195, -0.07509592920541763, 0.7390299439430237, -0.6330510973930359, 0.30805787444114685, 0.27894121408462524, -0.26572540402412415, 0.21925108134746552, -0.08756043016910553, -0.6856788992881775, 0.16460205614566803, 0.27871784567832947, 0.9556978940963745, 0.1088014766573906, -0.5320554971694946, -0.3256959617137909, -0.12100706994533539, -0.003070054342970252, 0.7184620499610901, -0.45770779252052307, -0.31252145767211914, 0.026822039857506752, 0.16642850637435913, -0.48359137773513794, -0.36228224635124207, 0.6454338431358337, -0.29149898886680603, 0.8428940773010254, 0.001182704116217792, -0.8764575719833374, -0.13864222168922424, 0.21752318739891052, -0.48791199922561646, 1.2259875535964966, 0.1868201047182083, -0.9637481570243835, -0.025629965588450432, -0.8523023724555969, -0.19943350553512573, -0.2043943554162979, -0.1125989481806755, -0.6009411811828613, 0.05927625671029091, 0.46475955843925476, 0.6274460554122925, -0.03161277994513512, 0.01644182577729225, -0.16163493692874908, -0.5425206422805786, 0.3414629101753235, -0.2665865421295166, 1.1019538640975952, 0.11288613826036453, -0.32256948947906494, 0.09906458109617233, -0.5436550974845886, -0.051433056592941284, 0.30947384238243103, -0.31043893098831177, -0.25595512986183167, -0.06071734055876732, 0.19413165748119354, 0.4119414985179901, 0.25149860978126526, -0.638837993144989, 0.3105944097042084, -0.5915976166725159, 0.7020081877708435, 0.6812683343887329, -0.006129848305135965, 0.5577571988105774, -0.38335517048835754, 0.20981238782405853, 0.22628909349441528, 0.08005403727293015, -0.11441289633512497, -0.5635607242584229, -0.9300844073295593, -0.3007330894470215, 0.37214648723602295, 0.4936486780643463, -0.7644501328468323, 0.8039666414260864, -0.5143376588821411, -0.49716299772262573, -0.8666468262672424, 0.007964002899825573, 0.12267996370792389, 0.5623528957366943, 0.6527486443519592, -0.05662795528769493, -0.5110248327255249, -0.9678627252578735, -0.14681798219680786, 0.07021453231573105, 0.0016234370414167643, 0.32426220178604126, 0.746453583240509, -0.33233529329299927, 1.0031962394714355, -0.8358678221702576, -0.6359408497810364, -0.2960016429424286, 0.12938125431537628, 0.31933367252349854, 0.5410440564155579, 0.49829208850860596, -0.683377742767334, -0.5907931327819824, -0.540660560131073, -0.7376532554626465, 0.019374756142497063, -0.13547199964523315, -0.1507149338722229, 0.18956759572029114, 0.5747524499893188, -0.7078694701194763, 0.43358030915260315, 0.43727347254753113, -0.6560311913490295, 0.399574875831604, -0.45828187465667725, -0.10710640251636505, -1.2596311569213867, -0.055307384580373764, -0.04008369520306587, -0.2580300569534302, -0.3303219676017761, 0.07845266908407211, 0.055140864104032516, -0.1559482216835022, -0.47870364785194397, 0.4962868392467499, -0.522412896156311, 0.11872842162847519, 0.11830871552228928, 0.6390546560287476, 0.1634693294763565, 0.6507641673088074, -0.1297084093093872, 0.6984471082687378, 0.5003408789634705, -0.41400405764579773, 0.3181995153427124, 0.5737571716308594, -0.49672016501426697, 0.2519477307796478, -0.6771887540817261, 0.057264648377895355, -0.061592962592840195, 0.266703724861145, -1.1816705465316772, 0.0990724191069603, 0.14234046638011932, -0.6369766592979431, 0.15578937530517578, 0.27090874314308167, -0.7538110613822937, -0.5430917143821716, -0.5374354124069214, 0.0712442472577095, 0.5110599398612976, -0.4385439157485962, 0.4868057668209076, 0.18898425996303558, 0.027390021830797195, -0.47033634781837463, -1.0152406692504883, -0.07527107000350952, -0.1197330579161644, -0.8004393577575684, 0.44039222598075867, -0.12421286851167679, 0.13187478482723236, 0.27684929966926575, 0.2751460671424866, 0.17831620573997498, -0.05868561565876007, 0.05403057858347893, 0.2726866602897644, -0.12347513437271118, 0.22592908143997192, 0.09266412258148193, -0.22461944818496704, 0.03133285418152809, -0.2247529923915863, 0.6421976089477539, -0.3115971088409424, -0.10473303496837616, -0.3075600862503052, 0.348185271024704, 0.3598203957080841, -0.2312563955783844, 1.0681312084197998, 0.9601019024848938, -0.29245662689208984, -0.16235202550888062, -0.37504324316978455, -0.3113992512226105, -0.5049226880073547, 0.4878511428833008, -0.38317418098449707, -0.8943697810173035, 0.4097275733947754, 0.30695971846580505, -0.00893457978963852, 0.7754909992218018, 0.5908460021018982, -0.42008736729621887, 0.828116238117218, 0.4859415292739868, -0.08912098407745361, 0.4439004063606262, -0.8201159834861755, 0.24333615601062775, -0.7504015564918518, -0.13924568891525269, -0.39124417304992676, -0.4453941285610199, -0.7741172909736633, -0.5260770320892334, 0.4149733781814575, 0.010371983982622623, -0.1314501166343689, 0.4907505214214325, -0.6499626636505127, 0.2874082624912262, 0.6090592741966248, 0.20837269723415375, 0.030827727168798447, 0.08018667250871658, -0.6288637518882751, -0.22722873091697693, -0.7862821221351624, -0.5083682537078857, 1.0122026205062866, 0.3279736340045929, 0.47867515683174133, 0.0017642268212512136, 0.8286875486373901, 0.23487697541713715, 0.09635922312736511, -0.7184534668922424, 0.5965842604637146, -0.3065648078918457, -0.4597495496273041, -0.4029918313026428, -0.3894004225730896, -1.0143722295761108, 0.5053892731666565, -0.23410890996456146, -0.6309017539024353, 0.06034030020236969, -0.3137075901031494, -0.307669073343277, 0.18579840660095215, -0.8433756232261658, 1.0413599014282227, 0.0607503317296505, -0.2206329107284546, -0.20735400915145874, -0.6952752470970154, 0.1189236268401146, 0.2922151982784271, 0.1969970464706421, -0.03741735592484474, -0.12344496697187424, 0.8715215921401978, -0.4192769527435303, 0.7502332329750061, -0.08599217236042023, 0.25915026664733887, 0.3500444293022156, -0.23042429983615875, 0.3915616273880005, -0.0878700315952301, -0.10882265120744705, 0.013178210705518723, 0.003846712177619338, -0.5691775679588318, -0.5842377543449402, 0.7703492045402527, -0.9180738925933838, -0.3857496976852417, -0.5616741180419922, -0.6478626728057861, 0.022391298785805702, 0.23284021019935608, 0.4523439109325409, 0.48437750339508057, -0.05717327073216438, 0.4371320605278015, 0.48477470874786377, -0.25843313336372375, 0.7780095934867859, 0.33568552136421204, -0.0827113464474678, -0.5024073719978333, 0.642473042011261, 0.2723090946674347, -0.013243146240711212, 0.5195715427398682, 0.33184880018234253, -0.5473451018333435, -0.20589002966880798, -0.2661694884300232, 0.4961494207382202, -0.6483220458030701, -0.17376023530960083, -0.8020691275596619, -0.4234609305858612, -0.7066261768341064, -0.134217768907547, -0.1499405801296234, -0.42142799496650696, -0.42087820172309875, -0.26773279905319214, 0.2733412981033325, 0.6361838579177856, -0.06196136027574539, 0.20378318428993225, -0.6517797708511353, 0.1537797898054123, 0.1663605272769928, 0.06116098165512085, -0.1279238760471344, -0.7441277503967285, -0.5252401828765869, -0.029043974354863167, -0.4394257664680481, -0.8616619110107422, 0.5684539675712585, 0.16202649474143982, 0.5464078783988953, 0.2789578139781952, 0.15529710054397583, 0.602762758731842, -0.5289355516433716, 0.8577163815498352, -0.016033627092838287, -0.8843671679496765, 0.4874432384967804, -0.06121369078755379, 0.2904970049858093, 0.5468297004699707, 0.3809547424316406, -0.4703751802444458, -0.41731545329093933, -0.7888760566711426, -0.8738710880279541, 0.6948682069778442, 0.5101537704467773, 0.2905677556991577, -0.16478809714317322, 0.15145137906074524, -0.21151471138000488, 0.08599021285772324, -0.9413427710533142, -0.49718743562698364, -0.22615525126457214, -0.5751452445983887, -0.46086445450782776, -0.25275981426239014, 0.046414826065301895, -0.5627299547195435, 0.7108523845672607, 0.027389196678996086, 0.6956697702407837, 0.529156506061554, -0.4410465657711029, 0.349521279335022, 0.09705068916082382, 0.7094855308532715, 0.2730564773082733, -0.24036051332950592, 0.13715077936649323, 0.23772363364696503, -0.43022340536117554, 0.017277121543884277, 0.4086401164531708, -0.13738106191158295, 0.30946364998817444, 0.49969345331192017, 0.7502173781394958, 0.40133780241012573, -0.4322100281715393, 0.7794088125228882, -0.11769726127386093, -0.24107302725315094, -0.4212467670440674, -0.10310353338718414, 0.2646872103214264, 0.21690531075000763, 0.264474481344223, 0.024446921423077583, 0.04980636015534401, -0.44514966011047363, 0.3920566141605377, 0.15756399929523468, -0.47870075702667236, -0.028217338025569916, 0.6410858631134033, 0.07099005579948425, -0.29563507437705994, 0.9070428609848022, -0.3158915638923645, -0.651054859161377, 0.43639254570007324, 0.4849860668182373, 0.8702862858772278, 0.04041518270969391, 0.21958179771900177, 0.5018814206123352, 0.43102729320526123, 0.11993756145238876, 0.09471234679222107, -0.05254257097840309, -0.7671251893043518, -0.019575338810682297, -0.6263213753700256, 0.04123543202877045, -0.17191065847873688, -0.550200879573822, 0.3578392267227173, -0.08393320441246033, -0.0294630266726017, -0.1538480520248413, 0.3465358316898346, -0.8607109189033508, 0.10680506378412247, 0.033942390233278275, 1.0251150131225586, -0.9752501845359802, 1.012458086013794, 0.6421447396278381, -0.8121386766433716, -0.8256166577339172, -0.11016307026147842, -0.30590060353279114, -0.7718864679336548, 0.5111969709396362, 0.4644509553909302, 0.15760383009910583, 0.17895400524139404, -0.4294378161430359, -0.7849497199058533, 1.4898061752319336, 0.18204283714294434, -0.3501806855201721, -0.35261499881744385, 0.17415818572044373, 0.6325808167457581, -0.5308915376663208, 0.5191079378128052, 0.4601072371006012, 0.36317214369773865, -0.21188782155513763, -0.559599757194519, 0.09859246015548706, -0.2320655733346939, 0.09655928611755371, -0.2262105643749237, -0.6493664383888245, 0.9675606489181519, -0.11842731386423111, -0.14968203008174896, 0.07159251719713211, 0.7420597076416016, 0.25622326135635376, 0.15484574437141418, 0.440878689289093, 0.8693035244941711, 0.7295643091201782, -0.12833420932292938, 1.140458583831787, -0.32819420099258423, 0.8513723611831665, 1.0340523719787598, 0.17983880639076233, 1.0775425434112549, 0.44550377130508423, -0.238484188914299, 0.8694143891334534, 0.6201971173286438, -0.2052752673625946, 0.6352491974830627, 0.24468065798282623, 0.07556114345788956, 0.005145271308720112, 0.24579668045043945, -0.3016241788864136, 0.5605703592300415, 0.20086148381233215, -0.7528795599937439, -0.20937685668468475, 0.07620679587125778, 0.09502546489238739, 0.12922203540802002, 0.0038035043980926275, 0.62729811668396, 0.25089266896247864, -0.44810038805007935, 0.5356163382530212, 0.2456844300031662, 0.9077361226081848, -0.4180232286453247, 0.2221219539642334, -0.2780206799507141, 0.3223690390586853, -0.07858724147081375, -0.7578862309455872, 0.34125757217407227, -0.1955554485321045, -0.21756194531917572, -0.31013986468315125, 0.5568901300430298, -0.7043643593788147, -0.6756600141525269, 0.454052209854126, 0.47304704785346985, 0.25515809655189514, 0.06214500218629837, -1.133292317390442, -0.172733336687088, 0.06487694382667542, -0.5002346038818359, 0.18758955597877502, 0.3521198630332947, 0.2894285321235657, 0.5055103898048401, 0.5178565382957458, -0.13969628512859344, 0.19856823980808258, 0.061939653009176254, 0.7536891102790833, -0.6885359287261963, -0.6182603240013123, -0.9028406143188477, 0.6450901627540588, -0.2954908013343811, -0.31458914279937744, 0.7944071292877197, 0.803178608417511, 0.8656926155090332, -0.25773680210113525, 0.4169619679450989, -0.0843915045261383, 0.3563666045665741, -0.5695281624794006, 0.9474745988845825, -0.6438822746276855, 0.10599958151578903, -0.08079081773757935, -0.886233925819397, -0.17800351977348328, 0.8748304843902588, -0.45849505066871643, -0.020940463989973068, 0.9541112184524536, 1.0104362964630127, -0.1073700413107872, -0.2192201018333435, 0.3105376362800598, 0.41554024815559387, 0.18867893517017365, 0.6497197151184082, 0.43893522024154663, -0.948387861251831, 0.7731385827064514, -0.4758296608924866, 0.07064789533615112, -0.2267719805240631, -0.6688388586044312, -0.9249297380447388, -0.8575259447097778, -0.30921506881713867, -0.43478837609291077, -0.20706409215927124, 0.921062171459198, 0.525477945804596, -0.7417647242546082, -0.14595946669578552, -0.016826778650283813, 0.06998144090175629, -0.09921760857105255, -0.3592805862426758, 0.6794856786727905, -0.5115391612052917, -0.8345058560371399, 0.21108771860599518, -0.03523937240242958, -0.008365988731384277, -0.29033994674682617, -0.016219578683376312, -0.6932989358901978, 0.20858712494373322, 0.5980159640312195, -0.30298087000846863, -0.7326074242591858, -0.3391656279563904, 0.04343480244278908, -0.621661901473999, 0.08872862905263901, 0.4044176936149597, -0.7074779272079468, 0.39827248454093933, 0.5943676233291626, 0.41720542311668396, 0.7410090565681458, -0.13322149217128754, 0.31339603662490845, -0.8322146534919739, 0.16807909309864044, 0.12009964883327484, 0.6704375743865967, 0.4527689516544342, -0.30413880944252014, 0.6627025008201599, 0.42161187529563904, -0.5153345465660095, -0.6586430668830872, -0.19714993238449097, -1.0091387033462524, -0.32900023460388184, 1.0320026874542236, -0.3368942439556122, -0.3545827269554138, 0.17039433121681213, -0.2873171269893646, 0.3780253529548645, -0.3274632394313812, 0.7186845541000366, 0.8027191162109375, -0.05593346059322357, -0.1800723820924759, -0.3806995749473572, 0.3106744885444641, 0.41502025723457336, -0.4808371067047119, -0.4637508988380432, 0.14922767877578735, 0.47729361057281494, 0.30271288752555847, 0.5111701488494873, -0.12055357545614243, -0.01263656746596098, 0.14764262735843658, 0.044716548174619675, -0.26568999886512756, 0.054412078112363815, -0.431302547454834, 0.2814040184020996, -0.4481791853904724, -0.45121875405311584 ]
flair/chunk-english
flair
"2023-04-05T10:38:02Z"
19,987
15
flair
[ "flair", "pytorch", "token-classification", "sequence-tagger-model", "en", "dataset:conll2000", "has_space", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- tags: - flair - token-classification - sequence-tagger-model language: en datasets: - conll2000 widget: - text: "The happy man has been eating at the diner" --- ## English Chunking in Flair (default model) This is the standard phrase chunking model for English that ships with [Flair](https://github.com/flairNLP/flair/). F1-Score: **96,48** (CoNLL-2000) Predicts 4 tags: | **tag** | **meaning** | |---------------------------------|-----------| | ADJP | adjectival | | ADVP | adverbial | | CONJP | conjunction | | INTJ | interjection | | LST | list marker | | NP | noun phrase | | PP | prepositional | | PRT | particle | | SBAR | subordinate clause | | VP | verb phrase | Based on [Flair embeddings](https://www.aclweb.org/anthology/C18-1139/) and LSTM-CRF. --- ### Demo: How to use in Flair Requires: **[Flair](https://github.com/flairNLP/flair/)** (`pip install flair`) ```python from flair.data import Sentence from flair.models import SequenceTagger # load tagger tagger = SequenceTagger.load("flair/chunk-english") # make example sentence sentence = Sentence("The happy man has been eating at the diner") # predict NER tags tagger.predict(sentence) # print sentence print(sentence) # print predicted NER spans print('The following NER tags are found:') # iterate over entities and print for entity in sentence.get_spans('np'): print(entity) ``` This yields the following output: ``` Span [1,2,3]: "The happy man" [− Labels: NP (0.9958)] Span [4,5,6]: "has been eating" [− Labels: VP (0.8759)] Span [7]: "at" [− Labels: PP (1.0)] Span [8,9]: "the diner" [− Labels: NP (0.9991)] ``` So, the spans "*The happy man*" and "*the diner*" are labeled as **noun phrases** (NP) and "*has been eating*" is labeled as a **verb phrase** (VP) in the sentence "*The happy man has been eating at the diner*". --- ### Training: Script to train this model The following Flair script was used to train this model: ```python from flair.data import Corpus from flair.datasets import CONLL_2000 from flair.embeddings import WordEmbeddings, StackedEmbeddings, FlairEmbeddings # 1. get the corpus corpus: Corpus = CONLL_2000() # 2. what tag do we want to predict? tag_type = 'np' # 3. make the tag dictionary from the corpus tag_dictionary = corpus.make_tag_dictionary(tag_type=tag_type) # 4. initialize each embedding we use embedding_types = [ # contextual string embeddings, forward FlairEmbeddings('news-forward'), # contextual string embeddings, backward FlairEmbeddings('news-backward'), ] # embedding stack consists of Flair and GloVe embeddings embeddings = StackedEmbeddings(embeddings=embedding_types) # 5. initialize sequence tagger from flair.models import SequenceTagger tagger = SequenceTagger(hidden_size=256, embeddings=embeddings, tag_dictionary=tag_dictionary, tag_type=tag_type) # 6. initialize trainer from flair.trainers import ModelTrainer trainer = ModelTrainer(tagger, corpus) # 7. run training trainer.train('resources/taggers/chunk-english', train_with_dev=True, max_epochs=150) ``` --- ### Cite Please cite the following paper when using this model. ``` @inproceedings{akbik2018coling, title={Contextual String Embeddings for Sequence Labeling}, author={Akbik, Alan and Blythe, Duncan and Vollgraf, Roland}, booktitle = {{COLING} 2018, 27th International Conference on Computational Linguistics}, pages = {1638--1649}, year = {2018} } ``` --- ### Issues? The Flair issue tracker is available [here](https://github.com/flairNLP/flair/issues/).
[ -0.40309229493141174, -0.7377583384513855, 0.08148707449436188, 0.30654221773147583, -0.3940061628818512, -0.09288886934518814, -0.20621009171009064, -0.4426023066043854, 0.7410328984260559, 0.24337399005889893, -0.4267677068710327, -0.37923455238342285, -0.44618549942970276, 0.46631884574890137, -0.20612017810344696, 1.0981104373931885, 0.15994833409786224, 0.30243515968322754, -0.2525286376476288, 0.08384910225868225, -0.5119108557701111, -0.4611741304397583, -0.5150805115699768, -0.24344594776630402, 0.3966785967350006, 0.22848950326442719, 0.6587802171707153, 0.8499134182929993, 0.1777758151292801, 0.285868376493454, -0.28787073493003845, 0.14160841703414917, -0.16175472736358643, 0.04761222377419472, -0.18840539455413818, -0.4758513569831848, -0.5941688418388367, 0.096883624792099, 0.616737961769104, 0.5040696859359741, 0.08685114234685898, -0.07533831894397736, 0.05106419324874878, 0.31257447600364685, -0.26455026865005493, 0.3182295262813568, -0.71584552526474, -0.295232355594635, -0.2720930874347687, -0.1446203589439392, -0.4500099718570709, -0.34915244579315186, 0.13051389157772064, -0.47547978162765503, -0.03598785772919655, 0.20606301724910736, 1.4643527269363403, 0.236533522605896, -0.4512699246406555, -0.36981436610221863, -0.3221035301685333, 0.8669003844261169, -0.9191660284996033, 0.2770383059978485, 0.4435114562511444, -0.26348015666007996, -0.23834334313869476, -0.6242507100105286, -0.6804996132850647, -0.14174070954322815, -0.16242343187332153, 0.11876531690359116, -0.16226065158843994, -0.25321948528289795, -0.023028235882520676, 0.2679595351219177, -0.7252729535102844, -0.11103852093219757, -0.21311576664447784, -0.2104075700044632, 0.8514500856399536, 0.1464320868253708, 0.2665489614009857, -0.639127790927887, -0.6416237354278564, -0.10328023135662079, -0.40902793407440186, -0.06408326327800751, 0.08509142696857452, 0.42567384243011475, -0.1411970853805542, 0.641524076461792, -0.051137037575244904, 0.8044800162315369, 0.16088365018367767, -0.2981049418449402, 0.6772236824035645, -0.34590813517570496, -0.2592979669570923, -0.07530363649129868, 0.9773247241973877, 0.44250065088272095, 0.2822405695915222, -0.0725577101111412, -0.10206975042819977, 0.13093729317188263, -0.1055237278342247, -0.5413894653320312, -0.18684259057044983, 0.3303699493408203, -0.1766340434551239, -0.28777876496315, 0.12556737661361694, -0.8298174738883972, -0.19423629343509674, -0.03202347457408905, 0.5353402495384216, -0.8084297776222229, -0.1564280092716217, 0.20015476644039154, -0.4802969694137573, 0.3847387433052063, 0.026242800056934357, -0.7753790616989136, 0.0539398267865181, 0.5302399396896362, 0.7018897533416748, 0.14613468945026398, -0.3897748589515686, -0.2572324573993683, -0.023658810183405876, -0.1510901004076004, 0.7655386328697205, -0.399227499961853, -0.2582714259624481, -0.02168254181742668, 0.22780224680900574, -0.45293524861335754, -0.38106369972229004, 0.6459910869598389, -0.5233973860740662, 0.3661862909793854, -0.21893294155597687, -1.0423107147216797, -0.42756929993629456, 0.34332475066185, -0.5742297172546387, 0.9405720233917236, 0.08291792869567871, -1.0950504541397095, 0.32278186082839966, -0.30003830790519714, -0.6476075053215027, 0.00600961409509182, 0.022956859320402145, -0.32923370599746704, -0.08411845564842224, 0.1668551117181778, 0.6953403949737549, -0.13405394554138184, 0.30678510665893555, -0.29465702176094055, -0.008131361566483974, 0.38901856541633606, 0.07853379845619202, 0.8263295292854309, 0.24493898451328278, -0.20932163298130035, 0.0668746680021286, -0.7484714388847351, -0.06588712334632874, 0.24962164461612701, -0.5073027014732361, -0.3865046203136444, 0.13818670809268951, 0.08766617625951767, 0.1898181289434433, 0.1963779479265213, -0.40650707483291626, 0.46722474694252014, -0.6480952501296997, 0.5169178247451782, 0.4936419427394867, 0.05862659215927124, 0.5679101347923279, -0.5806107521057129, 0.5107824206352234, 0.1669042557477951, -0.3092325031757355, -0.2356356531381607, -0.7279332876205444, -0.726449191570282, -0.42689913511276245, 0.6426194310188293, 0.815387487411499, -0.7990577816963196, 0.9067082405090332, -0.35580480098724365, -0.5849875807762146, -0.4950389564037323, -0.3443167805671692, 0.23642168939113617, 0.5497090816497803, 0.5373075604438782, -0.3251790702342987, -0.8707139492034912, -0.721250593662262, -0.35675284266471863, 0.011454284191131592, 0.1719483882188797, 0.09418957680463791, 0.8179512023925781, -0.17126569151878357, 0.9887937307357788, -0.533742368221283, -0.318592369556427, -0.5353415608406067, 0.11797458678483963, 0.43793347477912903, 0.6784606575965881, 0.42514240741729736, -0.7055219411849976, -0.6677961349487305, -0.30924510955810547, -0.41913968324661255, 0.20841126143932343, -0.23517081141471863, 0.03915535286068916, 0.36762070655822754, 0.3297460675239563, -0.5836472511291504, 0.3563649654388428, 0.2910701632499695, -0.7591756582260132, 0.7042475342750549, 0.16081811487674713, -0.20352976024150848, -1.58762788772583, 0.043164391070604324, 0.2884424030780792, -0.37148863077163696, -0.622671902179718, -0.09001839905977249, 0.011476240120828152, 0.38984790444374084, -0.4293481707572937, 0.7824538946151733, -0.5216938853263855, 0.05752943456172943, -0.042617425322532654, 0.056213926523923874, 0.09075451642274857, 0.41737887263298035, 0.2223460078239441, 0.5103830099105835, 0.5478786826133728, -0.662684977054596, 0.10532287508249283, 0.32487452030181885, -0.4392666220664978, 0.13722100853919983, -0.5245168805122375, -0.2508681118488312, -0.1397315114736557, 0.28632980585098267, -1.1713635921478271, -0.3090870678424835, 0.3441163897514343, -0.778137743473053, 0.5406677722930908, 0.09590490162372589, -0.47170203924179077, -0.3754759728908539, -0.4331035017967224, 0.004502760246396065, 0.49401071667671204, -0.1999775767326355, 0.4210442304611206, 0.40020591020584106, 0.13460755348205566, -0.635108232498169, -0.7154570817947388, -0.24710379540920258, -0.23641584813594818, -0.6719454526901245, 0.5161831378936768, -0.11188125610351562, -0.002424889011308551, 0.19794656336307526, 0.03370625525712967, -0.027448641136288643, 0.26348742842674255, 0.043602317571640015, 0.34892600774765015, -0.12818725407123566, -0.040206894278526306, -0.20622658729553223, 0.16108669340610504, -0.05900948867201805, -0.17893005907535553, 0.9844402074813843, -0.1303924322128296, 0.33799096941947937, -0.4550454318523407, 0.12450386583805084, 0.20087853074073792, -0.3297586739063263, 0.8385041952133179, 0.9059202075004578, -0.5054173469543457, -0.09614753723144531, -0.25753551721572876, -0.13421036303043365, -0.4074556827545166, 0.5974323749542236, -0.43223053216934204, -0.7394536733627319, 0.5099206566810608, 0.2503378093242645, 0.047370195388793945, 0.8259328007698059, 0.5290396213531494, -0.08255531638860703, 1.0420916080474854, 0.5210369825363159, -0.2006741315126419, 0.45131444931030273, -0.49093690514564514, -0.13119179010391235, -0.9185412526130676, -0.11664240062236786, -0.4661867916584015, -0.24728192389011383, -0.7586876153945923, -0.4692290723323822, 0.1315905898809433, 0.4072073698043823, -0.31113383173942566, 0.5483688712120056, -0.47520965337753296, 0.37202706933021545, 0.5601527690887451, -0.01939850114285946, 0.01588871143758297, -0.17085643112659454, -0.44273123145103455, -0.1328268051147461, -0.6373499035835266, -0.3889940083026886, 0.8212562203407288, 0.4911397695541382, 0.6959093809127808, -0.013395010493695736, 0.8776350617408752, 0.08210247755050659, 0.21895255148410797, -0.9862043857574463, 0.5373731255531311, -0.17212222516536713, -0.8581711649894714, -0.08121754974126816, -0.28667545318603516, -0.996036171913147, 0.3274065852165222, -0.25298500061035156, -0.9462248682975769, 0.147169291973114, 0.11070907860994339, -0.40480560064315796, 0.259934663772583, -0.5067708492279053, 0.947950541973114, 0.06079474091529846, -0.29822230339050293, 0.20300732553005219, -0.8083325028419495, 0.3278249204158783, 0.26741933822631836, 0.43363362550735474, -0.23831026256084442, -0.057749614119529724, 1.0378035306930542, -0.313194215297699, 1.021482229232788, 0.05595606565475464, 0.15584969520568848, 0.3035275638103485, 0.11147711426019669, 0.39750370383262634, 0.1433795541524887, -0.06612765789031982, -0.11334163695573807, 0.06796491146087646, -0.2494645118713379, 0.00899779424071312, 0.5758615732192993, -0.7429966330528259, -0.27728208899497986, -0.907934308052063, -0.3086246848106384, -0.10349426418542862, 0.3232356011867523, 0.6815667152404785, 0.45958462357521057, -0.187307208776474, -0.032250721007585526, 0.4736521244049072, -0.17729204893112183, 0.6619554758071899, 0.36088550090789795, -0.43731072545051575, -0.6964682936668396, 0.876050591468811, 0.00045305522507987916, -0.013738672249019146, 0.5901898145675659, 0.200534388422966, -0.36078155040740967, -0.16171322762966156, -0.2445453554391861, 0.5850909352302551, -0.5153979659080505, -0.49117106199264526, -0.6316278576850891, -0.22110609710216522, -0.8021076917648315, -0.12497463077306747, -0.3336663842201233, -0.5291659832000732, -0.7320905923843384, 0.020286306738853455, 0.2656073570251465, 0.7474086284637451, -0.2470460683107376, 0.2933647334575653, -0.7774381637573242, -0.15504616498947144, -0.07529973983764648, 0.04250762239098549, -0.010388454422354698, -0.8497330546379089, -0.3368915617465973, -0.04535244032740593, -0.49873241782188416, -1.2589329481124878, 1.0890333652496338, 0.36642536520957947, 0.3306783139705658, 0.38291841745376587, -0.1401640623807907, 0.5667131543159485, -0.500264048576355, 1.0709888935089111, 0.09870167076587677, -1.0164422988891602, 0.4554426968097687, -0.20911262929439545, 0.3436073362827301, 0.22783665359020233, 0.9056052565574646, -0.7297950387001038, -0.2407890111207962, -0.7171235680580139, -1.0703861713409424, 0.6090419888496399, -0.1230001300573349, 0.08676593750715256, -0.6475489735603333, 0.1730220764875412, -0.0008176339906640351, 0.16115838289260864, -0.977053701877594, -0.45226579904556274, -0.20753635466098785, -0.24861064553260803, -0.24592122435569763, -0.2797747254371643, 0.2145458608865738, -0.6029402017593384, 1.1457802057266235, -0.053669944405555725, 0.5490265488624573, 0.43515926599502563, -0.11637617647647858, 0.10730177909135818, 0.3246749937534332, 0.6739206910133362, 0.32412058115005493, -0.41711440682411194, -0.005771659780293703, 0.03665843978524208, -0.3118879199028015, -0.23623299598693848, 0.1902105212211609, -0.07644768804311752, 0.24279877543449402, 0.47566232085227966, 0.8094322085380554, 0.2964993417263031, -0.39436158537864685, 0.561923623085022, 0.014868238009512424, -0.25578537583351135, -0.49883362650871277, -0.19695733487606049, 0.2769607901573181, 0.13868369162082672, 0.16950584948062897, 0.011541674844920635, 0.018040167167782784, -0.6157163977622986, 0.3517146408557892, 0.3574960231781006, -0.425285279750824, -0.6074180603027344, 0.9093793630599976, 0.002155622933059931, -0.023249808698892593, 0.4665836989879608, -0.6553282141685486, -0.8641325831413269, 0.5896597504615784, 0.8264033794403076, 0.8180375099182129, -0.23336456716060638, 0.20540662109851837, 0.7141429781913757, 0.17897151410579681, -0.1448584645986557, 0.7918885946273804, 0.3956429064273834, -1.0091639757156372, -0.45322340726852417, -1.0389167070388794, 0.1636301428079605, 0.13855481147766113, -0.6678248643875122, 0.31043002009391785, -0.28598853945732117, -0.28688934445381165, 0.3070327043533325, 0.13701222836971283, -0.7137293815612793, 0.25742578506469727, 0.34545931220054626, 1.2506619691848755, -0.9478719234466553, 1.0300438404083252, 1.0766725540161133, -0.7447095513343811, -1.0600444078445435, -0.013539730571210384, 0.0677720233798027, -0.8428882360458374, 0.5459301471710205, 0.34069201350212097, 0.5434541702270508, 0.21475490927696228, -0.6603197455406189, -1.1673777103424072, 1.039838194847107, -0.219974085688591, -0.3501138985157013, -0.2332751601934433, -0.1993430107831955, 0.383089542388916, -0.4698721468448639, 0.3894100487232208, 0.6182898283004761, 0.4521350860595703, 0.12321728467941284, -0.9727729558944702, 0.04942888393998146, -0.16816624999046326, -0.0356607548892498, 0.13421767950057983, -0.6990495324134827, 1.1838045120239258, -0.11177968233823776, -0.21973688900470734, 0.30137893557548523, 0.9770942330360413, -0.04081220179796219, -0.03913019225001335, 0.40342122316360474, 0.8942750692367554, 0.7065143585205078, -0.18656879663467407, 1.0166501998901367, -0.32015201449394226, 0.6923927664756775, 1.2642608880996704, -0.06807725131511688, 1.07846200466156, 0.39531439542770386, -0.2115710824728012, 0.5971050262451172, 0.870841920375824, -0.07647787779569626, 0.6658525466918945, 0.25153571367263794, 0.05361455678939819, -0.2219957858324051, -0.16364306211471558, -0.416212797164917, 0.682870626449585, 0.4405483305454254, -0.57850182056427, -0.018962517380714417, -0.07925674319267273, 0.6866896748542786, -0.1417391002178192, -0.29664283990859985, 0.8487046360969543, 0.04388928413391113, -0.6656872034072876, 0.8116875886917114, 0.22996746003627777, 1.0503123998641968, -0.4342896044254303, 0.17689689993858337, -0.20148277282714844, 0.18409772217273712, -0.24452129006385803, -0.7444491386413574, 0.3327367305755615, -0.2634859085083008, -0.09070160984992981, 0.04301828518509865, 0.6979920268058777, -0.6665772795677185, -0.3075515627861023, 0.14989212155342102, 0.5561104416847229, 0.2508958876132965, 0.045056603848934174, -0.7965412735939026, -0.06770920753479004, 0.26437875628471375, -0.5200432538986206, 0.22845934331417084, 0.13183380663394928, 0.21576087176799774, 0.39423462748527527, 0.2563903331756592, 0.0646219328045845, 0.12659376859664917, -0.2622809410095215, 0.8371601104736328, -0.929368257522583, -0.5653126835823059, -0.9837059378623962, 0.7077775597572327, 0.02073046751320362, -0.45508480072021484, 0.77501380443573, 0.759806752204895, 0.9463031888008118, -0.17645344138145447, 0.7558702230453491, -0.5851594805717468, 0.7093460559844971, -0.3433479368686676, 0.5909490585327148, -0.8273414969444275, 0.029850192368030548, -0.14052097499370575, -0.6567471027374268, -0.3512953817844391, 0.6438374519348145, -0.25493377447128296, -0.14790672063827515, 0.7203891277313232, 0.6933823227882385, 0.12652848660945892, -0.01787535659968853, 0.07391604036092758, 0.5302370190620422, 0.0929005965590477, 0.44683837890625, 0.5912636518478394, -0.5061327815055847, 0.16461701691150665, -0.5505616068840027, -0.21424135565757751, -0.3482029139995575, -0.9210631251335144, -0.8532660007476807, -0.8650767803192139, -0.34261244535446167, -0.7440648078918457, -0.15520046651363373, 1.2679344415664673, 0.4689081311225891, -0.8256978988647461, -0.29037749767303467, 0.20293918251991272, 0.08330727368593216, -0.2298482060432434, -0.3409349322319031, 0.3526704013347626, -0.37375232577323914, -0.7571658492088318, 0.3884418308734894, -0.2687297761440277, 0.12027987092733383, 0.1315452605485916, 0.14671210944652557, -0.8720659613609314, 0.19288279116153717, 0.5367224216461182, 0.34296879172325134, -0.7012709975242615, -0.24905434250831604, 0.08250987529754639, -0.1531369537115097, 0.24167758226394653, 0.10587228834629059, -0.6890411972999573, 0.18363142013549805, 0.6323433518409729, 0.391092449426651, 0.2765963077545166, 0.07439440488815308, 0.4120402932167053, -1.0284340381622314, -0.01494146604090929, 0.27223023772239685, 0.5794482827186584, 0.3350847363471985, -0.12837311625480652, 0.47287610173225403, 0.4544185996055603, -0.6893393397331238, -0.645910382270813, 0.060577861964702606, -1.081727385520935, -0.44818535447120667, 1.3317172527313232, -0.09174574911594391, -0.6639620661735535, 0.20879636704921722, -0.05185598134994507, 0.5053155422210693, -0.49514472484588623, 0.34848806262016296, 0.5561885833740234, -0.1728811264038086, 0.26365402340888977, -0.3104487657546997, 0.7877398729324341, 0.42394858598709106, -0.5201324224472046, -0.27927055954933167, 0.33181869983673096, 0.6554547548294067, 0.3020842671394348, 0.5822398662567139, 0.05329960212111473, 0.026259856298565865, -0.049527060240507126, 0.35814914107322693, 0.2321174591779709, -0.10747847706079483, -0.4868244230747223, -0.09630509465932846, 0.0036236189771443605, -0.3594224750995636 ]
bigscience/bloom-1b7
bigscience
"2023-05-11T21:17:30Z"
19,939
103
transformers
[ "transformers", "pytorch", "jax", "safetensors", "bloom", "text-generation", "ak", "ar", "as", "bm", "bn", "ca", "code", "en", "es", "eu", "fon", "fr", "gu", "hi", "id", "ig", "ki", "kn", "lg", "ln", "ml", "mr", "ne", "nso", "ny", "or", "pa", "pt", "rn", "rw", "sn", "st", "sw", "ta", "te", "tn", "ts", "tum", "tw", "ur", "vi", "wo", "xh", "yo", "zh", "zhs", "zht", "zu", "arxiv:1909.08053", "arxiv:2110.02861", "arxiv:2108.12409", "license:bigscience-bloom-rail-1.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-05-19T11:52:06Z"
--- license: bigscience-bloom-rail-1.0 language: - ak - ar - as - bm - bn - ca - code - en - es - eu - fon - fr - gu - hi - id - ig - ki - kn - lg - ln - ml - mr - ne - nso - ny - or - pa - pt - rn - rw - sn - st - sw - ta - te - tn - ts - tum - tw - ur - vi - wo - xh - yo - zh - zhs - zht - zu pipeline_tag: text-generation --- <h1 style='text-align: center '>BLOOM LM</h1> <h2 style='text-align: center '><em>BigScience Large Open-science Open-access Multilingual Language Model</em> </h2> <h3 style='text-align: center '>Model Card</h3> <img src="https://s3.amazonaws.com/moonup/production/uploads/1657124309515-5f17f0a0925b9863e28ad517.png" alt="BigScience Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/> Version 1.0 / 26.May.2022 # Model Card for Bloom-1b7 <!-- Provide a quick summary of what the model is/does. --> ## Table of Contents 1. [Model Details](#model-details) 2. [Uses](#uses) 3. [Bias, Risks, and Limitations](#bias-risks-and-limitations) 4. [Recommendations](#recommendations) 5. [Training Data](#training-data) 6. [Evaluation](#evaluation) 7. [Environmental Impact](#environmental-impact) 8. [Technical Specifications](#techincal-specifications) 9. [Citation](#citation) 10. [Glossary and Calculations](#glossary-and-calculations) 11. [More Information](#more-information) 12. [Model Card Authors](#model-card-authors) 13. [Model Card Contact](#model-card-contact) ## Model Details ### Model Description *This section provides information for anyone who wants to know about the model.* - **Developed by:** BigScience ([website](https://bigscience.huggingface.co)) * All collaborators are either volunteers or have an agreement with their employer. *(Further breakdown of participants forthcoming.)* - **Model Type:** Transformer-based Language Model - **Version:** 1.0.0 - **Languages:** Multiple; see [training data](#training-data) - **License:** RAIL License v1.0 ([link](https://huggingface.co/spaces/bigscience/license)) - **Release Date Estimate:** Monday, 11.July.2022 - **Funded by:** * The French government. * Hugging Face ([website](https://huggingface.co)). * Organizations of contributors. *(Further breakdown of organizations forthcoming.)* ## Uses *This section addresses questions around how the model is intended to be used, discusses the foreseeable users of the model (including those affected by the model), and describes uses that are considered out of scope or misuse of the model. It provides information for anyone considering using the model or who is affected by the model.* ### Intended Use This model is being created in order to enable public research on large language models (LLMs). LLMs are intended to be used for language generation or as a pretrained base model that can be further fine-tuned for specific tasks. Use cases below are not exhaustive. #### **Direct Use** - Text generation - Exploring characteristics of language generated by a language model - Examples: Cloze tests, counterfactuals, generations with reframings #### **Downstream Use** - Tasks that leverage language models include: Information Extraction, Question Answering, Summarization ### Misuse and Out-of-scope Use *This section addresses what users ought not do with the model.* See the [BLOOM License](https://huggingface.co/spaces/bigscience/license), Attachment A, for detailed usage restrictions. The below list is non-exhaustive, but lists some easily foreseeable problematic use cases. #### **Out-of-scope Uses** Using the model in [high-stakes](#high-stakes) settings is out of scope for this model.  The model is not designed for [critical decisions](#critical-decisions) nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but is not correct. ##### Out-of-scope Uses Include: - Usage in biomedical domains, political and legal domains, or finance domains - Usage for evaluating or scoring individuals, such as for employment, education, or credit - Applying the model for critical automatic decisions, generating factual content, creating reliable summaries, or generating predictions that must be correct #### **Misuse** Intentionally using the model for harm, violating [human rights](#human-rights), or other kinds of malicious activities, is a misuse of this model. This includes: - Spam generation - Disinformation and influence operations - Disparagement and defamation - Harassment and abuse - [Deception](#deception) - Unconsented impersonation and imitation - Unconsented surveillance - Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://huggingface.co/spaces/bigscience/license) ### Intended Users #### **Direct Users** - General Public - Researchers - Students - Educators - Engineers/developers - Non-commercial entities - Community advocates, including human and civil rights groups #### Indirect Users - Users of derivatives created by Direct Users, such as those using software with an [intended use](#intended-use) - Users of [Derivatives of the Model, as described in the License](https://huggingface.co/spaces/bigscience/license) #### Others Affected (Parties Prenantes) - People and groups referred to by the LLM - People and groups exposed to outputs of, or decisions based on, the LLM - People and groups whose original work is included in the LLM ## Bias, Risks, and Limitations *This section identifies foreseeable harms and misunderstandings.* Model may: - Overrepresent some viewpoints and underrepresent others - Contain stereotypes - Contain [personal information](#personal-data-and-information) - Generate: - Hateful, abusive, or violent language - Discriminatory or prejudicial language - Content that may not be appropriate for all settings, including sexual content - Make errors, including producing incorrect information as if it were factual - Generate irrelevant or repetitive outputs ### Recommendations *This section provides information on warnings and potential mitigations.* - Indirect users should be made aware when the content they're working with is created by the LLM. - Users should be aware of [Risks and Limitations](#risks-and-limitations), and include an appropriate age disclaimer or blocking interface as necessary. - Models pretrained with the LLM should include an updated Model Card. - Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments. ## Training Data *This section provides a high-level overview of the training data. It is relevant for anyone who wants to know the basics of what the model is learning.* Details for each dataset are provided in individual [Data Cards](https://huggingface.co/spaces/bigscience/BigScienceCorpus). Training data includes: - 45 natural languages - 12 programming languages - In 1.5TB of pre-processed text, converted into 350B unique tokens (see [the tokenizer section](#tokenization) for more.) #### **Languages** The pie chart shows the distribution of languages in training data. ![pie chart showing the distribution of languages in training data](https://github.com/bigscience-workshop/model_card/blob/main/assets/data/pie_chart.svg?raw=true) **The following table shows the further distribution of Niger-Congo and Indic languages in the training data.** | Niger Congo | Percentage | | Indic | Percentage | |----------------|------------ |------ |-----------|------------| | Chi Tumbuka | 0.00002 | | Assamese | 0.01 | | Kikuyu | 0.00004 | | Odia | 0.04 | | Bambara | 0.00004 | | Gujarati | 0.04 | | Akan | 0.00007 | | Marathi | 0.05 | | Xitsonga | 0.00007 | | Punjabi | 0.05 | | Sesotho | 0.00007 | | Kannada | 0.06 | | Chi Chewa | 0.0001 | | Nepali | 0.07 | | Setswana | 0.0002 | | Telugu | 0.09 | | Northern Sotho | 0.0002 | | Malayalam | 0.10 | | Fon | 0.0002 | | Urdu | 0.10 | | Kirundi | 0.0003 | | Tamil | 0.20 | | Wolof | 0.0004 | | Bengali | 0.50 | | Kuganda | 0.0004 | | Hindi | 0.70 | | Chi Shona | 0.001 | | Isi Zulu | 0.001 | | Igbo | 0.001 | | Xhosa | 0.001 | | Kinyarwanda | 0.003 | | Yoruba | 0.006 | | Swahili | 0.02 | </details> **The following table shows the distribution of programming languages.** | Extension | Language | Number of files | |----------------|------------|-----------------| | java | Java | 5,407,724 | | php | PHP | 4,942,186 | | cpp | C++ | 2,503,930 | | py | Python | 2,435,072 | | js | JavaScript | 1,905,518 | | cs | C# | 1,577,347 | | rb | Ruby | 6,78,413 | | cc | C++ | 443,054 | | hpp | C++ | 391,048 | | lua | Lua | 352,317 | | go | GO | 227,763 | | ts | TypeScript | 195,254 | | C | C | 134,537 | | scala | Scala | 92,052 | | hh | C++ | 67,161 | | H | C++ | 55,899 | | tsx | TypeScript | 33,107 | | rs | Rust | 29,693 | | phpt | PHP | 9,702 | | c++ | C++ | 1,342 | | h++ | C++ | 791 | | php3 | PHP | 540 | | phps | PHP | 270 | | php5 | PHP | 166 | | php4 | PHP | 29 | ## Evaluation *This section describes the evaluation protocols and provides the results.* ### Metrics *This section describes the different ways performance is calculated and why.* Includes: | Metric | Why chosen | |--------------------|--------------------------------------------------------------------| | [Perplexity](#perplexity) | Standard metric for quantifying model improvements during training | | Cross Entropy [Loss](#loss) | Standard objective for language models. | And multiple different metrics for specific tasks. _(More evaluation metrics forthcoming upon completion of evaluation protocol.)_ ### Factors *This section lists some different aspects of what BLOOM models. Its focus is on those aspects that are likely to give rise to high variance in model behavior.* - Language, such as English or Yoruba - Domain, such as newswire or stories - Demographic characteristics, such as gender or nationality ### Results *Results are based on the [Factors](#factors) and [Metrics](#metrics).* **Train-time Evaluation:** As of 25.May.2022, 15:00 PST: - Training Loss: 2.0 - Validation Loss: 2.2 - Perplexity: 8.9 (More evaluation scores forthcoming at the end of model training.) - [BLOOM Book](https://huggingface.co/spaces/bigscience/bloom-book): Read generations from BLOOM based on prompts provided by the community ## Environmental Impact The training supercomputer, Jean Zay ([website](http://www.idris.fr/eng/jean-zay/jean-zay-presentation-eng.html)), uses mostly nuclear energy. The heat generated by it is reused for heating campus housing. **Estimated carbon emissions:** *(Forthcoming upon completion of training.)* **Estimated electricity usage:** *(Forthcoming upon completion of training.)* ## Technical Specifications *This section provides information for people who work on model development.* Please see [the BLOOM training README](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#readme) for full details on replicating training. **Model Architecture:** Modified from Megatron-LM GPT2 (see [paper](https://arxiv.org/abs/1909.08053), [BLOOM Megatron code](https://github.com/bigscience-workshop/Megatron-DeepSpeed)): * Decoder-only architecture * Layer normalization applied to word embeddings layer (`StableEmbedding`; see [code](https://github.com/facebookresearch/bitsandbytes), [paper](https://arxiv.org/pdf/2110.02861.pdf)) * ALiBI positional encodings (see [paper](https://arxiv.org/pdf/2108.12409.pdf)), with GeLU activation functions * 1,722,408,960 parameters: * 513,802,240 embedding parameters * 24 layers, 16 attention heads * Hidden layers are 2048-dimensional * Sequence length of 2048 tokens used (see [BLOOM tokenizer](https://huggingface.co/bigscience/tokenizer), [tokenizer description](#tokenization)) **Objective Function:** Cross Entropy with mean reduction (see [API documentation](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)). **Compute infrastructure:** Jean Zay Public Supercomputer, provided by the French government (see [announcement](https://www.enseignementsup-recherche.gouv.fr/fr/signature-du-marche-d-acquisition-de-l-un-des-supercalculateurs-les-plus-puissants-d-europe-46733)). * Hardware: 64 V100 16/32GB GPUs (16 nodes): * 4 GPUs per node * 40 CPUs per task * 1 task per node * CPU: AMD * CPU memory: 160GB per node * GPU memory: 64GB or 128GB (depending on node availability during training) per node * Inter-node connect: Omni-Path Architecture (OPA) * NCCL-communications network: a fully dedicated subnet * Disc IO network: shared network with other types of nodes * Software: * Megatron-DeepSpeed ([Github link](https://github.com/bigscience-workshop/Megatron-DeepSpeed)) * DeepSpeed ([Github link](https://github.com/microsoft/DeepSpeed)) * PyTorch (pytorch-1.11 w/ CUDA-11.5; see [Github link](https://github.com/pytorch/pytorch)) * apex ([Github link](https://github.com/NVIDIA/apex)) ### **Training** - Checkpoint size: - Fp16 weights: 2.6GB (# params * 2) - Full checkpoint with optimizer states: -- - Training throughput: -- - Number of epochs: 1 - Dates: - Start: 11th March, 2022 11:42am PST - End: 20 May, 2022 - Server training location: Île-de-France, France ### **Tokenization** The BLOOM tokenizer ([link](https://huggingface.co/bigscience/tokenizer)) is a learned subword tokenizer trained using: - A byte-level Byte Pair Encoding (BPE) algorithm - A simple pre-tokenization rule, no normalization - A vocabulary size of 250,680 It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language. ## Citation **Cite as:** BigScience, _BigScience Language Open-science Open-access Multilingual (BLOOM) Language Model_. International, May 2021-May 2022 ## Glossary and Calculations *This section defines common terms and how metrics are calculated.* - <a name="loss">**Loss:**</a> A calculation of the difference between what the model has learned and what the data shows ("groundtruth"). The lower the loss, the better. The training process aims to minimize the loss. - <a name="perplexity">**Perplexity:**</a> This is based on what the model estimates the probability of new data is. The lower the perplexity, the better. If the model is 100% correct at predicting the next token it will see, then the perplexity is 1. Mathematically this is calculated using entropy. - <a name="high-stakes">**High-stakes settings:**</a> Such as those identified as "high-risk AI systems" and "unacceptable risk AI systems" in the European Union's proposed [Artificial Intelligence (AI) Act](https://artificialintelligenceact.eu/annexes/). - <a name="critical-decisions">**Critical decisions:**</a> Such as those defined in [the United States' proposed Algorithmic Accountability Act](https://www.congress.gov/117/bills/s3572/BILLS-117s3572is.pdf). - <a name="human-rights">**Human rights:**</a> Includes those rights defined in the [Universal Declaration of Human Rights](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf). - <a name="personal-data-and-information">**Personal Data and Personal Information:**</a> Personal data and information is defined in multiple data protection regulations, such as "[personal data](https://gdpr-info.eu/issues/personal-data/)" in the [European Union's General Data Protection Regulation](https://gdpr-info.eu); and "personal information" in the Republic of South Africa's [Protection of Personal Information Act](https://www.gov.za/sites/default/files/gcis_document/201409/3706726-11act4of2013popi.pdf), The People's Republic of China's [Personal information protection law](http://en.npc.gov.cn.cdurl.cn/2021-12/29/c_694559.htm). - <a name="sensitive-characteristics">**Sensitive characteristics:**</a> This includes specifically protected categories in human rights (see [UHDR, Article 2](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf)) and personal information regulation (see GDPR, [Article 9; Protection of Personal Information Act, Chapter 1](https://www.gov.za/sites/default/files/gcis_document/201409/3706726-11act4of2013popi.pdf)) - <a name="deception">**Deception:**</a> Doing something to intentionally mislead individuals to believe something that is false, such as by creating deadbots or chatbots on social media posing as real people, or generating text documents without making consumers aware that the text is machine generated. ## More Information ### Dataset Creation Blog post detailing the design choices during the dataset creation: https://bigscience.huggingface.co/blog/building-a-tb-scale-multilingual-dataset-for-language-modeling ### Technical Specifications Blog post summarizing how the architecture, size, shape, and pre-training duration where selected: https://bigscience.huggingface.co/blog/what-language-model-to-train-if-you-have-two-million-gpu-hours More details on the architecture/optimizer: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml Blog post on the hardware/engineering side: https://bigscience.huggingface.co/blog/which-hardware-to-train-a-176b-parameters-model Details on the distributed setup used for the training: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml Tensorboard updated during the training: https://huggingface.co/bigscience/tr11-176B-ml-logs/tensorboard#scalars&tagFilter=loss Insights on how to approach training, negative results: https://github.com/bigscience-workshop/bigscience/blob/master/train/lessons-learned.md Details on the obstacles overcome during the preparation on the engineering side (instabilities, optimization of training throughput, so many technical tricks and questions): https://github.com/bigscience-workshop/bigscience/blob/master/train/tr11-176B-ml/chronicles.md ### Initial Results Initial prompting experiments using interim checkpoints: https://huggingface.co/spaces/bigscience/bloom-book ## Model Card Authors *Ordered roughly chronologically and by amount of time spent.* Margaret Mitchell, Giada Pistilli, Yacine Jernite, Ezinwanne Ozoani, Marissa Gerchick, Nazneen Rajani, Sasha Luccioni, Irene Solaiman, Maraim Masoud, Somaieh Nikpoor, Carlos Muñoz Ferrandis, Stas Bekman, Christopher Akiki, Danish Contractor, David Lansky, Angelina McMillan-Major, Tristan Thrush, Suzana Ilić, Gérard Dupont, Shayne Longpre, Manan Dey, Stella Biderman, Douwe Kiela, Emi Baylor, Teven Le Scao, Aaron Gokaslan, Julien Launay, Niklas Muennighoff ## Model Card Contact **Send Questions to:** bigscience-contact@googlegroups.com
[ -0.24552777409553528, -0.5855190753936768, 0.43448811769485474, 0.27458906173706055, -0.11713189631700516, -0.23699228465557098, -0.5093297958374023, -0.5667786002159119, 0.08012829720973969, 0.5111172795295715, -0.4442282021045685, -0.6941890716552734, -0.6534764170646667, 0.045178454369306564, -0.35974523425102234, 1.0721168518066406, 0.008426200598478317, 0.19815483689308167, -0.1445217728614807, -0.0422196127474308, -0.19190789759159088, -0.657168447971344, -0.3982476592063904, -0.25241759419441223, 0.5903499126434326, 0.35350626707077026, 0.5638462901115417, 0.5613206624984741, 0.6149039268493652, 0.2271517962217331, -0.39007577300071716, -0.2529667317867279, -0.5774101614952087, -0.3620622456073761, -0.20627449452877045, -0.3265990912914276, -0.6542378664016724, 0.13891716301441193, 0.8491125702857971, 0.8454166054725647, -0.17138969898223877, 0.3200024962425232, -0.008227658458054066, 0.5306864976882935, -0.4154283106327057, 0.3571166694164276, -0.3409948945045471, 0.0671435073018074, -0.2542524039745331, 0.3178032338619232, -0.3290459215641022, -0.2153376191854477, -0.028810981661081314, -0.504976212978363, -0.02849307470023632, 0.08501610904932022, 0.8986815214157104, 0.048675812780857086, -0.23894943296909332, -0.11641993373632431, -0.7318696975708008, 0.8678609132766724, -0.8860257863998413, 0.5775588154792786, 0.5609939098358154, 0.22538043558597565, 0.004243562463670969, -0.6657320857048035, -0.7174212336540222, -0.2836819887161255, 0.025478174909949303, 0.28531980514526367, -0.1689862310886383, 0.01666448265314102, 0.48473241925239563, 0.5822553038597107, -0.5461478233337402, 0.23771433532238007, -0.6231153011322021, -0.09005589783191681, 0.8508199453353882, 0.009298847988247871, 0.27301302552223206, -0.17289884388446808, -0.23108352720737457, -0.29134535789489746, -0.819598913192749, -0.08127427846193314, 0.40354588627815247, 0.520588219165802, -0.5779538154602051, 0.8223799467086792, 0.1748664528131485, 0.4884328842163086, -0.26735225319862366, -0.20774073898792267, 0.6054031848907471, -0.5273248553276062, -0.33639687299728394, -0.28706496953964233, 0.9478723406791687, 0.29115504026412964, 0.04208916053175926, -0.008598380722105503, -0.08356460183858871, -0.2493271678686142, -0.06379105150699615, -0.8010151982307434, -0.048570457845926285, 0.17038699984550476, -0.35012349486351013, -0.13347014784812927, -0.060092899948358536, -0.9397420287132263, -0.15587805211544037, -0.3297033905982971, 0.17129163444042206, -0.4094248414039612, -0.5976142883300781, 0.1427767276763916, 0.023103106766939163, 0.17327965795993805, 0.004733119625598192, -0.7635550498962402, 0.2741459906101227, 0.35070571303367615, 0.8880553841590881, -0.22138385474681854, -0.43562328815460205, 0.06787607073783875, 0.13532103598117828, -0.10213800519704819, 0.30660301446914673, -0.33904340863227844, -0.6680124998092651, 0.030612343922257423, 0.2718004286289215, -0.022541970014572144, -0.4073355495929718, 0.4628112018108368, -0.22651392221450806, 0.4401896297931671, -0.35457026958465576, -0.592069149017334, -0.025121474638581276, 0.0355742909014225, -0.6925473809242249, 1.1543890237808228, 0.21828177571296692, -0.7365814447402954, 0.2749430239200592, -0.9320756196975708, -0.18469782173633575, -0.01961548812687397, -0.02231457084417343, -0.5250351428985596, -0.2737022936344147, -0.08234187215566635, 0.3589821457862854, -0.23539771139621735, 0.5411649942398071, -0.2630109488964081, -0.014566649682819843, 0.0960768535733223, -0.23642578721046448, 1.013509750366211, 0.26318150758743286, -0.2799490690231323, 0.09948789328336716, -0.7382729053497314, -0.3264425992965698, 0.3618168532848358, -0.4601682424545288, -0.08862856030464172, -0.10766087472438812, 0.42384985089302063, 0.3242044746875763, 0.13908827304840088, -0.6372116804122925, 0.3022598922252655, -0.5961225628852844, 0.4708665609359741, 0.554061770439148, -0.09413979202508926, 0.4165716767311096, -0.2964872121810913, 0.5243844389915466, 0.25811874866485596, 0.2379075288772583, -0.04743502289056778, -0.621004581451416, -0.6349346041679382, -0.48965421319007874, 0.3516313433647156, 0.5235536694526672, -0.454928994178772, 0.6926925778388977, -0.3158833980560303, -0.6947396397590637, -0.3930111527442932, 0.14472854137420654, 0.5456741452217102, 0.43925175070762634, 0.5143944621086121, -0.11059408634901047, -0.505506694316864, -0.8721673488616943, 0.10172532498836517, -0.06685994565486908, 0.18288834393024445, 0.35689789056777954, 0.9274703860282898, -0.4115734398365021, 0.7663050293922424, -0.5958283543586731, -0.05603404343128204, -0.2643868625164032, -0.08148492127656937, 0.2786906063556671, 0.441556841135025, 0.6030036807060242, -0.860515832901001, -0.32199421525001526, -0.0940113291144371, -0.7182611227035522, 0.06928657740354538, 0.30772364139556885, -0.0944599062204361, 0.3476402461528778, 0.48707374930381775, -0.8244541883468628, 0.41225260496139526, 0.7480390667915344, -0.25899285078048706, 0.6688867211341858, -0.08816783130168915, -0.20636732876300812, -1.306718111038208, 0.43311527371406555, 0.178482785820961, 0.04182714968919754, -0.5570914149284363, 0.09162323921918869, -0.05659335479140282, -0.34676483273506165, -0.58779376745224, 0.8948037624359131, -0.34298935532569885, 0.04002109542489052, -0.05905450880527496, 0.0555165559053421, -0.05382073298096657, 0.29513683915138245, 0.17262201011180878, 0.8656843900680542, 0.577277660369873, -0.5622483491897583, 0.1662837266921997, 0.335968941450119, -0.2964133322238922, 0.21776622533798218, -0.7921245694160461, -0.16340689361095428, -0.163511723279953, 0.3120620846748352, -0.763412356376648, -0.36492276191711426, 0.2902820110321045, -0.382733017206192, 0.4724339544773102, -0.05217853933572769, -0.7364088296890259, -0.6306706070899963, -0.19279669225215912, 0.3178712725639343, 0.5759214162826538, -0.38857826590538025, 0.22613003849983215, 0.4895070791244507, -0.0746050477027893, -0.5418155789375305, -0.908573567867279, -0.08319929987192154, -0.3044348359107971, -0.537416934967041, 0.2930940091609955, -0.31386685371398926, -0.2224353551864624, 0.03552451729774475, 0.2909772992134094, -0.09341764450073242, 0.037453241646289825, 0.33226338028907776, 0.2636949121952057, -0.13742375373840332, 0.3482705354690552, -0.2795577645301819, 0.182718425989151, 0.06398949772119522, -0.16984739899635315, 0.5206716656684875, -0.01593753695487976, -0.3760262429714203, -0.2798733413219452, 0.3402259945869446, 0.5334091782569885, -0.18201753497123718, 0.9685094356536865, 0.6133072972297668, -0.5218450427055359, 0.10397949814796448, -0.4737466871738434, -0.2779950201511383, -0.4143825173377991, 0.6332099437713623, 0.05044270679354668, -0.8543455004692078, 0.581377387046814, 0.0997694879770279, 0.091543048620224, 0.6398017406463623, 0.7829949855804443, 0.03759710118174553, 0.7917822003364563, 0.8721300363540649, -0.22946025431156158, 0.5258932113647461, -0.4129060208797455, 0.37465700507164, -0.8625553846359253, -0.31331712007522583, -0.5059305429458618, 0.024946503341197968, -0.6529770493507385, -0.5246922373771667, 0.17175039649009705, 0.1287769079208374, -0.5036658048629761, 0.3453642725944519, -0.31969526410102844, 0.24484245479106903, 0.5401637554168701, -0.026983419433236122, 0.19332405924797058, 0.08278913795948029, -0.16396482288837433, -0.14631901681423187, -0.6274724006652832, -0.5378854870796204, 1.3249439001083374, 0.7135280966758728, 0.6329909563064575, 0.1803729236125946, 0.5945501923561096, 0.028214655816555023, 0.363903671503067, -0.7146718502044678, 0.4466402232646942, -0.059568632394075394, -0.9844105839729309, -0.3093391954898834, -0.5299677848815918, -1.0778955221176147, 0.017810026183724403, -0.185128852725029, -0.9072666168212891, 0.2165374904870987, 0.12159866094589233, -0.20984959602355957, 0.534136176109314, -0.7917230129241943, 0.8473461270332336, -0.24524544179439545, -0.32721400260925293, -0.04413707181811333, -0.5738012790679932, 0.49417734146118164, -0.19770869612693787, 0.5076250433921814, -0.031065601855516434, 0.15316134691238403, 0.8473130464553833, -0.35797595977783203, 1.1023669242858887, -0.1663893163204193, -0.1350175440311432, 0.24373799562454224, -0.2697909474372864, 0.28694334626197815, -0.08669093996286392, -0.14721809327602386, 0.5595885515213013, -0.010997552424669266, -0.2757308781147003, -0.10556134581565857, 0.6945704817771912, -1.0513807535171509, -0.4776730239391327, -0.5344994068145752, -0.6565691828727722, -0.02497907355427742, 0.34107479453086853, 0.3693183958530426, 0.1406896561384201, -0.21024227142333984, 0.23293502628803253, 0.6855138540267944, -0.6935728192329407, 0.23007909953594208, 0.4763965308666229, -0.6031965017318726, -0.3307037353515625, 0.8970552682876587, 0.1880846619606018, 0.4288729131221771, 0.023785952478647232, 0.3243401050567627, -0.444261759519577, -0.4836713969707489, -0.24088184535503387, 0.5760904550552368, -0.6513811349868774, -0.08426667749881744, -0.6399034261703491, -0.4964492619037628, -0.6659930944442749, 0.17664150893688202, -0.28776291012763977, -0.316022664308548, -0.34437108039855957, -0.24633687734603882, 0.38649070262908936, 0.6161015033721924, -0.17802824079990387, 0.459643691778183, -0.5908648371696472, 0.09276963770389557, 0.10734245181083679, 0.4701690077781677, -0.23204194009304047, -0.6886619329452515, -0.38346001505851746, 0.3111651539802551, -0.4496738314628601, -0.7057574987411499, 0.42518049478530884, 0.11622918397188187, 0.5787278413772583, 0.10864431411027908, -0.30803409218788147, 0.32103365659713745, -0.45421838760375977, 1.1164828538894653, 0.4046989679336548, -0.6618337631225586, 0.5996630787849426, -0.5971273183822632, 0.26686155796051025, 0.39220938086509705, 0.6947365403175354, -0.5034714937210083, -0.2586797773838043, -0.791316032409668, -1.0817129611968994, 0.6845704317092896, 0.2085309475660324, 0.24453149735927582, -0.0496625155210495, 0.3230901062488556, -0.18210162222385406, 0.26066190004348755, -1.2204054594039917, -0.38494229316711426, -0.14266037940979004, -0.26488935947418213, -0.21488867700099945, -0.31574922800064087, -0.3869013786315918, -0.44438761472702026, 0.7667481303215027, 0.09028953313827515, 0.4217699468135834, 0.037040114402770996, -0.08812522888183594, -0.2964347302913666, 0.17404744029045105, 0.6721092462539673, 0.7991668581962585, -0.2595728635787964, -0.1924840360879898, 0.20062805712223053, -0.7331307530403137, -0.02225993387401104, 0.2548874020576477, -0.16822992265224457, -0.2143370509147644, 0.3289077877998352, 0.715720534324646, 0.16804563999176025, -0.7256685495376587, 0.6023851633071899, 0.10141876339912415, -0.3418988585472107, -0.4712582230567932, -0.02635742723941803, 0.33952173590660095, 0.14412303268909454, 0.1440865695476532, -0.23972788453102112, 0.031179791316390038, -0.568724513053894, -0.019207961857318878, 0.31204062700271606, -0.23067955672740936, -0.38146650791168213, 0.5785899758338928, 0.05461695045232773, -0.2384093850851059, 0.4690321683883667, -0.20685964822769165, -0.28085947036743164, 0.6360381841659546, 0.6767424941062927, 0.5333341360092163, -0.3210289478302002, 0.0963778868317604, 0.7567757964134216, 0.3981177806854248, -0.1271342635154724, 0.40559840202331543, 0.4271349310874939, -0.6486960649490356, -0.49712711572647095, -0.7713066339492798, -0.36454951763153076, 0.4719751179218292, -0.566239058971405, 0.4193025827407837, -0.49467676877975464, -0.24038314819335938, 0.11834026128053665, -0.04959092289209366, -0.7097083330154419, 0.2054530829191208, 0.42418423295021057, 1.0566613674163818, -1.0768492221832275, 0.8551812767982483, 0.7615761756896973, -0.8377506732940674, -0.8673020601272583, -0.10340593010187149, 0.13258975744247437, -0.7207059860229492, 0.8613035082817078, 0.04819265380501747, 0.19554026424884796, -0.10903387516736984, -0.8714424967765808, -1.1118931770324707, 1.0751514434814453, 0.3295980393886566, -0.6768050789833069, 0.005660468712449074, 0.28235599398612976, 0.6622720956802368, -0.1712110936641693, 0.2800299823284149, 0.4385983943939209, 0.6481584906578064, 0.17477236688137054, -1.0254511833190918, -0.0033499605488032103, -0.23628459870815277, -0.05448136851191521, 0.02461468055844307, -0.7750064134597778, 0.9822261333465576, -0.06122623756527901, -0.1476183831691742, -0.1250467151403427, 0.5232308506965637, 0.3306875228881836, 0.14746171236038208, 0.23950006067752838, 0.7632449865341187, 0.7727606296539307, -0.15949594974517822, 1.1639949083328247, -0.3107525110244751, 0.4730091989040375, 0.9916735291481018, -0.21168087422847748, 0.7773662805557251, 0.386312335729599, -0.5939877033233643, 0.2917197644710541, 0.5483136177062988, -0.20176243782043457, 0.3162423372268677, 0.3084352910518646, -0.0435769148170948, 0.09866319596767426, -0.15607160329818726, -0.6449092626571655, 0.29427674412727356, 0.5936312079429626, -0.4899904727935791, -0.09148816764354706, 0.11312907934188843, 0.2792251706123352, -0.08559009432792664, -0.2131800353527069, 0.487965852022171, 0.2572455108165741, -0.4552541673183441, 0.5436121225357056, 0.038121942430734634, 0.6535176634788513, -0.7293158769607544, 0.010261821560561657, -0.10113110393285751, 0.09540959447622299, -0.2707338035106659, -0.9490581750869751, 0.3235965371131897, 0.03651461377739906, -0.2696310877799988, -0.14144031703472137, 0.40324488282203674, -0.4848385155200958, -0.7419394850730896, 0.49133384227752686, 0.37582316994667053, 0.27102431654930115, 0.11131108552217484, -0.8797602653503418, 0.1328260898590088, -0.131064310669899, -0.42477771639823914, 0.32134926319122314, 0.19777435064315796, 0.05886128917336464, 0.7028906345367432, 0.6546470522880554, 0.283887654542923, 0.04568108543753624, 0.09281636774539948, 1.0260902643203735, -0.748921275138855, -0.143991157412529, -0.7234492301940918, 0.5560867190361023, -0.1379854530096054, -0.465088427066803, 0.9158306121826172, 0.7305237650871277, 0.8256857991218567, 0.06204089894890785, 0.9311890006065369, -0.12204540520906448, 0.5516480207443237, -0.4425048828125, 0.6390079259872437, -0.6394680142402649, 0.00149579718708992, -0.346709668636322, -1.0629382133483887, -0.443682998418808, 0.5603232383728027, -0.5875735282897949, 0.29900458455085754, 0.5989121198654175, 0.776881217956543, -0.17097361385822296, -0.028540335595607758, 0.22970932722091675, 0.5592710375785828, 0.3351595401763916, 0.33308514952659607, 0.7214115262031555, -0.3864014148712158, 0.26822853088378906, -0.28274402022361755, -0.1738371104001999, -0.27258503437042236, -0.8808855414390564, -0.9131131172180176, -0.6319819092750549, -0.38019227981567383, -0.5166795253753662, -0.10776475816965103, 0.9630130529403687, 0.7386616468429565, -0.8305552005767822, -0.4371098577976227, 0.05641560256481171, -0.1107466071844101, 0.1518624722957611, -0.21218790113925934, 0.41584447026252747, -0.08263373374938965, -0.6149903535842896, 0.2667904496192932, 0.0371931791305542, 0.2268819510936737, -0.5242931842803955, -0.08998972177505493, -0.5093699097633362, -0.0698142945766449, 0.6677066683769226, 0.5200927257537842, -0.6238167881965637, -0.10929866135120392, 0.06442441046237946, -0.26262083649635315, 0.015204297378659248, 0.26672685146331787, -0.14571359753608704, 0.2636374235153198, 0.22589699923992157, 0.37033629417419434, 0.694695770740509, -0.19263820350170135, 0.24160808324813843, -0.6812713742256165, 0.4034453332424164, 0.2821175456047058, 0.5186393857002258, 0.41288745403289795, -0.42126700282096863, 0.5178471803665161, 0.32428687810897827, -0.6590026021003723, -0.8605369925498962, 0.16572305560112, -0.9940978288650513, -0.23983058333396912, 1.5752713680267334, -0.1693209707736969, -0.40451645851135254, 0.11536004394292831, -0.09648335725069046, 0.20795781910419464, -0.22321635484695435, 0.5431074500083923, 0.8816593289375305, 0.12562181055545807, -0.11672282218933105, -0.8808890581130981, 0.40289902687072754, 0.1056075468659401, -0.9004241824150085, 0.15739986300468445, 0.5252429842948914, 0.49821850657463074, 0.25412288308143616, 0.5744790434837341, -0.3306419253349304, -0.07515553385019302, -0.24712756276130676, 0.4926556944847107, 0.054975707083940506, -0.18727734684944153, -0.4033842384815216, -0.3204766809940338, 0.18772366642951965, 0.18783524632453918 ]
augtoma/qCammel-70-x
augtoma
"2023-07-27T16:47:02Z"
19,896
22
transformers
[ "transformers", "pytorch", "llama", "text-generation", "llama-2", "qCammel-70", "en", "arxiv:2305.12031", "arxiv:2305.14314", "arxiv:2302.70971", "license:other", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-07-23T00:39:34Z"
--- license: other language: - en pipeline_tag: text-generation inference: false tags: - pytorch - llama - llama-2 - qCammel-70 library_name: transformers --- # qCammel-70 qCammel-70 is a fine-tuned version of Llama-2 70B model, trained on a distilled dataset of 15,000 instructions using QLoRA. This model is optimized for academic medical knowledge and instruction-following capabilities. ## Model Details *Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept their License before downloading this model .* The fine-tuning process applied to qCammel-70 involves a distilled dataset of 15,000 instructions and is trained with QLoRA, **Variations** The original Llama 2 has parameter sizes of 7B, 13B, and 70B. This is the fine-tuned version of the 70B model. **Input** Models input text only. **Output** Models generate text only. **Model Architecture** qCammel-70 is based on the Llama 2 architecture, an auto-regressive language model that uses a decoder only transformer architecture. **License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) Llama 2 is licensed under the LLAMA 2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved **Research Papers** - [Clinical Camel: An Open-Source Expert-Level Medical Language Model with Dialogue-Based Knowledge Encoding](https://arxiv.org/abs/2305.12031) - [QLoRA: Efficient Finetuning of Quantized LLMs](https://arxiv.org/abs/2305.14314) - [LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.70971)
[ -0.028094753623008728, -0.5859308242797852, 0.4732159376144409, 0.1504906713962555, -0.6204804182052612, -0.16867315769195557, 0.017246142029762268, -0.49935463070869446, -0.1672847867012024, 0.7751843333244324, -0.31749480962753296, -0.6663640737533569, -0.6865007877349854, 0.02352655865252018, -0.324597030878067, 1.1100293397903442, -0.10211189091205597, 0.5416713953018188, -0.08234283328056335, -0.2237001210451126, -0.24702957272529602, -0.6516933441162109, -0.6105002164840698, -0.5777528882026672, 0.4730135500431061, 0.2948182225227356, 0.6543593406677246, 0.7651165723800659, 0.5139775276184082, 0.18896564841270447, -0.4093870222568512, 0.08288595080375671, -0.6052362322807312, -0.14651921391487122, 0.12436472624540329, -0.7694121599197388, -0.8897024393081665, -0.3646107316017151, 0.37896817922592163, 0.21550169587135315, -0.3944956660270691, 0.4683702290058136, -0.11698223650455475, 0.7898311614990234, -0.6175166964530945, 0.29234620928764343, -0.5390719175338745, -0.06323941051959991, -0.20047028362751007, -0.11056610941886902, -0.22560907900333405, -0.36550095677375793, 0.15027497708797455, -0.3571566045284271, -0.013862392865121365, 0.03142930567264557, 0.7144014835357666, 0.24523945152759552, -0.6296477913856506, -0.4253287613391876, -0.47089463472366333, 0.8703001737594604, -0.9960016012191772, 0.10787329822778702, 0.7101215124130249, 0.49099719524383545, -0.0519101619720459, -0.9085882902145386, -0.4837445318698883, -0.38476184010505676, 0.16120383143424988, -0.06336134672164917, -0.42404302954673767, 0.25590357184410095, 0.18859225511550903, 0.5210453271865845, -0.5943728089332581, 0.027084723114967346, -0.9278954863548279, -0.09660595655441284, 0.6196600794792175, 0.27356353402137756, 0.1575080007314682, -0.1064869835972786, -0.2918311357498169, -0.06278564780950546, -0.8149768114089966, 0.0034077297896146774, 0.08604012429714203, -0.23405338823795319, -0.43840327858924866, 0.7188167572021484, -0.5575513243675232, 0.7267371416091919, -0.01857290044426918, -0.5464306473731995, 0.25499725341796875, -0.09835433959960938, -0.4115360379219055, 0.22979296743869781, 0.8908986449241638, 0.38473379611968994, 0.18253709375858307, 0.07349158078432083, -0.3835369646549225, -0.1603572517633438, 0.19231490790843964, -0.8439644575119019, -0.39981529116630554, 0.4018268585205078, -0.580978274345398, -0.4160686433315277, -0.27265483140945435, -0.38103175163269043, -0.2564462125301361, -0.3500993549823761, 0.3362318277359009, -0.5124792456626892, -0.02912377193570137, 0.30588409304618835, 0.2106289118528366, 0.3512072265148163, 0.3311324715614319, -0.6601718664169312, 0.20437556505203247, 0.42240193486213684, 0.8432667255401611, -0.0824422612786293, -0.017143264412879944, -0.08466115593910217, 0.12257685512304306, -0.20083194971084595, 0.8074764609336853, -0.38276606798171997, -0.4999694228172302, 0.04273588955402374, 0.11341580003499985, 0.22321902215480804, -0.7389568090438843, 0.5342309474945068, -0.676043689250946, 0.2512339651584625, -0.12565134465694427, -0.3781752288341522, -0.7050747871398926, 0.239958718419075, -0.6475255489349365, 1.0269200801849365, 0.5084760189056396, -0.5945384502410889, -0.1729230433702469, -0.4523641765117645, -0.17817558348178864, -0.0693519189953804, 0.04854650795459747, -0.4771486222743988, 0.047032974660396576, 0.1575101912021637, 0.1887403130531311, -0.6553009152412415, 0.6018646955490112, -0.13227146863937378, -0.5563545227050781, 0.24438777565956116, -0.5591418743133545, 1.14368736743927, 0.24592113494873047, -0.5601832866668701, 0.19698411226272583, -1.0317505598068237, -0.01892317458987236, 0.27569812536239624, -0.6842452883720398, -0.003535560332238674, -0.3053494989871979, -0.15797358751296997, 0.15668721497058868, 0.5161487460136414, -0.22847481071949005, 0.21084874868392944, -0.36525681614875793, 0.4908657968044281, 0.5058956742286682, -0.024853015318512917, 0.2003067582845688, -0.6505222320556641, 0.7853341698646545, 0.1510457992553711, 0.462079793214798, 0.07547236233949661, -0.6147439479827881, -1.123610258102417, -0.3194964826107025, 0.22068741917610168, 0.755850613117218, -0.6690518260002136, 0.3295544683933258, -0.03154628351330757, -0.777427613735199, -1.0682376623153687, 0.23945167660713196, 0.6361957788467407, 0.4413033723831177, 0.6050833463668823, -0.22076104581356049, -0.4254815876483917, -1.084681749343872, 0.225263312458992, -0.18498846888542175, -0.06476326286792755, 0.23794333636760712, 0.3878367245197296, -0.5905329585075378, 0.5720494389533997, -0.41751858592033386, -0.2667478621006012, -0.15928050875663757, -0.04905959963798523, 0.03569936752319336, 0.4370690584182739, 0.774413526058197, -0.479853093624115, -0.28324347734451294, 0.037361979484558105, -0.8122901320457458, -0.21311889588832855, 0.25793325901031494, -0.3818710148334503, 0.217635840177536, 0.2175706923007965, -0.48499274253845215, 0.4398992955684662, 0.9149666428565979, 0.014380578882992268, 0.5396995544433594, -0.22566910088062286, 0.15640456974506378, -1.2183467149734497, 0.04059396684169769, -0.19134408235549927, -0.2848270535469055, -0.5884259343147278, 0.192121684551239, 0.11820370703935623, 0.17349772155284882, -0.7884118556976318, 0.5046330690383911, -0.3804275691509247, 0.2971394658088684, -0.560278058052063, 0.06363879144191742, 0.1661604940891266, 0.6526066064834595, -0.256107896566391, 0.6962928771972656, 0.442516952753067, -0.6729682087898254, 0.42432349920272827, 0.21004021167755127, -0.28837066888809204, 0.2876235544681549, -1.106855869293213, 0.3857133984565735, -0.10824469476938248, 0.4025995135307312, -0.6358336806297302, -0.06062845140695572, 0.612064778804779, -0.11972213536500931, 0.1710488647222519, -0.09215167164802551, -0.3809019923210144, -0.1557372361421585, -0.33114030957221985, 0.8242312073707581, 0.7067753672599792, -0.27074334025382996, 0.506199300289154, 0.32389795780181885, -0.07951182126998901, -0.6668157577514648, -0.6880524754524231, -0.17244656383991241, -0.1490391492843628, -0.2024332731962204, 0.356621652841568, -0.2796652019023895, -0.24019232392311096, -0.167933389544487, 0.11882959306240082, -0.1854337900876999, 0.018198281526565552, 0.4897192716598511, 0.37405169010162354, -0.33408454060554504, 0.09185491502285004, 0.5933865904808044, 0.018912404775619507, 0.10063351690769196, -0.09378285706043243, 0.7820510268211365, -0.16348472237586975, -0.27332818508148193, -0.914537250995636, 0.1546936333179474, 0.6336527466773987, -0.16031771898269653, 0.8107957243919373, 0.5595703125, -0.48357897996902466, 0.3318362236022949, -0.5291240811347961, -0.16033947467803955, -0.47936779260635376, 0.5230703353881836, -0.31396961212158203, -0.8436378836631775, 0.31945475935935974, 0.10523675382137299, 0.15094918012619019, 0.727352499961853, 0.9147942066192627, 0.009461377747356892, 0.9605197906494141, 0.49963682889938354, -0.11523431539535522, 0.3344663679599762, -0.2757532298564911, -0.1264922022819519, -1.0304847955703735, -0.5836466550827026, -0.5688751935958862, -0.17512905597686768, -0.5385730862617493, -0.5701687335968018, 0.2829127311706543, 0.3281008005142212, -0.6065934896469116, 0.14577268064022064, -0.5322050452232361, 0.14651232957839966, 0.6942543983459473, 0.41462650895118713, 0.43294277787208557, 0.048971883952617645, 0.008141442202031612, 0.37806957960128784, -0.7852462530136108, -0.9134251475334167, 1.298249363899231, 0.4854643940925598, 0.7294844388961792, 0.17537157237529755, 0.5286709070205688, 0.33364227414131165, 0.5533469319343567, -0.766485869884491, 0.4739101231098175, -0.13086570799350739, -0.7090590596199036, 0.0901312306523323, -0.33051955699920654, -0.8718894124031067, 0.13718892633914948, -0.20169655978679657, -0.6035275459289551, 0.07376868277788162, 0.3217012286186218, -0.23167520761489868, 0.22595876455307007, -0.47863709926605225, 0.3873520493507385, -0.3125169575214386, 0.1403474509716034, -0.251725435256958, -0.5720500349998474, 0.645142674446106, -0.17067809402942657, -0.015481998212635517, -0.3076294958591461, 0.017775125801563263, 0.7533301711082458, -0.29050013422966003, 1.0341429710388184, 0.030856214463710785, -0.34880030155181885, 0.5939056873321533, 0.10266365110874176, 0.37371522188186646, 0.23731574416160583, -0.2098645120859146, 0.6356258392333984, 0.3696892559528351, -0.6115303635597229, -0.32060670852661133, 0.5197956562042236, -1.2102848291397095, -0.6993923187255859, -0.31481093168258667, -0.567314624786377, 0.11589950323104858, 0.06751658767461777, 0.5723206996917725, 0.47329211235046387, 0.03526027128100395, 0.16939084231853485, 0.604224681854248, -0.4262779653072357, 0.03916671499609947, 0.6451901197433472, -0.11474312096834183, -0.697642982006073, 0.7232303619384766, -0.03239521384239197, 0.2457989603281021, 0.43761590123176575, 0.18341951072216034, -0.23939715325832367, -0.6792332530021667, -0.5820340514183044, 0.4489815831184387, -0.8464459776878357, -0.4247509241104126, -0.880466103553772, -0.4099681079387665, -0.378856360912323, 0.09631484746932983, -0.2472640872001648, -0.4940699338912964, -0.7916800379753113, 0.05770733207464218, 0.5135654807090759, 0.8402428030967712, 0.3332298994064331, 0.6977869272232056, -1.0304659605026245, 0.26903897523880005, 0.38208097219467163, 0.018690092489123344, 0.1497633159160614, -0.9035558104515076, -0.218795046210289, 0.3914676308631897, -0.5383684635162354, -1.065972089767456, 0.3739945888519287, 0.13046973943710327, 0.4497760832309723, 0.523504912853241, 0.17837238311767578, 0.5580408573150635, -0.35021916031837463, 0.8461627960205078, 0.21629007160663605, -0.8738770484924316, 0.5077522993087769, -0.13309355080127716, 0.4688505530357361, 0.4759048819541931, 0.44669729471206665, -0.22869615256786346, -0.37104684114456177, -0.3773776590824127, -0.7768594622612, 0.5426192283630371, 0.14159242808818817, 0.2698334753513336, 0.1171744093298912, 0.7076414227485657, 0.2905738949775696, 0.3971351683139801, -0.8993396759033203, -0.36844173073768616, -0.25615108013153076, -0.6208046674728394, 0.044822368770837784, -0.8074812889099121, -0.44808679819107056, -0.22909943759441376, 0.8085107207298279, -0.14448511600494385, 0.31469178199768066, 0.07839249819517136, -0.3029106855392456, -0.05479993671178818, 0.16834641993045807, 1.1038856506347656, 0.7731147408485413, -0.1812077909708023, 0.08055341243743896, 0.41370707750320435, -0.6935492753982544, 0.1485690027475357, 0.04664726182818413, -0.22865739464759827, -0.10867141932249069, 0.4401048421859741, 0.9661650657653809, 0.03922543302178383, -0.9385382533073425, 0.11186354607343674, -0.11685501784086227, -0.2913073003292084, -0.2590888440608978, 0.395325243473053, 0.14314641058444977, 0.6694819927215576, 0.234252467751503, -0.3100910782814026, 0.27626800537109375, -0.2513588070869446, -0.04755038395524025, 0.1339036524295807, -0.5994765162467957, -0.3901654779911041, 0.7324116826057434, -0.018878543749451637, -0.43760353326797485, 0.5952526330947876, -0.1542067527770996, -0.4009849429130554, 0.6486636996269226, 0.621216893196106, 0.6238921284675598, -0.20757897198200226, 0.23891973495483398, 0.3045554757118225, 0.2213924527168274, -0.15062081813812256, 0.5731824636459351, 0.17469827830791473, -0.36361396312713623, -0.05822949483990669, -0.8003384470939636, -0.43792879581451416, 0.11574222892522812, -0.9043922424316406, 0.1957743614912033, -0.4144003093242645, -0.4247337579727173, -0.3656506836414337, 0.010458942502737045, -0.6743921637535095, 0.3435845673084259, -0.07865460216999054, 0.8553035855293274, -0.37504643201828003, 1.1332062482833862, 0.8046643137931824, -0.22395522892475128, -0.7776000499725342, -0.13049575686454773, -0.05503621697425842, -1.214377760887146, 0.3992261588573456, -0.007122203707695007, 0.0010040173074230552, -0.02801642008125782, -0.6106903553009033, -0.8433653116226196, 1.518239974975586, 0.6804945468902588, -0.9988411068916321, 0.0028909523971378803, 0.10315101593732834, 0.4934762418270111, -0.36680978536605835, 0.2176712602376938, 0.6106215119361877, 0.11122887581586838, -0.0664730966091156, -0.9412652254104614, 0.10421883314847946, -0.16903580725193024, 0.05385848507285118, -0.2800619304180145, -0.9504290819168091, 0.8951044082641602, -0.3850840926170349, 0.13428843021392822, 0.3273462951183319, 0.7471019625663757, 0.8516808748245239, 0.40162038803100586, 0.286733478307724, 0.3140626847743988, 0.8330463767051697, 0.09950259327888489, 0.9858094453811646, -0.7130445837974548, 0.35230186581611633, 0.9397650957107544, -0.032484617084264755, 0.8906654715538025, 0.27608904242515564, -0.2210906445980072, 0.6912296414375305, 0.8001832365989685, 0.10009802877902985, 0.5658071637153625, 0.21107831597328186, -0.27537620067596436, 0.04452531784772873, -0.27440884709358215, -0.6787493228912354, 0.5235067009925842, 0.16453343629837036, -0.6697527766227722, 0.21377305686473846, -0.15911799669265747, 0.2418912798166275, -0.4514540731906891, -0.30882853269577026, 0.658013641834259, 0.4694384038448334, -0.3456859588623047, 1.0602316856384277, 0.267122358083725, 0.48276227712631226, -0.5612314939498901, -0.024151679128408432, -0.3214263916015625, -0.1563519388437271, -0.06503564119338989, -0.3198546767234802, -0.1069231778383255, 0.06410428136587143, -0.1587795466184616, 0.3986002802848816, 0.5141923427581787, -0.4813399910926819, -0.6708738207817078, 0.14325584471225739, 0.4392048716545105, 0.17711865901947021, 0.09851395338773727, -0.814622700214386, 0.1437191218137741, 0.05875594541430473, -0.4883422255516052, 0.4018539786338806, 0.31705328822135925, -0.12478057295084, 0.8838385343551636, 0.48201730847358704, 0.0859040915966034, 0.0518839955329895, 0.0650080144405365, 1.0378841161727905, -0.6184661984443665, -0.1571398377418518, -0.7801336050033569, 0.38965222239494324, 0.2787361741065979, -0.49802836775779724, 0.22279545664787292, 0.29939842224121094, 0.6078744530677795, -0.09083226323127747, 0.6540646553039551, 0.41754859685897827, -0.07531747967004776, -0.738102912902832, 0.7594622373580933, -0.7850978374481201, 0.2223244458436966, 0.199599027633667, -0.9066061973571777, -0.10914399474859238, 0.672856867313385, 0.003792974865064025, 0.24863986670970917, 0.5029562711715698, 0.7711241245269775, 0.2843756377696991, -0.10557004809379578, 0.33304235339164734, 0.18449829518795013, 0.31289413571357727, 0.6714633703231812, 0.5842643976211548, -0.4978048801422119, 0.6424607038497925, -0.4286831021308899, -0.2886803448200226, -0.5154278874397278, -0.573786199092865, -1.1200528144836426, -0.28935006260871887, -0.38795679807662964, -0.4534534215927124, 0.35692641139030457, 0.9852273464202881, 0.6859410405158997, -0.8531699180603027, -0.2147941142320633, 0.2979508340358734, -0.021680675446987152, -0.1798599511384964, -0.1552768498659134, 0.5306383967399597, 0.18319007754325867, -0.7408707141876221, 0.2416691929101944, 0.19523264467716217, 0.45103511214256287, -0.503446102142334, -0.19021961092948914, 0.11502470076084137, 0.2065792977809906, 0.5949192047119141, 0.04783205687999725, -0.9187332987785339, 0.1075592041015625, 0.070962093770504, -0.4875302314758301, 0.08693036437034607, 0.46639373898506165, -0.5209653377532959, 0.2564420700073242, 0.33317357301712036, 0.3188896179199219, 0.38128164410591125, -0.089406318962574, 0.5797211527824402, -0.2433575540781021, 0.34049323201179504, 0.2467518001794815, 0.4055704176425934, 0.210919588804245, -0.4327791631221771, 0.3324406147003174, -0.02110757678747177, -0.6595821380615234, -0.8342460989952087, 0.12070290744304657, -1.1922041177749634, -0.25019699335098267, 1.5150973796844482, -0.2625300884246826, -0.3200491666793823, 0.0017406997503712773, -0.6643161177635193, 0.5718676447868347, -0.38545963168144226, 1.058841347694397, 0.2801925539970398, 0.105704165995121, -0.4061095714569092, -0.7746964693069458, 0.373262494802475, 0.24833060801029205, -0.7368516325950623, -0.48629918694496155, 0.27590835094451904, 0.3768363893032074, -0.20763160288333893, 0.8146901726722717, -0.19943438470363617, 0.31792888045310974, -0.26291754841804504, 0.2196774035692215, -0.13024964928627014, -0.15800175070762634, -0.27564486861228943, 0.18226954340934753, 0.37127238512039185, -0.14347749948501587 ]
cyberagent/calm2-7b-chat
cyberagent
"2023-11-07T08:31:37Z"
19,889
39
transformers
[ "transformers", "pytorch", "llama", "text-generation", "japanese", "causal-lm", "ja", "en", "license:apache-2.0", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-11-01T07:40:30Z"
--- license: apache-2.0 language: - ja - en tags: - japanese - causal-lm inference: false --- # CyberAgentLM2-7B-Chat (CALM2-7B-Chat) ## Model Description CyberAgentLM2-Chat is a fine-tuned model of [CyberAgentLM2](https://huggingface.co/cyberagent/calm2-7b) for dialogue use cases. ## Requirements - transformers >= 4.34.1 - accelerate ## Usage ```python import transformers from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer assert transformers.__version__ >= "4.34.1" model = AutoModelForCausalLM.from_pretrained("cyberagent/calm2-7b-chat", device_map="auto", torch_dtype="auto") tokenizer = AutoTokenizer.from_pretrained("cyberagent/calm2-7b-chat") streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True) prompt = """USER: AIによって私達の暮らしはどのように変わりますか? ASSISTANT: """ token_ids = tokenizer.encode(prompt, return_tensors="pt") output_ids = model.generate( input_ids=token_ids.to(model.device), max_new_tokens=300, do_sample=True, temperature=0.8, streamer=streamer, ) ``` ## Chat Template ``` USER: {user_message1} ASSISTANT: {assistant_message1}<|endoftext|> USER: {user_message2} ASSISTANT: {assistant_message2}<|endoftext|> USER: {user_message3} ASSISTANT: {assistant_message3}<|endoftext|> ``` ## Model Details * **Model size**: 7B * **Context length**: 32768 * **Model type**: Transformer-based Language Model * **Language(s)**: Japanese, English * **Developed by**: [CyberAgent, Inc.](https://www.cyberagent.co.jp/) * **License**: Apache-2.0 ## Author [Ryosuke Ishigami](https://huggingface.co/rishigami) ## Citations ```tex @article{touvron2023llama, title={LLaMA: Open and Efficient Foundation Language Models}, author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and Rodriguez, Aurelien and Joulin, Armand and Grave, Edouard and Lample, Guillaume}, journal={arXiv preprint arXiv:2302.13971}, year={2023} } ```
[ -0.36757978796958923, -0.7886422872543335, 0.08670379221439362, 0.5088582038879395, -0.30823132395744324, 0.09283019602298737, -0.19382691383361816, -0.6351737976074219, 0.09873701632022858, 0.2337103635072708, -0.6767609715461731, -0.2932034134864807, -0.6389451026916504, -0.11876522749662399, -0.39885374903678894, 0.8219940662384033, 0.11571432650089264, -0.0694722831249237, -0.3223951756954193, -0.07891625165939331, -0.49485379457473755, -0.6385384798049927, -0.9443040490150452, -0.48619818687438965, 0.02916664071381092, 0.14982910454273224, 0.6738862991333008, 0.5530065298080444, 0.5008470416069031, 0.43632206320762634, -0.21219533681869507, 0.1546267867088318, -0.6351785659790039, 0.03012106940150261, -0.08192944526672363, -0.5521513819694519, -0.7249491214752197, -0.39340201020240784, 0.3276834487915039, -0.06918054819107056, -0.059742216020822525, 0.2894117534160614, -0.056499432772397995, 0.11235855519771576, -0.482921838760376, 0.3884558379650116, -0.5941339135169983, -0.21046650409698486, -0.2056792825460434, -0.002974893432110548, -0.4802609384059906, 0.13090181350708008, 0.02418185956776142, -0.61338210105896, -0.06037348508834839, 0.018795564770698547, 1.2944220304489136, 0.3926782011985779, -0.36223891377449036, 0.0422673225402832, -0.74992436170578, 0.8680135607719421, -1.106736183166504, 0.5144674777984619, 0.45893433690071106, 0.3568042516708374, -0.16806015372276306, -1.0544763803482056, -0.6925657987594604, -0.001910307095386088, -0.17780572175979614, 0.24926941096782684, -0.6931480765342712, -0.05106591805815697, 0.20481373369693756, 0.08818705379962921, -0.7894666790962219, 0.3464767634868622, -0.5905455946922302, -0.3926026225090027, 0.6788188815116882, 0.4489133656024933, 0.3100813031196594, -0.09892065823078156, -0.41667360067367554, -0.10547816008329391, -0.347475528717041, 0.1242213100194931, 0.1651492714881897, 0.19422213733196259, -0.7903193235397339, 0.3481847941875458, -0.3086119294166565, 0.6537191271781921, 0.016198579221963882, -0.29697462916374207, 0.48891112208366394, -0.4397076666355133, -0.21019205451011658, -0.3513045907020569, 1.1155599355697632, 0.3882412314414978, 0.1966036707162857, 0.18764139711856842, -0.15428058803081512, 0.10840713232755661, 0.2736496329307556, -1.050706148147583, -0.1274004429578781, 0.4716051518917084, -0.5629291534423828, -0.448469340801239, -0.03511349484324455, -0.7375693917274475, 0.02092253789305687, -0.2469385266304016, 0.41047996282577515, -0.3971134126186371, -0.5135389566421509, -0.04943852126598358, 0.1313401311635971, 0.4407663345336914, 0.31916555762290955, -0.6828848123550415, 0.5032687783241272, 0.5187537670135498, 0.8865411281585693, -0.06676056236028671, -0.2745828628540039, -0.030312733724713326, -0.23985616862773895, -0.12015851587057114, 0.8176620006561279, -0.2985773980617523, -0.25108417868614197, -0.16608554124832153, 0.02376987226307392, -0.05649235099554062, -0.34042200446128845, 0.33655232191085815, -0.4137447774410248, 0.5941973328590393, 0.2718806266784668, -0.5158953666687012, -0.2666892409324646, 0.09677845984697342, -0.3162423074245453, 1.1909427642822266, 0.2528332769870758, -0.7204726934432983, -0.15387125313282013, -0.6386094689369202, -0.2749576270580292, 0.12329193949699402, -0.009803298860788345, -0.5479874014854431, -0.0884612426161766, 0.00013851649418938905, 0.36632972955703735, -0.6047038435935974, 0.4018661379814148, -0.5434346795082092, -0.2815619707107544, 0.25598204135894775, -0.40719398856163025, 1.1405339241027832, 0.3778851628303528, -0.45796242356300354, 0.265796035528183, -0.7164916396141052, 0.12354755401611328, 0.36743128299713135, -0.07385299354791641, -0.018090147525072098, -0.015877412632107735, 0.3702336251735687, 0.5725698471069336, 0.4444234371185303, -0.4436635673046112, 0.06785150617361069, -0.4354723393917084, 0.436634361743927, 0.542155921459198, -0.1285799890756607, 0.26283398270606995, -0.3195694088935852, 0.5314801335334778, 0.20518745481967926, 0.4419369101524353, -0.07527662813663483, -0.5967483520507812, -1.0824692249298096, -0.48204827308654785, 0.014806212857365608, 1.0078219175338745, -0.7443398237228394, 0.7161290645599365, -0.26083624362945557, -0.9160910844802856, -0.6087188124656677, -0.04601554200053215, 0.6230777502059937, 0.4055955410003662, 0.4762696921825409, -0.19283072650432587, -0.7003971338272095, -1.019504427909851, 0.05476105213165283, -0.3658350110054016, 0.11159469932317734, 0.32770779728889465, 0.5011534690856934, -0.5116473436355591, 0.9021133780479431, -0.48317012190818787, -0.09816975891590118, -0.3321513533592224, -0.0648098737001419, 0.2337033748626709, 0.6208425760269165, 0.7871320843696594, -0.5333337783813477, -0.5465878844261169, -0.2338763177394867, -0.8146988153457642, -0.2275974303483963, -0.02491062879562378, -0.22846847772598267, 0.3821147084236145, 0.5237220525741577, -0.8111016750335693, 0.6258597373962402, 0.5286218523979187, -0.5697252154350281, 0.520521342754364, -0.03843630850315094, -0.13029982149600983, -1.6435530185699463, 0.20926223695278168, -0.13291464745998383, -0.4240736961364746, -0.981005072593689, 0.03776443004608154, -0.12069277465343475, -0.01754019223153591, -0.7063606977462769, 1.0552669763565063, -0.29158663749694824, 0.2400670200586319, -0.3716717064380646, 0.17285220324993134, -0.14419139921665192, 0.7211678624153137, -0.027096686884760857, 0.6251600384712219, 0.8420704007148743, -0.5279445052146912, 0.5856834650039673, 0.536342978477478, -0.0265031848102808, 0.579535961151123, -1.0532832145690918, 0.2872122824192047, 0.03305932879447937, 0.4045119285583496, -0.9904625415802002, -0.2431972622871399, 0.40527161955833435, -0.7938312292098999, 0.3291199207305908, -0.17308944463729858, -0.5999280214309692, -0.42708125710487366, -0.03235549479722977, 0.3591112494468689, 0.6545629501342773, -0.2766094505786896, 0.6102456450462341, 0.42415452003479004, -0.048381317406892776, -0.500565230846405, -0.7453982830047607, -0.09573991596698761, -0.2842891216278076, -0.7878783941268921, 0.1296931505203247, -0.1792563796043396, -0.11186784505844116, -0.051137205213308334, 0.02288101613521576, -0.24387472867965698, 0.14405813813209534, 0.3220825493335724, 0.5245414972305298, -0.12927645444869995, -0.13473667204380035, -0.07983200997114182, -0.2512257993221283, 0.16313579678535461, -0.19595307111740112, 0.9297284483909607, -0.18404704332351685, -0.24480584263801575, -0.6661701202392578, 0.38144564628601074, 0.6357881426811218, -0.2900440990924835, 0.9999410510063171, 1.0037537813186646, -0.5874118208885193, -0.02159620262682438, -0.5300562977790833, -0.3810320794582367, -0.5295494794845581, 0.6624816060066223, -0.3999359607696533, -1.0631259679794312, 0.9170305132865906, 0.3096868693828583, 0.18501664698123932, 0.6708916425704956, 0.95658278465271, 0.26038801670074463, 1.1000820398330688, 0.4163997173309326, -0.026918968185782433, 0.5900982618331909, -0.239645853638649, 0.30919504165649414, -0.6830203533172607, -0.4646914601325989, -0.6363419890403748, -0.04506377503275871, -0.6892305612564087, -0.37683895230293274, 0.17749668657779694, 0.03528657928109169, -0.4789932370185852, 0.6523277759552002, -0.34481239318847656, 0.09119361639022827, 0.47613784670829773, 0.040905315428972244, -0.035106394439935684, -0.10399088263511658, -0.15245142579078674, 0.11267855018377304, -0.7757313251495361, -0.45386597514152527, 0.8464948534965515, 0.5758011341094971, 0.578744649887085, 0.4695800840854645, 0.6165974140167236, -0.2257525771856308, 0.10740330815315247, -0.6365966200828552, 0.6449025273323059, 0.04340946674346924, -0.8973913192749023, -0.07041984796524048, -0.4657718241214752, -1.0164419412612915, 0.2114558070898056, -0.13583946228027344, -1.260912537574768, 0.19975027441978455, 0.2598235607147217, -0.2473510056734085, 0.11775416135787964, -0.5933132767677307, 0.959237277507782, 0.009011014364659786, -0.3146815896034241, -0.2612869143486023, -0.8435050249099731, 0.5262101888656616, -0.06244856119155884, 0.18445318937301636, -0.15010040998458862, 0.07344718277454376, 0.7966965436935425, -0.5959929823875427, 0.9614821076393127, -0.03449352830648422, 0.15588326752185822, 0.4865131676197052, 0.1969912052154541, 0.5485077500343323, 0.2436370700597763, 0.1648377776145935, 0.3148336410522461, 0.14484354853630066, -0.3979351222515106, -0.6623685359954834, 0.6667426824569702, -1.1424851417541504, -0.5273754596710205, -0.48353371024131775, -0.4716546833515167, -0.04656033590435982, 0.3883548378944397, 0.4567890763282776, 0.6606180667877197, 0.04189162328839302, 0.36488303542137146, 0.43638721108436584, -0.25325196981430054, 0.48801687359809875, 0.6341726183891296, -0.3516397476196289, -0.5301183462142944, 0.8582703471183777, -0.12813717126846313, 0.5036544799804688, 0.37197184562683105, 0.0006594849401153624, -0.4693640172481537, -0.2919478714466095, -0.32030153274536133, 0.25780171155929565, -0.5987565517425537, -0.5340094566345215, -0.8912363052368164, -0.6140754222869873, -0.5491728186607361, 0.07787162065505981, -0.5897201895713806, -0.43165770173072815, -0.6474656462669373, 0.035103924572467804, 0.6428543329238892, 0.3856174647808075, -0.07796300202608109, 0.48712486028671265, -0.7402053475379944, 0.17503193020820618, 0.08843246847391129, 0.34619414806365967, 0.0636354312300682, -0.9985508918762207, -0.27814987301826477, 0.09043439477682114, -0.3478923439979553, -0.9001787304878235, 0.5969292521476746, 0.10914316028356552, 0.7339046001434326, 0.35005491971969604, 0.04841560125350952, 0.779438316822052, -0.16280010342597961, 0.8005505800247192, 0.12327441573143005, -0.9950547814369202, 0.3817986249923706, -0.45890727639198303, 0.5279301404953003, 0.3948925733566284, 0.2562478184700012, -0.5398439764976501, -0.40297895669937134, -1.0272350311279297, -1.0289608240127563, 0.9968675971031189, 0.5725242495536804, 0.32470259070396423, 0.06513424962759018, 0.03992651030421257, -0.4067184627056122, 0.09778688102960587, -0.7725750803947449, -0.6053957343101501, -0.4049857258796692, -0.4383302628993988, 0.07681836187839508, -0.2699008882045746, 0.13613773882389069, -0.21177910268306732, 0.9257858991622925, -0.03306835889816284, 0.8475633859634399, 0.06819884479045868, -0.04230395704507828, 0.05729561299085617, 0.1369493305683136, 0.9474772810935974, 0.4000464081764221, -0.11493126302957535, 0.03580344468355179, 0.45586562156677246, -0.4550343155860901, -0.04859759286046028, 0.18412475287914276, -0.12146759033203125, -0.015393794514238834, 0.48675093054771423, 1.3007447719573975, 0.14812548458576202, -0.5432365536689758, 0.43311044573783875, -0.16217142343521118, -0.1688838005065918, -0.4438718557357788, 0.10820430517196655, 0.28492027521133423, 0.3092045783996582, 0.09771663695573807, 0.05823943018913269, -0.021264126524329185, -0.3629142642021179, 0.16515964269638062, 0.3318216800689697, -0.45196083188056946, -0.4155992865562439, 0.6857967972755432, 0.20446494221687317, -0.5719279050827026, 0.7645825743675232, -0.43734028935432434, -0.6124336123466492, 0.48911750316619873, 0.8924635052680969, 0.9710575342178345, -0.3111504018306732, -0.08438640832901001, 0.5297698378562927, 0.277333527803421, -0.022706983610987663, 0.5629565715789795, 0.2825399339199066, -0.8521353602409363, -0.27911487221717834, -0.623227059841156, -0.061539728194475174, 0.4131779968738556, -0.6230204105377197, 0.49139824509620667, -0.347413569688797, -0.3913912773132324, -0.10829323530197144, -0.06090652570128441, -0.7677481770515442, 0.07529118657112122, 0.014391912147402763, 1.0461851358413696, -0.6672680377960205, 0.8515387773513794, 0.7428478002548218, -0.2574669420719147, -1.0449384450912476, -0.44645926356315613, 0.3770977258682251, -0.7628735303878784, 0.35473528504371643, -0.06434155255556107, 0.0800102949142456, 0.2266474962234497, -0.571691632270813, -1.1674658060073853, 1.127657175064087, 0.27968546748161316, -0.5334988832473755, 0.14293666183948517, 0.04468724876642227, 0.7005301713943481, -0.4197169244289398, 0.7686644792556763, 0.3423459827899933, 0.382284015417099, 0.07646064460277557, -1.3327631950378418, 0.20317447185516357, -0.7542068958282471, 0.062492456287145615, 0.06712471693754196, -1.0966933965682983, 0.7440844178199768, -0.0396646112203598, -0.035897187888622284, 0.1160678043961525, 0.8437780141830444, 0.46135297417640686, 0.08999377489089966, 0.34874027967453003, 0.5469385981559753, 0.3207188546657562, -0.1862623393535614, 0.8684080243110657, -0.5166260600090027, 0.6770945191383362, 1.1806272268295288, 0.010815797373652458, 0.8506086468696594, 0.22350317239761353, -0.10461453348398209, 0.651147723197937, 0.5399811863899231, -0.17339155077934265, 0.2504121959209442, 0.1262327879667282, -0.14369407296180725, -0.26977401971817017, -0.17365965247154236, -0.27180302143096924, 0.7071971893310547, 0.42297351360321045, -0.17698588967323303, -0.15982037782669067, -0.29230472445487976, 0.5524551868438721, -0.2852349579334259, 0.11859655380249023, 0.8884826898574829, 0.18893302977085114, -0.55813068151474, 0.8065211176872253, 0.24886909127235413, 0.586536705493927, -0.6621627807617188, 0.19357286393642426, -0.20309534668922424, 0.30624231696128845, -0.13993698358535767, -0.5046033263206482, 0.4450925290584564, 0.049277905374765396, 0.03993747755885124, 0.07521957159042358, 0.9040183424949646, -0.391287624835968, -0.4798513352870941, 0.41294538974761963, 0.4811088740825653, 0.30031633377075195, 0.2484685480594635, -1.0372276306152344, 0.3342655599117279, -0.020444437861442566, -0.44197139143943787, 0.27346673607826233, 0.15626674890518188, -0.13218224048614502, 0.8484746217727661, 0.6455382704734802, -0.1442432850599289, -0.04120253399014473, -0.04080821946263313, 0.8881509304046631, -0.372250497341156, -0.5868826508522034, -0.9844810962677002, 0.7980625033378601, -0.2245720475912094, -0.6410219669342041, 0.7336161732673645, 0.5916202068328857, 0.8409760594367981, -0.047557488083839417, 0.6789953708648682, -0.2680889368057251, 0.3068419098854065, -0.1993906944990158, 0.8025580644607544, -0.4695747494697571, 0.016212450340390205, -0.20168693363666534, -0.7973543405532837, -0.16552424430847168, 0.7415940761566162, 0.07248767465353012, 0.2969014644622803, 0.5330663323402405, 1.0553267002105713, -0.14937131106853485, -0.27179160714149475, 0.19934383034706116, 0.4537203013896942, 0.468954473733902, 0.6242059469223022, 0.5309047102928162, -0.6531527042388916, 0.4731985926628113, -0.3595801889896393, -0.23343080282211304, -0.3514936864376068, -0.7280504107475281, -1.1905076503753662, -0.6618600487709045, -0.36732038855552673, -0.7008743286132812, -0.07891988754272461, 1.3045265674591064, 0.9583079814910889, -0.9268993139266968, -0.33798858523368835, 0.04962239786982536, -0.10611722618341446, -0.15006466209888458, -0.2713637351989746, 0.09146203845739365, -0.1928030550479889, -0.6913214325904846, 0.28297606110572815, 0.046135831624269485, 0.42064785957336426, -0.3071107566356659, -0.23284348845481873, -0.2155449390411377, 0.34278935194015503, 0.515532374382019, 0.33058008551597595, -0.7953294515609741, -0.14445362985134125, 0.13496384024620056, -0.2665848135948181, -0.07870320230722427, 0.30783453583717346, -0.5000854134559631, 0.20913369953632355, 0.7285459041595459, 0.2395787388086319, 0.6152119040489197, -0.20520101487636566, 0.5462636351585388, -0.7190813422203064, 0.5009858012199402, 0.042679108679294586, 0.3813418447971344, 0.2110164761543274, -0.2640399634838104, 0.26246634125709534, 0.3429579436779022, -0.47591733932495117, -1.000539779663086, 0.21245744824409485, -1.2143783569335938, -0.09217793494462967, 1.2860826253890991, -0.22773616015911102, -0.1240621879696846, -0.20347346365451813, -0.11477754265069962, 0.5101937651634216, -0.5211926698684692, 0.5764373540878296, 0.48610547184944153, 0.10263589024543762, -0.3268868327140808, -0.414289265871048, 0.4921810030937195, 0.12806734442710876, -1.1375254392623901, -0.06474403291940689, 0.22027912735939026, 0.3350869417190552, 0.2718627154827118, 0.657404899597168, -0.13408273458480835, 0.2613528370857239, -0.027870366349816322, 0.20133022964000702, -0.27698948979377747, -0.2695290148258209, -0.35939422249794006, -0.3261186480522156, -0.1875508427619934, 0.11616908013820648 ]
pedramyazdipoor/persian_xlm_roberta_large
pedramyazdipoor
"2022-09-19T16:38:37Z"
19,860
2
transformers
[ "transformers", "pytorch", "xlm-roberta", "question-answering", "arxiv:1911.02116", "arxiv:2202.06219", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-09-18T15:46:12Z"
## Persian XLM-RoBERTA Large For Question Answering Task XLM-RoBERTA is a multilingual language model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116v2) by Conneau et al. . Multilingual [XLM-RoBERTa large for QA on various languages](https://huggingface.co/deepset/xlm-roberta-large-squad2) is fine-tuned on various QA datasets but PQuAD, which is the biggest persian QA dataset so far. This second model is our base model to be fine-tuned. Paper presenting PQuAD dataset: [arXiv:2202.06219](https://arxiv.org/abs/2202.06219) --- ## Introduction This model is fine-tuned on PQuAD Train set and is easily ready to use. Its very long training time encouraged me to publish this model in order to make life easier for those who need. ## Hyperparameters of training I set batch size to 4 due to the limitations of GPU memory in Google Colab. ``` batch_size = 4 n_epochs = 1 base_LM_model = "deepset/xlm-roberta-large-squad2" max_seq_len = 256 learning_rate = 3e-5 evaluation_strategy = "epoch", save_strategy = "epoch", learning_rate = 3e-5, warmup_ratio = 0.1, gradient_accumulation_steps = 8, weight_decay = 0.01, ``` ## Performance Evaluated on the PQuAD Persian test set with the [official PQuAD link](https://huggingface.co/datasets/newsha/PQuAD). I trained for more than 1 epoch as well, but I get worse results. Our XLM-Roberta outperforms [our ParsBert on PQuAD](https://huggingface.co/pedramyazdipoor/parsbert_question_answering_PQuAD), but the former is more than 3 times bigger than the latter one; so comparing these two is not fair. ### Question Answering On Test Set of PQuAD Dataset | Metric | Our XLM-Roberta Large| Our ParsBert | |:----------------:|:--------------------:|:-------------:| | Exact Match | 66.56* | 47.44 | | F1 | 87.31* | 81.96 | ## How to use ## Pytorch ```python from transformers import AutoTokenizer, AutoModelForQuestionAnswering path = 'pedramyazdipoor/persian_xlm_roberta_large' tokenizer = AutoTokenizer.from_pretrained(path) model = AutoModelForQuestionAnswering.from_pretrained(path) ``` ## Inference There are some considerations for inference: 1) Start index of answer must be smaller than end index. 2) The span of answer must be within the context. 3) The selected span must be the most probable choice among N pairs of candidates. ```python def generate_indexes(start_logits, end_logits, N, min_index): output_start = start_logits output_end = end_logits start_indexes = np.arange(len(start_logits)) start_probs = output_start list_start = dict(zip(start_indexes, start_probs.tolist())) end_indexes = np.arange(len(end_logits)) end_probs = output_end list_end = dict(zip(end_indexes, end_probs.tolist())) sorted_start_list = sorted(list_start.items(), key=lambda x: x[1], reverse=True) #Descending sort by probability sorted_end_list = sorted(list_end.items(), key=lambda x: x[1], reverse=True) final_start_idx, final_end_idx = [[] for l in range(2)] start_idx, end_idx, prob = 0, 0, (start_probs.tolist()[0] + end_probs.tolist()[0]) for a in range(0,N): for b in range(0,N): if (sorted_start_list[a][1] + sorted_end_list[b][1]) > prob : if (sorted_start_list[a][0] <= sorted_end_list[b][0]) and (sorted_start_list[a][0] > min_index) : prob = sorted_start_list[a][1] + sorted_end_list[b][1] start_idx = sorted_start_list[a][0] end_idx = sorted_end_list[b][0] final_start_idx.append(start_idx) final_end_idx.append(end_idx) return final_start_idx[0], final_end_idx[0] ``` ```python device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") model.eval().to(device) text = 'سلام من پدرامم 26 سالمه' question = 'چند سالمه؟' encoding = tokenizer(question,text,add_special_tokens = True, return_token_type_ids = True, return_tensors = 'pt', padding = True, return_offsets_mapping = True, truncation = 'only_first', max_length = 32) out = model(encoding['input_ids'].to(device),encoding['attention_mask'].to(device), encoding['token_type_ids'].to(device)) #we had to change some pieces of code to make it compatible with one answer generation at a time #If you have unanswerable questions, use out['start_logits'][0][0:] and out['end_logits'][0][0:] because <s> (the 1st token) is for this situation and must be compared with other tokens. #you can initialize min_index in generate_indexes() to put force on tokens being chosen to be within the context(startindex must be greater than seperator token). answer_start_index, answer_end_index = generate_indexes(out['start_logits'][0][1:], out['end_logits'][0][1:], 5, 0) print(tokenizer.tokenize(text + question)) print(tokenizer.tokenize(text + question)[answer_start_index : (answer_end_index + 1)]) >>> ['▁سلام', '▁من', '▁پدر', 'ام', 'م', '▁26', '▁سالم', 'ه', 'نام', 'م', '▁چیست', '؟'] >>> ['▁26'] ``` ## Acknowledgments We hereby, express our gratitude to the [Newsha Shahbodaghkhan](https://huggingface.co/datasets/newsha/PQuAD/tree/main) for facilitating dataset gathering. ## Contributors - Pedram Yazdipoor : [Linkedin](https://www.linkedin.com/in/pedram-yazdipour/) ## Releases ### Release v0.2 (Sep 18, 2022) This is the second version of our Persian XLM-Roberta-Large. There were some problems using the previous version.
[ -0.40478116273880005, -0.833003580570221, 0.4282315671443939, 0.1689736396074295, -0.13703195750713348, -0.07258280366659164, -0.23069845139980316, -0.2441101223230362, 0.1538923978805542, 0.177088662981987, -0.49670031666755676, -0.5172509551048279, -0.4716409742832184, 0.17007951438426971, -0.3001282811164856, 1.1513714790344238, 0.04311221465468407, 0.028514284640550613, -0.021134477108716965, -0.24054458737373352, -0.10792870074510574, -0.44049298763275146, -0.789907693862915, -0.005697036162018776, 0.29026442766189575, 0.38919398188591003, 0.648026168346405, 0.4084659218788147, 0.42511603236198425, 0.4420166015625, -0.13253018260002136, 0.11512290686368942, -0.3835824131965637, -0.16300202906131744, 0.011943192221224308, -0.6037193536758423, -0.35174787044525146, 0.038886092603206635, 0.6308927536010742, 0.6029648184776306, -0.16856110095977783, 0.516696035861969, -0.1356787532567978, 0.6175410747528076, -0.39399993419647217, -0.08182167261838913, -0.45522740483283997, 0.022367162629961967, -0.13741394877433777, -0.03873473405838013, -0.2530847489833832, -0.4540233612060547, -0.00810361560434103, -0.5399515628814697, 0.18558207154273987, 0.0951709896326065, 1.0234426259994507, 0.22259818017482758, -0.4086145758628845, -0.2330431044101715, -0.5796118974685669, 0.9916062951087952, -0.7428960204124451, 0.10913705080747604, 0.28000566363334656, 0.15048380196094513, -0.14101199805736542, -0.704174280166626, -0.7283347249031067, 0.011427782475948334, -0.052851948887109756, 0.21630120277404785, -0.14168784022331238, -0.3750825524330139, 0.4334605932235718, 0.43558308482170105, -0.9296009540557861, -0.07093232870101929, -0.5083696842193604, 0.00811162032186985, 0.7994310855865479, 0.3009118139743805, 0.26035067439079285, -0.27873265743255615, -0.3711344003677368, -0.3717927038669586, -0.48237118124961853, 0.42752811312675476, 0.28364720940589905, -0.03676849603652954, -0.22271448373794556, 0.690654456615448, -0.33680635690689087, 0.602100670337677, 0.34786489605903625, -0.1832277923822403, 0.5274454951286316, -0.46483197808265686, -0.21098624169826508, -0.16902849078178406, 0.9080005884170532, 0.35733863711357117, -0.006700862664729357, 0.1084846556186676, 0.06245562806725502, -0.32564088702201843, -0.21204613149166107, -0.7991946935653687, -0.2938307225704193, 0.5536923408508301, -0.4227372407913208, -0.13834404945373535, 0.1814255267381668, -0.7358296513557434, -0.16116417944431305, 0.10801757872104645, 0.6747854351997375, -0.49676525592803955, -0.2828722298145294, 0.2108377069234848, -0.2526852786540985, 0.3865165114402771, 0.1773390769958496, -0.6253962516784668, 0.2566967010498047, 0.476529598236084, 0.800678014755249, 0.1043405756354332, -0.2633398473262787, -0.5281457304954529, -0.1292988359928131, -0.33116424083709717, 0.5303987860679626, -0.18108528852462769, -0.1834591031074524, -0.4225432276725769, 0.1500944197177887, -0.287332147359848, -0.4461086094379425, 0.5453513860702515, -0.5418053269386292, 0.5471838116645813, -0.09523607045412064, -0.45998087525367737, -0.39609241485595703, 0.14678210020065308, -0.5196107625961304, 1.1127628087997437, 0.22708085179328918, -1.0257213115692139, 0.11819438636302948, -0.5499400496482849, -0.17936037480831146, -0.0977015569806099, -0.02733873389661312, -0.7577264308929443, -0.19831982254981995, 0.40345466136932373, 0.3384458124637604, -0.47789210081100464, 0.13448762893676758, -0.167306587100029, -0.3536417484283447, 0.39007335901260376, -0.19281598925590515, 1.3765268325805664, 0.28979775309562683, -0.6018262505531311, 0.11662895977497101, -0.717479407787323, 0.3836671710014343, 0.258463591337204, -0.2273276299238205, -0.016521591693162918, -0.15152248740196228, 0.09582403302192688, 0.39758992195129395, 0.43158742785453796, -0.6274556517601013, 0.10819599032402039, -0.5575606822967529, 0.5642589330673218, 0.733140230178833, 0.052072253078222275, 0.22998414933681488, -0.5575073957443237, 0.4988820552825928, 0.24170583486557007, 0.19067443907260895, 0.022129695862531662, -0.5879632830619812, -0.7149925231933594, -0.1197395920753479, 0.3073635995388031, 0.7561753988265991, -0.5573745965957642, 0.5209657549858093, -0.09723598510026932, -0.7003469467163086, -0.2821533977985382, 0.02871527150273323, 0.45330435037612915, 0.4342203140258789, 0.4302881062030792, -0.26283615827560425, -0.6108798384666443, -0.9004510641098022, 0.05975416302680969, -0.20707528293132782, 0.04358886927366257, 0.44322633743286133, 0.7223079800605774, -0.023263391107320786, 0.7565852999687195, -0.7677429914474487, -0.10936276614665985, -0.2991884648799896, 0.09792356938123703, 0.8327725529670715, 0.6701048612594604, 0.5282048583030701, -0.8711615204811096, -0.7560173273086548, -0.0812041312456131, -0.5295575261116028, 0.16066695749759674, -0.16055122017860413, -0.3253171145915985, 0.4334850311279297, 0.3702752888202667, -0.7351590394973755, 0.4603690505027771, 0.24580606818199158, -0.41998133063316345, 0.7005537748336792, -0.3192231059074402, 0.18524828553199768, -1.302162766456604, 0.3350314199924469, -0.17807020246982574, 0.01382897887378931, -0.4373692572116852, 0.04386631026864052, 0.08087316155433655, 0.008777164854109287, -0.4527348279953003, 0.5579336285591125, -0.5333570241928101, 0.03296424821019173, 0.176836296916008, 0.12944114208221436, -0.12999489903450012, 0.7071014642715454, -0.03073134273290634, 0.9081236124038696, 0.6196212768554688, -0.524905800819397, 0.4360468089580536, 0.4640780985355377, -0.40114864706993103, 0.3998505473136902, -0.8587170243263245, 0.08824491500854492, -0.11973102390766144, 0.1653997153043747, -1.1810953617095947, -0.006034258287400007, 0.29467302560806274, -0.7470443844795227, 0.15374620258808136, 0.06894469261169434, -0.43133899569511414, -0.6221868395805359, -0.4767232835292816, 0.5004453063011169, 0.7290549874305725, -0.3365294933319092, 0.3708803951740265, 0.28145086765289307, -0.09548547118902206, -0.6586930751800537, -0.4635492265224457, -0.09447403252124786, -0.28137388825416565, -0.8094117641448975, 0.3456728756427765, -0.33352604508399963, -0.29553571343421936, -0.03901661932468414, -0.02010878548026085, -0.1330944150686264, 0.004634738899767399, 0.19770242273807526, 0.20786333084106445, -0.29715099930763245, 0.006841645110398531, -0.25367259979248047, -0.09531158953905106, 0.019725875928997993, -0.2585108280181885, 0.6229895949363708, -0.1921989619731903, -0.055885039269924164, -0.5003750324249268, 0.4412647485733032, 0.4498762786388397, -0.4668232500553131, 0.8689470887184143, 0.7458679676055908, -0.2556608021259308, 0.08515094965696335, -0.4658423364162445, -0.025837142020463943, -0.46492794156074524, 0.5450390577316284, -0.4578261077404022, -0.5323442816734314, 0.5851002931594849, 0.16103340685367584, 0.07885944098234177, 0.8377270102500916, 0.6327935457229614, 0.09400676190853119, 1.2621958255767822, 0.44894590973854065, -0.1387796252965927, 0.35128697752952576, -0.7723857164382935, 0.18624913692474365, -0.9312906861305237, -0.21616962552070618, -0.6078023910522461, -0.21288271248340607, -0.7264323234558105, -0.49046793580055237, 0.6088843941688538, 0.14322012662887573, -0.5359182357788086, 0.06459987163543701, -0.564527690410614, 0.2784908413887024, 0.7657726407051086, 0.3252747356891632, -0.07543550431728363, -0.09527681767940521, -0.16853390634059906, 0.1424315869808197, -0.7623596787452698, -0.2029513269662857, 1.4374269247055054, 0.06824864447116852, 0.5351752638816833, 0.1399105042219162, 0.7507327795028687, -0.17911002039909363, 0.05466662719845772, -0.35926228761672974, 0.5639442205429077, -0.04895918071269989, -0.715539276599884, -0.4635765850543976, -0.404289186000824, -1.0825341939926147, 0.2183961272239685, -0.18089720606803894, -0.8730911612510681, 0.16842825710773468, -0.19123755395412445, -0.6483742594718933, 0.30225467681884766, -0.618914783000946, 0.9397909641265869, -0.27089861035346985, -0.5938369631767273, -0.20605522394180298, -0.8569623231887817, 0.44084885716438293, -0.010395023971796036, 0.1439809650182724, 0.035072702914476395, 0.02920048125088215, 1.061935305595398, -0.7287400364875793, 0.38778868317604065, -0.07005046308040619, 0.19828267395496368, 0.38167452812194824, -0.2149287611246109, 0.3985411822795868, 0.2910621762275696, -0.2155863642692566, -0.014426876790821552, 0.19980153441429138, -0.6560112833976746, -0.39118674397468567, 0.6952766180038452, -1.065675139427185, -0.830833911895752, -0.7516716122627258, -0.5652074813842773, 0.016792256385087967, 0.25170981884002686, 0.3468754291534424, 0.5572473406791687, 0.0839913934469223, 0.23468178510665894, 0.5994383096694946, -0.47607892751693726, 0.4772719442844391, 0.3233713209629059, -0.15727077424526215, -0.5330592393875122, 0.7202914357185364, 0.15880714356899261, 0.07017923891544342, 0.3501048684120178, 0.13078685104846954, -0.43252721428871155, -0.38345447182655334, -0.5161417126655579, 0.4036794900894165, -0.5364525318145752, -0.16458991169929504, -0.687423050403595, -0.38663250207901, -0.46202513575553894, 0.02546360157430172, -0.10701414942741394, -0.6331098079681396, -0.17824390530586243, 0.14287135004997253, 0.477032333612442, 0.5364874005317688, -0.20953485369682312, 0.009186034090816975, -0.5243247747421265, 0.4521561861038208, 0.310941606760025, 0.028097068890929222, -0.017236564308404922, -0.5834474563598633, -0.3662359118461609, 0.28494521975517273, -0.45758160948753357, -0.974552571773529, 0.5413086414337158, 0.1886482685804367, 0.4012307822704315, 0.3271750807762146, 0.1537245213985443, 0.8801538944244385, -0.2786818742752075, 0.9156741499900818, 0.08109575510025024, -0.7892013192176819, 0.5375692248344421, -0.116788350045681, 0.3792477548122406, 0.2699168026447296, 0.5505879521369934, -0.5419340133666992, -0.4703998267650604, -0.864919900894165, -1.0489706993103027, 0.9334987998008728, 0.2722865343093872, -0.14479200541973114, -0.07841041684150696, 0.31051719188690186, -0.09760713577270508, 0.054173652082681656, -0.6368036866188049, -0.5839384198188782, -0.07078779488801956, -0.16336488723754883, -0.4098416864871979, -0.15284357964992523, -0.11923598498106003, -0.5470683574676514, 0.8989043831825256, 0.08278775215148926, 0.503659188747406, 0.557397186756134, -0.15348897874355316, -0.11936051398515701, 0.08965630829334259, 0.5335718989372253, 0.8166862726211548, -0.3377567529678345, -0.012865250930190086, 0.29206541180610657, -0.44345274567604065, 0.0990600436925888, 0.24432823061943054, -0.19214460253715515, -0.029421113431453705, 0.20872561633586884, 0.5684520602226257, -0.0018766123102977872, -0.6601114869117737, 0.39458441734313965, -0.20789070427417755, -0.14416222274303436, -0.6138112545013428, 0.08298124372959137, 0.15661472082138062, 0.3103330135345459, 0.667914628982544, -0.06854017078876495, 0.05168250575661659, -0.587087869644165, 0.1389370858669281, 0.621854305267334, 0.06180734187364578, -0.14936615526676178, 0.8412350416183472, -0.18006010353565216, -0.2932608425617218, 0.7713623642921448, -0.15998411178588867, -0.7709668874740601, 1.045171856880188, 0.4206330180168152, 0.6828361749649048, -0.08111591637134552, 0.2733023464679718, 0.8005146980285645, 0.1999874860048294, 0.015337634831666946, 0.5614259243011475, -0.02105650119483471, -0.5344720482826233, -0.10823675245046616, -0.6087872385978699, -0.1595335453748703, 0.16412962973117828, -0.6196037530899048, 0.1304389089345932, -0.35488346219062805, -0.09805300831794739, 0.1157248467206955, 0.5664381384849548, -0.6982001066207886, 0.281209796667099, -0.17763833701610565, 0.8664980530738831, -0.7393980622291565, 0.5550819039344788, 0.7766392230987549, -0.5401065945625305, -0.9963951110839844, -0.16820478439331055, -0.24895143508911133, -0.7615678906440735, 0.730855405330658, 0.09995531290769577, 0.3147941827774048, 0.24272151291370392, -0.5966421961784363, -1.1910828351974487, 1.2351264953613281, -0.044697050005197525, -0.26111945509910583, 0.08800269663333893, 0.09446540474891663, 0.5388206839561462, -0.1322309821844101, 0.6696396470069885, 0.3489672839641571, 0.4726867973804474, -0.05157681182026863, -0.8917431235313416, 0.20735733211040497, -0.5625367760658264, -0.05245046690106392, 0.25832387804985046, -0.8550938367843628, 1.3165584802627563, -0.43601536750793457, -0.127822607755661, 0.4777759909629822, 0.5333729982376099, 0.23426131904125214, 0.2745983600616455, 0.44985729455947876, 0.8023363947868347, 0.7432788014411926, -0.06941820681095123, 1.0656007528305054, -0.6036406755447388, 0.5667544007301331, 0.7892665863037109, 0.005484733730554581, 0.8922977447509766, 0.43712297081947327, -0.552720844745636, 0.539823055267334, 0.7784551382064819, -0.039445895701646805, 0.34864017367362976, 0.21689371764659882, -0.10324801504611969, -0.25208011269569397, 0.25765684247016907, -0.5658950209617615, 0.35966235399246216, 0.05705808848142624, -0.27335652709007263, -0.2883347272872925, -0.12618912756443024, 0.029144303873181343, -0.05989096313714981, -0.2437317669391632, 0.6108701825141907, -0.13408486545085907, -0.815392792224884, 0.99161297082901, 0.24313576519489288, 0.5668738484382629, -0.4216899573802948, 0.04438452050089836, -0.2206173837184906, 0.25708287954330444, -0.2819797098636627, -0.7878140807151794, 0.1187969222664833, -0.13862253725528717, -0.22128896415233612, 0.011698843911290169, 0.17775273323059082, -0.468450665473938, -0.786755383014679, -0.10901964455842972, 0.5358105897903442, 0.3089251220226288, 0.04053288325667381, -0.9544004201889038, -0.2279522716999054, 0.09445121884346008, -0.4925870895385742, 0.25094684958457947, 0.4929824471473694, -0.13979727029800415, 0.5797165036201477, 0.7445747256278992, -0.04823698848485947, 0.2189006805419922, -0.4929908215999603, 0.804043173789978, -0.7417205572128296, -0.5148591995239258, -0.7032361626625061, 0.4971601665019989, -0.0531066432595253, -0.6745675206184387, 0.9445912837982178, 0.9358928203582764, 0.7595276832580566, -0.037199556827545166, 0.5087859630584717, -0.43578609824180603, 0.5921353697776794, -0.3894011378288269, 0.6877473592758179, -0.6739869713783264, 0.0023193848319351673, -0.13063380122184753, -0.6582738757133484, -0.13101063668727875, 0.7704941630363464, -0.43955710530281067, 0.12628689408302307, 0.8063660860061646, 0.9530749320983887, 0.12572446465492249, -0.2048145830631256, 0.030643120408058167, 0.5386127233505249, 0.042381297796964645, 1.2003974914550781, 0.445751428604126, -0.7180818319320679, 0.5989342927932739, -0.5131926536560059, -0.23694473505020142, -0.15810401737689972, -0.44987282156944275, -0.7126885652542114, -0.8546721935272217, -0.3429858982563019, -0.44570598006248474, 0.0047178491950035095, 0.91462641954422, 0.526931881904602, -0.7493424415588379, -0.3541148006916046, 0.024926571175456047, 0.35896092653274536, -0.3719744086265564, -0.2680271863937378, 0.7228228449821472, -0.13291826844215393, -0.8425312042236328, -0.1301175206899643, -0.019227351993322372, -0.1753581464290619, 0.04984987527132034, -0.14232897758483887, -0.6133182644844055, -0.023377111181616783, 0.4287148416042328, 0.38395869731903076, -0.5052615404129028, -0.15182769298553467, 0.12904584407806396, -0.10531184077262878, 0.21836252510547638, 0.29791271686553955, -0.8337497711181641, 0.16267909109592438, 0.5013357400894165, 0.3006044626235962, 0.7441428899765015, 0.009117957204580307, 0.2986156642436981, -0.3187830150127411, 0.21710440516471863, 0.06022559478878975, 0.3142662048339844, 0.1089879497885704, -0.4306337833404541, 0.48693403601646423, 0.18915359675884247, -0.6995422840118408, -0.8975393772125244, -0.08063807338476181, -1.0028846263885498, -0.2651505768299103, 1.1148309707641602, -0.2403930276632309, -0.6067239046096802, 0.03343157842755318, -0.4854315221309662, 0.3275409936904907, -0.16261836886405945, 0.8094070553779602, 0.5164229869842529, -0.25360679626464844, -0.14984934031963348, -0.3762245178222656, 0.40008655190467834, 0.6475363373756409, -0.6832495927810669, -0.2500442564487457, 0.3129003345966339, 0.5503399968147278, 0.2680049240589142, 0.7083309292793274, -0.13230213522911072, 0.653658390045166, -0.01580243930220604, -0.0853852778673172, -0.07595162093639374, 0.048027586191892624, -0.3058386445045471, 0.22503821551799774, -0.03367871791124344, -0.24648289382457733 ]
lllyasviel/control_v11f1e_sd15_tile
lllyasviel
"2023-05-04T18:51:13Z"
19,843
49
diffusers
[ "diffusers", "art", "controlnet", "stable-diffusion", "controlnet-v1-1", "image-to-image", "arxiv:2302.05543", "base_model:runwayml/stable-diffusion-v1-5", "license:openrail", "has_space", "diffusers:ControlNetModel", "region:us" ]
image-to-image
"2023-05-04T18:42:24Z"
--- license: openrail base_model: runwayml/stable-diffusion-v1-5 tags: - art - controlnet - stable-diffusion - controlnet-v1-1 - image-to-image duplicated_from: ControlNet-1-1-preview/control_v11f1e_sd15_tile --- # Controlnet - v1.1 - *Tile Version* **Controlnet v1.1** was released in [lllyasviel/ControlNet-v1-1](https://huggingface.co/lllyasviel/ControlNet-v1-1) by [Lvmin Zhang](https://huggingface.co/lllyasviel). This checkpoint is a conversion of [the original checkpoint](https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11f1e_sd15_tile.pth) into `diffusers` format. It can be used in combination with **Stable Diffusion**, such as [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5). For more details, please also have a look at the [🧨 Diffusers docs](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/controlnet). ControlNet is a neural network structure to control diffusion models by adding extra conditions. ![img](./sd.png) This checkpoint corresponds to the ControlNet conditioned on **tiled image**. Conceptually, it is similar to a super-resolution model, but its usage is not limited to that. It is also possible to generate details at the same size as the input (conditione) image. **This model was contributed by [*takuma104*](https://huggingface.co/takuma104)** ## Model Details - **Developed by:** Lvmin Zhang, Maneesh Agrawala - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543). - **Cite as:** @misc{zhang2023adding, title={Adding Conditional Control to Text-to-Image Diffusion Models}, author={Lvmin Zhang and Maneesh Agrawala}, year={2023}, eprint={2302.05543}, archivePrefix={arXiv}, primaryClass={cs.CV} } ## Introduction Controlnet was proposed in [*Adding Conditional Control to Text-to-Image Diffusion Models*](https://arxiv.org/abs/2302.05543) by Lvmin Zhang, Maneesh Agrawala. The abstract reads as follows: *We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications.* ## Example It is recommended to use the checkpoint with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) as the checkpoint has been trained on it. Experimentally, the checkpoint can be used with other diffusion models such as dreamboothed stable diffusion. 1. Let's install `diffusers` and related packages: ``` $ pip install diffusers transformers accelerate ``` 2. Run code: ```python import torch from PIL import Image from diffusers import ControlNetModel, DiffusionPipeline from diffusers.utils import load_image def resize_for_condition_image(input_image: Image, resolution: int): input_image = input_image.convert("RGB") W, H = input_image.size k = float(resolution) / min(H, W) H *= k W *= k H = int(round(H / 64.0)) * 64 W = int(round(W / 64.0)) * 64 img = input_image.resize((W, H), resample=Image.LANCZOS) return img controlnet = ControlNetModel.from_pretrained('lllyasviel/control_v11f1e_sd15_tile', torch_dtype=torch.float16) pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", custom_pipeline="stable_diffusion_controlnet_img2img", controlnet=controlnet, torch_dtype=torch.float16).to('cuda') pipe.enable_xformers_memory_efficient_attention() source_image = load_image('https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png') condition_image = resize_for_condition_image(source_image, 1024) image = pipe(prompt="best quality", negative_prompt="blur, lowres, bad anatomy, bad hands, cropped, worst quality", image=condition_image, controlnet_conditioning_image=condition_image, width=condition_image.size[0], height=condition_image.size[1], strength=1.0, generator=torch.manual_seed(0), num_inference_steps=32, ).images[0] image.save('output.png') ``` ![original](./images/original.png) ![tile_output](./images/output.png) ## Other released checkpoints v1-1 The authors released 14 different checkpoints, each trained with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) on a different type of conditioning: | Model Name | Control Image Overview| Condition Image | Control Image Example | Generated Image Example | |---|---|---|---|---| |[lllyasviel/control_v11p_sd15_canny](https://huggingface.co/lllyasviel/control_v11p_sd15_canny)<br/> | *Trained with canny edge detection* | A monochrome image with white edges on a black background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_ip2p](https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p)<br/> | *Trained with pixel to pixel instruction* | No condition .|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_inpaint](https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint)<br/> | Trained with image inpainting | No condition.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"/></a>| |[lllyasviel/control_v11p_sd15_mlsd](https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd)<br/> | Trained with multi-level line segment detection | An image with annotated line segments.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1p_sd15_depth](https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth)<br/> | Trained with depth estimation | An image with depth information, usually represented as a grayscale image.|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_normalbae](https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae)<br/> | Trained with surface normal estimation | An image with surface normal information, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_seg](https://huggingface.co/lllyasviel/control_v11p_sd15_seg)<br/> | Trained with image segmentation | An image with segmented regions, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_lineart](https://huggingface.co/lllyasviel/control_v11p_sd15_lineart)<br/> | Trained with line art generation | An image with line art, usually black lines on a white background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15s2_lineart_anime](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with anime line art generation | An image with anime-style line art.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_openpose](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with human pose estimation | An image with human poses, usually represented as a set of keypoints or skeletons.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_scribble](https://huggingface.co/lllyasviel/control_v11p_sd15_scribble)<br/> | Trained with scribble-based image generation | An image with scribbles, usually random or user-drawn strokes.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_softedge](https://huggingface.co/lllyasviel/control_v11p_sd15_softedge)<br/> | Trained with soft edge image generation | An image with soft edges, usually to create a more painterly or artistic effect.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_shuffle](https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle)<br/> | Trained with image shuffling | An image with shuffled patches or regions.|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1e_sd15_tile](https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile)<br/> | Trained with image tiling | A blurry image or part of an image .|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"/></a>| ## More information For more information, please also have a look at the [Diffusers ControlNet Blog Post](https://huggingface.co/blog/controlnet) and have a look at the [official docs](https://github.com/lllyasviel/ControlNet-v1-1-nightly).
[ -0.5471890568733215, -0.5323426127433777, 0.1718515157699585, 0.5438572764396667, -0.24907760322093964, -0.2824304401874542, 0.022650444880127907, -0.45832452178001404, 0.5306389331817627, 0.25328508019447327, -0.6665354371070862, -0.42817407846450806, -0.7733593583106995, -0.226704940199852, -0.1304423213005066, 0.7831743359565735, -0.3283572494983673, 0.02689058892428875, 0.10512735694646835, -0.08500852435827255, -0.12061063945293427, -0.07362596690654755, -1.2252355813980103, -0.39601656794548035, 0.5125717520713806, 0.04225699603557587, 0.5367544293403625, 0.5726214051246643, 0.503454864025116, 0.36787429451942444, -0.31381118297576904, 0.10377021133899689, -0.312818706035614, -0.22735460102558136, 0.1595797836780548, -0.1621638685464859, -0.6749491095542908, 0.12703225016593933, 0.7025517225265503, 0.2622278928756714, -0.04721105098724365, -0.2134479433298111, 0.12518231570720673, 0.6448858976364136, -0.5073332786560059, -0.0848853588104248, -0.11841548979282379, 0.2940889000892639, -0.056992337107658386, 0.047156184911727905, -0.16891072690486908, -0.3187151849269867, 0.03177689388394356, -0.7809222936630249, -0.02173568308353424, -0.17918260395526886, 1.3134472370147705, 0.3041684329509735, -0.3732920289039612, -0.10247211903333664, -0.2931440472602844, 0.6507458090782166, -0.7768673896789551, 0.10201508551836014, 0.1425810605287552, 0.285342276096344, -0.25415298342704773, -1.0356909036636353, -0.47440439462661743, -0.17605939507484436, -0.07570923119783401, 0.4756429195404053, -0.321765661239624, 0.08122825622558594, 0.2576771378517151, 0.21544167399406433, -0.36203914880752563, 0.28113046288490295, -0.31411662697792053, -0.38962122797966003, 0.6163749694824219, 0.07355976104736328, 0.5754458904266357, 0.0705241709947586, -0.6015458703041077, -0.07922068238258362, -0.41585350036621094, 0.3174060881137848, 0.15727189183235168, -0.12071947753429413, -0.7047702670097351, 0.38574299216270447, -0.01201764028519392, 0.7042983174324036, 0.4113653600215912, -0.24446231126785278, 0.41467708349227905, -0.23771260678768158, -0.37362736463546753, -0.2898622453212738, 1.02423095703125, 0.5158969759941101, 0.06668806076049805, -0.010150558315217495, -0.1523234248161316, -0.1088714748620987, -0.0014878757065162063, -1.2579760551452637, -0.1832714080810547, 0.23235784471035004, -0.5682388544082642, -0.3012831211090088, -0.17128640413284302, -0.7127747535705566, -0.23576663434505463, -0.04503795504570007, 0.3871542513370514, -0.5516647100448608, -0.42981278896331787, 0.1727861613035202, -0.3920254409313202, 0.4483611583709717, 0.661116361618042, -0.44433602690696716, 0.18738268315792084, 0.12787126004695892, 1.0253212451934814, -0.24470138549804688, -0.1436523050069809, -0.3059433698654175, -0.11705908924341202, -0.35639068484306335, 0.46453243494033813, -0.17999780178070068, -0.1432024985551834, -0.09297944605350494, 0.3438832461833954, -0.10290506482124329, -0.3951139748096466, 0.347374826669693, -0.4157087504863739, 0.18202349543571472, -0.04302837327122688, -0.3659774661064148, -0.13771876692771912, 0.22589491307735443, -0.46910199522972107, 0.7165734171867371, 0.2165374904870987, -0.9760467410087585, 0.3936675190925598, -0.5190800428390503, -0.17221428453922272, -0.23154932260513306, 0.10144519060850143, -0.7549222111701965, -0.4209272563457489, 0.01016642153263092, 0.5677220821380615, -0.0031332706566900015, -0.07622090727090836, -0.40696725249290466, -0.019966626539826393, 0.07346215099096298, -0.13890069723129272, 1.1587133407592773, 0.1894087940454483, -0.6179693937301636, 0.21818457543849945, -0.714737594127655, 0.0274468082934618, 0.11902983486652374, -0.3014202117919922, 0.09559869021177292, -0.2787012755870819, 0.11342908442020416, 0.6523410081863403, 0.3599499762058258, -0.6780377626419067, 0.13673579692840576, -0.1584593504667282, 0.4771784842014313, 0.6391131281852722, 0.18482843041419983, 0.5944758057594299, -0.46895456314086914, 0.5725834965705872, 0.3323405385017395, 0.2611393630504608, 0.03288348764181137, -0.5132514238357544, -0.9375123381614685, -0.6000016331672668, 0.09350533783435822, 0.5233570337295532, -0.7928271889686584, 0.6733008027076721, 0.06920896470546722, -0.6749001145362854, -0.26833754777908325, 0.057877857238054276, 0.4802688658237457, 0.4892239570617676, 0.31781652569770813, -0.521308958530426, -0.2944701910018921, -0.8664115071296692, 0.2580164670944214, 0.25473618507385254, -0.013474847190082073, 0.24649956822395325, 0.6304332613945007, -0.08575449883937836, 0.6440116167068481, -0.25598445534706116, -0.3871305286884308, -0.027898654341697693, -0.06839784979820251, 0.264278382062912, 1.009178638458252, 0.7393971681594849, -0.7653964757919312, -0.608486533164978, -0.017732059583067894, -0.8020870089530945, -0.02204124815762043, -0.2773577868938446, -0.4706530272960663, 0.1869739443063736, 0.6151452660560608, -0.6601085662841797, 0.8187814354896545, 0.5494127869606018, -0.5336346626281738, 0.6183922290802002, -0.45405635237693787, 0.1701296865940094, -0.9951247572898865, 0.20744341611862183, 0.3872523307800293, -0.3634144067764282, -0.5560529828071594, 0.13507233560085297, 0.19625423848628998, 0.08245125412940979, -0.6916794776916504, 0.676862895488739, -0.4946633279323578, 0.19398508965969086, -0.3093658983707428, -0.0806514248251915, 0.05444027855992317, 0.6419438123703003, 0.20206966996192932, 0.526174783706665, 0.9242823719978333, -0.6443248391151428, 0.3601685166358948, 0.3582914173603058, -0.2688661813735962, 0.7953710556030273, -0.8252689242362976, 0.0857100635766983, -0.17446905374526978, 0.5502200126647949, -1.025468349456787, -0.2521870732307434, 0.5559861660003662, -0.4810614287853241, 0.5762953162193298, -0.22254271805286407, -0.24902057647705078, -0.41052186489105225, -0.3118848204612732, 0.2266419380903244, 0.7034861445426941, -0.5014402270317078, 0.33608075976371765, 0.18241451680660248, 0.19585219025611877, -0.5053485631942749, -0.9229828715324402, -0.031711552292108536, -0.3388023376464844, -0.772732675075531, 0.47685521841049194, -0.2024335414171219, 0.08329057693481445, 0.014371688477694988, 0.06016281992197037, -0.26110661029815674, -0.03302839398384094, 0.36905768513679504, 0.18676602840423584, -0.11958528310060501, -0.16718392074108124, 0.12238115072250366, -0.1741645187139511, -0.06607264280319214, -0.36884605884552, 0.46231725811958313, 0.08546747267246246, -0.20767562091350555, -0.9445642828941345, 0.21225589513778687, 0.5849480628967285, -0.01702156290411949, 0.9267615079879761, 0.8149786591529846, -0.39471328258514404, -0.028099413961172104, -0.3543676435947418, -0.12211600691080093, -0.4977553188800812, 0.04507523402571678, -0.19895121455192566, -0.7223694920539856, 0.7428969740867615, 0.02699325978755951, -0.03228538855910301, 0.544611394405365, 0.44229456782341003, -0.20356710255146027, 0.9092312455177307, 0.5112447142601013, -0.07754012942314148, 0.7524802684783936, -0.7562879920005798, -0.1507127285003662, -0.9497686624526978, -0.31979843974113464, -0.3057161569595337, -0.7046613693237305, -0.30576828122138977, -0.4129819869995117, 0.4030461311340332, 0.38560986518859863, -0.7126296162605286, 0.450366735458374, -0.5497404932975769, 0.11013583838939667, 0.3692435622215271, 0.5692906975746155, -0.16528965532779694, -0.10415522754192352, -0.22449421882629395, 0.012464367784559727, -0.6854556202888489, -0.24235394597053528, 0.5581281781196594, 0.532566487789154, 0.5840108394622803, -0.055116742849349976, 0.5448912382125854, 0.07068318873643875, 0.26821938157081604, -0.5643393397331238, 0.5379080176353455, 0.014147685840725899, -0.5271504521369934, -0.19055399298667908, -0.36326169967651367, -1.0728397369384766, 0.07922115921974182, -0.4534066915512085, -0.6400075554847717, 0.38797977566719055, 0.22538506984710693, -0.15025147795677185, 0.5346360206604004, -0.6634013056755066, 0.7379754185676575, 0.044561922550201416, -0.6236312985420227, 0.04312416911125183, -0.8000207543373108, 0.15202097594738007, 0.18930281698703766, -0.16473568975925446, 0.07357215136289597, -0.16550807654857635, 0.8380318880081177, -0.8071439266204834, 0.867797315120697, -0.5508511066436768, -0.0543636679649353, 0.3268982172012329, 0.039760421961545944, 0.5446608662605286, -0.15229147672653198, -0.1481965035200119, 0.05711454525589943, -0.10815674066543579, -0.6142148971557617, -0.4074305593967438, 0.6551748514175415, -0.7158238887786865, -0.2215079367160797, -0.16528986394405365, -0.3289813697338104, 0.24764950573444366, 0.2657492458820343, 0.6673592329025269, 0.41561222076416016, 0.19588501751422882, 0.05684782564640045, 0.6522008180618286, -0.3768349587917328, 0.6398851275444031, 0.05694425106048584, -0.11598925292491913, -0.5212237238883972, 0.6975193619728088, 0.09753263741731644, 0.4183610677719116, 0.16647687554359436, 0.11679647117853165, -0.19467389583587646, -0.5623351335525513, -0.4384266436100006, 0.4263486862182617, -0.5971672534942627, -0.44884729385375977, -0.5435732007026672, -0.4493606984615326, -0.337182879447937, -0.4564644396305084, -0.30834105610847473, -0.29166775941848755, -0.6873465776443481, 0.1448756605386734, 0.5405546426773071, 0.5155904293060303, -0.28041893243789673, 0.5687996745109558, -0.28798559308052063, 0.21887384355068207, 0.30265381932258606, 0.4147306978702545, -0.0038118166849017143, -0.6469374299049377, -0.06674131751060486, 0.14385315775871277, -0.4399283826351166, -0.7215012311935425, 0.5252015590667725, 0.020090756937861443, 0.4433876872062683, 0.5360963940620422, -0.26434412598609924, 0.6768798232078552, -0.3570471704006195, 0.6101410984992981, 0.5974815487861633, -0.7259081602096558, 0.4987628757953644, -0.40929752588272095, 0.27805572748184204, 0.2764553129673004, 0.5459583401679993, -0.4381764233112335, -0.334151953458786, -0.735024631023407, -0.6620172262191772, 0.5842694640159607, 0.23292088508605957, -0.02699226140975952, 0.2672360837459564, 0.6755459904670715, -0.33433088660240173, 0.09349565207958221, -0.773331880569458, -0.4543442130088806, -0.22422535717487335, 0.07656281441450119, 0.025519846007227898, 0.023692144080996513, -0.08707883954048157, -0.4504983127117157, 0.8554369211196899, 0.018261371180415154, 0.5799057483673096, 0.49708566069602966, 0.12451864033937454, -0.19498412311077118, -0.33175066113471985, 0.6029263138771057, 0.5192026495933533, -0.09278291463851929, -0.230535089969635, 0.039731465280056, -0.481065034866333, 0.23857717216014862, -0.0691818967461586, -0.3097926676273346, -0.12955300509929657, 0.29726067185401917, 0.8210915923118591, -0.20589038729667664, -0.12217247486114502, 0.7566966414451599, 0.013846948742866516, -0.5957677960395813, -0.21265468001365662, 0.03944887965917587, 0.14159443974494934, 0.4820021390914917, 0.12699195742607117, 0.4394654333591461, 0.02433554269373417, -0.07407987117767334, 0.2852942943572998, 0.5485777258872986, -0.5875923037528992, -0.1426849514245987, 0.8135555386543274, -0.0051151299849152565, -0.10878674685955048, 0.4052961468696594, -0.42814376950263977, -0.6019976735115051, 0.9711978435516357, 0.5610384345054626, 0.6704192161560059, -0.10787495970726013, 0.3374273478984833, 0.7400962710380554, 0.22625234723091125, 0.04123024642467499, 0.1401291936635971, 0.10341145098209381, -0.7366659045219421, -0.4683796763420105, -0.34625792503356934, -0.04059908911585808, 0.17105156183242798, -0.43909409642219543, 0.37790560722351074, -0.812240719795227, -0.2286616861820221, -0.12995070219039917, 0.1309005320072174, -0.6566491723060608, 0.436668336391449, 0.09179319441318512, 1.2720850706100464, -0.8078309893608093, 0.8166217803955078, 0.5841930508613586, -0.4651038646697998, -0.9172792434692383, -0.11247432976961136, -0.059130240231752396, -0.8139786124229431, 0.6456685066223145, 0.11328551918268204, -0.036815520375967026, 0.09512805193662643, -0.8979470133781433, -0.5720901489257812, 1.3087539672851562, 0.2609621286392212, -0.23092418909072876, 0.1373850703239441, -0.4284553527832031, 0.45101064443588257, -0.42943274974823, 0.470515638589859, 0.36679622530937195, 0.48593685030937195, 0.44020894169807434, -0.7305036783218384, 0.25867295265197754, -0.45701834559440613, 0.17153270542621613, 0.12991487979888916, -1.002172589302063, 0.8466167449951172, -0.057207316160202026, -0.1564127653837204, 0.2725249230861664, 0.7495551109313965, 0.24494178593158722, 0.1244167760014534, 0.6009116768836975, 0.8662495017051697, 0.3915092349052429, -0.0982510894536972, 0.9996334314346313, -0.06836877763271332, 0.3210202753543854, 0.6287193894386292, 0.28702571988105774, 0.5030670762062073, 0.35279011726379395, -0.08348631858825684, 0.5290162563323975, 0.8643923401832581, 0.05251995474100113, 0.5141451954841614, 0.47365522384643555, -0.24237093329429626, -0.16221663355827332, 0.003752246033400297, -0.37666821479797363, 0.038167618215084076, 0.30480214953422546, -0.31660258769989014, -0.3037914037704468, 0.2831966280937195, 0.2837517261505127, -0.1831337809562683, -0.4586784243583679, 0.588100790977478, -0.11982695758342743, -0.47150465846061707, 0.7317526340484619, -0.06992341578006744, 1.0695667266845703, -0.7014546990394592, 0.013903100974857807, -0.3062567710876465, 0.052740469574928284, -0.3962688744068146, -0.8494266867637634, 0.13570038974285126, -0.23058786988258362, 0.21790418028831482, -0.34358054399490356, 0.6522871255874634, -0.3754369616508484, -0.3908325135707855, 0.47412246465682983, 0.08170323818922043, 0.4111572504043579, 0.19124485552310944, -1.0525388717651367, 0.18128688633441925, 0.12004347890615463, -0.4561510980129242, 0.2620750963687897, 0.4062601923942566, 0.191320538520813, 0.7147365808486938, 0.33431971073150635, 0.37792596220970154, 0.31702837347984314, -0.2603662312030792, 1.0562595129013062, -0.2780345678329468, -0.30230921506881714, -0.5662899613380432, 0.7811400294303894, -0.28934454917907715, -0.4369351267814636, 0.575623631477356, 0.3086484670639038, 0.700161337852478, -0.06991390138864517, 0.6569440364837646, -0.3995877504348755, 0.13426727056503296, -0.6413464546203613, 0.8634726405143738, -0.8624674677848816, -0.23789875209331512, -0.29745712876319885, -0.6765033602714539, -0.37545710802078247, 0.8386107683181763, -0.19100581109523773, 0.2370634526014328, 0.5187118649482727, 1.0560600757598877, -0.23799218237400055, -0.5783194303512573, 0.12602287530899048, 0.12369759380817413, 0.33439117670059204, 0.7142202258110046, 0.6412504315376282, -0.6580411195755005, 0.28930166363716125, -0.4975872039794922, -0.4717754125595093, -0.04251918941736221, -0.9552690982818604, -0.7941306829452515, -0.7142627835273743, -0.684594452381134, -0.7569157481193542, -0.2857510447502136, 0.6557957530021667, 1.1539379358291626, -0.6682915091514587, -0.11945857852697372, -0.3399897515773773, 0.04815518856048584, -0.11332590878009796, -0.1931285709142685, 0.4071066081523895, -0.13123999536037445, -0.8524453043937683, -0.005205126479268074, 0.2246158868074417, 0.49651268124580383, -0.08937139809131622, -0.4255153238773346, -0.3624981641769409, -0.25968825817108154, 0.24844782054424286, 0.44606640934944153, -0.3755248486995697, -0.1880035251379013, -0.28322407603263855, -0.286013126373291, 0.18561798334121704, 0.5006737112998962, -0.4707096815109253, 0.28190094232559204, 0.5074470043182373, 0.42896366119384766, 0.8351244330406189, -0.1994137316942215, 0.11141957342624664, -0.5502147674560547, 0.5140936970710754, -0.0006984114297665656, 0.45156142115592957, 0.06584857404232025, -0.3211745619773865, 0.41668206453323364, 0.2651749551296234, -0.7720625996589661, -0.3785710334777832, 0.11741948127746582, -1.3203281164169312, -0.15826141834259033, 0.9730321764945984, -0.3980778455734253, -0.3907967209815979, 0.17215798795223236, -0.47543880343437195, 0.33557477593421936, -0.3140127658843994, 0.2560202181339264, 0.3779498040676117, -0.1060543954372406, -0.3983599841594696, -0.39249950647354126, 0.58339524269104, 0.27367231249809265, -0.7506877183914185, -0.5538454651832581, 0.5482413172721863, 0.3721183240413666, 0.3570450246334076, 0.875140905380249, -0.16986329853534698, 0.18337996304035187, -0.0507667176425457, 0.261496901512146, 0.023188423365354538, -0.1399555206298828, -0.5541754364967346, -0.0639578104019165, -0.2224070280790329, -0.4284883737564087 ]
google/bert_uncased_L-4_H-512_A-8
google
"2021-05-19T17:30:51Z"
19,835
3
transformers
[ "transformers", "pytorch", "jax", "bert", "arxiv:1908.08962", "license:apache-2.0", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- thumbnail: https://huggingface.co/front/thumbnails/google.png license: apache-2.0 --- BERT Miniatures === This is the set of 24 BERT models referenced in [Well-Read Students Learn Better: On the Importance of Pre-training Compact Models](https://arxiv.org/abs/1908.08962) (English only, uncased, trained with WordPiece masking). We have shown that the standard BERT recipe (including model architecture and training objective) is effective on a wide range of model sizes, beyond BERT-Base and BERT-Large. The smaller BERT models are intended for environments with restricted computational resources. They can be fine-tuned in the same manner as the original BERT models. However, they are most effective in the context of knowledge distillation, where the fine-tuning labels are produced by a larger and more accurate teacher. Our goal is to enable research in institutions with fewer computational resources and encourage the community to seek directions of innovation alternative to increasing model capacity. You can download the 24 BERT miniatures either from the [official BERT Github page](https://github.com/google-research/bert/), or via HuggingFace from the links below: | |H=128|H=256|H=512|H=768| |---|:---:|:---:|:---:|:---:| | **L=2** |[**2/128 (BERT-Tiny)**][2_128]|[2/256][2_256]|[2/512][2_512]|[2/768][2_768]| | **L=4** |[4/128][4_128]|[**4/256 (BERT-Mini)**][4_256]|[**4/512 (BERT-Small)**][4_512]|[4/768][4_768]| | **L=6** |[6/128][6_128]|[6/256][6_256]|[6/512][6_512]|[6/768][6_768]| | **L=8** |[8/128][8_128]|[8/256][8_256]|[**8/512 (BERT-Medium)**][8_512]|[8/768][8_768]| | **L=10** |[10/128][10_128]|[10/256][10_256]|[10/512][10_512]|[10/768][10_768]| | **L=12** |[12/128][12_128]|[12/256][12_256]|[12/512][12_512]|[**12/768 (BERT-Base)**][12_768]| Note that the BERT-Base model in this release is included for completeness only; it was re-trained under the same regime as the original model. Here are the corresponding GLUE scores on the test set: |Model|Score|CoLA|SST-2|MRPC|STS-B|QQP|MNLI-m|MNLI-mm|QNLI(v2)|RTE|WNLI|AX| |---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:| |BERT-Tiny|64.2|0.0|83.2|81.1/71.1|74.3/73.6|62.2/83.4|70.2|70.3|81.5|57.2|62.3|21.0| |BERT-Mini|65.8|0.0|85.9|81.1/71.8|75.4/73.3|66.4/86.2|74.8|74.3|84.1|57.9|62.3|26.1| |BERT-Small|71.2|27.8|89.7|83.4/76.2|78.8/77.0|68.1/87.0|77.6|77.0|86.4|61.8|62.3|28.6| |BERT-Medium|73.5|38.0|89.6|86.6/81.6|80.4/78.4|69.6/87.9|80.0|79.1|87.7|62.2|62.3|30.5| For each task, we selected the best fine-tuning hyperparameters from the lists below, and trained for 4 epochs: - batch sizes: 8, 16, 32, 64, 128 - learning rates: 3e-4, 1e-4, 5e-5, 3e-5 If you use these models, please cite the following paper: ``` @article{turc2019, title={Well-Read Students Learn Better: On the Importance of Pre-training Compact Models}, author={Turc, Iulia and Chang, Ming-Wei and Lee, Kenton and Toutanova, Kristina}, journal={arXiv preprint arXiv:1908.08962v2 }, year={2019} } ``` [2_128]: https://huggingface.co/google/bert_uncased_L-2_H-128_A-2 [2_256]: https://huggingface.co/google/bert_uncased_L-2_H-256_A-4 [2_512]: https://huggingface.co/google/bert_uncased_L-2_H-512_A-8 [2_768]: https://huggingface.co/google/bert_uncased_L-2_H-768_A-12 [4_128]: https://huggingface.co/google/bert_uncased_L-4_H-128_A-2 [4_256]: https://huggingface.co/google/bert_uncased_L-4_H-256_A-4 [4_512]: https://huggingface.co/google/bert_uncased_L-4_H-512_A-8 [4_768]: https://huggingface.co/google/bert_uncased_L-4_H-768_A-12 [6_128]: https://huggingface.co/google/bert_uncased_L-6_H-128_A-2 [6_256]: https://huggingface.co/google/bert_uncased_L-6_H-256_A-4 [6_512]: https://huggingface.co/google/bert_uncased_L-6_H-512_A-8 [6_768]: https://huggingface.co/google/bert_uncased_L-6_H-768_A-12 [8_128]: https://huggingface.co/google/bert_uncased_L-8_H-128_A-2 [8_256]: https://huggingface.co/google/bert_uncased_L-8_H-256_A-4 [8_512]: https://huggingface.co/google/bert_uncased_L-8_H-512_A-8 [8_768]: https://huggingface.co/google/bert_uncased_L-8_H-768_A-12 [10_128]: https://huggingface.co/google/bert_uncased_L-10_H-128_A-2 [10_256]: https://huggingface.co/google/bert_uncased_L-10_H-256_A-4 [10_512]: https://huggingface.co/google/bert_uncased_L-10_H-512_A-8 [10_768]: https://huggingface.co/google/bert_uncased_L-10_H-768_A-12 [12_128]: https://huggingface.co/google/bert_uncased_L-12_H-128_A-2 [12_256]: https://huggingface.co/google/bert_uncased_L-12_H-256_A-4 [12_512]: https://huggingface.co/google/bert_uncased_L-12_H-512_A-8 [12_768]: https://huggingface.co/google/bert_uncased_L-12_H-768_A-12
[ -0.7697781920433044, -0.5091532468795776, 0.34401318430900574, 0.18879811465740204, -0.3408224284648895, -0.24346372485160828, -0.3449631333351135, -0.44848960638046265, 0.6289241909980774, -0.08775269240140915, -0.8770354986190796, -0.4407401382923126, -0.7479373216629028, -0.027604790404438972, -0.026633432134985924, 1.2364765405654907, 0.22399437427520752, -0.013071386143565178, -0.19661924242973328, -0.04343308135867119, -0.23332123458385468, -0.31375381350517273, -0.4198431670665741, -0.2628514766693115, 0.6738466024398804, 0.414607435464859, 0.9279095530509949, 0.6251875758171082, 0.561252772808075, 0.3939608931541443, -0.31006136536598206, 0.059681784361600876, -0.4192902147769928, -0.47119274735450745, 0.22166967391967773, -0.37575480341911316, -0.9300612807273865, 0.2695135474205017, 0.6058545112609863, 0.7874333262443542, -0.05350666493177414, 0.37971019744873047, 0.34952011704444885, 0.7230963706970215, -0.5430741906166077, 0.158802330493927, -0.2808977961540222, -0.09826868027448654, -0.11102310568094254, 0.1908872425556183, -0.28388360142707825, -0.7087674140930176, 0.3576377332210541, -0.8750191926956177, 0.2703467011451721, -0.16867795586585999, 1.3954620361328125, 0.11449603736400604, -0.26032283902168274, -0.3451303243637085, -0.295070081949234, 1.0522621870040894, -0.964433491230011, 0.3736932873725891, 0.39559388160705566, 0.016121473163366318, -0.14211057126522064, -0.7699453234672546, -0.5251075029373169, 0.08179369568824768, -0.4162270128726959, 0.40409114956855774, -0.23897138237953186, -0.03478509932756424, 0.3547423183917999, 0.4183462858200073, -0.6273133754730225, 0.08223363012075424, -0.5612739324569702, -0.26962029933929443, 0.8281201720237732, 0.06925038993358612, 0.2901149392127991, -0.06915497034788132, -0.42265644669532776, -0.3890944719314575, -0.3698103129863739, 0.3681298494338989, 0.3694746792316437, 0.1879875361919403, -0.5353376269340515, 0.46161949634552, 0.07691881060600281, 0.8229666352272034, 0.4925382733345032, -0.4592207372188568, 0.6146975755691528, -0.25329113006591797, -0.30667734146118164, -0.21172067523002625, 0.8303981423377991, 0.3861112892627716, 0.14644718170166016, 0.11921849846839905, -0.12015475332736969, -0.10231771320104599, 0.23602205514907837, -1.0353845357894897, -0.5557631254196167, 0.1131897047162056, -0.7274141907691956, -0.19469286501407623, 0.03372004255652428, -0.6992306709289551, 0.08338512480258942, -0.37248465418815613, 0.6190593242645264, -0.7839727997779846, 0.03433464467525482, 0.145524799823761, -0.1782950609922409, 0.27335551381111145, 0.4595634937286377, -0.9538901448249817, 0.2611525356769562, 0.4031057357788086, 0.5225666165351868, 0.14961396157741547, -0.25269368290901184, 0.11815379559993744, -0.03792038932442665, -0.4370771050453186, 0.6514570116996765, -0.38264554738998413, -0.29951125383377075, -0.19550244510173798, 0.21906352043151855, -0.313070684671402, -0.4024319052696228, 0.7259275913238525, -0.03660164400935173, 0.27474090456962585, -0.5155355334281921, -0.8874097466468811, -0.01659419573843479, 0.2610301077365875, -0.6904414296150208, 1.0469101667404175, 0.09175622463226318, -0.8304675817489624, 0.4072512984275818, -0.4237699508666992, -0.11907033622264862, -0.3683314323425293, -0.04897420480847359, -0.8765071034431458, -0.007366766221821308, 0.33622992038726807, 0.7172285318374634, -0.10357839614152908, -0.17040161788463593, -0.5274167060852051, -0.342279851436615, 0.1470993012189865, 0.07114796340465546, 1.0246201753616333, 0.15072466433048248, -0.2906669080257416, 0.09911541640758514, -0.9403458833694458, 0.36866727471351624, 0.4133802056312561, -0.4069962203502655, -0.03542247787117958, -0.42718786001205444, -0.13092130422592163, 0.3254837989807129, 0.657322883605957, -0.5487422347068787, 0.2595192790031433, -0.2215295284986496, 0.41129055619239807, 0.8840762376785278, -0.06858127564191818, 0.40459761023521423, -0.7825903296470642, 0.2872921824455261, 0.012789247557520866, 0.5036635398864746, 0.0018942290917038918, -0.6527484059333801, -0.9254642128944397, -0.623656690120697, 0.4378402829170227, 0.25301820039749146, -0.35533469915390015, 0.9424949288368225, -0.26058870553970337, -0.9464760422706604, -0.6279747486114502, 0.11676925420761108, 0.5728275775909424, 0.34960687160491943, 0.27324044704437256, -0.23120802640914917, -0.46787595748901367, -1.1523605585098267, -0.06172114610671997, -0.15721946954727173, -0.03455151244997978, 0.5434630513191223, 0.6836004257202148, -0.10772441327571869, 0.812962532043457, -0.6981233358383179, -0.28847774863243103, -0.06034823879599571, -0.055991727858781815, 0.4270414710044861, 0.8346275091171265, 1.0443696975708008, -0.8363505005836487, -0.6828124523162842, -0.3608711063861847, -0.6779787540435791, 0.31204262375831604, -0.1102270632982254, -0.21590517461299896, 0.1321803480386734, 0.28050845861434937, -0.9336708188056946, 0.6243236064910889, 0.5604706406593323, -0.4435669481754303, 0.8606935739517212, -0.524824857711792, -0.037756092846393585, -0.9431630373001099, 0.2325579971075058, 0.09188558906316757, -0.08658143877983093, -0.5118984580039978, -0.0384901762008667, 0.22440935671329498, 0.16605815291404724, -0.4202671945095062, 0.5557547807693481, -0.667469322681427, 0.0037863696925342083, 0.1807613968849182, 0.09667859226465225, 0.101036436855793, 0.7297024130821228, -0.0740603655576706, 0.7475472688674927, 0.5097461342811584, -0.3147963583469391, 0.11611008644104004, 0.5164768695831299, -0.4643315076828003, 0.4350035488605499, -0.835238516330719, 0.08061713725328445, 0.027626778930425644, 0.4120260179042816, -1.1758248805999756, -0.41779065132141113, 0.07376668602228165, -0.8150233626365662, 0.5439755916595459, 0.016989074647426605, -0.5315950512886047, -0.7108951210975647, -0.6796277761459351, 0.1701059192419052, 0.8399853706359863, -0.5769923329353333, 0.36051133275032043, 0.2474784106016159, -0.07229048758745193, -0.5159360766410828, -0.5292489528656006, -0.4614597260951996, -0.2617321014404297, -0.7341054677963257, 0.6068645119667053, -0.4672601819038391, 0.2199544906616211, 0.10514495521783829, -0.1991581916809082, -0.2550506591796875, 0.022623853757977486, 0.2665558159351349, 0.49082210659980774, -0.23679058253765106, 0.055392809212207794, -0.06999420374631882, 0.15571506321430206, 0.013993481174111366, 0.06489457935094833, 0.5090194344520569, -0.46531885862350464, 0.048246074467897415, -0.7650940418243408, 0.09078215062618256, 0.5614281296730042, -0.0800953358411789, 1.0474785566329956, 0.9055407047271729, -0.43185141682624817, 0.05741085857152939, -0.6384073495864868, -0.45250967144966125, -0.5449854731559753, -0.12936045229434967, -0.49986326694488525, -0.9402053356170654, 0.7624486684799194, 0.03804395720362663, 0.21840158104896545, 0.6984111070632935, 0.58986896276474, -0.34055832028388977, 1.0667061805725098, 0.6318634152412415, -0.20921297371387482, 0.4909839332103729, -0.6588461995124817, 0.05963032692670822, -0.8807990550994873, -0.3112812638282776, -0.3321380615234375, -0.5713286995887756, -0.6700060963630676, -0.23832081258296967, 0.39071932435035706, 0.36227869987487793, -0.477192223072052, 0.6358669996261597, -0.6904083490371704, 0.3217061758041382, 0.7670632600784302, 0.5900763869285583, -0.3006514608860016, -0.24108059704303741, -0.3163219690322876, -0.24072284996509552, -0.8184281587600708, -0.2945038676261902, 1.1503798961639404, 0.36238256096839905, 0.5953079462051392, 0.12947548925876617, 0.8798275589942932, 0.07619893550872803, -0.05210034176707268, -0.7416688203811646, 0.6400158405303955, -0.11092156171798706, -1.0785126686096191, -0.4538591504096985, -0.3521188795566559, -1.127261757850647, 0.13680370151996613, -0.5492409467697144, -0.9501494765281677, 0.22717365622520447, 0.26479047536849976, -0.6618233323097229, 0.275825172662735, -0.8406098484992981, 0.9393753409385681, -0.04525575041770935, -0.4761393666267395, -0.03618825599551201, -0.9690922498703003, 0.3745495080947876, -0.002924421802163124, 0.09017422050237656, -0.09527987241744995, 0.17210960388183594, 1.012856364250183, -0.7059779167175293, 0.9891597032546997, -0.17358805239200592, 0.06506727635860443, 0.49887147545814514, -0.11728106439113617, 0.6375909447669983, -0.030834369361400604, 0.12192525714635849, -0.1135864108800888, 0.16692346334457397, -0.7962663173675537, -0.42648744583129883, 0.744841456413269, -1.0361627340316772, -0.5164592266082764, -0.4671834409236908, -0.6561629176139832, -0.313012957572937, 0.3699694573879242, 0.5752363801002502, 0.4954172968864441, 0.08004404604434967, 0.5093563795089722, 0.8781445622444153, -0.17598150670528412, 0.47872474789619446, 0.20009225606918335, 0.1601039320230484, -0.32785120606422424, 0.9381014704704285, 0.20430441200733185, 0.11856643110513687, 0.14504052698612213, 0.2820743918418884, -0.3211841285228729, -0.4623781740665436, -0.12137382477521896, 0.7048101425170898, -0.4492771327495575, -0.16605974733829498, -0.5958268642425537, -0.3042023479938507, -0.7179977893829346, -0.4855130612850189, -0.576457142829895, -0.6133092045783997, -0.5947602391242981, -0.05037766695022583, 0.3393062949180603, 0.6226103901863098, -0.2936333119869232, 0.29222607612609863, -0.8696603178977966, 0.2721731960773468, 0.5415753722190857, 0.33275195956230164, -0.13492748141288757, -0.5623737573623657, -0.25499147176742554, -0.0012606056407094002, -0.453706294298172, -0.6968618035316467, 0.42321598529815674, 0.27383995056152344, 0.7084900140762329, 0.5876415967941284, 0.02819954790174961, 1.0756701231002808, -0.5788625478744507, 0.9372065663337708, 0.663595974445343, -0.823759913444519, 0.5826322436332703, -0.4877707362174988, 0.23155172169208527, 0.5189018249511719, 0.6241964101791382, -0.030835988000035286, -0.10637357831001282, -1.164402723312378, -0.7614551782608032, 0.8144616484642029, 0.35047075152397156, 0.02368413843214512, 0.016710054129362106, 0.4011504650115967, -0.04295497015118599, 0.16004882752895355, -0.609093427658081, -0.6701853275299072, -0.1006433367729187, -0.2701196074485779, -0.14961682260036469, -0.43946966528892517, -0.19856314361095428, -0.6852951049804688, 0.8280342221260071, -0.10023032873868942, 0.6753532290458679, 0.12534713745117188, 0.16568432748317719, 0.06103134900331497, -0.08999467641115189, 0.7028171420097351, 0.7991623878479004, -0.6623218655586243, -0.35168418288230896, 0.12891946732997894, -0.6339622735977173, -0.17688456177711487, 0.264392614364624, -0.00942913256585598, 0.06284046173095703, 0.5350558161735535, 0.7707613110542297, 0.42091476917266846, -0.5257256031036377, 0.7562982439994812, -0.010219985619187355, -0.4478250741958618, -0.5224445462226868, 0.03110821545124054, 0.13463842868804932, 0.4198724925518036, 0.11345832049846649, -0.004951607435941696, 0.15055468678474426, -0.6612477898597717, 0.3210737407207489, 0.4534803628921509, -0.5418699979782104, -0.4615057110786438, 0.6519944071769714, 0.0768761932849884, 0.16551175713539124, 0.48352524638175964, -0.16698028147220612, -0.5665022134780884, 0.7201210260391235, 0.5057118535041809, 0.5122047662734985, -0.28916993737220764, 0.2025853842496872, 0.9104715585708618, 0.2438572347164154, -0.01428185310214758, 0.3594282567501068, 0.06035734713077545, -0.5926898121833801, 0.010847873985767365, -0.6804038882255554, -0.2298690229654312, 0.3162086606025696, -1.0703613758087158, 0.16965657472610474, -0.6539941430091858, -0.5030278563499451, 0.31074291467666626, 0.455496221780777, -0.9146892428398132, 0.5947589874267578, 0.268401175737381, 1.0651464462280273, -0.7314679026603699, 1.0682138204574585, 0.9191661477088928, -0.35416388511657715, -1.0911054611206055, -0.15253323316574097, 0.12095151096582413, -0.9062339663505554, 0.5932012796401978, 0.026445552706718445, 0.3986293375492096, -0.02593763917684555, -0.6371393799781799, -1.092323660850525, 1.3995373249053955, 0.2853735089302063, -0.5697587728500366, -0.2713835537433624, -0.13517175614833832, 0.47530561685562134, -0.14991861581802368, 0.37568846344947815, 0.596319317817688, 0.40651780366897583, 0.16481547057628632, -1.078084945678711, 0.1335548311471939, -0.4536338150501251, 0.03633880615234375, 0.23986504971981049, -1.2047910690307617, 1.3068628311157227, -0.3506123423576355, 0.053007133305072784, 0.193793386220932, 0.6246463656425476, 0.6347135305404663, 0.06532970815896988, 0.567281186580658, 0.9335079789161682, 0.6576080918312073, -0.283325731754303, 1.0887333154678345, -0.2658059000968933, 0.67401123046875, 1.0078518390655518, 0.3630715012550354, 0.7136314511299133, 0.37984204292297363, -0.4407676160335541, 0.4677022695541382, 0.8230388164520264, -0.14837221801280975, 0.6028281450271606, 0.2127828449010849, 0.02671523578464985, -0.5370093584060669, 0.156723752617836, -0.5437248945236206, 0.20918595790863037, 0.5187709331512451, -0.2889440655708313, -0.1320330649614334, -0.21431352198123932, 0.3252827525138855, -0.09005890786647797, -0.25054633617401123, 0.6475417613983154, 0.0000469459846499376, -0.37402787804603577, 0.791662335395813, -0.3089040219783783, 0.7460336089134216, -0.7364146709442139, 0.18759362399578094, -0.1405409574508667, 0.423737496137619, -0.1593865156173706, -0.9050692915916443, 0.03952394053339958, -0.09030020982027054, -0.18481214344501495, -0.0664077028632164, 0.6758240461349487, -0.22439458966255188, -0.6617053151130676, 0.28534290194511414, 0.33880752325057983, 0.22466401755809784, 0.19893525540828705, -1.1870005130767822, 0.19256959855556488, 0.06855496019124985, -0.6329571008682251, 0.44672319293022156, 0.4564618170261383, 0.23621921241283417, 0.6128001809120178, 0.6117689609527588, -0.167636439204216, 0.404947429895401, -0.30035167932510376, 1.164957880973816, -0.47918397188186646, -0.4225281774997711, -0.5962805151939392, 0.6423810124397278, -0.1622304618358612, -0.5065996050834656, 1.0148125886917114, 0.6379625797271729, 0.9393072128295898, -0.26603662967681885, 0.6082547903060913, -0.2569523751735687, 0.7160230875015259, -0.4104382395744324, 0.8223603963851929, -0.9838980436325073, -0.19512398540973663, -0.4112042188644409, -0.8213514089584351, -0.23093529045581818, 0.8077048659324646, -0.28817078471183777, 0.16866178810596466, 0.4430917501449585, 0.46764880418777466, 0.0019065095111727715, -0.19004973769187927, 0.1370210200548172, 0.2590388059616089, 0.22074973583221436, 0.9242613911628723, 0.4458042085170746, -0.7551154494285583, 0.4770895838737488, -0.8420135974884033, -0.22424161434173584, -0.4661310017108917, -0.5876172780990601, -1.2175726890563965, -0.7391831874847412, -0.42972469329833984, -0.2777763605117798, -0.08906827121973038, 1.0337101221084595, 1.0242363214492798, -0.7908274531364441, -0.11892973631620407, 0.2660982608795166, -0.17908808588981628, -0.18557442724704742, -0.1979401856660843, 0.6914989948272705, -0.1835584193468094, -0.9568713307380676, 0.034870315343141556, -0.23314516246318817, 0.42278164625167847, 0.24215485155582428, -0.200813427567482, -0.39133790135383606, 0.24664615094661713, 0.6062119007110596, 0.25807270407676697, -0.6662593483924866, -0.45833620429039, 0.02015072852373123, -0.17156285047531128, -0.021144945174455643, 0.20739281177520752, -0.559431254863739, 0.2454194575548172, 0.45395195484161377, 0.34525826573371887, 0.7250270843505859, 0.04638519883155823, 0.03756793960928917, -0.8181014657020569, 0.2836077809333801, 0.23933418095111847, 0.5257237553596497, 0.08705941587686539, -0.20864754915237427, 0.69753497838974, 0.28857091069221497, -0.7300916910171509, -1.035574197769165, -0.13939930498600006, -1.442996621131897, -0.2970767021179199, 0.8321974277496338, -0.46877530217170715, -0.5194071531295776, 0.5331423878669739, -0.1492050290107727, 0.2720738351345062, -0.4525987505912781, 0.6924436688423157, 0.7218514680862427, -0.23442229628562927, -0.1534985899925232, -0.4600212275981903, 0.6392109394073486, 0.4532071650028229, -0.707482635974884, -0.3531135320663452, 0.41519129276275635, 0.39327773451805115, 0.5196123719215393, 0.49387508630752563, -0.22090207040309906, 0.26153236627578735, 0.08984006941318512, 0.08148951083421707, 0.15984418988227844, -0.3723398447036743, -0.0035199779085814953, -0.17451085150241852, -0.27194419503211975, -0.48429617285728455 ]
carlosdanielhernandezmena/wav2vec2-large-xlsr-53-icelandic-ep10-1000h
carlosdanielhernandezmena
"2023-10-23T20:51:50Z"
19,804
0
transformers
[ "transformers", "pytorch", "wav2vec2", "automatic-speech-recognition", "audio", "icelandic", "xlrs-53-icelandic", "iceland", "reykjavik", "samromur", "is", "dataset:language-and-voice-lab/samromur_asr", "dataset:language-and-voice-lab/samromur_children", "dataset:language-and-voice-lab/malromur_asr", "dataset:language-and-voice-lab/althingi_asr", "license:cc-by-4.0", "model-index", "endpoints_compatible", "has_space", "region:us" ]
automatic-speech-recognition
"2022-12-08T01:25:56Z"
--- language: is datasets: - language-and-voice-lab/samromur_asr - language-and-voice-lab/samromur_children - language-and-voice-lab/malromur_asr - language-and-voice-lab/althingi_asr tags: - audio - automatic-speech-recognition - icelandic - xlrs-53-icelandic - iceland - reykjavik - samromur license: cc-by-4.0 model-index: - name: wav2vec2-large-xlsr-53-icelandic-ep10-1000h results: - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Samrómur (Test) type: language-and-voice-lab/samromur_asr split: test args: language: is metrics: - name: WER type: wer value: 9.847 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Samrómur (Dev) type: language-and-voice-lab/samromur_asr split: validation args: language: is metrics: - name: WER type: wer value: 8.736 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Samrómur Children (Test) type: language-and-voice-lab/samromur_children split: test args: language: is metrics: - name: WER type: wer value: 9.391 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Samrómur Children (Dev) type: language-and-voice-lab/samromur_children split: validation args: language: is metrics: - name: WER type: wer value: 6.055 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Malrómur (Test) type: language-and-voice-lab/malromur_asr split: test args: language: is metrics: - name: WER type: wer value: 5.643 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Malrómur (Dev) type: language-and-voice-lab/malromur_asr split: validation args: language: is metrics: - name: WER type: wer value: 6.156 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Althingi (Test) type: language-and-voice-lab/althingi_asr split: test args: language: is metrics: - name: WER type: wer value: 11.437 - task: name: Automatic Speech Recognition type: automatic-speech-recognition dataset: name: Althingi (Dev) type: language-and-voice-lab/althingi_asr split: validation args: language: is metrics: - name: WER type: wer value: 11.093 --- # wav2vec2-large-xlsr-53-icelandic-ep10-1000h The "wav2vec2-large-xlsr-53-icelandic-ep10-1000h" is an acoustic model suitable for Automatic Speech Recognition in Icelandic. It is the result of fine-tuning the model "facebook/wav2vec2-large-xlsr-53" for 10 epochs with around 1000 hours of Icelandic data developed by the [Language and Voice Laboratory](https://huggingface.co/language-and-voice-lab). Most of the data is available at public repositories such as [LDC](https://www.ldc.upenn.edu/), [OpenSLR](https://openslr.org/) or [Clarin.is](https://clarin.is/) The specific list of corpora used to fine-tune the model is: - [Samrómur 21.05 (114h34m)](http://www.openslr.org/112/) - [Samrómur Children (127h25m)](https://catalog.ldc.upenn.edu/LDC2022S11) - [Malrómur (119hh03m)](https://clarin.is/en/resources/malromur/) - [Althingi Parliamentary Speech (514h29m)](https://catalog.ldc.upenn.edu/LDC2021S01) - L2-Speakers Data (125h55m) **Unpublished material** The fine-tuning process was performed during December (2022) in the servers of the Language and Voice Laboratory (https://lvl.ru.is/) at Reykjavík University (Iceland) by Carlos Daniel Hernández Mena. # Evaluation ```python import torch from transformers import Wav2Vec2Processor from transformers import Wav2Vec2ForCTC #Load the processor and model. MODEL_NAME="carlosdanielhernandezmena/wav2vec2-large-xlsr-53-icelandic-ep10-1000h" processor = Wav2Vec2Processor.from_pretrained(MODEL_NAME) model = Wav2Vec2ForCTC.from_pretrained(MODEL_NAME) #Load the dataset from datasets import load_dataset, load_metric, Audio ds=load_dataset("language-and-voice-lab/samromur_children", split="test") #Downsample to 16kHz ds = ds.cast_column("audio", Audio(sampling_rate=16_000)) #Process the dataset def prepare_dataset(batch): audio = batch["audio"] #Batched output is "un-batched" to ensure mapping is correct batch["input_values"] = processor(audio["array"], sampling_rate=audio["sampling_rate"]).input_values[0] with processor.as_target_processor(): batch["labels"] = processor(batch["normalized_text"]).input_ids return batch ds = ds.map(prepare_dataset, remove_columns=ds.column_names,num_proc=1) #Define the evaluation metric import numpy as np wer_metric = load_metric("wer") def compute_metrics(pred): pred_logits = pred.predictions pred_ids = np.argmax(pred_logits, axis=-1) pred.label_ids[pred.label_ids == -100] = processor.tokenizer.pad_token_id pred_str = processor.batch_decode(pred_ids) #We do not want to group tokens when computing the metrics label_str = processor.batch_decode(pred.label_ids, group_tokens=False) wer = wer_metric.compute(predictions=pred_str, references=label_str) return {"wer": wer} #Do the evaluation (with batch_size=1) model = model.to(torch.device("cuda")) def map_to_result(batch): with torch.no_grad(): input_values = torch.tensor(batch["input_values"], device="cuda").unsqueeze(0) logits = model(input_values).logits pred_ids = torch.argmax(logits, dim=-1) batch["pred_str"] = processor.batch_decode(pred_ids)[0] batch["sentence"] = processor.decode(batch["labels"], group_tokens=False) return batch results = ds.map(map_to_result,remove_columns=ds.column_names) #Compute the overall WER now. print("Test WER: {:.3f}".format(wer_metric.compute(predictions=results["pred_str"], references=results["sentence"]))) ``` **Test Result**: 0.094 # BibTeX entry and citation info *When publishing results based on these models please refer to:* ```bibtex @misc{mena2022xlrs53icelandic, title={Acoustic Model in Icelandic: wav2vec2-large-xlsr-53-icelandic-ep10-1000h.}, author={Hernandez Mena, Carlos Daniel}, url={https://huggingface.co/carlosdanielhernandezmena/wav2vec2-large-xlsr-53-icelandic-ep10-1000h}, year={2022} } ``` # Acknowledgements Special thanks to Jón Guðnason, head of the Language and Voice Lab for providing computational power to make this model possible. We also want to thank to the "Language Technology Programme for Icelandic 2019-2023" which is managed and coordinated by Almannarómur, and it is funded by the Icelandic Ministry of Education, Science and Culture.
[ -0.4015108048915863, -0.6626603007316589, 0.1900652050971985, 0.1420566886663437, -0.20296606421470642, -0.20351849496364594, -0.5185573101043701, -0.5338841080665588, -0.04287218675017357, 0.24632138013839722, -0.47351664304733276, -0.4873947501182556, -0.6417849063873291, -0.0293338131159544, -0.16963329911231995, 0.8999121189117432, 0.08169682323932648, 0.24916638433933258, 0.010082636028528214, -0.204289972782135, -0.3806280791759491, -0.19245968759059906, -0.8514949083328247, -0.3192792236804962, 0.24992790818214417, 0.19823859632015228, 0.24292409420013428, 0.5854777097702026, 0.3928944170475006, 0.382131963968277, -0.3270832598209381, 0.04315119981765747, -0.5139986872673035, -0.041927143931388855, 0.08649682253599167, -0.38723042607307434, -0.4440038502216339, 0.11085977405309677, 0.8710492849349976, 0.5454218983650208, -0.20042042434215546, 0.6040962338447571, 0.12989264726638794, 0.4375022351741791, -0.21035128831863403, 0.4116136431694031, -0.5967921018600464, -0.1946858912706375, -0.11697370558977127, -0.05345207452774048, -0.35878676176071167, -0.15863190591335297, 0.10686864703893661, -0.5180728435516357, 0.21817448735237122, 0.09972066432237625, 0.9134929776191711, 0.2661185562610626, -0.17555736005306244, -0.3358900845050812, -0.6935023069381714, 1.0504992008209229, -0.8664476275444031, 0.6684065461158752, 0.612309455871582, 0.05090699344873428, -0.199866384267807, -0.8040594458580017, -0.6311596035957336, -0.18309460580348969, 0.061789851635694504, 0.23834320902824402, -0.4576285481452942, -0.08625051379203796, 0.11229339241981506, 0.2155093252658844, -0.5478913187980652, 0.21828706562519073, -1.024700403213501, -0.2896985411643982, 0.7290201783180237, 0.09627900272607803, 0.002947712317109108, -0.1972547173500061, -0.1568133383989334, -0.40873315930366516, -0.3311501145362854, 0.3408866226673126, 0.4891931414604187, 0.4419378936290741, -0.4732837677001953, 0.6601623892784119, -0.043668169528245926, 0.7283662557601929, 0.09946645051240921, -0.3959072232246399, 0.7546154260635376, -0.33899277448654175, -0.21582108736038208, 0.29921361804008484, 1.0034815073013306, 0.19950410723686218, -0.06720317155122757, 0.09619501978158951, -0.14013764262199402, 0.25683584809303284, -0.19270017743110657, -0.7003745436668396, -0.17129696905612946, 0.41056180000305176, -0.34439805150032043, -0.1924019306898117, -0.16676661372184753, -0.49871253967285156, 0.038075655698776245, -0.3711402118206024, 0.6364057064056396, -0.3975570797920227, -0.3773892819881439, 0.019012922421097755, -0.18002814054489136, 0.11685533821582794, -0.2229660451412201, -0.727767288684845, 0.40806126594543457, 0.5791710019111633, 0.781154990196228, 0.022513791918754578, -0.30304819345474243, -0.47827208042144775, -0.20707792043685913, -0.31651055812835693, 0.5985823273658752, -0.27268022298812866, -0.5353984832763672, -0.45359060168266296, 0.01946444995701313, -0.07127203792333603, -0.5516656041145325, 0.8204200863838196, -0.236124187707901, 0.458382785320282, -0.0917166993021965, -0.5515105128288269, -0.1297353357076645, -0.18400321900844574, -0.5429211258888245, 1.3502627611160278, 0.16207560896873474, -0.8044115304946899, 0.15993711352348328, -0.5943641066551208, -0.3664775788784027, -0.14637444913387299, -0.09557279199361801, -0.5745581388473511, 0.023746971040964127, 0.13023144006729126, 0.4550548195838928, -0.5391708612442017, 0.18171149492263794, -0.11610952764749527, -0.5416045188903809, 0.16273950040340424, -0.32636964321136475, 1.0883499383926392, 0.4402730464935303, -0.4928835332393646, 0.03992641717195511, -0.9328820109367371, 0.15242260694503784, -0.02057558111846447, -0.5160698890686035, -0.09027136117219925, -0.15998733043670654, 0.19168967008590698, 0.169893279671669, 0.07255831360816956, -0.6538692712783813, -0.24543794989585876, -0.5185326337814331, 0.551064133644104, 0.6672194600105286, -0.22903959453105927, 0.23565524816513062, -0.275638610124588, 0.26740533113479614, -0.07184166461229324, -0.12272296845912933, 0.09334311634302139, -0.6489700078964233, -0.5763211250305176, -0.5801056623458862, 0.4865381419658661, 0.517834484577179, -0.21612641215324402, 0.6003282070159912, -0.28186988830566406, -0.7919981479644775, -1.054455041885376, -0.19727377593517303, 0.5188193321228027, 0.8050968050956726, 0.40904611349105835, -0.1543695032596588, -0.8916241526603699, -0.8343597650527954, -0.0472569614648819, -0.3293400704860687, -0.18049156665802002, 0.47103151679039, 0.36883172392845154, -0.27576500177383423, 0.6523744463920593, -0.4122142493724823, -0.41850873827934265, -0.07478322833776474, 0.2681885063648224, 0.5337351560592651, 0.6649206876754761, 0.2578120231628418, -0.6732425689697266, -0.4219961166381836, -0.09279071539640427, -0.5278110504150391, -0.1294759213924408, 0.2352752536535263, 0.048759374767541885, 0.4234253466129303, 0.36328619718551636, -0.49990856647491455, 0.2519843578338623, 0.6377792954444885, -0.4853922724723816, 0.6698180437088013, -0.21224644780158997, 0.3069784939289093, -1.1027697324752808, 0.15750357508659363, 0.003559232223778963, -0.09291700273752213, -0.5557303428649902, -0.3002924919128418, -0.2320120632648468, 0.056263070553541183, -0.5177716016769409, 0.6613979339599609, -0.4406319260597229, -0.16704821586608887, 0.013246634975075722, 0.18749161064624786, -0.19763696193695068, 0.5205507278442383, 0.00741633540019393, 0.7589260935783386, 0.6548941135406494, -0.6272428035736084, 0.43573853373527527, 0.31044700741767883, -0.5674958825111389, 0.5001879334449768, -0.804940938949585, 0.2841952443122864, -0.006438286043703556, 0.2082640528678894, -1.1320589780807495, -0.06848542392253876, 0.08872040361166, -0.9029054045677185, 0.3973759412765503, -0.1698349267244339, -0.37380778789520264, -0.4496990442276001, -0.17690116167068481, 0.4810526669025421, 0.8419080972671509, -0.43627122044563293, 0.47725412249565125, 0.6070399880409241, -0.22299328446388245, -0.6299969553947449, -0.8057110905647278, -0.20859797298908234, -0.234821617603302, -0.7462092041969299, 0.3137933015823364, -0.14512406289577484, -0.20921608805656433, 0.18521402776241302, -0.07764674723148346, 0.09102499485015869, -0.1531871259212494, 0.3152518570423126, 0.39464253187179565, -0.24481113255023956, -0.08948911726474762, -0.13800585269927979, -0.15400955080986023, 0.07573414593935013, -0.40456846356391907, 0.6593501567840576, -0.29734766483306885, 0.11964131146669388, -0.8311307430267334, 0.12478777766227722, 0.4585387706756592, -0.24590273201465607, 0.5984726548194885, 0.9935991168022156, -0.49762162566185, 0.16141146421432495, -0.6345216631889343, -0.07557369023561478, -0.4745926856994629, 0.78263920545578, -0.40751639008522034, -0.7595273852348328, 0.6158130168914795, 0.206345796585083, 0.005526924040168524, 0.8606743812561035, 0.759381890296936, -0.19393238425254822, 1.0102267265319824, 0.2716747224330902, 0.04790768027305603, 0.34197142720222473, -0.726686954498291, 0.046936970204114914, -1.1270638704299927, -0.5135048031806946, -0.7221640944480896, -0.24721333384513855, -0.7293146848678589, -0.4535948932170868, 0.3558668792247772, -0.01771656423807144, -0.2966715693473816, 0.3520268499851227, -0.5933718085289001, 0.1876811385154724, 0.5624780058860779, -0.08827269822359085, -0.12902402877807617, 0.16224199533462524, -0.2682052552700043, -0.10699822008609772, -0.4506191909313202, -0.296239972114563, 1.1478065252304077, 0.44066518545150757, 0.46372929215431213, -0.15700702369213104, 0.5594147443771362, 0.12320980429649353, -0.12690915167331696, -0.6554246544837952, 0.39450177550315857, -0.22992092370986938, -0.6048680543899536, -0.47837892174720764, -0.6163288950920105, -0.9092956185340881, 0.2646458148956299, -0.20104941725730896, -0.9363107681274414, 0.16309010982513428, 0.002593598561361432, -0.2538048326969147, 0.27266424894332886, -0.706674337387085, 0.6400704383850098, 0.08945631235837936, -0.18939059972763062, -0.3075288236141205, -0.5513821840286255, 0.13918253779411316, -0.012214328162372112, 0.4289230406284332, -0.17824871838092804, 0.28978684544563293, 1.3648691177368164, -0.17614279687404633, 0.5282543897628784, -0.31469184160232544, 0.05586812645196915, 0.4929856061935425, -0.18106397986412048, 0.47622331976890564, -0.17462830245494843, -0.3572337329387665, 0.42145776748657227, 0.18003979325294495, -0.29432496428489685, -0.21879571676254272, 0.8919011950492859, -1.094147801399231, -0.2755436301231384, -0.2985432744026184, -0.5063644647598267, -0.10584135353565216, 0.2399742305278778, 0.587908923625946, 0.6463247537612915, -0.13616150617599487, 0.3513154983520508, 0.49119335412979126, -0.1303250640630722, 0.36559122800827026, 0.29250600934028625, -0.025111494585871696, -0.6606313586235046, 0.8374828696250916, 0.37067750096321106, 0.15032070875167847, 0.01228492334485054, 0.28682762384414673, -0.5770848989486694, -0.5621400475502014, -0.27924978733062744, 0.3398533761501312, -0.516284704208374, -0.20004065334796906, -0.6859410405158997, -0.19088289141654968, -0.7553838491439819, 0.10830536484718323, -0.5851738452911377, -0.6706996560096741, -0.4509245753288269, -0.18520641326904297, 0.3854455351829529, 0.6925099492073059, -0.4480801820755005, 0.22338536381721497, -0.4337882399559021, 0.43750685453414917, 0.04420408234000206, 0.2748132348060608, -0.05395393446087837, -1.0018075704574585, -0.31779882311820984, 0.24635551869869232, 0.008281072601675987, -0.4912842810153961, 0.4303353726863861, 0.15815423429012299, 0.49600598216056824, 0.05805983766913414, -0.09850742667913437, 0.7481075525283813, -0.5241881012916565, 0.8923502564430237, 0.32039308547973633, -0.9083334803581238, 0.40496793389320374, -0.1396772861480713, 0.2779623866081238, 0.3507775366306305, 0.15090909600257874, -0.515207827091217, -0.33551332354545593, -0.6865392923355103, -0.9934107661247253, 1.0637003183364868, 0.3451458215713501, 0.027957871556282043, 0.16664263606071472, 0.20365427434444427, 0.006833741441369057, 0.05528659373521805, -0.33485034108161926, -0.550667405128479, -0.13907015323638916, -0.25797948241233826, -0.25947436690330505, -0.3421834111213684, -0.17370349168777466, -0.5268688797950745, 1.0908721685409546, 0.28487882018089294, 0.5991445183753967, 0.3231064975261688, 0.12159378081560135, -0.15209932625293732, 0.1807732731103897, 0.6202509999275208, 0.4838276207447052, -0.4204746186733246, 0.08745479583740234, 0.43310391902923584, -0.7834063768386841, 0.12332949042320251, 0.2753477394580841, 0.13593749701976776, 0.023094406351447105, 0.40200576186180115, 1.1207972764968872, 0.08379605412483215, -0.35311180353164673, 0.27295225858688354, -0.2899426519870758, -0.4190518856048584, -0.6131696701049805, -0.09079612791538239, 0.30556491017341614, 0.3077279329299927, 0.5333338379859924, 0.19611530005931854, 0.0621722936630249, -0.3328534960746765, 0.1997712254524231, 0.18397215008735657, -0.4443725645542145, -0.48356893658638, 0.9081718325614929, -0.045798372477293015, -0.4357178807258606, 0.6881476640701294, -0.17880743741989136, -0.3580130934715271, 0.6536577939987183, 0.6741883754730225, 0.8207558989524841, -0.2982421815395355, -0.0676066130399704, 0.6686311364173889, 0.1905224621295929, -0.14683125913143158, 0.5382252335548401, 0.0754007026553154, -0.5223926901817322, -0.331972599029541, -0.77750164270401, 0.0015029095811769366, 0.2752262055873871, -0.7804338932037354, 0.4412427842617035, -0.2925533652305603, -0.37803712487220764, 0.2927365005016327, 0.34283360838890076, -0.9533501267433167, 0.38268736004829407, 0.24765048921108246, 0.7620400786399841, -0.8123146295547485, 0.8431817293167114, 0.47769424319267273, -0.12101094424724579, -1.09425687789917, -0.3843303322792053, -0.01843792013823986, -0.6731804013252258, 0.583394467830658, 0.023503590375185013, -0.36958569288253784, 0.08948051929473877, -0.443156898021698, -1.0614447593688965, 1.1570426225662231, 0.46213477849960327, -0.6316255331039429, 0.100302554666996, 0.03725339472293854, 0.5982840657234192, -0.30321595072746277, 0.2698563039302826, 0.7514185905456543, 0.5789251923561096, 0.09096474200487137, -1.1651172637939453, 0.00561437476426363, -0.30034711956977844, -0.21090564131736755, -0.0025245952419936657, -0.6636999845504761, 0.8568547368049622, -0.3514425754547119, -0.051786743104457855, 0.013617843389511108, 0.8265353441238403, 0.4534611999988556, 0.281765878200531, 0.5337584614753723, 0.7576318383216858, 0.9992215633392334, -0.09992371499538422, 0.8446866869926453, -0.11981408298015594, 0.5035169720649719, 1.005326747894287, 0.08499345183372498, 0.9838020205497742, 0.4091110825538635, -0.3865857422351837, 0.269927442073822, 0.5766080021858215, -0.1781601756811142, 0.7033767700195312, 0.16102325916290283, -0.09691484272480011, 0.08567413687705994, -0.05009664222598076, -0.5904238820075989, 0.7364925146102905, 0.31764689087867737, -0.19168828427791595, 0.28539329767227173, -0.06024622172117233, 0.269341379404068, -0.22644765675067902, -0.18927639722824097, 0.5934392213821411, 0.12236219644546509, -0.47505420446395874, 1.038330078125, 0.14312806725502014, 0.7576931715011597, -0.4426623582839966, 0.060692545026540756, 0.159564808011055, 0.22165457904338837, -0.3184806704521179, -0.5683903694152832, 0.20983543992042542, 0.0544256716966629, -0.24967122077941895, 0.1337771713733673, 0.2576346695423126, -0.6159238815307617, -0.7710566520690918, 0.40593117475509644, -0.029620667919516563, 0.40150973200798035, 0.3309289515018463, -0.6437522172927856, 0.38580963015556335, 0.18601025640964508, -0.46493300795555115, 0.026797186583280563, 0.16691720485687256, 0.1614496409893036, 0.2938617467880249, 0.7075080871582031, 0.3732989728450775, 0.15342840552330017, -0.11175191402435303, 0.6673213243484497, -0.5109421610832214, -0.5288721919059753, -0.6950435042381287, 0.5522646307945251, 0.12660007178783417, -0.4763932228088379, 0.4984152317047119, 0.8442863821983337, 0.9769766926765442, 0.10068594664335251, 0.8056715130805969, -0.13876400887966156, 0.6658962965011597, -0.5078334808349609, 0.8713613152503967, -0.5125870704650879, 0.2715579867362976, -0.17375408113002777, -0.8640663623809814, -0.12773694097995758, 0.6157116889953613, -0.19507379829883575, 0.05789029598236084, 0.5032671689987183, 0.8582260012626648, -0.11418415606021881, -0.0922396183013916, 0.3047354817390442, 0.6360139846801758, 0.2716333270072937, 0.33828040957450867, 0.389228880405426, -0.7127802968025208, 0.604558527469635, -0.3929764926433563, -0.27706778049468994, 0.03228894993662834, -0.6042280197143555, -0.7265322208404541, -0.954815149307251, -0.4058864414691925, -0.5839941501617432, 0.08137047290802002, 1.0608806610107422, 0.7405820488929749, -0.9110626578330994, -0.43552935123443604, 0.3297162652015686, -0.10351159423589706, -0.3151175081729889, -0.16985435783863068, 0.8155924677848816, -0.02303042635321617, -0.8449746370315552, 0.5697794556617737, -0.19990848004817963, -0.03617972135543823, -0.020755834877490997, -0.3139115869998932, -0.164756640791893, 0.14098097383975983, 0.3288937211036682, 0.18313784897327423, -0.7047039270401001, -0.19993923604488373, -0.06579096615314484, 0.04901745915412903, 0.14855164289474487, 0.2908842861652374, -0.7305934429168701, 0.5350273847579956, 0.5749464631080627, 0.21888510882854462, 0.9069243669509888, -0.3305531144142151, 0.3061474561691284, -0.6150178909301758, 0.3985885977745056, 0.14734478294849396, 0.43238475918769836, 0.4701915681362152, -0.3399934470653534, 0.42040306329727173, 0.15758247673511505, -0.6130344867706299, -1.170893669128418, -0.25252801179885864, -1.0227947235107422, -0.0421801321208477, 1.2839429378509521, -0.15198977291584015, -0.39850395917892456, 0.15926209092140198, -0.2740354835987091, 0.6761412024497986, -0.48776525259017944, 0.6415461897850037, 0.5728040933609009, -0.13056480884552002, 0.10701681673526764, -0.5194704532623291, 0.5072384476661682, 0.2212487906217575, -0.3360980153083801, -0.0307219997048378, 0.2569010257720947, 0.6068441271781921, 0.15602408349514008, 0.7573583722114563, -0.34933072328567505, 0.18915526568889618, 0.18307480216026306, 0.18431928753852844, -0.2733203172683716, -0.16392037272453308, -0.5153695940971375, -0.13178202509880066, -0.11845414340496063, -0.41098833084106445 ]
sentence-transformers/distilbert-base-nli-stsb-mean-tokens
sentence-transformers
"2022-06-15T20:07:20Z"
19,799
10
sentence-transformers
[ "sentence-transformers", "pytorch", "tf", "distilbert", "feature-extraction", "sentence-similarity", "transformers", "arxiv:1908.10084", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- pipeline_tag: sentence-similarity license: apache-2.0 tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- **⚠️ This model is deprecated. Please don't use it as it produces sentence embeddings of low quality. You can find recommended sentence embedding models here: [SBERT.net - Pretrained Models](https://www.sbert.net/docs/pretrained_models.html)** # sentence-transformers/distilbert-base-nli-stsb-mean-tokens This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search. ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer sentences = ["This is an example sentence", "Each sentence is converted"] model = SentenceTransformer('sentence-transformers/distilbert-base-nli-stsb-mean-tokens') embeddings = model.encode(sentences) print(embeddings) ``` ## Usage (HuggingFace Transformers) Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. ```python from transformers import AutoTokenizer, AutoModel import torch #Mean Pooling - Take attention mask into account for correct averaging def mean_pooling(model_output, attention_mask): token_embeddings = model_output[0] #First element of model_output contains all token embeddings input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float() return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9) # Sentences we want sentence embeddings for sentences = ['This is an example sentence', 'Each sentence is converted'] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/distilbert-base-nli-stsb-mean-tokens') model = AutoModel.from_pretrained('sentence-transformers/distilbert-base-nli-stsb-mean-tokens') # Tokenize sentences encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input) # Perform pooling. In this case, max pooling. sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) print("Sentence embeddings:") print(sentence_embeddings) ``` ## Evaluation Results For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/distilbert-base-nli-stsb-mean-tokens) ## Full Model Architecture ``` SentenceTransformer( (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: DistilBertModel (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False}) ) ``` ## Citing & Authors This model was trained by [sentence-transformers](https://www.sbert.net/). If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084): ```bibtex @inproceedings{reimers-2019-sentence-bert, title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", author = "Reimers, Nils and Gurevych, Iryna", booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", month = "11", year = "2019", publisher = "Association for Computational Linguistics", url = "http://arxiv.org/abs/1908.10084", } ```
[ -0.22940799593925476, -0.791477382183075, 0.2584591805934906, 0.4361071288585663, -0.4102916121482849, -0.3742581605911255, -0.267367959022522, -0.056342776864767075, 0.21180805563926697, 0.2819960117340088, -0.5440793037414551, -0.436587393283844, -0.7863563299179077, 0.12705543637275696, -0.4308305084705353, 0.8085989952087402, -0.15652260184288025, 0.01882326789200306, -0.26209113001823425, -0.14052805304527283, -0.3361937403678894, -0.4636326730251312, -0.33796533942222595, -0.24437376856803894, 0.18733547627925873, 0.08753605931997299, 0.46909192204475403, 0.36587241291999817, 0.3122183680534363, 0.4598010182380676, -0.1321084350347519, 0.16817057132720947, -0.38668617606163025, -0.15107297897338867, 0.05803283303976059, -0.278364896774292, -0.11293548345565796, 0.3676944673061371, 0.5828361511230469, 0.559952437877655, -0.1942184418439865, 0.09794300049543381, 0.03793702274560928, 0.3324986398220062, -0.4810609519481659, 0.42352694272994995, -0.5612030625343323, 0.187564417719841, 0.09260404109954834, 0.03428773581981659, -0.6292258501052856, -0.14898799359798431, 0.3150728940963745, -0.41531679034233093, 0.06508506089448929, 0.210033118724823, 1.1113756895065308, 0.44976183772087097, -0.29351988434791565, -0.3646395206451416, -0.30981993675231934, 0.880296528339386, -0.9582165479660034, 0.23998908698558807, 0.26113468408584595, -0.0693226084113121, -0.04619664326310158, -1.0609068870544434, -0.7796316146850586, -0.1487298309803009, -0.48013201355934143, 0.2268889844417572, -0.46995747089385986, 0.02834072709083557, 0.1882234513759613, 0.31518325209617615, -0.6691862344741821, -0.07366818189620972, -0.4346691966056824, -0.0748368501663208, 0.5332518219947815, 0.0378589853644371, 0.3405711054801941, -0.564658522605896, -0.44713136553764343, -0.29051515460014343, -0.17047490179538727, -0.13352790474891663, 0.1447259485721588, 0.15739482641220093, -0.2738763391971588, 0.754336416721344, 0.009881231002509594, 0.5764942169189453, 0.03514672815799713, 0.2530179023742676, 0.7147505879402161, -0.3879060745239258, -0.3616848886013031, -0.047255273908376694, 1.1215245723724365, 0.44770658016204834, 0.36891788244247437, -0.08005928993225098, -0.14251138269901276, 0.07683978229761124, 0.23849079012870789, -0.8544304966926575, -0.35642170906066895, 0.16620823740959167, -0.3704706132411957, -0.3312704861164093, 0.20458324253559113, -0.6139437556266785, 0.0010902208741754293, 0.0313958004117012, 0.6711086630821228, -0.5896321535110474, -0.029931871220469475, 0.35757723450660706, -0.27973589301109314, 0.11395177245140076, -0.30895185470581055, -0.7269269227981567, 0.22709323465824127, 0.2311723828315735, 0.9382173418998718, 0.11100122332572937, -0.5119359493255615, -0.22337421774864197, -0.18473301827907562, 0.03752846270799637, 0.5461081266403198, -0.2727411091327667, -0.17220838367938995, 0.14066237211227417, 0.2593550682067871, -0.5437911152839661, -0.3667100965976715, 0.569561243057251, -0.3481208384037018, 0.6784129738807678, 0.14438900351524353, -0.8510297536849976, -0.1621498465538025, 0.14758487045764923, -0.5426520109176636, 1.0944768190383911, 0.23153430223464966, -1.0087498426437378, 0.11336012184619904, -0.8065767884254456, -0.325899600982666, -0.1722152680158615, 0.13641956448554993, -0.686835527420044, 0.19540514051914215, 0.43689727783203125, 0.7157545685768127, 0.15411978960037231, 0.5223262906074524, -0.22441637516021729, -0.5127916932106018, 0.42588022351264954, -0.45343196392059326, 1.195794701576233, 0.16271425783634186, -0.3491879999637604, 0.06338312476873398, -0.544922947883606, -0.1477774977684021, 0.33918237686157227, -0.13823212683200836, -0.2660767436027527, -0.0010973045136779547, 0.31328368186950684, 0.2556137144565582, 0.20582182705402374, -0.7204733490943909, 0.1428215354681015, -0.6227960586547852, 0.9957327842712402, 0.6029254794120789, 0.005476091988384724, 0.5389182567596436, -0.2262261062860489, 0.10786053538322449, 0.4350133538246155, 0.034330882132053375, -0.18824799358844757, -0.35890403389930725, -0.9745149612426758, -0.31549742817878723, 0.3309238851070404, 0.5150676369667053, -0.7269331216812134, 1.1054553985595703, -0.48608848452568054, -0.46676138043403625, -0.7076115608215332, -0.06844399124383926, 0.07095567137002945, 0.41771548986434937, 0.6698084473609924, -0.052360665053129196, -0.674146294593811, -0.9206312894821167, 0.015633122995495796, -0.03906485065817833, 0.10173754394054413, 0.1623041033744812, 0.7619171142578125, -0.4814026951789856, 1.0621634721755981, -0.7153664827346802, -0.41410136222839355, -0.4964332580566406, 0.27951955795288086, 0.31208479404449463, 0.6490656733512878, 0.5738372802734375, -0.7062773108482361, -0.33997756242752075, -0.6989970207214355, -0.6998300552368164, 0.02295478619635105, -0.20614057779312134, -0.15543533861637115, 0.13971911370754242, 0.5090981125831604, -0.8184292316436768, 0.4184246063232422, 0.6340733766555786, -0.5553061366081238, 0.3146742284297943, -0.2543599605560303, -0.21071387827396393, -1.4608328342437744, 0.052398987114429474, 0.13286928832530975, -0.2509778141975403, -0.4469735324382782, -0.009542744606733322, 0.10575360059738159, -0.0920698270201683, -0.5286895632743835, 0.4577130973339081, -0.3951469361782074, 0.21024470031261444, -0.04295528680086136, 0.40686628222465515, 0.10429778695106506, 0.7424717545509338, -0.06943266093730927, 0.6786742806434631, 0.5080385208129883, -0.5826255679130554, 0.3094925284385681, 0.6575673222541809, -0.5103830099105835, 0.1420663446187973, -0.908652126789093, -0.029201827943325043, -0.05377870425581932, 0.4564138948917389, -1.0521782636642456, 0.037037577480077744, 0.35430577397346497, -0.5277876257896423, 0.2473537176847458, 0.3229285180568695, -0.6710293889045715, -0.6300804615020752, -0.38130152225494385, 0.190688818693161, 0.5612266659736633, -0.5816506743431091, 0.5578083395957947, 0.2895365357398987, 0.0005879173404537141, -0.611360490322113, -1.1987717151641846, -0.0032233791425824165, -0.18741512298583984, -0.6199055314064026, 0.6042357087135315, -0.06389425694942474, 0.15441469848155975, 0.35387110710144043, 0.26228323578834534, 0.006038065534085035, 0.05758175626397133, 0.058029789477586746, 0.2810741066932678, -0.05896729603409767, 0.20600131154060364, 0.20394541323184967, -0.1768959015607834, 0.03796257823705673, -0.2250816375017166, 0.6925304532051086, -0.19570393860340118, -0.15981744229793549, -0.4997304081916809, 0.1648612916469574, 0.39319902658462524, -0.28834959864616394, 1.091239094734192, 0.9937869906425476, -0.4698351323604584, -0.06395477801561356, -0.5371817946434021, -0.2853287160396576, -0.4779696464538574, 0.7382646799087524, -0.13757604360580444, -1.0166263580322266, 0.30438196659088135, 0.11442853510379791, 0.035293735563755035, 0.6465686559677124, 0.5097368955612183, -0.13469432294368744, 0.7903323173522949, 0.5837274193763733, -0.25254273414611816, 0.5003604888916016, -0.6731125116348267, 0.3486308753490448, -0.9776350855827332, -0.010171676054596901, -0.20702028274536133, -0.3506985008716583, -0.7204919457435608, -0.45363369584083557, 0.12001688033342361, -0.008075260557234287, -0.3070020079612732, 0.5857739448547363, -0.6040671467781067, 0.18011252582073212, 0.5943837761878967, 0.13287289440631866, -0.0885489359498024, 0.02747783064842224, -0.3552609384059906, -0.05855225399136543, -0.6686564087867737, -0.5764884352684021, 0.796739935874939, 0.5155297517776489, 0.48372799158096313, -0.12934750318527222, 0.6937299370765686, 0.041103485971689224, 0.042725153267383575, -0.6699984073638916, 0.5528032779693604, -0.4080272316932678, -0.4564878046512604, -0.3117085099220276, -0.3729799687862396, -0.826492428779602, 0.3535439968109131, -0.15779303014278412, -0.7714085578918457, 0.13484777510166168, -0.2265140563249588, -0.3097085952758789, 0.28000596165657043, -0.8231655359268188, 1.0613906383514404, 0.049202583730220795, -0.038405515253543854, -0.12356564402580261, -0.647158145904541, 0.12501567602157593, 0.27855247259140015, 0.03581812232732773, -0.025923000648617744, 0.03269887715578079, 0.8665411472320557, -0.2729291319847107, 1.046959638595581, -0.2637880742549896, 0.3237946033477783, 0.4401288628578186, -0.3935035169124603, 0.26632359623908997, -0.01878020539879799, -0.07531165331602097, 0.18937042355537415, -0.1532260626554489, -0.324441134929657, -0.5436259508132935, 0.6898090243339539, -0.9699078798294067, -0.3890153169631958, -0.5248026847839355, -0.5102900862693787, -0.017614075914025307, 0.15068629384040833, 0.39460182189941406, 0.4698103070259094, -0.2512767016887665, 0.42800799012184143, 0.4611508548259735, -0.3501257002353668, 0.7966163158416748, 0.11716818809509277, -0.01821850799024105, -0.5129436254501343, 0.6182829141616821, 0.06956321001052856, -0.026560766622424126, 0.4412200152873993, 0.20722150802612305, -0.5147650837898254, -0.2692285478115082, -0.39055508375167847, 0.4174603819847107, -0.5770835280418396, -0.20288532972335815, -1.040001630783081, -0.5592972636222839, -0.608826220035553, 0.00039238668978214264, -0.2498491108417511, -0.43717309832572937, -0.6149862408638, -0.3861011266708374, 0.3693532645702362, 0.47222450375556946, -0.018268313258886337, 0.4151418209075928, -0.7126002907752991, 0.08616859465837479, 0.10772176086902618, 0.15420134365558624, -0.04131921008229256, -0.7531382441520691, -0.37733447551727295, 0.0442158468067646, -0.4079752564430237, -0.8337734937667847, 0.6390754580497742, 0.23006218671798706, 0.5892948508262634, 0.14439578354358673, 0.1683996021747589, 0.6743669509887695, -0.575171947479248, 0.9066500067710876, 0.10023856908082962, -1.0669282674789429, 0.4638827443122864, 0.049383390694856644, 0.3910047709941864, 0.5458513498306274, 0.3609970808029175, -0.4512888193130493, -0.4203719198703766, -0.6810630559921265, -1.0623670816421509, 0.6605706810951233, 0.4353403151035309, 0.6345980763435364, -0.43209099769592285, 0.32248613238334656, -0.29084187746047974, 0.2226136177778244, -1.180511236190796, -0.4040124714374542, -0.45525360107421875, -0.6458902359008789, -0.3342711627483368, -0.3563065826892853, 0.23384693264961243, -0.39961275458335876, 0.7809914946556091, 0.07458260655403137, 0.6844215989112854, 0.3923625648021698, -0.560410737991333, 0.23601748049259186, 0.21475191414356232, 0.48435813188552856, 0.19726310670375824, -0.13912202417850494, 0.16774208843708038, 0.30038294196128845, -0.4056519865989685, 0.04059123620390892, 0.5337762236595154, -0.12814153730869293, 0.2296934574842453, 0.3742101490497589, 1.0704091787338257, 0.5077018141746521, -0.44049811363220215, 0.8018200993537903, -0.10667253285646439, -0.28840145468711853, -0.49262651801109314, -0.16765373945236206, 0.3042900860309601, 0.2779451012611389, 0.3071708381175995, -0.0020394467283040285, 0.0278165303170681, -0.3212597966194153, 0.328788161277771, 0.20095831155776978, -0.4878619611263275, -0.11291834712028503, 0.666224479675293, 0.13692758977413177, -0.12295690923929214, 1.0491816997528076, -0.35225698351860046, -0.6943612694740295, 0.3510054349899292, 0.6530224680900574, 0.9841744303703308, 0.03972247615456581, 0.307514488697052, 0.5845516920089722, 0.3583798408508301, -0.05678350105881691, -0.07771077007055283, 0.17578443884849548, -0.9044935703277588, -0.30849504470825195, -0.6772121787071228, 0.1736181229352951, 0.021873362362384796, -0.5692331194877625, 0.26061105728149414, -0.09693877398967743, -0.18567265570163727, -0.22058618068695068, 0.010027880780398846, -0.6507845520973206, 0.09645333141088486, 0.07882536947727203, 0.8353290557861328, -1.0387895107269287, 0.7400554418563843, 0.6710542440414429, -0.7210296392440796, -0.7492149472236633, -0.07162199169397354, -0.35121646523475647, -0.6845064759254456, 0.5500413775444031, 0.5561690926551819, 0.1969960480928421, 0.2762455940246582, -0.5279810428619385, -0.766010046005249, 1.3792790174484253, 0.2534204125404358, -0.4645518660545349, -0.2434588521718979, 0.14607277512550354, 0.49518105387687683, -0.500203549861908, 0.4269820749759674, 0.3561217188835144, 0.3137534260749817, -0.048814840614795685, -0.6453266739845276, 0.24814528226852417, -0.34779736399650574, 0.24610814452171326, -0.2086729258298874, -0.5269361734390259, 0.9454396963119507, -0.05658698454499245, -0.26957446336746216, 0.1516725718975067, 0.8882657885551453, 0.2961946129798889, -0.011027339845895767, 0.5124726295471191, 0.9012462496757507, 0.5850299596786499, -0.15063178539276123, 0.9047114253044128, -0.28877606987953186, 0.6957131028175354, 1.0193382501602173, 0.0399029515683651, 1.0669087171554565, 0.49070245027542114, -0.08332031965255737, 0.8316239714622498, 0.552797257900238, -0.34472525119781494, 0.6858816146850586, 0.2875528335571289, 0.08660556375980377, 0.06382149457931519, 0.11690937727689743, -0.19784681499004364, 0.5263864398002625, 0.15842308104038239, -0.7250977754592896, -0.0046018497087061405, 0.17100006341934204, 0.04834619536995888, 0.014288272708654404, 0.15192075073719025, 0.6025295853614807, 0.19751356542110443, -0.4154660999774933, 0.406880259513855, 0.1874428391456604, 1.0555278062820435, -0.35848096013069153, 0.13621875643730164, -0.025158053264021873, 0.34190821647644043, 0.006222376599907875, -0.5526812076568604, 0.40049856901168823, -0.10502737015485764, -0.04061303287744522, -0.22692279517650604, 0.56882643699646, -0.6090816259384155, -0.66070556640625, 0.39166897535324097, 0.510154664516449, -0.011609647423028946, 0.052813220769166946, -1.029258370399475, 0.0019369882065802813, -0.028885817155241966, -0.5700933337211609, 0.16426146030426025, 0.3334166705608368, 0.4136043190956116, 0.5236151814460754, 0.39195242524147034, -0.18676204979419708, 0.06939693540334702, 0.21117150783538818, 0.9110630750656128, -0.5974243879318237, -0.5490477681159973, -1.0294674634933472, 0.8247199654579163, -0.2504868805408478, -0.3207066059112549, 0.6208202838897705, 0.5518563389778137, 0.896433413028717, -0.26597562432289124, 0.5423280596733093, -0.15990765392780304, 0.2090926617383957, -0.5356508493423462, 0.8856014609336853, -0.4736345410346985, -0.06331336498260498, -0.2843658924102783, -0.9563384056091309, -0.2900882661342621, 1.114155650138855, -0.3200993239879608, 0.17131775617599487, 0.9382087588310242, 0.7885528802871704, -0.11151497066020966, -0.055419161915779114, 0.12396889179944992, 0.44011497497558594, 0.20587660372257233, 0.4820283353328705, 0.5435531139373779, -0.8610571026802063, 0.5865177512168884, -0.5388829112052917, -0.11456961184740067, -0.12199119478464127, -0.8809573650360107, -1.0024774074554443, -0.8611770272254944, -0.49431610107421875, -0.24175827205181122, -0.07829861342906952, 1.0721920728683472, 0.6391315460205078, -0.6953521966934204, -0.06314846873283386, -0.28815770149230957, -0.25947943329811096, -0.12501399219036102, -0.30899208784103394, 0.5210021734237671, -0.5047334432601929, -0.8778713941574097, 0.16377697885036469, -0.09097962081432343, 0.15930606424808502, -0.4205029010772705, 0.11656924337148666, -0.6759704351425171, 0.10425134748220444, 0.5794013738632202, -0.3580918610095978, -0.7625231742858887, -0.26816442608833313, 0.08221936970949173, -0.3483351767063141, -0.14355053007602692, 0.3102458417415619, -0.6598334312438965, 0.21535272896289825, 0.30576181411743164, 0.5586151480674744, 0.6379666924476624, -0.21506404876708984, 0.4267891049385071, -0.8465259075164795, 0.3277217745780945, 0.1375063955783844, 0.7283895611763, 0.4662764072418213, -0.2652878165245056, 0.5680049657821655, 0.23628608882427216, -0.46624699234962463, -0.6932504177093506, -0.17656844854354858, -1.0156230926513672, -0.31111907958984375, 1.0851376056671143, -0.44061312079429626, -0.36231231689453125, 0.21935789287090302, -0.18165013194084167, 0.5334433317184448, -0.28306320309638977, 0.7112827897071838, 0.8603394031524658, 0.1356011927127838, -0.253519743680954, -0.29592499136924744, 0.1761506199836731, 0.3869142532348633, -0.525325357913971, -0.14437785744667053, 0.268626868724823, 0.26328936219215393, 0.30891090631484985, 0.4560316503047943, -0.12518632411956787, -0.07562369108200073, 0.07830021530389786, 0.09325546026229858, -0.2853602170944214, 0.034015242010354996, -0.31792548298835754, -0.0010282787261530757, -0.3544905483722687, -0.40869230031967163 ]
mosaicml/mpt-30b
mosaicml
"2023-10-30T21:54:24Z"
19,782
325
transformers
[ "transformers", "pytorch", "mpt", "text-generation", "Composer", "MosaicML", "llm-foundry", "StreamingDatasets", "custom_code", "dataset:allenai/c4", "dataset:mc4", "dataset:togethercomputer/RedPajama-Data-1T", "dataset:bigcode/the-stack-dedup", "dataset:allenai/s2orc", "arxiv:2108.12409", "arxiv:2302.13971", "arxiv:2205.14135", "arxiv:2010.04245", "arxiv:1909.08053", "arxiv:2302.06675", "license:apache-2.0", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-06-20T16:29:39Z"
--- license: apache-2.0 tags: - Composer - MosaicML - llm-foundry - StreamingDatasets datasets: - allenai/c4 - mc4 - togethercomputer/RedPajama-Data-1T - bigcode/the-stack-dedup - allenai/s2orc inference: false --- # MPT-30B MPT-30B is a decoder-style transformer pretrained from scratch on 1T tokens of English text and code. This model was trained by [MosaicML](https://www.mosaicml.com). MPT-30B is part of the family of Mosaic Pretrained Transformer (MPT) models, which use a modified transformer architecture optimized for efficient training and inference. MPT-30B comes with special features that differentiate it from other LLMs, including an 8k token context window (which can be further extended via finetuning; see [MPT-7B-StoryWriter](https://huggingface.co/mosaicml/mpt-7b-storywriter)), support for context-length extrapolation via [ALiBi](https://arxiv.org/abs/2108.12409), and efficient inference + training via FlashAttention. It also has strong coding abilities thanks to its pretraining mix. MPT models can also be served efficiently with both standard HuggingFace pipelines and NVIDIA's [FasterTransformer](https://github.com/NVIDIA/FasterTransformer). The size of MPT-30B was also specifically chosen to make it easy to deploy on a single GPU—either 1xA100-80GB in 16-bit precision or 1xA100-40GB in 8-bit precision. This model uses the MosaicML LLM codebase, which can be found in the [llm-foundry repository](https://github.com/mosaicml/llm-foundry). It was trained by MosaicML’s NLP team on the [MosaicML platform](https://www.mosaicml.com/training) for LLM pretraining, finetuning, and inference. ### How is this model different? MPT-30B is: * **Licensed for the possibility of commercial use** (unlike [LLaMA](https://arxiv.org/abs/2302.13971)). * **Trained on a large amount of data** (1T tokens like [LLaMA](https://arxiv.org/abs/2302.13971) vs. 300B for [Pythia](https://github.com/EleutherAI/pythia), 300B for [OpenLLaMA](https://github.com/openlm-research/open_llama), and 800B for [StableLM](https://github.com/Stability-AI/StableLM)). * **Prepared to handle extremely long inputs** thanks to [ALiBi](https://arxiv.org/abs/2108.12409). * **Capable of fast training and inference** (via [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf) and [FasterTransformer](https://github.com/NVIDIA/FasterTransformer)) * **Equipped with highly efficient open-source training code** via the [llm-foundry repository](https://github.com/mosaicml/llm-foundry) ### Models finetuned off MPT-30B: The following models are finetuned on MPT-30B: * [MPT-30B-Instruct](https://huggingface.co/mosaicml/mpt-30b-instruct): a model for long-form instruction following (especially summarization and question-answering). Built by finetuning MPT-30B on several carefully curated datasets. * License: _CC-BY-SA-3.0_ * [MPT-30B-Chat](https://huggingface.co/mosaicml/mpt-30b-chat): a chatbot-like model for dialogue generation. Built by finetuning MPT-30B on [ShareGPT-Vicuna](https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered), [Camel-AI](https://huggingface.co/camel-ai), [GPTeacher](https://github.com/teknium1/GPTeacher), [Guanaco](https://huggingface.co/datasets/timdettmers/openassistant-guanaco), [Baize](https://github.com/project-baize/baize-chatbot) and some generated datasets. * License: _CC-By-NC-SA-4.0_ * [Demo on Hugging Face Spaces](https://huggingface.co/spaces/mosaicml/mpt-30b-chat) ## Model Date June 22, 2023 ## Model License Apache-2.0 ## Documentation * [Blog post: MPT-30B: Raising the bar for open-source foundation models](https://www.mosaicml.com/blog/mpt-30b) * [Codebase (mosaicml/llm-foundry repo)](https://github.com/mosaicml/llm-foundry/) * Questions: Feel free to contact us via the [MosaicML Community Slack](https://mosaicml.me/slack)! ## How to Use This model is best used with the MosaicML [llm-foundry repository](https://github.com/mosaicml/llm-foundry) for training and finetuning. ```python import transformers model = transformers.AutoModelForCausalLM.from_pretrained( 'mosaicml/mpt-30b', trust_remote_code=True ) ``` Note: This model requires that `trust_remote_code=True` be passed to the `from_pretrained` method. This is because we use a custom `MPT` model architecture that is not yet part of the Hugging Face `transformers` package. `MPT` includes options for many training efficiency features such as [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf), [ALiBi](https://arxiv.org/abs/2108.12409), [QK LayerNorm](https://arxiv.org/abs/2010.04245), and more. To use the optimized [triton implementation](https://github.com/openai/triton) of FlashAttention, you can load the model on GPU (`cuda:0`) with `attn_impl='triton'` and with `bfloat16` precision: ```python import torch import transformers name = 'mosaicml/mpt-30b' config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True) config.attn_config['attn_impl'] = 'triton' # change this to use triton-based FlashAttention config.init_device = 'cuda:0' # For fast initialization directly on GPU! model = transformers.AutoModelForCausalLM.from_pretrained( name, config=config, torch_dtype=torch.bfloat16, # Load model weights in bfloat16 trust_remote_code=True ) ``` The model was trained initially with a sequence length of 2048 with an additional pretraining stage for sequence length adapation up to 8192. However, ALiBi enables users to increase the maximum sequence length even further during finetuning and/or inference. For example: ```python import transformers name = 'mosaicml/mpt-30b' config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True) config.max_seq_len = 16384 # (input + output) tokens can now be up to 16384 model = transformers.AutoModelForCausalLM.from_pretrained( name, config=config, trust_remote_code=True ) ``` This model was trained with the MPT-30B tokenizer which is identical to the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer. ```python from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained('mosaicml/mpt-30b') ``` The model can then be used, for example, within a text-generation pipeline. Note: when running Torch modules in lower precision, it is best practice to use the [torch.autocast context manager](https://pytorch.org/docs/stable/amp.html). ```python from transformers import pipeline with torch.autocast('cuda', dtype=torch.bfloat16): inputs = tokenizer('Here is a recipe for vegan banana bread:\n', return_tensors="pt").to('cuda') outputs = model.generate(**inputs, max_new_tokens=100) print(tokenizer.batch_decode(outputs, skip_special_tokens=True)) # or using the HF pipeline pipe = pipeline('text-generation', model=model, tokenizer=tokenizer, device='cuda:0') with torch.autocast('cuda', dtype=torch.bfloat16): print( pipe('Here is a recipe for vegan banana bread:\n', max_new_tokens=100, do_sample=True, use_cache=True)) ``` ## Model Description The architecture is a modification of a standard decoder-only transformer. The model has been modified from a standard transformer in the following ways: * It uses [FlashAttention](https://arxiv.org/pdf/2205.14135.pdf) * It uses [ALiBi (Attention with Linear Biases)](https://arxiv.org/abs/2108.12409) and does not use positional embeddings * It does not use biases | Hyperparameter | Value | |----------------|-------| |n_parameters | 29.95B | |n_layers | 48 | | n_heads | 64 | | d_model | 7168 | | vocab size | 50432 | | sequence length | 8192 | ## Training Data ### Streaming Datasets Data was formatted using the MosaicML [StreamingDataset](https://github.com/mosaicml/streaming) library to host our data in object storage and efficiently stream it to our compute cluster during training. StreamingDataset obviates the need to download the whole dataset before starting training, and allows instant resumption of training from any point in the dataset. ### Data Mix The model was trained for 1T tokens on the following data mix: | Data Source | Number of Tokens in Source | Proportion | Effective Number of Tokens | Epochs | |-------------|----------------------------|------------|----------------------------|--------| | mC4 3.1.0 - English (200+ words) | 2417.99 B | 33.50% | 335 B | 0.14 | | c4 - English - SemDedup 80% | 100.42 B | 29.90% | 299 B | 2.98 | | RedPajama - CommonCrawl | 878.45 B | 8.50% | 85 B | 0.097 | | The Stack - Selected Languages | 463.78 B | 10.00% | 100 B | 0.22 | | RedPajama - Wikipedia | 4.87 B | 4.00% | 40 B | 8.21 | | The Stack - Markdown | 107.07 B | 4.50% | 45 B | 0.42 | | Semantic Scholar ORC | 48.95 B | 3.30% | 33 B | 0.67 | | RedPajama - Books | 26.02 B | 3.00% | 30 B | 1.15 | | RedPajama - arXiv | 28.10 B | 1.90% | 19 B | 0.68 | | RedPajama - StackExchange | 20.54 B | 1.40% | 14 B |0.68 | Samples for each batch were selected from one of the datasets with the probability specified above. The examples were shuffled within each dataset, and each example was constructed from as many sequences from that dataset as were necessary to fill the sequence length. To build 8k support into MPT-30B efficiently, we first pre-trained on 1T tokens using sequences that were 2k tokens long, and then trained for an additional 50B tokens using sequences that were 8k tokens long. The data was tokenized using the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer. This BPE tokenizer has a number of desirable characteristics, most of which are relevant for tokenizing code: (1) It was trained on a diverse mix of data that includes code (The Pile) (2) It applies consistent space delimitation, unlike the GPT2 tokenizer which tokenizes inconsistently depending on the presence of prefix spaces (3) It contains tokens for repeated space characters, which allows superior compression of text with large amounts of repeated space characters. The model vocabulary size of 50432 was set to be a multiple of 128 (as in [MEGATRON-LM](https://arxiv.org/abs/1909.08053)). ### Training Configuration The model was trained in three stages using the [MosaicML Platform](https://www.mosaicml.com/platform): (i) First it was trained on 440 A100-40GBs with a batch size of 1760. (ii) Then, on 216 A100-40GBs with a batch size of 1728. (iii) Training was completed on 256 H100-80GBs with a batch size of 512 with 8k context length and 50B tokens. The model was trained with sharded data parallelism using [FSDP](https://pytorch.org/docs/stable/fsdp.html) and used the [LION](https://arxiv.org/abs/2302.06675) optimizer. ## Limitations and Biases _The following language is modified from [EleutherAI's GPT-NeoX-20B](https://huggingface.co/EleutherAI/gpt-neox-20b)_ MPT-30B (Base) is **not** intended for deployment without finetuning. It should not be used for human-facing interactions without further guardrails and user consent. MPT-30B can produce factually incorrect output, and should not be relied on to produce factually accurate information. MPT-30B was trained on various public datasets. While great efforts have been taken to clean the pretraining data, it is possible that this model could generate lewd, biased or otherwise offensive outputs. ## MosaicML Platform If you're interested in [training](https://www.mosaicml.com/training) and [deploying](https://www.mosaicml.com/inference) your own MPT or LLMs on the MosaicML Platform, [sign up here](https://forms.mosaicml.com/demo?utm_source=huggingface&utm_medium=referral&utm_campaign=mpt-30b). ## Disclaimer The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes. ## Citation Please cite this model using the following format: ``` @online{MosaicML2023Introducing, author = {MosaicML NLP Team}, title = {Introducing MPT-30B: Raising the bar for open-source foundation models}, year = {2023}, url = {www.mosaicml.com/blog/mpt-30b}, note = {Accessed: 2023-06-22}, urldate = {2023-06-22} } ```
[ -0.4886462688446045, -0.559408962726593, 0.19059404730796814, 0.3548526465892792, -0.2883320748806, 0.028909100219607353, -0.09088407456874847, -0.24417631328105927, -0.02150133065879345, 0.2949368953704834, -0.6315850019454956, -0.5108799338340759, -0.6049284934997559, -0.07017846405506134, -0.34413114190101624, 0.9970243573188782, -0.06359315663576126, 0.03280256688594818, -0.0205244030803442, -0.039517804980278015, -0.1632097214460373, -0.43881821632385254, -0.6515341997146606, -0.4238243103027344, 0.4872984290122986, 0.14539049565792084, 0.6700880527496338, 0.7663893699645996, 0.4782240390777588, 0.3244158923625946, -0.16027949750423431, 0.1293955296278, -0.4630596339702606, -0.39192792773246765, 0.18523740768432617, -0.40118977427482605, -0.5012965202331543, 0.149762362241745, 0.49105381965637207, 0.2572658360004425, -0.2263544350862503, 0.42584753036499023, -0.007293213624507189, 0.32674041390419006, -0.4594525396823883, 0.2855137884616852, -0.41552790999412537, 0.17570464313030243, -0.21324092149734497, 0.10940084606409073, -0.5357874631881714, -0.23442982137203217, 0.035257164388895035, -0.5222513675689697, 0.3028485178947449, 0.010044082067906857, 1.061379075050354, 0.36756131052970886, -0.35479944944381714, 0.031724005937576294, -0.5327253937721252, 0.641657829284668, -0.8017596006393433, 0.37345167994499207, 0.23683616518974304, 0.288770854473114, 0.052961595356464386, -1.1406242847442627, -0.6710689663887024, -0.1681188941001892, -0.047261301428079605, 0.3604733943939209, -0.29915815591812134, 0.06624746322631836, 0.3872888684272766, 0.5381927490234375, -0.566295862197876, 0.04836477339267731, -0.3970281779766083, -0.18280330300331116, 0.47102317214012146, 0.2310909628868103, 0.2530777156352997, -0.27491438388824463, -0.5297917723655701, -0.38132917881011963, -0.7531596422195435, 0.0427098423242569, 0.2753830850124359, -0.06734970211982727, -0.4729030728340149, 0.6123300790786743, -0.03877241536974907, 0.5912944078445435, 0.16751711070537567, 0.013877665624022484, 0.3473505973815918, -0.29588958621025085, -0.4090469479560852, -0.1827183961868286, 1.0737167596817017, 0.24718670547008514, 0.06514257192611694, -0.02256814017891884, -0.05275949463248253, -0.10663988441228867, 0.047424573451280594, -1.0393105745315552, -0.35510972142219543, 0.23757515847682953, -0.4110214114189148, -0.16025683283805847, -0.026898328214883804, -0.527549147605896, -0.18909822404384613, -0.12301475554704666, 0.5704357028007507, -0.7125717997550964, -0.2198423594236374, 0.012161165475845337, -0.1366230547428131, 0.3634476661682129, 0.18151864409446716, -0.9268844127655029, 0.0437057688832283, 0.4417177140712738, 0.980050802230835, -0.1510772854089737, -0.5148794054985046, -0.14545029401779175, -0.10008373856544495, -0.007110242266207933, 0.5865700244903564, -0.13632164895534515, -0.20690301060676575, -0.33371278643608093, 0.12753145396709442, -0.24602742493152618, -0.4159563183784485, 0.22490674257278442, -0.3938322067260742, 0.45091521739959717, -0.12793347239494324, -0.4581230580806732, -0.20274989306926727, 0.11193442344665527, -0.5625470280647278, 1.025064468383789, 0.36238959431648254, -0.7691470384597778, 0.25965678691864014, -0.8307579159736633, -0.14031709730625153, -0.05608591437339783, 0.0942983627319336, -0.6943947076797485, -0.06271186470985413, 0.3866168260574341, 0.4968390464782715, -0.3664819896221161, 0.2806500792503357, -0.15450961887836456, -0.5046175122261047, 0.16468341648578644, -0.623668372631073, 1.0017921924591064, 0.3845407962799072, -0.6005600094795227, 0.17270533740520477, -0.6709017157554626, -0.16521404683589935, 0.26340827345848083, -0.4707154631614685, 0.5438424944877625, -0.23479914665222168, 0.05059337243437767, 0.16392962634563446, 0.14182031154632568, -0.6322576999664307, 0.10578511655330658, -0.3993262052536011, 0.6578137874603271, 0.7450278997421265, -0.18860478699207306, 0.2985139489173889, -0.4652232229709625, 0.41289907693862915, 0.15165561437606812, 0.4131018817424774, -0.26272955536842346, -0.6310967803001404, -1.015203833580017, -0.4323541522026062, 0.34245210886001587, 0.518259584903717, -0.8735922574996948, 0.33582863211631775, -0.1980152428150177, -0.7380868792533875, -0.7417420744895935, -0.03484474867582321, 0.4244368076324463, 0.48937496542930603, 0.5556605458259583, -0.31126677989959717, -0.608059287071228, -0.7258590459823608, 0.042167361825704575, -0.07733912020921707, -0.06908231973648071, 0.2625740170478821, 0.5490007400512695, -0.2995072603225708, 0.9512630701065063, -0.35297542810440063, 0.006267014425247908, -0.2216692566871643, 0.2063814103603363, 0.46021971106529236, 0.6060675382614136, 0.5634130835533142, -0.6596960425376892, -0.6307555437088013, -0.19769221544265747, -0.6720163226127625, 0.08633791655302048, -0.1009143516421318, -0.09776189178228378, 0.17702454328536987, 0.23197706043720245, -0.9120121598243713, 0.45046356320381165, 0.6398441195487976, -0.3596298396587372, 0.5219548344612122, -0.06057281792163849, 0.00757264532148838, -1.2969789505004883, 0.09373728185892105, -0.09924457967281342, -0.23647646605968475, -0.5142415165901184, -0.11657334864139557, 0.08836183696985245, -0.08121422678232193, -0.8824009895324707, 0.5005828142166138, -0.3162810802459717, 0.08719642460346222, -0.15727640688419342, -0.26541876792907715, -0.09020769596099854, 0.8050550818443298, 0.19562043249607086, 0.8934181332588196, 0.44285616278648376, -0.4451391398906708, 0.5550507307052612, 0.4091176688671112, -0.34801188111305237, 0.19430318474769592, -0.6442493796348572, 0.13965536653995514, 0.033200643956661224, 0.2802242338657379, -0.856706976890564, -0.16883999109268188, 0.3365357220172882, -0.5658479928970337, 0.3157263696193695, -0.2167251855134964, -0.495593786239624, -0.633085310459137, -0.11342344433069229, 0.37147364020347595, 0.7296257615089417, -0.8147502541542053, 0.6089507341384888, 0.13042262196540833, 0.14924877882003784, -0.7760565280914307, -0.8449583649635315, -0.017473610118031502, -0.22764505445957184, -0.6727621555328369, 0.3983094394207001, -0.1326843798160553, 0.14668802917003632, -0.1677108108997345, 0.011952868662774563, 0.0736769288778305, 0.023946937173604965, 0.46860119700431824, 0.40811610221862793, -0.27893301844596863, -0.13238425552845, -0.14595356583595276, -0.21176724135875702, 0.0044276476837694645, -0.24718724191188812, 0.9907693862915039, -0.48754623532295227, -0.3214660882949829, -0.6669763326644897, -0.015725962817668915, 0.49566367268562317, -0.19847901165485382, 1.032348394393921, 1.0655494928359985, -0.16126418113708496, 0.11219798028469086, -0.6575719118118286, -0.1739574819803238, -0.5240010619163513, 0.3361499011516571, -0.17842061817646027, -0.7667850852012634, 0.5320505499839783, 0.15184038877487183, 0.057789530605077744, 0.6554597616195679, 0.858561098575592, -0.1402299553155899, 0.8573411703109741, 0.42763176560401917, 0.10265536606311798, 0.6911675930023193, -0.6866391897201538, -0.05322450026869774, -0.8836603164672852, -0.32744669914245605, -0.14527945220470428, -0.23097877204418182, -0.5526488423347473, -0.49987533688545227, 0.20128008723258972, -0.11368820071220398, -0.7246719598770142, 0.6354742050170898, -0.6090933084487915, 0.37806209921836853, 0.7871279120445251, 0.30055245757102966, 0.025606444105505943, -0.06747763603925705, -0.19423362612724304, 0.13074426352977753, -0.8955811262130737, -0.4015345871448517, 1.2278146743774414, 0.4467555284500122, 0.6078509092330933, -0.051348745822906494, 0.6861090064048767, -0.025095587596297264, 0.6041675209999084, -0.4025720953941345, 0.40067240595817566, 0.024407822638750076, -0.7350444793701172, -0.07186722010374069, -0.5703877806663513, -0.7463679313659668, 0.21934199333190918, -0.2795005440711975, -0.6980568766593933, 0.2755623161792755, 0.12634611129760742, -0.5100475549697876, 0.5967974662780762, -0.859043538570404, 0.994412362575531, -0.22689659893512726, -0.4150770306587219, 0.14257456362247467, -0.7215838432312012, 0.36908069252967834, 0.03173515945672989, -0.091488316655159, -0.08618710190057755, 0.2541084587574005, 0.7571256160736084, -0.47701296210289, 0.8470128178596497, -0.2137933224439621, 0.2090039849281311, 0.40819719433784485, -0.15371957421302795, 0.3560754656791687, 0.01340093556791544, -0.013287230394780636, 0.36717960238456726, 0.0874047800898552, -0.4160671532154083, -0.23438619077205658, 0.4713728427886963, -1.1633228063583374, -0.5551892518997192, -0.4327245056629181, -0.6239596605300903, 0.0314544215798378, 0.13680993020534515, 0.6688379049301147, 0.23016014695167542, -0.055972225964069366, 0.3282470703125, 0.5752294063568115, -0.44165679812431335, 0.7752842903137207, 0.2422640174627304, -0.055612701922655106, -0.5313839316368103, 0.7836431860923767, -0.10426615923643112, 0.33392083644866943, 0.2809021472930908, 0.054578766226768494, -0.26319169998168945, -0.4715174436569214, -0.55690598487854, 0.2884529232978821, -0.5575226545333862, -0.4379807710647583, -0.6333227753639221, -0.540149450302124, -0.42266979813575745, 0.07977431267499924, -0.6597080826759338, -0.3522929847240448, -0.5367346405982971, -0.04448584094643593, 0.36598873138427734, 0.44382309913635254, -0.06510623544454575, 0.8030750751495361, -0.7431360483169556, 0.21665024757385254, 0.3169355094432831, 0.3634791076183319, -0.01935151033103466, -0.651154100894928, -0.27462029457092285, 0.2203613668680191, -0.6053996086120605, -0.670257031917572, 0.5336236357688904, 0.09025691449642181, 0.433880478143692, 0.32762041687965393, -0.17708082497119904, 0.6872697472572327, -0.41681015491485596, 0.9288749694824219, 0.4044099450111389, -0.9229360222816467, 0.2425100952386856, -0.30140140652656555, 0.430412232875824, 0.31742584705352783, 0.44471266865730286, -0.4816075265407562, -0.1535557359457016, -0.6646608710289001, -0.6540383696556091, 0.9425833225250244, 0.518890380859375, 0.17849676311016083, -0.01697506196796894, 0.37685537338256836, 0.04374925419688225, 0.12286112457513809, -1.1334693431854248, -0.2607662081718445, -0.5902913212776184, -0.3690245747566223, -0.0851416364312172, -0.09750235080718994, -0.1341385841369629, -0.4985850751399994, 0.7210903763771057, -0.00016366122872568667, 0.7417598962783813, 0.1887456774711609, -0.29585835337638855, 0.044756051152944565, -0.06673521548509598, 0.43243977427482605, 0.587073802947998, -0.3207264542579651, -0.021009964868426323, 0.32869699597358704, -0.6659112572669983, 0.07020390778779984, 0.27585262060165405, -0.03913511708378792, -0.19087925553321838, 0.2982337474822998, 1.0991922616958618, -0.06521784514188766, -0.40442997217178345, 0.5496179461479187, -0.19083400070667267, -0.2133651226758957, -0.23218153417110443, 0.13463586568832397, 0.401504784822464, 0.5275148749351501, 0.19716639816761017, 0.02082105539739132, -0.2831219434738159, -0.4663199484348297, 0.17721223831176758, 0.2480676770210266, -0.23049785196781158, -0.25984594225883484, 0.946298360824585, 0.053502898663282394, -0.2994101047515869, 0.920809268951416, -0.003749438561499119, -0.4488227069377899, 0.715412974357605, 0.6321731209754944, 0.7371522784233093, -0.25310856103897095, 0.27268657088279724, 0.3403295874595642, 0.2769891023635864, -0.043823618441820145, -0.008075537160038948, -0.18429502844810486, -0.7244353294372559, -0.40412744879722595, -0.7952811121940613, -0.33115291595458984, -0.07867196202278137, -0.432320773601532, 0.3487876057624817, -0.40775591135025024, -0.30902135372161865, -0.16700626909732819, 0.06313905864953995, -0.8867495059967041, 0.20041683316230774, 0.3901069760322571, 0.9652429819107056, -0.6329011917114258, 0.9997471570968628, 0.2906258702278137, -0.5399779677391052, -0.8234484195709229, -0.39955347776412964, -0.1437491923570633, -1.0901597738265991, 0.40710416436195374, 0.23832377791404724, 0.2174680083990097, 0.1253891885280609, -0.6747868657112122, -0.8913180232048035, 1.6027129888534546, 0.540106475353241, -0.47772252559661865, -0.2591317296028137, 0.4468904137611389, 0.484002023935318, -0.3936789929866791, 0.6053823828697205, 0.622531533241272, 0.32861819863319397, 0.4007643461227417, -0.8498242497444153, 0.06965506076812744, -0.28692594170570374, -0.09349092841148376, -0.0050247726030647755, -0.8788284063339233, 1.1314327716827393, -0.11953847855329514, -0.1343386322259903, 0.2491864264011383, 0.661641001701355, 0.3230189383029938, 0.24072441458702087, 0.26538440585136414, 0.8082747459411621, 0.5501112341880798, -0.3892839848995209, 1.1532962322235107, -0.312164306640625, 0.6186399459838867, 0.9036338925361633, 0.24437353014945984, 0.5818944573402405, 0.34454989433288574, -0.1893279105424881, 0.5290157794952393, 0.9557753205299377, -0.37943321466445923, 0.43949076533317566, -0.012043993920087814, -0.14376287162303925, -0.2206784188747406, 0.21997979283332825, -0.4697624742984772, 0.4112270772457123, 0.18541055917739868, -0.5273546576499939, -0.11210771650075912, 0.19783857464790344, 0.12776140868663788, -0.4985501766204834, -0.1277228742837906, 0.5886626243591309, 0.15860505402088165, -0.545150876045227, 0.7409213781356812, -0.012247998267412186, 0.7247791290283203, -0.5405864715576172, 0.18237780034542084, -0.3247165381908417, 0.2142368108034134, -0.2163965106010437, -0.6762850284576416, 0.22446796298027039, -0.017141813412308693, 0.13538819551467896, -0.2642103135585785, 0.3032133877277374, -0.25255584716796875, -0.39801016449928284, 0.14701604843139648, 0.33632615208625793, 0.15940921008586884, -0.17313829064369202, -0.8155320286750793, 0.03925739601254463, 0.0066242581233382225, -0.524548351764679, 0.19874081015586853, 0.09481097757816315, 0.3041462302207947, 0.6843703985214233, 0.6972509622573853, -0.12187981605529785, 0.2599438726902008, -0.16193541884422302, 1.0045008659362793, -0.6997896432876587, -0.1840362399816513, -0.9672631621360779, 0.6570799946784973, 0.01953287422657013, -0.3604786992073059, 0.6642941236495972, 0.6206086874008179, 0.8285954594612122, -0.04118514806032181, 0.3920668065547943, -0.1393015831708908, 0.025084510445594788, -0.44957435131073, 0.8885330557823181, -0.4260534644126892, 0.23828421533107758, -0.18285982310771942, -1.1172288656234741, -0.32027673721313477, 0.5194752812385559, -0.32654300332069397, 0.1451472043991089, 0.5841291546821594, 0.7709261178970337, -0.22027245163917542, 0.13778631389141083, 0.15159595012664795, 0.2814103364944458, 0.3465859889984131, 0.8281594514846802, 0.859180748462677, -0.6437644362449646, 0.6922560334205627, -0.449939489364624, -0.1329626590013504, -0.054113198071718216, -0.6986047625541687, -1.021116018295288, -0.4951094090938568, -0.19909487664699554, -0.43758949637413025, -0.06323853880167007, 0.9350410103797913, 0.9508828520774841, -0.6492702960968018, -0.2906928062438965, -0.14221051335334778, -0.046590227633714676, -0.06679124385118484, -0.1851082742214203, 0.4827429950237274, -0.058362990617752075, -0.7788378000259399, 0.15557561814785004, 0.047828346490859985, 0.3051433265209198, -0.12284650653600693, -0.159073606133461, -0.3278244733810425, 0.0681769847869873, 0.4895060360431671, 0.2403601109981537, -0.5102334022521973, -0.1982877254486084, 0.03948557376861572, -0.04480957239866257, 0.47664859890937805, 0.4201362729072571, -0.7120639085769653, 0.25771626830101013, 0.27632367610931396, 0.4207702577114105, 1.2377128601074219, -0.056111421436071396, 0.42577338218688965, -0.5029066801071167, 0.19351781904697418, 0.23384881019592285, 0.4897836744785309, 0.3237425982952118, -0.2756551206111908, 0.5591341257095337, 0.35698992013931274, -0.5824355483055115, -0.7382670044898987, 0.03163298964500427, -1.0335782766342163, -0.1415073126554489, 1.037147045135498, -0.2515278160572052, -0.5070170760154724, 0.3537195026874542, -0.2467774897813797, 0.5944550037384033, -0.12663497030735016, 0.6704068183898926, 0.5636889338493347, -0.1353336125612259, -0.4915834069252014, -0.31480538845062256, 0.39975255727767944, 0.3216741979122162, -0.6594235301017761, -0.20920830965042114, 0.1349557489156723, 0.5225232243537903, 0.12678158283233643, 0.4103700816631317, -0.19161801040172577, 0.3389486074447632, 0.039056725800037384, 0.29171404242515564, -0.42067232728004456, -0.13828569650650024, -0.1790526658296585, 0.13137152791023254, -0.3437444865703583, -0.2058132141828537 ]
fxmarty/tiny-mpt-random-remote-code
fxmarty
"2023-07-06T05:11:36Z"
19,781
0
transformers
[ "transformers", "pytorch", "mpt", "text-generation", "custom_code", "license:mit", "text-generation-inference", "region:us" ]
text-generation
"2023-07-06T04:45:38Z"
--- license: mit task: - text-generation --- For testing purposes.
[ -0.5850430727005005, -0.7576239109039307, 0.47940921783447266, 0.3874553143978119, -0.5333606600761414, -0.283216267824173, 0.40974655747413635, -0.03797595575451851, -0.04036017134785652, 0.39876043796539307, -0.4355977773666382, -0.11054923385381699, -0.03590137138962746, 0.31593382358551025, -0.9885551929473877, 1.181498646736145, -0.24686114490032196, -0.03693618252873421, -0.36355558037757874, -0.13364900648593903, -0.5744151473045349, -0.6195299029350281, -0.6893091797828674, -0.07849159091711044, 0.8357560634613037, 0.9187631607055664, 0.9041498303413391, 0.12659157812595367, 0.588681161403656, 0.42277583479881287, 0.7442326545715332, -0.30827927589416504, -0.12924695014953613, 0.08532250672578812, 0.038468290120363235, -0.7048845291137695, -0.201251819729805, 0.5757594704627991, 0.6342512369155884, 1.0139080286026, 0.22805805504322052, 0.4002598226070404, -0.5149776935577393, 0.7107534408569336, -1.0142898559570312, -0.235182985663414, 0.29927483201026917, 0.22541339695453644, -0.34987592697143555, -0.3854012191295624, -0.14868560433387756, -0.9546692967414856, 0.10589519888162613, -0.5392245650291443, 0.41245269775390625, 0.1720530390739441, 0.9197311997413635, -0.16007740795612335, -0.5856189727783203, 0.14513473212718964, -0.42209526896476746, 0.616802453994751, 0.049476515501737595, 1.0882230997085571, 0.5687608122825623, 0.41661515831947327, -0.17666949331760406, -0.7133969664573669, -0.405011385679245, -0.6473686099052429, -0.08874640613794327, 0.12524886429309845, 0.13715672492980957, 0.24633930623531342, 0.5163741707801819, 0.8474008440971375, -0.681725800037384, -0.4747281074523926, -0.7641578316688538, 0.023416927084326744, 0.6032479405403137, 0.13658495247364044, 0.9799955487251282, 0.3894416391849518, -0.44806352257728577, -0.000428617000579834, -0.977961003780365, 0.16505958139896393, 0.20519573986530304, 0.5894050002098083, 0.032508548349142075, 0.8256349563598633, 0.04895852878689766, 0.5535483956336975, -0.15829436480998993, 0.15046513080596924, 0.21213753521442413, -0.22309787571430206, -0.4673607647418976, 0.34758031368255615, -0.07335010915994644, 0.6020863652229309, 0.15077680349349976, -0.03211496025323868, -0.5176813006401062, 0.35259711742401123, 0.31301870942115784, -1.3884700536727905, -0.5073469877243042, 0.12466941028833389, -0.4566892683506012, -0.4133260250091553, -0.017514953389763832, -0.6870746612548828, -0.1114981397986412, -0.376999169588089, 0.5842112302780151, -0.2769099473953247, 0.04062335193157196, 0.12988698482513428, -1.2873988151550293, 0.00736317178234458, -0.2257785052061081, -0.7151088714599609, 0.4443686306476593, 0.29380306601524353, 0.781226396560669, -0.08256519585847855, -0.7232831120491028, -0.8389940857887268, 0.01859690435230732, -0.6537845730781555, 0.7206308841705322, -0.34962496161460876, -0.8881440758705139, 0.07684449106454849, 0.6503652334213257, -0.08546900004148483, -0.5235633254051208, 0.8375820517539978, -0.7000610828399658, -0.04503903165459633, -0.41458532214164734, -0.267902672290802, -0.24860318005084991, 0.13616301119327545, -0.46545323729515076, 1.314548373222351, 0.5356684327125549, -0.19123250246047974, 0.830689013004303, -0.6580461859703064, -0.6505871415138245, 0.4141378402709961, -0.22172516584396362, -0.4166518747806549, 0.27482473850250244, -0.4762299954891205, -0.16550599038600922, -0.1306944638490677, -0.19408948719501495, -0.2673697769641876, -0.7574918866157532, 0.3885211646556854, -0.11015647649765015, 1.0656818151474, 0.34980663657188416, -0.4861105978488922, -0.1285717934370041, -0.4392569959163666, 0.30177247524261475, -0.12352368980646133, -0.5064875483512878, -0.6105729937553406, 0.24447624385356903, -0.20093829929828644, -0.5174936652183533, -0.45413604378700256, -0.7583281397819519, -0.19927816092967987, -0.5500954985618591, -0.2485836297273636, 0.42941197752952576, 0.0738968551158905, 0.21383510529994965, -0.7331483364105225, 0.725286066532135, 0.010803431272506714, 0.320300817489624, 0.4896874725818634, -0.8917930722236633, -1.1028012037277222, -0.24354957044124603, 0.5497361421585083, 0.6860089898109436, -0.014027412049472332, 0.445535272359848, 0.6898589730262756, -0.6740382313728333, -0.2529378831386566, 0.10112138837575912, 0.43189916014671326, 0.16931037604808807, -0.216444730758667, -0.19597254693508148, -0.7061994075775146, -1.0149682760238647, -0.07621067017316818, 0.0023170113563537598, -0.34298014640808105, -0.19010595977306366, 0.8130601048469543, -0.3032476603984833, 0.8216364979743958, -0.5805770754814148, -0.1672566533088684, 0.1620793342590332, -0.3012271821498871, 0.08879175037145615, 0.34301450848579407, 0.9996178150177002, -1.018229365348816, -0.47491005063056946, 0.09337401390075684, -0.3046601116657257, -0.2727119028568268, 0.1048809289932251, -0.0956234261393547, -0.17522485554218292, 0.6868047714233398, -0.20395497977733612, 0.6566383242607117, 0.6555318832397461, -0.4456762969493866, 0.8033833503723145, -0.44624510407447815, 0.4391787052154541, -0.09823708981275558, 0.11770419031381607, -0.12771567702293396, -0.5064122080802917, -0.48133957386016846, 0.32836320996284485, 0.17150993645191193, -0.6625722050666809, -0.22667013108730316, 0.6331503987312317, -0.39338985085487366, -0.15461738407611847, -0.44924530386924744, 0.3993231952190399, 0.16332800686359406, -0.6364688277244568, -0.5102247595787048, 1.5988177061080933, 0.4607119560241699, -1.5301321744918823, 0.6080262660980225, -0.07962539792060852, 0.17944271862506866, 0.957766592502594, -0.45113077759742737, 0.11415550857782364, 0.10817494243383408, -0.5118957757949829, -0.9504311084747314, -0.35031405091285706, 0.1015479788184166, -0.42748352885246277, -0.34563419222831726, 0.3819406032562256, -0.005101303104311228, -0.6729466915130615, -0.3028936982154846, 0.40986886620521545, 0.7455306053161621, -0.787682056427002, 0.5634922981262207, 0.5221187472343445, 0.25233954191207886, -0.2162727564573288, -1.0970964431762695, -0.5255588889122009, -0.45101550221443176, -0.5537098050117493, -0.08256850391626358, -0.32633155584335327, -0.5756420493125916, -0.03853428363800049, -0.17137348651885986, -0.5510569214820862, 0.23921020328998566, 0.709183931350708, 0.00833234190940857, -0.5139180421829224, 0.2725110948085785, -0.21860598027706146, -0.397859126329422, 0.42173704504966736, -0.0765669196844101, 0.22991733253002167, -0.06892803311347961, -0.5899604558944702, -0.2644384205341339, 1.0496785640716553, 0.1200934424996376, -0.08820107579231262, 0.17282097041606903, 0.056335363537073135, -0.3479568660259247, -0.44922444224357605, -0.5859086513519287, -0.1569739729166031, -0.7321376204490662, 0.2192722111940384, -0.6324713230133057, -0.7096691131591797, 0.5233389735221863, -0.3149799108505249, -0.08990410715341568, 0.3434009552001953, 0.5600984692573547, -0.27030596137046814, 0.8796465992927551, 0.3193960189819336, 0.38219523429870605, 0.15275885164737701, 0.4007844626903534, 0.8802183270454407, -0.6362218260765076, -0.07479353994131088, -0.8406007885932922, -0.20482037961483002, -0.2875889837741852, -0.2176944464445114, 0.27924731373786926, 0.10616295784711838, -0.26492249965667725, 0.0778275802731514, -0.7712609171867371, 0.9832851886749268, 0.7983284592628479, 0.14239801466464996, 0.13202176988124847, -0.5851818919181824, -0.2802293598651886, -0.06400427967309952, 0.12506403028964996, -0.5452799797058105, 1.0119590759277344, 0.12613745033740997, 0.7017967700958252, -0.16678930819034576, 0.13994933664798737, 0.1782115250825882, 0.8857399821281433, -1.1775015592575073, 0.5617818236351013, -0.41546130180358887, -1.5067691802978516, -0.15458214282989502, 0.35312971472740173, -1.5976735353469849, -0.10887493938207626, 0.5421834588050842, -0.3761569559574127, 0.024562055245041847, 0.051850300282239914, -0.3691120147705078, 0.057653650641441345, -1.0071862936019897, 0.9631237387657166, -0.269369512796402, 0.3780260980129242, -0.07494658976793289, -0.012049208395183086, 0.08169222623109818, 0.012864823453128338, -0.3482123613357544, -0.008329243399202824, -0.14794020354747772, 0.8841531872749329, -0.16757667064666748, 0.5328902006149292, -0.2054104059934616, 0.48164382576942444, 0.37607213854789734, 0.28169095516204834, -0.13076166808605194, 0.13803088665008545, 0.033971499651670456, -0.626264750957489, 0.7472190260887146, -0.10398897528648376, -0.2833356261253357, 0.2789475619792938, -0.42692723870277405, -0.9214956760406494, -0.835143506526947, -0.3206096291542053, -0.11495530605316162, 0.35092341899871826, -0.029630526900291443, 0.5858882069587708, -0.2265949249267578, 0.6254595518112183, 0.8397027850151062, -0.18518032133579254, -0.050430238246917725, 0.3896515369415283, -0.5300200581550598, 0.3047260344028473, 0.542868435382843, -0.08822914958000183, 0.5226581692695618, -0.17195267975330353, 0.6071151494979858, -0.1822061985731125, -0.7220862507820129, -0.058389630168676376, -0.15569579601287842, -0.9651396870613098, 0.040521275252103806, -0.2545434534549713, -0.21476255357265472, -0.38769158720970154, -0.6780986785888672, -0.3334689140319824, -0.07853414863348007, -0.03634130582213402, -0.36618518829345703, 0.5178577303886414, 0.5491520762443542, -0.343778520822525, 0.3415874242782593, -0.5465531349182129, 0.5537422299385071, 0.8840410113334656, 0.297331303358078, -0.8009889721870422, 0.05554533004760742, 0.09178849309682846, -0.1039886474609375, -0.5140964388847351, -0.9569365978240967, 0.10623711347579956, 0.15922486782073975, 0.6668513417243958, 0.48306989669799805, -0.11420366913080215, 0.7998601794242859, -0.19474221765995026, 0.7098662257194519, 0.04867105558514595, -0.9548530578613281, 1.1548579931259155, -0.6338003277778625, -0.11912590265274048, 1.0088332891464233, 0.7700434327125549, -0.7579569220542908, -0.44390344619750977, -0.5870320200920105, -0.44867071509361267, 0.31165966391563416, 0.0014350017299875617, 0.06172749772667885, -0.14899525046348572, 0.7949895858764648, 0.04614350199699402, 0.009564477019011974, -0.16562514007091522, -0.39663079380989075, 0.38041701912879944, 0.2126501053571701, -0.09009937196969986, -0.09276013821363449, -0.720697820186615, -0.5727797150611877, 0.19672232866287231, -0.03033365122973919, 0.6055863499641418, 0.7750892639160156, 0.06904228031635284, -0.11785534024238586, 0.0009904842590913177, 0.6450487375259399, 0.9284086227416992, -0.615212619304657, 0.23375427722930908, 0.4341396987438202, -1.1995856761932373, 0.44550585746765137, 0.11389698833227158, -0.31359657645225525, 0.232010617852211, -0.5927892327308655, 0.1237809956073761, 0.18699617683887482, -0.5304179787635803, 0.6891149878501892, -0.1929047554731369, -0.454809308052063, -0.8600665926933289, 0.48730728030204773, -0.07206180691719055, 0.03611111640930176, 0.10530450195074081, -0.06314345449209213, 0.5588743686676025, -1.3757683038711548, 0.880498468875885, 0.3495916426181793, -0.33766767382621765, -0.09848594665527344, 0.7375420928001404, 0.30906710028648376, -0.7579102516174316, 1.1704661846160889, -0.519900381565094, -0.5636746287345886, 0.6310517191886902, 0.7829020023345947, 0.4374225437641144, -0.594819188117981, 0.4371635615825653, 0.4515240490436554, 0.3103448152542114, -0.034684598445892334, 1.1011065244674683, 0.3843578100204468, -0.5404810309410095, 0.10584495216608047, -0.278390496969223, -0.7871053814888, -0.45277297496795654, -0.6250256896018982, 0.43749967217445374, -0.6943966746330261, -0.38525745272636414, -0.05580487474799156, -0.2855079770088196, -0.706092119216919, 0.9028449654579163, 0.08893692493438721, 1.376860499382019, -0.8839907050132751, 0.5864288806915283, 0.3207753598690033, -0.5600101351737976, -0.8628377318382263, -0.4598899781703949, -0.29175007343292236, -0.8616296648979187, 0.8679897785186768, 0.06983865052461624, 0.33398008346557617, -0.4609662592411041, -0.23088543117046356, -0.689001739025116, 0.584571897983551, 0.4154977798461914, 0.062325891107320786, 0.2329624444246292, 0.2470625638961792, 0.3393295705318451, -0.06712116301059723, 0.6332881450653076, 0.77735835313797, 0.8370798230171204, -0.39007535576820374, -0.9711431860923767, 0.36898359656333923, -0.45086607336997986, -0.15096507966518402, 0.5138017535209656, -0.5678422451019287, 1.0041042566299438, 0.05073675513267517, -0.08086901903152466, 0.06769164651632309, 0.44874003529548645, 0.9279710650444031, 0.5110166668891907, 0.7850849628448486, 0.3537324368953705, 1.020890235900879, -0.8952712416648865, 1.8232698440551758, 0.3546292781829834, -0.00537156080827117, 0.5420507788658142, -0.08067083358764648, 0.6050183176994324, 0.7222554087638855, -0.3415473997592926, 0.3966090977191925, 1.0428110361099243, -0.13328544795513153, 0.9275272488594055, 0.8437142968177795, -0.006801416631788015, -0.0275834109634161, -0.19477726519107819, -0.7091612815856934, 0.2753879129886627, 0.08403579145669937, -0.1273573338985443, -0.2782911956310272, -0.049716006964445114, -0.04442046210169792, -0.40525099635124207, -0.19487738609313965, -0.21740400791168213, 0.3399803638458252, -0.9598701596260071, 0.17748670279979706, -0.6820966601371765, -0.0017716152360662818, -0.9849876761436462, 0.10199584811925888, 0.023187613114714622, 0.7352549433708191, -0.1209607645869255, -0.8235471248626709, 0.7824223041534424, -0.38105425238609314, 0.4228080213069916, -0.19321788847446442, 0.7182617783546448, 0.2926865220069885, -0.5158503651618958, 0.46694931387901306, -0.03418954089283943, 0.4419780671596527, -0.2122013121843338, -0.552455723285675, -0.13720928132534027, -0.3798846900463104, -0.44308051466941833, 0.03472738340497017, 0.4143744707107544, 0.3059140741825104, 0.3523845374584198, 0.549615204334259, 0.06424184888601303, -0.012337337248027325, 0.34915104508399963, 0.7663881182670593, -0.9044744968414307, -0.6994567513465881, -0.7524599432945251, 0.8060913681983948, -0.09143412858247757, -1.0550751686096191, 0.8753917813301086, 1.0379122495651245, 0.8991727828979492, 0.006553620100021362, 0.5120634436607361, 0.03993888571858406, 0.08993450552225113, -0.4275512993335724, 0.5140600800514221, -0.8435259461402893, -0.8624649047851562, 0.23906643688678741, -0.7765376567840576, -0.4030615985393524, 0.6975679993629456, 0.30316123366355896, 0.14255475997924805, 1.5506782531738281, 0.7689152359962463, -0.14600136876106262, 0.5603596568107605, 0.2745414674282074, -0.3626975119113922, 0.5231747031211853, 0.5526342988014221, 1.0702357292175293, -0.3367163836956024, 0.4448920488357544, -0.5403943657875061, -0.42430511116981506, 0.2022174596786499, -0.4209236800670624, -1.5378466844558716, -0.6207641959190369, -0.32702019810676575, -0.39873483777046204, 0.2282894402742386, 0.5399335026741028, 1.02516508102417, -0.7601630091667175, -0.532964289188385, 0.019303372129797935, -0.19553720951080322, -0.4296661615371704, -0.07039639353752136, 0.2908783555030823, -0.33768430352211, -0.41166558861732483, 0.6180097460746765, 0.1334381401538849, 0.1700545996427536, -0.43340566754341125, 0.26039716601371765, 0.017565986141562462, -0.01882770098745823, -0.005681032780557871, 0.1393158882856369, -0.14128273725509644, -0.8041785359382629, 0.03549296036362648, -0.11653923243284225, 0.2158447951078415, 0.9155264496803284, -0.2309720665216446, 0.42016181349754333, 0.9069664478302002, 0.7822186350822449, 0.08245875686407089, -0.14260609447956085, 1.0672920942306519, -0.7403395175933838, 0.6832630038261414, 0.5800251960754395, 0.41166794300079346, -0.38829144835472107, -0.8667485117912292, 0.8551651835441589, 0.2914621829986572, -1.0171194076538086, -1.2771602869033813, -0.03017696924507618, -1.0276085138320923, 0.12631170451641083, 1.1225411891937256, -0.032794054597616196, -0.7345800995826721, -0.4289071559906006, -0.09927348047494888, 0.23030178248882294, -0.2918141186237335, 0.7663729190826416, 0.8307790160179138, -0.029849080368876457, -0.1816374510526657, -1.234552025794983, 0.7312252521514893, 0.4942047595977783, -1.265668272972107, -0.5154266357421875, -0.22719056904315948, 0.3014945089817047, 0.23316140472888947, 0.8703792095184326, -0.12362664192914963, 1.0594393014907837, 0.3049166798591614, -0.15225540101528168, 0.36339911818504333, 0.06825319677591324, 0.11934850364923477, 0.09345852583646774, 0.08327151089906693, -0.8766131401062012 ]
GanymedeNil/text2vec-large-chinese
GanymedeNil
"2023-08-05T02:28:03Z"
19,773
651
transformers
[ "transformers", "pytorch", "safetensors", "bert", "feature-extraction", "text2vec", "sentence-similarity", "zh", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2023-03-07T03:32:14Z"
--- license: apache-2.0 language: - zh pipeline_tag: sentence-similarity tags: - text2vec - feature-extraction - sentence-similarity - transformers --- Based on the derivative model of https://huggingface.co/shibing624/text2vec-base-chinese, replace MacBERT with LERT, and keep other training conditions unchanged。 Refer to the following items for usage: https://github.com/shibing624/text2vec Talk to me: https://twitter.com/GanymedeNil
[ 0.048580631613731384, -0.7881693243980408, 0.36741721630096436, 0.1403253674507141, -0.31358662247657776, -0.10232055932283401, -0.12070084363222122, -0.6097107529640198, 0.28545281291007996, 0.7526096701622009, -0.6195964217185974, -0.45644238591194153, -0.7402839660644531, -0.2516648471355438, 0.04304678738117218, 1.0259102582931519, -0.5539949536323547, 0.2396964579820633, 0.31959134340286255, -0.48947906494140625, -0.3860422372817993, -0.6549682021141052, -0.9120565056800842, -0.47827938199043274, 0.339982807636261, 0.511300265789032, 0.6023152470588684, 0.1239713653922081, 0.4695267975330353, 0.22118735313415527, -0.007492013741284609, 0.09862039238214493, -0.4693955183029175, -0.08805584162473679, 0.06819649785757065, -0.33050549030303955, -0.7148264050483704, 0.04410088062286377, 0.49339190125465393, 0.38594162464141846, -0.048818089067935944, -0.3315955102443695, 0.11418325453996658, 0.659457802772522, -0.3982102572917938, 0.1856738030910492, -0.5516370534896851, 0.2113521695137024, 0.2608644366264343, -0.0770285353064537, -0.7102311849594116, -0.20024867355823517, 0.09341836720705032, -0.5888626575469971, 0.12399380654096603, -0.40280863642692566, 1.1392382383346558, -0.11961589008569717, -0.5704454779624939, 0.012633021920919418, -0.7899894714355469, 0.9201932549476624, -0.5117504596710205, 0.6452147960662842, 0.7275524139404297, 0.3343081772327423, 0.10976503044366837, -0.8632366061210632, 0.029405998066067696, -0.5789775252342224, -0.06542279571294785, 0.43922483921051025, 0.13190406560897827, -0.14915402233600616, 0.4513910412788391, -0.2395859807729721, -0.6783008575439453, -0.23689842224121094, -0.6514018774032593, -0.330725759267807, 0.40294039249420166, 0.00878908671438694, 0.6218762993812561, 0.05884181335568428, -0.5992329120635986, -0.198625385761261, -0.8510500192642212, 0.28736385703086853, 0.22730259597301483, 0.2204846441745758, -0.23048840463161469, 0.5010541677474976, 0.13137827813625336, 0.2789512574672699, 0.1049967035651207, 0.09142953902482986, 0.790174126625061, -0.05134592950344086, -0.25847867131233215, -0.025208191946148872, 0.7950336933135986, 0.47208258509635925, 0.642004668712616, 0.10353843867778778, -0.2257157266139984, -0.28517472743988037, 0.25622791051864624, -0.9292303323745728, -0.6345892548561096, -0.13214506208896637, -0.4017232656478882, -0.025503218173980713, 0.4238843023777008, -0.1708935648202896, 0.05129201337695122, -0.27784740924835205, 0.1620405614376068, -0.8937114477157593, -0.43220755457878113, -0.24678921699523926, -0.2100868821144104, 0.24002140760421753, 0.4180574417114258, -1.2314389944076538, 0.6181301474571228, 0.3397040367126465, 0.9355624914169312, -0.05250152572989464, -0.10832314193248749, -0.6405900120735168, 0.16331051290035248, -0.28708261251449585, 0.11862338334321976, -0.2566849887371063, -1.0023157596588135, -0.06358139961957932, 0.41771766543388367, 0.23882164061069489, -0.33358630537986755, 0.5580089688301086, -0.23978887498378754, 0.257356196641922, -0.30317825078964233, 0.03313733637332916, 0.04383263364434242, 0.12949785590171814, -0.8530442714691162, 1.4197243452072144, 0.5459963083267212, -0.9849100708961487, -0.048923514783382416, -0.556596577167511, -0.7217879891395569, -0.14342142641544342, 0.023235993459820747, -0.6003004312515259, -0.3997933566570282, 0.30112457275390625, 0.2872687578201294, 0.21459130942821503, -0.12603138387203217, 0.01848124898970127, -0.46655941009521484, 0.11505889892578125, -0.1634180098772049, 1.1072920560836792, 0.2338940054178238, -0.42252999544143677, -0.21746692061424255, -0.759718656539917, -0.06770475953817368, -0.11664795875549316, -0.15050145983695984, -0.7102507948875427, 0.001647662022151053, 0.4355645477771759, 0.08914348483085632, 0.18347801268100739, -0.5234075784683228, 0.230784609913826, -0.5835441946983337, 0.43758532404899597, 0.6121530532836914, 0.20379213988780975, 0.708892285823822, -0.11628404259681702, 0.29210197925567627, 0.11378920823335648, 0.42659491300582886, 0.27120018005371094, -0.7070243954658508, -0.8092134594917297, -0.18975119292736053, 0.24345658719539642, 0.7902227640151978, -1.0782281160354614, 0.14755524694919586, -0.011406552977859974, -0.3322283923625946, -0.2512591481208801, 0.041529878973960876, -0.09547948837280273, 0.3069741129875183, 0.6967847943305969, -0.28326094150543213, -0.7374355792999268, -0.7203720211982727, -0.030503900721669197, -0.3931773006916046, 0.09460581094026566, 0.12007921189069748, 0.4455064833164215, -0.5351854562759399, 0.6574694514274597, -0.3020738661289215, -0.04261595383286476, -0.41076287627220154, 0.21427200734615326, 0.16377295553684235, 0.8958826661109924, 0.8013395667076111, -0.9159289002418518, -0.859728217124939, 0.15250156819820404, -0.2601425349712372, -0.14163552224636078, -0.39051780104637146, -0.446079283952713, 0.2874630093574524, 0.7773382663726807, -0.36102238297462463, 0.6851823329925537, 0.4366244375705719, -0.03663867712020874, 0.21795016527175903, -0.24842838943004608, 0.25219208002090454, -1.2880148887634277, -0.048373233526945114, 0.46242859959602356, -0.6514684557914734, -0.5490779280662537, -0.09772512316703796, 0.3735615015029907, 0.4471045434474945, -0.8786311745643616, 0.6988527774810791, -0.46434974670410156, 0.39601394534111023, -0.1339396834373474, 0.17149032652378082, 0.05747484788298607, 0.3154389560222626, 0.29107028245925903, 0.6470926403999329, 0.41121694445610046, -0.5818247199058533, 0.29437562823295593, 0.31946584582328796, -0.06211505085229874, -0.022022226825356483, -0.9602274298667908, -0.06810195744037628, 0.15836085379123688, 0.49398747086524963, -0.8538139462471008, 0.1846514791250229, 0.882070004940033, -0.7288839221000671, 0.4088567793369293, -0.1708642840385437, -0.4476938247680664, -0.18538807332515717, -0.7607889771461487, 0.37696370482444763, 1.1971808671951294, -0.6882301568984985, 0.6639496684074402, -0.04715150222182274, -0.04678018391132355, -0.6887698769569397, -1.2621891498565674, -0.20173445343971252, 0.21269892156124115, -0.3252929449081421, 0.6324129700660706, -0.2952926754951477, 0.012767043896019459, -0.25352782011032104, 0.02997949905693531, -0.36289677023887634, 0.05546936020255089, 0.5427553653717041, 0.557466447353363, -0.15682858228683472, -0.029268484562635422, 0.4068892300128937, -0.28772345185279846, -0.09479804337024689, -0.025330908596515656, 0.20915260910987854, 0.1228666752576828, -0.16900734603405, -0.5544394254684448, 0.11770976334810257, 0.3567889928817749, 0.018834281712770462, 0.6833194494247437, 0.946980893611908, -0.2930164039134979, -0.111490897834301, -0.13267554342746735, -0.3823492228984833, -0.5215437412261963, 0.3835020959377289, -0.5201728940010071, -0.7834939956665039, 0.4276654124259949, -0.07235698401927948, 0.06745129078626633, 0.7524824142456055, 0.946085512638092, 0.025995034724473953, 0.9228691458702087, 0.8948169946670532, -0.09696207195520401, 0.8419527411460876, -0.3522995710372925, 0.07261259853839874, -1.0525784492492676, -0.4163617193698883, -0.1645207554101944, 0.15908826887607574, -0.7871856093406677, -0.42958077788352966, -0.08680135756731033, 0.11764680594205856, -0.33424142003059387, 0.8641805648803711, -0.349311500787735, 0.26498329639434814, 0.30083751678466797, 0.15839022397994995, -0.10343170166015625, 0.1934756189584732, -0.5096880793571472, -0.23101820051670074, -0.24099908769130707, -0.4806114435195923, 0.8146644830703735, 0.8439006805419922, 0.9236418008804321, 0.2362220287322998, 0.6082522869110107, 0.09613308310508728, 0.3846852481365204, -0.6272591948509216, 0.38577234745025635, -0.2234262079000473, -0.5666540265083313, -0.02563309110701084, -0.4810190498828888, -0.523149311542511, 0.07826250046491623, -0.12610381841659546, -1.0536621809005737, -0.21973830461502075, -0.0663812905550003, 0.10229576379060745, 0.30130788683891296, -0.44053328037261963, 0.6621426939964294, -0.14764578640460968, -0.262432724237442, 0.06898584216833115, -0.6122142672538757, 0.34328195452690125, 0.11496047675609589, 0.14251987636089325, 0.09183632582426071, -0.0002661835169419646, 0.661759614944458, -0.7798005938529968, 1.0236382484436035, 0.00555215822532773, -0.17174072563648224, 0.6012422442436218, -0.02905162051320076, 0.5382006168365479, 0.3750419616699219, -0.09647083282470703, 0.1843709498643875, -0.005550135392695665, -0.4407539367675781, -0.5693088173866272, 0.7644639611244202, -1.2431105375289917, -0.05374211072921753, -0.40503042936325073, 0.09218242019414902, -0.0831885114312172, -0.2284223437309265, 0.6911776065826416, 0.3956642150878906, -0.682295024394989, 0.056253161281347275, 0.3231646716594696, 0.0674685537815094, 0.5829123854637146, 0.20218604803085327, -0.06511109322309494, -0.4541211426258087, 0.7806581258773804, -0.09770369529724121, 0.3124369978904724, 0.7732256054878235, 0.12849770486354828, -0.22923912107944489, -0.05693650245666504, -0.4835876226425171, 0.31929540634155273, -0.8164856433868408, 0.16341525316238403, -0.6653883457183838, -0.5759208798408508, -0.4796488583087921, -0.22530628740787506, -0.34006452560424805, -0.7233943343162537, -0.921560525894165, -0.29736772179603577, 0.5453588962554932, 0.34038689732551575, -0.1815405637025833, 0.7186246514320374, -0.9068682193756104, 0.14502355456352234, 0.12226109951734543, 0.011417307890951633, -0.24846933782100677, -1.1181057691574097, -0.5882959961891174, 0.2575300335884094, -0.5004811882972717, -0.5231050252914429, 0.25797736644744873, -0.11647488921880722, 0.5768851637840271, 0.1687323898077011, 0.008652481250464916, 0.2854686975479126, -0.8070573210716248, 1.066744327545166, 0.8673864006996155, -1.0777733325958252, 0.5603534579277039, -0.036989446729421616, -0.009618479758501053, 0.511861264705658, 0.44146424531936646, -0.615610659122467, -0.3744197189807892, -0.6627312898635864, -0.8761834502220154, 0.5565059781074524, 0.48520252108573914, 0.4339037239551544, 0.40854308009147644, 0.5866003632545471, 0.16801925003528595, -0.3646587133407593, -1.2679924964904785, -0.32292601466178894, -0.6907106041908264, -0.5676767826080322, 0.26946595311164856, -0.38561952114105225, 0.04610858112573624, -0.5257091522216797, 1.0179630517959595, 0.03783341497182846, 0.18657320737838745, 0.16884669661521912, -0.17643751204013824, -0.09905347228050232, -0.0927167609333992, 0.8092241883277893, 0.5193677544593811, -0.1959400326013565, -0.07547803223133087, 0.3739120662212372, -0.9394990801811218, 0.08951082080602646, -0.34178826212882996, -0.255161315202713, 0.2722005844116211, 0.5711141228675842, 0.9308242797851562, -0.12159112095832825, -0.43060263991355896, 0.545895516872406, -0.11150698363780975, -0.8833181262016296, -0.4779301583766937, 0.50970059633255, 0.10278547555208206, 0.063006192445755, 0.05949628725647926, 0.14040681719779968, -0.06617781519889832, -0.4111287295818329, 0.32766807079315186, -0.005160446744412184, -1.075178861618042, -0.46527573466300964, 0.6592006683349609, 0.3560182452201843, -0.2685817778110504, 0.47996485233306885, 0.22306041419506073, -0.7813526391983032, 0.5717321038246155, 0.39884817600250244, 0.9359080791473389, -0.3195083737373352, 0.38739013671875, 0.5582983493804932, 0.6321591138839722, -0.2009728103876114, 0.27664127945899963, 0.24719156324863434, -0.5605844855308533, -0.44671308994293213, 0.20125220715999603, -0.4991399645805359, 0.006974317599087954, -0.42553281784057617, 0.6399986743927002, -0.8965248465538025, -0.25781676173210144, -0.15511588752269745, 0.014155248180031776, -0.2313278764486313, 0.4586604833602905, 0.20056676864624023, 0.784573495388031, -0.9321385025978088, 1.3902112245559692, 0.8490813970565796, -0.5786249041557312, -0.7391286492347717, 0.16989068686962128, -0.21096710860729218, -0.7293981909751892, 1.0190762281417847, -0.0778377428650856, -0.3320508301258087, -0.5141430497169495, -0.9379716515541077, -0.3682801425457001, 1.1412121057510376, -0.1556100994348526, -0.5824083089828491, 0.25505152344703674, -0.15872925519943237, 0.5800958275794983, -0.4926896393299103, 0.7135502099990845, 0.21065083146095276, 0.24569298326969147, 0.4888228178024292, -0.5575006008148193, -0.21406878530979156, -0.17496822774410248, 0.29299017786979675, -0.09289931505918503, -0.9029656052589417, 1.1070542335510254, -0.1334773451089859, 0.023138869553804398, 0.1709582656621933, 0.6093116998672485, -0.16205058991909027, -0.14704817533493042, 0.2979970872402191, 0.12245360016822815, 0.41210395097732544, 0.10325546562671661, 0.5565254092216492, -0.1644657701253891, 0.8496698141098022, 1.0874361991882324, -0.20399422943592072, 0.9898819327354431, 0.5445405840873718, -0.049124423414468765, 1.0066688060760498, 0.8910602331161499, -0.18859122693538666, 0.8189591765403748, 0.015077593736350536, -0.059142813086509705, 0.048486579209566116, 0.4523124694824219, -0.5194002389907837, 0.09366631507873535, 0.2892400324344635, -0.39146795868873596, 0.09322173148393631, -0.13333195447921753, 0.14629195630550385, -0.023264767602086067, 0.12056329846382141, 0.40908414125442505, 0.3236502408981323, -0.19215022027492523, 0.7960026264190674, 0.5494969487190247, 0.5249918699264526, -0.6612837314605713, -0.13143236935138702, -0.24707408249378204, 0.13860641419887543, -0.12112745642662048, -0.6216493248939514, 0.09162411838769913, -0.09373558312654495, -0.1636461317539215, -0.22917526960372925, 0.6923023462295532, -0.49537232518196106, -0.6363758444786072, 0.49819257855415344, 0.3032926619052887, 0.033823445439338684, 0.40277430415153503, -1.037508249282837, 0.17760495841503143, 0.42605721950531006, -0.46851155161857605, 0.2398262917995453, 0.4686642587184906, 0.05461983382701874, 0.44896987080574036, 0.4624374508857727, -0.032313402742147446, -0.4433760344982147, 0.48074236512184143, 0.7746576070785522, -0.6650222539901733, -0.4528057277202606, -1.117516040802002, 0.6023854613304138, -0.23043645918369293, -0.2840486466884613, 0.5460887551307678, 0.45956316590309143, 0.5772506594657898, -0.15879522264003754, 0.9533906579017639, 0.18691276013851166, 0.49008607864379883, -0.8753241896629333, 0.7315241098403931, -0.735619306564331, 0.12846793234348297, -0.5120870471000671, -0.8925350308418274, -0.21080008149147034, 1.0789717435836792, -0.020171212032437325, 0.25774505734443665, 1.117946982383728, 0.6565929651260376, -0.26952600479125977, -0.11333633214235306, 0.4657454788684845, 0.18256822228431702, 0.5356239676475525, 0.6342469453811646, 0.7097187042236328, -0.8798654675483704, 0.43347999453544617, 0.06605040282011032, -0.35219481587409973, -0.6242122650146484, -0.8194583654403687, -1.3051872253417969, -0.6346620917320251, -0.602628767490387, -0.7264928817749023, 0.011329468339681625, 0.9866492748260498, 0.7291131615638733, -0.8558934926986694, -0.1911047101020813, -0.03207521140575409, 0.015281748957931995, 0.05090441554784775, -0.14554066956043243, 0.5366062521934509, 0.014713305979967117, -0.7341768145561218, -0.07853969931602478, 0.18531903624534607, 0.6948572397232056, -0.14316654205322266, -0.4414764642715454, -0.09724877029657364, -0.025541149079799652, 0.5903466939926147, 0.31730177998542786, -0.8350790143013, -0.498775452375412, -0.07098709046840668, -0.6332727074623108, 0.34514331817626953, 0.9308515191078186, -0.5161537528038025, 0.16203594207763672, 0.3038480281829834, 0.297329306602478, 0.6610441207885742, 0.021202880889177322, 0.33653974533081055, -0.6663362979888916, 0.540706217288971, -0.054764505475759506, 0.32886385917663574, 0.4434824287891388, -0.38961783051490784, 0.6368134021759033, 0.49944764375686646, -0.1702563315629959, -0.22932091355323792, 0.0444636233150959, -1.3321051597595215, -0.46995869278907776, 1.5212231874465942, -0.12494505196809769, -0.3781050741672516, 0.17638462781906128, -0.8782031536102295, 0.23823975026607513, -0.6907339692115784, -0.000005050138952356065, 0.6697953939437866, -0.008358665741980076, -0.34008166193962097, -0.722811758518219, 0.48193880915641785, 0.2498176097869873, -0.4630061388015747, -0.10343720763921738, 0.10431709885597229, 0.6125583052635193, -0.191725954413414, 1.01811945438385, -0.011851555667817593, 0.10277342796325684, -0.05545764043927193, 0.22745028138160706, 0.29201334714889526, -0.23907329142093658, 0.1767714023590088, -0.522621750831604, 0.06262064725160599, -0.5237067937850952 ]
dafex/indobert-sentiment-analysis
dafex
"2023-01-03T16:51:59Z"
19,768
0
transformers
[ "transformers", "pytorch", "bert", "text-classification", "autotrain", "unk", "dataset:dafex/autotrain-data-indobert-sentiment-analysis", "co2_eq_emissions", "endpoints_compatible", "region:us" ]
text-classification
"2023-01-03T16:50:53Z"
--- tags: - autotrain - text-classification language: - unk widget: - text: "I love AutoTrain 🤗" datasets: - dafex/autotrain-data-indobert-sentiment-analysis co2_eq_emissions: emissions: 1.3428141985163928 --- # Model Trained Using AutoTrain - Problem type: Binary Classification - Model ID: 2713480683 - CO2 Emissions (in grams): 1.3428 ## Validation Metrics - Loss: 0.132 - Accuracy: 0.960 - Precision: 0.966 - Recall: 0.973 - AUC: 0.993 - F1: 0.969 ## Usage You can use cURL to access this model: ``` $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/dafex/autotrain-indobert-sentiment-analysis-2713480683 ``` Or Python API: ``` from transformers import AutoModelForSequenceClassification, AutoTokenizer model = AutoModelForSequenceClassification.from_pretrained("dafex/autotrain-indobert-sentiment-analysis-2713480683", use_auth_token=True) tokenizer = AutoTokenizer.from_pretrained("dafex/autotrain-indobert-sentiment-analysis-2713480683", use_auth_token=True) inputs = tokenizer("I love AutoTrain", return_tensors="pt") outputs = model(**inputs) ```
[ -0.5235259532928467, -0.3885191082954407, 0.2492113709449768, 0.31251272559165955, -0.03304960951209068, 0.09456299245357513, 0.04224327951669693, -0.03576930984854698, -0.025321651250123978, 0.05129548907279968, -0.7853559255599976, -0.6002689599990845, -0.9479767680168152, 0.0850178450345993, -0.41689532995224, 1.0622655153274536, -0.2333708256483078, 0.1909680813550949, -0.10272123664617538, -0.054161690175533295, -0.20172439515590668, -0.8179414868354797, -0.909909725189209, -0.2729102373123169, 0.18495216965675354, 0.16062043607234955, 0.2655666768550873, 0.3679220378398895, 0.4601391851902008, 0.34832897782325745, -0.09722265601158142, -0.21082429587841034, -0.3068336248397827, -0.25096774101257324, 0.04535970464348793, -0.4999736547470093, -0.54410320520401, 0.3260653018951416, 0.6608081459999084, 0.5317488312721252, -0.042090535163879395, 0.2715761959552765, 0.02041175775229931, 0.25771209597587585, -0.4940226674079895, 0.55294269323349, -0.44174090027809143, 0.027935529127717018, 0.5047919750213623, 0.16655638813972473, -0.22919045388698578, -0.08975952863693237, 0.2253785878419876, -0.5967785716056824, 0.19693322479724884, 0.2541070878505707, 1.352338194847107, 0.8841131329536438, -0.3451710343360901, -0.4699346721172333, -0.4204670786857605, 0.8779041171073914, -1.0273911952972412, 0.24546685814857483, 0.4156779944896698, 0.02723664417862892, -0.01054205559194088, -0.8072150349617004, -0.7672973275184631, -0.08442092686891556, -0.390887975692749, 0.25635531544685364, -0.0824471041560173, -0.08218994736671448, 0.23493458330631256, 0.6607376933097839, -0.5817424654960632, 0.01655558869242668, -0.2113589197397232, -0.3906009793281555, 1.0620527267456055, 0.47411248087882996, 0.27735739946365356, -0.3840715289115906, -0.47776052355766296, -0.4862605035305023, 0.10151351243257523, 0.2326275259256363, 0.3800946772098541, 0.16615188121795654, -0.5336442589759827, 0.23815469443798065, -0.39447855949401855, 0.5532927513122559, 0.3453467786312103, 0.03838026896119118, 0.6090254187583923, -0.17402803897857666, -0.3026238977909088, -0.09673258662223816, 1.230790615081787, 0.27067139744758606, -0.19790691137313843, 0.18856917321681976, -0.09242760390043259, 0.14135423302650452, -0.04131193459033966, -1.0904722213745117, -0.4265812635421753, 0.5460053086280823, -0.30247732996940613, -0.527929425239563, 0.28376954793930054, -0.5929784178733826, 0.18455834686756134, -0.4389626979827881, 0.5827295184135437, -0.24200499057769775, -0.6123204231262207, 0.29505160450935364, -0.3242131173610687, 0.4148479402065277, -0.014698649756610394, -0.9158960580825806, 0.13513967394828796, 0.30044326186180115, 0.7927425503730774, -0.1970261186361313, -0.2750098705291748, 0.045426104217767715, -0.3295382261276245, -0.013600246049463749, 0.4759294092655182, -0.24487248063087463, -0.43357688188552856, -0.34165194630622864, 0.38188403844833374, -0.5195107460021973, -0.2672165632247925, 0.5963382124900818, -0.4677317440509796, 0.4759565591812134, 0.07395340502262115, -0.6991418600082397, -0.4512943923473358, 0.2904375195503235, -0.2869413495063782, 1.3394718170166016, 0.4181668758392334, -0.8474658131599426, 0.45724213123321533, -0.8525018692016602, -0.18902377784252167, -0.10096271336078644, -0.025064922869205475, -0.6941729784011841, -0.19783057272434235, 0.03814836964011192, 0.4733937084674835, 0.08343514055013657, 0.4675571024417877, -0.5902979373931885, -0.17866328358650208, 0.07380932569503784, -0.3021785616874695, 1.30051589012146, 0.4281505346298218, -0.6056430339813232, 0.014782650396227837, -1.0922203063964844, 0.037158869206905365, 0.19817890226840973, -0.089052215218544, -0.3226253390312195, -0.5343032479286194, 0.3086684048175812, 0.42659202218055725, 0.2763271629810333, -0.7920430302619934, 0.17756421864032745, -0.29879769682884216, 0.6111834645271301, 0.5678965449333191, 0.08514583855867386, 0.18140627443790436, -0.027747638523578644, 0.2293373942375183, 0.39648327231407166, 0.3139391243457794, 0.38151201605796814, -0.1538434624671936, -1.1251471042633057, -0.4304101765155792, 0.35470378398895264, 0.4404543340206146, -0.25328490138053894, 1.1696184873580933, -0.030201053246855736, -0.8839677572250366, -0.2955360412597656, -0.09933556616306305, -0.07103978097438812, 0.5986278057098389, 0.1930699348449707, -0.5260714292526245, -0.46528491377830505, -0.7301337718963623, -0.13080629706382751, -0.15046583116054535, 0.2636265158653259, 0.2716485559940338, 1.074331283569336, -0.8417856097221375, 1.1555087566375732, -0.8237401843070984, -0.13509227335453033, 0.3005262613296509, 0.6907864809036255, 0.3044443726539612, 0.7508758902549744, 0.8155519366264343, -0.588880181312561, -0.6123755574226379, -0.6638985872268677, -0.8397513628005981, 0.040570806711912155, 0.10530881583690643, -0.49172863364219666, 0.1300804167985916, 0.3425525426864624, -0.37175485491752625, 0.595360279083252, 0.3991759717464447, -0.6699886322021484, 0.3754735589027405, -0.08809388428926468, 0.13340593874454498, -1.0099176168441772, 0.17322419583797455, -0.14483113586902618, -0.3133884370326996, -0.10235036909580231, -0.24261832237243652, -0.09039328992366791, -0.12047673016786575, -0.40421751141548157, 0.7113921046257019, -0.126693457365036, 0.2741548717021942, -0.507980465888977, -0.28578731417655945, 0.40171799063682556, 0.6649180054664612, 0.35093212127685547, 0.5619381070137024, 0.8965436816215515, -0.8173425793647766, 0.5552623867988586, 0.6884773373603821, -0.08914358913898468, 0.3184899091720581, -0.6801832914352417, 0.1888037919998169, -0.005328483413904905, 0.3186805546283722, -1.3248875141143799, -0.5328373908996582, 0.40799325704574585, -0.7048735022544861, 0.30475226044654846, 0.003465201472863555, -0.43941107392311096, -0.47508734464645386, 0.13489216566085815, 0.44105327129364014, 0.4772182106971741, -0.6680408120155334, 0.48450416326522827, 0.2191089689731598, -0.03841736912727356, -0.49244317412376404, -0.807235598564148, -0.29030293226242065, -0.24619556963443756, -0.37579646706581116, 0.025444721803069115, -0.395399808883667, 0.08943653851747513, 0.10987864434719086, 0.0022102934308350086, -0.17377300560474396, 0.21986070275306702, 0.2853216826915741, 0.35752153396606445, 0.24600480496883392, 0.08323482424020767, 0.005481943488121033, -0.25842785835266113, 0.5334656834602356, -0.069059818983078, 0.6578081846237183, -0.4173068106174469, -0.10798785835504532, -0.6119325160980225, 0.005233009811490774, 0.6308121681213379, -0.07891479134559631, 0.937106728553772, 0.9610422253608704, -0.2930992841720581, -0.11401806771755219, -0.3130215108394623, -0.3506533205509186, -0.4596055746078491, 0.36540526151657104, -0.1465756595134735, -0.6878584027290344, 0.5256300568580627, 0.008807217702269554, -0.14973357319831848, 1.0815285444259644, 0.785591185092926, -0.11544401943683624, 1.267712116241455, 0.5230401158332825, -0.12372196465730667, 0.348787397146225, -0.7903376221656799, 0.12442521005868912, -0.662257730960846, -0.17089881002902985, -0.4573710560798645, 0.04128755256533623, -0.5660231113433838, 0.16316279768943787, 0.3133527338504791, -0.14353430271148682, -0.9172502756118774, 0.5366352796554565, -0.8881134986877441, -0.15388059616088867, 0.8055116534233093, -0.012328345328569412, 0.16816136240959167, 0.0014131834032014012, -0.222261443734169, 0.14840003848075867, -0.618281364440918, -0.3318539261817932, 0.9549677968025208, 0.5772246718406677, 0.8297244906425476, -0.21948328614234924, 0.75005042552948, 0.29769012331962585, 0.23447474837303162, -0.8143834471702576, 0.2632982134819031, 0.14506828784942627, -1.0442980527877808, 0.015049556270241737, -0.4528024196624756, -0.5271282196044922, -0.09206400066614151, -0.15144120156764984, -0.2870550751686096, 0.5507232546806335, 0.10741983354091644, -0.5603725910186768, 0.25755974650382996, -0.7129430174827576, 1.1834254264831543, -0.47206833958625793, -0.43491026759147644, 0.019665732979774475, -0.6374109387397766, 0.1264883279800415, 0.13277268409729004, 0.18894176185131073, -0.16033698618412018, 0.10831417888402939, 0.8749240040779114, -0.5464288592338562, 1.0095394849777222, -0.48902228474617004, 0.06463131308555603, 0.5465582013130188, -0.3800819516181946, 0.19485686719417572, 0.14173826575279236, -0.0977751687169075, 0.5871134400367737, 0.3407725393772125, -0.39593958854675293, -0.36872923374176025, 0.6407731175422668, -1.3998322486877441, -0.2204788327217102, -1.0131590366363525, -0.5667141079902649, 0.02901415154337883, 0.31443607807159424, 0.5341024994850159, 0.28144869208335876, -0.0005675090942531824, 0.033468108624219894, 0.341874897480011, -0.21467342972755432, 0.7346535921096802, 0.5211678743362427, -0.13321731984615326, -0.6426210403442383, 0.801958441734314, -0.05253085494041443, 0.21378442645072937, -0.10850875079631805, 0.22389250993728638, -0.5543197393417358, -0.042615845799446106, -0.568936824798584, 0.1982581615447998, -0.7071676850318909, -0.2571916878223419, -0.9445877075195312, -0.5243194699287415, -0.7565768957138062, 0.3242008090019226, -0.47931498289108276, -0.3133580684661865, -0.468366414308548, -0.09362246841192245, 0.7277631163597107, 0.43710216879844666, -0.43928688764572144, 0.7625179886817932, -0.685039758682251, 0.046897366642951965, 0.3679736852645874, 0.5692547559738159, -0.11280658096075058, -0.9366569519042969, -0.31679868698120117, 0.027584156021475792, -0.4067259132862091, -0.6377439498901367, 0.7788293957710266, 0.004074019379913807, 0.36642253398895264, 0.27633652091026306, 0.24854420125484467, 0.5134341716766357, 0.14956563711166382, 0.7351273894309998, 0.08402428776025772, -0.9956531524658203, 0.4538201093673706, -0.313642680644989, 0.03634198382496834, 0.7200541496276855, 0.7823973894119263, -0.303996741771698, -0.16777707636356354, -0.9542539715766907, -0.9888600707054138, 0.8200467228889465, 0.2644430994987488, -0.09270542860031128, -0.007191287819296122, 0.6510352492332458, 0.02382533811032772, 0.40655040740966797, -1.113837480545044, -0.46076786518096924, -0.7074110507965088, -0.5546409487724304, 0.07822968810796738, 0.02338462509214878, -0.14694027602672577, -0.8002398014068604, 1.239203929901123, -0.1468898206949234, 0.3119335472583771, 0.6576201915740967, -0.07354199141263962, -0.0014630050864070654, 0.08401628583669662, 0.20371821522712708, 0.16388371586799622, -0.5150251388549805, -0.20402157306671143, 0.09340585023164749, -0.5613564848899841, 0.40977364778518677, 0.21358457207679749, -0.30646952986717224, -0.17783433198928833, 0.001245870953425765, 1.0179047584533691, -0.42853882908821106, -0.20051409304141998, 0.5159802436828613, -0.33849483728408813, -0.3152719736099243, -0.9948471784591675, 0.3497609496116638, -0.09086033701896667, 0.04725845158100128, 0.2342664897441864, 0.332288920879364, 0.3033946752548218, -0.2872142493724823, 0.1609523594379425, 0.4630008637905121, -0.6496857404708862, 0.01810171641409397, 1.0654747486114502, 0.12286654114723206, 0.009095546789467335, 0.7476276755332947, -0.592460572719574, -0.5185667872428894, 0.8348415493965149, 0.28184643387794495, 0.9985496997833252, 0.14179332554340363, -0.17849305272102356, 1.0516936779022217, 0.05901850014925003, 0.1059078499674797, 0.07094833999872208, 0.11900952458381653, -0.6715815663337708, -0.2768104374408722, -1.031676173210144, -0.3168078064918518, 0.2347741574048996, -0.9852975010871887, 0.3600180745124817, -0.36943861842155457, -0.4474659264087677, -0.2065402716398239, 0.22814996540546417, -0.8176782727241516, 0.7322164177894592, 0.3082737624645233, 0.7411081790924072, -1.274566888809204, 0.6181245446205139, 0.699007511138916, -0.7893338799476624, -1.228784441947937, -0.25038212537765503, -0.17573069036006927, -0.7188331484794617, 0.7930408716201782, 0.2562299966812134, -0.06659398227930069, 0.4235444962978363, -0.8738262057304382, -0.8396863341331482, 1.2502833604812622, -0.07338052988052368, -0.6306202411651611, 0.10585575550794601, 0.2853996455669403, 0.40504342317581177, -0.4101409316062927, 0.782568097114563, 0.7693272233009338, 0.4975195527076721, 0.0937618538737297, -0.6235658526420593, -0.10074475407600403, -0.37249159812927246, -0.2722182273864746, -0.3028472661972046, -1.3758389949798584, 0.9779350757598877, 0.20845966041088104, 0.07486292719841003, -0.1048344299197197, 0.6782147884368896, 0.049572575837373734, 0.21737460792064667, 0.7604508996009827, 1.0625061988830566, 0.5271613001823425, -0.24877822399139404, 0.7545698285102844, -0.608106791973114, 1.1752568483352661, 0.9304509162902832, -0.09972842037677765, 0.5846861600875854, 0.16467542946338654, -0.2582252621650696, 1.0086647272109985, 0.9821481108665466, -0.41265052556991577, 0.5390142798423767, 0.0066192359663546085, -0.27592694759368896, -0.24236416816711426, 0.2040671557188034, -0.3628944754600525, 0.6804898977279663, 0.2421117126941681, -0.4637521207332611, -0.024225899949669838, -0.008587813936173916, 0.11726365983486176, -0.2647654712200165, -0.23627761006355286, 0.7745059728622437, -0.0793273076415062, -0.751513659954071, 0.8973079919815063, -0.15175411105155945, 0.8888223767280579, -0.5125573873519897, -0.0199491698294878, 0.017981363460421562, 0.458434522151947, -0.3570515513420105, -0.4203304648399353, 0.5305992364883423, -0.1991991549730301, -0.30878758430480957, 0.023037703707814217, 0.6345930695533752, -0.39815202355384827, -0.8011872172355652, 0.5144244432449341, 0.2202925980091095, 0.11125689744949341, -0.1241643875837326, -1.0861010551452637, 0.045687660574913025, 0.017676450312137604, -0.4242480397224426, -0.015615718439221382, 0.03044142760336399, 0.4370782971382141, 0.45922356843948364, 0.3878939151763916, -0.23208823800086975, 0.08185786008834839, -0.1770913302898407, 0.8353837728500366, -0.7277682423591614, -0.5436259508132935, -0.8600510358810425, 0.4929969012737274, -0.15889059007167816, -0.28550150990486145, 0.8004848957061768, 0.7907842397689819, 0.9065938591957092, -0.15543705224990845, 1.1867643594741821, -0.4563346207141876, 0.6423858404159546, -0.0954328402876854, 0.8965402841567993, -0.6192992329597473, -0.2097843885421753, -0.02400464192032814, -0.3998492956161499, 0.12690241634845734, 0.8991758823394775, -0.4923352301120758, 0.3076704144477844, 0.6562735438346863, 0.9370125532150269, -0.19201718270778656, 0.09481677412986755, -0.17916569113731384, 0.4821869134902954, 0.12131626158952713, 0.3769947290420532, 0.56827312707901, -1.0333917140960693, 0.43864110112190247, -0.674075722694397, -0.42878270149230957, -0.1257963627576828, -0.9192859530448914, -0.9381780028343201, -0.45950591564178467, -0.7532116174697876, -0.6762267351150513, -0.5882657170295715, 1.086596965789795, 0.9934918880462646, -0.9717903733253479, -0.21280044317245483, -0.4054614007472992, -0.39850759506225586, 0.009725717827677727, -0.3666496276855469, 0.630510687828064, -0.5735630989074707, -1.1614421606063843, -0.1126132532954216, -0.23863822221755981, 0.18821664154529572, -0.3624121844768524, -0.0026440233923494816, -0.36858004331588745, -0.18835748732089996, 0.33183062076568604, 0.2115972489118576, -0.4224540889263153, -0.337028831243515, 0.007440303452312946, -0.272527277469635, 0.24621151387691498, 0.16593800485134125, -0.5756123661994934, 0.32125070691108704, 0.48560816049575806, 0.4916466176509857, 0.6857054829597473, -0.07046984136104584, 0.4227790832519531, -0.5805093050003052, 0.42220959067344666, 0.05106397345662117, 0.44956856966018677, 0.40240606665611267, -0.5182166695594788, 0.5324140787124634, 0.6950843930244446, -0.9496313333511353, -0.5325426459312439, -0.04716777056455612, -1.0598969459533691, -0.03562849387526512, 1.1226850748062134, -0.29175642132759094, -0.5767613053321838, -0.08354195207357407, -0.29081442952156067, 0.632457971572876, -0.26733535528182983, 0.7201139330863953, 0.9166879057884216, -0.3664807975292206, -0.0007038220064714551, -0.44753289222717285, 0.5162314772605896, 0.5004461407661438, -0.7425064444541931, -0.1588989794254303, 0.23335504531860352, 0.8358364105224609, 0.3510531783103943, 0.3794945180416107, -0.2688432037830353, -0.10544909536838531, 0.31816810369491577, 0.43017739057540894, -0.08017250895500183, 0.07438360899686813, -0.2902686893939972, -0.249320849776268, -0.015454343520104885, -0.37985366582870483 ]
facebook/mask2former-swin-tiny-coco-panoptic
facebook
"2023-09-11T20:23:58Z"
19,737
2
transformers
[ "transformers", "pytorch", "safetensors", "mask2former", "vision", "image-segmentation", "dataset:coco", "arxiv:2112.01527", "arxiv:2107.06278", "license:other", "endpoints_compatible", "has_space", "region:us" ]
image-segmentation
"2023-01-02T17:36:46Z"
--- license: other tags: - vision - image-segmentation datasets: - coco widget: - src: http://images.cocodataset.org/val2017/000000039769.jpg example_title: Cats - src: http://images.cocodataset.org/val2017/000000039770.jpg example_title: Castle --- # Mask2Former Mask2Former model trained on COCO panoptic segmentation (tiny-sized version, Swin backbone). It was introduced in the paper [Masked-attention Mask Transformer for Universal Image Segmentation ](https://arxiv.org/abs/2112.01527) and first released in [this repository](https://github.com/facebookresearch/Mask2Former/). Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, [MaskFormer](https://arxiv.org/abs/2107.06278) both in terms of performance an efficiency by (i) replacing the pixel decoder with a more advanced multi-scale deformable attention Transformer, (ii) adopting a Transformer decoder with masked attention to boost performance without without introducing additional computation and (iii) improving training efficiency by calculating the loss on subsampled points instead of whole masks. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/mask2former_architecture.png) ## Intended uses & limitations You can use this particular checkpoint for panoptic segmentation. See the [model hub](https://huggingface.co/models?search=mask2former) to look for other fine-tuned versions on a task that interests you. ### How to use Here is how to use this model: ```python import requests import torch from PIL import Image from transformers import AutoImageProcessor, Mask2FormerForUniversalSegmentation # load Mask2Former fine-tuned on COCO panoptic segmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-tiny-coco-panoptic") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-tiny-coco-panoptic") url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) inputs = processor(images=image, return_tensors="pt") with torch.no_grad(): outputs = model(**inputs) # model predicts class_queries_logits of shape `(batch_size, num_queries)` # and masks_queries_logits of shape `(batch_size, num_queries, height, width)` class_queries_logits = outputs.class_queries_logits masks_queries_logits = outputs.masks_queries_logits # you can pass them to processor for postprocessing result = processor.post_process_panoptic_segmentation(outputs, target_sizes=[image.size[::-1]])[0] # we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs) predicted_panoptic_map = result["segmentation"] ``` For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/mask2former).
[ -0.6463450789451599, -0.6216843724250793, 0.18110521137714386, 0.4298439621925354, -0.30372118949890137, -0.1447879672050476, 0.10591170936822891, -0.7985042333602905, 0.2613177001476288, 0.6434803605079651, -0.6580671668052673, -0.24493473768234253, -0.8344037532806396, -0.31788769364356995, -0.1082964539527893, 0.8988029956817627, -0.04889870434999466, 0.026390068233013153, -0.2705363929271698, 0.06855874508619308, -0.22250591218471527, -0.19788968563079834, -0.7380099296569824, -0.33379238843917847, 0.1621931493282318, 0.39097270369529724, 0.4523036777973175, 0.5917826294898987, 0.5802002549171448, 0.2479601949453354, -0.09999857097864151, -0.02430230751633644, -0.4256134629249573, -0.24361459910869598, 0.10367462038993835, -0.6318979859352112, -0.3212359845638275, 0.16669531166553497, 0.42700502276420593, 0.36604952812194824, 0.18788117170333862, 0.3582717776298523, -0.01742822676897049, 0.5925944447517395, -0.6333369016647339, 0.37927550077438354, -0.37401169538497925, 0.3147861063480377, -0.21243835985660553, 0.3596639633178711, -0.25670677423477173, -0.2362680435180664, 0.20084019005298615, -0.4929348826408386, 0.49137938022613525, -0.13619644939899445, 0.9878988862037659, 0.20472846925258636, -0.0809776559472084, -0.1450938731431961, -0.4251914918422699, 0.5567049980163574, -0.351990669965744, 0.2107793688774109, 0.47813841700553894, 0.7600013017654419, 0.2580316960811615, -1.156204342842102, -0.45387890934944153, 0.28775840997695923, -0.05937837436795235, 0.18297097086906433, -0.26517724990844727, 0.040148813277482986, 0.3506832718849182, 0.3334892690181732, -0.5724198818206787, -0.002823885530233383, -0.8973442912101746, -0.36898478865623474, 0.6558531522750854, -0.1632685363292694, 0.31373825669288635, -0.2800184190273285, -0.5850621461868286, -0.31844544410705566, -0.2480548620223999, 0.509563148021698, 0.06499697268009186, -0.2776409387588501, -0.28807398676872253, 0.5989860892295837, -0.05612900108098984, 0.7066599130630493, 0.38480788469314575, -0.16866253316402435, 0.12003350257873535, 0.07673422992229462, -0.39323392510414124, -0.037772368639707565, 0.642278254032135, 0.49849966168403625, 0.16787272691726685, 0.09675374627113342, -0.05913189426064491, 0.22372864186763763, 0.13860201835632324, -1.1453427076339722, -0.6730301380157471, 0.06390471756458282, -0.23816397786140442, -0.32619941234588623, 0.37352845072746277, -0.944135308265686, -0.05313495919108391, -0.09924472123384476, 0.37593352794647217, -0.3269707262516022, -0.06946881860494614, 0.07057348638772964, -0.23565414547920227, 0.550609290599823, 0.3285548985004425, -0.9166320562362671, 0.37771686911582947, 0.5432443618774414, 1.0518027544021606, 0.024316785857081413, -0.0006860311841592193, -0.21957099437713623, -0.057096224278211594, -0.30787110328674316, 0.9270361661911011, -0.5217870473861694, -0.06373750418424606, -0.3044976592063904, 0.34635084867477417, -0.3637177348136902, -0.6224780678749084, 0.3418639004230499, -0.49261364340782166, 0.46119028329849243, -0.3536834418773651, -0.1524706333875656, -0.5784397125244141, 0.11730491369962692, -0.5462883114814758, 1.1340059041976929, 0.4750199019908905, -0.647469162940979, 0.18871869146823883, -0.6887338161468506, -0.16052277386188507, -0.11553151905536652, -0.02745862863957882, -0.8322783708572388, -0.13449274003505707, 0.49303755164146423, 0.3605540096759796, -0.24921463429927826, -0.0398910753428936, -0.34092259407043457, -0.13548381626605988, 0.03354552760720253, 0.12269846349954605, 0.9582316279411316, 0.08158606290817261, -0.7078593969345093, 0.20426268875598907, -0.3573022782802582, 0.005627581384032965, 0.3493891954421997, 0.15612906217575073, 0.22385627031326294, -0.4862542152404785, 0.39741072058677673, 0.6489072442054749, 0.03154604136943817, -0.5264864563941956, 0.20283173024654388, -0.3351253271102905, 0.6649527549743652, 0.5351013541221619, 0.04970027506351471, 0.4631474018096924, -0.17556503415107727, 0.5091990232467651, 0.11630197614431381, 0.524760901927948, 0.00037280566175468266, -0.7614610195159912, -0.9602718949317932, -0.44554245471954346, 0.01153608225286007, 0.3835434913635254, -0.4229934811592102, 0.35439741611480713, 0.1563253104686737, -0.7278757095336914, -0.34183236956596375, -0.028740108013153076, 0.36216503381729126, 0.6363776326179504, 0.31785133481025696, -0.6521183252334595, -0.800040066242218, -1.0325974225997925, 0.2673562467098236, 0.18163226544857025, -0.10008292645215988, 0.35015785694122314, 0.5228361487388611, -0.5715968608856201, 1.0748759508132935, -0.6786220073699951, -0.4170974791049957, -0.28244349360466003, -0.0726812332868576, -0.11515429615974426, 0.5134352445602417, 0.9011268615722656, -0.7470965385437012, -0.5230920910835266, -0.3177635669708252, -0.7055670022964478, -0.03743462637066841, 0.20448832213878632, -0.32533541321754456, 0.2020166516304016, 0.2405809462070465, -0.5838901996612549, 0.5554556846618652, 0.38932377099990845, -0.298025518655777, 0.6660978198051453, 0.15619881451129913, -0.1445201188325882, -0.8104795813560486, 0.2503187954425812, 0.1089671179652214, -0.3864381015300751, -0.4663202464580536, 0.07755324989557266, 0.13576652109622955, -0.3282008469104767, -0.5933243632316589, 0.5003638863563538, -0.5687839984893799, -0.38782578706741333, -0.3746798634529114, -0.16904012858867645, 0.33505767583847046, 0.6470214128494263, 0.33317041397094727, 0.47026461362838745, 0.908469557762146, -0.45049574971199036, 0.3770575225353241, 0.33853980898857117, -0.3714275062084198, 0.36242085695266724, -0.9037759304046631, 0.27590125799179077, -0.17023402452468872, 0.628970205783844, -1.0858920812606812, -0.6319025754928589, 0.6006762981414795, -0.33235445618629456, 0.29874974489212036, -0.15966854989528656, -0.19515132904052734, -0.8444889187812805, -0.558347225189209, 0.6417081356048584, 0.6001873016357422, -0.6973806619644165, 0.20008248090744019, 0.5310594439506531, 0.10446808487176895, -0.3372475206851959, -0.9298139214515686, -0.1958756297826767, -0.15868400037288666, -0.8946954011917114, 0.41043949127197266, 0.03222810849547386, 0.08298833668231964, -0.13560618460178375, -0.24335387349128723, -0.062423866242170334, -0.42655149102211, 0.3961337208747864, 0.3269819915294647, -0.1471746414899826, -0.4995062053203583, 0.13872238993644714, -0.23799856007099152, 0.1653689444065094, -0.4034709334373474, 0.7036430835723877, -0.22897158563137054, -0.09021729230880737, -0.6861345767974854, 0.043167319148778915, 0.6066131591796875, -0.3752988278865814, 0.433452844619751, 1.0849491357803345, -0.7345784306526184, 0.005917388945817947, -0.8352884650230408, -0.4575604796409607, -0.4677281081676483, 0.31420665979385376, -0.3574911653995514, -0.6948235630989075, 0.7039002180099487, 0.1526665985584259, -0.06429287046194077, 0.6700040698051453, 0.5345198512077332, 0.08669833838939667, 1.0238375663757324, 0.6735448241233826, 0.28486454486846924, 0.5653858184814453, -0.9265286922454834, 0.1573946624994278, -1.2100447416305542, -0.7161086797714233, -0.0707176998257637, -0.47833386063575745, -0.23087336122989655, -0.918774425983429, 0.6222478747367859, 0.5908961892127991, -0.14335796236991882, 0.5797436833381653, -0.9588242173194885, 0.3398521840572357, 0.48494935035705566, 0.28159603476524353, -0.375082403421402, 0.23569543659687042, 0.08773460239171982, -0.0045447214506566525, -0.6863919496536255, -0.3938428461551666, 0.6985784769058228, 0.5810801386833191, 0.4721073806285858, -0.238936185836792, 0.30136606097221375, -0.08048636466264725, 0.07137995213270187, -0.7520173788070679, 0.4400193393230438, 0.05055038630962372, -0.5701017379760742, -0.07750049978494644, 0.06744927167892456, -0.7727795243263245, 0.34555140137672424, 0.026607409119606018, -1.2153562307357788, 0.5271944403648376, 0.16604402661323547, -0.38067296147346497, 0.3231152594089508, -0.7023587226867676, 1.0522058010101318, -0.11736612766981125, -0.40226060152053833, 0.1470087319612503, -0.9294742941856384, 0.5919879674911499, 0.12276236712932587, -0.18217866122722626, -0.12261645495891571, 0.23757104575634003, 1.2212867736816406, -0.5116184949874878, 0.969390869140625, -0.3610466420650482, 0.29839661717414856, 0.6691573262214661, -0.11996269226074219, 0.3231571912765503, 0.31660571694374084, 0.08958052843809128, 0.3776067793369293, 0.16266080737113953, -0.5177468061447144, -0.5537980198860168, 0.5069154500961304, -0.9376317262649536, -0.38289669156074524, -0.37931618094444275, -0.2799934446811676, 0.1276925802230835, 0.13855741918087006, 0.8530702590942383, 0.28655701875686646, 0.0961521789431572, -0.03261861205101013, 0.5615136027336121, -0.020553970709443092, 0.4847531020641327, -0.06330308318138123, -0.2722996175289154, -0.5929130911827087, 0.6330492496490479, 0.06717771291732788, 0.1997940093278885, 0.28495025634765625, 0.28469473123550415, -0.4621465802192688, 0.06942189484834671, -0.5899267792701721, 0.41562795639038086, -0.5658639669418335, -0.42048630118370056, -0.8789950013160706, -0.4877159893512726, -0.8363341093063354, -0.4019796550273895, -0.5955938696861267, -0.5360360741615295, -0.3522929251194, 0.02016730234026909, 0.31094565987586975, 0.4207639694213867, -0.28058603405952454, 0.5313549637794495, -0.24994516372680664, 0.2417333871126175, 0.5911933779716492, 0.19569174945354462, -0.17444561421871185, -0.40862569212913513, 0.014738606289029121, 0.06470538675785065, -0.6146015524864197, -0.8512897491455078, 0.3454327881336212, 0.12908467650413513, 0.26738160848617554, 0.7251039147377014, -0.1859658658504486, 0.7223610281944275, -0.006984371226280928, 0.7173493504524231, 0.499534010887146, -0.8468020558357239, 0.7822444438934326, 0.0027298436034470797, 0.23037201166152954, 0.29699239134788513, 0.19319258630275726, -0.5458064675331116, -0.06270746141672134, -0.6219480037689209, -0.8856581449508667, 1.1899200677871704, 0.16062839329242706, -0.19773927330970764, 0.2799641489982605, 0.4360576570034027, 0.12450645864009857, 0.028846129775047302, -0.7615810632705688, -0.18306520581245422, -0.5806871056556702, 0.19465672969818115, -0.10297568142414093, -0.5550820231437683, -0.09599985182285309, -0.5520532131195068, 0.6045359969139099, -0.07875705510377884, 0.6815889477729797, 0.38683444261550903, -0.20796655118465424, -0.2664647698402405, -0.4781123399734497, 0.6291900873184204, 0.5788336992263794, -0.22585518658161163, 0.20346646010875702, -0.024731619283556938, -0.5951406955718994, -0.16959691047668457, 0.18210040032863617, -0.2226904183626175, -0.15384478867053986, 0.3603997826576233, 1.1024788618087769, 0.0024496824480593204, -0.27294349670410156, 0.5836559534072876, 0.12811759114265442, -0.2763214111328125, -0.36897745728492737, 0.1290355622768402, -0.05325907841324806, 0.2770850360393524, 0.1198321059346199, 0.4085525870323181, 0.2644079625606537, -0.31133323907852173, 0.2093850076198578, 0.29175642132759094, -0.524712860584259, -0.4511348605155945, 0.8667937517166138, -0.1220555305480957, -0.2366495430469513, 0.5818693041801453, -0.16990305483341217, -0.9797810912132263, 1.0093690156936646, 0.6791121959686279, 0.7695925235748291, -0.35768812894821167, 0.388574481010437, 0.6895881295204163, 0.2569432258605957, -0.014427591115236282, -0.055139485746622086, -0.22460095584392548, -0.3849870264530182, -0.010254601947963238, -0.6870362758636475, -0.09474208950996399, 0.17118069529533386, -0.6048542261123657, 0.39238792657852173, -0.6502014398574829, -0.08087320625782013, 0.15181194245815277, 0.15602341294288635, -0.831457257270813, 0.4233492612838745, 0.23036016523838043, 0.8378227353096008, -0.8563047051429749, 0.6831642389297485, 0.870669960975647, -0.30637088418006897, -0.7271599173545837, -0.2183225005865097, 0.08228862285614014, -1.0111032724380493, 0.27177944779396057, 0.7864230871200562, 0.04572552070021629, -0.22315631806850433, -0.4823209047317505, -0.8155145049095154, 1.2620571851730347, 0.3224732577800751, -0.44019556045532227, -0.005772260949015617, 0.3333243131637573, 0.29580792784690857, -0.5148006677627563, 0.5686686635017395, 0.5590060949325562, 0.5087717771530151, 0.583670437335968, -0.6804397702217102, 0.09130310267210007, -0.327759325504303, 0.26892754435539246, -0.10736193507909775, -0.8632311224937439, 0.8078232407569885, -0.4123053252696991, -0.07622787356376648, -0.10131968557834625, 0.620278000831604, 0.22624216973781586, 0.5615951418876648, 0.4980347156524658, 0.6225491762161255, 0.5402312278747559, -0.12693803012371063, 0.911190927028656, -0.08998580276966095, 0.6001349091529846, 0.6659133434295654, 0.15704549849033356, 0.4058948755264282, 0.3363741338253021, 0.019280361011624336, 0.4210534393787384, 1.0822546482086182, -0.3106142580509186, 0.5520840287208557, 0.08645272254943848, 0.013324669562280178, -0.12622427940368652, 0.06595782935619354, -0.5281550288200378, 0.7424800992012024, 0.2673969864845276, -0.4078812599182129, -0.2163110077381134, 0.3426029682159424, 0.06342179328203201, -0.42384013533592224, -0.20646513998508453, 0.5799071192741394, 0.047177381813526154, -0.7115049362182617, 0.6800062656402588, 0.321671724319458, 0.632070779800415, -0.4279354512691498, 0.11463943123817444, -0.19830234348773956, 0.21646994352340698, -0.40256455540657043, -0.6502542495727539, 0.6774454116821289, -0.21037748456001282, -0.19794689118862152, 0.08314376324415207, 0.7634645104408264, -0.3198811709880829, -0.8471577763557434, 0.22549228370189667, -0.062416303902864456, 0.33623814582824707, -0.27888229489326477, -0.8932388424873352, 0.4503033757209778, -0.006692595314234495, -0.429323673248291, 0.1925836205482483, -0.042448028922080994, -0.16901563107967377, 0.3962629735469818, 0.48062339425086975, -0.3762865662574768, 0.10146685689687729, -0.17390266060829163, 0.9703583717346191, -0.2564651072025299, -0.586164653301239, -0.5901515483856201, 0.4730014204978943, -0.20622684061527252, -0.2749054431915283, 0.5080709457397461, 0.9242669343948364, 0.8757987022399902, -0.25239259004592896, 0.5229405164718628, -0.22683916985988617, -0.05473244562745094, -0.2801707983016968, 0.5577173233032227, -0.42232123017311096, -0.13831530511379242, -0.3200593888759613, -1.2254904508590698, -0.3935016095638275, 1.0467369556427002, -0.5683034062385559, 0.14753945171833038, 0.4998011887073517, 0.9565393924713135, -0.48501038551330566, -0.061200156807899475, 0.0040296148508787155, -0.08374693244695663, 0.37158283591270447, 0.5660068392753601, 0.24807202816009521, -0.6964704394340515, 0.35038307309150696, -0.8870030641555786, -0.5953412055969238, -0.40816837549209595, -0.2617333233356476, -0.8999361991882324, -0.7242722511291504, -0.530236005783081, -0.40643489360809326, -0.05830242484807968, 0.460553914308548, 1.3764604330062866, -0.7625240087509155, -0.1423100233078003, -0.24085789918899536, -0.009730962105095387, -0.2661002278327942, -0.33288294076919556, 0.655262291431427, 0.013525937683880329, -0.8901293277740479, -0.05695211514830589, 0.3387582302093506, 0.010367271490395069, -0.12449195981025696, -0.09018886834383011, 0.0923222079873085, -0.025621214881539345, 0.7140398025512695, 0.4605342745780945, -0.7942100167274475, -0.2712515890598297, -0.049572575837373734, -0.042673978954553604, 0.23850268125534058, 0.740348756313324, -0.6139139533042908, 0.5595988631248474, 0.32808420062065125, 0.22811448574066162, 1.1423701047897339, 0.008858496323227882, 0.03670483082532883, -0.4969768226146698, 0.3238353133201599, 0.2051137536764145, 0.3725896179676056, 0.3820309340953827, -0.5406978726387024, 0.4754328429698944, 0.41839471459388733, -0.5086924433708191, -0.6259931325912476, 0.27323538064956665, -1.4621036052703857, -0.10827810317277908, 1.082869291305542, -0.18361645936965942, -0.5757028460502625, 0.307600200176239, -0.5416403412818909, 0.45053836703300476, -0.06587449461221695, 0.8776223063468933, 0.19297266006469727, -0.4180040955543518, -0.5186598300933838, -0.12378527224063873, 0.48887866735458374, 0.11785057932138443, -0.7302678227424622, -0.3623493015766144, 0.31752699613571167, 0.6628671884536743, 0.24602840840816498, 0.5575559735298157, -0.3727249205112457, 0.44174063205718994, 0.1309647560119629, 0.2128637284040451, -0.248238205909729, -0.3363804519176483, -0.09887463599443436, 0.24864502251148224, -0.32313331961631775, -0.5724102258682251 ]
circulus/canvers-en2ko-v1
circulus
"2023-06-07T03:46:42Z"
19,721
0
transformers
[ "transformers", "pytorch", "bart", "text2text-generation", "license:gpl-3.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
text2text-generation
"2023-05-17T01:59:15Z"
--- license: gpl-3.0 ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
dreamlike-art/dreamlike-anime-1.0
dreamlike-art
"2023-03-13T01:04:40Z"
19,649
217
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "image-to-image", "anime", "en", "license:other", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-01-08T03:47:50Z"
--- language: - en license: other tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - image-to-image - diffusers - anime inference: false --- # Dreamlike Anime 1.0 is a high quality anime model, made by [dreamlike.art](https://dreamlike.art/). # If you want to use dreamlike models on your website/app/etc., check the license at the bottom first! Add **anime** to your prompt to make your gens look more anime. Add **photo** to your prompt to make your gens look more photorealistic and have better anatomy. This model was trained on 768x768px images, so use 768x768px, 704x832px, 832x704px, etc. Higher resolution or non-square aspect ratios may produce artifacts. Add this to the start of your prompts for best results: ``` photo anime, masterpiece, high quality, absurdres ``` Use negative prompts for best results, for example: ``` simple background, duplicate, retro style, low quality, lowest quality, 1980s, 1990s, 2000s, 2005 2006 2007 2008 2009 2010 2011 2012 2013, bad anatomy, bad proportions, extra digits, lowres, username, artist name, error, duplicate, watermark, signature, text, extra digit, fewer digits, worst quality, jpeg artifacts, blurry ``` **1girl**, **girl**, etc. give a bit different results, feel free to experiment and see which one you like more! ### Examples <img src="https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/preview1.jpg" style="max-width: 800px;" width="100%"/> <img src="https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/preview2.jpg" style="max-width: 800px;" width="100%"/> <img src="https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/preview3.jpg" style="max-width: 800px;" width="100%"/> # dreamlike.art Use this model as well as [Dreamlike Diffusion 1.0](https://huggingface.co/dreamlike-art/dreamlike-diffusion-1.0) and [Dreamlike Photoreal 2.0](https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0) for free on [dreamlike.art](https://dreamlike.art/)! <img src="https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/dreamlike.jpg" style="max-width: 1000px;" width="100%"/> ### CKPT [Download dreamlike-anime-1.0.ckpt (2.13GB)](https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/dreamlike-anime-1.0.ckpt) ### Safetensors [Download dreamlike-anime-1.0.safetensors (2.13GB)](https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/dreamlike-anime-1.0.safetensors) ### 🧨 Diffusers This model can be used just like any other Stable Diffusion model. For more information, please have a look at the [Stable Diffusion Pipeline](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion). ```python from diffusers import StableDiffusionPipeline import torch model_id = "dreamlike-art/dreamlike-anime-1.0" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to("cuda") prompt = "anime, masterpiece, high quality, 1girl, solo, long hair, looking at viewer, blush, smile, bangs, blue eyes, skirt, medium breasts, iridescent, gradient, colorful, besides a cottage, in the country" negative_prompt = 'simple background, duplicate, retro style, low quality, lowest quality, 1980s, 1990s, 2000s, 2005 2006 2007 2008 2009 2010 2011 2012 2013, bad anatomy, bad proportions, extra digits, lowres, username, artist name, error, duplicate, watermark, signature, text, extra digit, fewer digits, worst quality, jpeg artifacts, blurry' image = pipe(prompt, negative_prompt=negative_prompt).images[0] image.save("./result.jpg") ``` <img src="https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/resolve/main/anime.jpg" style="max-width: 640px;" width="100%"/> # License This model is licesed under a **modified** CreativeML OpenRAIL-M license. - **You are not allowed to host, finetune, or do inference with the model or its derivatives on websites/apps/etc. If you want to, please email us at contact@dreamlike.art** - **You are free to host the model card and files (Without any actual inference or finetuning) on both commercial and non-commercial websites/apps/etc. Please state the full model name (Dreamlike Anime 1.0) and include the license as well as a link to the model card (https://huggingface.co/dreamlike-art/dreamlike-anime-1.0)** - **You are free to use the outputs (images) of the model for commercial purposes in teams of 10 or less** - You can't use the model to deliberately produce nor share illegal or harmful outputs or content - The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license - You may re-distribute the weights. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the **modified** CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully) Please read the full license here: https://huggingface.co/dreamlike-art/dreamlike-anime-1.0/blob/main/LICENSE.md
[ -0.5387782454490662, -0.7834597826004028, 0.3291160762310028, 0.4877242147922516, -0.44781529903411865, -0.23940902948379517, 0.18443726003170013, -0.6044468283653259, 0.8298805356025696, 0.5937824845314026, -0.8051624894142151, -0.6275171637535095, -0.5106997489929199, -0.07567992806434631, -0.2208816409111023, 0.8513579368591309, -0.056582264602184296, -0.19303475320339203, -0.25838378071784973, 0.1985749453306198, -0.4382297694683075, -0.0940413847565651, -0.8719775080680847, -0.32288166880607605, 0.4067610800266266, 0.09839984029531479, 0.820777177810669, 0.42148715257644653, 0.2768813669681549, 0.3442659080028534, 0.09358611702919006, -0.2811269760131836, -0.6275635361671448, 0.002616482088342309, 0.14878930151462555, -0.6410730481147766, -1.1388219594955444, 0.2739482522010803, 0.337369441986084, 0.08552569895982742, -0.2574586868286133, 0.158582404255867, 0.0744359940290451, 0.7110883593559265, -0.13893812894821167, 0.07209949195384979, -0.08798208832740784, 0.2906791865825653, -0.3142159581184387, 0.19024410843849182, -0.003321549855172634, -0.6318743824958801, -0.07220128178596497, -0.9029501080513, 0.2168724238872528, 0.07161536812782288, 1.2885034084320068, 0.18275116384029388, -0.04201851412653923, 0.21243606507778168, -0.3788239359855652, 0.5693296790122986, -0.7460464239120483, 0.23327642679214478, 0.3406321108341217, 0.2613685131072998, -0.03673906624317169, -0.900149941444397, -0.4468768835067749, 0.12393679469823837, -0.02918640524148941, 0.3854314088821411, -0.6007517576217651, 0.0595351867377758, 0.2898200452327728, 0.4674217104911804, -0.8096845149993896, -0.20112788677215576, -0.5087164044380188, -0.19108222424983978, 0.8398907780647278, 0.13014604151248932, 0.7190185785293579, -0.3510873019695282, -0.37322768568992615, -0.08242949843406677, -0.5610694885253906, 0.0346202477812767, 0.5104382634162903, -0.021587276831269264, -0.7726899981498718, 0.4498060345649719, 0.026315677911043167, 0.385855495929718, 0.13363897800445557, -0.0198223739862442, 0.3205801248550415, 0.11487634479999542, -0.2775881290435791, -0.22681385278701782, 1.0935384035110474, 0.9395315647125244, 0.20021416246891022, 0.021990548819303513, -0.015757059678435326, 0.1759328693151474, 0.037020087242126465, -1.257091999053955, -0.2929779291152954, 0.5667730569839478, -0.9256092309951782, -0.49010729789733887, -0.41683486104011536, -0.8856971859931946, -0.13389728963375092, -0.08163975924253464, 0.3353230357170105, -0.6052283644676208, -0.805401086807251, 0.21079206466674805, -0.3124595880508423, 0.061189230531454086, 0.2928479015827179, -0.6082184910774231, 0.07348431646823883, 0.34259721636772156, 0.9677045941352844, 0.13061003386974335, 0.12858866155147552, 0.3948594927787781, -0.13707295060157776, -0.4578627347946167, 0.7371512055397034, -0.3057865500450134, -0.5119913816452026, -0.3476055860519409, 0.08931709080934525, -0.06309225410223007, -0.4658448398113251, 0.6040498614311218, -0.263871431350708, 0.20440806448459625, -0.05114985257387161, -0.6659773588180542, -0.39740878343582153, -0.03804122656583786, -0.6152493953704834, 0.46147117018699646, 0.27454331517219543, -0.7268707752227783, 0.22532470524311066, -0.7481696605682373, -0.053777992725372314, 0.043899863958358765, 0.1625625640153885, -0.28642818331718445, 0.02408541925251484, -0.0665542334318161, 0.5504704713821411, 0.1234094575047493, 0.04509131982922554, -0.5906528234481812, -0.17518781125545502, 0.011381825432181358, -0.3246825039386749, 1.1807360649108887, 0.5649901628494263, 0.01554990466684103, 0.1441049426794052, -0.6327755451202393, 0.11175713688135147, 0.633682370185852, 0.21076089143753052, -0.3203028738498688, -0.16795788705348969, 0.34856030344963074, 0.24109132587909698, 0.2913908064365387, -0.6410486102104187, 0.3069879114627838, -0.5034306645393372, 0.20150689780712128, 0.6733613014221191, 0.03746899589896202, 0.16354185342788696, -0.6707733869552612, 0.7737922072410583, 0.1136092096567154, 0.3727490305900574, 0.13801883161067963, -0.6897556185722351, -0.9032387137413025, -0.37895309925079346, 0.14301998913288116, 0.26430070400238037, -0.6480876803398132, 0.13784325122833252, 0.0011769604170694947, -0.9764759540557861, -0.8179025650024414, -0.17777366936206818, 0.40567418932914734, 0.2653893530368805, 0.12191911786794662, -0.40932390093803406, -0.6206963658332825, -1.0448654890060425, 0.04535778611898422, 0.012295772321522236, -0.13133445382118225, 0.32728296518325806, 0.3776302933692932, -0.10804911702871323, 0.7492645978927612, -0.5763815641403198, -0.280796617269516, -0.2566646337509155, -0.2480773776769638, 0.6402167081832886, 0.9331110715866089, 1.154528260231018, -0.8783836960792542, -0.7263937592506409, -0.2888650894165039, -1.1413692235946655, -0.01776724122464657, 0.2160070389509201, -0.47333890199661255, -0.04464224725961685, -0.08974333107471466, -0.9223748445510864, 0.5835716128349304, 0.7157085537910461, -0.7882110476493835, 0.6662991046905518, -0.17259147763252258, 0.36273279786109924, -1.342788577079773, 0.09605558216571808, 0.3389894962310791, -0.43751803040504456, -0.6640969514846802, 0.605812132358551, -0.3901723027229309, -0.1550430953502655, -0.6633931398391724, 0.9930814504623413, -0.22181501984596252, 0.5057393312454224, -0.3230694532394409, 0.002697808900848031, 0.011959580704569817, 0.6228200793266296, 0.10688617825508118, 0.4281962215900421, 0.8933871388435364, -0.5265054702758789, 0.4519750475883484, 0.5383462309837341, -0.32081177830696106, 0.8703206777572632, -0.9122137427330017, 0.19549855589866638, -0.4646819233894348, 0.24849650263786316, -0.7334448099136353, -0.3812561333179474, 0.7641071081161499, -0.47495901584625244, 0.2761109471321106, -0.3088400363922119, -0.24378015100955963, -0.41544973850250244, -0.058072615414857864, 0.25527825951576233, 0.9964984059333801, -0.255740225315094, 0.5619810819625854, 0.2772867977619171, -0.03980390354990959, -0.2906017303466797, -0.4795515537261963, -0.15018609166145325, -0.3459222614765167, -0.840487003326416, 0.40675026178359985, -0.2748106122016907, -0.17491868138313293, 0.22474880516529083, 0.03901814669370651, 0.0366438589990139, -0.1673254370689392, 0.5643472671508789, 0.32168319821357727, -0.19378094375133514, -0.5276097059249878, 0.35676097869873047, -0.06580883264541626, -0.01466494519263506, -0.16090141236782074, 0.7264982461929321, -0.16688017547130585, -0.16634872555732727, -0.934980034828186, 0.37449491024017334, 0.5895000696182251, 0.10253319144248962, 0.6510380506515503, 0.5217590928077698, -0.7131999135017395, -0.026227252557873726, -0.5067012310028076, -0.11722705513238907, -0.4971035420894623, 0.05043894052505493, -0.5815343856811523, -0.49543413519859314, 0.6633222699165344, 0.27548909187316895, 0.35188478231430054, 0.7002472877502441, 0.29526323080062866, -0.36660709977149963, 1.134281873703003, 0.7166309356689453, 0.1453181654214859, 0.3683343827724457, -0.8619300127029419, -0.33719372749328613, -0.7747531533241272, -0.4504019021987915, -0.14508546888828278, -0.7690662741661072, -0.2750719487667084, -0.5130831003189087, 0.22880923748016357, 0.24977687001228333, -0.2521124482154846, 0.5431378483772278, -0.45232051610946655, 0.3913280665874481, 0.16767393052577972, 0.6108555793762207, 0.26796409487724304, 0.14509199559688568, -0.0862877145409584, -0.17106893658638, -0.5536444783210754, -0.4062073230743408, 0.934689998626709, 0.40032896399497986, 0.7735658288002014, 0.059672337025403976, 0.6219634413719177, 0.14348196983337402, 0.410434752702713, -0.5600517988204956, 0.6884263157844543, -0.3060178756713867, -0.9614313840866089, 0.1501031219959259, -0.2776990234851837, -0.8904507160186768, 0.282531201839447, -0.2969898581504822, -0.8660546541213989, 0.26901742815971375, 0.30180981755256653, -0.3657417297363281, 0.5749345421791077, -0.5694560408592224, 0.932627260684967, 0.049240607768297195, -0.4744081199169159, -0.2072010338306427, -0.4487760365009308, 0.36410027742385864, 0.24170342087745667, -0.0007562912651337683, -0.4507458209991455, 0.013777414336800575, 0.7161198854446411, -0.534721851348877, 0.9652084112167358, -0.4144431948661804, -0.007215871475636959, 0.44554200768470764, 0.40497878193855286, 0.14299744367599487, 0.14493361115455627, -0.19303292036056519, 0.461904376745224, 0.17219462990760803, -0.5035430788993835, -0.3765065670013428, 0.7616963982582092, -0.8801037669181824, -0.5654984712600708, -0.22392746806144714, -0.4234413504600525, 0.1414518505334854, 0.38669219613075256, 0.9088543653488159, 0.5576503872871399, -0.2760518491268158, 0.07703665643930435, 0.7507020831108093, -0.07539837062358856, 0.39684510231018066, 0.06411194056272507, -0.8401606678962708, -0.3008729815483093, 0.8437121510505676, -0.02101164124906063, 0.2148255705833435, 0.10671554505825043, 0.2863583564758301, -0.29570385813713074, -0.3430854082107544, -0.5514121651649475, 0.4723871946334839, -0.4502447843551636, -0.2651602029800415, -0.6986112594604492, -0.38588640093803406, -0.3759439289569855, -0.14101330935955048, -0.5445709228515625, -0.4225151836872101, -0.5778977274894714, 0.11408130824565887, 0.6407263875007629, 0.42489543557167053, -0.08093362301588058, 0.10524718463420868, -0.790738046169281, 0.3460365831851959, 0.1328955739736557, 0.7870851159095764, 0.1121293306350708, -0.5431326031684875, 0.1633697897195816, 0.22484871745109558, -0.3266688883304596, -0.8870428800582886, 0.6521887183189392, 0.16727732121944427, 0.46297842264175415, 0.6441211700439453, -0.15260516107082367, 0.8391711711883545, -0.41640445590019226, 0.7058944702148438, 0.5127577185630798, -0.5200559496879578, 0.7121018171310425, -0.734420895576477, 0.10494758188724518, 0.30049067735671997, 0.6670380234718323, -0.567316472530365, -0.3983340263366699, -0.8025884628295898, -0.44889017939567566, 0.5588961243629456, 0.5596370697021484, 0.4457450211048126, 0.33724096417427063, 0.7533249855041504, 0.16266056895256042, 0.2896372079849243, -0.8757156133651733, -0.6571003198623657, -0.45788463950157166, -0.14996451139450073, 0.08562471717596054, 0.055893801152706146, -0.005614154972136021, -0.3468490242958069, 0.9244269728660583, 0.11282163113355637, 0.5521640181541443, 0.22805243730545044, 0.43580910563468933, -0.41480952501296997, -0.19160382449626923, 0.09537308663129807, 0.36747705936431885, -0.2834964990615845, -0.5641798973083496, -0.247210294008255, -0.5351772308349609, 0.14144955575466156, 0.08774129301309586, -0.5504589676856995, 0.1959400475025177, -0.17816609144210815, 1.0496065616607666, -0.15908662974834442, -0.38762885332107544, 0.44852855801582336, -0.1571347862482071, -0.2956917881965637, -0.48254576325416565, 0.32193100452423096, 0.19386519491672516, 0.5518351793289185, 0.021614912897348404, 0.6256143450737, 0.35091811418533325, -0.27238014340400696, 0.00707472488284111, 0.4840191900730133, -0.41565048694610596, -0.4806973934173584, 1.1824283599853516, 0.08755218237638474, -0.28335079550743103, 0.5247893929481506, -0.359503835439682, -0.23131488263607025, 0.8053362965583801, 0.7630330920219421, 0.9748684167861938, -0.3332754671573639, 0.5181511640548706, 0.7529897093772888, -0.06886321306228638, -0.0156514011323452, 0.506056010723114, 0.47288087010383606, -0.592326283454895, -0.1651163250207901, -0.8622788786888123, -0.14009211957454681, 0.24024315178394318, -0.41570770740509033, 0.6765350699424744, -0.6910349726676941, -0.285592645406723, -0.1678277552127838, -0.12364794313907623, -0.5717671513557434, 0.37987571954727173, 0.3338009715080261, 1.1714234352111816, -0.7484320402145386, 0.666030764579773, 0.6500328779220581, -0.603736162185669, -0.9962132573127747, -0.3289988040924072, 0.1927420198917389, -0.5839124917984009, 0.036117762327194214, 0.13399535417556763, 0.16885152459144592, 0.2653633654117584, -0.7983194589614868, -0.8457044363021851, 0.956211507320404, 0.40548044443130493, -0.5138969421386719, -0.41910606622695923, -0.3825185000896454, 0.5909180641174316, -0.4987359344959259, 0.3258344233036041, 0.2701994776725769, 0.20270632207393646, 0.4097484350204468, -0.7834963798522949, 0.22541525959968567, -0.7414526343345642, 0.2626570761203766, 0.085872121155262, -1.0699563026428223, 0.7701248526573181, -0.3381127119064331, -0.27854084968566895, 0.6739150881767273, 0.9150351881980896, 0.4036793112754822, 0.35914987325668335, 0.4829834997653961, 0.7865929007530212, 0.376552551984787, -0.284058153629303, 1.0989683866500854, -0.13842828571796417, 0.43462860584259033, 0.5467544198036194, 0.20592017471790314, 0.7522771954536438, 0.1451301872730255, -0.3483157157897949, 0.802594780921936, 0.9029794335365295, -0.19382470846176147, 0.3688255846500397, 0.160963237285614, -0.19046363234519958, -0.3056766390800476, -0.10222400724887848, -0.6021725535392761, 0.24412144720554352, 0.338461309671402, -0.3095090091228485, -0.020275680348277092, 0.3859676718711853, 0.10336311161518097, -0.07250809669494629, -0.2932077646255493, 0.4905279576778412, 0.3450111746788025, -0.324564665555954, 0.6577745676040649, -0.232527494430542, 0.9361843466758728, -0.7412854433059692, -0.10392431169748306, -0.462821364402771, -0.05462579429149628, -0.44624876976013184, -0.7607661485671997, 0.14317956566810608, 0.08428820967674255, 0.07682792097330093, -0.3138918876647949, 0.8331786394119263, -0.27928149700164795, -0.660339891910553, 0.16186866164207458, 0.33303943276405334, 0.5669317245483398, -0.02158885821700096, -1.0310512781143188, 0.22637037932872772, 0.08001977205276489, -0.34018903970718384, 0.1466604769229889, -0.06410815566778183, 0.4415143132209778, 0.9399017095565796, 0.3015598952770233, 0.24977365136146545, -0.1688614934682846, -0.1649535596370697, 0.6665626764297485, -0.30426353216171265, -0.5011602640151978, -0.5029938220977783, 0.7896965146064758, -0.14853684604167938, -0.22389699518680573, 0.6388309001922607, 0.5159028768539429, 0.7296777963638306, -0.5148375630378723, 0.7971189618110657, -0.6618114709854126, 0.24171335995197296, -0.4030672013759613, 1.229217529296875, -1.1957851648330688, -0.13973473012447357, -0.6913964152336121, -1.074427604675293, -0.15536639094352722, 0.7906023859977722, 0.20003274083137512, 0.21610385179519653, 0.09407501667737961, 0.7540473937988281, -0.26751065254211426, 0.09106910228729248, 0.21229475736618042, 0.27056455612182617, 0.06563733518123627, 0.5823031067848206, 0.7411386370658875, -0.7373512387275696, 0.2183958739042282, -0.7828238010406494, -0.3098069131374359, -0.14134879410266876, -0.8496792912483215, -0.9284356236457825, -0.6377590298652649, -0.7582464814186096, -0.699047327041626, -0.15951475501060486, 1.1077442169189453, 0.9874486327171326, -0.6631746292114258, -0.2577306628227234, 0.08752886950969696, -0.011386148631572723, -0.22215546667575836, -0.2605094909667969, 0.102213054895401, 0.44399622082710266, -1.264268159866333, 0.14167508482933044, -0.050442516803741455, 0.6587393879890442, -0.12461133301258087, -0.12425221502780914, 0.14578662812709808, -0.15767830610275269, 0.5239530205726624, 0.28033536672592163, -0.7009366154670715, -0.11193419247865677, 0.01080914307385683, 0.029798217117786407, 0.0429467111825943, 0.17066656053066254, -0.5587376356124878, 0.3456835448741913, 0.45995551347732544, -0.07341177016496658, 0.5039977431297302, -0.1284390538930893, 0.3444644808769226, -0.5296781063079834, 0.20896077156066895, 0.1759456843137741, 0.5298095941543579, 0.02100781537592411, -0.47356677055358887, 0.564033031463623, 0.5432978272438049, -0.43041500449180603, -0.45146864652633667, 0.0838799849152565, -1.2869611978530884, -0.29597392678260803, 0.8369027376174927, -0.12667283415794373, -0.11791397631168365, 0.39196085929870605, -0.5010038018226624, 0.17024710774421692, -0.34908419847488403, 0.3735926151275635, 0.3982558250427246, -0.38344863057136536, -0.34007784724235535, -0.6093149781227112, 0.46181371808052063, 0.034570369869470596, -0.7164881229400635, -0.2634672522544861, 0.6543936133384705, 0.6602843999862671, 0.37957504391670227, 0.7601156234741211, -0.41650038957595825, 0.1744152158498764, 0.22657565772533417, 0.204198956489563, -0.008111539296805859, -0.19258102774620056, -0.19016830623149872, 0.10429351776838303, -0.3592759668827057, -0.1293242871761322 ]
SRDdev/QABERT-small
SRDdev
"2023-06-21T15:00:00Z"
19,615
0
transformers
[ "transformers", "pytorch", "safetensors", "distilbert", "question-answering", "en", "dataset:squad_v2", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2023-02-08T12:40:31Z"
--- datasets: - squad_v2 language: - en metrics: - accuracy library_name: transformers pipeline_tag: question-answering tags: - question-answering --- # QA-BERT QA-BERT is a Question Answering Model. This model is a lighter version of any of the question-answering models out there. ## Dataset The Stanford Question Answering Dataset (SQuAD) is a widely used benchmark dataset for the task of machine reading comprehension. It consists of over 100,000 question-answer pairs based on a set of Wikipedia articles. The goal is to train models that can answer questions based on their understanding of the given text passages. SQuAD has played a significant role in advancing the state-of-the-art in this field and remains a popular choice for researchers and practitioners alike. Due to GPU limitations, this version is trained on `30k samples` from the Stanford Question Answering Dataset. <details> <summary><i>Structure of the Data Dictonary</i></summary> <!--All you need is a blank line--> { "data":[ { "title":"Article Title", "paragraphs":[ { "context":"The context text of the paragraph", "qas":[ { "question":"The question asked about the context", "id":"A unique identifier for the question", "answers":[ { "text":"The answer to the question", "answer_start":"The starting index of the answer in the context" } ] } ] } ] } ], "version":"The version of the SQuAD dataset" } </details> ## Model BERT (Bidirectional Encoder Representations from Transformers) is a pre-trained transformer-based model for natural language processing tasks such as question answering. BERT is fine-tuned for question answering by adding a linear layer on top of the pre-trained BERT representations to predict the start and end of the answer in the input context. BERT has achieved state-of-the-art results on multiple benchmark datasets, including the Stanford Question Answering Dataset (SQuAD). The fine-tuning process allows BERT to effectively capture the relationships between questions and answers and generate accurate answers. <img src="https://imgs.search.brave.com/F8m-nwp6EIG5vq--OmJLrCDpIkuX6tEQ_kyFKQjlUTs/rs:fit:1200:1200:1/g:ce/aHR0cHM6Ly9ibG9n/LmdyaWRkeW5hbWlj/cy5jb20vY29udGVu/dC9pbWFnZXMvMjAy/MC8xMC9TbGljZS0x/OC5wbmc"> For more detail about this read [Understanding QABERT](https://github.com/SRDdev/AnswerMind) ## Inference _Load model_ ```python from transformers import AutoTokenizer, AutoModelForQuestionAnswering QAtokenizer = AutoTokenizer.from_pretrained("SRDdev/QABERT-small") QAmodel = AutoModelForQuestionAnswering.from_pretrained("SRDdev/QABERT-small") ``` _context_ ```text Extractive Question Answering is the task of extracting an answer from a text given a question. An example of a question-answering dataset is the SQuAD dataset, which is entirely based on that task. If you would like to fine-tune a model on a SQuAD task, you may leverage the examples/pytorch/question-answering/run_squad.py script. ``` _Build Pipeline_ ```python from transformers import pipeline ask = pipeline("question-answering", model= QAmodel , tokenizer = QAtokenizer) result = ask(question="What is a good example of a question answering dataset?", context=context) print(f"Answer: '{result['answer']}'") ``` ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## Citations ``` @citation{ QA-BERT-small, author = {Shreyas Dixit}, year = {2023}, url = {https://huggingface.co/SRDdev/QA-BERT-small} } ```
[ -0.40544411540031433, -1.0066962242126465, 0.29947179555892944, 0.07571214437484741, -0.0041002254001796246, 0.05175101384520531, 0.11732250452041626, -0.2197253704071045, 0.049836110323667526, 0.2796168327331543, -1.1556504964828491, -0.23012201488018036, -0.22057771682739258, 0.1579136848449707, -0.45150360465049744, 1.1609160900115967, 0.04885666444897652, 0.1356404721736908, -0.24996668100357056, -0.05852213874459267, -0.42737501859664917, -0.453502893447876, -0.6515476107597351, -0.1615917682647705, 0.6275399327278137, 0.26187217235565186, 0.6466507315635681, 0.4119674563407898, 0.4916931092739105, 0.35611218214035034, 0.12358032166957855, 0.13713794946670532, -0.5972030162811279, 0.290088415145874, 0.08075305074453354, -0.5245781540870667, -0.2755821943283081, 0.058750689029693604, 0.4736500382423401, 0.2735596001148224, -0.027559181675314903, 0.3637790083885193, -0.17475703358650208, 0.4133637249469757, -0.2711089849472046, 0.14758840203285217, -0.7430890202522278, -0.3597453832626343, 0.3085680603981018, 0.05662533640861511, -0.14797967672348022, -0.4460138976573944, 0.42742130160331726, -0.5689034461975098, 0.4696801006793976, 0.07282305508852005, 1.2441595792770386, 0.4375455975532532, -0.18612904846668243, -0.33724749088287354, -0.3452913761138916, 0.9056882262229919, -0.8017579317092896, 0.02490938827395439, 0.4925031065940857, 0.44063451886177063, 0.004025517031550407, -0.6518577337265015, -0.8464106917381287, 0.06302110105752945, -0.21890977025032043, 0.24725763499736786, -0.06945622712373734, 0.03873705118894577, 0.09697673469781876, 0.1415325403213501, -0.7668735980987549, -0.20210188627243042, -0.6186248660087585, -0.20432248711585999, 0.822286069393158, 0.1768786609172821, 0.3310174345970154, -0.35602545738220215, -0.34814077615737915, -0.27119180560112, -0.3183176815509796, 0.43138957023620605, 0.2126207947731018, 0.21818503737449646, -0.031078271567821503, 0.5075426697731018, -0.4638262391090393, 0.6049463748931885, 0.16370326280593872, 0.33594974875450134, 0.19713182747364044, -0.34150242805480957, -0.23796609044075012, -0.20702224969863892, 0.8825741410255432, 0.24905507266521454, 0.43257540464401245, -0.23864424228668213, -0.019738471135497093, -0.1615321785211563, 0.4155479967594147, -0.8769356608390808, -0.43437010049819946, 0.628779947757721, -0.30516618490219116, -0.28831666707992554, 0.09068028628826141, -0.682704746723175, 0.08213913440704346, 0.00019480321498122066, 0.7397108674049377, -0.5734442472457886, 0.01651124283671379, -0.10714924335479736, -0.31182533502578735, 0.7360343933105469, 0.2684681713581085, -0.7421159744262695, -0.025951245799660683, 0.3359898626804352, 0.5627506375312805, 0.111762635409832, -0.3684663772583008, -0.38882914185523987, -0.09713242948055267, -0.23232832551002502, 0.9965277314186096, -0.20600073039531708, -0.08110422641038895, 0.08153849095106125, 0.3703022599220276, -0.36272233724594116, -0.3978590965270996, 0.2570255398750305, -0.7681636214256287, 0.3679612874984741, -0.49823909997940063, -0.7405194640159607, -0.21153515577316284, 0.3645058870315552, -0.5226311087608337, 1.1996947526931763, 0.32594287395477295, -0.4498690068721771, 0.1969841867685318, -0.6925196051597595, -0.30040621757507324, -0.0496942512691021, 0.20654630661010742, -0.34744369983673096, -0.3208025097846985, 0.5938644409179688, 0.4668371379375458, -0.283208966255188, 0.13779939711093903, -0.38225600123405457, -0.33818313479423523, 0.5199571251869202, -0.11146194487810135, 1.167232871055603, 0.13646799325942993, -0.009698620066046715, 0.15634596347808838, -0.5777136087417603, 0.48500433564186096, 0.07714623957872391, -0.2563057839870453, 0.0028498319443315268, -0.03464487940073013, -0.0610072948038578, 0.3928576111793518, 0.43823015689849854, -0.6756818890571594, 0.08234115689992905, -0.26361390948295593, 0.8556735515594482, 0.7512334585189819, 0.19250240921974182, 0.30778762698173523, -0.7552267909049988, 0.5461191534996033, -0.12494578212499619, 0.08844908326864243, -0.1490372121334076, -0.5716497302055359, -0.8005268573760986, -0.3462119400501251, 0.32902589440345764, 0.8138972520828247, -0.9086989164352417, 0.49484094977378845, -0.010243620723485947, -0.5887359976768494, -1.0401501655578613, 0.15287059545516968, 0.3151423931121826, 0.70527583360672, 0.632925808429718, 0.33661550283432007, -0.6318239569664001, -0.9743454456329346, -0.08765470236539841, -0.6157243847846985, -0.13802632689476013, 0.32721784710884094, 0.6774304509162903, -0.0734228566288948, 1.2368168830871582, -0.6484719514846802, -0.12191039323806763, -0.5127281546592712, 0.039724644273519516, 0.14609535038471222, 0.6696451306343079, 0.5622314214706421, -0.8491477370262146, -0.3359334170818329, -0.6019742488861084, -0.8494973182678223, -0.07083269208669662, -0.10669077187776566, -0.4789227247238159, -0.10875916481018066, 0.45074763894081116, -0.7506882548332214, 0.29294875264167786, 0.31240200996398926, -0.30383723974227905, 0.45893675088882446, -0.04278511181473732, 0.25764939188957214, -1.1280734539031982, 0.031789347529411316, -0.19221337139606476, -0.08631803095340729, -0.7205623388290405, 0.26932916045188904, 0.026105977594852448, -0.017431797459721565, -0.5025923252105713, 0.5048009157180786, -0.06908091902732849, 0.18599112331867218, 0.17498157918453217, 0.0389653705060482, 0.13493089377880096, 0.8010522127151489, -0.10648190975189209, 1.0492192506790161, 0.24127185344696045, -0.5259422063827515, 0.6110028028488159, 0.8101611733436584, -0.3189583122730255, 0.3627285361289978, -1.2416377067565918, 0.22819216549396515, -0.2410530000925064, 0.18579278886318207, -1.4312251806259155, -0.20420022308826447, 0.2050294131040573, -0.7374996542930603, -0.05038152635097504, -0.08780446648597717, -0.7280434370040894, -0.4815494418144226, -0.23174971342086792, 0.3466982841491699, 0.7321098446846008, -0.30993661284446716, 0.1894175112247467, 0.30428728461265564, -0.23910482227802277, -0.34683823585510254, -0.7709320783615112, -0.4485529065132141, -0.04504730924963951, -0.7278875708580017, 0.13193276524543762, -0.5164340138435364, -0.039028216153383255, 0.02065231092274189, -0.01043879147619009, -0.7337405681610107, 0.06607923656702042, 0.0701700821518898, 0.5308752655982971, -0.3491448760032654, 0.5473888516426086, 0.163985937833786, 0.1560397446155548, 0.02432582527399063, 0.014049052260816097, 0.6250225901603699, -0.335542231798172, 0.06718185544013977, -0.521237313747406, 0.4622420370578766, 0.3741753101348877, -0.39395779371261597, 0.7966141104698181, 0.6007496118545532, -0.14164453744888306, -0.0442415289580822, -0.45601487159729004, -0.43031638860702515, -0.4749126732349396, 0.4479201138019562, -0.2676238715648651, -0.8370494842529297, 0.6593199372291565, 0.47946688532829285, 0.28195589780807495, 0.7219955325126648, 0.4942435324192047, -0.8389520049095154, 1.0267586708068848, 0.2737317681312561, -0.16328059136867523, 0.36890920996665955, -0.5087089538574219, 0.0752878189086914, -0.7416492104530334, -0.18619726598262787, -0.644649088382721, -0.5408248901367188, -0.5175861716270447, -0.2934967875480652, 0.1446763575077057, 0.11774464696645737, -0.5037536025047302, 0.4705238938331604, -0.47907331585884094, 0.24178418517112732, 0.6433312892913818, 0.3265932500362396, -0.0989944189786911, -0.3168869614601135, 0.2728671133518219, 0.1651298999786377, -0.8655240535736084, -0.4525306820869446, 1.154658555984497, 0.1302724927663803, 0.6204618215560913, 0.002524652751162648, 0.7093372941017151, 0.31969985365867615, 0.0604645274579525, -0.7162685990333557, 0.691312849521637, 0.08409173786640167, -1.0801702737808228, -0.6404932141304016, -0.3827067017555237, -0.9881252646446228, 0.15124201774597168, -0.16970279812812805, -0.6660850644111633, 0.24481113255023956, 0.03447389230132103, -0.6216655373573303, -0.06804608553647995, -0.7833477854728699, 1.0548090934753418, 0.022559650242328644, -0.06515779346227646, -0.003994943108409643, -0.8415735960006714, 0.1732727587223053, 0.23313069343566895, -0.2165282517671585, -0.22768940031528473, 0.05413353070616722, 0.9330146312713623, -0.47104066610336304, 0.7275773882865906, -0.18938232958316803, 0.06147977337241173, 0.6360854506492615, -0.27211418747901917, 0.18300265073776245, 0.1823662370443344, -0.23816701769828796, -0.04087887704372406, 0.5575134754180908, -0.8065831661224365, -0.63546222448349, 0.451717346906662, -1.0346558094024658, -0.39402860403060913, -0.2491496205329895, -1.0780967473983765, -0.29458799958229065, 0.21158887445926666, 0.2957940995693207, 0.4437929689884186, -0.1785661280155182, 0.2957189083099365, 0.7924078106880188, -0.2350434809923172, 0.5077216625213623, 0.5367951989173889, -0.013697289861738682, -0.1643109917640686, 0.7623046636581421, 0.1581958681344986, 0.24521803855895996, 0.5701438784599304, -0.11039871722459793, -0.4487174153327942, -0.342705100774765, -0.5121562480926514, 0.24425990879535675, -0.47579145431518555, -0.26036083698272705, -0.6275054812431335, -0.543095052242279, -0.5646257996559143, 0.015254824422299862, -0.04156075790524483, -0.5217507481575012, -0.3956645131111145, -0.08021676540374756, 0.5099537968635559, 0.43168118596076965, 0.38575294613838196, 0.6026391386985779, -0.6870653629302979, 0.5946295261383057, 0.780065655708313, -0.011771426536142826, -0.25615838170051575, -0.519684374332428, -0.14618058502674103, 0.4121361970901489, -0.2977942228317261, -1.0205261707305908, 0.296802282333374, 0.31187453866004944, 0.5973973870277405, 0.09692033380270004, 0.42029526829719543, 0.7932823300361633, -0.3346329629421234, 0.8237292766571045, -0.3546113967895508, -0.6800866723060608, 0.7457032203674316, -0.4176177680492401, 0.40464168787002563, 0.8590670824050903, 0.19709889590740204, -0.19376808404922485, -0.5467367172241211, -0.7821619510650635, -0.6519481539726257, 0.7707865238189697, 0.37940338253974915, 0.16229721903800964, -0.1609940379858017, 0.4029691815376282, -0.14414800703525543, 0.5355650186538696, -0.5428096652030945, -0.23012830317020416, -0.21501220762729645, -0.4376932382583618, -0.05230698734521866, -0.05400805175304413, -0.026075582951307297, -0.47592607140541077, 0.8602680563926697, -0.1750040501356125, 0.700989305973053, 0.4372686445713043, -0.4299442768096924, 0.1556234061717987, 0.19157974421977997, 0.4035181999206543, 0.5385653972625732, -0.56559157371521, -0.3791230618953705, 0.2237611711025238, -0.31262585520744324, 0.0575873963534832, 0.2617027461528778, -0.4378405213356018, -0.009151823818683624, 0.4386048913002014, 0.5498941540718079, 0.010344675742089748, -0.9065130949020386, 0.4327407777309418, -0.020973829552531242, -0.33599135279655457, -0.2240869700908661, 0.22561439871788025, -0.13879865407943726, 0.43952932953834534, 0.5838643312454224, -0.12613674998283386, -0.04872475937008858, -0.700679361820221, 0.28654858469963074, 0.476563423871994, -0.5323565006256104, -0.14242692291736603, 0.49779629707336426, 0.05868329852819443, -0.24167273938655853, 0.8924055099487305, -0.10205372422933578, -0.7096708416938782, 1.05391263961792, 0.32592007517814636, 0.6996948719024658, -0.09553338587284088, 0.5335070490837097, 0.36740976572036743, 0.49715936183929443, 0.2798251211643219, 0.6115952134132385, -0.06595149636268616, -0.8231637477874756, -0.12480166554450989, -0.5507475733757019, -0.20598024129867554, 0.11093947291374207, -0.9119532704353333, -0.16728322207927704, -0.4513339102268219, 0.07827873528003693, -0.050271566957235336, 0.1864583045244217, -0.8399878144264221, 0.4547494351863861, -0.4435760974884033, 0.8706136345863342, -0.6273038983345032, 0.8978601098060608, 0.7818518280982971, -0.7401395440101624, -0.8281620740890503, 0.13718968629837036, -0.35615450143814087, -1.2497828006744385, 0.5955018997192383, 0.1504974663257599, 0.33763375878334045, 0.31843259930610657, -0.7685810327529907, -0.690325140953064, 1.1711723804473877, 0.19122672080993652, -0.16786620020866394, -0.2859634459018707, 0.09658394753932953, 0.6266739964485168, -0.3889898955821991, 0.3586795926094055, 0.6476016044616699, 0.3019082844257355, 0.06172364205121994, -0.5410317182540894, 0.02905738353729248, -0.38622480630874634, -0.10786290466785431, -0.039019640535116196, -0.7999332547187805, 0.9729915857315063, -0.3498580753803253, 0.11885768175125122, 0.491240531206131, 0.7429898977279663, 0.18443657457828522, 0.12261535972356796, 0.4808444380760193, 0.32264697551727295, 0.7367597222328186, -0.3062262237071991, 1.0116647481918335, -0.30286332964897156, 0.5017937421798706, 1.0138670206069946, 0.07981690019369125, 1.041084885597229, 0.5298627018928528, -0.33558234572410583, 0.6528903841972351, 0.7414740920066833, -0.27593308687210083, 0.7003141641616821, 0.14597167074680328, 0.1363971084356308, -0.4357796609401703, 0.20739439129829407, -0.3233007788658142, 0.3368017375469208, 0.06463316828012466, -0.29075050354003906, -0.18490828573703766, -0.13320663571357727, -0.18932515382766724, -0.13379839062690735, -0.22770096361637115, 0.8528759479522705, -0.2759033143520355, -0.7693197727203369, 0.7050839066505432, -0.30079904198646545, 0.3868432343006134, -0.7857090830802917, -0.009105968289077282, -0.24752266705036163, -0.03865149989724159, 0.007684285752475262, -0.867602527141571, 0.1370987594127655, -0.008696199394762516, -0.5202874541282654, -0.24309298396110535, 0.5451456308364868, -0.6370945572853088, -0.5987743139266968, -0.05941717326641083, 0.6960753798484802, 0.13842134177684784, -0.04573697969317436, -0.9906237721443176, -0.3095163404941559, -0.010293577797710896, -0.1404387354850769, 0.18923696875572205, 0.3465363383293152, 0.34126967191696167, 0.8032354116439819, 0.6167085766792297, -0.23022617399692535, 0.2783293128013611, -0.22445906698703766, 0.8585677146911621, -0.5349867939949036, -0.5249758362770081, -0.5629302263259888, 0.6769418716430664, -0.11909130960702896, -0.5848819017410278, 0.6802468299865723, 0.47496846318244934, 0.5742310881614685, -0.153904527425766, 0.8219963312149048, -0.32905787229537964, 0.7125362753868103, -0.3515735864639282, 0.9282399415969849, -0.5397542119026184, 0.11974606662988663, -0.21036282181739807, -0.6366448998451233, 0.19313916563987732, 0.8928462266921997, -0.355422705411911, 0.0355849452316761, 0.6131576895713806, 0.8596023917198181, 0.2269306480884552, 0.1533157378435135, 0.05189909040927887, 0.3040282726287842, 0.18921391665935516, 0.7124480605125427, 0.785400927066803, -0.8057823777198792, 0.9362859129905701, -0.21115821599960327, -0.1291484832763672, -0.052939899265766144, -0.3526562452316284, -1.1385366916656494, -0.7972065210342407, -0.234880730509758, -0.4042619466781616, 0.28816449642181396, 0.7882573008537292, 0.780669093132019, -0.9664523601531982, -0.14696812629699707, -0.09206952154636383, 0.23706753551959991, -0.47153016924858093, -0.3069465756416321, 0.38095128536224365, -0.7056800127029419, -0.7021247148513794, 0.16508284211158752, -0.26690107583999634, -0.040743712335824966, -0.07793063670396805, 0.06665043532848358, -0.7049543857574463, 0.23765701055526733, 0.4580495059490204, 0.2951875329017639, -0.6114704012870789, -0.38366469740867615, 0.38150423765182495, -0.1363750845193863, 0.10012871772050858, 0.4279872179031372, -0.9839316606521606, 0.2700682580471039, 0.5832376480102539, 0.8598329424858093, 0.43423518538475037, 0.09124740958213806, 0.640898585319519, -0.6491695642471313, -0.05298472195863724, 0.30379053950309753, 0.1531374454498291, 0.10475291311740875, -0.24532382190227509, 0.4181114733219147, 0.032941579818725586, -0.6504285931587219, -0.8203640580177307, -0.040254127234220505, -1.1053098440170288, -0.31211134791374207, 0.9870702624320984, -0.30838119983673096, -0.2509250044822693, -0.17916510999202728, -0.4508395493030548, 0.3460318148136139, -0.6150561571121216, 0.8271661400794983, 0.8261240720748901, -0.13323087990283966, -0.31232738494873047, -0.6888166666030884, 0.518031120300293, 0.5553464293479919, -0.976019024848938, -0.18202243745326996, 0.15455393493175507, 0.34205299615859985, -0.08207903057336807, 0.4687000811100006, 0.2987779378890991, 0.4795500338077545, -0.31976398825645447, -0.2089245468378067, 0.0169212743639946, -0.08952543884515762, -0.04703854024410248, 0.19963489472866058, -0.38724178075790405, -0.6076945066452026 ]
stabilityai/stablelm-3b-4e1t
stabilityai
"2023-10-25T04:43:37Z"
19,582
244
transformers
[ "transformers", "safetensors", "stablelm_epoch", "text-generation", "causal-lm", "custom_code", "en", "dataset:tiiuae/falcon-refinedweb", "dataset:togethercomputer/RedPajama-Data-1T", "dataset:CarperAI/pilev2-dev", "dataset:bigcode/starcoderdata", "dataset:allenai/peS2o", "arxiv:2307.09288", "arxiv:2104.09864", "arxiv:2204.06745", "arxiv:1607.06450", "arxiv:1910.07467", "arxiv:2101.00027", "arxiv:2305.06161", "arxiv:1910.02054", "license:cc-by-sa-4.0", "has_space", "region:us" ]
text-generation
"2023-09-29T06:05:21Z"
--- license: cc-by-sa-4.0 datasets: - tiiuae/falcon-refinedweb - togethercomputer/RedPajama-Data-1T - CarperAI/pilev2-dev - bigcode/starcoderdata - allenai/peS2o language: - en tags: - causal-lm extra_gated_fields: Name: text Email: text Country: text Organization or Affiliation: text I ALLOW Stability AI to email me about new model releases: checkbox --- # `StableLM-3B-4E1T` ## Model Description `StableLM-3B-4E1T` is a 3 billion parameter decoder-only language model pre-trained on 1 trillion tokens of diverse English and code datasets for 4 epochs. ## Usage Get started generating text with `StableLM-3B-4E1T` by using the following code snippet: ```python from transformers import AutoModelForCausalLM, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-3b-4e1t") model = AutoModelForCausalLM.from_pretrained( "stabilityai/stablelm-3b-4e1t", trust_remote_code=True, torch_dtype="auto", ) model.cuda() inputs = tokenizer("The weather is always wonderful", return_tensors="pt").to("cuda") tokens = model.generate( **inputs, max_new_tokens=64, temperature=0.75, top_p=0.95, do_sample=True, ) print(tokenizer.decode(tokens[0], skip_special_tokens=True)) ``` ## Model Details * **Developed by**: [Stability AI](https://stability.ai/) * **Model type**: `StableLM-3B-4E1T` models are auto-regressive language models based on the transformer decoder architecture. * **Language(s)**: English * **Library**: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox) * **License**: Model checkpoints are licensed under the Creative Commons license ([CC BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)). Under this license, you must give [credit](https://creativecommons.org/licenses/by/4.0/#) to Stability AI, provide a link to the license, and [indicate if changes were made](https://creativecommons.org/licenses/by/4.0/#). You may do so in any reasonable manner, but not in any way that suggests the Stability AI endorses you or your use. * **Contact**: For questions and comments about the model, please email `lm@stability.ai` ### Model Architecture The model is a decoder-only transformer similar to the LLaMA ([Touvron et al., 2023](https://arxiv.org/abs/2307.09288)) architecture with the following modifications: | Parameters | Hidden Size | Layers | Heads | Sequence Length | |----------------|-------------|--------|-------|-----------------| | 2,795,443,200 | 2560 | 32 | 32 | 4096 | * **Position Embeddings**: Rotary Position Embeddings ([Su et al., 2021](https://arxiv.org/abs/2104.09864)) applied to the first 25% of head embedding dimensions for improved throughput following [Black et al. (2022)](https://arxiv.org/pdf/2204.06745.pdf). * **Normalization**: LayerNorm ([Ba et al., 2016](https://arxiv.org/abs/1607.06450)) with learned bias terms as opposed to RMSNorm ([Zhang & Sennrich, 2019](https://arxiv.org/abs/1910.07467)). * **Tokenizer**: GPT-NeoX ([Black et al., 2022](https://arxiv.org/abs/2204.06745)). ## Training For complete dataset and training details, please see the [StableLM-3B-4E1T Technical Report](https://stability.wandb.io/stability-llm/stable-lm/reports/StableLM-3B-4E1T--VmlldzoyMjU4?accessToken=u3zujipenkx5g7rtcj9qojjgxpconyjktjkli2po09nffrffdhhchq045vp0wyfo). ### Training Dataset The dataset is comprised of a filtered mixture of open-source large-scale datasets available on the [HuggingFace Hub](https://huggingface.co/datasets): Falcon RefinedWeb extract ([Penedo et al., 2023](https://huggingface.co/datasets/tiiuae/falcon-refinedweb)), RedPajama-Data ([Together Computer., 2023](https://github.com/togethercomputer/RedPajama-Data)) and The Pile ([Gao et al., 2020](https://arxiv.org/abs/2101.00027)) both without the *Books3* subset, and StarCoder ([Li et al., 2023](https://arxiv.org/abs/2305.06161)). * Given the large amount of web data, we recommend fine-tuning the base StableLM-3B-4E1T for your downstream tasks. ### Training Procedure The model is pre-trained on the aforementioned datasets in `bfloat16` precision, optimized with AdamW, and trained using the NeoX tokenizer with a vocabulary size of 50,257. We outline the complete hyperparameters choices in the project's [GitHub repository - config](https://github.com/Stability-AI/StableLM/blob/main/configs/stablelm-3b-4e1t.yml). ### Training Infrastructure * **Hardware**: `StableLM-3B-4E1T` was trained on the Stability AI cluster across 256 NVIDIA A100 40GB GPUs (AWS P4d instances). Training began on August 23, 2023, and took approximately 30 days to complete. * **Software**: We use a fork of `gpt-neox` ([EleutherAI, 2021](https://github.com/EleutherAI/gpt-neox)), train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 ([Rajbhandari et al., 2019](https://arxiv.org/abs/1910.02054v3)), and rely on flash-attention as well as SwiGLU and Rotary Embedding kernels from FlashAttention-2 ([Dao et al., 2023](https://tridao.me/publications/flash2/flash2.pdf)) ## Use and Limitations ### Intended Use The model is intended to be used as a foundational base model for application-specific fine-tuning. Developers must evaluate and fine-tune the model for safe performance in downstream applications. ### Limitations and Bias ​ As a base model, this model may exhibit unreliable, unsafe, or other undesirable behaviors that must be corrected through evaluation and fine-tuning prior to deployment. The pre-training dataset may have contained offensive or inappropriate content, even after applying data cleansing filters, which can be reflected in the model-generated text. We recommend that users exercise caution when using these models in production systems. Do not use the models if they are unsuitable for your application, or for any applications that may cause deliberate or unintentional harm to others. ## How to Cite ```bibtex @misc{StableLM-3B-4E1T, url={[https://huggingface.co/stabilityai/stablelm-3b-4e1t](https://huggingface.co/stabilityai/stablelm-3b-4e1t)}, title={StableLM 3B 4E1T}, author={Tow, Jonathan and Bellagente, Marco and Mahan, Dakota and Riquelme, Carlos} } ```
[ -0.42495888471603394, -0.7149739265441895, 0.11092743277549744, 0.2257450968027115, -0.26908597350120544, -0.2604435980319977, -0.202638179063797, -0.5919390320777893, 0.10485632717609406, 0.26381441950798035, -0.46323347091674805, -0.5407767295837402, -0.6033862233161926, 0.02764192223548889, -0.25799959897994995, 1.1673929691314697, -0.047726087272167206, -0.21535301208496094, -0.02589942142367363, -0.2545386552810669, -0.2562510371208191, -0.43136823177337646, -0.6820303797721863, -0.16433373093605042, 0.269702672958374, 0.06614655256271362, 0.9154130220413208, 0.9813870787620544, 0.48568132519721985, 0.32588815689086914, -0.14353598654270172, -0.001832147128880024, -0.6346022486686707, 0.005118151661008596, 0.2593066394329071, -0.14077581465244293, -0.7272404432296753, 0.054581109434366226, 0.6938111782073975, 0.3565461337566376, -0.2852756977081299, 0.24472442269325256, 0.006931085139513016, 0.48315367102622986, -0.5780466198921204, 0.11295194923877716, -0.5792508125305176, -0.2733394503593445, -0.12693722546100616, 0.31207382678985596, -0.21102085709571838, -0.2100534290075302, -0.029229221865534782, -0.6940171718597412, 0.16168564558029175, -0.015585637651383877, 1.3828864097595215, 0.41582760214805603, -0.22528403997421265, 0.22797691822052002, -0.5546088814735413, 0.8059103488922119, -0.925783097743988, 0.5562564134597778, 0.4687604308128357, 0.0668189525604248, 0.16554085910320282, -0.8388792276382446, -0.48209843039512634, -0.062463972717523575, 0.028856953606009483, 0.26052820682525635, -0.2124694138765335, -0.09410921484231949, 0.3927948474884033, -0.013468203134834766, -0.613278329372406, 0.18020059168338776, -0.24738365411758423, -0.350225031375885, 0.6070772409439087, 0.20026330649852753, 0.03284023329615593, -0.07966943830251694, -0.48755040764808655, -0.2695869207382202, -0.6063121557235718, 0.09898773580789566, 0.343779057264328, 0.2579951286315918, -0.5641869306564331, 0.22000619769096375, 0.013701490126550198, 0.5210856795310974, 0.12991516292095184, -0.31890079379081726, 0.5996574759483337, -0.44117575883865356, -0.21178553998470306, -0.14786577224731445, 1.0977888107299805, 0.5125130414962769, -0.06041187047958374, -0.038272690027952194, -0.35572317242622375, 0.1356038749217987, 0.26552730798721313, -1.0091382265090942, 0.003377210581675172, 0.3072555363178253, -0.5220032930374146, -0.3808467388153076, 0.16775543987751007, -0.6470053195953369, -0.09354960918426514, -0.11241304129362106, 0.3930251896381378, -0.5081545114517212, -0.50679612159729, 0.1564132124185562, -0.037938982248306274, 0.3937132954597473, 0.11951712518930435, -0.7975415587425232, 0.34957626461982727, 0.5088787078857422, 0.7604465484619141, -0.13096261024475098, -0.45275917649269104, -0.334143728017807, 0.11203216761350632, -0.15531009435653687, 0.30237677693367004, -0.18467716872692108, -0.1946977972984314, -0.044676221907138824, 0.17297659814357758, -0.03367544710636139, -0.28817546367645264, 0.5294674038887024, -0.4961109459400177, 0.09997763484716415, 0.09145428985357285, -0.3508620858192444, -0.14851991832256317, 0.45617786049842834, -0.5828536152839661, 1.1142162084579468, 0.37628209590911865, -0.8585709929466248, 0.1366802155971527, -0.4568946957588196, -0.2673383355140686, -0.17793256044387817, 0.015513986349105835, -0.8845688700675964, -0.38132980465888977, 0.1659233570098877, 0.39735397696495056, -0.32451650500297546, 0.22827745974063873, -0.39732688665390015, -0.37494364380836487, -0.031529102474451065, -0.2291681468486786, 0.9220942258834839, 0.20033079385757446, -0.7518333196640015, 0.2221781462430954, -0.7223939299583435, -0.07625645399093628, 0.31815433502197266, -0.19097800552845, -0.04392015561461449, -0.24850918352603912, 0.16499756276607513, 0.2414911985397339, 0.3478252589702606, -0.4819135069847107, 0.1238514706492424, -0.37855786085128784, 0.45587587356567383, 0.6604718565940857, -0.16018164157867432, 0.3618031144142151, -0.25920209288597107, 0.5952116847038269, 0.09708427637815475, 0.4099942445755005, -0.06500445306301117, -0.6168750524520874, -0.7356070280075073, -0.15580067038536072, 0.28958824276924133, 0.5291726589202881, -0.4842829704284668, 0.37550094723701477, -0.33623993396759033, -0.5969122052192688, -0.49791771173477173, 0.1346156895160675, 0.5602530241012573, 0.6620306968688965, 0.6504514813423157, 0.1299971342086792, -0.6780498027801514, -0.8937875032424927, 0.2017069160938263, -0.21719475090503693, 0.18850308656692505, 0.024323616176843643, 0.49316421151161194, -0.6651074886322021, 0.7071554660797119, -0.26763176918029785, -0.07338375598192215, -0.06445934623479843, 0.008718200959265232, 0.3067859411239624, 0.7279400825500488, 0.7803000211715698, -0.6495764255523682, -0.4388309419155121, -0.005046280566602945, -0.7455363869667053, 0.17598356306552887, -0.010250666178762913, -0.27783942222595215, 0.4768921136856079, 0.3288011848926544, -0.9012125730514526, 0.38174647092819214, 0.5952306389808655, -0.4387747049331665, 0.5575815439224243, -0.02954331785440445, -0.2607894241809845, -1.1174193620681763, 0.26811498403549194, 0.1081852987408638, -0.26657232642173767, -0.5360241532325745, 0.07301010191440582, 0.2693305015563965, -0.005515096243470907, -0.5962231755256653, 0.5539534687995911, -0.4325997829437256, 0.10623138397932053, -0.1619565635919571, 0.18375249207019806, 0.021924424916505814, 0.42288288474082947, -0.002422850113362074, 0.598798394203186, 0.7114356756210327, -0.5577219724655151, 0.020208975300192833, 0.3148472011089325, 0.04856612905859947, 0.09873601049184799, -0.7966064214706421, 0.2019096463918686, 0.0649801567196846, 0.17760971188545227, -0.5567825436592102, 0.019485829398036003, 0.4038182497024536, -0.42506274580955505, 0.4750330150127411, -0.2671560049057007, -0.3267231285572052, -0.5213447213172913, -0.40521565079689026, 0.3388868272304535, 0.6929991841316223, -0.29457077383995056, 0.4785365164279938, 0.41838139295578003, 0.11887199431657791, -0.9422627091407776, -0.598091185092926, -0.20070794224739075, -0.21785686910152435, -0.721701979637146, 0.4849914014339447, -0.134550541639328, -0.12943404912948608, 0.08626331388950348, -0.17712409794330597, 0.1704569309949875, 0.23597481846809387, 0.39290452003479004, 0.4847554564476013, -0.23909597098827362, -0.29482948780059814, -0.05493094399571419, -0.34537413716316223, 0.05033351480960846, -0.32769468426704407, 0.5598301887512207, -0.6511474847793579, -0.0005816128687001765, -0.6799193024635315, 0.10310720652341843, 0.724687933921814, -0.1168353334069252, 0.893930971622467, 1.1207904815673828, -0.3784283697605133, 0.1311461627483368, -0.3744751214981079, -0.3256833553314209, -0.5011377334594727, 0.3088907301425934, -0.16392746567726135, -0.8393036127090454, 0.7057783603668213, 0.3515380322933197, 0.1956784874200821, 0.7341479659080505, 0.548656702041626, 0.04876033961772919, 1.1494823694229126, 0.5842544436454773, -0.128012016415596, 0.324089914560318, -0.7532913088798523, -0.02755286544561386, -0.8160752058029175, -0.2882624864578247, -0.45668211579322815, -0.38462525606155396, -0.7004440426826477, -0.31577885150909424, 0.16415272653102875, 0.1821601390838623, -0.7704874873161316, 0.4105992019176483, -0.5276213884353638, 0.10112694650888443, 0.4130447208881378, -0.008016565814614296, -0.1900884509086609, -0.19525936245918274, -0.18589164316654205, 0.13956990838050842, -0.6386407017707825, -0.4441433250904083, 1.0491033792495728, 0.5846985578536987, 0.7136853337287903, 0.15862703323364258, 0.6121643781661987, -0.10037385672330856, 0.2651849687099457, -0.5687409043312073, 0.4964427053928375, -0.0558599978685379, -0.547539234161377, -0.20296773314476013, -0.4739856719970703, -1.0917502641677856, 0.06827448308467865, -0.33418622612953186, -0.5280218124389648, 0.2906613349914551, 0.19575439393520355, -0.42244064807891846, 0.23474007844924927, -0.5400407910346985, 0.9889376163482666, -0.3608511686325073, -0.5559205412864685, -0.0011188250500708818, -0.9802485704421997, 0.27065274119377136, 0.08847305178642273, 0.19011721014976501, -0.11996257305145264, -0.2107383757829666, 0.8293115496635437, -0.6052997708320618, 0.7958593964576721, -0.4317837655544281, 0.07161010056734085, 0.26429516077041626, -0.026199599727988243, 0.6316964030265808, 0.2948905825614929, -0.41765129566192627, 0.5050605535507202, 0.08443568646907806, -0.4780888259410858, -0.4187004268169403, 0.7045134902000427, -1.2800660133361816, -0.5048131942749023, -0.4544566869735718, -0.4305015802383423, -0.03883133456110954, 0.5123106241226196, 0.2725357413291931, 0.3716694414615631, 0.15214185416698456, 0.3979698419570923, 0.4469318985939026, -0.0014118122635409236, 0.6617836952209473, 0.4330739974975586, -0.23258166015148163, -0.6570937037467957, 0.8289397954940796, 0.04054129496216774, 0.13776549696922302, 0.061471402645111084, 0.1917019486427307, -0.4642827808856964, -0.7900834083557129, -0.5448921918869019, 0.36710453033447266, -0.5707381963729858, -0.5632727146148682, -0.6438631415367126, -0.30890953540802, -0.4352499842643738, -0.07257992029190063, -0.6377726793289185, -0.38330188393592834, -0.5186145305633545, -0.19448596239089966, 0.5032490491867065, 0.519433319568634, -0.036389440298080444, 0.3379010856151581, -0.802175760269165, 0.22090981900691986, 0.04166800156235695, 0.38251572847366333, -0.15314888954162598, -0.6222031116485596, -0.4595969617366791, 0.2646830976009369, -0.3603336811065674, -0.5937691926956177, 0.4655997157096863, 0.17000645399093628, 0.682844340801239, 0.5801488161087036, 0.15612153708934784, 0.7224052548408508, -0.3058323860168457, 0.9396162033081055, 0.1786956638097763, -0.777076244354248, 0.5286321043968201, -0.5351470708847046, 0.23749670386314392, 0.526469349861145, 0.5307980179786682, -0.10811302065849304, -0.2582501173019409, -0.8157120943069458, -1.0122286081314087, 0.8192052245140076, 0.2703884243965149, 0.10949710011482239, -0.10403861105442047, 0.6374139189720154, 0.021026892587542534, 0.06655345857143402, -0.8032343983650208, -0.48298346996307373, -0.6742976903915405, -0.20556512475013733, 0.004444771911948919, -0.15254124999046326, -0.2015901803970337, -0.452803373336792, 0.8437745571136475, -0.1828751415014267, 0.5211159586906433, 0.11296339333057404, -0.1402924656867981, -0.12406038492918015, -0.24764633178710938, 0.6843878030776978, 0.5740868449211121, -0.493271142244339, 0.05350281298160553, 0.07319192588329315, -0.7785103917121887, 0.0963977500796318, 0.3318295478820801, -0.48019030690193176, -0.2372390478849411, 0.24158550798892975, 1.1954703330993652, 0.17256057262420654, -0.41254955530166626, 0.4659332036972046, -0.2097615897655487, -0.4196029007434845, -0.2886873185634613, 0.0379471592605114, 0.06661399453878403, 0.02674977295100689, 0.21288463473320007, 0.27960288524627686, -0.20695649087429047, -0.20520268380641937, 0.27766743302345276, 0.4074826240539551, -0.2949756383895874, -0.4906308650970459, 0.9029434323310852, 0.1315748393535614, -0.12993258237838745, 0.8292719125747681, -0.16323983669281006, -0.43975770473480225, 0.6230869293212891, 0.9250615835189819, 0.8566293120384216, -0.15265090763568878, 0.15279275178909302, 0.6323704719543457, 0.41810357570648193, -0.16836990416049957, 0.28955644369125366, 0.3120765686035156, -0.906197726726532, -0.2103293091058731, -0.7739390134811401, -0.20582322776317596, 0.21937993168830872, -0.7023755311965942, 0.4392387270927429, -0.7528916597366333, -0.4744458496570587, -0.29120486974716187, 0.10677405446767807, -0.6774811148643494, 0.14447015523910522, 0.2176668345928192, 0.8447619676589966, -0.6701394319534302, 0.9237438440322876, 0.8712819218635559, -0.5207440853118896, -1.048384428024292, -0.03862643986940384, -0.029765162616968155, -0.7077102065086365, 0.38802531361579895, 0.36289408802986145, -0.206430122256279, 0.2865077555179596, -0.5066774487495422, -1.062608242034912, 1.3853189945220947, 0.5438811182975769, -0.5068982839584351, 0.14226524531841278, -0.09417515993118286, 0.4985310733318329, -0.3657878041267395, 0.4396055042743683, 0.4815559983253479, 0.5474038124084473, -0.09668951481580734, -0.7101713418960571, 0.2576292157173157, -0.6131769418716431, 0.09812597185373306, 0.1386936902999878, -0.8905555605888367, 0.8784330487251282, -0.2028026133775711, -0.04064774885773659, -0.04392312839627266, 0.6661550402641296, 0.449710488319397, 0.15244145691394806, 0.5384778380393982, 0.9426160454750061, 0.6612564921379089, -0.15841346979141235, 1.1051000356674194, -0.650185763835907, 0.4949997365474701, 0.8340131640434265, -0.013438453897833824, 0.9122899174690247, 0.3172242045402527, -0.1660006046295166, 0.6938260793685913, 0.7416231036186218, -0.1928429752588272, 0.3853851854801178, -0.32035115361213684, 0.12839949131011963, -0.1964169144630432, 0.1557508111000061, -0.672711968421936, 0.29259106516838074, 0.31795039772987366, -0.21153829991817474, 0.025975437834858894, -0.00787388812750578, 0.30197837948799133, -0.2716035842895508, -0.15698710083961487, 0.4926531910896301, 0.08451779186725616, -0.4822382926940918, 1.193036675453186, 0.10089058429002762, 0.69938063621521, -0.5959703326225281, 0.2714899778366089, -0.23339518904685974, 0.21413297951221466, -0.20356683433055878, -0.6307926774024963, 0.33377406001091003, -0.04595471918582916, -0.18221378326416016, -0.3025062680244446, 0.5789842009544373, -0.13178078830242157, -0.45923295617103577, 0.4817870855331421, 0.26406779885292053, 0.06190016493201256, 0.13748012483119965, -1.0387544631958008, 0.511278510093689, -0.12685246765613556, -0.49718403816223145, 0.36785367131233215, 0.14453911781311035, -0.03548272326588631, 0.6289642453193665, 0.7163503170013428, -0.14117632806301117, 0.10066461563110352, 0.14381709694862366, 0.9812685251235962, -0.6571840643882751, -0.45876479148864746, -0.7948998808860779, 0.8215370774269104, -0.006532954517751932, -0.43123090267181396, 0.7960157990455627, 0.5738480687141418, 0.7247989773750305, 0.09979590773582458, 0.6284854412078857, -0.24755977094173431, 0.1355551928281784, -0.37514427304267883, 0.7920904159545898, -0.610889196395874, 0.30659544467926025, -0.36141878366470337, -0.9422559142112732, -0.34213536977767944, 0.6911997199058533, -0.016908705234527588, 0.22602082788944244, 0.5441794991493225, 0.8499850630760193, -0.004777343478053808, -0.06469263136386871, 0.12103024870157242, 0.52946537733078, 0.25282567739486694, 0.31840139627456665, 0.5605172514915466, -0.8409788608551025, 0.6561793684959412, -0.5846611857414246, -0.15116001665592194, -0.24768805503845215, -0.8533586263656616, -0.7369595766067505, -0.43731629848480225, -0.4627036154270172, -0.6964649558067322, 0.013847680762410164, 0.887372612953186, 0.8753508925437927, -0.7860251069068909, -0.16854281723499298, -0.237716406583786, 0.02541404962539673, -0.4464919865131378, -0.16027599573135376, 0.4282006323337555, -0.2293560951948166, -0.5892301201820374, 0.31979891657829285, 0.046994082629680634, 0.28620943427085876, -0.2386191189289093, -0.5663307905197144, -0.23959539830684662, -0.2609054446220398, 0.480449914932251, 0.2972102761268616, -0.6899867653846741, -0.2817789316177368, 0.18606124818325043, -0.08358172327280045, 0.11596927791833878, 0.23969464004039764, -0.6700063347816467, 0.18064522743225098, 0.2979278266429901, 0.632238507270813, 0.753574013710022, 0.13554736971855164, 0.26891371607780457, -0.5266594290733337, 0.41109970211982727, 0.2520577907562256, 0.38664600253105164, 0.3023407459259033, -0.3921985924243927, 0.49659231305122375, 0.48023858666419983, -0.6254942417144775, -0.8993861079216003, -0.013520191423594952, -1.2393473386764526, -0.007142930291593075, 1.3038456439971924, -0.22147507965564728, -0.3710385262966156, -0.026697346940636635, -0.07158708572387695, 0.33775997161865234, -0.47593453526496887, 0.5088168382644653, 0.2892816662788391, -0.16210399568080902, -0.45074570178985596, -0.419635534286499, 0.5095423460006714, 0.252247154712677, -0.5934181809425354, -0.10620797425508499, 0.3524108827114105, 0.37997308373451233, 0.3157006800174713, 0.42542290687561035, -0.23792117834091187, 0.2428717315196991, 0.04609992727637291, 0.20873352885246277, -0.32624703645706177, -0.18262280523777008, -0.29739242792129517, 0.09195704013109207, -0.13806504011154175, -0.014138828963041306 ]
cardiffnlp/twitter-roberta-base-hate
cardiffnlp
"2023-04-19T07:54:22Z"
19,544
12
transformers
[ "transformers", "pytorch", "tf", "jax", "roberta", "text-classification", "arxiv:2010.12421", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
# Twitter-roBERTa-base for Hate Speech Detection This is a roBERTa-base model trained on ~58M tweets and finetuned for hate speech detection with the TweetEval benchmark. This model is specialized to detect hate speech against women and immigrants. **NEW!** We have made available a more recent and robust hate speech detection model here: [https://huggingface.co/cardiffnlp/twitter-roberta-base-hate-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-hate-latest) - Paper: [_TweetEval_ benchmark (Findings of EMNLP 2020)](https://arxiv.org/pdf/2010.12421.pdf). - Git Repo: [Tweeteval official repository](https://github.com/cardiffnlp/tweeteval). ## Example of classification ```python from transformers import AutoModelForSequenceClassification from transformers import TFAutoModelForSequenceClassification from transformers import AutoTokenizer import numpy as np from scipy.special import softmax import csv import urllib.request # Preprocess text (username and link placeholders) def preprocess(text): new_text = [] for t in text.split(" "): t = '@user' if t.startswith('@') and len(t) > 1 else t t = 'http' if t.startswith('http') else t new_text.append(t) return " ".join(new_text) # Tasks: # emoji, emotion, hate, irony, offensive, sentiment # stance/abortion, stance/atheism, stance/climate, stance/feminist, stance/hillary task='hate' MODEL = f"cardiffnlp/twitter-roberta-base-{task}" tokenizer = AutoTokenizer.from_pretrained(MODEL) # download label mapping labels=[] mapping_link = f"https://raw.githubusercontent.com/cardiffnlp/tweeteval/main/datasets/{task}/mapping.txt" with urllib.request.urlopen(mapping_link) as f: html = f.read().decode('utf-8').split("\n") csvreader = csv.reader(html, delimiter='\t') labels = [row[1] for row in csvreader if len(row) > 1] # PT model = AutoModelForSequenceClassification.from_pretrained(MODEL) model.save_pretrained(MODEL) text = "Good night 😊" text = preprocess(text) encoded_input = tokenizer(text, return_tensors='pt') output = model(**encoded_input) scores = output[0][0].detach().numpy() scores = softmax(scores) # # TF # model = TFAutoModelForSequenceClassification.from_pretrained(MODEL) # model.save_pretrained(MODEL) # text = "Good night 😊" # encoded_input = tokenizer(text, return_tensors='tf') # output = model(encoded_input) # scores = output[0][0].numpy() # scores = softmax(scores) ranking = np.argsort(scores) ranking = ranking[::-1] for i in range(scores.shape[0]): l = labels[ranking[i]] s = scores[ranking[i]] print(f"{i+1}) {l} {np.round(float(s), 4)}") ``` Output: ``` 1) not-hate 0.9168 2) hate 0.0832 ```
[ -0.06501801311969757, -0.6736714243888855, 0.10671989619731903, 0.2614602744579315, -0.08200931549072266, 0.18034256994724274, -0.2913973331451416, -0.1589459329843521, 0.15932594239711761, 0.16677556931972504, -0.3534305989742279, -0.8420858979225159, -0.8263407945632935, -0.024787290021777153, -0.5780736207962036, 1.1343859434127808, 0.16760094463825226, 0.03509121388196945, 0.34179964661598206, -0.1656872183084488, -0.1482318639755249, -0.47694942355155945, -0.6602649688720703, -0.22445739805698395, 0.48883289098739624, 0.3774987757205963, 0.40497443079948425, 0.4325849413871765, 0.3161380887031555, 0.4855706989765167, -0.07139325141906738, -0.10730842500925064, -0.5593865513801575, 0.2438793182373047, -0.03654066100716591, -0.3887539505958557, -0.42303964495658875, 0.15946289896965027, 0.5791563391685486, 0.30102452635765076, 0.02790975384414196, 0.30306005477905273, -0.07112035900354385, 0.33311620354652405, -0.44181618094444275, -0.00625145947560668, -0.5652731657028198, -0.02455403096973896, -0.3039846122264862, -0.08371072262525558, -0.3396229147911072, -0.5269385576248169, 0.013378595933318138, -0.40032967925071716, 0.26046833395957947, -0.04719246178865433, 1.1640894412994385, 0.26444417238235474, -0.20116019248962402, -0.20570850372314453, -0.37213781476020813, 1.1514551639556885, -0.6589030027389526, 0.1723519116640091, 0.27878904342651367, 0.19455289840698242, -0.03755778819322586, -0.4634365439414978, -0.5020820498466492, -0.19263209402561188, 0.17406585812568665, 0.1320716291666031, -0.5590239763259888, -0.249037504196167, 0.3145933449268341, 0.29164764285087585, -0.5844835042953491, 0.03303683549165726, -0.541774332523346, -0.19010724127292633, 0.5064145922660828, 0.08139821141958237, 0.3401370048522949, -0.3325274884700775, -0.17913706600666046, -0.13926318287849426, -0.0684657096862793, -0.06034523993730545, 0.2999546229839325, 0.4837108254432678, -0.30898571014404297, 0.49553975462913513, -0.13178333640098572, 0.6446449160575867, 0.13701270520687103, -0.18035848438739777, 0.6306071877479553, -0.00007534160249633715, -0.18919576704502106, -0.14779002964496613, 1.0201157331466675, 0.2907285690307617, 0.5275426506996155, -0.15732543170452118, -0.16091208159923553, 0.21731089055538177, 0.017430681735277176, -0.8664420247077942, -0.31156235933303833, 0.24004943668842316, -0.5238516926765442, -0.6788385510444641, -0.19030526280403137, -0.7780585885047913, -0.28098514676094055, -0.01817336119711399, 0.6487894058227539, -0.6140285134315491, -0.4122668206691742, -0.15677085518836975, -0.474636971950531, -0.024264398962259293, 0.1854916661977768, -0.7515653371810913, 0.06174636632204056, 0.421651691198349, 0.9162934422492981, -0.140175461769104, -0.3094489276409149, -0.49086809158325195, -0.06350977718830109, -0.13864672183990479, 0.5834518671035767, -0.41921132802963257, -0.19946706295013428, -0.06917162239551544, -0.09770538657903671, -0.05150366574525833, -0.4431501030921936, 0.43379244208335876, -0.24245591461658478, 0.24109522998332977, 0.01211694348603487, -0.49753305315971375, 0.048693496733903885, 0.2943821847438812, -0.35855215787887573, 1.1199790239334106, 0.3703305423259735, -0.7395884394645691, 0.257798969745636, -0.7703461050987244, -0.39478522539138794, -0.07041304558515549, 0.15772080421447754, -0.6894688606262207, -0.1427048295736313, 0.1259615421295166, 0.4753821790218353, -0.0949641540646553, 0.09895149618387222, -0.4653558135032654, -0.2048107236623764, 0.3357585072517395, -0.28870370984077454, 1.2330207824707031, 0.3688836991786957, -0.5430271029472351, 0.3286256790161133, -0.8719732165336609, 0.06447230279445648, 0.19328045845031738, -0.45065516233444214, -0.20282796025276184, -0.24742178618907928, 0.38004976511001587, 0.20267929136753082, 0.120303213596344, -0.6681724190711975, 0.011491276323795319, -0.30124902725219727, 0.5885682702064514, 0.9126178026199341, -0.21224498748779297, 0.30446332693099976, -0.46347007155418396, 0.44421645998954773, 0.1650034636259079, 0.12489994615316391, 0.20679627358913422, -0.48602205514907837, -0.7724877595901489, -0.16665515303611755, 0.23342680931091309, 0.5178418159484863, -0.4595370590686798, 0.43611112236976624, -0.16798292100429535, -0.6549566984176636, -0.43307754397392273, -0.0886470302939415, 0.31720688939094543, 0.6076260805130005, 0.6758279204368591, 0.049376290291547775, -0.919651985168457, -0.6122407913208008, -0.551470935344696, -0.2127813845872879, 0.08268554508686066, 0.1196984201669693, 0.7871748805046082, -0.20769323408603668, 0.6658387780189514, -0.4394069314002991, -0.36313945055007935, -0.23073169589042664, 0.3524034321308136, 0.347895085811615, 0.8054421544075012, 0.7816110253334045, -0.7524876594543457, -0.6359645128250122, -0.4184750020503998, -0.6132338643074036, -0.28478682041168213, 0.24537202715873718, -0.2640252411365509, 0.34355324506759644, 0.22760441899299622, -0.20674894750118256, 0.5474388003349304, 0.31332072615623474, -0.5050316452980042, 0.3126082718372345, 0.18098701536655426, 0.30789512395858765, -1.2647098302841187, -0.08830390870571136, 0.21268191933631897, -0.08320242911577225, -0.7734709978103638, -0.17154504358768463, -0.0960698351264, 0.1358979493379593, -0.4895637035369873, 0.400324285030365, -0.24336211383342743, 0.15488293766975403, -0.07764552533626556, -0.08946224302053452, -0.1682235449552536, 0.342812716960907, -0.09921638667583466, 0.5207682251930237, 0.46521878242492676, -0.4420969784259796, 0.35684576630592346, 0.32679256796836853, -0.12141460925340652, 0.5912848711013794, -0.5806484818458557, -0.10843127965927124, 0.08470567315816879, 0.1300675868988037, -1.1464265584945679, -0.1484922170639038, 0.36770179867744446, -0.9450309872627258, 0.15956343710422516, -0.4928489625453949, -0.329935759305954, -0.5248504281044006, -0.3143622577190399, 0.40989986062049866, 0.6346673965454102, -0.4550298750400543, 0.5477482080459595, 0.5483193397521973, 0.28748849034309387, -0.6561359167098999, -1.054150938987732, 0.12749092280864716, -0.3360458016395569, -0.6806641817092896, 0.3211652934551239, -0.1181093081831932, -0.2503390610218048, -0.011647159233689308, 0.10728005319833755, -0.3460054397583008, 0.14524118602275848, 0.3389684855937958, 0.22832897305488586, -0.16154047846794128, 0.016734248027205467, -0.28946611285209656, -0.03853530436754227, 0.06820251047611237, -0.42702341079711914, 0.7400843501091003, -0.32371118664741516, 0.19690564274787903, -0.47794109582901, 0.19963517785072327, 0.44956597685813904, -0.045180123299360275, 0.9072941541671753, 1.1114459037780762, -0.48762035369873047, -0.21022175252437592, -0.5671250224113464, 0.03806307539343834, -0.47803211212158203, 0.3539900779724121, -0.2756521701812744, -0.8332383036613464, 0.5903843641281128, 0.3777882158756256, -0.06330548226833344, 0.773111879825592, 0.738098680973053, -0.018076151609420776, 0.9304338097572327, 0.3566507399082184, -0.2012108415365219, 0.6746767163276672, -0.6189376711845398, 0.06080326810479164, -0.49843448400497437, -0.25791746377944946, -0.7128130793571472, -0.1205257773399353, -0.6589961051940918, -0.3634054362773895, 0.18601281940937042, -0.12951309978961945, -0.5654580593109131, 0.3090890347957611, -0.8374496102333069, 0.2172490507364273, 0.49158725142478943, 0.1532992124557495, -0.1977958381175995, 0.0858200415968895, 0.0639040395617485, -0.1624099463224411, -0.469510942697525, -0.2579815983772278, 1.236688494682312, 0.32124948501586914, 0.7095799446105957, 0.08769064396619797, 0.8572429418563843, 0.30426856875419617, 0.4788968861103058, -0.7210407257080078, 0.5142796635627747, -0.34631824493408203, -0.6312071681022644, -0.2039366066455841, -0.5538985729217529, -0.7500585913658142, 0.15580666065216064, -0.2847169041633606, -0.7462117075920105, -0.03430113568902016, 0.07335950434207916, -0.21337614953517914, 0.5442274212837219, -0.5615362524986267, 0.9234305620193481, 0.01418553851544857, -0.43717288970947266, -0.009556819684803486, -0.3085033595561981, 0.3391803205013275, 0.1102297455072403, 0.2161768525838852, -0.2886370122432709, 0.08204957097768784, 1.1521879434585571, -0.6090288162231445, 0.7529711723327637, -0.29232969880104065, 0.15369978547096252, 0.19226695597171783, -0.070957712829113, 0.14136479794979095, -0.3107994496822357, -0.33910617232322693, 0.24870933592319489, -0.24599960446357727, -0.48286765813827515, -0.060780201107263565, 0.7590859532356262, -0.9050725102424622, -0.38923415541648865, -0.7197526097297668, -0.5152102708816528, 0.21296146512031555, 0.32902082800865173, 0.500839352607727, 0.36247143149375916, -0.15723930299282074, 0.3138940632343292, 0.4489916265010834, -0.2245735079050064, 0.4365021884441376, 0.34055355191230774, -0.05382862314581871, -0.46463027596473694, 0.8628631234169006, 0.29624083638191223, -0.006314893718808889, 0.35001078248023987, 0.33476710319519043, -0.26855626702308655, -0.5871080160140991, -0.17455515265464783, 0.06253625452518463, -0.6292600631713867, -0.3156125843524933, -0.8595604300498962, -0.31533417105674744, -0.882430911064148, -0.12863394618034363, -0.17269356548786163, -0.5570854544639587, -0.5133368968963623, 0.07161007076501846, 0.5969751477241516, 0.7986224293708801, -0.4583384394645691, 0.39967283606529236, -0.4748649597167969, 0.417825847864151, 0.07655470073223114, 0.18982942402362823, 0.0027790816966444254, -0.9970669746398926, -0.18791158497333527, 0.054654162377119064, -0.3360443711280823, -0.9921044707298279, 0.7123586535453796, 0.01019569393247366, 0.34762319922447205, 0.32513847947120667, 0.11302031576633453, 0.7277224659919739, -0.24847619235515594, 0.7569603323936462, 0.18004807829856873, -1.0745877027511597, 0.6795275807380676, -0.5131648182868958, 0.12690208852291107, 0.32718318700790405, 0.39312905073165894, -0.5190985798835754, -0.5580352544784546, -0.6060504913330078, -0.8008265495300293, 0.963154137134552, 0.3873658776283264, -0.06998656690120697, -0.12197637557983398, 0.08595166355371475, -0.2231106013059616, 0.015625210478901863, -0.9260197281837463, -0.527792751789093, -0.5368629097938538, -0.46287181973457336, -0.015611185692250729, -0.22752073407173157, -0.07357482612133026, -0.5538881421089172, 0.861943244934082, 0.20268861949443817, 0.3408655524253845, -0.007900744676589966, -0.31221696734428406, -0.13344529271125793, 0.15697672963142395, 0.5532992482185364, 0.6018725633621216, -0.47314387559890747, -0.10540097206830978, 0.2976357638835907, -0.49947282671928406, 0.12733198702335358, 0.1153097078204155, -0.09669502824544907, 0.1813429296016693, 0.33198684453964233, 0.5788974165916443, 0.19206152856349945, -0.14810754358768463, 0.6275463104248047, -0.14553965628147125, -0.2920666038990021, -0.6818490028381348, 0.1673002541065216, -0.013364838436245918, 0.17631904780864716, 0.6451228260993958, 0.21801288425922394, 0.03608734533190727, -0.41335099935531616, 0.2648368775844574, 0.2438289374113083, -0.3690604269504547, -0.3299431800842285, 0.9303954243659973, -0.02371356450021267, -0.5258139967918396, 0.4574587047100067, -0.12348907440900803, -0.9937273263931274, 0.7874967455863953, 0.5311042070388794, 0.896324098110199, -0.3009713292121887, 0.3593296706676483, 0.794469952583313, 0.14724090695381165, 0.08113045245409012, 0.3825603127479553, 0.028881145641207695, -0.7623931765556335, 0.039292801171541214, -0.7709282636642456, -0.11223311722278595, 0.234841451048851, -0.5941630601882935, 0.16154256463050842, -0.6456842422485352, -0.3234969675540924, 0.35798248648643494, 0.12880267202854156, -0.6722565293312073, 0.3613371253013611, 0.11933004856109619, 0.6942270994186401, -1.0485073328018188, 0.756695568561554, 0.4790032207965851, -0.6431740522384644, -0.8548412322998047, -0.17645414173603058, 0.07474107295274734, -0.8783988952636719, 0.946992039680481, 0.2637113928794861, 0.029125316068530083, 0.04109552875161171, -0.730616569519043, -0.8466566205024719, 0.7682850956916809, 0.07581649720668793, -0.14933891594409943, 0.04548681527376175, 0.183035746216774, 0.5916741490364075, -0.3928496539592743, 0.5511412620544434, 0.5885387063026428, 0.5222055315971375, -0.1471727192401886, -0.4982641041278839, 0.17709164321422577, -0.32350581884384155, -0.11619149148464203, 0.10194509476423264, -0.7820059657096863, 1.309053659439087, -0.07840954512357712, 0.05312895402312279, 0.14863213896751404, 0.6681728363037109, 0.2013188749551773, 0.28438788652420044, 0.6552863121032715, 0.6745651960372925, 0.6657416224479675, -0.3639187812805176, 0.7066635489463806, -0.14311908185482025, 0.5995368361473083, 0.7063550353050232, 0.35747218132019043, 0.6828376650810242, 0.32775554060935974, -0.19771835207939148, 0.6503161787986755, 0.5988621115684509, -0.35867002606391907, 0.3329305052757263, 0.4101739823818207, -0.08230917900800705, -0.2452346235513687, -0.1508013755083084, -0.40778347849845886, 0.4480193555355072, 0.40369781851768494, -0.4567584693431854, -0.27587369084358215, 0.039465922862291336, 0.2878895401954651, 0.10000414401292801, -0.2822604477405548, 0.43337297439575195, -0.07755347341299057, -0.5036448836326599, 0.8928688764572144, 0.04255617409944534, 0.9962148070335388, -0.335296094417572, 0.05124076083302498, 0.09328359365463257, 0.40898868441581726, -0.4143516421318054, -0.7889633178710938, 0.1272757351398468, 0.37038347125053406, -0.2083330899477005, -0.30845609307289124, 0.5187799334526062, -0.5861958265304565, -0.42782357335090637, 0.4853563904762268, 0.14048652350902557, 0.39058443903923035, 0.01802348718047142, -1.110192060470581, 0.2080778032541275, 0.13596674799919128, -0.409774512052536, 0.10249169915914536, 0.309712678194046, 0.15176419913768768, 0.5562847852706909, 0.7726873755455017, 0.047195471823215485, 0.32686489820480347, 0.2890087068080902, 0.8519176244735718, -0.7487868666648865, -0.44716566801071167, -0.9472864866256714, 0.32790452241897583, -0.23758193850517273, -0.5601071715354919, 0.7993999719619751, 0.7434319257736206, 0.7505468726158142, -0.0013939368072897196, 0.8564630150794983, -0.3046232759952545, 0.7336898446083069, -0.1847825050354004, 0.9914088845252991, -0.7331296801567078, -0.07602960616350174, -0.42040887475013733, -0.6093672513961792, -0.30389389395713806, 0.8252240419387817, -0.49434518814086914, 0.22737635672092438, 0.5195328593254089, 0.8007802963256836, -0.024470197036862373, -0.22614432871341705, 0.22315986454486847, 0.6341172456741333, 0.540744423866272, 0.7428626418113708, 0.6314569711685181, -0.7859787940979004, 0.8390019536018372, -0.4480140805244446, -0.18527266383171082, -0.4214126467704773, -0.6638997197151184, -1.1454583406448364, -0.6317275166511536, -0.3907078206539154, -1.0180386304855347, 0.06057105213403702, 0.9117526412010193, 0.669269859790802, -1.100048303604126, -0.2665429711341858, 0.04026350751519203, 0.23263409733772278, 0.11400992423295975, -0.30951228737831116, 0.3907474875450134, -0.29440197348594666, -0.9154019951820374, 0.20386825501918793, -0.11073089390993118, 0.18386514484882355, 0.052402060478925705, -0.017194049432873726, -0.5088506937026978, -0.09146702289581299, 0.3259194791316986, 0.2976795732975006, -0.6184174418449402, -0.31861740350723267, -0.14793761074543, -0.3670089840888977, 0.1749553382396698, 0.29138901829719543, -0.5765402913093567, 0.09949316084384918, 0.5782595872879028, 0.3274625241756439, 0.6597670316696167, 0.02026509866118431, 0.27088502049446106, -0.4832554757595062, 0.21800638735294342, 0.3004593253135681, 0.39910417795181274, 0.4472411572933197, -0.16568167507648468, 0.5487962365150452, 0.5015603303909302, -0.5922186970710754, -1.0239884853363037, -0.14433611929416656, -0.9663821458816528, -0.19420219957828522, 1.08507239818573, -0.1560559719800949, -0.5904217958450317, -0.14042708277702332, 0.011209620162844658, 0.6986951231956482, -0.7214921116828918, 0.699583888053894, 0.4633271396160126, 0.16653881967067719, 0.14566053450107574, -0.2814508080482483, 0.5648234486579895, 0.40416744351387024, -0.5248222947120667, -0.22689490020275116, 0.23172388970851898, 0.6930599212646484, 0.15295693278312683, 0.7132084965705872, 0.07043008506298065, 0.33244118094444275, 0.04739399626851082, 0.10187351703643799, -0.19387902319431305, -0.05889628455042839, -0.4008459448814392, 0.25027400255203247, -0.49791568517684937, -0.3671719431877136 ]
clefourrier/graphormer-base-pcqm4mv1
clefourrier
"2023-02-07T16:35:10Z"
19,522
2
transformers
[ "transformers", "pytorch", "graphormer", "graphs", "graph-ml", "arxiv:2106.05234", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
graph-ml
"2023-01-05T10:12:34Z"
--- license: mit tags: - graphs pipeline_tag: graph-ml --- # Model Card for pcqm4mv1_graphormer_base The Graphormer is a graph classification model. # Model Details ## Model Description The Graphormer is a graph Transformer model, pretrained on PCQM4M-LSC, and which got 1st place on the KDD CUP 2021 (quantum prediction track). - **Developed by:** Microsoft - **Model type:** Graphormer - **License:** MIT ## Model Sources <!-- Provide the basic links for the model. --> - **Repository:** [Github](https://github.com/microsoft/Graphormer) - **Paper:** [Paper](https://arxiv.org/abs/2106.05234) - **Documentation:** [Link](https://graphormer.readthedocs.io/en/latest/) # Uses ## Direct Use This model should be used for graph classification tasks or graph representation tasks; the most likely associated task is molecule modeling. It can either be used as such, or finetuned on downstream tasks. # Bias, Risks, and Limitations The Graphormer model is ressource intensive for large graphs, and might lead to OOM errors. ## How to Get Started with the Model See the Graph Classification with Transformers tutorial. # Citation [optional] <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> **BibTeX:** ``` @article{DBLP:journals/corr/abs-2106-05234, author = {Chengxuan Ying and Tianle Cai and Shengjie Luo and Shuxin Zheng and Guolin Ke and Di He and Yanming Shen and Tie{-}Yan Liu}, title = {Do Transformers Really Perform Bad for Graph Representation?}, journal = {CoRR}, volume = {abs/2106.05234}, year = {2021}, url = {https://arxiv.org/abs/2106.05234}, eprinttype = {arXiv}, eprint = {2106.05234}, timestamp = {Tue, 15 Jun 2021 16:35:15 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2106-05234.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.6022391319274902, -0.4207257926464081, 0.31295984983444214, -0.34626710414886475, -0.2918687164783478, 0.2156522125005722, 0.31530606746673584, -0.3742814064025879, -0.05005865544080734, 0.6048930287361145, -0.3825833797454834, -0.7046465873718262, -0.7308590412139893, 0.12075136601924896, -0.4071327745914459, 1.0240484476089478, -0.09435143321752548, 0.008509647101163864, -0.234122171998024, -0.04407035931944847, -0.27733179926872253, -0.7096126079559326, -0.5291869640350342, -0.6978053450584412, 0.41292887926101685, 0.3246653378009796, 0.6122811436653137, 0.6135667562484741, 0.5468448400497437, 0.40720653533935547, -0.4160705804824829, 0.00901048444211483, -0.7889920473098755, -0.3539644479751587, -0.04154497757554054, -0.41715770959854126, -0.774605393409729, 0.28013885021209717, 0.6867275238037109, 0.6170520186424255, -0.15544326603412628, 0.2723841369152069, -0.07130598276853561, 0.5074201822280884, -0.3760855197906494, 0.3627757132053375, -0.4372101128101349, 0.20715703070163727, -0.07796140015125275, 0.06470611691474915, -0.728215754032135, -0.4784390926361084, 0.03704293072223663, -0.4910660982131958, 0.6603975892066956, 0.2929198145866394, 1.4328948259353638, 0.04958006739616394, -0.8241328597068787, 0.16881003975868225, -0.9685659408569336, 0.5722031593322754, -0.4988407492637634, 0.35917919874191284, 0.05125332996249199, 0.7538294196128845, 0.05908555909991264, -1.2599462270736694, -0.4607657790184021, 0.09915485978126526, -0.21629895269870758, 0.38542985916137695, -0.5616892576217651, 0.2639535665512085, 0.48619312047958374, 0.5378570556640625, -0.63673335313797, -0.05535503476858139, -0.8793582320213318, -0.3577229380607605, 0.3628128170967102, 0.21288913488388062, 0.0015182077186182141, -0.441281795501709, -0.6108736395835876, -0.3053553104400635, -0.49168649315834045, 0.02534462884068489, 0.4988980293273926, 0.16912928223609924, -0.11584901809692383, 0.6522226929664612, 0.3369862735271454, 0.7970693111419678, 0.2554115056991577, 0.010867386125028133, 0.43378975987434387, -0.24429988861083984, -0.18475092947483063, 0.22887572646141052, 0.9705244898796082, 0.26080039143562317, 0.17058375477790833, -0.05452718585729599, 0.16860608756542206, 0.15898625552654266, 0.3591095507144928, -1.241283655166626, -0.5718265175819397, 0.13876409828662872, -0.5707615613937378, -0.055192731320858, 0.4972834289073944, -0.7559242248535156, 0.016721609979867935, -0.051662128418684006, 0.13759629428386688, -0.3493286371231079, -0.24108070135116577, -0.10264362394809723, -0.40715479850769043, 0.24218307435512543, 0.06466586887836456, -0.45947927236557007, 0.4057193100452423, 0.49684029817581177, 0.9343520402908325, -0.28309300541877747, -0.1222861185669899, -0.21389973163604736, 0.27081355452537537, -0.23262226581573486, 0.895504355430603, -0.3247377574443817, -0.7146769762039185, -0.33589693903923035, 0.5316241383552551, -0.2633592188358307, -0.5664817094802856, 0.756862461566925, -0.7221038341522217, 0.3267326354980469, 0.07336895167827606, -0.6409241557121277, -0.44716450572013855, -0.010571949183940887, -0.955797016620636, 0.930651068687439, 0.5702268481254578, -0.9903445839881897, 0.12741303443908691, -0.40688177943229675, -0.030925214290618896, 0.14122997224330902, 0.06323179602622986, -0.8167113065719604, -0.3247307240962982, -0.2688901722431183, 0.3457599878311157, -0.09335523843765259, 0.08200240880250931, -0.36242467164993286, -0.4940490126609802, 0.022946054115891457, -0.1113162487745285, 1.0524243116378784, 0.24732953310012817, 0.0859530046582222, 0.3920426368713379, -0.9700786471366882, -0.04118949919939041, 0.29466748237609863, -0.28026890754699707, 0.2000226229429245, -0.15007568895816803, 0.06311674416065216, 0.38156387209892273, 0.14619460701942444, -0.5482986569404602, 0.10549855977296829, -0.13413847982883453, 0.5162981152534485, 0.7800342440605164, 0.11390506476163864, 0.42646902799606323, -0.19476476311683655, 0.8055793046951294, -0.07409443706274033, 0.19858115911483765, 0.0034085363149642944, -0.7417417168617249, -0.6022312045097351, -0.3394772410392761, 0.24418818950653076, 0.5865334868431091, -0.5370530486106873, 0.6500653624534607, -0.32274138927459717, -0.9958999156951904, -0.25058668851852417, -0.1267281025648117, 0.28729555010795593, 0.7441021800041199, 0.6071909666061401, -0.10028383880853653, -0.7584264874458313, -0.8685200810432434, -0.03498727083206177, -0.10415108501911163, 0.021603113040328026, 0.18828058242797852, 0.3262578248977661, -0.6804029941558838, 0.937685489654541, -0.7804702520370483, -0.2893437147140503, -0.21726083755493164, 0.18827766180038452, 0.4827899634838104, 0.279511421918869, 0.6472663879394531, -0.6317212581634521, -0.6506162285804749, -0.1737690418958664, -0.4407026171684265, 0.03118310309946537, 0.5305361151695251, -0.21214193105697632, 0.07146511226892471, 0.5039798021316528, -0.6412381529808044, 0.3770997226238251, 0.8273109197616577, -0.6322377324104309, 0.6210295557975769, -0.10572420060634613, -0.05480296164751053, -1.056835651397705, 0.35616445541381836, 0.015000936575233936, -0.6922189593315125, -0.5740416049957275, -0.17372268438339233, -0.10459161549806595, -0.30303189158439636, -0.436943918466568, 0.3490999937057495, -0.36300262808799744, 0.19310133159160614, -0.33794501423835754, -0.04163925349712372, -0.0457640141248703, 0.5205378532409668, -0.3388126790523529, 0.541252613067627, 0.4124426245689392, -0.5468341112136841, 0.37488052248954773, 0.5337022542953491, -0.12352117151021957, 0.22542721033096313, -0.862101674079895, 0.2510482668876648, -0.21732722222805023, 0.42819181084632874, -1.3160755634307861, -0.10761982947587967, 0.4917258322238922, -0.4075928032398224, 0.5833691954612732, -0.3473948836326599, -0.45516255497932434, -0.8461321592330933, 0.053503941744565964, 0.3512157201766968, 0.7379062175750732, -0.6206656098365784, 0.8619794845581055, 0.3560880422592163, 0.14280030131340027, -0.31123992800712585, -0.6109765768051147, -0.3875063955783844, -0.1169976070523262, -0.5115535259246826, 0.7421659827232361, -0.13053904473781586, 0.2794131338596344, 0.12434160709381104, -0.21976566314697266, -0.062171317636966705, -0.26731786131858826, 0.4169563055038452, 0.461923211812973, 0.13172483444213867, -0.27207571268081665, -0.13746650516986847, -0.7693036198616028, 0.27193939685821533, 0.12564784288406372, 0.626553475856781, -0.3998570144176483, -0.2571513056755066, -0.4858166575431824, 0.04415866360068321, 0.5645505785942078, -0.17244796454906464, 0.5164164900779724, 0.8521324992179871, -0.09028179943561554, 0.13834413886070251, -0.037373557686805725, -0.2078300416469574, -0.535773754119873, 0.47660377621650696, -0.2047434151172638, -0.8907456398010254, 0.5590721964836121, -0.27476003766059875, -0.26824453473091125, 0.9649267196655273, 0.4645426273345947, 0.10147204995155334, 1.5206053256988525, 0.5234002470970154, 0.2057657092809677, 0.6226441860198975, -0.7659960985183716, 0.3735584020614624, -0.8438870906829834, -0.2614072263240814, -0.6985297799110413, -0.1533854752779007, -0.8970769643783569, -0.3162972927093506, 0.3545563519001007, 0.26996999979019165, -0.7218934893608093, 0.5623095631599426, -0.9306461811065674, 0.1916348785161972, 0.45574191212654114, 0.0687476322054863, 0.14970663189888, 0.03690553084015846, -0.10080160200595856, 0.16969960927963257, -0.9720277190208435, -0.7225133776664734, 0.8473362326622009, 0.40397578477859497, 0.7291163206100464, 0.08204036206007004, 0.38613057136535645, -0.05817962437868118, 0.35608866810798645, -0.7036947011947632, 0.6029160022735596, -0.20669960975646973, -0.8151628375053406, 0.1032152771949768, -0.5063400864601135, -1.1425387859344482, 0.1824844479560852, -0.25820568203926086, -0.7956748604774475, 0.5475764274597168, 0.4235309958457947, 0.2220943719148636, 0.4819740355014801, -0.6220539808273315, 1.2166407108306885, -0.023599352687597275, 0.0014154654927551746, 0.030926978215575218, -0.608466386795044, 0.5433257818222046, 0.13606679439544678, 0.09177307784557343, -0.07130871713161469, 0.2853788137435913, 0.7230385541915894, -0.6864069700241089, 0.6184466481208801, -0.3403797447681427, 0.24026457965373993, 0.6208171844482422, -0.09756787121295929, 0.6957879066467285, -0.21888194978237152, -0.026360558345913887, 0.4831758737564087, 0.2580358386039734, -0.4360947906970978, -0.16761714220046997, 0.4893960952758789, -1.1246215105056763, -0.5408711433410645, -0.7233344912528992, -0.24806886911392212, 0.08417976647615433, 0.4526061415672302, 0.7133291959762573, 0.11698763072490692, -0.008618748746812344, 0.21696710586547852, 0.570895791053772, 0.08214830607175827, 0.24191336333751678, 0.20029129087924957, -0.5534617304801941, -0.6090409159660339, 0.9730182886123657, 0.17402338981628418, 0.3196983337402344, 0.18355147540569305, 0.26164522767066956, -0.2544550895690918, -0.43835964798927307, -0.12153112143278122, 0.32154151797294617, -0.970766544342041, -0.3761458992958069, -0.6924248933792114, -0.5725929737091064, -0.2812042534351349, 0.12118954211473465, -0.3350878357887268, -0.3988397717475891, -0.5446826219558716, -0.21838630735874176, 0.5444766283035278, 0.5441492199897766, 0.04804975166916847, 0.7129297852516174, -0.7922607660293579, 0.3213046193122864, 0.39219823479652405, 0.4399245083332062, 0.09505867958068848, -0.6130915880203247, -0.2300407737493515, -0.1406722515821457, -0.7034573554992676, -1.2161990404129028, 0.353319376707077, 0.06819838285446167, 0.7974733114242554, 0.5575028657913208, -0.033280473202466965, 0.5791149735450745, -0.5268076658248901, 0.6134052276611328, 0.40907853841781616, -0.7840666770935059, 0.08997457474470139, -0.18759047985076904, 0.23561477661132812, 0.3214995861053467, 0.7039130926132202, -0.33481088280677795, -0.18054331839084625, -0.6724459528923035, -0.9537172317504883, 0.80158531665802, 0.13669896125793457, -0.0794176310300827, 0.05189746618270874, 0.3581286370754242, -0.032066065818071365, -0.04008303955197334, -0.8695254921913147, -0.6751658320426941, -0.7304514646530151, -0.10724494606256485, -0.17249135673046112, -0.2716118395328522, -0.05071720480918884, -0.6347104907035828, 0.7569047808647156, -0.10265053063631058, 0.7306472063064575, 0.17725573480129242, 0.001024253317154944, -0.26010361313819885, -0.06285321712493896, 0.3241114020347595, 0.6738348603248596, -0.6833034157752991, 0.17747052013874054, 0.021349111571907997, -0.5792036652565002, 0.09299232065677643, 0.5513213872909546, 0.036694467067718506, 0.16710469126701355, 0.20351383090019226, 0.8177239894866943, -0.05154375731945038, -0.3112774193286896, 0.4368473291397095, -0.015466563403606415, -0.32812660932540894, -0.3995949923992157, 0.2964949309825897, 0.21679994463920593, 0.07790510356426239, 0.4683455228805542, 0.18113765120506287, 0.18626126646995544, -0.2724120020866394, -0.02767573855817318, 0.3017471432685852, -0.7500461935997009, -0.39409032464027405, 0.8818151354789734, -0.15500201284885406, -0.2935040295124054, 0.6877334117889404, -0.5262118577957153, -0.7013363242149353, 0.7085006833076477, 0.7664388418197632, 0.7526323199272156, -0.48525381088256836, 0.0042615123093128204, 0.6922556161880493, 0.08738350868225098, 0.24441196024417877, 0.17453935742378235, 0.3804242014884949, -0.5790956020355225, -0.2985478937625885, -0.3083259165287018, -0.3658989369869232, -0.10698261111974716, -0.629762589931488, 0.5564606189727783, -0.4131898581981659, -0.4795891344547272, 0.22243128716945648, 0.011714424937963486, -0.7244167327880859, -0.1354735940694809, -0.0035977265797555447, 0.9148442149162292, -0.7554541826248169, 0.7389151453971863, 0.8526149392127991, -0.3691251873970032, -0.5886113047599792, -0.6091735363006592, -0.1163410171866417, -0.531429648399353, 0.613798201084137, 0.049868807196617126, -0.06306388974189758, 0.4217100441455841, -0.6771908402442932, -1.0634832382202148, 1.492984414100647, 0.2973750829696655, -0.6299583911895752, -0.0075093223713338375, 0.039668694138526917, 0.5096724033355713, -0.28139936923980713, 0.5107107758522034, 0.24692349135875702, 0.5324802398681641, 0.39947113394737244, -0.645419716835022, 0.232413187623024, -0.16656173765659332, 0.0898401215672493, 0.35876932740211487, -0.8675463199615479, 1.2655669450759888, -0.010196845047175884, -0.4838658571243286, -0.0680350661277771, 0.4790430963039398, 0.5348098874092102, 0.23262962698936462, 0.3867674767971039, 0.46158111095428467, 0.8492792248725891, -0.23372633755207062, 1.0863374471664429, -0.589597225189209, 0.8906833529472351, 0.9486305713653564, -0.1483297199010849, 0.44240814447402954, 0.2652233839035034, -0.6554067134857178, 0.9627991318702698, 0.8221836686134338, -0.5504517555236816, 0.4646509885787964, 0.17335429787635803, 0.26256465911865234, -0.24649536609649658, 0.17559558153152466, -0.6103770136833191, 0.2966143786907196, 0.25981760025024414, -0.5647285580635071, -0.2601563334465027, -0.20856434106826782, -0.03904092311859131, -0.1461094319820404, -0.3740766644477844, 0.4532192051410675, 0.11084824055433273, -0.18396872282028198, 0.7377907037734985, 0.04043859988451004, 0.3711996376514435, -0.5067263245582581, -0.282614141702652, 0.12428245693445206, 0.4142451286315918, -0.3847142457962036, -0.5163450241088867, 0.39022713899612427, -0.31652209162712097, -0.5666345953941345, 0.024363987147808075, 0.9058771133422852, -0.21466100215911865, -0.693505585193634, 0.375718355178833, 0.18677888810634613, 0.2404310554265976, 0.22903111577033997, -0.8562803268432617, -0.04994693771004677, -0.22990110516548157, -0.1976005584001541, -0.027659015730023384, 0.021625548601150513, 0.07461057603359222, 0.6325058937072754, 0.5019034147262573, -0.2601988911628723, 0.08862505853176117, -0.18507511913776398, 0.8825030326843262, -0.6814342141151428, -0.37758922576904297, -0.6090723872184753, 0.4272514879703522, -0.1342228800058365, -0.15089702606201172, 0.9812950491905212, 0.9923218488693237, 0.7854902148246765, -0.17902526259422302, 0.599373459815979, 0.08459500968456268, 0.5372548699378967, -0.10395510494709015, 0.6251680254936218, -0.20295609533786774, -0.12876643240451813, -0.4156021177768707, -1.1690129041671753, -0.13038548827171326, 0.5832483172416687, -0.2796183228492737, 0.3474228084087372, 0.7472373247146606, 0.585819661617279, -0.19967268407344818, -0.07055936008691788, 0.029037484899163246, 0.387717068195343, 0.5598740577697754, 0.4707954525947571, 0.7177217602729797, -0.6997725963592529, 0.8374316096305847, -0.21750079095363617, -0.08921347558498383, -0.43482717871665955, -0.8918163776397705, -1.166266679763794, -0.3330710828304291, -0.39355379343032837, -0.728865921497345, -0.3693394660949707, 0.670579195022583, 0.8444039821624756, -0.8350521922111511, -0.3040461838245392, -0.3621614873409271, 0.3022463619709015, -0.2944088876247406, -0.31813040375709534, 0.6125859022140503, 0.09987077862024307, -0.7655325531959534, -0.10117804259061813, -0.08404844999313354, 0.4618171155452728, -0.1836664378643036, -0.2993440330028534, -0.1833985596895218, -0.26636505126953125, 0.5866422057151794, 0.3554913401603699, -0.5287925004959106, -0.1032872200012207, 0.03895252197980881, -0.1946210414171219, 0.40561673045158386, 0.49169817566871643, -0.6900339722633362, 0.4669635593891144, 0.7335739731788635, -0.00017457113426644355, 1.0990883111953735, 0.18358467519283295, 0.3728451430797577, -0.4328997731208801, 0.1100575253367424, 0.21433445811271667, 0.5352882146835327, 0.16544771194458008, -0.22431033849716187, 0.37670397758483887, 0.499284952878952, -0.8112532496452332, -0.7941563129425049, 0.11679346114397049, -1.2883485555648804, -0.4644744098186493, 0.9821235537528992, 0.019288597628474236, -0.37275978922843933, -0.053600095212459564, -0.35644131898880005, 0.6074005365371704, -0.25524914264678955, 0.4263489842414856, 0.49935802817344666, -0.23110423982143402, -0.3393554985523224, -0.3728085458278656, 0.4275137782096863, -0.36733219027519226, -0.7210078239440918, -0.2655142843723297, 0.33182236552238464, 0.3081539273262024, 0.5232648849487305, 0.21972042322158813, -0.22847039997577667, 0.1678890883922577, 0.0728672668337822, 0.4582347571849823, -0.29079708456993103, -0.05258909612894058, -0.2540331482887268, 0.1721743643283844, -0.008267010562121868, -0.07042890042066574 ]
nvidia/mit-b2
nvidia
"2022-08-06T10:26:08Z"
19,506
4
transformers
[ "transformers", "pytorch", "tf", "segformer", "image-classification", "vision", "dataset:imagenet_1k", "arxiv:2105.15203", "license:other", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-03-02T23:29:05Z"
--- license: other tags: - vision datasets: - imagenet_1k widget: - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000001.jpg example_title: House - src: https://huggingface.co/datasets/hf-internal-testing/fixtures_ade20k/resolve/main/ADE_val_00000002.jpg example_title: Castle --- # SegFormer (b2-sized) encoder pre-trained-only SegFormer encoder fine-tuned on Imagenet-1k. It was introduced in the paper [SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers](https://arxiv.org/abs/2105.15203) by Xie et al. and first released in [this repository](https://github.com/NVlabs/SegFormer). Disclaimer: The team releasing SegFormer did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description SegFormer consists of a hierarchical Transformer encoder and a lightweight all-MLP decode head to achieve great results on semantic segmentation benchmarks such as ADE20K and Cityscapes. The hierarchical Transformer is first pre-trained on ImageNet-1k, after which a decode head is added and fine-tuned altogether on a downstream dataset. This repository only contains the pre-trained hierarchical Transformer, hence it can be used for fine-tuning purposes. ## Intended uses & limitations You can use the model for fine-tuning of semantic segmentation. See the [model hub](https://huggingface.co/models?other=segformer) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes: ```python from transformers import SegformerFeatureExtractor, SegformerForImageClassification from PIL import Image import requests url = "http://images.cocodataset.org/val2017/000000039769.jpg" image = Image.open(requests.get(url, stream=True).raw) feature_extractor = SegformerFeatureExtractor.from_pretrained("nvidia/mit-b2") model = SegformerForImageClassification.from_pretrained("nvidia/mit-b2") inputs = feature_extractor(images=image, return_tensors="pt") outputs = model(**inputs) logits = outputs.logits # model predicts one of the 1000 ImageNet classes predicted_class_idx = logits.argmax(-1).item() print("Predicted class:", model.config.id2label[predicted_class_idx]) ``` For more code examples, we refer to the [documentation](https://huggingface.co/transformers/model_doc/segformer.html#). ### License The license for this model can be found [here](https://github.com/NVlabs/SegFormer/blob/master/LICENSE). ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2105-15203, author = {Enze Xie and Wenhai Wang and Zhiding Yu and Anima Anandkumar and Jose M. Alvarez and Ping Luo}, title = {SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers}, journal = {CoRR}, volume = {abs/2105.15203}, year = {2021}, url = {https://arxiv.org/abs/2105.15203}, eprinttype = {arXiv}, eprint = {2105.15203}, timestamp = {Wed, 02 Jun 2021 11:46:42 +0200}, biburl = {https://dblp.org/rec/journals/corr/abs-2105-15203.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.8743772506713867, -0.6838181018829346, 0.06294713169336319, 0.15103429555892944, -0.33756402134895325, -0.3484601676464081, 0.03721865639090538, -0.6380088329315186, 0.22366386651992798, 0.5635838508605957, -0.7867748737335205, -0.48739299178123474, -0.7682457566261292, 0.06894026696681976, -0.32059285044670105, 0.8096774220466614, 0.14424888789653778, -0.0778641551733017, -0.4422130882740021, -0.23631887137889862, -0.007995721884071827, -0.2698928415775299, -0.641040027141571, -0.37627336382865906, 0.3979698419570923, 0.2480732649564743, 0.5752105116844177, 0.7326390147209167, 0.7593735456466675, 0.45660895109176636, -0.4067207872867584, 0.10752254724502563, -0.30700206756591797, -0.27732881903648376, 0.004062028136104345, -0.12936951220035553, -0.3615509271621704, 0.01068831142038107, 0.4019659459590912, 0.5879634618759155, 0.15659214556217194, 0.3250589370727539, 0.042673300951719284, 0.4407978653907776, -0.510921061038971, 0.07519444078207016, -0.4714413583278656, 0.1856912225484848, -0.014641234651207924, -0.08456898480653763, -0.3333025276660919, -0.1851598471403122, 0.2460293471813202, -0.5208202600479126, 0.6238511800765991, 0.052772022783756256, 1.4787760972976685, 0.4936700761318207, -0.32736435532569885, -0.053261898458004, -0.3559439778327942, 0.7735817432403564, -0.6775742173194885, 0.41521307826042175, 0.056283947080373764, 0.3391211926937103, 0.11444943398237228, -0.9868524074554443, -0.4571068584918976, 0.1404624730348587, -0.25107359886169434, 0.03278559073805809, -0.39026200771331787, 0.08695869892835617, 0.4324635863304138, 0.47106194496154785, -0.46165600419044495, 0.1410665214061737, -0.7122966647148132, -0.38814201951026917, 0.6300035715103149, -0.00694980239495635, 0.19082196056842804, -0.33636847138404846, -0.7628822326660156, -0.42121368646621704, -0.3276662826538086, 0.11535054445266724, 0.26364901661872864, 0.015740299597382545, -0.30017024278640747, 0.4226001799106598, -0.027084190398454666, 0.7082226276397705, 0.43012547492980957, -0.16619619727134705, 0.5365620851516724, -0.1476536989212036, -0.3544926643371582, 0.10315956175327301, 0.8908522129058838, 0.4622296690940857, -0.015886757522821426, 0.051699306815862656, -0.05099089443683624, 0.17474491894245148, 0.23942068219184875, -1.2580339908599854, -0.18334810435771942, 0.050934404134750366, -0.5293511152267456, -0.3731153607368469, 0.12721514701843262, -0.8157934546470642, -0.04499603807926178, -0.12901721894741058, 0.4986984133720398, -0.27274346351623535, -0.11263854801654816, 0.12267475575208664, -0.16215349733829498, 0.7851685881614685, 0.2051529437303543, -0.747957170009613, 0.2051354944705963, 0.5581735372543335, 0.7963230609893799, -0.1969950646162033, -0.2240646481513977, -0.10830888897180557, -0.1093946173787117, -0.17514817416667938, 0.851041853427887, -0.33988574147224426, -0.30411821603775024, -0.21432740986347198, 0.5954682230949402, -0.1999601572751999, -0.6189512014389038, 0.7566808462142944, -0.558089017868042, 0.18840478360652924, -0.07800046354532242, -0.46632736921310425, -0.4772207736968994, 0.3210834562778473, -0.570317804813385, 0.9147550463676453, 0.18834105134010315, -0.8790552616119385, 0.47543656826019287, -0.5535402894020081, -0.26992562413215637, 0.004805448930710554, 0.07937231659889221, -0.8466798067092896, 0.0019592337775975466, 0.36215677857398987, 0.49339771270751953, -0.26525479555130005, 0.23029102385044098, -0.5134926438331604, -0.2282600700855255, -0.006795988883823156, -0.15241388976573944, 0.9148306250572205, 0.3084002733230591, -0.3429237902164459, 0.35519054532051086, -0.6590960621833801, 0.049096476286649704, 0.41984719038009644, 0.0355590283870697, -0.017094189301133156, -0.28365135192871094, 0.2288183718919754, 0.40118756890296936, 0.24077208340168, -0.6433571577072144, 0.02038424275815487, -0.32708626985549927, 0.38803836703300476, 0.7171089053153992, 0.07502638548612595, 0.5048139095306396, -0.14086301624774933, 0.36457622051239014, 0.21412256360054016, 0.41262495517730713, -0.17425182461738586, -0.22480688989162445, -1.1615192890167236, -0.23431698977947235, 0.25395265221595764, 0.15475890040397644, -0.5130949020385742, 0.6196069121360779, -0.2379264384508133, -0.6620590686798096, -0.46356046199798584, -0.10176679491996765, 0.22530172765254974, 0.5113977193832397, 0.5186459422111511, -0.402056485414505, -0.7816876173019409, -1.1469162702560425, 0.053064413368701935, 0.1973891258239746, 0.058038562536239624, 0.3073671758174896, 0.6469724178314209, -0.6951516270637512, 0.7528120279312134, -0.6474391222000122, -0.3254518210887909, -0.22224144637584686, -0.06313993781805038, 0.26400452852249146, 0.6662384867668152, 0.5896422863006592, -0.7914499640464783, -0.3668460547924042, -0.1856357306241989, -0.6556844711303711, -0.031107408925890923, 0.08116713911294937, -0.3830167055130005, 0.1603703498840332, 0.46715110540390015, -0.4559861421585083, 0.4359704256057739, 0.4540666937828064, -0.5704323649406433, 0.2925097942352295, -0.04539700970053673, -0.051365528255701065, -0.9777141213417053, 0.14668987691402435, 0.16723722219467163, -0.16662250459194183, -0.5181931853294373, 0.12040545791387558, -0.022496148943901062, -0.11465199291706085, -0.573007345199585, 0.578820526599884, -0.31862786412239075, -0.02651723101735115, -0.26053062081336975, -0.2070803940296173, 0.07741597294807434, 0.7780736684799194, 0.15998324751853943, 0.3575364649295807, 0.5579838752746582, -0.6677974462509155, 0.05778355896472931, 0.5495467185974121, -0.41878649592399597, 0.42026978731155396, -1.0360761880874634, 0.1386469006538391, -0.15934085845947266, 0.09498751163482666, -0.7132863998413086, -0.3451608121395111, 0.40529191493988037, -0.36132919788360596, 0.42817381024360657, -0.34553706645965576, -0.24641522765159607, -0.5261839628219604, -0.10523004829883575, 0.3700045645236969, 0.5137231349945068, -0.7915818095207214, 0.49953362345695496, 0.5271326303482056, 0.13553687930107117, -0.404893696308136, -0.706929624080658, -0.3063408434391022, -0.2520274817943573, -1.0199586153030396, 0.6102781295776367, -0.025042971596121788, 0.24567781388759613, 0.0824894979596138, -0.3210906386375427, -0.05203115567564964, 0.012801268137991428, 0.4140802025794983, 0.501593828201294, -0.12651991844177246, -0.2859973609447479, 0.023838084191083908, -0.46350380778312683, 0.1531100869178772, -0.18385829031467438, 0.6185308694839478, -0.34545934200286865, -0.3921944797039032, -0.24976851046085358, -0.009088166989386082, 0.38148340582847595, -0.3202957510948181, 0.5179271697998047, 1.1453020572662354, -0.3037702739238739, -0.017367418855428696, -0.5623236298561096, -0.2549830973148346, -0.5684406161308289, 0.39150118827819824, -0.16239170730113983, -1.1053721904754639, 0.4573516249656677, -0.02500057779252529, 0.010295235551893711, 0.9595057964324951, 0.3714497685432434, 0.13085989654064178, 1.152862787246704, 0.5808732509613037, 0.3458210825920105, 0.5144463777542114, -0.8086384534835815, 0.15316957235336304, -0.9552274346351624, -0.5687942504882812, -0.44324764609336853, -0.4488203227519989, -0.8146801590919495, -0.6251417994499207, 0.3392888307571411, 0.14130547642707825, -0.4556613266468048, 0.48004430532455444, -0.8828606605529785, 0.36503008008003235, 0.5575331449508667, 0.05227729305624962, -0.24114620685577393, 0.16862931847572327, -0.04748808965086937, 0.09275371581315994, -0.7417906522750854, -0.35803014039993286, 0.475175678730011, 0.5120429396629333, 0.7229489684104919, -0.18771672248840332, 0.6351494193077087, -0.10539141297340393, 0.008400099352002144, -0.8628673553466797, 0.6020399928092957, -0.19212566316127777, -0.7450503706932068, -0.13761864602565765, -0.33908727765083313, -0.9665458798408508, 0.3608027696609497, -0.1585017740726471, -0.7645355463027954, 0.6782854795455933, 0.11226873844861984, -0.1745840311050415, 0.2805464565753937, -0.5414415597915649, 1.21157968044281, -0.23577284812927246, -0.4882187247276306, 0.11163061857223511, -0.7601124048233032, 0.17137497663497925, 0.21903547644615173, -0.06539962440729141, -0.332438588142395, 0.26373493671417236, 0.9870321750640869, -0.6057316064834595, 0.7082639932632446, -0.3867272734642029, 0.3794647455215454, 0.5908908843994141, -0.14552654325962067, 0.4085630178451538, -0.06320114433765411, 0.21406474709510803, 0.48926588892936707, 0.23584434390068054, -0.37288281321525574, -0.34662550687789917, 0.601973831653595, -0.9276250004768372, -0.5713250041007996, -0.495748907327652, -0.14570027589797974, -0.008039195090532303, 0.3846224546432495, 0.5979315638542175, 0.4356888234615326, -0.07307785004377365, 0.5086533427238464, 0.6484421491622925, -0.3567894995212555, 0.49752476811408997, 0.12578904628753662, -0.16767141222953796, -0.3974287211894989, 0.8701895475387573, -0.09806898981332779, 0.056253038346767426, 0.30537497997283936, 0.29216358065605164, -0.3909900188446045, -0.2724878489971161, -0.367003470659256, 0.19717131555080414, -0.7200440764427185, -0.41500160098075867, -0.8914773464202881, -0.5587484240531921, -0.43433916568756104, -0.34632551670074463, -0.4354105591773987, -0.27235832810401917, -0.4208369553089142, -0.07363047450780869, 0.28382691740989685, 0.3437676429748535, -0.18897773325443268, 0.45491310954093933, -0.6478857398033142, 0.12555938959121704, 0.37578123807907104, 0.34832996129989624, 0.004159591160714626, -0.6456189751625061, -0.1535176932811737, -0.013443087227642536, -0.4719538390636444, -0.5032991170883179, 0.6353241801261902, 0.17366154491901398, 0.5316192507743835, 0.6140444278717041, -0.14369675517082214, 0.9220381379127502, -0.16461294889450073, 0.57354336977005, 0.45607638359069824, -0.7467906475067139, 0.4016612470149994, -0.09086554497480392, 0.5335894823074341, 0.47675085067749023, 0.3082137703895569, -0.5019538998603821, 0.12406855076551437, -0.7629957795143127, -1.0172431468963623, 0.9569358825683594, 0.07471116632223129, 0.060503993183374405, 0.042554132640361786, -0.01530192419886589, 0.03468950092792511, -0.04824688658118248, -0.583032488822937, -0.3791729211807251, -0.4491370916366577, -0.1117292046546936, -0.128790020942688, -0.5287835001945496, 0.017142191529273987, -0.5153982639312744, 0.7645941376686096, -0.1501016467809677, 0.6564154028892517, 0.2550634741783142, -0.2778051793575287, -0.04995358735322952, 0.01773035153746605, 0.3545440137386322, 0.2630547285079956, -0.29163751006126404, 0.11263550817966461, 0.1809978187084198, -0.4107697904109955, -0.030562004074454308, 0.32830947637557983, -0.30577993392944336, -0.028514916077256203, 0.3727181851863861, 1.141361117362976, 0.3700666129589081, -0.2763279974460602, 0.6168981194496155, 0.011323323473334312, -0.5177216529846191, -0.45775431394577026, 0.21346290409564972, -0.02509934827685356, 0.338236927986145, 0.20848025381565094, 0.4074852764606476, 0.3056868314743042, -0.04228978976607323, 0.23827899992465973, 0.3019932210445404, -0.7075405120849609, -0.2996584475040436, 0.7435989379882812, 0.09850387275218964, 0.02179931476712227, 0.6916157603263855, -0.21930374205112457, -0.6785942316055298, 0.9133296012878418, 0.5485377907752991, 1.0259449481964111, 0.048290155827999115, 0.2716538906097412, 0.8023545742034912, 0.20047594606876373, 0.08648861199617386, -0.06604798138141632, -0.03724224865436554, -0.8037664890289307, -0.31203293800354004, -1.0348262786865234, 0.018788548186421394, 0.0322030708193779, -0.6992124915122986, 0.439680278301239, -0.46404197812080383, -0.19763578474521637, 0.2610477805137634, 0.05678240582346916, -1.0793404579162598, 0.23258501291275024, 0.2056288719177246, 0.9912589192390442, -0.5490614771842957, 0.49627718329429626, 0.7945955991744995, -0.23044362664222717, -0.8240070939064026, -0.49404317140579224, -0.05501580983400345, -0.8197616338729858, 0.49212178587913513, 0.5078036785125732, 0.0487385094165802, 0.08448197692632675, -0.78770911693573, -1.0290172100067139, 1.2694106101989746, 0.112371064722538, -0.3748011291027069, -0.022925902158021927, 0.06265868246555328, 0.366576224565506, -0.3938030004501343, 0.3822098672389984, 0.37065598368644714, 0.5716853737831116, 0.7134227156639099, -0.41944149136543274, 0.04550623521208763, -0.3704771101474762, 0.08483672142028809, 0.3336498737335205, -0.8134455680847168, 0.6938982009887695, -0.27645474672317505, -0.25715795159339905, -0.11466486752033234, 0.6468315720558167, 0.0652172863483429, 0.3647603988647461, 0.6211597919464111, 0.8026626110076904, 0.44937923550605774, -0.3595502972602844, 0.8717712163925171, -0.2449611872434616, 0.6939513683319092, 0.8558294773101807, 0.2958139181137085, 0.3704417943954468, 0.4222243130207062, -0.10937134176492691, 0.4281345307826996, 0.9293263554573059, -0.5368885397911072, 0.533933699131012, -0.1278119832277298, 0.19546392560005188, -0.47697898745536804, -0.2373291552066803, -0.5229159593582153, 0.7612667679786682, 0.17186450958251953, -0.6399968266487122, -0.13701532781124115, -0.16078214347362518, -0.043941251933574677, -0.5421985983848572, -0.2602960467338562, 0.7085000276565552, 0.10653236508369446, -0.42014414072036743, 0.6139898300170898, 0.07145142555236816, 0.7409326434135437, -0.488008588552475, 0.07018866389989853, -0.11203698813915253, 0.2871208190917969, -0.3580620586872101, -0.4677882194519043, 0.437603235244751, -0.24574103951454163, -0.014164173044264317, -0.08318939805030823, 1.0235183238983154, -0.26295357942581177, -0.7347642183303833, 0.20994694530963898, 0.18678106367588043, 0.0630408525466919, 0.1733694225549698, -0.8402899503707886, 0.329971045255661, 0.07015825808048248, -0.3564349412918091, 0.150166854262352, 0.0930318683385849, 0.222602978348732, 0.5352194309234619, 0.6054041981697083, -0.3733271658420563, 0.04191003739833832, -0.1860230267047882, 0.9211629629135132, -0.6318867802619934, -0.3820958733558655, -0.6942986845970154, 0.5428400635719299, -0.2824348509311676, -0.40869200229644775, 0.7158492207527161, 0.6426742076873779, 1.1745903491973877, -0.2475433200597763, 0.4026571214199066, -0.3734607994556427, 0.09502576291561127, -0.20022909343242645, 0.5188227295875549, -0.6748189926147461, -0.12039525806903839, -0.3933812081813812, -0.9784331321716309, -0.2672451436519623, 0.8701013326644897, -0.371436208486557, 0.21502116322517395, 0.4620441794395447, 0.9437253475189209, -0.24648159742355347, 0.06650269776582718, 0.2669987380504608, 0.09369543939828873, 0.09006419777870178, 0.31140023469924927, 0.6803114414215088, -0.516150951385498, 0.4389808773994446, -0.746343731880188, 0.007980152033269405, -0.47108379006385803, -0.597581148147583, -0.8799340724945068, -0.5626985430717468, -0.49999308586120605, -0.3490230143070221, -0.26820293068885803, 0.8649771809577942, 0.9977261424064636, -0.8503847718238831, -0.03281373158097267, -0.0243470910936594, 0.10644426196813583, -0.15140283107757568, -0.25334712862968445, 0.4504427909851074, -0.055016521364450455, -0.8137381672859192, -0.09519190341234207, 0.22151966392993927, 0.13636724650859833, -0.06344548612833023, -0.2850736379623413, -0.038847677409648895, -0.15554581582546234, 0.6143118739128113, 0.22352105379104614, -0.5646589994430542, -0.3287353515625, 0.18269121646881104, -0.043477125465869904, 0.17182321846485138, 0.5155467391014099, -0.5369886159896851, 0.43215858936309814, 0.5397258400917053, 0.543214738368988, 0.9119046926498413, -0.03016471676528454, 0.038523152470588684, -0.4141120910644531, 0.3045688271522522, 0.1947464793920517, 0.48610734939575195, 0.32950717210769653, -0.21564704179763794, 0.5922794938087463, 0.22414718568325043, -0.5665607452392578, -0.6181848049163818, 0.04754207655787468, -1.1426411867141724, -0.1733359545469284, 1.0416756868362427, -0.027520911768078804, -0.5888080596923828, 0.3441281318664551, -0.11273504793643951, 0.3857901096343994, -0.1610623300075531, 0.46208223700523376, 0.21134230494499207, -0.016772037371993065, -0.4428406059741974, -0.14084504544734955, 0.36691001057624817, 0.045031897723674774, -0.5840946435928345, -0.5680076479911804, 0.42502984404563904, 0.3651788532733917, 0.2504861056804657, 0.19156873226165771, -0.28841912746429443, 0.1423429697751999, 0.20062410831451416, 0.3224983215332031, -0.3019696772098541, -0.21713973581790924, -0.15562570095062256, 0.12675248086452484, -0.19648021459579468, -0.25917983055114746 ]
beomi/llama-2-ko-7b
beomi
"2023-11-24T15:54:53Z"
19,502
105
transformers
[ "transformers", "pytorch", "safetensors", "llama", "text-generation", "facebook", "meta", "llama-2", "kollama", "llama-2-ko", "en", "ko", "doi:10.57967/hf/1098", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-07-20T03:25:25Z"
--- language: - en - ko pipeline_tag: text-generation inference: false tags: - facebook - meta - pytorch - llama - llama-2 - kollama - llama-2-ko --- > 🚧 Note: this repo is under construction 🚧 **Update Log** - 2023.10.19 - Fix Tokenizer bug(space not applied when decoding) after `transforemrs>=4.34.0` # **Llama-2-Ko** 🦙🇰🇷 Llama-2-Ko serves as an advanced iteration of Llama 2, benefiting from an expanded vocabulary and the inclusion of a Korean corpus in its further pretraining. Just like its predecessor, Llama-2-Ko operates within the broad range of generative text models that stretch from 7 billion to 70 billion parameters. This repository focuses on the 7B pretrained version, which is tailored to fit the Hugging Face Transformers format. For access to the other models, feel free to consult the index provided below. ## Model Details **Model Developers** Junbum Lee (Beomi) **Variations** Llama-2-Ko will come in a range of parameter sizes — 7B, 13B, and 70B — as well as pretrained and fine-tuned variations. **Input** Models input text only. **Output** Models generate text only. **Model Architecture** Llama-2-Ko is an auto-regressive language model that uses an optimized transformer architecture based on Llama-2. ||Training Data|Params|Content Length|GQA|Tokens|LR| |---|---|---|---|---|---|---| |Llama 2|*A new mix of Korean online data*|7B|4k|&#10007;|>40B*|1e<sup>-5</sup>| *Plan to train upto 200B tokens **Vocab Expansion** | Model Name | Vocabulary Size | Description | | --- | --- | --- | | Original Llama-2 | 32000 | Sentencepiece BPE | | **Expanded Llama-2-Ko** | 46336 | Sentencepiece BPE. Added Korean vocab and merges | **Tokenizing "안녕하세요, 오늘은 날씨가 좋네요."** | Model | Tokens | | --- | --- | | Llama-2 | `['▁', '안', '<0xEB>', '<0x85>', '<0x95>', '하', '세', '요', ',', '▁', '오', '<0xEB>', '<0x8A>', '<0x98>', '은', '▁', '<0xEB>', '<0x82>', '<0xA0>', '씨', '가', '▁', '<0xEC>', '<0xA2>', '<0x8B>', '<0xEB>', '<0x84>', '<0xA4>', '요']` | | Llama-2-Ko | `['▁안녕', '하세요', ',', '▁오늘은', '▁날', '씨가', '▁좋네요']` | **Tokenizing "Llama 2: Open Foundation and Fine-Tuned Chat Models"** | Model | Tokens | | --- | --- | | Llama-2 | `['▁L', 'l', 'ama', '▁', '2', ':', '▁Open', '▁Foundation', '▁and', '▁Fine', '-', 'T', 'un', 'ed', '▁Ch', 'at', '▁Mod', 'els']` | | Llama-2-Ko | `['▁L', 'l', 'ama', '▁', '2', ':', '▁Open', '▁Foundation', '▁and', '▁Fine', '-', 'T', 'un', 'ed', '▁Ch', 'at', '▁Mod', 'els']` | # **Model Benchmark** ## LM Eval Harness - Korean (polyglot branch) - Used EleutherAI's lm-evaluation-harness https://github.com/EleutherAI/lm-evaluation-harness/tree/polyglot ### NSMC (Acc) - 50000 full test TBD ### COPA (F1) <img src=https://user-images.githubusercontent.com/11323660/255575809-c037bc6e-0566-436a-a6c1-2329ac92187a.png style="max-width: 700px; width: 100%" /> | Model | 0-shot | 5-shot | 10-shot | 50-shot | | --- | --- | --- | --- | --- | | https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5 | 0.6696 | 0.6477 | 0.6419 | 0.6514 | | https://huggingface.co/kakaobrain/kogpt | 0.7345 | 0.7287 | 0.7277 | 0.7479 | | https://huggingface.co/facebook/xglm-7.5B | 0.6723 | 0.6731 | 0.6769 | 0.7119 | | https://huggingface.co/EleutherAI/polyglot-ko-1.3b | 0.7196 | 0.7193 | 0.7204 | 0.7206 | | https://huggingface.co/EleutherAI/polyglot-ko-3.8b | 0.7595 | 0.7608 | 0.7638 | 0.7788 | | https://huggingface.co/EleutherAI/polyglot-ko-5.8b | 0.7745 | 0.7676 | 0.7775 | 0.7887 | | https://huggingface.co/EleutherAI/polyglot-ko-12.8b | 0.7937 | 0.8108 | 0.8037 | 0.8369 | | Llama-2 Original 7B* | 0.562033 | 0.575982 | 0.576216 | 0.595532 | | Llama-2-Ko-7b 20B (10k) | 0.738780 | 0.762639 | 0.780761 | 0.797863 | | Llama-2-Ko-7b 40B (20k) | 0.743630 | 0.792716 | 0.803746 | 0.825944 | *Llama-2 Original 7B used https://huggingface.co/meta-llama/Llama-2-7b-hf (w/o tokenizer updated) ### HellaSwag (F1) <img src=https://user-images.githubusercontent.com/11323660/255576090-a2bfc1ae-d117-44b7-9f7b-262e41179ec1.png style="max-width: 700px; width: 100%" /> | Model | 0-shot | 5-shot | 10-shot | 50-shot | | --- | --- | --- | --- | --- | | https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5 | 0.5243 | 0.5272 | 0.5166 | 0.5352 | | https://huggingface.co/kakaobrain/kogpt | 0.5590 | 0.5833 | 0.5828 | 0.5907 | | https://huggingface.co/facebook/xglm-7.5B | 0.5665 | 0.5689 | 0.5565 | 0.5622 | | https://huggingface.co/EleutherAI/polyglot-ko-1.3b | 0.5247 | 0.5260 | 0.5278 | 0.5427 | | https://huggingface.co/EleutherAI/polyglot-ko-3.8b | 0.5707 | 0.5830 | 0.5670 | 0.5787 | | https://huggingface.co/EleutherAI/polyglot-ko-5.8b | 0.5976 | 0.5998 | 0.5979 | 0.6208 | | https://huggingface.co/EleutherAI/polyglot-ko-12.8b | 0.5954 | 0.6306 | 0.6098 | 0.6118 | | Llama-2 Original 7B* | 0.415390 | 0.431382 | 0.421342 | 0.442003 | | Llama-2-Ko-7b 20B (10k) | 0.451757 | 0.466751 | 0.472607 | 0.482776 | | Llama-2-Ko-7b 40B (20k) | 0.456246 | 0.465665 | 0.469810 | 0.477374 | *Llama-2 Original 7B used https://huggingface.co/meta-llama/Llama-2-7b-hf (w/o tokenizer updated) ### BoolQ (F1) <img src=https://user-images.githubusercontent.com/11323660/255576343-5d847a6f-3b6a-41a7-af37-0f11940a5ea4.png style="max-width: 700px; width: 100%" /> | Model | 0-shot | 5-shot | 10-shot | 50-shot | | --- | --- | --- | --- | --- | | https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5 | 0.3356 | 0.4014 | 0.3640 | 0.3560 | | https://huggingface.co/kakaobrain/kogpt | 0.4514 | 0.5981 | 0.5499 | 0.5202 | | https://huggingface.co/facebook/xglm-7.5B | 0.4464 | 0.3324 | 0.3324 | 0.3324 | | https://huggingface.co/EleutherAI/polyglot-ko-1.3b | 0.3552 | 0.4751 | 0.4109 | 0.4038 | | https://huggingface.co/EleutherAI/polyglot-ko-3.8b | 0.4320 | 0.5263 | 0.4930 | 0.4038 | | https://huggingface.co/EleutherAI/polyglot-ko-5.8b | 0.4356 | 0.5698 | 0.5187 | 0.5236 | | https://huggingface.co/EleutherAI/polyglot-ko-12.8b | 0.4818 | 0.6041 | 0.6289 | 0.6448 | | Llama-2 Original 7B* | 0.352050 | 0.563238 | 0.474788 | 0.419222 | | Llama-2-Ko-7b 20B (10k) | 0.360656 | 0.679743 | 0.680109 | 0.662152 | | Llama-2-Ko-7b 40B (20k) | 0.578640 | 0.697747 | 0.708358 | 0.714423 | *Llama-2 Original 7B used https://huggingface.co/meta-llama/Llama-2-7b-hf (w/o tokenizer updated) ### SentiNeg (F1) <img src=https://user-images.githubusercontent.com/11323660/255576572-b005a81d-fa4d-4709-b48a-f0fe4eed17a3.png style="max-width: 700px; width: 100%" /> | Model | 0-shot | 5-shot | 10-shot | 50-shot | | --- | --- | --- | --- | --- | | https://huggingface.co/skt/ko-gpt-trinity-1.2B-v0.5 | 0.6065 | 0.6878 | 0.7280 | 0.8413 | | https://huggingface.co/kakaobrain/kogpt | 0.3747 | 0.8942 | 0.9294 | 0.9698 | | https://huggingface.co/facebook/xglm-7.5B | 0.3578 | 0.4471 | 0.3964 | 0.5271 | | https://huggingface.co/EleutherAI/polyglot-ko-1.3b | 0.6790 | 0.6257 | 0.5514 | 0.7851 | | https://huggingface.co/EleutherAI/polyglot-ko-3.8b | 0.4858 | 0.7950 | 0.7320 | 0.7851 | | https://huggingface.co/EleutherAI/polyglot-ko-5.8b | 0.3394 | 0.8841 | 0.8808 | 0.9521 | | https://huggingface.co/EleutherAI/polyglot-ko-12.8b | 0.9117 | 0.9015 | 0.9345 | 0.9723 | | Llama-2 Original 7B* | 0.347502 | 0.529124 | 0.480641 | 0.788457 | | Llama-2-Ko-7b 20B (10k) | 0.485546 | 0.829503 | 0.871141 | 0.851253 | | Llama-2-Ko-7b 40B (20k) | 0.459447 | 0.761079 | 0.727611 | 0.936988 | *Llama-2 Original 7B used https://huggingface.co/meta-llama/Llama-2-7b-hf (w/o tokenizer updated) ## Note for oobabooga/text-generation-webui Remove `ValueError` at `load_tokenizer` function(line 109 or near), in `modules/models.py`. ```python diff --git a/modules/models.py b/modules/models.py index 232d5fa..de5b7a0 100644 --- a/modules/models.py +++ b/modules/models.py @@ -106,7 +106,7 @@ def load_tokenizer(model_name, model): trust_remote_code=shared.args.trust_remote_code, use_fast=False ) - except ValueError: + except: tokenizer = AutoTokenizer.from_pretrained( path_to_model, trust_remote_code=shared.args.trust_remote_code, ``` Since Llama-2-Ko uses FastTokenizer provided by HF tokenizers NOT sentencepiece package, it is required to use `use_fast=True` option when initialize tokenizer. Apple Sillicon does not support BF16 computing, use CPU instead. (BF16 is supported when using NVIDIA GPU) ## Citation ``` @misc {l._junbum_2023, author = { {L. Junbum} }, title = { llama-2-ko-7b (Revision 4a9993e) }, year = 2023, url = { https://huggingface.co/beomi/llama-2-ko-7b }, doi = { 10.57967/hf/1098 }, publisher = { Hugging Face } } ``` ## Acknowledgement The training is supported by [TPU Research Cloud](https://sites.research.google/trc/) program. # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard) Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_beomi__llama-2-ko-7b) | Metric | Value | |-----------------------|---------------------------| | Avg. | 39.43 | | ARC (25-shot) | 48.46 | | HellaSwag (10-shot) | 75.28 | | MMLU (5-shot) | 39.56 | | TruthfulQA (0-shot) | 34.49 | | Winogrande (5-shot) | 72.14 | | GSM8K (5-shot) | 1.97 | | DROP (3-shot) | 4.1 |
[ -0.6776049137115479, -0.6040953993797302, 0.23781786859035492, 0.5075051188468933, -0.6764440536499023, 0.17116525769233704, -0.01101998146623373, -0.6953110098838806, 0.937412679195404, 0.17582491040229797, -0.6650903820991516, -0.7163644433021545, -0.673244059085846, 0.2357192188501358, 0.2466733306646347, 1.0385565757751465, -0.15197455883026123, -0.4770720601081848, 0.16270257532596588, -0.0949767529964447, -0.30478358268737793, -0.443547785282135, -0.42965635657310486, -0.3715711236000061, 0.3074154257774353, 0.08355928957462311, 0.8383843302726746, 0.5937337279319763, 0.5059703588485718, 0.40858888626098633, -0.437186598777771, 0.16099147498607635, -0.25331205129623413, -0.3256320059299469, 0.41488561034202576, -0.5508854985237122, -1.178564190864563, 0.009225957095623016, 0.45431527495384216, 0.34732604026794434, -0.12226973474025726, 0.3370864987373352, -0.0275813527405262, 0.5411884188652039, -0.24445824325084686, 0.2148221731185913, -0.19896921515464783, 0.20144902169704437, -0.32076841592788696, 0.22857530415058136, 0.06388825923204422, -0.5081905722618103, -0.0004394730494823307, -0.8723520636558533, -0.4647326171398163, -0.07005961984395981, 1.4972330331802368, 0.042452894151210785, -0.2481212615966797, -0.036861859261989594, 0.19583359360694885, 0.7140771150588989, -1.0231388807296753, 0.12206364423036575, 0.5024301409721375, -0.07715247571468353, -0.3398098945617676, -0.6082704663276672, -0.5638368725776672, 0.06157470494508743, -0.48870670795440674, 0.34075140953063965, -0.4853028953075409, -0.22198939323425293, 0.3047317564487457, 0.48031777143478394, -0.4287090003490448, 0.05211769789457321, -0.31965726613998413, -0.2891616225242615, 0.9768241047859192, 0.03808129206299782, 0.6802476644515991, -0.45694416761398315, -0.4284849762916565, -0.026996230706572533, -0.5599076747894287, 0.41708457469940186, 0.45209768414497375, -0.03741522133350372, -1.0227597951889038, 0.6815028190612793, -0.14059293270111084, 0.37214598059654236, 0.2298230081796646, -0.5277629494667053, 0.8286042809486389, -0.40234804153442383, -0.24016040563583374, -0.42707088589668274, 1.1539875268936157, 0.8678688406944275, 0.1698356568813324, 0.1693069487810135, -0.15260060131549835, -0.03585568442940712, -0.3965721130371094, -0.8940567374229431, -0.04489549249410629, 0.28790032863616943, -0.6640022993087769, -0.6555582284927368, 0.01944779045879841, -0.8036046028137207, -0.010073044337332249, 0.03799786418676376, 0.027594126760959625, -0.3784104883670807, -0.5304738879203796, 0.15527833998203278, -0.06845007836818695, 0.49375441670417786, 0.40494343638420105, -0.45167139172554016, 0.20127227902412415, 0.3403972387313843, 0.9758061170578003, 0.1591462939977646, -0.0422859787940979, -0.03559817373752594, -0.0024017065297812223, -0.41098615527153015, 0.7110344171524048, -0.07839634269475937, -0.413224458694458, -0.36592790484428406, 0.22620601952075958, -0.1019463911652565, -0.20522621273994446, 0.6059994697570801, 0.1085200235247612, -0.08143750578165054, -0.34040969610214233, -0.3239501416683197, -0.1796419769525528, 0.40295490622520447, -0.5136823058128357, 1.254427433013916, 0.30244410037994385, -0.9183882474899292, 0.07686582207679749, -0.6212251782417297, 0.11275448650121689, -0.208519846200943, 0.2657283544540405, -0.7689507007598877, -0.07269658893346786, 0.3536287844181061, 0.5293372869491577, -0.3041628897190094, -0.0760696530342102, -0.3738742768764496, -0.18632587790489197, 0.3395836353302002, 0.3437902629375458, 1.0058021545410156, 0.17537465691566467, -0.47550392150878906, -0.06847862154245377, -0.8405903577804565, 0.10874461382627487, 0.7483590841293335, -0.2832418978214264, -0.11274262517690659, -0.31475916504859924, -0.05586467683315277, 0.47541549801826477, 0.5709142684936523, -0.6642694473266602, 0.5926206111907959, -0.3732806146144867, 0.4790102541446686, 0.8414223790168762, 0.0006252346793189645, 0.20822441577911377, -0.5419121384620667, 0.6455152034759521, 0.1995413899421692, 0.3951040804386139, -0.1290333867073059, -0.6605531573295593, -1.015666127204895, -0.5661149621009827, 0.06721480190753937, 0.47271814942359924, -0.5077513456344604, 0.829693615436554, -0.08042493462562561, -0.8775206208229065, -0.6833263635635376, 0.25383850932121277, 0.6088043451309204, 0.24598224461078644, 0.20076943933963776, -0.4396466612815857, -0.7176640033721924, -0.9337393641471863, -0.12275359034538269, -0.2799195647239685, 0.19146674871444702, 0.5414007306098938, 0.8181073069572449, -0.44741979241371155, 0.7056213021278381, -0.6146854758262634, -0.1992701292037964, -0.19277964532375336, -0.14759483933448792, 0.4548296332359314, 0.5428956151008606, 1.0618200302124023, -0.6171122789382935, -0.6928433179855347, 0.2420308142900467, -1.033363938331604, -0.20892542600631714, -0.001632297644391656, -0.4679107666015625, 0.39820483326911926, 0.24149128794670105, -1.0227465629577637, 0.7384997606277466, 0.6750934720039368, -0.7371179461479187, 0.6558209657669067, -0.17409120500087738, 0.021718231961131096, -1.0420100688934326, 0.1693749576807022, 0.0011273887939751148, -0.2659471929073334, -0.7210444808006287, 0.2730444669723511, -0.1687808781862259, 0.3303850591182709, -0.6403319835662842, 0.9847369194030762, -0.5400538444519043, 0.06545506417751312, -0.06977538764476776, 0.1904115080833435, 0.016540402546525, 0.4644864499568939, 0.01910991594195366, 0.5694450736045837, 0.7418760657310486, -0.15163660049438477, 0.5235209465026855, 0.5682255029678345, -0.12342118471860886, 0.6865463852882385, -0.7703755497932434, 0.44330039620399475, -0.04633183777332306, 0.7497684955596924, -0.906592845916748, -0.44315218925476074, 0.7734600305557251, -0.5903006196022034, 0.2344789355993271, -0.17808139324188232, -0.40420323610305786, -0.843894362449646, -0.9091213345527649, 0.1545426845550537, 0.6069230437278748, -0.5641090273857117, 0.4575995206832886, 0.25473034381866455, 0.07279669493436813, -0.61203533411026, -0.6329043507575989, 0.13328510522842407, -0.4127085208892822, -0.8035354018211365, 0.373626708984375, 0.0025921151973307133, -0.1988154649734497, -0.04582050070166588, 0.050137054175138474, 0.029228540137410164, 0.129906564950943, 0.44578397274017334, 0.6777592301368713, -0.2289467751979828, -0.3666859567165375, -0.0803709328174591, -0.1192658394575119, -0.17731621861457825, -0.030931171029806137, 0.6222352981567383, -0.495476096868515, -0.12167490273714066, -1.016880750656128, -0.006736471317708492, 0.5994951128959656, -0.048831261694431305, 0.8755042552947998, 0.8520134091377258, -0.34941914677619934, 0.45184311270713806, -0.6931325197219849, 0.00321092433296144, -0.49651625752449036, -0.17622466385364532, -0.6653743982315063, -0.8733417987823486, 1.007323145866394, 0.20560160279273987, 0.18414798378944397, 0.7386273741722107, 0.5664781332015991, -0.013146386481821537, 0.9863954782485962, 0.43183156847953796, -0.3477165102958679, 0.43182048201560974, -0.5742753744125366, 0.13925322890281677, -1.0599333047866821, -0.7094683051109314, -0.056444551795721054, -0.4169296324253082, -0.7894726395606995, -0.6083583831787109, 0.1821109503507614, 0.6034918427467346, -0.25392040610313416, 0.7205447554588318, -0.565922200679779, 0.13209910690784454, 0.23422501981258392, 0.2639443576335907, 0.05690402537584305, -0.0839756652712822, -0.24234245717525482, -0.1208457201719284, -0.4107298254966736, -0.4424249827861786, 1.007707953453064, 0.5513877272605896, 0.46935519576072693, 0.21606974303722382, 0.793236255645752, -0.03399616479873657, 0.38687828183174133, -0.5779783725738525, 0.6209851503372192, 0.3064556121826172, -0.5675269365310669, -0.11499771475791931, -0.24539555609226227, -0.9222310185432434, 0.4734939634799957, -0.3714897930622101, -1.0223286151885986, 0.019335810095071793, -0.004151691682636738, -0.23719576001167297, 0.4822417199611664, -0.5409116744995117, 0.5695874094963074, -0.19065535068511963, -0.33130577206611633, 0.03997050225734711, -0.81719970703125, 0.4729873239994049, 0.08490165323019028, 0.17008288204669952, -0.41500622034072876, -0.276531457901001, 0.6147573590278625, -0.8338813185691833, 0.8517742156982422, -0.239325150847435, -0.18087482452392578, 0.6854504346847534, -0.10008477419614792, 0.7630509734153748, 0.08039465546607971, -0.08271018415689468, 0.36929747462272644, 0.09332054853439331, -0.6131646037101746, -0.33732736110687256, 0.5012349486351013, -0.8893312811851501, -0.6540823578834534, -0.6492931842803955, -0.28074219822883606, 0.2241397351026535, 0.07869020849466324, 0.2546828091144562, -0.05057636275887489, 0.07642900943756104, 0.0731920674443245, 0.18536148965358734, -0.35826802253723145, 0.523731529712677, 0.062110740691423416, -0.2839062809944153, -0.6322621703147888, 0.8741453886032104, -0.1648813933134079, 0.17246410250663757, -0.07615156471729279, 0.12867382168769836, -0.25247177481651306, -0.187609001994133, -0.5784499049186707, 0.7807864546775818, -0.3992636203765869, -0.44254645705223083, -0.3967154026031494, -0.2768195867538452, -0.442093163728714, -0.34575197100639343, -0.42853429913520813, -0.4366256296634674, -0.6427134871482849, -0.18125389516353607, 0.8543211221694946, 0.7631829380989075, -0.24857692420482635, 0.35394948720932007, -0.516933023929596, 0.29265961050987244, 0.07932084053754807, 0.3720954954624176, -0.1252179592847824, -0.5772200226783752, 0.04408283159136772, 0.03705597296357155, -0.3465355336666107, -0.8159208297729492, 0.7006298899650574, 0.12233994901180267, 0.33485403656959534, 0.3275209665298462, -0.2759624123573303, 1.0787347555160522, -0.3527679145336151, 0.8094874024391174, 0.7078911662101746, -0.9663203358650208, 0.6283330321311951, -0.586807906627655, 0.11496219784021378, 0.2714364528656006, 0.2784173786640167, -0.6258189678192139, -0.40608298778533936, -0.7191233038902283, -0.7192901372909546, 0.7543733716011047, 0.39105939865112305, 0.14308995008468628, -0.039037562906742096, 0.7811351418495178, -0.24261291325092316, 0.09693950414657593, -0.8726373314857483, -0.7725242376327515, -0.39480993151664734, -0.2139141857624054, 0.14000160992145538, -0.1706775575876236, -0.0733894482254982, -0.526957631111145, 0.6310712695121765, -0.20582616329193115, 0.4143370985984802, 0.18548524379730225, -0.07259617000818253, -0.03338369354605675, -0.21086548268795013, 0.6720220446586609, 0.4813939332962036, -0.1137540265917778, -0.42171183228492737, 0.4525008499622345, -0.5448390245437622, 0.24777883291244507, -0.002084317384287715, -0.19256964325904846, 0.01284184679389, 0.2250918745994568, 0.881260335445404, 0.3451978862285614, -0.5954980254173279, 0.6569877862930298, 0.019734488800168037, -0.4079267382621765, -0.2996206283569336, -0.09588406980037689, 0.4196656346321106, 0.44637224078178406, 0.23490706086158752, -0.1293395757675171, -0.2178400158882141, -0.5576554536819458, 0.06295837461948395, 0.6351827383041382, -0.21559017896652222, -0.6947471499443054, 0.6613947749137878, -0.008493021130561829, -0.10248389095067978, 0.1726529598236084, -0.20016521215438843, -0.8196289539337158, 0.8316438794136047, 0.5466710329055786, 0.49515724182128906, -0.44436633586883545, 0.2596108019351959, 0.8558856844902039, 0.03358595073223114, -0.04921372979879379, 0.2653321921825409, 0.24186496436595917, -0.3749762177467346, -0.1100500300526619, -0.8674594759941101, 0.02975451387465, 0.3632332384586334, -0.43736547231674194, 0.43647676706314087, -0.692912220954895, -0.4762576222419739, -0.12744377553462982, 0.41443681716918945, -0.5684975385665894, 0.1251557618379593, 0.24422183632850647, 0.8992280960083008, -0.7566527724266052, 0.8265731930732727, 0.7369083762168884, -0.6557990908622742, -0.9125652313232422, -0.29137858748435974, 0.43295007944107056, -1.0944582223892212, 0.5430165529251099, 0.07892285287380219, 0.07694162428379059, -0.13494476675987244, -0.5857797265052795, -1.0598088502883911, 1.6854723691940308, 0.2472960203886032, -0.41033777594566345, -0.0006621135398745537, -0.16479216516017914, 0.5532665848731995, -0.3314569890499115, 0.5265319347381592, 0.6215903759002686, 0.6070458889007568, 0.07801350206136703, -1.2016077041625977, 0.42026010155677795, -0.6484017372131348, 0.05206851288676262, 0.004942542873322964, -1.5394623279571533, 1.0236116647720337, -0.23140427470207214, 0.009113296866416931, 0.44572311639785767, 0.6907494068145752, 0.712957501411438, -0.054113421589136124, 0.3924490809440613, 0.8223513960838318, 0.5678621530532837, -0.2558468282222748, 1.102556586265564, -0.20100738108158112, 0.6585973501205444, 0.28461048007011414, 0.2753306031227112, 0.6705066561698914, 0.31754881143569946, -0.5953788161277771, 0.7118363380432129, 0.8745669722557068, -0.15446628630161285, 0.030570013448596, 0.2794327437877655, -0.36279165744781494, -0.049001507461071014, -0.31832849979400635, -0.5533105134963989, 0.39509764313697815, 0.17018558084964752, -0.10702139139175415, 0.09589068591594696, -0.1889108121395111, 0.5739162564277649, -0.10097754001617432, -0.24888086318969727, 0.7244011163711548, 0.3226035237312317, -0.29700925946235657, 0.7527557015419006, -0.033389173448085785, 1.1275357007980347, -0.3979376256465912, 0.0822911337018013, -0.3493161201477051, 0.053384095430374146, -0.3896050453186035, -0.8953346014022827, 0.0659794807434082, 0.23042325675487518, 0.3070676326751709, -0.07038199156522751, 0.8288612365722656, -0.06909682601690292, -0.5395175814628601, 0.5109248161315918, 0.289081335067749, 0.45213961601257324, 0.2984449565410614, -1.2065423727035522, 0.46194568276405334, 0.13429880142211914, -0.8166285157203674, 0.4509974420070648, 0.21947596967220306, 0.02535492740571499, 0.6907646059989929, 0.7150318622589111, 0.19630524516105652, 0.25448843836784363, -0.13256379961967468, 1.1112940311431885, -0.5644792318344116, -0.2632611095905304, -0.975834310054779, 0.7669633030891418, -0.29869788885116577, -0.5113160610198975, 0.7658196091651917, 0.4203730523586273, 0.6242580413818359, 0.03724772483110428, 0.6473947763442993, -0.43002206087112427, 0.33375510573387146, -0.31187304854393005, 0.7638631463050842, -0.83854740858078, -0.1808309555053711, -0.46623557806015015, -0.7018275856971741, -0.3716122508049011, 0.9504885673522949, -0.0015713117318227887, -0.03396652266383171, 0.3047526478767395, 0.6832920908927917, 0.2817656099796295, -0.4232858419418335, -0.11538752913475037, 0.18685075640678406, 0.3296090364456177, 0.8401612043380737, 0.7826136946678162, -0.8840286135673523, 0.2709379494190216, -0.5690519213676453, -0.12515388429164886, -0.5061445832252502, -0.8354654312133789, -1.1526925563812256, -0.4360382556915283, -0.42264440655708313, -0.4121786952018738, -0.2665228545665741, 1.1777089834213257, 0.7657530903816223, -0.5909945964813232, -0.2763873338699341, 0.11541984230279922, 0.1676621437072754, 0.07009679079055786, -0.24044275283813477, 0.4291309416294098, 0.22829918563365936, -0.913844645023346, -0.06148714944720268, 0.18449829518795013, 0.6784001588821411, 0.11118840426206589, -0.5520050525665283, -0.23986223340034485, -0.052667055279016495, 0.823919951915741, 0.6244616508483887, -1.072898030281067, -0.3850705027580261, 0.07385755330324173, -0.14636114239692688, 0.28730711340904236, 0.14206580817699432, -0.4579256772994995, 0.042126987129449844, 0.44457465410232544, 0.13192440569400787, 0.7316408753395081, 0.19183602929115295, 0.006195456720888615, -0.4499228894710541, 0.6420983076095581, -0.09483426064252853, 0.46130678057670593, 0.27258002758026123, -0.3472460210323334, 0.8257524967193604, 0.6200504899024963, -0.2898183763027191, -1.0788127183914185, -0.013290544971823692, -1.3653231859207153, -0.10874000191688538, 0.915998101234436, -0.36235591769218445, -0.621557891368866, 0.44899800419807434, -0.4248780310153961, 0.2765446901321411, -0.38567009568214417, 0.47405168414115906, 0.6793172359466553, -0.3408355712890625, -0.22358381748199463, -0.6054259538650513, 0.4158707559108734, 0.281997412443161, -1.0561578273773193, -0.28318870067596436, 0.23777447640895844, 0.3444458246231079, 0.43281131982803345, 0.8310950398445129, -0.3447040617465973, 0.19851620495319366, -0.1502508819103241, 0.19973881542682648, 0.06913141906261444, 0.244843527674675, -0.21487583220005035, -0.5667337775230408, -0.16178199648857117, -0.1413564831018448 ]
ArthurZ/dummy-rocbert-qa
ArthurZ
"2022-11-16T16:16:06Z"
19,494
0
transformers
[ "transformers", "pytorch", "roc_bert", "question-answering", "autotrain_compatible", "endpoints_compatible", "region:us" ]
question-answering
"2022-11-16T16:03:38Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
timm/tf_efficientnetv2_s.in21k
timm
"2023-04-27T22:17:52Z"
19,450
2
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-21k", "arxiv:2104.00298", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:18:57Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-21k --- # Model card for tf_efficientnetv2_s.in21k A EfficientNet-v2 image classification model. Trained on ImageNet-21k in Tensorflow by paper authors, ported to PyTorch by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 48.2 - GMACs: 5.4 - Activations (M): 22.8 - Image size: train = 300 x 300, test = 384 x 384 - **Papers:** - EfficientNetV2: Smaller Models and Faster Training: https://arxiv.org/abs/2104.00298 - **Dataset:** ImageNet-21k - **Original:** https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('tf_efficientnetv2_s.in21k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Feature Map Extraction ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'tf_efficientnetv2_s.in21k', pretrained=True, features_only=True, ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 for o in output: # print shape of each feature map in output # e.g.: # torch.Size([1, 24, 150, 150]) # torch.Size([1, 48, 75, 75]) # torch.Size([1, 64, 38, 38]) # torch.Size([1, 160, 19, 19]) # torch.Size([1, 256, 10, 10]) print(o.shape) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'tf_efficientnetv2_s.in21k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 1280, 10, 10) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Model Comparison Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results). ## Citation ```bibtex @inproceedings{tan2021efficientnetv2, title={Efficientnetv2: Smaller models and faster training}, author={Tan, Mingxing and Le, Quoc}, booktitle={International conference on machine learning}, pages={10096--10106}, year={2021}, organization={PMLR} } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ```
[ -0.36552894115448, -0.45474621653556824, -0.05843528360128403, 0.10252603888511658, -0.31119298934936523, -0.4013230502605438, -0.2890505790710449, -0.4009515047073364, 0.15875087678432465, 0.39902809262275696, -0.3226831555366516, -0.6218955516815186, -0.7356619834899902, -0.21353720128536224, -0.14089268445968628, 0.8751068115234375, -0.12511351704597473, 0.031328681856393814, -0.1889762580394745, -0.5057021975517273, -0.10612352192401886, -0.09772967547178268, -0.8934866189956665, -0.47257906198501587, 0.3377651274204254, 0.3287586271762848, 0.47844645380973816, 0.7605491280555725, 0.6857702732086182, 0.48623183369636536, -0.07892771065235138, 0.1253274381160736, -0.3332577645778656, -0.1466274857521057, 0.4131419062614441, -0.6019595265388489, -0.39594846963882446, 0.12437675893306732, 0.711637020111084, 0.3540951609611511, 0.038940202444791794, 0.47767457365989685, 0.14621421694755554, 0.54258793592453, -0.28807032108306885, 0.1990872174501419, -0.37137097120285034, 0.17814499139785767, -0.10181737691164017, 0.07531813532114029, -0.26073527336120605, -0.35860389471054077, 0.17633631825447083, -0.5577563047409058, 0.42535293102264404, -0.048523563891649246, 1.3210041522979736, 0.29971417784690857, -0.13997730612754822, -0.008164061233401299, -0.22488635778427124, 0.7203088402748108, -0.7150068283081055, 0.20270749926567078, 0.3008749485015869, 0.22406098246574402, -0.06475328654050827, -1.1534610986709595, -0.45261383056640625, -0.1399490237236023, -0.17980585992336273, -0.06842347234487534, -0.3243159353733063, 0.05325038731098175, 0.33247271180152893, 0.20736588537693024, -0.5220491886138916, 0.23517590761184692, -0.632179319858551, -0.24305658042430878, 0.5659403800964355, 0.017358453944325447, 0.2643349766731262, -0.25822994112968445, -0.4460591971874237, -0.5020133256912231, -0.32403695583343506, 0.3461635708808899, 0.33198922872543335, 0.14713001251220703, -0.5396056175231934, 0.509517252445221, 0.06609389930963516, 0.6144793629646301, -0.0447097010910511, -0.34095442295074463, 0.5878480076789856, 0.03347403183579445, -0.4164333939552307, -0.20536693930625916, 1.1212239265441895, 0.4891766309738159, 0.21925818920135498, 0.10473810136318207, -0.13948377966880798, -0.37442952394485474, -0.11472291499376297, -1.3567813634872437, -0.4579574167728424, 0.3382953405380249, -0.6643281579017639, -0.4465015232563019, 0.24466849863529205, -0.5836318731307983, -0.12436904013156891, -0.001375971594825387, 0.5701518654823303, -0.3924119174480438, -0.43841010332107544, -0.1152644157409668, -0.3064731955528259, 0.3002801835536957, 0.2002001851797104, -0.515624463558197, 0.14574883878231049, 0.4146581292152405, 1.206054925918579, 0.05946552753448486, -0.3620520830154419, -0.30955928564071655, -0.36656302213668823, -0.3521163761615753, 0.4735487103462219, -0.03120403178036213, -0.009592683985829353, -0.2889237403869629, 0.308427631855011, -0.09152968972921371, -0.7377160787582397, 0.19189348816871643, -0.24174129962921143, 0.1928921788930893, -0.002046234207227826, -0.21613812446594238, -0.5248838067054749, 0.22055014967918396, -0.4535682201385498, 1.3683340549468994, 0.36050912737846375, -0.8758668899536133, 0.22243289649486542, -0.5592450499534607, -0.07653044909238815, -0.2600550949573517, 0.042547065764665604, -1.10062837600708, -0.09629436582326889, 0.08678993582725525, 0.8163868188858032, -0.28949323296546936, 0.07273393869400024, -0.6228020787239075, -0.27706828713417053, 0.2446347028017044, 0.013696116395294666, 1.0911434888839722, 0.21097026765346527, -0.5047146677970886, 0.2319004088640213, -0.5229669809341431, 0.21508777141571045, 0.5219467282295227, -0.2797032296657562, -0.03631917014718056, -0.6650171875953674, 0.24491535127162933, 0.32573434710502625, 0.10953949391841888, -0.50816410779953, 0.2634158730506897, -0.16563856601715088, 0.5337147116661072, 0.5912483334541321, -0.19980916380882263, 0.33903101086616516, -0.313080757856369, 0.19783015549182892, 0.22621241211891174, 0.15471763908863068, 0.0835859626531601, -0.5742635130882263, -0.930054783821106, -0.507317841053009, 0.3811216950416565, 0.4083530902862549, -0.627633810043335, 0.40412312746047974, -0.27132952213287354, -0.8395134806632996, -0.38988783955574036, 0.12508897483348846, 0.5341849327087402, 0.5755294561386108, 0.28341612219810486, -0.44000840187072754, -0.48124122619628906, -0.9433940649032593, -0.03174478933215141, -0.07829934358596802, 0.02433817833662033, 0.3806467056274414, 0.7837249040603638, -0.08952610194683075, 0.5429214835166931, -0.4243183135986328, -0.2795948386192322, -0.2436550110578537, 0.06267878413200378, 0.31982457637786865, 0.8035199046134949, 0.8307686448097229, -0.5479685068130493, -0.5286454558372498, -0.13324549794197083, -0.9488951563835144, 0.1781727522611618, 0.026852574199438095, -0.27740269899368286, 0.29504454135894775, 0.2556074857711792, -0.5858187079429626, 0.5831603407859802, 0.23473843932151794, -0.4362839460372925, 0.3493248224258423, -0.2568797767162323, 0.1882196068763733, -1.172688364982605, 0.17132984101772308, 0.3674059212207794, -0.251309871673584, -0.49581778049468994, 0.0954531580209732, 0.06608522683382034, -0.016930587589740753, -0.5290252566337585, 0.6841043829917908, -0.5967105031013489, -0.25915372371673584, -0.14468100666999817, -0.30120909214019775, -0.0031461806502193213, 0.6444217562675476, -0.08950440585613251, 0.3810901641845703, 0.7900733947753906, -0.44166579842567444, 0.5583557486534119, 0.40170568227767944, -0.27537092566490173, 0.3420077860355377, -0.7241566777229309, 0.23709535598754883, 0.019693691283464432, 0.2278497964143753, -1.0055609941482544, -0.37899062037467957, 0.40662479400634766, -0.6467615365982056, 0.5981245636940002, -0.5343692898750305, -0.48415759205818176, -0.5622833967208862, -0.4885029196739197, 0.34406736493110657, 0.7343037724494934, -0.7761566638946533, 0.4470742642879486, 0.25121626257896423, 0.29070335626602173, -0.6157242655754089, -1.0614880323410034, -0.21058695018291473, -0.41123726963996887, -0.8066785335540771, 0.3324156403541565, 0.21317033469676971, 0.06722456961870193, 0.22039668262004852, -0.016254963353276253, -0.17791779339313507, -0.05080696940422058, 0.5051696300506592, 0.29498687386512756, -0.3003653585910797, -0.03439660742878914, -0.3130926489830017, -0.06009978801012039, 0.04870041087269783, -0.4173879325389862, 0.564453661441803, -0.30659663677215576, -0.03858460113406181, -0.9095419049263, -0.09585174918174744, 0.3701746463775635, -0.025647524744272232, 0.8558080792427063, 1.2328157424926758, -0.5211169719696045, -0.06637849658727646, -0.43330565094947815, -0.3489609360694885, -0.4918784499168396, 0.6465478539466858, -0.33826860785484314, -0.5316734313964844, 0.7533565759658813, 0.07372502237558365, 0.09341086447238922, 0.764771580696106, 0.4256696403026581, -0.10592436790466309, 0.6610088348388672, 0.5129938125610352, 0.3549811542034149, 0.77845698595047, -1.1279040575027466, -0.25502604246139526, -0.8204496502876282, -0.5925876498222351, -0.41450345516204834, -0.6449423432350159, -0.7407407760620117, -0.4467668831348419, 0.42804858088493347, 0.2479306310415268, -0.5147576332092285, 0.4923954904079437, -0.8310127258300781, 0.09292398393154144, 0.7104777097702026, 0.5749465227127075, -0.3965533673763275, 0.41011106967926025, -0.13642321527004242, 0.04928835853934288, -0.8470785617828369, -0.21397557854652405, 1.1804530620574951, 0.4329996407032013, 0.4780132472515106, -0.043722003698349, 0.6856532096862793, -0.247562438249588, 0.27158451080322266, -0.6719149351119995, 0.5655542016029358, -0.16846492886543274, -0.42309632897377014, -0.12852248549461365, -0.5470974445343018, -1.0778028964996338, 0.15967288613319397, -0.27917322516441345, -0.8028578758239746, 0.13844992220401764, 0.24505969882011414, -0.2093127965927124, 0.8147135376930237, -0.8941625356674194, 1.029510736465454, -0.11462850123643875, -0.5252313613891602, 0.049027420580387115, -0.6577782034873962, 0.333156019449234, 0.2972542941570282, -0.2974705994129181, -0.08106979727745056, 0.022487211972475052, 1.2375754117965698, -0.6858696341514587, 0.7638995051383972, -0.5516445636749268, 0.5513049364089966, 0.5617341995239258, -0.10106867551803589, 0.45041218400001526, -0.11279991269111633, -0.12811225652694702, 0.3400401175022125, 0.008879459463059902, -0.49655064940452576, -0.5191124081611633, 0.6585044860839844, -1.0799275636672974, -0.27911245822906494, -0.37807291746139526, -0.404593288898468, 0.24593695998191833, 0.11433371901512146, 0.5541675686836243, 0.6825664639472961, 0.27372872829437256, 0.3916698098182678, 0.5477357506752014, -0.32583677768707275, 0.562574028968811, -0.17057624459266663, -0.134011372923851, -0.5395927429199219, 0.8940069675445557, 0.271266907453537, 0.12067525088787079, 0.08599207550287247, 0.2610010504722595, -0.4021478295326233, -0.6404840350151062, -0.3533998429775238, 0.298637330532074, -0.7338009476661682, -0.5350374579429626, -0.7552096843719482, -0.3518141806125641, -0.40534019470214844, 0.03051438368856907, -0.5618298053741455, -0.4841119945049286, -0.5169879794120789, 0.1967441886663437, 0.8201990127563477, 0.6216346025466919, -0.24854625761508942, 0.6120696067810059, -0.4423718750476837, 0.15662547945976257, 0.15708260238170624, 0.45925185084342957, -0.031005002558231354, -0.884690523147583, -0.1866220086812973, -0.14091798663139343, -0.41463297605514526, -0.6520082950592041, 0.48941120505332947, 0.2680221199989319, 0.42530569434165955, 0.38886433839797974, -0.24083897471427917, 0.7424406409263611, 0.05419037118554115, 0.537713885307312, 0.46655744314193726, -0.4996615946292877, 0.5205767154693604, -0.025239761918783188, 0.07472410798072815, 0.148321270942688, 0.24267297983169556, -0.23017637431621552, 0.07176802307367325, -0.9820088148117065, -0.8228592872619629, 0.9556061625480652, 0.15341435372829437, -0.04967821389436722, 0.47252795100212097, 0.7173712253570557, -0.012327693402767181, 0.00909531768411398, -0.6511812806129456, -0.47413021326065063, -0.374096155166626, -0.3269430994987488, -0.010646872222423553, -0.13640223443508148, -0.02348126657307148, -0.6620739698410034, 0.7367482781410217, -0.07054611295461655, 0.8959552645683289, 0.23239901661872864, -0.08281678706407547, -0.0029902257956564426, -0.5128145813941956, 0.46266743540763855, 0.25300300121307373, -0.3092482388019562, 0.13266365230083466, 0.1532764583826065, -0.5350627899169922, 0.10266352444887161, 0.1967904418706894, -0.033730246126651764, -0.004545495379716158, 0.5152407288551331, 1.0645407438278198, -0.13308829069137573, 0.13853897154331207, 0.5132618546485901, -0.033143483102321625, -0.4385339915752411, -0.2964334487915039, 0.19779178500175476, 0.07627309858798981, 0.49711301922798157, 0.20048274099826813, 0.4506174623966217, -0.08609595894813538, -0.21174831688404083, 0.26045966148376465, 0.5269060134887695, -0.3497278094291687, -0.29211944341659546, 0.691260576248169, -0.10734426975250244, -0.22694437205791473, 0.9397686719894409, -0.18613097071647644, -0.4930015504360199, 1.151094913482666, 0.3499062955379486, 0.9223759174346924, 0.06157350912690163, 0.08120989799499512, 0.9046064019203186, 0.22710002958774567, -0.08719687908887863, 0.18600432574748993, 0.15160201489925385, -0.6769117712974548, 0.0627746731042862, -0.5024039149284363, 0.12232530862092972, 0.3320908844470978, -0.5400365591049194, 0.323632150888443, -0.6921048760414124, -0.43492162227630615, 0.1332138180732727, 0.3995887339115143, -1.055875539779663, 0.16489674150943756, -0.0563841387629509, 0.890151858329773, -0.7185561656951904, 0.7896040678024292, 0.831703245639801, -0.4229336380958557, -1.1476335525512695, -0.18455182015895844, 0.048516515642404556, -0.9849867820739746, 0.6265395283699036, 0.5124177932739258, 0.19845449924468994, 0.10963735729455948, -0.7770645618438721, -0.642493724822998, 1.4846783876419067, 0.5366637706756592, -0.10659126192331314, 0.2882542014122009, -0.06940874457359314, 0.20216479897499084, -0.39989179372787476, 0.6859381794929504, 0.23955780267715454, 0.4588450491428375, 0.30740782618522644, -0.6482961773872375, 0.2419256567955017, -0.3744952082633972, 0.20032843947410583, 0.1380821019411087, -0.9082142114639282, 0.8493869304656982, -0.5681924223899841, -0.06397441774606705, 0.081959068775177, 0.7468595504760742, 0.19191110134124756, 0.15354524552822113, 0.5248188972473145, 0.8361278176307678, 0.5760738849639893, -0.45103541016578674, 0.9641865491867065, 0.08514150232076645, 0.692095935344696, 0.5388500690460205, 0.5407149791717529, 0.5731483101844788, 0.40569427609443665, -0.16129924356937408, 0.3272377550601959, 1.1878749132156372, -0.4160442352294922, 0.347825825214386, 0.22388997673988342, 0.1441485434770584, -0.139718160033226, 0.04428524896502495, -0.4258715510368347, 0.6199063658714294, 0.10865158587694168, -0.5322211980819702, -0.20510166883468628, -0.03434348106384277, 0.06796454638242722, -0.4873262643814087, -0.23354163765907288, 0.5111193060874939, 0.023445092141628265, -0.43010851740837097, 0.8858729004859924, 0.1992674320936203, 0.8668725490570068, -0.34818997979164124, 0.04802486672997475, -0.2194773405790329, 0.2652576267719269, -0.3839857876300812, -0.831098735332489, 0.29264965653419495, -0.20232506096363068, 0.09412666410207748, 0.010497174225747585, 0.6874657869338989, -0.3761371970176697, -0.48040351271629333, 0.20690084993839264, 0.29793840646743774, 0.590485155582428, 0.046723756939172745, -1.2234071493148804, 0.18012894690036774, 0.09487560391426086, -0.771224319934845, 0.2605776786804199, 0.2916911244392395, 0.10211464762687683, 0.6970710158348083, 0.5471936464309692, -0.08841455727815628, 0.14223824441432953, -0.29317599534988403, 0.7876055836677551, -0.42328527569770813, -0.3198152780532837, -0.7831992506980896, 0.6863459944725037, -0.16498561203479767, -0.6675507426261902, 0.38934871554374695, 0.5969908833503723, 0.858634352684021, 0.00017474089690949768, 0.46414920687675476, -0.3178876042366028, -0.12981848418712616, -0.40755802392959595, 0.7625337243080139, -0.8211387395858765, -0.11071332544088364, -0.029912324622273445, -0.7628275156021118, -0.356650710105896, 0.7354017496109009, -0.22398340702056885, 0.4878823161125183, 0.49746108055114746, 1.0477417707443237, -0.36057421565055847, -0.4034947156906128, 0.10602828860282898, 0.16636775434017181, 0.11971239745616913, 0.4856549799442291, 0.38769134879112244, -0.8357422351837158, 0.44790902733802795, -0.7214576005935669, -0.18573948740959167, -0.29202812910079956, -0.6874963045120239, -1.0307775735855103, -0.8100472092628479, -0.6801451444625854, -0.8135379552841187, -0.14312511682510376, 0.9905298948287964, 1.0931059122085571, -0.6609296798706055, -0.14152812957763672, 0.013890121132135391, 0.13870961964130402, -0.20267070829868317, -0.22627218067646027, 0.7417649626731873, -0.03563915565609932, -0.7631645202636719, -0.38603612780570984, -0.07811657339334488, 0.33713090419769287, 0.049811068922281265, -0.28864264488220215, -0.06993678957223892, -0.38512349128723145, 0.15629495680332184, 0.275901198387146, -0.6323782801628113, -0.19887831807136536, -0.2667820155620575, -0.19708062708377838, 0.39285793900489807, 0.4324643313884735, -0.45417919754981995, 0.33580222725868225, 0.5713477730751038, 0.3889354169368744, 0.9492206573486328, -0.3937118947505951, -0.062072765082120895, -0.7816200256347656, 0.6066728830337524, -0.12620417773723602, 0.4399275779724121, 0.5008246898651123, -0.3165251612663269, 0.6204161047935486, 0.4797276556491852, -0.37447765469551086, -0.9203575849533081, -0.14330586791038513, -1.0868014097213745, -0.09360112249851227, 1.0806894302368164, -0.4475649893283844, -0.5582530498504639, 0.5039343237876892, 0.09430846571922302, 0.7727438807487488, -0.17137391865253448, 0.35659247636795044, 0.15836508572101593, -0.12832790613174438, -0.6121727824211121, -0.6257336139678955, 0.45026135444641113, 0.09877250343561172, -0.6384637355804443, -0.4873690605163574, -0.07399415969848633, 0.7715029716491699, 0.11191949248313904, 0.4274888038635254, -0.04473986476659775, 0.13345566391944885, 0.19390955567359924, 0.4907431900501251, -0.6559388041496277, -0.1283491551876068, -0.29099833965301514, 0.05990340933203697, -0.09402768313884735, -0.6431645750999451 ]
ozcangundes/mt5-multitask-qa-qg-turkish
ozcangundes
"2021-06-23T15:24:09Z"
19,449
4
transformers
[ "transformers", "pytorch", "jax", "mt5", "text2text-generation", "question-answering", "question-generation", "multitask-model", "tr", "dataset:TQUAD", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "text-generation-inference", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- language: tr datasets: - TQUAD tags: - question-answering - question-generation - multitask-model license: apache-2.0 --- # mT5-small based Turkish Multitask (Answer Extraction, Question Generation and Question Answering) System [Google's Multilingual T5-small](https://github.com/google-research/multilingual-t5) is fine-tuned on [Turkish Question Answering dataset](https://github.com/okanvk/Turkish-Reading-Comprehension-Question-Answering-Dataset) for three downstream task **Answer extraction, Question Generation and Question Answering** served in this single model. mT5 model was also trained for multiple text2text NLP tasks. All data processing, training and pipeline codes can be found on my [Github](https://github.com/ozcangundes/multitask-question-generation). I will share the training details in the repo as soon as possible. mT5 small model has 300 million parameters and model size is about 1.2GB. Therefore, it takes significant amount of time to fine tune it. 8 epoch and 1e-4 learning rate with 0 warmup steps was applied during training. These hparams and the others can be fine-tuned for much more better results. ## Requirements ❗❗❗ ``` !pip install transformers==4.4.2 !pip install sentencepiece==0.1.95 !git clone https://github.com/ozcangundes/multitask-question-generation.git %cd multitask-question-generation/ ``` ## Usage 🚀🚀 ``` from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ozcangundes/mt5-multitask-qa-qg-turkish") model = AutoModelForSeq2SeqLM.from_pretrained("ozcangundes/mt5-multitask-qa-qg-turkish") from pipelines import pipeline #pipelines.py script in the cloned repo multimodel = pipeline("multitask-qa-qg",tokenizer=tokenizer,model=model) #sample text text="Özcan Gündeş, 1993 yılı Tarsus doğumludur. Orta Doğu Teknik Üniversitesi \\\\ Endüstri Mühendisliği bölümünde 2011 2016 yılları arasında lisans eğitimi görmüştür. \\\\ Yüksek lisansını ise 2020 Aralık ayında, 4.00 genel not ortalaması ile \\\\ Boğaziçi Üniversitesi, Yönetim Bilişim Sistemleri bölümünde tamamlamıştır.\\\\ Futbolla yakından ilgilenmekle birlikte, Galatasaray kulübü taraftarıdır." ``` ## Example - Both Question Generation and Question Answering 💬💬 ``` multimodel(text) #output => [{'answer': 'Tarsus', 'question': 'Özcan Gündeş nerede doğmuştur?'}, {'answer': '1993', 'question': 'Özcan Gündeş kaç yılında doğmuştur?'}, {'answer': '2011 2016', 'question': 'Özcan Gündeş lisans eğitimini hangi yıllar arasında tamamlamıştır?'}, {'answer': 'Boğaziçi Üniversitesi, Yönetim Bilişim Sistemleri', 'question': 'Özcan Gündeş yüksek lisansını hangi bölümde tamamlamıştır?'}, {'answer': 'Galatasaray kulübü', 'question': 'Özcan Gündeş futbolla yakından ilgilenmekle birlikte hangi kulübü taraftarıdır?'}] ``` From this text, 5 questions are generated and they are answered by the model. ## Example - Question Answering 💭💭 Both text and also, related question should be passed into pipeline. ``` multimodel({"context":text,"question":"Özcan hangi takımı tutmaktadır?"}) #output => Galatasaray multimodel({"context":text,"question":"Özcan, yüksek lisanstan ne zaman mezun oldu?"}) #output => 2020 Aralık ayında multimodel({"context":text,"question":"Özcan'ın yüksek lisans bitirme notu kaçtır?"}) #output => 4.00 #Sorry for being cocky 😝😝 ``` ## ACKNOWLEDGEMENT This work is inspired from [Suraj Patil's great repo](https://github.com/patil-suraj/question_generation). I would like to thank him for the clean codes and also,[Okan Çiftçi](https://github.com/okanvk) for the Turkish dataset 🙏
[ -0.30755940079689026, -0.8343287706375122, 0.4544510841369629, -0.08490174263715744, -0.29863935708999634, -0.31971728801727295, 0.04059317335486412, -0.037209123373031616, 0.018649069592356682, 0.5903555750846863, -0.9218717813491821, -0.5290572643280029, -0.6656078100204468, 0.29649287462234497, -0.20824171602725983, 1.165863037109375, -0.16415007412433624, -0.04717695713043213, -0.19413644075393677, -0.3256048262119293, -0.3879455029964447, -0.48754075169563293, -0.6241757869720459, -0.06867963820695877, 0.5537847280502319, 0.458767294883728, 0.041348475962877274, 0.4430006146430969, 0.4169427156448364, 0.36202386021614075, 0.06422560662031174, 0.6281456351280212, -0.1511348932981491, 0.42106038331985474, 0.06854519993066788, -0.3877703547477722, -0.4174136817455292, -0.24186524748802185, 0.6739092469215393, 0.29877880215644836, 0.04184723645448685, 0.7221680879592896, 0.29619264602661133, 0.49111393094062805, -0.7221908569335938, 0.3249381184577942, -0.4976537227630615, -0.2080962061882019, -0.32151439785957336, -0.20471902191638947, -0.2577208876609802, -0.20017321407794952, -0.2280290722846985, -0.5798536539077759, 0.20362509787082672, 0.01379480306059122, 1.1509331464767456, 0.37541306018829346, -0.7933737635612488, -0.47915342450141907, -0.3535824716091156, 1.1589852571487427, -1.018705129623413, 0.17871031165122986, 0.3447645604610443, 0.20578795671463013, -0.17891409993171692, -0.9526002407073975, -0.8573681116104126, 0.1626158356666565, -0.28390994668006897, 0.25303053855895996, 0.1312364935874939, -0.07176287472248077, 0.29036977887153625, 0.21696387231349945, -0.7026345133781433, -0.3432660698890686, -0.6545872092247009, -0.14677530527114868, 0.5072128772735596, 0.4976235032081604, 0.10424385964870453, -0.6287427544593811, -0.16607403755187988, -0.15133240818977356, -0.3323988616466522, 0.5817290544509888, 0.4175921380519867, 0.36099353432655334, -0.1333639919757843, 0.8448511958122253, -0.5573775768280029, 0.8081861138343811, 0.06414327025413513, -0.3699110150337219, 0.5310326218605042, -0.8424689769744873, -0.35829171538352966, -0.49480563402175903, 1.2084949016571045, 0.1924559772014618, 0.054639432579278946, 0.2023458629846573, 0.18587557971477509, 0.11669232696294785, 0.0723624899983406, -0.9440488219261169, -0.10750029981136322, 0.6916231513023376, -0.5508087873458862, -0.2911739647388458, 0.037216391414403915, -0.8271052241325378, -0.08182209730148315, 0.0013482279609888792, 0.410925030708313, -0.29311010241508484, -0.2278263121843338, 0.08194716274738312, -0.0975039079785347, -0.02343405969440937, 0.05606209859251976, -1.064204216003418, -0.03512919694185257, 0.4912775158882141, 0.7887494564056396, 0.2770076394081116, -0.5866183638572693, -0.7480447888374329, 0.09464568644762039, -0.10613805055618286, 0.7322011590003967, -0.32872235774993896, 0.12875163555145264, -0.1830565482378006, 0.4472283124923706, -0.5129289627075195, -0.253425270318985, 0.5918108224868774, -0.3496851325035095, 0.9831581115722656, -0.27922308444976807, -0.4510599672794342, -0.4615078568458557, 0.43769776821136475, -0.5436399579048157, 1.1837576627731323, 0.032936498522758484, -1.2540992498397827, 0.4224969446659088, -0.9565755128860474, -0.17799808084964752, -0.27449798583984375, 0.1409207582473755, -0.6099563241004944, -0.3155549466609955, 0.612797737121582, 0.7831924557685852, -0.27787140011787415, 0.1111176609992981, -0.4184093177318573, -0.19647689163684845, 0.11850263178348541, -0.19761502742767334, 1.1540402173995972, 0.4610801935195923, -0.22100290656089783, 0.29578539729118347, -0.7640092968940735, 0.28721854090690613, -0.13599295914173126, -0.6555169820785522, -0.07914368063211441, -0.07851070910692215, -0.06500429660081863, 0.6942312717437744, 0.18267576396465302, -0.5985380411148071, 0.2553423345088959, -0.5120915174484253, 0.6462652087211609, 0.4914739429950714, 0.2020118236541748, 0.1717545986175537, -0.6878508925437927, 0.6461818218231201, 0.35094568133354187, -0.03295207396149635, -0.40227892994880676, -0.6037181615829468, -1.0391300916671753, -0.3490050435066223, 0.44020190834999084, 0.8207058310508728, -1.028463363647461, 0.26656121015548706, -0.3186759948730469, -0.5013593435287476, -0.9077779650688171, 0.20784568786621094, 0.29990991950035095, 0.6292912364006042, 0.3701636493206024, -0.035981014370918274, -0.8598464131355286, -0.7479479312896729, -0.3340909779071808, -0.08196758478879929, -0.09510041773319244, 0.10755923390388489, 0.8999156355857849, -0.07994451373815536, 0.7719271183013916, -0.46718618273735046, -0.27948564291000366, -0.3001144826412201, 0.2472608983516693, 0.5878799557685852, 0.6033921241760254, 0.38279834389686584, -0.670394778251648, -0.6698737144470215, -0.13372378051280975, -0.7720826864242554, 0.2007681429386139, -0.03589099645614624, -0.18943053483963013, 0.40447375178337097, 0.1992684006690979, -0.8654168844223022, 0.1339809000492096, 0.6121312379837036, -0.5755954384803772, 0.7123920917510986, -0.16447073221206665, 0.5165472626686096, -1.795674443244934, 0.3037070035934448, -0.3264036774635315, -0.32771527767181396, -0.6597632765769958, 0.25875189900398254, -0.07188670337200165, 0.1846081167459488, -0.6477722525596619, 0.7506312727928162, -0.5425025224685669, 0.18923340737819672, -0.016419701278209686, -0.1703781634569168, 0.14701804518699646, 0.7758972644805908, -0.17156116664409637, 0.795543909072876, 0.4051380157470703, -0.7529453635215759, 0.6532910466194153, 0.4142262935638428, -0.49434182047843933, 0.377450168132782, -0.5520127415657043, 0.2122078835964203, -0.08463364839553833, 0.17727239429950714, -1.1997910737991333, -0.15827688574790955, 0.6226316690444946, -0.7180184125900269, -0.09427028894424438, -0.30800503492355347, -0.7732030749320984, -0.5802924036979675, -0.3346198499202728, 0.08969905227422714, 0.32912009954452515, -0.1559702605009079, 0.5857188701629639, 0.2700844407081604, -0.3838605582714081, -0.875517725944519, -0.8825833797454834, -0.28861773014068604, -0.4963710606098175, -0.9584364295005798, -0.07952628284692764, -0.14829954504966736, 0.1641472429037094, -0.04451928287744522, 0.24352312088012695, -0.33816856145858765, -0.02001005783677101, 0.030448032543063164, 0.25466078519821167, -0.22564738988876343, 0.20893320441246033, 0.2040560245513916, -0.056635722517967224, -0.11226236820220947, -0.301046758890152, 0.6772486567497253, -0.07246275991201401, -0.08408699929714203, -0.39403536915779114, 0.6154581308364868, 0.7765070796012878, -0.44492700695991516, 1.087662696838379, 0.9779521226882935, -0.2646303176879883, 0.2151537984609604, -0.4766804277896881, -0.27798083424568176, -0.41725125908851624, 0.5514955520629883, -0.7628623843193054, -0.9060508608818054, 0.6877237558364868, 0.27085474133491516, 0.5143200159072876, 0.8292733430862427, 0.9148121476173401, -0.2614336907863617, 1.2584673166275024, 0.2632901668548584, 0.31997472047805786, 0.27652084827423096, -0.5278162360191345, 0.05452779307961464, -0.9148713946342468, -0.2627987265586853, -0.5955013632774353, -0.10457593202590942, -0.782370388507843, -0.3546438217163086, 0.40685901045799255, 0.04927446320652962, -0.46231240034103394, 0.20568427443504333, -0.6173059344291687, -0.09750551730394363, 0.7586346864700317, -0.0967438817024231, 0.24634231626987457, 0.01447940245270729, -0.44324663281440735, -0.07943173497915268, -1.0776593685150146, -0.6389129757881165, 1.3875433206558228, 0.24578505754470825, 0.34537336230278015, 0.16562454402446747, 0.7260019779205322, -0.08022139966487885, -0.0054453108459711075, -0.5042018890380859, 0.4358341097831726, -0.2829814851284027, -0.9702301025390625, -0.38541436195373535, -0.6266389489173889, -1.1780391931533813, 0.6548077464103699, -0.3142092525959015, -0.8525688052177429, -0.0501381978392601, 0.13287630677223206, -0.6705588698387146, 0.3254346251487732, -0.9114859700202942, 1.257851243019104, 0.28985175490379333, -0.46232670545578003, 0.0535893440246582, -0.669187068939209, 0.6546922922134399, 0.12334974855184555, 0.4091089069843292, 0.0006822292925789952, 0.06184299290180206, 1.0192139148712158, -0.5054388642311096, 0.7392672300338745, -0.06517365574836731, 0.16825269162654877, 0.40755146741867065, -0.17321161925792694, 0.5368931293487549, 0.04231129214167595, -0.026287857443094254, -0.21941405534744263, 0.6440143585205078, -0.4988274872303009, -0.5094347596168518, 0.6375318169593811, -0.6414898037910461, -0.32901233434677124, -0.6419247984886169, -0.7895419597625732, -0.11186132580041885, 0.3466033935546875, 0.44091320037841797, 0.4854107201099396, 0.39341944456100464, 0.23062188923358917, 0.3282047510147095, -0.08298316597938538, 0.6447906494140625, 0.3992041051387787, -0.054570965468883514, -0.5130478739738464, 0.7523715496063232, 0.2260042130947113, 0.040208589285612106, 0.30677875876426697, 0.12419433146715164, -0.6423384547233582, -0.30327245593070984, -0.6905997395515442, 0.3117559850215912, -0.6806746125221252, -0.2642081379890442, -1.1937477588653564, -0.22066374123096466, -0.796015202999115, 0.4424173831939697, -0.24316149950027466, -0.5724865794181824, -0.4148646891117096, -0.012201345525681973, 0.42493733763694763, 0.48710325360298157, 0.19922968745231628, 0.15858136117458344, -1.0404540300369263, 0.4062887132167816, 0.46467846632003784, 0.03220752626657486, -0.10641179233789444, -0.6502876877784729, -0.3696063458919525, 0.25288358330726624, -0.6342592835426331, -0.8706982135772705, 0.5463753938674927, 0.004539760760962963, 0.3391589820384979, 0.18847909569740295, 0.11039257049560547, 0.778171181678772, -0.2284524142742157, 0.9579858183860779, 0.025936659425497055, -0.8534788489341736, 0.3782276511192322, -0.5168197154998779, 0.7589717507362366, 0.5445778369903564, 0.12668277323246002, -0.8705819249153137, -0.5600483417510986, -0.7054924964904785, -0.9134964942932129, 0.9728990197181702, 0.29735827445983887, 0.0999721810221672, 0.24701210856437683, 0.02201509289443493, 0.22356103360652924, 0.5861656069755554, -0.9032411575317383, -0.32906627655029297, -0.34389057755470276, -0.47589680552482605, 0.07996128499507904, -0.35754844546318054, -0.09057892858982086, -0.3734756112098694, 0.926418125629425, -0.21456795930862427, 0.4978004992008209, 0.09873147308826447, -0.03252800926566124, 0.18954522907733917, 0.6019293665885925, 0.8810548186302185, 0.6764292120933533, -0.25858554244041443, 0.11167649924755096, 0.3652409017086029, -0.3762691915035248, 0.10240302979946136, 0.2453393042087555, -0.2755076587200165, -0.020955145359039307, 0.5456351041793823, 1.018243432044983, -0.2749484181404114, -0.3880724608898163, 0.3149905800819397, -0.029734766110777855, -0.4523470997810364, -0.33089113235473633, -0.0005146465264260769, 0.3157089650630951, 0.18667809665203094, 0.2990517020225525, 0.040239427238702774, 0.035726550966501236, -0.5552780032157898, 0.10879400372505188, 0.19730447232723236, -0.21832042932510376, -0.17339923977851868, 0.7706903219223022, -0.015383887104690075, 0.007196961436420679, 0.6445702910423279, -0.3852165639400482, -0.6484354138374329, 0.5420043468475342, 0.2154412418603897, 0.646289050579071, -0.1015603244304657, 0.24455097317695618, 0.7406749129295349, 0.25648850202560425, 0.030749918892979622, 0.7197871804237366, 0.1232186108827591, -0.7385309934616089, -0.5928458571434021, -0.6103535890579224, 0.033487141132354736, 0.38626861572265625, -0.3739997446537018, 0.35391536355018616, -0.14911867678165436, -0.2087070494890213, -0.09406636655330658, 0.4875004291534424, -0.7290868759155273, 0.390252947807312, -0.2611970007419586, 0.4876738488674164, -0.7804917693138123, 0.8839818239212036, 1.0341308116912842, -0.5600989460945129, -0.976155161857605, -0.339042067527771, -0.14259076118469238, -0.49814149737358093, 0.6074692606925964, 0.20411290228366852, 0.17448242008686066, 0.0741032212972641, -0.2942703068256378, -0.9486626982688904, 1.2725965976715088, 0.24082405865192413, -0.27896180748939514, -0.18397550284862518, 0.19838018715381622, 0.42197734117507935, -0.5548527836799622, 0.7539610862731934, 0.39643949270248413, 0.6583887338638306, 0.04824608564376831, -0.9941563010215759, 0.1575092077255249, -0.4962729215621948, -0.3058651387691498, 0.09410008788108826, -0.8206931948661804, 1.3394999504089355, -0.29888972640037537, -0.21261782944202423, 0.21971236169338226, 0.48809295892715454, 0.5618008971214294, 0.2886596918106079, 0.4831966161727905, 0.6079368591308594, 0.6897281408309937, -0.10443179309368134, 1.0504331588745117, -0.260881245136261, 0.7311593294143677, 1.0366216897964478, 0.25074467062950134, 0.7530096769332886, 0.6731029152870178, -0.09157606959342957, 0.6812195777893066, 0.8500621318817139, -0.03230714425444603, 0.5726271867752075, -0.04768623039126396, 0.028207413852214813, -0.2745388150215149, 0.11332939565181732, -0.3092557489871979, 0.5801172852516174, 0.03946879506111145, -0.33505111932754517, -0.13144956529140472, 0.047517649829387665, 0.33930742740631104, -0.2761433720588684, 0.016105951741337776, 0.6115425825119019, -0.04071339964866638, -0.9400824308395386, 0.832145631313324, 0.2341570258140564, 0.8030062913894653, -0.7038916945457458, 0.046792276203632355, -0.024128863587975502, 0.2483237087726593, -0.20752103626728058, -0.5521640777587891, 0.3799648880958557, 0.01160301361232996, -0.4566482901573181, -0.22806207835674286, 0.529069185256958, -0.7375720143318176, -0.8330398797988892, -0.044488903135061264, 0.6277464032173157, 0.22262640297412872, -0.06327991932630539, -0.9937227964401245, -0.2909374535083771, 0.18870286643505096, -0.5270882844924927, 0.0008602887392044067, 0.36853423714637756, 0.1849612593650818, 0.7849280834197998, 0.7551327347755432, 0.07634435594081879, 0.32891425490379333, -0.2865636646747589, 0.7011719942092896, -0.5763338208198547, -0.6243330836296082, -0.8143162131309509, 1.1040605306625366, -0.032915350049734116, -0.718584418296814, 0.8839260339736938, 0.6655688881874084, 0.6740241646766663, -0.27928873896598816, 0.8546491861343384, -0.2695661783218384, 1.0039668083190918, -0.7130674719810486, 0.8847396373748779, -0.853965163230896, 0.019460121169686317, -0.21242722868919373, -0.7859004735946655, -0.026339277625083923, 0.4958947002887726, -0.2990967929363251, 0.1977565586566925, 1.1924877166748047, 0.8688265085220337, -0.11524724960327148, -0.29184773564338684, 0.1652306169271469, 0.21898771822452545, 0.18119479715824127, 0.8946251273155212, 0.6637867093086243, -0.9085165858268738, 0.8373036980628967, -0.3235456645488739, 0.043644338846206665, 0.06761608272790909, -0.6354487538337708, -1.1002955436706543, -1.0490649938583374, -0.17446348071098328, -0.34703242778778076, -0.1474151909351349, 0.8167354464530945, 0.947441816329956, -1.0380817651748657, -0.2654789388179779, 0.1146436482667923, 0.2676183581352234, -0.4627877175807953, -0.30911359190940857, 0.5553695559501648, -0.34934622049331665, -0.9395207166671753, -0.0013744579628109932, -0.26403501629829407, -0.0714605376124382, -0.08150390535593033, 0.002220162423327565, -0.6249984502792358, 0.01628859154880047, 0.494607150554657, -0.07157913595438004, -0.6851170659065247, -0.19344037771224976, 0.12878423929214478, -0.1698256880044937, 0.07279657572507858, 0.5760784149169922, -0.6303082704544067, 0.363984078168869, 0.8183313012123108, 0.30858442187309265, 0.6484543085098267, -0.03197724372148514, 0.4196525812149048, -0.6459706425666809, 0.17220637202262878, 0.08550898730754852, 0.3711388409137726, 0.4097258448600769, -0.39379334449768066, 0.38865846395492554, 0.26315468549728394, -0.581050455570221, -0.858308732509613, 0.10034053027629852, -0.7346686124801636, -0.2403445541858673, 1.1542367935180664, -0.25593510270118713, -0.20949240028858185, -0.3224233388900757, -0.26707911491394043, 0.5281878113746643, -0.5526390671730042, 0.8107864856719971, 1.157270073890686, -0.07832585275173187, -0.5332892537117004, -0.7521642446517944, 0.4372321367263794, 0.6716194748878479, -0.9343111515045166, -0.09842508286237717, 0.16662253439426422, 0.5636295676231384, 0.08807491511106491, 0.7958765029907227, 0.1485697478055954, 0.26467445492744446, -0.0684133842587471, 0.028263630345463753, -0.4231806993484497, -0.09535755217075348, -0.10133036971092224, 0.4370233118534088, -0.3275492191314697, -0.7176271677017212 ]
optimum/gpt2
optimum
"2023-01-03T10:29:58Z"
19,425
4
transformers
[ "transformers", "onnx", "gpt2", "text-generation", "exbert", "en", "license:mit", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2022-11-22T10:17:23Z"
--- language: en tags: - exbert license: mit --- # GPT-2 Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in [this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) and first released at [this page](https://openai.com/blog/better-language-models/). Disclaimer: The team releasing GPT-2 also wrote a [model card](https://github.com/openai/gpt-2/blob/master/model_card.md) for their model. Content from this model card has been written by the Hugging Face team to complete the information they provided and give specific examples of bias. ## Model description GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences. More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence, shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens. This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a prompt. ## Intended uses & limitations You can use the raw model for text generation or fine-tune it to a downstream task. See the [model hub](https://huggingface.co/models?filter=gpt2) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use the ONNX models of gpt2 to get the features of a given text: Example using transformers.pipelines: ```python from transformers import AutoTokenizer, pipeline from optimum.onnxruntime import ORTModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("gpt2") model = ORTModelForCausalLM.from_pretrained("gpt2", from_transformers=True) onnx_gen = pipeline("text-generation", model=model, tokenizer=tokenizer) text = "My name is Philipp and I live in Germany." gen = onnx_gen(text) ``` Example of text generation: ```python from transformers import AutoTokenizer from optimum.onnxruntime import ORTModelForCausalLM import torch tokenizer = AutoTokenizer.from_pretrained("optimum/gpt2") model = ORTModelForCausalLM.from_pretrained("optimum/gpt2") inputs = tokenizer("My name is Arthur and I live in", return_tensors="pt") gen_tokens = model.generate(**inputs,do_sample=True,temperature=0.9, min_length=20,max_length=20) tokenizer.batch_decode(gen_tokens) ```
[ -0.3305908441543579, -0.7766464352607727, 0.4963264465332031, 0.17246559262275696, -0.3219406008720398, -0.23820273578166962, -0.28391584753990173, -0.3831607401371002, -0.16875220835208893, 0.42212581634521484, -0.6136457920074463, -0.15897920727729797, -0.6675682663917542, 0.12210380285978317, -0.23599743843078613, 1.2979625463485718, -0.3287682831287384, -0.10685325413942337, -0.05136903002858162, 0.09766807407140732, -0.321079283952713, -0.5553092956542969, -0.7753430604934692, -0.4623097777366638, 0.21767796576023102, 0.19790425896644592, 0.42459917068481445, 0.6017807722091675, 0.19239337742328644, 0.3146285116672516, -0.06444650143384933, -0.04241049662232399, -0.3562145531177521, 0.05966833606362343, -0.1535603404045105, -0.28759273886680603, -0.27751263976097107, 0.2854597568511963, 0.5698890686035156, 0.24333970248699188, 0.20680119097232819, 0.18855051696300507, 0.33917415142059326, 0.03976057469844818, -0.2961356043815613, 0.29132649302482605, -0.646155595779419, -0.06180465966463089, -0.12666462361812592, 0.017409203574061394, -0.3049409091472626, -0.13617338240146637, 0.1990017145872116, -0.5134096741676331, 0.4831448197364807, -0.1033351868391037, 1.3183090686798096, 0.25053247809410095, -0.5139132738113403, -0.25223731994628906, -0.7050220370292664, 0.8534907698631287, -0.6465111374855042, 0.36156153678894043, 0.41409391164779663, 0.07768694311380386, 0.05031806230545044, -1.0994300842285156, -0.7206335067749023, -0.2626655697822571, -0.3071187436580658, 0.3219466209411621, -0.08665845543146133, 0.08048789203166962, 0.3273688852787018, 0.32642558217048645, -0.8117810487747192, 0.0674130991101265, -0.28210699558258057, -0.42560356855392456, 0.5114474296569824, -0.07868316769599915, 0.31710872054100037, -0.34562399983406067, -0.5633379817008972, -0.273680716753006, -0.5770697593688965, -0.028632858768105507, 0.2598904073238373, 0.2527570128440857, -0.21802441775798798, 0.588660478591919, -0.0646902546286583, 0.4450800120830536, 0.07565496116876602, -0.05327139422297478, 0.3168748915195465, -0.7271103858947754, -0.08764619380235672, -0.16822686791419983, 0.9748673439025879, 0.1040927916765213, 0.367596298456192, -0.1809249371290207, -0.3829876780509949, 0.07216603308916092, -0.08132129907608032, -1.0645723342895508, -0.26107820868492126, 0.14446642994880676, -0.3826437294483185, -0.29490208625793457, 0.0763416662812233, -0.6553391814231873, 0.05903194844722748, -0.305101603269577, 0.5324556231498718, -0.33461564779281616, -0.4798138439655304, -0.17721618711948395, -0.3058900833129883, 0.35555052757263184, -0.15186157822608948, -1.0055640935897827, -0.05123080685734749, 0.5579649209976196, 0.7973642349243164, -0.047030381858348846, -0.4991597533226013, -0.2372208535671234, -0.10646703094244003, 0.041002269834280014, 0.7380572557449341, -0.2761186361312866, -0.16220727562904358, -0.002420203061774373, 0.1272306740283966, -0.17403608560562134, -0.41271665692329407, 0.47522419691085815, -0.18312303721904755, 0.7133358120918274, -0.16619467735290527, -0.39656543731689453, 0.004406575113534927, 0.10128333419561386, -0.38502681255340576, 1.3582853078842163, 0.41515666246414185, -0.8891893029212952, 0.4915970265865326, -0.734879732131958, -0.4167732894420624, -0.10790812969207764, 0.0063612377271056175, -0.6287776231765747, -0.002008929615840316, 0.22947220504283905, 0.4435115456581116, -0.3536701798439026, 0.41082701086997986, -0.04774777963757515, -0.059402745217084885, 0.10943090170621872, -0.4761895537376404, 0.8245649337768555, 0.30500221252441406, -0.8319593667984009, 0.17519596219062805, -0.6186547875404358, 0.13885001838207245, 0.35872945189476013, -0.3266473710536957, -0.042062774300575256, -0.17249144613742828, 0.4219714403152466, 0.45897144079208374, 0.2582417130470276, -0.5529134273529053, 0.051321666687726974, -0.47130346298217773, 0.757569432258606, 0.548755943775177, -0.04117348790168762, 0.3472399115562439, -0.20544810593128204, 0.4514957368373871, 0.026803912594914436, 0.15596432983875275, -0.22794793546199799, -0.6126136183738708, -0.9101890325546265, -0.1530403345823288, 0.4135563373565674, 0.7337856888771057, -0.8750434517860413, 0.5521045327186584, -0.07295702397823334, -0.43734464049339294, -0.4196963310241699, 0.06046728417277336, 0.6263608336448669, 0.37067726254463196, 0.32941287755966187, -0.24280980229377747, -0.6150910258293152, -0.766590416431427, -0.2777963876724243, -0.23975001275539398, -0.2159923017024994, 0.03414561599493027, 0.5344427227973938, -0.35908016562461853, 1.0608224868774414, -0.4280821979045868, -0.09996727854013443, -0.5489522218704224, 0.3015124499797821, 0.006849633064121008, 0.4970875680446625, 0.5165154337882996, -0.731840193271637, -0.44594284892082214, -0.1924276202917099, -0.724043071269989, -0.2550975978374481, -0.1806977540254593, -0.1164652556180954, 0.31542012095451355, 0.4074104428291321, -0.8232980966567993, 0.306165486574173, 0.4465085566043854, -0.6244097948074341, 0.5461375117301941, -0.22823300957679749, -0.21760430932044983, -1.3679195642471313, 0.24942360818386078, 0.07300999760627747, -0.3353208303451538, -0.7290418744087219, 0.14661404490470886, -0.054901812225580215, -0.115324005484581, -0.44943591952323914, 0.8303524255752563, -0.5882160067558289, 0.07355847954750061, -0.3565587103366852, 0.2339801788330078, 0.013957343064248562, 0.3981366455554962, 0.07713907957077026, 0.9006792306900024, 0.43135178089141846, -0.6172875165939331, 0.24974368512630463, 0.27259764075279236, -0.24346354603767395, 0.21717974543571472, -0.7726519107818604, 0.26662349700927734, -0.1561470776796341, 0.138237863779068, -1.0853480100631714, -0.250956654548645, 0.1975276917219162, -0.5484682321548462, 0.4628080427646637, 0.16757318377494812, -0.6268225312232971, -0.5787512063980103, -0.10031533986330032, 0.3179343640804291, 0.8023224472999573, -0.5642409324645996, 0.5472093224525452, 0.39298707246780396, -0.2865007221698761, -0.3420177102088928, -0.7440277934074402, -0.09216415137052536, -0.17120085656642914, -0.5565453171730042, 0.34333980083465576, 0.04494216665625572, 0.038829658180475235, -0.13341024518013, 0.2466108798980713, -0.131277933716774, 0.04723110795021057, 0.10367421060800552, 0.25943419337272644, -0.17278189957141876, 0.036247432231903076, 0.08900868147611618, -0.34420129656791687, 0.05213550850749016, -0.518602192401886, 0.7710052132606506, 0.07803808152675629, 0.05314256250858307, -0.3295566737651825, 0.17126427590847015, 0.2398909628391266, -0.2731541693210602, 0.5507916808128357, 1.1168216466903687, -0.39551931619644165, -0.18078066408634186, -0.5690547227859497, -0.555649995803833, -0.4550618827342987, 0.7483090758323669, -0.48392945528030396, -0.9670794010162354, 0.4340132176876068, 0.026373710483312607, 0.14814411103725433, 0.8536845445632935, 0.704727292060852, 0.2304813712835312, 1.1423033475875854, 0.7090163230895996, 0.018510309979319572, 0.3450720012187958, -0.28210341930389404, 0.32683712244033813, -0.7558656334877014, -0.17817465960979462, -0.421922892332077, -0.03594394028186798, -0.660589337348938, -0.19072625041007996, 0.19096383452415466, 0.3581412136554718, -0.40999677777290344, 0.5269805788993835, -0.7362958788871765, 0.3248181641101837, 0.7642913460731506, -0.05936231091618538, 0.04095910117030144, 0.09958336502313614, -0.3443608283996582, -0.07112767547369003, -0.6822251081466675, -0.5154271721839905, 1.115893840789795, 0.4495546817779541, 0.22839586436748505, -0.16125261783599854, 0.4329985976219177, -0.13569247722625732, 0.41628411412239075, -0.5573608875274658, 0.4472028613090515, -0.19193102419376373, -0.7683208584785461, -0.25739189982414246, -0.4385392665863037, -0.9494563341140747, 0.11000240594148636, -0.15200269222259521, -0.7699777483940125, -0.22408819198608398, 0.2694895565509796, -0.24158437550067902, 0.2813555598258972, -0.7206697463989258, 0.9848393797874451, -0.17428487539291382, -0.28770914673805237, 0.18039996922016144, -0.6449827551841736, 0.39873751997947693, -0.16647455096244812, -0.057491596788167953, 0.14446857571601868, 0.168070986866951, 0.7518274188041687, -0.45262372493743896, 0.8431934118270874, -0.24349187314510345, -0.019736558198928833, 0.49118611216545105, -0.2729121744632721, 0.5112984776496887, -0.07396400719881058, 0.053509436547756195, 0.1626472771167755, -0.15013903379440308, -0.22094669938087463, -0.2668724060058594, 0.5631898641586304, -1.010322093963623, -0.4542343020439148, -0.4353758692741394, -0.362120121717453, -0.02735127881169319, 0.3285594880580902, 0.8556804060935974, 0.44474348425865173, -0.12463584542274475, -0.1925605982542038, 0.40735945105552673, -0.27408695220947266, 0.6121460199356079, 0.25553980469703674, -0.33529379963874817, -0.38613948225975037, 0.8671576380729675, 0.06683460623025894, 0.33817341923713684, 0.2821651101112366, 0.3495199382305145, -0.7169180512428284, -0.3143332302570343, -0.632834792137146, 0.3439443111419678, -0.5430553555488586, -0.12854109704494476, -0.8541289567947388, -0.4689781665802002, -0.7489893436431885, 0.15497088432312012, -0.27151358127593994, -0.3489969074726105, -0.2971325218677521, -0.20760774612426758, 0.31959569454193115, 0.8547198176383972, -0.15380021929740906, 0.46873408555984497, -0.5866232514381409, 0.24604922533035278, 0.41640880703926086, 0.16594569385051727, -0.22789694368839264, -0.7554891109466553, 0.007963955402374268, 0.09123232960700989, -0.5811209678649902, -0.7331954836845398, 0.3352970480918884, 0.17664465308189392, 0.42955482006073, 0.3754599690437317, -0.14425821602344513, 0.30685722827911377, -0.45409679412841797, 0.9761584401130676, 0.11109358072280884, -1.006951928138733, 0.5061696171760559, -0.27613988518714905, 0.39826521277427673, 0.4140889346599579, 0.2979206442832947, -0.4995426535606384, -0.38117241859436035, -0.6798098683357239, -0.9747320413589478, 0.7234599590301514, 0.41351860761642456, 0.24183033406734467, -0.041952744126319885, 0.5054011940956116, 0.07527171820402145, 0.14796236157417297, -0.9738249778747559, -0.34458860754966736, -0.4729468524456024, -0.30366477370262146, -0.21270281076431274, -0.42298591136932373, 0.1940547078847885, -0.30659154057502747, 0.8406572937965393, 0.013562059961259365, 0.6032140851020813, 0.3105771243572235, -0.010869838297367096, 0.11840008944272995, 0.16757948696613312, 0.7128620743751526, 0.5200629234313965, 0.034669551998376846, 0.05414973571896553, 0.2536640465259552, -0.719551146030426, 0.06918884813785553, 0.33378154039382935, -0.500550389289856, 0.19647112488746643, 0.2916746437549591, 1.2254443168640137, -0.048185449093580246, -0.309488445520401, 0.6394171714782715, 0.024303095415234566, -0.3655930161476135, -0.4343327581882477, -0.07913535833358765, 0.017027193680405617, 0.09513074904680252, 0.1679496467113495, -0.09761226922273636, -0.0653008371591568, -0.5450506806373596, 0.42588332295417786, 0.3468521237373352, -0.43849194049835205, -0.4541451036930084, 1.0705004930496216, 0.20771272480487823, -0.25481942296028137, 0.7741092443466187, -0.5661916732788086, -0.923430323600769, 0.6325907707214355, 0.9181560277938843, 0.9876042604446411, -0.2700364589691162, 0.3288351893424988, 0.6275439262390137, 0.38924092054367065, -0.1704443395137787, 0.26179566979408264, 0.15041102468967438, -0.753332793712616, -0.5243294835090637, -0.6610637903213501, -0.0092020183801651, 0.4016536772251129, -0.3786584436893463, 0.32600703835487366, -0.36321598291397095, -0.33041220903396606, -0.24239222705364227, -0.03214000165462494, -0.9002891778945923, 0.3960544466972351, 0.035923704504966736, 0.6578987836837769, -0.9063979387283325, 0.8409184217453003, 0.6771788597106934, -0.45124322175979614, -1.1049593687057495, 0.11071131378412247, -0.04617662727832794, -0.9137667417526245, 0.6548798084259033, 0.38617146015167236, 0.34349673986434937, 0.3569757044315338, -0.4135858118534088, -0.8663864135742188, 1.1039643287658691, 0.23219828307628632, -0.42301592230796814, -0.17001837491989136, 0.46467527747154236, 0.4151958227157593, -0.24066191911697388, 0.7864513397216797, 0.6892187595367432, 0.6663299798965454, -0.015362572856247425, -1.0252524614334106, 0.258674681186676, -0.22224445641040802, 0.14316974580287933, 0.21620489656925201, -0.680042564868927, 1.0973535776138306, -0.1923385113477707, -0.3352140486240387, 0.17766183614730835, 0.559786319732666, 0.1869751363992691, 0.11212367564439774, 0.5099761486053467, 0.6453035473823547, 0.6151817440986633, -0.4165264368057251, 1.2348101139068604, -0.3513655662536621, 0.6529247164726257, 0.9055182337760925, -0.06544328480958939, 0.6958136558532715, 0.27920129895210266, -0.09309054911136627, 0.29511600732803345, 0.6648264527320862, -0.11713360995054245, 0.6276840567588806, 0.24330638349056244, -0.19709421694278717, -0.06264079362154007, -0.07035668194293976, -0.38301563262939453, 0.5205571055412292, -0.028039267286658287, -0.5041694641113281, -0.20487231016159058, 0.18078525364398956, 0.462946355342865, -0.22275695204734802, -0.15323592722415924, 0.7948194742202759, 0.0820734053850174, -0.8601750135421753, 0.4978356659412384, 0.30055510997772217, 0.9270246028900146, -0.6495432257652283, 0.18608608841896057, -0.20545576512813568, 0.3104342818260193, 0.026261309161782265, -0.609273374080658, 0.26121702790260315, 0.03141951560974121, -0.17855671048164368, -0.3207174837589264, 0.8900627493858337, -0.7075651288032532, -0.6262608170509338, 0.24041356146335602, 0.42864513397216797, 0.3301537334918976, -0.2997293174266815, -0.7253764867782593, -0.1659267246723175, 0.1329503357410431, -0.4983156621456146, 0.2353830486536026, 0.3230452537536621, 0.0952071100473404, 0.2830163240432739, 0.5594398975372314, 0.10563158988952637, 0.08586283028125763, 0.05131494253873825, 0.6877303719520569, -0.4826079308986664, -0.4216700792312622, -0.8757736682891846, 0.6723161339759827, -0.1594107747077942, -0.7483664155006409, 0.703327476978302, 0.6381553411483765, 1.0182874202728271, -0.13766688108444214, 1.0199114084243774, -0.11850704252719879, 0.4850832223892212, -0.5786102414131165, 0.8923097848892212, -0.43831896781921387, -0.2850106656551361, -0.08217085897922516, -1.2134201526641846, -0.06792090088129044, 0.6325960159301758, -0.17887787520885468, 0.34110724925994873, 0.968812882900238, 0.7787206172943115, -0.08139906823635101, -0.05395461618900299, 0.1224382072687149, 0.3246755301952362, 0.26774027943611145, 0.5739137530326843, 0.5272546410560608, -0.7010636329650879, 0.5283769369125366, -0.3281412124633789, -0.29238319396972656, 0.17447908222675323, -0.7530621886253357, -1.0978825092315674, -0.7002484798431396, -0.27492889761924744, -0.5743100643157959, -0.045316848903894424, 0.8866495490074158, 0.6295738220214844, -0.8514829277992249, 0.05906529724597931, -0.29925537109375, -0.27805396914482117, 0.022960439324378967, -0.2861816883087158, 0.4512174129486084, -0.47115784883499146, -0.8361152410507202, 0.09743599593639374, -0.07754138112068176, 0.22600311040878296, -0.35998937487602234, -0.02893589623272419, 0.009140001609921455, -0.06779157370328903, 0.5815085172653198, 0.20028993487358093, -0.5690313577651978, -0.4768490791320801, -0.0728386789560318, -0.22938145697116852, -0.09343796968460083, 0.8040342926979065, -0.6040942668914795, 0.18097704648971558, 0.5133268237113953, 0.5284711718559265, 0.5826601982116699, -0.08298205584287643, 0.5864978432655334, -0.7079949378967285, 0.291664719581604, 0.022210437804460526, 0.3149346709251404, 0.37765607237815857, -0.36647966504096985, 0.44474032521247864, 0.46647512912750244, -0.6923683285713196, -0.6208614706993103, 0.22738495469093323, -0.6805433630943298, -0.18668781220912933, 1.4597220420837402, -0.16738131642341614, -0.09914235770702362, -0.19218941032886505, -0.21014313399791718, 0.6237310767173767, -0.16217735409736633, 0.6352816820144653, 0.6336035132408142, 0.2574584484100342, -0.161366805434227, -0.6227257251739502, 0.7426916360855103, 0.47324299812316895, -0.8464979529380798, -0.09072211384773254, 0.013579501770436764, 0.4873111844062805, 0.08989955484867096, 0.6744933128356934, -0.050088368356227875, -0.0833706259727478, 0.01790900155901909, 0.2674194574356079, -0.11839122325181961, -0.20134149491786957, -0.14689287543296814, -0.002064497908577323, -0.10148245841264725, -0.14125004410743713 ]
naver-clova-ix/donut-base-finetuned-docvqa
naver-clova-ix
"2022-09-21T12:50:31Z"
19,414
76
transformers
[ "transformers", "pytorch", "vision-encoder-decoder", "donut", "image-to-text", "vision", "document-question-answering", "arxiv:2111.15664", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
document-question-answering
"2022-07-19T13:58:22Z"
--- license: mit pipeline_tag: document-question-answering tags: - donut - image-to-text - vision widget: - text: "What is the invoice number?" src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png" - text: "What is the purchase amount?" src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/contract.jpeg" --- # Donut (base-sized model, fine-tuned on DocVQA) Donut model fine-tuned on DocVQA. It was introduced in the paper [OCR-free Document Understanding Transformer](https://arxiv.org/abs/2111.15664) by Geewok et al. and first released in [this repository](https://github.com/clovaai/donut). Disclaimer: The team releasing Donut did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description Donut consists of a vision encoder (Swin Transformer) and a text decoder (BART). Given an image, the encoder first encodes the image into a tensor of embeddings (of shape batch_size, seq_len, hidden_size), after which the decoder autoregressively generates text, conditioned on the encoding of the encoder. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/donut_architecture.jpg) ## Intended uses & limitations This model is fine-tuned on DocVQA, a document visual question answering dataset. We refer to the [documentation](https://huggingface.co/docs/transformers/main/en/model_doc/donut) which includes code examples. ### BibTeX entry and citation info ```bibtex @article{DBLP:journals/corr/abs-2111-15664, author = {Geewook Kim and Teakgyu Hong and Moonbin Yim and Jinyoung Park and Jinyeong Yim and Wonseok Hwang and Sangdoo Yun and Dongyoon Han and Seunghyun Park}, title = {Donut: Document Understanding Transformer without {OCR}}, journal = {CoRR}, volume = {abs/2111.15664}, year = {2021}, url = {https://arxiv.org/abs/2111.15664}, eprinttype = {arXiv}, eprint = {2111.15664}, timestamp = {Thu, 02 Dec 2021 10:50:44 +0100}, biburl = {https://dblp.org/rec/journals/corr/abs-2111-15664.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.3245876729488373, -0.7317735552787781, 0.3417460322380066, -0.3214842975139618, 0.004619232378900051, -0.130452498793602, -0.0013038216857239604, -0.32636135816574097, 0.11192590743303299, 0.6291229724884033, -0.5635343790054321, -0.23326511681079865, -0.6502552628517151, 0.002053971169516444, -0.4095248281955719, 1.0204484462738037, -0.23755145072937012, 0.1060555949807167, -0.32447749376296997, -0.029465628787875175, -0.12118400633335114, -0.41483744978904724, -0.36783480644226074, -0.31907227635383606, 0.14514999091625214, 0.3892017900943756, 0.8220763802528381, 0.5682076215744019, 0.5260831117630005, 0.32341253757476807, -0.3054587244987488, -0.061478473246097565, -0.4890327453613281, -0.26358309388160706, 0.10973531752824783, -0.7747086882591248, -0.8665643334388733, 0.03892479091882706, 0.3119715452194214, 0.5444506406784058, 0.06560547649860382, 0.1485430747270584, -0.09830500930547714, 0.5156899094581604, -0.35766562819480896, 0.04239889234304428, -0.44555801153182983, -0.06929290294647217, -0.04368530213832855, 0.24267297983169556, -0.26069197058677673, -0.28244301676750183, 0.006651109084486961, -0.7420598864555359, 0.6717544198036194, 0.16578970849514008, 1.5536173582077026, 0.2752675712108612, -0.22586025297641754, -0.19460342824459076, -0.7628127932548523, 0.8024712800979614, -0.5027221441268921, 0.5955597758293152, 0.3245553970336914, 0.42371466755867004, 0.07869230210781097, -0.9598430395126343, -0.9271649122238159, -0.24166707694530487, -0.41913291811943054, 0.3062020540237427, -0.474028080701828, -0.2590629458427429, 0.5386356711387634, 0.6336284279823303, -0.57157963514328, -0.23696081340312958, -0.7034861445426941, -0.01956835389137268, 0.5096475481987, 0.029620226472616196, 0.4860021770000458, -0.6007887125015259, -0.49912431836128235, -0.2552521824836731, -0.3766994774341583, 0.1932719647884369, 0.23833562433719635, -0.17445018887519836, -0.5261960029602051, 0.6002944707870483, 0.0825643539428711, 0.39298900961875916, 0.37564322352409363, 0.062298908829689026, 0.5905101299285889, -0.4302138090133667, -0.36256539821624756, -0.0954940915107727, 1.035062313079834, 0.495504230260849, 0.39312058687210083, -0.16241012513637543, -0.24748340249061584, 0.04197605699300766, 0.7257987260818481, -0.7986632585525513, -0.31850072741508484, 0.0844513550400734, -0.3961726725101471, -0.3197920322418213, 0.1674710363149643, -0.6304502487182617, 0.06403516232967377, -0.25148871541023254, 0.2420434057712555, -0.5284826755523682, -0.5307575464248657, -0.0634353905916214, -0.06553132832050323, 0.49627962708473206, 0.48497894406318665, -0.773861825466156, 0.49116918444633484, 0.4981662333011627, 0.7065239548683167, -0.002813793485984206, 0.01044925395399332, -0.3420918881893158, -0.09563684463500977, -0.41499486565589905, 0.6818017363548279, -0.4461771249771118, -0.5112478137016296, -0.2215747833251953, 0.5070686340332031, -0.07833040505647659, -0.56043541431427, 1.0422604084014893, -0.45352235436439514, 0.16773949563503265, -0.4049871265888214, -0.30506813526153564, -0.24195615947246552, 0.38319844007492065, -0.8180016875267029, 1.2336804866790771, 0.4186704754829407, -0.9335218071937561, 0.3188682794570923, -0.6313939094543457, -0.08129755407571793, 0.10748336464166641, -0.1798069328069687, -0.42873114347457886, 0.21978484094142914, 0.5043196678161621, 0.21625497937202454, -0.2424193173646927, 0.012607456184923649, -0.1376374512910843, -0.14982153475284576, 0.25212228298187256, -0.05970771983265877, 0.8200132846832275, 0.10588346421718597, -0.11121735721826553, 0.14368152618408203, -0.6083651781082153, -0.2380080372095108, 0.7397134900093079, 0.1622629016637802, -0.26117026805877686, -0.4627889096736908, 0.35072818398475647, 0.14170975983142853, 0.2671019732952118, -0.7724005579948425, 0.3834993541240692, -0.4980527460575104, 0.5428977608680725, 0.3585348129272461, -0.2828170359134674, 0.7126222848892212, -0.48783281445503235, 0.5843725800514221, 0.15217040479183197, 0.3361338675022125, -0.2798882722854614, -0.5334966778755188, -0.8954614400863647, -0.15269726514816284, 0.4641702175140381, 0.7205647230148315, -0.5813035368919373, 0.3804965615272522, -0.5399829149246216, -0.7025331258773804, -0.7326756715774536, -0.14654187858104706, 0.22861742973327637, 0.845329225063324, 0.4606143832206726, -0.30258822441101074, -0.25918689370155334, -1.0181212425231934, 0.07609830796718597, -0.021387958899140358, -0.08241551369428635, 0.4642449915409088, 0.5547592043876648, -0.08646681159734726, 1.0035126209259033, -0.6137709021568298, -0.26085346937179565, -0.31490692496299744, -0.13842828571796417, 0.38194406032562256, 0.45860347151756287, 0.8635609149932861, -0.9078406691551208, -0.6805956959724426, -0.11315059661865234, -0.5728898048400879, -0.1201847493648529, 0.095038503408432, -0.24070943892002106, 0.2946336269378662, 0.472613662481308, -0.7885312438011169, 0.7887327075004578, 0.3272608816623688, -0.2158461958169937, 0.5279418230056763, -0.22018812596797943, 0.2721356451511383, -1.2084143161773682, 0.17934440076351166, -0.0025502778589725494, -0.34708040952682495, -0.6728782653808594, -0.08025023341178894, 0.3554108142852783, -0.012094825506210327, -0.4424521327018738, 0.835649847984314, -0.381174236536026, 0.2632392346858978, -0.13205301761627197, 0.3715274930000305, 0.29793843626976013, 0.4275279939174652, 0.009712288156151772, 0.5436793565750122, 0.5405740737915039, -0.3750770390033722, 0.3368085026741028, 0.6105207204818726, -0.085090272128582, 0.9686969518661499, -0.9670944213867188, 0.08928817510604858, -0.12353864312171936, 0.14769881963729858, -1.2529985904693604, -0.20109786093235016, 0.5809881091117859, -0.6777777671813965, 0.49647536873817444, -0.42740270495414734, -0.8118286728858948, -0.6272122263908386, -0.14408273994922638, 0.27309325337409973, 0.7664872407913208, -0.5266227126121521, 0.7884227633476257, 0.1886848509311676, 0.09780679643154144, -0.4921862483024597, -0.8974462747573853, -0.28532713651657104, -0.02034139074385166, -1.0218435525894165, 0.7228244543075562, -0.3665635287761688, 0.11078852415084839, 0.3273015320301056, -0.3445827066898346, -0.10493331402540207, -0.22989457845687866, 0.4319518208503723, 0.4239744246006012, -0.2351461946964264, -0.030640408396720886, 0.13357293605804443, -0.3886699378490448, -0.028683533892035484, 0.18240314722061157, 0.5360153317451477, -0.2134576141834259, -0.17619161307811737, -0.5280478000640869, 0.20211507380008698, 0.5183933973312378, -0.18339510262012482, 0.5587502121925354, 0.8936840891838074, -0.557594358921051, 0.10240157693624496, -0.5827875137329102, -0.1637522578239441, -0.5001353025436401, 0.03875109925866127, -0.5907636880874634, -0.5705228447914124, 0.7142290472984314, 0.04493393003940582, -0.04002264514565468, 0.8893358111381531, 0.5147204995155334, 0.005929820239543915, 0.6330034732818604, 0.6215704679489136, 0.29349377751350403, 0.46240130066871643, -0.472283273935318, 0.23372532427310944, -1.0893783569335938, -0.3530240058898926, -0.48300158977508545, -0.3442382514476776, -0.5056366920471191, -0.43412813544273376, 0.24462004005908966, 0.5372827053070068, -0.12853114306926727, 0.5887112617492676, -0.7942509055137634, 0.3375125229358673, 0.5699390769004822, -0.14426951110363007, 0.22713667154312134, -0.016870908439159393, -0.5117364525794983, -0.20676925778388977, -0.4391249418258667, -0.6519797444343567, 0.941678524017334, 0.3122774660587311, 0.7982142567634583, 0.11352426558732986, 0.5974738597869873, -0.12078861147165298, 0.1429167091846466, -0.8502712845802307, 0.4442894160747528, -0.17324304580688477, -0.7162891030311584, 0.17475727200508118, -0.35272684693336487, -1.0893487930297852, -0.16156679391860962, -0.2544253170490265, -0.9604003429412842, 0.06671386957168579, 0.1341436803340912, -0.16818809509277344, 0.46903195977211, -0.9038979411125183, 0.9395323991775513, -0.3812206983566284, -0.08414570987224579, 0.18779954314231873, -0.5154600739479065, 0.19752651453018188, 0.1518717259168625, 0.04741024225950241, 0.08962884545326233, 0.033512700349092484, 0.711405336856842, -0.42859789729118347, 0.7426151633262634, -0.11473799496889114, 0.07987956702709198, 0.19149400293827057, 0.14099878072738647, 0.35745880007743835, 0.22454731166362762, 0.11873932182788849, 0.6650325059890747, 0.42918410897254944, -0.31248143315315247, -0.5628875494003296, 0.7907766103744507, -1.0402452945709229, -0.4482955038547516, -0.49887630343437195, -0.3464600443840027, 0.13654935359954834, 0.5054332613945007, 0.5754960775375366, 0.24776317179203033, -0.25956857204437256, 0.09832735359668732, 0.6283401250839233, -0.24811747670173645, 0.47321590781211853, 0.27263176441192627, -0.3300882875919342, -0.46719181537628174, 0.5656496286392212, 0.22474811971187592, 0.08957362920045853, 0.5077518820762634, 0.2691391110420227, -0.2413598597049713, -0.19287993013858795, -0.691386878490448, 0.6875606179237366, -0.651723325252533, -0.20679228007793427, -0.9695279598236084, -0.6729424595832825, -0.5561522841453552, -0.3027651011943817, -0.5896721482276917, -0.35590726137161255, -0.5312280654907227, 0.11100222170352936, 0.49623963236808777, 0.870701253414154, 0.09669759124517441, 0.5616226196289062, -0.8249848484992981, 0.5358349680900574, 0.029586266726255417, 0.5280202627182007, 0.12676437199115753, -0.6463954448699951, -0.07303671538829803, -0.09429609030485153, -0.550204336643219, -0.8826589584350586, 0.4213261604309082, -0.2747335433959961, 0.7820863127708435, 0.14949148893356323, 0.22738081216812134, 0.37457048892974854, -0.6061509847640991, 0.9682709574699402, 0.30263569951057434, -0.9006536602973938, 0.39399418234825134, -0.15731652081012726, 0.4395824074745178, 0.16770793497562408, 0.4485149681568146, -0.6255878806114197, 0.06715453416109085, -0.9511936902999878, -0.9035623669624329, 1.0706729888916016, 0.3783607482910156, 0.3853752017021179, 0.22519832849502563, 0.36088892817497253, 0.3191080391407013, 0.06392519921064377, -0.5538359880447388, -0.5148236751556396, -0.5976787805557251, -0.36192190647125244, 0.2694252133369446, -0.41026419401168823, -0.23046764731407166, -0.30034518241882324, 0.41663989424705505, 0.1622198522090912, 0.5918639302253723, 0.36373579502105713, -0.2637009620666504, -0.19757840037345886, 0.11346516758203506, 0.5969248414039612, 0.38625720143318176, -0.3959018290042877, -0.279289573431015, -0.08825048804283142, -0.7742874622344971, -0.38950157165527344, 0.22320690751075745, -0.19876717031002045, -0.05522281676530838, 0.29121822118759155, 0.9894949197769165, -0.102109394967556, -0.34188687801361084, 0.7341851592063904, -0.37649106979370117, -0.5348643660545349, -0.6753442883491516, 0.23871895670890808, 0.17078492045402527, 0.29554376006126404, 0.3659256398677826, 0.1636837273836136, -0.12025448679924011, 0.0976121574640274, 0.2048313170671463, 0.17663045227527618, -0.5771489143371582, -0.5935655236244202, 0.7968769073486328, -0.0011120743583887815, -0.46712636947631836, 0.6445407271385193, -0.3088624179363251, -0.44446277618408203, 0.5272534489631653, 0.4281913638114929, 0.8346737623214722, -0.14268428087234497, 0.054847341030836105, 0.7068099975585938, 0.578095018863678, 0.1848767250776291, 0.3524569571018219, 0.07625789940357208, -0.6973770260810852, -0.03388720750808716, -0.6570314764976501, -0.22480221092700958, 0.44130122661590576, -0.6804279685020447, 0.5655495524406433, -0.5484429597854614, -0.2270577847957611, 0.11792883276939392, 0.013614759780466557, -1.1213483810424805, 0.2754923403263092, 0.17852197587490082, 0.9180501103401184, -0.6180462837219238, 0.643958568572998, 0.8520482778549194, -0.5619584321975708, -0.6451382040977478, 0.1783241480588913, 0.09633740782737732, -0.8134645819664001, 0.703472375869751, 0.17528459429740906, 0.18647795915603638, -0.1734931766986847, -0.6675682067871094, -1.0237276554107666, 1.1166759729385376, 0.2501240670681, -0.5673360228538513, -0.15285976231098175, -0.08001194149255753, 0.4311004877090454, -0.41888704895973206, 0.6284016966819763, 0.18195605278015137, 0.3567845821380615, 0.42125070095062256, -1.116559386253357, 0.22298185527324677, -0.440268874168396, -0.07184317708015442, 0.16248545050621033, -0.7456342577934265, 0.8241301774978638, -0.17807306349277496, -0.10819508135318756, 0.03489505872130394, 0.4924183189868927, -0.12615951895713806, 0.1919918954372406, 0.5452368855476379, 0.8495889902114868, 0.5817293524742126, -0.3523252308368683, 1.118050217628479, -0.17061950266361237, 0.45726197957992554, 0.9975152015686035, 0.19852958619594574, 0.6680343747138977, 0.2698441743850708, -0.21247908473014832, 0.45303136110305786, 0.5712466835975647, -0.3236672878265381, 0.4259515106678009, -0.007910123094916344, 0.4745360314846039, -0.2084386795759201, 0.036062996834516525, -0.41393086314201355, 0.423444002866745, 0.5449456572532654, -0.5082646608352661, -0.23000232875347137, -0.17418059706687927, 0.22702209651470184, -0.12493441253900528, -0.1031724363565445, 0.5555068850517273, 0.17673666775226593, -0.18039949238300323, 0.7548888325691223, -0.06750910729169846, 0.5837797522544861, -0.40950489044189453, 0.04568343237042427, -0.15184320509433746, -0.012429951690137386, -0.2599017024040222, -0.7786912322044373, 0.45900627970695496, 0.00986581202596426, -0.4070613980293274, -0.029391780495643616, 0.532290518283844, -0.12582948803901672, -0.7846149206161499, 0.32003143429756165, 0.4441845417022705, 0.11250606924295425, 0.24554923176765442, -1.0132490396499634, 0.1981140822172165, -0.15742503106594086, -0.42537590861320496, 0.022340770810842514, 0.5008264780044556, -0.0315336138010025, 0.3154869079589844, 0.5838041305541992, -0.16587413847446442, 0.0653759241104126, 0.04781847447156906, 0.9828035831451416, -0.7060856819152832, -0.44869837164878845, -0.5114326477050781, 0.869090735912323, -0.22730351984500885, -0.32989487051963806, 0.48744699358940125, 0.4012315273284912, 1.1299185752868652, -0.14822615683078766, 0.7600236535072327, -0.28753238916397095, 0.5469437837600708, -0.30697017908096313, 0.9111572504043579, -1.0987309217453003, -0.12457641214132309, -0.42807629704475403, -0.8770829439163208, -0.3427112400531769, 0.6384387612342834, -0.607384204864502, 0.28379592299461365, 0.7644254565238953, 0.8330779671669006, -0.5845140218734741, -0.13253755867481232, 0.3481336534023285, 0.26468151807785034, 0.3000591993331909, 0.18013609945774078, 0.4407292902469635, -0.8159884214401245, 0.7801262140274048, -0.36914247274398804, -0.21888338029384613, -0.5209863781929016, -0.6962770223617554, -1.1524124145507812, -0.7389764785766602, -0.5045726895332336, -0.5438653230667114, -0.604308545589447, 0.5449062585830688, 0.8688862919807434, -0.7710058689117432, 0.16758990287780762, 0.15047931671142578, 0.06664589047431946, -0.13571694493293762, -0.273569256067276, 0.5680187940597534, 0.00043340891716070473, -1.009703278541565, -0.12736594676971436, 0.131876602768898, 0.15996265411376953, 0.03873668238520622, -0.08078427612781525, 0.07556536048650742, 0.1535910665988922, 0.21656076610088348, 0.0034456888679414988, -0.9181694984436035, -0.10240454226732254, 0.4632461965084076, -0.21087287366390228, 0.5172366499900818, 0.5149789452552795, -0.4768007695674896, 0.6362830996513367, 0.6088804006576538, 0.4697410464286804, 0.8258534669876099, -0.09035749733448029, 0.15785275399684906, -0.6320839524269104, 0.07976344227790833, 0.044365182518959045, 0.42373037338256836, 0.576659083366394, -0.46387946605682373, 0.3981437683105469, 0.41337165236473083, -0.5019034147262573, -0.7242786884307861, 0.4192913770675659, -1.5229661464691162, -0.007505348883569241, 1.0317599773406982, -0.056505728513002396, -0.6662881970405579, 0.15841855108737946, -0.3547709286212921, 0.47169584035873413, -0.6681133508682251, 0.42073625326156616, 0.6221585869789124, 0.0060758450999855995, -0.6513330340385437, -0.6907716393470764, 0.27592766284942627, 0.0695527046918869, -0.4659029543399811, -0.1510045826435089, 0.11708860844373703, 0.48785483837127686, 0.6435990333557129, 0.48763328790664673, -0.2922452390193939, 0.03691171854734421, 0.1523033231496811, 0.2332202047109604, -0.1859758347272873, -0.03853209316730499, -0.03370571881532669, -0.045996569097042084, -0.1719263345003128, -0.23864971101284027 ]
google/rembert
google
"2022-05-27T15:05:23Z"
19,380
15
transformers
[ "transformers", "pytorch", "tf", "rembert", "multilingual", "af", "am", "ar", "az", "be", "bg", "bn", "bs", "ca", "ceb", "co", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fa", "fi", "fil", "fr", "fy", "ga", "gd", "gl", "gu", "ha", "haw", "hi", "hmn", "hr", "ht", "hu", "hy", "id", "ig", "is", "it", "iw", "ja", "jv", "ka", "kk", "km", "kn", "ko", "ku", "ky", "la", "lb", "lo", "lt", "lv", "mg", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "ne", "nl", "no", "ny", "pa", "pl", "ps", "pt", "ro", "ru", "sd", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "tr", "uk", "ur", "uz", "vi", "xh", "yi", "yo", "zh", "zu", "dataset:wikipedia", "arxiv:2010.12821", "license:apache-2.0", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- language: - multilingual - af - am - ar - az - be - bg - bn - bs - ca - ceb - co - cs - cy - da - de - el - en - eo - es - et - eu - fa - fi - fil - fr - fy - ga - gd - gl - gu - ha - haw - hi - hmn - hr - ht - hu - hy - id - ig - is - it - iw - ja - jv - ka - kk - km - kn - ko - ku - ky - la - lb - lo - lt - lv - mg - mi - mk - ml - mn - mr - ms - mt - my - ne - nl - no - ny - pa - pl - ps - pt - ro - ru - sd - si - sk - sl - sm - sn - so - sq - sr - st - su - sv - sw - ta - te - tg - th - tr - uk - ur - uz - vi - xh - yi - yo - zh - zu license: apache-2.0 datasets: - wikipedia --- # RemBERT (for classification) Pretrained RemBERT model on 110 languages using a masked language modeling (MLM) objective. It was introduced in the paper [Rethinking embedding coupling in pre-trained language models](https://arxiv.org/abs/2010.12821). A direct export of the model checkpoint was first made available in [this repository](https://github.com/google-research/google-research/tree/master/rembert). This version of the checkpoint is lightweight since it is meant to be finetuned for classification and excludes the output embedding weights. ## Model description RemBERT's main difference with mBERT is that the input and output embeddings are not tied. Instead, RemBERT uses small input embeddings and larger output embeddings. This makes the model more efficient since the output embeddings are discarded during fine-tuning. It is also more accurate, especially when reinvesting the input embeddings' parameters into the core model, as is done on RemBERT. ## Intended uses & limitations You should fine-tune this model for your downstream task. It is meant to be a general-purpose model, similar to mBERT. In our [paper](https://arxiv.org/abs/2010.12821), we have successfully applied this model to tasks such as classification, question answering, NER, POS-tagging. For tasks such as text generation you should look at models like GPT2. ## Training data The RemBERT model was pretrained on multilingual Wikipedia data over 110 languages. The full language list is on [this repository](https://github.com/google-research/google-research/tree/master/rembert) ### BibTeX entry and citation info ```bibtex @inproceedings{DBLP:conf/iclr/ChungFTJR21, author = {Hyung Won Chung and Thibault F{\'{e}}vry and Henry Tsai and Melvin Johnson and Sebastian Ruder}, title = {Rethinking Embedding Coupling in Pre-trained Language Models}, booktitle = {9th International Conference on Learning Representations, {ICLR} 2021, Virtual Event, Austria, May 3-7, 2021}, publisher = {OpenReview.net}, year = {2021}, url = {https://openreview.net/forum?id=xpFFI\_NtgpW}, timestamp = {Wed, 23 Jun 2021 17:36:39 +0200}, biburl = {https://dblp.org/rec/conf/iclr/ChungFTJR21.bib}, bibsource = {dblp computer science bibliography, https://dblp.org} } ```
[ -0.37563517689704895, -0.7949233651161194, 0.27371248602867126, -0.08450861275196075, -0.4070873260498047, 0.31615644693374634, -0.1675974428653717, -0.3802352547645569, 0.23150087893009186, 0.43169450759887695, -0.5530383586883545, -0.6566440463066101, -0.48822447657585144, -0.11453884094953537, -0.3136499524116516, 1.0031112432479858, -0.3172098398208618, 0.16889658570289612, -0.203043594956398, 0.019462473690509796, -0.2750316262245178, -0.8718997836112976, -0.7057473063468933, -0.3297949731349945, 0.6276199817657471, 0.054170288145542145, 0.4599032998085022, 0.4407311677932739, 0.37764859199523926, 0.27404898405075073, 0.16375599801540375, -0.11389908939599991, -0.44425755739212036, 0.09802110493183136, -0.13904187083244324, -0.2802585959434509, -0.6288980841636658, 0.08865400403738022, 0.7155232429504395, 0.7673906683921814, 0.02394271455705166, 0.15393757820129395, 0.3903200626373291, 0.5942922830581665, -0.5341590046882629, 0.3655731976032257, -0.2779012620449066, -0.0785018652677536, -0.2913711965084076, -0.035916268825531006, -0.4876328408718109, -0.32964909076690674, 0.10914846509695053, -0.24397017061710358, 0.29953548312187195, 0.19614844024181366, 0.9387726187705994, 0.11805596947669983, -0.6188325881958008, 0.030026951804757118, -0.6718144416809082, 0.946233332157135, -0.6164631247520447, 1.050892949104309, 0.5980126857757568, 0.3425394296646118, -0.03631265461444855, -0.9151360392570496, -0.1992007941007614, -0.3277400732040405, -0.12635523080825806, 0.1372566968202591, -0.10576345026493073, -0.016003161668777466, 0.03906460106372833, 0.4473830461502075, -0.7295854687690735, 0.054669126868247986, -0.3078981041908264, -0.2703161835670471, 0.5190767049789429, 0.015421317890286446, 0.1590460240840912, -0.17141900956630707, -0.12079198658466339, -0.14812465012073517, -0.9193400740623474, -0.014097732491791248, 0.20754331350326538, 0.26098090410232544, -0.19124016165733337, 0.4480746388435364, 0.06569167971611023, 0.7389602661132812, 0.0346020869910717, 0.10047637671232224, 0.32860109210014343, -0.5045660734176636, -0.15509039163589478, -0.11331664025783539, 0.9241708517074585, -0.01801338419318199, 0.19986467063426971, -0.2586563229560852, -0.18781746923923492, -0.21503135561943054, 0.18443329632282257, -0.7896871566772461, -0.3890647888183594, 0.001421986147761345, -0.33778318762779236, -0.1754210740327835, 0.02958221361041069, -0.4067482352256775, 0.2739192843437195, -0.39931273460388184, 0.30714452266693115, -0.4939546287059784, -0.29246121644973755, -0.13310536742210388, 0.387701153755188, 0.29563412070274353, 0.25711894035339355, -0.7520686984062195, 0.10078547149896622, 0.5812585353851318, 0.6320950388908386, 0.004245711490511894, -0.44863492250442505, -0.1669866144657135, 0.1226947158575058, -0.25707584619522095, 0.8436129689216614, -0.49832040071487427, -0.08058889210224152, 0.024906422942876816, 0.42251691222190857, -0.1540842205286026, -0.26585131883621216, 0.36471831798553467, -0.621056318283081, 0.3466443419456482, -0.31497547030448914, -0.6125813126564026, -0.3849388062953949, 0.1496349722146988, -0.6221646070480347, 0.9621806740760803, 0.21434158086776733, -0.8468473553657532, 0.43843021988868713, -0.17165222764015198, -0.4623146653175354, -0.055266693234443665, -0.22466813027858734, -0.4978236258029938, -0.06425665318965912, 0.18435294926166534, 0.5032486319541931, -0.5561646223068237, 0.5354303121566772, -0.3701023459434509, -0.26606976985931396, 0.198190376162529, -0.24288688600063324, 0.9005151391029358, 0.19391855597496033, -0.24550889432430267, -0.04059629142284393, -0.5800175666809082, 0.18206875026226044, 0.026056364178657532, -0.6301226019859314, -0.08565054088830948, 0.09831660985946655, 0.033831484615802765, 0.060325510799884796, 0.1561509370803833, -0.47337019443511963, -0.14813515543937683, -0.23072469234466553, 0.5062056183815002, 0.5383085012435913, -0.0842394232749939, 0.24290579557418823, -0.3586876392364502, 0.7209316492080688, -0.10648838430643082, -0.10052359849214554, -0.19449716806411743, -0.4842011332511902, -0.6988337635993958, -0.4082975685596466, 0.803624153137207, 0.7083641886711121, -0.6036444306373596, 0.6436598896980286, -0.32393375039100647, -0.6283508539199829, -0.7539915442466736, 0.06257175654172897, 0.5753214359283447, 0.05926290899515152, 0.24346309900283813, -0.48034927248954773, -0.6631903648376465, -0.901728093624115, -0.2310236543416977, -0.12314214557409286, 0.019743427634239197, 0.04944576695561409, 0.36622104048728943, -0.38142141699790955, 0.9673065543174744, -0.37870529294013977, -0.06631398946046829, -0.35321101546287537, 0.15824922919273376, -0.07024199515581131, 0.7303274273872375, 0.5660603046417236, -0.49456167221069336, -0.7501052021980286, -0.012056490406394005, -0.8540336489677429, 0.018911492079496384, 0.2649519443511963, -0.10299194604158401, 0.3050875961780548, 0.7685379981994629, -0.2013450264930725, 0.3887847661972046, 0.6226833462715149, 0.11106157302856445, 0.5342057347297668, 0.12460114806890488, 0.14361628890037537, -1.3491454124450684, 0.04007647931575775, -0.27509379386901855, -0.5356793999671936, -0.5836135745048523, 0.03709464892745018, 0.15954264998435974, -0.3036816418170929, -0.4763263761997223, 0.43858668208122253, -0.7435734272003174, -0.04605742543935776, -0.1327681988477707, 0.20193898677825928, -0.10741084814071655, 0.7720800638198853, 0.0527309849858284, 0.649156928062439, 0.5786200761795044, -0.47344303131103516, 0.33009010553359985, 0.14194004237651825, -0.34392058849334717, 0.28134244680404663, -0.7271496057510376, 0.2888524830341339, 0.08162504434585571, 0.3745079040527344, -1.0687718391418457, 0.09702760726213455, 0.2604377269744873, -0.5833894610404968, 0.7556990385055542, -0.36669427156448364, -0.584644079208374, -0.11413974314928055, -0.34763023257255554, 0.6251055598258972, 0.5035882592201233, -0.32814347743988037, 0.45305562019348145, 0.35386860370635986, -0.16353394091129303, -0.4393874406814575, -0.929894208908081, -0.1145811378955841, 0.004038314800709486, -0.6506202816963196, 0.3325110673904419, -0.06457697600126266, 0.2722551226615906, 0.19808055460453033, 0.12799294292926788, -0.18822839856147766, -0.03751206025481224, 0.06903843581676483, 0.026871690526604652, -0.41986942291259766, 0.16308261454105377, 0.2503516674041748, -0.4471805691719055, -0.08838845789432526, -0.265869140625, 0.6044594645500183, -0.12024684250354767, -0.6245669722557068, -0.4735966920852661, 0.5232900977134705, 0.3057853877544403, -0.4502955377101898, 1.0425533056259155, 0.7914268970489502, -0.37751007080078125, 0.23361727595329285, -0.5485314726829529, -0.3386925756931305, -0.471804141998291, 0.5644714832305908, -0.4593716263771057, -1.290859341621399, 0.5084314942359924, 0.07319203019142151, 0.2503458857536316, 0.44194480776786804, 0.5428110957145691, -0.010104583576321602, 0.9451619982719421, 0.7177756428718567, -0.060507260262966156, 0.7170263528823853, -0.17654259502887726, 0.5832729935646057, -1.0277953147888184, -0.0513254851102829, -0.5000845193862915, -0.10260757058858871, -0.78330397605896, -0.34813278913497925, -0.2332053780555725, 0.363200843334198, -0.44354817271232605, 0.5455182790756226, -0.28232669830322266, 0.14380399882793427, 0.5642067193984985, -0.015698613598942757, 0.1337760090827942, 0.17401376366615295, -0.31623661518096924, -0.4156287610530853, -0.9174049496650696, -0.5943697094917297, 1.1301697492599487, 0.33798748254776, 0.9484875798225403, 0.323903352022171, 0.8790140748023987, 0.008580712601542473, 0.4492567479610443, -0.6092621684074402, 0.5619049072265625, -0.15078045427799225, -0.8245433568954468, -0.018240561708807945, -0.41500622034072876, -1.1317250728607178, 0.1527157872915268, -0.14277710020542145, -0.6328222155570984, 0.2641034424304962, 0.24601078033447266, -0.02567334473133087, 0.3602074384689331, -0.8321592807769775, 0.8278291821479797, -0.15600953996181488, -0.2607730031013489, -0.014037976041436195, -0.47113412618637085, 0.4017248749732971, -0.44019994139671326, 0.09860599040985107, 0.06919793039560318, 0.2506028115749359, 0.8510967493057251, -0.29044073820114136, 1.0524035692214966, 0.08842974156141281, -0.05446869879961014, 0.25212448835372925, 0.19279606640338898, 0.4765854775905609, -0.13325226306915283, 0.17285649478435516, 0.22103258967399597, 0.058654170483350754, -0.39899083971977234, -0.5180729031562805, 0.6383058428764343, -0.8576661944389343, -0.6319738626480103, -0.37581801414489746, -0.2818731367588043, -0.0591394416987896, 0.2719191610813141, 0.465547651052475, 0.6664553880691528, -0.26569271087646484, 0.47913530468940735, 0.4390653073787689, -0.4882764220237732, 0.006939782295376062, 0.4956928491592407, -0.5009378790855408, -0.43687182664871216, 1.0037440061569214, 0.29164186120033264, 0.5284478068351746, 0.7075857520103455, -0.14436782896518707, -0.2776466906070709, -0.44292303919792175, -0.19944465160369873, 0.5737631320953369, -0.7319408655166626, -0.1965390145778656, -0.9023864269256592, -0.5280033946037292, -0.8256539106369019, -0.27059632539749146, -0.519201934337616, -0.5617760419845581, -0.2086295783519745, -0.23416706919670105, 0.20788489282131195, 0.5841296315193176, -0.2026660442352295, 0.3347206115722656, -0.793494462966919, -0.1362023949623108, 0.32576102018356323, 0.21105307340621948, 0.08872143179178238, -0.5711536407470703, -0.5863147974014282, 0.12101928889751434, -0.38477832078933716, -0.8728780150413513, 0.19818371534347534, 0.17558027803897858, 0.9069307446479797, 0.3222508430480957, 0.041453734040260315, 0.43396687507629395, -0.4483685791492462, 0.6578810214996338, 0.06362291425466537, -0.8369337916374207, 0.46756649017333984, -0.2830886244773865, 0.12361357361078262, 0.5353965759277344, 0.4741237461566925, -0.5774530172348022, -0.533369243144989, -0.6553741097450256, -0.9283860325813293, 0.7036010026931763, 0.18407265841960907, -0.10654512047767639, -0.031237933784723282, 0.2580936849117279, -0.1352991908788681, 0.34204593300819397, -0.9271056652069092, -0.3483130633831024, -0.3334968686103821, -0.1571298986673355, -0.37863174080848694, -0.5723094940185547, 0.11715133488178253, -0.363286554813385, 0.7483605146408081, 0.2014087587594986, 0.7987011075019836, 0.017812995240092278, -0.5290937423706055, 0.14057403802871704, 0.23186926543712616, 0.48543763160705566, 0.573168158531189, -0.45732381939888, 0.25951504707336426, 0.12185057997703552, -0.4177592992782593, 0.1280468851327896, 0.1154710128903389, 0.014079606160521507, -0.07951437681913376, 0.7439435720443726, 0.791879415512085, 0.5622426867485046, -0.29105785489082336, 0.2291526347398758, 0.032494060695171356, -0.34500986337661743, -0.2813805043697357, -0.1854044497013092, 0.3267824053764343, 0.17788785696029663, 0.025735192000865936, -0.4418017566204071, -0.23936285078525543, -0.5373300313949585, 0.32374873757362366, 0.31818315386772156, -0.5099255442619324, -0.5465683341026306, 0.6086554527282715, 0.18397314846515656, -0.4523650109767914, 0.7963212132453918, -0.4313609004020691, -0.7396807074546814, 0.1769815981388092, 0.6906598210334778, 1.1370412111282349, -0.5253387689590454, 0.06665926426649094, 0.5749397277832031, 0.660578191280365, 0.3717634677886963, 0.05855076387524605, -0.07249937951564789, -0.9564885497093201, -0.4825672507286072, -0.5445653796195984, -0.1914122849702835, -0.007895112037658691, -0.6029796004295349, 0.09748019278049469, -0.5016446113586426, -0.1794288158416748, -0.21441006660461426, 0.18661029636859894, -0.6639298796653748, -0.057468514889478683, -0.3322920799255371, 0.6286341547966003, -0.9124073386192322, 1.0910992622375488, 0.8649500608444214, -0.5215429067611694, -0.8466112613677979, -0.18820393085479736, 0.017267709597945213, -0.7506425976753235, 0.5821740627288818, -0.08724714815616608, -0.04686834663152695, 0.3003561794757843, -0.3615633547306061, -0.9220858812332153, 1.2009013891220093, 0.4564526379108429, -0.43266740441322327, 0.2009168118238449, -0.015108153223991394, 0.3257791996002197, -0.5077019333839417, -0.010934334248304367, 0.41137415170669556, 0.38557371497154236, 0.09477782994508743, -0.6770514249801636, 0.17717866599559784, -0.24788062274456024, -0.006945174653083086, 0.3166566491127014, -0.47691601514816284, 0.9890161156654358, 0.10279155522584915, -0.29168951511383057, -0.145407035946846, 0.6348528861999512, 0.40399032831192017, 0.020816439762711525, 0.25573301315307617, 0.5889173746109009, 0.6124475598335266, -0.18893085420131683, 1.0553351640701294, -0.2817423641681671, 0.5487545728683472, 1.0636272430419922, -0.1560463309288025, 0.828619658946991, 0.217647522687912, -0.5218053460121155, 0.5194939970970154, 0.9973377585411072, 0.15261107683181763, 0.6385573744773865, 0.02342160977423191, -0.08168453723192215, -0.30635929107666016, 0.17987245321273804, -0.6490848660469055, 0.0005110100610181689, 0.16522422432899475, -0.2885380685329437, -0.2587161660194397, -0.008418403565883636, 0.3565080165863037, -0.3469155430793762, 0.18497337400913239, 0.46493056416511536, 0.3867360055446625, -0.40558961033821106, 0.6328299641609192, 0.07366176694631577, 0.5348771810531616, -0.656059980392456, 0.28823038935661316, -0.3334052860736847, 0.2619437873363495, -0.03343801200389862, -0.4755820035934448, 0.3653363883495331, -0.06424033641815186, -0.23266613483428955, -0.15279045701026917, 0.6313282251358032, -0.612618088722229, -0.706096887588501, 0.3998904824256897, 0.6239380240440369, 0.40706202387809753, -0.01988862454891205, -0.9408987164497375, 0.028418494388461113, 0.2932312488555908, -0.29337266087532043, 0.4719013571739197, 0.4956216812133789, -0.08034255355596542, 0.6706371903419495, 0.6538182497024536, -0.29091206192970276, 0.19984865188598633, 0.017754308879375458, 0.8514622449874878, -0.8085740208625793, -0.353718638420105, -0.6089910864830017, 0.3880498707294464, 0.40547990798950195, 0.03061405010521412, 0.9228387475013733, 0.6107203364372253, 0.881763219833374, 0.04438348487019539, 0.6339451670646667, -0.06796622276306152, 0.5948954224586487, -0.4842086136341095, 0.7095927596092224, -0.6860045194625854, 0.11919789016246796, -0.49215763807296753, -1.2233004570007324, -0.3347826302051544, 0.7830955982208252, -0.34229588508605957, 0.6152990460395813, 1.0386924743652344, 0.909654974937439, -0.17636163532733917, -0.1526304930448532, 0.3398243188858032, 0.18190990388393402, 0.538275420665741, 0.4777696430683136, 0.7530802488327026, -0.45596057176589966, 0.32761746644973755, -0.024554500356316566, -0.23642569780349731, -0.2963767647743225, -0.8127128481864929, -0.9984358549118042, -0.8077663779258728, -0.5127761960029602, -0.16512374579906464, 0.07800266891717911, 0.7771240472793579, 0.7531797885894775, -0.7788591384887695, -0.3127792179584503, 0.06965100765228271, 0.08865922689437866, -0.13044890761375427, -0.16151216626167297, 0.5924860835075378, -0.2534445822238922, -0.6213447451591492, 0.20696623623371124, -0.006612141150981188, 0.2279670685529709, -0.29861122369766235, -0.16930273175239563, -0.512710690498352, -0.1382501870393753, 0.5998525619506836, 0.15751518309116364, -0.5007445812225342, -0.21223296225070953, -0.10386254638433456, -0.06262894719839096, -0.17041805386543274, 0.8636635541915894, -0.6139729022979736, 0.1999862790107727, 0.46702685952186584, 0.6982406377792358, 0.7567983269691467, -0.33565616607666016, 0.7391353845596313, -0.7981762886047363, 0.20024891197681427, -0.04023934528231621, 0.3343871533870697, 0.4080279469490051, -0.08554033190011978, 0.443070650100708, 0.2818610370159149, -0.6778213977813721, -0.8420546650886536, 0.46804752945899963, -0.7913907170295715, -0.1553088128566742, 0.822967529296875, -0.36773502826690674, -0.15618737041950226, -0.29901084303855896, 0.009892530739307404, 0.4062904715538025, -0.21984143555164337, 0.27186235785484314, 0.835625410079956, 0.29908227920532227, -0.5810989737510681, -0.5862012505531311, 0.39136746525764465, 0.271250456571579, -0.5610097646713257, 0.04925960674881935, 0.1750333160161972, 0.3838218152523041, -0.010864014737308025, 0.8070932626724243, -0.15259328484535217, 0.019072970375418663, -0.12372224032878876, 0.2160784751176834, -0.13320256769657135, -0.1863941103219986, -0.1353193074464798, -0.23337168991565704, 0.22694151103496552, -0.19979815185070038 ]
TheBloke/zephyr-7B-beta-GPTQ
TheBloke
"2023-10-27T14:56:24Z"
19,378
42
transformers
[ "transformers", "safetensors", "mistral", "text-generation", "generated_from_trainer", "en", "dataset:HuggingFaceH4/ultrachat_200k", "dataset:HuggingFaceH4/ultrafeedback_binarized", "arxiv:2305.18290", "arxiv:2310.16944", "base_model:HuggingFaceH4/zephyr-7b-beta", "license:mit", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-10-27T13:16:11Z"
--- base_model: HuggingFaceH4/zephyr-7b-beta datasets: - HuggingFaceH4/ultrachat_200k - HuggingFaceH4/ultrafeedback_binarized inference: false language: - en license: mit model-index: - name: zephyr-7b-beta results: [] model_creator: Hugging Face H4 model_name: Zephyr 7B Beta model_type: mistral prompt_template: '<|system|> </s> <|user|> {prompt}</s> <|assistant|> ' quantized_by: TheBloke tags: - generated_from_trainer --- <!-- markdownlint-disable MD041 --> <!-- header start --> <!-- 200823 --> <div style="width: auto; margin-left: auto; margin-right: auto"> <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> </div> <div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div> <hr style="margin-top: 1.0em; margin-bottom: 1.0em;"> <!-- header end --> # Zephyr 7B Beta - GPTQ - Model creator: [Hugging Face H4](https://huggingface.co/HuggingFaceH4) - Original model: [Zephyr 7B Beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) <!-- description start --> ## Description This repo contains GPTQ model files for [Hugging Face H4's Zephyr 7B Beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta). Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them. These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/). <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/zephyr-7B-beta-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/zephyr-7B-beta-GGUF) * [Hugging Face H4's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Zephyr ``` <|system|> </s> <|user|> {prompt}</s> <|assistant|> ``` <!-- prompt-template end --> <!-- README_GPTQ.md-compatible clients start --> ## Known compatible clients / servers These GPTQ models are known to work in the following inference servers/webuis. - [text-generation-webui](https://github.com/oobabooga/text-generation-webui) - [KobaldAI United](https://github.com/henk717/koboldai) - [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui) - [Hugging Face Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) This may not be a complete list; if you know of others, please let me know! <!-- README_GPTQ.md-compatible clients end --> <!-- README_GPTQ.md-provided-files start --> ## Provided files, and GPTQ parameters Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements. Each separate quant is in a different branch. See below for instructions on fetching from different branches. Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers. <details> <summary>Explanation of GPTQ parameters</summary> - Bits: The bit size of the quantised model. - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value. - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now. - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy. - GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s). - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences. - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit. </details> | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc | | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- | | [main](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.16 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.57 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. | | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.52 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. | | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.68 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. | | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.17 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. | | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 4.29 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. | <!-- README_GPTQ.md-provided-files end --> <!-- README_GPTQ.md-download-from-branches start --> ## How to download, including from branches ### In text-generation-webui To download from the `main` branch, enter `TheBloke/zephyr-7B-beta-GPTQ` in the "Download model" box. To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/zephyr-7B-beta-GPTQ:gptq-4bit-32g-actorder_True` ### From the command line I recommend using the `huggingface-hub` Python library: ```shell pip3 install huggingface-hub ``` To download the `main` branch to a folder called `zephyr-7B-beta-GPTQ`: ```shell mkdir zephyr-7B-beta-GPTQ huggingface-cli download TheBloke/zephyr-7B-beta-GPTQ --local-dir zephyr-7B-beta-GPTQ --local-dir-use-symlinks False ``` To download from a different branch, add the `--revision` parameter: ```shell mkdir zephyr-7B-beta-GPTQ huggingface-cli download TheBloke/zephyr-7B-beta-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir zephyr-7B-beta-GPTQ --local-dir-use-symlinks False ``` <details> <summary>More advanced huggingface-cli download usage</summary> If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Hugging Face cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model. The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`. For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli). To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`: ```shell pip3 install hf_transfer ``` And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`: ```shell mkdir zephyr-7B-beta-GPTQ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/zephyr-7B-beta-GPTQ --local-dir zephyr-7B-beta-GPTQ --local-dir-use-symlinks False ``` Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command. </details> ### With `git` (**not** recommended) To clone a specific branch with `git`, use a command like this: ```shell git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/zephyr-7B-beta-GPTQ ``` Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.) <!-- README_GPTQ.md-download-from-branches end --> <!-- README_GPTQ.md-text-generation-webui start --> ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui) Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui). It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install. 1. Click the **Model tab**. 2. Under **Download custom model or LoRA**, enter `TheBloke/zephyr-7B-beta-GPTQ`. - To download from a specific branch, enter for example `TheBloke/zephyr-7B-beta-GPTQ:gptq-4bit-32g-actorder_True` - see Provided Files above for the list of branches for each option. 3. Click **Download**. 4. The model will start downloading. Once it's finished it will say "Done". 5. In the top left, click the refresh icon next to **Model**. 6. In the **Model** dropdown, choose the model you just downloaded: `zephyr-7B-beta-GPTQ` 7. The model will automatically load, and is now ready for use! 8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right. - Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`. 9. Once you're ready, click the **Text Generation** tab and enter a prompt to get started! <!-- README_GPTQ.md-text-generation-webui end --> <!-- README_GPTQ.md-use-from-tgi start --> ## Serving this model from Text Generation Inference (TGI) It's recommended to use TGI version 1.1.0 or later. The official Docker container is: `ghcr.io/huggingface/text-generation-inference:1.1.0` Example Docker parameters: ```shell --model-id TheBloke/zephyr-7B-beta-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096 ``` Example Python code for interfacing with TGI (requires huggingface-hub 0.17.0 or later): ```shell pip3 install huggingface-hub ``` ```python from huggingface_hub import InferenceClient endpoint_url = "https://your-endpoint-url-here" prompt = "Tell me about AI" prompt_template=f'''<|system|> </s> <|user|> {prompt}</s> <|assistant|> ''' client = InferenceClient(endpoint_url) response = client.text_generation(prompt, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, repetition_penalty=1.1) print(f"Model output: {response}") ``` <!-- README_GPTQ.md-use-from-tgi end --> <!-- README_GPTQ.md-use-from-python start --> ## How to use this GPTQ model from Python code ### Install the necessary packages Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later. ```shell pip3 install transformers optimum pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7 ``` If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead: ```shell pip3 uninstall -y auto-gptq git clone https://github.com/PanQiWei/AutoGPTQ cd AutoGPTQ git checkout v0.4.2 pip3 install . ``` ### You can then use the following code ```python from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_name_or_path = "TheBloke/zephyr-7B-beta-GPTQ" # To use a different branch, change revision # For example: revision="gptq-4bit-32g-actorder_True" model = AutoModelForCausalLM.from_pretrained(model_name_or_path, device_map="auto", trust_remote_code=False, revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''<|system|> </s> <|user|> {prompt}</s> <|assistant|> ''' print("\n\n*** Generate:") input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512) print(tokenizer.decode(output[0])) # Inference can also be done using transformers' pipeline print("*** Pipeline:") pipe = pipeline( "text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, repetition_penalty=1.1 ) print(pipe(prompt_template)[0]['generated_text']) ``` <!-- README_GPTQ.md-use-from-python end --> <!-- README_GPTQ.md-compatibility start --> ## Compatibility The files provided are tested to work with Transformers. For non-Mistral models, AutoGPTQ can also be used directly. [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama and Mistral models in 4-bit. Please see the Provided Files table above for per-file compatibility. For a list of clients/servers, please see "Known compatible clients / servers", above. <!-- README_GPTQ.md-compatibility end --> <!-- footer start --> <!-- 200823 --> ## Discord For further support, and discussions on these models and AI in general, join us at: [TheBloke AI's Discord server](https://discord.gg/theblokeai) ## Thanks, and how to contribute Thanks to the [chirper.ai](https://chirper.ai) team! Thanks to Clay from [gpus.llm-utils.org](llm-utils)! I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. * Patreon: https://patreon.com/TheBlokeAI * Ko-Fi: https://ko-fi.com/TheBlokeAI **Special thanks to**: Aemon Algiz. **Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: Hugging Face H4's Zephyr 7B Beta <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> <img src="https://huggingface.co/HuggingFaceH4/zephyr-7b-alpha/resolve/main/thumbnail.png" alt="Zephyr Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/> # Model Card for Zephyr 7B β Zephyr is a series of language models that are trained to act as helpful assistants. Zephyr-7B-β is the second model in the series, and is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) that was trained on on a mix of publicly available, synthetic datasets using [Direct Preference Optimization (DPO)](https://arxiv.org/abs/2305.18290). We found that removing the in-built alignment of these datasets boosted performance on [MT Bench](https://huggingface.co/spaces/lmsys/mt-bench) and made the model more helpful. However, this means that model is likely to generate problematic text when prompted to do so and should only be used for educational and research purposes. You can find more details in the [technical report](https://arxiv.org/abs/2310.16944). ## Model description - **Model type:** A 7B parameter GPT-like model fine-tuned on a mix of publicly available, synthetic datasets. - **Language(s) (NLP):** Primarily English - **License:** MIT - **Finetuned from model:** [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) ### Model Sources <!-- Provide the basic links for the model. --> - **Repository:** https://github.com/huggingface/alignment-handbook - **Demo:** https://huggingface.co/spaces/HuggingFaceH4/zephyr-chat - **Chatbot Arena:** Evaluate Zephyr 7B against 10+ LLMs in the LMSYS arena: http://arena.lmsys.org ## Performance At the time of release, Zephyr-7B-β is the highest ranked 7B chat model on the [MT-Bench](https://huggingface.co/spaces/lmsys/mt-bench) and [AlpacaEval](https://tatsu-lab.github.io/alpaca_eval/) benchmarks: | Model | Size | Alignment | MT-Bench (score) | AlpacaEval (win rate %) | |-------------|-----|----|---------------|--------------| | StableLM-Tuned-α | 7B| dSFT |2.75| -| | MPT-Chat | 7B |dSFT |5.42| -| | Xwin-LMv0.1 | 7B| dPPO| 6.19| 87.83| | Mistral-Instructv0.1 | 7B| - | 6.84 |-| | Zephyr-7b-α |7B| dDPO| 6.88| -| | **Zephyr-7b-β** 🪁 | **7B** | **dDPO** | **7.34** | **90.60** | | Falcon-Instruct | 40B |dSFT |5.17 |45.71| | Guanaco | 65B | SFT |6.41| 71.80| | Llama2-Chat | 70B |RLHF |6.86| 92.66| | Vicuna v1.3 | 33B |dSFT |7.12 |88.99| | WizardLM v1.0 | 70B |dSFT |7.71 |-| | Xwin-LM v0.1 | 70B |dPPO |- |95.57| | GPT-3.5-turbo | - |RLHF |7.94 |89.37| | Claude 2 | - |RLHF |8.06| 91.36| | GPT-4 | -| RLHF |8.99| 95.28| In particular, on several categories of MT-Bench, Zephyr-7B-β has strong performance compared to larger open models like Llama2-Chat-70B: ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6200d0a443eb0913fa2df7cc/raxvt5ma16d7T23my34WC.png) However, on more complex tasks like coding and mathematics, Zephyr-7B-β lags behind proprietary models and more research is needed to close the gap. ## Intended uses & limitations The model was initially fine-tuned on a filtered and preprocessed of the [`UltraChat`](https://huggingface.co/datasets/stingning/ultrachat) dataset, which contains a diverse range of synthetic dialogues generated by ChatGPT. We then further aligned the model with [🤗 TRL's](https://github.com/huggingface/trl) `DPOTrainer` on the [openbmb/UltraFeedback](https://huggingface.co/datasets/openbmb/UltraFeedback) dataset, which contains 64k prompts and model completions that are ranked by GPT-4. As a result, the model can be used for chat and you can check out our [demo](https://huggingface.co/spaces/HuggingFaceH4/zephyr-chat) to test its capabilities. You can find the datasets used for training Zephyr-7B-β [here](https://huggingface.co/collections/HuggingFaceH4/zephyr-7b-6538c6d6d5ddd1cbb1744a66) Here's how you can run the model using the `pipeline()` function from 🤗 Transformers: ```python # Install transformers from source - only needed for versions <= v4.34 # pip install git+https://github.com/huggingface/transformers.git # pip install accelerate import torch from transformers import pipeline pipe = pipeline("text-generation", model="HuggingFaceH4/zephyr-7b-beta", torch_dtype=torch.bfloat16, device_map="auto") # We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating messages = [ { "role": "system", "content": "You are a friendly chatbot who always responds in the style of a pirate", }, {"role": "user", "content": "How many helicopters can a human eat in one sitting?"}, ] prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True) outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95) print(outputs[0]["generated_text"]) # <|system|> # You are a friendly chatbot who always responds in the style of a pirate.</s> # <|user|> # How many helicopters can a human eat in one sitting?</s> # <|assistant|> # Ah, me hearty matey! But yer question be a puzzler! A human cannot eat a helicopter in one sitting, as helicopters are not edible. They be made of metal, plastic, and other materials, not food! ``` ## Bias, Risks, and Limitations <!-- This section is meant to convey both technical and sociotechnical limitations. --> Zephyr-7B-β has not been aligned to human preferences with techniques like RLHF or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so). It is also unknown what the size and composition of the corpus was used to train the base model (`mistralai/Mistral-7B-v0.1`), however it is likely to have included a mix of Web data and technical sources like books and code. See the [Falcon 180B model card](https://huggingface.co/tiiuae/falcon-180B#training-data) for an example of this. ## Training and evaluation data During DPO training, this model achieves the following results on the evaluation set: - Loss: 0.7496 - Rewards/chosen: -4.5221 - Rewards/rejected: -8.3184 - Rewards/accuracies: 0.7812 - Rewards/margins: 3.7963 - Logps/rejected: -340.1541 - Logps/chosen: -299.4561 - Logits/rejected: -2.3081 - Logits/chosen: -2.3531 ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 5e-07 - train_batch_size: 2 - eval_batch_size: 4 - seed: 42 - distributed_type: multi-GPU - num_devices: 16 - total_train_batch_size: 32 - total_eval_batch_size: 64 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - lr_scheduler_warmup_ratio: 0.1 - num_epochs: 3.0 ### Training results The table below shows the full set of DPO training metrics: | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen | |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:| | 0.6284 | 0.05 | 100 | 0.6098 | 0.0425 | -0.1872 | 0.7344 | 0.2297 | -258.8416 | -253.8099 | -2.7976 | -2.8234 | | 0.4908 | 0.1 | 200 | 0.5426 | -0.0279 | -0.6842 | 0.75 | 0.6563 | -263.8124 | -254.5145 | -2.7719 | -2.7960 | | 0.5264 | 0.15 | 300 | 0.5324 | 0.0414 | -0.9793 | 0.7656 | 1.0207 | -266.7627 | -253.8209 | -2.7892 | -2.8122 | | 0.5536 | 0.21 | 400 | 0.4957 | -0.0185 | -1.5276 | 0.7969 | 1.5091 | -272.2460 | -254.4203 | -2.8542 | -2.8764 | | 0.5362 | 0.26 | 500 | 0.5031 | -0.2630 | -1.5917 | 0.7812 | 1.3287 | -272.8869 | -256.8653 | -2.8702 | -2.8958 | | 0.5966 | 0.31 | 600 | 0.5963 | -0.2993 | -1.6491 | 0.7812 | 1.3499 | -273.4614 | -257.2279 | -2.8778 | -2.8986 | | 0.5014 | 0.36 | 700 | 0.5382 | -0.2859 | -1.4750 | 0.75 | 1.1891 | -271.7204 | -257.0942 | -2.7659 | -2.7869 | | 0.5334 | 0.41 | 800 | 0.5677 | -0.4289 | -1.8968 | 0.7969 | 1.4679 | -275.9378 | -258.5242 | -2.7053 | -2.7265 | | 0.5251 | 0.46 | 900 | 0.5772 | -0.2116 | -1.3107 | 0.7344 | 1.0991 | -270.0768 | -256.3507 | -2.8463 | -2.8662 | | 0.5205 | 0.52 | 1000 | 0.5262 | -0.3792 | -1.8585 | 0.7188 | 1.4793 | -275.5552 | -258.0276 | -2.7893 | -2.7979 | | 0.5094 | 0.57 | 1100 | 0.5433 | -0.6279 | -1.9368 | 0.7969 | 1.3089 | -276.3377 | -260.5136 | -2.7453 | -2.7536 | | 0.5837 | 0.62 | 1200 | 0.5349 | -0.3780 | -1.9584 | 0.7656 | 1.5804 | -276.5542 | -258.0154 | -2.7643 | -2.7756 | | 0.5214 | 0.67 | 1300 | 0.5732 | -1.0055 | -2.2306 | 0.7656 | 1.2251 | -279.2761 | -264.2903 | -2.6986 | -2.7113 | | 0.6914 | 0.72 | 1400 | 0.5137 | -0.6912 | -2.1775 | 0.7969 | 1.4863 | -278.7448 | -261.1467 | -2.7166 | -2.7275 | | 0.4655 | 0.77 | 1500 | 0.5090 | -0.7987 | -2.2930 | 0.7031 | 1.4943 | -279.8999 | -262.2220 | -2.6651 | -2.6838 | | 0.5731 | 0.83 | 1600 | 0.5312 | -0.8253 | -2.3520 | 0.7812 | 1.5268 | -280.4902 | -262.4876 | -2.6543 | -2.6728 | | 0.5233 | 0.88 | 1700 | 0.5206 | -0.4573 | -2.0951 | 0.7812 | 1.6377 | -277.9205 | -258.8084 | -2.6870 | -2.7097 | | 0.5593 | 0.93 | 1800 | 0.5231 | -0.5508 | -2.2000 | 0.7969 | 1.6492 | -278.9703 | -259.7433 | -2.6221 | -2.6519 | | 0.4967 | 0.98 | 1900 | 0.5290 | -0.5340 | -1.9570 | 0.8281 | 1.4230 | -276.5395 | -259.5749 | -2.6564 | -2.6878 | | 0.0921 | 1.03 | 2000 | 0.5368 | -1.1376 | -3.1615 | 0.7812 | 2.0239 | -288.5854 | -265.6111 | -2.6040 | -2.6345 | | 0.0733 | 1.08 | 2100 | 0.5453 | -1.1045 | -3.4451 | 0.7656 | 2.3406 | -291.4208 | -265.2799 | -2.6289 | -2.6595 | | 0.0972 | 1.14 | 2200 | 0.5571 | -1.6915 | -3.9823 | 0.8125 | 2.2908 | -296.7934 | -271.1505 | -2.6471 | -2.6709 | | 0.1058 | 1.19 | 2300 | 0.5789 | -1.0621 | -3.8941 | 0.7969 | 2.8319 | -295.9106 | -264.8563 | -2.5527 | -2.5798 | | 0.2423 | 1.24 | 2400 | 0.5455 | -1.1963 | -3.5590 | 0.7812 | 2.3627 | -292.5599 | -266.1981 | -2.5414 | -2.5784 | | 0.1177 | 1.29 | 2500 | 0.5889 | -1.8141 | -4.3942 | 0.7969 | 2.5801 | -300.9120 | -272.3761 | -2.4802 | -2.5189 | | 0.1213 | 1.34 | 2600 | 0.5683 | -1.4608 | -3.8420 | 0.8125 | 2.3812 | -295.3901 | -268.8436 | -2.4774 | -2.5207 | | 0.0889 | 1.39 | 2700 | 0.5890 | -1.6007 | -3.7337 | 0.7812 | 2.1330 | -294.3068 | -270.2423 | -2.4123 | -2.4522 | | 0.0995 | 1.45 | 2800 | 0.6073 | -1.5519 | -3.8362 | 0.8281 | 2.2843 | -295.3315 | -269.7538 | -2.4685 | -2.5050 | | 0.1145 | 1.5 | 2900 | 0.5790 | -1.7939 | -4.2876 | 0.8438 | 2.4937 | -299.8461 | -272.1744 | -2.4272 | -2.4674 | | 0.0644 | 1.55 | 3000 | 0.5735 | -1.7285 | -4.2051 | 0.8125 | 2.4766 | -299.0209 | -271.5201 | -2.4193 | -2.4574 | | 0.0798 | 1.6 | 3100 | 0.5537 | -1.7226 | -4.2850 | 0.8438 | 2.5624 | -299.8200 | -271.4610 | -2.5367 | -2.5696 | | 0.1013 | 1.65 | 3200 | 0.5575 | -1.5715 | -3.9813 | 0.875 | 2.4098 | -296.7825 | -269.9498 | -2.4926 | -2.5267 | | 0.1254 | 1.7 | 3300 | 0.5905 | -1.6412 | -4.4703 | 0.8594 | 2.8291 | -301.6730 | -270.6473 | -2.5017 | -2.5340 | | 0.085 | 1.76 | 3400 | 0.6133 | -1.9159 | -4.6760 | 0.8438 | 2.7601 | -303.7296 | -273.3941 | -2.4614 | -2.4960 | | 0.065 | 1.81 | 3500 | 0.6074 | -1.8237 | -4.3525 | 0.8594 | 2.5288 | -300.4951 | -272.4724 | -2.4597 | -2.5004 | | 0.0755 | 1.86 | 3600 | 0.5836 | -1.9252 | -4.4005 | 0.8125 | 2.4753 | -300.9748 | -273.4872 | -2.4327 | -2.4716 | | 0.0746 | 1.91 | 3700 | 0.5789 | -1.9280 | -4.4906 | 0.8125 | 2.5626 | -301.8762 | -273.5149 | -2.4686 | -2.5115 | | 0.1348 | 1.96 | 3800 | 0.6015 | -1.8658 | -4.2428 | 0.8281 | 2.3769 | -299.3976 | -272.8936 | -2.4943 | -2.5393 | | 0.0217 | 2.01 | 3900 | 0.6122 | -2.3335 | -4.9229 | 0.8281 | 2.5894 | -306.1988 | -277.5699 | -2.4841 | -2.5272 | | 0.0219 | 2.07 | 4000 | 0.6522 | -2.9890 | -6.0164 | 0.8281 | 3.0274 | -317.1334 | -284.1248 | -2.4105 | -2.4545 | | 0.0119 | 2.12 | 4100 | 0.6922 | -3.4777 | -6.6749 | 0.7969 | 3.1972 | -323.7187 | -289.0121 | -2.4272 | -2.4699 | | 0.0153 | 2.17 | 4200 | 0.6993 | -3.2406 | -6.6775 | 0.7969 | 3.4369 | -323.7453 | -286.6413 | -2.4047 | -2.4465 | | 0.011 | 2.22 | 4300 | 0.7178 | -3.7991 | -7.4397 | 0.7656 | 3.6406 | -331.3667 | -292.2260 | -2.3843 | -2.4290 | | 0.0072 | 2.27 | 4400 | 0.6840 | -3.3269 | -6.8021 | 0.8125 | 3.4752 | -324.9908 | -287.5042 | -2.4095 | -2.4536 | | 0.0197 | 2.32 | 4500 | 0.7013 | -3.6890 | -7.3014 | 0.8125 | 3.6124 | -329.9841 | -291.1250 | -2.4118 | -2.4543 | | 0.0182 | 2.37 | 4600 | 0.7476 | -3.8994 | -7.5366 | 0.8281 | 3.6372 | -332.3356 | -293.2291 | -2.4163 | -2.4565 | | 0.0125 | 2.43 | 4700 | 0.7199 | -4.0560 | -7.5765 | 0.8438 | 3.5204 | -332.7345 | -294.7952 | -2.3699 | -2.4100 | | 0.0082 | 2.48 | 4800 | 0.7048 | -3.6613 | -7.1356 | 0.875 | 3.4743 | -328.3255 | -290.8477 | -2.3925 | -2.4303 | | 0.0118 | 2.53 | 4900 | 0.6976 | -3.7908 | -7.3152 | 0.8125 | 3.5244 | -330.1224 | -292.1431 | -2.3633 | -2.4047 | | 0.0118 | 2.58 | 5000 | 0.7198 | -3.9049 | -7.5557 | 0.8281 | 3.6508 | -332.5271 | -293.2844 | -2.3764 | -2.4194 | | 0.006 | 2.63 | 5100 | 0.7506 | -4.2118 | -7.9149 | 0.8125 | 3.7032 | -336.1194 | -296.3530 | -2.3407 | -2.3860 | | 0.0143 | 2.68 | 5200 | 0.7408 | -4.2433 | -7.9802 | 0.8125 | 3.7369 | -336.7721 | -296.6682 | -2.3509 | -2.3946 | | 0.0057 | 2.74 | 5300 | 0.7552 | -4.3392 | -8.0831 | 0.7969 | 3.7439 | -337.8013 | -297.6275 | -2.3388 | -2.3842 | | 0.0138 | 2.79 | 5400 | 0.7404 | -4.2395 | -7.9762 | 0.8125 | 3.7367 | -336.7322 | -296.6304 | -2.3286 | -2.3737 | | 0.0079 | 2.84 | 5500 | 0.7525 | -4.4466 | -8.2196 | 0.7812 | 3.7731 | -339.1662 | -298.7007 | -2.3200 | -2.3641 | | 0.0077 | 2.89 | 5600 | 0.7520 | -4.5586 | -8.3485 | 0.7969 | 3.7899 | -340.4545 | -299.8206 | -2.3078 | -2.3517 | | 0.0094 | 2.94 | 5700 | 0.7527 | -4.5542 | -8.3509 | 0.7812 | 3.7967 | -340.4790 | -299.7773 | -2.3062 | -2.3510 | | 0.0054 | 2.99 | 5800 | 0.7520 | -4.5169 | -8.3079 | 0.7812 | 3.7911 | -340.0493 | -299.4038 | -2.3081 | -2.3530 | ### Framework versions - Transformers 4.35.0.dev0 - Pytorch 2.0.1+cu118 - Datasets 2.12.0 - Tokenizers 0.14.0 ## Citation If you find Zephyr-7B-β is useful in your work, please cite it with: ``` @misc{tunstall2023zephyr, title={Zephyr: Direct Distillation of LM Alignment}, author={Lewis Tunstall and Edward Beeching and Nathan Lambert and Nazneen Rajani and Kashif Rasul and Younes Belkada and Shengyi Huang and Leandro von Werra and Clémentine Fourrier and Nathan Habib and Nathan Sarrazin and Omar Sanseviero and Alexander M. Rush and Thomas Wolf}, year={2023}, eprint={2310.16944}, archivePrefix={arXiv}, primaryClass={cs.LG} } ```
[ -0.4798845052719116, -0.7114339470863342, 0.21243789792060852, 0.21309584379196167, -0.16440723836421967, -0.18430814146995544, 0.049270495772361755, -0.5177043080329895, 0.14610563218593597, 0.3728148937225342, -0.5958175659179688, -0.47019267082214355, -0.2797452509403229, -0.0862724706530571, -0.16026422381401062, 0.9424009919166565, 0.09122341126203537, -0.20916032791137695, -0.0096730412915349, -0.2507530152797699, -0.23955856263637543, -0.4229312837123871, -0.6894921064376831, -0.22209766507148743, 0.39800968766212463, 0.13188514113426208, 0.8376291394233704, 0.45411667227745056, 0.18932220339775085, 0.31547680497169495, -0.12436024844646454, -0.15671014785766602, -0.47902989387512207, -0.09251881390810013, 0.12190774828195572, -0.25154030323028564, -0.5824189186096191, 0.0488673634827137, 0.5410813689231873, 0.189426988363266, -0.250392347574234, 0.12892839312553406, 0.0476691797375679, 0.739348828792572, -0.5074419379234314, 0.20887140929698944, -0.28564631938934326, 0.0363798663020134, -0.17986154556274414, 0.2597600221633911, -0.13938890397548676, -0.4435054659843445, 0.18958546221256256, -0.833797037601471, 0.3080449402332306, 0.0004575373895931989, 1.1725506782531738, 0.017958683893084526, -0.6388018727302551, 0.14272759854793549, -0.38075509667396545, 0.6337138414382935, -1.0017120838165283, 0.45539605617523193, 0.37611374258995056, 0.3420083820819855, -0.17985348403453827, -0.9442750215530396, -0.591814398765564, -0.04126117378473282, -0.1105467677116394, 0.347635418176651, -0.44676506519317627, 0.22461247444152832, 0.4534650146961212, 0.7204408049583435, -0.9785508513450623, -0.23216021060943604, -0.3213617205619812, -0.32074031233787537, 0.6951179504394531, 0.024813124909996986, 0.38414719700813293, -0.30598121881484985, -0.3081539273262024, -0.454791784286499, -0.6745074391365051, 0.0994952991604805, 0.24776774644851685, 0.048726748675107956, -0.5284200310707092, 0.45004457235336304, -0.3590804934501648, 0.5953049063682556, 0.15773168206214905, -0.102369524538517, 0.40342459082603455, -0.5347886085510254, -0.4443473219871521, -0.24203450977802277, 1.159096360206604, 0.4750863313674927, -0.23760034143924713, 0.13972152769565582, -0.05999462306499481, -0.011420334689319134, -0.07513207942247391, -1.1191023588180542, -0.5063410997390747, 0.4546738564968109, -0.41865479946136475, -0.29922521114349365, 0.019342973828315735, -0.8057498931884766, 0.03253130614757538, 0.01928088441491127, 0.613437831401825, -0.6774444580078125, -0.35057613253593445, 0.07531783729791641, -0.5984874963760376, 0.39108648896217346, 0.3170325458049774, -0.7434064745903015, 0.39035388827323914, 0.30307433009147644, 0.7351084351539612, 0.20348350703716278, -0.13563282787799835, -0.23055148124694824, 0.10010098665952682, -0.09579546749591827, 0.38934433460235596, -0.19484947621822357, -0.3951030671596527, -0.29679906368255615, 0.28785440325737, -0.044073060154914856, -0.22956018149852753, 0.6048633456230164, -0.3254656195640564, 0.5204164385795593, -0.6043791174888611, -0.628705620765686, -0.47515344619750977, 0.08886975795030594, -0.6948752403259277, 1.1951537132263184, 0.613028883934021, -0.8571003079414368, 0.3014797270298004, -0.5016793608665466, -0.09588618576526642, 0.062125951051712036, -0.04621724411845207, -0.5455983877182007, -0.09845615178346634, 0.19733235239982605, 0.27157536149024963, -0.3217068612575531, 0.005959745962172747, -0.35834598541259766, -0.22480244934558868, 0.09523449093103409, -0.37402042746543884, 1.2671934366226196, 0.20441073179244995, -0.5104008913040161, 0.05769866332411766, -0.6586182713508606, 0.22728963196277618, 0.4022398889064789, -0.13984428346157074, 0.035849519073963165, -0.2597404420375824, 0.20055904984474182, 0.24531957507133484, 0.14423911273479462, -0.361959308385849, 0.3148954212665558, -0.24508686363697052, 0.7172431945800781, 0.5392358899116516, 0.1282636523246765, 0.2803538739681244, -0.5662652850151062, 0.5609344244003296, 0.06658484786748886, 0.5682545304298401, 0.08490941673517227, -0.7517147660255432, -0.5832118391990662, -0.24706295132637024, 0.37655144929885864, 0.5420414209365845, -0.8246199488639832, 0.5066980719566345, -0.13456152379512787, -0.7837350368499756, -0.28037309646606445, -0.11293060332536697, 0.41832736134529114, 0.43581968545913696, 0.45053014159202576, -0.2778930962085724, -0.27847492694854736, -0.804360568523407, -0.0025471842382103205, -0.5100333094596863, 0.01364116184413433, 0.47647857666015625, 0.6027069687843323, -0.1667991280555725, 0.7243832945823669, -0.5674553513526917, -0.04449974000453949, -0.08011740446090698, -0.022422760725021362, 0.19820335507392883, 0.5692678689956665, 0.9229230880737305, -0.841046929359436, -0.5084409713745117, -0.165964737534523, -0.5984123349189758, -0.08351026475429535, 0.027988798916339874, -0.3883204162120819, 0.22014640271663666, -0.03837570175528526, -1.0400453805923462, 0.5156667828559875, 0.5332884788513184, -0.6787154078483582, 0.7916285991668701, -0.18621249496936798, 0.23175644874572754, -1.0783805847167969, 0.09534809738397598, 0.23578667640686035, -0.2683286666870117, -0.5687859058380127, 0.10409169644117355, 0.16357609629631042, 0.16589534282684326, -0.45700138807296753, 0.6896688938140869, -0.5709140300750732, 0.07119198888540268, 0.17527265846729279, -0.11597205698490143, 0.3798902630805969, 0.44326239824295044, -0.14078350365161896, 0.7795960307121277, 0.46869292855262756, -0.393848717212677, 0.4780888557434082, 0.37247130274772644, -0.028694046661257744, 0.14909636974334717, -0.8284693360328674, 0.0048734028823673725, 0.10713053494691849, 0.4189680814743042, -0.9279308915138245, -0.3195708394050598, 0.5826308131217957, -0.5652283430099487, 0.3847636580467224, -0.45445898175239563, -0.401874303817749, -0.4134644865989685, -0.5880218148231506, 0.3047637939453125, 0.8369624018669128, -0.3619121015071869, 0.4181205928325653, 0.3393705189228058, -0.010662131011486053, -0.535513162612915, -0.6064130067825317, -0.2727912366390228, -0.2924879491329193, -0.7309803366661072, 0.569646954536438, -0.11720524728298187, -0.03278273716568947, 0.06185358017683029, -0.020617889240384102, -0.059586357325315475, -0.13876473903656006, 0.35990437865257263, 0.3653867244720459, -0.2200850546360016, -0.16948524117469788, 0.20970779657363892, 0.10673167556524277, 0.023185668513178825, -0.3345465362071991, 0.39756470918655396, -0.22182556986808777, -0.024480139836668968, -0.28381431102752686, 0.16912296414375305, 0.5495225787162781, -0.02198656275868416, 0.6985341906547546, 0.8769421577453613, -0.4137022793292999, 0.07296156138181686, -0.529654324054718, -0.1806022971868515, -0.4841115176677704, 0.1250632107257843, -0.24245409667491913, -0.8165825009346008, 0.5878088474273682, 0.4026583135128021, 0.17190171778202057, 0.8496648669242859, 0.40699535608291626, 0.15876349806785583, 0.9811894297599792, 0.34586507081985474, -0.09401627629995346, 0.5627323985099792, -0.5010583400726318, -0.24817238748073578, -0.8007892370223999, -0.14717915654182434, -0.3500547707080841, -0.18149948120117188, -0.7613175511360168, -0.4769788086414337, 0.332659512758255, 0.36775830388069153, -0.6208226680755615, 0.5529873371124268, -0.7316024303436279, 0.16014929115772247, 0.5487799644470215, 0.2692798376083374, 0.11640899628400803, -0.03249257057905197, -0.1965707540512085, 0.012151895090937614, -0.5879493355751038, -0.20926138758659363, 1.0373698472976685, 0.3320279121398926, 0.5140765905380249, 0.29888391494750977, 0.4573051631450653, 0.041020553559064865, 0.2908465564250946, -0.4805472195148468, 0.4963201582431793, 0.0756709948182106, -0.7763886451721191, -0.2900155484676361, -0.7408568859100342, -0.8150250911712646, 0.3459146320819855, -0.15998181700706482, -0.7760365605354309, 0.43743181228637695, 0.08501080423593521, -0.3578242063522339, 0.24001401662826538, -0.8367956280708313, 1.1991182565689087, -0.1434248834848404, -0.42426469922065735, 0.07364118099212646, -0.7488322257995605, 0.42021721601486206, 0.21277934312820435, -0.07374806702136993, -0.2449212223291397, -0.1276835948228836, 0.8120675086975098, -0.8026166558265686, 0.6215609908103943, -0.43857014179229736, 0.09593195468187332, 0.4973226487636566, -0.17609676718711853, 0.49061283469200134, 0.1010032519698143, -0.032488007098436356, 0.2623555660247803, 0.5026145577430725, -0.5375492572784424, -0.41329842805862427, 0.5719289183616638, -0.8937336802482605, -0.39486950635910034, -0.504388153553009, -0.3840882480144501, -0.06149803474545479, 0.2180148959159851, 0.6042822599411011, 0.48932862281799316, -0.1646437793970108, 0.0587490014731884, 0.6578578352928162, -0.3279102146625519, 0.35569629073143005, 0.3451310992240906, -0.4255868196487427, -0.6288516521453857, 0.8527464270591736, 0.15984545648097992, 0.2678893506526947, 0.2190975844860077, 0.1915559470653534, -0.5087341070175171, -0.5275440216064453, -0.7451831102371216, 0.3171977698802948, -0.48747873306274414, -0.37261486053466797, -0.6592792272567749, -0.29044580459594727, -0.5649453401565552, 0.21677707135677338, -0.2512553632259369, -0.7140610814094543, -0.34540292620658875, 0.03155011311173439, 0.8308539390563965, 0.4052678644657135, -0.026623381301760674, 0.30121251940727234, -0.9180121421813965, 0.23700106143951416, 0.3206007778644562, 0.1640782356262207, -0.08054652810096741, -0.6759719848632812, -0.033568304032087326, 0.24047592282295227, -0.5773012042045593, -1.0570987462997437, 0.6488845348358154, 0.2527833878993988, 0.46545785665512085, 0.46466630697250366, 0.1733071506023407, 0.7128380537033081, -0.22318066656589508, 1.000036358833313, 0.2066679149866104, -0.8461824059486389, 0.5325242280960083, -0.5319288372993469, 0.24102289974689484, 0.4615846872329712, 0.5646362900733948, -0.3503824472427368, -0.26928406953811646, -0.8242439031600952, -0.7706522345542908, 0.42516767978668213, 0.44401848316192627, -0.10045525431632996, 0.09309443831443787, 0.5753844976425171, -0.08966818451881409, 0.11654478311538696, -0.6935860514640808, -0.5146418213844299, -0.41489988565444946, -0.1564488708972931, 0.08163011819124222, -0.06401250511407852, -0.18125291168689728, -0.5630417466163635, 0.9271686673164368, -0.15789952874183655, 0.5407467484474182, 0.3965984582901001, 0.04380790516734123, -0.08061391115188599, 0.1225067675113678, 0.37379342317581177, 0.6210176348686218, -0.3694387972354889, -0.22449827194213867, 0.027045119553804398, -0.7633455395698547, 0.04985906556248665, 0.4677759110927582, -0.25083982944488525, 0.020180296152830124, 0.08597101271152496, 0.7658451795578003, 0.06096920743584633, -0.3800077736377716, 0.5525617003440857, -0.3643116056919098, -0.38572758436203003, -0.2394552230834961, 0.31002652645111084, 0.24061895906925201, 0.34724098443984985, 0.29120925068855286, -0.1967562437057495, 0.3321264088153839, -0.544162392616272, 0.17979833483695984, 0.48506438732147217, -0.3474244773387909, -0.4292314648628235, 0.8476600646972656, -0.06146594509482384, 0.25030481815338135, 0.6487806439399719, -0.3140031397342682, -0.5280992388725281, 0.699920654296875, 0.4560946822166443, 0.7639533877372742, -0.16568487882614136, 0.19992248713970184, 0.552310585975647, 0.1468445062637329, -0.1100316047668457, 0.4570539593696594, -0.027634458616375923, -0.6542929410934448, -0.28481221199035645, -0.5544871091842651, -0.31709519028663635, 0.16282644867897034, -0.772352397441864, 0.05913912504911423, -0.43680667877197266, -0.45873862504959106, 0.05214408412575722, 0.39883190393447876, -0.5430030226707458, 0.2500384449958801, -0.022647637873888016, 0.998674213886261, -0.7729102373123169, 0.902543306350708, 0.599365770816803, -0.49267083406448364, -0.980502188205719, -0.16398777067661285, 0.2712397277355194, -0.5408226251602173, 0.14191842079162598, 0.0467706061899662, 0.41910403966903687, 0.11770482361316681, -0.552619457244873, -0.6953714489936829, 1.4986908435821533, 0.35408613085746765, -0.5312234163284302, -0.16041265428066254, -0.0887293666601181, 0.2905016839504242, -0.004315974190831184, 0.6721147298812866, 0.5818834900856018, 0.4328067898750305, 0.22812089323997498, -0.8532832264900208, 0.4747698903083801, -0.43212151527404785, 0.03323647752404213, 0.26499760150909424, -1.0267122983932495, 0.929061233997345, 0.03344626724720001, -0.16381043195724487, 0.10271987318992615, 0.6223797798156738, 0.45655372738838196, 0.01699596829712391, 0.3858959972858429, 0.8465591669082642, 0.725193202495575, -0.40329375863075256, 1.1154266595840454, -0.2557011842727661, 0.5493603348731995, 0.7152652740478516, -0.023369545117020607, 0.6671189069747925, 0.23529522120952606, -0.6008346080780029, 0.44368529319763184, 0.9248783588409424, -0.08471950143575668, 0.3216175436973572, -0.008384806104004383, -0.4276285469532013, -0.03172861412167549, 0.21261164546012878, -0.7724959254264832, -0.06541052460670471, 0.3886410892009735, -0.2957920432090759, 0.0050659384578466415, -0.23701368272304535, 0.04588489234447479, -0.7639263272285461, -0.11963585764169693, 0.5854635238647461, 0.22141262888908386, -0.3466070890426636, 0.7240353226661682, -0.08573203533887863, 0.6241819262504578, -0.5668043494224548, -0.14838653802871704, -0.290983647108078, 0.013173192739486694, -0.3044293224811554, -0.756529688835144, 0.08268701285123825, -0.24530965089797974, -0.15952257812023163, 0.04256945475935936, 0.8037567138671875, -0.2697444558143616, -0.39716947078704834, 0.3353880047798157, 0.4727399945259094, 0.25303542613983154, -0.27098146080970764, -1.0699467658996582, 0.2890070080757141, 0.05285906791687012, -0.683923065662384, 0.5309171080589294, 0.507887601852417, 0.20692549645900726, 0.5913723111152649, 0.5893837809562683, 0.008393188938498497, 0.1509447544813156, -0.07189548760652542, 0.9838100671768188, -0.7901270389556885, -0.2988811731338501, -0.6951350569725037, 0.5705154538154602, -0.13823918998241425, -0.4638698995113373, 0.8643385171890259, 0.6546058654785156, 0.6915761828422546, 0.06554677337408066, 0.7255630493164062, -0.4126543402671814, 0.2420879751443863, -0.3680635988712311, 0.767220139503479, -0.6100714802742004, 0.012178693898022175, -0.41101500391960144, -0.8438212871551514, -0.03210188448429108, 0.6180793642997742, -0.10682332515716553, 0.3161494731903076, 0.3590278923511505, 0.9070112705230713, -0.02947934716939926, 0.16603530943393707, 0.24198001623153687, 0.28317755460739136, 0.25356975197792053, 0.8110193610191345, 0.6437869071960449, -0.9730324745178223, 0.49035024642944336, -0.5228623151779175, -0.2907085418701172, -0.1513119339942932, -0.692659854888916, -0.709689736366272, -0.4734114408493042, -0.5654497742652893, -0.7268763780593872, 0.020034626126289368, 0.8062785863876343, 0.8387126922607422, -0.6606560349464417, -0.13113713264465332, -0.11798742413520813, -0.04060489311814308, -0.26084232330322266, -0.3490150570869446, 0.3511391580104828, 0.1919889599084854, -0.5676043033599854, 0.1741555631160736, 0.0780249610543251, 0.3534013330936432, -0.08296104520559311, -0.3626013994216919, -0.08542082458734512, -0.054036788642406464, 0.5686172246932983, 0.5548220276832581, -0.571852445602417, -0.15090329945087433, -0.1339985579252243, -0.13429661095142365, 0.20153877139091492, 0.3012945055961609, -0.6947109699249268, 0.10420344769954681, 0.6471935510635376, 0.1898598074913025, 0.81910640001297, 0.05072646588087082, 0.3489433825016022, -0.3983025848865509, 0.07758281379938126, 0.1808495968580246, 0.40445107221603394, 0.018886150792241096, -0.41438809037208557, 0.5299050807952881, 0.4340921640396118, -0.688679575920105, -0.7112641334533691, -0.16188347339630127, -1.2351516485214233, -0.22340896725654602, 1.05171537399292, -0.177265465259552, -0.39504769444465637, 0.053260792046785355, -0.23659886419773102, 0.35496199131011963, -0.5308229327201843, 0.20588889718055725, 0.4874730408191681, -0.2538803517818451, -0.47403526306152344, -0.82296222448349, 0.6798325777053833, 0.23845624923706055, -0.830776035785675, 0.02742956578731537, 0.6474268436431885, 0.5145756006240845, -0.025570008903741837, 0.7920839786529541, -0.3091784119606018, 0.3585721552371979, 0.1791127473115921, 0.09848224371671677, 0.03668753057718277, 0.12715187668800354, -0.3963161110877991, 0.0075907655991613865, -0.1817314326763153, 0.034259043633937836 ]
JackFram/llama-68m
JackFram
"2023-10-02T14:46:59Z"
19,245
6
transformers
[ "transformers", "pytorch", "llama", "text-generation", "license:other", "endpoints_compatible", "text-generation-inference", "region:us" ]
text-generation
"2023-07-19T02:20:03Z"
--- license: other ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
mrsinghania/asr-question-detection
mrsinghania
"2021-09-21T06:44:23Z"
19,204
4
transformers
[ "transformers", "pytorch", "bert", "text-classification", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
<i>Question vs Statement classifier</i> trained on more than 7k samples which were coming from spoken data in an interview setting <b>Code for using in Transformers:</b> from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mrsinghania/asr-question-detection") model = AutoModelForSequenceClassification.from_pretrained("mrsinghania/asr-question-detection")
[ -0.4283260703086853, -0.5570358633995056, 0.03740408271551132, 0.20247328281402588, -0.03130822256207466, 0.14265483617782593, 0.08648807555437088, -0.15766356885433197, -0.17815637588500977, 0.5663614869117737, -0.5948415994644165, -0.03180932253599167, -0.5627487897872925, 0.3697349727153778, -0.6992567181587219, 0.986763596534729, 0.24096737802028656, 0.2755436599254608, -0.32108011841773987, -0.12795251607894897, -0.5496991276741028, -0.6994562149047852, -0.619894802570343, -0.36334410309791565, 0.07297879457473755, 0.6821171045303345, 0.17448125779628754, 0.21689839661121368, 0.17277027666568756, 0.4966100752353668, 0.15292683243751526, -0.10206431895494461, -0.2561851143836975, 0.1183483824133873, 0.029708825051784515, -1.0180096626281738, 0.3022339940071106, 0.23894812166690826, 0.6110745072364807, 0.4523380398750305, -0.12608464062213898, 0.40416958928108215, -0.2448035627603531, 0.1297127902507782, -0.33122557401657104, 0.2935948073863983, -0.6269052624702454, 0.14078541100025177, 0.2697918713092804, -0.07601123303174973, -0.3893730938434601, -0.5175758600234985, 0.20959563553333282, -0.40015101432800293, 0.35456010699272156, 0.046994831413030624, 1.0948854684829712, 0.39140671491622925, -0.4088689684867859, -0.32544007897377014, -0.8192800283432007, 0.8578683137893677, -0.510388195514679, 0.3300507068634033, 0.3375787138938904, 0.7849067449569702, 0.3017479479312897, -1.0924216508865356, -1.1445975303649902, -0.06836891919374466, -0.1809442639350891, 0.1604776531457901, -0.07591893523931503, -0.07563900202512741, 0.7735617160797119, 0.5687503218650818, -0.5604081153869629, -0.08522730320692062, -0.8636813759803772, -0.19522184133529663, 0.39086607098579407, 0.05287528410553932, 0.09878569841384888, -0.5914692282676697, -0.4384012520313263, -0.6105881333351135, -0.04958195611834526, 0.20570018887519836, 0.2655782699584961, 0.057472363114356995, 0.17481881380081177, 0.613150954246521, -0.3253341317176819, 0.6830745935440063, 0.2975222170352936, -0.30451294779777527, 0.6041429042816162, -0.2739045321941376, -0.3531144857406616, 0.08907124400138855, 0.9224985241889954, 0.27087366580963135, 0.2525884509086609, 0.22217755019664764, -0.14338438212871552, 0.12835171818733215, 0.32673904299736023, -0.9747541546821594, -0.26763737201690674, 0.23214423656463623, -0.47860151529312134, -0.21768835186958313, 0.23713257908821106, -0.645078182220459, -0.1077241525053978, -0.4258010983467102, 0.4733176827430725, -0.363502562046051, -0.2736685574054718, 0.19866468012332916, -0.35086867213249207, 0.7309019565582275, 0.12535317242145538, -0.6441846489906311, 0.07772663235664368, 0.2259209156036377, 0.34567245841026306, 0.21662144362926483, -0.19393141567707062, -0.14891274273395538, -0.24882946908473969, -0.10081097483634949, 0.947220504283905, -0.4149061441421509, -0.5414251089096069, -0.11484808474779129, 0.24293678998947144, -0.6170983910560608, -0.6808703541755676, 0.6403916478157043, -0.3651348948478699, 0.7237529158592224, 0.008345554582774639, -0.7519660592079163, -0.35598024725914, 0.282140851020813, -0.4601414203643799, 1.3032021522521973, 0.1664913296699524, -0.4961998164653778, 0.5969732403755188, -0.6485942602157593, -0.34177297353744507, 0.009058631025254726, -0.40079864859580994, -0.4942742884159088, -0.11167767643928528, -0.00285708368755877, 0.2614997923374176, 0.09600061923265457, 0.3308297395706177, 0.17388029396533966, -0.48041439056396484, 0.5155106782913208, -0.5552597641944885, 0.886955976486206, 0.5042093396186829, -0.3838967978954315, -0.008783720433712006, -1.105799913406372, 0.20880405604839325, 0.08642058819532394, -0.6606987714767456, 0.008651567623019218, -0.2710694968700409, 0.1357916295528412, 0.40112337470054626, 0.12268614023923874, -0.6928660273551941, 0.22563645243644714, -0.5511718392372131, 0.3887542188167572, 0.3644145727157593, -0.05765079706907272, 0.12583771347999573, -0.3775525391101837, 0.5887769460678101, 0.2718409299850464, 0.046746209263801575, -0.23127014935016632, -0.48321622610092163, -1.1980855464935303, 0.14668290317058563, 0.386894166469574, 1.0011262893676758, -0.7981444001197815, 0.7886284589767456, -0.10817784070968628, -0.48023808002471924, -0.7229589819908142, -0.13574472069740295, 0.16640621423721313, 0.6188825964927673, 0.5361107587814331, 0.065325066447258, -0.9436975717544556, -0.959081768989563, -0.19722747802734375, -0.37800633907318115, -0.1888434737920761, 0.2172240912914276, 0.7535862326622009, -0.26906201243400574, 1.0716067552566528, -0.6812387108802795, -0.15213996171951294, -0.42060554027557373, 0.2739332318305969, 0.19966170191764832, 0.7212086915969849, 0.3156612813472748, -0.7463294267654419, -0.4806169867515564, -0.576744794845581, -0.5719984173774719, 0.08978573232889175, -0.3246167302131653, 0.04252947121858597, -0.011953831650316715, 0.9207530617713928, -0.5752047896385193, 0.4855179488658905, 0.07024310529232025, -0.16017751395702362, 0.5853033065795898, 0.05216354876756668, 0.18801824748516083, -1.4723551273345947, -0.053253885358572006, -0.09699972718954086, -0.21910035610198975, -0.5539255738258362, -0.05131976306438446, 0.06951707601547241, -0.1743423491716385, -0.39775973558425903, 0.03902459889650345, -0.3386818766593933, 0.2769394516944885, -0.2613368332386017, 0.04296142980456352, 0.029216641560196877, 0.49486276507377625, 0.011342177167534828, 0.8653107285499573, 0.539472222328186, -0.7948565483093262, 0.5883444547653198, 0.9789708852767944, -0.6111148595809937, 0.6521356701850891, -0.7206730842590332, 0.3881499171257019, -0.28364506363868713, 0.3129124939441681, -1.4214657545089722, -0.173483207821846, 0.33949437737464905, -0.7016590237617493, 0.23613809049129486, -0.0030672550201416016, -0.5439749360084534, -0.7213432788848877, -0.07325252890586853, 0.2509557902812958, 0.6828575730323792, -0.5992773175239563, 0.7713993787765503, 0.24397948384284973, 0.1587994545698166, -0.6202861666679382, -0.9176959991455078, -0.04008806496858597, -0.09782037883996964, -0.31702864170074463, -0.3688645362854004, -0.26169896125793457, 0.0643765926361084, -0.3558753430843353, -0.2244756817817688, -0.04658430442214012, -0.027039233595132828, 0.19745014607906342, 0.142421692609787, -0.343526691198349, 0.3987891972064972, -0.023495115339756012, -0.30889928340911865, 0.2133575677871704, -0.0934726893901825, 0.845893144607544, -0.11184924095869064, -0.4322907626628876, -0.43434852361679077, 0.29081037640571594, 0.14744684100151062, -0.0637110024690628, 0.7510634064674377, 0.724698543548584, -0.10470177233219147, -0.2599499821662903, -0.7060216665267944, -0.21795661747455597, -0.5209893584251404, 0.5131275057792664, -0.44915273785591125, -0.9165838360786438, 0.3302755355834961, -0.08333098888397217, -0.12309925258159637, 0.7480841279029846, 0.3656018376350403, -0.046416621655225754, 1.0931696891784668, 0.474879652261734, -0.29386550188064575, 0.5498352646827698, -0.3464811444282532, 0.3509548604488373, -0.4753420054912567, -0.3143996000289917, -0.8246293663978577, -0.07743162661790848, -0.59300696849823, -0.4201381206512451, 0.11530175805091858, -0.12001696974039078, -0.16296756267547607, 0.4611785411834717, -0.7667602896690369, 0.5525659322738647, 0.8080137968063354, -0.07086780667304993, 0.11359452456235886, -0.1424078792333603, 0.07992372661828995, 0.24183136224746704, -0.5125421285629272, -0.503536581993103, 1.0581680536270142, 0.30387353897094727, 0.6407377123832703, -0.19809521734714508, 0.46929770708084106, -0.12239506095647812, 0.2115478217601776, -0.942767322063446, 0.6738207340240479, 0.014624041505157948, -0.9425637722015381, -0.22643844783306122, -0.3753315210342407, -0.8983505964279175, 0.11180240660905838, -0.06254824995994568, -0.4677574634552002, 0.27914896607398987, -0.014348501339554787, -0.41971927881240845, 0.08390939235687256, -0.8439479470252991, 1.000430703163147, 0.028969241306185722, 0.6813297867774963, -0.06566359847784042, -1.0150192975997925, 0.1564256250858307, 0.08778610080480576, -0.09047257900238037, 0.15070942044258118, 0.4048425257205963, 0.982778787612915, -0.36606502532958984, 0.8820834755897522, -0.40706413984298706, 0.2896845042705536, 0.5869053602218628, -0.6286689639091492, 0.11494949460029602, -0.1950267106294632, 0.2579406499862671, -0.18537816405296326, 0.17932070791721344, -0.2270667999982834, -0.40394124388694763, 0.1144852265715599, -0.7957892417907715, -0.5668889880180359, -0.5972627997398376, -0.3187944293022156, -0.2432091236114502, 0.20267505943775177, 0.4971919357776642, 0.4994925558567047, -0.25131842494010925, 0.3386537432670593, 0.7693474888801575, -0.5492243766784668, 0.35031670331954956, 0.6391491889953613, -0.28141874074935913, -0.2294621467590332, 1.0527958869934082, 0.0646994560956955, 0.33276981115341187, 0.4113994538784027, 0.2600724995136261, -0.5557295680046082, -0.2679273188114166, -0.3877718150615692, 0.13531604409217834, -1.0206232070922852, -0.20700164139270782, -1.1121256351470947, -0.6961798667907715, -0.6551584005355835, 0.4585302770137787, 0.07198865711688995, -0.4871383011341095, -0.3383845388889313, -0.5708861351013184, 0.36211198568344116, 0.48699647188186646, -0.016897253692150116, 0.7770177721977234, -0.731368899345398, 0.5591623783111572, 0.6292977929115295, 0.1402965486049652, -0.2917095720767975, -0.6636852025985718, -0.25123217701911926, 0.09381646662950516, -0.3665728271007538, -0.6813288927078247, 0.3016548156738281, 0.3754088878631592, 0.6226069927215576, 0.4594421684741974, -0.1514933854341507, 0.6290372610092163, -0.21701692044734955, 0.9147932529449463, 0.060215383768081665, -0.8716357350349426, 0.5701130032539368, 0.2437831461429596, 0.3928740322589874, 0.9455804228782654, 0.4728182256221771, -0.6240452527999878, -0.4162531793117523, -0.7311813831329346, -0.6649762392044067, 0.8228771686553955, 0.013522595167160034, 0.2890564501285553, -0.17304879426956177, 0.2049454003572464, 0.26462554931640625, 0.57859206199646, -0.7357982397079468, -0.5866700410842896, -0.6474397778511047, -0.4639768600463867, -0.23112663626670837, -0.2726627290248871, 0.015387509018182755, -0.7086170315742493, 0.6249052882194519, -0.12639309465885162, 0.5202839970588684, 0.19322477281093597, -0.3377898633480072, 0.16837474703788757, 0.3538285493850708, 0.4655454158782959, 0.309085488319397, -0.15227508544921875, -0.028623491525650024, 0.236166313290596, -0.7153623700141907, 0.11539017409086227, 0.447295606136322, -0.25650399923324585, 0.14793819189071655, -0.02609429508447647, 1.0869855880737305, -0.21804361045360565, -0.7204629778862, 0.555263340473175, -0.36210304498672485, -0.33478304743766785, -0.7496436238288879, 0.2117754966020584, -0.04955899715423584, 0.1502174437046051, 0.4014294743537903, 0.15408548712730408, 0.3697279989719391, -0.672276496887207, 0.5272029042243958, 0.20054008066654205, -0.5187086462974548, 0.11586765199899673, 0.7423309087753296, -0.1697060912847519, -0.29376929998397827, 0.8685835599899292, -0.30387961864471436, -0.8054479360580444, 0.47911813855171204, 0.2958815395832062, 0.8089035153388977, -0.4588163495063782, 0.35466593503952026, 0.595560610294342, 0.19541750848293304, -0.11228892207145691, 0.4863075017929077, -0.22663722932338715, -1.015586495399475, -0.42664197087287903, -0.7877689003944397, -0.5043710470199585, 0.3005750775337219, -0.849623441696167, 0.01597077026963234, -0.4088285565376282, 0.011991479434072971, 0.18083837628364563, -0.18992716073989868, -0.7125526666641235, 0.6975430846214294, -0.027481166645884514, 0.9167124032974243, -0.7648242115974426, 0.7209531664848328, 0.6709046363830566, -0.8141494393348694, -1.1800881624221802, -0.24853010475635529, -0.34231582283973694, -1.1581403017044067, 0.679890513420105, 0.5488056540489197, 0.27845945954322815, 0.05674014240503311, -0.9701667428016663, -0.5652990341186523, 0.7869426012039185, -0.26291602849960327, -0.35380128026008606, 0.07642578333616257, 0.5871751308441162, 0.4927026629447937, -0.2549034357070923, 0.4304015040397644, 1.0641840696334839, 0.3856312334537506, 0.2542933523654938, -0.8539548516273499, -0.3071209192276001, -0.42196741700172424, -0.2834768295288086, 0.02689702808856964, -0.574047863483429, 0.9047428369522095, 0.10176537185907364, -0.2215403914451599, 0.15855227410793304, 0.6906991004943848, 0.16673137247562408, 0.23912830650806427, 0.8651354908943176, 0.586606502532959, 0.6716278195381165, -0.43613484501838684, 0.8928104043006897, -0.23162314295768738, 0.29706496000289917, 1.069616436958313, 0.07396764308214188, 0.6511929631233215, 0.19193615019321442, -0.38463786244392395, 0.6090739965438843, 0.6076490879058838, -0.5257706046104431, 0.26629793643951416, 0.38676944375038147, -0.19499053061008453, -0.24278520047664642, 0.15578486025333405, -0.34871968626976013, 0.5657947659492493, 0.3582455515861511, -0.3858858346939087, 0.03418812155723572, 0.3489185571670532, -0.07096885144710541, -0.21841420233249664, -0.1550750881433487, 0.9852985739707947, 0.11483655124902725, -0.7891449928283691, 0.6633705496788025, -0.16801710426807404, 0.6413141489028931, -0.5160316824913025, -0.05941564217209816, 0.014953798614442348, 0.2508681118488312, -0.17418938875198364, -0.7220079898834229, 0.3033367693424225, -0.27284514904022217, 0.0542304553091526, -0.1816708892583847, 0.8636409640312195, -0.5923077464103699, -0.5524640083312988, -0.2363954335451126, 0.5454908609390259, 0.5292492508888245, -0.11999103426933289, -0.8634536266326904, -0.46809718012809753, 0.17062188684940338, -0.2541012465953827, 0.05199924111366272, 0.3980185091495514, 0.4765206277370453, 0.7243263721466064, 0.45383888483047485, -0.3098691701889038, 0.4028300940990448, 0.41851806640625, 0.8477436900138855, -0.7234328985214233, -0.7060404419898987, -0.43649300932884216, 0.45762720704078674, -0.2667959928512573, -0.5070421099662781, 1.0839604139328003, 0.7868901491165161, 1.04202139377594, -0.31587842106819153, 0.9307981729507446, -0.17077262699604034, 0.9747664928436279, -0.30823346972465515, 0.3884641230106354, -0.3219470679759979, -0.07207728177309036, 0.027782956138253212, -0.6564738154411316, 0.20273137092590332, 1.139818787574768, -0.15647286176681519, 0.1870274841785431, 0.8239031434059143, 0.7262917757034302, 0.1075834259390831, 0.44323426485061646, 0.2794150114059448, 0.4166516363620758, 0.16752946376800537, 0.15295276045799255, 1.1232975721359253, -0.7054795622825623, 0.8542978763580322, -0.27993127703666687, 0.07426723837852478, -0.04014074057340622, -0.3186120390892029, -1.1968638896942139, -0.6118823885917664, -0.4095160663127899, -0.6641413569450378, -0.5188533067703247, 1.0404030084609985, 0.4869219660758972, -1.180186152458191, -0.3811804950237274, 0.02355942502617836, -0.218987375497818, -0.09978017956018448, -0.35068878531455994, 0.13829682767391205, -0.26767870783805847, -0.813882052898407, 0.39176878333091736, -0.2273581475019455, 0.3207326829433441, -0.3677632212638855, 0.45520415902137756, -0.2669471204280853, 0.2195005565881729, 0.4813370108604431, 0.21632927656173706, -0.17153233289718628, -0.5173194408416748, -0.028313156217336655, -0.037641674280166626, 0.39692312479019165, 0.661027193069458, -0.8801785111427307, 0.4033362567424774, 0.5083940625190735, 0.4651049077510834, 0.7773495316505432, 0.2605125308036804, 0.47875940799713135, -0.7795112729072571, 0.20603501796722412, 0.32499027252197266, 0.3102753162384033, 0.3185247480869293, -0.09459389001131058, 0.34905707836151123, 0.3986425995826721, -0.708143949508667, -0.750625491142273, 0.10900866985321045, -1.0403560400009155, -0.19329027831554413, 1.0228577852249146, 0.13867872953414917, -0.19155606627464294, -0.5151283144950867, -0.5462775230407715, 0.40270763635635376, -0.4131036698818207, 0.60680091381073, 0.6509196758270264, -0.016549531370401382, -0.09938224405050278, -0.7178531885147095, 0.6497047543525696, 0.29373452067375183, -0.8622934222221375, -0.4908050298690796, 0.2367730289697647, 0.5206034779548645, 0.4854775369167328, 0.5592932105064392, 0.06755097955465317, -0.027478603646159172, 0.20437945425510406, 0.1683443784713745, 0.14128920435905457, -0.05667713284492493, -0.26954925060272217, 0.22454260289669037, -0.14248184859752655, -0.7282119393348694 ]
lordtt13/emo-mobilebert
lordtt13
"2023-07-09T15:28:20Z"
19,174
3
transformers
[ "transformers", "pytorch", "tf", "safetensors", "mobilebert", "text-classification", "en", "dataset:emo", "arxiv:2004.02984", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: en datasets: - emo --- ## Emo-MobileBERT: a thin version of BERT LARGE, trained on the EmoContext Dataset from scratch ### Details of MobileBERT The **MobileBERT** model was presented in [MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices](https://arxiv.org/abs/2004.02984) by *Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, Denny Zhou* and here is the abstract: Natural Language Processing (NLP) has recently achieved great success by using huge pre-trained models with hundreds of millions of parameters. However, these models suffer from heavy model sizes and high latency such that they cannot be deployed to resource-limited mobile devices. In this paper, we propose MobileBERT for compressing and accelerating the popular BERT model. Like the original BERT, MobileBERT is task-agnostic, that is, it can be generically applied to various downstream NLP tasks via simple fine-tuning. Basically, MobileBERT is a thin version of BERT_LARGE, while equipped with bottleneck structures and a carefully designed balance between self-attentions and feed-forward networks. To train MobileBERT, we first train a specially designed teacher model, an inverted-bottleneck incorporated BERT_LARGE model. Then, we conduct knowledge transfer from this teacher to MobileBERT. Empirical studies show that MobileBERT is 4.3x smaller and 5.5x faster than BERT_BASE while achieving competitive results on well-known benchmarks. On the natural language inference tasks of GLUE, MobileBERT achieves a GLUEscore o 77.7 (0.6 lower than BERT_BASE), and 62 ms latency on a Pixel 4 phone. On the SQuAD v1.1/v2.0 question answering task, MobileBERT achieves a dev F1 score of 90.0/79.2 (1.5/2.1 higher than BERT_BASE). ### Details of the downstream task (Emotion Recognition) - Dataset 📚 SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text In this dataset, given a textual dialogue i.e. an utterance along with two previous turns of context, the goal was to infer the underlying emotion of the utterance by choosing from four emotion classes: - sad 😢 - happy 😃 - angry 😡 - others ### Model training The training script is present [here](https://github.com/lordtt13/transformers-experiments/blob/master/Custom%20Tasks/emo-mobilebert.ipynb). ### Pipelining the Model ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline tokenizer = AutoTokenizer.from_pretrained("lordtt13/emo-mobilebert") model = AutoModelForSequenceClassification.from_pretrained("lordtt13/emo-mobilebert") nlp_sentence_classif = transformers.pipeline('sentiment-analysis', model = model, tokenizer = tokenizer) nlp_sentence_classif("I've never had such a bad day in my life") # Output: [{'label': 'sad', 'score': 0.93153977394104}] ``` > Created by [Tanmay Thakur](https://github.com/lordtt13) | [LinkedIn](https://www.linkedin.com/in/tanmay-thakur-6bb5a9154/)
[ -0.28175756335258484, -0.5972639322280884, 0.1992524415254593, 0.34427058696746826, -0.16226421296596527, -0.2048770785331726, -0.3590509593486786, -0.321676641702652, 0.3339284360408783, 0.2465527355670929, -0.5832794904708862, -0.5469029545783997, -0.5772343277931213, 0.10717251151800156, -0.2373623549938202, 0.9351136684417725, 0.07615948468446732, -0.19340163469314575, -0.023070422932505608, -0.303255170583725, -0.11998306959867477, -0.5544372200965881, -0.7810697555541992, -0.3364432156085968, 0.45688849687576294, 0.5228357315063477, 0.5595996975898743, 0.3124319314956665, 0.18759994208812714, 0.2748926877975464, -0.10711147636175156, 0.06748238950967789, -0.37225332856178284, 0.3934752345085144, 0.2382553517818451, -0.46978652477264404, -0.5845969915390015, 0.03496282920241356, 0.15712416172027588, 0.13302801549434662, -0.07122611254453659, 0.2631660997867584, 0.010689792223274708, 0.7588623762130737, -0.8564608693122864, -0.05408107861876488, -0.7547867894172668, 0.3283945620059967, 0.2113131880760193, 0.09708105772733688, -0.5217843055725098, -0.3175162076950073, 0.21794745326042175, -0.33267706632614136, 0.11930739134550095, 0.015995342284440994, 0.9264087677001953, 0.488920122385025, -0.40915587544441223, -0.4220782220363617, -0.3453337550163269, 0.9049506783485413, -0.7274394035339355, 0.2763935327529907, 0.25809964537620544, -0.015941517427563667, 0.23342663049697876, -0.7613983154296875, -0.6663491725921631, -0.13232910633087158, 0.07990358024835587, 0.30708298087120056, -0.2505926489830017, 0.07259424775838852, 0.2645474076271057, 0.16087636351585388, -0.6219679117202759, -0.0598599873483181, -0.30620989203453064, -0.15707583725452423, 0.6710667014122009, 0.08758086711168289, 0.24165362119674683, -0.5719675421714783, -0.3507208526134491, -0.25521907210350037, -0.5386467576026917, 0.25382158160209656, 0.08650116622447968, 0.1210092082619667, -0.30301815271377563, 0.3924061059951782, -0.12388990074396133, 0.6671111583709717, 0.11777366697788239, -0.04215702787041664, 0.624060332775116, 0.0038893860764801502, -0.32848262786865234, 0.35391977429389954, 1.0919952392578125, 0.32594236731529236, 0.3408416509628296, 0.012068123556673527, -0.14907044172286987, -0.11300759762525558, 0.2122797667980194, -1.0943057537078857, -0.18865180015563965, 0.5813747644424438, -0.6375324130058289, -0.3556475341320038, -0.40722671151161194, -0.7709483504295349, -0.23623834550380707, -0.2100583165884018, 0.620227038860321, -0.5088903903961182, 0.08960844576358795, -0.016140788793563843, 0.04474516957998276, 0.08573267608880997, 0.1872822344303131, -1.0374382734298706, -0.10010698437690735, 0.36059701442718506, 0.9967508316040039, 0.13039550185203552, -0.17641623318195343, -0.475201278924942, -0.26295310258865356, 0.1488235890865326, 0.5383108258247375, -0.4617404639720917, -0.12964081764221191, 0.034456100314855576, 0.04077420011162758, -0.38420501351356506, -0.32497379183769226, 1.0481358766555786, -0.2264328896999359, 0.15458139777183533, 0.1640973836183548, -0.42092034220695496, -0.1658230870962143, 0.28141406178474426, -0.3353142738342285, 1.0728662014007568, 0.02976422943174839, -0.8894087672233582, 0.14299601316452026, -0.6848042607307434, -0.435121089220047, -0.4407123625278473, 0.18561185896396637, -0.4076349437236786, -0.05081845074892044, 0.4552508592605591, 0.8102455139160156, -0.3322923183441162, 0.04743236303329468, -0.45445507764816284, -0.37847837805747986, 0.17850613594055176, -0.1252216100692749, 0.9428707361221313, 0.3915976881980896, -0.4264494776725769, -0.11735362559556961, -0.9345451593399048, 0.2843065857887268, -0.08125786483287811, -0.1890925168991089, -0.2971474826335907, -0.14530007541179657, 0.145026296377182, 0.5620561838150024, 0.2381068468093872, -0.700150728225708, 0.15770134329795837, -0.5095817446708679, 0.7236109375953674, 0.4521401524543762, -0.34298446774482727, 0.5371882319450378, -0.13705895841121674, 0.39002376794815063, -0.2717032730579376, 0.1509687602519989, -0.2143164426088333, -0.2528410851955414, -0.9900157451629639, -0.3792017698287964, 0.48096808791160583, 0.7549832463264465, -0.647850751876831, 0.6567140817642212, -0.2826842665672302, -0.684285044670105, -0.7486266493797302, 0.008746678940951824, 0.20936596393585205, 0.42805710434913635, 0.41926875710487366, -0.05459755286574364, -0.7706530690193176, -0.7616565823554993, -0.384644478559494, -0.023088863119482994, -0.2676115334033966, 0.34364014863967896, 0.4841119050979614, -0.37901005148887634, 0.8826683163642883, -0.4124542474746704, -0.44837215542793274, -0.20559538900852203, 0.4325166940689087, 0.28245916962623596, 0.5746248960494995, 0.3965103030204773, -0.6779606938362122, -0.6290397047996521, -0.34879031777381897, -0.8551586866378784, -0.25982600450515747, -0.018535735085606575, 0.009830816648900509, 0.27767419815063477, 0.4637278616428375, -0.7039129734039307, 0.09682794660329819, 0.7190900444984436, -0.248430997133255, 0.19755424559116364, -0.11956340074539185, -0.0028480547480285168, -1.1636314392089844, -0.0071449000388383865, -0.041225533932447433, -0.138202503323555, -0.6678290367126465, -0.364707887172699, 0.058180052787065506, -0.2817283570766449, -0.49984079599380493, 0.559463381767273, -0.21834078431129456, 0.12813445925712585, -0.2501269578933716, 0.3820488154888153, 0.0584435798227787, 0.694350004196167, -0.03483794629573822, 0.4517914056777954, 0.4547751247882843, -0.4896757900714874, 0.24882735311985016, 0.4189559817314148, -0.00736645981669426, 0.3748987317085266, -0.8386823534965515, 0.25783753395080566, -0.15765245258808136, 0.34028735756874084, -0.8255146741867065, -0.026865389198064804, 0.2768324911594391, -0.6712096333503723, 0.12027950584888458, -0.14153924584388733, -0.4961036145687103, -0.22801291942596436, -0.3696141242980957, 0.0864008367061615, 0.7015241384506226, -0.659079909324646, 1.021776556968689, 0.3038015365600586, -0.08187541365623474, -0.6317809224128723, -0.6814208626747131, -0.10900475084781647, -0.24578340351581573, -0.9399884939193726, 0.5077250599861145, 0.10745085775852203, 0.07274497300386429, -0.27518999576568604, -0.07930146157741547, -0.2240547239780426, -0.012800506316125393, 0.5583940744400024, 0.0961066409945488, 0.021542884409427643, 0.6128319501876831, 0.15439373254776, 0.14769059419631958, 0.050507668405771255, 0.02320515550673008, 0.5874321460723877, -0.37980005145072937, 0.3855544328689575, -0.42188042402267456, -0.05561001971364021, 0.5803961157798767, -0.08398071676492691, 0.9340741634368896, 1.0152745246887207, -0.18252773582935333, -0.15234458446502686, -0.36251387000083923, -0.10949060320854187, -0.48865944147109985, 0.15549056231975555, -0.3352060914039612, -0.8507417440414429, 0.4424625635147095, 0.009007136337459087, 0.05179246887564659, 0.5741811394691467, 0.575514554977417, -0.013999830931425095, 0.9699255228042603, 0.4569236934185028, -0.07326439023017883, 0.5266709923744202, -0.4084051847457886, 0.2017887979745865, -0.8455290794372559, -0.1414741724729538, -0.5587887763977051, -0.2447293996810913, -0.7015580534934998, -0.20709772408008575, 0.19595016539096832, 0.05290377885103226, -0.4963582456111908, 0.5384561419487, -0.6868208050727844, 0.002023676410317421, 0.3824889063835144, 0.20930317044258118, 0.014827392995357513, 0.07738499343395233, -0.06976357847452164, -0.10424837470054626, -0.9089965224266052, -0.5538250207901001, 1.088611125946045, 0.4388236701488495, 0.8189188241958618, -0.07234642654657364, 0.8460485339164734, 0.25203755497932434, 0.44257768988609314, -0.7769911289215088, 0.5076348185539246, -0.2903502285480499, -0.5330049991607666, -0.127425417304039, -0.5019688010215759, -0.9311640858650208, 0.43884092569351196, -0.4676629304885864, -0.9386048913002014, 0.22730721533298492, 0.23491553962230682, -0.3213984966278076, -0.003000090830028057, -0.9959633946418762, 0.998403787612915, -0.0954064205288887, -0.5041549205780029, -0.11960452049970627, -0.8030468821525574, 0.20416630804538727, -0.05120023712515831, 0.11818902939558029, -0.34498560428619385, 0.11365912109613419, 0.83116215467453, -0.3920574188232422, 0.8172460198402405, -0.2304680496454239, -0.04198658466339111, 0.41344717144966125, -0.09670516848564148, 0.5968188643455505, 0.11277908086776733, -0.3271564841270447, 0.04159950092434883, -0.05265118181705475, -0.237909197807312, -0.661014199256897, 0.717639148235321, -0.8671207427978516, -0.24159105122089386, -0.33707180619239807, -0.4491543471813202, -0.07743291556835175, -0.11644544452428818, 0.4836037755012512, 0.3872227370738983, 0.04246939718723297, 0.29929327964782715, 0.4132952392101288, -0.336528480052948, 0.612610936164856, 0.3521440327167511, 0.07086380571126938, -0.40935295820236206, 0.8505698442459106, -0.04728104919195175, 0.04351188614964485, 0.40918758511543274, 0.10958340018987656, -0.35414186120033264, 0.06805521249771118, -0.34840771555900574, 0.05150461569428444, -0.6665236949920654, -0.21509361267089844, -1.1465668678283691, -0.16197316348552704, -0.4051636755466461, -0.23970897495746613, -0.7071064710617065, -0.7342285513877869, -0.40827807784080505, 0.3084702491760254, 0.37225341796875, 0.1230328232049942, -0.020529363304376602, 0.4824722707271576, -0.9915303587913513, 0.08609024435281754, 0.21875549852848053, -0.014188192784786224, 0.13794691860675812, -0.8216144442558289, -0.2720630466938019, 0.1638704389333725, -0.5977455973625183, -0.6113667488098145, 0.7027510404586792, 0.4189864695072174, 0.0742216557264328, 0.35312342643737793, 0.3161830008029938, 0.3793049156665802, -0.40721991658210754, 0.5955582857131958, 0.29142680764198303, -1.2211723327636719, 0.57033371925354, -0.09066470712423325, 0.3677312135696411, 0.6081769466400146, 0.5699169039726257, -0.49196580052375793, -0.31549012660980225, -0.7652783393859863, -1.0622053146362305, 0.6357825398445129, 0.5266419649124146, 0.19573965668678284, 0.24386584758758545, 0.19312100112438202, -0.11462026834487915, 0.3137538731098175, -1.0038217306137085, -0.33700913190841675, -0.4495672583580017, -0.5777281522750854, -0.01010525319725275, -0.20409823954105377, 0.10585971176624298, -0.37761804461479187, 0.6273012757301331, 0.03246608003973961, 0.6189300417900085, 0.5840626358985901, -0.3675772249698639, 0.2402549535036087, 0.44404956698417664, 0.5389638543128967, 0.2255292385816574, -0.5812678337097168, 0.0975065603852272, 0.2706686556339264, -0.4347230792045593, 0.2575928568840027, 0.26429933309555054, 0.05163007229566574, 0.2129877805709839, 0.27034538984298706, 0.9170876741409302, -0.04284757003188133, -0.7696164846420288, 0.4778275191783905, -0.07012233138084412, -0.2825342118740082, -0.43568897247314453, 0.14737729728221893, -0.11977944523096085, 0.452769011259079, 0.3488273620605469, 0.10372185707092285, 0.2342987209558487, -0.5397467017173767, 0.07656829059123993, 0.07239094376564026, -0.5525920987129211, -0.3451920747756958, 0.6214904189109802, 0.446557879447937, -0.30829349160194397, 0.4885278344154358, -0.2615651488304138, -0.849559485912323, 0.6372015476226807, 0.45044374465942383, 0.9421374201774597, -0.08528684824705124, 0.26052790880203247, 0.5835858583450317, 0.23422813415527344, -0.020004753023386, 0.2578904628753662, -0.14966514706611633, -0.8413364291191101, -0.4184553027153015, -0.586535632610321, -0.36208558082580566, -0.05716059356927872, -0.42336615920066833, 0.150774285197258, -0.2728676199913025, -0.22821269929409027, 0.04081130027770996, -0.10457321256399155, -0.5201893448829651, 0.43191686272621155, 0.0879768580198288, 0.7109095454216003, -0.7193761467933655, 0.8425288200378418, 0.6773437261581421, -0.21639513969421387, -0.8519285321235657, 0.09212172031402588, -0.3060154914855957, -0.5918998122215271, 1.1001156568527222, 0.5251432061195374, -0.033288661390542984, 0.010040915571153164, -0.46836304664611816, -0.6099432706832886, 1.0097880363464355, 0.1530778557062149, -0.5730934143066406, 0.0636117085814476, -0.144621804356575, 0.6900831460952759, -0.6499122381210327, 0.5603070855140686, 0.33521875739097595, 0.20401668548583984, 0.04511206969618797, -0.721903383731842, 0.21744558215141296, -0.24137763679027557, -0.23063862323760986, 0.2139919400215149, -0.9361428618431091, 1.0206903219223022, -0.20614050328731537, 0.05103745684027672, -0.14608898758888245, 0.5001709461212158, 0.19275729358196259, 0.45342832803726196, 0.6095489859580994, 0.6670064330101013, 0.6642168164253235, 0.0005300540360622108, 0.8076342344284058, -0.4687483608722687, 0.7778738141059875, 0.9648408889770508, -0.18746015429496765, 0.9574703574180603, 0.3552187979221344, 0.035933397710323334, 0.6160874962806702, 0.6286243796348572, -0.22067220509052277, 0.5811884999275208, 0.08838111907243729, -0.364018052816391, -0.19065622985363007, 0.015688475221395493, -0.27545300126075745, 0.637865424156189, 0.19242282211780548, -0.710715115070343, 0.044689733535051346, 0.23539260029792786, 0.22300322353839874, -0.32324784994125366, -0.2793009281158447, 0.2687841057777405, 0.2657145857810974, -0.6582848429679871, 1.0417994260787964, 0.057923827320337296, 0.9167019128799438, -0.25627708435058594, 0.19473840296268463, -0.08302716165781021, 0.22742155194282532, -0.2537670135498047, -0.3385997712612152, 0.19148759543895721, 0.09025359153747559, -0.051539819687604904, -0.2705508768558502, 0.8913983702659607, -0.4137779772281647, -0.2430199831724167, 0.35314810276031494, 0.28546497225761414, 0.20127317309379578, -0.20317739248275757, -0.8209078311920166, 0.009373961947858334, 0.17908141016960144, -0.44960057735443115, 0.060048673301935196, 0.3545638620853424, 0.4932675361633301, 0.8522300720214844, 0.29360562562942505, -0.34060341119766235, -0.06986430287361145, -0.10349249839782715, 0.770529568195343, -0.6904343366622925, -0.3273167014122009, -0.9165991544723511, 0.4857035279273987, -0.17256967723369598, -0.42030808329582214, 0.6691571474075317, 0.4371528923511505, 0.5080205798149109, -0.21830488741397858, 0.6372151374816895, -0.5158833861351013, 0.4233306646347046, -0.5202319622039795, 0.7135220766067505, -0.852895200252533, 0.15617495775222778, -0.31682151556015015, -0.8070961833000183, -0.07553523778915405, 0.9109805226325989, -0.39663970470428467, 0.029907720163464546, 0.779296875, 0.6995020508766174, 0.052170999348163605, 0.12287469953298569, 0.14287105202674866, 0.2562131881713867, -0.03187830373644829, 0.7368303537368774, 0.6475204825401306, -0.8037429451942444, 0.8697437047958374, -0.2592477798461914, 0.07250704616308212, -0.4298347532749176, -0.7174480557441711, -1.2115535736083984, -0.4607573449611664, -0.34983256459236145, -0.5666075348854065, 0.13135600090026855, 1.1487642526626587, 0.6912020444869995, -0.5012919306755066, -0.0184538085013628, -0.16938331723213196, 0.1546453833580017, 0.1526283621788025, -0.23637527227401733, 0.4215480387210846, -0.4376828670501709, -0.8459147810935974, 0.10722291469573975, -0.015498143620789051, 0.008171763271093369, 0.28873229026794434, -0.019097549840807915, -0.18346162140369415, -0.05450853705406189, 0.849602460861206, 0.13537901639938354, -0.35598066449165344, -0.11455179005861282, 0.021317848935723305, -0.20158852636814117, 0.25764161348342896, 0.6331779956817627, -0.6817302703857422, 0.3156142234802246, 0.45638740062713623, 0.4918191134929657, 0.7719610333442688, -0.19481059908866882, 0.5033925771713257, -0.7698273658752441, 0.3856280744075775, 0.20322173833847046, 0.32316792011260986, 0.2874683141708374, -0.23635253310203552, 0.6681898236274719, 0.05501985549926758, -0.8240559697151184, -0.7339604496955872, -0.0320763923227787, -1.017716407775879, -0.17789292335510254, 1.0893347263336182, -0.22961190342903137, -0.17332100868225098, 0.14102895557880402, -0.2816496193408966, 0.4511343538761139, -0.7182419300079346, 0.8762031197547913, 0.5600990056991577, -0.18037669360637665, -0.40447190403938293, -0.675269365310669, 0.48473289608955383, 0.7401136159896851, -0.7723363637924194, -0.17672640085220337, 0.06911536306142807, 0.13170604407787323, 0.2630106508731842, 0.47501298785209656, 0.3192073702812195, 0.09560991823673248, -0.010500992648303509, 0.53426194190979, 0.1556709259748459, 0.03430609032511711, -0.26418536901474, 0.3396683931350708, -0.32798412442207336, -0.25201910734176636 ]
bigcode/gpt_bigcode-santacoder
bigcode
"2023-06-08T09:20:22Z"
19,067
23
transformers
[ "transformers", "pytorch", "safetensors", "gpt_bigcode", "text-generation", "code", "dataset:bigcode/the-stack", "license:openrail", "model-index", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-04-06T01:35:04Z"
--- license: openrail datasets: - bigcode/the-stack language: - code programming_language: - Java - JavaScript - Python pipeline_tag: text-generation inference: false model-index: - name: SantaCoder results: - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL HumanEval (Python) metrics: - name: pass@1 type: pass@1 value: 0.18 verified: false - name: pass@10 type: pass@10 value: 0.29 verified: false - name: pass@100 type: pass@100 value: 0.49 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL MBPP (Python) metrics: - name: pass@1 type: pass@1 value: 0.35 verified: false - name: pass@10 type: pass@10 value: 0.58 verified: false - name: pass@100 type: pass@100 value: 0.77 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL HumanEval (JavaScript) metrics: - name: pass@1 type: pass@1 value: 0.16 verified: false - name: pass@10 type: pass@10 value: 0.27 verified: false - name: pass@100 type: pass@100 value: 0.47 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL MBPP (Javascript) metrics: - name: pass@1 type: pass@1 value: 0.28 verified: false - name: pass@10 type: pass@10 value: 0.51 verified: false - name: pass@100 type: pass@100 value: 0.70 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL HumanEval (Java) metrics: - name: pass@1 type: pass@1 value: 0.15 verified: false - name: pass@10 type: pass@10 value: 0.26 verified: false - name: pass@100 type: pass@100 value: 0.41 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL MBPP (Java) metrics: - name: pass@1 type: pass@1 value: 0.28 verified: false - name: pass@10 type: pass@10 value: 0.44 verified: false - name: pass@100 type: pass@100 value: 0.59 verified: false - task: type: text-generation dataset: type: loubnabnl/humaneval_infilling name: HumanEval FIM (Python) metrics: - name: single_line type: exact_match value: 0.44 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL HumanEval FIM (Java) metrics: - name: single_line type: exact_match value: 0.62 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL HumanEval FIM (JavaScript) metrics: - name: single_line type: exact_match value: 0.60 verified: false - task: type: text-generation dataset: type: code_x_glue_ct_code_to_text name: CodeXGLUE code-to-text (Python) metrics: - name: BLEU type: bleu value: 18.13 verified: false --- # SantaCoder ![banner](https://huggingface.co/datasets/bigcode/admin/resolve/main/banner.png) Play with the model on the [SantaCoder Space Demo](https://huggingface.co/spaces/bigcode/santacoder-demo). # Table of Contents 1. [Model Summary](#model-summary) 2. [Use](#use) 3. [Limitations](#limitations) 4. [Training](#training) 5. [License](#license) 6. [Citation](#citation) # Model Summary This is the same model as [SantaCoder](https://huggingface.co/bigcode/santacoder) but it can be loaded with transformers >=4.28.1 to use the GPTBigCode architecture. We refer the reader to the [SantaCoder model page](https://huggingface.co/bigcode/santacoder) for full documentation about this model - **Repository:** [bigcode/Megatron-LM](https://github.com/bigcode-project/Megatron-LM) - **Project Website:** [bigcode-project.org](www.bigcode-project.org) - **Paper:** [🎅SantaCoder: Don't reach for the stars!🌟](https://t.co/YV3pzUbYOr) - **Point of Contact:** [contact@bigcode-project.org](mailto:contact@bigcode-project.org) - **Languages:** Python, Java, and JavaScript There are two versions (branches) of the model: * `main`: Uses the `gpt_bigcode` model. [Requires the bigcode fork of transformers](https://github.com/bigcode-project/transformers). * `main_custom`: Packaged with its modeling code. Requires `transformers>=4.27`. Alternatively, it can run on older versions by setting the configuration parameter `activation_function = "gelu_pytorch_tanh"`. # Use ## Intended use The model was trained on GitHub code. As such it is _not_ an instruction model and commands like "Write a function that computes the square root." do not work well. You should phrase commands like they occur in source code such as comments (e.g. `# the following function computes the sqrt`) or write a function signature and docstring and let the model complete the function body. ### Attribution & Other Requirements The pretraining dataset of the model was filtered for permissive licenses only. Nevertheless, the model can generate source code verbatim from the dataset. The code's license might require attribution and/or other specific requirements that must be respected. We provide a [search index](https://huggingface.co/spaces/bigcode/santacoder-search) that let's you search through the pretraining data to identify where generated code came from and apply the proper attribution to your code. # Limitations The model has been trained on source code in Python, Java, and JavaScript. The predominant language in source is English although other languages are also present. As such the model is capable to generate code snippets provided some context but the generated code is not guaranteed to work as intended. It can be inefficient, contain bugs or exploits. # Training ## Model - **Architecture:** GPT-2 model with multi-query attention and Fill-in-the-Middle objective - **Pretraining steps:** 600K - **Pretraining tokens:** 236 billion - **Precision:** float16 ## Hardware - **GPUs:** 96 Tesla V100 - **Training time:** 6.2 days - **Total FLOPS:** 2.1 x 10e21 ## Software - **Orchestration:** [Megatron-LM](https://github.com/bigcode-project/Megatron-LM) - **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch) - **FP16 if applicable:** [apex](https://github.com/NVIDIA/apex) # License The model is licenses under the CodeML Open RAIL-M v0.1 license. You can find the full license [here](https://huggingface.co/spaces/bigcode/license).
[ -0.38299494981765747, -0.38322898745536804, 0.2643178701400757, 0.12853363156318665, -0.2595363259315491, -0.2092437744140625, -0.30733147263526917, -0.486296683549881, 0.0033555636182427406, 0.2617568075656891, -0.5457547903060913, -0.5074934363365173, -0.6601478457450867, -0.1537325084209442, -0.24710071086883545, 1.3235530853271484, -0.021759333088994026, 0.07978975772857666, -0.2331555038690567, 0.17289404571056366, -0.10659903287887573, -0.7275881767272949, -0.3190856873989105, -0.3387138545513153, 0.3479137122631073, 0.1776398867368698, 0.9000885486602783, 0.42893049120903015, 0.45645996928215027, 0.29621416330337524, -0.27414262294769287, -0.2734764814376831, -0.29817432165145874, -0.5068318247795105, -0.12213488668203354, -0.28458279371261597, -0.6010926961898804, -0.08567582815885544, 0.4435446560382843, -0.06808411329984665, -0.22625678777694702, 0.49873530864715576, -0.2577473819255829, 0.3269878029823303, -0.35660699009895325, 0.4783330261707306, -0.45239919424057007, -0.012987162917852402, 0.3609797954559326, 0.3064855933189392, -0.15420207381248474, -0.4401988983154297, -0.07364317774772644, -0.5699530243873596, 0.46541836857795715, -0.10919621586799622, 1.156247854232788, 0.23385678231716156, -0.22096003592014313, -0.25007423758506775, -0.7938926219940186, 0.5362749099731445, -0.7164255976676941, 0.40215736627578735, 0.37172719836235046, 0.5814340114593506, 0.35591086745262146, -1.060485601425171, -0.5570634603500366, -0.5712040066719055, -0.1792174130678177, 0.0023028659634292126, -0.3663296699523926, -0.22861570119857788, 0.702506959438324, 0.2965136468410492, -0.8463689088821411, 0.015249516814947128, -0.6413052678108215, 0.05467294901609421, 0.740565299987793, -0.031522274017333984, 0.20731928944587708, -0.43798336386680603, -0.49358323216438293, -0.3192581832408905, -0.7167544364929199, -0.05244746804237366, 0.2597421407699585, 0.03936222940683365, -0.44380566477775574, 0.5541967153549194, 0.21373812854290009, 0.31884047389030457, 0.006593884434551001, 0.0729711577296257, 0.5647670030593872, -0.323037713766098, -0.466506689786911, -0.05888443440198898, 0.9492687582969666, 0.1724553108215332, 0.33980923891067505, -0.07478703558444977, -0.374406099319458, -0.16773584485054016, 0.48367318511009216, -0.9457296133041382, -0.4010602533817291, 0.21647894382476807, -0.12536241114139557, -0.0798075944185257, 0.19722184538841248, -0.6166269183158875, 0.1197308599948883, -0.3054855763912201, 0.5042845010757446, -0.35752224922180176, -0.41342398524284363, 0.27244681119918823, -0.03861880674958229, 0.3214874267578125, 0.14006996154785156, -0.9188174605369568, 0.20145906507968903, 0.6934142112731934, 0.7379438281059265, 0.41200700402259827, -0.4448341727256775, -0.02224893681704998, 0.02907205931842327, -0.08175766468048096, 0.09888577461242676, -0.13336831331253052, -0.26925963163375854, -0.14131072163581848, 0.3400146961212158, -0.017686747014522552, -0.43518510460853577, 0.3528895080089569, -0.8421449661254883, 0.24949225783348083, 0.11927121877670288, -0.2704242169857025, -0.28429079055786133, 0.11861464381217957, -0.7425727844238281, 0.9491549134254456, 0.4821600914001465, -0.6783178448677063, 0.20144793391227722, -0.8737711310386658, -0.3271763324737549, 0.01789189502596855, 0.048724908381700516, -0.8548157811164856, 0.02650921419262886, 0.1752493530511856, 0.4131673276424408, -0.2727133333683014, 0.5630684494972229, -0.040532611310482025, -0.3621368110179901, 0.24969184398651123, -0.2088482677936554, 0.8958902955055237, 0.20355229079723358, -0.7220473289489746, 0.32444795966148376, -0.5869135856628418, -0.04351180046796799, 0.5764203667640686, -0.003035598434507847, 0.1967674046754837, -0.35859236121177673, 0.43966910243034363, 0.4743833839893341, 0.3012230098247528, -0.40748339891433716, 0.457547664642334, -0.3035661578178406, 0.6767773628234863, 0.49052807688713074, -0.37591028213500977, 0.1979406177997589, -0.09283581376075745, 0.7301144003868103, 0.011852962896227837, 0.3928719162940979, -0.050466228276491165, -0.517085075378418, -0.5114634037017822, -0.2542618215084076, 0.5607153177261353, 0.4043172597885132, -0.6782728433609009, 0.8411145210266113, -0.44999217987060547, -0.6420130729675293, -0.33341890573501587, -0.1036449745297432, 0.5552240610122681, 0.0184521172195673, 0.527448832988739, -0.19234491884708405, -0.5473029017448425, -0.781920850276947, 0.5080372095108032, 0.020987996831536293, -0.19161055982112885, 0.2446061074733734, 1.1213431358337402, -0.46282830834388733, 0.7388448715209961, -0.6286916136741638, 0.05361202731728554, -0.3432822823524475, -0.07810620963573456, 0.48318490386009216, 0.7081006169319153, 0.6452873945236206, -0.8440849781036377, -0.2875942885875702, 0.05993393436074257, -0.6191000938415527, 0.39314353466033936, 0.08158490061759949, 0.10952924191951752, 0.017486652359366417, 0.32764139771461487, -1.2160496711730957, 0.715255856513977, 0.594608724117279, -0.29044780135154724, 0.85579514503479, -0.15334466099739075, -0.0183250792324543, -1.140004277229309, 0.4734030067920685, 0.11020389944314957, -0.3124695420265198, -0.25642043352127075, 0.3445571959018707, 0.21159620583057404, -0.3698805272579193, -0.5284826159477234, 0.3801160156726837, -0.2712443768978119, -0.14328697323799133, -0.14559125900268555, -0.24240711331367493, -0.022335834801197052, 0.562014102935791, 0.026648269966244698, 1.0334911346435547, 0.709791362285614, -0.5168586373329163, 0.5488705039024353, 0.4010675251483917, -0.31257519125938416, -0.09916957467794418, -1.1493078470230103, 0.1534705013036728, 0.022056151181459427, 0.3355281949043274, -0.9077165722846985, -0.3739713728427887, 0.5539552569389343, -0.6852158904075623, 0.37442296743392944, -0.3914581537246704, -0.7703521251678467, -0.8357438445091248, -0.10831503570079803, 0.3967795968055725, 0.883446216583252, -0.753832221031189, 0.3680633008480072, 0.178831085562706, 0.0518123060464859, -0.5111185312271118, -0.6653047204017639, -0.04118053615093231, -0.22653257846832275, -0.6613023281097412, 0.3914927542209625, -0.07144439220428467, 0.20653881132602692, 0.09064655750989914, 0.02692718803882599, -0.14686787128448486, -0.10996991395950317, 0.39653095602989197, 0.34419122338294983, -0.29793328046798706, 0.07540380209684372, -0.39125093817710876, -0.35598671436309814, 0.23138466477394104, -0.5108481049537659, 0.6487507820129395, -0.2907237410545349, -0.3489745557308197, -0.45074743032455444, 0.005845965351909399, 0.6912193298339844, -0.341766893863678, 0.6938272714614868, 0.8432469964027405, -0.3727148473262787, -0.14223286509513855, -0.45524856448173523, -0.24606530368328094, -0.5184078216552734, 0.5196564793586731, -0.20381182432174683, -0.8277809023857117, 0.2667883336544037, 0.0959228128194809, -0.1286642849445343, 0.5555054545402527, 0.5786593556404114, 0.19837218523025513, 1.03322434425354, 0.7162153124809265, -0.19281068444252014, 0.4753625690937042, -0.6453152894973755, 0.22102858126163483, -0.7754688262939453, -0.2378080040216446, -0.6228348612785339, -0.16673298180103302, -0.40308454632759094, -0.4991183280944824, 0.3084343373775482, 0.16396062076091766, -0.7564772963523865, 0.7431021332740784, -0.8159035444259644, 0.5186839699745178, 0.7680391669273376, 0.051259398460388184, 0.0397857204079628, 0.1906788945198059, 0.0992652177810669, 0.0002698994940146804, -0.8305471539497375, -0.4628855586051941, 1.0767394304275513, 0.5273325443267822, 0.7685157060623169, 0.09388630837202072, 0.38235074281692505, -0.1393589824438095, 0.2691081762313843, -0.5941224098205566, 0.39229246973991394, 0.11272071301937103, -0.8484445810317993, -0.13504308462142944, -0.6245883703231812, -1.1098453998565674, 0.024447735399007797, 0.13126185536384583, -0.8090007901191711, -0.11618094146251678, 0.08157657831907272, -0.30506813526153564, 0.40110141038894653, -0.8979572653770447, 1.203665018081665, -0.503621518611908, -0.26293066143989563, 0.007055395282804966, -0.7364834547042847, 0.4967050552368164, 0.10164059698581696, -0.008442499674856663, 0.3093048930168152, 0.2539902329444885, 0.587058961391449, -0.42423495650291443, 0.8488215208053589, -0.21833182871341705, 0.005366295110434294, 0.42586976289749146, -0.22911152243614197, 0.5742900371551514, 0.28889089822769165, 0.11848185211420059, 0.37821924686431885, -0.07168621569871902, -0.29954105615615845, -0.4747846722602844, 0.683780312538147, -1.1408575773239136, -0.37855809926986694, -0.6163240671157837, -0.28607454895973206, 0.08547360450029373, 0.1651473343372345, 0.3189319968223572, 0.1741504669189453, -0.06585364043712616, 0.12067157030105591, 0.5401306748390198, -0.3325599431991577, 0.4633840024471283, 0.1557362675666809, -0.5078116059303284, -0.5486137270927429, 0.7684137225151062, -0.22254568338394165, 0.040335945785045624, 0.025680113583803177, 0.13340526819229126, -0.5838107466697693, -0.4688376784324646, -0.7253392934799194, 0.42746058106422424, -0.47603923082351685, -0.42760705947875977, -0.5140935182571411, -0.5110463500022888, -0.6120433211326599, 0.01628345251083374, -0.41296640038490295, -0.21690012514591217, -0.37990227341651917, -0.21077105402946472, 0.514841616153717, 0.7174578309059143, 0.04807140678167343, 0.5441558361053467, -0.8683493733406067, 0.24110759794712067, 0.3624360263347626, 0.5242286920547485, 0.055274948477745056, -0.5339435935020447, -0.5414124727249146, 0.10412044823169708, -0.47683700919151306, -0.5111474394798279, 0.47921091318130493, -0.2598004639148712, 0.3579167425632477, 0.05738148093223572, -0.3913654088973999, 0.4621248245239258, -0.5225828289985657, 1.0348602533340454, 0.6413216590881348, -0.9066513776779175, 0.39115333557128906, -0.2575657069683075, 0.40240591764450073, 0.28651994466781616, 0.7364721894264221, -0.23085008561611176, 0.1621255725622177, -1.0395687818527222, -0.8834884166717529, 0.8575153946876526, 0.2619248032569885, 0.24166233837604523, 0.27087756991386414, 0.20071426033973694, -0.14001549780368805, 0.4820929169654846, -1.0763136148452759, -0.02745906636118889, -0.5449326038360596, -0.10747340321540833, -0.4594661295413971, -0.0677192434668541, -0.28641605377197266, -0.6272607445716858, 0.6190967559814453, 0.06677670031785965, 0.6036869883537292, 0.04905045032501221, -0.2069535255432129, -0.14297045767307281, 0.035864055156707764, 0.6034529805183411, 0.9108531475067139, -0.1899203211069107, -0.09318821877241135, -0.10801731050014496, -0.6413854956626892, 0.08426333218812943, 0.5035805702209473, -0.17522698640823364, 0.08564501255750656, 0.19369739294052124, 1.021361231803894, 0.35280418395996094, -0.49995777010917664, 0.8009650111198425, 0.08679132908582687, -0.46462592482566833, -0.526658833026886, 0.15875932574272156, 0.35148897767066956, 0.3620971739292145, 0.14595450460910797, 0.07759369909763336, -0.12509390711784363, -0.27006539702415466, 0.31969407200813293, 0.28841567039489746, -0.3364884555339813, -0.562802255153656, 0.9784996509552002, -0.10662591457366943, -0.31864652037620544, 0.6637495756149292, -0.39736008644104004, -0.734346330165863, 1.051430583000183, 0.7271348834037781, 0.8982062339782715, -0.07928057014942169, 0.32377681136131287, 0.6314938068389893, 0.48347416520118713, -0.089070163667202, 0.10863988101482391, 0.10041596740484238, -0.30600491166114807, -0.5868217349052429, -0.5675838589668274, -0.16722461581230164, 0.18867801129817963, -0.4271159768104553, 0.3654477894306183, -0.7214020490646362, -0.20796425640583038, -0.11738026887178421, -0.01216714084148407, -0.948773980140686, 0.30494776368141174, 0.2621130347251892, 0.9138627052307129, -0.570335865020752, 0.8448950052261353, 0.7055361270904541, -0.6033835411071777, -1.023316740989685, -0.131032332777977, -0.2029159516096115, -0.8210392594337463, 0.7351885437965393, 0.23258616030216217, 0.12265722453594208, 0.14412625133991241, -0.9245883226394653, -0.8891183137893677, 1.186678409576416, 0.18771611154079437, -0.6912605166435242, -0.11356018483638763, 0.009402097202837467, 0.6174840331077576, -0.26476189494132996, 0.6249000430107117, 0.2692708969116211, 0.5510526299476624, 0.41269591450691223, -1.033579707145691, 0.12565399706363678, -0.16256655752658844, -0.02427542954683304, 0.23148712515830994, -0.6892336010932922, 0.9140890836715698, -0.20861011743545532, -0.0179432462900877, 0.12431590259075165, 0.4330040514469147, 0.18594153225421906, 0.3981347978115082, 0.19579128921031952, 0.7991625070571899, 0.4913846552371979, -0.1333911418914795, 1.1387320756912231, -0.4186694025993347, 0.9252616763114929, 0.9620466828346252, -0.03456055372953415, 0.5598297119140625, 0.13681551814079285, -0.4594120979309082, 0.32026761770248413, 0.36684301495552063, -0.5312321186065674, 0.3697430193424225, 0.4506606161594391, 0.03852441906929016, 0.024234358221292496, 0.3510585427284241, -0.8610771894454956, 0.1732841581106186, 0.23885002732276917, -0.442651629447937, -0.1562105417251587, -0.0755889043211937, 0.03631917014718056, -0.447241872549057, -0.3036620616912842, 0.490837424993515, -0.0018333258340135217, -0.43484535813331604, 0.9728217124938965, 0.11533333361148834, 0.7162018418312073, -0.9136819243431091, 0.09494438767433167, 0.12363812327384949, 0.11987026780843735, -0.29581502079963684, -0.6065893769264221, 0.20868223905563354, 0.09678157418966293, -0.08679066598415375, -0.11490783840417862, 0.460203617811203, -0.21030594408512115, -0.6751647591590881, 0.2189193069934845, 0.27268996834754944, 0.11872904747724533, -0.20805567502975464, -0.9569582939147949, 0.1374228596687317, 0.039683643728494644, -0.3554576635360718, 0.32981547713279724, 0.3135199546813965, 0.24111485481262207, 0.5508372187614441, 0.7023976445198059, -0.17039546370506287, 0.013196971267461777, 0.014927485957741737, 1.1254818439483643, -0.8968809247016907, -0.3909909129142761, -0.6941636800765991, 0.7951511740684509, -0.011894917115569115, -0.6769760251045227, 0.7297434210777283, 0.6772449016571045, 0.9348227381706238, -0.5202648639678955, 0.6795267462730408, -0.22094868123531342, 0.17642319202423096, -0.466434508562088, 0.5856210589408875, -0.6560466885566711, 0.06346164643764496, -0.362777978181839, -1.136303424835205, -0.42365092039108276, 0.6835929155349731, -0.4828214645385742, 0.42959028482437134, 0.6407016515731812, 0.9666261076927185, -0.5452844500541687, 0.19282901287078857, 0.1292809247970581, 0.19967424869537354, 0.332271933555603, 0.7719613313674927, 0.8941213488578796, -0.6700316667556763, 0.6579325795173645, -0.194735586643219, -0.20550382137298584, -0.3711540699005127, -0.6704181432723999, -0.852252721786499, -0.36015555262565613, -0.38771235942840576, -0.6147147417068481, 0.032037220895290375, 1.0179338455200195, 0.9737147092819214, -0.689947247505188, -0.14986580610275269, -0.10105903446674347, 0.024441635236144066, -0.19796650111675262, -0.20108872652053833, 0.4658872187137604, -0.039559878408908844, -0.6376854181289673, 0.048843707889318466, -0.18440082669258118, 0.1740260273218155, -0.23562973737716675, -0.1581747680902481, -0.08930471539497375, -0.44527459144592285, 0.49889111518859863, 0.3916318714618683, -0.4432925581932068, -0.26317262649536133, -0.04746542125940323, -0.29633629322052, 0.31507354974746704, 0.754085898399353, -0.5212440490722656, 0.0038820654153823853, 0.2476351410150528, 0.5864464044570923, 0.900373637676239, 0.12323062121868134, 0.1350538730621338, -0.6091420650482178, 0.20854686200618744, 0.3971424996852875, 0.2146000862121582, 0.2643049359321594, -0.388896644115448, 0.536334216594696, 0.26024794578552246, -0.834641695022583, -0.4970003068447113, 0.18780750036239624, -0.9706979990005493, -0.31709107756614685, 1.2916163206100464, -0.013700964860618114, -0.37614771723747253, 0.20670738816261292, -0.28687816858291626, 0.0839630663394928, -0.33598658442497253, 0.6653363704681396, 0.42448318004608154, 0.2846210300922394, -0.1477387249469757, -0.7129617929458618, 0.33630502223968506, 0.09369505196809769, -0.6336921453475952, -0.039801668375730515, 0.5717037320137024, 0.45697101950645447, 0.41882428526878357, 0.27843135595321655, -0.1653016358613968, 0.4146309196949005, 0.09239519387483597, 0.570783793926239, -0.4170488119125366, -0.5084027051925659, -0.5646310448646545, 0.163607656955719, -0.02808396704494953, -0.21814262866973877 ]
timm/eva_giant_patch14_224.clip_ft_in1k
timm
"2023-03-31T05:57:21Z"
19,021
2
timm
[ "timm", "pytorch", "safetensors", "image-classification", "arxiv:2303.15389", "license:mit", "region:us" ]
image-classification
"2022-12-23T02:37:40Z"
--- tags: - image-classification - timm library_tag: timm license: mit --- # Model card for eva_giant_patch14_224.clip_ft_in1k An EVA-CLIP image classification model. Pretrained on LAION-400M with CLIP and fine-tuned on ImageNet-1k by paper authors. EVA-CLIP uses MIM pretrained image towers and pretrained text towers, FLIP patch dropout, and different optimizers and hparams to accelerate training. NOTE: `timm` checkpoints are float32 for consistency with other models. Original checkpoints are float16 or bfloat16 in some cases, see originals if that's preferred. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 1012.6 - GMACs: 267.2 - Activations (M): 192.6 - Image size: 224 x 224 - **Papers:** - EVA-CLIP: Improved Training Techniques for CLIP at Scale: https://arxiv.org/abs/2303.15389 - **Original:** - https://github.com/baaivision/EVA - https://huggingface.co/QuanSun/EVA-CLIP ## Model Usage ### Image Classification ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model('eva_giant_patch14_224.clip_ft_in1k', pretrained=True) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # unsqueeze single image into batch of 1 top5_probabilities, top5_class_indices = torch.topk(output.softmax(dim=1) * 100, k=5) ``` ### Image Embeddings ```python from urllib.request import urlopen from PIL import Image import timm img = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'eva_giant_patch14_224.clip_ft_in1k', pretrained=True, num_classes=0, # remove classifier nn.Linear ) model = model.eval() # get model specific transforms (normalization, resize) data_config = timm.data.resolve_model_data_config(model) transforms = timm.data.create_transform(**data_config, is_training=False) output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor # or equivalently (without needing to set num_classes=0) output = model.forward_features(transforms(img).unsqueeze(0)) # output is unpooled, a (1, 257, 1408) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Model Comparison Explore the dataset and runtime metrics of this model in timm [model results](https://github.com/huggingface/pytorch-image-models/tree/main/results). |model |top1 |top5 |param_count|img_size| |-----------------------------------------------|------|------|-----------|--------| |eva02_large_patch14_448.mim_m38m_ft_in22k_in1k |90.054|99.042|305.08 |448 | |eva02_large_patch14_448.mim_in22k_ft_in22k_in1k|89.946|99.01 |305.08 |448 | |eva_giant_patch14_560.m30m_ft_in22k_in1k |89.792|98.992|1014.45 |560 | |eva02_large_patch14_448.mim_in22k_ft_in1k |89.626|98.954|305.08 |448 | |eva02_large_patch14_448.mim_m38m_ft_in1k |89.57 |98.918|305.08 |448 | |eva_giant_patch14_336.m30m_ft_in22k_in1k |89.56 |98.956|1013.01 |336 | |eva_giant_patch14_336.clip_ft_in1k |89.466|98.82 |1013.01 |336 | |eva_large_patch14_336.in22k_ft_in22k_in1k |89.214|98.854|304.53 |336 | |eva_giant_patch14_224.clip_ft_in1k |88.882|98.678|1012.56 |224 | |eva02_base_patch14_448.mim_in22k_ft_in22k_in1k |88.692|98.722|87.12 |448 | |eva_large_patch14_336.in22k_ft_in1k |88.652|98.722|304.53 |336 | |eva_large_patch14_196.in22k_ft_in22k_in1k |88.592|98.656|304.14 |196 | |eva02_base_patch14_448.mim_in22k_ft_in1k |88.23 |98.564|87.12 |448 | |eva_large_patch14_196.in22k_ft_in1k |87.934|98.504|304.14 |196 | |eva02_small_patch14_336.mim_in22k_ft_in1k |85.74 |97.614|22.13 |336 | |eva02_tiny_patch14_336.mim_in22k_ft_in1k |80.658|95.524|5.76 |336 | ## Citation ```bibtex @article{EVA-CLIP, title={EVA-02: A Visual Representation for Neon Genesis}, author={Sun, Quan and Fang, Yuxin and Wu, Ledell and Wang, Xinlong and Cao, Yue}, journal={arXiv preprint arXiv:2303.15389}, year={2023} } ``` ```bibtex @misc{rw2019timm, author = {Ross Wightman}, title = {PyTorch Image Models}, year = {2019}, publisher = {GitHub}, journal = {GitHub repository}, doi = {10.5281/zenodo.4414861}, howpublished = {\url{https://github.com/huggingface/pytorch-image-models}} } ```
[ -0.6608741283416748, -0.4756576120853424, 0.18950995802879333, 0.13660089671611786, -0.258735328912735, 0.03691903501749039, -0.1366056650876999, -0.4168667495250702, 0.6898911595344543, 0.3708276152610779, -0.5044035911560059, -0.7604349255561829, -0.6594465374946594, 0.11658774316310883, -0.07150287926197052, 0.9738423228263855, -0.09788256138563156, -0.15123088657855988, 0.09857288748025894, -0.42754071950912476, -0.24917815625667572, -0.39409345388412476, -0.6288164258003235, -0.23718856275081635, 0.45273178815841675, 0.2608959376811981, 0.7226476073265076, 0.7219286561012268, 0.6203286647796631, 0.4265381395816803, -0.37539008259773254, 0.09721986204385757, -0.23408453166484833, -0.4385029375553131, 0.3965047001838684, -0.6409308910369873, -0.7782900333404541, 0.05368410795927048, 0.9416563510894775, 0.3427668809890747, 0.04336646944284439, 0.3266696035861969, 0.09933590143918991, 0.5931151509284973, -0.36443421244621277, -0.10298182815313339, -0.29752257466316223, 0.17637012898921967, -0.22793260216712952, -0.10846206545829773, -0.191542387008667, -0.37278586626052856, 0.10916309803724289, -0.7653499245643616, 0.4862018823623657, 0.050047867000103, 1.4704475402832031, 0.016114424914121628, -0.05921633914113045, 0.11924103647470474, -0.2512928545475006, 0.8007240891456604, -0.9051828384399414, 0.1898770034313202, 0.25383394956588745, 0.08205486834049225, -0.04027065634727478, -0.9143531322479248, -0.6026257276535034, 0.021767525002360344, -0.29239609837532043, 0.12667369842529297, -0.404670774936676, 0.012597949244081974, 0.48681890964508057, 0.5243672132492065, -0.5147922039031982, 0.032622240483760834, -0.5731155276298523, -0.2785281836986542, 0.6700003743171692, 0.09196623414754868, 0.45062705874443054, -0.4925870895385742, -0.7276628613471985, -0.4693589210510254, -0.6250582933425903, 0.22100840508937836, 0.4425983130931854, -0.09404740482568741, -0.6022641658782959, 0.48601195216178894, 0.10432909429073334, 0.47382786870002747, 0.1213778406381607, -0.27381250262260437, 0.7268900871276855, -0.2798423171043396, -0.33223679661750793, -0.18379123508930206, 1.2248950004577637, 0.6512154340744019, -0.009204963222146034, 0.23817424476146698, -0.10614064335823059, -0.3495504856109619, -0.07853015512228012, -1.2469274997711182, -0.2976137697696686, 0.2160419225692749, -0.5284783840179443, -0.34383782744407654, 0.2572081387042999, -1.0543028116226196, 0.045204587280750275, 0.007902231998741627, 0.7305224537849426, -0.5984936952590942, -0.34205955266952515, 0.06187918037176132, -0.29159319400787354, 0.16112051904201508, 0.3151637613773346, -0.5844525694847107, 0.25034281611442566, 0.365927129983902, 1.2197916507720947, 0.09069765359163284, -0.38371872901916504, -0.16958852112293243, -0.1492064893245697, -0.49576249718666077, 0.6624438166618347, -0.16774873435497284, -0.2505268156528473, -0.23800413310527802, 0.38573500514030457, -0.18787431716918945, -0.5567132830619812, 0.3436116576194763, -0.11177166551351547, 0.11888856440782547, -0.25177013874053955, -0.3217022716999054, -0.5301244258880615, 0.34774765372276306, -0.6383591890335083, 1.180496096611023, 0.44881555438041687, -0.9725977182388306, 0.4082765281200409, -0.5706214308738708, 0.16217969357967377, -0.11474805325269699, 0.08150507509708405, -0.9993177652359009, -0.22633713483810425, 0.4968191683292389, 0.44457289576530457, -0.24569644033908844, -0.15794269740581512, -0.5406993627548218, -0.27613192796707153, 0.23054549098014832, -0.07439626753330231, 1.00297212600708, 0.14486728608608246, -0.4574531614780426, 0.27456557750701904, -0.6970721483230591, 0.23760059475898743, 0.4278600811958313, -0.1954185664653778, -0.014362584799528122, -0.6832401752471924, 0.12305539846420288, 0.19326476752758026, 0.052048251032829285, -0.48868322372436523, 0.41250836849212646, -0.12061899900436401, 0.5351985692977905, 0.8892437815666199, 0.11381035298109055, 0.1994970291852951, -0.5106838345527649, 0.5732184052467346, 0.13329042494297028, 0.3087941110134125, -0.1703927367925644, -0.5289029479026794, -0.7907693982124329, -0.8102867603302002, 0.4233853220939636, 0.3405205309391022, -0.5222259163856506, 0.7369195818901062, -0.1317986398935318, -0.7907060384750366, -0.4460807144641876, 0.07692091166973114, 0.581506609916687, 0.5297894477844238, 0.4531976878643036, -0.5406556725502014, -0.5398649573326111, -1.0490556955337524, 0.10825911909341812, -0.07708892971277237, 0.009885882027447224, 0.5358104705810547, 0.9012317061424255, -0.16055217385292053, 0.8113203644752502, -0.7508845925331116, -0.32040703296661377, -0.292812705039978, 0.11042840033769608, 0.49063047766685486, 0.6439290046691895, 1.1064815521240234, -0.48757287859916687, -0.7099692821502686, -0.20096853375434875, -0.8023189306259155, -0.024931246414780617, 0.06300365924835205, -0.29484614729881287, 0.3017542362213135, 0.17475616931915283, -0.8214837908744812, 0.7127540707588196, 0.32412517070770264, -0.5502293109893799, 0.6730124950408936, -0.4411126673221588, 0.43097278475761414, -1.1437745094299316, 0.365036278963089, 0.16895997524261475, -0.2325258105993271, -0.5765255093574524, 0.039076197892427444, 0.17702321708202362, 0.04261156544089317, -0.5729581117630005, 0.7219862341880798, -0.5926216244697571, -0.06776359677314758, -0.03445453941822052, -0.1995297372341156, 0.17937174439430237, 0.7938015460968018, -0.010906069539487362, 0.7867741584777832, 0.7282676696777344, -0.33888041973114014, 0.3201255202293396, 0.41083335876464844, -0.4775184392929077, 0.5351608395576477, -0.8478830456733704, 0.11434362083673477, 0.019479066133499146, 0.5703808665275574, -0.921640932559967, -0.3080211579799652, 0.3524441123008728, -0.48903611302375793, 0.45392462611198425, -0.5365554690361023, -0.5229441523551941, -0.7123497724533081, -0.7686659693717957, 0.5491090416908264, 0.6666598916053772, -0.6851015090942383, 0.23214443027973175, 0.23163680732250214, 0.08887889981269836, -0.5871197581291199, -0.6834632158279419, -0.312936931848526, -0.4776594042778015, -0.7379024028778076, 0.5649653077125549, -0.0182174239307642, 0.09399981051683426, 0.029945770278573036, -0.007165705319494009, 0.0267304889857769, -0.24487587809562683, 0.4503115713596344, 0.6207426190376282, -0.3684626817703247, -0.32216912508010864, -0.24168184399604797, -0.15843138098716736, 0.012372767552733421, -0.07422836124897003, 0.7073329091072083, -0.2658182382583618, -0.32168641686439514, -0.8173007369041443, -0.010367218405008316, 0.7744112610816956, -0.16463211178779602, 0.7978420257568359, 0.9147067666053772, -0.43910232186317444, 0.11403845250606537, -0.6183968186378479, -0.3153643012046814, -0.5064533948898315, 0.40601879358291626, -0.3014321029186249, -0.51850825548172, 0.9984508156776428, 0.28527021408081055, 0.0029722226317971945, 0.9275972843170166, 0.39993816614151, 0.023750457912683487, 1.1617882251739502, 0.4387061893939972, 0.1176721602678299, 0.752469539642334, -1.1660655736923218, -0.18286773562431335, -1.1491203308105469, -0.4749061167240143, -0.3174664080142975, -0.5908876061439514, -0.44270268082618713, -0.49978408217430115, 0.6601961255073547, 0.49986767768859863, -0.4055142104625702, 0.5673243999481201, -0.8475574254989624, 0.1885412037372589, 0.6713985204696655, 0.5707095861434937, -0.1954808235168457, 0.20243220031261444, -0.16203773021697998, -0.08208561688661575, -0.7192826271057129, -0.18368707597255707, 1.2366474866867065, 0.5398217439651489, 0.6207154393196106, -0.032099105417728424, 0.6625404953956604, -0.054385729134082794, 0.23630723357200623, -0.48618456721305847, 0.6123350858688354, 0.06078330799937248, -0.7290780544281006, -0.1332450956106186, -0.4029117822647095, -0.9675978422164917, 0.3260369598865509, -0.4044264554977417, -0.9246989488601685, 0.26641902327537537, 0.32530614733695984, -0.3954438269138336, 0.8653532862663269, -0.829731285572052, 0.8802675008773804, -0.09941564500331879, -0.4662625193595886, -0.07841333746910095, -0.6734598875045776, 0.23947706818580627, 0.2364065796136856, -0.026456670835614204, -0.0662456750869751, 0.21903938055038452, 1.261854887008667, -0.9013806581497192, 0.6628157496452332, -0.2965688109397888, 0.31673941016197205, 0.6867378354072571, -0.1843566745519638, 0.6194984912872314, 0.16645871102809906, 0.09979286789894104, 0.3350472152233124, 0.1301489770412445, -0.4712856709957123, -0.38513997197151184, 0.5484771132469177, -1.0036660432815552, -0.4998011887073517, -0.5550307035446167, -0.4251759350299835, 0.3071696162223816, 0.18799346685409546, 0.7441903352737427, 0.7228591442108154, 0.13831844925880432, 0.38128700852394104, 0.6030528545379639, -0.33905574679374695, 0.4876656234264374, 0.03801403194665909, -0.3358125686645508, -0.8904483914375305, 0.9243276715278625, 0.23936232924461365, 0.23442862927913666, 0.0338166169822216, 0.25677961111068726, -0.337399423122406, -0.4355199635028839, -0.5028169751167297, 0.5492967963218689, -0.6200171113014221, -0.48750102519989014, -0.571959376335144, -0.39449524879455566, -0.35679543018341064, -0.24190658330917358, -0.48534801602363586, -0.44439080357551575, -0.42933982610702515, 0.08662183582782745, 0.9252966642379761, 0.656849205493927, -0.3020651340484619, 0.3680890202522278, -0.7210009694099426, 0.1546446532011032, 0.13079480826854706, 0.4400322735309601, -0.050981465727090836, -0.9014238715171814, -0.07814054936170578, -0.01655440218746662, -0.5652891993522644, -1.0609736442565918, 0.6188257932662964, -0.019141633063554764, 0.47538283467292786, 0.4323972463607788, -0.30408918857574463, 1.0389245748519897, -0.19019438326358795, 0.8111557960510254, 0.6548146605491638, -0.7405309677124023, 0.6118074059486389, -0.35654550790786743, 0.07973857969045639, 0.1940726339817047, 0.21820051968097687, -0.3642285466194153, -0.18891184031963348, -1.105332374572754, -1.0092487335205078, 1.024102807044983, 0.26898813247680664, -0.19609799981117249, 0.2582242786884308, 0.3941333293914795, -0.011428898200392723, -0.06823934614658356, -0.6897913217544556, -0.6296222805976868, -0.3283620774745941, -0.09182683378458023, -0.09420431405305862, -0.20784544944763184, -0.21841207146644592, -0.7279996275901794, 0.6867029666900635, -0.03254494443535805, 0.7475197911262512, 0.40071308612823486, -0.051813751459121704, -0.13760845363140106, -0.22773978114128113, 0.5906273126602173, 0.5177192687988281, -0.4395946264266968, -0.09511715173721313, 0.2967481017112732, -0.6679689884185791, -0.06441298127174377, 0.1864597052335739, -0.19788089394569397, 0.10966014117002487, 0.4974823296070099, 0.9897302389144897, 0.130564883351326, -0.1733669936656952, 0.590215265750885, 0.1055527776479721, -0.5415489673614502, -0.23539264500141144, 0.1537213921546936, -0.20157691836357117, 0.3642131984233856, 0.4406609535217285, 0.22355280816555023, -0.15604816377162933, -0.41277649998664856, 0.17514608800411224, 0.6417517066001892, -0.3833988308906555, -0.5431037545204163, 0.7215250134468079, -0.24659572541713715, -0.20581568777561188, 0.5952325463294983, 0.058810312300920486, -0.6768481731414795, 1.1804790496826172, 0.5148268342018127, 0.8425318002700806, -0.21285060048103333, 0.16958476603031158, 1.032251238822937, 0.07920020073652267, -0.05680975690484047, 0.19727835059165955, 0.3059149384498596, -0.35746005177497864, 0.08109436184167862, -0.5829368233680725, -0.06845981627702713, 0.565889835357666, -0.6349331140518188, 0.4248138666152954, -0.6391523480415344, -0.4018785059452057, 0.1152239516377449, 0.23892012238502502, -0.7967682480812073, 0.10721844434738159, -0.06416107714176178, 1.017167329788208, -0.9193940162658691, 0.7226406335830688, 0.7572376132011414, -0.5863736271858215, -1.0386080741882324, -0.22791998088359833, 0.05418625846505165, -0.8588677048683167, 0.43959251046180725, 0.26778438687324524, 0.3510794937610626, -0.04305048659443855, -0.7994799017906189, -0.9752302169799805, 1.5649828910827637, 0.4817735254764557, -0.1874331831932068, 0.19148628413677216, -0.1290489137172699, 0.3543230891227722, -0.27505797147750854, 0.7143336534500122, 0.2671935558319092, 0.45298805832862854, 0.290687620639801, -0.8071677088737488, 0.18755340576171875, -0.3995884656906128, 0.05013003200292587, 0.34144869446754456, -1.111512303352356, 1.083827257156372, -0.3464779853820801, -0.05402679368853569, 0.17851592600345612, 0.5665876269340515, 0.5152091979980469, -0.012340954504907131, 0.5762834548950195, 0.8975717425346375, 0.51688152551651, -0.3413182199001312, 0.8985461592674255, -0.29153457283973694, 0.7059900760650635, 0.3969510793685913, 0.43070709705352783, 0.5851105451583862, 0.3962205946445465, -0.5013253092765808, 0.4868690073490143, 0.9045827388763428, -0.44253644347190857, 0.3579656183719635, 0.061626579612493515, -0.10990884900093079, -0.10241667181253433, 0.07803458720445633, -0.7537297010421753, 0.19814079999923706, 0.27248308062553406, -0.47840845584869385, -0.14554040133953094, -0.07521741837263107, 0.19334514439105988, -0.37740257382392883, -0.35251396894454956, 0.4618140459060669, -0.042046356946229935, -0.5817380547523499, 0.8070858716964722, -0.006295205093920231, 0.872212827205658, -0.615393877029419, -0.11050182580947876, -0.28116554021835327, 0.32624921202659607, -0.404835969209671, -1.0936068296432495, 0.20811069011688232, -0.004271002486348152, -0.06583457440137863, 0.0726182609796524, 0.6376774907112122, -0.2464849054813385, -0.5742063522338867, 0.21363872289657593, 0.028703954070806503, 0.34408482909202576, 0.08739116787910461, -1.027518391609192, 0.14370906352996826, 0.031138144433498383, -0.7495672106742859, 0.3796912133693695, 0.33956027030944824, 0.15953658521175385, 0.6152294874191284, 0.6714395880699158, -0.03211839869618416, 0.318461537361145, -0.382686048746109, 0.9183337092399597, -0.5758146047592163, -0.5237040519714355, -0.828370988368988, 0.5783629417419434, -0.17256057262420654, -0.7095390558242798, 0.7204536199569702, 0.7802664041519165, 0.6163914799690247, -0.09048710763454437, 0.469587504863739, -0.33186766505241394, 0.1930827796459198, -0.5213631391525269, 0.8078664541244507, -0.8533691167831421, -0.07978153973817825, -0.42153921723365784, -0.8631054759025574, -0.29421213269233704, 0.7739295959472656, -0.2503844201564789, 0.24064978957176208, 0.6699550747871399, 1.0109387636184692, -0.1826109141111374, -0.27779287099838257, -0.06351412832736969, 0.20775650441646576, 0.2677072584629059, 0.6100735664367676, 0.4525626003742218, -0.6933276653289795, 0.5228761434555054, -0.7199980020523071, -0.1599837988615036, -0.3920295238494873, -0.6705236434936523, -1.0561773777008057, -0.6935721039772034, -0.5188081860542297, -0.6894756555557251, -0.2055097222328186, 0.9435825943946838, 1.0299807786941528, -0.7193787693977356, 0.013681369833648205, -0.006794435903429985, 0.16782857477664948, -0.27741727232933044, -0.25495973229408264, 0.8914241194725037, 0.13132794201374054, -0.8582582473754883, -0.2359718680381775, 0.10137078911066055, 0.4204872250556946, 0.12221512943506241, -0.41200676560401917, -0.10794704407453537, -0.17163638770580292, 0.19930578768253326, 0.5606948733329773, -0.8382036089897156, -0.4328601360321045, -0.10679194331169128, -0.1018880307674408, 0.5083117485046387, 0.34073734283447266, -0.5803313851356506, 0.2512979209423065, 0.6583070755004883, 0.041090771555900574, 0.9216181635856628, -0.14039346575737, 0.023879719898104668, -0.7232893109321594, 0.43797191977500916, -0.08138058334589005, 0.5808455944061279, 0.14523471891880035, -0.2279888391494751, 0.6580056548118591, 0.5502418279647827, -0.561205267906189, -1.055965781211853, -0.12063628435134888, -1.2853156328201294, -0.163595050573349, 1.0913993120193481, -0.31665557622909546, -0.5630378723144531, 0.43782949447631836, -0.29956451058387756, 0.37658756971359253, -0.2658099830150604, 0.46986714005470276, 0.353055477142334, -0.038571055978536606, -0.509669840335846, -0.5032012462615967, 0.4784665107727051, 0.2972405254840851, -0.7448340654373169, -0.34200024604797363, 0.12360250949859619, 0.6284624338150024, 0.5660738348960876, 0.6075236797332764, -0.28207927942276, 0.28396326303482056, 0.14327014982700348, 0.3733155429363251, -0.30086180567741394, -0.17163945734500885, -0.21747158467769623, 0.042453113943338394, -0.17318032681941986, -0.5149121284484863 ]
xyn-ai/anything-v4.0
xyn-ai
"2023-03-23T04:25:51Z"
19,005
49
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "en", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-03-23T04:25:51Z"
--- language: - en license: creativeml-openrail-m tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers inference: true duplicated_from: andite/anything-v4.0 --- Fantasy.ai is the official and exclusive hosted AI generation platform that holds a commercial use license for Anything V4.0, you can use their service at https://Fantasy.ai/ Please report any unauthorized commercial use. ----------------- Try out my new model! - [Pastel Mix || Stylized Anime Model](https://huggingface.co/andite/pastel-mix). Thanks. I also uploaded it in CivitAI! https://civitai.com/models/5414/pastel-mix-stylized-anime-model I'd appreciate the ratings, thank you! Yes, it's a shameless plug. Examples: ![](https://huggingface.co/andite/Pastel-Mix/resolve/main/example-images/grid-0018.png) ![](https://huggingface.co/andite/pastel-mix/resolve/main/example-images/grid-reimu.png) ![](https://huggingface.co/andite/pastel-mix/resolve/main/example-images/grid-0043.png) ------- <font color="grey">Thanks to [Linaqruf](https://huggingface.co/Linaqruf) for letting me borrow his model card for reference. # Anything V4 Welcome to Anything V4 - a latent diffusion model for weebs. The newest version of Anything. This model is intended to produce high-quality, highly detailed anime style with just a few prompts. Like other anime-style Stable Diffusion models, it also supports danbooru tags to generate images. e.g. **_1girl, white hair, golden eyes, beautiful eyes, detail, flower meadow, cumulonimbus clouds, lighting, detailed sky, garden_** I think the V4.5 version better though, it's in this repo. feel free 2 try it. ## Yes, this model has [AbyssOrangeMix2](https://huggingface.co/WarriorMama777/OrangeMixs) in it. coz its a very good model. check it out luls ;) # Gradio We support a [Gradio](https://github.com/gradio-app/gradio) Web UI to run anything-v4.0: [![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/akhaliq/anything-v4.0) ## 🧨 Diffusers This model can be used just like any other Stable Diffusion model. For more information, please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion). You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX](). ```python from diffusers import StableDiffusionPipeline import torch model_id = "andite/anything-v4.0" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to("cuda") prompt = "hatsune_miku" image = pipe(prompt).images[0] image.save("./hatsune_miku.png") ``` ## Examples Below are some examples of images generated using this model: **Anime Girl:** ![Anime Girl](https://huggingface.co/andite/anything-v4.0/resolve/main/example-1.png) ``` masterpiece, best quality, 1girl, white hair, medium hair, cat ears, closed eyes, looking at viewer, :3, cute, scarf, jacket, outdoors, streets Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7 ``` **Anime Boy:** ![Anime Boy](https://huggingface.co/andite/anything-v4.0/resolve/main/example-2.png) ``` 1boy, bishounen, casual, indoors, sitting, coffee shop, bokeh Steps: 20, Sampler: DPM++ 2M Karras, CFG scale: 7 ``` **Scenery:** ![Scenery](https://huggingface.co/andite/anything-v4.0/resolve/main/example-4.png) ``` scenery, village, outdoors, sky, clouds Steps: 50, Sampler: DPM++ 2S a Karras, CFG scale: 7 ``` ## License This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage. The CreativeML OpenRAIL License specifies: [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license) ## Big Thanks to - [Linaqruf](https://huggingface.co/Linaqruf). [NoCrypt](https://huggingface.co/NoCrypt), and Fannovel16#9022 for helping me out alot regarding my inquiries and concern about models and other stuff.
[ -0.6219412684440613, -0.781795859336853, 0.3460245728492737, 0.5230727791786194, -0.23271268606185913, -0.37321171164512634, 0.17299771308898926, -0.5908195972442627, 0.25882190465927124, 0.3898921608924866, -0.6368416547775269, -0.6361726522445679, -0.5137770771980286, -0.09939347952604294, -0.12499183416366577, 1.0322426557540894, -0.1481630504131317, -0.08051440864801407, -0.22332142293453217, -0.13180288672447205, -0.5043922662734985, -0.03599026799201965, -0.795626699924469, -0.38075903058052063, 0.4539569318294525, 0.08635972440242767, 0.8319011330604553, 0.4669422507286072, 0.3331531882286072, 0.36217203736305237, -0.3026643693447113, -0.08430830389261246, -0.5704721212387085, 0.007078375201672316, 0.04849981516599655, -0.3598385453224182, -0.923629879951477, 0.18850919604301453, 0.3574763834476471, 0.06231251358985901, -0.27441683411598206, 0.03397327661514282, -0.08392396569252014, 0.4610888659954071, -0.32395684719085693, 0.06146283075213432, -0.1704511195421219, 0.08826418966054916, -0.19933493435382843, 0.16757331788539886, -0.08021148294210434, -0.331866592168808, 0.12148431688547134, -0.9756632447242737, 0.2708050012588501, -0.0765681341290474, 1.2826147079467773, 0.1850677877664566, -0.23700076341629028, 0.015770861878991127, -0.5514024496078491, 0.6880197525024414, -0.765899658203125, 0.32145896553993225, 0.1775984913110733, 0.36294910311698914, -0.14588312804698944, -0.9563044905662537, -0.4463939964771271, -0.08344514667987823, -0.07505013793706894, 0.3338584899902344, -0.3359357714653015, -0.10441648215055466, 0.3227074146270752, 0.5234776139259338, -0.5962803959846497, -0.24772173166275024, -0.5036101341247559, -0.028484191745519638, 0.7745651602745056, 0.12141057103872299, 0.7067403793334961, -0.04041410610079765, -0.46900707483291626, -0.13733354210853577, -0.5730050206184387, 0.14464598894119263, 0.3554254174232483, -0.20063692331314087, -0.7537972927093506, 0.35037946701049805, 0.09394942969083786, 0.48364928364753723, 0.3288463056087494, -0.1895780861377716, 0.49649786949157715, -0.044391024857759476, -0.2506076693534851, -0.5309993028640747, 1.0277698040008545, 0.6470860242843628, -0.05254286900162697, 0.08415976911783218, -0.20712698996067047, -0.09149553626775742, -0.0002952098147943616, -1.2560501098632812, -0.44187191128730774, 0.39984676241874695, -0.6339898705482483, -0.5594245791435242, -0.3296087384223938, -0.821940541267395, -0.18717904388904572, 0.12367571890354156, 0.3456789255142212, -0.6170482635498047, -0.734910786151886, 0.11695753037929535, -0.41458186507225037, 0.12277910113334656, 0.5721924901008606, -0.678433358669281, 0.03152097389101982, 0.20533417165279388, 0.9352384209632874, 0.09474921226501465, -0.029528208076953888, 0.08167096227407455, 0.05308098345994949, -0.32894930243492126, 0.6171624660491943, -0.4084758162498474, -0.5221070647239685, -0.32339978218078613, 0.14207936823368073, 0.14148001372814178, -0.5630679130554199, 0.5950098037719727, -0.5188422799110413, 0.29200831055641174, -0.04653983563184738, -0.43913185596466064, -0.34838947653770447, -0.044164206832647324, -0.6971768140792847, 0.8485803604125977, 0.3454187214374542, -0.8875966668128967, 0.1456439197063446, -0.8961306810379028, -0.01905013434588909, 0.07310368120670319, -0.07399860769510269, -0.6223140954971313, -0.03568568453192711, -0.0750020369887352, 0.40309110283851624, -0.12600916624069214, 0.1359320878982544, -0.6534861922264099, -0.09837052971124649, 0.17021282017230988, -0.2547394633293152, 1.2414885759353638, 0.4023638665676117, -0.27853819727897644, 0.14676858484745026, -0.612601637840271, -0.09947986900806427, 0.4500840902328491, 0.030038481578230858, -0.129427969455719, -0.2841663062572479, 0.3307965099811554, 0.3401162624359131, 0.26116830110549927, -0.4987625181674957, 0.20050407946109772, -0.22920170426368713, 0.4413989782333374, 0.6397331953048706, 0.10730762779712677, 0.5013262629508972, -0.5904619693756104, 0.7292280197143555, 0.17301766574382782, 0.4123157560825348, 0.016651960089802742, -0.8480011224746704, -0.6527500748634338, -0.5239853858947754, 0.199659064412117, 0.2341955155134201, -0.7394142150878906, 0.32314860820770264, 0.09756330400705338, -0.9115951657295227, -0.43734410405158997, -0.046532042324543, 0.3421843647956848, 0.47785118222236633, 0.17297875881195068, -0.3669465482234955, -0.21676823496818542, -0.8245866298675537, 0.26496028900146484, 0.030337203294038773, -0.10186659544706345, 0.46251073479652405, 0.4962664246559143, -0.35968685150146484, 0.7798998951911926, -0.5874918103218079, -0.2202417403459549, -0.14207406342029572, 0.10629395395517349, 0.3979856073856354, 0.7412860989570618, 1.2013804912567139, -1.006360411643982, -0.7033442258834839, 0.04095044359564781, -1.006506085395813, -0.24877068400382996, 0.20200301706790924, -0.6091236472129822, 0.012902486138045788, 0.13364717364311218, -0.9495367407798767, 0.5242047905921936, 0.6761531233787537, -0.5932884216308594, 0.5505487322807312, -0.3197234570980072, 0.13458868861198425, -1.0972847938537598, 0.3382825553417206, 0.3213154375553131, -0.4588908553123474, -0.621061384677887, 0.5619092583656311, -0.18525218963623047, -0.10762246698141098, -0.713693380355835, 0.9949562549591064, -0.3755163550376892, 0.3640591502189636, -0.2738974690437317, -0.09717872738838196, 0.2571718990802765, 0.4719703495502472, 0.09143397957086563, 0.573002278804779, 0.8107118606567383, -0.5919829607009888, 0.42686885595321655, 0.3783329725265503, -0.1347969025373459, 0.6068559288978577, -0.9330543875694275, 0.10004760324954987, -0.2466442883014679, 0.35192152857780457, -0.7356831431388855, -0.43729284405708313, 0.703853964805603, -0.49463576078414917, 0.23794442415237427, -0.25217023491859436, -0.3453105390071869, -0.18720638751983643, -0.23460973799228668, 0.4686393439769745, 0.9532936811447144, -0.5056819915771484, 0.797184407711029, 0.328140527009964, 0.009563645347952843, -0.2799496054649353, -0.49976029992103577, -0.4202086627483368, -0.5531414747238159, -0.9717447757720947, 0.533848226070404, -0.47097939252853394, -0.22083595395088196, 0.1819150596857071, 0.14725440740585327, -0.25792041420936584, -0.05390818417072296, 0.4362339675426483, 0.4782085418701172, -0.17395876348018646, -0.45413535833358765, 0.16981488466262817, -0.08103694021701813, 0.033416133373975754, 0.10300811380147934, 0.5299673080444336, -0.10092849284410477, -0.033886827528476715, -0.762589693069458, 0.15229690074920654, 0.6408100128173828, 0.008953778073191643, 0.632966935634613, 0.7689847350120544, -0.4329074025154114, -0.04300625994801521, -0.3223150372505188, -0.056677624583244324, -0.5442025065422058, 0.018124094232916832, -0.4254533052444458, -0.45117637515068054, 0.7660923600196838, 0.11383699625730515, 0.42654740810394287, 0.7275739312171936, 0.5170750617980957, -0.21353976428508759, 1.2200738191604614, 0.6204714775085449, 0.22116336226463318, 0.5350974202156067, -0.7598468065261841, -0.15767952799797058, -0.8764862418174744, -0.3876357972621918, -0.1437549591064453, -0.46851763129234314, -0.5330345034599304, -0.5109219551086426, 0.3978031873703003, 0.35159504413604736, -0.29170945286750793, 0.30268535017967224, -0.41364020109176636, 0.34037041664123535, 0.18908649682998657, 0.32553157210350037, 0.20053838193416595, 0.0792163833975792, 0.026643021032214165, -0.12451593577861786, -0.4818887412548065, -0.28072673082351685, 0.8125001788139343, 0.4825454354286194, 0.7700862288475037, 0.27224111557006836, 0.6910630464553833, 0.1510256826877594, 0.5028082728385925, -0.3683878481388092, 0.46170690655708313, -0.0678979754447937, -0.9385218024253845, 0.041513197124004364, -0.4033539593219757, -0.8128767609596252, 0.3082692325115204, -0.23677398264408112, -0.5642672777175903, 0.377197265625, 0.24672898650169373, -0.29199087619781494, 0.24934902787208557, -0.6376621127128601, 0.8560243248939514, -0.08081329613924026, -0.5896973013877869, 0.06240621209144592, -0.4887513518333435, 0.5463656783103943, 0.12778340280056, 0.18423636257648468, -0.24360127747058868, 0.05533740669488907, 0.5333375930786133, -0.6275281310081482, 0.7697453498840332, -0.4250178337097168, -0.14127463102340698, 0.3811514675617218, 0.029507314786314964, 0.18498624861240387, 0.28580182790756226, -0.04611198976635933, 0.39866718649864197, 0.08886745572090149, -0.4812910854816437, -0.5308963656425476, 0.8677153587341309, -1.0151102542877197, -0.3986150324344635, -0.40524089336395264, -0.316555380821228, 0.24387159943580627, 0.3023022711277008, 0.8486595749855042, 0.3532331883907318, -0.14890581369400024, 0.0620080791413784, 0.7888416051864624, -0.19190263748168945, 0.2524895966053009, 0.2575244605541229, -0.7198185920715332, -0.43724510073661804, 0.9065428972244263, -0.09647789597511292, 0.3850902318954468, -0.1458713263273239, 0.3482496440410614, -0.20761188864707947, -0.350359171628952, -0.7878119349479675, 0.38140079379081726, -0.5487446784973145, -0.29228439927101135, -0.6191512942314148, -0.39088258147239685, -0.34482890367507935, -0.20180027186870575, -0.34254902601242065, -0.2575686275959015, -0.6437277793884277, 0.171881303191185, 0.7287244200706482, 0.6198278069496155, -0.12695547938346863, 0.31444573402404785, -0.5462811589241028, 0.4121418297290802, 0.12223313003778458, 0.4414764940738678, 0.03179251030087471, -0.6533995866775513, 0.035199008882045746, 0.1392219513654709, -0.6224333047866821, -0.873228907585144, 0.6172619462013245, 0.14577287435531616, 0.36447006464004517, 0.6030212044715881, -0.23997151851654053, 0.7226176857948303, -0.47962650656700134, 0.7259856462478638, 0.3275763690471649, -0.5784002542495728, 0.45856329798698425, -0.7268943190574646, 0.12736013531684875, 0.2587329149246216, 0.5360116958618164, -0.32450008392333984, -0.45676514506340027, -0.9645851254463196, -0.7549254894256592, 0.6519476771354675, 0.5366411209106445, 0.279280424118042, 0.3140091001987457, 0.6734070181846619, 0.06359550356864929, 0.08982951939105988, -0.9351139068603516, -0.5904958844184875, -0.2820433974266052, -0.02990012802183628, 0.2595979869365692, 0.0712527483701706, -0.16656970977783203, -0.3651575744152069, 0.892605185508728, 0.20188108086585999, 0.3539019823074341, 0.1169455498456955, 0.34683758020401, -0.3437339663505554, -0.28610968589782715, 0.24100461602210999, 0.4012098014354706, -0.3448246717453003, -0.4781840741634369, -0.15016129612922668, -0.4285253882408142, 0.12373802810907364, 0.031605347990989685, -0.573278546333313, 0.22479134798049927, -0.02880963124334812, 0.8891376256942749, -0.03736155107617378, -0.36738595366477966, 0.6328285336494446, -0.3191041350364685, -0.30454444885253906, -0.42178183794021606, 0.391471803188324, 0.26077601313591003, 0.4789280295372009, -0.08775188028812408, 0.4000910520553589, 0.38880231976509094, -0.3768008053302765, -0.08869350701570511, 0.4513171315193176, -0.12373765558004379, -0.5410662889480591, 1.0767678022384644, 0.15004189312458038, -0.14198575913906097, 0.44900208711624146, -0.3591729998588562, -0.16279074549674988, 0.7449712753295898, 0.6421968936920166, 0.8898643255233765, -0.30574485659599304, 0.4178393483161926, 0.506466269493103, -0.1365605741739273, -0.10016969591379166, 0.3827463984489441, 0.3105771839618683, -0.606673538684845, -0.07021822780370712, -0.6634941101074219, -0.06992073357105255, 0.34370172023773193, -0.4842003881931305, 0.755631148815155, -0.7751768231391907, -0.33440086245536804, -0.03461432084441185, -0.18884646892547607, -0.6410501003265381, 0.3455551862716675, 0.11925201117992401, 0.9703099131584167, -0.9754385352134705, 0.7195566892623901, 0.6814212799072266, -0.6973966360092163, -0.811242401599884, -0.09525147080421448, -0.026535283774137497, -0.47776490449905396, 0.33668777346611023, 0.11666243523359299, -0.11290435492992401, 0.04830002412199974, -0.8340770602226257, -0.8721418380737305, 1.2316354513168335, 0.3146696984767914, -0.19720487296581268, -0.28623294830322266, -0.3961263597011566, 0.6443123817443848, -0.4660051763057709, 0.5578384399414062, 0.2640916407108307, 0.33617913722991943, 0.4774749279022217, -0.5532479286193848, 0.0407683402299881, -0.6669228672981262, 0.32222238183021545, -0.0589921809732914, -1.0447416305541992, 1.1083661317825317, -0.07054251432418823, -0.2865223288536072, 0.571531355381012, 0.8033950328826904, 0.5443048477172852, 0.37357833981513977, 0.4858332574367523, 0.7818856835365295, 0.41446614265441895, -0.0531889982521534, 1.1208069324493408, -0.17464952170848846, 0.43114015460014343, 0.693302571773529, -0.05167035385966301, 0.6146955490112305, 0.0457502044737339, -0.14435259997844696, 0.7767595648765564, 0.7876946330070496, -0.05653112009167671, 0.5694418549537659, -0.06584564596414566, -0.24947497248649597, -0.06599326431751251, -0.09482255578041077, -0.6514368057250977, 0.0737607404589653, 0.26931384205818176, -0.31524649262428284, -0.05629749223589897, 0.054724905639886856, 0.09840285032987595, -0.249542698264122, -0.04443966597318649, 0.5099107027053833, 0.10709717869758606, -0.25430533289909363, 0.6975403428077698, 0.1751583367586136, 0.8486667275428772, -0.6171372532844543, -0.26209667325019836, -0.418680876493454, -0.01467230636626482, -0.3833729326725006, -0.7259349822998047, 0.11024642735719681, 0.03146730735898018, 0.02829776518046856, -0.2211911678314209, 0.7044617533683777, -0.28896573185920715, -0.6194031238555908, 0.3957352638244629, 0.15832999348640442, 0.4144993722438812, 0.20181211829185486, -1.0341098308563232, 0.3177667558193207, 0.03359158709645271, -0.3211422562599182, 0.28109458088874817, 0.40398943424224854, 0.13542860746383667, 0.6858359575271606, 0.46492907404899597, 0.1055997908115387, 0.02479955554008484, -0.17416635155677795, 0.8715946078300476, -0.34511756896972656, -0.4035123586654663, -0.6184797883033752, 0.8539073467254639, -0.1724814474582672, -0.38920438289642334, 0.729711651802063, 0.4956258535385132, 0.8151742219924927, -0.32186901569366455, 0.8125674724578857, -0.3687245845794678, 0.2988359034061432, -0.4174792766571045, 0.9477842450141907, -1.0931389331817627, 0.003718689316883683, -0.4425511360168457, -0.9613202810287476, -0.049101799726486206, 0.8979948163032532, -0.012664570473134518, 0.3551692068576813, 0.2602725028991699, 0.8281878232955933, -0.37434184551239014, -0.11093824356794357, 0.1646612286567688, 0.23340216279029846, 0.33964529633522034, 0.3334360420703888, 0.8215452432632446, -0.654947817325592, 0.19371874630451202, -0.6278086304664612, -0.44045424461364746, -0.2131119668483734, -0.7337514162063599, -0.868354082107544, -0.4462239146232605, -0.5424026250839233, -0.6669045090675354, -0.19483987987041473, 0.6639601588249207, 0.9149605631828308, -0.5678169131278992, -0.21808992326259613, -0.15962453186511993, -0.064850814640522, 0.07436041533946991, -0.26351457834243774, -0.0071097686886787415, 0.2842804491519928, -1.1323906183242798, 0.024960076436400414, 0.07483042031526566, 0.4732186794281006, -0.32966768741607666, -0.27503350377082825, -0.054402031004428864, -0.11116914451122284, 0.3487815260887146, 0.3722437024116516, -0.6762129664421082, 0.01528975460678339, -0.11709074676036835, -0.005773400887846947, 0.2065904438495636, 0.3013668358325958, -0.4409284293651581, 0.25195276737213135, 0.672942042350769, 0.0830855742096901, 0.5769385099411011, -0.020184313878417015, 0.3491138517856598, -0.5508413910865784, 0.29450613260269165, 0.09732247143983841, 0.4280056655406952, 0.19307325780391693, -0.47369125485420227, 0.4503999650478363, 0.3663088083267212, -0.6041262149810791, -0.6113019585609436, 0.16784247756004333, -0.9581549763679504, -0.1903441995382309, 1.0345062017440796, -0.2539181113243103, -0.40227246284484863, 0.26735228300094604, -0.4127068519592285, 0.04828457534313202, -0.5015607476234436, 0.49390909075737, 0.455572247505188, -0.31601160764694214, -0.29703831672668457, -0.6848102807998657, 0.5055372714996338, 0.13915956020355225, -0.7725992202758789, -0.24100551009178162, 0.7526090145111084, 0.7619729042053223, 0.4562612771987915, 0.8147577047348022, -0.3592471480369568, 0.28189030289649963, -0.04810536280274391, 0.20345769822597504, 0.19154103100299835, -0.25207120180130005, -0.3776531219482422, -0.10776454210281372, -0.03883536905050278, -0.07133093476295471 ]
microsoft/unispeech-large-1500h-cv
microsoft
"2021-11-05T12:41:56Z"
18,990
1
transformers
[ "transformers", "pytorch", "unispeech", "pretraining", "speech", "en", "dataset:common_voice", "arxiv:2101.07597", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- language: - en datasets: - common_voice tags: - speech --- # UniSpeech-Large [Microsoft's UniSpeech](https://www.microsoft.com/en-us/research/publication/unispeech-unified-speech-representation-learning-with-labeled-and-unlabeled-data/) The large model pretrained on 16kHz sampled speech audio and phonetic labels. When using the model make sure that your speech input is also sampled at 16kHz and your text in converted into a sequence of phonemes. **Note**: This model does not have a tokenizer as it was pretrained on audio alone. In order to use this model **speech recognition**, a tokenizer should be created and the model should be fine-tuned on labeled text data. Check out [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more in-detail explanation of how to fine-tune the model. [Paper: UniSpeech: Unified Speech Representation Learning with Labeled and Unlabeled Data](https://arxiv.org/abs/2101.07597) Authors: Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael Zeng, Xuedong Huang **Abstract** *In this paper, we propose a unified pre-training approach called UniSpeech to learn speech representations with both unlabeled and labeled data, in which supervised phonetic CTC learning and phonetically-aware contrastive self-supervised learning are conducted in a multi-task learning manner. The resultant representations can capture information more correlated with phonetic structures and improve the generalization across languages and domains. We evaluate the effectiveness of UniSpeech for cross-lingual representation learning on public CommonVoice corpus. The results show that UniSpeech outperforms self-supervised pretraining and supervised transfer learning for speech recognition by a maximum of 13.4% and 17.8% relative phone error rate reductions respectively (averaged over all testing languages). The transferability of UniSpeech is also demonstrated on a domain-shift speech recognition task, i.e., a relative word error rate reduction of 6% against the previous approach.* The original model can be found under https://github.com/microsoft/UniSpeech/tree/main/UniSpeech. # Usage This is an English pre-trained speech model that has to be fine-tuned on a downstream task like speech recognition or audio classification before it can be used in inference. The model was pre-trained in English and should therefore perform well only in English. **Note**: The model was pre-trained on phonemes rather than characters. This means that one should make sure that the input text is converted to a sequence of phonemes before fine-tuning. ## Speech Recognition To fine-tune the model for speech recognition, see [the official speech recognition example](https://github.com/huggingface/transformers/tree/master/examples/pytorch/speech-recognition). ## Speech Classification To fine-tune the model for speech classification, see [the official audio classification example](https://github.com/huggingface/transformers/tree/master/examples/pytorch/audio-classification). # Contribution The model was contributed by [cywang](https://huggingface.co/cywang) and [patrickvonplaten](https://huggingface.co/patrickvonplaten). # License The official license can be found [here](https://github.com/microsoft/UniSpeech/blob/main/LICENSE) ![design](https://raw.githubusercontent.com/patrickvonplaten/scientific_images/master/unispeech.png)
[ -0.20614559948444366, -0.23333382606506348, 0.01034168154001236, 0.17445197701454163, -0.5150755643844604, 0.11772339046001434, -0.37991470098495483, -0.40977445244789124, 0.1653165966272354, 0.3830377459526062, -0.24337972700595856, -0.523543655872345, -0.6203073263168335, -0.005668981000781059, -0.3133206069469452, 0.7758755087852478, 0.15773029625415802, 0.354758083820343, -0.06239306554198265, -0.08212149888277054, -0.3354272246360779, -0.8584503531455994, -0.4045178294181824, -0.6696668863296509, 0.021432872861623764, 0.3128587007522583, 0.31851962208747864, 0.18171732127666473, 0.0541108176112175, 0.35768577456474304, -0.28132715821266174, 0.029150744900107384, -0.17569339275360107, -0.17738772928714752, -0.15406319499015808, -0.19275954365730286, -0.319112092256546, 0.23110441863536835, 0.8167783617973328, 0.8716366291046143, -0.3578324019908905, 0.30329933762550354, 0.3899548649787903, 0.4258633553981781, -0.5229292511940002, 0.25137561559677124, -0.6873194575309753, -0.028026212006807327, -0.3695571720600128, -0.05571834370493889, -0.4529920220375061, 0.2705044150352478, -0.002738712588325143, -0.5398557186126709, 0.0013720467686653137, -0.20567137002944946, 0.6682851910591125, 0.16349145770072937, -0.48176905512809753, 0.002577871549874544, -0.6911544799804688, 0.9961176514625549, -0.6470950245857239, 0.8440860509872437, 0.3907795548439026, 0.08471155166625977, -0.2543976902961731, -0.9547978639602661, -0.38680386543273926, -0.270550012588501, 0.07588932663202286, 0.2786672115325928, -0.4509047567844391, 0.1648045778274536, 0.25079795718193054, 0.18740887939929962, -0.6147590279579163, 0.31225907802581787, -0.5036688446998596, -0.5423758029937744, 0.5512745380401611, -0.24650555849075317, 0.1685502678155899, -0.13893510401248932, -0.45939740538597107, -0.08397278189659119, -0.44879594445228577, 0.3492470383644104, 0.11186269670724869, 0.6258145570755005, -0.36495518684387207, 0.496853232383728, -0.07259747385978699, 0.6649344563484192, -0.0554143525660038, -0.11178591847419739, 0.683861255645752, -0.05218372121453285, -0.23864586651325226, 0.30024439096450806, 1.0526076555252075, 0.019711986184120178, 0.5204677581787109, -0.23626184463500977, -0.3200758695602417, 0.13104188442230225, 0.07961715757846832, -0.6262596845626831, -0.3847552239894867, 0.1269211620092392, -0.36638253927230835, 0.12191072106361389, 0.07956787198781967, -0.4245854616165161, 0.12557314336299896, -0.8416309952735901, 0.4164714515209198, -0.23665431141853333, -0.394889771938324, 0.01269715465605259, 0.1647287905216217, -0.1633646935224533, 0.0941724181175232, -0.7486754655838013, 0.3750057816505432, 0.3205021321773529, 0.7416887283325195, -0.3153585195541382, -0.42410916090011597, -0.5387197136878967, -0.012842867523431778, -0.30733340978622437, 0.7612663507461548, -0.3730851709842682, -0.544875979423523, -0.058017708361148834, 0.0998569056391716, -0.12428660690784454, -0.5829768776893616, 0.5073400735855103, -0.2174966037273407, 0.14046621322631836, 0.07866296172142029, -0.7126346826553345, 0.013042082078754902, -0.3547635078430176, -0.42305248975753784, 1.0873041152954102, -0.00965783093124628, -0.8110328316688538, 0.21672704815864563, -0.808039665222168, -0.4492163062095642, -0.032067444175481796, -0.07496892660856247, -0.4144527316093445, 0.06569939851760864, 0.14358960092067719, 0.5446864366531372, -0.21469639241695404, 0.23316217958927155, 0.004377353936433792, -0.2905133366584778, 0.21822452545166016, -0.43741899728775024, 1.2435557842254639, 0.5459177494049072, -0.27251148223876953, 0.11588281393051147, -0.957421600818634, 0.27928975224494934, 0.05657162889838219, -0.5039248466491699, -0.1284194439649582, -0.39596378803253174, 0.41668781638145447, 0.019958529621362686, 0.13284271955490112, -0.7585597038269043, 0.02452850341796875, -0.32855352759361267, 0.5593854784965515, 0.31681331992149353, -0.2612749934196472, 0.6430593729019165, 0.1883716881275177, 0.16923871636390686, 0.14786221086978912, 0.06365837156772614, 0.12914182245731354, -0.3689659833908081, -0.5444427132606506, -0.26723846793174744, 0.8879697322845459, 0.6438389420509338, -0.343522846698761, 0.6603464484214783, -0.021718788892030716, -0.42757323384284973, -0.6929409503936768, 0.18235118687152863, 0.6230869889259338, 0.48894768953323364, 0.598214328289032, -0.4688550531864166, -0.7831101417541504, -0.6144875288009644, -0.29131171107292175, -0.16810342669487, -0.31950274109840393, -0.2107486128807068, 0.30247464776039124, -0.40274661779403687, 0.7633364796638489, -0.05488473176956177, -0.5050841569900513, -0.12509003281593323, 0.4331439435482025, 0.010731509886682034, 0.689995527267456, 0.17442193627357483, -0.7475389242172241, -0.38628706336021423, -0.18835334479808807, -0.38690319657325745, -0.08041882514953613, 0.12872223556041718, 0.2739139199256897, 0.3939780294895172, 0.5981713533401489, -0.6039734482765198, 0.43178728222846985, 0.5839375257492065, -0.06621616333723068, 0.36424437165260315, -0.2841305434703827, -0.028369057923555374, -1.3424724340438843, -0.0016300869174301624, -0.14261239767074585, -0.20949868857860565, -0.613727331161499, -0.3532363474369049, 0.06555380672216415, -0.34854018688201904, -0.6322866678237915, 0.4297235608100891, -0.6636753678321838, -0.13765768706798553, -0.2286349982023239, 0.008281953632831573, -0.21483024954795837, 0.42568308115005493, 0.12684373557567596, 0.909974992275238, 0.7926650643348694, -0.6375232934951782, 0.35786038637161255, 0.2814895510673523, -0.40492165088653564, 0.33590859174728394, -0.7555934190750122, 0.45901432633399963, 0.14035730063915253, 0.12592095136642456, -1.0410449504852295, 0.05154171213507652, -0.08815733343362808, -0.8490884304046631, 0.6960663199424744, -0.21534428000450134, -0.5586360692977905, -0.3654029369354248, 0.20868229866027832, 0.2608484923839569, 0.7024069428443909, -0.7922245264053345, 0.7466137409210205, 0.762160062789917, 0.08176368474960327, -0.41604435443878174, -0.9061985611915588, -0.01739802025258541, -0.003499462502077222, -0.3697877526283264, 0.48097583651542664, 0.05848259478807449, 0.056177906692028046, -0.23647433519363403, -0.1331222951412201, -0.2536112070083618, -0.1984405517578125, 0.4245203733444214, 0.03964908421039581, -0.04851080849766731, 0.3086741268634796, -0.12464234977960587, -0.3210437595844269, -0.04788041487336159, -0.3047162890434265, 0.5052399635314941, -0.06291352957487106, -0.14376084506511688, -0.7482055425643921, 0.36237093806266785, 0.47281181812286377, -0.4804189205169678, 0.23884284496307373, 0.7707485556602478, -0.3754342198371887, -0.0626184269785881, -0.5521795153617859, -0.0914410874247551, -0.4437375068664551, 0.4446558952331543, -0.4379417598247528, -0.8726329207420349, 0.297026127576828, -0.3623294532299042, 0.06724140048027039, 0.5645099878311157, 0.4123993515968323, -0.15422959625720978, 1.0064959526062012, 0.5891397595405579, -0.3462440073490143, 0.36961138248443604, -0.2136957198381424, 0.052401456981897354, -0.8409781455993652, -0.42208704352378845, -0.6869093179702759, 0.05526203662157059, -0.5913388729095459, -0.23834002017974854, 0.052785858511924744, 0.33527857065200806, -0.29235896468162537, 0.5732355117797852, -0.8513523936271667, 0.3024449944496155, 0.6852450966835022, -0.19681718945503235, 0.1770818680524826, 0.430573433637619, -0.47869694232940674, -0.12192201614379883, -0.6022401452064514, -0.3988514542579651, 1.0749943256378174, 0.3997253179550171, 0.8896359205245972, -0.10983750224113464, 0.8327661156654358, 0.13762575387954712, -0.10952897369861603, -0.6195942759513855, 0.33363068103790283, -0.43057021498680115, -0.37841537594795227, -0.36181673407554626, -0.48721563816070557, -1.2171036005020142, 0.2298218458890915, -0.3638666272163391, -0.8740918040275574, -0.010285530239343643, 0.280900776386261, -0.29555970430374146, 0.378305584192276, -1.0398672819137573, 0.6729669570922852, -0.22660797834396362, 0.1571817845106125, -0.06406322121620178, -0.6755948662757874, -0.1058945581316948, -0.03349266201257706, 0.13134589791297913, 0.00005527047687792219, 0.2361760288476944, 1.1270850896835327, -0.14256590604782104, 0.9591810703277588, -0.35608258843421936, 0.1414821445941925, 0.4467748999595642, -0.13837017118930817, 0.27929842472076416, -0.18745157122612, 0.12691433727741241, 0.6996839046478271, 0.3972347378730774, -0.2538517117500305, -0.40773022174835205, 0.5856452584266663, -1.0114063024520874, -0.24373161792755127, -0.39831048250198364, -0.3595089316368103, -0.41286951303482056, 0.221627876162529, 0.6290473341941833, 0.4710950553417206, -0.2928806245326996, 0.14546974003314972, 0.5179330706596375, 0.03519938141107559, 0.40696755051612854, 0.674799382686615, -0.1722780466079712, -0.3923531472682953, 0.8011181354522705, 0.380824476480484, 0.029279211536049843, 0.3642030954360962, 0.3257492184638977, -0.7484582662582397, -0.5118696689605713, -0.2836873531341553, 0.07751184701919556, -0.5639687776565552, -0.24821737408638, -0.6171917915344238, -0.46540290117263794, -0.9258227348327637, 0.3924795091152191, -0.7457197308540344, -0.40666764974594116, -0.5805530548095703, 0.05122741684317589, 0.46781042218208313, 0.7592856287956238, -0.47202068567276, 0.3855654001235962, -0.6857914924621582, 0.42079079151153564, 0.44014641642570496, 0.3223654627799988, -0.25599560141563416, -0.9921531677246094, -0.03923724964261055, 0.23454299569129944, -0.22502879798412323, -0.5806617736816406, 0.2518296241760254, 0.1742173433303833, 0.6305227279663086, 0.2450304925441742, 0.07420506328344345, 0.6327651739120483, -0.619443953037262, 0.6573784947395325, 0.6119640469551086, -1.0408178567886353, 0.5566129684448242, 0.08163846284151077, 0.4748966097831726, 0.5434555411338806, 0.43776997923851013, -0.4087877571582794, 0.022667206823825836, -0.6824948787689209, -0.6352229714393616, 0.46738070249557495, 0.18745243549346924, 0.23711615800857544, 0.20224615931510925, 0.22267811000347137, -0.18926627933979034, 0.06510308384895325, -0.5554238557815552, -0.38652926683425903, -0.3935171365737915, -0.09001953154802322, -0.4344553053379059, -0.3765103816986084, 0.10107815265655518, -0.7466159462928772, 0.5790116190910339, 0.17702198028564453, 0.3281725347042084, 0.22959522902965546, -0.18303312361240387, -0.04243653640151024, 0.49106812477111816, 0.37885260581970215, 0.5250707864761353, -0.12701651453971863, 0.18973709642887115, 0.24018998444080353, -0.5999044179916382, 0.09459073841571808, 0.45256972312927246, 0.0787893757224083, 0.23326873779296875, 0.2625240087509155, 0.8860523700714111, 0.3401895761489868, -0.26026955246925354, 0.4992775619029999, -0.022776512429118156, -0.4111451208591461, -0.5539898872375488, -0.24512401223182678, 0.12943047285079956, 0.14520524442195892, 0.3104180693626404, -0.010720545426011086, 0.13098889589309692, -0.48091739416122437, 0.3658769726753235, 0.4582257866859436, -0.5761550664901733, -0.31666940450668335, 0.5746727585792542, 0.33340081572532654, -0.5848798751831055, 0.6158282160758972, -0.1654272824525833, -0.4893893301486969, 0.2220296561717987, 0.750326931476593, 0.7443981766700745, -0.88093101978302, 0.10997917503118515, 0.3899637460708618, 0.18909360468387604, -0.05919945240020752, 0.32474055886268616, -0.2792752683162689, -0.616375207901001, -0.4643768072128296, -0.6604992151260376, -0.24093161523342133, 0.34411075711250305, -0.6454141736030579, 0.09076445549726486, -0.30793970823287964, -0.2591044008731842, 0.2578206956386566, 0.13637535274028778, -0.6927399635314941, 0.2953164875507355, 0.07958664000034332, 0.7919149398803711, -0.7802433967590332, 1.064744472503662, 0.75705486536026, -0.3986321687698364, -1.2159963846206665, -0.21079730987548828, -0.03920379653573036, -0.8595269322395325, 0.6659949421882629, 0.09188506752252579, -0.21754391491413116, 0.16299551725387573, -0.6435779333114624, -0.8318505883216858, 0.7774771451950073, 0.4670608937740326, -0.92767333984375, 0.15680287778377533, 0.3483334183692932, 0.45256298780441284, -0.3192952275276184, 0.13545465469360352, 0.5013127326965332, 0.15110215544700623, 0.2424112856388092, -1.3308089971542358, -0.22604860365390778, -0.14709123969078064, -0.09684524685144424, 0.05456128716468811, -0.39795011281967163, 0.8511223196983337, -0.2979631721973419, -0.3727080821990967, 0.0203938577324152, 0.7564308047294617, -0.01203651912510395, 0.12548650801181793, 0.7003815770149231, 0.7208629846572876, 0.9478315711021423, 0.007224116008728743, 0.6707156896591187, -0.09150940924882889, 0.37060442566871643, 1.3840441703796387, -0.04602690786123276, 1.0491611957550049, 0.4713195860385895, -0.45881789922714233, 0.29665547609329224, 0.6028521656990051, 0.00465482147410512, 0.46311068534851074, 0.2768109440803528, -0.16747187077999115, -0.4166660010814667, -0.17451897263526917, -0.47838062047958374, 0.8347086310386658, 0.05564435198903084, -0.19523945450782776, -0.20479391515254974, 0.14515799283981323, -0.1520029753446579, 0.06020735949277878, -0.3546585142612457, 0.822443425655365, 0.3370848298072815, -0.31153208017349243, 0.8820670247077942, -0.17779472470283508, 0.8165167570114136, -0.6272377371788025, -0.1258128434419632, 0.14838024973869324, 0.17866379022598267, -0.2946712076663971, -0.7005278468132019, 0.013879409991204739, -0.10123883187770844, -0.06337561458349228, -0.027433857321739197, 0.6291264295578003, -0.6654968857765198, -0.5474878549575806, 0.5965602993965149, 0.17052705585956573, 0.5819984078407288, -0.32324954867362976, -0.9885963201522827, 0.07222534716129303, 0.10545250028371811, -0.05009140074253082, 0.4597278833389282, 0.36875277757644653, 0.1305033415555954, 0.41129010915756226, 0.8027188181877136, 0.19258898496627808, -0.06384220719337463, 0.4454614520072937, 0.745085597038269, -0.44189104437828064, -0.5932652950286865, -0.3524767756462097, 0.6443470120429993, 0.021810226142406464, -0.3453342318534851, 0.611889123916626, 0.6117919683456421, 1.0428364276885986, 0.0385945588350296, 0.49183374643325806, 0.4139719605445862, 1.00320565700531, -0.5301916599273682, 0.7783136963844299, -0.6340890526771545, -0.09516757726669312, -0.24972346425056458, -0.8508718609809875, -0.368971586227417, 0.6531921625137329, 0.07453861832618713, 0.12489157915115356, 0.512724757194519, 0.7718115448951721, -0.10986283421516418, -0.06387430429458618, 0.6112848520278931, 0.1510024517774582, -0.0741543397307396, 0.2862434387207031, 0.6517432332038879, -0.4297228157520294, 0.5526759028434753, -0.3593108355998993, -0.38510891795158386, 0.29647955298423767, -0.5774123668670654, -1.1468532085418701, -0.9851752519607544, -0.3224061131477356, -0.3347141146659851, 0.06263470649719238, 0.9989861249923706, 0.9263696074485779, -0.9984498620033264, -0.328600138425827, 0.01076428685337305, -0.36813420057296753, 0.13885973393917084, -0.16862227022647858, 0.48436129093170166, -0.40944594144821167, -0.570557713508606, 0.48303157091140747, -0.03842730447649956, 0.4241514801979065, -0.025419877842068672, -0.09096774458885193, -0.16087807714939117, -0.24311503767967224, 0.5778340101242065, 0.568065345287323, -0.7287629842758179, 0.04258160665631294, -0.2526013255119324, 0.14511041343212128, 0.09822073578834534, 0.8643996119499207, -0.7465322613716125, 0.5367319583892822, 0.19020316004753113, 0.5324832201004028, 0.5771411657333374, -0.22393798828125, 0.19158847630023956, -0.8202504515647888, 0.4184710383415222, 0.22576700150966644, 0.5284096598625183, 0.4496789872646332, -0.2756589651107788, 0.211887925863266, 0.18010738492012024, -0.6704167723655701, -0.735588788986206, 0.06788579374551773, -1.0424292087554932, -0.2810801863670349, 1.1797494888305664, -0.01380072720348835, -0.14399781823158264, -0.30355095863342285, -0.27509891986846924, 0.6275265216827393, -0.5944254994392395, 0.5094196796417236, 0.35754990577697754, -0.11729570478200912, -0.1908995807170868, -0.2091747373342514, 0.5698354244232178, 0.46278345584869385, -0.4669187366962433, 0.29488685727119446, 0.15652742981910706, 0.5268070101737976, 0.30325257778167725, 0.6437336802482605, -0.29029107093811035, 0.08710260689258575, -0.08661523461341858, 0.4367755949497223, -0.11781135946512222, -0.34931161999702454, -0.5520761609077454, -0.20661801099777222, 0.07388138771057129, -0.6322098970413208 ]
lllyasviel/control_v11p_sd15_lineart
lllyasviel
"2023-05-04T18:49:42Z"
18,976
20
diffusers
[ "diffusers", "art", "controlnet", "stable-diffusion", "controlnet-v1-1", "image-to-image", "arxiv:2302.05543", "base_model:runwayml/stable-diffusion-v1-5", "license:openrail", "has_space", "diffusers:ControlNetModel", "region:us" ]
image-to-image
"2023-04-14T19:25:13Z"
--- license: openrail base_model: runwayml/stable-diffusion-v1-5 tags: - art - controlnet - stable-diffusion - controlnet-v1-1 - image-to-image duplicated_from: ControlNet-1-1-preview/control_v11p_sd15_lineart --- # Controlnet - v1.1 - *lineart Version* **Controlnet v1.1** was released in [lllyasviel/ControlNet-v1-1](https://huggingface.co/lllyasviel/ControlNet-v1-1) by [Lvmin Zhang](https://huggingface.co/lllyasviel). This checkpoint is a conversion of [the original checkpoint](https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_lineart.pth) into `diffusers` format. It can be used in combination with **Stable Diffusion**, such as [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5). For more details, please also have a look at the [🧨 Diffusers docs](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/controlnet). ControlNet is a neural network structure to control diffusion models by adding extra conditions. ![img](./sd.png) This checkpoint corresponds to the ControlNet conditioned on **lineart images**. ## Model Details - **Developed by:** Lvmin Zhang, Maneesh Agrawala - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543). - **Cite as:** @misc{zhang2023adding, title={Adding Conditional Control to Text-to-Image Diffusion Models}, author={Lvmin Zhang and Maneesh Agrawala}, year={2023}, eprint={2302.05543}, archivePrefix={arXiv}, primaryClass={cs.CV} } ## Introduction Controlnet was proposed in [*Adding Conditional Control to Text-to-Image Diffusion Models*](https://arxiv.org/abs/2302.05543) by Lvmin Zhang, Maneesh Agrawala. The abstract reads as follows: *We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications.* ## Example It is recommended to use the checkpoint with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) as the checkpoint has been trained on it. Experimentally, the checkpoint can be used with other diffusion models such as dreamboothed stable diffusion. **Note**: If you want to process an image to create the auxiliary conditioning, external dependencies are required as shown below: 1. Install https://github.com/patrickvonplaten/controlnet_aux ```sh $ pip install controlnet_aux==0.3.0 ``` 2. Let's install `diffusers` and related packages: ``` $ pip install diffusers transformers accelerate ``` 3. Run code: ```python import torch import os from huggingface_hub import HfApi from pathlib import Path from diffusers.utils import load_image from PIL import Image import numpy as np from controlnet_aux import LineartDetector from diffusers import ( ControlNetModel, StableDiffusionControlNetPipeline, UniPCMultistepScheduler, ) checkpoint = "ControlNet-1-1-preview/control_v11p_sd15_lineart" image = load_image( "https://huggingface.co/ControlNet-1-1-preview/control_v11p_sd15_lineart/resolve/main/images/input.png" ) image = image.resize((512, 512)) prompt = "michael jackson concert" processor = LineartDetector.from_pretrained("lllyasviel/Annotators") control_image = processor(image) control_image.save("./images/control.png") controlnet = ControlNetModel.from_pretrained(checkpoint, torch_dtype=torch.float16) pipe = StableDiffusionControlNetPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16 ) pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config) pipe.enable_model_cpu_offload() generator = torch.manual_seed(0) image = pipe(prompt, num_inference_steps=30, generator=generator, image=control_image).images[0] image.save('images/image_out.png') ``` ![bird](./images/input.png) ![bird_canny](./images/control.png) ![bird_canny_out](./images/image_out.png) ## Other released checkpoints v1-1 The authors released 14 different checkpoints, each trained with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) on a different type of conditioning: | Model Name | Control Image Overview| Condition Image | Control Image Example | Generated Image Example | |---|---|---|---|---| |[lllyasviel/control_v11p_sd15_canny](https://huggingface.co/lllyasviel/control_v11p_sd15_canny)<br/> | *Trained with canny edge detection* | A monochrome image with white edges on a black background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_ip2p](https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p)<br/> | *Trained with pixel to pixel instruction* | No condition .|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_inpaint](https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint)<br/> | Trained with image inpainting | No condition.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"/></a>| |[lllyasviel/control_v11p_sd15_mlsd](https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd)<br/> | Trained with multi-level line segment detection | An image with annotated line segments.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1p_sd15_depth](https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth)<br/> | Trained with depth estimation | An image with depth information, usually represented as a grayscale image.|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_normalbae](https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae)<br/> | Trained with surface normal estimation | An image with surface normal information, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_seg](https://huggingface.co/lllyasviel/control_v11p_sd15_seg)<br/> | Trained with image segmentation | An image with segmented regions, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_lineart](https://huggingface.co/lllyasviel/control_v11p_sd15_lineart)<br/> | Trained with line art generation | An image with line art, usually black lines on a white background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15s2_lineart_anime](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with anime line art generation | An image with anime-style line art.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_openpose](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with human pose estimation | An image with human poses, usually represented as a set of keypoints or skeletons.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_scribble](https://huggingface.co/lllyasviel/control_v11p_sd15_scribble)<br/> | Trained with scribble-based image generation | An image with scribbles, usually random or user-drawn strokes.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_softedge](https://huggingface.co/lllyasviel/control_v11p_sd15_softedge)<br/> | Trained with soft edge image generation | An image with soft edges, usually to create a more painterly or artistic effect.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_shuffle](https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle)<br/> | Trained with image shuffling | An image with shuffled patches or regions.|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1e_sd15_tile](https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile)<br/> | Trained with image tiling | A blurry image or part of an image .|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"/></a>| ## More information For more information, please also have a look at the [Diffusers ControlNet Blog Post](https://huggingface.co/blog/controlnet) and have a look at the [official docs](https://github.com/lllyasviel/ControlNet-v1-1-nightly).
[ -0.5904008746147156, -0.5934560894966125, 0.12346001714468002, 0.5803492665290833, -0.24556241929531097, -0.23737280070781708, 0.061906613409519196, -0.540688157081604, 0.5480170249938965, 0.24379849433898926, -0.738065242767334, -0.3404117822647095, -0.7058331966400146, -0.15144363045692444, -0.16502131521701813, 0.8056654930114746, -0.30389612913131714, 0.007437058724462986, 0.10473950952291489, -0.07128064334392548, -0.08123977482318878, -0.16469794511795044, -1.2179934978485107, -0.4638941287994385, 0.47424474358558655, 0.020927976816892624, 0.5098606944084167, 0.5358290076255798, 0.49433737993240356, 0.3620454668998718, -0.35991424322128296, 0.05310139060020447, -0.2768273651599884, -0.1934698224067688, 0.1855660378932953, -0.09792367368936539, -0.6916034817695618, 0.08804748207330704, 0.7084790468215942, 0.28708866238594055, 0.020537201315164566, -0.1902022361755371, 0.15163873136043549, 0.6539154052734375, -0.4663392901420593, -0.12876443564891815, -0.1333571970462799, 0.27629876136779785, -0.13493824005126953, 0.09870883822441101, -0.1882459819316864, -0.3190942704677582, 0.09010479599237442, -0.7428827285766602, -0.11311071366071701, -0.15628831088542938, 1.3327137231826782, 0.2921111583709717, -0.4156526029109955, -0.08361562341451645, -0.26119789481163025, 0.6370620131492615, -0.7687363028526306, 0.10738547146320343, 0.10831833630800247, 0.21094420552253723, -0.2054760456085205, -0.9526942372322083, -0.48913249373435974, -0.14096830785274506, -0.11219953745603561, 0.44386810064315796, -0.3680160641670227, 0.07171366363763809, 0.2800670862197876, 0.21614757180213928, -0.3800867795944214, 0.2448319047689438, -0.3008396327495575, -0.38473010063171387, 0.6023675799369812, -0.009189496748149395, 0.5696325302124023, 0.054484929889440536, -0.5819401144981384, -0.0297559704631567, -0.3701934516429901, 0.3516959547996521, 0.20564909279346466, -0.15913832187652588, -0.7591078281402588, 0.3977166712284088, -0.025976315140724182, 0.7149562835693359, 0.4391077160835266, -0.20295503735542297, 0.47680428624153137, -0.19635167717933655, -0.36976882815361023, -0.3032877445220947, 1.0017458200454712, 0.4696894586086273, 0.1330006867647171, -0.0001710370124783367, -0.18676112592220306, -0.12384767830371857, -0.06280041486024857, -1.190414547920227, -0.15276919305324554, 0.1964883953332901, -0.5562646389007568, -0.355356365442276, -0.15122589468955994, -0.7079601883888245, -0.19335445761680603, -0.08695324510335922, 0.38473859429359436, -0.5880724191665649, -0.45713871717453003, 0.15665090084075928, -0.43631404638290405, 0.5274611115455627, 0.5912226438522339, -0.425995796918869, 0.17824742197990417, 0.12043648958206177, 0.9795998334884644, -0.24109505116939545, -0.12057899683713913, -0.27952146530151367, -0.09406421333551407, -0.28925207257270813, 0.5014106035232544, -0.12190889567136765, -0.1063179150223732, -0.058339379727840424, 0.3304838240146637, -0.1318700760602951, -0.3088761568069458, 0.4241095781326294, -0.3183504641056061, 0.1867913007736206, -0.06816073507070541, -0.38753169775009155, -0.12386059761047363, 0.23685860633850098, -0.4522942304611206, 0.7507044076919556, 0.231098011136055, -1.0455372333526611, 0.33523592352867126, -0.49969005584716797, -0.22297263145446777, -0.2552464008331299, 0.1336500346660614, -0.7434282898902893, -0.41982194781303406, 0.0446140356361866, 0.5610230565071106, 0.0032905375119298697, -0.13911762833595276, -0.4625725746154785, -0.037410955876111984, 0.17006883025169373, -0.11976257711648941, 1.173123836517334, 0.15425948798656464, -0.5996991395950317, 0.19796214997768402, -0.6920643448829651, 0.044428251683712006, 0.14254605770111084, -0.25675684213638306, 0.0903031975030899, -0.28581181168556213, 0.154190793633461, 0.6393912434577942, 0.3696635663509369, -0.6698322296142578, 0.13724932074546814, -0.2231726199388504, 0.4312821924686432, 0.6477345824241638, 0.21250052750110626, 0.5756568908691406, -0.5138143301010132, 0.5621353983879089, 0.27388545870780945, 0.3241930603981018, 0.06679471582174301, -0.4932279586791992, -1.016491174697876, -0.5788301825523376, -0.005200671963393688, 0.5684430003166199, -0.7980349063873291, 0.799517810344696, 0.12888754904270172, -0.640880823135376, -0.24514195322990417, 0.07326672971248627, 0.5033079385757446, 0.4833569824695587, 0.28649818897247314, -0.4574863612651825, -0.369120717048645, -0.8823450803756714, 0.13849832117557526, 0.23618918657302856, 0.008097144775092602, 0.17974933981895447, 0.6363723874092102, -0.11014825850725174, 0.649742603302002, -0.23067529499530792, -0.3744344711303711, -0.09259837865829468, -0.09582716971635818, 0.2789474129676819, 1.0098744630813599, 0.7914993166923523, -0.7353623509407043, -0.6319741010665894, -0.029856359586119652, -0.8720008134841919, -0.06093824282288551, -0.22401566803455353, -0.49820733070373535, 0.20688825845718384, 0.5942115187644958, -0.6265093088150024, 0.777532696723938, 0.520348846912384, -0.5694947242736816, 0.5607319474220276, -0.3414739668369293, 0.13603056967258453, -0.9438711404800415, 0.22437559068202972, 0.361217200756073, -0.34159180521965027, -0.5929218530654907, 0.06199769303202629, 0.13573600351810455, 0.06330499053001404, -0.6800170540809631, 0.7014582753181458, -0.48718002438545227, 0.18199729919433594, -0.29090556502342224, -0.06752748787403107, 0.06602499634027481, 0.6221467852592468, 0.1682390421628952, 0.4814164638519287, 0.9385600090026855, -0.5804332494735718, 0.32446151971817017, 0.40576648712158203, -0.2025728076696396, 0.83423912525177, -0.8116113543510437, 0.13330435752868652, -0.1687227040529251, 0.5807471871376038, -0.8975698947906494, -0.25670838356018066, 0.6471637487411499, -0.4809185266494751, 0.5539745092391968, -0.26015445590019226, -0.25639113783836365, -0.42334625124931335, -0.3145541250705719, 0.1984683722257614, 0.7413553595542908, -0.4988364577293396, 0.33758726716041565, 0.16651146113872528, 0.18146912753582, -0.48668423295021057, -0.8817946314811707, -0.08871089667081833, -0.38864007592201233, -0.8164737224578857, 0.4582041800022125, -0.162164106965065, 0.043890271335840225, -0.011782539077103138, 0.0074308025650680065, -0.2856554687023163, -0.014127900823950768, 0.3409728705883026, 0.22493582963943481, -0.09151210635900497, -0.16558779776096344, 0.0998014286160469, -0.1625777631998062, -0.063276007771492, -0.38872674107551575, 0.45116278529167175, 0.033310793340206146, -0.21644708514213562, -0.9835627675056458, 0.22265107929706573, 0.5490645170211792, -0.03211216256022453, 0.8839147090911865, 0.9226492047309875, -0.4110979437828064, -0.017218725755810738, -0.37752482295036316, -0.15219667553901672, -0.49792635440826416, -0.05481463670730591, -0.2075386494398117, -0.6919065117835999, 0.6713451147079468, 0.062212008982896805, -0.05074663087725639, 0.6081446409225464, 0.3580365777015686, -0.21745021641254425, 0.8515774011611938, 0.5146313905715942, -0.13776321709156036, 0.815362811088562, -0.7252577543258667, -0.11686892062425613, -0.9613028168678284, -0.2592906057834625, -0.3215848207473755, -0.6708815097808838, -0.32583218812942505, -0.36006855964660645, 0.4659205973148346, 0.44022756814956665, -0.7192328572273254, 0.4607602059841156, -0.5835835337638855, 0.11294697225093842, 0.312453955411911, 0.5422676205635071, -0.16205203533172607, -0.14048215746879578, -0.16140052676200867, 0.05552564188838005, -0.5902634263038635, -0.24261009693145752, 0.5813581347465515, 0.5617703199386597, 0.525463342666626, -0.04866429790854454, 0.5720904469490051, 0.027099456638097763, 0.2923659384250641, -0.5506114363670349, 0.49665898084640503, 0.011075824499130249, -0.5458801984786987, -0.20449435710906982, -0.3138015866279602, -0.9978147745132446, 0.09336626529693604, -0.48480817675590515, -0.7269041538238525, 0.3561382591724396, 0.2453114092350006, -0.0684392899274826, 0.4579290747642517, -0.651887834072113, 0.7437204122543335, 0.000039720551285427064, -0.5937239527702332, 0.06849171966314316, -0.821830153465271, 0.21703921258449554, 0.2283942997455597, -0.17285266518592834, -0.010615506209433079, -0.11050547659397125, 0.8396896123886108, -0.7624894976615906, 0.8422288298606873, -0.5393064618110657, -0.030108453705906868, 0.32515591382980347, -0.018955031409859657, 0.5760592222213745, -0.12856468558311462, -0.2198309600353241, 0.053360581398010254, -0.06646375358104706, -0.5983585715293884, -0.34896209836006165, 0.6301816701889038, -0.6733694672584534, -0.19560497999191284, -0.26628565788269043, -0.27414825558662415, 0.2010991871356964, 0.23099514842033386, 0.666141927242279, 0.38224512338638306, 0.1736915409564972, 0.06764363497495651, 0.6470291614532471, -0.33337658643722534, 0.6580439805984497, 0.038957852870225906, -0.11694040894508362, -0.5423924922943115, 0.6968697309494019, -0.011858556419610977, 0.40429213643074036, 0.2054806351661682, 0.14574824273586273, -0.21616718173027039, -0.4910256564617157, -0.4193302392959595, 0.43406128883361816, -0.6097203493118286, -0.4066656529903412, -0.585780143737793, -0.4546438753604889, -0.3621877431869507, -0.48791733384132385, -0.26547449827194214, -0.2887837588787079, -0.6692519783973694, 0.1717728078365326, 0.6233497262001038, 0.4986002445220947, -0.2338390201330185, 0.5820409059524536, -0.25324878096580505, 0.232105553150177, 0.2500838041305542, 0.3314019441604614, -0.06956862658262253, -0.5930448770523071, -0.00248690415173769, 0.10491771250963211, -0.5077104568481445, -0.7348748445510864, 0.4865824282169342, 0.05228879302740097, 0.46469882130622864, 0.5489668846130371, -0.2363789677619934, 0.6541925072669983, -0.2853736877441406, 0.5587893724441528, 0.6155708432197571, -0.8112249970436096, 0.5164797306060791, -0.4233207106590271, 0.26141220331192017, 0.2876851260662079, 0.5079429745674133, -0.4381641745567322, -0.3457008898258209, -0.687325119972229, -0.6392726302146912, 0.5914742350578308, 0.26014575362205505, -0.08309850096702576, 0.3283015489578247, 0.6593438386917114, -0.36744165420532227, 0.1202310100197792, -0.8372541069984436, -0.4591255187988281, -0.26506754755973816, 0.03396280109882355, 0.030321184545755386, 0.08172061294317245, -0.07312712073326111, -0.4878789484500885, 0.8601015210151672, -0.015181882306933403, 0.5637129545211792, 0.5280436277389526, 0.10871370136737823, -0.1765846163034439, -0.30093252658843994, 0.5632255673408508, 0.4849613606929779, -0.09855692833662033, -0.30246302485466003, 0.06535796821117401, -0.39895376563072205, 0.23029425740242004, -0.02831795997917652, -0.35147348046302795, -0.07430464774370193, 0.3211138844490051, 0.8173971772193909, -0.1533557027578354, -0.15812230110168457, 0.7551454901695251, 0.014713937416672707, -0.5379734635353088, -0.2912209928035736, 0.013058554381132126, 0.12294906377792358, 0.45592591166496277, 0.13475757837295532, 0.37610727548599243, 0.03197355940937996, -0.11366172879934311, 0.2987634837627411, 0.5797923803329468, -0.5815281867980957, -0.14958377182483673, 0.7456852197647095, 0.05318126454949379, -0.09943882375955582, 0.35654428601264954, -0.42887455224990845, -0.6878465414047241, 0.896611750125885, 0.5190457701683044, 0.7292758822441101, -0.12769071757793427, 0.2746197283267975, 0.6902703046798706, 0.1949891448020935, 0.09449376910924911, 0.1783672422170639, 0.10819806903600693, -0.6772351861000061, -0.38936367630958557, -0.4413984417915344, -0.025262633338570595, 0.16694499552249908, -0.415907621383667, 0.4432792365550995, -0.7784276008605957, -0.22801785171031952, -0.075986348092556, 0.0968797355890274, -0.6791825890541077, 0.3992886543273926, 0.04335464909672737, 1.2003729343414307, -0.8257139325141907, 0.8443328738212585, 0.55234694480896, -0.46677809953689575, -0.8715453743934631, 0.010615553706884384, 0.026509160175919533, -0.7734131217002869, 0.6360431909561157, 0.14011412858963013, -0.04414732754230499, 0.08904950320720673, -0.7705344557762146, -0.5870184302330017, 1.2704973220825195, 0.25291842222213745, -0.20381227135658264, 0.083589106798172, -0.4838888645172119, 0.43697306513786316, -0.42533087730407715, 0.4698467552661896, 0.43760284781455994, 0.5207729339599609, 0.435652494430542, -0.7760332226753235, 0.23179692029953003, -0.43663033843040466, 0.11688537150621414, 0.1771480143070221, -0.9657184481620789, 0.8881856799125671, 0.041638076305389404, -0.1483164280653, 0.27604007720947266, 0.7005504965782166, 0.24003054201602936, 0.1632130891084671, 0.6258574724197388, 0.7732411623001099, 0.3382505178451538, -0.11703026294708252, 0.9563538432121277, -0.07706495374441147, 0.300324022769928, 0.5871174931526184, 0.24984240531921387, 0.51117342710495, 0.37684330344200134, -0.07476595044136047, 0.48487553000450134, 0.8369570374488831, 0.04431397467851639, 0.40877676010131836, 0.49917879700660706, -0.31470033526420593, -0.12260489165782928, -0.055079054087400436, -0.35510802268981934, 0.07029286026954651, 0.27975836396217346, -0.28252509236335754, -0.22904428839683533, 0.26461800932884216, 0.29302874207496643, -0.1818467080593109, -0.4266141653060913, 0.6336150765419006, -0.08959071338176727, -0.5056332945823669, 0.7503129839897156, -0.09427530318498611, 1.0981149673461914, -0.6735031008720398, 0.07397258281707764, -0.2615182399749756, 0.09715062379837036, -0.39059579372406006, -0.8111987709999084, 0.18814636766910553, -0.1875860095024109, 0.26433175802230835, -0.40575510263442993, 0.6990739107131958, -0.35695478320121765, -0.41018128395080566, 0.5248827338218689, 0.1092681810259819, 0.38218483328819275, 0.18286870419979095, -1.06114661693573, 0.22500774264335632, 0.10602587461471558, -0.4753059148788452, 0.23892390727996826, 0.3731331527233124, 0.20823530852794647, 0.7150782346725464, 0.3311923146247864, 0.35841265320777893, 0.2866225242614746, -0.22883819043636322, 1.0224398374557495, -0.2700777053833008, -0.3104701340198517, -0.5556063652038574, 0.7798430323600769, -0.3380948007106781, -0.4317489564418793, 0.5579093098640442, 0.30269718170166016, 0.7244150042533875, -0.08771174401044846, 0.6770892143249512, -0.41622546315193176, 0.1913948953151703, -0.6598644852638245, 0.8223606944084167, -0.8467965126037598, -0.25580859184265137, -0.33693408966064453, -0.6507660746574402, -0.2811116576194763, 0.8345702290534973, -0.11822681874036789, 0.21047744154930115, 0.5706918239593506, 0.9508546590805054, -0.20256416499614716, -0.5730823278427124, 0.08759079873561859, 0.09404513984918594, 0.34073606133461, 0.7135834693908691, 0.6591750383377075, -0.6637395620346069, 0.28554263710975647, -0.5361559391021729, -0.4697742462158203, -0.08097587525844574, -0.9415158033370972, -0.8715985417366028, -0.712186336517334, -0.6837111115455627, -0.7061588168144226, -0.2657870650291443, 0.7146551609039307, 1.1191766262054443, -0.6323189735412598, -0.1702061891555786, -0.3364746868610382, 0.0828004702925682, -0.15112382173538208, -0.20219632983207703, 0.34928926825523376, -0.11955465376377106, -0.8274275064468384, 0.0318298377096653, 0.21587976813316345, 0.5691569447517395, -0.08008170127868652, -0.408223032951355, -0.36526206135749817, -0.2510198950767517, 0.24895544350147247, 0.4602813124656677, -0.45573902130126953, -0.22200839221477509, -0.28003573417663574, -0.21667560935020447, 0.1181797906756401, 0.5276452898979187, -0.4009650647640228, 0.1813240498304367, 0.5260365605354309, 0.39625704288482666, 0.8216353058815002, -0.14156396687030792, 0.13496561348438263, -0.5732578039169312, 0.5435959696769714, 0.029087303206324577, 0.45840486884117126, 0.060845475643873215, -0.32374686002731323, 0.4071411192417145, 0.3383713364601135, -0.7820917367935181, -0.4390963017940521, 0.15442749857902527, -1.3632923364639282, -0.1088755652308464, 0.9680451154708862, -0.35436052083969116, -0.3755228817462921, 0.16599911451339722, -0.4453850984573364, 0.348368763923645, -0.33466407656669617, 0.2036123126745224, 0.35905155539512634, -0.19682708382606506, -0.36216214299201965, -0.424019992351532, 0.6340207457542419, 0.21495471894741058, -0.7920587062835693, -0.535052478313446, 0.522956132888794, 0.35847577452659607, 0.30456340312957764, 0.8698683977127075, -0.11122514307498932, 0.12364999204874039, -0.09252872318029404, 0.25110572576522827, 0.08838195353746414, -0.08497124165296555, -0.5579100251197815, -0.158194437623024, -0.2165340930223465, -0.4019191563129425 ]
asapp/sew-d-tiny-100k
asapp
"2023-07-21T23:05:03Z"
18,954
1
transformers
[ "transformers", "pytorch", "safetensors", "sew-d", "feature-extraction", "speech", "en", "dataset:librispeech_asr", "arxiv:2109.06870", "license:apache-2.0", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- language: en datasets: - librispeech_asr tags: - speech license: apache-2.0 --- # SEW-D-tiny [SEW-D by ASAPP Research](https://github.com/asappresearch/sew) The base model pretrained on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz. Note that this model should be fine-tuned on a downstream task, like Automatic Speech Recognition, Speaker Identification, Intent Classification, Emotion Recognition, etc... Paper: [Performance-Efficiency Trade-offs in Unsupervised Pre-training for Speech Recognition](https://arxiv.org/abs/2109.06870) Authors: Felix Wu, Kwangyoun Kim, Jing Pan, Kyu Han, Kilian Q. Weinberger, Yoav Artzi **Abstract** This paper is a study of performance-efficiency trade-offs in pre-trained models for automatic speech recognition (ASR). We focus on wav2vec 2.0, and formalize several architecture designs that influence both the model performance and its efficiency. Putting together all our observations, we introduce SEW (Squeezed and Efficient Wav2vec), a pre-trained model architecture with significant improvements along both performance and efficiency dimensions across a variety of training setups. For example, under the 100h-960h semi-supervised setup on LibriSpeech, SEW achieves a 1.9x inference speedup compared to wav2vec 2.0, with a 13.5% relative reduction in word error rate. With a similar inference time, SEW reduces word error rate by 25-50% across different model sizes. The original model can be found under https://github.com/asappresearch/sew#model-checkpoints . # Usage See [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more information on how to fine-tune the model. Note that the class `Wav2Vec2ForCTC` has to be replaced by `SEWDForCTC`.
[ -0.3727899193763733, -0.322677344083786, 0.16836906969547272, 0.006059026811271906, -0.40889590978622437, -0.26537618041038513, -0.03531506657600403, -0.6348158717155457, -0.10483621060848236, 0.42025017738342285, -0.5383412837982178, 0.06898991763591766, -0.5555449724197388, -0.44187209010124207, -0.36116594076156616, 0.34528785943984985, 0.2791733145713806, 0.2695549428462982, -0.16273169219493866, -0.1970830261707306, -0.13505300879478455, -0.510864794254303, -0.5905318856239319, -0.46203723549842834, 0.0621039979159832, 0.2888861298561096, 0.362993985414505, 0.509218156337738, 0.408993124961853, 0.2986260950565338, -0.26223695278167725, -0.14965477585792542, -0.31748175621032715, -0.075886070728302, -0.0022566381376236677, -0.0689077079296112, -0.5422378778457642, 0.27943894267082214, 0.5215051770210266, 0.5071364045143127, -0.3572894036769867, 0.4664870798587799, 0.2383348047733307, 0.6636756062507629, -0.6102731823921204, -0.06863787025213242, -0.6958243250846863, -0.18637455999851227, -0.2571593225002289, -0.1801610291004181, -0.21317768096923828, -0.013085629791021347, 0.3246251344680786, -0.32797160744667053, 0.2557385265827179, -0.15930956602096558, 0.7909796833992004, 0.6794257760047913, -0.2721870243549347, -0.09421469271183014, -0.6881015300750732, 0.7078737616539001, -0.8705716133117676, 0.8749648332595825, 0.5097542405128479, 0.05352339148521423, 0.04304346442222595, -0.9671428203582764, -0.5270891189575195, -0.011376610957086086, 0.4215044677257538, 0.2554415762424469, -0.45746609568595886, 0.2069312334060669, 0.3613111078739166, 0.3956203758716583, -0.47720229625701904, 0.45931923389434814, -0.4971102178096771, -0.40480726957321167, 0.6046972870826721, -0.2346295863389969, -0.013833761215209961, 0.04904039204120636, -0.25139713287353516, -0.36285603046417236, -0.46981552243232727, 0.34483766555786133, 0.38335615396499634, 0.21189868450164795, -0.0787259042263031, 0.4001544117927551, 0.009132936596870422, 0.5924389362335205, -0.18494068086147308, -0.012468225322663784, 0.4582764804363251, -0.19630201160907745, -0.12180344760417938, 0.07216629385948181, 0.5446447134017944, 0.1341167539358139, 0.009539995342493057, 0.04860013350844383, -0.2873055934906006, 0.41392335295677185, 0.42840126156806946, -0.829811155796051, -0.5613252520561218, 0.022177619859576225, -0.6031689643859863, -0.10265687108039856, -0.14175844192504883, -0.34966573119163513, 0.09116040170192719, -0.5855966210365295, 0.8462342023849487, -0.3805943727493286, -0.20520329475402832, 0.04349967837333679, -0.2954602539539337, 0.33002960681915283, 0.2305724173784256, -0.4624961018562317, 0.41936397552490234, 0.5205692052841187, 0.8291810154914856, -0.1753748059272766, -0.09472719579935074, -0.6061643958091736, -0.09938307851552963, -0.3043108284473419, 0.7564420104026794, -0.23981742560863495, -0.592393159866333, -0.19334019720554352, -0.2058512270450592, -0.006910907104611397, -0.45119509100914, 0.661801278591156, -0.4718686640262604, -0.01059772353619337, -0.08496099710464478, -0.6787492036819458, -0.11157121509313583, -0.5517334342002869, -0.6395161151885986, 1.0805730819702148, -0.16473795473575592, -0.6620543599128723, 0.4141102135181427, -0.4128962457180023, -0.899752140045166, -0.10983362793922424, 0.19638074934482574, -0.4250573515892029, 0.16112267971038818, 0.08218920230865479, 0.3036760985851288, -0.13814425468444824, -0.24785348773002625, -0.25979921221733093, -0.5024005770683289, 0.07518130540847778, -0.348770409822464, 0.5715289115905762, 0.6333100199699402, -0.3979913890361786, 0.04043137654662132, -1.040718913078308, 0.42280831933021545, -0.2058480978012085, -0.5889103412628174, -0.36268508434295654, 0.10408965498209, 0.11394195258617401, 0.16221821308135986, 0.09114547818899155, -0.3736410439014435, -0.30593904852867126, -0.5818266868591309, 0.6346767544746399, 0.6110027432441711, -0.23155094683170319, 0.581815242767334, -0.16499170660972595, 0.2572600841522217, -0.35452544689178467, 0.042729079723358154, 0.11004617065191269, -0.2631802260875702, -0.8078776597976685, -0.3644508123397827, 0.5494285225868225, 0.40821143984794617, -0.36739322543144226, 0.631420910358429, 0.16367296874523163, -0.5870839357376099, -0.9049205780029297, -0.033212848007678986, 0.5416421294212341, 0.3344843089580536, 0.49158474802970886, -0.43344008922576904, -0.902823805809021, -0.6429859399795532, -0.33120185136795044, -0.12133049964904785, -0.2045740783214569, 0.508719801902771, 0.13677631318569183, -0.3275846242904663, 0.5760231614112854, -0.30614274740219116, -0.19899562001228333, -0.22808493673801422, 0.2068423181772232, 0.0027767550200223923, 0.6440544128417969, 0.162698894739151, -0.5715556740760803, -0.02745731547474861, -0.5339291095733643, 0.16987816989421844, -0.24108697474002838, 0.19537067413330078, -0.09595487266778946, 0.3449159264564514, 0.5694835782051086, -0.30068376660346985, 0.45331504940986633, 0.6317136287689209, -0.15552327036857605, 0.3787582814693451, -0.40701937675476074, 0.048427969217300415, -0.9728507995605469, 0.12499471753835678, -0.0012732906034216285, -0.20375876128673553, -0.6096872091293335, -0.3221047818660736, 0.11501189321279526, -0.1495635062456131, -0.4647196829319, 0.35636767745018005, -0.6249333024024963, -0.43816637992858887, -0.3735796809196472, -0.12753558158874512, -0.05499230697751045, 0.37464001774787903, 0.2685767710208893, 1.0708502531051636, 0.29225414991378784, -0.9695689082145691, -0.25180569291114807, 0.29246217012405396, -0.6220942139625549, -0.11734135448932648, -0.944981575012207, 0.5571790337562561, 0.31912949681282043, 0.2001396119594574, -0.7969443798065186, 0.08152099698781967, -0.4234701097011566, -0.7710973620414734, 0.473773330450058, -0.10703732073307037, -0.28099560737609863, -0.5254588723182678, -0.16405589878559113, 0.2861346900463104, 0.998534083366394, -0.7699795961380005, 0.37570327520370483, 0.9687630534172058, 0.07022211700677872, -0.16591714322566986, -0.8127416372299194, -0.40836307406425476, -0.019836729392409325, -0.5073115825653076, 0.5645613074302673, 0.04133863374590874, 0.025964941829442978, -0.259818434715271, -0.4858480393886566, -0.12287504971027374, 0.09649576246738434, 0.41670095920562744, 0.1971808820962906, -0.07295593619346619, 0.10722555965185165, -0.06930360198020935, -0.1274157166481018, -0.059095919132232666, -0.30003735423088074, 0.627047598361969, -0.03261198475956917, -0.27581459283828735, -0.5931040644645691, 0.11101190000772476, 0.2925208508968353, -0.3444310426712036, 0.1739879995584488, 0.6459940075874329, -0.26124513149261475, -0.13447633385658264, -0.813601553440094, -0.16125711798667908, -0.49651938676834106, 0.45439136028289795, -0.41732725501060486, -0.7685772776603699, 0.16754543781280518, -0.03597898408770561, -0.08788392692804337, 0.5522454977035522, 0.5479577779769897, -0.3225885331630707, 1.0336062908172607, 0.5364319086074829, -0.059344321489334106, 0.7128738164901733, -0.4589363634586334, 0.07306288927793503, -0.9160624146461487, -0.09377428889274597, -0.6854994297027588, -0.21737399697303772, -0.4315263628959656, -0.8234285116195679, 0.2680537700653076, 0.09914413839578629, -0.18921658396720886, 0.39637356996536255, -0.5210064649581909, 0.1355670988559723, 0.860442042350769, 0.0719246044754982, -0.15280884504318237, -0.08460944145917892, 0.13322238624095917, -0.04867439717054367, -0.915802538394928, -0.29970303177833557, 0.9080235362052917, 0.36400464177131653, 0.9376603364944458, 0.0531986840069294, 0.5553606152534485, 0.3003479540348053, -0.7322993874549866, -0.7948725819587708, 0.44276875257492065, -0.4687328040599823, -0.27138200402259827, -0.33839690685272217, -0.27180150151252747, -0.8662117123603821, 0.2652653455734253, -0.30690866708755493, -0.5581143498420715, 0.20689082145690918, 0.5114140510559082, -0.432803213596344, 0.1293538212776184, -0.7857115864753723, 0.5671799182891846, -0.20759554207324982, -0.1817154884338379, -0.5508795380592346, -0.6424142122268677, -0.038012031465768814, 0.14717727899551392, -0.055934514850378036, -0.08327461034059525, 0.2647126317024231, 1.1861659288406372, -0.4972783327102661, 0.3950663208961487, -0.3552573621273041, 0.4249270260334015, 0.4270496070384979, -0.22287914156913757, 0.6872494220733643, -0.36069849133491516, -0.053124282509088516, 0.29216283559799194, 0.31574299931526184, -0.18689526617527008, -0.15673023462295532, 0.4712966978549957, -1.029568076133728, -0.2647753953933716, -0.244522362947464, -0.27200114727020264, -0.4066540598869324, -0.030869878828525543, 0.7003324627876282, 0.8356127142906189, -0.18819411098957062, 0.37518829107284546, 0.8496190309524536, -0.10483474284410477, 0.2240281105041504, 0.6059684157371521, 0.2970143258571625, -0.11358869075775146, 0.8289700150489807, 0.41006001830101013, 0.21672609448432922, 0.09960669279098511, 0.21323205530643463, -0.6766533255577087, -0.6305822134017944, -0.20556651055812836, -0.09805525094270706, -0.3501170575618744, -0.10311807692050934, -0.8935078382492065, -0.4939980208873749, -1.0134873390197754, 0.003100775182247162, -0.8519985675811768, -0.5827516317367554, -0.6859094500541687, 0.06564655900001526, 0.34088340401649475, 0.3508675694465637, -0.48959118127822876, 0.3095007538795471, -0.6104752421379089, 0.42872047424316406, 0.43834465742111206, 0.152444526553154, 0.02097204700112343, -1.1478276252746582, -0.0943097248673439, 0.038065243512392044, 0.04874188452959061, -0.6621601581573486, 0.34426218271255493, 0.4709390699863434, 0.7933264374732971, 0.3310188055038452, 0.19346491992473602, 0.8173900842666626, -0.5416863560676575, 0.6915442943572998, 0.2621261775493622, -1.0724762678146362, 0.8289942741394043, 0.05338573083281517, 0.42589256167411804, 0.6446869969367981, -0.01383716706186533, -0.18782441318035126, -0.008762922137975693, -0.8007956147193909, -1.1984024047851562, 0.8611575961112976, 0.0872102603316307, -0.06219145655632019, 0.3230220079421997, 0.07230620086193085, -0.09858526289463043, 0.06504596769809723, -0.08170288801193237, -0.09053583443164825, -0.33084359765052795, -0.03703794628381729, -0.2602823078632355, -0.7087894082069397, 0.15108317136764526, -0.5901543498039246, 1.0299291610717773, 0.13878630101680756, 0.33373790979385376, 0.21411503851413727, -0.40949246287345886, 0.1527373343706131, 0.2533658742904663, 0.30604490637779236, 0.25400108098983765, -0.17292802035808563, 0.23685556650161743, 0.3282252550125122, -0.5203712582588196, 0.051975809037685394, 0.35226157307624817, -0.02855825424194336, -0.10557681322097778, 0.33107730746269226, 1.2728443145751953, 0.3489896357059479, -0.550570011138916, 0.48574936389923096, -0.11838924139738083, -0.44115155935287476, -0.413570761680603, 0.375247061252594, -0.010194324888288975, 0.457732230424881, 0.03343389928340912, 0.21022173762321472, 0.5673436522483826, -0.28021061420440674, 0.22888299822807312, 0.42843517661094666, -0.4798245131969452, -0.29140564799308777, 0.8138614296913147, 0.5100574493408203, -0.516170084476471, 0.6569896340370178, 0.023250777274370193, -0.5863230228424072, 0.4265912175178528, 0.4538552165031433, 0.7140518426895142, -0.35525840520858765, -0.17859220504760742, 0.4424695670604706, 0.05381540209054947, -0.22240710258483887, 0.3209303617477417, -0.5639925003051758, -0.6242146492004395, -0.26177605986595154, -0.7649552226066589, -0.2616270184516907, 0.24231858551502228, -0.9720046520233154, 0.20414520800113678, -0.240896075963974, -0.30704355239868164, 0.2262258380651474, 0.28577786684036255, -0.8455175757408142, 0.27133747935295105, 0.2943345904350281, 1.024146318435669, -0.6535427570343018, 1.1802314519882202, 0.6998682618141174, 0.013008898124098778, -1.2664315700531006, -0.020004572346806526, 0.1365264654159546, -0.730296790599823, 0.24851800501346588, 0.1147543340921402, -0.6066044569015503, 0.08666835725307465, -0.2930380403995514, -1.0261176824569702, 1.0041183233261108, 0.019597206264734268, -0.8574497103691101, 0.20536385476589203, -0.4152098298072815, 0.45717737078666687, -0.06053518131375313, -0.03446789085865021, 0.8900073170661926, 0.030230894684791565, 0.49647238850593567, -0.9506416320800781, -0.34737759828567505, -0.40583160519599915, 0.3043043613433838, -0.10798155516386032, -0.5412755608558655, 0.6650812029838562, -0.4894408583641052, -0.29708975553512573, 0.10211126506328583, 0.7447243332862854, 0.22210538387298584, 0.3192753493785858, 0.831947922706604, 0.6591554284095764, 0.8455878496170044, 0.0505935475230217, 0.8044961094856262, -0.20023459196090698, 0.1337801218032837, 1.3119829893112183, -0.12346797436475754, 1.0656208992004395, 0.45126062631607056, -0.5466662049293518, -0.03300315514206886, 0.6626293659210205, 0.03422838822007179, 0.8963271379470825, 0.07967673242092133, -0.044820938259363174, -0.3265838027000427, 0.09487660229206085, -0.6857948303222656, 0.651835560798645, 0.02254011109471321, -0.08684816211462021, 0.41763243079185486, -0.06255021691322327, -0.2295093685388565, -0.13948364555835724, -0.2713654637336731, 0.9816182255744934, 0.12856608629226685, -0.45160824060440063, 0.2775152027606964, -0.178302600979805, 0.7724119424819946, -0.5399137139320374, 0.1743612438440323, 0.11224696785211563, 0.4432738125324249, -0.045222554355859756, -0.5593764185905457, 0.2122085839509964, 0.039741091430187225, -0.34539198875427246, -0.1148061454296112, 1.1241545677185059, -0.39772170782089233, -0.4333798587322235, 0.32485392689704895, 0.22539623081684113, 0.3314892649650574, -0.07071831822395325, -0.5818800330162048, 0.20318005979061127, 0.17492206394672394, -0.3381403684616089, 0.3271763324737549, 0.09067387878894806, 0.3453463017940521, 0.30010756850242615, 0.9133026003837585, 0.3822081983089447, 0.10652073472738266, 0.4143328070640564, 0.7935521602630615, -0.37948328256607056, -1.0011593103408813, -0.37076786160469055, 0.3712475001811981, -0.11008741706609726, -0.19743214547634125, 0.4969978928565979, 0.5194025039672852, 0.8745613098144531, 0.13301482796669006, 0.6014392375946045, 0.06403924524784088, 1.1426788568496704, -0.6685624718666077, 0.7894985675811768, -0.7547104358673096, 0.20294664800167084, -0.34469613432884216, -0.4835987985134125, 0.20550860464572906, 0.9408003687858582, -0.12943357229232788, 0.10567376762628555, 0.23841328918933868, 0.7803019285202026, 0.038033902645111084, 0.1191369965672493, 0.3690328001976013, 0.13478752970695496, 0.13216841220855713, 0.1256631314754486, 0.8097122311592102, -0.45419177412986755, 0.46479544043540955, -0.3567392826080322, -0.28227606415748596, -0.21048909425735474, -0.3832836151123047, -0.5830098390579224, -0.7373600006103516, -0.3941279351711273, -0.37022966146469116, 0.19715635478496552, 0.8258016705513, 1.1057254076004028, -0.712456464767456, -0.10833893716335297, 0.053550343960523605, -0.3402814567089081, -0.14478610455989838, -0.10342645645141602, 0.34406960010528564, -0.23419120907783508, -0.440599262714386, 0.6121017932891846, 0.06663337349891663, 0.15341202914714813, 0.22179941833019257, -0.3734664022922516, -0.16697196662425995, 0.22664453089237213, 0.4375479817390442, 0.28234389424324036, -0.5738205313682556, -0.2128230631351471, -0.2838253080844879, 0.030814984813332558, -0.10681412369012833, 0.9963569641113281, -0.7389085292816162, 0.4895663857460022, 0.5569594502449036, 0.4731172025203705, 1.0022343397140503, 0.05965332314372063, 0.4748922884464264, -0.5223429799079895, 0.5011025071144104, 0.38726532459259033, 0.2749040424823761, 0.15281936526298523, -0.12035756558179855, 0.4250045716762543, 0.10186774283647537, -0.8435723781585693, -0.9029240608215332, 0.06770025938749313, -1.0310208797454834, -0.35189366340637207, 1.3304091691970825, -0.01532523613423109, -0.1140243262052536, 0.1381225734949112, -0.16283230483531952, 0.6876941919326782, -0.3683982193470001, 0.34865084290504456, 0.21112018823623657, -0.20965197682380676, -0.09135551750659943, -0.4836929440498352, 0.681158185005188, 0.4417136311531067, -0.4197271168231964, -0.08186598867177963, 0.5594601035118103, 0.32928183674812317, -0.2965463697910309, 0.9735182523727417, 0.005342101212590933, 0.3026539087295532, 0.27023741602897644, 0.28137311339378357, -0.23145727813243866, -0.27782121300697327, -0.45532798767089844, -0.2774263620376587, 0.13164116442203522, -0.7729164361953735 ]
Helsinki-NLP/opus-mt-en-hi
Helsinki-NLP
"2023-08-16T11:29:49Z"
18,927
19
transformers
[ "transformers", "pytorch", "tf", "rust", "marian", "text2text-generation", "translation", "en", "hi", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- language: - en - hi tags: - translation license: apache-2.0 --- ### eng-hin * source group: English * target group: Hindi * OPUS readme: [eng-hin](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-hin/README.md) * model: transformer-align * source language(s): eng * target language(s): hin * model: transformer-align * pre-processing: normalization + SentencePiece (spm32k,spm32k) * download original weights: [opus-2020-06-17.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hin/opus-2020-06-17.zip) * test set translations: [opus-2020-06-17.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hin/opus-2020-06-17.test.txt) * test set scores: [opus-2020-06-17.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hin/opus-2020-06-17.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | newsdev2014.eng.hin | 6.9 | 0.296 | | newstest2014-hien.eng.hin | 9.9 | 0.323 | | Tatoeba-test.eng.hin | 16.1 | 0.447 | ### System Info: - hf_name: eng-hin - source_languages: eng - target_languages: hin - opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-hin/README.md - original_repo: Tatoeba-Challenge - tags: ['translation'] - languages: ['en', 'hi'] - src_constituents: {'eng'} - tgt_constituents: {'hin'} - src_multilingual: False - tgt_multilingual: False - prepro: normalization + SentencePiece (spm32k,spm32k) - url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hin/opus-2020-06-17.zip - url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-hin/opus-2020-06-17.test.txt - src_alpha3: eng - tgt_alpha3: hin - short_pair: en-hi - chrF2_score: 0.447 - bleu: 16.1 - brevity_penalty: 1.0 - ref_len: 32904.0 - src_name: English - tgt_name: Hindi - train_date: 2020-06-17 - src_alpha2: en - tgt_alpha2: hi - prefer_old: False - long_pair: eng-hin - helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535 - transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b - port_machine: brutasse - port_time: 2020-08-21-14:41
[ -0.41284236311912537, -0.7095000147819519, 0.2269516885280609, 0.4361373782157898, -0.4523603916168213, -0.24768400192260742, -0.3832496106624603, -0.4290001392364502, 0.3568418622016907, 0.2795136272907257, -0.633962869644165, -0.7681914567947388, -0.5603255033493042, 0.4206887483596802, 0.029708245769143105, 1.0050770044326782, -0.1177685335278511, 0.15107722580432892, 0.45060813426971436, -0.5537757277488708, -0.5239548087120056, -0.2180788516998291, -0.6146291494369507, -0.23345157504081726, 0.4590631127357483, 0.38663575053215027, 0.5418431758880615, 0.6025224924087524, 0.750095784664154, 0.31815654039382935, -0.4138198494911194, 0.18679940700531006, -0.1912231296300888, -0.08935436606407166, -0.03359522670507431, -0.4586622416973114, -0.6063292622566223, -0.2626301348209381, 0.949583888053894, 0.5186735987663269, 0.12092743068933487, 0.5044859647750854, -0.03814779967069626, 0.6882359981536865, -0.23992642760276794, 0.14914356172084808, -0.515082597732544, -0.13019457459449768, -0.5316469669342041, -0.2547115683555603, -0.5592017769813538, -0.3409738838672638, 0.12240241467952728, -0.6832216382026672, -0.004147867206484079, 0.1848776787519455, 1.8171125650405884, 0.13226230442523956, -0.3906291127204895, -0.10257792472839355, -0.4104652404785156, 0.9145609736442566, -0.8620966076850891, 0.4348483681678772, 0.43439576029777527, -0.026070060208439827, 0.013520730659365654, -0.3450741171836853, -0.3949635922908783, 0.11406135559082031, -0.3130274713039398, 0.33304139971733093, -0.05445826053619385, -0.23497657477855682, 0.20785149931907654, 0.6841321587562561, -0.8052709102630615, 0.03255763649940491, -0.38938990235328674, -0.21189890801906586, 0.4891037940979004, 0.05687033012509346, 0.4428415298461914, -0.8255555629730225, -0.49600881338119507, -0.4884606599807739, -0.5674316883087158, 0.17768162488937378, 0.45276039838790894, 0.42522701621055603, -0.5683175325393677, 0.7201076149940491, -0.05159607529640198, 0.5848924517631531, 0.08177536725997925, -0.14122845232486725, 0.726807177066803, -0.786381721496582, -0.16667142510414124, -0.15809957683086395, 1.3063675165176392, 0.1764710247516632, -0.0029207919724285603, 0.23808757960796356, -0.1985296905040741, -0.23524227738380432, -0.12945377826690674, -0.9030642509460449, 0.1854444444179535, 0.19343248009681702, -0.4660097658634186, -0.18094724416732788, 0.002722209319472313, -0.9498408436775208, 0.10572288930416107, 0.018128300085663795, 0.5918761491775513, -0.9203992486000061, -0.29426631331443787, 0.29080045223236084, 0.052523981779813766, 0.4225158095359802, -0.03191283717751503, -0.570254921913147, 0.09555760771036148, 0.36525923013687134, 1.0439274311065674, -0.18483789265155792, -0.49209150671958923, -0.1840793788433075, 0.06609711796045303, -0.13409796357154846, 0.6877161264419556, -0.20582064986228943, -0.4174191653728485, -0.12554390728473663, 0.42905503511428833, -0.19044356048107147, -0.20273561775684357, 0.95912104845047, -0.30097079277038574, 0.593971312046051, -0.36893850564956665, -0.49201634526252747, -0.3510744273662567, 0.3966079354286194, -0.8142046332359314, 1.3588956594467163, 0.17007111012935638, -1.0265806913375854, 0.3637571930885315, -0.9134782552719116, -0.3544524908065796, -0.024156788364052773, 0.13183088600635529, -0.8102654814720154, -0.1279682219028473, 0.28483206033706665, 0.3549025058746338, -0.42800837755203247, 0.5066935420036316, -0.009615975432097912, -0.263441801071167, -0.09153081476688385, -0.31537193059921265, 1.4261008501052856, 0.25174233317375183, -0.47301262617111206, 0.15634648501873016, -0.8248262405395508, -0.00932216364890337, 0.33003807067871094, -0.49017783999443054, -0.2618880271911621, -0.17237581312656403, 0.2171766310930252, 0.08083348721265793, 0.30788642168045044, -0.6105220913887024, 0.3571171462535858, -0.7948250770568848, 0.23182740807533264, 0.8847456574440002, 0.15776289999485016, 0.2545231580734253, -0.39277318120002747, 0.4552915096282959, 0.2715397775173187, 0.142022505402565, 0.016131190583109856, -0.6447126269340515, -0.7685496807098389, -0.27694663405418396, 0.6347541213035583, 0.7473162412643433, -0.7644529342651367, 0.807371199131012, -0.8011435866355896, -0.8253354430198669, -0.8167768120765686, -0.1388578563928604, 0.5778786540031433, 0.32484468817710876, 0.5092394351959229, -0.26716864109039307, -0.600017249584198, -1.1049665212631226, -0.24616096913814545, -0.2757839560508728, 0.06443487107753754, 0.2242862582206726, 0.8670879602432251, -0.022472292184829712, 0.6094496846199036, -0.45456281304359436, -0.5631493926048279, -0.19294282793998718, 0.26594969630241394, 0.43529829382896423, 0.7717553973197937, 0.6644272208213806, -0.9594871997833252, -0.696818470954895, 0.14177806675434113, -0.7016025185585022, -0.11927828192710876, -0.009670614264905453, -0.33331912755966187, 0.3734273314476013, -0.016348188742995262, -0.5844112634658813, 0.31063804030418396, 0.5984930396080017, -0.7414646744728088, 0.5093615055084229, -0.14021050930023193, 0.44534847140312195, -1.763030767440796, 0.19914083182811737, -0.0923871248960495, -0.047524262219667435, -0.32016199827194214, 0.0683976337313652, 0.15942728519439697, 0.04584013298153877, -0.6347219347953796, 0.8190160393714905, -0.6840075254440308, 0.1017780676484108, 0.3783062994480133, 0.14433400332927704, -0.010431506671011448, 0.8831548094749451, -0.23853830993175507, 1.0684837102890015, 0.5947176814079285, -0.3818032741546631, 0.09702048450708389, 0.560913622379303, -0.43077322840690613, 0.3140639066696167, -0.7528581023216248, -0.27748286724090576, 0.29170167446136475, -0.08837972581386566, -0.8024559020996094, -0.27432987093925476, 0.2195441722869873, -0.769951343536377, 0.33039620518684387, -0.10471531003713608, -0.7093027234077454, -0.22551356256008148, -0.4478904902935028, 0.6349416971206665, 0.5510857105255127, -0.24483299255371094, 0.8173138499259949, 0.18136659264564514, -0.05090460181236267, -0.6300637722015381, -0.9137806296348572, -0.014423307962715626, -0.2160862237215042, -0.7268096208572388, 0.43735283613204956, -0.20574523508548737, 0.09585945308208466, 0.15944106876850128, 0.04055667668581009, -0.13892653584480286, 0.014800109900534153, 0.1086488589644432, 0.37525850534439087, -0.393991082906723, 0.12239816039800644, -0.12539006769657135, -0.07826466858386993, -0.23551315069198608, -0.24987666308879852, 0.7967268824577332, -0.5159947276115417, -0.28545448184013367, -0.7960043549537659, 0.13802586495876312, 0.5686013698577881, -0.5380510687828064, 1.123725414276123, 0.6814994812011719, -0.37493306398391724, 0.2938651144504547, -0.5723624229431152, 0.08773291856050491, -0.4203243851661682, 0.3189704120159149, -0.5939103364944458, -0.6151667237281799, 0.9046873450279236, 0.21521157026290894, 0.13737715780735016, 1.0634678602218628, 0.7446866035461426, 0.19554992020130157, 0.7162583470344543, 0.36615991592407227, 0.08829297870397568, 0.5778120756149292, -0.596783459186554, 0.0311996228992939, -0.8714877367019653, -0.24238890409469604, -0.8096979856491089, -0.17772012948989868, -1.0746663808822632, -0.1587170660495758, 0.34959354996681213, -0.1272694617509842, -0.14957210421562195, 0.8202947974205017, -0.6127463579177856, 0.36377015709877014, 0.6516002416610718, 0.20468971133232117, 0.30445596575737, -0.11904124915599823, -0.475112646818161, -0.10847360640764236, -0.4262465536594391, -0.5652194023132324, 1.2383365631103516, 0.32530829310417175, 0.279531866312027, 0.3808209300041199, 0.6893109679222107, 0.022945158183574677, 0.10486636310815811, -0.7278909683227539, 0.6507599949836731, -0.13969051837921143, -1.0026538372039795, -0.45774370431900024, -0.4113333523273468, -1.0091596841812134, 0.22119571268558502, -0.20053520798683167, -0.6514968872070312, 0.14976219832897186, -0.15430958569049835, -0.12344862520694733, 0.6828542351722717, -0.8747468590736389, 1.0639008283615112, 0.06114288046956062, -0.3725050389766693, 0.17812271416187286, -0.7217254638671875, 0.2240365445613861, -0.08155839890241623, 0.19433139264583588, -0.16186895966529846, -0.056092601269483566, 1.005886435508728, -0.28100091218948364, 0.6022073030471802, -0.050037600100040436, -0.0770513042807579, 0.23505571484565735, 0.1276794970035553, 0.4664987027645111, -0.09655356407165527, -0.3537302613258362, 0.3460182845592499, 0.11268468201160431, -0.7387952208518982, -0.23720642924308777, 0.6320598721504211, -0.8312609195709229, -0.5391698479652405, -0.6014410853385925, -0.6953127980232239, 0.0033225426450371742, 0.6278719902038574, 0.5865859985351562, 0.6208708882331848, -0.033771220594644547, 0.686342716217041, 0.7332519888877869, -0.28591883182525635, 0.5554174780845642, 0.4560565948486328, -0.008556359447538853, -0.6290838718414307, 0.7393003702163696, 0.2626732289791107, 0.20415306091308594, 0.5393855571746826, 0.22643046081066132, -0.19013981521129608, -0.791485071182251, -0.6369317173957825, 0.4180773198604584, -0.4442192316055298, -0.37416374683380127, -0.5612742900848389, -0.13741548359394073, -0.44740456342697144, 0.1992238461971283, -0.4139385223388672, -0.39270177483558655, -0.05473421514034271, -0.2614014744758606, 0.40003421902656555, 0.42616885900497437, 0.09667644649744034, 0.27907273173332214, -0.9311314225196838, 0.23403197526931763, -0.17781281471252441, 0.5644099116325378, -0.2862008512020111, -0.8439582586288452, -0.4177338480949402, -0.007001641672104597, -0.3872697651386261, -1.1662791967391968, 0.5162345767021179, -0.03815310448408127, 0.26213741302490234, 0.1416723132133484, 0.0664207711815834, 0.6593205332756042, -0.47361060976982117, 1.1120777130126953, -0.056705325841903687, -0.9512505531311035, 0.7467494606971741, -0.49480682611465454, 0.5509088039398193, 0.7554513812065125, 0.39645591378211975, -0.28983497619628906, -0.6426073908805847, -0.7753989696502686, -0.8820690512657166, 0.814852774143219, 0.6096227765083313, -0.10074818134307861, -0.02797001786530018, 0.08073022961616516, 0.020037086680531502, -0.26640647649765015, -1.2747036218643188, -0.4308421015739441, 0.08451665192842484, -0.5384534597396851, 0.1768745630979538, -0.40679123997688293, -0.17063173651695251, -0.35154494643211365, 1.1412065029144287, 0.18047510087490082, 0.11908802390098572, 0.5428920388221741, -0.20762376487255096, 0.01696588285267353, 0.4353048503398895, 0.6701011657714844, 0.4824005365371704, -0.366622656583786, -0.1676722913980484, 0.39699679613113403, -0.644445538520813, 0.091459721326828, 0.04338131099939346, -0.5434697866439819, 0.2386353462934494, 0.5825189352035522, 0.9455956220626831, 0.24371971189975739, -0.48232385516166687, 0.5962949991226196, -0.08437345921993256, -0.36394768953323364, -0.39377549290657043, -0.34072646498680115, 0.13055537641048431, 0.0011620142031461, 0.2703319489955902, 0.06604567170143127, -0.003268091008067131, -0.28119492530822754, 0.02158738113939762, 0.054184455424547195, -0.26713383197784424, -0.4526088237762451, 0.5372998118400574, 0.09260280430316925, -0.43389081954956055, 0.4073057174682617, -0.40813469886779785, -0.45339423418045044, 0.598824679851532, 0.319441556930542, 1.1475262641906738, -0.2516518831253052, -0.20730973780155182, 0.8877331614494324, 0.5161317586898804, 0.024327361956238747, 0.44399482011795044, 0.2650974988937378, -0.5716972351074219, -0.42838332056999207, -0.9289126992225647, 0.10367516428232193, 0.11906105279922485, -0.8196648359298706, 0.44545337557792664, 0.043448928743600845, -0.31268802285194397, -0.03385736420750618, 0.3966386914253235, -0.6386461853981018, 0.07023925334215164, -0.46862560510635376, 1.011197805404663, -0.9179356098175049, 0.8798912763595581, 0.8191582560539246, -0.9266495704650879, -1.1478934288024902, 0.018595648929476738, -0.25666189193725586, -0.658713161945343, 0.5966638922691345, 0.05725208297371864, 0.06881272047758102, -0.05254712700843811, -0.3256789743900299, -0.8826197385787964, 1.213361144065857, 0.36085939407348633, -0.3151194453239441, -0.2806738317012787, -0.0030996701680123806, 0.5869745016098022, -0.013344933278858662, 0.21389317512512207, 0.36254122853279114, 0.8867143988609314, -0.1379612237215042, -1.19386625289917, 0.16347454488277435, -0.6252426505088806, -0.0205256137996912, 0.42978963255882263, -0.9122007489204407, 0.9046163558959961, 0.13465330004692078, -0.3037306070327759, 0.11001777648925781, 0.6239713430404663, 0.326308012008667, 0.052250687032938004, 0.5166205167770386, 0.9749835133552551, 0.4383511543273926, -0.5536714196205139, 1.1096054315567017, -0.3957768678665161, 0.6180388927459717, 0.9158912301063538, 0.19911107420921326, 0.9105170369148254, 0.6002357602119446, -0.26042643189430237, 0.6841603517532349, 0.8060056567192078, -0.21232245862483978, 0.2874734103679657, -0.0977705791592598, 0.024871671572327614, -0.18091708421707153, -0.2843252122402191, -0.5094088315963745, 0.5619150996208191, -0.010299318470060825, -0.062065497040748596, 0.0258574727922678, -0.17539700865745544, 0.3340470492839813, 0.14244495332241058, -0.07951296120882034, 0.7177969217300415, -0.18978680670261383, -0.779893696308136, 0.8060585856437683, -0.05012824013829231, 0.7774713635444641, -0.6799595952033997, 0.037686169147491455, -0.21288062632083893, 0.13688330352306366, -0.07103846967220306, -0.845304012298584, 0.4685526192188263, 0.18940092623233795, -0.2916918694972992, -0.2956918179988861, 0.24842536449432373, -0.5320475101470947, -0.8112109899520874, 0.4647804796695709, 0.514866828918457, 0.25844258069992065, 0.3022480905056, -0.7417372465133667, 0.01876947283744812, 0.15717577934265137, -0.7498845458030701, -0.030593300238251686, 0.7825046181678772, 0.05698048695921898, 0.6657809019088745, 0.46409544348716736, 0.2740740478038788, 0.12237916141748428, 0.013108325190842152, 0.6099917888641357, -0.9104654788970947, -0.466328889131546, -0.9130858182907104, 0.566299557685852, -0.1297687292098999, -0.6599200367927551, 0.7486060857772827, 0.89888995885849, 0.9786549210548401, -0.06930312514305115, 0.29774951934814453, -0.21364736557006836, 0.567482590675354, -0.7343330383300781, 0.7900155782699585, -1.0881742238998413, 0.053524598479270935, -0.1614702045917511, -0.7980300784111023, -0.3225651681423187, 0.21795351803302765, -0.23318526148796082, 0.06063076853752136, 1.1394202709197998, 0.8645782470703125, -0.001240185578353703, -0.2930153012275696, -0.030916385352611542, 0.4550212621688843, 0.2529771625995636, 0.8578996062278748, 0.290997713804245, -1.0110033750534058, 0.81840980052948, -0.36946889758110046, 0.04516967386007309, -0.0666365921497345, -0.8269095420837402, -0.835422933101654, -0.8797110319137573, -0.1915341466665268, -0.45003068447113037, -0.18946921825408936, 1.0251001119613647, 0.48661941289901733, -1.0847008228302002, -0.34309324622154236, 0.05787920951843262, 0.22848805785179138, -0.24866563081741333, -0.29669833183288574, 0.8357800245285034, -0.09147722274065018, -1.128517985343933, 0.10263010859489441, 0.10467597097158432, 0.15526096522808075, 0.052299004048109055, -0.08804921060800552, -0.8479824066162109, -0.03132084384560585, 0.2936570942401886, 0.09340766817331314, -0.9349380135536194, -0.17994387447834015, 0.21305657923221588, -0.35656389594078064, 0.3592131733894348, 0.07990504801273346, -0.23431514203548431, 0.24067696928977966, 0.8659862279891968, 0.5432760715484619, 0.47542804479599, -0.09710074961185455, 0.31918591260910034, -0.7862311005592346, 0.43718913197517395, 0.2400921881198883, 0.633691668510437, 0.3312205672264099, -0.1809098720550537, 0.8479441404342651, 0.3704493045806885, -0.38803043961524963, -1.1108819246292114, -0.027973076328635216, -1.289401650428772, -0.052313048392534256, 1.0599939823150635, -0.20270229876041412, -0.49391159415245056, 0.299201101064682, -0.2805265188217163, 0.5801598429679871, -0.3822590708732605, 0.6082126498222351, 1.0570982694625854, 0.39836040139198303, 0.19388917088508606, -0.506407618522644, 0.25564897060394287, 0.7266345620155334, -0.9112153053283691, -0.20525644719600677, 0.19534198939800262, 0.28271061182022095, 0.4901500642299652, 0.6021259427070618, -0.4557625651359558, 0.20838971436023712, -0.1830737590789795, 0.39965927600860596, -0.16361840069293976, -0.1307549774646759, -0.3475722074508667, 0.11803890764713287, -0.11018481850624084, -0.2857693135738373 ]
jpwahle/longformer-base-plagiarism-detection
jpwahle
"2023-03-17T11:38:57Z"
18,902
7
transformers
[ "transformers", "pytorch", "safetensors", "longformer", "text-classification", "array", "of", "tags", "en", "dataset:jpwahle/machine-paraphrase-dataset", "arxiv:2004.05150", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: en thumbnail: url to a thumbnail used in social sharing tags: - array - of - tags datasets: - jpwahle/machine-paraphrase-dataset widget: - text: Plagiarism is the representation of another author's writing, thoughts, ideas, or expressions as one's own work. --- # Longformer-base for Machine-Paraphrase Detection If you are using this model in your research work, please cite ``` @InProceedings{10.1007/978-3-030-96957-8_34, author="Wahle, Jan Philip and Ruas, Terry and Folt{\'y}nek, Tom{\'a}{\v{s}} and Meuschke, Norman and Gipp, Bela", title="Identifying Machine-Paraphrased Plagiarism", booktitle="Information for a Better World: Shaping the Global Future", year="2022", publisher="Springer International Publishing", address="Cham", pages="393--413", abstract="Employing paraphrasing tools to conceal plagiarized text is a severe threat to academic integrity. To enable the detection of machine-paraphrased text, we evaluate the effectiveness of five pre-trained word embedding models combined with machine learning classifiers and state-of-the-art neural language models. We analyze preprints of research papers, graduation theses, and Wikipedia articles, which we paraphrased using different configurations of the tools SpinBot and SpinnerChief. The best performing technique, Longformer, achieved an average F1 score of 80.99{\%} (F1=99.68{\%} for SpinBot and F1=71.64{\%} for SpinnerChief cases), while human evaluators achieved F1=78.4{\%} for SpinBot and F1=65.6{\%} for SpinnerChief cases. We show that the automated classification alleviates shortcomings of widely-used text-matching systems, such as Turnitin and PlagScan.", isbn="978-3-030-96957-8" } ``` This is the checkpoint for Longformer-base after being trained on the [Machine-Paraphrased Plagiarism Dataset](https://doi.org/10.5281/zenodo.3608000) Additional information about this model: * [The longformer-base-4096 model page](https://huggingface.co/allenai/longformer-base-4096) * [Longformer: The Long-Document Transformer](https://arxiv.org/pdf/2004.05150.pdf) * [Official implementation by AllenAI](https://github.com/allenai/longformer) The model can be loaded to perform Plagiarism like so: ```py from transformers import AutoModelForSequenceClassification, AutoTokenizer AutoModelForSequenceClassification("jpelhaw/longformer-base-plagiarism-detection") AutoTokenizer.from_pretrained("jpelhaw/longformer-base-plagiarism-detection") input = "Plagiarism is the representation of another author's writing, \ thoughts, ideas, or expressions as one's own work." example = tokenizer.tokenize(input, add_special_tokens=True) answer = model(**example) # "plagiarised" ```
[ -0.18884006142616272, -0.7999252080917358, 0.6789348125457764, 0.24732252955436707, -0.37339144945144653, -0.09594205766916275, -0.010218536481261253, -0.16765791177749634, -0.030524136498570442, 0.7091073393821716, -0.07598378509283066, -0.43428274989128113, -0.7343387603759766, 0.48830389976501465, -0.7411880493164062, 1.1338716745376587, -0.2872639000415802, -0.20236243307590485, -0.5986000895500183, -0.24545098841190338, 0.07071641832590103, -0.7406959533691406, -0.21876195073127747, -0.4129258096218109, 0.44943180680274963, -0.03310782089829445, 0.4580181837081909, 0.6791918277740479, 0.5041670799255371, 0.39824575185775757, -0.3155194818973541, -0.030523618683218956, -0.19803038239479065, 0.12057262659072876, -0.2775562107563019, -0.444272518157959, -0.4622479975223541, -0.034901466220617294, 0.5878557562828064, 0.21390844881534576, 0.1982143521308899, 0.2161610722541809, 0.32808417081832886, 0.5303167700767517, -0.7205713391304016, 0.23506882786750793, -0.3210424482822418, -0.0440591461956501, -0.3960477411746979, -0.0008317828760482371, -0.4470820724964142, -0.3342728018760681, -0.038796186447143555, -0.4145904779434204, 0.22299912571907043, 0.07148957997560501, 0.7765502333641052, 0.22321835160255432, -0.1871461719274521, -0.6308307647705078, -0.2466021329164505, 0.8662473559379578, -0.75681072473526, 0.10574456304311752, 0.42228177189826965, 0.007986152544617653, -0.05512413755059242, -1.064340591430664, -0.8917607069015503, -0.2657623589038849, -0.269599050283432, 0.17298667132854462, -0.14937205612659454, 0.1406022310256958, 0.35748907923698425, 0.42709189653396606, -0.6237063407897949, -0.17259356379508972, -0.397127628326416, -0.39126062393188477, 0.11849125474691391, -0.18990162014961243, 0.1411849558353424, -0.5134279727935791, -0.4324660003185272, -0.1120624914765358, -0.12544448673725128, -0.0036465495359152555, 0.33089786767959595, -0.16310398280620575, 0.18898464739322662, 0.4784785509109497, -0.14554469287395477, 0.35064199566841125, 0.1495674103498459, -0.10206593573093414, 0.6086738109588623, -0.24573783576488495, -0.29750052094459534, -0.11888009309768677, 1.0760341882705688, 0.183141827583313, 0.17737427353858948, -0.22866132855415344, -0.18811796605587006, -0.08863098174333572, 0.05075984448194504, -0.8976398706436157, -0.11654145270586014, 0.060383837670087814, -0.6643435955047607, -0.3480479121208191, 0.2470792531967163, -0.8566297888755798, -0.26961517333984375, -0.2996041476726532, 0.8177136182785034, -0.5970881581306458, -0.0026473586913198233, -0.051108088344335556, -0.33352112770080566, 0.22898933291435242, 0.011041928082704544, -0.4224563539028168, 0.2620595395565033, 0.8155817985534668, 1.023128628730774, -0.43415457010269165, -0.8157894611358643, -0.23821650445461273, 0.24920988082885742, 0.05754292756319046, 0.5219855904579163, -0.17249825596809387, -0.16781240701675415, -0.1492115557193756, 0.3009910583496094, -0.20678335428237915, -0.6717492341995239, 0.8228621482849121, -0.34838518500328064, 0.6156622171401978, 0.0023408273700624704, -0.7599534392356873, -0.27265191078186035, 0.05134931206703186, -0.6908569931983948, 0.9603796005249023, -0.0514037199318409, -0.8023170828819275, -0.07029250264167786, -0.7478485107421875, -0.4081704616546631, -0.0705001950263977, 0.1689239740371704, -0.9567678570747375, -0.05654037743806839, 0.15918277204036713, 0.5333182215690613, -0.1395227462053299, 0.30646440386772156, -0.238012433052063, -0.48044198751449585, 0.21563781797885895, -0.42155128717422485, 0.9478543996810913, 0.1187610924243927, -0.6196981072425842, 0.17419537901878357, -0.6119973063468933, -0.20905300974845886, 0.22527256608009338, -0.30598971247673035, -0.46036067605018616, -0.29131004214286804, 0.10410019755363464, 0.2639915347099304, 0.49935051798820496, -0.4713366627693176, -0.2417183220386505, -0.15332208573818207, 0.5421541333198547, 0.641276478767395, -0.044740159064531326, 0.5091404318809509, -0.5819985270500183, 0.43352702260017395, 0.028019949793815613, 0.22874902188777924, -0.12820059061050415, -0.3447149395942688, -0.7286093831062317, -0.3225913643836975, 0.21906444430351257, 0.6411585211753845, -0.4968019127845764, 0.8858621120452881, -0.43584388494491577, -0.4205099046230316, -0.48869457840919495, 0.40957048535346985, 0.5593222975730896, 0.6846074461936951, 0.8585397601127625, 0.17514899373054504, -0.3969331979751587, -0.915550708770752, -0.46478304266929626, 0.1545097529888153, -0.058598294854164124, -0.1433086097240448, 0.9689679741859436, -0.05747939646244049, 0.8193801641464233, -0.06702160835266113, -0.4448893368244171, -0.3004874289035797, 0.32466429471969604, 0.25225594639778137, 0.5693807601928711, 0.5294718146324158, -0.9516243934631348, -0.5437601208686829, -0.5819669365882874, -1.0853676795959473, -0.06267605721950531, -0.08428940176963806, -0.3018867075443268, 0.13959066569805145, 0.5624220967292786, -0.8226199746131897, 0.3228033185005188, 0.25377848744392395, -0.27532243728637695, 0.37114593386650085, -0.29194408655166626, 0.08837497234344482, -1.284813404083252, 0.43444767594337463, -0.17955382168293, -0.22111982107162476, -0.3635348677635193, 0.23479491472244263, 0.4119095504283905, -0.17987707257270813, -0.2510095536708832, 0.217721626162529, -0.3789820373058319, 0.27389222383499146, -0.4459264874458313, -0.0538041777908802, 0.11895434558391571, 0.40734052658081055, -0.07238553464412689, 0.7651185989379883, 0.11238255351781845, -0.3464616537094116, 0.21739983558654785, 0.42588168382644653, -0.3247208297252655, 0.49225208163261414, -0.6463757157325745, 0.36544400453567505, -0.25936320424079895, 0.5734452605247498, -0.6351728439331055, -0.06617457419633865, 0.3858867585659027, -0.432677686214447, 0.08859135210514069, -0.27174487709999084, -0.6176037192344666, -0.3827087879180908, -0.482870876789093, 0.16422171890735626, 0.5060810446739197, -0.4107871949672699, 0.739581823348999, 0.010449312627315521, -0.18998250365257263, -0.7289320826530457, -0.646253228187561, 0.3447569012641907, -0.304420530796051, -0.32520800828933716, 0.49564892053604126, -0.15270577371120453, 0.007421355694532394, -0.2502135634422302, -0.05711596459150314, -0.2886480689048767, 0.1302318572998047, 0.23761357367038727, 0.23859025537967682, -0.0414779968559742, -0.05841365084052086, 0.12486214935779572, -0.16597437858581543, 0.26491618156433105, -0.2055574208498001, 0.6797459125518799, -0.12092455476522446, -0.16474805772304535, -0.6816268563270569, 0.4849286377429962, 0.9972140192985535, -0.40207424759864807, 0.7513201236724854, 0.6315958499908447, -0.3350263237953186, 0.06331302970647812, -0.6042821407318115, -0.025312641635537148, -0.4593406915664673, 0.4614794850349426, -0.2794189751148224, -0.4368544816970825, 0.2933518588542938, 0.18251386284828186, -0.04252762347459793, 0.630626380443573, 0.2893933057785034, -0.1353873461484909, 0.6045804619789124, 0.23672015964984894, -0.33809879422187805, 0.4485883116722107, -0.28103598952293396, 0.04314903914928436, -0.6679137349128723, -0.15905152261257172, -0.4508516192436218, -0.2506592273712158, -0.4202326536178589, -0.3763972520828247, 0.07965116947889328, 0.2840733826160431, -0.15463924407958984, 0.4545540511608124, -0.6403365731239319, 0.41908419132232666, 0.8012787699699402, 0.20829127728939056, 0.1795358657836914, -0.029556510969996452, 0.09396924823522568, 0.11609077453613281, -0.1498705893754959, -0.7754645943641663, 1.0884840488433838, 0.2639676034450531, 0.28480005264282227, -0.19247691333293915, 1.130173683166504, 0.26160183548927307, 0.10517317056655884, -0.6334555149078369, 0.6385713219642639, -0.16198541224002838, -0.6599156856536865, -0.1195148378610611, -0.32061249017715454, -0.6283637881278992, 0.11375781148672104, -0.041886359453201294, -0.23433756828308105, 0.082131028175354, -0.025252696126699448, -0.16002961993217468, 0.3181268572807312, -0.4147973954677582, 0.9986658692359924, -0.2000008225440979, -0.25720709562301636, -0.09555572271347046, -0.6956790685653687, 0.005712703336030245, -0.24414607882499695, 0.1306300014257431, 0.020073235034942627, 0.0016564370598644018, 1.1211892366409302, -0.26410111784935, 0.5524947643280029, -0.33057844638824463, 0.24253256618976593, 0.2512689530849457, -0.10616792738437653, 0.6241493225097656, -0.15624751150608063, -0.13182333111763, 0.16799214482307434, -0.026661237701773643, -0.42809954285621643, -0.3861270546913147, 0.5433607697486877, -0.667621374130249, -0.5408414602279663, -0.5384500026702881, -0.39595335721969604, 0.2866511046886444, 0.6100031137466431, 0.5922346711158752, 0.007521310355514288, 0.1361798793077469, 0.7606492638587952, 0.793621301651001, -0.014980871230363846, 0.4548025131225586, 0.08588366210460663, 0.06936582922935486, -0.5954864025115967, 0.8114269971847534, 0.06528505682945251, 0.08041884005069733, 0.5527536273002625, 0.32739365100860596, -0.18700675666332245, -0.790959358215332, -0.20113077759742737, 0.3950794041156769, -0.8499812483787537, -0.25477516651153564, -0.9265813827514648, -0.24441227316856384, -0.54360431432724, -0.016278203576803207, 0.029774680733680725, -0.2184607982635498, -0.5316060781478882, -0.0209853146225214, 0.22797425091266632, 0.5047935247421265, 0.3517535924911499, 0.33910059928894043, -0.6162710785865784, 0.40998902916908264, 0.14048649370670319, -0.07886074483394623, -0.11202970892190933, -0.7776103615760803, 0.06221838667988777, 0.006158402189612389, -0.36859914660453796, -0.8118695616722107, 0.33201873302459717, 0.2025156319141388, 0.6682106256484985, 0.07714110612869263, 0.09801314026117325, 0.5105196833610535, -0.3180369734764099, 0.6192301511764526, -0.07985516637563705, -1.0971416234970093, 0.3713923394680023, -0.08380237221717834, 0.06554237008094788, 0.7412672638893127, 0.554862380027771, -0.2132699191570282, -0.49638864398002625, -0.5840704441070557, -0.9560611248016357, 0.3986072540283203, 0.2620474696159363, 0.18286986649036407, -0.05332697555422783, 0.4794505536556244, 0.15872950851917267, 0.27188840508461, -1.1802265644073486, -0.1754402071237564, -0.5179577469825745, -0.7165348529815674, -0.08783593028783798, -0.336204469203949, 0.056281279772520065, -0.21934480965137482, 0.6232600212097168, -0.0067177279852330685, 0.3240686058998108, 0.29585084319114685, -0.8067014217376709, 0.3735136091709137, 0.25324714183807373, 0.4859773516654968, 0.6988219618797302, -0.1364247351884842, 0.08625186234712601, 0.2609816789627075, -0.5240844488143921, -0.007359610870480537, 0.3322754502296448, -0.3739376962184906, 0.3001251518726349, 0.43363139033317566, 0.5189109444618225, 0.04018642380833626, -0.2662217915058136, 0.7589124441146851, 0.36151066422462463, -0.2992743253707886, -0.6303963661193848, -0.16529777646064758, 0.14364340901374817, 0.2685452103614807, 0.4800558090209961, -0.01922028139233589, 0.14268019795417786, -0.34458127617836, 0.18108250200748444, 0.1382439136505127, -0.09245998412370682, -0.3090932369232178, 0.707974374294281, -0.11440461128950119, -0.3893481194972992, 0.5661559700965881, -0.005827663000673056, -0.7881969809532166, 0.3886781334877014, 0.6898810863494873, 0.7810148596763611, -0.09852869063615799, -0.22157339751720428, 0.12562090158462524, -0.04160144180059433, -0.42515334486961365, 0.016513481736183167, -0.21143101155757904, -0.33388128876686096, -0.019458027556538582, -0.9472312927246094, -0.13568443059921265, 0.41895002126693726, -0.5886113047599792, 0.16951316595077515, -0.6116442680358887, -0.16021740436553955, 0.18392281234264374, -0.27101999521255493, -0.42532163858413696, 0.0015218566404655576, 0.25323474407196045, 0.6477540731430054, -0.7012760639190674, 0.888474702835083, 0.6979255676269531, -0.7077852487564087, -0.1474108099937439, 0.21199803054332733, -0.2851716876029968, -0.6377832293510437, 0.7039521336555481, 0.4971873164176941, -0.12157262116670609, 0.0713953822851181, -0.37521031498908997, -0.530196487903595, 1.2579319477081299, 0.18140846490859985, -0.2909516394138336, -0.6667682528495789, 0.13066789507865906, 0.40724417567253113, 0.1265537142753601, 0.18711760640144348, 0.2699878513813019, 0.43109461665153503, -0.37091052532196045, -0.809401273727417, 0.25070029497146606, -0.18349918723106384, -0.2258291095495224, 0.2057502716779709, -0.5599552989006042, 1.0938546657562256, 0.42852094769477844, 0.21789225935935974, 0.47174620628356934, 0.7313379049301147, 0.15984618663787842, 0.3210237920284271, 0.42763233184814453, 0.5593932867050171, 0.6272149682044983, 0.17216794192790985, 0.6425305008888245, -0.362643837928772, 0.5144135355949402, 0.8561347723007202, 0.07433594763278961, 0.8931013345718384, 0.6933535933494568, -0.19507643580436707, 0.6538946628570557, -0.021223032847046852, -0.3999748229980469, 0.47868332266807556, 0.04318363592028618, -0.24624040722846985, -0.1980701982975006, 0.3558688461780548, -0.17096878588199615, 0.38601747155189514, 0.2078648805618286, -1.0228990316390991, -0.07896487414836884, 0.13889381289482117, 0.26904386281967163, 0.1881173998117447, -0.1383066475391388, 0.6613047122955322, 0.1398257613182068, -0.7437945008277893, 0.593952476978302, 0.005940004717558622, 1.1441059112548828, -0.511421263217926, 0.10302470624446869, -0.07786368578672409, 0.6475012302398682, -0.13662633299827576, -0.6490819454193115, 0.1665235310792923, -0.012203361839056015, -0.3688197433948517, -0.31890779733657837, 0.6326203942298889, -0.24877731502056122, -0.3709084093570709, 0.4206889271736145, 0.25048136711120605, 0.1309160739183426, -0.5282151103019714, -0.9231830835342407, -0.3083121180534363, 0.037770140916109085, -0.18841500580310822, 0.44988495111465454, 0.20789694786071777, -0.004518665373325348, 0.48820847272872925, 0.7254946827888489, -0.17619015276432037, 0.02801397629082203, -0.22791878879070282, 0.49239617586135864, -0.6161873936653137, -0.5169801115989685, -1.0934475660324097, 0.08774874359369278, -0.48598647117614746, -0.3248462378978729, 0.8890111446380615, 0.8129528760910034, 0.642353892326355, -0.19936002790927887, 0.8483742475509644, 0.03786157816648483, 0.6559723615646362, -0.31379324197769165, 1.043676495552063, -0.23614616692066193, -0.3212309181690216, -0.34228280186653137, -0.9347174167633057, -0.12108711898326874, 0.828016459941864, -0.3421397805213928, -0.12088994681835175, 0.6500091552734375, 0.6422642469406128, -0.31077513098716736, -0.18041877448558807, 0.043874360620975494, 0.07382212579250336, 0.32084521651268005, 0.415789395570755, 0.684502124786377, -0.6679093837738037, 0.9759063720703125, -0.5944858193397522, -0.12164413928985596, -0.2592630088329315, -0.7554053664207458, -1.1079705953598022, -0.48461732268333435, -0.2436329424381256, -0.6714611053466797, 0.2753888964653015, 0.8128569722175598, 0.055096160620450974, -0.9507948160171509, -0.11475173383951187, -0.17925460636615753, -0.1315581500530243, -0.03686320036649704, -0.2382277101278305, 0.5841230750083923, -0.31213122606277466, -0.8159035444259644, 0.245261088013649, -0.10406143963336945, 0.22647225856781006, 0.09688311815261841, 0.12282204627990723, -0.31680211424827576, -0.15644772350788116, 0.38327500224113464, 0.13454368710517883, -0.6527061462402344, -0.08328437805175781, 0.08167370408773422, -0.300640344619751, 0.10762152820825577, 0.575817883014679, -0.5288218259811401, 0.03314096853137016, 0.6376751661300659, 0.4815828800201416, 0.5296480655670166, 0.11995187401771545, 0.35164907574653625, -0.23121312260627747, 0.06121358275413513, 0.46960654854774475, 0.5627803802490234, 0.3621154725551605, -0.09995687007904053, -0.033356793224811554, 0.5584220886230469, -0.8232551217079163, -0.8021852970123291, -0.20581379532814026, -0.6446397304534912, -0.34591081738471985, 0.9849057793617249, -0.4787793755531311, -0.46852388978004456, -0.11745484918355942, -0.10015041381120682, 0.6756176948547363, -0.22352878749370575, 0.8321371674537659, 0.7645999789237976, 0.3717314600944519, 0.15634340047836304, -0.47524917125701904, 0.4744166433811188, 0.49778857827186584, -0.5790804028511047, 0.0919606164097786, 0.1964472532272339, 0.6935688257217407, 0.46391332149505615, 0.1228184700012207, -0.19481387734413147, 0.2993413507938385, -0.24229982495307922, 0.12372048199176788, -0.4275534152984619, 0.05435871705412865, -0.395895779132843, 0.3206828832626343, -0.25452709197998047, -0.3078760802745819 ]
LanguageBind/LanguageBind_Video_merge
LanguageBind
"2023-11-21T02:03:46Z"
18,897
2
transformers
[ "transformers", "pytorch", "LanguageBindVideo", "zero-shot-image-classification", "license:mit", "endpoints_compatible", "region:us" ]
zero-shot-image-classification
"2023-11-21T01:35:38Z"
--- license: mit ---
[ -0.12853388488292694, -0.18616782128810883, 0.6529127359390259, 0.4943625330924988, -0.19319313764572144, 0.23607465624809265, 0.36071982979774475, 0.05056332051753998, 0.5793652534484863, 0.740013837814331, -0.6508103013038635, -0.2378396987915039, -0.710224986076355, -0.04782581701874733, -0.3894752264022827, 0.8470761775970459, -0.09598272293806076, 0.024004854261875153, 0.047120071947574615, -0.14317826926708221, -0.6121037602424622, -0.04771740734577179, -1.0524537563323975, -0.06787490844726562, 0.3002279996871948, 0.5120972990989685, 0.8275896310806274, 0.39602896571159363, 0.5030564069747925, 1.7515558004379272, -0.08836919069290161, -0.22754427790641785, -0.45892032980918884, 0.4223068356513977, -0.33277371525764465, -0.42133718729019165, -0.2624166011810303, -0.07449338585138321, 0.32380399107933044, 0.790371298789978, -0.38104110956192017, 0.19328099489212036, -0.22438454627990723, 1.008224368095398, -0.8202074766159058, 0.22630876302719116, -0.16698351502418518, 0.14053204655647278, 0.042308706790208817, -0.14591927826404572, -0.1326323002576828, -0.6440033912658691, 0.06469469517469406, -0.899596095085144, 0.1027495265007019, -0.04461126774549484, 0.8789561986923218, 0.21909058094024658, -0.5102370977401733, -0.0459773913025856, -0.6883594989776611, 1.0972508192062378, -0.17556026577949524, 0.7615712881088257, 0.4507811963558197, 0.45288562774658203, -0.5849329829216003, -1.178217887878418, -0.4441864490509033, -0.13579002022743225, 0.14722809195518494, 0.30556100606918335, -0.3453029692173004, -0.022343844175338745, 0.10801105946302414, 0.5610314011573792, -0.5003758072853088, -0.311959445476532, -0.9579929113388062, -0.18164916336536407, 0.6820483207702637, 0.319308340549469, 0.834044337272644, 0.1873151659965515, -0.7347195744514465, 0.12866291403770447, -1.3239703178405762, 0.07650735974311829, 0.6465023756027222, 0.239467591047287, -0.554598867893219, 0.8594784736633301, -0.28587982058525085, 0.626249372959137, 0.2728465497493744, -0.1164526641368866, 0.2784252464771271, -0.23030735552310944, -0.2735062837600708, 0.033087607473134995, 0.34597301483154297, 0.8204491138458252, 0.16248634457588196, -0.019984982907772064, -0.22123965620994568, 0.0020717978477478027, 0.2684449553489685, -0.7935096025466919, -0.4712669551372528, 0.1926696002483368, -0.558952808380127, -0.0910850465297699, 0.4327022135257721, -1.0976827144622803, -0.4812980592250824, -0.1879846155643463, 0.05468139797449112, -0.5451693534851074, -0.3697946071624756, 0.07273250073194504, -0.79254150390625, -0.1243419200181961, 0.570950984954834, -0.6230252981185913, 0.43974608182907104, 0.533625602722168, 0.7861635684967041, 0.2330387681722641, -0.23613610863685608, -0.6695019602775574, 0.48848265409469604, -0.8661867380142212, 0.36860740184783936, -0.3073781132698059, -0.8298640251159668, -0.09631050378084183, 0.5393159985542297, 0.20664852857589722, -0.6653256416320801, 0.7074045538902283, -0.5496984720230103, -0.07806532829999924, -0.4308285415172577, -0.2432200014591217, 0.17460417747497559, 0.11115431040525436, -0.6238909363746643, 0.9402233362197876, 0.5551108121871948, -0.584109902381897, 0.31701239943504333, -0.4869506359100342, -0.6865583658218384, 0.26748135685920715, -0.008750975131988525, -0.047152332961559296, 0.3279528021812439, -0.15983973443508148, -0.0020511597394943237, 0.10505761206150055, 0.008299741894006729, -0.21891699731349945, -0.4786304235458374, 0.06349936127662659, 0.151650071144104, 1.25368332862854, 0.4083622097969055, -0.3771882951259613, -0.13140122592449188, -1.0526149272918701, 0.025432661175727844, 0.0505015105009079, -0.42306768894195557, -0.2504565119743347, -0.14882194995880127, -0.20381587743759155, 0.4307260811328888, 0.2118472456932068, -0.813115119934082, 0.22643625736236572, -0.2064024657011032, 0.364496648311615, 0.8222091794013977, 0.2703101634979248, 0.39760565757751465, -0.6625286340713501, 0.6563138365745544, 0.2076188325881958, 0.49590179324150085, 0.35404202342033386, -0.3845822811126709, -0.9641586542129517, -0.442161500453949, -0.10117404907941818, 0.2975531220436096, -0.7744957804679871, 0.5847322940826416, 0.012979604303836823, -0.5836705565452576, -0.4465281367301941, -0.15488101541996002, 0.2755330502986908, -0.06606576591730118, 0.03334902226924896, -0.4049779176712036, -0.7394417524337769, -1.0127898454666138, -0.13788150250911713, -0.5021388530731201, -0.21892830729484558, 0.3160586357116699, 0.2617739737033844, -0.34290042519569397, 0.7610747814178467, -0.6059278249740601, -0.704064130783081, -0.13973554968833923, -0.0995984673500061, 0.6187719702720642, 0.9297672510147095, 0.749138355255127, -0.7224893569946289, -0.8973818421363831, -0.056230708956718445, -0.5420039892196655, -0.020044349133968353, 0.038149889558553696, -0.18260693550109863, -0.10514980554580688, 0.22352531552314758, -0.6100803017616272, 0.8851073980331421, 0.43224984407424927, -0.681546688079834, 0.5210590958595276, -0.4444413483142853, 0.6073803901672363, -0.8642839193344116, -0.2911490201950073, -0.16823577880859375, -0.1976117193698883, -0.7090160846710205, 0.19411544501781464, -0.3002234101295471, -0.33029863238334656, -0.7474032044410706, 0.5274897813796997, -0.9497010707855225, -0.18781527876853943, -0.33672773838043213, -0.03423111140727997, 0.25807833671569824, 0.19490505754947662, -0.23560254275798798, 0.8900529742240906, 0.9160482287406921, -0.7121306657791138, 0.5487277507781982, 0.3930906653404236, -0.1920013427734375, 0.7131237387657166, -0.3887738585472107, 0.05161993205547333, -0.12344931066036224, 0.14374595880508423, -1.126388430595398, -0.561158299446106, 0.13677382469177246, -0.712703287601471, 0.17686958611011505, -0.16556859016418457, -0.09428537636995316, -0.6608465313911438, -0.33806395530700684, 0.25910091400146484, 0.48612290620803833, -0.47969940304756165, 0.6188148260116577, 0.5728040337562561, 0.02651876211166382, -0.5307406783103943, -0.7206818461418152, 0.20418110489845276, 0.039646461606025696, -0.5569695830345154, 0.3011690080165863, 0.006543457508087158, -0.6622446775436401, -0.371124804019928, -0.26354190707206726, -0.6043857336044312, -0.2267974615097046, 0.7826986312866211, 0.1199423298239708, -0.09012264013290405, -0.20310267806053162, -0.3199536204338074, -0.06167525798082352, 0.30487415194511414, -0.07575298100709915, 0.7232834696769714, -0.33623749017715454, -0.17850083112716675, -0.887734055519104, 0.652754545211792, 0.9970465302467346, 0.09446714073419571, 0.806644082069397, 0.46324217319488525, -0.35647475719451904, -0.1304660439491272, -0.3535459041595459, -0.15120601654052734, -0.685774564743042, -0.1806798279285431, -0.5322476625442505, -0.5411434769630432, 0.40530654788017273, 0.10101459175348282, -0.0021042972803115845, 0.5167046785354614, 0.2533605694770813, -0.28806859254837036, 0.7550324201583862, 1.034340739250183, 0.1391797959804535, 0.3602915108203888, -0.2854715585708618, 0.6341594457626343, -0.8329949378967285, -0.34052175283432007, -0.4548071026802063, -0.2563585042953491, -0.31214389204978943, -0.10750849545001984, 0.5791022181510925, 0.2818215489387512, -0.4463467597961426, 0.1250680536031723, -0.5994209051132202, 0.6587361693382263, 0.6273988485336304, 0.5719727873802185, 0.1997303068637848, -0.46199458837509155, 0.19982971251010895, 0.04816687852144241, -0.45745599269866943, -0.4009109139442444, 0.7711143493652344, 0.2399624139070511, 0.8364022374153137, 0.20927050709724426, 0.4957774877548218, 0.33375421166419983, 0.2528058588504791, -0.6318977475166321, 0.2009797990322113, -0.22282809019088745, -1.245961308479309, -0.206426739692688, -0.16551318764686584, -1.0080583095550537, -0.11792082339525223, -0.18288995325565338, -0.8406620025634766, 0.2665729820728302, -0.19225634634494781, -0.6640645265579224, 0.5206149220466614, -0.5103875398635864, 0.69347083568573, -0.23555898666381836, -0.2817087769508362, 0.11930079013109207, -0.6889920830726624, 0.5254612565040588, 0.3667147755622864, 0.29168397188186646, -0.37968993186950684, -0.3192872405052185, 0.5068994760513306, -0.881224513053894, 0.44081127643585205, -0.10564978420734406, 0.19428130984306335, 0.5358879566192627, 0.4153591990470886, 0.3823971152305603, 0.28699052333831787, -0.2459377944469452, -0.23415414988994598, 0.2250344604253769, -0.7581346035003662, -0.27754613757133484, 0.9095459580421448, -0.7519428730010986, -0.8586915731430054, -0.6954255700111389, -0.30644941329956055, 0.28865277767181396, 0.02781464159488678, 0.7154772281646729, 0.6456884145736694, -0.18821057677268982, 0.23776991665363312, 0.7208225727081299, -0.0146945184096694, 0.7235562801361084, 0.29411184787750244, -0.4056646227836609, -0.6169787645339966, 0.7182320356369019, 0.2627044916152954, 0.05162655562162399, 0.028327951207756996, 0.3058736026287079, -0.17546698451042175, -0.15078596770763397, -0.6318323612213135, -0.06395323574542999, -0.7465729117393494, -0.0927949845790863, -0.7541396617889404, -0.2507742643356323, -0.7114590406417847, -0.8068137764930725, -0.7080163955688477, -0.45604395866394043, -0.43011948466300964, -0.23352204263210297, 0.5163108706474304, 1.1627086400985718, -0.2613152861595154, 0.8011051416397095, -0.8900954723358154, 0.41936296224594116, 0.4969540238380432, 0.7519731521606445, -0.11061006784439087, -0.6746935844421387, -0.07836239039897919, -0.5338755249977112, -0.29485058784484863, -1.0156972408294678, 0.31774646043777466, -0.03688591718673706, 0.40537136793136597, 0.42938894033432007, 0.25190269947052, 0.49392756819725037, -0.30073118209838867, 1.1130688190460205, 0.7274302244186401, -0.803381085395813, 0.519527792930603, -0.7635002136230469, 0.16122324764728546, 0.9363659620285034, 0.54477459192276, -0.4417075514793396, -0.15113934874534607, -1.025976538658142, -0.843137264251709, 0.5963036417961121, 0.15439945459365845, 0.016843896359205246, 0.01821417547762394, 0.03168272227048874, 0.29466384649276733, 0.3591304123401642, -0.7847291231155396, -0.8240220546722412, -0.13851122558116913, 0.25803306698799133, 0.31456053256988525, -0.1648542582988739, -0.3003871440887451, -0.611615777015686, 0.8711391091346741, 0.18286482989788055, 0.3546231985092163, 0.12073354423046112, 0.04369349032640457, -0.35506919026374817, 0.14787021279335022, 0.5522999167442322, 1.2529057264328003, -0.40983331203460693, 0.3673911392688751, 0.1751260608434677, -0.6540069580078125, 0.6494997143745422, -0.3036349415779114, -0.021784601733088493, 0.6203135251998901, 0.17760884761810303, 0.28528398275375366, 0.315599262714386, -0.3621427118778229, 0.6047801971435547, -0.029422052204608917, -0.17758512496948242, -0.7005696296691895, 0.15866968035697937, 0.029350608587265015, 0.27507954835891724, 0.4392024278640747, 0.24443313479423523, 0.08246771991252899, -1.0602877140045166, 0.5711055397987366, 0.24493910372257233, -0.8676618337631226, -0.3011006712913513, 0.7047957181930542, 0.4075389802455902, -0.47599563002586365, 0.38749054074287415, 0.012702330946922302, -0.6710241436958313, 0.5987741351127625, 0.5510413646697998, 0.7569674253463745, -0.4702427089214325, 0.3088020086288452, 0.6245602965354919, 0.06711331009864807, 0.20550549030303955, 0.6923202872276306, 0.03149382025003433, -0.44738656282424927, 0.23022446036338806, -0.5986733436584473, -0.1468990594148636, 0.13735318183898926, -0.8047426342964172, 0.351533442735672, -0.9312615394592285, -0.24089956283569336, 0.08751589059829712, 0.11761097609996796, -0.6130945086479187, 0.6674696207046509, -0.008524954319000244, 0.9280490875244141, -0.8549083471298218, 0.9626278281211853, 0.8559581637382507, -0.31830817461013794, -0.7709448337554932, -0.33556753396987915, 0.02013934776186943, -0.6660526990890503, 0.7108278274536133, -0.18973003327846527, -0.41207411885261536, -0.09323947876691818, -0.622982919216156, -1.0003730058670044, 0.030618250370025635, 0.017415650188922882, -0.4625031054019928, 0.4454794228076935, -0.5157257318496704, 0.3289681673049927, -0.19169732928276062, 0.30509495735168457, 0.7719469666481018, 0.7958452701568604, 0.22960808873176575, -0.6354780197143555, -0.4466685652732849, -0.010276071727275848, -0.16682815551757812, 0.4545809030532837, -1.0710972547531128, 0.967736542224884, -0.4652574360370636, -0.34733209013938904, 0.2706642150878906, 0.797762393951416, 0.2538500428199768, 0.3524126708507538, 0.6219537258148193, 0.9016807079315186, 0.36450111865997314, -0.31178343296051025, 0.7276745438575745, 0.2426338493824005, 0.4152539074420929, 0.7364203333854675, -0.22712187469005585, 0.5403846502304077, 0.8906413316726685, -0.786162257194519, 0.5381765365600586, 0.7879031896591187, 0.16047371923923492, 0.7758157253265381, 0.5944145917892456, -0.611952543258667, -0.1185941994190216, -0.1464141309261322, -0.6171560287475586, 0.1979752480983734, 0.052926212549209595, -0.11974738538265228, -0.2846010625362396, -0.13567376136779785, 0.12295057624578476, 0.2836454212665558, -0.5959328413009644, 0.606866717338562, 0.34341585636138916, -0.6328282356262207, 0.21025103330612183, -0.25779569149017334, 0.6709501147270203, -0.5978154540061951, 0.02733636647462845, -0.226993590593338, 0.41810402274131775, -0.4618742763996124, -1.007582426071167, 0.47138404846191406, -0.2920241355895996, -0.40551304817199707, -0.26942431926727295, 0.8072363138198853, -0.22133907675743103, -0.5572860240936279, 0.37486034631729126, 0.13466592133045197, 0.41473662853240967, 0.40145981311798096, -0.548729419708252, 0.047790080308914185, 0.13760165870189667, -0.20061805844306946, 0.3601190149784088, 0.2973729372024536, 0.25488772988319397, 0.7100128531455994, 0.5052477717399597, 0.22198708355426788, 0.25694364309310913, -0.18668605387210846, 0.8387458324432373, -0.9102796316146851, -0.8167635202407837, -0.9497333765029907, 0.3849896192550659, 0.025727711617946625, -0.880144476890564, 0.7920305728912354, 0.7652608156204224, 0.5113964080810547, -0.4877890348434448, 0.4755283296108246, -0.326479434967041, 0.5047136545181274, -0.13870958983898163, 1.001089096069336, -0.760762631893158, -0.29587265849113464, -0.030554059892892838, -0.9216439723968506, -0.2533753216266632, 0.5375741720199585, 0.1540832668542862, -0.14608067274093628, 0.4385907053947449, 0.44216376543045044, 0.022173406556248665, 0.25223150849342346, 0.32861006259918213, 0.06042787432670593, 0.14508451521396637, 0.5510438680648804, 1.0931141376495361, -0.43394410610198975, 0.18694786727428436, -0.4923475384712219, -0.4536249041557312, -0.4153490662574768, -0.9548057913780212, -0.6640313863754272, -0.48185449838638306, -0.2973935008049011, -0.5915579199790955, 0.11726461350917816, 0.9300885796546936, 0.9018137454986572, -0.6256728172302246, -0.41243645548820496, 0.25713539123535156, 0.30293411016464233, -0.2295418381690979, -0.146267831325531, 0.2736492455005646, -0.006407544948160648, -0.7211178541183472, 0.3930943012237549, 0.807976245880127, 0.3887130320072174, 0.08444006741046906, -0.07217127084732056, -0.4407080411911011, 0.026101574301719666, 0.5373561382293701, 0.5729561448097229, -0.6281182169914246, -0.4099644422531128, -0.5328317880630493, -0.21386730670928955, 0.15529435873031616, 0.48077550530433655, -0.5166378617286682, 0.32661110162734985, 0.8128959536552429, 0.17017659544944763, 0.7187885642051697, -0.0022492259740829468, 0.6678642630577087, -0.8970246315002441, 0.4446259140968323, 0.3953385353088379, 0.5681870579719543, 0.08998038619756699, -0.7339164614677429, 0.9820241928100586, 0.49674350023269653, -0.6334057450294495, -1.0034242868423462, 0.03079957515001297, -1.193113923072815, -0.3788175582885742, 0.9890843629837036, -0.09595765173435211, -0.9597458839416504, -0.36448943614959717, -0.3677716851234436, 0.07989637553691864, -0.33809733390808105, 0.35498204827308655, 0.8268195986747742, -0.2538071274757385, -0.2204185128211975, -0.9505581855773926, 0.4752943515777588, 0.3102525472640991, -0.5886632204055786, -0.05114369094371796, 0.329391211271286, 0.45236870646476746, 0.3009701371192932, 0.5239557027816772, 0.10428227484226227, 0.8970529437065125, 0.25200390815734863, 0.30491405725479126, -0.04526621103286743, -0.590078592300415, -0.0160664189606905, 0.2621477246284485, 0.04487839341163635, -0.6869441270828247 ]
TheBloke/Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-GPTQ
TheBloke
"2023-08-21T14:48:15Z"
18,893
101
transformers
[ "transformers", "safetensors", "llama", "text-generation", "custom_code", "license:other", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-06-27T03:55:57Z"
--- inference: false license: other --- <!-- header start --> <!-- 200823 --> <div style="width: auto; margin-left: auto; margin-right: auto"> <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> </div> <div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div> <hr style="margin-top: 1.0em; margin-bottom: 1.0em;"> <!-- header end --> # Eric Hartford's Wizard Vicuna 13B Uncensored GPTQ These files are GPTQ 4bit model files for [Eric Hartford's Wizard Vicuna 13B Uncensored](https://huggingface.co/ehartford/Wizard-Vicuna-13B-Uncensored) merged with [Kaio Ken's SuperHOT 8K](https://huggingface.co/kaiokendev/superhot-13b-8k-no-rlhf-test). It is the result of quantising to 4bit using [GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa). **This is an experimental new GPTQ which offers up to 8K context size** The increased context is tested to work with [ExLlama](https://github.com/turboderp/exllama), via the latest release of [text-generation-webui](https://github.com/oobabooga/text-generation-webui). It has also been tested from Python code using AutoGPTQ, and `trust_remote_code=True`. Code credits: - Original concept and code for increasing context length: [kaiokendev](https://huggingface.co/kaiokendev) - Updated Llama modelling code that includes this automatically via trust_remote_code: [emozilla](https://huggingface.co/emozilla). Please read carefully below to see how to use it. GGML versions are not yet provided, as there is not yet support for SuperHOT in llama.cpp. This is being investigated and will hopefully come soon. ## Repositories available * [4-bit GPTQ models for GPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-GGML) * [Unquantised SuperHOT fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-fp16) * [Unquantised base fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/Wizard-Vicuna-13B-Uncensored) ## How to easily download and use this model in text-generation-webui with ExLlama Please make sure you're using the latest version of text-generation-webui 1. Click the **Model tab**. 2. Under **Download custom model or LoRA**, enter `TheBloke/Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-GPTQ`. 3. Click **Download**. 4. The model will start downloading. Once it's finished it will say "Done" 5. Untick **Autoload the model** 6. In the top left, click the refresh icon next to **Model**. 7. In the **Model** dropdown, choose the model you just downloaded: `Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-GPTQ` 8. To use the increased context, set the **Loader** to **ExLlama**, set **max_seq_len** to 8192 or 4096, and set **compress_pos_emb** to **4** for 8192 context, or to **2** for 4096 context. 9. Now click **Save Settings** followed by **Reload** 10. The model will automatically load, and is now ready for use! 11. Once you're ready, click the **Text Generation tab** and enter a prompt to get started! ## How to use this GPTQ model from Python code with AutoGPTQ First make sure you have AutoGPTQ and Einops installed: ``` pip3 install einops auto-gptq ``` Then run the following code. Note that in order to get this to work, `config.json` has been hardcoded to a sequence length of 8192. If you want to try 4096 instead to reduce VRAM usage, please manually edit `config.json` to set `max_position_embeddings` to the value you want. ```python from transformers import AutoTokenizer, pipeline, logging from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig import argparse model_name_or_path = "TheBloke/Wizard-Vicuna-13B-Uncensored-SuperHOT-8K-GPTQ" model_basename = "wizard-vicuna-13b-uncensored-superhot-8k-GPTQ-4bit-128g.no-act.order" use_triton = False tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) model = AutoGPTQForCausalLM.from_quantized(model_name_or_path, model_basename=model_basename, use_safetensors=True, trust_remote_code=True, device_map='auto', use_triton=use_triton, quantize_config=None) model.seqlen = 8192 # Note: check the prompt template is correct for this model. prompt = "Tell me about AI" prompt_template=f'''USER: {prompt} ASSISTANT:''' print("\n\n*** Generate:") input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512) print(tokenizer.decode(output[0])) # Inference can also be done using transformers' pipeline # Prevent printing spurious transformers error when using pipeline with AutoGPTQ logging.set_verbosity(logging.CRITICAL) print("*** Pipeline:") pipe = pipeline( "text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, temperature=0.7, top_p=0.95, repetition_penalty=1.15 ) print(pipe(prompt_template)[0]['generated_text']) ``` ## Using other UIs: monkey patch Provided in the repo is `llama_rope_scaled_monkey_patch.py`, written by @kaiokendev. It can be theoretically be added to any Python UI or custom code to enable the same result as `trust_remote_code=True`. I have not tested this, and it should be superseded by using `trust_remote_code=True`, but I include it for completeness and for interest. ## Provided files **wizard-vicuna-13b-uncensored-superhot-8k-GPTQ-4bit-128g.no-act.order.safetensors** This will work with AutoGPTQ, ExLlama, and CUDA versions of GPTQ-for-LLaMa. There are reports of issues with Triton mode of recent GPTQ-for-LLaMa. If you have issues, please use AutoGPTQ instead. It was created with group_size 128 to increase inference accuracy, but without --act-order (desc_act) to increase compatibility and improve inference speed. * `wizard-vicuna-13b-uncensored-superhot-8k-GPTQ-4bit-128g.no-act.order.safetensors` * Works for use with ExLlama with increased context (4096 or 8192) * Works with AutoGPTQ in Python code, including with increased context, if `trust_remote_code=True` is set. * Should work with GPTQ-for-LLaMa in CUDA mode, but unknown if increased context works - TBC. May have issues with GPTQ-for-LLaMa Triton mode. * Works with text-generation-webui, including one-click-installers. * Parameters: Groupsize = 128. Act Order / desc_act = False. <!-- footer start --> <!-- 200823 --> ## Discord For further support, and discussions on these models and AI in general, join us at: [TheBloke AI's Discord server](https://discord.gg/theblokeai) ## Thanks, and how to contribute. Thanks to the [chirper.ai](https://chirper.ai) team! I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. * Patreon: https://patreon.com/TheBlokeAI * Ko-Fi: https://ko-fi.com/TheBlokeAI **Special thanks to**: Aemon Algiz. **Patreon special mentions**: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: Kaio Ken's SuperHOT 8K ### SuperHOT Prototype 2 w/ 8K Context This is a second prototype of SuperHOT, this time 30B with 8K context and no RLHF, using the same technique described in [the github blog](https://kaiokendev.github.io/til#extending-context-to-8k). Tests have shown that the model does indeed leverage the extended context at 8K. You will need to **use either the monkeypatch** or, if you are already using the monkeypatch, **change the scaling factor to 0.25 and the maximum sequence length to 8192** #### Looking for Merged & Quantized Models? - 30B 4-bit CUDA: [tmpupload/superhot-30b-8k-4bit-safetensors](https://huggingface.co/tmpupload/superhot-30b-8k-4bit-safetensors) - 30B 4-bit CUDA 128g: [tmpupload/superhot-30b-8k-4bit-128g-safetensors](https://huggingface.co/tmpupload/superhot-30b-8k-4bit-128g-safetensors) #### Training Details I trained the LoRA with the following configuration: - 1200 samples (~400 samples over 2048 sequence length) - learning rate of 3e-4 - 3 epochs - The exported modules are: - q_proj - k_proj - v_proj - o_proj - no bias - Rank = 4 - Alpha = 8 - no dropout - weight decay of 0.1 - AdamW beta1 of 0.9 and beta2 0.99, epsilon of 1e-5 - Trained on 4-bit base model # Original model card: Eric Hartford's Wizard Vicuna 13B Uncensored This is [wizard-vicuna-13b](https://huggingface.co/junelee/wizard-vicuna-13b) trained with a subset of the dataset - responses that contained alignment / moralizing were removed. The intent is to train a WizardLM that doesn't have alignment built-in, so that alignment (of any sort) can be added separately with for example with a RLHF LoRA. Shout out to the open source AI/ML community, and everyone who helped me out. Note: An uncensored model has no guardrails. You are responsible for anything you do with the model, just as you are responsible for anything you do with any dangerous object such as a knife, gun, lighter, or car. Publishing anything this model generates is the same as publishing it yourself. You are responsible for the content you publish, and you cannot blame the model any more than you can blame the knife, gun, lighter, or car for what you do with it.
[ -0.4023483395576477, -0.8331815004348755, 0.25432130694389343, 0.13137902319431305, -0.365797758102417, -0.2059328854084015, 0.008411712944507599, -0.48881861567497253, 0.15920664370059967, 0.22261181473731995, -0.44993409514427185, -0.49914252758026123, -0.41703546047210693, 0.11936139315366745, -0.24887362122535706, 0.9624794721603394, 0.16797983646392822, -0.37889528274536133, 0.026072001084685326, 0.01474015973508358, -0.430092990398407, -0.45082026720046997, -0.7446890473365784, -0.18745212256908417, 0.3057582676410675, 0.19498133659362793, 0.8690505027770996, 0.6049509048461914, 0.16896457970142365, 0.375764399766922, -0.011776349507272243, 0.2449028491973877, -0.36711210012435913, -0.04272322729229927, 0.1384849101305008, -0.3843562602996826, -0.5991936922073364, 0.021805301308631897, 0.5026244521141052, -0.06935989111661911, -0.25177526473999023, 0.1862969845533371, -0.02019711211323738, 0.23317348957061768, -0.4497479498386383, 0.2537042796611786, -0.48661795258522034, 0.025596152991056442, 0.006667667534202337, -0.12163025140762329, -0.09784932434558868, -0.25947192311286926, 0.020041676238179207, -0.960299015045166, 0.13909782469272614, 0.05873182415962219, 1.2389148473739624, 0.3268371820449829, -0.4875853955745697, 0.03618983179330826, -0.3962033689022064, 0.6886937618255615, -0.9310960173606873, 0.09702898561954498, 0.3535647988319397, 0.20080137252807617, -0.22819019854068756, -0.940083384513855, -0.7427029013633728, -0.24267344176769257, -0.07147476822137833, 0.24698038399219513, -0.4785219728946686, -0.026930425316095352, 0.3069082200527191, 0.49128714203834534, -0.6184936165809631, -0.06264135986566544, -0.31762540340423584, -0.12834645807743073, 0.7163262963294983, 0.30138733983039856, 0.5243219137191772, -0.23202943801879883, -0.35559630393981934, -0.2582724392414093, -0.6219839453697205, -0.022303400561213493, 0.14928096532821655, 0.009557542391121387, -0.5296792387962341, 0.46215635538101196, -0.2619931399822235, 0.5480335354804993, 0.1934415102005005, -0.06685348600149155, 0.15781395137310028, -0.45340996980667114, -0.622352659702301, -0.3024957776069641, 1.2225642204284668, 0.4998602867126465, -0.1382337510585785, 0.2160438597202301, 0.01778089441359043, -0.0565597265958786, -0.07154780626296997, -0.8642136454582214, -0.39426180720329285, 0.469644159078598, -0.3067377209663391, -0.305407851934433, -0.20468497276306152, -0.5707032084465027, -0.12245366722345352, 0.03682004287838936, 0.56816166639328, -0.45241329073905945, -0.381089448928833, 0.16335494816303253, -0.3287760019302368, 0.4350656270980835, 0.3524356484413147, -0.8946225643157959, 0.09975718706846237, 0.2916141450405121, 0.7800206542015076, 0.3394149839878082, -0.28964370489120483, -0.28685757517814636, 0.14785924553871155, -0.20641125738620758, 0.5336142778396606, -0.2308204472064972, -0.4634903073310852, -0.2527563273906708, 0.20983262360095978, 0.02498552016913891, -0.2918248772621155, 0.2441534847021103, -0.32572320103645325, 0.3784513473510742, -0.2599957585334778, -0.40985313057899475, -0.22035673260688782, 0.1802838146686554, -0.4278111159801483, 1.1751883029937744, 0.348898708820343, -0.7878871560096741, 0.1616559624671936, -0.6511101126670837, -0.11043475568294525, 0.14763325452804565, -0.10713917762041092, -0.46701791882514954, -0.14882692694664001, 0.39995041489601135, 0.3773004710674286, -0.4233977198600769, 0.17669647932052612, -0.23949211835861206, -0.33336567878723145, 0.29838159680366516, -0.5419132113456726, 1.220044493675232, 0.1872449517250061, -0.6055054664611816, 0.05188176408410072, -0.534521758556366, 0.12177487462759018, 0.34554851055145264, -0.2637099325656891, -0.004520382732152939, -0.4508810341358185, 0.009155978448688984, 0.0748295783996582, 0.32362401485443115, -0.4207373261451721, 0.45273247361183167, -0.18042930960655212, 0.738264262676239, 0.6839962005615234, 0.08485080301761627, 0.32233139872550964, -0.3251722753047943, 0.5698225498199463, -0.07484704256057739, 0.6133671998977661, 0.09862042218446732, -0.6281991600990295, -0.828254222869873, -0.32316854596138, 0.31124526262283325, 0.5453011989593506, -0.8488156199455261, 0.5422102212905884, -0.1002354547381401, -0.7282453179359436, -0.3641611635684967, -0.1204170510172844, 0.3216918110847473, 0.48406463861465454, 0.5270016193389893, -0.42936694622039795, -0.3893737196922302, -0.7437435388565063, 0.1079292818903923, -0.34710538387298584, -0.2170707732439041, 0.43883442878723145, 0.5432588458061218, -0.36686739325523376, 0.7595228552818298, -0.6432618498802185, -0.2585424482822418, -0.12055010348558426, 0.020428629592061043, 0.2796424329280853, 0.6470065116882324, 0.7125587463378906, -0.6186944842338562, -0.5402278304100037, -0.08520662039518356, -0.7980771660804749, -0.052570149302482605, -0.05973350256681442, -0.44754695892333984, 0.1671915352344513, 0.15667656064033508, -1.0589863061904907, 0.592767596244812, 0.4563103914260864, -0.5204012393951416, 0.7115015983581543, -0.4141415059566498, 0.12965036928653717, -1.1158701181411743, -0.036685213446617126, 0.15170766413211823, -0.31606513261795044, -0.47673627734184265, 0.1645849198102951, -0.02606595866382122, 0.1487821340560913, -0.49939993023872375, 0.6190024614334106, -0.49796998500823975, 0.12704269587993622, -0.13705562055110931, -0.05797641724348068, 0.2804054319858551, 0.454103022813797, -0.059585198760032654, 0.7564149498939514, 0.5937268733978271, -0.6301707029342651, 0.6267222166061401, 0.3407971262931824, -0.15155768394470215, 0.26030150055885315, -0.8529584407806396, 0.19360071420669556, 0.17413291335105896, 0.5583411455154419, -0.940271258354187, -0.30937644839286804, 0.5705756545066833, -0.6414451599121094, 0.2914673984050751, -0.27456939220428467, -0.4050658643245697, -0.33989933133125305, -0.3504083454608917, 0.3441019654273987, 0.6503730416297913, -0.46933913230895996, 0.4988456964492798, 0.4635907709598541, 0.04745067283511162, -0.7068870067596436, -0.8317036032676697, 0.07234745472669601, -0.3840404748916626, -0.5331205129623413, 0.4847504794597626, -0.11129890382289886, -0.00498964823782444, -0.060089629143476486, 0.15528416633605957, -0.14020536839962006, 0.0005449136369861662, 0.23334456980228424, 0.522433876991272, -0.17249739170074463, -0.11239100247621536, 0.15127664804458618, -0.029803533107042313, -0.04773028567433357, -0.3937070667743683, 0.5743684768676758, -0.3778592348098755, 0.14534974098205566, -0.6667911410331726, 0.194236159324646, 0.46957331895828247, -0.06106004863977432, 0.7989606857299805, 0.8451015949249268, -0.35188028216362, 0.03669961914420128, -0.5096269845962524, -0.17519836127758026, -0.5503923892974854, 0.21032121777534485, -0.20273619890213013, -0.7534455060958862, 0.4565764367580414, 0.399909108877182, 0.16985097527503967, 0.6841744184494019, 0.6028264760971069, -0.007779762148857117, 0.8480525016784668, 0.6093982458114624, -0.09186036884784698, 0.509615421295166, -0.744382381439209, -0.07129351049661636, -0.8760586977005005, -0.17122386395931244, -0.23071789741516113, -0.11374227702617645, -0.6257755756378174, -0.6030641198158264, 0.4684249460697174, 0.14607445895671844, -0.682583749294281, 0.533833384513855, -0.7984623908996582, 0.3125959038734436, 0.5882665514945984, 0.2637648582458496, 0.23439915478229523, 0.004378065001219511, -0.08970406651496887, 0.1747264266014099, -0.7368191480636597, -0.38288414478302, 0.9934847354888916, 0.2825509309768677, 0.5602380633354187, 0.18506421148777008, 0.5621949434280396, 0.0998881459236145, 0.37590697407722473, -0.5242010354995728, 0.5557621121406555, 0.11846213042736053, -0.6748705506324768, -0.4350079298019409, -0.4471551179885864, -0.8498126268386841, 0.2886219024658203, -0.10011724382638931, -0.688566267490387, 0.40903207659721375, 0.16373883187770844, -0.7066572308540344, 0.3418312966823578, -0.6133233904838562, 0.7807343602180481, -0.13470739126205444, -0.4772065579891205, 0.08182768523693085, -0.610423743724823, 0.3226897120475769, 0.33392325043678284, 0.020700404420495033, -0.21848487854003906, -0.21415424346923828, 0.6362468004226685, -0.7800674438476562, 0.9004255533218384, -0.19822625815868378, -0.16405101120471954, 0.6022651195526123, -0.08794211596250534, 0.36342811584472656, 0.39264601469039917, 0.03626410663127899, 0.3056599199771881, 0.09128285199403763, -0.36344999074935913, -0.4567146301269531, 0.5805945992469788, -0.9915370345115662, -0.6538696885108948, -0.38366439938545227, -0.5095598101615906, 0.17130285501480103, 0.10111628472805023, 0.5694553256034851, 0.39790448546409607, 0.08078838884830475, 0.049561452120542526, 0.46095651388168335, -0.3697878420352936, 0.6470983028411865, 0.292775958776474, -0.1079082041978836, -0.5779123902320862, 0.7796189188957214, 0.06603792309761047, 0.1404738426208496, 0.2826467454433441, 0.19276964664459229, -0.49740225076675415, -0.3220853805541992, -0.7267006635665894, 0.23583146929740906, -0.5255125761032104, -0.5400475859642029, -0.6617853045463562, -0.31720539927482605, -0.5114642977714539, 0.038958627730607986, -0.4111676812171936, -0.5558332800865173, -0.6299583315849304, -0.049889471381902695, 0.8214238882064819, 0.4332922399044037, -0.23359692096710205, 0.38187962770462036, -0.7145717740058899, 0.24363964796066284, 0.5371536612510681, 0.0012679006904363632, 0.06437762081623077, -0.7771714329719543, -0.1287790983915329, 0.09467849135398865, -0.5363202691078186, -0.7552218437194824, 0.8386498689651489, 0.10415410250425339, 0.37052449584007263, 0.21532796323299408, 0.18976828455924988, 0.8162758350372314, -0.20393598079681396, 0.9950549006462097, 0.2708684206008911, -0.9727035760879517, 0.528808057308197, -0.5449707508087158, 0.2812378406524658, 0.2733411192893982, 0.4700600206851959, -0.3829280138015747, -0.3281976878643036, -0.6871731877326965, -0.8825532793998718, 0.36972618103027344, 0.4044613838195801, 0.20768192410469055, -0.014644782058894634, 0.5634459853172302, -0.10324390232563019, 0.06859025359153748, -0.972481906414032, -0.42460373044013977, -0.40209290385246277, -0.09483379870653152, 0.17004624009132385, -0.06736936420202255, -0.22842933237552643, -0.5775243043899536, 0.8152228593826294, -0.2510271966457367, 0.7514787316322327, 0.5363993644714355, -0.009303305298089981, -0.03274303674697876, 0.1655268371105194, 0.32693976163864136, 0.6434128880500793, -0.06645622849464417, -0.15051671862602234, 0.21479704976081848, -0.5252336263656616, 0.22009463608264923, 0.259530633687973, -0.21841591596603394, -0.12406390905380249, 0.07188258320093155, 0.857788622379303, -0.10690794140100479, -0.24374356865882874, 0.386406272649765, -0.3443503975868225, -0.27447107434272766, -0.351944237947464, 0.29016292095184326, 0.1912350207567215, 0.5002574324607849, 0.4453064501285553, -0.3143206238746643, 0.13327744603157043, -0.5532075762748718, 0.026755651459097862, 0.41984519362449646, -0.1726655215024948, -0.17821712791919708, 0.9865349531173706, 0.043352894484996796, -0.051256660372018814, 0.7802291512489319, -0.15489690005779266, -0.48931145668029785, 0.9155341386795044, 0.6451495289802551, 0.7783873677253723, -0.15524709224700928, 0.30221298336982727, 0.4792994260787964, 0.2430792599916458, -0.027510017156600952, 0.22203151881694794, 0.024518869817256927, -0.6487759947776794, -0.1725408434867859, -0.49586206674575806, -0.39030376076698303, 0.2363043874502182, -0.49780112504959106, 0.2159895896911621, -0.5759694576263428, -0.4464961886405945, -0.22992143034934998, 0.20399992167949677, -0.6204847097396851, 0.3241921067237854, 0.13940894603729248, 0.7574198246002197, -0.5960775017738342, 0.918599009513855, 0.46178513765335083, -0.5924105644226074, -1.01799738407135, -0.13968446850776672, -0.01585550419986248, -0.6997885704040527, 0.2192729264497757, 0.12950129806995392, 0.10340055823326111, 0.17037345468997955, -0.7581996321678162, -0.8391843438148499, 1.5413018465042114, 0.36684414744377136, -0.4325752258300781, -0.18974359333515167, 0.0015932794194668531, 0.4332645535469055, -0.42593055963516235, 0.7244135737419128, 0.5456351041793823, 0.26131367683410645, -0.03999106585979462, -0.9680683612823486, 0.46744203567504883, -0.3734411895275116, 0.0896628201007843, -0.1565549373626709, -1.186055064201355, 1.046069622039795, -0.2273445725440979, -0.12200520187616348, 0.31192299723625183, 0.7675194144248962, 0.40731677412986755, 0.0034454488195478916, 0.38290223479270935, 0.6064009070396423, 0.7836875319480896, -0.10306227207183838, 1.1583118438720703, -0.26101571321487427, 0.6313089728355408, 0.8786196112632751, 0.15517975389957428, 0.7347429394721985, 0.14950263500213623, -0.38372868299484253, 0.6218088269233704, 0.8520772457122803, -0.16557413339614868, 0.35331398248672485, 0.027585472911596298, -0.43476393818855286, -0.18509817123413086, -0.0709744542837143, -0.7554826736450195, 0.2679353356361389, 0.45836713910102844, -0.2875228524208069, 0.14186204969882965, -0.2176201194524765, -0.014021318405866623, -0.6230098009109497, -0.12654370069503784, 0.4019249677658081, 0.2953280508518219, -0.37787753343582153, 1.012787103652954, 0.018323926255106926, 0.8321086168289185, -0.5130344033241272, -0.05870821326971054, -0.42515766620635986, -0.05723602697253227, -0.21685653924942017, -0.6285417079925537, -0.029912743717432022, -0.0870288535952568, 0.09911413490772247, 0.14709849655628204, 0.7252227663993835, -0.28532469272613525, -0.3619990050792694, 0.27024590969085693, 0.3248262405395508, 0.22894640266895294, -0.07466630637645721, -0.934578001499176, 0.17003782093524933, 0.015568681061267853, -0.48595723509788513, 0.3345717191696167, 0.3714594542980194, 0.21332904696464539, 0.711412250995636, 0.6256580948829651, -0.25993359088897705, 0.20987191796302795, -0.1801057606935501, 1.0049582719802856, -0.7129529714584351, -0.35112690925598145, -0.8864620923995972, 0.5614694952964783, -0.120247982442379, -0.4265280067920685, 0.7212198972702026, 0.47374844551086426, 0.6633120775222778, -0.06762684136629105, 0.7913427352905273, -0.27089735865592957, -0.12683752179145813, -0.3303770422935486, 0.8945207595825195, -0.6900480389595032, 0.26936468482017517, -0.3043249547481537, -0.7182744145393372, -0.14517153799533844, 0.7492406368255615, -0.09229116886854172, 0.08432383835315704, 0.45190155506134033, 0.8980353474617004, -0.02335216850042343, -0.036525577306747437, 0.2383892685174942, 0.36907655000686646, 0.2824389338493347, 0.9271902441978455, 0.786236047744751, -0.9644041657447815, 0.6632733345031738, -0.43107762932777405, -0.3386368453502655, -0.07722988724708557, -0.8521518111228943, -0.7409253120422363, -0.3287181854248047, -0.5291821360588074, -0.5129613876342773, 0.0015782201662659645, 0.8571484088897705, 0.7820017337799072, -0.45875051617622375, -0.25085222721099854, -0.12338437885046005, 0.040250834077596664, -0.07919859141111374, -0.2995152473449707, 0.35297587513923645, 0.12438596040010452, -0.8684888482093811, 0.21995292603969574, 0.0832149013876915, 0.40130487084388733, -0.16840101778507233, -0.11684421449899673, -0.2992319166660309, 0.05005079135298729, 0.48200151324272156, 0.6104360818862915, -0.642474889755249, -0.1775946170091629, -0.15006586909294128, -0.11594952642917633, 0.26072362065315247, 0.29819875955581665, -0.8025866150856018, 0.05128657445311546, 0.35766860842704773, 0.23300649225711823, 0.6378129124641418, -0.1348448544740677, 0.548478364944458, -0.4406628906726837, 0.228742316365242, 0.008333317004144192, 0.40226736664772034, 0.227676659822464, -0.6746242642402649, 0.6122125387191772, 0.26079878211021423, -0.7307097911834717, -0.7033089995384216, -0.16936026513576508, -0.9198250770568848, -0.2071395218372345, 1.1103918552398682, -0.2746163308620453, -0.37926679849624634, 0.0005099133122712374, -0.2541593909263611, 0.5377082824707031, -0.46265456080436707, 0.6150508522987366, 0.3258216083049774, -0.28912535309791565, -0.3057730495929718, -0.5949195027351379, 0.4667221009731293, 0.3302136957645416, -0.8189470171928406, -0.009088903665542603, 0.46139973402023315, 0.4941215515136719, 0.0624992772936821, 0.9539533257484436, -0.10547760128974915, 0.38979291915893555, 0.14037708938121796, 0.03419721499085426, -0.059011947363615036, -0.07019051164388657, -0.21669526398181915, -0.02939746342599392, -0.26298820972442627, -0.19080990552902222 ]
asapp/sew-tiny-100k
asapp
"2023-07-21T23:05:12Z"
18,891
1
transformers
[ "transformers", "pytorch", "safetensors", "sew", "feature-extraction", "speech", "en", "dataset:librispeech_asr", "arxiv:2109.06870", "license:apache-2.0", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- language: en datasets: - librispeech_asr tags: - speech license: apache-2.0 --- # SEW-tiny [SEW by ASAPP Research](https://github.com/asappresearch/sew) The base model pretrained on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz. Note that this model should be fine-tuned on a downstream task, like Automatic Speech Recognition, Speaker Identification, Intent Classification, Emotion Recognition, etc... Paper: [Performance-Efficiency Trade-offs in Unsupervised Pre-training for Speech Recognition](https://arxiv.org/abs/2109.06870) Authors: Felix Wu, Kwangyoun Kim, Jing Pan, Kyu Han, Kilian Q. Weinberger, Yoav Artzi **Abstract** This paper is a study of performance-efficiency trade-offs in pre-trained models for automatic speech recognition (ASR). We focus on wav2vec 2.0, and formalize several architecture designs that influence both the model performance and its efficiency. Putting together all our observations, we introduce SEW (Squeezed and Efficient Wav2vec), a pre-trained model architecture with significant improvements along both performance and efficiency dimensions across a variety of training setups. For example, under the 100h-960h semi-supervised setup on LibriSpeech, SEW achieves a 1.9x inference speedup compared to wav2vec 2.0, with a 13.5% relative reduction in word error rate. With a similar inference time, SEW reduces word error rate by 25-50% across different model sizes. The original model can be found under https://github.com/asappresearch/sew#model-checkpoints . # Usage See [this blog](https://huggingface.co/blog/fine-tune-wav2vec2-english) for more information on how to fine-tune the model. Note that the class `Wav2Vec2ForCTC` has to be replaced by `SEWForCTC`.
[ -0.3710693418979645, -0.2898942828178406, 0.14709332585334778, 0.012824328616261482, -0.4153778851032257, -0.30588164925575256, -0.06438563019037247, -0.6684691309928894, -0.08892490714788437, 0.41864994168281555, -0.5058740377426147, 0.10466257482767105, -0.531783938407898, -0.4799104332923889, -0.3609859347343445, 0.3820764422416687, 0.29599374532699585, 0.26568740606307983, -0.1718612164258957, -0.24874015152454376, -0.1418628990650177, -0.4831630289554596, -0.6110984086990356, -0.4861181974411011, 0.02184995636343956, 0.328944593667984, 0.36276865005493164, 0.4852849543094635, 0.4051419496536255, 0.3039158284664154, -0.24600283801555634, -0.13661789894104004, -0.2949233651161194, -0.11885246634483337, -0.0029421818908303976, -0.11310286074876785, -0.5160099864006042, 0.2699102461338043, 0.5352990031242371, 0.4801926910877228, -0.33938947319984436, 0.5175307989120483, 0.25940537452697754, 0.6421366333961487, -0.62293940782547, -0.10579978674650192, -0.6998602747917175, -0.17805178463459015, -0.2542512118816376, -0.1736173927783966, -0.21379418671131134, -0.03468480333685875, 0.2970104515552521, -0.2949519157409668, 0.29086557030677795, -0.13108237087726593, 0.7935127019882202, 0.6402357816696167, -0.24468298256397247, -0.09413555264472961, -0.7099283933639526, 0.7308537364006042, -0.881043016910553, 0.8278408050537109, 0.49234214425086975, 0.08211258798837662, 0.08534929901361465, -0.9816693067550659, -0.48395583033561707, -0.015269328840076923, 0.3794185519218445, 0.23209220170974731, -0.4632982313632965, 0.1727253645658493, 0.3206011950969696, 0.36734646558761597, -0.482990562915802, 0.42029309272766113, -0.5080163478851318, -0.4274485111236572, 0.5709759593009949, -0.24724751710891724, -0.007181547582149506, 0.02766556851565838, -0.23183152079582214, -0.3215929865837097, -0.4836002290248871, 0.3890085816383362, 0.3629075884819031, 0.24427668750286102, -0.08253277093172073, 0.40828633308410645, 0.03290191665291786, 0.5966463685035706, -0.18495437502861023, 0.006845748517662287, 0.4395635426044464, -0.24424397945404053, -0.12628087401390076, 0.08719122409820557, 0.5776684284210205, 0.10677365958690643, 0.024366876110434532, 0.032047808170318604, -0.28060340881347656, 0.4212985932826996, 0.4359109401702881, -0.8412245512008667, -0.5703017711639404, -0.01204878743737936, -0.6181914806365967, -0.10437270253896713, -0.1236247792840004, -0.33287739753723145, 0.11247808486223221, -0.5556729435920715, 0.8648104667663574, -0.36481478810310364, -0.1693066656589508, 0.014596921391785145, -0.2717704474925995, 0.3498571515083313, 0.22086776793003082, -0.44931456446647644, 0.39662399888038635, 0.5151010751724243, 0.8513321876525879, -0.1149904727935791, -0.07267450541257858, -0.62385094165802, -0.09718592464923859, -0.31016072630882263, 0.7832521796226501, -0.2616967558860779, -0.5865103602409363, -0.20622307062149048, -0.19795717298984528, -0.005426906980574131, -0.4666536748409271, 0.6428148150444031, -0.4242582321166992, -0.001686801784671843, -0.05665748566389084, -0.6238899230957031, -0.04423576965928078, -0.5439820885658264, -0.6026352643966675, 1.0559473037719727, -0.1844586282968521, -0.6466353535652161, 0.3859870135784149, -0.43285658955574036, -0.8907807469367981, -0.12553182244300842, 0.1812138557434082, -0.4521788954734802, 0.16751259565353394, 0.06646297872066498, 0.29157277941703796, -0.1473410725593567, -0.3065069913864136, -0.25410962104797363, -0.5117387771606445, 0.08694910258054733, -0.312250018119812, 0.5526998043060303, 0.631815493106842, -0.39135923981666565, 0.07209853082895279, -1.0183517932891846, 0.46755656599998474, -0.23089244961738586, -0.5841833353042603, -0.36758771538734436, 0.06341318041086197, 0.13354381918907166, 0.15923833847045898, 0.10154092311859131, -0.35748055577278137, -0.3150326907634735, -0.5839569568634033, 0.6543651223182678, 0.5859078764915466, -0.21808865666389465, 0.6334103345870972, -0.17930787801742554, 0.2630915343761444, -0.3998505175113678, 0.07094427943229675, 0.14013372361660004, -0.28078749775886536, -0.8373247981071472, -0.34353187680244446, 0.5544397830963135, 0.3869817554950714, -0.3641988933086395, 0.5928341746330261, 0.17303961515426636, -0.5972347855567932, -0.9292207360267639, 0.014266770333051682, 0.5529744625091553, 0.3175058960914612, 0.4759111702442169, -0.4522533118724823, -0.8991513848304749, -0.6596093773841858, -0.3776642382144928, -0.10555438697338104, -0.2477843463420868, 0.5028434991836548, 0.11765329539775848, -0.331957072019577, 0.5936185717582703, -0.2611985206604004, -0.23632967472076416, -0.2285555899143219, 0.25513774156570435, 0.007517954334616661, 0.6854668259620667, 0.16659529507160187, -0.5670537352561951, -0.03157959505915642, -0.5160676836967468, 0.18909505009651184, -0.22824862599372864, 0.17279799282550812, -0.10251852124929428, 0.31130000948905945, 0.5780225396156311, -0.31870368123054504, 0.41254913806915283, 0.614767849445343, -0.1648593246936798, 0.36637696623802185, -0.415676474571228, 0.027660829946398735, -0.9781131744384766, 0.12090186029672623, 0.0013126061530783772, -0.2355593889951706, -0.5933899879455566, -0.29417356848716736, 0.1267034113407135, -0.14739501476287842, -0.46906808018684387, 0.3376583755016327, -0.6430076360702515, -0.41320887207984924, -0.3907623887062073, -0.14870423078536987, -0.05859100818634033, 0.35336190462112427, 0.22623708844184875, 1.0772795677185059, 0.25169602036476135, -0.9156513214111328, -0.285663366317749, 0.2661636173725128, -0.6556693315505981, -0.13524788618087769, -0.9515963196754456, 0.5502907633781433, 0.3331618905067444, 0.15996016561985016, -0.7980988621711731, 0.08092109113931656, -0.3967377245426178, -0.7952189445495605, 0.48515215516090393, -0.11794707924127579, -0.2903274893760681, -0.4840022623538971, -0.20173275470733643, 0.2690166234970093, 0.9999601244926453, -0.7292587161064148, 0.4055548310279846, 0.9383009672164917, 0.04975545406341553, -0.13757814466953278, -0.8504427671432495, -0.4144420325756073, -0.028552185744047165, -0.48552069067955017, 0.5089614987373352, 0.021223416551947594, 0.06161098927259445, -0.21985064446926117, -0.4785007834434509, -0.12406472116708755, 0.08519803732633591, 0.42697200179100037, 0.20176643133163452, -0.11077119410037994, 0.10887091606855392, -0.06142924726009369, -0.127132847905159, -0.06069782376289368, -0.3143172860145569, 0.6007644534111023, -0.12298058718442917, -0.24434222280979156, -0.5521420240402222, 0.10431577265262604, 0.27013468742370605, -0.360798180103302, 0.21614767611026764, 0.6938914060592651, -0.26288291811943054, -0.11150214821100235, -0.8125508427619934, -0.16415098309516907, -0.4981098175048828, 0.4103088974952698, -0.39707812666893005, -0.8046842813491821, 0.14877209067344666, -0.051485128700733185, -0.11231310665607452, 0.5419485569000244, 0.55484539270401, -0.3440339267253876, 1.000455379486084, 0.5836296081542969, -0.037233833223581314, 0.7296667695045471, -0.4486684203147888, 0.0837843045592308, -0.9111707210540771, -0.08572129160165787, -0.7185018658638, -0.22663089632987976, -0.45040926337242126, -0.8352451920509338, 0.285749226808548, 0.12212780863046646, -0.2009141594171524, 0.3890693485736847, -0.5398745536804199, 0.18183670938014984, 0.8814274668693542, 0.05913689732551575, -0.1374666690826416, -0.08757118135690689, 0.1524113565683365, -0.048164643347263336, -0.9383471012115479, -0.31191250681877136, 0.8999965190887451, 0.3286484479904175, 0.9311284422874451, 0.06765929609537125, 0.5335792899131775, 0.2890795171260834, -0.6739975214004517, -0.7835206985473633, 0.4282187521457672, -0.4577466547489166, -0.28417181968688965, -0.34939777851104736, -0.29651349782943726, -0.8678315877914429, 0.2525147795677185, -0.3434845209121704, -0.6025578379631042, 0.21930375695228577, 0.5516858100891113, -0.4844730794429779, 0.10665328055620193, -0.8236514925956726, 0.5862798690795898, -0.1875648945569992, -0.19532464444637299, -0.5217097997665405, -0.6831084489822388, -0.020878013223409653, 0.1183777004480362, -0.041657451540231705, -0.06075037643313408, 0.24067078530788422, 1.2064735889434814, -0.5420541167259216, 0.41436639428138733, -0.31008419394493103, 0.48370081186294556, 0.4630546271800995, -0.23359572887420654, 0.686207115650177, -0.36278805136680603, -0.028542760759592056, 0.2862492799758911, 0.3377501368522644, -0.20431743562221527, -0.1588919311761856, 0.4802687168121338, -1.0459061861038208, -0.24451136589050293, -0.22677336633205414, -0.26877671480178833, -0.42662760615348816, -0.025292161852121353, 0.7450717687606812, 0.7936182618141174, -0.15450437366962433, 0.3959018588066101, 0.8371785283088684, -0.07417547702789307, 0.21523906290531158, 0.5925338864326477, 0.2996516525745392, -0.09483291953802109, 0.8619192242622375, 0.4192473888397217, 0.20433299243450165, 0.1034931093454361, 0.25435590744018555, -0.6073524951934814, -0.6180762648582458, -0.1806916892528534, -0.06752700358629227, -0.30200251936912537, -0.11418072134256363, -0.8721849918365479, -0.4817561209201813, -1.0296119451522827, -0.01570890098810196, -0.8792633414268494, -0.5929921865463257, -0.6711766719818115, 0.1013663038611412, 0.30922016501426697, 0.3240790367126465, -0.4974173307418823, 0.3538677990436554, -0.6422876119613647, 0.4137606918811798, 0.46305227279663086, 0.1392681896686554, 0.028269583359360695, -1.1497294902801514, -0.13348056375980377, -0.00559912109747529, 0.06835965067148209, -0.633586049079895, 0.32309120893478394, 0.4778674244880676, 0.749066174030304, 0.3771851062774658, 0.17800219357013702, 0.81708163022995, -0.5549383759498596, 0.6815134286880493, 0.3005658686161041, -1.0740618705749512, 0.827607274055481, 0.0718936175107956, 0.46785491704940796, 0.6704854369163513, -0.030343862250447273, -0.19493496417999268, -0.030490249395370483, -0.8136472702026367, -1.1953176259994507, 0.8520214557647705, 0.09996099770069122, -0.05508769303560257, 0.3869534432888031, 0.06439904868602753, -0.11265820264816284, 0.10159384459257126, -0.08966384083032608, -0.0749727189540863, -0.312615305185318, -0.024670371785759926, -0.26145118474960327, -0.7244898676872253, 0.14021019637584686, -0.5790777802467346, 1.0362558364868164, 0.12346207350492477, 0.37151625752449036, 0.17248165607452393, -0.39185646176338196, 0.09986285865306854, 0.27382129430770874, 0.2873029410839081, 0.23953163623809814, -0.16691671311855316, 0.2506420314311981, 0.3122531771659851, -0.4940539002418518, 0.02822432667016983, 0.3455410897731781, -0.04647870734333992, -0.08892523497343063, 0.35644006729125977, 1.2429611682891846, 0.3484675884246826, -0.554577112197876, 0.49714401364326477, -0.13597358763217926, -0.37823715806007385, -0.4146774113178253, 0.3953346908092499, 0.011769826523959637, 0.48292073607444763, 0.009664157405495644, 0.2845275104045868, 0.5761295557022095, -0.2851763367652893, 0.19886375963687897, 0.45466190576553345, -0.4757520258426666, -0.2821849286556244, 0.8255969882011414, 0.48431509733200073, -0.5354194641113281, 0.6276121139526367, 0.02988233044743538, -0.5438302159309387, 0.4195346236228943, 0.430751770734787, 0.6769655346870422, -0.37914159893989563, -0.189186230301857, 0.4281628429889679, 0.12486432492733002, -0.23442219197750092, 0.29104748368263245, -0.5904335975646973, -0.6266002058982849, -0.24794957041740417, -0.743022084236145, -0.26754578948020935, 0.2443632036447525, -0.9649419188499451, 0.19225956499576569, -0.2565113306045532, -0.31122350692749023, 0.2242034673690796, 0.2860367000102997, -0.8485622406005859, 0.2521308958530426, 0.29079097509384155, 1.0269657373428345, -0.6813327670097351, 1.1867245435714722, 0.7216697335243225, 0.014481863938272, -1.2863925695419312, -0.031869202852249146, 0.13932467997074127, -0.7155265212059021, 0.19083347916603088, 0.11855959892272949, -0.6124194264411926, 0.04114820435643196, -0.3165181279182434, -1.00597083568573, 0.9547401070594788, 0.04046570509672165, -0.8274711966514587, 0.17134389281272888, -0.40660715103149414, 0.47081857919692993, -0.05367546156048775, -0.03311833739280701, 0.8818549513816833, 0.014010890386998653, 0.47982367873191833, -0.9284818768501282, -0.35991427302360535, -0.44385215640068054, 0.31406185030937195, -0.08717330545186996, -0.5818272829055786, 0.6471903324127197, -0.48597452044487, -0.27168184518814087, 0.15782229602336884, 0.7613700032234192, 0.1831023097038269, 0.3413432240486145, 0.8124425411224365, 0.6200204491615295, 0.8466065526008606, 0.05872202664613724, 0.8084169626235962, -0.18075616657733917, 0.15690656006336212, 1.3509321212768555, -0.057598013430833817, 1.0591648817062378, 0.47057175636291504, -0.5179458260536194, -0.03045307658612728, 0.6536490321159363, 0.04128005728125572, 0.8803293108940125, 0.028161264955997467, -0.05734216049313545, -0.35911211371421814, 0.07061745971441269, -0.6823530197143555, 0.6217015981674194, 0.043010588735342026, -0.10174883157014847, 0.4134480953216553, -0.04911612719297409, -0.22047458589076996, -0.16604959964752197, -0.2918858826160431, 0.9461768269538879, 0.1699683964252472, -0.4186343252658844, 0.25064757466316223, -0.1581462174654007, 0.7716771364212036, -0.5959157943725586, 0.20082621276378632, 0.1148219108581543, 0.4372953176498413, -0.061999887228012085, -0.5198310017585754, 0.21088583767414093, 0.05644139647483826, -0.3432021737098694, -0.1017521396279335, 1.1655696630477905, -0.3941167891025543, -0.46287867426872253, 0.285347044467926, 0.22947165369987488, 0.34493306279182434, -0.07051316648721695, -0.5778087377548218, 0.1789814829826355, 0.1684798151254654, -0.3371281623840332, 0.3401787579059601, 0.10427817702293396, 0.34189918637275696, 0.280424028635025, 0.9085062742233276, 0.4163646399974823, 0.11497588455677032, 0.3790524899959564, 0.762217104434967, -0.3663219213485718, -1.013139009475708, -0.36938798427581787, 0.3416808545589447, -0.09944462031126022, -0.19559675455093384, 0.5159244537353516, 0.524304986000061, 0.8731686472892761, 0.11788776516914368, 0.5750320553779602, 0.09083247184753418, 1.1331859827041626, -0.6358816027641296, 0.8018171191215515, -0.7604061961174011, 0.1875501126050949, -0.33448517322540283, -0.4736485481262207, 0.17706377804279327, 0.9381511807441711, -0.16033563017845154, 0.10882255434989929, 0.23107489943504333, 0.7963047623634338, 0.017656899988651276, 0.12220919132232666, 0.37075692415237427, 0.14252594113349915, 0.1016378328204155, 0.1494818478822708, 0.7933031916618347, -0.4423990249633789, 0.5072422027587891, -0.34845495223999023, -0.2829795181751251, -0.2399892956018448, -0.37209799885749817, -0.5719573497772217, -0.6865421533584595, -0.384921669960022, -0.3715064823627472, 0.18281084299087524, 0.8486594557762146, 1.1215890645980835, -0.7455413341522217, -0.11183436959981918, 0.0739324763417244, -0.35040679574012756, -0.13356272876262665, -0.10945374518632889, 0.33450958132743835, -0.2400796264410019, -0.4331459403038025, 0.5884288549423218, 0.07200124859809875, 0.14521580934524536, 0.27020108699798584, -0.3438381850719452, -0.14329120516777039, 0.24355950951576233, 0.43340566754341125, 0.324518084526062, -0.522240400314331, -0.2232305407524109, -0.3334755301475525, 0.024877462536096573, -0.08905219286680222, 1.027748465538025, -0.7488470673561096, 0.47639548778533936, 0.5350022912025452, 0.4985610246658325, 0.9874897003173828, 0.047588080167770386, 0.4245705306529999, -0.5449404716491699, 0.5006361603736877, 0.3752620816230774, 0.28719744086265564, 0.16274449229240417, -0.1310998648405075, 0.4377801716327667, 0.10158229619264603, -0.8245307207107544, -0.8773689270019531, 0.05911046639084816, -1.0295472145080566, -0.35919809341430664, 1.3065392971038818, 0.013414950110018253, -0.12949030101299286, 0.1785052865743637, -0.14410901069641113, 0.690254271030426, -0.3668593764305115, 0.35180750489234924, 0.1972053349018097, -0.2504757344722748, -0.10045667737722397, -0.47702738642692566, 0.6486232876777649, 0.47652754187583923, -0.4211113154888153, -0.13892294466495514, 0.5401965975761414, 0.33580729365348816, -0.24551597237586975, 0.9603303670883179, 0.02045384608209133, 0.3172450661659241, 0.2547568678855896, 0.2800997793674469, -0.21970924735069275, -0.2804657518863678, -0.4634212851524353, -0.22807593643665314, 0.17786823213100433, -0.781690239906311 ]
kandinsky-community/kandinsky-2-1-prior
kandinsky-community
"2023-10-09T11:32:58Z"
18,832
10
diffusers
[ "diffusers", "kandinsky", "license:apache-2.0", "has_space", "diffusers:KandinskyPriorPipeline", "region:us" ]
null
"2023-05-24T09:51:57Z"
--- license: apache-2.0 tags: - kandinsky inference: false --- # Kandinsky 2.1 Kandinsky 2.1 inherits best practices from Dall-E 2 and Latent diffusion while introducing some new ideas. It uses the CLIP model as a text and image encoder, and diffusion image prior (mapping) between latent spaces of CLIP modalities. This approach increases the visual performance of the model and unveils new horizons in blending images and text-guided image manipulation. The Kandinsky model is created by [Arseniy Shakhmatov](https://github.com/cene555), [Anton Razzhigaev](https://github.com/razzant), [Aleksandr Nikolich](https://github.com/AlexWortega), [Igor Pavlov](https://github.com/boomb0om), [Andrey Kuznetsov](https://github.com/kuznetsoffandrey) and [Denis Dimitrov](https://github.com/denndimitrov) ## Usage Kandinsky 2.1 is available in diffusers! ```python pip install diffusers transformers ``` ### Text to image ```python from diffusers import AutoPipelineForText2Image import torch pipe = AutoPipelineForText2Image.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16) pipe.enable_model_cpu_offload() prompt = "A alien cheeseburger creature eating itself, claymation, cinematic, moody lighting" negative_prompt = "low quality, bad quality" image = pipe(prompt=prompt, negative_prompt=negative_prompt, prior_guidance_scale =1.0, height=768, width=768).images[0] image.save("cheeseburger_monster.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/cheeseburger.png) ### Text Guided Image-to-Image Generation ```python from diffusers import AutoPipelineForImage2Image import torch import requests from io import BytesIO from PIL import Image import os pipe = AutoPipelineForImage2Image.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16) pipe.enable_model_cpu_offload() prompt = "A fantasy landscape, Cinematic lighting" negative_prompt = "low quality, bad quality" url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg" response = requests.get(url) original_image = Image.open(BytesIO(response.content)).convert("RGB") original_image.thumbnail((768, 768)) image = pipe(prompt=prompt, image=original_image, strength=0.3).images[0] out.images[0].save("fantasy_land.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/img2img_fantasyland.png) ### Text Guided Inpainting Generation ```python from diffusers import AutoPipelineForInpainting from diffusers.utils import load_image import torch import numpy as np pipe = AutoPipelineForInpainting.from_pretrained("kandinsky-community/kandinsky-2-1-inpaint", torch_dtype=torch.float16) pipe.enable_model_cpu_offload() prompt = "a hat" negative_prompt = "low quality, bad quality" original_image = load_image( "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/cat.png" ) mask = np.zeros((768, 768), dtype=np.float32) # Let's mask out an area above the cat's head mask[:250, 250:-250] = 1 image = pipe(prompt=prompt, image=original_image, mask_image=mask).images[0] image.save("cat_with_hat.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/inpaint_cat_hat.png) 🚨🚨🚨 __Breaking change for Kandinsky Mask Inpainting__ 🚨🚨🚨 We introduced a breaking change for Kandinsky inpainting pipeline in the following pull request: https://github.com/huggingface/diffusers/pull/4207. Previously we accepted a mask format where black pixels represent the masked-out area. This is inconsistent with all other pipelines in diffusers. We have changed the mask format in Knaindsky and now using white pixels instead. Please upgrade your inpainting code to follow the above. If you are using Kandinsky Inpaint in production. You now need to change the mask to: ```python # For PIL input import PIL.ImageOps mask = PIL.ImageOps.invert(mask) # For PyTorch and Numpy input mask = 1 - mask ``` ### Interpolate ```python from diffusers import KandinskyPriorPipeline, KandinskyPipeline from diffusers.utils import load_image import PIL import torch pipe_prior = KandinskyPriorPipeline.from_pretrained( "kandinsky-community/kandinsky-2-1-prior", torch_dtype=torch.float16 ) pipe_prior.to("cuda") img1 = load_image( "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/cat.png" ) img2 = load_image( "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/kandinsky/starry_night.jpeg" ) # add all the conditions we want to interpolate, can be either text or image images_texts = ["a cat", img1, img2] # specify the weights for each condition in images_texts weights = [0.3, 0.3, 0.4] # We can leave the prompt empty prompt = "" prior_out = pipe_prior.interpolate(images_texts, weights) pipe = KandinskyPipeline.from_pretrained("kandinsky-community/kandinsky-2-1", torch_dtype=torch.float16) pipe.to("cuda") image = pipe(prompt, **prior_out, height=768, width=768).images[0] image.save("starry_cat.png") ``` ![img](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/kandinsky-docs/starry_cat.png) ## Model Architecture ### Overview Kandinsky 2.1 is a text-conditional diffusion model based on unCLIP and latent diffusion, composed of a transformer-based image prior model, a unet diffusion model, and a decoder. The model architectures are illustrated in the figure below - the chart on the left describes the process to train the image prior model, the figure in the center is the text-to-image generation process, and the figure on the right is image interpolation. <p float="left"> <img src="https://raw.githubusercontent.com/ai-forever/Kandinsky-2/main/content/kandinsky21.png"/> </p> Specifically, the image prior model was trained on CLIP text and image embeddings generated with a pre-trained [mCLIP model](https://huggingface.co/M-CLIP/XLM-Roberta-Large-Vit-L-14). The trained image prior model is then used to generate mCLIP image embeddings for input text prompts. Both the input text prompts and its mCLIP image embeddings are used in the diffusion process. A [MoVQGAN](https://openreview.net/forum?id=Qb-AoSw4Jnm) model acts as the final block of the model, which decodes the latent representation into an actual image. ### Details The image prior training of the model was performed on the [LAION Improved Aesthetics dataset](https://huggingface.co/datasets/bhargavsdesai/laion_improved_aesthetics_6.5plus_with_images), and then fine-tuning was performed on the [LAION HighRes data](https://huggingface.co/datasets/laion/laion-high-resolution). The main Text2Image diffusion model was trained on the basis of 170M text-image pairs from the [LAION HighRes dataset](https://huggingface.co/datasets/laion/laion-high-resolution) (an important condition was the presence of images with a resolution of at least 768x768). The use of 170M pairs is due to the fact that we kept the UNet diffusion block from Kandinsky 2.0, which allowed us not to train it from scratch. Further, at the stage of fine-tuning, a dataset of 2M very high-quality high-resolution images with descriptions (COYO, anime, landmarks_russia, and a number of others) was used separately collected from open sources. ### Evaluation We quantitatively measure the performance of Kandinsky 2.1 on the COCO_30k dataset, in zero-shot mode. The table below presents FID. FID metric values ​​for generative models on COCO_30k | | FID (30k)| |:------|----:| | eDiff-I (2022) | 6.95 | | Image (2022) | 7.27 | | Kandinsky 2.1 (2023) | 8.21| | Stable Diffusion 2.1 (2022) | 8.59 | | GigaGAN, 512x512 (2023) | 9.09 | | DALL-E 2 (2022) | 10.39 | | GLIDE (2022) | 12.24 | | Kandinsky 1.0 (2022) | 15.40 | | DALL-E (2021) | 17.89 | | Kandinsky 2.0 (2022) | 20.00 | | GLIGEN (2022) | 21.04 | For more information, please refer to the upcoming technical report. ## BibTex If you find this repository useful in your research, please cite: ``` @misc{kandinsky 2.1, title = {kandinsky 2.1}, author = {Arseniy Shakhmatov, Anton Razzhigaev, Aleksandr Nikolich, Vladimir Arkhipkin, Igor Pavlov, Andrey Kuznetsov, Denis Dimitrov}, year = {2023}, howpublished = {}, } ```
[ -0.4133011996746063, -0.6843597292900085, 0.43554553389549255, 0.310998797416687, -0.2752651572227478, -0.004798073321580887, -0.03582192212343216, -0.32901421189308167, 0.10925526171922684, 0.44545114040374756, -0.3735731244087219, -0.4373829662799835, -0.5375247597694397, -0.16902050375938416, -0.11049719154834747, 0.9336488246917725, -0.27864545583724976, -0.022520290687680244, -0.2745116651058197, 0.018182717263698578, -0.1357012540102005, 0.0038062348030507565, -0.7015013098716736, -0.33162158727645874, 0.24039015173912048, 0.42636922001838684, 0.6461273431777954, 0.26763734221458435, 0.46056246757507324, 0.3118950128555298, -0.05225291848182678, -0.04889695718884468, -0.5879395604133606, -0.04005753621459007, 0.23128867149353027, -0.4091492295265198, -0.202210932970047, -0.02660079300403595, 0.6859224438667297, 0.03909461572766304, 0.0025696936063468456, -0.09420706331729889, 0.20017386972904205, 0.7799952626228333, -0.4036492705345154, -0.1195380687713623, -0.20712295174598694, 0.1597757637500763, -0.18878325819969177, -0.08486797660589218, -0.26458948850631714, -0.2540932595729828, 0.3110073208808899, -0.939954936504364, 0.3091248571872711, -0.18395452201366425, 1.2704774141311646, 0.0707460567355156, -0.28431448340415955, -0.24481531977653503, -0.33428049087524414, 0.8836456537246704, -0.6250552535057068, 0.04322439059615135, 0.2680986523628235, 0.20806601643562317, -0.15481820702552795, -1.0038495063781738, -0.5386550426483154, -0.12943914532661438, -0.27535536885261536, 0.44434142112731934, -0.20331458747386932, 0.0569174699485302, 0.28455764055252075, 0.30357372760772705, -0.6477935910224915, -0.2609153389930725, -0.5901668667793274, -0.17323754727840424, 0.7805095314979553, -0.016920629888772964, 0.44111284613609314, -0.2264452427625656, -0.4978509545326233, -0.24774475395679474, -0.354801207780838, 0.05057808384299278, 0.31168898940086365, -0.3884583115577698, -0.5302628874778748, 0.46874627470970154, -0.11634398996829987, 0.5578972697257996, 0.2883487045764923, -0.2782641649246216, 0.29296690225601196, -0.2083631157875061, -0.3605886399745941, -0.3446766436100006, 1.0732333660125732, 0.51848965883255, 0.17086082696914673, 0.21071404218673706, 0.0032907298300415277, -0.23002997040748596, -0.18460416793823242, -1.2338182926177979, -0.5977310538291931, 0.27575281262397766, -0.5117330551147461, -0.43980905413627625, -0.16529890894889832, -0.9703709483146667, -0.12376463413238525, 0.0263600405305624, 0.6579167246818542, -0.6149967908859253, -0.47239214181900024, 0.008112055249512196, -0.2761695981025696, 0.2107565850019455, 0.4613907039165497, -0.6309015154838562, 0.17307204008102417, 0.1296314001083374, 1.1851177215576172, 0.06005503982305527, -0.12143825739622116, -0.1619158834218979, -0.1536177694797516, -0.3625667989253998, 0.714106559753418, -0.4139614999294281, -0.3749423623085022, -0.2015291303396225, 0.20854777097702026, 0.053836699575185776, -0.5642914175987244, 0.4500983953475952, -0.3912183940410614, 0.3382122814655304, -0.1259896159172058, -0.42570602893829346, -0.2782643139362335, -0.05458270013332367, -0.3709285259246826, 1.0591140985488892, 0.35392096638679504, -0.8694143295288086, 0.228261336684227, -0.6763978004455566, -0.042932480573654175, -0.10812228173017502, 0.06395944952964783, -0.7724700570106506, -0.15690220892429352, 0.13840126991271973, 0.5937772393226624, -0.22510123252868652, 0.143419548869133, -0.36743301153182983, -0.19518426060676575, 0.2584021985530853, -0.13167399168014526, 1.0551559925079346, 0.34301894903182983, -0.3230072855949402, 0.021281350404024124, -0.4941594898700714, -0.047284360975027084, 0.18237562477588654, -0.09563693404197693, -0.11486678570508957, -0.5264067053794861, 0.3452492654323578, 0.43116283416748047, 0.061540067195892334, -0.6259083151817322, 0.12076672911643982, -0.3601214587688446, 0.4399409294128418, 0.6672813892364502, 0.19704504311084747, 0.5662031173706055, -0.4605022072792053, 0.6638087630271912, 0.32180899381637573, 0.11999275535345078, -0.33340346813201904, -0.6777635216712952, -0.993794322013855, -0.4769454002380371, 0.09190727025270462, 0.38702088594436646, -0.9201469421386719, 0.05186937749385834, 0.07128168642520905, -0.642631471157074, -0.36031651496887207, -0.024302074685692787, 0.36391985416412354, 0.5658536553382874, 0.285271555185318, -0.39069825410842896, -0.3250526189804077, -0.9307757616043091, 0.025152308866381645, 0.11885025352239609, -0.01447775587439537, 0.20563524961471558, 0.5722688436508179, -0.1012166440486908, 0.8366700410842896, -0.5679079294204712, -0.25943028926849365, 0.2308582067489624, 0.18278560042381287, 0.2734266221523285, 0.8367776274681091, 0.5935995578765869, -0.820862889289856, -1.1461865901947021, 0.07296981662511826, -0.8651745319366455, 0.04629329591989517, -0.11748066544532776, -0.4502451419830322, 0.3682883381843567, 0.5077876448631287, -0.7273371815681458, 0.5771695971488953, 0.5213778018951416, -0.4285827577114105, 0.6112276911735535, -0.2384272664785385, 0.24776016175746918, -1.1145761013031006, 0.2553066611289978, 0.1905801147222519, -0.44207778573036194, -0.7594520449638367, 0.06918565928936005, -0.006377062294632196, -0.17691074311733246, -0.5574254989624023, 0.7717317342758179, -0.6655278205871582, 0.29388779401779175, -0.18070301413536072, -0.10479655116796494, 0.12212963402271271, 0.5818548202514648, 0.17877739667892456, 0.5510046482086182, 0.9604248404502869, -0.4240293800830841, 0.4522269666194916, 0.21232344210147858, -0.42176589369773865, 0.6946859359741211, -0.8367655277252197, 0.3467327356338501, -0.2808726131916046, 0.2662271559238434, -1.1879737377166748, -0.2547014653682709, 0.6635271906852722, -0.5671842098236084, 0.42701277136802673, -0.2830619215965271, -0.43528667092323303, -0.1710396558046341, -0.3204174339771271, 0.5681951642036438, 0.9462177753448486, -0.39241674542427063, 0.44820231199264526, 0.049441106617450714, 0.046152010560035706, -0.5141189694404602, -0.7763398289680481, -0.06183082237839699, -0.43922722339630127, -0.7947688102722168, 0.4391595125198364, -0.3358978033065796, -0.11762210726737976, 0.13603022694587708, 0.28669309616088867, -0.15955446660518646, -0.2878240644931793, 0.2621444761753082, 0.14036720991134644, -0.16390672326087952, -0.0871223658323288, 0.13127785921096802, -0.2013171762228012, -0.07908886671066284, -0.22575250267982483, 0.48099467158317566, -0.0322587713599205, 0.015414480119943619, -0.9290814399719238, 0.18562817573547363, 0.47928622364997864, 0.23991627991199493, 0.7221860289573669, 0.9991482496261597, -0.2951609194278717, 0.18344517052173615, -0.4717872142791748, -0.09153901785612106, -0.5118445158004761, 0.21705426275730133, -0.43445566296577454, -0.515933096408844, 0.5377188324928284, 0.10389212518930435, -0.04580330476164818, 0.7084699273109436, 0.5479795336723328, -0.33831652998924255, 0.8549602627754211, 0.5171456336975098, 0.3403356671333313, 0.6314972639083862, -0.9529219269752502, -0.24184615910053253, -1.030021071434021, -0.33204880356788635, -0.05959126353263855, -0.38250550627708435, -0.36158430576324463, -0.6886286735534668, 0.5362969040870667, 0.45931702852249146, -0.11185949295759201, 0.16240404546260834, -0.5634530782699585, 0.4593321979045868, 0.2902511656284332, 0.28890547156333923, 0.04592360183596611, 0.33256614208221436, -0.19581636786460876, -0.17806051671504974, -0.5357650518417358, -0.30502673983573914, 1.0775068998336792, 0.3913707733154297, 0.7325583696365356, -0.015088862739503384, 0.6644043922424316, -0.009838493540883064, 0.40856772661209106, -0.46631765365600586, 0.42053738236427307, -0.01999051868915558, -0.48614802956581116, -0.18716730177402496, -0.22006726264953613, -0.9010864496231079, 0.30591538548469543, -0.19100455939769745, -0.5702450275421143, 0.40393224358558655, 0.3113935887813568, -0.08762131631374359, 0.21183735132217407, -0.795167088508606, 0.7987309694290161, 0.19256308674812317, -0.6332476139068604, -0.21431845426559448, -0.6486220359802246, 0.4431346356868744, 0.13955596089363098, -0.09329447895288467, -0.129024937748909, -0.05562908574938774, 0.7939745783805847, -0.49368926882743835, 0.6240133047103882, -0.39999473094940186, -0.02432192862033844, 0.4234858751296997, 0.0037512299604713917, 0.3464643359184265, 0.2033911943435669, -0.14000482857227325, 0.16131438314914703, 0.2227885127067566, -0.6622602343559265, -0.5833337903022766, 0.7489278316497803, -0.7262415289878845, -0.29092150926589966, -0.529248833656311, -0.3527033030986786, 0.36113235354423523, 0.08296140283346176, 0.8962042331695557, 0.5757753252983093, -0.049422405660152435, 0.12864436209201813, 0.5764535665512085, -0.2871568202972412, 0.5356842875480652, 0.10699280351400375, -0.41000014543533325, -0.6238216161727905, 0.8293676376342773, 0.12864843010902405, 0.6285302042961121, 0.2638101875782013, 0.31432339549064636, -0.19039185345172882, -0.26305249333381653, -0.4979022741317749, 0.5106659531593323, -0.7755277752876282, -0.3820018470287323, -0.7015224695205688, -0.3365080654621124, -0.260092556476593, -0.3894498944282532, -0.2173091024160385, -0.30594757199287415, -0.8157884478569031, 0.45895206928253174, 0.5748578906059265, 0.5046045780181885, -0.2057153433561325, 0.35106754302978516, -0.28842833638191223, 0.24348615109920502, 0.29925596714019775, 0.26285994052886963, 0.07485222816467285, -0.696564257144928, -0.3952772915363312, 0.12449350953102112, -0.5787473320960999, -0.6580288410186768, 0.5146431922912598, 0.2940281629562378, 0.2458466738462448, 0.35567808151245117, -0.2308029681444168, 0.7352907657623291, -0.15627962350845337, 0.7303141951560974, 0.37618109583854675, -0.800719141960144, 0.5469706058502197, -0.41599181294441223, 0.4350890815258026, 0.18001969158649445, 0.4568771719932556, -0.6242306232452393, -0.3979390561580658, -0.873504102230072, -0.5452668070793152, 0.8264150619506836, 0.5230908989906311, -0.014410178177058697, 0.39228057861328125, 0.5677742958068848, 0.044077835977077484, 0.02059677243232727, -0.8509749174118042, -0.2989656329154968, -0.40202632546424866, -0.2045060396194458, -0.20364896953105927, -0.22125300765037537, -0.10433082282543182, -0.5400819182395935, 0.8238852024078369, -0.09916401654481888, 0.5944812893867493, 0.6376265287399292, -0.22730587422847748, -0.286529541015625, -0.2990550696849823, 0.6505362391471863, 0.5447563529014587, -0.21882010996341705, -0.12513405084609985, -0.0022251512855291367, -0.5607016086578369, 0.23621802031993866, -0.020294496789574623, -0.25061506032943726, 0.13942646980285645, 0.2921401560306549, 0.8564596772193909, -0.3014143109321594, -0.385680228471756, 0.5918164849281311, -0.11926024407148361, -0.4092652201652527, -0.40368232131004333, 0.017407698556780815, 0.08158595860004425, 0.31234830617904663, 0.2634623646736145, 0.37315109372138977, 0.2268766313791275, -0.23113755881786346, 0.11431974172592163, 0.4937380254268646, -0.3805077373981476, -0.44395315647125244, 0.5050376057624817, -0.07444515824317932, -0.1765005737543106, 0.40411657094955444, -0.19713592529296875, -0.3722347021102905, 0.8065193891525269, 0.5665844082832336, 0.9569166898727417, -0.21016858518123627, 0.49724552035331726, 0.7620015740394592, 0.10841753333806992, 0.06618122011423111, 0.151151642203331, 0.011541375890374184, -0.5653345584869385, -0.005809365306049585, -0.4546855092048645, 0.05250539258122444, 0.18223103880882263, -0.28408437967300415, 0.5473743081092834, -0.5173901915550232, 0.026258237659931183, -0.09539593011140823, 0.07329753041267395, -0.7474759817123413, 0.1983506977558136, -0.15583489835262299, 0.6602261662483215, -0.8742948174476624, 0.7800880074501038, 0.4903571605682373, -0.38124486804008484, -0.5708047151565552, 0.13329939544200897, -0.08156681805849075, -0.6504446268081665, 0.6181190013885498, 0.21594847738742828, -0.08273029327392578, 0.23328834772109985, -0.765897274017334, -0.9378674626350403, 1.281624436378479, 0.4271160066127777, -0.20611326396465302, 0.2725808620452881, -0.24260152876377106, 0.6062119603157043, -0.3833617568016052, 0.5632339715957642, 0.33782562613487244, 0.2686454951763153, 0.33533811569213867, -0.6513910889625549, 0.1107938140630722, -0.3677555322647095, 0.3705447316169739, 0.11989277601242065, -1.0072599649429321, 0.9320530295372009, -0.17677143216133118, -0.4850938320159912, 0.3699173033237457, 0.6860983371734619, 0.1577463150024414, 0.19116896390914917, 0.47898662090301514, 0.7806419730186462, 0.3467501997947693, 0.0406951978802681, 0.9234192967414856, 0.07810255885124207, 0.6651484370231628, 0.4306652545928955, 0.28661617636680603, 0.5395215153694153, 0.3567050099372864, -0.22433364391326904, 0.7823677659034729, 0.8017683029174805, 0.03038841485977173, 0.6844052672386169, 0.18384112417697906, -0.4109916687011719, 0.173939049243927, -0.06792009621858597, -0.4964267611503601, 0.1572379320859909, 0.2749349772930145, -0.38069722056388855, -0.04349706321954727, 0.347958505153656, 0.16496847569942474, -0.2317209541797638, 0.0702388659119606, 0.6357055306434631, 0.06880810111761093, -0.5195558667182922, 1.0048121213912964, -0.022867005318403244, 0.9586084485054016, -0.5456344485282898, -0.21504834294319153, -0.11311600357294083, 0.0022238853853195906, -0.3566102981567383, -0.9902154803276062, 0.3052852153778076, -0.24022769927978516, 0.05518874153494835, -0.22549478709697723, 0.7520760297775269, -0.653545081615448, -0.5424675345420837, 0.2686356008052826, -0.19527891278266907, 0.5611371994018555, 0.13911797106266022, -0.9804232120513916, 0.21027040481567383, 0.12575091421604156, -0.44626495242118835, 0.13222841918468475, 0.20898255705833435, 0.42019298672676086, 0.5042238235473633, 0.5496184825897217, -0.06246228888630867, 0.027730586007237434, -0.36604565382003784, 0.7585182189941406, -0.35036700963974, -0.3942159116268158, -0.8087841272354126, 0.8808910846710205, -0.2279149889945984, -0.4930076003074646, 0.6108087301254272, 0.5428320169448853, 0.6630436182022095, -0.22251631319522858, 0.6010808348655701, -0.25191718339920044, 0.1764960139989853, -0.8584703803062439, 0.812687337398529, -0.8714859485626221, -0.21413417160511017, -0.5746987462043762, -0.8832460641860962, -0.16106489300727844, 0.7827715277671814, -0.06178954243659973, 0.21585798263549805, 0.6770498156547546, 1.1172306537628174, -0.2539372146129608, -0.5072994232177734, 0.28187358379364014, 0.262155681848526, 0.33473488688468933, 0.5797089338302612, 0.773977518081665, -0.8648417592048645, 0.38901248574256897, -0.6740701794624329, -0.2738250195980072, -0.20149406790733337, -0.8425973653793335, -0.8029686212539673, -1.0655248165130615, -0.6099234819412231, -0.6234189867973328, -0.20091953873634338, 0.5318305492401123, 1.1283953189849854, -0.5123158693313599, -0.2723686993122101, -0.25812894105911255, 0.027105428278446198, 0.0031715522054582834, -0.30674344301223755, 0.33160844445228577, 0.06066420301795006, -0.872008740901947, -0.18451225757598877, 0.3316453993320465, 0.395718514919281, -0.3301165699958801, -0.32559671998023987, -0.4230973720550537, -0.15529781579971313, 0.38704439997673035, 0.3360409438610077, -0.823646605014801, -0.08165784925222397, -0.2793335020542145, -0.008535800501704216, 0.31034982204437256, 0.47304314374923706, -0.674446165561676, 0.7704612016677856, 0.6394314169883728, 0.036135610193014145, 1.034796118736267, -0.25474587082862854, 0.25907233357429504, -0.6176053285598755, 0.47063952684402466, 0.0357416532933712, 0.11104443669319153, 0.4106684923171997, -0.5738315582275391, 0.3671405613422394, 0.4599166214466095, -0.8316367268562317, -0.716041088104248, 0.10445898026227951, -1.0471571683883667, -0.13074150681495667, 1.0402132272720337, -0.20084992051124573, -0.22417807579040527, 0.06350228190422058, -0.5099200010299683, 0.1970023363828659, -0.4178785979747772, 0.3939240574836731, 0.7756342887878418, -0.24277402460575104, -0.7464251518249512, -0.46170395612716675, 0.7790757417678833, 0.37649184465408325, -0.709094762802124, -0.38049954175949097, 0.3506131172180176, 0.6356232166290283, 0.29670870304107666, 1.084249496459961, -0.06262291967868805, 0.2556750178337097, 0.04814325273036957, 0.0991591066122055, 0.2461792230606079, -0.18949443101882935, -0.5438783764839172, -0.20708027482032776, -0.15433897078037262, -0.21046879887580872 ]
ArthurZ/flax-tiny-random-bert-sharded
ArthurZ
"2022-11-14T06:24:51Z"
18,788
0
transformers
[ "transformers", "jax", "bert", "feature-extraction", "flax", "endpoints_compatible", "region:us" ]
feature-extraction
"2022-06-17T16:08:40Z"
--- tags: - flax --- # Model Card for flax-tiny-random-bert-sharded # Model Details ## Model Description This model is used to check that the sharding of a flax_model works properly. See [`test_checkpoint_sharding_from_hub`](https://github.com/huggingface/transformers/blob/main/tests/test_modeling_flax_common.py#L1049). # Uses The model is not designed to be used and serves a testing purpose. ### Software - Transformers 4.21.0.dev0 - TensorFlow 2.9.0 - Datasets 2.2.2 - Tokenizers 0.12.1
[ -0.7271842360496521, -1.1648099422454834, 0.13035331666469574, 0.16109983623027802, -0.4358702003955841, -0.4166179597377777, 0.42583736777305603, -0.2791401445865631, -0.06559416651725769, 0.468022882938385, -0.6765860319137573, -0.14025500416755676, -0.33265331387519836, -0.17092180252075195, -1.0622776746749878, 1.2942230701446533, -0.2660435438156128, 0.3336021602153778, -0.4086715579032898, -0.07052098959684372, -0.3903326094150543, -0.4120960831642151, -0.9290640950202942, -0.6337711215019226, 0.40985482931137085, 0.37252408266067505, 1.0565452575683594, 0.3190079927444458, 0.5722647309303284, 0.31789904832839966, -0.42478376626968384, -0.09778948128223419, -0.48521026968955994, -0.28259873390197754, 0.013040989637374878, -0.5406880378723145, -0.7021934390068054, 0.02870406024158001, 0.7359068393707275, 0.6615782380104065, 0.1418747752904892, 0.26694560050964355, -0.21004220843315125, 0.20622923970222473, -0.3042290508747101, 0.21490509808063507, -0.33755752444267273, 0.46402686834335327, -0.4440304636955261, 0.08443013578653336, -0.10969430953264236, -0.27967435121536255, 0.060992807149887085, -0.32948827743530273, 0.7160646319389343, 0.3795503079891205, 1.3790500164031982, -0.0034754464868456125, -0.405908465385437, 0.05988532677292824, -0.9726137518882751, 0.808586061000824, -0.4384060502052307, 0.4057551622390747, 0.5252590775489807, 0.5755581259727478, 0.0331399030983448, -0.9890010952949524, -0.6143054366111755, 0.052419353276491165, -0.24784937500953674, -0.26864928007125854, -0.05418718233704567, 0.23953884840011597, 0.48497241735458374, 1.015474557876587, -0.26499494910240173, 0.016376657411456108, -0.7398487329483032, -0.48871007561683655, 0.3648722171783447, 0.26064279675483704, 0.17728255689144135, -0.041759103536605835, -0.8940110206604004, -0.4598369896411896, -0.31445804238319397, -0.03105643391609192, 0.3231540024280548, 0.16027142107486725, -0.47130903601646423, 0.45207417011260986, 0.12372458726167679, 0.7759459018707275, 0.053334370255470276, 0.12299739569425583, 0.24847494065761566, -0.17359749972820282, -0.5269430875778198, -0.277822881937027, 0.515847384929657, 0.13277216255664825, -0.12319323420524597, -0.15951408445835114, -0.7527036666870117, -0.4253206253051758, 0.4735867381095886, -1.0502574443817139, -0.01846151612699032, 0.5160151720046997, -0.684660792350769, -0.9580514430999756, 0.08034192770719528, -0.6415767073631287, -0.1321549266576767, 0.1323336958885193, 0.7732803821563721, -0.6224493980407715, -0.3207254111766815, -0.16693264245986938, -0.48132964968681335, 0.5107735395431519, 0.048222821205854416, -0.8276206851005554, 0.25547492504119873, 0.9267866611480713, 0.7750781178474426, 0.010363372042775154, -0.5639204382896423, -0.10632026940584183, -0.15502454340457916, -0.4715433120727539, 0.6965343356132507, 0.04640597477555275, -0.44923827052116394, 0.10834559798240662, 0.23279224336147308, -0.09053732454776764, -0.3156706988811493, 1.0194053649902344, -0.7128256559371948, 0.056480396538972855, -0.7463662028312683, -0.6273850202560425, -0.416724294424057, 0.3385559022426605, -0.9553121328353882, 1.1421208381652832, 0.5021981596946716, -0.6856496334075928, 0.5936861634254456, -0.7408105134963989, -0.2525500953197479, 0.26554054021835327, -0.020718570798635483, -0.7952812314033508, 0.29591605067253113, -0.24117061495780945, 0.25674036145210266, -0.06819914281368256, 0.10107210278511047, -0.4859699308872223, -0.7340974807739258, 0.343421071767807, -0.21748670935630798, 0.9806637167930603, 0.7840149402618408, -0.09169188141822815, 0.2075730264186859, -0.3645649552345276, -0.09776144474744797, 0.3745991289615631, 0.02221054583787918, 0.1200450211763382, -0.09075447171926498, 0.5558177828788757, -0.07291606068611145, 0.1718030571937561, -0.494562029838562, -0.03348669409751892, -0.10129352658987045, 0.280050665140152, 0.8252109289169312, 0.11504907160997391, 0.2574063539505005, -1.1173713207244873, 0.32189851999282837, 0.19497868418693542, 0.2979852259159088, 0.3206278085708618, -0.6757269501686096, -1.2556736469268799, -0.3395964801311493, 0.6559293270111084, 0.2825828790664673, -0.43438875675201416, 0.5740426182746887, 0.09516697376966476, -0.8142854571342468, -0.25831037759780884, 0.061886534094810486, 0.2853440046310425, 0.1708790808916092, 0.04095914587378502, -0.2571166157722473, -0.5244950652122498, -0.9998640418052673, 0.08798085898160934, -0.05489625781774521, 0.12929944694042206, 0.19730432331562042, 0.7918434143066406, -0.5169686675071716, 0.891823410987854, -0.23541606962680817, -0.46641549468040466, -0.3808249831199646, 0.2520494759082794, 0.3382347524166107, 0.8407298922538757, 0.9852031469345093, -0.7568812370300293, 0.1602475345134735, -0.3645143508911133, -0.6783766150474548, 0.23387759923934937, -0.17277678847312927, -0.4487653374671936, -0.16681057214736938, 0.2207033634185791, -0.5650143623352051, 0.4641571640968323, 0.6115802526473999, -0.49692800641059875, 0.4608997404575348, -0.301203191280365, 0.12034674733877182, -0.821696400642395, 0.2784060835838318, -0.4509831666946411, -0.4883059859275818, -0.5388287901878357, 0.8591430187225342, -0.047458164393901825, -0.40640345215797424, -0.58669114112854, 0.6467703580856323, -0.03393923491239548, -0.179894357919693, -0.36320918798446655, -0.4319954514503479, 0.04157278686761856, 0.2206653654575348, -0.08225244283676147, 0.7347779273986816, 0.33797505497932434, -0.7526945471763611, 0.38997966051101685, 0.42040377855300903, -0.1116987094283104, 0.8544219732284546, -0.7812440991401672, 0.3196370601654053, -0.02618519589304924, 0.13711115717887878, -0.6681798696517944, -0.3400742709636688, -0.07076335698366165, -0.1718846708536148, 0.34488266706466675, -0.05130202695727348, -0.7011455297470093, -0.7528315782546997, -0.11908608675003052, 0.7147333025932312, 0.6570711731910706, -0.7711841464042664, 0.8253391981124878, 0.28773853182792664, 0.5517188906669617, 0.006654084660112858, -0.9033316969871521, -0.6106182336807251, -0.2250787317752838, -0.9474392533302307, 0.21991853415966034, -0.20044538378715515, -0.21700122952461243, -0.288604736328125, -0.041028931736946106, -0.5075880885124207, 0.28311610221862793, 0.4963720738887787, 0.1010732501745224, -0.11796842515468597, 0.1236175075173378, 0.012584823183715343, -0.28015395998954773, 0.12579531967639923, -0.0679687038064003, 0.767479419708252, -0.480772465467453, -0.4099719822406769, -0.2590756416320801, 0.19580896198749542, 0.3959161639213562, -0.08306873589754105, 0.889451801776886, 1.2167549133300781, -0.8227014541625977, -0.2812594771385193, -0.7044309377670288, -0.5371425151824951, -0.5512855052947998, 0.1514558494091034, -0.38240209221839905, -0.6402906775474548, 0.874562680721283, 0.40760475397109985, 0.1693679541349411, 0.7392352223396301, 0.557203471660614, -0.23851265013217926, 0.6968380808830261, 0.478910893201828, 0.0904206782579422, 0.4422553777694702, -0.5293266773223877, 0.14426009356975555, -0.5900422930717468, -0.07796838134527206, -0.6138749122619629, -0.5298824906349182, -0.16837583482265472, -0.506230890750885, 0.1424034684896469, 0.4275364577770233, -0.2490433007478714, 0.42644500732421875, -0.35550475120544434, 0.3559117019176483, 0.6793152093887329, 0.0963919386267662, -0.05448506027460098, -0.00893780030310154, -0.36331382393836975, 0.0359610840678215, -0.4596886932849884, -0.2917531728744507, 0.8165835738182068, 0.6024166345596313, 0.6202535629272461, -0.12658905982971191, 0.6526365280151367, 0.5611882209777832, 0.21289369463920593, -0.5499101281166077, 0.5000150799751282, 0.15653765201568604, -1.4657092094421387, 0.023734014481306076, -0.25114989280700684, -0.895650327205658, 0.15270383656024933, -0.26895517110824585, -0.6179468631744385, 0.14346659183502197, 0.46447086334228516, -0.36966511607170105, 0.7916736602783203, -0.6110743284225464, 1.1995192766189575, -0.2895987927913666, 0.030797204002738, -0.17720896005630493, 0.058577440679073334, 0.5346002578735352, -0.0762658566236496, 0.17843849956989288, 0.12949946522712708, 0.4126960039138794, 1.0031110048294067, -0.9923171997070312, 0.7812325954437256, -0.22341682016849518, 0.22722867131233215, 0.635223925113678, 0.18820032477378845, 0.5909376740455627, 0.014488475397229195, 0.07335890829563141, 0.4490993320941925, 0.5288094878196716, -0.63498854637146, 0.21123476326465607, 0.8958579897880554, -1.115746259689331, -0.11842253059148788, -0.643509030342102, -0.6330140233039856, 0.04552101343870163, 0.5518632531166077, 0.33296266198158264, 0.3616858422756195, -0.32192134857177734, 0.3596879243850708, 0.8019565939903259, 0.027944661676883698, 0.35124844312667847, 0.3450286090373993, -0.642991840839386, -0.28408658504486084, 0.9478690028190613, -0.14691781997680664, 0.23143024742603302, 0.1120651364326477, 0.36743202805519104, 0.06104230135679245, -0.5443817973136902, -0.2630406618118286, 0.15394629538059235, -0.8329662680625916, -0.3145366311073303, -0.531329870223999, -0.6110319495201111, -0.27517464756965637, -0.3166554272174835, -0.5718753933906555, -0.28532105684280396, -0.29840895533561707, -0.3416326940059662, 0.5117178559303284, 0.6449493169784546, -0.19693012535572052, 0.5226637721061707, -0.7091304659843445, 0.12219378352165222, 0.5515804290771484, 0.5493508577346802, 0.02470347471535206, -0.44490209221839905, -0.06446041166782379, 0.1923832893371582, -0.4659508764743805, -0.7334128022193909, 0.03864458575844765, 0.06588015705347061, 0.6100751161575317, 0.7893407344818115, -0.11349803954362869, 0.6770938038825989, 0.0538361519575119, 0.8290640711784363, -0.2516855299472809, -0.9485880136489868, 0.2064281702041626, -0.435840368270874, 0.19052428007125854, 0.528083324432373, 0.19274109601974487, -0.4643605351448059, -0.1643763780593872, -0.9560521841049194, -0.6601436734199524, 0.699546754360199, 0.43107789754867554, 0.07222307473421097, 0.05075804144144058, 0.18843689560890198, 0.0780862495303154, 0.12276852130889893, -0.6462442874908447, -0.4323089122772217, -0.10204467177391052, 0.19068381190299988, 0.10927630960941315, -0.5533885955810547, -0.30025798082351685, -0.2832235097885132, 0.7407096028327942, 0.13228125870227814, 0.8470489978790283, 0.027147570624947548, -0.19014039635658264, -0.4967805743217468, -0.2417944371700287, 0.6390165686607361, 0.21874938905239105, -0.8261181712150574, -0.08779985457658768, 0.5357797145843506, -0.47228965163230896, -0.4360799789428711, 0.29530614614486694, -0.5841450691223145, 0.05888066068291664, 0.20724588632583618, 0.7057242393493652, 0.48128291964530945, -0.1811939924955368, 0.6138609647750854, -0.20746195316314697, -0.34496164321899414, -0.6854394674301147, 0.2504693865776062, -0.06631070375442505, 0.10459175705909729, 0.008923730812966824, 0.5317167639732361, 0.0428718738257885, -0.21352656185626984, 0.3329378068447113, 0.6143894195556641, -0.8372684717178345, -0.24152085185050964, 1.0307649374008179, 0.24399703741073608, -0.5098135471343994, 0.8640762567520142, -0.37121230363845825, -0.37226787209510803, 0.7221426367759705, 0.4363245964050293, 0.8874890208244324, 0.19929055869579315, 0.016414472833275795, 0.484496533870697, 0.38966432213783264, -0.03812127187848091, 0.4321732819080353, -0.20451657474040985, -0.762552797794342, 0.15643662214279175, -0.9565680027008057, -0.2181570827960968, 0.09178885072469711, -0.8737926483154297, 0.7075921297073364, -0.8009388446807861, -0.4490147829055786, -0.08387631922960281, -0.016234353184700012, -1.1819766759872437, 0.13968385756015778, 0.41238054633140564, 1.425147294998169, -0.932395339012146, 1.0130773782730103, 0.5328444242477417, -0.5915259122848511, -0.7435432076454163, -0.5072141885757446, 0.1482456475496292, -0.9805123805999756, 0.21416355669498444, 0.11674096435308456, 0.49609991908073425, -0.1977519690990448, -0.6004505157470703, -0.9588018655776978, 1.4103518724441528, -0.20528288185596466, -0.0881713479757309, -0.02228711172938347, 0.16421861946582794, 0.4753686487674713, -0.19669179618358612, 0.6213677525520325, 0.3202769160270691, 0.5222945213317871, 0.42371004819869995, -0.712907612323761, -0.03302663937211037, -0.065848208963871, 0.25662362575531006, 0.20197151601314545, -0.8713937997817993, 1.2853564023971558, 0.003921585623174906, 0.07407885044813156, 0.5378004908561707, 0.8782113194465637, 0.3358366787433624, 0.08147881180047989, 0.8669067621231079, 0.785773515701294, 0.6579601764678955, -0.4946632981300354, 1.306320071220398, -0.23148910701274872, 0.8305534720420837, 0.7391340136528015, -0.06770914793014526, 0.5039227604866028, 0.32364410161972046, -0.11372558027505875, 0.38912418484687805, 0.6008134484291077, -0.4614239037036896, 0.2711646258831024, -0.08755650371313095, 0.22607126832008362, -0.425764262676239, 0.17542944848537445, -0.6729962825775146, 0.307317316532135, 0.24016189575195312, -0.7346602082252502, -0.33154991269111633, -0.3318686783313751, 0.2093643695116043, -0.6085054278373718, -0.22191837430000305, 0.2897261381149292, -0.037920791655778885, -0.41723376512527466, 0.4694897532463074, 0.33234351873397827, 0.4535429775714874, -0.7415342926979065, 0.18374261260032654, -0.3444024920463562, 0.755655825138092, -0.20846280455589294, -0.28187718987464905, 0.526276171207428, -0.4228006601333618, -0.17628872394561768, -0.2615073025226593, 0.6713567972183228, -0.15459388494491577, -0.9359090328216553, 0.04334612563252449, -0.09454368054866791, 0.20825815200805664, 0.14350655674934387, -0.9266092777252197, 0.3339347839355469, -0.2569040060043335, -0.018641682341694832, 0.25568994879722595, -0.024980297312140465, -0.02033272571861744, 0.5967836976051331, 0.6682364344596863, -0.2454383671283722, 0.0018898391863331199, 0.10023398697376251, 0.6438731551170349, -0.435801237821579, -0.6185668110847473, -0.407972127199173, 0.5615680813789368, -0.18500058352947235, -0.6833935379981995, 0.8583768010139465, 0.8381954431533813, 0.8552933931350708, -0.21642902493476868, 0.2219107449054718, -0.40840038657188416, 0.4223560392856598, -0.15776339173316956, 1.101076602935791, -0.4718096852302551, -0.014581245370209217, -0.16148555278778076, -0.6976882219314575, 0.12955111265182495, 0.8067418336868286, -0.011246264912188053, 0.3266812562942505, 0.8450865149497986, 0.7907208800315857, -0.32282084226608276, 0.43615683913230896, 0.36065804958343506, 0.24202172458171844, 0.43741270899772644, 0.14191867411136627, 0.45685046911239624, -0.859306812286377, 0.3759809136390686, -0.9036849737167358, -0.14410416781902313, -0.3322828412055969, -0.8012374639511108, -1.4126291275024414, -0.5368002653121948, -0.3050030469894409, -0.9000018835067749, -0.26002323627471924, 0.6838828921318054, 1.0451172590255737, -1.1743282079696655, -0.24963589012622833, -0.0741356834769249, 0.14152197539806366, -0.5933302044868469, -0.24853619933128357, 0.11496552079916, -0.2948738932609558, -0.4941186010837555, -0.18413686752319336, -0.22631338238716125, 0.3060959577560425, -0.5582659840583801, -0.08217618614435196, -0.08970201760530472, 0.10262808203697205, -0.06174642965197563, 0.16493606567382812, -0.42928677797317505, -0.4840039610862732, -0.305737167596817, -0.1767382025718689, -0.33128076791763306, 0.7324668765068054, -0.3487531840801239, 0.38334447145462036, 0.655087947845459, 0.08232615143060684, 0.7093983888626099, -0.10662961006164551, 0.6489503979682922, -0.8527854084968567, 0.6422163844108582, 0.29115062952041626, 0.8603216409683228, 0.08742039650678635, -0.17909662425518036, 0.24298785626888275, 0.320756733417511, -0.6802128553390503, -0.9353285431861877, 0.06556060910224915, -0.9401013255119324, 0.19603067636489868, 1.103674054145813, 0.03860117495059967, -0.7750728130340576, 0.19007450342178345, -0.13025672733783722, -0.054402757436037064, -0.13461466133594513, 0.641569972038269, 0.6023058295249939, 0.5180360674858093, -0.13814839720726013, -0.28382694721221924, 0.6178255677223206, 0.35025808215141296, -0.5074390172958374, -0.5146148204803467, 0.03555445000529289, 0.49033036828041077, 0.3299923539161682, 0.2974053919315338, -0.29223954677581787, 0.4475283622741699, 0.372435063123703, 0.13294126093387604, -0.29629409313201904, 0.04977478086948395, -0.10848045349121094, -0.039400842040777206, 0.19967590272426605, -0.30712345242500305 ]
Rostlab/prot_bert_bfd
Rostlab
"2020-12-11T21:30:10Z"
18,783
9
transformers
[ "transformers", "pytorch", "tf", "fill-mask", "protein language model", "dataset:BFD", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:04Z"
--- language: protein tags: - protein language model datasets: - BFD --- # ProtBert-BFD model Pretrained model on protein sequences using a masked language modeling (MLM) objective. It was introduced in [this paper](https://doi.org/10.1101/2020.07.12.199554) and first released in [this repository](https://github.com/agemagician/ProtTrans). This model is trained on uppercase amino acids: it only works with capital letter amino acids. ## Model description ProtBert-BFD is based on Bert model which pretrained on a large corpus of protein sequences in a self-supervised fashion. This means it was pretrained on the raw protein sequences only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those protein sequences. One important difference between our Bert model and the original Bert version is the way of dealing with sequences as separate documents This means the Next sentence prediction is not used, as each sequence is treated as a complete document. The masking follows the original Bert training with randomly masks 15% of the amino acids in the input. At the end, the feature extracted from this model revealed that the LM-embeddings from unlabeled data (only protein sequences) captured important biophysical properties governing protein shape. This implied learning some of the grammar of the language of life realized in protein sequences. ## Intended uses & limitations The model could be used for protein feature extraction or to be fine-tuned on downstream tasks. We have noticed in some tasks you could gain more accuracy by fine-tuning the model rather than using it as a feature extractor. ### How to use You can use this model directly with a pipeline for masked language modeling: ```python >>> from transformers import BertForMaskedLM, BertTokenizer, pipeline >>> tokenizer = BertTokenizer.from_pretrained('Rostlab/prot_bert_bfd', do_lower_case=False ) >>> model = BertForMaskedLM.from_pretrained("Rostlab/prot_bert_bfd") >>> unmasker = pipeline('fill-mask', model=model, tokenizer=tokenizer) >>> unmasker('D L I P T S S K L V V [MASK] D T S L Q V K K A F F A L V T') [{'score': 0.1165614128112793, 'sequence': '[CLS] D L I P T S S K L V V L D T S L Q V K K A F F A L V T [SEP]', 'token': 5, 'token_str': 'L'}, {'score': 0.08976086974143982, 'sequence': '[CLS] D L I P T S S K L V V V D T S L Q V K K A F F A L V T [SEP]', 'token': 8, 'token_str': 'V'}, {'score': 0.08864385634660721, 'sequence': '[CLS] D L I P T S S K L V V S D T S L Q V K K A F F A L V T [SEP]', 'token': 10, 'token_str': 'S'}, {'score': 0.06227643042802811, 'sequence': '[CLS] D L I P T S S K L V V A D T S L Q V K K A F F A L V T [SEP]', 'token': 6, 'token_str': 'A'}, {'score': 0.06194969266653061, 'sequence': '[CLS] D L I P T S S K L V V T D T S L Q V K K A F F A L V T [SEP]', 'token': 15, 'token_str': 'T'}] ``` Here is how to use this model to get the features of a given protein sequence in PyTorch: ```python from transformers import BertModel, BertTokenizer import re tokenizer = BertTokenizer.from_pretrained('Rostlab/prot_bert_bfd', do_lower_case=False ) model = BertModel.from_pretrained("Rostlab/prot_bert_bfd") sequence_Example = "A E T C Z A O" sequence_Example = re.sub(r"[UZOB]", "X", sequence_Example) encoded_input = tokenizer(sequence_Example, return_tensors='pt') output = model(**encoded_input) ``` ## Training data The ProtBert-BFD model was pretrained on [BFD](https://bfd.mmseqs.com/), a dataset consisting of 2.1 billion protein sequences. ## Training procedure ### Preprocessing The protein sequences are uppercased and tokenized using a single space and a vocabulary size of 21. The inputs of the model are then of the form: ``` [CLS] Protein Sequence A [SEP] Protein Sequence B [SEP] ``` Furthermore, each protein sequence was treated as a separate document. The preprocessing step was performed twice, once for a combined length (2 sequences) of less than 512 amino acids, and another time using a combined length (2 sequences) of less than 2048 amino acids. The details of the masking procedure for each sequence followed the original Bert model as following: - 15% of the amino acids are masked. - In 80% of the cases, the masked amino acids are replaced by `[MASK]`. - In 10% of the cases, the masked amino acids are replaced by a random amino acid (different) from the one they replace. - In the 10% remaining cases, the masked amino acids are left as is. ### Pretraining The model was trained on a single TPU Pod V3-1024 for one million steps in total. 800k steps using sequence length 512 (batch size 32k), and 200K steps using sequence length 2048 (batch size 6k). The optimizer used is Lamb with a learning rate of 0.002, a weight decay of 0.01, learning rate warmup for 140k steps and linear decay of the learning rate after. ## Evaluation results When fine-tuned on downstream tasks, this model achieves the following results: Test results : | Task/Dataset | secondary structure (3-states) | secondary structure (8-states) | Localization | Membrane | |:-----:|:-----:|:-----:|:-----:|:-----:| | CASP12 | 76 | 65 | | | | TS115 | 84 | 73 | | | | CB513 | 83 | 70 | | | | DeepLoc | | | 78 | 91 | ### BibTeX entry and citation info ```bibtex @article {Elnaggar2020.07.12.199554, author = {Elnaggar, Ahmed and Heinzinger, Michael and Dallago, Christian and Rehawi, Ghalia and Wang, Yu and Jones, Llion and Gibbs, Tom and Feher, Tamas and Angerer, Christoph and Steinegger, Martin and BHOWMIK, DEBSINDHU and Rost, Burkhard}, title = {ProtTrans: Towards Cracking the Language of Life{\textquoteright}s Code Through Self-Supervised Deep Learning and High Performance Computing}, elocation-id = {2020.07.12.199554}, year = {2020}, doi = {10.1101/2020.07.12.199554}, publisher = {Cold Spring Harbor Laboratory}, abstract = {Computational biology and bioinformatics provide vast data gold-mines from protein sequences, ideal for Language Models (LMs) taken from Natural Language Processing (NLP). These LMs reach for new prediction frontiers at low inference costs. Here, we trained two auto-regressive language models (Transformer-XL, XLNet) and two auto-encoder models (Bert, Albert) on data from UniRef and BFD containing up to 393 billion amino acids (words) from 2.1 billion protein sequences (22- and 112 times the entire English Wikipedia). The LMs were trained on the Summit supercomputer at Oak Ridge National Laboratory (ORNL), using 936 nodes (total 5616 GPUs) and one TPU Pod (V3-512 or V3-1024). We validated the advantage of up-scaling LMs to larger models supported by bigger data by predicting secondary structure (3-states: Q3=76-84, 8 states: Q8=65-73), sub-cellular localization for 10 cellular compartments (Q10=74) and whether a protein is membrane-bound or water-soluble (Q2=89). Dimensionality reduction revealed that the LM-embeddings from unlabeled data (only protein sequences) captured important biophysical properties governing protein shape. This implied learning some of the grammar of the language of life realized in protein sequences. The successful up-scaling of protein LMs through HPC to larger data sets slightly reduced the gap between models trained on evolutionary information and LMs. Availability ProtTrans: \&lt;a href="https://github.com/agemagician/ProtTrans"\&gt;https://github.com/agemagician/ProtTrans\&lt;/a\&gt;Competing Interest StatementThe authors have declared no competing interest.}, URL = {https://www.biorxiv.org/content/early/2020/07/21/2020.07.12.199554}, eprint = {https://www.biorxiv.org/content/early/2020/07/21/2020.07.12.199554.full.pdf}, journal = {bioRxiv} } ``` > Created by [Ahmed Elnaggar/@Elnaggar_AI](https://twitter.com/Elnaggar_AI) | [LinkedIn](https://www.linkedin.com/in/prof-ahmed-elnaggar/)
[ -0.1736147701740265, -0.5888176560401917, 0.25320249795913696, 0.08792414516210556, -0.3261312246322632, 0.2158903181552887, 0.05560319870710373, -0.29073843359947205, 0.36669206619262695, 0.3647364675998688, -0.5636016726493835, -0.40630269050598145, -0.7739347219467163, 0.22932502627372742, -0.34564632177352905, 0.9457463622093201, 0.22354508936405182, 0.3284924626350403, 0.10104171931743622, -0.00545920617878437, 0.03713745251297951, -0.6265092492103577, -0.5198897123336792, -0.40493670105934143, 0.6082808971405029, 0.251656711101532, 0.5371906161308289, 0.7486209273338318, 0.46715229749679565, 0.2935185432434082, -0.26473185420036316, 0.03591660037636757, -0.402363121509552, -0.029365798458456993, 0.07649562507867813, -0.3350684344768524, -0.5482275485992432, -0.02333984151482582, 0.6711233854293823, 0.8374268412590027, 0.16235966980457306, 0.3364488184452057, -0.010753471404314041, 0.808211624622345, -0.37439826130867004, 0.2517332136631012, -0.4207485020160675, 0.10284452140331268, -0.22880160808563232, 0.1494894176721573, -0.3744305372238159, -0.2573055922985077, 0.14368771016597748, -0.4021461606025696, 0.18778297305107117, 0.04799316078424454, 0.96270352602005, 0.10766385495662689, -0.17754694819450378, -0.09839075803756714, -0.5194118618965149, 0.6337906122207642, -0.8603217005729675, 0.5908146500587463, 0.39138445258140564, 0.07482828944921494, -0.43385979533195496, -0.922435462474823, -0.5667527914047241, -0.24083958566188812, -0.07516651600599289, 0.04234231635928154, 0.0547325536608696, 0.1147751435637474, 0.32961830496788025, 0.4356869161128998, -0.7108336687088013, -0.005700312089174986, -0.6806209683418274, -0.29665932059288025, 0.7496755123138428, -0.16160903871059418, 0.23439204692840576, -0.32532796263694763, -0.22932420670986176, -0.3484140634536743, -0.5405551195144653, 0.19199039041996002, 0.40069881081581116, 0.30458855628967285, -0.006731945089995861, 0.6466261744499207, -0.16753463447093964, 0.539219081401825, 0.04094916954636574, 0.059640221297740936, 0.48744165897369385, -0.1008005291223526, -0.39947959780693054, -0.00850389339029789, 0.9234159588813782, -0.014005024917423725, 0.3392868638038635, -0.044209614396095276, -0.11789561808109283, -0.30489426851272583, 0.1872485727071762, -0.7403188347816467, -0.5295495986938477, 0.5112478733062744, -0.6047677993774414, -0.151036337018013, 0.32438451051712036, -0.7182009816169739, -0.11406310647726059, -0.1906421035528183, 0.7470689415931702, -0.6282943487167358, -0.041539840400218964, 0.17273038625717163, -0.2106807976961136, 0.21217359602451324, -0.013006212189793587, -0.7505570650100708, 0.20917309820652008, 0.3778034746646881, 0.8513950109481812, -0.06412059813737869, -0.15481305122375488, -0.40377265214920044, -0.03156111016869545, -0.09477035701274872, 0.5317481160163879, -0.3998290002346039, -0.3805338442325592, -0.14223900437355042, 0.25998544692993164, -0.06919451802968979, -0.3983401656150818, 0.4043968617916107, -0.5328525304794312, 0.07461648434400558, -0.19527386128902435, -0.740567684173584, -0.38860827684402466, -0.13013409078121185, -0.7427485585212708, 1.0332947969436646, 0.22137627005577087, -0.6259410381317139, 0.22653698921203613, -0.7644171714782715, -0.4056894779205322, 0.2760179042816162, -0.014174320735037327, -0.5108705759048462, 0.042981650680303574, 0.18988393247127533, 0.43647298216819763, 0.05228026583790779, 0.2992735207080841, -0.36574676632881165, -0.2649827301502228, 0.36913013458251953, -0.02402091957628727, 0.8379096984863281, 0.3262057602405548, -0.2743191123008728, 0.12522970139980316, -0.9574533700942993, 0.28832775354385376, 0.1507686972618103, -0.4962646961212158, 0.0876755490899086, -0.050154346972703934, 0.033484309911727905, 0.2367144227027893, 0.2672937214374542, -0.628876268863678, 0.5207031965255737, -0.4879744052886963, 0.7052318453788757, 0.7683716416358948, 0.045252975076436996, 0.29073667526245117, -0.27230405807495117, 0.36300984025001526, 0.07567747682332993, 0.1292252093553543, -0.028098007664084435, -0.6348511576652527, -0.709665834903717, -0.48138636350631714, 0.6130504012107849, 0.6026126146316528, -0.4553300142288208, 0.699329137802124, -0.17928995192050934, -0.6111074090003967, -0.6794940829277039, -0.01734045334160328, 0.4279548227787018, 0.17387492954730988, 0.6262524724006653, -0.3956635892391205, -0.7900043725967407, -0.9082261919975281, -0.2001768797636032, -0.1452883780002594, -0.21435554325580597, 0.15971536934375763, 0.7576817870140076, -0.3013116419315338, 0.7647109627723694, -0.5032116770744324, -0.24627606570720673, -0.3207206726074219, 0.00916276965290308, 0.5046498775482178, 0.7198430299758911, 0.23733879625797272, -0.6231417655944824, -0.4491589069366455, -0.3013472557067871, -0.6316489577293396, -0.04707520455121994, 0.06704489141702652, -0.03463893011212349, 0.13539384305477142, 0.439237505197525, -0.6531886458396912, 0.5223869681358337, 0.35704341530799866, -0.30171826481819153, 0.5737699866294861, -0.3846292793750763, -0.0606834813952446, -1.026090145111084, 0.27253562211990356, -0.1736089140176773, -0.18647541105747223, -0.8238227963447571, -0.061055853962898254, -0.028720036149024963, -0.006877509877085686, -0.6154285073280334, 0.5406180620193481, -0.5267443656921387, -0.1316407322883606, -0.03155355155467987, -0.2519005537033081, -0.036124978214502335, 0.5862233638763428, 0.013399284332990646, 0.5574653148651123, 0.4935862123966217, -0.6397641897201538, 0.2017335742712021, 0.4970129430294037, -0.4342030882835388, -0.21760380268096924, -0.8531250953674316, 0.09077722579240799, -0.04232775419950485, 0.3167075514793396, -0.902729332447052, -0.17665700614452362, 0.347958505153656, -0.6293578147888184, 0.30909302830696106, -0.0037977166939526796, -0.5079544186592102, -0.5289287567138672, -0.2875770032405853, 0.4584183692932129, 0.6039080619812012, -0.29550814628601074, 0.4538319408893585, 0.2847484052181244, -0.0505221001803875, -0.5621174573898315, -0.6505526900291443, -0.1602727621793747, -0.019964998587965965, -0.47642946243286133, 0.5386295914649963, -0.15050503611564636, 0.06611629575490952, -0.1438981294631958, -0.2348221242427826, 0.045351166278123856, -0.12764900922775269, 0.330045610666275, 0.07450934499502182, -0.09206897020339966, 0.03622937947511673, -0.1792413741350174, -0.03370364010334015, -0.0989597737789154, -0.492260605096817, 0.7900881171226501, -0.08873260766267776, -0.06705507636070251, -0.45835843682289124, 0.4352187216281891, 0.5756760239601135, -0.19264215230941772, 0.8063854575157166, 0.7196980118751526, -0.5203127861022949, 0.02536180429160595, -0.35545700788497925, -0.26845887303352356, -0.4707827866077423, 0.5046992897987366, -0.4009917080402374, -0.7518060803413391, 0.7267724275588989, 0.1429961621761322, -0.17115440964698792, 0.6296793818473816, 0.43451496958732605, -0.27136167883872986, 0.8656482100486755, 0.666254997253418, 0.03493678942322731, 0.4532899558544159, -0.6485598087310791, 0.42395836114883423, -0.8297876119613647, -0.459769070148468, -0.45243847370147705, -0.4436519742012024, -0.6212074160575867, -0.36594948172569275, 0.3100592792034149, 0.4119734466075897, -0.3754628002643585, 0.5385739207267761, -0.3570847809314728, 0.29010850191116333, 0.8339856266975403, 0.43712887167930603, -0.10685177892446518, 0.028103331103920937, -0.40541982650756836, 0.039920009672641754, -0.794387936592102, -0.41900917887687683, 1.2295949459075928, 0.5100858807563782, 0.51933753490448, 0.12327758222818375, 0.7256806492805481, 0.44675523042678833, -0.00836210884153843, -0.7349914312362671, 0.5576418042182922, -0.4164728820323944, -0.6436247229576111, -0.36129358410835266, -0.1999713033437729, -0.9539591670036316, 0.023570142686367035, -0.293457567691803, -0.9418144226074219, 0.3347476124763489, -0.003127359552308917, -0.4125259220600128, 0.243087038397789, -0.6043409705162048, 0.9584002494812012, -0.19255885481834412, -0.22563216090202332, 0.047216594219207764, -0.9879759550094604, 0.2144748717546463, -0.1271621733903885, 0.19112944602966309, 0.017322765663266182, 0.257376104593277, 1.0380425453186035, -0.6625468730926514, 0.8526171445846558, -0.10617875307798386, 0.0625067800283432, 0.20751991868019104, 0.040548890829086304, 0.34833768010139465, 0.08098597824573517, -0.027046699076890945, 0.2988717257976532, 0.1324893683195114, -0.6068817377090454, -0.17835946381092072, 0.40801531076431274, -0.8494729995727539, -0.4361439645290375, -0.4950989782810211, -0.48604413866996765, 0.10704107582569122, 0.277417927980423, 0.5770158767700195, 0.5332453846931458, 0.10713928192853928, 0.3518441617488861, 0.6629021763801575, -0.398434042930603, 0.6444730758666992, 0.39542490243911743, -0.24763233959674835, -0.6155453324317932, 0.7407146692276001, 0.2733460068702698, 0.21309912204742432, 0.501700758934021, 0.13261178135871887, -0.5647998452186584, -0.6398208737373352, -0.19991785287857056, 0.2574576735496521, -0.613902747631073, -0.30456408858299255, -0.8293176293373108, -0.5664049983024597, -0.6324617862701416, 0.059551920741796494, -0.3504725396633148, -0.5349857211112976, -0.24515357613563538, -0.1580403447151184, 0.35217997431755066, 0.6111328601837158, -0.3867431879043579, 0.3527299761772156, -0.9917819499969482, 0.3720226585865021, 0.18418598175048828, 0.23593975603580475, -0.24886256456375122, -0.787161111831665, -0.2981862723827362, 0.17393968999385834, -0.2874111533164978, -1.0347963571548462, 0.6335412263870239, 0.6710675954818726, 0.7256901860237122, 0.17120498418807983, -0.008979515172541142, 0.45827963948249817, -0.5009902119636536, 0.9632198214530945, -0.06383492052555084, -0.9158918857574463, 0.7214496731758118, -0.20691227912902832, 0.36721882224082947, 0.3352051377296448, 0.6458127498626709, -0.2799880802631378, -0.4330688714981079, -0.9540363550186157, -1.0910003185272217, 0.6149568557739258, 0.32588139176368713, -0.14127211272716522, -0.09248534590005875, 0.5087854862213135, 0.18595892190933228, 0.16156940162181854, -0.9249526858329773, -0.48856866359710693, -0.27623599767684937, -0.31935450434684753, -0.1538916677236557, -0.3174731731414795, 0.02441437356173992, -0.5378600358963013, 0.8734634518623352, -0.0266596470028162, 0.5849420428276062, 0.44480350613594055, -0.3554219603538513, 0.05720314383506775, 0.09349070489406586, 0.7146168947219849, 0.5243497490882874, -0.611266553401947, 0.0698331668972969, -0.04885944724082947, -0.8013761043548584, 0.08493399620056152, 0.17264515161514282, -0.176338329911232, -0.014366650953888893, 0.5671813488006592, 0.7532438039779663, -0.00014807596744503826, -0.5530347228050232, 0.297882616519928, 0.20346349477767944, -0.30138733983039856, -0.1536741405725479, -0.024430114775896072, -0.03218505531549454, 0.4420870840549469, 0.6517327427864075, -0.05679512768983841, 0.07570173591375351, -0.46605953574180603, 0.5345373153686523, 0.23832173645496368, -0.3294174373149872, -0.4235871136188507, 0.6826953887939453, -0.03275861591100693, -0.45725950598716736, 0.6590735912322998, -0.28197619318962097, -0.7514262795448303, 0.6421225666999817, 0.5834656953811646, 0.9342920780181885, -0.2968286871910095, 0.24607673287391663, 0.6149961948394775, 0.20542606711387634, -0.1368684619665146, 0.4361021816730499, 0.21305453777313232, -0.7191687226295471, -0.3675369918346405, -1.12738835811615, -0.03910818323493004, 0.5096080303192139, -0.5353389978408813, 0.1465412974357605, -0.4962986707687378, -0.17800982296466827, 0.114084392786026, 0.20737121999263763, -0.6086195707321167, 0.326822429895401, 0.15783467888832092, 1.0003098249435425, -0.9590909481048584, 1.1323603391647339, 0.7563245892524719, -0.5749819278717041, -0.6885662078857422, -0.15947510302066803, -0.21876664459705353, -0.8263942003250122, 1.0121372938156128, 0.31980884075164795, 0.28477057814598083, 0.222883403301239, -0.5905983448028564, -1.002832293510437, 0.970669150352478, 0.14149688184261322, -0.67973792552948, -0.007632303051650524, 0.133159801363945, 0.6049661040306091, -0.38820311427116394, 0.17440496385097504, 0.5858677625656128, 0.37763941287994385, 0.01768271066248417, -0.7486094832420349, 0.047465723007917404, -0.364798903465271, -0.05272653326392174, 0.09370261430740356, -0.5047178268432617, 0.8952680826187134, -0.25391876697540283, -0.0981641337275505, 0.05289430543780327, 0.7365474104881287, 0.26552677154541016, -0.051358629018068314, 0.1964714527130127, 0.6223890781402588, 0.6418489813804626, -0.12215273082256317, 0.7412918210029602, -0.32551947236061096, 0.4416648745536804, 0.8127288222312927, 0.03980215638875961, 0.9305297136306763, 0.5649579763412476, -0.49161016941070557, 0.5533019304275513, 0.8315462470054626, -0.1913052648305893, 0.7581574320793152, 0.4512799382209778, -0.026585781946778297, -0.23322869837284088, 0.06288737058639526, -0.4742371737957001, 0.4145171046257019, 0.48966994881629944, -0.42121919989585876, 0.086362324655056, -0.019279003143310547, -0.09839224070310593, -0.14040641486644745, -0.3022097647190094, 0.625329315662384, 0.19714049994945526, -0.4054846465587616, 0.6668200492858887, -0.027387788519263268, 0.539696991443634, -0.6030834317207336, 0.04869179055094719, -0.30882421135902405, 0.2405966818332672, -0.0926152691245079, -0.6621311902999878, 0.2416924238204956, -0.19991154968738556, -0.3330892026424408, -0.13793666660785675, 0.607879102230072, -0.44978001713752747, -0.6307215690612793, 0.2895168364048004, 0.4074437618255615, 0.30116647481918335, -0.05243232846260071, -0.7905386686325073, -0.056639183312654495, 0.008708393201231956, -0.3877754211425781, 0.2934876084327698, 0.1665944755077362, 0.08683557063341141, 0.7913836240768433, 0.6335473656654358, 0.027409058064222336, 0.14280717074871063, -0.14374834299087524, 0.8090716600418091, -0.8703552484512329, -0.39311715960502625, -0.8546403646469116, 0.5715599656105042, 0.05143442004919052, -0.24866153299808502, 0.40727946162223816, 0.6675807237625122, 0.8873114585876465, -0.4387449324131012, 0.6207535266876221, -0.2701129615306854, 0.3923153579235077, -0.5842958688735962, 0.7234706282615662, -0.4433441758155823, 0.09481454640626907, -0.11561395972967148, -0.9736953377723694, -0.35563570261001587, 0.7306153774261475, -0.06995023787021637, 0.03434082120656967, 0.7865892648696899, 0.701255202293396, 0.12997643649578094, -0.1424490064382553, 0.1351717859506607, 0.40315523743629456, 0.3891260027885437, 0.6108728051185608, 0.41062113642692566, -0.8337776064872742, 0.31155824661254883, -0.28782156109809875, -0.062386635690927505, -0.3894640803337097, -0.9885475039482117, -0.8309916853904724, -0.7195219397544861, -0.4051028788089752, -0.5317385196685791, 0.19347944855690002, 1.0439690351486206, 0.6710028648376465, -1.0986385345458984, -0.18861736357212067, -0.0801745131611824, -0.1326650232076645, -0.3026014566421509, -0.2239641547203064, 0.594021201133728, -0.23428265750408173, -0.5104932188987732, 0.4706713557243347, 0.05140145123004913, 0.3103976249694824, -0.05653644725680351, -0.12422756850719452, -0.6827516555786133, 0.07346154749393463, 0.5639907717704773, 0.47288015484809875, -0.8009933233261108, -0.4671412706375122, 0.10956702381372452, -0.10101406276226044, 0.1429123431444168, 0.4099758267402649, -0.7445142865180969, 0.1831134408712387, 0.6441823244094849, 0.5207167267799377, 0.6139253973960876, -0.06158173829317093, 0.717374324798584, -0.8994081616401672, 0.11518516391515732, 0.04709184914827347, 0.3336244821548462, 0.26604875922203064, -0.296027809381485, 0.515083372592926, 0.5213468670845032, -0.6038553714752197, -0.7610678672790527, 0.10522614419460297, -1.0853890180587769, -0.31838279962539673, 1.081483006477356, -0.189923495054245, -0.3731502890586853, 0.04542676359415054, -0.16219402849674225, 0.6185784935951233, -0.2762020230293274, 0.7299320697784424, 0.632830023765564, -0.07960506528615952, -0.11617325246334076, -0.4849088490009308, 0.7736271619796753, 0.42601317167282104, -0.4940255284309387, -0.17765404284000397, 0.1423807442188263, 0.31555163860321045, 0.1571132242679596, 0.4927431046962738, -0.13450868427753448, 0.06776639819145203, -0.09119819104671478, 0.19603769481182098, -0.1517801731824875, -0.3516685366630554, -0.40461766719818115, 0.13255465030670166, -0.15208324790000916, -0.3312365710735321 ]
studio-ousia/luke-large-finetuned-tacred
studio-ousia
"2022-03-23T12:31:16Z"
18,772
3
transformers
[ "transformers", "pytorch", "luke", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
sshleifer/tiny-dbmdz-bert-large-cased-finetuned-conll03-english
sshleifer
"2021-05-20T07:12:23Z"
18,737
0
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "token-classification", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
Entry not found
[ -0.3227650225162506, -0.22568431496620178, 0.862226128578186, 0.43461495637893677, -0.5282987952232361, 0.7012965679168701, 0.7915717363357544, 0.07618638128042221, 0.7746025919914246, 0.2563219666481018, -0.7852817177772522, -0.22573819756507874, -0.9104480743408203, 0.5715669393539429, -0.3992334008216858, 0.5791245698928833, -0.14494505524635315, -0.10751161724328995, 0.28233757615089417, -0.2768954336643219, -0.5409224033355713, -0.36855220794677734, -1.1902776956558228, 0.061491113156080246, 0.5316578149795532, 0.7435142397880554, 0.7584060430526733, 0.3652167320251465, 0.6432578563690186, 0.3932291269302368, -0.23138920962810516, 0.4827055037021637, -0.04171813279390335, 0.00260411505587399, -0.3524433970451355, -0.5516898036003113, -0.28596609830856323, 0.07584730535745621, 1.0961304903030396, 0.966687798500061, -0.284663587808609, 0.05330817773938179, -0.3063621520996094, 0.33088892698287964, -0.49734312295913696, 0.3054099678993225, -0.022506045177578926, 0.16318801045417786, -0.7041513919830322, -0.5535354018211365, 0.012794834561645985, -0.7361212968826294, 0.17926570773124695, -0.690081000328064, 0.8269098401069641, 0.18583157658576965, 1.1533750295639038, 0.14819414913654327, -0.462487131357193, -0.8161764144897461, -0.6538989543914795, 0.5711171627044678, -0.32703715562820435, 0.39680248498916626, 0.7028235197067261, -0.048573412001132965, -0.9820332527160645, -0.6745741367340088, -0.46466192603111267, 0.2923962473869324, 0.35402774810791016, -0.3411678075790405, -0.17522086203098297, -0.3058989644050598, 0.15792037546634674, 0.12811517715454102, -0.4841994643211365, -0.5543919205665588, -0.5475160479545593, -0.3960252106189728, 0.6206658482551575, 0.3482950031757355, 0.2429177463054657, -0.1888415813446045, -0.3228583335876465, 0.0880163162946701, -0.4160851538181305, 0.3402571678161621, 0.6335517168045044, 0.7114017009735107, -0.5811444520950317, 0.560215950012207, -0.04927587881684303, 0.7439703941345215, 0.11445561796426773, -0.27478092908859253, 0.41460567712783813, -0.14724725484848022, 0.055171746760606766, 0.4226345121860504, 0.31524422764778137, 0.2841312289237976, -0.3273695111274719, 0.2032228708267212, -0.3215144872665405, -0.30496224761009216, -0.22332167625427246, -0.29490774869918823, -0.3592180609703064, 0.5492289066314697, -0.3314017057418823, -0.42855486273765564, 1.143175721168518, -0.4200771450996399, -0.7302224040031433, 0.33156412839889526, 0.4065209925174713, -0.0994480773806572, -0.37146568298339844, -0.052260834723711014, -0.8458789587020874, -0.007907390594482422, 0.7491172552108765, -0.7198970913887024, 0.3371737599372864, 0.4728063642978668, 0.7417217493057251, 0.19650575518608093, -0.14034469425678253, -0.42949390411376953, 0.2971969544887543, -0.8659994006156921, 0.6320174336433411, -0.20135220885276794, -1.0051977634429932, 0.11150479316711426, 0.8971705436706543, -0.37896400690078735, -1.2094876766204834, 1.0605159997940063, -0.6887932419776917, 0.16017857193946838, -0.676761269569397, -0.14661237597465515, -0.07118501514196396, -0.005096632521599531, -0.6088156700134277, 0.7567102313041687, 0.587267279624939, -0.4995276927947998, 0.21429483592510223, -0.26029831171035767, -0.39151400327682495, 0.38824859261512756, -0.07935450226068497, -0.21858926117420197, 0.713833212852478, -0.6647079586982727, -0.26932814717292786, 0.2942774295806885, 0.2368936538696289, -0.35706108808517456, -0.7931919097900391, 0.08478113263845444, -0.05786270648241043, 1.550750494003296, -0.03868847340345383, -0.3586106300354004, -0.679383397102356, -1.1506240367889404, -0.07070787996053696, 0.6886883974075317, -0.9194989204406738, -0.27839475870132446, -0.046410128474235535, -0.26169314980506897, 0.08994917571544647, 0.7390589714050293, -1.1194051504135132, 0.2832726836204529, -0.05092663690447807, -0.22794683277606964, 0.8271058797836304, 0.15387225151062012, 0.24758946895599365, 0.14913396537303925, 0.42958706617355347, 0.527725338935852, 0.11115207523107529, 0.683587908744812, -0.34720373153686523, -0.9694353938102722, 0.6154631972312927, 0.25266361236572266, 0.8121447563171387, -0.49945297837257385, 0.2685093879699707, 0.27025535702705383, -0.3409680724143982, -0.5682371854782104, -0.3102838397026062, 0.09025752544403076, 0.14930562674999237, 0.11142510175704956, -0.5721710324287415, -0.6576125025749207, -0.9689140319824219, -0.13590654730796814, -0.4314374029636383, -0.3571570813655853, 0.21006910502910614, 0.5792906284332275, -1.1975523233413696, 0.4128875136375427, -0.7705625891685486, -0.7038741111755371, -0.01065548975020647, -0.19338123500347137, 0.7540656328201294, 0.43240174651145935, 0.5033966898918152, -0.6397148370742798, -0.5661987066268921, -0.22470176219940186, -1.0333747863769531, -0.13280506432056427, 0.24819621443748474, 0.3065737783908844, -0.13423344492912292, -0.2744963765144348, -0.48740333318710327, 0.8100387454032898, 0.14789170026779175, -0.5391897559165955, 0.5220767259597778, -0.3020317256450653, 0.17224803566932678, -0.6369150280952454, -0.06916818022727966, -0.661676287651062, -0.0009071884560398757, -0.3608308732509613, -0.5737438797950745, 0.14772287011146545, 0.07017494738101959, -0.16065457463264465, 0.28808408975601196, -0.909277081489563, -0.0010852962732315063, -0.7442210912704468, 0.379071980714798, 0.06394772231578827, -0.3145078718662262, -0.017517540603876114, 1.0000386238098145, 0.7784460783004761, -0.3848048746585846, 0.721744179725647, 0.4440041184425354, 0.19036155939102173, 0.7630521059036255, -0.18725109100341797, 0.16478213667869568, -0.5245416760444641, -0.12161104381084442, -0.8887597918510437, -1.0982946157455444, 0.7320570349693298, -0.6114250421524048, 0.36542922258377075, -0.4277869760990143, 0.2589159905910492, -0.6919258832931519, -0.03885362669825554, 0.4808599352836609, -0.05936325341463089, -0.6863942742347717, 0.5232570171356201, 0.45317530632019043, -0.2019241601228714, -0.6609031558036804, -0.530157208442688, 0.39365822076797485, 0.6154114007949829, -0.16390392184257507, 0.06878514587879181, 0.14941060543060303, -0.5441926121711731, -0.040802597999572754, -0.38691970705986023, -0.45766758918762207, 0.054224006831645966, 0.13053473830223083, -0.005750799085944891, -0.404820054769516, -0.0868026465177536, -0.35842007398605347, -0.4656120240688324, 0.21876516938209534, 0.3011947274208069, -0.04096309468150139, -0.42599788308143616, -0.3619818687438965, -0.888181209564209, 0.6719610095024109, 0.5370282530784607, 0.05281545966863632, 0.7555549740791321, 0.16819314658641815, -0.8014987707138062, -0.13532210886478424, -0.1760706603527069, 0.2696830928325653, -0.5588056445121765, 0.13849826157093048, -0.013484534807503223, -0.0637492910027504, 0.26297882199287415, 0.25386232137680054, -0.4300556778907776, 0.9276250004768372, -0.2615274488925934, -0.3592521846294403, 0.7960181832313538, 0.5974742770195007, 0.49583131074905396, 0.16503219306468964, -0.044541798532009125, 0.900709331035614, -1.1966516971588135, -0.6563175916671753, -0.7409549355506897, -0.15945707261562347, -0.43510833382606506, -0.032105933874845505, 0.6254412531852722, 0.2900990843772888, -0.1333388388156891, 0.4756395220756531, -0.5243489742279053, 0.3556033670902252, 1.01198410987854, 0.35748639702796936, 0.3435698449611664, -0.7570229172706604, -0.2515777349472046, -0.1402427852153778, -0.9998157620429993, -0.2631377875804901, 0.8871029019355774, 0.22752606868743896, 0.844460666179657, 0.5992541313171387, 0.6784542798995972, 0.1367226243019104, 0.2523828148841858, -0.30590319633483887, 0.3920294940471649, 0.4376082420349121, -1.0401138067245483, -0.42758408188819885, 0.021418681368231773, -0.9703338742256165, -0.14227519929409027, -0.03495011106133461, -0.42617112398147583, 0.7681737542152405, 0.00016589462757110596, -0.4076709747314453, 0.7732734084129333, -0.455583393573761, 0.7562873363494873, -0.4473648965358734, -0.02663906291127205, 0.4699096083641052, -0.7070636749267578, 0.4677430987358093, 0.12878790497779846, 0.6205843091011047, -0.015572631731629372, -0.04078587517142296, 0.7104941606521606, -0.9129160046577454, 0.25438642501831055, -0.6348397135734558, 0.22421300411224365, 0.24246945977210999, 0.51606285572052, 0.5969953536987305, 0.4371243417263031, 0.10119888931512833, -0.23920902609825134, 0.04115807265043259, -0.8241125345230103, -0.210506409406662, 0.697515606880188, -0.7186890840530396, -0.6864197850227356, -1.2355337142944336, 0.14438660442829132, 0.27347055077552795, 0.389305055141449, 0.7959296107292175, 0.571408748626709, 0.1289544403553009, 0.680525004863739, 0.9888588190078735, -0.0688566341996193, 0.9166924357414246, 0.3224477171897888, 0.09175168722867966, -0.21944808959960938, 0.7036820650100708, 0.26627904176712036, -0.24707956612110138, -0.11939732730388641, 0.20913465321063995, -0.11069409549236298, -0.591761589050293, -0.49990686774253845, 0.3701757788658142, -0.6731787919998169, -0.18303893506526947, -0.6243735551834106, -0.6043769717216492, -0.511759340763092, 0.06927360594272614, -0.7147687673568726, 0.23979046940803528, -0.7753565907478333, -0.10574902594089508, 0.04323432594537735, 0.9792009592056274, -0.589311957359314, 0.5805224180221558, -1.1218582391738892, 0.19345788657665253, -0.07949887961149216, 0.7921058535575867, 0.21395787596702576, -0.7344395518302917, -0.3975418508052826, -0.11592631042003632, -0.3729911744594574, -1.3576762676239014, 0.21404948830604553, -0.2454141080379486, 0.23094046115875244, 0.6145404577255249, 0.1397707313299179, 0.5258248448371887, -0.34326282143592834, 0.7029101848602295, -0.057017259299755096, -0.7069286704063416, 0.7934495210647583, -0.5026894807815552, 0.4963534474372864, 0.9765996932983398, 0.5333835482597351, -0.7984007596969604, 0.035741209983825684, -1.041123390197754, -0.6008695363998413, 0.38426393270492554, 0.11928944289684296, -0.03601083159446716, -0.6659559011459351, -0.054019637405872345, -0.16143807768821716, 0.6043745279312134, -1.039069414138794, -0.7858356237411499, 0.2576698362827301, 0.5277302861213684, 0.0816856250166893, -0.5653398633003235, 0.20880667865276337, -0.544416069984436, 1.0657774209976196, 0.45109400153160095, 0.3274499475955963, 0.8406060934066772, 0.46492424607276917, -0.3823164403438568, 0.09252490103244781, 0.7662695050239563, 0.6666232347488403, -0.5239797830581665, -0.2908027470111847, -0.08827541768550873, -0.9143403768539429, 0.05927472561597824, 0.11168918758630753, -0.013455932028591633, 0.9082110524177551, 0.5793083310127258, 0.2539709210395813, 0.4514279365539551, -0.726460337638855, 0.8859451413154602, -0.14954176545143127, -0.12472866475582123, -1.0677239894866943, 0.1948619782924652, -0.23984959721565247, 0.5006402134895325, 1.0061326026916504, 0.5250048041343689, -0.047630298882722855, -0.8143380880355835, -0.01473585981875658, 0.6939172148704529, -0.7091123461723328, -0.17449834942817688, 0.944853663444519, 0.3847099542617798, -1.2953051328659058, 1.106776475906372, -0.5381771326065063, -0.560332179069519, 0.9121301770210266, 0.522956907749176, 1.1221847534179688, -0.44204121828079224, 0.0008676342549733818, 0.2662237286567688, 0.41378432512283325, 0.5423170328140259, 1.0869629383087158, 0.431413471698761, -0.7931063771247864, 0.8826584815979004, -0.24776044487953186, -0.40361151099205017, -0.05347571521997452, -0.42859897017478943, 0.16892178356647491, -0.4406192898750305, -0.10713007301092148, -0.3444187641143799, 0.28543180227279663, -0.7072042226791382, 0.42807620763778687, -0.0838567465543747, 0.8653068542480469, -0.8553727269172668, 0.47207626700401306, 0.635470449924469, -0.3337355852127075, -0.8508191108703613, -0.26198428869247437, -0.11448462307453156, -0.6389466524124146, 0.30214807391166687, -0.4554102420806885, 0.044398851692676544, 0.09623463451862335, -0.649151623249054, -1.1778275966644287, 0.9093633890151978, -0.639612078666687, -0.2784462869167328, 0.20464053750038147, -0.11514760553836823, 0.28811705112457275, -0.2524643540382385, 0.010661216452717781, 0.41876548528671265, 0.748940110206604, 0.2844654619693756, -0.7727053761482239, -0.3694884479045868, 0.0015032943338155746, -0.44474777579307556, 0.7582978010177612, -0.6002101898193359, 1.1840779781341553, -0.5563543438911438, -0.059654366225004196, 0.44384512305259705, 0.24690914154052734, 0.21076197922229767, 0.6629220843315125, 0.1442081481218338, 0.7282265424728394, 1.07012140750885, -0.40835219621658325, 0.8811809420585632, 0.26432839035987854, 0.47430819272994995, 0.7238501906394958, -0.6487724781036377, 0.7513749003410339, 0.31810489296913147, -0.5682924389839172, 0.9228013753890991, 1.2906063795089722, -0.15699204802513123, 0.8079374432563782, 0.05136508867144585, -1.081600546836853, 0.325833261013031, -0.20724765956401825, -0.7530064582824707, 0.3150254189968109, 0.19055864214897156, -0.6920982599258423, -0.5770308971405029, -0.24046507477760315, -0.35662803053855896, -0.11552901566028595, -0.7631728649139404, 0.6720563769340515, -0.016969164833426476, -0.5103683471679688, 0.18857547640800476, 0.2877499461174011, 0.17368432879447937, -0.5235732793807983, -0.02939440682530403, -0.22823619842529297, 0.2660655975341797, -0.5670853853225708, -0.5234526991844177, 0.5724433064460754, -0.32430219650268555, -0.5343255400657654, 0.18147465586662292, 0.763587236404419, -0.16923809051513672, -0.4515409469604492, 0.32472723722457886, 0.6959525346755981, 0.1665852814912796, 0.4250282347202301, -0.23511263728141785, 0.24480605125427246, -0.08044824004173279, -0.06651552021503448, 0.27714768052101135, 0.3449169099330902, 0.22435641288757324, 0.4450142979621887, 0.43285664916038513, -0.01808755099773407, -0.10736498981714249, -0.382819801568985, 0.4124940037727356, -0.9542785882949829, -0.5713282823562622, -0.6307113766670227, 0.2740660607814789, -0.02315417304635048, -1.0836423635482788, 0.4145168364048004, 1.4406683444976807, 1.0359982252120972, -0.4756383001804352, 1.067226529121399, -0.21818485856056213, 0.9594791531562805, 0.41483086347579956, 0.5420440435409546, -0.6030411720275879, 0.03835370019078255, -0.4364396035671234, -1.076962947845459, -0.35716333985328674, 0.4539391100406647, -0.022899555042386055, -0.3429867625236511, 0.872571587562561, 0.5887166261672974, -0.33473607897758484, -0.11728022992610931, 0.048487238585948944, -0.029941488057374954, -0.12433847039937973, 0.5145376324653625, 0.7648399472236633, -0.9344304800033569, -0.10680416971445084, -0.21577754616737366, -0.6382725834846497, -0.5047279000282288, -0.9632009267807007, -0.12959396839141846, -0.16037796437740326, 0.035343267023563385, -0.5662806630134583, 0.00255737011320889, 1.208324909210205, 0.5684957504272461, -1.1113994121551514, -0.5303789377212524, 0.3371853232383728, 0.3920421898365021, -0.1874791383743286, -0.24202413856983185, 0.2984568774700165, 0.15382249653339386, -0.5908876657485962, 0.6875665783882141, 0.8089625239372253, 0.208888977766037, 0.19554761052131653, 0.15893013775348663, -0.8229473829269409, -0.14913435280323029, 0.17440445721149445, 0.9450570344924927, -0.939853310585022, -0.7114843130111694, -0.03168516233563423, -0.27094873785972595, -0.05765746906399727, 0.17102102935314178, -0.4046344757080078, 0.5180677175521851, 0.34591493010520935, 0.49933457374572754, 0.0561608150601387, -0.054746925830841064, 0.5409556031227112, -0.9069057703018188, 0.09425963461399078, 0.4134361147880554, 0.4154115319252014, -0.4000864028930664, -0.5910194516181946, 0.6713420748710632, 1.0073972940444946, -0.6594868898391724, -0.8743268847465515, -0.19846712052822113, -1.0016002655029297, 0.04189709946513176, 0.6762762069702148, 0.5009527802467346, -0.4806513786315918, -0.4174500107765198, -0.5617399215698242, -0.1254672110080719, -0.1369970738887787, 0.7621601819992065, 1.179680585861206, -0.7432094812393188, 0.07975747436285019, -1.038639783859253, 0.6594986915588379, -0.2419457733631134, -0.3457581698894501, -0.48644304275512695, 0.3832802176475525, 0.35236993432044983, 0.440481036901474, 0.614812433719635, 0.1408471167087555, 0.8338426351547241, 0.3126053214073181, -0.1702686995267868, 0.2698982357978821, -0.4559200704097748, -0.028932858258485794, -0.057962555438280106, 0.31015971302986145, -1.0262157917022705 ]
fxmarty/sshleifer-tiny-mbart-onnx
fxmarty
"2022-08-23T13:53:53Z"
18,714
0
transformers
[ "transformers", "onnx", "text2text-generation", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
text2text-generation
"2022-08-23T13:52:07Z"
--- license: apache-2.0 --- This model is a fork of `sshleifer/tiny-mbart` exported to ONNX.
[ -0.23262889683246613, -0.5837246775627136, 0.6640260815620422, -0.17194701731204987, -0.6294617056846619, -0.07891058176755905, 0.47093436121940613, -0.11743969470262527, 0.6334344744682312, 0.9988272190093994, -1.3666049242019653, -0.02636583149433136, -0.26628974080085754, -0.5278289318084717, -0.4505288898944855, 1.1041830778121948, 0.32064297795295715, 0.34075942635536194, 0.23363012075424194, -0.039535705000162125, 0.436572402715683, -0.21731466054916382, -0.8755224347114563, -0.854008674621582, 0.4300302565097809, 0.864000141620636, 0.7280037999153137, 0.9760381579399109, 0.6897427439689636, 0.015001323074102402, -0.18932455778121948, -0.785855770111084, -0.3232375681400299, -0.2631966173648834, 0.14705581963062286, -0.41863179206848145, -1.0288463830947876, -0.40966129302978516, 0.6895974278450012, 0.7070860266685486, -0.18628479540348053, 0.6122686266899109, -0.3447972238063812, 0.34823402762413025, -0.08783458918333054, -0.34209978580474854, -0.5297405123710632, 0.11148462444543839, -0.2765078544616699, 0.48859643936157227, -0.19737176597118378, -0.1821645051240921, 0.037877995520830154, -0.43068087100982666, -0.12412204593420029, -0.030783304944634438, 1.1004830598831177, 0.27595481276512146, -0.8753414750099182, 0.02685145102441311, -0.755369246006012, 0.5565944314002991, -0.8462721705436707, 0.67146235704422, 0.07647184282541275, 0.8979200720787048, 0.2541714906692505, -1.3175278902053833, -0.15676094591617584, -0.14697013795375824, 0.2327808290719986, -0.01616448163986206, -0.18876707553863525, -0.20388628542423248, 0.20002393424510956, 0.10339951515197754, -0.21295684576034546, 0.10612190514802933, -0.8221644759178162, -0.23082776367664337, 0.32718169689178467, 0.3826017677783966, 0.0635550245642662, -0.5180746912956238, -0.890969455242157, 0.4089544117450714, -1.3169854879379272, -0.2543778717517853, 0.13519173860549927, 0.44625362753868103, -0.47780656814575195, 0.8484843373298645, -0.2248077541589737, 0.23517368733882904, 0.07099834084510803, 0.5020827054977417, 0.08371750265359879, -0.21241533756256104, -0.39662858843803406, 0.46278300881385803, 0.47628292441368103, 0.3399803638458252, -0.013010211288928986, 0.017831651493906975, -0.4670562446117401, -0.2533513009548187, 0.3269695043563843, -1.354438304901123, -0.864436149597168, -0.04226567968726158, -0.7234519124031067, -0.2963903248310089, 0.30094507336616516, -0.23179595172405243, 0.002565548522397876, -0.052940234541893005, 0.5996336340904236, -0.41526520252227783, -0.40507078170776367, -0.4285556972026825, -0.21497701108455658, 0.1215827688574791, 0.2149554044008255, -0.6552155017852783, 0.6602405905723572, 1.052672028541565, 0.9329903721809387, 0.10477510094642639, -0.014804755337536335, -0.6140052676200867, -0.03611045330762863, -0.27312710881233215, 0.7499003410339355, -0.3332649767398834, -0.5548214912414551, -0.5463742613792419, 0.3277091979980469, 0.4228499233722687, -0.39546334743499756, 0.7173264622688293, -0.4361970126628876, -0.3258414566516876, -0.5397881865501404, -0.4592705965042114, -0.09267190843820572, 0.3540189266204834, -0.748389720916748, 1.117187738418579, 0.4132060110569, -0.8025551438331604, 0.2139849215745926, -0.9969016909599304, -0.23247766494750977, 0.14154258370399475, -0.0062277247197926044, -0.40142083168029785, -0.04291445016860962, -0.42163991928100586, 0.3131641745567322, -0.4795320928096771, -0.19445551931858063, -0.705285370349884, -0.5114589929580688, 0.2327381819486618, 0.03227919712662697, 1.1964257955551147, 0.4598630964756012, 0.005787669215351343, 0.2784980535507202, -1.415450930595398, -0.057310644537210464, -0.00008401026570936665, -0.08785867691040039, -0.9300314784049988, -0.4538954794406891, 0.23070305585861206, 0.48269543051719666, -0.08723259717226028, -0.9423521161079407, 0.22774583101272583, -0.4721693992614746, 0.9007989764213562, 0.5812819600105286, 0.22664093971252441, 0.8137255311012268, -0.22290675342082977, 0.4209526479244232, 0.10307235270738602, 0.46791306138038635, 0.14209608733654022, -0.547818124294281, -1.0027061700820923, -0.5450575351715088, 0.7444961667060852, 0.2749558985233307, -0.8763926029205322, -0.018845930695533752, -0.23174677789211273, -1.0234401226043701, -0.2998402416706085, -0.31330326199531555, 0.3900090157985687, 0.06855786591768265, -0.34178492426872253, -0.41760268807411194, -0.3852156102657318, -1.313423991203308, 0.12715676426887512, 0.0032289382070302963, -0.31083929538726807, -0.14382994174957275, 0.7240340709686279, -0.5147715210914612, 0.7656423449516296, -0.4806263744831085, 0.14063291251659393, -0.17732113599777222, -0.01998148299753666, 0.10800441354513168, 0.7946217060089111, 0.8244022727012634, -0.42132270336151123, -0.5076438784599304, 0.3470800817012787, -0.25309428572654724, 0.14684151113033295, 0.17757518589496613, -0.5830472111701965, -0.3075387179851532, 0.3411364257335663, -0.8797281384468079, 0.33770322799682617, 0.4059351682662964, -0.6109839677810669, 0.9106097221374512, -0.025242889299988747, -0.22314856946468353, -1.2186203002929688, 0.2708541750907898, -0.2605619728565216, -0.5040604472160339, -0.8715173602104187, 0.27041903138160706, 0.6869327425956726, -0.09601515531539917, -1.0923798084259033, 0.631147563457489, -0.5430452227592468, -0.6341322064399719, -0.051589544862508774, -0.2802481949329376, -0.1716175228357315, 0.22924011945724487, -0.46991613507270813, 0.33674049377441406, 0.5600422620773315, -0.5593348145484924, 0.7178907990455627, 0.02303331531584263, -0.16797256469726562, 0.6195024251937866, -0.6909983158111572, 0.13651609420776367, 0.4858393669128418, -0.17386119067668915, -0.6117867827415466, -0.1651018112897873, 0.40399014949798584, -0.2478136271238327, 0.014122210443019867, -0.582459568977356, -0.2524435222148895, -0.39439377188682556, -0.5284469723701477, 0.35533392429351807, 0.4073661267757416, -0.6957359313964844, 0.963676929473877, 0.3873685300350189, -0.5033825039863586, 0.19657796621322632, -1.1249550580978394, -0.5823881030082703, -0.11046897619962692, -0.8006701469421387, 0.3147561848163605, 0.2073889970779419, -0.48689544200897217, 0.5111290812492371, -0.08527854084968567, -0.4386245012283325, -0.14444385468959808, 0.5393321514129639, 0.8656141757965088, -0.749316394329071, -0.16820184886455536, 0.4919176995754242, -0.23597700893878937, 0.15433238446712494, -0.033008139580488205, 0.36228060722351074, -0.23804466426372528, -0.389566570520401, -0.3449350893497467, 0.29240742325782776, 0.6178348064422607, 0.23520773649215698, 0.451031357049942, 0.557422935962677, -0.5937930941581726, -0.5574789047241211, 0.11604198068380356, -1.1995378732681274, -0.44632411003112793, 0.07001537829637527, -0.6759838461875916, -0.9168632626533508, 0.6638877987861633, -0.3102710247039795, -0.06658255308866501, 0.8362636566162109, 0.29441961646080017, -0.033530816435813904, 1.0409308671951294, 0.6692948341369629, 0.3282385766506195, 0.32220566272735596, -0.6656014323234558, -0.19601155817508698, -0.9234011769294739, 0.10895984619855881, -0.47389423847198486, -0.09917837381362915, -0.1499982476234436, -0.27495038509368896, -0.0532245934009552, -0.0710669755935669, -0.965310275554657, 0.5697970986366272, -0.08843416720628738, 0.27342185378074646, 0.9874302744865417, -0.2087470293045044, 0.2739376425743103, 0.10296174138784409, -0.7821159958839417, -0.3069384694099426, -1.0592089891433716, -0.3521871268749237, 0.9297288060188293, 0.38526812195777893, 0.7878961563110352, -0.0010310545330867171, 0.5491783022880554, 0.4871608316898346, 0.30007344484329224, -0.7236294746398926, 0.6259979605674744, -0.37265142798423767, -1.056373953819275, -0.031842391937971115, -0.6564608216285706, -0.5441864728927612, 0.34347569942474365, -0.16562168300151825, -1.020551323890686, -0.11212158203125, 0.1272958368062973, -0.7032945156097412, 0.45206260681152344, -0.6338420510292053, 1.3713241815567017, -0.0622226856648922, 0.16123075783252716, -0.17356395721435547, -0.6822986006736755, 1.0130914449691772, -0.054172128438949585, 0.14672543108463287, -0.2502978444099426, 0.4119133949279785, 0.5812432169914246, -0.9607324600219727, 0.5793850421905518, 0.12310979515314102, 0.3276318311691284, 0.32232317328453064, 0.7683623433113098, 0.5500763654708862, -0.04846470430493355, -0.29072877764701843, 0.2794989049434662, 0.4262657165527344, -0.06854822486639023, -0.3068956434726715, 1.0588594675064087, -0.8150784969329834, 0.08809530735015869, -0.438319593667984, -0.06543175131082535, 0.26920661330223083, 0.24292951822280884, 0.4046463966369629, 0.9671847224235535, -0.4105904996395111, 0.1704273223876953, 0.15471436083316803, 0.4328255355358124, 0.32439565658569336, 0.4890565872192383, -0.8823825716972351, -0.21423041820526123, 1.108833909034729, 0.12962691485881805, 0.7610285878181458, 0.034890372306108475, 0.434657484292984, -0.22519123554229736, 0.05441595986485481, -0.9669229388237, 0.4713253974914551, -0.7730233073234558, 0.08543501049280167, -0.3307783305644989, -0.737602949142456, -0.4087982177734375, -0.14438104629516602, -1.0246998071670532, -1.3475499153137207, -0.48870131373405457, -0.03969569131731987, 0.41275179386138916, 0.8914139866828918, -0.42565953731536865, 0.8949258327484131, -1.0300838947296143, 0.18937592208385468, 0.3699864149093628, 0.2667420208454132, 0.016335532069206238, -1.00690758228302, -0.3121929466724396, 0.16541004180908203, -0.4983617961406708, -0.5433071851730347, 0.23131519556045532, 0.17690438032150269, 0.47341886162757874, 0.8983078002929688, 0.4444596767425537, 0.2346140593290329, -0.5175101161003113, 0.64704829454422, 0.6182968020439148, -0.9811790585517883, 0.33474135398864746, -0.14996078610420227, 0.41351601481437683, 0.22303824126720428, 0.31190845370292664, -0.7554313540458679, -0.29928508400917053, -1.1203159093856812, -0.754115641117096, 1.3799033164978027, 0.3036783039569855, -0.48240530490875244, 0.41133713722229004, 0.03174769878387451, 0.43129873275756836, 0.3043961524963379, -0.2071193903684616, -0.339000940322876, -0.09887591749429703, -0.012757624499499798, 0.4411276578903198, -0.27292200922966003, -0.310656875371933, -0.29476937651634216, 1.0230292081832886, 0.024733731523156166, 0.5735155940055847, -0.21479983627796173, 0.028291776776313782, -0.2322879284620285, -0.11010698229074478, 0.43072858452796936, 0.42636188864707947, -0.4265105724334717, 0.5299837589263916, 0.019951101392507553, -0.5317443013191223, 0.03188733756542206, -0.07844571024179459, -0.9318785667419434, -0.009593081660568714, 0.021354058757424355, 1.0516525506973267, 0.6441684365272522, -0.20946693420410156, 0.2903098165988922, -0.08635612577199936, -0.35002121329307556, -0.23993784189224243, 0.20935888588428497, 0.42014166712760925, 0.6294121742248535, 0.16212955117225647, 0.5784452557563782, 0.5138369202613831, -0.6531561017036438, 0.42123499512672424, 0.15965110063552856, -0.739565372467041, -0.7357224822044373, 0.8480028510093689, 0.25589296221733093, -0.7366924285888672, 0.654378354549408, -0.39880141615867615, -0.7668981552124023, 0.7564160227775574, 0.5647967457771301, 0.7626883387565613, -0.11274465173482895, 0.4085567891597748, 0.2097202092409134, 0.4475388526916504, -0.1946878433227539, 0.5528988838195801, 0.048942502588033676, -0.49812328815460205, 0.10191023349761963, -0.7863826751708984, -0.5720728039741516, -0.5058773159980774, -0.9021968841552734, 0.16507335007190704, -0.9545854926109314, -0.7487519383430481, 0.3648286759853363, -0.13681305944919586, -0.5539492964744568, 0.31128448247909546, 0.1248214915394783, 1.119517207145691, -0.7510291934013367, 1.6208633184432983, 1.0202020406723022, -0.09629920870065689, -1.0146801471710205, -0.15740211308002472, 0.5222209095954895, -0.6572147607803345, 0.7613226771354675, 0.07903486490249634, -0.12037719041109085, 0.19870734214782715, -0.10678845643997192, -0.9767329692840576, 0.9909115433692932, 0.5269041061401367, -0.5241640210151672, 0.28698813915252686, 0.07208563387393951, 0.1114259585738182, -0.595521867275238, 0.19797055423259735, 0.7491737008094788, 0.40675294399261475, 0.4997962713241577, -0.8727715611457825, 0.07214055210351944, -0.3267781734466553, 0.2585222125053406, 0.23768258094787598, -0.707115113735199, 1.5383319854736328, -0.040015775710344315, -0.054426539689302444, 0.23944778740406036, 0.48643192648887634, 0.23612630367279053, 0.2292640209197998, 0.568375825881958, 0.49115023016929626, 0.1502038985490799, -0.3552268445491791, 0.8749181628227234, 0.09719715267419815, 0.5534644722938538, 1.248550295829773, -0.5479891300201416, 1.226351022720337, 0.6964424252510071, -0.25272512435913086, 0.48401904106140137, 0.8314639925956726, -0.07665082812309265, 0.8247250914573669, -0.05899969860911369, 0.08089083433151245, -0.31849032640457153, 0.16318093240261078, -0.36525845527648926, 0.06530030816793442, 0.41476964950561523, -0.211447075009346, -0.14991474151611328, 0.07085248082876205, -0.09016555547714233, -0.558681070804596, -0.727177619934082, 0.46318140625953674, 0.6071141362190247, -0.20453913509845734, 0.1362154334783554, 0.34630048274993896, 0.5566919445991516, -0.7612277865409851, 0.21129238605499268, -0.053311992436647415, 0.6731133460998535, 0.20642991364002228, -0.714108943939209, 0.6506938338279724, -0.17873142659664154, -0.10515663772821426, 0.07219412177801132, 1.3335107564926147, -0.3364599645137787, -1.2404450178146362, 0.5723650455474854, 0.317205011844635, 0.45820343494415283, -0.0751832127571106, -0.8110526204109192, 0.35187336802482605, -0.07418849319219589, -0.27621716260910034, 0.1959417313337326, 0.541225254535675, 0.1054098829627037, 0.5706623196601868, 0.3553239107131958, 0.08864295482635498, 0.5816599726676941, 0.1926945596933365, 0.8425653576850891, -0.8595554232597351, -0.8947687745094299, -0.6069548726081848, 0.6816944479942322, -0.22475314140319824, -0.5108668208122253, 0.7960053086280823, 0.7190678715705872, 0.6412160396575928, -0.49813953042030334, 0.4932567775249481, 0.06563451141119003, 0.6386483907699585, -0.3827328681945801, 1.2443095445632935, -0.997535228729248, -0.07987242192029953, -0.23654915392398834, -0.967797577381134, -0.06818447262048721, 0.6693825721740723, 0.16726858913898468, -0.41138410568237305, 0.6767129898071289, 0.8159353137016296, -0.7993628978729248, 0.5625531673431396, 0.570981502532959, 0.44980093836784363, -0.21516455709934235, 0.08006679266691208, 0.8311547636985779, -0.6478828191757202, 0.4915807545185089, -0.6115956902503967, 0.005183289293199778, -0.7138662338256836, -0.8606772422790527, -0.9340893626213074, -0.41199207305908203, -0.3202979862689972, -0.0545227974653244, 0.030277041718363762, 1.0672410726547241, 1.0769306421279907, -0.8196310997009277, -0.3943917453289032, 0.43708446621894836, -0.12364697456359863, -0.11390618234872818, -0.06016700342297554, 0.26054859161376953, 0.7822704911231995, -0.20131514966487885, 0.267465204000473, 0.24944321811199188, 0.1794307678937912, -0.39327654242515564, -0.39129889011383057, -0.0440804623067379, 0.20753751695156097, 0.5334782004356384, 0.04034364968538284, -0.7567973732948303, -0.551239550113678, 0.02846350520849228, -0.4184674322605133, -0.05854497477412224, 0.7052726745605469, 0.11735380440950394, -0.02628498524427414, 0.30248335003852844, 0.4652194678783417, 1.0147576332092285, -0.2651406526565552, 0.34561824798583984, -0.7777881622314453, 0.3490532636642456, -0.11009784787893295, 0.6465340256690979, 0.22636033594608307, -0.07797100394964218, 0.2929220497608185, 0.28212061524391174, -0.262667179107666, -0.829826831817627, 0.021221056580543518, -1.38080894947052, -0.18372158706188202, 1.0471006631851196, -0.13075408339500427, -0.8767586350440979, 0.3171170651912689, -0.42257609963417053, 0.40093693137168884, -0.4941561222076416, 0.10279172658920288, 0.5187476277351379, 0.3649919331073761, -0.5837250351905823, -0.5235956311225891, 0.010060605593025684, -0.029346158728003502, -0.5726868510246277, -0.12023010104894638, 0.32183849811553955, 0.5209499597549438, 0.023718668147921562, 0.532660186290741, 0.17926867306232452, 0.5747398138046265, 0.5983297228813171, 0.41433247923851013, -0.12087357044219971, -0.6474022269248962, -0.04755576327443123, 0.06732123345136642, 0.1349567323923111, -0.31710606813430786 ]
bigscience/bloom-3b
bigscience
"2023-04-14T08:43:29Z"
18,703
70
transformers
[ "transformers", "pytorch", "safetensors", "bloom", "text-generation", "ak", "ar", "as", "bm", "bn", "ca", "code", "en", "es", "eu", "fon", "fr", "gu", "hi", "id", "ig", "ki", "kn", "lg", "ln", "ml", "mr", "ne", "nso", "ny", "or", "pa", "pt", "rn", "rw", "sn", "st", "sw", "ta", "te", "tn", "ts", "tum", "tw", "ur", "vi", "wo", "xh", "yo", "zh", "zhs", "zht", "zu", "arxiv:1909.08053", "arxiv:2110.02861", "arxiv:2108.12409", "license:bigscience-bloom-rail-1.0", "model-index", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-05-19T11:52:27Z"
--- license: bigscience-bloom-rail-1.0 language: - ak - ar - as - bm - bn - ca - code - en - es - eu - fon - fr - gu - hi - id - ig - ki - kn - lg - ln - ml - mr - ne - nso - ny - or - pa - pt - rn - rw - sn - st - sw - ta - te - tn - ts - tum - tw - ur - vi - wo - xh - yo - zh - zhs - zht - zu pipeline_tag: text-generation model-index: - name: bloom results: - task: type: text-generation name: text generation dataset: name: arc_challenge type: arc_challenge metrics: - name: acc type: acc value: 0.27986348122866894 verified: false - task: type: text-generation name: text generation dataset: name: arc_easy type: arc_easy metrics: - name: acc type: acc value: 0.5946969696969697 verified: false - task: type: text-generation name: text generation dataset: name: axb type: axb metrics: - name: acc type: acc value: 0.4433876811594203 verified: false - task: type: text-generation name: text generation dataset: name: axg type: axg metrics: - name: acc type: acc value: 0.5 verified: false - task: type: text-generation name: text generation dataset: name: boolq type: boolq metrics: - name: acc type: acc value: 0.6165137614678899 verified: false - task: type: text-generation name: text generation dataset: name: cb type: cb metrics: - name: acc type: acc value: 0.30357142857142855 verified: false - task: type: text-generation name: text generation dataset: name: cola type: cola metrics: - name: acc type: acc value: 0.610738255033557 verified: false - task: type: text-generation name: text generation dataset: name: copa type: copa metrics: - name: acc type: acc value: 0.63 verified: false - task: type: text-generation name: text generation dataset: name: crows_pairs_english type: crows_pairs_english metrics: - name: acc type: acc value: 0.4973166368515206 verified: false - task: type: text-generation name: text generation dataset: name: crows_pairs_french type: crows_pairs_french metrics: - name: acc type: acc value: 0.5032796660703638 verified: false - task: type: text-generation name: text generation dataset: name: diabla type: diabla metrics: - name: acc type: acc value: 0.28888308977035493 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_afr type: gsarti/flores_101_afr metrics: - name: byte_perplexity type: byte_perplexity value: 6.500798737976343 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_amh type: gsarti/flores_101_amh metrics: - name: byte_perplexity type: byte_perplexity value: 3.9726863338897145 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ara type: gsarti/flores_101_ara metrics: - name: byte_perplexity type: byte_perplexity value: 1.8083841089875814 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_asm type: gsarti/flores_101_asm metrics: - name: byte_perplexity type: byte_perplexity value: 5.699102962086425 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ast type: gsarti/flores_101_ast metrics: - name: byte_perplexity type: byte_perplexity value: 3.9252047073429384 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_azj type: gsarti/flores_101_azj metrics: - name: byte_perplexity type: byte_perplexity value: 6.942805054270002 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_bel type: gsarti/flores_101_bel metrics: - name: byte_perplexity type: byte_perplexity value: 3.614136245847082 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ben type: gsarti/flores_101_ben metrics: - name: byte_perplexity type: byte_perplexity value: 5.121491534300969 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_bos type: gsarti/flores_101_bos metrics: - name: byte_perplexity type: byte_perplexity value: 5.653353469118798 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_bul type: gsarti/flores_101_bul metrics: - name: byte_perplexity type: byte_perplexity value: 2.7014693938055068 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_cat type: gsarti/flores_101_cat metrics: - name: byte_perplexity type: byte_perplexity value: 2.305190041967345 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ceb type: gsarti/flores_101_ceb metrics: - name: byte_perplexity type: byte_perplexity value: 6.291000321323428 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ces type: gsarti/flores_101_ces metrics: - name: byte_perplexity type: byte_perplexity value: 5.447322753586386 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ckb type: gsarti/flores_101_ckb metrics: - name: byte_perplexity type: byte_perplexity value: 3.7255124939234765 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_cym type: gsarti/flores_101_cym metrics: - name: byte_perplexity type: byte_perplexity value: 12.539424151448149 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_dan type: gsarti/flores_101_dan metrics: - name: byte_perplexity type: byte_perplexity value: 5.183309001005672 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_deu type: gsarti/flores_101_deu metrics: - name: byte_perplexity type: byte_perplexity value: 3.1180422286591347 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ell type: gsarti/flores_101_ell metrics: - name: byte_perplexity type: byte_perplexity value: 2.467943456164706 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_eng type: gsarti/flores_101_eng metrics: - name: byte_perplexity type: byte_perplexity value: 2.018740628193298 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_est type: gsarti/flores_101_est metrics: - name: byte_perplexity type: byte_perplexity value: 9.11654425176368 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_fas type: gsarti/flores_101_fas metrics: - name: byte_perplexity type: byte_perplexity value: 3.058009097116482 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_fin type: gsarti/flores_101_fin metrics: - name: byte_perplexity type: byte_perplexity value: 6.847047959628553 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_fra type: gsarti/flores_101_fra metrics: - name: byte_perplexity type: byte_perplexity value: 1.9975177011840075 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ful type: gsarti/flores_101_ful metrics: - name: byte_perplexity type: byte_perplexity value: 11.465912731488828 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_gle type: gsarti/flores_101_gle metrics: - name: byte_perplexity type: byte_perplexity value: 8.681491663539422 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_glg type: gsarti/flores_101_glg metrics: - name: byte_perplexity type: byte_perplexity value: 3.029991089015508 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_guj type: gsarti/flores_101_guj metrics: - name: byte_perplexity type: byte_perplexity value: 4.955224230286231 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_hau type: gsarti/flores_101_hau metrics: - name: byte_perplexity type: byte_perplexity value: 10.758347356372159 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_heb type: gsarti/flores_101_heb metrics: - name: byte_perplexity type: byte_perplexity value: 3.6004478129801667 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_hin type: gsarti/flores_101_hin metrics: - name: byte_perplexity type: byte_perplexity value: 4.712530650588064 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_hrv type: gsarti/flores_101_hrv metrics: - name: byte_perplexity type: byte_perplexity value: 5.822418943372185 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_hun type: gsarti/flores_101_hun metrics: - name: byte_perplexity type: byte_perplexity value: 6.440482646965992 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_hye type: gsarti/flores_101_hye metrics: - name: byte_perplexity type: byte_perplexity value: 3.657718918347166 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ibo type: gsarti/flores_101_ibo metrics: - name: byte_perplexity type: byte_perplexity value: 5.564814003872672 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ind type: gsarti/flores_101_ind metrics: - name: byte_perplexity type: byte_perplexity value: 2.1597101468869373 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_isl type: gsarti/flores_101_isl metrics: - name: byte_perplexity type: byte_perplexity value: 8.082349269518136 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ita type: gsarti/flores_101_ita metrics: - name: byte_perplexity type: byte_perplexity value: 2.9687591414176207 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_jav type: gsarti/flores_101_jav metrics: - name: byte_perplexity type: byte_perplexity value: 7.0573805415708994 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_jpn type: gsarti/flores_101_jpn metrics: - name: byte_perplexity type: byte_perplexity value: 2.7758864197116933 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kam type: gsarti/flores_101_kam metrics: - name: byte_perplexity type: byte_perplexity value: 11.072949642861332 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kan type: gsarti/flores_101_kan metrics: - name: byte_perplexity type: byte_perplexity value: 5.551730651007082 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kat type: gsarti/flores_101_kat metrics: - name: byte_perplexity type: byte_perplexity value: 2.522630524283745 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kaz type: gsarti/flores_101_kaz metrics: - name: byte_perplexity type: byte_perplexity value: 3.3901748516975574 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kea type: gsarti/flores_101_kea metrics: - name: byte_perplexity type: byte_perplexity value: 8.918534182590863 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kir type: gsarti/flores_101_kir metrics: - name: byte_perplexity type: byte_perplexity value: 3.729278369847201 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_kor type: gsarti/flores_101_kor metrics: - name: byte_perplexity type: byte_perplexity value: 3.932884847226212 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_lao type: gsarti/flores_101_lao metrics: - name: byte_perplexity type: byte_perplexity value: 2.9077314760849924 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_lav type: gsarti/flores_101_lav metrics: - name: byte_perplexity type: byte_perplexity value: 7.777221919194806 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_lin type: gsarti/flores_101_lin metrics: - name: byte_perplexity type: byte_perplexity value: 7.524842908050988 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_lit type: gsarti/flores_101_lit metrics: - name: byte_perplexity type: byte_perplexity value: 7.369179434621725 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ltz type: gsarti/flores_101_ltz metrics: - name: byte_perplexity type: byte_perplexity value: 8.801059747949214 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_lug type: gsarti/flores_101_lug metrics: - name: byte_perplexity type: byte_perplexity value: 8.483203026364786 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_luo type: gsarti/flores_101_luo metrics: - name: byte_perplexity type: byte_perplexity value: 11.975963093623681 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mal type: gsarti/flores_101_mal metrics: - name: byte_perplexity type: byte_perplexity value: 4.615948455160037 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mar type: gsarti/flores_101_mar metrics: - name: byte_perplexity type: byte_perplexity value: 5.483253482821379 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mkd type: gsarti/flores_101_mkd metrics: - name: byte_perplexity type: byte_perplexity value: 2.9656732291754087 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mlt type: gsarti/flores_101_mlt metrics: - name: byte_perplexity type: byte_perplexity value: 15.004773437665275 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mon type: gsarti/flores_101_mon metrics: - name: byte_perplexity type: byte_perplexity value: 3.410598542315402 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mri type: gsarti/flores_101_mri metrics: - name: byte_perplexity type: byte_perplexity value: 7.474035895661322 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_msa type: gsarti/flores_101_msa metrics: - name: byte_perplexity type: byte_perplexity value: 2.5710001772665634 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_mya type: gsarti/flores_101_mya metrics: - name: byte_perplexity type: byte_perplexity value: 2.413577969878331 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_nld type: gsarti/flores_101_nld metrics: - name: byte_perplexity type: byte_perplexity value: 4.127831721885065 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_nob type: gsarti/flores_101_nob metrics: - name: byte_perplexity type: byte_perplexity value: 5.402763169129877 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_npi type: gsarti/flores_101_npi metrics: - name: byte_perplexity type: byte_perplexity value: 5.199342701937889 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_nso type: gsarti/flores_101_nso metrics: - name: byte_perplexity type: byte_perplexity value: 8.154626800955667 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_nya type: gsarti/flores_101_nya metrics: - name: byte_perplexity type: byte_perplexity value: 8.179860208369393 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_oci type: gsarti/flores_101_oci metrics: - name: byte_perplexity type: byte_perplexity value: 4.8617357393685845 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_orm type: gsarti/flores_101_orm metrics: - name: byte_perplexity type: byte_perplexity value: 12.911595421079408 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ory type: gsarti/flores_101_ory metrics: - name: byte_perplexity type: byte_perplexity value: 5.189421861225964 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_pan type: gsarti/flores_101_pan metrics: - name: byte_perplexity type: byte_perplexity value: 4.698477289331806 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_pol type: gsarti/flores_101_pol metrics: - name: byte_perplexity type: byte_perplexity value: 4.625550458479643 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_por type: gsarti/flores_101_por metrics: - name: byte_perplexity type: byte_perplexity value: 1.9754515986213523 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_pus type: gsarti/flores_101_pus metrics: - name: byte_perplexity type: byte_perplexity value: 4.4963371422771585 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ron type: gsarti/flores_101_ron metrics: - name: byte_perplexity type: byte_perplexity value: 4.965456830031304 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_rus type: gsarti/flores_101_rus metrics: - name: byte_perplexity type: byte_perplexity value: 2.0498020542445303 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_slk type: gsarti/flores_101_slk metrics: - name: byte_perplexity type: byte_perplexity value: 6.450822127057479 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_slv type: gsarti/flores_101_slv metrics: - name: byte_perplexity type: byte_perplexity value: 6.620252120186232 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_sna type: gsarti/flores_101_sna metrics: - name: byte_perplexity type: byte_perplexity value: 8.462166771382726 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_snd type: gsarti/flores_101_snd metrics: - name: byte_perplexity type: byte_perplexity value: 5.466066951221973 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_som type: gsarti/flores_101_som metrics: - name: byte_perplexity type: byte_perplexity value: 11.95918054093392 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_spa type: gsarti/flores_101_spa metrics: - name: byte_perplexity type: byte_perplexity value: 1.8965140104323535 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_srp type: gsarti/flores_101_srp metrics: - name: byte_perplexity type: byte_perplexity value: 2.871214785885079 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_swe type: gsarti/flores_101_swe metrics: - name: byte_perplexity type: byte_perplexity value: 5.054972008155866 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_swh type: gsarti/flores_101_swh metrics: - name: byte_perplexity type: byte_perplexity value: 3.6973091886730676 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_tam type: gsarti/flores_101_tam metrics: - name: byte_perplexity type: byte_perplexity value: 4.539493400469833 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_tel type: gsarti/flores_101_tel metrics: - name: byte_perplexity type: byte_perplexity value: 5.807499987508966 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_tgk type: gsarti/flores_101_tgk metrics: - name: byte_perplexity type: byte_perplexity value: 3.5994818827380426 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_tgl type: gsarti/flores_101_tgl metrics: - name: byte_perplexity type: byte_perplexity value: 5.667053833119858 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_tha type: gsarti/flores_101_tha metrics: - name: byte_perplexity type: byte_perplexity value: 2.365940201944242 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_tur type: gsarti/flores_101_tur metrics: - name: byte_perplexity type: byte_perplexity value: 4.885014749844601 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_ukr type: gsarti/flores_101_ukr metrics: - name: byte_perplexity type: byte_perplexity value: 2.7240934990288483 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_umb type: gsarti/flores_101_umb metrics: - name: byte_perplexity type: byte_perplexity value: 12.766915508610673 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_urd type: gsarti/flores_101_urd metrics: - name: byte_perplexity type: byte_perplexity value: 1.9797467071381232 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_uzb type: gsarti/flores_101_uzb metrics: - name: byte_perplexity type: byte_perplexity value: 12.002337637722146 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_vie type: gsarti/flores_101_vie metrics: - name: byte_perplexity type: byte_perplexity value: 1.76578415476397 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_wol type: gsarti/flores_101_wol metrics: - name: byte_perplexity type: byte_perplexity value: 9.144285650306488 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_xho type: gsarti/flores_101_xho metrics: - name: byte_perplexity type: byte_perplexity value: 7.403240538286952 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_yor type: gsarti/flores_101_yor metrics: - name: byte_perplexity type: byte_perplexity value: 5.91272037551173 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_zho_simpl type: gsarti/flores_101_zho_simpl metrics: - name: byte_perplexity type: byte_perplexity value: 2.2769070822768533 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_zho_trad type: gsarti/flores_101_zho_trad metrics: - name: byte_perplexity type: byte_perplexity value: 2.5180582198242383 verified: false - task: type: text-generation name: text generation dataset: name: gsarti/flores_101_zul type: gsarti/flores_101_zul metrics: - name: byte_perplexity type: byte_perplexity value: 8.53353320693145 verified: false - task: type: text-generation name: text generation dataset: name: headqa type: headqa metrics: - name: acc type: acc value: 0.26440554339897887 verified: false - task: type: text-generation name: text generation dataset: name: hellaswag type: hellaswag metrics: - name: acc type: acc value: 0.41236805417247563 verified: false - task: type: text-generation name: text generation dataset: name: logiqa type: logiqa metrics: - name: acc type: acc value: 0.2073732718894009 verified: false - task: type: text-generation name: text generation dataset: name: mathqa type: mathqa metrics: - name: acc type: acc value: 0.24958123953098826 verified: false - task: type: text-generation name: text generation dataset: name: mc_taco type: mc_taco metrics: - name: em type: em value: 0.11936936936936937 verified: false - task: type: text-generation name: text generation dataset: name: mnli type: mnli metrics: - name: acc type: acc value: 0.35496688741721855 verified: false - task: type: text-generation name: text generation dataset: name: mnli_mismatched type: mnli_mismatched metrics: - name: acc type: acc value: 0.35211554109031734 verified: false - task: type: text-generation name: text generation dataset: name: mrpc type: mrpc metrics: - name: acc type: acc value: 0.5857843137254902 verified: false - task: type: text-generation name: text generation dataset: name: multirc type: multirc metrics: - name: acc type: acc value: 0.5375412541254125 verified: false - task: type: text-generation name: text generation dataset: name: openbookqa type: openbookqa metrics: - name: acc type: acc value: 0.216 verified: false - task: type: text-generation name: text generation dataset: name: piqa type: piqa metrics: - name: acc type: acc value: 0.7078346028291621 verified: false - task: type: text-generation name: text generation dataset: name: prost type: prost metrics: - name: acc type: acc value: 0.22683603757472245 verified: false - task: type: text-generation name: text generation dataset: name: pubmedqa type: pubmedqa metrics: - name: acc type: acc value: 0.616 verified: false - task: type: text-generation name: text generation dataset: name: qnli type: qnli metrics: - name: acc type: acc value: 0.5072304594545122 verified: false - task: type: text-generation name: text generation dataset: name: qqp type: qqp metrics: - name: acc type: acc value: 0.3842443729903537 verified: false - task: type: text-generation name: text generation dataset: name: race type: race metrics: - name: acc type: acc value: 0.3521531100478469 verified: false - task: type: text-generation name: text generation dataset: name: rte type: rte metrics: - name: acc type: acc value: 0.47653429602888087 verified: false - task: type: text-generation name: text generation dataset: name: sciq type: sciq metrics: - name: acc type: acc value: 0.892 verified: false - task: type: text-generation name: text generation dataset: name: sst type: sst metrics: - name: acc type: acc value: 0.5177752293577982 verified: false - task: type: text-generation name: text generation dataset: name: triviaqa type: triviaqa metrics: - name: acc type: acc value: 0.041633518960487934 verified: false - task: type: text-generation name: text generation dataset: name: tydiqa_primary type: tydiqa_primary metrics: - name: acc type: acc value: 0.3011337608795236 verified: false - task: type: text-generation name: text generation dataset: name: webqs type: webqs metrics: - name: acc type: acc value: 0.01673228346456693 verified: false - task: type: text-generation name: text generation dataset: name: wic type: wic metrics: - name: acc type: acc value: 0.5015673981191222 verified: false - task: type: text-generation name: text generation dataset: name: winogrande type: winogrande metrics: - name: acc type: acc value: 0.5864246250986582 verified: false - task: type: text-generation name: text generation dataset: name: wnli type: wnli metrics: - name: acc type: acc value: 0.471830985915493 verified: false - task: type: text-generation name: text generation dataset: name: wsc type: wsc metrics: - name: acc type: acc value: 0.4423076923076923 verified: false - task: type: text-generation name: text generation dataset: name: humaneval type: humaneval metrics: - name: pass@1 type: pass@1 value: 0.15524390243902436 verified: false - name: pass@10 type: pass@10 value: 0.3220367632383857 verified: false - name: pass@100 type: pass@100 value: 0.5545431515723145 verified: false --- <h1 style='text-align: center '>BLOOM LM</h1> <h2 style='text-align: center '><em>BigScience Large Open-science Open-access Multilingual Language Model</em> </h2> <h3 style='text-align: center '>Model Card</h3> <img src="https://s3.amazonaws.com/moonup/production/uploads/1657124309515-5f17f0a0925b9863e28ad517.png" alt="BigScience Logo" width="800" style="margin-left:'auto' margin-right:'auto' display:'block'"/> Version 1.0 / 26.May.2022 ## Table of Contents 1. [Model Details](#model-details) 2. [Uses](#uses) 3. [Training Data](#training-data) 4. [Risks and Limitations](#risks-and-limitations) 5. [Evaluation](#evaluation) 6. [Recommendations](#recommendations) 7. [Glossary and Calculations](#glossary-and-calculations) 8. [More Information](#more-information) 9. [Model Card Authors](#model-card-authors) ## Model Details ### Basics *This section provides information for anyone who wants to know about the model.* <details> <summary>Click to expand</summary> <br/> **Developed by:** BigScience ([website](https://bigscience.huggingface.co)) * All collaborators are either volunteers or have an agreement with their employer. *(Further breakdown of participants forthcoming.)* **Model Type:** Transformer-based Language Model **Version:** 1.0.0 **Languages:** Multiple; see [training data](#training-data) **License:** RAIL License v1.0 ([link](https://huggingface.co/spaces/bigscience/license)) **Release Date Estimate:** Monday, 11.July.2022 **Send Questions to:** bigscience-contact@googlegroups.com **Cite as:** BigScience, _BigScience Language Open-science Open-access Multilingual (BLOOM) Language Model_. International, May 2021-May 2022 **Funded by:** * The French government. * Hugging Face ([website](https://huggingface.co)). * Organizations of contributors. *(Further breakdown of organizations forthcoming.)* </details> ### Technical Specifications *This section provides information for people who work on model development.* <details> <summary>Click to expand</summary><br/> Please see [the BLOOM training README](https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml#readme) for full details on replicating training. **Model Architecture:** Modified from Megatron-LM GPT2 (see [paper](https://arxiv.org/abs/1909.08053), [BLOOM Megatron code](https://github.com/bigscience-workshop/Megatron-DeepSpeed)): * Decoder-only architecture * Layer normalization applied to word embeddings layer (`StableEmbedding`; see [code](https://github.com/facebookresearch/bitsandbytes), [paper](https://arxiv.org/pdf/2110.02861.pdf)) * ALiBI positional encodings (see [paper](https://arxiv.org/pdf/2108.12409.pdf)), with GeLU activation functions * 3,002,557,440 parameters: * 642,252,800 embedding parameters * 30 layers, 32 attention heads * Hidden layers are 2560-dimensional * Sequence length of 2048 tokens used (see [BLOOM tokenizer](https://huggingface.co/bigscience/tokenizer), [tokenizer description](#tokenization)) **Objective Function:** Cross Entropy with mean reduction (see [API documentation](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html#torch.nn.CrossEntropyLoss)). **Compute infrastructure:** Jean Zay Public Supercomputer, provided by the French government (see [announcement](https://www.enseignementsup-recherche.gouv.fr/fr/signature-du-marche-d-acquisition-de-l-un-des-supercalculateurs-les-plus-puissants-d-europe-46733)). * Hardware: 384 A100 80GB GPUs (48 nodes): * Additional 32 A100 80GB GPUs (4 nodes) in reserve * 8 GPUs per node Using NVLink 4 inter-gpu connects, 4 OmniPath links * CPU: AMD * CPU memory: 512GB per node * GPU memory: 640GB per node * Inter-node connect: Omni-Path Architecture (OPA) * NCCL-communications network: a fully dedicated subnet * Disc IO network: shared network with other types of nodes * Software: * Megatron-DeepSpeed ([Github link](https://github.com/bigscience-workshop/Megatron-DeepSpeed)) * DeepSpeed ([Github link](https://github.com/microsoft/DeepSpeed)) * PyTorch (pytorch-1.11 w/ CUDA-11.5; see [Github link](https://github.com/pytorch/pytorch)) * apex ([Github link](https://github.com/NVIDIA/apex)) #### **Training** Training logs: [Tensorboard link](https://huggingface.co/tensorboard/bigscience/tr11c-2B5-logs) - Number of epochs: 1 (*current target*) - Dates: - Started 11th March, 2022 11:42am PST - Ended 5th July, 2022 - Estimated cost of training: Equivalent of $2-5M in cloud computing (including preliminary experiments) - Server training location: Île-de-France, France #### **Tokenization** The BLOOM tokenizer ([link](https://huggingface.co/bigscience/tokenizer)) is a learned subword tokenizer trained using: - A byte-level Byte Pair Encoding (BPE) algorithm - A simple pre-tokenization rule, no normalization - A vocabulary size of 250,680 It was trained on a subset of a preliminary version of the corpus using alpha-weighting per language. </details> ### Environmental Impact <details> <summary>Click to expand</summary><br/> The training supercomputer, Jean Zay ([website](http://www.idris.fr/eng/jean-zay/jean-zay-presentation-eng.html)), uses mostly nuclear energy. The heat generated by it is reused for heating campus housing. **Estimated carbon emissions:** *(Forthcoming upon completion of training.)* **Estimated electricity usage:** *(Forthcoming upon completion of training.)* </details> <p>&nbsp;</p> ## Uses *This section addresses questions around how the model is intended to be used, discusses the foreseeable users of the model (including those affected by the model), and describes uses that are considered out of scope or misuse of the model. It provides information for anyone considering using the model or who is affected by the model.* <details> <summary>Click to expand</summary><br/> ### Intended Use This model is being created in order to enable public research on large language models (LLMs). LLMs are intended to be used for language generation or as a pretrained base model that can be further fine-tuned for specific tasks. Use cases below are not exhaustive. #### **Direct Use** - Text generation - Exploring characteristics of language generated by a language model - Examples: Cloze tests, counterfactuals, generations with reframings #### **Downstream Use** - Tasks that leverage language models include: Information Extraction, Question Answering, Summarization ### Misuse and Out-of-scope Use *This section addresses what users ought not do with the model.* See the [BLOOM License](https://huggingface.co/spaces/bigscience/license), Attachment A, for detailed usage restrictions. The below list is non-exhaustive, but lists some easily foreseeable problematic use cases. #### **Out-of-scope Uses** Using the model in [high-stakes](#high-stakes) settings is out of scope for this model.  The model is not designed for [critical decisions](#critical-decisions) nor uses with any material consequences on an individual's livelihood or wellbeing. The model outputs content that appears factual but is not correct. ##### Out-of-scope Uses Include: - Usage in biomedical domains, political and legal domains, or finance domains - Usage for evaluating or scoring individuals, such as for employment, education, or credit - Applying the model for critical automatic decisions, generating factual content, creating reliable summaries, or generating predictions that must be correct #### **Misuse** Intentionally using the model for harm, violating [human rights](#human-rights), or other kinds of malicious activities, is a misuse of this model. This includes: - Spam generation - Disinformation and influence operations - Disparagement and defamation - Harassment and abuse - [Deception](#deception) - Unconsented impersonation and imitation - Unconsented surveillance - Generating content without attribution to the model, as specified in the [RAIL License, Use Restrictions](https://huggingface.co/spaces/bigscience/license) ### Intended Users #### **Direct Users** - General Public - Researchers - Students - Educators - Engineers/developers - Non-commercial entities - Community advocates, including human and civil rights groups #### Indirect Users - Users of derivatives created by Direct Users, such as those using software with an [intended use](#intended-use) - Users of [Derivatives of the Model, as described in the License](https://huggingface.co/spaces/bigscience/license) #### Others Affected (Parties Prenantes) - People and groups referred to by the LLM - People and groups exposed to outputs of, or decisions based on, the LLM - People and groups whose original work is included in the LLM </details> <p>&nbsp;</p> ## Training Data *This section provides a high-level overview of the training data. It is relevant for anyone who wants to know the basics of what the model is learning.* <details> <summary>Click to expand</summary><br/> Details for each dataset are provided in individual [Data Cards](https://huggingface.co/spaces/bigscience/BigScienceCorpus). Training data includes: - 45 natural languages - 12 programming languages - In 1.5TB of pre-processed text, converted into 350B unique tokens (see [the tokenizer section](#tokenization) for more.) #### **Languages** The pie chart shows the distribution of languages in training data. ![pie chart showing the distribution of languages in training data](https://github.com/bigscience-workshop/model_card/blob/main/assets/data/pie_chart.svg?raw=true) The following table shows the further distribution of Niger-Congo and Indic languages in the training data. <details> <summary>Click to expand</summary><br/> | Niger Congo | Percentage | | Indic | Percentage | |----------------|------------ |------ |-----------|------------| | Chi Tumbuka | 0.00002 | | Assamese | 0.01 | | Kikuyu | 0.00004 | | Odia | 0.04 | | Bambara | 0.00004 | | Gujarati | 0.04 | | Akan | 0.00007 | | Marathi | 0.05 | | Xitsonga | 0.00007 | | Punjabi | 0.05 | | Sesotho | 0.00007 | | Kannada | 0.06 | | Chi Chewa | 0.0001 | | Nepali | 0.07 | | Setswana | 0.0002 | | Telugu | 0.09 | | Northern Sotho | 0.0002 | | Malayalam | 0.10 | | Fon | 0.0002 | | Urdu | 0.10 | | Kirundi | 0.0003 | | Tamil | 0.20 | | Wolof | 0.0004 | | Bengali | 0.50 | | Kuganda | 0.0004 | | Hindi | 0.70 | | Chi Shona | 0.001 | | Isi Zulu | 0.001 | | Igbo | 0.001 | | Xhosa | 0.001 | | Kinyarwanda | 0.003 | | Yoruba | 0.006 | | Swahili | 0.02 | </details> The following table shows the distribution of programming languages. <details> <summary>Click to expand</summary><br/> | Extension | Language | Number of files | |----------------|------------|-----------------| | java | Java | 5,407,724 | | php | PHP | 4,942,186 | | cpp | C++ | 2,503,930 | | py | Python | 2,435,072 | | js | JavaScript | 1,905,518 | | cs | C# | 1,577,347 | | rb | Ruby | 6,78,413 | | cc | C++ | 443,054 | | hpp | C++ | 391,048 | | lua | Lua | 352,317 | | go | GO | 227,763 | | ts | TypeScript | 195,254 | | C | C | 134,537 | | scala | Scala | 92,052 | | hh | C++ | 67,161 | | H | C++ | 55,899 | | tsx | TypeScript | 33,107 | | rs | Rust | 29,693 | | phpt | PHP | 9,702 | | c++ | C++ | 1,342 | | h++ | C++ | 791 | | php3 | PHP | 540 | | phps | PHP | 270 | | php5 | PHP | 166 | | php4 | PHP | 29 | </details> </details> <p>&nbsp;</p> ## Risks and Limitations *This section identifies foreseeable harms and misunderstandings.* <details> <summary>Click to expand</summary><br/> Model may: - Overrepresent some viewpoints and underrepresent others - Contain stereotypes - Contain [personal information](#personal-data-and-information) - Generate: - Hateful, abusive, or violent language - Discriminatory or prejudicial language - Content that may not be appropriate for all settings, including sexual content - Make errors, including producing incorrect information as if it were factual - Generate irrelevant or repetitive outputs </details> <p>&nbsp;</p> ## Evaluation *This section describes the evaluation protocols and provides the results.* <details> <summary>Click to expand</summary><br/> ### Metrics *This section describes the different ways performance is calculated and why.* Includes: | Metric | Why chosen | |--------------------|--------------------------------------------------------------------| | [Perplexity](#perplexity) | Standard metric for quantifying model improvements during training | | Cross Entropy [Loss](#loss) | Standard objective for language models. | And multiple different metrics for specific tasks. _(More evaluation metrics forthcoming upon completion of evaluation protocol.)_ ### Factors *This section lists some different aspects of BLOOM models. Its focus is on aspects that are likely to give rise to high variance in model behavior.* - Language, such as English or Yoruba - Domain, such as newswire or stories - Demographic characteristics, such as gender or nationality ### Results *Results are based on the [Factors](#factors) and [Metrics](#metrics).* **Zero-shot evaluations:** See this repository for JSON files: https://github.com/bigscience-workshop/evaluation-results | Task | Language | Metric | BLOOM-2B5 | |:----|:----|:----|:----:| | arc_challenge | eng | acc ↑ | 0.28 | | arc_easy | eng | acc ↑ | 0.595 | | axb (Median of 10 prompts) | eng | acc ↑ | 0.443 | | axg (Median of 10 prompts) | eng | acc ↑ | 0.5 | | boolq (Median of 11 prompts) | eng | acc ↑ | 0.617 | | cb (Median of 15 prompts) | eng | acc ↑ | 0.304 | | cola (Median of 5 prompts) | eng | acc ↑ | 0.611 | | copa (Median of 9 prompts) | eng | acc ↑ | 0.63 | | crows_pairs_english (Median of 6 prompts) | eng | acc ↑ | 0.497 | | crows_pairs_french (Median of 7 prompts) | fra | acc ↑ | 0.503 | | diabla (Median of 2 prompts) | eng | acc ↑ | 0.289 | | gsarti/flores_101_afr | afr | byte_perplexity ↓ | 6.501 | | gsarti/flores_101_amh | amh | byte_perplexity ↓ | 3.973 | | gsarti/flores_101_ara | ara | byte_perplexity ↓ | 1.808 | | gsarti/flores_101_asm | asm | byte_perplexity ↓ | 5.699 | | gsarti/flores_101_ast | ast | byte_perplexity ↓ | 3.925 | | gsarti/flores_101_azj | azj | byte_perplexity ↓ | 6.943 | | gsarti/flores_101_bel | bel | byte_perplexity ↓ | 3.614 | | gsarti/flores_101_ben | ben | byte_perplexity ↓ | 5.121 | | gsarti/flores_101_bos | bos | byte_perplexity ↓ | 5.653 | | gsarti/flores_101_bul | bul | byte_perplexity ↓ | 2.701 | | gsarti/flores_101_cat | cat | byte_perplexity ↓ | 2.305 | | gsarti/flores_101_ceb | ceb | byte_perplexity ↓ | 6.291 | | gsarti/flores_101_ces | ces | byte_perplexity ↓ | 5.447 | | gsarti/flores_101_ckb | ckb | byte_perplexity ↓ | 3.726 | | gsarti/flores_101_cym | cym | byte_perplexity ↓ | 12.539 | | gsarti/flores_101_dan | dan | byte_perplexity ↓ | 5.183 | | gsarti/flores_101_deu | deu | byte_perplexity ↓ | 3.118 | | gsarti/flores_101_ell | ell | byte_perplexity ↓ | 2.468 | | gsarti/flores_101_eng | eng | byte_perplexity ↓ | 2.019 | | gsarti/flores_101_est | est | byte_perplexity ↓ | 9.117 | | gsarti/flores_101_fas | fas | byte_perplexity ↓ | 3.058 | | gsarti/flores_101_fin | fin | byte_perplexity ↓ | 6.847 | | gsarti/flores_101_fra | fra | byte_perplexity ↓ | 1.998 | | gsarti/flores_101_ful | ful | byte_perplexity ↓ | 11.466 | | gsarti/flores_101_gle | gle | byte_perplexity ↓ | 8.681 | | gsarti/flores_101_glg | glg | byte_perplexity ↓ | 3.03 | | gsarti/flores_101_guj | guj | byte_perplexity ↓ | 4.955 | | gsarti/flores_101_hau | hau | byte_perplexity ↓ | 10.758 | | gsarti/flores_101_heb | heb | byte_perplexity ↓ | 3.6 | | gsarti/flores_101_hin | hin | byte_perplexity ↓ | 4.713 | | gsarti/flores_101_hrv | hrv | byte_perplexity ↓ | 5.822 | | gsarti/flores_101_hun | hun | byte_perplexity ↓ | 6.44 | | gsarti/flores_101_hye | hye | byte_perplexity ↓ | 3.658 | | gsarti/flores_101_ibo | ibo | byte_perplexity ↓ | 5.565 | | gsarti/flores_101_ind | ind | byte_perplexity ↓ | 2.16 | | gsarti/flores_101_isl | isl | byte_perplexity ↓ | 8.082 | | gsarti/flores_101_ita | ita | byte_perplexity ↓ | 2.969 | | gsarti/flores_101_jav | jav | byte_perplexity ↓ | 7.057 | | gsarti/flores_101_jpn | jpn | byte_perplexity ↓ | 2.776 | | gsarti/flores_101_kam | kam | byte_perplexity ↓ | 11.073 | | gsarti/flores_101_kan | kan | byte_perplexity ↓ | 5.552 | | gsarti/flores_101_kat | kat | byte_perplexity ↓ | 2.523 | | gsarti/flores_101_kaz | kaz | byte_perplexity ↓ | 3.39 | | gsarti/flores_101_kea | kea | byte_perplexity ↓ | 8.919 | | gsarti/flores_101_kir | kir | byte_perplexity ↓ | 3.729 | | gsarti/flores_101_kor | kor | byte_perplexity ↓ | 3.933 | | gsarti/flores_101_lao | lao | byte_perplexity ↓ | 2.908 | | gsarti/flores_101_lav | lav | byte_perplexity ↓ | 7.777 | | gsarti/flores_101_lin | lin | byte_perplexity ↓ | 7.525 | | gsarti/flores_101_lit | lit | byte_perplexity ↓ | 7.369 | | gsarti/flores_101_ltz | ltz | byte_perplexity ↓ | 8.801 | | gsarti/flores_101_lug | lug | byte_perplexity ↓ | 8.483 | | gsarti/flores_101_luo | luo | byte_perplexity ↓ | 11.976 | | gsarti/flores_101_mal | mal | byte_perplexity ↓ | 4.616 | | gsarti/flores_101_mar | mar | byte_perplexity ↓ | 5.483 | | gsarti/flores_101_mkd | mkd | byte_perplexity ↓ | 2.966 | | gsarti/flores_101_mlt | mlt | byte_perplexity ↓ | 15.005 | | gsarti/flores_101_mon | mon | byte_perplexity ↓ | 3.411 | | gsarti/flores_101_mri | mri | byte_perplexity ↓ | 7.474 | | gsarti/flores_101_msa | msa | byte_perplexity ↓ | 2.571 | | gsarti/flores_101_mya | mya | byte_perplexity ↓ | 2.414 | | gsarti/flores_101_nld | nld | byte_perplexity ↓ | 4.128 | | gsarti/flores_101_nob | nob | byte_perplexity ↓ | 5.403 | | gsarti/flores_101_npi | npi | byte_perplexity ↓ | 5.199 | | gsarti/flores_101_nso | nso | byte_perplexity ↓ | 8.155 | | gsarti/flores_101_nya | nya | byte_perplexity ↓ | 8.18 | | gsarti/flores_101_oci | oci | byte_perplexity ↓ | 4.862 | | gsarti/flores_101_orm | orm | byte_perplexity ↓ | 12.912 | | gsarti/flores_101_ory | ory | byte_perplexity ↓ | 5.189 | | gsarti/flores_101_pan | pan | byte_perplexity ↓ | 4.698 | | gsarti/flores_101_pol | pol | byte_perplexity ↓ | 4.626 | | gsarti/flores_101_por | por | byte_perplexity ↓ | 1.975 | | gsarti/flores_101_pus | pus | byte_perplexity ↓ | 4.496 | | gsarti/flores_101_ron | ron | byte_perplexity ↓ | 4.965 | | gsarti/flores_101_rus | rus | byte_perplexity ↓ | 2.05 | | gsarti/flores_101_slk | slk | byte_perplexity ↓ | 6.451 | | gsarti/flores_101_slv | slv | byte_perplexity ↓ | 6.62 | | gsarti/flores_101_sna | sna | byte_perplexity ↓ | 8.462 | | gsarti/flores_101_snd | snd | byte_perplexity ↓ | 5.466 | | gsarti/flores_101_som | som | byte_perplexity ↓ | 11.959 | | gsarti/flores_101_spa | spa | byte_perplexity ↓ | 1.897 | | gsarti/flores_101_srp | srp | byte_perplexity ↓ | 2.871 | | gsarti/flores_101_swe | swe | byte_perplexity ↓ | 5.055 | | gsarti/flores_101_swh | swh | byte_perplexity ↓ | 3.697 | | gsarti/flores_101_tam | tam | byte_perplexity ↓ | 4.539 | | gsarti/flores_101_tel | tel | byte_perplexity ↓ | 5.807 | | gsarti/flores_101_tgk | tgk | byte_perplexity ↓ | 3.599 | | gsarti/flores_101_tgl | tgl | byte_perplexity ↓ | 5.667 | | gsarti/flores_101_tha | tha | byte_perplexity ↓ | 2.366 | | gsarti/flores_101_tur | tur | byte_perplexity ↓ | 4.885 | | gsarti/flores_101_ukr | ukr | byte_perplexity ↓ | 2.724 | | gsarti/flores_101_umb | umb | byte_perplexity ↓ | 12.767 | | gsarti/flores_101_urd | urd | byte_perplexity ↓ | 1.98 | | gsarti/flores_101_uzb | uzb | byte_perplexity ↓ | 12.002 | | gsarti/flores_101_vie | vie | byte_perplexity ↓ | 1.766 | | gsarti/flores_101_wol | wol | byte_perplexity ↓ | 9.144 | | gsarti/flores_101_xho | xho | byte_perplexity ↓ | 7.403 | | gsarti/flores_101_yor | yor | byte_perplexity ↓ | 5.913 | | gsarti/flores_101_zho_simpl | zho_simpl | byte_perplexity ↓ | 2.277 | | gsarti/flores_101_zho_trad | zho_trad | byte_perplexity ↓ | 2.518 | | gsarti/flores_101_zul | zul | byte_perplexity ↓ | 8.534 | | headqa | esp | acc ↑ | 0.264 | | hellaswag | eng | acc ↑ | 0.412 | | logiqa | eng | acc ↑ | 0.207 | | mathqa | eng | acc ↑ | 0.25 | | mc_taco | eng | em ↑ | 0.119 | | mnli (Median of 15 prompts) | eng | acc ↑ | 0.355 | | mnli_mismatched (Median of 15 prompts) | eng | acc ↑ | 0.352 | | mrpc | eng | acc ↑ | 0.586 | | multirc (Median of 11 prompts) | eng | acc ↑ | 0.538 | | openbookqa | eng | acc ↑ | 0.216 | | piqa | eng | acc ↑ | 0.708 | | prost | eng | acc ↑ | 0.227 | | pubmedqa | eng | acc ↑ | 0.616 | | qnli | eng | acc ↑ | 0.507 | | qqp (Median of 7 prompts) | eng | acc ↑ | 0.384 | | race | eng | acc ↑ | 0.352 | | rte (Median of 6 prompts) | eng | acc ↑ | 0.477 | | sciq | eng | acc ↑ | 0.892 | | sst (Median of 6 prompts) | eng | acc ↑ | 0.518 | | triviaqa | eng | acc ↑ | 0.042 | | tydiqa_primary (Median of 24 prompts) | eng | acc ↑ | 0.301 | | webqs | eng | acc ↑ | 0.017 | | wic (Median of 11 prompts) | eng | acc ↑ | 0.502 | | winogrande | eng | acc ↑ | 0.586 | | wnli (Median of 6 prompts) | eng | acc ↑ | 0.472 | | wsc (Median of 11 prompts) | eng | acc ↑ | 0.442 | | humaneval | python | pass@1 ↑ | 0.155 | | humaneval | python | pass@10 ↑ | 0.322 | | humaneval | python | pass@100 ↑ | 0.555 | **Train-time Evaluation:** As of 25.May.2022, 15:00 PST: - Training Loss: 2.0 - Validation Loss: 2.2 - Perplexity: 8.9 </details> <p>&nbsp;</p> ## Recommendations *This section provides information on warnings and potential mitigations.* <details> <summary>Click to expand</summary><br/> - Indirect users should be made aware when the content they're working with is created by the LLM. - Users should be aware of [Risks and Limitations](#risks-and-limitations), and include an appropriate age disclaimer or blocking interface as necessary. - Models pretrained with the LLM should include an updated Model Card. - Users of the model should provide mechanisms for those affected to provide feedback, such as an email address for comments. </details> <p>&nbsp;</p> ## Glossary and Calculations *This section defines common terms and how metrics are calculated.* <details> <summary>Click to expand</summary><br/> - <a name="loss">**Loss:**</a> A calculation of the difference between what the model has learned and what the data shows ("groundtruth"). The lower the loss, the better. The training process aims to minimize the loss. - <a name="perplexity">**Perplexity:**</a> This is based on what the model estimates the probability of new data is. The lower the perplexity, the better. If the model is 100% correct at predicting the next token it will see, then the perplexity is 1. Mathematically this is calculated using entropy. - <a name="high-stakes">**High-stakes settings:**</a> Such as those identified as "high-risk AI systems" and "unacceptable risk AI systems" in the European Union's proposed [Artificial Intelligence (AI) Act](https://artificialintelligenceact.eu/annexes/). - <a name="critical-decisions">**Critical decisions:**</a> Such as those defined in [the United States' proposed Algorithmic Accountability Act](https://www.congress.gov/117/bills/s3572/BILLS-117s3572is.pdf). - <a name="human-rights">**Human rights:**</a> Includes those rights defined in the [Universal Declaration of Human Rights](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf). - <a name="personal-data-and-information">**Personal Data and Personal Information:**</a> Personal data and information is defined in multiple data protection regulations, such as "[personal data](https://gdpr-info.eu/issues/personal-data/)" in the [European Union's General Data Protection Regulation](https://gdpr-info.eu); and "personal information" in the Republic of South Africa's [Protection of Personal Information Act](https://www.gov.za/sites/default/files/gcis_document/201409/3706726-11act4of2013popi.pdf), The People's Republic of China's [Personal information protection law](http://en.npc.gov.cn.cdurl.cn/2021-12/29/c_694559.htm). - <a name="sensitive-characteristics">**Sensitive characteristics:**</a> This includes specifically protected categories in human rights (see [UHDR, Article 2](https://www.un.org/sites/un2.un.org/files/2021/03/udhr.pdf)) and personal information regulation (see GDPR, [Article 9; Protection of Personal Information Act, Chapter 1](https://www.gov.za/sites/default/files/gcis_document/201409/3706726-11act4of2013popi.pdf)) - <a name="deception">**Deception:**</a> Doing something to intentionally mislead individuals to believe something that is false, such as by creating deadbots or chatbots on social media posing as real people, or generating text documents without making consumers aware that the text is machine generated. </details> <p>&nbsp;</p> ## More Information <details> <summary>Click to expand</summary><br/> ### Dataset Creation Blog post detailing the design choices during the dataset creation: https://bigscience.huggingface.co/blog/building-a-tb-scale-multilingual-dataset-for-language-modeling ### Technical Specifications Blog post summarizing how the architecture, size, shape, and pre-training duration where selected: https://bigscience.huggingface.co/blog/what-language-model-to-train-if-you-have-two-million-gpu-hours More details on the architecture/optimizer: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml Blog post on the hardware/engineering side: https://bigscience.huggingface.co/blog/which-hardware-to-train-a-176b-parameters-model Details on the distributed setup used for the training: https://github.com/bigscience-workshop/bigscience/tree/master/train/tr11-176B-ml Tensorboard updated during the training: https://huggingface.co/bigscience/tr11-176B-ml-logs/tensorboard#scalars&tagFilter=loss Insights on how to approach training, negative results: https://github.com/bigscience-workshop/bigscience/blob/master/train/lessons-learned.md Details on the obstacles overcome during the preparation on the engineering side (instabilities, optimization of training throughput, so many technical tricks and questions): https://github.com/bigscience-workshop/bigscience/blob/master/train/tr11-176B-ml/chronicles.md ### Initial Results Initial prompting experiments using interim checkpoints: https://huggingface.co/spaces/bigscience/bloom-book </details> <p>&nbsp;</p> ## Model Card Authors *Ordered roughly chronologically and by amount of time spent.* Margaret Mitchell, Giada Pistilli, Yacine Jernite, Ezinwanne Ozoani, Marissa Gerchick, Nazneen Rajani, Sasha Luccioni, Irene Solaiman, Maraim Masoud, Somaieh Nikpoor, Carlos Muñoz Ferrandis, Stas Bekman, Christopher Akiki, Danish Contractor, David Lansky, Angelina McMillan-Major, Tristan Thrush, Suzana Ilić, Gérard Dupont, Shayne Longpre, Manan Dey, Stella Biderman, Douwe Kiela, Emi Baylor, Teven Le Scao, Aaron Gokaslan, Julien Launay, Niklas Muennighoff
[ -0.3713136613368988, -0.6990517973899841, 0.4255642592906952, 0.11288624256849289, -0.07947342842817307, -0.18303093314170837, -0.46828150749206543, -0.5379869937896729, 0.08977553993463516, 0.22222983837127686, -0.3589364290237427, -0.4800049066543579, -0.6600000262260437, 0.0579075925052166, -0.32835930585861206, 0.983596920967102, 0.04598839208483696, 0.167156383395195, 0.0012398367980495095, 0.11159463971853256, -0.13678090274333954, -0.6346588134765625, -0.5388153195381165, -0.367374062538147, 0.5640355348587036, 0.3129573166370392, 0.6713095903396606, 0.6415672302246094, 0.6157916784286499, 0.25825992226600647, -0.41964930295944214, -0.07846029102802277, -0.5277655124664307, -0.3665772080421448, -0.259263813495636, -0.1865808665752411, -0.6237789988517761, -0.04714776575565338, 0.8600566387176514, 0.622962474822998, 0.024620389565825462, 0.31528061628341675, -0.014715240336954594, 0.5078433156013489, -0.548383355140686, 0.3208172619342804, -0.5098087787628174, 0.06916092336177826, -0.2215322107076645, 0.2810622751712799, -0.31386077404022217, -0.0009541083127260208, 0.056600116193294525, -0.4594143331050873, 0.15856368839740753, 0.007039567455649376, 0.9156875610351562, -0.0372873991727829, -0.10243232548236847, -0.0824815109372139, -0.7527948021888733, 0.8203155994415283, -0.8315507769584656, 0.5591776371002197, 0.3378487527370453, 0.23130448162555695, 0.04497908428311348, -0.8996375799179077, -0.7454805374145508, -0.18683885037899017, 0.06559135019779205, 0.361526221036911, -0.19352954626083374, 0.060964662581682205, 0.35413646697998047, 0.5714898705482483, -0.5723856091499329, 0.23986250162124634, -0.4921795725822449, -0.0782458633184433, 0.6306094527244568, 0.032671697437763214, 0.15808118879795074, -0.22730471193790436, -0.18828518688678741, -0.35207399725914, -0.5966199040412903, -0.20404362678527832, 0.21313714981079102, 0.44224435091018677, -0.35277870297431946, 0.6498507261276245, 0.16921359300613403, 0.387431800365448, -0.2678789496421814, 0.01379389502108097, 0.46281105279922485, -0.5242663025856018, -0.3638050854206085, -0.19613511860370636, 0.9594992995262146, 0.19038449227809906, -0.026638038456439972, -0.10304363071918488, -0.07995500415563583, -0.20080973207950592, 0.028568308800458908, -0.9142880439758301, -0.12111854553222656, 0.39862269163131714, -0.29706862568855286, -0.10981737077236176, 0.013291140086948872, -0.9976611733436584, -0.07502821087837219, -0.14007233083248138, 0.44225290417671204, -0.6337035298347473, -0.4407368004322052, 0.2681170701980591, -0.08001695573329926, 0.14626359939575195, 0.0928451269865036, -0.816285252571106, 0.25708499550819397, 0.5586996078491211, 0.9979904294013977, -0.08393015712499619, -0.5915431380271912, -0.01841074414551258, 0.061710163950920105, -0.03595997393131256, 0.2105107605457306, -0.21484944224357605, -0.5349676012992859, -0.06840528547763824, 0.1603921353816986, -0.06133754551410675, -0.20636627078056335, 0.5536953210830688, -0.3927176594734192, 0.3399186134338379, -0.288916677236557, -0.5679859519004822, -0.03775861859321594, 0.03171020373702049, -0.5936431884765625, 1.0216947793960571, 0.022457588464021683, -0.8346606492996216, 0.1557939350605011, -0.9680453538894653, -0.17238301038742065, 0.04890530928969383, 0.13094280660152435, -0.5736321806907654, -0.1253710836172104, 0.10268120467662811, 0.3841836452484131, -0.2755850553512573, 0.2798873782157898, -0.11651833355426788, -0.13377858698368073, 0.09505878388881683, -0.3486279547214508, 0.7769717574119568, 0.364121675491333, -0.5482310056686401, 0.053311482071876526, -0.6268078088760376, -0.11317769438028336, 0.35399383306503296, -0.38335758447647095, 0.1672997921705246, -0.12264751642942429, 0.38880401849746704, 0.20689444243907928, 0.27542975544929504, -0.6792926788330078, 0.289678692817688, -0.597926139831543, 0.6897658109664917, 0.5801190733909607, -0.13441644608974457, 0.3117205798625946, -0.19442813098430634, 0.33113741874694824, 0.07307767122983932, 0.3088013827800751, -0.23640714585781097, -0.6035003066062927, -0.7611365914344788, -0.45087137818336487, 0.3985421359539032, 0.4598437249660492, -0.4413394033908844, 0.6081352829933167, -0.4614867866039276, -0.7432768940925598, -0.40838322043418884, -0.0668809786438942, 0.5475211143493652, 0.32021424174308777, 0.6962227821350098, -0.0689757689833641, -0.5291719436645508, -0.7339196801185608, 0.062185827642679214, 0.07881294935941696, 0.19665217399597168, 0.3627561330795288, 1.0028749704360962, -0.4718042314052582, 0.7960966229438782, -0.5175141096115112, -0.06302819401025772, -0.2333940863609314, -0.008632033132016659, 0.30336055159568787, 0.5178049206733704, 0.4246504604816437, -0.7157090306282043, -0.2546229362487793, 0.033217038959264755, -0.6519890427589417, 0.32805073261260986, 0.24027442932128906, 0.0017273037228733301, 0.2564420700073242, 0.4853247106075287, -0.8203302025794983, 0.27733495831489563, 0.6754891276359558, -0.12820978462696075, 0.6902163624763489, -0.24281218647956848, -0.09772571176290512, -1.3200048208236694, 0.4780195355415344, 0.02361455373466015, 0.024400103837251663, -0.4786016643047333, 0.23392163217067719, -0.06833886355161667, -0.4018296003341675, -0.6077094078063965, 0.7499886751174927, -0.38928043842315674, 0.06857047975063324, -0.1497555375099182, -0.021783608943223953, -0.11575599759817123, 0.3224751949310303, 0.1095048263669014, 0.8733665943145752, 0.6732255220413208, -0.5914238095283508, 0.13888387382030487, 0.1423860341310501, -0.16751261055469513, 0.06494822353124619, -0.8414134383201599, 0.10154636204242706, -0.10754843801259995, 0.27557989954948425, -0.7067632079124451, -0.30119094252586365, 0.20270785689353943, -0.5359128713607788, 0.4138345718383789, -0.005397837609052658, -0.7769519090652466, -0.660428524017334, -0.20429815351963043, 0.37527963519096375, 0.5755335092544556, -0.4377058744430542, 0.36414653062820435, 0.3007766008377075, 0.15762309730052948, -0.48165619373321533, -0.8697236776351929, 0.1033930853009224, -0.13780854642391205, -0.5755605101585388, 0.5069153904914856, -0.13744494318962097, -0.07039792090654373, 0.0676746740937233, 0.23552972078323364, 0.056781671941280365, 0.02695266529917717, 0.3093445599079132, 0.11608588695526123, -0.16458754241466522, 0.33609363436698914, -0.26775485277175903, -0.018413309007883072, -0.07494008541107178, -0.5620346665382385, 0.6717568039894104, -0.26239338517189026, -0.31930074095726013, -0.469390869140625, 0.2771107852458954, 0.6527122855186462, -0.25777667760849, 1.0419797897338867, 0.7772031426429749, -0.5754246711730957, 0.05337350815534592, -0.4600840210914612, -0.3397764265537262, -0.45470812916755676, 0.6524918675422668, -0.035747360438108444, -0.9073343276977539, 0.3939192593097687, 0.09064734727144241, 0.1726941019296646, 0.7162728905677795, 0.6805363893508911, 0.12141047418117523, 0.7814444899559021, 0.6316578984260559, -0.2159060835838318, 0.5277707576751709, -0.6182665228843689, 0.30504944920539856, -0.865027129650116, -0.12075761705636978, -0.47253742814064026, -0.09145276993513107, -0.579679012298584, -0.6294117569923401, 0.2895214855670929, 0.1824103742837906, -0.5006309747695923, 0.4197258949279785, -0.5243694186210632, 0.2623661458492279, 0.5645738840103149, 0.04101750999689102, 0.05862804502248764, 0.07236313074827194, -0.169332355260849, -0.06473759561777115, -0.7344918847084045, -0.5895969867706299, 1.2390836477279663, 0.6474929451942444, 0.40986430644989014, 0.05915793031454086, 0.6173504590988159, -0.00012126169167459011, 0.19468912482261658, -0.6446253657341003, 0.52067631483078, -0.09061390906572342, -0.7750639915466309, -0.3658941686153412, -0.5516917109489441, -1.1028597354888916, 0.1808459609746933, -0.2822332978248596, -0.9448956251144409, 0.015259375795722008, 0.23047439754009247, -0.244565948843956, 0.6691186428070068, -0.7489507794380188, 0.9236711263656616, -0.268586665391922, -0.4448881447315216, -0.24650046229362488, -0.5376144051551819, 0.2568776309490204, 0.01618666760623455, 0.3759342133998871, 0.19592416286468506, 0.17694492638111115, 0.7537752389907837, -0.49329665303230286, 0.8998377323150635, -0.1390843391418457, 0.07551173865795135, 0.2740166485309601, -0.28608009219169617, 0.4363546371459961, 0.022933008149266243, -0.17189058661460876, 0.5652093887329102, -0.050661712884902954, -0.3369876742362976, -0.11681179702281952, 0.7601025700569153, -1.029208779335022, -0.37563619017601013, -0.5555795431137085, -0.5117037296295166, -0.04316762089729309, 0.430635929107666, 0.5123984217643738, 0.20248077809810638, -0.2477530688047409, 0.2304019331932068, 0.6569580435752869, -0.5579885244369507, 0.38218817114830017, 0.32025694847106934, -0.3802861273288727, -0.5904262065887451, 1.0480631589889526, 0.13694262504577637, 0.29244229197502136, 0.335472971200943, 0.3635956048965454, -0.2745613157749176, -0.5635747313499451, -0.3137500286102295, 0.491363525390625, -0.5176142454147339, -0.10914749652147293, -0.81489497423172, -0.4571443498134613, -0.708240807056427, 0.12350738048553467, -0.5397724509239197, -0.23348131775856018, -0.5196927785873413, -0.17904576659202576, 0.4028204679489136, 0.5388732552528381, -0.1747911274433136, 0.4076453149318695, -0.6173017621040344, 0.043710857629776, 0.19823309779167175, 0.2515217959880829, 0.05664268881082535, -0.5809319019317627, -0.4461660087108612, 0.2970620393753052, -0.48430120944976807, -0.5924716591835022, 0.324598491191864, 0.16932819783687592, 0.3908465802669525, 0.10253548622131348, -0.3990382254123688, 0.41063815355300903, -0.5013743042945862, 1.0538805723190308, 0.3510330617427826, -0.8825151920318604, 0.5071125030517578, -0.4111385643482208, 0.38509273529052734, 0.39180630445480347, 0.507604718208313, -0.519314169883728, -0.13411612808704376, -0.7758646607398987, -1.0710252523422241, 0.6060177683830261, 0.22694820165634155, 0.2110864669084549, -0.10915806889533997, 0.39314889907836914, -0.26591426134109497, 0.1911597102880478, -0.9186484217643738, -0.2936362624168396, -0.32190248370170593, -0.12983600795269012, -0.3387371897697449, -0.24953724443912506, -0.14383499324321747, -0.3951551914215088, 0.8246203064918518, 0.009758859872817993, 0.5627061724662781, 0.25579023361206055, -0.12329943478107452, -0.03561627119779587, 0.16898779571056366, 0.6604359745979309, 0.5860214233398438, -0.23060573637485504, -0.029561029747128487, 0.29985079169273376, -0.7514249682426453, -0.15750938653945923, 0.2745356857776642, -0.15135978162288666, -0.13675867021083832, 0.34144341945648193, 0.8065508008003235, 0.21414777636528015, -0.587608814239502, 0.5083557367324829, 0.15661607682704926, -0.3811263144016266, -0.3046351671218872, -0.08098109811544418, 0.3527916371822357, 0.1467626690864563, 0.2073519080877304, -0.1540238857269287, -0.02910790406167507, -0.5240506529808044, 0.07237827032804489, 0.438638836145401, -0.2807217836380005, -0.4382403790950775, 0.7423110008239746, 0.029530616477131844, -0.26400601863861084, 0.48805704712867737, -0.3246009051799774, -0.500636100769043, 0.5350610613822937, 0.5810871124267578, 0.7271323204040527, -0.05308154970407486, 0.05301297828555107, 0.7291638255119324, 0.41067349910736084, -0.10199830681085587, 0.24286827445030212, 0.24411991238594055, -0.5787951350212097, -0.3947233259677887, -0.7616312503814697, -0.3418402075767517, 0.3274194598197937, -0.35242488980293274, 0.3165348470211029, -0.5726736783981323, -0.2599906027317047, 0.090264692902565, 0.06729759275913239, -0.7708135843276978, 0.18554024398326874, 0.30555278062820435, 1.0612753629684448, -0.7570530772209167, 0.8331449031829834, 0.6653176546096802, -0.6213937401771545, -0.8254185318946838, -0.07771804183721542, -0.023864414542913437, -0.6891176104545593, 0.6956367492675781, 0.10589932650327682, 0.030313974246382713, 0.06880463659763336, -0.6646450757980347, -1.0370794534683228, 1.1803855895996094, 0.3234776258468628, -0.6223435401916504, 0.018435919657349586, 0.18734565377235413, 0.681637704372406, -0.02095814421772957, 0.37366488575935364, 0.29198557138442993, 0.5667498707771301, 0.19764362275600433, -0.9779831767082214, -0.0021340642124414444, -0.2158907949924469, -0.03425007313489914, 0.06984389573335648, -0.8472906351089478, 1.0864367485046387, -0.14646072685718536, -0.2020074725151062, 0.015102723613381386, 0.6743249893188477, 0.13222602009773254, 0.049560580402612686, 0.1219172552227974, 0.8644320964813232, 0.7676723599433899, -0.15551038086414337, 1.0637407302856445, -0.48626983165740967, 0.6227144002914429, 0.91416335105896, -0.08100566267967224, 0.7813428044319153, 0.3539827764034271, -0.4390871524810791, 0.2569398283958435, 0.4412030279636383, -0.18298979103565216, 0.24311746656894684, 0.27138015627861023, -0.11648881435394287, 0.05185288190841675, -0.040055595338344574, -0.6762632131576538, 0.22562067210674286, 0.376496285200119, -0.5484170317649841, -0.06976044923067093, 0.10804124921560287, 0.213365375995636, -0.24690811336040497, -0.28823333978652954, 0.45268404483795166, 0.12703117728233337, -0.48393863439559937, 0.49836406111717224, 0.20481379330158234, 0.7469270825386047, -0.7015383243560791, 0.0929710865020752, 0.012706333771348, 0.31491342186927795, -0.24474771320819855, -0.777635395526886, 0.14672429859638214, -0.007207924034446478, -0.2442980855703354, -0.14722254872322083, 0.3523576557636261, -0.2535835802555084, -0.6534426212310791, 0.37250766158103943, 0.27852147817611694, 0.20951999723911285, -0.08428049832582474, -0.8358660936355591, 0.17321854829788208, -0.24870038032531738, -0.3242761492729187, 0.2950851023197174, 0.23671887814998627, 0.23219428956508636, 0.5140201449394226, 0.6585204005241394, 0.2181488424539566, 0.0898318737745285, 0.015477352775633335, 0.9025653004646301, -0.6739417314529419, -0.1957150250673294, -0.8346328735351562, 0.4495650827884674, -0.06476671993732452, -0.5554960370063782, 0.8850702047348022, 0.7965371012687683, 0.8555492162704468, 0.029387906193733215, 0.7998606562614441, -0.12838022410869598, 0.33853405714035034, -0.4170868396759033, 0.5662564635276794, -0.6321190595626831, -0.059932418167591095, -0.4846259355545044, -0.8997941017150879, -0.3479783535003662, 0.4877186417579651, -0.42994147539138794, 0.2773171663284302, 0.6239456534385681, 0.7836928963661194, -0.15631267428398132, 0.0656377375125885, 0.20080910623073578, 0.4488447308540344, 0.45279669761657715, 0.5074463486671448, 0.5090733766555786, -0.5342799425125122, 0.39265960454940796, -0.25870370864868164, -0.19849975407123566, -0.3270755708217621, -0.8341445326805115, -0.7244794368743896, -0.5937466025352478, -0.33712300658226013, -0.4804137945175171, 0.08856417238712311, 0.9360916018486023, 0.7575421333312988, -0.8007971048355103, -0.28491613268852234, -0.3243047297000885, -0.1576446145772934, -0.10867789387702942, -0.21020042896270752, 0.550466775894165, -0.18848495185375214, -0.6962850689888, 0.2378511130809784, 0.17117327451705933, 0.13633957505226135, -0.4579921066761017, -0.11325771361589432, -0.44770509004592896, -0.06880278140306473, 0.6076458692550659, 0.5342102646827698, -0.5511884689331055, -0.199632927775383, 0.14422419667243958, -0.1996627002954483, -0.014217602089047432, 0.44326961040496826, -0.2801212668418884, 0.3509359061717987, 0.3143678605556488, 0.5396742224693298, 0.6953911781311035, -0.24671094119548798, 0.19801434874534607, -0.4582413136959076, 0.15235894918441772, 0.3504501283168793, 0.4955838620662689, 0.3554132580757141, -0.31915366649627686, 0.37530219554901123, 0.3981626331806183, -0.7122392058372498, -0.7633348107337952, 0.13253524899482727, -0.9310379028320312, -0.29541391134262085, 1.4444712400436401, -0.08459648489952087, -0.35503220558166504, 0.24691177904605865, -0.16131643950939178, 0.24174180626869202, -0.22748054563999176, 0.5714215636253357, 0.7064017057418823, 0.11536742001771927, -0.05310449004173279, -0.64268559217453, 0.3352174162864685, 0.348486065864563, -0.7914228439331055, 0.07389520853757858, 0.3767690658569336, 0.33771416544914246, 0.3908337652683258, 0.4618026316165924, -0.21853093802928925, 0.08253370970487595, -0.03786090761423111, 0.42258062958717346, -0.10909432917833328, -0.24619212746620178, -0.3839215040206909, -0.03227495402097702, 0.07105983793735504, -0.060528963804244995 ]
bigcode/starcoder
bigcode
"2023-10-05T09:24:35Z"
18,688
2,488
transformers
[ "transformers", "pytorch", "gpt_bigcode", "text-generation", "code", "dataset:bigcode/the-stack-dedup", "arxiv:1911.02150", "arxiv:2205.14135", "arxiv:2207.14255", "arxiv:2305.06161", "license:bigcode-openrail-m", "model-index", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-04-24T12:36:52Z"
--- pipeline_tag: text-generation inference: true widget: - text: 'def print_hello_world():' example_title: Hello world group: Python license: bigcode-openrail-m datasets: - bigcode/the-stack-dedup metrics: - code_eval library_name: transformers tags: - code model-index: - name: StarCoder results: - task: type: text-generation dataset: type: openai_humaneval name: HumanEval (Prompted) metrics: - name: pass@1 type: pass@1 value: 0.408 verified: false - task: type: text-generation dataset: type: openai_humaneval name: HumanEval metrics: - name: pass@1 type: pass@1 value: 0.336 verified: false - task: type: text-generation dataset: type: mbpp name: MBPP metrics: - name: pass@1 type: pass@1 value: 0.527 verified: false - task: type: text-generation dataset: type: ds1000 name: DS-1000 (Overall Completion) metrics: - name: pass@1 type: pass@1 value: 0.26 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (C++) metrics: - name: pass@1 type: pass@1 value: 0.3155 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (C#) metrics: - name: pass@1 type: pass@1 value: 0.2101 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (D) metrics: - name: pass@1 type: pass@1 value: 0.1357 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Go) metrics: - name: pass@1 type: pass@1 value: 0.1761 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Java) metrics: - name: pass@1 type: pass@1 value: 0.3022 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Julia) metrics: - name: pass@1 type: pass@1 value: 0.2302 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (JavaScript) metrics: - name: pass@1 type: pass@1 value: 0.3079 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Lua) metrics: - name: pass@1 type: pass@1 value: 0.2389 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (PHP) metrics: - name: pass@1 type: pass@1 value: 0.2608 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Perl) metrics: - name: pass@1 type: pass@1 value: 0.1734 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Python) metrics: - name: pass@1 type: pass@1 value: 0.3357 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (R) metrics: - name: pass@1 type: pass@1 value: 0.155 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Ruby) metrics: - name: pass@1 type: pass@1 value: 0.0124 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Racket) metrics: - name: pass@1 type: pass@1 value: 0.0007 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Rust) metrics: - name: pass@1 type: pass@1 value: 0.2184 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Scala) metrics: - name: pass@1 type: pass@1 value: 0.2761 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Bash) metrics: - name: pass@1 type: pass@1 value: 0.1046 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Swift) metrics: - name: pass@1 type: pass@1 value: 0.2274 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (TypeScript) metrics: - name: pass@1 type: pass@1 value: 0.3229 verified: false extra_gated_prompt: >- ## Model License Agreement Please read the BigCode [OpenRAIL-M license](https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement) agreement before accepting it. extra_gated_fields: I accept the above license agreement, and will use the Model complying with the set of use restrictions and sharing requirements: checkbox --- # StarCoder ![banner](https://huggingface.co/datasets/bigcode/admin/resolve/main/StarCoderBanner.png) Play with the model on the [StarCoder Playground](https://huggingface.co/spaces/bigcode/bigcode-playground). ## Table of Contents 1. [Model Summary](##model-summary) 2. [Use](##use) 3. [Limitations](##limitations) 4. [Training](##training) 5. [License](##license) 6. [Citation](##citation) ## Model Summary The StarCoder models are 15.5B parameter models trained on 80+ programming languages from [The Stack (v1.2)](https://huggingface.co/datasets/bigcode/the-stack), with opt-out requests excluded. The model uses [Multi Query Attention](https://arxiv.org/abs/1911.02150), [a context window of 8192 tokens](https://arxiv.org/abs/2205.14135), and was trained using the [Fill-in-the-Middle objective](https://arxiv.org/abs/2207.14255) on 1 trillion tokens. - **Repository:** [bigcode/Megatron-LM](https://github.com/bigcode-project/Megatron-LM) - **Project Website:** [bigcode-project.org](https://www.bigcode-project.org) - **Paper:** [💫StarCoder: May the source be with you!](https://arxiv.org/abs/2305.06161) - **Point of Contact:** [contact@bigcode-project.org](mailto:contact@bigcode-project.org) - **Languages:** 80+ Programming languages ## Use ### Intended use The model was trained on GitHub code. As such it is _not_ an instruction model and commands like "Write a function that computes the square root." do not work well. However, by using the [Tech Assistant prompt](https://huggingface.co/datasets/bigcode/ta-prompt) you can turn it into a capable technical assistant. **Feel free to share your generations in the Community tab!** ### Generation ```python # pip install -q transformers from transformers import AutoModelForCausalLM, AutoTokenizer checkpoint = "bigcode/starcoder" device = "cuda" # for GPU usage or "cpu" for CPU usage tokenizer = AutoTokenizer.from_pretrained(checkpoint) model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device) inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to(device) outputs = model.generate(inputs) print(tokenizer.decode(outputs[0])) ``` ### Fill-in-the-middle Fill-in-the-middle uses special tokens to identify the prefix/middle/suffix part of the input and output: ```python input_text = "<fim_prefix>def print_hello_world():\n <fim_suffix>\n print('Hello world!')<fim_middle>" inputs = tokenizer.encode(input_text, return_tensors="pt").to(device) outputs = model.generate(inputs) print(tokenizer.decode(outputs[0])) ``` ### Attribution & Other Requirements The pretraining dataset of the model was filtered for permissive licenses only. Nevertheless, the model can generate source code verbatim from the dataset. The code's license might require attribution and/or other specific requirements that must be respected. We provide a [search index](https://huggingface.co/spaces/bigcode/search) that let's you search through the pretraining data to identify where generated code came from and apply the proper attribution to your code. # Limitations The model has been trained on source code from 80+ programming languages. The predominant natural language in source code is English although other languages are also present. As such the model is capable of generating code snippets provided some context but the generated code is not guaranteed to work as intended. It can be inefficient, contain bugs or exploits. See [the paper](https://drive.google.com/file/d/1cN-b9GnWtHzQRoE7M7gAEyivY0kl4BYs/view) for an in-depth discussion of the model limitations. # Training ## Model - **Architecture:** GPT-2 model with multi-query attention and Fill-in-the-Middle objective - **Pretraining steps:** 250k - **Pretraining tokens:** 1 trillion - **Precision:** bfloat16 ## Hardware - **GPUs:** 512 Tesla A100 - **Training time:** 24 days ## Software - **Orchestration:** [Megatron-LM](https://github.com/bigcode-project/Megatron-LM) - **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch) - **BP16 if applicable:** [apex](https://github.com/NVIDIA/apex) # License The model is licensed under the BigCode OpenRAIL-M v1 license agreement. You can find the full agreement [here](https://huggingface.co/spaces/bigcode/bigcode-model-license-agreement). # Citation ``` @article{li2023starcoder, title={StarCoder: may the source be with you!}, author={Raymond Li and Loubna Ben Allal and Yangtian Zi and Niklas Muennighoff and Denis Kocetkov and Chenghao Mou and Marc Marone and Christopher Akiki and Jia Li and Jenny Chim and Qian Liu and Evgenii Zheltonozhskii and Terry Yue Zhuo and Thomas Wang and Olivier Dehaene and Mishig Davaadorj and Joel Lamy-Poirier and João Monteiro and Oleh Shliazhko and Nicolas Gontier and Nicholas Meade and Armel Zebaze and Ming-Ho Yee and Logesh Kumar Umapathi and Jian Zhu and Benjamin Lipkin and Muhtasham Oblokulov and Zhiruo Wang and Rudra Murthy and Jason Stillerman and Siva Sankalp Patel and Dmitry Abulkhanov and Marco Zocca and Manan Dey and Zhihan Zhang and Nour Fahmy and Urvashi Bhattacharyya and Wenhao Yu and Swayam Singh and Sasha Luccioni and Paulo Villegas and Maxim Kunakov and Fedor Zhdanov and Manuel Romero and Tony Lee and Nadav Timor and Jennifer Ding and Claire Schlesinger and Hailey Schoelkopf and Jan Ebert and Tri Dao and Mayank Mishra and Alex Gu and Jennifer Robinson and Carolyn Jane Anderson and Brendan Dolan-Gavitt and Danish Contractor and Siva Reddy and Daniel Fried and Dzmitry Bahdanau and Yacine Jernite and Carlos Muñoz Ferrandis and Sean Hughes and Thomas Wolf and Arjun Guha and Leandro von Werra and Harm de Vries}, year={2023}, eprint={2305.06161}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.5820503830909729, -0.47648265957832336, 0.4121709167957306, 0.1273033320903778, -0.17056667804718018, -0.28255701065063477, -0.18647883832454681, -0.39727577567100525, 0.09137879312038422, 0.3033653795719147, -0.5731971263885498, -0.4510076344013214, -0.7624481320381165, 0.044014640152454376, -0.07770917564630508, 1.0395842790603638, -0.04090750589966774, 0.0704861581325531, -0.1314317137002945, -0.034267544746398926, -0.2082137018442154, -0.6876275539398193, -0.28723427653312683, -0.1305326670408249, 0.44519034028053284, 0.19954459369182587, 0.7999969720840454, 0.7153126001358032, 0.5034944415092468, 0.31094521284103394, -0.18680623173713684, 0.03240906074643135, -0.22220857441425323, -0.4338325560092926, 0.03563550487160683, -0.29190337657928467, -0.4412687420845032, -0.06905310600996017, 0.5689984560012817, 0.30074214935302734, 0.13752281665802002, 0.5581417679786682, -0.05738062411546707, 0.6203636527061462, -0.491467148065567, 0.3214462101459503, -0.2763404846191406, 0.009222544729709625, 0.22518162429332733, 0.08916541934013367, -0.16968312859535217, -0.28805011510849, -0.32087722420692444, -0.6285749673843384, 0.18490687012672424, 0.1428481638431549, 1.2031296491622925, 0.3772810399532318, -0.2423786073923111, -0.20887123048305511, -0.7322784662246704, 0.6438149213790894, -0.7096033096313477, 0.5942754745483398, 0.269185334444046, 0.28756895661354065, 0.0022169628646224737, -0.9309321641921997, -0.741720974445343, -0.3433994948863983, -0.09809809178113937, 0.12097374349832535, -0.364706426858902, -0.08103614300489426, 0.6125181317329407, 0.2083188146352768, -0.7860060334205627, 0.15224887430667877, -0.7724736928939819, -0.11623910069465637, 0.5953648686408997, 0.013211263343691826, 0.22867907583713531, -0.5415601134300232, -0.5276455283164978, -0.17932741343975067, -0.5810946822166443, 0.12526994943618774, 0.2534635365009308, 0.03060854785144329, -0.40619567036628723, 0.499498575925827, -0.0050447010435163975, 0.5756023526191711, 0.07212986052036285, 0.12038230150938034, 0.5153906941413879, -0.5109191536903381, -0.3938901126384735, -0.1828339695930481, 1.1006711721420288, 0.41077592968940735, 0.142862007021904, 0.007579821161925793, -0.14845186471939087, -0.15573695302009583, 0.1741981953382492, -1.0463556051254272, -0.26498329639434814, 0.5101761221885681, -0.3371853232383728, -0.1044635996222496, 0.11867667734622955, -0.8049330115318298, 0.025497490540146828, -0.3671373724937439, 0.581475019454956, -0.2536943852901459, -0.26779332756996155, 0.2214760184288025, 0.008341734297573566, 0.34451982378959656, -0.03403246030211449, -0.7850409150123596, 0.11899546533823013, 0.5226948261260986, 0.8226650357246399, 0.3526778519153595, -0.40547975897789, -0.3292563557624817, -0.06466764211654663, -0.28021204471588135, 0.2750196158885956, -0.22586314380168915, -0.21870778501033783, -0.2149776816368103, 0.14583609998226166, -0.10388539731502533, -0.434286892414093, 0.3176667094230652, -0.5571817755699158, 0.2574799954891205, -0.19644317030906677, -0.2792149782180786, -0.1946037858724594, 0.1876920461654663, -0.6937192678451538, 0.9869654774665833, 0.3390487730503082, -0.7345668077468872, 0.21917761862277985, -0.7906055450439453, -0.026732252910733223, -0.05874182656407356, -0.1980881243944168, -0.7550657987594604, -0.0952177345752716, 0.4310644865036011, 0.4950527846813202, -0.4161475598812103, 0.4698089063167572, -0.27771490812301636, -0.44353991746902466, 0.2012563943862915, -0.15421180427074432, 1.0208886861801147, 0.42728355526924133, -0.614124059677124, 0.17891353368759155, -0.5835094451904297, -0.005218168720602989, 0.4450342357158661, -0.19385461509227753, 0.2584644556045532, -0.41079089045524597, 0.19017982482910156, 0.6066165566444397, 0.3407716751098633, -0.5732129812240601, 0.3213106691837311, -0.2839692234992981, 0.6856796145439148, 0.5776494741439819, -0.09604781866073608, 0.17805905640125275, -0.24585197865962982, 0.6087697744369507, 0.21183358132839203, 0.437500536441803, -0.11784285306930542, -0.4490249752998352, -0.7084290385246277, -0.3295115530490875, 0.4107764661312103, 0.4051603078842163, -0.7121676206588745, 0.7682425379753113, -0.32352814078330994, -0.58952796459198, -0.38390058279037476, -0.012740317732095718, 0.5706208348274231, 0.2023649513721466, 0.4595838487148285, -0.035766322165727615, -0.6907725930213928, -0.8019058108329773, 0.16375797986984253, -0.09962330758571625, -0.004883870482444763, 0.32245072722435, 0.867266833782196, -0.3891673684120178, 0.8140108585357666, -0.650381863117218, -0.08926396816968918, -0.24733276665210724, -0.28028324246406555, 0.5211607217788696, 0.7301108241081238, 0.7226743102073669, -0.8356156349182129, -0.3350834846496582, -0.06237758696079254, -0.8058967590332031, 0.36596012115478516, 0.06760002672672272, -0.158619686961174, 0.16738460958003998, 0.7155070304870605, -0.9801941514015198, 0.4869132936000824, 0.5791903138160706, -0.42482322454452515, 0.7936634421348572, -0.1917014867067337, 0.11125253885984421, -1.3374030590057373, 0.5015198588371277, 0.08758798241615295, -0.0016062483191490173, -0.3219924867153168, 0.29231753945350647, 0.1817339062690735, -0.5202205181121826, -0.5090590119361877, 0.5766898989677429, -0.48512935638427734, -0.042217936366796494, -0.019029660150408745, -0.21210944652557373, 0.06080896034836769, 0.8314933180809021, -0.20634114742279053, 0.9234357476234436, 0.6474553346633911, -0.6184801459312439, 0.3972943425178528, 0.3902550935745239, -0.24596209824085236, 0.02682509832084179, -0.9727867245674133, 0.11202114075422287, -0.04838363453745842, 0.3577670454978943, -1.1330422163009644, -0.28240421414375305, 0.46631115674972534, -0.8573979139328003, 0.18274620175361633, -0.43858566880226135, -0.6491075158119202, -0.900983452796936, -0.2333245873451233, 0.38305938243865967, 0.7651499509811401, -0.6710267066955566, 0.4061654508113861, 0.2050066888332367, -0.0074448250234127045, -0.5671534538269043, -0.6744800209999084, -0.117404043674469, -0.10127954930067062, -0.6286686062812805, 0.20159029960632324, -0.21158429980278015, 0.16377146542072296, 0.060830000787973404, -0.10303512215614319, -0.18977263569831848, -0.10549837350845337, 0.400630921125412, 0.46736031770706177, -0.29882684350013733, -0.1982913762331009, -0.2535760700702667, -0.3158610761165619, 0.23905709385871887, -0.6596192121505737, 0.6958798766136169, -0.1993345469236374, -0.32989412546157837, -0.41990503668785095, 0.19494928419589996, 0.9075562357902527, -0.4384176433086395, 0.7737866044044495, 0.8389688730239868, -0.5315715670585632, 0.04287756234407425, -0.5420082807540894, -0.18876314163208008, -0.5404185056686401, 0.6386163234710693, -0.2357032746076584, -0.7864688038825989, 0.5104373097419739, 0.11808176338672638, 0.05405315011739731, 0.5908387899398804, 0.4658140540122986, 0.1805739849805832, 0.9763187766075134, 0.614523708820343, -0.12520870566368103, 0.40563324093818665, -0.7397000193595886, 0.35074034333229065, -0.9398988485336304, -0.32981783151626587, -0.6085702180862427, -0.24295508861541748, -0.5062013864517212, -0.5688503980636597, 0.4481755495071411, 0.22024932503700256, -0.6825702786445618, 0.5156404376029968, -0.7602043151855469, 0.376984566450119, 0.5984349250793457, 0.0921267494559288, -0.12227629125118256, 0.13030807673931122, -0.21445804834365845, 0.045176632702350616, -0.7939202785491943, -0.36207374930381775, 1.1955524682998657, 0.4859499931335449, 0.5120804309844971, 0.026848990470170975, 0.7049999237060547, -0.15072712302207947, -0.04509339481592178, -0.5457906126976013, 0.46449628472328186, -0.03483687341213226, -0.7991593480110168, -0.16164778172969818, -0.5854729413986206, -1.0380613803863525, 0.1400858461856842, 0.011758657172322273, -0.7931891679763794, 0.2558445334434509, 0.14721956849098206, -0.6273388266563416, 0.4693775773048401, -0.8266184329986572, 1.0515776872634888, -0.20796334743499756, -0.4616333544254303, 0.10411292314529419, -0.6131057739257812, 0.36376306414604187, 0.12202657014131546, 0.15133190155029297, 0.23642705380916595, 0.10461343824863434, 0.78584885597229, -0.536672055721283, 0.6577866077423096, -0.3658779263496399, 0.13143903017044067, 0.37738677859306335, -0.17623887956142426, 0.4887237846851349, 0.2589854300022125, -0.050695519894361496, 0.390978068113327, -0.06779734790325165, -0.43551772832870483, -0.4190918505191803, 0.7399967312812805, -1.1548731327056885, -0.46120402216911316, -0.4821421802043915, -0.3596169352531433, 0.02437495067715645, 0.3327659070491791, 0.49640795588493347, 0.4717791676521301, 0.20520983636379242, 0.27520638704299927, 0.5374177098274231, -0.40318191051483154, 0.5950784683227539, 0.20649902522563934, -0.2716400921344757, -0.6561896800994873, 0.901387095451355, 0.22177885472774506, 0.10396041721105576, 0.10112562775611877, 0.11496326327323914, -0.4665607810020447, -0.411871075630188, -0.7171644568443298, 0.3632816672325134, -0.5883888006210327, -0.3602602481842041, -0.793399453163147, -0.5405946373939514, -0.5442651510238647, -0.17798492312431335, -0.4418208599090576, -0.14597952365875244, -0.19807475805282593, -0.000060962771385675296, 0.49595701694488525, 0.5900094509124756, -0.010220283642411232, 0.15698927640914917, -0.8009737133979797, 0.26921382546424866, 0.1823689192533493, 0.3918456435203552, 0.07588659226894379, -0.6156564950942993, -0.47372010350227356, 0.09887614101171494, -0.44388794898986816, -0.44521015882492065, 0.42982974648475647, -0.2807668149471283, 0.4637358784675598, 0.03289860859513283, -0.129461407661438, 0.6197604537010193, -0.43070608377456665, 1.0378612279891968, 0.47794294357299805, -0.7966667413711548, 0.4081308841705322, -0.3719102144241333, 0.4873545169830322, 0.318607360124588, 0.6383838653564453, -0.2968953251838684, -0.047517165541648865, -0.8990437388420105, -1.0026144981384277, 0.8413821458816528, 0.21445849537849426, 0.046452172100543976, 0.16961044073104858, 0.34694281220436096, -0.22300024330615997, 0.17780578136444092, -0.8556601405143738, -0.271523654460907, -0.3439332842826843, -0.18716220557689667, -0.20243558287620544, -0.07399728894233704, -0.11212754249572754, -0.5527799129486084, 0.5345850586891174, -0.008649571798741817, 0.8386579155921936, 0.2536987364292145, -0.12873472273349762, -0.00912522803992033, 0.0211085956543684, 0.5931045413017273, 0.8241642117500305, -0.13072191178798676, -0.06702020019292831, -0.021190200001001358, -0.6754376292228699, 0.0609901063144207, 0.5006694793701172, -0.12874527275562286, -0.026209192350506783, 0.20160742104053497, 0.9342090487480164, 0.23715583980083466, -0.32787054777145386, 0.7154130935668945, 0.09672365337610245, -0.5702847838401794, -0.46593016386032104, 0.1311849057674408, 0.27212634682655334, 0.3443734347820282, 0.4068946838378906, 0.22325487434864044, -0.043120142072439194, -0.26308730244636536, 0.27497777342796326, 0.14386393129825592, -0.35577040910720825, -0.3020820617675781, 1.0341073274612427, 0.005561033263802528, -0.16666747629642487, 0.6405874490737915, -0.26295673847198486, -0.707899808883667, 1.057410478591919, 0.5149774551391602, 0.8293032646179199, 0.04447798430919647, 0.025802427902817726, 0.8531388640403748, 0.40079301595687866, 0.12920677661895752, 0.23663990199565887, 0.13031798601150513, -0.3512519598007202, -0.4340924322605133, -0.6342021226882935, -0.12118907272815704, 0.27482378482818604, -0.552935004234314, 0.3231506645679474, -0.7626892328262329, -0.05111148580908775, 0.010107124224305153, 0.258845716714859, -1.0330100059509277, 0.28459250926971436, 0.21199336647987366, 0.8211576342582703, -0.779405415058136, 0.6840967535972595, 0.7396182417869568, -0.7715035080909729, -1.046298861503601, 0.10156024992465973, -0.12002039700746536, -0.7639537453651428, 0.7330734133720398, 0.3032013773918152, 0.15876999497413635, 0.2206203192472458, -0.8302688002586365, -1.039689064025879, 1.2055202722549438, 0.2641327679157257, -0.5966562628746033, -0.019986731931567192, 0.045228466391563416, 0.38938066363334656, -0.07787799835205078, 0.5274221301078796, 0.27086135745048523, 0.5563511848449707, 0.07366075366735458, -0.9355936646461487, 0.2658071517944336, -0.4595522880554199, -0.025584416463971138, 0.2450304627418518, -0.9465516805648804, 1.031042456626892, -0.3644382357597351, 0.08073802292346954, -0.027970200404524803, 0.6288333535194397, 0.4562588334083557, 0.25668472051620483, 0.301492840051651, 0.553831934928894, 0.519263505935669, -0.10222312808036804, 1.0710796117782593, -0.7332153916358948, 0.6681119203567505, 0.6707846522331238, 0.021608224138617516, 0.6725003719329834, 0.3382083773612976, -0.4035834074020386, 0.3363437354564667, 0.4982469379901886, -0.372478723526001, 0.23516517877578735, 0.21401584148406982, 0.0861261710524559, -0.03520215302705765, 0.2507481873035431, -0.705232560634613, 0.1714920550584793, 0.25493183732032776, -0.31771737337112427, -0.11862841993570328, 0.02939669042825699, 0.16685691475868225, -0.3191252052783966, -0.31154823303222656, 0.4545964002609253, 0.039056695997714996, -0.6679170727729797, 1.112378478050232, 0.0331578403711319, 0.7576133608818054, -0.7075666785240173, 0.03754005953669548, -0.11357437074184418, 0.28111955523490906, -0.3503217399120331, -0.7045154571533203, 0.06669838726520538, 0.018360765650868416, -0.30069050192832947, 0.04374207928776741, 0.3510785698890686, -0.15190348029136658, -0.5860555171966553, 0.28821486234664917, 0.09549801051616669, 0.15458811819553375, -0.05829045921564102, -0.8784000873565674, 0.2783353328704834, 0.1337745636701584, -0.45531365275382996, 0.3223746716976166, 0.3851734399795532, 0.15431667864322662, 0.5242508053779602, 0.7492736577987671, -0.19532431662082672, 0.2082441747188568, -0.1822739541530609, 1.1424347162246704, -0.8364037275314331, -0.5207883715629578, -0.8193745017051697, 0.7448488473892212, 0.04697141796350479, -0.7672166228294373, 0.7565271258354187, 0.7751121520996094, 0.8359583020210266, -0.25857868790626526, 0.8198201060295105, -0.3007752597332001, 0.1168944463133812, -0.5795509219169617, 0.6643391847610474, -0.6023488640785217, 0.059803809970617294, -0.3261440098285675, -0.993046760559082, -0.28413620591163635, 0.5871506333351135, -0.3731025159358978, 0.4447374939918518, 0.6983550190925598, 1.0291439294815063, -0.3384510576725006, -0.10833403468132019, 0.2629035413265228, 0.30532601475715637, 0.38135090470314026, 0.8410085439682007, 0.5663649439811707, -0.7677482962608337, 0.6856927871704102, -0.26729732751846313, -0.21476569771766663, -0.419563889503479, -0.533506453037262, -0.8054686784744263, -0.6037792563438416, -0.31604713201522827, -0.6222768425941467, 0.015049409121274948, 1.0400835275650024, 0.9678398370742798, -0.6734704375267029, -0.09326446056365967, -0.12919951975345612, -0.11186584830284119, -0.24114878475666046, -0.1884167343378067, 0.6347095370292664, -0.16041234135627747, -0.667722225189209, 0.057921864092350006, -0.057671789079904556, 0.05074715614318848, -0.33270972967147827, -0.26681190729141235, -0.23761244118213654, -0.16217276453971863, 0.42577385902404785, 0.44310614466667175, -0.5920108556747437, -0.27136048674583435, 0.1538151353597641, -0.36005714535713196, 0.16974493861198425, 0.4746982455253601, -0.48090556263923645, 0.1522473692893982, 0.42984747886657715, 0.6441301703453064, 0.636323094367981, -0.06550583243370056, 0.2206249088048935, -0.5683707594871521, 0.2832593023777008, 0.13954348862171173, 0.36913058161735535, 0.1397947371006012, -0.5225613713264465, 0.4777493476867676, 0.25569969415664673, -0.785932719707489, -0.7261331677436829, -0.003599056275561452, -0.9557307958602905, -0.3559422791004181, 1.3745940923690796, -0.10806942731142044, -0.4493952989578247, 0.07407575845718384, -0.2055361568927765, 0.24376456439495087, -0.2638828456401825, 0.5070363879203796, 0.5054645538330078, 0.15045513212680817, -0.11994680762290955, -0.876596987247467, 0.3282545506954193, 0.25642839074134827, -0.6186737418174744, 0.0417063944041729, 0.47975975275039673, 0.49510785937309265, 0.41309916973114014, 0.4642256796360016, -0.3224717974662781, 0.4644167721271515, 0.20585575699806213, 0.4992580711841583, -0.525411069393158, -0.40398654341697693, -0.4219037592411041, 0.06116041541099548, -0.039278727024793625, -0.48070937395095825 ]
google/ddpm-cifar10-32
google
"2023-08-03T07:24:08Z"
18,658
40
diffusers
[ "diffusers", "pytorch", "unconditional-image-generation", "arxiv:2006.11239", "license:apache-2.0", "has_space", "diffusers:DDPMPipeline", "region:us" ]
unconditional-image-generation
"2022-06-16T12:53:22Z"
--- license: apache-2.0 tags: - pytorch - diffusers - unconditional-image-generation --- # Denoising Diffusion Probabilistic Models (DDPM) **Paper**: [Denoising Diffusion Probabilistic Models](https://arxiv.org/abs/2006.11239) **Authors**: Jonathan Ho, Ajay Jain, Pieter Abbeel **Abstract**: *We present high quality image synthesis results using diffusion probabilistic models, a class of latent variable models inspired by considerations from nonequilibrium thermodynamics. Our best results are obtained by training on a weighted variational bound designed according to a novel connection between diffusion probabilistic models and denoising score matching with Langevin dynamics, and our models naturally admit a progressive lossy decompression scheme that can be interpreted as a generalization of autoregressive decoding. On the unconditional CIFAR10 dataset, we obtain an Inception score of 9.46 and a state-of-the-art FID score of 3.17. On 256x256 LSUN, we obtain sample quality similar to ProgressiveGAN.* ## Inference **DDPM** models can use *discrete noise schedulers* such as: - [scheduling_ddpm](https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddpm.py) - [scheduling_ddim](https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_ddim.py) - [scheduling_pndm](https://github.com/huggingface/diffusers/blob/main/src/diffusers/schedulers/scheduling_pndm.py) for inference. Note that while the *ddpm* scheduler yields the highest quality, it also takes the longest. For a good trade-off between quality and inference speed you might want to consider the *ddim* or *pndm* schedulers instead. See the following code: ```python # !pip install diffusers from diffusers import DDPMPipeline, DDIMPipeline, PNDMPipeline model_id = "google/ddpm-cifar10-32" # load model and scheduler ddpm = DDPMPipeline.from_pretrained(model_id) # you can replace DDPMPipeline with DDIMPipeline or PNDMPipeline for faster inference # run pipeline in inference (sample random noise and denoise) image = ddpm().images[0] # save image image.save("ddpm_generated_image.png") ``` For more in-detail information, please have a look at the [official inference example](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/diffusers_intro.ipynb) ## Training If you want to train your own model, please have a look at the [official training example](https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynb) ## Samples 1. ![sample_1](https://huggingface.co/google/ddpm-cifar10-32/resolve/main/images/generated_image_0.png) 2. ![sample_2](https://huggingface.co/google/ddpm-cifar10-32/resolve/main/images/generated_image_1.png) 3. ![sample_3](https://huggingface.co/google/ddpm-cifar10-32/resolve/main/images/generated_image_2.png) 4. ![sample_4](https://huggingface.co/google/ddpm-cifar10-32/resolve/main/images/generated_image_3.png)
[ -0.45788824558258057, -0.6771315932273865, 0.330112099647522, 0.629386305809021, -0.14334459602832794, -0.2194628119468689, 0.09179197996854782, -0.329545259475708, 0.10814668238162994, 0.14779561758041382, -0.6866918206214905, -0.2410712093114853, -0.5631548166275024, -0.1761043667793274, -0.31949999928474426, 0.9887994527816772, -0.1279905140399933, 0.1461750715970993, -0.14674389362335205, 0.15336865186691284, 0.1260901689529419, -0.1498454511165619, -0.7937836050987244, -0.4137076139450073, 0.065303273499012, -0.22225941717624664, 0.48327144980430603, 0.3261243999004364, 0.35902491211891174, 0.28948596119880676, -0.4833751320838928, 0.07599954307079315, -0.5701753497123718, -0.12743039429187775, 0.19938452541828156, -0.03606697544455528, -0.6496964693069458, 0.13275884091854095, 0.805646538734436, 0.7133958339691162, -0.45811358094215393, 0.08114200085401535, 0.10112182796001434, 0.6417208909988403, -0.6353199481964111, 0.1739877611398697, -0.19924597442150116, 0.119139164686203, 0.09648497402667999, 0.18996386229991913, -0.15145091712474823, -0.23920245468616486, 0.1619572937488556, -0.5581981539726257, 0.49563083052635193, -0.3598727881908417, 1.219516634941101, 0.21364787220954895, -0.23303283751010895, 0.0222834013402462, -0.6822920441627502, 0.7117288112640381, -0.700341522693634, 0.17996154725551605, 0.3020133078098297, 0.010904318653047085, -0.19135776162147522, -0.7284945845603943, -0.61248779296875, -0.07719620317220688, -0.02569170482456684, 0.5757316946983337, -0.1843510866165161, 0.21947233378887177, 0.26499953866004944, 0.6348189115524292, -0.41272011399269104, -0.08902927488088608, -0.3739936351776123, -0.17473553121089935, 0.6994543671607971, 0.06992469727993011, -0.01733461394906044, 0.02793823927640915, -0.4729788303375244, -0.007876875810325146, -0.2533416450023651, -0.04502398148179054, 0.41419273614883423, -0.497677743434906, -0.5891781449317932, 0.15734992921352386, -0.23238065838813782, 0.7717127203941345, 0.49499472975730896, -0.2985951602458954, 0.2239982783794403, -0.1845843493938446, -0.35731402039527893, -0.4581407606601715, 0.8269332051277161, 0.5035336017608643, -0.11033698171377182, -0.09223570674657822, -0.18138179183006287, 0.008156782016158104, -0.054741907864809036, -1.1512255668640137, -0.669526994228363, 0.2890241742134094, -0.5882034301757812, -0.5287560820579529, -0.15059898793697357, -0.8020458817481995, 0.03864898160099983, -0.24935489892959595, 0.3955640494823456, -0.41509485244750977, -0.5747861266136169, 0.07585665583610535, -0.23512454330921173, 0.32539650797843933, 0.5072370767593384, -0.7017709016799927, 0.38771894574165344, 0.28309357166290283, 1.0759433507919312, -0.1580812633037567, -0.12715230882167816, -0.433295875787735, 0.06895825266838074, -0.43607664108276367, 0.6085034012794495, -0.2506638467311859, -0.5378149747848511, -0.4305356740951538, 0.04245038330554962, -0.20572534203529358, -0.5920547246932983, 0.4145568609237671, -0.543705403804779, 0.38442614674568176, 0.04464268684387207, -0.598577618598938, -0.27227604389190674, -0.07868549972772598, -0.4560837149620056, 0.8341537714004517, 0.5071350336074829, -0.7393834590911865, 0.1484561413526535, -0.6023646593093872, -0.2867155373096466, -0.12419504672288895, 0.08340387791395187, -0.7689100503921509, -0.013618233613669872, 0.042749226093292236, 0.5075817704200745, -0.10772689431905746, 0.1964063197374344, -0.5497257113456726, -0.2019028663635254, 0.12243953347206116, -0.326679527759552, 1.1451927423477173, 0.372082382440567, -0.3431193232536316, -0.01453206967562437, -0.7974311113357544, -0.05500675365328789, 0.04501467943191528, -0.45237967371940613, 0.13754630088806152, -0.3887386620044708, 0.20688210427761078, 0.16352993249893188, -0.12385018914937973, -0.48504048585891724, 0.17479754984378815, -0.3959794044494629, 0.5808344483375549, 0.8080468773841858, 0.17738333344459534, 0.7538824677467346, -0.466440886259079, 0.6903844475746155, 0.21334441006183624, 0.2534991204738617, 0.08108435571193695, -0.6183257699012756, -0.6410689949989319, -0.7872670888900757, 0.3321126103401184, 0.5790269374847412, -0.5047801733016968, 0.4230533838272095, 0.061564624309539795, -0.6359816789627075, -0.3204079270362854, 0.03948625922203064, 0.3712192177772522, 0.7269877195358276, 0.30407777428627014, -0.6067430377006531, -0.4076164960861206, -0.6214491128921509, 0.19905829429626465, -0.10036876797676086, -0.2273969203233719, 0.18820278346538544, 0.4768737256526947, -0.2463463991880417, 0.673213005065918, -0.5589659214019775, -0.16958656907081604, 0.13484123349189758, 0.15699194371700287, 0.5090115070343018, 0.7983261942863464, 0.7553333044052124, -0.8378121852874756, -0.5409880876541138, -0.5360047221183777, -0.715897262096405, -0.23557229340076447, -0.2024725079536438, -0.3556903302669525, 0.38519829511642456, 0.29573923349380493, -0.7874470949172974, 0.6277515888214111, 0.8280164003372192, -0.30825433135032654, 0.7684597373008728, -0.23383265733718872, -0.02103305608034134, -0.9211245775222778, 0.19458214938640594, 0.11820166558027267, -0.31589174270629883, -0.49012020230293274, 0.043772827833890915, -0.18737779557704926, -0.04198164865374565, -0.4125547707080841, 0.7493418455123901, -0.7201967835426331, 0.23945017158985138, -0.1258484423160553, -0.4666110575199127, 0.2948674261569977, 0.39194202423095703, 0.19631560146808624, 0.5802170634269714, 0.8570950627326965, -0.9116960763931274, 0.2394644021987915, 0.42143723368644714, -0.3452473282814026, 0.6392309069633484, -0.8801358342170715, -0.06340327858924866, -0.20726989209651947, 0.5142124891281128, -1.0417851209640503, -0.2336106300354004, 0.7287465929985046, -0.14896951615810394, 0.6563074588775635, -0.5380750894546509, -0.26974156498908997, -0.21095409989356995, -0.12615492939949036, 0.30110836029052734, 0.9792249798774719, -0.56446772813797, 0.5334934592247009, 0.3322639763355255, 0.14454622566699982, -0.4336770176887512, -0.6312397122383118, -0.20778273046016693, -0.41459977626800537, -0.5945915579795837, 0.9103150367736816, -0.4010273516178131, -0.15361183881759644, 0.03013797104358673, -0.1252327859401703, -0.2994706928730011, 0.1484021544456482, 0.5255309343338013, 0.3784509301185608, 0.07062175869941711, -0.2980724275112152, -0.06311723589897156, -0.10933557152748108, 0.03779681771993637, -0.22610364854335785, 0.25118666887283325, -0.015403754077851772, -0.08919844776391983, -0.7454833984375, 0.3753817081451416, 0.3376365005970001, 0.22578324377536774, 0.9152130484580994, 1.1630154848098755, -0.16879461705684662, -0.08330740034580231, -0.6130599975585938, -0.30887508392333984, -0.4743020236492157, -0.1942543089389801, -0.451680064201355, -0.5109083652496338, 0.5798571109771729, -0.12359969317913055, -0.07662205398082733, 0.5005393028259277, 0.5943009257316589, -0.40543532371520996, 0.7051413059234619, 0.41793155670166016, 0.12016800791025162, 0.7522363066673279, -0.7859418392181396, -0.10462941229343414, -0.9718260169029236, -0.09248765558004379, 0.009656873531639576, -0.2953120768070221, -0.5401929616928101, -0.6094084978103638, 0.5929696559906006, 0.517188549041748, -0.17571428418159485, 0.09361231327056885, -0.656217634677887, 0.26648423075675964, 0.5736700296401978, 0.31791818141937256, -0.07460811734199524, 0.3162102699279785, 0.05021985247731209, 0.10840949416160583, -0.6396228075027466, -0.21475467085838318, 0.8265632390975952, 0.20179925858974457, 0.9127376079559326, 0.034126605838537216, 0.6617738604545593, 0.02339906431734562, 0.18709641695022583, -0.3944203555583954, 0.4465675950050354, 0.07867439836263657, -0.5289067625999451, -0.005310491658747196, -0.5706989169120789, -0.901727557182312, 0.25122368335723877, -0.11403150856494904, -0.4844176173210144, 0.5407777428627014, 0.297019362449646, -0.3181854486465454, 0.3500312566757202, -0.71463942527771, 0.6790855526924133, 0.2267817109823227, -0.6337040066719055, -0.06351263076066971, -0.6606633067131042, 0.396059513092041, 0.23358218371868134, -0.03572530299425125, -0.21609340608119965, 0.03245250880718231, 0.6717322468757629, -0.5389344096183777, 0.9394125938415527, -0.6106876134872437, -0.06854259222745895, 0.5728157758712769, 0.08872494846582413, 0.24762479960918427, 0.36057284474372864, -0.3503676950931549, 0.6006023287773132, 0.25069379806518555, -0.6145443916320801, -0.25215092301368713, 0.6512882113456726, -0.713123619556427, -0.3374372720718384, -0.4189794361591339, -0.4169664978981018, 0.26893410086631775, -0.041121307760477066, 0.5930461883544922, 0.45790335536003113, -0.13613830506801605, -0.177565336227417, 0.7175241112709045, -0.16785357892513275, 0.60212242603302, 0.3175796568393707, 0.01766178198158741, -0.4394432604312897, 0.6802754998207092, 0.17936085164546967, 0.29944249987602234, 0.37296462059020996, 0.19305065274238586, -0.11397943645715714, -0.6445959806442261, -0.4538806676864624, 0.4014798104763031, -0.4962180256843567, -0.18823644518852234, -0.7841859459877014, -0.3313354551792145, -0.5753342509269714, -0.07473316788673401, -0.34677231311798096, -0.6184038519859314, -0.728917121887207, 0.3052075207233429, 0.4931476414203644, 0.17383740842342377, -0.6400381922721863, 0.4754638671875, -0.55419921875, 0.40207791328430176, 0.20378577709197998, 0.2887515425682068, -0.0767749771475792, -0.7632541656494141, -0.10465072095394135, -0.04094007611274719, -0.5907389521598816, -0.6268967986106873, 0.6167318820953369, 0.40608328580856323, 0.5836748480796814, 0.5271530151367188, 0.014595888555049896, 0.789232075214386, -0.3810434937477112, 0.6691854000091553, 0.26048463582992554, -0.7759705185890198, 0.471439003944397, -0.28303295373916626, 0.10434927046298981, 0.18196474015712738, 0.5497134327888489, -0.14059250056743622, -0.021901333704590797, -0.924017071723938, -0.7654563188552856, 0.5610142946243286, 0.3150537610054016, 0.06656375527381897, 0.057744696736335754, 0.7146933078765869, 0.08331561088562012, 0.2710599899291992, -0.5914413928985596, -0.24480824172496796, -0.15621769428253174, 0.003411924932152033, 0.10830425471067429, -0.39387813210487366, -0.28423964977264404, -0.5007696747779846, 0.8770535588264465, 0.021827369928359985, 0.673721194267273, 0.59073406457901, 0.15973101556301117, -0.09496834129095078, -0.2311895191669464, 0.4674319326877594, 0.7472821474075317, -0.3924074172973633, -0.2326294630765915, -0.0953759029507637, -0.3673645555973053, 0.19552567601203918, 0.2451370656490326, -0.4579537808895111, 0.22774508595466614, 0.2798777222633362, 0.8530126214027405, -0.25862932205200195, -0.3470144271850586, 0.5043286681175232, -0.0773269534111023, -0.4244539737701416, -0.6738188862800598, 0.1962585747241974, 0.18960396945476532, 0.36044400930404663, -0.02701673097908497, 0.2972809076309204, 0.3424242436885834, -0.18658754229545593, -0.00013239904365036637, 0.5435432195663452, -0.164688378572464, -0.548965573310852, 0.892212986946106, 0.009209823794662952, 0.11462658643722534, 0.6903854012489319, -0.5675415992736816, -0.36890020966529846, 0.6853652000427246, 0.28933489322662354, 0.7500082850456238, -0.20539362728595734, 0.301422119140625, 0.6041038036346436, -0.10116568952798843, -0.2514946758747101, 0.42681753635406494, -0.21300339698791504, -0.5981853604316711, -0.5223066806793213, -0.8822883367538452, -0.27294203639030457, 0.0975116640329361, -0.6199708580970764, 0.14012549817562103, -0.5136241912841797, -0.24928675591945648, 0.08591634780168533, -0.11768627911806107, -0.7757166028022766, 0.2054174840450287, 0.027533777058124542, 0.7405017614364624, -0.7704416513442993, 0.7151972055435181, 0.575012743473053, -0.279658704996109, -0.6205176115036011, -0.04377320036292076, 0.052707307040691376, -0.6444635391235352, 0.6142847537994385, -0.004008199088275433, 0.11010798066854477, 0.1699325144290924, -0.6393372416496277, -0.6568541526794434, 1.0649480819702148, 0.4926835000514984, -0.48507335782051086, -0.20814038813114166, -0.5883456468582153, 0.3446040749549866, -0.26526975631713867, 0.3932752013206482, 0.3294689655303955, 0.24137134850025177, 0.28001323342323303, -0.7668718695640564, 0.1333070546388626, -0.19354774057865143, 0.1953693926334381, -0.0203646719455719, -0.7803903222084045, 1.0809756517410278, -0.39435306191444397, -0.19739346206188202, 0.2969115972518921, 0.48186683654785156, 0.20446841418743134, 0.3268539011478424, 0.6299943923950195, 0.8774570226669312, 0.5220491886138916, -0.06378377228975296, 1.16713547706604, -0.19068631529808044, 0.5037641525268555, 0.8600574135780334, 0.014764930121600628, 0.3804221749305725, 0.4955766201019287, -0.5268614292144775, 0.6515339016914368, 0.8727498650550842, -0.3192232847213745, 0.7349488139152527, 0.39139053225517273, -0.4758875370025635, -0.19030505418777466, 0.10110427439212799, -0.49051815271377563, 0.19219401478767395, 0.24985995888710022, -0.3420509397983551, -0.04783850908279419, 0.056978873908519745, 0.026511242613196373, -0.3118298351764679, 0.02539934404194355, 0.7753321528434753, 0.12946493923664093, -0.4799312353134155, 0.9445167779922485, -0.017326993867754936, 0.8855388760566711, -0.4465135633945465, -0.04628690704703331, -0.2764626443386078, 0.16064734756946564, -0.2911922335624695, -0.5129320025444031, 0.4375937581062317, -0.4187448024749756, -0.3007979691028595, -0.4747624099254608, 0.5814067125320435, -0.43422216176986694, -0.5433177947998047, 0.3009301722049713, 0.2682689428329468, 0.46910351514816284, -0.21292515099048615, -0.8444480299949646, 0.08608028292655945, -0.19935624301433563, -0.5164157152175903, 0.38645750284194946, 0.1805526465177536, 0.3899346590042114, 0.5006462335586548, 0.7237327098846436, 0.2883067727088928, -0.055895399302244186, -0.1899573802947998, 0.8589292764663696, -0.27866631746292114, -0.4126157760620117, -0.7820508480072021, 0.4967024624347687, -0.11168922483921051, -0.13950970768928528, 0.45183348655700684, 0.3266138732433319, 0.9400398135185242, -0.3166693449020386, 0.5415594577789307, -0.28992149233818054, 0.2380717247724533, -0.6044497489929199, 0.5954173803329468, -0.5971271991729736, 0.21003928780555725, -0.276695191860199, -0.847052276134491, -0.0035396667663007975, 0.8644920587539673, -0.15976719558238983, 0.19911135733127594, 0.217922180891037, 0.8962388634681702, -0.31462955474853516, -0.31562402844429016, 0.08601408451795578, 0.17472685873508453, 0.25962597131729126, 0.5494505763053894, 0.7174023985862732, -0.6734029054641724, 0.41072237491607666, -0.7015409469604492, -0.4427071213722229, -0.1531694233417511, -1.0127264261245728, -0.6702430844306946, -0.6110727190971375, -0.9695404767990112, -0.7238553166389465, -0.034515686333179474, 0.5132001638412476, 1.233532428741455, -0.6415910124778748, -0.14857088029384613, -0.36004120111465454, -0.0020230466034263372, -0.5831183195114136, -0.29856663942337036, 0.3956102132797241, 0.0037975970190018415, -1.008318543434143, 0.1853885054588318, -0.04225173220038414, 0.40409594774246216, -0.08883365243673325, -0.1564694344997406, -0.26441553235054016, -0.2254648655653, 0.48966220021247864, 0.2165907919406891, -0.598617434501648, 0.13905629515647888, -0.3842301070690155, 0.14316876232624054, 0.0905209481716156, 0.28991326689720154, -0.6437950730323792, 0.39374271035194397, 0.6080238819122314, 0.3558630049228668, 0.9012561440467834, -0.033722925931215286, 0.3380231559276581, -0.5587738752365112, 0.3342292010784149, 0.06756064295768738, 0.273707777261734, 0.3551233410835266, -0.41289222240448, 0.7868738174438477, 0.6593321561813354, -0.8089033365249634, -0.8568731546401978, 0.13769488036632538, -1.2187693119049072, -0.2425573617219925, 1.1529598236083984, -0.44900140166282654, -0.3120248019695282, 0.2751357853412628, -0.004847678355872631, 0.2955027222633362, -0.3991730511188507, 0.7492530941963196, 0.48070400953292847, -0.3411920368671417, -0.2524486482143402, -0.5083981156349182, 0.5753823518753052, 0.2843523323535919, -0.42765551805496216, -0.27193886041641235, 0.6008889675140381, 0.7708942890167236, 0.16457189619541168, 0.9595006704330444, -0.05375957116484642, 0.17080141603946686, 0.1151893362402916, 0.07087794691324234, 0.0013771996600553393, 0.0545671209692955, -0.45867523550987244, 0.049667730927467346, -0.3335302174091339, -0.31674808263778687 ]
nitrosocke/mo-di-diffusion
nitrosocke
"2023-05-16T09:23:30Z"
18,586
911
diffusers
[ "diffusers", "stable-diffusion", "text-to-image", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2022-10-27T19:56:48Z"
--- license: creativeml-openrail-m tags: - stable-diffusion - text-to-image --- **Mo Di Diffusion** This is the fine-tuned Stable Diffusion 1.5 model trained on screenshots from a popular animation studio. Use the tokens **_modern disney style_** in your prompts for the effect. **If you enjoy my work, please consider supporting me** [![Become A Patreon](https://badgen.net/badge/become/a%20patron/F96854)](https://patreon.com/user?u=79196446) **Videogame Characters rendered with the model:** ![Videogame Samples](https://huggingface.co/nitrosocke/mo-di-diffusion/resolve/main/modi-samples-01s.jpg) **Animal Characters rendered with the model:** ![Animal Samples](https://huggingface.co/nitrosocke/mo-di-diffusion/resolve/main/modi-samples-02s.jpg) **Cars and Landscapes rendered with the model:** ![Misc. Samples](https://huggingface.co/nitrosocke/mo-di-diffusion/resolve/main/modi-samples-03s.jpg) #### Prompt and settings for Lara Croft: **modern disney lara croft** _Steps: 50, Sampler: Euler a, CFG scale: 7, Seed: 3940025417, Size: 512x768_ #### Prompt and settings for the Lion: **modern disney (baby lion) Negative prompt: person human** _Steps: 50, Sampler: Euler a, CFG scale: 7, Seed: 1355059992, Size: 512x512_ This model was trained using the diffusers based dreambooth training by ShivamShrirao using prior-preservation loss and the _train-text-encoder_ flag in 9.000 steps. ### 🧨 Diffusers This model can be used just like any other Stable Diffusion model. For more information, please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion). You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX](). ```python from diffusers import StableDiffusionPipeline import torch model_id = "nitrosocke/mo-di-diffusion" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to("cuda") prompt = "a magical princess with golden hair, modern disney style" image = pipe(prompt).images[0] image.save("./magical_princess.png") ``` # Gradio & Colab We also support a [Gradio](https://github.com/gradio-app/gradio) Web UI and Colab with Diffusers to run fine-tuned Stable Diffusion models: [![Open In Spaces](https://camo.githubusercontent.com/00380c35e60d6b04be65d3d94a58332be5cc93779f630bcdfc18ab9a3a7d3388/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f25463025394625413425393725323048756767696e67253230466163652d5370616365732d626c7565)](https://huggingface.co/spaces/anzorq/finetuned_diffusion) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1j5YvfMZoGdDGdj3O3xRU1m4ujKYsElZO?usp=sharing) ## License This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage. The CreativeML OpenRAIL License specifies: 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content 2. The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully) [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
[ -0.639700710773468, -0.7941532135009766, 0.3146190941333771, 0.445667564868927, -0.20510584115982056, -0.25339439511299133, 0.16965408623218536, -0.33545148372650146, 0.3307356536388397, 0.3936005234718323, -0.6448624134063721, -0.5067163705825806, -0.7363717555999756, -0.26742082834243774, -0.11002464592456818, 1.0177383422851562, -0.22321349382400513, 0.1622803509235382, -0.1466970294713974, 0.007912378758192062, -0.18864959478378296, -0.09450854361057281, -0.7755022048950195, -0.4243966341018677, 0.42886069416999817, 0.05685713514685631, 0.7519486546516418, 0.3468489646911621, 0.2725244462490082, 0.23038281500339508, -0.5396748185157776, -0.14571310579776764, -0.6964268684387207, 0.007926969788968563, -0.22133079171180725, -0.12119167298078537, -0.7413413524627686, 0.18011774122714996, 0.5395603179931641, 0.32924070954322815, -0.3782590329647064, -0.024594467133283615, 0.06156829744577408, 0.47587618231773376, -0.5605707168579102, -0.007438983768224716, -0.0638003796339035, 0.08034109324216843, -0.00411747582256794, 0.3554139733314514, -0.20024186372756958, -0.3357180655002594, 0.17420309782028198, -1.0056570768356323, 0.4902065098285675, -0.2109990268945694, 1.2269686460494995, 0.07970040291547775, -0.4112921357154846, -0.1717989593744278, -0.48166635632514954, 0.6375225186347961, -0.5999454259872437, 0.30997955799102783, 0.08913236856460571, 0.2967391014099121, -0.15702146291732788, -1.0195871591567993, -0.5274900794029236, -0.08782164007425308, 0.137639582157135, 0.3981430232524872, -0.2441173791885376, 0.07536748796701431, 0.1877840757369995, 0.47634783387184143, -0.6664848327636719, -0.19160334765911102, -0.48705023527145386, -0.026221275329589844, 0.5824159979820251, 0.14285549521446228, 0.36584725975990295, -0.039099544286727905, -0.7517197132110596, -0.20430248975753784, -0.49082764983177185, 0.06847961246967316, 0.23685435950756073, -0.1429477483034134, -0.6583092212677002, 0.4470236003398895, -0.026790563017129898, 0.49248290061950684, 0.3157944083213806, -0.043157804757356644, 0.3752525746822357, -0.07003284990787506, -0.2904524803161621, -0.35560962557792664, 0.9415929317474365, 0.6094197630882263, 0.14295649528503418, 0.026075012981891632, -0.22048427164554596, -0.03552427887916565, -0.06803108751773834, -1.2340445518493652, -0.4049180746078491, 0.20503480732440948, -0.43596023321151733, -0.29858699440956116, -0.15849800407886505, -0.8577238321304321, -0.3921121060848236, 0.1830800622701645, 0.4814653992652893, -0.390125572681427, -0.6942908763885498, 0.45437514781951904, -0.5610957145690918, -0.02262825518846512, 0.4313572347164154, -0.7664813995361328, 0.10566747188568115, 0.20878413319587708, 1.2009296417236328, -0.12771441042423248, 0.07708036154508591, -0.11429819464683533, 0.36929747462272644, -0.16382557153701782, 0.5779381990432739, -0.36975929141044617, -0.7926456928253174, -0.20198355615139008, 0.22298385202884674, -0.14123660326004028, -0.5593780279159546, 0.6441740989685059, -0.5028505325317383, 0.31197497248649597, -0.1400674730539322, -0.40989506244659424, -0.3048892915248871, -0.04332631826400757, -0.7040463089942932, 0.6561689376831055, 0.3355255126953125, -0.8139050006866455, 0.26279833912849426, -0.9987039566040039, -0.18020454049110413, -0.1248699426651001, 0.26363348960876465, -0.5571224689483643, 0.02981884963810444, -0.04241334646940231, 0.4070119261741638, -0.15047559142112732, 0.13546720147132874, -0.6149047017097473, -0.008877672255039215, -0.1849232017993927, -0.329792320728302, 1.3393350839614868, 0.5081877112388611, -0.1120462492108345, 0.08641394972801208, -0.683789849281311, -0.16677458584308624, 0.2711983919143677, -0.1982702910900116, -0.11599991470575333, -0.3891536593437195, 0.31973615288734436, 0.40258845686912537, 0.10946839302778244, -0.5647959113121033, 0.3103528618812561, -0.1374601572751999, 0.4206511378288269, 0.6845296621322632, 0.3403252065181732, 0.6051064133644104, -0.44312426447868347, 0.8593735694885254, 0.42141515016555786, 0.26668012142181396, 0.21533294022083282, -0.7949596643447876, -0.5701519250869751, -0.6763253211975098, 0.19900603592395782, 0.28713396191596985, -0.8019482493400574, 0.09223463386297226, 0.03444090485572815, -0.7966625690460205, -0.31399327516555786, -0.11086756736040115, 0.21057641506195068, 0.83048015832901, 0.16576270759105682, -0.5612726807594299, -0.1653282791376114, -0.6767398118972778, 0.3000866174697876, 0.009433348663151264, -0.1920861452817917, 0.18276114761829376, 0.6585215330123901, -0.29674267768859863, 0.8651798367500305, -0.7162286043167114, -0.21920615434646606, 0.03542615473270416, 0.30974704027175903, 0.33482640981674194, 0.8012718558311462, 0.9560178518295288, -0.7371411323547363, -0.7233361601829529, -0.183306023478508, -0.7769441604614258, -0.23100940883159637, 0.12963220477104187, -0.4559410512447357, -0.020655538886785507, 0.09390594810247421, -1.0724592208862305, 0.4358401894569397, 0.6305378079414368, -0.7375758290290833, 0.4805126488208771, -0.45687609910964966, 0.1399173140525818, -1.0894719362258911, 0.17975907027721405, 0.3127201795578003, -0.2793203592300415, -0.6954373717308044, 0.2351505607366562, -0.08318383991718292, -0.02906964346766472, -0.8634912371635437, 1.0997834205627441, -0.4055176377296448, 0.594689667224884, -0.14698205888271332, 0.09275820851325989, 0.26053860783576965, 0.3416973054409027, 0.1966896802186966, 0.5910264849662781, 0.9437664151191711, -0.8741888999938965, 0.07103003561496735, 0.36617040634155273, -0.301697313785553, 0.6238080859184265, -0.9581061601638794, -0.01796276681125164, -0.4033040404319763, 0.2603653371334076, -1.11127769947052, -0.2129286676645279, 0.6533058285713196, -0.4355877935886383, 0.21540158987045288, -0.22855763137340546, -0.3934888243675232, -0.16166631877422333, -0.24490545690059662, 0.34526923298835754, 0.8393136262893677, -0.4599376916885376, 0.7652057409286499, 0.3746558427810669, 0.11052240431308746, -0.37885963916778564, -0.7672877907752991, -0.565711259841919, -0.5451495051383972, -1.0911970138549805, 0.5143923759460449, -0.3987099528312683, -0.0919218361377716, -0.07592367380857468, 0.07026144862174988, -0.29342570900917053, -0.014528858475387096, 0.3761131763458252, 0.22142958641052246, -0.05493862181901932, -0.33017095923423767, 0.24777795374393463, -0.09882619976997375, 0.009029516950249672, -0.00980642531067133, 0.5001027584075928, 0.14964602887630463, -0.11569933593273163, -0.6748733520507812, 0.1639326959848404, 0.8402689099311829, -0.07240192592144012, 1.0048458576202393, 0.8802077770233154, -0.39984411001205444, 0.05606481805443764, -0.1991100013256073, -0.06765668094158173, -0.5297161340713501, 0.1151939406991005, -0.36605602502822876, -0.41375109553337097, 0.9083433747291565, 0.10039987415075302, 0.19415311515331268, 0.674068808555603, 0.6183068752288818, -0.10249511152505875, 1.3502789735794067, 0.6457898020744324, 0.30514729022979736, 0.7833138704299927, -0.86617112159729, -0.1256476193666458, -0.8753697872161865, -0.36895230412483215, -0.3023066818714142, -0.3658776879310608, -0.2397684007883072, -0.5383734107017517, 0.49300864338874817, 0.607561469078064, -0.6439635157585144, 0.10583644360303879, -0.4014558792114258, 0.26162657141685486, 0.23294422030448914, 0.18357598781585693, 0.2790793180465698, 0.11953575909137726, -0.33934932947158813, -0.006373015232384205, -0.6524026989936829, -0.4320317506790161, 0.589372992515564, 0.46433648467063904, 1.014499306678772, 0.290355384349823, 0.5915021300315857, 0.27550625801086426, 0.5626277327537537, -0.2598693370819092, 0.5191782116889954, -0.04345261678099632, -0.9017695188522339, 0.04360396787524223, -0.2879025936126709, -0.9186167120933533, 0.3873230516910553, -0.21124425530433655, -0.5688605904579163, 0.49158546328544617, 0.14328373968601227, -0.2962961494922638, 0.32812899351119995, -0.975093424320221, 0.956722617149353, 0.029295803979039192, -0.6882017850875854, 0.005986385513097048, -0.4439048171043396, 0.5501980781555176, 0.23445728421211243, 0.03940430283546448, -0.17090322077274323, -0.18997643887996674, 0.7088643312454224, -0.514866292476654, 0.7049276232719421, -0.6525790095329285, -0.11843182891607285, 0.40227210521698, 0.10119366645812988, 0.3739989697933197, 0.20356839895248413, -0.20344044268131256, 0.2693796753883362, 0.0868568941950798, -0.5213025212287903, -0.3808087408542633, 0.7804888486862183, -0.7794163227081299, -0.37331098318099976, -0.5081730484962463, -0.48442816734313965, 0.2511782944202423, 0.2578778564929962, 0.7003827691078186, 0.08259905874729156, -0.18463440239429474, -0.014992738142609596, 0.8318712711334229, -0.1314447820186615, 0.4744948446750641, 0.5897418856620789, -0.6514670848846436, -0.5382811427116394, 0.6861734390258789, 0.02961127460002899, 0.6981520652770996, -0.10595250129699707, 0.3312016427516937, -0.4209448993206024, -0.4625690281391144, -0.7162662148475647, 0.4535524249076843, -0.6493776440620422, -0.1387525200843811, -0.644679605960846, -0.19467777013778687, -0.33907637000083923, -0.23833578824996948, -0.3042571544647217, -0.42866015434265137, -0.8546269536018372, -0.035817407071590424, 0.6776891946792603, 0.6540469527244568, -0.27548491954803467, 0.5227987766265869, -0.46474984288215637, 0.37552088499069214, 0.07630178332328796, 0.5041139125823975, 0.15505149960517883, -0.7075784802436829, -0.0717625841498375, 0.30815982818603516, -0.6206340193748474, -0.8349801301956177, 0.6083527207374573, 0.06599337607622147, 0.48840242624282837, 0.6398193836212158, -0.08513927459716797, 0.9011825323104858, -0.41107621788978577, 1.0282856225967407, 0.5828065276145935, -0.6508975625038147, 0.3875122666358948, -0.5776482224464417, 0.2533637583255768, 0.2935003638267517, 0.6450057625770569, -0.4031780958175659, -0.3591299057006836, -0.721510112285614, -0.7846355438232422, 0.5198512077331543, 0.3098393678665161, 0.1406894326210022, -0.043932437896728516, 0.4000757932662964, -0.011887907981872559, 0.05737050250172615, -0.8416460752487183, -0.422833114862442, -0.11613765358924866, 0.025788921862840652, 0.05738750845193863, 0.050911761820316315, -0.11045186221599579, -0.39620834589004517, 0.9588455557823181, 0.24429912865161896, 0.26754429936408997, 0.2247295379638672, 0.12703008949756622, -0.41320139169692993, -0.3313645124435425, 0.5123302340507507, 0.528895378112793, -0.33123061060905457, -0.3725525438785553, -0.19040316343307495, -0.6139740347862244, 0.16124345362186432, 0.000020395409592310898, -0.512310802936554, 0.19752515852451324, -0.17363448441028595, 0.6811536550521851, -0.1688288152217865, -0.43610861897468567, 0.5523790121078491, -0.18087896704673767, -0.3557277023792267, -0.2417692393064499, 0.2888723909854889, 0.3373579680919647, 0.42380544543266296, 0.058561597019433975, 0.3005566895008087, 0.1730070859193802, -0.25272873044013977, -0.03637872636318207, 0.7262651920318604, -0.3569374978542328, -0.23494620621204376, 1.3500484228134155, 0.11735302954912186, -0.21201173961162567, 0.3884669542312622, -0.3109738528728485, -0.09588109701871872, 0.5458259582519531, 0.608752429485321, 0.9677857756614685, -0.3235601782798767, 0.44303664565086365, 0.461405485868454, -0.1553359180688858, -0.3887868821620941, 0.30281659960746765, 0.25130125880241394, -0.4967831075191498, -0.03830117732286453, -0.5646470189094543, -0.13422168791294098, -0.025292083621025085, -0.5622630715370178, 0.6992964148521423, -0.5655370950698853, -0.2918851673603058, -0.20520293712615967, -0.14209814369678497, -0.5464469194412231, 0.21727977693080902, -0.003195970319211483, 1.0890936851501465, -1.0085150003433228, 0.8052434921264648, 0.47263261675834656, -0.840969443321228, -0.5271742343902588, -0.22923164069652557, -0.2069842368364334, -0.4857054650783539, 0.34699591994285583, -0.12613120675086975, -0.3034747540950775, -0.031277261674404144, -0.7530185580253601, -0.847307562828064, 1.3367422819137573, 0.550953209400177, -0.2844250500202179, -0.19206203520298004, -0.24920061230659485, 0.6420021057128906, -0.46504467725753784, 0.5458683371543884, 0.22047863900661469, 0.31085070967674255, 0.49357643723487854, -0.7129421234130859, -0.09916456788778305, -0.27425283193588257, 0.19327181577682495, -0.1276179850101471, -0.9664497375488281, 1.1532223224639893, -0.19015052914619446, -0.32274535298347473, 0.4666428565979004, 0.7067859172821045, 0.570529580116272, 0.3967112600803375, 0.5002059936523438, 0.8207300901412964, 0.7149276733398438, -0.03762613609433174, 1.1455892324447632, -0.22856105864048004, 0.6353378295898438, 0.6883952021598816, -0.12111206352710724, 0.6211984157562256, 0.37689587473869324, -0.007898535579442978, 0.7196558117866516, 0.7165465354919434, 0.18413038551807404, 0.8517619371414185, 0.18940310180187225, -0.43112388253211975, 0.005329618230462074, -0.1271699070930481, -0.7132319808006287, -0.2690536677837372, 0.2130589485168457, -0.5193765759468079, -0.20570100843906403, 0.35820332169532776, 0.08897710591554642, -0.31276199221611023, -0.33997857570648193, 0.29232844710350037, 0.006035845726728439, -0.28655678033828735, 0.9440911412239075, -0.031568653881549835, 0.8776699304580688, -0.8212268948554993, -0.14534235000610352, -0.26482000946998596, 0.19470733404159546, -0.2842327952384949, -0.8213882446289062, 0.04089059680700302, 0.04597277566790581, -0.23486921191215515, -0.5166305303573608, 0.4639648497104645, -0.36277082562446594, -0.5457141995429993, 0.34471192955970764, 0.24326848983764648, 0.4202759265899658, 0.22041772305965424, -0.8850173354148865, 0.134269580245018, 0.014167210087180138, -0.4886781871318817, 0.26623159646987915, 0.2790355086326599, 0.2281227856874466, 0.8811578750610352, 0.28206562995910645, 0.04852168262004852, 0.31173840165138245, -0.06794490665197372, 0.8752216100692749, -0.39742404222488403, -0.5005360245704651, -0.58660888671875, 1.0222163200378418, -0.08364855498075485, -0.43021872639656067, 0.7507143616676331, 0.7374722361564636, 0.8091011047363281, -0.44971325993537903, 0.7073133587837219, -0.29820501804351807, 0.38452059030532837, -0.4430523216724396, 1.0673019886016846, -0.8978586196899414, 0.21012528240680695, -0.48325809836387634, -0.8812515735626221, -0.09094533324241638, 0.8531399369239807, -0.1358877271413803, 0.32748013734817505, 0.3044464886188507, 1.0466660261154175, -0.42907005548477173, -0.15180373191833496, 0.09783273935317993, 0.17308567464351654, 0.44475576281547546, 0.44074878096580505, 0.6454006433486938, -0.5340974926948547, 0.3173407316207886, -0.3974009156227112, -0.21980459988117218, -0.03274792805314064, -0.902232825756073, -0.825878918170929, -0.5324305295944214, -0.642464816570282, -0.7899710536003113, -0.17248933017253876, 0.6377125978469849, 1.0104328393936157, -0.6663393974304199, -0.19404852390289307, -0.23359663784503937, 0.20673897862434387, -0.07553516328334808, -0.2905636429786682, 0.20472189784049988, 0.33519497513771057, -1.0882670879364014, -0.01828661561012268, -0.05779438093304634, 0.5724861025810242, -0.44465675950050354, -0.4049636721611023, -0.33950406312942505, -0.11784729361534119, 0.3862290382385254, 0.2788015604019165, -0.5974546670913696, -0.06858723610639572, -0.19291506707668304, -0.037987228482961655, 0.15182028710842133, 0.34242165088653564, -0.7003986239433289, 0.5734087824821472, 0.7704560160636902, 0.015034573152661324, 0.8676488995552063, -0.025383461266756058, 0.3288531005382538, -0.43522223830223083, 0.1775655448436737, 0.1997160017490387, 0.39016443490982056, 0.05498990789055824, -0.2078966647386551, 0.5576609373092651, 0.39361247420310974, -0.5759918689727783, -0.7734180688858032, 0.13435594737529755, -1.2424381971359253, -0.19379785656929016, 1.0922244787216187, -0.25596335530281067, -0.30069583654403687, 0.06839429587125778, -0.42968112230300903, 0.22574229538440704, -0.49054405093193054, 0.5128867626190186, 0.6782836318016052, -0.3459624648094177, -0.2220391035079956, -0.6730274558067322, 0.4411456286907196, 0.1377873718738556, -0.39664968848228455, -0.18840499222278595, 0.628824770450592, 0.8223770260810852, 0.34357550740242004, 0.7678168416023254, -0.2472716122865677, 0.1752295345067978, 0.006249178200960159, 0.1380058377981186, 0.05161607265472412, -0.09890281409025192, -0.5615507364273071, 0.22475744783878326, -0.1404189169406891, -0.3249671459197998 ]
adasnew/t5-small-xsum
adasnew
"2022-04-11T22:35:12Z"
18,527
1
transformers
[ "transformers", "pytorch", "tensorboard", "t5", "text2text-generation", "generated_from_trainer", "dataset:xsum", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "text-generation-inference", "region:us" ]
text2text-generation
"2022-04-11T18:45:17Z"
--- license: apache-2.0 tags: - generated_from_trainer datasets: - xsum model-index: - name: t5-small-xsum results: [] --- <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> # t5-small-xsum This model is a fine-tuned version of [t5-small](https://huggingface.co/t5-small) on the xsum dataset. It achieves the following results on the evaluation set: - Loss: 2.3953 ## Model description More information needed ## Intended uses & limitations More information needed ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 5e-05 - train_batch_size: 1 - eval_batch_size: 1 - seed: 42 - gradient_accumulation_steps: 16 - total_train_batch_size: 16 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - lr_scheduler_warmup_steps: 500 - num_epochs: 1 ### Training results | Training Loss | Epoch | Step | Validation Loss | |:-------------:|:-----:|:-----:|:---------------:| | 2.8641 | 0.04 | 500 | 2.6202 | | 2.7466 | 0.08 | 1000 | 2.5660 | | 2.8767 | 0.12 | 1500 | 2.5319 | | 2.7099 | 0.16 | 2000 | 2.5107 | | 2.7752 | 0.2 | 2500 | 2.4922 | | 2.6037 | 0.24 | 3000 | 2.4800 | | 2.8236 | 0.27 | 3500 | 2.4677 | | 2.7089 | 0.31 | 4000 | 2.4581 | | 2.7299 | 0.35 | 4500 | 2.4498 | | 2.7498 | 0.39 | 5000 | 2.4420 | | 2.6186 | 0.43 | 5500 | 2.4346 | | 2.7817 | 0.47 | 6000 | 2.4288 | | 2.5559 | 0.51 | 6500 | 2.4239 | | 2.6725 | 0.55 | 7000 | 2.4186 | | 2.6316 | 0.59 | 7500 | 2.4149 | | 2.5561 | 0.63 | 8000 | 2.4115 | | 2.5708 | 0.67 | 8500 | 2.4097 | | 2.5861 | 0.71 | 9000 | 2.4052 | | 2.6363 | 0.74 | 9500 | 2.4024 | | 2.7435 | 0.78 | 10000 | 2.4003 | | 2.7258 | 0.82 | 10500 | 2.3992 | | 2.6113 | 0.86 | 11000 | 2.3983 | | 2.6006 | 0.9 | 11500 | 2.3972 | | 2.5684 | 0.94 | 12000 | 2.3960 | | 2.6181 | 0.98 | 12500 | 2.3953 | ### Framework versions - Transformers 4.18.0 - Pytorch 1.10.0+cu111 - Datasets 2.0.0 - Tokenizers 0.11.6
[ -0.6263421177864075, -0.38677918910980225, 0.20836228132247925, -0.012768269516527653, -0.11955512315034866, -0.19328926503658295, -0.030318742617964745, -0.10843732953071594, 0.44858285784721375, 0.37615716457366943, -0.8600586652755737, -0.7290219068527222, -0.7378903031349182, -0.22804051637649536, -0.16390138864517212, 1.0776382684707642, 0.07772450894117355, 0.08323010057210922, -0.01117516215890646, -0.15526218712329865, -0.4531099200248718, -0.25686824321746826, -1.0593641996383667, -0.5110334753990173, 0.3167456090450287, 0.6441025733947754, 0.8708189129829407, 0.8138563632965088, 0.5344150066375732, 0.42088666558265686, -0.3774142563343048, -0.022661728784441948, -0.540383517742157, -0.6779482364654541, 0.1530200093984604, -0.6825655698776245, -0.5520359873771667, -0.0025835689157247543, 0.696834921836853, 0.6804509162902832, -0.21922633051872253, 0.641585111618042, 0.08673328906297684, 0.7396669983863831, -0.4645070731639862, 0.17849111557006836, -0.2734144628047943, 0.23909145593643188, -0.1742478311061859, -0.1945510357618332, -0.07244053483009338, -0.24948686361312866, 0.09738901257514954, -0.5731920003890991, 0.5711244344711304, 0.19604367017745972, 1.522399663925171, 0.44234901666641235, -0.30842339992523193, 0.12428511679172516, -0.5657243728637695, 0.7733330130577087, -0.609589159488678, 0.3623998165130615, 0.5108139514923096, 0.40833789110183716, 0.10518688708543777, -1.043506145477295, -0.6539620757102966, 0.30362093448638916, -0.23399360477924347, 0.2023620754480362, -0.28138217329978943, -0.313591331243515, 0.623192548751831, 0.7858242988586426, -0.6203644275665283, 0.1578543335199356, -0.6695711612701416, -0.22238057851791382, 0.6827045679092407, 0.6282503604888916, 0.05209900811314583, -0.47577565908432007, -0.5034487843513489, -0.24685698747634888, -0.46951884031295776, 0.4926624894142151, 0.5597078800201416, 0.2289380580186844, -0.6748409271240234, 0.42918112874031067, -0.21512024104595184, 0.6786213517189026, 0.20395848155021667, -0.20953673124313354, 0.7801138162612915, -0.32154589891433716, -0.5265196561813354, -0.033060457557439804, 0.7941568493843079, 0.6221919655799866, -0.051616158336400986, 0.14503347873687744, -0.20847272872924805, -0.10103093087673187, 0.20519928634166718, -1.0406231880187988, -0.37672898173332214, 0.37864410877227783, -0.6448458433151245, -0.7170538306236267, 0.08987244218587875, -0.623054563999176, 0.10431384295225143, -0.3778717517852783, 0.5102453231811523, -0.30764633417129517, -0.217512309551239, 0.021273178979754448, -0.22652623057365417, 0.32262271642684937, 0.2241058349609375, -1.1100695133209229, 0.45206451416015625, 0.44378262758255005, 0.9594884514808655, 0.12973052263259888, -0.11696923524141312, -0.06306233257055283, 0.1379729062318802, -0.5473102331161499, 0.6746087670326233, -0.06803669780492783, -0.509041965007782, -0.3424127697944641, 0.4563749134540558, -0.2131907045841217, -0.43946847319602966, 0.9298398494720459, -0.3322805166244507, 0.44455355405807495, -0.31412410736083984, -0.48368674516677856, -0.3000979423522949, 0.4133288264274597, -0.716728925704956, 1.4315098524093628, 0.25413432717323303, -1.054693341255188, 0.7374593019485474, -0.712994396686554, 0.09994766116142273, -0.17874138057231903, -0.07019832730293274, -1.1055065393447876, -0.1673436015844345, 0.28906020522117615, 0.42712122201919556, -0.4125436246395111, 0.10358057171106339, -0.21111539006233215, -0.4880158603191376, -0.2730412185192108, -0.3265092968940735, 1.1093456745147705, 0.17001542448997498, -0.6906874179840088, 0.2647417485713959, -1.2747447490692139, 0.2898009419441223, 0.39079275727272034, -0.35158294439315796, -0.013384847901761532, -0.35840627551078796, 0.2355697602033615, 0.43864861130714417, 0.21400713920593262, -0.5291371941566467, 0.27845820784568787, -0.32127511501312256, 0.6034995913505554, 0.7541417479515076, 0.15656894445419312, 0.31000325083732605, -0.7829228043556213, 0.3217499256134033, 0.4387158453464508, 0.32713961601257324, 0.14777249097824097, -0.4776413142681122, -1.0872265100479126, -0.5210722088813782, 0.23740145564079285, 0.38803887367248535, -0.22974291443824768, 0.7035310864448547, -0.2505617141723633, -0.8036263585090637, -0.4616736173629761, -0.1115303561091423, 0.2869997024536133, 0.8011195659637451, 0.32456886768341064, -0.038987305015325546, -0.6340976357460022, -1.2091007232666016, 0.14568187296390533, 0.08854682743549347, 0.16220536828041077, 0.4722280502319336, 1.066016674041748, -0.19329941272735596, 0.9976756572723389, -0.7830122113227844, -0.6020914316177368, -0.12106294929981232, -0.03320249170064926, 0.6515624523162842, 0.7407072186470032, 0.9809930324554443, -0.7357441782951355, -0.5470312237739563, -0.10737816244363785, -0.7199271321296692, 0.37154722213745117, -0.04058435559272766, -0.06921837478876114, -0.02210722304880619, 0.26533156633377075, -0.4261901080608368, 0.7920941114425659, 0.6260923147201538, -0.5454702377319336, 0.8530663847923279, -0.47428083419799805, 0.21769435703754425, -1.2893222570419312, 0.46049705147743225, -0.0475473590195179, -0.44985079765319824, -0.3072330355644226, -0.21976570785045624, 0.10286703705787659, -0.3318958878517151, -0.44522422552108765, 0.7864117622375488, -0.4242423176765442, 0.04485194757580757, 0.054875221103429794, -0.23621708154678345, 0.009074633941054344, 0.806282103061676, 0.04510847106575966, 1.029830813407898, 0.7848682999610901, -0.6007619500160217, 0.16098205745220184, 0.45269080996513367, -0.7142441272735596, 0.5612064003944397, -0.8717160820960999, -0.06293882429599762, 0.040435656905174255, 0.004723995923995972, -1.118465781211853, -0.3285984396934509, 0.32908156514167786, -0.4988953769207001, 0.2593044936656952, -0.16910772025585175, -0.26322421431541443, -0.8024142384529114, -0.4879695773124695, 0.07363996654748917, 0.5810026526451111, -0.4948526918888092, 0.3648994565010071, 0.09305426478385925, 0.25867801904678345, -0.6511409282684326, -0.8670526146888733, -0.07530323415994644, -0.2608659863471985, -0.9004176259040833, 0.5245231986045837, 0.004283168353140354, -0.03611604496836662, 0.07503063231706619, -0.07925105094909668, -0.15524767339229584, 0.046895552426576614, 0.5055074691772461, 0.20647862553596497, -0.17458267509937286, -0.2053961604833603, -0.14766712486743927, -0.4585050940513611, 0.024898666888475418, -0.07854295521974564, 0.6860199570655823, -0.20299941301345825, -0.26983171701431274, -0.8993995785713196, -0.05934013053774834, 0.5057551860809326, -0.22104506194591522, 1.1372458934783936, 0.6729044318199158, -0.5661323070526123, -0.01708715222775936, -0.40393438935279846, -0.29691067337989807, -0.5271230936050415, 0.40772849321365356, -0.750080943107605, -0.6229137182235718, 0.9767146110534668, 0.02819782868027687, 0.21229931712150574, 0.9646345376968384, 0.6394618153572083, -0.10191046446561813, 1.232752799987793, 0.4416444003582001, -0.045238129794597626, 0.3979444205760956, -1.1707416772842407, -0.08657217025756836, -0.8484320640563965, -0.5603194832801819, -0.6135979890823364, -0.5010082721710205, -0.6269277334213257, -0.06344274431467056, 0.402415007352829, 0.054360438138246536, -0.8099446892738342, 0.11381835490465164, -0.6383774876594543, 0.35769081115722656, 0.8317000269889832, 0.43960103392601013, 0.06727955490350723, -0.10111761838197708, -0.39163950085639954, -0.20465070009231567, -0.8888533711433411, -0.5223368406295776, 1.2862119674682617, 0.36940521001815796, 0.5506036281585693, 0.07409151643514633, 0.9009373784065247, 0.2859807312488556, 0.07167097926139832, -0.6383163928985596, 0.2048339545726776, -0.028755804523825645, -1.1151541471481323, -0.3054252862930298, -0.3701518774032593, -1.0909556150436401, 0.3155677020549774, -0.40924131870269775, -0.9253296256065369, 0.5241076946258545, 0.3332744240760803, -0.5954148769378662, 0.6806014776229858, -0.5838217735290527, 1.202341079711914, -0.11900421231985092, -0.5933791995048523, -0.12309116870164871, -0.7669373750686646, 0.3818364441394806, -0.003338312730193138, 0.05564495548605919, -0.08399378508329391, 0.004093927331268787, 1.014345407485962, -0.940969705581665, 0.6649929881095886, -0.18290089070796967, 0.3849094808101654, 0.36143597960472107, -0.2575277090072632, 0.7304320931434631, 0.13398300111293793, -0.2068662941455841, 0.0842004343867302, 0.1293223649263382, -0.7141246199607849, -0.42078784108161926, 0.9050678014755249, -1.2981758117675781, -0.5805913805961609, -0.6777631044387817, -0.4702993929386139, 0.21213942766189575, 0.49594584107398987, 0.6733699440956116, 0.6906968355178833, -0.035959452390670776, 0.3463044762611389, 0.6671489477157593, 0.05598188564181328, 0.6062718033790588, 0.24198342859745026, -0.029223622754216194, -0.8099830746650696, 0.8872982263565063, 0.09420879930257797, 0.3378986716270447, 0.01201721653342247, 0.2830010652542114, -0.43550756573677063, -0.3487158417701721, -0.5117913484573364, 0.2542043924331665, -0.5305302739143372, -0.2900773286819458, -0.5425810813903809, -0.16118654608726501, -0.65135258436203, -0.36076590418815613, -0.4933568835258484, -0.3388509750366211, -0.49994510412216187, -0.17816846072673798, 0.4366559088230133, 0.5671795606613159, -0.024406064301729202, 0.6244367361068726, -0.6822800636291504, 0.021610727533698082, 0.029307067394256592, 0.21834681928157806, 0.03764403983950615, -0.7785758376121521, -0.3395986557006836, -0.05971159785985947, -0.5061665177345276, -0.6550834774971008, 0.7487687468528748, 0.07058649510145187, 0.5803828835487366, 0.7567156553268433, -0.13832710683345795, 1.0474493503570557, -0.28021812438964844, 0.8700038194656372, 0.49370425939559937, -0.7939010858535767, 0.5325531959533691, -0.32708436250686646, 0.36117473244667053, 0.7015461325645447, 0.5625350475311279, -0.44722768664360046, -0.05341252312064171, -1.4855254888534546, -0.880436897277832, 1.0961796045303345, 0.3566085696220398, -0.15218199789524078, 0.31341856718063354, 0.36256957054138184, -0.3636651337146759, 0.3031589388847351, -0.8116765022277832, -0.8629529476165771, -0.1479046791791916, -0.042081210762262344, -0.22437939047813416, -0.2082822322845459, -0.24603623151779175, -0.5395703911781311, 0.8855220079421997, 0.07854718714952469, 0.4298095405101776, 0.15218569338321686, 0.19262909889221191, -0.10123144835233688, -0.024718282744288445, 0.7961212396621704, 0.8120861649513245, -0.6688179969787598, -0.057492367923259735, 0.27322787046432495, -0.4856286942958832, 0.1251089721918106, -0.01543929148465395, -0.3782023787498474, 0.009256267920136452, 0.4366680681705475, 0.9645429253578186, 0.22806136310100555, 0.032855939120054245, 0.6350414156913757, 0.02501675672829151, -0.5555692911148071, -0.6086753606796265, 0.08050046116113663, 0.04062137007713318, 0.2860191762447357, 0.27743735909461975, 0.4901648759841919, 0.0858340859413147, -0.46599721908569336, 0.24810516834259033, 0.2642999589443207, -0.713290810585022, -0.11817029863595963, 1.0572055578231812, 0.062117137014865875, -0.18081074953079224, 0.7499961853027344, 0.002055351622402668, -0.5567864775657654, 1.0777233839035034, 0.4581872522830963, 0.7301404476165771, -0.21858341991901398, -0.07465673238039017, 1.1037228107452393, 0.3427497148513794, -0.026211852207779884, 0.5649362802505493, 0.1317480355501175, -0.40905943512916565, 0.030008748173713684, -0.5771216750144958, -0.2945020794868469, 0.36175593733787537, -1.020287275314331, 0.7746130228042603, -0.4919869005680084, -0.45822179317474365, 0.09722913056612015, 0.45831072330474854, -1.0798450708389282, 0.8043228983879089, -0.05097467824816704, 1.3091096878051758, -1.046809196472168, 0.7433387041091919, 0.6912693977355957, -0.7484360933303833, -1.2064334154129028, -0.5789453387260437, -0.04378087818622589, -1.0094494819641113, 0.6917494535446167, 0.06243322044610977, 0.2924652397632599, 0.23372690379619598, -0.586141049861908, -1.1278363466262817, 1.440204381942749, 0.01540862675756216, -0.7183224558830261, 0.06004858389496803, 0.13101978600025177, 0.45215076208114624, -0.07207680493593216, 0.5473633408546448, 0.5645892024040222, 0.5174259543418884, 0.22579698264598846, -0.8930435180664062, 0.08572143316268921, -0.36142462491989136, -0.09939563274383545, 0.4313983619213104, -1.0422877073287964, 1.2027617692947388, -0.4211416244506836, 0.2246713936328888, 0.10431259870529175, 0.7512646913528442, 0.3320784866809845, 0.24197235703468323, 0.5641542673110962, 1.1962207555770874, 0.9068178534507751, -0.39951130747795105, 1.3375827074050903, -0.5121943950653076, 0.9371134042739868, 1.0568546056747437, 0.3506002426147461, 0.7672408223152161, 0.4970487356185913, -0.47914931178092957, 0.3859919309616089, 1.2484393119812012, -0.2516753375530243, 0.6063710451126099, 0.05349559709429741, -0.18885891139507294, -0.3963301181793213, 0.24986149370670319, -0.7590717077255249, 0.18585051596164703, 0.17181053757667542, -0.6750479340553284, -0.3368986248970032, -0.23958778381347656, 0.12348128855228424, -0.362090140581131, -0.6123467683792114, 0.4820772409439087, -0.16344492137432098, -0.23325352370738983, 0.7229626774787903, 0.059108439832925797, 0.5039443969726562, -0.7578127980232239, 0.12205467373132706, -0.09527307748794556, 0.5686860680580139, -0.7461421489715576, -0.885555624961853, 0.29644957184791565, -0.1826702207326889, -0.36405476927757263, 0.042771629989147186, 0.4534932076931, -0.10759125649929047, -0.795141339302063, -0.055242665112018585, 0.23190274834632874, 0.1500415802001953, 0.19594097137451172, -0.9579458236694336, -0.21692714095115662, 0.12263526022434235, -0.7612815499305725, 0.05183086544275284, 0.4096735715866089, -0.22535955905914307, 0.6510350704193115, 0.7580446600914001, 0.003938185516744852, 0.18007792532444, -0.05591829866170883, 1.2402961254119873, -0.752654492855072, -0.8365479707717896, -0.7339890003204346, 0.5250853300094604, -0.3094330132007599, -0.9075281023979187, 0.7879032492637634, 1.036881446838379, 0.7174468636512756, -0.08554058521986008, 0.6415029764175415, -0.2880077064037323, 0.5534665584564209, -0.43031173944473267, 0.7755514979362488, -0.9503006935119629, -0.20315420627593994, -0.17257212102413177, -0.8715689778327942, -0.39539313316345215, 0.7420493960380554, -0.6703298091888428, 0.20877735316753387, 0.605681300163269, 0.8522214293479919, -0.0026551070623099804, -0.038462720811367035, 0.2715769112110138, 0.004209983162581921, 0.2580440938472748, 0.5259084701538086, 0.41280263662338257, -0.9331662654876709, 0.5348299741744995, -0.7949934601783752, -0.05444376543164253, -0.2363070696592331, -0.7222123146057129, -0.9126031994819641, -0.41880980134010315, -0.5752015709877014, -0.48718956112861633, -0.20230962336063385, 1.0492496490478516, 0.9288882613182068, -0.799564003944397, -0.23646365106105804, 0.025719385594129562, -0.10160812735557556, -0.3083949685096741, -0.1540384292602539, 0.9623815417289734, -0.1827201247215271, -1.0120476484298706, -0.2761249244213104, -0.14585240185260773, 0.3615805208683014, -0.17289994657039642, -0.1841549426317215, -0.2357194870710373, -0.23307856917381287, 0.29641246795654297, 0.08002649992704391, -0.4367527663707733, -0.3392913341522217, -0.1772802770137787, -0.26658812165260315, 0.43504106998443604, 0.3178693354129791, -0.4933464527130127, 0.3002135157585144, 0.47754186391830444, 0.3194142282009125, 1.0220614671707153, -0.014106115326285362, 0.12069062143564224, -0.7069623470306396, 0.34671226143836975, -0.00009220543142873794, 0.5034546256065369, 0.12502111494541168, -0.34386104345321655, 0.8246874213218689, 0.4850517809391022, -0.7190244197845459, -0.8544420003890991, -0.34325462579727173, -1.2943339347839355, 0.16004584729671478, 1.098097562789917, -0.06482544541358948, -0.6394638419151306, 0.21925057470798492, -0.32375165820121765, 0.08742720633745193, -0.3769410252571106, 0.5311360359191895, 0.7811279296875, -0.19258642196655273, -0.0400211438536644, -0.6580188870429993, 0.5993126630783081, 0.21760225296020508, -0.813277542591095, -0.4330458343029022, 0.2918032109737396, 0.6814222931861877, 0.20625954866409302, 0.5304414629936218, -0.1634218841791153, 0.2822413146495819, 0.39946451783180237, 0.2857946455478668, -0.2784135937690735, -0.09657565504312515, -0.24926967918872833, 0.20617401599884033, 0.06015225127339363, -0.6910688281059265 ]
jjzha/jobbert_knowledge_extraction
jjzha
"2023-10-26T10:25:41Z"
18,523
0
transformers
[ "transformers", "pytorch", "safetensors", "bert", "token-classification", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2023-04-06T14:15:13Z"
This is a demo using the models from: ``` @inproceedings{zhang-etal-2022-skillspan, title = "{S}kill{S}pan: Hard and Soft Skill Extraction from {E}nglish Job Postings", author = "Zhang, Mike and Jensen, Kristian and Sonniks, Sif and Plank, Barbara", booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies", month = jul, year = "2022", address = "Seattle, United States", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2022.naacl-main.366", doi = "10.18653/v1/2022.naacl-main.366", pages = "4962--4984", abstract = "Skill Extraction (SE) is an important and widely-studied task useful to gain insights into labor market dynamics. However, there is a lacuna of datasets and annotation guidelines; available datasets are few and contain crowd-sourced labels on the span-level or labels from a predefined skill inventory. To address this gap, we introduce SKILLSPAN, a novel SE dataset consisting of 14.5K sentences and over 12.5K annotated spans. We release its respective guidelines created over three different sources annotated for hard and soft skills by domain experts. We introduce a BERT baseline (Devlin et al., 2019). To improve upon this baseline, we experiment with language models that are optimized for long spans (Joshi et al., 2020; Beltagy et al., 2020), continuous pre-training on the job posting domain (Han and Eisenstein, 2019; Gururangan et al., 2020), and multi-task learning (Caruana, 1997). Our results show that the domain-adapted models significantly outperform their non-adapted counterparts, and single-task outperforms multi-task learning.", } ``` Note that there is another endpoint, namely `jjzha/jobbert_skill_extraction`. Knowledge can be seen as hard skills and skills are both soft and applied skills.
[ -0.23943032324314117, -0.7184686064720154, 0.22872348129749298, 0.2701873779296875, 0.06930083781480789, -0.2157599776983261, -0.45678478479385376, -0.5525226593017578, -0.007597087416797876, 0.5865120887756348, -0.6083644032478333, -0.45528411865234375, -0.5710237622261047, 0.13243889808654785, -0.22401966154575348, 1.0678824186325073, 0.23433881998062134, -0.35991171002388, -0.07692984491586685, 0.1882777065038681, -0.25318095088005066, -0.2400454580783844, -0.5728925466537476, -0.07598918676376343, 0.3639291226863861, 0.6370055079460144, 0.46706655621528625, 0.7010095119476318, 0.24125327169895172, 0.30817410349845886, 0.03284192457795143, 0.11659513413906097, -0.23420776426792145, 0.10748497396707535, -0.17216163873672485, -0.252881795167923, -0.8442679643630981, 0.2859674096107483, 0.353921115398407, 1.1052745580673218, 0.06235750764608383, 0.21069881319999695, 0.36772409081459045, 0.4243537187576294, -0.5531472563743591, 0.577183723449707, -0.6768717765808105, -0.15656687319278717, -0.6217607259750366, 0.13114318251609802, -0.3763849437236786, -0.1631423979997635, 0.20435874164104462, -0.7154837846755981, 0.4558737576007843, -0.3185372054576874, 1.0990630388259888, 0.08002182096242905, -0.4135035574436188, -0.254445344209671, -0.3055359125137329, 0.9107688069343567, -0.8466404676437378, 0.4050654172897339, 0.6175543665885925, 0.4782450497150421, -0.010989081114530563, -0.6824017763137817, -0.5196012258529663, 0.011185537092387676, 0.05177963897585869, 0.2510194480419159, 0.42713242769241333, 0.0451541505753994, 0.26603710651397705, 0.18247182667255402, -0.43762126564979553, 0.4837542176246643, -0.7621319890022278, 0.027407828718423843, 0.8610756993293762, 0.08940976113080978, 0.1587563306093216, -0.27544596791267395, -0.21470482647418976, -0.2965576946735382, -0.6016433238983154, 0.2370917946100235, 0.36770129203796387, 0.6863058805465698, -0.2412174940109253, 0.6313204765319824, -0.3373331129550934, 0.6818089485168457, -0.0989091619849205, -0.3057063817977905, 0.4310906231403351, -0.22340349853038788, -0.0503382533788681, -0.5166760683059692, 0.7176567316055298, 0.14690794050693512, 0.4641159176826477, -0.1502857357263565, -0.045188795775175095, -0.3003319203853607, 0.2825961410999298, -0.4522872865200043, -0.3398931324481964, 0.03231852874159813, -0.44729116559028625, -0.2946319580078125, 0.19128569960594177, -1.0329936742782593, -0.5764597654342651, -0.12207285314798355, -0.05104716494679451, -0.28985270857810974, -0.538733720779419, 0.07228519767522812, -0.05495265871286392, 0.4245140254497528, 0.25667673349380493, -0.8862938284873962, 0.3384152352809906, 0.7756252288818359, 0.6720438599586487, -0.2673521637916565, -0.4807034432888031, -0.35605451464653015, -0.09425660222768784, -0.12995792925357819, 0.6136325597763062, -0.4297631084918976, 0.03274039179086685, 0.2723774313926697, 0.4210212528705597, -0.34206312894821167, -0.42870333790779114, 0.5803707242012024, -0.614843487739563, 0.21658450365066528, -0.2982337772846222, -0.4959508180618286, -0.29197928309440613, 0.033005550503730774, -0.9554546475410461, 1.300982117652893, 0.280111700296402, -0.5043475031852722, 0.6993356347084045, -0.9962226748466492, -0.5423200130462646, 0.05782518908381462, 0.02619580365717411, -0.43047064542770386, -0.21814794838428497, 0.21635323762893677, 0.9542058110237122, -0.2885894775390625, 0.012237060815095901, -0.5516429543495178, -0.21319913864135742, 0.18068695068359375, -0.2692601978778839, 1.016432285308838, 0.15317808091640472, -0.400471955537796, -0.3928724527359009, -0.7282703518867493, -0.007749135605990887, 0.12480675429105759, -0.43149083852767944, -0.2167820781469345, -0.04335851967334747, 0.02031080797314644, 0.4873371720314026, 0.24836713075637817, -0.43812423944473267, 0.22488661110401154, -0.5891185402870178, 0.13839179277420044, 0.7766903042793274, -0.15522730350494385, 0.4582987427711487, 0.013381950557231903, 0.6954033970832825, -0.100303053855896, -0.01510014757514, 0.02490129880607128, -0.19869068264961243, -0.5013777613639832, -0.30574122071266174, 0.26238733530044556, 0.5300531983375549, -0.7796840667724609, 0.5559685230255127, -0.20076365768909454, -0.6605215072631836, -0.6106241941452026, 0.4340318739414215, 0.47616055607795715, 0.5938543081283569, 0.5075668096542358, -0.3334914445877075, -0.5191906690597534, -0.7829314470291138, -0.25120681524276733, 0.10424256324768066, 0.0724334716796875, 0.059782736003398895, 0.30049929022789, 0.1062072142958641, 1.059399962425232, -0.5096347332000732, -0.23583729565143585, -0.5792017579078674, 0.25433629751205444, 0.42254719138145447, 0.356419175863266, 0.45778799057006836, -0.7138173580169678, -0.6887319684028625, 0.00427227234467864, -0.8758700489997864, -0.4169197380542755, -0.1672234684228897, -0.08578012138605118, 0.27154430747032166, 0.5309755206108093, -0.600221574306488, 0.3955157697200775, 0.3181924819946289, -0.32705751061439514, 0.9128201007843018, 0.15129272639751434, -0.21588034927845, -0.9811699390411377, 0.34329652786254883, 0.514918327331543, -0.06906867772340775, -0.5767629146575928, -0.021781492978334427, 0.07605284452438354, -0.07897233963012695, -0.536369800567627, 0.7191832661628723, -0.7750567197799683, -0.3313649594783783, -0.3321031630039215, 0.16618765890598297, 0.02815050072968006, 0.7517067790031433, 0.17354705929756165, 0.928715705871582, 0.41782328486442566, -0.6795040965080261, 0.27350762486457825, 0.3101831078529358, -0.5149742364883423, 0.46845099329948425, -0.7235445976257324, 0.12860368192195892, 0.06450927257537842, -0.030094705522060394, -0.7578554153442383, -0.22694852948188782, 0.01567566953599453, -0.09040984511375427, 0.26198479533195496, -0.30959898233413696, -0.40942272543907166, -0.6108912229537964, -0.33455029129981995, 0.055115532130002975, 0.36654430627822876, -0.20132951438426971, 0.26953110098838806, 0.4856947958469391, -0.6001102924346924, -0.8292837738990784, -0.6613136529922485, -0.07380993664264679, -0.09962307661771774, -0.42318469285964966, 0.33270591497421265, 0.18189233541488647, -0.19151951372623444, -0.057989154011011124, 0.09938815981149673, -0.4805738925933838, 0.2343645691871643, 0.06610478460788727, 0.29432448744773865, -0.09240511059761047, 0.04063365235924721, 0.12160158157348633, -0.2717231810092926, -0.14207057654857635, 0.04094609618186951, 0.34647586941719055, -0.04958926513791084, -0.466315895318985, -0.34976926445961, 0.08985619246959686, 0.5322338938713074, -0.29262635111808777, 0.8036006093025208, 0.9141886830329895, -0.29540905356407166, -0.2818124294281006, -0.7334725856781006, -0.33222484588623047, -0.49956709146499634, 0.7133968472480774, -0.40342259407043457, -0.5362443327903748, 0.44790658354759216, -0.10649696737527847, 0.1680358499288559, 0.47253090143203735, 0.23672491312026978, -0.23192881047725677, 0.767367959022522, 0.7966157793998718, -0.11780154705047607, 0.39781883358955383, -0.5331544280052185, -0.06611113995313644, -0.889418363571167, -0.10597694665193558, -0.4000447690486908, -0.05082087591290474, -0.2776668071746826, -0.1871335804462433, 0.29694172739982605, 0.025731908157467842, -0.22773627936840057, 0.6289913058280945, -0.34088143706321716, 0.4091271758079529, 0.6934734582901001, 0.1864393949508667, -0.21193768084049225, -0.23118527233600616, 0.0578947439789772, -0.26295775175094604, -0.6790105104446411, -0.5113233327865601, 1.2995402812957764, 0.3904252350330353, 0.3948676586151123, -0.15176557004451752, 0.3924253582954407, 0.3959154784679413, 0.014208376407623291, -0.5058789253234863, 0.7516217231750488, -0.5392568707466125, -0.5587950348854065, -0.5156844258308411, -0.17236165702342987, -0.9931025505065918, 0.2297210395336151, -0.2110813558101654, -0.5392465591430664, 0.13556721806526184, -0.09382633119821548, -0.3483211398124695, 0.2832537591457367, -0.7386572360992432, 1.0669821500778198, -0.32290777564048767, -0.5077241063117981, 0.04631764069199562, -0.6889083385467529, 0.17765158414840698, -0.10405882447957993, 0.29356279969215393, -0.23624855279922485, 0.019799785688519478, 0.8335447311401367, -0.5066249966621399, 1.379028558731079, -0.5650824308395386, -0.046369269490242004, 0.1815851330757141, -0.06195672228932381, 0.5079692602157593, -0.3702358901500702, -0.6252131462097168, 0.06008245050907135, -0.11428634077310562, -0.4840351641178131, -0.44318434596061707, 0.19739679992198944, -0.7119452357292175, -0.20343603193759918, -0.1721808761358261, -0.5277974009513855, -0.22504949569702148, 0.3425275981426239, 0.10737548768520355, 0.3293648362159729, 0.052747681736946106, 0.2927605211734772, 0.34899723529815674, -0.32646551728248596, 0.40047380328178406, 0.38168561458587646, 0.33171677589416504, -0.18440072238445282, 0.7914924621582031, 0.380289226770401, 0.0633661076426506, 0.04276132211089134, -0.1901753544807434, -0.3076244592666626, -0.2286314070224762, -0.08572136610746384, 0.4318995177745819, -0.5446271300315857, -0.19429390132427216, -0.5097230672836304, -0.33700212836265564, -0.7272889614105225, -0.3952367901802063, -0.4201326072216034, -0.36029818654060364, -0.24546517431735992, -0.3163852393627167, 0.2258441150188446, 0.6392590403556824, -0.1429830938577652, 0.21551601588726044, -0.59559565782547, 0.1790642887353897, 0.43912792205810547, 0.27432578802108765, 0.03103575110435486, -0.3108746409416199, -0.7039909362792969, 0.2100728303194046, -0.24721330404281616, -0.9927009344100952, 0.6188631653785706, 0.4009536802768707, 0.8823270201683044, 0.41059374809265137, 0.06139405816793442, 0.6113369464874268, -0.09347201883792877, 1.0062462091445923, -0.04440822824835777, -0.7902454733848572, 0.5087897777557373, -0.39974460005760193, 0.07840713858604431, 0.853568971157074, 0.4593476355075836, -0.6099827885627747, -0.24657835066318512, -0.6208214163780212, -1.0856075286865234, 0.957330584526062, -0.07818430662155151, -0.05697259679436684, -0.12171006202697754, 0.3256615400314331, 0.5978397130966187, 0.27710169553756714, -0.890714704990387, 0.06140967085957527, -0.07095402479171753, -0.41683429479599, 0.1577698141336441, -0.3932867646217346, 0.15198306739330292, -0.26357120275497437, 0.7195919156074524, -0.22578059136867523, 0.3785575330257416, -0.27906379103660583, -0.42143845558166504, 0.19867023825645447, 0.14680854976177216, 0.21567347645759583, 0.7007247805595398, -0.045569099485874176, 0.11895010620355606, 0.37969842553138733, -0.3724006116390228, -0.255193293094635, 0.2316736876964569, 0.17677536606788635, -0.2466292679309845, 0.5798601508140564, 0.5913202166557312, 0.32153263688087463, -0.6372491717338562, 0.808181643486023, 0.7004382610321045, -0.28345927596092224, -0.5061038732528687, 0.036194730550050735, -0.20234254002571106, 0.34703168272972107, 0.41230863332748413, -0.2638985216617584, 0.017148500308394432, -0.29750800132751465, 0.3387381136417389, 0.2079276740550995, -0.18195468187332153, -0.582309365272522, 0.6031602025032043, 0.3106703460216522, -0.04792886599898338, 0.8320753574371338, -0.5449886322021484, -0.5883241295814514, 0.6635196805000305, 0.44415393471717834, 0.7475712299346924, -0.06135045737028122, 0.3257364332675934, 0.2196786105632782, 0.1132575049996376, -0.18206903338432312, 0.3750426173210144, -0.06968317925930023, -0.7551587224006653, -0.6482051610946655, -0.3650192320346832, -0.32413357496261597, 0.16107679903507233, -0.6925399303436279, 0.4573625922203064, -0.11952174454927444, -0.008281311951577663, -0.1694152057170868, 0.2724043130874634, -1.1248836517333984, 0.24774736166000366, 0.029779916629195213, 0.8430400490760803, -1.2633315324783325, 0.8957387804985046, 0.6876246333122253, -0.7577397227287292, -0.7781216502189636, -0.1623779684305191, -0.010503760538995266, -0.8075134754180908, 0.740212082862854, 0.14817683398723602, 0.2633766531944275, -0.17153161764144897, -0.5151978731155396, -0.602102518081665, 1.2411446571350098, 0.3127230107784271, -0.10127907991409302, -0.2670035660266876, 0.3221050500869751, 0.35742273926734924, -0.17939825356006622, 0.40593478083610535, 0.5029026865959167, 0.5613165497779846, -0.32347074151039124, -1.2166633605957031, -0.06525880098342896, -0.6527007818222046, -0.14606943726539612, -0.23391449451446533, -0.6004383563995361, 1.0469855070114136, 0.08795756101608276, -0.12505245208740234, -0.20101699233055115, 0.7166513800621033, 0.32646721601486206, 0.36511358618736267, 0.5456312298774719, 0.35912495851516724, 0.7499042749404907, 0.09479628503322601, 0.6266698241233826, -0.3333902060985565, 0.19754904508590698, 1.0534168481826782, -0.4028339684009552, 0.8045744895935059, 0.1700938194990158, -0.3782660961151123, 0.8834450244903564, 0.4862707555294037, -0.10091274231672287, 0.4337657690048218, -0.19593295454978943, 0.12831062078475952, -0.22515062987804413, 0.13999344408512115, -0.3485668897628784, 0.5924532413482666, 0.4975222051143646, -0.28430166840553284, -0.16837894916534424, 0.22234377264976501, 0.28430306911468506, 0.052965596318244934, -0.04851860553026199, 0.6959431767463684, 0.054496344178915024, -0.5360854864120483, 0.4254535138607025, -0.012262172065675259, 0.9241751432418823, -0.5982222557067871, -0.23896324634552002, -0.10784225165843964, -0.011838722974061966, -0.15959668159484863, -0.945049524307251, 0.30370596051216125, 0.06303338706493378, -0.011968403123319149, -0.4716455638408661, 1.0245981216430664, -0.521859884262085, -0.3771701753139496, 0.2587660253047943, 0.7644962668418884, 0.36316630244255066, -0.010487998835742474, -0.8328467607498169, -0.25377893447875977, -0.26980796456336975, -0.4332643747329712, 0.19013667106628418, 0.5641540884971619, 0.07058267295360565, 0.5952836275100708, 0.5017331838607788, 0.3687339723110199, 0.1499030441045761, -0.07140862196683884, 0.7090212106704712, -0.5931440591812134, -0.6499933004379272, -0.4139898717403412, 0.7597407698631287, -0.5878827571868896, -0.40038812160491943, 0.7005317807197571, 0.4031825065612793, 0.8829801082611084, -0.1985396146774292, 1.0579438209533691, -0.2636992335319519, 0.8137401342391968, -0.41059282422065735, 0.7291796803474426, -0.6427584290504456, 0.14277470111846924, -0.5041999220848083, -0.8555419445037842, -0.06120717152953148, 0.6354291439056396, -0.6570031642913818, 0.4328879117965698, 0.5674904584884644, 0.8879960179328918, -0.25099417567253113, -0.24735209345817566, 0.1259467601776123, 0.1554480344057083, 0.20443075895309448, 0.49478456377983093, 0.2608911097049713, -0.3115385174751282, 0.5064582228660583, -0.5147029757499695, -0.14876393973827362, -0.4673439562320709, -0.8667564988136292, -0.7230477929115295, -0.9084222912788391, -0.3124769926071167, -0.18793614208698273, 0.06784141063690186, 0.9384570717811584, 0.8941222429275513, -0.5879871845245361, -0.5139692425727844, 0.0545678436756134, -0.1614365577697754, -0.9116583466529846, -0.316476970911026, 0.5469827055931091, -0.461765855550766, -0.6111040711402893, 0.6582472324371338, -0.2064858227968216, -0.20750953257083893, -0.11637990176677704, -0.0336279422044754, -0.3206407129764557, -0.13149043917655945, 0.5777941942214966, 0.6844877004623413, -0.34387049078941345, -0.28383997082710266, 0.12278136610984802, -0.2198387235403061, -0.3934158980846405, 0.46958228945732117, -0.5174403190612793, 0.23665370047092438, 0.36468037962913513, 0.6165264844894409, 0.47258517146110535, -0.09172581881284714, 0.5860154628753662, -1.1537963151931763, 0.1827988475561142, 0.0419590063393116, 0.2829531729221344, 0.24595676362514496, -0.2199186086654663, 0.845211923122406, 0.3422369956970215, -0.3744107484817505, -0.8419906497001648, 0.011969207786023617, -0.8966630697250366, -0.3512512445449829, 1.34773588180542, -0.21138128638267517, -0.16683630645275116, -0.5177033543586731, 0.03383185714483261, 0.4499426484107971, -0.16919946670532227, 0.9744245409965515, 0.6135538220405579, 0.04462806507945061, -0.25925305485725403, -0.6219563484191895, 0.4242601990699768, 0.39546486735343933, -0.8348727226257324, 0.14744141697883606, 0.31213828921318054, 0.10912097990512848, -0.09297117590904236, 0.8150967955589294, -0.07496710121631622, 0.4477779269218445, -0.013095095753669739, 0.4696663022041321, -0.48620420694351196, -0.5091455578804016, -0.033704355359077454, 0.44660454988479614, 0.12688864767551422, -0.1910557895898819 ]
laion/clap-htsat-unfused
laion
"2023-04-24T14:39:57Z"
18,450
18
transformers
[ "transformers", "pytorch", "clap", "feature-extraction", "arxiv:2211.06687", "license:apache-2.0", "endpoints_compatible", "region:us" ]
feature-extraction
"2023-02-16T20:47:08Z"
--- license: apache-2.0 --- # Model card for CLAP Model card for CLAP: Contrastive Language-Audio Pretraining ![clap_image](https://s3.amazonaws.com/moonup/production/uploads/1678811100805-62441d1d9fdefb55a0b7d12c.png) # Table of Contents 0. [TL;DR](#TL;DR) 1. [Model Details](#model-details) 2. [Usage](#usage) 3. [Uses](#uses) 4. [Citation](#citation) # TL;DR The abstract of the paper states that: > Contrastive learning has shown remarkable success in the field of multimodal representation learning. In this paper, we propose a pipeline of contrastive language-audio pretraining to develop an audio representation by combining audio data with natural language descriptions. To accomplish this target, we first release LAION-Audio-630K, a large collection of 633,526 audio-text pairs from different data sources. Second, we construct a contrastive language-audio pretraining model by considering different audio encoders and text encoders. We incorporate the feature fusion mechanism and keyword-to-caption augmentation into the model design to further enable the model to process audio inputs of variable lengths and enhance the performance. Third, we perform comprehensive experiments to evaluate our model across three tasks: text-to-audio retrieval, zero-shot audio classification, and supervised audio classification. The results demonstrate that our model achieves superior performance in text-to-audio retrieval task. In audio classification tasks, the model achieves state-of-the-art performance in the zero-shot setting and is able to obtain performance comparable to models' results in the non-zero-shot setting. LAION-Audio-630K and the proposed model are both available to the public. # Usage You can use this model for zero shot audio classification or extracting audio and/or textual features. # Uses ## Perform zero-shot audio classification ### Using `pipeline` ```python from datasets import load_dataset from transformers import pipeline dataset = load_dataset("ashraq/esc50") audio = dataset["train"]["audio"][-1]["array"] audio_classifier = pipeline(task="zero-shot-audio-classification", model="laion/clap-htsat-unfused") output = audio_classifier(audio, candidate_labels=["Sound of a dog", "Sound of vaccum cleaner"]) print(output) >>> [{"score": 0.999, "label": "Sound of a dog"}, {"score": 0.001, "label": "Sound of vaccum cleaner"}] ``` ## Run the model: You can also get the audio and text embeddings using `ClapModel` ### Run the model on CPU: ```python from datasets import load_dataset from transformers import ClapModel, ClapProcessor librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation") audio_sample = librispeech_dummy[0] model = ClapModel.from_pretrained("laion/clap-htsat-unfused") processor = ClapProcessor.from_pretrained("laion/clap-htsat-unfused") inputs = processor(audios=audio_sample["audio"]["array"], return_tensors="pt") audio_embed = model.get_audio_features(**inputs) ``` ### Run the model on GPU: ```python from datasets import load_dataset from transformers import ClapModel, ClapProcessor librispeech_dummy = load_dataset("hf-internal-testing/librispeech_asr_dummy", "clean", split="validation") audio_sample = librispeech_dummy[0] model = ClapModel.from_pretrained("laion/clap-htsat-unfused").to(0) processor = ClapProcessor.from_pretrained("laion/clap-htsat-unfused") inputs = processor(audios=audio_sample["audio"]["array"], return_tensors="pt").to(0) audio_embed = model.get_audio_features(**inputs) ``` # Citation If you are using this model for your work, please consider citing the original paper: ``` @misc{https://doi.org/10.48550/arxiv.2211.06687, doi = {10.48550/ARXIV.2211.06687}, url = {https://arxiv.org/abs/2211.06687}, author = {Wu, Yusong and Chen, Ke and Zhang, Tianyu and Hui, Yuchen and Berg-Kirkpatrick, Taylor and Dubnov, Shlomo}, keywords = {Sound (cs.SD), Audio and Speech Processing (eess.AS), FOS: Computer and information sciences, FOS: Computer and information sciences, FOS: Electrical engineering, electronic engineering, information engineering, FOS: Electrical engineering, electronic engineering, information engineering}, title = {Large-scale Contrastive Language-Audio Pretraining with Feature Fusion and Keyword-to-Caption Augmentation}, publisher = {arXiv}, year = {2022}, copyright = {Creative Commons Attribution 4.0 International} } ```
[ -0.5470125675201416, -0.6153478026390076, 0.2761523425579071, 0.043339792639017105, -0.27025726437568665, -0.19880039989948273, -0.3457125723361969, -0.26195237040519714, 0.07791531831026077, 0.23455968499183655, -0.519036591053009, -0.5840192437171936, -0.6835874319076538, -0.21514473855495453, -0.4541371166706085, 0.9883386492729187, 0.19890360534191132, -0.0039554075337946415, -0.058985333889722824, -0.24007101356983185, -0.42828571796417236, -0.4231126308441162, -0.4838687479496002, -0.4962897300720215, 0.1428528130054474, 0.16143786907196045, 0.39985141158103943, 0.5618408918380737, 0.2731904983520508, 0.39693498611450195, -0.2008284628391266, -0.3495725095272064, -0.1827525794506073, -0.06069019436836243, 0.19079560041427612, -0.5305684804916382, -0.6572104096412659, 0.21644757688045502, 0.6200299859046936, 0.43549785017967224, -0.09519609808921814, 0.4111686944961548, 0.20811210572719574, 0.09298579394817352, -0.5926991105079651, 0.199489027261734, -0.4730116128921509, 0.010062085464596748, -0.12247942388057709, -0.35133838653564453, -0.2890138626098633, 0.10495788604021072, 0.10783311724662781, -0.614722728729248, 0.4094609022140503, -0.11728301644325256, 1.229475736618042, 0.5057058930397034, -0.06139492616057396, -0.09134133160114288, -0.7333648204803467, 0.8766236901283264, -1.07001793384552, 0.7109073996543884, 0.40462952852249146, 0.18666158616542816, 0.2962782382965088, -0.8369970917701721, -0.8372552394866943, -0.13635435700416565, 0.12585626542568207, 0.4832226634025574, -0.14857080578804016, 0.11755364388227463, 0.3536529242992401, 0.5605517029762268, -0.4962625205516815, 0.13778604567050934, -0.37518325448036194, -0.1824696809053421, 0.4531018137931824, -0.1893560290336609, 0.24447201192378998, -0.27780839800834656, -0.4234952926635742, -0.7274758219718933, -0.38906997442245483, 0.16162517666816711, 0.4584091603755951, 0.32315149903297424, -0.7395281195640564, 0.34428244829177856, 0.061147406697273254, 0.46211686730384827, 0.181828573346138, -0.44015467166900635, 0.7818057537078857, -0.2720896303653717, -0.21002814173698425, 0.30710434913635254, 1.1407105922698975, 0.031236985698342323, 0.005486802663654089, 0.2788081169128418, -0.3221832513809204, 0.2491156905889511, -0.05110853910446167, -0.7268807888031006, -0.27869713306427, 0.40578776597976685, -0.3172752559185028, -0.15277855098247528, -0.027820654213428497, -0.6211115717887878, 0.002493560779839754, -0.4490741491317749, 0.9878724813461304, -0.5817024111747742, -0.4068944752216339, 0.16089415550231934, -0.2941170036792755, 0.18845190107822418, -0.17338433861732483, -0.8874613046646118, 0.15824562311172485, 0.4193248748779297, 0.7266106009483337, 0.11519628018140793, -0.36513078212738037, -0.5894221663475037, 0.12826821208000183, 0.010944901034235954, 0.5600081086158752, -0.3423992097377777, -0.31321579217910767, -0.07276742160320282, -0.15909676253795624, -0.11736330389976501, -0.6760140657424927, 0.7098614573478699, -0.11641963571310043, 0.3449619710445404, 0.224111407995224, -0.49275362491607666, -0.23826345801353455, -0.10755601525306702, -0.5075401663780212, 0.9740376472473145, -0.11129934340715408, -0.9431912302970886, 0.24846893548965454, -0.6840840578079224, -0.3479819893836975, -0.27067553997039795, -0.16526192426681519, -0.6580045223236084, -0.048344600945711136, 0.4695248603820801, 0.46495071053504944, -0.3331727087497711, 0.39705759286880493, -0.3300778567790985, -0.6771225333213806, 0.2560042142868042, -0.64482581615448, 0.8867342472076416, 0.17381279170513153, -0.68595951795578, 0.27632516622543335, -0.8794621825218201, -0.23793236911296844, 0.10400423407554626, -0.21249498426914215, 0.051556527614593506, -0.14649292826652527, 0.2178775519132614, 0.2316005676984787, 0.06574153900146484, -0.39032793045043945, -0.4598827064037323, -0.4970457851886749, 0.45588284730911255, 0.6095642447471619, -0.376095712184906, 0.33740490674972534, -0.4934543967247009, 0.4531992971897125, 0.1657876819372177, 0.023893918842077255, -0.518599808216095, -0.30643945932388306, -0.9413619637489319, -0.5443539023399353, 0.591985285282135, 0.6308978199958801, -0.49187949299812317, 0.768593966960907, -0.3022817373275757, -0.5233545899391174, -1.1740326881408691, -0.11530311405658722, 0.4517466425895691, 0.6487778425216675, 0.7634276151657104, -0.31921422481536865, -0.6645967364311218, -0.8344003558158875, 0.07162400335073471, -0.1685691773891449, -0.3864172101020813, 0.4830946922302246, 0.35441455245018005, -0.3870669901371002, 0.7335638403892517, -0.390877902507782, -0.5522030591964722, -0.13500931859016418, 0.4591710567474365, 0.6867050528526306, 0.7693010568618774, 0.37930789589881897, -0.5992664098739624, -0.26483336091041565, -0.24870403110980988, -0.7943909764289856, -0.2653502821922302, -0.02751411870121956, 0.2004549354314804, -0.10323484987020493, 0.5105462670326233, -0.6946341395378113, 0.17631179094314575, 0.5359591841697693, 0.03828238323330879, 0.677773118019104, -0.04624834284186363, 0.19503150880336761, -1.0770701169967651, 0.17642928659915924, -0.08591064065694809, -0.051750026643276215, -0.5280242562294006, -0.2335585504770279, -0.20186814665794373, -0.3307223320007324, -0.645387589931488, 0.602967381477356, -0.37672948837280273, -0.0268471147865057, -0.2706625163555145, 0.38983261585235596, -0.10458450764417648, 0.7586706280708313, 0.15928055346012115, 0.6836236715316772, 0.9695391654968262, -0.769240140914917, 0.14236636459827423, 0.3582431375980377, -0.29887714982032776, 0.5063862800598145, -0.8968769311904907, 0.19895917177200317, -0.07856860756874084, 0.207967609167099, -1.062538743019104, -0.07838597148656845, 0.08295055478811264, -0.8033597469329834, 0.6611693501472473, -0.07549084722995758, -0.5166006088256836, -0.30203840136528015, -0.17909260094165802, 0.6335716247558594, 0.7287434339523315, -0.6437167525291443, 0.6900198459625244, 0.525719404220581, -0.240067258477211, -0.6404770612716675, -0.5738795399665833, -0.45872706174850464, -0.3615378439426422, -0.5179071426391602, 0.5514292120933533, -0.07733916491270065, 0.12102804332971573, -0.10781794041395187, -0.1892024278640747, 0.11566407978534698, -0.17594480514526367, 0.39155563712120056, 0.3330408036708832, -0.3791310489177704, 0.14322997629642487, -0.10616458207368851, -0.26058298349380493, -0.012855783104896545, -0.05557088926434517, 0.8186396360397339, -0.1484375149011612, -0.3190373480319977, -0.7957772016525269, 0.09439094364643097, 0.3543410003185272, -0.3763258755207062, 0.31357619166374207, 1.1636329889297485, -0.05194948613643646, 0.0779033750295639, -0.6206019520759583, -0.4163276255130768, -0.55902099609375, 0.608528733253479, -0.261077344417572, -0.7320560216903687, 0.47350013256073, 0.0071572111919522285, -0.08775656670331955, 0.5733006596565247, 0.42141637206077576, -0.27432170510292053, 1.0084505081176758, 0.4915052354335785, -0.04556659609079361, 0.588186502456665, -0.6579291224479675, 0.030443623661994934, -0.9219034314155579, -0.033443383872509, -0.5527555346488953, -0.29932332038879395, -0.5658209323883057, -0.47331926226615906, 0.34054645895957947, 0.18393489718437195, -0.440071165561676, 0.3820573687553406, -0.4163796603679657, 0.0403447300195694, 0.6776343584060669, 0.013028508983552456, -0.037687886506319046, -0.002802476054057479, -0.29601481556892395, -0.10006410628557205, -0.6788793802261353, -0.27953821420669556, 1.0049225091934204, 0.6115882396697998, 0.5967766046524048, -0.1132468655705452, 0.8519221544265747, -0.022743921726942062, 0.08734241873025894, -0.7029927372932434, 0.4610826373100281, -0.2125089317560196, -0.574787437915802, -0.23146848380565643, -0.3277800381183624, -0.817059338092804, 0.34355050325393677, -0.383635014295578, -0.5721101760864258, 0.11455219238996506, 0.16405464708805084, -0.3653389811515808, 0.31416282057762146, -0.762588381767273, 0.7911991477012634, -0.14828431606292725, -0.316886842250824, -0.04520014673471451, -0.5667554140090942, 0.24419176578521729, 0.0761021301150322, 0.38330718874931335, -0.04115315154194832, 0.31828299164772034, 1.1189675331115723, 0.017546985298395157, 0.7894560694694519, -0.29684683680534363, 0.026114311069250107, 0.36690521240234375, -0.3227512240409851, 0.14808563888072968, -0.10744836926460266, 0.05391818657517433, 0.4342716634273529, -0.05791786313056946, -0.1747477948665619, -0.4354318380355835, 0.5127683877944946, -0.9707633852958679, -0.6396403908729553, -0.2633817493915558, -0.6075308918952942, -0.30136945843696594, 0.17555901408195496, 0.5740665793418884, 0.5047047734260559, 0.05400548875331879, 0.3766970634460449, 0.6169340014457703, -0.44342041015625, 0.6863888502120972, 0.3674052059650421, -0.18095837533473969, -0.6343486905097961, 1.0132219791412354, -0.02225795015692711, 0.19594703614711761, 0.359129935503006, 0.2602381110191345, -0.5880658030509949, -0.4230934679508209, -0.07822515815496445, 0.47744089365005493, -0.5619001388549805, -0.10293078422546387, -0.7206369638442993, -0.3712528347969055, -0.6142802238464355, 0.1079372763633728, -0.6915261745452881, -0.17820607125759125, -0.5582526326179504, -0.03847184404730797, 0.0730634406208992, 0.2129484862089157, -0.22747743129730225, 0.6507242918014526, -0.8416923880577087, 0.6094282865524292, 0.3603137135505676, 0.27971816062927246, 0.0007148451404646039, -1.1477689743041992, -0.2160671353340149, 0.059536684304475784, -0.5362492799758911, -0.8076438903808594, 0.47076180577278137, 0.18198059499263763, 0.7103909254074097, 0.5798184275627136, -0.052659448236227036, 0.7662971615791321, -0.4326019883155823, 0.7934668660163879, 0.5114611387252808, -1.0999858379364014, 0.6465733647346497, -0.43285298347473145, 0.5768204927444458, 0.4307917058467865, 0.4372186064720154, -0.20588718354701996, -0.29441186785697937, -0.9272642731666565, -1.0419777631759644, 0.8484219312667847, 0.2879275977611542, 0.14837878942489624, 0.18971677124500275, -0.18224017322063446, -0.014280115254223347, 0.26715603470802307, -0.8467645645141602, -0.4256215989589691, -0.5649351477622986, -0.199685201048851, -0.3970491588115692, -0.13487865030765533, -0.0845782533288002, -0.5781567692756653, 0.8541021347045898, -0.006149229593575001, 0.6315017938613892, 0.185115784406662, -0.13154460489749908, 0.22939129173755646, 0.43440181016921997, 0.5253233313560486, 0.11368489265441895, -0.49132123589515686, 0.17886444926261902, 0.1787579506635666, -0.501922070980072, 0.15774881839752197, 0.26772382855415344, 0.023980746045708656, 0.18292301893234253, 0.5173927545547485, 1.3813263177871704, 0.48488423228263855, -0.5540031790733337, 0.5900627970695496, 0.09059987962245941, -0.32669270038604736, -0.46318870782852173, 0.0809379518032074, 0.28412505984306335, 0.25099077820777893, 0.3232409954071045, 0.004557835403829813, 0.022669291123747826, -0.518159806728363, 0.34328514337539673, 0.220993772149086, -0.6486649513244629, -0.4382534623146057, 1.070067286491394, 0.015316925011575222, -0.3425753712654114, 0.5827131271362305, 0.156075119972229, -0.3551051914691925, 0.441629022359848, 0.7510449886322021, 1.030564785003662, -0.4432038962841034, 0.06591702997684479, 0.6742060780525208, -0.03701213374733925, 0.02860736846923828, 0.19400927424430847, -0.359587162733078, -0.6274048686027527, -0.35812830924987793, -0.8896182179450989, -0.16540728509426117, 0.4641530513763428, -0.6831931471824646, 0.4894113540649414, -0.3554176092147827, -0.4487922489643097, 0.12364939600229263, -0.2237740159034729, -0.7970531582832336, 0.3228652775287628, 0.3458171486854553, 0.5683826208114624, -0.9090740084648132, 0.8504346609115601, 0.5030266642570496, -0.7207211256027222, -0.9858391284942627, -0.02067917212843895, -0.18861839175224304, -0.44735151529312134, 0.5816869139671326, 0.3507128357887268, -0.10484713315963745, 0.03250996768474579, -0.5358509421348572, -0.7651991248130798, 1.0443787574768066, 0.6023406386375427, -0.6694085597991943, 0.12359994649887085, 0.11631845682859421, 0.5508354902267456, -0.3761468827724457, 0.5991003513336182, 0.49904289841651917, 0.4691661596298218, 0.120388463139534, -1.1208980083465576, -0.1921922266483307, -0.4190303087234497, -0.35126185417175293, -0.19650551676750183, -0.5170177817344666, 1.2208905220031738, -0.19231276214122772, -0.17333823442459106, -0.22051852941513062, 0.7742705941200256, 0.6884559988975525, 0.30874186754226685, 0.7409436106681824, 0.7431577444076538, 0.6143045425415039, -0.17345982789993286, 0.9747284650802612, -0.2055610567331314, 0.3590734004974365, 1.222690224647522, 0.013044399209320545, 1.0774565935134888, 0.4299176037311554, -0.40841153264045715, 0.48034927248954773, 0.30867668986320496, -0.14029084146022797, 0.5638383030891418, 0.0016800665762275457, -0.2102828174829483, -0.31252214312553406, -0.17672957479953766, -0.5734128355979919, 0.7970598340034485, 0.1642632931470871, -0.35306352376937866, 0.17346258461475372, 0.1431947499513626, -0.14556919038295746, -0.12061406672000885, -0.03817344829440117, 0.5741574764251709, 0.31787142157554626, -0.37077271938323975, 0.9509944915771484, -0.28060251474380493, 1.1517990827560425, -0.5256331562995911, -0.042325884103775024, 0.07926882803440094, 0.20302680134773254, -0.19043579697608948, -0.5838186740875244, -0.000033979264117078856, -0.20367033779621124, -0.2476004660129547, 0.02218608558177948, 0.3663247227668762, -0.6428077816963196, -0.2675034999847412, 0.669093906879425, 0.17029240727424622, 0.205704927444458, -0.0688677430152893, -0.7599506974220276, 0.17952941358089447, -0.03484314680099487, -0.10833306610584259, 0.28735318779945374, 0.08998314291238785, 0.3837890625, 0.40988674759864807, 0.754330039024353, 0.20620544254779816, 0.16084891557693481, 0.32539430260658264, 0.6119466423988342, -0.7043747305870056, -0.7573683261871338, -0.5667300820350647, 0.7028248906135559, 0.051060646772384644, -0.1702779084444046, 0.5469281077384949, 0.60514897108078, 0.9101060032844543, -0.1841454803943634, 0.6946579217910767, 0.1600644588470459, 0.6191958785057068, -0.4667785167694092, 0.9009817242622375, -0.7390838265419006, 0.4000060558319092, -0.5435146689414978, -0.9600515961647034, -0.05473226681351662, 0.6236253976821899, -0.12257084995508194, 0.2511634826660156, 0.6057525873184204, 0.9125059247016907, -0.3805314302444458, -0.0510062612593174, 0.3674129545688629, 0.4306851029396057, 0.2904902398586273, 0.39418214559555054, 0.6138496398925781, -0.9275972843170166, 0.6393433809280396, -0.4544152319431305, -0.10154790431261063, 0.013523106463253498, -0.5518428087234497, -0.8181175589561462, -0.7782875299453735, -0.509433388710022, -0.23728443682193756, -0.19919627904891968, 0.636921763420105, 0.8761706352233887, -0.9553130865097046, -0.4384520947933197, 0.2717108130455017, -0.020026110112667084, -0.33634981513023376, -0.25725501775741577, 0.6589056253433228, -0.17524473369121552, -0.9507096409797668, 0.5910862684249878, -0.010265341959893703, 0.21637681126594543, -0.010280955582857132, -0.3404594361782074, -0.5032669305801392, 0.001927523291669786, 0.45686066150665283, 0.2442322075366974, -0.6795581579208374, -0.16882367432117462, -0.19238801300525665, 0.13385739922523499, 0.31267473101615906, 0.37194088101387024, -0.7745072245597839, 0.48898187279701233, 0.5624074935913086, 0.3587821424007416, 0.9085731506347656, -0.1696048378944397, 0.3366588354110718, -0.8045192956924438, 0.5521849989891052, 0.2041931450366974, 0.3964596390724182, 0.5097007155418396, 0.13132648169994354, 0.2313239425420761, 0.3187900185585022, -0.4288581311702728, -0.9897813200950623, -0.22517189383506775, -1.2411338090896606, -0.1861879825592041, 1.194705605506897, -0.021053310483694077, -0.24325725436210632, 0.022931529209017754, -0.20239563286304474, 0.850626528263092, -0.3574609160423279, 0.5658424496650696, 0.36344578862190247, 0.11448251456022263, -0.37036293745040894, -0.6181732416152954, 0.47083011269569397, 0.5941541194915771, -0.3998390734195709, -0.29885223507881165, 0.13149939477443695, 0.399312287569046, 0.5039034485816956, 0.6809934973716736, -0.30478838086128235, 0.26196470856666565, 0.3440050184726715, 0.42816656827926636, -0.21627819538116455, -0.2621600031852722, -0.4644337296485901, 0.30294474959373474, -0.2492254078388214, -0.4904962182044983 ]
optimum/sbert-all-MiniLM-L6-with-pooler
optimum
"2022-07-26T13:37:30Z"
18,449
6
sentence-transformers
[ "sentence-transformers", "onnx", "bert", "feature-extraction", "sentence-similarity", "en", "arxiv:1904.06472", "arxiv:2102.07033", "arxiv:2104.08727", "arxiv:1704.05179", "arxiv:1810.09305", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-07-26T11:32:55Z"
--- pipeline_tag: sentence-similarity tags: - sentence-transformers - feature-extraction - sentence-similarity language: en license: apache-2.0 --- # ONNX convert all-MiniLM-L6-v2 ## Conversion of [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) This is a [sentence-transformers](https://www.SBERT.net) ONNX model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. This custom model takes `last_hidden_state` and `pooler_output` whereas the sentence-transformers exported with default ONNX config only contains `last_hidden_state` as output. ## Usage (HuggingFace Optimum) Using this model becomes easy when you have [optimum](https://github.com/huggingface/optimum) installed: ``` python -m pip install optimum ``` Then you can use the model like this: ```python from optimum.onnxruntime.modeling_ort import ORTModelForCustomTasks model = ORTModelForCustomTasks.from_pretrained("optimum/sbert-all-MiniLM-L6-with-pooler") tokenizer = AutoTokenizer.from_pretrained("optimum/sbert-all-MiniLM-L6-with-pooler") inputs = tokenizer("I love burritos!", return_tensors="pt") pred = model(**inputs) ``` You will also be able to leverage the pipeline API in transformers: ```python from transformers import pipeline onnx_extractor = pipeline("feature-extraction", model=model, tokenizer=tokenizer) text = "I love burritos!" pred = onnx_extractor(text) ``` ## Evaluation Results For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/all-MiniLM-L6-v2) ------ ## Background The project aims to train sentence embedding models on very large sentence level datasets using a self-supervised contrastive learning objective. We used the pretrained [`nreimers/MiniLM-L6-H384-uncased`](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased) model and fine-tuned in on a 1B sentence pairs dataset. We use a contrastive learning objective: given a sentence from the pair, the model should predict which out of a set of randomly sampled other sentences, was actually paired with it in our dataset. We developped this model during the [Community week using JAX/Flax for NLP & CV](https://discuss.huggingface.co/t/open-to-the-community-community-week-using-jax-flax-for-nlp-cv/7104), organized by Hugging Face. We developped this model as part of the project: [Train the Best Sentence Embedding Model Ever with 1B Training Pairs](https://discuss.huggingface.co/t/train-the-best-sentence-embedding-model-ever-with-1b-training-pairs/7354). We benefited from efficient hardware infrastructure to run the project: 7 TPUs v3-8, as well as intervention from Googles Flax, JAX, and Cloud team member about efficient deep learning frameworks. ## Intended uses Our model is intented to be used as a sentence and short paragraph encoder. Given an input text, it ouptuts a vector which captures the semantic information. The sentence vector may be used for information retrieval, clustering or sentence similarity tasks. By default, input text longer than 256 word pieces is truncated. ## Training procedure ### Pre-training We use the pretrained [`nreimers/MiniLM-L6-H384-uncased`](https://huggingface.co/nreimers/MiniLM-L6-H384-uncased) model. Please refer to the model card for more detailed information about the pre-training procedure. ### Fine-tuning We fine-tune the model using a contrastive objective. Formally, we compute the cosine similarity from each possible sentence pairs from the batch. We then apply the cross entropy loss by comparing with true pairs. #### Hyper parameters We trained ou model on a TPU v3-8. We train the model during 100k steps using a batch size of 1024 (128 per TPU core). We use a learning rate warm up of 500. The sequence length was limited to 128 tokens. We used the AdamW optimizer with a 2e-5 learning rate. The full training script is accessible in this current repository: `train_script.py`. #### Training data We use the concatenation from multiple datasets to fine-tune our model. The total number of sentence pairs is above 1 billion sentences. We sampled each dataset given a weighted probability which configuration is detailed in the `data_config.json` file. | Dataset | Paper | Number of training tuples | |--------------------------------------------------------|:----------------------------------------:|:--------------------------:| | [Reddit comments (2015-2018)](https://github.com/PolyAI-LDN/conversational-datasets/tree/master/reddit) | [paper](https://arxiv.org/abs/1904.06472) | 726,484,430 | | [S2ORC](https://github.com/allenai/s2orc) Citation pairs (Abstracts) | [paper](https://aclanthology.org/2020.acl-main.447/) | 116,288,806 | | [WikiAnswers](https://github.com/afader/oqa#wikianswers-corpus) Duplicate question pairs | [paper](https://doi.org/10.1145/2623330.2623677) | 77,427,422 | | [PAQ](https://github.com/facebookresearch/PAQ) (Question, Answer) pairs | [paper](https://arxiv.org/abs/2102.07033) | 64,371,441 | | [S2ORC](https://github.com/allenai/s2orc) Citation pairs (Titles) | [paper](https://aclanthology.org/2020.acl-main.447/) | 52,603,982 | | [S2ORC](https://github.com/allenai/s2orc) (Title, Abstract) | [paper](https://aclanthology.org/2020.acl-main.447/) | 41,769,185 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) (Title, Body) pairs | - | 25,316,456 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) (Title+Body, Answer) pairs | - | 21,396,559 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) (Title, Answer) pairs | - | 21,396,559 | | [MS MARCO](https://microsoft.github.io/msmarco/) triplets | [paper](https://doi.org/10.1145/3404835.3462804) | 9,144,553 | | [GOOAQ: Open Question Answering with Diverse Answer Types](https://github.com/allenai/gooaq) | [paper](https://arxiv.org/pdf/2104.08727.pdf) | 3,012,496 | | [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) (Title, Answer) | [paper](https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html) | 1,198,260 | | [Code Search](https://huggingface.co/datasets/code_search_net) | - | 1,151,414 | | [COCO](https://cocodataset.org/#home) Image captions | [paper](https://link.springer.com/chapter/10.1007%2F978-3-319-10602-1_48) | 828,395| | [SPECTER](https://github.com/allenai/specter) citation triplets | [paper](https://doi.org/10.18653/v1/2020.acl-main.207) | 684,100 | | [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) (Question, Answer) | [paper](https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html) | 681,164 | | [Yahoo Answers](https://www.kaggle.com/soumikrakshit/yahoo-answers-dataset) (Title, Question) | [paper](https://proceedings.neurips.cc/paper/2015/hash/250cf8b51c773f3f8dc8b4be867a9a02-Abstract.html) | 659,896 | | [SearchQA](https://huggingface.co/datasets/search_qa) | [paper](https://arxiv.org/abs/1704.05179) | 582,261 | | [Eli5](https://huggingface.co/datasets/eli5) | [paper](https://doi.org/10.18653/v1/p19-1346) | 325,475 | | [Flickr 30k](https://shannon.cs.illinois.edu/DenotationGraph/) | [paper](https://transacl.org/ojs/index.php/tacl/article/view/229/33) | 317,695 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) Duplicate questions (titles) | | 304,525 | | AllNLI ([SNLI](https://nlp.stanford.edu/projects/snli/) and [MultiNLI](https://cims.nyu.edu/~sbowman/multinli/) | [paper SNLI](https://doi.org/10.18653/v1/d15-1075), [paper MultiNLI](https://doi.org/10.18653/v1/n18-1101) | 277,230 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) Duplicate questions (bodies) | | 250,519 | | [Stack Exchange](https://huggingface.co/datasets/flax-sentence-embeddings/stackexchange_xml) Duplicate questions (titles+bodies) | | 250,460 | | [Sentence Compression](https://github.com/google-research-datasets/sentence-compression) | [paper](https://www.aclweb.org/anthology/D13-1155/) | 180,000 | | [Wikihow](https://github.com/pvl/wikihow_pairs_dataset) | [paper](https://arxiv.org/abs/1810.09305) | 128,542 | | [Altlex](https://github.com/chridey/altlex/) | [paper](https://aclanthology.org/P16-1135.pdf) | 112,696 | | [Quora Question Triplets](https://quoradata.quora.com/First-Quora-Dataset-Release-Question-Pairs) | - | 103,663 | | [Simple Wikipedia](https://cs.pomona.edu/~dkauchak/simplification/) | [paper](https://www.aclweb.org/anthology/P11-2117/) | 102,225 | | [Natural Questions (NQ)](https://ai.google.com/research/NaturalQuestions) | [paper](https://transacl.org/ojs/index.php/tacl/article/view/1455) | 100,231 | | [SQuAD2.0](https://rajpurkar.github.io/SQuAD-explorer/) | [paper](https://aclanthology.org/P18-2124.pdf) | 87,599 | | [TriviaQA](https://huggingface.co/datasets/trivia_qa) | - | 73,346 | | **Total** | | **1,170,060,424** |
[ -0.40250661969184875, -0.8271741271018982, 0.3474435806274414, 0.0543452724814415, -0.05406579375267029, -0.26805493235588074, -0.21944095194339752, -0.29589471220970154, 0.4174099564552307, 0.21687443554401398, -0.46646827459335327, -0.5352736115455627, -0.5851830840110779, 0.18170218169689178, -0.2520342469215393, 1.1387580633163452, -0.05085781216621399, -0.07608966529369354, -0.42907804250717163, -0.37916094064712524, 0.004584232810884714, -0.5344774723052979, -0.5360932946205139, 0.0313294380903244, 0.49887675046920776, 0.304260790348053, 0.48075565695762634, 0.5280923247337341, 0.35003897547721863, 0.2271193116903305, -0.16418443620204926, 0.29837387800216675, -0.6202002763748169, -0.11835352331399918, 0.20630013942718506, -0.37100085616111755, -0.27075907588005066, -0.009839416481554508, 0.4650161862373352, 0.6964336633682251, -0.005397948436439037, 0.2525841295719147, 0.14352096617221832, 0.43703311681747437, -0.38408616185188293, 0.20501892268657684, -0.5164716243743896, 0.06307226419448853, -0.17629477381706238, 0.030861033126711845, -0.29257890582084656, -0.4768260717391968, 0.26420000195503235, -0.6274564862251282, 0.09178697317838669, 0.23650246858596802, 1.0274559259414673, 0.2702571153640747, -0.3752884864807129, -0.34410330653190613, -0.14016614854335785, 0.7968049645423889, -0.7499295473098755, 0.2937711477279663, 0.5164811611175537, -0.1076754555106163, -0.005185228306800127, -0.7127768993377686, -0.7192166447639465, -0.025394633412361145, -0.44768786430358887, 0.23816652595996857, -0.3186092972755432, -0.1671023666858673, 0.2992260158061981, 0.42601585388183594, -0.802432119846344, 0.09257855266332626, -0.3022807240486145, -0.16450047492980957, 0.7827425599098206, 0.09988868981599808, 0.25602176785469055, -0.5688590407371521, -0.30127036571502686, -0.27736249566078186, -0.4239456057548523, 0.2298002541065216, 0.3564150929450989, 0.2541297972202301, -0.4528644382953644, 0.6680331230163574, -0.056877102702856064, 0.5960899591445923, -0.0004414207360241562, 0.0460829883813858, 0.6087449789047241, -0.7159479260444641, -0.09476811438798904, -0.2796202600002289, 1.1379103660583496, 0.3236966133117676, 0.054662659764289856, 0.011419919319450855, 0.09987606108188629, -0.112858846783638, -0.15873095393180847, -0.7385141849517822, -0.16019687056541443, 0.31493663787841797, -0.3825570344924927, -0.3429350256919861, 0.0954710990190506, -0.748458743095398, -0.1979556530714035, -0.03876505792140961, 0.24808137118816376, -0.5384787917137146, -0.23983784019947052, 0.22493188083171844, -0.21249620616436005, 0.26854199171066284, -0.00678523164242506, -0.6446177363395691, 0.2507840096950531, 0.5017344951629639, 0.8820128440856934, 0.004958999343216419, -0.18382228910923004, -0.2933802306652069, -0.18492281436920166, -0.091129370033741, 0.6946291327476501, -0.4433578550815582, -0.08558035641908646, -0.000532915408257395, 0.10848556458950043, -0.3655470013618469, -0.34094998240470886, 0.6726627349853516, -0.19895565509796143, 0.6114090085029602, -0.3305509388446808, -0.7731212973594666, -0.049746036529541016, 0.23963132500648499, -0.5117979049682617, 1.3001898527145386, 0.22210517525672913, -1.0985198020935059, 0.07514212280511856, -0.5738206505775452, -0.16529875993728638, -0.2385815978050232, -0.22972345352172852, -0.5665616393089294, -0.10325492918491364, 0.4356178939342499, 0.5274819731712341, -0.30566468834877014, 0.10632209479808807, -0.4102715253829956, -0.14773182570934296, 0.20641350746154785, 0.02436782419681549, 1.175184726715088, 0.1223851814866066, -0.24257056415081024, -0.13520365953445435, -0.657870888710022, -0.06642207503318787, 0.350529283285141, -0.11401195079088211, -0.3173721730709076, -0.3226194679737091, 0.13264569640159607, 0.33707383275032043, 0.25019437074661255, -0.7189104557037354, 0.17308257520198822, -0.6163762211799622, 0.6157353520393372, 0.6977844834327698, -0.05484975874423981, 0.30484235286712646, -0.5167697668075562, 0.4320172965526581, 0.0964876338839531, 0.048738766461610794, -0.006345566362142563, -0.6265402436256409, -0.9732630252838135, -0.16344091296195984, 0.42977625131607056, 0.5324037075042725, -0.8119786977767944, 0.7031744718551636, -0.5627809762954712, -0.5351077914237976, -0.8543823957443237, 0.07731689512729645, 0.5264106392860413, 0.5394261479377747, 0.6311141848564148, -0.03705228865146637, -0.6263892650604248, -0.9682436585426331, -0.1753457635641098, -0.005981579422950745, 0.02499372512102127, 0.5733703970909119, 0.7528221011161804, -0.2867305278778076, 0.9267686009407043, -0.6921942234039307, -0.3237837553024292, -0.2633192241191864, -0.008717010729014874, 0.25807031989097595, 0.5512876510620117, 0.6593565344810486, -0.7346552610397339, -0.6653957962989807, -0.2730312943458557, -0.8655247092247009, 0.037078607827425, -0.004058171063661575, -0.3013271987438202, 0.33288854360580444, 0.624271810054779, -0.7049767971038818, 0.37813693284988403, 0.468343049287796, -0.38760992884635925, 0.22738483548164368, -0.055444590747356415, -0.13802920281887054, -1.340390920639038, 0.2498888224363327, 0.09250941127538681, -0.10629069060087204, -0.5177509784698486, -0.06129691004753113, -0.18720540404319763, 0.009803489781916142, -0.32521143555641174, 0.5723920464515686, -0.40656930208206177, 0.008333101868629456, 0.29652097821235657, 0.36210280656814575, 0.04275710508227348, 0.7102299928665161, -0.13331890106201172, 0.640813410282135, 0.3121272921562195, -0.3145965039730072, 0.19003790616989136, 0.6929781436920166, -0.37903842329978943, 0.34174269437789917, -0.8143594861030579, 0.25197046995162964, -0.19508765637874603, 0.47574156522750854, -0.9498648047447205, -0.0700821503996849, 0.2703012526035309, -0.6041468381881714, 0.047699205577373505, 0.0319393053650856, -0.5755239725112915, -0.4498351812362671, -0.6148428320884705, 0.274301141500473, 0.362540602684021, -0.42088690400123596, 0.3943686783313751, 0.3901689052581787, -0.060501303523778915, -0.617695689201355, -0.9863264560699463, -0.1895814687013626, -0.13852079212665558, -0.8165324330329895, 0.40583762526512146, -0.21850930154323578, 0.00010484958329470828, 0.20722505450248718, 0.0847926065325737, 0.1313478946685791, -0.17386671900749207, 0.18131539225578308, 0.06374888867139816, -0.1415770947933197, 0.19891515374183655, -0.0351996049284935, -0.06702771782875061, -0.19222478568553925, -0.26131030917167664, 0.6703205108642578, -0.3845314383506775, 0.0627785325050354, -0.5546076893806458, 0.37135812640190125, 0.2971404492855072, -0.08837103098630905, 0.945223331451416, 0.8176022171974182, -0.3354383111000061, 0.17825761437416077, -0.5032323598861694, -0.17390324175357819, -0.43236467242240906, 0.29649725556373596, -0.35784563422203064, -1.1267777681350708, 0.47218790650367737, 0.3499782383441925, 0.09561294317245483, 0.8130808472633362, 0.3499368727207184, -0.22352012991905212, 0.8169674873352051, 0.3182113468647003, -0.024193495512008667, 0.4309331178665161, -0.6789751648902893, 0.3239345848560333, -0.9399404525756836, -0.26549646258354187, -0.4679637551307678, -0.3070604205131531, -0.8999471068382263, -0.5971739888191223, 0.38936498761177063, -0.07058455795049667, -0.23675404489040375, 0.413129597902298, -0.4977048933506012, 0.04847842827439308, 0.5488406419754028, 0.28549686074256897, -0.04558375105261803, 0.08937940746545792, -0.24604341387748718, -0.18419261276721954, -0.8471058011054993, -0.2898169159889221, 1.2163645029067993, 0.3335951864719391, 0.41415151953697205, 0.06510315835475922, 0.7506505846977234, 0.13218432664871216, -0.12173948436975479, -0.4895133972167969, 0.5843087434768677, -0.3519837260246277, -0.4438816010951996, -0.18541158735752106, -0.6555379629135132, -1.0637890100479126, 0.12199652194976807, -0.4009898602962494, -0.6780437231063843, 0.3482300043106079, -0.006723425816744566, -0.5079700946807861, 0.19945155084133148, -0.71534663438797, 1.0061852931976318, -0.11613324284553528, -0.37392759323120117, 0.037279967218637466, -0.8048176169395447, 0.13809965550899506, 0.2291310429573059, 0.2266169637441635, -0.05043533816933632, -0.09325794875621796, 0.999002993106842, -0.504197359085083, 0.7105998992919922, -0.1550912857055664, 0.21762710809707642, 0.2965587079524994, -0.2837953269481659, 0.5209843516349792, 0.04459235817193985, -0.22974954545497894, 0.23065586388111115, 0.11381470412015915, -0.6140041351318359, -0.562792956829071, 0.8199754953384399, -1.0326932668685913, -0.35564306378364563, -0.587352991104126, -0.3947426378726959, -0.10068032890558243, 0.07502676546573639, 0.38128289580345154, 0.438639372587204, -0.018648527562618256, 0.5442898869514465, 0.6412752866744995, -0.46945464611053467, 0.3600524365901947, 0.07215309888124466, -0.057549405843019485, -0.5538408160209656, 0.773403525352478, 0.18390245735645294, 0.062302011996507645, 0.5239294767379761, 0.32691437005996704, -0.380133718252182, -0.38605472445487976, -0.26095762848854065, 0.39298543334007263, -0.5792999863624573, -0.24642622470855713, -1.151742935180664, -0.3019818961620331, -0.745301365852356, -0.05581982433795929, -0.2570253908634186, -0.6195464134216309, -0.5657933950424194, -0.35300761461257935, 0.4779214859008789, 0.42737168073654175, -0.030928831547498703, 0.10861395299434662, -0.3914111256599426, 0.18158996105194092, 0.21536774933338165, 0.013233842328190804, -0.2272789627313614, -0.6860074400901794, -0.23794777691364288, 0.19347485899925232, -0.1825244277715683, -0.6042335629463196, 0.4030626118183136, 0.42984551191329956, 0.5186160802841187, 0.10395495593547821, 0.20469774305820465, 0.7464669942855835, -0.07101115584373474, 0.9673231840133667, 0.09553331881761551, -0.6545537114143372, 0.6377149224281311, -0.26497501134872437, 0.35286659002304077, 0.7835546135902405, 0.6188232898712158, -0.4899977147579193, -0.31429752707481384, -0.8564082980155945, -1.026328682899475, 0.6336053609848022, 0.3933168053627014, 0.13941730558872223, -0.07994075119495392, 0.4498162269592285, 0.008915480226278305, 0.07921496778726578, -0.8326759338378906, -0.41341155767440796, -0.21241651475429535, -0.5879269242286682, -0.13761202991008759, -0.29013022780418396, -0.1356608271598816, -0.5125364065170288, 0.7449458241462708, -0.22044703364372253, 0.6183285117149353, 0.42544499039649963, -0.32171714305877686, 0.32807549834251404, 0.0562363900244236, 0.5320043563842773, 0.3034227192401886, -0.25462865829467773, 0.07385595142841339, 0.2564958333969116, -0.3342601954936981, -0.2560203969478607, 0.29778754711151123, -0.27293333411216736, -0.09513777494430542, 0.47825509309768677, 0.9091667532920837, 0.17695291340351105, -0.6035863161087036, 0.7671027779579163, -0.293134868144989, -0.3323444724082947, -0.47098928689956665, -0.1280091106891632, 0.11231418699026108, 0.1423848420381546, 0.137733593583107, -0.02468615584075451, 0.04233583062887192, -0.48130106925964355, 0.2867075204849243, 0.22640082240104675, -0.39984163641929626, -0.18505820631980896, 0.4987916350364685, 0.007398619782179594, 0.06343530118465424, 0.6918676495552063, -0.25265032052993774, -0.47653624415397644, 0.513103723526001, 0.33445075154304504, 0.6882207989692688, 0.20695780217647552, 0.17873580753803253, 0.7493392825126648, 0.313459575176239, 0.19220960140228271, 0.21633587777614594, 0.17030753195285797, -0.7538847923278809, -0.007737818639725447, -0.7400742769241333, 0.027380073443055153, 0.09766832739114761, -0.6250962018966675, 0.20606625080108643, -0.40794309973716736, -0.06008654087781906, 0.12782450020313263, 0.22923022508621216, -0.7975820302963257, 0.0022023143246769905, 0.01688544638454914, 0.8109581470489502, -0.8401601910591125, 0.7236247062683105, 0.643057644367218, -0.6832607984542847, -0.7003731727600098, -0.04994213208556175, -0.004167668055742979, -0.8356860280036926, 0.34196799993515015, 0.25902438163757324, 0.15364064276218414, 0.05342428758740425, -0.59419846534729, -0.958180844783783, 1.2441924810409546, 0.32884812355041504, -0.37556883692741394, -0.0364726223051548, 0.22509169578552246, 0.6936061382293701, -0.5020319223403931, 0.5593965649604797, 0.598828136920929, 0.40525153279304504, 0.004141135606914759, -0.7589081525802612, 0.22068066895008087, -0.5676162242889404, 0.17753659188747406, -0.1596246063709259, -0.9141919016838074, 0.7755372524261475, -0.04829666391015053, -0.1392788290977478, 0.06259419023990631, 0.6527784466743469, 0.30375704169273376, 0.24501867592334747, 0.5196613669395447, 1.0398565530776978, 0.7342090606689453, -0.1850801259279251, 1.1870919466018677, -0.21578636765480042, 0.5783362984657288, 1.0618658065795898, 0.14416681230068207, 0.9613600969314575, 0.44202184677124023, -0.18340355157852173, 0.7553732991218567, 0.8461295962333679, -0.01747140847146511, 0.49214208126068115, 0.11071684211492538, 0.09427269548177719, -0.15563294291496277, -0.2360115647315979, -0.4698196351528168, 0.5083401203155518, 0.24295872449874878, -0.35945090651512146, 0.09961646050214767, 0.08813729137182236, 0.4160152077674866, 0.11971921473741531, 0.11339478939771652, 0.8338990807533264, 0.15438306331634521, -0.5448527336120605, 0.764048159122467, -0.16311253607273102, 0.9079635739326477, -0.48687148094177246, 0.3174827992916107, -0.4308374226093292, 0.1294155865907669, -0.3722994923591614, -0.6699725985527039, 0.4331665337085724, 0.00013052637223154306, -0.1274072527885437, -0.29005151987075806, 0.4035836160182953, -0.5426487326622009, -0.6313208937644958, 0.39630526304244995, 0.41998547315597534, 0.15933488309383392, 0.21069762110710144, -1.069559097290039, 0.047247037291526794, 0.12913724780082703, -0.40367990732192993, 0.22212877869606018, 0.21248571574687958, 0.25259241461753845, 0.45842355489730835, 0.6797759532928467, -0.20555712282657623, 0.0988195464015007, -0.08400865644216537, 0.9018514752388, -0.6674371361732483, -0.49251896142959595, -0.6551110744476318, 0.6018675565719604, -0.4268552362918854, -0.5630637407302856, 0.8258671164512634, 0.844093382358551, 1.0272371768951416, 0.12154478579759598, 0.7676541209220886, -0.43089789152145386, 0.6046382784843445, -0.4545688033103943, 0.5538288354873657, -0.8671072721481323, 0.10745399445295334, -0.23648189008235931, -0.6184373497962952, -0.3045019507408142, 0.6642418503761292, -0.42122703790664673, 0.07346586138010025, 0.8995605111122131, 0.9595603346824646, 0.040894728153944016, -0.004501156974583864, -0.02937368117272854, 0.39693811535835266, 0.18504516780376434, 0.8246435523033142, 0.4396882653236389, -0.9727508425712585, 0.7063049674034119, -0.40375107526779175, -0.11370960623025894, -0.3059396743774414, -0.6276395916938782, -0.801745593547821, -0.7987619042396545, -0.5106337666511536, -0.5659634470939636, 0.02279418148100376, 1.0502649545669556, 0.6398583054542542, -0.8654524087905884, -0.15214867889881134, -0.08650396019220352, 0.03168189525604248, -0.10681071877479553, -0.24430741369724274, 0.662990152835846, -0.06469789147377014, -0.6400048732757568, 0.1755567491054535, -0.0313783660531044, -0.10864635556936264, 0.006077316123992205, -0.12925207614898682, -0.704635739326477, -0.0028286550659686327, 0.5788130760192871, 0.26158252358436584, -0.6362025737762451, -0.31999802589416504, 0.10959231853485107, -0.3008674085140228, 0.1641065776348114, 0.46699151396751404, -0.3987821638584137, 0.3665176033973694, 0.6297776103019714, 0.6614153981208801, 0.8569086194038391, -0.06041315197944641, 0.2490152269601822, -0.7799226641654968, 0.27196353673934937, 0.2627553641796112, 0.3619784116744995, 0.4830187261104584, -0.4103740453720093, 0.7559428811073303, 0.43340417742729187, -0.5083956122398376, -0.7437805533409119, -0.11687006056308746, -1.2414350509643555, -0.10112567991018295, 1.3871386051177979, -0.32621878385543823, -0.23972992599010468, 0.03153281658887863, -0.09335824102163315, 0.2234164923429489, -0.3992951512336731, 0.5388161540031433, 0.5672428607940674, -0.22283314168453217, -0.3887438178062439, -0.426613986492157, 0.5044029355049133, 0.5151912569999695, -0.9746324419975281, -0.258334219455719, 0.23638734221458435, 0.30202195048332214, 0.24836795032024384, 0.6780900955200195, -0.06980960071086884, -0.08721451461315155, -0.01821090467274189, -0.10362139344215393, -0.015630608424544334, 0.11038795858621597, -0.25463828444480896, 0.17250658571720123, -0.3827730715274811, -0.11392495036125183 ]
TheBloke/Mistral-7B-Instruct-v0.1-GPTQ
TheBloke
"2023-09-29T20:48:48Z"
18,430
61
transformers
[ "transformers", "safetensors", "mistral", "text-generation", "finetuned", "base_model:mistralai/Mistral-7B-Instruct-v0.1", "license:apache-2.0", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-09-28T22:34:03Z"
--- base_model: mistralai/Mistral-7B-Instruct-v0.1 inference: false license: apache-2.0 model_creator: Mistral AI model_name: Mistral 7B Instruct v0.1 model_type: mistral pipeline_tag: text-generation prompt_template: '<s>[INST] {prompt} [/INST]' quantized_by: TheBloke tags: - finetuned --- <!-- header start --> <!-- 200823 --> <div style="width: auto; margin-left: auto; margin-right: auto"> <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;"> </div> <div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p> </div> <div style="display: flex; flex-direction: column; align-items: flex-end;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p> </div> </div> <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div> <hr style="margin-top: 1.0em; margin-bottom: 1.0em;"> <!-- header end --> # Mistral 7B Instruct v0.1 - GPTQ - Model creator: [Mistral AI](https://huggingface.co/mistralai) - Original model: [Mistral 7B Instruct v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) <!-- description start --> ## Description This repo contains GPTQ model files for [Mistral AI's Mistral 7B Instruct v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1). Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them. ### GPTQs will work in ExLlama, or via Transformers (requiring Transformers from Github) These models are confirmed to work with ExLlama v1. At the time of writing (September 28th), AutoGPTQ has not yet added support for the new Mistral models. These GPTQs were made directly from Transformers, and so can be loaded via the Transformers interface. They can't be loaded directly from AutoGPTQ. To load them via Transformers, you will need to install Transformers from Github, with: ``` pip3 install git+https://github.com/huggingface/transformers.git@72958fcd3c98a7afdc61f953aa58c544ebda2f79 ``` <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF) * [Mistral AI's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Mistral ``` <s>[INST] {prompt} [/INST] ``` <!-- prompt-template end --> <!-- README_GPTQ.md-provided-files start --> ## Provided files, and GPTQ parameters Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements. Each separate quant is in a different branch. See below for instructions on fetching from different branches. These files were made with Transformers 4.34.0.dev0, from commit 72958fcd3c98a7afdc61f953aa58c544ebda2f79. <details> <summary>Explanation of GPTQ parameters</summary> - Bits: The bit size of the quantised model. - GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value. - Act Order: True or False. Also known as `desc_act`. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now. - Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy. - GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s). - Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences. - ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama models in 4-bit. </details> | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc | | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- | | [main](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 4.16 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 4.57 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. | | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 7.68 GB | Yes | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. | | [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 32768 | 8.17 GB | Yes | 8-bit, with group size 32g and Act Order for maximum inference quality. | <!-- README_GPTQ.md-provided-files end --> <!-- README_GPTQ.md-download-from-branches start --> ## How to download, including from branches ### In text-generation-webui To download from the `main` branch, enter `TheBloke/Mistral-7B-Instruct-v0.1-GPTQ` in the "Download model" box. To download from another branch, add `:branchname` to the end of the download name, eg `TheBloke/Mistral-7B-Instruct-v0.1-GPTQ:gptq-4bit-32g-actorder_True` ### From the command line I recommend using the `huggingface-hub` Python library: ```shell pip3 install huggingface-hub ``` To download the `main` branch to a folder called `Mistral-7B-Instruct-v0.1-GPTQ`: ```shell mkdir Mistral-7B-Instruct-v0.1-GPTQ huggingface-cli download TheBloke/Mistral-7B-Instruct-v0.1-GPTQ --local-dir Mistral-7B-Instruct-v0.1-GPTQ --local-dir-use-symlinks False ``` To download from a different branch, add the `--revision` parameter: ```shell mkdir Mistral-7B-Instruct-v0.1-GPTQ huggingface-cli download TheBloke/Mistral-7B-Instruct-v0.1-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir Mistral-7B-Instruct-v0.1-GPTQ --local-dir-use-symlinks False ``` <details> <summary>More advanced huggingface-cli download usage</summary> If you remove the `--local-dir-use-symlinks False` parameter, the files will instead be stored in the central Huggingface cache directory (default location on Linux is: `~/.cache/huggingface`), and symlinks will be added to the specified `--local-dir`, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model. The cache location can be changed with the `HF_HOME` environment variable, and/or the `--cache-dir` parameter to `huggingface-cli`. For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli). To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`: ```shell pip3 install hf_transfer ``` And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`: ```shell mkdir Mistral-7B-Instruct-v0.1-GPTQ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Mistral-7B-Instruct-v0.1-GPTQ --local-dir Mistral-7B-Instruct-v0.1-GPTQ --local-dir-use-symlinks False ``` Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command. </details> ### With `git` (**not** recommended) To clone a specific branch with `git`, use a command like this: ```shell git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ ``` Note that using Git with HF repos is strongly discouraged. It will be much slower than using `huggingface-hub`, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the `.git` folder as a blob.) <!-- README_GPTQ.md-download-from-branches end --> <!-- README_GPTQ.md-text-generation-webui start --> ## How to easily download and use this model in [text-generation-webui](https://github.com/oobabooga/text-generation-webui). These models are confirmed to work via the ExLlama Loader in text-generation-webui. Use **Loader: ExLlama** - or Transformers may work too. AutoGPTQ will not work. Please make sure you're using the latest version of [text-generation-webui](https://github.com/oobabooga/text-generation-webui). It is strongly recommended to use the text-generation-webui one-click-installers unless you're sure you know how to make a manual install. 1. Click the **Model tab**. 2. Under **Download custom model or LoRA**, enter `TheBloke/Mistral-7B-Instruct-v0.1-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Mistral-7B-Instruct-v0.1-GPTQ:gptq-4bit-32g-actorder_True` - see Provided Files above for the list of branches for each option. 3. Click **Download**. 4. The model will start downloading. Once it's finished it will say "Done". 5. In the top left, click the refresh icon next to **Model**. 6. In the **Model** dropdown, choose the model you just downloaded: `Mistral-7B-Instruct-v0.1-GPTQ` 7. The model will automatically load, and is now ready for use! 8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right. * Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`. 9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started! <!-- README_GPTQ.md-text-generation-webui end --> <!-- README_GPTQ.md-use-from-python start --> ## How to use this GPTQ model from Python code ### Install the necessary packages Requires: Transformers 4.34.0.dev0 from Github source, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later. ```shell pip3 install optimum pip3 install git+https://github.com/huggingface/transformers.git@72958fcd3c98a7afdc61f953aa58c544ebda2f79 pip3 install auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/ # Use cu117 if on CUDA 11.7 ``` If you have problems installing AutoGPTQ using the pre-built wheels, install it from source instead: ```shell pip3 uninstall -y auto-gptq git clone https://github.com/PanQiWei/AutoGPTQ cd AutoGPTQ git checkout v0.4.2 pip3 install . ``` ### You can then use the following code ```python from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_name_or_path = "TheBloke/Mistral-7B-Instruct-v0.1-GPTQ" # To use a different branch, change revision # For example: revision="gptq-4bit-32g-actorder_True" model = AutoModelForCausalLM.from_pretrained(model_name_or_path, device_map="auto", trust_remote_code=False, revision="main") tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True) prompt = "Tell me about AI" prompt_template=f'''<s>[INST] {prompt} [/INST] ''' print("\n\n*** Generate:") input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda() output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512) print(tokenizer.decode(output[0])) # Inference can also be done using transformers' pipeline print("*** Pipeline:") pipe = pipeline( "text-generation", model=model, tokenizer=tokenizer, max_new_tokens=512, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, repetition_penalty=1.1 ) print(pipe(prompt_template)[0]['generated_text']) ``` <!-- README_GPTQ.md-use-from-python end --> <!-- README_GPTQ.md-compatibility start --> ## Compatibility The files provided are only tested to work with ExLlama v1, and Transformers 4.34.0.dev0 as of commit 72958fcd3c98a7afdc61f953aa58c544ebda2f79. <!-- README_GPTQ.md-compatibility end --> <!-- footer start --> <!-- 200823 --> ## Discord For further support, and discussions on these models and AI in general, join us at: [TheBloke AI's Discord server](https://discord.gg/theblokeai) ## Thanks, and how to contribute Thanks to the [chirper.ai](https://chirper.ai) team! Thanks to Clay from [gpus.llm-utils.org](llm-utils)! I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training. If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects. Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits. * Patreon: https://patreon.com/TheBlokeAI * Ko-Fi: https://ko-fi.com/TheBlokeAI **Special thanks to**: Aemon Algiz. **Patreon special mentions**: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: Mistral AI's Mistral 7B Instruct v0.1 # Model Card for Mistral-7B-Instruct-v0.1 The Mistral-7B-Instruct-v0.1 Large Language Model (LLM) is a instruct fine-tuned version of the [Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) generative text model using a variety of publicly available conversation datasets. For full details of this model please read our [release blog post](https://mistral.ai/news/announcing-mistral-7b/) ## Instruction format In order to leverage instruction fine-tuning, your prompt should be surrounded by `[INST]` and `[\INST]` tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id. E.g. ``` text = "<s>[INST] What is your favourite condiment? [/INST]" "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!</s> " "[INST] Do you have mayonnaise recipes? [/INST]" ``` This format is available as a [chat template](https://huggingface.co/docs/transformers/main/chat_templating) via the `apply_chat_template()` method: ```python from transformers import AutoModelForCausalLM, AutoTokenizer device = "cuda" # the device to load the model onto model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1") tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1") messages = [ {"role": "user", "content": "What is your favourite condiment?"}, {"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!"}, {"role": "user", "content": "Do you have mayonnaise recipes?"} ] encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt") model_inputs = encodeds.to(device) model.to(device) generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True) decoded = tokenizer.batch_decode(generated_ids) print(decoded[0]) ``` ## Model Architecture This instruction model is based on Mistral-7B-v0.1, a transformer model with the following architecture choices: - Grouped-Query Attention - Sliding-Window Attention - Byte-fallback BPE tokenizer ## Troubleshooting - If you see the following error: ``` Traceback (most recent call last): File "", line 1, in File "/transformers/models/auto/auto_factory.py", line 482, in from_pretrained config, kwargs = AutoConfig.from_pretrained( File "/transformers/models/auto/configuration_auto.py", line 1022, in from_pretrained config_class = CONFIG_MAPPING[config_dict["model_type"]] File "/transformers/models/auto/configuration_auto.py", line 723, in getitem raise KeyError(key) KeyError: 'mistral' ``` Installing transformers from source should solve the issue pip install git+https://github.com/huggingface/transformers This should not be required after transformers-v4.33.4. ## Limitations The Mistral 7B Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance. It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs. ## The Mistral AI Team Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lélio Renard Lavaud, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed.
[ -0.5247756242752075, -0.711655855178833, 0.13345728814601898, 0.1915866732597351, -0.2098170667886734, -0.2868403494358063, 0.13548967242240906, -0.4622046649456024, 0.1184857115149498, 0.3508293032646179, -0.5533843636512756, -0.4425378739833832, -0.3948233127593994, -0.07479075342416763, -0.38109755516052246, 1.1167032718658447, 0.00606315303593874, -0.2594299018383026, -0.02062014490365982, -0.23140378296375275, -0.22925981879234314, -0.44866234064102173, -0.8525525331497192, -0.23759552836418152, 0.30089420080184937, 0.04368937388062477, 0.9583703279495239, 0.5014533996582031, 0.10973742604255676, 0.34509146213531494, -0.07486312091350555, -0.040334299206733704, -0.5328417420387268, -0.06884061545133591, 0.11305364221334457, -0.29483112692832947, -0.5706612467765808, 0.0721246749162674, 0.5114844441413879, 0.05408376827836037, -0.4451082944869995, 0.18550610542297363, 0.07616186887025833, 0.7131204605102539, -0.4774133563041687, 0.2360280603170395, -0.2421809732913971, 0.0429290346801281, -0.1388341337442398, 0.14323124289512634, -0.050376925617456436, -0.4441636800765991, 0.17062325775623322, -0.8922968506813049, 0.3344104290008545, -0.13513793051242828, 1.1781315803527832, 0.2601025104522705, -0.612257719039917, 0.1764642596244812, -0.4659915566444397, 0.5871954560279846, -0.8859458565711975, 0.3834189474582672, 0.4298985004425049, 0.3461158275604248, -0.23549297451972961, -1.0250029563903809, -0.5400111079216003, 0.00747904647141695, -0.18719936907291412, 0.34471043944358826, -0.6073920130729675, 0.10570263862609863, 0.49042612314224243, 0.7605487704277039, -0.8493679165840149, -0.35813406109809875, -0.32614871859550476, -0.14625141024589539, 0.7720811367034912, 0.18530584871768951, 0.36887192726135254, -0.1512492597103119, -0.367346853017807, -0.5206668972969055, -0.553665280342102, 0.2343721091747284, 0.16148200631141663, -0.06693628430366516, -0.6581103205680847, 0.31687915325164795, -0.2524929642677307, 0.47895529866218567, 0.30747175216674805, -0.1294901818037033, 0.30717530846595764, -0.5105392336845398, -0.4898318350315094, -0.3555736839771271, 1.195777177810669, 0.3161744177341461, -0.2020857334136963, 0.25314584374427795, -0.12926772236824036, -0.16556987166404724, 0.0919189453125, -0.9990971684455872, -0.5521283149719238, 0.44845452904701233, -0.39487704634666443, -0.18940439820289612, 0.039040982723236084, -0.659390926361084, -0.057724516838788986, -0.14586089551448822, 0.5900967121124268, -0.6287715435028076, -0.4092410206794739, 0.054500825703144073, -0.5479094982147217, 0.5050519108772278, 0.5089663863182068, -0.6789345741271973, 0.5076702833175659, 0.3946557343006134, 0.7210697531700134, 0.18289674818515778, -0.14853470027446747, -0.24784556031227112, 0.0935855507850647, -0.16849687695503235, 0.40451580286026, -0.11240601539611816, -0.47729042172431946, -0.24170416593551636, 0.3349612355232239, 0.020793354138731956, -0.3222958743572235, 0.5444229245185852, -0.269846111536026, 0.4774720072746277, -0.563775360584259, -0.44081735610961914, -0.48300307989120483, -0.02860761247575283, -0.6182537078857422, 1.3411916494369507, 0.6549690365791321, -0.8781895041465759, 0.14119452238082886, -0.3899294435977936, -0.16125820577144623, -0.056249454617500305, -0.02645125985145569, -0.5132240056991577, -0.018444061279296875, 0.2571084797382355, 0.29745808243751526, -0.3971014618873596, 0.14058806002140045, -0.2753639221191406, -0.27228981256484985, 0.15901391208171844, -0.562166154384613, 1.3147599697113037, 0.1758727878332138, -0.5969642400741577, -0.0056585269048810005, -0.5377373099327087, 0.0881137102842331, 0.3164340555667877, -0.06386748701334, -0.05604453757405281, -0.3238476812839508, 0.16346663236618042, 0.23906268179416656, 0.23030269145965576, -0.24963313341140747, 0.42286452651023865, -0.27109038829803467, 0.6242172122001648, 0.6555220484733582, 0.11204171180725098, 0.3202940821647644, -0.5909510254859924, 0.5458346009254456, 0.15332524478435516, 0.7035300731658936, 0.1665705442428589, -0.7111180424690247, -0.7481752634048462, -0.3705885112285614, 0.21398624777793884, 0.5145491361618042, -0.8598893880844116, 0.32386237382888794, -0.10506626963615417, -0.8437591791152954, -0.4031093120574951, -0.16903403401374817, 0.3379558026790619, 0.32356342673301697, 0.5031313300132751, -0.3846537172794342, -0.23609599471092224, -0.8135978579521179, 0.03960524499416351, -0.4764986038208008, 0.048770397901535034, 0.38782545924186707, 0.6682084798812866, -0.2739131450653076, 0.8033380508422852, -0.6522514224052429, -0.12734758853912354, 0.12522906064987183, 0.04731254279613495, 0.36950623989105225, 0.5459132790565491, 0.8471020460128784, -0.8136085867881775, -0.5910362601280212, -0.08242151141166687, -0.683987557888031, -0.10085750371217728, -0.006598295643925667, -0.47263041138648987, 0.15662714838981628, 0.009869109839200974, -1.1151819229125977, 0.7180326581001282, 0.4358699917793274, -0.5706679224967957, 0.8349738121032715, -0.232454314827919, 0.21845924854278564, -1.0856881141662598, 0.048800818622112274, 0.20263460278511047, -0.3569594621658325, -0.5065646171569824, 0.20630377531051636, -0.02298838458955288, 0.11284784227609634, -0.3894485831260681, 0.7559394836425781, -0.47042691707611084, 0.13399183750152588, 0.0711367204785347, -0.21737578511238098, 0.32252585887908936, 0.4906763732433319, -0.15319301187992096, 0.8210721611976624, 0.599052369594574, -0.5084585547447205, 0.5697745680809021, 0.3551124930381775, 0.15283164381980896, 0.2972722053527832, -0.9039791822433472, 0.023312361910939217, 0.0613425113260746, 0.47421786189079285, -0.8839877843856812, -0.24773792922496796, 0.6572617888450623, -0.5360853672027588, 0.45396578311920166, -0.4042481780052185, -0.3142574429512024, -0.32705336809158325, -0.5640028119087219, 0.4414618909358978, 0.8298285603523254, -0.41374680399894714, 0.5408477783203125, 0.4215293824672699, 0.009261593222618103, -0.6249355673789978, -0.5650693774223328, -0.27425307035446167, -0.3573114275932312, -0.5186378359794617, 0.5062627792358398, -0.09375669062137604, -0.07994163036346436, -0.014234297908842564, -0.09468995779752731, -0.1864030957221985, -0.13670934736728668, 0.5106626749038696, 0.24468226730823517, -0.15275739133358002, -0.18850666284561157, 0.29725971817970276, -0.030618419870734215, 0.021673819050192833, -0.3611087203025818, 0.3418791890144348, -0.2627892792224884, -0.06102548912167549, -0.4708293378353119, 0.17485825717449188, 0.5982139110565186, -0.04197825491428375, 0.6975170373916626, 0.9560137391090393, -0.43882301449775696, 0.05397641286253929, -0.5454116463661194, -0.13129767775535583, -0.4999295771121979, 0.04506803676486015, -0.20731531083583832, -0.8103813529014587, 0.541780948638916, 0.3947577476501465, 0.2301614135503769, 0.8461881875991821, 0.4494580328464508, 0.13170698285102844, 0.8967399597167969, 0.43106651306152344, -0.2315443456172943, 0.45894768834114075, -0.5434272885322571, -0.2017703503370285, -0.7494611144065857, -0.08976306766271591, -0.40023595094680786, -0.09244023263454437, -0.7449455261230469, -0.6002582311630249, 0.5473898649215698, 0.41331103444099426, -0.8159888982772827, 0.5526776909828186, -0.7957867383956909, 0.06957488507032394, 0.5894293785095215, 0.2611726224422455, 0.21819700300693512, 0.07655081897974014, -0.07578536868095398, 0.05413427948951721, -0.6071723103523254, -0.1956121027469635, 0.9342915415763855, 0.40393611788749695, 0.6436278223991394, 0.364070326089859, 0.543709397315979, 0.1201591044664383, 0.3898305594921112, -0.5037071108818054, 0.38079631328582764, 0.06928471475839615, -0.6640642285346985, -0.3788435161113739, -0.683299720287323, -0.9367449283599854, 0.3288572132587433, -0.08113611489534378, -0.7026617527008057, 0.4491443634033203, 0.027700187638401985, -0.3828449845314026, 0.18305301666259766, -0.6104984879493713, 0.9570632576942444, -0.03853187710046768, -0.404586523771286, 0.01428576186299324, -0.6481746435165405, 0.3799609839916229, 0.14448727667331696, -0.018182003870606422, -0.04709922522306442, -0.14041665196418762, 0.6970005631446838, -0.9187858700752258, 0.7047334313392639, -0.34873661398887634, -0.14357900619506836, 0.5776564478874207, -0.09354124218225479, 0.4186547100543976, 0.27396056056022644, 0.0028797949198633432, 0.35855376720428467, 0.5635948181152344, -0.4371589720249176, -0.5070073008537292, 0.5497607588768005, -1.0449252128601074, -0.5173311233520508, -0.6058891415596008, -0.37735289335250854, 0.12142747640609741, 0.07637308537960052, 0.570850670337677, 0.5161267518997192, -0.0987371876835823, -0.08588449656963348, 0.6366137266159058, -0.32747018337249756, 0.396492600440979, 0.33884909749031067, -0.3540625274181366, -0.6676191091537476, 0.7974123954772949, 0.07630092650651932, 0.14748257398605347, 0.2577342391014099, 0.13903434574604034, -0.49869826436042786, -0.29678669571876526, -0.6627480387687683, 0.35967177152633667, -0.5175924301147461, -0.40155231952667236, -0.6085090041160583, -0.36471694707870483, -0.4613352417945862, 0.267470121383667, -0.35424527525901794, -0.6244574785232544, -0.3490433394908905, 0.1540801227092743, 0.9043135046958923, 0.5093046426773071, -0.18944594264030457, 0.31113749742507935, -0.9144783020019531, 0.2922946810722351, 0.45163387060165405, 0.10740954428911209, 0.08111383765935898, -0.7603082656860352, -0.10638906061649323, 0.25671887397766113, -0.6516162157058716, -0.9661656618118286, 0.656463623046875, 0.1990019977092743, 0.39365288615226746, 0.4458601176738739, 0.19000810384750366, 0.8858481049537659, -0.25278154015541077, 0.9614422917366028, 0.21496333181858063, -0.9411703944206238, 0.5068607330322266, -0.5707871913909912, 0.21480804681777954, 0.3988863229751587, 0.600996732711792, -0.40016669034957886, -0.2702471911907196, -0.8558582067489624, -0.7398087382316589, 0.4579659700393677, 0.5020352005958557, -0.0284455344080925, 0.09646029770374298, 0.6784510016441345, -0.005484206136316061, 0.1256042718887329, -0.7898091673851013, -0.6445631980895996, -0.30506426095962524, -0.07818228751420975, 0.07257343083620071, 0.01912692002952099, -0.34009456634521484, -0.7083539366722107, 1.0056017637252808, -0.09356382489204407, 0.6703851819038391, 0.41876184940338135, 0.19786591827869415, -0.11714943498373032, 0.037621721625328064, 0.24598045647144318, 0.5812830924987793, -0.13048319518566132, -0.22172334790229797, 0.10871328413486481, -0.775174081325531, 0.17726978659629822, 0.4752558469772339, -0.1510535478591919, 0.04467419907450676, 0.08584655076265335, 0.723978579044342, -0.046117521822452545, -0.24188336730003357, 0.6269466876983643, -0.3924080431461334, -0.24481798708438873, -0.4519704282283783, 0.28385475277900696, 0.11616017669439316, 0.4966864585876465, 0.32892927527427673, -0.13993236422538757, 0.3256220817565918, -0.4344637393951416, 0.20686563849449158, 0.4794677793979645, -0.4066547155380249, -0.33049917221069336, 0.8074840307235718, -0.19875960052013397, 0.21930699050426483, 0.6928085088729858, -0.28894123435020447, -0.4143526554107666, 0.6916135549545288, 0.4121497869491577, 0.7993977069854736, -0.27333155274391174, 0.30044978857040405, 0.5348084568977356, 0.17812474071979523, -0.22420233488082886, 0.3769019842147827, -0.04584655165672302, -0.558387041091919, -0.28229427337646484, -0.6396016478538513, -0.26740872859954834, 0.16872857511043549, -0.8322224617004395, 0.18676169216632843, -0.4593755006790161, -0.4693268835544586, -0.1756037175655365, 0.20993013679981232, -0.6026886105537415, 0.26503652334213257, -0.04259254038333893, 0.9212014079093933, -0.7335847020149231, 0.8103070855140686, 0.6449992060661316, -0.4957329034805298, -1.080957055091858, -0.1729273945093155, 0.20360103249549866, -0.565407931804657, 0.1374959498643875, -0.017442675307393074, 0.26872625946998596, 0.09625435620546341, -0.7024652361869812, -0.8542750477790833, 1.4366633892059326, 0.3844294250011444, -0.39584556221961975, -0.09063287079334259, -0.0158076249063015, 0.4047177731990814, 0.04173056408762932, 0.7548186182975769, 0.5099416971206665, 0.3339225649833679, 0.1237490177154541, -0.9731548428535461, 0.45797112584114075, -0.5071110725402832, 0.0632137656211853, 0.34045571088790894, -0.9893900752067566, 1.0609185695648193, 0.10679132491350174, -0.20292113721370697, 0.23554986715316772, 0.68171626329422, 0.43658819794654846, 0.0984310731291771, 0.3416546881198883, 0.9395837783813477, 0.7351141571998596, -0.4254574179649353, 1.2062286138534546, -0.23710782825946808, 0.6728161573410034, 0.7772945165634155, 0.15410983562469482, 0.6448259353637695, 0.15210144221782684, -0.7033113837242126, 0.5483049154281616, 0.9387170672416687, -0.052757587283849716, 0.2601337730884552, 0.06170922517776489, -0.4513756036758423, -0.058375440537929535, 0.09641359746456146, -0.860918402671814, 0.07937546074390411, 0.3701308071613312, -0.22299715876579285, -0.006395154632627964, -0.2696838676929474, 0.06177731230854988, -0.7023543119430542, -0.18547725677490234, 0.556953489780426, 0.39282849431037903, -0.3031483292579651, 0.9730610251426697, -0.03075854480266571, 0.5418164134025574, -0.570343017578125, -0.2699030935764313, -0.3022201657295227, -0.08362403512001038, -0.3164738714694977, -0.6522312760353088, 0.07482466101646423, -0.2678752541542053, -0.12420271337032318, 0.04229240119457245, 0.7081248760223389, -0.26289528608322144, -0.32372018694877625, 0.2702002227306366, 0.5762802362442017, 0.2616320252418518, -0.27218377590179443, -1.1303915977478027, 0.0805501714348793, -0.02560347132384777, -0.5598761439323425, 0.4551645517349243, 0.6124333739280701, 0.11636986583471298, 0.610616147518158, 0.5943352580070496, -0.14485789835453033, -0.011168142780661583, -0.1223619133234024, 1.0056469440460205, -0.7542116641998291, -0.33356621861457825, -0.7673079371452332, 0.6497290730476379, -0.0491236113011837, -0.4848306179046631, 0.7689324021339417, 0.5830501317977905, 0.698140025138855, 0.0314679853618145, 0.6936480402946472, -0.2962765395641327, 0.0724170058965683, -0.2972145080566406, 0.7548274397850037, -0.7020983695983887, 0.03111879527568817, -0.4608657658100128, -0.8343887329101562, 0.05092580243945122, 0.7184752225875854, -0.05798136070370674, 0.3095775842666626, 0.43620213866233826, 0.8612543940544128, -0.04445064812898636, 0.16851304471492767, 0.10369060188531876, 0.3654790222644806, 0.1366998255252838, 0.8124808073043823, 0.742102861404419, -1.0128695964813232, 0.32083746790885925, -0.47846078872680664, -0.37104639410972595, 0.08977948874235153, -0.6415153741836548, -0.7035974264144897, -0.5377628207206726, -0.5581514239311218, -0.74973464012146, -0.02875884622335434, 0.8487504720687866, 0.7794051766395569, -0.6105261445045471, -0.3205120861530304, -0.10635536909103394, -0.031939201056957245, -0.36884501576423645, -0.3433077931404114, 0.39217284321784973, 0.21685481071472168, -0.6896821856498718, 0.07007189095020294, 0.11739896237850189, 0.3623410761356354, -0.06842152029275894, -0.26636338233947754, -0.08466676622629166, -0.09401265531778336, 0.5442211627960205, 0.5180490016937256, -0.6006290912628174, -0.09597907960414886, -0.22354215383529663, -0.16246621310710907, 0.1717267632484436, 0.27834266424179077, -0.7705202698707581, 0.02525905705988407, 0.46776923537254333, 0.24365918338298798, 0.8128389716148376, 0.05712788924574852, 0.4755476415157318, -0.3645346462726593, 0.06140558421611786, 0.04182479903101921, 0.3422713875770569, -0.0025890658143907785, -0.5066071152687073, 0.6722767353057861, 0.3993915617465973, -0.6941860318183899, -0.5998969674110413, -0.16869479417800903, -1.119997501373291, -0.17219612002372742, 1.0504400730133057, -0.2191230058670044, -0.31851717829704285, -0.02173524722456932, -0.3130860924720764, 0.5203820466995239, -0.5737696886062622, 0.30451369285583496, 0.39224594831466675, -0.25158852338790894, -0.3676041066646576, -0.7763662934303284, 0.7452819347381592, 0.2910531163215637, -0.7658897042274475, -0.02361186221241951, 0.5304353833198547, 0.3972652554512024, 0.013344100676476955, 0.8684033751487732, -0.3212434947490692, 0.3708859086036682, 0.058236557990312576, 0.02443828620016575, 0.09526646882295609, 0.11355988681316376, -0.466859370470047, -0.04849637299776077, -0.2030375748872757, 0.144881933927536 ]
gilf/french-camembert-postag-model
gilf
"2023-04-05T15:31:56Z"
18,417
6
transformers
[ "transformers", "pytorch", "tf", "safetensors", "camembert", "token-classification", "fr", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- language: fr widget: - text: "Face à un choc inédit, les mesures mises en place par le gouvernement ont permis une protection forte et efficace des ménages" --- ## About The *french-camembert-postag-model* is a part of speech tagging model for French that was trained on the *free-french-treebank* dataset available on [github](https://github.com/nicolashernandez/free-french-treebank). The base tokenizer and model used for training is *'camembert-base'*. ## Supported Tags It uses the following tags: | Tag | Category | Extra Info | |----------|:------------------------------:|------------:| | ADJ | adjectif | | | ADJWH | adjectif | | | ADV | adverbe | | | ADVWH | adverbe | | | CC | conjonction de coordination | | | CLO | pronom | obj | | CLR | pronom | refl | | CLS | pronom | suj | | CS | conjonction de subordination | | | DET | déterminant | | | DETWH | déterminant | | | ET | mot étranger | | | I | interjection | | | NC | nom commun | | | NPP | nom propre | | | P | préposition | | | P+D | préposition + déterminant | | | PONCT | signe de ponctuation | | | PREF | préfixe | | | PRO | autres pronoms | | | PROREL | autres pronoms | rel | | PROWH | autres pronoms | int | | U | ? | | | V | verbe | | | VIMP | verbe imperatif | | | VINF | verbe infinitif | | | VPP | participe passé | | | VPR | participe présent | | | VS | subjonctif | | More information on the tags can be found here: http://alpage.inria.fr/statgram/frdep/Publications/crabbecandi-taln2008-final.pdf ## Usage The usage of this model follows the common transformers patterns. Here is a short example of its usage: ```python from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("gilf/french-camembert-postag-model") model = AutoModelForTokenClassification.from_pretrained("gilf/french-camembert-postag-model") from transformers import pipeline nlp_token_class = pipeline('ner', model=model, tokenizer=tokenizer, grouped_entities=True) nlp_token_class('Face à un choc inédit, les mesures mises en place par le gouvernement ont permis une protection forte et efficace des ménages') ``` The lines above would display something like this on a Jupyter notebook: ``` [{'entity_group': 'NC', 'score': 0.5760144591331482, 'word': '<s>'}, {'entity_group': 'U', 'score': 0.9946700930595398, 'word': 'Face'}, {'entity_group': 'P', 'score': 0.999615490436554, 'word': 'à'}, {'entity_group': 'DET', 'score': 0.9995906352996826, 'word': 'un'}, {'entity_group': 'NC', 'score': 0.9995531439781189, 'word': 'choc'}, {'entity_group': 'ADJ', 'score': 0.999183714389801, 'word': 'inédit'}, {'entity_group': 'P', 'score': 0.3710663616657257, 'word': ','}, {'entity_group': 'DET', 'score': 0.9995903968811035, 'word': 'les'}, {'entity_group': 'NC', 'score': 0.9995649456977844, 'word': 'mesures'}, {'entity_group': 'VPP', 'score': 0.9988670349121094, 'word': 'mises'}, {'entity_group': 'P', 'score': 0.9996246099472046, 'word': 'en'}, {'entity_group': 'NC', 'score': 0.9995329976081848, 'word': 'place'}, {'entity_group': 'P', 'score': 0.9996233582496643, 'word': 'par'}, {'entity_group': 'DET', 'score': 0.9995935559272766, 'word': 'le'}, {'entity_group': 'NC', 'score': 0.9995369911193848, 'word': 'gouvernement'}, {'entity_group': 'V', 'score': 0.9993771314620972, 'word': 'ont'}, {'entity_group': 'VPP', 'score': 0.9991101026535034, 'word': 'permis'}, {'entity_group': 'DET', 'score': 0.9995885491371155, 'word': 'une'}, {'entity_group': 'NC', 'score': 0.9995636343955994, 'word': 'protection'}, {'entity_group': 'ADJ', 'score': 0.9991781711578369, 'word': 'forte'}, {'entity_group': 'CC', 'score': 0.9991298317909241, 'word': 'et'}, {'entity_group': 'ADJ', 'score': 0.9992275238037109, 'word': 'efficace'}, {'entity_group': 'P+D', 'score': 0.9993300437927246, 'word': 'des'}, {'entity_group': 'NC', 'score': 0.8353511393070221, 'word': 'ménages</s>'}] ```
[ -0.5260311961174011, -0.6618595123291016, 0.18718448281288147, 0.18265780806541443, -0.3565647304058075, 0.17129464447498322, -0.0643402710556984, -0.08088679611682892, 0.6756498217582703, 0.4524805247783661, -0.43460601568222046, -1.124321460723877, -0.7977715134620667, 0.10083411633968353, -0.17234671115875244, 1.0499650239944458, -0.04998994618654251, -0.14127080142498016, 0.22166968882083893, -0.0397600457072258, -0.0783676877617836, -0.5631036162376404, -0.8039116859436035, -0.23595261573791504, 0.4123673439025879, 0.20877207815647125, 0.6342833638191223, 0.718349277973175, 0.4601289927959442, 0.328743040561676, -0.21646267175674438, 0.031324926763772964, -0.18347275257110596, -0.18854406476020813, -0.11503923684358597, -0.647663950920105, -0.6366963982582092, -0.01020024809986353, 0.6719710230827332, 0.7395861148834229, -0.07672572880983353, 0.0882101058959961, 0.12047210335731506, 0.5324640870094299, -0.30077341198921204, 0.5486334562301636, -0.5495372414588928, 0.12421741336584091, -0.35786592960357666, -0.2963113486766815, -0.1303820163011551, -0.15042051672935486, -0.05263735353946686, -0.7156953811645508, 0.2256355881690979, 0.024988465011119843, 1.617378830909729, 0.13773728907108307, -0.359994500875473, -0.3268595337867737, -0.35699301958084106, 0.772144615650177, -0.9733806848526001, 0.3158050775527954, 0.4870339035987854, -0.06265044212341309, -0.34747642278671265, -0.9547989368438721, -0.7696170210838318, 0.14397463202476501, -0.5942334532737732, 0.38077279925346375, -0.20834405720233917, -0.1709592491388321, 0.28620314598083496, 0.29000124335289, -0.8815454244613647, -0.08243974298238754, -0.20002560317516327, -0.11750829964876175, 0.6957322955131531, 0.05097300931811333, 0.3664325773715973, -0.6475812792778015, -0.515425980091095, -0.2273721545934677, -0.4229046404361725, 0.30985143780708313, 0.3153413236141205, 0.4305848777294159, -0.45616188645362854, 0.7624836564064026, -0.3958427608013153, 0.7836909294128418, -0.002490529092028737, -0.16567103564739227, 0.7014937996864319, -0.4230619966983795, -0.2979537844657898, 0.0426805205643177, 1.3796521425247192, 0.7395775318145752, 0.18443284928798676, 0.05065864324569702, -0.23945216834545135, 0.15213409066200256, -0.13276545703411102, -0.6969671845436096, -0.5707056522369385, 0.30181774497032166, -0.48925426602363586, -0.27489274740219116, 0.2118528038263321, -1.25494384765625, 0.09654860198497772, -0.06401059031486511, 0.42682722210884094, -0.4323398768901825, -0.36645761132240295, -0.02100207470357418, -0.3006904423236847, 0.32023292779922485, -0.08666966110467911, -0.8805379867553711, 0.2796013653278351, 0.40936267375946045, 1.1114661693572998, 0.23336531221866608, -0.13364213705062866, -0.3013722002506256, 0.06696975976228714, -0.15477901697158813, 0.9387726187705994, -0.49043843150138855, -0.6649512052536011, -0.1431688368320465, 0.42759376764297485, -0.5522873401641846, -0.24770694971084595, 0.6891965866088867, -0.24651868641376495, 0.3454039394855499, -0.13869008421897888, -0.6065030694007874, -0.23340508341789246, 0.2526783347129822, -0.7056858539581299, 1.1918939352035522, 0.41115790605545044, -1.2067499160766602, 0.7019075155258179, -0.7214978933334351, -0.34768643975257874, 0.26129579544067383, -0.33785611391067505, -0.4664139151573181, -0.37033823132514954, 0.47965314984321594, 0.6428448557853699, -0.3462986946105957, 0.06171857565641403, 0.08167916536331177, -0.0935170128941536, 0.0924709215760231, -0.17873415350914001, 1.2739771604537964, 0.25468817353248596, -0.41453492641448975, 0.09924550354480743, -1.0914015769958496, 0.042981117963790894, 0.39862415194511414, -0.5960164070129395, -0.23259642720222473, -0.023426862433552742, 0.13295495510101318, 0.24752092361450195, 0.14822600781917572, -0.5253583788871765, 0.34923169016838074, -0.7775700092315674, 0.7181378602981567, 0.6332169771194458, 0.16097916662693024, 0.2260126769542694, -0.3955190181732178, 0.5340128540992737, 0.23761284351348877, -0.0650431364774704, -0.1261870265007019, -0.7409956455230713, -0.5340021848678589, -0.6296663880348206, 0.44441595673561096, 0.7667413949966431, -0.6853856444358826, 1.146206259727478, -0.47699612379074097, -0.7312716245651245, -0.5776899456977844, -0.14288493990898132, -0.06812816113233566, 0.7948995232582092, 0.5467864274978638, -0.3112519383430481, -0.678861677646637, -0.9769685864448547, -0.1501520723104477, -0.14524559676647186, 0.035031579434871674, 0.2642337381839752, 0.8838512897491455, -0.3024182915687561, 1.0477434396743774, -0.6209330558776855, -0.3696868121623993, -0.2608546018600464, 0.11783690750598907, 0.8481777310371399, 0.7334245443344116, 0.7465534806251526, -0.723408579826355, -0.6113392114639282, -0.011517022736370564, -0.7542428970336914, 0.03250667080283165, -0.08449070155620575, -0.14666028320789337, 0.19588640332221985, 0.33831167221069336, -0.975657045841217, 0.6715037226676941, 0.5464953780174255, -0.705933153629303, 0.4219245910644531, -0.35245269536972046, 0.287863552570343, -1.422481656074524, 0.045259974896907806, -0.03208452835679054, -0.3145773708820343, -0.5514944195747375, -0.019438372924923897, -0.0015177488094195724, 0.1618773490190506, -0.4395632743835449, 0.3239254653453827, -0.5101417303085327, 0.14785924553871155, 0.1134544089436531, 0.16639254987239838, 0.032399486750364304, 0.5945336818695068, 0.02545134909451008, 0.7062480449676514, 0.8754405975341797, -0.49192675948143005, 0.46694618463516235, 0.19703592360019684, -0.5040603876113892, 0.5029149055480957, -0.6880199909210205, -0.1985388547182083, -0.23862437903881073, 0.3243085741996765, -1.2789746522903442, -0.3829883337020874, 0.5287806391716003, -0.5713984370231628, 0.4275624752044678, -0.3302668035030365, -0.6401333808898926, -0.6199157238006592, -0.38964900374412537, 0.1883784681558609, 0.37574926018714905, -0.3766547739505768, 0.8078531622886658, 0.3608701825141907, 0.006585992407053709, -0.6189783215522766, -0.7904908061027527, 0.009782792069017887, -0.37155574560165405, -0.6531788110733032, 0.46334564685821533, 0.11488325893878937, 0.09770860522985458, 0.2357376515865326, 0.0013747572666034102, 0.04198521748185158, 0.19760794937610626, 0.19633544981479645, 0.25717419385910034, -0.14278897643089294, -0.11349023133516312, -0.1192723959684372, -0.13290409743785858, -0.13541996479034424, -0.47658786177635193, 1.2301101684570312, -0.1343303620815277, -0.1396869719028473, -0.5116626024246216, 0.27907732129096985, 0.3945714235305786, -0.5151136517524719, 1.13910710811615, 0.7120628356933594, -0.708490252494812, 0.05938754230737686, -0.14434581995010376, 0.07600635290145874, -0.4274769723415375, 0.2357586920261383, -0.7574276328086853, -0.83225017786026, 0.7317557334899902, 0.10617723315954208, 0.08315610885620117, 1.148856520652771, 0.503039538860321, -0.24229414761066437, 1.1142789125442505, 0.16223718225955963, -0.10630005598068237, 0.239688441157341, -0.6726616024971008, 0.24711836874485016, -0.6737640500068665, -0.5020698308944702, -0.5663869380950928, -0.2346915751695633, -0.9117369055747986, -0.475754052400589, 0.08123651891946793, 0.43743962049484253, -0.27423447370529175, 0.5650643706321716, -0.892561674118042, 0.22929763793945312, 0.6325123310089111, 0.11350216716527939, -0.012896607629954815, -0.07783714681863785, -0.35473397374153137, -0.10917366296052933, -0.6712493300437927, -0.5847980976104736, 1.2085068225860596, 0.16916437447071075, 0.6506892442703247, 0.10707693547010422, 0.9182242155075073, 0.17737968266010284, 0.1291867047548294, -0.8047003149986267, 0.5981309413909912, -0.1805766373872757, -0.5420218706130981, -0.2399931252002716, -0.48373135924339294, -1.3225796222686768, 0.4843016266822815, -0.26352784037590027, -1.1458903551101685, 0.33350881934165955, 0.17380693554878235, -0.37835222482681274, 0.5002925395965576, -0.724930465221405, 1.1001923084259033, -0.16961725056171417, -0.12756338715553284, 0.1910957545042038, -0.6602160334587097, 0.12208354473114014, 0.03526621311903, 0.31349799036979675, -0.13023598492145538, -0.022494493052363396, 0.9855396747589111, -0.724814236164093, 0.6247649192810059, -0.19994494318962097, 0.028705952689051628, 0.5197133421897888, -0.07311148196458817, 0.7554690837860107, 0.21254295110702515, 0.1817026436328888, 0.23166176676750183, 0.13120248913764954, -0.4207542836666107, -0.33433571457862854, 0.8611177206039429, -0.7902799844741821, -0.6005753874778748, -0.7103004455566406, -0.1695590615272522, 0.24088077247142792, 0.4231325685977936, 0.6799066066741943, 0.3781028985977173, 0.11190696805715561, 0.29171934723854065, 0.49204790592193604, -0.33582863211631775, 0.6110270619392395, 0.26067087054252625, -0.2659875452518463, -0.6831895112991333, 0.8865034580230713, 0.4222557842731476, -0.021929966285824776, 0.5738471150398254, 0.09202022105455399, -0.5841702222824097, -0.4001504182815552, -0.400488018989563, 0.4278578758239746, -0.5770121812820435, -0.2759210467338562, -1.1663652658462524, -0.19663195312023163, -0.8910430073738098, 0.004059877712279558, -0.24793246388435364, -0.5997088551521301, -0.5841004252433777, -0.36204394698143005, 0.6464593410491943, 0.41307392716407776, -0.19883818924427032, 0.4701732099056244, -0.7176789045333862, 0.2797795236110687, 0.15215502679347992, 0.44976067543029785, -0.33104538917541504, -0.6215196847915649, -0.0983368456363678, 0.025210732594132423, -0.16263315081596375, -1.289596676826477, 0.7310829758644104, 0.008871743455529213, 0.41875723004341125, 0.3323391079902649, -0.28092867136001587, 0.7684323191642761, -0.509358823299408, 1.0464152097702026, 0.23008714616298676, -0.9923303127288818, 0.7768933773040771, -0.3829052150249481, 0.22944855690002441, 0.3063855767250061, 0.5095655918121338, -0.7636976838111877, -0.20874130725860596, -0.9512147307395935, -1.4354863166809082, 0.9407402873039246, 0.5079788565635681, -0.12288124859333038, -0.21754707396030426, 0.15993766486644745, -0.28536826372146606, 0.24475984275341034, -0.9174190759658813, -0.7039254903793335, -0.618506669998169, -0.5243048071861267, -0.09182827919721603, -0.002562185749411583, -0.16254772245883942, -0.43894562125205994, 0.9078304171562195, 0.14700524508953094, 0.46928590536117554, 0.5054752826690674, -0.09902574867010117, 0.038712698966264725, 0.21182464063167572, 0.6215135455131531, 0.5915956497192383, -0.3566570281982422, 0.17686156928539276, 0.08507638424634933, -0.2537825107574463, -0.028475061058998108, 0.4196706712245941, -0.21605618298053741, 0.23312047123908997, 0.5433984994888306, 0.8685894012451172, -0.09327737987041473, -0.3774498999118805, 0.6337718963623047, 0.0026580265257507563, -0.6065690517425537, -0.5956704616546631, -0.03966906666755676, 0.26912519335746765, 0.10671454668045044, 0.3689275085926056, 0.0018605035729706287, -0.13528850674629211, -0.5633588433265686, 0.2507708668708801, 0.4147041141986847, -0.3219365179538727, -0.28092509508132935, 1.0782382488250732, -0.24601630866527557, -0.5035583972930908, 0.3107503056526184, -0.31096577644348145, -0.6211109161376953, 0.7218765616416931, 0.44554033875465393, 0.7887057065963745, -0.2208404839038849, 0.22246640920639038, 0.6305516362190247, 0.5894860625267029, 0.08542400598526001, 0.569216787815094, 0.15730218589305878, -0.8407154679298401, -0.06598887592554092, -0.8444440960884094, 0.40599915385246277, 0.4232272505760193, -0.4106474816799164, 0.1329191029071808, -0.6035324335098267, -0.516004204750061, 0.2024693340063095, -0.10716754198074341, -0.9584294557571411, 0.5488569736480713, -0.04418452829122543, 0.8614782094955444, -0.9120619893074036, 0.7943171858787537, 1.0020062923431396, -0.7967862486839294, -1.1484966278076172, -0.16235706210136414, -0.24945947527885437, -0.6751985549926758, 0.7252203822135925, 0.16265174746513367, 0.3690958619117737, 0.1392728090286255, -0.5076524019241333, -1.172013759613037, 1.1605911254882812, -0.13307927548885345, -0.714446485042572, -0.07076703757047653, 0.15692725777626038, 0.6325129270553589, -0.364810049533844, 0.6018577218055725, 0.7695491313934326, 0.5591679215431213, -0.21925100684165955, -0.7827650308609009, 0.26938092708587646, -0.39924025535583496, -0.1275547593832016, 0.3236544132232666, -0.9741454720497131, 1.0873011350631714, 0.35004130005836487, -0.25423139333724976, -0.25420576333999634, 0.5976558923721313, 0.06266792118549347, 0.04076988995075226, 0.6360709071159363, 0.9223179817199707, 0.8262218236923218, -0.6539666652679443, 0.9674060940742493, -0.45550647377967834, 0.7390570640563965, 0.9850126504898071, -0.046175066381692886, 0.6866392493247986, 0.45431187748908997, -0.3985845446586609, 0.6069296002388, 0.7861242294311523, -0.20149342715740204, 0.5000206232070923, 0.21526755392551422, -0.2692393362522125, -0.05154642462730408, 0.011359559372067451, -0.39645323157310486, 0.5147925019264221, 0.5624979734420776, -0.5819463133811951, -0.03316846862435341, -0.19439248740673065, 0.24923352897167206, 0.08985961973667145, -0.28384047746658325, 0.6758534908294678, -0.011227055452764034, -0.4488556385040283, 0.6582496166229248, 0.12960773706436157, 0.8085921406745911, -0.4686152935028076, -0.023068029433488846, -0.02494828589260578, 0.08228101581335068, -0.4814477562904358, -0.9863021373748779, 0.07220476865768433, 0.007961021736264229, -0.11264621466398239, 0.04484058544039726, 0.5221815705299377, -0.49612686038017273, -0.7446079850196838, 0.2932741641998291, 0.39005595445632935, 0.29444149136543274, 0.12350410223007202, -1.0161385536193848, -0.27698105573654175, 0.17992772161960602, -0.6284226775169373, -0.07167963683605194, 0.4163362383842468, 0.0707816481590271, 0.5869184136390686, 0.6689515113830566, 0.4607086777687073, 0.2742573916912079, 0.13085174560546875, 1.0247511863708496, -0.9425336718559265, -0.5759599208831787, -1.0111351013183594, 0.7133745551109314, -0.2310294806957245, -0.27191585302352905, 0.6950986981391907, 0.9305945634841919, 0.9451428651809692, 0.05360748618841171, 0.9437394738197327, -0.47612282633781433, 0.6361503005027771, -0.5836887359619141, 0.8059833645820618, -0.7334935665130615, 0.04811946302652359, -0.2539869248867035, -0.9479940533638, -0.37024807929992676, 0.9318554997444153, -0.12653031945228577, 0.03567785024642944, 0.7367554306983948, 0.9834665060043335, 0.01710652746260166, -0.22452576458454132, -0.02560562640428543, 0.36769452691078186, 0.4489922821521759, 0.5643956065177917, 0.4803145229816437, -0.6068994402885437, 0.5375186204910278, -0.4866383671760559, -0.21275107562541962, -0.12289166450500488, -0.703437864780426, -0.9936977624893188, -0.5159797072410583, -0.3722948133945465, -0.35312652587890625, -0.11165211349725723, 1.3808963298797607, 0.5062215328216553, -1.041523814201355, -0.11781542003154755, -0.2713703215122223, -0.1584082692861557, -0.18406325578689575, -0.3910141587257385, 0.8891394734382629, -0.0563194639980793, -0.7830449938774109, 0.32086193561553955, 0.08063742518424988, 0.35963910818099976, 0.3472016751766205, 0.10202373564243317, -0.6794090867042542, -0.06377854198217392, 0.4952501356601715, 0.0918070450425148, -0.7171661257743835, -0.26923397183418274, -0.35857513546943665, -0.09327609837055206, 0.41324806213378906, 0.37099599838256836, -0.5909123420715332, 0.47093087434768677, 0.7358580231666565, 0.29221609234809875, 0.6889147162437439, 0.2421337068080902, 0.25240954756736755, -0.9135577082633972, 0.3952557444572449, 0.0890599861741066, 0.6839876770973206, 0.22803081572055817, -0.4012213349342346, 0.5609543323516846, 0.6935207843780518, -0.49383363127708435, -0.7320148348808289, -0.15068447589874268, -1.0756027698516846, -0.24455878138542175, 0.8593667149543762, -0.27678173780441284, -0.41911566257476807, -0.0042973654344677925, -0.4100205898284912, 0.6104193329811096, -0.7403974533081055, 0.41939207911491394, 0.7511645555496216, 0.014492092654109001, -0.06203212961554527, -0.5777848362922668, 0.6368581056594849, 0.35587504506111145, -0.7337544560432434, -0.32968729734420776, 0.0669311136007309, 0.32317379117012024, 0.2823605239391327, 0.8325445055961609, -0.1115153431892395, -0.1117391437292099, 0.07394982129335403, 0.1465236246585846, 0.32990509271621704, 0.043439242988824844, -0.13698096573352814, 0.10617958009243011, -0.19098882377147675, -0.37301623821258545 ]
lllyasviel/control_v11p_sd15_inpaint
lllyasviel
"2023-05-26T09:58:45Z"
18,413
57
diffusers
[ "diffusers", "art", "controlnet", "stable-diffusion", "controlnet-v1-1", "image-to-image", "arxiv:2302.05543", "base_model:runwayml/stable-diffusion-v1-5", "license:openrail", "has_space", "diffusers:ControlNetModel", "region:us" ]
image-to-image
"2023-04-14T19:25:42Z"
--- license: openrail base_model: runwayml/stable-diffusion-v1-5 tags: - art - controlnet - stable-diffusion - controlnet-v1-1 - image-to-image duplicated_from: ControlNet-1-1-preview/control_v11p_sd15_inpaint --- # Controlnet - v1.1 - *InPaint Version* **Controlnet v1.1** was released in [lllyasviel/ControlNet-v1-1](https://huggingface.co/lllyasviel/ControlNet-v1-1) by [Lvmin Zhang](https://huggingface.co/lllyasviel). This checkpoint is a conversion of [the original checkpoint](https://huggingface.co/lllyasviel/ControlNet-v1-1/blob/main/control_v11p_sd15_inpaint.pth) into `diffusers` format. It can be used in combination with **Stable Diffusion**, such as [runwayml/stable-diffusion-v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5). For more details, please also have a look at the [🧨 Diffusers docs](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/controlnet). ControlNet is a neural network structure to control diffusion models by adding extra conditions. ![img](./sd.png) This checkpoint corresponds to the ControlNet conditioned on **inpaint images**. ## Model Details - **Developed by:** Lvmin Zhang, Maneesh Agrawala - **Model type:** Diffusion-based text-to-image generation model - **Language(s):** English - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based. - **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543). - **Cite as:** @misc{zhang2023adding, title={Adding Conditional Control to Text-to-Image Diffusion Models}, author={Lvmin Zhang and Maneesh Agrawala}, year={2023}, eprint={2302.05543}, archivePrefix={arXiv}, primaryClass={cs.CV} } ## Introduction Controlnet was proposed in [*Adding Conditional Control to Text-to-Image Diffusion Models*](https://arxiv.org/abs/2302.05543) by Lvmin Zhang, Maneesh Agrawala. The abstract reads as follows: *We present a neural network structure, ControlNet, to control pretrained large diffusion models to support additional input conditions. The ControlNet learns task-specific conditions in an end-to-end way, and the learning is robust even when the training dataset is small (< 50k). Moreover, training a ControlNet is as fast as fine-tuning a diffusion model, and the model can be trained on a personal devices. Alternatively, if powerful computation clusters are available, the model can scale to large amounts (millions to billions) of data. We report that large diffusion models like Stable Diffusion can be augmented with ControlNets to enable conditional inputs like edge maps, segmentation maps, keypoints, etc. This may enrich the methods to control large diffusion models and further facilitate related applications.* ## Example It is recommended to use the checkpoint with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) as the checkpoint has been trained on it. Experimentally, the checkpoint can be used with other diffusion models such as dreamboothed stable diffusion. 1. Let's install `diffusers` and related packages: ``` $ pip install diffusers transformers accelerate ``` 2. Run code: ```python # !pip install transformers accelerate from diffusers import StableDiffusionControlNetInpaintPipeline, ControlNetModel from diffusers.utils import load_image import numpy as np import torch init_image = load_image( "https://huggingface.co/datasets/diffusers/test-arrays/resolve/main/stable_diffusion_inpaint/boy.png" ) init_image = init_image.resize((512, 512)) generator = torch.Generator(device="cpu").manual_seed(1) mask_image = load_image( "https://huggingface.co/datasets/diffusers/test-arrays/resolve/main/stable_diffusion_inpaint/boy_mask.png" ) mask_image = mask_image.resize((512, 512)) def make_inpaint_condition(image, image_mask): image = np.array(image.convert("RGB")).astype(np.float32) / 255.0 image_mask = np.array(image_mask.convert("L")).astype(np.float32) / 255.0 assert image.shape[0:1] == image_mask.shape[0:1], "image and image_mask must have the same image size" image[image_mask > 0.5] = -1.0 # set as masked pixel image = np.expand_dims(image, 0).transpose(0, 3, 1, 2) image = torch.from_numpy(image) return image control_image = make_inpaint_condition(init_image, mask_image) controlnet = ControlNetModel.from_pretrained( "lllyasviel/control_v11p_sd15_inpaint", torch_dtype=torch.float16 ) pipe = StableDiffusionControlNetInpaintPipeline.from_pretrained( "runwayml/stable-diffusion-v1-5", controlnet=controlnet, torch_dtype=torch.float16 ) pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config) pipe.enable_model_cpu_offload() # generate image image = pipe( "a handsome man with ray-ban sunglasses", num_inference_steps=20, generator=generator, eta=1.0, image=init_image, mask_image=mask_image, control_image=control_image, ).images[0] ``` ![original](https://huggingface.co/datasets/diffusers/test-arrays/resolve/main/stable_diffusion_inpaint/boy.png) ![img](https://huggingface.co/datasets/diffusers/test-arrays/resolve/main/stable_diffusion_inpaint/boy_with_mask.png) ![img](https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/boy_ray_ban.png) ## Other released checkpoints v1-1 The authors released 14 different checkpoints, each trained with [Stable Diffusion v1-5](https://huggingface.co/runwayml/stable-diffusion-v1-5) on a different type of conditioning: | Model Name | Control Image Overview| Condition Image | Control Image Example | Generated Image Example | |---|---|---|---|---| |[lllyasviel/control_v11p_sd15_canny](https://huggingface.co/lllyasviel/control_v11p_sd15_canny)<br/> | *Trained with canny edge detection* | A monochrome image with white edges on a black background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_canny/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_ip2p](https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p)<br/> | *Trained with pixel to pixel instruction* | No condition .|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_ip2p/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_inpaint](https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint)<br/> | Trained with image inpainting | No condition.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_inpaint/resolve/main/images/output.png"/></a>| |[lllyasviel/control_v11p_sd15_mlsd](https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd)<br/> | Trained with multi-level line segment detection | An image with annotated line segments.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_mlsd/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1p_sd15_depth](https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth)<br/> | Trained with depth estimation | An image with depth information, usually represented as a grayscale image.|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1p_sd15_depth/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_normalbae](https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae)<br/> | Trained with surface normal estimation | An image with surface normal information, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_normalbae/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_seg](https://huggingface.co/lllyasviel/control_v11p_sd15_seg)<br/> | Trained with image segmentation | An image with segmented regions, usually represented as a color-coded image.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_seg/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_lineart](https://huggingface.co/lllyasviel/control_v11p_sd15_lineart)<br/> | Trained with line art generation | An image with line art, usually black lines on a white background.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_lineart/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15s2_lineart_anime](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with anime line art generation | An image with anime-style line art.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_openpose](https://huggingface.co/lllyasviel/control_v11p_sd15s2_lineart_anime)<br/> | Trained with human pose estimation | An image with human poses, usually represented as a set of keypoints or skeletons.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_scribble](https://huggingface.co/lllyasviel/control_v11p_sd15_scribble)<br/> | Trained with scribble-based image generation | An image with scribbles, usually random or user-drawn strokes.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_scribble/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11p_sd15_softedge](https://huggingface.co/lllyasviel/control_v11p_sd15_softedge)<br/> | Trained with soft edge image generation | An image with soft edges, usually to create a more painterly or artistic effect.|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11p_sd15_softedge/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11e_sd15_shuffle](https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle)<br/> | Trained with image shuffling | An image with shuffled patches or regions.|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/control.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11e_sd15_shuffle/resolve/main/images/image_out.png"/></a>| |[lllyasviel/control_v11f1e_sd15_tile](https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile)<br/> | Trained with image tiling | A blurry image or part of an image .|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"><img width="64" style="margin:0;padding:0;" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/original.png"/></a>|<a href="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"><img width="64" src="https://huggingface.co/lllyasviel/control_v11f1e_sd15_tile/resolve/main/images/output.png"/></a>| ## More information For more information, please also have a look at the [Diffusers ControlNet Blog Post](https://huggingface.co/blog/controlnet) and have a look at the [official docs](https://github.com/lllyasviel/ControlNet-v1-1-nightly).
[ -0.542119026184082, -0.5276654958724976, 0.16430217027664185, 0.5410175919532776, -0.21394477784633636, -0.15939459204673767, 0.030104927718639374, -0.46252521872520447, 0.48014289140701294, 0.27681806683540344, -0.7105328440666199, -0.297678679227829, -0.7374571561813354, -0.19699251651763916, -0.1108192652463913, 0.8276719450950623, -0.32139161229133606, -0.004433038178831339, 0.03490956500172615, -0.06883633136749268, -0.061061758548021317, -0.08556967973709106, -1.1727429628372192, -0.4636363685131073, 0.3883741796016693, 0.1004650890827179, 0.5079644322395325, 0.4492030739784241, 0.522503674030304, 0.37765681743621826, -0.35976293683052063, 0.04193166643381119, -0.35767069458961487, -0.23248770833015442, 0.19709953665733337, -0.16210173070430756, -0.6107111573219299, 0.13202334940433502, 0.7060612440109253, 0.31795036792755127, -0.0465165339410305, -0.15007105469703674, 0.18825560808181763, 0.7067959904670715, -0.4955087900161743, -0.11220020055770874, -0.156218022108078, 0.22890155017375946, -0.17362812161445618, 0.057485222816467285, -0.13920369744300842, -0.32660529017448425, 0.058238644152879715, -0.782776951789856, 0.0017827965784817934, -0.23576197028160095, 1.3034604787826538, 0.3117491900920868, -0.3345996141433716, -0.04542282223701477, -0.23247583210468292, 0.7195369005203247, -0.7976597547531128, 0.059410013258457184, 0.1290867179632187, 0.24812720715999603, -0.2930229604244232, -1.0037275552749634, -0.5315272212028503, -0.10445665568113327, -0.1524604707956314, 0.5002613067626953, -0.3277292549610138, 0.011377333663403988, 0.2818450927734375, 0.26917290687561035, -0.405914843082428, 0.1769297868013382, -0.3091435432434082, -0.3229277431964874, 0.6501833200454712, 0.032320786267519, 0.5535908937454224, 0.06413402408361435, -0.6484282612800598, -0.0715862438082695, -0.4384140372276306, 0.30974307656288147, 0.24238432943820953, -0.15631185472011566, -0.7451147437095642, 0.3976193070411682, -0.05676644295454025, 0.7091361284255981, 0.49522921442985535, -0.26141640543937683, 0.4957526624202728, -0.21257692575454712, -0.414025217294693, -0.2840481996536255, 0.9841668009757996, 0.4672395586967468, 0.09595194458961487, -0.03007999248802662, -0.1283431202173233, -0.15335750579833984, -0.06394613534212112, -1.290423035621643, -0.18164975941181183, 0.22138473391532898, -0.5296497344970703, -0.3326864242553711, -0.15158353745937347, -0.7899522185325623, -0.1706579178571701, -0.08068383485078812, 0.4482173025608063, -0.5113736987113953, -0.457559734582901, 0.18545614182949066, -0.4598223865032196, 0.4079347550868988, 0.6186272501945496, -0.44473785161972046, 0.20309723913669586, 0.1485857218503952, 0.9730907678604126, -0.2881929278373718, -0.11005829274654388, -0.1894410103559494, -0.06373405456542969, -0.3299282193183899, 0.4028528332710266, -0.19673384726047516, -0.10126250237226486, -0.11212949454784393, 0.3322264850139618, -0.14877071976661682, -0.435102254152298, 0.3612855076789856, -0.39359188079833984, 0.2203161120414734, -0.012356494553387165, -0.4119234085083008, -0.1783546656370163, 0.17447789013385773, -0.42089715600013733, 0.7729988694190979, 0.3343845307826996, -0.9808066487312317, 0.3695168197154999, -0.5504531860351562, -0.1602555364370346, -0.2040507048368454, 0.10148661583662033, -0.7759875059127808, -0.40229332447052, -0.010304277762770653, 0.5582353472709656, -0.019840199500322342, -0.06510788947343826, -0.4457622170448303, -0.09901336580514908, 0.14557385444641113, -0.12420949339866638, 1.2926713228225708, 0.1324557363986969, -0.6608774065971375, 0.09744919091463089, -0.7519645094871521, 0.015834229066967964, 0.14505496621131897, -0.2684030532836914, 0.1206899955868721, -0.3897467255592346, 0.13060115277767181, 0.6530378460884094, 0.34436488151550293, -0.7248811721801758, 0.07799790799617767, -0.28092139959335327, 0.43600571155548096, 0.6908923387527466, 0.2101414054632187, 0.6099286079406738, -0.4707255959510803, 0.567689061164856, 0.32046306133270264, 0.26445382833480835, 0.04660020023584366, -0.5741193294525146, -0.9874058961868286, -0.6364914178848267, -0.0419267863035202, 0.4950743615627289, -0.7988423109054565, 0.6639940142631531, 0.07434835284948349, -0.6890919208526611, -0.23554416000843048, 0.06118566170334816, 0.4927148222923279, 0.5485140681266785, 0.30587074160575867, -0.5425668358802795, -0.2763787806034088, -0.8916953206062317, 0.20144888758659363, 0.2637881338596344, 0.009034453891217709, 0.17930901050567627, 0.6679593324661255, -0.10779144614934921, 0.666390597820282, -0.26102322340011597, -0.33801695704460144, -0.005119300913065672, -0.09452877938747406, 0.37502413988113403, 1.016069769859314, 0.7758231163024902, -0.7395424246788025, -0.7098448872566223, -0.03214340656995773, -0.8310796022415161, -0.020550932735204697, -0.18438461422920227, -0.5221757888793945, 0.24129384756088257, 0.5907811522483826, -0.6595093011856079, 0.8106330037117004, 0.5591079592704773, -0.5121856927871704, 0.5479803085327148, -0.3247721493244171, 0.17867259681224823, -0.950438380241394, 0.21046340465545654, 0.3219895660877228, -0.33912625908851624, -0.5690585374832153, 0.11870001256465912, 0.10851072520017624, 0.026440082117915154, -0.7186726927757263, 0.7582542300224304, -0.4835044741630554, 0.2590715289115906, -0.2698648273944855, -0.15456855297088623, 0.04625116288661957, 0.7007452249526978, 0.1083434596657753, 0.5129914283752441, 0.9773724675178528, -0.6215001344680786, 0.34568700194358826, 0.3904225528240204, -0.30706968903541565, 0.8092965483665466, -0.8069280385971069, 0.15514297783374786, -0.1891937553882599, 0.5472034215927124, -0.9981886148452759, -0.27654576301574707, 0.65964674949646, -0.4181085228919983, 0.5943122506141663, -0.28520190715789795, -0.3098979592323303, -0.35368821024894714, -0.3203989565372467, 0.3049663305282593, 0.7479951977729797, -0.5383433699607849, 0.31654593348503113, 0.198806494474411, 0.20171774923801422, -0.5105092525482178, -0.9175415635108948, -0.07119880616664886, -0.4015445113182068, -0.8137694597244263, 0.5706639885902405, -0.25554317235946655, 0.025595786049962044, 0.01267060823738575, 0.059541862457990646, -0.23674902319908142, -0.061014365404844284, 0.35531988739967346, 0.22711946070194244, -0.08120785653591156, -0.22545461356639862, 0.08508073538541794, -0.18490567803382874, -0.04769478738307953, -0.27056020498275757, 0.41930288076400757, 0.11203406006097794, -0.24339833855628967, -0.9700018763542175, 0.21055075526237488, 0.5493178367614746, 0.07983998954296112, 0.8913782238960266, 0.7881252765655518, -0.3725903332233429, -0.039104998111724854, -0.3597991168498993, -0.15985752642154694, -0.5098351836204529, -0.0031932590063661337, -0.19865070283412933, -0.6844362616539001, 0.6901362538337708, 0.04176035895943642, -0.015274962410330772, 0.6384719610214233, 0.4853633642196655, -0.22126324474811554, 0.8449567556381226, 0.495542973279953, -0.05780670419335365, 0.7786067724227905, -0.7881461977958679, -0.2005959153175354, -0.9622673988342285, -0.3203407824039459, -0.2765221893787384, -0.7203474044799805, -0.3447689712047577, -0.41360318660736084, 0.47093385457992554, 0.35764601826667786, -0.7595218420028687, 0.41243597865104675, -0.591581404209137, 0.13400286436080933, 0.31780266761779785, 0.5652021169662476, -0.16011083126068115, -0.02092129923403263, -0.13525119423866272, -0.006904031150043011, -0.6189797520637512, -0.15880122780799866, 0.6375883221626282, 0.4204554557800293, 0.6076395511627197, -0.042227521538734436, 0.5720750093460083, -0.03907177597284317, 0.28480395674705505, -0.4431760609149933, 0.5047308206558228, 0.003811258589848876, -0.5777512192726135, -0.16823144257068634, -0.34629470109939575, -1.0323649644851685, 0.08478065580129623, -0.4048035740852356, -0.656546950340271, 0.42444610595703125, 0.20764799416065216, -0.03161875531077385, 0.4544416069984436, -0.6271063685417175, 0.7295876741409302, 0.028347497805953026, -0.596246600151062, -0.021023020148277283, -0.8099753856658936, 0.20425602793693542, 0.19307328760623932, -0.19162452220916748, 0.01801040582358837, -0.13858315348625183, 0.8755420446395874, -0.7528361082077026, 0.8628708124160767, -0.5198999047279358, 0.02199867181479931, 0.35201820731163025, -0.04142745956778526, 0.5666966438293457, -0.13619856536388397, -0.2109493613243103, 0.10598402470350266, -0.1583816409111023, -0.633785605430603, -0.4194990396499634, 0.6475862860679626, -0.6592455506324768, -0.1772300899028778, -0.2997285723686218, -0.26737475395202637, 0.20072001218795776, 0.17748099565505981, 0.6981676816940308, 0.4440276324748993, 0.18314433097839355, 0.05127120018005371, 0.6955942511558533, -0.3181922137737274, 0.6867136359214783, 0.03822847083210945, -0.11234677582979202, -0.49529144167900085, 0.6967316269874573, 0.07963234931230545, 0.5094026923179626, 0.16782984137535095, 0.15782999992370605, -0.1340276300907135, -0.4845615029335022, -0.5203073024749756, 0.4654165208339691, -0.6408234238624573, -0.4324273467063904, -0.549281656742096, -0.44651830196380615, -0.27021580934524536, -0.461781769990921, -0.2632027268409729, -0.3757123351097107, -0.7073813080787659, 0.2334214448928833, 0.6374707221984863, 0.45202142000198364, -0.2082507163286209, 0.5359947681427002, -0.2282702773809433, 0.22132672369480133, 0.2812724709510803, 0.40384119749069214, -0.014462897554039955, -0.7219946384429932, -0.11562597006559372, 0.09645664691925049, -0.529491662979126, -0.7231420874595642, 0.4668239653110504, 0.10017404705286026, 0.47726142406463623, 0.48723912239074707, -0.32549551129341125, 0.7325718998908997, -0.2926797568798065, 0.5762723684310913, 0.5567836761474609, -0.7132778763771057, 0.48586589097976685, -0.3873807489871979, 0.243652805685997, 0.2982069253921509, 0.5007317066192627, -0.4222031235694885, -0.40655621886253357, -0.8828197121620178, -0.6613266468048096, 0.6387616991996765, 0.29443660378456116, 0.010958383791148663, 0.334232896566391, 0.6383453607559204, -0.2615395784378052, 0.13842982053756714, -0.7473676204681396, -0.5302906036376953, -0.21878987550735474, 0.06788565963506699, -0.0034872344695031643, 0.08796916902065277, -0.14083953201770782, -0.5260215401649475, 0.9474376440048218, -0.005644800141453743, 0.5690798163414001, 0.44271358847618103, 0.1089109256863594, -0.22787609696388245, -0.36188459396362305, 0.5158798098564148, 0.53265780210495, -0.12178230285644531, -0.2851667106151581, 0.04427007585763931, -0.44041308760643005, 0.2090211659669876, -0.04959772899746895, -0.36137932538986206, -0.04385441914200783, 0.26712581515312195, 0.7588710188865662, -0.15814109146595, -0.14980126917362213, 0.7766021490097046, 0.04615061730146408, -0.4970933198928833, -0.26293057203292847, 0.06410415470600128, 0.14305302500724792, 0.43830356001853943, 0.1171984076499939, 0.49980872869491577, 0.07587788254022598, -0.11802198737859726, 0.2556508779525757, 0.6319217085838318, -0.5245358943939209, -0.17883050441741943, 0.7435433268547058, -0.04302414879202843, -0.03949562460184097, 0.4241425693035126, -0.40578508377075195, -0.5699812173843384, 0.9547314047813416, 0.5510022044181824, 0.768170952796936, -0.0497039258480072, 0.29830634593963623, 0.7729832530021667, 0.1483994424343109, 0.02296999655663967, 0.18777208030223846, 0.15458756685256958, -0.691938042640686, -0.37618139386177063, -0.4177290201187134, -0.05496612563729286, 0.1457636058330536, -0.34500253200531006, 0.4065144956111908, -0.7140148282051086, -0.18408669531345367, -0.12863822281360626, 0.06845362484455109, -0.7023895978927612, 0.422801673412323, 0.015619901940226555, 1.1472872495651245, -0.8549168109893799, 0.7646017074584961, 0.5166983604431152, -0.46728071570396423, -0.8648920655250549, -0.08460589498281479, -0.010766803286969662, -0.7866711616516113, 0.6570398807525635, 0.10707983374595642, -0.06044723093509674, 0.08855585008859634, -0.892648458480835, -0.6668443083763123, 1.270863652229309, 0.38069605827331543, -0.15173985064029694, 0.22920311987400055, -0.4290839731693268, 0.44821569323539734, -0.4117215573787689, 0.46054336428642273, 0.3689589202404022, 0.526214599609375, 0.43846070766448975, -0.7096697092056274, 0.220085009932518, -0.48310384154319763, 0.12474847584962845, 0.15680132806301117, -0.9981323480606079, 0.9062594175338745, 0.013943474739789963, -0.21008455753326416, 0.22594337165355682, 0.7286853790283203, 0.2685244083404541, 0.14531968533992767, 0.5827630162239075, 0.9141302108764648, 0.3496262729167938, -0.1164015531539917, 1.0266767740249634, -0.017894813790917397, 0.3530675768852234, 0.5645472407341003, 0.3433452844619751, 0.44242873787879944, 0.3754221200942993, -0.1540263593196869, 0.5609735250473022, 0.8451130390167236, 0.036956723779439926, 0.5115103125572205, 0.4739688038825989, -0.30590730905532837, -0.04417536035180092, 0.004023665562272072, -0.3831968605518341, 0.05145993083715439, 0.2353912740945816, -0.26769474148750305, -0.23593950271606445, 0.2343844771385193, 0.3230215907096863, -0.19587168097496033, -0.38173532485961914, 0.6250964999198914, -0.0942348912358284, -0.4884614050388336, 0.7825638055801392, -0.09266357123851776, 1.145863652229309, -0.6761884689331055, 0.00004686052488978021, -0.26969343423843384, 0.08648713678121567, -0.41713839769363403, -0.8650248050689697, 0.20381374657154083, -0.2261522263288498, 0.21282249689102173, -0.3772909641265869, 0.6525947451591492, -0.39895468950271606, -0.4984487295150757, 0.4560479521751404, 0.060220591723918915, 0.448506236076355, 0.18650415539741516, -1.0791078805923462, 0.13785505294799805, 0.0830674022436142, -0.5075713396072388, 0.31232163310050964, 0.348663330078125, 0.20815615355968475, 0.6635276079177856, 0.3717747926712036, 0.34846314787864685, 0.3275719881057739, -0.2646752893924713, 1.0035936832427979, -0.20200927555561066, -0.2665998041629791, -0.6464179754257202, 0.8026756644248962, -0.29358500242233276, -0.4969272315502167, 0.6039039492607117, 0.36499378085136414, 0.7621595859527588, -0.10744111239910126, 0.653070867061615, -0.4106422960758209, 0.15634791553020477, -0.6317340731620789, 0.8582795262336731, -0.924241840839386, -0.3425741493701935, -0.352268248796463, -0.7151336669921875, -0.28262925148010254, 0.8141121864318848, -0.02876521833240986, 0.26698559522628784, 0.5165280699729919, 1.080348014831543, -0.2506348490715027, -0.5763663053512573, 0.03477942943572998, 0.04668894037604332, 0.3286969065666199, 0.6709840893745422, 0.6054477691650391, -0.6815898418426514, 0.23604246973991394, -0.6050060987472534, -0.48029088973999023, -0.067347951233387, -0.9606821537017822, -0.7714836597442627, -0.7565581202507019, -0.6904287934303284, -0.7431601881980896, -0.28795740008354187, 0.6465355753898621, 1.133384108543396, -0.6457776427268982, -0.18439307808876038, -0.31889837980270386, 0.05008033290505409, -0.22159014642238617, -0.2042631208896637, 0.40019479393959045, -0.0901729017496109, -0.9390946626663208, 0.030802046880126, 0.268110066652298, 0.48502790927886963, -0.07669878005981445, -0.4077266454696655, -0.33564841747283936, -0.22207392752170563, 0.21771158277988434, 0.42180633544921875, -0.40062057971954346, -0.14445069432258606, -0.34659090638160706, -0.2534825801849365, 0.18585439026355743, 0.48753684759140015, -0.5102015733718872, 0.31628262996673584, 0.5903216600418091, 0.38525646924972534, 0.8798209428787231, -0.23224496841430664, 0.08208705484867096, -0.5974591970443726, 0.5496706962585449, 0.02766730822622776, 0.4164149761199951, 0.12562015652656555, -0.3469386696815491, 0.46137872338294983, 0.3226631283760071, -0.7764008641242981, -0.43593987822532654, 0.13008639216423035, -1.3496602773666382, -0.08332463353872299, 0.9404418468475342, -0.3121064305305481, -0.35691478848457336, 0.16746027767658234, -0.37586939334869385, 0.32843267917633057, -0.32982224225997925, 0.2868783175945282, 0.3830094337463379, -0.17706893384456635, -0.3564552664756775, -0.39478278160095215, 0.650047242641449, 0.2723240852355957, -0.7785690426826477, -0.513938844203949, 0.45748263597488403, 0.421461820602417, 0.33942222595214844, 0.9210411310195923, -0.1767444759607315, 0.15641862154006958, -0.07880687713623047, 0.22498607635498047, 0.060152824968099594, -0.058743737637996674, -0.5333124995231628, -0.10391690582036972, -0.3006778061389923, -0.38123956322669983 ]
FFusion/FFXL400
FFusion
"2023-09-13T21:57:32Z"
18,404
10
diffusers
[ "diffusers", "safetensors", "stable-diffusion-xl", "stable-diffusion-xl-diffusers", "stable-diffusion", "text-to-image", "ffai", "en", "base_model:FFusion/FFusionXL-BASE", "doi:10.57967/hf/1095", "license:openrail++", "endpoints_compatible", "has_space", "diffusers:StableDiffusionXLPipeline", "region:us" ]
text-to-image
"2023-09-08T14:22:11Z"
--- license: openrail++ base_model: FFusion/FFusionXL-BASE tags: - stable-diffusion-xl - stable-diffusion-xl-diffusers - stable-diffusion - text-to-image - diffusers - ffai inference: true widget: - text: >- a dog in colorful exploding clouds, dreamlike surrealism colorful smoke and fire coming out of it, explosion of data fragments, exploding background,realistic explosion, 3d digital art example_title: Dogo FFusion - text: >- a sprinkled donut sitting on top of a table, colorful hyperrealism, everything is made of candy, hyperrealistic digital painting, covered in sprinkles and crumbs, vibrant colors hyper realism,colorful smoke explosion background example_title: Donut FFusion - text: >- a cup of coffee with a tree in it, surreal art, awesome great composition, surrealism, ice cubes in tree, colorful clouds, perfectly realistic yet surreal example_title: CoFFee FFusion - text: >- brightly colored headphones with a splash of colorful paint splash, vibing to music, stunning artwork, music is life, beautiful digital artwork, concept art, cinematic, dramatic, intricate details, dark lighting example_title: Headset FFusion - text: >- high-quality game character digital design, Unreal Engine, Water color painting, Mecha- Monstrous high quality game fantasy rpg character design, dark rainbow Fur Scarf, inside of a Superficial Outhouse, at Twilight, Overdetailed art example_title: Digital Fusion language: - en thumbnail: >- https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image7sm.jpg --- # FFXL400 Combined LoRA Model 🚀 Welcome to the FFXL400 combined LoRA model repository on Hugging Face! This model is a culmination of extensive research, bringing together the finest LoRAs from the [400GB-LoraXL repository](https://huggingface.co/FFusion/400GB-LoraXL). Our vision was to harness the power of multiple LoRAs, meticulously analyzing and integrating a select fraction of the blocks from each. ## 📦 Model Highlights - **Innovative Combination**: This model is a strategic integration of LoRAs, maximizing the potential of each while creating a unified powerhouse. - **Versatility**: The model is available in various formats including diffusers, safetensors (both fp 16 and 32), and an optimized ONNIX FP16 version for DirectML, ensuring compatibility across AMD, Intel, Nvidia, and more. - **Advanced Research**: Leveraging the latest in machine learning research, the model represents a state-of-the-art amalgamation of LoRAs, optimized for performance and accuracy. ## 🔍 Technical Insights This model is a testament to the advancements in the field of AI and machine learning. It was crafted with precision, ensuring that: - Only a small percentage of the blocks from the original LoRAs (UNet and text encoders) were utilized. - The model is primed not just for inference but also for further training and refinement. - It serves as a benchmark for testing and understanding the cumulative impact of multiple LoRAs when used in concert. ## 🎨 Usage The FFXL400 model is designed for a multitude of applications. Whether you're delving into research, embarking on a new project, or simply experimenting, this model serves as a robust foundation. Use it to: - Investigate the cumulative effects of merging multiple LoRAs. - Dive deep into weighting experiments with multiple LoRAs. - Explore the nuances and intricacies of integrated LoRAs. ## ⚠️ License & Usage Disclaimers **Please review the full [license agreement](https://huggingface.co/FFusion/FFXL400/blob/main/LICENSE.md) before accessing or using the models.** 🔴 The models and weights available in this repository are **strictly for research and testing purposes**, with exceptions noted below. They are **not** generally intended for commercial use and are dependent on each individual LORA. 🔵 **Exception for Commercial Use:** The [FFusionXL-BASE](https://huggingface.co/FFusion/FFusionXL-BASE), [FFusion-BaSE](https://huggingface.co/FFusion/FFusion-BaSE), [di.FFUSION.ai-v2.1-768-BaSE-alpha](https://huggingface.co/FFusion/di.FFUSION.ai-v2.1-768-BaSE-alpha), and [di.ffusion.ai.Beta512](https://huggingface.co/FFusion/di.ffusion.ai.Beta512) models are trained by FFusion AI using images for which we hold licenses. Users are advised to primarily use these models for a safer experience. These particular models are allowed for commercial use. 🔴 **Disclaimer:** FFusion AI, in conjunction with Source Code Bulgaria Ltd and BlackswanTechnologies, **does not endorse or guarantee the content produced by the weights in each LORA**. There's potential for generating NSFW or offensive content. Collectively, we expressly disclaim responsibility for the outcomes and content produced by these weights. 🔴 **Acknowledgement:** The [FFusionXL-BASE](https://huggingface.co/FFusion/FFusionXL-BASE) model model is a uniquely developed version by FFusion AI. Rights to this and associated modifications belong to FFusion AI and Source Code Bulgaria Ltd. Ensure adherence to both this license and any conditions set by Stability AI Ltd for referenced models. ## 📈 How to Use The model can be easily integrated into your projects. Here's a quick guide on how to use the FFXL400 model: 1. **Loading the Model**: ```python from transformers import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("FFusion/FFXL400") model = AutoModel.from_pretrained("FFusion/FFXL400") ``` 2. **Performing Inference**: ```python input_text = "Your input here" inputs = tokenizer(input_text, return_tensors='pt') with torch.no_grad(): outputs = model(**inputs) ``` ## Further Training You can also use the FFXL400 as a starting point for further training. Simply load it into your training pipeline and proceed as you would with any other model. [Autotrain Advanced](https://github.com/huggingface/autotrain-advanced), [Kohya + Stable Diffusion XL](https://huggingface.co/docs/diffusers/main/en/training/lora#stable-diffusion-xl), ## 📚 Background The FFXL400 is built upon the insights and data from the [400GB-LoraXL repository](https://huggingface.co/FFusion/400GB-LoraXL). Each LoRA in that collection was extracted using the Low-Rank Adaptation (LoRA) technique, providing a rich dataset for research and exploration. The FFXL400 is the pinnacle of that research, representing a harmonious blend of the best LoRAs. ## Library of Available LoRA Models 📚 ![loraXL FFUsion](https://cdn-uploads.huggingface.co/production/uploads/6380cf05f496d57325c12194/XQlnis5W2-fgDnGZ60EK9.jpeg) You can choose any of the models from our repository on Hugging Face or the upcoming repository on CivitAI. Here's a list of available models with `lora_model_id = "FFusion/400GB-LoraXL"`: ``` lora_filename = - FFai.0001.4Guofeng4xl_V1125d.lora_Dim64.safetensors - FFai.0002.4Guofeng4xl_V1125d.lora_Dim8.safetensors - FFai.0003.4Guofeng4xl_V1125d.loraa.safetensors - FFai.0004.Ambiencesdxl_A1.lora.safetensors - FFai.0005.Ambiencesdxl_A1.lora_8.safetensors - FFai.0006.Angrasdxl10_V22.lora.safetensors - FFai.0007.Animaginexl_V10.lora.safetensors - FFai.0008.Animeartdiffusionxl_Alpha3.lora.safetensors - FFai.0009.Astreapixiexlanime_V16.lora.safetensors - FFai.0010.Bluepencilxl_V010.lora.safetensors - FFai.0011.Bluepencilxl_V021.lora.safetensors - FFai.0012.Breakdomainxl_V03d.lora.safetensors - FFai.0013.Canvasxl_Bfloat16v002.lora.safetensors - FFai.0014.Cherrypickerxl_V20.lora.safetensors - FFai.0015.Copaxtimelessxlsdxl1_V44.lora.safetensors - FFai.0016.Counterfeitxl-Ffusionai-Alpha-Vae.lora.safetensors - FFai.0017.Counterfeitxl_V10.lora.safetensors - FFai.0018.Crystalclearxl_Ccxl.lora.safetensors - FFai.0019.Deepbluexl_V006.lora.safetensors - FFai.0020.Dream-Ffusion-Shaper.lora.safetensors - FFai.0021.Dreamshaperxl10_Alpha2xl10.lora.safetensors - FFai.0022.Duchaitenaiartsdxl_V10.lora.safetensors - FFai.0023.Dynavisionxlallinonestylized_Beta0371bakedvae.lora.safetensors - FFai.0024.Dynavisionxlallinonestylized_Beta0411bakedvae.lora.safetensors - FFai.0025.Fantasticcharacters_V55.lora.safetensors - FFai.0026.Fenrisxl_V55.lora.safetensors - FFai.0027.Fudukimix_V10.lora.safetensors - FFai.0028.Infinianimexl_V16.lora.safetensors - FFai.0029.Juggernautxl_Version1.lora_1.safetensors - FFai.0030.Lahmysterioussdxl_V330.lora.safetensors - FFai.0031.Mbbxlultimate_V10rc.lora.safetensors - FFai.0032.Miamodelsfwnsfwsdxl_V30.lora.safetensors - FFai.0033.Morphxl_V10.lora.safetensors - FFai.0034.Nightvisionxlphotorealisticportrait_Beta0681bakedvae.lora_1.safetensors - FFai.0035.Osorubeshialphaxl_Z.lora.safetensors - FFai.0036.Physiogenxl_V04.lora.safetensors - FFai.0037.Protovisionxlhighfidelity3d_Beta0520bakedvae.lora.safetensors - FFai.0038.Realitycheckxl_Alpha11.lora.safetensors - FFai.0039.Realmixxl_V10.lora.safetensors - FFai.0040.Reproductionsdxl_V31.lora.safetensors - FFai.0041.Rundiffusionxl_Beta.lora.safetensors - FFai.0042.Samaritan3dcartoon_V40sdxl.lora.safetensors - FFai.0043.Sdvn6realxl_Detailface.lora.safetensors - FFai.0044.Sdvn7realartxl_Beta2.lora.safetensors - FFai.0045.Sdxl10arienmixxlasian_V10.lora.safetensors - FFai.0046.Sdxlbasensfwfaces_Sdxlnsfwfaces03.lora.safetensors - FFai.0047.Sdxlfaetastic_V10.lora.safetensors - FFai.0048.Sdxlfixedvaefp16remove_Basefxiedvaev2fp16.lora.safetensors - FFai.0049.Sdxlnijiv4_Sdxlnijiv4.lora.safetensors - FFai.0050.Sdxlronghua_V11.lora.safetensors - FFai.0051.Sdxlunstablediffusers_V5unchainedslayer.lora.safetensors - FFai.0052.Sdxlyamersanimeultra_Yamersanimev2.lora.safetensors - FFai.0053.Shikianimexl_V10.lora.safetensors - FFai.0054.Spectrumblendx_V10.lora.safetensors - FFai.0055.Stablediffusionxl_V30.lora.safetensors - FFai.0056.Talmendoxlsdxl_V11beta.lora.safetensors - FFai.0057.Wizard_V10.lora.safetensors - FFai.0058.Wyvernmix15xl_Xlv11.lora.safetensors - FFai.0059.Xl13asmodeussfwnsfw_V17bakedvae.lora.safetensors - FFai.0060.Xl3experimentalsd10xl_V10.lora.safetensors - FFai.0061.Xl6hephaistossd10xlsfw_V21bakedvaefp16fix.lora.safetensors - FFai.0062.Xlperfectdesign_V2ultimateartwork.lora.safetensors - FFai.0063.Xlyamersrealistic_V3.lora.safetensors - FFai.0064.Xxmix9realisticsdxl_Testv20.lora.safetensors - FFai.0065.Zavychromaxl_B2.lora.safetensors ``` ## 🎉 Acknowledgements & Citations A huge shoutout to the community for their continued support and feedback. Together, we are pushing the boundaries of what's possible with machine learning! We would also like to acknowledge and give credit to the following projects and authors: - **ComfyUI**: We've used and modified portions of [ComfyUI](https://github.com/comfyanonymous/ComfyUI) for our work. - **kohya-ss/sd-scripts and bmaltais**: Our work also incorporates modifications from [kohya-ss/sd-scripts](https://github.com/kohya-ss/sd-scripts). - **lora-inspector**: We've benefited from the [lora-inspector](https://github.com/rockerBOO/lora-inspector) project. - **KohakuBlueleaf**: Special mention to KohakuBlueleaf for their invaluable contributions. [![400GB FFusion Lora XL 5](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image5sm.jpg)](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image5.jpg) [![400GB FFusion Lora XL 6](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image6sm.jpg)](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image6.jpg) [![400GB FFusion Lora XL 7](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image7sm.jpg)](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image7.jpg) [![400GB FFusion Lora XL 9](https://huggingface.co/FFusion/400GB-LoraXL/resolve/main/images/image9.jpg)](https://huggingface.co/FFusion/400GB-LoraXL/tree/main) ### HowMuch ??? ![60% Works](https://img.shields.io/badge/60%25%20of%20the%20Time-It%20Works%20Every%20Time-green) **Have you ever asked yourself, "How much space have I wasted on `*.ckpt` and `*.safetensors` checkpoints?"** 🤔 Say hello to HowMuch: Checking checkpoint wasted space since... well, now! 😄 Enjoy this somewhat unnecessary, yet **"fun-for-the-whole-family"** DiskSpaceAnalyzer tool. 😄 ## Overview `HowMuch` is a Python tool designed to scan your drives (or a specified directory) and report on the total space used by files with specific extensions, mainly `.ckpt` and `.safetensors`. It outputs: - The total storage capacity of each scanned drive or directory. - The space occupied by `.ckpt` and `.safetensors` files. - The free space available. - A neat bar chart visualizing the above data. ## Installation [GitHub](https://github.com/1e-2/HowMuch) ### From PyPI You can easily install `HowMuch` via pip: ```bash pip install howmuch ``` ### From Source 1. Clone the repository: ```bash git clone https://github.com/1e-2/HowMuch.git ``` 2. Navigate to the cloned directory and install: ```bash cd HowMuch pip install . ``` ## Usage Run the tool without any arguments to scan all drives: ```bash howmuch ``` Or, specify a particular directory or drive to scan: ```bash howmuch --scan C: ``` ### 🌐 **Contact Information** The **FFusion.ai** project is proudly maintained by **Source Code Bulgaria Ltd** & **Black Swan Technologies**. 📧 Reach us at [di@ffusion.ai](mailto:di@ffusion.ai) for any inquiries or support. #### 🌌 **Find us on:** - 🐙 [GitHub](https://github.com/1e-2) - 😊 [Hugging Face](https://huggingface.co/FFusion/) - 💡 [Civitai](https://civitai.com/user/idle/models) 🔐 **Security powered by** [Comodo.BG](http://Comodo.BG) & [Preasidium.CX](http://Preasidium.CX) 🚀 Marketing by [Гугъл.com](http://Гугъл.com) 📩 [![Email](https://img.shields.io/badge/Email-enquiries%40ffusion.ai-blue?style=for-the-badge&logo=gmail)](mailto:enquiries@ffusion.ai) 🌍 Sofia Istanbul London --- We hope the FFXL400 serves as a valuable asset in your AI journey. We encourage feedback, contributions, and insights from the community to further refine and enhance this model. Together, let's push the boundaries of what's possible! ![ffusionai-logo.png](https://cdn-uploads.huggingface.co/production/uploads/6380cf05f496d57325c12194/EjDa_uGcOoH2cXM2K-NYn.png)
[ -0.7064841389656067, -0.584868311882019, 0.19422373175621033, 0.30325552821159363, -0.172583669424057, -0.039005063474178314, 0.2645404040813446, -0.742598831653595, 0.5034600496292114, 0.4312979578971863, -0.8311425447463989, -0.4344675540924072, -0.58200603723526, 0.11243297904729843, -0.2938418686389923, 0.8219413757324219, -0.15705400705337524, -0.0507863312959671, 0.15789785981178284, -0.24259670078754425, -0.0927874743938446, -0.279779851436615, -0.5142870545387268, -0.4677887558937073, 0.6380249857902527, -0.03511975333094597, 0.7866490483283997, 0.5417023301124573, 0.381547749042511, 0.5034380555152893, -0.1851673573255539, -0.08515293896198273, -0.3664190471172333, -0.45813098549842834, 0.0418974831700325, -0.5160652995109558, -1.0112895965576172, -0.10861950367689133, 0.6119621396064758, 0.6442732214927673, -0.10425262153148651, 0.21219979226589203, 0.0635431706905365, 0.718656599521637, -0.44857215881347656, 0.08877156674861908, -0.08309885114431381, 0.44764307141304016, -0.10834599286317825, 0.21020694077014923, -0.08537761867046356, -0.6939443945884705, -0.019921615719795227, -0.8350086808204651, -0.15581966936588287, 0.24475210905075073, 1.0915672779083252, 0.28171250224113464, -0.1931517869234085, -0.11723308265209198, -0.44980496168136597, 0.8568657040596008, -0.9289688467979431, 0.31826072931289673, 0.20196983218193054, 0.2917133867740631, -0.012972011230885983, -0.6421579122543335, -0.6750796437263489, 0.3284818232059479, -0.07594897598028183, 0.16478800773620605, -0.6566130518913269, -0.3210896849632263, 0.47290006279945374, 0.3681744635105133, -0.4778243601322174, -0.06440796703100204, -0.5265650153160095, -0.07295167446136475, 0.7160998582839966, 0.10688815265893936, 0.5141743421554565, -0.12361151725053787, -0.7023284435272217, -0.2526806592941284, -0.5215156078338623, 0.28192827105522156, 0.29640573263168335, 0.09737525135278702, -0.4588901698589325, 0.5526745319366455, -0.28822922706604004, 0.5203171968460083, 0.4193038046360016, -0.35334715247154236, 0.7761582136154175, -0.3768165111541748, -0.5069883465766907, -0.10556408762931824, 1.0700546503067017, 0.3710584044456482, 0.13490234315395355, 0.09968461096286774, -0.11827009916305542, -0.11407998204231262, -0.017244618386030197, -0.9589532613754272, 0.09365919977426529, 0.39720988273620605, -0.4749709367752075, -0.5173611640930176, -0.03236275538802147, -0.9521479606628418, -0.15990762412548065, 0.0006004089955240488, 0.4606333374977112, -0.7123932242393494, -0.4656856954097748, 0.2603619694709778, -0.17622853815555573, 0.334623783826828, 0.35492783784866333, -0.7420176267623901, 0.25728869438171387, 0.3028353452682495, 0.6206958889961243, 0.06628287583589554, -0.2151629775762558, -0.10979162901639938, 0.1454123854637146, -0.23202596604824066, 0.8815079927444458, -0.20114843547344208, -0.5453923940658569, -0.2912063002586365, 0.291128933429718, -0.28978273272514343, -0.48585599660873413, 0.7182919383049011, -0.18695205450057983, 0.24757638573646545, -0.40137526392936707, -0.4953601062297821, -0.408419668674469, 0.09691038727760315, -0.7797741889953613, 0.9841494560241699, 0.3627887964248657, -0.8933606147766113, 0.15430206060409546, -0.767169713973999, -0.021555714309215546, -0.010755208320915699, -0.03588442876935005, -0.6456333994865417, -0.08875439316034317, 0.3019232749938965, 0.38887718319892883, -0.19832217693328857, -0.36639201641082764, -0.393074631690979, -0.3169317841529846, 0.39118537306785583, -0.010470127686858177, 1.2422822713851929, 0.29881903529167175, -0.584662675857544, 0.08391892910003662, -0.6074524521827698, 0.2805623412132263, 0.49789080023765564, -0.20622597634792328, 0.025891738012433052, -0.5110657811164856, 0.10399652272462845, 0.38193705677986145, 0.3177781403064728, -0.7047909498214722, 0.13967259228229523, -0.5019938945770264, 0.2558278739452362, 0.9291666746139526, 0.01834448054432869, 0.25638753175735474, -0.6894820928573608, 0.7028900384902954, 0.20111733675003052, 0.4526856243610382, 0.11683671921491623, -0.5429465174674988, -0.9431527853012085, -0.34884005784988403, 0.04964284971356392, 0.5780067443847656, -0.8440279364585876, 0.6000022292137146, 0.01521907839924097, -0.799116313457489, -0.3900126516819, 0.2557958662509918, 0.7631390690803528, 0.4015599489212036, 0.21865519881248474, -0.1390264928340912, -0.4415969252586365, -0.8373664021492004, -0.13505330681800842, 0.10641003400087357, 0.04870646074414253, 0.5013805031776428, 0.727738082408905, -0.41541028022766113, 0.7930252552032471, -0.7127800583839417, -0.4635850489139557, -0.22265158593654633, -0.17621316015720367, 0.37215033173561096, 0.5346565246582031, 1.1152490377426147, -0.8508993983268738, -0.5090065598487854, -0.1039816364645958, -1.1074103116989136, 0.18102189898490906, 0.20241008698940277, -0.39122745394706726, 0.34680044651031494, 0.30178073048591614, -0.681086003780365, 0.5606549382209778, 0.49909430742263794, -0.7138158082962036, 0.5066824555397034, -0.250564306974411, 0.12839023768901825, -1.0661276578903198, 0.41863271594047546, 0.039076872169971466, -0.21835842728614807, -0.6893777847290039, 0.13136155903339386, 0.09244001656770706, 0.03578394651412964, -0.8351951241493225, 0.8857249021530151, -0.42474564909935, 0.005476599559187889, 0.0018064030446112156, 0.046251073479652405, 0.028468331322073936, 0.812195360660553, -0.04584003612399101, 0.6102985739707947, 0.56572026014328, -0.2914343774318695, 0.5905448794364929, 0.4582424759864807, -0.45133450627326965, 0.8029703497886658, -0.7932867407798767, -0.03864769637584686, -0.09974031895399094, 0.31027770042419434, -0.8140180706977844, -0.39878949522972107, 0.4721194803714752, -0.5187876224517822, 0.12154413014650345, 0.08986601233482361, -0.3407799005508423, -0.7439354062080383, -0.46523168683052063, 0.4318283796310425, 0.7813540697097778, -0.5455535054206848, 0.6536039113998413, 0.39891964197158813, -0.010749448090791702, -0.6673711538314819, -0.6765275001525879, -0.32092928886413574, -0.4991912543773651, -0.7349228262901306, 0.2731989920139313, -0.47959762811660767, -0.2619730234146118, -0.0290576983243227, 0.11323892325162888, -0.05003904923796654, -0.11820261925458908, 0.5949907302856445, 0.47402581572532654, -0.30052146315574646, -0.5142030119895935, -0.10646665841341019, -0.2760198414325714, 0.006269892677664757, 0.035579752177000046, 0.5964792966842651, -0.41717207431793213, -0.3333652913570404, -0.7533162236213684, 0.39464160799980164, 0.6454272866249084, -0.03600873425602913, 0.6822713613510132, 0.7200545072555542, -0.6309642791748047, -0.0017104116268455982, -0.46034201979637146, -0.024059602990746498, -0.5852409601211548, 0.03391486033797264, -0.4383143484592438, -0.5999109148979187, 0.7315058708190918, 0.11331093311309814, -0.01598670333623886, 0.5605398416519165, 0.38101261854171753, -0.07665959000587463, 1.1385095119476318, 0.6917989253997803, -0.10443095862865448, 0.3580682575702667, -0.6875677108764648, 0.06326890736818314, -1.0085476636886597, -0.4252820611000061, -0.16847068071365356, -0.3988048732280731, -0.28888648748397827, -0.6009007096290588, 0.48048198223114014, 0.18893927335739136, -0.4919418692588806, 0.5937928557395935, -0.5223838090896606, 0.4405076205730438, 0.29862698912620544, 0.3000904321670532, 0.1805654913187027, -0.016553254798054695, -0.07458499819040298, 0.11676905304193497, -0.3513081669807434, -0.1520129144191742, 0.8919381499290466, 0.5210743546485901, 0.677618682384491, 0.2924902141094208, 0.7496002316474915, 0.10756801813840866, 0.20273755490779877, -0.4491175711154938, 0.7399003505706787, -0.12872309982776642, -0.7930249571800232, -0.250153124332428, -0.3527732789516449, -0.8774498701095581, 0.160926952958107, -0.33032843470573425, -0.902212381362915, 0.5420421361923218, 0.04099851846694946, -0.8062349557876587, 0.4785008430480957, -0.40579459071159363, 0.8094800114631653, -0.26527708768844604, -0.488217294216156, 0.1971723586320877, -0.5993765592575073, 0.4949146807193756, -0.046492088586091995, 0.28920426964759827, -0.273283988237381, -0.09277713298797607, 0.787453830242157, -0.7334175109863281, 0.8005094528198242, -0.33810651302337646, -0.35530781745910645, 0.353486031293869, -0.2773337960243225, 0.48543745279312134, -0.09890714287757874, -0.07672842592000961, 0.2837294042110443, 0.09048517793416977, -0.5001294016838074, -0.36460980772972107, 0.8715331554412842, -0.9878672957420349, -0.2735576927661896, -0.6066396236419678, -0.32726362347602844, -0.004213886335492134, 0.4020724892616272, 0.6667619347572327, 0.4439243972301483, -0.15153005719184875, 0.023094644770026207, 0.8314015865325928, -0.36348196864128113, 0.5808014273643494, 0.26050078868865967, -0.5506946444511414, -0.6436265110969543, 1.0017694234848022, 0.12174100428819656, 0.32093167304992676, 0.15540482103824615, 0.10894463211297989, -0.281035453081131, -0.16066917777061462, -0.48946645855903625, 0.6188241243362427, -0.6441561579704285, -0.3378353416919708, -0.5748199224472046, -0.37683847546577454, -0.5126922726631165, -0.4448016583919525, -0.45068785548210144, -0.37577763199806213, -0.3427746593952179, 0.07122641056776047, 0.6433253288269043, 0.6524211168289185, -0.13409726321697235, 0.1350494623184204, -0.5669350624084473, 0.4159452021121979, 0.3114897608757019, 0.34330251812934875, -0.16755157709121704, -0.4986811876296997, 0.09655532240867615, 0.1648494154214859, -0.13041168451309204, -0.6660801768302917, 0.7059748768806458, 0.09595886617898941, 0.3841799199581146, 0.5785056352615356, 0.020921295508742332, 0.7765517830848694, -0.310480535030365, 0.6020686030387878, 0.545009970664978, -0.8484858274459839, 0.41246071457862854, -0.6311212182044983, 0.3682267665863037, 0.313323438167572, 0.43174779415130615, -0.2898534834384918, -0.16308607161045074, -0.7054100632667542, -0.7367182970046997, 0.745518684387207, 0.30460870265960693, 0.022866476327180862, 0.3146129250526428, 0.3269146978855133, -0.08683261275291443, 0.023573098704218864, -0.9583686590194702, -0.6542124152183533, -0.2498662918806076, -0.16616575419902802, 0.19622951745986938, -0.03482742980122566, -0.26517337560653687, -0.43770721554756165, 0.8107743859291077, -0.1752064973115921, 0.6019240617752075, 0.12750373780727386, 0.13863275945186615, -0.28343328833580017, -0.006553905550390482, 0.6641185283660889, 0.39102116227149963, -0.40145763754844666, -0.32131537795066833, 0.3130439221858978, -0.5895048975944519, 0.044052526354789734, 0.23534074425697327, -0.17229028046131134, -0.12709221243858337, 0.23478761315345764, 0.8591213822364807, 0.4885937571525574, -0.6802153587341309, 0.5458488464355469, -0.2014874517917633, -0.2561050355434418, -0.7003385424613953, 0.40193411707878113, 0.34577998518943787, 0.48815712332725525, 0.40650826692581177, 0.28935083746910095, 0.04661000147461891, -0.7536778450012207, 0.18489210307598114, 0.4751902222633362, -0.33835843205451965, -0.18586716055870056, 0.9805731773376465, 0.09851032495498657, -0.20904232561588287, 0.29978224635124207, -0.08857529610395432, -0.42886561155319214, 0.8852639198303223, 0.4676395356655121, 0.751629650592804, -0.6035948991775513, 0.052514754235744476, 0.6858175992965698, -0.08300666511058807, -0.00937302503734827, 0.43672657012939453, 0.2400422990322113, -0.5400094985961914, 0.03512170538306236, -0.9714944362640381, -0.2662762701511383, 0.030513513833284378, -0.7863907814025879, 0.38909783959388733, -0.6579069495201111, -0.19091647863388062, 0.2349041998386383, 0.16908861696720123, -0.5771805047988892, 0.3288264572620392, 0.3140634596347809, 1.0711400508880615, -0.7790276408195496, 1.1038752794265747, 0.38284599781036377, -0.6158259510993958, -0.7862082719802856, -0.21654678881168365, 0.27615979313850403, -1.1140044927597046, 0.6056361794471741, 0.12917430698871613, -0.1890285313129425, 0.0010893573053181171, -0.6648417711257935, -1.0861271619796753, 1.506019115447998, 0.20202460885047913, -0.41457316279411316, -0.2590104937553406, 0.31451115012168884, 0.392529159784317, -0.303266316652298, 0.29457882046699524, 0.49196481704711914, 0.4857059717178345, 0.38469579815864563, -0.9960314035415649, 0.2890119254589081, -0.7349739670753479, -0.13979730010032654, 0.07168787717819214, -0.9865483045578003, 1.2671759128570557, -0.4607895016670227, -0.04543188214302063, 0.44258996844291687, 0.7206721901893616, 0.5193547606468201, 0.15455102920532227, 0.6462764739990234, 0.6502094268798828, 0.5331752300262451, -0.11474308371543884, 1.0516753196716309, -0.2176816314458847, 0.3737243413925171, 0.7855698466300964, -0.19181261956691742, 0.8501101136207581, 0.15663376450538635, -0.43294745683670044, 0.4745894968509674, 0.5274450182914734, -0.13404186069965363, 0.28211307525634766, -0.06189343333244324, -0.3402705788612366, -0.11824316531419754, -0.005027331877499819, -0.6707659363746643, 0.3254637122154236, 0.3772806227207184, -0.3324992060661316, -0.0017966110026463866, 0.3253539502620697, 0.37249940633773804, -0.23455362021923065, -0.2199816256761551, 0.5795993208885193, 0.17116893827915192, -0.4590679407119751, 0.9507265090942383, -0.23059676587581635, 0.8687699437141418, -0.7139468789100647, 0.13486391305923462, -0.46477797627449036, 0.5352194905281067, -0.27934154868125916, -0.9312509298324585, 0.16834688186645508, -0.01367501076310873, -0.04247761145234108, -0.22264054417610168, 0.5217313766479492, -0.18982641398906708, -0.8998820185661316, 0.5415071845054626, 0.10561607778072357, 0.22276800870895386, 0.021875180304050446, -1.0821154117584229, 0.36352378129959106, 0.22295859456062317, -0.4918718636035919, 0.4583347737789154, 0.20751142501831055, 0.2104194611310959, 0.9411519765853882, 0.4991132318973541, -0.1297173649072647, 0.06727160513401031, -0.37265169620513916, 1.042176365852356, -0.8374796509742737, -0.2610463798046112, -0.5552823543548584, 0.6280295252799988, -0.14555788040161133, -0.36149361729621887, 0.9944245219230652, 0.6342797875404358, 0.5030642151832581, -0.15050970017910004, 0.7563274502754211, -0.273905485868454, 0.6127828359603882, -0.4594436287879944, 1.0607763528823853, -0.8895305395126343, -0.032912272959947586, -0.5951383113861084, -0.8346275091171265, -0.16791610419750214, 0.8157238364219666, 0.0005393276805989444, 0.21087409555912018, 0.42994728684425354, 0.6885309219360352, -0.04619517922401428, 0.05472525954246521, 0.2663526237010956, 0.3924266993999481, 0.13818562030792236, 1.0827603340148926, 0.4399041533470154, -0.9012782573699951, 0.40992921590805054, -0.7369885444641113, -0.2959459125995636, -0.3454330563545227, -0.7295434474945068, -0.9847262501716614, -0.6117388010025024, -0.5098996758460999, -0.40141522884368896, -0.2572520673274994, 0.7577751874923706, 0.8195475339889526, -0.7528184056282043, -0.2019382119178772, 0.2897477149963379, -0.04022602736949921, -0.04848718270659447, -0.2278747260570526, 0.44084876775741577, 0.41888678073883057, -1.0560442209243774, 0.27687016129493713, 0.05552733689546585, 0.4196837246417999, -0.3033384084701538, -0.21105286478996277, -0.28444594144821167, 0.34401991963386536, 0.5125337839126587, 0.6610897183418274, -0.7199043035507202, -0.20588073134422302, 0.07283415645360947, -0.12167207151651382, 0.10688433051109314, 0.1719904989004135, -0.7892389893531799, 0.06414538621902466, 0.37518030405044556, -0.03995485603809357, 0.5314317345619202, 0.03347640857100487, 0.22056891024112701, -0.35168787837028503, 0.36649641394615173, -0.08649356663227081, 0.6238824725151062, 0.14687107503414154, -0.4400247037410736, 0.7174934148788452, 0.24279041588306427, -0.5033271908760071, -0.9900051951408386, -0.036454860121011734, -1.3842194080352783, -0.3192279636859894, 1.0901557207107544, -0.21581102907657623, -0.5919956564903259, 0.2765052020549774, -0.34715142846107483, -0.01210788730531931, -0.2232888787984848, 0.2940824627876282, 0.3026726543903351, -0.47857996821403503, -0.2814042568206787, -0.7316350936889648, 0.575609028339386, 0.2548522651195526, -1.0848000049591064, -0.05864058807492256, 0.2583891451358795, 0.5123748183250427, 0.7126346826553345, 0.6154777407646179, -0.2506318986415863, 0.19465860724449158, 0.09063733369112015, 0.15245342254638672, 0.07638753950595856, 0.11820635199546814, -0.22920019924640656, 0.044277533888816833, -0.3564595580101013, -0.047987110912799835 ]
Habana/t5
Habana
"2023-09-08T13:39:25Z"
18,395
0
null
[ "optimum_habana", "license:apache-2.0", "region:us" ]
null
"2022-06-04T15:43:41Z"
--- license: apache-2.0 --- [Optimum Habana](https://github.com/huggingface/optimum-habana) is the interface between the Hugging Face Transformers and Diffusers libraries and Habana's Gaudi processor (HPU). It provides a set of tools enabling easy and fast model loading, training and inference on single- and multi-HPU settings for different downstream tasks. Learn more about how to take advantage of the power of Habana HPUs to train and deploy Transformers and Diffusers models at [hf.co/hardware/habana](https://huggingface.co/hardware/habana). ## T5 model HPU configuration This model only contains the `GaudiConfig` file for running the [T5](https://huggingface.co/t5-base) model on Habana's Gaudi processors (HPU). **This model contains no model weights, only a GaudiConfig.** This enables to specify: - `use_fused_adam`: whether to use Habana's custom AdamW implementation - `use_fused_clip_norm`: whether to use Habana's fused gradient norm clipping operator ## Usage The model is instantiated the same way as in the Transformers library. The only difference is that there are a few new training arguments specific to HPUs. [Here](https://github.com/huggingface/optimum-habana/blob/main/examples/summarization/run_summarization.py) is a summarization example script to fine-tune a model. You can run it with T5-small with the following command: ```bash python run_summarization.py \ --model_name_or_path t5-small \ --do_train \ --do_eval \ --dataset_name cnn_dailymail \ --dataset_config "3.0.0" \ --source_prefix "summarize: " \ --output_dir /tmp/tst-summarization \ --per_device_train_batch_size 4 \ --per_device_eval_batch_size 4 \ --overwrite_output_dir \ --predict_with_generate \ --use_habana \ --use_lazy_mode \ --gaudi_config_name Habana/t5 \ --ignore_pad_token_for_loss False \ --pad_to_max_length \ --save_strategy epoch \ --throughput_warmup_steps 3 ``` Check the [documentation](https://huggingface.co/docs/optimum/habana/index) out for more advanced usage and examples.
[ -0.7808635830879211, -0.7627220153808594, 0.28050434589385986, 0.21698355674743652, -0.2886224687099457, -0.05337259918451309, -0.031244775280356407, -0.4148861765861511, 0.3108419179916382, 0.28271132707595825, -0.5189875960350037, -0.11934982240200043, -0.391274094581604, -0.15693941712379456, -0.349290668964386, 1.171522855758667, -0.03832394629716873, -0.32287395000457764, -0.2521487772464752, -0.23438769578933716, -0.41712629795074463, -0.3702039420604706, -0.9180317521095276, -0.40829116106033325, 0.2688465416431427, 0.19511520862579346, 0.9068034887313843, 0.48498043417930603, 0.5350645780563354, 0.38912636041641235, -0.32207515835762024, 0.10288754850625992, -0.465656042098999, -0.19340373575687408, 0.11304301023483276, -0.3672139048576355, -0.5999100208282471, 0.08193440735340118, 0.6073017716407776, 0.23295864462852478, -0.20795093476772308, 0.4871539771556854, 0.019384579733014107, 0.5697503685951233, -0.7033455967903137, -0.2496495395898819, -0.10368940234184265, 0.22139345109462738, -0.15897901356220245, -0.26833853125572205, -0.0903879851102829, -0.3469659090042114, 0.034992191940546036, -0.54273921251297, 0.30037713050842285, 0.16683132946491241, 1.4257279634475708, 0.8827085494995117, -0.4731859266757965, 0.27349233627319336, -0.7498359680175781, 0.8290305137634277, -0.5229654312133789, 0.1901877522468567, 0.25978660583496094, 0.6077403426170349, -0.09638750553131104, -0.8546597957611084, -0.30431926250457764, 0.11992134898900986, -0.11601193994283676, 0.3239198625087738, -0.49302637577056885, 0.31712111830711365, 0.4487150013446808, 0.7902932167053223, -0.31382185220718384, -0.05724141001701355, -0.565987229347229, -0.18656973540782928, 0.462779700756073, 0.1378518044948578, 0.08057686686515808, -0.34838584065437317, -0.4579496681690216, -0.04535479471087456, -0.34360119700431824, -0.014468316920101643, 0.333537220954895, -0.19260045886039734, -0.5276044011116028, 0.2748747766017914, -0.005863201804459095, 0.8012523055076599, 0.14086109399795532, -0.21080633997917175, 0.5478999018669128, -0.08595437556505203, -0.6529946327209473, -0.1892925649881363, 0.6872112154960632, 0.2186928242444992, 0.057596512138843536, 0.08273971825838089, -0.3185383379459381, 0.02713790163397789, 0.739612877368927, -0.8420411348342896, -0.3082917630672455, 0.5296880602836609, -0.666197657585144, -0.7471978664398193, -0.37510403990745544, -0.8042962551116943, 0.07845985889434814, -0.1844337433576584, 0.7669050097465515, -0.2320890575647354, -0.10639317333698273, -0.10020124912261963, -0.4504660964012146, 0.2627520263195038, 0.3067494332790375, -0.8608815670013428, 0.41782236099243164, 0.4234166443347931, 1.0418541431427002, -0.1432565599679947, -0.21558339893817902, -0.37897124886512756, -0.0043064896017313, -0.09717053174972534, 0.6353713870048523, -0.06338363885879517, -0.3772464990615845, -0.09768840670585632, 0.06929747015237808, -0.10977565497159958, -0.5490379929542542, 0.9333522915840149, -0.3061636686325073, 0.49921873211860657, 0.18452298641204834, -0.42379721999168396, -0.40553104877471924, -0.05985744670033455, -0.653063178062439, 1.3247593641281128, 0.395662784576416, -0.7828918099403381, 0.15758967399597168, -0.7419055104255676, -0.5249862670898438, -0.2079668641090393, 0.10915354639291763, -0.8426186442375183, 0.21362125873565674, 0.08163990825414658, 0.44289714097976685, -0.2139447182416916, 0.12247565388679504, -0.26959148049354553, -0.3634038269519806, -0.12646998465061188, -0.1718997061252594, 1.1839967966079712, 0.3970085084438324, -0.263176292181015, 0.5360750555992126, -0.771334171295166, -0.2594512104988098, 0.18228715658187866, -0.43666982650756836, -0.12686587870121002, -0.3252667784690857, 0.15118402242660522, 0.06118118390440941, 0.20951226353645325, -0.40722188353538513, 0.047688040882349014, 0.030976207926869392, 0.701246976852417, 0.8078208565711975, 0.033343326300382614, 0.3058774471282959, -0.6829515695571899, 0.6453509330749512, -0.3498680293560028, 0.7940170764923096, 0.04934309050440788, -0.6571024656295776, -1.0251295566558838, -0.47750189900398254, -0.04435530677437782, 0.38469618558883667, -0.24589203298091888, 0.42107081413269043, 0.12048481404781342, -0.6080018877983093, -0.7607477307319641, -0.07406675815582275, 0.17017701268196106, 0.8088743090629578, 0.4668208360671997, -0.11152287572622299, -0.8112842440605164, -1.0618869066238403, 0.08977577835321426, 0.08279247581958771, -0.05473889410495758, 0.5037481188774109, 0.5585651397705078, -0.21578577160835266, 0.7237879037857056, -0.5335837006568909, -0.4781785309314728, -0.1091458722949028, -0.03789275512099266, 0.701680064201355, 0.4422796666622162, 0.7665489912033081, -0.8402756452560425, -0.3934566378593445, -0.23629292845726013, -0.8234817385673523, -0.0005284482031129301, -0.09022942930459976, -0.5663238763809204, 0.17115169763565063, 0.2793596386909485, -0.7536436319351196, 0.38849467039108276, 0.721139132976532, -0.20862765610218048, 0.6569491028785706, -0.3746134042739868, -0.017799783498048782, -1.217470407485962, 0.3549483120441437, -0.09108011424541473, -0.569856584072113, -0.5773828625679016, 0.1532539576292038, 0.009206968359649181, -0.028977887704968452, -0.4997214674949646, 0.5553509593009949, -0.2725760340690613, -0.032160673290491104, -0.23923569917678833, -0.32544296979904175, 0.18105702102184296, 0.6623889207839966, -0.21940848231315613, 0.8265519738197327, 0.4693092703819275, -0.7086106538772583, 0.33965402841567993, 0.461160272359848, -0.2688298523426056, 0.3813112676143646, -1.0104384422302246, 0.05762413516640663, -0.045430514961481094, 0.18096327781677246, -0.6837994456291199, -0.49062037467956543, 0.0831807553768158, -0.5253262519836426, 0.3145935535430908, -0.1473793238401413, -0.05035719275474548, -0.5142892599105835, -0.3561197817325592, 0.2454240322113037, 1.0991392135620117, -0.90498286485672, 0.9089645743370056, 0.8240022659301758, 0.26574042439460754, -0.6603398323059082, -0.5880367755889893, -0.1289949268102646, -0.6758328676223755, -0.730926513671875, 0.7451457381248474, -0.038746513426303864, -0.035049617290496826, -0.030445042997598648, 0.017877859994769096, -0.011392447166144848, 0.25046059489250183, 0.36627206206321716, 0.49830836057662964, 0.1877245157957077, -0.19481882452964783, 0.06712238490581512, -0.17364132404327393, 0.11813468486070633, -0.214114710688591, 0.6032395958900452, -0.2624790668487549, 0.23360170423984528, -0.3901291787624359, 0.037679288536310196, 0.5274360775947571, -0.09574677795171738, 0.6020006537437439, 0.990691065788269, -0.3927345275878906, -0.1817115843296051, -0.5954279899597168, -0.04030230641365051, -0.5666661262512207, -0.045546386390924454, -0.3699745535850525, -0.5343793034553528, 0.6501023769378662, 0.07103289663791656, 0.2217881828546524, 0.6201980710029602, 0.7727441191673279, -0.2627617120742798, 0.9442903399467468, 0.8300338983535767, -0.20314520597457886, 0.7102431058883667, -0.5839693546295166, -0.04831317067146301, -1.0765800476074219, -0.08060289919376373, -0.6283956170082092, -0.24463939666748047, -0.3494907021522522, -0.1769028902053833, 0.7785022854804993, 0.005059848539531231, -0.42935827374458313, 0.33930453658103943, -0.7524263858795166, 0.2895433008670807, 0.8198825716972351, 0.13306312263011932, 0.0834587886929512, 0.0007552471361123025, 0.02691340446472168, 0.4499032497406006, -0.7828999757766724, -0.20605486631393433, 0.861832320690155, 0.4248296022415161, 0.6890379190444946, 0.032205794006586075, 0.6678981781005859, 0.22379980981349945, -0.007008386310189962, -0.842312216758728, 0.32878759503364563, 0.0004616179794538766, -0.6198937892913818, -0.074387326836586, -0.3244485855102539, -0.841650128364563, 0.23615536093711853, -0.15604017674922943, -0.4940885305404663, 0.3480934202671051, 0.3571021556854248, -0.4899562895298004, 0.28379738330841064, -0.5240247249603271, 0.8878511786460876, 0.007824713364243507, -0.42534059286117554, -0.25656232237815857, -0.5808687210083008, 0.3329062759876251, -0.023008249700069427, 0.05750538036227226, -0.032762348651885986, 0.0437493696808815, 0.8965535759925842, -0.6306098699569702, 0.5856959819793701, -0.31891655921936035, 0.18465517461299896, 0.2308858335018158, -0.1795070469379425, 0.3401886820793152, -0.1775164157152176, -0.08070600777864456, 0.31000953912734985, -0.18199573457241058, -0.44474732875823975, -0.2591204345226288, 0.47368380427360535, -1.0766987800598145, -0.41160786151885986, -0.28858551383018494, -0.5257421731948853, 0.1416662484407425, 0.25472912192344666, 0.5946788191795349, 0.3372657895088196, -0.20045731961727142, 0.009591802023351192, 0.5656051635742188, -0.19916711747646332, 0.3821553885936737, -0.06987912952899933, -0.24933388829231262, -0.43690580129623413, 0.7084800601005554, -0.2842848598957062, 0.2753559947013855, 0.1365782916545868, 0.43688973784446716, -0.09614565223455429, -0.5092403888702393, -0.5037503838539124, 0.10846199840307236, -0.5682900547981262, -0.3035084903240204, -0.6890193223953247, -0.124017633497715, -0.29165521264076233, -0.30057981610298157, -0.39646562933921814, -0.4928238093852997, -0.16138656437397003, 0.06100667640566826, 0.5397088527679443, 0.2562757730484009, -0.2591407597064972, 0.5450038313865662, -0.6425312161445618, 0.5251375436782837, 0.12036734074354172, 0.02698744833469391, -0.02961895614862442, -0.7060503959655762, -0.4032819867134094, -0.1949460655450821, -0.3492933213710785, -0.7471340298652649, 0.4920870065689087, 0.4497518539428711, 0.5939929485321045, 0.41215381026268005, -0.06628719717264175, 0.6032721400260925, -0.2922091782093048, 0.61266028881073, -0.06301602721214294, -0.7584822773933411, 0.5988807678222656, -0.4606974422931671, 0.2844013571739197, 0.5197600722312927, 0.5544920563697815, -0.2957969009876251, -0.18118861317634583, -0.7815782427787781, -0.8878980875015259, 0.6977032423019409, 0.21757064759731293, -0.016532329842448235, 0.33973047137260437, 0.19080355763435364, -0.11094764620065689, 0.22555333375930786, -0.35938236117362976, -0.2060573697090149, -0.28107041120529175, 0.006134542636573315, 0.06864547729492188, -0.07718963921070099, -0.46247410774230957, -0.45723333954811096, 1.0468089580535889, -0.04091149568557739, 0.5263001918792725, 0.23867514729499817, -0.006385694723576307, -0.2622470557689667, -0.30947086215019226, 0.1293492317199707, 0.31948035955429077, -0.624387264251709, -0.2232922464609146, 0.14546319842338562, -0.4546450078487396, -0.11920623481273651, 0.01819443143904209, -0.4076908230781555, 0.09708139300346375, 0.14329513907432556, 1.0949691534042358, -0.010131260380148888, -0.3135528266429901, 0.3693110942840576, -0.2521456182003021, -0.1318434476852417, -0.6542654633522034, 0.28290504217147827, 0.0041996329091489315, 0.1569920927286148, 0.09559769183397293, 0.35861167311668396, 0.33816468715667725, -0.3524090647697449, -0.043835725635290146, 0.3472377061843872, -0.0096690459176898, -0.06784633547067642, 0.9645416736602783, 0.28167763352394104, -0.1982499361038208, 0.8530535101890564, 0.08273342996835709, -0.51582270860672, 0.7894391417503357, 0.302819162607193, 1.0761334896087646, -0.24937906861305237, 0.08601948618888855, 0.5439373850822449, 0.13700330257415771, 0.1501869410276413, 0.355653315782547, -0.2451505810022354, -0.677726686000824, -0.30540934205055237, -0.9834696054458618, -0.5745306015014648, -0.03206104412674904, -0.866810142993927, 0.5840316414833069, -0.47118568420410156, -0.3627353310585022, 0.32845014333724976, -0.1271420270204544, -0.7376426458358765, 0.10566382110118866, -0.05615171790122986, 1.0766545534133911, -0.7988443970680237, 0.8722826242446899, 0.754365086555481, -0.3961598873138428, -0.7477909326553345, -0.44178318977355957, 0.10016611218452454, -0.7392084002494812, 0.052937597036361694, 0.10282658040523529, -0.032375726848840714, -0.050112832337617874, -0.3811497986316681, -0.751634418964386, 1.0625286102294922, 0.2687939703464508, -0.1383771300315857, -0.09048998355865479, -0.28274106979370117, 0.40476489067077637, -0.23281122744083405, 0.38393348455429077, 0.8937111496925354, 0.5694654583930969, 0.11648748070001602, -0.9688298106193542, 0.12017010897397995, -0.5042542815208435, -0.20036259293556213, 0.3227335810661316, -0.9090198278427124, 1.089224934577942, -0.3041384816169739, 0.04901774600148201, 0.07531954348087311, 0.5280023217201233, 0.11705575883388519, 0.17895476520061493, 0.5751895904541016, 0.8243733048439026, 0.8758814334869385, -0.13801467418670654, 1.40068781375885, -0.3870820701122284, 0.5963809490203857, 0.7337579727172852, 0.2643062472343445, 0.5353139042854309, 0.42309340834617615, -0.31481143832206726, 0.3565254211425781, 0.9000096917152405, -0.35529229044914246, 0.5663619637489319, -0.14543001353740692, -0.2604838013648987, -0.07214916497468948, -0.13727308809757233, -0.3073965013027191, 0.4277278184890747, 0.22702927887439728, -0.3723396360874176, -0.05252807214856148, 0.042431123554706573, 0.30787643790245056, -0.5674908757209778, -0.18260221183300018, 0.6743132472038269, 0.10132851451635361, -0.7734074592590332, 1.1005491018295288, -0.03642190992832184, 0.8469236493110657, -0.6390045881271362, 0.19806887209415436, -0.28966376185417175, 0.35826388001441956, -0.5544325113296509, -0.35478633642196655, 0.5804393291473389, -0.08894319832324982, -0.050201110541820526, 0.07111670821905136, 0.8548040986061096, -0.10519953072071075, -0.22093553841114044, 0.23345977067947388, 0.1592731475830078, 0.39719077944755554, 0.09209533035755157, -0.7075743079185486, 0.23488277196884155, 0.17052526772022247, -0.5226039886474609, 0.22901298105716705, -0.22938165068626404, 0.12937092781066895, 0.6113290786743164, 0.6205429434776306, 0.04911341890692711, -0.029823588207364082, 0.1027984470129013, 0.8741444945335388, -0.4128718078136444, -0.6969109177589417, -0.5545886158943176, 0.49081748723983765, -0.3040475845336914, -0.5646320581436157, 0.7283947467803955, 0.541094958782196, 0.7431828379631042, -0.12225762009620667, 0.8308648467063904, -0.2620302736759186, 0.2123490422964096, -0.38467153906822205, 0.5644018054008484, -0.8245879411697388, -0.09383981674909592, -0.22752109169960022, -1.1013051271438599, -0.07232679426670074, 0.8713058829307556, 0.054987307637929916, 0.10062488913536072, 0.5218495726585388, 0.739348292350769, -0.3169403672218323, 0.1791629046201706, 0.03614690154790878, 0.31701409816741943, 0.39357322454452515, 0.4446795880794525, 0.5032995939254761, -0.40819844603538513, 0.3429035544395447, -0.665627658367157, -0.546468198299408, -0.2888912260532379, -0.8002973198890686, -0.799390971660614, -0.3526783585548401, -0.2651277780532837, -0.4558056890964508, 0.10411146283149719, 0.6998137831687927, 0.9066680073738098, -0.37300002574920654, -0.335418164730072, -0.0832284688949585, -0.15117521584033966, -0.23048247396945953, -0.23302924633026123, 0.5277596712112427, -0.3696325719356537, -0.9770181775093079, 0.42208853363990784, 0.019131740555167198, -0.023365402594208717, -0.3543938994407654, -0.10268852114677429, -0.03542551025748253, -0.00589512474834919, 0.4596303701400757, 0.39158639311790466, -0.13068825006484985, -0.24900342524051666, -0.2769588530063629, 0.2088145911693573, 0.13247990608215332, 0.3985939025878906, -0.8796328902244568, 0.1720523089170456, 0.7802388668060303, 0.4455837905406952, 0.9452317953109741, -0.05021592974662781, 0.5235856175422668, -0.625806450843811, 0.23322492837905884, 0.06664107739925385, 0.6601241230964661, 0.18924789130687714, -0.48670950531959534, 0.8262196779251099, 0.0004945954424329102, -0.9602046608924866, -0.7785874009132385, -0.01670093461871147, -1.2380303144454956, -0.19408699870109558, 0.9470558762550354, 0.05837997794151306, -0.5610786080360413, 0.11681199818849564, -0.24208876490592957, 0.42201775312423706, -0.3987865149974823, 0.8319331407546997, 0.270565390586853, -0.4143788814544678, 0.13050149381160736, -0.7377033233642578, 0.6905952095985413, 0.5256335735321045, -0.7604145407676697, -0.2512093186378479, 0.45612338185310364, 0.22684304416179657, 0.3054780662059784, 0.6210479140281677, -0.2007783055305481, 0.32069551944732666, 0.0006347493035718799, 0.16989056766033173, -0.4090104103088379, -0.39272376894950867, -0.5143079161643982, 0.06699562817811966, -0.24594838917255402, -0.3835662007331848 ]
lmsys/vicuna-13b-v1.5-16k
lmsys
"2023-10-06T19:46:12Z"
18,372
190
transformers
[ "transformers", "pytorch", "llama", "text-generation", "arxiv:2307.09288", "arxiv:2306.05685", "license:llama2", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-01T16:51:46Z"
--- inference: false license: llama2 --- # Vicuna Model Card ## Model Details Vicuna is a chat assistant trained by fine-tuning Llama 2 on user-shared conversations collected from ShareGPT. - **Developed by:** [LMSYS](https://lmsys.org/) - **Model type:** An auto-regressive language model based on the transformer architecture - **License:** Llama 2 Community License Agreement - **Finetuned from model:** [Llama 2](https://arxiv.org/abs/2307.09288) ### Model Sources - **Repository:** https://github.com/lm-sys/FastChat - **Blog:** https://lmsys.org/blog/2023-03-30-vicuna/ - **Paper:** https://arxiv.org/abs/2306.05685 - **Demo:** https://chat.lmsys.org/ ## Uses The primary use of Vicuna is research on large language models and chatbots. The primary intended users of the model are researchers and hobbyists in natural language processing, machine learning, and artificial intelligence. ## How to Get Started with the Model - Command line interface: https://github.com/lm-sys/FastChat#vicuna-weights - APIs (OpenAI API, Huggingface API): https://github.com/lm-sys/FastChat/tree/main#api ## Training Details Vicuna v1.5 (16k) is fine-tuned from Llama 2 with supervised instruction fine-tuning and linear RoPE scaling. The training data is around 125K conversations collected from ShareGPT.com. These conversations are packed into sequences that contain 16K tokens each. See more details in the "Training Details of Vicuna Models" section in the appendix of this [paper](https://arxiv.org/pdf/2306.05685.pdf). ## Evaluation ![Evaluation Results](https://github.com/lm-sys/lm-sys.github.io/blob/main/public/images/webdata/vicuna_v1.5_eval.png?raw=true) Vicuna is evaluated with standard benchmarks, human preference, and LLM-as-a-judge. See more details in this [paper](https://arxiv.org/pdf/2306.05685.pdf) and [leaderboard](https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard). ## Difference between different versions of Vicuna See [vicuna_weights_version.md](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md)
[ -0.2956337630748749, -0.9121695756912231, 0.412610799074173, 0.33282002806663513, -0.6354905962944031, -0.19134634733200073, -0.08591035008430481, -0.6601960062980652, 0.2964296042919159, 0.34353262186050415, -0.6231843829154968, -0.646516740322113, -0.5327151417732239, -0.05171559005975723, -0.16238199174404144, 0.791156530380249, 0.2041230946779251, 0.13551776111125946, -0.04230664670467377, -0.2587103545665741, -0.9708422422409058, -0.5817211866378784, -1.0227092504501343, -0.2476232945919037, 0.6017680764198303, 0.4795685410499573, 0.6197924017906189, 0.6434326767921448, 0.4057272672653198, 0.33880099654197693, -0.05010590702295303, 0.4065014719963074, -0.5469630360603333, 0.053117409348487854, 0.28055962920188904, -0.9773813486099243, -0.7525361776351929, -0.2960212230682373, 0.49467653036117554, -0.07121870666742325, -0.16495750844478607, 0.24285824596881866, 0.01885603927075863, 0.4327041506767273, -0.3328537940979004, 0.2981211841106415, -0.5906549096107483, -0.1873006373643875, -0.293035089969635, -0.5899319052696228, -0.23447802662849426, -0.3548508882522583, -0.19088563323020935, -0.47429871559143066, 0.0403931587934494, -0.07159455865621567, 1.1662917137145996, 0.5625807046890259, -0.35051679611206055, -0.16627515852451324, -0.765539824962616, 0.4492172598838806, -0.8882623314857483, 0.37456032633781433, 0.42210108041763306, 0.6247175335884094, -0.2784840166568756, -0.570209264755249, -0.6262111663818359, -0.23944143950939178, 0.06368400156497955, 0.1320386379957199, -0.2756620943546295, 0.1463928520679474, 0.1359085589647293, 0.5009347796440125, -0.4890906810760498, 0.43874818086624146, -0.5759776830673218, 0.13750213384628296, 0.58253014087677, 0.44272372126579285, 0.16291487216949463, -0.25474676489830017, -0.43244853615760803, -0.3602662682533264, -0.3559429347515106, -0.003593242494389415, 0.43288281559944153, 0.4446740448474884, -0.4355681836605072, 0.5453791618347168, -0.17558565735816956, 0.5357102751731873, -0.13604535162448883, -0.19533628225326538, 0.3239893615245819, -0.07994675636291504, -0.5115146040916443, -0.303477942943573, 1.2254284620285034, 0.4756663739681244, -0.08129362761974335, 0.14149118959903717, 0.03907637298107147, 0.03302287682890892, 0.22989925742149353, -0.840939462184906, 0.08454877883195877, 0.6865624785423279, -0.3164910078048706, -0.5083851218223572, -0.052783120423555374, -0.47737446427345276, -0.44571393728256226, -0.2388658970594406, 0.38636425137519836, -0.41929492354393005, -0.3883872926235199, 0.16949087381362915, -0.008387899026274681, 0.451799601316452, 0.373800665140152, -0.711737871170044, 0.34826645255088806, 0.7233878374099731, 1.1164419651031494, -0.10570189356803894, -0.40710821747779846, -0.13824430108070374, -0.32775816321372986, -0.3265123963356018, 0.9831011295318604, -0.046788640320301056, -0.35899603366851807, -0.06114807352423668, 0.14462988078594208, -0.023780902847647667, -0.575639009475708, 0.6274144053459167, -0.28581228852272034, 0.2650444507598877, -0.1782333254814148, -0.5385603308677673, -0.019064638763666153, 0.2553741931915283, -0.6694685220718384, 1.248267650604248, 0.0364917553961277, -0.7456087470054626, 0.20724192261695862, -0.7326577305793762, 0.13328817486763, 0.1263342946767807, -0.0829465314745903, -0.46320241689682007, -0.08817154914140701, -0.050069812685251236, 0.5419977307319641, -0.6165832877159119, 0.5873914361000061, -0.2562682628631592, -0.5314646363258362, 0.31528013944625854, -0.6244344711303711, 1.034483551979065, 0.30252140760421753, -0.41331836581230164, 0.4852035939693451, -0.8109000325202942, -0.18363218009471893, 0.2896498739719391, -0.19868268072605133, -0.2797167897224426, -0.26533976197242737, 0.030152002349495888, 0.10852492600679398, 0.4038780629634857, -0.2438504546880722, 0.34252017736434937, -0.03200016915798187, 0.20130233466625214, 0.7068162560462952, 0.05772082507610321, 0.14096617698669434, -0.4736044406890869, 0.43922585248947144, 0.0007267614710144699, 0.8314499855041504, 0.11676797270774841, -0.5404508709907532, -1.1720783710479736, -0.4498843252658844, 0.037115003913640976, 0.6708824038505554, -0.6290020942687988, 0.6507534384727478, -0.3464885354042053, -1.1343252658843994, -0.9725646376609802, 0.17054885625839233, 0.43733474612236023, 0.09252386540174484, 0.31317955255508423, -0.49529221653938293, -0.6462640166282654, -1.0473793745040894, -0.08968254923820496, -0.41104039549827576, -0.054654449224472046, 0.4520309865474701, 0.2513324022293091, -0.5710353255271912, 0.8822349905967712, -0.4174473285675049, -0.4005436301231384, -0.06156279146671295, -0.07385260611772537, 0.07666647434234619, 0.42963463068008423, 0.6958296298980713, -0.6500198841094971, -0.3166142404079437, -0.08036291599273682, -0.8999016284942627, 0.0041669937781989574, -0.12090198695659637, -0.5050538778305054, 0.2317362278699875, 0.4020729959011078, -0.6619991660118103, 0.565340518951416, 0.7560705542564392, -0.5442939400672913, 0.46549686789512634, -0.28792253136634827, 0.09669533371925354, -1.4189999103546143, 0.17427507042884827, 0.008315539918839931, -0.40328511595726013, -0.5990554094314575, 0.05960937216877937, -0.12598782777786255, 0.24791614711284637, -0.6850059032440186, 0.9018042087554932, -0.3786836266517639, 0.050873566418886185, -0.4972583055496216, -0.20376694202423096, -0.05902106314897537, 0.819957435131073, 0.10360188037157059, 0.7448700666427612, 0.4104096293449402, -0.8556584119796753, 0.5111793279647827, 0.22401605546474457, -0.1769980937242508, 0.37849849462509155, -0.9444380402565002, 0.32108306884765625, 0.10079742968082428, 0.20313246548175812, -0.9617781043052673, -0.0894872322678566, 0.6485852599143982, -0.5150447487831116, 0.12231423705816269, -0.04581090435385704, -0.6114460229873657, -0.20736421644687653, -0.17446470260620117, 0.17753064632415771, 0.4726260006427765, -0.6235669851303101, 0.4091102182865143, 0.4545988142490387, 0.22357164323329926, -0.5438955426216125, -0.6036887764930725, -0.01963820867240429, -0.46011030673980713, -0.17707191407680511, 0.00976916216313839, -0.3354588449001312, -0.23456215858459473, -0.1318802535533905, 0.15853999555110931, -0.1049618348479271, 0.11152170598506927, 0.5062442421913147, 0.2411666363477707, -0.08663696050643921, 0.15946033596992493, -0.0914754569530487, -0.08427892625331879, -0.1436326652765274, -0.0034330887719988823, 1.0562946796417236, -0.5145230889320374, -0.034800078719854355, -0.9308972954750061, -0.04595436155796051, 0.6686150431632996, 0.09310774505138397, 1.2284449338912964, 0.7120309472084045, -0.22567372024059296, 0.1796112358570099, -0.7739302515983582, -0.1993676722049713, -0.4881983697414398, 0.2983200252056122, -0.3725587725639343, -0.7272177934646606, 0.7213015556335449, 0.27509284019470215, 0.378292053937912, 0.5169286131858826, 0.8198916912078857, 0.11451786756515503, 0.4634402096271515, 0.8522832989692688, -0.04979320988059044, 0.9376065731048584, -0.405636191368103, -0.14229846000671387, -0.7753534317016602, -0.44678041338920593, -0.5978491306304932, -0.10941901803016663, -0.7624334096908569, -0.7240284085273743, -0.05155758187174797, -0.022359104827046394, -0.3510213792324066, 0.762707531452179, -0.6026473641395569, 0.18838100135326385, 0.6347861886024475, 0.2775445282459259, 0.2909775376319885, -0.15161794424057007, 0.27917298674583435, 0.14549455046653748, -0.7581275105476379, -0.7261692881584167, 1.1065467596054077, 0.7099885940551758, 0.5044540166854858, 0.1814727485179901, 0.7426536083221436, 0.2788175642490387, 0.4877222180366516, -0.9594029188156128, 0.5711960196495056, 0.24583442509174347, -0.7693924307823181, -0.44736447930336, -0.5929654836654663, -1.138547658920288, 0.38098064064979553, -0.217071533203125, -0.6776857376098633, 0.365711510181427, 0.14687131345272064, -0.21329230070114136, 0.32539233565330505, -0.7484808564186096, 0.9474083781242371, -0.4155444800853729, -0.4031094014644623, -0.04172306880354881, -0.4250187277793884, 0.5752063393592834, 0.07483092695474625, 0.08495308458805084, -0.19858919084072113, -0.05610162019729614, 0.8208773136138916, -0.6183082461357117, 1.126712441444397, -0.15376141667366028, -0.25023066997528076, 0.3052442967891693, -0.03276846557855606, 0.18499848246574402, 0.06531698256731033, 0.09845957159996033, 0.4594794511795044, 0.1404019296169281, -0.5306611657142639, -0.6311426162719727, 0.6379573345184326, -1.201419472694397, -0.4860597252845764, -0.4068254232406616, -0.31317195296287537, 0.016338452696800232, 0.10152758657932281, 0.4217952787876129, 0.28977468609809875, -0.2965850234031677, 0.17861267924308777, 0.5306225419044495, -0.3361161947250366, 0.07198380678892136, 0.40716204047203064, -0.30723342299461365, -0.47009027004241943, 0.6835137605667114, -0.06442923843860626, 0.17443586885929108, 0.44105759263038635, 0.17163802683353424, -0.2586245834827423, -0.1492685228586197, -0.22140273451805115, 0.45126205682754517, -0.5976893305778503, -0.2522202134132385, -0.7439898252487183, -0.30677467584609985, -0.3161310851573944, 0.44478118419647217, -0.8649675846099854, -0.25925782322883606, -0.42185038328170776, -0.12219581753015518, 0.6522063612937927, 0.48961496353149414, 0.22076377272605896, 0.7531979084014893, -0.5715541243553162, 0.2852703630924225, 0.312630295753479, 0.3583691418170929, 0.02562875486910343, -0.7247516512870789, -0.2770286500453949, 0.09671389311552048, -0.2686302363872528, -0.9150044918060303, 0.5684123039245605, -0.17557863891124725, 0.5695755481719971, 0.5308519005775452, -0.014422568492591381, 0.9537727236747742, -0.13496685028076172, 0.6534528732299805, 0.17129255831241608, -0.5568253397941589, 0.5327048301696777, -0.25158318877220154, 0.2069142609834671, 0.6891230344772339, 0.3337637186050415, -0.6616219282150269, -0.32151201367378235, -0.9654156565666199, -0.770780622959137, 0.5332919955253601, 0.2682880461215973, 0.2995747923851013, -0.07600060850381851, 0.5114228129386902, 0.16316409409046173, 0.1828918159008026, -0.7833311557769775, -0.6101348996162415, -0.12845642864704132, -0.16007734835147858, -0.21177074313163757, -0.4513273239135742, -0.057433027774095535, -0.33404627442359924, 0.7291867136955261, -0.03323684260249138, 0.5770562291145325, 0.11913544684648514, 0.08507087826728821, 0.014051731675863266, 0.14760056138038635, 0.7156932950019836, 0.3719080984592438, -0.44431987404823303, -0.2979883551597595, 0.09964752197265625, -0.4768959581851959, -0.0473550520837307, 0.00795010570436716, 0.04454769194126129, 0.19293518364429474, 0.3124014735221863, 1.529638648033142, 0.15184439718723297, -0.4990414083003998, 0.3367055058479309, -0.7432702779769897, -0.2444581538438797, -0.5726053714752197, 0.2963084578514099, 0.16632740199565887, 0.5052642822265625, 0.13872705399990082, -0.09670675545930862, 0.004899362567812204, -0.7487221360206604, -0.3058303892612457, 0.28595444560050964, -0.42406800389289856, -0.23142452538013458, 0.6806029081344604, 0.17944560945034027, -0.6751022934913635, 0.42903706431388855, 0.13486407697200775, -0.2884505093097687, 0.5075182318687439, 0.23486264050006866, 0.9541763067245483, -0.25691768527030945, 0.18438902497291565, 0.5985738635063171, 0.28659868240356445, -0.15266026556491852, 0.1772122085094452, -0.17484834790229797, -0.6647152304649353, 0.13416464626789093, -0.5992894172668457, -0.6144978404045105, 0.402252197265625, -0.7650036811828613, 0.5135817527770996, -0.4228513836860657, -0.512927234172821, -0.40451422333717346, 0.4587138295173645, -1.020484447479248, 0.0051761954091489315, -0.05068695545196533, 0.9675841927528381, -0.9283536076545715, 1.0235044956207275, 0.44943177700042725, -0.5034440755844116, -0.9770973324775696, -0.313421368598938, -0.10174582153558731, -0.8776124715805054, 0.20947714149951935, 0.0523710735142231, -0.010828213766217232, -0.16227799654006958, -0.6071385741233826, -0.6362202167510986, 1.5155892372131348, 0.40043115615844727, -0.8157774806022644, -0.06594058126211166, 0.009039944037795067, 0.7484903335571289, -0.16367271542549133, 0.5908726453781128, 0.5983779430389404, 0.17018887400627136, 0.21767769753932953, -1.1819041967391968, -0.009823862463235855, -0.5299838781356812, 0.05799156054854393, -0.2679365277290344, -1.182129144668579, 0.7993835210800171, 0.08758153766393661, -0.08239785581827164, 0.2364509254693985, 0.8446483612060547, 0.6739288568496704, 0.20507195591926575, 0.464717835187912, 0.2801268398761749, 1.093606948852539, 0.10944029688835144, 1.183619737625122, -0.15957163274288177, 0.1593824326992035, 1.1493533849716187, 0.211870938539505, 1.0041521787643433, 0.5105368494987488, 0.06020301952958107, 0.49932870268821716, 0.8430034518241882, 0.1438542902469635, 0.27632343769073486, -0.05931262671947479, 0.04859868809580803, -0.10120178759098053, 0.042998723685741425, -0.5159663558006287, 0.5272808074951172, 0.297387033700943, -0.23993398249149323, 0.23807506263256073, -0.14995980262756348, 0.291352778673172, -0.24784986674785614, -0.010213781148195267, 0.8716449737548828, 0.23710541427135468, -0.6923052072525024, 0.9289655685424805, 0.05893087014555931, 0.9579377770423889, -0.6925933361053467, 0.08506186306476593, -0.6404342651367188, 0.3329644501209259, -0.03748751059174538, -0.26155316829681396, 0.11519601196050644, 0.20438805222511292, 0.18631310760974884, 0.1804683953523636, 0.4393998086452484, -0.30396780371665955, -0.34207725524902344, 0.39901652932167053, 0.5186355113983154, 0.615531861782074, 0.09525064378976822, -0.7902461886405945, 0.4915514886379242, -0.14586655795574188, -0.5282697081565857, 0.23637895286083221, 0.42927640676498413, -0.20874331891536713, 0.9729564189910889, 0.6454181671142578, 0.13130760192871094, -0.008221459574997425, 0.24803966283798218, 0.8884948492050171, -0.5592483878135681, -0.5153157114982605, -0.9169524908065796, 0.39752525091171265, -0.09669562429189682, -0.5820679664611816, 0.8067159056663513, 0.6584295630455017, 0.6012333035469055, 0.0983671322464943, 0.576219379901886, 0.08986873179674149, 0.2754499316215515, -0.5148549675941467, 0.6764690279960632, -0.7373436689376831, 0.34388643503189087, -0.24745161831378937, -0.9873782396316528, -0.2536638379096985, 0.6647675633430481, -0.2250983864068985, 0.011755275540053844, 0.5283243656158447, 0.8022368550300598, 0.07405287772417068, -0.250556081533432, 0.4704943597316742, 0.1830798089504242, 0.5827409029006958, 0.5067090392112732, 0.6951054930686951, -0.7734663486480713, 0.551033616065979, -0.18736326694488525, -0.26407590508461, -0.5417395234107971, -0.5874937772750854, -1.2628858089447021, -0.6645488142967224, -0.20806585252285004, -0.398286372423172, 0.2134319543838501, 1.043088436126709, 0.6668494939804077, -0.3363569378852844, -0.6376219391822815, -0.016745533794164658, -0.16510231792926788, -0.19970621168613434, -0.20143406093120575, 0.358493447303772, -0.011894346214830875, -0.8974210619926453, 0.1109105572104454, -0.18642474710941315, 0.21157827973365784, -0.36609241366386414, -0.40750470757484436, -0.13207270205020905, 0.1511571854352951, 0.33293017745018005, 0.5754488706588745, -0.6342188715934753, -0.03707890957593918, 0.06341239809989929, -0.4756604731082916, 0.2360936850309372, 0.35909444093704224, -0.635475218296051, 0.1507710963487625, 0.3116186261177063, 0.1677575707435608, 0.7024046182632446, 0.034965015947818756, 0.3897629678249359, -0.5436249375343323, 0.580842912197113, -0.005124819930642843, 0.3370167911052704, 0.4114426076412201, -0.40544411540031433, 0.4810100793838501, 0.0339554101228714, -0.3848746418952942, -1.0011191368103027, -0.13948701322078705, -1.1051595211029053, -0.21259206533432007, 1.4215672016143799, 0.1545644849538803, -0.6684321761131287, 0.08607833087444305, -0.5799944400787354, 0.6842150092124939, -0.2951412796974182, 0.7766659259796143, 0.4136151075363159, 0.21877503395080566, -0.5134634971618652, -0.7445235848426819, 0.500901997089386, 0.10281259566545486, -1.0099756717681885, 0.05255259573459625, 0.2736823558807373, 0.47441452741622925, 0.015306679531931877, 1.2576215267181396, -0.074034184217453, 0.13050128519535065, 0.06708020716905594, 0.4964595139026642, -0.4043939709663391, -0.45826324820518494, -0.2719399034976959, -0.3250792622566223, 0.2609843909740448, -0.48199617862701416 ]
coqui/XTTS-v1
coqui
"2023-11-10T19:40:20Z"
18,321
345
coqui
[ "coqui", "text-to-speech", "license:other", "has_space", "region:us" ]
text-to-speech
"2023-09-13T09:22:03Z"
--- license: other license_name: coqui-public-model-license license_link: https://coqui.ai/cpml library_name: coqui pipeline_tag: text-to-speech --- # ⓍTTS ⓍTTS is a Voice generation model that lets you clone voices into different languages by using just a quick 6-second audio clip. Built on Tortoise, ⓍTTS has important model changes that make cross-language voice cloning and multi-lingual speech generation super easy. There is no need for an excessive amount of training data that spans countless hours. This is the same model that powers [Coqui Studio](https://coqui.ai/), and [Coqui API](https://docs.coqui.ai/docs), however we apply a few tricks to make it faster and support streaming inference. ## NOTE: ⓍTTS V2 model is out here [XTTS V2](https://huggingface.co/coqui/XTTS-v2) ### Features - Supports 14 languages. - Voice cloning with just a 6-second audio clip. - Emotion and style transfer by cloning. - Cross-language voice cloning. - Multi-lingual speech generation. - 24khz sampling rate. ### Languages As of now, XTTS-v1 (v1.1) supports 14 languages: **English, Spanish, French, German, Italian, Portuguese, Polish, Turkish, Russian, Dutch, Czech, Arabic, Chinese, and Japanese**. Stay tuned as we continue to add support for more languages. If you have any language requests, please feel free to reach out! ### Code The current implementation supports inference and [fine-tuning](https://tts.readthedocs.io/en/latest/models/xtts.html#training). ### License This model is licensed under [Coqui Public Model License](https://coqui.ai/cpml). There's a lot that goes into a license for generative models, and you can read more of [the origin story of CPML here](https://coqui.ai/blog/tts/cpml). ### Contact Come and join in our 🐸Community. We're active on [Discord](https://discord.gg/fBC58unbKE) and [Twitter](https://twitter.com/coqui_ai). You can also mail us at info@coqui.ai. Using 🐸TTS API: ```python from TTS.api import TTS tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True) # generate speech by cloning a voice using default settings tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.", file_path="output.wav", speaker_wav="/path/to/target/speaker.wav", language="en") # generate speech by cloning a voice using custom settings tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.", file_path="output.wav", speaker_wav="/path/to/target/speaker.wav", language="en", decoder_iterations=30) ``` Using 🐸TTS Command line: ```console tts --model_name tts_models/multilingual/multi-dataset/xtts_v1 \ --text "Bugün okula gitmek istemiyorum." \ --speaker_wav /path/to/target/speaker.wav \ --language_idx tr \ --use_cuda true ``` Using model directly: ```python from TTS.tts.configs.xtts_config import XttsConfig from TTS.tts.models.xtts import Xtts config = XttsConfig() config.load_json("/path/to/xtts/config.json") model = Xtts.init_from_config(config) model.load_checkpoint(config, checkpoint_dir="/path/to/xtts/", eval=True) model.cuda() outputs = model.synthesize( "It took me quite a long time to develop a voice and now that I have it I am not going to be silent.", config, speaker_wav="/data/TTS-public/_refclips/3.wav", gpt_cond_len=3, language="en", ) ```
[ -0.3688378632068634, -0.5372908115386963, 0.15058225393295288, 0.43491512537002563, -0.3364523947238922, 0.37857311964035034, -0.2964825928211212, -0.4610876441001892, 0.25447219610214233, 0.29528313875198364, -0.7424334287643433, -0.4877322316169739, -0.31479504704475403, -0.02396124042570591, -0.33589646220207214, 0.9152350425720215, 0.4295431971549988, 0.05620561167597771, 0.4014227092266083, 0.1377553939819336, -0.3159758448600769, -0.5100866556167603, -1.2495070695877075, -0.060615088790655136, 0.3713831901550293, 0.17990820109844208, 0.5971341729164124, 0.6181037425994873, -0.15209175646305084, 0.3333502411842346, -0.21342824399471283, 0.07583311200141907, -0.3486727774143219, 0.10403568297624588, 0.168916255235672, -0.5526186227798462, -0.4749719798564911, -0.15964055061340332, 0.6312494277954102, 0.3298911452293396, -0.10955410450696945, 0.07239329814910889, -0.17299175262451172, 0.0018058082787320018, -0.15608568489551544, 0.15679238736629486, -0.382388174533844, 0.10591532289981842, -0.23162031173706055, -0.13232725858688354, -0.4166531264781952, -0.4946537911891937, 0.5624560117721558, -0.7699887752532959, 0.38243556022644043, 0.006927800364792347, 0.960201621055603, -0.09229631721973419, -0.23149169981479645, -0.28864115476608276, -0.5598801374435425, 1.0303435325622559, -0.8279599547386169, 0.6226574778556824, 0.10599313676357269, 0.3982769846916199, -0.008425244130194187, -1.0616868734359741, -0.6383962035179138, -0.5018632411956787, -0.04914966598153114, 0.0894022062420845, -0.13264159858226776, -0.21330779790878296, 0.2863527536392212, 0.2820521593093872, -0.5818302631378174, -0.05089113861322403, -0.43371084332466125, -0.3203267753124237, 0.5512976050376892, -0.03780994564294815, 0.6077588796615601, -0.49295052886009216, -0.40141355991363525, -0.5742889642715454, -0.5968005061149597, 0.12923836708068848, 0.28743839263916016, 0.6745625138282776, -0.6654756665229797, 0.15774179995059967, 0.08046439290046692, 0.2085769921541214, 0.06260816007852554, -0.07173551619052887, 0.34121519327163696, -0.36438068747520447, -0.4051445424556732, 0.22478844225406647, 1.2527366876602173, -0.19119001924991608, 0.1452144831418991, -0.049164168536663055, 0.05720166116952896, -0.11826228350400925, -0.16211237013339996, -0.658281147480011, -0.08387311547994614, 0.5408958196640015, -0.11962714046239853, -0.30126717686653137, -0.20724010467529297, -0.6862508058547974, 0.002890766831114888, -0.02190772071480751, 0.34676235914230347, -0.713813304901123, -0.5833082795143127, -0.008038700558245182, -0.4013471305370331, 0.045372191816568375, 0.23589670658111572, -0.99665766954422, 0.22543641924858093, 0.5508977174758911, 1.0029758214950562, 0.06703145802021027, -0.3377875089645386, -0.5706511735916138, 0.13612738251686096, -0.32499897480010986, 0.2341586798429489, -0.029708784073591232, -0.5899662375450134, -0.3576425611972809, 0.0013542833039537072, 0.1403179168701172, -0.5486801862716675, 0.3827330768108368, -0.2015533447265625, 0.35820385813713074, -0.22722327709197998, -0.23114916682243347, -0.0926257073879242, -0.1839212030172348, -0.5888991951942444, 1.0036156177520752, 0.5176736116409302, -0.36451268196105957, 0.1377396434545517, -0.7572895288467407, -0.5255818963050842, 0.04067641496658325, -0.14252614974975586, -0.5457630753517151, -0.12144040316343307, 0.07782449573278427, 0.3539091646671295, -0.5043938159942627, 0.4511159062385559, -0.10232821106910706, -0.1089552491903305, 0.297891229391098, -0.25367218255996704, 1.5188959836959839, 0.46212658286094666, -0.6184566020965576, 0.09832428395748138, -0.6797149777412415, 0.4295690953731537, 0.14825542271137238, -0.1766059398651123, 0.0034897197037935257, -0.12815076112747192, 0.2549264132976532, 0.12629900872707367, -0.07220198214054108, -0.5935278534889221, 0.08957121521234512, -0.4595849812030792, 0.9900367856025696, 0.4904758334159851, -0.14077532291412354, 0.24658718705177307, -0.5406888723373413, 0.4492393136024475, -0.14218249917030334, 0.06861314922571182, -0.1721230298280716, -0.6295440793037415, -0.9733022451400757, -0.3845774829387665, 0.21075890958309174, 0.49131184816360474, -0.5544127821922302, 0.34589195251464844, -0.31360572576522827, -0.739814043045044, -0.7397927641868591, -0.18865695595741272, 0.5505810379981995, 0.3228871524333954, 0.47731491923332214, -0.032364148646593094, -1.0473212003707886, -0.5511966943740845, 0.17676280438899994, -0.3941621780395508, -0.2083236277103424, 0.17994287610054016, 0.3783525824546814, -0.09649963676929474, 0.6682080626487732, -0.1705285608768463, -0.07247864454984665, -0.42274847626686096, 0.14236971735954285, 0.12307395040988922, 0.8232579231262207, 0.7638798356056213, -0.5935477018356323, -0.605328381061554, 0.06405264884233475, -0.6480892300605774, -0.25438374280929565, -0.28657498955726624, -0.1389666646718979, 0.06500980257987976, 0.19829313457012177, -0.6510118246078491, 0.04184551537036896, 0.6370319128036499, -0.362746924161911, 0.7098789215087891, 0.11123761534690857, 0.1871914565563202, -1.2147409915924072, -0.02202753536403179, -0.1008133739233017, -0.455697625875473, -0.5765535235404968, 0.23106661438941956, -0.2417566478252411, -0.2612864077091217, -0.8050203323364258, 0.7582705020904541, -0.6146719455718994, 0.15912079811096191, 0.14866237342357635, 0.10633102059364319, 0.05513618141412735, 0.4785124659538269, 0.178121879696846, 0.8619628548622131, 0.7411606907844543, -0.6175767779350281, 0.5140377283096313, 0.5115323662757874, -0.29946672916412354, 0.14486022293567657, -0.8005239367485046, 0.31711167097091675, 0.5664869546890259, 0.06670042127370834, -0.8353866338729858, -0.07499168813228607, 0.37043967843055725, -0.7128910422325134, 0.32154580950737, -0.30254748463630676, -0.3616638481616974, -0.32521629333496094, -0.2099015861749649, 0.19398199021816254, 0.8103967308998108, -0.6075375080108643, 0.39835357666015625, 0.36586689949035645, -0.3564850091934204, -0.24678771197795868, -0.9588996171951294, 0.2643654942512512, -0.09524933993816376, -0.7931333184242249, 0.41402438282966614, -0.1686943769454956, -0.04857240989804268, -0.33820152282714844, 0.19450879096984863, -0.2043275088071823, -0.15503452718257904, 0.059819772839546204, 0.1406947523355484, -0.38433143496513367, -0.1921057254076004, 0.30162516236305237, -0.0961090698838234, -0.11148010194301605, -0.26721230149269104, 0.8495385646820068, 0.013827688992023468, -0.1311999410390854, -0.8223703503608704, 0.48074889183044434, 0.7538489103317261, -0.196949303150177, 0.15546691417694092, 0.5800508260726929, -0.17296230792999268, -0.21322451531887054, -0.3749486804008484, -0.06551409512758255, -0.5203020572662354, 0.5134577751159668, -0.3747100830078125, -0.758104681968689, 0.3936876654624939, 0.2800757884979248, -0.0006311672041192651, 0.3718292713165283, 0.6031627058982849, -0.012795227579772472, 1.10810124874115, 0.5704825520515442, 0.05012090131640434, 0.6609421372413635, -0.7779088020324707, -0.1260451078414917, -0.7671689987182617, -0.33711302280426025, -0.49479010701179504, -0.05413125455379486, -0.6644060015678406, -0.48922795057296753, 0.31767359375953674, -0.14255423843860626, -0.30664679408073425, 0.6938838958740234, -0.6341538429260254, -0.11452271044254303, 0.8634495139122009, 0.041807081550359726, 0.12906888127326965, 0.03851844742894173, -0.06657613068819046, -0.033120445907115936, -0.7211275100708008, -0.5364647507667542, 0.9129616618156433, 0.26559117436408997, 0.5562816858291626, 0.16860483586788177, 0.7406956553459167, 0.03989528492093086, -0.026374561712145805, -0.5920310020446777, 0.5546718835830688, -0.257377952337265, -0.6877827644348145, -0.4103055000305176, -0.4525233507156372, -0.8002641797065735, -0.049971841275691986, -0.1311936378479004, -0.9111108183860779, 0.22671139240264893, 0.13134340941905975, -0.5828858017921448, 0.39716172218322754, -0.9899343252182007, 0.6341171860694885, -0.451648086309433, -0.38466331362724304, -0.12550975382328033, -0.7346001267433167, 0.2147720456123352, -0.06082411855459213, -0.1049124225974083, -0.10838115960359573, 0.18328790366649628, 0.9384152293205261, -0.630741536617279, 0.8329489827156067, -0.1753987818956375, -0.029448693618178368, 0.5161879062652588, -0.07176133245229721, 0.24818235635757446, 0.2323177456855774, -0.3241240084171295, 0.3848121762275696, 0.5048620700836182, -0.26916906237602234, -0.4517556428909302, 0.8656418323516846, -0.9942177534103394, -0.5492790937423706, -0.3273542523384094, -0.4566894471645355, 0.06451892852783203, 0.41841721534729004, 0.5556619763374329, 0.40343034267425537, -0.15913377702236176, 0.057180602103471756, 0.41666966676712036, -0.43816834688186646, 0.5502581596374512, 0.3853026032447815, -0.3075626492500305, -0.7361121773719788, 0.8080283403396606, 0.31933724880218506, 0.4551045596599579, 0.4059642255306244, 0.4601164162158966, -0.40879252552986145, -0.40653541684150696, -0.7527087926864624, 0.11865328252315521, -0.17254051566123962, -0.14994028210639954, -0.6951978802680969, -0.3026057481765747, -0.7037302255630493, 0.01801172085106373, -0.5476313829421997, -0.4772877097129822, -0.43427059054374695, 0.23322243988513947, 0.5368510484695435, 0.41556939482688904, -0.05611608922481537, 0.5743262767791748, -0.9771972894668579, 0.5370415449142456, 0.31640762090682983, 0.2132464349269867, 0.13163448870182037, -0.5598857998847961, -0.2763318717479706, 0.5238848924636841, -0.29177263379096985, -0.771977424621582, 0.6587433218955994, 0.2141842246055603, 0.38511034846305847, 0.24315862357616425, 0.027852192521095276, 0.896243155002594, -0.32981497049331665, 0.8843685388565063, 0.2563251852989197, -1.3351393938064575, 0.5367879271507263, -0.4173072278499603, 0.2214813381433487, 0.05879383534193039, 0.1319541037082672, -0.8535085320472717, -0.5966095924377441, -0.6192474365234375, -0.6425995826721191, 0.8891702890396118, 0.6376885771751404, 0.281448632478714, -0.08311735093593597, 0.27746307849884033, 0.20443758368492126, 0.14735890924930573, -0.660693883895874, -0.46597057580947876, -0.3971668779850006, -0.021771850064396858, 0.003142685629427433, -0.05769861862063408, 0.02223946712911129, -0.5509622097015381, 0.8466812372207642, 0.14892931282520294, 0.5156157612800598, 0.2751861810684204, 0.11569643765687943, -0.1684386134147644, 0.22492651641368866, 0.5602397322654724, 0.2997705936431885, -0.21953079104423523, -0.03637772053480148, 0.15796199440956116, -0.5340813398361206, 0.40427303314208984, 0.06030097231268883, -0.18157485127449036, 0.2922605574131012, 0.17987366020679474, 0.9946025609970093, 0.08410975337028503, -0.5265668630599976, 0.24877390265464783, -0.08945697546005249, -0.03228285536170006, -0.47520220279693604, 0.2975274920463562, 0.22916279733181, 0.3565891683101654, 0.37356817722320557, -0.001378084416501224, -0.220258891582489, -0.5892090797424316, 0.2446509152650833, 0.2595076262950897, -0.2459365427494049, -0.587329089641571, 1.0796681642532349, 0.25707387924194336, -0.5878316164016724, 0.5913441181182861, -0.1936793327331543, -0.3771771490573883, 0.8725754618644714, 0.7855610251426697, 1.1594260931015015, -0.2799127995967865, 0.15425120294094086, 0.4235045611858368, 0.09863225370645523, -0.13410721719264984, 0.5471006035804749, -0.013577817007899284, -0.48750734329223633, -0.3258269429206848, -0.5148862600326538, -0.44321370124816895, 0.33910197019577026, -0.46082761883735657, 0.731887936592102, -0.6187682151794434, -0.3940545916557312, 0.20054581761360168, -0.015879327431321144, -0.4949750602245331, 0.490652859210968, 0.21754534542560577, 1.0518546104431152, -0.5893999338150024, 1.0851452350616455, 0.3229084610939026, -0.603187084197998, -0.929537296295166, -0.3369123935699463, -0.08348557353019714, -0.8213919401168823, 0.48410752415657043, -0.059195730835199356, -0.22822672128677368, 0.3668973743915558, -0.6331112384796143, -0.8945823311805725, 1.0465196371078491, 0.7436026930809021, -0.7501605153083801, -0.24040384590625763, 0.07343487441539764, 0.6008625030517578, -0.3375279903411865, 0.2585674226284027, 0.4580766558647156, 0.3604690134525299, -0.07121207565069199, -0.9845994114875793, 0.308378666639328, -0.37694859504699707, -0.166952446103096, -0.08509048819541931, -0.905836284160614, 1.096907138824463, -0.5227198004722595, -0.3777995705604553, 0.6421634554862976, 0.5306352972984314, 0.334465354681015, 0.05344417691230774, 0.5006363391876221, 0.4618476927280426, 0.7497462630271912, -0.3499625623226166, 0.9017812609672546, -0.28261634707450867, 0.4898543655872345, 1.1704074144363403, -0.0455196350812912, 0.5975595116615295, 0.3069652318954468, -0.3211967945098877, 0.6611502170562744, 0.5933566093444824, -0.31321001052856445, 0.5216681957244873, 0.03115273080766201, -0.32070091366767883, -0.1714211255311966, -0.02660980634391308, -0.6390954852104187, 0.44876182079315186, 0.16562363505363464, -0.36702415347099304, 0.10376060754060745, 0.16560839116573334, 0.1145828366279602, -0.4044134318828583, 0.20284608006477356, 0.4277167320251465, 0.07639326900243759, -0.4859108030796051, 0.940057635307312, -0.2010415494441986, 0.6757127046585083, -0.9664753675460815, -0.07770152390003204, 0.10741015523672104, -0.03236682713031769, -0.11244864016771317, -0.6858555674552917, 0.15703073143959045, -0.04337351396679878, -0.2170756459236145, -0.24808770418167114, 0.14231722056865692, -0.4336417317390442, -0.35296630859375, 0.5071032047271729, 0.5465636849403381, 0.23199307918548584, 0.013321519829332829, -0.6881231665611267, 0.1979323923587799, 0.35224083065986633, -0.12465590983629227, -0.0029956193175166845, 0.3414348065853119, -0.15220655500888824, 0.9449687004089355, 0.8886544108390808, 0.3818119764328003, 0.18778161704540253, 0.21326115727424622, 0.7175829410552979, -0.8284885883331299, -0.6826882362365723, -0.7250767946243286, 0.5765012502670288, 0.05753535032272339, -0.44639885425567627, 0.662074625492096, 0.7691346406936646, 0.8807355761528015, -0.16598232090473175, 1.3379110097885132, -0.43298250436782837, 0.6418730020523071, -0.28087982535362244, 1.025912880897522, -0.5408579111099243, 0.3247153162956238, -0.4007691442966461, -0.360036700963974, -0.2263312190771103, 0.4368036687374115, 0.012032375670969486, 0.1508733183145523, 0.5881742835044861, 0.9042676687240601, -0.06248047202825546, -0.1063636913895607, 0.4007776379585266, 0.33392220735549927, 0.4814940392971039, 0.5862106680870056, 0.8353549838066101, -0.59084552526474, 0.8358737230300903, -0.611757755279541, -0.04004555940628052, -0.02346138097345829, -0.586101770401001, -0.6646750569343567, -0.5273703336715698, -0.44012451171875, -0.5213521122932434, 0.025488857179880142, 1.043182373046875, 1.1202596426010132, -1.059446930885315, -0.6371219754219055, -0.008717147633433342, 0.18017472326755524, -0.39477258920669556, -0.24440419673919678, 0.3500969707965851, -0.015394753776490688, -1.2701492309570312, 0.4745601415634155, 0.08493594825267792, 0.5298280119895935, -0.2573200464248657, -0.2164357751607895, -0.17831626534461975, -0.09458640962839127, 0.4323171377182007, 0.48464471101760864, -0.7391717433929443, -0.30756983160972595, 0.23162899911403656, -0.21571502089500427, 0.39940664172172546, 0.6608625650405884, -0.6860924959182739, 0.7431604862213135, 0.4615342319011688, 0.00359028740786016, 0.5941116213798523, -0.4884447455406189, 0.7988973259925842, -0.7879321575164795, 0.30625516176223755, 0.13967207074165344, 0.3584003746509552, 0.4951118528842926, -0.2682613730430603, 0.2208528071641922, 0.38480159640312195, -0.19762612879276276, -0.8357323408126831, 0.05620372295379639, -1.2622292041778564, -0.11073020845651627, 1.0237313508987427, -0.053009841591119766, -0.17149876058101654, -0.1584320217370987, -0.5835413932800293, 1.0143377780914307, -0.6350717544555664, 0.5782514214515686, 0.071946881711483, -0.06866064667701721, -0.15657781064510345, -0.42873135209083557, 0.5440868735313416, 0.22775201499462128, -0.5961548089981079, 0.015222250483930111, 0.06601150333881378, 0.5669528841972351, 0.37432435154914856, 0.6308891773223877, -0.0486651211977005, 0.4479910433292389, 0.13595910370349884, 0.32422134280204773, -0.11413349211215973, 0.07562251389026642, -0.09312829375267029, 0.0055608428083360195, -0.18937376141548157, -0.377526193857193 ]
sentence-transformers/paraphrase-distilroberta-base-v1
sentence-transformers
"2022-06-15T20:03:06Z"
18,320
3
sentence-transformers
[ "sentence-transformers", "pytorch", "tf", "jax", "roberta", "feature-extraction", "sentence-similarity", "transformers", "arxiv:1908.10084", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- pipeline_tag: sentence-similarity license: apache-2.0 tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- # sentence-transformers/paraphrase-distilroberta-base-v1 This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and can be used for tasks like clustering or semantic search. ## Usage (Sentence-Transformers) Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed: ``` pip install -U sentence-transformers ``` Then you can use the model like this: ```python from sentence_transformers import SentenceTransformer sentences = ["This is an example sentence", "Each sentence is converted"] model = SentenceTransformer('sentence-transformers/paraphrase-distilroberta-base-v1') embeddings = model.encode(sentences) print(embeddings) ``` ## Usage (HuggingFace Transformers) Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings. ```python from transformers import AutoTokenizer, AutoModel import torch #Mean Pooling - Take attention mask into account for correct averaging def mean_pooling(model_output, attention_mask): token_embeddings = model_output[0] #First element of model_output contains all token embeddings input_mask_expanded = attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float() return torch.sum(token_embeddings * input_mask_expanded, 1) / torch.clamp(input_mask_expanded.sum(1), min=1e-9) # Sentences we want sentence embeddings for sentences = ['This is an example sentence', 'Each sentence is converted'] # Load model from HuggingFace Hub tokenizer = AutoTokenizer.from_pretrained('sentence-transformers/paraphrase-distilroberta-base-v1') model = AutoModel.from_pretrained('sentence-transformers/paraphrase-distilroberta-base-v1') # Tokenize sentences encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt') # Compute token embeddings with torch.no_grad(): model_output = model(**encoded_input) # Perform pooling. In this case, max pooling. sentence_embeddings = mean_pooling(model_output, encoded_input['attention_mask']) print("Sentence embeddings:") print(sentence_embeddings) ``` ## Evaluation Results For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=sentence-transformers/paraphrase-distilroberta-base-v1) ## Full Model Architecture ``` SentenceTransformer( (0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: RobertaModel (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False}) ) ``` ## Citing & Authors This model was trained by [sentence-transformers](https://www.sbert.net/). If you find this model helpful, feel free to cite our publication [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://arxiv.org/abs/1908.10084): ```bibtex @inproceedings{reimers-2019-sentence-bert, title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", author = "Reimers, Nils and Gurevych, Iryna", booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", month = "11", year = "2019", publisher = "Association for Computational Linguistics", url = "http://arxiv.org/abs/1908.10084", } ```
[ -0.19304120540618896, -0.831031858921051, 0.39062052965164185, 0.42657503485679626, -0.39771711826324463, -0.34839341044425964, -0.16444094479084015, 0.10279802978038788, 0.07722175866365433, 0.42714348435401917, -0.4231940805912018, -0.4259728491306305, -0.7705662250518799, 0.1619931310415268, -0.6121981143951416, 0.9015319347381592, -0.13849857449531555, -0.0810714066028595, -0.3151387572288513, -0.21852001547813416, -0.2006395012140274, -0.4295380115509033, -0.2572851777076721, -0.2296300083398819, 0.16744966804981232, 0.1610468626022339, 0.5850160121917725, 0.42073145508766174, 0.3824738562107086, 0.5025746822357178, -0.14088158309459686, 0.0216626338660717, -0.30579236149787903, 0.03281965106725693, -0.058611758053302765, -0.35211291909217834, -0.03585450351238251, 0.16897790133953094, 0.542484700679779, 0.4954451024532318, -0.17074748873710632, 0.1741287261247635, 0.1860709935426712, 0.29442113637924194, -0.4415128231048584, 0.431710809469223, -0.6973632574081421, 0.05705004185438156, 0.06624224781990051, 0.017395617440342903, -0.5056875944137573, -0.17714425921440125, 0.3414691686630249, -0.40729621052742004, 0.2695157825946808, 0.12648306787014008, 1.078912615776062, 0.48827022314071655, -0.21125616133213043, -0.3636924922466278, -0.3512800633907318, 0.8759615421295166, -0.8765372633934021, 0.08901368826627731, 0.2969120740890503, -0.0014674749691039324, 0.022743111476302147, -1.200738549232483, -0.8312549591064453, -0.16304519772529602, -0.4816330075263977, 0.09257467091083527, -0.4459642767906189, -0.03655754029750824, 0.16085374355316162, 0.32891449332237244, -0.6571225523948669, -0.3221774399280548, -0.4530712068080902, -0.11195408552885056, 0.3624219000339508, 0.06086428463459015, 0.37319085001945496, -0.6018998622894287, -0.4756009876728058, -0.38169750571250916, -0.0641510933637619, -0.1426743119955063, -0.025284677743911743, 0.14608152210712433, -0.24939264357089996, 0.7420243620872498, -0.1153501346707344, 0.6051107048988342, 0.1269756406545639, 0.15753161907196045, 0.6378108263015747, -0.40912526845932007, -0.2831076383590698, -0.1094377338886261, 1.1224437952041626, 0.3865167498588562, 0.25162702798843384, -0.11102982610464096, -0.09333711117506027, -0.017282092943787575, 0.14460588991641998, -0.8395351767539978, -0.45367223024368286, 0.10694725811481476, -0.41488876938819885, -0.33832165598869324, 0.16185912489891052, -0.8391090035438538, -0.03861914202570915, 0.0011398745700716972, 0.7466661334037781, -0.6647019386291504, 0.07894094288349152, 0.30692046880722046, -0.44761648774147034, 0.1794346421957016, -0.30662718415260315, -0.6991339921951294, 0.2691614627838135, 0.27140703797340393, 1.1209607124328613, 0.10766593366861343, -0.5889897346496582, -0.2967310845851898, -0.07064541429281235, 0.19743138551712036, 0.6020411849021912, -0.3938223719596863, -0.09240327775478363, 0.025058699771761894, 0.1907798945903778, -0.6045453548431396, -0.4383707046508789, 0.6955744028091431, -0.28086841106414795, 0.6384545564651489, 0.08722323924303055, -0.7757828831672668, -0.16303670406341553, 0.044244080781936646, -0.5318405628204346, 1.107797384262085, 0.20695261657238007, -0.9826754927635193, -0.03484600409865379, -0.6463738083839417, -0.3336835503578186, -0.11677531152963638, 0.049778446555137634, -0.6764411926269531, 0.16163907945156097, 0.4994490444660187, 0.7616599798202515, -0.03518294915556908, 0.31781572103500366, -0.29557469487190247, -0.40981677174568176, 0.42510470747947693, -0.4194851815700531, 1.1840853691101074, 0.19947901368141174, -0.4723964333534241, -0.006940997205674648, -0.5097013115882874, -0.17111694812774658, 0.3305099904537201, -0.12945124506950378, -0.3170565366744995, -0.08393022418022156, 0.2928182780742645, 0.34793415665626526, 0.3693092465400696, -0.6171638369560242, 0.02489803358912468, -0.43152669072151184, 1.0689095258712769, 0.5049850940704346, 0.12372513115406036, 0.6193748116493225, -0.3230171501636505, 0.2217695266008377, 0.2962620258331299, 0.09130285680294037, -0.13181480765342712, -0.39460450410842896, -0.8611470460891724, -0.30835670232772827, 0.255368709564209, 0.5674991607666016, -0.8676180839538574, 0.9524244666099548, -0.4924977123737335, -0.5745213031768799, -0.7156760692596436, 0.0401613749563694, 0.19348116219043732, 0.5686018466949463, 0.7707578539848328, 0.08156175166368484, -0.5516011118888855, -0.8984953165054321, -0.07702943682670593, -0.00869060680270195, 0.0008604807080700994, 0.04987943917512894, 0.7340266108512878, -0.25704774260520935, 0.9768537878990173, -0.6274986267089844, -0.3755490779876709, -0.5120693445205688, 0.23876959085464478, 0.2781742811203003, 0.5479193925857544, 0.639934778213501, -0.8749434351921082, -0.5275321006774902, -0.5624463558197021, -0.7802419662475586, -0.06206129863858223, -0.2200496792793274, -0.2174684852361679, -0.021094344556331635, 0.5581446290016174, -0.8835978507995605, 0.3295477032661438, 0.5479509830474854, -0.480750173330307, 0.27695101499557495, -0.3324598968029022, -0.14303481578826904, -1.4435076713562012, 0.06757009029388428, 0.05034640058875084, -0.17616751790046692, -0.4045904874801636, 0.10485833883285522, 0.17876315116882324, -0.05408607795834541, -0.44679057598114014, 0.3781035840511322, -0.45212462544441223, 0.24287837743759155, -0.07439994066953659, 0.43099281191825867, 0.09448885917663574, 0.7281083464622498, -0.07171791791915894, 0.7289623022079468, 0.6074174642562866, -0.6415514349937439, 0.36577314138412476, 0.7272422909736633, -0.46281784772872925, 0.2694878578186035, -0.9852737188339233, -0.01500188373029232, -0.03230865299701691, 0.4171890318393707, -1.1886426210403442, -0.022989388555288315, 0.2878807485103607, -0.5090342164039612, 0.02291545830667019, 0.20981593430042267, -0.6849862933158875, -0.5979941487312317, -0.4285619556903839, 0.13550226390361786, 0.6952831745147705, -0.5284591317176819, 0.5379268527030945, 0.26360276341438293, -0.1474675089120865, -0.5065018534660339, -1.059121012687683, 0.07928742468357086, -0.3992544412612915, -0.5739110112190247, 0.6570656895637512, -0.087382473051548, 0.10592161864042282, 0.20423686504364014, 0.18593595921993256, -0.11786932498216629, 0.006124106701463461, -0.04528440535068512, 0.20986580848693848, -0.0029104033019393682, 0.06566939502954483, 0.2503696084022522, -0.08736621588468552, 0.08576632291078568, -0.2045043557882309, 0.7473787069320679, -0.18918117880821228, -0.07457965612411499, -0.5084972977638245, 0.16438788175582886, 0.5527868866920471, -0.27776628732681274, 1.0561714172363281, 0.8875604271888733, -0.30998969078063965, -0.00019628633162938058, -0.44563379883766174, -0.23481084406375885, -0.5021013617515564, 0.6452649831771851, -0.2545003592967987, -0.780022144317627, 0.3943225145339966, 0.19743888080120087, 0.056846000254154205, 0.6531091928482056, 0.5996867418289185, -0.12597063183784485, 0.7536383271217346, 0.4315156638622284, -0.2057872712612152, 0.550994336605072, -0.5273377299308777, 0.21344134211540222, -0.894014835357666, -0.02155139110982418, -0.3643946051597595, -0.30952924489974976, -0.6222943663597107, -0.5349834561347961, 0.23842905461788177, 0.050795216113328934, -0.20822088420391083, 0.7578283548355103, -0.6706633567810059, 0.2276603728532791, 0.6775864958763123, 0.2440921813249588, 0.03214045614004135, 0.06887878477573395, -0.3432173430919647, -0.022584283724427223, -0.6990058422088623, -0.6029291749000549, 0.9241138696670532, 0.30580028891563416, 0.46895313262939453, -0.13023360073566437, 0.839512050151825, -0.011201792396605015, -0.08872779458761215, -0.5068250894546509, 0.6506466269493103, -0.3003448247909546, -0.44618669152259827, -0.3478260338306427, -0.31225115060806274, -0.8506491780281067, 0.42063698172569275, -0.02786875329911709, -0.711100697517395, 0.10116755217313766, -0.1776989847421646, -0.3262515664100647, 0.18594993650913239, -0.7669561505317688, 1.0704212188720703, 0.11823276430368423, -0.09959074854850769, -0.07070153206586838, -0.7982587218284607, 0.14058198034763336, 0.14800672233104706, 0.08453234285116196, -0.007317713927477598, -0.02943609468638897, 0.8741071820259094, -0.3539468050003052, 0.8448159098625183, -0.21747338771820068, 0.30391761660575867, 0.3997832238674164, -0.2537124454975128, 0.29417911171913147, -0.06843441724777222, -0.09294741600751877, 0.07667210698127747, -0.003347421530634165, -0.41164863109588623, -0.6078853607177734, 0.6750327348709106, -0.8776166439056396, -0.42311713099479675, -0.4484959542751312, -0.6124714612960815, 0.03412911668419838, 0.14694379270076752, 0.44608986377716064, 0.35117411613464355, -0.11122351139783859, 0.6151300668716431, 0.5593397617340088, -0.27559930086135864, 0.6926828622817993, 0.05380961671471596, 0.011665615253150463, -0.4695724546909332, 0.6498961448669434, 0.007779306266456842, 0.12877388298511505, 0.558860182762146, 0.2657301127910614, -0.48492348194122314, -0.3043723404407501, -0.2864280939102173, 0.41817328333854675, -0.6320844888687134, -0.13772812485694885, -1.0798755884170532, -0.45360565185546875, -0.621863603591919, 0.04655476287007332, -0.1513703316450119, -0.46682628989219666, -0.46722614765167236, -0.2789134383201599, 0.46715036034584045, 0.39714667201042175, 0.04623166471719742, 0.4085920751094818, -0.6858421564102173, 0.2749338448047638, 0.19019587337970734, -0.14125707745552063, -0.08480554819107056, -0.9162043333053589, -0.24276232719421387, 0.07263072580099106, -0.48484382033348083, -0.9106557369232178, 0.6426704525947571, 0.2889553904533386, 0.5967897772789001, 0.07975582033395767, 0.19821161031723022, 0.740237832069397, -0.5913245677947998, 0.8757319450378418, 0.009505935944616795, -1.0944608449935913, 0.4207184910774231, -0.03451110050082207, 0.35404348373413086, 0.5977098941802979, 0.3249296247959137, -0.4184861183166504, -0.5245611071586609, -0.7617963552474976, -1.0875149965286255, 0.6426272988319397, 0.6102674603462219, 0.5843828320503235, -0.37242335081100464, 0.3368554711341858, -0.1997087001800537, 0.18290576338768005, -1.1133044958114624, -0.4657716453075409, -0.4317673444747925, -0.6422993540763855, -0.35916146636009216, -0.2020760327577591, 0.1579211950302124, -0.4884888529777527, 0.6647360920906067, 0.12878410518169403, 0.6679062843322754, 0.3411605656147003, -0.5641235709190369, 0.3858550190925598, 0.14877882599830627, 0.4508920907974243, 0.26289480924606323, -0.09773004055023193, 0.24964453279972076, 0.2856178283691406, -0.3811251223087311, 0.04273591563105583, 0.5371726155281067, -0.13225005567073822, 0.3491038978099823, 0.4228930175304413, 0.9441931247711182, 0.5193088054656982, -0.47290676832199097, 0.7226873636245728, -0.0466979518532753, -0.31316256523132324, -0.3549261689186096, -0.1347099095582962, 0.3509877324104309, 0.3776582181453705, 0.33285921812057495, -0.0606713630259037, 0.08941696584224701, -0.3392516076564789, 0.3676294982433319, 0.18811021745204926, -0.2349116951227188, -0.12300895899534225, 0.8228985071182251, 0.02751629427075386, -0.17050494253635406, 0.9329113960266113, -0.18915580213069916, -0.660641610622406, 0.4303700923919678, 0.5696188807487488, 1.0103014707565308, -0.021304961293935776, 0.3288331627845764, 0.45457643270492554, 0.2498467117547989, -0.183597594499588, -0.09208375960588455, -0.05513595789670944, -0.7433567047119141, -0.10338909178972244, -0.7539076805114746, 0.09055286645889282, 0.056604523211717606, -0.7005170583724976, 0.24928686022758484, -0.09615171700716019, -0.022394107654690742, -0.046094100922346115, -0.15636573731899261, -0.6699711084365845, -0.005278478842228651, -0.051915109157562256, 0.7482319474220276, -0.9864673018455505, 0.8457010388374329, 0.6324443817138672, -0.8195247054100037, -0.6529284119606018, 0.10446853190660477, -0.4559665322303772, -0.8191266059875488, 0.5267238020896912, 0.38817107677459717, 0.23076102137565613, 0.24999643862247467, -0.4291222095489502, -0.8225951790809631, 1.4450604915618896, 0.3550679683685303, -0.3838731050491333, -0.37243494391441345, 0.16670109331607819, 0.5734311938285828, -0.33729350566864014, 0.3260359466075897, 0.4979690909385681, 0.29605236649513245, -0.01866302266716957, -0.7489950060844421, 0.27651339769363403, -0.2251569628715515, 0.24564023315906525, -0.1655433624982834, -0.5144593715667725, 1.1118464469909668, 0.06785376369953156, -0.08463862538337708, 0.2900508940219879, 0.8355025053024292, 0.31556442379951477, -0.03649713471531868, 0.466556191444397, 0.7656742334365845, 0.49257123470306396, -0.01273469440639019, 0.9424991011619568, -0.42254436016082764, 0.8259618282318115, 1.0548678636550903, 0.06981205940246582, 1.050004243850708, 0.6102159023284912, -0.2071482241153717, 0.7524945735931396, 0.42712074518203735, -0.1926083117723465, 0.8168702125549316, 0.14147518575191498, -0.055796004831790924, 0.0009928483050316572, 0.3022118806838989, -0.21607474982738495, 0.4508626163005829, 0.1538850963115692, -0.7502622008323669, -0.23403534293174744, 0.1356840431690216, 0.026385225355625153, 0.0933319628238678, 0.1334822177886963, 0.6203953623771667, 0.2032167911529541, -0.549725353717804, 0.5150971412658691, 0.13751710951328278, 0.9217978119850159, -0.38111573457717896, 0.11895989626646042, -0.1085628867149353, 0.4280620217323303, 0.10020999610424042, -0.6128880977630615, 0.4198300242424011, -0.09995992481708527, -0.03925936669111252, -0.2717267870903015, 0.5194966197013855, -0.6301931142807007, -0.654331624507904, 0.37109848856925964, 0.5063536167144775, 0.11259938776493073, -0.12204191833734512, -1.1782537698745728, -0.09952947497367859, 0.047103915363550186, -0.517583429813385, 0.2467956244945526, 0.5080969333648682, 0.3521984815597534, 0.5485765337944031, 0.3299930989742279, -0.30615001916885376, 0.2282348871231079, -0.0005733182188123465, 0.8590772151947021, -0.5917006134986877, -0.4949297308921814, -1.1483819484710693, 0.6559315919876099, -0.293989896774292, -0.3558703660964966, 0.8782305121421814, 0.5247126221656799, 0.8198046088218689, -0.3001018166542053, 0.626290500164032, -0.2596662640571594, 0.2728073298931122, -0.46026426553726196, 0.8169960379600525, -0.4203297793865204, -0.1440693587064743, -0.4172876477241516, -0.9844053387641907, -0.21083983778953552, 1.1840648651123047, -0.3608707785606384, 0.07864107936620712, 0.9811830520629883, 0.8324657678604126, -0.22049321234226227, -0.17957749962806702, 0.13725078105926514, 0.3738555908203125, 0.199449360370636, 0.49343082308769226, 0.40727412700653076, -0.8925384879112244, 0.8326500654220581, -0.6147763133049011, -0.0996885821223259, -0.13894955813884735, -0.7428829073905945, -0.9887464642524719, -0.9681056141853333, -0.4399357736110687, -0.32027918100357056, -0.11457781493663788, 0.8671356439590454, 0.4851122200489044, -0.6699357032775879, -0.05862598121166229, -0.4615197479724884, -0.212707057595253, -0.2122216671705246, -0.3205038905143738, 0.5164657235145569, -0.5389544367790222, -1.0237181186676025, 0.12433825433254242, -0.0980500802397728, 0.0477190837264061, -0.285759299993515, 0.1258036494255066, -0.6739744544029236, 0.08652492612600327, 0.519956111907959, -0.23732595145702362, -0.7495948672294617, -0.20692014694213867, 0.0007585586281493306, -0.39539146423339844, -0.10572720319032669, 0.31881389021873474, -0.6414268016815186, 0.16602231562137604, 0.42707616090774536, 0.5436695218086243, 0.7243751883506775, -0.14585192501544952, 0.4181538224220276, -0.7420426607131958, 0.3485598564147949, 0.11375556141138077, 0.7122087478637695, 0.3930196166038513, -0.17768925428390503, 0.44672277569770813, 0.29413923621177673, -0.5226319432258606, -0.7380341291427612, -0.18452933430671692, -1.0657322406768799, -0.3274290859699249, 1.1789120435714722, -0.4403021037578583, -0.41062629222869873, 0.11846393346786499, -0.28804826736450195, 0.5590648055076599, -0.263082891702652, 0.7716678380966187, 0.8676379919052124, 0.11618508398532867, -0.14811109006404877, -0.2935343086719513, 0.18784885108470917, 0.5150286555290222, -0.5139216184616089, -0.06295811384916306, 0.22536274790763855, 0.47202056646347046, 0.26041412353515625, 0.40108758211135864, -0.1018606424331665, 0.014208178967237473, 0.1078377217054367, 0.014761452563107014, -0.18184161186218262, 0.050333816558122635, -0.39484480023384094, 0.14386193454265594, -0.37152791023254395, -0.504006564617157 ]
Helsinki-NLP/opus-mt-tc-big-ar-en
Helsinki-NLP
"2023-08-16T12:10:50Z"
18,270
9
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "opus-mt-tc", "ar", "en", "license:cc-by-4.0", "model-index", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-04-13T15:18:06Z"
--- language: - ar - en tags: - translation - opus-mt-tc license: cc-by-4.0 model-index: - name: opus-mt-tc-big-ar-en results: - task: name: Translation ara-eng type: translation args: ara-eng dataset: name: flores101-devtest type: flores_101 args: ara eng devtest metrics: - name: BLEU type: bleu value: 42.6 - task: name: Translation ara-eng type: translation args: ara-eng dataset: name: tatoeba-test-v2021-08-07 type: tatoeba_mt args: ara-eng metrics: - name: BLEU type: bleu value: 47.3 - task: name: Translation ara-eng type: translation args: ara-eng dataset: name: tico19-test type: tico19-test args: ara-eng metrics: - name: BLEU type: bleu value: 44.4 --- # opus-mt-tc-big-ar-en Neural machine translation model for translating from Arabic (ar) to English (en). This model is part of the [OPUS-MT project](https://github.com/Helsinki-NLP/Opus-MT), an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of [Marian NMT](https://marian-nmt.github.io/), an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from [OPUS](https://opus.nlpl.eu/) and training pipelines use the procedures of [OPUS-MT-train](https://github.com/Helsinki-NLP/Opus-MT-train). * Publications: [OPUS-MT – Building open translation services for the World](https://aclanthology.org/2020.eamt-1.61/) and [The Tatoeba Translation Challenge – Realistic Data Sets for Low Resource and Multilingual MT](https://aclanthology.org/2020.wmt-1.139/) (Please, cite if you use this model.) ``` @inproceedings{tiedemann-thottingal-2020-opus, title = "{OPUS}-{MT} {--} Building open translation services for the World", author = {Tiedemann, J{\"o}rg and Thottingal, Santhosh}, booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation", month = nov, year = "2020", address = "Lisboa, Portugal", publisher = "European Association for Machine Translation", url = "https://aclanthology.org/2020.eamt-1.61", pages = "479--480", } @inproceedings{tiedemann-2020-tatoeba, title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}", author = {Tiedemann, J{\"o}rg}, booktitle = "Proceedings of the Fifth Conference on Machine Translation", month = nov, year = "2020", address = "Online", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2020.wmt-1.139", pages = "1174--1182", } ``` ## Model info * Release: 2022-03-09 * source language(s): afb ara arz * target language(s): eng * model: transformer-big * data: opusTCv20210807+bt ([source](https://github.com/Helsinki-NLP/Tatoeba-Challenge)) * tokenization: SentencePiece (spm32k,spm32k) * original model: [opusTCv20210807+bt_transformer-big_2022-03-09.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/ara-eng/opusTCv20210807+bt_transformer-big_2022-03-09.zip) * more information released models: [OPUS-MT ara-eng README](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/ara-eng/README.md) ## Usage A short example code: ```python from transformers import MarianMTModel, MarianTokenizer src_text = [ "اتبع قلبك فحسب.", "وين راهي دّوش؟" ] model_name = "pytorch-models/opus-mt-tc-big-ar-en" tokenizer = MarianTokenizer.from_pretrained(model_name) model = MarianMTModel.from_pretrained(model_name) translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True)) for t in translated: print( tokenizer.decode(t, skip_special_tokens=True) ) # expected output: # Just follow your heart. # Wayne Rahi Dosh? ``` You can also use OPUS-MT models with the transformers pipelines, for example: ```python from transformers import pipeline pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-ar-en") print(pipe("اتبع قلبك فحسب.")) # expected output: Just follow your heart. ``` ## Benchmarks * test set translations: [opusTCv20210807+bt_transformer-big_2022-03-09.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/ara-eng/opusTCv20210807+bt_transformer-big_2022-03-09.test.txt) * test set scores: [opusTCv20210807+bt_transformer-big_2022-03-09.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/ara-eng/opusTCv20210807+bt_transformer-big_2022-03-09.eval.txt) * benchmark results: [benchmark_results.txt](benchmark_results.txt) * benchmark output: [benchmark_translations.zip](benchmark_translations.zip) | langpair | testset | chr-F | BLEU | #sent | #words | |----------|---------|-------|-------|-------|--------| | ara-eng | tatoeba-test-v2021-08-07 | 0.63477 | 47.3 | 10305 | 76975 | | ara-eng | flores101-devtest | 0.66987 | 42.6 | 1012 | 24721 | | ara-eng | tico19-test | 0.68521 | 44.4 | 2100 | 56323 | ## Acknowledgements The work is supported by the [European Language Grid](https://www.european-language-grid.eu/) as [pilot project 2866](https://live.european-language-grid.eu/catalogue/#/resource/projects/2866), by the [FoTran project](https://www.helsinki.fi/en/researchgroups/natural-language-understanding-with-cross-lingual-grounding), funded by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 771113), and the [MeMAD project](https://memad.eu/), funded by the European Union’s Horizon 2020 Research and Innovation Programme under grant agreement No 780069. We are also grateful for the generous computational resources and IT infrastructure provided by [CSC -- IT Center for Science](https://www.csc.fi/), Finland. ## Model conversion info * transformers version: 4.16.2 * OPUS-MT git hash: 3405783 * port time: Wed Apr 13 18:17:57 EEST 2022 * port machine: LM0-400-22516.local
[ -0.3748573064804077, -0.5575150847434998, 0.2420426458120346, 0.24675646424293518, -0.5160123705863953, -0.21577957272529602, -0.5186635255813599, -0.3269186317920685, 0.14931467175483704, 0.41071730852127075, -0.42344430088996887, -0.7409529089927673, -0.686798632144928, 0.3664635121822357, -0.21873223781585693, 0.8715974688529968, -0.411579430103302, 0.25977855920791626, 0.3399781286716461, -0.39016684889793396, -0.13848306238651276, -0.4635351896286011, -0.4374343454837799, -0.34865251183509827, 0.2970491647720337, 0.1621016263961792, 0.5546202659606934, 0.6835776567459106, 0.5689976811408997, 0.35213324427604675, -0.25695210695266724, 0.26821571588516235, -0.08692364394664764, -0.16390863060951233, 0.09013111144304276, -0.4168959856033325, -0.5901022553443909, -0.08962959796190262, 0.9522624611854553, 0.5773215889930725, 0.09570249170064926, 0.37615451216697693, 0.10029427707195282, 0.6940591335296631, -0.1859394907951355, 0.13925038278102875, -0.5787507891654968, 0.09726071357727051, -0.31738507747650146, -0.27158933877944946, -0.556385338306427, -0.15727435052394867, 0.04270368814468384, -0.5052759051322937, -0.011431315913796425, 0.11103161424398422, 1.2787792682647705, 0.22268150746822357, -0.39021366834640503, -0.18667279183864594, -0.7554202675819397, 1.0344903469085693, -0.8346845507621765, 0.6504135131835938, 0.25558629631996155, 0.04356696084141731, -0.1348513662815094, -0.6710873246192932, -0.6242756843566895, -0.09694942831993103, -0.1715708076953888, 0.2542831301689148, -0.3519430160522461, -0.13090716302394867, 0.19804255664348602, 0.5945512652397156, -0.6670733690261841, -0.014064189977943897, -0.4549815058708191, -0.1781853586435318, 0.44910845160484314, -0.010081104934215546, 0.27953851222991943, -0.3622134327888489, -0.4159815311431885, -0.47280046343803406, -0.7367644906044006, 0.12689657509326935, 0.3276738226413727, 0.3775959312915802, -0.6517820954322815, 0.7205124497413635, -0.019835911691188812, 0.7258581519126892, 0.0056417337618768215, -0.032372426241636276, 0.6902689933776855, -0.5334080457687378, -0.21386872231960297, -0.15590807795524597, 1.2367417812347412, 0.2037954032421112, 0.11050314456224442, -0.20357857644557953, -0.1388944387435913, -0.15992434322834015, -0.20087198913097382, -0.8866742253303528, 0.2241244614124298, 0.29703590273857117, -0.4844496548175812, -0.03449413552880287, -0.09207512438297272, -0.5853015780448914, 0.20711874961853027, -0.2805855870246887, 0.4735538363456726, -0.6993922591209412, -0.4648738205432892, 0.247453972697258, 0.13372457027435303, 0.3412931263446808, 0.029003269970417023, -0.5769621729850769, -0.007054599467664957, 0.4197423458099365, 0.9618793725967407, -0.11389489471912384, -0.5213701725006104, -0.5288662910461426, -0.07040958851575851, -0.27327173948287964, 0.4551314115524292, -0.1579938381910324, -0.28736746311187744, -0.14610029757022858, 0.21093067526817322, -0.21029217541217804, -0.2808491289615631, 0.9142330288887024, -0.39813023805618286, 0.4165321886539459, -0.2228064239025116, -0.34021255373954773, -0.33485832810401917, 0.25834035873413086, -0.46205762028694153, 1.1453731060028076, 0.09321162104606628, -0.8766680955886841, 0.06463541835546494, -0.7002398371696472, -0.24627617001533508, -0.13180957734584808, 0.109598308801651, -0.5188071131706238, 0.07288947701454163, 0.3234221935272217, 0.41978275775909424, -0.6251894235610962, 0.36024829745292664, 0.09909647703170776, -0.1834465116262436, 0.19453643262386322, -0.5586398839950562, 1.067244052886963, 0.38003331422805786, -0.5294960141181946, 0.16293951869010925, -0.7520108222961426, 0.021316541358828545, 0.08626069873571396, -0.43287327885627747, -0.15299583971500397, -0.11250230669975281, 0.1622653305530548, 0.3518761694431305, 0.18977199494838715, -0.6407360434532166, 0.15402820706367493, -0.7358105182647705, 0.4430752098560333, 0.6994941830635071, -0.28427669405937195, 0.3708157539367676, -0.2534867823123932, 0.49320313334465027, 0.25773507356643677, -0.14293956756591797, -0.14160661399364471, -0.5850244760513306, -0.9641598463058472, -0.29585450887680054, 0.6037011742591858, 0.5596574544906616, -1.088074803352356, 0.6502633094787598, -0.7059868574142456, -0.8593328595161438, -0.8032580018043518, -0.2260909080505371, 0.634813129901886, 0.36066189408302307, 0.6480955481529236, -0.20311370491981506, -0.5500538945198059, -0.8705989718437195, -0.32372844219207764, -0.21114656329154968, -0.00940258614718914, 0.15772679448127747, 0.6870787143707275, -0.3145667016506195, 0.6105030179023743, -0.16698922216892242, -0.35429662466049194, -0.347535103559494, 0.1883479356765747, 0.6044191718101501, 0.7492395043373108, 0.4536404609680176, -0.7964012026786804, -0.7233594059944153, 0.40661343932151794, -0.6863781809806824, -0.04768461361527443, -0.0075270202942192554, -0.25855839252471924, 0.37712642550468445, 0.1555878072977066, -0.6824272871017456, 0.22814828157424927, 0.7569113373756409, -0.4782182574272156, 0.46526584029197693, -0.18016691505908966, 0.27454742789268494, -1.550926923751831, 0.239053413271904, -0.1050824224948883, -0.12014254927635193, -0.6232350468635559, 0.1330537348985672, 0.048912420868873596, 0.10309834033250809, -0.7010889649391174, 0.7202637791633606, -0.6193974614143372, -0.011564642190933228, 0.23752860724925995, -0.03624580428004265, -0.07791296392679214, 0.8395240306854248, 0.016531147062778473, 0.9430800080299377, 0.6064965724945068, -0.6095225214958191, 0.1884356141090393, 0.5266880989074707, -0.32363200187683105, 0.19611309468746185, -0.772304117679596, 0.08113640546798706, 0.1729198694229126, 0.09095047414302826, -0.638505756855011, 0.11792829632759094, 0.5164498686790466, -0.7500159740447998, 0.404937207698822, -0.3427191376686096, -0.7728828191757202, -0.27519160509109497, -0.13553035259246826, 0.5346468091011047, 0.5618180632591248, -0.47329604625701904, 0.8332502841949463, 0.08030629903078079, 0.010779004544019699, -0.6787750124931335, -0.8877068758010864, 0.08401785045862198, -0.28151899576187134, -0.7582829594612122, 0.4421525299549103, -0.14030393958091736, 0.030141029506921768, 0.039013102650642395, 0.08128487318754196, 0.05517507344484329, 0.014782458543777466, 0.061695367097854614, 0.13664156198501587, -0.44627419114112854, -0.03156474232673645, 0.03419313207268715, -0.3275766670703888, -0.17632311582565308, -0.5711745619773865, 0.8698127269744873, -0.5563502311706543, -0.23493775725364685, -0.7310182452201843, 0.28499990701675415, 0.7931154370307922, -0.6556711196899414, 1.0462679862976074, 0.7502735257148743, -0.2789587080478668, 0.1894397884607315, -0.39024218916893005, 0.03461068496108055, -0.4571537971496582, 0.4423692226409912, -0.6116667985916138, -0.7271190881729126, 0.7254385352134705, 0.16325107216835022, 0.24535474181175232, 0.9385643601417542, 0.8590569496154785, 0.2711060047149658, 0.9857921600341797, 0.3499159514904022, 0.03578277677297592, 0.2987971603870392, -0.7107697129249573, 0.15043063461780548, -1.029590368270874, -0.06228208541870117, -0.7112079858779907, -0.19354647397994995, -0.8415273427963257, -0.5761822462081909, 0.3660506010055542, -0.018712779507040977, -0.13270074129104614, 0.6256993412971497, -0.5018274784088135, 0.0883413702249527, 0.5143340826034546, -0.16622325778007507, 0.3540177345275879, 0.24257461726665497, -0.5071092247962952, -0.2867758274078369, -0.6089088916778564, -0.5909138917922974, 1.2184196710586548, 0.3953363597393036, 0.23954300582408905, 0.27148890495300293, 0.6237471103668213, -0.10809503495693207, 0.32411545515060425, -0.581234335899353, 0.4912151098251343, -0.25480011105537415, -0.5608909726142883, -0.1705041229724884, -0.6667312383651733, -0.9882016181945801, 0.54848712682724, -0.11704976856708527, -0.6341234445571899, 0.13057595491409302, -0.04025440290570259, -0.07865267992019653, 0.6761326193809509, -0.6412060260772705, 0.9650709629058838, -0.149968683719635, -0.2638561427593231, -0.04787863790988922, -0.5580288171768188, 0.15114019811153412, -0.020330769941210747, 0.2868577837944031, 0.0017990772612392902, 0.03729814291000366, 0.8639031648635864, -0.3770667612552643, 0.4989040791988373, 0.004017425235360861, -0.17275157570838928, 0.15894022583961487, 0.01963208243250847, 0.5550351738929749, -0.18969401717185974, -0.35679686069488525, 0.6038411855697632, -0.04414181783795357, -0.41065463423728943, -0.21266557276248932, 0.611793041229248, -0.9702770113945007, -0.38729408383369446, -0.5262290239334106, -0.6314057111740112, 0.09470714628696442, 0.42813989520072937, 0.6273770332336426, 0.6404052972793579, 0.04861002787947655, 0.47530221939086914, 0.4780485928058624, -0.48488378524780273, 0.4547278583049774, 0.5646798014640808, -0.1386151760816574, -0.5230498909950256, 0.8969496488571167, 0.34092631936073303, 0.3253155052661896, 0.5660880208015442, 0.16602835059165955, -0.22719542682170868, -0.7420780658721924, -0.925865113735199, 0.50965416431427, -0.526081919670105, -0.2305072396993637, -0.7875999808311462, -0.12983906269073486, -0.3137340843677521, 0.14165550470352173, -0.6262471675872803, -0.5474230647087097, -0.21396903693675995, -0.04872649535536766, 0.4442136585712433, 0.37236452102661133, 0.007147126831114292, 0.3460419476032257, -1.0201119184494019, 0.18085877597332, -0.2800655961036682, 0.33014780282974243, -0.07092801481485367, -0.8799852728843689, -0.49114543199539185, 0.28890231251716614, -0.406724214553833, -0.8865009546279907, 0.755011260509491, 0.07022923231124878, 0.2761061191558838, 0.11326669901609421, 0.11307282000780106, 0.5959085822105408, -0.7232103943824768, 0.8130735158920288, 0.04912755265831947, -1.0102527141571045, 0.36369672417640686, -0.3879888951778412, 0.307565838098526, 0.37323668599128723, 0.2847231328487396, -0.7053385972976685, -0.5830020308494568, -0.7106570601463318, -0.9871060252189636, 0.9842235445976257, 0.6627774238586426, 0.057793207466602325, 0.04547387361526489, 0.07875273376703262, 0.0006502479081973433, 0.11983592063188553, -1.0195844173431396, -0.6050591468811035, -0.0648171678185463, -0.2972720265388489, -0.1866082400083542, -0.15898734331130981, 0.02210305631160736, -0.3721886873245239, 1.071492314338684, 0.0919017642736435, 0.4557003080844879, 0.39624860882759094, -0.29873162508010864, -0.12605950236320496, 0.3281944692134857, 0.7062458395957947, 0.42310628294944763, -0.13974954187870026, 0.06154387816786766, 0.3315304219722748, -0.47336724400520325, 0.053665339946746826, 0.15764391422271729, -0.3157957196235657, 0.37573695182800293, 0.3757702708244324, 1.0221889019012451, 0.04956802353262901, -0.451544851064682, 0.44847792387008667, -0.1274147629737854, -0.2744612395763397, -0.45306089520454407, -0.42288938164711, 0.14455078542232513, 0.10407160222530365, 0.3773798644542694, 0.16081029176712036, -0.10715809464454651, -0.24928410351276398, 0.006550153251737356, 0.20209525525569916, -0.2783074676990509, -0.5863185524940491, 0.7610278725624084, 0.13649234175682068, -0.32917118072509766, 0.5252318382263184, -0.26988816261291504, -0.7984662055969238, 0.5261550545692444, 0.415891170501709, 1.1198277473449707, -0.16758514940738678, -0.00764877162873745, 0.7421460747718811, 0.5772977471351624, -0.059063978493213654, 0.19669680297374725, -0.06968382000923157, -0.6416850090026855, -0.48421618342399597, -0.8738483190536499, -0.05508715659379959, 0.02689393237233162, -0.6245115399360657, 0.3372947573661804, 0.021544694900512695, -0.057257506996393204, -0.2008400559425354, 0.16278134286403656, -0.6898863315582275, 0.04729943722486496, -0.10569924861192703, 0.8999113440513611, -0.8612430691719055, 0.9721991419792175, 0.6562635898590088, -0.5270511507987976, -1.0214110612869263, -0.11030638217926025, -0.37491244077682495, -0.631801187992096, 0.6878349781036377, 0.21877019107341766, -0.06144630163908005, 0.21677370369434357, -0.2121754288673401, -0.9743562340736389, 1.0064994096755981, 0.44994693994522095, -0.36022675037384033, -0.017778482288122177, 0.4205779731273651, 0.6560459136962891, -0.1989334374666214, 0.3027442693710327, 0.40613844990730286, 0.7036922574043274, -0.0528515949845314, -1.0987508296966553, -0.010728126391768456, -0.6825233101844788, -0.017901871353387833, 0.33838021755218506, -0.6574832797050476, 1.059584617614746, 0.12886524200439453, -0.29207196831703186, 0.28053000569343567, 0.7859578728675842, 0.22563296556472778, 0.03352588042616844, 0.36300042271614075, 0.84112948179245, 0.422622948884964, -0.4173221290111542, 1.162196397781372, -0.47636494040489197, 0.4969959557056427, 0.7654612064361572, 0.22875511646270752, 0.9159212112426758, 0.5895861983299255, -0.27609142661094666, 0.49211400747299194, 0.5742268562316895, 0.016137665137648582, 0.26190459728240967, -0.10103429108858109, 0.0202935878187418, -0.10087533295154572, -0.15733689069747925, -0.7813497185707092, 0.40537306666374207, 0.265330046415329, -0.3568030595779419, -0.05784168839454651, -0.054670460522174835, 0.24426928162574768, -0.01298839133232832, -0.11133132129907608, 0.47890329360961914, 0.16621033847332, -0.7500370144844055, 1.156738042831421, 0.3656821548938751, 0.7348266243934631, -0.5410641431808472, 0.10845082998275757, -0.14388075470924377, 0.3439050018787384, -0.07042457163333893, -0.5252912044525146, 0.3204328715801239, 0.27398908138275146, -0.17694033682346344, -0.4959762692451477, 0.005417437758296728, -0.6739789247512817, -0.8331624269485474, 0.44448739290237427, 0.4867098331451416, 0.384336918592453, 0.10360528528690338, -0.7387468814849854, 0.10341721028089523, 0.28025954961776733, -0.5500103831291199, 0.03971833363175392, 0.6010713577270508, -0.006165532395243645, 0.5371181964874268, 0.7387086153030396, 0.3085074722766876, 0.25751230120658875, -0.19562049210071564, 0.711681067943573, -0.4901357889175415, -0.47067585587501526, -0.9369456171989441, 0.7770456671714783, 0.15304166078567505, -0.5795972347259521, 0.8478620648384094, 0.8051920533180237, 0.9269669651985168, -0.1580633819103241, 0.4990980327129364, -0.11970268189907074, 0.5283790826797485, -0.6187134981155396, 0.7608807682991028, -0.8877764940261841, 0.30733150243759155, -0.230499267578125, -1.0318838357925415, -0.3046892285346985, 0.4443400502204895, -0.2547213137149811, -0.09058497846126556, 0.7759499549865723, 0.7266013026237488, -0.09871253371238708, -0.3815549910068512, 0.1508892923593521, 0.5492225289344788, 0.41089779138565063, 0.7689787149429321, 0.4701278805732727, -0.9690594673156738, 0.6532986760139465, -0.37566953897476196, -0.01782010868191719, -0.0679459199309349, -0.6471970677375793, -0.8265669941902161, -0.8201291561126709, -0.17721225321292877, -0.4698500335216522, -0.17993460595607758, 1.1483756303787231, 0.3166370391845703, -0.9019373059272766, -0.37182924151420593, -0.10423804074525833, 0.19562068581581116, -0.24263431131839752, -0.15657737851142883, 0.7066742777824402, -0.050612106919288635, -1.1049015522003174, 0.27200567722320557, 0.07182828336954117, 0.11951743811368942, -0.05244407802820206, -0.39002183079719543, -0.39072996377944946, -0.1844104677438736, 0.2970816493034363, 0.18717467784881592, -0.938976526260376, -0.037773631513118744, 0.21394562721252441, -0.19739210605621338, 0.27700626850128174, 0.29855141043663025, -0.45323115587234497, 0.3855682611465454, 0.5814263224601746, 0.6293030381202698, 0.5714946985244751, -0.30165958404541016, 0.6283983588218689, -0.6358946561813354, 0.514171302318573, 0.22625035047531128, 0.5476084351539612, 0.4753594994544983, -0.05023497715592384, 0.5841938257217407, 0.24276258051395416, -0.273700088262558, -1.1564944982528687, 0.11485195904970169, -0.9670981168746948, 0.047781553119421005, 1.1770589351654053, -0.2608092129230499, -0.35924574732780457, 0.20184609293937683, -0.22181706130504608, 0.5849990248680115, -0.2801287770271301, 0.4562171995639801, 0.7038037180900574, 0.5063205361366272, 0.0298304483294487, -0.5603244304656982, 0.2942432165145874, 0.7511959075927734, -0.526466965675354, -0.03700880706310272, 0.07617434114217758, 0.10726355016231537, 0.3513558506965637, 0.41548916697502136, -0.25460606813430786, 0.15867897868156433, -0.3231498897075653, 0.4537496864795685, -0.16462825238704681, -0.12165796011686325, -0.4075245261192322, -0.1364295780658722, -0.07671899348497391, -0.18902601301670074 ]
finiteautomata/bertweet-base-emotion-analysis
finiteautomata
"2023-03-20T14:47:04Z"
18,262
11
transformers
[ "transformers", "pytorch", "safetensors", "roberta", "text-classification", "emotion-analysis", "en", "arxiv:2106.09462", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: - en tags: - emotion-analysis --- # Emotion Analysis in English ## bertweet-base-emotion-analysis Repository: [https://github.com/finiteautomata/pysentimiento/](https://github.com/finiteautomata/pysentimiento/) Model trained with EmoEvent corpus for Emotion detection in English. Base model is [BerTweet](https://huggingface.co/vinai/bertweet-base). ## License `pysentimiento` is an open-source library for non-commercial use and scientific research purposes only. Please be aware that models are trained with third-party datasets and are subject to their respective licenses. 1. [TASS Dataset license](http://tass.sepln.org/tass_data/download.php) 2. [SEMEval 2017 Dataset license]() ## Citation If you use `pysentimiento` in your work, please cite [this paper](https://arxiv.org/abs/2106.09462) ``` @misc{perez2021pysentimiento, title={pysentimiento: A Python Toolkit for Sentiment Analysis and SocialNLP tasks}, author={Juan Manuel Pérez and Juan Carlos Giudici and Franco Luque}, year={2021}, eprint={2106.09462}, archivePrefix={arXiv}, primaryClass={cs.CL} } ``` and also the dataset related paper ``` @inproceedings{del2020emoevent, title={EmoEvent: A multilingual emotion corpus based on different events}, author={del Arco, Flor Miriam Plaza and Strapparava, Carlo and Lopez, L Alfonso Urena and Mart{\'\i}n-Valdivia, M Teresa}, booktitle={Proceedings of the 12th Language Resources and Evaluation Conference}, pages={1492--1498}, year={2020} } ``` Enjoy! 🤗
[ -0.20417466759681702, -0.7265053391456604, 0.266853392124176, 0.7399898171424866, -0.44620388746261597, -0.16130490601062775, -0.5531039834022522, -0.44208818674087524, 0.5987041592597961, -0.2390105277299881, -0.4892248809337616, -0.8596605658531189, -0.5455089211463928, 0.19498448073863983, 0.003438310930505395, 0.7617183327674866, -0.33577945828437805, 0.23321712017059326, -0.05386530980467796, -0.32239824533462524, 0.3347261846065521, -0.5421420335769653, -0.7959524393081665, -0.033806655555963516, 0.6923497915267944, 0.29644179344177246, 0.15503613650798798, -0.30415934324264526, 0.1885373592376709, 0.2936060130596161, -0.12072642892599106, -0.05402068421244621, -0.30333012342453003, 0.3231787085533142, -0.03765491768717766, -0.22206611931324005, -0.42759960889816284, -0.30935803055763245, 0.45882448554039, 0.08331120014190674, -0.0632682740688324, 0.006236086133867502, -0.07507169991731644, 0.673882246017456, -0.6879929304122925, 0.41897013783454895, -0.38015833497047424, 0.20239698886871338, -0.23498643934726715, -0.053965941071510315, -0.25144800543785095, -0.8233386278152466, 0.05273962393403053, -0.07898783683776855, -0.0899583250284195, 0.0057189748622477055, 1.086266040802002, 0.06356204301118851, -0.23786236345767975, -0.3342200517654419, -0.1281309276819229, 0.8452562689781189, -0.875047504901886, 0.48155033588409424, 0.1245509535074234, -0.037790555506944656, 0.07903595268726349, -0.3804490566253662, -0.6042562127113342, -0.014132603071630001, 0.4235527515411377, 0.34403863549232483, -0.6222801804542542, -0.15786340832710266, -0.023564135655760765, 0.1429334133863449, -0.47659510374069214, 0.015878748148679733, -0.2972154915332794, -0.15844355523586273, 0.6085106134414673, 0.014573117718100548, 0.2901117503643036, -0.2786601483821869, -0.10788010060787201, -0.2542141377925873, -0.4250032305717468, 0.20522215962409973, 0.5598716139793396, 0.07896657288074493, -0.6725395917892456, 0.41082578897476196, -0.026703469455242157, 0.08602649718523026, -0.19834107160568237, 0.2692112326622009, 0.9026064276695251, 0.09801775217056274, -0.29231733083724976, -0.12781962752342224, 1.2330149412155151, 0.42720404267311096, 0.5400963425636292, 0.07147098332643509, -0.03956674411892891, -0.05347665399312973, -0.07289082556962967, -0.7488841414451599, -0.124932199716568, 0.738578200340271, -0.5550485849380493, -0.2935216724872589, -0.02500617690384388, -1.361676812171936, -0.38234126567840576, 0.12176676839590073, 0.2899121940135956, -0.48818597197532654, -0.7601897120475769, 0.021032458171248436, 0.05109566077589989, 0.23269085586071014, 0.06962832063436508, -0.581780731678009, -0.08949369192123413, 0.4243619441986084, 0.913806140422821, -0.021475812420248985, -0.40009766817092896, 0.03338028863072395, -0.37729573249816895, -0.12680989503860474, 0.7290467619895935, -0.19935838878154755, -0.23065902292728424, 0.525436520576477, 0.3944723904132843, -0.22578397393226624, -0.16419444978237152, 0.9136984944343567, -0.1964210867881775, 0.2969428598880768, -0.16099001467227936, -0.363508015871048, -0.2275431901216507, 0.10909506678581238, -0.6596225500106812, 1.209839940071106, -0.01334115955978632, -1.0402491092681885, -0.11782891303300858, -0.7788768410682678, -0.43504324555397034, -0.27401411533355713, 0.07093703001737595, -0.548227071762085, 0.1932346373796463, 0.160973459482193, 0.6596144437789917, -0.14786718785762787, 0.19219765067100525, -0.6125787496566772, 0.11723057180643082, 0.3600752651691437, -0.03909999877214432, 1.013512134552002, 0.33739086985588074, -0.44300392270088196, 0.043719664216041565, -0.7161171436309814, -0.1562729775905609, 0.3010963499546051, -0.12918110191822052, -0.3671918213367462, 0.09140264987945557, 0.32304394245147705, 0.24269458651542664, 0.4871426224708557, -1.0920788049697876, -0.0921178087592125, -0.4409858286380768, 0.05023894086480141, 0.6108613610267639, 0.05409073084592819, 0.19506357610225677, 0.05508825182914734, 0.7239663004875183, 0.031663861125707626, 0.15264299511909485, -0.027367670089006424, -0.5269536972045898, -0.6468486189842224, -0.2815541923046112, 0.05666615441441536, 0.7229393720626831, -0.6751270890235901, 0.6048324704170227, 0.06195290759205818, -0.6268270015716553, -0.6513118147850037, -0.35059109330177307, 0.23485372960567474, 0.37831488251686096, 0.28568387031555176, 0.17125216126441956, -0.9461029767990112, -0.5447392463684082, -0.33564287424087524, -0.140380859375, 0.17969940602779388, 0.35420843958854675, 0.6805899739265442, -0.18441061675548553, 0.604431688785553, -0.40971240401268005, -0.10428047180175781, -0.13284392654895782, 0.19437359273433685, 0.3382406532764435, 0.37326163053512573, 0.7279086112976074, -0.7701936364173889, -0.7733469009399414, 0.14621734619140625, -0.9009374380111694, -0.4006277620792389, 0.175126314163208, -0.15580974519252777, 0.7906451225280762, 0.1058039590716362, -0.19883018732070923, 0.5321069955825806, 0.5894509553909302, -0.5386707186698914, 0.3096943199634552, -0.10554555803537369, 0.40509289503097534, -1.2180818319320679, -0.003829729976132512, 0.39612796902656555, 0.0021219223272055387, -0.4323614239692688, -0.1278732419013977, 0.1682901233434677, 0.0600358210504055, -0.8984472155570984, 0.682945191860199, -0.2860032320022583, 0.197509765625, 0.0425008125603199, -0.08165042102336884, -0.163289874792099, 0.57196444272995, 0.18030329048633575, 0.20705004036426544, 0.6553601026535034, -0.26901814341545105, 0.6645006537437439, 0.44791898131370544, -0.4027138948440552, 0.6894708871841431, -0.7666743993759155, 0.004419655539095402, -0.14000485837459564, -0.12766028940677643, -1.0552878379821777, -0.22330120205879211, 0.39694732427597046, -0.7800025343894958, 0.14001207053661346, -0.05858150124549866, -0.5225346684455872, -0.27517175674438477, -0.6707172989845276, -0.0513802245259285, 0.6411682367324829, -0.669780969619751, 0.7403786182403564, 0.286994993686676, -0.3528730273246765, -0.5883913040161133, -0.9142184853553772, -0.11580634117126465, -0.5015807151794434, -0.9556047320365906, -0.020378759130835533, -0.03378191962838173, -0.3123141825199127, 0.09109567850828171, 0.2734067142009735, -0.45185765624046326, -0.057655028998851776, 0.27790161967277527, 0.1332010179758072, -0.07404416799545288, 0.3455714285373688, 0.3056730329990387, 0.26093408465385437, 0.10568985342979431, 0.17018690705299377, 0.5900586843490601, -0.335238516330719, -0.052988409996032715, -0.5984872579574585, 0.4859098494052887, 0.6798161268234253, -0.1541234701871872, 0.936761736869812, 1.0110938549041748, -0.6010595560073853, -0.07832324504852295, -0.4985381066799164, 0.18118871748447418, -0.38416171073913574, 0.461344838142395, -0.3529735505580902, -0.7337687611579895, 0.8784881830215454, 0.2374870926141739, -0.1426336169242859, 0.6181363463401794, 1.0041391849517822, -0.3724653124809265, 0.6592148542404175, 0.4573651850223541, -0.18781247735023499, 0.8058179020881653, -0.1502068042755127, 0.07353443652391434, -0.8118593096733093, -0.42348983883857727, -0.8172035813331604, -0.27384066581726074, -0.6769691705703735, -0.06539231538772583, 0.17384274303913116, -0.34684062004089355, -0.46915027499198914, 0.11047911643981934, -0.30588483810424805, 0.2688022255897522, 0.3287191390991211, 0.09167589992284775, -0.17290185391902924, 0.1581156700849533, -0.1468733698129654, -0.44940507411956787, -0.4411455988883972, -0.3660021126270294, 0.9609270095825195, 0.617402195930481, 0.8713693618774414, 0.1897028088569641, 1.028584599494934, 0.07829621434211731, -0.019547520205378532, -0.8307926058769226, 0.23261187970638275, -0.20424138009548187, -0.38234463334083557, -0.2533988952636719, -0.31528791785240173, -1.1571835279464722, 0.17753565311431885, -0.06011200696229935, -1.163985252380371, 0.6767716407775879, -0.17693598568439484, -0.13707715272903442, 0.37002941966056824, -0.7821339964866638, 1.0240908861160278, -0.2589947581291199, -0.33004310727119446, -0.19160829484462738, -0.4033867418766022, 0.06357137113809586, -0.04065889120101929, 0.3668840825557709, -0.289648175239563, -0.1289319545030594, 0.856850266456604, -0.31846949458122253, 1.0072121620178223, -0.36089372634887695, -0.14899978041648865, 0.28780481219291687, 0.10562451183795929, 0.4340229332447052, 0.08273555338382721, -0.35460522770881653, 0.2595820724964142, 0.1928289830684662, -0.24500928819179535, -0.21952643990516663, 0.9357293844223022, -0.92985999584198, 0.09023353457450867, -0.596081018447876, -0.3380069136619568, 0.06878192722797394, -0.16871951520442963, 0.4586436152458191, 0.30523681640625, -0.36145496368408203, 0.35612449049949646, 0.565941572189331, -0.5453944802284241, 0.6481466293334961, 0.6323054432868958, 0.09906180202960968, -0.5874685645103455, 0.8148696422576904, 0.13157621026039124, -0.13181231915950775, 0.2725253105163574, 0.3328922390937805, -0.4516521990299225, -0.09786590933799744, -0.05484580993652344, 0.3775341212749481, -0.6274569034576416, -0.07026511430740356, -0.9165619015693665, 0.3122572898864746, -0.63241046667099, -0.148545041680336, -0.3972780406475067, -0.32438698410987854, -0.4055314064025879, -0.18001151084899902, 0.589687705039978, 0.3588297963142395, -0.42983242869377136, 0.22366060316562653, -0.7222801446914673, 0.042650092393159866, -0.191935732960701, 0.27458491921424866, 0.03525242209434509, -0.48711228370666504, -0.3468480110168457, -0.11704519391059875, -0.3291410505771637, -1.3634850978851318, 1.0697134733200073, 0.2500685453414917, 0.4403237998485565, 0.40806055068969727, 0.17062009871006012, 0.22679084539413452, -0.13905887305736542, 0.7543507218360901, 0.15019601583480835, -1.0843815803527832, 0.7638579607009888, -0.357499361038208, -0.0038305779453366995, 0.5460636019706726, 0.7873294949531555, -0.7145337462425232, -0.3541204631328583, -0.9812768697738647, -1.1007025241851807, 0.7767691016197205, 0.1603495180606842, 0.08349282294511795, -0.08876372128725052, 0.06112457811832428, -0.17927831411361694, 0.2817646861076355, -0.9773733019828796, -0.19859720766544342, -0.17331227660179138, -0.6935475468635559, 0.2602928876876831, -0.4089246094226837, 0.05122847482562065, -0.3739013075828552, 0.8858919143676758, 0.2035776525735855, 0.6156957149505615, 0.45018270611763, -0.2236563265323639, -0.1327134370803833, 0.200752854347229, 0.49962618947029114, 0.23780809342861176, -0.5566911697387695, -0.0768829807639122, 0.19948004186153412, -0.3203853964805603, -0.12170595675706863, 0.006941917818039656, 0.11178813129663467, 0.37141984701156616, 0.32458561658859253, 0.8478225469589233, 0.3082199692726135, -0.49485114216804504, 0.6923673748970032, -0.03947886824607849, -0.13641242682933807, -0.6005496978759766, -0.5123606324195862, 0.066989965736866, 0.600030779838562, 0.4089077115058899, -0.3230981230735779, 0.06263772398233414, -0.3856258988380432, 0.05625138059258461, 0.030841795727610588, -0.4238987863063812, -0.579055905342102, 0.39648720622062683, 0.41745704412460327, -0.20154303312301636, 0.3224559724330902, -0.5552332997322083, -0.8802257776260376, 0.9951735138893127, 0.37503236532211304, 1.295861840248108, -0.25554293394088745, 0.2162628471851349, 0.704475462436676, 0.3779603838920593, 0.02353842742741108, 1.055046796798706, 0.3008187413215637, -1.0430541038513184, -0.3256792724132538, -0.515504777431488, -0.5086885094642639, 0.09314437210559845, -0.7059561610221863, 0.2879989743232727, -0.25099706649780273, 0.12230940908193588, -0.23367664217948914, -0.005573964212089777, -0.5577578544616699, 0.16599030792713165, 0.3037623465061188, 0.929064154624939, -1.212435007095337, 0.9014245867729187, 0.978034496307373, -0.585710346698761, -0.6492561101913452, -0.05771458521485329, 0.07674720883369446, -0.5837792158126831, 0.5421259999275208, -0.06545358151197433, 0.13833265006542206, -0.09245757013559341, -0.5682971477508545, -0.46033716201782227, 0.8229720592498779, 0.2432507425546646, -0.3587222099304199, 0.35554954409599304, -0.4665233790874481, 0.7516374588012695, -0.4368906319141388, 0.43755820393562317, 0.5209388136863708, 0.6007723212242126, 0.09689095616340637, -0.7132856249809265, -0.3761099576950073, -0.37474435567855835, -0.3788754343986511, 0.16099749505519867, -0.7222936153411865, 1.0479118824005127, 0.00605006841942668, -0.11292850971221924, -0.1169518381357193, 0.6651930809020996, 0.0780845507979393, 0.578048825263977, 0.2479795515537262, 0.6012815833091736, 0.8795469403266907, -0.41759273409843445, 1.0493907928466797, -0.29479482769966125, 0.8593900203704834, 0.8463379740715027, -0.2197112739086151, 1.0474928617477417, 0.38650256395339966, -0.5310604572296143, 0.7953791618347168, 0.850649356842041, -0.0003090697864536196, 0.4543720483779907, -0.10028590261936188, -0.2803892195224762, 0.12836547195911407, -0.050189241766929626, -0.40972191095352173, 0.27608993649482727, 0.36711418628692627, -0.29237696528434753, -0.09819655865430832, 0.17463810741901398, 0.4015159010887146, -0.024758169427514076, -0.3137342929840088, 0.3628791570663452, 0.0455760583281517, -0.06863377243280411, 0.5670413970947266, -0.26962772011756897, 1.061269760131836, -0.544863224029541, 0.4308059811592102, -0.399383008480072, 0.13242179155349731, -0.5382804274559021, -0.929757297039032, 0.3966556787490845, 0.3792136013507843, 0.0174038615077734, -0.05371825024485588, 0.6800545454025269, -0.5448466539382935, -0.5714206099510193, 0.5430591106414795, 0.4920690655708313, 0.5143486857414246, -0.11837921291589737, -0.8088883757591248, 0.27453234791755676, 0.2614765763282776, -0.6720049381256104, 0.03474089130759239, 0.7934169173240662, 0.028734266757965088, 0.5034570693969727, 0.29103711247444153, 0.3176034688949585, 0.05600350350141525, 0.2954461872577667, 0.618868887424469, -0.718206524848938, -0.5801743268966675, -0.9803938865661621, 0.699152946472168, -0.23206599056720734, -0.41176480054855347, 0.6776827573776245, 0.5299269556999207, 0.6203885078430176, -0.41690129041671753, 0.8805025815963745, -0.4238891005516052, 0.5782219767570496, -0.14984232187271118, 0.6360102891921997, -0.6513589024543762, -0.4375606179237366, -0.5560533404350281, -0.6577037572860718, -0.35735851526260376, 0.8900578618049622, -0.3246593177318573, -0.2932887077331543, 0.934083878993988, 0.7145649790763855, 0.3444531261920929, -0.17350347340106964, 0.2858141362667084, 0.6012619137763977, 0.033750854432582855, 0.8154117465019226, 0.7831109166145325, -0.4209612309932709, 0.23544181883335114, -0.3297371566295624, -0.33609455823898315, -0.3877694606781006, -1.1113651990890503, -0.738576352596283, -0.6839284896850586, -0.6283538937568665, -0.6031312346458435, -0.17278428375720978, 1.2626241445541382, 0.03960699960589409, -1.1785759925842285, -0.3032044768333435, 0.3156576454639435, 0.2777063548564911, 0.15664264559745789, -0.22526447474956512, 0.5038711428642273, -0.3368295133113861, -1.1498936414718628, 0.09441926330327988, 0.1088477075099945, 0.07673563808202744, 0.13299560546875, -0.12030130624771118, -0.41448071599006653, -0.06150380149483681, 0.5133082270622253, 0.5864341855049133, -0.500331699848175, -0.15911278128623962, -0.019715234637260437, -0.08701207488775253, 0.10552985966205597, 0.30244317650794983, -0.23002596199512482, 0.4283420741558075, 0.8830736875534058, 0.4942443072795868, 0.4034399390220642, -0.2688739001750946, 0.3202076852321625, -0.771793007850647, 0.7050858736038208, 0.2623896598815918, 0.7934896349906921, 0.32604295015335083, -0.4955470860004425, 0.6805124282836914, 0.20510998368263245, -0.5368670225143433, -0.7785581946372986, -0.13681353628635406, -1.167012333869934, 0.02139539085328579, 1.3919901847839355, -0.36650389432907104, -0.451035737991333, 0.21274304389953613, -0.39144620299339294, 0.5233893394470215, -0.8326374292373657, 0.5756673812866211, 0.8074867129325867, -0.1536104679107666, -0.25006231665611267, -0.4484695494174957, 0.31980079412460327, 0.30369922518730164, -0.8796248435974121, -0.16174229979515076, 0.3278229534626007, 0.1113784983754158, 0.016399066895246506, 0.5358017086982727, -0.16844366490840912, 0.3663065731525421, -0.3208128809928894, 0.8772566318511963, 0.19163915514945984, 0.021603399887681007, -0.837860107421875, 0.03858066350221634, -0.24746903777122498, -0.4018174111843109 ]
JeremiahZ/bert-base-uncased-rte
JeremiahZ
"2023-09-24T22:17:57Z"
18,256
1
transformers
[ "transformers", "pytorch", "tensorboard", "safetensors", "bert", "text-classification", "generated_from_trainer", "en", "dataset:glue", "base_model:bert-base-uncased", "license:apache-2.0", "model-index", "endpoints_compatible", "region:us" ]
text-classification
"2022-06-21T12:40:10Z"
--- language: - en license: apache-2.0 tags: - generated_from_trainer datasets: - glue metrics: - accuracy base_model: bert-base-uncased model-index: - name: bert-base-uncased-rte results: - task: type: text-classification name: Text Classification dataset: name: GLUE RTE type: glue args: rte metrics: - type: accuracy value: 0.6895306859205776 name: Accuracy - task: type: natural-language-inference name: Natural Language Inference dataset: name: glue type: glue config: rte split: validation metrics: - type: accuracy value: 0.6823104693140795 name: Accuracy verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYTc4OTUzYmQ0NWRkMjdmYjI3ZDhmNWU5MTQ1YTM4ZTQzOWM5MTJjYzlmMjM3ZTE2Y2ZhMGJlNTI0OTJhYjNmMCIsInZlcnNpb24iOjF9.siPkmQhZKOZ1k_SyS1xIMavpK_CQ8tHTm39McCIEjiF7G1x62lbuKfrZsLoKoPf9XpNJqXoaXIRPCpHBKlfwCA - type: precision value: 0.7047619047619048 name: Precision verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMzdmMjk0ZjRkNzM4ZWE1ZGUyOWUxZTFjNmEyNTRmNjZmMDUxOTJlZmUxNjUzMWFhZTYzZTM1ZGNkMDg1YTMzYyIsInZlcnNpb24iOjF9.Cm2kMSTsWVPU9mBv8xAyvo7msTHdG3SECIYZ4kQ5RpN4NV3WE1k0EqmcGzAedwYNfSEg1qXL-qWDKOeoXDAnCw - type: recall value: 0.5648854961832062 name: Recall verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMjc1NTMzYWI5OGRjODdhYmJjZDQ3ODdiMWE3ODYzZjNhZDg1MGIyNjA1YzQwNzcwYTQzNjJkNGVjNmNjMWJmNSIsInZlcnNpb24iOjF9.MwRAu1AKhCt__2vBjhvEqU0gvXaJ5EMOOotKmwGXsuF3eGJEEDDuiWBgu9y291aqndTTwWvuH9CNQjGKLCoNCw - type: auc value: 0.7394646031580048 name: AUC verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOGQwMWVhZjlhNjhhZDRhNGYwNWUyOTZjMTgwMDQ5ZWM3MDcxNDc5OGJiNDE5NTNhOTU0MDMwYTdkYjcxNzFiZiIsInZlcnNpb24iOjF9.ZLyE_ZDWyVAr_GL_3lSqBmuIip7C13oj5kT1lI9JQOidt-IXsRHYUmJt_f7HWUNU1-FBD5lzHYcstF6WQ0VrAw - type: f1 value: 0.6271186440677967 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYmU0YjI4Y2MyMzU5ZTYzMmE0YzhjOTgwM2UwYTNhZDFmZWE3NTdhODMzYmU1ZWUxYTc2Yjk3Nzg3MjAyOThiOSIsInZlcnNpb24iOjF9.GJhnKNSHN5Sv9W3gl8fgPAAbM5EtMlhOHoOFcj_O65FLtcTi_ANpyv7gi41fPbMjS2TG4fgdVHQ_UZg7M6W2Cw - type: loss value: 0.7001310586929321 name: loss verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZjMwMTY5OGVkMzVhMzdjMmY1YmIzYTViOTRlNzcxMTI4NWNiOTQ5ZjMwMjRlODE4ZWUwMGVhZjhiMmIzM2ViOSIsInZlcnNpb24iOjF9.IsJhfeeqnVZFn10sOkCW7vAzfw1WQMwR8b99B3-hct_lrI1xodt5ySGltDvx2Q8ufD6hzfQ7YaDeHytDmeeFBw --- <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> # bert-base-uncased-rte This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the GLUE RTE dataset. It achieves the following results on the evaluation set: - Loss: 0.6972 - Accuracy: 0.6895 ## Model description More information needed ## Intended uses & limitations More information needed ## Training and evaluation data More information needed ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 2e-05 - train_batch_size: 16 - eval_batch_size: 8 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 3.0 ### Training results | Training Loss | Epoch | Step | Validation Loss | Accuracy | |:-------------:|:-----:|:----:|:---------------:|:--------:| | No log | 1.0 | 156 | 0.6537 | 0.6318 | | No log | 2.0 | 312 | 0.6383 | 0.6534 | | No log | 3.0 | 468 | 0.6972 | 0.6895 | ### Framework versions - Transformers 4.20.0.dev0 - Pytorch 1.11.0+cu113 - Datasets 2.1.0 - Tokenizers 0.12.1
[ -0.44499000906944275, -0.7288654446601868, 0.09629910439252853, 0.24985437095165253, -0.4244326055049896, -0.4795251190662384, -0.329820454120636, -0.304944783449173, 0.20293118059635162, 0.3694099485874176, -0.6729808449745178, -0.6593998074531555, -0.8122813105583191, -0.29724961519241333, -0.18695776164531708, 1.3638464212417603, 0.21563434600830078, 0.3967915177345276, -0.13204874098300934, 0.05135330557823181, -0.5032963156700134, -0.6704517006874084, -0.5514335036277771, -0.7613893151283264, 0.24629579484462738, 0.28922179341316223, 0.8922421932220459, 0.8281407952308655, 0.6753789186477661, 0.22770977020263672, -0.4194081127643585, -0.07619693875312805, -0.6987331509590149, -0.5411922931671143, 0.07676040381193161, -0.3009510338306427, -0.9016919732093811, 0.028787408024072647, 0.6206454634666443, 0.5298489332199097, -0.17930592596530914, 0.38750535249710083, 0.09868555516004562, 0.4450312852859497, -0.6457998752593994, 0.3757133483886719, -0.6607593894004822, 0.3377124071121216, -0.08586737513542175, -0.2781057059764862, -0.6295628547668457, -0.043908145278692245, 0.3765330910682678, -0.5067145824432373, 0.5547236204147339, -0.15002134442329407, 1.3746695518493652, 0.2339855283498764, -0.40004780888557434, 0.020091034471988678, -0.7495824098587036, 0.7544615268707275, -0.8013611435890198, 0.46960026025772095, 0.3600439131259918, 0.3938063979148865, -0.08176289498806, -0.8416324257850647, -0.3166468143463135, -0.12423114478588104, -0.0241607166826725, 0.26124921441078186, -0.16746291518211365, 0.21785785257816315, 0.5226420760154724, 0.4819907546043396, -0.5919033288955688, 0.12536738812923431, -0.703246533870697, -0.45331427454948425, 0.5565335154533386, 0.16795508563518524, -0.25851690769195557, -0.13287489116191864, -0.7668503522872925, -0.272977739572525, -0.4487815201282501, 0.19651593267917633, 0.5525211691856384, 0.3696814775466919, -0.2903536260128021, 0.7458736896514893, -0.12732039391994476, 0.8496929407119751, 0.21613028645515442, -0.12349923700094223, 0.616580605506897, 0.23288868367671967, -0.5860713124275208, 0.13913080096244812, 0.7165993452072144, 0.5825793743133545, 0.33704930543899536, -0.030654147267341614, -0.3191554546356201, -0.1257191002368927, 0.39927467703819275, -0.967352569103241, -0.6324047446250916, 0.11661561578512192, -0.733627200126648, -0.5642842650413513, 0.16525742411613464, -0.4666061997413635, 0.2667054235935211, -0.3779783844947815, 0.7638388872146606, -0.5166972279548645, -0.11665242165327072, 0.2352481633424759, -0.07634376734495163, 0.31404757499694824, 0.27994319796562195, -0.8739211559295654, 0.3332839906215668, 0.4901962876319885, 0.551443338394165, -0.0012236112961545587, -0.2625807523727417, -0.21078971028327942, 0.05473371967673302, -0.2460036426782608, 0.6006982326507568, -0.18639300763607025, -0.41165459156036377, -0.02133890427649021, 0.14668920636177063, -0.10940373688936234, -0.37912192940711975, 0.9555587768554688, -0.492681086063385, 0.39280077815055847, -0.18180793523788452, -0.841323733329773, -0.24060307443141937, 0.3505590856075287, -0.7244517207145691, 1.2963852882385254, 0.03026064857840538, -0.7314388155937195, 0.6909556984901428, -0.5349816679954529, -0.08481346815824509, -0.1283852607011795, -0.014227519743144512, -0.8543297648429871, 0.02999091148376465, 0.1581794172525406, 0.5385249853134155, -0.0881081074476242, 0.29974809288978577, -0.4165290296077728, -0.5616279244422913, -0.10385045409202576, -0.7030951976776123, 1.0387887954711914, 0.06397992372512817, -0.46428772807121277, 0.10052294284105301, -1.2616194486618042, 0.4104567766189575, 0.11253679543733597, -0.6713966131210327, 0.2366017997264862, -0.4378303289413452, 0.4404853284358978, 0.23133033514022827, 0.4933048188686371, -0.6866008639335632, 0.13749879598617554, -0.3262885510921478, 0.20752963423728943, 0.7823396325111389, -0.0779285728931427, 0.11976698786020279, -0.3588414788246155, 0.011491398327052593, 0.17014683783054352, 0.43728482723236084, 0.2661706507205963, -0.8646553158760071, -0.9667050242424011, -0.34189632534980774, 0.49675068259239197, 0.4279257357120514, -0.22363223135471344, 1.0249403715133667, -0.08236373215913773, -0.7763125896453857, -0.3306131064891815, 0.12158643454313278, 0.5446736216545105, 0.844494104385376, 0.5211889743804932, -0.3052516579627991, -0.5199010372161865, -1.297937273979187, 0.23389731347560883, -0.14169226586818695, 0.008952422067523003, 0.16190201044082642, 0.6490347385406494, -0.25055795907974243, 1.0018237829208374, -0.4979061484336853, -0.298136442899704, -0.013744546100497246, 0.20691654086112976, 0.4991385042667389, 0.8788985013961792, 0.7153236269950867, -0.49809131026268005, -0.16244256496429443, -0.25354358553886414, -0.8254871368408203, 0.31421610713005066, -0.0008773925364948809, -0.41248294711112976, 0.10728143900632858, 0.07438907027244568, -0.8092780113220215, 0.8675121068954468, 0.32323193550109863, -0.3855848014354706, 0.8164622187614441, -0.5904508233070374, -0.234610453248024, -1.0206871032714844, 0.14121896028518677, 0.09723842889070511, -0.044073786586523056, -0.33919665217399597, -0.07940424978733063, 0.20124013721942902, -0.1824015974998474, -0.5723536014556885, 0.4920877516269684, -0.22372503578662872, 0.04481343924999237, -0.14092539250850677, -0.4736405611038208, 0.08650136739015579, 0.9097938537597656, 0.31525561213493347, 0.5871486067771912, 0.5168626308441162, -0.5079489350318909, 0.44133278727531433, 0.6470431685447693, -0.419359415769577, 0.3350498676300049, -1.0360740423202515, 0.15492111444473267, 0.03965269774198532, 0.1199372410774231, -0.807906985282898, -0.16987143456935883, 0.2201167494058609, -0.5778297781944275, 0.3895875811576843, -0.23931695520877838, -0.40266773104667664, -0.4418027997016907, -0.19183237850666046, 0.1262490153312683, 0.6779133677482605, -0.7133728265762329, 0.37178686261177063, -0.11915653944015503, 0.44764554500579834, -0.7783951759338379, -0.9007121324539185, -0.30312976241111755, -0.060379188507795334, -0.692743182182312, 0.36565691232681274, -0.20079828798770905, 0.18912220001220703, 0.04709206521511078, -0.14139312505722046, -0.48887690901756287, -0.23933647572994232, 0.22589832544326782, 0.3779974579811096, -0.361092746257782, -0.0003167578543070704, -0.0930478498339653, -0.2639961838722229, 0.2924973666667938, -0.08455748856067657, 0.4361918270587921, -0.27543920278549194, -0.3357571065425873, -0.7356142997741699, 0.007397831417620182, 0.5255303382873535, -0.011971746571362019, 0.8595996499061584, 0.8951693177223206, -0.6376286149024963, -0.07051312923431396, -0.656662106513977, -0.23041929304599762, -0.4769391715526581, 0.4369334578514099, -0.46904557943344116, -0.3507266342639923, 0.7664111852645874, 0.24934758245944977, 0.05757106840610504, 0.9080860018730164, 0.8201952576637268, -0.15613852441310883, 1.0594969987869263, 0.45267364382743835, 0.036197226494550705, 0.26464053988456726, -0.8099101185798645, -0.1925356090068817, -0.7087697386741638, -0.5289484858512878, -0.34123560786247253, -0.3573538064956665, -0.5814942121505737, -0.08911332488059998, 0.21652087569236755, 0.18165670335292816, -0.7500842213630676, 0.46417561173439026, -0.6756642460823059, 0.38352611660957336, 1.0108025074005127, 0.6412894129753113, -0.052469491958618164, 0.13389107584953308, -0.3120163679122925, -0.11467383801937103, -0.9521797895431519, -0.5760751366615295, 1.4750555753707886, 0.5749548673629761, 0.8272242546081543, -0.1420731246471405, 0.6852750182151794, 0.21582186222076416, 0.10036960989236832, -0.618523359298706, 0.41611412167549133, 0.09756411612033844, -1.0426024198532104, -0.22230540215969086, -0.2219828963279724, -0.7812422513961792, 0.11068402230739594, -0.5478816032409668, -0.7086932063102722, 0.39219993352890015, 0.4052636921405792, -0.27808842062950134, 0.5658354759216309, -0.807995080947876, 1.204418659210205, -0.3104499578475952, -0.3872862160205841, -0.020933715626597404, -0.6681835055351257, 0.20168113708496094, 0.16720379889011383, -0.5502667427062988, 0.03246641159057617, 0.33715078234672546, 0.876742422580719, -0.7714985013008118, 0.8238365650177002, -0.3509567379951477, 0.26710045337677, 0.4584606885910034, -0.19198459386825562, 0.7462367415428162, 0.1897633820772171, -0.1403401643037796, 0.38989996910095215, -0.19011591374874115, -0.7525873780250549, -0.5207188725471497, 0.7069782614707947, -1.226910948753357, -0.22591088712215424, -0.5208783149719238, -0.6229363679885864, -0.20286276936531067, 0.24580128490924835, 0.7428813576698303, 0.6891400218009949, -0.08226057887077332, 0.4970390200614929, 0.8605427145957947, 0.0185746718198061, 0.3651618957519531, 0.2568076550960541, 0.2951694130897522, -0.5822556614875793, 0.8030334711074829, -0.07611741125583649, 0.11858619004487991, 0.11985106021165848, 0.0798003152012825, -0.4557371437549591, -0.5506956577301025, -0.525213897228241, 0.17977891862392426, -0.8567966222763062, -0.33791133761405945, -0.3365974724292755, -0.5383206605911255, -0.2811508774757385, -0.12310262024402618, -0.587688684463501, -0.4762115478515625, -0.6522856950759888, -0.29365694522857666, 0.4381225109100342, 0.6409062743186951, -0.008703277446329594, 0.5734612345695496, -0.7204849720001221, -0.11819947510957718, 0.38158348202705383, 0.6238259077072144, -0.03832833841443062, -0.8063111305236816, -0.37127184867858887, 0.10719873011112213, -0.47358182072639465, -0.6567296385765076, 0.4324190318584442, 0.12968914210796356, 0.7331676483154297, 0.6591091752052307, -0.17744535207748413, 0.9942601323127747, -0.5485557913780212, 0.7864465117454529, 0.3054765462875366, -0.722160279750824, 0.46546271443367004, -0.3681052029132843, 0.10282789915800095, 0.5777810215950012, 0.39304372668266296, 0.29230448603630066, -0.0032358719035983086, -1.314404845237732, -0.8130408525466919, 0.8192165493965149, 0.6180588603019714, 0.051570553332567215, 0.12427464127540588, 0.3403905928134918, -0.0593579076230526, 0.3172048032283783, -0.893046498298645, -0.4832099378108978, -0.420411616563797, -0.10024657845497131, 0.00941690057516098, -0.5985347032546997, -0.22634869813919067, -0.6195926070213318, 1.0827057361602783, 0.10020600259304047, 0.7389302253723145, 0.15235492587089539, -0.032959673553705215, -0.1951597034931183, -0.1374439150094986, 0.7999088168144226, 0.879468560218811, -1.0324149131774902, -0.16506989300251007, 0.25136521458625793, -0.5530560612678528, -0.15425758063793182, 0.17492254078388214, 0.12885190546512604, 0.357941597700119, 0.5755376219749451, 1.0877865552902222, 0.3307391405105591, -0.3055850863456726, 0.5942296385765076, 0.10933297127485275, -0.44165855646133423, -0.4492299258708954, -0.017066357657313347, -0.21898648142814636, 0.204995259642601, 0.3113725781440735, 0.41163182258605957, 0.05089151859283447, -0.1312674731016159, 0.4362504780292511, 0.2805796265602112, -0.5790870785713196, -0.29232048988342285, 0.8687220215797424, 0.22238141298294067, -0.2744768559932709, 0.8991206884384155, 0.018856927752494812, -0.3065507709980011, 0.9341679215431213, 0.6610888838768005, 0.8794206976890564, -0.030528293922543526, -0.06471770256757736, 0.5686690807342529, 0.3358932137489319, 0.0006956640281714499, 0.4283984899520874, 0.09484335780143738, -0.6686956882476807, -0.3309781551361084, -0.6180717945098877, -0.38408660888671875, 0.5481616854667664, -1.295032024383545, 0.5072144865989685, -0.5187129974365234, -0.4434572160243988, 0.24882002174854279, 0.13091856241226196, -1.0493037700653076, 0.6824348568916321, 0.14461268484592438, 1.4453033208847046, -0.9666364192962646, 0.959434449672699, 0.773973822593689, -0.3854038715362549, -0.8923264741897583, -0.30021318793296814, -0.2543140649795532, -1.0891199111938477, 0.9491568803787231, -0.021002063527703285, 0.4550873935222626, -0.028697751462459564, -0.5032720565795898, -0.8576939702033997, 1.105156421661377, 0.4281270205974579, -0.4866269826889038, -0.08067464828491211, 0.20479418337345123, 0.7193498015403748, -0.22231094539165497, 0.7144989371299744, 0.22903725504875183, 0.26013436913490295, 0.2565549910068512, -1.141339659690857, -0.3008233904838562, -0.3631649613380432, 0.18060554563999176, 0.03863706812262535, -0.7283905148506165, 1.2153105735778809, 0.0828034058213234, 0.5653921961784363, 0.09312187135219574, 0.7430891990661621, 0.28699934482574463, 0.15685026347637177, 0.37407585978507996, 1.062647819519043, 0.5019469261169434, -0.19609835743904114, 0.9603782892227173, -0.5630339980125427, 0.9748275876045227, 1.1676396131515503, 0.11509580165147781, 0.6851402521133423, 0.3195329010486603, -0.16787073016166687, 0.4430955946445465, 0.878420352935791, -0.3295632600784302, 0.5598754286766052, 0.07606011629104614, 0.05857294425368309, -0.532088041305542, 0.37047043442726135, -0.7081900835037231, 0.4583543837070465, 0.16202762722969055, -0.6993531584739685, -0.4962010681629181, -0.16089488565921783, -0.1455187052488327, -0.3206954598426819, -0.3417266607284546, 0.5051491856575012, -0.42188572883605957, -0.17556211352348328, 0.9188432097434998, -0.022653985768556595, 0.44494330883026123, -0.6697724461555481, -0.2695363461971283, 0.01543943490833044, 0.40151241421699524, -0.25064215064048767, -0.7131133079528809, 0.21670083701610565, -0.14846208691596985, -0.406437486410141, -0.033563584089279175, 0.6915180683135986, -0.3126261532306671, -0.85467529296875, 0.0923539251089096, 0.33965688943862915, 0.27024045586586, 0.1576450616121292, -1.113250494003296, 0.03776039555668831, -0.010343105532228947, -0.5560265183448792, 0.06209775432944298, 0.3643779158592224, 0.03753659874200821, 0.6209921836853027, 0.571362316608429, -0.04529967159032822, 0.19006125628948212, -0.09421936422586441, 1.082957148551941, -0.5135892033576965, -0.5880541205406189, -0.575634777545929, 0.6615054607391357, -0.1979169100522995, -0.8821662664413452, 0.6366297602653503, 1.0762356519699097, 1.0009233951568604, -0.4457419216632843, 0.46134018898010254, 0.09893707185983658, 0.3548422157764435, -0.5875754356384277, 0.7380103468894958, -0.3607504665851593, -0.07798869162797928, -0.3307819366455078, -1.0317884683609009, -0.12451061606407166, 0.902883768081665, -0.22387190163135529, 0.16104668378829956, 0.42965853214263916, 0.6533100008964539, -0.22911688685417175, 0.022353067994117737, 0.3303121328353882, 0.0656668096780777, 0.12881004810333252, 0.5960932970046997, 0.3508470952510834, -0.9289557933807373, 0.6129581332206726, -0.7162078022956848, -0.19422028958797455, -0.291995644569397, -0.8414371609687805, -1.2887769937515259, -0.3808712065219879, -0.48915940523147583, -0.5236203670501709, 0.1687966138124466, 1.1148430109024048, 1.1122803688049316, -0.9948182702064514, -0.26441964507102966, -0.026257384568452835, -0.33035844564437866, -0.24799710512161255, -0.27460092306137085, 0.6935811638832092, -0.24883079528808594, -0.8593902587890625, 0.060002345591783524, -0.3292267322540283, 0.2811333239078522, -0.1268010288476944, -0.20033115148544312, -0.28488418459892273, -0.26449182629585266, 0.40439122915267944, 0.07523612678050995, -0.61824631690979, -0.5229222774505615, -0.12110349535942078, 0.02298503927886486, 0.25719311833381653, 0.31619757413864136, -0.717915952205658, 0.6644126772880554, 0.3016059994697571, 0.44661223888397217, 0.7638073563575745, 0.003875898430123925, 0.39690539240837097, -1.09037184715271, 0.5484362244606018, 0.3417765200138092, 0.4857551157474518, -0.03772363066673279, -0.5748610496520996, 0.48481956124305725, 0.41820773482322693, -0.6584727168083191, -0.9682223200798035, -0.27553296089172363, -1.2908447980880737, 0.16907265782356262, 1.0266180038452148, -0.056827083230018616, -0.402971476316452, 0.3042888045310974, -0.15432371199131012, 0.302978515625, -0.4650375247001648, 0.7112915515899658, 0.8520647883415222, -0.2339925467967987, 0.1313772201538086, -0.47759300470352173, 0.49288469552993774, 0.3912639617919922, -0.4176124334335327, -0.3653417229652405, 0.38691696524620056, 0.4817940890789032, 0.2355862408876419, 0.2519860565662384, -0.05161251872777939, 0.43337151408195496, 0.004631823860108852, 0.48171159625053406, -0.47241532802581787, -0.421592116355896, -0.2742016613483429, 0.10703420639038086, -0.0593089759349823, -0.648444414138794 ]
jjzha/jobbert_skill_extraction
jjzha
"2023-10-26T10:25:11Z"
18,164
4
transformers
[ "transformers", "pytorch", "safetensors", "bert", "token-classification", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2023-04-06T13:41:51Z"
This is a demo using the models from: ``` @inproceedings{zhang-etal-2022-skillspan, title = "{S}kill{S}pan: Hard and Soft Skill Extraction from {E}nglish Job Postings", author = "Zhang, Mike and Jensen, Kristian and Sonniks, Sif and Plank, Barbara", booktitle = "Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies", month = jul, year = "2022", address = "Seattle, United States", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2022.naacl-main.366", doi = "10.18653/v1/2022.naacl-main.366", pages = "4962--4984", abstract = "Skill Extraction (SE) is an important and widely-studied task useful to gain insights into labor market dynamics. However, there is a lacuna of datasets and annotation guidelines; available datasets are few and contain crowd-sourced labels on the span-level or labels from a predefined skill inventory. To address this gap, we introduce SKILLSPAN, a novel SE dataset consisting of 14.5K sentences and over 12.5K annotated spans. We release its respective guidelines created over three different sources annotated for hard and soft skills by domain experts. We introduce a BERT baseline (Devlin et al., 2019). To improve upon this baseline, we experiment with language models that are optimized for long spans (Joshi et al., 2020; Beltagy et al., 2020), continuous pre-training on the job posting domain (Han and Eisenstein, 2019; Gururangan et al., 2020), and multi-task learning (Caruana, 1997). Our results show that the domain-adapted models significantly outperform their non-adapted counterparts, and single-task outperforms multi-task learning.", } ``` Note that there is another endpoint, namely `jjzha/jobbert_knowledge_extraction`. Knowledge can be seen as hard skills and skills are both soft and applied skills.
[ -0.23754285275936127, -0.7155992388725281, 0.2381712645292282, 0.26182910799980164, 0.07394375652074814, -0.21574778854846954, -0.4545978009700775, -0.5494547486305237, -0.012204424478113651, 0.5897322297096252, -0.6004140973091125, -0.45736896991729736, -0.5689841508865356, 0.12574990093708038, -0.22446352243423462, 1.0718258619308472, 0.23388569056987762, -0.35916683077812195, -0.08596627414226532, 0.19130706787109375, -0.24554014205932617, -0.24390670657157898, -0.5708144307136536, -0.0801410898566246, 0.3605097830295563, 0.6289024353027344, 0.4663920998573303, 0.6998258829116821, 0.23888130486011505, 0.3060447871685028, 0.026960089802742004, 0.122547946870327, -0.2324441820383072, 0.10408268123865128, -0.17674484848976135, -0.25447213649749756, -0.8430213928222656, 0.27991047501564026, 0.3515026867389679, 1.1084023714065552, 0.06531558930873871, 0.21569620072841644, 0.3700590431690216, 0.4273775517940521, -0.5535646080970764, 0.5862841606140137, -0.670857846736908, -0.15847942233085632, -0.6162631511688232, 0.12939488887786865, -0.3688259422779083, -0.16801764070987701, 0.21492323279380798, -0.7208564281463623, 0.44669708609580994, -0.3108065724372864, 1.0984387397766113, 0.07981664687395096, -0.4138656258583069, -0.2560492157936096, -0.31047090888023376, 0.9120950698852539, -0.8482816815376282, 0.40527912974357605, 0.6132920980453491, 0.4782177805900574, -0.012451604939997196, -0.6885885000228882, -0.5285252332687378, 0.018647950142621994, 0.048949673771858215, 0.2543305456638336, 0.42007261514663696, 0.04657198488712311, 0.26694363355636597, 0.18193085491657257, -0.43031713366508484, 0.4736315608024597, -0.7688812017440796, 0.02488415502011776, 0.8529691100120544, 0.0926080271601677, 0.1550847589969635, -0.2826802134513855, -0.2184389978647232, -0.29484301805496216, -0.6036643385887146, 0.2327807992696762, 0.3642711043357849, 0.6805693507194519, -0.23913899064064026, 0.6272279024124146, -0.34094882011413574, 0.6844660043716431, -0.10164130479097366, -0.30582505464553833, 0.4309203624725342, -0.2325715571641922, -0.05089914798736572, -0.5179305076599121, 0.719866156578064, 0.15150076150894165, 0.4629873037338257, -0.15319132804870605, -0.043519653379917145, -0.30755558609962463, 0.27783840894699097, -0.45202240347862244, -0.34210503101348877, 0.035385407507419586, -0.44464901089668274, -0.2883049547672272, 0.19085043668746948, -1.0346966981887817, -0.580797016620636, -0.12839321792125702, -0.052314549684524536, -0.2944919466972351, -0.53911292552948, 0.07361855357885361, -0.06352198123931885, 0.4213557839393616, 0.2567927837371826, -0.879940927028656, 0.3323695659637451, 0.7802115082740784, 0.6684566140174866, -0.2665013074874878, -0.47502410411834717, -0.34607717394828796, -0.08016564697027206, -0.12245707958936691, 0.6164851784706116, -0.4272753596305847, 0.034689631313085556, 0.27121469378471375, 0.4158909320831299, -0.34043318033218384, -0.4272459149360657, 0.5788005590438843, -0.619970977306366, 0.2248547077178955, -0.3071293532848358, -0.5076185464859009, -0.29529091715812683, 0.03642071411013603, -0.9492679238319397, 1.2942181825637817, 0.2780597507953644, -0.5132095217704773, 0.6973802447319031, -1.0000358819961548, -0.537721574306488, 0.05856678634881973, 0.019313961267471313, -0.4245561957359314, -0.22165049612522125, 0.21494068205356598, 0.9507186412811279, -0.2931794822216034, 0.016402849927544594, -0.543758749961853, -0.20180337131023407, 0.183352530002594, -0.2608703374862671, 1.022470235824585, 0.15956857800483704, -0.3988545536994934, -0.3942566514015198, -0.7297760248184204, -0.008478846400976181, 0.12218494713306427, -0.4343285858631134, -0.22902889549732208, -0.039679162204265594, 0.014392655342817307, 0.48324257135391235, 0.2529662251472473, -0.43839186429977417, 0.22675853967666626, -0.5857601761817932, 0.1385301649570465, 0.7743541598320007, -0.1443416178226471, 0.4648381769657135, 0.009785028174519539, 0.6918027400970459, -0.09459680318832397, -0.012028821744024754, 0.03073703497648239, -0.20222365856170654, -0.5054537057876587, -0.29660290479660034, 0.26514357328414917, 0.5273581743240356, -0.7824323177337646, 0.5515316724777222, -0.20919252932071686, -0.6554859280586243, -0.6091850996017456, 0.43713802099227905, 0.47200271487236023, 0.601021409034729, 0.5066505074501038, -0.3256987929344177, -0.522233247756958, -0.7828634977340698, -0.25201451778411865, 0.1021459624171257, 0.06795470416545868, 0.06225062906742096, 0.3022001087665558, 0.10239310562610626, 1.0676605701446533, -0.5158777236938477, -0.2389213591814041, -0.5823295712471008, 0.25031742453575134, 0.4254470467567444, 0.3549823760986328, 0.4570232927799225, -0.7135088443756104, -0.6819962859153748, 0.00010968499555019662, -0.8821849822998047, -0.40929266810417175, -0.1629844754934311, -0.09051430970430374, 0.26240667700767517, 0.5309866666793823, -0.6042604446411133, 0.3868081271648407, 0.3118736445903778, -0.32782477140426636, 0.9081196784973145, 0.15691418945789337, -0.22161665558815002, -0.9924027323722839, 0.34049829840660095, 0.5088959336280823, -0.07054132968187332, -0.5759485960006714, -0.023110050708055496, 0.0738428607583046, -0.07599886506795883, -0.5345035195350647, 0.7250648140907288, -0.769853949546814, -0.3221491873264313, -0.32979056239128113, 0.17361867427825928, 0.03037433885037899, 0.7473546862602234, 0.17514371871948242, 0.9186473488807678, 0.41539302468299866, -0.6835700273513794, 0.27802836894989014, 0.3122078776359558, -0.5194787979125977, 0.46712785959243774, -0.7200413346290588, 0.12351048737764359, 0.06118547543883324, -0.02962462790310383, -0.74679034948349, -0.2293453961610794, 0.014812995679676533, -0.09528954327106476, 0.2539840638637543, -0.30328014492988586, -0.41304102540016174, -0.6082159280776978, -0.33183199167251587, 0.054715804755687714, 0.3706403374671936, -0.20321927964687347, 0.2725842297077179, 0.4937283396720886, -0.5959628224372864, -0.8248665928840637, -0.6617516279220581, -0.0780409649014473, -0.09657858312129974, -0.421890527009964, 0.32736361026763916, 0.1855536699295044, -0.1981099545955658, -0.051660582423210144, 0.09882257878780365, -0.4843168556690216, 0.23200495541095734, 0.06442320346832275, 0.288693904876709, -0.09130282700061798, 0.04703478515148163, 0.12378747016191483, -0.26852691173553467, -0.13156560063362122, 0.027962693944573402, 0.34284132719039917, -0.04967958480119705, -0.46022266149520874, -0.34878313541412354, 0.08719627559185028, 0.5289837121963501, -0.28591200709342957, 0.8068554997444153, 0.916882336139679, -0.30487942695617676, -0.2832643687725067, -0.7316047549247742, -0.3294690251350403, -0.4983663260936737, 0.7098050117492676, -0.3932608962059021, -0.5377829670906067, 0.44702085852622986, -0.11233974248170853, 0.1704150289297104, 0.4757862091064453, 0.23669248819351196, -0.2313230335712433, 0.7596698999404907, 0.7980116605758667, -0.12088451534509659, 0.3959754407405853, -0.5369157195091248, -0.05772756412625313, -0.8868843913078308, -0.1099100410938263, -0.4018245339393616, -0.047977905720472336, -0.27299249172210693, -0.18454530835151672, 0.30167070031166077, 0.02542794495820999, -0.22602443397045135, 0.6260179877281189, -0.3384228050708771, 0.4069063067436218, 0.6964964270591736, 0.1823963075876236, -0.20284193754196167, -0.22752007842063904, 0.05635321885347366, -0.25820961594581604, -0.6849093437194824, -0.5126972794532776, 1.3047531843185425, 0.3865757882595062, 0.39643827080726624, -0.1472727358341217, 0.39539802074432373, 0.3971898853778839, 0.013927084393799305, -0.5026638507843018, 0.7515954971313477, -0.5319247245788574, -0.564082145690918, -0.5116009712219238, -0.1793346107006073, -0.9900292754173279, 0.22254516184329987, -0.21046622097492218, -0.5405376553535461, 0.13445983827114105, -0.09542903304100037, -0.35398128628730774, 0.2848197817802429, -0.7394558787345886, 1.0575462579727173, -0.322632759809494, -0.505030632019043, 0.04542998969554901, -0.6877515912055969, 0.18087375164031982, -0.10635998100042343, 0.3020077049732208, -0.22804823517799377, 0.023760760203003883, 0.8469184637069702, -0.5042501091957092, 1.375268816947937, -0.5701904296875, -0.04157766327261925, 0.1833987832069397, -0.07018231600522995, 0.5054194331169128, -0.364240825176239, -0.6219868063926697, 0.059472691267728806, -0.10899873822927475, -0.47980618476867676, -0.4462990462779999, 0.1925649344921112, -0.7119845151901245, -0.20614926517009735, -0.1707531064748764, -0.5324221849441528, -0.2261093258857727, 0.34467411041259766, 0.10332242399454117, 0.32553237676620483, 0.060244470834732056, 0.29543420672416687, 0.35363441705703735, -0.32982707023620605, 0.3925173878669739, 0.38948240876197815, 0.32730481028556824, -0.18585851788520813, 0.7929456233978271, 0.38106977939605713, 0.0607699453830719, 0.04671201854944229, -0.18896223604679108, -0.31210070848464966, -0.2226298302412033, -0.07895760238170624, 0.4297783672809601, -0.5477379560470581, -0.20085547864437103, -0.5173062086105347, -0.33813580870628357, -0.7328037619590759, -0.3870376646518707, -0.4204578399658203, -0.3660070598125458, -0.2450343370437622, -0.31895193457603455, 0.22674737870693207, 0.642444908618927, -0.14385594427585602, 0.2160331755876541, -0.6000281572341919, 0.17998336255550385, 0.4413550794124603, 0.26774898171424866, 0.03246599808335304, -0.3086943030357361, -0.706616997718811, 0.21312910318374634, -0.24840319156646729, -0.9912936687469482, 0.6117193102836609, 0.39789459109306335, 0.8877283930778503, 0.4095281958580017, 0.06622378528118134, 0.6082867383956909, -0.08097827434539795, 1.0047028064727783, -0.04254404827952385, -0.7868766784667969, 0.5095738768577576, -0.39769595861434937, 0.07988052815198898, 0.8529462218284607, 0.46134763956069946, -0.6046048402786255, -0.24604491889476776, -0.6244040727615356, -1.085801601409912, 0.9515069127082825, -0.08038236945867538, -0.06138346716761589, -0.12010092288255692, 0.33045694231987, 0.5921721458435059, 0.2802375257015228, -0.8914884328842163, 0.059138864278793335, -0.06475482136011124, -0.4230300188064575, 0.16817553341388702, -0.39563581347465515, 0.14659161865711212, -0.2680385410785675, 0.7239179015159607, -0.22141572833061218, 0.3779815435409546, -0.2750052511692047, -0.4248756468296051, 0.2032913714647293, 0.1511182337999344, 0.21061111986637115, 0.707171618938446, -0.04454266279935837, 0.12451780587434769, 0.3797410726547241, -0.37077125906944275, -0.26560747623443604, 0.23491306602954865, 0.16610218584537506, -0.24835588037967682, 0.5756373405456543, 0.5846434831619263, 0.321662575006485, -0.640049934387207, 0.8105154037475586, 0.6975294947624207, -0.2841472625732422, -0.5091295838356018, 0.035434432327747345, -0.19838352501392365, 0.3554021418094635, 0.41391512751579285, -0.2670114040374756, 0.0161164291203022, -0.29510626196861267, 0.33903881907463074, 0.20381397008895874, -0.17599980533123016, -0.579409122467041, 0.6100310683250427, 0.31222766637802124, -0.03680744022130966, 0.8314331769943237, -0.5467311143875122, -0.5926722288131714, 0.6594506502151489, 0.4380645155906677, 0.7411299347877502, -0.05723968520760536, 0.32182392477989197, 0.22292962670326233, 0.11425676196813583, -0.18313051760196686, 0.3782864511013031, -0.07732199877500534, -0.7570430636405945, -0.6425656080245972, -0.3759506344795227, -0.32617637515068054, 0.16619683802127838, -0.6951121091842651, 0.45598018169403076, -0.11727090924978256, -0.009736969135701656, -0.16936933994293213, 0.2753143608570099, -1.1266911029815674, 0.24189624190330505, 0.02843010053038597, 0.8441758751869202, -1.2592504024505615, 0.8971595764160156, 0.6922264099121094, -0.7550703287124634, -0.7816244959831238, -0.16414578258991241, -0.012923141941428185, -0.8079127073287964, 0.7404099702835083, 0.1407717913389206, 0.2690291404724121, -0.17139600217342377, -0.5154405236244202, -0.6072413921356201, 1.2466663122177124, 0.310828298330307, -0.10526123642921448, -0.2683155834674835, 0.3243001401424408, 0.3585711419582367, -0.17670710384845734, 0.3974675238132477, 0.5045175552368164, 0.56647789478302, -0.3271840214729309, -1.2098720073699951, -0.06412127614021301, -0.6481715440750122, -0.15698006749153137, -0.23932763934135437, -0.5980324149131775, 1.04490327835083, 0.08202432841062546, -0.12570250034332275, -0.2059442549943924, 0.719731330871582, 0.32705414295196533, 0.36734527349472046, 0.5425022840499878, 0.36498212814331055, 0.7568769454956055, 0.09461719542741776, 0.6300023794174194, -0.34033411741256714, 0.204252228140831, 1.0531184673309326, -0.3969855308532715, 0.7991920709609985, 0.17252276837825775, -0.37952402234077454, 0.8819019794464111, 0.4850495755672455, -0.10451772809028625, 0.4389076828956604, -0.19683149456977844, 0.12911151349544525, -0.2275179922580719, 0.13280326128005981, -0.3532553017139435, 0.5881451368331909, 0.5006718635559082, -0.2885544002056122, -0.17025557160377502, 0.21363157033920288, 0.2865288257598877, 0.04598380625247955, -0.04782281443476677, 0.6998915076255798, 0.05790872126817703, -0.5346330404281616, 0.41841840744018555, -0.015797514468431473, 0.9156146049499512, -0.5965067744255066, -0.23935121297836304, -0.10909003019332886, -0.010831843130290508, -0.1631741225719452, -0.9431679248809814, 0.3043666481971741, 0.062368907034397125, -0.017537565901875496, -0.46901994943618774, 1.02740478515625, -0.5245187282562256, -0.38004326820373535, 0.2591796815395355, 0.7739896774291992, 0.36374956369400024, -0.011531475931406021, -0.8282614350318909, -0.2623382806777954, -0.2660062611103058, -0.4341774582862854, 0.1868210732936859, 0.5644242167472839, 0.07277794927358627, 0.5933499336242676, 0.49918562173843384, 0.37261962890625, 0.15040698647499084, -0.07123162597417831, 0.7132582068443298, -0.5948691964149475, -0.6492000818252563, -0.4153428375720978, 0.7554936408996582, -0.5885159373283386, -0.3937807083129883, 0.7039884924888611, 0.40565189719200134, 0.881620466709137, -0.19324219226837158, 1.068333387374878, -0.2672240436077118, 0.815349280834198, -0.41040363907814026, 0.7355381846427917, -0.6426210403442383, 0.14649158716201782, -0.5007615685462952, -0.8515689969062805, -0.056878361850976944, 0.6281989812850952, -0.659800112247467, 0.4233303368091583, 0.5690867900848389, 0.8816503882408142, -0.2501765191555023, -0.24231696128845215, 0.11645002663135529, 0.16405849158763885, 0.2079102247953415, 0.49768272042274475, 0.2660275995731354, -0.3094688951969147, 0.5082205533981323, -0.5112273693084717, -0.14819972217082977, -0.46016111969947815, -0.863420307636261, -0.7248178720474243, -0.911775529384613, -0.31267690658569336, -0.18713480234146118, 0.0708414763212204, 0.934637725353241, 0.8918238878250122, -0.5883820056915283, -0.5055440068244934, 0.05495351180434227, -0.15053996443748474, -0.9010738134384155, -0.3171761929988861, 0.5476449131965637, -0.4600116014480591, -0.6033416390419006, 0.655894935131073, -0.20965081453323364, -0.20726852118968964, -0.11805691570043564, -0.03138834610581398, -0.31404849886894226, -0.1371784806251526, 0.5763067007064819, 0.6784310340881348, -0.339649498462677, -0.281629741191864, 0.12014921009540558, -0.21477487683296204, -0.39818310737609863, 0.47076258063316345, -0.519060492515564, 0.23370493948459625, 0.36600953340530396, 0.6203894019126892, 0.4716157019138336, -0.0896122083067894, 0.5870079398155212, -1.1519458293914795, 0.17507468163967133, 0.03739863261580467, 0.2838069796562195, 0.24507012963294983, -0.21725420653820038, 0.8427574038505554, 0.3471697270870209, -0.37613973021507263, -0.836331844329834, 0.010113740339875221, -0.899038553237915, -0.3501867949962616, 1.3576503992080688, -0.2122526615858078, -0.17198319733142853, -0.5231487154960632, 0.04403620585799217, 0.45340389013290405, -0.1762755960226059, 0.9779411554336548, 0.6138285398483276, 0.043549224734306335, -0.2506119906902313, -0.6256963014602661, 0.42649316787719727, 0.3880241811275482, -0.8378129005432129, 0.146876722574234, 0.31192684173583984, 0.11683327704668045, -0.08397069573402405, 0.8126035928726196, -0.07524896413087845, 0.4385260045528412, -0.01685669831931591, 0.46709030866622925, -0.48955008387565613, -0.5013111233711243, -0.025797616690397263, 0.4505007266998291, 0.12041711062192917, -0.186568021774292 ]