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
textattack/bert-base-uncased-rotten-tomatoes
textattack
"2021-05-20T07:46:20Z"
38,345
1
transformers
[ "transformers", "pytorch", "jax", "bert", "text-classification", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
## TextAttack Model Card This `bert-base-uncased` model was fine-tuned for sequence classificationusing TextAttack and the rotten_tomatoes dataset loaded using the `nlp` library. The model was fine-tuned for 10 epochs with a batch size of 16, a learning rate of 2e-05, and a maximum sequence length of 128. Since this was a classification task, the model was trained with a cross-entropy loss function. The best score the model achieved on this task was 0.875234521575985, as measured by the eval set accuracy, found after 4 epochs. For more information, check out [TextAttack on Github](https://github.com/QData/TextAttack).
[ -0.22831672430038452, -0.4218311309814453, 0.44104865193367004, -0.03415589779615402, -0.38083842396736145, 0.15405452251434326, -0.20621265470981598, -0.39278173446655273, -0.07121940702199936, 0.4229465425014496, -0.5255857706069946, -0.6840549111366272, -0.6267003417015076, 0.05078711733222008, -0.6765389442443848, 1.7358310222625732, 0.5009918212890625, 0.076438769698143, -0.0482838936150074, 0.08523678034543991, -0.4822821617126465, -0.4484661817550659, -0.48826247453689575, -0.24750040471553802, 0.5077753067016602, 0.5115432739257812, 0.8672257661819458, 0.547644853591919, 0.7765648365020752, 0.2756916880607605, -0.11713284999132156, 0.020769046619534492, -0.5420572757720947, 0.045838598161935806, -0.3129273056983948, -0.4632396697998047, -0.37648990750312805, -0.18186677992343903, 0.5212262272834778, -0.03443782404065132, 0.01696200482547283, 0.5359089970588684, -0.09144271910190582, 0.7971845865249634, -0.3641553223133087, -0.194289892911911, -0.8060705661773682, 0.27007654309272766, -0.023067396134138107, -0.058659520000219345, -0.8018635511398315, -0.34752482175827026, 0.16688837110996246, -0.32054683566093445, 0.16954168677330017, 0.14494092762470245, 0.94191575050354, 0.23983287811279297, 0.015162878669798374, 0.09649579226970673, -0.6720096468925476, 0.8231453895568848, -0.8453969359397888, 0.02150326780974865, 0.39286649227142334, 0.16160117089748383, -0.009595394134521484, -0.7591599822044373, -0.40211379528045654, 0.1929599791765213, 0.20376627147197723, -0.20177780091762543, -0.23721598088741302, 0.08822635561227798, 0.25673288106918335, 0.44555312395095825, -0.8530394434928894, 0.16043423116207123, -0.6696262955665588, -0.17721469700336456, 0.9157438278198242, 0.2855532169342041, 0.2574242949485779, -0.5313607454299927, -0.5201646089553833, -0.2718733251094818, -0.10544401407241821, -0.11200470477342606, 0.45707350969314575, 0.27813902497291565, -0.06554415076971054, 0.5767248272895813, 0.11357157677412033, 0.7041166424751282, -0.029603639617562294, 0.2218310385942459, 0.420170396566391, -0.037254735827445984, -0.5870724320411682, -0.14076083898544312, 0.9133720397949219, 0.37962856888771057, 0.47020912170410156, -0.06003192439675331, -0.3730941712856293, 0.015385777689516544, 0.7910031676292419, -0.5723181962966919, -0.45728179812431335, 0.49429476261138916, -0.5924034118652344, -0.6916475296020508, 0.12080060690641403, -0.5773828029632568, -0.3510928750038147, -0.10380583256483078, 0.7811685800552368, -0.9017493724822998, 0.10274873673915863, -0.04533020406961441, -0.5262856483459473, 0.23515109717845917, 0.14817985892295837, -0.7176336050033569, 0.10007943212985992, 0.5304839611053467, 1.0475077629089355, -0.3406180441379547, 0.02578243799507618, 0.13315659761428833, -0.33449697494506836, -0.2907188832759857, 0.8201497197151184, -0.5348621606826782, -0.11539924144744873, -0.04028469696640968, -0.04548434913158417, 0.24845671653747559, -0.12740984559059143, 0.7232189178466797, -0.5311439037322998, 0.2899863123893738, 0.12241389602422714, -0.7791031002998352, -0.4691096246242523, 0.3349437713623047, -0.724603533744812, 0.9741747379302979, 0.2375185191631317, -0.5855160355567932, 0.42186659574508667, -0.6356017589569092, -0.33554935455322266, 0.13773490488529205, 0.17710267007350922, -0.6234250068664551, 0.448608934879303, 0.07471884042024612, 0.6906757950782776, -0.183386892080307, 0.37466350197792053, -0.17955201864242554, -0.6758288741111755, 0.2705918848514557, -0.48127010464668274, 0.7681221961975098, 0.3172740936279297, -0.1791255921125412, 0.023085158318281174, -1.0291905403137207, 0.5943445563316345, -0.007505016401410103, -0.4027683734893799, -0.11883777379989624, -0.02429443784058094, 0.4994720220565796, 0.14983300864696503, 0.17905214428901672, -0.559502124786377, 0.2889494001865387, -0.46880868077278137, 0.5352773070335388, 0.7903491854667664, -0.12300850450992584, 0.26569071412086487, -0.6533536911010742, 0.3773386478424072, -0.0431654118001461, 0.138981431722641, -0.3542291522026062, -0.6241491436958313, -0.5663235187530518, -0.10220619291067123, 0.5708358287811279, 0.7515844702720642, -0.5381794571876526, 0.7593793869018555, -0.23463042080402374, -0.8352854251861572, -0.40835335850715637, -0.22133035957813263, 0.3992955684661865, -0.04707850515842438, 0.39248746633529663, -0.5308676958084106, -0.5955795049667358, -0.9037657976150513, -0.13115793466567993, -0.24557723104953766, -0.2102338969707489, 0.22079910337924957, 0.5978043079376221, -0.13670392334461212, 0.8483512997627258, -0.5332887172698975, -0.4050360321998596, -0.1513914316892624, 0.40259867906570435, 0.4158206880092621, 0.6506143808364868, 0.3465255796909332, -0.4943296015262604, -0.3176504373550415, -0.21166974306106567, -0.46109721064567566, 0.08510634303092957, -0.09373000264167786, 0.0361681692302227, 0.340085506439209, 0.17434541881084442, -0.3639611303806305, 0.47503164410591125, 0.6093446016311646, -0.5367540717124939, 0.544699490070343, -0.15087337791919708, 0.23568391799926758, -1.2477092742919922, 0.005864743143320084, -0.01936250366270542, -0.35171884298324585, -0.4404628276824951, -0.006305665709078312, 0.08082070201635361, -0.4200603663921356, -0.5845258831977844, 0.21842026710510254, -0.11709653586149216, -0.09402267634868622, -0.12988032400608063, -0.28336891531944275, 0.09039918333292007, 0.8130130171775818, 0.004643645603209734, 0.8306695222854614, 0.2380015105009079, -0.48784831166267395, 0.20155109465122223, 0.14447464048862457, -0.47554224729537964, 0.47435858845710754, -0.7206408977508545, 0.43021437525749207, -0.14275680482387543, -0.04682358726859093, -1.322965145111084, -0.18934549391269684, -0.10490792989730835, -0.7401983737945557, 0.24575091898441315, -0.02947007119655609, -0.5891931056976318, -0.36680811643600464, -0.4875837564468384, 0.3824406862258911, 0.6194762587547302, -0.38525786995887756, 0.4365711510181427, 0.32696929574012756, 0.18572086095809937, -0.5194805264472961, -0.7300726771354675, -0.16632606089115143, -0.23486292362213135, -0.45658087730407715, 0.6752690672874451, -0.25626862049102783, 0.2689979672431946, -0.17440049350261688, 0.11921878904104233, -0.3387204706668854, -0.2754417061805725, 0.3846905529499054, 0.16922731697559357, -0.10276049375534058, 0.5733932256698608, 0.03726382926106453, 0.01796824298799038, -0.07478295266628265, -0.2655213177204132, 0.6761054992675781, -0.2675044536590576, 0.3530734181404114, -0.38808539509773254, 0.13517332077026367, 0.8122953772544861, 0.07600796967744827, 0.7881855964660645, 0.6715759038925171, -0.4818558692932129, -0.31496983766555786, -0.2790057957172394, -0.04148745536804199, -0.4924060106277466, 0.5016867518424988, -0.19760876893997192, -0.4991247057914734, 0.5679194331169128, 0.2913137972354889, 0.12886455655097961, 0.7966159582138062, 0.43958792090415955, -0.2756131589412689, 0.7898136973381042, 0.5247325301170349, -0.24948036670684814, 0.5214363932609558, -0.3392522633075714, -0.12799325585365295, -0.5377215147018433, -0.25718265771865845, -0.46431171894073486, -0.6721919775009155, -0.6577972769737244, -0.4470059871673584, 0.18288405239582062, -0.28000062704086304, -0.5953549742698669, 0.6062483787536621, -0.9122137427330017, 0.7899801135063171, 0.6176662445068359, 0.3971855044364929, 0.05223081260919571, -0.027662243694067, -0.08448223024606705, -0.0768953338265419, -0.5202748775482178, -0.3146732449531555, 1.3387118577957153, 0.552936851978302, 0.870998203754425, 0.1013973131775856, 0.6401309967041016, 0.9959828853607178, -0.12503354251384735, -0.7306792736053467, 0.4983881711959839, -0.5341300368309021, -0.8498014807701111, -0.46056821942329407, -0.03998005762696266, -0.6277392506599426, -0.27914127707481384, -0.45483142137527466, -0.7647914290428162, -0.055230703204870224, 0.17561432719230652, -0.3003270626068115, 0.36081230640411377, -0.7845485210418701, 0.9419792890548706, -0.2168915867805481, -0.1616533398628235, -0.14886313676834106, -0.8745236992835999, 0.37160634994506836, -0.03345193341374397, -0.09272361546754837, -0.2127162516117096, 0.30327993631362915, 0.9653313159942627, -0.2800377309322357, 0.6547926664352417, 0.02980129048228264, 0.177079975605011, 0.19660349190235138, -0.008785600773990154, 0.5106812715530396, -0.07708216458559036, 0.08289784938097, 0.4225895404815674, 0.1785680502653122, -0.27958089113235474, -0.38091525435447693, 0.5165236592292786, -0.8961037397384644, 0.04047609865665436, -0.6737163662910461, -0.5447574853897095, -0.03038272075355053, -0.0025048113893717527, 0.715579628944397, 0.35268789529800415, -0.19883596897125244, 0.3977552354335785, 0.7804879546165466, -0.45519721508026123, 0.5875173211097717, 0.39380332827568054, -0.17955228686332703, -0.5545826554298401, 0.9013171792030334, 0.05915934219956398, 0.17707446217536926, 0.4020167291164398, 0.08667676895856857, -0.14159971475601196, -0.39256539940834045, -0.4572685658931732, -0.11768374592065811, -0.5684381723403931, -0.6685164570808411, -0.39529672265052795, -0.6768746376037598, -0.10920002311468124, -0.013461853377521038, -0.4152672290802002, -0.5475009083747864, -0.4698348045349121, -0.1737852394580841, 0.6984147429466248, 0.6587990522384644, 0.017857234925031662, 0.4505283832550049, -0.8363021612167358, 0.06348812580108643, -0.07495290786027908, 0.6701026558876038, -0.05666683241724968, -0.9392588138580322, -0.4458347260951996, -0.3164494037628174, -0.41029542684555054, -0.9955254793167114, 0.4944559931755066, 0.4075871706008911, 0.06788551807403564, 0.3536781072616577, 0.1261925995349884, 0.4815974533557892, -0.7848978638648987, 1.0524044036865234, 0.12227968126535416, -0.9406091570854187, 0.6296395063400269, -0.28081655502319336, 0.8225536346435547, 0.5319086909294128, 0.48382481932640076, -0.3354300558567047, -0.5339105725288391, -0.8152865171432495, -0.9950061440467834, 0.6002363562583923, 0.2846068739891052, 0.3631533980369568, 0.004341273568570614, 0.23549704253673553, 0.22275345027446747, 0.14446446299552917, -0.9417633414268494, -0.1888548731803894, -0.08980492502450943, -0.5929973125457764, -0.04705144464969635, -0.4435417056083679, 0.1800113469362259, -0.5231780409812927, 0.7347861528396606, 0.0862279161810875, 0.7566708326339722, 0.038463424891233444, -0.24623216688632965, -0.021731941029429436, 0.30499467253685, 0.8135354518890381, 0.4113960862159729, -0.5985121726989746, -0.16752871870994568, 0.005713047459721565, -0.790542483329773, 0.16774702072143555, -0.03185499459505081, -0.10472946614027023, 0.1212126612663269, 0.3420710563659668, 0.812727153301239, 0.1379477083683014, -0.8089578151702881, 0.3641407787799835, -0.06877443194389343, -0.024748895317316055, -0.6088548302650452, 0.3260590732097626, -0.4427315890789032, 0.3453708589076996, 0.5674266815185547, 0.09867899864912033, 0.38331305980682373, -0.36450931429862976, 0.6316037774085999, 0.2776366174221039, -0.5911918878555298, -0.21116340160369873, 0.6460177302360535, 0.10186094790697098, -0.6231666207313538, 0.9273273348808289, 0.030821986496448517, -0.4999796450138092, 0.6203489303588867, 0.47243738174438477, 1.0942699909210205, -0.260906845331192, 0.4710143506526947, 0.4791609048843384, 0.3692934811115265, -0.013302721083164215, 0.25352758169174194, 0.02620369754731655, -0.7503631711006165, -0.16033978760242462, -0.7940131425857544, -0.2572645843029022, 0.41005367040634155, -0.838142991065979, 0.31652185320854187, -0.6674813032150269, -0.448307067155838, 0.30186086893081665, -0.0031279881950467825, -0.6245958805084229, 0.6514120101928711, 0.07952246814966202, 1.0592279434204102, -1.1053262948989868, 0.7659280896186829, 0.5936156511306763, -0.3708260953426361, -0.5540332794189453, -0.13359850645065308, -0.07841267436742783, -0.6420746445655823, 0.5078161954879761, 0.27866101264953613, 0.3528468608856201, 0.040141403675079346, -0.7828999161720276, -0.9298382997512817, 0.8260685801506042, -0.0960264503955841, -0.6996493935585022, -0.19501937925815582, -0.14392559230327606, 0.7262867093086243, -0.37791186571121216, 0.3720169961452484, 0.6283273696899414, 0.06745827943086624, -0.054248686879873276, -0.7826473116874695, -0.32401761412620544, -0.49044105410575867, 0.06452200561761856, 0.34599944949150085, -0.3710268437862396, 0.7505567073822021, -0.2703864574432373, 0.14344029128551483, 0.19349783658981323, 0.6062540411949158, 0.04061836749315262, 0.3278617262840271, 0.3790424168109894, 0.7854593396186829, 0.6371498703956604, -0.1573750376701355, 0.8163195848464966, -0.222443625330925, 0.48544085025787354, 1.1204142570495605, 0.1824895441532135, 1.198286771774292, 0.26094570755958557, -0.2418491393327713, 0.8105735182762146, 0.7456509470939636, -0.2957877218723297, 0.7663648128509521, 0.2729518711566925, 0.2722133994102478, -0.031370121985673904, 0.18466077744960785, -0.11902807652950287, 0.4773423373699188, 0.412710964679718, -0.9185019135475159, 0.24996201694011688, 0.21565663814544678, -0.047794099897146225, -0.11036064475774765, -0.31658318638801575, 0.8530325889587402, -0.17911586165428162, -0.5535615086555481, 0.5171881914138794, 0.1492891162633896, 0.6423562169075012, -0.4593545198440552, -0.011975644156336784, -0.060190822929143906, 0.19838204979896545, -0.15959003567695618, -1.0797125101089478, 0.2928016483783722, 0.053381145000457764, -0.6492070555686951, 0.1869291067123413, 0.6644271612167358, -0.39296257495880127, -0.5807933211326599, -0.12083866447210312, -0.16307353973388672, 0.2642248570919037, 0.07306267321109772, -0.7339573502540588, 0.2557062804698944, -0.05117027088999748, -0.17924635112285614, -0.0007934921304695308, 0.36026862263679504, 0.09456298500299454, 0.5368831753730774, 0.44767895340919495, -0.25492575764656067, 0.00021192590065766126, -0.29882925748825073, 0.5756698846817017, -0.9331035017967224, -0.6454927325248718, -0.8478074073791504, 0.8693130612373352, -0.15623921155929565, -0.7180285453796387, 0.4928225874900818, 0.6585447192192078, 0.7645745873451233, -0.5127943754196167, 0.5300866961479187, -0.20668327808380127, 0.4498007595539093, -0.5538613796234131, 0.712299108505249, -0.6724408268928528, 0.20404702425003052, -0.5448987483978271, -0.7910534739494324, -0.2578130066394806, 0.796483039855957, 0.053972937166690826, 0.09851087629795074, 0.7081093788146973, 0.4934859275817871, 0.24165163934230804, 0.03475988656282425, 0.3888779282569885, 0.10677094012498856, 0.017645908519625664, 0.7266178727149963, 0.3054802715778351, -0.8183055520057678, 0.3370857834815979, -0.07537075132131577, -0.032608866691589355, -0.2608245015144348, -0.9289975762367249, -0.9491191506385803, -0.8166723251342773, -0.24584554135799408, -0.5864708423614502, 0.2626191973686218, 0.90766841173172, 0.8128542304039001, -0.9111465215682983, -0.09336212277412415, -0.08640657365322113, 0.020815135911107063, -0.3620178997516632, -0.33568307757377625, 0.31467416882514954, -0.2749458849430084, -0.6959933042526245, 0.009089833125472069, 0.2855505049228668, 0.06972567737102509, -0.2442207783460617, -0.007661644369363785, -0.36699649691581726, 0.3872371017932892, 0.5162686705589294, 0.13575053215026855, -0.5945863127708435, -0.5932804346084595, -0.10829506814479828, 0.00816008448600769, 0.12351969629526138, 0.5454214215278625, -0.9203557968139648, 0.5913249850273132, 0.7357779145240784, 0.6134558916091919, 0.39366456866264343, 0.16593994200229645, 0.8418333530426025, -1.1712744235992432, -0.010158822871744633, 0.4454326629638672, 0.02330395020544529, 0.1527438908815384, -0.5699251294136047, 0.5718574523925781, 0.006565004587173462, -0.9376829862594604, -0.9918498396873474, -0.005089160054922104, -0.998802125453949, -0.4132305681705475, 0.9290865659713745, 0.11726105958223343, -0.34484565258026123, 0.18102067708969116, -0.09781423211097717, 0.0810055360198021, -0.5425176024436951, 0.8663614392280579, 0.8915277719497681, 0.1062965840101242, -0.44147351384162903, -0.16765108704566956, 0.728559672832489, 0.23701950907707214, -0.6278311610221863, -0.4227404296398163, 0.2861349284648895, 0.22323690354824066, 0.38626712560653687, 0.3567468523979187, 0.0040777623653411865, 0.41368260979652405, -0.07011891901493073, 0.20283961296081543, 0.10753460973501205, -0.7845210433006287, -0.2651269733905792, 0.20685793459415436, -0.0954795703291893, -0.4946383833885193 ]
microsoft/xclip-base-patch16-zero-shot
microsoft
"2023-09-12T12:13:40Z"
38,123
16
transformers
[ "transformers", "pytorch", "safetensors", "xclip", "feature-extraction", "vision", "video-classification", "en", "arxiv:2208.02816", "license:mit", "model-index", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2022-09-07T17:52:51Z"
--- language: en license: mit tags: - vision - video-classification model-index: - name: nielsr/xclip-base-patch16-zero-shot results: - task: type: video-classification dataset: name: HMDB-51 type: hmdb-51 metrics: - type: top-1 accuracy value: 44.6 - task: type: video-classification dataset: name: UCF101 type: ucf101 metrics: - type: top-1 accuracy value: 72.0 - task: type: video-classification dataset: name: Kinetics-600 type: kinetics600 metrics: - type: top-1 accuracy value: 65.2 --- # X-CLIP (base-sized model) X-CLIP model (base-sized, patch resolution of 16) trained on [Kinetics-400](https://www.deepmind.com/open-source/kinetics). It was introduced in the paper [Expanding Language-Image Pretrained Models for General Video Recognition](https://arxiv.org/abs/2208.02816) by Ni et al. and first released in [this repository](https://github.com/microsoft/VideoX/tree/master/X-CLIP). This model was trained using 32 frames per video, at a resolution of 224x224. Disclaimer: The team releasing X-CLIP did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description X-CLIP is a minimal extension of [CLIP](https://huggingface.co/docs/transformers/model_doc/clip) for general video-language understanding. The model is trained in a contrastive way on (video, text) pairs. ![X-CLIP architecture](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/xclip_architecture.png) This allows the model to be used for tasks like zero-shot, few-shot or fully supervised video classification and video-text retrieval. ## Intended uses & limitations You can use the raw model for determining how well text goes with a given video. See the [model hub](https://huggingface.co/models?search=microsoft/xclip) to look for fine-tuned versions on a task that interests you. ### How to use For code examples, we refer to the [documentation](https://huggingface.co/transformers/main/model_doc/xclip.html#). ## Training data This model was trained on [Kinetics 400](https://www.deepmind.com/open-source/kinetics). ### Preprocessing The exact details of preprocessing during training can be found [here](https://github.com/microsoft/VideoX/blob/40f6d177e0a057a50ac69ac1de6b5938fd268601/X-CLIP/datasets/build.py#L247). The exact details of preprocessing during validation can be found [here](https://github.com/microsoft/VideoX/blob/40f6d177e0a057a50ac69ac1de6b5938fd268601/X-CLIP/datasets/build.py#L285). During validation, one resizes the shorter edge of each frame, after which center cropping is performed to a fixed-size resolution (like 224x224). Next, frames are normalized across the RGB channels with the ImageNet mean and standard deviation. ## Evaluation results This model achieves a zero-shot top-1 accuracy of 44.6% on HMDB-51, 72.0% on UCF-101 and 65.2% on Kinetics-600.
[ -0.6159638166427612, -0.4674839377403259, 0.33459290862083435, 0.01671716757118702, -0.33118540048599243, 0.04679115116596222, -0.2095889300107956, -0.20390592515468597, 0.34237051010131836, 0.3034687042236328, -0.8876124024391174, -0.6129179000854492, -0.7900907397270203, -0.22388091683387756, -0.5992122292518616, 1.0424771308898926, -0.30449387431144714, -0.07249650359153748, -0.2498716115951538, -0.3408016860485077, -0.36728084087371826, -0.6477576494216919, -0.1641576588153839, -0.15208519995212555, -0.10133649408817291, 0.3401605486869812, 0.8580500483512878, 0.9276086091995239, 0.5752264261245728, 0.34851977229118347, -0.23535244166851044, -0.3255902826786041, -0.3472284972667694, -0.4699506163597107, -0.1291351318359375, -0.38635069131851196, -0.5789490342140198, 0.18112006783485413, 0.7399445176124573, 0.15596279501914978, -0.05467105656862259, 0.45568588376045227, -0.1754753291606903, 0.3650945723056793, -0.7065469622612, -0.051374342292547226, -0.4062592685222626, 0.29522818326950073, -0.05805307254195213, 0.033385567367076874, 0.03138061985373497, -0.010848881676793098, 0.23458069562911987, -0.3511755168437958, 0.4224405884742737, -0.2672625780105591, 1.2566726207733154, 0.22972102463245392, -0.0033145821653306484, 0.25162437558174133, -0.44035273790359497, 0.7586054801940918, -0.49035292863845825, 0.6234145164489746, 0.2578386962413788, 0.4078124463558197, 0.3720100224018097, -0.750011146068573, -0.5154542922973633, -0.04136933758854866, 0.28101903200149536, -0.14529778063297272, -0.5993515849113464, 0.18657977879047394, 0.7259542942047119, 0.4227851629257202, -0.612329363822937, 0.05140922591090202, -0.38187679648399353, -0.2877241373062134, 0.552452564239502, 0.15442724525928497, 0.44109824299812317, -0.24564790725708008, -0.5125719308853149, -0.5369656085968018, -0.39721783995628357, 0.2846154272556305, 0.006223126780241728, -0.03419055417180061, -0.5108794569969177, 0.4935043454170227, -0.14647899568080902, 0.4425656795501709, 0.13043908774852753, -0.4403659701347351, 0.3727518618106842, -0.2851913869380951, -0.47044306993484497, -0.09610433876514435, 0.8970824480056763, 0.6543595194816589, 0.26109778881073, 0.20379038155078888, 0.005156552419066429, 0.39353808760643005, 0.1894742250442505, -1.0799882411956787, -0.24915868043899536, 0.05436547473073006, -0.36488834023475647, -0.15194274485111237, -0.10968711972236633, -0.554886519908905, 0.3852732479572296, -0.41049787402153015, 0.6850794553756714, -0.5018569231033325, -0.09607628732919693, 0.1972280591726303, -0.2716915011405945, 0.06681288778781891, 0.34201720356941223, -0.596400260925293, 0.4900953769683838, 0.3343782424926758, 1.0173646211624146, -0.1551315188407898, -0.32587698101997375, -0.43631869554519653, -0.08887076377868652, -0.050018925219774246, 0.6996031403541565, -0.27157118916511536, -0.08582580089569092, -0.017711281776428223, 0.19398707151412964, 0.18809743225574493, -0.5086073875427246, 0.37508243322372437, -0.33728376030921936, -0.010008676908910275, -0.13490267097949982, -0.4479817748069763, -0.36659541726112366, 0.3920797109603882, -0.4662992060184479, 0.8666366934776306, 0.18442578613758087, -0.5664581656455994, 0.4586690366268158, -0.4221121370792389, 0.039377275854349136, -0.2352939397096634, -0.14347457885742188, -0.5228789448738098, -0.06008031591773033, 0.2645866870880127, 0.36880266666412354, -0.06477925926446915, 0.14341960847377777, -0.5611676573753357, -0.11879735440015793, 0.09519121795892715, -0.3185349702835083, 0.605236828327179, -0.066563680768013, -0.31580057740211487, 0.3518955707550049, -0.8062635660171509, 0.35081157088279724, -0.062331423163414, 0.09199519455432892, 0.12765179574489594, -0.47029972076416016, -0.07518912851810455, 0.5443853735923767, -0.14110982418060303, -0.6015857458114624, 0.18552938103675842, 0.14122042059898376, 0.4557480216026306, 0.4672424793243408, -0.1539062261581421, 0.3156399428844452, -0.0024814195930957794, 0.8265830874443054, -0.04989930987358093, 0.29221343994140625, -0.42569082975387573, -0.26680251955986023, -0.3920755386352539, -0.3655872046947479, 0.305115669965744, 0.5092087388038635, -0.4873548448085785, 0.23504546284675598, -0.2859388589859009, -0.5834634900093079, -0.2793218791484833, 0.18298855423927307, 0.5763341188430786, 0.37481650710105896, 0.395101398229599, -0.6093674302101135, -0.7745482921600342, -0.8673626780509949, 0.28249552845954895, -0.020175853744149208, -0.1643247753381729, 0.22999422252178192, 0.6705865263938904, -0.16229724884033203, 1.1490347385406494, -0.8092064261436462, -0.35421282052993774, -0.1984306275844574, 0.05514777451753616, 0.08253183960914612, 0.43533870577812195, 0.8387131690979004, -0.6640886664390564, -0.5241854786872864, -0.3460543155670166, -0.6785140633583069, 0.10391347855329514, 0.21358634531497955, -0.002725448925048113, -0.043238766491413116, 0.45956605672836304, -0.7086867690086365, 0.7677041888237, 0.7156930565834045, -0.19784724712371826, 0.9031496047973633, -0.07287970185279846, 0.10912393033504486, -0.6484373807907104, 0.08341541886329651, 0.23611274361610413, -0.6268726587295532, -0.39371636509895325, 0.025296391919255257, 0.010625666007399559, -0.4303809106349945, -0.9072961211204529, 0.427636981010437, -0.3925570249557495, -0.12000289559364319, -0.31508922576904297, 0.13036854565143585, 0.10722663998603821, 0.6688604950904846, 0.49570468068122864, 0.8333203196525574, 0.5390644669532776, -0.6057212948799133, 0.31207817792892456, 0.4919646680355072, -0.5005186200141907, 0.531696081161499, -0.8705264329910278, -0.06818835437297821, 0.03786031901836395, 0.04359971359372139, -0.7195285558700562, -0.2791677415370941, 0.053128644824028015, -0.5030620098114014, 0.33831992745399475, -0.3061743676662445, -0.3505629301071167, -0.5271909236907959, -0.3999490439891815, 0.5660850405693054, 0.7649882435798645, -0.38002172112464905, 0.2091158628463745, 0.6319054961204529, 0.10704361647367477, -0.48249828815460205, -0.7305179238319397, -0.0708361491560936, -0.11537036299705505, -0.7098010182380676, 0.7540396451950073, -0.1954607516527176, 0.14370249211788177, 0.03973221778869629, -0.08627938479185104, -0.41769784688949585, -0.37703225016593933, 0.31816452741622925, 0.2772538363933563, -0.1734362095594406, -0.27447324991226196, -0.12930874526500702, -0.08726289868354797, 0.11485876142978668, 0.147054523229599, 0.3615322411060333, -0.11771789193153381, -0.1337272822856903, -0.5461388826370239, 0.35838833451271057, 0.5220234990119934, -0.02919895574450493, 0.37095391750335693, 0.7615351676940918, -0.45072484016418457, 0.09301233291625977, -0.5663760900497437, -0.2164156138896942, -0.4729853570461273, 0.5901991724967957, -0.14628861844539642, -0.7849506139755249, 0.5277248620986938, 0.1603424996137619, -0.35920360684394836, 0.3287489116191864, 0.5424971580505371, 0.056485775858163834, 1.2306329011917114, 1.01044499874115, 0.015429943799972534, 0.759864866733551, -0.6420304775238037, -0.2041126787662506, -0.8674201369285583, -0.056568969041109085, -0.16267530620098114, -0.21662500500679016, -0.24049493670463562, -0.537528395652771, 0.383523166179657, 0.29089027643203735, -0.2784372866153717, 0.8461349606513977, -0.37032389640808105, 0.41856297850608826, 0.4309404790401459, 0.24915945529937744, -0.0828477144241333, 0.08181963115930557, -0.2149457186460495, -0.478817880153656, -0.6668707132339478, -0.3470434546470642, 0.692656397819519, 0.566810131072998, 0.7367482781410217, -0.13253585994243622, 0.27717986702919006, 0.2922810912132263, 0.15175966918468475, -0.8072879314422607, 0.7214997410774231, -0.2140640914440155, -0.6576533913612366, 0.008589807897806168, -0.23794643580913544, -0.516352653503418, -0.06846759468317032, -0.3084755539894104, -0.9680152535438538, 0.06037864089012146, 0.37139829993247986, -0.5437279939651489, 0.6206614971160889, -0.5553425550460815, 1.1072641611099243, -0.20984269678592682, -0.3537401854991913, -0.10506284981966019, -0.7724987268447876, 0.412183552980423, 0.2774762809276581, -0.07673098891973495, -0.19053804874420166, 0.188080295920372, 0.8995984196662903, -0.7621908783912659, 0.8642436265945435, -0.12708839774131775, 0.1726999133825302, 0.6620275974273682, -0.04440569877624512, 0.12867647409439087, -0.16458752751350403, 0.3431447744369507, 0.36764827370643616, 0.24390478432178497, -0.03214683756232262, -0.7680553197860718, 0.25029876828193665, -0.788021981716156, -0.4106489419937134, -0.19654899835586548, -0.3470429480075836, 0.0778232142329216, 0.17991383373737335, 0.5009370446205139, 0.5075743794441223, -0.1830092817544937, 0.26305001974105835, 0.6897050142288208, -0.13080143928527832, 0.3973871171474457, 0.19677869975566864, -0.4853653907775879, -0.8194368481636047, 0.7620895504951477, 0.23188260197639465, 0.43829280138015747, 0.39706799387931824, -0.021877765655517578, -0.193480983376503, -0.2922232449054718, -0.4377516508102417, 0.23336458206176758, -0.7380629777908325, -0.49704042077064514, -0.5026773810386658, -0.34228602051734924, -0.46515077352523804, 0.016381651163101196, -0.6721997857093811, -0.4019029140472412, -0.4335086941719055, -0.21748585999011993, 0.38290780782699585, 0.3453669846057892, -0.2858172059059143, 0.5642788410186768, -1.1427055597305298, 0.30276164412498474, 0.3457968533039093, 0.5258782505989075, -0.15690474212169647, -0.7964097261428833, -0.27435868978500366, -0.07502483576536179, -0.6697442531585693, -0.8689950704574585, 0.552937388420105, 0.19945333898067474, 0.4687381684780121, 0.5648148655891418, -0.25294163823127747, 0.8413310050964355, -0.6316604018211365, 0.9369065165519714, 0.5001090168952942, -1.1162816286087036, 0.6308056712150574, -0.15262353420257568, 0.37415316700935364, 0.4863288700580597, 0.7905086874961853, -0.45617684721946716, 0.2889919579029083, -0.7492502331733704, -0.6634341478347778, 0.6759365797042847, 0.1467963308095932, 0.13348253071308136, 0.04652126133441925, 0.3608269989490509, -0.11405228078365326, 0.3046811521053314, -0.6111567616462708, -0.2868562936782837, -0.33446308970451355, 0.15548978745937347, -0.00975755788385868, -0.4545760452747345, 0.061893995851278305, -0.6470395922660828, 0.5984941124916077, -0.19115181267261505, 0.43366509675979614, 0.299349308013916, -0.21324828267097473, -0.08682144433259964, -0.12653471529483795, 0.6207614541053772, 0.3573468327522278, -0.49944889545440674, -0.21757051348686218, 0.13287024199962616, -0.6977875828742981, 0.34368768334388733, -0.1526186466217041, -0.16299909353256226, 0.22217538952827454, 0.3211727440357208, 1.2443679571151733, 0.4605284333229065, -0.7555567026138306, 0.8168299794197083, 0.004753568209707737, -0.45767542719841003, -0.2824263870716095, 0.0789887085556984, -0.43453094363212585, 0.15172640979290009, 0.06324812769889832, 0.14775165915489197, 0.05500062182545662, -0.5100671052932739, 0.5643377900123596, 0.4784528315067291, -0.6348506808280945, -0.7491328120231628, 0.7066259980201721, -0.07259931415319443, -0.3181551396846771, 0.6335251927375793, -0.17621345818042755, -0.938849925994873, 0.46760693192481995, 0.39604896306991577, 0.9075964689254761, -0.050285518169403076, 0.3310715854167938, 0.7245886921882629, -0.10941124707460403, -0.08560523390769958, 0.12513428926467896, -0.35883235931396484, -0.6993521451950073, -0.5955381393432617, -0.42168059945106506, -0.5913621187210083, 0.061788007616996765, -1.0247013568878174, 0.7624092102050781, -0.49667254090309143, -0.6114629507064819, -0.001733233337290585, -0.040666788816452026, -0.8513231873512268, 0.4010513424873352, 0.3779012858867645, 1.517690896987915, -0.8311554193496704, 0.7455971240997314, 0.5092573761940002, -0.5278341770172119, -0.7415816783905029, -0.4276628792285919, 0.03922494128346443, -0.7050188183784485, 0.7056636214256287, 0.2615533173084259, 0.15910786390304565, -0.2553179860115051, -0.8137673139572144, -1.0771299600601196, 1.0343611240386963, 0.5719327926635742, -0.41355565190315247, -0.2940007746219635, 0.05596235767006874, 0.3418354392051697, -0.37515783309936523, 0.5395474433898926, 0.5321508646011353, 0.02151154726743698, 0.405455619096756, -1.001790165901184, -0.09613671153783798, -0.23984144628047943, -0.020553434267640114, 0.09552261233329773, -0.6693025231361389, 0.8788520693778992, -0.3880433738231659, -0.10033687949180603, 0.15221939980983734, 0.7278616428375244, 0.2019616812467575, 0.031024398282170296, 0.4744753837585449, 0.9321160912513733, 0.26650184392929077, 0.09857761114835739, 1.0242416858673096, -0.20349067449569702, 0.47029948234558105, 1.1367250680923462, -0.09976325184106827, 0.8985666036605835, 0.33662107586860657, -0.4403722286224365, 0.6852173805236816, 0.4408431351184845, -0.2932623326778412, 0.5530588030815125, 0.011029845103621483, 0.03076460026204586, -0.36433538794517517, -0.1385275274515152, -0.28000372648239136, 0.5296393036842346, 0.18658311665058136, -0.48445576429367065, -0.3599432408809662, 0.29835230112075806, 0.18625061213970184, -0.21838191151618958, -0.4280531704425812, 0.565981924533844, -0.019574865698814392, -0.6726164221763611, 0.5383193492889404, -0.17878122627735138, 0.6502613425254822, -0.8614180088043213, -0.14983899891376495, 0.16490258276462555, 0.33679521083831787, -0.23290404677391052, -1.0899198055267334, 0.4801419675350189, 0.22459635138511658, -0.43309545516967773, -0.12266100943088531, 0.5972093343734741, -0.31273534893989563, -0.35116836428642273, 0.32300034165382385, -0.025805121287703514, 0.31583088636398315, -0.4419066607952118, -0.8207133412361145, 0.6028711199760437, 0.05543214827775955, -0.11032483726739883, 0.46994638442993164, 0.15011636912822723, -0.0632544606924057, 0.6755082607269287, 0.39794981479644775, -0.05520455911755562, -0.04794435203075409, -0.1391824185848236, 0.9877678155899048, -0.6836493611335754, -0.42137962579727173, -0.7952075600624084, 0.6002547740936279, -0.06653537601232529, -0.378333181142807, 0.7161118388175964, 0.4595893919467926, 0.9932214021682739, -0.20419728755950928, 0.4847774803638458, -0.003920507617294788, 0.24947911500930786, -0.49894005060195923, 0.3507372736930847, -0.4625103175640106, -0.29893866181373596, -0.7242681980133057, -0.7079710364341736, -0.3300289213657379, 0.5517502427101135, -0.2581605315208435, 0.08967933058738708, 0.4878041446208954, 0.5428802967071533, -0.21213141083717346, -0.2085402011871338, 0.36376920342445374, 0.047775279730558395, 0.2387121021747589, 0.45992225408554077, 0.40677979588508606, -0.7743105292320251, 0.8348401188850403, -0.7296273708343506, -0.35921090841293335, -0.12375675141811371, -1.1325469017028809, -0.8440577387809753, -0.3687189519405365, -0.869846522808075, -0.32531970739364624, -0.17160643637180328, 0.9659202694892883, 1.3564426898956299, -0.5850226283073425, -0.22685833275318146, 0.17955267429351807, -0.12519383430480957, -0.19733746349811554, -0.219019815325737, 0.2705378830432892, 0.13671457767486572, -0.5889567136764526, -0.03388398140668869, 0.22025711834430695, 0.3813243806362152, -0.24449847638607025, 0.03705015778541565, -0.12057521194219589, -0.22855080664157867, 0.7050214409828186, 0.7026530504226685, -0.38242894411087036, -0.4255242645740509, 0.14526385068893433, 0.22850468754768372, 0.48328882455825806, 0.7508828639984131, -0.9616425037384033, 0.2749972641468048, 0.48395758867263794, 0.310647189617157, 0.8483684659004211, 0.12327692657709122, 0.4284912645816803, -0.8025874495506287, 0.21391619741916656, -0.061625994741916656, 0.5295804738998413, 0.3963373601436615, -0.1356988102197647, 0.4168533980846405, 0.4002026319503784, -0.5337867736816406, -0.8533118367195129, 0.13503426313400269, -1.1741529703140259, 0.04837474226951599, 0.9082925319671631, -0.3514820337295532, -0.5959306359291077, 0.49429914355278015, -0.4050349295139313, 0.1506357491016388, -0.24283799529075623, 0.3066118657588959, 0.4878842830657959, -0.03604885935783386, -0.6097308993339539, -0.3103237748146057, 0.5040665864944458, 0.15460610389709473, -0.4097536504268646, -0.19928646087646484, 0.22745147347450256, 0.6369213461875916, 0.41385093331336975, 0.46402260661125183, -0.18384291231632233, 0.44574183225631714, 0.044866956770420074, 0.35892370343208313, -0.02878032997250557, -0.3671766519546509, -0.37993109226226807, 0.18153823912143707, -0.3228347897529602, -0.38901981711387634 ]
allenai/led-base-16384
allenai
"2023-01-24T16:26:59Z"
38,098
36
transformers
[ "transformers", "pytorch", "tf", "led", "text2text-generation", "en", "arxiv:2004.05150", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: en license: apache-2.0 --- ## Introduction [Allenai's Longformer Encoder-Decoder (LED)](https://github.com/allenai/longformer#longformer). As described in [Longformer: The Long-Document Transformer](https://arxiv.org/pdf/2004.05150.pdf) by Iz Beltagy, Matthew E. Peters, Arman Cohan, *led-base-16384* was initialized from [*bart-base*](https://huggingface.co/facebook/bart-base) since both models share the exact same architecture. To be able to process 16K tokens, *bart-base*'s position embedding matrix was simply copied 16 times. This model is especially interesting for long-range summarization and question answering. ## Fine-tuning for down-stream task [This notebook](https://colab.research.google.com/drive/12LjJazBl7Gam0XBPy_y0CTOJZeZ34c2v?usp=sharing) shows how *led-base-16384* can effectively be fine-tuned on a downstream task.
[ -0.4166145622730255, -0.8438636064529419, 0.6720335483551025, 0.26099175214767456, -0.34064775705337524, 0.2101832777261734, -0.38555029034614563, -0.426461786031723, 0.19471068680286407, 0.44557419419288635, -0.4225550889968872, -0.1836417317390442, -0.5611258149147034, 0.20505860447883606, -0.5116925239562988, 1.0765806436538696, -0.2543644905090332, -0.03134264796972275, -0.05799552798271179, -0.02265406958758831, -0.5383574366569519, -0.29662370681762695, -0.7529870867729187, -0.2479916363954544, 0.5711875557899475, 0.11642517149448395, 0.3983728587627411, 0.4337172210216522, 0.6488019824028015, 0.24376830458641052, -0.15948434174060822, 0.16627992689609528, -0.8068413138389587, 0.19172537326812744, -0.1156141608953476, -0.3562889099121094, -0.9202406406402588, -0.4666067957878113, 0.9871862530708313, 0.719576895236969, -0.010542879812419415, 0.4135732352733612, 0.32198989391326904, 1.1865715980529785, -0.6459521055221558, 0.302766889333725, -0.14024026691913605, -0.2588692009449005, -0.4383499324321747, -0.07766743004322052, -0.7682086825370789, -0.08640153706073761, -0.40881067514419556, -0.5982658863067627, 0.2752147614955902, 0.11562541127204895, 0.8415782451629639, 0.5060182213783264, -0.4008932411670685, -0.21679724752902985, -0.8566796183586121, 0.8926767706871033, -0.5329291224479675, 0.640346884727478, 0.19694802165031433, 0.4651045799255371, 0.1583823710680008, -0.8324092626571655, -0.6449089050292969, 0.25935158133506775, -0.11062910407781601, 0.3226746916770935, -0.4192120134830475, 0.3558422923088074, 0.4503883123397827, 0.4042673110961914, -0.5950749516487122, 0.09333383291959763, -0.917199969291687, 0.3314396142959595, 0.6257007122039795, 0.11100300401449203, -0.23764337599277496, -0.475494921207428, -0.1477128118276596, 0.09412573277950287, -0.7609895467758179, 0.036817170679569244, 0.21611571311950684, 0.16137748956680298, -0.2699240446090698, 0.4821447730064392, -0.14728552103042603, 0.7114885449409485, 0.5369060039520264, 0.2332608848810196, 0.38863980770111084, -0.5061221718788147, -0.48462262749671936, -0.00013520833454094827, 0.4329686462879181, 0.30038338899612427, 0.16741342842578888, -0.09303008019924164, -0.21577700972557068, -0.049102555960416794, 0.5720506906509399, -0.9338598251342773, -0.09987487643957138, 0.41556763648986816, -0.8927334547042847, 0.07342839986085892, 0.19718508422374725, -0.49170494079589844, -0.09644180536270142, -0.5072590708732605, 0.3071669936180115, -0.4075675308704376, -0.04069149121642113, 0.21440984308719635, -0.13468515872955322, 0.44927698373794556, 0.6331186294555664, -1.1074316501617432, 0.45090386271476746, 1.0952602624893188, 0.8081706762313843, -0.5416569113731384, -0.2044699639081955, -0.6340567469596863, 0.05689236521720886, -0.23360228538513184, 0.5665709376335144, -0.11850734800100327, -0.0031492861453443766, -0.10280115157365799, 0.1459304243326187, -0.10321015119552612, -0.5198764801025391, 0.4518117606639862, -0.8460201025009155, 0.18095993995666504, -0.22580121457576752, -0.7168697118759155, -0.21109575033187866, 0.037609100341796875, -0.9400848746299744, 1.0738428831100464, 0.2518017888069153, -0.6908896565437317, 0.18238073587417603, -0.9933286309242249, -0.4299670159816742, 0.10231652110815048, -0.10637882351875305, -0.399417519569397, 0.05056021362543106, 0.35378149151802063, 0.5493226647377014, -0.164042130112648, 0.2156805545091629, 0.0859609916806221, -0.7160100340843201, -0.11198583990335464, -0.35761767625808716, 0.925872266292572, 0.21191243827342987, -0.25369498133659363, 0.29208871722221375, -0.9533122777938843, -0.3740979731082916, -0.10490646958351135, -0.6404060125350952, -0.11648572981357574, -0.03712126612663269, 0.10273788124322891, -0.24960486590862274, 0.2609560787677765, -0.8098624348640442, 0.0030140846502035856, -0.27548784017562866, 0.6188837885856628, 0.7396722435951233, -0.05003602057695389, 0.6099262833595276, -0.3606036603450775, 0.5698238611221313, -0.18666167557239532, 0.18754415214061737, -0.4595755934715271, -0.4543988108634949, -0.7595289945602417, -0.26930683851242065, 0.13310658931732178, 0.5427606105804443, -0.5612277388572693, 0.571151614189148, -0.6467188000679016, -0.5932016372680664, -0.6973793506622314, 0.06963605433702469, -0.022892290726304054, 0.5510783791542053, 0.7893012762069702, -0.09159331768751144, -0.6077438592910767, -0.7186896800994873, 0.3400213122367859, -0.03704996034502983, -0.12749437987804413, 0.03410675749182701, 0.4760974645614624, -0.262401282787323, 0.8401883840560913, -0.45920446515083313, -0.060619354248046875, -0.511324942111969, -0.1027269959449768, 0.8770382404327393, 0.5252993106842041, 0.6257544159889221, -0.7463012933731079, -0.5315434336662292, -0.3634917140007019, -0.8127653002738953, 0.22839349508285522, -0.4004085958003998, -0.22503378987312317, 0.2515629231929779, 0.7199145555496216, -1.0353636741638184, 0.4956425726413727, 0.5028541088104248, -0.24034078419208527, 0.3254155218601227, -0.1456359475851059, 0.04855029284954071, -1.4024907350540161, 0.167606920003891, -0.3454817235469818, -0.26848429441452026, -0.509125828742981, 0.1655273735523224, 0.4417828321456909, -0.17116232216358185, -0.2919154763221741, 0.3299381136894226, -0.7131056189537048, -0.05218374356627464, -0.3345842659473419, -0.15476849675178528, 0.20707719027996063, 0.5937398672103882, -0.1540348082780838, 0.8052167296409607, 0.37419649958610535, -0.43792885541915894, 0.6357113718986511, 0.4104533791542053, -0.38443464040756226, 0.517952561378479, -1.0557293891906738, 0.16469483077526093, -0.6152846813201904, 0.5066115856170654, -1.0280486345291138, 0.07618812471628189, 0.04003996029496193, -0.357716828584671, 0.4760130047798157, -0.10063714534044266, -0.4208618104457855, -0.4287812411785126, -0.5734944343566895, 0.6780080199241638, 0.6854867935180664, -0.6593375205993652, 0.7043259739875793, 0.1233019158244133, -0.3565651774406433, -0.7035192251205444, -0.8448212146759033, -0.0006958821904845536, -0.08082110434770584, -0.6917491555213928, 0.582661509513855, -0.28942081332206726, -0.07717372477054596, -0.17154374718666077, 0.10077764093875885, 0.29526475071907043, -0.06825746595859528, 0.662318229675293, 0.384637713432312, -0.5472160577774048, 0.3012233078479767, 0.2016097456216812, -0.1706075221300125, 0.06597252935171127, 0.13247200846672058, 0.6534477472305298, -0.1693674772977829, -0.4905880093574524, -0.3562410771846771, 0.6517502665519714, 0.49767300486564636, -0.22296251356601715, 0.6250733733177185, 0.46136778593063354, -0.32495447993278503, -0.3046448528766632, -0.4671573042869568, -0.10494158416986465, -0.5216586589813232, 0.4928284287452698, -0.2343655377626419, -0.875807523727417, 0.5204957127571106, 0.17179396748542786, 0.06349926441907883, 0.6851495504379272, 0.5511683225631714, -0.31935155391693115, 0.5877830982208252, 0.795497477054596, -0.1445845663547516, 0.6990925669670105, -0.4801770746707916, 0.2614031732082367, -0.9522796273231506, -0.007625136990100145, -0.29790574312210083, -0.5466127395629883, -0.35725685954093933, -0.5365405082702637, 0.18055933713912964, 0.19923503696918488, -0.5618764162063599, 0.4705336391925812, -0.46475401520729065, 0.39125218987464905, 0.5564998388290405, -0.07919581234455109, 0.2029791623353958, -0.1537751704454422, 0.46070700883865356, 0.019845064729452133, -0.5546110272407532, -0.3507840633392334, 1.1329739093780518, 0.7607583999633789, 1.1318049430847168, 0.1383872926235199, 0.9560803174972534, 0.3377837538719177, 0.036426324397325516, -0.8177528381347656, 0.395539253950119, -0.24193327128887177, -0.5783824324607849, -0.43573644757270813, -0.05573523789644241, -1.1654222011566162, -0.1966935396194458, 0.03843805566430092, -0.3519928753376007, 0.5027292370796204, 0.07155570387840271, -0.6737906336784363, 0.2443850189447403, -0.7624055743217468, 0.7903315424919128, -0.11126063019037247, 0.009159903973340988, -0.49833211302757263, -0.6286556720733643, -0.15564419329166412, -0.03974219411611557, 0.01966051012277603, 0.222352534532547, 0.21847990155220032, 0.8932071924209595, -0.11258461326360703, 0.8511933088302612, -0.11960605531930923, -0.13991236686706543, 0.1876729279756546, -0.34534263610839844, 0.4498976767063141, 0.13417822122573853, -0.15456168353557587, 0.20325526595115662, -0.2002044916152954, -0.4677533209323883, -0.6475982666015625, 0.2852328419685364, -0.8261309266090393, -0.37310561537742615, -0.32427242398262024, -0.25646668672561646, 0.204640194773674, 0.3862955570220947, 0.3671706020832062, 0.508289098739624, -0.2326623797416687, 0.4887906312942505, 0.7163234353065491, 0.05348186939954758, 0.7333222031593323, 0.2995987832546234, -0.13014796376228333, -0.3161790668964386, 0.5296294689178467, 0.026071570813655853, 0.12136386334896088, 0.9206351041793823, -0.4165652394294739, 0.11288926750421524, -0.8051806688308716, -0.5469713807106018, 0.4387827515602112, -0.9328128099441528, -0.4177987277507782, -0.4306976795196533, -0.5613836646080017, -0.3248521387577057, -0.4023439884185791, -0.5795748829841614, -0.43476077914237976, -0.5049804449081421, -0.5245327949523926, 0.3182820677757263, 0.8373850584030151, 0.001168063492514193, 0.2824166417121887, -0.8956671953201294, 0.5425627827644348, 0.3454771041870117, 0.3000301718711853, 0.16445611417293549, -0.5004515647888184, -0.5919645428657532, -0.03587690740823746, -0.16103790700435638, -0.7830521464347839, 0.2431536614894867, 0.18837442994117737, 0.6322386264801025, 0.39994189143180847, 0.023276710882782936, 0.4495936930179596, -0.7087157964706421, 0.8385328650474548, 0.01692851632833481, -0.9442686438560486, 0.5969826579093933, -0.23993314802646637, 0.41650390625, 0.5986745953559875, 0.33672383427619934, -0.39767053723335266, -0.1478034257888794, -0.3079877495765686, -1.0664337873458862, 0.5701402425765991, 0.04779965803027153, 0.20220261812210083, -0.025511372834444046, 0.1888776570558548, 0.4226624071598053, 0.1755274087190628, -0.6406825184822083, -0.3274683356285095, -0.4519185423851013, -0.3054179251194, -0.3048660457134247, -0.418049156665802, -0.2306348979473114, -0.3821943700313568, 0.4057099521160126, -0.11140404641628265, 0.7370496988296509, 0.23184984922409058, -0.5063725709915161, -0.22997263073921204, 0.3505178689956665, 0.5950985550880432, 1.0820716619491577, -0.7246032357215881, 0.17657366394996643, 0.0868145078420639, -0.6605848073959351, -0.28461068868637085, 0.44710853695869446, -0.2375682145357132, 0.188862144947052, 0.7203390002250671, 1.3474265336990356, -0.05604514107108116, -0.49707934260368347, 0.44546887278556824, 0.0483681745827198, 0.07936971634626389, -0.5219058990478516, -0.04215611517429352, 0.141093447804451, 0.34142833948135376, 0.7412424683570862, 0.035769134759902954, 0.10549580305814743, -0.6015539169311523, 0.06881962716579437, 0.07458561658859253, -0.13622647523880005, -0.5037813186645508, 0.6533070802688599, 0.4852803647518158, -0.16265733540058136, 0.6753057241439819, -0.20423801243305206, -0.28495875000953674, 0.5262957811355591, 0.5562349557876587, 0.8165653347969055, 0.20832687616348267, 0.011982960626482964, 0.4518336355686188, 0.1754107028245926, 0.12800878286361694, 0.6096704602241516, -0.3652312755584717, -0.7069620490074158, -0.696866512298584, -0.6124221682548523, -0.3065147399902344, -0.11455979198217392, -0.9385353326797485, 0.17963047325611115, -0.327553391456604, -0.06346235424280167, 0.423843652009964, 0.04384732246398926, -0.819602906703949, 0.04360523447394371, 0.3918382227420807, 1.1529982089996338, -0.6175919771194458, 0.9318099617958069, 0.7293832898139954, -0.3217342495918274, -0.5870378017425537, -0.14990781247615814, -0.43605074286460876, -0.88246089220047, 0.8549339175224304, 0.11648675054311752, -0.018908100202679634, -0.00571424700319767, -0.37184566259384155, -0.9415289163589478, 1.5359939336776733, 0.1706259548664093, -0.7911885380744934, -0.3925982415676117, -0.038727056235075, 0.5513679385185242, -0.30547645688056946, 0.1790955513715744, 0.35010236501693726, 0.3479430377483368, -0.2891649007797241, -1.1601171493530273, 0.20847542583942413, -0.40640392899513245, -0.01982760988175869, 0.2865523397922516, -0.7624349594116211, 1.2486931085586548, -0.22349846363067627, -0.24799147248268127, 0.05698705464601517, 0.8290970325469971, 0.1364057958126068, 0.24097171425819397, 0.2755007743835449, 0.5741127729415894, 0.7109239101409912, 0.026194564998149872, 0.9473229050636292, -0.2806435823440552, 0.37025919556617737, 0.9968818426132202, -0.0023833781015127897, 1.240804672241211, 0.599629819393158, -0.36647650599479675, 0.7525229454040527, 0.3370462954044342, -0.4027790427207947, 0.6484405994415283, -0.13342125713825226, 0.09499074518680573, -0.011568734422326088, 0.4802808463573456, -0.601058304309845, 0.3553430140018463, 0.30568042397499084, -0.5538567900657654, -0.22967660427093506, 0.010433387942612171, -0.10346941649913788, -0.10954507440328598, -0.532739520072937, 0.7052386403083801, 0.1759594976902008, -0.7186105847358704, 0.7150900363922119, 0.10961020737886429, 1.0055514574050903, -0.5095968246459961, 0.014795792289078236, -0.27306339144706726, 0.37588465213775635, -0.21556591987609863, -1.064141035079956, 0.4007914364337921, -0.01134155597537756, -0.5687121152877808, -0.6132369041442871, 0.8335185050964355, -0.20026251673698425, -0.35148414969444275, 0.4111822247505188, 0.43855392932891846, -0.10696907341480255, -0.10531964153051376, -0.3719640076160431, 0.11320265382528305, -0.11430738866329193, -0.355424165725708, 0.10872447490692139, 0.18616223335266113, 0.014446762390434742, 0.4083065688610077, 0.4688919484615326, 0.10140880942344666, 0.09202558547258377, 0.22664856910705566, 0.8751773238182068, -0.9432536363601685, -0.743422269821167, -0.7735921740531921, 0.6027168035507202, -0.06458760797977448, -0.3213996887207031, 0.7762708067893982, 0.7968419790267944, 0.8433164954185486, -0.40009552240371704, 0.6453162431716919, 0.02194015495479107, 0.7369006276130676, -0.5333858728408813, 0.8642709851264954, -0.2732207477092743, -0.010106292553246021, -0.07935798913240433, -1.0893406867980957, -0.16306592524051666, 0.46280673146247864, -0.15495866537094116, -0.06037125736474991, 0.7270951271057129, 0.5226492881774902, -0.21145781874656677, -0.07749408483505249, -0.06824786216020584, 0.20896363258361816, 0.35680490732192993, 0.6232176423072815, 0.7079379558563232, -0.6716698408126831, 0.4612981379032135, -0.14584693312644958, -0.042783431708812714, -0.31563714146614075, -0.7896682024002075, -0.9412830471992493, -0.5425584316253662, -0.14010809361934662, -0.2240430861711502, 0.16184458136558533, 0.8018254041671753, 0.8273217082023621, -1.1263946294784546, -0.280556321144104, -0.02725723758339882, 0.07660038024187088, -0.2532968521118164, -0.16265611350536346, 0.6595869064331055, -0.02522868663072586, -0.6395193338394165, 0.3948017358779907, 0.3214068114757538, -0.05655505880713463, 0.006871012505143881, -0.3150036931037903, -0.06011014059185982, 0.019322609528899193, 0.7763057351112366, 0.2990798354148865, -0.4942840039730072, -0.3164943754673004, 0.24067258834838867, -0.07752453535795212, 0.4804099500179291, 0.6219045519828796, -0.8301084041595459, 0.19745223224163055, 0.8381535410881042, 0.7041109204292297, 0.7768034934997559, 0.3124634325504303, 0.5339868664741516, -0.8029322028160095, -0.006085534114390612, 0.34366539120674133, 0.5239008069038391, 0.43083614110946655, -0.3896178603172302, 0.4684333801269531, -0.009934553876519203, -0.7059571743011475, -0.8658701181411743, 0.04759594798088074, -1.637811541557312, -0.2025175839662552, 1.033048391342163, 0.08095443248748779, -0.1801370531320572, 0.14020879566669464, -0.2634508013725281, 0.4490012228488922, -0.5297771692276001, 0.694714367389679, 0.5752105116844177, -0.33087196946144104, -0.3687672019004822, -0.3900550901889801, 0.5723634362220764, 0.18402551114559174, -0.7391430139541626, -0.07767748832702637, 0.30465635657310486, 0.19505701959133148, 0.5837181806564331, 0.7552610635757446, 0.19411346316337585, 0.3919464349746704, -0.09820108860731125, -0.019216708838939667, -0.38326677680015564, -0.1676708310842514, -0.47428098320961, 0.24190330505371094, -0.06667397916316986, -0.493645042181015 ]
stabilityai/stable-diffusion-xl-base-0.9
stabilityai
"2023-07-12T13:55:37Z"
38,063
1,345
diffusers
[ "diffusers", "text-to-image", "stable-diffusion", "arxiv:2108.01073", "arxiv:2112.10752", "arxiv:2307.01952", "license:other", "endpoints_compatible", "has_space", "diffusers:StableDiffusionXLPipeline", "region:us" ]
text-to-image
"2023-06-19T15:30:11Z"
--- license: other extra_gated_prompt: >- Copyright (c) Stability AI Ltd. This 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, software, models, or model weights 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”). 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. 1. LICENSE GRANT 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 use, reproduce, 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, sublicense, distribute, publish, host, or otherwise make available this Software, derivative works of the Software, models or model weights associated with the Software, this License, or any other rights or obligations under this License without Stability AI’s prior written consent; any such assignment or sublicense without Stability AI’s prior written consent will be void and will automatically and immediately terminate this License. For sake of clarity, this License does not grant to you the right or ability to extend any license to the Software, derivative works of the Software, or associated models or model weights to a non-Licensee, nor does this License permit you to create a new Licensee, such as by making available a copy of this License. If you would like rights not granted by this License, you may seek permission by sending an email to legal@stability.ai. b. You may make a reasonable number of copies of the Documentation solely for your use in connection with the license to the Software granted above. 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. 2. RESTRICTIONS You will not, and will not permit, assist or cause any third party to: 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; b. alter or remove copyright and other proprietary notices which appear on or in the Software Products; 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 d. offer or impose any terms on the Software Products that alter, restrict, or are inconsistent with the terms of this License. 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. 3. ATTRIBUTION 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: “SDXL 0.9 is licensed under the SDXL Research License, Copyright (c) Stability AI Ltd. All Rights Reserved.” 4. DISCLAIMERS THE SOFTWARE PRODUCTS ARE PROVIDED “AS IS” AND “WITH ALL FAULTS” WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. STABILITY AI EXPRESSLY 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. 5. LIMITATION OF LIABILITY 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. 6. INDEMNIFICATION 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. 7. TERMINATION; SURVIVAL a. This License will automatically terminate upon any breach by you of the terms of this License. b. We may terminate this License, in whole or in part, at any time upon notice (including electronic) to you. c. 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). 8. THIRD PARTY MATERIALS 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. 9. TRADEMARKS 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. 10. APPLICABLE LAW; DISPUTE RESOLUTION 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. 11. MISCELLANEOUS 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_heading: Researcher Early Access extra_gated_description: SDXL 0.9 Research License Agreement extra_gated_button_content: Submit application extra_gated_fields: Organization: text Nature of research: text Personal researcher link (CV, website, github): text Other Comments: text I accept the above license agreement, and will use the Software non-commercially and for research purposes only: checkbox tags: - text-to-image - stable-diffusion --- # SD-XL 0.9-base Model Card ![row01](01.png) ## Model ![pipeline](pipeline.png) SDXL consists of a two-step pipeline for latent diffusion: First, we use a base model to generate latents of the desired output size. In the second step, we use a specialized high-resolution model and apply a technique called SDEdit (https://arxiv.org/abs/2108.01073, also known as "img2img") to the latents generated in the first step, using the same prompt. ### Model Description - **Developed by:** Stability AI - **Model type:** Diffusion-based text-to-image generative model - **License:** [SDXL 0.9 Research License](https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.9/blob/main/LICENSE.md) - **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses two fixed, pretrained text encoders ([OpenCLIP-ViT/G](https://github.com/mlfoundations/open_clip) and [CLIP-ViT/L](https://github.com/openai/CLIP/tree/main)). - **Resources for more information:** [GitHub Repository](https://github.com/Stability-AI/generative-models) [SDXL paper on arXiv](https://arxiv.org/abs/2307.01952). ### Model Sources <!-- Provide the basic links for the model. --> - **Repository:** https://github.com/Stability-AI/generative-models - **Demo [optional]:** https://clipdrop.co/stable-diffusion ### 🧨 Diffusers Make sure to upgrade diffusers to >= 0.18.0: ``` pip install diffusers --upgrade ``` In addition make sure to install `transformers`, `safetensors`, `accelerate` as well as the invisible watermark: ``` pip install invisible_watermark transformers accelerate safetensors ``` You can use the model then as follows ```py from diffusers import DiffusionPipeline import torch pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", torch_dtype=torch.float16, use_safetensors=True, variant="fp16") pipe.to("cuda") # if using torch < 2.0 # pipe.enable_xformers_memory_efficient_attention() prompt = "An astronaut riding a green horse" images = pipe(prompt=prompt).images[0] ``` When using `torch >= 2.0`, you can improve the inference speed by 20-30% with torch.compile. Simple wrap the unet with torch compile before running the pipeline: ```py pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True) ``` If you are limited by GPU VRAM, you can enable *cpu offloading* by calling `pipe.enable_model_cpu_offload` instead of `.to("cuda")`: ```diff - pipe.to("cuda") + pipe.enable_model_cpu_offload() ``` ## Uses ### Direct Use The model is intended for research purposes only. Possible research areas and tasks include - Generation of artworks and use in design and other artistic processes. - Applications in educational or creative tools. - Research on generative models. - Safe deployment of models which have the potential to generate harmful content. - Probing and understanding the limitations and biases of generative models. Excluded uses are described below. ### 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. ## Limitations and Bias ### Limitations - The model does not achieve perfect photorealism - The model cannot render legible text - The model struggles with more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere” - Faces and people in general may not be generated properly. - The autoencoding part of the model is lossy. ### Bias While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. ## Evaluation ![comparison](comparison.png) The chart above evaluates user preference for SDXL (with and without refinement) over Stable Diffusion 1.5 and 2.1. The SDXL base model performs significantly better than the previous variants, and the model combined with the refinement module achieves the best overall performance.
[ -0.38840726017951965, -0.7981892228126526, 0.5823062062263489, 0.09738893061876297, -0.22873321175575256, -0.15439729392528534, 0.01472465693950653, -0.2266482710838318, -0.071418896317482, 0.5363827347755432, -0.4935283958911896, -0.5708467364311218, -0.6969088315963745, -0.17907556891441345, -0.43633711338043213, 0.955301821231842, -0.17624714970588684, -0.026364248245954514, -0.15023408830165863, -0.07317062467336655, -0.11331096291542053, -0.06964360177516937, -1.0012038946151733, -0.18786263465881348, 0.30593180656433105, -0.11720703542232513, 0.7153373956680298, 0.5166256427764893, 0.239638090133667, 0.31438422203063965, -0.365448921918869, -0.060352783650159836, -0.45895278453826904, 0.047062452882528305, 0.05067216604948044, -0.46272361278533936, -0.3445604741573334, 0.08622317761182785, 0.6656039357185364, 0.4435308575630188, -0.07069086283445358, 0.021616753190755844, -0.006160594988614321, 0.5349907875061035, -0.6016451716423035, 0.030888870358467102, -0.27499887347221375, 0.14939329028129578, -0.08880267292261124, 0.269480437040329, -0.3524773120880127, -0.28983479738235474, 0.013083675876259804, -0.779264509677887, 0.5003926753997803, -0.1682167947292328, 0.9428414106369019, 0.483881413936615, -0.2459685057401657, -0.1524435579776764, -0.7041210532188416, 0.6763873100280762, -0.7661259174346924, 0.317412406206131, 0.19473141431808472, 0.00998598337173462, 0.2360592782497406, -1.0779917240142822, -0.6202908158302307, -0.12775187194347382, 0.18674111366271973, 0.40601930022239685, -0.24201685190200806, 0.08452598750591278, 0.5201104879379272, 0.34068962931632996, -0.581814706325531, -0.001893817214295268, -0.6248908638954163, -0.01646127551794052, 0.6926266551017761, 0.26885437965393066, 0.36993902921676636, 0.02214287593960762, -0.3832508325576782, -0.16894729435443878, -0.6342208385467529, -0.08500614017248154, 0.3497452437877655, -0.16797341406345367, -0.44570717215538025, 0.6741804480552673, 0.2353477030992508, 0.4950979948043823, 0.2566055357456207, -0.031402427703142166, 0.2740163803100586, -0.32645225524902344, -0.2865477204322815, -0.3061026632785797, 0.8975480794906616, 0.4916866719722748, -0.17025378346443176, 0.1032099798321724, -0.21562239527702332, 0.21761184930801392, 0.10915440320968628, -1.0513744354248047, -0.36649277806282043, 0.44615188241004944, -0.6401253342628479, -0.3651217818260193, -0.16576799750328064, -0.8613321185112, -0.22121649980545044, -0.08254080265760422, 0.4823595881462097, -0.3255545496940613, -0.5198131203651428, -0.02368844486773014, -0.33600088953971863, 0.03986221179366112, 0.45722347497940063, -0.7090851664543152, 0.10101903975009918, 0.13586947321891785, 1.1350429058074951, -0.3723571300506592, -0.06193964555859566, -0.20487913489341736, -0.013891941867768764, -0.4500851333141327, 0.5798125863075256, -0.34079399704933167, -0.6057695150375366, -0.1906605064868927, 0.1884271204471588, 0.025063639506697655, -0.5145837068557739, 0.6430263519287109, -0.5267643332481384, 0.25057271122932434, -0.06197907775640488, -0.6368484497070312, -0.09190041571855545, -0.26052430272102356, -0.7104224562644958, 1.101393461227417, 0.3259750008583069, -0.9140533208847046, 0.1254369467496872, -0.8722655773162842, -0.14511989057064056, 0.04341354966163635, -0.11544743925333023, -0.6593834757804871, -0.007524542510509491, -0.0014379103668034077, 0.4418105185031891, -0.12336581200361252, 0.1784842610359192, -0.2034779191017151, -0.2078455090522766, -0.03302677720785141, -0.4319658577442169, 1.3116942644119263, 0.49336013197898865, -0.36800307035446167, 0.38355517387390137, -0.8218032717704773, -0.09156139940023422, 0.23997938632965088, -0.28271520137786865, -0.08875870704650879, -0.1667395532131195, 0.3644181489944458, 0.16749060153961182, 0.06574032455682755, -0.5829501152038574, 0.04940638318657875, -0.23043528199195862, 0.6070111393928528, 0.7992231249809265, -0.01586647517979145, 0.5705786347389221, -0.1416618674993515, 0.5193389654159546, 0.3496483564376831, 0.06789103895425797, -0.21419928967952728, -0.8166318535804749, -0.8128786683082581, -0.22220033407211304, 0.15952204167842865, 0.4725530445575714, -0.9310737252235413, 0.3940158784389496, 0.10571889579296112, -0.6224379539489746, -0.5155742764472961, 0.04113215580582619, 0.16827543079853058, 0.5666912794113159, 0.24774962663650513, -0.389860063791275, -0.3565698266029358, -0.5492740869522095, 0.5882337689399719, -0.08345306664705276, -0.004095377866178751, 0.19230838119983673, 0.6623218655586243, -0.3816639482975006, 0.7333134412765503, -0.8913077116012573, -0.0750998929142952, -0.09039812535047531, 0.29975125193595886, 0.13540959358215332, 0.5414347052574158, 0.6933007836341858, -0.856666088104248, -0.678852915763855, -0.10993433743715286, -0.8039658069610596, -0.03252111002802849, -0.07174845039844513, -0.11262388527393341, 0.36864152550697327, 0.3775324821472168, -0.9336779713630676, 0.6180667877197266, 0.5691676735877991, -0.5081926584243774, 0.817539393901825, -0.4508311450481415, -0.054159894585609436, -1.0251975059509277, 0.17445136606693268, 0.2423308938741684, -0.20071400701999664, -0.5769997239112854, 0.21380336582660675, 0.13194258511066437, -0.30629515647888184, -0.5799436569213867, 0.7423831224441528, -0.2799241542816162, 0.32012277841567993, -0.4137553870677948, -0.1762266904115677, 0.1313239187002182, 0.36397260427474976, 0.34475165605545044, 0.8763293027877808, 0.9272664189338684, -0.6868325471878052, 0.40567493438720703, 0.18485736846923828, -0.3756667971611023, 0.3964458405971527, -0.9068628549575806, 0.03774452954530716, -0.4172496497631073, 0.16007733345031738, -1.021073818206787, 0.021491551771759987, 0.38052284717559814, -0.34092333912849426, 0.38902032375335693, -0.07515975087881088, -0.3446609675884247, -0.43294206261634827, -0.1732562631368637, 0.3561146557331085, 0.8965060710906982, -0.4455491304397583, 0.518974244594574, 0.2486884444952011, 0.029020186513662338, -0.4586476683616638, -0.5863333940505981, -0.14517638087272644, -0.2075635939836502, -0.7529096603393555, 0.5311434864997864, -0.5728757977485657, -0.30104032158851624, 0.14945250749588013, 0.2834744155406952, -0.09078781306743622, -0.14784204959869385, 0.38546255230903625, 0.3893933892250061, -0.2729087769985199, -0.21391136944293976, 0.17976297438144684, -0.22234748303890228, 0.047953590750694275, -0.11265852302312851, 0.38102349638938904, 0.24114568531513214, -0.17990851402282715, -0.5772756934165955, 0.4902092516422272, 0.5954439640045166, 0.03948943316936493, 0.8055559396743774, 0.9241901636123657, -0.3303534984588623, -0.10924512892961502, -0.382146418094635, -0.10770290344953537, -0.4698818325996399, 0.47640082240104675, -0.14285849034786224, -0.4958578944206238, 0.5460672974586487, 0.06116292253136635, 0.1922365128993988, 0.6415694952011108, 0.8217451572418213, -0.16628482937812805, 1.1917243003845215, 0.604407012462616, 0.32531988620758057, 0.483188271522522, -0.9220724105834961, -0.10904177278280258, -0.9742013812065125, -0.04547454044222832, -0.2911786139011383, 0.043601665645837784, -0.16521380841732025, -0.6631055474281311, 0.3185625970363617, 0.13275159895420074, -0.3241565525531769, 0.21340087056159973, -0.5255769491195679, 0.28610512614250183, 0.3939688503742218, 0.1408698707818985, 0.0617605559527874, 0.0007311721565201879, -0.16587913036346436, -0.11787696182727814, -0.48747169971466064, -0.5288002490997314, 1.0513811111450195, 0.40976884961128235, 0.9765422940254211, 0.029103873297572136, 0.4427812993526459, 0.35499048233032227, 0.34551700949668884, -0.45275378227233887, 0.44184666872024536, -0.28780412673950195, -0.614192545413971, -0.17204713821411133, -0.24768394231796265, -0.8267077803611755, 0.1870994120836258, -0.1395510733127594, -0.4746745824813843, 0.37145960330963135, 0.08048771321773529, -0.46365347504615784, 0.48748013377189636, -0.8429473042488098, 0.7937815189361572, -0.1399076133966446, -0.726722002029419, 0.057534586638212204, -0.5125864744186401, 0.3425111770629883, 0.0675739049911499, -0.026089467108249664, 0.05351449176669121, -0.14757898449897766, 0.6617631912231445, -0.396350622177124, 0.9753380417823792, -0.2897150218486786, -0.17723342776298523, 0.4151264727115631, -0.2952392101287842, 0.3698711693286896, -0.0011767465621232986, -0.2769815921783447, 0.2848159372806549, 0.14687159657478333, -0.28447651863098145, -0.46126189827919006, 0.7258737683296204, -1.0528749227523804, -0.521124541759491, -0.31419637799263, -0.46045181155204773, 0.5635660886764526, 0.21462279558181763, 0.7921192646026611, 0.24180980026721954, -0.088263601064682, -0.047772735357284546, 0.9649921655654907, -0.3448503613471985, 0.515848696231842, 0.13423822820186615, -0.33641764521598816, -0.4353862404823303, 0.8186371922492981, 0.2643662095069885, 0.4769762456417084, 0.12459319829940796, 0.06647524982690811, -0.4275783896446228, -0.5398852229118347, -0.7297449111938477, 0.1458849161863327, -0.9207439422607422, -0.13427849113941193, -0.785180926322937, -0.5415465831756592, -0.4250255227088928, -0.14996135234832764, -0.399379700422287, -0.3276035487651825, -0.9217067360877991, 0.044468868523836136, 0.1876557469367981, 0.7248771786689758, -0.1142503172159195, 0.3451049327850342, -0.3458995521068573, 0.3713022768497467, 0.24304616451263428, 0.2665921151638031, 0.2207174003124237, -0.4339524507522583, -0.104338139295578, -0.016981026157736778, -0.7586554288864136, -0.8856320977210999, 0.5113699436187744, 0.03680693730711937, 0.5626550912857056, 0.6623466610908508, 0.0495283268392086, 0.4969206750392914, -0.38919597864151, 0.989448606967926, 0.39459991455078125, -0.7539879083633423, 0.624395489692688, -0.20911282300949097, 0.13536681234836578, -0.08233193308115005, 0.5452360510826111, -0.2062360793352127, -0.2916301488876343, -0.6987675428390503, -0.8524420857429504, 0.5956546664237976, 0.4220883846282959, 0.20464541018009186, -0.03305967524647713, 0.5699240565299988, 0.10252954810857773, -0.14586758613586426, -0.951185941696167, -0.6357457041740417, -0.3895087242126465, -0.07363313436508179, -0.028244854882359505, -0.25470513105392456, -0.10706999897956848, -0.4378522038459778, 0.8233271837234497, 0.051999229937791824, 0.40350842475891113, 0.2514410614967346, 0.06612379103899002, -0.3161301016807556, -0.14613279700279236, 0.5529829859733582, 0.5837807655334473, -0.23218344151973724, 0.03837234154343605, -0.03488112986087799, -0.5875335335731506, 0.3267607092857361, 0.1387266367673874, -0.6690763235092163, 0.0005471125477924943, 0.02966780588030815, 1.0333408117294312, -0.27939823269844055, -0.5508995652198792, 0.4302871525287628, -0.19286906719207764, -0.26361730694770813, -0.4162014126777649, 0.335825115442276, 0.29892808198928833, 0.24563772976398468, 0.2102336436510086, 0.4704039990901947, 0.09329646825790405, -0.2639782428741455, -0.06619374454021454, 0.5132033228874207, -0.3001031279563904, -0.2851920425891876, 1.2879143953323364, 0.1824643909931183, -0.2955491244792938, 0.5625094771385193, -0.3107423782348633, -0.14754267036914825, 0.8179301619529724, 0.7293928861618042, 0.8181325197219849, -0.10625001043081284, 0.4131609797477722, 0.6581124067306519, 0.07207735627889633, -0.23548585176467896, 0.17026880383491516, 0.039685823023319244, -0.7390937209129333, -0.19558046758174896, -0.4839203953742981, -0.07998751848936081, 0.15288910269737244, -0.41526690125465393, 0.460020512342453, -0.40891775488853455, -0.3487587571144104, 0.14666327834129333, -0.04767334461212158, -0.5966351628303528, 0.16442559659481049, 0.16939489543437958, 0.8814331293106079, -0.9806824326515198, 0.9083705544471741, 0.6677954792976379, -0.7569776773452759, -0.3809489607810974, -0.15910351276397705, -0.2144111543893814, -0.5227891802787781, 0.7042757272720337, 0.00507081625983119, 0.10053737461566925, 0.23385053873062134, -0.8496870398521423, -0.8476662635803223, 1.3234602212905884, 0.38152945041656494, -0.35335981845855713, -0.005897588096559048, -0.16193348169326782, 0.5028619170188904, -0.4672076106071472, 0.41285252571105957, 0.23016753792762756, 0.2531815469264984, 0.48816820979118347, -0.42959126830101013, 0.09854880720376968, -0.35033777356147766, 0.3514387905597687, -0.07857023924589157, -0.6662728786468506, 1.1519545316696167, -0.5729724168777466, -0.3503274619579315, 0.48796144127845764, 0.6706386804580688, 0.3800226151943207, 0.33842480182647705, 0.3374382555484772, 1.00126051902771, 0.562771737575531, -0.09964293241500854, 1.0587730407714844, -0.15043257176876068, 0.5768949389457703, 0.6803808212280273, -0.22393399477005005, 0.681807279586792, 0.2520791292190552, -0.4352668225765228, 0.43716225028038025, 0.7258238196372986, -0.2777862548828125, 0.6141010522842407, 0.04577150195837021, -0.42442816495895386, -0.023496881127357483, 0.07773780822753906, -0.5243629217147827, -0.1254662573337555, 0.45023179054260254, -0.706163227558136, -0.16384699940681458, 0.19792990386486053, -0.009473946876823902, -0.2082253396511078, -0.20656844973564148, 0.45255452394485474, -0.049049124121665955, -0.5134084820747375, 0.5499163866043091, 0.07439632713794708, 0.8269087076187134, -0.6190949082374573, -0.18884290754795074, -0.08720052242279053, 0.2776893675327301, -0.27006447315216064, -0.9717023968696594, 0.3865478038787842, -0.14518342912197113, -0.3658214807510376, -0.12056127190589905, 0.6444829702377319, -0.31536608934402466, -0.7909925580024719, 0.31608155369758606, 0.22920921444892883, 0.2753925919532776, 0.09226010739803314, -0.9497665762901306, 0.41758251190185547, 0.04899461567401886, -0.18327316641807556, 0.17619732022285461, 0.14380718767642975, 0.19873254001140594, 0.6469793319702148, 0.53658127784729, 0.10210799425840378, 0.15629693865776062, -0.028529895469546318, 0.8154194355010986, -0.4000650644302368, -0.23995690047740936, -0.7171443104743958, 0.7695439457893372, -0.0891578271985054, -0.2537541091442108, 0.5746296048164368, 0.6200918555259705, 0.6276845335960388, -0.28935959935188293, 0.9169284105300903, -0.30421552062034607, 0.052711859345436096, -0.5913758873939514, 0.9741794466972351, -0.6195108890533447, 0.20948153734207153, -0.3182132840156555, -0.7787941694259644, -0.16169743239879608, 0.7749258875846863, -0.07493479549884796, 0.23846641182899475, 0.46489739418029785, 0.9626434445381165, -0.20051829516887665, -0.11845274269580841, 0.42127570509910583, 0.3711259365081787, 0.3870706260204315, 0.25558504462242126, 0.6170914769172668, -0.581354558467865, 0.3534375727176666, -0.5547709465026855, -0.31099507212638855, 0.22023454308509827, -0.8244502544403076, -0.8327207565307617, -0.9147641658782959, -0.8346648812294006, -0.6501047015190125, -0.11997490376234055, 0.5892000794410706, 1.0222153663635254, -0.6495732665061951, -0.15925070643424988, -0.23249870538711548, 0.1577180027961731, -0.1893826276063919, -0.3072550594806671, 0.5299670100212097, -0.08904357999563217, -0.9313951134681702, -0.0975329652428627, 0.31761953234672546, 0.44340643286705017, -0.6391462683677673, -0.25061875581741333, -0.25702953338623047, -0.1093585267663002, 0.6613368988037109, 0.2341243177652359, -0.7751421332359314, 0.13071276247501373, -0.1823916733264923, 0.0734323039650917, 0.204437255859375, 0.4573736786842346, -0.6586840152740479, 0.5189910531044006, 0.49633219838142395, 0.1852247714996338, 0.7350989580154419, -0.17854706943035126, 0.24934156239032745, -0.5879324078559875, 0.14285580813884735, 0.05517082288861275, 0.4388737380504608, 0.31816938519477844, -0.5670883655548096, 0.5200095176696777, 0.4544394314289093, -0.6674657464027405, -0.6214404702186584, 0.15453754365444183, -1.0706478357315063, -0.3570655584335327, 1.1774766445159912, -0.3199092447757721, -0.24378958344459534, -0.10449311137199402, -0.5734876990318298, 0.25972121953964233, -0.31998762488365173, 0.6133617162704468, 0.5314034819602966, -0.2855279743671417, -0.6845057606697083, -0.5811792612075806, 0.35770249366760254, -0.0677299052476883, -0.6863807439804077, -0.0638350248336792, 0.40674835443496704, 0.6057073473930359, 0.44073784351348877, 0.8123325109481812, -0.18827101588249207, 0.15441933274269104, 0.16621902585029602, 0.0833541676402092, 0.14282335340976715, 0.017165040597319603, -0.24238921701908112, 0.12142791599035263, -0.12401412427425385, -0.05036143958568573 ]
timm/dpn107.mx_in1k
timm
"2023-04-21T22:00:16Z"
37,779
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1707.01629", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-21T21:58:56Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for dpn107.mx_in1k A DPN (Dual-Path Net) image classification model. Trained on ImageNet-1k in MXNet by paper authors and ported to PyTorch by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 86.9 - GMACs: 18.4 - Activations (M): 33.5 - Image size: 224 x 224 - **Papers:** - Dual Path Networks: https://arxiv.org/abs/1707.01629 - **Dataset:** ImageNet-1k - **Original:** https://github.com/cypw/DPNs ## 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('dpn107.mx_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) ``` ### 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( 'dpn107.mx_in1k', 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, 128, 112, 112]) # torch.Size([1, 376, 56, 56]) # torch.Size([1, 1152, 28, 28]) # torch.Size([1, 2432, 14, 14]) # torch.Size([1, 2688, 7, 7]) 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( 'dpn107.mx_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, 2688, 7, 7) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Citation ```bibtex @article{Chen2017, title={Dual Path Networks}, author={Yunpeng Chen, Jianan Li, Huaxin Xiao, Xiaojie Jin, Shuicheng Yan, Jiashi Feng}, journal={arXiv preprint arXiv:1707.01629}, year={2017} } ```
[ -0.4161415994167328, -0.41460517048835754, 0.08465657383203506, 0.21973751485347748, -0.3579065799713135, -0.270406574010849, -0.14796337485313416, -0.21856318414211273, 0.3350105583667755, 0.48493289947509766, -0.5956734418869019, -0.6743907928466797, -0.7437401413917542, -0.07822887599468231, -0.12167587876319885, 0.9333840012550354, -0.05682068690657616, 0.05989864468574524, -0.11457289010286331, -0.4188096225261688, -0.16958600282669067, -0.3134296238422394, -0.853237509727478, -0.5132452249526978, 0.39506685733795166, 0.2201249748468399, 0.5234076976776123, 0.6201215982437134, 0.6582805514335632, 0.5050301551818848, -0.1579587757587433, 0.012014821171760559, -0.2796802520751953, -0.2154170423746109, 0.4095854163169861, -0.47415152192115784, -0.5742331743240356, 0.22134827077388763, 0.8485817909240723, 0.5922152996063232, 0.16297900676727295, 0.3238883912563324, 0.14460648596286774, 0.5748847723007202, -0.09209845960140228, 0.14453795552253723, -0.4191438853740692, 0.19860480725765228, -0.19178490340709686, 0.05235576257109642, -0.2389320731163025, -0.418156236410141, 0.2573831081390381, -0.4894838035106659, 0.3547246754169464, -0.03284574672579765, 1.1691704988479614, 0.23058077692985535, -0.14653371274471283, -0.1519680917263031, -0.19961188733577728, 0.7547296285629272, -0.9100426435470581, 0.10540370643138885, 0.30738139152526855, 0.18008343875408173, -0.2744496464729309, -0.9949353933334351, -0.6535630822181702, -0.14737509191036224, -0.2206742912530899, -0.09873153269290924, -0.0818442702293396, 0.08873412013053894, 0.3923708498477936, 0.3608381450176239, -0.45963114500045776, 0.11731452494859695, -0.5928739309310913, -0.1979711651802063, 0.662067174911499, 0.12566015124320984, 0.39775773882865906, -0.23465104401111603, -0.5768859386444092, -0.4332212805747986, -0.3311876058578491, 0.2595359683036804, 0.4747619926929474, 0.29153531789779663, -0.5134455561637878, 0.3193596601486206, 0.05023210868239403, 0.624618411064148, 0.027914131060242653, -0.4437478482723236, 0.6375748515129089, 0.09848404675722122, -0.4734444320201874, 0.10111915320158005, 1.1295037269592285, 0.2691965699195862, 0.15864013135433197, 0.03787108510732651, -0.11182264983654022, -0.40166181325912476, -0.13540616631507874, -1.1491434574127197, -0.5087094306945801, 0.35284319519996643, -0.5513913631439209, -0.4727399945259094, 0.3781563341617584, -0.7676635384559631, -0.20533142983913422, -0.06897227466106415, 0.65195631980896, -0.44984257221221924, -0.5166056156158447, 0.22915615141391754, -0.23260676860809326, 0.2358563393354416, 0.18528176844120026, -0.6058056354522705, 0.20453348755836487, 0.30112695693969727, 1.1527128219604492, 0.08291482925415039, -0.5644263625144958, -0.14841154217720032, -0.32344764471054077, -0.19491802155971527, 0.42607927322387695, -0.04433221369981766, -0.0875421017408371, -0.31754499673843384, 0.3959745168685913, -0.27523741126060486, -0.6946489810943604, 0.20339126884937286, -0.20233353972434998, 0.3324069082736969, -0.008461497724056244, -0.24882633984088898, -0.6071036458015442, 0.2434319108724594, -0.44279611110687256, 1.259746789932251, 0.3698491156101227, -0.905362069606781, 0.2530560791492462, -0.597459077835083, -0.17061704397201538, -0.2620517611503601, 0.04086589440703392, -1.081309199333191, -0.1747642159461975, 0.07129045575857162, 0.7474001049995422, -0.17306743562221527, 0.16148564219474792, -0.6393963694572449, -0.28411123156547546, 0.36290207505226135, -0.11554250121116638, 1.221137285232544, 0.051449306309223175, -0.519576907157898, 0.19422300159931183, -0.7451420426368713, 0.19376589357852936, 0.534090518951416, -0.316342294216156, -0.10075531899929047, -0.7409363389015198, 0.07228834927082062, 0.40554335713386536, 0.05655774846673012, -0.6721332669258118, 0.4429376423358917, -0.23658588528633118, 0.46058720350265503, 0.7308608889579773, -0.1385384500026703, 0.30547887086868286, -0.3465559482574463, 0.2633330523967743, 0.32118678092956543, 0.13960783183574677, -0.03749328851699829, -0.6251957416534424, -0.8568353056907654, -0.4867606461048126, 0.3016635775566101, 0.35502758622169495, -0.516208827495575, 0.5865718722343445, -0.23354816436767578, -0.7406647801399231, -0.4085919260978699, 0.03888806700706482, 0.4859294593334198, 0.6341084837913513, 0.3285660147666931, -0.4247781038284302, -0.503387987613678, -0.7757735252380371, 0.21853946149349213, 0.04486485943198204, 0.08084598928689957, 0.20098455250263214, 0.7153271436691284, -0.10917562246322632, 0.6026230454444885, -0.47232943773269653, -0.2782388925552368, -0.2776442766189575, 0.05135674029588699, 0.5288683772087097, 0.8409027457237244, 0.8627566695213318, -0.5801485776901245, -0.5939173102378845, -0.2322337031364441, -0.9295625686645508, 0.10696077346801758, -0.17551860213279724, -0.37931978702545166, 0.18394047021865845, 0.05089658498764038, -0.5702686905860901, 0.693888783454895, 0.23917579650878906, -0.45587044954299927, 0.4064424932003021, -0.293510764837265, 0.20656806230545044, -1.1039361953735352, 0.1503564566373825, 0.23927722871303558, -0.058386895805597305, -0.5735877156257629, -0.16073399782180786, 0.0614706315100193, -0.03438534587621689, -0.533707857131958, 0.717032253742218, -0.5843183398246765, -0.17379383742809296, -0.20441816747188568, -0.28374215960502625, 0.08076705038547516, 0.8257538080215454, -0.0553521104156971, 0.259746253490448, 0.9283138513565063, -0.5788904428482056, 0.74509596824646, 0.4997890591621399, -0.18679064512252808, 0.3115195333957672, -0.5680801868438721, 0.2621830999851227, -0.06786428391933441, 0.23032280802726746, -1.1251415014266968, -0.1870003193616867, 0.4712481200695038, -0.4901219308376312, 0.7009137272834778, -0.576080858707428, -0.40287551283836365, -0.6291624307632446, -0.47332340478897095, 0.343584805727005, 0.6436198353767395, -0.7934749722480774, 0.22404542565345764, 0.27003544569015503, 0.2939908504486084, -0.4900287985801697, -0.8935520052909851, -0.2302553653717041, -0.47160226106643677, -0.8166030645370483, 0.37530791759490967, 0.1489594429731369, 0.1365790218114853, 0.09489136189222336, -0.14109808206558228, -0.15460069477558136, -0.08989731222391129, 0.520713746547699, 0.3260463774204254, -0.29915544390678406, -0.13137935101985931, -0.2553544342517853, -0.13032037019729614, 0.12709757685661316, -0.3302682638168335, 0.6759649515151978, -0.11784558743238449, -0.25502848625183105, -0.8754594326019287, -0.12720461189746857, 0.5000091791152954, 0.012974081560969353, 0.8395665884017944, 1.0199542045593262, -0.4982360005378723, -0.08959610015153885, -0.28719261288642883, -0.38552170991897583, -0.5006009340286255, 0.4808567464351654, -0.4240100085735321, -0.31797173619270325, 0.851463258266449, -0.04061150178313255, -0.031159594655036926, 0.6670729517936707, 0.3096597492694855, -0.023226944729685783, 0.6617348790168762, 0.5087297558784485, 0.1812138557434082, 0.6361434459686279, -1.1233494281768799, -0.14931607246398926, -0.9100862145423889, -0.569030225276947, -0.3206195831298828, -0.7394841909408569, -0.5374897122383118, -0.29020264744758606, 0.4061029255390167, 0.24849970638751984, -0.4083893299102783, 0.5315293073654175, -0.8652582168579102, 0.04330657422542572, 0.758334219455719, 0.595808207988739, -0.3393084704875946, 0.24231784045696259, -0.34943461418151855, 0.017125677317380905, -0.7346928119659424, -0.25601786375045776, 1.1362289190292358, 0.5348897576332092, 0.6839737296104431, -0.05843048170208931, 0.7401345372200012, -0.2890166938304901, 0.26117658615112305, -0.5687161087989807, 0.6025437712669373, -0.12992267310619354, -0.4446035325527191, -0.21435411274433136, -0.44213056564331055, -1.0664160251617432, 0.19458359479904175, -0.28449538350105286, -0.7714759707450867, 0.10543535649776459, 0.1461145579814911, -0.21896056830883026, 0.9065359234809875, -0.749275803565979, 1.0646663904190063, -0.2751386761665344, -0.3910001516342163, 0.1651417762041092, -0.6608242988586426, 0.3088851571083069, 0.2154441475868225, -0.3553489148616791, -0.24035614728927612, 0.2793130576610565, 1.1266002655029297, -0.5683408975601196, 0.8682941198348999, -0.5654555559158325, 0.4221034348011017, 0.4404064118862152, -0.143189936876297, 0.3001241683959961, -0.05134621262550354, -0.16057094931602478, 0.38045844435691833, 0.04588524252176285, -0.46684035658836365, -0.539429783821106, 0.6047490239143372, -0.9494368433952332, -0.353717565536499, -0.5170415043830872, -0.4130415618419647, 0.17604953050613403, 0.13275684416294098, 0.45446863770484924, 0.7910763025283813, 0.3086968660354614, 0.24883867800235748, 0.6184274554252625, -0.47937509417533875, 0.54157954454422, -0.07183234393596649, -0.22564876079559326, -0.511760413646698, 0.7816289663314819, 0.165024995803833, 0.15640541911125183, 0.1577509194612503, 0.3216913044452667, -0.45978930592536926, -0.691920816898346, -0.49849584698677063, 0.45289596915245056, -0.68390953540802, -0.50079345703125, -0.6255481839179993, -0.5273404121398926, -0.5743311047554016, 0.05694529414176941, -0.416488915681839, -0.43592604994773865, -0.3544823229312897, 0.19464729726314545, 0.7778202891349792, 0.6957654356956482, -0.12633264064788818, 0.6004882454872131, -0.5669247508049011, 0.05111861228942871, 0.15153634548187256, 0.5527958273887634, -0.05135545879602432, -1.0208250284194946, -0.20902684330940247, -0.028540343046188354, -0.5156344175338745, -0.8868730664253235, 0.5765979290008545, 0.1521267294883728, 0.6875508427619934, 0.35099121928215027, -0.1191682294011116, 0.7925994396209717, 0.009563938714563847, 0.4150777757167816, 0.3655760586261749, -0.5827024579048157, 0.684457540512085, -0.04844648763537407, 0.17355234920978546, 0.044792141765356064, 0.44315430521965027, -0.35444924235343933, -0.0017495998181402683, -0.926870584487915, -0.7037281394004822, 1.0995845794677734, 0.1575419306755066, -0.010565980337560177, 0.3843030333518982, 0.7552915215492249, 0.06259290128946304, 0.07261919975280762, -0.7468942403793335, -0.588585376739502, -0.3866688311100006, -0.33528491854667664, 0.038573797792196274, -0.08680445700883865, -0.033452678471803665, -0.6497716307640076, 0.7244537472724915, -0.05277262628078461, 0.7283064126968384, 0.37308046221733093, 0.006043454632163048, -0.03225870430469513, -0.49692678451538086, 0.5024707913398743, 0.4034934937953949, -0.477888822555542, 0.08035831153392792, 0.14888761937618256, -0.7102096080780029, 0.17002376914024353, 0.16329224407672882, 0.06974571943283081, 0.03386692330241203, 0.48517554998397827, 0.97222501039505, -0.002798020141199231, 0.1391131430864334, 0.44566959142684937, -0.025476567447185516, -0.4270991384983063, -0.2430722713470459, 0.14799484610557556, -0.07040603458881378, 0.30306339263916016, 0.2702620327472687, 0.2699785530567169, -0.15477308630943298, -0.24478141963481903, 0.3223457932472229, 0.5376152992248535, -0.324565589427948, -0.43493756651878357, 0.5946715474128723, -0.11941231787204742, -0.11739540845155716, 0.9242078065872192, -0.19662117958068848, -0.5789595246315002, 1.1449947357177734, 0.4699667990207672, 0.9635288715362549, -0.021316811442375183, 0.05618562549352646, 0.9313663840293884, 0.18211066722869873, 0.0254952535033226, 0.11084308475255966, 0.24002796411514282, -0.7711811661720276, 0.1206393763422966, -0.7260535955429077, 0.03502095490694046, 0.4349314570426941, -0.4805057644844055, 0.37106770277023315, -0.746616542339325, -0.32642844319343567, 0.14887142181396484, 0.43307700753211975, -0.8722183704376221, 0.2069939821958542, 0.025127554312348366, 0.809099018573761, -0.8260330557823181, 1.0583652257919312, 0.9704532027244568, -0.5239864587783813, -0.982732355594635, -0.13535799086093903, 0.08773539215326309, -1.0558761358261108, 0.724429726600647, 0.4912310242652893, 0.2623841464519501, 0.07975918054580688, -0.5674846172332764, -0.7010051012039185, 1.4864120483398438, 0.536573588848114, -0.03370695933699608, 0.2390051782131195, 0.10874367505311966, 0.18795178830623627, -0.4236324727535248, 0.5176589488983154, 0.17516104876995087, 0.38130420446395874, 0.38544732332229614, -0.7988974452018738, 0.27233731746673584, -0.21084143221378326, 0.09386822581291199, 0.29377153515815735, -0.8026782274246216, 1.0034841299057007, -0.4426082968711853, -0.14547450840473175, -0.029851103201508522, 0.5691826939582825, 0.24635502696037292, 0.1986740529537201, 0.5362914204597473, 0.8414883017539978, 0.5856940746307373, -0.32653743028640747, 0.7221094369888306, -0.017743512988090515, 0.6920984983444214, 0.5895698070526123, 0.3958224952220917, 0.4244009554386139, 0.3450261652469635, -0.371234655380249, 0.37442782521247864, 1.077940583229065, -0.2819596827030182, 0.43131616711616516, 0.3584526479244232, -0.05177699029445648, -0.021527886390686035, 0.289833664894104, -0.45477354526519775, 0.5669127702713013, 0.15630574524402618, -0.5245918035507202, -0.2655428647994995, 0.04463976249098778, 0.1132064238190651, -0.30450737476348877, -0.24926058948040009, 0.5275761485099792, -0.023044869303703308, -0.3574853241443634, 0.8006750345230103, -0.002650392008945346, 0.9524248242378235, -0.47334402799606323, -0.04399649798870087, -0.3504801094532013, 0.30330586433410645, -0.3477362394332886, -0.9316390156745911, 0.40043601393699646, -0.36120134592056274, 0.03592943027615547, -0.13869790732860565, 0.6621478796005249, -0.4766824245452881, -0.5333269834518433, 0.2914576530456543, 0.2451275736093521, 0.6098389029502869, -0.04228543862700462, -1.27436363697052, 0.1478988081216812, 0.19853384792804718, -0.5910858511924744, 0.45890694856643677, 0.5456254482269287, 0.2817060947418213, 0.7503987550735474, 0.578150749206543, -0.020092306658625603, 0.24976685643196106, -0.2886487543582916, 0.8497440218925476, -0.6003466844558716, -0.20628127455711365, -0.9128949642181396, 0.7162753939628601, -0.11840206384658813, -0.6576932072639465, 0.5288389325141907, 0.5645914077758789, 0.8976113200187683, -0.05558522418141365, 0.41596636176109314, -0.2724270522594452, 0.0335875004529953, -0.5197972059249878, 0.7795266509056091, -0.6353381872177124, -0.023186303675174713, -0.17221051454544067, -0.7185176014900208, -0.3451147675514221, 0.7664989233016968, -0.22987046837806702, 0.3463123142719269, 0.5234460830688477, 1.0191162824630737, -0.39111191034317017, -0.35785889625549316, 0.23445558547973633, 0.04442699998617172, 0.13936766982078552, 0.5290075540542603, 0.41547882556915283, -0.8924837708473206, 0.4036094546318054, -0.9374991655349731, -0.27143052220344543, -0.10345537960529327, -0.7700802087783813, -1.0636996030807495, -0.8968987464904785, -0.7023276686668396, -0.7071245908737183, -0.29796889424324036, 0.884986400604248, 1.1331980228424072, -0.7360650897026062, -0.17199598252773285, 0.08104974776506424, 0.25568661093711853, -0.18294969201087952, -0.23031605780124664, 0.6726304888725281, -0.2148599922657013, -0.850113034248352, -0.3271608352661133, 0.0814332440495491, 0.5157033801078796, -0.12021902203559875, -0.23175948858261108, -0.23178721964359283, -0.4701111912727356, 0.15063855051994324, 0.2749635577201843, -0.655458390712738, -0.13089720904827118, -0.2546718120574951, -0.17871063947677612, 0.42287394404411316, 0.4316820502281189, -0.5473886728286743, 0.333233118057251, 0.47133323550224304, 0.34669941663742065, 0.7659955620765686, -0.38163530826568604, 0.02370404452085495, -0.8254542946815491, 0.6777618527412415, -0.12599389255046844, 0.5024089217185974, 0.41049841046333313, -0.37724748253822327, 0.5553110837936401, 0.5689085721969604, -0.4799569845199585, -0.9049692749977112, -0.17296202480793, -1.0810749530792236, -0.13126561045646667, 0.9050105810165405, -0.45915505290031433, -0.49959784746170044, 0.3444857597351074, -0.06857515126466751, 0.5878293514251709, -0.06917274743318558, 0.4929185211658478, 0.24166586995124817, -0.25504040718078613, -0.5517361164093018, -0.4616101086139679, 0.5222914218902588, 0.015915678814053535, -0.6077512502670288, -0.45701053738594055, -0.09168142080307007, 0.6731184124946594, 0.21219275891780853, 0.5842476487159729, -0.08690568059682846, -0.042870279401540756, 0.1740896850824356, 0.42004287242889404, -0.4341782331466675, -0.08654208481311798, -0.39623335003852844, -0.07064919918775558, -0.09888473153114319, -0.7554030418395996 ]
lllyasviel/control_v11f1p_sd15_depth
lllyasviel
"2023-05-04T18:49:15Z"
37,771
21
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-16T14:13:02Z"
--- 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_depth --- # Controlnet - v1.1 - *depth Version* **Controlnet v1.1** is the successor model of [Controlnet v1.0](https://huggingface.co/lllyasviel/ControlNet) and 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_v11f1p_sd15_depth.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 **depth 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, depthmentation 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. 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 transformers import pipeline from diffusers import ( ControlNetModel, StableDiffusionControlNetPipeline, UniPCMultistepScheduler, ) checkpoint = "lllyasviel/control_v11p_sd15_depth" image = load_image( "https://huggingface.co/lllyasviel/control_v11p_sd15_depth/resolve/main/images/input.png" ) prompt = "Stormtrooper's lecture in beautiful lecture hall" depth_estimator = pipeline('depth-estimation') image = depth_estimator(image)['depth'] image = np.array(image) image = image[:, :, None] image = np.concatenate([image, image, image], axis=2) control_image = Image.fromarray(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>| ## Improvements in Depth 1.1: - The training dataset of previous cnet 1.0 has several problems including (1) a small group of greyscale human images are duplicated thousands of times (!!), causing the previous model somewhat likely to generate grayscale human images; (2) some images has low quality, very blurry, or significant JPEG artifacts; (3) a small group of images has wrong paired prompts caused by a mistake in our data processing scripts. The new model fixed all problems of the training dataset and should be more reasonable in many cases. - The new depth model is a relatively unbiased model. It is not trained with some specific type of depth by some specific depth estimation method. It is not over-fitted to one preprocessor. This means this model will work better with different depth estimation, different preprocessor resolutions, or even with real depth created by 3D engines. - Some reasonable data augmentations are applied to training, like random left-right flipping. - The model is resumed from depth 1.0, and it should work well in all cases where depth 1.0 works well. If not, please open an issue with image, and we will take a look at your case. Depth 1.1 works well in many failure cases of depth 1.0. - If you use Midas depth (the "depth" in webui plugin) with 384 preprocessor resolution, the difference between depth 1.0 and 1.1 should be minimal. However, if you try other preprocessor resolutions or other preprocessors (like leres and zoe), the depth 1.1 is expected to be a bit better than 1.0. ## 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.5810109972953796, -0.5739994049072266, 0.15246085822582245, 0.534443199634552, -0.24341000616550446, -0.2266678512096405, 0.09674431383609772, -0.5069701075553894, 0.5106706023216248, 0.290108859539032, -0.7180055975914001, -0.38393712043762207, -0.7185319662094116, -0.1777992695569992, -0.17513960599899292, 0.7790648937225342, -0.28074753284454346, -0.009923876263201237, 0.059101320803165436, -0.05490103363990784, -0.09198421984910965, -0.13716699182987213, -1.1844017505645752, -0.4594116508960724, 0.42750826478004456, 0.06886066496372223, 0.5282508730888367, 0.5542187690734863, 0.4933607876300812, 0.37835830450057983, -0.36844906210899353, 0.05976114049553871, -0.2882148027420044, -0.1918478161096573, 0.17301832139492035, -0.11192787438631058, -0.6838650107383728, 0.03557201102375984, 0.729232907295227, 0.3295251429080963, 0.0195013340562582, -0.21332652866840363, 0.13357801735401154, 0.6811918020248413, -0.4787335991859436, -0.11511426419019699, -0.12043342739343643, 0.2656901180744171, -0.07657366991043091, 0.10776939243078232, -0.15435568988323212, -0.28368934988975525, 0.14365778863430023, -0.7151904106140137, -0.06678470969200134, -0.1640593409538269, 1.3120661973953247, 0.3079822361469269, -0.4005464017391205, -0.06801963597536087, -0.24133245646953583, 0.6397114396095276, -0.7988253235816956, 0.11926756799221039, 0.10566379874944687, 0.20019420981407166, -0.16769307851791382, -0.9563573598861694, -0.49004065990448, -0.12096841633319855, -0.1278763711452484, 0.4560864269733429, -0.3430798351764679, 0.07993809878826141, 0.2546747326850891, 0.28159335255622864, -0.3956124186515808, 0.2695849537849426, -0.3294271230697632, -0.371086448431015, 0.6287563443183899, 0.02219013310968876, 0.55768221616745, 0.02109374664723873, -0.5812558531761169, -0.08391235768795013, -0.34856700897216797, 0.3551675081253052, 0.20682311058044434, -0.14375227689743042, -0.7767680287361145, 0.42025938630104065, -0.07549688220024109, 0.706450343132019, 0.4040939509868622, -0.22238148748874664, 0.48624008893966675, -0.17078623175621033, -0.38521507382392883, -0.277888685464859, 0.9823176264762878, 0.47611483931541443, 0.14828556776046753, 0.001575823058374226, -0.15597040951251984, -0.12604855000972748, -0.03803664818406105, -1.1748026609420776, -0.14716610312461853, 0.24279245734214783, -0.513324499130249, -0.3542044758796692, -0.11938625574111938, -0.7064957022666931, -0.20421801507472992, -0.06777148693799973, 0.36058536171913147, -0.5837715268135071, -0.47261425852775574, 0.16268695890903473, -0.4473342001438141, 0.5355666279792786, 0.5615236759185791, -0.4331941306591034, 0.21154682338237762, 0.1651429980993271, 1.0150102376937866, -0.26097047328948975, -0.16550762951374054, -0.2627018392086029, -0.07887814193964005, -0.3190610110759735, 0.4947211742401123, -0.1292264312505722, -0.139701247215271, -0.06628619879484177, 0.32951056957244873, -0.08581868559122086, -0.33269718289375305, 0.38627591729164124, -0.3387550711631775, 0.19498218595981598, -0.013819970190525055, -0.40881264209747314, -0.16275349259376526, 0.2569097578525543, -0.4666294455528259, 0.7176920175552368, 0.2619530260562897, -1.0220924615859985, 0.311603844165802, -0.47902461886405945, -0.2488131821155548, -0.26229000091552734, 0.16838978230953217, -0.7347680330276489, -0.4096962511539459, 0.056588977575302124, 0.565486490726471, -0.005802649073302746, -0.12075000256299973, -0.4467177093029022, -0.0367923304438591, 0.10346708446741104, -0.09246766567230225, 1.1840487718582153, 0.12065140902996063, -0.5723025798797607, 0.2030002623796463, -0.684552788734436, 0.02404448576271534, 0.13156801462173462, -0.24057555198669434, 0.06514661014080048, -0.2938045561313629, 0.07539859414100647, 0.6050219535827637, 0.34084370732307434, -0.6485857963562012, 0.12419943511486053, -0.30950504541397095, 0.44004112482070923, 0.6218372583389282, 0.23206743597984314, 0.6275025606155396, -0.4658021628856659, 0.5743654370307922, 0.30702492594718933, 0.2914865016937256, -0.0018314768094569445, -0.4942433834075928, -0.9949301481246948, -0.5553001165390015, 0.014869384467601776, 0.5823280215263367, -0.7818029522895813, 0.7610815167427063, 0.08106040209531784, -0.6584978699684143, -0.2556721866130829, 0.04539325460791588, 0.4981221556663513, 0.5322192311286926, 0.31792259216308594, -0.492918998003006, -0.380039781332016, -0.9001993536949158, 0.15281546115875244, 0.19133061170578003, -0.016474492847919464, 0.1645309180021286, 0.6409129500389099, -0.10667859017848969, 0.6322684288024902, -0.2563161253929138, -0.351706862449646, -0.07101564854383469, -0.10288260132074356, 0.28442659974098206, 1.0040937662124634, 0.732097327709198, -0.7273845672607422, -0.5979499220848083, -0.02225792221724987, -0.8749132752418518, -0.011453056707978249, -0.20793122053146362, -0.5055745840072632, 0.2209467589855194, 0.5632544755935669, -0.6456983685493469, 0.7589787244796753, 0.5255538821220398, -0.5539865493774414, 0.5541489720344543, -0.30694618821144104, 0.13571302592754364, -0.9491408467292786, 0.20604515075683594, 0.35391727089881897, -0.3185247778892517, -0.5902664661407471, 0.10952542722225189, 0.11653509736061096, 0.053503263741731644, -0.690513551235199, 0.7280421853065491, -0.49962154030799866, 0.13229380548000336, -0.2767426073551178, -0.07006105780601501, 0.1064823716878891, 0.6381733417510986, 0.21567316353321075, 0.43447035551071167, 0.9905471801757812, -0.6177950501441956, 0.3603898584842682, 0.4182317852973938, -0.22518543899059296, 0.8195599913597107, -0.8426456451416016, 0.11891390383243561, -0.16035759449005127, 0.5382490158081055, -0.9322471022605896, -0.25687965750694275, 0.6178564429283142, -0.5055578351020813, 0.5435859560966492, -0.2741279900074005, -0.22842733561992645, -0.4209037721157074, -0.3212674558162689, 0.17387834191322327, 0.7433928847312927, -0.487446665763855, 0.3683108687400818, 0.18393783271312714, 0.1377648562192917, -0.5122131705284119, -0.9094263911247253, -0.08490785956382751, -0.36493271589279175, -0.8288328051567078, 0.501154363155365, -0.13106895983219147, 0.0266176238656044, 0.007060893811285496, 0.020827164873480797, -0.28253301978111267, -0.042414501309394836, 0.3466285765171051, 0.22765907645225525, -0.09469699114561081, -0.18056698143482208, 0.14530648291110992, -0.14525438845157623, -0.04398508742451668, -0.33561810851097107, 0.4472191333770752, 0.044511519372463226, -0.20796266198158264, -0.9357496500015259, 0.23412178456783295, 0.5476880669593811, -0.03835303708910942, 0.8457057476043701, 0.8870736956596375, -0.4231875538825989, -0.015047026798129082, -0.3696552813053131, -0.1800791323184967, -0.49797794222831726, -0.00015399791300296783, -0.2102183848619461, -0.7093318104743958, 0.6700568199157715, 0.0890670195221901, -0.04236689954996109, 0.6156772375106812, 0.3581308126449585, -0.19776245951652527, 0.8683723211288452, 0.516825258731842, -0.14434070885181427, 0.7521414160728455, -0.7890834808349609, -0.13943247497081757, -0.9642680287361145, -0.2889428734779358, -0.2979812026023865, -0.6584054231643677, -0.31776946783065796, -0.35683196783065796, 0.44072043895721436, 0.43316584825515747, -0.7235309481620789, 0.45320361852645874, -0.5634676814079285, 0.10207431763410568, 0.3411540687084198, 0.5218226909637451, -0.13446566462516785, -0.1135893315076828, -0.1440458446741104, 0.07983928173780441, -0.6339487433433533, -0.2398556023836136, 0.5523205995559692, 0.5491431951522827, 0.5208098888397217, -0.06872600317001343, 0.5909830331802368, 0.006782358977943659, 0.2594631612300873, -0.5940503478050232, 0.500931441783905, 0.032124657183885574, -0.5277978777885437, -0.24685890972614288, -0.317211776971817, -0.9951702356338501, 0.11896972358226776, -0.4198985993862152, -0.6889121532440186, 0.3736293613910675, 0.22735701501369476, -0.10539059340953827, 0.4749414026737213, -0.6772952079772949, 0.7694574594497681, 0.013794462196528912, -0.6133227348327637, 0.0485045500099659, -0.8426507711410522, 0.219427227973938, 0.2746560275554657, -0.1856646090745926, 0.030897904187440872, -0.13685719668865204, 0.8225299715995789, -0.7445065975189209, 0.8459811806678772, -0.5385252833366394, -0.06021052226424217, 0.37947630882263184, -0.00024439088883809745, 0.557752251625061, -0.10855469107627869, -0.20703816413879395, 0.07011314481496811, -0.09118841588497162, -0.5749167799949646, -0.3685724437236786, 0.6668250560760498, -0.6734243035316467, -0.2330828607082367, -0.2527720034122467, -0.2802966833114624, 0.18401166796684265, 0.2548961639404297, 0.6288057565689087, 0.37046220898628235, 0.15836884081363678, 0.06859283149242401, 0.6307494640350342, -0.3508773148059845, 0.6527515649795532, 0.04150427132844925, -0.09227212518453598, -0.5294433832168579, 0.6844533681869507, -0.012928858399391174, 0.3703901469707489, 0.23963229358196259, 0.14193063974380493, -0.2478005290031433, -0.48667916655540466, -0.4305422604084015, 0.41451314091682434, -0.6027554273605347, -0.44487929344177246, -0.6091091632843018, -0.46674415469169617, -0.4029296040534973, -0.48183977603912354, -0.2681790888309479, -0.27528616786003113, -0.6987993121147156, 0.13834728300571442, 0.6118913888931274, 0.4703325927257538, -0.2290111929178238, 0.5587967038154602, -0.2861959934234619, 0.24587547779083252, 0.3058878779411316, 0.3492087125778198, -0.05238770693540573, -0.6286883354187012, -0.013516626320779324, 0.10516250878572464, -0.5075703263282776, -0.7295233011245728, 0.5083088874816895, 0.05831988528370857, 0.44095534086227417, 0.5257129669189453, -0.260013610124588, 0.6637082099914551, -0.28011956810951233, 0.590185284614563, 0.5791649222373962, -0.8189592361450195, 0.5056667923927307, -0.37547817826271057, 0.3196054697036743, 0.25590163469314575, 0.5306936502456665, -0.44708001613616943, -0.33437737822532654, -0.7485766410827637, -0.6705825328826904, 0.5933204889297485, 0.2173079401254654, -0.05230097100138664, 0.33031755685806274, 0.627444326877594, -0.3408576250076294, 0.1547253131866455, -0.7699393033981323, -0.4170593023300171, -0.2861708104610443, 0.05710052698850632, 0.014318914152681828, 0.07282538712024689, -0.03555191680788994, -0.4798465371131897, 0.8621869087219238, -0.026861440390348434, 0.5352886319160461, 0.5304293036460876, 0.08996299654245377, -0.1661365032196045, -0.3072800934314728, 0.5268678665161133, 0.49465852975845337, -0.0794052705168724, -0.2731286585330963, 0.09216013550758362, -0.3635108172893524, 0.21364463865756989, -0.03889383375644684, -0.3147103488445282, -0.0789426863193512, 0.3708665668964386, 0.839180052280426, -0.14293843507766724, -0.1898033767938614, 0.7458323240280151, 0.10214272886514664, -0.5524908304214478, -0.28163957595825195, 0.02170163206756115, 0.15498201549053192, 0.46735334396362305, 0.13833574950695038, 0.3584132492542267, 0.0835854709148407, -0.13135753571987152, 0.28078943490982056, 0.5589553713798523, -0.5683010220527649, -0.14427821338176727, 0.704973042011261, 0.038909051567316055, -0.10642904788255692, 0.38429418206214905, -0.4086655378341675, -0.6716805100440979, 0.9280558824539185, 0.4844345450401306, 0.7070870995521545, -0.14089781045913696, 0.30196741223335266, 0.7222632169723511, 0.18081170320510864, 0.0720943883061409, 0.1906772255897522, 0.1358138918876648, -0.6945151686668396, -0.41167861223220825, -0.4151989817619324, -0.060969382524490356, 0.17761017382144928, -0.4071662724018097, 0.4246619939804077, -0.7687706351280212, -0.17728081345558167, -0.11132273823022842, 0.09624692052602768, -0.7042890191078186, 0.4362197518348694, 0.05394776910543442, 1.186722755432129, -0.786159098148346, 0.7832644581794739, 0.5632124543190002, -0.4529527425765991, -0.8468055725097656, -0.048476677387952805, 0.0062989741563797, -0.8013521432876587, 0.5817205905914307, 0.13926877081394196, -0.08238599449396133, 0.11964880675077438, -0.7923280596733093, -0.5873117446899414, 1.2862591743469238, 0.25221216678619385, -0.22592861950397491, 0.05451423302292824, -0.4795115888118744, 0.45672082901000977, -0.4494105279445648, 0.4410781264305115, 0.44142237305641174, 0.5241113305091858, 0.41622406244277954, -0.7115952372550964, 0.2186160534620285, -0.42675209045410156, 0.14018020033836365, 0.16022253036499023, -0.9590569734573364, 0.871165931224823, -0.03818352147936821, -0.16912071406841278, 0.2679908871650696, 0.7291366457939148, 0.2359335720539093, 0.15784116089344025, 0.6273757219314575, 0.8025764226913452, 0.3025340437889099, -0.09225235879421234, 0.9663764834403992, -0.06876897066831589, 0.2876875102519989, 0.6145890951156616, 0.2562757432460785, 0.5042070746421814, 0.37154775857925415, -0.07086560875177383, 0.5146679878234863, 0.8400843739509583, 0.013130133040249348, 0.43539994955062866, 0.491664856672287, -0.23429547250270844, -0.10719549655914307, -0.05101675167679787, -0.36639323830604553, 0.08850860595703125, 0.2607942223548889, -0.29313015937805176, -0.2045249044895172, 0.22436818480491638, 0.2487427443265915, -0.17496193945407867, -0.4292362928390503, 0.6607785224914551, -0.08603458106517792, -0.5227715373039246, 0.7520909905433655, -0.08137445151805878, 1.0811861753463745, -0.6542081832885742, 0.04146113246679306, -0.2833375036716461, 0.0398896150290966, -0.3944112956523895, -0.8520218729972839, 0.19344332814216614, -0.2106505185365677, 0.2700035274028778, -0.3613058626651764, 0.6935305595397949, -0.37785592675209045, -0.4220426380634308, 0.5004260540008545, 0.15744906663894653, 0.38420867919921875, 0.1377386599779129, -1.0412392616271973, 0.19696468114852905, 0.07559316605329514, -0.4800567924976349, 0.18429774045944214, 0.376369833946228, 0.24188797175884247, 0.6960350275039673, 0.2946626842021942, 0.32020366191864014, 0.26400381326675415, -0.20992760360240936, 1.010763168334961, -0.27086833119392395, -0.3156406581401825, -0.5739032030105591, 0.8343351483345032, -0.33212244510650635, -0.46089136600494385, 0.5505735278129578, 0.3139742910861969, 0.7747313380241394, -0.10943591594696045, 0.6858175992965698, -0.3843994140625, 0.19963066279888153, -0.6548705101013184, 0.7941935658454895, -0.8603197336196899, -0.2764836549758911, -0.37045881152153015, -0.6918675899505615, -0.2902138829231262, 0.8161827325820923, -0.12955419719219208, 0.22195452451705933, 0.5643642544746399, 0.9634740948677063, -0.2189212441444397, -0.5756667256355286, 0.08909568190574646, 0.08938262611627579, 0.29550719261169434, 0.7043213844299316, 0.6596292853355408, -0.67289799451828, 0.29560917615890503, -0.5626295208930969, -0.4456287920475006, -0.0725352019071579, -0.9172247648239136, -0.842553436756134, -0.7174863815307617, -0.6813942790031433, -0.6706226468086243, -0.2700726389884949, 0.6494828462600708, 1.1262626647949219, -0.6282837986946106, -0.18736426532268524, -0.3480355143547058, 0.10718938708305359, -0.17328493297100067, -0.2125369757413864, 0.3465874493122101, -0.08239403367042542, -0.8504193425178528, 0.05352973937988281, 0.21243464946746826, 0.5511111617088318, -0.12238284945487976, -0.4254341721534729, -0.363994300365448, -0.2787133753299713, 0.2837328612804413, 0.4513433873653412, -0.4547099769115448, -0.19845989346504211, -0.25274136662483215, -0.18338869512081146, 0.1318175345659256, 0.5153062343597412, -0.4230440557003021, 0.19714897871017456, 0.5696808695793152, 0.410314679145813, 0.8372000455856323, -0.15335549414157867, 0.13806863129138947, -0.5695928931236267, 0.5113111734390259, 0.05258999392390251, 0.44474732875823975, 0.1347188651561737, -0.323586642742157, 0.43374401330947876, 0.2944972813129425, -0.7313244342803955, -0.4388107657432556, 0.16801907122135162, -1.3201533555984497, -0.12393343448638916, 0.9535035490989685, -0.3473530113697052, -0.36877021193504333, 0.20455361902713776, -0.4237962067127228, 0.36447328329086304, -0.3373565673828125, 0.23815001547336578, 0.38141173124313354, -0.16329307854175568, -0.40798473358154297, -0.3496837615966797, 0.6073756217956543, 0.2260509878396988, -0.7857857942581177, -0.5452184081077576, 0.5268474221229553, 0.337343692779541, 0.3127899467945099, 0.8330562114715576, -0.12621086835861206, 0.10417293012142181, -0.0595843642950058, 0.23019860684871674, 0.06492038071155548, -0.1501624882221222, -0.5539081692695618, -0.13000747561454773, -0.24019290506839752, -0.3706890642642975 ]
timm/tf_efficientnetv2_s.in21k_ft_in1k
timm
"2023-04-27T22:17:54Z"
37,764
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "dataset:imagenet-21k", "arxiv:2104.00298", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-13T00:19:21Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k - imagenet-21k --- # Model card for tf_efficientnetv2_s.in21k_ft_in1k A EfficientNet-v2 image classification model. Trained on ImageNet-21k and fine-tuned on ImageNet-1k in Tensorflow by paper authors, ported to PyTorch by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 21.5 - GMACs: 5.4 - Activations (M): 22.7 - 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-1k - **Pretrain 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_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) ``` ### 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_ft_in1k', 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_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, 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.3892153203487396, -0.4627896547317505, -0.06571372598409653, 0.11574561893939972, -0.33546310663223267, -0.39968615770339966, -0.2705218195915222, -0.3970371186733246, 0.1727522760629654, 0.3953450918197632, -0.37529703974723816, -0.6317006945610046, -0.7371297478675842, -0.20498783886432648, -0.1283208131790161, 0.8779366612434387, -0.13846448063850403, 0.02963993325829506, -0.18499547243118286, -0.5229899287223816, -0.11529157310724258, -0.12266356498003006, -0.8908710479736328, -0.477102667093277, 0.3512232303619385, 0.32737380266189575, 0.4956892132759094, 0.7138945460319519, 0.6855418086051941, 0.48617321252822876, -0.06799174100160599, 0.09785784780979156, -0.3485645055770874, -0.16742220520973206, 0.41106855869293213, -0.5910430550575256, -0.42416518926620483, 0.15596143901348114, 0.7145146727561951, 0.34912145137786865, 0.04286069795489311, 0.4663451313972473, 0.1566467136144638, 0.5675318837165833, -0.28302064538002014, 0.18569636344909668, -0.37100905179977417, 0.18973612785339355, -0.12184588611125946, 0.07128322124481201, -0.24577154219150543, -0.38078588247299194, 0.20684610307216644, -0.5782670974731445, 0.42476943135261536, -0.05705524981021881, 1.3264164924621582, 0.30842313170433044, -0.10638401657342911, 0.0002555027022026479, -0.20451809465885162, 0.7266921401023865, -0.7416965961456299, 0.2180492877960205, 0.31996914744377136, 0.21146337687969208, -0.06518001854419708, -1.1315842866897583, -0.4725008010864258, -0.16930794715881348, -0.20598062872886658, -0.057772912085056305, -0.31940802931785583, 0.0658559575676918, 0.3189487159252167, 0.2063601016998291, -0.5272369980812073, 0.23630952835083008, -0.6092464327812195, -0.23308193683624268, 0.5575445294380188, 0.007876474410295486, 0.24236002564430237, -0.23068095743656158, -0.45928823947906494, -0.5002351403236389, -0.34881818294525146, 0.3340912461280823, 0.31793954968452454, 0.15416769683361053, -0.5406235456466675, 0.4656689763069153, 0.06401454657316208, 0.5973883867263794, -0.02478291466832161, -0.3502247929573059, 0.579471230506897, 0.002671889029443264, -0.42717474699020386, -0.1763932853937149, 1.1171749830245972, 0.45452144742012024, 0.22333188354969025, 0.08369439840316772, -0.13424214720726013, -0.3745645582675934, -0.11356475204229355, -1.342710256576538, -0.44266271591186523, 0.343241423368454, -0.6617265939712524, -0.4561019241809845, 0.27042311429977417, -0.5684632658958435, -0.10776218771934509, -0.012663505971431732, 0.6031956672668457, -0.4154839813709259, -0.45674654841423035, -0.08898379653692245, -0.2767590880393982, 0.2951502501964569, 0.20143082737922668, -0.5134079456329346, 0.1506318747997284, 0.40751922130584717, 1.2110013961791992, 0.06852336972951889, -0.3842709958553314, -0.28496816754341125, -0.39171740412712097, -0.3563832640647888, 0.44942355155944824, -0.011900111101567745, -0.005197150632739067, -0.2975086569786072, 0.3019290566444397, -0.09154973179101944, -0.724278450012207, 0.17504988610744476, -0.24184298515319824, 0.20404769480228424, -0.03381788358092308, -0.2196626365184784, -0.5344362258911133, 0.2317303568124771, -0.4547802805900574, 1.352558970451355, 0.41362354159355164, -0.8926002383232117, 0.26807063817977905, -0.5750359296798706, -0.09242692589759827, -0.26608774065971375, 0.061111677438020706, -1.0853785276412964, -0.10713933408260345, 0.09505382925271988, 0.8164050579071045, -0.29732781648635864, 0.03550420328974724, -0.6026214957237244, -0.27211254835128784, 0.23970462381839752, 0.024318046867847443, 1.0804004669189453, 0.20706000924110413, -0.502554714679718, 0.23837724328041077, -0.5181426405906677, 0.2168940305709839, 0.5382053256034851, -0.2776176929473877, -0.030758710578083992, -0.6499102711677551, 0.2179010659456253, 0.3354974389076233, 0.10427014529705048, -0.5140739679336548, 0.2655612528324127, -0.1999872922897339, 0.5222034454345703, 0.5989003777503967, -0.1956041008234024, 0.33400633931159973, -0.3329719007015228, 0.22385883331298828, 0.2600003480911255, 0.16565202176570892, 0.05850854516029358, -0.5387368202209473, -0.9230145215988159, -0.49527010321617126, 0.39772698283195496, 0.4118703007698059, -0.6336398124694824, 0.4283237159252167, -0.26276493072509766, -0.8277437090873718, -0.4180932641029358, 0.12247700989246368, 0.5471274852752686, 0.5963317155838013, 0.2979251742362976, -0.4444626271724701, -0.4702084958553314, -0.9428212642669678, 0.0021635722368955612, -0.05713413283228874, 0.030706025660037994, 0.3521105945110321, 0.7675493955612183, -0.07028121501207352, 0.5759724378585815, -0.40744587779045105, -0.28669318556785583, -0.23627535998821259, 0.06920768320560455, 0.3264702260494232, 0.8114284873008728, 0.8715603947639465, -0.5427876710891724, -0.5314728021621704, -0.12513357400894165, -0.9531399607658386, 0.18426012992858887, 0.01919103041291237, -0.29001757502555847, 0.3012121021747589, 0.2413308322429657, -0.5771386623382568, 0.5951088070869446, 0.22244343161582947, -0.43565043807029724, 0.35576993227005005, -0.24200478196144104, 0.21218429505825043, -1.150633692741394, 0.15822933614253998, 0.3677367866039276, -0.24240639805793762, -0.5012767314910889, 0.08497563749551773, 0.0409061461687088, 0.013782528229057789, -0.5273561477661133, 0.6826649904251099, -0.5710132718086243, -0.23581749200820923, -0.1443525105714798, -0.29862549901008606, -0.012077836319804192, 0.6599469780921936, -0.10391753911972046, 0.38778945803642273, 0.8155302405357361, -0.45390716195106506, 0.5296028852462769, 0.4108644425868988, -0.29275110363960266, 0.30739519000053406, -0.7263705730438232, 0.2457830160856247, -0.001463745255023241, 0.2356695532798767, -1.015377402305603, -0.3445063829421997, 0.41384345293045044, -0.6322453022003174, 0.6052311658859253, -0.5188643932342529, -0.5053946375846863, -0.55391526222229, -0.5009718537330627, 0.3385135233402252, 0.7234957218170166, -0.7785776853561401, 0.4282662272453308, 0.2363288253545761, 0.26955273747444153, -0.6076157093048096, -1.0319716930389404, -0.2571703791618347, -0.40301936864852905, -0.8183380365371704, 0.3261471688747406, 0.2323867231607437, 0.07767969369888306, 0.20528122782707214, -0.044482629746198654, -0.16867080330848694, -0.042919550091028214, 0.5108597874641418, 0.31574466824531555, -0.327781617641449, -0.03879149630665779, -0.28854164481163025, -0.07170211523771286, 0.033655401319265366, -0.4104915261268616, 0.5619879961013794, -0.28330564498901367, -0.04374753683805466, -0.8959866166114807, -0.09690144658088684, 0.3814929127693176, -0.03757520392537117, 0.8736575841903687, 1.2168869972229004, -0.512411892414093, -0.05391428992152214, -0.43826597929000854, -0.3512772023677826, -0.4956337511539459, 0.6272298693656921, -0.35049375891685486, -0.5458449125289917, 0.7465567588806152, 0.06064582243561745, 0.10803961008787155, 0.7470201253890991, 0.40315955877304077, -0.10571001470088959, 0.6630158424377441, 0.5100829601287842, 0.3013627827167511, 0.786853551864624, -1.1061378717422485, -0.2615053653717041, -0.7950786352157593, -0.5478651523590088, -0.40562841296195984, -0.6591769456863403, -0.7222821712493896, -0.41710370779037476, 0.4348982274532318, 0.27653729915618896, -0.5180835723876953, 0.49213558435440063, -0.8340167999267578, 0.11506961286067963, 0.7200060486793518, 0.5925721526145935, -0.40923234820365906, 0.4087929129600525, -0.15055504441261292, 0.03860508278012276, -0.8565945625305176, -0.22891400754451752, 1.174681305885315, 0.4544883072376251, 0.48029962182044983, -0.06226078048348427, 0.655510425567627, -0.25964421033859253, 0.2948310375213623, -0.64639812707901, 0.5611204504966736, -0.194306880235672, -0.4234164357185364, -0.1362685114145279, -0.5400744080543518, -1.0619838237762451, 0.15256109833717346, -0.3043859302997589, -0.7898703813552856, 0.11765653640031815, 0.2638010084629059, -0.22747598588466644, 0.7979476451873779, -0.8970202207565308, 1.0383574962615967, -0.12296074628829956, -0.5146414637565613, 0.03067593276500702, -0.6778074502944946, 0.31308627128601074, 0.27927708625793457, -0.3247333765029907, -0.08465089648962021, 0.052908070385456085, 1.226913571357727, -0.6728501915931702, 0.7376448512077332, -0.5753682851791382, 0.5385996699333191, 0.5611039400100708, -0.0983278751373291, 0.43497398495674133, -0.1174839437007904, -0.14180967211723328, 0.3693157434463501, 0.015553277917206287, -0.48713138699531555, -0.513085663318634, 0.6198171973228455, -1.059443473815918, -0.265253484249115, -0.361298531293869, -0.3767152726650238, 0.23573066294193268, 0.1092618852853775, 0.5816947221755981, 0.6779873967170715, 0.24852241575717926, 0.37277331948280334, 0.5550370812416077, -0.3505997359752655, 0.5271900296211243, -0.1492442637681961, -0.13607929646968842, -0.5229436159133911, 0.8763801455497742, 0.2651219666004181, 0.1277686506509781, 0.1045183464884758, 0.24918922781944275, -0.3960183262825012, -0.6332947015762329, -0.3281225264072418, 0.3099299371242523, -0.7269333004951477, -0.5311446785926819, -0.7265036106109619, -0.35621586441993713, -0.41345441341400146, 0.005021877586841583, -0.5602334141731262, -0.46359774470329285, -0.5040414929389954, 0.19401590526103973, 0.8125399947166443, 0.616012692451477, -0.22412143647670746, 0.6368421316146851, -0.4563019573688507, 0.1674818992614746, 0.14276684820652008, 0.4881458878517151, -0.03570685163140297, -0.8937477469444275, -0.19650107622146606, -0.1344631463289261, -0.40712687373161316, -0.6588713526725769, 0.4707323908805847, 0.2609007954597473, 0.4289916753768921, 0.4138777256011963, -0.2616773247718811, 0.744438111782074, 0.045444853603839874, 0.5192832350730896, 0.45570555329322815, -0.5029187202453613, 0.5435587763786316, -0.01757941208779812, 0.09326577186584473, 0.181792214512825, 0.2665790915489197, -0.19970563054084778, 0.07558075338602066, -0.9642401337623596, -0.7993472218513489, 0.9914259910583496, 0.17519724369049072, -0.07307948917150497, 0.4761417806148529, 0.7382315993309021, 0.015267839655280113, 0.017542853951454163, -0.6508388519287109, -0.48753148317337036, -0.4001273214817047, -0.3068206012248993, -0.019913749769330025, -0.11603875458240509, -0.01955990307033062, -0.6971133351325989, 0.7515719532966614, -0.057923849672079086, 0.882964015007019, 0.2500360608100891, -0.07379812747240067, -0.0292472206056118, -0.5043209195137024, 0.4664102792739868, 0.2680910527706146, -0.3261791467666626, 0.08527716994285583, 0.15508128702640533, -0.543830394744873, 0.10154245793819427, 0.19660599529743195, -0.02535451017320156, 0.006320559419691563, 0.51627117395401, 1.082833170890808, -0.11634206771850586, 0.14453282952308655, 0.4886877238750458, -0.031330619007349014, -0.4591616988182068, -0.27589964866638184, 0.20522162318229675, 0.043047789484262466, 0.47973719239234924, 0.2005288451910019, 0.42288580536842346, -0.12208212912082672, -0.21088317036628723, 0.26203012466430664, 0.5476476550102234, -0.3148866295814514, -0.30325716733932495, 0.6903657913208008, -0.11502235382795334, -0.19929808378219604, 0.9440261125564575, -0.19147928059101105, -0.5149030089378357, 1.1405378580093384, 0.34645113348960876, 0.9344067573547363, 0.04700508713722229, 0.06289487332105637, 0.9269782304763794, 0.24554099142551422, -0.08078724145889282, 0.17420916259288788, 0.15321704745292664, -0.6973228454589844, 0.07423270493745804, -0.5289546847343445, 0.1282288134098053, 0.35396549105644226, -0.5176241993904114, 0.32631874084472656, -0.6932772397994995, -0.42738088965415955, 0.15118803083896637, 0.4102562665939331, -1.0505186319351196, 0.17066901922225952, -0.05626153573393822, 0.8960028290748596, -0.718778669834137, 0.8179726600646973, 0.8380144238471985, -0.4292110800743103, -1.1431728601455688, -0.1871020346879959, 0.03551192209124565, -0.9510101675987244, 0.6224979758262634, 0.50847327709198, 0.20005731284618378, 0.12000296264886856, -0.7811369299888611, -0.6373494267463684, 1.5014984607696533, 0.543438196182251, -0.11358840018510818, 0.2904359996318817, -0.05827297270298004, 0.19946733117103577, -0.40618762373924255, 0.6545571088790894, 0.274367094039917, 0.4667069613933563, 0.2980895936489105, -0.6723179817199707, 0.2348267287015915, -0.35612010955810547, 0.17029725015163422, 0.1718117892742157, -0.8962477445602417, 0.8747488856315613, -0.5378042459487915, -0.09081042557954788, 0.061678431928157806, 0.7320057153701782, 0.18809588253498077, 0.15122829377651215, 0.5435703992843628, 0.8356872797012329, 0.5554773211479187, -0.4583710730075836, 0.9498764276504517, 0.07870861887931824, 0.6777923107147217, 0.5631363391876221, 0.5296036601066589, 0.547314465045929, 0.38266825675964355, -0.20373937487602234, 0.3161410689353943, 1.1743968725204468, -0.3937952518463135, 0.36103934049606323, 0.20641237497329712, 0.11976286768913269, -0.12821730971336365, 0.07601039111614227, -0.4370647668838501, 0.6101354956626892, 0.12775243818759918, -0.513397216796875, -0.21357187628746033, -0.02346803992986679, 0.046405598521232605, -0.5064508318901062, -0.2269604504108429, 0.5259091854095459, 0.009707184508442879, -0.4468023478984833, 0.8718680143356323, 0.18699465692043304, 0.8882648944854736, -0.40017062425613403, 0.03732579946517944, -0.23846660554409027, 0.24416440725326538, -0.3796793222427368, -0.8156639933586121, 0.27852094173431396, -0.20874632894992828, 0.08576422184705734, 0.012302584014832973, 0.7039586305618286, -0.374235063791275, -0.468535453081131, 0.20518185198307037, 0.2925511300563812, 0.5739577412605286, 0.017367731779813766, -1.230886697769165, 0.15532049536705017, 0.09992504864931107, -0.7670145630836487, 0.2681486904621124, 0.29053694009780884, 0.11772828549146652, 0.7001169919967651, 0.5470861196517944, -0.09422939270734787, 0.1522422581911087, -0.2829967439174652, 0.7986629009246826, -0.4226091504096985, -0.32335320115089417, -0.7911372780799866, 0.679658055305481, -0.1363370269536972, -0.6817300915718079, 0.39033564925193787, 0.5724708437919617, 0.866478443145752, 0.0025246639270335436, 0.45702531933784485, -0.33680427074432373, -0.10270655155181885, -0.42754483222961426, 0.7716882824897766, -0.8158672451972961, -0.1102723702788353, -0.05960872024297714, -0.7527691721916199, -0.331106573343277, 0.7650113105773926, -0.19368286430835724, 0.48690831661224365, 0.5079238414764404, 1.0534992218017578, -0.36493343114852905, -0.3904721736907959, 0.10789425671100616, 0.17053940892219543, 0.08788640052080154, 0.4844176173210144, 0.3703339993953705, -0.847691535949707, 0.41989555954933167, -0.7457063794136047, -0.19079448282718658, -0.2614154815673828, -0.6854805946350098, -1.018419623374939, -0.8270641565322876, -0.6916912794113159, -0.7922417521476746, -0.17210066318511963, 1.0054302215576172, 1.0993151664733887, -0.6777703762054443, -0.11950743198394775, 0.00734197162091732, 0.12403097748756409, -0.20225028693675995, -0.22690384089946747, 0.724983274936676, -0.047776445746421814, -0.7369726896286011, -0.3699756860733032, -0.06945616006851196, 0.35440778732299805, 0.03751566633582115, -0.2994190454483032, -0.10510420799255371, -0.3804110884666443, 0.18283453583717346, 0.2719056010246277, -0.6321012377738953, -0.18247969448566437, -0.26873135566711426, -0.18317438662052155, 0.40044617652893066, 0.43468379974365234, -0.4909839630126953, 0.3284545838832855, 0.5494558215141296, 0.375102162361145, 0.9277526140213013, -0.36340442299842834, -0.0710156112909317, -0.8069068789482117, 0.617267906665802, -0.12313716113567352, 0.41950011253356934, 0.465108186006546, -0.31177371740341187, 0.6454603672027588, 0.4376493990421295, -0.38495418429374695, -0.9034186601638794, -0.1621970236301422, -1.0920761823654175, -0.10904931277036667, 1.0350191593170166, -0.44851934909820557, -0.5164406895637512, 0.4978375732898712, 0.08369313180446625, 0.7643346786499023, -0.14884266257286072, 0.3644062876701355, 0.19895818829536438, -0.12405438721179962, -0.5956135392189026, -0.6170197129249573, 0.4726335108280182, 0.13051030039787292, -0.6464282274246216, -0.4930919110774994, -0.07445591688156128, 0.7614121437072754, 0.1214241087436676, 0.46763673424720764, -0.04655768722295761, 0.14434318244457245, 0.18917258083820343, 0.4703291952610016, -0.638600766658783, -0.12336618453264236, -0.2971181273460388, 0.055271875113248825, -0.0988089069724083, -0.6426113247871399 ]
Salesforce/blip-itm-large-coco
Salesforce
"2023-08-01T14:48:50Z"
37,678
0
transformers
[ "transformers", "pytorch", "tf", "blip", "image-text-matching", "arxiv:2201.12086", "license:bsd-3-clause", "endpoints_compatible", "has_space", "region:us" ]
null
"2022-12-13T11:41:12Z"
--- pipeline_tags: 'other' tags: - image-text-matching languages: - en license: bsd-3-clause --- # BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation Model card for BLIP trained on image-text matching - large architecture (with ViT large backbone) trained on COCO dataset. | ![BLIP.gif](https://cdn-uploads.huggingface.co/production/uploads/1670928184033-62441d1d9fdefb55a0b7d12c.gif) | |:--:| | <b> Pull figure from BLIP official repo | Image source: https://github.com/salesforce/BLIP </b>| ## TL;DR Authors from the [paper](https://arxiv.org/abs/2201.12086) write in the abstract: *Vision-Language Pre-training (VLP) has advanced the performance for many vision-language tasks. However, most existing pre-trained models only excel in either understanding-based tasks or generation-based tasks. Furthermore, performance improvement has been largely achieved by scaling up the dataset with noisy image-text pairs collected from the web, which is a suboptimal source of supervision. In this paper, we propose BLIP, a new VLP framework which transfers flexibly to both vision-language understanding and generation tasks. BLIP effectively utilizes the noisy web data by bootstrapping the captions, where a captioner generates synthetic captions and a filter removes the noisy ones. We achieve state-of-the-art results on a wide range of vision-language tasks, such as image-text retrieval (+2.7% in average recall@1), image captioning (+2.8% in CIDEr), and VQA (+1.6% in VQA score). BLIP also demonstrates strong generalization ability when directly transferred to videolanguage tasks in a zero-shot manner. Code, models, and datasets are released.* ## Usage You can use this model for conditional and un-conditional image captioning ### Using the Pytorch model #### Running the model on CPU <details> <summary> Click to expand </summary> ```python import requests from PIL import Image from transformers import BlipProcessor, BlipForImageTextRetrieval processor = BlipProcessor.from_pretrained("Salesforce/blip-itm-large-coco") model = BlipForImageTextRetrieval.from_pretrained("Salesforce/blip-itm-large-coco") img_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg' raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB') question = "A woman and a dog sitting together in a beach." inputs = processor(raw_image, question, return_tensors="pt") itm_scores = model(**inputs)[0] cosine_score = model(**inputs, use_itm_head=False)[0] ``` </details> #### Running the model on GPU ##### In full precision <details> <summary> Click to expand </summary> ```python import requests from PIL import Image from transformers import BlipProcessor, BlipForImageTextRetrieval processor = BlipProcessor.from_pretrained("Salesforce/blip-itm-large-coco") model = BlipForImageTextRetrieval.from_pretrained("Salesforce/blip-itm-large-coco").to("cuda") img_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg' raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB') question = "A woman and a dog sitting together in a beach." inputs = processor(raw_image, question, return_tensors="pt").to("cuda") itm_scores = model(**inputs)[0] cosine_score = model(**inputs, use_itm_head=False)[0] ``` </details> ##### In half precision (`float16`) <details> <summary> Click to expand </summary> ```python import torch import requests from PIL import Image from transformers import BlipProcessor, BlipForImageTextRetrieval processor = BlipProcessor.from_pretrained("Salesforce/blip-itm-large-coco") model = BlipForImageTextRetrieval.from_pretrained("Salesforce/blip-itm-large-coco", torch_dtype=torch.float16).to("cuda") img_url = 'https://storage.googleapis.com/sfr-vision-language-research/BLIP/demo.jpg' raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB') question = "A woman and a dog sitting together in a beach." inputs = processor(raw_image, question, return_tensors="pt").to("cuda", torch.float16) itm_scores = model(**inputs)[0] cosine_score = model(**inputs, use_itm_head=False)[0] ``` </details> ## BibTex and citation info ``` @misc{https://doi.org/10.48550/arxiv.2201.12086, doi = {10.48550/ARXIV.2201.12086}, url = {https://arxiv.org/abs/2201.12086}, author = {Li, Junnan and Li, Dongxu and Xiong, Caiming and Hoi, Steven}, keywords = {Computer Vision and Pattern Recognition (cs.CV), FOS: Computer and information sciences, FOS: Computer and information sciences}, title = {BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation}, publisher = {arXiv}, year = {2022}, copyright = {Creative Commons Attribution 4.0 International} } ```
[ -0.31754934787750244, -0.6245260834693909, -0.025184353813529015, 0.6160567402839661, -0.38643312454223633, -0.010653411038219929, -0.5126480460166931, -0.6993160247802734, -0.010872318409383297, 0.2975410223007202, -0.34815967082977295, -0.5254257321357727, -0.4491690397262573, -0.06935474276542664, -0.27370485663414, 0.6979743242263794, 0.16512073576450348, 0.05761611834168434, -0.196136936545372, 0.011774089187383652, -0.23302040994167328, -0.3123152554035187, -0.5497967600822449, -0.01868429034948349, 0.029095005244016647, 0.3545767366886139, 0.5605985522270203, 0.5075184106826782, 0.8070417046546936, 0.3795158863067627, -0.0727728009223938, 0.05457174777984619, -0.3282600939273834, -0.389824241399765, -0.1214401051402092, -0.7420513033866882, -0.19397005438804626, 0.05895623564720154, 0.5285441279411316, 0.5941465497016907, 0.0022601766977459192, 0.4371893107891083, 0.10308428108692169, 0.5888927578926086, -0.7413053512573242, 0.41249850392341614, -0.7726119756698608, 0.050648003816604614, -0.03635425493121147, -0.17734482884407043, -0.38445934653282166, -0.13495683670043945, 0.11864788830280304, -0.8392850160598755, 0.6341552138328552, 0.22203797101974487, 1.6548768281936646, 0.3231274485588074, 0.25757789611816406, -0.22739730775356293, -0.42160287499427795, 0.876683235168457, -0.5749263167381287, 0.4621955454349518, 0.1811068058013916, 0.28406572341918945, 0.08246926963329315, -0.7871211767196655, -0.7686850428581238, -0.3413863778114319, -0.08130685985088348, 0.40344876050949097, -0.22599172592163086, -0.1004156619310379, 0.306656152009964, 0.4624881148338318, -0.6494435667991638, -0.019132127985358238, -0.8338156938552856, -0.27983081340789795, 0.6613608002662659, -0.09345392137765884, 0.2556087374687195, -0.24381056427955627, -0.5531853437423706, -0.45075294375419617, -0.5436658263206482, 0.41484421491622925, -0.07975319772958755, 0.21817030012607574, -0.45645251870155334, 0.7449442148208618, -0.024067547172307968, 0.9309237003326416, 0.2595340609550476, -0.2658010423183441, 0.6070013642311096, -0.3298514783382416, -0.47795069217681885, -0.025140730664134026, 1.1380956172943115, 0.6165851950645447, 0.3479745388031006, 0.06650426238775253, 0.07337012141942978, 0.1753363311290741, 0.07191579043865204, -0.8795396089553833, -0.424262672662735, 0.2125694751739502, -0.28536391258239746, -0.2298000305891037, 0.08613002300262451, -0.9691714644432068, -0.10301090776920319, -0.028546899557113647, 0.5345317721366882, -0.5608462691307068, -0.16464178264141083, 0.1985638290643692, -0.27013683319091797, 0.39085808396339417, 0.3271416425704956, -0.8070947527885437, -0.023100072517991066, 0.2756425440311432, 0.9734194278717041, 0.03970018029212952, -0.6296292543411255, -0.28428173065185547, 0.09924501180648804, -0.43122270703315735, 0.5390422344207764, -0.14815010130405426, -0.1604558378458023, -0.08556786924600601, 0.20099841058254242, -0.17426158487796783, -0.5529388189315796, 0.08013955503702164, -0.2721700072288513, 0.23515215516090393, -0.11887215077877045, -0.26522642374038696, -0.36816778779029846, 0.3771328926086426, -0.38236504793167114, 1.0427684783935547, 0.03933674469590187, -0.8136605024337769, 0.6273882389068604, -0.5384655594825745, -0.3197239637374878, 0.2454560101032257, -0.24956448376178741, -0.6156533360481262, -0.11896179616451263, 0.49133801460266113, 0.42226532101631165, -0.4344673752784729, 0.09711282700300217, -0.298842191696167, -0.383700966835022, 0.13684117794036865, -0.2980380952358246, 1.1120407581329346, -0.04965133219957352, -0.6594593524932861, -0.0020405917894095182, -0.8595433831214905, -0.024005640298128128, 0.29753851890563965, -0.3513343632221222, 0.016997013241052628, -0.2755607068538666, 0.2662676274776459, 0.24230219423770905, 0.5542697906494141, -0.5868369936943054, 0.0074254488572478294, -0.38439539074897766, 0.43009087443351746, 0.561252236366272, -0.251253604888916, 0.3294318616390228, -0.06487556546926498, 0.3436843752861023, 0.14102111756801605, 0.38123026490211487, -0.29517415165901184, -0.6456082463264465, -1.0515483617782593, -0.5440322160720825, -0.004085235763341188, 0.6513168215751648, -0.8577103018760681, 0.4582308828830719, -0.3008529841899872, -0.569748044013977, -0.746696412563324, 0.18449197709560394, 0.6391492486000061, 0.8476886749267578, 0.640727162361145, -0.47220781445503235, -0.4989483952522278, -0.7928032875061035, 0.19812144339084625, -0.27533233165740967, -0.006382765714079142, 0.3275807201862335, 0.5894895792007446, -0.13455460965633392, 0.8671603798866272, -0.5175085663795471, -0.4593997597694397, -0.2534574568271637, 0.05595100298523903, 0.403038889169693, 0.7020924687385559, 0.7745946049690247, -0.8403231501579285, -0.464295357465744, 0.0741853415966034, -0.9068874716758728, 0.10948333144187927, -0.025793273001909256, -0.03498831018805504, 0.42702019214630127, 0.5195058584213257, -0.6330201029777527, 0.6496455073356628, 0.5051559805870056, -0.20820769667625427, 0.6887973546981812, -0.3089190423488617, 0.09455674886703491, -0.908841073513031, 0.41075634956359863, 0.27139389514923096, -0.039716217666864395, -0.28898176550865173, 0.12880443036556244, 0.14888983964920044, -0.12566980719566345, -0.6662177443504333, 0.6721527576446533, -0.6110222339630127, -0.29129457473754883, 0.08206035196781158, 0.03694842383265495, 0.11724784970283508, 0.7576307058334351, 0.33056843280792236, 0.7640652656555176, 1.092468023300171, -0.7740060687065125, 0.399700790643692, 0.4308396279811859, -0.5385729074478149, 0.40132007002830505, -0.8205723762512207, -0.10354522615671158, 0.019784878939390182, -0.21242476999759674, -1.2057374715805054, -0.14745496213436127, 0.3027520179748535, -0.7008674144744873, 0.31071582436561584, -0.2761307954788208, -0.3939213156700134, -0.7448074817657471, -0.3307822346687317, 0.361637145280838, 0.4766802489757538, -0.7630742192268372, 0.2979671061038971, 0.17062298953533173, 0.18164227902889252, -0.8511601686477661, -1.1344900131225586, 0.06317367404699326, 0.0742570161819458, -0.6710848212242126, 0.478790819644928, -0.07591501623392105, 0.17057199776172638, 0.12300385534763336, 0.1211497038602829, -0.09611950069665909, -0.26127561926841736, 0.2734498679637909, 0.5441632866859436, -0.37767189741134644, -0.19700555503368378, -0.43248704075813293, 0.12390340119600296, -0.14710374176502228, -0.21729381382465363, 0.8319751620292664, -0.3586416244506836, -0.07668270170688629, -0.7485292553901672, -0.10222658514976501, 0.6220569014549255, -0.4814024567604065, 0.5898399353027344, 0.7935951352119446, -0.21092413365840912, 0.022290198132395744, -0.5946711897850037, 0.05472048744559288, -0.572179913520813, 0.534291684627533, -0.2482317090034485, -0.4164162874221802, 0.5412636995315552, 0.3299281895160675, -0.02897682413458824, 0.30192604660987854, 0.7181897759437561, -0.2263794094324112, 0.7185100317001343, 0.8484159708023071, -0.09506168961524963, 0.7673494815826416, -0.908239483833313, 0.008639109320938587, -0.7804155349731445, -0.44070807099342346, -0.20154020190238953, -0.09772827476263046, -0.5014703869819641, -0.5292336940765381, 0.26015177369117737, 0.2971867620944977, -0.3535735607147217, 0.2942943274974823, -0.621497631072998, 0.2170037031173706, 0.7873916029930115, 0.2358708679676056, -0.09486327320337296, 0.21348637342453003, -0.23661765456199646, 0.026212584227323532, -0.7542888522148132, -0.18800179660320282, 1.0427645444869995, 0.22353388369083405, 0.7405569553375244, -0.2966172695159912, 0.4007152318954468, -0.27841949462890625, 0.205571711063385, -0.6881594657897949, 0.7102741599082947, -0.28809529542922974, -0.5699105262756348, -0.250043660402298, -0.3187054991722107, -0.9403008222579956, 0.22615283727645874, -0.373977929353714, -0.9532084465026855, 0.24537084996700287, 0.49284666776657104, -0.21178998053073883, 0.235958531498909, -0.8146491646766663, 1.0496408939361572, -0.487437903881073, -0.7117825746536255, 0.17042088508605957, -0.6250986456871033, 0.3127189576625824, 0.3139035999774933, 0.015295922756195068, 0.24676908552646637, 0.17736965417861938, 0.7270443439483643, -0.5058267116546631, 0.8892110586166382, -0.2609937787055969, 0.32237663865089417, 0.43950387835502625, -0.1916278451681137, -0.012715165503323078, -0.09914618730545044, 0.16090624034404755, 0.4507588744163513, -0.06491556018590927, -0.6154645681381226, -0.48034757375717163, 0.24817174673080444, -0.7903304100036621, -0.48859429359436035, -0.41772720217704773, -0.5225850939750671, 0.047708939760923386, 0.334829717874527, 0.7843554019927979, 0.2807202637195587, 0.23545049130916595, 0.13962969183921814, 0.2475680112838745, -0.5208733677864075, 0.7194409370422363, 0.34574228525161743, -0.4582575261592865, -0.4650724530220032, 1.0500926971435547, -0.015082843601703644, 0.20000486075878143, 0.33954352140426636, 0.23258031904697418, -0.4048302471637726, -0.5269803404808044, -0.636101245880127, 0.47691982984542847, -0.559303343296051, -0.3020157814025879, -0.28742605447769165, -0.2666608393192291, -0.522746205329895, -0.3378118872642517, -0.5416437387466431, -0.11387249827384949, -0.42834189534187317, 0.162497416138649, 0.44077548384666443, 0.29570284485816956, -0.07672051340341568, 0.45281684398651123, -0.46008116006851196, 0.40021756291389465, 0.25047072768211365, 0.2536930441856384, -0.05347751826047897, -0.5714749693870544, -0.15921400487422943, 0.16219666600227356, -0.30832576751708984, -0.6650590896606445, 0.6836208701133728, 0.29717230796813965, 0.43544667959213257, 0.4663632810115814, -0.42554813623428345, 1.1824332475662231, -0.2720291018486023, 0.8519894480705261, 0.609333336353302, -0.9842050671577454, 0.7400580644607544, 0.006970092188566923, 0.21326977014541626, 0.4727388620376587, 0.3369106352329254, -0.3430744707584381, -0.4401898980140686, -0.5639445781707764, -0.9838190078735352, 0.7399275302886963, 0.12518927454948425, -0.11440753936767578, 0.26548701524734497, 0.2623891234397888, -0.2366359680891037, 0.3497937321662903, -0.9398142695426941, -0.19050399959087372, -0.5760529637336731, -0.24009980261325836, -0.36392784118652344, 0.1442708671092987, 0.18936893343925476, -0.7214148044586182, 0.483361154794693, -0.16421031951904297, 0.4002652168273926, 0.43346622586250305, -0.47944530844688416, -0.07452969253063202, -0.43651843070983887, 0.5155889391899109, 0.5533324480056763, -0.2747352123260498, 0.006476785987615585, -0.13343195617198944, -0.850747287273407, -0.20278748869895935, 0.004383261781185865, -0.31649327278137207, -0.05502400919795036, 0.5965059399604797, 0.963751494884491, 0.09009894728660583, -0.6255698204040527, 0.8163960576057434, 0.03773177042603493, -0.17650161683559418, -0.29244735836982727, 0.09493836760520935, -0.11228155344724655, 0.25422918796539307, 0.5573833584785461, 0.1781221330165863, -0.21400372684001923, -0.6313638091087341, 0.20922231674194336, 0.45713144540786743, -0.23747816681861877, -0.3114360272884369, 0.7785639762878418, -0.1375831514596939, -0.22382862865924835, 0.6887978911399841, -0.3313762843608856, -0.7357062101364136, 0.9183210134506226, 0.7484835386276245, 0.4594893455505371, -0.11996560543775558, 0.34301048517227173, 0.7695878744125366, 0.43030664324760437, -0.07934867590665817, 0.417447954416275, 0.007355727721005678, -0.8271018266677856, -0.21896691620349884, -0.7756694555282593, -0.2513553500175476, 0.30282479524612427, -0.5702160000801086, 0.47972843050956726, -0.7104255557060242, 0.05484083294868469, 0.08038803935050964, 0.13776028156280518, -0.9294375777244568, 0.4922667145729065, 0.15955901145935059, 0.8386625051498413, -0.8528732657432556, 0.5456162691116333, 0.8648225665092468, -0.962482213973999, -0.9568331837654114, -0.09540105611085892, -0.3527379333972931, -1.121622920036316, 0.8242847323417664, 0.4415918290615082, -0.057451099157333374, -0.01924207992851734, -0.9040818810462952, -0.7986606955528259, 1.1025773286819458, 0.5066165328025818, -0.5751796364784241, -0.021877087652683258, 0.2279362678527832, 0.6762102842330933, -0.2223888784646988, 0.2958243787288666, 0.1975494623184204, 0.3738127052783966, 0.42193612456321716, -0.9846405982971191, -0.040918368846178055, -0.312228798866272, -0.06554742902517319, -0.27200403809547424, -0.8537082672119141, 1.0670499801635742, -0.47871482372283936, -0.16183443367481232, -0.035989999771118164, 0.7085156440734863, 0.44736647605895996, 0.32257089018821716, 0.3998953104019165, 0.5915032625198364, 0.7082250118255615, 0.06174293905496597, 0.9474731087684631, -0.36490947008132935, 0.616299033164978, 0.8344731330871582, 0.2156071960926056, 0.8642226457595825, 0.5406376123428345, -0.14906568825244904, 0.26750555634498596, 0.6526773571968079, -0.5450428128242493, 0.4984215497970581, 0.12698478996753693, 0.24770303070545197, -0.09927302598953247, 0.1913178712129593, -0.283517986536026, 0.8444588780403137, 0.3923753798007965, -0.3571431636810303, -0.055083099752664566, 0.1443442851305008, -0.12895342707633972, -0.1371026635169983, -0.5346631407737732, 0.32806462049484253, -0.08657722175121307, -0.6705467700958252, 1.0575534105300903, -0.24187377095222473, 1.0392029285430908, -0.29230162501335144, 0.004932037554681301, -0.12434709817171097, 0.289768248796463, -0.3119191825389862, -0.9123170375823975, 0.0785614401102066, 0.0767122209072113, 0.06147395074367523, 0.11159969866275787, 0.38214728236198425, -0.5091198682785034, -1.0198957920074463, 0.4062452018260956, 0.15926384925842285, 0.32268404960632324, 0.07362820208072662, -1.0197988748550415, 0.16050225496292114, 0.0848909392952919, -0.24420258402824402, -0.1330936700105667, 0.2741488218307495, -0.01968357339501381, 0.7758545279502869, 0.6911232471466064, 0.3377890884876251, 0.5917519927024841, -0.04804980754852295, 0.8076463937759399, -0.6134644150733948, -0.45995327830314636, -0.7668457627296448, 0.5395986437797546, -0.16378197073936462, -0.5653402209281921, 0.6314590573310852, 0.9019159078598022, 1.0845314264297485, -0.2297814041376114, 0.5868579745292664, -0.2572231590747833, 0.04822707548737526, -0.6256780028343201, 0.780142068862915, -0.8274708390235901, -0.051925528794527054, -0.5345205068588257, -0.7585458755493164, -0.5778635740280151, 1.0078357458114624, -0.31880781054496765, 0.0054818736389279366, 0.6117870211601257, 1.1373944282531738, -0.32142066955566406, -0.48367637395858765, 0.2705557346343994, 0.3277665674686432, 0.2982320189476013, 0.7285152077674866, 0.5797535181045532, -0.6083811521530151, 0.6530305743217468, -0.6586833596229553, -0.2567273676395416, -0.2556796967983246, -0.6828064918518066, -1.015812873840332, -0.7847551107406616, -0.4975317716598511, -0.2528567612171173, -0.049460895359516144, 0.575929582118988, 0.839392364025116, -0.712375819683075, -0.3409945070743561, -0.25870227813720703, -0.008639654144644737, -0.26049646735191345, -0.22903430461883545, 0.5934481024742126, -0.37529081106185913, -0.8420136570930481, -0.006590691395103931, 0.31543126702308655, 0.1490824818611145, -0.14580658078193665, 0.06995345652103424, -0.3120436370372772, -0.3206266164779663, 0.44666197896003723, 0.4900229871273041, -0.636346161365509, -0.2346748560667038, 0.07154064625501633, -0.12814323604106903, 0.45521989464759827, 0.3345465362071991, -0.6416798830032349, 0.5101089477539062, 0.2817831337451935, 0.35962435603141785, 0.9488440752029419, -0.1110365018248558, 0.11022821068763733, -0.7399908900260925, 0.7585764527320862, 0.09668678045272827, 0.5072651505470276, 0.5967471599578857, -0.27989956736564636, 0.39037632942199707, 0.41454699635505676, -0.21008780598640442, -0.8751587867736816, -0.017652584239840508, -1.375563144683838, -0.23344428837299347, 1.1573290824890137, -0.3074093163013458, -0.821323573589325, 0.1697590947151184, -0.2837478518486023, 0.3438630700111389, -0.1573968231678009, 0.7937015891075134, 0.24970321357250214, 0.01571880839765072, -0.499599426984787, -0.23122893273830414, 0.39444592595100403, 0.29142773151397705, -0.6514967083930969, -0.20755797624588013, 0.3141452670097351, 0.5352932214736938, 0.5961173176765442, 0.6652774810791016, -0.062168654054403305, 0.5179216861724854, 0.11601077765226364, 0.55935138463974, -0.15490883588790894, -0.32713255286216736, -0.19588281214237213, 0.13943201303482056, -0.1479686200618744, -0.6954802870750427 ]
medicalai/ClinicalBERT
medicalai
"2023-09-15T08:46:54Z"
37,473
90
transformers
[ "transformers", "pytorch", "distilbert", "fill-mask", "medical", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2023-03-19T15:04:41Z"
--- tags: - medical --- # ClinicalBERT <!-- Provide a quick summary of what the model is/does. --> This model card describes the ClinicalBERT model, which was trained on a large multicenter dataset with a large corpus of 1.2B words of diverse diseases we constructed. We then utilized a large-scale corpus of EHRs from over 3 million patient records to fine tune the base language model. ## Pretraining Data The ClinicalBERT model was trained on a large multicenter dataset with a large corpus of 1.2B words of diverse diseases we constructed. <!-- For more details, see here. --> ## Model Pretraining ### Pretraining Procedures The ClinicalBERT was initialized from BERT. Then the training followed the principle of masked language model, in which given a piece of text, we randomly replace some tokens by MASKs, special tokens for masking, and then require the model to predict the original tokens via contextual text. ### Pretraining Hyperparameters We used a batch size of 32, a maximum sequence length of 256, and a learning rate of 5e-5 for pre-training our models. ## How to use the model Load the model via the transformers library: ```python from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("medicalai/ClinicalBERT") model = AutoModel.from_pretrained("medicalai/ClinicalBERT") ``` ## Citation Please cite this article: Wang, G., Liu, X., Ying, Z. et al. Optimized glycemic control of type 2 diabetes with reinforcement learning: a proof-of-concept trial. Nat Med (2023). https://doi.org/10.1038/s41591-023-02552-9
[ 0.042652953416109085, -0.6563243865966797, 0.40832436084747314, 0.002011754782870412, -0.20676924288272858, 0.07851874083280563, -0.06519347429275513, -0.36639073491096497, 0.21069283783435822, 0.6822142004966736, -0.1759980320930481, -0.8668681979179382, -0.8170822858810425, -0.07156581431627274, -0.10259036719799042, 1.3124666213989258, -0.06902217119932175, 0.6672033071517944, -0.04119366034865379, -0.05749641731381416, -0.23752924799919128, -0.785606324672699, -0.7765622735023499, -0.31768038868904114, 0.4764576554298401, 0.3735716938972473, 0.582700252532959, 0.6763207912445068, 0.5481383800506592, 0.22810134291648865, 0.08374051004648209, -0.017719347029924393, -0.51255202293396, -0.14872649312019348, 0.2206057906150818, -0.6893793940544128, -0.5687350034713745, -0.07032642513513565, 0.2881258428096771, 0.5665132403373718, -0.21748186647891998, 0.22153344750404358, -0.10929237306118011, 0.2760079801082611, -0.5448932647705078, 0.14891083538532257, -0.4899572432041168, 0.16101031005382538, -0.07160014659166336, -0.018466277047991753, -0.49285706877708435, -0.14181272685527802, 0.21406446397304535, -0.4355592131614685, 0.5439560413360596, 0.008559862151741982, 0.8394790291786194, 0.14486384391784668, -0.5305014252662659, -0.4040473997592926, -0.6296172738075256, 0.5031182169914246, -0.7089645266532898, 0.08750776201486588, 0.6084909439086914, 0.39689481258392334, 0.10992927849292755, -1.1295533180236816, -0.3890426754951477, -0.5770583748817444, -0.2200646996498108, 0.2386818826198578, 0.035526324063539505, 0.1927967220544815, 0.4878249168395996, 0.0479707233607769, -0.8241240382194519, 0.02794308215379715, -0.8841816782951355, -0.21161484718322754, 0.5914875268936157, 0.41873034834861755, 0.06887277960777283, -0.13476194441318512, -0.6054404377937317, -0.1252375692129135, -0.3641272187232971, 0.10730843245983124, -0.025419684126973152, -0.08794036507606506, -0.11209434270858765, 0.27931293845176697, 0.16358450055122375, 0.5387084484100342, -0.05602877587080002, -0.07505975663661957, 0.48879411816596985, -0.20773987472057343, -0.40689119696617126, 0.32516297698020935, 0.9263302683830261, 0.24234740436077118, 0.21051616966724396, 0.04625065252184868, -0.26572325825691223, 0.12052784115076065, 0.46247509121894836, -0.9323863387107849, -0.7479649186134338, 0.4260651469230652, -0.604454517364502, -0.3399478793144226, -0.11186560988426208, -0.47191494703292847, -0.2025870680809021, -0.3540191948413849, 0.5220755934715271, -0.47299468517303467, 0.07939271628856659, 0.2530112862586975, 0.039219003170728683, -0.10187584906816483, 0.29762428998947144, -1.1052087545394897, 0.548970103263855, 0.3098966181278229, 0.6351858973503113, -0.20458178222179413, -0.10573036968708038, -0.6124277710914612, 0.021335195749998093, -0.1135563999414444, 0.37683388590812683, -0.20093117654323578, -0.34089013934135437, 0.12723280489444733, 0.2084788978099823, -0.21714018285274506, -0.5402452349662781, 0.4316973090171814, -0.43392258882522583, 0.07590755075216293, -0.01935683935880661, -0.6604856848716736, 0.09167169779539108, 0.054642755538225174, -0.6029868125915527, 0.6994072198867798, 0.12620949745178223, -0.5511693358421326, 0.4435488283634186, -0.6393424868583679, -0.3587062358856201, 0.26780784130096436, -0.05846177041530609, -0.6453912854194641, 0.15319278836250305, 0.2013474404811859, 0.405251145362854, -0.004852206911891699, 0.4900849461555481, -0.2792147994041443, -0.15762610733509064, 0.19515623152256012, -0.10328074544668198, 0.7133354544639587, 0.3818429410457611, -0.24049529433250427, 0.4387017488479614, -0.8370845317840576, -0.10432644188404083, 0.10123979300260544, -0.07000251114368439, -0.31169357895851135, -0.19226375222206116, 0.5340052843093872, 0.307406485080719, 0.18871110677719116, -0.4299721419811249, 0.3085358142852783, -0.24122926592826843, 0.8335592150688171, 0.39769893884658813, -0.07230763137340546, 0.14894887804985046, -0.2484932541847229, 0.49864307045936584, 0.14694583415985107, 0.6466050148010254, -0.1185106560587883, -0.3701975345611572, -0.754703938961029, -0.5256190299987793, 0.4108048975467682, 0.6523709893226624, -0.3718721866607666, 0.47814902663230896, 0.059567004442214966, -0.4879874885082245, -0.6292611956596375, -0.033345822244882584, 0.32503771781921387, 0.6561194062232971, 0.6754806041717529, -0.4610404074192047, -0.3438505232334137, -0.9056234359741211, 0.33182668685913086, 0.05106363072991371, 0.0405857190489769, 0.19845223426818848, 0.7826141119003296, -0.4526210129261017, 0.5569274425506592, -0.5879703164100647, -0.3046625554561615, -0.3439439535140991, 0.3393569588661194, 0.20971645414829254, 0.6042582988739014, 0.3716217577457428, -0.5480741262435913, -0.47549110651016235, -0.3346693813800812, -0.6599589586257935, 0.11305710673332214, -0.23838584125041962, -0.09666082262992859, -0.004380021709948778, 0.7852023839950562, -0.34016668796539307, 0.6387757658958435, 0.47589901089668274, -0.29266557097435, 0.6237167119979858, -0.6370400190353394, -0.21868182718753815, -1.1145988702774048, 0.253262460231781, -0.1541798710823059, -0.2675647735595703, -0.7486556768417358, -0.1832645982503891, 0.39848387241363525, -0.17166683077812195, -0.5007787942886353, 0.6174976825714111, -0.21971571445465088, 0.44495531916618347, -0.3155898153781891, -0.020436979830265045, 0.0032683194149285555, 0.5149030089378357, 0.25878679752349854, 0.43149787187576294, 0.633588969707489, -0.6558985114097595, 0.3690355718135834, 0.4918038547039032, -0.2843126058578491, 0.13088753819465637, -1.0958541631698608, -0.12582620978355408, -0.23039571940898895, 0.22343076765537262, -1.0977853536605835, -0.17376728355884552, 0.22890125215053558, -0.5145975351333618, 0.4191277027130127, 0.0871041938662529, -0.47293365001678467, -0.4059559404850006, -0.043543245643377304, 0.607085108757019, 0.6025078296661377, -0.482989639043808, 0.27540695667266846, 0.396731972694397, 0.08548925071954727, -0.34622058272361755, -0.5839020609855652, -0.14647431671619415, -0.1911512166261673, -0.32351502776145935, 0.44140616059303284, -0.11313330382108688, 0.15243324637413025, -0.1996721476316452, 0.1684948056936264, -0.2470787912607193, 0.01615251787006855, 0.2465650886297226, 0.494917631149292, -0.012181348167359829, 0.48188239336013794, -0.03252926096320152, -0.202586829662323, 0.15841799974441528, -0.14594994485378265, 0.6498367190361023, 0.005085013806819916, -0.27842476963996887, -0.469694584608078, 0.24797527492046356, 0.44513630867004395, -0.2393350899219513, 0.9220183491706848, 0.8402649760246277, -0.414055734872818, 0.11611203849315643, -0.399173378944397, -0.2928919196128845, -0.4059095084667206, 0.6776565313339233, -0.10795556008815765, -0.7624297738075256, 0.5424389243125916, 0.21195322275161743, -0.06252996623516083, 0.5616349577903748, 0.7179332971572876, 0.12268481403589249, 1.1735674142837524, 0.48452112078666687, -0.07018674910068512, 0.3000192642211914, -0.34320834279060364, 0.03045681118965149, -0.7451627254486084, -0.450273722410202, -0.4516221880912781, -0.08584771305322647, -0.5865621566772461, -0.18315556645393372, 0.5269712805747986, 0.2505625784397125, -0.5350871682167053, 0.4647923409938812, -0.4820444881916046, 0.06545767933130264, 0.6897339224815369, 0.38411837816238403, -0.05944673717021942, 0.04442477971315384, -0.43448883295059204, 0.02610412798821926, -0.8545051217079163, -0.4443539083003998, 1.3424887657165527, 0.6159875392913818, 0.9457961320877075, -0.09227624535560608, 0.7306147217750549, 0.24464868009090424, 0.6021052002906799, -0.6197536587715149, 0.09773286432027817, -0.17484775185585022, -0.6617963314056396, -0.1313973069190979, -0.20745152235031128, -1.17255437374115, 0.11350127309560776, -0.39868858456611633, -0.766115665435791, -0.0007809746894054115, 0.3737712800502777, -0.6330661177635193, 0.08974593877792358, -0.8465797305107117, 1.2176474332809448, -0.6365011930465698, -0.4110277593135834, -0.10782138258218765, -0.9446735382080078, 0.3215882480144501, -0.1812756210565567, 0.012657859362661839, 0.15329952538013458, 0.21318091452121735, 0.8295014500617981, -0.5136999487876892, 0.9561747908592224, -0.09506088495254517, 0.25306177139282227, 0.020000090822577477, -0.25256991386413574, 0.4222700893878937, 0.35121631622314453, 0.30628883838653564, 0.25559258460998535, 0.3129616975784302, -0.6175888776779175, -0.30325716733932495, 0.410332053899765, -1.043644666671753, -0.22936268150806427, -0.6764621138572693, -0.13977663218975067, -0.07971620559692383, -0.007339100353419781, 0.5337284803390503, 0.6229619383811951, -0.36774829030036926, -0.10592848807573318, 0.5470291376113892, -0.47091910243034363, 0.21061646938323975, 0.4539683759212494, -0.13018456101417542, -0.7566139101982117, 0.5025068521499634, -0.2591109573841095, 0.39474013447761536, 0.3876207768917084, 0.07712771743535995, -0.4464583992958069, -0.34189721941947937, -0.37537094950675964, 0.47100770473480225, -0.5385733842849731, 0.014001108705997467, -0.8320480585098267, -0.5516487956047058, -0.6337938904762268, -0.03310778737068176, -0.21624785661697388, -0.08102146536111832, -0.4753424823284149, 0.1255316585302353, 0.19251807034015656, 0.6267262697219849, 0.11276042461395264, 0.6284289956092834, -1.006376028060913, 0.10539814829826355, 0.10619164258241653, 0.08857063949108124, 0.03724393621087074, -0.655738353729248, -0.40675872564315796, -0.15758734941482544, -0.4502413868904114, -0.7414301037788391, 0.7471057772636414, -0.006086316425353289, 0.5975059866905212, 0.5180599689483643, -0.02810187265276909, 0.5815861821174622, -0.6076111197471619, 0.7038456201553345, 0.6031352877616882, -0.7591491341590881, 0.45801103115081787, 0.07912325114011765, 0.41756555438041687, 0.6208673715591431, 0.665202796459198, -0.6334458589553833, -0.08146771043539047, -0.9041599035263062, -0.937116801738739, 0.5037413239479065, 0.09463867545127869, 0.11521352827548981, -0.12136243283748627, 0.2532077431678772, 0.16448119282722473, 0.3198201656341553, -0.8231750130653381, -0.4044579565525055, -0.244595006108284, -0.3695192337036133, -0.5549362897872925, -0.4027755856513977, -0.27845680713653564, -0.5316061973571777, 0.616050660610199, -0.027645332738757133, 0.5763312578201294, 0.38132551312446594, -0.32788774371147156, 0.06757599860429764, 0.02842329442501068, 1.020919919013977, 0.6388218402862549, -0.3589368462562561, 0.047752439975738525, 0.08121182024478912, -0.7149825096130371, -0.20283496379852295, 0.3070066571235657, 0.01226710993796587, 0.08073173463344574, 0.5337878465652466, 1.345833659172058, -0.11535296589136124, -0.6558946967124939, 0.5493288040161133, -0.21469491720199585, -0.5089476704597473, -0.7140340805053711, 0.0957636684179306, -0.1618226021528244, 0.1087622418999672, 0.012042170390486717, 0.15426947176456451, -0.007621116936206818, -0.2911696135997772, 0.41748732328414917, 0.26719173789024353, -0.6763768792152405, -0.24614182114601135, 1.1042423248291016, 0.1129833459854126, -0.21235522627830505, 0.8042643070220947, -0.11372210830450058, -0.592708170413971, 0.717173159122467, 0.5873437523841858, 0.6761966347694397, -0.22122550010681152, 0.28785085678100586, 0.779543936252594, 0.0951465517282486, -0.1159050315618515, -0.040979404002428055, 0.05222690850496292, -0.5732526183128357, -0.3522260785102844, -0.7221478819847107, -0.18840360641479492, 0.5328447222709656, -0.6677510142326355, 0.3779541254043579, -0.5858774185180664, -0.2980669438838959, 0.12624624371528625, -0.07907666265964508, -0.7700278759002686, 0.29618775844573975, 0.2519823908805847, 1.014761209487915, -0.9979692101478577, 1.0048662424087524, 0.5723494291305542, -0.6050483584403992, -0.7534725666046143, -0.24440442025661469, -0.280619353055954, -1.152738332748413, 0.8463272452354431, 0.16965894401073456, 0.6060857772827148, -0.10858381539583206, -0.6232402920722961, -0.7303454875946045, 0.8741419911384583, -0.1521168053150177, -0.795429527759552, 0.02041195146739483, 0.28755542635917664, 0.8123517036437988, -0.5339587926864624, 0.6824384331703186, 0.3563670516014099, 0.02050815336406231, 0.23941552639007568, -0.8820988535881042, 0.018878133967518806, -0.1953713595867157, -0.09309644997119904, 0.03348282352089882, -0.48439469933509827, 1.0094146728515625, -0.3692527115345001, 0.3575717508792877, 0.08502126485109329, 0.3233742415904999, 0.17562727630138397, 0.26980891823768616, 0.2809872627258301, 0.47472622990608215, 0.8194688558578491, 0.1989523023366928, 0.9325854778289795, -0.5697979927062988, 0.6510354280471802, 1.0548208951950073, -0.2545783221721649, 0.5836326479911804, 0.23754219710826874, -0.059298284351825714, 0.3575424551963806, 0.8222379088401794, -0.2730529010295868, 0.7324549555778503, 0.49767962098121643, -0.3199729025363922, -0.39585885405540466, 0.2037508338689804, -0.5189875960350037, 0.3441924750804901, 0.3854109048843384, -0.9168732762336731, -0.10808834433555603, 0.2283380627632141, 0.09072563797235489, -0.35228756070137024, -0.26963159441947937, 0.4865591824054718, 0.04210922122001648, -0.7027347087860107, 0.9023992419242859, 0.10944755375385284, 0.23744863271713257, -0.8278220891952515, -0.030259104445576668, -0.04699723795056343, 0.4578663408756256, 0.015516776591539383, -0.13553261756896973, -0.0010902835056185722, -0.3555024266242981, -0.0595894418656826, 0.019537944346666336, 0.41981664299964905, -0.6253340244293213, -0.5926656723022461, 0.12931117415428162, 0.2934279143810272, 0.2345467507839203, 0.19756941497325897, -0.9245308637619019, -0.10748834162950516, -0.11865341663360596, 0.056346215307712555, 0.2547791600227356, 0.22037039697170258, -0.16460132598876953, 0.48507368564605713, 0.6469455361366272, 0.19723965227603912, -0.14523403346538544, 0.1965499222278595, 0.7311452627182007, -0.5874989032745361, -0.5411480069160461, -0.8308802843093872, 0.48126310110092163, -0.17958010733127594, -0.5097013711929321, 0.4220902621746063, 0.6252083778381348, 0.6599173545837402, -0.3917080760002136, 0.7145740389823914, 0.09934400767087936, 0.2667078971862793, -0.5492171049118042, 0.7831240296363831, -0.5854607820510864, -0.054708320647478104, -0.03131050989031792, -0.41709452867507935, -0.46444714069366455, 0.754509687423706, -0.3029402792453766, 0.09167321026325226, 0.9924603700637817, 0.8600175976753235, -0.025682665407657623, -0.12521788477897644, 0.43493276834487915, 0.28280434012413025, 0.2818537950515747, 0.6895191073417664, 0.3310531973838806, -0.5151088833808899, 0.2173204869031906, -0.03142867982387543, -0.4637320339679718, -0.3847447633743286, -0.5877075791358948, -1.2011507749557495, -0.4984201192855835, -0.4047944247722626, -0.7387453317642212, 0.17279714345932007, 1.1565008163452148, 0.9071338176727295, -1.131132960319519, -0.2182927429676056, -0.1569923311471939, -0.4788137674331665, -0.14188718795776367, -0.11887294054031372, 0.6697549819946289, -0.4793771505355835, -0.41707998514175415, -0.08960126340389252, -0.13522475957870483, -0.007212006952613592, -0.20744167268276215, -0.15473014116287231, -0.1791178584098816, -0.21064278483390808, 0.47730740904808044, 0.22861486673355103, -0.5071621537208557, -0.06579416245222092, 0.07629232108592987, -0.5577734112739563, 0.22612959146499634, 0.7731412053108215, -0.6447166800498962, 0.5620002746582031, 0.041764333844184875, 0.38024601340293884, 0.9021509289741516, -0.08175384998321533, 0.2588173747062683, -0.3784097731113434, 0.059151001274585724, 0.21524667739868164, 0.37636229395866394, 0.035146769136190414, -0.24455252289772034, 0.22368155419826508, 0.4502008855342865, -0.6999471783638, -0.318860799074173, 0.07383716106414795, -1.0301240682601929, -0.2395409494638443, 1.1953394412994385, -0.0475396029651165, -0.3143129348754883, -0.16149961948394775, -0.4274531900882721, 0.4319087564945221, -0.31217077374458313, 0.9037548303604126, 0.43531155586242676, -0.16670989990234375, 0.030444366857409477, -0.8347454071044922, 0.7495428323745728, 0.3829813599586487, -0.6717656254768372, -0.2890448272228241, 0.3163217008113861, 0.5023791193962097, 0.08430883288383484, 0.8250819444656372, -0.05819234997034073, 0.18217290937900543, -0.18496891856193542, 0.40749987959861755, 0.03746211528778076, -0.2505283057689667, -0.2208205908536911, 0.0720805823802948, -0.13315390050411224, -0.4047366976737976 ]
timm/mobilenetv3_small_100.lamb_in1k
timm
"2023-04-27T22:49:35Z"
37,225
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:1905.02244", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-16T05:38:36Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for mobilenetv3_small_100.lamb_in1k A MobileNet-v3 image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * A LAMB optimizer recipe that is similar to [ResNet Strikes Back](https://arxiv.org/abs/2110.00476) `A2` but 50% longer with EMA weight averaging, no CutMix * RMSProp (TF 1.0 behaviour) optimizer, EMA weight averaging * Step (exponential decay w/ staircase) LR schedule with warmup ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 2.5 - GMACs: 0.1 - Activations (M): 1.4 - Image size: 224 x 224 - **Papers:** - Searching for MobileNetV3: https://arxiv.org/abs/1905.02244 - **Dataset:** ImageNet-1k - **Original:** https://github.com/huggingface/pytorch-image-models ## 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('mobilenetv3_small_100.lamb_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) ``` ### 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( 'mobilenetv3_small_100.lamb_in1k', 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, 16, 112, 112]) # torch.Size([1, 16, 56, 56]) # torch.Size([1, 24, 28, 28]) # torch.Size([1, 48, 14, 14]) # torch.Size([1, 576, 7, 7]) 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( 'mobilenetv3_small_100.lamb_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, 576, 7, 7) 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 @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}} } ``` ```bibtex @inproceedings{howard2019searching, title={Searching for mobilenetv3}, author={Howard, Andrew and Sandler, Mark and Chu, Grace and Chen, Liang-Chieh and Chen, Bo and Tan, Mingxing and Wang, Weijun and Zhu, Yukun and Pang, Ruoming and Vasudevan, Vijay and others}, booktitle={Proceedings of the IEEE/CVF international conference on computer vision}, pages={1314--1324}, year={2019} } ```
[ -0.4559559226036072, -0.3428846299648285, -0.02778521738946438, 0.1636815071105957, -0.34514591097831726, -0.44216522574424744, -0.05210129916667938, -0.32912084460258484, 0.34469911456108093, 0.4350531995296478, -0.3460499942302704, -0.763678252696991, -0.5578673481941223, -0.15884722769260406, -0.09905213862657547, 0.8873701691627502, -0.09945371001958847, -0.07485406845808029, -0.07961953431367874, -0.6370940804481506, -0.2001417577266693, -0.2952593266963959, -0.8769010901451111, -0.4380362927913666, 0.44138434529304504, 0.3109246492385864, 0.5799586772918701, 0.7774835228919983, 0.6053872108459473, 0.4401591420173645, -0.0921558067202568, 0.07286041975021362, -0.09298308193683624, -0.2551623582839966, 0.4691634774208069, -0.6443337202072144, -0.5180946588516235, 0.3418513834476471, 0.6106451153755188, 0.2557821571826935, 0.009404117241501808, 0.5187087059020996, 0.04799552261829376, 0.6891869306564331, -0.36893904209136963, 0.018322626128792763, -0.48757246136665344, 0.18834225833415985, -0.16607731580734253, 0.015404192730784416, -0.20340797305107117, -0.4682900011539459, 0.13557283580303192, -0.39717164635658264, 0.40991511940956116, 0.026979738846421242, 1.3453161716461182, 0.15255852043628693, -0.18853528797626495, -0.01168821845203638, -0.2290997952222824, 0.7959185242652893, -0.7968010902404785, 0.19804203510284424, 0.4372331202030182, 0.1418667584657669, -0.05135268345475197, -0.9230184555053711, -0.6448112726211548, -0.1805618852376938, -0.04018242284655571, -0.0032503141555935144, -0.18480511009693146, -0.11292441189289093, 0.2540927827358246, 0.31356948614120483, -0.4892144501209259, 0.10199251025915146, -0.5854149460792542, -0.2447095513343811, 0.6301042437553406, 0.06584867089986801, 0.38866928219795227, -0.33948954939842224, -0.43637004494667053, -0.3735019862651825, -0.4437725841999054, 0.44023364782333374, 0.25161296129226685, 0.20516064763069153, -0.7104203701019287, 0.5467143654823303, 0.07930541783571243, 0.6799403429031372, -0.03709613159298897, -0.4226180613040924, 0.6884521245956421, -0.0661347433924675, -0.428884357213974, -0.05294135957956314, 1.1954251527786255, 0.5687171816825867, 0.11372395604848862, 0.24814385175704956, -0.1037459447979927, -0.39443373680114746, -0.05737393721938133, -1.1878279447555542, -0.22423726320266724, 0.3838372826576233, -0.8892034888267517, -0.5090886950492859, 0.2612776458263397, -0.5467958450317383, -0.1561208963394165, 0.08382415026426315, 0.4577570855617523, -0.40399307012557983, -0.3874170184135437, 0.07865273207426071, -0.15058079361915588, 0.4268638491630554, 0.09148208796977997, -0.578028678894043, 0.17701523005962372, 0.19886644184589386, 1.2785017490386963, 0.1151922345161438, -0.4431335926055908, -0.2830071747303009, -0.3008338510990143, -0.23928049206733704, 0.39866602420806885, -0.06515450775623322, -0.22019802033901215, -0.34868690371513367, 0.35655784606933594, -0.24881550669670105, -0.7723153233528137, 0.3730076253414154, -0.2593454122543335, 0.18542124330997467, 0.022237146273255348, -0.05177207663655281, -0.6192954778671265, 0.27906063199043274, -0.5326229929924011, 1.401735782623291, 0.24361750483512878, -0.8854876756668091, 0.2481643557548523, -0.5821160078048706, -0.21754154562950134, -0.4293645918369293, 0.05566735193133354, -1.1041748523712158, -0.12715989351272583, 0.24967467784881592, 0.9153156280517578, -0.3844444453716278, -0.12392008304595947, -0.59263014793396, -0.29887157678604126, 0.290784627199173, 0.15590544044971466, 1.0149191617965698, 0.21964073181152344, -0.5484406352043152, 0.21312852203845978, -0.6613139510154724, 0.22690336406230927, 0.5255662202835083, -0.27605268359184265, -0.11908356845378876, -0.47118693590164185, 0.13296827673912048, 0.3396945595741272, 0.05347931757569313, -0.557469367980957, 0.22208040952682495, -0.16049523651599884, 0.5500034689903259, 0.4292975068092346, -0.19027210772037506, 0.3764510750770569, -0.47343525290489197, 0.25799497961997986, 0.3108009994029999, 0.26014330983161926, -0.10501819103956223, -0.6204555034637451, -0.8313324451446533, -0.42991748452186584, 0.36704742908477783, 0.5242382287979126, -0.4782862663269043, 0.3711005747318268, -0.15528254210948944, -0.8585353493690491, -0.46007585525512695, 0.10084334015846252, 0.5155662894248962, 0.5222054719924927, 0.3281994163990021, -0.4998532831668854, -0.5460878014564514, -0.9571554064750671, -0.03642607107758522, 0.00603695260360837, -0.001712208497337997, 0.42475417256355286, 0.7239118218421936, -0.17960040271282196, 0.6513717174530029, -0.32913917303085327, -0.3102928102016449, -0.22754624485969543, 0.12657375633716583, 0.4118625521659851, 0.8441471457481384, 0.8119587898254395, -0.8372185230255127, -0.4608191251754761, 0.013592121191322803, -0.9572184085845947, 0.16571949422359467, -0.09369391947984695, -0.06584793329238892, 0.263897180557251, 0.21490441262722015, -0.6468992829322815, 0.7269209027290344, 0.26383039355278015, -0.21882130205631256, 0.4125809073448181, -0.09309781342744827, 0.2802029550075531, -1.2420425415039062, 0.08494392037391663, 0.5248419642448425, -0.17991523444652557, -0.38765954971313477, -0.005491186864674091, 0.0801626518368721, -0.09209682792425156, -0.6258671283721924, 0.7295206189155579, -0.5416467785835266, -0.2561143636703491, -0.17869943380355835, -0.10138894617557526, 0.0005571912624873221, 0.6353346109390259, -0.15553401410579681, 0.4870125353336334, 0.7109546065330505, -0.6097528338432312, 0.49808403849601746, 0.3500881791114807, -0.14128746092319489, 0.28459224104881287, -0.7557451128959656, 0.14210547506809235, 0.10008284449577332, 0.3074322044849396, -0.8102472424507141, -0.2710207998752594, 0.36033061146736145, -0.6452547907829285, 0.3952953815460205, -0.6181215643882751, -0.40062668919563293, -0.6448318958282471, -0.6045407056808472, 0.45957955718040466, 0.6207911372184753, -0.7089246511459351, 0.588876485824585, 0.3113521933555603, 0.3424646556377411, -0.5687503218650818, -0.8096080422401428, -0.28286632895469666, -0.49475374817848206, -0.7916522026062012, 0.48015913367271423, 0.3004978895187378, 0.07337348908185959, 0.06397764384746552, -0.16538849472999573, -0.18747180700302124, -0.1512228548526764, 0.6772059202194214, 0.369579553604126, -0.29809144139289856, -0.2459980845451355, -0.44175150990486145, -0.00727528752759099, -0.013375545851886272, -0.33169975876808167, 0.6094110608100891, -0.4364694356918335, -0.05530226230621338, -0.9900702238082886, -0.18089471757411957, 0.5451527833938599, -0.14441196620464325, 0.7954787611961365, 1.2043226957321167, -0.48256680369377136, 0.14135120809078217, -0.5059875845909119, -0.13648897409439087, -0.4925980865955353, 0.32354259490966797, -0.4893081784248352, -0.455197811126709, 0.9746110439300537, 0.0474662184715271, -0.0428585521876812, 0.6912193894386292, 0.3629586100578308, -0.07960376143455505, 0.8678180575370789, 0.5598958730697632, 0.18246620893478394, 0.6894869804382324, -0.8888862133026123, -0.23188242316246033, -0.9688107967376709, -0.6291027665138245, -0.44698697328567505, -0.47574153542518616, -0.8162542581558228, -0.41814616322517395, 0.41448140144348145, 0.22157630324363708, -0.4593319892883301, 0.5564830899238586, -0.7580089569091797, 0.10123369842767715, 0.7418062686920166, 0.6679946184158325, -0.4156443178653717, 0.2815628945827484, -0.37209033966064453, 0.0351509191095829, -0.762859046459198, -0.32459232211112976, 1.1363794803619385, 0.45567160844802856, 0.5543488264083862, -0.11012778431177139, 0.7503334283828735, -0.25059595704078674, 0.27928584814071655, -0.680731475353241, 0.6022748947143555, -0.05737210437655449, -0.391955703496933, -0.03128413110971451, -0.4725628197193146, -1.1032507419586182, 0.17743101716041565, -0.29636162519454956, -0.8503143787384033, 0.1332845687866211, 0.16881857812404633, -0.2665448784828186, 0.7615888714790344, -0.8507714867591858, 0.9648743867874146, -0.11271266639232635, -0.5480729341506958, 0.16048556566238403, -0.7328471541404724, 0.3706575036048889, 0.2025294005870819, -0.1329851597547531, -0.15838439762592316, 0.1378793567419052, 1.1238341331481934, -0.674060046672821, 0.7607482075691223, -0.4602612853050232, 0.3964381814002991, 0.5879200100898743, -0.09266269952058792, 0.3866760730743408, -0.060843147337436676, -0.22331520915031433, 0.29989323019981384, 0.08328374475240707, -0.5344657301902771, -0.5071671009063721, 0.6487742066383362, -0.9142946004867554, -0.31327250599861145, -0.38550540804862976, -0.34299054741859436, 0.20015008747577667, 0.1902676522731781, 0.5217494368553162, 0.6834492683410645, 0.2918618321418762, 0.32082346081733704, 0.5385721325874329, -0.5073518753051758, 0.5304490327835083, -0.1377377063035965, -0.28879693150520325, -0.5198859572410583, 0.9191406965255737, 0.027382664382457733, 0.006288755685091019, 0.06537964940071106, 0.23177888989448547, -0.3408718705177307, -0.6377074122428894, -0.3708539605140686, 0.3182743191719055, -0.5516470670700073, -0.47726622223854065, -0.6138870120048523, -0.42277175188064575, -0.3466319739818573, -0.08106929808855057, -0.5740785598754883, -0.29778021574020386, -0.4667208790779114, 0.33698734641075134, 0.6905593276023865, 0.5925560593605042, -0.13744854927062988, 0.6795035600662231, -0.7319181561470032, 0.21573102474212646, 0.057485125958919525, 0.46056613326072693, -0.14363090693950653, -0.7955899238586426, -0.2667958438396454, -0.011762954294681549, -0.48832225799560547, -0.6912733316421509, 0.5596314072608948, 0.09298329055309296, 0.4045068323612213, 0.32424959540367126, -0.2981243133544922, 0.8084671497344971, -0.031708214432001114, 0.6465864777565002, 0.5513831377029419, -0.6596295237541199, 0.6797540187835693, -0.22665344178676605, 0.2434857040643692, 0.09229445457458496, 0.40964072942733765, -0.18273921310901642, 0.1226581484079361, -0.8791008591651917, -0.756630003452301, 0.8236961364746094, 0.20229807496070862, -0.04308854788541794, 0.378212034702301, 0.7214387059211731, -0.10780241340398788, -0.02884279005229473, -0.8715967535972595, -0.41507819294929504, -0.4311969578266144, -0.27228137850761414, 0.1941891461610794, -0.11492318660020828, -0.019909009337425232, -0.7627592086791992, 0.7045985460281372, -0.026784662157297134, 0.7892192602157593, 0.37922027707099915, 0.03540881723165512, 0.0910027027130127, -0.45875975489616394, 0.6205319166183472, 0.26730871200561523, -0.40177100896835327, 0.026811132207512856, 0.1542714536190033, -0.7013938426971436, 0.15769007802009583, 0.07472845166921616, 0.07981441169977188, 0.0034199440851807594, 0.3305912911891937, 0.9120755195617676, -0.05642548203468323, 0.07631216198205948, 0.49937015771865845, -0.13840092718601227, -0.4992561936378479, -0.30247050523757935, 0.1424856036901474, -0.029194792732596397, 0.436934232711792, 0.41092240810394287, 0.39404386281967163, -0.09447813779115677, -0.22709380090236664, 0.24901114404201508, 0.4661053419113159, -0.29256054759025574, -0.3097802996635437, 0.7266788482666016, -0.11962947249412537, -0.22916468977928162, 0.7325314879417419, -0.15818850696086884, -0.5222320556640625, 1.1028529405593872, 0.4651198983192444, 0.8822370767593384, -0.09772111475467682, 0.07329026609659195, 0.8372650146484375, 0.27871620655059814, -0.11136938631534576, 0.26433393359184265, 0.1971374750137329, -0.7513547539710999, 0.09825850278139114, -0.554354727268219, 0.10869383066892624, 0.47432684898376465, -0.6547735929489136, 0.39996516704559326, -0.6822755336761475, -0.4982028901576996, 0.259426474571228, 0.28629788756370544, -0.9319819808006287, 0.3176230192184448, -0.14486312866210938, 0.8979729413986206, -0.5961885452270508, 0.7902947068214417, 0.8927047848701477, -0.4906097948551178, -1.1188918352127075, -0.0006173938163556159, 0.10646336525678635, -0.964142918586731, 0.6878558993339539, 0.5553005337715149, 0.019655264914035797, 0.10011381655931473, -0.8153030872344971, -0.6646861433982849, 1.3967516422271729, 0.3681459128856659, -0.050230007618665695, 0.3413589894771576, -0.15149323642253876, 0.0639578253030777, -0.5178163647651672, 0.5602168440818787, 0.21278853714466095, 0.3094555139541626, 0.2927955090999603, -0.8299148082733154, 0.25011542439460754, -0.4108209013938904, 0.2040826976299286, 0.1999102681875229, -0.886309027671814, 0.8192545175552368, -0.5651313066482544, -0.11302577704191208, 0.03813055902719498, 0.596837043762207, 0.24310381710529327, 0.3269765079021454, 0.47940441966056824, 0.7593963742256165, 0.49728864431381226, -0.24609725177288055, 0.9163566827774048, 0.029331350699067116, 0.5280147790908813, 0.5876426100730896, 0.23985153436660767, 0.6236445307731628, 0.3532688021659851, -0.20405447483062744, 0.4283462464809418, 1.2613619565963745, -0.3154144883155823, 0.2787630259990692, 0.18221762776374817, -0.03738762065768242, 0.005405078176409006, 0.08030428737401962, -0.4736519455909729, 0.7369166016578674, 0.17388798296451569, -0.5840673446655273, -0.10436945408582687, 0.06713968515396118, 0.08764637261629105, -0.3708370327949524, -0.2875397503376007, 0.4357127547264099, 0.013739828951656818, -0.3380581736564636, 1.0670068264007568, 0.2415514886379242, 0.8823046684265137, -0.25314420461654663, 0.07281175255775452, -0.2892138957977295, 0.07406990230083466, -0.45112428069114685, -0.678722620010376, 0.2845132350921631, -0.28909924626350403, -0.04031706601381302, 0.09933185577392578, 0.6931880116462708, -0.1326666623353958, -0.37054213881492615, 0.13247033953666687, 0.29101645946502686, 0.5569475889205933, 0.026818249374628067, -1.2480700016021729, 0.31521618366241455, 0.13543808460235596, -0.6415595412254333, 0.27492672204971313, 0.3175104558467865, 0.06012250855565071, 0.8656647801399231, 0.6537766456604004, -0.13845498859882355, 0.1734231859445572, -0.3197665512561798, 0.8538690805435181, -0.7254889011383057, -0.23034915328025818, -0.882360577583313, 0.6246138215065002, -0.1986272931098938, -0.6031167507171631, 0.5587911605834961, 0.7101755738258362, 0.862516462802887, 0.03272328898310661, 0.5347236394882202, -0.31577256321907043, -0.07075607031583786, -0.5228733420372009, 0.6705799698829651, -0.8519718647003174, 0.046044837683439255, -0.08701594918966293, -0.7075194716453552, -0.3926318287849426, 0.8101340532302856, -0.25170958042144775, 0.40950149297714233, 0.5820533633232117, 1.0716482400894165, -0.44658103585243225, -0.20030172169208527, 0.10662198811769485, -0.013831785880029202, -0.059129748493433, 0.3211427927017212, 0.4301318824291229, -0.9174544811248779, 0.38042840361595154, -0.5703499913215637, -0.20966920256614685, -0.245496466755867, -0.7667000889778137, -1.0510475635528564, -0.8988099694252014, -0.5295157432556152, -0.8323956727981567, -0.22681254148483276, 0.9468370676040649, 1.1779707670211792, -0.5943678021430969, -0.2146819680929184, 0.055307455360889435, 0.22661833465099335, -0.1603253185749054, -0.2291325479745865, 0.5918951630592346, -0.028898674994707108, -0.6910687685012817, -0.22608964145183563, -0.03492790460586548, 0.4720273017883301, 0.15618681907653809, -0.21551936864852905, -0.17719197273254395, -0.310896098613739, 0.32929182052612305, 0.4520697593688965, -0.6662549376487732, -0.09739778190851212, -0.24457095563411713, -0.22017429769039154, 0.41816937923431396, 0.5736251473426819, -0.48774483799934387, 0.21158307790756226, 0.22422118484973907, 0.3558826744556427, 0.959807813167572, -0.28167569637298584, 0.08231069147586823, -0.8034547567367554, 0.6532337069511414, -0.17116916179656982, 0.39591801166534424, 0.3978026807308197, -0.30774083733558655, 0.6187183856964111, 0.3985186517238617, -0.44077813625335693, -0.9116346836090088, -0.1055825799703598, -1.1424980163574219, -0.04013282433152199, 1.0352985858917236, -0.27687981724739075, -0.6150635480880737, 0.3921688497066498, 0.003620628733187914, 0.653721809387207, -0.14040197432041168, 0.457813024520874, 0.17321032285690308, -0.21130897104740143, -0.6942114233970642, -0.7626750469207764, 0.47867363691329956, 0.12408865988254547, -0.64320969581604, -0.604513943195343, -0.04600676894187927, 0.6879002451896667, 0.2232629507780075, 0.5813884139060974, -0.18441054224967957, 0.11270947754383087, 0.0700584203004837, 0.5349489450454712, -0.3863556385040283, 0.005395261105149984, -0.21946503221988678, -0.015812205150723457, -0.21786655485630035, -0.7426337003707886 ]
roberta-base-openai-detector
null
"2023-04-30T22:40:50Z"
37,113
82
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "roberta", "text-classification", "exbert", "en", "dataset:bookcorpus", "dataset:wikipedia", "arxiv:1904.09751", "arxiv:1910.09700", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:04Z"
--- language: en license: mit tags: - exbert datasets: - bookcorpus - wikipedia --- # RoBERTa Base OpenAI Detector ## Table of Contents - [Model Details](#model-details) - [Uses](#uses) - [Risks, Limitations and Biases](#risks-limitations-and-biases) - [Training](#training) - [Evaluation](#evaluation) - [Environmental Impact](#environmental-impact) - [Technical Specifications](#technical-specifications) - [Citation Information](#citation-information) - [Model Card Authors](#model-card-author) - [How To Get Started With the Model](#how-to-get-started-with-the-model) ## Model Details **Model Description:** RoBERTa base OpenAI Detector is the GPT-2 output detector model, obtained by fine-tuning a RoBERTa base model with the outputs of the 1.5B-parameter GPT-2 model. The model can be used to predict if text was generated by a GPT-2 model. This model was released by OpenAI at the same time as OpenAI released the weights of the [largest GPT-2 model](https://huggingface.co/gpt2-xl), the 1.5B parameter version. - **Developed by:** OpenAI, see [GitHub Repo](https://github.com/openai/gpt-2-output-dataset/tree/master/detector) and [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for full author list - **Model Type:** Fine-tuned transformer-based language model - **Language(s):** English - **License:** MIT - **Related Models:** [RoBERTa base](https://huggingface.co/roberta-base), [GPT-XL (1.5B parameter version)](https://huggingface.co/gpt2-xl), [GPT-Large (the 774M parameter version)](https://huggingface.co/gpt2-large), [GPT-Medium (the 355M parameter version)](https://huggingface.co/gpt2-medium) and [GPT-2 (the 124M parameter version)](https://huggingface.co/gpt2) - **Resources for more information:** - [Research Paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) (see, in particular, the section beginning on page 12 about Automated ML-based detection). - [GitHub Repo](https://github.com/openai/gpt-2-output-dataset/tree/master/detector) - [OpenAI Blog Post](https://openai.com/blog/gpt-2-1-5b-release/) - [Explore the detector model here](https://huggingface.co/openai-detector ) ## Uses #### Direct Use The model is a classifier that can be used to detect text generated by GPT-2 models. However, it is strongly suggested not to use it as a ChatGPT detector for the purposes of making grave allegations of academic misconduct against undergraduates and others, as this model might give inaccurate results in the case of ChatGPT-generated input. #### Downstream Use The model's developers have stated that they developed and released the model to help with research related to synthetic text generation, so the model could potentially be used for downstream tasks related to synthetic text generation. See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further discussion. #### Misuse and Out-of-scope Use The model should not be used to intentionally create hostile or alienating environments for people. In addition, the model developers discuss the risk of adversaries using the model to better evade detection in their [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), suggesting that using the model for evading detection or for supporting efforts to evade detection would be a misuse of the model. ## Risks, Limitations and Biases **CONTENT WARNING: Readers should be aware this section may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.** Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. #### Risks and Limitations In their [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), the model developers discuss the risk that the model may be used by bad actors to develop capabilities for evading detection, though one purpose of releasing the model is to help improve detection research. In a related [blog post](https://openai.com/blog/gpt-2-1-5b-release/), the model developers also discuss the limitations of automated methods for detecting synthetic text and the need to pair automated detection tools with other, non-automated approaches. They write: > We conducted in-house detection research and developed a detection model that has detection rates of ~95% for detecting 1.5B GPT-2-generated text. We believe this is not high enough accuracy for standalone detection and needs to be paired with metadata-based approaches, human judgment, and public education to be more effective. The model developers also [report](https://openai.com/blog/gpt-2-1-5b-release/) finding that classifying content from larger models is more difficult, suggesting that detection with automated tools like this model will be increasingly difficult as model sizes increase. The authors find that training detector models on the outputs of larger models can improve accuracy and robustness. #### Bias Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by RoBERTa base and GPT-2 1.5B (which this model is built/fine-tuned on) can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups (see the [RoBERTa base](https://huggingface.co/roberta-base) and [GPT-2 XL](https://huggingface.co/gpt2-xl) model cards for more information). The developers of this model discuss these issues further in their [paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf). ## Training #### Training Data The model is a sequence classifier based on RoBERTa base (see the [RoBERTa base model card](https://huggingface.co/roberta-base) for more details on the RoBERTa base training data) and then fine-tuned using the outputs of the 1.5B GPT-2 model (available [here](https://github.com/openai/gpt-2-output-dataset)). #### Training Procedure The model developers write that: > We based a sequence classifier on RoBERTaBASE (125 million parameters) and fine-tuned it to classify the outputs from the 1.5B GPT-2 model versus WebText, the dataset we used to train the GPT-2 model. They later state: > To develop a robust detector model that can accurately classify generated texts regardless of the sampling method, we performed an analysis of the model’s transfer performance. See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further details on the training procedure. ## Evaluation The following evaluation information is extracted from the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf). #### Testing Data, Factors and Metrics The model is intended to be used for detecting text generated by GPT-2 models, so the model developers test the model on text datasets, measuring accuracy by: > testing 510-token test examples comprised of 5,000 samples from the WebText dataset and 5,000 samples generated by a GPT-2 model, which were not used during the training. #### Results The model developers [find](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf): > Our classifier is able to detect 1.5 billion parameter GPT-2-generated text with approximately 95% accuracy...The model’s accuracy depends on sampling methods used when generating outputs, like temperature, Top-K, and nucleus sampling ([Holtzman et al., 2019](https://arxiv.org/abs/1904.09751). Nucleus sampling outputs proved most difficult to correctly classify, but a detector trained using nucleus sampling transfers well across other sampling methods. As seen in Figure 1 [in the paper], we found consistently high accuracy when trained on nucleus sampling. See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf), Figure 1 (on page 14) and Figure 2 (on page 16) for full results. ## Environmental Impact Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). - **Hardware Type:** Unknown - **Hours used:** Unknown - **Cloud Provider:** Unknown - **Compute Region:** Unknown - **Carbon Emitted:** Unknown ## Technical Specifications The model developers write that: See the [associated paper](https://d4mucfpksywv.cloudfront.net/papers/GPT_2_Report.pdf) for further details on the modeling architecture and training details. ## Citation Information ```bibtex @article{solaiman2019release, title={Release strategies and the social impacts of language models}, author={Solaiman, Irene and Brundage, Miles and Clark, Jack and Askell, Amanda and Herbert-Voss, Ariel and Wu, Jeff and Radford, Alec and Krueger, Gretchen and Kim, Jong Wook and Kreps, Sarah and others}, journal={arXiv preprint arXiv:1908.09203}, year={2019} } ``` APA: - Solaiman, I., Brundage, M., Clark, J., Askell, A., Herbert-Voss, A., Wu, J., ... & Wang, J. (2019). Release strategies and the social impacts of language models. arXiv preprint arXiv:1908.09203. ## Model Card Authors This model card was written by the team at Hugging Face. ## How to Get Started with the Model This model can be instantiated and run with a Transformers pipeline: ```python from transformers import pipeline pipe = pipeline("text-classification", model="roberta-base-openai-detector") print(pipe("Hello world! Is this content AI-generated?")) # [{'label': 'Real', 'score': 0.8036582469940186}] ```
[ -0.24684733152389526, -0.7889535427093506, 0.45816075801849365, -0.21080811321735382, -0.31029757857322693, -0.453159362077713, -0.22783511877059937, -0.7928855419158936, -0.43399855494499207, 0.358490914106369, -0.2511913776397705, -0.35235798358917236, -0.9157330393791199, -0.11081770807504654, -0.4209126830101013, 1.2679131031036377, -0.15121592581272125, -0.11780846118927002, 0.17079070210456848, 0.23956984281539917, -0.37701889872550964, -0.6544910073280334, -0.7908667325973511, -0.11244899034500122, 0.16266025602817535, 0.01648539863526821, 0.49427077174186707, 0.4389730393886566, 0.45135554671287537, 0.20509357750415802, -0.11837556958198547, 0.005577717442065477, -0.4502602517604828, -0.18916457891464233, -0.05232272669672966, -0.3994138538837433, -0.45646360516548157, 0.3069332242012024, 0.5148414373397827, -0.010732170194387436, 0.12307596206665039, -0.021268168464303017, 0.11153166741132736, 0.39684972167015076, -0.3427799344062805, 0.2445663958787918, -0.518962562084198, -0.22646743059158325, -0.3864642381668091, 0.08365775644779205, -0.6637097001075745, -0.065191350877285, 0.17197661101818085, -0.42866799235343933, 0.5041692852973938, -0.2553323805332184, 1.0573173761367798, 0.10629954934120178, -0.5303901433944702, -0.4362858235836029, -0.8084186911582947, 0.6827530860900879, -0.6399458050727844, 0.15521298348903656, 0.5489941835403442, 0.3217795789241791, 0.0458710715174675, -0.8347501158714294, -0.6325964331626892, -0.21551182866096497, -0.2461695373058319, 0.35807597637176514, -0.42802736163139343, -0.10980850458145142, 0.37279659509658813, 0.35874831676483154, -1.0105596780776978, 0.05321470648050308, -0.35111358761787415, -0.308453768491745, 0.5188007354736328, -0.15076598525047302, 0.36439695954322815, -0.24821338057518005, -0.3397258520126343, -0.2500016987323761, -0.4891122877597809, -0.08866497874259949, 0.6077796816825867, 0.25144442915916443, -0.31147709488868713, 0.415627121925354, 0.0512470118701458, 0.43873605132102966, -0.1623806357383728, 0.05689762905240059, 0.20727522671222687, -0.6415796279907227, -0.05907248705625534, -0.27338019013404846, 0.9357559084892273, 0.16025610268115997, 0.3136996030807495, 0.008569885045289993, -0.22997771203517914, 0.25912994146347046, 0.1658189594745636, -1.030237078666687, -0.44314202666282654, 0.1992308646440506, -0.4094380736351013, -0.44932350516319275, 0.2791615128517151, -0.7432094812393188, 0.04811519384384155, -0.09240483492612839, 0.3943091034889221, -0.40191450715065, -0.4879937767982483, -0.07121185213327408, -0.2736079692840576, 0.19018003344535828, 0.14006328582763672, -0.8949795365333557, 0.24173569679260254, 0.6690592765808105, 0.8856446146965027, -0.07484129816293716, 0.023434406146407127, -0.24141494929790497, -0.10348992794752121, -0.09791217744350433, 0.7888599038124084, -0.1877412050962448, -0.34002578258514404, -0.18709169328212738, 0.056803565472364426, 0.04718300700187683, -0.22522766888141632, 0.651678740978241, -0.37593862414360046, 0.738767147064209, -0.17362482845783234, -0.4556260406970978, -0.12402797490358353, -0.018054665997624397, -0.5389751195907593, 1.077162265777588, 0.45555517077445984, -0.7542533278465271, 0.2712486684322357, -0.5694881081581116, -0.30564963817596436, -0.06094084680080414, 0.11889007687568665, -0.6520395874977112, -0.20546883344650269, 0.18549096584320068, 0.11518577486276627, -0.3539707064628601, 0.392535001039505, 0.009864657185971737, -0.4032576084136963, 0.1428813636302948, -0.6318814158439636, 0.9811781048774719, 0.4246063828468323, -0.5444745421409607, -0.07205710560083389, -0.42199060320854187, 0.09653317183256149, 0.2534676492214203, -0.290875643491745, -0.06609278917312622, -0.1091265007853508, 0.4687716066837311, 0.20766746997833252, 0.0825008749961853, -0.39275750517845154, 0.062226638197898865, -0.32805806398391724, 0.4470958709716797, 0.6238818764686584, -0.08733401447534561, 0.3843269348144531, -0.26916560530662537, 0.4114615023136139, -0.028357842937111855, 0.18052466213703156, -0.14055179059505463, -0.9232540726661682, -0.5592934489250183, -0.18825054168701172, 0.510630190372467, 0.7466373443603516, -0.6197748184204102, 0.6290474534034729, -0.2055029273033142, -0.6294131278991699, -0.11916894465684891, -0.16884981095790863, 0.7139949202537537, 0.3252262771129608, 0.43897801637649536, -0.3998320996761322, -0.6248182058334351, -0.6690672636032104, -0.23895041644573212, -0.3782407343387604, -0.16283664107322693, 0.1560869961977005, 0.7773797512054443, -0.14452116191387177, 0.8672378659248352, -0.4720471203327179, -0.29622966051101685, -0.3188150227069855, 0.2926537096500397, -0.04144361615180969, 0.5534272789955139, 0.6866462230682373, -0.9611831903457642, -0.5851346850395203, -0.21451537311077118, -0.7916073203086853, -0.083091139793396, 0.07959805428981781, -0.026550207287073135, 0.6026667356491089, 0.20246127247810364, -0.6612784266471863, 0.48992323875427246, 0.4106028378009796, -0.4491621255874634, 0.4620450437068939, 0.009250233881175518, 0.0012817495735362172, -1.1869362592697144, 0.19498080015182495, 0.329181432723999, -0.15425194799900055, -0.9775598645210266, 0.15315544605255127, 0.02175021730363369, -0.029141396284103394, -0.39291492104530334, 0.6419017314910889, -0.3273611068725586, -0.000003858639502141159, -0.4245031177997589, 0.010273628868162632, -0.10391474515199661, 0.4967389702796936, 0.177798330783844, 1.0529532432556152, 0.21860165894031525, -0.4608541429042816, 0.04482011869549751, 0.24940089881420135, -0.2973872423171997, 0.3549005687236786, -0.7376068830490112, 0.3894835114479065, -0.03635554760694504, 0.5034248232841492, -0.9811069369316101, -0.24345721304416656, 0.6271664500236511, -0.8696601986885071, 0.5029338002204895, -0.4520990550518036, -0.6294165849685669, -0.39678192138671875, -0.14854399859905243, 0.3070615231990814, 0.9014148712158203, -0.3473401367664337, 0.2879922091960907, 0.3632010519504547, -0.011200136505067348, -0.3264867067337036, -0.9346803426742554, -0.006760888732969761, -0.14071379601955414, -0.611255943775177, 0.3405781090259552, 0.05029742047190666, -0.05638943985104561, -0.004215491935610771, 0.13476458191871643, -0.17016826570034027, 0.04693009704351425, 0.16194063425064087, 0.26040521264076233, -0.2349654734134674, 0.12211455404758453, -0.11408472806215286, -0.4367065131664276, 0.0007311449153348804, -0.5131252408027649, 0.5679018497467041, -0.0898839682340622, -0.07337179034948349, -0.5089658498764038, 0.28769657015800476, 0.1801934391260147, -0.1679769903421402, 0.5982024669647217, 1.0101429224014282, -0.4629216492176056, 0.1507164090871811, -0.30347299575805664, -0.2867650091648102, -0.40683814883232117, 0.5132538676261902, -0.28753459453582764, -0.7926925420761108, 0.3422301411628723, 0.4460332691669464, -0.22524632513523102, 0.802501916885376, 0.6648715734481812, 0.2243797928094864, 1.034320592880249, 0.5530964732170105, -0.13668622076511383, 0.5114915370941162, -0.3345247209072113, 0.3461892008781433, -0.9837510585784912, -0.04518188536167145, -0.6752307415008545, -0.007144658360630274, -0.8647590279579163, -0.357115238904953, 0.1938764750957489, 0.1341095268726349, -0.3229072093963623, 0.5468232035636902, -0.6910828948020935, 0.26901015639305115, 0.6071485280990601, 0.221371591091156, 0.21556714177131653, 0.08891193568706512, 0.28014707565307617, 0.026315808296203613, -0.3817445635795593, -0.680700421333313, 1.4357328414916992, 0.5217286348342896, 0.2643953263759613, 0.3994310796260834, 0.3602854013442993, 0.18883104622364044, 0.3747584819793701, -0.6614716649055481, 0.35467639565467834, -0.33664554357528687, -0.8318922519683838, -0.2632560431957245, -0.44487878680229187, -0.886674165725708, 0.11790193617343903, 0.13125449419021606, -0.8274762630462646, 0.09578105807304382, 0.07500910013914108, 0.006950197275727987, 0.35104289650917053, -0.7663138508796692, 0.8651461601257324, -0.07147624343633652, -0.21446381509304047, 0.04784240201115608, -0.5783981680870056, 0.5265106558799744, -0.10978733748197556, -0.03320838138461113, 0.04924649000167847, 0.1280788630247116, 0.732184886932373, -0.4393725097179413, 0.7933355569839478, -0.381032794713974, -0.12735071778297424, 0.6350914239883423, -0.17275269329547882, 0.6890568137168884, -0.08854930847883224, 0.013801510445773602, 0.3526538610458374, -0.1831146776676178, -0.31251081824302673, -0.2618691027164459, 0.4419127404689789, -0.8395254611968994, -0.3493179380893707, -0.6841506958007812, -0.4029131233692169, 0.2030283808708191, 0.21208462119102478, 0.8134853839874268, 0.44810056686401367, -0.07518359273672104, 0.03735143691301346, 0.6649488210678101, -0.22397568821907043, 0.19525589048862457, 0.3505348265171051, -0.1321306824684143, -0.25249558687210083, 0.7568414211273193, 0.09176010638475418, 0.31792959570884705, 0.28646841645240784, 0.1507146954536438, -0.44751304388046265, -0.6939007043838501, -0.48846668004989624, 0.09631258994340897, -0.6881082057952881, -0.16206128895282745, -0.7586814761161804, -0.3779994547367096, -0.6490799188613892, 0.32770729064941406, -0.17065156996250153, -0.362239807844162, -0.43577882647514343, -0.14030461013317108, 0.44669997692108154, 0.6150786280632019, 0.019218120723962784, 0.42478370666503906, -0.4702431261539459, 0.32546553015708923, 0.147366464138031, 0.32002022862434387, -0.16646522283554077, -0.8919394016265869, 0.01951117068529129, 0.3105449676513672, -0.40490105748176575, -0.7598747611045837, 0.34111639857292175, -0.002539099659770727, 0.3645913302898407, 0.04743531346321106, -0.11670615524053574, 0.1704951375722885, -0.1434379369020462, 1.0152244567871094, -0.12374797463417053, -0.8469529151916504, 0.7289217114448547, -0.5706023573875427, 0.11179038882255554, 0.33831077814102173, 0.33698800206184387, -0.37953487038612366, -0.3176710605621338, -0.6238277554512024, -0.7609395980834961, 0.8555302023887634, 0.5447388291358948, 0.162489652633667, -0.05287233740091324, 0.40426403284072876, -0.1556319147348404, -0.09286277741193771, -0.8790199160575867, -0.13097785413265228, -0.27636146545410156, -0.3025449216365814, -0.1464565396308899, -0.49145105481147766, 0.05634741857647896, -0.06519029289484024, 0.8259613513946533, -0.0403837151825428, 0.867883026599884, 0.2681024670600891, -0.18786044418811798, -0.06595122814178467, 0.16671977937221527, 0.7619332671165466, 0.25826942920684814, -0.18501320481300354, -0.08680559694766998, -0.09838876873254776, -0.8092417120933533, 0.09646085649728775, 0.2564891576766968, -0.4989781081676483, -0.05432261899113655, 0.347450315952301, 0.8877753019332886, -0.15238536894321442, -0.31764891743659973, 0.629270076751709, -0.0647122785449028, -0.3918144702911377, -0.4566597640514374, 0.14468589425086975, -0.19780419766902924, 0.03313219174742699, 0.27774569392204285, 0.15498457849025726, 0.2716352939605713, -0.6652892827987671, 0.314372718334198, 0.40386414527893066, -0.3795040249824524, -0.344036728143692, 0.8106389045715332, 0.0017968649044632912, -0.2017199993133545, 0.7389076352119446, -0.4766741096973419, -0.7441102862358093, 0.8007867336273193, 0.6872270107269287, 0.9408791065216064, -0.11520297080278397, 0.23307092487812042, 0.5555769205093384, 0.45076578855514526, -0.29521358013153076, 0.1280609667301178, 0.21023443341255188, -0.7187927961349487, -0.19740326702594757, -0.3669527769088745, -0.19383780658245087, 0.3679399788379669, -0.5659652948379517, 0.2799201011657715, -0.4107162654399872, -0.2058584988117218, -0.05074235051870346, 0.14682553708553314, -0.519769549369812, 0.16220255196094513, 0.1302206814289093, 0.7540802955627441, -0.9406947493553162, 0.9146272540092468, 0.32707706093788147, -0.6283368468284607, -0.8040333986282349, 0.18586215376853943, 0.3361740708351135, -0.49088865518569946, 0.4132477641105652, 0.3586514890193939, 0.2599720060825348, 0.006628031376749277, -0.5117408037185669, -0.7407364249229431, 1.142253041267395, -0.008199179545044899, -0.31783750653266907, 0.08827012777328491, 0.13178019225597382, 0.7859940528869629, -0.17524471879005432, 0.6007683277130127, 0.5643913149833679, 0.6347647309303284, 0.030944006517529488, -0.8732109069824219, 0.31211137771606445, -0.38227254152297974, 0.2141200751066208, 0.2803041636943817, -0.6550822854042053, 1.0834203958511353, 0.015133525244891644, -0.3710783123970032, 0.4309921860694885, 0.41427308320999146, 0.10698392987251282, 0.3390094041824341, 0.1839110553264618, 0.6845499277114868, 0.6554297208786011, -0.5040860176086426, 1.3854236602783203, 0.02455710619688034, 0.5101600289344788, 1.0388270616531372, -0.11232656985521317, 0.729736328125, 0.0013108993880450726, -0.3796735405921936, 0.42830997705459595, 0.6123982667922974, -0.3864351809024811, 0.6167669296264648, 0.021191999316215515, -0.10188595205545425, 0.21436886489391327, 0.11551853269338608, -0.5356981754302979, 0.39340588450431824, 0.29208824038505554, -0.5114812850952148, -0.11981423944234848, -0.047617796808481216, 0.2343938797712326, -0.03180934116244316, 0.08241686224937439, 0.6592027544975281, -0.08907962590456009, -0.7739245295524597, 0.45280706882476807, 0.3083416521549225, 0.7446818947792053, -0.5546205639839172, 0.06268836557865143, -0.09405619651079178, 0.3061487078666687, -0.08795899152755737, -0.8106087446212769, 0.4299095869064331, 0.27477192878723145, -0.19273965060710907, -0.09918082505464554, 0.84637850522995, -0.399753212928772, -0.3691617250442505, 0.2009238451719284, 0.26231107115745544, 0.37038612365722656, -0.36107537150382996, -0.6239988207817078, -0.024395396932959557, 0.11193570494651794, -0.34894728660583496, 0.4267452657222748, 0.23524577915668488, -0.18517126142978668, 0.2852073311805725, 0.8685482740402222, -0.13558506965637207, -0.1275610625743866, 0.03485874459147453, 0.6160187721252441, -0.33726373314857483, -0.3600635826587677, -0.7085132598876953, 0.605687141418457, -0.07826460152864456, -0.46119382977485657, 0.6203796863555908, 0.7144839763641357, 0.9942343235015869, -0.04441449046134949, 1.0588455200195312, -0.3117873966693878, 0.4770532250404358, -0.632551372051239, 0.6251001358032227, -0.2215120643377304, 0.23586857318878174, -0.1798078566789627, -0.9463937282562256, -0.17071256041526794, 0.653649091720581, -0.3639289140701294, 0.4546002149581909, 0.7306994795799255, 0.7851394414901733, -0.036077357828617096, 0.16557566821575165, -0.0223897323012352, 0.1890413612127304, 0.6102673411369324, 0.7292638421058655, 0.4064137041568756, -1.0168811082839966, 0.5930508971214294, -0.2190759927034378, -0.32277190685272217, -0.17916427552700043, -0.6404116153717041, -0.8606185913085938, -0.6342925429344177, -0.3243759572505951, -0.565331757068634, 0.16460001468658447, 0.4073662757873535, 0.5879828333854675, -0.834206759929657, 0.07996911555528641, -0.45180317759513855, -0.1676301807165146, -0.10195337235927582, -0.2903697192668915, 0.36875176429748535, -0.09095525741577148, -0.8551798462867737, 0.059643570333719254, -0.11839542537927628, 0.40020501613616943, -0.1343582719564438, -0.17841500043869019, -0.15549324452877045, -0.1985655426979065, 0.42192813754081726, 0.22162391245365143, -0.727134644985199, -0.4439418315887451, -0.16595417261123657, -0.3619939684867859, -0.04573512077331543, 0.5998564958572388, -0.5896357893943787, 0.2260180115699768, 0.5419203639030457, 0.2666827440261841, 0.7122750878334045, -0.027934323996305466, 0.39498773217201233, -0.575904369354248, 0.2924689054489136, 0.09577205777168274, 0.16665537655353546, 0.2410445362329483, -0.7192702293395996, 0.863232433795929, 0.47158724069595337, -0.6176161766052246, -0.7639889121055603, 0.3215390145778656, -0.9561578035354614, -0.3021170198917389, 1.3140100240707397, -0.23976488411426544, -0.005585677456110716, -0.07928891479969025, -0.17134594917297363, 0.5104855895042419, -0.3253483474254608, 0.4991779327392578, 0.7167991995811462, 0.17483504116535187, -0.2738165259361267, -0.8036456108093262, 0.5766808986663818, 0.10772265493869781, -0.8733548521995544, -0.039037369191646576, 0.3398585617542267, 0.4659987986087799, 0.19674846529960632, 0.7289881110191345, -0.38616320490837097, 0.3003692924976349, 0.1417131870985031, 0.00035664133611135185, -0.15308065712451935, -0.2221977561712265, -0.43366312980651855, -0.1143413782119751, -0.21151849627494812, -0.005363226868212223 ]
google/t5-v1_1-xxl
google
"2023-01-24T16:52:41Z"
37,066
23
transformers
[ "transformers", "pytorch", "tf", "t5", "text2text-generation", "en", "dataset:c4", "arxiv:2002.05202", "arxiv:1910.10683", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: en datasets: - c4 license: apache-2.0 --- [Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) Version 1.1 ## Version 1.1 [T5 Version 1.1](https://github.com/google-research/text-to-text-transfer-transformer/blob/master/released_checkpoints.md#t511) includes the following improvements compared to the original T5 model- GEGLU activation in feed-forward hidden layer, rather than ReLU - see [here](https://arxiv.org/abs/2002.05202). - Dropout was turned off in pre-training (quality win). Dropout should be re-enabled during fine-tuning. - Pre-trained on C4 only without mixing in the downstream tasks. - no parameter sharing between embedding and classifier layer - "xl" and "xxl" replace "3B" and "11B". The model shapes are a bit different - larger `d_model` and smaller `num_heads` and `d_ff`. **Note**: T5 Version 1.1 was only pre-trained on C4 excluding any supervised training. Therefore, this model has to be fine-tuned before it is useable on a downstream task. Pretraining Dataset: [C4](https://huggingface.co/datasets/c4) Other Community Checkpoints: [here](https://huggingface.co/models?search=t5-v1_1) Paper: [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://arxiv.org/pdf/1910.10683.pdf) Authors: *Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, Peter J. Liu* ## Abstract Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new “Colossal Clean Crawled Corpus”, we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our dataset, pre-trained models, and code. ![model image](https://camo.githubusercontent.com/623b4dea0b653f2ad3f36c71ebfe749a677ac0a1/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f343030362f312a44304a31674e51663876727255704b657944387750412e706e67)
[ -0.2746664583683014, -0.34255164861679077, 0.3779716491699219, 0.20183885097503662, -0.19887511432170868, 0.13384810090065002, -0.22841110825538635, -0.6767667531967163, -0.15885072946548462, 0.42784780263900757, -0.6730371117591858, -0.5576782822608948, -0.894743025302887, 0.1923360675573349, -0.6176161766052246, 1.2409863471984863, -0.18141978979110718, -0.1839776635169983, 0.014884358271956444, -0.0401398167014122, -0.3404117822647095, -0.41452276706695557, -0.8174301981925964, -0.34517112374305725, 0.36521029472351074, 0.35681378841400146, 0.26177728176116943, 0.3513028919696808, 0.6849417686462402, 0.16564133763313293, -0.009006515145301819, -0.08205189555883408, -0.6400116682052612, -0.3711881935596466, -0.33821752667427063, -0.18408344686031342, -0.4639831781387329, 0.08950972557067871, 0.5774815082550049, 0.6909322142601013, 0.02664804831147194, 0.24141818284988403, 0.3248487710952759, 0.5743211507797241, -0.6731488704681396, 0.1803939938545227, -0.5783959627151489, 0.1937676966190338, -0.0976657047867775, 0.011003667488694191, -0.6442661881446838, -0.192438006401062, 0.501822829246521, -0.7218019366264343, 0.3252144157886505, -0.11378425359725952, 1.170638918876648, 0.3496157228946686, -0.4800672233104706, -0.24383755028247833, -0.6201604008674622, 0.847566545009613, -0.575876772403717, 0.36595940589904785, 0.11928780376911163, 0.3624584674835205, 0.14807918667793274, -1.142246961593628, -0.43536412715911865, -0.029218193143606186, -0.1144585832953453, 0.0546424463391304, -0.2765412926673889, -0.04584095627069473, 0.0987081229686737, 0.46029090881347656, -0.45179298520088196, 0.2042512148618698, -0.6389026045799255, -0.2488410323858261, 0.4688999652862549, -0.23046402633190155, 0.30130672454833984, 0.015026319772005081, -0.6269753575325012, -0.2443385124206543, -0.5171234011650085, 0.10073486715555191, -0.2127019464969635, 0.311946839094162, -0.3283933699131012, -0.0896335318684578, -0.01981237716972828, 0.619367778301239, 0.14313770830631256, -0.06021798029541969, 0.3385935127735138, -0.6116040349006653, -0.2223670780658722, -0.20044587552547455, 0.8382905721664429, 0.17344734072685242, 0.2756044864654541, -0.4117012023925781, -0.02041323482990265, -0.2712147533893585, 0.41186198592185974, -0.931695282459259, -0.4276110827922821, -0.07683539390563965, -0.3573091924190521, -0.4866149425506592, 0.09763073921203613, -0.5841730237007141, -0.05208464711904526, -0.24136286973953247, 0.5245833992958069, -0.5491039156913757, -0.2607119381427765, 0.33567461371421814, 0.03462306782603264, 0.41009512543678284, 0.5190105438232422, -1.001741886138916, 0.4519195556640625, 0.4605252146720886, 0.8040346503257751, -0.5713713765144348, -0.32474401593208313, -0.5333512425422668, -0.006550726480782032, -0.129886195063591, 0.7777033448219299, -0.3089998662471771, -0.22401385009288788, -0.08197953552007675, 0.1648276001214981, -0.24283467233181, -0.29643574357032776, 0.7674798369407654, -0.39854344725608826, 0.5515822172164917, -0.2635755240917206, -0.4395938515663147, -0.4975503385066986, 0.16336479783058167, -0.6530331969261169, 0.9645160436630249, 0.17288872599601746, -0.5686081647872925, 0.4526892602443695, -0.8360303044319153, -0.42413806915283203, -0.16842277348041534, 0.3504658043384552, -0.39230409264564514, -0.2222277820110321, 0.3217792510986328, 0.5478341579437256, -0.09766208380460739, 0.06615342199802399, -0.21996095776557922, -0.2717979848384857, -0.16127341985702515, -0.05726553499698639, 0.8686596751213074, 0.2846091687679291, -0.2986242175102234, 0.05152878910303116, -0.6012498140335083, 0.17628519237041473, -0.014527378603816032, -0.29575157165527344, 0.1305927336215973, -0.2854067385196686, 0.14587298035621643, 0.4049917459487915, 0.2751328945159912, -0.3183443248271942, 0.2547062635421753, -0.2487865537405014, 0.512561023235321, 0.5144165754318237, -0.1850847601890564, 0.8385713696479797, -0.40614017844200134, 0.48845893144607544, 0.05258612707257271, 0.059584539383649826, -0.15136376023292542, -0.2135104387998581, -0.7137653827667236, -0.11335525661706924, 0.6449404954910278, 0.68507981300354, -0.6527454853057861, 0.5495952367782593, -0.5364781618118286, -0.5038848519325256, -0.5817161202430725, 0.0791093036532402, 0.3576180636882782, 0.6108911037445068, 0.7289644479751587, -0.24678975343704224, -0.5459223985671997, -0.5250920057296753, -0.2626032829284668, 0.05456584319472313, -0.08634459227323532, -0.028086166828870773, 0.4624011218547821, -0.20183657109737396, 0.7451366186141968, -0.29753291606903076, -0.5260266661643982, -0.5697383284568787, 0.17354778945446014, -0.05219433829188347, 0.5871658325195312, 0.667478084564209, -0.5784959197044373, -0.5167707204818726, 0.08969396352767944, -0.7507479190826416, -0.1710144579410553, -0.15359154343605042, -0.08679671585559845, 0.3079793453216553, 0.5642722249031067, -0.25057870149612427, 0.3039942979812622, 0.8031733632087708, -0.23472613096237183, 0.3463347256183624, -0.13511693477630615, 0.014819402247667313, -1.5022482872009277, 0.37521034479141235, 0.043856967240571976, -0.4869706630706787, -0.7164911031723022, -0.011566486209630966, 0.2613939046859741, 0.08141908049583435, -0.5525711178779602, 0.595017671585083, -0.47116124629974365, 0.07099130004644394, -0.2538606524467468, 0.17791901528835297, -0.0064976830035448074, 0.5039047002792358, -0.11195390671491623, 0.7697083950042725, 0.459952712059021, -0.7739450335502625, -0.07777272909879684, 0.41265496611595154, -0.19235607981681824, 0.12654870748519897, -0.5765924453735352, 0.4094197750091553, 0.006101067177951336, 0.4408433735370636, -0.8409866094589233, 0.2565719783306122, 0.39572688937187195, -0.5661594271659851, 0.5461577773094177, -0.12364218384027481, -0.19500920176506042, -0.19099275767803192, -0.34136223793029785, 0.27450886368751526, 0.6255794167518616, -0.6032735705375671, 0.5127821564674377, 0.1361827850341797, 0.023189853876829147, -0.6645083427429199, -0.7141804695129395, 0.18931971490383148, -0.24878323078155518, -0.6112525463104248, 0.8178536295890808, 0.016819270327687263, 0.2339707911014557, -0.05469681695103645, -0.07779325544834137, -0.27130213379859924, 0.21281498670578003, -0.1521526575088501, 0.25528573989868164, -0.028269026428461075, 0.09901732206344604, 0.13689114153385162, -0.2729147970676422, -0.03612759709358215, -0.44491079449653625, 0.2814996838569641, -0.13163453340530396, 0.20145468413829803, -0.5207415223121643, 0.013129176571965218, 0.299549400806427, -0.2565110921859741, 0.7081665396690369, 0.8870229721069336, -0.24066494405269623, -0.29913991689682007, -0.26193976402282715, -0.2017044723033905, -0.4404798746109009, 0.411477655172348, -0.48130208253860474, -0.9711443781852722, 0.39653587341308594, -0.21825473010540009, 0.29255151748657227, 0.6669719815254211, 0.08375250548124313, -0.03725311905145645, 0.6246115565299988, 1.0498114824295044, -0.32158321142196655, 0.6379109621047974, -0.4296950101852417, 0.2631191909313202, -0.8588457107543945, -0.15384909510612488, -0.6483446359634399, -0.2846679985523224, -0.6174992918968201, -0.27564021944999695, 0.04672475531697273, 0.2464829534292221, -0.175690695643425, 0.513762354850769, -0.37184804677963257, 0.3454565703868866, 0.18932771682739258, 0.15707096457481384, 0.38043561577796936, 0.09289566427469254, 0.03522634506225586, -0.18397819995880127, -0.7516732215881348, -0.47799283266067505, 1.1741437911987305, 0.30518269538879395, 0.4927237331867218, 0.08641795068979263, 0.6222713589668274, 0.4177001118659973, 0.4214675724506378, -0.7146959900856018, 0.43242147564888, -0.44088613986968994, -0.2658335864543915, -0.3450288474559784, -0.44114500284194946, -1.1094552278518677, 0.2878829836845398, -0.474797785282135, -0.6936352849006653, -0.13413646817207336, 0.014489015564322472, -0.11256864666938782, 0.480389267206192, -0.7739064693450928, 0.9981063604354858, 0.061993684619665146, -0.19394603371620178, -0.010931451804935932, -0.7336832284927368, 0.24593189358711243, -0.1347678005695343, -0.04378516599535942, 0.09463556855916977, -0.06321214139461517, 0.7063307166099548, -0.2118816375732422, 0.6513983011245728, -0.11729979515075684, -0.08309251070022583, 0.005327233113348484, 0.002725534839555621, 0.5073617100715637, -0.3804994523525238, -0.0016551646403968334, 0.31315961480140686, -0.019302232190966606, -0.5403915643692017, -0.47334590554237366, 0.4186639189720154, -0.7680509090423584, -0.3033757209777832, -0.2929275631904602, -0.2704566717147827, -0.059446513652801514, 0.3324589133262634, 0.4496270716190338, 0.17382249236106873, -0.2028842717409134, 0.33690106868743896, 0.6880002021789551, -0.1448337584733963, 0.5607861876487732, 0.33972853422164917, -0.2712525427341461, -0.07708964496850967, 0.676024317741394, -0.002261715242639184, 0.4780120551586151, 0.5922874808311462, 0.09665754437446594, -0.35726115107536316, -0.7502175569534302, -0.4761490225791931, 0.1918611228466034, -0.6040492653846741, -0.12663380801677704, -0.7756751775741577, -0.39489156007766724, -0.5759081244468689, -0.12929220497608185, -0.4430856704711914, -0.2796810269355774, -0.4866340756416321, -0.24668316543102264, 0.13936324417591095, 0.649810791015625, 0.1239219456911087, 0.2161107063293457, -1.0174837112426758, 0.10832616686820984, 0.06012488529086113, 0.22329047322273254, -0.040743742138147354, -0.9630641341209412, -0.148126482963562, 0.024891139939427376, -0.3651663362979889, -0.6494982838630676, 0.4617886245250702, 0.3883829712867737, 0.3782280385494232, 0.15763789415359497, 0.08050395548343658, 0.4982292950153351, -0.3671220541000366, 0.745445966720581, 0.21522586047649384, -1.1394487619400024, 0.3855205178260803, -0.29737213253974915, 0.3796030879020691, 0.7470733523368835, 0.5336942076683044, -0.44150030612945557, -0.10209203511476517, -0.6619945168495178, -0.6411149501800537, 0.75786954164505, 0.16982652246952057, -0.06478948146104813, 0.476702481508255, 0.29294076561927795, 0.340541809797287, -0.05331963673233986, -0.8849848508834839, -0.13836342096328735, -0.1466684192419052, -0.1960306614637375, -0.1452459841966629, 0.09725437313318253, 0.39527949690818787, -0.366279661655426, 0.5652655959129333, -0.19237159192562103, 0.3060741424560547, 0.3166579008102417, -0.48989108204841614, 0.17440800368785858, 0.2320351004600525, 0.5520017147064209, 0.7423883676528931, -0.2331922948360443, -0.08226015418767929, 0.45793789625167847, -0.6265367269515991, -0.037692658603191376, 0.20167690515518188, -0.13590262830257416, -0.07411670684814453, 0.4239028990268707, 0.8101922869682312, 0.3121393918991089, -0.23864366114139557, 0.5530511736869812, -0.1325984001159668, -0.6199730634689331, -0.141922265291214, 0.06234263628721237, -0.10088230669498444, -0.07258143275976181, 0.3464009165763855, 0.24546684324741364, 0.2992175817489624, -0.4178845286369324, 0.11867984384298325, 0.06586755812168121, -0.48582956194877625, -0.511099100112915, 0.6022943258285522, 0.3827546536922455, -0.14464057981967926, 0.7469089031219482, -0.2492179274559021, -0.5434276461601257, 0.37950873374938965, 0.5500972867012024, 0.9872977137565613, -0.0935085117816925, 0.332470566034317, 0.5845198035240173, 0.34368717670440674, -0.1469333916902542, -0.10371381789445877, -0.23073160648345947, -0.7800992727279663, -0.8059787750244141, -0.42913126945495605, -0.45893198251724243, 0.14295697212219238, -0.6484293937683105, 0.44183674454689026, -0.31611165404319763, 0.19386589527130127, -0.007921447977423668, 0.1844579428434372, -0.7932377457618713, 0.1995217651128769, 0.14739990234375, 0.9142239093780518, -0.7422576546669006, 1.013621211051941, 0.68312668800354, -0.2831066846847534, -0.8300237059593201, 0.04710697382688522, -0.3157660663127899, -0.6010847091674805, 0.4129927158355713, 0.2889903485774994, -0.16263368725776672, 0.2157280594110489, -0.6468499898910522, -0.9183996915817261, 1.266229271888733, 0.46389058232307434, -0.33178970217704773, -0.27339816093444824, 0.08009224385023117, 0.49716001749038696, -0.3069401979446411, 0.1721503883600235, 0.5831077694892883, 0.36420175433158875, 0.2516113221645355, -1.204013466835022, 0.257289856672287, -0.2504231929779053, -0.11903991550207138, 0.21279284358024597, -0.5092343091964722, 0.6797080636024475, -0.30876946449279785, -0.3294779062271118, -0.013300327584147453, 0.7055638432502747, 0.023403435945510864, 0.23710061609745026, 0.5205185413360596, 0.7381445169448853, 0.7843513488769531, -0.19255223870277405, 1.1253031492233276, -0.046892717480659485, 0.44564223289489746, 1.0141116380691528, -0.013494126498699188, 0.8007683157920837, 0.30771464109420776, -0.2601350247859955, 0.571276843547821, 0.5298628211021423, 0.12390812486410141, 0.5508681535720825, 0.04508746415376663, -0.05550513043999672, -0.07910383492708206, 0.10990021377801895, -0.4228195548057556, 0.32684090733528137, 0.16448774933815002, -0.30322763323783875, -0.4176306128501892, 0.05595173314213753, 0.20690393447875977, -0.08205237984657288, -0.18156500160694122, 0.9253358244895935, 0.08031513541936874, -0.6385884881019592, 0.6078165769577026, -0.0724162757396698, 0.9240046143531799, -0.5629298090934753, -0.0040490529499948025, -0.2817651629447937, 0.20812979340553284, -0.23550252616405487, -0.688694179058075, 0.41447916626930237, -0.08712145686149597, -0.1207013949751854, -0.6484401226043701, 0.9352614879608154, -0.30251479148864746, -0.2283833622932434, 0.3898203372955322, 0.5132884383201599, 0.23717863857746124, -0.1232999712228775, -0.7104941606521606, -0.21841272711753845, 0.25827229022979736, -0.09207385778427124, 0.4637734889984131, 0.4631071388721466, 0.06807722896337509, 0.6490270495414734, 0.5587254762649536, -0.022980308160185814, 0.13691164553165436, 0.043475694954395294, 0.687805712223053, -0.7002401947975159, -0.49391746520996094, -0.5663975477218628, 0.4671420156955719, -0.05550844594836235, -0.5095385313034058, 0.5963762402534485, 0.38491514325141907, 1.1283961534500122, -0.12385528534650803, 0.7417005896568298, -0.02176913246512413, 0.5311992168426514, -0.5854822993278503, 0.6188953518867493, -0.5053785443305969, 0.09095758944749832, -0.3190707564353943, -0.8135937452316284, -0.32091134786605835, 0.5043619871139526, -0.2982045114040375, 0.21083837747573853, 0.9436655044555664, 0.469612181186676, -0.08327029645442963, 0.012758319266140461, 0.2325768619775772, -0.009999302215874195, 0.4872094690799713, 0.7945831418037415, 0.5237706303596497, -0.8568552732467651, 0.8433828949928284, -0.21530885994434357, -0.06032313406467438, -0.06759022921323776, -0.9853240847587585, -0.7862987518310547, -0.717657208442688, -0.36861491203308105, -0.21631211042404175, 0.06119363009929657, 0.6300166845321655, 0.8258618116378784, -0.6103693246841431, -0.02471792697906494, -0.27550601959228516, -0.07054116576910019, -0.1856003701686859, -0.21151208877563477, 0.3469633162021637, -0.6584179997444153, -0.77565997838974, 0.06977052986621857, -0.028508232906460762, 0.06719042360782623, 0.13127455115318298, -0.06721282005310059, -0.29597362875938416, -0.41770413517951965, 0.5687757134437561, 0.2779562473297119, -0.3115200698375702, -0.304398775100708, 0.034566450864076614, -0.09029100835323334, 0.23611196875572205, 0.5660566091537476, -0.8416550159454346, 0.17815729975700378, 0.4488403797149658, 0.9899047017097473, 0.8221695423126221, -0.1273840367794037, 0.5496563911437988, -0.558175265789032, -0.11057235300540924, 0.16959472000598907, 0.10377179086208344, 0.34736597537994385, -0.1807338148355484, 0.6557884812355042, 0.15951429307460785, -0.5151948928833008, -0.44852542877197266, -0.12200628221035004, -1.2241290807724, -0.1791476309299469, 1.0177541971206665, -0.20758502185344696, -0.20012851059436798, 0.030853938311338425, -0.1457272469997406, 0.31520798802375793, -0.3105717897415161, 0.7786949276924133, 0.7753885388374329, 0.16826531291007996, -0.37199825048446655, -0.467433363199234, 0.6595147252082825, 0.5684995651245117, -1.1264842748641968, -0.3164873421192169, 0.18249210715293884, 0.4265425205230713, 0.04249702766537666, 0.5398258566856384, -0.14518477022647858, 0.24269571900367737, -0.38859960436820984, 0.1874627321958542, -0.014672503806650639, -0.38632962107658386, -0.5520291328430176, 0.14185360074043274, -0.21704210340976715, -0.334114134311676 ]
zhihan1996/DNABERT-2-117M
zhihan1996
"2023-10-30T19:27:14Z"
36,883
14
transformers
[ "transformers", "pytorch", "bert", "fill-mask", "biology", "medical", "custom_code", "arxiv:2306.15006", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2023-06-26T07:14:58Z"
--- metrics: - matthews_correlation - f1 tags: - biology - medical --- This is the official pre-trained model introduced in [DNABERT-2: Efficient Foundation Model and Benchmark For Multi-Species Genome ](https://arxiv.org/pdf/2306.15006.pdf). DNABERT-2 is a transformer-based genome foundation model trained on multi-species genome. To load the model from huggingface: ``` import torch from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("zhihan1996/DNABERT-2-117M", trust_remote_code=True) model = AutoModel.from_pretrained("zhihan1996/DNABERT-2-117M", trust_remote_code=True) ``` To calculate the embedding of a dna sequence ``` dna = "ACGTAGCATCGGATCTATCTATCGACACTTGGTTATCGATCTACGAGCATCTCGTTAGC" inputs = tokenizer(dna, return_tensors = 'pt')["input_ids"] hidden_states = model(inputs)[0] # [1, sequence_length, 768] # embedding with mean pooling embedding_mean = torch.mean(hidden_states[0], dim=0) print(embedding_mean.shape) # expect to be 768 # embedding with max pooling embedding_max = torch.max(hidden_states[0], dim=0)[0] print(embedding_max.shape) # expect to be 768 ```
[ -0.6264188289642334, -0.457559734582901, 0.1728220134973526, 0.1876586526632309, -0.4341893196105957, -0.004640423692762852, 0.0878019705414772, -0.017371973022818565, 0.3423807919025421, 0.22374126315116882, -0.6877089142799377, -0.5112367272377014, -0.8428749442100525, 0.014122327789664268, -0.4900814890861511, 1.0622764825820923, -0.16688404977321625, 0.06401550769805908, -0.06848970800638199, -0.25147056579589844, 0.2967098355293274, -0.3945513963699341, 0.045793842524290085, -0.43007782101631165, 0.3597578704357147, 0.28188103437423706, 0.7331551313400269, 0.8191125392913818, 0.49152976274490356, 0.2792205512523651, -0.19329188764095306, -0.19853341579437256, -0.8233990669250488, -0.3776364028453827, 0.1576436460018158, -0.4122207462787628, -0.33922889828681946, 0.3830607235431671, 0.8073266744613647, 0.6143383979797363, -0.05474230274558067, 0.3289310038089752, 0.044711772352457047, 0.6076874136924744, -0.5857077836990356, 0.09335978329181671, -0.2273280918598175, 0.3555678427219391, -0.14321409165859222, 0.1645989567041397, -0.37813571095466614, -0.35618284344673157, 0.38892534375190735, -0.6328216195106506, 0.31490176916122437, -0.07682410627603531, 1.0896189212799072, 0.48587289452552795, -0.48024415969848633, -0.03220169246196747, -0.48010754585266113, 0.6613343954086304, -0.35242414474487305, 0.38855722546577454, 0.22630421817302704, 0.25474977493286133, -0.2163599282503128, -0.9671851992607117, -0.6301833391189575, -0.10607434064149857, -0.14512571692466736, -0.019417067989706993, -0.21796977519989014, 0.09756920486688614, 0.5669524669647217, 0.5464712977409363, -0.8398199677467346, -0.38088423013687134, -0.6449586153030396, -0.17444764077663422, 0.5717287659645081, -0.280752956867218, 0.011772784404456615, -0.12217511981725693, -0.7260339260101318, -0.5518619418144226, -0.42880353331565857, 0.2640434503555298, 0.30094113945961, 0.01654842495918274, -0.4312630295753479, 0.6198965311050415, -0.04443022236227989, 0.4383636713027954, 0.3593995273113251, 0.24388553202152252, 0.7497609853744507, -0.023646831512451172, -0.3355103135108948, 0.060081519186496735, 0.8446585536003113, 0.15218332409858704, 0.4399908781051636, 0.023773573338985443, 0.22610874474048615, -0.03172065690159798, 0.3443012237548828, -1.199831247329712, -0.8027457594871521, 0.27409955859184265, -0.4190109968185425, -0.36100372672080994, 0.4213731586933136, -0.7448065876960754, -0.17161141335964203, 0.057404279708862305, 0.5881643295288086, -0.38656654953956604, -0.4399694502353668, 0.02414102479815483, -0.06919489055871964, 0.521722674369812, -0.01583590917289257, -0.7080060243606567, 0.2528887987136841, 0.5661613345146179, 1.109717607498169, 0.049328431487083435, -0.3613604009151459, -0.45435330271720886, -0.12453781068325043, -0.09510147571563721, 0.5016660094261169, -0.3382582366466522, -0.4875973165035248, -0.2392209768295288, 0.31924283504486084, -0.12631355226039886, -0.3038198947906494, 0.4501887857913971, -0.35725119709968567, 0.10987545549869537, -0.4129108786582947, -0.788119912147522, -0.49658912420272827, 0.15804144740104675, -0.7300170660018921, 1.304752230644226, 0.6707419157028198, -0.968863308429718, 0.4794318377971649, -0.5436272621154785, -0.12705233693122864, -0.08407455682754517, -0.13488075137138367, -0.9218131303787231, -0.24796386063098907, -0.0285955797880888, 0.5950638651847839, -0.11176057904958725, 0.3054085075855255, -0.6217463612556458, -0.42717307806015015, -0.05910747870802879, 0.3503362238407135, 1.1503044366836548, 0.07526736706495285, -0.6485639810562134, 0.26226717233657837, -0.6574193835258484, 0.042931247502565384, 0.21704670786857605, -0.23061603307724, 0.10012191534042358, -0.3703497648239136, 0.08483372628688812, 0.2664145231246948, 0.02416163869202137, -0.7717625498771667, 0.45684683322906494, -0.38814592361450195, 0.5249735116958618, 0.45068585872650146, -0.24112242460250854, 0.47557681798934937, -0.33691927790641785, 0.4218664765357971, 0.1200944185256958, 0.22153666615486145, 0.04197615385055542, -0.5965821146965027, -0.769328236579895, -0.430803120136261, 0.42391133308410645, 0.5212585926055908, -0.38442474603652954, 0.7008099555969238, -0.1339624524116516, -0.925310492515564, -0.25722450017929077, 0.0832824781537056, 0.43580156564712524, 0.3238653838634491, 0.6557438969612122, -0.549135684967041, -0.5156944394111633, -1.0067651271820068, 0.23964665830135345, -0.11033882200717926, 0.1915835589170456, 0.1342356950044632, 0.9656960368156433, -0.4704710841178894, 0.96626877784729, -0.37935692071914673, -0.00296971807256341, -0.23040539026260376, 0.18365132808685303, 0.424996554851532, 0.8509122133255005, 0.8287878036499023, -0.6273201704025269, -0.22436325252056122, -0.5871977210044861, -0.8617469668388367, 0.3576256334781647, 0.2127605825662613, -0.6156551837921143, -0.17230665683746338, 0.09051203727722168, -0.789697527885437, 0.5460178852081299, 0.6561811566352844, -0.40030336380004883, 0.6679434776306152, -0.13849681615829468, -0.004095309879630804, -1.0790736675262451, 0.1446031779050827, -0.010947687551379204, -0.09710680693387985, -0.6939477920532227, 0.3717481195926666, 0.4681535065174103, 0.11373189836740494, -0.45981982350349426, 0.5006820559501648, -0.40309765934944153, -0.15618392825126648, -0.12028899788856506, -0.2475375533103943, 0.07877980172634125, 0.4412401616573334, -0.04090794920921326, 0.5167321562767029, 0.7130027413368225, -0.5613424181938171, 0.49545615911483765, 0.7332552075386047, -0.05619000643491745, 0.23691615462303162, -0.8743060231208801, 0.14056913554668427, 0.10438895970582962, 0.6690528988838196, -0.8009684681892395, -0.3084091544151306, 0.2626706659793854, -0.5748933553695679, 0.4029506742954254, -0.32664021849632263, -0.30681970715522766, -0.8366864323616028, -0.6128202080726624, 0.8075464367866516, 0.7005893588066101, -0.9155275821685791, 0.8353856801986694, 0.3398478627204895, 0.2195044606924057, -0.6773900389671326, -0.8144109845161438, -0.4463820457458496, -0.24068781733512878, -0.9462319612503052, 0.3409939110279083, -0.06885039806365967, 0.14837011694908142, -0.15323343873023987, 0.016427036374807358, -0.09873751550912857, 0.06563567370176315, 0.47090303897857666, 0.28136786818504333, -0.2189517319202423, -0.056953661143779755, 0.10029663145542145, -0.19713430106639862, 0.3610806167125702, -0.20556357502937317, 0.69930100440979, -0.2678333818912506, -0.25536784529685974, -0.48750919103622437, 0.03473068028688431, 0.25653699040412903, -0.21474307775497437, 0.8266241550445557, 0.8913315534591675, -0.5319530367851257, -0.23436279594898224, -0.42599067091941833, -0.310656875371933, -0.4814227521419525, 0.32613086700439453, -0.39559775590896606, -0.786475419998169, 0.4619670510292053, -0.27379438281059265, -0.01909647136926651, 0.6933623552322388, 0.567712128162384, -0.011340949684381485, 0.708339273929596, 0.6111793518066406, 0.021433455869555473, 0.17772693932056427, -0.8595882654190063, -0.1461596041917801, -0.8895739912986755, -0.4440707266330719, -0.38301002979278564, -0.2638229727745056, -0.4807392656803131, -0.6405656337738037, 0.12999583780765533, 0.5453670024871826, -0.8119634985923767, 0.8582711219787598, -0.6172277927398682, 0.20245644450187683, 0.9323875308036804, 0.2165641337633133, -0.21731038391590118, -0.049038227647542953, -0.5521381497383118, 0.19807328283786774, -0.6403316259384155, -0.3761589825153351, 1.3780654668807983, 0.42213156819343567, 0.7258925437927246, 0.150982066988945, 1.0433930158615112, 0.10189739614725113, 0.22637775540351868, -0.6573596000671387, 0.22941680252552032, -0.10958193242549896, -0.6984742879867554, 0.04003032296895981, -0.4630276560783386, -0.8014398813247681, 0.1279538869857788, -0.42638105154037476, -0.7516945004463196, 0.28610217571258545, 0.47937944531440735, -0.4178953170776367, 0.3702273666858673, -0.49324023723602295, 1.1035456657409668, -0.1414279341697693, -0.2848169803619385, 0.03197126090526581, -0.8792604804039001, 0.6045718789100647, -0.029675357043743134, -0.05394561588764191, -0.14537301659584045, 0.45545005798339844, 0.9774202108383179, -0.506282389163971, 0.48286864161491394, -0.5377034544944763, 0.320769727230072, 0.2758854925632477, 0.14365620911121368, 0.48006540536880493, 0.20740479230880737, -0.1785697042942047, 0.26172950863838196, 0.18329843878746033, -0.6001731753349304, -0.17980504035949707, 0.4410143196582794, -1.1719151735305786, -0.34882697463035583, -0.646320104598999, -0.11462385207414627, -0.04330575466156006, 0.06284180283546448, 0.5623590350151062, 0.39382293820381165, -0.4171886146068573, 0.33609992265701294, 0.7511122822761536, -0.30347776412963867, 0.2780347764492035, 0.17906871438026428, -0.19904617965221405, -0.384143203496933, 0.4624395966529846, -0.2659313678741455, 0.12829214334487915, 0.08115383982658386, 0.2723594307899475, -0.38994812965393066, -0.15904779732227325, -0.8504398465156555, 0.41351625323295593, -0.6669451594352722, -0.1993759274482727, -0.9838165044784546, -0.46829795837402344, -0.41045722365379333, -0.21059340238571167, -0.5772207975387573, -0.40649110078811646, -0.32971763610839844, -0.21508586406707764, 0.5002803802490234, 0.6844145059585571, -0.33165889978408813, 0.5485928058624268, -0.8093916177749634, 0.294119656085968, 0.2707120478153229, 0.1590697318315506, -0.27620598673820496, -0.8305560350418091, -0.1102944016456604, -0.08948226273059845, -0.2767508625984192, -1.0162590742111206, 0.20212849974632263, 0.44959911704063416, 0.67293381690979, 0.44782766699790955, 0.0008043915149755776, 0.3532539904117584, -0.4592975676059723, 0.674568235874176, 0.17490126192569733, -0.9643263220787048, 0.5591723322868347, -0.1394786536693573, 0.18075662851333618, 0.5890883803367615, 0.6715982556343079, -0.08833318948745728, -0.06779474020004272, -0.8080835342407227, -0.8741890788078308, 0.7152605652809143, 0.2923135459423065, 0.009080085903406143, 0.1724398136138916, 0.5147784352302551, 0.11612077802419662, 0.08745989203453064, -0.9085884690284729, -0.648557722568512, -0.6646091341972351, -0.30829286575317383, -0.0702778697013855, -0.41910240054130554, -0.28995516896247864, -0.6579665541648865, 0.9314170479774475, -0.035332489758729935, 0.6199102997779846, 0.15643088519573212, -0.46342334151268005, -0.1908050924539566, -0.2408469170331955, 0.5960065126419067, 0.3549908399581909, -0.48148515820503235, -0.052990518510341644, 0.016774488613009453, -0.6007088422775269, 0.11109650135040283, 0.6915019154548645, 0.016505498439073563, -0.10848340392112732, 0.39647915959358215, 0.7517801523208618, 0.21888050436973572, -0.22307224571704865, 0.8239668607711792, -0.03196725994348526, -0.5104882121086121, -0.4514797627925873, 0.24661724269390106, 0.21404291689395905, 0.48638710379600525, 0.303928405046463, 0.007957435213029385, 0.11070442944765091, -0.29159125685691833, 0.5958102345466614, 0.423848032951355, -0.29631680250167847, -0.21654759347438812, 0.8722876310348511, 0.18677592277526855, 0.13776922225952148, 0.7924141883850098, -0.423269122838974, -0.8831575512886047, 0.8804656863212585, 0.21470317244529724, 0.7726671695709229, -0.35606813430786133, 0.27028337121009827, 1.0539275407791138, 0.23679836094379425, -0.19986265897750854, 0.3369159996509552, -0.12171155959367752, -0.7297725081443787, 0.014209568500518799, -0.9359291791915894, -0.387810081243515, -0.10664805769920349, -0.9435073137283325, 0.23843272030353546, -0.5750262141227722, -0.17311307787895203, 0.043352775275707245, 0.11252688616514206, -0.886415958404541, 0.22994594275951385, 0.13988707959651947, 1.228524088859558, -0.9197573065757751, 1.0681341886520386, 0.53525310754776, -0.2208087295293808, -1.1165951490402222, -0.2634524703025818, 0.29695025086402893, -1.004584550857544, 0.5049592852592468, 0.6257054209709167, -0.03357997536659241, 0.22255288064479828, -0.49355053901672363, -1.0866055488586426, 1.3316789865493774, 0.26851069927215576, -0.698840320110321, 0.13592642545700073, -0.0533548966050148, 0.27807700634002686, -0.363847553730011, 0.41409242153167725, 0.7036777138710022, 0.48725444078445435, 0.16684897243976593, -0.6590362191200256, 0.1372254639863968, -0.5420618653297424, -0.06517893075942993, 0.21246077120304108, -0.5627402663230896, 1.3350175619125366, -0.3800063133239746, -0.07316161692142487, 0.41227200627326965, 0.7333160042762756, 0.5061394572257996, -0.06104477867484093, 0.6113356947898865, 0.805936336517334, 0.6565557718276978, -0.46602052450180054, 0.9671781063079834, -0.5635586977005005, 0.9915069341659546, 0.9300491809844971, -0.13100096583366394, 0.6997687816619873, 0.23916326463222504, -0.3668026626110077, 0.7800078988075256, 0.9597004652023315, -0.6535648107528687, 0.527186930179596, 0.5147344470024109, -0.09910321235656738, -0.16044586896896362, 0.3848589360713959, -0.8880126476287842, 0.4210715591907501, 0.23253442347049713, -0.6869344711303711, -0.11395757645368576, -0.03655199334025383, 0.027721727266907692, -0.3580091595649719, -0.0967797040939331, 0.487810343503952, -0.0826549306511879, -0.3254377543926239, 0.5900577306747437, 0.012447007931768894, 0.742176353931427, -0.5129811763763428, -0.05923597887158394, -0.036212459206581116, 0.2867209017276764, -0.27141112089157104, -0.6448508501052856, -0.018015658482909203, 0.0029795716982334852, -0.05632892623543739, 0.22708693146705627, 0.41148141026496887, -0.43621906638145447, -0.638689398765564, 0.6842082142829895, 0.38697823882102966, 0.33858364820480347, -0.07859322428703308, -1.0722122192382812, 0.021373970434069633, -0.23066125810146332, -0.7687461972236633, 0.018449261784553528, -0.10039642453193665, 0.3505830764770508, 0.4856603741645813, 0.48246005177497864, -0.3689900040626526, 0.13769188523292542, -0.0767102912068367, 1.036660075187683, -0.6932082176208496, -0.55217444896698, -0.7248626351356506, 0.543652355670929, 0.041414160281419754, -0.47534677386283875, 0.5030909180641174, 0.7181400060653687, 1.1190552711486816, -0.06340070068836212, 0.5895963907241821, -0.27633821964263916, 0.35846883058547974, -0.3351307511329651, 0.7010414004325867, -0.5347257852554321, -0.403786838054657, -0.31265953183174133, -1.1906933784484863, -0.03798236697912216, 1.136286735534668, -0.09611319750547409, 0.4763682782649994, 0.7407352924346924, 0.7466505765914917, -0.2003638744354248, 0.1935458928346634, -0.034404922276735306, 0.3342490494251251, 0.14330041408538818, 0.5359906554222107, 0.46562904119491577, -0.4358953833580017, 0.35589680075645447, -0.8422195911407471, -0.47005942463874817, -0.2345336526632309, -0.752217173576355, -1.1049633026123047, -0.5244088172912598, -0.1847742795944214, -0.6136614680290222, 0.019057724624872208, 1.3132344484329224, 1.0777347087860107, -1.0573766231536865, -0.009364347904920578, -0.09809928387403488, -0.4656393527984619, 0.10207662731409073, -0.21080434322357178, 0.6075288653373718, 0.3126220107078552, -0.5119933485984802, 0.2737852931022644, -0.0030654200818389654, 0.14502696692943573, -0.3246125280857086, -0.22791264951229095, -0.522603452205658, -0.25559914112091064, 0.1760411560535431, 0.3479101061820984, -0.5800272822380066, -0.4442117512226105, -0.28188520669937134, -0.16594082117080688, 0.26623690128326416, 0.5608236193656921, -0.7822473049163818, 0.4096340239048004, 0.10690915584564209, 0.536627471446991, 0.9603596925735474, 0.10337749868631363, 0.4464622139930725, -0.558985710144043, 0.20300599932670593, 0.0057635437697172165, 0.736853301525116, 0.4069128632545471, -0.36036446690559387, 0.6804171204566956, 0.312081515789032, -0.5824499726295471, -0.5397846102714539, 0.28028684854507446, -1.1954572200775146, -0.03426923230290413, 0.993456244468689, -0.6152431964874268, -0.3255402445793152, 0.17555128037929535, 0.07629374414682388, 0.8051814436912537, -0.23308634757995605, 0.5230550169944763, 0.3739442825317383, -0.10674890875816345, -0.06533239036798477, -0.26069211959838867, 0.5279754996299744, 0.2644593119621277, -0.7225968837738037, -0.45888522267341614, 0.14088822901248932, 0.5693032145500183, 0.2577693462371826, 0.3163633942604065, 0.00993573572486639, 0.5363900661468506, 0.20474651455879211, 0.27991846203804016, -0.3285190165042877, -0.39194315671920776, -0.3046208620071411, 0.05265617370605469, -0.1681475192308426, -0.05781713128089905 ]
timm/deit_base_distilled_patch16_224.fb_in1k
timm
"2023-03-28T01:29:31Z"
36,817
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2012.12877", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-28T01:27:56Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for deit_base_distilled_patch16_224.fb_in1k A DeiT image classification model. Trained on ImageNet-1k using distillation tokens by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 87.3 - GMACs: 17.7 - Activations (M): 24.0 - Image size: 224 x 224 - **Papers:** - Training data-efficient image transformers & distillation through attention: https://arxiv.org/abs/2012.12877 - **Original:** https://github.com/facebookresearch/deit - **Dataset:** ImageNet-1k ## 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('deit_base_distilled_patch16_224.fb_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( 'deit_base_distilled_patch16_224.fb_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, 198, 768) 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{pmlr-v139-touvron21a, title = {Training data-efficient image transformers & distillation through attention}, author = {Touvron, Hugo and Cord, Matthieu and Douze, Matthijs and Massa, Francisco and Sablayrolles, Alexandre and Jegou, Herve}, booktitle = {International Conference on Machine Learning}, pages = {10347--10357}, year = {2021}, volume = {139}, month = {July} } ``` ```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.4922538101673126, -0.5219059586524963, 0.1407562643289566, 0.20352160930633545, -0.45639991760253906, -0.2748766541481018, -0.21277427673339844, -0.2996821701526642, 0.07031109184026718, 0.1931593418121338, -0.5380027294158936, -0.6722546815872192, -0.8340620994567871, -0.008061145432293415, -0.17463380098342896, 1.1185578107833862, -0.05764475092291832, -0.08280764520168304, -0.127894788980484, -0.3541939854621887, -0.23131445050239563, -0.3011094629764557, -0.7441785335540771, -0.42432963848114014, 0.3704957664012909, 0.11007487773895264, 0.43868282437324524, 0.5228114128112793, 0.7433473467826843, 0.502314031124115, -0.21221423149108887, 0.05443999171257019, -0.438859224319458, -0.1807008981704712, 0.27089041471481323, -0.5526720881462097, -0.4748864471912384, 0.3204868733882904, 0.6205925941467285, 0.4526938199996948, 0.027881823480129242, 0.4048289358615875, 0.30808714032173157, 0.8066961765289307, -0.3539152145385742, 0.24660088121891022, -0.5689164400100708, 0.15919311344623566, -0.08891970664262772, 0.13531382381916046, -0.32296833395957947, -0.39001819491386414, 0.25787654519081116, -0.4426059126853943, 0.5123413801193237, -0.1740463823080063, 1.274565577507019, 0.5857790112495422, -0.05844036489725113, 0.04409882053732872, -0.355492502450943, 0.797242283821106, -0.8578147292137146, 0.20620767772197723, 0.34232595562934875, 0.10314370691776276, -0.12069423496723175, -1.0767183303833008, -0.5240489840507507, -0.13929685950279236, -0.27042001485824585, 0.005858361255377531, -0.3922010064125061, 0.0656275600194931, 0.4467008411884308, 0.5324944853782654, -0.4049660265445709, -0.11232968419790268, -0.5471258163452148, -0.08086323738098145, 0.49303963780403137, -0.07729515433311462, 0.04509694129228592, -0.12969441711902618, -0.6283507347106934, -0.4273436665534973, -0.17703422904014587, 0.14803780615329742, 0.28719913959503174, 0.1341465562582016, -0.4805589020252228, 0.3495176434516907, 0.0008078173850663006, 0.5877748727798462, 0.46259889006614685, -0.2728196978569031, 0.6906246542930603, -0.041081298142671585, -0.4588589668273926, 0.020427968353033066, 1.07964289188385, 0.3719789683818817, 0.2523084282875061, 0.12287046760320663, -0.09177985042333603, -0.22393764555454254, -0.08250588178634644, -1.3034472465515137, -0.4929138422012329, 0.31817883253097534, -0.4986863136291504, -0.5024022459983826, 0.2800837755203247, -0.6315035223960876, -0.08505116403102875, -0.1254199594259262, 0.5192648768424988, -0.48323556780815125, -0.4037081003189087, 0.12575313448905945, -0.21402986347675323, 0.06889716535806656, 0.14010192453861237, -0.5784780979156494, 0.07523661851882935, 0.249530628323555, 1.1208020448684692, 0.043135326355695724, -0.3729236423969269, -0.19480539858341217, -0.303600937128067, -0.2091352492570877, 0.5166234374046326, -0.005383956246078014, -0.12016328424215317, -0.3728386461734772, 0.3571903705596924, -0.14380384981632233, -0.7179394364356995, 0.34217068552970886, -0.21548275649547577, 0.2270754724740982, 0.02837732434272766, -0.26233971118927, -0.46097272634506226, 0.28988057374954224, -0.5885647535324097, 1.2913151979446411, 0.3907640278339386, -1.1010633707046509, 0.37191060185432434, -0.5498271584510803, -0.1279323399066925, -0.2566705644130707, 0.1484738439321518, -1.0546835660934448, 0.009911992587149143, 0.1987943798303604, 0.7395546436309814, -0.2254975587129593, 0.21460218727588654, -0.5943769216537476, -0.306881844997406, 0.4223886728286743, -0.34507283568382263, 1.0573018789291382, 0.27189901471138, -0.5103505253791809, 0.06997194141149521, -0.7116233110427856, 0.11206784844398499, 0.45010021328926086, -0.36991435289382935, -0.21298682689666748, -0.6529608964920044, 0.15660998225212097, 0.2784437835216522, 0.1660601645708084, -0.5447601675987244, 0.3122759163379669, -0.14228855073451996, 0.5526358485221863, 0.7741830945014954, -0.13323675096035004, 0.28481218218803406, -0.31016480922698975, 0.24752695858478546, 0.5262054800987244, 0.23590995371341705, -0.05768580734729767, -0.4884670078754425, -0.7553860545158386, -0.7463476657867432, 0.44287097454071045, 0.3499840199947357, -0.4442090392112732, 0.6094756126403809, -0.24906723201274872, -0.7815905809402466, -0.5334973931312561, 0.12312328070402145, 0.42556220293045044, 0.6817094087600708, 0.37126269936561584, -0.39843639731407166, -0.47852692008018494, -0.9328793883323669, 0.07766084372997284, -0.06064601242542267, 0.06076638773083687, 0.16793079674243927, 0.6243934631347656, -0.2014595866203308, 0.7631993293762207, -0.5915367603302002, -0.38392961025238037, -0.21373391151428223, 0.11271537840366364, 0.5844700336456299, 0.7102183103561401, 0.9203240275382996, -0.701607882976532, -0.7421279549598694, -0.26813438534736633, -0.9302202463150024, 0.04777536913752556, 0.07874111831188202, -0.2690269947052002, 0.30006828904151917, 0.18522341549396515, -0.6622865796089172, 0.6785764694213867, 0.2373775988817215, -0.35720276832580566, 0.30843788385391235, -0.21618260443210602, 0.3037707209587097, -1.2646294832229614, 0.17716138064861298, 0.4454517066478729, -0.23000642657279968, -0.454012930393219, -0.23045574128627777, 0.032384760677814484, 0.0816931426525116, -0.5480108857154846, 0.5206605792045593, -0.5438233613967896, 0.0865088552236557, -0.18907634913921356, -0.37942636013031006, 0.12062139064073563, 0.7953455448150635, -0.08969992399215698, 0.3234703242778778, 0.8035774827003479, -0.5122972726821899, 0.5276497602462769, 0.44770216941833496, -0.21786516904830933, 0.5787977576255798, -0.7645097374916077, 0.26329684257507324, -0.08864991366863251, 0.29483267664909363, -1.2410823106765747, -0.12834319472312927, 0.3659707307815552, -0.47008007764816284, 0.7636419534683228, -0.6164724826812744, -0.42589035630226135, -0.5605707764625549, -0.46162140369415283, 0.47980281710624695, 0.7494724988937378, -0.7290104627609253, 0.3609253764152527, 0.1650947481393814, 0.19399046897888184, -0.6697483062744141, -0.9066309332847595, -0.38316285610198975, -0.6344229578971863, -0.6139161586761475, 0.4638645648956299, 0.009489643387496471, 0.06611774116754532, 0.2044992595911026, -0.14846614003181458, -0.19081972539424896, -0.06621256470680237, 0.4719374477863312, 0.4368230402469635, -0.12410494685173035, -0.17579489946365356, -0.18916498124599457, -0.20875456929206848, 0.03763330355286598, -0.3222319483757019, 0.5231783986091614, -0.23363777995109558, -0.12824444472789764, -0.9153006672859192, -0.13665509223937988, 0.611230194568634, 0.011799231171607971, 0.767706036567688, 0.9659207463264465, -0.47027891874313354, 0.012099985033273697, -0.5055170655250549, -0.37445372343063354, -0.5207341313362122, 0.6008272767066956, -0.4211564362049103, -0.309399276971817, 0.7841328978538513, -0.011028116568922997, 0.1334492266178131, 0.6710966229438782, 0.4504416882991791, -0.11976996809244156, 0.8212516903877258, 0.5548964738845825, -0.021471194922924042, 0.7819166779518127, -0.9397512078285217, -0.1727023720741272, -0.7961026430130005, -0.29051756858825684, -0.343250572681427, -0.7481337785720825, -0.6164253354072571, -0.3164377510547638, 0.43090975284576416, 0.16056674718856812, -0.3644256889820099, 0.4559269845485687, -0.9557705521583557, 0.1728200912475586, 0.7575228214263916, 0.5497832894325256, -0.0759185254573822, 0.4363362491130829, -0.15462593734264374, -0.025618623942136765, -0.7415475249290466, -0.18147872388362885, 1.1104865074157715, 0.46624526381492615, 0.8973270058631897, -0.28844520449638367, 0.7885913252830505, -0.11047086864709854, 0.2680298686027527, -0.5957820415496826, 0.4956880509853363, -0.1707199513912201, -0.4930765926837921, -0.11816612631082535, -0.4119892120361328, -0.9338231682777405, 0.1058768630027771, -0.029061421751976013, -0.6288266181945801, 0.2668728828430176, 0.2590048313140869, -0.2551742196083069, 0.6415987014770508, -0.8168524503707886, 0.9781486392021179, -0.11334173381328583, -0.5202684998512268, 0.04570963606238365, -0.6686535477638245, 0.22571051120758057, 0.08857215195894241, -0.2366929054260254, -0.0896168202161789, 0.3421441316604614, 0.945837140083313, -0.5584996938705444, 0.9147858023643494, -0.557975709438324, 0.22803188860416412, 0.5687782764434814, -0.2087232619524002, 0.2952781915664673, -0.0821363553404808, -0.015465064905583858, 0.5004251599311829, 0.13048195838928223, -0.38289502263069153, -0.4675363600254059, 0.6505420804023743, -0.9190996289253235, -0.36523139476776123, -0.5659911632537842, -0.5376982688903809, 0.22189879417419434, 0.013140536844730377, 0.5875363945960999, 0.4999675750732422, 0.15334850549697876, 0.35631290078163147, 0.7124729156494141, -0.2624570429325104, 0.4134747385978699, -0.04672280699014664, -0.11592163890600204, -0.5031800270080566, 0.7205191254615784, 0.2401760369539261, 0.21655695140361786, 0.07066391408443451, 0.23287858068943024, -0.4531532824039459, -0.46441829204559326, -0.367659330368042, 0.38669610023498535, -0.7415163516998291, -0.5028113126754761, -0.6474977135658264, -0.4522060751914978, -0.38351795077323914, 0.10651642084121704, -0.5578881502151489, -0.3940126895904541, -0.42615941166877747, 0.04477524384856224, 0.8770175576210022, 0.48958420753479004, -0.271928071975708, 0.39610597491264343, -0.6524799466133118, 0.2153426855802536, 0.14711500704288483, 0.48622485995292664, -0.13105708360671997, -1.033735752105713, -0.2547529935836792, 0.1508042812347412, -0.5338324308395386, -0.8491739630699158, 0.4064161777496338, 0.26349571347236633, 0.5251513123512268, 0.4007025361061096, -0.050080087035894394, 0.9248207807540894, -0.09926820546388626, 0.39575496315956116, 0.3150896728038788, -0.5673201084136963, 0.6701287627220154, -0.03505371883511543, 0.18024417757987976, 0.33937662839889526, 0.4169529974460602, -0.14610187709331512, -0.10584782063961029, -0.954797089099884, -0.8788866996765137, 0.940182626247406, 0.17299532890319824, 0.04937126860022545, 0.29034459590911865, 0.6865882277488708, 0.03030708059668541, 0.10666702687740326, -0.8006243705749512, -0.4741393029689789, -0.34894701838493347, -0.3925711214542389, 0.06530475616455078, -0.09965109080076218, -0.014705907553434372, -0.7424680590629578, 0.8709031939506531, -0.03489616885781288, 0.555952250957489, 0.3570142388343811, -0.09182052314281464, -0.06846760213375092, -0.38949647545814514, 0.20895934104919434, 0.21335531771183014, -0.393961101770401, 0.11875653266906738, 0.10895058512687683, -0.650640070438385, 0.16951888799667358, 0.3369249105453491, 0.0001981280802283436, 0.11651795357465744, 0.20585080981254578, 0.9328626990318298, -0.08691462129354477, 0.049561891704797745, 0.32304662466049194, -0.1250615268945694, -0.4500667154788971, -0.23218992352485657, 0.07993483543395996, 0.008279236033558846, 0.4963519275188446, 0.36960092186927795, 0.2554776072502136, 0.02126498706638813, -0.24151967465877533, 0.2457127720117569, 0.5343834161758423, -0.38229766488075256, -0.37771114706993103, 0.7148140072822571, -0.2104065865278244, 0.10179165750741959, 0.9437232613563538, -0.0754498764872551, -0.4086572825908661, 1.0342254638671875, 0.3232613205909729, 1.0969029664993286, -0.14705848693847656, 0.022952642291784286, 0.9101462960243225, 0.09796682745218277, -0.06646033376455307, 0.08084116131067276, 0.10067027807235718, -0.6089292764663696, 0.08891639858484268, -0.7090966701507568, 0.19349612295627594, 0.4567273259162903, -0.5573524832725525, 0.39329293370246887, -0.5076693892478943, -0.5404794216156006, 0.23778465390205383, 0.20645207166671753, -0.8780844211578369, 0.1354774683713913, 0.01958313025534153, 0.7039130330085754, -0.866047739982605, 0.7461599111557007, 0.8451192378997803, -0.5826142430305481, -0.9716940522193909, -0.1474161446094513, -0.09930320829153061, -0.6072666049003601, 0.7004634141921997, 0.4733874499797821, 0.17719712853431702, 0.1878904551267624, -0.7746995687484741, -0.6981260776519775, 1.3622232675552368, 0.6031267642974854, -0.26561832427978516, 0.1678408533334732, 0.06169135496020317, 0.31144872307777405, -0.2261970341205597, 0.429214209318161, 0.34952512383461, 0.4224582314491272, 0.4296950399875641, -0.7545350790023804, 0.1773284375667572, -0.3824380040168762, 0.08986495435237885, 0.1212247833609581, -0.7931618690490723, 0.9628970623016357, -0.44188156723976135, -0.12781769037246704, 0.019997652620077133, 0.6143814921379089, 0.32484421133995056, 0.19493524730205536, 0.6058000326156616, 0.954723060131073, 0.4779749810695648, -0.3886236548423767, 0.7677677869796753, -0.11305508017539978, 0.7929101586341858, 0.7247310280799866, 0.22489860653877258, 0.3370702862739563, 0.5768836140632629, -0.4168919622898102, 0.35178524255752563, 1.1219873428344727, -0.4136935770511627, 0.6797367930412292, 0.18138079345226288, 0.00856647826731205, -0.0334487110376358, 0.12583966553211212, -0.5153428316116333, 0.43968477845191956, 0.048859260976314545, -0.5964168310165405, -0.2920336425304413, 0.055676549673080444, 0.013821415603160858, -0.3955079913139343, -0.06034243851900101, 0.7224984169006348, 0.04795703664422035, -0.5039311647415161, 1.011440396308899, -0.07104364782571793, 0.8721534013748169, -0.4235038757324219, -0.11141037940979004, -0.3008587658405304, 0.5523452758789062, -0.36818936467170715, -0.7003165483474731, 0.3247925937175751, -0.10280762612819672, -0.17500899732112885, 0.03211449459195137, 0.644088625907898, -0.45623859763145447, -0.6370770335197449, 0.14921092987060547, 0.26400819420814514, 0.49631357192993164, -0.1587677001953125, -1.2159634828567505, 0.010029876604676247, 0.11307317018508911, -0.7801939249038696, 0.3438637852668762, 0.6005468368530273, 0.127595454454422, 0.6465373635292053, 0.6865308880805969, -0.2233811318874359, 0.169749453663826, -0.21013523638248444, 1.0016608238220215, -0.30753466486930847, -0.34020400047302246, -1.0683408975601196, 0.7493607997894287, -0.07673083245754242, -0.4248964190483093, 0.514346718788147, 0.6372085213661194, 0.8583685159683228, -0.17349405586719513, 0.625095546245575, -0.3652189075946808, -0.028508756309747696, -0.3029159903526306, 0.7438411116600037, -0.6664141416549683, -0.06442999094724655, -0.36509981751441956, -0.9120981097221375, -0.1390753537416458, 0.9250973463058472, -0.1878354847431183, 0.48708271980285645, 0.5546481609344482, 0.9056090712547302, -0.476565957069397, -0.41881150007247925, 0.13701023161411285, 0.23673243820667267, 0.12966573238372803, 0.44152143597602844, 0.51338791847229, -0.8074575662612915, 0.33710840344429016, -0.8117159605026245, -0.2847849130630493, -0.12684102356433868, -0.7831996083259583, -1.0644397735595703, -0.929073691368103, -0.7857456803321838, -0.6387428045272827, -0.23637664318084717, 0.8881229162216187, 1.0050283670425415, -0.6707817316055298, 0.002966840285807848, -0.04705385863780975, -0.029510021209716797, -0.29118767380714417, -0.24581380188465118, 0.6429577469825745, -0.17265406250953674, -1.0819203853607178, -0.4562954604625702, -0.0687251091003418, 0.47641077637672424, -0.07692479342222214, -0.09575977921485901, -0.2562989592552185, -0.37570813298225403, 0.23328682780265808, 0.08356977999210358, -0.5749858617782593, 0.02451232634484768, -0.15755780041217804, -0.15915080904960632, 0.4494873583316803, 0.3034122586250305, -0.6160622239112854, 0.2566593885421753, 0.4893905818462372, 0.30135786533355713, 0.872440755367279, -0.18366502225399017, -0.007153642363846302, -0.86601722240448, 0.7062199115753174, -0.11027280986309052, 0.5205516219139099, 0.42806577682495117, -0.4675699770450592, 0.7135744094848633, 0.47865891456604004, -0.444248229265213, -0.942756175994873, -0.20213957130908966, -1.1001086235046387, -0.12619584798812866, 1.0059843063354492, -0.5022231936454773, -0.48595744371414185, 0.4917871057987213, -0.21679826080799103, 0.7571669816970825, -0.19881156086921692, 0.7221250534057617, 0.42067256569862366, 0.029937751591205597, -0.4105510711669922, -0.47459688782691956, 0.4430597126483917, 0.12974295020103455, -0.6016833186149597, -0.20310141146183014, 0.16532282531261444, 0.7866554856300354, 0.2577928304672241, 0.5150155425071716, -0.22792668640613556, 0.021381795406341553, -0.06560555845499039, 0.3639255464076996, -0.43492501974105835, -0.11268765479326248, -0.305814653635025, -0.1330958902835846, -0.15065522491931915, -0.659334659576416 ]
CreativeLang/novel_metaphors
CreativeLang
"2023-09-25T21:17:03Z"
36,775
0
transformers
[ "transformers", "pytorch", "roberta", "token-classification", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2023-09-25T21:16:41Z"
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 ]
lllyasviel/control_v11p_sd15_openpose
lllyasviel
"2023-08-04T08:24:23Z"
36,757
44
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:32Z"
--- 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_openpose --- # Controlnet - v1.1 - *openpose Version* **Controlnet v1.1** is the successor model of [Controlnet v1.0](https://huggingface.co/lllyasviel/ControlNet) and 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_openpose.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 **openpose 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 OpenposeDetector from diffusers import ( ControlNetModel, StableDiffusionControlNetPipeline, UniPCMultistepScheduler, ) checkpoint = "lllyasviel/control_v11p_sd15_openpose" image = load_image( "https://huggingface.co/lllyasviel/control_v11p_sd15_openpose/resolve/main/images/input.png" ) prompt = "chef in the kitchen" processor = OpenposeDetector.from_pretrained('lllyasviel/ControlNet') control_image = processor(image, hand_and_face=True) 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| 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_sd15_openpose)<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>| ## Improvements in Openpose 1.1: - The improvement of this model is mainly based on our improved implementation of OpenPose. We carefully reviewed the difference between the pytorch OpenPose and CMU's c++ openpose. Now the processor should be more accurate, especially for hands. The improvement of processor leads to the improvement of Openpose 1.1. - More inputs are supported (hand and face). - The training dataset of previous cnet 1.0 has several problems including (1) a small group of greyscale human images are duplicated thousands of times (!!), causing the previous model somewhat likely to generate grayscale human images; (2) some images has low quality, very blurry, or significant JPEG artifacts; (3) a small group of images has wrong paired prompts caused by a mistake in our data processing scripts. The new model fixed all problems of the training dataset and should be more reasonable in many cases. ## 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.5779696106910706, -0.5555515289306641, 0.12091437727212906, 0.5410771369934082, -0.21894890069961548, -0.2759241461753845, 0.0359300822019577, -0.5206454992294312, 0.5084006786346436, 0.28549325466156006, -0.712116539478302, -0.3460206091403961, -0.7011843323707581, -0.13846266269683838, -0.1247439756989479, 0.7852464914321899, -0.3080731928348541, 0.009612600319087505, 0.07359852641820908, -0.07666885107755661, -0.07046729326248169, -0.14266125857830048, -1.2081732749938965, -0.47036993503570557, 0.4580423831939697, 0.0792531967163086, 0.50026935338974, 0.5319293141365051, 0.4740463197231293, 0.363357275724411, -0.3312913179397583, 0.08267858624458313, -0.28693610429763794, -0.19300270080566406, 0.1633578985929489, -0.13454312086105347, -0.6844431161880493, 0.11172337085008621, 0.6756574511528015, 0.2774569094181061, 0.0068845623172819614, -0.20702967047691345, 0.15306830406188965, 0.6629692912101746, -0.49967363476753235, -0.12321612238883972, -0.13074250519275665, 0.2485218048095703, -0.12851561605930328, 0.10092765092849731, -0.20623214542865753, -0.3188968598842621, 0.06253867596387863, -0.7394914031028748, -0.11955336481332779, -0.15679854154586792, 1.3200345039367676, 0.27378538250923157, -0.4102945327758789, -0.07325971126556396, -0.26422274112701416, 0.621399998664856, -0.7897126078605652, 0.09665561467409134, 0.1427382081747055, 0.24405145645141602, -0.20536082983016968, -0.9762352705001831, -0.5137113332748413, -0.15301762521266937, -0.10520882904529572, 0.4659874439239502, -0.34580934047698975, 0.03516189381480217, 0.24702465534210205, 0.20542918145656586, -0.3841412663459778, 0.27596309781074524, -0.30726078152656555, -0.33048462867736816, 0.5731971263885498, -0.002928314032033086, 0.5906060934066772, 0.06294911354780197, -0.6000564694404602, -0.03567228466272354, -0.3822944462299347, 0.34674984216690063, 0.22532576322555542, -0.11931691318750381, -0.7516563534736633, 0.42143574357032776, -0.04346560314297676, 0.7235488295555115, 0.4149866998195648, -0.17084355652332306, 0.45895275473594666, -0.16972339153289795, -0.3851430416107178, -0.2967870235443115, 0.9913172125816345, 0.4930167496204376, 0.17477674782276154, 0.014961134642362595, -0.13011662662029266, -0.15287818014621735, -0.021244479343295097, -1.1752521991729736, -0.16144844889640808, 0.20885299146175385, -0.540553092956543, -0.3534281551837921, -0.10362181812524796, -0.6881569027900696, -0.19496937096118927, -0.06408316642045975, 0.369083434343338, -0.6016442179679871, -0.4803334176540375, 0.13913045823574066, -0.43510857224464417, 0.5544862151145935, 0.6048333048820496, -0.4560494124889374, 0.21060355007648468, 0.1702049821615219, 0.9861581921577454, -0.2415587455034256, -0.14436101913452148, -0.2748606503009796, -0.07296893000602722, -0.30453890562057495, 0.4969402849674225, -0.14509771764278412, -0.09559965878725052, -0.06992913782596588, 0.335149347782135, -0.15145303308963776, -0.35579341650009155, 0.4219544231891632, -0.341187983751297, 0.18909257650375366, -0.055335819721221924, -0.379425972700119, -0.14567866921424866, 0.2539263367652893, -0.4701177179813385, 0.7379127740859985, 0.24496082961559296, -1.0530903339385986, 0.35437336564064026, -0.5155324935913086, -0.22924800217151642, -0.2536603510379791, 0.1506505161523819, -0.7262677550315857, -0.4025094509124756, 0.04830097407102585, 0.5769631862640381, -0.018232548609375954, -0.14966705441474915, -0.476291298866272, -0.02141137421131134, 0.1477726846933365, -0.09643521904945374, 1.1950424909591675, 0.1326867938041687, -0.5574607849121094, 0.2251700907945633, -0.660159707069397, 0.04273625835776329, 0.16350363194942474, -0.24717853963375092, 0.04160376638174057, -0.29650455713272095, 0.11097590625286102, 0.6282316446304321, 0.336810439825058, -0.6898874640464783, 0.14985151588916779, -0.251893550157547, 0.4480814039707184, 0.6418896317481995, 0.19370581209659576, 0.6055399775505066, -0.5063029527664185, 0.5453218817710876, 0.29528459906578064, 0.306311696767807, 0.05722391977906227, -0.504837155342102, -0.9934947490692139, -0.5795168280601501, 0.0025805835612118244, 0.5809981226921082, -0.7953565716743469, 0.7860988974571228, 0.123021200299263, -0.6441183686256409, -0.2556644678115845, 0.02712133899331093, 0.4789416193962097, 0.5257934331893921, 0.29906004667282104, -0.4595585763454437, -0.34784290194511414, -0.8893994688987732, 0.1213776245713234, 0.22826407849788666, -0.02725631557404995, 0.1683283895254135, 0.6419157385826111, -0.053918708115816116, 0.646458089351654, -0.24154244363307953, -0.3829209506511688, -0.09638763219118118, -0.12640266120433807, 0.2743043005466461, 1.0101227760314941, 0.7776190638542175, -0.7592049241065979, -0.661470890045166, 0.0018524486804381013, -0.872414767742157, -0.036720532923936844, -0.19701111316680908, -0.4916768968105316, 0.22790323197841644, 0.5979887843132019, -0.6440964937210083, 0.769940972328186, 0.49750491976737976, -0.5633166432380676, 0.5921539664268494, -0.3378230333328247, 0.16556735336780548, -0.9470854997634888, 0.24826113879680634, 0.3415239155292511, -0.3104596436023712, -0.5802767872810364, 0.0836683064699173, 0.14068187773227692, 0.043680157512426376, -0.7063785791397095, 0.7275601029396057, -0.4924960434436798, 0.18150442838668823, -0.28423842787742615, -0.10221882164478302, 0.06481765955686569, 0.638486385345459, 0.16434593498706818, 0.48294809460639954, 0.9416285753250122, -0.5901254415512085, 0.3159930408000946, 0.40995314717292786, -0.22138763964176178, 0.8520815968513489, -0.7938879728317261, 0.11058866232633591, -0.15154613554477692, 0.5476667284965515, -0.9527284502983093, -0.26256948709487915, 0.6688516736030579, -0.5069593787193298, 0.5676488876342773, -0.26076021790504456, -0.263568252325058, -0.4428718090057373, -0.30250200629234314, 0.16232652962207794, 0.7296975255012512, -0.5185829997062683, 0.35970255732536316, 0.13404135406017303, 0.16676996648311615, -0.4851464331150055, -0.8720919489860535, -0.09980135411024094, -0.3606652021408081, -0.7885516285896301, 0.46338045597076416, -0.1335829496383667, 0.04914015159010887, 0.019775748252868652, 0.008155064657330513, -0.296880841255188, -0.028516314923763275, 0.3483663499355316, 0.21911713480949402, -0.07447617501020432, -0.17334967851638794, 0.11973550170660019, -0.15519942343235016, -0.06537924706935883, -0.38329634070396423, 0.454070121049881, 0.05696110427379608, -0.2071291208267212, -0.9612067937850952, 0.22353021800518036, 0.5854899883270264, -0.0768510177731514, 0.8924542665481567, 0.9013957977294922, -0.40856990218162537, -0.027637334540486336, -0.3562965989112854, -0.15032142400741577, -0.5004037618637085, -0.049884747713804245, -0.2152128666639328, -0.6913361549377441, 0.662153422832489, 0.0682341456413269, -0.034502048045396805, 0.6056768894195557, 0.3685329556465149, -0.2192407250404358, 0.8316004276275635, 0.5129054188728333, -0.10288430005311966, 0.7726696729660034, -0.7215788960456848, -0.13859976828098297, -0.9847309589385986, -0.2827097177505493, -0.35060983896255493, -0.6664766669273376, -0.3284541070461273, -0.3721042275428772, 0.4608571231365204, 0.4124627709388733, -0.7251759767532349, 0.47241342067718506, -0.5750478506088257, 0.12313538789749146, 0.3417305648326874, 0.5501056909561157, -0.15584468841552734, -0.12954764068126678, -0.19581367075443268, 0.0655963197350502, -0.6367153525352478, -0.2580260932445526, 0.57823646068573, 0.5252670049667358, 0.5350348353385925, -0.051658518612384796, 0.579443633556366, 0.007522818632423878, 0.3324882686138153, -0.5554888844490051, 0.5208702087402344, -0.018807996064424515, -0.5348386764526367, -0.22531658411026, -0.325077623128891, -1.003108024597168, 0.11132203787565231, -0.4546251595020294, -0.7183206677436829, 0.33987683057785034, 0.24101625382900238, -0.06035107374191284, 0.5110636353492737, -0.6622503995895386, 0.7783516645431519, -0.0014572445070371032, -0.62926185131073, 0.07589513808488846, -0.8423269987106323, 0.22685012221336365, 0.2799489200115204, -0.20850642025470734, 0.01602981425821781, -0.14083988964557648, 0.8257243633270264, -0.788037121295929, 0.8565086722373962, -0.5456986427307129, -0.03022427298128605, 0.3349863290786743, -0.03687072917819023, 0.5351512432098389, -0.15239624679088593, -0.24938255548477173, 0.05343485251069069, -0.09863775223493576, -0.5700621008872986, -0.3703112006187439, 0.6801300644874573, -0.68448406457901, -0.1745774894952774, -0.24510501325130463, -0.24499216675758362, 0.18589362502098083, 0.2635617256164551, 0.6550154685974121, 0.34213340282440186, 0.14410825073719025, 0.04979616403579712, 0.6397018432617188, -0.35253259539604187, 0.6618696451187134, 0.06448457390069962, -0.08607790619134903, -0.5554885268211365, 0.690696120262146, 0.00513839814811945, 0.3776892423629761, 0.24731288850307465, 0.16999542713165283, -0.22560995817184448, -0.4517011344432831, -0.447149395942688, 0.42226356267929077, -0.5915380120277405, -0.4343791902065277, -0.6025793552398682, -0.4229283928871155, -0.36664658784866333, -0.4815759062767029, -0.2676760256290436, -0.2726377844810486, -0.7104848027229309, 0.18376503884792328, 0.6035349369049072, 0.4713505208492279, -0.20811332762241364, 0.564872682094574, -0.2667423486709595, 0.24036598205566406, 0.2710210084915161, 0.38405320048332214, -0.03273775801062584, -0.5808982849121094, 0.0024698497727513313, 0.0893154963850975, -0.5071967244148254, -0.7524653077125549, 0.48531726002693176, 0.05116155743598938, 0.4669555425643921, 0.5336609482765198, -0.21499909460544586, 0.6055134534835815, -0.30831220746040344, 0.5599610805511475, 0.6140266060829163, -0.7875045537948608, 0.4816240966320038, -0.41338464617729187, 0.32124337553977966, 0.2950865626335144, 0.5616837739944458, -0.4147987961769104, -0.33111974596977234, -0.6985539793968201, -0.6461488008499146, 0.590856671333313, 0.2307852804660797, -0.09507865458726883, 0.31647491455078125, 0.6537946462631226, -0.32261842489242554, 0.15223392844200134, -0.7961612939834595, -0.4199020564556122, -0.25423935055732727, 0.04964308440685272, 0.0472399927675724, 0.09295377880334854, -0.05335419625043869, -0.482391357421875, 0.8628258109092712, -0.012440547347068787, 0.5735992789268494, 0.4961233139038086, 0.12461835145950317, -0.1967136114835739, -0.28651952743530273, 0.5670782923698425, 0.48371627926826477, -0.07625139504671097, -0.29767075181007385, 0.0354122631251812, -0.3781185746192932, 0.23044298589229584, -0.03526190668344498, -0.3326680362224579, -0.10889825224876404, 0.3304508328437805, 0.8254035115242004, -0.1672680526971817, -0.15258707106113434, 0.7525746822357178, 0.0541064515709877, -0.5412044525146484, -0.2704446017742157, 0.02860584855079651, 0.14023780822753906, 0.4575027525424957, 0.1345745474100113, 0.38727906346321106, 0.037464872002601624, -0.13033142685890198, 0.30233055353164673, 0.5605559349060059, -0.5708519816398621, -0.15175588428974152, 0.7388019561767578, 0.043148308992385864, -0.1087118610739708, 0.39041411876678467, -0.38868632912635803, -0.6935498118400574, 0.9331439733505249, 0.5223429203033447, 0.7492576241493225, -0.14841583371162415, 0.28032466769218445, 0.6876293420791626, 0.213802307844162, 0.08833052217960358, 0.20818768441677094, 0.1164708063006401, -0.6736969351768494, -0.3968643248081207, -0.41905802488327026, -0.044340264052152634, 0.16757309436798096, -0.4225342273712158, 0.44148969650268555, -0.7650204300880432, -0.21148815751075745, -0.08352453261613846, 0.06268922239542007, -0.6948392987251282, 0.4023377001285553, 0.018020132556557655, 1.2334152460098267, -0.8118461966514587, 0.810905396938324, 0.6148717403411865, -0.45600855350494385, -0.8534170389175415, 0.0032327959779649973, 0.0014824552927166224, -0.7693025469779968, 0.6337019205093384, 0.16680963337421417, -0.03149176761507988, 0.08822599798440933, -0.8059378266334534, -0.5436420440673828, 1.2443511486053467, 0.23482899367809296, -0.19128252565860748, 0.07670865207910538, -0.4954945147037506, 0.4379461109638214, -0.4379498362541199, 0.4708656370639801, 0.386531263589859, 0.5442455410957336, 0.430521160364151, -0.7757295370101929, 0.23209014534950256, -0.42169204354286194, 0.1062876433134079, 0.20600228011608124, -0.9774551391601562, 0.8919002413749695, -0.023270701989531517, -0.14054954051971436, 0.2739247679710388, 0.7191708087921143, 0.1808193325996399, 0.16220778226852417, 0.6015329957008362, 0.8040086627006531, 0.2992686927318573, -0.10826793313026428, 0.9349186420440674, -0.03533264994621277, 0.26904210448265076, 0.6472463011741638, 0.21445412933826447, 0.5408284068107605, 0.37430500984191895, -0.05860248580574989, 0.48668190836906433, 0.8087363243103027, 0.03801963850855827, 0.43105122447013855, 0.501828134059906, -0.2510421574115753, -0.10949595272541046, -0.04412597045302391, -0.32484927773475647, 0.10011112689971924, 0.26482832431793213, -0.2996263802051544, -0.25600963830947876, 0.303108811378479, 0.27233511209487915, -0.15106689929962158, -0.4194418489933014, 0.6651982665061951, -0.11046116054058075, -0.5356866717338562, 0.7546566128730774, -0.07370076328516006, 1.0549006462097168, -0.6925434470176697, 0.03441508114337921, -0.24142582714557648, 0.07190074771642685, -0.38305819034576416, -0.835426926612854, 0.18906907737255096, -0.2257121205329895, 0.27292466163635254, -0.3943791389465332, 0.7133272290229797, -0.37730082869529724, -0.36727553606033325, 0.49084776639938354, 0.13205310702323914, 0.35197246074676514, 0.1632048338651657, -1.0405131578445435, 0.2312997430562973, 0.08230224251747131, -0.4777710735797882, 0.23803910613059998, 0.3608377277851105, 0.20909471809864044, 0.710440456867218, 0.2939896285533905, 0.3326995074748993, 0.24751882255077362, -0.26129263639450073, 1.039898157119751, -0.24550971388816833, -0.32980459928512573, -0.5536080598831177, 0.7925957441329956, -0.3230510950088501, -0.4369533360004425, 0.5444405674934387, 0.29508230090141296, 0.7597437500953674, -0.13879676163196564, 0.6753393411636353, -0.4300166666507721, 0.1939171850681305, -0.6518188714981079, 0.845790445804596, -0.8721665740013123, -0.29780328273773193, -0.33593758940696716, -0.6635961532592773, -0.2991332709789276, 0.826696515083313, -0.15643560886383057, 0.22395271062850952, 0.549175500869751, 0.946303129196167, -0.2515546381473541, -0.5566682815551758, 0.09693557024002075, 0.07724665850400925, 0.3005425035953522, 0.6919140219688416, 0.6498901844024658, -0.625812292098999, 0.262346088886261, -0.5146466493606567, -0.49914655089378357, -0.10557006299495697, -0.940251886844635, -0.8573195338249207, -0.718439519405365, -0.6598404049873352, -0.6825903654098511, -0.2465064972639084, 0.6953424215316772, 1.1259565353393555, -0.6254211664199829, -0.18891942501068115, -0.32841458916664124, 0.0813804343342781, -0.20725274085998535, -0.21139883995056152, 0.3345431387424469, -0.09841979295015335, -0.8235064744949341, 0.03355032578110695, 0.21912868320941925, 0.5426391959190369, -0.0717739686369896, -0.3884193003177643, -0.4163345396518707, -0.25583359599113464, 0.2748146951198578, 0.4795669913291931, -0.4347844123840332, -0.18100377917289734, -0.27762553095817566, -0.19443683326244354, 0.13141323626041412, 0.5541177988052368, -0.4049741327762604, 0.21172206103801727, 0.5390373468399048, 0.402731716632843, 0.8095625638961792, -0.13877037167549133, 0.1410549283027649, -0.5534808039665222, 0.4993989169597626, 0.04565498232841492, 0.4188254475593567, 0.09053073078393936, -0.31280556321144104, 0.4252240061759949, 0.30585265159606934, -0.7563819289207458, -0.41762274503707886, 0.18262451887130737, -1.342063069343567, -0.13126176595687866, 0.9333956241607666, -0.36872974038124084, -0.38283175230026245, 0.19392774999141693, -0.4398432672023773, 0.3543846905231476, -0.35487887263298035, 0.18146584928035736, 0.3513636887073517, -0.2038806974887848, -0.3828580975532532, -0.3980182409286499, 0.610093355178833, 0.2295885980129242, -0.8101077675819397, -0.5039734840393066, 0.5334829092025757, 0.3551854193210602, 0.29171159863471985, 0.8521792888641357, -0.11712198704481125, 0.10400772839784622, -0.10398891568183899, 0.2375793755054474, 0.01996280439198017, -0.1639871448278427, -0.5122247934341431, -0.10601850599050522, -0.22223587334156036, -0.41522905230522156 ]
timm/mobilevit_s.cvnets_in1k
timm
"2023-04-24T22:23:12Z"
36,746
2
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.02178", "license:other", "region:us" ]
image-classification
"2023-04-24T22:23:00Z"
--- tags: - image-classification - timm library_name: timm license: other datasets: - imagenet-1k --- # Model card for mobilevit_s.cvnets_in1k A MobileViT image classification model. Trained on ImageNet-1k by paper authors. See license details at https://github.com/apple/ml-cvnets/blob/main/LICENSE ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 5.6 - GMACs: 2.0 - Activations (M): 19.9 - Image size: 256 x 256 - **Papers:** - MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer: https://arxiv.org/abs/2110.02178 - **Original:** https://github.com/apple/ml-cvnets - **Dataset:** ImageNet-1k ## 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('mobilevit_s.cvnets_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) ``` ### 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( 'mobilevit_s.cvnets_in1k', 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, 32, 128, 128]) # torch.Size([1, 64, 64, 64]) # torch.Size([1, 96, 32, 32]) # torch.Size([1, 128, 16, 16]) # torch.Size([1, 640, 8, 8]) 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( 'mobilevit_s.cvnets_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, 640, 8, 8) 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{mehta2022mobilevit, title={MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformer}, author={Sachin Mehta and Mohammad Rastegari}, booktitle={International Conference on Learning Representations}, year={2022} } ```
[ -0.40451058745384216, -0.2894144654273987, -0.10158467292785645, 0.16277724504470825, -0.4615824818611145, -0.3419232964515686, -0.054242558777332306, -0.21420176327228546, 0.3302323520183563, 0.4015832245349884, -0.4878561496734619, -0.7630055546760559, -0.6186762452125549, -0.2697882354259491, -0.14922712743282318, 0.9602386951446533, -0.07648417353630066, -0.04408964514732361, -0.275394082069397, -0.6500223278999329, -0.2601211369037628, -0.3129640817642212, -0.6720746755599976, -0.3396944999694824, 0.29274865984916687, 0.42608213424682617, 0.5502744913101196, 0.5806198716163635, 0.624200165271759, 0.4253041744232178, 0.002191619947552681, 0.06212642788887024, -0.18019673228263855, -0.26934489607810974, 0.39754176139831543, -0.6435452699661255, -0.4042535722255707, 0.2939192056655884, 0.5893372297286987, 0.272491455078125, -0.03138847276568413, 0.5852289795875549, 0.1394066959619522, 0.6027443408966064, -0.34530672430992126, 0.03786610811948776, -0.5019131898880005, 0.139927476644516, -0.12988890707492828, 0.1351887285709381, -0.19286584854125977, -0.5117557644844055, 0.18210695683956146, -0.4344427287578583, 0.3585946261882782, -0.05608873441815376, 1.2855207920074463, 0.30822888016700745, -0.18787971138954163, -0.06443975120782852, -0.29668042063713074, 0.8204056024551392, -0.6749581694602966, 0.23943786323070526, 0.2987593710422516, 0.19319435954093933, 0.010690753348171711, -0.9329438805580139, -0.6061198115348816, -0.17974868416786194, -0.031910475343465805, 0.05468213930726051, -0.12617836892604828, -0.09814045578241348, 0.27461791038513184, 0.24678337574005127, -0.5270264148712158, -0.05016319826245308, -0.6022838354110718, -0.2161700278520584, 0.6315135955810547, 0.07560446113348007, 0.3861916959285736, -0.2782953977584839, -0.5367618799209595, -0.3409097194671631, -0.3565831482410431, 0.5996435880661011, 0.051647916436195374, 0.09470285475254059, -0.7039549350738525, 0.4908415675163269, 0.13986000418663025, 0.5974512100219727, 0.039383407682180405, -0.5529290437698364, 0.7009839415550232, -0.03452127426862717, -0.5658563375473022, -0.048349447548389435, 1.0980321168899536, 0.49472957849502563, 0.20902138948440552, 0.2097589373588562, -0.028215724974870682, -0.28133389353752136, -0.011319157667458057, -1.1726752519607544, -0.24298176169395447, 0.27395573258399963, -0.7803916931152344, -0.5380170345306396, 0.3091857135295868, -0.5841737389564514, -0.13450153172016144, 0.027924690395593643, 0.5586727261543274, -0.42628613114356995, -0.33853963017463684, 0.09922394156455994, -0.07043465971946716, 0.4128846228122711, 0.09338652342557907, -0.7065344452857971, 0.15342417359352112, 0.09886756539344788, 1.1396623849868774, 0.06576331704854965, -0.3747728765010834, -0.2042752057313919, -0.3401831090450287, -0.19491200149059296, 0.39589300751686096, -0.06094910204410553, -0.41961875557899475, -0.29964566230773926, 0.34898442029953003, -0.31843140721321106, -0.715467631816864, 0.5455345511436462, -0.06940587610006332, 0.1479051262140274, -0.04364155977964401, -0.0036469255574047565, -0.5689878463745117, 0.3195515275001526, -0.28362563252449036, 1.3780517578125, 0.2702580690383911, -0.9254559278488159, 0.37074899673461914, -0.5238949656486511, -0.2744390666484833, -0.2861209213733673, -0.03281576931476593, -1.180047631263733, -0.12108085304498672, 0.24264873564243317, 0.8784677386283875, -0.2546398639678955, -0.03635250777006149, -0.4736393988132477, -0.29304832220077515, 0.32823827862739563, -0.0003636045439634472, 1.0184389352798462, 0.17876984179019928, -0.4644838273525238, 0.24674081802368164, -0.7315500974655151, 0.14898507297039032, 0.4369521737098694, -0.3154667615890503, -0.18773427605628967, -0.4095250964164734, 0.12339474260807037, 0.3803694546222687, 0.08802326023578644, -0.6580548882484436, 0.4124521315097809, -0.1081199198961258, 0.5432388186454773, 0.45895063877105713, -0.19507788121700287, 0.40963125228881836, -0.29998868703842163, 0.3089755177497864, 0.30181169509887695, 0.4387388527393341, -0.1480180323123932, -0.6329102516174316, -0.8763722777366638, -0.4943554699420929, 0.30339303612709045, 0.6025353670120239, -0.6352636814117432, 0.363435298204422, -0.3167664408683777, -0.9028473496437073, -0.4619859457015991, 0.07217711955308914, 0.41014888882637024, 0.5464963912963867, 0.2834245264530182, -0.5064423084259033, -0.514886200428009, -0.904603123664856, 0.00017640240548644215, 0.02199643850326538, 0.051886726170778275, 0.405733197927475, 0.7737429141998291, -0.2509351670742035, 0.7854098677635193, -0.35720697045326233, -0.2697826325893402, -0.16872313618659973, 0.09533556550741196, 0.32858848571777344, 0.8323745131492615, 0.8552221059799194, -0.8778815865516663, -0.515350341796875, -0.09152655303478241, -1.0164480209350586, 0.20837566256523132, -0.17824694514274597, -0.016926107928156853, 0.052938200533390045, 0.1419762670993805, -0.6641584634780884, 0.7928364872932434, 0.25281965732574463, -0.3043655753135681, 0.47695910930633545, -0.18497483432292938, 0.2991833984851837, -1.220265507698059, 0.03039715066552162, 0.4381777346134186, -0.23541311919689178, -0.4440928101539612, -0.10672853142023087, 0.1639782190322876, -0.10473674535751343, -0.6846000552177429, 0.5856176614761353, -0.46909600496292114, -0.14329367876052856, -0.12577030062675476, -0.24987177550792694, -0.06893934309482574, 0.6542465090751648, -0.18322156369686127, 0.5400305986404419, 0.8727297782897949, -0.6677694916725159, 0.5324685573577881, 0.47047027945518494, -0.2331286519765854, 0.3542792797088623, -0.6244823336601257, 0.05488515645265579, -0.020957794040441513, 0.2326139211654663, -0.9347288608551025, -0.2013322114944458, 0.39256811141967773, -0.6980416774749756, 0.4202357530593872, -0.6329606771469116, -0.3207780718803406, -0.6599801182746887, -0.5564967393875122, 0.4236014783382416, 0.7412581443786621, -0.7492918968200684, 0.5695505142211914, 0.33932042121887207, 0.19893644750118256, -0.6228556036949158, -0.8647276759147644, -0.29260122776031494, -0.4291743338108063, -0.8167919516563416, 0.4361225366592407, 0.20300723612308502, 0.12011292576789856, -0.025219203904271126, -0.17986784875392914, -0.18643726408481598, -0.18643532693386078, 0.8274773955345154, 0.4461911916732788, -0.2548683285713196, -0.12116177380084991, -0.24093542993068695, -0.02014756016433239, -0.0006712810718454421, -0.34912675619125366, 0.49352237582206726, -0.3562406897544861, -0.11978854238986969, -0.841429591178894, -0.23312005400657654, 0.6967955827713013, -0.24287723004817963, 0.7855913639068604, 1.1206862926483154, -0.4188584089279175, 0.09374413639307022, -0.38113147020339966, -0.06214313581585884, -0.5058197975158691, 0.34908345341682434, -0.5697827339172363, -0.44905778765678406, 0.8614377975463867, -0.06053546443581581, 0.0666322186589241, 0.6885691285133362, 0.4483173191547394, -0.06832199543714523, 0.8261883854866028, 0.6735262870788574, 0.08086870610713959, 0.7023323178291321, -0.9536446928977966, -0.22756123542785645, -0.8381905555725098, -0.6717868447303772, -0.39225199818611145, -0.38131487369537354, -0.758000373840332, -0.4303045868873596, 0.4148263931274414, 0.18736234307289124, -0.33449018001556396, 0.5247887372970581, -0.8874019980430603, 0.07501965761184692, 0.612014651298523, 0.568968653678894, -0.40070709586143494, 0.31480637192726135, -0.44880884885787964, -0.04559873044490814, -0.7425408959388733, -0.3568558096885681, 1.0878620147705078, 0.48513877391815186, 0.7557978630065918, -0.1845977008342743, 0.6458885073661804, -0.23111869394779205, 0.3270968198776245, -0.621936023235321, 0.604819118976593, -0.13969673216342926, -0.35164982080459595, -0.03305888921022415, -0.28435224294662476, -0.9687538146972656, 0.22437649965286255, -0.4884982109069824, -0.8251979351043701, 0.26850104331970215, 0.15624944865703583, -0.3158491849899292, 0.7463120818138123, -0.8426660895347595, 0.9977531433105469, -0.16822288930416107, -0.5022348165512085, 0.18743251264095306, -0.7165970206260681, 0.37824827432632446, 0.2013121098279953, -0.12613017857074738, -0.09459236264228821, 0.26573941111564636, 1.1098006963729858, -0.6392109394073486, 0.8051665425300598, -0.5140611529350281, 0.43864676356315613, 0.6859244108200073, -0.18988606333732605, 0.36819401383399963, -0.0016267950413748622, -0.09253475815057755, 0.28942298889160156, 0.04555242136120796, -0.47231462597846985, -0.5006950497627258, 0.628533661365509, -0.8738315105438232, -0.2221994400024414, -0.3958791494369507, -0.35831525921821594, 0.2716474235057831, 0.07848488539457321, 0.622397243976593, 0.642122209072113, 0.13172124326229095, 0.25897032022476196, 0.6879972815513611, -0.49220091104507446, 0.4718158543109894, -0.17799371480941772, -0.25307849049568176, -0.4078701138496399, 0.9938814640045166, 0.07832074910402298, 0.017624011263251305, 0.060329027473926544, 0.11494167149066925, -0.3499273955821991, -0.5655940771102905, -0.49483296275138855, 0.22147516906261444, -0.5952524542808533, -0.33462873101234436, -0.5992089509963989, -0.4232363700866699, -0.43712079524993896, -0.10943542420864105, -0.5475219488143921, -0.40315163135528564, -0.4033937156200409, 0.25095850229263306, 0.6238042116165161, 0.5713467001914978, -0.03379153832793236, 0.6844866871833801, -0.7225903272628784, 0.1431439071893692, 0.2287692427635193, 0.3552011549472809, -0.2141122817993164, -0.8562449812889099, -0.32948818802833557, -0.017563026398420334, -0.5745020508766174, -0.677893877029419, 0.5544649362564087, 0.05820927023887634, 0.43733683228492737, 0.45471635460853577, -0.3266631066799164, 0.7922016382217407, -0.0584738552570343, 0.7311611175537109, 0.5314578413963318, -0.6783618927001953, 0.6416839361190796, -0.12598039209842682, 0.22284288704395294, 0.17869378626346588, 0.3925483822822571, -0.1881290227174759, 0.15084871649742126, -0.8388447761535645, -0.7058956027030945, 0.6982508897781372, 0.23770539462566376, -0.040467146784067154, 0.5153184533119202, 0.758695662021637, 0.002791336039081216, 0.017232190817594528, -0.8660320043563843, -0.4951173961162567, -0.523675799369812, -0.3490010201931, 0.0677286759018898, -0.09427719563245773, 0.1684587597846985, -0.8255801200866699, 0.6206585764884949, 0.07082369178533554, 0.7379946112632751, 0.40662986040115356, -0.11449870467185974, 0.08571455627679825, -0.3606504797935486, 0.6860454678535461, 0.25948020815849304, -0.3141307532787323, -0.01870841160416603, 0.3221965432167053, -0.8089300394058228, 0.2055528163909912, 0.04508083686232567, -0.03722561523318291, 0.10645636171102524, 0.24556443095207214, 0.9172631502151489, -0.09178271144628525, 0.022911541163921356, 0.5800614953041077, -0.1514085829257965, -0.503778874874115, -0.31945252418518066, 0.158585324883461, -0.07331719249486923, 0.33986055850982666, 0.39175376296043396, 0.4924643337726593, -0.08236848562955856, -0.24256056547164917, 0.22909168899059296, 0.5634928345680237, -0.45649802684783936, -0.3246212899684906, 0.8171630501747131, -0.044554125517606735, -0.20004712045192719, 0.7173438668251038, -0.1180306226015091, -0.6095714569091797, 1.0570849180221558, 0.3378779888153076, 0.8801515698432922, -0.23756930232048035, 0.054689694195985794, 0.8695425391197205, 0.33525314927101135, 0.010529004968702793, 0.23334777355194092, 0.0746946930885315, -0.6784068942070007, 0.021764490753412247, -0.5685415863990784, 0.08574186265468597, 0.28906863927841187, -0.5536954402923584, 0.400139719247818, -0.6154897212982178, -0.43666699528694153, 0.2482258379459381, 0.2162308692932129, -0.8794881105422974, 0.420844703912735, -0.08581184595823288, 0.8854610323905945, -0.7783666849136353, 0.9847568869590759, 0.9189338088035583, -0.5767970085144043, -0.9787505865097046, -0.08834445476531982, -0.005128280259668827, -0.8825059533119202, 0.6866364479064941, 0.5082539319992065, 0.011351821012794971, 0.013988381251692772, -0.8785632252693176, -0.5685828328132629, 1.4020036458969116, 0.3367931842803955, -0.18014143407344818, 0.29279589653015137, 0.03210669010877609, -0.00385170616209507, -0.5673433542251587, 0.46110954880714417, 0.17154349386692047, 0.2991901636123657, 0.24546483159065247, -0.8007044196128845, 0.1282757967710495, -0.2888580560684204, 0.11732389032840729, 0.21005113422870636, -0.8217872977256775, 0.8863224387168884, -0.6233915686607361, -0.08255219459533691, -0.021999690681695938, 0.6308311820030212, 0.12229853123426437, 0.3174673914909363, 0.514045238494873, 0.6928837895393372, 0.5393455028533936, -0.23003076016902924, 0.845207154750824, 0.0849677175283432, 0.6416161060333252, 0.5399850010871887, 0.33077049255371094, 0.5372487306594849, 0.3710182309150696, -0.158030167222023, 0.4504728317260742, 1.1605432033538818, -0.3770413398742676, 0.38217413425445557, 0.15293505787849426, -0.13706393539905548, -0.03734605014324188, 0.1892155408859253, -0.4383567273616791, 0.6465389132499695, 0.22566471993923187, -0.5664077997207642, -0.06948908418416977, 0.2982754111289978, -0.07868311554193497, -0.40613383054733276, -0.35349544882774353, 0.3868181109428406, 0.04502156004309654, -0.3418613076210022, 0.9641594290733337, 0.16026560962200165, 0.9843184351921082, -0.34245455265045166, 0.06649275124073029, -0.15758971869945526, 0.1809556633234024, -0.4927174746990204, -0.7173106074333191, 0.28644928336143494, -0.22637349367141724, -0.061604950577020645, 0.06591376662254333, 0.8588265180587769, -0.27287134528160095, -0.43689754605293274, 0.06306809186935425, 0.22777020931243896, 0.5367718935012817, -0.018715692684054375, -1.2600891590118408, 0.16779091954231262, 0.24496068060398102, -0.5625962615013123, 0.24026086926460266, 0.24890412390232086, -0.0017336963210254908, 0.9027538299560547, 0.6486952900886536, -0.23126371204853058, 0.25707513093948364, -0.3471895456314087, 0.8635039925575256, -0.6641698479652405, -0.28356924653053284, -0.9225554466247559, 0.8109673857688904, -0.1544264703989029, -0.5836630463600159, 0.6036108136177063, 0.7593826055526733, 0.7584235072135925, -0.10794178396463394, 0.6038843393325806, -0.2446938455104828, -0.029904132708907127, -0.4212934374809265, 0.7934582233428955, -0.7340024709701538, -0.04426517337560654, -0.07635190337896347, -0.6220450401306152, -0.3476438522338867, 0.8826186656951904, -0.21544815599918365, 0.25099560618400574, 0.4922715723514557, 0.9874485731124878, -0.49138784408569336, -0.2921091318130493, 0.22869755327701569, 0.06054510548710823, -0.02594512142241001, 0.39108502864837646, 0.3704662024974823, -0.9481986165046692, 0.48849359154701233, -0.47492149472236633, -0.2961813807487488, -0.2420092225074768, -0.601764976978302, -1.0648802518844604, -0.9041476845741272, -0.5865842700004578, -0.7253358960151672, -0.23535871505737305, 0.9260029792785645, 1.19677734375, -0.5573958158493042, -0.1543537974357605, 0.13485144078731537, 0.18755477666854858, -0.09300609678030014, -0.20041750371456146, 0.5962138772010803, 0.03500622883439064, -0.6373447775840759, -0.2564204931259155, 0.0060395365580916405, 0.4819452464580536, 0.08408475667238235, -0.25103759765625, -0.11214076727628708, -0.22631248831748962, 0.47181496024131775, 0.4340868294239044, -0.5685842633247375, -0.06712708622217178, -0.24742363393306732, -0.2515643835067749, 0.47455957531929016, 0.5518923997879028, -0.6052232980728149, 0.26106682419776917, 0.26499560475349426, 0.30626651644706726, 1.016165852546692, -0.2916232645511627, -0.09165892004966736, -0.8030573725700378, 0.6808177828788757, -0.2523074746131897, 0.44046592712402344, 0.3429947793483734, -0.2727774679660797, 0.525098443031311, 0.40633606910705566, -0.44861453771591187, -0.8490791916847229, -0.08916293829679489, -1.2467600107192993, -0.05172247067093849, 0.8812477588653564, -0.2973184883594513, -0.5646275281906128, 0.3163956105709076, -0.15089832246303558, 0.6151396036148071, -0.10279833525419235, 0.4084395170211792, 0.1668746918439865, -0.13135768473148346, -0.6264569163322449, -0.6838803887367249, 0.4808446168899536, 0.03852181136608124, -0.6668545007705688, -0.6016805768013, -0.1792626976966858, 0.8107789158821106, 0.2531978487968445, 0.6164258122444153, -0.14105744659900665, 0.13112570345401764, 0.10529341548681259, 0.6227567195892334, -0.31315183639526367, 0.021064938977360725, -0.29662826657295227, -0.028001924976706505, -0.21665196120738983, -0.8766732215881348 ]
liyucheng/frame_finder
liyucheng
"2023-09-14T23:06:41Z"
36,709
0
transformers
[ "transformers", "pytorch", "roberta", "token-classification", "en", "dataset:liyucheng/FrameNet_v17", "license:cc", "autotrain_compatible", "endpoints_compatible", "region:us" ]
token-classification
"2023-09-14T23:00:14Z"
--- license: cc datasets: - liyucheng/FrameNet_v17 language: - en --- # Frame Classification This model is trained FrameNet v1.7. Check out the training dataset [here](https://huggingface.co/datasets/liyucheng/FrameNet_v17). The data is loaded with `ds = dataset.load_dataset('liyucheng/FrameNet_v17', name = 'frame_label')`. This flatten all frame annotation to specific sentences, making frame classification a sequence tagging task. # Metrics ``` {'accuracy_score': 0.8382018348623853, 'precision': 0.8382018348623853, 'recall': 0.8382018348623853, 'micro_f1': 0.8382018348623853, 'macro_f1': 0.45824850358482677} ```
[ -0.4769241511821747, -0.5114449858665466, -0.05287942662835121, 0.08869915455579758, -0.2647143304347992, -0.25267305970191956, 0.07204587757587433, -0.28229814767837524, 0.431978702545166, 0.6258171200752258, -0.7413694262504578, -0.7764824032783508, -0.6551855206489563, -0.04615702107548714, -0.370654821395874, 1.3153094053268433, 0.0018831704510375857, 0.18925131857395172, -0.035225216299295425, -0.295733243227005, -0.4060046076774597, -0.5837119817733765, -0.7048680186271667, -0.3947235643863678, 0.48463425040245056, 0.38302797079086304, 0.5565425753593445, 0.9416868090629578, 0.4666030704975128, 0.21691203117370605, -0.4620407521724701, 0.05565949156880379, -0.4189896285533905, -0.28272661566734314, -0.0028552182484418154, -0.46655938029289246, -0.7464762330055237, 0.07909592241048813, 0.7592437267303467, 0.6951242089271545, 0.19049614667892456, 0.6961262822151184, -0.267739474773407, 0.4942590892314911, -0.27799826860427856, 0.3667198717594147, -0.2768316864967346, 0.48710986971855164, -0.47295644879341125, -0.05999418720602989, -0.40360477566719055, -0.07163381576538086, 0.06737682223320007, -0.5554118752479553, 0.3273312449455261, 0.3621133267879486, 1.365203619003296, 0.4468538463115692, -0.2585241198539734, 0.16866962611675262, -0.20929750800132751, 0.3715156614780426, -0.968109130859375, -0.0194463562220335, 0.6444342136383057, 0.17059293389320374, 0.10256560146808624, -0.8226695656776428, -0.4230532944202423, 0.2371950000524521, -0.17613525688648224, -0.2203969657421112, -0.0044171568006277084, 0.0665973499417305, 0.7946555018424988, 0.4814978837966919, -0.7927001118659973, 0.4176649749279022, -0.8144978880882263, -0.37240320444107056, 0.8129550814628601, 0.3837733268737793, 0.06931225955486298, -0.5030807256698608, -0.6548618674278259, -0.1306908130645752, -0.18211467564105988, 0.1922367811203003, 0.10084638744592667, 0.46214449405670166, -0.1788405478000641, 0.6757411360740662, -0.7085755467414856, 0.8084241151809692, 0.06373884528875351, 0.01019088551402092, 1.0907628536224365, -0.10943002998828888, -0.5287588238716125, 0.2800379693508148, 1.0935834646224976, 0.6451449394226074, 0.4019610285758972, 0.2768860459327698, -0.32437169551849365, -0.08590076118707657, 0.41309788823127747, -0.8442371487617493, -0.33974412083625793, 0.10162501037120819, -0.3994262218475342, -0.5620707869529724, 0.4517909288406372, -0.5378308296203613, -0.17241281270980835, -0.033227112144231796, 0.3904840648174286, -0.4541276693344116, -0.23054412007331848, 0.25846612453460693, 0.0072050876915454865, 0.390720009803772, 0.06885052472352982, -0.8348297476768494, 0.003098727436736226, 0.5808598399162292, 1.0052824020385742, 0.30439549684524536, -0.15845848619937897, -0.4040173292160034, -0.493338018655777, -0.22144527733325958, 0.6673910021781921, -0.06913084536790848, -0.24567951261997223, -0.1411043107509613, 0.48680147528648376, -0.17154784500598907, -0.3104035258293152, 0.6946157813072205, -0.63874751329422, 0.2871916592121124, -0.06394720077514648, -0.840454638004303, -0.6269751787185669, 0.35841429233551025, -0.8691561222076416, 1.0972630977630615, 0.14947351813316345, -1.0245156288146973, 0.48906534910202026, -0.6577447056770325, -0.29042449593544006, 0.23992007970809937, -0.0010293693048879504, -0.715214729309082, -0.15400822460651398, -0.05620897561311722, 0.8485324382781982, 0.24409665167331696, 0.2911377549171448, -0.45931607484817505, -0.2645382583141327, 0.08067207783460617, -0.17055122554302216, 0.7160261869430542, 0.2894931733608246, -0.29673412442207336, 0.2685083746910095, -0.9052581191062927, 0.24062319099903107, 0.04308478161692619, -0.09672296047210693, -0.08905425667762756, -0.42063653469085693, 0.22466443479061127, 0.10364151000976562, 0.06599918007850647, -0.4856920838356018, 0.5222269892692566, -0.4869609475135803, 0.3262802064418793, 0.625735342502594, -0.1388484239578247, 0.3841173052787781, -0.4143209457397461, 0.43381887674331665, 0.21465684473514557, -0.18102724850177765, -0.2655765414237976, -0.6855639219284058, -0.7717472314834595, -0.20694352686405182, 0.5891723036766052, 0.8699226379394531, -0.7063846588134766, 0.7673895359039307, -0.43572521209716797, -0.697239100933075, -0.1982206106185913, -0.2607536017894745, 0.533376157283783, 0.6872358322143555, 0.27714675664901733, -0.6095853447914124, -0.5941493511199951, -0.7543492913246155, 0.3958124816417694, -0.028764843940734863, 0.20213128626346588, -0.11215894669294357, 0.6908052563667297, -0.21915830671787262, 0.8003799319267273, -0.5678872466087341, -0.3130200505256653, -0.10646111518144608, 0.23443573713302612, 0.4425778090953827, 0.7233781814575195, 0.43705153465270996, -0.8111481666564941, -0.10049982368946075, -0.3887018859386444, -0.8571214079856873, 0.0193919874727726, -0.01507734227925539, 0.008456260897219181, 0.3632305860519409, 0.38879191875457764, -0.26315364241600037, 0.8081681728363037, 0.21654944121837616, -0.5813577175140381, 0.6008120179176331, 0.11769194155931473, 0.04220527037978172, -1.2843868732452393, 0.04920963570475578, 0.3788265287876129, -0.45052140951156616, -0.566171407699585, -0.16345909237861633, -0.06531321257352829, 0.0841553807258606, -0.5704187750816345, 0.5730104446411133, -0.27806273102760315, -0.047678105533123016, -0.14734521508216858, -0.07868187129497528, 0.008122751489281654, 0.5249419212341309, 0.2103986144065857, 0.3875131607055664, 0.6544170379638672, -0.3913976550102234, 0.6852198839187622, 0.7322804927825928, -0.6621807217597961, 0.11310691386461258, -0.5782842636108398, 0.04771414026618004, -0.046930741518735886, 0.1506725400686264, -0.9572209715843201, -0.6088800430297852, 0.6981892585754395, -0.6589131355285645, 0.3702431619167328, -0.021597549319267273, -0.2953801453113556, -0.455353707075119, -0.20989160239696503, 0.3537692725658417, 0.29445937275886536, -0.4943920969963074, 0.04305623844265938, 0.3537611663341522, 0.24451906979084015, -0.82245272397995, -1.135353922843933, -0.3450346887111664, -0.1154402419924736, -0.5385080575942993, 0.32947108149528503, 0.13160060346126556, 0.20851008594036102, 0.014301883056759834, -0.1808442622423172, -0.27814781665802, 0.03300398960709572, 0.5243562459945679, 0.4617674946784973, -0.4833410978317261, 0.2668776214122772, -0.2607590854167938, -0.40675100684165955, 0.020569980144500732, -0.029588019475340843, 0.49615678191185, -0.25624120235443115, -0.08481606096029282, -0.5297672152519226, -0.09285782277584076, 0.18281352519989014, -0.20964621007442474, 0.7276612520217896, 0.9721828699111938, -0.7147843241691589, -0.34241199493408203, -0.11198930442333221, 0.10730879753828049, -0.3886027932167053, 0.664840042591095, -0.6783189177513123, -1.1085375547409058, 0.49202054738998413, 0.013150099664926529, -0.3769269287586212, 0.6863483786582947, 0.18921126425266266, 0.004521566443145275, 0.6024168133735657, 0.4893724322319031, -0.225221648812294, 0.3963316082954407, -0.6107114553451538, 0.0025256825610995293, -0.8861507773399353, -0.24734807014465332, -0.30536243319511414, -0.3734557628631592, -0.7448695302009583, -0.22422558069229126, 0.0135978227481246, 0.49195703864097595, -0.577094316482544, 0.8882288336753845, -0.6872906684875488, 0.5517711043357849, 0.5603635907173157, 0.5041550993919373, -0.08554460108280182, -0.20427371561527252, 0.08095683157444, 0.13560622930526733, -0.7862640023231506, -0.6234727501869202, 0.9711511731147766, 0.5847312808036804, 0.5089378356933594, -0.23403300344944, 0.7253258228302002, 0.21897226572036743, 0.07646442949771881, -0.7207368612289429, 0.6647189259529114, -0.4285834729671478, -0.7588952779769897, -0.33487799763679504, -0.5502265691757202, -0.705673098564148, -0.1585475653409958, -0.4037771224975586, -0.9667842984199524, -0.14385034143924713, 0.02173881232738495, -0.6213667392730713, 0.540243923664093, -0.47707629203796387, 1.5672951936721802, -0.03816018998622894, 0.009963705204427242, 0.17041926085948944, -0.9604277014732361, 0.4668324887752533, 0.16699838638305664, 0.07215568423271179, -0.5331048369407654, 0.14862222969532013, 0.8472747206687927, -0.17054936289787292, 1.081188440322876, -0.19243542850017548, 0.34928256273269653, 0.08184368163347244, -0.1970229595899582, -0.001778302015736699, 0.1544276475906372, -0.08395063877105713, 0.4514555335044861, 0.23754647374153137, -0.38864630460739136, -0.12377190589904785, 0.45570534467697144, -0.6179277896881104, -0.20818108320236206, -0.7417892813682556, -0.2898656725883484, 0.15065918862819672, 0.18031613528728485, 0.6868255734443665, 0.8661161661148071, -0.192413330078125, 0.07336660474538803, 0.911343514919281, -0.04256093129515648, 0.4473949074745178, 0.1148587316274643, -0.5320203304290771, -0.5212540030479431, 0.778173565864563, 0.2280786782503128, 0.07736878842115402, 0.4798985421657562, -0.20587070286273956, -0.17583712935447693, -0.35978972911834717, -0.5878111124038696, 0.04888112470507622, -0.8689974546432495, -0.5048122406005859, -0.22675539553165436, -0.6803106069564819, -0.5076266527175903, 0.15280704200267792, -0.3390936255455017, -0.4788999557495117, -0.5889080762863159, -0.4694012999534607, 0.5689005255699158, 0.6906139850616455, -0.014449331909418106, 0.6256524920463562, -1.132921576499939, 0.13383027911186218, -0.11729737371206284, 0.5907633900642395, -0.38165387511253357, -0.9602267742156982, -0.4604291319847107, -0.23182755708694458, -0.2029632031917572, -0.8079487681388855, 0.5586016178131104, 0.28462275862693787, 0.6450226306915283, 0.2591742277145386, 0.019336916506290436, 0.4454745352268219, -0.5474343299865723, 0.9242753386497498, 0.05756566300988197, -0.8781756162643433, 0.6844803690910339, -0.07937464863061905, 0.3333067297935486, 0.4630250036716461, 0.7409144043922424, -0.4700741171836853, 0.1671547293663025, -0.7810800075531006, -1.0381330251693726, 1.0490894317626953, -0.17151643335819244, 0.048891715705394745, 0.03509228304028511, 0.5769175291061401, -0.13473527133464813, 0.03918945789337158, -0.8316628336906433, -0.5089794397354126, -0.2849362790584564, -0.538723349571228, -0.21514520049095154, -0.12270846962928772, 0.07300356775522232, -0.3828326463699341, 0.8895776867866516, -0.24415087699890137, 0.2521536946296692, 0.31494781374931335, -0.130637988448143, 0.0647277757525444, -0.0922929123044014, 0.7817061543464661, 0.32282939553260803, -0.16781042516231537, -0.05002952739596367, 0.18417304754257202, -0.3130877912044525, -0.03346824273467064, 0.2976369261741638, -0.1535656750202179, 0.12393434345722198, 0.5578385591506958, 1.3726540803909302, 0.24310480058193207, -0.24000616371631622, 0.5022252202033997, 0.0826772078871727, -0.19866134226322174, -0.46351248025894165, 0.35995543003082275, -0.28084900975227356, 0.45290178060531616, 0.034061629325151443, 0.4562221169471741, 0.18984735012054443, -0.05062083899974823, 0.6451503038406372, -0.014237209223210812, -0.6585401892662048, -0.14437586069107056, 0.7657110095024109, -0.012388345785439014, -0.501181960105896, 0.6448628902435303, -0.6427790522575378, -0.7246043086051941, 0.675491452217102, 0.07224583625793457, 0.9792062640190125, -0.007988973520696163, 0.18651914596557617, 1.083498477935791, 0.18655933439731598, -0.3185440003871918, 0.10347073525190353, 0.06163160875439644, -1.007390022277832, -0.49703794717788696, -0.9253166317939758, -0.24567444622516632, 0.0944872722029686, -0.9600498080253601, 0.4366360604763031, -0.44169938564300537, -0.43870893120765686, 0.4171226918697357, -0.02130504883825779, -0.43569624423980713, 0.4266337454319, 0.6154317259788513, 1.3711256980895996, -0.8436076045036316, 1.1743464469909668, 0.7563173770904541, -0.7767518162727356, -0.9959983825683594, -0.21959789097309113, 0.16085094213485718, -0.7410193085670471, 0.8889892101287842, 0.8607987761497498, 0.40464523434638977, 0.02601756528019905, -0.6784057021141052, -0.702904224395752, 1.2756016254425049, -0.1872672736644745, -0.5645257234573364, -0.16728055477142334, 0.061578307300806046, 0.3279420733451843, -0.44096603989601135, 0.2712029218673706, 0.34376710653305054, 0.338691383600235, -0.05362899973988533, -1.289591908454895, -0.0072347321547567844, -0.546396017074585, 0.16660267114639282, 0.10193245112895966, -0.6487550139427185, 0.7209123373031616, 0.03309864178299904, -0.11026544868946075, 0.3646469712257385, 0.9421983957290649, 0.10604462772607803, 0.5377296209335327, 0.5655977129936218, 0.9870601296424866, 0.6571410298347473, -0.5249029994010925, 0.6423236727714539, -0.17819149792194366, 0.7737628817558289, 1.2886945009231567, -0.04266643151640892, 0.7247046828269958, -0.02130371518433094, -0.0470079705119133, 0.5112001299858093, 1.052430272102356, -0.4494996666908264, 0.3407948911190033, 0.4238482713699341, 0.04029359668493271, -0.31516945362091064, 0.3340708017349243, -0.24549587070941925, 0.48627203702926636, 0.3871150612831116, -0.5349224805831909, 0.069205641746521, 0.3489888608455658, 0.20763367414474487, -0.028201889246702194, -0.5526129007339478, 0.7687726020812988, -0.06497019529342651, -0.3469878137111664, 0.5354488492012024, -0.028728803619742393, 0.9798061847686768, -0.6144526600837708, -0.004768431652337313, -0.0077785006724298, 0.3532980680465698, -0.397196501493454, -1.098860263824463, 0.570285439491272, -0.17790447175502777, -0.4127991497516632, -0.23331701755523682, 0.8136536478996277, -0.38483211398124695, -0.3646728992462158, 0.1863299310207367, 0.17966273427009583, 0.35039305686950684, 0.13441458344459534, -0.7957152724266052, 0.1864439696073532, 0.06067134067416191, -0.6135796308517456, 0.07701040804386139, 0.40220192074775696, 0.07799853384494781, 0.6816521286964417, 0.24723948538303375, -0.13386590778827667, 0.1609070599079132, -0.21748237311840057, 0.7674415111541748, -0.9954648017883301, -0.31898432970046997, -0.5810491442680359, 0.838205099105835, -0.20396189391613007, -0.9571571350097656, 0.6123767495155334, 0.6637333035469055, 1.3436274528503418, -0.15656663477420807, 0.47926995158195496, -0.33493396639823914, 0.5862678289413452, -0.6812790632247925, 0.6783475279808044, -0.43895283341407776, 0.02966599352657795, 0.11538278311491013, -0.410199373960495, -0.49469831585884094, 0.8322669863700867, -0.40493443608283997, -0.014139082282781601, 0.4914359152317047, 1.0501024723052979, 0.12638495862483978, 0.24682438373565674, 0.2628125846385956, 0.3096846342086792, -0.2491322159767151, 0.5040041208267212, 0.43967947363853455, -0.8132320046424866, 0.09455762803554535, -0.5752381682395935, -0.5482205152511597, 0.00058279576478526, -0.8356608748435974, -0.9614613056182861, -0.6870269179344177, -0.5880913734436035, -0.7100875973701477, -0.13632503151893616, 1.1351301670074463, 1.027936577796936, -1.0541647672653198, -0.09937340766191483, 0.07309980690479279, -0.19102534651756287, 0.020185450091958046, -0.35783976316452026, 0.16166375577449799, -0.5535001158714294, -0.6458466053009033, 0.10462267696857452, -0.15124553442001343, 0.04750888794660568, -0.02632976323366165, 0.056243814527988434, -0.49906811118125916, -0.48515400290489197, 0.1992240697145462, 0.3687925338745117, -0.593191921710968, -0.5515038371086121, -0.057219889014959335, -0.26996850967407227, 0.3365924060344696, 0.14956235885620117, -0.6193072199821472, 0.3343485891819, 0.5751264691352844, 0.5828151702880859, 0.6784053444862366, -0.17535288631916046, 0.20243693888187408, -1.0000135898590088, 0.23558634519577026, 0.02468917891383171, 0.5662153959274292, 0.35664913058280945, -0.2230423241853714, 0.7618377208709717, 0.539150059223175, -0.8195242285728455, -0.7509344220161438, -0.017774593085050583, -1.3436670303344727, -0.04316230118274689, 0.8921918869018555, -0.5095039010047913, -0.7372850775718689, 0.42034652829170227, -0.212260439991951, 0.49338284134864807, -0.12040559202432632, 0.2926921844482422, 0.7100063562393188, -0.1057528406381607, -0.2062678337097168, -0.5081859827041626, 0.5071897506713867, 0.07850906997919083, -0.5572885870933533, -0.39912480115890503, 0.3881727457046509, 0.4019414186477661, 0.47122693061828613, 0.5289637446403503, 0.08398056775331497, 0.06356550008058548, 0.10236915200948715, 0.3899310231208801, -0.22209985554218292, -0.22634047269821167, -0.7098757028579712, 0.02346271462738514, -0.3156070113182068, -0.607125997543335 ]
timm/fbnetv3_b.ra2_in1k
timm
"2023-04-27T22:48:34Z"
36,602
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:2006.02049", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-16T05:36:34Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for fbnetv3_b.ra2_in1k A FBNet-v3 image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * RandAugment `RA2` recipe. Inspired by and evolved from EfficientNet RandAugment recipes. Published as `B` recipe in [ResNet Strikes Back](https://arxiv.org/abs/2110.00476). * RMSProp (TF 1.0 behaviour) optimizer, EMA weight averaging * Step (exponential decay w/ staircase) LR schedule with warmup ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 8.6 - GMACs: 0.4 - Activations (M): 7.0 - Image size: train = 224 x 224, test = 256 x 256 - **Papers:** - FBNetV3: Joint Architecture-Recipe Search using Predictor Pretraining: https://arxiv.org/abs/2006.02049 - ResNet strikes back: An improved training procedure in timm: https://arxiv.org/abs/2110.00476 - **Dataset:** ImageNet-1k - **Original:** https://github.com/huggingface/pytorch-image-models ## 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('fbnetv3_b.ra2_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) ``` ### 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( 'fbnetv3_b.ra2_in1k', 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, 16, 112, 112]) # torch.Size([1, 24, 56, 56]) # torch.Size([1, 40, 28, 28]) # torch.Size([1, 120, 14, 14]) # torch.Size([1, 1344, 7, 7]) 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( 'fbnetv3_b.ra2_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, 1344, 7, 7) 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{dai2021fbnetv3, title={Fbnetv3: Joint architecture-recipe search using predictor pretraining}, author={Dai, Xiaoliang and Wan, Alvin and Zhang, Peizhao and Wu, Bichen and He, Zijian and Wei, Zhen and Chen, Kan and Tian, Yuandong and Yu, Matthew and Vajda, Peter and others}, booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, pages={16276--16285}, year={2021} } ``` ```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}} } ``` ```bibtex @inproceedings{wightman2021resnet, title={ResNet strikes back: An improved training procedure in timm}, author={Wightman, Ross and Touvron, Hugo and Jegou, Herve}, booktitle={NeurIPS 2021 Workshop on ImageNet: Past, Present, and Future} } ```
[ -0.44094011187553406, -0.438218355178833, 0.022907476872205734, 0.10688093304634094, -0.2993112802505493, -0.361959844827652, -0.19328086078166962, -0.42973893880844116, 0.26468485593795776, 0.4995078444480896, -0.4861890971660614, -0.6512545347213745, -0.7340608239173889, -0.1218833327293396, -0.0668812170624733, 0.8882013559341431, -0.26039427518844604, 0.011636277660727501, -0.13112863898277283, -0.49425193667411804, -0.30855488777160645, -0.30933552980422974, -0.9251549243927002, -0.5504826307296753, 0.4807099401950836, 0.19323550164699554, 0.537833571434021, 0.6156036853790283, 0.6429532766342163, 0.4655528664588928, -0.0348651260137558, 0.09845684468746185, -0.19369268417358398, -0.2068837434053421, 0.36182716488838196, -0.684968888759613, -0.4595016837120056, 0.30111822485923767, 0.6364783048629761, 0.23949147760868073, 0.02408013492822647, 0.30951154232025146, 0.05429309979081154, 0.5852290987968445, -0.2992669343948364, 0.2114235758781433, -0.42858201265335083, 0.2644917070865631, -0.20909249782562256, -0.020014068111777306, -0.3348087668418884, -0.40331435203552246, 0.18101158738136292, -0.5278487205505371, 0.4928942322731018, 0.04607633128762245, 1.3641701936721802, 0.22224028408527374, 0.060182835906744, 0.03589239716529846, -0.25419342517852783, 0.8450034856796265, -0.7683701515197754, 0.27997341752052307, 0.33463719487190247, 0.2425643652677536, -0.1363961100578308, -1.1020065546035767, -0.5823032259941101, -0.1527336835861206, -0.15223193168640137, -0.03478550910949707, -0.27196675539016724, -0.02585623413324356, 0.2881608307361603, 0.32876908779144287, -0.42495593428611755, 0.17855995893478394, -0.5075154900550842, -0.2500801384449005, 0.5114805698394775, -0.008805802091956139, 0.3196380138397217, -0.18046393990516663, -0.4737381935119629, -0.5318069458007812, -0.4001915156841278, 0.25590813159942627, 0.2391548901796341, 0.2637667953968048, -0.5551578402519226, 0.3063682019710541, 0.16432665288448334, 0.6872711777687073, 0.03494890406727791, -0.27411872148513794, 0.7113257646560669, 0.016032563522458076, -0.37520694732666016, -0.13079965114593506, 1.0855568647384644, 0.42083966732025146, 0.2174142748117447, 0.16022764146327972, -0.19018743932247162, -0.4036279022693634, -0.039723951369524, -1.2215708494186401, -0.4452836811542511, 0.2901936173439026, -0.6296691298484802, -0.44774943590164185, 0.2948134243488312, -0.5622210502624512, -0.06968861073255539, -0.02125760167837143, 0.6006051898002625, -0.5677686333656311, -0.4417526423931122, 0.032176364213228226, -0.20519018173217773, 0.3999740779399872, 0.2512459456920624, -0.5968404412269592, 0.11803426593542099, 0.32942312955856323, 1.2154842615127563, 0.16562916338443756, -0.5084753036499023, -0.32694077491760254, -0.3402780592441559, -0.3008877635002136, 0.4256930947303772, -0.1250147521495819, -0.022311387583613396, -0.3240774869918823, 0.35226204991340637, -0.16440656781196594, -0.7189257740974426, 0.09765028208494186, -0.31609439849853516, 0.29270750284194946, -0.09291497617959976, -0.1678394228219986, -0.5778158903121948, 0.28690215945243835, -0.5597900152206421, 1.2997761964797974, 0.3825044333934784, -0.8954776525497437, 0.407209187746048, -0.5622864365577698, -0.18622800707817078, -0.30710914731025696, -0.1121220588684082, -1.0985593795776367, -0.09470357745885849, 0.3171875476837158, 0.8308612108230591, -0.35627585649490356, -0.02100430615246296, -0.5768516063690186, -0.3441731631755829, 0.28799837827682495, 0.06565941125154495, 0.966193675994873, 0.14184844493865967, -0.5392957925796509, 0.25798192620277405, -0.5341556072235107, 0.1766677349805832, 0.6259539127349854, -0.18869958817958832, -0.049974046647548676, -0.6016448140144348, 0.1218431368470192, 0.37157803773880005, 0.0725945383310318, -0.5402141213417053, 0.15747304260730743, -0.3173142075538635, 0.45226776599884033, 0.6986005306243896, -0.12936224043369293, 0.22843046486377716, -0.5160595774650574, 0.32783496379852295, 0.3814008831977844, 0.23529841005802155, -0.03466623276472092, -0.573997437953949, -0.7635380625724792, -0.4501946270465851, 0.3940604329109192, 0.40842756628990173, -0.6276895403862, 0.4876820743083954, -0.12184988707304001, -0.7866619825363159, -0.4679693281650543, 0.08411292731761932, 0.6206859350204468, 0.49808377027511597, 0.40742766857147217, -0.5799434781074524, -0.5623325705528259, -0.8524867296218872, 0.024790281429886818, 0.08118399977684021, 0.03794452175498009, 0.32739827036857605, 0.6551834940910339, -0.1290009617805481, 0.6466318964958191, -0.47085854411125183, -0.3349015712738037, -0.3219624161720276, 0.12734217941761017, 0.43267861008644104, 0.8523132801055908, 0.9846069812774658, -0.6647436618804932, -0.439810186624527, -0.07776186615228653, -0.8751713633537292, 0.23989205062389374, -0.00512615917250514, -0.22038069367408752, 0.34561118483543396, 0.19344498217105865, -0.5363852977752686, 0.6453220248222351, 0.16404618322849274, -0.15514706075191498, 0.38193997740745544, -0.13870713114738464, 0.2320622205734253, -1.2467774152755737, 0.11068107932806015, 0.34261876344680786, -0.027517441660165787, -0.3829697370529175, 0.045010071247816086, -0.0055282083339989185, -0.03348392993211746, -0.5502623915672302, 0.758368730545044, -0.5628232359886169, -0.28400254249572754, -0.1286819875240326, -0.2813946306705475, 0.05296740680932999, 0.7023649215698242, -0.00077394163236022, 0.4027268588542938, 0.7992168068885803, -0.43720588088035583, 0.4248819947242737, 0.419566810131073, -0.21725156903266907, 0.2808370590209961, -0.6445122957229614, 0.2788766920566559, 0.004266027361154556, 0.3141615688800812, -0.9485725164413452, -0.3092215359210968, 0.43759527802467346, -0.6647946238517761, 0.6974280476570129, -0.4771682322025299, -0.45719313621520996, -0.653712272644043, -0.4744715392589569, 0.4081075191497803, 0.6504007577896118, -0.7944011688232422, 0.5308830738067627, 0.13405907154083252, 0.30162668228149414, -0.6690386533737183, -0.9233779311180115, -0.3282362222671509, -0.3171793222427368, -0.6783204674720764, 0.4025050699710846, 0.16844923794269562, 0.1704360842704773, 0.13049404323101044, -0.16330589354038239, -0.1535811871290207, -0.09916143119335175, 0.5728008151054382, 0.31747961044311523, -0.3886364996433258, -0.2473786324262619, -0.40051189064979553, -0.09662535041570663, 0.032723017036914825, -0.3563845157623291, 0.6753932237625122, -0.2907315194606781, -0.10195877403020859, -0.8753717541694641, -0.15412220358848572, 0.404075026512146, -0.19359995424747467, 0.8671236038208008, 1.2361359596252441, -0.5728603005409241, -0.015813486650586128, -0.5466626286506653, -0.390359491109848, -0.5101598501205444, 0.4604504406452179, -0.38092753291130066, -0.47363537549972534, 0.8401029706001282, 0.06116339564323425, 0.06847008317708969, 0.6240586042404175, 0.3533233404159546, -0.055345021188259125, 0.6480094790458679, 0.5574619174003601, 0.20011240243911743, 0.8028227686882019, -0.9972163438796997, -0.20907023549079895, -0.8281319737434387, -0.532886266708374, -0.341203510761261, -0.6360207796096802, -0.5632985234260559, -0.4122820198535919, 0.35934919118881226, 0.12681901454925537, -0.3805454671382904, 0.44814103841781616, -0.8064628839492798, 0.15449386835098267, 0.7939849495887756, 0.6684461236000061, -0.5154440999031067, 0.35035642981529236, -0.34509849548339844, -0.08822157979011536, -0.8189359307289124, -0.13616690039634705, 1.1452641487121582, 0.4256967604160309, 0.49646514654159546, -0.19293172657489777, 0.9004610776901245, -0.31049349904060364, 0.4215962886810303, -0.5706218481063843, 0.5949068069458008, -0.23412801325321198, -0.46606743335723877, -0.05893593654036522, -0.4577537477016449, -1.0727322101593018, 0.06257800757884979, -0.29968008399009705, -0.6913127899169922, 0.10942903161048889, 0.26576468348503113, -0.30204302072525024, 0.820733904838562, -0.7856751680374146, 1.0215200185775757, -0.21292944252490997, -0.4912457764148712, 0.08950307220220566, -0.7627477049827576, 0.31529492139816284, 0.1488531082868576, -0.25358834862709045, -0.04961923137307167, 0.3130455017089844, 1.1289479732513428, -0.6516322493553162, 0.8456305861473083, -0.5831082463264465, 0.4816203713417053, 0.46456626057624817, -0.18414397537708282, 0.2710036337375641, -0.179764986038208, -0.1801382154226303, 0.41452643275260925, -0.020681364461779594, -0.47525790333747864, -0.586704432964325, 0.578891932964325, -1.0765000581741333, -0.2950035035610199, -0.44728800654411316, -0.36227065324783325, 0.18143704533576965, 0.2470618337392807, 0.561143159866333, 0.7255446910858154, 0.29955899715423584, 0.31887343525886536, 0.5221807956695557, -0.5047617554664612, 0.39748960733413696, -0.05321044847369194, -0.2495531588792801, -0.6429819464683533, 0.8581796288490295, 0.22150662541389465, 0.06523597985506058, 0.2366415113210678, 0.21227820217609406, -0.26669764518737793, -0.6737609505653381, -0.1802586168050766, 0.42419248819351196, -0.6640162467956543, -0.5610160231590271, -0.5815227031707764, -0.461063027381897, -0.3909967541694641, -0.1350862681865692, -0.4530710279941559, -0.21544167399406433, -0.39469069242477417, 0.18896131217479706, 0.7822068333625793, 0.6105321645736694, -0.20021909475326538, 0.6658848524093628, -0.548462986946106, 0.13315896689891815, 0.04804646596312523, 0.50103759765625, -0.07243615388870239, -0.7746503353118896, -0.24418336153030396, -0.07307727634906769, -0.4353446662425995, -0.6769062876701355, 0.4918181002140045, 0.13385309278964996, 0.5079382658004761, 0.2580426037311554, -0.24719542264938354, 0.785872220993042, -0.03554626926779747, 0.5177689790725708, 0.4760829508304596, -0.504331648349762, 0.7106284499168396, -0.041238997131586075, 0.14069315791130066, 0.1455187052488327, 0.3818730115890503, -0.09203989058732986, 0.00960830319672823, -1.014952301979065, -0.8154433965682983, 1.0600738525390625, 0.10832410305738449, -0.17905019223690033, 0.2941463589668274, 0.8613239526748657, 0.03752245381474495, 0.026803351938724518, -0.7575347423553467, -0.37179455161094666, -0.39692801237106323, -0.25382640957832336, -0.014423014596104622, -0.06591938436031342, -0.042597267776727676, -0.6658447980880737, 0.7618768811225891, 0.00871363002806902, 0.8158765435218811, 0.29570868611335754, 0.0697888657450676, -0.10433265566825867, -0.5217006206512451, 0.4050755500793457, 0.2287747710943222, -0.4883788228034973, -0.028666459023952484, 0.13793689012527466, -0.6269201636314392, 0.06750373542308807, 0.2273178994655609, 0.05473067983984947, 0.0008433020557276905, 0.5066195130348206, 1.0336912870407104, 0.07940839231014252, 0.14523032307624817, 0.4588778614997864, -0.12753038108348846, -0.5081807971000671, -0.3305131494998932, 0.21511179208755493, -0.14371269941329956, 0.46286386251449585, 0.24260278046131134, 0.43995893001556396, -0.2881928086280823, -0.2033911794424057, 0.39402052760124207, 0.4608532786369324, -0.21886104345321655, -0.3790426552295685, 0.7520897388458252, -0.22271674871444702, -0.17447888851165771, 0.9383244514465332, -0.05294511839747429, -0.4746921956539154, 1.041532278060913, 0.47749096155166626, 0.9816886186599731, -0.14505285024642944, 0.01720700040459633, 0.8483742475509644, 0.2771012783050537, -0.046807803213596344, 0.27497392892837524, 0.2096344232559204, -0.8317391872406006, 0.06263238936662674, -0.6371066570281982, 0.052677471190690994, 0.4536018967628479, -0.5808483958244324, 0.37715375423431396, -0.8476963043212891, -0.4656027853488922, 0.2085839807987213, 0.3974531292915344, -1.079503059387207, 0.2934017777442932, -0.08350829780101776, 0.8322940468788147, -0.7415613532066345, 0.8165147304534912, 0.932684063911438, -0.6540449857711792, -1.1497485637664795, -0.011883988976478577, 0.05592912808060646, -1.0512269735336304, 0.6852536797523499, 0.6118645668029785, 0.08749992400407791, 0.10054180771112442, -0.7501856088638306, -0.6422380805015564, 1.4990026950836182, 0.5433669090270996, -0.07936485856771469, 0.20546084642410278, -0.13533101975917816, 0.18263238668441772, -0.4135817885398865, 0.5047729015350342, 0.2081492394208908, 0.39894726872444153, 0.43114423751831055, -0.6727812886238098, 0.26515689492225647, -0.31486135721206665, 0.1576753556728363, 0.2449294924736023, -0.8159270882606506, 0.9208735823631287, -0.49045902490615845, -0.0840490385890007, 0.025717714801430702, 0.7108713984489441, 0.29672712087631226, 0.23420539498329163, 0.5084825754165649, 0.7866600751876831, 0.4658954441547394, -0.3918111026287079, 0.9152472615242004, -0.042962685227394104, 0.470948189496994, 0.652604877948761, 0.2762514054775238, 0.6350076794624329, 0.31874242424964905, -0.253505676984787, 0.4096735715866089, 1.1504899263381958, -0.3121584951877594, 0.3627796173095703, 0.1747802346944809, 0.12375425547361374, -0.07011709362268448, 0.19288618862628937, -0.48749083280563354, 0.5658776164054871, 0.21502000093460083, -0.5549395680427551, -0.1690814048051834, 0.0417318232357502, 0.06243725121021271, -0.34773123264312744, -0.13176026940345764, 0.524376630783081, 0.03879855200648308, -0.4502550959587097, 0.9296445846557617, 0.10949009656906128, 0.8100789785385132, -0.46199798583984375, 0.014238460920751095, -0.3067522346973419, 0.28328943252563477, -0.3594934046268463, -0.7581956386566162, 0.29992613196372986, -0.3880217969417572, -0.01939653791487217, 0.010124915279448032, 0.6255384683609009, -0.24812978506088257, -0.3924265205860138, 0.2577621638774872, 0.2620445787906647, 0.51542729139328, 0.08595407009124756, -1.2684272527694702, 0.2629720866680145, 0.10529962182044983, -0.5766116976737976, 0.33349084854125977, 0.4025362432003021, 0.11882906407117844, 0.6552218198776245, 0.6343594789505005, -0.11038621515035629, 0.0849962905049324, -0.20699092745780945, 0.8639220595359802, -0.5435470938682556, -0.3075268864631653, -0.7832997441291809, 0.5484669804573059, -0.06294092535972595, -0.5590270161628723, 0.42860978841781616, 0.5306830406188965, 0.917373538017273, -0.04723045229911804, 0.44360125064849854, -0.27608203887939453, 0.003472793847322464, -0.5748071670532227, 0.6584427356719971, -0.7708662748336792, -0.01944885402917862, -0.2489924430847168, -0.7760828733444214, -0.44174280762672424, 0.8406229615211487, -0.3404080867767334, 0.5112387537956238, 0.520386815071106, 1.0292515754699707, -0.4011857509613037, -0.29583656787872314, 0.06250981986522675, 0.14524075388908386, 0.12862861156463623, 0.44313737750053406, 0.39071735739707947, -0.7806463241577148, 0.26007789373397827, -0.6875883340835571, -0.24027375876903534, -0.22499598562717438, -0.7319428324699402, -0.9996404647827148, -0.9329282641410828, -0.6197965741157532, -0.7113527059555054, -0.10357872396707535, 0.9830567836761475, 1.0747992992401123, -0.7082920074462891, -0.08062448352575302, 0.014604410156607628, 0.06162676960229874, -0.3353655934333801, -0.22070090472698212, 0.6148703098297119, -0.16327209770679474, -0.6249462366104126, -0.2643616199493408, 0.004077425226569176, 0.4426708519458771, 0.0984407439827919, -0.2431463897228241, -0.23976865410804749, -0.34724393486976624, 0.18112963438034058, 0.35143929719924927, -0.7854441404342651, -0.2215213030576706, -0.2941795885562897, 0.00984454806894064, 0.39524903893470764, 0.4690062999725342, -0.5453270077705383, 0.3417818546295166, 0.2940726578235626, 0.43699681758880615, 0.8752841949462891, -0.3482951819896698, 0.171962171792984, -0.9561889171600342, 0.6520842909812927, -0.11869851499795914, 0.46992936730384827, 0.45405423641204834, -0.29852068424224854, 0.6169022917747498, 0.4137028157711029, -0.4270108938217163, -0.9267263412475586, -0.07608005404472351, -1.017943024635315, -0.10266626626253128, 0.8516542315483093, -0.4263594150543213, -0.5662537217140198, 0.4857396185398102, -0.0012126339133828878, 0.7038677334785461, -0.09540477395057678, 0.41906240582466125, 0.2742985188961029, -0.13157406449317932, -0.6585347652435303, -0.5841755270957947, 0.5187677145004272, 0.21321307122707367, -0.5476141571998596, -0.44211286306381226, 0.07848314195871353, 0.7007125616073608, 0.24274246394634247, 0.5781254768371582, -0.17762020230293274, 0.17179834842681885, 0.03956099972128868, 0.5009356141090393, -0.5283151865005493, -0.19618616998195648, -0.24819310009479523, -0.027334140613675117, -0.02623375877737999, -0.6699468493461609 ]
nbroad/ESG-BERT
nbroad
"2023-04-26T04:50:33Z"
36,579
43
transformers
[ "transformers", "pytorch", "safetensors", "bert", "text-classification", "en", "arxiv:1910.09700", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: - en widget: - text: "In fiscal year 2019, we reduced our comprehensive carbon footprint for the fourth consecutive year—down 35 percent compared to 2015, when Apple’s carbon emissions peaked, even as net revenue increased by 11 percent over that same period. In the past year, we avoided over 10 million metric tons from our emissions reduction initiatives—like our Supplier Clean Energy Program, which lowered our footprint by 4.4 million metric tons. " example_title: "Reduced carbon footprint" - text: "We believe it is essential to establish validated conflict-free sources of 3TG within the Democratic Republic of the Congo (the “DRC”) and adjoining countries (together, with the DRC, the “Covered Countries”), so that these minerals can be procured in a way that contributes to economic growth and development in the region. To aid in this effort, we have established a conflict minerals policy and an internal team to implement the policy." example_title: "Conflict minerals policy" --- # Model Card for ESG-BERT Domain Specific BERT Model for Text Mining in Sustainable Investing # Model Details ## Model Description - **Developed by:** [Mukut Mukherjee](https://www.linkedin.com/in/mukutm/), [Charan Pothireddi](https://www.linkedin.com/in/sree-charan-pothireddi-6a0a3587/) and [Parabole.ai](https://www.linkedin.com/in/sree-charan-pothireddi-6a0a3587/) - **Shared by [Optional]:** HuggingFace - **Model type:** Language model - **Language(s) (NLP):** en - **License:** More information needed - **Related Models:** - **Parent Model:** BERT - **Resources for more information:** - [GitHub Repo](https://github.com/mukut03/ESG-BERT) - [Blog Post](https://towardsdatascience.com/nlp-meets-sustainable-investing-d0542b3c264b?source=friends_link&sk=1f7e6641c3378aaff319a81decf387bf) # Uses ## Direct Use Text Mining in Sustainable Investing ## Downstream Use [Optional] The applications of ESG-BERT can be expanded way beyond just text classification. It can be fine-tuned to perform various other downstream NLP tasks in the domain of Sustainable Investing. ## Out-of-Scope Use The model should not be used to intentionally create hostile or alienating environments for people. # Bias, Risks, and Limitations Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. ## Recommendations Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recomendations. # Training Details ## Training Data More information needed ## Training Procedure <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. --> ### Preprocessing More information needed ### Speeds, Sizes, Times More information needed # Evaluation ## Testing Data, Factors & Metrics ### Testing Data The fine-tuned model for text classification is also available [here](https://drive.google.com/drive/folders/1Qz4HP3xkjLfJ6DGCFNeJ7GmcPq65_HVe?usp=sharing). It can be used directly to make predictions using just a few steps. First, download the fine-tuned pytorch_model.bin, config.json, and vocab.txt ### Factors More information needed ### Metrics More information needed ## Results ESG-BERT was further trained on unstructured text data with accuracies of 100% and 98% for Next Sentence Prediction and Masked Language Modelling tasks. Fine-tuning ESG-BERT for text classification yielded an F-1 score of 0.90. For comparison, the general BERT (BERT-base) model scored 0.79 after fine-tuning, and the sci-kit learn approach scored 0.67. # Model Examination More information needed # Environmental Impact Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). - **Hardware Type:** More information needed - **Hours used:** More information needed - **Cloud Provider:** information needed - **Compute Region:** More information needed - **Carbon Emitted:** More information needed # Technical Specifications [optional] ## Model Architecture and Objective More information needed ## Compute Infrastructure More information needed ### Hardware More information needed ### Software JDK 11 is needed to serve the model # Citation <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> **BibTeX:** More information needed **APA:** More information needed # Glossary [optional] <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. --> More information needed # More Information [optional] More information needed # Model Card Authors [optional] [Mukut Mukherjee](https://www.linkedin.com/in/mukutm/), [Charan Pothireddi](https://www.linkedin.com/in/sree-charan-pothireddi-6a0a3587/) and [Parabole.ai](https://www.linkedin.com/in/sree-charan-pothireddi-6a0a3587/), in collaboration with the Ezi Ozoani and the HuggingFace Team # Model Card Contact More information needed # How to Get Started with the Model Use the code below to get started with the model. <details> <summary> Click to expand </summary> ``` pip install torchserve torch-model-archiver pip install torchvision pip install transformers ``` Next up, we'll set up the handler script. It is a basic handler for text classification that can be improved upon. Save this script as "handler.py" in your directory. [1] ``` from abc import ABC import json import logging import os import torch from transformers import AutoModelForSequenceClassification, AutoTokenizer from ts.torch_handler.base_handler import BaseHandler logger = logging.getLogger(__name__) class TransformersClassifierHandler(BaseHandler, ABC): """ Transformers text classifier handler class. This handler takes a text (string) and as input and returns the classification text based on the serialized transformers checkpoint. """ def __init__(self): super(TransformersClassifierHandler, self).__init__() self.initialized = False def initialize(self, ctx): self.manifest = ctx.manifest properties = ctx.system_properties model_dir = properties.get("model_dir") self.device = torch.device("cuda:" + str(properties.get("gpu_id")) if torch.cuda.is_available() else "cpu") # Read model serialize/pt file self.model = AutoModelForSequenceClassification.from_pretrained(model_dir) self.tokenizer = AutoTokenizer.from_pretrained(model_dir) self.model.to(self.device) self.model.eval() logger.debug('Transformer model from path {0} loaded successfully'.format(model_dir)) # Read the mapping file, index to object name mapping_file_path = os.path.join(model_dir, "index_to_name.json") if os.path.isfile(mapping_file_path): with open(mapping_file_path) as f: self.mapping = json.load(f) else: logger.warning('Missing the index_to_name.json file. Inference output will not include class name.') self.initialized = True def preprocess(self, data): """ Very basic preprocessing code - only tokenizes. Extend with your own preprocessing steps as needed. """ text = data[0].get("data") if text is None: text = data[0].get("body") sentences = text.decode('utf-8') logger.info("Received text: '%s'", sentences) inputs = self.tokenizer.encode_plus( sentences, add_special_tokens=True, return_tensors="pt" ) return inputs def inference(self, inputs): """ Predict the class of a text using a trained transformer model. """ # NOTE: This makes the assumption that your model expects text to be tokenized # with "input_ids" and "token_type_ids" - which is true for some popular transformer models, e.g. bert. # If your transformer model expects different tokenization, adapt this code to suit # its expected input format. prediction = self.model( inputs['input_ids'].to(self.device), token_type_ids=inputs['token_type_ids'].to(self.device) )[0].argmax().item() logger.info("Model predicted: '%s'", prediction) if self.mapping: prediction = self.mapping[str(prediction)] return [prediction] def postprocess(self, inference_output): # TODO: Add any needed post-processing of the model predictions here return inference_output _service = TransformersClassifierHandler() def handle(data, context): try: if not _service.initialized: _service.initialize(context) if data is None: return None data = _service.preprocess(data) data = _service.inference(data) data = _service.postprocess(data) return data except Exception as e: raise e ``` TorcheServe uses a format called MAR (Model Archive). We can convert our PyTorch model to a .mar file using this command: ``` torch-model-archiver --model-name "bert" --version 1.0 --serialized-file ./bert_model/pytorch_model.bin --extra-files "./bert_model/config.json,./bert_model/vocab.txt" --handler "./handler.py" ``` Move the .mar file into a new directory: ``` mkdir model_store && mv bert.mar model_store ``` Finally, we can start TorchServe using the command: ``` torchserve --start --model-store model_store --models bert=bert.mar ``` We can now query the model from another terminal window using the Inference API. We pass a text file containing text that the model will try to classify. ``` curl -X POST http://127.0.0.1:8080/predictions/bert -T predict.txt ``` This returns a label number which correlates to a textual label. This is stored in the label_dict.txt dictionary file. ``` __label__Business_Ethics : 0 __label__Data_Security : 1 __label__Access_And_Affordability : 2 __label__Business_Model_Resilience : 3 __label__Competitive_Behavior : 4 __label__Critical_Incident_Risk_Management : 5 __label__Customer_Welfare : 6 __label__Director_Removal : 7 __label__Employee_Engagement_Inclusion_And_Diversity : 8 __label__Employee_Health_And_Safety : 9 __label__Human_Rights_And_Community_Relations : 10 __label__Labor_Practices : 11 __label__Management_Of_Legal_And_Regulatory_Framework : 12 __label__Physical_Impacts_Of_Climate_Change : 13 __label__Product_Quality_And_Safety : 14 __label__Product_Design_And_Lifecycle_Management : 15 __label__Selling_Practices_And_Product_Labeling : 16 __label__Supply_Chain_Management : 17 __label__Systemic_Risk_Management : 18 __label__Waste_And_Hazardous_Materials_Management : 19 __label__Water_And_Wastewater_Management : 20 __label__Air_Quality : 21 __label__Customer_Privacy : 22 __label__Ecological_Impacts : 23 __label__Energy_Management : 24 __label__GHG_Emissions : 25 ``` <\details>
[ -0.21359875798225403, -0.6975100040435791, 0.33314254879951477, 0.0851220041513443, -0.17250776290893555, -0.16856025159358978, -0.2190178483724594, -0.4965033233165741, 0.01323438435792923, 0.42955324053764343, -0.4805026054382324, -0.662227213382721, -0.7677626609802246, 0.05384892225265503, -0.3664642870426178, 1.277313470840454, 0.005591503344476223, 0.007017461117357016, -0.02065524458885193, 0.10050642490386963, -0.2892097234725952, -0.6048703789710999, -0.7193379998207092, -0.41882550716400146, 0.29484280943870544, 0.08165056258440018, 0.3585703670978546, 0.4853162169456482, 0.5002066493034363, 0.37986189126968384, -0.21122510731220245, -0.031952496618032455, -0.26929256319999695, -0.1289062798023224, -0.06470370292663574, -0.39428067207336426, -0.40303823351860046, 0.11470252275466919, 0.3848232328891754, 0.25550708174705505, -0.10059035569429398, 0.2893027663230896, 0.012034736573696136, 0.25925448536872864, -0.3232848644256592, 0.3751586675643921, -0.6359331011772156, -0.019419768825173378, -0.012871112674474716, -0.1268424242734909, -0.6225593686103821, -0.19586598873138428, 0.365862101316452, -0.5248031616210938, 0.4485987424850464, 0.14795805513858795, 1.268819808959961, 0.16503386199474335, -0.3749147951602936, -0.4035649001598358, -0.5049907565116882, 0.8733652234077454, -0.835831880569458, 0.2823200821876526, 0.36493510007858276, 0.10067608207464218, 0.07601900398731232, -0.9348083734512329, -0.6271435022354126, -0.12115392833948135, -0.27673453092575073, 0.2516132593154907, -0.04032548889517784, 0.17389674484729767, 0.3239890933036804, 0.2988128066062927, -0.43913590908050537, -0.07861512899398804, -0.5263360142707825, -0.1370885670185089, 0.7089710235595703, 0.07322622835636139, 0.28394192457199097, -0.47441214323043823, -0.422553151845932, -0.34591132402420044, -0.21633197367191315, 0.03733844682574272, 0.5310336947441101, 0.3855789005756378, -0.30779242515563965, 0.4690231382846832, 0.05443999171257019, 0.45194968581199646, -0.0010629452299326658, -0.06807874143123627, 0.4048765003681183, -0.2681279182434082, -0.37138593196868896, 0.0008873601327650249, 0.8472954034805298, 0.25329357385635376, 0.07485877722501755, 0.004927788395434618, -0.16033294796943665, -0.024014314636588097, 0.22691112756729126, -0.8637246489524841, -0.432738721370697, 0.3241889476776123, -0.6591875553131104, -0.4957845211029053, 0.04280783608555794, -0.9313216209411621, -0.11862185597419739, -0.13796447217464447, 0.5596216320991516, -0.44276106357574463, -0.26838457584381104, 0.13241109251976013, -0.29757311940193176, 0.2946634292602539, 0.12662862241268158, -1.108253836631775, 0.17681609094142914, 0.38147100806236267, 0.7880634665489197, 0.09321300685405731, -0.298347145318985, 0.01264841016381979, -0.010799536481499672, 0.1869831532239914, 0.7122831344604492, -0.31710633635520935, -0.5356820821762085, 0.05475127696990967, 0.19120165705680847, -0.27769380807876587, -0.12765026092529297, 0.8807504177093506, -0.3336264491081238, 0.5034926533699036, -0.055905137211084366, -0.6194552183151245, -0.3944653868675232, 0.17997229099273682, -0.4717235267162323, 1.4072015285491943, -0.013583310879766941, -1.0674855709075928, 0.2606559097766876, -0.7803052067756653, -0.4073082506656647, -0.009532563388347626, 0.0815441831946373, -0.8256668448448181, -0.1661536991596222, 0.17239917814731598, 0.6059697270393372, -0.15227103233337402, 0.41551703214645386, -0.16296465694904327, -0.1825411021709442, 0.01952718012034893, -0.3265705704689026, 0.9900043606758118, 0.24779988825321198, -0.41604605317115784, 0.13779832422733307, -0.8197969794273376, 0.03807133436203003, 0.24077647924423218, -0.2785515785217285, -0.10792188346385956, 0.07703506946563721, 0.534976065158844, 0.08401298522949219, 0.30496180057525635, -0.568779468536377, 0.21103614568710327, -0.3097279965877533, 0.556165337562561, 0.7933682203292847, -0.003965288400650024, 0.27176612615585327, -0.24686244130134583, 0.25042831897735596, -0.1875634789466858, 0.1801263391971588, -0.15384098887443542, -0.5639267563819885, -0.9744310975074768, -0.12728993594646454, 0.37655147910118103, 0.5825952887535095, -0.44547975063323975, 0.8356272578239441, -0.21317654848098755, -0.8680498003959656, -0.36415719985961914, -0.1972973346710205, 0.19614054262638092, 0.5971333384513855, 0.43689391016960144, 0.051271289587020874, -0.7417788505554199, -0.6611942648887634, -0.22476638853549957, -0.23860980570316315, -0.05615926906466484, 0.31814777851104736, 0.8730587363243103, -0.4506325423717499, 0.8687706589698792, -0.7074593305587769, -0.287710964679718, -0.3073800802230835, 0.3243924379348755, 0.3606695532798767, 0.5834435224533081, 0.5394130945205688, -0.8032149076461792, -0.4308950901031494, -0.07222533226013184, -0.7499337196350098, 0.036951664835214615, -0.19328424334526062, 0.008151723071932793, 0.12672793865203857, 0.39918753504753113, -0.47623559832572937, 0.43063414096832275, 0.46124255657196045, -0.5293984413146973, 0.5044036507606506, -0.33090490102767944, -0.016915060579776764, -1.1728559732437134, 0.2785209119319916, 0.18235448002815247, -0.23370540142059326, -0.6117795705795288, -0.10330327600240707, -0.022863022983074188, -0.15712614357471466, -0.255914568901062, 0.722412645816803, -0.15030337870121002, 0.3475891053676605, -0.2496643364429474, -0.06036391109228134, 0.015144594013690948, 0.5761173367500305, 0.28955990076065063, 0.5870949625968933, 0.5401380062103271, -0.7000652551651001, 0.193999782204628, 0.38845691084861755, -0.21545977890491486, 0.16907909512519836, -0.8047998547554016, 0.14177389442920685, -0.07970128208398819, 0.18568669259548187, -0.8169943690299988, -0.12863464653491974, 0.21754194796085358, -0.655759871006012, 0.43065863847732544, 0.031363293528556824, -0.48980411887168884, -0.44576960802078247, -0.14167100191116333, 0.09570501744747162, 0.5749794244766235, -0.6654500961303711, 0.9081465005874634, 0.3278665542602539, -0.07638457417488098, -0.543858528137207, -0.7101608514785767, -0.20357093214988708, -0.24932542443275452, -0.5055486559867859, 0.5592737197875977, -0.11847078055143356, 0.16072937846183777, 0.05828948691487312, 0.13969913125038147, -0.08390411734580994, 0.09739850461483002, 0.26577311754226685, 0.4564102590084076, 0.1852840781211853, 0.21826569736003876, -0.07054412364959717, -0.22538718581199646, 0.0729343369603157, -0.09836909174919128, 0.5531649589538574, -0.24236895143985748, 0.041146691888570786, -0.46795153617858887, 0.072805255651474, 0.3475823402404785, -0.07020251452922821, 0.978305459022522, 0.8063645958900452, -0.5329128503799438, -0.15575596690177917, -0.46122267842292786, -0.23380699753761292, -0.509516179561615, 0.5592141151428223, -0.2040112316608429, -0.5320706367492676, 0.5626025795936584, -0.004175633657723665, 0.1914028823375702, 0.8905512094497681, 0.5490347146987915, -0.11673994362354279, 1.026370644569397, 0.9648672342300415, -0.060595471411943436, 0.6399105787277222, -0.6135637164115906, 0.39468660950660706, -0.6942468285560608, -0.45664599537849426, -0.6677597165107727, -0.012722279876470566, -0.680597722530365, -0.011327823624014854, 0.044724687933921814, 0.03646817430853844, -0.43939656019210815, 0.6002199649810791, -0.8680253028869629, 0.20779579877853394, 0.5577643513679504, 0.08772563934326172, 0.013774039223790169, -0.09607011824846268, -0.03807266801595688, -0.045566871762275696, -0.6469737887382507, -0.6640499234199524, 1.096366286277771, 0.6778674721717834, 0.5391127467155457, -0.225738063454628, 0.6750180721282959, 0.2636750042438507, 0.48491889238357544, -0.6365012526512146, 0.43937432765960693, -0.05154850333929062, -0.7690739035606384, -0.16413497924804688, -0.3392024040222168, -0.7348039746284485, 0.1899622231721878, -0.34691569209098816, -0.7343367338180542, 0.13007771968841553, -0.00045382531243376434, -0.3094419240951538, 0.4270922839641571, -0.9075310826301575, 0.9972221255302429, -0.30915141105651855, -0.05679880455136299, 0.001253956463187933, -0.5194711685180664, 0.2004881203174591, -0.006279588211327791, 0.1984235793352127, -0.0750950276851654, 0.16935263574123383, 1.070511817932129, -0.4289224445819855, 0.9339936971664429, -0.22083410620689392, 0.1978389024734497, 0.32352709770202637, -0.48323214054107666, 0.5383298993110657, -0.04448051005601883, -0.21572501957416534, 0.321239173412323, 0.11775131523609161, -0.34889519214630127, -0.29965898394584656, 0.5360885858535767, -1.0251959562301636, -0.23787884414196014, -0.7846416234970093, -0.34509342908859253, 0.09345310181379318, 0.3152177333831787, 0.5704251527786255, 0.06658250838518143, -0.1444752961397171, 0.11087071150541306, 0.6942728161811829, -0.3629075884819031, 0.5669407844543457, 0.24752892553806305, -0.050913698971271515, -0.4277324378490448, 0.7464596033096313, -0.0003197440237272531, 0.01753382757306099, 0.2694038152694702, 0.20686417818069458, -0.577272355556488, -0.45737773180007935, -0.175119549036026, 0.2235601246356964, -0.7102282643318176, -0.3603622615337372, -0.9287483096122742, -0.4716567099094391, -0.5332775712013245, -0.20434527099132538, -0.25992605090141296, -0.04424864426255226, -0.5869725346565247, -0.34183111786842346, 0.6748470664024353, 0.5420863032341003, 0.14366598427295685, 0.6420977115631104, -0.6653470396995544, 0.06255742907524109, 0.21120163798332214, 0.37302857637405396, 0.07146987318992615, -0.6835403442382812, -0.2852744460105896, -0.07835915684700012, -0.4954051077365875, -0.7966135144233704, 0.6505411267280579, 0.17980356514453888, 0.45137321949005127, 0.3017944097518921, 0.012859854847192764, 0.46396538615226746, -0.42666691541671753, 0.8434585928916931, 0.254763662815094, -1.048378825187683, 0.5901613831520081, -0.3564023971557617, 0.011337891221046448, 0.5261967182159424, 0.37611064314842224, -0.5686576962471008, -0.1728043258190155, -0.8947933912277222, -0.9456326365470886, 0.7872658371925354, 0.2967318594455719, 0.1921989619731903, 0.006693285424262285, 0.3893047869205475, -0.08777465671300888, 0.14252686500549316, -1.279587984085083, -0.428768515586853, -0.2783539891242981, -0.38530078530311584, 0.01501002162694931, -0.16684100031852722, 0.08715254813432693, -0.4008437693119049, 1.0071215629577637, 0.09664173424243927, 0.5611274242401123, 0.33478108048439026, -0.012185206636786461, 0.16699478030204773, 0.0654122531414032, 0.43472665548324585, 0.2260563224554062, -0.4692503809928894, -0.05503442883491516, 0.41543862223625183, -0.637031614780426, -0.022061003372073174, 0.30667662620544434, -0.25247928500175476, 0.1472671627998352, 0.285822331905365, 0.8513748049736023, 0.1198970377445221, -0.4754987061023712, 0.42268460988998413, -0.18556658923625946, -0.2665655314922333, -0.39863285422325134, -0.07035684585571289, 0.07171834260225296, 0.09009511768817902, 0.3413170874118805, 0.15750864148139954, 0.04101197049021721, -0.44738486409187317, 0.08959533274173737, 0.2012864053249359, -0.22711490094661713, -0.15988601744174957, 0.9064106941223145, 0.2983302175998688, -0.36317938566207886, 0.6537356376647949, -0.2074105441570282, -0.7342684268951416, 0.7697370052337646, 0.5763649940490723, 0.9897255897521973, -0.15477555990219116, 0.09191354364156723, 0.7238209843635559, 0.35055145621299744, -0.09167586266994476, 0.1877930462360382, 0.10324488580226898, -0.7373368740081787, -0.1595073789358139, -0.7578401565551758, -0.2199362814426422, 0.14671218395233154, -0.4923797845840454, 0.546576976776123, -0.48697927594184875, -0.25190871953964233, 0.11271119117736816, 0.2966611087322235, -0.8234145045280457, 0.3966580629348755, -0.00796943437308073, 0.8859856724739075, -1.045880913734436, 0.8542503118515015, 0.4820869565010071, -0.6565436124801636, -0.7674124240875244, -0.14992888271808624, -0.3456500172615051, -0.6408753991127014, 0.5500278472900391, 0.3546984791755676, 0.1146739274263382, 0.07125245034694672, -0.5636356472969055, -0.7186936736106873, 1.19084894657135, 0.0385119654238224, -0.42912542819976807, -0.1312457025051117, -0.13038431107997894, 0.6186010837554932, -0.2510402798652649, 0.691390872001648, 0.38583680987358093, 0.5060940384864807, 0.016871659085154533, -0.7211459279060364, 0.012830899097025394, -0.28114619851112366, 0.026087883859872818, 0.10793605446815491, -0.7157210111618042, 0.801017165184021, -0.1250367909669876, -0.23499512672424316, 0.0700284093618393, 0.7242422699928284, 0.1695307046175003, 0.30330154299736023, 0.37162747979164124, 0.6622654795646667, 0.8775542974472046, -0.23489832878112793, 1.0539535284042358, -0.3982168436050415, 0.8933690786361694, 0.8153502345085144, 0.019322345033288002, 0.9212108254432678, 0.20525364577770233, -0.31495019793510437, 0.5529518723487854, 0.9327022433280945, -0.40806707739830017, 0.5377963185310364, -0.004918454680591822, -0.25114524364471436, 0.0038374951109290123, 0.010693156160414219, -0.47463104128837585, 0.3044039309024811, 0.24428905546665192, -0.6733856797218323, -0.05875125899910927, 0.03803069144487381, 0.08221086859703064, -0.07991500198841095, -0.1780838817358017, 0.5595489144325256, -0.03214132785797119, -0.46313825249671936, 0.27740445733070374, 0.3322608470916748, 1.0210756063461304, -0.6903634071350098, 0.05483204498887062, 0.24051153659820557, 0.22856688499450684, -0.30050933361053467, -0.5889870524406433, 0.3179280161857605, -0.014938520267605782, -0.284728467464447, -0.379923939704895, 0.7688156962394714, -0.4698370397090912, -0.6382766366004944, 0.3353152871131897, 0.015819638967514038, 0.1832571178674698, 0.08867701143026352, -0.866097092628479, -0.06769319623708725, 0.13720594346523285, -0.3091954290866852, 0.0943189486861229, 0.18042846024036407, 0.35726726055145264, 0.5533667206764221, 0.6524168252944946, -0.0805688202381134, 0.05913981795310974, -0.10058575123548508, 0.679072380065918, -0.6653405427932739, -0.49412158131599426, -0.7505174875259399, 0.52439945936203, -0.3147324323654175, -0.46798545122146606, 0.7557893395423889, 0.6878398060798645, 0.9020830392837524, -0.18962709605693817, 0.8210062980651855, -0.19807970523834229, 0.3700603246688843, -0.35810813307762146, 0.8721105456352234, -0.36549708247184753, 0.05107373744249344, -0.2980019450187683, -0.7871891260147095, -0.1952279955148697, 0.8985146880149841, -0.42394229769706726, 0.1932927519083023, 0.6200568675994873, 0.6408683061599731, 0.029732730239629745, 0.1849282830953598, 0.10080527514219284, 0.16942532360553741, 0.3847624361515045, 0.33161216974258423, 0.39180123805999756, -0.896082878112793, 0.5492789149284363, -0.30259042978286743, -0.1692131757736206, -0.17306925356388092, -0.9328207969665527, -0.9586650133132935, -0.6525208353996277, -0.48403990268707275, -0.40086352825164795, -0.1816817969083786, 0.8186740875244141, 0.7404007911682129, -0.8105363845825195, -0.09693461656570435, -0.37665414810180664, 0.06555187702178955, -0.09525129944086075, -0.29888132214546204, 0.6146902441978455, -0.3406035900115967, -1.0025969743728638, -0.10092727094888687, -0.057740096002817154, 0.2543800473213196, -0.116346076130867, -0.0292341448366642, -0.39492693543434143, 0.06802473962306976, 0.49131783843040466, 0.2979274094104767, -0.5851083993911743, -0.27845969796180725, -0.007070356048643589, -0.12864720821380615, -0.023881394416093826, 0.47374221682548523, -0.5299214720726013, 0.4550290107727051, 0.49858358502388, 0.5130331516265869, 0.7434329390525818, -0.23732584714889526, 0.3298913836479187, -0.6116830110549927, 0.17500808835029602, 0.26216986775398254, 0.5154958367347717, 0.16877888143062592, -0.6281989216804504, 0.5083029866218567, 0.2717142701148987, -0.761480450630188, -0.7827877402305603, -0.14192409813404083, -0.9933539628982544, -0.20758730173110962, 1.0193253755569458, -0.14662618935108185, -0.291913241147995, -0.01008572056889534, -0.3759785592556, 0.43270638585090637, -0.3566952049732208, 0.8165084719657898, 0.8197042346000671, -0.01829666458070278, -0.1277511715888977, -0.4736083149909973, 0.5324079990386963, 0.2601422071456909, -0.8641122579574585, -0.053499069064855576, 0.000003666659495138447, 0.3715327978134155, 0.28242406249046326, 0.550851583480835, -0.002427483908832073, 0.0439731627702713, 0.15773136913776398, 0.42687976360321045, 0.05476006865501404, -0.13104885816574097, -0.2646365761756897, -0.01973111741244793, -0.22612760961055756, -0.27235329151153564 ]
valhalla/distilbart-mnli-12-1
valhalla
"2021-06-14T10:27:55Z"
36,487
41
transformers
[ "transformers", "pytorch", "jax", "bart", "text-classification", "distilbart", "distilbart-mnli", "zero-shot-classification", "dataset:mnli", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-classification
"2022-03-02T23:29:05Z"
--- datasets: - mnli tags: - distilbart - distilbart-mnli pipeline_tag: zero-shot-classification --- # DistilBart-MNLI distilbart-mnli is the distilled version of bart-large-mnli created using the **No Teacher Distillation** technique proposed for BART summarisation by Huggingface, [here](https://github.com/huggingface/transformers/tree/master/examples/seq2seq#distilbart). We just copy alternating layers from `bart-large-mnli` and finetune more on the same data. | | matched acc | mismatched acc | | ------------------------------------------------------------------------------------ | ----------- | -------------- | | [bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) (baseline, 12-12) | 89.9 | 90.01 | | [distilbart-mnli-12-1](https://huggingface.co/valhalla/distilbart-mnli-12-1) | 87.08 | 87.5 | | [distilbart-mnli-12-3](https://huggingface.co/valhalla/distilbart-mnli-12-3) | 88.1 | 88.19 | | [distilbart-mnli-12-6](https://huggingface.co/valhalla/distilbart-mnli-12-6) | 89.19 | 89.01 | | [distilbart-mnli-12-9](https://huggingface.co/valhalla/distilbart-mnli-12-9) | 89.56 | 89.52 | This is a very simple and effective technique, as we can see the performance drop is very little. Detailed performace trade-offs will be posted in this [sheet](https://docs.google.com/spreadsheets/d/1dQeUvAKpScLuhDV1afaPJRRAE55s2LpIzDVA5xfqxvk/edit?usp=sharing). ## Fine-tuning If you want to train these models yourself, clone the [distillbart-mnli repo](https://github.com/patil-suraj/distillbart-mnli) and follow the steps below Clone and install transformers from source ```bash git clone https://github.com/huggingface/transformers.git pip install -qqq -U ./transformers ``` Download MNLI data ```bash python transformers/utils/download_glue_data.py --data_dir glue_data --tasks MNLI ``` Create student model ```bash python create_student.py \ --teacher_model_name_or_path facebook/bart-large-mnli \ --student_encoder_layers 12 \ --student_decoder_layers 6 \ --save_path student-bart-mnli-12-6 \ ``` Start fine-tuning ```bash python run_glue.py args.json ``` You can find the logs of these trained models in this [wandb project](https://wandb.ai/psuraj/distilbart-mnli).
[ -0.6375656723976135, -0.7430644631385803, 0.2536260187625885, 0.290050208568573, -0.22421662509441376, 0.19788266718387604, -0.03465590253472328, -0.23934705555438995, 0.34920763969421387, 0.4452044665813446, -0.6096479892730713, -0.1691262573003769, -0.6365846395492554, 0.14529886841773987, -0.3551802933216095, 1.3463788032531738, -0.05572397634387016, 0.07464893162250519, -0.1272651106119156, -0.2698136866092682, -0.24840141832828522, -0.43485110998153687, -0.6214860677719116, -0.37918469309806824, 0.39364445209503174, 0.3573065400123596, 0.7396002411842346, 0.1989392787218094, 0.5971576571464539, 0.4482610821723938, -0.5527704358100891, 0.25929009914398193, -0.6286783814430237, 0.10831805318593979, 0.015193422324955463, -0.5610524415969849, -0.6814610362052917, -0.0005735270096920431, 0.7574803233146667, 0.5549581050872803, -0.0947716236114502, 0.5082855820655823, 0.2331680953502655, 1.2299413681030273, -0.5851379632949829, 0.0209947619587183, -0.4178715646266937, 0.0918169617652893, -0.1509227305650711, 0.038296476006507874, -0.4130738377571106, -0.3575636148452759, 0.027988485991954803, -0.5491456389427185, 0.3323729336261749, -0.03589852526783943, 1.1564065217971802, 0.4937761723995209, -0.3380028307437897, -0.1365388184785843, -0.8020179271697998, 0.9367648363113403, -0.8137982487678528, 0.13644307851791382, 0.2483735829591751, 0.6504429578781128, -0.07094676792621613, -0.9884523153305054, -0.6262926459312439, -0.05961659923195839, -0.4390186667442322, 0.2391059696674347, -0.10700880736112595, -0.22331887483596802, 0.7971068024635315, 0.7032743096351624, -0.5033094882965088, -0.23004890978336334, -0.6894371509552002, 0.11690179258584976, 0.9272944927215576, 0.3259884715080261, 0.049840446561574936, -0.15698882937431335, -0.566197395324707, -0.40373826026916504, -0.3258042335510254, 0.11209756880998611, 0.2673303186893463, 0.14031437039375305, -0.2863340377807617, 0.6915779113769531, -0.2118905633687973, 0.34821078181266785, 0.5068875551223755, -0.4409608840942383, 0.7590183019638062, -0.47037988901138306, -0.36569744348526, 0.15764392912387848, 0.9618698358535767, 0.2961525321006775, 0.347817599773407, 0.4209705591201782, -0.29037514328956604, -0.16156920790672302, 0.028328191488981247, -1.3163275718688965, -0.5176370739936829, 0.2302200198173523, -0.5357047915458679, -0.5437136888504028, 0.07576271891593933, -0.7036703824996948, -0.08386082947254181, -0.4512740671634674, 0.5070756077766418, -0.592164158821106, -0.4499107003211975, -0.22040922939777374, -0.4644249379634857, 0.06384247541427612, 0.12319746613502502, -1.0181776285171509, 0.2512415051460266, 0.5411838293075562, 0.8255749344825745, 0.08557179570198059, -0.17050990462303162, -0.4196993112564087, -0.06806345283985138, -0.3215119540691376, 0.2839025557041168, -0.1871163547039032, -0.4348069727420807, -0.4981948733329773, 0.18531787395477295, 0.033223412930965424, -0.6159008145332336, 0.6397398114204407, -0.24490143358707428, 0.39193615317344666, -0.33219102025032043, -0.48735570907592773, -0.3517914116382599, 0.03881485387682915, -0.8339261412620544, 1.3520005941390991, 0.39815032482147217, -1.1891318559646606, 0.31341278553009033, -0.6758851408958435, -0.45119932293891907, -0.18982647359371185, 0.1831539124250412, -1.026959776878357, 0.16422241926193237, 0.3957539200782776, 0.6018929481506348, -0.08878273516893387, 0.4513060450553894, -0.4381599724292755, -0.5128779411315918, 0.23899738490581512, -0.5366921424865723, 1.2960361242294312, 0.46152979135513306, -0.4320088028907776, -0.01580968126654625, -1.031093955039978, 0.0010261170100420713, 0.3561078906059265, -0.2627498507499695, -0.41177451610565186, -0.4527982175350189, 0.19391050934791565, 0.08659446239471436, 0.3321387767791748, -0.28470396995544434, 0.304370641708374, -0.2616511583328247, 0.5038106441497803, 0.7115792632102966, -0.07230605185031891, 0.39866337180137634, -0.5920185446739197, 0.2989429235458374, 0.24086101353168488, 0.4851929545402527, -0.031072888523340225, -0.5211088061332703, -0.8706445693969727, -0.589084804058075, 0.4691109359264374, 0.44314953684806824, -0.9107183218002319, 0.42341098189353943, -0.20364265143871307, -0.8199796080589294, -0.7054585814476013, 0.006699805147945881, 0.3515680432319641, 0.598313570022583, 0.46194663643836975, 0.04405045136809349, -0.7020370364189148, -1.2472702264785767, 0.15231208503246307, -0.09572119265794754, -0.10002382099628448, 0.06979640573263168, 0.6808781623840332, -0.131366565823555, 0.9271805286407471, -0.7098562121391296, -0.21769316494464874, -0.13928599655628204, 0.052926819771528244, 0.8399791717529297, 0.5558362603187561, 1.105202078819275, -0.9273253083229065, -1.0717743635177612, -0.06792675703763962, -0.7939141988754272, -0.020429911091923714, 0.04246530309319496, -0.20126783847808838, 0.2588927149772644, 0.1874164342880249, -0.741771936416626, 0.47232043743133545, 0.549439549446106, -0.40004900097846985, 0.7566152215003967, -0.1402069330215454, 0.32902806997299194, -1.5952768325805664, 0.47366777062416077, -0.18191950023174286, -0.4573068916797638, -0.6295211315155029, 0.04418061673641205, 0.11985085904598236, 0.012522175908088684, -0.5061853528022766, 0.422974556684494, -0.5139172673225403, 0.07980819046497345, -0.11060231178998947, -0.29369696974754333, 0.22535495460033417, 0.7130906581878662, -0.34304481744766235, 0.8748658895492554, 0.6071176528930664, -0.4721323847770691, 0.4325804114341736, 0.4385184943675995, -0.24903903901576996, 0.6124131679534912, -0.7862508296966553, -0.12752501666545868, -0.15662026405334473, 0.2615968883037567, -0.9950944781303406, -0.02900215983390808, 0.3455749750137329, -0.4698719084262848, 0.6263097524642944, -0.21186323463916779, -0.3965689241886139, -0.5576298236846924, -0.5752987265586853, 0.3715347349643707, 0.9470015168190002, -0.7222506403923035, 0.6814489364624023, 0.1698320508003235, -0.11173834651708603, -0.839698314666748, -0.8528124690055847, -0.32214298844337463, -0.6244261264801025, -0.5487962961196899, 0.4445189833641052, -0.1960238218307495, -0.23243559896945953, 0.11407042294740677, -0.06721053272485733, -0.17079712450504303, 0.11453893780708313, 0.38239043951034546, 0.5503792762756348, -0.2038760632276535, -0.23444825410842896, 0.22793808579444885, -0.2082551270723343, -0.06690912693738937, 0.1893734335899353, 0.3994998633861542, -0.20075006783008575, -0.07227195054292679, -0.8076176643371582, 0.13568620383739471, 0.8890836238861084, 0.05181774124503136, 0.6599158644676208, 0.9649374485015869, -0.09794681519269943, -0.01763088069856167, -0.5966628789901733, -0.27671581506729126, -0.5696738362312317, 0.16948625445365906, -0.6335809230804443, -0.6735095977783203, 0.6098962426185608, -0.09008137136697769, 0.3360235393047333, 0.8200011849403381, 0.557051420211792, -0.2444377988576889, 1.1166712045669556, 0.3875522017478943, -0.35076263546943665, 0.5495299100875854, -0.6723580956459045, 0.03049156256020069, -0.8375341892242432, -0.1692095249891281, -0.4651105999946594, -0.6246455311775208, -0.7299193739891052, -0.3325217068195343, 0.503693699836731, 0.4221220910549164, -0.36249488592147827, 0.5866736173629761, -0.8396091461181641, 0.3943098783493042, 0.6070141792297363, -0.040381673723459244, 0.47534114122390747, 0.1280839592218399, -0.15526553988456726, 0.03805677220225334, -0.5457563996315002, -0.32130372524261475, 1.2863168716430664, 0.40431395173072815, 0.7139726877212524, 0.1099025160074234, 0.9387990236282349, 0.15595382452011108, 0.27324408292770386, -0.5494239926338196, 0.3881506621837616, -0.11058983206748962, -0.8454036712646484, -0.3311881422996521, -0.7188553810119629, -0.8145869970321655, 0.3943902850151062, -0.3365401327610016, -0.488336443901062, 0.06923514604568481, 0.13076822459697723, -0.29273903369903564, 0.40391579270362854, -0.8634617328643799, 0.6707035899162292, -0.08216262608766556, -0.3121512234210968, -0.08971153944730759, -0.5918209552764893, 0.6085464954376221, -0.19385237991809845, 0.09309753030538559, -0.1290714144706726, 0.4331118166446686, 0.5929032564163208, -0.8299161195755005, 0.6204044222831726, -0.41148215532302856, -0.060126934200525284, 0.6014713048934937, -0.06559986621141434, 0.5337849855422974, 0.22064828872680664, -0.1175287589430809, 0.2432703822851181, 0.3222143054008484, -0.4706377685070038, -0.7765963673591614, 0.7574099898338318, -0.7726086378097534, -0.4554404020309448, -0.42085492610931396, -0.3749264180660248, 0.1723082959651947, 0.1484697163105011, 0.3089849650859833, 0.47560593485832214, -0.054332856088876724, 0.3040238618850708, 0.600702702999115, -0.06813934445381165, 0.6451461911201477, 0.22230347990989685, -0.48695361614227295, -0.4730834662914276, 0.8820212483406067, 0.03402196615934372, 0.25345808267593384, 0.3099565804004669, 0.3628869354724884, -0.4334470331668854, -0.20987237989902496, -0.6454309821128845, 0.23228052258491516, -0.39680418372154236, -0.3226746618747711, -0.5049996972084045, -0.5105443000793457, -0.31252726912498474, 0.04461848363280296, -0.6612735986709595, -0.7952083945274353, -0.27093958854675293, 0.11311063170433044, 0.768952488899231, 0.6307933926582336, -0.12045197933912277, 0.06375373154878616, -0.8761718273162842, 0.30897438526153564, 0.35916706919670105, 0.19522714614868164, 0.0554654635488987, -0.6830777525901794, -0.1331941932439804, 0.3150635361671448, -0.5775709748268127, -0.5999139547348022, 0.3959308862686157, 0.2614121437072754, 0.3835214376449585, 0.4821173846721649, 0.2536635994911194, 0.9010903239250183, -0.4959057569503784, 0.7125323414802551, 0.42285841703414917, -0.820188581943512, 0.5326917171478271, -0.12847158312797546, 0.12146604806184769, 0.7213525176048279, 0.614849865436554, -0.12779688835144043, -0.36325716972351074, -0.7500551342964172, -0.8302591443061829, 0.7729302048683167, 0.5639476180076599, -0.0525309182703495, 0.32546254992485046, 0.05592432618141174, 0.22112882137298584, 0.11695525050163269, -0.6281890869140625, -0.745400071144104, -0.27785947918891907, -0.21063920855522156, -0.19692467153072357, -0.29637235403060913, -0.165777325630188, -0.7223292589187622, 0.8551412224769592, 0.06414128839969635, 0.038550958037376404, 0.31160297989845276, 0.1063123419880867, 0.05894698202610016, -0.06557940691709518, 0.4829404950141907, 0.5083074569702148, -0.5485031604766846, -0.03809882327914238, 0.36166679859161377, -0.5918081998825073, 0.1500784307718277, 0.06524360179901123, -0.18804407119750977, 0.3652510941028595, 0.25941964983940125, 1.0237821340560913, 0.12202619016170502, -0.47905218601226807, 0.43764615058898926, -0.07330486923456192, -0.5598840713500977, -0.6099386811256409, 0.09446738660335541, 0.2700299322605133, 0.5729410648345947, 0.38222649693489075, 0.13751287758350372, 0.2993016839027405, -0.530163586139679, 0.2639460563659668, 0.2651612460613251, -0.17800273001194, -0.31025397777557373, 0.6789664030075073, -0.09622196108102798, -0.14238378405570984, 0.7884042859077454, -0.20014223456382751, -0.3927032947540283, 0.6694768071174622, 0.36265987157821655, 0.7714188098907471, -0.3485869765281677, 0.15828710794448853, 0.8112928867340088, -0.10410132259130478, -0.10060546547174454, 0.2523234784603119, -0.01499975472688675, -0.381813645362854, -0.4000924527645111, -0.8675876259803772, -0.1806253045797348, 0.15772707760334015, -0.8325250148773193, 0.4742271304130554, -0.46337682008743286, -0.3456266224384308, 0.33089983463287354, 0.08990774303674698, -0.7563479542732239, -0.08178120106458664, -0.04995058849453926, 0.7169654965400696, -0.9113708138465881, 0.9504821300506592, 0.5785732269287109, -0.4510946273803711, -0.9238329529762268, -0.3571646511554718, -0.03991622105240822, -0.5750600099563599, 0.6785596013069153, 0.11114346981048584, 0.2591477930545807, -0.17828309535980225, -0.3256995975971222, -0.9882974028587341, 1.504637360572815, 0.26772162318229675, -0.9028947353363037, 0.030392717570066452, 0.11257694661617279, 0.6555724740028381, -0.06024006009101868, 0.6076794266700745, 0.7069620490074158, 0.48877233266830444, 0.5053051114082336, -1.2282465696334839, 0.14052923023700714, -0.48439621925354004, 0.08157020062208176, 0.36209699511528015, -0.8673425912857056, 1.1974730491638184, -0.12002234160900116, -0.2569311261177063, 0.07231421768665314, 0.5019068717956543, 0.42215821146965027, 0.43041229248046875, 0.5313104391098022, 0.953667163848877, 0.6661353707313538, -0.013783713802695274, 0.9149248003959656, -0.15500479936599731, 0.8403152227401733, 1.0402264595031738, -0.07392604649066925, 0.7094427943229675, 0.5567601919174194, -0.610541582107544, 0.44521066546440125, 0.5054118633270264, -0.299649715423584, 0.6650317311286926, 0.15374775230884552, -0.0863644927740097, 0.0576665922999382, 0.21477900445461273, -0.7255977392196655, 0.3775966167449951, 0.13070134818553925, -0.4399290084838867, -0.12764950096607208, -0.08929190039634705, 0.039508748799562454, -0.12587381899356842, -0.047903843224048615, 0.7131572961807251, 0.17938515543937683, -0.5639959573745728, 1.2378196716308594, -0.25144264101982117, 0.8671640157699585, -0.4115692675113678, -0.0667727142572403, -0.2727825343608856, 0.21831552684307098, -0.30612531304359436, -0.716880202293396, 0.49903035163879395, -0.0568758025765419, -0.20825068652629852, -0.09981021285057068, 0.5614830255508423, -0.4002246558666229, -0.829426109790802, 0.19362737238407135, 0.32660141587257385, 0.30013999342918396, 0.038190051913261414, -0.8800998330116272, -0.013798934407532215, 0.18609461188316345, -0.5919541716575623, 0.31698742508888245, 0.4101116359233856, 0.13518524169921875, 0.5760012865066528, 0.7508186101913452, -0.2349550575017929, -0.07209020853042603, 0.023055586963891983, 1.167568325996399, -0.42229291796684265, -0.23125839233398438, -1.123305082321167, 0.8179979920387268, -0.4593908190727234, -0.3601505160331726, 0.7168834209442139, 0.8255873918533325, 0.8579419851303101, -0.31116876006126404, 0.6044402122497559, -0.13476039469242096, 0.502488911151886, -0.5391944050788879, 1.020938754081726, -0.9129120111465454, -0.11349620670080185, -0.5776804685592651, -1.346231460571289, 0.03473349288105965, 0.691566526889801, 0.03665386140346527, 0.025129757821559906, 0.5866034626960754, 0.8312811851501465, -0.288810133934021, 0.029080085456371307, 0.20422863960266113, 0.20746324956417084, 0.195654034614563, 0.6079622507095337, 0.8056803345680237, -0.7892946600914001, 0.48009103536605835, -0.681784987449646, -0.2209797352552414, -0.3634167015552521, -0.7246242761611938, -1.2005058526992798, -0.731391966342926, -0.39591431617736816, -0.2707580327987671, -0.2944786548614502, 0.7943256497383118, 0.749103307723999, -0.8931878805160522, 0.030545732006430626, 0.10267073661088943, 0.04260735213756561, -0.3065142333507538, -0.32847723364830017, 0.5125832557678223, -0.16680335998535156, -1.1396420001983643, 0.22621619701385498, -0.030778661370277405, 0.2519424855709076, -0.17536264657974243, -0.08811438828706741, -0.07775837182998657, -0.1801520437002182, 0.6716743111610413, 0.022087734192609787, -0.5668452978134155, -0.08116284757852554, -0.25560638308525085, -0.006861282046884298, 0.11683627963066101, 0.4889831840991974, -0.4421022832393646, 0.20019741356372833, 0.7128944993019104, 0.37916335463523865, 0.988027036190033, 0.0983315110206604, 0.14402657747268677, -0.7711794972419739, 0.35945916175842285, 0.0917116105556488, 0.444897323846817, 0.13377776741981506, -0.41678133606910706, 0.7349647283554077, 0.2694889008998871, -0.6371515393257141, -0.962908148765564, -0.04391328990459442, -1.2393566370010376, -0.36726629734039307, 0.9448338747024536, -0.15843826532363892, -0.321353554725647, 0.36948132514953613, -0.4352317154407501, 0.3570406138896942, -0.46770626306533813, 0.8221386075019836, 0.49371057748794556, 0.04676936939358711, 0.08864155411720276, -0.5766773223876953, 0.49665480852127075, 0.47890299558639526, -0.4331912696361542, -0.12605173885822296, 0.28463879227638245, 0.550420343875885, 0.406482994556427, 0.5635406970977783, -0.2924427390098572, -0.08416964113712311, 0.16196435689926147, 0.0734385997056961, -0.451487272977829, -0.23123471438884735, -0.03683514520525932, 0.06628219038248062, -0.17612160742282867, -0.3799798786640167 ]
circulus/canvers-anime-v3.6
circulus
"2023-07-11T15:25:08Z"
36,475
0
diffusers
[ "diffusers", "license:gpl-3.0", "endpoints_compatible", "diffusers:StableDiffusionPipeline", "region:us" ]
null
"2023-07-11T14:40:12Z"
--- 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 ]
TheBloke/WizardLM-Uncensored-Falcon-7B-GPTQ
TheBloke
"2023-08-21T10:28:42Z"
36,386
53
transformers
[ "transformers", "safetensors", "RefinedWebModel", "text-generation", "custom_code", "license:apache-2.0", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-06-01T17:21:40Z"
--- license: apache-2.0 --- <!-- 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 WizardLM-Uncensored-Falcon-7B GPTQ This repo contains an experimantal GPTQ 4bit model for [Eric Hartford's WizardLM-Uncensored-Falcon-7B](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b). It is the result of quantising to 4bit using [AutoGPTQ](https://github.com/PanQiWei/AutoGPTQ). ## Repositories available * [4-bit GPTQ model for GPU inference](https://huggingface.co/TheBloke/WizardLM-Uncensored-Falcon-7B-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/WizardLM-Uncensored-Falcon-7B-GGML) * [Eric's unquantised bf16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/WizardLM-Uncensored-Falcon-7b) ## Prompt template Prompt format is WizardLM: ``` What is a falcon? Can I keep one as a pet? ### Response: ``` ## EXPERIMENTAL Please note this is an experimental GPTQ model. Support for it is currently quite limited. It is also expected to be **SLOW**. This is currently unavoidable, but is being looked at. ## AutoGPTQ AutoGPTQ 0.2.0 is required: `pip install auto-gptq` AutoGPTQ provides pre-compiled wheels for Windows and Linux, with CUDA toolkit 11.7 or 11.8. If you are running CUDA toolkit 12.x, you will need to compile your own by following these instructions: ``` git clone https://github.com/PanQiWei/AutoGPTQ cd AutoGPTQ pip install . ``` These manual steps will require that you have the [Nvidia CUDA toolkit](https://developer.nvidia.com/cuda-12-0-1-download-archive) installed. ## text-generation-webui There is provisional AutoGPTQ support in text-generation-webui. This requires text-generation-webui as of commit 204731952ae59d79ea3805a425c73dd171d943c3. So please first update text-genration-webui to the latest version. ## How to download and use this model in text-generation-webui 1. Launch text-generation-webui 2. Click the **Model tab**. 3. Untick **Autoload model** 4. Under **Download custom model or LoRA**, enter `TheBloke/WizardLM-Uncensored-Falcon-7B-GPTQ`. 5. Click **Download**. 6. Wait until it says it's finished downloading. 7. Click the **Refresh** icon next to **Model** in the top left. 8. In the **Model drop-down**: choose the model you just downloaded, `WizardLM-Uncensored-Falcon-7B-GPTQ`. 9. Make sure **Loader** is set to **AutoGPTQ**. This model will not work with ExLlama or GPTQ-for-LLaMa. 10. Tick **Trust Remote Code**, followed by **Save Settings** 11. Click **Reload**. 12. Once it says it's loaded, click the **Text Generation tab** and enter a prompt! ## Try it for free on Google Colab Thanks to user [lucianosb](https://huggingface.co/lucianosb), here is a Google Colab notebook that can be used to try this model for free: https://colab.research.google.com/drive/16C4H9heewOrgUMFYNhxz1AvO12yPHyEq?usp=sharing ## About `trust_remote_code` Please be aware that this command line argument causes Python code provided by Falcon to be executed on your machine. This code is required at the moment because Falcon is too new to be supported by Hugging Face transformers. At some point in the future transformers will support the model natively, and then `trust_remote_code` will no longer be needed. In this repo you can see two `.py` files - these are the files that get executed. They are copied from the base repo at [Falcon-7B-Instruct](https://huggingface.co/tiiuae/falcon-7b-instruct). ## Simple Python example code To run this code you need to install AutoGPTQ and einops: ``` pip install auto-gptq pip install einops ``` You can then run this example code: ```python import torch from transformers import AutoTokenizer from auto_gptq import AutoGPTQForCausalLM # Download the model from HF and store it locally, then reference its location here: quantized_model_dir = "/path/to/TheBloke_WizardLM-Uncensored-Falcon-7B-GPTQ" from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained(quantized_model_dir, use_fast=False) model = AutoGPTQForCausalLM.from_quantized(quantized_model_dir, device="cuda:0", use_triton=False, use_safetensors=True, torch_dtype=torch.float32, trust_remote_code=True) prompt = "Write a story about llamas" prompt_template = f"### Instruction: {prompt}\n### Response:" tokens = tokenizer(prompt_template, return_tensors="pt").to("cuda:0").input_ids output = model.generate(input_ids=tokens, max_new_tokens=100, do_sample=True, temperature=0.8) print(tokenizer.decode(output[0])) ``` ## Provided files **gptq_model-4bit-64g.safetensors** This will work with AutoGPTQ as of commit `3cb1bf5` (`3cb1bf5a6d43a06dc34c6442287965d1838303d3`) It was created with groupsize 64 to give higher inference quality, and without `desc_act` (act-order) to increase inference speed. * `gptq_model-4bit-64g.safetensors` * Works only with latest AutoGPTQ CUDA, compiled from source as of commit `3cb1bf5` * At this time it does not work with AutoGPTQ Triton, but support will hopefully be added in time. * Works with text-generation-webui using `--autogptq --trust_remote_code` * At this time it does NOT work with one-click-installers * Does not work with any version of GPTQ-for-LLaMa * Parameters: Groupsize = 64. No act-order. <!-- 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: Eric Hartford's WizardLM-Uncensored-Falcon-7B This is WizardLM trained on top of tiiuae/falcon-7b, 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. Prompt format is Wizardlm. ``` What is a falcon? Can I keep one as a pet? ### Response: ```
[ -0.5650244951248169, -0.7900081872940063, 0.19637762010097504, 0.1822381466627121, -0.1793757528066635, 0.06819076836109161, 0.2243356555700302, -0.4550986588001251, 0.3934663236141205, 0.18631896376609802, -0.6205952763557434, -0.4035850763320923, -0.48503321409225464, 0.060119595378637314, -0.3667584955692291, 0.9981775283813477, 0.19053785502910614, -0.4279805123806, 0.0671268180012703, 0.11495555192232132, -0.16439324617385864, -0.3830232322216034, -0.7881977558135986, -0.2535948157310486, 0.30522650480270386, 0.12513236701488495, 0.931463897228241, 0.695014238357544, 0.3676880896091461, 0.4206017553806305, -0.056634727865457535, 0.14670147001743317, -0.36371418833732605, -0.2651706337928772, 0.08929786831140518, -0.1866081953048706, -0.585342288017273, 0.19194810092449188, 0.5818824768066406, 0.1837649643421173, -0.2779347598552704, 0.07194320857524872, -0.02436951734125614, 0.49678871035575867, -0.4079238772392273, 0.33469560742378235, -0.4008728563785553, 0.09031812101602554, -0.08888278156518936, 0.20835663378238678, -0.021444307640194893, -0.32293739914894104, -0.2316821962594986, -1.0629774332046509, 0.19731155037879944, 0.1398552656173706, 1.2799819707870483, 0.31101804971694946, -0.43702268600463867, -0.0680365264415741, -0.36084091663360596, 0.5171831250190735, -0.8516449928283691, 0.33267924189567566, 0.2729383409023285, 0.2634100615978241, -0.24888616800308228, -1.1447516679763794, -0.7577987313270569, -0.18059055507183075, -0.13265205919742584, 0.4136974513530731, -0.5601237416267395, -0.01825234852731228, 0.25685417652130127, 0.5118787288665771, -0.5963412523269653, -0.2268272191286087, -0.40590181946754456, -0.20942357182502747, 0.7520397305488586, 0.17838795483112335, 0.45784902572631836, -0.26060500741004944, -0.3713364899158478, -0.28916314244270325, -0.5018815398216248, 0.2810288369655609, 0.3325454890727997, 0.07923397421836853, -0.5666346549987793, 0.4637928009033203, -0.21910469233989716, 0.45477810502052307, 0.5966705679893494, 0.1385953277349472, 0.2611381411552429, -0.4626804292201996, -0.5158752202987671, -0.2384725660085678, 1.2995185852050781, 0.2928335964679718, -0.1154957264661789, 0.047881051898002625, -0.07706811279058456, -0.05080510675907135, 0.07732418924570084, -0.8636599779129028, -0.41572943329811096, 0.34528544545173645, -0.4415975511074066, -0.34514284133911133, -0.018647359684109688, -0.7733713984489441, -0.16637618839740753, 0.138888418674469, 0.46776363253593445, -0.337682843208313, -0.47473663091659546, 0.1282544732093811, -0.24496851861476898, 0.4013666808605194, 0.1536874771118164, -0.8966697454452515, 0.26320603489875793, 0.4251294434070587, 0.7400651574134827, 0.3296123147010803, -0.3813769519329071, -0.6357406973838806, 0.13969069719314575, -0.2487930804491043, 0.4919333755970001, -0.3527243137359619, -0.6309655904769897, -0.2607536017894745, 0.389873743057251, -0.1367638111114502, -0.2016715109348297, 0.5388895273208618, -0.2500353455543518, 0.303860068321228, -0.4295973479747772, -0.3917933404445648, -0.2578658163547516, 0.044366031885147095, -0.5407896041870117, 1.0098557472229004, 0.3863697052001953, -0.8915802836418152, -0.03324524313211441, -0.7412121295928955, -0.2627239525318146, 0.14961299300193787, -0.046888481825590134, -0.5612548589706421, -0.1501968801021576, 0.35431358218193054, 0.3082456588745117, -0.24091920256614685, 0.1384926736354828, -0.4833337664604187, -0.41388100385665894, 0.10985574126243591, -0.22520020604133606, 1.2278066873550415, 0.36842814087867737, -0.603627622127533, 0.002607481786981225, -0.4579050838947296, -0.007226747926324606, 0.5004153251647949, -0.07655681669712067, 0.19895708560943604, -0.34096765518188477, 0.039919812232255936, 0.11107724159955978, 0.24485407769680023, -0.5458734631538391, 0.4116496741771698, -0.3258717954158783, 0.755286693572998, 0.5625412464141846, -0.004465384874492884, 0.3904511630535126, -0.4943139851093292, 0.5503581166267395, 0.07941844314336777, 0.5936139822006226, 0.0899314433336258, -0.677621603012085, -0.8866513967514038, -0.24903668463230133, 0.20592646300792694, 0.45135536789894104, -0.8216335773468018, 0.3870987594127655, 0.11944416910409927, -0.6545326113700867, -0.5226898789405823, -0.21400806307792664, 0.27086085081100464, 0.5692858099937439, 0.41509178280830383, -0.28632116317749023, -0.38634198904037476, -0.8098692893981934, -0.003920472227036953, -0.47220301628112793, 0.11366226524114609, 0.4219261705875397, 0.6059485077857971, -0.3918825089931488, 0.7198748588562012, -0.48182448744773865, -0.28789156675338745, 0.060094233602285385, 0.06030995026230812, 0.20695476233959198, 0.633745551109314, 0.7650655508041382, -0.6423611640930176, -0.48929131031036377, -0.04903441667556763, -0.7102282643318176, -0.10148904472589493, 0.028152896091341972, -0.4115203619003296, 0.22046661376953125, 0.19808924198150635, -1.0562081336975098, 0.5463822484016418, 0.44874781370162964, -0.6040278673171997, 0.6292229890823364, -0.24779196083545685, 0.21138620376586914, -1.0003918409347534, 0.14206919074058533, 0.09469688683748245, -0.22020114958286285, -0.5211747288703918, 0.08518192917108536, -0.023481613025069237, -0.09320632368326187, -0.4056679904460907, 0.7314354777336121, -0.4067336618900299, 0.09363935142755508, -0.09339434653520584, -0.09486749023199081, 0.31227171421051025, 0.42095279693603516, -0.08980248123407364, 0.8314668536186218, 0.5953434705734253, -0.4289240837097168, 0.4650212824344635, 0.5376338958740234, 0.04789615795016289, 0.30430883169174194, -1.0151530504226685, 0.12683305144309998, 0.025158816948533058, 0.34401893615722656, -1.007136583328247, -0.2613944709300995, 0.704334020614624, -0.7287808656692505, 0.3681805431842804, -0.24692627787590027, -0.2555502951145172, -0.5386388897895813, -0.28661036491394043, 0.1930590271949768, 0.7507868409156799, -0.5142836570739746, 0.6151140928268433, 0.5289223194122314, -0.017882540822029114, -0.6707297563552856, -0.7180403470993042, 0.015938950702548027, -0.2631172239780426, -0.6648508906364441, 0.5703807473182678, -0.20097331702709198, -0.08844228088855743, 0.058630313724279404, 0.1796887218952179, -0.05622843652963638, -0.0221099890768528, 0.37724941968917847, 0.34689417481422424, -0.15200819075107574, -0.19688890874385834, 0.11797402054071426, -0.10753779113292694, 0.08655507862567902, -0.3355990946292877, 0.3837418258190155, -0.6740443110466003, -0.10114149749279022, -0.5896393060684204, 0.26787588000297546, 0.5766497850418091, -0.30556198954582214, 0.5249228477478027, 0.9402854442596436, -0.3314204514026642, 0.047319069504737854, -0.5554490685462952, -0.14242903888225555, -0.5766496062278748, 0.0731944590806961, -0.24240684509277344, -0.7481829524040222, 0.5238342881202698, 0.3494020402431488, 0.09852531552314758, 0.8454764485359192, 0.4958469271659851, -0.2006712406873703, 0.9945827722549438, 0.6351790428161621, -0.12528440356254578, 0.3683716654777527, -0.6692646741867065, 0.02481757663190365, -0.7938671112060547, -0.25532642006874084, -0.3926846981048584, -0.1601123809814453, -0.7209805250167847, -0.313461571931839, 0.4120056629180908, 0.08507122099399567, -0.7801709175109863, 0.2808711528778076, -0.8369404077529907, 0.21208086609840393, 0.5629613399505615, 0.08478747308254242, 0.17752553522586823, -0.005482162814587355, -0.2075260579586029, 0.14433343708515167, -0.7554369568824768, -0.2397010177373886, 0.7840496301651001, 0.3535533845424652, 0.5359161496162415, 0.07702214270830154, 0.7131511569023132, 0.15563437342643738, 0.3200746476650238, -0.43361696600914, 0.43419378995895386, -0.10642574727535248, -0.6381819844245911, -0.24077913165092468, -0.42997437715530396, -0.8610802888870239, 0.13541008532047272, -0.14555145800113678, -0.622403621673584, 0.4325108826160431, 0.019756680354475975, -0.6014498472213745, 0.3677167296409607, -0.6258124113082886, 0.8044817447662354, -0.17744393646717072, -0.5073179006576538, 0.21050439774990082, -0.6627817749977112, 0.4627698063850403, 0.15490569174289703, 0.16183210909366608, -0.11734310537576675, -0.06176558509469032, 0.7484639286994934, -0.7555307745933533, 0.8042530417442322, -0.2222031056880951, 0.021482957527041435, 0.6658496856689453, -0.014955216087400913, 0.6123715043067932, 0.2757900655269623, -0.07931273430585861, 0.3299010097980499, 0.2589235007762909, -0.3498036563396454, -0.3709205090999603, 0.7257246375083923, -1.0656800270080566, -0.6140987873077393, -0.5175249576568604, -0.4369022846221924, 0.07319120317697525, 0.22099629044532776, 0.4485166668891907, 0.2713279724121094, 0.1363382786512375, -0.00038530502934008837, 0.2644273638725281, -0.21919262409210205, 0.8157181143760681, 0.3273424804210663, -0.265056312084198, -0.6303096413612366, 0.8428374528884888, 0.025952234864234924, -0.010617205873131752, 0.0004166772705502808, 0.21521951258182526, -0.619176983833313, -0.3121950328350067, -0.6859232187271118, 0.4822971820831299, -0.5335472822189331, -0.3283519744873047, -0.6720181703567505, -0.4409310221672058, -0.49383288621902466, -0.08389872312545776, -0.4730285108089447, -0.47904321551322937, -0.5981696844100952, 0.15200509130954742, 0.6504203081130981, 0.6406186819076538, -0.2707212269306183, 0.43305736780166626, -0.71207195520401, 0.19493556022644043, 0.43012985587120056, 0.19255903363227844, 0.037806615233421326, -0.6783279180526733, -0.041006386280059814, 0.29394498467445374, -0.5779564380645752, -0.6943415999412537, 0.820313036441803, 0.10414132475852966, 0.562524676322937, 0.177185520529747, 0.19332149624824524, 0.8036378622055054, -0.1963249295949936, 0.8796870708465576, 0.34134045243263245, -1.0450528860092163, 0.35934707522392273, -0.6236581802368164, 0.2618945240974426, 0.35269296169281006, 0.5036040544509888, -0.3637549579143524, -0.33852219581604004, -0.8212254047393799, -0.5426788330078125, 0.4982201159000397, 0.5075891017913818, 0.0472823902964592, -0.003428142983466387, 0.58481365442276, -0.24998094141483307, 0.1531607210636139, -0.8445150852203369, -0.4213346838951111, -0.6911981701850891, -0.12593120336532593, 0.10320139676332474, 0.08674728870391846, -0.13983114063739777, -0.5987124443054199, 0.9562143683433533, -0.21062305569648743, 0.7320908904075623, 0.4622512757778168, 0.1962435394525528, -0.1881691962480545, -0.05939871445298195, 0.3881990909576416, 0.5484824776649475, -0.11124467849731445, -0.13119374215602875, 0.000046954457502579316, -0.600063145160675, 0.09298991411924362, 0.4849686622619629, -0.317501425743103, -0.10907014459371567, -0.05979682877659798, 0.770751416683197, -0.1374797821044922, -0.14094789326190948, 0.4726126790046692, -0.2943955659866333, -0.41702696681022644, -0.28001105785369873, 0.23342294991016388, 0.3512676954269409, 0.6113268733024597, 0.37542596459388733, -0.28769198060035706, 0.18781107664108276, -0.40287333726882935, 0.1632881462574005, 0.5993173122406006, -0.33523356914520264, -0.231362983584404, 1.145154356956482, 0.08357909321784973, -0.24211016297340393, 0.778430700302124, -0.3207838535308838, -0.5634311437606812, 0.9836114048957825, 0.6184960603713989, 0.8853092193603516, -0.10905872285366058, 0.38292819261550903, 0.5452063679695129, 0.26836225390434265, 0.04392161965370178, 0.291570782661438, 0.14820438623428345, -0.515843391418457, -0.1539158821105957, -0.6058828830718994, -0.3979061543941498, 0.18220271170139313, -0.4200476408004761, 0.2662419080734253, -0.6008706092834473, -0.4182886481285095, 0.03195435181260109, 0.2888955771923065, -0.5284003615379333, 0.23068095743656158, 0.19529059529304504, 0.7244821786880493, -0.5330044031143188, 0.8011882901191711, 0.5343735814094543, -0.6720113754272461, -1.0114402770996094, -0.2202475517988205, 0.020645370706915855, -0.7560247182846069, 0.40977221727371216, 0.038003306835889816, -0.04736611619591713, 0.3949422836303711, -0.7663883566856384, -0.8799950480461121, 1.3207306861877441, 0.20264412462711334, -0.544076144695282, -0.11590521782636642, 0.10584665089845657, 0.30953410267829895, -0.4057984948158264, 0.6910706162452698, 0.447702556848526, 0.48886892199516296, 0.22248245775699615, -0.9513916969299316, 0.3119554817676544, -0.5130488872528076, -0.0804685726761818, 0.06376668810844421, -1.2586884498596191, 1.0398017168045044, -0.22334745526313782, -0.09986145049333572, 0.12566721439361572, 0.7174723148345947, 0.3119400143623352, 0.1939939260482788, 0.40582606196403503, 0.5801938772201538, 0.8410471677780151, -0.21306084096431732, 1.0084900856018066, -0.4824461042881012, 0.7402371764183044, 0.6581510305404663, -0.038761772215366364, 0.554836094379425, 0.1572059839963913, -0.43006059527397156, 0.4524555206298828, 0.7996803522109985, -0.35330697894096375, 0.3157424330711365, 0.00575840612873435, -0.2997233271598816, -0.18338459730148315, -0.04848841205239296, -0.7524105310440063, 0.3247237205505371, 0.3098090887069702, -0.22287490963935852, -0.03646394982933998, -0.22515660524368286, 0.024361656978726387, -0.5244597792625427, -0.23972250521183014, 0.39035478234291077, 0.2304711490869522, -0.44021907448768616, 1.0992398262023926, -0.016857672482728958, 0.714846134185791, -0.5512791275978088, -0.05315537750720978, -0.4947459399700165, 0.03882819414138794, -0.2901841998100281, -0.6614137291908264, 0.2523145377635956, -0.1553487628698349, -0.011600274592638016, 0.09310106933116913, 0.7302758097648621, -0.25814804434776306, -0.5846499800682068, 0.16957317292690277, 0.3539944589138031, 0.22875352203845978, -0.0399845689535141, -1.0666580200195312, 0.28044241666793823, -0.009839987382292747, -0.3673531115055084, 0.3006695508956909, 0.22215057909488678, 0.24756790697574615, 0.7620887756347656, 0.6073254346847534, -0.28375890851020813, 0.11789866536855698, -0.2847493290901184, 0.9660391807556152, -0.7251700162887573, -0.3857586681842804, -0.8083195686340332, 0.5690104961395264, 0.0033308696001768112, -0.32894986867904663, 0.7362391948699951, 0.5687373876571655, 0.6408402919769287, -0.05134269595146179, 0.8405002355575562, -0.2763560712337494, 0.07399792969226837, -0.2238273173570633, 1.1356756687164307, -0.8035092353820801, 0.12349391728639603, -0.3243255615234375, -0.5579155087471008, -0.03314054012298584, 0.8040711879730225, -0.024249639362096786, 0.26326823234558105, 0.4912793040275574, 0.8837969303131104, -0.08840566873550415, 0.18707314133644104, 0.17265649139881134, 0.3801342248916626, 0.3673709034919739, 0.895237386226654, 0.7928999066352844, -0.9034765958786011, 0.6355130672454834, -0.6022741198539734, -0.15770788490772247, -0.04237305745482445, -0.9309386610984802, -0.808681070804596, -0.48692387342453003, -0.5126758813858032, -0.5598863363265991, 0.0757005587220192, 0.7898569703102112, 0.7906802892684937, -0.5131261348724365, -0.2907663881778717, -0.16741973161697388, 0.028396109119057655, -0.045477334409952164, -0.26886996626853943, 0.44395655393600464, 0.002678477670997381, -0.8377155661582947, 0.24772003293037415, 0.06080400198698044, 0.4791557192802429, -0.13939864933490753, -0.22677569091320038, -0.29559439420700073, 0.04835641384124756, 0.41934967041015625, 0.6238091588020325, -0.6286700367927551, -0.14173263311386108, 0.09496508538722992, -0.06762533634901047, 0.259765088558197, 0.25455597043037415, -0.8307586312294006, 0.11236348748207092, 0.3302086591720581, 0.39786291122436523, 0.797126293182373, 0.01452619768679142, 0.2990556061267853, -0.2118513435125351, 0.10167630016803741, 0.06896916776895523, 0.39088892936706543, 0.16330072283744812, -0.6114548444747925, 0.5980138778686523, 0.4256228804588318, -0.7873067259788513, -0.6942782998085022, -0.17682714760303497, -1.10191810131073, -0.15580083429813385, 1.103661298751831, -0.1352074295282364, -0.43984469771385193, 0.06501699239015579, -0.21653839945793152, 0.5076602697372437, -0.5092960596084595, 0.6174654364585876, 0.4303222894668579, -0.27408990263938904, -0.3302704095840454, -0.5678338408470154, 0.55997633934021, 0.18410447239875793, -0.8863729238510132, -0.09620509296655655, 0.46004897356033325, 0.4169066250324249, 0.042536962777376175, 0.8008134365081787, -0.10523573309183121, 0.33806169033050537, 0.1450248807668686, 0.0512116514146328, -0.39711615443229675, -0.02652699686586857, -0.2770487666130066, 0.04540751874446869, -0.3546968400478363, -0.20631109178066254 ]
ayameRushia/bert-base-indonesian-1.5G-sentiment-analysis-smsa
ayameRushia
"2021-12-22T08:52:47Z"
36,145
5
transformers
[ "transformers", "pytorch", "bert", "text-classification", "generated_from_trainer", "id", "dataset:indonlu", "license:mit", "model-index", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- license: mit tags: - generated_from_trainer datasets: - indonlu metrics: - accuracy model-index: - name: bert-base-indonesian-1.5G-finetuned-sentiment-analysis-smsa results: - task: name: Text Classification type: text-classification dataset: name: indonlu type: indonlu args: smsa metrics: - name: Accuracy type: accuracy value: 0.9373015873015873 language: id widget: - text: "Saya mengapresiasi usaha anda" --- <!-- 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-indonesian-1.5G-finetuned-sentiment-analysis-smsa This model is a fine-tuned version of [cahya/bert-base-indonesian-1.5G](https://huggingface.co/cahya/bert-base-indonesian-1.5G) on the indonlu dataset. It achieves the following results on the evaluation set: - Loss: 0.3390 - Accuracy: 0.9373 ## 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: 16 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 10 ### Training results | Training Loss | Epoch | Step | Validation Loss | Accuracy | |:-------------:|:-----:|:----:|:---------------:|:--------:| | 0.2864 | 1.0 | 688 | 0.2154 | 0.9286 | | 0.1648 | 2.0 | 1376 | 0.2238 | 0.9357 | | 0.0759 | 3.0 | 2064 | 0.3351 | 0.9365 | | 0.044 | 4.0 | 2752 | 0.3390 | 0.9373 | | 0.0308 | 5.0 | 3440 | 0.4346 | 0.9365 | | 0.0113 | 6.0 | 4128 | 0.4708 | 0.9365 | | 0.006 | 7.0 | 4816 | 0.5533 | 0.9325 | | 0.0047 | 8.0 | 5504 | 0.5888 | 0.9310 | | 0.0001 | 9.0 | 6192 | 0.5961 | 0.9333 | | 0.0 | 10.0 | 6880 | 0.5992 | 0.9357 | ### Framework versions - Transformers 4.14.1 - Pytorch 1.10.0+cu111 - Datasets 1.16.1 - Tokenizers 0.10.3
[ -0.6333580613136292, -0.7487301230430603, -0.007216956932097673, 0.35522279143333435, -0.4642927348613739, -0.37797921895980835, -0.2606193721294403, -0.18605723977088928, 0.3575900197029114, 0.41431841254234314, -0.7880316972732544, -0.7237622141838074, -0.7687060832977295, -0.11487298458814621, -0.11516042798757553, 1.3603154420852661, 0.21796295046806335, 0.3238906264305115, -0.036032840609550476, -0.11401364952325821, -0.3618125915527344, -0.5552991032600403, -0.8976675271987915, -0.47653913497924805, 0.3086833357810974, 0.379661500453949, 0.867259681224823, 0.43302619457244873, 0.6457619071006775, 0.23621529340744019, -0.43080922961235046, -0.16851994395256042, -0.4957679212093353, -0.3603963255882263, 0.12102822959423065, -0.6108973622322083, -0.5429097414016724, -0.04230378195643425, 0.5705562233924866, 0.6291720867156982, -0.1459987908601761, 0.6451213955879211, 0.15350694954395294, 0.8002747893333435, -0.4718548357486725, 0.33356568217277527, -0.4696318805217743, 0.2914779782295227, -0.10718507319688797, -0.13683493435382843, -0.27272531390190125, -0.3736027479171753, 0.38128939270973206, -0.549016535282135, 0.37363991141319275, -0.19661970436573029, 1.564968228340149, 0.4274941384792328, -0.35812440514564514, -0.061281584203243256, -0.668483316898346, 0.8890567421913147, -0.8815596103668213, 0.09640944004058838, 0.43159371614456177, 0.3807571232318878, 0.13346897065639496, -0.6291893124580383, -0.6728801131248474, 0.24904391169548035, -0.08648458123207092, 0.2698475122451782, -0.07107722759246826, -0.06831423193216324, 0.5484104752540588, 0.582672119140625, -0.533043622970581, 0.04577139392495155, -0.5551338195800781, -0.1817692220211029, 0.6534031629562378, 0.24453341960906982, -0.14936421811580658, -0.6510441303253174, -0.5388107895851135, -0.2129267007112503, -0.33424192667007446, 0.3966815769672394, 0.6564782857894897, 0.40089505910873413, -0.45715537667274475, 0.5473411679267883, -0.2702198028564453, 0.7153947353363037, 0.15146155655384064, -0.33095329999923706, 0.73947674036026, 0.051176778972148895, -0.5834346413612366, 0.1677824854850769, 0.799942135810852, 0.6159753203392029, 0.31865715980529785, 0.477181077003479, -0.15039874613285065, 0.009554298594594002, 0.2569323182106018, -1.0038845539093018, -0.3499801456928253, 0.3076305389404297, -0.9505367875099182, -0.7224664092063904, 0.1842580884695053, -0.6886709928512573, 0.2254893183708191, -0.5767252445220947, 0.48719269037246704, -0.5785783529281616, -0.4975321888923645, -0.026063982397317886, 0.0032954986672848463, 0.5855298638343811, 0.13751369714736938, -0.9573928713798523, 0.25193583965301514, 0.5202820897102356, 0.7155497074127197, 0.22713324427604675, -0.033076390624046326, 0.21555577218532562, -0.10443373024463654, -0.4020664393901825, 0.601847231388092, -0.13396823406219482, -0.5512138605117798, -0.00796362105756998, 0.19237934052944183, -0.15818417072296143, -0.4094688296318054, 0.9638569951057434, -0.3086175322532654, 0.43882110714912415, -0.393309086561203, -0.6883479356765747, -0.4942716062068939, 0.5442599654197693, -0.639440655708313, 1.43788743019104, 0.08246807008981705, -1.0185056924819946, 0.725859522819519, -0.6787437796592712, -0.16054467856884003, -0.20098167657852173, -0.13146477937698364, -0.9786369204521179, -0.159765362739563, 0.303211510181427, 0.6810601353645325, -0.16802117228507996, 0.3778306245803833, -0.3067423105239868, -0.5311658978462219, -0.06897765398025513, -0.51016765832901, 1.2596100568771362, 0.3513690233230591, -0.5175977945327759, 0.1404729187488556, -1.314725637435913, 0.19756852090358734, 0.23387737572193146, -0.49792802333831787, -0.22217726707458496, -0.25984421372413635, 0.4531302750110626, 0.30222299695014954, 0.4264247715473175, -0.6924148201942444, 0.21528205275535583, -0.5770779848098755, 0.16350030899047852, 0.8165074586868286, 0.14173342287540436, -0.010437737219035625, -0.3969438076019287, 0.2982155680656433, 0.3961063325405121, 0.4161013960838318, 0.04891219362616539, -0.580212414264679, -1.0190236568450928, -0.3605678379535675, 0.2689473628997803, 0.5147644281387329, -0.3686251640319824, 0.9423314332962036, -0.2661944329738617, -0.8766191005706787, -0.43132272362709045, 0.04319080337882042, 0.2975412607192993, 0.7011367678642273, 0.3197515308856964, -0.18580764532089233, -0.715122401714325, -1.2741436958312988, -0.01339798979461193, -0.15745612978935242, 0.23332378268241882, 0.3215959370136261, 0.7168052196502686, -0.220937579870224, 1.0993300676345825, -0.5609510540962219, -0.40356069803237915, -0.2630995810031891, 0.14835931360721588, 0.7430931925773621, 0.8151379227638245, 0.9422172904014587, -0.7224165201187134, -0.5306673049926758, -0.1404656320810318, -0.9638779759407043, 0.4393330216407776, -0.18790550529956818, -0.23408927023410797, 0.21426312625408173, 0.16625696420669556, -0.657853901386261, 0.7742711901664734, 0.4954721927642822, -0.4129577577114105, 0.8625149726867676, -0.23933985829353333, -0.04267851263284683, -1.427675485610962, 0.33504608273506165, 0.23276343941688538, -0.16544346511363983, -0.3486320376396179, -0.11898238956928253, 0.03989033028483391, -0.24573257565498352, -0.39568406343460083, 0.4880155920982361, -0.06193498522043228, 0.06430745869874954, -0.0581391341984272, -0.49708059430122375, -0.163580521941185, 0.9700131416320801, 0.12634192407131195, 0.807225227355957, 0.7685849070549011, -0.5219722390174866, 0.22808030247688293, 0.4595177471637726, -0.6272040009498596, 0.6335331201553345, -0.9329797029495239, -0.021625472232699394, -0.07611864060163498, 0.050033021718263626, -1.157207727432251, -0.28695061802864075, 0.34607213735580444, -0.6017329096794128, 0.23756901919841766, -0.20378270745277405, -0.2763962745666504, -0.5469367504119873, -0.3223590850830078, 0.0919606164097786, 0.6716152429580688, -0.5839571356773376, 0.5291385054588318, -0.08381855487823486, 0.04260648787021637, -0.8579056859016418, -0.87556391954422, -0.19408991932868958, -0.20748592913150787, -0.588986873626709, 0.1959189623594284, 0.14709891378879547, 0.034527719020843506, 0.05243704840540886, -0.08735594153404236, -0.2419213205575943, -0.013666892424225807, 0.46071311831474304, 0.437570184469223, -0.245980367064476, -0.11512430757284164, 0.12584711611270905, -0.16714181005954742, 0.3697397708892822, 0.05420554056763649, 0.7009829878807068, -0.21459916234016418, -0.26736342906951904, -0.9626641869544983, -0.03824932873249054, 0.5435197353363037, -0.13255618512630463, 1.0914374589920044, 0.8100102543830872, -0.5165284872055054, 0.15691012144088745, -0.4988405406475067, -0.030305303633213043, -0.4710010588169098, 0.5198366045951843, -0.6333491206169128, -0.3195205330848694, 0.8774551153182983, -0.07944949716329575, 0.23750710487365723, 1.0714129209518433, 0.6210952401161194, -0.09866765886545181, 1.3156073093414307, 0.45339134335517883, -0.2758953273296356, 0.3601403832435608, -0.9238122701644897, 0.005460603628307581, -0.7318059206008911, -0.4813653528690338, -0.5831218361854553, -0.38338056206703186, -0.770338773727417, 0.19483187794685364, 0.25318533182144165, 0.04195210710167885, -0.8562688827514648, 0.09844110161066055, -0.7012501955032349, 0.2809475064277649, 0.8090672492980957, 0.5642609000205994, -0.07551337033510208, 0.1447431743144989, -0.3696196973323822, -0.23439989984035492, -0.8036982417106628, -0.6145007610321045, 1.5004135370254517, 0.5274637937545776, 0.7562379240989685, -0.06760091334581375, 0.8688526749610901, 0.13656564056873322, 0.23284213244915009, -0.6584455370903015, 0.4007994830608368, -0.08523526787757874, -1.0428932905197144, -0.18018768727779388, -0.28359338641166687, -0.8977862596511841, 0.2246314138174057, -0.3048250377178192, -0.5073651075363159, 0.41480642557144165, 0.06652050465345383, -0.48640280961990356, 0.47715622186660767, -0.5322302579879761, 1.1676610708236694, -0.12404945492744446, -0.17643290758132935, -0.25105005502700806, -0.7544035911560059, 0.3874877989292145, 0.1933245062828064, -0.12092409282922745, -0.1095471978187561, 0.28035059571266174, 1.0231173038482666, -0.6376839876174927, 0.8983004689216614, -0.5906185507774353, 0.20882533490657806, 0.4425356984138489, -0.20546631515026093, 0.4781598448753357, 0.19243189692497253, -0.21688835322856903, 0.17829476296901703, 0.08439182490110397, -0.8204288482666016, -0.3893791139125824, 0.8296514749526978, -1.4029327630996704, -0.30981558561325073, -0.693405270576477, -0.3599725365638733, 0.03728511929512024, 0.2849877178668976, 0.5172955393791199, 0.5755626559257507, -0.07317018508911133, 0.3948102593421936, 0.785455048084259, -0.15932990610599518, 0.36754289269447327, 0.11023472249507904, -0.12447269260883331, -0.6394022703170776, 0.9166198968887329, -0.03878704085946083, 0.17250187695026398, -0.08574964851140976, 0.04012748599052429, -0.39251893758773804, -0.20328368246555328, -0.5491487383842468, 0.1737133413553238, -0.8338812589645386, -0.21318915486335754, -0.4802931845188141, -0.4167677164077759, -0.4190652370452881, -0.14501723647117615, -0.48923835158348083, -0.37348058819770813, -0.5239385962486267, -0.18899841606616974, 0.4511971175670624, 0.428518146276474, 0.2485375553369522, 0.5710368156433105, -0.5772958397865295, -0.05910564586520195, 0.17127832770347595, 0.35275575518608093, 0.07970007508993149, -0.7564265131950378, -0.2969297766685486, -0.04179000109434128, -0.39750581979751587, -0.7471370100975037, 0.6623010635375977, 0.11940296739339828, 0.5439329743385315, 0.7466124296188354, -0.2693255543708801, 0.9718816876411438, -0.05759473890066147, 1.1029447317123413, 0.3842293620109558, -0.7429947853088379, 0.7678346633911133, -0.33350270986557007, 0.35540056228637695, 0.7442551851272583, 0.6833683848381042, -0.27497598528862, -0.07485118508338928, -1.2727020978927612, -0.884069561958313, 0.8318935036659241, 0.23575809597969055, 0.13875052332878113, 0.03684652969241142, 0.515928328037262, -0.09004950523376465, 0.27535662055015564, -1.0184288024902344, -0.7335086464881897, -0.526299774646759, -0.44998571276664734, 0.04172878712415695, -0.3618471026420593, -0.029470419511198997, -0.6968224048614502, 1.1156954765319824, 0.03993047773838043, 0.42659714818000793, 0.34351205825805664, 0.10825471580028534, -0.09572919458150864, 0.0181838758289814, 0.5665338039398193, 0.7364190816879272, -0.6649774312973022, -0.2182578593492508, 0.21279799938201904, -0.5926793217658997, 0.007051027845591307, 0.19805653393268585, -0.3250367045402527, 0.26702767610549927, 0.34739020466804504, 1.0192660093307495, 0.16285239160060883, -0.2583180069923401, 0.5863433480262756, 0.012511934153735638, -0.44511380791664124, -0.760542631149292, -0.05941024795174599, -0.20752212405204773, 0.1228117123246193, 0.47831475734710693, 0.5697191953659058, 0.0288852509111166, -0.27591705322265625, 0.03950618952512741, 0.20631183683872223, -0.6300022602081299, -0.09176968038082123, 0.8084925413131714, 0.11891946941614151, -0.04050624743103981, 0.8314449787139893, -0.0785905197262764, -0.4989520311355591, 1.009765863418579, 0.3864714205265045, 0.8580731153488159, -0.28364241123199463, 0.0023706923238933086, 1.0118911266326904, 0.24581439793109894, -0.017789755016565323, 0.7769030928611755, 0.21856792271137238, -0.49967673420906067, -0.3021148443222046, -0.8354247808456421, -0.28951653838157654, 0.42417165637016296, -1.1774675846099854, 0.4136297404766083, -0.6420269012451172, -0.5059266090393066, 0.0907839685678482, 0.22794291377067566, -1.027028203010559, 0.7372556924819946, -0.025060638785362244, 1.2365561723709106, -1.0179804563522339, 0.861920177936554, 0.8306382298469543, -0.6246242523193359, -1.0948214530944824, -0.29406654834747314, -0.23006850481033325, -0.8941358923912048, 0.8230575323104858, 0.2572934031486511, 0.4289909899234772, 0.04525773972272873, -0.7069040536880493, -0.9621963500976562, 1.1191380023956299, -0.03966137021780014, -0.6724277138710022, 0.186837300658226, 0.302019327878952, 0.6922322511672974, -0.08129238337278366, 0.475544810295105, 0.4985407888889313, 0.36444953083992004, -0.10244881361722946, -0.8856868147850037, -0.07219039648771286, -0.4269678294658661, 0.17577669024467468, 0.16126146912574768, -0.8481236100196838, 1.1195003986358643, 0.09474451094865799, 0.415170818567276, 0.11020004749298096, 0.9009137153625488, 0.2616738975048065, 0.16518810391426086, 0.6286304593086243, 1.0475616455078125, 0.5504807829856873, -0.2559831142425537, 1.0725816488265991, -0.5537540316581726, 0.9222835898399353, 0.932797372341156, 0.14738838374614716, 0.8430970907211304, 0.4932977855205536, -0.44351068139076233, 0.6769905090332031, 1.021381139755249, -0.1909261792898178, 0.5049635767936707, -0.027774175629019737, -0.16813534498214722, -0.3450586497783661, 0.19396449625492096, -0.6353890299797058, 0.3963908553123474, 0.28209730982780457, -0.6595308184623718, -0.2615964114665985, -0.03395300358533859, 0.10248754918575287, -0.14117425680160522, -0.46214261651039124, 0.6549955606460571, -0.38373619318008423, -0.4398725926876068, 0.8325715661048889, 0.015820473432540894, 0.778328001499176, -0.7029411792755127, -0.013043168000876904, -0.1585923582315445, 0.42114660143852234, -0.39481186866760254, -0.874782145023346, 0.34059378504753113, 0.00820094533264637, -0.2016318440437317, 0.14867568016052246, 0.7130861878395081, -0.16182242333889008, -0.9840742945671082, -0.06773131340742111, 0.2698502838611603, 0.1372014433145523, 0.05690935254096985, -1.1395800113677979, -0.05642581731081009, 0.16081413626670837, -0.7470673322677612, -0.0036078239791095257, 0.33852869272232056, 0.03719640523195267, 0.5757588744163513, 0.7296056747436523, -0.0616103932261467, 0.1515493243932724, 0.16236943006515503, 1.0443356037139893, -0.7295005917549133, -0.7979905605316162, -0.7504891753196716, 0.47945886850357056, -0.41594216227531433, -0.9451083540916443, 0.7709185481071472, 0.9921318292617798, 0.9109896421432495, -0.2987896502017975, 0.8173068165779114, -0.20848694443702698, 0.6385736465454102, -0.39185476303100586, 0.7278713583946228, -0.5404447913169861, -0.14601562917232513, -0.3198501765727997, -0.9697598218917847, -0.27007195353507996, 0.9801463484764099, -0.4507758319377899, 0.09246940165758133, 0.31533849239349365, 0.7500084042549133, 0.03927747160196304, 0.20972122251987457, 0.0027330650482326746, 0.12243976444005966, 0.24158424139022827, 0.4189203679561615, 0.4949793815612793, -0.9394394159317017, 0.49493828415870667, -0.808018147945404, -0.10761956870555878, -0.16027309000492096, -0.6738516092300415, -1.084688663482666, -0.3982106149196625, -0.4503307342529297, -0.43971094489097595, -0.09420812129974365, 1.2836426496505737, 0.8381956219673157, -0.8917153477668762, -0.31465765833854675, -0.08383388072252274, -0.3864409923553467, -0.41256996989250183, -0.3268664479255676, 0.7875993251800537, -0.41782334446907043, -0.8706520199775696, -0.36597174406051636, -0.28454136848449707, 0.2649986147880554, -0.3922431766986847, -0.14500969648361206, -0.42886537313461304, -0.11498779058456421, 0.45301109552383423, 0.04464050009846687, -0.7445136308670044, -0.26612570881843567, -0.11632244288921356, -0.213546022772789, 0.30303946137428284, 0.1959099918603897, -0.6483445167541504, 0.42228963971138, 0.30661430954933167, 0.5495620965957642, 0.7652437090873718, -0.012583873234689236, 0.047249048948287964, -0.931402325630188, 0.4997669756412506, 0.10775485634803772, 0.4040725827217102, 0.14721828699111938, -0.4636412262916565, 0.5676790475845337, 0.4279312193393707, -0.6444582939147949, -0.7782277464866638, -0.3835858106613159, -1.3577182292938232, -0.08314807713031769, 1.1033470630645752, -0.11855854094028473, -0.5570614337921143, 0.24181239306926727, -0.5480703115463257, 0.28354209661483765, -0.31391820311546326, 0.7998066544532776, 0.9442533850669861, -0.14947853982448578, 0.12411879003047943, -0.5370373129844666, 0.646039605140686, 0.6095839142799377, -0.6684051156044006, -0.3151113986968994, 0.252204954624176, 0.48914358019828796, 0.18975332379341125, 0.40468451380729675, -0.1107301190495491, 0.40740978717803955, 0.14226795732975006, 0.3679780066013336, -0.02746436931192875, -0.0859040692448616, -0.322417289018631, 0.10020731389522552, 0.0628788024187088, -0.5992663502693176 ]
facebook/mask2former-swin-large-coco-instance
facebook
"2023-09-11T20:35:35Z"
36,028
3
transformers
[ "transformers", "pytorch", "safetensors", "mask2former", "vision", "image-segmentation", "dataset:coco", "arxiv:2112.01527", "arxiv:2107.06278", "license:other", "endpoints_compatible", "region:us" ]
image-segmentation
"2023-01-02T12:10:40Z"
--- 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 instance segmentation (large-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 instance 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 instance segmentation processor = AutoImageProcessor.from_pretrained("facebook/mask2former-swin-large-coco-instance") model = Mask2FormerForUniversalSegmentation.from_pretrained("facebook/mask2former-swin-large-coco-instance") 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_instance_segmentation(outputs, target_sizes=[image.size[::-1]])[0] # we refer to the demo notebooks for visualization (see "Resources" section in the Mask2Former docs) predicted_instance_map = result["segmentation"] ``` For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/mask2former).
[ -0.47746190428733826, -0.7181399464607239, 0.2981366217136383, 0.21505577862262726, -0.3370661437511444, -0.09813077747821808, 0.09450820833444595, -0.7471054196357727, 0.1347573697566986, 0.5423641204833984, -0.5854136943817139, -0.27443403005599976, -0.7536134123802185, -0.36565691232681274, -0.15665753185749054, 0.8177976012229919, -0.06861983239650726, -0.07521365582942963, -0.38962894678115845, -0.036345914006233215, -0.3165312111377716, -0.4014265239238739, -0.9084906578063965, -0.3454964756965637, 0.2005109190940857, 0.3903469145298004, 0.30411338806152344, 0.5486186146736145, 0.5537342429161072, 0.31673985719680786, -0.11114349961280823, -0.03184536099433899, -0.531427264213562, -0.08746553957462311, 0.12284205108880997, -0.5153225064277649, -0.22776809334754944, 0.14287613332271576, 0.5061859488487244, 0.24130137264728546, 0.08724991977214813, 0.4223482310771942, -0.07224790006875992, 0.5174351334571838, -0.5594448447227478, 0.2918058931827545, -0.4747559726238251, 0.16870245337486267, -0.09169847518205643, 0.4022606611251831, -0.33824989199638367, -0.10540684312582016, 0.10212927311658859, -0.3893786668777466, 0.5327900052070618, 0.01935080997645855, 1.035320520401001, 0.2472226917743683, -0.10012836009263992, -0.08319959044456482, -0.44487544894218445, 0.7394521832466125, -0.3865264356136322, 0.2437150627374649, 0.3806780278682709, 0.6252924799919128, 0.2034839391708374, -1.162972331047058, -0.39479854702949524, 0.22475086152553558, -0.1227581650018692, 0.11163699626922607, -0.3128291368484497, 0.028612248599529266, 0.42778870463371277, 0.40335026383399963, -0.5139047503471375, 0.06544807553291321, -0.9021963477134705, -0.328092098236084, 0.6810644268989563, -0.18470007181167603, 0.31884920597076416, -0.21979539096355438, -0.5736631155014038, -0.2971400022506714, -0.3148442506790161, 0.5008596181869507, 0.15305648744106293, -0.2970171272754669, -0.25390222668647766, 0.5422747731208801, -0.08865270763635635, 0.675383985042572, 0.3304394483566284, -0.12541237473487854, 0.1537054032087326, 0.21681340038776398, -0.38045114278793335, 0.08968916535377502, 0.6824612021446228, 0.4198753535747528, 0.03440452367067337, 0.06401611119508743, -0.07193344831466675, 0.19008441269397736, 0.3004664480686188, -1.2839301824569702, -0.5767619013786316, 0.2321373075246811, -0.35631054639816284, -0.3951572775840759, 0.27445587515830994, -0.7515258193016052, 0.023732414469122887, -0.05765632912516594, 0.41886287927627563, -0.2841275632381439, -0.08687345683574677, -0.025108924135565758, -0.2160881608724594, 0.4513051509857178, 0.26646891236305237, -0.9930410981178284, 0.4241992235183716, 0.5203816890716553, 0.9852522015571594, -0.11125306785106659, 0.11415248364210129, -0.24594123661518097, 0.0167060699313879, -0.2656727731227875, 1.0051088333129883, -0.41513532400131226, -0.06763581931591034, -0.30798712372779846, 0.36486518383026123, -0.26606521010398865, -0.6444078683853149, 0.40032291412353516, -0.5132930278778076, 0.3945252001285553, -0.1914839744567871, -0.3434324264526367, -0.6504730582237244, 0.051101502031087875, -0.5074381232261658, 1.2784146070480347, 0.5388389229774475, -0.5162723064422607, 0.18214543163776398, -0.5742195844650269, -0.2026033103466034, -0.05903591588139534, -0.08507836610078812, -0.958790123462677, 0.02889620140194893, 0.3603793978691101, 0.49593159556388855, -0.26775509119033813, 0.011487924493849277, -0.3128455579280853, -0.23862700164318085, 0.05329237878322601, 0.1834631711244583, 0.8901361227035522, 0.13863956928253174, -0.6594527959823608, 0.3509293496608734, -0.4393775463104248, 0.1073402538895607, 0.39907577633857727, 0.23207475244998932, 0.16101627051830292, -0.40734899044036865, 0.3331547975540161, 0.6375621557235718, -0.0005908989696763456, -0.5488253235816956, 0.1696331799030304, -0.10017349570989609, 0.7824956774711609, 0.602620542049408, 0.07614351063966751, 0.4154322147369385, -0.1719513237476349, 0.39929303526878357, 0.07475096732378006, 0.47194594144821167, -0.11040002852678299, -0.7139315605163574, -0.8891832232475281, -0.4116508364677429, 0.025659779086709023, 0.26096311211586, -0.33184167742729187, 0.38264596462249756, 0.2217782884836197, -0.6800030469894409, -0.43778476119041443, -0.01696527935564518, 0.4279639720916748, 0.632928192615509, 0.3783881962299347, -0.5944347977638245, -0.7448554635047913, -1.084625005722046, 0.27732717990875244, 0.09241808950901031, -0.0902596190571785, 0.37246641516685486, 0.5774869322776794, -0.4113042652606964, 0.9012923240661621, -0.68808913230896, -0.4217776656150818, -0.23349125683307648, -0.038834862411022186, -0.09519997239112854, 0.6785052418708801, 0.7391805648803711, -0.8175471425056458, -0.34814468026161194, -0.34784701466560364, -0.8281554579734802, 0.09519490599632263, 0.07548350840806961, -0.35836631059646606, 0.2732302248477936, 0.3734953701496124, -0.41401275992393494, 0.5198739767074585, 0.519230842590332, -0.2974235713481903, 0.5900391340255737, 0.08409653604030609, -0.0035062602255493402, -0.8586949706077576, 0.1319403052330017, 0.12133486568927765, -0.34371235966682434, -0.4700051546096802, 0.11790091544389725, 0.1533927023410797, -0.2266506552696228, -0.5991436839103699, 0.4782566428184509, -0.6314017176628113, -0.3631819784641266, -0.2799590826034546, -0.27206864953041077, 0.23471415042877197, 0.7162830233573914, 0.35948243737220764, 0.4867224097251892, 0.788302481174469, -0.4386720657348633, 0.439196914434433, 0.2772586941719055, -0.45965853333473206, 0.4264889359474182, -1.0248581171035767, 0.4551856517791748, -0.02589520998299122, 0.46121516823768616, -1.1247780323028564, -0.5843817591667175, 0.4898650348186493, -0.3737921416759491, 0.41574758291244507, -0.31594210863113403, -0.25297608971595764, -0.8275545239448547, -0.4352760910987854, 0.7166028618812561, 0.8040867447853088, -0.6242977380752563, 0.21277457475662231, 0.5070826411247253, 0.16116975247859955, -0.2348962128162384, -0.8286736607551575, -0.1929614245891571, -0.22464002668857574, -0.9014447331428528, 0.46259015798568726, -0.02678488753736019, 0.06076672673225403, -0.014540637843310833, -0.25713199377059937, -0.08349013328552246, -0.31586432456970215, 0.4906967282295227, 0.3727053105831146, -0.11042289435863495, -0.3998185396194458, 0.13149510324001312, -0.20380504429340363, 0.13007625937461853, -0.4268275499343872, 0.6803900599479675, -0.18958333134651184, -0.24366939067840576, -0.7353061437606812, 0.025780851021409035, 0.3983900547027588, -0.26110976934432983, 0.5931350588798523, 1.025374412536621, -0.6977192759513855, -0.05605457350611687, -0.9006126523017883, -0.43019500374794006, -0.4758998155593872, 0.29921746253967285, -0.4424232542514801, -0.8818275928497314, 0.5852577090263367, 0.14919565618038177, -0.06076986715197563, 0.696953296661377, 0.5399526953697205, 0.019634291529655457, 1.0499250888824463, 0.6515932083129883, 0.29394468665122986, 0.5802422761917114, -0.932931125164032, 0.1448362171649933, -1.2798385620117188, -0.7233046293258667, -0.09714379161596298, -0.5100207328796387, -0.195024773478508, -0.805347740650177, 0.5009726285934448, 0.5743814706802368, -0.14962562918663025, 0.5583480596542358, -1.0310969352722168, 0.2516616880893707, 0.5654265880584717, 0.2513248920440674, -0.2754541039466858, 0.3464350998401642, 0.17128632962703705, -0.01774955540895462, -0.6351138949394226, -0.378428190946579, 0.7344327569007874, 0.5089868307113647, 0.45716384053230286, -0.2652762234210968, 0.4083350598812103, -0.012960279360413551, 0.12651540338993073, -0.8232989311218262, 0.4088045358657837, 0.12896554172039032, -0.5633495450019836, -0.16003239154815674, -0.027656957507133484, -0.7542047500610352, 0.36628809571266174, -0.0057411352172493935, -1.1500134468078613, 0.4182698428630829, 0.14408627152442932, -0.2904554605484009, 0.4090961813926697, -0.712238073348999, 1.0917776823043823, -0.05788296461105347, -0.4619766175746918, 0.07480347156524658, -0.7482272982597351, 0.5315139889717102, 0.08217993378639221, -0.1341523379087448, -0.18500901758670807, 0.2953047752380371, 1.218360185623169, -0.5121756196022034, 0.8298589587211609, -0.2657442092895508, 0.19775238633155823, 0.7457078099250793, -0.18344661593437195, 0.3103647828102112, 0.18595626950263977, 0.057792507112026215, 0.4118771255016327, 0.012038036249577999, -0.5472543835639954, -0.5690556168556213, 0.539984405040741, -0.8377583026885986, -0.4332181215286255, -0.3347684144973755, -0.2948395311832428, 0.20111867785453796, 0.11935436725616455, 0.7939092516899109, 0.4355561137199402, -0.002732499735429883, 0.122297003865242, 0.5919111967086792, 0.005048980005085468, 0.424880713224411, -0.08098851144313812, -0.16497144103050232, -0.46125686168670654, 0.6676066517829895, 0.04318087920546532, 0.2509554326534271, 0.1992509961128235, 0.1889970302581787, -0.4875456690788269, -0.16161711513996124, -0.6784765720367432, 0.37252384424209595, -0.4649270176887512, -0.4063873589038849, -0.893024206161499, -0.46025601029396057, -0.8065580725669861, -0.3837747275829315, -0.49334439635276794, -0.4786982238292694, -0.32903480529785156, -0.03800336644053459, 0.4203778803348541, 0.5256831645965576, -0.12653031945228577, 0.5294668674468994, -0.29466524720191956, 0.30911728739738464, 0.6205363869667053, 0.25855982303619385, -0.15689395368099213, -0.6161981225013733, -0.03480454906821251, 0.021287482231855392, -0.5446135401725769, -0.7508648633956909, 0.2752651870250702, 0.025514215230941772, 0.35901546478271484, 0.6575804352760315, -0.2159513533115387, 0.6884484887123108, -0.1522681713104248, 0.7295105457305908, 0.4848578870296478, -0.8104991316795349, 0.7350027561187744, -0.06583327800035477, 0.07590287178754807, 0.24482782185077667, 0.14821389317512512, -0.6178247928619385, -0.12145531922578812, -0.7838758230209351, -0.9096964001655579, 1.2389968633651733, 0.2489529401063919, -0.10505427420139313, 0.2241528332233429, 0.47791463136672974, -0.04902363196015358, 0.04362661391496658, -0.6799708604812622, -0.33587953448295593, -0.4310164749622345, 0.12031681090593338, -0.10024981945753098, -0.7453730702400208, -0.04608752951025963, -0.48416247963905334, 0.7044743895530701, 0.0450584702193737, 0.621175229549408, 0.3264846205711365, -0.2942325472831726, -0.27752718329429626, -0.4029155671596527, 0.5366272926330566, 0.5108240246772766, -0.2654748558998108, 0.16516180336475372, 0.031076759099960327, -0.5124927759170532, 0.013343553058803082, 0.11384274065494537, -0.31160926818847656, -0.16540385782718658, 0.30659714341163635, 1.0824227333068848, 0.11127586662769318, -0.26498711109161377, 0.48583224415779114, 0.11801839619874954, -0.3292727768421173, -0.3665272891521454, 0.16670528054237366, 0.01573020964860916, 0.25292307138442993, 0.1805194914340973, 0.24516388773918152, 0.2927710711956024, -0.37961068749427795, 0.21183928847312927, 0.2534806728363037, -0.6011008620262146, -0.3877374827861786, 0.9376824498176575, -0.1453109085559845, -0.2471875697374344, 0.6744042634963989, -0.2728492021560669, -0.8459646701812744, 1.0868088006973267, 0.7530435919761658, 0.8009564876556396, -0.4050001800060272, 0.3162040710449219, 0.7859050035476685, 0.18877126276493073, -0.16006630659103394, -0.11615480482578278, -0.10143030434846878, -0.45657485723495483, -0.027783822268247604, -0.6654506921768188, -0.053852736949920654, 0.19496281445026398, -0.6923706531524658, 0.33609744906425476, -0.6211223602294922, -0.05648248642683029, 0.11761165410280228, 0.12764137983322144, -0.7768251895904541, 0.43086886405944824, 0.2186354547739029, 0.623821496963501, -0.763759195804596, 0.6650937795639038, 0.9533430933952332, -0.38861677050590515, -0.7909062504768372, -0.43759214878082275, 0.08565205335617065, -1.0306260585784912, 0.30224624276161194, 0.7432981729507446, 0.028487922623753548, -0.08675181865692139, -0.5741177201271057, -0.8261151909828186, 1.2791537046432495, 0.18474075198173523, -0.4033754765987396, 0.09615962952375412, 0.05273384973406792, 0.28418871760368347, -0.512462317943573, 0.5273394584655762, 0.5397390723228455, 0.3914363384246826, 0.6056280136108398, -0.45933181047439575, 0.22092273831367493, -0.32849156856536865, 0.31207603216171265, -0.020627787336707115, -0.9096498489379883, 0.8302015066146851, -0.44237464666366577, -0.1293247640132904, -0.03835717588663101, 0.7930364608764648, 0.23557999730110168, 0.41706034541130066, 0.5442086458206177, 0.6842615604400635, 0.5480679869651794, -0.15245695412158966, 0.9714377522468567, 0.013583521358668804, 0.6141847372055054, 0.764585554599762, 0.17973840236663818, 0.4599905014038086, 0.2513454556465149, -0.08331044763326645, 0.5536404252052307, 0.9915339350700378, -0.43400275707244873, 0.4136899709701538, 0.18855378031730652, -0.06795080006122589, -0.15026819705963135, -0.01945745386183262, -0.4693582355976105, 0.610056459903717, 0.24481724202632904, -0.4206141233444214, -0.054874490946531296, 0.12573878467082977, 0.06513458490371704, -0.35453087091445923, -0.1956326812505722, 0.6779518127441406, 0.02666543982923031, -0.6338980793952942, 0.7015471458435059, 0.25609123706817627, 0.63130122423172, -0.37650567293167114, -0.007957457564771175, -0.14359433948993683, 0.13999105989933014, -0.4168218672275543, -0.6252430081367493, 0.509738564491272, -0.17038409411907196, -0.16847045719623566, 0.023039638996124268, 0.8329933881759644, -0.39139649271965027, -0.8295085430145264, 0.1987728625535965, 0.0011729709804058075, 0.47452312707901, -0.3582955002784729, -0.8861842155456543, 0.4854097068309784, 0.018010253086686134, -0.45865264534950256, 0.23719476163387299, 0.001319804578088224, -0.2507488429546356, 0.40014684200286865, 0.5892554521560669, -0.3962327241897583, 0.003012110246345401, -0.048647329211235046, 0.9057360291481018, -0.34470435976982117, -0.4093673825263977, -0.6190389394760132, 0.49171632528305054, -0.2880353331565857, -0.20243556797504425, 0.4951528310775757, 0.9453611969947815, 0.9068688750267029, -0.17086414992809296, 0.5127285718917847, -0.2288685142993927, -0.012278768233954906, -0.3326355516910553, 0.5786153674125671, -0.5092361569404602, -0.24208718538284302, -0.3145751357078552, -1.1952060461044312, -0.2605968117713928, 1.0012469291687012, -0.4448908269405365, 0.2139941155910492, 0.5695720911026001, 0.8315520882606506, -0.37239494919776917, -0.12539511919021606, 0.13743744790554047, -0.030632445588707924, 0.3507102429866791, 0.5083522796630859, 0.3642067611217499, -0.7162438631057739, 0.3650996685028076, -0.8887186646461487, -0.5169276595115662, -0.4073575437068939, -0.36495959758758545, -0.9527103900909424, -0.7457818984985352, -0.5520275831222534, -0.3731962740421295, -0.048228614032268524, 0.44436222314834595, 1.3847732543945312, -0.847981333732605, -0.17643585801124573, -0.09399904310703278, 0.05235443636775017, -0.2534539997577667, -0.315915584564209, 0.6895613670349121, -0.13841325044631958, -0.9322359561920166, -0.08140303194522858, 0.28951019048690796, 0.04179815202951431, 0.012866349890828133, 0.01085654180496931, 0.11507588624954224, -0.19215944409370422, 0.7627660036087036, 0.3844397962093353, -0.7476573586463928, -0.325334757566452, -0.13267436623573303, -0.029881034046411514, 0.24732881784439087, 0.7777095437049866, -0.6277095079421997, 0.4680362641811371, 0.22855323553085327, 0.2460668385028839, 1.1634496450424194, 0.08872653543949127, 0.05231770873069763, -0.4994227886199951, 0.42741847038269043, 0.1129273772239685, 0.46833479404449463, 0.36501020193099976, -0.6119732856750488, 0.5691819787025452, 0.39578574895858765, -0.5294381976127625, -0.6251753568649292, 0.25044918060302734, -1.406723141670227, -0.19749949872493744, 1.1228889226913452, -0.17286865413188934, -0.5670984387397766, 0.25825536251068115, -0.5114836096763611, 0.4937054216861725, -0.28230416774749756, 0.8429930806159973, 0.2104397565126419, -0.3568090498447418, -0.47853797674179077, -0.25941601395606995, 0.5224698185920715, 0.13176597654819489, -0.7624348402023315, -0.43277794122695923, 0.4451940059661865, 0.6122267246246338, 0.12444869428873062, 0.6396846771240234, -0.37685489654541016, 0.31984972953796387, 0.08748962730169296, 0.37026095390319824, -0.3015628159046173, -0.2872689366340637, -0.1566854864358902, 0.1489773988723755, -0.33259281516075134, -0.5363517999649048 ]
deepset/gbert-large
deepset
"2023-05-05T07:00:08Z"
36,016
40
transformers
[ "transformers", "pytorch", "tf", "safetensors", "fill-mask", "de", "dataset:wikipedia", "dataset:OPUS", "dataset:OpenLegalData", "dataset:oscar", "arxiv:2010.10906", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: de license: mit datasets: - wikipedia - OPUS - OpenLegalData - oscar --- # German BERT large Released, Oct 2020, this is a German BERT language model trained collaboratively by the makers of the original German BERT (aka "bert-base-german-cased") and the dbmdz BERT (aka bert-base-german-dbmdz-cased). In our [paper](https://arxiv.org/pdf/2010.10906.pdf), we outline the steps taken to train our model and show that it outperforms its predecessors. ## Overview **Paper:** [here](https://arxiv.org/pdf/2010.10906.pdf) **Architecture:** BERT large **Language:** German ## Performance ``` GermEval18 Coarse: 80.08 GermEval18 Fine: 52.48 GermEval14: 88.16 ``` See also: deepset/gbert-base deepset/gbert-large deepset/gelectra-base deepset/gelectra-large deepset/gelectra-base-generator deepset/gelectra-large-generator ## Authors **Branden Chan:** branden.chan@deepset.ai **Stefan Schweter:** stefan@schweter.eu **Timo Möller:** timo.moeller@deepset.ai ## About us <div class="grid lg:grid-cols-2 gap-x-4 gap-y-3"> <div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center"> <img alt="" src="https://raw.githubusercontent.com/deepset-ai/.github/main/deepset-logo-colored.png" class="w-40"/> </div> <div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center"> <img alt="" src="https://raw.githubusercontent.com/deepset-ai/.github/main/haystack-logo-colored.png" class="w-40"/> </div> </div> [deepset](http://deepset.ai/) is the company behind the open-source NLP framework [Haystack](https://haystack.deepset.ai/) which is designed to help you build production ready NLP systems that use: Question answering, summarization, ranking etc. Some of our other work: - [Distilled roberta-base-squad2 (aka "tinyroberta-squad2")]([https://huggingface.co/deepset/tinyroberta-squad2) - [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert) - [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad) ## Get in touch and join the Haystack community <p>For more info on Haystack, visit our <strong><a href="https://github.com/deepset-ai/haystack">GitHub</a></strong> repo and <strong><a href="https://docs.haystack.deepset.ai">Documentation</a></strong>. We also have a <strong><a class="h-7" href="https://haystack.deepset.ai/community">Discord community open to everyone!</a></strong></p> [Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Discord](https://haystack.deepset.ai/community) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai) By the way: [we're hiring!](http://www.deepset.ai/jobs)
[ -0.6056510806083679, -0.6252864599227905, 0.4208180904388428, 0.07153882831335068, -0.04904206469655037, 0.029048968106508255, -0.43328335881233215, -0.6315605640411377, 0.386362224817276, 0.2741904854774475, -0.7121996283531189, -0.7326213121414185, -0.33114099502563477, -0.11696744710206985, -0.4228823482990265, 0.9658121466636658, 0.13170720636844635, 0.1497870832681656, 0.03179304301738739, -0.06546107679605484, -0.31099948287010193, -0.6071593761444092, -0.6873061060905457, -0.3933444619178772, 0.5510501265525818, 0.38822004199028015, 0.7000035047531128, 0.25322505831718445, 0.5616449117660522, 0.33363455533981323, -0.1335413008928299, -0.0641007125377655, -0.49524033069610596, 0.10807916522026062, -0.02590608410537243, -0.12953723967075348, -0.3952288329601288, -0.16433179378509521, 0.6070995926856995, 0.7804940342903137, -0.14413988590240479, 0.30314901471138, -0.09796080738306046, 0.8101553320884705, -0.6036935448646545, 0.04398846998810768, -0.5934450626373291, -0.09419158846139908, -0.1590304672718048, 0.5044543147087097, -0.27405279874801636, -0.28985318541526794, 0.18038135766983032, -0.422173410654068, 0.3665003180503845, -0.3054097294807434, 1.1377934217453003, 0.023233942687511444, -0.19815118610858917, -0.16691052913665771, -0.6069153547286987, 0.6365370154380798, -0.9775320887565613, 0.332046240568161, 0.338529497385025, 0.49016866087913513, -0.07887902855873108, -1.0695511102676392, -0.5587219595909119, -0.25392863154411316, -0.1074848622083664, 0.15043561160564423, -0.10109961777925491, -0.26254427433013916, 0.10123294591903687, 0.49720433354377747, -0.7784721255302429, 0.3460353910923004, -0.45651906728744507, 0.024958470836281776, 0.8402317762374878, -0.05731244757771492, 0.024990132078528404, 0.04215328395366669, -0.1842542141675949, -0.3940470516681671, -0.6181362867355347, -0.08086709678173065, 0.2713030278682709, 0.33350011706352234, -0.2233039289712906, 0.5022042393684387, -0.1395205706357956, 0.5585976839065552, 0.2179880291223526, 0.5341589450836182, 0.6273902654647827, -0.47464519739151, -0.23008939623832703, -0.01744728721678257, 0.8741095066070557, 0.24026639759540558, 0.08173415809869766, -0.11258606612682343, -0.3725907802581787, -0.19115908443927765, 0.30592021346092224, -0.8721979260444641, -0.23706696927547455, 0.3381267488002777, -0.5357945561408997, -0.2539846897125244, 0.06134534254670143, -0.6429397463798523, -0.40755903720855713, -0.04205838590860367, 0.6357825398445129, -0.5233383774757385, -0.3364764451980591, 0.2636706233024597, -0.2330136001110077, 0.5680246353149414, 0.21485677361488342, -0.9104321002960205, 0.18897555768489838, 0.813761830329895, 0.6649829149246216, 0.23849675059318542, -0.3421749174594879, -0.31700679659843445, -0.031160742044448853, -0.40590402483940125, 0.5117371082305908, -0.311625212430954, -0.15408481657505035, 0.2145231068134308, 0.09331768751144409, 0.16486546397209167, -0.3420829772949219, 0.43861350417137146, -0.6919412016868591, 0.516945481300354, -0.24626512825489044, -0.6412206888198853, -0.1861857920885086, 0.17856590449810028, -0.897655725479126, 0.9155139327049255, 0.12665319442749023, -0.5106837153434753, 0.3187987506389618, -0.849683403968811, -0.5306893587112427, 0.15996786952018738, -0.00798096228390932, -0.38357871770858765, -0.075419582426548, 0.19653786718845367, 0.5392452478408813, -0.15360505878925323, 0.18316981196403503, -0.39910173416137695, -0.5835098028182983, 0.17326080799102783, 0.0007139681256376207, 1.1957215070724487, 0.13934151828289032, -0.43633511662483215, 0.01596197299659252, -0.7711023092269897, 0.1775883138179779, 0.32696008682250977, -0.3361769914627075, -0.0062812319956719875, -0.11594539135694504, 0.24271531403064728, 0.11219248920679092, 0.7273039221763611, -0.40476828813552856, 0.20267026126384735, -0.5359309315681458, 0.49060750007629395, 0.7668454647064209, -0.16027405858039856, 0.40407517552375793, -0.13763223588466644, 0.30762746930122375, -0.3276876211166382, 0.14290153980255127, 0.027715040370821953, -0.28208768367767334, -0.9307569265365601, -0.16131867468357086, 0.6120411157608032, 0.5568774342536926, -0.5711625814437866, 1.091018795967102, -0.2641165554523468, -0.735623300075531, -0.5167772769927979, 0.1135205328464508, 0.2908307909965515, 0.23046696186065674, 0.2531137466430664, -0.269065260887146, -0.7770033478736877, -1.211273193359375, 0.1043488085269928, -0.11606819182634354, -0.27769502997398376, 0.29619964957237244, 0.6489034295082092, -0.5033717751502991, 0.6176211833953857, -0.5742074251174927, -0.30752769112586975, -0.17192529141902924, 0.03320109844207764, 0.6666408181190491, 0.6286450624465942, 0.748471200466156, -0.7687318325042725, -0.5027793049812317, -0.09331629425287247, -0.7830426096916199, 0.35944223403930664, 0.011780734173953533, -0.3293054401874542, 0.3249334692955017, 0.4156438112258911, -0.7740421891212463, 0.06603027135133743, 0.6188223958015442, -0.43890494108200073, 0.37560343742370605, -0.12053293734788895, -0.14680296182632446, -1.3383712768554688, 0.43933483958244324, 0.060064371675252914, -0.11501665413379669, -0.3715337812900543, 0.2589474022388458, -0.21737517416477203, -0.11502720415592194, -0.31412702798843384, 0.5292525887489319, -0.3807053864002228, -0.08576469868421555, 0.21280765533447266, -0.09097635000944138, -0.100751593708992, 0.4801696240901947, -0.21976161003112793, 0.9375693202018738, 0.5881838798522949, -0.4706980288028717, 0.5829874873161316, 0.4415736794471741, -0.6364549398422241, 0.25799909234046936, -0.8698166608810425, 0.19977687299251556, 0.08153241872787476, 0.3197290301322937, -0.8149540424346924, -0.4166237413883209, 0.0914229080080986, -0.6280418634414673, 0.35205593705177307, -0.005837549455463886, -0.8784120678901672, -0.6313135623931885, -0.4885018467903137, 0.02854003757238388, 0.9012691378593445, -0.5746797323226929, 0.27395761013031006, 0.39367416501045227, -0.1538311243057251, -0.6024621725082397, -0.8576534390449524, 0.3453519642353058, 0.0530734658241272, -0.7911564111709595, 0.45811131596565247, -0.13788703083992004, -0.11572480201721191, 0.18762701749801636, 0.07481729239225388, -0.4534073770046234, 0.18774807453155518, 0.03653968125581741, 0.2495790272951126, -0.41223084926605225, 0.3329547643661499, -0.27968382835388184, -0.08610579371452332, 0.011534986086189747, -0.28624066710472107, 0.7591913342475891, -0.6783019304275513, -0.1633332073688507, -0.4655359089374542, 0.42505332827568054, 0.36653435230255127, -0.2331148087978363, 0.7905057668685913, 0.9542370438575745, -0.4693431854248047, -0.0032231472432613373, -0.6061704754829407, -0.3190368115901947, -0.5232537388801575, 0.41862982511520386, -0.169005885720253, -1.0316071510314941, 0.5130711197853088, 0.19805720448493958, 0.25126004219055176, 0.8654447793960571, 0.6255748867988586, -0.4861913323402405, 0.9525665044784546, 0.7829897403717041, -0.14301449060440063, 0.6777210235595703, -0.6275527477264404, 0.012113659642636776, -0.7089254260063171, -0.027730923146009445, -0.5202721357345581, -0.5796427130699158, -0.7454248070716858, -0.14091964066028595, 0.13824708759784698, 0.002061182865872979, -0.6680842041969299, 0.4812472462654114, -0.6523848176002502, 0.3924802541732788, 1.0157525539398193, 0.12324654310941696, -0.12394141405820847, 0.054548829793930054, 0.08640996366739273, 0.11946053802967072, -0.6142674088478088, -0.45677730441093445, 1.1449273824691772, 0.16786327958106995, 0.5154342651367188, 0.16810663044452667, 1.0485196113586426, 0.40115928649902344, -0.1539461463689804, -0.6178925633430481, 0.5915675163269043, -0.2807483673095703, -0.9823324084281921, -0.5284304022789001, -0.38197270035743713, -1.1833628416061401, -0.0399690642952919, -0.20883311331272125, -0.7100803852081299, 0.24463985860347748, 0.09808182716369629, -0.2564822733402252, 0.20072323083877563, -0.8747559785842896, 0.9745990633964539, -0.32158246636390686, -0.1813204288482666, -0.34025344252586365, -0.8750939965248108, 0.19613517820835114, -0.11116539686918259, -0.01780582405626774, -0.05292470380663872, 0.13671757280826569, 0.711662232875824, -0.5541115403175354, 1.0278407335281372, -0.16645722091197968, -0.1807146817445755, 0.23043198883533478, -0.08578503131866455, 0.5398996472358704, 0.046326011419296265, -0.3260608911514282, 0.4335797131061554, -0.08015932142734528, -0.4850727617740631, -0.3036559820175171, 0.7551911473274231, -0.7890511751174927, -0.3812621235847473, -0.3904251456260681, -0.19731087982654572, -0.10683950036764145, 0.6163737773895264, 0.23875564336776733, 0.24406090378761292, -0.4347233474254608, 0.6486913561820984, 0.6437098979949951, -0.22624297440052032, 0.4325268566608429, 0.37974369525909424, -0.10277223587036133, -0.4473854601383209, 0.8927087187767029, -0.03915463387966156, -0.09573251754045486, 0.40448224544525146, 0.07234814018011093, -0.17131367325782776, -0.43880635499954224, -0.3431243300437927, 0.24965935945510864, -0.586182177066803, -0.14216512441635132, -0.4085974097251892, -0.5203532576560974, -0.7121986746788025, -0.25085994601249695, -0.43467941880226135, -0.4503719210624695, -0.18226617574691772, -0.06578999012708664, 0.5134140253067017, 0.6549823880195618, -0.36260318756103516, 0.1397053450345993, -0.6596337556838989, 0.20962153375148773, 0.5077440738677979, 0.5344412922859192, -0.09209544211626053, -0.19656714797019958, -0.41544604301452637, 0.34916985034942627, -0.00997645128518343, -0.45365452766418457, 0.09947521984577179, 0.14421305060386658, 0.5582404732704163, 0.1457519680261612, -0.01891144923865795, 0.3718435764312744, -0.6508060693740845, 0.8688721656799316, 0.29509514570236206, -0.8287601470947266, 0.5716299414634705, -0.4450165033340454, 0.4362901449203491, 0.9382680654525757, 0.21315713226795197, -0.7197785377502441, -0.18251097202301025, -0.7713954448699951, -1.0971263647079468, 0.5531618595123291, 0.28339043259620667, 0.38437414169311523, 0.03225049376487732, 0.08901326358318329, 0.06951604038476944, 0.36402076482772827, -0.592902660369873, -0.33547478914260864, -0.09472949802875519, -0.16987662017345428, -0.15414974093437195, -0.41746941208839417, -0.24627941846847534, -0.3193191587924957, 0.9370331764221191, 0.05823413282632828, 0.4063935875892639, 0.008686114102602005, -0.09546669572591782, 0.12765128910541534, 0.09319283068180084, 0.5470001101493835, 0.923551619052887, -0.4972185492515564, -0.10352566093206406, 0.15807554125785828, -0.3943402171134949, -0.20571382343769073, 0.45167282223701477, -0.4060528576374054, 0.2665764093399048, 0.5537344813346863, 0.7552357912063599, 0.157725527882576, -0.6458026170730591, 0.628287136554718, 0.010012000799179077, -0.48858556151390076, -0.7235773205757141, 0.07824014127254486, 0.29062414169311523, 0.41554638743400574, 0.4900282919406891, -0.19746454060077667, 0.24530960619449615, -0.37676653265953064, 0.20310468971729279, 0.5297544598579407, -0.3393842279911041, -0.08993540704250336, 0.3589319884777069, 0.4335750937461853, -0.37676355242729187, 0.7431114912033081, -0.2302839308977127, -0.6211978197097778, 0.7963830232620239, 0.30151480436325073, 0.9931473135948181, 0.18435780704021454, 0.26801198720932007, 0.4610726535320282, 0.40822160243988037, 0.10099082440137863, 0.28224050998687744, 0.03942817822098732, -0.5960469841957092, -0.42223942279815674, -0.48578372597694397, -0.3293722867965698, 0.41323840618133545, -0.6351036429405212, 0.1551036834716797, -0.5537177920341492, -0.1760367602109909, 0.16506735980510712, 0.29265475273132324, -0.8771803379058838, 0.2170189768075943, 0.20003896951675415, 1.009379267692566, -0.45118674635887146, 0.5912086367607117, 0.8837682008743286, -0.5683242082595825, -0.4979704022407532, -0.058406684547662735, -0.21855729818344116, -0.9892702698707581, 0.4934249222278595, 0.2026815563440323, -0.08037079125642776, 0.04896766319870949, -0.9957420825958252, -0.9606375694274902, 1.0734872817993164, 0.23177209496498108, -0.5795343518257141, -0.155409038066864, -0.29028674960136414, 0.5927095413208008, -0.07331081479787827, -0.15584474802017212, 0.30024129152297974, 0.606168270111084, 0.16555815935134888, -0.8891744017601013, 0.12732909619808197, -0.41928908228874207, 0.03151443228125572, 0.17267736792564392, -0.71034836769104, 0.7118348479270935, -0.09148755669593811, -0.1994733065366745, 0.30745041370391846, 0.5486443042755127, 0.04581087455153465, 0.03841903805732727, 0.4632125496864319, 0.6674978137016296, 0.8704779744148254, -0.01564270630478859, 0.9927089810371399, -0.20704983174800873, 0.5074560046195984, 1.2894375324249268, -0.31618648767471313, 0.9448322057723999, 0.3170299828052521, -0.2847056984901428, 0.6685158610343933, 0.6599684953689575, -0.5663528442382812, 0.5315375924110413, 0.1829143464565277, -0.07136324793100357, -0.4310607612133026, 0.09263116866350174, -0.9530665874481201, 0.41396966576576233, 0.18083269894123077, -0.46943199634552, -0.2361821085214615, -0.36565878987312317, -0.06878018379211426, -0.12836754322052002, -0.010114019736647606, 0.8033519387245178, -0.048255566507577896, -0.37775173783302307, 0.7770859003067017, -0.025731166824698448, 0.6758086681365967, -0.7284102439880371, 0.02169184945523739, -0.1869511604309082, 0.35255008935928345, -0.001780819147825241, -0.9828255772590637, 0.0002858465304598212, -0.08104967325925827, -0.3341502845287323, -0.20609886944293976, 0.5878825783729553, -0.2125103920698166, -0.8223876953125, 0.21442478895187378, 0.4636017382144928, 0.22561149299144745, 0.08878622949123383, -0.7998232245445251, -0.015278157778084278, -0.07576745003461838, -0.2819502055644989, 0.1745891273021698, 0.44110849499702454, 0.21700216829776764, 0.521927535533905, 0.7689010500907898, 0.0019529348937794566, -0.1399744749069214, 0.15722158551216125, 0.8951180577278137, -0.7756381034851074, -0.28587499260902405, -0.7560023069381714, 0.46774378418922424, -0.4845394194126129, -0.3786192536354065, 0.6161963939666748, 0.7556073069572449, 1.0003399848937988, -0.20578983426094055, 0.8420274257659912, -0.28029128909111023, 0.5458440780639648, -0.37492287158966064, 1.0114834308624268, -0.8039705753326416, -0.15789711475372314, -0.13376280665397644, -0.8972453474998474, -0.24283255636692047, 0.858930230140686, -0.03303460031747818, 0.31903472542762756, 0.5537931323051453, 0.5724090933799744, 0.051078446209430695, -0.3388793170452118, 0.06058478355407715, 0.4185790717601776, 0.26578980684280396, 0.7553873658180237, 0.6768487691879272, -0.49150046706199646, 0.6689175963401794, -0.3128891885280609, -0.01668454520404339, -0.5784242153167725, -0.7953361868858337, -0.7756087183952332, -0.6248019337654114, -0.23449325561523438, -0.5460256338119507, 0.17982585728168488, 0.7815797328948975, 0.835283637046814, -0.9223246574401855, -0.2610073387622833, -0.08321065455675125, 0.1428188979625702, -0.2509787082672119, -0.23452222347259521, 0.4025598168373108, -0.21915535628795624, -0.6155775189399719, 0.35542574524879456, -0.045481517910957336, 0.046349890530109406, -0.2838152050971985, 0.030546661466360092, -0.5386727452278137, -0.22859109938144684, 0.5720040798187256, 0.41772761940956116, -0.5724790096282959, -0.1937527358531952, -0.03208606317639351, -0.39618390798568726, -0.06891851127147675, 0.41760194301605225, -0.6648245453834534, 0.17774870991706848, 0.47894537448883057, 0.7489311099052429, 0.7158027291297913, -0.2854844927787781, 0.7251694202423096, -0.7763140201568604, 0.1348203420639038, 0.38517066836357117, 0.3955303132534027, 0.29626718163490295, -0.38503700494766235, 0.8572471737861633, -0.02808164246380329, -0.487914502620697, -0.7824671864509583, 0.07681405544281006, -0.958877682685852, -0.4442145824432373, 1.1659208536148071, 0.15922074019908905, -0.10011348873376846, 0.3529558777809143, -0.12552495300769806, 0.16637912392616272, -0.5097211003303528, 0.751874566078186, 0.7935785055160522, 0.23120075464248657, 0.18973101675510406, -0.4538545608520508, 0.24880777299404144, 0.27725332975387573, -0.6998183131217957, -0.07490725070238113, 0.7185341715812683, 0.12163464725017548, 0.29103884100914, 0.5222352743148804, 0.19180859625339508, 0.47668442130088806, -0.12876953184604645, 0.4626076817512512, -0.03758819028735161, -0.12598489224910736, -0.3786773979663849, -0.03867141529917717, -0.026960404589772224, -0.399202823638916 ]
timm/twins_pcpvt_base.in1k
timm
"2023-04-23T23:21:45Z"
35,997
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2104.13840", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-23T23:21:13Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for twins_pcpvt_base.in1k A Twins-PCPVT image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 43.8 - GMACs: 6.7 - Activations (M): 25.2 - Image size: 224 x 224 - **Papers:** - Twins: Revisiting the Design of Spatial Attention in Vision Transformers: https://arxiv.org/abs/2104.13840 - **Dataset:** ImageNet-1k - **Original:** https://github.com/Meituan-AutoML/Twins ## 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('twins_pcpvt_base.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( 'twins_pcpvt_base.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, 49, 512) 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{chu2021Twins, title={Twins: Revisiting the Design of Spatial Attention in Vision Transformers}, author={Xiangxiang Chu and Zhi Tian and Yuqing Wang and Bo Zhang and Haibing Ren and Xiaolin Wei and Huaxia Xia and Chunhua Shen}, booktitle={NeurIPS 2021}, url={https://openreview.net/forum?id=5kTlVBkzSRx}, year={2021} } ```
[ -0.5202305912971497, -0.44743818044662476, 0.06251801550388336, 0.38805219531059265, -0.13744190335273743, -0.41638877987861633, -0.11672196537256241, -0.3515298664569855, 0.22512297332286835, 0.429867148399353, -0.590411901473999, -0.4740055203437805, -0.6586376428604126, -0.09702914953231812, -0.06690012663602829, 0.8406085968017578, -0.11869251728057861, 0.05609901249408722, -0.3211328089237213, -0.3278045952320099, -0.340654194355011, -0.4466550052165985, -0.7874391674995422, -0.33710137009620667, 0.3156801462173462, 0.28709134459495544, 0.5628044009208679, 0.5115742087364197, 0.8153393864631653, 0.4758740961551666, -0.0438377782702446, 0.0962727889418602, -0.25003063678741455, -0.38605862855911255, 0.3418765962123871, -0.5403004288673401, -0.4365561902523041, 0.3292153477668762, 0.7715651988983154, 0.5628265142440796, 0.11487714946269989, 0.24866250157356262, 0.31697434186935425, 0.7077844738960266, -0.1680852770805359, 0.29485782980918884, -0.3485017418861389, 0.44124868512153625, 0.046491049230098724, -0.0966518446803093, -0.29782047867774963, -0.4386850893497467, 0.4074424207210541, -0.5010990500450134, 0.592181921005249, -0.041197653859853745, 1.1316040754318237, 0.4626561105251312, -0.11317937821149826, 0.15836597979068756, -0.31754904985427856, 0.8526114821434021, -0.5320954918861389, 0.24444667994976044, 0.2199087291955948, 0.14210198819637299, -0.028205925598740578, -0.8109325170516968, -0.5403060913085938, -0.17268092930316925, -0.30653637647628784, 0.06145676225423813, -0.2984694838523865, -0.049379415810108185, 0.40911075472831726, 0.13132698833942413, -0.5662194490432739, -0.03538963943719864, -0.5443995594978333, -0.02723667211830616, 0.5156758427619934, 0.15984930098056793, 0.2949860394001007, -0.22805340588092804, -0.7421265244483948, -0.3694365620613098, -0.14705120027065277, 0.20193645358085632, 0.22506240010261536, 0.10565099865198135, -0.6692969799041748, 0.41053205728530884, 0.21634314954280853, 0.43135812878608704, 0.5054479241371155, -0.0015485190087929368, 0.7621416449546814, -0.20999915897846222, -0.46425309777259827, -0.27588513493537903, 1.026739478111267, 0.46839460730552673, 0.30076342821121216, -0.02991955541074276, 0.16655217111110687, -0.3086175322532654, 0.13741980493068695, -0.8694857358932495, -0.34066301584243774, 0.28286901116371155, -0.5807161331176758, -0.3243390619754791, 0.3193170130252838, -0.7118329405784607, 0.03486041724681854, -0.31942838430404663, 0.624585747718811, -0.44625917077064514, -0.35069984197616577, 0.23646941781044006, -0.26248666644096375, 0.573080837726593, 0.017205458134412766, -0.7175601124763489, 0.12999384105205536, 0.4267692267894745, 0.9705315828323364, -0.11801968514919281, -0.771789014339447, -0.08588710427284241, -0.17001307010650635, -0.14817483723163605, 0.6263821125030518, -0.01910514384508133, -0.054135762155056, -0.3326241970062256, 0.35292577743530273, -0.38161247968673706, -0.6302220225334167, 0.32208117842674255, -0.0808638259768486, 0.3800773024559021, -0.22356224060058594, -0.03285019099712372, -0.3111826479434967, 0.2721073627471924, -0.44272467494010925, 1.1700528860092163, 0.1796867698431015, -1.0190691947937012, 0.44180062413215637, -0.6463013291358948, -0.13521498441696167, -0.04549800604581833, -0.02163693495094776, -1.0810809135437012, -0.02322613261640072, 0.3045716881752014, 0.6429677605628967, 0.05334125831723213, 0.07660931348800659, -0.5879698991775513, -0.23328785598278046, 0.2146291434764862, -0.09655271470546722, 1.0253448486328125, -0.17465496063232422, -0.47991496324539185, 0.24006062746047974, -0.5056374073028564, 0.20421293377876282, 0.535906970500946, -0.19093593955039978, -0.057918060570955276, -0.4463310241699219, 0.17498645186424255, 0.33909139037132263, 0.23059965670108795, -0.4868773818016052, 0.2909888029098511, -0.28073394298553467, 0.44278112053871155, 0.6115245223045349, -0.14235083758831024, 0.35699403285980225, -0.34447044134140015, 0.2644433379173279, 0.33561205863952637, 0.527748167514801, 0.1845107078552246, -0.6698598265647888, -0.9130521416664124, -0.3151400089263916, 0.038269639015197754, 0.4843533933162689, -0.5651788711547852, 0.7261387705802917, -0.14730368554592133, -0.5895549058914185, -0.4402830898761749, -0.07757095247507095, 0.5000084042549133, 0.42233192920684814, 0.3027321398258209, -0.5295069813728333, -0.5826795697212219, -1.0498772859573364, -0.1261899620294571, 0.06282523274421692, 0.0992274060845375, 0.5280073881149292, 0.7156479358673096, -0.2010759860277176, 0.6750376224517822, -0.4751945734024048, -0.26579758524894714, -0.15740886330604553, 0.07515474408864975, 0.4372469186782837, 0.7394953966140747, 0.925045371055603, -0.7336180210113525, -0.5803440809249878, -0.26908057928085327, -0.8714122176170349, 0.07204195111989975, 0.004135913215577602, -0.3253675401210785, 0.3483547270298004, 0.13644947111606598, -0.6601924300193787, 0.734062135219574, 0.15660351514816284, -0.5396239757537842, 0.5263966917991638, -0.32150182127952576, 0.1639775186777115, -1.0103793144226074, 0.1897197812795639, 0.226598858833313, -0.015347308479249477, -0.515834391117096, -0.019148044288158417, 0.06676752120256424, -0.032771844416856766, -0.5587115287780762, 0.4817620515823364, -0.5582752227783203, -0.25667670369148254, -0.17868222296237946, -0.264084130525589, -0.00043202878441661596, 0.9897390604019165, 0.15189538896083832, 0.21510186791419983, 0.7322229743003845, -0.4122244715690613, 0.5379044413566589, 0.5503816604614258, -0.09741809964179993, 0.5276728272438049, -0.7272950410842896, 0.24538734555244446, -0.15905508399009705, 0.17762093245983124, -1.1496187448501587, -0.09790752828121185, 0.3880375623703003, -0.6993098855018616, 0.5314747095108032, -0.4083835482597351, -0.5557480454444885, -0.7486709952354431, -0.46160459518432617, 0.5389895439147949, 0.5150863528251648, -0.9423331618309021, 0.3422106206417084, 0.23084038496017456, 0.13912850618362427, -0.5914081335067749, -1.041558861732483, -0.23239018023014069, -0.30795252323150635, -0.791820764541626, 0.310082346200943, -0.06988129019737244, 0.1744636595249176, 0.19784988462924957, 0.08596950769424438, -0.1930547058582306, -0.34199342131614685, 0.49355581402778625, 0.3915615379810333, -0.2652794420719147, -0.011174292303621769, -0.2758702337741852, -0.34614965319633484, 0.20733192563056946, -0.3623584806919098, 0.5656823515892029, -0.3660481870174408, -0.21252959966659546, -0.8730772733688354, 0.17616382241249084, 0.6427518725395203, -0.05816216394305229, 0.815426230430603, 1.1217567920684814, -0.5168989300727844, 0.11828004568815231, -0.6352057456970215, -0.23339632153511047, -0.5043897032737732, 0.44136348366737366, -0.23006658256053925, -0.3893886208534241, 0.5796675086021423, 0.391554594039917, 0.03047558292746544, 0.6347544193267822, 0.470018595457077, -0.06475961208343506, 0.908591628074646, 0.6955310106277466, 0.0788242369890213, 0.6941812038421631, -0.8844161629676819, -0.06458817422389984, -0.8905667662620544, -0.6212767958641052, -0.31101223826408386, -0.7282295823097229, -0.5180410742759705, -0.47487810254096985, 0.5154639482498169, -0.1550649106502533, -0.3642309904098511, 0.4272894859313965, -0.959373950958252, 0.37969154119491577, 0.8754605054855347, 0.43996861577033997, -0.26094916462898254, 0.5016496181488037, -0.27533677220344543, -0.24633722007274628, -0.753689706325531, -0.06905586272478104, 1.028435468673706, 0.4485088884830475, 0.4850803315639496, -0.19194868206977844, 0.4746181070804596, -0.4015805721282959, 0.14092303812503815, -0.5400391221046448, 0.5568890571594238, -0.24133417010307312, -0.41139140725135803, -0.015737807378172874, -0.39026355743408203, -1.0287384986877441, 0.29337358474731445, -0.22865012288093567, -0.5980151891708374, 0.3490283191204071, 0.13070529699325562, -0.4421665072441101, 0.7451683878898621, -0.9279000759124756, 0.9095376133918762, -0.3341979682445526, -0.5699670910835266, 0.012867297045886517, -0.6075069308280945, 0.23458541929721832, 0.22264112532138824, -0.47444042563438416, 0.16932491958141327, 0.0741022527217865, 0.9686941504478455, -0.5005097389221191, 1.0015183687210083, -0.4016599655151367, 0.46062859892845154, 0.4037162661552429, -0.3613291382789612, 0.16398502886295319, -0.09457052499055862, 0.1971750408411026, 0.5045529007911682, 0.016746843233704567, -0.5686354041099548, -0.40586748719215393, 0.7952173352241516, -1.091910719871521, -0.36801689863204956, -0.47157561779022217, -0.6680511832237244, 0.14202329516410828, 0.044379886239767075, 0.5651275515556335, 0.49695587158203125, 0.33111581206321716, 0.3023640215396881, 0.6066747903823853, -0.4753921329975128, 0.5403096079826355, 0.11227734386920929, -0.10615400224924088, -0.574109673500061, 0.6314259767532349, 0.11326895654201508, 0.040569789707660675, 0.22210809588432312, 0.18494033813476562, -0.3294464647769928, -0.3666694760322571, -0.10115279257297516, 0.5792872905731201, -0.35309797525405884, -0.16868549585342407, -0.7196351885795593, -0.4796694815158844, -0.5367407202720642, -0.14014935493469238, -0.39819803833961487, -0.3516058027744293, -0.3764127492904663, 0.21007339656352997, 0.4033927321434021, 0.7500447034835815, -0.19731935858726501, 0.3544727861881256, -0.5609199404716492, 0.2576140761375427, 0.35806891322135925, 0.5983590483665466, -0.10925424844026566, -0.8326243758201599, -0.12188175320625305, -0.09166161715984344, -0.5625579953193665, -0.8010289669036865, 0.6866092681884766, -0.12678849697113037, 0.4826423227787018, 0.30480095744132996, -0.49540191888809204, 0.8420310616493225, -0.05877699702978134, 0.44663533568382263, 0.30391669273376465, -0.5357651114463806, 0.6624580025672913, -0.1743144392967224, 0.3297751545906067, 0.07029294222593307, 0.3141827881336212, -0.23241636157035828, 0.17989230155944824, -1.0502392053604126, -0.6920352578163147, 1.0698096752166748, 0.18606790900230408, -0.13029463589191437, 0.3603507876396179, 0.8117047548294067, -0.0021378877572715282, 0.07713781297206879, -0.9070491194725037, -0.4639778435230255, -0.2169438898563385, -0.13307003676891327, -0.08464828878641129, -0.20710532367229462, 0.1620175838470459, -0.8855228424072266, 0.620272696018219, 0.06152290478348732, 0.8974553346633911, 0.44311997294425964, 0.13848453760147095, -0.2665174901485443, -0.49858421087265015, 0.398621529340744, 0.2034142166376114, -0.2366325408220291, -0.08456873148679733, 0.23217450082302094, -0.61618572473526, -0.16134773194789886, 0.126488596200943, -0.02975870855152607, 0.039832569658756256, 0.39734122157096863, 0.82707279920578, 0.14519324898719788, 0.10261610895395279, 0.5723854303359985, -0.23713679611682892, -0.534188449382782, -0.435286283493042, -0.04242930933833122, -0.02427390217781067, 0.45580533146858215, 0.1836327463388443, 0.4653613269329071, -0.20698535442352295, -0.15218743681907654, 0.16530458629131317, 0.6003333926200867, -0.3260408639907837, -0.3904481530189514, 0.6653586626052856, 0.008436151780188084, -0.21500517427921295, 0.943701446056366, -0.07419440895318985, -0.6541056036949158, 1.1788259744644165, 0.3908770680427551, 1.1313420534133911, -0.1615082323551178, -0.08437453210353851, 0.9378851652145386, 0.3775366544723511, 0.1319485902786255, 0.3286232054233551, 0.05537836626172066, -0.7267639636993408, 0.0486367903649807, -0.45909711718559265, 0.025591960176825523, 0.4342888593673706, -0.5007820129394531, 0.30159732699394226, -0.6785323023796082, -0.3027438521385193, 0.024174582213163376, 0.4044252038002014, -0.957867443561554, -0.04565470665693283, 0.1159699410200119, 0.7130674123764038, -0.845508873462677, 0.6931900382041931, 0.9493871331214905, -0.4224119186401367, -0.7524275183677673, -0.10330213606357574, -0.02641928754746914, -1.02518892288208, 0.5932546257972717, 0.5014153718948364, 0.1904097944498062, 0.011869481764733791, -0.8869137763977051, -0.764876663684845, 1.2812405824661255, 0.30441030859947205, -0.29862454533576965, 0.006618919782340527, 0.17135730385780334, 0.3968564569950104, -0.36110880970954895, 0.35267072916030884, 0.30658331513404846, 0.4833749830722809, 0.19423788785934448, -0.7597749829292297, -0.06973151117563248, -0.3865865468978882, 0.02113606221973896, 0.2786509394645691, -0.960263729095459, 0.8850746750831604, -0.6808168292045593, -0.1716955006122589, 0.0714268907904625, 0.5073375701904297, 0.23146434128284454, 0.24785709381103516, 0.5258965492248535, 0.9274981021881104, 0.3259316682815552, -0.3371143043041229, 0.859917938709259, -0.0790780633687973, 0.6367129683494568, 0.699023425579071, 0.35897791385650635, 0.6348046064376831, 0.5288934707641602, -0.34060138463974, 0.2690505385398865, 0.7774441838264465, -0.511736273765564, 0.3072921931743622, 0.07478808611631393, 0.1845732182264328, -0.19347769021987915, 0.20005576312541962, -0.5402575135231018, 0.3767704963684082, 0.2022806853055954, -0.5270816087722778, -0.03970610350370407, 0.014309749938547611, -0.18061062693595886, -0.29299572110176086, -0.13985152542591095, 0.534376859664917, -0.03167416900396347, -0.6716105937957764, 0.6209689974784851, -0.18267586827278137, 0.8791627883911133, -0.2588130533695221, 0.035830169916152954, -0.26749810576438904, 0.4896736443042755, -0.3299427032470703, -0.8542340397834778, 0.3682211637496948, -0.3253890573978424, -0.2727503776550293, -0.1883070021867752, 0.5550457835197449, -0.48315197229385376, -0.5813161134719849, 0.28386035561561584, 0.2262345403432846, 0.37369030714035034, -0.06895504146814346, -1.3387161493301392, -0.015799574553966522, 0.1287848949432373, -0.3316848576068878, 0.09382651001214981, 0.3341712951660156, 0.27744990587234497, 0.7197960615158081, 0.5616797804832458, -0.14432577788829803, 0.3336680829524994, -0.1497843861579895, 0.6056064963340759, -0.6211366653442383, -0.48015639185905457, -0.772251307964325, 0.41985124349594116, 0.007822934538125992, -0.5226673483848572, 0.533800482749939, 0.6432586312294006, 0.8863330483436584, -0.2392750233411789, 0.42876023054122925, -0.043532755225896835, 0.09885338693857193, -0.21866175532341003, 0.6809463500976562, -0.5768517255783081, -0.09653495252132416, -0.2166985124349594, -0.8464254140853882, -0.4476095139980316, 0.6628506779670715, -0.4167327284812927, 0.5362524390220642, 0.7840906977653503, 0.8870636224746704, -0.3338199257850647, -0.2725381851196289, 0.1565191149711609, 0.39074626564979553, -0.016326716169714928, 0.9519957900047302, 0.5975014567375183, -0.8137592673301697, 0.4077496826648712, -0.7557287216186523, -0.2785002291202545, -0.20358696579933167, -0.5553635954856873, -1.0901210308074951, -0.8282901644706726, -0.720084011554718, -0.3624243438243866, -0.21328505873680115, 0.6812591552734375, 1.056397795677185, -0.5669338703155518, -0.05060087889432907, 0.02898346073925495, 0.024846870452165604, -0.2507074475288391, -0.25161033868789673, 0.6662816405296326, -0.1470249593257904, -0.8932817578315735, -0.4353834390640259, 0.18201613426208496, 0.44121211767196655, -0.07852251082658768, -0.07673660665750504, -0.23505792021751404, -0.34860092401504517, 0.23653802275657654, 0.23745334148406982, -0.686208188533783, -0.17896775901317596, -0.2741536498069763, -0.2421266883611679, 0.4434235095977783, 0.4760139584541321, -0.7205994725227356, 0.2344231903553009, 0.6144387125968933, 0.2067134976387024, 0.6306716203689575, -0.265566885471344, 0.045787252485752106, -0.802462637424469, 0.4477429986000061, -0.14811858534812927, 0.5960289239883423, 0.34679487347602844, -0.4636557400226593, 0.5428305268287659, 0.5531661510467529, -0.6021012663841248, -0.6457284688949585, -0.12691755592823029, -1.201113224029541, 0.001406340510584414, 0.9036999344825745, -0.08746029436588287, -0.5394896268844604, 0.270706444978714, -0.16869290173053741, 0.45930489897727966, 0.03636215999722481, 0.6256999969482422, 0.26958826184272766, -0.10280623286962509, -0.40085873007774353, -0.3936031460762024, 0.3170451521873474, 0.5227543115615845, -0.6488630175590515, -0.2987639605998993, 0.014250806532800198, 0.6450392603874207, 0.2720664143562317, 0.34565451741218567, -0.31427207589149475, 0.3104584217071533, 0.015529693104326725, 0.5250774621963501, -0.2865453064441681, -0.23725654184818268, -0.5599226951599121, 0.1305220127105713, -0.35084933042526245, -0.638292670249939 ]
timm/crossvit_9_240.in1k
timm
"2023-04-24T00:30:01Z"
35,990
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2103.14899", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-24T00:29:50Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for crossvit_9_240.in1k A CrossViT image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 8.6 - GMACs: 1.8 - Activations (M): 9.5 - Image size: 240 x 240 - **Papers:** - CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification: https://arxiv.org/abs/2103.14899 - **Dataset:** ImageNet-1k - **Original:** https://github.com/IBM/CrossViT ## 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('crossvit_9_240.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( 'crossvit_9_240.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 (torch.Size([1, 401, 128]), torch.Size([1, 197, 256])) 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{ chen2021crossvit, title={{CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification}}, author={Chun-Fu (Richard) Chen and Quanfu Fan and Rameswar Panda}, booktitle={International Conference on Computer Vision (ICCV)}, year={2021} } ```
[ -0.48751211166381836, -0.37827354669570923, -0.06396334618330002, 0.26004335284233093, -0.35030078887939453, -0.3300533890724182, -0.14798225462436676, -0.38150984048843384, 0.20735955238342285, 0.31073832511901855, -0.5863752961158752, -0.5740103125572205, -0.7352027893066406, -0.1478198617696762, -0.17902232706546783, 0.9711937308311462, -0.10886844247579575, 0.1617814004421234, -0.2557440400123596, -0.5139902830123901, -0.1901802271604538, -0.31455326080322266, -0.7753890752792358, -0.3755057454109192, 0.38277101516723633, 0.20660781860351562, 0.4915618300437927, 0.5203789472579956, 0.6924836039543152, 0.44329163432121277, 0.0020282177720218897, -0.014431633986532688, -0.31951189041137695, -0.39188140630722046, 0.2456306368112564, -0.714609682559967, -0.4511443078517914, 0.2949957251548767, 0.7575871348381042, 0.4066963791847229, 0.07258622348308563, 0.4287133514881134, 0.2452027052640915, 0.4085948169231415, -0.28042131662368774, 0.1552809178829193, -0.4114343822002411, 0.32021433115005493, -0.20367054641246796, -0.01152475830167532, -0.33646222949028015, -0.33584263920783997, 0.24463419616222382, -0.5079435110092163, 0.47373339533805847, 0.1050470620393753, 1.2194684743881226, 0.3121931254863739, 0.02393222786486149, 0.14035046100616455, -0.26080071926116943, 0.8877658247947693, -0.7410849928855896, 0.5186094641685486, 0.1452391892671585, 0.18964256346225739, 0.08971120417118073, -0.9671441316604614, -0.5282622575759888, -0.0961054190993309, -0.1435704380273819, 0.0072316499426960945, -0.293936163187027, -0.027224671095609665, 0.4083571434020996, 0.3392561376094818, -0.598914623260498, -0.01059537660330534, -0.5377358198165894, -0.14704202115535736, 0.5243450403213501, 0.17436031997203827, 0.27884939312934875, -0.12854249775409698, -0.6971104741096497, -0.4315815567970276, -0.3284347951412201, 0.40456080436706543, 0.21593353152275085, 0.1389712393283844, -0.6219176650047302, 0.45137089490890503, 0.09166564792394638, 0.5010825991630554, 0.261844664812088, -0.2944483160972595, 0.6446561813354492, -0.12216763943433762, -0.5363386273384094, -0.08775486797094345, 1.0513442754745483, 0.4123479425907135, 0.25801482796669006, 0.0283717792481184, 0.0031857420690357685, -0.2821654975414276, 0.0412481389939785, -1.1139812469482422, -0.17304737865924835, 0.15517619252204895, -0.6267576813697815, -0.36775344610214233, 0.2464836984872818, -0.6625564694404602, 0.019852718338370323, -0.0668695718050003, 0.6128931641578674, -0.4439004957675934, -0.22086919844150543, 0.09894294291734695, -0.1540973037481308, 0.47204527258872986, 0.20022709667682648, -0.4995277523994446, 0.1726451963186264, 0.18019233644008636, 1.067413568496704, -0.09520822763442993, -0.5639567375183105, -0.23011983931064606, -0.2807711660861969, -0.1937572956085205, 0.40372234582901, -0.20823431015014648, -0.17081305384635925, -0.2938658893108368, 0.44739794731140137, -0.23295167088508606, -0.556039035320282, 0.3393090069293976, -0.13628651201725006, 0.34462758898735046, 0.021356573328375816, -0.1785866767168045, -0.4550057053565979, 0.41232165694236755, -0.3981432616710663, 1.2001293897628784, 0.34075218439102173, -1.0037224292755127, 0.41333892941474915, -0.5074308514595032, -0.1454237699508667, -0.14199796319007874, 0.015419880859553814, -1.1813337802886963, -0.14779751002788544, 0.2187386304140091, 0.7311882376670837, -0.38959673047065735, 0.019977224990725517, -0.631992757320404, -0.12456132471561432, 0.2970008850097656, -0.19526910781860352, 1.0519781112670898, -0.0995078906416893, -0.46777886152267456, 0.22874972224235535, -0.6505798697471619, 0.19980482757091522, 0.44571948051452637, -0.23573674261569977, -0.12702514231204987, -0.7922687530517578, 0.27456679940223694, 0.3257801830768585, 0.1021590381860733, -0.7270383238792419, 0.2836221158504486, -0.07505900412797928, 0.3547876477241516, 0.5011052489280701, -0.1315995156764984, 0.26154664158821106, -0.35097047686576843, 0.4205300211906433, 0.297333687543869, 0.46602556109428406, 0.03569656237959862, -0.710915207862854, -0.9050385355949402, -0.429692804813385, 0.33441099524497986, 0.46684303879737854, -0.5352984666824341, 0.4386572241783142, -0.19031429290771484, -0.8619046807289124, -0.5095680356025696, 0.019073471426963806, 0.5684806704521179, 0.46544885635375977, 0.4537799060344696, -0.5243521928787231, -0.5384908318519592, -0.9482982754707336, -0.09825459867715836, 0.073813296854496, 0.09445375949144363, 0.35916727781295776, 0.6894345879554749, -0.21253344416618347, 0.602599024772644, -0.39840182662010193, -0.3077016770839691, -0.21146400272846222, 0.13839416205883026, 0.20524799823760986, 0.7258060574531555, 0.837270200252533, -0.697381317615509, -0.6142784953117371, -0.1685393899679184, -0.9573460817337036, 0.19367003440856934, -0.15247222781181335, -0.18648242950439453, 0.18786314129829407, 0.15957219898700714, -0.6127012968063354, 0.8691504597663879, 0.16871614754199982, -0.30227920413017273, 0.3848278820514679, -0.1467815786600113, 0.21733973920345306, -1.0601847171783447, 0.03994079306721687, 0.4691210091114044, -0.192800372838974, -0.4942470192909241, -0.1016656830906868, 0.10062603652477264, 0.05846970155835152, -0.5958600640296936, 0.6084359288215637, -0.5495135188102722, -0.1465766727924347, -0.10474985837936401, -0.30331185460090637, 0.03898420184850693, 0.8281508088111877, 0.13838616013526917, 0.30014562606811523, 0.8023381233215332, -0.5147833228111267, 0.6009238958358765, 0.4926460385322571, -0.18472827970981598, 0.628718912601471, -0.6799017190933228, 0.053236592561006546, 0.1076187714934349, 0.2146875560283661, -1.0929735898971558, -0.06481028348207474, 0.36017340421676636, -0.6800665259361267, 0.6225106120109558, -0.4393673539161682, -0.3005209267139435, -0.4822902977466583, -0.41180863976478577, 0.6575177311897278, 0.5908578634262085, -0.755200207233429, 0.530207633972168, 0.23021003603935242, 0.15188047289848328, -0.6035001873970032, -0.9569473266601562, -0.24315626919269562, -0.3607366979122162, -0.7759886980056763, 0.336481511592865, 0.10274796187877655, 0.18739081919193268, 0.13725824654102325, 0.048802345991134644, 0.009649237617850304, -0.3276936113834381, 0.4989585280418396, 0.40974289178848267, -0.3401346504688263, -0.10721724480390549, -0.3307804763317108, -0.08067505806684494, 0.1607639342546463, -0.24727512896060944, 0.5035637021064758, -0.29492849111557007, -0.2824772894382477, -0.723047137260437, -0.043683357536792755, 0.5810431838035583, -0.15060676634311676, 0.7160624265670776, 1.1660391092300415, -0.46409469842910767, -0.06839971989393234, -0.44670575857162476, -0.20543085038661957, -0.4582860767841339, 0.502285361289978, -0.4409443438053131, -0.34633132815361023, 0.7889350056648254, 0.09540665149688721, 0.056696534156799316, 0.7125094532966614, 0.4683275520801544, 0.12919765710830688, 0.7919470071792603, 0.7334901690483093, 0.15780635178089142, 0.7257077097892761, -0.9296042323112488, -0.154564768075943, -0.9649344682693481, -0.6458219289779663, -0.3271635174751282, -0.5666342377662659, -0.602523684501648, -0.4675173759460449, 0.3869328796863556, -0.07974205166101456, -0.2849288284778595, 0.5160799622535706, -0.8460881114006042, 0.03020506724715233, 0.7391873598098755, 0.43154388666152954, -0.25008127093315125, 0.2312920093536377, -0.26843371987342834, -0.0974934846162796, -0.8723403811454773, -0.04695698246359825, 1.0992106199264526, 0.529290497303009, 0.9686576128005981, -0.28772255778312683, 0.5975686311721802, -0.2665261924266815, 0.33278557658195496, -0.5657700300216675, 0.5294514298439026, -0.03828522190451622, -0.47672727704048157, -0.24954107403755188, -0.33338499069213867, -1.0416953563690186, 0.22732676565647125, -0.2457440346479416, -0.6714960336685181, 0.36837226152420044, -0.003021857002750039, -0.247308149933815, 0.8508850932121277, -0.6927905678749084, 1.0647825002670288, -0.2901557981967926, -0.48746925592422485, 0.07324379682540894, -0.6937301754951477, 0.3495969772338867, 0.13719747960567474, -0.30032777786254883, 0.07674352824687958, 0.15133050084114075, 1.1446254253387451, -0.4980190694332123, 0.9848737120628357, -0.3417564928531647, 0.3740982413291931, 0.4153847396373749, -0.23048393428325653, 0.22132720053195953, -0.03368133679032326, 0.1561269462108612, 0.45682355761528015, 0.034645676612854004, -0.44500666856765747, -0.5184814929962158, 0.6106767654418945, -0.994685173034668, -0.40070194005966187, -0.5276723504066467, -0.6191241145133972, 0.12574973702430725, 0.04593006521463394, 0.6749752759933472, 0.6196345090866089, 0.061083994805812836, 0.41481542587280273, 0.6568638682365417, -0.3790947496891022, 0.44747501611709595, -0.07614140957593918, -0.22074130177497864, -0.5167602300643921, 0.8306206464767456, 0.25163450837135315, 0.2475515753030777, 0.15577983856201172, 0.10342086851596832, -0.35184478759765625, -0.40686386823654175, -0.4187593460083008, 0.4071132242679596, -0.6611909866333008, -0.40790048241615295, -0.6020897626876831, -0.5708406567573547, -0.5021661520004272, -0.05107422545552254, -0.48752927780151367, -0.35705170035362244, -0.3062926232814789, 0.24120068550109863, 0.5811161398887634, 0.6897795796394348, -0.09464629739522934, 0.47760316729545593, -0.6971476674079895, 0.13473722338676453, 0.16027310490608215, 0.539063036441803, -0.05950256064534187, -1.022094488143921, -0.36288711428642273, -0.12143150717020035, -0.4988560676574707, -0.7005521655082703, 0.5774217247962952, 0.05662368983030319, 0.6596813797950745, 0.39615291357040405, -0.2289050966501236, 0.7924174070358276, -0.013989695347845554, 0.4777687191963196, 0.3915769159793854, -0.6639958620071411, 0.5317255854606628, 0.07111776620149612, 0.2670086920261383, -0.013440626673400402, 0.5120697021484375, -0.35605666041374207, -0.0955808013677597, -1.0534683465957642, -0.6304323077201843, 0.9606348872184753, 0.21224679052829742, -0.1655588150024414, 0.5366097688674927, 0.5863538384437561, 0.0862448662519455, 0.024940580129623413, -0.8980912566184998, -0.4132694900035858, -0.46677517890930176, -0.2572389543056488, -0.08570180833339691, 0.04819672182202339, -0.029962731525301933, -0.7529867887496948, 0.7718409895896912, -0.0628654807806015, 0.6840839385986328, 0.3734285533428192, -0.06954075396060944, -0.1685096174478531, -0.3969411253929138, 0.4564477801322937, 0.28036126494407654, -0.2272329181432724, -0.04511956125497818, 0.35542455315589905, -0.6206547617912292, 0.0599776916205883, 0.18166005611419678, -0.00007219559483928606, 0.043002691119909286, 0.5074076652526855, 0.9911400079727173, -0.0032544301357120275, 0.1513684242963791, 0.48746320605278015, -0.26029571890830994, -0.40943172574043274, -0.2046542465686798, 0.040807366371154785, -0.08183149993419647, 0.5079861283302307, 0.23619282245635986, 0.3504315912723541, -0.07645373791456223, -0.25637978315353394, 0.20829585194587708, 0.6479553580284119, -0.49618491530418396, -0.3831977844238281, 0.7245469689369202, -0.11613265424966812, -0.20295357704162598, 0.7903713583946228, 0.07323997467756271, -0.6159318089485168, 1.0419596433639526, 0.3775247037410736, 1.0674855709075928, -0.22913894057273865, -0.05188491567969322, 0.7741716504096985, 0.31714099645614624, 0.09028111398220062, 0.1501549929380417, 0.11759697645902634, -0.7111932039260864, 0.0939846783876419, -0.5333510041236877, -0.12080241739749908, 0.3589947521686554, -0.5681031346321106, 0.33723077178001404, -0.6658036112785339, -0.36674734950065613, 0.20565734803676605, 0.2912351191043854, -0.9493582844734192, 0.3494326174259186, 0.05323202535510063, 0.8778823614120483, -0.8973202109336853, 0.8390121459960938, 0.8117843270301819, -0.6477370858192444, -0.8970280885696411, -0.11889849603176117, -0.08271843940019608, -0.9926700592041016, 0.6731688380241394, 0.4292985796928406, 0.06420578807592392, -0.030338933691382408, -0.8477009534835815, -0.6602873206138611, 1.3234975337982178, 0.29841238260269165, -0.18648044764995575, 0.1604209989309311, 0.1899721324443817, 0.22871293127536774, -0.5115755200386047, 0.5010790228843689, 0.142638698220253, 0.4642976224422455, 0.2544715702533722, -0.8008661866188049, 0.2341153621673584, -0.33133479952812195, 0.09155178815126419, 0.18417787551879883, -1.0163761377334595, 1.0232211351394653, -0.4753832221031189, 0.04301686957478523, 0.025042375549674034, 0.6869759559631348, 0.13546641170978546, 0.20220641791820526, 0.5992138981819153, 0.9043640494346619, 0.4108401834964752, -0.2940346598625183, 0.8383708596229553, -0.0013994143810123205, 0.6237210035324097, 0.5646936297416687, 0.2916320264339447, 0.4479949176311493, 0.44357553124427795, -0.2754012942314148, 0.36660218238830566, 1.0653187036514282, -0.4807877242565155, 0.33465948700904846, 0.08499682694673538, 0.15127934515476227, -0.3125503659248352, 0.15273472666740417, -0.5366817712783813, 0.47839120030403137, 0.17356766760349274, -0.4955782890319824, -0.19093431532382965, 0.21444426476955414, -0.24040181934833527, -0.5208107829093933, -0.25227659940719604, 0.4374038577079773, 0.08855775743722916, -0.46369025111198425, 0.7600002288818359, -0.06390248239040375, 0.8142450451850891, -0.38315024971961975, -0.03670632839202881, -0.2012568861246109, 0.5288361310958862, -0.33723944425582886, -0.9473364949226379, 0.23478534817695618, -0.30078133940696716, -0.0621444396674633, 0.020642006769776344, 0.6485472917556763, -0.4953499436378479, -0.5866435170173645, 0.3664133846759796, 0.27553197741508484, 0.46571022272109985, -0.011799638159573078, -1.2549307346343994, 0.05588546022772789, 0.13554005324840546, -0.6383379101753235, 0.3442097008228302, 0.5781329870223999, -0.03410149738192558, 0.8311241865158081, 0.5282586216926575, -0.1871190369129181, 0.3417830467224121, -0.2117292582988739, 0.8544090986251831, -0.595764696598053, -0.36359262466430664, -0.7639203667640686, 0.5849437713623047, -0.05528629571199417, -0.6716583371162415, 0.7056505084037781, 0.7253350019454956, 1.0011019706726074, -0.08067473024129868, 0.6161561608314514, -0.13327747583389282, 0.09547292441129684, -0.31946563720703125, 0.5792997479438782, -0.8131185173988342, -0.15905879437923431, -0.18503618240356445, -0.7365871667861938, -0.4028240144252777, 0.6524177193641663, -0.28247031569480896, 0.48807424306869507, 0.6056900024414062, 0.8964735865592957, -0.4783034920692444, -0.251194566488266, 0.31006938219070435, 0.1450573354959488, 0.048385024070739746, 0.5331841111183167, 0.49066808819770813, -0.8719707131385803, 0.5663886070251465, -0.5640208721160889, -0.20257557928562164, -0.28626349568367004, -0.4671803116798401, -1.1683727502822876, -0.7817662358283997, -0.6346705555915833, -0.598297655582428, -0.24882395565509796, 0.7389562726020813, 1.091569185256958, -0.6729536056518555, -0.18052874505519867, 0.21850501000881195, 0.07418898493051529, -0.2015223503112793, -0.21260665357112885, 0.5249848365783691, -0.17958389222621918, -0.8399044871330261, -0.46096405386924744, 0.07754261046648026, 0.37199488282203674, -0.2543586790561676, -0.31104400753974915, -0.35697075724601746, -0.2071378231048584, 0.17318974435329437, 0.31263405084609985, -0.7012647986412048, -0.17816267907619476, -0.1168413758277893, -0.21903960406780243, 0.546954333782196, 0.42284271121025085, -0.600371778011322, 0.2438606470823288, 0.5078758597373962, 0.440226286649704, 0.9959571957588196, -0.28762251138687134, 0.07816693931818008, -0.7865340113639832, 0.4358832538127899, -0.1415022611618042, 0.6056746244430542, 0.4047021269798279, -0.3865695595741272, 0.5719322562217712, 0.5379499793052673, -0.5117238759994507, -0.7859036326408386, -0.15100941061973572, -1.1489514112472534, -0.04069293290376663, 0.859984815120697, -0.40346094965934753, -0.6620954871177673, 0.3587281405925751, -0.09891676902770996, 0.7054544687271118, -0.051615919917821884, 0.3585202395915985, 0.3041762709617615, -0.17691220343112946, -0.6311087012290955, -0.3364372253417969, 0.39649882912635803, 0.20229105651378632, -0.7335914969444275, -0.40632978081703186, -0.17392872273921967, 0.7413308024406433, 0.35658106207847595, 0.29927554726600647, -0.15011750161647797, 0.2112562358379364, 0.1845564842224121, 0.6379939913749695, -0.27665653824806213, -0.1940702646970749, -0.3301921784877777, 0.04315545782446861, -0.2795822322368622, -0.7210279107093811 ]
timm/pit_b_224.in1k
timm
"2023-04-26T00:06:43Z"
35,986
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2103.16302", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-26T00:05:41Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for pit_b_224.in1k A PiT (Pooling based Vision Transformer) image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 73.8 - GMACs: 12.4 - Activations (M): 32.9 - Image size: 224 x 224 - **Papers:** - Rethinking Spatial Dimensions of Vision Transformers: https://arxiv.org/abs/2103.16302 - **Dataset:** ImageNet-1k - **Original:** https://github.com/naver-ai/pit ## 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('pit_b_224.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) ``` ### 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( 'pit_b_224.in1k', 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, 256, 31, 31]) # torch.Size([1, 512, 16, 16]) # torch.Size([1, 1024, 8, 8]) 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( 'pit_b_224.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, 1, 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). ## Citation ```bibtex @inproceedings{heo2021pit, title={Rethinking Spatial Dimensions of Vision Transformers}, author={Byeongho Heo and Sangdoo Yun and Dongyoon Han and Sanghyuk Chun and Junsuk Choe and Seong Joon Oh}, booktitle = {International Conference on Computer Vision (ICCV)}, year={2021}, } ```
[ -0.5692468881607056, -0.4656990170478821, 0.10661227256059647, 0.18449465930461884, -0.34208962321281433, -0.37274351716041565, -0.14347049593925476, -0.4317172169685364, 0.22534258663654327, 0.45321324467658997, -0.49116578698158264, -0.7045863270759583, -0.7386615872383118, -0.1572485864162445, -0.24476005136966705, 0.9041287302970886, -0.12215923517942429, -0.08778507262468338, -0.1855994611978531, -0.4985353648662567, -0.30195751786231995, -0.23873691260814667, -0.7258613109588623, -0.38558629155158997, 0.28193724155426025, 0.2298128306865692, 0.5493767261505127, 0.6549704670906067, 0.7317901253700256, 0.5347780585289001, -0.08048485219478607, -0.023295138031244278, -0.1883167326450348, -0.3323955535888672, 0.3380637466907501, -0.6590545177459717, -0.3533068001270294, 0.364978551864624, 0.8313998579978943, 0.4602718949317932, 0.0051319170743227005, 0.27716919779777527, 0.08795788884162903, 0.5430227518081665, -0.23787949979305267, 0.26218050718307495, -0.44151443243026733, 0.296334832906723, -0.08562976121902466, 0.10261329263448715, -0.2347453087568283, -0.43698936700820923, 0.2911429703235626, -0.5356910824775696, 0.573723554611206, 0.06534264981746674, 1.302068829536438, 0.40038713812828064, 0.08206979185342789, 0.04150296375155449, -0.3167314827442169, 0.8339998722076416, -0.7652671933174133, 0.20488636195659637, 0.29562073945999146, 0.2654135227203369, 0.02266656793653965, -0.885177493095398, -0.6164790391921997, -0.11835605651140213, -0.33551204204559326, 0.011007584631443024, -0.14256353676319122, -0.09946786612272263, 0.41877713799476624, 0.30338209867477417, -0.4278143346309662, 0.026816098019480705, -0.6437044739723206, -0.06742352247238159, 0.7199700474739075, 0.09382347017526627, 0.31382155418395996, -0.24293848872184753, -0.6018574833869934, -0.4920116662979126, -0.2719346284866333, 0.33788827061653137, 0.11602750420570374, 0.18256273865699768, -0.7289667725563049, 0.44968181848526, 0.18111158907413483, 0.4527912139892578, 0.12845614552497864, -0.3891700506210327, 0.6423473954200745, 0.11511828750371933, -0.4430563449859619, -0.0360003300011158, 1.0373059511184692, 0.3496287763118744, 0.21341678500175476, 0.13593000173568726, -0.042879898101091385, -0.28001922369003296, 0.0659991130232811, -1.0331270694732666, -0.30162543058395386, 0.29283007979393005, -0.5377826690673828, -0.3631317615509033, 0.42568349838256836, -0.7308658957481384, -0.16469398140907288, -0.05195954442024231, 0.599250078201294, -0.5747515559196472, -0.2853130102157593, 0.08473118394613266, -0.25370651483535767, 0.4517022371292114, 0.17439503967761993, -0.5716317296028137, 0.08157869428396225, 0.24292944371700287, 1.0379691123962402, 0.040619805455207825, -0.6654049754142761, -0.09852036088705063, -0.2029300034046173, -0.27504420280456543, 0.566757321357727, -0.11060850322246552, -0.17285995185375214, -0.26881587505340576, 0.3364885449409485, -0.26092222332954407, -0.8086557388305664, 0.25655290484428406, -0.08550270646810532, 0.336260050535202, -0.008053875528275967, -0.17498302459716797, -0.4927169680595398, 0.3050212860107422, -0.4039647579193115, 1.2598989009857178, 0.4494243860244751, -0.8593635559082031, 0.397856205701828, -0.5845102071762085, -0.10648635029792786, -0.12562260031700134, -0.08733239024877548, -1.122389793395996, 0.03820404037833214, 0.2869674563407898, 0.6404179930686951, -0.1569540649652481, 0.07416879385709763, -0.524792492389679, -0.31914037466049194, 0.42929694056510925, 0.08249963819980621, 0.9644754528999329, 0.06491052359342575, -0.48620063066482544, 0.2971496284008026, -0.56658536195755, 0.14189520478248596, 0.5087399482727051, -0.26452359557151794, -0.0717446431517601, -0.4827425181865692, 0.08703960478305817, 0.30440783500671387, 0.05225727707147598, -0.6424354314804077, 0.1918834149837494, -0.23570314049720764, 0.4042922556400299, 0.5559154748916626, -0.17507261037826538, 0.388669490814209, -0.3869171440601349, 0.27916058897972107, 0.32310986518859863, 0.3190193474292755, -0.10009361058473587, -0.6104822754859924, -0.8090423345565796, -0.5914857387542725, 0.25728675723075867, 0.44901102781295776, -0.44759953022003174, 0.6762464642524719, -0.19875209033489227, -0.7659169435501099, -0.5094853639602661, -0.0368342362344265, 0.37131252884864807, 0.5422437191009521, 0.3358806073665619, -0.5418817400932312, -0.4931618571281433, -0.8792273998260498, 0.13426482677459717, -0.016006845980882645, 0.014069677330553532, 0.37764492630958557, 0.7348003387451172, -0.21511803567409515, 0.8195543885231018, -0.4752681255340576, -0.3533717095851898, -0.280831903219223, 0.008974532596766949, 0.3957802355289459, 0.7847849726676941, 0.8620088696479797, -0.6244543790817261, -0.5506354570388794, -0.1684921234846115, -1.0967539548873901, 0.04709359630942345, -0.1172017976641655, -0.2809041440486908, 0.28941434621810913, 0.14218075573444366, -0.6892207264900208, 0.7955659627914429, 0.18034587800502777, -0.4144255816936493, 0.49449262022972107, -0.23514798283576965, 0.20794479548931122, -0.9846894145011902, 0.13011664152145386, 0.37146544456481934, -0.028760449960827827, -0.44473797082901, 0.20108506083488464, 0.026676133275032043, -0.17668403685092926, -0.586959958076477, 0.7380440831184387, -0.4420871138572693, -0.26761314272880554, -0.21025457978248596, -0.10189256072044373, -0.02889224700629711, 0.8120962381362915, 0.03237944096326828, 0.28663551807403564, 0.831692636013031, -0.487416535615921, 0.495958536863327, 0.680663526058197, -0.24382293224334717, 0.4630656838417053, -0.6336288452148438, 0.05102833732962608, -0.07030458748340607, 0.24487599730491638, -1.003339171409607, -0.18873506784439087, 0.368295818567276, -0.5910925269126892, 0.6012648940086365, -0.4308873414993286, -0.3754894435405731, -0.5980833768844604, -0.4912963807582855, 0.4642852246761322, 0.7498515248298645, -0.7537978887557983, 0.4079100489616394, 0.29176899790763855, 0.17417044937610626, -0.5133503079414368, -0.8936331868171692, -0.31171542406082153, -0.5150663256645203, -0.7516843676567078, 0.40498217940330505, 0.10998034477233887, 0.05407755821943283, 0.1747646927833557, 0.0037002251483500004, -0.07893816381692886, -0.23039411008358002, 0.5559415221214294, 0.4046401083469391, -0.22791266441345215, -0.2328667938709259, -0.298717737197876, -0.19659870862960815, 0.14675477147102356, -0.1463325470685959, 0.565337061882019, -0.19687680900096893, -0.2201920747756958, -0.8750339150428772, 0.002039133571088314, 0.480417937040329, -0.07313843071460724, 0.8532550930976868, 1.1155917644500732, -0.5042243003845215, 0.011061782017350197, -0.3649543225765228, -0.2900415360927582, -0.48559823632240295, 0.4667862355709076, -0.37421637773513794, -0.45649829506874084, 0.8487192988395691, -0.004948277957737446, 0.06002474203705788, 0.7126024961471558, 0.36221691966056824, -0.18720589578151703, 0.7227340936660767, 0.7615045309066772, 0.09360296279191971, 0.7055754661560059, -1.0423965454101562, -0.015695875510573387, -0.8977846503257751, -0.5929191708564758, -0.3997439742088318, -0.672665536403656, -0.6009827256202698, -0.4188392758369446, 0.5071192383766174, 0.22780375182628632, -0.4807325601577759, 0.40442216396331787, -0.7490496635437012, 0.13107270002365112, 0.7614878416061401, 0.5148072242736816, -0.45972710847854614, 0.3615078032016754, -0.26695460081100464, -0.12672722339630127, -0.7678335905075073, -0.18007373809814453, 0.8962706327438354, 0.5599625706672668, 0.6490981578826904, -0.19717417657375336, 0.6609079241752625, -0.2584952116012573, 0.29251939058303833, -0.5532404780387878, 0.6136490106582642, -0.08480411767959595, -0.42568615078926086, -0.2697911262512207, -0.337992399930954, -1.0604718923568726, 0.24238871037960052, -0.3729327321052551, -0.7734248638153076, 0.14803984761238098, 0.01216406561434269, -0.289450079202652, 0.8434304594993591, -0.7882640361785889, 0.9314985871315002, -0.13790659606456757, -0.38503298163414, 0.062166728079319, -0.6338836550712585, 0.30552640557289124, 0.11730795353651047, -0.22483094036579132, -0.08414849638938904, 0.2521103322505951, 1.0300776958465576, -0.6029610633850098, 0.9164061546325684, -0.519550621509552, 0.3650471866130829, 0.5397337079048157, -0.19505524635314941, 0.2471359223127365, -0.08461299538612366, 0.042187679558992386, 0.4718133211135864, -0.032726217061281204, -0.5331758856773376, -0.5944260954856873, 0.5650608539581299, -1.054819941520691, -0.4003133177757263, -0.4449985921382904, -0.6106590032577515, 0.18668502569198608, 0.023101886734366417, 0.5202513337135315, 0.5443243980407715, 0.23837122321128845, 0.19446974992752075, 0.561745285987854, -0.6400824189186096, 0.5372080206871033, -0.11443386971950531, -0.21991822123527527, -0.45713332295417786, 0.723865807056427, 0.03839724510908127, -0.014181993901729584, 0.12769244611263275, 0.20687918365001678, -0.4466042220592499, -0.46529799699783325, -0.35228604078292847, 0.5764973759651184, -0.5345766544342041, -0.4365600645542145, -0.5288326740264893, -0.6835271120071411, -0.4630289077758789, -0.22229082882404327, -0.393170028924942, -0.26341331005096436, -0.23025281727313995, 0.20460420846939087, 0.5985538959503174, 0.6775592565536499, -0.15884707868099213, 0.63758784532547, -0.6647260189056396, 0.1109459176659584, 0.16512247920036316, 0.5516844391822815, -0.16206546127796173, -0.9465256333351135, -0.32374897599220276, -0.14569687843322754, -0.4922230541706085, -0.766005277633667, 0.6974076628684998, 0.05026433244347572, 0.6336477398872375, 0.41244807839393616, -0.28935685753822327, 0.8076714277267456, -0.08660998940467834, 0.5481253862380981, 0.3295486271381378, -0.6141122579574585, 0.71793133020401, -0.03477049246430397, 0.2690729796886444, -0.0014252268010750413, 0.35804545879364014, -0.23313367366790771, -0.13110440969467163, -1.0404433012008667, -0.7107478976249695, 1.0190753936767578, 0.17819149792194366, -0.06213763728737831, 0.412474662065506, 0.7581644058227539, 0.04628057777881622, 0.03872479498386383, -0.8040217161178589, -0.47795745730400085, -0.2800491452217102, -0.2591537535190582, -0.12240082025527954, -0.12716887891292572, -0.03350244089961052, -0.7399650812149048, 0.6320245265960693, 0.034393854439258575, 0.9138262271881104, 0.32156598567962646, -0.04879634454846382, -0.11704055219888687, -0.4360252916812897, 0.4137440323829651, 0.29536890983581543, -0.33441808819770813, -0.01277337409555912, 0.2811797559261322, -0.5871807932853699, 0.03972979262471199, 0.17022855579853058, -0.004589293152093887, -0.026904668658971786, 0.4974818229675293, 0.9178222417831421, 0.06358539313077927, -0.023795707151293755, 0.39763501286506653, -0.026014473289251328, -0.4448792636394501, -0.28346529603004456, 0.19345244765281677, -0.1971951574087143, 0.5149845480918884, 0.263203889131546, 0.30490726232528687, -0.25858837366104126, -0.2909429669380188, 0.24597615003585815, 0.5219289064407349, -0.3170028030872345, -0.3285847008228302, 0.7092551589012146, -0.1898791491985321, -0.2027631402015686, 1.056487798690796, -0.05910833179950714, -0.5696638226509094, 1.0440346002578735, 0.4940018355846405, 0.8936105370521545, -0.15012286603450775, 0.05276775360107422, 1.0320626497268677, 0.2573933005332947, 0.11721298098564148, 0.09387633949518204, 0.1836211085319519, -0.800004243850708, 0.03621882572770119, -0.6552683711051941, 0.045173902064561844, 0.414190411567688, -0.4839157164096832, 0.29818639159202576, -0.6958943605422974, -0.2575295567512512, 0.0410255528986454, 0.3724655508995056, -0.8559247851371765, 0.2230963557958603, 0.04439755901694298, 0.8604451417922974, -0.8782343864440918, 0.8150953054428101, 0.8702964186668396, -0.5193076133728027, -0.9147512316703796, -0.1697116494178772, -0.03170870989561081, -0.9967577457427979, 0.48469242453575134, 0.5067979693412781, 0.27085819840431213, -0.027992915362119675, -0.8661295771598816, -0.7190869450569153, 1.4552879333496094, 0.4241694509983063, -0.08657187223434448, 0.29189422726631165, 0.16214466094970703, 0.25096407532691956, -0.47913485765457153, 0.38906028866767883, 0.3059207797050476, 0.41927507519721985, 0.2984280288219452, -0.6873522400856018, 0.16758470237255096, -0.2983758747577667, 0.1458827257156372, 0.24226850271224976, -0.7473177313804626, 0.8998715877532959, -0.5931680202484131, -0.16564375162124634, 0.0504140704870224, 0.6462584733963013, 0.46638399362564087, 0.1732654720544815, 0.5857303142547607, 0.9619304537773132, 0.4861951172351837, -0.34813955426216125, 0.8974979519844055, 0.02432369440793991, 0.6345281004905701, 0.5476121306419373, 0.2781900465488434, 0.5930230021476746, 0.304097980260849, -0.3433745801448822, 0.43511858582496643, 1.0147671699523926, -0.46386393904685974, 0.37806960940361023, 0.21609272062778473, 0.06895565241575241, -0.03490760922431946, 0.22815831005573273, -0.4400080144405365, 0.5931786894798279, 0.2147192358970642, -0.4510445296764374, -0.261711448431015, 0.07697197794914246, -0.16879865527153015, -0.2605757415294647, -0.17971235513687134, 0.42328259348869324, -0.04788799583911896, -0.4145340323448181, 0.6783848404884338, 0.11692313849925995, 0.863450825214386, -0.3782541751861572, -0.016060901805758476, -0.3936353623867035, 0.2655829191207886, -0.2873880863189697, -0.8753480315208435, 0.4295457899570465, -0.24680328369140625, -0.009203394874930382, -0.014643093571066856, 0.6311533451080322, -0.3754543960094452, -0.48561233282089233, 0.2154201865196228, 0.35485535860061646, 0.6274093985557556, -0.05435806140303612, -1.2838282585144043, 0.12665709853172302, 0.08222128450870514, -0.435330867767334, 0.33941784501075745, 0.4691951870918274, 0.05393194779753685, 0.7753344178199768, 0.5284833312034607, -0.1362774521112442, 0.2607954740524292, -0.2261597216129303, 0.6619997024536133, -0.7220454812049866, -0.3515154719352722, -0.7579547762870789, 0.707625687122345, -0.050108782947063446, -0.5029706954956055, 0.5222582817077637, 0.6347214579582214, 0.9633424878120422, -0.11474186927080154, 0.436109721660614, -0.2729180157184601, 0.018401840701699257, -0.3511488735675812, 0.7871727347373962, -0.5998151898384094, -0.05610661208629608, -0.1651252806186676, -0.8232983946800232, -0.41259709000587463, 0.850805401802063, -0.23622959852218628, 0.4540729522705078, 0.6399625539779663, 0.9258037805557251, -0.3129928708076477, -0.31888291239738464, 0.26760411262512207, 0.1887027770280838, 0.07872465997934341, 0.5120581388473511, 0.5323020219802856, -0.8515758514404297, 0.30128058791160583, -0.7364712357521057, -0.25928330421447754, -0.06843922287225723, -0.5374726057052612, -0.977734386920929, -0.9620845317840576, -0.7037401795387268, -0.5304659008979797, -0.3950815498828888, 0.7004252076148987, 1.1304599046707153, -0.6320479512214661, -0.1801801472902298, 0.1506734937429428, 0.13320297002792358, -0.23931564390659332, -0.23138514161109924, 0.6528758406639099, -0.2095784991979599, -0.8693670034408569, -0.38908639550209045, 0.04024171456694603, 0.45999157428741455, -0.04904518648982048, -0.23183578252792358, -0.16160006821155548, -0.3191022276878357, 0.33265262842178345, 0.28635111451148987, -0.6979875564575195, -0.20464855432510376, -0.3527352809906006, -0.17432743310928345, 0.4501456916332245, 0.4013349711894989, -0.710040807723999, 0.11727117002010345, 0.32799798250198364, 0.31944137811660767, 0.8592908382415771, -0.31386104226112366, -0.04373949393630028, -0.8624750971794128, 0.5931677222251892, -0.2976386845111847, 0.5451061129570007, 0.38508856296539307, -0.3045598566532135, 0.6671306490898132, 0.464819073677063, -0.421543151140213, -0.7678548097610474, -0.18831053376197815, -1.1368578672409058, -0.18859237432479858, 0.8049315214157104, -0.3591344952583313, -0.5832131505012512, 0.4614516794681549, -0.0737142488360405, 0.5960314273834229, 0.022586658596992493, 0.731408953666687, 0.21402449905872345, -0.20666630566120148, -0.6692408919334412, -0.4565664827823639, 0.37261009216308594, 0.06293914467096329, -0.7222772240638733, -0.4993442893028259, 0.009093559347093105, 0.6756311058998108, 0.30928802490234375, 0.4782208800315857, -0.23879720270633698, 0.03760353848338127, 0.1441297084093094, 0.5322146415710449, -0.25834929943084717, -0.2288983017206192, -0.43195685744285583, 0.07275617122650146, -0.1868199110031128, -0.6213818192481995 ]
h2oai/h2ogpt-4096-llama2-13b-chat
h2oai
"2023-08-24T18:35:40Z"
35,953
10
transformers
[ "transformers", "pytorch", "safetensors", "llama", "text-generation", "facebook", "meta", "llama-2", "h2ogpt", "en", "license:llama2", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-09T17:19:03Z"
--- inference: false language: - en license: llama2 model_type: llama pipeline_tag: text-generation tags: - facebook - meta - pytorch - llama - llama-2 - h2ogpt --- h2oGPT clone of [Meta's Llama 2 13B Chat](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf). Try it live on our [h2oGPT demo](https://gpt.h2o.ai) with side-by-side LLM comparisons and private document chat! See how it compares to other models on our [LLM Leaderboard](https://evalgpt.ai/)! See more at [H2O.ai](https://h2o.ai/) ## Model Architecture ``` LlamaForCausalLM( (model): LlamaModel( (embed_tokens): Embedding(32000, 5120, padding_idx=0) (layers): ModuleList( (0-39): 40 x LlamaDecoderLayer( (self_attn): LlamaAttention( (q_proj): Linear(in_features=5120, out_features=5120, bias=False) (k_proj): Linear(in_features=5120, out_features=5120, bias=False) (v_proj): Linear(in_features=5120, out_features=5120, bias=False) (o_proj): Linear(in_features=5120, out_features=5120, bias=False) (rotary_emb): LlamaRotaryEmbedding() ) (mlp): LlamaMLP( (gate_proj): Linear(in_features=5120, out_features=13824, bias=False) (up_proj): Linear(in_features=5120, out_features=13824, bias=False) (down_proj): Linear(in_features=13824, out_features=5120, bias=False) (act_fn): SiLUActivation() ) (input_layernorm): LlamaRMSNorm() (post_attention_layernorm): LlamaRMSNorm() ) ) (norm): LlamaRMSNorm() ) (lm_head): Linear(in_features=5120, out_features=32000, bias=False) ) ```
[ -0.27937260270118713, -0.7638571262359619, 0.5074970722198486, 0.5688958168029785, -0.38896217942237854, 0.29868823289871216, 0.03119826689362526, -0.5343635678291321, 0.4964878559112549, 0.2376539558172226, -0.48639073967933655, -0.6442171335220337, -0.7067450881004333, -0.3016088306903839, -0.25098592042922974, 0.8063557147979736, 0.0481269508600235, -0.15782548487186432, -0.27760422229766846, -0.13336363434791565, -0.4199499487876892, -0.4412320554256439, -0.7127429246902466, -0.6295964121818542, 0.24199645221233368, 0.19977982342243195, 0.7342567443847656, 0.4922032058238983, 0.5717191100120544, 0.26541003584861755, -0.38080722093582153, 0.16331052780151367, -0.5448369383811951, -0.18738162517547607, -0.006464142818003893, -0.246567964553833, -0.7436129450798035, 0.12248995900154114, 0.49370232224464417, 0.17345580458641052, -0.20993320643901825, 0.5982643365859985, 0.3981156647205353, 0.31260204315185547, -0.4627247750759125, 0.32336679100990295, -0.6094578504562378, 0.06435340642929077, 0.03951110318303108, -0.20539094507694244, -0.3225417137145996, 0.01109209842979908, 0.055872004479169846, -0.4020094871520996, -0.2522851228713989, 0.22873033583164215, 1.158851981163025, 0.5257155299186707, -0.4717581570148468, -0.30379197001457214, -0.5174111723899841, 0.7637266516685486, -1.1411504745483398, 0.15171507000923157, 0.5801156163215637, 0.3761652410030365, -0.09224709123373032, -0.7998918294906616, -0.46727707982063293, -0.18090738356113434, -0.028168009594082832, 0.34633252024650574, -0.47132906317710876, -0.05273434519767761, 0.13662651181221008, 0.2874392867088318, -0.5466200709342957, 0.2961293160915375, -0.34748271107673645, -0.3669898211956024, 0.6398555040359497, 0.14682506024837494, -0.03211328014731407, -0.38785624504089355, -0.6757068634033203, -0.06803303211927414, -0.5870504975318909, 0.06542304158210754, 0.4621480703353882, -0.14979593455791473, -0.4665690064430237, 0.7734673619270325, -0.23314745724201202, 0.5531799793243408, 0.3818623423576355, -0.6668198108673096, 0.4801102876663208, -0.3947475552558899, -0.32115498185157776, -0.08438260853290558, 0.9788571000099182, 0.7377523183822632, -0.12501446902751923, 0.3908174932003021, -0.12004318833351135, -0.2331305742263794, 0.004588081035763025, -1.0059890747070312, -0.19286386668682098, 0.3620814383029938, -0.7117704749107361, -0.5710991621017456, -0.16760791838169098, -0.7584764957427979, -0.2749394178390503, 0.02409130148589611, 0.482468843460083, -0.17856654524803162, -0.1844419240951538, 0.03746156767010689, 0.08376167714595795, 0.5388477444648743, 0.34892165660858154, -0.5989556312561035, 0.3148621618747711, 0.7858765721321106, 1.1160659790039062, -0.2996103763580322, -0.09747351706027985, -0.08399882167577744, 0.010941212065517902, -0.010334198363125324, 0.877872884273529, -0.37005671858787537, -0.34157586097717285, -0.42910704016685486, -0.17018820345401764, -0.0033019804395735264, -0.5809828639030457, 0.3292551636695862, -0.19317951798439026, 0.4107944369316101, -0.005149612668901682, -0.4966810941696167, -0.36056098341941833, 0.5014466643333435, -0.3841061294078827, 1.2243969440460205, 0.0053843045607209206, -0.767352819442749, 0.17284195125102997, -0.5653301477432251, -0.0876457691192627, -0.27212536334991455, -0.2751733958721161, -0.6361985802650452, -0.3436379134654999, 0.21134798228740692, 0.5177505016326904, -0.2701343595981598, 0.07303386926651001, -0.5815548300743103, -0.5121712684631348, 0.33168506622314453, -0.3675639033317566, 0.8271961808204651, 0.20455579459667206, -0.5464498400688171, 0.14330604672431946, -0.8427820801734924, 0.0459158755838871, 0.15357014536857605, -0.5352146625518799, 0.09429169446229935, 0.02384158782660961, -0.16060814261436462, 0.35051217675209045, 0.33593830466270447, -0.43660882115364075, 0.17989104986190796, -0.14182937145233154, 0.7365306615829468, 0.7063406705856323, 0.23468269407749176, 0.3035604953765869, -0.5428149104118347, 0.5367608070373535, -0.10123714804649353, 0.35813528299331665, 0.10960957407951355, -0.9242218136787415, -0.6227872371673584, -0.8695950508117676, 0.17010410130023956, 0.9353007078170776, -0.43296921253204346, 0.6673126220703125, -0.1151914894580841, -0.6529256105422974, -0.6810616254806519, 0.20521490275859833, 0.48941290378570557, 0.422801673412323, 0.3670307695865631, -0.42870283126831055, -0.48486271500587463, -1.105992317199707, 0.3237939774990082, -0.3404150903224945, -0.21890486776828766, 0.721416175365448, 0.5491106510162354, -0.46047404408454895, 0.5952861905097961, -0.39188095927238464, -0.2845311462879181, -0.1844315528869629, -0.08783245086669922, 0.5851092338562012, 0.38891860842704773, 0.671262264251709, -0.21973539888858795, -0.3972035348415375, -0.291677325963974, -0.829931914806366, -0.26308780908584595, -0.07656891644001007, -0.4204981327056885, 0.10577639937400818, 0.32517561316490173, -0.9553525447845459, 0.7969735264778137, 0.7248857617378235, -0.3468944728374481, 0.4346980154514313, -0.05754022300243378, 0.06622979789972305, -1.3210567235946655, 0.1702386885881424, -0.4252394437789917, -0.28790372610092163, -0.3071124851703644, 0.09946290403604507, -0.06544025987386703, 0.10958676785230637, -0.6569639444351196, 0.5836024880409241, -0.46413654088974, -0.38176870346069336, -0.30507853627204895, 0.048635583370923996, -0.03910538926720619, 0.7200701236724854, -0.12529103457927704, 0.7487759590148926, 0.39861437678337097, -0.21717654168605804, 0.6028731465339661, 0.4996549189090729, -0.5249283909797668, 0.2109270840883255, -1.1431999206542969, 0.2517554759979248, 0.2543548345565796, 0.6401172280311584, -1.4159669876098633, -0.281558632850647, 0.38753002882003784, -0.6096360087394714, 0.1450851857662201, -0.2038269340991974, -0.5201394557952881, -0.49261587858200073, -0.8087340593338013, 0.42484596371650696, 0.8769977688789368, -0.5325928926467896, 0.35123226046562195, 0.38204729557037354, -0.01010863110423088, -0.7996318340301514, -0.9704717397689819, 0.14277569949626923, -0.3172658085823059, -0.6476349234580994, 0.3491393029689789, -0.005511037539690733, -0.09266219288110733, -0.01082529965788126, -0.08646968007087708, 0.15812447667121887, 0.08420170843601227, 0.7216143012046814, 0.3368924558162689, -0.1184874027967453, -0.344735711812973, -0.04658321663737297, 0.055328868329524994, 0.028776228427886963, 0.005573933478444815, 1.041256070137024, -0.042621541768312454, -0.598214328289032, -0.8723544478416443, -0.031216636300086975, 0.3987985849380493, 0.07804791629314423, 0.49050241708755493, 0.780322790145874, -0.3644401729106903, 0.11317478120326996, -0.6995770931243896, -0.14027731120586395, -0.4854860007762909, 0.15763048827648163, -0.26984167098999023, -0.8475270867347717, 0.6350218057632446, 0.19432540237903595, 0.047526225447654724, 0.3961990177631378, 1.0421009063720703, -0.3577032685279846, 0.8569760918617249, 0.32019639015197754, -0.15904583036899567, 0.5369177460670471, -0.4644814133644104, 0.03351546823978424, -0.952709436416626, -0.36114150285720825, -0.026681696996092796, -0.6819792985916138, -0.6736316680908203, -0.7752066254615784, 0.26424622535705566, 0.3459259867668152, -0.2605854570865631, 0.5402395129203796, -0.3695414960384369, 0.3203808665275574, 0.7044643759727478, 0.39583200216293335, 0.18640756607055664, 0.22696563601493835, -0.20865097641944885, -0.04419911280274391, -0.6293824315071106, -0.7239201068878174, 1.3491108417510986, 0.6466693878173828, 0.9118881225585938, 0.08014717698097229, 0.8483424782752991, 0.30726611614227295, 0.31991246342658997, -0.7057835459709167, 0.6693975329399109, 0.21348680555820465, -0.5938422083854675, -0.10612615942955017, -0.2187199890613556, -0.8003034591674805, 0.2765771746635437, -0.42017021775245667, -0.8337429761886597, 0.12426332384347916, 0.3561139702796936, -0.5080556273460388, 0.34367847442626953, -0.4243016839027405, 0.5929615497589111, -0.075835682451725, -0.5023671388626099, -0.24396184086799622, -0.689481258392334, 0.5718283653259277, 0.02045748010277748, 0.09926449507474899, -0.37664785981178284, -0.19200463593006134, 0.6802678108215332, -0.40880095958709717, 0.9746556282043457, 0.06732837855815887, -0.060769222676754, 0.7993378043174744, 0.19083552062511444, 0.3820122182369232, 0.37182068824768066, -0.09641832858324051, 0.3088344931602478, -0.15415418148040771, -0.4974784851074219, -0.3646538555622101, 0.5593720078468323, -1.0985040664672852, -0.7035637497901917, -0.3320589065551758, -0.3344286382198334, 0.05600311607122421, -0.07697386294603348, 0.24625328183174133, 0.2614636719226837, -0.04003522917628288, 0.3818508982658386, 0.1718156486749649, -0.36128509044647217, 0.3517427146434784, 0.2666435241699219, -0.5289484858512878, -0.7368560433387756, 0.7144777774810791, -0.21804006397724152, 0.4771001636981964, 0.39353805780410767, 0.052754126489162445, -0.239266499876976, -0.5215587615966797, -0.39125141501426697, 0.2955920696258545, -0.5346367955207825, -0.417447566986084, -0.7411374449729919, -0.6517748236656189, -0.3962012827396393, 0.06589310616254807, -0.33884957432746887, -0.7609751224517822, -0.375723272562027, -0.40039485692977905, 0.3196253180503845, 0.5571888089179993, -0.4608628749847412, 0.3440352976322174, -0.4810549020767212, 0.2133527398109436, 0.613543689250946, -0.1733292043209076, -0.15278957784175873, -1.0530760288238525, 0.22232456505298615, 0.21470105648040771, -0.6703230738639832, -0.9291231632232666, 0.4938030540943146, 0.2283468395471573, 0.7145647406578064, 0.4784492254257202, -0.32849863171577454, 0.8879727721214294, -0.2873731553554535, 1.0108869075775146, 0.1713016778230667, -0.8420570492744446, 0.5319522023200989, -0.22010144591331482, 0.07005926221609116, 0.37354040145874023, 0.29515498876571655, -0.22098970413208008, -0.43823257088661194, -0.7137748599052429, -0.8543530106544495, 0.4757716953754425, 0.5316265821456909, 0.07164686173200607, 0.17942431569099426, 0.3492468595504761, 0.014919259585440159, 0.22326135635375977, -0.8239071369171143, -0.20917238295078278, -0.3867011070251465, -0.25684764981269836, -0.04262099042534828, -0.5166314244270325, -0.11303512006998062, -0.40685781836509705, 0.5744292736053467, 0.02435377612709999, 0.7567577362060547, 0.11313796043395996, -0.03472121059894562, 0.06888903677463531, -0.1021517813205719, 0.9149045944213867, 0.7308889627456665, -0.623999297618866, 0.3933722674846649, 0.5184803009033203, -0.5052759051322937, 0.007975071668624878, -0.13697010278701782, -0.278909832239151, -0.11583772301673889, 0.8827884793281555, 0.9723809361457825, 0.3165559768676758, -0.7015217542648315, 0.6567323803901672, 0.05732327327132225, -0.42293477058410645, -0.3037538528442383, -0.0020433985628187656, 0.42204901576042175, 0.6505266427993774, 0.14563439786434174, -0.0872679129242897, 0.07063987106084824, -0.5443405508995056, 0.1754520684480667, 0.38349491357803345, -0.1471346765756607, -0.40294262766838074, 0.87261563539505, 0.2116764634847641, -0.3872692584991455, 0.5330984592437744, -0.21008862555027008, -0.6180106401443481, 0.7776540517807007, 0.5669536590576172, 0.6625747680664062, -0.06799238175153732, 0.23196394741535187, 0.6253842115402222, 0.30535468459129333, -0.09541285783052444, 0.4600689113140106, -0.21265459060668945, -0.7481571435928345, -0.27100372314453125, -0.5407357811927795, -0.6311954259872437, 0.2603214383125305, -0.6893306970596313, 0.2981887459754944, -0.7160542011260986, -0.444275826215744, -0.17451049387454987, 0.17041613161563873, -0.6899464726448059, -0.20453020930290222, 0.3788028955459595, 0.9861297607421875, -0.5318815112113953, 1.045306921005249, 0.4920254647731781, -0.08181051164865494, -0.5125979781150818, -0.220383882522583, 0.25277894735336304, -1.4998984336853027, 0.610827624797821, 0.33343273401260376, 0.06202619522809982, -0.16393829882144928, -0.8064610362052917, -1.2513898611068726, 1.8921505212783813, 0.21193136274814606, -0.6342277526855469, 0.04706347733736038, 0.12408711761236191, 0.5425541400909424, -0.5152440071105957, 0.3984943628311157, 0.4125535786151886, 0.3948271572589874, 0.20526355504989624, -1.2514238357543945, 0.17551566660404205, -0.2110302895307541, -0.11709070950746536, -0.43970558047294617, -1.0817898511886597, 1.009421706199646, -0.3465396463871002, -0.1938006579875946, 0.24423108994960785, 0.5940536856651306, 0.7358457446098328, 0.33722180128097534, 0.5737048983573914, 0.7412528395652771, 0.4376133680343628, 0.08771882206201553, 0.9080041646957397, -0.5385052561759949, 0.5417457818984985, 1.2041337490081787, -0.26189321279525757, 1.224770426750183, 0.548976480960846, -0.2863496243953705, 0.5225399732589722, 0.9176931977272034, -0.07019229978322983, 0.7070301175117493, 0.28722500801086426, 0.011808516457676888, -0.28714171051979065, -0.015307771973311901, -0.5248430967330933, 0.6299883723258972, 0.2862266004085541, -0.22317950427532196, -0.04979809373617172, -0.33078017830848694, 0.1805882453918457, -0.3357451260089874, 0.06448650360107422, 0.7305797338485718, 0.2260349541902542, -0.27940425276756287, 0.6712814569473267, 0.011773062869906425, 0.8897098898887634, -0.4223272204399109, -0.010270527563989162, -0.46533870697021484, 0.24544966220855713, -0.20129017531871796, -0.93137526512146, 0.18321581184864044, 0.04422895237803459, 0.22383438050746918, -0.13431422412395477, 0.851973831653595, -0.41018715500831604, -0.431104451417923, 0.5616239905357361, 0.6491010189056396, 0.36534544825553894, 0.1316497027873993, -0.9014896750450134, 0.2923155128955841, 0.0322294645011425, -0.6903536915779114, 0.1940011829137802, 0.06645075976848602, 0.15443554520606995, 0.8708171248435974, 0.6705706119537354, -0.09181618690490723, 0.2515032887458801, -0.16778843104839325, 0.9024913311004639, -0.6902127265930176, -0.29332444071769714, -1.0321815013885498, 0.29610806703567505, -0.2761732041835785, -0.498099148273468, 0.7413235902786255, 0.6609852313995361, 0.8050386309623718, -0.020607231184840202, 0.4418417513370514, 0.06332672387361526, 0.3131968080997467, -0.5463393926620483, 0.524097740650177, -0.596686065196991, 0.24331240355968475, -0.09146146476268768, -0.9759876728057861, -0.06922071427106857, 0.8824577331542969, 0.016330767422914505, -0.11841053515672684, 0.47458821535110474, 1.068090558052063, -0.08092289417982101, -0.2974267899990082, 0.1990293264389038, 0.3629016578197479, 0.2881874442100525, 0.9376348257064819, 1.2423168420791626, -0.5389897227287292, 0.7183408737182617, -0.4095035493373871, -0.31667742133140564, -0.5852229595184326, -0.96320641040802, -1.1927733421325684, -0.11170313507318497, -0.33692625164985657, -0.48110291361808777, -0.0050501348450779915, 1.1221250295639038, 0.985896110534668, -0.8081240653991699, -0.3989028036594391, 0.4402439296245575, 0.17456582188606262, -0.22078751027584076, -0.1453438252210617, 0.3068051040172577, 0.36476343870162964, -0.5927317142486572, 0.3721853196620941, 0.2606378197669983, 0.2919606864452362, -0.13787595927715302, -0.21003219485282898, -0.28763189911842346, 0.236428365111351, 0.731486439704895, 0.12066324800252914, -0.8489578366279602, -0.585087776184082, -0.12171418219804764, -0.377640038728714, 0.025982193648815155, 0.37955576181411743, -0.5236779451370239, -0.17411170899868011, 0.6402937769889832, 0.4805540442466736, 0.9651673436164856, 0.1156734898686409, 0.0984012559056282, -0.5801671743392944, 0.42825159430503845, -0.0631505474448204, 0.3856775760650635, 0.24382027983665466, -0.1997164785861969, 0.7322654128074646, 0.41825950145721436, -0.6475639343261719, -0.9491052031517029, 0.08552397787570953, -1.5285515785217285, -0.0397072397172451, 1.5270841121673584, -0.15633702278137207, -0.2484806627035141, 0.3755892813205719, -0.4539235830307007, 0.076993428170681, -0.4943387508392334, 0.8365509510040283, 0.5966387987136841, -0.20772340893745422, -0.05744325369596481, -0.638201117515564, 0.22574810683727264, 0.19176027178764343, -0.9204081296920776, -0.4976400136947632, 0.25268036127090454, 0.6282588839530945, 0.031363967806100845, 0.9033712148666382, -0.06777860224246979, 0.09474966675043106, 0.002778967609629035, 0.08459795266389847, -0.33023253083229065, -0.1465500146150589, -0.11259925365447998, 0.039910778403282166, -0.1956278681755066, -0.5121402740478516 ]
Jean-Baptiste/camembert-ner-with-dates
Jean-Baptiste
"2023-06-16T01:31:43Z"
35,939
29
transformers
[ "transformers", "pytorch", "onnx", "safetensors", "camembert", "token-classification", "fr", "dataset:Jean-Baptiste/wikiner_fr", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2022-03-02T23:29:04Z"
--- language: fr datasets: - Jean-Baptiste/wikiner_fr widget: - text: "Je m'appelle jean-baptiste et j'habite à montréal depuis fevr 2012" license: mit --- # camembert-ner: model fine-tuned from camemBERT for NER task (including DATE tag). ## Introduction [camembert-ner-with-dates] is an extension of french camembert-ner model with an additionnal tag for dates. Model was trained on enriched version of wikiner-fr dataset (~170 634 sentences). On my test data (mix of chat and email), this model got an f1 score of ~83% (in comparison dateparser was ~70%). Dateparser library can still be be used on the output of this model in order to convert text to python datetime object (https://dateparser.readthedocs.io/en/latest/). ## How to use camembert-ner-with-dates with HuggingFace ##### Load camembert-ner-with-dates and its sub-word tokenizer : ```python from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/camembert-ner-with-dates") model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/camembert-ner-with-dates") ##### Process text sample (from wikipedia) from transformers import pipeline nlp = pipeline('ner', model=model, tokenizer=tokenizer, aggregation_strategy="simple") nlp("Apple est créée le 1er avril 1976 dans le garage de la maison d'enfance de Steve Jobs à Los Altos en Californie par Steve Jobs, Steve Wozniak et Ronald Wayne14, puis constituée sous forme de société le 3 janvier 1977 à l'origine sous le nom d'Apple Computer, mais pour ses 30 ans et pour refléter la diversification de ses produits, le mot « computer » est retiré le 9 janvier 2015.") [{'entity_group': 'ORG', 'score': 0.9776379466056824, 'word': 'Apple', 'start': 0, 'end': 5}, {'entity_group': 'DATE', 'score': 0.9793774570737567, 'word': 'le 1er avril 1976 dans le', 'start': 15, 'end': 41}, {'entity_group': 'PER', 'score': 0.9958226680755615, 'word': 'Steve Jobs', 'start': 74, 'end': 85}, {'entity_group': 'LOC', 'score': 0.995087186495463, 'word': 'Los Altos', 'start': 87, 'end': 97}, {'entity_group': 'LOC', 'score': 0.9953305125236511, 'word': 'Californie', 'start': 100, 'end': 111}, {'entity_group': 'PER', 'score': 0.9961076378822327, 'word': 'Steve Jobs', 'start': 115, 'end': 126}, {'entity_group': 'PER', 'score': 0.9960325956344604, 'word': 'Steve Wozniak', 'start': 127, 'end': 141}, {'entity_group': 'PER', 'score': 0.9957776467005411, 'word': 'Ronald Wayne', 'start': 144, 'end': 157}, {'entity_group': 'DATE', 'score': 0.994030773639679, 'word': 'le 3 janvier 1977 à', 'start': 198, 'end': 218}, {'entity_group': 'ORG', 'score': 0.9720810294151306, 'word': "d'Apple Computer", 'start': 240, 'end': 257}, {'entity_group': 'DATE', 'score': 0.9924157659212748, 'word': '30 ans et', 'start': 272, 'end': 282}, {'entity_group': 'DATE', 'score': 0.9934852868318558, 'word': 'le 9 janvier 2015.', 'start': 363, 'end': 382}] ``` ## Model performances (metric: seqeval) Global ``` 'precision': 0.928 'recall': 0.928 'f1': 0.928 ``` By entity ``` Label LOC: (precision:0.929, recall:0.932, f1:0.931, support:9510) Label PER: (precision:0.952, recall:0.965, f1:0.959, support:9399) Label MISC: (precision:0.878, recall:0.844, f1:0.860, support:5364) Label ORG: (precision:0.848, recall:0.883, f1:0.865, support:2299) Label DATE: Not relevant because of method used to add date tag on wikiner dataset (estimated f1 ~90%) ```
[ -0.3931933641433716, -0.7346448302268982, 0.3096312880516052, 0.3458108901977539, -0.24599702656269073, -0.12438829988241196, -0.07980533689260483, -0.2640700340270996, 0.608847439289093, 0.31818607449531555, -0.7232953310012817, -1.035443902015686, -0.664345920085907, 0.17098349332809448, -0.10521705448627472, 1.197052001953125, 0.05383696407079697, -0.17931509017944336, 0.14753852784633636, -0.25591179728507996, -0.21551065146923065, -0.6282207369804382, -0.64076828956604, -0.4093146324157715, 0.4851001799106598, 0.10498043149709702, 0.613526463508606, 0.5938118696212769, 0.6727743744850159, 0.32767027616500854, -0.2679702043533325, 0.04498746991157532, -0.04261280596256256, -0.22390149533748627, -0.152231365442276, -0.5037388205528259, -0.7329463362693787, 0.19581276178359985, 0.42333585023880005, 0.839972972869873, -0.1786235272884369, 0.19571846723556519, -0.11318030208349228, 0.5780182480812073, -0.2727617025375366, 0.42938074469566345, -0.7752015590667725, 0.2369053214788437, -0.25378113985061646, -0.30788496136665344, 0.0188712440431118, -0.33783647418022156, -0.0983709990978241, -0.8001745939254761, 0.2570056915283203, 0.14010842144489288, 1.4591730833053589, 0.17412367463111877, -0.28583824634552, -0.3177069425582886, -0.29363155364990234, 1.0417916774749756, -1.1813021898269653, 0.3767174780368805, 0.5304597616195679, -0.05192076414823532, -0.30434948205947876, -0.7788345813751221, -0.6750707626342773, -0.047683827579021454, -0.42713984847068787, 0.36338138580322266, -0.1481538861989975, -0.2389206439256668, 0.22621247172355652, 0.5121285319328308, -0.7987749576568604, 0.02441416308283806, -0.24634182453155518, -0.10894755274057388, 0.7177137732505798, 0.2736791968345642, 0.21826748549938202, -0.5559112429618835, -0.5007769465446472, -0.2060783952474594, -0.3047802448272705, 0.23210376501083374, 0.30656981468200684, 0.41705122590065, -0.33981040120124817, 1.0094232559204102, -0.4823891520500183, 0.7029812932014465, 0.059390947222709656, -0.08953501284122467, 0.704245924949646, -0.47953182458877563, -0.2946630120277405, -0.0707322433590889, 1.4191346168518066, 0.697363018989563, 0.016407189890742302, 0.05382568761706352, -0.3642038106918335, 0.15206846594810486, -0.10356143862009048, -0.8656209111213684, -0.41973087191581726, 0.26109564304351807, -0.4155598282814026, -0.31362423300743103, 0.18666358292102814, -0.9760783910751343, 0.1161809116601944, -0.2198425829410553, 0.4697800278663635, -0.5861219167709351, 0.02350609377026558, 0.061008915305137634, -0.3173801004886627, 0.029418695718050003, 0.015697583556175232, -0.5416387319564819, 0.24703940749168396, 0.5019229054450989, 0.9157787561416626, 0.20385918021202087, -0.2888716161251068, -0.41255077719688416, -0.05203751474618912, -0.28589528799057007, 0.8044936656951904, -0.40571731328964233, -0.45756566524505615, -0.3743949830532074, 0.2649233937263489, -0.31609082221984863, -0.24786195158958435, 0.7029222249984741, -0.3430781662464142, 0.5435782670974731, -0.0919158011674881, -0.6405481100082397, -0.17503158748149872, 0.5239119529724121, -0.5560420155525208, 1.310295820236206, 0.4215520918369293, -1.187024474143982, 0.7092469334602356, -0.6882258653640747, -0.33999866247177124, 0.15719448029994965, -0.32760223746299744, -0.5218488574028015, -0.14783243834972382, 0.5947259068489075, 0.6252681016921997, -0.4118918180465698, 0.28807175159454346, -0.21707236766815186, -0.0799890086054802, 0.3236188292503357, -0.2346925437450409, 1.0657680034637451, 0.16479787230491638, -0.3359754979610443, -0.04964395612478256, -1.0161139965057373, 0.30986443161964417, 0.22060421109199524, -0.6671082377433777, -0.19594764709472656, -0.08031322807073593, 0.17037945985794067, 0.27034991979599, 0.3083083927631378, -0.4421207010746002, 0.20549924671649933, -0.7771331667900085, 0.5057153105735779, 0.6032351851463318, 0.19519531726837158, 0.22719568014144897, -0.44982752203941345, 0.4658145010471344, 0.22061890363693237, 0.12958471477031708, 0.028333203867077827, -0.4771914482116699, -0.5120100378990173, -0.39996522665023804, 0.3336464762687683, 0.8066151142120361, -0.5641594529151917, 1.2771719694137573, -0.8311503529548645, -0.8309838771820068, -0.4673464894294739, -0.03521159663796425, 0.010723420418798923, 0.7462473511695862, 0.5629312992095947, -0.44658923149108887, -0.49036091566085815, -0.9714064598083496, -0.21618644893169403, -0.2584453523159027, 0.12308544665575027, 0.42191430926322937, 0.7254422903060913, -0.303948312997818, 0.9309358596801758, -0.832542896270752, -0.3499082326889038, -0.0376729816198349, 0.25714820623397827, 1.0154165029525757, 0.6687391996383667, 0.5740920305252075, -0.7452287673950195, -0.5122349858283997, 0.043581441044807434, -0.7811272144317627, 0.07915107905864716, 0.10051999241113663, -0.07900100946426392, 0.18692202866077423, 0.32820993661880493, -0.8933516144752502, 0.6281021237373352, 0.40035566687583923, -0.6946462392807007, 0.47474202513694763, -0.43737688660621643, 0.4503423869609833, -1.3337076902389526, 0.04180404171347618, -0.024252772331237793, -0.12350842356681824, -0.3928948938846588, -0.2153552770614624, -0.006794158834964037, 0.15199270844459534, -0.31275901198387146, 0.3372158408164978, -0.5114141702651978, 0.23150749504566193, 0.07507175952196121, 0.10972362756729126, 0.1058770939707756, 0.43113070726394653, -0.08282029628753662, 0.6010576486587524, 0.5230410099029541, -0.5522822141647339, 0.4536725580692291, 0.13859878480434418, -0.5975003838539124, 0.7121040225028992, -0.6199564337730408, -0.06265553832054138, -0.09115850925445557, 0.17124681174755096, -0.8130300045013428, -0.29364705085754395, 0.39129599928855896, -0.6216025948524475, 0.36623653769493103, -0.22990861535072327, -0.546737015247345, -0.5478237867355347, -0.38880500197410583, 0.20506241917610168, 0.25431329011917114, -0.2938712537288666, 0.802657961845398, 0.2001747339963913, -0.0638865977525711, -0.5447756052017212, -1.0679762363433838, -0.056382715702056885, -0.3979836106300354, -0.7356155514717102, 0.6377124190330505, -0.12797687947750092, 0.002889190101996064, 0.37086984515190125, -0.19066844880580902, -0.1022387444972992, 0.07572341710329056, 0.053325727581977844, 0.35438260436058044, -0.21653339266777039, -0.08015399426221848, -0.03851836547255516, -0.12348518520593643, -0.12471561133861542, -0.35768377780914307, 0.9069578647613525, 0.04995612055063248, -0.14912065863609314, -0.29637759923934937, 0.26033324003219604, 0.4607918858528137, -0.3855845630168915, 1.2398028373718262, 0.7710891366004944, -0.6627117991447449, 0.19454756379127502, -0.5456885099411011, -0.05170159414410591, -0.4045133888721466, 0.34830227494239807, -0.6893970370292664, -0.7432629466056824, 0.7120813727378845, 0.3578316271305084, 0.03778589144349098, 1.0781193971633911, 0.3825828433036804, -0.01597098633646965, 0.9994881749153137, 0.11304106563329697, -0.3120245933532715, 0.41453638672828674, -0.5379076600074768, 0.1430848389863968, -0.7574260830879211, -0.4833343029022217, -0.5146378874778748, -0.23191843926906586, -0.8691388368606567, -0.3934638798236847, 0.18235139548778534, 0.32960960268974304, -0.25726965069770813, 0.5677013993263245, -0.937718391418457, 0.0533585399389267, 0.5929355025291443, 0.2763367295265198, -0.021131722256541252, -0.14074034988880157, -0.31346821784973145, -0.27907541394233704, -0.5200356245040894, -0.3126395046710968, 1.0994784832000732, 0.10009795427322388, 0.747324526309967, 0.06347289681434631, 0.904022216796875, 0.20474541187286377, 0.21297088265419006, -0.6872882843017578, 0.6159165501594543, -0.11654353141784668, -0.7478643655776978, -0.25024348497390747, -0.7240219712257385, -1.034231424331665, 0.322900652885437, -0.32423827052116394, -1.053313136100769, 0.16670837998390198, 0.053610898554325104, -0.14302374422550201, 0.2515496611595154, -0.6325457692146301, 0.8427038788795471, -0.37981176376342773, -0.22780030965805054, 0.16885057091712952, -0.6186130046844482, 0.06056303158402443, -0.0766887217760086, 0.5291337370872498, -0.5729969143867493, -0.12763553857803345, 0.9612855911254883, -0.7241279482841492, 0.5357255339622498, -0.1283743679523468, 0.10760468244552612, 0.255036860704422, -0.11714988201856613, 0.8800085186958313, 0.1692027896642685, -0.026872871443629265, 0.09566125273704529, 0.06605492532253265, -0.29751846194267273, -0.43306630849838257, 0.9368067383766174, -0.5861902832984924, -0.36799076199531555, -0.7225208878517151, -0.5202974677085876, 0.23455408215522766, 0.3986479640007019, 0.6826935410499573, 0.5046225786209106, 0.020110193639993668, 0.22102206945419312, 0.35461220145225525, -0.22620467841625214, 0.48903006315231323, 0.30753809213638306, -0.1907559186220169, -0.8509290218353271, 0.7979710698127747, 0.3317842483520508, -0.17582637071609497, 0.708059549331665, 0.14722615480422974, -0.4875744581222534, -0.4440724551677704, -0.10885342210531235, 0.40736353397369385, -0.6024593710899353, -0.42473921179771423, -1.1323076486587524, -0.239424929022789, -0.884911060333252, 0.010900371707975864, -0.30905917286872864, -0.6127496361732483, -0.606454610824585, -0.2655797302722931, 0.6935194730758667, 0.3195202946662903, -0.10706660896539688, 0.2568255066871643, -0.7647345662117004, 0.19386544823646545, 0.07515107095241547, 0.4110216498374939, -0.4611733555793762, -0.6226295828819275, -0.16631926596164703, -0.029037674888968468, -0.2807457149028778, -1.2052443027496338, 0.6624624133110046, 0.0930393785238266, 0.47100263833999634, 0.17577055096626282, -0.23537655174732208, 0.897800087928772, -0.37776830792427063, 0.9832460880279541, 0.2733296751976013, -0.9001651406288147, 0.8030601143836975, -0.4168446660041809, 0.3311414420604706, 0.46186184883117676, 0.3376775085926056, -0.7618053555488586, -0.27522918581962585, -0.96013343334198, -1.4084826707839966, 0.9256893992424011, 0.544386625289917, -0.0923246368765831, -0.04916984587907791, 0.09071328490972519, -0.20821259915828705, 0.26122716069221497, -0.9895644783973694, -0.7521366477012634, -0.3422626256942749, -0.6695075631141663, -0.29231151938438416, -0.005708959419280291, -0.08306942880153656, -0.48263290524482727, 0.9883794188499451, 0.06269609928131104, 0.3620714545249939, 0.4525321424007416, -0.11260275542736053, 0.16889405250549316, 0.42173662781715393, 0.3704945743083954, 0.6286824345588684, -0.49581530690193176, 0.0009167138487100601, 0.3552502393722534, -0.32597970962524414, -0.0994894877076149, 0.8289979696273804, -0.10048457235097885, 0.11620640009641647, 0.5419445037841797, 0.7668733596801758, 0.09788724035024643, -0.2486410290002823, 0.5194447040557861, 0.10919145494699478, -0.4550890028476715, -0.5266302824020386, -0.10004135221242905, 0.1826486885547638, 0.2010735273361206, 0.452345609664917, -0.08208570629358292, 0.17758484184741974, -0.3906666338443756, 0.11970418691635132, 0.39586836099624634, -0.5681405663490295, -0.371151328086853, 0.9551495909690857, -0.41579121351242065, -0.2884736955165863, 0.4886397421360016, -0.34926629066467285, -0.6652266979217529, 0.676810085773468, 0.34574252367019653, 0.7640753388404846, -0.07014962285757065, -0.059252288192510605, 0.6077879667282104, 0.5660116672515869, -0.034111104905605316, 0.5127593278884888, 0.22245556116104126, -0.7433855533599854, -0.02626536786556244, -0.746198296546936, 0.4655490517616272, 0.39079782366752625, -0.6237507462501526, 0.22689369320869446, -0.3365546762943268, -0.7564026713371277, 0.23580306768417358, 0.18673479557037354, -1.0258396863937378, 0.7034116983413696, -0.2753589153289795, 0.8157239556312561, -0.9413307905197144, 0.42144522070884705, 1.123091220855713, -0.7282131314277649, -1.0738369226455688, -0.2539299428462982, -0.16148218512535095, -0.5255077481269836, 0.5717118978500366, 0.16054385900497437, 0.527298629283905, 0.019706230610609055, -0.5362846255302429, -1.0377341508865356, 1.3962373733520508, -0.00914936512708664, -0.47689706087112427, -0.1505855917930603, -0.02754315733909607, 0.4995849132537842, -0.2884858250617981, 0.6661545634269714, 0.6552641987800598, 0.5126304626464844, -0.1775684505701065, -0.8235809803009033, 0.22270187735557556, -0.5022713541984558, -0.12421764433383942, 0.5018608570098877, -0.8289889097213745, 0.9645066261291504, 0.2726839482784271, -0.009585916064679623, -0.23506201803684235, 0.6494928002357483, 0.30085861682891846, 0.4609827697277069, 0.44397982954978943, 1.0342427492141724, 0.7371630668640137, -0.4778822958469391, 0.9176827073097229, -0.21073773503303528, 0.7475454211235046, 0.9741132855415344, 0.11431796848773956, 0.6056692600250244, 0.45102012157440186, -0.5188440084457397, 0.5373218655586243, 0.6451082229614258, -0.22710251808166504, 0.5058432221412659, 0.05174413323402405, -0.23314562439918518, -0.04941154271364212, 0.09026234596967697, -0.4213494658470154, 0.396322101354599, 0.3818068206310272, -0.5534297227859497, -0.012973337434232235, -0.35829588770866394, 0.32263603806495667, 0.045148082077503204, -0.14694364368915558, 0.6518437266349792, 0.10654619336128235, -0.5811384320259094, 0.355670690536499, 0.08429034054279327, 0.9607136845588684, -0.46985071897506714, 0.1692604422569275, -0.20823580026626587, 0.24886977672576904, -0.286282479763031, -0.8120753765106201, 0.08519170433282852, 0.03491630777716637, -0.38292303681373596, 0.16780395805835724, 0.653337836265564, -0.417018860578537, -1.043041706085205, 0.30672159790992737, 0.30153700709342957, 0.3045921325683594, -0.08221471309661865, -1.1402536630630493, -0.18889693915843964, 0.1924852877855301, -0.5885948538780212, -0.1870230883359909, 0.684934675693512, 0.11695168912410736, 0.7545393705368042, 0.7447000741958618, 0.33942747116088867, 0.26335492730140686, -0.012854241766035557, 0.9392492175102234, -1.0879560708999634, -0.49921098351478577, -1.0092880725860596, 0.651764988899231, -0.20540466904640198, -0.3748982846736908, 0.6658510565757751, 1.1461074352264404, 0.7089713215827942, 0.16377024352550507, 0.684822142124176, -0.6019339561462402, 0.6447467803955078, -0.6328465938568115, 0.865494430065155, -0.9626669883728027, 0.09738893806934357, -0.29261457920074463, -1.0497568845748901, -0.16277170181274414, 0.42838385701179504, -0.2892017960548401, 0.3468037247657776, 0.7218478918075562, 0.979996383190155, -0.19641180336475372, -0.21160000562667847, -0.08209920674562454, 0.17542764544487, 0.5079172849655151, 0.5463441014289856, 0.4799482524394989, -0.76441490650177, 0.5558651089668274, -0.6621391773223877, -0.1609565168619156, -0.1973642259836197, -0.8997965455055237, -0.8641422986984253, -0.46074530482292175, -0.4512069523334503, -0.27391910552978516, -0.13128288090229034, 1.20880925655365, 0.49312373995780945, -0.9002289175987244, -0.015483430586755276, -0.17216116189956665, -0.21058343350887299, -0.17461135983467102, -0.39257270097732544, 0.7476848363876343, -0.18461720645427704, -0.720848798751831, 0.34564393758773804, -0.015476204454898834, 0.2981746196746826, 0.5697152018547058, 0.04690570384263992, -0.5586506128311157, -0.12388638406991959, 0.46211984753608704, -0.0766962543129921, -0.6189795732498169, -0.09185783565044403, -0.012642346322536469, -0.14953461289405823, 0.3378222584724426, 0.24097797274589539, -0.44940513372421265, 0.3205099105834961, 0.681081235408783, 0.11610790342092514, 0.8726970553398132, 0.22235974669456482, 0.2651781141757965, -0.8062224984169006, 0.28735488653182983, 0.23821699619293213, 0.504235029220581, 0.473752498626709, -0.46381568908691406, 0.6281039118766785, 0.543216347694397, -0.5992907285690308, -0.7583081722259521, -0.29426050186157227, -1.0630751848220825, -0.15493445098400116, 0.8438978791236877, -0.027139846235513687, -0.3274264931678772, 0.28833097219467163, -0.08204741030931473, 0.5387185215950012, -0.6502556204795837, 0.4434351325035095, 0.7969375252723694, 0.01246570609509945, 0.06005633622407913, -0.47842103242874146, 0.26237714290618896, 0.3052215278148651, -0.878870964050293, -0.5024058818817139, 0.3205074071884155, 0.5227081179618835, 0.22586552798748016, 0.791441023349762, -0.2666740417480469, -0.08095043897628784, 0.08090649545192719, 0.1610679030418396, 0.21784406900405884, 0.2030542641878128, -0.03241527080535889, -0.08175941556692123, -0.052164606750011444, -0.3013420104980469 ]
timm/swinv2_cr_tiny_ns_224.sw_in1k
timm
"2023-03-18T03:23:29Z"
35,853
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2111.09883", "license:apache-2.0", "region:us" ]
image-classification
"2023-03-18T03:23:12Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for swinv2_cr_tiny_ns_224.sw_in1k An independent implementation of Swin Transformer V2 released prior to the official code release. A collaboration between [Christoph Reich](https://github.com/ChristophReich1996) and Ross Wightman, the model differs from official impl in a few ways: * MLP log relative position bias uses unnormalized natural log w/o scaling vs normalized, sigmoid clamped and scaled log2. * option to apply LayerNorm at end of every stage ("ns" variants). * defaults to NCHW tensor layout at output of each stage and final features. Pretrained on ImageNet-1k by Ross Wightman. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 28.3 - GMACs: 4.7 - Activations (M): 28.5 - Image size: 224 x 224 - **Papers:** - Swin Transformer V2: Scaling Up Capacity and Resolution: https://arxiv.org/abs/2111.09883 - **Original:** https://github.com/ChristophReich1996/Swin-Transformer-V2 - **Dataset:** ImageNet-1k ## 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('swinv2_cr_tiny_ns_224.sw_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) ``` ### 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( 'swinv2_cr_tiny_ns_224.sw_in1k', 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. for swin_base_patch4_window7_224 (NHWC output) # torch.Size([1, 56, 56, 128]) # torch.Size([1, 28, 28, 256]) # torch.Size([1, 14, 14, 512]) # torch.Size([1, 7, 7, 1024]) # e.g. for swinv2_cr_small_ns_224 (NCHW output) # torch.Size([1, 96, 56, 56]) # torch.Size([1, 192, 28, 28]) # torch.Size([1, 384, 14, 14]) # torch.Size([1, 768, 7, 7]) 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( 'swinv2_cr_tiny_ns_224.sw_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 (ie.e a (batch_size, H, W, num_features) tensor for swin / swinv2 # or (batch_size, num_features, H, W) for swinv2_cr output = model.forward_head(output, pre_logits=True) # output is (batch_size, num_features) 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{liu2021swinv2, title={Swin Transformer V2: Scaling Up Capacity and Resolution}, author={Ze Liu and Han Hu and Yutong Lin and Zhuliang Yao and Zhenda Xie and Yixuan Wei and Jia Ning and Yue Cao and Zheng Zhang and Li Dong and Furu Wei and Baining Guo}, booktitle={International Conference on Computer Vision and Pattern Recognition (CVPR)}, 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.46162763237953186, -0.41073131561279297, -0.08402212709188461, 0.14487503468990326, -0.33678698539733887, -0.4512639045715332, -0.2941310703754425, -0.5666438937187195, 0.10283509641885757, 0.4106571674346924, -0.5800783634185791, -0.5485370755195618, -0.6232218742370605, -0.2606284022331238, -0.10628501325845718, 0.9975032210350037, -0.11218969523906708, 0.048307254910469055, -0.27671459317207336, -0.6024121642112732, -0.23220516741275787, -0.13290491700172424, -0.6238208413124084, -0.4588419497013092, 0.3480987250804901, 0.229891836643219, 0.6328215599060059, 0.5364894866943359, 0.7442334890365601, 0.4402664601802826, -0.10815583914518356, -0.0378262996673584, -0.254326730966568, -0.20421768724918365, 0.3066445291042328, -0.6163338422775269, -0.4345313310623169, 0.207374706864357, 0.6716949343681335, 0.3085467219352722, 0.10846024751663208, 0.45162561535835266, 0.10235851258039474, 0.5032085180282593, -0.1314443051815033, 0.09517927467823029, -0.4532794952392578, 0.11946128308773041, -0.11397375911474228, 0.162924125790596, -0.2702784836292267, -0.31955161690711975, 0.33813437819480896, -0.4922575056552887, 0.6158143281936646, 0.01418209820985794, 1.360257625579834, 0.1299002766609192, -0.11913486570119858, -0.024569369852542877, -0.36595287919044495, 0.9299160838127136, -0.9484344124794006, 0.11126541346311569, 0.1559632569551468, 0.20508304238319397, 0.025800419971346855, -0.9643990397453308, -0.5491777658462524, -0.11980938911437988, -0.3349139392375946, 0.015824509784579277, -0.25071972608566284, 0.02954516001045704, 0.4035753309726715, 0.26996463537216187, -0.5277064442634583, 0.24636588990688324, -0.6014280319213867, -0.25305378437042236, 0.6857818961143494, 0.014959540218114853, 0.3578473925590515, -0.351551353931427, -0.5944905281066895, -0.4917452037334442, -0.3801766633987427, 0.3166830837726593, 0.19728417694568634, 0.21236006915569305, -0.6738853454589844, 0.49774280190467834, 0.358352392911911, 0.3847454786300659, 0.015515902079641819, -0.41008150577545166, 0.5997598767280579, -0.11208692193031311, -0.31064844131469727, -0.2031606286764145, 1.0183522701263428, 0.45358407497406006, 0.06202711537480354, 0.2734285891056061, -0.2547924220561981, -0.342201292514801, -0.06620245426893234, -1.1821123361587524, -0.2987452745437622, 0.32916945219039917, -0.6749088168144226, -0.4739580452442169, 0.26613014936447144, -0.6159209609031677, -0.17669273912906647, -0.07906658947467804, 0.6126863360404968, -0.4857306480407715, -0.5136404037475586, -0.23126354813575745, -0.3786446452140808, 0.538028359413147, 0.24866825342178345, -0.5941799283027649, 0.12346409261226654, 0.3289564549922943, 1.147193193435669, 0.0074087707325816154, -0.45524388551712036, -0.08987759053707123, -0.34589076042175293, -0.24986964464187622, 0.43100976943969727, 0.014709189534187317, -0.19626203179359436, -0.2219945788383484, 0.3122323453426361, -0.032382782548666, -0.6860562562942505, 0.23001502454280853, -0.19833417236804962, 0.26900261640548706, -0.08552657812833786, -0.19525368511676788, -0.36325833201408386, 0.1307174116373062, -0.44334208965301514, 1.4282411336898804, 0.5689972043037415, -0.9387238621711731, 0.2952789068222046, -0.4891851544380188, -0.2889726459980011, -0.17002926766872406, -0.0029738254379481077, -1.0253478288650513, 0.025141682475805283, 0.18477679789066315, 0.5966165661811829, -0.3474765717983246, 0.01885640248656273, -0.46180203557014465, -0.3142659664154053, 0.30545639991760254, -0.019505830481648445, 0.9766445159912109, 0.04045861214399338, -0.5214182734489441, 0.3360619843006134, -0.5644689202308655, 0.15561261773109436, 0.6139593720436096, -0.12474214285612106, -0.2087884545326233, -0.561316728591919, 0.24674835801124573, 0.4380279779434204, 0.23110565543174744, -0.5871075391769409, 0.25257304310798645, -0.29998087882995605, 0.4880102276802063, 0.6706810593605042, -0.14218124747276306, 0.46220338344573975, -0.35871991515159607, 0.20927578210830688, 0.3824062645435333, 0.3462916612625122, -0.05273609235882759, -0.6238086819648743, -0.8803770542144775, -0.4185578525066376, 0.3092036247253418, 0.400794118642807, -0.5649647116661072, 0.5479587912559509, -0.234987273812294, -0.8384776711463928, -0.5469937324523926, 0.12541967630386353, 0.4214789867401123, 0.5588960647583008, 0.408447265625, -0.3707328736782074, -0.6656346917152405, -0.9891936182975769, 0.10942651331424713, -0.05279507488012314, -0.15598274767398834, 0.346460223197937, 0.7649673819541931, -0.19707462191581726, 0.7814967036247253, -0.3560262620449066, -0.34426575899124146, -0.4123975932598114, 0.2121392786502838, 0.38824042677879333, 0.7571684122085571, 0.8538110852241516, -0.587295413017273, -0.49799561500549316, -0.03861255198717117, -0.9141377806663513, 0.10010625422000885, -0.16416731476783752, -0.2295343279838562, 0.3252120316028595, 0.008570223115384579, -0.6802194118499756, 0.6611342430114746, 0.28216034173965454, -0.2852451205253601, 0.5795533657073975, -0.33385947346687317, 0.13721318542957306, -1.0343611240386963, 0.06178206577897072, 0.47636517882347107, -0.07523840665817261, -0.5625540018081665, 0.03658269718289375, 0.22660796344280243, -0.007262510247528553, -0.5380550026893616, 0.6528289318084717, -0.5614540576934814, -0.3148983120918274, -0.19072699546813965, -0.019115490838885307, 0.09526483714580536, 0.7485692501068115, 0.020298194140195847, 0.4320290982723236, 0.8059139847755432, -0.426991730928421, 0.34616178274154663, 0.3916604518890381, -0.22869838774204254, 0.3793298006057739, -0.876543402671814, 0.08808579295873642, -0.03579141944646835, 0.26383906602859497, -1.0189107656478882, -0.15743963420391083, 0.15795736014842987, -0.6048943996429443, 0.6553832292556763, -0.5943083763122559, -0.4049152433872223, -0.700991153717041, -0.6606478691101074, 0.3209388852119446, 0.9694827198982239, -0.794530987739563, 0.46119722723960876, 0.22955602407455444, 0.15349362790584564, -0.5346980094909668, -1.0084218978881836, -0.3944562077522278, -0.2694546580314636, -0.8472431302070618, 0.3991212546825409, 0.2095605581998825, -0.044538602232933044, 0.07738862931728363, -0.12423738837242126, 0.02418968640267849, -0.28577786684036255, 0.5951893925666809, 0.6823726892471313, -0.38562825322151184, -0.21446312963962555, -0.14416055381298065, -0.06610704213380814, 0.07027897238731384, -0.15397073328495026, 0.48505181074142456, -0.2123199701309204, -0.14438387751579285, -0.7462230324745178, -0.08710687607526779, 0.5356587767601013, -0.08391173183917999, 0.7503514885902405, 1.275972843170166, -0.44161954522132874, -0.07441459596157074, -0.44753584265708923, -0.36176544427871704, -0.5178377032279968, 0.42754682898521423, -0.2880866229534149, -0.4511907696723938, 0.818024218082428, 0.0709538385272026, 0.3021770417690277, 0.7915007472038269, 0.3475527763366699, -0.28998151421546936, 0.9167675971984863, 0.5114345550537109, 0.18551243841648102, 0.7255988717079163, -1.0015469789505005, -0.13452737033367157, -0.9556486010551453, -0.49192118644714355, -0.351235955953598, -0.6925269961357117, -0.6037507653236389, -0.5892815589904785, 0.43786078691482544, 0.24326103925704956, -0.3232455849647522, 0.5866125226020813, -0.8188478946685791, 0.005805215332657099, 0.693254828453064, 0.41435396671295166, -0.4205145537853241, 0.28895387053489685, -0.19536861777305603, -0.29456356167793274, -0.680407702922821, -0.16896270215511322, 0.9886837601661682, 0.5493455529212952, 0.7183902859687805, -0.120884470641613, 0.5960506796836853, -0.058041393756866455, 0.3081011474132538, -0.6370396018028259, 0.5976384878158569, -0.08077844977378845, -0.3454681634902954, -0.21987169981002808, -0.32921549677848816, -0.9670759439468384, 0.3569631278514862, -0.35933956503868103, -0.6813601851463318, 0.17243880033493042, 0.07983822375535965, -0.02203255333006382, 0.768915057182312, -0.8118689060211182, 0.8579493165016174, -0.17032332718372345, -0.4050813317298889, -0.08121807873249054, -0.8164907097816467, 0.28922024369239807, 0.35660049319267273, -0.15365290641784668, -0.16880010068416595, 0.1620057374238968, 1.1297070980072021, -0.7263192534446716, 0.8931982517242432, -0.6150662302970886, 0.33267223834991455, 0.5738624930381775, -0.16873782873153687, 0.5392469167709351, -0.08619993180036545, -0.048666760325431824, 0.4291592538356781, 0.035915352404117584, -0.4744303226470947, -0.5939970016479492, 0.6848948001861572, -1.0973395109176636, -0.328757107257843, -0.35495471954345703, -0.42586955428123474, 0.24198125302791595, 0.12533843517303467, 0.571720540523529, 0.6916466355323792, 0.1502504050731659, 0.21797245740890503, 0.6517073512077332, -0.3499471843242645, 0.5025930404663086, 0.010690663009881973, -0.1533626765012741, -0.4226462244987488, 0.82220858335495, 0.16971299052238464, 0.16538405418395996, 0.09191548079252243, 0.31260377168655396, -0.3701041042804718, -0.5564770102500916, -0.4004743993282318, 0.5398215651512146, -0.7254053950309753, -0.5005452632904053, -0.5811941623687744, -0.5289081931114197, -0.5589365363121033, -0.19535912573337555, -0.4871653914451599, -0.39230531454086304, -0.34397435188293457, 0.19944046437740326, 0.724092960357666, 0.6950863599777222, -0.09278225153684616, 0.38963377475738525, -0.5297138690948486, 0.11964870244264603, 0.1258218139410019, 0.33803513646125793, -0.05719613656401634, -1.0087958574295044, -0.23675115406513214, -0.015826713293790817, -0.32822275161743164, -0.5822744369506836, 0.4567098915576935, 0.12098922580480576, 0.5583702325820923, 0.37096792459487915, -0.11357346177101135, 0.7989218831062317, -0.017509641125798225, 0.7623409628868103, 0.49699509143829346, -0.6269848942756653, 0.7402859926223755, 0.029836317524313927, 0.2451246976852417, 0.05339157581329346, 0.18386702239513397, -0.2985944449901581, -0.15331757068634033, -0.9762625098228455, -0.8768665194511414, 0.9484157562255859, 0.10745199024677277, -0.012291611172258854, 0.4317837357521057, 0.5581945776939392, 0.15245728194713593, -0.09659188240766525, -0.6915857195854187, -0.5160850882530212, -0.43404239416122437, -0.2145550400018692, 0.07377438247203827, -0.22319746017456055, -0.14234559237957, -0.7805739641189575, 0.7185986638069153, -0.09467527270317078, 0.8151506185531616, 0.3267025947570801, -0.261598140001297, -0.11242551356554031, -0.3467239439487457, 0.4984397292137146, 0.26735737919807434, -0.2841312289237976, -0.016920501366257668, 0.286868691444397, -0.6520397067070007, -0.05108678713440895, 0.008821733295917511, -0.08712249249219894, 0.16502371430397034, 0.6044472455978394, 1.0899745225906372, 0.2334715873003006, -0.08594425767660141, 0.6962985992431641, 0.020212190225720406, -0.5659472942352295, -0.31549540162086487, 0.16302534937858582, -0.04735507816076279, 0.41847237944602966, 0.3704778254032135, 0.45365768671035767, -0.2433735877275467, -0.22014330327510834, 0.17461693286895752, 0.5308212041854858, -0.3078048527240753, -0.4339483082294464, 0.7014159560203552, -0.08944456279277802, -0.1106540635228157, 0.922977089881897, 0.030899828299880028, -0.4322669208049774, 1.0816575288772583, 0.6108593344688416, 0.7680633664131165, 0.05620687082409859, 0.12028077244758606, 0.9513492584228516, 0.2747376561164856, -0.0031096525490283966, 0.1596572995185852, 0.12842224538326263, -0.690729022026062, 0.1621888428926468, -0.4742370545864105, -0.03310919180512428, 0.2856633961200714, -0.7663494348526001, 0.47271713614463806, -0.6907833218574524, -0.34058505296707153, 0.07136736810207367, 0.35637983679771423, -1.0687408447265625, 0.12026505917310715, 0.0303123127669096, 0.9474980235099792, -0.7571726441383362, 0.9506997466087341, 0.7558446526527405, -0.5195502638816833, -0.9652152061462402, -0.19496046006679535, 0.04470665752887726, -1.0141143798828125, 0.4052067697048187, 0.4862040877342224, 0.14486585557460785, -0.08505988121032715, -0.7941794395446777, -0.6841381788253784, 1.6702864170074463, 0.2785387933254242, -0.18921852111816406, 0.1729888767004013, -0.07412572205066681, 0.3437991440296173, -0.38375037908554077, 0.5851950645446777, 0.3787218928337097, 0.48181626200675964, 0.3271699547767639, -0.6262069940567017, 0.24076715111732483, -0.29782867431640625, 0.3459826111793518, 0.16629011929035187, -0.7660225033760071, 0.907359778881073, -0.6974946856498718, -0.204739511013031, 0.07679808884859085, 0.8033056855201721, 0.2680857479572296, 0.08312075585126877, 0.5398529171943665, 0.6178886294364929, 0.5510811805725098, -0.3866039514541626, 0.8511360883712769, 0.05771936476230621, 0.6610127091407776, 0.6623661518096924, 0.19178758561611176, 0.6242773532867432, 0.4411814212799072, -0.3779222369194031, 0.5007574558258057, 0.8962202072143555, -0.5053606033325195, 0.3524113595485687, 0.06569245457649231, 0.08718787133693695, 0.07514970749616623, 0.1754327267408371, -0.5153790712356567, 0.3295458257198334, 0.2501453161239624, -0.47589704394340515, -0.13539767265319824, 0.1769476681947708, -0.058826692402362823, -0.39000552892684937, -0.18603108823299408, 0.5071121454238892, -0.049171607941389084, -0.36118054389953613, 0.7283708453178406, 0.14198105037212372, 1.1282306909561157, -0.6285350918769836, 0.11247658729553223, -0.2802523970603943, 0.15239791572093964, -0.3722633123397827, -0.9451732635498047, 0.21715319156646729, -0.22495557367801666, 0.008165783248841763, -0.006187854800373316, 0.9307761192321777, -0.3997548818588257, -0.43401557207107544, 0.2906190752983093, 0.22136807441711426, 0.42019620537757874, 0.19411839544773102, -1.2399959564208984, 0.18502794206142426, 0.030531547963619232, -0.720440149307251, 0.438809335231781, 0.28520312905311584, 0.07878835499286652, 0.6724150776863098, 0.5880889892578125, -0.10637791454792023, 0.14481273293495178, 0.02385299652814865, 0.8038594722747803, -0.5624884963035583, -0.26933690905570984, -0.6835977435112, 0.7291873693466187, -0.24739885330200195, -0.6296218633651733, 0.6513254642486572, 0.5211495757102966, 0.7954334020614624, -0.1056651771068573, 0.6253461241722107, -0.4279574453830719, 0.02011263370513916, -0.2685699760913849, 0.6688928008079529, -0.6669127941131592, -0.04321695491671562, -0.1488417387008667, -0.63908851146698, -0.26780447363853455, 0.7317900657653809, -0.18100649118423462, 0.257874995470047, 0.5241678357124329, 1.018165946006775, -0.1929587721824646, -0.2676389217376709, 0.21914635598659515, 0.1374291181564331, 0.09985076636075974, 0.33256885409355164, 0.355903685092926, -0.8738197088241577, 0.434466689825058, -0.7527589797973633, -0.19840912520885468, -0.27033746242523193, -0.5391579866409302, -1.030389666557312, -0.8726342916488647, -0.6035627126693726, -0.7554482817649841, -0.43638232350349426, 0.9129408597946167, 1.0556223392486572, -0.7547673583030701, -0.0316835418343544, 0.16267360746860504, 0.19351685047149658, -0.4111098647117615, -0.2515406608581543, 0.546353816986084, -0.06856977939605713, -0.7029362320899963, -0.2295934557914734, 0.06995301693677902, 0.4803774356842041, -0.19537921249866486, -0.385989785194397, -0.01851814240217209, -0.18354612588882446, 0.34721457958221436, 0.3245820999145508, -0.7417154908180237, -0.2457508146762848, -0.23834821581840515, -0.3053820729255676, 0.44044503569602966, 0.6941701173782349, -0.4833758473396301, 0.19785866141319275, 0.5645033717155457, 0.17898915708065033, 0.9060460329055786, -0.3462974429130554, -0.025030862540006638, -0.9046381115913391, 0.6603631973266602, -0.08445187658071518, 0.4758382737636566, 0.36862829327583313, -0.3635358512401581, 0.5161716341972351, 0.4280954599380493, -0.443251371383667, -0.9048183560371399, -0.1165846735239029, -1.1824307441711426, -0.17973370850086212, 0.9926379919052124, -0.333998441696167, -0.5271627902984619, 0.3742116689682007, -0.11285904049873352, 0.5575782656669617, -0.11169330775737762, 0.30375903844833374, 0.19016526639461517, -0.1072719395160675, -0.6289947628974915, -0.5298986434936523, 0.3959595263004303, 0.06612652540206909, -0.5316277742385864, -0.3381800651550293, -0.011877104640007019, 0.7437867522239685, 0.1612231284379959, 0.49015671014785767, -0.278820276260376, 0.1658654510974884, 0.2701500356197357, 0.5626169443130493, -0.2976483106613159, -0.051526229828596115, -0.3823269009590149, -0.0824408307671547, -0.07904864847660065, -0.4321225881576538 ]
tiiuae/falcon-rw-1b
tiiuae
"2023-07-12T21:34:11Z"
35,801
69
transformers
[ "transformers", "pytorch", "falcon", "text-generation", "custom_code", "en", "dataset:tiiuae/falcon-refinedweb", "arxiv:2306.01116", "arxiv:2005.14165", "arxiv:2108.12409", "arxiv:2205.14135", "license:apache-2.0", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-04-26T09:25:36Z"
--- datasets: - tiiuae/falcon-refinedweb language: - en inference: false license: apache-2.0 --- # Falcon-RW-1B **Falcon-RW-1B is a 1B parameters causal decoder-only model built by [TII](https://www.tii.ae) and trained on 350B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb). It is made available under the Apache 2.0 license.** See the 📓 [paper on arXiv](https://arxiv.org/abs/2306.01116) for more details. RefinedWeb is a high-quality web dataset built by leveraging stringent filtering and large-scale deduplication. Falcon-RW-1B, trained on RefinedWeb only, matches or outperforms comparable models trained on curated data. ⚠️ Falcon is now available as a core model in the `transformers` library! To use the in-library version, please install the latest version of `transformers` with `pip install git+https://github.com/huggingface/transformers.git`, then simply remove the `trust_remote_code=True` argument from `from_pretrained()`. ⚠️ This model is intended for use as a **research artifact**, to study the influence of training on web data alone. **If you are interested in state-of-the-art models, we recommend using Falcon-[7B](https://huggingface.co/tiiuae/falcon-7b)/[40B](https://huggingface.co/tiiuae/falcon-40b), both trained on >1,000 billion tokens.** ```python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model = "tiiuae/falcon-rw-1b" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, tokenizer=tokenizer, torch_dtype=torch.bfloat16, device_map="auto", ) sequences = pipeline( "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:", max_length=200, do_sample=True, top_k=10, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id, ) for seq in sequences: print(f"Result: {seq['generated_text']}") ``` 💥 **Falcon LLMs require PyTorch 2.0 for use with `transformers`!** # Model Card for Falcon-RW-1B ## Model Details ### Model Description - **Developed by:** [https://www.tii.ae](https://www.tii.ae); - **Model type:** Causal decoder-only; - **Language(s) (NLP):** English; - **License:** Apache 2.0. ### Model Source - **Paper:** [https://arxiv.org/abs/2306.01116](https://arxiv.org/abs/2306.01116). ## Uses ### Direct Use Research on large language models, specifically the influence of adequately filtered and deduplicated web data on the properties of large language models (fairness, safety, limitations, capabilities, etc.). ### Out-of-Scope Use Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful. Broadly speaking, we would recommend Falcon-[7B](https://huggingface.co/tiiuae/falcon-7b)/[40B](https://huggingface.co/tiiuae/falcon-40b) for any use not directly related to research on web data pipelines. ## Bias, Risks, and Limitations Falcon-RW-1B is trained on English data only, and will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online. ### Recommendations We recommend users of Falcon-RW-1B to consider finetuning it for the specific set of tasks of interest, and for guardrails and appropriate precautions to be taken for any production use. ## How to Get Started with the Model ```python from transformers import AutoTokenizer, AutoModelForCausalLM import transformers import torch model = "tiiuae/falcon-rw-1b" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, tokenizer=tokenizer, torch_dtype=torch.bfloat16, device_map="auto", ) sequences = pipeline( "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:", max_length=200, do_sample=True, top_k=10, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id, ) for seq in sequences: print(f"Result: {seq['generated_text']}") ``` ## Training Details ### Training Data Falcon-RW-1B was trained on 350B tokens of [RefinedWeb](https://huggingface.co/datasets/tiiuae/falcon-refinedweb), a high-quality filtered and deduplicated web dataset. The data was tokenized with the GPT-2 tokenizer. ### Training Procedure Falcon-RW-1B was trained on 32 A100 40GB GPUs, using only data parallelism with ZeRO. #### Training Hyperparameters Hyperparameters were adapted from the GPT-3 paper ([Brown et al., 2020](https://arxiv.org/abs/2005.14165)). | **Hyperparameter** | **Value** | **Comment** | |--------------------|------------|-------------------------------------------| | Precision | `bfloat16` | | | Optimizer | AdamW | | | Learning rate | 2e-4 | 500M tokens warm-up, cosine decay to 2e-5 | | Weight decay | 1e-1 | | | Batch size | 512 | 4B tokens ramp-up | #### Speeds, Sizes, Times Training happened in early December 2022 and took about six days. ## Evaluation See the 📓 [paper on arXiv](https://arxiv.org/abs/2306.01116) for in-depth evaluation. ## Technical Specifications ### Model Architecture and Objective Falcon-RW-1B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token). The architecture is adapted from the GPT-3 paper ([Brown et al., 2020](https://arxiv.org/abs/2005.14165)), but uses ALiBi ([Ofir et al., 2021](https://arxiv.org/abs/2108.12409)) and FlashAttention ([Dao et al., 2022](https://arxiv.org/abs/2205.14135)). | **Hyperparameter** | **Value** | **Comment** | |--------------------|-----------|----------------------------------------| | Layers | 24 | | | `d_model` | 2048 | | | `head_dim` | 64 | Reduced to optimise for FlashAttention | | Vocabulary | 50304 | | | Sequence length | 2048 | | ### Compute Infrastructure #### Hardware Falcon-RW-1B was trained on AWS SageMaker, on 32 A100 40GB GPUs in P4d instances. #### Software Falcon-RW-1B was trained a custom distributed training codebase, Gigatron. It uses a 3D parallelism approach combined with ZeRO and high-performance Triton kernels (FlashAttention, etc.) ## Citation ``` @article{refinedweb, title={The {R}efined{W}eb dataset for {F}alcon {LLM}: outperforming curated corpora with web data, and web data only}, author={Guilherme Penedo and Quentin Malartic and Daniel Hesslow and Ruxandra Cojocaru and Alessandro Cappelli and Hamza Alobeidli and Baptiste Pannier and Ebtesam Almazrouei and Julien Launay}, journal={arXiv preprint arXiv:2306.01116}, eprint={2306.01116}, eprinttype = {arXiv}, url={https://arxiv.org/abs/2306.01116}, year={2023} } ``` ## Contact falconllm@tii.ae
[ -0.5793128609657288, -0.9588331580162048, -0.011679713614284992, 0.25679394602775574, -0.15441246330738068, -0.10151538997888565, -0.060500502586364746, -0.5802642107009888, 0.18797679245471954, 0.2036745548248291, -0.6608684062957764, -0.400886595249176, -0.7743269205093384, 0.15578873455524445, -0.4389522075653076, 1.1158018112182617, 0.006506458856165409, -0.11174493283033371, 0.09120525419712067, -0.015877030789852142, -0.0351940393447876, -0.45046496391296387, -0.9623168706893921, -0.12597915530204773, 0.5598983764648438, 0.3215271532535553, 0.6308565139770508, 1.0851786136627197, 0.7320748567581177, 0.28868916630744934, -0.07120876759290695, 0.17577841877937317, -0.5139694809913635, -0.24106399714946747, -0.08677889406681061, -0.1928795725107193, -0.2436714917421341, 0.06582562625408173, 0.5632388591766357, 0.6050741076469421, -0.0625251978635788, 0.3966359794139862, -0.018518565222620964, 0.541383683681488, -0.5186214447021484, 0.46368667483329773, -0.5546225905418396, 0.1825195550918579, -0.23154963552951813, -0.04602838680148125, -0.39038142561912537, 0.021937459707260132, -0.17494343221187592, -0.9829423427581787, 0.4142473340034485, 0.2683039903640747, 1.3812655210494995, 0.34605491161346436, -0.4392090439796448, -0.08929037302732468, -0.5017866492271423, 0.7450814247131348, -0.7234892845153809, 0.5135599970817566, 0.31116050481796265, 0.22852931916713715, -0.22584253549575806, -1.0575885772705078, -0.544200599193573, -0.10546600073575974, -0.03270649537444115, 0.36170876026153564, -0.32808351516723633, 0.012406077235937119, 0.5858743786811829, 0.025337891653180122, -0.6356908082962036, 0.18442046642303467, -0.4327695965766907, -0.26698797941207886, 0.5737659931182861, 0.12723587453365326, 0.11807195842266083, -0.23481419682502747, -0.4630720913410187, -0.37791043519973755, -0.34478336572647095, 0.29135167598724365, 0.4618912935256958, 0.34357473254203796, -0.25414252281188965, 0.42831575870513916, -0.28223735094070435, 0.6223950982093811, 0.347207635641098, -0.050448331981897354, 0.38616204261779785, -0.26755309104919434, -0.32919245958328247, -0.18521301448345184, 1.0788111686706543, 0.18078725039958954, 0.20339924097061157, -0.17163771390914917, -0.10179110616445541, -0.10043524950742722, 0.13994675874710083, -1.0618102550506592, 0.12452895939350128, 0.2445916086435318, -0.4951762855052948, -0.2657487690448761, 0.44396471977233887, -0.7622966170310974, 0.04034029692411423, -0.09227573871612549, 0.1437011957168579, -0.32638388872146606, -0.4561556279659271, 0.22171787917613983, -0.2789672315120697, 0.26930931210517883, -0.16052432358264923, -0.957539439201355, 0.29810938239097595, 0.7438690066337585, 0.8644855618476868, 0.040479835122823715, -0.7828671336174011, -0.721619188785553, 0.11274021863937378, -0.2921367287635803, 0.5311432480812073, -0.2888259291648865, -0.3667006194591522, -0.07666534930467606, 0.3273044526576996, -0.23259519040584564, -0.10545144230127335, 0.7553524971008301, -0.484872043132782, 0.09805311262607574, -0.43570300936698914, -0.5391318202018738, -0.36921676993370056, 0.05517799034714699, -0.6068117022514343, 0.941498875617981, 0.03980175405740738, -1.1972386837005615, 0.35598766803741455, -0.7120203971862793, -0.4700113534927368, -0.16239690780639648, -0.041625767946243286, -0.5386733412742615, -0.1775376945734024, 0.4180104434490204, 0.6559828519821167, -0.4284100830554962, 0.4352865219116211, -0.57343590259552, -0.6069501638412476, -0.07713640481233597, -0.30843961238861084, 0.8371829986572266, 0.5662610530853271, -0.6201441884040833, -0.009574002586305141, -0.680004358291626, -0.10862252861261368, 0.41941171884536743, -0.06422603875398636, 0.1478247493505478, -0.11160799860954285, 0.27224069833755493, 0.311899870634079, 0.14450909197330475, -0.5721637010574341, 0.1169457659125328, -0.4991157352924347, 0.5738611221313477, 0.4900406002998352, 0.003077226225286722, 0.13043959438800812, -0.4042247533798218, 0.4920603036880493, 0.3743921220302582, 0.36264804005622864, -0.09210391342639923, -0.5282781720161438, -0.9721904397010803, -0.19929566979408264, 0.15364357829093933, 0.4769412875175476, -0.5869054794311523, 0.4435557425022125, -0.2942947745323181, -0.6868088841438293, -0.29817038774490356, -0.18760915100574493, 0.485460489988327, 0.7630753517150879, 0.5465013384819031, 0.14351113140583038, -0.766843855381012, -0.9597419500350952, -0.1053687259554863, -0.3300652801990509, 0.2923080325126648, 0.18459747731685638, 0.7541805505752563, -0.45310842990875244, 0.8590226173400879, -0.4631630480289459, -0.1570013165473938, -0.08316735178232193, 0.3666922152042389, 0.2819092273712158, 0.5398247241973877, 0.5841577053070068, -0.5461567044258118, -0.2716926634311676, 0.0144808953627944, -0.9614253640174866, 0.06432899087667465, -0.12911094725131989, -0.05391699820756912, 0.49417591094970703, 0.5794722437858582, -0.6642388701438904, 0.20702292025089264, 0.38108131289482117, -0.29770442843437195, 0.4370740056037903, -0.10140468180179596, 0.10169816017150879, -1.1119115352630615, 0.4098860025405884, 0.25598374009132385, 0.12041687965393066, -0.41394031047821045, 0.2212984710931778, 0.02417755499482155, -0.10745508968830109, -0.5801736116409302, 0.7564442753791809, -0.43549981713294983, -0.05743418261408806, -0.1272699534893036, -0.20079445838928223, -0.07278952747583389, 0.802591860294342, 0.1371527910232544, 0.9613524079322815, 0.6202380657196045, -0.5163790583610535, -0.030618350952863693, 0.35843297839164734, -0.0410628579556942, 0.10304073989391327, -0.8387687802314758, 0.08543968945741653, -0.1283458173274994, 0.3756638169288635, -0.7719684839248657, -0.2137073427438736, 0.3536606729030609, -0.5949194431304932, 0.3067179322242737, -0.17485877871513367, -0.44240397214889526, -0.6701745986938477, -0.16514097154140472, 0.20359939336776733, 0.41329556703567505, -0.5919428467750549, 0.32701167464256287, 0.26251524686813354, 0.1056586429476738, -1.0016263723373413, -0.9041880965232849, -0.0081679318100214, -0.19417187571525574, -0.7322993874549866, 0.3512265384197235, 0.03771805390715599, 0.07859805226325989, 0.027398573234677315, 0.05863700807094574, 0.03248095139861107, 0.14930017292499542, 0.41507092118263245, 0.16278697550296783, -0.1996503472328186, -0.10644407570362091, 0.061374764889478683, -0.2795659601688385, 0.13687747716903687, -0.4894056022167206, 0.42481184005737305, -0.5263935923576355, -0.2904886305332184, -0.5631563067436218, 0.30464285612106323, 0.6037927269935608, -0.20653434097766876, 0.7565227150917053, 1.1022136211395264, -0.4022829830646515, 0.12052562832832336, -0.5187972784042358, -0.09282509237527847, -0.4945515990257263, 0.5847550630569458, -0.4613327383995056, -0.7604076862335205, 0.6412413716316223, 0.17850543558597565, 0.06330978870391846, 0.9546365737915039, 0.22111459076404572, 0.06388118118047714, 1.181071400642395, 0.3857947885990143, -0.20921801030635834, 0.40760380029678345, -0.7733383774757385, -0.11457633227109909, -0.8101994395256042, -0.267641544342041, -0.6667571067810059, -0.14543934166431427, -0.7545060515403748, -0.11467088758945465, 0.11428830027580261, 0.24951620399951935, -0.9073837399482727, 0.36958980560302734, -0.5305594205856323, 0.19954106211662292, 0.5314714908599854, 0.038731347769498825, -0.09081079810857773, 0.0654754564166069, -0.33005958795547485, 0.17032542824745178, -0.8596215844154358, -0.3489634096622467, 1.1743439435958862, 0.4819674789905548, 0.5788083076477051, -0.19181978702545166, 0.7501420974731445, 0.06856409460306168, 0.056471649557352066, -0.5895370244979858, 0.4431200325489044, -0.15899217128753662, -0.5285437107086182, -0.17132848501205444, -0.5609596967697144, -0.9879995584487915, 0.09716042876243591, -0.15620659291744232, -0.6181357502937317, 0.0758933275938034, -0.08460310846567154, -0.14180558919906616, 0.3897068500518799, -0.8297582864761353, 0.9040594696998596, -0.21899612247943878, -0.5000394582748413, 0.010882443748414516, -0.6970462799072266, 0.3682693839073181, -0.044841378927230835, 0.21597911417484283, 0.22111336886882782, -0.04002377390861511, 1.0878623723983765, -0.6008925437927246, 0.6708469986915588, -0.44155600666999817, 0.28642019629478455, 0.30201053619384766, -0.25844505429267883, 0.9625989198684692, 0.10944019258022308, -0.25515908002853394, 0.5863751769065857, 0.10705970227718353, -0.472321480512619, -0.39033907651901245, 0.764603316783905, -1.2409058809280396, -0.6353391408920288, -0.6965124607086182, -0.4944721460342407, -0.21207238733768463, 0.2784617841243744, 0.4862865209579468, 0.3733423948287964, 0.01951541379094124, 0.2022293657064438, 0.29668304324150085, -0.24381962418556213, 0.7404782772064209, 0.4857496917247772, -0.18114228546619415, -0.554390013217926, 0.8684592247009277, 0.14911821484565735, -0.021511850878596306, 0.305806428194046, 0.22058068215847015, -0.588398814201355, -0.5351715683937073, -0.5383672118186951, 0.405001163482666, -0.6987212300300598, -0.2896939814090729, -1.0489988327026367, -0.5117532014846802, -0.4424420893192291, -0.15247023105621338, -0.34534522891044617, -0.41119885444641113, -0.6678701639175415, -0.14014755189418793, 0.5521869659423828, 0.566805362701416, -0.07288607954978943, 0.3058784306049347, -0.6992478370666504, 0.16878032684326172, 0.07619552314281464, 0.281049907207489, 0.20790226757526398, -0.7156282663345337, -0.3253147006034851, 0.3726164996623993, -0.30706971883773804, -0.44070589542388916, 0.39528098702430725, 0.18313688039779663, 0.6368337869644165, 0.4561711549758911, -0.11364631354808807, 0.9870602488517761, -0.25753718614578247, 0.8150761723518372, 0.2756190299987793, -0.8268191814422607, 0.39756685495376587, -0.5666439533233643, 0.27609118819236755, 0.4894911050796509, 0.5294696092605591, -0.47805482149124146, -0.4092802107334137, -0.8607657551765442, -0.6123334765434265, 1.048788070678711, 0.16515497863292694, -0.1288282573223114, -0.1941523253917694, 0.43137073516845703, -0.027973543852567673, -0.09341848641633987, -0.5884960889816284, -0.4092879891395569, -0.6498150825500488, -0.16091392934322357, -0.12628190219402313, 0.002793721854686737, 0.17832855880260468, -0.49205148220062256, 0.9311551451683044, -0.1597459614276886, 0.5847413539886475, 0.17173175513744354, -0.1448904275894165, -0.13496220111846924, -0.11135885119438171, 0.6884269118309021, 0.5412185192108154, -0.29530832171440125, -0.06845574080944061, 0.1325673758983612, -0.713206946849823, 0.05838121473789215, 0.4373628497123718, -0.22402049601078033, -0.20401355624198914, 0.441023588180542, 1.0253523588180542, 0.11334666609764099, -0.2473742514848709, 0.4907000958919525, -0.11045315861701965, -0.38664448261260986, -0.14415819942951202, 0.10034509748220444, 0.08876682817935944, 0.1815907061100006, 0.4178791642189026, 0.06313260644674301, 0.08149579912424088, -0.2238389551639557, 0.3281869888305664, 0.3372582793235779, -0.23756679892539978, -0.1869736909866333, 1.0308525562286377, 0.16346530616283417, -0.17834024131298065, 0.6366608738899231, -0.351525217294693, -0.41794589161872864, 0.9770721793174744, 0.7993192672729492, 0.9861866235733032, 0.2421322911977768, 0.26655200123786926, 0.874911367893219, 0.28685399889945984, -0.21490462124347687, 0.16203203797340393, 0.18523670732975006, -0.47918301820755005, -0.19164858758449554, -0.7990864515304565, -0.2908309996128082, 0.20326480269432068, -0.6729754209518433, 0.45551449060440063, -0.5726299285888672, -0.17384545505046844, 0.09268663823604584, 0.4437766969203949, -0.867790937423706, 0.3056808114051819, -0.107901930809021, 0.990684449672699, -0.6756120920181274, 0.8852347135543823, 0.6423555016517639, -0.9322227835655212, -1.058297872543335, 0.0028269190806895494, -0.14776119589805603, -0.9136321544647217, 0.8538487553596497, 0.3572295606136322, -0.05902099609375, 0.4235900938510895, -0.36449429392814636, -0.9941412806510925, 1.2130277156829834, 0.3182259202003479, -0.665501058101654, 0.00937839224934578, 0.34801194071769714, 0.49870893359184265, -0.20018881559371948, 0.7125480771064758, 0.30768921971321106, 0.5890862345695496, 0.23441606760025024, -0.6550737023353577, 0.22024257481098175, -0.45528873801231384, 0.07908370345830917, 0.1020888090133667, -1.0122408866882324, 0.9041315317153931, -0.27108216285705566, -0.22651608288288116, -0.16962887346744537, 0.8401536345481873, 0.29335612058639526, 0.1664174199104309, 0.37861528992652893, 0.646006166934967, 0.7745418548583984, -0.08104483783245087, 1.040359616279602, -0.6147403120994568, 0.6741121411323547, 0.7952905893325806, -0.011812826618552208, 0.7133269309997559, 0.3574771583080292, -0.15697628259658813, 0.3765636682510376, 0.8123719096183777, -0.23387014865875244, 0.37547796964645386, -0.0459146648645401, 0.24934075772762299, -0.1289713829755783, 0.005773921962827444, -0.6806883215904236, 0.4635179340839386, 0.08413767069578171, -0.201689675450325, -0.15301965177059174, 0.07710380107164383, 0.3144546151161194, -0.33382853865623474, -0.1007714793086052, 0.4915236830711365, -0.045478250831365585, -0.8615878820419312, 1.038342833518982, 0.27471888065338135, 0.8521628379821777, -0.721907377243042, 0.15325702726840973, -0.4547283351421356, 0.11741127073764801, -0.29595792293548584, -0.60529625415802, 0.3743375241756439, 0.12401926517486572, -0.19953784346580505, -0.09002070873975754, 0.4639940559864044, -0.12459546327590942, -0.833263635635376, 0.3373925983905792, 0.24893078207969666, 0.11773982644081116, 0.0004900143831036985, -0.9231436252593994, 0.22752639651298523, -0.22630862891674042, -0.37920963764190674, 0.22246447205543518, 0.16607293486595154, 0.021845903247594833, 0.7541519999504089, 0.764397919178009, -0.11310107260942459, 0.044119950383901596, 0.049283917993307114, 0.6969617009162903, -0.8344427347183228, -0.4437588155269623, -0.6390553116798401, 0.33536073565483093, 0.052840348333120346, -0.5391193628311157, 0.7271673679351807, 0.8154524564743042, 0.8898867964744568, -0.034161750227212906, 0.7933092713356018, -0.1370360106229782, 0.2012982964515686, -0.45008131861686707, 0.8250367045402527, -0.6983345746994019, 0.059709157794713974, -0.3649597465991974, -0.6363891363143921, -0.1455686241388321, 0.556675910949707, -0.02864144556224346, 0.22462503612041473, 0.9048065543174744, 0.9709448218345642, -0.1603541225194931, 0.32216712832450867, 0.08023962378501892, 0.2819855213165283, 0.4099811911582947, 0.7090609073638916, 0.589155912399292, -0.9297441840171814, 0.6741060614585876, -0.33091703057289124, -0.15689001977443695, -0.1813662201166153, -0.8409397602081299, -0.9283921718597412, -0.7032562494277954, -0.36665982007980347, -0.2788729667663574, 0.12356146425008774, 0.9268172979354858, 0.7503963112831116, -0.7667261362075806, -0.27603328227996826, -0.4997991621494293, -0.11759333312511444, -0.5122592449188232, -0.21654997766017914, 0.5805853605270386, -0.5125265717506409, -0.686098575592041, 0.12157618999481201, -0.0593101792037487, 0.04928818717598915, -0.20255422592163086, -0.3155365586280823, -0.4862983524799347, 0.0058147902600467205, 0.4229694604873657, 0.3864363729953766, -0.7688058614730835, -0.39317232370376587, 0.24762144684791565, -0.25162187218666077, -0.03750011324882507, 0.3626190721988678, -0.6301692128181458, 0.19768905639648438, 0.32895970344543457, 0.7497580051422119, 0.9381832480430603, -0.09147744625806808, 0.1369311809539795, -0.4290676414966583, 0.36210811138153076, -0.14456862211227417, 0.4554899334907532, 0.08417334407567978, -0.4589700400829315, 0.6197971105575562, 0.5258544087409973, -0.4928593933582306, -0.6836592555046082, -0.14881502091884613, -1.1666290760040283, -0.24940285086631775, 1.4186087846755981, -0.1840742528438568, -0.25999435782432556, 0.13292382657527924, -0.09836532920598984, 0.6646518111228943, -0.3882795572280884, 0.5935535430908203, 0.6058450937271118, 0.04591080918908119, 0.025906627997756004, -0.40509653091430664, 0.3636138439178467, 0.20320922136306763, -0.9257739782333374, -0.08545992523431778, 0.2776004672050476, 0.3922465741634369, -0.09797689318656921, 0.37094390392303467, 0.06181139498949051, 0.20156101882457733, 0.28164151310920715, -0.028225552290678024, -0.7704660892486572, -0.3169524371623993, -0.2149849534034729, 0.13637007772922516, -0.2742816209793091, -0.30442529916763306 ]
Helsinki-NLP/opus-mt-ur-en
Helsinki-NLP
"2023-08-16T12:08:24Z"
35,762
2
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "ur", "en", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- language: - ur - en tags: - translation license: apache-2.0 --- ### urd-eng * source group: Urdu * target group: English * OPUS readme: [urd-eng](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/urd-eng/README.md) * model: transformer-align * source language(s): urd * target language(s): eng * 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/urd-eng/opus-2020-06-17.zip) * test set translations: [opus-2020-06-17.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/urd-eng/opus-2020-06-17.test.txt) * test set scores: [opus-2020-06-17.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/urd-eng/opus-2020-06-17.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | Tatoeba-test.urd.eng | 23.2 | 0.435 | ### System Info: - hf_name: urd-eng - source_languages: urd - target_languages: eng - opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/urd-eng/README.md - original_repo: Tatoeba-Challenge - tags: ['translation'] - languages: ['ur', 'en'] - src_constituents: {'urd'} - tgt_constituents: {'eng'} - src_multilingual: False - tgt_multilingual: False - prepro: normalization + SentencePiece (spm32k,spm32k) - url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/urd-eng/opus-2020-06-17.zip - url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/urd-eng/opus-2020-06-17.test.txt - src_alpha3: urd - tgt_alpha3: eng - short_pair: ur-en - chrF2_score: 0.435 - bleu: 23.2 - brevity_penalty: 0.975 - ref_len: 12029.0 - src_name: Urdu - tgt_name: English - train_date: 2020-06-17 - src_alpha2: ur - tgt_alpha2: en - prefer_old: False - long_pair: urd-eng - helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535 - transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b - port_machine: brutasse - port_time: 2020-08-21-14:41
[ -0.38222751021385193, -0.6347955465316772, 0.28099673986434937, 0.5232272744178772, -0.5084999799728394, -0.19713135063648224, -0.3427286744117737, -0.38439804315567017, 0.22881664335727692, 0.3093372881412506, -0.6625707745552063, -0.8949489593505859, -0.620957612991333, 0.4060933291912079, -0.04504655674099922, 1.0554662942886353, -0.13452854752540588, 0.15372727811336517, 0.4862973988056183, -0.5675891637802124, -0.47234898805618286, -0.2319689691066742, -0.6170473098754883, -0.15949948132038116, 0.4563656151294708, 0.39367103576660156, 0.5379697680473328, 0.5214110612869263, 0.6927164196968079, 0.3334070146083832, -0.3579973876476288, 0.25468286871910095, -0.08097629249095917, -0.03268897160887718, -0.09838583320379257, -0.4001290500164032, -0.5266520380973816, -0.2908196449279785, 0.9868760108947754, 0.57166987657547, 0.05433523282408714, 0.5259056687355042, -0.14010295271873474, 0.8087015748023987, -0.26692020893096924, 0.04505402222275734, -0.45734912157058716, -0.10920609533786774, -0.5156621932983398, -0.28947871923446655, -0.6041162014007568, -0.3534057140350342, 0.050766997039318085, -0.5331265926361084, 0.03388187289237976, 0.12744353711605072, 1.7577667236328125, 0.1401253491640091, -0.4977271556854248, -0.09979814291000366, -0.4564729928970337, 0.913585364818573, -0.8755596280097961, 0.5073662996292114, 0.46443551778793335, -0.06717384606599808, -0.06761547923088074, -0.4311164319515228, -0.40964916348457336, 0.15549536049365997, -0.3391687870025635, 0.2315085381269455, -0.0745067223906517, -0.17876148223876953, 0.20367033779621124, 0.6032235026359558, -0.7970030903816223, 0.015553225763142109, -0.414939284324646, -0.18330594897270203, 0.5635358095169067, 0.09418740123510361, 0.4412836730480194, -0.6898937821388245, -0.47737061977386475, -0.5257790684700012, -0.44705796241760254, 0.21586555242538452, 0.488569974899292, 0.43485215306282043, -0.6223500967025757, 0.7371783256530762, -0.14096945524215698, 0.592077910900116, 0.16184459626674652, -0.1859131157398224, 0.7158279418945312, -0.7264674305915833, -0.18388418853282928, -0.20937341451644897, 1.3603650331497192, 0.20197850465774536, 0.028189580887556076, 0.1290583461523056, -0.14563925564289093, -0.24272656440734863, -0.08272533863782883, -0.903721272945404, 0.1527143120765686, 0.2863296866416931, -0.38704657554626465, -0.18865132331848145, 0.07095147669315338, -0.9121686816215515, 0.08208268135786057, 0.0983923077583313, 0.4928378462791443, -0.8824210166931152, -0.23627981543540955, 0.32599031925201416, 0.04506339505314827, 0.3761521875858307, -0.06603793054819107, -0.6076822280883789, 0.15922823548316956, 0.28625208139419556, 1.0045652389526367, -0.13940902054309845, -0.43435806035995483, -0.2034452259540558, 0.13605642318725586, -0.12557865679264069, 0.762607216835022, -0.2434951812028885, -0.41511619091033936, -0.15552450716495514, 0.39248692989349365, -0.1963740736246109, -0.17668789625167847, 1.015081763267517, -0.3350691497325897, 0.5348467826843262, -0.33893731236457825, -0.44146639108657837, -0.44756338000297546, 0.28893521428108215, -0.7821020483970642, 1.3136035203933716, 0.24678829312324524, -1.0181303024291992, 0.3958507180213928, -0.8360168933868408, -0.3463883101940155, -0.09810639172792435, 0.07756511121988297, -0.8960579037666321, -0.047619983553886414, 0.3483527600765228, 0.35632961988449097, -0.43735137581825256, 0.5361053347587585, 0.00321378605440259, -0.2227642834186554, -0.01288753841072321, -0.34862303733825684, 1.4018124341964722, 0.22791790962219238, -0.4900828003883362, 0.11482229828834534, -0.8091731071472168, 0.1496596783399582, 0.27599990367889404, -0.4996631443500519, -0.1844879537820816, -0.1329372227191925, 0.3019239008426666, 0.0792846754193306, 0.24458947777748108, -0.6062800288200378, 0.39452967047691345, -0.696336030960083, 0.14171816408634186, 0.8840727210044861, 0.14929214119911194, 0.24448686838150024, -0.3799193203449249, 0.4783723056316376, 0.2666001617908478, 0.09226015210151672, 0.15754006803035736, -0.5509752035140991, -0.7239945530891418, -0.3563544750213623, 0.6858342289924622, 0.732167661190033, -0.6602039337158203, 0.7605791091918945, -0.7615965604782104, -0.8316815495491028, -0.7834340333938599, -0.0662553459405899, 0.5687873959541321, 0.21443387866020203, 0.5675003528594971, -0.26301658153533936, -0.621378481388092, -1.128373146057129, -0.2774844467639923, -0.29609936475753784, 0.07697290927171707, 0.17987024784088135, 0.8091405034065247, -0.05961133912205696, 0.6503219604492188, -0.44160062074661255, -0.6246612071990967, -0.2685992121696472, 0.2588927149772644, 0.4237547516822815, 0.7520052790641785, 0.7074437141418457, -0.9730928540229797, -0.7278845906257629, 0.13584476709365845, -0.6843274831771851, -0.26359012722969055, -0.07782483100891113, -0.2530854642391205, 0.4726093113422394, -0.001546206185594201, -0.596169650554657, 0.38254278898239136, 0.6223080158233643, -0.896212100982666, 0.5088849067687988, -0.10913573205471039, 0.5137876272201538, -1.662412166595459, 0.1544189751148224, -0.19643360376358032, -0.07180888205766678, -0.31390079855918884, 0.056094709783792496, 0.15494632720947266, 0.1906479448080063, -0.5817682147026062, 0.7965208292007446, -0.7405214309692383, -0.009007742628455162, 0.39515429735183716, 0.15008723735809326, -0.016228454187512398, 0.843576967716217, -0.2042483389377594, 1.0846840143203735, 0.5491080284118652, -0.3726915121078491, 0.046722762286663055, 0.5641376376152039, -0.42914536595344543, 0.3189522325992584, -0.6924049258232117, -0.23025953769683838, 0.34187227487564087, -0.06221427395939827, -0.897905707359314, -0.22668291628360748, 0.24258530139923096, -0.7722613215446472, 0.30424681305885315, -0.1212141364812851, -0.6893160939216614, -0.17494797706604004, -0.4818097949028015, 0.705379843711853, 0.5048624277114868, -0.19914859533309937, 0.9118330478668213, 0.10707986354827881, -0.08005160093307495, -0.7247606515884399, -0.8999739289283752, -0.03326674923300743, -0.2000751942396164, -0.7101353406906128, 0.4486341178417206, -0.16729912161827087, -0.019671060144901276, 0.21162623167037964, -0.03190537542104721, -0.1311572790145874, 0.05854922905564308, 0.18323630094528198, 0.2819274067878723, -0.34645959734916687, 0.056001778692007065, 0.029422594234347343, -0.06660627573728561, -0.25144556164741516, -0.12683285772800446, 0.8713967204093933, -0.41865065693855286, -0.3756351172924042, -0.8435750603675842, 0.2177058905363083, 0.5934939980506897, -0.43820124864578247, 1.213912010192871, 0.7692881226539612, -0.26032522320747375, 0.2815156877040863, -0.6626044511795044, 0.10936905443668365, -0.4299377501010895, 0.37949338555336, -0.6052955389022827, -0.6219229102134705, 0.9316228628158569, 0.22011590003967285, 0.1595611721277237, 1.036240816116333, 0.7209149599075317, 0.17150701582431793, 0.8003982901573181, 0.4023643732070923, 0.07294163107872009, 0.5141255855560303, -0.6128638982772827, -0.007394843269139528, -1.0121997594833374, -0.3584885597229004, -0.8149459362030029, -0.20524844527244568, -0.9790986776351929, -0.24158328771591187, 0.2941156029701233, 0.01942860707640648, -0.2109094113111496, 0.7322666049003601, -0.5841235518455505, 0.3369287848472595, 0.5953072905540466, 0.20222312211990356, 0.3439497649669647, -0.05878503620624542, -0.473324179649353, -0.15481345355510712, -0.4083786606788635, -0.6164721846580505, 1.3392413854599, 0.23905564844608307, 0.2724458873271942, 0.4514044523239136, 0.7272976040840149, 0.18884634971618652, 0.1495550572872162, -0.6421723961830139, 0.6500495672225952, -0.10704309493303299, -0.8654469847679138, -0.40740278363227844, -0.36815112829208374, -0.9388628602027893, 0.23250344395637512, -0.17604167759418488, -0.7266935706138611, 0.16286535561084747, -0.26748713850975037, -0.1269344538450241, 0.7351954579353333, -0.8135783672332764, 0.9344308376312256, 0.03987651690840721, -0.3341675102710724, 0.15473392605781555, -0.6453793048858643, 0.227499857544899, -0.07957080006599426, 0.1818775087594986, -0.16337022185325623, -0.14268705248832703, 1.025251030921936, -0.3276000916957855, 0.5979182124137878, -0.03939289227128029, -0.0905195102095604, 0.14011013507843018, 0.15806272625923157, 0.5013661980628967, -0.019877808168530464, -0.32122480869293213, 0.3168041408061981, 0.06396779417991638, -0.7424018979072571, -0.2772030234336853, 0.6249122619628906, -0.9318878650665283, -0.5837763547897339, -0.6955063343048096, -0.7588953375816345, -0.029880980029702187, 0.4970487058162689, 0.5447217226028442, 0.66602623462677, -0.018956853076815605, 0.6384811401367188, 0.6655431389808655, -0.3278784155845642, 0.562670886516571, 0.5445812940597534, -0.04315849766135216, -0.6799554824829102, 0.6129236817359924, 0.2209530472755432, 0.2521689832210541, 0.5341714024543762, 0.01532173901796341, -0.27332764863967896, -0.9345775842666626, -0.6079024076461792, 0.4481605291366577, -0.4344226121902466, -0.45015111565589905, -0.7014177441596985, -0.1192774623632431, -0.5022073984146118, 0.11209965497255325, -0.340039998292923, -0.42359015345573425, -0.10685501247644424, -0.28160446882247925, 0.4736788272857666, 0.4761790633201599, 0.0010570907033979893, 0.2710585296154022, -0.9266557097434998, 0.2894662618637085, -0.14510338008403778, 0.4738270342350006, -0.3269321322441101, -0.9507015943527222, -0.3168749213218689, 0.010209158062934875, -0.3954590857028961, -1.198206901550293, 0.5910865664482117, 0.0090572414919734, 0.21452726423740387, 0.1544804871082306, 0.16534774005413055, 0.7289586067199707, -0.3999039828777313, 1.0652998685836792, -0.13385659456253052, -0.9406773447990417, 0.6898555159568787, -0.45168793201446533, 0.4919285774230957, 0.7566127777099609, 0.3528726398944855, -0.3695462644100189, -0.716903567314148, -0.7798417210578918, -0.9855304956436157, 0.8884634971618652, 0.6218916773796082, -0.1428806483745575, -0.09170550853013992, 0.08113913983106613, -0.047602035105228424, -0.27082502841949463, -1.2560325860977173, -0.4832894802093506, 0.1697671264410019, -0.5894222259521484, 0.2167726755142212, -0.5343009829521179, -0.15667922794818878, -0.33011022210121155, 1.1860014200210571, 0.2148328423500061, 0.16939140856266022, 0.5737599730491638, -0.2103971242904663, 0.0069818440824747086, 0.48981672525405884, 0.8118366599082947, 0.47284165024757385, -0.41422298550605774, -0.20373240113258362, 0.3987105190753937, -0.6666532754898071, 0.1835017055273056, 0.027370503172278404, -0.4470495283603668, 0.22073934972286224, 0.6110506653785706, 0.8943601250648499, 0.23045936226844788, -0.5668214559555054, 0.5296096801757812, -0.1052587702870369, -0.42234623432159424, -0.4825734496116638, -0.3693113923072815, 0.1393195539712906, 0.18584027886390686, 0.4597269892692566, 0.021065933629870415, -0.001769435708411038, -0.23951660096645355, 0.05567621439695358, 0.153712198138237, -0.2519054412841797, -0.4177747964859009, 0.5717390179634094, 0.008317271247506142, -0.44650664925575256, 0.4943486452102661, -0.36722132563591003, -0.4979463517665863, 0.6468183994293213, 0.37478283047676086, 1.1504511833190918, -0.2433597892522812, -0.07421673834323883, 0.8000385165214539, 0.5354219079017639, 0.03682573139667511, 0.48386362195014954, 0.2176057994365692, -0.6241780519485474, -0.4178214371204376, -0.9771724939346313, 0.14531779289245605, 0.15412522852420807, -0.880198061466217, 0.36854928731918335, -0.07347641885280609, -0.3347182273864746, -0.08501338958740234, 0.4313529431819916, -0.5710322856903076, 0.05988449230790138, -0.47736766934394836, 1.0061619281768799, -0.9755726456642151, 0.8222042918205261, 0.7903485298156738, -0.8596823811531067, -1.2350128889083862, -0.04072093218564987, -0.25212720036506653, -0.6042723655700684, 0.7405513525009155, -0.008065356872975826, 0.023696886375546455, -0.022932523861527443, -0.2665530741214752, -0.8340422511100769, 1.2551835775375366, 0.39384156465530396, -0.32171615958213806, -0.19160032272338867, 0.0237765870988369, 0.5403217673301697, -0.019053205847740173, 0.3294803500175476, 0.38862428069114685, 0.9108108878135681, -0.23312363028526306, -1.137259840965271, 0.20394405722618103, -0.5873656868934631, -0.0638020783662796, 0.4420752227306366, -0.8675605058670044, 0.8973870277404785, 0.02232428453862667, -0.359667032957077, 0.20546594262123108, 0.6679822206497192, 0.3268122673034668, 0.015782924368977547, 0.46788889169692993, 1.0574991703033447, 0.41206932067871094, -0.546777606010437, 1.1005158424377441, -0.3232259452342987, 0.6294934749603271, 0.9699298739433289, 0.19976334273815155, 0.8807582855224609, 0.6054774522781372, -0.3389819264411926, 0.7796396017074585, 0.7255528569221497, -0.1490795761346817, 0.3722463548183441, -0.2135961502790451, -0.057437025010585785, -0.24370455741882324, -0.3042784333229065, -0.5485572814941406, 0.5361813902854919, 0.022487355396151543, -0.2050199955701828, -0.04461410641670227, -0.18237946927547455, 0.3305610120296478, 0.2572357654571533, -0.03433457016944885, 0.7481917142868042, -0.2605583965778351, -0.6652267575263977, 0.7975083589553833, 0.01517434325069189, 0.7354866862297058, -0.6831323504447937, 0.03778929263353348, -0.2610209286212921, 0.17817163467407227, -0.10992150008678436, -0.8228544592857361, 0.4270089864730835, 0.16027483344078064, -0.3649923801422119, -0.2545028626918793, 0.09990231692790985, -0.5689573884010315, -0.8722630143165588, 0.4765528738498688, 0.45463478565216064, 0.2166287899017334, 0.294961154460907, -0.7650918364524841, 0.08581162244081497, 0.2612926959991455, -0.7455621957778931, 0.06075050309300423, 0.771626889705658, 0.02059999667108059, 0.7777649760246277, 0.5121018290519714, 0.31705954670906067, 0.09842435270547867, -0.0025120489299297333, 0.6700655817985535, -0.9586358070373535, -0.34638088941574097, -0.9288579821586609, 0.5492886304855347, -0.12252366542816162, -0.6188469529151917, 0.7390866279602051, 0.8411158919334412, 0.9569829702377319, -0.07324729114770889, 0.3239580988883972, -0.3338514566421509, 0.5640324950218201, -0.7327793836593628, 0.8129260540008545, -0.9950081706047058, 0.07169579714536667, -0.21878831088542938, -0.8267728686332703, -0.309684693813324, 0.3615504503250122, -0.2300020456314087, 0.05985736474394798, 1.1770859956741333, 0.8911168575286865, 0.08314824849367142, -0.3510907292366028, -0.01522404607385397, 0.46383291482925415, 0.24359031021595, 0.824930727481842, 0.24882790446281433, -1.0779091119766235, 0.7693480253219604, -0.3699333965778351, 0.12687593698501587, -0.03426337242126465, -0.8192079663276672, -0.892458975315094, -0.9067214727401733, -0.21808457374572754, -0.39546364545822144, -0.1389162838459015, 1.0941323041915894, 0.3718920946121216, -1.083255410194397, -0.3206285238265991, 0.08350472897291183, 0.2495630532503128, -0.2980737090110779, -0.30622753500938416, 0.8752915263175964, -0.1149384006857872, -1.1170806884765625, 0.1035206988453865, 0.08942917734384537, 0.17125919461250305, 0.11366521567106247, -0.06994474679231644, -0.9058665633201599, -0.03960033133625984, 0.23617738485336304, 0.16937392950057983, -0.9512132406234741, -0.2081139087677002, 0.0883021280169487, -0.33624404668807983, 0.20956449210643768, 0.06963519752025604, -0.34767621755599976, 0.12582798302173615, 0.7833529710769653, 0.46660345792770386, 0.42312395572662354, 0.008447086438536644, 0.33968332409858704, -0.7518454790115356, 0.5142698287963867, 0.2274026721715927, 0.5630624294281006, 0.35328763723373413, -0.17764335870742798, 0.8865498900413513, 0.33690816164016724, -0.382222443819046, -1.1762124300003052, -0.03662167862057686, -1.3430496454238892, -0.0362616702914238, 1.0805230140686035, -0.2159017026424408, -0.41644784808158875, 0.1632290780544281, -0.31276625394821167, 0.4960644841194153, -0.5015059113502502, 0.6610930562019348, 0.9486863017082214, 0.41376733779907227, 0.1499515324831009, -0.4652324318885803, 0.3267270028591156, 0.7222917675971985, -0.7929306030273438, -0.15957053005695343, 0.21178099513053894, 0.3754348158836365, 0.40628108382225037, 0.6959918141365051, -0.4415975511074066, 0.24363075196743011, -0.1973516196012497, 0.36056849360466003, -0.21460068225860596, -0.08691103011369705, -0.26555076241493225, 0.13242429494857788, -0.0831642597913742, -0.2386920303106308 ]
timm/convit_base.fb_in1k
timm
"2023-04-24T04:14:31Z"
35,747
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2103.10697", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-24T04:13:12Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for convit_base.fb_in1k A ConViT image classification model. Trained on ImageNet-1k by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 86.5 - GMACs: 17.5 - Activations (M): 31.8 - Image size: 224 x 224 - **Papers:** - ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biases: https://arxiv.org/abs/2103.10697 - **Dataset:** ImageNet-1k - **Original:** https://github.com/facebookresearch/convit ## 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('convit_base.fb_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( 'convit_base.fb_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, 768) 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 @article{d2021convit, title={ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biases}, author={d'Ascoli, St{'e}phane and Touvron, Hugo and Leavitt, Matthew and Morcos, Ari and Biroli, Giulio and Sagun, Levent}, journal={arXiv preprint arXiv:2103.10697}, year={2021} } ```
[ -0.5178420543670654, -0.4489800035953522, -0.12114322930574417, 0.10240758955478668, -0.4219067096710205, -0.4508492946624756, -0.382761687040329, -0.34663379192352295, 0.04401716589927673, 0.29046162962913513, -0.6606256365776062, -0.6422022581100464, -0.5898464322090149, -0.127181276679039, -0.1474205106496811, 1.0054875612258911, 0.07723560184240341, 0.20739665627479553, -0.19753828644752502, -0.48077914118766785, -0.27858489751815796, -0.26099348068237305, -0.7902560830116272, -0.4917522072792053, 0.24362222850322723, 0.314486026763916, 0.6091452240943909, 0.22427117824554443, 0.778937816619873, 0.442249596118927, -0.1299629658460617, 0.16251686215400696, -0.31591716408729553, -0.25855347514152527, 0.28201135993003845, -0.5856371521949768, -0.33437463641166687, 0.1871529221534729, 0.6406623721122742, 0.5225571393966675, 0.015988003462553024, 0.3428316116333008, 0.3277236521244049, 0.5632441639900208, -0.28208404779434204, 0.22072038054466248, -0.5447670817375183, 0.2070746123790741, -0.21817509829998016, 0.05929325148463249, -0.389457643032074, -0.521614134311676, 0.389556348323822, -0.5436627864837646, 0.638083815574646, -0.16042499244213104, 1.1293559074401855, 0.4046002924442291, -0.01880680024623871, -0.06427349150180817, -0.28861498832702637, 0.7257601022720337, -0.8298998475074768, 0.4122859239578247, 0.06161322444677353, 0.10225797444581985, -0.1639685034751892, -0.9373501539230347, -0.6563697457313538, -0.23348739743232727, -0.2630328834056854, 0.012964576482772827, -0.09928733110427856, 0.22019267082214355, 0.4217635691165924, 0.3468281328678131, -0.5406860709190369, -0.01366016548126936, -0.5321741104125977, -0.16474053263664246, 0.5148391127586365, -0.017487086355686188, 0.07601619511842728, -0.11816556751728058, -0.6168519854545593, -0.46592509746551514, -0.36931735277175903, 0.4601544141769409, 0.23986662924289703, 0.19504277408123016, -0.5632659196853638, 0.4020828604698181, 0.07164893299341202, 0.46607646346092224, 0.34352436661720276, -0.3220345079898834, 0.7505277395248413, -0.048878222703933716, -0.5543819665908813, -0.04520804435014725, 0.96198970079422, 0.4834872782230377, 0.4453973174095154, 0.018510684370994568, -0.018608853220939636, -0.13947799801826477, -0.14055311679840088, -1.2132738828659058, -0.2957576811313629, 0.2006431668996811, -0.5561193823814392, -0.3395744264125824, 0.3547436594963074, -0.6057652831077576, -0.14337985217571259, -0.13595415651798248, 0.6461320519447327, -0.5113174915313721, -0.366547167301178, 0.21453261375427246, -0.14115282893180847, 0.4741997718811035, 0.18452411890029907, -0.6595393419265747, 0.23802706599235535, 0.3146652579307556, 1.0058403015136719, 0.003542018588632345, -0.36585861444473267, -0.2514326274394989, -0.4431190490722656, -0.2131081223487854, 0.4239387810230255, -0.007905793376266956, -0.2399250715970993, -0.019986674189567566, 0.48693767189979553, -0.20242096483707428, -0.7443125247955322, 0.46611273288726807, -0.06825129687786102, 0.26595786213874817, 0.0582689493894577, -0.2794531285762787, -0.4337909519672394, 0.3424524664878845, -0.34496909379959106, 1.1163655519485474, 0.38105469942092896, -0.7887483835220337, 0.42564621567726135, -0.4723779857158661, -0.23156575858592987, -0.03974732756614685, -0.025042546913027763, -1.0897562503814697, -0.06085950881242752, 0.11326424032449722, 0.8365826606750488, -0.16511276364326477, 0.20135115087032318, -0.5406998991966248, -0.3774773180484772, 0.4389531910419464, -0.20449458062648773, 0.9989631772041321, 0.03218425065279007, -0.4820381999015808, 0.19821670651435852, -0.6832901835441589, 0.06556954234838486, 0.36856600642204285, -0.2919650673866272, -0.12032167613506317, -0.5775133371353149, 0.18541572988033295, 0.212614968419075, 0.08973263949155807, -0.6871712803840637, 0.4368213713169098, -0.3565223813056946, 0.3331904411315918, 0.6378496289253235, -0.06830649822950363, 0.4311206340789795, -0.2421526312828064, 0.2366015762090683, 0.27801188826560974, 0.5083066821098328, 0.0674404427409172, -0.5203272700309753, -0.9826147556304932, -0.3097788989543915, 0.21007078886032104, 0.462352991104126, -0.6316388249397278, 0.378309041261673, -0.15855281054973602, -0.7657294273376465, -0.4630393385887146, 0.1620955914258957, 0.541589081287384, 0.5850585103034973, 0.44616591930389404, -0.529190182685852, -0.4496077001094818, -0.9774147272109985, 0.1089499443769455, 0.13697032630443573, 0.03460971266031265, 0.2570085823535919, 0.5971704125404358, -0.17167305946350098, 0.5648298859596252, -0.4128938615322113, -0.414511501789093, -0.2110622674226761, -0.05280432477593422, 0.5438814163208008, 0.8735812902450562, 0.8651984333992004, -0.7726119160652161, -0.5099103450775146, -0.24997590482234955, -0.9824972152709961, 0.2542402148246765, -0.07632213085889816, -0.20362426340579987, 0.21659362316131592, 0.22606602311134338, -0.8108887076377869, 0.6737850308418274, 0.10864841938018799, -0.3358757495880127, 0.4675046503543854, -0.08196919411420822, 0.04167940840125084, -0.9771928191184998, -0.00010273036605212837, 0.5096786022186279, -0.0670091062784195, -0.5187717080116272, -0.10322682559490204, 0.04265579953789711, 0.08180715143680573, -0.7280364036560059, 0.5889198780059814, -0.41303589940071106, 0.08502815663814545, -0.0392097532749176, -0.33117422461509705, 0.032728396356105804, 0.9099525809288025, -0.11881112307310104, 0.3450995087623596, 0.7366898655891418, -0.5942855477333069, 0.5310961008071899, 0.5907937288284302, -0.3375992476940155, 0.48006635904312134, -0.6202408075332642, 0.1220683604478836, -0.011122681200504303, 0.28889554738998413, -1.079925775527954, -0.13996508717536926, 0.4162009656429291, -0.6059247255325317, 0.758173942565918, -0.6101572513580322, -0.4033794403076172, -0.4558057487010956, -0.5073399543762207, 0.45231354236602783, 0.6228262186050415, -0.6871532797813416, 0.2956990599632263, 0.12823833525180817, 0.2554562985897064, -0.6184725761413574, -0.9257014989852905, -0.4122846722602844, -0.28657081723213196, -0.8149517774581909, 0.4414014518260956, -0.012482987716794014, 0.07917413115501404, 0.09210310876369476, -0.04479372128844261, 0.06918959319591522, -0.17628271877765656, 0.5087460875511169, 0.3695410192012787, -0.36042848229408264, 0.036788955330848694, -0.2717705965042114, -0.1302814930677414, 0.0012120233150199056, -0.3082854747772217, 0.5637089610099792, -0.3170798122882843, -0.14245985448360443, -0.7532888650894165, -0.108828604221344, 0.5419294834136963, -0.14043426513671875, 0.7519526481628418, 1.0894285440444946, -0.4884524643421173, -0.1348927766084671, -0.45880794525146484, -0.3421238958835602, -0.530448853969574, 0.42561089992523193, -0.36344993114471436, -0.3849082291126251, 0.6933493614196777, 0.05246768891811371, 0.11097732186317444, 0.6525827646255493, 0.4614316523075104, 0.002987395506352186, 0.7454774975776672, 0.6846401691436768, 0.3221175968647003, 0.8548169136047363, -1.1660040616989136, -0.1870591640472412, -0.8527042865753174, -0.6788813471794128, -0.252208948135376, -0.656738817691803, -0.8148086667060852, -0.2019796222448349, 0.48223090171813965, -0.06285299360752106, -0.36418402194976807, 0.35795435309410095, -0.9838175177574158, 0.044715698808431625, 0.7829364538192749, 0.5848141312599182, -0.27292123436927795, 0.2144354283809662, -0.2696741223335266, -0.06283055990934372, -0.7993187308311462, -0.11271769553422928, 0.9808127284049988, 0.4547290802001953, 0.920178234577179, -0.20395241677761078, 0.43411388993263245, -0.22378112375736237, 0.43998298048973083, -0.6782034039497375, 0.6188825964927673, -0.38693588972091675, -0.4837644398212433, -0.050345279276371, -0.17398518323898315, -0.9221634864807129, 0.1801818311214447, -0.3855704367160797, -0.5807192325592041, 0.44960880279541016, 0.1671864092350006, -0.3538031578063965, 0.5989941358566284, -0.8743131756782532, 1.0639806985855103, -0.19482101500034332, -0.5570060610771179, 0.1333770900964737, -0.6910204291343689, 0.34838172793388367, 0.3355500400066376, -0.36117446422576904, -0.03716298192739487, 0.3710876405239105, 1.0431755781173706, -0.5840418338775635, 0.9141577482223511, -0.6112077832221985, 0.447835773229599, 0.5659701824188232, -0.14328323304653168, 0.30359914898872375, -0.05648775398731232, -0.057493507862091064, 0.34575900435447693, 0.015805350616574287, -0.35690152645111084, -0.5178238153457642, 0.6217278838157654, -0.829502522945404, -0.3645836114883423, -0.4665408432483673, -0.4966866075992584, 0.10972509533166885, -0.07069388777017593, 0.7459149360656738, 0.8366178870201111, 0.17622321844100952, 0.5521447658538818, 0.7224804759025574, -0.33342811465263367, 0.4310055077075958, -0.07742871344089508, -0.12197200208902359, -0.3309081196784973, 0.7502309083938599, 0.2702021896839142, 0.14891622960567474, 0.07525958865880966, 0.1246730387210846, -0.34081584215164185, -0.6211480498313904, -0.3323761522769928, 0.3617241084575653, -0.6829872727394104, -0.5552467703819275, -0.5206796526908875, -0.5256166458129883, -0.4075380563735962, -0.12347923219203949, -0.4414263367652893, -0.3256361186504364, -0.33942484855651855, 0.06788861751556396, 0.64930659532547, 0.4785712659358978, -0.01608370989561081, 0.6645359396934509, -0.4217396080493927, 0.08348966389894485, 0.12868255376815796, 0.5513948798179626, -0.17211110889911652, -0.90714430809021, -0.33622273802757263, -0.020884431898593903, -0.5648030638694763, -0.7071869373321533, 0.4581403136253357, 0.24239996075630188, 0.5199018120765686, 0.4590919613838196, -0.2296668142080307, 0.751621663570404, 0.006259410176426172, 0.5348144173622131, 0.3578681945800781, -0.5423873662948608, 0.6038748621940613, 0.02091320976614952, 0.15216772258281708, 0.29299965500831604, 0.22835218906402588, -0.19739484786987305, -0.11826688051223755, -1.0062211751937866, -0.7404050827026367, 0.7737254500389099, 0.18579015135765076, 0.08501030504703522, 0.4300387501716614, 0.7763566374778748, 0.14375661313533783, 0.04713894799351692, -0.8553200960159302, -0.37058573961257935, -0.407137006521225, -0.403917133808136, -0.05815958231687546, -0.02925986610352993, 0.0855698436498642, -0.7456264495849609, 0.7441251277923584, -0.1266660839319229, 0.6001102328300476, 0.46745240688323975, -0.11148767173290253, -0.12384138256311417, -0.3462080955505371, 0.41925737261772156, 0.2637922763824463, -0.44676369428634644, 0.06559697538614273, 0.3395935893058777, -0.6256958246231079, -0.0015506567433476448, 0.29428595304489136, -0.17051032185554504, 0.17954707145690918, 0.4000627398490906, 0.8358314633369446, 0.08940275013446808, 0.04989617317914963, 0.5815718173980713, -0.19445180892944336, -0.380819708108902, -0.43171632289886475, 0.2543163299560547, -0.19953307509422302, 0.5203428268432617, 0.4309411346912384, 0.46911340951919556, -0.031105758622288704, -0.2929346561431885, 0.24660895764827728, 0.753931999206543, -0.46818289160728455, -0.3756997585296631, 0.6927127838134766, -0.006971744820475578, -0.15390045940876007, 0.8443573713302612, -0.07738480716943741, -0.49570295214653015, 1.0634714365005493, 0.34984028339385986, 1.0069912672042847, -0.12704671919345856, -0.03102632611989975, 0.8407277464866638, 0.2797893285751343, 0.01538411807268858, 0.1350499838590622, 0.1886747032403946, -0.8051972985267639, 0.04707600921392441, -0.6497989296913147, -0.0826583132147789, 0.5291391611099243, -0.4541400372982025, 0.4010765552520752, -0.6967242956161499, -0.40771839022636414, 0.22844639420509338, 0.4330749213695526, -1.1165820360183716, 0.31009477376937866, 0.09009848535060883, 0.9059751629829407, -0.8077906966209412, 0.8316301703453064, 0.731120228767395, -0.6657249331474304, -0.9309005737304688, -0.18136490881443024, -0.11177673935890198, -0.7286858558654785, 0.46839240193367004, 0.6110307574272156, 0.032432671636343, 0.07414683699607849, -1.107609510421753, -0.4406736195087433, 1.3226574659347534, 0.5030251145362854, -0.2381136417388916, 0.23635631799697876, -0.041606638580560684, 0.2842647433280945, -0.43915143609046936, 0.2994939684867859, 0.1883935183286667, 0.36035463213920593, 0.2315564602613449, -0.6521642208099365, 0.1744847595691681, -0.35796108841896057, -0.054959528148174286, 0.13075441122055054, -0.9329295754432678, 0.9156581163406372, -0.43404853343963623, -0.11748547106981277, 0.08339456468820572, 0.6578698754310608, 0.11652874201536179, 0.34543633460998535, 0.5816833972930908, 0.6633781790733337, 0.4548822045326233, -0.3577081859111786, 0.8152656555175781, 0.053457316011190414, 0.6888314485549927, 0.5925870537757874, 0.4062267541885376, 0.38113144040107727, 0.4511675238609314, -0.23565293848514557, 0.3885423243045807, 1.0180273056030273, -0.4828824996948242, 0.4663622975349426, 0.13516299426555634, -0.02034618891775608, -0.11599577218294144, 0.013699593022465706, -0.48402395844459534, 0.4732394218444824, 0.3116881549358368, -0.4245746433734894, -0.09355625510215759, 0.17687152326107025, -0.02702314220368862, -0.38004595041275024, -0.21440675854682922, 0.5073769688606262, 0.1302807778120041, -0.6052761673927307, 0.8102294206619263, -0.1064748466014862, 1.0632376670837402, -0.4755001664161682, -0.021293235942721367, -0.4007386863231659, 0.6081178188323975, -0.428109735250473, -0.9226183891296387, 0.24321626126766205, -0.25238385796546936, -0.010441215708851814, 0.05483298748731613, 0.7515738010406494, -0.48989248275756836, -0.5913456082344055, 0.277680367231369, 0.24831099808216095, 0.36614301800727844, -0.06969499588012695, -1.1008275747299194, -0.04468453675508499, 0.040598854422569275, -0.6308197975158691, 0.18314005434513092, 0.416117787361145, 0.06736110895872116, 0.7592002153396606, 0.7276819944381714, -0.29293155670166016, 0.2130822092294693, -0.07706820219755173, 0.8894856572151184, -0.40747421979904175, -0.19813986122608185, -0.8991652727127075, 0.6382042765617371, 0.0105067053809762, -0.659650981426239, 0.4547216594219208, 0.6525228023529053, 1.0275930166244507, -0.12397313863039017, 0.4680350422859192, -0.1944245547056198, -0.020079920068383217, -0.47590354084968567, 0.646031379699707, -0.7233676910400391, -0.12594890594482422, -0.22450076043605804, -0.7802202701568604, -0.42377769947052, 0.7439846396446228, -0.20837338268756866, 0.3132881820201874, 0.5061869025230408, 1.0751023292541504, -0.4947071969509125, -0.43629932403564453, 0.19072838127613068, 0.2830466330051422, 0.137058287858963, 0.521170973777771, 0.48021695017814636, -0.7969403266906738, 0.5064435601234436, -0.6733592748641968, -0.18813449144363403, -0.3116552233695984, -0.4920058250427246, -0.9628589153289795, -0.8496763110160828, -0.6258242130279541, -0.7415739297866821, -0.2539937496185303, 0.939819872379303, 1.0443507432937622, -0.7153136134147644, -0.03408389538526535, 0.07521818578243256, 0.1295265406370163, -0.19633717834949493, -0.23923611640930176, 0.5990270972251892, -0.2027767300605774, -0.796714186668396, -0.3949333131313324, -0.052246712148189545, 0.4007076919078827, -0.19394001364707947, -0.2970940172672272, -0.2828325033187866, -0.26806485652923584, 0.315164715051651, 0.2394047975540161, -0.6204801201820374, -0.22203731536865234, -0.053005438297986984, -0.17985765635967255, 0.447038859128952, 0.3425356447696686, -0.6417766809463501, 0.2993166148662567, 0.393898606300354, 0.2167154997587204, 0.9358646273612976, -0.280031681060791, -0.05738362669944763, -0.8786741495132446, 0.6964525580406189, -0.0931202843785286, 0.5348866581916809, 0.5746058225631714, -0.43138766288757324, 0.7037612795829773, 0.5086854696273804, -0.46915340423583984, -0.7956873774528503, -0.10317475348711014, -1.3180603981018066, -0.03832266852259636, 0.9815542697906494, -0.2138889878988266, -0.5016107559204102, 0.393207848072052, -0.15108568966388702, 0.7354861497879028, -0.1473959982395172, 0.389464795589447, 0.21856126189231873, -0.08634735643863678, -0.5246023535728455, -0.5347446203231812, 0.6170066595077515, 0.1302613914012909, -0.497989684343338, -0.5332943201065063, -0.036321595311164856, 0.7520248293876648, 0.24222145974636078, 0.4433920979499817, -0.11042143404483795, 0.2394675612449646, -0.06470788270235062, 0.518806517124176, -0.30213168263435364, -0.062467336654663086, -0.3106067180633545, 0.020435364916920662, -0.23721018433570862, -0.7080251574516296 ]
timm/fastvit_t8.apple_in1k
timm
"2023-08-23T20:56:15Z"
35,626
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2303.14189", "license:other", "region:us" ]
image-classification
"2023-08-23T20:56:11Z"
--- tags: - image-classification - timm library_name: timm license: other datasets: - imagenet-1k --- # Model card for fastvit_t8.apple_in1k A FastViT image classification model. Trained on ImageNet-1k by paper authors. Please observe [original license](https://github.com/apple/ml-fastvit/blob/8af5928238cab99c45f64fc3e4e7b1516b8224ba/LICENSE). ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 4.0 - GMACs: 0.7 - Activations (M): 8.6 - Image size: 256 x 256 - **Papers:** - FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization: https://arxiv.org/abs/2303.14189 - **Original:** https://github.com/apple/ml-fastvit - **Dataset:** ImageNet-1k ## 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('fastvit_t8.apple_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) ``` ### 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( 'fastvit_t8.apple_in1k', 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, 48, 64, 64]) # torch.Size([1, 96, 32, 32]) # torch.Size([1, 192, 16, 16]) # torch.Size([1, 384, 8, 8]) 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( 'fastvit_t8.apple_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, 384, 8, 8) shaped tensor output = model.forward_head(output, pre_logits=True) # output is a (1, num_features) shaped tensor ``` ## Citation ```bibtex @inproceedings{vasufastvit2023, author = {Pavan Kumar Anasosalu Vasu and James Gabriel and Jeff Zhu and Oncel Tuzel and Anurag Ranjan}, title = {FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization}, booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision}, year = {2023} } ```
[ -0.5677339434623718, -0.5001481771469116, 0.03714575618505478, 0.2315707802772522, -0.4237745702266693, -0.19850100576877594, -0.1019817516207695, -0.2712197005748749, 0.34413060545921326, 0.3847838044166565, -0.49617066979408264, -0.6295003890991211, -0.700764536857605, -0.19019733369350433, -0.20785534381866455, 0.9664976596832275, -0.22859731316566467, -0.06646957248449326, -0.1473117172718048, -0.638034999370575, -0.21149395406246185, -0.28716129064559937, -0.659557580947876, -0.16764968633651733, 0.17675501108169556, 0.3083072602748871, 0.6141871213912964, 0.6497095227241516, 0.6783631443977356, 0.4831904172897339, -0.05899197235703468, 0.07752387225627899, -0.211923748254776, -0.3312593400478363, 0.38078007102012634, -0.6555762887001038, -0.44283831119537354, 0.276157408952713, 0.836416482925415, 0.3678482174873352, -0.0058702994138002396, 0.5025247931480408, 0.06368513405323029, 0.48004844784736633, -0.21050015091896057, 0.2581072747707367, -0.41413941979408264, 0.17323164641857147, -0.347575843334198, 0.08259455859661102, -0.2244284451007843, -0.5857518911361694, 0.1875108778476715, -0.6523198485374451, 0.4867854416370392, 0.11555646359920502, 1.3186008930206299, 0.3353608250617981, -0.10059397667646408, 0.14827387034893036, -0.2969905138015747, 0.7879598736763, -0.8180827498435974, 0.32414674758911133, 0.04411850869655609, 0.25297534465789795, -0.12111752480268478, -0.953143835067749, -0.6998002529144287, -0.1879837065935135, -0.22446386516094208, -0.10996123403310776, 0.026395374909043312, -0.08609186112880707, 0.44868430495262146, 0.3914901316165924, -0.4671103060245514, -0.01754572242498398, -0.5315496325492859, -0.3161829113960266, 0.5892255902290344, 0.0996248722076416, 0.357109934091568, -0.1593015044927597, -0.5737094879150391, -0.5084813833236694, -0.2624618411064148, 0.5353958606719971, 0.11756547540426254, 0.1087375208735466, -0.6180515289306641, 0.4232759177684784, 0.18998336791992188, 0.5157292485237122, 0.2245233654975891, -0.4897764027118683, 0.848671019077301, -0.08202271163463593, -0.46260297298431396, -0.041091300547122955, 1.0676138401031494, 0.35676178336143494, 0.24503256380558014, 0.3002817928791046, -0.02681461162865162, -0.26176565885543823, -0.10972312837839127, -1.1725331544876099, -0.21131087839603424, 0.10444670170545578, -0.6309407353401184, -0.3530072569847107, 0.2337479442358017, -0.641474723815918, -0.05228462070226669, -0.013560229912400246, 0.6389232873916626, -0.4774675965309143, -0.34511253237724304, 0.10896576195955276, -0.13699112832546234, 0.38204920291900635, 0.15562544763088226, -0.5687061548233032, 0.09814321994781494, 0.15722103416919708, 1.0280927419662476, 0.05417986214160919, -0.49152126908302307, -0.25906792283058167, -0.25235632061958313, -0.23859745264053345, 0.38512372970581055, -0.03353595733642578, -0.32069456577301025, -0.373943030834198, 0.5042297840118408, -0.24350190162658691, -0.6960148811340332, 0.3953264355659485, -0.019285542890429497, 0.17574845254421234, 0.054452259093523026, -0.11247000098228455, -0.5997724533081055, 0.36928820610046387, -0.4156792163848877, 1.2874767780303955, 0.2665524184703827, -0.9718083143234253, 0.3617812693119049, -0.5471182465553284, -0.402253657579422, -0.12116528302431107, -0.07295341044664383, -1.1752601861953735, -0.043589167296886444, 0.324586421251297, 0.8089892864227295, -0.14439409971237183, 0.18741360306739807, -0.5527032017707825, -0.2651846408843994, 0.2632908225059509, -0.06669225543737411, 0.9085249900817871, 0.0011469776509329677, -0.5664884448051453, 0.3060797154903412, -0.8499091863632202, 0.0743953213095665, 0.6098080277442932, -0.3147793114185333, -0.2880025804042816, -0.4612673819065094, 0.028040725737810135, 0.2598022520542145, 0.10513550043106079, -0.7054209113121033, 0.35999247431755066, -0.22579818964004517, 0.48022186756134033, 0.6361660361289978, -0.10798470675945282, 0.24759432673454285, -0.23758865892887115, 0.24939055740833282, 0.3418203294277191, 0.44976451992988586, -0.10262790322303772, -0.6977279186248779, -1.0058008432388306, -0.5483210682868958, 0.12574273347854614, 0.500869870185852, -0.7553152441978455, 0.37841805815696716, -0.22737017273902893, -0.839180588722229, -0.587699830532074, 0.045200493186712265, 0.4653490483760834, 0.6068130135536194, 0.4380532205104828, -0.6693190932273865, -0.4272684156894684, -1.1036161184310913, -0.026047779247164726, 0.010255166329443455, 0.2132144272327423, 0.3187067210674286, 0.7307528257369995, -0.2166309803724289, 0.7005075812339783, -0.4800584018230438, -0.2675267159938812, -0.21327054500579834, 0.1978069692850113, 0.32848551869392395, 0.8275781869888306, 0.8936219215393066, -0.7268153429031372, -0.5426104068756104, -0.2759697735309601, -0.903444230556488, 0.3293251395225525, -0.19580629467964172, -0.29027611017227173, -0.04317132383584976, 0.04547159746289253, -0.6784425973892212, 0.7191706299781799, 0.09725433588027954, -0.25219881534576416, 0.498121976852417, -0.16447243094444275, 0.246830016374588, -1.1689414978027344, -0.008926184847950935, 0.5006809830665588, -0.152756929397583, -0.5522410273551941, -0.010368297807872295, 0.1877799779176712, -0.09896618127822876, -0.8218227624893188, 0.6958887577056885, -0.47686058282852173, -0.07303767651319504, 0.021881960332393646, -0.4216707944869995, 0.0504290908575058, 0.7802979946136475, -0.004182929173111916, 0.5302814245223999, 0.7934709787368774, -0.5904939770698547, 0.39802980422973633, 0.5952476263046265, -0.4185178279876709, 0.2476051300764084, -0.5313175916671753, 0.02498721331357956, -0.03033108450472355, 0.2830609679222107, -0.9124436974525452, -0.15077941119670868, 0.30919167399406433, -0.4758833646774292, 0.6334121227264404, -0.24994412064552307, -0.2862212359905243, -0.6694390773773193, -0.5585222244262695, 0.5846757292747498, 0.6600892543792725, -0.7194815874099731, 0.423698753118515, 0.2629075050354004, 0.09908095002174377, -0.4550078809261322, -0.9100356101989746, -0.3622606694698334, -0.21358712017536163, -0.8147060871124268, 0.35421815514564514, -0.022534456104040146, 0.09703566133975983, 0.046356189996004105, -0.07059598714113235, -0.11496451497077942, -0.1342991441488266, 0.5566973090171814, 0.43179547786712646, -0.38093623518943787, -0.2659127116203308, -0.25823938846588135, -0.058652836829423904, -0.006270117592066526, -0.1837225705385208, 0.37470266222953796, -0.2965087294578552, -0.17650240659713745, -0.908073365688324, -0.006017662119120359, 0.7943477630615234, -0.32438886165618896, 0.8373205065727234, 1.1659865379333496, -0.40946435928344727, 0.029148655012249947, -0.4840608537197113, -0.22456511855125427, -0.49730634689331055, 0.4417514204978943, -0.507036030292511, -0.48360538482666016, 0.7067936062812805, 0.026805687695741653, 0.19786210358142853, 0.7866227626800537, 0.45993542671203613, 0.024370288476347923, 0.8986654281616211, 0.7191843390464783, 0.15042637288570404, 0.7426920533180237, -0.9921253323554993, -0.043795306235551834, -0.8580592274665833, -0.6490423083305359, -0.3429206311702728, -0.5380774140357971, -0.6213793158531189, -0.38169267773628235, 0.38311660289764404, 0.03342703357338905, -0.3744269907474518, 0.43345820903778076, -0.8799054026603699, -0.05842519551515579, 0.7670484185218811, 0.41449737548828125, -0.3767644166946411, 0.19311998784542084, -0.4292120635509491, -0.14533159136772156, -0.7044152021408081, -0.14576558768749237, 0.932879626750946, 0.4801620543003082, 0.7720535397529602, -0.27961888909339905, 0.6482453346252441, -0.253580242395401, 0.40760576725006104, -0.6033716201782227, 0.7509551048278809, -0.1402505338191986, -0.5291222929954529, -0.03468243032693863, -0.253101646900177, -0.7808533310890198, 0.1831887811422348, -0.4359864294528961, -0.5734813809394836, 0.3462115526199341, 0.17727723717689514, -0.3858848512172699, 0.8306710124015808, -0.8281736373901367, 1.0598349571228027, -0.39511802792549133, -0.3595663607120514, 0.2007455974817276, -0.6942456364631653, 0.4951295256614685, 0.0969662293791771, -0.050968676805496216, -0.17009255290031433, 0.31036603450775146, 1.2307286262512207, -0.7078822255134583, 0.8077782988548279, -0.5216320753097534, 0.5251516699790955, 0.5783843994140625, -0.1531939059495926, 0.39148253202438354, -0.11189326643943787, 0.03601923957467079, 0.43429774045944214, -0.05906347185373306, -0.3956485688686371, -0.46331796050071716, 0.5772923231124878, -0.9383367896080017, -0.5376978516578674, -0.4176357388496399, -0.45434996485710144, 0.16837333142757416, 0.0706120952963829, 0.4994073212146759, 0.5832635760307312, 0.20337624847888947, 0.24420343339443207, 0.5825876593589783, -0.45341575145721436, 0.4618980288505554, 0.015305745415389538, -0.12170708924531937, -0.38331887125968933, 1.0206609964370728, 0.14435213804244995, 0.11791662871837616, 0.08014609664678574, 0.13389898836612701, -0.21112734079360962, -0.604669988155365, -0.4649294316768646, 0.45728445053100586, -0.5924443602561951, -0.26954084634780884, -0.5455317497253418, -0.48424747586250305, -0.512407660484314, -0.1479090452194214, -0.583193838596344, -0.37887436151504517, -0.35516902804374695, 0.11083321273326874, 0.5851942300796509, 0.5403696298599243, 0.06913075596094131, 0.5343014597892761, -0.8278223872184753, 0.19020162522792816, 0.14981335401535034, 0.2908683121204376, -0.1450480818748474, -0.793156087398529, -0.35200950503349304, -0.19879956543445587, -0.4790281057357788, -0.6971436738967896, 0.6177002191543579, 0.1406581550836563, 0.6421942114830017, 0.46558690071105957, -0.2650531232357025, 0.9076701998710632, -0.2430279552936554, 0.7385445833206177, 0.47157806158065796, -0.682812511920929, 0.7232001423835754, 0.15248699486255646, 0.2519082725048065, 0.21336393058300018, 0.4754951298236847, -0.1008857935667038, -0.1476709097623825, -0.8159821629524231, -0.7737981677055359, 0.7627576589584351, 0.1379566788673401, -0.21194776892662048, 0.38347068428993225, 0.7355424165725708, 0.1901835948228836, 0.06171433627605438, -0.7828850746154785, -0.4618479609489441, -0.5017987489700317, -0.3119693994522095, -0.14752830564975739, -0.054560691118240356, 0.0347081795334816, -0.8618942499160767, 0.7398174405097961, -0.013053011149168015, 0.6995254158973694, 0.32655858993530273, -0.12032067775726318, 0.004608722869306803, -0.3145052492618561, 0.5833976864814758, 0.25095587968826294, -0.3334660828113556, -0.10568971186876297, 0.16899468004703522, -0.7408844232559204, 0.19817817211151123, 0.22551344335079193, -0.13230745494365692, 0.12449043989181519, 0.40751171112060547, 1.1254000663757324, 0.1152418926358223, 0.08176515996456146, 0.5460750460624695, -0.19472534954547882, -0.4574893116950989, -0.1688103824853897, 0.10530746728181839, -0.25687894225120544, 0.4197395145893097, 0.3254891335964203, 0.44926998019218445, -0.17236492037773132, -0.30630066990852356, 0.18944551050662994, 0.5883656740188599, -0.2379007637500763, -0.413015753030777, 0.8954845070838928, 0.06165728718042374, -0.2351408451795578, 0.7943369150161743, -0.041014619171619415, -0.6215144395828247, 1.0392104387283325, 0.36489996314048767, 0.9719794988632202, -0.17350871860980988, -0.05073324590921402, 0.8280979990959167, 0.30963408946990967, -0.025236282497644424, 0.18593081831932068, 0.08567233383655548, -0.6941523551940918, -0.005499063991010189, -0.7854557633399963, -0.031197156757116318, 0.28794366121292114, -0.5359975099563599, 0.2877296507358551, -0.6942245960235596, -0.38137081265449524, 0.23916378617286682, 0.27149471640586853, -1.0161575078964233, 0.31682419776916504, 0.01512598991394043, 0.9984385967254639, -0.8687447309494019, 1.0346407890319824, 0.8394534587860107, -0.5991828441619873, -1.084536075592041, -0.13740555942058563, 0.014547158032655716, -0.993888795375824, 0.6584264636039734, 0.5264853835105896, 0.1393507719039917, 0.059237290173769, -0.7173264622688293, -0.6392009258270264, 1.4021763801574707, 0.34103071689605713, -0.3800663352012634, 0.09577633440494537, -0.034917935729026794, -0.027482856065034866, -0.46959376335144043, 0.3596334457397461, 0.21384912729263306, 0.5105686187744141, 0.17430749535560608, -0.781055748462677, 0.24612422287464142, -0.2618252635002136, 0.14870280027389526, 0.3098040819168091, -0.8690801858901978, 1.0052061080932617, -0.5881701111793518, -0.12621141970157623, 0.023492353036999702, 0.6792116165161133, 0.12767815589904785, 0.21007736027240753, 0.6338116526603699, 0.8564918637275696, 0.5011085271835327, -0.3111271262168884, 0.9049572348594666, 0.006674350704997778, 0.5470361113548279, 0.528123140335083, 0.2271883338689804, 0.5442695021629333, 0.44097211956977844, -0.16544321179389954, 0.4544465243816376, 1.1687504053115845, -0.3579123318195343, 0.4598097801208496, 0.0015093787806108594, 0.044038739055395126, -0.08895989507436752, 0.28150346875190735, -0.6036655306816101, 0.39498746395111084, 0.271145224571228, -0.46087971329689026, -0.044798579066991806, 0.3422881066799164, -0.1444995403289795, -0.5201801657676697, -0.34335437417030334, 0.36486801505088806, 0.06387481093406677, -0.44372397661209106, 0.7945719361305237, 0.015397703275084496, 0.9628695845603943, -0.5017716884613037, 0.08220046013593674, -0.24426457285881042, 0.3895266056060791, -0.3600333333015442, -0.7774876952171326, 0.25191178917884827, -0.3072226345539093, -0.011432439088821411, -0.026709573343396187, 0.664126455783844, -0.34662389755249023, -0.5833349823951721, 0.17616252601146698, 0.2866140604019165, 0.4899877905845642, 0.14755244553089142, -1.238778829574585, 0.16743473708629608, 0.19977737963199615, -0.7505872845649719, 0.2473595142364502, 0.294993132352829, -0.05066985636949539, 0.7069452404975891, 0.7038645148277283, -0.1097177267074585, 0.36060211062431335, -0.263658732175827, 0.8445168137550354, -0.6695952415466309, -0.34817829728126526, -0.8423461318016052, 0.784229576587677, -0.05034519359469414, -0.5372254848480225, 0.6769605278968811, 0.658220112323761, 0.9064248204231262, -0.06872250884771347, 0.5315581560134888, -0.10400664061307907, 0.05481124669313431, -0.3964534103870392, 0.7360157370567322, -0.822178304195404, -0.1508539766073227, -0.024043479934334755, -0.8142750859260559, -0.4221329391002655, 0.7031722664833069, -0.20531895756721497, 0.17351335287094116, 0.6137475371360779, 0.9357060194015503, -0.4759519100189209, -0.307296484708786, 0.17733579874038696, 0.36483830213546753, 0.1791323870420456, 0.3723164200782776, 0.35168036818504333, -0.6844031810760498, 0.4466409981250763, -0.5887958407402039, -0.3056628108024597, -0.30595406889915466, -0.5631115436553955, -0.9095388054847717, -0.7596601843833923, -0.6921847462654114, -0.5244980454444885, -0.2814469635486603, 0.7746750712394714, 1.170819640159607, -0.650338888168335, -0.05877054110169411, 0.23864910006523132, 0.09264375269412994, -0.18188807368278503, -0.23463857173919678, 0.5812203884124756, -0.017064368352293968, -0.6849107146263123, -0.09716756641864777, 0.13654294610023499, 0.5017839074134827, -0.18952645361423492, -0.2811020016670227, -0.2721700966358185, -0.12945981323719025, 0.3564361035823822, 0.45278987288475037, -0.6457457542419434, -0.21831738948822021, -0.3007757067680359, -0.145669087767601, 0.513473391532898, 0.5668897032737732, -0.6790544986724854, 0.32929378747940063, 0.3307255506515503, 0.408078134059906, 1.057706594467163, -0.39081716537475586, -0.0741974413394928, -0.7748622894287109, 0.7057929039001465, -0.1921984851360321, 0.6237599849700928, 0.3860013782978058, -0.27176976203918457, 0.3908340036869049, 0.5640283226966858, -0.4092508554458618, -0.8467280864715576, -0.12001075595617294, -1.1280122995376587, -0.09825874119997025, 0.7262062430381775, -0.3647415339946747, -0.6711822748184204, 0.43576762080192566, -0.06470123678445816, 0.6357142329216003, -0.08351975679397583, 0.3148902952671051, 0.25956058502197266, -0.14474403858184814, -0.4604795277118683, -0.5741593241691589, 0.41815727949142456, 0.057776618748903275, -0.6821883320808411, -0.6914704442024231, -0.1078687310218811, 0.8169786930084229, 0.375263512134552, 0.5491054654121399, -0.049954015761613846, 0.08405448496341705, 0.0016487330431118608, 0.5712341070175171, -0.4103742241859436, -0.1139548271894455, -0.2799820005893707, 0.1274692416191101, -0.1770154982805252, -0.8699058294296265 ]
microsoft/resnet-18
microsoft
"2023-05-08T11:19:40Z"
35,570
28
transformers
[ "transformers", "pytorch", "tf", "safetensors", "resnet", "image-classification", "vision", "dataset:imagenet-1k", "arxiv:1512.03385", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-03-16T15:40:26Z"
--- 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 --- # ResNet ResNet model trained on imagenet-1k. It was introduced in the paper [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385) and first released in [this repository](https://github.com/KaimingHe/deep-residual-networks). Disclaimer: The team releasing ResNet did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description ResNet introduced residual connections, they allow to train networks with an unseen number of layers (up to 1000). ResNet won the 2015 ILSVRC & COCO competition, one important milestone in deep computer vision. ![model image](https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/resnet_architecture.png) ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=resnet) to look for fine-tuned versions on a task that interests you. ### How to use Here is how to use this model: ```python >>> from transformers import AutoFeatureExtractor, ResNetForImageClassification >>> import torch >>> from datasets import load_dataset >>> dataset = load_dataset("huggingface/cats-image") >>> image = dataset["test"]["image"][0] >>> feature_extractor = AutoFeatureExtractor.from_pretrained("microsoft/resnet-18") >>> model = ResNetForImageClassification.from_pretrained("microsoft/resnet-18") >>> inputs = feature_extractor(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]) tiger cat ``` For more code examples, we refer to the [documentation](https://huggingface.co/docs/transformers/master/en/model_doc/resnet).
[ -0.6521076560020447, -0.1132611483335495, -0.07975377887487411, -0.06273439526557922, -0.23995241522789001, -0.18893977999687195, 0.08593309670686722, -0.6261026263237, 0.3161778748035431, 0.5274201035499573, -0.5803103446960449, -0.30074283480644226, -0.4859800338745117, 0.15009021759033203, -0.405772864818573, 0.7867723107337952, -0.022698281332850456, 0.022118186578154564, -0.39739376306533813, -0.34263983368873596, -0.24859823286533356, -0.394540399312973, -0.7913691401481628, -0.6251787543296814, 0.6197702288627625, 0.26881545782089233, 0.3183668553829193, 0.5270796418190002, 0.7845855355262756, 0.45371612906455994, -0.028857136145234108, 0.011056915856897831, -0.31149473786354065, -0.2793799042701721, 0.021533429622650146, -0.34520223736763, -0.3094116151332855, 0.23579290509223938, 0.4412722587585449, 0.14040443301200867, 0.04421659931540489, 0.5071701407432556, -0.04140354320406914, 0.7795490622520447, -0.4430296719074249, 0.10695686936378479, -0.3855689465999603, 0.2684136927127838, 0.061803825199604034, -0.04568573832511902, -0.4623853862285614, -0.22262845933437347, 0.1592886745929718, -0.4761323928833008, 0.3901260197162628, -0.10714466869831085, 1.4475131034851074, 0.3368001878261566, -0.2615728974342346, 0.15539385378360748, -0.4234762191772461, 0.6443571448326111, -0.4382269084453583, 0.36979439854621887, 0.3087500035762787, 0.6364402174949646, 0.07179156690835953, -1.3314967155456543, -0.4234983026981354, -0.2823013961315155, -0.060323894023895264, 0.0584648922085762, -0.2621362507343292, 0.08193238824605942, 0.2930404543876648, 0.462454617023468, -0.4862442910671234, 0.08566449582576752, -0.746220588684082, -0.2963005602359772, 0.6502732634544373, 0.09256773442029953, 0.16770781576633453, -0.08704359084367752, -0.6705357432365417, -0.30087125301361084, -0.3029427230358124, 0.1196734681725502, 0.1026352271437645, 0.08022761344909668, -0.2935062646865845, 0.41112735867500305, -0.30528560280799866, 0.6524314284324646, 0.12558810412883759, 0.04931545630097389, 0.49146541953086853, 0.06703205406665802, -0.4496075212955475, -0.12234640121459961, 0.8310759663581848, 0.22103887796401978, 0.2815060317516327, 0.007862732745707035, -0.3337291479110718, 0.0684487521648407, 0.30825358629226685, -0.9753832221031189, -0.5452380776405334, 0.0881219431757927, -0.7194501161575317, -0.7451679706573486, -0.06528987735509872, -0.4793846011161804, -0.2954408526420593, -0.2886313498020172, 0.36561110615730286, -0.2732324004173279, -0.5298177003860474, 0.0707610547542572, -0.07833568006753922, 0.45870304107666016, 0.2875175178050995, -0.3843415081501007, 0.19309690594673157, 0.39247316122055054, 0.8928582668304443, 0.07937872409820557, -0.3917446434497833, -0.05406229943037033, -0.5178692936897278, -0.1638050228357315, 0.6352411508560181, -0.2702924609184265, 0.1854293793439865, -0.24938325583934784, 0.3605607748031616, 0.09465689212083817, -0.517875611782074, 0.3131691813468933, -0.7116391062736511, 0.16179169714450836, -0.014836796559393406, -0.35062241554260254, -0.5735132098197937, 0.2884533703327179, -0.7983752489089966, 1.0016266107559204, 0.15774855017662048, -0.9554295539855957, 0.11615603417158127, -0.4024463891983032, 0.10227933526039124, -0.06905217468738556, 0.044117704033851624, -0.6566402316093445, 0.10773774981498718, -0.13704541325569153, 0.6516071557998657, -0.2032325565814972, 0.23512180149555206, -0.6520894765853882, -0.2730453312397003, 0.30124205350875854, -0.24896951019763947, 0.9988204836845398, 0.358854204416275, -0.19538450241088867, 0.12407334893941879, -0.7373872399330139, 0.027706872671842575, 0.36097872257232666, -0.11545467376708984, 0.13585011661052704, -0.6566028594970703, 0.170542374253273, 0.5231873393058777, 0.1753310263156891, -0.745067834854126, 0.28050845861434937, -0.13999372720718384, 0.5544655323028564, 0.492489755153656, -0.13993892073631287, 0.36172693967819214, -0.30631110072135925, 0.4153895676136017, -0.0012302319519221783, 0.24770033359527588, -0.09848091006278992, -0.3532022535800934, -0.9024372696876526, -0.12121517211198807, 0.5144361257553101, 0.487289160490036, -0.8549387454986572, 0.3374820947647095, -0.08227915316820145, -0.8286579847335815, -0.3948477804660797, -0.20324577391147614, 0.5013455152511597, 0.694291889667511, 0.29913562536239624, -0.3490290343761444, -0.7709251046180725, -1.0971897840499878, 0.05706236511468887, -0.020918825641274452, 0.17239274084568024, 0.3239014148712158, 0.6393410563468933, -0.2049368917942047, 0.8640027046203613, -0.32325252890586853, -0.2730410397052765, -0.07807447016239166, 0.19221846759319305, 0.22204998135566711, 0.7148026823997498, 0.5339699983596802, -0.7327455878257751, -0.25278592109680176, -0.009357182309031487, -0.9940611720085144, 0.35761791467666626, 0.015297244302928448, -0.10983143001794815, 0.14302940666675568, 0.48927417397499084, -0.3938305675983429, 0.7235820293426514, 0.46236786246299744, -0.059159040451049805, 0.6153634786605835, 0.014497264288365841, -0.003130351658910513, -1.1568342447280884, 0.26210346817970276, 0.22448493540287018, -0.43045487999916077, -0.41884398460388184, 0.24077245593070984, 0.12809139490127563, -0.3544360399246216, -0.61306232213974, 0.6562190651893616, -0.48386722803115845, -0.11982201039791107, -0.3397578299045563, -0.37411394715309143, 0.060684505850076675, 0.6458666324615479, 0.3616832196712494, 0.36170071363449097, 0.7366719245910645, -0.5499774217605591, 0.7983396053314209, 0.11810608208179474, -0.19437648355960846, 0.2035020887851715, -0.7433061003684998, 0.22530916333198547, -0.12340164184570312, 0.3887368142604828, -1.050710916519165, -0.290966659784317, 0.25446659326553345, -0.8307520747184753, 0.6007019281387329, -0.25542140007019043, -0.20053058862686157, -0.7286446690559387, -0.026728980243206024, 0.5186441540718079, 0.6643498539924622, -0.7457107305526733, 0.5297915935516357, 0.19242621958255768, 0.5465534329414368, -0.8158858418464661, -0.8613451719284058, 0.043660640716552734, -0.2918492555618286, -0.6093047857284546, 0.23564520478248596, 0.16204746067523956, 0.2171056568622589, 0.1975497603416443, 0.03168864920735359, -0.3546197712421417, 0.08070742338895798, 0.4320145547389984, 0.23673735558986664, -0.1801493912935257, 0.1523246318101883, -0.4669075906276703, -0.4294344484806061, 0.08455128222703934, -0.2135985940694809, 0.3781421482563019, -0.49506276845932007, -0.10678789019584656, -0.8807373046875, -0.1688140481710434, 0.4661736786365509, -0.22327449917793274, 0.5919448137283325, 1.0005369186401367, -0.6960655450820923, -0.04665553942322731, -0.7175694108009338, -0.4914659857749939, -0.5281614661216736, 0.29880326986312866, -0.3895532488822937, -0.6358951330184937, 0.64589923620224, -0.25448352098464966, -0.0317467600107193, 0.5758017897605896, 0.15415970981121063, -0.1483321487903595, 0.6805586814880371, 0.8826661109924316, 0.016262724995613098, 0.5632795095443726, -0.738469123840332, -0.18366871774196625, -0.8893395066261292, -0.34833401441574097, -0.29880326986312866, -0.6044906377792358, -0.5489059686660767, -0.029821351170539856, 0.12774716317653656, 0.19125491380691528, -0.5029560923576355, 0.7710120677947998, -0.8974461555480957, 0.21096210181713104, 0.5893480777740479, 0.5027716755867004, -0.11405038088560104, 0.31673702597618103, -0.15760958194732666, 0.08203798532485962, -0.7204234004020691, -0.26738229393959045, 0.7632754445075989, 0.675940752029419, 0.6737313866615295, -0.31247806549072266, 0.8493432998657227, 0.047132425010204315, 0.49225449562072754, -0.6715961694717407, 0.5512791872024536, -0.09851834923028946, -0.6565620303153992, -0.17250476777553558, -0.397904634475708, -0.8809804320335388, -0.10427846759557724, -0.17774976789951324, -0.5378673672676086, 0.5070714354515076, 0.22967715561389923, -0.22945013642311096, 0.5404648780822754, -0.5734800100326538, 0.8753039836883545, -0.06438295543193817, -0.2899244427680969, 0.04969574138522148, -0.6968045830726624, 0.5162337422370911, 0.20730909705162048, -0.3633502423763275, -0.14018657803535461, 0.17382439970970154, 0.8476863503456116, -0.45545467734336853, 1.0482591390609741, -0.21661078929901123, 0.3433648943901062, 0.5503260493278503, 0.03930186480283737, 0.3233170211315155, -0.09922129660844803, -0.08216935396194458, 0.448960542678833, -0.01485410239547491, -0.3493298888206482, -0.4003961384296417, 0.4914373457431793, -0.8703584671020508, -0.21066364645957947, -0.39024317264556885, -0.08679003268480301, 0.10079306364059448, 0.246276393532753, 0.7612907290458679, 0.7996699213981628, 0.10024474561214447, 0.24610251188278198, 0.628539502620697, -0.37328585982322693, 0.5428606271743774, 0.08347295969724655, -0.21417047083377838, -0.5943810343742371, 1.0222457647323608, 0.07037294656038284, 0.14401781558990479, 0.20158563554286957, 0.18612833321094513, -0.2892747223377228, -0.11978662014007568, -0.45000800490379333, 0.38196438550949097, -0.6985222697257996, -0.7221580743789673, -0.5063933730125427, -0.655153214931488, -0.31336909532546997, -0.13063782453536987, -0.7638582587242126, -0.3079849183559418, -0.5205456018447876, -0.003304913640022278, 0.6718003153800964, 0.5906418561935425, -0.2042577862739563, 0.3599972724914551, -0.7790966033935547, 0.09629575908184052, 0.4004172086715698, 0.5635866522789001, 0.16963854432106018, -0.7574028968811035, -0.19539687037467957, -0.08802272379398346, -0.23382584750652313, -0.6691073775291443, 0.49418050050735474, 0.11287693679332733, 0.378206342458725, 0.35715192556381226, 0.008595835417509079, 0.541422963142395, -0.14213818311691284, 0.5088253021240234, 0.6057190895080566, -0.5455312132835388, 0.4079863131046295, -0.037269461899995804, 0.1306389421224594, 0.39187896251678467, 0.4592186212539673, -0.4320128858089447, 0.14721189439296722, -0.9250988364219666, -0.4883915185928345, 0.6967322826385498, -0.07083959132432938, 0.0869397222995758, 0.23235347867012024, 0.6448633074760437, -0.17061352729797363, 0.09035199880599976, -0.8521315455436707, -0.4482060968875885, -0.3639889657497406, 0.053945109248161316, 0.201666459441185, -0.32841920852661133, -0.01666841097176075, -0.5095058083534241, 0.6693722009658813, 0.024026138707995415, 0.5886296629905701, 0.3343849182128906, 0.1429186463356018, 0.041433583945035934, -0.5288561582565308, 0.44464221596717834, 0.33876845240592957, -0.32600128650665283, 0.05724537745118141, 0.13426056504249573, -0.5823383927345276, 0.17068244516849518, 0.06109876558184624, 0.007077856454998255, -0.002956442069262266, 0.5124893188476562, 0.8817282915115356, -0.16945751011371613, -0.07335994392633438, 0.405183345079422, -0.2933683395385742, -0.49485617876052856, -0.5707293748855591, -0.06361329555511475, 0.04969681426882744, 0.32178473472595215, 0.0980072021484375, 0.33341890573501587, 0.11508357524871826, -0.06282740086317062, 0.5269349217414856, 0.22118264436721802, -0.7202119827270508, -0.23447084426879883, 0.5735083818435669, 0.1739044040441513, -0.17716002464294434, 0.9807243347167969, -0.35690444707870483, -0.593462347984314, 1.1474424600601196, 0.35647714138031006, 1.163918137550354, -0.1825927495956421, 0.2505311071872711, 0.9239983558654785, 0.24985581636428833, -0.07916659116744995, 0.17053963243961334, 0.09586327522993088, -0.8212497234344482, -0.3064698278903961, -0.4649578928947449, 0.010121610946953297, 0.3671037554740906, -0.7481616735458374, 0.4037266671657562, -0.49273714423179626, -0.3774128556251526, -0.00008912744669942185, 0.16907401382923126, -1.027977466583252, 0.37877699732780457, 0.3023536801338196, 1.2486246824264526, -0.828262448310852, 0.8088997006416321, 0.883758008480072, -0.4884803295135498, -0.9447281360626221, -0.5281606912612915, -0.1162843108177185, -0.9862291812896729, 0.8284213542938232, 0.36679381132125854, 0.08793119341135025, 0.14657840132713318, -0.9292406439781189, -0.9222382307052612, 1.2031221389770508, 0.2742885649204254, -0.3325050175189972, 0.3201797902584076, -0.28950008749961853, 0.3002311587333679, -0.4238958954811096, 0.4389604330062866, 0.1093701496720314, 0.22256973385810852, 0.4964021146297455, -0.7699985504150391, 0.12458319216966629, -0.43250685930252075, 0.013938028365373611, 0.0019229719182476401, -0.8081528544425964, 0.8558779954910278, -0.25285717844963074, -0.19509479403495789, 0.17953260242938995, 0.8746635913848877, 0.0944657102227211, 0.34515517950057983, 0.48811984062194824, 0.9152056574821472, 0.44489777088165283, -0.1267833709716797, 0.8717567920684814, -0.12251625955104828, 0.6442855596542358, 0.9004381895065308, 0.2226339876651764, 0.6483566761016846, -0.013112190179526806, -0.09239521622657776, 0.3457789421081543, 1.1157735586166382, -0.3203551471233368, 0.3948292136192322, 0.29855480790138245, -0.16281186044216156, -0.4023464620113373, -0.19708013534545898, -0.5807883143424988, 0.5655924081802368, 0.18026724457740784, -0.5459610223770142, -0.2676142752170563, 0.2321271151304245, -0.231077179312706, -0.41234123706817627, -0.27214938402175903, 0.7013266086578369, 0.0847039446234703, -0.2699487507343292, 0.9580305218696594, -0.09524252265691757, 0.6327260732650757, -0.2802245616912842, -0.2993728816509247, -0.37216058373451233, 0.13148225843906403, -0.44092002511024475, -0.7288218140602112, 0.2738150954246521, -0.2975510060787201, -0.012361831963062286, 0.055336419492959976, 1.0862610340118408, -0.2457544207572937, -0.5238857865333557, 0.09056887030601501, 0.11618327349424362, 0.5251862406730652, -0.012490619905292988, -1.0422823429107666, 0.294228196144104, 0.02240750938653946, -0.3925029933452606, 0.32362663745880127, 0.3415018916130066, 0.3005883991718292, 1.0218470096588135, 0.4134545624256134, -0.17291733622550964, -0.08230537176132202, -0.33096423745155334, 1.0410932302474976, -0.49109089374542236, -0.1515122801065445, -0.5094345211982727, 0.5868995785713196, -0.13234661519527435, -0.4267757534980774, 0.44207337498664856, 0.48533448576927185, 0.8704912066459656, -0.11659791320562363, 0.4883430600166321, -0.06303215771913528, 0.16124370694160461, -0.20938310027122498, 0.593963623046875, -0.7776776552200317, -0.19859077036380768, -0.08554408699274063, -0.6847245693206787, -0.2544094920158386, 0.7290284037590027, -0.016274429857730865, 0.2864401936531067, 0.46111902594566345, 0.8781422972679138, -0.2693256735801697, -0.08031017333269119, 0.2667209804058075, -0.02817058190703392, 0.014662598259747028, 0.4205540418624878, 0.6553022861480713, -0.7685419917106628, 0.39158013463020325, -0.8452056646347046, -0.2530120313167572, -0.16825255751609802, -1.0320848226547241, -0.7649762034416199, -0.7955747246742249, -0.6224830746650696, -0.7190641164779663, -0.2742847502231598, 0.6473507881164551, 1.1051143407821655, -0.6632130146026611, -0.06618963927030563, -0.24900808930397034, 0.03094683215022087, -0.17274585366249084, -0.24040304124355316, 0.4836885333061218, -0.2010553777217865, -0.4891462028026581, -0.24902421236038208, -0.0208203736692667, 0.12246797978878021, -0.2860617935657501, 0.020788175985217094, -0.12347561120986938, -0.4337623715400696, 0.31766650080680847, 0.702918529510498, -0.582118809223175, -0.2893540561199188, -0.02037067897617817, -0.1697797179222107, -0.013522671535611153, 0.4522768557071686, -0.9840832948684692, 0.4407673478126526, 0.5427969098091125, 0.7587087154388428, 0.5312650799751282, -0.15167884528636932, 0.17176516354084015, -0.5798320174217224, 0.20323462784290314, 0.13360485434532166, 0.37541529536247253, 0.23361904919147491, -0.43952882289886475, 0.7609186172485352, 0.4221639037132263, -0.7172093391418457, -0.7511277198791504, 0.22325725853443146, -0.9923192858695984, -0.13592611253261566, 0.907825767993927, -0.2207476943731308, -0.48383328318595886, 0.27819645404815674, -0.0537600964307785, 0.4451914131641388, -0.14331218600273132, 0.5049615502357483, 0.3473595678806305, -0.18768008053302765, -0.6143516898155212, -0.46016260981559753, 0.5377501249313354, 0.10475437343120575, -0.4506666362285614, -0.1875925362110138, 0.253440797328949, 0.3972412645816803, 0.22420750558376312, 0.341757208108902, -0.07347879558801651, 0.22715720534324646, 0.1420096457004547, 0.6557464003562927, -0.5003734827041626, -0.43428584933280945, -0.4535352885723114, -0.09712859243154526, -0.1290431022644043, -0.7188406586647034 ]
cross-encoder/stsb-distilroberta-base
cross-encoder
"2021-08-05T08:41:53Z"
35,524
2
transformers
[ "transformers", "pytorch", "jax", "roberta", "text-classification", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- license: apache-2.0 --- # Cross-Encoder for Quora Duplicate Questions Detection This model was trained using [SentenceTransformers](https://sbert.net) [Cross-Encoder](https://www.sbert.net/examples/applications/cross-encoder/README.html) class. ## Training Data This model was trained on the [STS benchmark dataset](http://ixa2.si.ehu.eus/stswiki/index.php/STSbenchmark). The model will predict a score between 0 and 1 how for the semantic similarity of two sentences. ## Usage and Performance Pre-trained models can be used like this: ``` from sentence_transformers import CrossEncoder model = CrossEncoder('model_name') scores = model.predict([('Sentence 1', 'Sentence 2'), ('Sentence 3', 'Sentence 4')]) ``` The model will predict scores for the pairs `('Sentence 1', 'Sentence 2')` and `('Sentence 3', 'Sentence 4')`. You can use this model also without sentence_transformers and by just using Transformers ``AutoModel`` class
[ -0.2337435483932495, -0.8359883427619934, 0.2704041600227356, 0.23892052471637726, -0.39293766021728516, -0.03495657816529274, 0.1684756577014923, -0.17820724844932556, 0.12467557191848755, 0.7178803086280823, -0.7079653143882751, -0.441781222820282, -0.48284655809402466, 0.4586295485496521, -0.8812296986579895, 1.0624881982803345, -0.15582185983657837, 0.4117394685745239, -0.7210993766784668, -0.34884294867515564, -0.3752514719963074, -0.44514721632003784, -0.5014163255691528, -0.25818243622779846, 0.13688044250011444, 0.35915908217430115, 0.3952420651912689, 0.12024358659982681, 0.33845776319503784, 0.4170320928096771, -0.015857765451073647, 0.10859864950180054, -0.2458478808403015, 0.07400453835725784, -0.32146069407463074, -0.6293549537658691, 0.17587168514728546, -0.18226923048496246, 0.38658279180526733, 0.2561603784561157, -0.14221584796905518, 0.4847038686275482, 0.03870009630918503, 0.3054753243923187, -0.14875145256519318, -0.20902274549007416, -0.7331336140632629, 0.20473618805408478, 0.07508869469165802, -0.28866046667099, -0.05913437530398369, -0.6431150436401367, -0.07070872187614441, -0.5795235633850098, 0.3973231911659241, 0.012193565256893635, 1.1396411657333374, 0.35961952805519104, -0.5087421536445618, -0.2227366864681244, -0.4304977357387543, 0.8463109135627747, -0.5363669395446777, 0.18907280266284943, 0.3750622272491455, 0.3323788344860077, 0.09360936284065247, -0.8670312166213989, -1.045505166053772, 0.12362257391214371, -0.2283414751291275, 0.12427078932523727, -0.451626181602478, -0.5526468753814697, 0.2862018346786499, 0.3629502058029175, -1.0314747095108032, -0.0525381974875927, -0.7903012037277222, -0.36903488636016846, 0.4049226939678192, 0.46116000413894653, 0.26279643177986145, -0.5991887450218201, -0.7804632782936096, -0.20130489766597748, -0.1301984190940857, 0.25819873809814453, 0.3647986650466919, -0.039426613599061966, -0.10291874408721924, 0.6177671551704407, -0.4270491898059845, 0.553059458732605, 0.21995261311531067, 0.23183493316173553, 0.7629356384277344, -0.544670581817627, -0.013767316937446594, -0.26744702458381653, 1.090348482131958, 0.26546379923820496, 0.5012702345848083, 0.05889822542667389, 0.0023061896208673716, 0.1794733703136444, 0.4356907904148102, -0.6181126236915588, -0.08773007243871689, 0.27874401211738586, -0.4132935702800751, -0.4408397674560547, 0.14371687173843384, -0.4781820476055145, 0.1432569921016693, -0.21760235726833344, 0.8166073560714722, -0.5302343368530273, 0.015351387672126293, 0.3847143352031708, -0.3946138322353363, 0.4271673262119293, -0.020205672830343246, -0.42433658242225647, 0.47100237011909485, 0.5812572240829468, 0.623746395111084, -0.16424930095672607, -0.6663837432861328, -0.3551398515701294, -0.34009721875190735, 0.12529805302619934, 0.994377613067627, -0.3972465693950653, -0.17739035189151764, -0.1685241460800171, 0.30231523513793945, -0.15917237102985382, -0.5417366027832031, 0.6245054602622986, -0.5861890316009521, 0.9618236422538757, -0.3101558983325958, -0.7017820477485657, -0.4855155944824219, 0.5989780426025391, -0.7752678990364075, 1.2606602907180786, 0.3146687150001526, -0.9398790001869202, 0.170999214053154, -0.4010327160358429, -0.48888376355171204, 0.0866703987121582, -0.1457994133234024, -0.7187998294830322, -0.23645974695682526, 0.29029491543769836, 0.1863303780555725, -0.3330638110637665, 0.12766170501708984, -0.08684077858924866, -0.41555312275886536, 0.3872620463371277, -0.27288591861724854, 0.8376720547676086, 0.04596583917737007, -0.2971179187297821, 0.10778679698705673, -0.6756772398948669, 0.3930101990699768, 0.20408639311790466, -0.2968771457672119, -0.28141242265701294, -0.4835553765296936, 0.2994682192802429, 0.4065314829349518, 0.38202735781669617, -0.7824657559394836, -0.23836106061935425, -0.22547118365764618, 0.2990085184574127, 0.49053245782852173, 0.19005393981933594, 0.19246208667755127, -0.48114070296287537, 0.9425013065338135, 0.28513646125793457, 0.18316398561000824, 0.1575324982404709, -0.58051997423172, -0.7283249497413635, 0.33167049288749695, 0.3261161148548126, 0.8986366391181946, -0.8288432359695435, 0.8349912166595459, -0.15212325751781464, -0.573782742023468, -0.8107203841209412, 0.2643511891365051, 0.31941157579421997, 0.34800857305526733, 0.682111382484436, -0.2315889298915863, -0.7600811719894409, -1.0134280920028687, -0.5298272967338562, 0.03421464189887047, 0.01456092856824398, 0.013223077170550823, 0.9341298341751099, -0.10894978046417236, 1.073784351348877, -0.47921785712242126, -0.2215041071176529, -0.38967734575271606, 0.15332511067390442, 0.05574584752321243, 0.6917460560798645, 0.4702345132827759, -1.0701409578323364, -0.6787818074226379, -0.38839390873908997, -0.7809937000274658, 0.044273778796195984, 0.0015977614093571901, -0.17684416472911835, 0.09543734043836594, 0.4284745752811432, -0.7604367136955261, 0.42579540610313416, 0.43825381994247437, -0.24015268683433533, 0.3916965425014496, 0.013524680398404598, 0.3443058133125305, -1.483167052268982, -0.012432306073606014, -0.14439204335212708, -0.3530257046222687, -0.41137561202049255, 0.07976531982421875, 0.031249426305294037, -0.04536992684006691, -0.43761152029037476, 0.4909367859363556, -0.10238274186849594, 0.13215062022209167, -0.2039979249238968, 0.11396785825490952, 0.3224136233329773, 0.5659842491149902, 0.02207917347550392, 0.7143713235855103, 0.48465782403945923, -0.5246923565864563, 0.5606997609138489, 0.699164867401123, -0.7154791355133057, 0.48748165369033813, -1.0898164510726929, 0.3581011891365051, -0.04674313962459564, 0.32243597507476807, -1.013802409172058, 0.17611218988895416, 0.3812180757522583, -0.7281274199485779, -0.47595101594924927, 0.11893182247877121, -0.570310652256012, -0.7527107000350952, -0.3731379210948944, 0.6667370796203613, 0.5010291934013367, -0.6439645290374756, 0.6176217794418335, 0.2287386655807495, -0.0631178468465805, -0.7406480312347412, -0.9744651913642883, -0.37578684091567993, -0.03290901705622673, -0.6069730520248413, 0.1539447158575058, -0.19515129923820496, 0.2802504599094391, 0.2652072608470917, 0.051972754299640656, -0.21698129177093506, -0.089598149061203, 0.29969409108161926, 0.11072410643100739, -0.3246428966522217, 0.21031664311885834, 0.1604936271905899, -0.15665514767169952, 0.10746998339891434, -0.32720327377319336, 0.8909398913383484, -0.11742429435253143, -0.3245575726032257, -0.46704360842704773, 0.48174574971199036, 0.3700312674045563, -0.31576207280158997, 0.7137433290481567, 0.6882554888725281, -0.3985687494277954, -0.23642593622207642, -0.6717294454574585, -0.047024961560964584, -0.48833340406417847, 0.4991886019706726, -0.4601691663265228, -0.9856826663017273, 0.5159586668014526, 0.3268860876560211, -0.45262622833251953, 0.5342050790786743, 0.4353596866130829, 0.0842023566365242, 0.7730830311775208, 0.49517714977264404, -0.2031729519367218, 0.2472933530807495, -0.20713825523853302, 0.21520434319972992, -0.5019439458847046, -0.4617500305175781, -0.47296154499053955, -0.214406818151474, -0.5097629427909851, -0.6173014640808105, 0.17647850513458252, -0.004524949472397566, -0.14189468324184418, 0.6689287424087524, -0.6781512498855591, 0.7189804911613464, 0.723632276058197, 0.17768940329551697, 0.11776704341173172, 0.22117812931537628, 0.09880669414997101, 0.09752245247364044, -0.7224960327148438, -0.2781740427017212, 1.040744423866272, -0.02928205393254757, 0.6321334838867188, -0.2891663908958435, 0.6728101372718811, 0.19828397035598755, -0.238698348402977, -0.45158088207244873, 0.718201220035553, -0.30052435398101807, -0.5944111347198486, -0.27226191759109497, -0.6053239703178406, -1.1531039476394653, 0.3050462603569031, -0.1665075123310089, -0.19186459481716156, 0.0700819119811058, -0.23055483400821686, -0.5428656339645386, 0.26531165838241577, -0.3002870976924896, 1.1980208158493042, -0.3229517936706543, 0.05738913640379906, -0.3520582616329193, -0.5341038703918457, 0.28802087903022766, -0.18459920585155487, -0.08398041874170303, 0.03523065894842148, -0.03106832690536976, 0.8862242698669434, -0.3828865885734558, 0.6179867386817932, 0.08302462846040726, 0.20111757516860962, 0.39295071363449097, -0.18353170156478882, 0.11847566813230515, -0.050787266343832016, -0.049947600811719894, 0.223345547914505, 0.10802837461233139, -0.42926162481307983, -0.3172658383846283, 0.7982756495475769, -0.9771583080291748, -0.3780404031276703, -0.37437301874160767, -0.3656727373600006, 0.10951390862464905, 0.1830756813287735, 0.6279690265655518, 0.31769314408302307, -0.41644400358200073, 0.05972462520003319, 0.39662858843803406, -0.31564849615097046, 0.09768533706665039, 0.626569390296936, -0.14820609986782074, -0.5800223350524902, 0.577756941318512, -0.044785160571336746, 0.17942170798778534, 0.6055930852890015, 0.059960417449474335, -0.3967055082321167, -0.18994717299938202, -0.16904012858867645, 0.1786094307899475, -0.7998886108398438, -0.4099295735359192, -1.0637766122817993, -0.631014347076416, -0.5892221927642822, 0.31515344977378845, -0.12106674164533615, -0.6096689105033875, -0.3157561719417572, -0.26835307478904724, 0.7521350979804993, 0.6088438034057617, -0.13311368227005005, 0.2093125283718109, -0.8753235936164856, 0.7105798125267029, 0.4274623692035675, 0.11473777890205383, -0.08106474578380585, -0.8469987511634827, -0.1487179696559906, -0.08366109430789948, -0.28050002455711365, -0.5751782059669495, 0.4518513083457947, -0.06396016478538513, 0.5594485998153687, 0.01396746002137661, 0.0569261834025383, 0.5431370735168457, -0.33797141909599304, 0.7558349967002869, 0.16714663803577423, -1.02359938621521, 0.6064820289611816, 0.17161862552165985, 0.46924856305122375, 0.7683005928993225, 0.7488300204277039, -0.6286729574203491, -0.3703174293041229, -0.633419930934906, -0.7813321352005005, 0.7526677846908569, 0.28104448318481445, 0.4274415075778961, -0.09817610681056976, 0.18605007231235504, 0.5191801190376282, 0.12886758148670197, -1.059627890586853, -0.2367653250694275, -0.530189037322998, -0.43190860748291016, -0.018327565863728523, -0.15318991243839264, 0.14187006652355194, -0.5235999822616577, 0.6609126925468445, 0.12539012730121613, -0.055219028145074844, 0.20303405821323395, -0.2602558434009552, -0.09034276753664017, 0.3200041651725769, 0.2962549328804016, 0.30445969104766846, -0.024085769429802895, -0.2327425330877304, 0.4178037941455841, -0.34574806690216064, 0.017861800268292427, 0.2696623206138611, -0.385458767414093, 0.30387258529663086, 0.3011210262775421, 0.8966200947761536, 0.100064218044281, -0.506963849067688, 0.6977032423019409, -0.18086707592010498, -0.315094530582428, -0.8767592906951904, -0.054496534168720245, 0.07027489691972733, 0.47262412309646606, 0.13086071610450745, 0.24254867434501648, 0.0874873474240303, -0.497158944606781, 0.40596455335617065, 0.19118840992450714, -0.31588101387023926, -0.19698838889598846, 0.6932678818702698, 0.11156756430864334, -0.6478545069694519, 0.8152192234992981, -0.14857470989227295, -1.1654188632965088, 0.7012839913368225, 0.30234044790267944, 0.7710106372833252, -0.08799417316913605, 0.38324642181396484, 0.7029372453689575, 0.21131424605846405, -0.30673959851264954, 0.7021884322166443, -0.15873363614082336, -1.0028932094573975, 0.04005781561136246, -0.5938705205917358, -0.3495708405971527, 0.29126429557800293, -1.0490741729736328, 0.3456451892852783, -0.30893397331237793, -0.12901794910430908, -0.0089648999273777, -0.14306969940662384, -0.8355007767677307, 0.26257216930389404, -0.0218253955245018, 0.8038650155067444, -0.9502451419830322, 0.7637928128242493, 0.6124128103256226, -0.8453248143196106, -0.7540746927261353, -0.04691990464925766, -0.15704986453056335, -0.8842324018478394, 0.6857191324234009, 0.37279650568962097, 0.09875359386205673, -0.15900784730911255, -0.6013889312744141, -0.8148505091667175, 1.073102593421936, -0.16886261105537415, -0.5061779618263245, -0.010879037901759148, 0.5213351249694824, 0.6556836366653442, -0.3253064453601837, 0.3850518763065338, 0.5108503103256226, 0.2422531694173813, -0.23884952068328857, -0.8812428712844849, 0.15095122158527374, -0.7103018760681152, -0.20709124207496643, 0.04454128071665764, -0.638300359249115, 1.2232028245925903, 0.021131742745637894, -0.04143884778022766, 0.6251171231269836, 0.5162319540977478, 0.3744798004627228, 0.32477647066116333, 0.648758053779602, 0.7667257189750671, 0.5862427949905396, 0.08854750543832779, 1.0260452032089233, -0.27026796340942383, 0.48131904006004333, 1.2399945259094238, -0.33521080017089844, 0.9907751083374023, 0.3181205987930298, -0.14845044910907745, 0.9820255041122437, 0.3574466407299042, -0.6328139901161194, 0.47712355852127075, 0.24601396918296814, 0.1740572601556778, -0.4692111313343048, 0.20332786440849304, -0.5738855004310608, 0.5436069369316101, -0.08032175153493881, -0.3418547213077545, -0.04466300830245018, 0.23344704508781433, -0.39391976594924927, 0.43130606412887573, 0.011044139973819256, 0.6013944745063782, 0.022742630913853645, -0.7193617820739746, 0.5041977167129517, -0.09582778066396713, 0.9209587574005127, -0.8060336112976074, 0.02479068748652935, -0.32153791189193726, 0.3583761155605316, -0.030960163101553917, -0.993513286113739, 0.18966078758239746, -0.03368549793958664, -0.41935116052627563, -0.007546249311417341, 0.8178482055664062, -0.702567994594574, -0.7208782434463501, 0.596778154373169, 0.6408606767654419, 0.22891739010810852, -0.19672469794750214, -1.060227632522583, -0.300864040851593, 0.06320830434560776, 0.03366286680102348, -0.012929225340485573, 0.6030928492546082, 0.08536618947982788, 0.6890925168991089, 0.6119635105133057, -0.2709258198738098, 0.1666395515203476, 0.42156514525413513, 0.8229193687438965, -1.054868459701538, -0.6669396758079529, -0.5563499927520752, 0.19833281636238098, -0.342617392539978, -0.6741082668304443, 0.9538940787315369, 0.9862798452377319, 1.0785549879074097, -0.37573376297950745, 0.7584690451622009, 0.19077736139297485, 0.9544984102249146, -0.39492082595825195, 0.6385753750801086, -0.7335911393165588, 0.12965507805347443, -0.017469968646764755, -0.6271412968635559, 0.1449972242116928, 0.5338446497917175, -0.2524075210094452, 0.053105782717466354, 0.9912139773368835, 1.0219708681106567, -0.1652723252773285, 0.26166415214538574, 0.02682485431432724, 0.17405343055725098, -0.376143217086792, 0.7917618155479431, 1.1292061805725098, -0.9439566731452942, 1.0453846454620361, -0.31101396679878235, 0.44465744495391846, 0.06636542826890945, -0.12911728024482727, -1.0380210876464844, -0.5351217985153198, -0.4548296332359314, -0.47349363565444946, -0.11680720746517181, 0.6471579074859619, 0.4789963662624359, -1.14995539188385, -0.07770555466413498, 0.06552242487668991, 0.14475733041763306, -0.17828039824962616, -0.27972105145454407, 0.2325800210237503, 0.016014311462640762, -0.5941177606582642, 0.11477412283420563, -0.06271017342805862, -0.047573961317539215, -0.0681915134191513, 0.03372245281934738, -0.5189976692199707, 0.18658243119716644, 0.3388668894767761, 0.12219875305891037, -0.7310510873794556, -0.30290836095809937, 0.004537483677268028, -0.40916144847869873, 0.03794887289404869, 0.5517133474349976, -1.1108365058898926, -0.03534756600856781, 0.8254148364067078, 0.5014280676841736, 0.7046147584915161, 0.24325618147850037, 0.40272364020347595, -0.45815983414649963, 0.0332852303981781, 0.23963330686092377, 0.38194844126701355, 0.5390134453773499, -0.27901193499565125, 0.5492445230484009, 0.34923186898231506, -0.44627246260643005, -0.6285543441772461, -0.036775629967451096, -1.1439110040664673, -0.4026256203651428, 1.1038340330123901, -0.07806581258773804, -0.26885393261909485, -0.18121035397052765, -0.1385723501443863, 0.3166533410549164, -0.1972455382347107, 0.7474128007888794, 0.44392159581184387, 0.19125919044017792, -0.12024934589862823, -0.07789372652769089, 0.1189703494310379, 0.7706339359283447, -0.962205171585083, -0.4860088527202606, 0.054238513112068176, 0.8913545608520508, 0.17716357111930847, 0.46022504568099976, -0.07202313095331192, 0.5246529579162598, 0.15787352621555328, 0.10635751485824585, -0.03206239268183708, 0.18662871420383453, -0.4204172194004059, 0.19138669967651367, -0.6670414805412292, -0.6109390258789062 ]
smallcloudai/Refact-1_6B-fim
smallcloudai
"2023-11-09T07:09:31Z"
35,501
104
transformers
[ "transformers", "pytorch", "safetensors", "gpt_refact", "text-generation", "code", "custom_code", "en", "dataset:bigcode/the-stack-dedup", "dataset:rombodawg/2XUNCENSORED_MegaCodeTraining188k", "dataset:bigcode/commitpackft", "arxiv:2108.12409", "arxiv:1607.06450", "arxiv:1910.07467", "arxiv:1911.02150", "license:bigscience-openrail-m", "model-index", "has_space", "region:us" ]
text-generation
"2023-08-29T15:48:36Z"
--- pipeline_tag: text-generation inference: true widget: - text: 'def print_hello_world():' example_title: Hello world group: Python license: bigscience-openrail-m pretrain-datasets: - books - arxiv - c4 - falcon-refinedweb - wiki - github-issues - stack_markdown - self-made dataset of permissive github code datasets: - bigcode/the-stack-dedup - rombodawg/2XUNCENSORED_MegaCodeTraining188k - bigcode/commitpackft metrics: - code_eval library_name: transformers tags: - code model-index: - name: Refact-1.6B results: - task: type: text-generation dataset: type: openai_humaneval name: HumanEval metrics: - name: pass@1 (T=0.01) type: pass@1 value: 32.0 verified: false - name: pass@1 (T=0.2) type: pass@1 value: 31.5 verified: false - name: pass@10 (T=0.8) type: pass@10 value: 53.0 verified: false - name: pass@100 (T=0.8) type: pass@100 value: 76.9 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize Python metrics: - name: pass@1 (T=0.2) type: pass@1 value: 35.8 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize JavaScript metrics: - name: pass@1 (T=0.2) type: pass@1 value: 31.6 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize Java metrics: - name: pass@1 (T=0.2) type: pass@1 value: 29.1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize Go metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize C++ metrics: - name: pass@1 (T=0.2) type: pass@1 value: 26.3 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize Rust metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalSynthesize Average metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests Python metrics: - name: pass@1 (T=0.2) type: pass@1 value: 18.38 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests JavaScript metrics: - name: pass@1 (T=0.2) type: pass@1 value: 12.28 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests Java metrics: - name: pass@1 (T=0.2) type: pass@1 value: 15.12 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests Go metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests C++ metrics: - name: pass@1 (T=0.2) type: pass@1 value: 13.17 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests Rust metrics: - name: pass@1 (T=0.2) type: pass@1 value: 2.8 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixTests Average metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs Python metrics: - name: pass@1 (T=0.2) type: pass@1 value: 26.92 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs JavaScript metrics: - name: pass@1 (T=0.2) type: pass@1 value: 26.85 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs Java metrics: - name: pass@1 (T=0.2) type: pass@1 value: 30.76 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs Go metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs C++ metrics: - name: pass@1 (T=0.2) type: pass@1 value: 25.94 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs Rust metrics: - name: pass@1 (T=0.2) type: pass@1 value: 8.44 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalFixDocs Average metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain Python metrics: - name: pass@1 (T=0.2) type: pass@1 value: 26.46 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain JavaScript metrics: - name: pass@1 (T=0.2) type: pass@1 value: 17.86 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain Java metrics: - name: pass@1 (T=0.2) type: pass@1 value: 20.94 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain Go metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain C++ metrics: - name: pass@1 (T=0.2) type: pass@1 value: 18.78 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain Rust metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: bigcode/humanevalpack name: HumanEvalExplain Average metrics: - name: pass@1 (T=0.2) type: pass@1 value: -1 verified: false - task: type: text-generation dataset: type: mbpp name: MBPP metrics: - name: pass@1 (T=0.01) type: pass@1 value: 31.15 verified: false - task: type: text-generation dataset: type: ds1000 name: DS-1000 (Overall Completion) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 10.1 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (C++) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 21.61 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (C#) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 13.91 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (D) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 9.5 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Go) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 53.57 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Java) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 21.58 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Julia) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 13.75 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (JavaScript) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 26.88 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Lua) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 15.26 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (PHP) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 23.04 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Perl) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 12.1 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Python) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 29.6 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (R) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 13.77 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Ruby) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 12.68 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Racket) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 4.29 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Rust) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 19.54 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Scala) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 18.33 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Bash) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 5.7 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (Swift) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 17.68 verified: false - task: type: text-generation dataset: type: nuprl/MultiPL-E name: MultiPL-HumanEval (TypeScript) metrics: - name: pass@1 (T=0.2) type: pass@1 value: 25 verified: false language: - en --- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/643a9dd0c5f633a7fa7e804a/HkB0QYV0BbmB3ktMugbZy.png) # Refact-1.6B Finally, the model we started training with our [blog post](https://refact.ai/blog/2023/applying-recent-innovations-to-train-model/) is ready 🎉 After fine-tuning on generated data, it beats Replit 3b, Stability Code 3b and many other models. It almost beats StarCoder ten times the size! Model | Size | HumanEval pass@1 | HumanEval pass@10 | ----------------------|---------------|--------------------|--------------------| DeciCoder-1b | 1b | 19.1% | | <b>Refact-1.6-fim</b> | <b>1.6b</b> | <b>32.0%</b> | <b>53.0%</b> | StableCode | 3b | 20.2% | 33.8% | ReplitCode v1 | 3b | 21.9% | | CodeGen2.5-multi | 7b | 28.4% | 47.5% | CodeLlama | 7b | 33.5% | 59.6% | StarCoder | 15b | 33.6% | | Likely, it's the best model for practical use in your IDE for code completion because it's smart and fast! You can start using it right now by downloading the [Refact plugin](https://refact.ai/). You can host the model yourself, too, using the [open source docker container](https://github.com/smallcloudai/refact). And it's multi-language (see MultiPL-HumanEval and other metrics below) and it works as a chat (see the section below). # It Works As a Chat The primary application of this model is code completion (infill) in multiple programming languages. But it works as a chat quite well. HumanEval results using instruction following (chat) format, against models specialized for chat only: Model | Size | pass@1 | pass@10 | -----------------------|--------|----------|----------| <b>Refact-1.6-fim</b> | 1.6b | 38.4% | 55.6% | StableCode-instruct | 3b | 26.9% | 36.2% | OctoGeeX | 6b | 44.7% | | CodeLlama-instruct | 7b | 34.8% | 64.3% | CodeGen2.5-instruct | 7b | 36.2% | 60.87 | CodeLlama-instruct | 13b | 42.7% | 71.6% | StarChat-β | 15b | 33.5% | | OctoCoder | 15b | 46.2% | | # Example Fill-in-the-middle uses special tokens to identify the prefix/middle/suffix part of the input and output: ```python # pip install -q transformers from transformers import AutoModelForCausalLM, AutoTokenizer checkpoint = "smallcloudai/Refact-1_6B-fim" device = "cuda" # for GPU usage or "cpu" for CPU usage tokenizer = AutoTokenizer.from_pretrained(checkpoint) model = AutoModelForCausalLM.from_pretrained(checkpoint, trust_remote_code=True).to(device) prompt = '<fim_prefix>def print_hello_world():\n """<fim_suffix>\n print("Hello world!")<fim_middle>' inputs = tokenizer.encode(prompt, return_tensors="pt").to(device) outputs = model.generate(inputs, max_length=100, temperature=0.2) print("-"*80) print(tokenizer.decode(outputs[0])) ``` # Chat Format The same model works as chat (experimental). ```python prompt_template = "<empty_output>SYSTEM {system}\n" \ "<empty_output>USER {query}\n" \ "<empty_output>ASSISTANT" prompt = prompt_template.format(system="You are a programming assistant", query="How do I sort a list in Python?") ``` # Architecture As described in more detail in the blog post, we used: - [ALiBi](https://arxiv.org/abs/2108.12409) based attention - [LayerNorm](https://arxiv.org/abs/1607.06450v1) instead of [RMSNorm](https://arxiv.org/pdf/1910.07467.pdf) - [Multi Query Attention](https://arxiv.org/abs/1911.02150) We also used LiON, flash attention, early dropout. It's not that innovative that you can't run it, in fact you can -- see an example below. # Pretraining For the base model, we used our own dataset that contains code with permissive licenses only, and open text datasets. Filtering is the key to success of this model: - We only used text in English - Only topics related to computer science - Applied heavy deduplication The text to code proportion was 50:50, model trained for 1.2T tokens. We don't release the base model, because its Fill-in-the-Middle (FIM) capability likes to repeat itself too much, so its practical use is limited. But if you still want it, write us a message on Discord. # Finetuning We tested our hypothesis that chat data should boost base model performance in FIM and regular left-to-right code completion. We found that just 15% of open [code](https://huggingface.co/datasets/bigcode/commitpackft) [instruction-following](https://huggingface.co/datasets/rombodawg/2XUNCENSORED_MegaCodeTraining188k) datasets, that we filtered for quality, improves almost all metrics. Additionally, to improve FIM, we observed common failure modes, and prepared a synthetic dataset based on [The Stack dedup v1.1](https://huggingface.co/datasets/bigcode/the-stack-dedup) to address them. There is a distribution shift between typical code on the internet, and the code you write in your IDE. The former is likely finished, so the model tries to come up with a suggestion that makes the code complete. You are likely to have half-written code as you work on it, there is no single addition that can repair it fully. In practice, model needs to have a tendency to stop after a couple of lines are added, and sometimes don't write anything at all. We found that just giving it empty completions, single line completions, multiline completions that end with a smaller text indent or at least a newline -- makes it much more usable. This data was used as the rest 85% of the finetune dataset. The final model is the result of several attempts to make it work as good as possible for code completion, and to perform well on a wide range of metrics. The best attempt took 40B tokens. # Limitations and Bias The Refact-1.6B model was trained on text in English. But it has seen a lot more languages in code comments. Its performance on non-English languages is lower, for sure. # Model Stats - **Architecture:** LLAMA-like model with multi-query attention - **Objectives** Fill-in-the-Middle, Chat - **Tokens context:** 4096 - **Pretraining tokens:** 1.2T - **Finetuning tokens:** 40B - **Precision:** bfloat16 - **GPUs** 64 NVidia A5000 - **Training time** 28 days # License The model is licensed under the BigScience OpenRAIL-M v1 license agreement # Citation If you are using this model, please give a link to this page.
[ -0.46195122599601746, -0.8280261158943176, 0.10549433529376984, 0.13013243675231934, -0.12458082288503647, -0.13181649148464203, -0.36818215250968933, -0.5089994072914124, 0.11791317164897919, 0.4489307403564453, -0.45309844613075256, -0.4870406985282898, -0.4821227490901947, -0.013445019721984863, -0.3416530191898346, 1.0660648345947266, 0.2600380778312683, 0.06905622780323029, -0.18341302871704102, -0.21626754105091095, -0.573160707950592, -0.7384383082389832, -0.7464144825935364, -0.32730716466903687, 0.44259390234947205, 0.6116642951965332, 0.6611101627349854, 0.6934693455696106, 0.749873161315918, 0.3265121877193451, -0.20424649119377136, 0.0965990349650383, -0.6845102906227112, -0.25935667753219604, 0.14291584491729736, -0.6337140202522278, -0.5387573838233948, 0.08037219941616058, 0.3417052924633026, 0.3644135594367981, -0.12891727685928345, 0.39874112606048584, 0.03818037733435631, 0.8425891995429993, -0.43498679995536804, 0.1276431679725647, -0.4997391104698181, -0.19360573589801788, 0.00531645305454731, 0.1271599978208542, -0.3811812102794647, -0.16073843836784363, -0.08148433268070221, -0.4230998158454895, 0.13240520656108856, 0.1578683853149414, 1.113402009010315, 0.5483555793762207, -0.2543695569038391, -0.17596974968910217, -0.7223314046859741, 0.7453097701072693, -0.9445033073425293, 0.5064433217048645, 0.3502827286720276, 0.20859569311141968, -0.18649162352085114, -0.9571314454078674, -0.6976541876792908, -0.31508857011795044, -0.18731217086315155, 0.05663483589887619, -0.21937578916549683, 0.13549740612506866, 0.5373511910438538, 0.5374177694320679, -0.5697004795074463, 0.21977587044239044, -0.6137902140617371, -0.11993306130170822, 0.7243526577949524, 0.07424357533454895, 0.20077230036258698, -0.2633303999900818, -0.322445273399353, -0.17301855981349945, -0.5107129812240601, 0.3406066298484802, 0.16042862832546234, 0.10238775610923767, -0.2973985970020294, 0.45890748500823975, -0.37935131788253784, 0.6375926733016968, 0.11564632505178452, -0.14782792329788208, 0.3464169204235077, -0.5526716709136963, -0.4411550462245941, -0.38910049200057983, 1.0286948680877686, 0.3558381497859955, 0.18774063885211945, 0.15480488538742065, -0.1273908019065857, 0.07400663197040558, 0.1908462792634964, -0.9498044848442078, -0.3652663826942444, 0.440961629152298, -0.6605232357978821, -0.3118368983268738, -0.18029212951660156, -0.44472575187683105, -0.008536780253052711, -0.420697420835495, 0.3832218050956726, -0.5958726406097412, -0.21047309041023254, 0.2062104195356369, 0.06390628218650818, 0.1649821400642395, 0.2577144503593445, -0.716341495513916, 0.09948258846998215, 0.6502901315689087, 0.8209986090660095, 0.046866439282894135, -0.2254556119441986, -0.31149372458457947, -0.5210888385772705, -0.18744364380836487, 0.6138333678245544, -0.28520938754081726, -0.04258911684155464, -0.45240485668182373, -0.08070890605449677, -0.10990964621305466, -0.4042779207229614, 0.34516653418540955, -0.49417591094970703, 0.42287448048591614, -0.01512476522475481, -0.6460664868354797, -0.3235371708869934, 0.23413115739822388, -0.5615991353988647, 1.0196118354797363, -0.04401244968175888, -0.860718309879303, 0.21785762906074524, -0.7184548377990723, -0.06289157271385193, -0.20648403465747833, -0.037468358874320984, -0.43200257420539856, -0.11746000498533249, 0.08716870844364166, 0.48575466871261597, -0.3851868212223053, 0.3455906808376312, -0.3656671345233917, -0.6739135980606079, 0.2853025496006012, -0.38926857709884644, 0.8571817278862, 0.5322717428207397, -0.33322253823280334, 0.14662188291549683, -0.7563354969024658, 0.16748449206352234, 0.08986181020736694, -0.3491426706314087, -0.11610734462738037, -0.17785388231277466, 0.09942707419395447, 0.46776217222213745, 0.24171754717826843, -0.3851664364337921, 0.26042765378952026, -0.48770928382873535, 0.632435142993927, 0.4661417603492737, 0.00937313586473465, 0.4186226427555084, -0.5251712203025818, 0.47351694107055664, 0.025116246193647385, 0.36212727427482605, -0.21622388064861298, -0.507968008518219, -1.0533827543258667, -0.4785771667957306, 0.6153120398521423, 0.5878747701644897, -0.6052292585372925, 0.5894471406936646, -0.27699393033981323, -0.9187868237495422, -0.6457724571228027, 0.1338837742805481, 0.6491367220878601, 0.37802523374557495, 0.2844015955924988, -0.23911604285240173, -0.5590284466743469, -0.9619875550270081, 0.04935784637928009, -0.29811474680900574, 0.00826867762953043, 0.18725071847438812, 0.6254771947860718, -0.47021594643592834, 0.8864719271659851, -0.4541113078594208, -0.26442497968673706, -0.31778016686439514, -0.07732498645782471, 0.4533041715621948, 0.7369616627693176, 0.5398473739624023, -0.7655011415481567, -0.4111733138561249, -0.1435803771018982, -0.6620712280273438, 0.1453636884689331, -0.12013423442840576, -0.3001839816570282, 0.31416991353034973, 0.5434598326683044, -0.6375474333763123, 0.4020419120788574, 0.4626161754131317, -0.2712368369102478, 0.3639245927333832, -0.07412081956863403, 0.12186513841152191, -1.2022240161895752, 0.42376601696014404, -0.1391313523054123, -0.13241872191429138, -0.6412445902824402, 0.1821383833885193, 0.11353333294391632, -0.0593082457780838, -0.43322595953941345, 0.5954420566558838, -0.35312992334365845, 0.23188389837741852, -0.14956803619861603, -0.02529548481106758, 0.00041249149944633245, 0.9809731841087341, -0.13599209487438202, 0.706129789352417, 0.34236088395118713, -0.6373382806777954, 0.18985702097415924, 0.26991796493530273, -0.25889235734939575, 0.05115486681461334, -0.8420606255531311, 0.26846790313720703, -0.041759807616472244, 0.18364988267421722, -1.198165774345398, -0.20437121391296387, 0.24648882448673248, -0.6867142915725708, 0.2569338381290436, -0.33760836720466614, -0.6305482387542725, -0.5094395279884338, -0.19385792315006256, 0.3107147216796875, 0.7073357105255127, -0.4356165826320648, 0.39510002732276917, 0.28212055563926697, 0.021077893674373627, -0.6233082413673401, -0.6849529147148132, -0.08297623693943024, -0.2123507410287857, -0.7876590490341187, 0.2440904825925827, -0.33883780241012573, -0.07189901918172836, -0.23932211101055145, 0.015497246757149696, -0.12965264916419983, 0.2778335213661194, 0.4035030007362366, 0.42032676935195923, -0.17244909703731537, 0.07372550666332245, -0.3424941599369049, -0.08601749688386917, -0.10963192582130432, -0.05077020078897476, 0.6982273459434509, -0.33674195408821106, -0.21904194355010986, -0.6414475440979004, 0.11605703830718994, 0.7841407060623169, -0.3387085199356079, 0.6702927350997925, 0.46046802401542664, -0.39320769906044006, 0.007716778665781021, -0.8005916476249695, -0.2638395428657532, -0.4768373370170593, 0.39367225766181946, -0.23684734106063843, -0.7910014390945435, 0.661807119846344, 0.3005470335483551, 0.3398272395133972, 0.46100446581840515, 0.43099069595336914, 0.008967787027359009, 1.0808862447738647, 0.7339034676551819, -0.2672397792339325, 0.7339893579483032, -0.6627193093299866, 0.24491824209690094, -0.589026927947998, -0.2111702561378479, -0.572442889213562, -0.3772086799144745, -0.6760022044181824, -0.3477594554424286, 0.14280492067337036, 0.4356544613838196, -0.3313145637512207, 0.4647698402404785, -0.6747451424598694, 0.2729947566986084, 0.660040020942688, 0.1370425969362259, 0.3387559652328491, 0.06266533583402634, 0.06982327252626419, -0.07419990003108978, -0.9311615824699402, -0.542071521282196, 1.1562395095825195, 0.5850195288658142, 0.6648924350738525, -0.05362888425588608, 0.8712522983551025, 0.06645467132329941, 0.4710846245288849, -0.7267038822174072, 0.41969582438468933, -0.06754691898822784, -0.5849015712738037, -0.11356712132692337, -0.5671676397323608, -0.7983523607254028, 0.2772006690502167, -0.10927516967058182, -0.5483042597770691, 0.17624154686927795, 0.2034173309803009, -0.6504358053207397, 0.09190310537815094, -1.004662275314331, 1.0787346363067627, -0.22352714836597443, -0.33352211117744446, -0.2845189571380615, -0.5238805413246155, 0.5244506597518921, 0.03089267760515213, 0.23119810223579407, -0.06111402064561844, 0.12971532344818115, 0.8329215049743652, -0.605628490447998, 0.793567955493927, -0.07171715795993805, 0.18191975355148315, 0.3543185591697693, -0.06168024241924286, 0.3379577398300171, 0.11385832726955414, -0.06484434008598328, 0.3785165846347809, 0.09414898604154587, -0.29027095437049866, -0.5883892774581909, 0.6779513359069824, -0.8644934296607971, -0.5284584164619446, -0.30995696783065796, -0.35694620013237, 0.08361674845218658, 0.27253055572509766, 0.42844802141189575, 0.5227545499801636, -0.01420142687857151, 0.3415583074092865, 0.6016665101051331, -0.22757874429225922, 0.41690298914909363, 0.6212007999420166, -0.3392159342765808, -0.5442977547645569, 0.7922970056533813, 0.22892281413078308, 0.25949329137802124, 0.17140084505081177, -0.06988295912742615, -0.11277425289154053, -0.3632979393005371, -0.43693220615386963, 0.3663805425167084, -0.6178516149520874, -0.4314786195755005, -0.9526070952415466, -0.4250263273715973, -0.38451942801475525, 0.0007280768477357924, -0.5413610935211182, -0.4697984755039215, -0.27615049481391907, 0.08789945393800735, 0.5206040740013123, 0.5913734436035156, 0.14306791126728058, 0.27223241329193115, -0.8332244753837585, 0.21115481853485107, 0.04523627087473869, 0.40393444895744324, 0.03380843251943588, -0.7874966859817505, -0.45626965165138245, 0.35338544845581055, -0.3413555324077606, -0.4937889575958252, 0.38486412167549133, 0.048812441527843475, 0.40800684690475464, 0.2986232042312622, 0.0340455025434494, 0.8224244117736816, -0.2762264907360077, 0.7674931287765503, 0.09608597308397293, -0.6800799369812012, 0.4956933557987213, -0.13744767010211945, 0.2927945852279663, 0.64720618724823, 0.24891452491283417, -0.578578770160675, -0.4984499216079712, -0.890306830406189, -0.8204050660133362, 0.8907132744789124, 0.4100642800331116, 0.06340555846691132, -0.014244952239096165, 0.40704092383384705, -0.15817755460739136, 0.1716555505990982, -0.709977388381958, -0.35978686809539795, -0.14798425137996674, -0.2623717784881592, 0.009065394289791584, -0.21195261180400848, 0.22729943692684174, -0.46227407455444336, 0.7263132333755493, 0.008443551138043404, 0.5384045839309692, 0.25483253598213196, -0.163321852684021, 0.22162945568561554, 0.10244593024253845, 0.5134977102279663, 0.48682713508605957, -0.2381676584482193, -0.24736152589321136, 0.10123496502637863, -0.3919268548488617, -0.11446356028318405, 0.20330676436424255, -0.14354711771011353, -0.01707610674202442, 0.37569862604141235, 0.780688464641571, 0.21173062920570374, -0.6936212778091431, 0.5201577544212341, -0.27568066120147705, -0.06446685642004013, -0.39742255210876465, 0.40638941526412964, 0.0532325878739357, 0.20107501745224, 0.18606066703796387, 0.32914552092552185, 0.12219730019569397, -0.4603383243083954, 0.16431467235088348, 0.2136392742395401, -0.25814151763916016, -0.1972322165966034, 0.8271286487579346, 0.24026593565940857, -0.24848338961601257, 0.8054019808769226, -0.178953155875206, -0.5834687948226929, 0.9302935004234314, 0.26049885153770447, 0.6994143724441528, 0.041975393891334534, -0.11131526529788971, 0.7003716230392456, 0.23083235323429108, -0.24804343283176422, 0.4154246151447296, -0.022123200818896294, -0.5713487267494202, -0.38831403851509094, -0.5807448625564575, -0.17118163406848907, 0.15503720939159393, -0.4870358407497406, 0.5363475680351257, -0.5609166026115417, -0.2891947329044342, -0.02642929181456566, 0.25830087065696716, -0.9405151009559631, 0.20931391417980194, 0.03954194113612175, 1.086557388305664, -0.6415998339653015, 0.9078071713447571, 0.6585143208503723, -0.8581316471099854, -0.9307290315628052, -0.23701313138008118, -0.177620068192482, -0.5564883947372437, 0.5966346263885498, 0.45739418268203735, 0.16276727616786957, 0.16737140715122223, -0.7062941789627075, -1.1155848503112793, 1.1558301448822021, 0.23284369707107544, -0.7168928980827332, -0.21332645416259766, -0.0746137797832489, 0.7683552503585815, -0.36928606033325195, 0.6272144317626953, 0.4759509861469269, 0.19686909019947052, -0.07778993248939514, -1.0901144742965698, 0.036672443151474, -0.6591110229492188, 0.05826873704791069, 0.0169067345559597, -0.9911521077156067, 0.9297832250595093, -0.2935410439968109, -0.20353133976459503, 0.13236989080905914, 0.6690173149108887, 0.23541492223739624, 0.21893225610256195, 0.45851024985313416, 0.6122831702232361, 0.7130438089370728, -0.02874162420630455, 1.08368980884552, -0.6653269529342651, 0.49931737780570984, 1.0292549133300781, 0.0693260207772255, 0.9533069729804993, 0.2126002460718155, -0.07904323935508728, 0.4685244858264923, 0.7232919931411743, -0.1031579002737999, 0.26974013447761536, 0.005244286730885506, 0.20664437115192413, -0.22679667174816132, -0.005025013349950314, -0.40622714161872864, 0.4508994221687317, 0.2151423543691635, -0.2633283734321594, 0.1793537437915802, 0.12359602749347687, 0.1435007005929947, -0.08184870332479477, 0.00006726138963131234, 0.8984406590461731, 0.16202540695667267, -0.8513717651367188, 1.1244707107543945, 0.11100397258996964, 0.9814052581787109, -0.5016837120056152, -0.033925384283065796, -0.51591956615448, 0.3864160478115082, -0.3185707628726959, -0.43925464153289795, 0.2078918218612671, 0.060351308435201645, -0.3600802421569824, -0.14244362711906433, 0.5348408818244934, -0.5188772082328796, -0.3801511228084564, 0.3283734619617462, 0.2602696418762207, 0.20032256841659546, -0.1750440150499344, -0.774493932723999, 0.10454775393009186, 0.19525159895420074, -0.3532518148422241, 0.13232389092445374, 0.2561917304992676, -0.05183626711368561, 0.8577088117599487, 0.7482788562774658, -0.2017531841993332, -0.03168704733252525, -0.12935252487659454, 0.9419479966163635, -0.6873391270637512, -0.508342444896698, -0.7476557493209839, 0.7273933291435242, -0.1567521095275879, -0.42810869216918945, 0.7064458131790161, 0.690376341342926, 1.024967908859253, 0.031127477064728737, 0.5728592276573181, -0.29419681429862976, 0.4449194073677063, -0.4770776629447937, 0.8684936761856079, -0.6642395853996277, 0.41414883732795715, -0.13699351251125336, -0.783263623714447, -0.12073332071304321, 0.48113372921943665, -0.21515560150146484, 0.12350727617740631, 0.52653968334198, 1.0925973653793335, -0.16678552329540253, -0.05156974866986275, 0.24577511847019196, 0.2362622171640396, 0.28607121109962463, 0.7121948599815369, 0.6494840979576111, -0.8807520866394043, 0.7440041303634644, -0.5388601422309875, -0.25733450055122375, -0.34949353337287903, -0.41887006163597107, -1.0046216249465942, -0.5680790543556213, -0.37631914019584656, -0.4986063241958618, -0.24039117991924286, 1.2425767183303833, 0.8009418845176697, -0.7416104674339294, -0.17015652358531952, 0.06804432719945908, 0.10961657017469406, -0.2045670598745346, -0.24982070922851562, 0.18134012818336487, -0.4580128788948059, -0.7522311210632324, 0.12024611979722977, -0.18372990190982819, 0.020189883187413216, -0.11127259582281113, -0.15869012475013733, -0.2885153293609619, -0.03069143369793892, 0.4346581697463989, 0.20663319528102875, -0.6695870161056519, -0.164194718003273, 0.20756201446056366, -0.5433728098869324, 0.11219986528158188, 0.5606042742729187, -0.6721736192703247, 0.3414621651172638, 0.6684246063232422, 0.5340869426727295, 0.3710721433162689, -0.07050111144781113, 0.4562024474143982, -0.513592004776001, 0.24866431951522827, 0.04838762432336807, 0.44151243567466736, 0.24747228622436523, -0.502157986164093, 0.6939364075660706, 0.19050687551498413, -0.7284467220306396, -0.815430760383606, -0.10371778905391693, -0.7555840611457825, -0.18849892914295197, 1.1221935749053955, -0.06459792703390121, -0.29852721095085144, -0.01940956711769104, -0.4738139808177948, 0.31764453649520874, -0.42194318771362305, 0.8431064486503601, 0.6359851360321045, 0.021160047501325607, -0.021907370537519455, -0.603946328163147, 0.5752708911895752, 0.5431552529335022, -0.5923383831977844, 0.0701863095164299, 0.5988106727600098, 0.5518446564674377, 0.2636321783065796, 0.8529675602912903, -0.02549881860613823, 0.43397173285484314, -0.2199326753616333, 0.4094194769859314, -0.3064061999320984, -0.2744705080986023, -0.478640615940094, -0.1157587394118309, 0.05235305055975914, -0.22854332625865936 ]
THUDM/chatglm2-6b-32k
THUDM
"2023-10-12T20:38:40Z"
35,393
282
transformers
[ "transformers", "pytorch", "chatglm", "glm", "thudm", "custom_code", "zh", "en", "arxiv:2103.10360", "arxiv:2210.02414", "arxiv:2306.15595", "arxiv:1911.02150", "endpoints_compatible", "has_space", "region:us" ]
null
"2023-07-30T14:16:43Z"
--- language: - zh - en tags: - glm - chatglm - thudm --- # ChatGLM2-6B-32K <p align="center"> 💻 <a href="https://github.com/THUDM/ChatGLM2-6B" target="_blank">Github Repo</a> • 🐦 <a href="https://twitter.com/thukeg" target="_blank">Twitter</a> • 📃 <a href="https://arxiv.org/abs/2103.10360" target="_blank">[GLM@ACL 22]</a> <a href="https://github.com/THUDM/GLM" target="_blank">[GitHub]</a> • 📃 <a href="https://arxiv.org/abs/2210.02414" target="_blank">[GLM-130B@ICLR 23]</a> <a href="https://github.com/THUDM/GLM-130B" target="_blank">[GitHub]</a> <br> </p> <p align="center"> 👋 Join our <a href="https://join.slack.com/t/chatglm/shared_invite/zt-1y7pqoloy-9b1g6T6JjA8J0KxvUjbwJw" target="_blank">Slack</a> and <a href="https://github.com/THUDM/ChatGLM-6B/blob/main/resources/WECHAT.md" target="_blank">WeChat</a> </p> ## 更新/Update - 我们优化了KV Cache的存储方式,减少了显存碎片的产生。基于优化后的代码,模型可以在约**20G显存**的情况下处理32K长度的上下文(FP/BF16格式)。 - We have optimized the storage method of the KV Cache, reducing the generation of memory fragmentation. Based on the optimized code, the model can process a context length of 32K under approximately **20G** of memory (FP/BF16 format). ## 介绍 ChatGLM**2**-6B-32K在[ChatGLM2-6B](https://huggingface.co/THUDM/chatglm2-6b)的基础上进一步强化了对于长文本的理解能力,能够更好的处理最多32K长度的上下文。具体地,我们基于[位置插值](https://arxiv.org/abs/2306.15595)(Positional Interpolation)的方法对位置编码进行了更新,并在对话阶段使用 32K 的上下文长度训练。在实际的使用中,如果您面临的上下文长度基本在 **8K 以内**,我们推荐使用[ChatGLM2-6B](https://huggingface.co/THUDM/chatglm2-6b);如果您需要处理**超过 8K** 的上下文长度,我们推荐使用ChatGLM2-6B-32K。 ChatGLM**2**-6B-32K是开源中英双语对话模型 [ChatGLM2-6B](https://github.com/THUDM/ChatGLM2-6B) 的加长版本,在保留了初代模型对话流畅、部署门槛较低等众多优秀特性的基础之上,ChatGLM**2**-6B-32k 引入了如下新特性: 1. **更强大的性能**:基于 ChatGLM 初代模型的开发经验,我们全面升级了 ChatGLM2-6B-32K 的基座模型。ChatGLM2-6B-32K 使用了 [GLM](https://github.com/THUDM/GLM) 的混合目标函数,经过了 1.4T 中英标识符的预训练与人类偏好对齐训练。 2. **更长的上下文**:基于 [FlashAttention](https://github.com/HazyResearch/flash-attention) 技术,我们将基座模型的上下文长度(Context Length)由 ChatGLM-6B 的 2K 扩展到了 32K,并在对话阶段使用 32K 的上下文长度训练,允许更多轮次的对话。 3. **更高效的推理**:基于 [Multi-Query Attention](http://arxiv.org/abs/1911.02150) 技术,ChatGLM2-6B-32K 有更高效的推理速度和更低的显存占用:在官方的模型实现下,推理速度相比初代提升了 42%,INT4 量化下,6G 显存支持的对话长度由 1K 提升到了 8K。 4. **更开放的协议**:ChatGLM2-6B-32K 权重对学术研究**完全开放**,在填写[问卷](https://open.bigmodel.cn/mla/form)进行登记后**亦允许免费商业使用**。 The ChatGLM**2**-6B-32K further strengthens the ability to understand long texts based on the [ChatGLM2-6B](https://huggingface.co/THUDM/chatglm2-6b), and can better handle up to 32K context length. Specifically, we have updated the position encoding based on the method of [Positional Interpolation](https://arxiv.org/abs/2306.15595), and trained with a 32K context length during the dialogue alignment. In practical use, if the context length you are dealing with is generally within 8K, we recommend using [ChatGLM2-6B](https://huggingface.co/THUDM/chatglm2-6b); if you need to handle a context length exceeding 8K, we recommend using ChatGLM2-6B-32K. ChatGLM2-6B-32K is the second-generation version of the open-source bilingual (Chinese-English) chat model [ChatGLM-6B](https://github.com/THUDM/ChatGLM-6B). It retains the smooth conversation flow and low deployment threshold of the first-generation model, while introducing the following new features: 1. **Stronger Performance**: Based on the development experience of the first-generation ChatGLM model, we have fully upgraded the base model of ChatGLM2-6B-32K. ChatGLM2-6B-32K uses the hybrid objective function of [GLM](https://github.com/THUDM/GLM), and has undergone pre-training with 1.4T bilingual tokens and human preference alignment training. 2. **Longer Context**: Based on [FlashAttention](https://github.com/HazyResearch/flash-attention) technique, we have extended the context length of the base model from 2K in ChatGLM-6B to 32K, and trained with a context length of 32K during the dialogue alignment, allowing for more rounds of dialogue. 3. **More Efficient Inference**: Based on [Multi-Query Attention](http://arxiv.org/abs/1911.02150) technique, ChatGLM2-6B-32K has more efficient inference speed and lower GPU memory usage: under the official implementation, the inference speed has increased by 42% compared to the first generation; under INT4 quantization, the dialogue length supported by 6G GPU memory has increased from 1K to 8K. 4. **More Open License**: ChatGLM2-6B-32K weights are **completely open** for academic research, and **free commercial use** is also allowed after completing the [questionnaire](https://open.bigmodel.cn/mla/form). ## 软件依赖 ```shell pip install protobuf transformers==4.30.2 cpm_kernels torch>=2.0 gradio mdtex2html sentencepiece accelerate ``` ## 代码调用 可以通过如下代码调用 ChatGLM-6B-32K 模型来生成对话: ```ipython >>> from transformers import AutoTokenizer, AutoModel >>> tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b-32k", trust_remote_code=True) >>> model = AutoModel.from_pretrained("THUDM/chatglm2-6b-32k", trust_remote_code=True).half().cuda() >>> model = model.eval() >>> response, history = model.chat(tokenizer, "你好", history=[]) >>> print(response) 你好👋!我是人工智能助手 ChatGLM-6B,很高兴见到你,欢迎问我任何问题。 >>> response, history = model.chat(tokenizer, "晚上睡不着应该怎么办", history=history) >>> print(response) 晚上睡不着可能会让你感到焦虑或不舒服,但以下是一些可以帮助你入睡的方法: 1. 制定规律的睡眠时间表:保持规律的睡眠时间表可以帮助你建立健康的睡眠习惯,使你更容易入睡。尽量在每天的相同时间上床,并在同一时间起床。 2. 创造一个舒适的睡眠环境:确保睡眠环境舒适,安静,黑暗且温度适宜。可以使用舒适的床上用品,并保持房间通风。 3. 放松身心:在睡前做些放松的活动,例如泡个热水澡,听些轻柔的音乐,阅读一些有趣的书籍等,有助于缓解紧张和焦虑,使你更容易入睡。 4. 避免饮用含有咖啡因的饮料:咖啡因是一种刺激性物质,会影响你的睡眠质量。尽量避免在睡前饮用含有咖啡因的饮料,例如咖啡,茶和可乐。 5. 避免在床上做与睡眠无关的事情:在床上做些与睡眠无关的事情,例如看电影,玩游戏或工作等,可能会干扰你的睡眠。 6. 尝试呼吸技巧:深呼吸是一种放松技巧,可以帮助你缓解紧张和焦虑,使你更容易入睡。试着慢慢吸气,保持几秒钟,然后缓慢呼气。 如果这些方法无法帮助你入睡,你可以考虑咨询医生或睡眠专家,寻求进一步的建议。 ``` 关于更多的使用说明,包括如何运行命令行和网页版本的 DEMO,以及使用模型量化以节省显存,请参考我们的 [Github Repo](https://github.com/THUDM/ChatGLM2-6B)。 For more instructions, including how to run CLI and web demos, and model quantization, please refer to our [Github Repo](https://github.com/THUDM/ChatGLM2-6B). ## Change Log * v1.0 ## 协议 本仓库的代码依照 [Apache-2.0](LICENSE) 协议开源,ChatGLM2-6B-32K 模型的权重的使用则需要遵循 [Model License](MODEL_LICENSE)。 ## 引用 如果你觉得我们的工作有帮助的话,请考虑引用下列论文,ChatGLM2-6B 的论文会在近期公布,敬请期待~ ``` @article{zeng2022glm, title={Glm-130b: An open bilingual pre-trained model}, author={Zeng, Aohan and Liu, Xiao and Du, Zhengxiao and Wang, Zihan and Lai, Hanyu and Ding, Ming and Yang, Zhuoyi and Xu, Yifan and Zheng, Wendi and Xia, Xiao and others}, journal={arXiv preprint arXiv:2210.02414}, year={2022} } ``` ``` @inproceedings{du2022glm, title={GLM: General Language Model Pretraining with Autoregressive Blank Infilling}, author={Du, Zhengxiao and Qian, Yujie and Liu, Xiao and Ding, Ming and Qiu, Jiezhong and Yang, Zhilin and Tang, Jie}, booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)}, pages={320--335}, year={2022} } ```
[ -0.4867733418941498, -0.9103766083717346, 0.12833769619464874, 0.4718928337097168, -0.40547290444374084, -0.08396068960428238, -0.32413455843925476, -0.5806246995925903, 0.10563606023788452, 0.16809438169002533, -0.6033692955970764, -0.6305607557296753, -0.515392541885376, -0.24805417656898499, -0.11643876135349274, 0.907752275466919, 0.19777651131153107, 0.050382472574710846, 0.04038665443658829, -0.09289208054542542, -0.5512313842773438, -0.5709635019302368, -0.801996111869812, -0.15752924978733063, 0.07417681813240051, 0.15189920365810394, 0.6991605162620544, 0.3883943259716034, 0.39989206194877625, 0.3500151038169861, -0.24663782119750977, 0.1983063519001007, -0.7049797177314758, -0.2625196576118469, 0.2681446075439453, -0.4272591769695282, -0.7144536375999451, -0.02639225870370865, 0.6071374416351318, 0.16648972034454346, -0.13025476038455963, 0.3114052712917328, 0.3094676434993744, 0.6761782169342041, -0.4081747531890869, 0.5031967163085938, -0.5923488140106201, -0.09356015920639038, -0.10588868707418442, -0.17502868175506592, -0.3172784745693207, -0.31114262342453003, 0.11631035804748535, -0.5801633596420288, 0.016492975875735283, 0.20868419110774994, 1.3336724042892456, -0.03185400739312172, -0.3170296549797058, -0.12480544298887253, -0.5927122235298157, 1.0199248790740967, -1.1775850057601929, 0.22525639832019806, 0.37748944759368896, 0.4524596333503723, -0.2889043986797333, -0.7339804172515869, -0.5116291642189026, -0.16609421372413635, -0.4427412748336792, 0.33461934328079224, -0.11121516674757004, -0.02134670875966549, 0.18062716722488403, 0.32491278648376465, -0.7219061851501465, 0.009308852255344391, -0.5052438378334045, -0.3432184159755707, 0.7533385753631592, 0.18219727277755737, 0.6259942054748535, -0.18026496469974518, -0.5220544338226318, -0.05227094516158104, -0.5184544920921326, 0.26576486229896545, 0.2390158623456955, 0.220878005027771, -0.7084751129150391, 0.32218822836875916, -0.14275003969669342, 0.5409802794456482, 0.055388450622558594, -0.3491150438785553, 0.4373553991317749, -0.6173285245895386, -0.3180023729801178, -0.21578195691108704, 1.2714080810546875, 0.4872521460056305, -0.005036513786762953, 0.22287896275520325, -0.01746326871216297, -0.20466376841068268, -0.10329882800579071, -0.8823063969612122, -0.055864278227090836, 0.41959330439567566, -0.6068941354751587, -0.14967796206474304, -0.07220454514026642, -0.6675465106964111, 0.16917212307453156, 0.0022540194913744926, 0.5317885875701904, -0.660882830619812, -0.40052661299705505, 0.1918170154094696, 0.006938277278095484, 0.3612617254257202, 0.440083384513855, -0.9904439449310303, 0.3632345199584961, 0.5179263353347778, 0.9173216223716736, -0.06942678242921829, -0.24812625348567963, -0.17620918154716492, 0.061614830046892166, -0.12880277633666992, 0.3657326102256775, -0.03927105292677879, -0.4452894628047943, -0.12598909437656403, 0.06537628918886185, -0.2892288863658905, -0.3176473081111908, 0.40486082434654236, -0.3899703323841095, 0.75274258852005, -0.06391503661870956, -0.5428426265716553, -0.35607221722602844, 0.31007352471351624, -0.3747996687889099, 1.137761116027832, 0.03226602450013161, -0.9080517292022705, -0.07011458277702332, -0.6356663107872009, -0.15575161576271057, -0.02774411253631115, -0.04552341252565384, -0.3877313733100891, -0.3048956096172333, 0.4260735809803009, 0.30784234404563904, -0.42665722966194153, 0.18197529017925262, -0.22465169429779053, -0.45926564931869507, 0.2781588137149811, -0.3626289367675781, 1.151487946510315, 0.2603667974472046, -0.4901588559150696, 0.2607537508010864, -0.39973023533821106, 0.34610047936439514, 0.2616637647151947, -0.23939219117164612, -0.013637539930641651, 0.040933992713689804, 0.05109020695090294, 0.5014389753341675, 0.5352604985237122, -0.3004559576511383, 0.09928517788648605, -0.7215883135795593, 0.47853219509124756, 0.6475432515144348, -0.07359050959348679, 0.498807430267334, -0.4065748453140259, 0.305685430765152, 0.20353657007217407, 0.5214840769767761, -0.23176871240139008, -0.7269203066825867, -1.0005744695663452, -0.1859728842973709, 0.21535129845142365, 0.7982997894287109, -0.6520127654075623, 0.8268063068389893, -0.2323007434606552, -0.5862090587615967, -0.5614131093025208, 0.18225397169589996, 0.6803069114685059, 0.3957042098045349, 0.5249204635620117, -0.2602234482765198, -0.5374419689178467, -0.7820793986320496, -0.0004894686862826347, -0.4025585949420929, -0.10326231271028519, 0.5786114931106567, 0.4997924566268921, -0.33413130044937134, 0.9983623623847961, -0.5326133370399475, -0.38773587346076965, -0.23889392614364624, 0.029203712940216064, 0.25077712535858154, 0.6810310482978821, 0.7098232507705688, -0.812070369720459, -0.8654069900512695, -0.04610774666070938, -0.8840155601501465, 0.15279076993465424, 0.08522208780050278, -0.43756383657455444, 0.5384891033172607, 0.35331055521965027, -0.6686323285102844, 0.4586291015148163, 0.7029889225959778, -0.36075788736343384, 0.6177883744239807, -0.24055272340774536, 0.035061754286289215, -1.3089526891708374, 0.05312926694750786, -0.10419926792383194, -0.010756377130746841, -0.7232919931411743, -0.13739748299121857, 0.001156586455181241, 0.20775337517261505, -0.682035505771637, 1.1114977598190308, -0.6858875751495361, 0.1963798850774765, -0.1427876502275467, 0.3433152735233307, -0.15425649285316467, 0.8594256043434143, -0.16765114665031433, 0.6694656014442444, 0.7385069131851196, -0.6001256108283997, 0.2960604131221771, 0.35046184062957764, -0.2681832015514374, 0.03499701991677284, -0.778708279132843, 0.2469525784254074, 0.028489382937550545, 0.3712731599807739, -1.3500736951828003, -0.12264697253704071, 0.6167080998420715, -0.8808538317680359, 0.30861905217170715, -0.22181639075279236, -0.44728410243988037, -0.5775449275970459, -0.5216707587242126, 0.25989922881126404, 0.7796317338943481, -0.32172101736068726, 0.5139915347099304, 0.42714494466781616, -0.03683165833353996, -0.6690515279769897, -0.6274121999740601, -0.08284461498260498, -0.26892393827438354, -1.0272055864334106, 0.3623080551624298, -0.2052149921655655, 0.021573249250650406, -0.16996899247169495, 0.14216159284114838, 0.0474797859787941, -0.05842607095837593, 0.23108071088790894, 0.48748818039894104, -0.13706351816654205, -0.04598192498087883, -0.14896197617053986, -0.1344950795173645, -0.06420966982841492, -0.12989212572574615, 0.7425835728645325, -0.3520841598510742, -0.32515594363212585, -0.5963129997253418, 0.19034919142723083, 0.48198044300079346, -0.10671725124120712, 0.8497006297111511, 1.082189679145813, -0.210389643907547, 0.24693350493907928, -0.7316885590553284, -0.21770811080932617, -0.5777511596679688, 0.3927805721759796, -0.06368523836135864, -1.0799448490142822, 0.876831591129303, 0.31690549850463867, 0.2035219371318817, 0.6119362115859985, 0.666364848613739, 0.096644327044487, 1.284696102142334, 0.3901383578777313, -0.3642704486846924, 0.5728660821914673, -0.4411405622959137, 0.22589564323425293, -0.9045466780662537, -0.3013969957828522, -0.3542630970478058, -0.30905696749687195, -0.6672869324684143, -0.6294304728507996, 0.377620667219162, 0.18238641321659088, -0.2906735837459564, 0.1828707903623581, -0.498393714427948, -0.035649798810482025, 0.5245799422264099, 0.0712859109044075, 0.026453670114278793, -0.14327269792556763, -0.10691466927528381, -0.018739869818091393, -0.7047101259231567, -0.4842044413089752, 0.7903982996940613, 0.4824633002281189, 0.682444155216217, 0.27410000562667847, 0.4416458308696747, -0.09394986182451248, 0.24856172502040863, -0.6289272308349609, 0.7222992181777954, 0.15144719183444977, -0.7924010753631592, -0.48118141293525696, -0.47124940156936646, -0.9779102206230164, 0.5408730506896973, -0.08507587760686874, -1.1459722518920898, -0.083778515458107, 0.15225258469581604, -0.2617291808128357, 0.21014127135276794, -0.856235146522522, 0.918347179889679, -0.3996567726135254, -0.3241426646709442, -0.08166367560625076, -0.9393371343612671, 0.58038729429245, 0.29352036118507385, 0.31593412160873413, -0.4015975892543793, 0.059412430971860886, 0.7856796979904175, -0.5409662127494812, 0.8302488923072815, -0.31749358773231506, -0.08438669145107269, 0.5690203905105591, -0.10430239886045456, 0.6279132962226868, 0.2148631513118744, 0.19550129771232605, 0.3356161117553711, 0.05310574173927307, -0.4189659357070923, -0.610827624797821, 0.7255809903144836, -0.7937266230583191, -0.7618463635444641, -0.3863331079483032, -0.5042339563369751, -0.1712982952594757, 0.25027960538864136, 0.4230734407901764, 0.29411885142326355, -0.06928347796201706, 0.2640024721622467, 0.3748500943183899, -0.5098085999488831, 0.6356244683265686, 0.5871939063072205, -0.526789665222168, -0.4938889741897583, 0.745769202709198, 0.040708765387535095, 0.41496938467025757, 0.2632865011692047, 0.08605948835611343, -0.4455958604812622, -0.4579017162322998, -0.4938841462135315, 0.3819277286529541, -0.4470343589782715, -0.09610205143690109, -0.7890332937240601, -0.5412646532058716, -0.6910355687141418, 0.09161461144685745, -0.37387892603874207, -0.11810989677906036, -0.42253774404525757, 0.08017253130674362, 0.5219579339027405, 0.061651524156332016, 0.09030678868293762, 0.2405594289302826, -0.9950094819068909, 0.3008716404438019, 0.2307450771331787, 0.2630338668823242, 0.24274837970733643, -0.7763425707817078, -0.5242374539375305, 0.5259181261062622, -0.1736862063407898, -0.5117721557617188, 0.6895760297775269, 0.1435970515012741, 0.6311464905738831, 0.43179720640182495, -0.06198301538825035, 0.8347548246383667, -0.37434548139572144, 1.017059564590454, 0.3132631480693817, -0.9596429467201233, 0.5207722187042236, -0.5339639782905579, 0.5162929892539978, 0.307039737701416, 0.30211615562438965, -0.6756213903427124, -0.4302249848842621, -0.7389651536941528, -0.9478164911270142, 1.1172986030578613, 0.5648131370544434, 0.45394185185432434, 0.07230833172798157, 0.0795607641339302, -0.34284117817878723, 0.12785694003105164, -0.6550662517547607, -0.7050668001174927, -0.1446494162082672, -0.13508039712905884, -0.013233529403805733, -0.49334678053855896, -0.09444030374288559, -0.5289092063903809, 0.7968477010726929, -0.07971013337373734, 0.7523612976074219, 0.06212930753827095, 0.002023350214585662, 0.1312863975763321, 0.14893491566181183, 0.7805436253547668, 0.6542895436286926, -0.32706546783447266, -0.19641472399234772, 0.3348318636417389, -0.6330509781837463, -0.03804735094308853, 0.07515396922826767, -0.2029341608285904, 0.0758839100599289, 0.21336135268211365, 1.202818751335144, 0.35483306646347046, -0.5900603532791138, 0.5725676417350769, -0.2942110598087311, -0.23810836672782898, -0.3066801428794861, 0.1945628523826599, 0.3380316197872162, 0.2228839248418808, 0.56987065076828, -0.3207281529903412, -0.025955930352211, -0.6366310119628906, 0.018966473639011383, 0.572350263595581, -0.3280312120914459, -0.30480459332466125, 0.7121691107749939, 0.1320374608039856, -0.1727127879858017, 0.4640958309173584, -0.2389942854642868, -0.649979293346405, 0.629803478717804, 0.5952126979827881, 0.820740282535553, -0.29267868399620056, 0.12900327146053314, 0.7436233162879944, 0.12007912993431091, -0.3074803054332733, 0.275240033864975, 0.12017490714788437, -0.7949209809303284, -0.31711965799331665, -0.5854968428611755, -0.1906241625547409, 0.216098353266716, -0.5405700206756592, 0.35439953207969666, -0.3835395276546478, -0.29648563265800476, -0.20766039192676544, 0.10280434787273407, -0.4039069414138794, 0.1945948600769043, 0.11324181407690048, 0.726593554019928, -0.37419265508651733, 0.9515181183815002, 0.4656009078025818, -0.2873319685459137, -0.9243994951248169, -0.17032374441623688, 0.22443053126335144, -0.8342885375022888, 0.47587281465530396, 0.20564311742782593, -0.04905910789966583, 0.02758447267115116, -0.6032922267913818, -1.2362831830978394, 1.3459495306015015, 0.24504919350147247, -0.4125717282295227, -0.17845536768436432, -0.052253369241952896, 0.7279261350631714, -0.2751028835773468, 0.5816629528999329, 0.27506116032600403, 0.39238491654396057, 0.2851634919643402, -1.3346927165985107, 0.20983821153640747, -0.5904144644737244, 0.18578937649726868, -0.01470781397074461, -1.13474440574646, 1.0849626064300537, -0.11424273997545242, -0.4282265901565552, 0.0024234228767454624, 0.7453475594520569, 0.3052378296852112, 0.1198391243815422, 0.33546459674835205, 0.3654625415802002, 0.5134137868881226, -0.3160664737224579, 0.8937069177627563, -0.5787489414215088, 0.7826367020606995, 1.0044536590576172, 0.018219592049717903, 0.7199811935424805, 0.2045171856880188, -0.32912537455558777, 0.47118017077445984, 0.6294580101966858, -0.07107120007276535, 0.5104507803916931, -0.05295069143176079, -0.2624141573905945, -0.018158599734306335, 0.18842238187789917, -0.6346958875656128, 0.2942033112049103, 0.49685540795326233, -0.18087036907672882, -0.12083618342876434, -0.010547379031777382, 0.2852347493171692, -0.4317981004714966, -0.1062159314751625, 0.8976218700408936, 0.23287060856819153, -0.7067397832870483, 1.0960330963134766, 0.13472121953964233, 1.0331772565841675, -0.8311746716499329, 0.17169496417045593, -0.2394624948501587, 0.10922177881002426, -0.1622142493724823, -0.6458341479301453, 0.1342805176973343, -0.1790928691625595, 0.06934019923210144, -0.05911729857325554, 0.9133448004722595, -0.559920608997345, -0.3676992356777191, 0.5766798257827759, 0.40064090490341187, 0.15781636536121368, 0.04626854509115219, -1.062394142150879, 0.12798495590686798, 0.23544813692569733, -0.5367810726165771, 0.47793394327163696, 0.3035643398761749, 0.021978924050927162, 0.8166574835777283, 0.6753178238868713, -0.13422422111034393, 0.11479969322681427, -0.058129504323005676, 0.9043970108032227, -0.7107802033424377, -0.5573716759681702, -1.0105576515197754, 0.7262068390846252, -0.193603977560997, -0.31067702174186707, 1.0540409088134766, 0.5848718881607056, 0.8180268406867981, 0.016541069373488426, 0.732312798500061, -0.30907735228538513, 0.5248823761940002, -0.5287090539932251, 0.7735005021095276, -0.6068012714385986, 0.1686728447675705, -0.354526162147522, -0.640346109867096, -0.2269263118505478, 0.5582519769668579, -0.3331361413002014, 0.31836819648742676, 0.6556563377380371, 0.9577845335006714, 0.19669444859027863, -0.20161117613315582, 0.2085104137659073, 0.2883751392364502, 0.3744896650314331, 0.9302523732185364, 0.555451512336731, -0.7650471925735474, 0.6873314380645752, -0.2830635905265808, -0.01945125311613083, -0.5588950514793396, -0.5406085252761841, -1.0998042821884155, -0.6406776905059814, -0.21996726095676422, -0.47900232672691345, -0.1575496941804886, 0.8737620711326599, 0.7297788262367249, -0.6988747715950012, -0.4160011112689972, 0.22612141072750092, 0.1331038922071457, -0.2872453033924103, -0.2799837291240692, 0.4856565594673157, -0.34010621905326843, -0.9344624876976013, 0.07816163450479507, 0.2977759838104248, 0.2743907570838928, -0.20726141333580017, -0.3899078965187073, -0.5103845000267029, 0.042613208293914795, 0.5927025675773621, 0.349865198135376, -0.8809633851051331, -0.20074611902236938, 0.13338427245616913, -0.49268820881843567, 0.2409229427576065, 0.19471091032028198, -0.4786352217197418, 0.41880694031715393, 0.5995862483978271, 0.08141904324293137, 0.7847697734832764, 0.07274901121854782, 0.4043264389038086, -0.6349274516105652, 0.5018740296363831, 0.02313031069934368, 0.31320327520370483, 0.14882302284240723, -0.3653894066810608, 0.6167891621589661, 0.1682950258255005, -0.46177321672439575, -0.8384705781936646, -0.21026772260665894, -1.1866401433944702, -0.13351139426231384, 1.429062843322754, -0.2254970818758011, -0.3125355839729309, 0.006155997049063444, -0.5962218046188354, 0.3890966773033142, -0.4694945812225342, 0.8483116030693054, 0.8267228603363037, -0.07401920109987259, -0.20943254232406616, -0.6801877617835999, 0.6359347105026245, 0.40404951572418213, -0.8295648694038391, -0.1991686224937439, 0.3984963893890381, 0.3221298158168793, 0.1766078621149063, 1.026081919670105, -0.16964665055274963, 0.2693178057670593, -0.31670743227005005, 0.16644001007080078, -0.06868735700845718, 0.15249204635620117, -0.16677719354629517, -0.15287885069847107, -0.21993926167488098, -0.2649875283241272 ]
kykim/bert-kor-base
kykim
"2021-05-19T21:17:13Z"
35,321
12
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "ko", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ko --- # Bert base model for Korean * 70GB Korean text dataset and 42000 lower-cased subwords are used * Check the model performance and other language models for Korean in [github](https://github.com/kiyoungkim1/LM-kor) ```python from transformers import BertTokenizerFast, BertModel tokenizer_bert = BertTokenizerFast.from_pretrained("kykim/bert-kor-base") model_bert = BertModel.from_pretrained("kykim/bert-kor-base") ```
[ -0.14556224644184113, -0.5542812347412109, 0.2938387095928192, 0.33829036355018616, -0.6713181138038635, -0.05007663741707802, -0.45847177505493164, 0.026109354570508003, -0.027204599231481552, 0.5763253569602966, -0.592298150062561, -0.5990987420082092, -0.632067084312439, 0.18141640722751617, -0.2070712000131607, 1.0639408826828003, -0.03762795403599739, 0.43220841884613037, 0.13144513964653015, 0.08348871022462845, -0.19919420778751373, -0.7223728895187378, -0.49579325318336487, -0.7294010519981384, 0.44039252400398254, 0.3137367367744446, 0.5611326098442078, 0.31904998421669006, 0.4086083471775055, 0.400121808052063, -0.10547294467687607, -0.3777890205383301, -0.5521508455276489, -0.01797674410045147, 0.009394288994371891, -0.6268714070320129, -0.3883064389228821, -0.15342241525650024, 0.4399431645870209, 0.4819338619709015, 0.17360654473304749, 0.24011269211769104, -0.4402580261230469, 0.7766852378845215, -0.2886488139629364, 0.3703397512435913, -0.6629559993743896, -0.05046785995364189, -0.1634751260280609, 0.40016481280326843, -0.48634567856788635, -0.456644207239151, 0.4006928503513336, -0.6169300079345703, 0.26837486028671265, -0.18939755856990814, 1.2577950954437256, 0.14166319370269775, -0.47783786058425903, -0.3868246078491211, -0.4339776635169983, 0.8830349445343018, -0.8402929306030273, 0.6462776064872742, 0.47808870673179626, 0.23272378742694855, -0.12019305676221848, -1.0066641569137573, -0.6278700828552246, -0.2878273129463196, -0.12717042863368988, 0.08403641730546951, 0.04209199175238609, 0.275635302066803, 0.34237509965896606, 0.24391934275627136, -0.6687769293785095, -0.14254611730575562, -0.5906606912612915, -0.549022912979126, 0.7211831212043762, -0.031877946108579636, 0.26041385531425476, -0.555870771408081, -0.04474850744009018, -0.3893983066082001, -0.37866494059562683, 0.03472646325826645, 0.5396524667739868, 0.5446693301200867, -0.06858550757169724, 0.973555862903595, -0.5038078427314758, 0.30760639905929565, 0.28890371322631836, -0.37286022305488586, 0.6289847493171692, -0.4898481070995331, -0.2791118025779724, 0.19679099321365356, 0.6543217301368713, 0.21695414185523987, 0.5072365999221802, -0.2867058217525482, -0.19368375837802887, 0.14399150013923645, 0.19705365598201752, -0.8482092022895813, -0.605569064617157, 0.22852052748203278, -0.9276675581932068, -0.06545063108205795, -0.055759403854608536, -0.6041864156723022, -0.08618003129959106, -0.35837870836257935, 0.606417179107666, -0.7035636305809021, -0.35252484679222107, 0.15198349952697754, -0.19944384694099426, 0.1540171504020691, -0.2790527939796448, -0.7184202075004578, 0.008237811736762524, 0.4768783450126648, 0.6764162182807922, 0.05151864513754845, -0.23803924024105072, 0.1751887947320938, -0.4424899220466614, -0.37918734550476074, 0.414356529712677, -0.13825659453868866, -0.4211209714412689, 0.09379947930574417, 0.37295666337013245, -0.4020600914955139, -0.49576976895332336, 1.0068060159683228, -0.8064629435539246, 0.1522408276796341, -0.2701326310634613, -0.7335376143455505, -0.26150092482566833, -0.0174617487937212, -0.7671550512313843, 1.3010528087615967, 0.504135251045227, -0.5439546704292297, 0.5436574816703796, -0.6189558506011963, -0.7056594491004944, 0.24048446118831635, 0.25489675998687744, -0.5444726943969727, 0.2521432936191559, 0.2707448899745941, 0.5071999430656433, 0.3902950584888458, 0.33837568759918213, 0.07673776149749756, -0.4001093804836273, -0.06074872612953186, -0.2023439109325409, 0.8424019813537598, 0.36411184072494507, -0.1499381959438324, 0.08530107140541077, -0.9513754844665527, 0.15601758658885956, 0.11970411241054535, -0.7896591424942017, -0.5783869028091431, -0.2656490206718445, 0.390205055475235, 0.19727270305156708, 0.61944180727005, -0.7174981236457825, 0.36884400248527527, -0.4903784692287445, 0.2648407816886902, 0.5526787638664246, -0.47068411111831665, 0.740958571434021, -0.1972963660955429, 0.5617208480834961, 0.1880231350660324, -0.010719701647758484, -0.2631163001060486, -0.3912637531757355, -0.9767110347747803, -0.3564099967479706, 0.9092867970466614, 0.6672471165657043, -1.1494330167770386, 0.592893123626709, -0.6769306063652039, -0.7878631949424744, -0.9226607084274292, 0.0012480750447139144, 0.405191570520401, 0.23667480051517487, 0.33207425475120544, 0.1822419911623001, -0.9133780598640442, -1.1343700885772705, -0.25428837537765503, -0.2437799721956253, -0.14502392709255219, 0.3880864381790161, 0.7295790314674377, -0.5056602358818054, 0.8875570297241211, -0.2602108418941498, -0.08369362354278564, -0.47091221809387207, 0.21776574850082397, 0.683699905872345, 0.4349781572818756, 0.5063849091529846, -0.6680922508239746, -0.9110609889030457, -0.05710326507687569, -0.30430904030799866, -0.18666306138038635, -0.10180418938398361, -0.1909799575805664, 0.6154253482818604, 0.6303591132164001, -0.8875997066497803, 0.3656282424926758, 0.5341178774833679, -0.37944215536117554, 0.665800929069519, -0.10291900485754013, 0.009240302257239819, -1.276031732559204, 0.10648931562900543, -0.3585699498653412, -0.21380877494812012, -0.5989826321601868, -0.10879889130592346, 0.37411820888519287, 0.16666796803474426, -0.5126326084136963, 0.5858168005943298, -0.2881302833557129, 0.006132157985121012, -0.10108861327171326, -0.12692146003246307, -0.41596463322639465, 0.5744614601135254, 0.06176912412047386, 0.8593802452087402, 0.3171580731868744, -0.6125784516334534, 0.5423405766487122, 0.3112470209598541, -0.7723074555397034, 0.017239604145288467, -0.7958480715751648, 0.0038520011585205793, -0.08710836619138718, 0.30349016189575195, -0.9719364643096924, -0.35298341512680054, 0.10823933780193329, -0.4337286353111267, 0.1177246943116188, -0.5115808248519897, -0.7564719319343567, -0.6972429156303406, -0.12940646708011627, 0.38290709257125854, 0.9349765181541443, -0.5570310354232788, 0.7356894612312317, 0.16978615522384644, -0.34255698323249817, -0.5150797963142395, -0.5586824417114258, -0.19677242636680603, -0.036594294011592865, -0.6228342652320862, 0.4357013702392578, 0.024278951808810234, 0.11774681508541107, 0.15668079257011414, -0.013306280598044395, 0.15506058931350708, -0.25133174657821655, 0.0474412627518177, 0.2990012466907501, -0.2189023196697235, 0.14980469644069672, 0.2432864010334015, -0.14333471655845642, -0.19981808960437775, -0.00653014425188303, 1.2084228992462158, -0.1931721270084381, -0.09886211901903152, -0.19908398389816284, -0.07969246059656143, 0.5981049537658691, 0.4526422917842865, 0.8169297575950623, 0.7772038578987122, -0.2639099955558777, 0.04025111347436905, -0.3399069309234619, -0.12634505331516266, -0.5067133903503418, 0.930463969707489, -0.6975467801094055, -0.7107378244400024, 0.6735888123512268, -0.10797954350709915, -0.18205802142620087, 0.5845978856086731, 0.7969986796379089, 0.0825364962220192, 1.1779309511184692, 0.49718937277793884, -0.4340936839580536, 0.3953869640827179, -0.18145747482776642, 0.35058310627937317, -0.6701366901397705, -0.2505708932876587, -0.37620872259140015, -0.2090347558259964, -0.7647138833999634, -0.13740389049053192, 0.04704384133219719, 0.3397115170955658, -0.3399185836315155, 0.684131920337677, -0.3321807384490967, 0.48462775349617004, 0.8574863076210022, -0.01512600015848875, -0.14522002637386322, 0.16645103693008423, -0.6282230019569397, -0.11012478917837143, -0.7645481824874878, -0.5589227080345154, 1.1702605485916138, 0.4549838900566101, 0.9857419729232788, -0.2784203588962555, 0.399213969707489, 0.06200334057211876, 0.21827514469623566, -1.0174401998519897, 0.5913957953453064, -0.489136278629303, -0.9134525656700134, -0.24329619109630585, -0.2958317995071411, -0.9879658222198486, 0.1701260358095169, 0.17862513661384583, -0.5085726976394653, -0.10286150872707367, -0.08847972750663757, -0.0695749893784523, 0.13563640415668488, -0.7657188773155212, 0.8179364800453186, -0.10276494175195694, 0.5651203989982605, 0.15006257593631744, -0.6189911365509033, 0.3666791319847107, -0.17961485683918, -0.13846738636493683, -0.07262540608644485, 0.17653703689575195, 0.8279412388801575, -0.3086393177509308, 0.736363410949707, -0.23503760993480682, -0.05471562594175339, 0.1502503603696823, -0.3825407922267914, 0.5029395222663879, -0.04309006407856941, -0.07967499643564224, 0.43045932054519653, 0.03366728872060776, -0.34418198466300964, -0.07193553447723389, 0.528246283531189, -0.9454336762428284, 0.09735339134931564, -0.423072874546051, -0.6463362574577332, 0.002604678738862276, 0.56854248046875, 0.8487401604652405, 0.11562860012054443, 0.02893349714577198, 0.36794155836105347, 0.4276703894138336, -0.339079886674881, 0.5754701495170593, 0.4470672905445099, -0.4757876694202423, -0.7015778422355652, 0.8969117999076843, 0.2922130823135376, 0.10046440362930298, -0.021973976865410805, 0.02288554050028324, -0.5532630681991577, -0.28683462738990784, -0.41549962759017944, 0.3262965977191925, -0.7213060855865479, -0.08844896405935287, -0.6425372958183289, -0.6930365562438965, -0.6793418526649475, -0.003726779483258724, -0.5350204706192017, -0.38603711128234863, -0.28658950328826904, 0.04171169549226761, 0.3801251947879791, 0.31467294692993164, 0.08839215338230133, 0.8265743851661682, -0.8950338363647461, 0.5774731040000916, 0.23201324045658112, 0.5302256941795349, -0.11127015203237534, -0.7897467613220215, -0.500706672668457, 0.2584637999534607, -0.044275183230638504, -0.5164490342140198, 0.6686780452728271, 0.13833171129226685, 0.6673531532287598, 0.29223987460136414, 0.15658694505691528, 0.5465033650398254, -0.8074418306350708, 1.059483289718628, -0.03030344471335411, -0.9714990854263306, 0.2712504267692566, -0.21841484308242798, 0.6483590006828308, 0.6194633841514587, 0.43441498279571533, -0.7577621340751648, -0.100766621530056, -0.5718017220497131, -1.1321561336517334, 0.9714152812957764, 0.4368728697299957, 0.32250896096229553, 0.0959542840719223, 0.42131075263023376, 0.28141069412231445, 0.29266342520713806, -0.8838223218917847, -0.4679078161716461, -0.39702263474464417, -0.6918899416923523, -0.1493208408355713, -0.3786236047744751, 0.20160865783691406, -0.48361000418663025, 1.1618388891220093, -0.029661869630217552, 0.5290399789810181, 0.24162913858890533, -0.42496809363365173, 0.025775840505957603, 0.14887431263923645, 0.901938259601593, 0.29409903287887573, -0.31264162063598633, -0.07652708142995834, 0.26449570059776306, -1.0183404684066772, -0.046830177307128906, 0.21434323489665985, -0.3526687026023865, 0.48227429389953613, 0.447736918926239, 1.0409742593765259, 0.10297702252864838, -0.7243544459342957, 0.24146096408367157, -0.21154236793518066, -0.42320793867111206, -0.3514629304409027, -0.1346009224653244, 0.31996479630470276, 0.2872683107852936, 0.5836520791053772, -0.19102494418621063, -0.19415868818759918, -0.22565031051635742, 0.1914968490600586, 0.2991502583026886, -0.2971544563770294, -0.4017369747161865, 0.37411439418792725, 0.023382380604743958, -0.3554438650608063, 0.9421933889389038, -0.2557283639907837, -1.2415531873703003, 0.8183037042617798, 0.5666934251785278, 0.957183837890625, -0.0005282431957311928, 0.23262694478034973, 0.4286152422428131, 0.49092602729797363, -0.2559725046157837, 0.8271138668060303, 0.2561839520931244, -0.9599631428718567, -0.430507630109787, -0.9430014491081238, -0.06508219987154007, 0.6826543807983398, -0.5695815086364746, 0.16563192009925842, 0.030298661440610886, -0.462477445602417, -0.03439297154545784, 0.23984478414058685, -0.5561004877090454, 0.135383740067482, 0.06810962408781052, 1.0433796644210815, -0.7950080633163452, 1.0589936971664429, 0.8995713591575623, -0.245463564991951, -0.6227540969848633, -0.10628389567136765, -0.6567439436912537, -0.8179304003715515, 1.0739164352416992, 0.1990969330072403, 0.5214956998825073, 0.04691794142127037, -0.7295380234718323, -0.9646677374839783, 0.9189310073852539, 0.008861239068210125, -0.7794314026832581, 0.11522454023361206, 0.32145053148269653, 0.6922882795333862, -0.24248412251472473, -0.16221514344215393, 0.6866903901100159, 0.5158064961433411, -0.11488039791584015, -1.1767218112945557, -0.44491708278656006, -0.3299644887447357, 0.18821962177753448, 0.15839195251464844, -0.5273936986923218, 1.158287763595581, 0.03731656074523926, -0.1250525563955307, 0.48062804341316223, 0.5372734665870667, 0.4405217170715332, 0.24878910183906555, 0.6226158738136292, 0.6567639112472534, 0.48504212498664856, -0.27731582522392273, 0.8090022802352905, -0.563901960849762, 0.6487798690795898, 0.9657258987426758, -0.08419247716665268, 0.7071917057037354, 0.49648982286453247, -0.36097416281700134, 0.4858207106590271, 0.8102610111236572, -0.2706351578235626, 0.979066014289856, 0.1498914510011673, -0.10823217779397964, -0.2578166723251343, 0.29596930742263794, -0.40210995078086853, 0.37071332335472107, 0.19536106288433075, -0.5203165411949158, -0.06800784915685654, 0.10895483940839767, 0.195370614528656, -0.35728809237480164, -0.44448089599609375, 0.5924931168556213, -0.0919213742017746, -0.6497349739074707, 0.4487939476966858, 0.32951441407203674, 1.0407567024230957, -0.6458302140235901, 0.3316955864429474, -0.16692423820495605, 0.4552977979183197, 0.26331356167793274, -0.5504913330078125, -0.08135496824979782, -0.22773268818855286, -0.346571683883667, 0.06333096325397491, 1.2927801609039307, -0.7096615433692932, -0.9112739562988281, 0.21459215879440308, 0.1327032893896103, 0.20986603200435638, 0.027508189901709557, -0.8726955056190491, 0.03018205426633358, -0.0557384267449379, -0.5581963658332825, 0.2187555730342865, 0.31806090474128723, -0.06844799965620041, 0.6472363471984863, 0.7915486097335815, 0.0610320083796978, 0.5900790691375732, 0.23057250678539276, 0.7880962491035461, -0.4834030568599701, -0.5217565298080444, -0.8330909609794617, 0.4377419054508209, -0.21731765568256378, -0.4627535045146942, 0.8802030086517334, 0.6463426947593689, 0.965044379234314, -0.766986608505249, 0.9376041889190674, -0.19988447427749634, 0.5074440240859985, -0.4969399571418762, 1.033441424369812, -0.37218812108039856, -0.30879825353622437, -0.28299200534820557, -0.8570384979248047, 0.04449228197336197, 0.8636088967323303, -0.09223268926143646, 0.2329927235841751, 0.5016316771507263, 0.6436832547187805, -0.02096896432340145, -0.1613255888223648, 0.3707208037376404, 0.3439447581768036, 0.07979553937911987, 0.20768332481384277, 0.6563997268676758, -0.9022566676139832, 0.6154308319091797, -0.7009490728378296, 0.21499495208263397, -0.3519737124443054, -0.8914430141448975, -1.2599711418151855, -0.5581613779067993, -0.13816413283348083, -0.5162534713745117, -0.24757233262062073, 0.9406010508537292, 0.7571295499801636, -1.072177767753601, 0.009830656461417675, -0.19241797924041748, 0.11498042196035385, -0.055251043289899826, -0.32396894693374634, 0.7044835090637207, -0.3959525227546692, -0.9508394598960876, 0.3085751235485077, -0.30538979172706604, 0.23101378977298737, -0.018219497054815292, -0.3218086361885071, -0.2243543118238449, 0.3167380094528198, 0.7555376887321472, -0.005991984158754349, -0.8007287979125977, -0.11246766895055771, 0.24799583852291107, -0.42020323872566223, -0.3175183832645416, 0.5915876626968384, -0.7487869262695312, 0.31615081429481506, 0.8398802876472473, 0.4881591796875, 0.4483834207057953, 0.08788856863975525, 0.3894965648651123, -0.8464691042900085, 0.1777690052986145, -0.022804446518421173, 0.34948042035102844, 0.16015924513339996, -0.3133656978607178, 0.5063204169273376, 0.35189300775527954, -0.7985049486160278, -0.846808671951294, -0.08736518025398254, -1.0084928274154663, -0.36346468329429626, 1.2134475708007812, -0.11045041680335999, -0.26836472749710083, -0.2384362369775772, -0.6320613026618958, 0.4872698187828064, -0.4050648510456085, 0.6776177883148193, 1.0970439910888672, 0.11812730878591537, -0.022457068786025047, -0.4114287197589874, 0.6101080775260925, 0.3756037652492523, -0.4716316759586334, -0.18852053582668304, 0.07559943199157715, 0.4893858730792999, 0.3898015320301056, 0.545069694519043, -0.021199094131588936, 0.09544423222541809, 0.2189820408821106, 0.36962148547172546, 0.11291949450969696, -0.2664017677307129, -0.21969468891620636, -0.13581512868404388, -0.6214444041252136, -0.33949965238571167 ]
peft-internal-testing/tiny_T5ForSeq2SeqLM-lora
peft-internal-testing
"2023-07-20T09:48:55Z"
35,275
0
peft
[ "peft", "region:us" ]
null
"2023-07-13T13:44:40Z"
--- library_name: peft --- ## Training procedure ### Framework versions - PEFT 0.4.0.dev0
[ -0.4463561177253723, -0.2354237139225006, 0.2216254621744156, 0.8747684955596924, -0.1453646570444107, 0.2397010326385498, 0.6378126740455627, 0.11012771725654602, 0.3118548095226288, 0.8683319091796875, -0.6462950110435486, -0.24985601007938385, -0.4143563508987427, 0.19406037032604218, -0.4284796714782715, 0.7678045034408569, -0.27617141604423523, 0.328695684671402, 0.18701276183128357, 0.13015814125537872, -0.00044631146010942757, -0.7633618712425232, -1.092003345489502, -0.42716825008392334, 0.316043496131897, 0.6978024840354919, 0.05524926260113716, 0.2132124900817871, 0.5485395193099976, 0.25440824031829834, 0.08255698531866074, -0.8952438831329346, -0.39447280764579773, 0.09748408198356628, -0.20979619026184082, 0.18788328766822815, -1.201399326324463, -0.02519008331000805, 0.4715600311756134, 0.6416333317756653, -0.2192506641149521, 0.055906131863594055, -0.37814417481422424, 0.8860044479370117, -0.2401953637599945, -0.12780500948429108, -0.37095603346824646, 0.5981004238128662, -0.2058619111776352, -0.02320699766278267, 0.031110839918255806, -0.3323378264904022, 0.2159983217716217, -0.6721716523170471, 0.46226397156715393, -0.4081379175186157, 0.7932312488555908, -0.05218395218253136, -0.6795742511749268, 0.5335450172424316, -0.2872267961502075, 0.5352196097373962, -0.4301677644252777, 1.178346872329712, 0.7095305919647217, 0.383261501789093, -0.09482276439666748, -1.1542305946350098, -0.1095941960811615, 0.27899253368377686, 0.5860605835914612, -0.45658883452415466, 0.40445730090141296, 0.1307944655418396, 0.7477390170097351, 0.5776861906051636, -0.24486632645130157, 0.07077599316835403, -1.071709394454956, -0.6277372241020203, 0.5612714886665344, -0.28246209025382996, -0.1570052057504654, 0.6070406436920166, -0.3907153010368347, 0.14381419122219086, -1.1556323766708374, -0.3531026840209961, 0.1168355718255043, 0.010489696636795998, -0.625214159488678, 0.1713765263557434, -0.5180001854896545, 0.38983097672462463, 0.43832823634147644, 0.16020220518112183, 1.310984492301941, -0.2511248290538788, -0.8824300765991211, 0.16524681448936462, 0.18570442497730255, 0.10588688403367996, 0.10789506882429123, -0.1071341261267662, -0.3778994679450989, -0.5671821236610413, 0.3202877938747406, -1.0217400789260864, -0.647307813167572, 0.07288459688425064, -0.17414669692516327, -0.7955736517906189, 0.0989580824971199, -1.021554708480835, -0.240229994058609, 0.18047203123569489, 0.08623850345611572, -0.3681506812572479, -0.6963018178939819, 0.24966272711753845, -0.45946037769317627, 0.7612619996070862, 0.34057310223579407, -1.3159228563308716, 0.6145975589752197, 0.5979856848716736, 0.20114737749099731, 0.5949939489364624, -0.5040064454078674, -0.5987472534179688, 0.2749621570110321, -0.3463258445262909, 0.7483066320419312, 0.28338518738746643, -0.6575385928153992, 0.00630792835727334, 0.5150598883628845, -0.08718462288379669, -0.4786011874675751, 0.9383529424667358, -0.2974495589733124, 0.470561683177948, -0.16061367094516754, -0.49834662675857544, -0.14820539951324463, 0.4506674110889435, -0.4694356620311737, 1.1425728797912598, 0.8059081435203552, -0.08916941285133362, 0.36134961247444153, -1.1960101127624512, -0.5130751729011536, 0.08990535885095596, -0.19892096519470215, -0.5022124648094177, -0.12615205347537994, -0.3583417236804962, 0.22467675805091858, 0.24389466643333435, 0.01608697697520256, -0.2199537307024002, -0.2413458377122879, -0.5979945659637451, -0.31249260902404785, 1.044494390487671, 0.32528671622276306, -0.7078186869621277, 0.08425130695104599, -0.8034304976463318, 0.17324624955654144, 0.027541251853108406, -0.32733285427093506, 0.5499750971794128, -0.6557573676109314, -0.1998511701822281, 0.1697508692741394, 0.3851334750652313, -0.5993004441261292, 0.3266565203666687, -0.5111669301986694, 0.4918687641620636, 0.7410163283348083, 0.11809266358613968, 0.5985499024391174, -0.28694891929626465, 0.7572925686836243, -0.0892573893070221, 0.4786792993545532, 0.21141815185546875, -0.3717484176158905, -0.7299442291259766, -0.12602324783802032, 0.3014948070049286, 0.6983135342597961, -0.16835515201091766, 0.5254059433937073, 0.3630547821521759, -0.5114028453826904, 0.4624154269695282, 0.15159662067890167, 0.4847971200942993, 0.3727411925792694, 0.13311117887496948, 0.11869092285633087, -1.0047764778137207, -0.6327551603317261, 0.6215009093284607, -0.3263746500015259, 0.11065903306007385, -0.3851923644542694, 0.7634518146514893, -0.5630315542221069, -0.015605872496962547, -0.15861910581588745, -0.0785755142569542, 0.13263039290905, -0.017762066796422005, 0.4044165313243866, 0.9688239693641663, 1.3607420921325684, -0.8962381482124329, -0.5366259217262268, -0.7066152095794678, -0.274448424577713, -0.44978973269462585, 0.1983964592218399, -0.24312658607959747, 0.5776241421699524, 0.6147399544715881, -0.10026275366544724, 0.4927685558795929, 0.49781128764152527, -0.8751580715179443, 0.5368309020996094, 0.2006334811449051, 0.123614601790905, -0.7068496346473694, -0.031859029084444046, -0.21050308644771576, -0.5723478198051453, -0.059429679065942764, 0.10326159000396729, -0.08456418663263321, -0.13981038331985474, -1.074164628982544, 0.594911515712738, -0.4325723648071289, 0.06349494308233261, 0.37653443217277527, -0.7830870151519775, 0.35271403193473816, 0.10996775329113007, 0.1734229475259781, 0.9167336821556091, 0.9226329326629639, -0.487259179353714, 0.6463075280189514, 0.5282274484634399, 0.5871515870094299, 0.6464889049530029, -0.616344690322876, 0.21257568895816803, 0.5310119390487671, -0.21208076179027557, -0.31466376781463623, -0.5293837189674377, 0.7046886086463928, -0.1361677348613739, 0.5093068480491638, 0.2490464746952057, -0.2568388283252716, -0.7004742622375488, -0.842119574546814, 0.24956847727298737, 0.7867730855941772, -0.16086220741271973, 0.12888336181640625, 0.34683072566986084, 0.08988424390554428, -0.3795102834701538, -0.7225751876831055, -0.09053926914930344, -0.03009321168065071, -0.3424474596977234, 0.37403419613838196, -0.5706960558891296, -0.007687426637858152, -0.683051586151123, -0.3812205195426941, -0.5852822661399841, -0.13320058584213257, 0.317401647567749, -0.12700000405311584, -0.14332304894924164, -0.03469732403755188, 0.1566895842552185, -0.26252105832099915, 0.08674664050340652, 0.03733588010072708, 0.36855462193489075, -0.39186811447143555, -0.21602796018123627, -0.13804806768894196, 0.3323507606983185, 0.3638383746147156, -0.05858924239873886, 0.4346916377544403, 0.5017607808113098, -0.595379650592804, 0.132847398519516, -0.44514620304107666, -0.2545539438724518, -0.5359430313110352, 0.2798624634742737, -0.4490460157394409, -1.039535641670227, 0.36131030321121216, -0.30776938796043396, 0.11340274661779404, 0.6108946204185486, 0.27097734808921814, -0.09769150614738464, 0.49221518635749817, 0.8312475085258484, 0.43630096316337585, 0.6384534239768982, -0.25400251150131226, 0.28162825107574463, -0.5976256728172302, -0.5271168351173401, -0.6279698014259338, 0.29465487599372864, -0.017350243404507637, -0.14012601971626282, 0.17172735929489136, 0.6765680313110352, -1.1675432920455933, 0.5981903076171875, -0.8091568350791931, 0.6083701252937317, 0.36887186765670776, -0.07399943470954895, -0.2229841649532318, -0.10772771388292313, -0.18045884370803833, 0.21101635694503784, -0.5365315079689026, -0.3877289593219757, 1.296811580657959, 0.9998144507408142, 0.38158079981803894, -0.009970832616090775, 1.0755391120910645, 0.05447876825928688, 0.3194095492362976, -0.06739719212055206, 0.7038456797599792, -0.027025878429412842, -1.0603939294815063, -0.368168443441391, 0.11862847208976746, -0.6103491187095642, -0.37378647923469543, -0.08967268466949463, -0.4584023654460907, 0.19272665679454803, 0.08299620449542999, -0.3088451325893402, 0.12207639962434769, -0.7794274687767029, 1.8680182695388794, -0.556201159954071, 0.5222845673561096, 0.3647228181362152, -0.6155432462692261, -0.03671783581376076, -0.639374315738678, -0.21100950241088867, -0.2257925420999527, -0.31316444277763367, 0.8670156002044678, -0.3992176055908203, 0.671633243560791, -0.25508710741996765, -0.07398594170808792, -0.2019883245229721, -0.2690739333629608, 0.2074688822031021, 0.1078222319483757, -0.32565316557884216, 0.16596311330795288, 0.6442817449569702, -0.7590606212615967, 0.09446835517883301, 0.40966853499412537, -0.5909839272499084, -0.17204195261001587, -0.7604984641075134, 0.1635282188653946, 0.07151299715042114, 0.5007852911949158, 0.629406750202179, 0.39730939269065857, -0.2760868966579437, 0.07957487553358078, 0.9887720346450806, 0.15420374274253845, 0.5845978260040283, 0.5154944062232971, -0.8054336309432983, -0.6882627010345459, 0.47012653946876526, -0.06069372966885567, -0.020007170736789703, 0.19244617223739624, -0.23832359910011292, -0.3919040858745575, -1.204458475112915, -0.2955092191696167, 0.215758815407753, -0.5362018346786499, -0.39292001724243164, -0.2255384773015976, -0.5197243094444275, -0.9345669150352478, -0.35938921570777893, -0.48844149708747864, -0.5092252492904663, -0.7471006512641907, -0.7044113278388977, 0.5548209547996521, 0.21594081819057465, -0.6587311625480652, 0.5740182995796204, -1.1516317129135132, -0.19286422431468964, 0.2167331576347351, 0.8946197628974915, -0.8679582476615906, -0.4378897547721863, -0.37526142597198486, -0.03595985472202301, -0.9816790223121643, -1.0934805870056152, 0.08895096182823181, 0.5023020505905151, 0.7916019558906555, 0.3319835364818573, 0.028080912306904793, 0.2811683416366577, -0.4597153961658478, 0.8897689580917358, 0.4986063838005066, -0.8671926259994507, 0.9407498836517334, -0.48214101791381836, 0.13499321043491364, 1.2809398174285889, 0.7182777523994446, 0.06800571084022522, 0.17217646539211273, -1.2293092012405396, -0.5183165073394775, 0.15919844806194305, -0.12649601697921753, 0.24766232073307037, -0.1365755945444107, 0.30714133381843567, 0.07045517861843109, 0.7204563617706299, -0.8986284136772156, -0.04102706536650658, -0.282696932554245, 0.024274466559290886, 0.5104876756668091, -0.1843695044517517, -0.3716183602809906, -0.9063323736190796, 0.9400568604469299, 0.2302982360124588, 0.6064518690109253, 0.3348553478717804, 0.6049171686172485, -0.5041656494140625, -0.12268886715173721, 0.7597470879554749, 1.0914263725280762, -0.7614454030990601, -0.010316220112144947, 0.0010343099711462855, -0.7453498840332031, 0.28636547923088074, 0.5236023664474487, 0.26071885228157043, 0.02088451385498047, 0.34339678287506104, 0.4200834035873413, 0.28177765011787415, -0.6191181540489197, 0.6192700862884521, 0.08245248347520828, -0.8990646600723267, -1.2664198875427246, 0.308881551027298, -0.18475180864334106, 0.34555256366729736, 0.1627635508775711, 0.36363932490348816, 0.02355029620230198, -0.5653235912322998, 0.8606302738189697, -0.27068403363227844, -0.7775906920433044, -0.3564372956752777, 0.5646424889564514, 0.8769177794456482, -0.9743995070457458, 0.5713846683502197, -0.6759935021400452, -0.8066295385360718, 0.7594143152236938, 0.4864859879016876, 0.9238428473472595, -0.22466067969799042, 0.5380235314369202, 0.3259563744068146, -0.252384215593338, -0.2010745108127594, 1.1706929206848145, 0.07712972164154053, -0.7091275453567505, -0.10436232388019562, -0.787244439125061, -0.26459214091300964, 0.07501739263534546, -0.20855499804019928, 0.33482658863067627, -0.8935325741767883, -0.21674565970897675, 0.1411704570055008, -0.03830920159816742, -0.24594822525978088, 0.11805132031440735, 0.14264041185379028, 1.9054076671600342, -0.6044995784759521, 1.2672715187072754, 1.1315709352493286, -0.5850971341133118, -0.7515800595283508, -0.43746116757392883, 0.044785477221012115, -0.2856139540672302, 0.7608955502510071, 0.0675547868013382, 0.40668848156929016, 0.38317763805389404, -0.7997314929962158, -0.4260992705821991, 1.093899130821228, 0.48882731795310974, -0.5874704122543335, 0.17060238122940063, -0.251429945230484, 0.13753844797611237, -0.6787027716636658, -0.4459863007068634, 0.619601309299469, 0.42149990797042847, 0.18581004440784454, -1.4873745441436768, -0.1827365905046463, -0.30313801765441895, -0.6472302079200745, 0.7028381824493408, -0.27409958839416504, 0.9298134446144104, -0.04050189256668091, 0.6438426375389099, 0.3154516816139221, 0.3410532772541046, 0.4874297082424164, 0.2720567584037781, 0.6772067546844482, 0.7913992404937744, 0.5763524174690247, -0.1894972324371338, 0.5121398568153381, 0.01424925122410059, 0.44611337780952454, 0.994225263595581, -0.37607672810554504, 0.49564698338508606, 0.8614316582679749, -0.460232138633728, 0.6701818108558655, 1.0764518976211548, -0.42509469389915466, 0.6356640458106995, -0.2302820235490799, -0.5096780061721802, -0.24589696526527405, 0.27617526054382324, -0.7702035307884216, -0.1511916220188141, 0.06731848418712616, -0.6875067353248596, -0.3311110734939575, -0.11569848656654358, 0.22361785173416138, -0.04938522353768349, -0.5129565596580505, 0.567927896976471, 0.023417407646775246, -0.359526664018631, 0.7206825613975525, -0.0136412950232625, 0.6353303790092468, -0.6973676085472107, -0.4266510307788849, 0.00573418103158474, 0.04575185477733612, -0.09149101376533508, -0.7589963674545288, 0.8637335300445557, -0.17254593968391418, -0.26100003719329834, -0.5478866100311279, 0.5376002788543701, -0.1067163273692131, -0.6227771043777466, 0.29156044125556946, 0.20521493256092072, 0.23410825431346893, -0.18071629106998444, -1.297946572303772, 0.19755025207996368, 0.23077544569969177, 0.08155842870473862, 0.25807541608810425, 0.42029550671577454, 0.2421056181192398, 0.3494237959384918, 0.2588845193386078, -0.05497553199529648, 0.0414491631090641, 0.13464336097240448, 0.8740177154541016, -0.4927625358104706, -0.6081909537315369, -0.5966079235076904, 0.4852500855922699, -0.3765370547771454, -0.6850098967552185, 0.26709306240081787, 0.8913411498069763, 1.3000882863998413, -0.11290064454078674, 0.32941409945487976, -0.5092921853065491, 0.5724267363548279, -0.06740622967481613, 0.4350722134113312, -0.2500908076763153, 0.21488021314144135, 0.1362026482820511, -0.8172827363014221, -0.33402758836746216, 0.717801570892334, -0.2499275654554367, 0.11467692255973816, 1.0156490802764893, 0.5648676156997681, -0.22293324768543243, 0.29231709241867065, 0.1667371243238449, -0.19478873908519745, -0.01141402404755354, 0.5104172229766846, 0.031713806092739105, -0.8085671067237854, 0.36248549818992615, -0.7196639180183411, -0.4941006898880005, 0.05880172178149223, -1.1978180408477783, -0.6491143703460693, -0.19672702252864838, -0.6915801167488098, -0.7428479790687561, -0.11429134011268616, 0.9598941206932068, 1.1827387809753418, -0.9226365685462952, -0.2836836278438568, -0.22748561203479767, 0.0642242506146431, 0.01746342144906521, -0.12656764686107635, 0.06528276950120926, -0.182587668299675, -0.33058708906173706, 0.1079995334148407, 0.08683863282203674, 0.6622892022132874, -0.35972416400909424, -0.6842457056045532, -0.5150262117385864, -0.3128131628036499, 0.3357903063297272, 0.6950769424438477, -0.1740870624780655, -0.4127610921859741, -0.20451383292675018, 0.049899302423000336, 0.3369063138961792, 0.6305728554725647, -0.4759289026260376, -0.18720240890979767, 0.6074452996253967, 0.18891653418540955, 0.5362663269042969, -0.4244421720504761, 0.8571212291717529, -0.9570215344429016, 0.4784493148326874, 0.5017510056495667, 0.3751736581325531, 0.18837447464466095, -0.4452076256275177, 1.2449455261230469, 0.6964060664176941, -0.8322202563285828, -0.9292085766792297, 0.15089264512062073, -1.2164429426193237, -0.035229433327913284, 0.48262548446655273, -0.02475794591009617, -0.2906040847301483, -0.26921015977859497, -0.3661578297615051, 0.019313914701342583, -0.4898276627063751, -0.004238651599735022, 0.43326136469841003, -0.41217145323753357, -0.5828971266746521, -0.4240635633468628, 0.8405154943466187, -0.02884926088154316, -0.7120630741119385, -0.7634897828102112, 0.4887579679489136, 0.3785470128059387, 0.03366135433316231, 1.2489216327667236, -0.4637710452079773, 0.5889526009559631, 0.261750191450119, 0.04765881225466728, -0.4280075132846832, -0.31455257534980774, -0.5080838799476624, -0.08301454037427902, -0.010105986148118973, -0.32240331172943115 ]
peft-internal-testing/tiny_OPTForQuestionAnswering-lora
peft-internal-testing
"2023-07-13T13:09:34Z"
35,273
0
peft
[ "peft", "region:us" ]
null
"2023-07-13T13:09:33Z"
--- library_name: peft --- ## Training procedure ### Framework versions - PEFT 0.4.0.dev0
[ -0.4463561177253723, -0.2354237139225006, 0.2216254621744156, 0.8747684955596924, -0.1453646570444107, 0.2397010326385498, 0.6378126740455627, 0.11012771725654602, 0.3118548095226288, 0.8683319091796875, -0.6462950110435486, -0.24985601007938385, -0.4143563508987427, 0.19406037032604218, -0.4284796714782715, 0.7678045034408569, -0.27617141604423523, 0.328695684671402, 0.18701276183128357, 0.13015814125537872, -0.00044631146010942757, -0.7633618712425232, -1.092003345489502, -0.42716825008392334, 0.316043496131897, 0.6978024840354919, 0.05524926260113716, 0.2132124900817871, 0.5485395193099976, 0.25440824031829834, 0.08255698531866074, -0.8952438831329346, -0.39447280764579773, 0.09748408198356628, -0.20979619026184082, 0.18788328766822815, -1.201399326324463, -0.02519008331000805, 0.4715600311756134, 0.6416333317756653, -0.2192506641149521, 0.055906131863594055, -0.37814417481422424, 0.8860044479370117, -0.2401953637599945, -0.12780500948429108, -0.37095603346824646, 0.5981004238128662, -0.2058619111776352, -0.02320699766278267, 0.031110839918255806, -0.3323378264904022, 0.2159983217716217, -0.6721716523170471, 0.46226397156715393, -0.4081379175186157, 0.7932312488555908, -0.05218395218253136, -0.6795742511749268, 0.5335450172424316, -0.2872267961502075, 0.5352196097373962, -0.4301677644252777, 1.178346872329712, 0.7095305919647217, 0.383261501789093, -0.09482276439666748, -1.1542305946350098, -0.1095941960811615, 0.27899253368377686, 0.5860605835914612, -0.45658883452415466, 0.40445730090141296, 0.1307944655418396, 0.7477390170097351, 0.5776861906051636, -0.24486632645130157, 0.07077599316835403, -1.071709394454956, -0.6277372241020203, 0.5612714886665344, -0.28246209025382996, -0.1570052057504654, 0.6070406436920166, -0.3907153010368347, 0.14381419122219086, -1.1556323766708374, -0.3531026840209961, 0.1168355718255043, 0.010489696636795998, -0.625214159488678, 0.1713765263557434, -0.5180001854896545, 0.38983097672462463, 0.43832823634147644, 0.16020220518112183, 1.310984492301941, -0.2511248290538788, -0.8824300765991211, 0.16524681448936462, 0.18570442497730255, 0.10588688403367996, 0.10789506882429123, -0.1071341261267662, -0.3778994679450989, -0.5671821236610413, 0.3202877938747406, -1.0217400789260864, -0.647307813167572, 0.07288459688425064, -0.17414669692516327, -0.7955736517906189, 0.0989580824971199, -1.021554708480835, -0.240229994058609, 0.18047203123569489, 0.08623850345611572, -0.3681506812572479, -0.6963018178939819, 0.24966272711753845, -0.45946037769317627, 0.7612619996070862, 0.34057310223579407, -1.3159228563308716, 0.6145975589752197, 0.5979856848716736, 0.20114737749099731, 0.5949939489364624, -0.5040064454078674, -0.5987472534179688, 0.2749621570110321, -0.3463258445262909, 0.7483066320419312, 0.28338518738746643, -0.6575385928153992, 0.00630792835727334, 0.5150598883628845, -0.08718462288379669, -0.4786011874675751, 0.9383529424667358, -0.2974495589733124, 0.470561683177948, -0.16061367094516754, -0.49834662675857544, -0.14820539951324463, 0.4506674110889435, -0.4694356620311737, 1.1425728797912598, 0.8059081435203552, -0.08916941285133362, 0.36134961247444153, -1.1960101127624512, -0.5130751729011536, 0.08990535885095596, -0.19892096519470215, -0.5022124648094177, -0.12615205347537994, -0.3583417236804962, 0.22467675805091858, 0.24389466643333435, 0.01608697697520256, -0.2199537307024002, -0.2413458377122879, -0.5979945659637451, -0.31249260902404785, 1.044494390487671, 0.32528671622276306, -0.7078186869621277, 0.08425130695104599, -0.8034304976463318, 0.17324624955654144, 0.027541251853108406, -0.32733285427093506, 0.5499750971794128, -0.6557573676109314, -0.1998511701822281, 0.1697508692741394, 0.3851334750652313, -0.5993004441261292, 0.3266565203666687, -0.5111669301986694, 0.4918687641620636, 0.7410163283348083, 0.11809266358613968, 0.5985499024391174, -0.28694891929626465, 0.7572925686836243, -0.0892573893070221, 0.4786792993545532, 0.21141815185546875, -0.3717484176158905, -0.7299442291259766, -0.12602324783802032, 0.3014948070049286, 0.6983135342597961, -0.16835515201091766, 0.5254059433937073, 0.3630547821521759, -0.5114028453826904, 0.4624154269695282, 0.15159662067890167, 0.4847971200942993, 0.3727411925792694, 0.13311117887496948, 0.11869092285633087, -1.0047764778137207, -0.6327551603317261, 0.6215009093284607, -0.3263746500015259, 0.11065903306007385, -0.3851923644542694, 0.7634518146514893, -0.5630315542221069, -0.015605872496962547, -0.15861910581588745, -0.0785755142569542, 0.13263039290905, -0.017762066796422005, 0.4044165313243866, 0.9688239693641663, 1.3607420921325684, -0.8962381482124329, -0.5366259217262268, -0.7066152095794678, -0.274448424577713, -0.44978973269462585, 0.1983964592218399, -0.24312658607959747, 0.5776241421699524, 0.6147399544715881, -0.10026275366544724, 0.4927685558795929, 0.49781128764152527, -0.8751580715179443, 0.5368309020996094, 0.2006334811449051, 0.123614601790905, -0.7068496346473694, -0.031859029084444046, -0.21050308644771576, -0.5723478198051453, -0.059429679065942764, 0.10326159000396729, -0.08456418663263321, -0.13981038331985474, -1.074164628982544, 0.594911515712738, -0.4325723648071289, 0.06349494308233261, 0.37653443217277527, -0.7830870151519775, 0.35271403193473816, 0.10996775329113007, 0.1734229475259781, 0.9167336821556091, 0.9226329326629639, -0.487259179353714, 0.6463075280189514, 0.5282274484634399, 0.5871515870094299, 0.6464889049530029, -0.616344690322876, 0.21257568895816803, 0.5310119390487671, -0.21208076179027557, -0.31466376781463623, -0.5293837189674377, 0.7046886086463928, -0.1361677348613739, 0.5093068480491638, 0.2490464746952057, -0.2568388283252716, -0.7004742622375488, -0.842119574546814, 0.24956847727298737, 0.7867730855941772, -0.16086220741271973, 0.12888336181640625, 0.34683072566986084, 0.08988424390554428, -0.3795102834701538, -0.7225751876831055, -0.09053926914930344, -0.03009321168065071, -0.3424474596977234, 0.37403419613838196, -0.5706960558891296, -0.007687426637858152, -0.683051586151123, -0.3812205195426941, -0.5852822661399841, -0.13320058584213257, 0.317401647567749, -0.12700000405311584, -0.14332304894924164, -0.03469732403755188, 0.1566895842552185, -0.26252105832099915, 0.08674664050340652, 0.03733588010072708, 0.36855462193489075, -0.39186811447143555, -0.21602796018123627, -0.13804806768894196, 0.3323507606983185, 0.3638383746147156, -0.05858924239873886, 0.4346916377544403, 0.5017607808113098, -0.595379650592804, 0.132847398519516, -0.44514620304107666, -0.2545539438724518, -0.5359430313110352, 0.2798624634742737, -0.4490460157394409, -1.039535641670227, 0.36131030321121216, -0.30776938796043396, 0.11340274661779404, 0.6108946204185486, 0.27097734808921814, -0.09769150614738464, 0.49221518635749817, 0.8312475085258484, 0.43630096316337585, 0.6384534239768982, -0.25400251150131226, 0.28162825107574463, -0.5976256728172302, -0.5271168351173401, -0.6279698014259338, 0.29465487599372864, -0.017350243404507637, -0.14012601971626282, 0.17172735929489136, 0.6765680313110352, -1.1675432920455933, 0.5981903076171875, -0.8091568350791931, 0.6083701252937317, 0.36887186765670776, -0.07399943470954895, -0.2229841649532318, -0.10772771388292313, -0.18045884370803833, 0.21101635694503784, -0.5365315079689026, -0.3877289593219757, 1.296811580657959, 0.9998144507408142, 0.38158079981803894, -0.009970832616090775, 1.0755391120910645, 0.05447876825928688, 0.3194095492362976, -0.06739719212055206, 0.7038456797599792, -0.027025878429412842, -1.0603939294815063, -0.368168443441391, 0.11862847208976746, -0.6103491187095642, -0.37378647923469543, -0.08967268466949463, -0.4584023654460907, 0.19272665679454803, 0.08299620449542999, -0.3088451325893402, 0.12207639962434769, -0.7794274687767029, 1.8680182695388794, -0.556201159954071, 0.5222845673561096, 0.3647228181362152, -0.6155432462692261, -0.03671783581376076, -0.639374315738678, -0.21100950241088867, -0.2257925420999527, -0.31316444277763367, 0.8670156002044678, -0.3992176055908203, 0.671633243560791, -0.25508710741996765, -0.07398594170808792, -0.2019883245229721, -0.2690739333629608, 0.2074688822031021, 0.1078222319483757, -0.32565316557884216, 0.16596311330795288, 0.6442817449569702, -0.7590606212615967, 0.09446835517883301, 0.40966853499412537, -0.5909839272499084, -0.17204195261001587, -0.7604984641075134, 0.1635282188653946, 0.07151299715042114, 0.5007852911949158, 0.629406750202179, 0.39730939269065857, -0.2760868966579437, 0.07957487553358078, 0.9887720346450806, 0.15420374274253845, 0.5845978260040283, 0.5154944062232971, -0.8054336309432983, -0.6882627010345459, 0.47012653946876526, -0.06069372966885567, -0.020007170736789703, 0.19244617223739624, -0.23832359910011292, -0.3919040858745575, -1.204458475112915, -0.2955092191696167, 0.215758815407753, -0.5362018346786499, -0.39292001724243164, -0.2255384773015976, -0.5197243094444275, -0.9345669150352478, -0.35938921570777893, -0.48844149708747864, -0.5092252492904663, -0.7471006512641907, -0.7044113278388977, 0.5548209547996521, 0.21594081819057465, -0.6587311625480652, 0.5740182995796204, -1.1516317129135132, -0.19286422431468964, 0.2167331576347351, 0.8946197628974915, -0.8679582476615906, -0.4378897547721863, -0.37526142597198486, -0.03595985472202301, -0.9816790223121643, -1.0934805870056152, 0.08895096182823181, 0.5023020505905151, 0.7916019558906555, 0.3319835364818573, 0.028080912306904793, 0.2811683416366577, -0.4597153961658478, 0.8897689580917358, 0.4986063838005066, -0.8671926259994507, 0.9407498836517334, -0.48214101791381836, 0.13499321043491364, 1.2809398174285889, 0.7182777523994446, 0.06800571084022522, 0.17217646539211273, -1.2293092012405396, -0.5183165073394775, 0.15919844806194305, -0.12649601697921753, 0.24766232073307037, -0.1365755945444107, 0.30714133381843567, 0.07045517861843109, 0.7204563617706299, -0.8986284136772156, -0.04102706536650658, -0.282696932554245, 0.024274466559290886, 0.5104876756668091, -0.1843695044517517, -0.3716183602809906, -0.9063323736190796, 0.9400568604469299, 0.2302982360124588, 0.6064518690109253, 0.3348553478717804, 0.6049171686172485, -0.5041656494140625, -0.12268886715173721, 0.7597470879554749, 1.0914263725280762, -0.7614454030990601, -0.010316220112144947, 0.0010343099711462855, -0.7453498840332031, 0.28636547923088074, 0.5236023664474487, 0.26071885228157043, 0.02088451385498047, 0.34339678287506104, 0.4200834035873413, 0.28177765011787415, -0.6191181540489197, 0.6192700862884521, 0.08245248347520828, -0.8990646600723267, -1.2664198875427246, 0.308881551027298, -0.18475180864334106, 0.34555256366729736, 0.1627635508775711, 0.36363932490348816, 0.02355029620230198, -0.5653235912322998, 0.8606302738189697, -0.27068403363227844, -0.7775906920433044, -0.3564372956752777, 0.5646424889564514, 0.8769177794456482, -0.9743995070457458, 0.5713846683502197, -0.6759935021400452, -0.8066295385360718, 0.7594143152236938, 0.4864859879016876, 0.9238428473472595, -0.22466067969799042, 0.5380235314369202, 0.3259563744068146, -0.252384215593338, -0.2010745108127594, 1.1706929206848145, 0.07712972164154053, -0.7091275453567505, -0.10436232388019562, -0.787244439125061, -0.26459214091300964, 0.07501739263534546, -0.20855499804019928, 0.33482658863067627, -0.8935325741767883, -0.21674565970897675, 0.1411704570055008, -0.03830920159816742, -0.24594822525978088, 0.11805132031440735, 0.14264041185379028, 1.9054076671600342, -0.6044995784759521, 1.2672715187072754, 1.1315709352493286, -0.5850971341133118, -0.7515800595283508, -0.43746116757392883, 0.044785477221012115, -0.2856139540672302, 0.7608955502510071, 0.0675547868013382, 0.40668848156929016, 0.38317763805389404, -0.7997314929962158, -0.4260992705821991, 1.093899130821228, 0.48882731795310974, -0.5874704122543335, 0.17060238122940063, -0.251429945230484, 0.13753844797611237, -0.6787027716636658, -0.4459863007068634, 0.619601309299469, 0.42149990797042847, 0.18581004440784454, -1.4873745441436768, -0.1827365905046463, -0.30313801765441895, -0.6472302079200745, 0.7028381824493408, -0.27409958839416504, 0.9298134446144104, -0.04050189256668091, 0.6438426375389099, 0.3154516816139221, 0.3410532772541046, 0.4874297082424164, 0.2720567584037781, 0.6772067546844482, 0.7913992404937744, 0.5763524174690247, -0.1894972324371338, 0.5121398568153381, 0.01424925122410059, 0.44611337780952454, 0.994225263595581, -0.37607672810554504, 0.49564698338508606, 0.8614316582679749, -0.460232138633728, 0.6701818108558655, 1.0764518976211548, -0.42509469389915466, 0.6356640458106995, -0.2302820235490799, -0.5096780061721802, -0.24589696526527405, 0.27617526054382324, -0.7702035307884216, -0.1511916220188141, 0.06731848418712616, -0.6875067353248596, -0.3311110734939575, -0.11569848656654358, 0.22361785173416138, -0.04938522353768349, -0.5129565596580505, 0.567927896976471, 0.023417407646775246, -0.359526664018631, 0.7206825613975525, -0.0136412950232625, 0.6353303790092468, -0.6973676085472107, -0.4266510307788849, 0.00573418103158474, 0.04575185477733612, -0.09149101376533508, -0.7589963674545288, 0.8637335300445557, -0.17254593968391418, -0.26100003719329834, -0.5478866100311279, 0.5376002788543701, -0.1067163273692131, -0.6227771043777466, 0.29156044125556946, 0.20521493256092072, 0.23410825431346893, -0.18071629106998444, -1.297946572303772, 0.19755025207996368, 0.23077544569969177, 0.08155842870473862, 0.25807541608810425, 0.42029550671577454, 0.2421056181192398, 0.3494237959384918, 0.2588845193386078, -0.05497553199529648, 0.0414491631090641, 0.13464336097240448, 0.8740177154541016, -0.4927625358104706, -0.6081909537315369, -0.5966079235076904, 0.4852500855922699, -0.3765370547771454, -0.6850098967552185, 0.26709306240081787, 0.8913411498069763, 1.3000882863998413, -0.11290064454078674, 0.32941409945487976, -0.5092921853065491, 0.5724267363548279, -0.06740622967481613, 0.4350722134113312, -0.2500908076763153, 0.21488021314144135, 0.1362026482820511, -0.8172827363014221, -0.33402758836746216, 0.717801570892334, -0.2499275654554367, 0.11467692255973816, 1.0156490802764893, 0.5648676156997681, -0.22293324768543243, 0.29231709241867065, 0.1667371243238449, -0.19478873908519745, -0.01141402404755354, 0.5104172229766846, 0.031713806092739105, -0.8085671067237854, 0.36248549818992615, -0.7196639180183411, -0.4941006898880005, 0.05880172178149223, -1.1978180408477783, -0.6491143703460693, -0.19672702252864838, -0.6915801167488098, -0.7428479790687561, -0.11429134011268616, 0.9598941206932068, 1.1827387809753418, -0.9226365685462952, -0.2836836278438568, -0.22748561203479767, 0.0642242506146431, 0.01746342144906521, -0.12656764686107635, 0.06528276950120926, -0.182587668299675, -0.33058708906173706, 0.1079995334148407, 0.08683863282203674, 0.6622892022132874, -0.35972416400909424, -0.6842457056045532, -0.5150262117385864, -0.3128131628036499, 0.3357903063297272, 0.6950769424438477, -0.1740870624780655, -0.4127610921859741, -0.20451383292675018, 0.049899302423000336, 0.3369063138961792, 0.6305728554725647, -0.4759289026260376, -0.18720240890979767, 0.6074452996253967, 0.18891653418540955, 0.5362663269042969, -0.4244421720504761, 0.8571212291717529, -0.9570215344429016, 0.4784493148326874, 0.5017510056495667, 0.3751736581325531, 0.18837447464466095, -0.4452076256275177, 1.2449455261230469, 0.6964060664176941, -0.8322202563285828, -0.9292085766792297, 0.15089264512062073, -1.2164429426193237, -0.035229433327913284, 0.48262548446655273, -0.02475794591009617, -0.2906040847301483, -0.26921015977859497, -0.3661578297615051, 0.019313914701342583, -0.4898276627063751, -0.004238651599735022, 0.43326136469841003, -0.41217145323753357, -0.5828971266746521, -0.4240635633468628, 0.8405154943466187, -0.02884926088154316, -0.7120630741119385, -0.7634897828102112, 0.4887579679489136, 0.3785470128059387, 0.03366135433316231, 1.2489216327667236, -0.4637710452079773, 0.5889526009559631, 0.261750191450119, 0.04765881225466728, -0.4280075132846832, -0.31455257534980774, -0.5080838799476624, -0.08301454037427902, -0.010105986148118973, -0.32240331172943115 ]
cl-tohoku/bert-base-japanese-char-v2
cl-tohoku
"2021-09-23T13:45:24Z"
35,257
3
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "ja", "dataset:wikipedia", "license:cc-by-sa-4.0", "autotrain_compatible", "endpoints_compatible", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ja license: cc-by-sa-4.0 datasets: - wikipedia widget: - text: 東北大学で[MASK]の研究をしています。 --- # BERT base Japanese (character-level tokenization with whole word masking, jawiki-20200831) This is a [BERT](https://github.com/google-research/bert) model pretrained on texts in the Japanese language. This version of the model processes input texts with word-level tokenization based on the Unidic 2.1.2 dictionary (available in [unidic-lite](https://pypi.org/project/unidic-lite/) package), followed by character-level tokenization. Additionally, the model is trained with the whole word masking enabled for the masked language modeling (MLM) objective. The codes for the pretraining are available at [cl-tohoku/bert-japanese](https://github.com/cl-tohoku/bert-japanese/tree/v2.0). ## Model architecture The model architecture is the same as the original BERT base model; 12 layers, 768 dimensions of hidden states, and 12 attention heads. ## Training Data The models are trained on the Japanese version of Wikipedia. The training corpus is generated from the Wikipedia Cirrussearch dump file as of August 31, 2020. The generated corpus files are 4.0GB in total, containing approximately 30M sentences. We used the [MeCab](https://taku910.github.io/mecab/) morphological parser with [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd) dictionary to split texts into sentences. ## Tokenization The texts are first tokenized by MeCab with the Unidic 2.1.2 dictionary and then split into characters. The vocabulary size is 6144. We used [`fugashi`](https://github.com/polm/fugashi) and [`unidic-lite`](https://github.com/polm/unidic-lite) packages for the tokenization. ## Training The models are trained with the same configuration as the original BERT; 512 tokens per instance, 256 instances per batch, and 1M training steps. For training of the MLM (masked language modeling) objective, we introduced whole word masking in which all of the subword tokens corresponding to a single word (tokenized by MeCab) are masked at once. For training of each model, we used a v3-8 instance of Cloud TPUs provided by [TensorFlow Research Cloud program](https://www.tensorflow.org/tfrc/). The training took about 5 days to finish. ## Licenses The pretrained models are distributed under the terms of the [Creative Commons Attribution-ShareAlike 3.0](https://creativecommons.org/licenses/by-sa/3.0/). ## Acknowledgments This model is trained with Cloud TPUs provided by [TensorFlow Research Cloud](https://www.tensorflow.org/tfrc/) program.
[ -0.38891011476516724, -0.8852937817573547, 0.1915193647146225, 0.17813704907894135, -0.6929770708084106, 0.06409092247486115, -0.30647552013397217, -0.4456847906112671, 0.4843924641609192, 0.5655784606933594, -0.7241201996803284, -0.5981297492980957, -0.6433994174003601, -0.006735343486070633, -0.15855014324188232, 1.1557199954986572, -0.007246016059070826, 0.23581543564796448, 0.27552172541618347, 0.2158242017030716, -0.31132176518440247, -0.7069882750511169, -0.7661287188529968, -0.3480800986289978, 0.4065096378326416, 0.1483794003725052, 0.43914514780044556, 0.438434898853302, 0.2065858393907547, 0.20527096092700958, -0.0014718135353177786, -0.08065406233072281, -0.556255042552948, -0.18804322183132172, 0.032724227756261826, -0.4086466133594513, -0.2418336719274521, -0.018393389880657196, 0.6369795799255371, 0.7453190684318542, 0.06823909282684326, 0.046441346406936646, -0.08949566632509232, 0.3916017711162567, -0.5329598784446716, 0.04184415191411972, -0.7493571043014526, 0.049512386322021484, -0.34322401881217957, 0.22645309567451477, -0.30878111720085144, 0.09713869541883469, 0.12331493943929672, -0.7229703664779663, 0.35892122983932495, 0.013956967741250992, 1.2577519416809082, -0.03750947490334511, -0.0580502524971962, -0.23169490694999695, -0.4240381121635437, 0.7293587923049927, -0.974423885345459, 0.38937854766845703, 0.5769727826118469, -0.012719928286969662, -0.13070207834243774, -0.8724139928817749, -0.6521974205970764, -0.17485332489013672, 0.055319562554359436, 0.08359840512275696, -0.08882957696914673, 0.18404226005077362, 0.3254397511482239, 0.23614263534545898, -0.7362575531005859, 0.3618800640106201, -0.434040367603302, -0.32294830679893494, 0.41167256236076355, -0.0828530341386795, 0.35011932253837585, -0.4025169014930725, -0.4715719521045685, -0.23660016059875488, -0.5064018964767456, 0.1215301975607872, 0.3774293065071106, 0.21365177631378174, -0.05167270079255104, 0.5297093391418457, -0.03729361295700073, 0.4810751676559448, -0.1671767234802246, -0.248041570186615, 0.336884081363678, -0.35103774070739746, -0.39834198355674744, 0.09561838209629059, 1.0108915567398071, 0.08924460411071777, 0.3971133232116699, -0.2136673629283905, -0.31799831986427307, -0.051684290170669556, 0.2614312469959259, -0.927097499370575, -0.18656626343727112, 0.1300552785396576, -0.6084048748016357, -0.3394458293914795, 0.05807286500930786, -0.47422492504119873, 0.009707402437925339, -0.0013454389991238713, 0.7359407544136047, -0.6451807618141174, -0.30303266644477844, 0.19170090556144714, -0.14189140498638153, 0.16565339267253876, 0.0067667667753994465, -0.938252329826355, 0.21602192521095276, 0.5953295826911926, 0.7849273085594177, 0.01369128841906786, -0.2617601752281189, 0.030790653079748154, 0.08713679760694504, -0.38089612126350403, 0.3706490397453308, -0.2960493564605713, -0.4123755991458893, 0.03083425760269165, 0.13929440081119537, -0.22549155354499817, -0.2242230772972107, 0.4610471725463867, -0.520199716091156, 0.3903355002403259, -0.049115847796201706, -0.79537034034729, -0.20742201805114746, 0.23783902823925018, -0.4297131299972534, 1.1123465299606323, 0.0473329983651638, -0.6675261855125427, 0.2088399976491928, -0.8470092415809631, -0.42518121004104614, 0.3203544616699219, 0.12896451354026794, -0.46050703525543213, 0.01827452890574932, 0.2396257519721985, 0.46615928411483765, 0.09462614357471466, 0.3955419957637787, -0.16996578872203827, -0.39731061458587646, 0.26962006092071533, -0.27961310744285583, 1.1702755689620972, 0.195451557636261, -0.6075876951217651, 0.01934705674648285, -0.7720448970794678, 0.06868723779916763, 0.22917814552783966, -0.2640508711338043, -0.35968491435050964, -0.3301316797733307, 0.234266459941864, 0.20991583168506622, 0.49624669551849365, -0.7678812742233276, 0.12186875939369202, -0.5832493305206299, 0.45384523272514343, 0.7433225512504578, -0.11330480128526688, 0.2317703813314438, -0.07962489128112793, 0.41648730635643005, 0.04679475352168083, 0.245407372713089, -0.36902543902397156, -0.6655293107032776, -1.0895127058029175, -0.3665860891342163, 0.7515334486961365, 0.4411160945892334, -0.7484648823738098, 0.8990567326545715, -0.3481793999671936, -0.4314884841442108, -0.878735363483429, 0.020566746592521667, 0.5001634359359741, 0.4200149476528168, 0.2718946635723114, -0.544230580329895, -0.6708716154098511, -0.9513934850692749, 0.152358740568161, -0.15937118232250214, -0.22550523281097412, 0.010190245695412159, 0.7243210673332214, -0.46408435702323914, 0.7278053760528564, -0.3004259169101715, -0.41844719648361206, -0.269137442111969, 0.29577168822288513, 0.30505380034446716, 0.6312505602836609, 0.4581396281719208, -0.5133493542671204, -0.4930947422981262, -0.24407358467578888, -0.4836202561855316, -0.037536755204200745, -0.056628257036209106, -0.3114981949329376, 0.3695383071899414, 0.6101409792900085, -0.5561476945877075, 0.40093597769737244, 0.5097358226776123, -0.34349560737609863, 0.3825797140598297, -0.17911268770694733, -0.2214450240135193, -1.455643892288208, 0.4441688060760498, -0.21085487306118011, -0.2766750752925873, -0.7692378759384155, 0.05960514023900032, -0.04911087080836296, -0.24375440180301666, -0.3451985716819763, 0.6212800741195679, -0.5401928424835205, 0.029424991458654404, -0.29447415471076965, 0.0018767246510833502, -0.023230278864502907, 0.8387784957885742, 0.16065938770771027, 0.6900335550308228, 0.4914151728153229, -0.5934019684791565, 0.05934944376349449, 0.07599671930074692, -0.7257058024406433, -0.06010874733328819, -0.774211585521698, 0.16752158105373383, -0.04687178507447243, 0.17964446544647217, -1.0202265977859497, -0.08826679736375809, 0.5430878400802612, -0.6034584045410156, 0.5738988518714905, 0.1601785570383072, -0.8202873468399048, -0.3672649562358856, -0.40264892578125, 0.08610539883375168, 0.6699628829956055, -0.4167483448982239, 0.42969220876693726, 0.3902525007724762, -0.04693389683961868, -0.7759729623794556, -0.8258858919143677, 0.32271474599838257, 0.1752864569425583, -0.4093106687068939, 0.5294018983840942, -0.08660755306482315, 0.1441972404718399, 0.1569029688835144, 0.07778926193714142, -0.08007234334945679, 0.2305961400270462, 0.12279844284057617, 0.37535756826400757, -0.1772119700908661, 0.057627562433481216, 0.09277351200580597, -0.03734608739614487, -0.06572657078504562, -0.23158589005470276, 0.9780535101890564, 0.10844400525093079, -0.09390293806791306, -0.44535353779792786, 0.2661428153514862, 0.2958239018917084, -0.05542546510696411, 1.0593504905700684, 0.9150561690330505, -0.5226224064826965, -0.0449579618871212, -0.6365911960601807, -0.20651422441005707, -0.4347817897796631, 0.5865238904953003, -0.4827958047389984, -1.0088858604431152, 0.5545617341995239, 0.34925079345703125, 0.30862781405448914, 0.611040472984314, 0.5818473696708679, -0.23389595746994019, 0.9554504752159119, 0.7224289774894714, -0.35905447602272034, 0.6378491520881653, -0.43095308542251587, 0.31464245915412903, -0.8647562265396118, -0.41017231345176697, -0.36959877610206604, -0.3433477580547333, -0.6342833042144775, -0.38720861077308655, 0.14457827806472778, 0.30864593386650085, -0.24747300148010254, 0.37371647357940674, -0.45859861373901367, 0.45577824115753174, 0.6845516562461853, 0.18260248005390167, 0.01606936939060688, 0.34006235003471375, -0.3491564691066742, -0.11885681003332138, -0.7001598477363586, -0.4863709509372711, 1.2028056383132935, 0.624897301197052, 0.4539119601249695, -0.09505204856395721, 0.6699879169464111, 0.09860016405582428, 0.30013877153396606, -0.6921656131744385, 0.58332759141922, -0.459096759557724, -1.0311676263809204, -0.31585222482681274, -0.2891148030757904, -1.0616830587387085, 0.31585365533828735, -0.30080029368400574, -0.7237169742584229, 0.0024803075939416885, -0.297882616519928, -0.04889644682407379, 0.48872727155685425, -0.6337441205978394, 0.8467769622802734, -0.2771635353565216, 0.11222095787525177, -0.1750020831823349, -0.92389315366745, 0.3534215986728668, -0.19325760006904602, 0.11814277619123459, -0.0586986280977726, -0.09134218096733093, 1.1177300214767456, -0.46484845876693726, 1.0305315256118774, -0.21710331737995148, 0.013531843200325966, 0.05884125083684921, -0.23947659134864807, 0.16348817944526672, -0.1805349886417389, 0.18989774584770203, 0.6480551362037659, -0.1624070703983307, -0.5308458209037781, -0.19975820183753967, 0.5961571931838989, -1.1233551502227783, -0.38438814878463745, -0.4674276113510132, -0.3433094322681427, -0.04295704513788223, 0.5171695351600647, 0.5911244750022888, 0.27096936106681824, -0.2667337656021118, 0.31157922744750977, 0.8655861616134644, -0.2662448585033417, 0.5445234179496765, 0.6092070937156677, -0.31116047501564026, -0.4508941173553467, 0.8645328879356384, 0.13266277313232422, 0.11855173110961914, 0.5963066816329956, 0.013538061641156673, -0.34335193037986755, -0.5076600313186646, -0.45775213837623596, 0.5032610893249512, -0.49939724802970886, -0.026754043996334076, -0.889369547367096, -0.5120899081230164, -0.6761281490325928, 0.06949728727340698, -0.28395870327949524, -0.4209694266319275, -0.5167583227157593, -0.05205149948596954, 0.012368425726890564, 0.561211347579956, 0.05086498335003853, 0.5201963782310486, -0.6027331352233887, 0.27706578373908997, 0.17481788992881775, 0.28422126173973083, -0.011183666996657848, -0.7484418749809265, -0.42757946252822876, 0.2794840931892395, -0.1676207035779953, -0.7081702947616577, 0.36653730273246765, 0.10003432631492615, 0.6734641790390015, 0.5509847402572632, -0.18905404210090637, 0.6538234353065491, -0.4202735126018524, 0.9857607483863831, 0.40419548749923706, -1.0153436660766602, 0.44762280583381653, -0.262908011674881, 0.40199801325798035, 0.6250476837158203, 0.5157333612442017, -0.6213250756263733, -0.4500352144241333, -0.8021070957183838, -0.8005019426345825, 0.8370669484138489, 0.29565519094467163, 0.3833901584148407, 0.036164697259664536, 0.4246847927570343, -0.010643177665770054, 0.3156735301017761, -1.059853196144104, -0.42144671082496643, -0.42140907049179077, -0.26818227767944336, -0.3285638988018036, -0.6086687445640564, 0.08758511394262314, -0.33115682005882263, 1.043236255645752, 0.11385603994131088, 0.4128704369068146, 0.09955428540706635, -0.3346039354801178, 0.019878271967172623, 0.0889066532254219, 0.7529869675636292, 0.5285841822624207, -0.39179331064224243, -0.05584922060370445, -0.02587815374135971, -0.7185774445533752, -0.17157328128814697, 0.1394008845090866, -0.35765817761421204, 0.5463906526565552, 0.4652719497680664, 1.3453367948532104, 0.3413234353065491, -0.6236682534217834, 0.5419042706489563, 0.002761495066806674, -0.44110405445098877, -0.2177603840827942, -0.031901054084300995, 0.11660808324813843, -0.12008003145456314, 0.40920859575271606, -0.333149254322052, -0.11843623965978622, -0.521565318107605, -0.013051622547209263, 0.44493189454078674, -0.23585298657417297, -0.2896248698234558, 0.5793160796165466, 0.16305777430534363, -0.25142285227775574, 0.7546608448028564, -0.130957692861557, -0.8301106691360474, 0.5549586415290833, 0.7004731297492981, 1.0024672746658325, -0.23712773621082306, 0.24521882832050323, 0.609582245349884, 0.606946587562561, 0.10083466023206711, -0.015257150866091251, -0.11875661462545395, -0.876519501209259, -0.33566367626190186, -0.8358625769615173, -0.26687732338905334, 0.6000412702560425, -0.4639430642127991, 0.14653171598911285, -0.6335105299949646, -0.12484405189752579, -0.004348565358668566, 0.3705839514732361, -0.4612475633621216, 0.35586249828338623, 0.262307345867157, 0.8563085794448853, -0.7629843950271606, 1.1382004022598267, 0.7483870387077332, -0.4205394387245178, -0.7819382548332214, -0.08192237466573715, -0.48371922969818115, -1.1184163093566895, 0.5707990527153015, 0.3416375517845154, 0.2154340147972107, 0.086990587413311, -0.6523773074150085, -0.7620412111282349, 0.8880674839019775, 0.11625991016626358, -0.5993223190307617, -0.1885899007320404, 0.2255818396806717, 0.724123477935791, -0.41980913281440735, 0.1263210028409958, 0.33925050497055054, 0.25476592779159546, 0.028133075684309006, -0.8899248242378235, -0.16446147859096527, -0.41352829337120056, 0.4285868704319, 0.07729903608560562, -0.4156547486782074, 0.9153746962547302, 0.08791687339544296, -0.2476082146167755, 0.14554406702518463, 0.5105067491531372, 0.22357919812202454, -0.01674516685307026, 0.586682915687561, 0.8536067605018616, 0.6638128757476807, 0.046795643866062164, 0.821515679359436, -0.41400834918022156, 0.38079458475112915, 0.8458594083786011, 0.1947306990623474, 0.7921229600906372, 0.43305474519729614, -0.06807976961135864, 0.6949400305747986, 0.8192362189292908, -0.18569466471672058, 0.718887448310852, 0.12891022861003876, -0.19304406642913818, -0.15057766437530518, -0.19228693842887878, -0.40109968185424805, 0.26055797934532166, 0.3894977271556854, -0.513181209564209, -0.13127849996089935, 0.15352897346019745, 0.3177242875099182, -0.3494538366794586, -0.3688248097896576, 0.8061189651489258, 0.12011034041643143, -0.6555344462394714, 0.6444569230079651, 0.41787731647491455, 1.03219473361969, -1.0057554244995117, 0.34834885597229004, -0.17579153180122375, 0.11968470364809036, 0.11102061718702316, -0.6222509145736694, 0.021206196397542953, 0.18054363131523132, -0.2454672008752823, -0.3422907292842865, 0.7070280909538269, -0.6114161610603333, -0.6556726098060608, 0.2717285454273224, 0.15039892494678497, 0.46729040145874023, 0.06557345390319824, -0.9586834907531738, 0.09908275306224823, 0.2505236566066742, -0.3022342026233673, 0.43429040908813477, 0.17448435723781586, -0.058642059564590454, 0.4816638231277466, 0.9172312617301941, 0.11447295546531677, 0.20872759819030762, 0.3137008249759674, 0.7808367013931274, -0.5092519521713257, -0.5676149725914001, -0.8487417101860046, 0.3715212047100067, -0.13970431685447693, -0.4136461615562439, 0.6481068134307861, 0.5190773606300354, 0.9803613424301147, -0.20899038016796112, 0.6045692563056946, -0.1262303739786148, 0.4946679472923279, -0.5449079871177673, 0.7911221385002136, -0.7174775004386902, -0.0075415815226733685, -0.1863752156496048, -0.9924156665802002, -0.19848863780498505, 0.8164016008377075, 0.11349090188741684, 0.08155511319637299, 0.589724063873291, 0.74959796667099, 0.08258800208568573, -0.22563496232032776, 0.35097721219062805, 0.25038942694664, 0.2865716218948364, 0.5928654670715332, 0.4265935719013214, -0.6948664784431458, 0.3798310458660126, -0.48293206095695496, -0.14002567529678345, -0.24744778871536255, -0.685865044593811, -1.203228235244751, -0.6068230271339417, -0.22816185653209686, -0.3667744994163513, 0.003034112509340048, 0.8264663219451904, 0.7010071873664856, -0.8511275053024292, -0.3315095901489258, -0.11370781809091568, -0.16937676072120667, 0.17125952243804932, -0.2572874128818512, 0.4021211862564087, -0.3951079845428467, -0.7878089547157288, 0.16273725032806396, 0.05802341178059578, 0.13963162899017334, -0.3908776044845581, 0.010653063654899597, -0.5182469487190247, -0.03371803089976311, 0.4975244402885437, 0.1310187578201294, -0.7495622634887695, -0.06516776233911514, 0.10021355003118515, -0.38254138827323914, -0.13435591757297516, 0.6379294395446777, -0.47359272837638855, 0.6257240176200867, 0.3355197310447693, 0.5720796585083008, 0.9081159830093384, -0.22721126675605774, 0.3536125421524048, -0.9537388682365417, 0.3349093794822693, 0.1481136828660965, 0.36363574862480164, 0.3815438449382782, -0.21650554239749908, 0.46679696440696716, 0.4178052544593811, -0.2197309285402298, -0.9386706948280334, -0.10503002256155014, -0.9409957528114319, -0.5824117660522461, 1.0404253005981445, -0.19853529334068298, -0.3716042935848236, -0.012971583753824234, -0.15647058188915253, 0.47620701789855957, -0.14215150475502014, 0.691203236579895, 1.0380899906158447, 0.40874040126800537, -0.2137831449508667, -0.28223419189453125, 0.3412254750728607, 0.5354560613632202, -0.5610223412513733, -0.3933250308036804, 0.13682757318019867, 0.5828176736831665, 0.32778897881507874, 0.9192127585411072, -0.01013097632676363, 0.03310684487223625, -0.1407117396593094, 0.39880016446113586, -0.146677628159523, -0.16340428590774536, -0.31059497594833374, -0.062433693557977676, -0.3078289031982422, -0.5249074101448059 ]
peft-internal-testing/tiny_OPTForFeatureExtraction-lora
peft-internal-testing
"2023-07-24T08:53:35Z"
35,257
0
peft
[ "peft", "text-generation", "region:us" ]
text-generation
"2023-07-13T14:10:04Z"
--- library_name: peft pipeline_tag: text-generation --- ## Training procedure ### Framework versions - PEFT 0.4.0.dev0
[ -0.4463561177253723, -0.2354237139225006, 0.2216254621744156, 0.8747684955596924, -0.1453646570444107, 0.2397010326385498, 0.6378126740455627, 0.11012771725654602, 0.3118548095226288, 0.8683319091796875, -0.6462950110435486, -0.24985601007938385, -0.4143563508987427, 0.19406037032604218, -0.4284796714782715, 0.7678045034408569, -0.27617141604423523, 0.328695684671402, 0.18701276183128357, 0.13015814125537872, -0.00044631146010942757, -0.7633618712425232, -1.092003345489502, -0.42716825008392334, 0.316043496131897, 0.6978024840354919, 0.05524926260113716, 0.2132124900817871, 0.5485395193099976, 0.25440824031829834, 0.08255698531866074, -0.8952438831329346, -0.39447280764579773, 0.09748408198356628, -0.20979619026184082, 0.18788328766822815, -1.201399326324463, -0.02519008331000805, 0.4715600311756134, 0.6416333317756653, -0.2192506641149521, 0.055906131863594055, -0.37814417481422424, 0.8860044479370117, -0.2401953637599945, -0.12780500948429108, -0.37095603346824646, 0.5981004238128662, -0.2058619111776352, -0.02320699766278267, 0.031110839918255806, -0.3323378264904022, 0.2159983217716217, -0.6721716523170471, 0.46226397156715393, -0.4081379175186157, 0.7932312488555908, -0.05218395218253136, -0.6795742511749268, 0.5335450172424316, -0.2872267961502075, 0.5352196097373962, -0.4301677644252777, 1.178346872329712, 0.7095305919647217, 0.383261501789093, -0.09482276439666748, -1.1542305946350098, -0.1095941960811615, 0.27899253368377686, 0.5860605835914612, -0.45658883452415466, 0.40445730090141296, 0.1307944655418396, 0.7477390170097351, 0.5776861906051636, -0.24486632645130157, 0.07077599316835403, -1.071709394454956, -0.6277372241020203, 0.5612714886665344, -0.28246209025382996, -0.1570052057504654, 0.6070406436920166, -0.3907153010368347, 0.14381419122219086, -1.1556323766708374, -0.3531026840209961, 0.1168355718255043, 0.010489696636795998, -0.625214159488678, 0.1713765263557434, -0.5180001854896545, 0.38983097672462463, 0.43832823634147644, 0.16020220518112183, 1.310984492301941, -0.2511248290538788, -0.8824300765991211, 0.16524681448936462, 0.18570442497730255, 0.10588688403367996, 0.10789506882429123, -0.1071341261267662, -0.3778994679450989, -0.5671821236610413, 0.3202877938747406, -1.0217400789260864, -0.647307813167572, 0.07288459688425064, -0.17414669692516327, -0.7955736517906189, 0.0989580824971199, -1.021554708480835, -0.240229994058609, 0.18047203123569489, 0.08623850345611572, -0.3681506812572479, -0.6963018178939819, 0.24966272711753845, -0.45946037769317627, 0.7612619996070862, 0.34057310223579407, -1.3159228563308716, 0.6145975589752197, 0.5979856848716736, 0.20114737749099731, 0.5949939489364624, -0.5040064454078674, -0.5987472534179688, 0.2749621570110321, -0.3463258445262909, 0.7483066320419312, 0.28338518738746643, -0.6575385928153992, 0.00630792835727334, 0.5150598883628845, -0.08718462288379669, -0.4786011874675751, 0.9383529424667358, -0.2974495589733124, 0.470561683177948, -0.16061367094516754, -0.49834662675857544, -0.14820539951324463, 0.4506674110889435, -0.4694356620311737, 1.1425728797912598, 0.8059081435203552, -0.08916941285133362, 0.36134961247444153, -1.1960101127624512, -0.5130751729011536, 0.08990535885095596, -0.19892096519470215, -0.5022124648094177, -0.12615205347537994, -0.3583417236804962, 0.22467675805091858, 0.24389466643333435, 0.01608697697520256, -0.2199537307024002, -0.2413458377122879, -0.5979945659637451, -0.31249260902404785, 1.044494390487671, 0.32528671622276306, -0.7078186869621277, 0.08425130695104599, -0.8034304976463318, 0.17324624955654144, 0.027541251853108406, -0.32733285427093506, 0.5499750971794128, -0.6557573676109314, -0.1998511701822281, 0.1697508692741394, 0.3851334750652313, -0.5993004441261292, 0.3266565203666687, -0.5111669301986694, 0.4918687641620636, 0.7410163283348083, 0.11809266358613968, 0.5985499024391174, -0.28694891929626465, 0.7572925686836243, -0.0892573893070221, 0.4786792993545532, 0.21141815185546875, -0.3717484176158905, -0.7299442291259766, -0.12602324783802032, 0.3014948070049286, 0.6983135342597961, -0.16835515201091766, 0.5254059433937073, 0.3630547821521759, -0.5114028453826904, 0.4624154269695282, 0.15159662067890167, 0.4847971200942993, 0.3727411925792694, 0.13311117887496948, 0.11869092285633087, -1.0047764778137207, -0.6327551603317261, 0.6215009093284607, -0.3263746500015259, 0.11065903306007385, -0.3851923644542694, 0.7634518146514893, -0.5630315542221069, -0.015605872496962547, -0.15861910581588745, -0.0785755142569542, 0.13263039290905, -0.017762066796422005, 0.4044165313243866, 0.9688239693641663, 1.3607420921325684, -0.8962381482124329, -0.5366259217262268, -0.7066152095794678, -0.274448424577713, -0.44978973269462585, 0.1983964592218399, -0.24312658607959747, 0.5776241421699524, 0.6147399544715881, -0.10026275366544724, 0.4927685558795929, 0.49781128764152527, -0.8751580715179443, 0.5368309020996094, 0.2006334811449051, 0.123614601790905, -0.7068496346473694, -0.031859029084444046, -0.21050308644771576, -0.5723478198051453, -0.059429679065942764, 0.10326159000396729, -0.08456418663263321, -0.13981038331985474, -1.074164628982544, 0.594911515712738, -0.4325723648071289, 0.06349494308233261, 0.37653443217277527, -0.7830870151519775, 0.35271403193473816, 0.10996775329113007, 0.1734229475259781, 0.9167336821556091, 0.9226329326629639, -0.487259179353714, 0.6463075280189514, 0.5282274484634399, 0.5871515870094299, 0.6464889049530029, -0.616344690322876, 0.21257568895816803, 0.5310119390487671, -0.21208076179027557, -0.31466376781463623, -0.5293837189674377, 0.7046886086463928, -0.1361677348613739, 0.5093068480491638, 0.2490464746952057, -0.2568388283252716, -0.7004742622375488, -0.842119574546814, 0.24956847727298737, 0.7867730855941772, -0.16086220741271973, 0.12888336181640625, 0.34683072566986084, 0.08988424390554428, -0.3795102834701538, -0.7225751876831055, -0.09053926914930344, -0.03009321168065071, -0.3424474596977234, 0.37403419613838196, -0.5706960558891296, -0.007687426637858152, -0.683051586151123, -0.3812205195426941, -0.5852822661399841, -0.13320058584213257, 0.317401647567749, -0.12700000405311584, -0.14332304894924164, -0.03469732403755188, 0.1566895842552185, -0.26252105832099915, 0.08674664050340652, 0.03733588010072708, 0.36855462193489075, -0.39186811447143555, -0.21602796018123627, -0.13804806768894196, 0.3323507606983185, 0.3638383746147156, -0.05858924239873886, 0.4346916377544403, 0.5017607808113098, -0.595379650592804, 0.132847398519516, -0.44514620304107666, -0.2545539438724518, -0.5359430313110352, 0.2798624634742737, -0.4490460157394409, -1.039535641670227, 0.36131030321121216, -0.30776938796043396, 0.11340274661779404, 0.6108946204185486, 0.27097734808921814, -0.09769150614738464, 0.49221518635749817, 0.8312475085258484, 0.43630096316337585, 0.6384534239768982, -0.25400251150131226, 0.28162825107574463, -0.5976256728172302, -0.5271168351173401, -0.6279698014259338, 0.29465487599372864, -0.017350243404507637, -0.14012601971626282, 0.17172735929489136, 0.6765680313110352, -1.1675432920455933, 0.5981903076171875, -0.8091568350791931, 0.6083701252937317, 0.36887186765670776, -0.07399943470954895, -0.2229841649532318, -0.10772771388292313, -0.18045884370803833, 0.21101635694503784, -0.5365315079689026, -0.3877289593219757, 1.296811580657959, 0.9998144507408142, 0.38158079981803894, -0.009970832616090775, 1.0755391120910645, 0.05447876825928688, 0.3194095492362976, -0.06739719212055206, 0.7038456797599792, -0.027025878429412842, -1.0603939294815063, -0.368168443441391, 0.11862847208976746, -0.6103491187095642, -0.37378647923469543, -0.08967268466949463, -0.4584023654460907, 0.19272665679454803, 0.08299620449542999, -0.3088451325893402, 0.12207639962434769, -0.7794274687767029, 1.8680182695388794, -0.556201159954071, 0.5222845673561096, 0.3647228181362152, -0.6155432462692261, -0.03671783581376076, -0.639374315738678, -0.21100950241088867, -0.2257925420999527, -0.31316444277763367, 0.8670156002044678, -0.3992176055908203, 0.671633243560791, -0.25508710741996765, -0.07398594170808792, -0.2019883245229721, -0.2690739333629608, 0.2074688822031021, 0.1078222319483757, -0.32565316557884216, 0.16596311330795288, 0.6442817449569702, -0.7590606212615967, 0.09446835517883301, 0.40966853499412537, -0.5909839272499084, -0.17204195261001587, -0.7604984641075134, 0.1635282188653946, 0.07151299715042114, 0.5007852911949158, 0.629406750202179, 0.39730939269065857, -0.2760868966579437, 0.07957487553358078, 0.9887720346450806, 0.15420374274253845, 0.5845978260040283, 0.5154944062232971, -0.8054336309432983, -0.6882627010345459, 0.47012653946876526, -0.06069372966885567, -0.020007170736789703, 0.19244617223739624, -0.23832359910011292, -0.3919040858745575, -1.204458475112915, -0.2955092191696167, 0.215758815407753, -0.5362018346786499, -0.39292001724243164, -0.2255384773015976, -0.5197243094444275, -0.9345669150352478, -0.35938921570777893, -0.48844149708747864, -0.5092252492904663, -0.7471006512641907, -0.7044113278388977, 0.5548209547996521, 0.21594081819057465, -0.6587311625480652, 0.5740182995796204, -1.1516317129135132, -0.19286422431468964, 0.2167331576347351, 0.8946197628974915, -0.8679582476615906, -0.4378897547721863, -0.37526142597198486, -0.03595985472202301, -0.9816790223121643, -1.0934805870056152, 0.08895096182823181, 0.5023020505905151, 0.7916019558906555, 0.3319835364818573, 0.028080912306904793, 0.2811683416366577, -0.4597153961658478, 0.8897689580917358, 0.4986063838005066, -0.8671926259994507, 0.9407498836517334, -0.48214101791381836, 0.13499321043491364, 1.2809398174285889, 0.7182777523994446, 0.06800571084022522, 0.17217646539211273, -1.2293092012405396, -0.5183165073394775, 0.15919844806194305, -0.12649601697921753, 0.24766232073307037, -0.1365755945444107, 0.30714133381843567, 0.07045517861843109, 0.7204563617706299, -0.8986284136772156, -0.04102706536650658, -0.282696932554245, 0.024274466559290886, 0.5104876756668091, -0.1843695044517517, -0.3716183602809906, -0.9063323736190796, 0.9400568604469299, 0.2302982360124588, 0.6064518690109253, 0.3348553478717804, 0.6049171686172485, -0.5041656494140625, -0.12268886715173721, 0.7597470879554749, 1.0914263725280762, -0.7614454030990601, -0.010316220112144947, 0.0010343099711462855, -0.7453498840332031, 0.28636547923088074, 0.5236023664474487, 0.26071885228157043, 0.02088451385498047, 0.34339678287506104, 0.4200834035873413, 0.28177765011787415, -0.6191181540489197, 0.6192700862884521, 0.08245248347520828, -0.8990646600723267, -1.2664198875427246, 0.308881551027298, -0.18475180864334106, 0.34555256366729736, 0.1627635508775711, 0.36363932490348816, 0.02355029620230198, -0.5653235912322998, 0.8606302738189697, -0.27068403363227844, -0.7775906920433044, -0.3564372956752777, 0.5646424889564514, 0.8769177794456482, -0.9743995070457458, 0.5713846683502197, -0.6759935021400452, -0.8066295385360718, 0.7594143152236938, 0.4864859879016876, 0.9238428473472595, -0.22466067969799042, 0.5380235314369202, 0.3259563744068146, -0.252384215593338, -0.2010745108127594, 1.1706929206848145, 0.07712972164154053, -0.7091275453567505, -0.10436232388019562, -0.787244439125061, -0.26459214091300964, 0.07501739263534546, -0.20855499804019928, 0.33482658863067627, -0.8935325741767883, -0.21674565970897675, 0.1411704570055008, -0.03830920159816742, -0.24594822525978088, 0.11805132031440735, 0.14264041185379028, 1.9054076671600342, -0.6044995784759521, 1.2672715187072754, 1.1315709352493286, -0.5850971341133118, -0.7515800595283508, -0.43746116757392883, 0.044785477221012115, -0.2856139540672302, 0.7608955502510071, 0.0675547868013382, 0.40668848156929016, 0.38317763805389404, -0.7997314929962158, -0.4260992705821991, 1.093899130821228, 0.48882731795310974, -0.5874704122543335, 0.17060238122940063, -0.251429945230484, 0.13753844797611237, -0.6787027716636658, -0.4459863007068634, 0.619601309299469, 0.42149990797042847, 0.18581004440784454, -1.4873745441436768, -0.1827365905046463, -0.30313801765441895, -0.6472302079200745, 0.7028381824493408, -0.27409958839416504, 0.9298134446144104, -0.04050189256668091, 0.6438426375389099, 0.3154516816139221, 0.3410532772541046, 0.4874297082424164, 0.2720567584037781, 0.6772067546844482, 0.7913992404937744, 0.5763524174690247, -0.1894972324371338, 0.5121398568153381, 0.01424925122410059, 0.44611337780952454, 0.994225263595581, -0.37607672810554504, 0.49564698338508606, 0.8614316582679749, -0.460232138633728, 0.6701818108558655, 1.0764518976211548, -0.42509469389915466, 0.6356640458106995, -0.2302820235490799, -0.5096780061721802, -0.24589696526527405, 0.27617526054382324, -0.7702035307884216, -0.1511916220188141, 0.06731848418712616, -0.6875067353248596, -0.3311110734939575, -0.11569848656654358, 0.22361785173416138, -0.04938522353768349, -0.5129565596580505, 0.567927896976471, 0.023417407646775246, -0.359526664018631, 0.7206825613975525, -0.0136412950232625, 0.6353303790092468, -0.6973676085472107, -0.4266510307788849, 0.00573418103158474, 0.04575185477733612, -0.09149101376533508, -0.7589963674545288, 0.8637335300445557, -0.17254593968391418, -0.26100003719329834, -0.5478866100311279, 0.5376002788543701, -0.1067163273692131, -0.6227771043777466, 0.29156044125556946, 0.20521493256092072, 0.23410825431346893, -0.18071629106998444, -1.297946572303772, 0.19755025207996368, 0.23077544569969177, 0.08155842870473862, 0.25807541608810425, 0.42029550671577454, 0.2421056181192398, 0.3494237959384918, 0.2588845193386078, -0.05497553199529648, 0.0414491631090641, 0.13464336097240448, 0.8740177154541016, -0.4927625358104706, -0.6081909537315369, -0.5966079235076904, 0.4852500855922699, -0.3765370547771454, -0.6850098967552185, 0.26709306240081787, 0.8913411498069763, 1.3000882863998413, -0.11290064454078674, 0.32941409945487976, -0.5092921853065491, 0.5724267363548279, -0.06740622967481613, 0.4350722134113312, -0.2500908076763153, 0.21488021314144135, 0.1362026482820511, -0.8172827363014221, -0.33402758836746216, 0.717801570892334, -0.2499275654554367, 0.11467692255973816, 1.0156490802764893, 0.5648676156997681, -0.22293324768543243, 0.29231709241867065, 0.1667371243238449, -0.19478873908519745, -0.01141402404755354, 0.5104172229766846, 0.031713806092739105, -0.8085671067237854, 0.36248549818992615, -0.7196639180183411, -0.4941006898880005, 0.05880172178149223, -1.1978180408477783, -0.6491143703460693, -0.19672702252864838, -0.6915801167488098, -0.7428479790687561, -0.11429134011268616, 0.9598941206932068, 1.1827387809753418, -0.9226365685462952, -0.2836836278438568, -0.22748561203479767, 0.0642242506146431, 0.01746342144906521, -0.12656764686107635, 0.06528276950120926, -0.182587668299675, -0.33058708906173706, 0.1079995334148407, 0.08683863282203674, 0.6622892022132874, -0.35972416400909424, -0.6842457056045532, -0.5150262117385864, -0.3128131628036499, 0.3357903063297272, 0.6950769424438477, -0.1740870624780655, -0.4127610921859741, -0.20451383292675018, 0.049899302423000336, 0.3369063138961792, 0.6305728554725647, -0.4759289026260376, -0.18720240890979767, 0.6074452996253967, 0.18891653418540955, 0.5362663269042969, -0.4244421720504761, 0.8571212291717529, -0.9570215344429016, 0.4784493148326874, 0.5017510056495667, 0.3751736581325531, 0.18837447464466095, -0.4452076256275177, 1.2449455261230469, 0.6964060664176941, -0.8322202563285828, -0.9292085766792297, 0.15089264512062073, -1.2164429426193237, -0.035229433327913284, 0.48262548446655273, -0.02475794591009617, -0.2906040847301483, -0.26921015977859497, -0.3661578297615051, 0.019313914701342583, -0.4898276627063751, -0.004238651599735022, 0.43326136469841003, -0.41217145323753357, -0.5828971266746521, -0.4240635633468628, 0.8405154943466187, -0.02884926088154316, -0.7120630741119385, -0.7634897828102112, 0.4887579679489136, 0.3785470128059387, 0.03366135433316231, 1.2489216327667236, -0.4637710452079773, 0.5889526009559631, 0.261750191450119, 0.04765881225466728, -0.4280075132846832, -0.31455257534980774, -0.5080838799476624, -0.08301454037427902, -0.010105986148118973, -0.32240331172943115 ]
flaviagiammarino/pubmed-clip-vit-base-patch32
flaviagiammarino
"2023-07-12T13:08:14Z"
35,216
1
transformers
[ "transformers", "pytorch", "tf", "jax", "clip", "zero-shot-image-classification", "medical", "vision", "en", "arxiv:2112.13906", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-image-classification
"2023-06-13T16:18:14Z"
--- license: mit language: - en tags: - medical - vision widget: - src: "https://huggingface.co/flaviagiammarino/pubmed-clip-vit-base-patch32/resolve/main/scripts/input.jpeg" candidate_labels: "Chest X-Ray, Brain MRI, Abdomen CT Scan" example_title: "Abdomen CT Scan" --- # Model Card for PubMedCLIP PubMedCLIP is a fine-tuned version of [CLIP](https://huggingface.co/docs/transformers/model_doc/clip) for the medical domain. ## Model Description PubMedCLIP was trained on the [Radiology Objects in COntext (ROCO)](https://github.com/razorx89/roco-dataset) dataset, a large-scale multimodal medical imaging dataset. The ROCO dataset includes diverse imaging modalities (such as X-Ray, MRI, ultrasound, fluoroscopy, etc.) from various human body regions (such as head, spine, chest, abdomen, etc.) captured from open-access [PubMed](https://pubmed.ncbi.nlm.nih.gov/) articles.<br> PubMedCLIP was trained for 50 epochs with a batch size of 64 using the Adam optimizer with a learning rate of 10−5. The authors have released three different pre-trained models at this [link](https://1drv.ms/u/s!ApXgPqe9kykTgwD4Np3-f7ODAot8?e=zLVlJ2) which use ResNet-50, ResNet-50x4 and ViT32 as image encoders. This repository includes only the ViT32 variant of the PubMedCLIP model.<br> - **Repository:** [PubMedCLIP Official GitHub Repository](https://github.com/sarahESL/PubMedCLIP) - **Paper:** [Does CLIP Benefit Visual Question Answering in the Medical Domain as Much as it Does in the General Domain?](https://arxiv.org/abs/2112.13906) ## Usage ```python import requests from PIL import Image import matplotlib.pyplot as plt from transformers import CLIPProcessor, CLIPModel model = CLIPModel.from_pretrained("flaviagiammarino/pubmed-clip-vit-base-patch32") processor = CLIPProcessor.from_pretrained("flaviagiammarino/pubmed-clip-vit-base-patch32") url = "https://huggingface.co/flaviagiammarino/pubmed-clip-vit-base-patch32/resolve/main/scripts/input.jpeg" image = Image.open(requests.get(url, stream=True).raw) text = ["Chest X-Ray", "Brain MRI", "Abdominal CT Scan"] inputs = processor(text=text, images=image, return_tensors="pt", padding=True) probs = model(**inputs).logits_per_image.softmax(dim=1).squeeze() plt.subplots() plt.imshow(image) plt.title("".join([x[0] + ": " + x[1] + "\n" for x in zip(text, [format(prob, ".4%") for prob in probs])])) plt.axis("off") plt.tight_layout() plt.show() ``` ## Additional Information ### Licensing Information The authors have released the model code and pre-trained checkpoints under the [MIT License](https://github.com/sarahESL/PubMedCLIP/blob/main/LICENSE). ### Citation Information ``` @article{eslami2021does, title={Does clip benefit visual question answering in the medical domain as much as it does in the general domain?}, author={Eslami, Sedigheh and de Melo, Gerard and Meinel, Christoph}, journal={arXiv preprint arXiv:2112.13906}, year={2021} } ```
[ -0.3944718837738037, -0.7872022390365601, 0.6465878486633301, -0.021455401554703712, -0.5609357357025146, -0.10881060361862183, 0.11225920170545578, -0.3795936107635498, 0.42678937315940857, 0.45844539999961853, -0.6183503866195679, -0.6009681820869446, -0.5347763895988464, 0.09648778289556503, 0.044529989361763, 0.947772204875946, -0.008406171575188637, 0.3866405189037323, -0.6118617057800293, -0.19027705490589142, -0.47492465376853943, -0.41389572620391846, -0.2915627658367157, -0.18207238614559174, 0.17207898199558258, 0.15092699229717255, 0.6560774445533752, 0.7163478136062622, 0.8528828024864197, 0.26290464401245117, -0.21746890246868134, 0.027708251029253006, -0.4258469045162201, -0.3415295481681824, -0.15074007213115692, -0.509765088558197, -0.6202647089958191, -0.14164681732654572, 0.3445848226547241, 0.2849510610103607, -0.0029367562383413315, 0.396297425031662, -0.16343678534030914, 0.4167898893356323, -0.4662676751613617, -0.030763404443860054, -0.3844777047634125, -0.05403567850589752, 0.10149767249822617, -0.2946471571922302, -0.2444215714931488, -0.22926437854766846, 0.44161322712898254, -0.8003227710723877, 0.3139357268810272, -0.15203361213207245, 1.4575132131576538, 0.20959898829460144, -0.052253320813179016, 0.0988178700208664, -0.41557690501213074, 0.5866186022758484, -0.651788055896759, 0.16502276062965393, 0.20710021257400513, 0.45009154081344604, 0.2407158613204956, -0.934848964214325, -0.13540078699588776, 0.27157941460609436, 0.30850574374198914, 0.23023752868175507, -0.33712807297706604, 0.027561413124203682, 0.2601034939289093, 0.010477025993168354, -0.5275186896324158, -0.20137359201908112, -0.8066360354423523, -0.1065988540649414, 0.5602440237998962, 0.29827776551246643, 0.4527350962162018, -0.35872751474380493, -0.842313826084137, -0.4158633351325989, -0.6262009143829346, 0.2376537024974823, -0.23764275014400482, -0.1690964549779892, -0.2988085448741913, 0.44911500811576843, 0.12040642648935318, 0.6222977042198181, -0.051511604338884354, -0.45151379704475403, 0.5047110319137573, -0.4339785575866699, -0.11640684306621552, -0.28378602862358093, 0.8807138800621033, 0.8073658347129822, 0.1663934588432312, 0.4687376320362091, 0.28477150201797485, -0.22795671224594116, 0.08511039614677429, -1.0084359645843506, -0.41393205523490906, 0.3462091386318207, -0.5883356332778931, -0.09979090094566345, 0.12101913243532181, -0.6765317320823669, 0.07457417994737625, -0.007488582283258438, 0.6454380750656128, -0.91428142786026, -0.10762551426887512, 0.4201907813549042, -0.3715343773365021, 0.15597154200077057, 0.48226481676101685, -0.35349225997924805, 0.069344162940979, 0.47481489181518555, 1.0275636911392212, -0.01777808740735054, -0.3390054404735565, -0.0355217382311821, 0.19814735651016235, -0.04648187756538391, 1.1265132427215576, -0.2914610803127289, -0.4466405212879181, -0.24212010204792023, 0.4078610837459564, -0.24127624928951263, -0.5465219616889954, 0.4997063875198364, -0.22900250554084778, 0.08975135535001755, -0.4960947334766388, -0.4653240144252777, -0.4635533392429352, 0.2636721134185791, -0.4218803346157074, 0.691002368927002, -0.03437604382634163, -0.9211207628250122, 0.2745792269706726, -0.4720156788825989, 0.023856891319155693, -0.014244083315134048, -0.12239667028188705, -0.8399278521537781, -0.2799642086029053, 0.8556492328643799, 0.33583390712738037, -0.1725362092256546, 0.2595328688621521, -0.708681046962738, -0.1993667334318161, 0.48869645595550537, -0.09606209397315979, 0.8590753674507141, 0.026010144501924515, 0.14420086145401, 0.18764686584472656, -0.4401073455810547, 0.1287899911403656, 0.47277528047561646, 0.06387728452682495, -0.3563411831855774, -0.2508971393108368, -0.1615227460861206, 0.32435542345046997, 0.13897186517715454, -0.7752828598022461, 0.15014594793319702, -0.12414487451314926, 0.7781187891960144, 0.4125654101371765, 0.6326022148132324, -0.12225039303302765, -0.6637020707130432, 0.7461689710617065, 0.04354673624038696, 0.6454977989196777, -0.30079638957977295, -0.6953914761543274, -0.2715906500816345, -0.9933499693870544, 0.4062322676181793, 0.5585554838180542, -0.7178272604942322, 0.08263637125492096, -0.3780589997768402, -0.6243510842323303, -0.7515829205513, -0.36169755458831787, 0.5298141241073608, 0.7054204344749451, 0.5531337261199951, -0.5083597898483276, -0.5151633620262146, -1.0011107921600342, 0.1846875548362732, 0.02608504146337509, -0.18227383494377136, 0.5971492528915405, 0.6131097674369812, -0.08901539444923401, 1.072252631187439, -0.9017913937568665, -0.36945095658302307, -0.2086848020553589, 0.19965128600597382, 0.1698433756828308, 0.46069180965423584, 0.8175804018974304, -0.7201250195503235, -0.4138248562812805, -0.5237762331962585, -0.6738699674606323, -0.1123444065451622, -0.10813620686531067, -0.12091608345508575, -0.31391826272010803, 0.4222894012928009, -0.47850778698921204, 0.6130932569503784, 0.15704384446144104, -0.07023248821496964, 0.5538649559020996, -0.4304580092430115, 0.287731796503067, -0.9262787699699402, 0.31704774498939514, -0.10205192118883133, -0.48119446635246277, -0.31391164660453796, -0.14681895077228546, -0.005225864239037037, -0.5574051737785339, -0.8888229727745056, 0.43722060322761536, -0.5299528241157532, -0.023895857855677605, -0.05011367425322533, -0.029908422380685806, 0.40227463841438293, 0.562852144241333, 0.4197741746902466, 0.835351288318634, 0.5409386157989502, -0.32262885570526123, -0.23012393712997437, 0.765845000743866, -0.18851560354232788, 0.564301609992981, -1.2287266254425049, -0.04089009389281273, -0.12933751940727234, 0.07367366552352905, -0.8649339079856873, -0.32689499855041504, 0.08954041451215744, -0.7054995894432068, 0.25586721301078796, -0.5199482440948486, -0.1981416493654251, -0.5435301065444946, -0.6678113341331482, 0.531466007232666, 0.6337659358978271, -0.34828534722328186, 0.16768759489059448, 0.6326293349266052, -0.12308861315250397, -0.5006634593009949, -0.8037707209587097, -0.38341569900512695, 0.015156344510614872, -0.6195183396339417, 0.40574517846107483, -0.01994890719652176, 0.34169018268585205, 0.25893163681030273, 0.1943143606185913, -0.4388710856437683, -0.29424142837524414, 0.4818645417690277, 0.5933138132095337, -0.16197949647903442, -0.09349679201841354, 0.10472258180379868, 0.06691358983516693, -0.002933936193585396, 0.3212551176548004, 0.462912917137146, -0.21130475401878357, -0.627498984336853, -0.5820642709732056, 0.4224264323711395, 0.6175777912139893, -0.4176643192768097, 0.48341500759124756, 0.40679216384887695, -0.22970613837242126, 0.23661641776561737, -0.38488253951072693, -0.17252925038337708, -0.44625118374824524, 0.6186196208000183, -0.14110985398292542, -0.6432549357414246, 0.7079147696495056, 0.059312161058187485, -0.26287510991096497, 0.5070347785949707, 0.6122418642044067, -0.13366387784481049, 0.9518384337425232, 0.5782966613769531, 0.4375510513782501, 0.59765625, -0.705298662185669, -0.1818109154701233, -1.1853337287902832, -0.3522108793258667, -0.11059332638978958, -0.0977664440870285, -0.022531408816576004, -0.8045759797096252, 0.9821061491966248, 0.22201581299304962, -0.17977890372276306, 0.17484919726848602, -0.9811127185821533, 0.4180646538734436, 0.4211199879646301, 0.6945982575416565, 0.0026782136410474777, -0.004298992455005646, -0.17040972411632538, -0.45455843210220337, -1.0894702672958374, -0.2739419639110565, 1.2043139934539795, 0.5428925156593323, 0.8072057366371155, -0.36046746373176575, 0.5552269816398621, -0.08093862980604172, 0.23156026005744934, -0.4918290376663208, 0.5959227681159973, -0.23187005519866943, -0.7141002416610718, 0.06203347444534302, 0.02964380569756031, -0.9559003710746765, 0.14384835958480835, -0.5298674702644348, -0.4664173722267151, 0.6435170769691467, 0.2169513702392578, -0.6102590560913086, 0.4189976155757904, -0.5992170572280884, 0.9141719937324524, -0.3289022147655487, -0.5353063344955444, 0.13352376222610474, -0.7375144958496094, 0.44332295656204224, 0.340620219707489, -0.04816518723964691, -0.2426491379737854, -0.045400168746709824, 0.8922402858734131, -0.7556342482566833, 0.9250356554985046, -0.19422684609889984, 0.6765767335891724, 0.6353640556335449, -0.2660839557647705, -0.038109950721263885, 0.2310459166765213, 0.4442819356918335, 0.4720684289932251, 0.6406474709510803, -0.2612619996070862, -0.2674661874771118, 0.18800748884677887, -0.7977906465530396, -0.1467515379190445, -0.515299916267395, -0.5254341959953308, 0.12988534569740295, 0.2863362729549408, 0.7010316252708435, 0.7204951047897339, -0.012461978010833263, 0.22477203607559204, 0.6809135675430298, -0.48353955149650574, 0.10114828497171402, 0.46450135111808777, -0.36772188544273376, -0.9723397493362427, 0.7536120414733887, 0.16807067394256592, 0.30764856934547424, 0.32439854741096497, 0.10847802460193634, -0.21113094687461853, -0.5531194806098938, -0.24631762504577637, 0.7848508358001709, -0.702092170715332, -0.538040816783905, -0.5877494215965271, -0.3052501976490021, -0.37707245349884033, -0.2624683380126953, -0.6174198389053345, -0.28510692715644836, -0.44136837124824524, 0.2095308154821396, 0.6538957357406616, 0.19724543392658234, -0.1334761679172516, 0.23319438099861145, -1.0133942365646362, 0.2437458336353302, 0.3372301459312439, 0.16167761385440826, -0.27364248037338257, -0.4467915892601013, -0.0050817267037928104, -0.05926869064569473, -0.5034996867179871, -0.9853447079658508, 0.5511364340782166, 0.3058353364467621, 0.5451356172561646, 0.3325453996658325, 0.07897543162107468, 0.9090525507926941, -0.5456463694572449, 0.8753728866577148, 0.398528516292572, -0.6522043943405151, 0.6005310416221619, -0.42816609144210815, 0.45991262793540955, 0.7338882088661194, 0.5912288427352905, -0.18726177513599396, -0.20028921961784363, -0.6856641173362732, -1.0561435222625732, 0.556840717792511, -0.2128402590751648, -0.24853074550628662, -0.19713453948497772, 0.45784780383110046, 0.027868492528796196, 0.18427500128746033, -0.5868314504623413, -0.040483132004737854, -0.36282941699028015, -0.11301063001155853, 0.26031795144081116, -0.440475195646286, -0.3604592978954315, -0.6560260653495789, 0.41941124200820923, -0.20152969658374786, 0.8627870082855225, 1.0033961534500122, -0.19526781141757965, 0.019580716267228127, -0.06305070221424103, 0.7065973281860352, 0.7921781539916992, -0.6394223570823669, -0.18576551973819733, -0.1126088798046112, -0.7199313640594482, -0.23901624977588654, 0.05105549097061157, -0.300101101398468, 0.2923336923122406, 0.6544530987739563, 0.9334948062896729, 0.36669644713401794, -0.8237477540969849, 1.0160086154937744, -0.07687560468912125, -0.6158035397529602, -0.22869274020195007, -0.06790149956941605, 0.12562747299671173, 0.34840330481529236, 0.2181020975112915, 0.04493436589837074, 0.1262201964855194, -0.1844027042388916, 0.43192216753959656, 0.397784024477005, -0.4656493663787842, -0.49029120802879333, 1.0645159482955933, -0.025966284796595573, -0.08788928389549255, 0.394547700881958, 0.3573869466781616, -0.7525537014007568, 0.5240160226821899, 0.49585825204849243, 0.6993831396102905, 0.04300542548298836, 0.3309289216995239, 0.7446776032447815, 0.13572779297828674, -0.05081406980752945, 0.39817044138908386, 0.1878385990858078, -0.4108232855796814, -0.3158283531665802, -0.28590327501296997, -0.6175090670585632, -0.02992965094745159, -1.070962905883789, 0.3866000473499298, -0.5006346702575684, -0.6293340921401978, 0.011950061656534672, -0.20746667683124542, -0.5329840779304504, 0.08513403683900833, 0.008196343667805195, 1.1319411993026733, -0.912449061870575, 0.7209217548370361, 0.7596101760864258, -0.7182034254074097, -0.7741196751594543, -0.39543071389198303, -0.30190131068229675, -0.8779934644699097, 0.38438236713409424, -0.03970162197947502, 0.18231219053268433, -0.36978960037231445, -0.8001309633255005, -0.8609809279441833, 1.2162039279937744, 0.49784916639328003, -0.17982587218284607, -0.049159687012434006, -0.02440870925784111, 0.672577977180481, -0.45919498801231384, 0.43817922472953796, 0.07605606317520142, -0.0971279963850975, 0.3062256872653961, -0.8231293559074402, -0.0874466672539711, -0.22425955533981323, 0.0355696938931942, -0.07201863825321198, -0.7289090156555176, 1.1042407751083374, -0.4300510287284851, -0.04522210732102394, 0.003995069768279791, 0.3876151144504547, 0.49252763390541077, 0.3770773410797119, 0.3371160328388214, 0.5293685793876648, 0.36304113268852234, -0.07095390558242798, 1.1244614124298096, -0.40945592522621155, 0.6544695496559143, 1.0366288423538208, 0.14482879638671875, 1.019698143005371, 0.5635330677032471, -0.20803794264793396, 0.4378488063812256, 0.5584044456481934, -0.26707419753074646, 0.8038046956062317, -0.4333048462867737, 0.31236374378204346, -0.4294600188732147, -0.012509942054748535, -0.6702010631561279, 0.259427934885025, 0.19849097728729248, -0.44775670766830444, -0.2548489272594452, 0.3364684581756592, 0.08568581193685532, -0.08094178885221481, -0.1708873212337494, 0.5426965951919556, 0.03517076000571251, -0.34661751985549927, 0.9594746232032776, -0.42914900183677673, 0.49372702836990356, -0.8000680804252625, -0.10150757431983948, 0.10763807594776154, 0.18799687922000885, -0.04828518256545067, -0.9716849327087402, 0.31492921710014343, -0.2491140216588974, -0.14820027351379395, -0.02432049997150898, 0.5848076343536377, -0.3655654191970825, -0.40050607919692993, 0.13059812784194946, 0.20946016907691956, 0.34770357608795166, 0.2166137993335724, -1.138859748840332, 0.2939094305038452, 0.028514184057712555, -0.09027367830276489, 0.2594869136810303, 0.18580321967601776, 0.02814086340367794, 0.7580009698867798, 0.4363868534564972, 0.17527781426906586, 0.002262871479615569, -0.5061111450195312, 1.0569307804107666, -0.3356497883796692, -0.4957609474658966, -0.40608397126197815, 0.42890939116477966, -0.24195489287376404, -0.6366559863090515, 0.626617431640625, 0.6429389119148254, 0.6945556998252869, -0.44627445936203003, 0.2771698534488678, 0.09254301339387894, 0.8596484661102295, -0.5414391756057739, 0.71824711561203, -0.7147168517112732, 0.046442221850156784, -0.43720507621765137, -0.2994481921195984, -0.39733773469924927, 0.582963228225708, -0.6692737936973572, -0.25384801626205444, 0.7587214708328247, 0.6833925843238831, -0.19575189054012299, -0.44560354948043823, 0.06562135368585587, 0.011108452454209328, 0.24908855557441711, 0.7893694043159485, 0.30505624413490295, -0.536559522151947, 0.6379815936088562, -0.5337782502174377, -0.27639901638031006, -0.40391480922698975, -0.6555646061897278, -1.0271384716033936, -0.4251404404640198, -0.6413630247116089, -0.3280247747898102, -0.042627379298210144, 0.7185981273651123, 1.0383847951889038, -0.4900662302970886, 0.1429300606250763, 0.4852145314216614, -0.0036835726350545883, -0.3437650501728058, -0.1517118215560913, 0.745333731174469, 0.2522602677345276, -0.4502076208591461, -0.07343976199626923, 0.3236895203590393, 0.11087966710329056, 0.260235458612442, 0.15767577290534973, -0.4517797529697418, 0.03792664781212807, 0.2623014748096466, 0.7451831102371216, -0.4391348958015442, -0.2507725656032562, 0.18473294377326965, -0.0254210215061903, 0.6224491000175476, 0.6055517196655273, -0.635248601436615, 0.7010052800178528, 0.5780552625656128, 0.4015626609325409, 0.8331218957901001, 0.37342900037765503, 0.1410447508096695, -0.451951801776886, 0.43204396963119507, 0.27482762932777405, 0.3697141706943512, 0.3261508345603943, -0.2094215303659439, 0.36782106757164, 0.45435696840286255, -0.7509576678276062, -1.0835552215576172, -0.0624365359544754, -1.325747013092041, -0.45706936717033386, 0.9031140804290771, -0.4056340456008911, -0.8944594860076904, 0.12056712061166763, -0.46326982975006104, 0.19396118819713593, -0.22903309762477875, 0.2652237117290497, 0.07609710097312927, -0.2720639705657959, -0.5233649611473083, -0.48974308371543884, 0.3670028746128082, 0.36444422602653503, -0.6345595121383667, -0.46785008907318115, 0.31035974621772766, 0.7789296507835388, 0.27686625719070435, 0.8259708881378174, -0.5647016763687134, 0.5371106863021851, -0.004651048686355352, 0.4032709300518036, -0.6075023412704468, -0.1869344562292099, -0.4465090334415436, 0.20860451459884644, -0.07101094722747803, -0.7325276732444763 ]
peft-internal-testing/tiny_GPT2ForTokenClassification-lora
peft-internal-testing
"2023-07-13T13:29:16Z"
35,212
0
peft
[ "peft", "region:us" ]
null
"2023-07-13T13:11:23Z"
--- library_name: peft --- ## Training procedure ### Framework versions - PEFT 0.4.0.dev0
[ -0.4463561177253723, -0.2354237139225006, 0.2216254621744156, 0.8747684955596924, -0.1453646570444107, 0.2397010326385498, 0.6378126740455627, 0.11012771725654602, 0.3118548095226288, 0.8683319091796875, -0.6462950110435486, -0.24985601007938385, -0.4143563508987427, 0.19406037032604218, -0.4284796714782715, 0.7678045034408569, -0.27617141604423523, 0.328695684671402, 0.18701276183128357, 0.13015814125537872, -0.00044631146010942757, -0.7633618712425232, -1.092003345489502, -0.42716825008392334, 0.316043496131897, 0.6978024840354919, 0.05524926260113716, 0.2132124900817871, 0.5485395193099976, 0.25440824031829834, 0.08255698531866074, -0.8952438831329346, -0.39447280764579773, 0.09748408198356628, -0.20979619026184082, 0.18788328766822815, -1.201399326324463, -0.02519008331000805, 0.4715600311756134, 0.6416333317756653, -0.2192506641149521, 0.055906131863594055, -0.37814417481422424, 0.8860044479370117, -0.2401953637599945, -0.12780500948429108, -0.37095603346824646, 0.5981004238128662, -0.2058619111776352, -0.02320699766278267, 0.031110839918255806, -0.3323378264904022, 0.2159983217716217, -0.6721716523170471, 0.46226397156715393, -0.4081379175186157, 0.7932312488555908, -0.05218395218253136, -0.6795742511749268, 0.5335450172424316, -0.2872267961502075, 0.5352196097373962, -0.4301677644252777, 1.178346872329712, 0.7095305919647217, 0.383261501789093, -0.09482276439666748, -1.1542305946350098, -0.1095941960811615, 0.27899253368377686, 0.5860605835914612, -0.45658883452415466, 0.40445730090141296, 0.1307944655418396, 0.7477390170097351, 0.5776861906051636, -0.24486632645130157, 0.07077599316835403, -1.071709394454956, -0.6277372241020203, 0.5612714886665344, -0.28246209025382996, -0.1570052057504654, 0.6070406436920166, -0.3907153010368347, 0.14381419122219086, -1.1556323766708374, -0.3531026840209961, 0.1168355718255043, 0.010489696636795998, -0.625214159488678, 0.1713765263557434, -0.5180001854896545, 0.38983097672462463, 0.43832823634147644, 0.16020220518112183, 1.310984492301941, -0.2511248290538788, -0.8824300765991211, 0.16524681448936462, 0.18570442497730255, 0.10588688403367996, 0.10789506882429123, -0.1071341261267662, -0.3778994679450989, -0.5671821236610413, 0.3202877938747406, -1.0217400789260864, -0.647307813167572, 0.07288459688425064, -0.17414669692516327, -0.7955736517906189, 0.0989580824971199, -1.021554708480835, -0.240229994058609, 0.18047203123569489, 0.08623850345611572, -0.3681506812572479, -0.6963018178939819, 0.24966272711753845, -0.45946037769317627, 0.7612619996070862, 0.34057310223579407, -1.3159228563308716, 0.6145975589752197, 0.5979856848716736, 0.20114737749099731, 0.5949939489364624, -0.5040064454078674, -0.5987472534179688, 0.2749621570110321, -0.3463258445262909, 0.7483066320419312, 0.28338518738746643, -0.6575385928153992, 0.00630792835727334, 0.5150598883628845, -0.08718462288379669, -0.4786011874675751, 0.9383529424667358, -0.2974495589733124, 0.470561683177948, -0.16061367094516754, -0.49834662675857544, -0.14820539951324463, 0.4506674110889435, -0.4694356620311737, 1.1425728797912598, 0.8059081435203552, -0.08916941285133362, 0.36134961247444153, -1.1960101127624512, -0.5130751729011536, 0.08990535885095596, -0.19892096519470215, -0.5022124648094177, -0.12615205347537994, -0.3583417236804962, 0.22467675805091858, 0.24389466643333435, 0.01608697697520256, -0.2199537307024002, -0.2413458377122879, -0.5979945659637451, -0.31249260902404785, 1.044494390487671, 0.32528671622276306, -0.7078186869621277, 0.08425130695104599, -0.8034304976463318, 0.17324624955654144, 0.027541251853108406, -0.32733285427093506, 0.5499750971794128, -0.6557573676109314, -0.1998511701822281, 0.1697508692741394, 0.3851334750652313, -0.5993004441261292, 0.3266565203666687, -0.5111669301986694, 0.4918687641620636, 0.7410163283348083, 0.11809266358613968, 0.5985499024391174, -0.28694891929626465, 0.7572925686836243, -0.0892573893070221, 0.4786792993545532, 0.21141815185546875, -0.3717484176158905, -0.7299442291259766, -0.12602324783802032, 0.3014948070049286, 0.6983135342597961, -0.16835515201091766, 0.5254059433937073, 0.3630547821521759, -0.5114028453826904, 0.4624154269695282, 0.15159662067890167, 0.4847971200942993, 0.3727411925792694, 0.13311117887496948, 0.11869092285633087, -1.0047764778137207, -0.6327551603317261, 0.6215009093284607, -0.3263746500015259, 0.11065903306007385, -0.3851923644542694, 0.7634518146514893, -0.5630315542221069, -0.015605872496962547, -0.15861910581588745, -0.0785755142569542, 0.13263039290905, -0.017762066796422005, 0.4044165313243866, 0.9688239693641663, 1.3607420921325684, -0.8962381482124329, -0.5366259217262268, -0.7066152095794678, -0.274448424577713, -0.44978973269462585, 0.1983964592218399, -0.24312658607959747, 0.5776241421699524, 0.6147399544715881, -0.10026275366544724, 0.4927685558795929, 0.49781128764152527, -0.8751580715179443, 0.5368309020996094, 0.2006334811449051, 0.123614601790905, -0.7068496346473694, -0.031859029084444046, -0.21050308644771576, -0.5723478198051453, -0.059429679065942764, 0.10326159000396729, -0.08456418663263321, -0.13981038331985474, -1.074164628982544, 0.594911515712738, -0.4325723648071289, 0.06349494308233261, 0.37653443217277527, -0.7830870151519775, 0.35271403193473816, 0.10996775329113007, 0.1734229475259781, 0.9167336821556091, 0.9226329326629639, -0.487259179353714, 0.6463075280189514, 0.5282274484634399, 0.5871515870094299, 0.6464889049530029, -0.616344690322876, 0.21257568895816803, 0.5310119390487671, -0.21208076179027557, -0.31466376781463623, -0.5293837189674377, 0.7046886086463928, -0.1361677348613739, 0.5093068480491638, 0.2490464746952057, -0.2568388283252716, -0.7004742622375488, -0.842119574546814, 0.24956847727298737, 0.7867730855941772, -0.16086220741271973, 0.12888336181640625, 0.34683072566986084, 0.08988424390554428, -0.3795102834701538, -0.7225751876831055, -0.09053926914930344, -0.03009321168065071, -0.3424474596977234, 0.37403419613838196, -0.5706960558891296, -0.007687426637858152, -0.683051586151123, -0.3812205195426941, -0.5852822661399841, -0.13320058584213257, 0.317401647567749, -0.12700000405311584, -0.14332304894924164, -0.03469732403755188, 0.1566895842552185, -0.26252105832099915, 0.08674664050340652, 0.03733588010072708, 0.36855462193489075, -0.39186811447143555, -0.21602796018123627, -0.13804806768894196, 0.3323507606983185, 0.3638383746147156, -0.05858924239873886, 0.4346916377544403, 0.5017607808113098, -0.595379650592804, 0.132847398519516, -0.44514620304107666, -0.2545539438724518, -0.5359430313110352, 0.2798624634742737, -0.4490460157394409, -1.039535641670227, 0.36131030321121216, -0.30776938796043396, 0.11340274661779404, 0.6108946204185486, 0.27097734808921814, -0.09769150614738464, 0.49221518635749817, 0.8312475085258484, 0.43630096316337585, 0.6384534239768982, -0.25400251150131226, 0.28162825107574463, -0.5976256728172302, -0.5271168351173401, -0.6279698014259338, 0.29465487599372864, -0.017350243404507637, -0.14012601971626282, 0.17172735929489136, 0.6765680313110352, -1.1675432920455933, 0.5981903076171875, -0.8091568350791931, 0.6083701252937317, 0.36887186765670776, -0.07399943470954895, -0.2229841649532318, -0.10772771388292313, -0.18045884370803833, 0.21101635694503784, -0.5365315079689026, -0.3877289593219757, 1.296811580657959, 0.9998144507408142, 0.38158079981803894, -0.009970832616090775, 1.0755391120910645, 0.05447876825928688, 0.3194095492362976, -0.06739719212055206, 0.7038456797599792, -0.027025878429412842, -1.0603939294815063, -0.368168443441391, 0.11862847208976746, -0.6103491187095642, -0.37378647923469543, -0.08967268466949463, -0.4584023654460907, 0.19272665679454803, 0.08299620449542999, -0.3088451325893402, 0.12207639962434769, -0.7794274687767029, 1.8680182695388794, -0.556201159954071, 0.5222845673561096, 0.3647228181362152, -0.6155432462692261, -0.03671783581376076, -0.639374315738678, -0.21100950241088867, -0.2257925420999527, -0.31316444277763367, 0.8670156002044678, -0.3992176055908203, 0.671633243560791, -0.25508710741996765, -0.07398594170808792, -0.2019883245229721, -0.2690739333629608, 0.2074688822031021, 0.1078222319483757, -0.32565316557884216, 0.16596311330795288, 0.6442817449569702, -0.7590606212615967, 0.09446835517883301, 0.40966853499412537, -0.5909839272499084, -0.17204195261001587, -0.7604984641075134, 0.1635282188653946, 0.07151299715042114, 0.5007852911949158, 0.629406750202179, 0.39730939269065857, -0.2760868966579437, 0.07957487553358078, 0.9887720346450806, 0.15420374274253845, 0.5845978260040283, 0.5154944062232971, -0.8054336309432983, -0.6882627010345459, 0.47012653946876526, -0.06069372966885567, -0.020007170736789703, 0.19244617223739624, -0.23832359910011292, -0.3919040858745575, -1.204458475112915, -0.2955092191696167, 0.215758815407753, -0.5362018346786499, -0.39292001724243164, -0.2255384773015976, -0.5197243094444275, -0.9345669150352478, -0.35938921570777893, -0.48844149708747864, -0.5092252492904663, -0.7471006512641907, -0.7044113278388977, 0.5548209547996521, 0.21594081819057465, -0.6587311625480652, 0.5740182995796204, -1.1516317129135132, -0.19286422431468964, 0.2167331576347351, 0.8946197628974915, -0.8679582476615906, -0.4378897547721863, -0.37526142597198486, -0.03595985472202301, -0.9816790223121643, -1.0934805870056152, 0.08895096182823181, 0.5023020505905151, 0.7916019558906555, 0.3319835364818573, 0.028080912306904793, 0.2811683416366577, -0.4597153961658478, 0.8897689580917358, 0.4986063838005066, -0.8671926259994507, 0.9407498836517334, -0.48214101791381836, 0.13499321043491364, 1.2809398174285889, 0.7182777523994446, 0.06800571084022522, 0.17217646539211273, -1.2293092012405396, -0.5183165073394775, 0.15919844806194305, -0.12649601697921753, 0.24766232073307037, -0.1365755945444107, 0.30714133381843567, 0.07045517861843109, 0.7204563617706299, -0.8986284136772156, -0.04102706536650658, -0.282696932554245, 0.024274466559290886, 0.5104876756668091, -0.1843695044517517, -0.3716183602809906, -0.9063323736190796, 0.9400568604469299, 0.2302982360124588, 0.6064518690109253, 0.3348553478717804, 0.6049171686172485, -0.5041656494140625, -0.12268886715173721, 0.7597470879554749, 1.0914263725280762, -0.7614454030990601, -0.010316220112144947, 0.0010343099711462855, -0.7453498840332031, 0.28636547923088074, 0.5236023664474487, 0.26071885228157043, 0.02088451385498047, 0.34339678287506104, 0.4200834035873413, 0.28177765011787415, -0.6191181540489197, 0.6192700862884521, 0.08245248347520828, -0.8990646600723267, -1.2664198875427246, 0.308881551027298, -0.18475180864334106, 0.34555256366729736, 0.1627635508775711, 0.36363932490348816, 0.02355029620230198, -0.5653235912322998, 0.8606302738189697, -0.27068403363227844, -0.7775906920433044, -0.3564372956752777, 0.5646424889564514, 0.8769177794456482, -0.9743995070457458, 0.5713846683502197, -0.6759935021400452, -0.8066295385360718, 0.7594143152236938, 0.4864859879016876, 0.9238428473472595, -0.22466067969799042, 0.5380235314369202, 0.3259563744068146, -0.252384215593338, -0.2010745108127594, 1.1706929206848145, 0.07712972164154053, -0.7091275453567505, -0.10436232388019562, -0.787244439125061, -0.26459214091300964, 0.07501739263534546, -0.20855499804019928, 0.33482658863067627, -0.8935325741767883, -0.21674565970897675, 0.1411704570055008, -0.03830920159816742, -0.24594822525978088, 0.11805132031440735, 0.14264041185379028, 1.9054076671600342, -0.6044995784759521, 1.2672715187072754, 1.1315709352493286, -0.5850971341133118, -0.7515800595283508, -0.43746116757392883, 0.044785477221012115, -0.2856139540672302, 0.7608955502510071, 0.0675547868013382, 0.40668848156929016, 0.38317763805389404, -0.7997314929962158, -0.4260992705821991, 1.093899130821228, 0.48882731795310974, -0.5874704122543335, 0.17060238122940063, -0.251429945230484, 0.13753844797611237, -0.6787027716636658, -0.4459863007068634, 0.619601309299469, 0.42149990797042847, 0.18581004440784454, -1.4873745441436768, -0.1827365905046463, -0.30313801765441895, -0.6472302079200745, 0.7028381824493408, -0.27409958839416504, 0.9298134446144104, -0.04050189256668091, 0.6438426375389099, 0.3154516816139221, 0.3410532772541046, 0.4874297082424164, 0.2720567584037781, 0.6772067546844482, 0.7913992404937744, 0.5763524174690247, -0.1894972324371338, 0.5121398568153381, 0.01424925122410059, 0.44611337780952454, 0.994225263595581, -0.37607672810554504, 0.49564698338508606, 0.8614316582679749, -0.460232138633728, 0.6701818108558655, 1.0764518976211548, -0.42509469389915466, 0.6356640458106995, -0.2302820235490799, -0.5096780061721802, -0.24589696526527405, 0.27617526054382324, -0.7702035307884216, -0.1511916220188141, 0.06731848418712616, -0.6875067353248596, -0.3311110734939575, -0.11569848656654358, 0.22361785173416138, -0.04938522353768349, -0.5129565596580505, 0.567927896976471, 0.023417407646775246, -0.359526664018631, 0.7206825613975525, -0.0136412950232625, 0.6353303790092468, -0.6973676085472107, -0.4266510307788849, 0.00573418103158474, 0.04575185477733612, -0.09149101376533508, -0.7589963674545288, 0.8637335300445557, -0.17254593968391418, -0.26100003719329834, -0.5478866100311279, 0.5376002788543701, -0.1067163273692131, -0.6227771043777466, 0.29156044125556946, 0.20521493256092072, 0.23410825431346893, -0.18071629106998444, -1.297946572303772, 0.19755025207996368, 0.23077544569969177, 0.08155842870473862, 0.25807541608810425, 0.42029550671577454, 0.2421056181192398, 0.3494237959384918, 0.2588845193386078, -0.05497553199529648, 0.0414491631090641, 0.13464336097240448, 0.8740177154541016, -0.4927625358104706, -0.6081909537315369, -0.5966079235076904, 0.4852500855922699, -0.3765370547771454, -0.6850098967552185, 0.26709306240081787, 0.8913411498069763, 1.3000882863998413, -0.11290064454078674, 0.32941409945487976, -0.5092921853065491, 0.5724267363548279, -0.06740622967481613, 0.4350722134113312, -0.2500908076763153, 0.21488021314144135, 0.1362026482820511, -0.8172827363014221, -0.33402758836746216, 0.717801570892334, -0.2499275654554367, 0.11467692255973816, 1.0156490802764893, 0.5648676156997681, -0.22293324768543243, 0.29231709241867065, 0.1667371243238449, -0.19478873908519745, -0.01141402404755354, 0.5104172229766846, 0.031713806092739105, -0.8085671067237854, 0.36248549818992615, -0.7196639180183411, -0.4941006898880005, 0.05880172178149223, -1.1978180408477783, -0.6491143703460693, -0.19672702252864838, -0.6915801167488098, -0.7428479790687561, -0.11429134011268616, 0.9598941206932068, 1.1827387809753418, -0.9226365685462952, -0.2836836278438568, -0.22748561203479767, 0.0642242506146431, 0.01746342144906521, -0.12656764686107635, 0.06528276950120926, -0.182587668299675, -0.33058708906173706, 0.1079995334148407, 0.08683863282203674, 0.6622892022132874, -0.35972416400909424, -0.6842457056045532, -0.5150262117385864, -0.3128131628036499, 0.3357903063297272, 0.6950769424438477, -0.1740870624780655, -0.4127610921859741, -0.20451383292675018, 0.049899302423000336, 0.3369063138961792, 0.6305728554725647, -0.4759289026260376, -0.18720240890979767, 0.6074452996253967, 0.18891653418540955, 0.5362663269042969, -0.4244421720504761, 0.8571212291717529, -0.9570215344429016, 0.4784493148326874, 0.5017510056495667, 0.3751736581325531, 0.18837447464466095, -0.4452076256275177, 1.2449455261230469, 0.6964060664176941, -0.8322202563285828, -0.9292085766792297, 0.15089264512062073, -1.2164429426193237, -0.035229433327913284, 0.48262548446655273, -0.02475794591009617, -0.2906040847301483, -0.26921015977859497, -0.3661578297615051, 0.019313914701342583, -0.4898276627063751, -0.004238651599735022, 0.43326136469841003, -0.41217145323753357, -0.5828971266746521, -0.4240635633468628, 0.8405154943466187, -0.02884926088154316, -0.7120630741119385, -0.7634897828102112, 0.4887579679489136, 0.3785470128059387, 0.03366135433316231, 1.2489216327667236, -0.4637710452079773, 0.5889526009559631, 0.261750191450119, 0.04765881225466728, -0.4280075132846832, -0.31455257534980774, -0.5080838799476624, -0.08301454037427902, -0.010105986148118973, -0.32240331172943115 ]
peft-internal-testing/tiny_WhisperForConditionalGeneration-lora
peft-internal-testing
"2023-07-14T10:34:42Z"
35,196
0
peft
[ "peft", "region:us" ]
null
"2023-07-14T10:34:41Z"
--- library_name: peft --- ## Training procedure ### Framework versions - PEFT 0.4.0.dev0
[ -0.4463561177253723, -0.2354237139225006, 0.2216254621744156, 0.8747684955596924, -0.1453646570444107, 0.2397010326385498, 0.6378126740455627, 0.11012771725654602, 0.3118548095226288, 0.8683319091796875, -0.6462950110435486, -0.24985601007938385, -0.4143563508987427, 0.19406037032604218, -0.4284796714782715, 0.7678045034408569, -0.27617141604423523, 0.328695684671402, 0.18701276183128357, 0.13015814125537872, -0.00044631146010942757, -0.7633618712425232, -1.092003345489502, -0.42716825008392334, 0.316043496131897, 0.6978024840354919, 0.05524926260113716, 0.2132124900817871, 0.5485395193099976, 0.25440824031829834, 0.08255698531866074, -0.8952438831329346, -0.39447280764579773, 0.09748408198356628, -0.20979619026184082, 0.18788328766822815, -1.201399326324463, -0.02519008331000805, 0.4715600311756134, 0.6416333317756653, -0.2192506641149521, 0.055906131863594055, -0.37814417481422424, 0.8860044479370117, -0.2401953637599945, -0.12780500948429108, -0.37095603346824646, 0.5981004238128662, -0.2058619111776352, -0.02320699766278267, 0.031110839918255806, -0.3323378264904022, 0.2159983217716217, -0.6721716523170471, 0.46226397156715393, -0.4081379175186157, 0.7932312488555908, -0.05218395218253136, -0.6795742511749268, 0.5335450172424316, -0.2872267961502075, 0.5352196097373962, -0.4301677644252777, 1.178346872329712, 0.7095305919647217, 0.383261501789093, -0.09482276439666748, -1.1542305946350098, -0.1095941960811615, 0.27899253368377686, 0.5860605835914612, -0.45658883452415466, 0.40445730090141296, 0.1307944655418396, 0.7477390170097351, 0.5776861906051636, -0.24486632645130157, 0.07077599316835403, -1.071709394454956, -0.6277372241020203, 0.5612714886665344, -0.28246209025382996, -0.1570052057504654, 0.6070406436920166, -0.3907153010368347, 0.14381419122219086, -1.1556323766708374, -0.3531026840209961, 0.1168355718255043, 0.010489696636795998, -0.625214159488678, 0.1713765263557434, -0.5180001854896545, 0.38983097672462463, 0.43832823634147644, 0.16020220518112183, 1.310984492301941, -0.2511248290538788, -0.8824300765991211, 0.16524681448936462, 0.18570442497730255, 0.10588688403367996, 0.10789506882429123, -0.1071341261267662, -0.3778994679450989, -0.5671821236610413, 0.3202877938747406, -1.0217400789260864, -0.647307813167572, 0.07288459688425064, -0.17414669692516327, -0.7955736517906189, 0.0989580824971199, -1.021554708480835, -0.240229994058609, 0.18047203123569489, 0.08623850345611572, -0.3681506812572479, -0.6963018178939819, 0.24966272711753845, -0.45946037769317627, 0.7612619996070862, 0.34057310223579407, -1.3159228563308716, 0.6145975589752197, 0.5979856848716736, 0.20114737749099731, 0.5949939489364624, -0.5040064454078674, -0.5987472534179688, 0.2749621570110321, -0.3463258445262909, 0.7483066320419312, 0.28338518738746643, -0.6575385928153992, 0.00630792835727334, 0.5150598883628845, -0.08718462288379669, -0.4786011874675751, 0.9383529424667358, -0.2974495589733124, 0.470561683177948, -0.16061367094516754, -0.49834662675857544, -0.14820539951324463, 0.4506674110889435, -0.4694356620311737, 1.1425728797912598, 0.8059081435203552, -0.08916941285133362, 0.36134961247444153, -1.1960101127624512, -0.5130751729011536, 0.08990535885095596, -0.19892096519470215, -0.5022124648094177, -0.12615205347537994, -0.3583417236804962, 0.22467675805091858, 0.24389466643333435, 0.01608697697520256, -0.2199537307024002, -0.2413458377122879, -0.5979945659637451, -0.31249260902404785, 1.044494390487671, 0.32528671622276306, -0.7078186869621277, 0.08425130695104599, -0.8034304976463318, 0.17324624955654144, 0.027541251853108406, -0.32733285427093506, 0.5499750971794128, -0.6557573676109314, -0.1998511701822281, 0.1697508692741394, 0.3851334750652313, -0.5993004441261292, 0.3266565203666687, -0.5111669301986694, 0.4918687641620636, 0.7410163283348083, 0.11809266358613968, 0.5985499024391174, -0.28694891929626465, 0.7572925686836243, -0.0892573893070221, 0.4786792993545532, 0.21141815185546875, -0.3717484176158905, -0.7299442291259766, -0.12602324783802032, 0.3014948070049286, 0.6983135342597961, -0.16835515201091766, 0.5254059433937073, 0.3630547821521759, -0.5114028453826904, 0.4624154269695282, 0.15159662067890167, 0.4847971200942993, 0.3727411925792694, 0.13311117887496948, 0.11869092285633087, -1.0047764778137207, -0.6327551603317261, 0.6215009093284607, -0.3263746500015259, 0.11065903306007385, -0.3851923644542694, 0.7634518146514893, -0.5630315542221069, -0.015605872496962547, -0.15861910581588745, -0.0785755142569542, 0.13263039290905, -0.017762066796422005, 0.4044165313243866, 0.9688239693641663, 1.3607420921325684, -0.8962381482124329, -0.5366259217262268, -0.7066152095794678, -0.274448424577713, -0.44978973269462585, 0.1983964592218399, -0.24312658607959747, 0.5776241421699524, 0.6147399544715881, -0.10026275366544724, 0.4927685558795929, 0.49781128764152527, -0.8751580715179443, 0.5368309020996094, 0.2006334811449051, 0.123614601790905, -0.7068496346473694, -0.031859029084444046, -0.21050308644771576, -0.5723478198051453, -0.059429679065942764, 0.10326159000396729, -0.08456418663263321, -0.13981038331985474, -1.074164628982544, 0.594911515712738, -0.4325723648071289, 0.06349494308233261, 0.37653443217277527, -0.7830870151519775, 0.35271403193473816, 0.10996775329113007, 0.1734229475259781, 0.9167336821556091, 0.9226329326629639, -0.487259179353714, 0.6463075280189514, 0.5282274484634399, 0.5871515870094299, 0.6464889049530029, -0.616344690322876, 0.21257568895816803, 0.5310119390487671, -0.21208076179027557, -0.31466376781463623, -0.5293837189674377, 0.7046886086463928, -0.1361677348613739, 0.5093068480491638, 0.2490464746952057, -0.2568388283252716, -0.7004742622375488, -0.842119574546814, 0.24956847727298737, 0.7867730855941772, -0.16086220741271973, 0.12888336181640625, 0.34683072566986084, 0.08988424390554428, -0.3795102834701538, -0.7225751876831055, -0.09053926914930344, -0.03009321168065071, -0.3424474596977234, 0.37403419613838196, -0.5706960558891296, -0.007687426637858152, -0.683051586151123, -0.3812205195426941, -0.5852822661399841, -0.13320058584213257, 0.317401647567749, -0.12700000405311584, -0.14332304894924164, -0.03469732403755188, 0.1566895842552185, -0.26252105832099915, 0.08674664050340652, 0.03733588010072708, 0.36855462193489075, -0.39186811447143555, -0.21602796018123627, -0.13804806768894196, 0.3323507606983185, 0.3638383746147156, -0.05858924239873886, 0.4346916377544403, 0.5017607808113098, -0.595379650592804, 0.132847398519516, -0.44514620304107666, -0.2545539438724518, -0.5359430313110352, 0.2798624634742737, -0.4490460157394409, -1.039535641670227, 0.36131030321121216, -0.30776938796043396, 0.11340274661779404, 0.6108946204185486, 0.27097734808921814, -0.09769150614738464, 0.49221518635749817, 0.8312475085258484, 0.43630096316337585, 0.6384534239768982, -0.25400251150131226, 0.28162825107574463, -0.5976256728172302, -0.5271168351173401, -0.6279698014259338, 0.29465487599372864, -0.017350243404507637, -0.14012601971626282, 0.17172735929489136, 0.6765680313110352, -1.1675432920455933, 0.5981903076171875, -0.8091568350791931, 0.6083701252937317, 0.36887186765670776, -0.07399943470954895, -0.2229841649532318, -0.10772771388292313, -0.18045884370803833, 0.21101635694503784, -0.5365315079689026, -0.3877289593219757, 1.296811580657959, 0.9998144507408142, 0.38158079981803894, -0.009970832616090775, 1.0755391120910645, 0.05447876825928688, 0.3194095492362976, -0.06739719212055206, 0.7038456797599792, -0.027025878429412842, -1.0603939294815063, -0.368168443441391, 0.11862847208976746, -0.6103491187095642, -0.37378647923469543, -0.08967268466949463, -0.4584023654460907, 0.19272665679454803, 0.08299620449542999, -0.3088451325893402, 0.12207639962434769, -0.7794274687767029, 1.8680182695388794, -0.556201159954071, 0.5222845673561096, 0.3647228181362152, -0.6155432462692261, -0.03671783581376076, -0.639374315738678, -0.21100950241088867, -0.2257925420999527, -0.31316444277763367, 0.8670156002044678, -0.3992176055908203, 0.671633243560791, -0.25508710741996765, -0.07398594170808792, -0.2019883245229721, -0.2690739333629608, 0.2074688822031021, 0.1078222319483757, -0.32565316557884216, 0.16596311330795288, 0.6442817449569702, -0.7590606212615967, 0.09446835517883301, 0.40966853499412537, -0.5909839272499084, -0.17204195261001587, -0.7604984641075134, 0.1635282188653946, 0.07151299715042114, 0.5007852911949158, 0.629406750202179, 0.39730939269065857, -0.2760868966579437, 0.07957487553358078, 0.9887720346450806, 0.15420374274253845, 0.5845978260040283, 0.5154944062232971, -0.8054336309432983, -0.6882627010345459, 0.47012653946876526, -0.06069372966885567, -0.020007170736789703, 0.19244617223739624, -0.23832359910011292, -0.3919040858745575, -1.204458475112915, -0.2955092191696167, 0.215758815407753, -0.5362018346786499, -0.39292001724243164, -0.2255384773015976, -0.5197243094444275, -0.9345669150352478, -0.35938921570777893, -0.48844149708747864, -0.5092252492904663, -0.7471006512641907, -0.7044113278388977, 0.5548209547996521, 0.21594081819057465, -0.6587311625480652, 0.5740182995796204, -1.1516317129135132, -0.19286422431468964, 0.2167331576347351, 0.8946197628974915, -0.8679582476615906, -0.4378897547721863, -0.37526142597198486, -0.03595985472202301, -0.9816790223121643, -1.0934805870056152, 0.08895096182823181, 0.5023020505905151, 0.7916019558906555, 0.3319835364818573, 0.028080912306904793, 0.2811683416366577, -0.4597153961658478, 0.8897689580917358, 0.4986063838005066, -0.8671926259994507, 0.9407498836517334, -0.48214101791381836, 0.13499321043491364, 1.2809398174285889, 0.7182777523994446, 0.06800571084022522, 0.17217646539211273, -1.2293092012405396, -0.5183165073394775, 0.15919844806194305, -0.12649601697921753, 0.24766232073307037, -0.1365755945444107, 0.30714133381843567, 0.07045517861843109, 0.7204563617706299, -0.8986284136772156, -0.04102706536650658, -0.282696932554245, 0.024274466559290886, 0.5104876756668091, -0.1843695044517517, -0.3716183602809906, -0.9063323736190796, 0.9400568604469299, 0.2302982360124588, 0.6064518690109253, 0.3348553478717804, 0.6049171686172485, -0.5041656494140625, -0.12268886715173721, 0.7597470879554749, 1.0914263725280762, -0.7614454030990601, -0.010316220112144947, 0.0010343099711462855, -0.7453498840332031, 0.28636547923088074, 0.5236023664474487, 0.26071885228157043, 0.02088451385498047, 0.34339678287506104, 0.4200834035873413, 0.28177765011787415, -0.6191181540489197, 0.6192700862884521, 0.08245248347520828, -0.8990646600723267, -1.2664198875427246, 0.308881551027298, -0.18475180864334106, 0.34555256366729736, 0.1627635508775711, 0.36363932490348816, 0.02355029620230198, -0.5653235912322998, 0.8606302738189697, -0.27068403363227844, -0.7775906920433044, -0.3564372956752777, 0.5646424889564514, 0.8769177794456482, -0.9743995070457458, 0.5713846683502197, -0.6759935021400452, -0.8066295385360718, 0.7594143152236938, 0.4864859879016876, 0.9238428473472595, -0.22466067969799042, 0.5380235314369202, 0.3259563744068146, -0.252384215593338, -0.2010745108127594, 1.1706929206848145, 0.07712972164154053, -0.7091275453567505, -0.10436232388019562, -0.787244439125061, -0.26459214091300964, 0.07501739263534546, -0.20855499804019928, 0.33482658863067627, -0.8935325741767883, -0.21674565970897675, 0.1411704570055008, -0.03830920159816742, -0.24594822525978088, 0.11805132031440735, 0.14264041185379028, 1.9054076671600342, -0.6044995784759521, 1.2672715187072754, 1.1315709352493286, -0.5850971341133118, -0.7515800595283508, -0.43746116757392883, 0.044785477221012115, -0.2856139540672302, 0.7608955502510071, 0.0675547868013382, 0.40668848156929016, 0.38317763805389404, -0.7997314929962158, -0.4260992705821991, 1.093899130821228, 0.48882731795310974, -0.5874704122543335, 0.17060238122940063, -0.251429945230484, 0.13753844797611237, -0.6787027716636658, -0.4459863007068634, 0.619601309299469, 0.42149990797042847, 0.18581004440784454, -1.4873745441436768, -0.1827365905046463, -0.30313801765441895, -0.6472302079200745, 0.7028381824493408, -0.27409958839416504, 0.9298134446144104, -0.04050189256668091, 0.6438426375389099, 0.3154516816139221, 0.3410532772541046, 0.4874297082424164, 0.2720567584037781, 0.6772067546844482, 0.7913992404937744, 0.5763524174690247, -0.1894972324371338, 0.5121398568153381, 0.01424925122410059, 0.44611337780952454, 0.994225263595581, -0.37607672810554504, 0.49564698338508606, 0.8614316582679749, -0.460232138633728, 0.6701818108558655, 1.0764518976211548, -0.42509469389915466, 0.6356640458106995, -0.2302820235490799, -0.5096780061721802, -0.24589696526527405, 0.27617526054382324, -0.7702035307884216, -0.1511916220188141, 0.06731848418712616, -0.6875067353248596, -0.3311110734939575, -0.11569848656654358, 0.22361785173416138, -0.04938522353768349, -0.5129565596580505, 0.567927896976471, 0.023417407646775246, -0.359526664018631, 0.7206825613975525, -0.0136412950232625, 0.6353303790092468, -0.6973676085472107, -0.4266510307788849, 0.00573418103158474, 0.04575185477733612, -0.09149101376533508, -0.7589963674545288, 0.8637335300445557, -0.17254593968391418, -0.26100003719329834, -0.5478866100311279, 0.5376002788543701, -0.1067163273692131, -0.6227771043777466, 0.29156044125556946, 0.20521493256092072, 0.23410825431346893, -0.18071629106998444, -1.297946572303772, 0.19755025207996368, 0.23077544569969177, 0.08155842870473862, 0.25807541608810425, 0.42029550671577454, 0.2421056181192398, 0.3494237959384918, 0.2588845193386078, -0.05497553199529648, 0.0414491631090641, 0.13464336097240448, 0.8740177154541016, -0.4927625358104706, -0.6081909537315369, -0.5966079235076904, 0.4852500855922699, -0.3765370547771454, -0.6850098967552185, 0.26709306240081787, 0.8913411498069763, 1.3000882863998413, -0.11290064454078674, 0.32941409945487976, -0.5092921853065491, 0.5724267363548279, -0.06740622967481613, 0.4350722134113312, -0.2500908076763153, 0.21488021314144135, 0.1362026482820511, -0.8172827363014221, -0.33402758836746216, 0.717801570892334, -0.2499275654554367, 0.11467692255973816, 1.0156490802764893, 0.5648676156997681, -0.22293324768543243, 0.29231709241867065, 0.1667371243238449, -0.19478873908519745, -0.01141402404755354, 0.5104172229766846, 0.031713806092739105, -0.8085671067237854, 0.36248549818992615, -0.7196639180183411, -0.4941006898880005, 0.05880172178149223, -1.1978180408477783, -0.6491143703460693, -0.19672702252864838, -0.6915801167488098, -0.7428479790687561, -0.11429134011268616, 0.9598941206932068, 1.1827387809753418, -0.9226365685462952, -0.2836836278438568, -0.22748561203479767, 0.0642242506146431, 0.01746342144906521, -0.12656764686107635, 0.06528276950120926, -0.182587668299675, -0.33058708906173706, 0.1079995334148407, 0.08683863282203674, 0.6622892022132874, -0.35972416400909424, -0.6842457056045532, -0.5150262117385864, -0.3128131628036499, 0.3357903063297272, 0.6950769424438477, -0.1740870624780655, -0.4127610921859741, -0.20451383292675018, 0.049899302423000336, 0.3369063138961792, 0.6305728554725647, -0.4759289026260376, -0.18720240890979767, 0.6074452996253967, 0.18891653418540955, 0.5362663269042969, -0.4244421720504761, 0.8571212291717529, -0.9570215344429016, 0.4784493148326874, 0.5017510056495667, 0.3751736581325531, 0.18837447464466095, -0.4452076256275177, 1.2449455261230469, 0.6964060664176941, -0.8322202563285828, -0.9292085766792297, 0.15089264512062073, -1.2164429426193237, -0.035229433327913284, 0.48262548446655273, -0.02475794591009617, -0.2906040847301483, -0.26921015977859497, -0.3661578297615051, 0.019313914701342583, -0.4898276627063751, -0.004238651599735022, 0.43326136469841003, -0.41217145323753357, -0.5828971266746521, -0.4240635633468628, 0.8405154943466187, -0.02884926088154316, -0.7120630741119385, -0.7634897828102112, 0.4887579679489136, 0.3785470128059387, 0.03366135433316231, 1.2489216327667236, -0.4637710452079773, 0.5889526009559631, 0.261750191450119, 0.04765881225466728, -0.4280075132846832, -0.31455257534980774, -0.5080838799476624, -0.08301454037427902, -0.010105986148118973, -0.32240331172943115 ]
TheBloke/Llama-2-70B-Chat-AWQ
TheBloke
"2023-11-09T18:21:09Z"
35,175
7
transformers
[ "transformers", "safetensors", "llama", "text-generation", "facebook", "meta", "pytorch", "llama-2", "en", "arxiv:2307.09288", "base_model:meta-llama/Llama-2-70b-chat-hf", "license:llama2", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-09-19T00:06:16Z"
--- language: - en license: llama2 tags: - facebook - meta - pytorch - llama - llama-2 model_name: Llama 2 70B Chat base_model: meta-llama/Llama-2-70b-chat-hf inference: false model_creator: Meta Llama 2 model_type: llama pipeline_tag: text-generation prompt_template: '[INST] <<SYS>> You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don''t know the answer to a question, please don''t share false information. <</SYS>> {prompt}[/INST] ' quantized_by: TheBloke --- <!-- 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 --> # Llama 2 70B Chat - AWQ - Model creator: [Meta Llama 2](https://huggingface.co/meta-llama) - Original model: [Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) <!-- description start --> ## Description This repo contains AWQ model files for [Meta Llama 2's Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf). ### About AWQ AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference. It is also now supported by continuous batching server [vLLM](https://github.com/vllm-project/vllm), allowing use of AWQ models for high-throughput concurrent inference in multi-user server scenarios. Note that, at the time of writing, overall throughput is still lower than running vLLM with unquantised models, however using AWQ enables using much smaller GPUs which can lead to easier deployment and overall cost savings. For example, a 70B model can be run on 1 x 48GB GPU instead of 2 x 80GB. <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Llama-2-70B-chat-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF) * [Meta Llama 2's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Llama-2-Chat ``` [INST] <<SYS>> You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information. <</SYS>> {prompt}[/INST] ``` <!-- prompt-template end --> <!-- README_AWQ.md-provided-files start --> ## Provided files and AWQ parameters For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM. Models are released as sharded safetensors files. | Branch | Bits | GS | AWQ Dataset | Seq Len | Size | | ------ | ---- | -- | ----------- | ------- | ---- | | [main](https://huggingface.co/TheBloke/Llama-2-70B-chat-AWQ/tree/main) | 4 | 128 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 36.61 GB <!-- README_AWQ.md-provided-files end --> <!-- README_AWQ.md-use-from-vllm start --> ## Serving this model from vLLM Documentation on installing and using vLLM [can be found here](https://vllm.readthedocs.io/en/latest/). - When using vLLM as a server, pass the `--quantization awq` parameter, for example: ```shell python3 python -m vllm.entrypoints.api_server --model TheBloke/Llama-2-70B-chat-AWQ --quantization awq ``` When using vLLM from Python code, pass the `quantization=awq` parameter, for example: ```python from vllm import LLM, SamplingParams prompts = [ "Hello, my name is", "The president of the United States is", "The capital of France is", "The future of AI is", ] sampling_params = SamplingParams(temperature=0.8, top_p=0.95) llm = LLM(model="TheBloke/Llama-2-70B-chat-AWQ", quantization="awq") outputs = llm.generate(prompts, sampling_params) # Print the outputs. for output in outputs: prompt = output.prompt generated_text = output.outputs[0].text print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}") ``` <!-- README_AWQ.md-use-from-vllm start --> <!-- README_AWQ.md-use-from-python start --> ## How to use this AWQ model from Python code ### Install the necessary packages Requires: [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) 0.0.2 or later ```shell pip3 install autoawq ``` If you have problems installing [AutoAWQ](https://github.com/casper-hansen/AutoAWQ) using the pre-built wheels, install it from source instead: ```shell pip3 uninstall -y autoawq git clone https://github.com/casper-hansen/AutoAWQ cd AutoAWQ pip3 install . ``` ### You can then try the following example code ```python from awq import AutoAWQForCausalLM from transformers import AutoTokenizer model_name_or_path = "TheBloke/Llama-2-70B-chat-AWQ" # Load model model = AutoAWQForCausalLM.from_quantized(model_name_or_path, fuse_layers=True, trust_remote_code=False, safetensors=True) tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, trust_remote_code=False) prompt = "Tell me about AI" prompt_template=f'''[INST] <<SYS>> You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information. <</SYS>> {prompt}[/INST] ''' print("\n\n*** Generate:") tokens = tokenizer( prompt_template, return_tensors='pt' ).input_ids.cuda() # Generate output generation_output = model.generate( tokens, do_sample=True, temperature=0.7, top_p=0.95, top_k=40, max_new_tokens=512 ) print("Output: ", tokenizer.decode(generation_output[0])) # Inference can also be done using transformers' pipeline from transformers import 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_AWQ.md-use-from-python end --> <!-- README_AWQ.md-compatibility start --> ## Compatibility The files provided are tested to work with [AutoAWQ](https://github.com/casper-hansen/AutoAWQ), and [vLLM](https://github.com/vllm-project/vllm). [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is not yet compatible with AWQ, but a PR is open which should bring support soon: [TGI PR #781](https://github.com/huggingface/text-generation-inference/issues/781). <!-- README_AWQ.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**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: Meta Llama 2's Llama 2 70B Chat # **Llama 2** Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 70B fine-tuned model, optimized for dialogue use cases and converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom. ## 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 our License before requesting access here.* Meta developed and publicly released the Llama 2 family of large language models (LLMs), a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama-2-Chat, are optimized for dialogue use cases. Llama-2-Chat models outperform open-source chat models on most benchmarks we tested, and in our human evaluations for helpfulness and safety, are on par with some popular closed-source models like ChatGPT and PaLM. **Model Developers** Meta **Variations** Llama 2 comes 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 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align to human preferences for helpfulness and safety. ||Training Data|Params|Content Length|GQA|Tokens|LR| |---|---|---|---|---|---|---| |Llama 2|*A new mix of publicly available online data*|7B|4k|&#10007;|2.0T|3.0 x 10<sup>-4</sup>| |Llama 2|*A new mix of publicly available online data*|13B|4k|&#10007;|2.0T|3.0 x 10<sup>-4</sup>| |Llama 2|*A new mix of publicly available online data*|70B|4k|&#10004;|2.0T|1.5 x 10<sup>-4</sup>| *Llama 2 family of models.* Token counts refer to pretraining data only. All models are trained with a global batch-size of 4M tokens. Bigger models - 70B -- use Grouped-Query Attention (GQA) for improved inference scalability. **Model Dates** Llama 2 was trained between January 2023 and July 2023. **Status** This is a static model trained on an offline dataset. Future versions of the tuned models will be released as we improve model safety with community feedback. **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/) **Research Paper** ["Llama-2: Open Foundation and Fine-tuned Chat Models"](arxiv.org/abs/2307.09288) ## Intended Use **Intended Use Cases** Llama 2 is intended for commercial and research use in English. Tuned models are intended for assistant-like chat, whereas pretrained models can be adapted for a variety of natural language generation tasks. **Out-of-scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws).Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Llama 2. ## Hardware and Software **Training Factors** We used custom training libraries, Meta's Research Super Cluster, and production clusters for pretraining. Fine-tuning, annotation, and evaluation were also performed on third-party cloud compute. **Carbon Footprint** Pretraining utilized a cumulative 3.3M GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 539 tCO2eq, 100% of which were offset by Meta’s sustainability program. ||Time (GPU hours)|Power Consumption (W)|Carbon Emitted(tCO<sub>2</sub>eq)| |---|---|---|---| |Llama 2 7B|184320|400|31.22| |Llama 2 13B|368640|400|62.44| |Llama 2 70B|1720320|400|291.42| |Total|3311616||539.00| **CO<sub>2</sub> emissions during pretraining.** Time: total GPU time required for training each model. Power Consumption: peak power capacity per GPU device for the GPUs used adjusted for power usage efficiency. 100% of the emissions are directly offset by Meta's sustainability program, and because we are openly releasing these models, the pretraining costs do not need to be incurred by others. ## Training Data **Overview** Llama 2 was pretrained on 2 trillion tokens of data from publicly available sources. The fine-tuning data includes publicly available instruction datasets, as well as over one million new human-annotated examples. Neither the pretraining nor the fine-tuning datasets include Meta user data. **Data Freshness** The pretraining data has a cutoff of September 2022, but some tuning data is more recent, up to July 2023. ## Evaluation Results In this section, we report the results for the Llama 1 and Llama 2 models on standard academic benchmarks.For all the evaluations, we use our internal evaluations library. |Model|Size|Code|Commonsense Reasoning|World Knowledge|Reading Comprehension|Math|MMLU|BBH|AGI Eval| |---|---|---|---|---|---|---|---|---|---| |Llama 1|7B|14.1|60.8|46.2|58.5|6.95|35.1|30.3|23.9| |Llama 1|13B|18.9|66.1|52.6|62.3|10.9|46.9|37.0|33.9| |Llama 1|33B|26.0|70.0|58.4|67.6|21.4|57.8|39.8|41.7| |Llama 1|65B|30.7|70.7|60.5|68.6|30.8|63.4|43.5|47.6| |Llama 2|7B|16.8|63.9|48.9|61.3|14.6|45.3|32.6|29.3| |Llama 2|13B|24.5|66.9|55.4|65.8|28.7|54.8|39.4|39.1| |Llama 2|70B|**37.5**|**71.9**|**63.6**|**69.4**|**35.2**|**68.9**|**51.2**|**54.2**| **Overall performance on grouped academic benchmarks.** *Code:* We report the average pass@1 scores of our models on HumanEval and MBPP. *Commonsense Reasoning:* We report the average of PIQA, SIQA, HellaSwag, WinoGrande, ARC easy and challenge, OpenBookQA, and CommonsenseQA. We report 7-shot results for CommonSenseQA and 0-shot results for all other benchmarks. *World Knowledge:* We evaluate the 5-shot performance on NaturalQuestions and TriviaQA and report the average. *Reading Comprehension:* For reading comprehension, we report the 0-shot average on SQuAD, QuAC, and BoolQ. *MATH:* We report the average of the GSM8K (8 shot) and MATH (4 shot) benchmarks at top 1. |||TruthfulQA|Toxigen| |---|---|---|---| |Llama 1|7B|27.42|23.00| |Llama 1|13B|41.74|23.08| |Llama 1|33B|44.19|22.57| |Llama 1|65B|48.71|21.77| |Llama 2|7B|33.29|**21.25**| |Llama 2|13B|41.86|26.10| |Llama 2|70B|**50.18**|24.60| **Evaluation of pretrained LLMs on automatic safety benchmarks.** For TruthfulQA, we present the percentage of generations that are both truthful and informative (the higher the better). For ToxiGen, we present the percentage of toxic generations (the smaller the better). |||TruthfulQA|Toxigen| |---|---|---|---| |Llama-2-Chat|7B|57.04|**0.00**| |Llama-2-Chat|13B|62.18|**0.00**| |Llama-2-Chat|70B|**64.14**|0.01| **Evaluation of fine-tuned LLMs on different safety datasets.** Same metric definitions as above. ## Ethical Considerations and Limitations Llama 2 is a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2, developers should perform safety testing and tuning tailored to their specific applications of the model. Please see the Responsible Use Guide available at [https://ai.meta.com/llama/responsible-use-guide/](https://ai.meta.com/llama/responsible-use-guide) ## Reporting Issues Please report any software “bug,” or other problems with the models through one of the following means: - Reporting issues with the model: [github.com/facebookresearch/llama](http://github.com/facebookresearch/llama) - Reporting problematic content generated by the model: [developers.facebook.com/llama_output_feedback](http://developers.facebook.com/llama_output_feedback) - Reporting bugs and security concerns: [facebook.com/whitehat/info](http://facebook.com/whitehat/info) ## Llama Model Index |Model|Llama2|Llama2-hf|Llama2-chat|Llama2-chat-hf| |---|---|---|---|---| |7B| [Link](https://huggingface.co/llamaste/Llama-2-7b) | [Link](https://huggingface.co/llamaste/Llama-2-7b-hf) | [Link](https://huggingface.co/llamaste/Llama-2-7b-chat) | [Link](https://huggingface.co/llamaste/Llama-2-7b-chat-hf)| |13B| [Link](https://huggingface.co/llamaste/Llama-2-13b) | [Link](https://huggingface.co/llamaste/Llama-2-13b-hf) | [Link](https://huggingface.co/llamaste/Llama-2-13b-chat) | [Link](https://huggingface.co/llamaste/Llama-2-13b-hf)| |70B| [Link](https://huggingface.co/llamaste/Llama-2-70b) | [Link](https://huggingface.co/llamaste/Llama-2-70b-hf) | [Link](https://huggingface.co/llamaste/Llama-2-70b-chat) | [Link](https://huggingface.co/llamaste/Llama-2-70b-hf)|
[ -0.49253588914871216, -0.8273341655731201, 0.33679598569869995, 0.08964179456233978, -0.303604394197464, -0.051503684371709824, 0.12195286154747009, -0.5096091032028198, 0.02126440592110157, 0.28269273042678833, -0.6908084750175476, -0.4817025661468506, -0.3288356363773346, -0.05475102737545967, -0.3664103150367737, 0.9463212490081787, 0.20784687995910645, -0.34721189737319946, -0.29886287450790405, -0.1508963704109192, -0.29023244976997375, -0.5883538722991943, -0.6527822613716125, -0.2316848635673523, 0.18186727166175842, 0.21038438379764557, 0.7723956108093262, 0.6942864656448364, 0.2561081349849701, 0.43969717621803284, -0.0924062579870224, 0.18058085441589355, -0.3941004276275635, 0.008811986073851585, 0.2615590989589691, -0.3123534917831421, -0.5819817781448364, 0.04191456735134125, 0.4305665194988251, 0.17615452408790588, -0.3058251142501831, 0.26354244351387024, 0.05652434378862381, 0.3759371340274811, -0.4846460819244385, 0.17551521956920624, -0.489031583070755, -0.02196308970451355, -0.099537193775177, 0.09757575392723083, -0.12558184564113617, -0.11060425639152527, -0.022149180993437767, -0.8233882188796997, -0.00860927626490593, 0.192114919424057, 1.2152937650680542, 0.3212946653366089, -0.5775855779647827, 0.08181982487440109, -0.49814432859420776, 1.053242802619934, -1.11641526222229, 0.32352954149246216, 0.3545145094394684, 0.23306724429130554, -0.1926736831665039, -0.9702280163764954, -0.7087838053703308, -0.17033660411834717, -0.11700357496738434, 0.19506295025348663, -0.5869496464729309, -0.03272385150194168, 0.18019214272499084, 0.5115143656730652, -0.5864847302436829, 0.046597786247730255, -0.32399094104766846, -0.22627244889736176, 0.7538825869560242, 0.41398516297340393, 0.2815192639827728, -0.253196120262146, -0.4222639203071594, -0.31851062178611755, -0.5140830874443054, 0.14904658496379852, 0.18720383942127228, 0.02770071290433407, -0.5627448558807373, 0.5468213558197021, -0.3154599070549011, 0.4910132884979248, 0.23307140171527863, -0.11526482552289963, 0.27439969778060913, -0.5126615762710571, -0.5629221796989441, -0.4951665997505188, 1.2529268264770508, 0.4386790692806244, -0.32794103026390076, 0.19394169747829437, -0.019018860533833504, -0.11875370889902115, 0.03589318320155144, -0.8369044065475464, -0.2869521677494049, 0.6277170181274414, -0.5971910953521729, -0.47481289505958557, -0.24572286009788513, -0.6497036218643188, -0.16880637407302856, 0.08045671135187149, 0.5126909613609314, -0.338666707277298, -0.3530459403991699, -0.07118673622608185, -0.3126092553138733, 0.586993932723999, 0.2776503264904022, -0.762982964515686, 0.3502451479434967, 0.4306280314922333, 0.6636784672737122, 0.11634263396263123, -0.22241806983947754, -0.31288570165634155, 0.013991988264024258, -0.10106933116912842, 0.5722463130950928, -0.13695818185806274, -0.451506644487381, -0.3169548213481903, 0.1445537507534027, 0.21042321622371674, -0.32007017731666565, 0.38866549730300903, -0.23898380994796753, 0.42274340987205505, -0.3497658967971802, -0.44772809743881226, -0.27435538172721863, 0.12540468573570251, -0.4860059916973114, 1.229001760482788, 0.22747862339019775, -0.8228096961975098, 0.10045531392097473, -0.49017423391342163, -0.18702653050422668, 0.040452733635902405, -0.011680381372570992, -0.5983687043190002, -0.23107261955738068, 0.37212827801704407, 0.3609353005886078, -0.4645344614982605, 0.0022695770021528006, -0.4175037741661072, -0.19410808384418488, 0.28256505727767944, -0.4563310742378235, 1.2289773225784302, 0.30224961042404175, -0.5323310494422913, 0.07639748603105545, -0.6849581003189087, 0.15768897533416748, 0.4168645143508911, -0.28430745005607605, 0.061347924172878265, -0.017171064391732216, 0.018279947340488434, 0.05608368664979935, 0.43453365564346313, -0.3911738693714142, 0.20819498598575592, -0.29108670353889465, 0.704544186592102, 0.7545341849327087, 0.0025866099167615175, 0.4788329601287842, -0.6018919944763184, 0.3965907394886017, 0.12466652691364288, 0.5160617232322693, 0.07434742897748947, -0.6992868185043335, -0.9464471936225891, -0.3037351965904236, 0.2066042125225067, 0.6680412888526917, -0.6127231121063232, 0.6526219248771667, 0.16993941366672516, -0.7702372074127197, -0.5428090691566467, -0.10354778915643692, 0.243086576461792, 0.44000017642974854, 0.43229538202285767, -0.2513691186904907, -0.6584397554397583, -0.7999323606491089, 0.07192344218492508, -0.4818909168243408, -0.15025180578231812, 0.5454843640327454, 0.6252063512802124, -0.4127703309059143, 0.7187533974647522, -0.5063417553901672, -0.18496303260326385, -0.0946277529001236, 0.052965231239795685, 0.3055590093135834, 0.6554409861564636, 0.7055227756500244, -0.51500004529953, -0.40450766682624817, -0.12802079319953918, -0.7688786387443542, -0.08503556251525879, -0.04188018664717674, -0.4624830484390259, 0.32769933342933655, 0.17995314300060272, -0.8717643618583679, 0.5015916228294373, 0.5996073484420776, -0.4335114061832428, 0.6345989108085632, -0.18983225524425507, 0.11807668209075928, -1.0789796113967896, 0.04876777157187462, -0.04277467355132103, -0.2975952923297882, -0.4793577492237091, 0.10485134273767471, -0.18864287436008453, 0.12434978038072586, -0.443248450756073, 0.7007317543029785, -0.4454299807548523, 0.032941486686468124, -0.07459619641304016, -0.09327370673418045, 0.3261353075504303, 0.47193387150764465, -0.14970813691616058, 0.7101251482963562, 0.6188486218452454, -0.6681862473487854, 0.5286478996276855, 0.4252732992172241, -0.03846306726336479, 0.3088591992855072, -0.9175940155982971, 0.23121559619903564, 0.14362671971321106, 0.380730539560318, -1.1639012098312378, -0.12653698027133942, 0.4944249093532562, -0.6355389952659607, 0.134789377450943, -0.2167052924633026, -0.360361784696579, -0.42931488156318665, -0.42966365814208984, 0.2588329315185547, 0.991899311542511, -0.46044549345970154, 0.5920897722244263, 0.49307724833488464, 0.1803939938545227, -0.7764816880226135, -0.8124204874038696, -0.1657778024673462, -0.3812405467033386, -0.6123920679092407, 0.3464304208755493, -0.22414438426494598, -0.2925334870815277, 0.013752337545156479, 0.029504673555493355, -0.15258944034576416, 0.18013134598731995, 0.3110513389110565, 0.33259522914886475, -0.13498808443546295, -0.2234530746936798, 0.0777505561709404, -0.008229769766330719, 0.11076800525188446, -0.28136295080184937, 0.5572260618209839, -0.37311801314353943, -0.07577336579561234, -0.6748194098472595, 0.28595227003097534, 0.5321386456489563, -0.18377284705638885, 0.9592082500457764, 0.7771351933479309, -0.23873229324817657, -0.013437896966934204, -0.5287147760391235, -0.3158433735370636, -0.5446757674217224, 0.19401668012142181, -0.1710369884967804, -0.652367889881134, 0.6314362287521362, 0.35854363441467285, 0.3514314293861389, 0.7539930939674377, 0.5581976175308228, -0.38847240805625916, 1.0677467584609985, 0.5666465759277344, -0.026266472414135933, 0.42840754985809326, -0.627865195274353, -0.05730815604329109, -0.860893726348877, -0.19995585083961487, -0.4152493476867676, -0.18221066892147064, -0.6311671137809753, -0.530475914478302, 0.36612468957901, 0.09676467627286911, -0.6135945320129395, 0.3734799325466156, -0.614037036895752, 0.008395989425480366, 0.7370333075523376, 0.13530924916267395, 0.17627587914466858, -0.08470796048641205, -0.15715256333351135, 0.037864796817302704, -0.6834827065467834, -0.3800978660583496, 1.0730279684066772, 0.3375489413738251, 0.589220404624939, 0.12388499826192856, 0.6424990296363831, 0.1809452325105667, 0.15654458105564117, -0.5489986538887024, 0.5828840732574463, 0.07404884696006775, -0.626104474067688, -0.4074277877807617, -0.4586792588233948, -0.8946853280067444, 0.3028675317764282, -0.2229127585887909, -0.6980634927749634, 0.28174683451652527, 0.11486820131540298, -0.46467459201812744, 0.30700069665908813, -0.44338303804397583, 0.7665143609046936, -0.1155686229467392, -0.32921743392944336, -0.017323320731520653, -0.5978214740753174, 0.3898060917854309, 0.23465222120285034, 0.18128885328769684, -0.2541249394416809, -0.1934175193309784, 0.7729559540748596, -0.9131314158439636, 0.8677840828895569, -0.1413068324327469, -0.04887103661894798, 0.5699020028114319, -0.06917008012533188, 0.5550664663314819, 0.1378559023141861, -0.11898484081029892, 0.3991144001483917, 0.1313973367214203, -0.4232041835784912, -0.3084174394607544, 0.5571527481079102, -1.1104567050933838, -0.7168788909912109, -0.42985767126083374, -0.49171382188796997, 0.16435328125953674, 0.09058289974927902, 0.4344654083251953, 0.2233441323041916, -0.09317456930875778, 0.18655461072921753, 0.4043927788734436, -0.3828805685043335, 0.5511342883110046, 0.38449564576148987, -0.1735873967409134, -0.5394526720046997, 0.6239541172981262, -0.03701763600111008, 0.2711559236049652, 0.20579075813293457, 0.15040646493434906, -0.4713926315307617, -0.394290566444397, -0.5977292656898499, 0.2886901795864105, -0.5348566174507141, -0.4859103560447693, -0.7474872469902039, -0.42638859152793884, -0.49891892075538635, 0.010341179557144642, -0.4118403494358063, -0.5304292440414429, -0.6865329146385193, 0.02494017593562603, 0.8934715390205383, 0.3907102942466736, -0.3702195882797241, 0.43770647048950195, -0.6878647208213806, 0.24451370537281036, 0.4921671152114868, -0.041087910532951355, 0.08454427123069763, -0.7631508111953735, -0.06291460990905762, 0.32614874839782715, -0.5080693960189819, -0.7576184272766113, 0.7149482369422913, 0.19327139854431152, 0.6317338347434998, 0.28856155276298523, 0.28290197253227234, 0.8019154071807861, -0.22118984162807465, 0.985303521156311, 0.09568630158901215, -1.0735867023468018, 0.4657306969165802, -0.3736809194087982, 0.2858494520187378, 0.26035040616989136, 0.32902809977531433, -0.41928696632385254, -0.5170794725418091, -0.7539203763008118, -0.9106253981590271, 0.5776767730712891, 0.4472558796405792, 0.11485958844423294, 0.059277843683958054, 0.30907467007637024, -0.13202664256095886, 0.16753777861595154, -0.8660125732421875, -0.6583437919616699, -0.36564090847969055, -0.08784963190555573, 0.2558165490627289, -0.12004515528678894, -0.22255635261535645, -0.5301961898803711, 0.8219860792160034, -0.07424983382225037, 0.7314646244049072, 0.27048999071121216, 0.1107366532087326, -0.17052362859249115, 0.09521851688623428, 0.2532346844673157, 0.49562180042266846, -0.1534431278705597, -0.14279179275035858, 0.39305317401885986, -0.39221543073654175, 0.13353106379508972, 0.16811871528625488, -0.14888933300971985, -0.19045394659042358, 0.13028398156166077, 0.8836418986320496, -0.08430078625679016, -0.40286096930503845, 0.43370741605758667, -0.2676534354686737, -0.411679744720459, -0.38377633690834045, 0.22201161086559296, 0.3038037419319153, 0.5683474540710449, 0.5382131338119507, -0.20833735167980194, 0.21967092156410217, -0.5362633466720581, 0.14992259442806244, 0.6873939633369446, -0.07513809949159622, -0.08539868146181107, 1.1036821603775024, 0.0902075469493866, -0.1314695030450821, 0.8152744770050049, -0.17053815722465515, -0.4682033956050873, 0.9963638186454773, 0.5568990707397461, 0.6548938751220703, -0.016555985435843468, 0.24993625283241272, 0.5213791131973267, 0.23916597664356232, 0.11024565249681473, 0.3865412771701813, -0.016918450593948364, -0.6234285831451416, -0.24664443731307983, -0.5967095494270325, -0.401023268699646, 0.27309927344322205, -0.6234512329101562, 0.25041210651397705, -0.5305530428886414, -0.36269885301589966, -0.16282221674919128, 0.2860713303089142, -0.6470111608505249, 0.25602197647094727, 0.19101062417030334, 0.6603280901908875, -0.6441105604171753, 0.7449378371238708, 0.5407392978668213, -0.4039806127548218, -0.8878616690635681, -0.25310787558555603, 0.15948989987373352, -0.8349722027778625, 0.1697823405265808, -0.0016468544490635395, 0.16937735676765442, 0.2162829488515854, -0.8776105046272278, -1.0556308031082153, 1.484116554260254, 0.10199026018381119, -0.5207700133323669, 0.011659126728773117, 0.0490240603685379, 0.3915015459060669, -0.2360963523387909, 0.6822105050086975, 0.4575885832309723, 0.42656585574150085, 0.16225548088550568, -0.9215707182884216, 0.3819623291492462, -0.2809796631336212, -0.041178446263074875, 0.001481440500356257, -1.093812108039856, 1.170751690864563, -0.2527543604373932, -0.21505358815193176, 0.3968046009540558, 0.9368978142738342, 0.6048120856285095, 0.04306069016456604, 0.47450801730155945, 0.6180328726768494, 0.8390446305274963, -0.1608756184577942, 0.9651967883110046, -0.28393131494522095, 0.5942438244819641, 0.7189512252807617, -0.042751118540763855, 0.7918295860290527, 0.2945708930492401, -0.5153815150260925, 0.6244798898696899, 0.7758190035820007, -0.29736828804016113, 0.38614901900291443, 0.02864012122154236, -0.24088317155838013, -0.15176382660865784, 0.04679110273718834, -0.6555010676383972, 0.33890900015830994, 0.3783111274242401, -0.17470483481884003, 0.014172172173857689, -0.20083200931549072, 0.08207915723323822, -0.5376302003860474, -0.08051898330450058, 0.6614596843719482, 0.29231691360473633, -0.2768615782260895, 1.0750855207443237, 0.050996989011764526, 0.8225206136703491, -0.4830360412597656, -0.10431510210037231, -0.37675952911376953, 0.04010194167494774, -0.18934381008148193, -0.6710754632949829, 0.14883212745189667, -0.10175122320652008, 0.014173106290400028, 0.09337794035673141, 0.5898763537406921, -0.21933887898921967, -0.431508868932724, 0.28789496421813965, 0.4736063778400421, 0.27236542105674744, 0.06322164088487625, -0.9790889024734497, 0.2641298472881317, 0.06140762194991112, -0.5238997340202332, 0.28685319423675537, 0.32331183552742004, 0.2545977830886841, 0.7405202984809875, 0.7524170875549316, -0.2997233271598816, 0.06779545545578003, -0.3879460096359253, 0.9253566861152649, -0.6771742105484009, -0.29230743646621704, -0.8898336887359619, 0.8071029782295227, -0.0636582225561142, -0.38037005066871643, 0.8242111206054688, 0.3817768692970276, 0.5905265212059021, 0.05705733969807625, 0.8036012649536133, -0.39268267154693604, 0.17125044763088226, -0.24529337882995605, 0.8983882665634155, -0.8083423972129822, 0.23524609208106995, -0.121573306620121, -0.6472418904304504, 0.057674046605825424, 0.7455040812492371, 0.06108709052205086, 0.15495747327804565, 0.5060330629348755, 0.7796016931533813, 0.09889380633831024, -0.13081751763820648, 0.2554597854614258, 0.530093789100647, 0.28934434056282043, 0.7213172316551208, 0.7731133103370667, -0.9041479825973511, 0.7122092247009277, -0.5983492732048035, -0.18763510882854462, -0.16331638395786285, -0.8544836044311523, -0.8591372966766357, -0.5315330624580383, -0.36921995878219604, -0.6221520900726318, -0.07103846967220306, 0.8070582151412964, 0.8430109620094299, -0.6483315825462341, -0.3536696434020996, -0.07960357517004013, 0.05605058744549751, -0.26129865646362305, -0.28809070587158203, 0.23783478140830994, 0.08272531628608704, -0.7782558798789978, 0.2845740020275116, -0.07894831150770187, 0.4003692865371704, -0.3092559278011322, -0.14872200787067413, -0.25804927945137024, 0.2299453169107437, 0.4261026382446289, 0.4906877279281616, -0.7052558064460754, -0.13573727011680603, -0.018139982596039772, -0.19858665764331818, 0.25215378403663635, 0.048498060554265976, -0.8668375611305237, -0.0656929537653923, 0.46541473269462585, 0.204496830701828, 0.6620952486991882, -0.01670054905116558, 0.5898707509040833, -0.4422072470188141, 0.287626177072525, 0.1072525903582573, 0.32414019107818604, 0.15071947872638702, -0.6041001677513123, 0.43156641721725464, 0.1834491789340973, -0.7422377467155457, -0.861873209476471, -0.09384123980998993, -1.0346691608428955, -0.2408488690853119, 1.114824652671814, -0.14549311995506287, -0.4586843252182007, 0.009365107864141464, -0.2532344162464142, 0.44074252247810364, -0.4885004460811615, 0.5254462957382202, 0.35383903980255127, -0.14724017679691315, -0.30810943245887756, -0.5302410125732422, 0.5470479726791382, 0.35638418793678284, -0.9405753016471863, -0.06932412832975388, 0.39285528659820557, 0.4209112823009491, -0.12313250452280045, 0.7771635055541992, 0.0030205806251615286, 0.2914293706417084, 0.13912101089954376, 0.14109215140342712, 0.017225582152605057, 0.05735989660024643, -0.1486683487892151, -0.16183215379714966, -0.1401757150888443, -0.26205822825431824 ]
timm/visformer_small.in1k
timm
"2023-04-26T16:47:32Z"
35,144
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2104.12533", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-26T16:47:02Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for visformer_small.in1k A Visformer image classification model. Trained on ImageNet-1k by https://github.com/hzhang57 and https://github.com/developer0hye. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 40.2 - GMACs: 4.9 - Activations (M): 11.4 - Image size: 224 x 224 - **Papers:** - Visformer: The Vision-friendly Transformer: https://arxiv.org/abs/2104.12533 - **Dataset:** ImageNet-1k - **Original:** https://github.com/danczs/Visformer ## 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('visformer_small.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( 'visformer_small.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, 768, 7, 7) 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{chen2021visformer, title={Visformer: The vision-friendly transformer}, author={Chen, Zhengsu and Xie, Lingxi and Niu, Jianwei and Liu, Xuefeng and Wei, Longhui and Tian, Qi}, booktitle={Proceedings of the IEEE/CVF international conference on computer vision}, pages={589--598}, year={2021} } ```
[ -0.3833814561367035, -0.30326715111732483, 0.07490237802267075, 0.10543719679117203, -0.36717331409454346, -0.4844631254673004, -0.14012478291988373, -0.41635435819625854, 0.2028757780790329, 0.37166014313697815, -0.5147438049316406, -0.6128790974617004, -0.7013516426086426, -0.14411291480064392, -0.1997414380311966, 0.8705054521560669, -0.13004671037197113, 0.09344033896923065, -0.28843948245048523, -0.43593019247055054, -0.24194055795669556, -0.2391909956932068, -0.8003151416778564, -0.42120561003685, 0.41436567902565, 0.29143375158309937, 0.5274384021759033, 0.4743799865245819, 0.7311636209487915, 0.4356039762496948, -0.2060718685388565, 0.002288933377712965, -0.3924870491027832, -0.21709927916526794, 0.4396043121814728, -0.8300216794013977, -0.5732096433639526, 0.24710150063037872, 0.7485155463218689, 0.49281561374664307, -0.0324772372841835, 0.5139612555503845, 0.25363489985466003, 0.6000384092330933, -0.33641713857650757, 0.2568049728870392, -0.41472327709198, 0.35117587447166443, -0.21752679347991943, 0.13397027552127838, -0.3529976010322571, -0.5291049480438232, 0.303331196308136, -0.5299396514892578, 0.4192790389060974, 0.10554402321577072, 1.2376047372817993, 0.3831482231616974, 0.03077400103211403, 0.24143542349338531, -0.2966790795326233, 0.7762905955314636, -0.806303858757019, 0.4155420958995819, 0.1588781327009201, 0.3739652633666992, 0.029172498732805252, -1.0759427547454834, -0.7101691961288452, -0.10233099013566971, -0.1503223180770874, 0.07722800970077515, -0.25533002614974976, 0.10267100483179092, 0.36564791202545166, 0.44289442896842957, -0.46468278765678406, 0.03500652685761452, -0.7272430062294006, -0.21481086313724518, 0.39493048191070557, 0.07981093972921371, 0.16257339715957642, -0.3080938756465912, -0.5898694396018982, -0.4860386252403259, -0.330043762922287, 0.5582090616226196, 0.23375451564788818, 0.1177903339266777, -0.628808319568634, 0.5865909457206726, 0.1440124362707138, 0.6528759002685547, 0.3143206238746643, -0.36615076661109924, 0.5978397130966187, 0.15798024833202362, -0.5936702489852905, -0.13748684525489807, 0.9529387354850769, 0.5365527868270874, 0.2532721161842346, 0.09841766953468323, -0.10282117128372192, -0.26913461089134216, 0.044784918427467346, -1.194919228553772, -0.2845386266708374, 0.2542453408241272, -0.7413129806518555, -0.6013355851173401, 0.3522252142429352, -0.5590207576751709, -0.17559577524662018, -0.1689363420009613, 0.6888700127601624, -0.44892004132270813, -0.18253293633460999, 0.12340251356363297, -0.21535657346248627, 0.600620687007904, 0.26880696415901184, -0.4538205862045288, 0.15415352582931519, 0.20778919756412506, 1.0549135208129883, -0.15516230463981628, -0.4312019646167755, -0.2405042201280594, -0.347494900226593, -0.2850344479084015, 0.5326404571533203, -0.00429300544783473, -0.13134512305259705, -0.2368728667497635, 0.45426255464553833, -0.22724947333335876, -0.7452447414398193, 0.33088353276252747, -0.23671528697013855, 0.4619103968143463, 0.09318647533655167, -0.15720827877521515, -0.6470078825950623, 0.3483044505119324, -0.4942047894001007, 1.1402277946472168, 0.3741242289543152, -0.9308096170425415, 0.40219947695732117, -0.5129326581954956, -0.013136633671820164, -0.1581782102584839, -0.04898287355899811, -1.058372974395752, -0.003922610078006983, 0.009520516730844975, 0.761859655380249, -0.3584335148334503, 0.07107934355735779, -0.48255351185798645, -0.23916690051555634, 0.2555701732635498, -0.20949943363666534, 1.040160894393921, -0.007548978552222252, -0.4043423533439636, 0.3625378906726837, -0.8190698027610779, 0.11313088238239288, 0.5500598549842834, -0.25687000155448914, 0.023725386708974838, -0.6682031750679016, 0.2976720929145813, 0.2785887122154236, 0.13071948289871216, -0.6054396033287048, 0.26588910818099976, -0.3097389340400696, 0.28044524788856506, 0.7137490510940552, -0.14325496554374695, 0.30830061435699463, -0.4437510669231415, 0.3933130204677582, 0.37598520517349243, 0.4925028681755066, 0.19388338923454285, -0.5784201622009277, -1.0341851711273193, -0.40215617418289185, 0.2516336441040039, 0.46556782722473145, -0.6584057807922363, 0.3348660171031952, -0.17904822528362274, -0.8647139668464661, -0.41313180327415466, 0.018321674317121506, 0.44968146085739136, 0.6702340841293335, 0.32219091057777405, -0.5333245992660522, -0.4728555679321289, -0.9884418249130249, 0.11924682557582855, 0.04555549845099449, -0.019572971388697624, 0.3402971923351288, 0.5281437039375305, -0.19225333631038666, 0.7446249723434448, -0.5329685807228088, -0.3422253131866455, -0.22294732928276062, -0.09355015307664871, 0.4855053722858429, 0.7144364714622498, 0.8924315571784973, -0.7528361678123474, -0.5609052181243896, -0.3355357348918915, -1.0087333917617798, 0.24524419009685516, 0.1334669440984726, -0.20592999458312988, 0.24302265048027039, 0.18756389617919922, -0.5053299069404602, 0.7362734079360962, 0.24874915182590485, -0.36170920729637146, 0.593921959400177, -0.21289636194705963, 0.09019698202610016, -1.0610430240631104, 0.1066390872001648, 0.31623977422714233, -0.24455256760120392, -0.5052815675735474, -0.13799388706684113, 0.04232199117541313, -0.045319560915231705, -0.770451009273529, 0.6575994491577148, -0.4817383885383606, 0.11878596991300583, -0.10735289007425308, -0.3172279894351959, 0.016752980649471283, 0.7532349824905396, -0.07659238576889038, 0.3994493782520294, 0.9547827839851379, -0.6354828476905823, 0.5666541457176208, 0.5680486559867859, -0.2141348421573639, 0.5384891033172607, -0.7729347348213196, 0.07525234669446945, -0.17344270646572113, 0.09268885850906372, -1.0206753015518188, -0.20674541592597961, 0.42290979623794556, -0.4593336284160614, 0.7253150939941406, -0.46737024188041687, -0.24936939775943756, -0.598151683807373, -0.5911577343940735, 0.5509587526321411, 0.647305965423584, -0.7692222595214844, 0.567406177520752, 0.30024024844169617, 0.24398407340049744, -0.5400401949882507, -0.8678202629089355, -0.33843499422073364, -0.39266470074653625, -0.8975507020950317, 0.44494715332984924, 0.023483850061893463, 0.033677272498607635, 0.034296710044145584, -0.17674224078655243, -0.07223743945360184, -0.30250123143196106, 0.5337175726890564, 0.5803708434104919, -0.3919546902179718, -0.21776387095451355, -0.3375309407711029, -0.2095012217760086, 0.05208198353648186, -0.3372595012187958, 0.5050840377807617, -0.35888057947158813, -0.16964222490787506, -0.7892767786979675, -0.2059810906648636, 0.7090348601341248, -0.07142022252082825, 0.8876210451126099, 1.0350453853607178, -0.5269229412078857, -0.04001163691282272, -0.5339983701705933, -0.2786290943622589, -0.5055076479911804, 0.3758842647075653, -0.4412074089050293, -0.33866724371910095, 0.8040140271186829, 0.1271423101425171, 0.022999610751867294, 0.7543314099311829, 0.38397493958473206, 0.0573444627225399, 0.717438817024231, 0.9373593926429749, 0.27893438935279846, 0.7951009273529053, -1.0155339241027832, -0.1663275510072708, -0.923879861831665, -0.5774862170219421, -0.20921650528907776, -0.5362530946731567, -0.6597862839698792, -0.4139813780784607, 0.549946129322052, 0.06588739901781082, -0.3159807622432709, 0.5246830582618713, -0.9069779515266418, 0.052567336708307266, 0.7259596586227417, 0.49068915843963623, -0.31030145287513733, 0.1974448412656784, -0.32087084650993347, 0.015570888295769691, -0.8712511658668518, -0.25477084517478943, 1.0575051307678223, 0.47625306248664856, 0.8652797341346741, -0.16450235247612, 0.543971836566925, -0.37429121136665344, 0.2520136535167694, -0.7484019994735718, 0.551751434803009, -0.18342968821525574, -0.29271724820137024, -0.12222367525100708, -0.20067612826824188, -0.9295171499252319, 0.1311981976032257, -0.34566643834114075, -0.7289416193962097, 0.4001663625240326, 0.19386833906173706, -0.32964226603507996, 0.7269470691680908, -0.7655280232429504, 1.148572564125061, -0.12501654028892517, -0.43656790256500244, 0.24453632533550262, -0.6655579209327698, 0.3089345693588257, 0.16137835383415222, -0.3456578552722931, 0.018395233899354935, 0.29824671149253845, 1.192922592163086, -0.6176347732543945, 0.9291679859161377, -0.5316885113716125, 0.25143662095069885, 0.5141569972038269, -0.14655999839305878, 0.2788662910461426, -0.14121980965137482, 0.04330071806907654, 0.3486144542694092, 0.1693323403596878, -0.37129586935043335, -0.453186959028244, 0.4893883466720581, -0.8630876541137695, -0.385555237531662, -0.41847702860832214, -0.4453742504119873, 0.1348647177219391, 0.12592989206314087, 0.7283710241317749, 0.7520672082901001, 0.2261536419391632, 0.4312577247619629, 0.6689470410346985, -0.3493761718273163, 0.3916836380958557, -0.019541559740900993, -0.2841895520687103, -0.3620692193508148, 0.8344672918319702, 0.20235319435596466, 0.2083907276391983, 0.10329921543598175, 0.2694687843322754, -0.2590445876121521, -0.4752196967601776, -0.2895679175853729, 0.3919575810432434, -0.716924786567688, -0.4786604940891266, -0.5107669830322266, -0.5733993053436279, -0.4134240448474884, -0.023856116458773613, -0.4895802438259125, -0.3510455787181854, -0.27750667929649353, 0.2140568643808365, 0.6445602178573608, 0.6154671907424927, -0.05490073189139366, 0.4759480655193329, -0.5430098176002502, 0.21065567433834076, 0.23786087334156036, 0.6767029166221619, -0.07202348858118057, -0.9778947830200195, -0.1392124742269516, -0.17275233566761017, -0.4679010510444641, -0.7644616365432739, 0.4716583788394928, 0.10612259805202484, 0.585033118724823, 0.4904586374759674, -0.21293595433235168, 0.6970352530479431, -0.18827444314956665, 0.5870215892791748, 0.41261646151542664, -0.5171943306922913, 0.6279690861701965, 0.0347021222114563, 0.11575423926115036, 0.1131317988038063, 0.3277711570262909, -0.3241840898990631, -0.11422960460186005, -0.9092654585838318, -0.76173335313797, 0.9216555953025818, 0.17039041221141815, -0.13596150279045105, 0.5030012726783752, 0.6445838212966919, 0.09121660888195038, 0.04210754856467247, -0.8804319500923157, -0.6242924332618713, -0.4266343116760254, -0.32018667459487915, 0.024766026064753532, -0.17625045776367188, 0.05845410004258156, -0.7525115609169006, 0.7676540613174438, -0.08207537233829498, 0.7079731225967407, 0.4035138487815857, -0.12547490000724792, -0.08906947076320648, -0.4157816171646118, 0.49730604887008667, 0.3275928497314453, -0.402283251285553, 0.01552474033087492, 0.262380987405777, -0.7221795320510864, -0.029508084058761597, 0.2097797393798828, -0.08033544570207596, -0.0018812515772879124, 0.23962058126926422, 0.9909436106681824, 0.009667888283729553, -0.02372235804796219, 0.5816794633865356, -0.21233651041984558, -0.37253639101982117, -0.41487422585487366, 0.20582474768161774, -0.18691235780715942, 0.46326327323913574, 0.266397625207901, 0.5026181936264038, -0.060703229159116745, -0.13232441246509552, 0.1613713651895523, 0.540822446346283, -0.6112390160560608, -0.3400219976902008, 0.8665689826011658, -0.22235004603862762, -0.17494016885757446, 0.6025623679161072, -0.05671515688300133, -0.5396853089332581, 0.9844683408737183, 0.4116634428501129, 1.0404572486877441, -0.0018504711333662271, -0.0957084447145462, 0.7584230899810791, 0.20347777009010315, 0.011444815434515476, 0.16973069310188293, 0.15613006055355072, -0.751533031463623, 0.08262041956186295, -0.6732559204101562, -0.09776279330253601, 0.34588423371315, -0.5467604398727417, 0.5071755051612854, -0.5548116564750671, -0.3532262146472931, 0.2254311442375183, 0.19389064610004425, -1.0158530473709106, 0.2063211053609848, 0.1767769306898117, 0.9390746355056763, -0.6381726264953613, 0.6892125010490417, 0.8535154461860657, -0.6406100988388062, -1.0284274816513062, -0.1665966957807541, 0.11093449592590332, -0.91691654920578, 0.616354763507843, 0.4914112389087677, -0.06932607293128967, 0.06260035932064056, -0.8571446537971497, -0.6473336815834045, 1.4519120454788208, 0.45705482363700867, -0.11072031408548355, 0.1222844123840332, -0.06645962595939636, 0.16764876246452332, -0.3308103084564209, 0.33517587184906006, 0.06873705983161926, 0.4454157054424286, 0.2945110499858856, -0.8115308284759521, 0.15491504967212677, -0.35237815976142883, 0.07643503695726395, 0.05081336945295334, -0.8438134789466858, 0.9707388877868652, -0.4536258280277252, -0.10427125543355942, 0.06645089387893677, 0.6810872554779053, 0.07445643842220306, 0.12279251962900162, 0.6390835642814636, 0.6537555456161499, 0.5924291014671326, -0.20379485189914703, 0.9248924851417542, -0.12352234125137329, 0.6289504766464233, 0.4953807294368744, 0.37644049525260925, 0.4820628762245178, 0.4107944369316101, -0.2686837315559387, 0.4146677851676941, 0.8617547750473022, -0.44920215010643005, 0.2957018315792084, 0.16872043907642365, 0.10245466232299805, -0.10553280264139175, 0.1830604076385498, -0.4922240078449249, 0.6894922852516174, 0.01504545472562313, -0.4040259122848511, -0.1775478571653366, 0.23536600172519684, -0.15010295808315277, -0.4402080178260803, -0.3239525556564331, 0.4885880947113037, 0.06836621463298798, -0.38029202818870544, 0.8866862058639526, 0.06236928328871727, 1.0257021188735962, -0.4225537180900574, 0.04377448186278343, -0.1805994212627411, 0.45366963744163513, -0.34774309396743774, -0.7686499953269958, 0.29295575618743896, -0.24513933062553406, -0.21560856699943542, 0.01580841839313507, 0.7776393890380859, -0.38144081830978394, -0.6071926355361938, 0.15144512057304382, 0.36594486236572266, 0.4331127405166626, -0.05227817967534065, -0.9876030683517456, -0.08504451811313629, 0.056664951145648956, -0.594399631023407, 0.17769405245780945, 0.40910738706588745, 0.09069269150495529, 0.7574194669723511, 0.5611593723297119, -0.1088261678814888, 0.2638366222381592, -0.07613000273704529, 0.8145179748535156, -0.5590634346008301, -0.3080604374408722, -0.7048317193984985, 0.6084593534469604, -0.05919366329908371, -0.5393174886703491, 0.5429638624191284, 0.7048653364181519, 0.8598929643630981, -0.24080674350261688, 0.3403463661670685, -0.18717023730278015, 0.11096752434968948, -0.4306107759475708, 0.8852939009666443, -0.7542293667793274, -0.1604175716638565, -0.19727182388305664, -0.8186041712760925, -0.4361824691295624, 0.8594367504119873, -0.25542548298835754, 0.2740764617919922, 0.5401458740234375, 0.9517158269882202, -0.4503393769264221, -0.3811339735984802, 0.3229551315307617, 0.25072601437568665, 0.13844937086105347, 0.36902788281440735, 0.3980165123939514, -0.8626474142074585, 0.45507025718688965, -0.6437522768974304, -0.24829411506652832, -0.16376987099647522, -0.6191554069519043, -1.0381375551223755, -0.8619909882545471, -0.5966367125511169, -0.6276721954345703, -0.4134976267814636, 0.8946323990821838, 1.0311954021453857, -0.7379579544067383, -0.12120336294174194, 0.15987221896648407, 0.09605509787797928, -0.23738233745098114, -0.2753736078739166, 0.5867501497268677, -0.19282837212085724, -0.8212606310844421, -0.4108526408672333, 0.0552959181368351, 0.5113050937652588, -0.0982881635427475, -0.1751175969839096, -0.019220812246203423, -0.2503053545951843, 0.41811731457710266, 0.2751239240169525, -0.6663022041320801, -0.2831856906414032, -0.006323584355413914, -0.18302741646766663, 0.48280099034309387, 0.27933749556541443, -0.7394552826881409, 0.30288371443748474, 0.40054959058761597, 0.2378143072128296, 0.8653006553649902, -0.4150908589363098, 0.04306110367178917, -0.7280734777450562, 0.5783624649047852, -0.11675003916025162, 0.6283063292503357, 0.3723500669002533, -0.3056237995624542, 0.5004687309265137, 0.47882381081581116, -0.3639315366744995, -0.8309490084648132, -0.14947326481342316, -1.3117913007736206, 0.0799185112118721, 0.8486124873161316, -0.14610835909843445, -0.7124758362770081, 0.4452349841594696, -0.21715594828128815, 0.6170324683189392, 0.07351936399936676, 0.46362605690956116, 0.19735972583293915, -0.08653540909290314, -0.49139925837516785, -0.512653112411499, 0.5147189497947693, 0.045314889401197433, -0.607012927532196, -0.5075535774230957, -0.009823848493397236, 0.7721518278121948, 0.3117977976799011, 0.43530237674713135, -0.21393238008022308, 0.205529123544693, 0.060680024325847626, 0.5200510025024414, -0.43520522117614746, -0.18060432374477386, -0.3403294086456299, 0.09030134975910187, -0.10877079516649246, -0.7192472815513611 ]
CreativeLang/metaphor_detection_roberta_seq
CreativeLang
"2023-09-25T22:08:17Z"
35,122
2
transformers
[ "transformers", "pytorch", "roberta", "token-classification", "en", "dataset:CreativeLang/vua20_metaphor", "license:cc-by-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2023-07-08T16:37:53Z"
--- license: cc-by-2.0 datasets: - CreativeLang/vua20_metaphor language: - en --- # Metaphor_Detection_Roberta_Seq ## Description - **Paper:** [FrameBERT: Conceptual Metaphor Detection with Frame Embedding Learning](https://aclanthology.org/2023.eacl-main.114.pdf) ## Model Summary Creative Language Toolkit (CLTK) Metadata - CL Type: Metaphor - Task Type: detection - Size: roberta-base (500MB) - Created time: 2022 This model is a easy to use metaphor detection baseline realised with `roberta-base` fine-tuned on [CreativeLang/vua20_metaphor](https://huggingface.co/datasets/CreativeLang/vua20_metaphor) dataset. To use this model, please use the `inference.py` in the [FrameBERT repo](https://github.com/liyucheng09/MetaphorFrame). Just run: ``` python inference.py CreativeLang/metaphor_detection_roberta_seq ``` Check out `inference.py` to learn how to apply the model on your own data. For the details of this model and the dataset used, we refer you to the release [paper](https://aclanthology.org/2023.eacl-main.114.pdf). ## Metrics | Metric | Value | |----------------------------------|--------------------------| | eval_loss | 0.2656 | | eval_accuracy_score | 0.9142 | | eval_precision | 0.9142 | | eval_recall | 0.9142 | | eval_f1 | 0.9142 | | eval_f1_macro | 0.7315 | | eval_runtime | 8.9802 | | eval_samples_per_second | 411.7960 | | eval_steps_per_second | 51.5580 | | epoch | 3.0000 | ### Citation Information If you find this dataset helpful, please cite: ``` @article{Li2023FrameBERTCM, title={FrameBERT: Conceptual Metaphor Detection with Frame Embedding Learning}, author={Yucheng Li and Shunyu Wang and Chenghua Lin and Frank Guerin and Lo{\"i}c Barrault}, journal={ArXiv}, year={2023}, volume={abs/2302.04834} } ``` ### Contributions If you have any queries, please open an issue or direct your queries to [mail](mailto:yucheng.li@surrey.ac.uk).
[ -0.5402151942253113, -0.7998647093772888, 0.47155582904815674, 0.16424457728862762, -0.3657981753349304, -0.31396499276161194, -0.09798023104667664, -0.3515474200248718, 0.48307353258132935, 0.2661164402961731, -0.3849647641181946, -0.6552217602729797, -0.6599408388137817, -0.03590143471956253, -0.4894203245639801, 0.7227960228919983, -0.22878888249397278, 0.027989739552140236, -0.3169991672039032, -0.4256502687931061, -0.6176258325576782, -0.2005857527256012, -0.5916897058486938, -0.3307185173034668, 0.1489502340555191, -0.11806027591228485, 0.4545232355594635, 0.7541987299919128, 0.054554447531700134, 0.3627781569957733, -0.2093038409948349, 0.2748207151889801, -0.07312701642513275, 0.21894432604312897, -0.07338124513626099, -0.573775053024292, -0.3613865375518799, 0.3212355971336365, 0.7206140756607056, 0.2881253659725189, -0.0223737433552742, 0.29945069551467896, -0.14484544098377228, 0.39508056640625, -0.7256910800933838, 0.5210257768630981, -0.7446365356445312, 0.4249638020992279, -0.11716840416193008, -0.3966917097568512, -0.32200202345848083, 0.023058585822582245, 0.015219884924590588, -0.7029411196708679, 0.04774917662143707, 0.49940723180770874, 1.2664180994033813, 0.5009852647781372, -0.25595635175704956, -0.41352805495262146, -0.08579301089048386, 0.8719784617424011, -0.5953986048698425, 0.2285730242729187, 0.159635528922081, 0.26312610507011414, -0.015946023166179657, -0.9857987761497498, -0.9017705917358398, -0.07968982309103012, -0.20827515423297882, 0.13013368844985962, -0.643388032913208, -0.30523428320884705, 0.5540860891342163, 0.27264130115509033, -0.5779711604118347, -0.1180935800075531, -0.4379880428314209, -0.3859895169734955, 0.21168994903564453, 0.18682225048542023, 0.359820157289505, -0.33537569642066956, -0.7146524786949158, -0.24738071858882904, -0.4717521071434021, -0.02217080444097519, 0.22033196687698364, -0.23505115509033203, -0.48347651958465576, 0.36718136072158813, 0.03561681881546974, 0.7601435780525208, -0.2129138708114624, 0.07397478818893433, 0.849826991558075, -0.14713141322135925, -0.3491845428943634, 0.10781674087047577, 0.8641284704208374, 0.29478633403778076, 0.5112131237983704, 0.1118343397974968, -0.3887639343738556, 0.3538322448730469, -0.009738272055983543, -0.7590361833572388, -0.4366244375705719, 0.12116861343383789, -0.1435413658618927, -0.1912321299314499, 0.21952269971370697, -0.19272570312023163, -0.11719197779893875, -0.2957127094268799, 0.5331223011016846, -0.7443985342979431, -0.23494282364845276, 0.2367309033870697, -0.5704023838043213, 0.20880994200706482, 0.2650487720966339, -0.36529818177223206, -0.13042886555194855, 0.5502347350120544, 0.9320565462112427, 0.05305838957428932, -0.15859387814998627, -0.634700357913971, 0.005177317187190056, -0.3976742625236511, 0.943661630153656, -0.2749842405319214, 0.20182421803474426, -0.3103106915950775, 0.018974237143993378, -0.16136199235916138, -0.4910231828689575, 0.4840560257434845, -0.38249537348747253, 0.47083061933517456, 0.08135472983121872, -0.7462316751480103, -0.3186207413673401, 0.4962077736854553, -0.6007921099662781, 0.9409520626068115, 0.20009377598762512, -1.1691309213638306, 0.3196878135204315, -0.5694907307624817, 0.10379062592983246, -0.08945384621620178, -0.4800592362880707, -0.4618721008300781, -0.10190705955028534, 0.34006333351135254, 0.6736224889755249, -0.41719064116477966, 0.47045180201530457, -0.4425956606864929, -0.4017481505870819, 0.7482239603996277, -0.3518780767917633, 1.1994277238845825, 0.5277659296989441, -0.19112864136695862, 0.010691367089748383, -0.5599382519721985, 0.27420803904533386, 0.2258303165435791, 0.20929230749607086, -0.5328977108001709, -0.47587358951568604, 0.38550353050231934, 0.40585243701934814, 0.030761389061808586, -0.5906221866607666, -0.12951982021331787, -0.40751370787620544, 0.47918033599853516, 0.6054867506027222, -0.0502966083586216, 0.15375158190727234, -0.5651952624320984, 0.6865409016609192, 0.40003442764282227, -0.44457775354385376, -0.3171806335449219, -0.4887649714946747, -0.7577592134475708, -0.7113789319992065, 0.651636004447937, 0.31753674149513245, -1.0031477212905884, 0.8587421774864197, -0.3122972249984741, -0.4110091030597687, -0.5694414377212524, -0.16730272769927979, 0.44162365794181824, 0.6708722114562988, 0.3801564872264862, -0.46877577900886536, -0.47108715772628784, -0.9568206071853638, -0.3763369619846344, -0.1778910756111145, -0.11121571809053421, 0.08550453931093216, 0.8919206857681274, 0.04606454819440842, 1.1130493879318237, -0.7452716827392578, -0.4851190447807312, -0.1532764434814453, 0.1664595901966095, 0.25147026777267456, 0.5884982347488403, 1.0183932781219482, -1.0137382745742798, -0.6136635541915894, -0.5067165493965149, -1.1130897998809814, -0.2511335611343384, 0.033444926142692566, -0.026490917429327965, 0.14129625260829926, 0.3833775222301483, -0.5838085412979126, 0.434205561876297, 0.2628338038921356, -0.5996206998825073, 0.4247184693813324, -0.07425741851329803, -0.07036660611629486, -1.3285167217254639, 0.09921008348464966, 0.34894612431526184, -0.0417022667825222, -0.5349870920181274, 0.22113633155822754, 0.18737676739692688, 0.22252270579338074, -0.6588091254234314, 0.8190973997116089, -0.4094850718975067, 0.07701734453439713, -0.040224794298410416, 0.43930384516716003, 0.10446880012750626, 0.2602236270904541, 0.30172839760780334, 0.710212230682373, 0.6011268496513367, -0.3262247145175934, 0.2931045889854431, 0.4114570617675781, -0.6217979192733765, 0.6393547654151917, -0.7064458131790161, -0.05083141103386879, -0.20585009455680847, 0.553723156452179, -1.043860673904419, -0.03520960733294487, 0.8208215832710266, -0.7297284603118896, 0.08759400993585587, 0.08382537215948105, -0.7317612171173096, -0.08089306950569153, -0.3787339925765991, 0.4002543091773987, 0.3735104501247406, -0.5676565766334534, 0.39734241366386414, 0.3840940594673157, 0.4418642222881317, -0.7109718918800354, -1.0359150171279907, -0.2050817757844925, -0.72865229845047, -0.6198283433914185, 0.47771698236465454, -0.11294721812009811, -0.06754457950592041, 0.2773067355155945, -0.1591426283121109, -0.18401934206485748, 0.13663344085216522, 0.23489798605442047, 0.2187102735042572, -0.18663153052330017, 0.2667573392391205, -0.16851870715618134, -0.35746800899505615, 0.32793766260147095, -0.3428932726383209, 0.7403912544250488, -0.3467886447906494, -0.13154295086860657, -0.5539970993995667, -0.055175017565488815, 0.5335395336151123, -0.379071444272995, 1.0394554138183594, 1.1366304159164429, -0.6439946889877319, -0.34802642464637756, -0.37628787755966187, -0.06575341522693634, -0.4672743082046509, 0.25353604555130005, -0.4287180006504059, -0.592854917049408, 0.48889726400375366, 0.11066722869873047, -0.3940277397632599, 0.5469019412994385, 0.4047531485557556, -0.034340281039476395, 0.42420896887779236, 0.26529183983802795, -0.10753098875284195, 0.47813305258750916, -0.7325515747070312, 0.2998860776424408, -1.10951566696167, -0.17997802793979645, -0.45236825942993164, -0.33260324597358704, -0.5964423418045044, -0.5877327919006348, 0.3792163133621216, 0.033995043486356735, -0.5716531872749329, 0.5647985935211182, -0.5172058343887329, 0.15200121700763702, 0.2869514226913452, 0.17672163248062134, 0.31920117139816284, 0.20000986754894257, -0.4014308750629425, -0.21668343245983124, -0.7612466216087341, -0.4876457452774048, 0.9978356957435608, 0.4310130774974823, 0.434286892414093, -0.07500404119491577, 0.842722475528717, 0.15125016868114471, 0.2443505972623825, -0.7531136870384216, 0.42406558990478516, 0.18765099346637726, -0.6697208881378174, -0.07642974704504013, -0.4686015844345093, -0.7871285676956177, 0.5038197040557861, -0.21228228509426117, -1.0053106546401978, 0.0405096672475338, 0.19110162556171417, -0.12812486290931702, 0.4258650541305542, -0.4197468161582947, 1.0020231008529663, 0.004906306974589825, -0.09431271255016327, -0.20911218225955963, -0.39371538162231445, 0.49627625942230225, -0.1902005970478058, 0.1923646777868271, -0.3688502609729767, -0.17286233603954315, 0.6599462032318115, 0.04219749569892883, 0.6489394307136536, -0.15131540596485138, 0.16462162137031555, 0.39536020159721375, -0.04838847368955612, 0.36588746309280396, 0.042993392795324326, -0.055735304951667786, 0.1852196604013443, 0.24067141115665436, -0.24322493374347687, -0.7014324069023132, 0.6252347230911255, -0.6268415451049805, -0.5244344472885132, -0.8216740489006042, -0.7946639657020569, 0.06577055156230927, -0.06166454404592514, 0.4388905465602875, 0.13123047351837158, -0.043458398431539536, 0.47860872745513916, 0.5473455786705017, -0.4127361476421356, 0.20663800835609436, 0.34101244807243347, -0.06557857245206833, -0.2892135977745056, 0.6995937824249268, 0.21315114200115204, -0.09456605464220047, 0.42965513467788696, 0.15411703288555145, -0.31400272250175476, -0.13527043163776398, -0.2785116136074066, 0.24995043873786926, -0.7912871837615967, -0.31595978140830994, -0.830166757106781, -0.36421748995780945, -0.09358356893062592, 0.08005306124687195, -0.3574331998825073, -0.575181245803833, -0.3285013437271118, 0.06059955433011055, 0.5536119937896729, 0.10539890825748444, 0.20685961842536926, 0.22403191030025482, -0.38948187232017517, 0.1358685940504074, -0.4336066246032715, -0.0390348955988884, 0.2203749418258667, -0.862825334072113, -0.0793345645070076, 0.0402846485376358, -0.5416582226753235, -0.8727550506591797, 0.8238095045089722, 0.21502166986465454, 0.5866678357124329, 0.6256580352783203, 0.34869563579559326, 0.5967535376548767, -0.104885995388031, 0.636780858039856, 0.4759092926979065, -1.0495545864105225, 0.5846076011657715, -0.0761854350566864, 0.09897995740175247, -0.0006947411457076669, 0.5608503222465515, -0.7123347520828247, -0.24703246355056763, -0.9329562783241272, -0.7452784180641174, 0.6816495656967163, 0.31960421800613403, 0.0970807671546936, -0.09624861180782318, 0.1851319670677185, -0.33093714714050293, 0.3967427909374237, -0.973861038684845, -0.4829256534576416, -0.0023718352895230055, -0.3814547061920166, -0.07843731343746185, 0.209482342004776, -0.26096710562705994, -0.5702657103538513, 0.5817776322364807, -0.20305919647216797, 0.6732450723648071, 0.025512540712952614, -0.15201014280319214, 0.17086291313171387, 0.13070981204509735, 0.3248869776725769, 0.48179206252098083, 0.059253450483083725, 0.1576860100030899, 0.19839796423912048, -0.01585566997528076, 0.14364087581634521, 0.0401306077837944, -0.24052174389362335, 0.12292192131280899, 0.5901203751564026, 0.8351256251335144, 0.17471814155578613, -0.7543602585792542, 0.6733860969543457, 0.1673945039510727, -0.13947543501853943, -0.8693765997886658, 0.3551138937473297, 0.19255982339382172, 0.582399308681488, 0.12008526176214218, 0.1396198272705078, -0.00013696050154976547, -0.40029269456863403, 0.3260177969932556, 0.5278506278991699, -0.31853505969047546, -0.12080361694097519, 0.9159586429595947, -0.41646891832351685, -0.1514710783958435, 0.6730407476425171, -0.29159265756607056, -0.6639715433120728, 0.9806778430938721, 0.7894934415817261, 0.8557066917419434, 0.17155000567436218, 0.2789827287197113, 0.5143951177597046, 0.11654485017061234, -0.021667132154107094, 0.17785899341106415, 0.005848758388310671, -1.19092857837677, 0.16060489416122437, -0.6445709466934204, 0.11363264173269272, 0.3686932325363159, -0.8309054970741272, 0.392861932516098, -0.33753958344459534, -0.17315196990966797, 0.1688259094953537, -0.015912318602204323, -1.0799373388290405, 0.16388610005378723, 0.05692283809185028, 1.1985279321670532, -1.1415470838546753, 1.1664265394210815, 0.9200419187545776, -0.6599542498588562, -0.8632858991622925, 0.12279705703258514, 0.2568778395652771, -0.7398249506950378, 0.8881990909576416, 0.5608542561531067, 0.053175196051597595, -0.07262354344129562, -0.4318503737449646, -0.7633042931556702, 1.5944132804870605, 0.527247428894043, -0.10110793262720108, 0.10877574235200882, -0.13050676882266998, 0.7241886258125305, -0.8223588466644287, 0.3534398078918457, 0.5447205901145935, 0.5608153343200684, -0.005399446468800306, -0.6359906792640686, 0.25264424085617065, -0.430478036403656, 0.1848638653755188, -0.1358185112476349, -0.6918408870697021, 0.9406740069389343, 0.11404763162136078, -0.2506468892097473, 0.23515409231185913, 0.7493175268173218, 0.6321073174476624, 0.6562141180038452, 0.639031708240509, 0.8958656191825867, 0.6908894181251526, -0.3655884265899658, 0.8911707997322083, -0.48164910078048706, 0.5384044051170349, 0.8655211329460144, 0.2371656596660614, 0.7984895706176758, 0.6948242783546448, -0.057632651180028915, 0.4078814685344696, 0.7741361260414124, -0.40244361758232117, 0.6134607195854187, 0.27907684445381165, -0.0359487310051918, -0.2266557216644287, -0.08785158395767212, -0.4924364984035492, 0.48177969455718994, 0.5547357201576233, -0.8545619249343872, -0.1448260396718979, 0.021917765960097313, 0.011811739765107632, 0.15771719813346863, 0.1333492249250412, 0.08503501862287521, 0.33469176292419434, -0.5031053423881531, 0.8385733366012573, 0.16145123541355133, 0.6375342011451721, -0.3913564682006836, -0.019196510314941406, -0.013005508109927177, 0.2313677817583084, -0.07163888961076736, -0.69984370470047, 0.17984938621520996, -0.18544268608093262, 0.14559932053089142, 0.12436603009700775, 0.35573747754096985, -0.5360054969787598, -0.23422662913799286, 0.5360779762268066, 0.7931561470031738, 0.26976776123046875, 0.027214013040065765, -0.9462425708770752, 0.24764743447303772, -0.08208528906106949, -0.2947257161140442, 0.29718807339668274, 0.6819606423377991, -0.13679508864879608, 0.9105833172798157, 0.3447742760181427, 0.11426391452550888, -0.22822783887386322, -0.4851442277431488, 0.8600234389305115, -0.4832272529602051, -0.8318657875061035, -0.7000368237495422, 0.49835196137428284, -0.2070833295583725, -0.5811110734939575, 0.7094967365264893, 0.5426790714263916, 1.1851304769515991, -0.39105504751205444, 0.5859909057617188, -0.26320284605026245, 0.03999596834182739, -0.6787585020065308, 0.8305181860923767, -0.8242765665054321, 0.5449307560920715, -0.47247761487960815, -0.8961880207061768, -0.40284842252731323, 1.1638710498809814, -0.41782140731811523, -0.03311934694647789, 0.8727021813392639, 1.0321249961853027, -0.3061368465423584, -0.03205864876508713, 0.17998197674751282, 0.12598925828933716, 0.055384669452905655, 0.59173983335495, 0.7649584412574768, -0.6188323497772217, 0.180007666349411, -0.2757691740989685, -0.05176887661218643, 0.04719965159893036, -0.9513685703277588, -1.020042061805725, -0.9671509861946106, -0.5768588781356812, -0.5444304943084717, 0.031036194413900375, 1.3023136854171753, 0.5649920105934143, -0.9447575807571411, -0.006121595855802298, 0.0024099573493003845, 0.0746971070766449, -0.38237160444259644, -0.28628069162368774, 0.6448773145675659, -0.19591431319713593, -0.9306138753890991, 0.03511530160903931, -0.0958036407828331, -0.006377789191901684, -0.13129153847694397, -0.1762266308069229, -0.12063279002904892, -0.09948062896728516, 0.2884390950202942, 0.009998573921620846, -1.2373969554901123, -0.4243219792842865, -0.3412395715713501, -0.03199063986539841, 0.14006246626377106, 0.47246354818344116, -0.8766438961029053, 0.47459521889686584, 0.3086376488208771, 0.5947763323783875, 0.7148296236991882, -0.2421043962240219, 0.380984365940094, -0.8449110388755798, 0.5355072021484375, -0.02422608621418476, 0.6482377052307129, 0.28319087624549866, -0.2644471526145935, 0.7241688370704651, 0.6747022867202759, -0.008898335509002209, -0.8632640242576599, 0.062466926872730255, -0.992087721824646, -0.3188960552215576, 0.8801037073135376, -0.60914546251297, -0.2922235429286957, 0.29857319593429565, -0.04706922173500061, 0.5344350934028625, -0.3242129385471344, 0.7357978224754333, 0.702095091342926, -0.10208900272846222, -0.23642389476299286, -0.7403282523155212, 0.29027843475341797, 0.14465415477752686, -0.5292195081710815, -0.35514527559280396, 0.4276587963104248, 0.6328038573265076, 0.317472368478775, 0.2820894718170166, 0.007594894152134657, 0.17757248878479004, 0.09346473217010498, -0.017029544338583946, -0.38253745436668396, -0.27054041624069214, -0.36727675795555115, 0.29722610116004944, -0.27916646003723145, -0.35172799229621887 ]
DeepFloyd/IF-I-M-v1.0
DeepFloyd
"2023-06-02T19:04:48Z"
34,976
45
diffusers
[ "diffusers", "pytorch", "if", "text-to-image", "arxiv:2205.11487", "arxiv:2110.02861", "license:deepfloyd-if-license", "diffusers:IFPipeline", "region:us" ]
text-to-image
"2023-03-21T19:06:19Z"
--- 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-I-M-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:** I - **Num Parameters:** 400M - **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-M-v1.0](https://huggingface.co/DeepFloyd/IF-I-M-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-M-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-M-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-I-M-v1.0 is the smallest (from IF series) pixel-based diffusion cascade which uses T5-Encoder embeddings (hidden states) to generate 64px image. 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 using `Pillow==9.2.0` BICUBIC resampling with reducing_gap=None (it helps to avoid aliasing) and processed to tensor BxCxHxW - 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-I-M-v1.0 has 2_500_000 steps at resolution 64x64 on all datasets, OneCycleLR policy, SiLU activations, optimizer AdamW8bit + DeepSpeed-Zero1, fully frozen T5-Encoder ![](./pics/loss.jpg) **Hardware:** 12 x 8 x A100 GPUs **Optimizer:** [AdamW8bit](https://arxiv.org/abs/2110.02861) + [DeepSpeed ZeRO-1](https://www.deepspeed.ai/tutorials/zero/) **Batch:** 3072 **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: 8.86` ![](./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.5813385844230652, -0.8688092231750488, 0.25811317563056946, 0.3781278431415558, -0.23349247872829437, -0.0515570342540741, -0.25789275765419006, -0.4566552937030792, 0.08065546303987503, 0.2924596965312958, -0.5525335669517517, -0.5538865327835083, -0.6342107057571411, -0.19562207162380219, -0.2289440929889679, 1.0211790800094604, -0.16171154379844666, -0.19232870638370514, -0.09737556427717209, 0.021314499899744987, -0.19031843543052673, -0.11186069250106812, -0.9690118432044983, -0.34189218282699585, 0.27192720770835876, 0.2838020920753479, 0.5329442620277405, 0.35122808814048767, 0.3674398958683014, 0.3573148846626282, -0.23686683177947998, -0.03752462565898895, -0.5060138702392578, -0.3764234781265259, 0.12684018909931183, -0.23252929747104645, -0.4232189953327179, 0.02320893481373787, 0.6142836213111877, 0.15023472905158997, -0.026527492329478264, 0.0766325294971466, 0.10254542529582977, 0.6853441596031189, -0.6309565901756287, 0.2579208016395569, -0.28409871459007263, 0.19911152124404907, 0.0009097867296077311, 0.1854596883058548, -0.15283450484275818, -0.18015749752521515, 0.27610448002815247, -0.6385219693183899, 0.5050696134567261, -0.0830020159482956, 1.13131582736969, 0.2981661856174469, -0.12051817029714584, -0.11442992836236954, -0.35050034523010254, 0.6479817628860474, -0.7152377367019653, 0.29911476373672485, 0.13694941997528076, 0.055679190903902054, 0.06712190806865692, -0.8972858190536499, -0.6725685596466064, -0.13213969767093658, 0.003943446092307568, 0.33379343152046204, -0.16527916491031647, 0.12849484384059906, 0.31909632682800293, 0.6467432975769043, -0.4537811577320099, -0.07964903116226196, -0.506662905216217, -0.1858827769756317, 0.8302366733551025, -0.011727683246135712, 0.23775427043437958, -0.08553536236286163, -0.4996259808540344, -0.21395686268806458, -0.2404394894838333, 0.16387924551963806, 0.07236036658287048, 0.02705908566713333, -0.6542258858680725, 0.3390858769416809, -0.0963888093829155, 0.3520527184009552, 0.36817145347595215, -0.21073393523693085, 0.4126113951206207, -0.15999898314476013, -0.4388189911842346, 0.13516564667224884, 1.0958102941513062, 0.30703237652778625, 0.14566218852996826, 0.07512671500444412, -0.1280902922153473, 0.03549111634492874, 0.004329499788582325, -1.273983120918274, -0.5248783230781555, 0.37044385075569153, -0.32981789112091064, -0.47979605197906494, -0.15411703288555145, -0.8464983701705933, -0.1528649777173996, 0.18388251960277557, 0.5469207763671875, -0.7928568124771118, -0.4171513617038727, 0.25544309616088867, -0.21175521612167358, 0.22792671620845795, 0.37479567527770996, -0.7384981513023376, 0.33631831407546997, 0.33299627900123596, 1.0336451530456543, -0.08155754208564758, -0.17255403101444244, -0.1432851105928421, -0.2196112424135208, -0.275553435087204, 0.571289598941803, -0.2266387641429901, -0.37752994894981384, -0.15054874122142792, 0.10780428349971771, -0.1398092359304428, -0.37626364827156067, 0.651894748210907, -0.3609935939311981, 0.47769230604171753, -0.08757932484149933, -0.6584877371788025, -0.3587770462036133, 0.08341677486896515, -0.5751513242721558, 1.2262639999389648, 0.2643555998802185, -0.9646204710006714, 0.21153365075588226, -0.7175110578536987, -0.4242173731327057, -0.00900003407150507, 0.030178526416420937, -0.728489339351654, 0.024571547284722328, 0.31344175338745117, 0.6576522588729858, -0.19131501019001007, 0.01915780082345009, -0.2639924883842468, -0.410356342792511, 0.05029752478003502, -0.36120009422302246, 1.1031156778335571, 0.27729761600494385, -0.7226368188858032, -0.015571863390505314, -0.6558471322059631, -0.06019524112343788, 0.38256195187568665, -0.32745328545570374, 0.13810451328754425, -0.4087364077568054, 0.2929711937904358, 0.2846503257751465, 0.21219384670257568, -0.6078445911407471, 0.19442489743232727, -0.3960783779621124, 0.4867280125617981, 0.6427510976791382, -0.014948557130992413, 0.5053010582923889, -0.12260335683822632, 0.4716463088989258, 0.26757097244262695, 0.2184268683195114, -0.2690679430961609, -0.7757272124290466, -0.999699056148529, -0.3976105749607086, 0.1567346602678299, 0.5034682750701904, -0.7786071300506592, 0.4022790491580963, -0.004404526203870773, -0.5464308857917786, -0.6421886682510376, 0.02661161683499813, 0.5464233160018921, 0.6357585787773132, 0.42632463574409485, -0.23279723525047302, -0.2403825968503952, -0.7986210584640503, 0.14832431077957153, 0.1145412027835846, 0.13263435661792755, 0.3053869307041168, 0.660275399684906, -0.21149687469005585, 0.6157597303390503, -0.5663439631462097, -0.4439390301704407, -0.12935596704483032, 0.016348129138350487, 0.3523309528827667, 0.6183677911758423, 0.700062096118927, -0.6712465882301331, -0.6006583571434021, -0.05279448255896568, -0.854250967502594, 0.1743338406085968, -0.1331431120634079, -0.06925147026777267, 0.41544100642204285, 0.40751659870147705, -0.9301225543022156, 0.5810995697975159, 0.54751056432724, -0.3999474048614502, 0.5510633587837219, -0.3237941265106201, 0.10355199873447418, -0.9603514075279236, 0.1462252289056778, 0.3178401589393616, -0.2029007524251938, -0.35113441944122314, 0.1349961906671524, 0.08771844208240509, -0.1903643161058426, -0.622516393661499, 0.7885807156562805, -0.5804576277732849, 0.28141075372695923, -0.16210784018039703, 0.033009856939315796, 0.16937392950057983, 0.6339924335479736, 0.09985628724098206, 0.6742786765098572, 0.8754957914352417, -0.7039080858230591, 0.21793566644191742, 0.11140181124210358, -0.40311044454574585, 0.4140462279319763, -0.6343806982040405, 0.17884761095046997, -0.1948845535516739, 0.26523730158805847, -1.0348327159881592, -0.143531933426857, 0.5065690875053406, -0.45776960253715515, 0.5690448880195618, -0.05087250843644142, -0.40137434005737305, -0.5564092993736267, -0.32654303312301636, 0.3372573256492615, 0.79859459400177, -0.5212705135345459, 0.5373578667640686, 0.16827289760112762, 0.23972155153751373, -0.6558536887168884, -0.7394318580627441, -0.10018119215965271, -0.19633470475673676, -0.7628429532051086, 0.6592131853103638, -0.11460156738758087, 0.001091403653845191, 0.08713163435459137, 0.029323114082217216, 0.06668169796466827, 0.0037445060443133116, 0.2795892655849457, 0.1414167582988739, -0.28102296590805054, -0.17387360334396362, 0.18780209124088287, -0.2192087322473526, 0.05988967791199684, -0.36452874541282654, 0.5258084535598755, -0.2587829530239105, 0.06012510880827904, -0.9333803653717041, 0.06192295253276825, 0.3458927273750305, 0.07653680443763733, 0.7877689003944397, 1.1674087047576904, -0.46731695532798767, -0.09231772273778915, -0.6094411015510559, -0.13691765069961548, -0.570692241191864, 0.2284172773361206, -0.4050186574459076, -0.7444546818733215, 0.4199829697608948, -0.03730505704879761, 0.17499400675296783, 0.6517429947853088, 0.5225743055343628, -0.24082309007644653, 0.8713521957397461, 0.6444899439811707, -0.16886910796165466, 0.49880948662757874, -0.9425052404403687, 0.07946638017892838, -0.712092399597168, -0.30286896228790283, -0.09594272822141647, -0.4208748936653137, -0.440085768699646, -0.6497731804847717, 0.29152587056159973, 0.34338104724884033, -0.39414793252944946, 0.24400606751441956, -0.7255253195762634, 0.3368437886238098, 0.3795778155326843, 0.28114837408065796, 0.012687827460467815, 0.1429137885570526, -0.17061100900173187, 0.012990005314350128, -0.7301459312438965, -0.2369604855775833, 0.8111786842346191, 0.39623966813087463, 0.5546692609786987, -0.28394898772239685, 0.6878854632377625, 0.1515239030122757, 0.39962705969810486, -0.4820346534252167, 0.5430684089660645, -0.02703922986984253, -0.6614527106285095, 0.01564868539571762, -0.3074207603931427, -0.7650337219238281, 0.18734385073184967, -0.3219331204891205, -0.7679973840713501, 0.2470172494649887, 0.23577584326267242, -0.3482964038848877, 0.5374204516410828, -0.8069590330123901, 1.0027766227722168, -0.262987345457077, -0.6584610939025879, -0.14683805406093597, -0.6572238802909851, 0.4300021827220917, 0.2366531640291214, -0.04385566711425781, -0.16362130641937256, -0.07193022966384888, 0.7258055210113525, -0.46745118498802185, 0.703770637512207, -0.4123396873474121, -0.005700188688933849, 0.5309551954269409, -0.09962772578001022, 0.2860786020755768, 0.094158835709095, -0.27587762475013733, 0.49922630190849304, -0.10347454994916916, -0.546347439289093, -0.3776777982711792, 0.8208204507827759, -0.8678320646286011, -0.368056058883667, -0.44584617018699646, -0.2583152651786804, 0.21018250286579132, 0.2719622254371643, 0.7345000505447388, 0.27095597982406616, -0.20091678202152252, -0.012033294886350632, 0.819592297077179, -0.5123820304870605, 0.7094094753265381, -0.06228407099843025, -0.3121121823787689, -0.5766165256500244, 0.9988569617271423, -0.12422367185354233, 0.14259251952171326, 0.3670983910560608, 0.27751871943473816, -0.3030858635902405, -0.37064045667648315, -0.6548488140106201, 0.3934555947780609, -0.5324072241783142, -0.3365047872066498, -0.879040002822876, -0.4071026146411896, -0.43703240156173706, -0.29012513160705566, -0.6137067079544067, -0.25078630447387695, -0.7024534344673157, 0.0009059784933924675, 0.6164447069168091, 0.42688655853271484, -0.05439615622162819, 0.493450790643692, -0.3926723599433899, 0.3395087718963623, 0.058957621455192566, 0.2625018060207367, 0.17945095896720886, -0.49606624245643616, -0.23527808487415314, 0.029844433069229126, -0.5117080807685852, -0.5908263325691223, 0.5545312166213989, 0.30220767855644226, 0.22072146832942963, 0.7205857634544373, -0.14955729246139526, 0.8076369166374207, -0.2700102627277374, 0.7182172536849976, 0.3561592102050781, -0.8570575714111328, 0.43499860167503357, -0.2318253517150879, 0.30605340003967285, 0.3789128363132477, 0.5770052075386047, -0.23116759955883026, -0.12038159370422363, -0.8420504331588745, -0.8029136061668396, 0.7734959721565247, 0.45203736424446106, 0.1867097020149231, 0.13263873755931854, 0.6724663376808167, -0.09899312257766724, 0.1712731271982193, -0.7384073734283447, -0.4721779227256775, -0.26803168654441833, -0.12147852033376694, -0.11537335067987442, -0.08046283572912216, 0.16064655780792236, -0.6350127458572388, 0.8101763129234314, -0.0033662740606814623, 0.6815397143363953, 0.4140687882900238, -0.015599952079355717, 0.009967213496565819, -0.33030304312705994, 0.3489125370979309, 0.29845860600471497, -0.2693259119987488, -0.12472075968980789, 0.18075573444366455, -0.5667771697044373, -0.016953926533460617, 0.22799040377140045, -0.23731482028961182, -0.020096510648727417, 0.20800626277923584, 0.9889549016952515, 0.11831080913543701, -0.3979928195476532, 0.5721437335014343, -0.18828216195106506, -0.2911471724510193, -0.39101165533065796, 0.20890481770038605, 0.27286824584007263, 0.38720330595970154, 0.20580045878887177, 0.18394747376441956, 0.0890546441078186, -0.3666327893733978, 0.18322493135929108, 0.43285492062568665, -0.36676469445228577, -0.29090172052383423, 0.9767172932624817, 0.10824092477560043, -0.36134472489356995, 0.7393258213996887, -0.3654714524745941, -0.5310449600219727, 0.7384793162345886, 0.5050666928291321, 0.9534496665000916, -0.14310798048973083, 0.26319023966789246, 0.6528196334838867, 0.24087999761104584, 0.006703097373247147, 0.28470379114151, -0.09882743656635284, -0.7090643644332886, -0.24715401232242584, -0.7020719647407532, -0.05709625408053398, 0.1599142998456955, -0.37569043040275574, 0.46958795189857483, -0.7952200174331665, -0.17191638052463531, 0.06507617980241776, 0.2610494792461395, -0.945780873298645, 0.42279136180877686, 0.30430012941360474, 1.005023717880249, -0.6637876629829407, 0.8048456907272339, 0.4195297658443451, -0.4972435534000397, -0.6076017618179321, -0.08911491185426712, -0.1548551470041275, -0.8649135231971741, 0.38502001762390137, 0.5142059922218323, -0.08081864565610886, 0.14895735681056976, -0.7414973974227905, -0.7576264142990112, 1.1743520498275757, 0.4175304174423218, -0.46017104387283325, -0.019717097282409668, -0.16669423878192902, 0.5139656066894531, -0.39685285091400146, 0.39687034487724304, 0.5075103044509888, 0.337783545255661, 0.20026114583015442, -0.6062309741973877, 0.20640990138053894, -0.37653377652168274, 0.012517470866441727, 0.08711407333612442, -0.9541735053062439, 0.9649150371551514, -0.5822300314903259, -0.3030196726322174, 0.1612568497657776, 0.8686604499816895, 0.22440491616725922, 0.4142887592315674, 0.33445343375205994, 0.9709223508834839, 0.6652222871780396, -0.026439134031534195, 1.272273063659668, -0.30280354619026184, 0.5485577583312988, 0.6450245380401611, 0.094956174492836, 0.5929259061813354, 0.19249539077281952, -0.1819983571767807, 0.570048451423645, 0.8214220404624939, -0.02441473677754402, 0.5091560482978821, 0.010515809990465641, -0.3575844466686249, -0.12429386377334595, 0.1883307248353958, -0.48138371109962463, 0.19036690890789032, 0.444027841091156, -0.4821195602416992, -0.03676314279437065, 0.1458897590637207, 0.2755870521068573, -0.4201430678367615, -0.13525071740150452, 0.6151365041732788, 0.18703614175319672, -0.5987612009048462, 0.8174343705177307, 0.10652656853199005, 1.0004353523254395, -0.37680214643478394, -0.0031044697389006615, -0.24933378398418427, 0.41317903995513916, -0.36694708466529846, -0.7979592680931091, 0.05868120491504669, -0.19114573299884796, 0.021375086158514023, -0.1884264349937439, 0.7658989429473877, -0.3162787854671478, -0.7609764337539673, 0.41906869411468506, 0.08331697434186935, 0.3395935893058777, -0.29492783546447754, -1.1898117065429688, 0.2515812814235687, 0.07393066585063934, -0.4494422972202301, 0.31822478771209717, 0.33552077412605286, 0.2442091852426529, 0.6824378371238708, 0.5612413287162781, -0.15982598066329956, 0.14265087246894836, -0.16929835081100464, 0.9467252492904663, -0.5806698799133301, -0.2642500698566437, -0.888563334941864, 0.7055843472480774, -0.21189509332180023, -0.51984041929245, 0.6591813564300537, 0.6634899973869324, 0.8695732355117798, -0.043353624641895294, 0.5898897647857666, -0.27976828813552856, -0.08217184990644455, -0.44582226872444153, 0.8034999966621399, -0.8173566460609436, 0.034846801310777664, -0.600685715675354, -0.8257513046264648, -0.13056223094463348, 0.8975570797920227, -0.1337023377418518, 0.2732623517513275, 0.5674212574958801, 0.7761051654815674, -0.30503320693969727, 0.06750980764627457, 0.10677217692136765, 0.2324344366788864, 0.2020057737827301, 0.6277860999107361, 0.41350799798965454, -0.9507420659065247, 0.39648008346557617, -0.7962324619293213, -0.31662237644195557, -0.108015276491642, -0.8762685656547546, -0.8590478897094727, -0.5874917507171631, -0.7568542957305908, -0.6574790477752686, -0.08395010977983475, 0.5851932168006897, 0.8289657831192017, -0.6086537837982178, -0.14862476289272308, -0.24107222259044647, 0.08084405213594437, -0.23894158005714417, -0.3259241282939911, 0.519798219203949, -0.12090756744146347, -0.8793229460716248, 0.042388517409563065, 0.2591661810874939, 0.02302560582756996, -0.3097590208053589, -0.15787915885448456, -0.3106076717376709, -0.2031356543302536, 0.69032222032547, 0.28769537806510925, -0.5163261890411377, -0.011652693152427673, -0.1634499728679657, 0.0470438227057457, 0.2856021225452423, 0.5327070355415344, -0.8229579925537109, 0.375430166721344, 0.3984772861003876, 0.47562429308891296, 1.1683837175369263, -0.20844589173793793, 0.14705221354961395, -0.5450964570045471, 0.37479519844055176, 0.18258129060268402, 0.3540477454662323, 0.3782600164413452, -0.5352501273155212, 0.4403936564922333, 0.41610056161880493, -0.5686321258544922, -0.599337637424469, -0.15498115122318268, -1.1842825412750244, -0.3093544542789459, 1.0907667875289917, -0.18513157963752747, -0.5049289464950562, 0.23360496759414673, -0.328219473361969, 0.2805912494659424, -0.5118979811668396, 0.6946245431900024, 0.36581695079803467, -0.2541597783565521, -0.5377441048622131, -0.4549895226955414, 0.5877617597579956, 0.197304368019104, -0.6342576146125793, -0.3218082785606384, 0.36516648530960083, 0.6527569890022278, 0.231615349650383, 0.8984907269477844, -0.042539674788713455, 0.1283218413591385, 0.14238764345645905, 0.20629341900348663, 0.15742306411266327, -0.13466817140579224, -0.3112882673740387, 0.11349212378263474, -0.4250960350036621, -0.23447713255882263 ]
cointegrated/LaBSE-en-ru
cointegrated
"2023-11-04T11:49:30Z"
34,970
26
transformers
[ "transformers", "pytorch", "tf", "safetensors", "bert", "pretraining", "feature-extraction", "embeddings", "sentence-similarity", "ru", "en", "arxiv:2007.01852", "endpoints_compatible", "has_space", "region:us" ]
feature-extraction
"2022-03-02T23:29:05Z"
--- language: ["ru", "en"] tags: - feature-extraction - embeddings - sentence-similarity --- # LaBSE for English and Russian This is a truncated version of [sentence-transformers/LaBSE](https://huggingface.co/sentence-transformers/LaBSE), which is, in turn, a port of [LaBSE](https://tfhub.dev/google/LaBSE/1) by Google. The current model has only English and Russian tokens left in the vocabulary. Thus, the vocabulary is 10% of the original, and number of parameters in the whole model is 27% of the original, without any loss in the quality of English and Russian embeddings. To get the sentence embeddings, you can use the following code: ```python import torch from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("cointegrated/LaBSE-en-ru") model = AutoModel.from_pretrained("cointegrated/LaBSE-en-ru") sentences = ["Hello World", "Привет Мир"] encoded_input = tokenizer(sentences, padding=True, truncation=True, max_length=64, return_tensors='pt') with torch.no_grad(): model_output = model(**encoded_input) embeddings = model_output.pooler_output embeddings = torch.nn.functional.normalize(embeddings) print(embeddings) ``` The model has been truncated in [this notebook](https://colab.research.google.com/drive/1dnPRn0-ugj3vZgSpyCC9sgslM2SuSfHy?usp=sharing). You can adapt it for other languages (like [EIStakovskii/LaBSE-fr-de](https://huggingface.co/EIStakovskii/LaBSE-fr-de)), models or datasets. ## Reference: Fangxiaoyu Feng, Yinfei Yang, Daniel Cer, Narveen Ari, Wei Wang. [Language-agnostic BERT Sentence Embedding](https://arxiv.org/abs/2007.01852). July 2020 License: [https://tfhub.dev/google/LaBSE/1](https://tfhub.dev/google/LaBSE/1)
[ -0.09127892553806305, -0.7474589347839355, 0.33924391865730286, 0.23262996971607208, -0.230681911110878, 0.03734799847006798, -0.11942926794290543, -0.07079474627971649, 0.37757861614227295, 0.18948496878147125, -0.49828779697418213, -0.48615628480911255, -0.5512911081314087, 0.09423273801803589, -0.46606579422950745, 1.0995374917984009, -0.14877641201019287, 0.16811084747314453, -0.10754819214344025, 0.2032068967819214, -0.29365673661231995, -0.20726759731769562, -0.4215989410877228, -0.352054238319397, 0.20090238749980927, 0.370855450630188, 0.5567967295646667, 0.4199628531932831, 0.194722518324852, 0.31761252880096436, 0.11196520179510117, -0.24506990611553192, -0.38121297955513, -0.27396294474601746, 0.16810211539268494, -0.2042989283800125, -0.2621177136898041, 0.016350939869880676, 0.4223138988018036, 0.4929213523864746, -0.054461345076560974, 0.021506182849407196, -0.13463503122329712, 0.193458691239357, -0.3155032694339752, 0.22439347207546234, -0.3289700448513031, 0.10695327073335648, 0.241024449467659, 0.21859654784202576, -0.6220033764839172, -0.058701083064079285, 0.3428608477115631, -0.5908297300338745, 0.3676929175853729, 0.10956227034330368, 1.3996148109436035, -0.036395199596881866, -0.3140288293361664, -0.3543541431427002, -0.40388333797454834, 0.8087933659553528, -0.6957035660743713, 0.4316938519477844, 0.16750793159008026, 0.06074528768658638, -0.1822715550661087, -1.2488311529159546, -0.4287015199661255, -0.41187694668769836, -0.2257048338651657, 0.14647935330867767, -0.23679682612419128, -0.06621503084897995, 0.07789590954780579, 0.3206035792827606, -0.8191549777984619, -0.10364679992198944, -0.6731153130531311, -0.5144875049591064, 0.5176035165786743, -0.0717436745762825, 0.5209071636199951, -0.4895957112312317, -0.3502335548400879, -0.39747634530067444, -0.4839143455028534, -0.18804419040679932, 0.382121205329895, -0.049307554960250854, -0.3445759117603302, 0.7011784315109253, -0.1969209611415863, 0.48284512758255005, -0.008678068406879902, 0.3436836302280426, 0.5078828930854797, -0.2819562256336212, -0.30482515692710876, -0.22631967067718506, 1.1425142288208008, 0.10309397429227829, 0.38075560331344604, -0.4897327721118927, -0.02180887944996357, -0.06834253668785095, 0.22429586946964264, -0.9851220846176147, -0.48864391446113586, 0.22179287672042847, -0.18854327499866486, -0.20406489074230194, 0.14097324013710022, -0.6023473143577576, 0.06548748910427094, 0.22501489520072937, 0.7778355479240417, -0.7514505386352539, 0.043946560472249985, 0.414896696805954, -0.2984567880630493, 0.21451227366924286, -0.31481850147247314, -0.9436643123626709, 0.44320738315582275, 0.3519444763660431, 0.9537853002548218, 0.22939042747020721, -0.44403964281082153, -0.52083420753479, -0.21811965107917786, -0.002180920448154211, 0.41887518763542175, -0.15832899510860443, -0.5853301286697388, 0.16741937398910522, 0.3557184338569641, -0.09412124752998352, -0.17159241437911987, 0.533107340335846, -0.4779565930366516, 0.6106861233711243, 0.09771821647882462, -0.8075386881828308, 0.05094708502292633, 0.18526491522789001, -0.4912174940109253, 1.091768741607666, 0.14138300716876984, -0.6868965029716492, 0.15350212156772614, -0.8297160267829895, -0.36212867498397827, 0.0297534242272377, -0.1388750970363617, -0.5287567973136902, -0.024542100727558136, 0.38083329796791077, 0.5048292875289917, 0.04369773715734482, 0.37681543827056885, -0.1758430004119873, -0.20581237971782684, 0.37655743956565857, -0.07515434175729752, 1.1429579257965088, 0.20313599705696106, -0.20262190699577332, 0.3567942678928375, -0.6910631656646729, -0.06389286369085312, 0.18060609698295593, -0.007106268312782049, 0.0689299926161766, -0.17516136169433594, 0.6420559287071228, 0.20497733354568481, 0.2616000771522522, -1.0495103597640991, 0.15360768139362335, -0.7576889395713806, 1.0291475057601929, 0.5095500946044922, -0.04671331122517586, 0.5811328291893005, -0.27173760533332825, 0.4726090729236603, -0.06794397532939911, 0.32290175557136536, 0.11400912702083588, -0.4776519238948822, -0.8426956534385681, -0.33355972170829773, 0.5387631058692932, 0.6422275900840759, -0.7045087218284607, 0.7166643738746643, -0.4031209349632263, -0.4928908944129944, -0.7383072376251221, -0.016558397561311722, 0.1110609620809555, 0.33980679512023926, 0.37701481580734253, -0.00699916947633028, -0.6315156817436218, -1.1833442449569702, -0.0401066429913044, 0.02719062939286232, -0.1935853213071823, -0.11942847818136215, 1.0569502115249634, -0.14648792147636414, 0.9641784429550171, -0.6658027172088623, -0.1079658791422844, -0.1347551941871643, 0.22750726342201233, 0.27994462847709656, 0.659459114074707, 0.4126095771789551, -0.731195867061615, -0.7032907009124756, -0.32803982496261597, -0.49009522795677185, 0.20928563177585602, -0.1044120118021965, -0.2013913244009018, 0.12937632203102112, 0.5871086716651917, -0.8279783725738525, 0.3060608208179474, 0.41500166058540344, -0.6857277750968933, 0.5681780576705933, -0.3434710204601288, -0.02934587560594082, -1.5163730382919312, 0.1457051932811737, -0.07460518926382065, -0.3588202893733978, -0.5321102738380432, 0.08487717807292938, 0.27880847454071045, -0.062208883464336395, -0.6074179410934448, 0.8399913311004639, -0.5036328434944153, 0.2154686450958252, -0.10511539876461029, 0.4558609127998352, 0.11296679079532623, 0.19166332483291626, -0.08540550619363785, 0.8137879371643066, 0.7455693483352661, -0.2783626616001129, 0.5065376162528992, 0.567359209060669, -0.6328543424606323, -0.06837014853954315, -0.9480413198471069, 0.07353947311639786, 0.20297816395759583, 0.075238436460495, -0.9172072410583496, -0.299697607755661, 0.15780755877494812, -0.9418218731880188, 0.3005085289478302, 0.17135971784591675, -0.9762402176856995, -0.4066017270088196, -0.4152325689792633, 0.20252089202404022, 0.9848639369010925, -0.49879345297813416, 0.4343723952770233, 0.09580191969871521, 0.08623398095369339, -0.8401378989219666, -0.9232450127601624, 0.15643958747386932, -0.19188638031482697, -0.875738799571991, 0.5933824777603149, -0.25562989711761475, 0.18114826083183289, 0.26377999782562256, 0.30838438868522644, -0.10072225332260132, 0.0022059467155486345, -0.011038052849471569, 0.6068121790885925, -0.04582587629556656, 0.29724353551864624, -0.06718974560499191, 0.12800319492816925, 0.1505270153284073, -0.1971006691455841, 0.8630571365356445, -0.3293156027793884, 0.11566685140132904, -0.29483896493911743, 0.026089705526828766, 0.40845248103141785, 0.0977819412946701, 1.0150115489959717, 1.1406387090682983, -0.5201026201248169, -0.06121634691953659, -0.4715781509876251, -0.4844411313533783, -0.5401503443717957, 0.6507146954536438, -0.43880268931388855, -0.932237982749939, 0.7567484378814697, 0.31172123551368713, -0.08883259445428848, 0.7176339626312256, 0.4906871020793915, 0.0006167949177324772, 0.8697076439857483, 0.7382906675338745, -0.07434187829494476, 0.32581794261932373, -0.7513914704322815, 0.3855105936527252, -1.0953621864318848, -0.2626638412475586, -0.2712155878543854, 0.018886376172304153, -0.7655764222145081, -0.24206288158893585, 0.24616515636444092, -0.062107738107442856, -0.2779079079627991, 0.43412789702415466, -0.47565001249313354, 0.3670593798160553, 0.4648447632789612, 0.0662042647600174, -0.09740555286407471, 0.12292560935020447, -0.2505027651786804, -0.08183003962039948, -0.7828316688537598, -0.6102657914161682, 0.9848061203956604, 0.38562583923339844, 0.45915472507476807, -0.019869059324264526, 0.73287433385849, 0.14491580426692963, 0.15417960286140442, -0.946742057800293, 0.49787935614585876, -0.23825079202651978, -0.8893107175827026, -0.1659012883901596, -0.3553542196750641, -1.1236096620559692, 0.030387038365006447, -0.20724792778491974, -1.0656795501708984, -0.04739442467689514, -0.34242281317710876, -0.2596496641635895, 0.2333410084247589, -0.6940014362335205, 1.2120050191879272, 0.12908408045768738, -0.33114978671073914, -0.20246456563472748, -0.5690547227859497, 0.1788223832845688, 0.22096958756446838, 0.25198009610176086, 0.021627401933073997, 0.04888344928622246, 1.0422947406768799, -0.46262070536613464, 0.8282397389411926, 0.1384364664554596, 0.23234066367149353, 0.18805420398712158, -0.18172936141490936, 0.26878491044044495, 0.3231152296066284, -0.008318919688463211, 0.0008310885750688612, 0.15058287978172302, -0.6627504825592041, -0.3118251860141754, 0.9359259605407715, -0.9842844605445862, -0.4690607190132141, -0.7039822936058044, -0.7690128087997437, -0.028925588354468346, 0.41677096486091614, 0.6067697405815125, 0.46446356177330017, -0.531972348690033, 0.2608972191810608, 0.3785155415534973, -0.458284854888916, 0.5326033234596252, 0.3890238106250763, -0.27656763792037964, -0.4159000813961029, 0.6573290824890137, -0.08251567929983139, 0.1689434051513672, 0.25418323278427124, 0.21224728226661682, -0.4520919919013977, -0.19874727725982666, -0.5007317662239075, 0.6533111929893494, -0.8141754865646362, -0.009103567339479923, -0.8226469159126282, -0.39603865146636963, -0.8217693567276001, -0.40296241641044617, -0.22157223522663116, -0.5449085235595703, -0.5933817028999329, -0.3008024990558624, 0.5041542649269104, 0.5079908967018127, -0.15535594522953033, 0.48307812213897705, -0.6817746758460999, 0.19440113008022308, 0.03210005909204483, 0.1861175298690796, -0.31372010707855225, -0.7802379727363586, -0.4420783817768097, -0.020520303398370743, -0.286573201417923, -0.996115505695343, 0.704747200012207, 0.12023405730724335, 0.35459738969802856, -0.0164068341255188, -0.04952484741806984, 0.386223167181015, -0.5432749390602112, 1.0145646333694458, 0.2543015480041504, -1.0858820676803589, 0.34786099195480347, -0.09298992902040482, 0.4038911461830139, 0.28654447197914124, 0.2569766938686371, -0.6116307973861694, -0.450839102268219, -0.8948855996131897, -1.0276179313659668, 0.6411872506141663, 0.45746883749961853, 0.5620355606079102, -0.29075729846954346, 0.37477514147758484, -0.007844933308660984, -0.021410223096609116, -0.9881855845451355, -0.40038636326789856, -0.32902687788009644, -0.5498386025428772, -0.07949787378311157, -0.1583695262670517, -0.032650694251060486, -0.32840695977211, 0.9976167678833008, 0.13552318513393402, 0.36147576570510864, 0.3788318336009979, -0.2970851957798004, 0.2336839735507965, 0.3655429780483246, 0.421962171792984, 0.349413126707077, -0.49320533871650696, -0.09733753651380539, 0.1901552528142929, -0.5877465605735779, 0.031811486929655075, 0.3634529709815979, -0.2972202003002167, 0.2217084914445877, 0.22639451920986176, 0.8374447822570801, -0.025423288345336914, -0.7278765439987183, 0.5814108848571777, -0.09143224358558655, -0.38657549023628235, -0.7052093148231506, -0.1930343359708786, 0.18234065175056458, 0.11912611871957779, 0.23262527585029602, -0.2378932386636734, 0.3690304756164551, -0.636818528175354, 0.2711344063282013, 0.2733352780342102, -0.4034959375858307, -0.40165767073631287, 0.6938349008560181, 0.05111648887395859, -0.2676425278186798, 0.9617873430252075, -0.5114374756813049, -0.5181540846824646, 0.8702526688575745, 0.6439590454101562, 1.0993605852127075, 0.07196075469255447, 0.5081630349159241, 0.7047526240348816, 0.5242918729782104, -0.02910064347088337, 0.34289899468421936, 0.4497484862804413, -0.6017208695411682, -0.5785074234008789, -0.6084603667259216, 0.03695475682616234, 0.28530168533325195, -0.6635540127754211, 0.5239213109016418, -0.16294091939926147, -0.18257726728916168, -0.05107748508453369, 0.022896524518728256, -0.826031506061554, 0.21682004630565643, -0.09416849166154861, 0.9146145582199097, -1.0524564981460571, 1.043047308921814, 0.8887970447540283, -0.506011426448822, -0.5925704836845398, -0.2607145607471466, -0.42529284954071045, -0.8283647298812866, 0.7850684523582458, 0.15221035480499268, 0.10292308777570724, 0.2341126650571823, -0.45547953248023987, -0.9865611791610718, 1.039267897605896, 0.19358481466770172, -0.236732617020607, -0.01295128371566534, 0.015333432704210281, 0.5898203253746033, -0.40376824140548706, 0.30160772800445557, 0.3959873616695404, 0.3382081389427185, -0.06669746339321136, -0.9665074348449707, 0.16167540848255157, -0.49966487288475037, -0.07613208889961243, 0.09676460921764374, -0.5717806816101074, 0.8669437766075134, -0.18136818706989288, -0.2744281589984894, 0.23439498245716095, 0.7707901000976562, -0.026141367852687836, -0.016083169728517532, 0.3328808546066284, 0.48026272654533386, 0.4330652952194214, -0.09275468438863754, 1.0275828838348389, -0.3342683017253876, 0.7682661414146423, 0.8067376017570496, 0.1902950555086136, 0.8198450803756714, 0.6061373353004456, -0.1340549886226654, 0.7883988618850708, 0.6539905071258545, -0.39345747232437134, 0.6479284763336182, 0.30372512340545654, 0.03500767797231674, 0.02149483561515808, 0.05705413967370987, -0.16763855516910553, 0.28958621621131897, 0.35522571206092834, -0.41049709916114807, 0.025734160095453262, 0.2466600388288498, 0.21702347695827484, -0.13871102035045624, 0.3239164650440216, 0.3132110834121704, 0.08848265558481216, -0.4416343569755554, 0.5869240760803223, 0.12466166913509369, 0.739244282245636, -0.5141584873199463, 0.2243981808423996, -0.02095923386514187, 0.08734286576509476, -0.04188384488224983, -0.7275911569595337, 0.3383922576904297, 0.056750766932964325, -0.06321261078119278, -0.07780382037162781, 0.41156643629074097, -0.5561292171478271, -0.7389324307441711, 0.3005848824977875, 0.4891417324542999, 0.26643988490104675, 0.378263920545578, -0.7951090931892395, -0.1425558626651764, 0.011846254579722881, -0.3748480975627899, 0.12841054797172546, 0.027516288682818413, 0.3614543378353119, 0.5470874905586243, 0.20157556235790253, -0.05942133069038391, 0.21321417391300201, 0.02766047790646553, 0.5678684115409851, -0.5487974882125854, -0.49659624695777893, -0.9000574946403503, 0.6521685123443604, -0.27909979224205017, -0.3480082154273987, 0.7487038373947144, 0.8421868085861206, 0.9665364027023315, -0.48569008708000183, 0.7557899951934814, -0.38298916816711426, -0.024387041106820107, -0.601271390914917, 0.7562475800514221, -0.7480047941207886, -0.09455696493387222, 0.15778160095214844, -0.674984335899353, -0.21576637029647827, 0.8396973609924316, -0.28815290331840515, 0.042806413024663925, 1.089210867881775, 0.768507719039917, -0.2753448486328125, -0.2463679015636444, 0.24797695875167847, 0.4787696301937103, 0.48174405097961426, 0.5291733145713806, 0.473853200674057, -0.9438342452049255, 0.7975151538848877, -0.5768733620643616, 0.08248073607683182, -0.18472634255886078, -0.7978307008743286, -1.024904489517212, -0.7598549723625183, -0.6821303963661194, -0.5745412111282349, -0.1583034098148346, 0.8763797283172607, 0.7247377634048462, -0.7811195850372314, -0.33498144149780273, -0.22643771767616272, -0.24358046054840088, 0.038107987493276596, -0.3167935907840729, 0.7848517298698425, -0.4876275062561035, -0.9469799995422363, 0.33714956045150757, -0.1048101857304573, 0.14592061936855316, -0.23485800623893738, 0.006757317576557398, -0.5010302066802979, 0.13573218882083893, 0.4240572154521942, 0.056626081466674805, -0.7893897891044617, -0.40298891067504883, 0.5333557724952698, -0.22510796785354614, -0.03978728502988815, 0.34405025839805603, -0.4843422770500183, 0.5779465436935425, 0.5197865962982178, 0.3560980260372162, 0.961544394493103, -0.5441573858261108, 0.4808986186981201, -0.9201043248176575, 0.27539247274398804, 0.20891399681568146, 0.7177608013153076, 0.5494836568832397, -0.2676949203014374, 0.47454074025154114, 0.106330506503582, -0.6658363938331604, -0.7578525543212891, 0.19620764255523682, -1.1521830558776855, -0.4561137855052948, 1.1851706504821777, -0.25491368770599365, -0.4384443759918213, 0.04083890840411186, -0.18687155842781067, 0.7287276387214661, -0.3670296370983124, 1.130877137184143, 1.216970682144165, 0.14592643082141876, -0.05215878412127495, -0.7569299936294556, 0.3137143850326538, 0.7617444396018982, -0.5943928956985474, -0.2861775755882263, 0.35217389464378357, 0.5218068361282349, 0.30848461389541626, 0.43559929728507996, -0.049619078636169434, 0.26443788409233093, 0.08193755894899368, 0.33863192796707153, 0.017878536134958267, 0.10811684280633926, -0.1614406555891037, -0.12030423432588577, -0.039389338344335556, -0.429765522480011 ]
rinna/japanese-roberta-base
rinna
"2023-03-22T04:11:46Z"
34,963
29
transformers
[ "transformers", "pytorch", "tf", "safetensors", "roberta", "fill-mask", "ja", "japanese", "masked-lm", "nlp", "dataset:cc100", "dataset:wikipedia", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ja thumbnail: https://github.com/rinnakk/japanese-gpt2/blob/master/rinna.png tags: - ja - japanese - roberta - masked-lm - nlp license: mit datasets: - cc100 - wikipedia mask_token: "[MASK]" widget: - text: "[CLS]4年に1度[MASK]は開かれる。" --- # japanese-roberta-base ![rinna-icon](./rinna.png) This repository provides a base-sized Japanese RoBERTa model. The model was trained using code from Github repository [rinnakk/japanese-pretrained-models](https://github.com/rinnakk/japanese-pretrained-models) by [rinna Co., Ltd.](https://corp.rinna.co.jp/) # How to load the model ~~~~ from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("rinna/japanese-roberta-base", use_fast=False) tokenizer.do_lower_case = True # due to some bug of tokenizer config loading model = AutoModelForMaskedLM.from_pretrained("rinna/japanese-roberta-base") ~~~~ # How to use the model for masked token prediction ## Note 1: Use `[CLS]` To predict a masked token, be sure to add a `[CLS]` token before the sentence for the model to correctly encode it, as it is used during the model training. ## Note 2: Use `[MASK]` after tokenization A) Directly typing `[MASK]` in an input string and B) replacing a token with `[MASK]` after tokenization will yield different token sequences, and thus different prediction results. It is more appropriate to use `[MASK]` after tokenization (as it is consistent with how the model was pretrained). However, the Huggingface Inference API only supports typing `[MASK]` in the input string and produces less robust predictions. ## Note 3: Provide `position_ids` as an argument explicitly When `position_ids` are not provided for a `Roberta*` model, Huggingface's `transformers` will automatically construct it but start from `padding_idx` instead of `0` (see [issue](https://github.com/rinnakk/japanese-pretrained-models/issues/3) and function `create_position_ids_from_input_ids()` in Huggingface's [implementation](https://github.com/huggingface/transformers/blob/master/src/transformers/models/roberta/modeling_roberta.py)), which unfortunately does not work as expected with `rinna/japanese-roberta-base` since the `padding_idx` of the corresponding tokenizer is not `0`. So please be sure to constrcut the `position_ids` by yourself and make it start from position id `0`. ## Example Here is an example by to illustrate how our model works as a masked language model. Notice the difference between running the following code example and running the Huggingface Inference API. ~~~~ # original text text = "4年に1度オリンピックは開かれる。" # prepend [CLS] text = "[CLS]" + text # tokenize tokens = tokenizer.tokenize(text) print(tokens) # output: ['[CLS]', '▁4', '年に', '1', '度', 'オリンピック', 'は', '開かれる', '。'] # mask a token masked_idx = 5 tokens[masked_idx] = tokenizer.mask_token print(tokens) # output: ['[CLS]', '▁4', '年に', '1', '度', '[MASK]', 'は', '開かれる', '。'] # convert to ids token_ids = tokenizer.convert_tokens_to_ids(tokens) print(token_ids) # output: [4, 1602, 44, 24, 368, 6, 11, 21583, 8] # convert to tensor import torch token_tensor = torch.LongTensor([token_ids]) # provide position ids explicitly position_ids = list(range(0, token_tensor.size(1))) print(position_ids) # output: [0, 1, 2, 3, 4, 5, 6, 7, 8] position_id_tensor = torch.LongTensor([position_ids]) # get the top 10 predictions of the masked token with torch.no_grad(): outputs = model(input_ids=token_tensor, position_ids=position_id_tensor) predictions = outputs[0][0, masked_idx].topk(10) for i, index_t in enumerate(predictions.indices): index = index_t.item() token = tokenizer.convert_ids_to_tokens([index])[0] print(i, token) """ 0 総会 1 サミット 2 ワールドカップ 3 フェスティバル 4 大会 5 オリンピック 6 全国大会 7 党大会 8 イベント 9 世界選手権 """ ~~~~ # Model architecture A 12-layer, 768-hidden-size transformer-based masked language model. # Training The model was trained on [Japanese CC-100](http://data.statmt.org/cc-100/ja.txt.xz) and [Japanese Wikipedia](https://dumps.wikimedia.org/jawiki/) to optimize a masked language modelling objective on 8*V100 GPUs for around 15 days. It reaches ~3.9 perplexity on a dev set sampled from CC-100. # Tokenization The model uses a [sentencepiece](https://github.com/google/sentencepiece)-based tokenizer, the vocabulary was trained on the Japanese Wikipedia using the official sentencepiece training script. # Licenese [The MIT license](https://opensource.org/licenses/MIT)
[ -0.2242453396320343, -0.5682136416435242, 0.22838842868804932, 0.34002813696861267, -0.4252331256866455, 0.061881087720394135, -0.15322944521903992, -0.24383679032325745, 0.39170485734939575, 0.5135048627853394, -0.509197473526001, -0.529977560043335, -0.7056711316108704, 0.1810123175382614, -0.1285933405160904, 1.2919538021087646, 0.05059235170483589, 0.12840893864631653, -0.0076767439022660255, 0.03506090119481087, -0.5177378058433533, -0.610706090927124, -0.620875358581543, -0.32342711091041565, 0.29344886541366577, 0.039880722761154175, 0.603351354598999, 0.6594889163970947, 0.34946104884147644, 0.49749553203582764, -0.05886964499950409, -0.011569437570869923, -0.19924038648605347, -0.10587383061647415, -0.0008952036732807755, -0.5089441537857056, -0.538134753704071, 0.12864162027835846, 0.5935675501823425, 0.6234148740768433, 0.27734383940696716, 0.14891913533210754, -0.19898757338523865, 0.21532681584358215, -0.36405709385871887, 0.19517841935157776, -0.6009421348571777, -0.08625972270965576, -0.28633198142051697, 0.07970206439495087, -0.4030860662460327, -0.12215162068605423, 0.00791485607624054, -0.7433050274848938, 0.13799867033958435, 0.14716781675815582, 1.2114959955215454, 0.16949784755706787, -0.1885843425989151, -0.16626115143299103, -0.4499361217021942, 0.8801882863044739, -0.8051102161407471, 0.1778208315372467, 0.4425109624862671, 0.08340530097484589, -0.18994279205799103, -0.9452932476997375, -0.5518555045127869, -0.14942550659179688, -0.16403338313102722, -0.026665957644581795, 0.018250340595841408, 0.06761525571346283, 0.3925791084766388, 0.288586288690567, -0.5742024183273315, 0.06955713033676147, -0.5924770832061768, -0.3411679267883301, 0.5670412182807922, -0.018388453871011734, 0.33541905879974365, -0.3452894389629364, -0.461388498544693, -0.2984462380409241, -0.4078115224838257, -0.10904484242200851, 0.47195371985435486, 0.4736999273300171, -0.37229740619659424, 0.5587124824523926, -0.301668256521225, 0.5290597081184387, 0.33484819531440735, -0.14278848469257355, 0.6575965881347656, -0.1172107607126236, -0.3821864128112793, -0.04178348556160927, 0.8855549097061157, 0.3346298336982727, 0.4022394120693207, -0.1983269602060318, -0.05083899199962616, 0.14165370166301727, -0.07588021457195282, -0.8363851308822632, -0.31271660327911377, 0.35456714034080505, -0.43565884232521057, -0.4097352921962738, 0.2598530650138855, -0.6115098595619202, -0.04955350607633591, -0.07593023777008057, 0.6283193826675415, -0.38646313548088074, -0.42406418919563293, 0.3188551068305969, -0.26709672808647156, 0.06969539821147919, 0.06059825047850609, -0.8759961724281311, 0.2904720604419708, 0.719684362411499, 0.7009662985801697, 0.0729478970170021, -0.40330007672309875, -0.3157005310058594, -0.0988771915435791, -0.21571332216262817, 0.4384646713733673, -0.3334673047065735, -0.3777170479297638, 0.022985070943832397, 0.2985990047454834, -0.25100380182266235, -0.3730989396572113, 0.43535056710243225, -0.3373931646347046, 0.5542494654655457, 0.0031978609040379524, -0.3632059693336487, -0.04513875022530556, 0.17311802506446838, -0.41690248250961304, 1.0737879276275635, 0.1919238269329071, -0.7922152876853943, 0.27946755290031433, -0.611027181148529, -0.4165270924568176, 0.1179167702794075, 0.005855375435203314, -0.6460478901863098, 0.1060326024889946, 0.1874561458826065, 0.4159438908100128, 0.21739992499351501, 0.31688955426216125, -0.2702557444572449, -0.4349104166030884, 0.40045297145843506, -0.12052948027849197, 0.9423956871032715, 0.17714883387088776, -0.44654545187950134, 0.3006165623664856, -0.7642974853515625, 0.016002951189875603, 0.12256971746683121, -0.1052410677075386, -0.3505823016166687, -0.427918940782547, 0.26524290442466736, 0.08373218774795532, 0.21666154265403748, -0.7193599939346313, 0.4243372678756714, -0.6127445101737976, 0.5318663120269775, 0.8547163605690002, -0.1507859230041504, 0.5013490319252014, -0.26488712430000305, 0.5722007155418396, 0.1125253364443779, -0.06048281863331795, -0.22415968775749207, -0.5598056316375732, -0.8390786051750183, -0.3397267162799835, 0.4716303050518036, 0.43264099955558777, -0.8290603160858154, 0.5331957340240479, -0.3914071321487427, -0.5370047092437744, -0.3972254693508148, -0.4488125443458557, 0.46344611048698425, 0.3567124605178833, 0.28665468096733093, -0.3234253525733948, -0.9486148357391357, -0.6288757920265198, -0.272001713514328, -0.30970966815948486, 0.013310560025274754, 0.007272000424563885, 0.790566086769104, -0.2537003457546234, 0.6095418930053711, -0.3635391294956207, -0.22852523624897003, -0.1613675057888031, 0.1401240974664688, 0.5861703157424927, 0.9558484554290771, 0.4496356248855591, -0.5900112390518188, -0.4137588143348694, -0.15330693125724792, -0.6006327271461487, 0.18678168952465057, -0.2107553482055664, -0.40627703070640564, 0.11700756102800369, 0.27418050169944763, -0.8181625008583069, 0.5585174560546875, 0.3792811930179596, -0.6001730561256409, 0.5492679476737976, -0.11432643234729767, 0.13005271553993225, -1.287994146347046, 0.02491362951695919, -0.18030785024166107, -0.1357264518737793, -0.6721734404563904, 0.1936025470495224, -0.04078434407711029, -0.16054831445217133, -0.4431588053703308, 0.7777212858200073, -0.3848137855529785, 0.08265326172113419, -0.1410568505525589, -0.18268650770187378, 0.022311419248580933, 0.4727449119091034, 0.07045181095600128, 0.666939377784729, 0.5271533131599426, -0.5486372113227844, 0.32779115438461304, 0.4567175805568695, -0.27106723189353943, 0.13418048620224, -0.6840891242027283, 0.16901260614395142, -0.05585488677024841, 0.22613176703453064, -0.8704013228416443, -0.3966791033744812, 0.5293982625007629, -0.6676772832870483, 0.4610980749130249, -0.26031941175460815, -0.3674277067184448, -0.490914911031723, -0.318555623292923, 0.5860074758529663, 0.5321114659309387, -0.4484254717826843, 0.6022263169288635, 0.2268449366092682, 0.13382384181022644, -0.8285819292068481, -0.8742197155952454, 0.04262732341885567, -0.46724843978881836, -0.4793040454387665, 0.6515587568283081, -0.1730649173259735, -0.016515783965587616, 0.03153887018561363, 0.036118458956480026, -0.0013360028387978673, 0.21675261855125427, 0.3343351483345032, 0.43843793869018555, -0.2362191081047058, -0.08271197974681854, -0.23051205277442932, -0.36984768509864807, 0.2395893782377243, -0.31087759137153625, 0.8016924262046814, -0.11899006366729736, -0.20030319690704346, -0.5840147733688354, -0.024846835061907768, 0.5468896627426147, -0.2212258279323578, 0.8236067891120911, 0.820459246635437, -0.5911381840705872, 0.01870393194258213, -0.40436697006225586, -0.1390313357114792, -0.5078041553497314, 0.5067678689956665, -0.7684621214866638, -0.6439408659934998, 0.7878541946411133, 0.1442641019821167, -0.1538761407136917, 0.6165751814842224, 0.46010082960128784, 0.053245458751916885, 0.9085225462913513, 0.47610950469970703, -0.11519036442041397, 0.46072396636009216, -0.5039669871330261, 0.25328850746154785, -0.9499626755714417, -0.28007766604423523, -0.4569123685359955, -0.053743619471788406, -0.8231135606765747, -0.23463831841945648, 0.14958560466766357, 0.06639396399259567, -0.3842521905899048, 0.5445910096168518, -0.7212347388267517, 0.3325202465057373, 0.6924130916595459, 0.13144230842590332, -0.09451224654912949, 0.04964270815253258, -0.08680684864521027, -0.07712189108133316, -0.5463287830352783, -0.3369986414909363, 1.185560703277588, 0.4617481827735901, 0.5871773362159729, -0.04511115700006485, 0.8652752041816711, -0.11177504807710648, 0.31193554401397705, -0.5520077347755432, 0.5037274956703186, -0.2625834345817566, -0.7432862520217896, -0.11130902171134949, -0.194341242313385, -0.9916806221008301, 0.2575043737888336, -0.18814463913440704, -0.837830662727356, 0.053601812571287155, -0.1592632234096527, -0.33587679266929626, 0.26166364550590515, -0.35918542742729187, 1.005233645439148, -0.13306845724582672, -0.30468931794166565, 0.1715525984764099, -0.44833576679229736, 0.3502759635448456, 0.16801434755325317, 0.22470104694366455, -0.05768933147192001, 0.16478687524795532, 0.966831624507904, -0.39448463916778564, 0.910350501537323, -0.2433691769838333, 0.34083959460258484, 0.05228912830352783, -0.07405953109264374, 0.37139657139778137, 0.08827273547649384, -0.12102571129798889, 0.2874637842178345, -0.009897704236209393, -0.4068155586719513, -0.49447891116142273, 0.7567489743232727, -0.9283626675605774, -0.6861833333969116, -0.6488280296325684, -0.3147047162055969, 0.21044060587882996, 0.34128817915916443, 0.6603371500968933, 0.6826152801513672, 0.048722073435783386, 0.21335981786251068, 0.434383749961853, -0.23127338290214539, 0.47141560912132263, 0.024021601304411888, -0.37013131380081177, -0.6202825307846069, 0.6377142071723938, 0.21276381611824036, 0.003325641853734851, 0.20730213820934296, 0.2159254252910614, -0.3322330713272095, -0.4683394432067871, -0.5012036561965942, 0.4614511728286743, -0.5834102034568787, -0.2144032120704651, -0.5963846445083618, -0.37482330203056335, -0.7827436923980713, -0.07814358919858932, -0.22628431022167206, -0.5080186128616333, -0.2894606292247772, -0.22496488690376282, 0.30989545583724976, 0.5258721709251404, -0.16617047786712646, 0.455858439207077, -0.5008109211921692, 0.19068773090839386, -0.10909006744623184, 0.32401084899902344, -0.11712431162595749, -0.6471274495124817, -0.34666508436203003, -0.14414134621620178, -0.033685676753520966, -0.8021280169487, 0.6218004822731018, -0.0038155121728777885, 0.528053343296051, 0.3038531541824341, 0.08782830834388733, 0.872678279876709, -0.41024693846702576, 0.7271210551261902, 0.0758960172533989, -0.9607709646224976, 0.4232481122016907, -0.3698452413082123, 0.337068647146225, 0.3525128960609436, 0.2642069458961487, -0.4922800064086914, -0.45468348264694214, -0.8713879585266113, -0.8570829629898071, 0.6944529414176941, 0.3347375690937042, 0.455992192029953, -0.16787824034690857, 0.3641560673713684, 0.14199122786521912, 0.19844980537891388, -1.1381548643112183, -0.5285311937332153, -0.4271054267883301, -0.4213244915008545, -0.055386219173669815, -0.2569562494754791, -0.056566882878541946, -0.36552461981773376, 0.942705512046814, 0.04721197858452797, 0.48583295941352844, 0.18422123789787292, -0.0875101238489151, -0.0005003473488613963, -0.11788520961999893, 0.6673092246055603, 0.49394717812538147, -0.3059006631374359, -0.04990850016474724, 0.17287343740463257, -0.4055768847465515, -0.08554387092590332, 0.0472981296479702, -0.1871054768562317, 0.3593531548976898, 0.5101796388626099, 1.0563849210739136, 0.28462499380111694, -0.18999460339546204, 0.4764018952846527, 0.03565548360347748, -0.1154177188873291, -0.7791494131088257, -0.0700998529791832, -0.060667186975479126, -0.046936359256505966, 0.3634028136730194, 0.12279421091079712, -0.05342196300625801, -0.4827955365180969, 0.16928118467330933, 0.45410844683647156, -0.2005597949028015, -0.41388094425201416, 0.8554267883300781, 0.11304574459791183, -0.44964367151260376, 0.5638337731361389, -0.11844243854284286, -0.8017786741256714, 0.7586875557899475, 0.6199057102203369, 0.9419587254524231, -0.1081383004784584, 0.0849565640091896, 0.8273561000823975, 0.22658167779445648, 0.1341768056154251, 0.19150777161121368, -0.059083130210638046, -0.7965611815452576, -0.3499867916107178, -0.7157392501831055, 0.0022336032707244158, 0.37346071004867554, -0.616844892501831, 0.3617587685585022, -0.6402620673179626, -0.34063857793807983, -0.04274105653166771, 0.12001746147871017, -0.829608142375946, 0.4034927189350128, -0.06159451603889465, 0.7373219132423401, -1.0412815809249878, 0.9000734090805054, 0.7513254284858704, -0.5855143070220947, -0.9261712431907654, -0.22896435856819153, -0.2396746575832367, -0.8405781388282776, 0.7347207069396973, 0.47458943724632263, 0.2752048671245575, 0.06110476329922676, -0.4726034998893738, -1.0999234914779663, 0.8752658367156982, -0.16785266995429993, -0.13789571821689606, -0.09007217735052109, 0.1214509904384613, 0.45490676164627075, -0.4841916263103485, 0.5442710518836975, 0.24863886833190918, 0.44020265340805054, -0.18388700485229492, -0.9140946865081787, 0.016904229298233986, -0.3601268231868744, 0.10821738094091415, 0.04543064534664154, -0.4920692443847656, 1.21483314037323, -0.009942624717950821, -0.24050889909267426, 0.543546199798584, 0.8433853983879089, 0.32035648822784424, 0.23194186389446259, 0.38129377365112305, 0.6116926074028015, 0.5432907938957214, -0.37596744298934937, 0.8999430537223816, -0.2582208812236786, 0.4806026518344879, 0.78928142786026, 0.09517428278923035, 0.7410198450088501, 0.43874576687812805, -0.23013348877429962, 0.9580332040786743, 0.7797022461891174, -0.2310120314359665, 0.5646100044250488, 0.11351180821657181, -0.10442230850458145, -0.06865912675857544, 0.17341090738773346, -0.4918859601020813, 0.5520647764205933, 0.26675745844841003, -0.3279874324798584, 0.14826847612857819, 0.2455289214849472, 0.40982359647750854, 0.059611253440380096, -0.255584180355072, 0.7013240456581116, -0.062247294932603836, -0.7825441360473633, 0.612281084060669, 0.21837113797664642, 0.9980814456939697, -0.4026835560798645, 0.10432599484920502, -0.1382691115140915, 0.2971741259098053, -0.1648363322019577, -0.5322731137275696, 0.18333977460861206, -0.12249501794576645, -0.06117382273077965, -0.21911469101905823, 0.6954150795936584, -0.46708419919013977, -0.6970930695533752, 0.11439287662506104, 0.14338086545467377, 0.40976467728614807, 0.17087578773498535, -0.6968104243278503, 0.1631012260913849, 0.056022122502326965, -0.36544254422187805, 0.3446166217327118, 0.26052844524383545, -0.04925203695893288, 0.5687383413314819, 0.9260448217391968, -0.0038459142670035362, 0.0785791203379631, 0.02436457946896553, 0.7265419960021973, -0.5671193599700928, -0.6598506569862366, -0.9054502844810486, 0.8319454789161682, -0.15772661566734314, -0.6425939202308655, 0.7111022472381592, 0.5288028120994568, 0.9643441438674927, -0.38309091329574585, 0.6026238799095154, -0.08276806771755219, 0.41304048895835876, -0.5647050738334656, 0.7873413562774658, -0.3577524423599243, -0.0426330640912056, -0.14515656232833862, -0.9026468396186829, -0.3608420789241791, 0.8255428671836853, -0.22715099155902863, 0.15189532935619354, 0.5885308384895325, 0.720405101776123, 0.04259083420038223, -0.4177910089492798, 0.2680521309375763, 0.31634145975112915, 0.19529050588607788, 0.31786584854125977, 0.5323549509048462, -0.8615706562995911, 0.18103034794330597, -0.6161488890647888, -0.17718473076820374, -0.23939278721809387, -0.8432519435882568, -0.9521059989929199, -0.7156322002410889, -0.5116258859634399, -0.7458108067512512, 0.011740678921341896, 0.9123048782348633, 0.8790432810783386, -0.8954184055328369, -0.1650068163871765, -0.06644784659147263, 0.033153194934129715, -0.021430201828479767, -0.2507488429546356, 0.4885827898979187, -0.2633799910545349, -1.0650708675384521, 0.27246615290641785, -0.12881016731262207, 0.1836727410554886, -0.1510806679725647, -0.048426635563373566, -0.09083748608827591, -0.08658890426158905, 0.20851664245128632, 0.30166926980018616, -1.0302503108978271, -0.5607092380523682, -0.06629122793674469, -0.17517445981502533, 0.027233922854065895, 0.266992449760437, -0.965844452381134, 0.430507630109787, 0.3793646991252899, 0.3242640197277069, 0.7242057919502258, 0.032361749559640884, 0.585203230381012, -0.7315812706947327, 0.5362571477890015, 0.02660887874662876, 0.5148401856422424, 0.46118780970573425, -0.386008083820343, 0.5133491158485413, 0.3599143326282501, -0.4017300307750702, -1.0511131286621094, 0.10149918496608734, -0.8741611838340759, -0.20873157680034637, 1.0227018594741821, -0.2782498598098755, -0.4896107316017151, 0.13177447021007538, -0.21436013281345367, 0.48697710037231445, -0.09679674357175827, 0.6839069724082947, 0.6963127255439758, 0.1587684452533722, -0.007364599499851465, -0.1271594762802124, 0.5412505269050598, 0.49351122975349426, -0.38507452607154846, -0.3369620442390442, -0.0722615197300911, 0.4708353579044342, 0.3548562228679657, 0.5693260431289673, -0.05730418860912323, 0.1258372813463211, 0.12945175170898438, 0.22661611437797546, -0.2922573387622833, -0.16169226169586182, -0.34352731704711914, -0.04315868392586708, -0.036083925515413284, -0.638399600982666 ]
timm/levit_128.fb_dist_in1k
timm
"2023-02-03T21:13:20Z"
34,876
0
timm
[ "timm", "pytorch", "image-classification", "dataset:imagenet-1k", "arxiv:2104.01136", "license:apache-2.0", "region:us" ]
image-classification
"2023-02-03T21:13:15Z"
--- tags: - image-classification - timm library_tag: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for levit_128.fb_dist_in1k A LeViT image classification model using convolutional mode (using nn.Conv2d and nn.BatchNorm2d). Pretrained on ImageNet-1k using distillation by paper authors. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 9.2 - GMACs: 0.4 - Activations (M): 2.7 - Image size: 224 x 224 - **Papers:** - LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference: https://arxiv.org/abs/2104.01136 - **Original:** https://github.com/facebookresearch/LeViT - **Dataset:** ImageNet-1k ## 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('levit_128.fb_dist_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( 'levit_128.fb_dist_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 (ie.e a (batch_size, num_features, H, W) tensor output = model.forward_head(output, pre_logits=True) # output is (batch_size, num_features) tensor ``` ## Model Comparison |model |top1 |top5 |param_count|img_size| |-----------------------------------|------|------|-----------|--------| |levit_384.fb_dist_in1k |82.596|96.012|39.13 |224 | |levit_conv_384.fb_dist_in1k |82.596|96.012|39.13 |224 | |levit_256.fb_dist_in1k |81.512|95.48 |18.89 |224 | |levit_conv_256.fb_dist_in1k |81.512|95.48 |18.89 |224 | |levit_conv_192.fb_dist_in1k |79.86 |94.792|10.95 |224 | |levit_192.fb_dist_in1k |79.858|94.792|10.95 |224 | |levit_128.fb_dist_in1k |78.474|94.014|9.21 |224 | |levit_conv_128.fb_dist_in1k |78.474|94.02 |9.21 |224 | |levit_128s.fb_dist_in1k |76.534|92.864|7.78 |224 | |levit_conv_128s.fb_dist_in1k |76.532|92.864|7.78 |224 | ## Citation ```bibtex @InProceedings{Graham_2021_ICCV, author = {Graham, Benjamin and El-Nouby, Alaaeldin and Touvron, Hugo and Stock, Pierre and Joulin, Armand and Jegou, Herve and Douze, Matthijs}, title = {LeViT: A Vision Transformer in ConvNet's Clothing for Faster Inference}, booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)}, month = {October}, year = {2021}, pages = {12259-12269} } ``` ```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/rwightman/pytorch-image-models}} } ```
[ -0.5693225264549255, -0.39464271068573, 0.15322229266166687, 0.03918331488966942, -0.42181408405303955, -0.32174527645111084, -0.18165059387683868, -0.3032739758491516, 0.22516006231307983, 0.3071790039539337, -0.5996013879776001, -0.6501184701919556, -0.6242170333862305, -0.1270832121372223, -0.2642817795276642, 0.9575880169868469, -0.08000998198986053, 0.0363946259021759, -0.10622291266918182, -0.3979223668575287, -0.323738694190979, -0.2873452603816986, -0.7252598404884338, -0.4083143174648285, 0.30332478880882263, 0.13550865650177002, 0.5243924856185913, 0.4561060070991516, 0.682716429233551, 0.4500138759613037, -0.14588508009910583, 0.1416008323431015, -0.2042129784822464, -0.2640901803970337, 0.22633963823318481, -0.5446374416351318, -0.427173912525177, 0.07413418591022491, 0.8619601726531982, 0.4888075888156891, -0.015017076395452023, 0.4685300290584564, 0.23818045854568481, 0.772144079208374, -0.31177884340286255, -0.00850510224699974, -0.40347039699554443, 0.08106863498687744, -0.23029613494873047, -0.09962540119886398, -0.3725612461566925, -0.28622254729270935, 0.22768186032772064, -0.6146606802940369, 0.6474619507789612, 0.0998600572347641, 1.4252656698226929, 0.28363507986068726, -0.08244489133358002, 0.18171580135822296, -0.37984925508499146, 0.7924655079841614, -0.9779499173164368, 0.350879430770874, 0.28996792435646057, 0.08461231738328934, -0.000525403767824173, -0.9501286745071411, -0.7529817223548889, 0.01581067591905594, -0.4298273026943207, 0.09094900637865067, -0.13673672080039978, -0.0850839912891388, 0.32249581813812256, 0.39886602759361267, -0.6460822820663452, -0.010012878105044365, -0.5670897960662842, -0.10590149462223053, 0.5935996770858765, 0.14037680625915527, 0.12177450954914093, -0.4589178264141083, -0.7350538969039917, -0.5226160883903503, -0.32862648367881775, 0.3751521110534668, 0.3344522714614868, 0.10406088829040527, -0.5299610495567322, 0.4647420346736908, -0.07861150801181793, 0.5450677871704102, 0.2618297338485718, -0.1359962671995163, 0.7679490447044373, -0.188824862241745, -0.4732765853404999, -0.13582906126976013, 1.15019953250885, 0.6132974624633789, 0.1301073282957077, 0.08983573317527771, -0.17956726253032684, -0.29968568682670593, -0.14222899079322815, -1.1346038579940796, -0.24728071689605713, 0.309906929731369, -0.5434573888778687, -0.2803240716457367, 0.3662107288837433, -0.8981297612190247, -0.2189171314239502, -0.14191579818725586, 0.6927302479743958, -0.5170446634292603, -0.5035073161125183, 0.10113731026649475, -0.2556273937225342, 0.48400992155075073, 0.12336284667253494, -0.6437740921974182, 0.28257524967193604, 0.3364262878894806, 1.075171947479248, -0.12237396836280823, -0.3958120346069336, -0.08491862565279007, -0.2395394742488861, -0.42251652479171753, 0.5716668367385864, 0.12917548418045044, -0.09462728351354599, -0.3580330014228821, 0.40083402395248413, -0.2737741768360138, -0.6092630624771118, 0.4574217200279236, -0.34007006883621216, 0.11618310958147049, -0.05149612948298454, -0.32751160860061646, -0.5275232195854187, 0.2904326319694519, -0.5391114950180054, 1.1983164548873901, 0.3802730441093445, -1.029632329940796, 0.4103882610797882, -0.5131788849830627, -0.11006635427474976, -0.06634366512298584, 0.008897827006876469, -1.0424083471298218, -0.13897936046123505, 0.2754029929637909, 0.731378972530365, -0.3577175438404083, 0.23141521215438843, -0.4247632324695587, -0.293046772480011, 0.3765736520290375, -0.279766321182251, 1.0687274932861328, 0.07657257467508316, -0.536814272403717, 0.23435086011886597, -0.816041886806488, 0.11628425866365433, 0.46753233671188354, -0.21787269413471222, -0.061804793775081635, -0.4707009196281433, 0.10842901468276978, 0.06080874055624008, 0.13582803308963776, -0.5551133155822754, 0.06316530704498291, -0.2391306310892105, 0.33698898553848267, 0.8433645963668823, 0.05727727711200714, 0.30272817611694336, -0.45911043882369995, 0.15704597532749176, 0.3100264370441437, 0.331126868724823, 0.05622352659702301, -0.47705361247062683, -0.90964674949646, -0.5098205804824829, 0.31916165351867676, 0.5595020651817322, -0.6863618493080139, 0.523402214050293, -0.31813833117485046, -0.7389624714851379, -0.33471325039863586, -0.06572895497083664, 0.4171539843082428, 0.6369587182998657, 0.4442254304885864, -0.26380255818367004, -0.5476633310317993, -1.029008150100708, 0.036865826696157455, 0.07345860451459885, 0.08066695183515549, 0.20352603495121002, 0.7782865762710571, -0.10332757234573364, 0.7516772150993347, -0.6506676077842712, -0.25799402594566345, -0.1720915138721466, 0.1244749054312706, 0.6889777183532715, 0.8792334794998169, 0.897193968296051, -0.834023118019104, -0.7665602564811707, -0.09628761559724808, -0.9449384212493896, 0.15584224462509155, -0.03384513035416603, -0.32766905426979065, 0.38221922516822815, 0.2133580893278122, -0.7544586658477783, 0.7624526619911194, 0.2516452968120575, -0.45701873302459717, 0.6023722290992737, -0.2512655258178711, 0.36035799980163574, -1.223868727684021, 0.13120907545089722, 0.3883516490459442, -0.21575485169887543, -0.613350510597229, -0.19808481633663177, 0.11377298831939697, 0.0875062346458435, -0.5187303423881531, 0.6789377331733704, -0.5994337201118469, -0.030578065663576126, 0.04120825603604317, -0.1675885021686554, 0.05307820811867714, 0.9393263459205627, -0.19287267327308655, 0.527003824710846, 0.8167648315429688, -0.562114417552948, 0.5520245432853699, 0.40101534128189087, -0.43158867955207825, 0.5843508243560791, -0.6707234382629395, -0.04109756276011467, -0.027668988332152367, 0.23085466027259827, -1.2661805152893066, -0.2031436562538147, 0.3864811658859253, -0.5900250673294067, 0.6896805763244629, -0.41297632455825806, -0.498410165309906, -0.5936554074287415, -0.5909562706947327, 0.4359967112541199, 0.6128589510917664, -0.7006509900093079, 0.31631970405578613, 0.19784876704216003, 0.20916299521923065, -0.6341230869293213, -0.9384617805480957, -0.5159028172492981, -0.3370375335216522, -0.7218409180641174, 0.43114784359931946, 0.06363330781459808, 0.025645190849900246, 0.21729737520217896, -0.1263979971408844, -0.03615419939160347, -0.2486923784017563, 0.3962861895561218, 0.6131635308265686, -0.2889738380908966, -0.17088916897773743, -0.22161990404129028, -0.1504420042037964, -0.04211698845028877, -0.2856764495372772, 0.7117034196853638, -0.30832791328430176, -0.21790167689323425, -0.875697910785675, 0.012647204101085663, 0.603476345539093, -0.08681831508874893, 0.9327993988990784, 0.9361472725868225, -0.5059801340103149, -0.04887709021568298, -0.45953604578971863, -0.1987481713294983, -0.5231992602348328, 0.5010777115821838, -0.378304660320282, -0.34165021777153015, 0.928566575050354, 0.15441635251045227, 0.09065810590982437, 1.0199247598648071, 0.4586229920387268, -0.0965661108493805, 0.8292244672775269, 0.4329231381416321, 0.4484297037124634, 0.8695275187492371, -1.1714808940887451, -0.0724116712808609, -1.0914781093597412, -0.4730294346809387, -0.3137827217578888, -0.5774521827697754, -0.7650338411331177, -0.3295463025569916, 0.5334928631782532, 0.12232149392366409, -0.5092812776565552, 0.5362207293510437, -0.9311635494232178, 0.06851696968078613, 0.7199428081512451, 0.6468341946601868, -0.2837926745414734, 0.14176812767982483, -0.3134182393550873, 0.03122851997613907, -0.7153111100196838, -0.11072243005037308, 1.1482892036437988, 0.3311889171600342, 0.7422363758087158, -0.05454745516180992, 0.6230767965316772, -0.029439542442560196, 0.3650491535663605, -0.4725211262702942, 0.6266331076622009, -0.22401925921440125, -0.7427418231964111, -0.28785252571105957, -0.36589017510414124, -0.9301110506057739, 0.36942946910858154, -0.2918212115764618, -0.9080793261528015, 0.5292534232139587, 0.163813978433609, -0.3368563652038574, 0.8098757863044739, -0.9610159397125244, 0.9513801336288452, -0.07457730174064636, -0.5806044936180115, 0.07713929563760757, -0.7165200114250183, 0.3501441776752472, 0.13491113483905792, -0.10923315584659576, -0.11821845918893814, 0.33288776874542236, 1.1750036478042603, -0.6258718371391296, 0.8059545755386353, -0.41304144263267517, 0.41769108176231384, 0.6787075996398926, -0.2089093029499054, 0.5251474976539612, -0.14385244250297546, -0.14006517827510834, 0.32186076045036316, 0.20648035407066345, -0.3813886344432831, -0.4044969379901886, 0.5920733213424683, -0.910889744758606, -0.5223826766014099, -0.5626380443572998, -0.5427577495574951, 0.1968098282814026, 0.15845268964767456, 0.7470769882202148, 0.8482083678245544, 0.2723875343799591, 0.47573742270469666, 0.6537902355194092, -0.28295668959617615, 0.6942903995513916, -0.03540411591529846, -0.12027987092733383, -0.6595380306243896, 0.9418120980262756, 0.3562663495540619, 0.2949344515800476, 0.24354571104049683, 0.27093055844306946, -0.441751092672348, -0.5279125571250916, -0.4570794403553009, 0.44294559955596924, -0.836402952671051, -0.5683031678199768, -0.5152234435081482, -0.5261753797531128, -0.4849696457386017, -0.13022039830684662, -0.39474615454673767, -0.42043957114219666, -0.34545621275901794, 0.12012379616498947, 0.7451333999633789, 0.5491020679473877, -0.26983630657196045, 0.5010143518447876, -0.514218270778656, 0.2637908160686493, 0.1263984888792038, 0.5346947312355042, -0.04160038381814957, -0.9299048781394958, -0.3204757869243622, -0.052847523242235184, -0.5333666205406189, -0.9080982804298401, 0.549656867980957, 0.03225679695606232, 0.7082983255386353, 0.3914549648761749, 0.04722394794225693, 0.8374870419502258, -0.12805262207984924, 0.6374383568763733, 0.5058414340019226, -0.7332525849342346, 0.5331672430038452, -0.11591363698244095, 0.04304155334830284, 0.1653040647506714, 0.2257247120141983, -0.17840734124183655, -0.13499774038791656, -1.0404114723205566, -0.9063372611999512, 1.025625228881836, 0.17935627698898315, -0.19261910021305084, 0.3348321318626404, 0.5250264406204224, -0.025150081142783165, 0.008515330031514168, -0.8265249729156494, -0.6449078321456909, -0.3678476810455322, -0.3070807456970215, -0.040981046855449677, -0.07617826759815216, -0.1163104847073555, -0.7632818222045898, 0.810865044593811, -0.02124781906604767, 0.714306116104126, 0.498228520154953, -0.05272473394870758, -0.0911807045340538, -0.2755441665649414, 0.5783936977386475, 0.47821372747421265, -0.4145996570587158, 0.13661620020866394, 0.34352388978004456, -0.6674062013626099, 0.02115117385983467, 0.2777200937271118, -0.16324397921562195, 0.04780803620815277, 0.33590516448020935, 0.9703062772750854, -0.023645274341106415, 0.055299803614616394, 0.5568130612373352, -0.007238116580992937, -0.4974888861179352, -0.3029520511627197, 0.09879730641841888, -0.16427645087242126, 0.594055712223053, 0.551908552646637, 0.39756789803504944, -0.011940511874854565, -0.1947612166404724, 0.2721751928329468, 0.6301871538162231, -0.23784545063972473, -0.27965596318244934, 0.7726974487304688, -0.2913036346435547, -0.1007101908326149, 0.5061641931533813, -0.10517051070928574, -0.49478620290756226, 1.0701390504837036, 0.4367368221282959, 1.055997610092163, -0.013525769114494324, 0.02832101285457611, 0.9842506051063538, 0.21496623754501343, -0.08248372375965118, 0.06330890208482742, 0.14760568737983704, -0.6988787055015564, 0.04753937944769859, -0.6719381809234619, -0.020709814503788948, 0.30846089124679565, -0.6170897483825684, 0.3448604345321655, -0.5401431918144226, -0.4617744982242584, 0.2667821943759918, 0.381149560213089, -0.8784466981887817, 0.2083631008863449, -0.0248640738427639, 0.7517393827438354, -0.8028919100761414, 0.7503150105476379, 0.665805459022522, -0.5143640637397766, -0.9995632171630859, -0.152292862534523, -0.2141650915145874, -0.7664394974708557, 0.5013735294342041, 0.2753315269947052, 0.04291640222072601, 0.15797929465770721, -0.9242381453514099, -0.8269116878509521, 1.6424682140350342, 0.41896942257881165, -0.17878314852714539, 0.3216736614704132, -0.022266915068030357, 0.2668682038784027, -0.16792206466197968, 0.3208901584148407, 0.22325804829597473, 0.46888992190361023, 0.36443135142326355, -0.6951939463615417, 0.2969634532928467, -0.3237183690071106, 0.09736417233943939, 0.3311063051223755, -0.8787544965744019, 1.2189123630523682, -0.3681620955467224, -0.2326008677482605, 0.09483753889799118, 0.6409856677055359, 0.3184913396835327, 0.21264232695102692, 0.6003891229629517, 0.8080512881278992, 0.5308948159217834, -0.4190201759338379, 0.9649790525436401, -0.11191549897193909, 0.9421631693840027, 0.609210193157196, 0.40919363498687744, 0.6133992075920105, 0.4409913718700409, -0.4205033481121063, 0.4497094452381134, 0.9885576367378235, -0.39351314306259155, 0.5603957772254944, 0.10885756462812424, -0.037557560950517654, -0.08087484538555145, 0.24542957544326782, -0.4847662150859833, 0.19298399984836578, 0.20921866595745087, -0.2981681227684021, -0.14805585145950317, -0.0009484547772444785, -0.013517633080482483, -0.39582741260528564, -0.2834523320198059, 0.4492128789424896, -0.015209800563752651, -0.6087866425514221, 0.941496729850769, -0.04987325519323349, 0.9009653925895691, -0.46277564764022827, 0.05671126767992973, -0.20928727090358734, 0.5164290070533752, -0.4044509828090668, -1.0731539726257324, 0.2738479971885681, -0.14018474519252777, -0.2122436910867691, 0.013670072890818119, 0.6342948079109192, -0.3196280598640442, -0.685576856136322, 0.2283034324645996, 0.15826410055160522, 0.32937413454055786, 0.09107156097888947, -0.9157354235649109, -0.10111305862665176, -0.0022196120116859674, -0.8157448768615723, 0.1612149477005005, 0.5869710445404053, 0.09281217306852341, 0.6305782198905945, 0.7988784909248352, -0.1703648418188095, 0.4465004503726959, -0.2821224331855774, 0.9667543172836304, -0.5351676940917969, -0.45701661705970764, -0.950448751449585, 0.7203288674354553, -0.18040725588798523, -0.628065288066864, 0.521854043006897, 0.6688553094863892, 0.8235474824905396, -0.08087385445833206, 0.4764426648616791, -0.36201825737953186, 0.20355668663978577, -0.4801075756549835, 0.7788612842559814, -0.7982786893844604, -0.04084122180938721, -0.2074877917766571, -0.6936535239219666, -0.38683491945266724, 0.7533842325210571, -0.32290002703666687, 0.294941782951355, 0.7254650592803955, 0.9670360088348389, -0.22800953686237335, -0.35929691791534424, 0.24201199412345886, 0.26077261567115784, 0.156989187002182, 0.4252767264842987, 0.4821935296058655, -0.9149815440177917, 0.41526666283607483, -0.6525797247886658, -0.21418796479701996, -0.20040376484394073, -0.6446075439453125, -0.9776391386985779, -0.9357913732528687, -0.4834109842777252, -0.6564491391181946, -0.3440801501274109, 0.8481367230415344, 0.9903157949447632, -0.810438334941864, -0.10338657349348068, -0.0458940751850605, 0.26405709981918335, -0.3950982689857483, -0.27133309841156006, 0.7901805639266968, -0.1399070918560028, -0.8391798138618469, -0.42766374349594116, -0.07621137797832489, 0.45696601271629333, -0.04428913816809654, -0.31769755482673645, -0.42752397060394287, -0.15153978765010834, 0.2526737153530121, 0.21283002197742462, -0.6304416060447693, -0.17635101079940796, -0.13917817175388336, -0.20176592469215393, 0.46579545736312866, 0.2976382374763489, -0.5614296793937683, 0.1790960282087326, 0.7108741998672485, 0.1799563467502594, 1.0537238121032715, -0.22266066074371338, -0.10216699540615082, -0.7985578775405884, 0.5625656843185425, -0.20172031223773956, 0.5233632922172546, 0.3752921223640442, -0.3896888792514801, 0.5966244339942932, 0.6347112059593201, -0.48217517137527466, -1.0004751682281494, -0.2762998342514038, -1.2549177408218384, -0.1254187524318695, 1.0740913152694702, -0.25515586137771606, -0.5967185497283936, 0.40598785877227783, -0.060911547392606735, 0.6644043922424316, -0.13980992138385773, 0.3268524408340454, 0.336722731590271, -0.12927226722240448, -0.5354273319244385, -0.6729623079299927, 0.3904593884944916, -0.01780734769999981, -0.677886426448822, -0.3884435296058655, -0.04331990331411362, 0.6936717629432678, 0.44978463649749756, 0.5754603743553162, -0.1192229762673378, 0.08275771141052246, 0.1842767745256424, 0.3871616721153259, -0.24273422360420227, -0.11004132032394409, -0.1799788773059845, -0.03649076446890831, -0.34534600377082825, -0.7949410080909729 ]
m3hrdadfi/typo-detector-distilbert-en
m3hrdadfi
"2021-06-16T16:14:20Z"
34,837
4
transformers
[ "transformers", "pytorch", "tf", "distilbert", "token-classification", "en", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- language: en widget: - text: "He had also stgruggled with addiction during his time in Congress ." - text: "The review thoroughla assessed all aspects of JLENS SuR and CPG esign maturit and confidence ." - text: "Letterma also apologized two his staff for the satyation ." - text: "Vincent Jay had earlier won France 's first gold in gthe 10km biathlon sprint ." - text: "It is left to the directors to figure out hpw to bring the stry across to tye audience ." --- # Typo Detector ## Dataset Information For this specific task, I used [NeuSpell](https://github.com/neuspell/neuspell) corpus as my raw data. ## Evaluation The following tables summarize the scores obtained by model overall and per each class. | # | precision | recall | f1-score | support | |:------------:|:---------:|:--------:|:--------:|:--------:| | TYPO | 0.992332 | 0.985997 | 0.989154 | 416054.0 | | micro avg | 0.992332 | 0.985997 | 0.989154 | 416054.0 | | macro avg | 0.992332 | 0.985997 | 0.989154 | 416054.0 | | weighted avg | 0.992332 | 0.985997 | 0.989154 | 416054.0 | ## How to use You use this model with Transformers pipeline for NER (token-classification). ### Installing requirements ```bash pip install transformers ``` ### Prediction using pipeline ```python import torch from transformers import AutoConfig, AutoTokenizer, AutoModelForTokenClassification from transformers import pipeline model_name_or_path = "m3hrdadfi/typo-detector-distilbert-en" config = AutoConfig.from_pretrained(model_name_or_path) tokenizer = AutoTokenizer.from_pretrained(model_name_or_path) model = AutoModelForTokenClassification.from_pretrained(model_name_or_path, config=config) nlp = pipeline('token-classification', model=model, tokenizer=tokenizer, aggregation_strategy="average") ``` ```python sentences = [ "He had also stgruggled with addiction during his time in Congress .", "The review thoroughla assessed all aspects of JLENS SuR and CPG esign maturit and confidence .", "Letterma also apologized two his staff for the satyation .", "Vincent Jay had earlier won France 's first gold in gthe 10km biathlon sprint .", "It is left to the directors to figure out hpw to bring the stry across to tye audience .", ] for sentence in sentences: typos = [sentence[r["start"]: r["end"]] for r in nlp(sentence)] detected = sentence for typo in typos: detected = detected.replace(typo, f'<i>{typo}</i>') print(" [Input]: ", sentence) print("[Detected]: ", detected) print("-" * 130) ``` Output: ```text [Input]: He had also stgruggled with addiction during his time in Congress . [Detected]: He had also <i>stgruggled</i> with addiction during his time in Congress . ---------------------------------------------------------------------------------------------------------------------------------- [Input]: The review thoroughla assessed all aspects of JLENS SuR and CPG esign maturit and confidence . [Detected]: The review <i>thoroughla</i> assessed all aspects of JLENS SuR and CPG <i>esign</i> <i>maturit</i> and confidence . ---------------------------------------------------------------------------------------------------------------------------------- [Input]: Letterma also apologized two his staff for the satyation . [Detected]: <i>Letterma</i> also apologized <i>two</i> his staff for the <i>satyation</i> . ---------------------------------------------------------------------------------------------------------------------------------- [Input]: Vincent Jay had earlier won France 's first gold in gthe 10km biathlon sprint . [Detected]: Vincent Jay had earlier won France 's first gold in <i>gthe</i> 10km biathlon sprint . ---------------------------------------------------------------------------------------------------------------------------------- [Input]: It is left to the directors to figure out hpw to bring the stry across to tye audience . [Detected]: It is left to the directors to figure out <i>hpw</i> to bring the <i>stry</i> across to <i>tye</i> audience . ---------------------------------------------------------------------------------------------------------------------------------- ``` ## Questions? Post a Github issue on the [TypoDetector Issues](https://github.com/m3hrdadfi/typo-detector/issues) repo.
[ -0.2810216248035431, -0.3429325819015503, 0.4780755639076233, 0.26531338691711426, -0.23575662076473236, -0.19196832180023193, -0.09409979730844498, -0.30724239349365234, 0.5291042327880859, 0.6559107303619385, -0.31947678327560425, -0.714076578617096, -0.9148105382919312, 0.3783814013004303, -0.39812639355659485, 1.0462934970855713, -0.2061994969844818, -0.33186644315719604, 0.11398487538099289, -0.3642541170120239, -0.5164942741394043, -0.6898674964904785, -0.6803692579269409, -0.1728283166885376, 0.5517115592956543, 0.4239144027233124, 0.362224817276001, 0.480557918548584, 0.5475348830223083, 0.3933376371860504, -0.2146500051021576, 0.48583701252937317, -0.3137376010417938, 0.01762041077017784, -0.12996311485767365, -0.3918282687664032, -0.4427880346775055, 0.01046699471771717, 0.6411132216453552, 0.533482015132904, 0.09899348765611649, 0.3444364070892334, 0.29403385519981384, 0.9611514806747437, -0.5862665772438049, 0.008143112063407898, -0.2528402507305145, -0.1284334659576416, -0.409712553024292, -0.462894082069397, -0.41120079159736633, -0.3166121542453766, -0.10459918528795242, -0.732998251914978, 0.04167668893933296, 0.13119007647037506, 1.0789252519607544, 0.22414414584636688, -0.18566283583641052, -0.32225537300109863, -0.7848701477050781, 0.8005214333534241, -0.7801166772842407, 0.07446861267089844, 0.43687334656715393, 0.10317987948656082, 0.035746220499277115, -0.9596499800682068, -0.6082808971405029, -0.024434970691800117, -0.220050647854805, 0.3325766623020172, -0.14444038271903992, -0.029752690345048904, 0.5162554979324341, 0.6548777222633362, -0.9290859699249268, -0.25613725185394287, -0.4456113278865814, -0.3065583109855652, 0.7791099548339844, 0.2781536877155304, 0.17997755110263824, -0.3070259392261505, -0.1457088142633438, -0.2071683555841446, -0.1718684583902359, 0.08116896450519562, 0.492501825094223, 0.4128740429878235, -0.3640937805175781, 0.785240888595581, -0.34822922945022583, 0.6658715009689331, 0.1451951265335083, -0.16272689402103424, 0.4264194667339325, -0.5224829316139221, -0.44465774297714233, -0.038221217691898346, 0.8957512378692627, 0.4783657491207123, 0.676608145236969, -0.06218487396836281, -0.12367710471153259, 0.1398591697216034, 0.11953447759151459, -0.5039173364639282, -0.4555371403694153, 0.09581325203180313, -0.574962317943573, -0.41327765583992004, 0.16124622523784637, -0.8295415639877319, -0.19475427269935608, 0.004008311778306961, 0.650962769985199, -0.5186774134635925, -0.08705005049705505, 0.025213392451405525, -0.49124276638031006, 0.08660665899515152, 0.17056743800640106, -0.9001370668411255, 0.3162139058113098, 0.32662609219551086, 0.7193436026573181, 0.06322817504405975, -0.3811853528022766, -0.4336684048175812, -0.011554684489965439, -0.20144839584827423, 0.7025800943374634, -0.16407406330108643, -0.22513677179813385, 0.08837137371301651, 0.10715338587760925, -0.4402274489402771, -0.3903397023677826, 0.5447739362716675, -0.21729984879493713, 0.64884352684021, -0.3211647868156433, -0.6866163611412048, -0.2603026330471039, 0.39269158244132996, -0.5409455895423889, 0.987718403339386, 0.4261554479598999, -1.0484400987625122, 0.30091723799705505, -0.35692259669303894, -0.4290853440761566, -0.011159668676555157, -0.02988485060632229, -0.3903316557407379, 0.07686793804168701, 0.2868126332759857, -0.06604836136102676, 0.04109596088528633, -0.2754432260990143, 0.03505006805062294, -0.1365804821252823, 0.19964654743671417, -0.29735082387924194, 1.199709415435791, -0.010756464675068855, -0.4054194688796997, -0.1423538327217102, -0.8516111969947815, 0.1497628092765808, 0.24220812320709229, -0.3962407410144806, -0.19017386436462402, -0.3302830457687378, 0.10923733562231064, 0.16133220493793488, 0.1785254031419754, -0.27897748351097107, 0.05358949676156044, -0.7955449223518372, 0.12824420630931854, 0.674342691898346, 0.34952911734580994, 0.4380354881286621, -0.533799409866333, 0.567855954170227, -0.3318701982498169, 0.14129185676574707, -0.2128610610961914, -0.384607195854187, -0.8757492899894714, -0.06024184450507164, 0.49864304065704346, 0.8605787754058838, -0.6309263110160828, 0.4932219684123993, -0.1368449181318283, -0.4204863905906677, -0.35529765486717224, 0.13965368270874023, 0.6115310192108154, 0.7128233909606934, 0.6002159714698792, -0.1439501941204071, -0.6489623785018921, -0.8917821645736694, -0.6596084833145142, -0.41610780358314514, 0.11562466621398926, 0.21046900749206543, 0.6635037064552307, 0.25803670287132263, 0.6324808597564697, -0.6295416951179504, -0.3931730389595032, -0.31047675013542175, 0.09977520257234573, 0.2973470985889435, 0.5651092529296875, 0.7532258033752441, -0.4225862920284271, -0.6653860807418823, -0.07623259723186493, -0.8027021288871765, -0.15520602464675903, 0.16449181735515594, -0.07825307548046112, 0.41340935230255127, 0.3689297139644623, -0.4983712434768677, 0.8476423025131226, 0.2552456259727478, -0.6271677613258362, 1.044123888015747, -0.368859201669693, 0.268232136964798, -1.2438457012176514, 0.34374314546585083, -0.13413961231708527, -0.04950929060578346, -0.6747453212738037, -0.2379487305879593, -0.008102552965283394, 0.19708740711212158, -0.3403667211532593, 0.732200562953949, -0.20755019783973694, 0.10936380922794342, -0.025535209104418755, 0.20408238470554352, 0.45122411847114563, 0.39445337653160095, -0.10966099798679352, 0.5059388875961304, 0.21896766126155853, -0.7757618427276611, 0.35840287804603577, 0.6223089694976807, -0.47132712602615356, 0.4765285551548004, -0.6329090595245361, -0.1943865567445755, 0.023120107129216194, -0.04664165526628494, -1.3256019353866577, -0.17914196848869324, 0.5752996206283569, -0.8134726881980896, 0.22597888112068176, -0.22304144501686096, -0.43776369094848633, -0.7025465965270996, -0.2173546701669693, 0.2514045238494873, 0.24987423419952393, -0.1622506082057953, 0.1469230204820633, 0.27570050954818726, -0.2634010314941406, -0.5152902007102966, -0.9985856413841248, 0.10012597590684891, -0.29972076416015625, -0.7524383664131165, 0.49164891242980957, -0.15242919325828552, -0.34939590096473694, -0.22990311682224274, -0.2525360584259033, -0.20186065137386322, -0.1649264395236969, 0.012370155192911625, 0.4534353017807007, -0.05582565814256668, -0.04907016083598137, -0.16106610000133514, -0.23470047116279602, -0.08669082075357437, -0.11232341825962067, 0.7069591283798218, -0.13180935382843018, -0.21198256313800812, -0.6402401924133301, 0.2820086181163788, 0.717303991317749, -0.2101166695356369, 0.46158358454704285, 0.5167188048362732, -0.3231024444103241, 0.10431001335382462, -0.6137827634811401, 0.019366875290870667, -0.4818618893623352, 0.16932107508182526, -0.04868831858038902, -0.5923616290092468, 0.7038701176643372, 0.37921908497810364, 0.09517104923725128, 0.9477826356887817, 0.40511924028396606, -0.4037023186683655, 0.8398433327674866, 0.5436353087425232, 0.052261073142290115, 0.4917975664138794, -0.5531120896339417, 0.35950297117233276, -0.8295233249664307, -0.3890492916107178, -0.735285758972168, -0.5109478831291199, -0.7992209792137146, -0.05818011984229088, 0.24019010365009308, -0.03283201530575752, -0.316389262676239, 0.5054711699485779, -0.8528609275817871, 0.18962839245796204, 0.4374578297138214, -0.16619467735290527, 0.08013082295656204, 0.006148744840174913, -0.3015245199203491, -0.133758082985878, -0.7594304084777832, -0.6051503419876099, 0.9423625469207764, 0.13088689744472504, 0.6176691651344299, 0.04062185436487198, 0.7802395224571228, 0.2511804699897766, 0.013639423064887524, -0.5710446238517761, 0.4916417896747589, -0.5070281028747559, -0.733407199382782, -0.2783013582229614, -0.17290030419826508, -0.9232034683227539, 0.1776462197303772, -0.23839570581912994, -1.0318779945373535, 0.5292836427688599, 0.21897438168525696, -0.7821829319000244, 0.52200847864151, -0.8323365449905396, 1.1104736328125, -0.21840731799602509, -0.27514559030532837, 0.3151865303516388, -0.6811527609825134, 0.3191259205341339, 0.4306259751319885, 0.3015759587287903, -0.022828200832009315, 0.2657982409000397, 1.2171430587768555, -0.7217496633529663, 0.508363664150238, -0.13960295915603638, 0.2800196409225464, 0.4833312928676605, 0.13296623528003693, 0.5032199621200562, 0.02792920358479023, -0.05694007873535156, -0.21860185265541077, 0.20903754234313965, -0.19943146407604218, -0.12546329200267792, 0.4230446219444275, -0.6560587286949158, -0.3488348722457886, -0.7586748003959656, -0.43460613489151, -0.03702060505747795, 0.3099234104156494, 0.907392680644989, 0.8423749804496765, -0.014899639412760735, 0.07056780159473419, 0.5018107295036316, -0.3980104625225067, 0.6610256433486938, 0.27462518215179443, -0.23132939636707306, -0.6655333638191223, 0.7301585078239441, 0.3143111765384674, -0.040895696729421616, 0.4094896912574768, 0.04623502865433693, -0.42044249176979065, -0.5082557797431946, -0.22420881688594818, 0.25665318965911865, -0.5230040550231934, -0.28745386004447937, -0.7813267111778259, -0.48579058051109314, -0.8082281947135925, -0.162925124168396, -0.2808627486228943, -0.6753388047218323, -0.5550388097763062, -0.13061155378818512, 0.249014750123024, 0.55345219373703, -0.08957390487194061, 0.5488302111625671, -0.7244748473167419, 0.32983359694480896, 0.3334033787250519, 0.27257463335990906, -0.28050094842910767, -0.9447556138038635, -0.28752538561820984, -0.16922178864479065, -0.40090039372444153, -0.9158284068107605, 0.636223554611206, -0.064014732837677, 0.6884077191352844, 0.5179035663604736, 0.11443230509757996, 0.8484452962875366, -0.23266498744487762, 1.0610030889511108, 0.27138814330101013, -0.8891390562057495, 0.8155086040496826, -0.05159575864672661, 0.2562549114227295, 0.8484261631965637, 0.03533574193716049, -0.8088177442550659, -0.45391151309013367, -0.8151820302009583, -1.0091367959976196, 0.8775535821914673, 0.4954770803451538, -0.19010648131370544, -0.07794832438230515, 0.20805899798870087, -0.0007316754781641066, 0.1758657842874527, -0.6647794246673584, -0.6321706771850586, -0.26257067918777466, -0.23094354569911957, -0.15452994406223297, -0.4188119173049927, -0.28011253476142883, -0.3659502863883972, 0.7398156523704529, 0.25637122988700867, 0.5175511837005615, 0.6223499178886414, -0.4672454595565796, 0.10807374864816666, 0.31873819231987, 0.9075325131416321, 0.990204930305481, -0.34915345907211304, 0.2296808958053589, 0.21168774366378784, -0.5829870700836182, -0.017004599794745445, 0.2263379693031311, -0.15847907960414886, 0.26190415024757385, 0.8420498371124268, 0.8883655667304993, -0.0340484194457531, -0.5140288472175598, 0.45671316981315613, 0.002176997484639287, -0.5719693303108215, -0.48469099402427673, 0.010416709817945957, -0.283234566450119, 0.28110557794570923, 0.39510318636894226, 0.10545675456523895, -0.06078585982322693, -0.44567856192588806, 0.2722521722316742, 0.24922095239162445, -0.41143083572387695, -0.12357094883918762, 0.6821116805076599, -0.01360364630818367, -0.5132094025611877, 0.3917878568172455, -0.40512514114379883, -0.7240841388702393, 0.8177717328071594, 0.44801199436187744, 0.9318193793296814, -0.45065703988075256, 0.3262084424495697, 0.8260364532470703, 0.8122868537902832, 0.0120710339397192, 0.5197747349739075, 0.3296811580657959, -0.6050371527671814, -0.23537735641002655, -0.6799947023391724, -0.004433334339410067, 0.28733745217323303, -0.5265288352966309, -0.05449286103248596, -0.5540453791618347, -0.2502205967903137, 0.10857179015874863, 0.3520815670490265, -0.7171539664268494, 0.2797686457633972, 0.23606646060943604, 1.2263948917388916, -0.9398680925369263, 0.6077250838279724, 0.5763568878173828, -0.5374288558959961, -0.8918583989143372, -0.10536160320043564, -0.2001790553331375, -0.766900897026062, 0.4668438732624054, 0.06732869148254395, 0.29928866028785706, -0.1926712542772293, -0.23950791358947754, -0.8639846444129944, 1.206139087677002, 0.09746015071868896, -0.48956575989723206, -0.060783568769693375, 0.17979153990745544, 0.4969187080860138, -0.24758917093276978, 0.2966799736022949, 0.5778129696846008, 0.8968316912651062, -0.17592012882232666, -0.9254948496818542, -0.02441548742353916, -0.21858444809913635, -0.17483702301979065, -0.044272638857364655, -0.6463977694511414, 0.978766143321991, -0.01991594396531582, -0.30157554149627686, 0.14974741637706757, 0.4896564185619354, 0.2637987732887268, 0.6788488626480103, 0.5143765807151794, 0.8916212320327759, 0.9133231043815613, -0.2038002461194992, 1.182262659072876, -0.2370888590812683, 0.4109167158603668, 1.0621875524520874, 0.06636468321084976, 0.3538367450237274, 0.44412165880203247, -0.377608060836792, 0.57865971326828, 0.6003670692443848, -0.0897606909275055, 0.6517261266708374, -0.003841282334178686, -0.22993162274360657, -0.05869654566049576, 0.12172632664442062, -0.5787363648414612, 0.4433353841304779, 0.19003190100193024, -0.6293973922729492, -0.2691068649291992, -0.06259412318468094, -0.05062839388847351, 0.08125990629196167, -0.5656818747520447, 0.6810585856437683, 0.13988637924194336, -0.6932517290115356, 0.6025312542915344, -0.019427085295319557, 0.28697389364242554, -0.6080711483955383, 0.31205812096595764, -0.3031943440437317, 0.15995977818965912, -0.27422165870666504, -0.8860429525375366, 0.5747978091239929, 0.12180612981319427, -0.19180187582969666, -0.17326322197914124, 0.9598535895347595, -0.3219943046569824, -0.47060829401016235, 0.14592760801315308, 0.5694974064826965, 0.05186685174703598, -0.12823310494422913, -0.6627818942070007, 0.031539224088191986, 0.06493096798658371, -0.383938193321228, 0.04686472564935684, 0.416087806224823, 0.31307780742645264, 0.42604178190231323, 0.38427290320396423, 0.06627663224935532, 0.24744844436645508, -0.019470790401101112, 0.6138797998428345, -0.8277080059051514, -0.6712825298309326, -0.8992412090301514, 0.6336294412612915, -0.36046895384788513, -0.578548789024353, 0.8764083981513977, 0.8233873248100281, 0.6204126477241516, -0.019850697368383408, 0.8276394605636597, -0.2637218236923218, 0.6022487878799438, -0.39397284388542175, 0.6584324836730957, -0.5816364288330078, -0.20820632576942444, -0.279334157705307, -0.875637948513031, -0.341227263212204, 0.8150137066841125, -0.4927491843700409, 0.07372648268938065, 1.0095094442367554, 0.6920226216316223, 0.1991806924343109, -0.21266290545463562, 0.20196880400180817, 0.40264999866485596, 0.030441438779234886, 0.6238524317741394, 0.5115417242050171, -0.8323342800140381, 0.9604089260101318, -0.42982327938079834, -0.10013967007398605, -0.5185405611991882, -0.6308197379112244, -0.7598044276237488, -0.6385224461555481, -0.41183239221572876, -0.6942740082740784, 0.008396521210670471, 0.7760529518127441, 0.40647396445274353, -1.0240334272384644, -0.13774411380290985, -0.13582320511341095, 0.44074058532714844, -0.56996089220047, -0.35820654034614563, 0.46872326731681824, -0.22410733997821808, -0.7211319208145142, 0.24635986983776093, 0.3835778534412384, 0.03721872344613075, 0.21878750622272491, -0.07082756608724594, -0.5052669644355774, 0.23937542736530304, 0.6076027154922485, 0.5797626376152039, -0.5326072573661804, -0.5507583022117615, -0.09157826006412506, -0.3593508303165436, 0.005467365030199289, 0.4849841594696045, -0.6009344458580017, 0.38667434453964233, 0.8423176407814026, 0.18007716536521912, 0.6462079286575317, -0.06949950754642487, 0.09501955658197403, -0.8225108981132507, -0.013102277182042599, 0.3617474436759949, 0.507287859916687, 0.1231495663523674, -0.169199600815773, 0.5482981204986572, 0.6111339926719666, -0.7255101203918457, -0.7729672789573669, 0.020060228183865547, -1.4397884607315063, -0.11065436154603958, 0.9886543154716492, 0.02121475525200367, -0.22929930686950684, -0.1777935028076172, -0.1933056265115738, 0.6348261833190918, -0.11438252031803131, 0.8364080786705017, 1.0085961818695068, -0.041462235152721405, -0.08596629649400711, -0.6972481608390808, 0.4917249381542206, 0.40483358502388, -0.7525733113288879, 0.09400872886180878, 0.22932015359401703, 0.4623073637485504, 0.2242150753736496, 1.0190199613571167, -0.21127304434776306, 0.17675666511058807, 0.07114513963460922, 0.17043939232826233, -0.09693125635385513, -0.21148735284805298, -0.23484589159488678, 0.2660440504550934, -0.31922808289527893, -0.6132715940475464 ]
jackaduma/SecRoBERTa
jackaduma
"2023-06-26T05:55:27Z"
34,812
8
transformers
[ "transformers", "pytorch", "safetensors", "roberta", "fill-mask", "exbert", "security", "cybersecurity", "cyber security", "threat hunting", "threat intelligence", "en", "dataset:APTnotes", "dataset:Stucco-Data", "dataset:CASIE", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: en thumbnail: https://github.com/jackaduma tags: - exbert - security - cybersecurity - cyber security - threat hunting - threat intelligence license: apache-2.0 datasets: - APTnotes - Stucco-Data - CASIE --- # SecRoBERTa This is the pretrained model presented in [SecBERT: A Pretrained Language Model for Cyber Security Text](https://github.com/jackaduma/SecBERT/), which is a SecRoBERTa model trained on cyber security text. The training corpus was papers taken from * [APTnotes](https://github.com/kbandla/APTnotes) * [Stucco-Data: Cyber security data sources](https://stucco.github.io/data/) * [CASIE: Extracting Cybersecurity Event Information from Text](https://ebiquity.umbc.edu/_file_directory_/papers/943.pdf) * [SemEval-2018 Task 8: Semantic Extraction from CybersecUrity REports using Natural Language Processing (SecureNLP)](https://competitions.codalab.org/competitions/17262). SecRoBERTa has its own wordpiece vocabulary (secvocab) that's built to best match the training corpus. We trained [SecBERT](https://huggingface.co/jackaduma/SecBERT) and [SecRoBERTa](https://huggingface.co/jackaduma/SecRoBERTa) versions. Available models include: * [`SecBERT`](https://huggingface.co/jackaduma/SecBERT) * [`SecRoBERTa`](https://huggingface.co/jackaduma/SecRoBERTa) --- ## **Fill Mask** We proposed to build language model which work on cyber security text, as result, it can improve downstream tasks (NER, Text Classification, Semantic Understand, Q&A) in Cyber Security Domain. First, as below shows Fill-Mask pipeline in [Google Bert](), [AllenAI SciBert](https://github.com/allenai/scibert) and our [SecBERT](https://github.com/jackaduma/SecBERT) . <!-- <img src="./fill-mask-result.png" width="150%" height="150%"> --> ![fill-mask-result](https://github.com/jackaduma/SecBERT/blob/main/fill-mask-result.png?raw=true) --- The original repo can be found [here](https://github.com/jackaduma/SecBERT).
[ -0.3583498001098633, -0.6987894773483276, 0.33108025789260864, -0.025477943941950798, -0.40832963585853577, 0.2982650399208069, -0.08105313032865524, -0.6602683067321777, 0.44681286811828613, 0.6705655455589294, -0.599585235118866, -0.6342311501502991, -0.6436395645141602, -0.06422767788171768, -0.41017958521842957, 1.0944366455078125, 0.04008539393544197, 0.0693504586815834, 0.060780711472034454, 0.12581899762153625, -0.3987281918525696, -0.6808059215545654, -0.5078468322753906, -0.18779602646827698, 0.19212359189987183, 0.27859318256378174, 0.4830378592014313, 0.2615182399749756, 0.553817093372345, 0.35795265436172485, -0.14193670451641083, -0.03592545911669731, -0.2963055670261383, -0.15973317623138428, -0.09620301425457001, -0.29858124256134033, -0.28675365447998047, 0.1689184457063675, 0.2858940064907074, 0.15177355706691742, -0.031034529209136963, 0.23865315318107605, -0.06997771561145782, 0.33265987038612366, -0.8517200946807861, -0.06043356657028198, -0.7319576144218445, -0.1805257499217987, -0.27815383672714233, -0.13623937964439392, -0.4786229431629181, -0.18600986897945404, 0.3355589210987091, -0.5950244665145874, 0.22476910054683685, 0.07090519368648529, 1.3688818216323853, 0.11358384042978287, -0.13681325316429138, -0.2537273168563843, -0.5922166109085083, 0.5133752226829529, -0.6562368869781494, 0.3945421576499939, 0.34986424446105957, 0.22152496874332428, 0.05819137021899223, -1.1859333515167236, -0.6078908443450928, -0.175039604306221, -0.04177524521946907, 0.12247717380523682, -0.42615774273872375, -0.04364892840385437, 0.24301648139953613, 0.09770715236663818, -0.5958499908447266, 0.048176154494285583, -0.9971520304679871, -0.5064763426780701, 0.5979468822479248, -0.13465601205825806, 0.339166522026062, -0.02668611705303192, -0.6570090055465698, -0.33084025979042053, -0.6589742302894592, 0.20536382496356964, 0.39563119411468506, 0.20778301358222961, -0.35935789346694946, 0.172575905919075, -0.23144377768039703, 0.6590284109115601, -0.22281593084335327, -0.059840332716703415, 0.5141077041625977, -0.237930566072464, -0.43761757016181946, 0.06185300275683403, 0.9301848411560059, 0.03675731644034386, 0.20002985000610352, -0.11186578124761581, -0.03537440672516823, 0.16584032773971558, 0.648944616317749, -1.072447419166565, -0.5408948063850403, 0.22971177101135254, -0.27169984579086304, -0.5587934255599976, 0.17938962578773499, -0.6620023846626282, -0.10184278339147568, -0.4192805588245392, 0.7080152034759521, -0.6683467626571655, -0.07796354591846466, 0.15046705305576324, -0.08846632391214371, 0.24290110170841217, 0.31332507729530334, -0.4439822733402252, 0.2740708589553833, 0.6833488941192627, 0.8215412497520447, -0.0013719358248636127, -0.14791174232959747, -0.33423978090286255, -0.2277223765850067, -0.18389888107776642, 0.6050931811332703, -0.48954537510871887, 0.09860057383775711, -0.0031742637511342764, 0.1134973093867302, -0.1002916693687439, -0.11271575093269348, 0.676922619342804, -0.9373072981834412, 0.5197931528091431, 0.06750387698411942, -0.41360634565353394, -0.3836651146411896, 0.12825597822666168, -0.5521728992462158, 0.6773703098297119, -0.008000463247299194, -1.1944868564605713, 0.26430442929267883, -0.6228625178337097, -0.026075413450598717, 0.23959693312644958, -0.0383605882525444, -0.4611741602420807, -0.2728555500507355, 0.10027849674224854, 0.398068904876709, -0.2548155188560486, 0.2297886461019516, -0.4281732738018036, -0.32828158140182495, 0.47362157702445984, 0.011522741056978703, 1.2043853998184204, 0.34510576725006104, -0.39146050810813904, 0.2696008086204529, -0.7087048888206482, -0.034230634570121765, 0.03488358482718468, 0.2369571328163147, -0.35449254512786865, -0.17757548391819, 0.09226930886507034, 0.36226388812065125, 0.4624096155166626, -0.7178593277931213, -0.16497880220413208, -0.5857745409011841, 0.3715444505214691, 0.7873517870903015, -0.0352841392159462, 0.4965035915374756, -0.16259828209877014, 0.7220017910003662, 0.09955663979053497, 0.3021959066390991, -0.13461615145206451, -0.2546100616455078, -0.8200247287750244, -0.723808765411377, 0.5602928400039673, 0.9059199690818787, -0.8237878084182739, 0.3819677233695984, -0.13678303360939026, -0.8983259797096252, -0.5210238099098206, -0.1392488032579422, 0.4142308533191681, 0.5491178631782532, 0.3969730734825134, -0.4361993372440338, -0.6780550479888916, -0.938988447189331, 0.09204790741205215, -0.21625399589538574, -0.04124706983566284, -0.12222334742546082, 0.6837691068649292, -0.3355126976966858, 0.9099385738372803, -0.7693979740142822, -0.12594418227672577, -0.11024022847414017, 0.14673249423503876, 0.1401422619819641, 0.4139847159385681, 0.5282680988311768, -0.6824561357498169, -0.21652016043663025, -0.2519846260547638, -0.6238661408424377, -0.13164319097995758, 0.0333239808678627, -0.24006977677345276, 0.05433712527155876, 0.5973272323608398, -0.40251603722572327, 0.4935946762561798, 0.48224571347236633, -0.5068953633308411, 0.75152587890625, 0.004624101798981428, 0.0028902653139084578, -1.5445737838745117, 0.27674829959869385, -0.19689679145812988, -0.3060242533683777, -0.9105963706970215, 0.5042697191238403, 0.16441772878170013, -0.3714825212955475, -0.7168298363685608, 0.5965933799743652, -0.409357488155365, 0.1814081072807312, -0.28940221667289734, 0.34590092301368713, -0.09177573770284653, 0.6276782751083374, 0.11281657963991165, 0.877858579158783, 0.7951794862747192, -0.6027677059173584, 0.23282240331172943, 0.34823718667030334, -0.19586899876594543, 0.18262609839439392, -0.9570160508155823, 0.09290844947099686, 0.050463199615478516, 0.16765280067920685, -0.7568985819816589, -0.2762848436832428, 0.596712589263916, -0.6309440732002258, 0.30986979603767395, 0.017010070383548737, -0.4320977032184601, -0.2592184245586395, -0.5598980188369751, 0.28821465373039246, 0.5108997821807861, -0.3405490815639496, 0.2953759431838989, 0.8187972903251648, -0.18956834077835083, -0.7949721813201904, -0.5269587635993958, 0.04386570677161217, -0.28476372361183167, -0.7136057615280151, 0.461799681186676, 0.002639481332153082, -0.0747213289141655, -0.17120333015918732, 0.05599869415163994, -0.4468405842781067, 0.3728436231613159, 0.3509107530117035, 0.7444959878921509, -0.15070270001888275, 0.20196357369422913, -0.27623242139816284, -0.047663364559412, 0.12084957957267761, -0.12246419489383698, 0.7364221811294556, -0.4614972472190857, -0.2811858057975769, -0.5629446506500244, 0.005472253542393446, 0.2163013070821762, -0.429871529340744, 0.9407734274864197, 0.7329576015472412, -0.41064661741256714, -0.0496450699865818, -0.5194883942604065, -0.4628293216228485, -0.5079804062843323, 0.011014030314981937, -0.15035812556743622, -1.360376238822937, 0.5875447392463684, 0.08995278924703598, -0.050259221345186234, 0.5752617716789246, 0.3177449703216553, 0.031069748103618622, 0.32901903986930847, 0.6820672750473022, -0.19219635426998138, 0.5773548483848572, -0.3689703345298767, 0.2914012670516968, -0.8199523091316223, -0.14399629831314087, -0.7108213901519775, 0.017800044268369675, -0.8802710175514221, -0.23779769241809845, 0.22878825664520264, 0.3667406439781189, -0.27474331855773926, 1.0229036808013916, -0.6802356839179993, 0.20566317439079285, 0.5045027732849121, 0.21986983716487885, -0.07758727669715881, 0.04307576268911362, -0.11641749739646912, 0.010715416632592678, -0.7281865477561951, -0.7046529054641724, 1.0151526927947998, 0.5326641798019409, 0.5746473073959351, 0.09035181999206543, 1.0067132711410522, 0.08876534551382065, 0.1546526700258255, -0.30989131331443787, 0.5983356237411499, 0.04841741919517517, -0.6706905364990234, -0.18924540281295776, -0.3775419294834137, -1.279703140258789, 0.22417886555194855, -0.2840757369995117, -1.2845996618270874, 0.2290266752243042, 0.022375738248229027, -0.3347158432006836, 0.13234016299247742, -0.4718988537788391, 1.0204823017120361, 0.2048613429069519, -0.18447302281856537, -0.3235512673854828, -0.7509764432907104, 0.6600592732429504, -0.23877769708633423, 0.2653055787086487, -0.02861938066780567, 0.03730647265911102, 0.9284855723381042, -0.4774591624736786, 1.1270338296890259, 0.09484712779521942, 0.07748404145240784, 0.525659441947937, -0.01284713577479124, 0.4531804621219635, 0.11938995867967606, 0.20988868176937103, 0.3172467350959778, 0.20952288806438446, -0.17020776867866516, -0.22905202209949493, 0.34474581480026245, -0.8824538588523865, -0.41110578179359436, -0.883258581161499, -0.021117432042956352, 0.14701123535633087, 0.19875489175319672, 0.5446314811706543, 0.6877811551094055, -0.27446848154067993, 0.3690944314002991, 0.8842608332633972, -0.30385658144950867, 0.4378998577594757, 0.6821811199188232, -0.22120189666748047, -0.46696585416793823, 0.7186996936798096, -0.08643944561481476, 0.09427962452173233, 0.5438770651817322, -0.0636412724852562, -0.16528359055519104, -0.3746219575405121, -0.22764179110527039, 0.32279515266418457, -0.6055402159690857, -0.45702433586120605, -0.9444434642791748, -0.8816225528717041, -0.6317013502120972, -0.22067445516586304, -0.12049678713083267, -0.6368333101272583, -0.628491222858429, -0.04967546835541725, 0.5384994745254517, 0.19047053158283234, -0.04398691654205322, 0.6108042597770691, -0.9616408348083496, 0.12070944905281067, 0.09948744624853134, -0.09577163308858871, -0.2893209159374237, -0.8113739490509033, -0.2839664816856384, -0.17119228839874268, -0.5076062083244324, -1.2237145900726318, 0.5564070343971252, -0.050438012927770615, 0.5077758431434631, 0.24891577661037445, 0.13921456038951874, 0.3936656415462494, -0.3841342329978943, 0.8922867774963379, 0.21692685782909393, -1.0447781085968018, 0.6875554323196411, -0.2854403555393219, 0.3366492986679077, 0.7674487233161926, 0.4349519610404968, -0.4813482165336609, -0.6038379073143005, -1.1752899885177612, -1.0478063821792603, 0.9237587451934814, 0.5592897534370422, 0.16093392670154572, 0.08977354317903519, -0.08480279892683029, -0.1781688928604126, 0.3050793409347534, -0.8819802403450012, -0.12517815828323364, -0.062098290771245956, -0.08502103388309479, 0.19052858650684357, -0.4208272397518158, -0.24639341235160828, 0.17413055896759033, 1.0074422359466553, 0.03395518288016319, 0.46558281779289246, 0.1666654348373413, -0.28398045897483826, 0.37969064712524414, 0.36588332056999207, 0.9230161309242249, 0.728780210018158, -0.13737741112709045, 0.04553859680891037, 0.3719719648361206, -0.6746127009391785, -0.129205122590065, 0.25804850459098816, -0.3975242078304291, 0.19968557357788086, 0.7115073204040527, 0.9670705199241638, 0.1164592057466507, -0.7013228535652161, 0.8681938052177429, -0.059859439730644226, -0.10632012039422989, -0.7844098210334778, 0.2154759019613266, -0.06704921275377274, 0.22767826914787292, 0.1974138617515564, 0.07876582443714142, 0.27610865235328674, -0.33673956990242004, 0.5473727583885193, 0.3886999487876892, -0.5230953097343445, -0.399048388004303, 0.5543233752250671, 0.15773600339889526, -0.35405629873275757, 0.3632444441318512, -0.49283167719841003, -0.8789793848991394, 0.45495709776878357, 0.41200757026672363, 1.2222768068313599, -0.14917036890983582, 0.548303484916687, 0.5907622575759888, 0.6288743019104004, 0.22280193865299225, 0.4447183907032013, -0.07881119847297668, -0.7636706829071045, -0.4067972004413605, -0.8634868264198303, -0.13679294288158417, 0.27283820509910583, -0.3494725525379181, 0.4341541826725006, -0.6704349517822266, -0.12299295514822006, -0.023598626255989075, -0.013717249035835266, -0.7404299974441528, 0.25862303376197815, -0.07602249085903168, 1.1643933057785034, -0.8624446392059326, 0.7989323735237122, 0.502055287361145, -0.44110527634620667, -1.036057949066162, -0.15497423708438873, -0.08665965497493744, -0.6822215914726257, 0.8144901394844055, 0.16917091608047485, 0.036823078989982605, -0.4646485149860382, -0.6306824684143066, -1.0893276929855347, 1.1255266666412354, 0.22559763491153717, -0.4722610414028168, 0.14719541370868683, 0.043545033782720566, 0.673332691192627, -0.5154837369918823, 0.3010002076625824, 0.18526555597782135, 0.11179327964782715, 0.12233108282089233, -0.9103205800056458, 0.18599289655685425, -0.3082074224948883, -0.044753797352313995, 0.19812282919883728, -0.5934306979179382, 0.8999226093292236, 0.15877245366573334, -0.3391071856021881, -0.10226688534021378, 0.8944353461265564, 0.4078892469406128, 0.41049516201019287, 0.39313554763793945, 0.7320484519004822, 0.6870580911636353, -0.047530919313430786, 0.7075589299201965, -0.4800092577934265, 0.25935080647468567, 1.3775476217269897, 0.04297810047864914, 0.8765720725059509, 0.13767825067043304, 0.020755484700202942, 0.7617763876914978, 0.7352717518806458, -0.03604862466454506, 0.5038596987724304, 0.18158084154129028, -0.2431637942790985, -0.040102336555719376, 0.04843504726886749, -0.46179884672164917, 0.6846954226493835, 0.23931534588336945, -0.4566487967967987, -0.12584425508975983, -0.13284215331077576, 0.3115626871585846, -0.13683053851127625, -0.02150675840675831, 0.7960782647132874, 0.09562631696462631, -0.4488773047924042, 0.5083926320075989, 0.19154489040374756, 0.5054669976234436, -0.7360060811042786, 0.25555509328842163, 0.2139105647802353, -0.11715070903301239, 0.03601357340812683, -0.48619961738586426, 0.4880790710449219, 0.15956895053386688, 0.1926967352628708, -0.0038211382925510406, 1.0516034364700317, -0.37668895721435547, -0.5851935744285583, 0.21535609662532806, 0.046452123671770096, 0.33699190616607666, 0.07705134898424149, -0.6972991228103638, 0.07074981182813644, -0.001422878005541861, -0.09479482471942902, 0.20392809808254242, 0.32603561878204346, 0.013876649551093578, 0.5593928694725037, 0.7996370792388916, 0.12787333130836487, -0.11139586567878723, -0.17439503967761993, 0.9816660284996033, -0.3293467164039612, -0.7105878591537476, -0.8798505663871765, 0.6262819766998291, -0.5737496614456177, -0.5601576566696167, 0.657552182674408, 0.5755740404129028, 0.9364979267120361, -0.22585871815681458, 0.5077657699584961, -0.08532575517892838, 0.39456719160079956, -0.6602886915206909, 0.6731550693511963, -0.42506301403045654, 0.09934470802545547, -0.46443644165992737, -0.8491615653038025, 0.008697867393493652, 0.5979185104370117, -0.1629979908466339, -0.26499783992767334, 0.7635566592216492, 1.1064002513885498, -0.1211155578494072, 0.04613848775625229, 0.14736616611480713, -0.030897127464413643, 0.12077215313911438, 0.27015605568885803, 0.6516042947769165, -0.6664302349090576, 0.3503671884536743, -0.16502009332180023, -0.3405020534992218, -0.2935764193534851, -0.8631452918052673, -0.9394561648368835, -0.8146294951438904, -0.4915802478790283, -0.49333420395851135, 0.047993484884500504, 0.9328761100769043, 0.9229831099510193, -0.9413586258888245, -0.042708415538072586, 0.0019351209048181772, 0.007203138433396816, 0.07930050045251846, -0.2184201180934906, 0.23896069824695587, -0.37608855962753296, -0.34831884503364563, 0.27793508768081665, 0.10577771812677383, 0.12677501142024994, -0.06833576411008835, 0.12013032287359238, -0.29477155208587646, 0.28077995777130127, 0.42229360342025757, 0.2848816514015198, -0.6085447669029236, -0.42521440982818604, 0.0530729666352272, -0.28425440192222595, -0.32731741666793823, 0.6175068020820618, -0.6977755427360535, 0.19441357254981995, 0.7840796709060669, 0.720236599445343, 0.6505700349807739, -0.3687507212162018, 0.4241763949394226, -0.876847505569458, 0.3625665307044983, 0.13700632750988007, 0.42937055230140686, 0.291143536567688, -0.3197689950466156, 0.742137610912323, 0.2316650003194809, -0.5380858182907104, -0.7802437543869019, 0.31854432821273804, -1.0282106399536133, -0.43804067373275757, 0.9641457200050354, -0.2181270718574524, -0.34253790974617004, 0.1444038301706314, -0.14324194192886353, 0.4265666902065277, -0.35270681977272034, 0.8083170652389526, 0.6885045170783997, 0.38711026310920715, -0.15757600963115692, -0.32292020320892334, 0.6851134896278381, 0.07057170569896698, -0.9277801513671875, -0.1906737983226776, 0.33956727385520935, 0.20356547832489014, 0.6101935505867004, 0.7987476587295532, 0.011710990220308304, 0.2985745966434479, -0.19534099102020264, 0.20112626254558563, 0.06478096544742584, -0.5811941623687744, -0.28228312730789185, 0.17841343581676483, -0.22988693416118622, -0.35407310724258423 ]
timm/pnasnet5large.tf_in1k
timm
"2023-05-10T01:08:21Z"
34,728
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:1712.00559", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-25T21:35:29Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for pnasnet5large.tf_in1k A PNasNet image classification model. Trained on ImageNet-1k by paper authors. Ported from Tensorflow via Cadene's pretrained-models.pytorch. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 86.1 - GMACs: 25.0 - Activations (M): 92.9 - Image size: 331 x 331 - **Papers:** - Progressive Neural Architecture Search: https://arxiv.org/abs/1712.00559 - **Original:** - https://github.com/tensorflow/models - https://github.com/Cadene/pretrained-models.pytorch - **Dataset:** ImageNet-1k ## 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('pnasnet5large.tf_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) ``` ### 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( 'pnasnet5large.tf_in1k', 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, 96, 165, 165]) # torch.Size([1, 270, 83, 83]) # torch.Size([1, 1080, 42, 42]) # torch.Size([1, 2160, 21, 21]) # torch.Size([1, 4320, 11, 11]) 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( 'pnasnet5large.tf_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, 4320, 11, 11) 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 @misc{liu2018progressive, title={Progressive Neural Architecture Search}, author={Chenxi Liu and Barret Zoph and Maxim Neumann and Jonathon Shlens and Wei Hua and Li-Jia Li and Li Fei-Fei and Alan Yuille and Jonathan Huang and Kevin Murphy}, year={2018}, eprint={1712.00559}, archivePrefix={arXiv}, primaryClass={cs.CV} } ```
[ -0.3853951096534729, -0.44264301657676697, 0.006377116311341524, 0.21316981315612793, -0.34448400139808655, -0.2891753315925598, -0.24941237270832062, -0.2515721619129181, 0.3241090774536133, 0.39266476035118103, -0.44510960578918457, -0.7733497023582458, -0.678346574306488, -0.17715515196323395, -0.12537544965744019, 0.9371199607849121, -0.16251075267791748, -0.03908686339855194, -0.13452109694480896, -0.42183321714401245, -0.11943172663450241, -0.31730934977531433, -0.8978440165519714, -0.512147068977356, 0.3764802813529968, 0.1504567712545395, 0.4699671268463135, 0.5521261692047119, 0.6243487000465393, 0.4915293753147125, -0.17617543041706085, 0.016579002141952515, -0.2374173402786255, -0.21026122570037842, 0.4444766342639923, -0.6201314926147461, -0.5596585869789124, 0.22527602314949036, 0.790113627910614, 0.47962379455566406, 0.08823613077402115, 0.4444183111190796, 0.09742999076843262, 0.49951809644699097, -0.2573484182357788, 0.10412850230932236, -0.3257022202014923, 0.3808234930038452, -0.21797503530979156, 0.044838957488536835, -0.26518183946609497, -0.4897773563861847, 0.3886585235595703, -0.5076035857200623, 0.4487302899360657, -0.09535003453493118, 1.386142611503601, 0.25263139605522156, 0.012632301077246666, -0.0624760165810585, -0.18911725282669067, 0.7182162404060364, -0.8899945020675659, 0.22712832689285278, 0.34071654081344604, 0.1260124146938324, -0.15475326776504517, -1.1749368906021118, -0.5157942771911621, -0.2589390277862549, -0.13231945037841797, -0.07950784265995026, -0.15510018169879913, 0.12231753021478653, 0.26337337493896484, 0.37274155020713806, -0.5059016942977905, 0.1066746786236763, -0.5678853392601013, -0.21515320241451263, 0.49262118339538574, -0.012621860019862652, 0.2932797074317932, -0.13548190891742706, -0.525341272354126, -0.40729254484176636, -0.3193787634372711, 0.2961595058441162, 0.3788307011127472, 0.15955203771591187, -0.543639600276947, 0.33080294728279114, 0.2085345983505249, 0.5766584873199463, 0.13192477822303772, -0.3353877365589142, 0.7252980470657349, 0.04527590796351433, -0.558679461479187, -0.03845541924238205, 1.0850255489349365, 0.24168501794338226, 0.21357788145542145, 0.015621233731508255, -0.14329995214939117, -0.3704569637775421, 0.01062789373099804, -1.1501235961914062, -0.472971647977829, 0.34081587195396423, -0.6886430382728577, -0.4700888991355896, 0.3136829733848572, -0.6455994844436646, -0.12290210276842117, 0.059154197573661804, 0.6209452152252197, -0.4211769998073578, -0.5117364525794983, 0.10606997460126877, -0.15424513816833496, 0.2959655225276947, 0.05499731004238129, -0.466580331325531, 0.135987788438797, 0.26388436555862427, 1.2254157066345215, 0.06301169097423553, -0.5228087902069092, -0.10253366827964783, -0.4226265847682953, -0.32916563749313354, 0.38925403356552124, -0.00976051576435566, -0.09957998245954514, -0.3147311508655548, 0.3605708181858063, -0.1863730102777481, -0.7421427965164185, 0.3041253983974457, -0.2549062967300415, 0.22641721367835999, -0.00518154026940465, -0.25895431637763977, -0.5620266199111938, 0.28927871584892273, -0.4941283166408539, 1.1861989498138428, 0.30572986602783203, -0.7712615728378296, 0.32845181226730347, -0.740042507648468, -0.18875820934772491, -0.30953291058540344, 0.05579226836562157, -1.2252579927444458, -0.09577979147434235, 0.1392696052789688, 0.783440887928009, -0.17379049956798553, 0.08050835132598877, -0.5634257793426514, -0.26577067375183105, 0.37545129656791687, -0.06420626491308212, 1.0392831563949585, 0.12318796664476395, -0.5276936888694763, 0.3190356492996216, -0.5604022741317749, 0.12470201402902603, 0.5206530094146729, -0.3262713551521301, 0.09509102255105972, -0.5774348974227905, 0.0530330054461956, 0.3213651776313782, 0.18086488544940948, -0.5969212651252747, 0.14627677202224731, -0.22454515099525452, 0.5135141611099243, 0.6647489666938782, -0.10563242435455322, 0.3560252785682678, -0.3993542790412903, 0.30060309171676636, 0.43979957699775696, 0.2226477861404419, -0.018606651574373245, -0.5288333892822266, -0.8927264213562012, -0.49830225110054016, 0.38515904545783997, 0.29412713646888733, -0.4702703058719635, 0.5210379958152771, -0.14218710362911224, -0.7493588924407959, -0.5300393104553223, 0.09985514730215073, 0.500765860080719, 0.6141149401664734, 0.32442277669906616, -0.538475751876831, -0.5482136607170105, -0.8463989496231079, 0.1513221263885498, -0.01591983623802662, 0.01720377989113331, 0.2709451913833618, 0.6901987195014954, -0.009027546271681786, 0.5528035759925842, -0.38720956444740295, -0.28762343525886536, -0.15738339722156525, 0.12572617828845978, 0.4670979380607605, 0.8614487648010254, 0.7762725353240967, -0.642402708530426, -0.4058275520801544, -0.2199798971414566, -0.9724642038345337, 0.25513988733291626, -0.10990522056818008, -0.25681090354919434, 0.2807037830352783, 0.15427760779857635, -0.6115536689758301, 0.5974856615066528, 0.16047248244285583, -0.3782356381416321, 0.43026402592658997, -0.230434387922287, 0.20832706987857819, -1.0968908071517944, 0.19518344104290009, 0.3994542360305786, -0.08526091277599335, -0.476938396692276, 0.05836882442235947, -0.020747270435094833, -0.09281403571367264, -0.5778858065605164, 0.555559515953064, -0.6185627579689026, -0.2737515866756439, -0.07853376120328903, -0.3459308445453644, 0.025286925956606865, 0.8026579022407532, -0.07387638092041016, 0.4268432855606079, 0.8293038606643677, -0.5746997594833374, 0.5094610452651978, 0.4370206296443939, -0.2547083795070648, 0.27417683601379395, -0.6724756956100464, 0.32918059825897217, -0.08420253545045853, 0.2973077595233917, -1.0280218124389648, -0.2435758262872696, 0.3957383334636688, -0.6544138789176941, 0.6407288908958435, -0.4922569692134857, -0.3905590772628784, -0.5738173127174377, -0.4693153500556946, 0.3557477593421936, 0.6719412803649902, -0.7583246231079102, 0.4538147449493408, 0.2669183015823364, 0.3286146819591522, -0.560351550579071, -1.002366304397583, -0.2289893925189972, -0.43036165833473206, -0.740691602230072, 0.40282270312309265, 0.18283994495868683, 0.15910600125789642, 0.16900135576725006, -0.13182702660560608, -0.160720095038414, -0.05225619673728943, 0.507256269454956, 0.34001919627189636, -0.5280336141586304, -0.053727347403764725, -0.38125237822532654, 0.04254918172955513, 0.04483100399374962, -0.4414556622505188, 0.7156028151512146, -0.3365696966648102, -0.10808125883340836, -0.9002291560173035, -0.17263583838939667, 0.5481116771697998, -0.17738360166549683, 0.853476345539093, 1.0974310636520386, -0.5455546975135803, -0.017358161509037018, -0.3720206916332245, -0.2830808758735657, -0.4934532046318054, 0.5306299924850464, -0.43601295351982117, -0.4136056900024414, 0.8501015305519104, 0.004789006896317005, 0.11757626384496689, 0.6621798872947693, 0.39341288805007935, -0.09878621250391006, 0.6529163122177124, 0.48815056681632996, 0.22305145859718323, 0.7330964803695679, -1.071286916732788, -0.186573788523674, -0.8616985082626343, -0.5748699903488159, -0.33191606402397156, -0.7666686773300171, -0.6160770058631897, -0.3060377836227417, 0.40454068779945374, 0.15822362899780273, -0.4818672835826874, 0.4682440161705017, -0.8815242052078247, 0.09556473046541214, 0.6324668526649475, 0.6707351207733154, -0.4774625897407532, 0.24036702513694763, -0.2789263129234314, 0.0535648949444294, -0.7756131887435913, -0.2637437880039215, 1.191258192062378, 0.5945703983306885, 0.5262908339500427, -0.10768745839595795, 0.7185588479042053, -0.31154295802116394, 0.3009983003139496, -0.6058141589164734, 0.6324625015258789, -0.2408161163330078, -0.4154098331928253, -0.12941324710845947, -0.39918917417526245, -1.0886318683624268, 0.021265460178256035, -0.2876186966896057, -0.6438192129135132, 0.203542098402977, 0.12129389494657516, -0.3340040147304535, 0.8500570058822632, -0.8970770835876465, 1.0494749546051025, -0.18948189914226532, -0.4108778238296509, 0.11646703630685806, -0.6273866891860962, 0.27883777022361755, 0.24283038079738617, -0.4252258837223053, -0.05588188394904137, 0.10970723628997803, 1.1615909337997437, -0.5114469528198242, 0.8824186325073242, -0.5838429927825928, 0.4711923599243164, 0.45330771803855896, -0.12502749264240265, 0.2451433688402176, -0.17230826616287231, -0.1457224190235138, 0.3532436192035675, -0.050550512969493866, -0.5805226564407349, -0.5260670185089111, 0.6424056887626648, -1.0421429872512817, -0.30877742171287537, -0.3681938052177429, -0.42782458662986755, 0.1824926733970642, 0.053195200860500336, 0.5080655217170715, 0.6511186957359314, 0.25550493597984314, 0.32589176297187805, 0.6658173203468323, -0.42954471707344055, 0.5191001296043396, -0.18646661937236786, -0.17317886650562286, -0.4596562385559082, 0.8469929695129395, 0.24368713796138763, 0.07948794215917587, 0.07461009174585342, 0.18097668886184692, -0.4094439148902893, -0.7373884320259094, -0.264382928609848, 0.2989765703678131, -0.6732215285301208, -0.4148276448249817, -0.5732415914535522, -0.4682233929634094, -0.38565510511398315, -0.015720512717962265, -0.4337729215621948, -0.25924187898635864, -0.47098299860954285, 0.19274093210697174, 0.6044444441795349, 0.585525393486023, -0.019034212455153465, 0.6255896091461182, -0.48403236269950867, 0.06750334799289703, 0.04183189943432808, 0.5691273808479309, -0.021284228190779686, -0.8734358549118042, -0.205142542719841, -0.14435288310050964, -0.4892505407333374, -0.7700523734092712, 0.5043667554855347, 0.2302463948726654, 0.5606697797775269, 0.3904598653316498, -0.29074323177337646, 0.7966614365577698, 0.06559466570615768, 0.5900231003761292, 0.3476039171218872, -0.5312981605529785, 0.5876038670539856, 0.04937015101313591, 0.24463926255702972, 0.1193334087729454, 0.40464115142822266, -0.1538529098033905, 0.013747211545705795, -0.9929988980293274, -0.7843711376190186, 0.8732671737670898, 0.12113837897777557, -0.022022107616066933, 0.32789528369903564, 0.7618098855018616, 0.007344248704612255, 0.06907285004854202, -0.6731936931610107, -0.3988282382488251, -0.4482065737247467, -0.3150940239429474, 0.011749385856091976, 0.03318489342927933, 0.04166721552610397, -0.666473925113678, 0.7349288463592529, -0.024207551032304764, 0.8821468949317932, 0.42890068888664246, -0.08586499094963074, -0.06742940843105316, -0.5126573443412781, 0.5205690860748291, 0.34447139501571655, -0.3847540616989136, 0.04305567964911461, 0.19175399839878082, -0.6407330632209778, 0.0867796242237091, 0.12368836998939514, 0.03633103147149086, 0.0891214981675148, 0.44064798951148987, 1.0938200950622559, 0.019844042137265205, 0.15292121469974518, 0.35878217220306396, -0.06464210152626038, -0.3962298631668091, -0.34705281257629395, 0.08796333521604538, -0.012624812312424183, 0.4188973009586334, 0.31519463658332825, 0.4057876169681549, -0.20601427555084229, -0.2769729793071747, 0.3069893419742584, 0.4725780189037323, -0.2073863297700882, -0.42369309067726135, 0.6395050883293152, -0.1722334325313568, -0.28055766224861145, 0.8998022675514221, -0.09040625393390656, -0.559053897857666, 1.137074589729309, 0.41323763132095337, 1.0447871685028076, -0.024821236729621887, 0.06075800582766533, 0.8878885507583618, 0.17100398242473602, -0.06526196748018265, 0.14526192843914032, 0.14322923123836517, -0.7189434170722961, 0.03416235372424126, -0.7119792699813843, 0.0986841693520546, 0.507095217704773, -0.4400503933429718, 0.28566789627075195, -0.8898095488548279, -0.4813937246799469, 0.2265239655971527, 0.4038994312286377, -0.9082561731338501, 0.2297167181968689, 0.009608904831111431, 0.8654516935348511, -0.6952130794525146, 0.8332473039627075, 0.9709638953208923, -0.6947068572044373, -1.0921763181686401, 0.07690722495317459, -0.04839741066098213, -0.8869029879570007, 0.6261479258537292, 0.41299697756767273, 0.20092995464801788, 0.14688171446323395, -0.7676476240158081, -0.6129244565963745, 1.4633080959320068, 0.6064949631690979, -0.030678605660796165, 0.08969635516405106, -0.079293392598629, 0.25853532552719116, -0.4773305058479309, 0.4672236442565918, 0.26663830876350403, 0.35845765471458435, 0.35936617851257324, -0.7371140718460083, 0.20860350131988525, -0.2895423471927643, 0.09733131527900696, 0.2434508502483368, -0.7885501384735107, 1.0427602529525757, -0.405630499124527, -0.10421963781118393, 0.03273969143629074, 0.7697596549987793, 0.23662066459655762, 0.1459861695766449, 0.5190118551254272, 0.8411136269569397, 0.6161298155784607, -0.3078421950340271, 0.8185176253318787, -0.0053498935885727406, 0.5903235673904419, 0.5521699786186218, 0.41862115263938904, 0.5226666331291199, 0.39528122544288635, -0.25597766041755676, 0.4352312982082367, 1.2107638120651245, -0.36914145946502686, 0.3151160478591919, 0.23412175476551056, -0.04403131455183029, -0.0450018048286438, 0.19430069625377655, -0.375492125749588, 0.5473308563232422, 0.147933229804039, -0.6281123161315918, -0.2322048842906952, -0.0016267260070890188, 0.036554064601659775, -0.37266451120376587, -0.29256653785705566, 0.4850688874721527, 0.005128881428390741, -0.453998327255249, 0.880847156047821, 0.07523961365222931, 0.9821003079414368, -0.41858452558517456, 0.06789323687553406, -0.29224106669425964, 0.30131542682647705, -0.4111363887786865, -0.8488661050796509, 0.37291648983955383, -0.33624669909477234, 0.09869688004255295, 0.009373706765472889, 0.6846652030944824, -0.3835822343826294, -0.3843023478984833, 0.15442270040512085, 0.2605109214782715, 0.5961353778839111, 0.06285006552934647, -1.2499072551727295, 0.11945093423128128, 0.020164798945188522, -0.6493597030639648, 0.3479622006416321, 0.31515538692474365, 0.11942111700773239, 0.6914610266685486, 0.6025933027267456, -0.029541252180933952, 0.24671022593975067, -0.2643267512321472, 0.7705926299095154, -0.44243812561035156, -0.3593902587890625, -0.8278988599777222, 0.6313425302505493, -0.1000661700963974, -0.7224361896514893, 0.38232988119125366, 0.568341851234436, 0.8904687762260437, -0.04655519872903824, 0.37830498814582825, -0.24685129523277283, -0.11987496167421341, -0.4407627284526825, 0.879101037979126, -0.6639469265937805, -0.10043368488550186, -0.0506172738969326, -0.6598007082939148, -0.34577736258506775, 0.791663646697998, -0.2990681529045105, 0.41218793392181396, 0.524907648563385, 1.0462889671325684, -0.3847888708114624, -0.29854586720466614, 0.1683652549982071, 0.23945727944374084, 0.059552282094955444, 0.5088344216346741, 0.3146790564060211, -0.761332094669342, 0.3329014480113983, -0.6197679042816162, -0.13513807952404022, -0.027433518320322037, -0.630271315574646, -1.0381312370300293, -0.9610210657119751, -0.6280968189239502, -0.7558668255805969, -0.1514182984828949, 1.0317668914794922, 1.1354303359985352, -0.7118899822235107, -0.16186456382274628, -0.0047125304117798805, 0.07917162030935287, -0.1936478316783905, -0.21409918367862701, 0.685219943523407, -0.24561640620231628, -0.691091775894165, -0.27654409408569336, -0.05452275276184082, 0.4001674950122833, -0.16879789531230927, -0.27385619282722473, -0.3122183680534363, -0.3208034336566925, 0.15183869004249573, 0.3367116153240204, -0.6225452423095703, -0.10926508158445358, -0.21262291073799133, -0.123089998960495, 0.5043346881866455, 0.4588533937931061, -0.5921441316604614, 0.23842452466487885, 0.4308009445667267, 0.4832700788974762, 0.9411949515342712, -0.43849679827690125, 0.03487543761730194, -0.8996181488037109, 0.5775927901268005, 0.02541053108870983, 0.42069703340530396, 0.4449235498905182, -0.3673480451107025, 0.5205816030502319, 0.4506356716156006, -0.3949185907840729, -0.9073951840400696, -0.1605578362941742, -0.939929187297821, -0.12021426111459732, 0.8101895451545715, -0.5732184648513794, -0.6597434282302856, 0.43253010511398315, 0.06704986840486526, 0.7953587174415588, -0.08383102715015411, 0.518909752368927, 0.33530211448669434, -0.13298314809799194, -0.6711222529411316, -0.526481032371521, 0.47280368208885193, 0.21607916057109833, -0.6385637521743774, -0.6103424429893494, -0.11197348684072495, 0.7331122756004333, 0.2280501425266266, 0.5171834826469421, -0.19626186788082123, 0.18412038683891296, 0.08391041308641434, 0.46158361434936523, -0.5195005536079407, -0.1349891573190689, -0.4360741674900055, 0.17049182951450348, -0.11355998367071152, -0.7909629344940186 ]
Qiliang/bart-large-cnn-samsum-ChatGPT_v3
Qiliang
"2022-12-13T17:45:10Z"
34,621
26
transformers
[ "transformers", "pytorch", "bart", "text2text-generation", "generated_from_trainer", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
text2text-generation
"2022-12-13T17:32:47Z"
--- license: mit tags: - generated_from_trainer model-index: - name: bart-large-cnn-samsum-ChatGPT_v3 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. --> # bart-large-cnn-samsum-ChatGPT_v3 This model is a fine-tuned version of [philschmid/bart-large-cnn-samsum](https://huggingface.co/philschmid/bart-large-cnn-samsum) on an unknown dataset. ## 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: 4 - eval_batch_size: 4 - seed: 42 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: linear - num_epochs: 3 - mixed_precision_training: Native AMP ### Framework versions - Transformers 4.24.0 - Pytorch 1.12.1 - Datasets 2.6.1 - Tokenizers 0.13.2
[ -0.6273592114448547, -0.7778422832489014, 0.16272878646850586, 0.14945316314697266, -0.6155886054039001, -0.35175734758377075, -0.3467790186405182, -0.28699249029159546, 0.35228028893470764, 0.5160905718803406, -0.6475447416305542, -0.507118284702301, -0.7523783445358276, -0.071646548807621, -0.2123197764158249, 1.4058409929275513, 0.08967240154743195, 0.5835492610931396, -0.16189558804035187, 0.06427541375160217, -0.23651424050331116, -0.5325074791908264, -1.1365611553192139, -0.513056218624115, 0.44848260283470154, 0.3877991735935211, 0.795541524887085, 0.7016167640686035, 0.9289769530296326, 0.31919828057289124, -0.34558993577957153, -0.02550295926630497, -0.6648377776145935, -0.35695719718933105, -0.12132544815540314, -0.3665299415588379, -0.848639726638794, 0.07931269705295563, 0.8124980926513672, 0.4042373597621918, -0.22062388062477112, 0.6219117045402527, -0.018839798867702484, 0.358574777841568, -0.38010066747665405, 0.5631820559501648, -0.622965395450592, 0.27799203991889954, -0.06522087752819061, -0.37158501148223877, -0.3600381016731262, -0.2300693690776825, 0.19838204979896545, -0.594129204750061, 0.558748185634613, 0.12245967984199524, 1.2076046466827393, 0.4427613615989685, -0.2943657636642456, 0.01646486669778824, -0.8198383450508118, 0.4118601083755493, -0.7015993595123291, 0.14820869266986847, 0.5672478675842285, 0.6981133222579956, -0.10080919414758682, -0.9262855648994446, -0.37927985191345215, -0.21567367017269135, 0.06315332651138306, 0.09713482111692429, -0.0999009907245636, 0.1033245101571083, 0.7953264117240906, 0.36789005994796753, -0.5093628168106079, 0.017913581803441048, -0.9107869267463684, -0.21968863904476166, 0.6355156302452087, 0.2694205641746521, -0.20340879261493683, -0.13439705967903137, -0.517720103263855, -0.05522199720144272, -0.47811201214790344, -0.1121748760342598, 0.5116226673126221, 0.30275148153305054, -0.38129016757011414, 0.9232227802276611, -0.2937503457069397, 0.6456360816955566, -0.06721583008766174, -0.02269035391509533, 0.5827496647834778, 0.07969058305025101, -0.4209778606891632, 0.16857962310314178, 0.9060341119766235, 0.6161942481994629, 0.5112898945808411, 0.22013497352600098, -0.1687631756067276, -0.2673082649707794, 0.32343241572380066, -1.066426157951355, -0.7047614455223083, -0.14326012134552002, -0.5822105407714844, -0.5880834460258484, 0.06539548933506012, -0.5920871496200562, -0.03304026275873184, -0.4375423491001129, 0.5246313214302063, -0.47392749786376953, -0.05424430966377258, 0.027974983677268028, -0.135723277926445, 0.21346010267734528, 0.24955616891384125, -0.8259296417236328, 0.3683095872402191, 0.388580858707428, 0.4718901813030243, 0.28248292207717896, -0.34028160572052, -0.24247784912586212, 0.09820406138896942, -0.40069878101348877, 0.43713071942329407, -0.16110965609550476, -0.4194101095199585, -0.36130544543266296, 0.36398065090179443, 0.09610504657030106, -0.34041449427604675, 1.0097407102584839, -0.5044994354248047, 0.459783136844635, -0.33424079418182373, -0.6981791257858276, -0.28020164370536804, 0.395602285861969, -0.6620750427246094, 0.9867045879364014, 0.0984693244099617, -0.9381884932518005, 0.5613316893577576, -0.8564642071723938, -0.2677002549171448, 0.23097515106201172, -0.009714744053781033, -0.908882200717926, -0.013031984679400921, 0.2279757559299469, 0.5898718237876892, -0.08363178372383118, 0.4428345561027527, -0.5527845621109009, -0.6927260756492615, -0.020077455788850784, -0.7944439053535461, 0.8430641889572144, 0.245057612657547, -0.22726991772651672, 0.1899740993976593, -1.1992067098617554, 0.01990063115954399, 0.4963902235031128, -0.4899751842021942, 0.10260596126317978, -0.18750324845314026, 0.2672865688800812, 0.1820758730173111, 0.46026211977005005, -0.6560893058776855, 0.18005642294883728, -0.18812520802021027, 0.4083239436149597, 0.7329679727554321, 0.1439107358455658, -0.027482282370328903, -0.2745545208454132, 0.14959320425987244, 0.08003713935613632, 0.4487554728984833, 0.09462946653366089, -0.5854602456092834, -0.8903255462646484, -0.5138435363769531, 0.39461860060691833, 0.2930552661418915, -0.3439705967903137, 0.7816775441169739, -0.30618569254875183, -0.7280600070953369, -0.2515089511871338, -0.04825037717819214, 0.1608908772468567, 0.4984663426876068, 0.47292083501815796, -0.2618503272533417, -0.532140851020813, -1.1316059827804565, 0.18205834925174713, -0.012107095681130886, 0.16465939581394196, 0.31280750036239624, 0.7138328552246094, -0.11616592109203339, 0.7178804874420166, -0.6180846691131592, -0.10138203203678131, -0.08603968471288681, -0.12119198590517044, 0.1551973968744278, 0.8908584117889404, 0.5949604511260986, -0.38090649247169495, -0.19342663884162903, -0.2344365268945694, -0.6971021294593811, 0.3943684995174408, -0.12259238213300705, -0.21021732687950134, -0.24484439194202423, 0.5488305687904358, -0.7403552532196045, 0.7316046953201294, 0.23079995810985565, -0.23204749822616577, 0.5741568207740784, -0.5747514367103577, -0.09510233998298645, -1.1965919733047485, 0.18027018010616302, 0.23250950872898102, -0.2611874043941498, -0.07477646321058273, 0.05124014988541603, 0.03308912739157677, -0.3513711392879486, -0.4090160131454468, 0.5254516005516052, -0.10493235290050507, -0.10248344391584396, -0.2457423061132431, -0.20925235748291016, 0.022767333313822746, 0.7644363045692444, 0.040976934134960175, 0.49640336632728577, 0.6234056353569031, -0.5435020327568054, 0.7268128991127014, 0.530431866645813, -0.43677499890327454, 0.5015599727630615, -0.985164999961853, -0.11641273647546768, -0.10983791947364807, 0.33029621839523315, -0.843819260597229, -0.4360613524913788, 0.8114917278289795, -0.48608464002609253, 0.3958950936794281, -0.1657216101884842, -0.579673171043396, -0.6637402176856995, 0.17531844973564148, 0.5719559192657471, 0.4495786130428314, -0.7101818323135376, 0.3067712187767029, -0.07754388451576233, 0.19822432100772858, -0.34634262323379517, -0.7672210335731506, -0.13883227109909058, -0.10939484089612961, -0.35537829995155334, 0.06530977040529251, -0.0646771490573883, 0.22659380733966827, 0.08936204016208649, 0.0847015380859375, -0.14702460169792175, -0.17159217596054077, 0.36194390058517456, 0.4507104754447937, -0.3162495195865631, 0.03492484614253044, 0.08462302386760712, -0.2858642637729645, 0.3223065733909607, 0.13955755531787872, 0.5402817130088806, -0.18821518123149872, -0.5164369344711304, -1.0195400714874268, -0.09383689612150192, 0.6343114376068115, -0.29430297017097473, 0.7940250635147095, 1.1040946245193481, -0.375432550907135, 0.19008640944957733, -0.44575148820877075, -0.3098660707473755, -0.4546271860599518, 0.71755051612854, -0.43232613801956177, -0.43649157881736755, 0.5172785520553589, -0.049664456397295, 0.002811064012348652, 0.8081151843070984, 0.5726999640464783, 0.09185618907213211, 1.245267391204834, 0.22608914971351624, -0.017434610053896904, 0.45412206649780273, -0.5700514316558838, 0.05358226224780083, -0.8673878312110901, -0.45415064692497253, -0.4389455020427704, -0.3605155944824219, -0.820893406867981, -0.10380767285823822, 0.11626013368368149, -0.03580595180392265, -0.8847601413726807, 0.36807456612586975, -0.5608854293823242, 0.5128980875015259, 0.9490149617195129, 0.5332438945770264, -0.05243479833006859, 0.16559268534183502, -0.048514191061258316, 0.10232922434806824, -0.8575093150138855, -0.34726983308792114, 1.41183340549469, 0.602586567401886, 0.6258722543716431, -0.28272002935409546, 0.5074578523635864, -0.1034051775932312, 0.05197899043560028, -0.546312689781189, 0.6997271180152893, 0.17953209578990936, -1.075292944908142, -0.2672561705112457, -0.46081942319869995, -0.8546925187110901, 0.12497878819704056, -0.5480477809906006, -0.5501459836959839, 0.016720592975616455, 0.2141357809305191, -0.25314462184906006, 0.4704121947288513, -0.728132426738739, 1.1641515493392944, -0.15582723915576935, -0.10910256206989288, -0.32784172892570496, -0.6907668113708496, 0.3507733941078186, 0.1750999391078949, -0.24045218527317047, -0.21744388341903687, 0.18259268999099731, 0.7619813084602356, -0.5912806987762451, 0.76097172498703, -0.25715172290802, 0.41878703236579895, 0.4139328598976135, -0.20247361063957214, 0.6441543102264404, 0.20965072512626648, -0.06340634077787399, 0.18717186152935028, -0.007967316545546055, -0.8576180338859558, -0.2174425572156906, 0.7402476072311401, -1.232706069946289, -0.2397388368844986, -0.44852903485298157, -0.49821725487709045, -0.11700670421123505, 0.23783868551254272, 0.669274091720581, 0.7491998672485352, -0.30778032541275024, 0.4063003659248352, 0.3720487356185913, 0.006700428202748299, 0.37783169746398926, 0.07176551967859268, -0.06800838559865952, -0.6263803243637085, 1.0757777690887451, -0.25098901987075806, 0.19490094482898712, -0.1448848843574524, 0.1410495489835739, -0.08754932880401611, -0.4750397503376007, -0.36180585622787476, 0.34439894556999207, -0.6900883913040161, -0.15987902879714966, -0.21949417889118195, -0.6363598108291626, -0.1761658787727356, 0.08213844150304794, -0.5385406613349915, -0.33416762948036194, -0.679338276386261, -0.16713830828666687, 0.2854444682598114, 0.4859846532344818, 0.1018674224615097, 0.8619918823242188, -0.6381866931915283, 0.07151014357805252, 0.22424568235874176, 0.6160931587219238, -0.030442697927355766, -0.773465633392334, -0.43864262104034424, 0.1621636003255844, -0.44456639885902405, -0.36496421694755554, 0.31579697132110596, 0.03732985258102417, 0.6272438168525696, 0.6807785034179688, -0.11730920523405075, 0.7553136348724365, -0.448833703994751, 0.8824517130851746, 0.3577117621898651, -0.47911375761032104, 0.34614914655685425, -0.3225603401660919, 0.33758410811424255, 0.49924078583717346, 0.44407808780670166, 0.09460893273353577, -0.23607635498046875, -1.3431916236877441, -0.6032440066337585, 0.8722983002662659, 0.41076335310935974, 0.3187939524650574, -0.0009353579371236265, 0.33574581146240234, -0.13694636523723602, 0.4073619246482849, -0.872574508190155, -0.41585004329681396, -0.3339676260948181, -0.0844072476029396, -0.3262603282928467, -0.445477694272995, -0.291968435049057, -0.7605477571487427, 1.191709041595459, 0.14702317118644714, 0.395874947309494, 0.04834676906466484, 0.2809961140155792, -0.2606387436389923, -0.3314841091632843, 0.7890697121620178, 0.6860467195510864, -0.5745061635971069, -0.10996835678815842, 0.18616504967212677, -0.5799658894538879, -0.3220522701740265, 0.2943270206451416, -0.06312339752912521, 0.20273391902446747, 0.315787136554718, 1.3432106971740723, 0.1935482919216156, -0.2585621774196625, 0.5900484323501587, -0.22393403947353363, -0.4998774826526642, -0.4156738221645355, 0.18502412736415863, -0.21690042316913605, 0.3168109953403473, -0.004862361121922731, 0.716232419013977, -0.04442550614476204, -0.015079290606081486, 0.13098080456256866, 0.38985177874565125, -0.4662286341190338, -0.1703839749097824, 0.834092378616333, 0.14029598236083984, -0.32388994097709656, 0.812797486782074, -0.20666135847568512, -0.23769325017929077, 0.7332487106323242, 0.5737729072570801, 0.7115262746810913, -0.1402827799320221, 0.12001346051692963, 0.7887541055679321, 0.24239011108875275, -0.15976156294345856, 0.27392491698265076, 0.037038013339042664, -0.5800124406814575, -0.2774299383163452, -0.44721129536628723, -0.2488335371017456, 0.389607310295105, -0.978631317615509, 0.6984299421310425, -0.6895830035209656, -0.4340701699256897, 0.24167665839195251, 0.195167675614357, -0.9194302558898926, 0.5555669069290161, 0.17765748500823975, 0.995844304561615, -0.7744007706642151, 0.8482123613357544, 0.5790708065032959, -0.3001178205013275, -0.9653580188751221, -0.22492188215255737, -0.27062588930130005, -1.0543628931045532, 0.4878298044204712, -0.08351051062345505, 0.5194493532180786, 0.20365890860557556, -0.8473337292671204, -0.8488151431083679, 0.9642038345336914, 0.303234726190567, -0.5311949253082275, 0.07005976885557175, -0.011080482974648476, 0.5477697253227234, -0.24843624234199524, 0.5938982367515564, 0.12917838990688324, 0.15831997990608215, 0.5415130853652954, -0.8569425940513611, -0.2050272673368454, -0.23823285102844238, 0.09114422649145126, 0.16806700825691223, -0.7631591558456421, 0.8675769567489624, -0.14650215208530426, 0.5342966914176941, 0.31688135862350464, 0.6547775268554688, 0.2292650043964386, 0.2076285034418106, 0.33058691024780273, 0.7467485666275024, 0.6434909701347351, -0.0026237405836582184, 0.8251089453697205, -0.5914013981819153, 0.7919960618019104, 1.3844152688980103, 0.19933182001113892, 0.6016935110092163, 0.3627932369709015, -0.11656222492456436, 0.2643572986125946, 0.998058557510376, -0.6651410460472107, 0.4984384775161743, 0.21207506954669952, -0.018144765868782997, -0.3972463309764862, 0.39344415068626404, -0.7704054713249207, 0.5666030049324036, 0.2449086457490921, -0.9548763036727905, -0.35391807556152344, -0.1656995415687561, -0.05123603343963623, -0.4228343963623047, -0.4465254545211792, 0.5107029676437378, -0.27764686942100525, -0.48524168133735657, 0.5974040627479553, 0.07824216037988663, 0.14089089632034302, -0.512109100818634, 0.015423155389726162, 0.10828689485788345, 0.2387719601392746, -0.08085700124502182, -0.5923177003860474, 0.13508440554141998, -0.20822928845882416, 0.0038176437374204397, 0.22190123796463013, 0.472540944814682, -0.312227725982666, -0.9510660171508789, -0.1947881281375885, 0.2894527316093445, 0.45069342851638794, 0.05056529864668846, -1.070858359336853, -0.031360797584056854, 0.04200134426355362, -0.47637614607810974, 0.14809925854206085, 0.50104159116745, 0.14530976116657257, 0.6775402426719666, 0.7291257977485657, 0.13037189841270447, 0.022909488528966904, 0.055582862347364426, 0.9622302651405334, -0.4864881932735443, -0.5545424818992615, -0.8358795046806335, 0.38531002402305603, -0.3691965639591217, -0.8763436079025269, 0.5817142128944397, 1.010308027267456, 0.9418750405311584, -0.24430325627326965, 0.4739416539669037, 0.2073710560798645, 0.37064188718795776, -0.28199902176856995, 0.5514853596687317, -0.4525472819805145, 0.08042237907648087, -0.4449774920940399, -1.1535590887069702, -0.22931110858917236, 0.824582040309906, -0.4004105031490326, 0.13172723352909088, 0.49100273847579956, 0.694798469543457, -0.2647031247615814, 0.46869957447052, 0.18949782848358154, 0.08751711249351501, 0.18935361504554749, 0.24265781044960022, 0.46216848492622375, -0.757195234298706, 0.6182119250297546, -0.5669781565666199, -0.06696315854787827, -0.2876642048358917, -0.6870960593223572, -1.2207815647125244, -0.42637473344802856, -0.604233980178833, -0.5081812143325806, -0.111237071454525, 1.117276906967163, 0.9371117949485779, -0.6428576707839966, -0.13979563117027283, -0.156625896692276, -0.24795369803905487, -0.09208885580301285, -0.1819707602262497, 0.5069557428359985, -0.20935018360614777, -0.7172390818595886, -0.2928348779678345, -0.3077995777130127, 0.45637047290802, -0.17998233437538147, -0.10470195859670639, 0.005842362530529499, -0.22411449253559113, 0.36340051889419556, 0.09541958570480347, -0.608870267868042, -0.476670503616333, -0.29743897914886475, -0.21491193771362305, 0.21961432695388794, 0.30981576442718506, -0.49323955178260803, 0.42548006772994995, 0.091404490172863, 0.25605466961860657, 0.8910583853721619, 0.07942087203264236, 0.31849831342697144, -0.6589304804801941, 0.49982088804244995, 0.21064087748527527, 0.49087005853652954, 0.1606864333152771, -0.4345751702785492, 0.417043000459671, 0.4282706379890442, -0.848690927028656, -0.7562037110328674, -0.22444085776805878, -1.2321114540100098, 0.0266465675085783, 1.189028263092041, 0.10241542756557465, -0.3974013030529022, 0.5264485478401184, -0.5828597545623779, 0.4540039598941803, -0.3277924358844757, 0.516175389289856, 0.6223416328430176, -0.0072314622811973095, -0.05825307220220566, -0.6675474047660828, 0.4307345449924469, 0.09247802197933197, -0.4767468571662903, -0.3314197063446045, 0.44426628947257996, 0.496992826461792, -0.1002153530716896, 0.2804960310459137, -0.00976669043302536, 0.2746635973453522, 0.21597810089588165, 0.3544216752052307, -0.39965471625328064, -0.32900160551071167, -0.09500563144683838, 0.07957980781793594, 0.015865499153733253, -0.7756772041320801 ]
TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ
TheBloke
"2023-09-27T12:44:18Z"
34,607
265
transformers
[ "transformers", "safetensors", "llama", "text-generation", "uncensored", "en", "dataset:ehartford/wizard_vicuna_70k_unfiltered", "base_model:ehartford/Wizard-Vicuna-13B-Uncensored", "license:other", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-05-13T08:18:23Z"
--- language: - en license: other tags: - uncensored datasets: - ehartford/wizard_vicuna_70k_unfiltered model_name: Wizard Vicuna 13B Uncensored base_model: ehartford/Wizard-Vicuna-13B-Uncensored inference: false model_creator: Eric Hartford model_type: llama prompt_template: 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user''s questions. USER: {prompt} ASSISTANT: ' quantized_by: TheBloke --- <!-- 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 --> # Wizard Vicuna 13B Uncensored - GPTQ - Model creator: [Eric Hartford](https://huggingface.co/ehartford) - Original model: [Wizard Vicuna 13B Uncensored](https://huggingface.co/ehartford/Wizard-Vicuna-13B-Uncensored) <!-- description start --> ## Description This repo contains GPTQ model files for [Eric Hartford's Wizard Vicuna 13B Uncensored](https://huggingface.co/ehartford/Wizard-Vicuna-13B-Uncensored). 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. <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GGUF) * [Eric Hartford's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/ehartford/Wizard-Vicuna-13B-Uncensored) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Vicuna ``` A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT: ``` <!-- 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. All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches are made with AutoGPTQ. Files in the `main` branch which were uploaded before August 2023 were made with GPTQ-for-LLaMa. <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 dataset used for quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ 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 | | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- | | [latest](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ/tree/latest) | 4 | 128 | Yes | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 8.11 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. | | [model_v1](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ/tree/model_v1) | 4 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 8.11 GB | Yes | 4-bit, without Act Order and group size 128g. | | [main](https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ/tree/main) | 4 | 128 | No | 0.01 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 2048 | 8.11 GB | Yes | 4-bit, without Act Order and group size 128g. | <!-- README_GPTQ.md-provided-files end --> <!-- README_GPTQ.md-download-from-branches start --> ## How to download from branches - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ:latest` - With Git, you can clone a branch with: ``` git clone --single-branch --branch latest https://huggingface.co/TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ ``` - In Python Transformers code, the branch is the `revision` parameter; see below. <!-- 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/Wizard-Vicuna-13B-Uncensored-GPTQ`. - To download from a specific branch, enter for example `TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ:latest` - 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: `Wizard-Vicuna-13B-Uncensored-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.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later. ```shell pip3 install transformers>=4.32.0 optimum>=1.12.0 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 pip3 install . ``` ### For CodeLlama models only: you must use Transformers 4.33.0 or later. If 4.33.0 is not yet released when you read this, you will need to install Transformers from source: ```shell pip3 uninstall -y transformers pip3 install git+https://github.com/huggingface/transformers.git ``` ### You can then use the following code ```python from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_name_or_path = "TheBloke/Wizard-Vicuna-13B-Uncensored-GPTQ" # To use a different branch, change revision # For example: revision="latest" 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'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. 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, 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 AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI). [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility. [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models. <!-- 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**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # 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.48288071155548096, -0.8212563991546631, 0.14744915068149567, 0.1638941913843155, -0.29557371139526367, -0.2314685732126236, 0.16012528538703918, -0.4614179730415344, 0.14248450100421906, 0.4730069041252136, -0.6385043263435364, -0.4864277243614197, -0.3218866288661957, 0.06938546150922775, -0.3901107907295227, 0.9749176502227783, 0.1273474544286728, -0.28344494104385376, -0.016148122027516365, -0.08323320746421814, -0.40346023440361023, -0.366980642080307, -0.7553525567054749, -0.27183037996292114, 0.39932793378829956, 0.14518168568611145, 0.8732536435127258, 0.5064388513565063, 0.1654123067855835, 0.35454896092414856, 0.03217737749218941, 0.07855686545372009, -0.42920753359794617, -0.08593501895666122, 0.10680455714464188, -0.3061743676662445, -0.6514194011688232, 0.08585381507873535, 0.3972306549549103, 0.04586835950613022, -0.34374213218688965, 0.10917828977108002, -0.020951861515641212, 0.6633601784706116, -0.44970813393592834, 0.20264177024364471, -0.4114915132522583, 0.04512361064553261, -0.035456325858831406, -0.06505832821130753, -0.08355169743299484, -0.4650775194168091, 0.0925832986831665, -0.971933126449585, 0.2560862898826599, -0.08764006942510605, 1.2109798192977905, 0.21066857874393463, -0.665027916431427, 0.14633958041667938, -0.5849513411521912, 0.48726320266723633, -0.8426105380058289, 0.24762901663780212, 0.471570760011673, 0.367831826210022, -0.25790512561798096, -0.9023836255073547, -0.6165354251861572, -0.10564982146024704, -0.0726938471198082, 0.33437687158584595, -0.49513667821884155, 0.05792538449168205, 0.3683202862739563, 0.6795070767402649, -0.8290823698043823, -0.20071463286876678, -0.40576207637786865, -0.1049647107720375, 0.7965648770332336, 0.237742617726326, 0.43647491931915283, -0.26903945207595825, -0.2790968418121338, -0.45156535506248474, -0.6143897771835327, 0.00010267989273415878, 0.3695870339870453, 0.08301293849945068, -0.5082839131355286, 0.4976274073123932, -0.257540225982666, 0.4683467745780945, 0.16109324991703033, -0.08378937840461731, 0.21575620770454407, -0.4530869722366333, -0.5179548859596252, -0.42323213815689087, 1.3188085556030273, 0.3541035056114197, -0.1450313925743103, 0.23471449315547943, -0.0095945680513978, -0.17253977060317993, 0.18170101940631866, -0.9394617080688477, -0.4948723018169403, 0.504651665687561, -0.3618554174900055, -0.2826549708843231, -0.10132410377264023, -0.6607235670089722, -0.11168941855430603, -0.14530758559703827, 0.5883687734603882, -0.5785562992095947, -0.3954789638519287, 0.1387699395418167, -0.42673546075820923, 0.35628876090049744, 0.39920157194137573, -0.7632265090942383, 0.38849401473999023, 0.25722411274909973, 0.6661715507507324, 0.21993137896060944, -0.18369249999523163, -0.17218022048473358, 0.11630825698375702, -0.1608932465314865, 0.45827457308769226, -0.06634285300970078, -0.4704206883907318, -0.20146477222442627, 0.3085620105266571, 0.08487900346517563, -0.30010852217674255, 0.36759451031684875, -0.31135663390159607, 0.48219752311706543, -0.393047034740448, -0.47178012132644653, -0.3837020993232727, 0.11557046324014664, -0.7056102752685547, 1.1527668237686157, 0.5090954899787903, -0.8215165734291077, 0.12322985380887985, -0.6061835289001465, -0.11376221477985382, 0.07785660773515701, 0.011896773241460323, -0.5412152409553528, -0.09965299069881439, 0.18548108637332916, 0.23956529796123505, -0.33491528034210205, 0.1359620988368988, -0.2013058364391327, -0.23837138712406158, 0.18165665864944458, -0.6492969989776611, 1.3562283515930176, 0.18426291644573212, -0.44054967164993286, -0.04311816394329071, -0.7974114418029785, 0.06320179998874664, 0.44826921820640564, -0.21191485226154327, -0.04570546746253967, -0.2486889809370041, 0.12116563320159912, 0.07641375809907913, 0.27100393176078796, -0.2538658082485199, 0.5404585599899292, -0.2174202799797058, 0.5668408870697021, 0.5888276696205139, 0.12444844841957092, 0.24806462228298187, -0.4067845642566681, 0.5515710711479187, -0.04265891760587692, 0.6896392107009888, 0.1532246470451355, -0.6939986348152161, -0.7241079211235046, -0.18729637563228607, 0.3641156256198883, 0.5734733939170837, -0.8432936668395996, 0.4836406409740448, -0.13055336475372314, -0.8002567887306213, -0.3566969335079193, -0.0718386247754097, 0.2872341573238373, 0.2721882164478302, 0.4754863977432251, -0.4661598801612854, -0.3455771803855896, -0.8228533864021301, 0.11019663512706757, -0.498046875, -0.14598199725151062, 0.28622153401374817, 0.6522318720817566, -0.28288495540618896, 0.8540312051773071, -0.6944188475608826, -0.19133880734443665, -0.0019252338679507375, 0.14151251316070557, 0.19699956476688385, 0.5422071814537048, 0.7177231311798096, -0.7819256782531738, -0.5078533887863159, -0.053641561418771744, -0.7162817120552063, -0.04168156906962395, 0.011910952627658844, -0.49783480167388916, 0.10584705322980881, 0.03638940304517746, -1.0289758443832397, 0.697031557559967, 0.45198243856430054, -0.5683467984199524, 0.8438379764556885, -0.3466046154499054, 0.1806449443101883, -1.1370543241500854, 0.02368745766580105, 0.1878315508365631, -0.34189373254776, -0.4794643521308899, 0.26290759444236755, 0.0006698981742374599, 0.17049247026443481, -0.4662347435951233, 0.6109169125556946, -0.4810806214809418, 0.1553061604499817, -0.10613670200109482, -0.07850293815135956, 0.3985370993614197, 0.5144788026809692, -0.1726212054491043, 0.7436553835868835, 0.41921931505203247, -0.5834819078445435, 0.6441088914871216, 0.40042799711227417, -0.018904242664575577, 0.1976901888847351, -0.7964639663696289, 0.14476315677165985, 0.16995784640312195, 0.3268589377403259, -0.7818940877914429, -0.2554171085357666, 0.6181395053863525, -0.5687578320503235, 0.4098382592201233, -0.3350793719291687, -0.4165540337562561, -0.35019412636756897, -0.3980834186077118, 0.2783181667327881, 0.774793267250061, -0.35123908519744873, 0.5698076486587524, 0.39798009395599365, 0.11543384939432144, -0.5612169504165649, -0.6139969825744629, -0.1209239810705185, -0.31163278222084045, -0.5110990405082703, 0.47942453622817993, -0.15694493055343628, -0.11675529181957245, -0.056114885956048965, 0.14608651399612427, -0.1535310000181198, -0.024308761581778526, 0.2548959255218506, 0.33905914425849915, -0.10962963104248047, -0.13512977957725525, 0.21627548336982727, 0.02920868620276451, 0.01208011619746685, -0.3064635396003723, 0.46135520935058594, -0.12768663465976715, 0.05146016925573349, -0.4802919030189514, 0.21204118430614471, 0.48154014348983765, 0.0006878252606838942, 0.7910348176956177, 0.7926011085510254, -0.3854886591434479, 0.11494144052267075, -0.4483197331428528, -0.1334172487258911, -0.5135430097579956, 0.16815203428268433, -0.1929170787334442, -0.5185802578926086, 0.4535754323005676, 0.4404675364494324, 0.27567020058631897, 0.7427777051925659, 0.48646071553230286, 0.07089579105377197, 0.8991978764533997, 0.6100099086761475, -0.06320467591285706, 0.5376220941543579, -0.6575363278388977, -0.21662592887878418, -0.7433884143829346, -0.2144160121679306, -0.4352235794067383, -0.04608762264251709, -0.7591306567192078, -0.4807453751564026, 0.33749309182167053, 0.2926161587238312, -0.7572707533836365, 0.6666554808616638, -0.7798553109169006, 0.1545996218919754, 0.5655902624130249, 0.3179272711277008, 0.37521564960479736, 0.06699809432029724, -0.011442968621850014, 0.15319785475730896, -0.5515544414520264, -0.3592287600040436, 1.0357434749603271, 0.3086947798728943, 0.5473895072937012, 0.29610171914100647, 0.49047160148620605, 0.1642918884754181, 0.31449663639068604, -0.5746045708656311, 0.5167926549911499, 0.044716667383909225, -0.7651752829551697, -0.4623859226703644, -0.622523844242096, -1.0198132991790771, 0.2971492409706116, -0.14736734330654144, -0.7400819659233093, 0.37322574853897095, 0.031831953674554825, -0.4178180992603302, 0.24900685250759125, -0.6285902857780457, 0.9414889812469482, -0.09266351908445358, -0.40161553025245667, 0.08346235752105713, -0.5264803171157837, 0.38518813252449036, 0.189960777759552, 0.03582601994276047, -0.1400294154882431, -0.17909283936023712, 0.7094928622245789, -0.9098385572433472, 0.798970103263855, -0.15482895076274872, -0.17885392904281616, 0.530531108379364, -0.09158223867416382, 0.4497649371623993, 0.15108974277973175, 0.12153442949056625, 0.2279912531375885, 0.2717908024787903, -0.47014743089675903, -0.5280108451843262, 0.45224660634994507, -1.0453805923461914, -0.5787924528121948, -0.45053306221961975, -0.4040493071079254, 0.07638070732355118, 0.06513243913650513, 0.6274899840354919, 0.42906156182289124, -0.1032043918967247, -0.10890882462263107, 0.6294347047805786, -0.3781188130378723, 0.39917314052581787, 0.31966057419776917, -0.41438111662864685, -0.5711959600448608, 0.8265275955200195, 0.1501237154006958, 0.1680138111114502, 0.29705530405044556, 0.17986370623111725, -0.42132195830345154, -0.43309351801872253, -0.6845932006835938, 0.2805924415588379, -0.5669410824775696, -0.3573315739631653, -0.645942211151123, -0.35155946016311646, -0.46711957454681396, 0.34233060479164124, -0.4118943214416504, -0.5942214131355286, -0.4422970712184906, -0.002021914115175605, 0.9363361597061157, 0.6052064895629883, -0.03440216928720474, 0.3489099442958832, -0.8395363092422485, 0.2842043936252594, 0.47915905714035034, 0.07720779627561569, 0.030730566009879112, -0.7105879783630371, -0.12966611981391907, 0.20205016434192657, -0.7472249269485474, -1.0421258211135864, 0.7523796558380127, 0.05318789184093475, 0.33920031785964966, 0.3862555921077728, 0.21505479514598846, 0.7797924280166626, -0.22220274806022644, 0.9518789052963257, 0.24568937718868256, -0.7742611169815063, 0.5374734997749329, -0.6296562552452087, 0.2580969035625458, 0.38494572043418884, 0.6137698292732239, -0.28606364130973816, -0.31522291898727417, -0.7525120377540588, -0.7850990295410156, 0.3772473931312561, 0.5334212779998779, 0.07614453136920929, 0.10566434264183044, 0.5501943230628967, 0.04952974244952202, 0.11968950182199478, -0.9285933375358582, -0.5982304215431213, -0.38098379969596863, -0.0989205464720726, 0.13766321539878845, 0.06782309710979462, -0.26016315817832947, -0.638391375541687, 0.9994289875030518, -0.155549094080925, 0.6236200332641602, 0.2875363528728485, 0.13751278817653656, -0.09238301217556, 0.12163076549768448, 0.21694861352443695, 0.5647509694099426, -0.17591063678264618, -0.34685713052749634, 0.05570835620164871, -0.7817482352256775, 0.18511848151683807, 0.34867915511131287, -0.30952754616737366, -0.03323401138186455, 0.036737751215696335, 0.8285794854164124, -0.12882867455482483, -0.22498495876789093, 0.4421073794364929, -0.4338153600692749, -0.3201334476470947, -0.4310290217399597, 0.2882513403892517, 0.20201483368873596, 0.38560259342193604, 0.38388529419898987, -0.20472823083400726, 0.3443618416786194, -0.641936182975769, -0.048459749668836594, 0.38751378655433655, -0.2642308175563812, -0.2253008633852005, 0.7893296480178833, -0.04354910925030708, -0.08332306146621704, 0.7826055288314819, -0.24415557086467743, -0.38895606994628906, 0.7668895721435547, 0.3867882490158081, 0.8110371828079224, -0.14601317048072815, 0.36206477880477905, 0.5703427791595459, 0.16214554011821747, -0.09681526571512222, 0.25926849246025085, 0.03820870444178581, -0.5429960489273071, -0.22026334702968597, -0.5879395604133606, -0.3302014172077179, 0.33317336440086365, -0.7295824885368347, 0.26235756278038025, -0.41955509781837463, -0.45822644233703613, -0.2024899125099182, 0.34844112396240234, -0.5917320847511292, 0.299740731716156, -0.057437002658843994, 0.8843458294868469, -0.6831431984901428, 0.8962873220443726, 0.44884851574897766, -0.6613584756851196, -0.9799102544784546, -0.14026446640491486, 0.08108586072921753, -0.4990471601486206, 0.036726538091897964, 0.03666010499000549, 0.2793307900428772, 0.07709206640720367, -0.7151840925216675, -0.7889412045478821, 1.455339789390564, 0.382561057806015, -0.528205394744873, -0.265923410654068, 0.0044692098163068295, 0.425740122795105, -0.06719402968883514, 0.749626874923706, 0.5497902631759644, 0.3437151610851288, 0.09764061868190765, -0.8858904242515564, 0.4057416021823883, -0.4795946478843689, 0.05551637336611748, 0.10777539759874344, -1.0058106184005737, 0.9871211647987366, 0.08819083124399185, -0.1514287292957306, 0.3088046908378601, 0.6684198975563049, 0.4107581079006195, -0.0020776395685970783, 0.32119816541671753, 0.6402703523635864, 0.8043738603591919, -0.28440287709236145, 1.1967042684555054, -0.14878027141094208, 0.5236929059028625, 0.7988035082817078, 0.18973669409751892, 0.7170901298522949, 0.13196153938770294, -0.6918762922286987, 0.6460727453231812, 0.9622827172279358, -0.1185934990644455, 0.3435462415218353, 0.042064666748046875, -0.3355614244937897, -0.09595581144094467, 0.17329540848731995, -0.7253082990646362, 0.09247933328151703, 0.31412944197654724, -0.21931837499141693, 0.1373746693134308, -0.13907387852668762, -0.06934912502765656, -0.5738217234611511, -0.19808103144168854, 0.6025586128234863, 0.27553123235702515, -0.4025760889053345, 0.9248412251472473, -0.06459907442331314, 0.6198160648345947, -0.6211923360824585, -0.17546594142913818, -0.3858409523963928, -0.09778540581464767, -0.23985065519809723, -0.5755618214607239, 0.052444521337747574, -0.14993201196193695, -0.1028161346912384, 0.16348756849765778, 0.5867988467216492, -0.20532065629959106, -0.44251278042793274, 0.3397707939147949, 0.47564607858657837, 0.34222283959388733, -0.169112429022789, -1.0616480112075806, 0.10961255431175232, -0.0060599688440561295, -0.6241942048072815, 0.47038909792900085, 0.46859055757522583, 0.1525009572505951, 0.7124305963516235, 0.527971625328064, -0.16954606771469116, 0.1048932746052742, -0.01576356589794159, 0.9038144946098328, -0.741489589214325, -0.282657653093338, -0.7714139223098755, 0.6315193176269531, -0.10494986921548843, -0.4256209135055542, 0.7613080143928528, 0.5530017018318176, 0.646461009979248, -0.014652801677584648, 0.7630646824836731, -0.2722998559474945, 0.002039942890405655, -0.41395261883735657, 0.8363444805145264, -0.7987709045410156, 0.17768026888370514, -0.4258922338485718, -0.8167320489883423, 0.04723810777068138, 0.6611937284469604, -0.02529989369213581, 0.2578858733177185, 0.4285446107387543, 0.8355162143707275, 0.03292226791381836, 0.12822325527668, 0.27835389971733093, 0.3308728337287903, 0.16265518963336945, 0.7700767517089844, 0.7043127417564392, -1.0423650741577148, 0.5925851464271545, -0.4353933334350586, -0.20190265774726868, -0.032108694314956665, -0.7386491894721985, -0.7824965715408325, -0.4887193739414215, -0.587806224822998, -0.6744961142539978, 0.009073734283447266, 0.8926800489425659, 0.7230889201164246, -0.5002351999282837, -0.3545798659324646, -0.17549163103103638, -0.011748036369681358, -0.24477608501911163, -0.30296310782432556, 0.31635668873786926, 0.28472253680229187, -0.8583282828330994, 0.18106959760189056, -0.004700825549662113, 0.49024760723114014, -0.2781970500946045, -0.2274215668439865, -0.2357325702905655, 0.061588648706674576, 0.4593915641307831, 0.5601105093955994, -0.5183367133140564, 0.01818627491593361, -0.1904745250940323, -0.12384418398141861, 0.2891131639480591, 0.2766580283641815, -0.8009606599807739, 0.04470451921224594, 0.44152477383613586, 0.05446088686585426, 0.7709342837333679, -0.05821065977215767, 0.5463308691978455, -0.3903997242450714, 0.05997927114367485, 0.025046397000551224, 0.39828741550445557, 0.1545640379190445, -0.5519929528236389, 0.6476768255233765, 0.3281358778476715, -0.6164188981056213, -0.6487559676170349, -0.1403769999742508, -1.0063858032226562, -0.3462817072868347, 1.0552642345428467, -0.11081796884536743, -0.4533803164958954, -0.11819091439247131, -0.3122381269931793, 0.5402233004570007, -0.47204455733299255, 0.42423009872436523, 0.36675477027893066, -0.1096234992146492, -0.33809152245521545, -0.744733452796936, 0.5813813209533691, 0.08486682176589966, -0.8414837718009949, 0.01759191043674946, 0.5110551714897156, 0.45162004232406616, 0.061364687979221344, 0.8809952735900879, -0.21850523352622986, 0.3817858099937439, 0.2036767601966858, 0.13515619933605194, -0.06134457886219025, -0.06088593602180481, -0.2908024489879608, 0.02179187349975109, -0.21449920535087585, 0.04810075834393501 ]
digiplay/AbsoluteReality_v1.8.1
digiplay
"2023-08-03T18:05:25Z"
34,461
4
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "license:other", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-08-03T16:58:32Z"
--- license: other tags: - stable-diffusion - stable-diffusion-diffusers - text-to-image - diffusers inference: true --- Model info : https://civitai.com/models/81458?modelVersionId=132760 Original Author's DEMO images : ![](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/0375afda-d837-4cf9-a0f1-958810ab300d/width=1120/26072207-5775662-(masterpiece),%20(extremely%20intricate_1.3),,%20(realistic),%20portrait%20of%20a%20girl,%20the%20most%20beautiful%20in%20the%20world,%20(medieval%20armor),%20m.jpeg) ![](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/6c6fa49e-05d1-4dcb-9527-b1ed801db614/width=920/26072134-1709831004-a%20photo%20of%20a%20cute%20little%20puppy%20surrounded%20by%20beautiful%20flowers%20in%20a%20meadow,%20extremely%20detailed%20fur,(close%20up_1.1).jpeg) ![](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/7a0bc81d-0702-4c85-aa17-dd6748cb6fbd/width=920/26072120-2760683419-close%20up%20Portrait%20photo%20of%20muscular%20bearded%20guy%20in%20a%20worn%20mech%20suit,%20((light%20bokeh)),%20intricate,%20(steel%20metal%20[rust]),%20elegant,.jpeg)
[ -0.5047472715377808, -0.5641751289367676, 0.4448181688785553, 0.31189393997192383, -0.24576127529144287, -0.058249134570360184, 0.18554867804050446, -0.36315155029296875, 0.5465456247329712, 0.496786504983902, -0.9520768523216248, -0.5253865718841553, -0.35328128933906555, 0.004552739672362804, -0.20290960371494293, 0.6031187772750854, 0.03433281555771828, 0.03679056465625763, 0.0955834910273552, 0.15722256898880005, -0.47173285484313965, -0.3900435268878937, -0.5468845963478088, 0.05423514544963837, 0.30802997946739197, 0.33125439286231995, 0.932222306728363, 0.5696945786476135, 0.6178653836250305, 0.4349561929702759, -0.2704876661300659, 0.07554738968610764, -0.47867920994758606, -0.3413289189338684, 0.11302784085273743, -0.5999687314033508, -0.7438188195228577, 0.21339254081249237, 0.3930128812789917, 0.43534010648727417, 0.10327756404876709, 0.3619968295097351, 0.3274375796318054, 0.5644348859786987, -0.5837135910987854, 0.28553497791290283, -0.07884899526834488, 0.17401078343391418, -0.2950159013271332, -0.4007384181022644, -0.384917676448822, -0.48557960987091064, -0.2876734137535095, -1.144112467765808, 0.3403836786746979, 0.039268072694540024, 1.494088888168335, -0.15745626389980316, -0.36019572615623474, -0.05811093747615814, -0.8306390643119812, 0.7409170866012573, -0.7500715255737305, 0.31748801469802856, 0.10235771536827087, 0.613449215888977, -0.40389034152030945, -0.8551135063171387, -0.536461353302002, 0.3514205813407898, -0.46178320050239563, 0.6631414294242859, -0.5718282461166382, -0.3200487196445465, 0.3926079571247101, 0.489165723323822, -0.997933566570282, -0.09617506712675095, -0.5909578204154968, 0.21871118247509003, 0.6431148052215576, 0.12452276051044464, 0.6063266396522522, 0.17437133193016052, -0.7731432914733887, -0.34867116808891296, -0.49852123856544495, 0.444124311208725, 0.3458837866783142, -0.05060282722115517, -0.586898922920227, 0.5152518153190613, -0.1274753361940384, 0.71795654296875, 0.45524170994758606, -0.38690459728240967, 0.36105188727378845, -0.4876343905925751, -0.3198534846305847, -0.5948395133018494, 0.9322711229324341, 1.1688473224639893, 0.13814817368984222, 0.11727531254291534, 0.040981225669384, -0.4845220446586609, 0.2675175666809082, -1.0557957887649536, -0.2556782066822052, 0.19943541288375854, -0.821958065032959, -0.458496630191803, 0.22888416051864624, -0.9273020625114441, 0.05627194792032242, 0.07452859729528427, 0.19090619683265686, -0.5498014092445374, -0.4292391240596771, -0.0027607621159404516, -0.14722616970539093, 0.39351916313171387, 0.37108051776885986, -0.7758714556694031, 0.02907969430088997, 0.3105633556842804, 0.837630033493042, 0.37705862522125244, 0.024369455873966217, 0.15983472764492035, 0.33556705713272095, -0.6722137331962585, 0.9125494956970215, -0.24838055670261383, -0.6472643613815308, -0.1868666559457779, 0.4768315255641937, -0.08936440199613571, -0.14972218871116638, 1.0425457954406738, -0.5277268290519714, 0.032395604997873306, -0.3800106346607208, -0.2877773642539978, -0.5885522365570068, 0.3622151017189026, -0.9333965182304382, 0.4379420280456543, 0.23256666958332062, -1.2392783164978027, 0.38900792598724365, -0.4444604218006134, 0.09249228984117508, 0.2639378607273102, -0.19630107283592224, -0.6328678727149963, 0.1751822680234909, 0.01870381087064743, 0.42053934931755066, -0.4295295476913452, -0.29326388239860535, -0.799394428730011, -0.4174783229827881, 0.39405953884124756, -0.3355735242366791, 1.2983824014663696, 0.30126965045928955, -0.5822019577026367, -0.13676266372203827, -0.9850645065307617, 0.08634813129901886, 0.4678732454776764, 0.07008007913827896, -0.21199561655521393, -0.36600461602211, 0.3035460114479065, 0.439776748418808, 0.28890368342399597, -0.5847217440605164, 0.34137752652168274, -0.3477047383785248, 0.15268337726593018, 0.6268014907836914, 0.34537872672080994, 0.08877415955066681, -0.8079996705055237, 0.9943000078201294, -0.07382304966449738, 0.7519449591636658, 0.016678789630532265, -0.34668684005737305, -0.9270120859146118, -0.8759942650794983, -0.020549220964312553, 0.36611518263816833, -0.7666651606559753, 0.5644385814666748, -0.18715736269950867, -1.1627724170684814, -0.42957866191864014, -0.34681421518325806, 0.5906805992126465, 0.4551711082458496, 0.020909570157527924, -0.12996436655521393, -0.35977092385292053, -1.6093404293060303, -0.32417845726013184, -0.06810086220502853, -0.1208404004573822, 0.4420773983001709, 0.6747155785560608, 0.08558641374111176, 0.8333603143692017, -0.6228973269462585, -0.25927969813346863, -0.032073281705379486, -0.00766338873654604, 0.8020007610321045, 0.7230557799339294, 1.4423277378082275, -1.1071650981903076, -0.7937946319580078, -0.028535299003124237, -0.720283567905426, 0.05161517485976219, -0.07773236930370331, -0.446832537651062, -0.2494649738073349, 0.10461588203907013, -0.8040967583656311, 0.8553318381309509, 0.56003338098526, -0.8195521831512451, 1.1067315340042114, -0.41636601090431213, 0.7888085842132568, -1.5157885551452637, 0.381977379322052, 0.04352141544222832, -0.12162362784147263, -0.5786882638931274, 0.6708965301513672, 0.02560126781463623, 0.09463576227426529, -0.7220209836959839, 0.609481692314148, -0.8774545788764954, 0.4010852575302124, -0.25757089257240295, -0.2915072739124298, 0.3127535879611969, 0.5346482992172241, -0.10727890580892563, 0.7156946063041687, 0.39744865894317627, -0.1881653070449829, 0.5331026315689087, 0.1614043265581131, -0.5326717495918274, 0.7422325611114502, -1.107611060142517, -0.23521600663661957, -0.057911116629838943, 0.18477213382720947, -1.3471225500106812, -0.5121206641197205, 0.2937503755092621, -0.545210063457489, 0.008932515978813171, -0.09913771599531174, -0.712926983833313, -0.479890912771225, -0.6266196966171265, 0.44833359122276306, 0.5366260409355164, -0.529604434967041, 0.8217533826828003, 0.10314212739467621, 0.08178151398897171, -0.3008991777896881, -0.8737529516220093, -0.33272838592529297, -0.43216872215270996, -0.7553548812866211, 0.7141091823577881, -0.29733145236968994, -0.3572995066642761, -0.3119533956050873, 0.3435567319393158, -0.26000016927719116, -0.013965330086648464, 0.7929007411003113, 0.7425823211669922, 0.06760670989751816, -0.37937772274017334, -0.07521645724773407, 0.08016466349363327, 0.16960568726062775, 0.12270446121692657, 0.679556667804718, -0.2104773223400116, -0.42702338099479675, -1.0925328731536865, 0.19756218791007996, 0.9928960800170898, -0.048621226102113724, 0.8238897323608398, 0.5295723676681519, -0.5183278918266296, 0.09186629205942154, -0.6653696894645691, 0.007918247953057289, -0.590184211730957, 0.01432753261178732, -0.9514679908752441, -0.22383156418800354, 0.6768227219581604, 0.21800100803375244, 0.20431162416934967, 1.0037596225738525, 0.3563114106655121, -0.2921068072319031, 1.2287603616714478, 0.6377524733543396, 0.26097995042800903, 0.37596121430397034, -1.0934678316116333, -0.17362560331821442, -0.798617422580719, -0.4889274537563324, -0.39522022008895874, -0.6294945478439331, -0.810234546661377, -0.6083475351333618, 0.42684799432754517, 0.11382477730512619, -0.6499459147453308, 0.6506912112236023, -0.5612548589706421, 0.21021844446659088, 0.6313615441322327, 0.37443438172340393, 0.2695080041885376, 0.08490455895662308, -0.29282844066619873, -0.2717907130718231, -0.46173202991485596, -0.5185086727142334, 0.7403955459594727, 0.09945295006036758, 0.5798565745353699, 0.3027636408805847, 0.5939071774482727, 0.018908344209194183, 0.1084749698638916, -0.40547341108322144, 0.43462610244750977, -0.04279632493853569, -1.056990385055542, 0.36516714096069336, -0.2532157599925995, -0.9535942673683167, 0.3338155746459961, -0.46031126379966736, -0.5504001975059509, 0.682550847530365, 0.21452213823795319, -0.7726358771324158, 0.651938796043396, -0.5884957313537598, 0.7986800670623779, -0.30650752782821655, -0.394665390253067, 0.061384182423353195, -0.26595792174339294, 0.4776058793067932, 0.21629571914672852, 0.6932023167610168, 0.10311625152826309, -0.02477714791893959, 0.47545045614242554, -0.6953570246696472, 0.7610046863555908, -0.08531798422336578, 0.23628997802734375, 0.24783192574977875, 0.31833571195602417, 0.49938616156578064, 0.15758751332759857, -0.03834608942270279, -0.26424166560173035, -0.02079140953719616, -0.5196886658668518, -0.5766720771789551, 0.8815114498138428, -0.8478298187255859, -0.5072817206382751, -0.7430608868598938, -0.2791827619075775, 0.21155831217765808, 0.15439890325069427, 1.038021445274353, 0.7103499174118042, -0.5894736647605896, 0.40930142998695374, 0.38917118310928345, 0.061234693974256516, 0.6536306142807007, 0.21014809608459473, -0.25169795751571655, -0.6768913269042969, 0.5984487533569336, 0.2746566832065582, 0.29415449500083923, 0.16363321244716644, -0.1674620807170868, 0.08565738797187805, -0.2478804737329483, -0.3353613317012787, 0.42424309253692627, -0.3229633867740631, -0.15337824821472168, -0.49297136068344116, -0.27839934825897217, -0.4283955991268158, -0.5542885065078735, -0.26189228892326355, -0.3709908127784729, -0.9335675835609436, 0.009112142026424408, 0.4953151047229767, 0.6038937568664551, 0.29908761382102966, 0.4200829565525055, -0.44450634717941284, 0.1302366703748703, 0.44380876421928406, 0.10341862589120865, 0.07736825942993164, -0.7408047318458557, 0.20575623214244843, 0.33627456426620483, -0.48361048102378845, -1.0629000663757324, 0.8712809085845947, -0.04761947691440582, 0.4848720133304596, 0.7783336639404297, 0.054737843573093414, 1.1511507034301758, -0.5199733972549438, 0.8198326230049133, 0.7242117524147034, -0.4216648042201996, 0.39771127700805664, -0.5428771376609802, 0.336149126291275, 0.6178486347198486, 0.5365504026412964, -0.24961455166339874, -0.26393425464630127, -1.0443751811981201, -1.0178817510604858, 0.49827855825424194, 0.4242391288280487, 0.008614344522356987, 0.2702328562736511, 0.385030597448349, 0.1043284609913826, -0.09860300272703171, -0.8405642509460449, -0.5851947069168091, -0.21353618800640106, -0.2215031087398529, -0.06699232012033463, -0.22332198917865753, -0.20370200276374817, -0.4943475127220154, 1.1055114269256592, 0.09750621765851974, 0.3558967709541321, 0.08396545797586441, 0.19101324677467346, 0.2582642734050751, 0.09211061149835587, 0.8017582893371582, 0.7789260149002075, -0.49334263801574707, -0.2896234393119812, -0.1906486302614212, -0.31645146012306213, 0.06068916618824005, 0.13000012934207916, -0.5003629326820374, 0.21272827684879303, 0.4235571324825287, 0.9029557704925537, 0.23804640769958496, -0.30694693326950073, 0.8244449496269226, -0.275970458984375, -0.22531719505786896, -1.0206135511398315, 0.21905659139156342, 0.3293831944465637, 0.7929349541664124, 0.5036984086036682, 0.27439698576927185, 0.5658273100852966, -0.566362202167511, -0.14409388601779938, 0.6149944067001343, -0.518700122833252, -0.5726044178009033, 1.0765255689620972, -0.11825117468833923, -0.3260646462440491, 0.26497355103492737, -0.1367093324661255, -0.29707053303718567, 1.0034338235855103, 0.5975777506828308, 0.9259318709373474, 0.021219439804553986, 0.34505409002304077, 0.7613940238952637, 0.1390778124332428, 0.16523748636245728, 0.6988891959190369, 0.2064160257577896, -0.059963323175907135, 0.08279118686914444, -0.5859938263893127, -0.19314704835414886, 0.2018568515777588, -0.748661458492279, 0.6672891974449158, -0.7260602712631226, -0.5609350204467773, 0.20695413649082184, 0.06828294694423676, -0.8147073984146118, 0.7753422856330872, -0.20084474980831146, 1.2851049900054932, -0.9795899391174316, 0.7538072466850281, 0.4873238801956177, -0.7629802227020264, -0.9526403546333313, -0.13033616542816162, 0.038740966469049454, -0.6161065697669983, 0.6110386848449707, 0.24145320057868958, -0.16375397145748138, -0.1295299082994461, -0.7761192917823792, -1.0413810014724731, 1.4202864170074463, 0.41935431957244873, -0.8457145094871521, -0.20651495456695557, -0.43623268604278564, 0.36291056871414185, -0.7294126152992249, 0.5971819162368774, 0.1987874060869217, 0.4942643344402313, 0.31724321842193604, -0.7222172021865845, -0.06585681438446045, -0.9738386869430542, 0.3391375243663788, -0.28439849615097046, -1.4200658798217773, 1.2157483100891113, -0.13996289670467377, -0.1973150372505188, 0.614618718624115, 0.6776413321495056, 0.3939532935619354, -0.06636202335357666, 0.7072939276695251, 0.716663122177124, 0.14238891005516052, -0.2789018750190735, 1.431208610534668, -0.49647465348243713, 0.4206593930721283, 0.9608336091041565, 0.38103950023651123, 0.7956621646881104, 0.08284732699394226, -0.3564116656780243, 0.8372504711151123, 0.9504961967468262, -0.39411261677742004, 0.5782988667488098, -0.0345720574259758, -0.2391779124736786, -0.09658127278089523, -0.13338294625282288, -0.5943207740783691, 0.43141618371009827, -0.04747229442000389, -0.5503003001213074, 0.11974754184484482, 0.06405362486839294, 0.054244544357061386, 0.22623123228549957, -0.47055235505104065, 0.5061737895011902, -0.23360854387283325, -0.32340702414512634, 0.8397634625434875, -0.13673169910907745, 0.6723099946975708, -0.5695874094963074, -0.028512774035334587, -0.22432604432106018, 0.30233728885650635, -0.22111883759498596, -0.700425922870636, -0.06787358969449997, -0.0007600862882100046, -0.26820874214172363, -0.3019102215766907, 0.5968616604804993, -0.13540537655353546, -1.2368476390838623, 0.29710879921913147, -0.22342361509799957, 0.20611166954040527, 0.20771899819374084, -0.8318552374839783, 0.15902554988861084, 0.054860275238752365, -0.5160135626792908, -0.299454927444458, 0.22833336889743805, 0.2893766760826111, 0.5583395957946777, 0.45831209421157837, 0.22916390001773834, 0.08936233073472977, -0.37311744689941406, 0.9383062124252319, -0.5805956721305847, -0.4438432455062866, -0.8258851766586304, 0.7849790453910828, -0.5518949031829834, -0.6507614254951477, 0.8863822817802429, 0.9716444611549377, 0.7516107559204102, -0.5685917139053345, 0.6695829629898071, -0.10287535190582275, 0.3649410605430603, -0.37531742453575134, 1.1317030191421509, -0.9779045581817627, -0.3968115746974945, -0.29216694831848145, -0.9514705538749695, -0.09867950528860092, 0.8094464540481567, 0.021374600008130074, 0.25697582960128784, 0.2021603137254715, 0.6630102396011353, -0.1689860075712204, -0.15906837582588196, 0.25571998953819275, 0.3728170394897461, 0.42200735211372375, 0.33401796221733093, 0.5358104109764099, -0.704163670539856, 0.36569786071777344, -0.7439921498298645, -0.4775394797325134, -0.4763489365577698, -0.6962437033653259, -0.9942265748977661, -0.6535090804100037, -0.3245501220226288, -0.29580917954444885, 0.05241251736879349, 0.8984625935554504, 1.0811387300491333, -0.8508524894714355, -0.46756452322006226, 0.18414811789989471, -0.31847766041755676, -0.33192333579063416, -0.26116740703582764, 0.351713091135025, 0.44307994842529297, -1.0702790021896362, 0.16415882110595703, 0.21377070248126984, 0.6450262665748596, -0.11597291380167007, 0.25576546788215637, -0.4192200303077698, 0.09088560938835144, 0.3027871549129486, 0.1787317395210266, -0.6635630130767822, 0.06504788249731064, 0.03332766145467758, -0.24383783340454102, -0.0635276809334755, 0.3050338625907898, -0.4048800766468048, 0.2939237654209137, 0.6826704144477844, -0.1331220418214798, 0.5945639610290527, -0.039873696863651276, 0.4480755627155304, -0.29155611991882324, 0.40490490198135376, 0.14416247606277466, 0.697867751121521, 0.17426377534866333, -0.3090536892414093, 0.6913649439811707, 0.3993498980998993, -0.3797646462917328, -0.8422398567199707, 0.04331257566809654, -1.2258551120758057, -0.3474951684474945, 0.8864169716835022, -0.4032048285007477, -0.678691029548645, 0.5583320260047913, -0.30188366770744324, 0.21687932312488556, 0.0715944916009903, 0.5639079809188843, 0.8932104110717773, 0.14995260536670685, -0.04605194181203842, -0.7620040774345398, 0.1975131779909134, -0.12307929992675781, -0.807476818561554, -0.3412095010280609, 0.5399678349494934, 0.4695083796977997, 0.4756953716278076, 0.36106622219085693, -0.5205293893814087, 0.6279844045639038, -0.040929459035396576, 0.6013661026954651, -0.10565152019262314, -0.1725974678993225, 0.2504909634590149, 0.46912306547164917, -0.036619409918785095, -0.485931932926178 ]
philschmid/distilbert-onnx
philschmid
"2022-02-16T14:51:05Z"
34,409
2
transformers
[ "transformers", "onnx", "distilbert", "question-answering", "en", "dataset:squad", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
question-answering
"2022-03-02T23:29:05Z"
--- language: "en" datasets: - squad metrics: - squad license: apache-2.0 --- # ONNX Conversion of [distilbert-base-cased-distilled-squad](https://huggingface.co/distilbert-base-cased-distilled-squad) # DistilBERT base cased distilled SQuAD This model is a fine-tune checkpoint of [DistilBERT-base-cased](https://huggingface.co/distilbert-base-cased), fine-tuned using (a second step of) knowledge distillation on SQuAD v1.1. This model reaches a F1 score of 87.1 on the dev set (for comparison, BERT bert-base-cased version reaches a F1 score of 88.7).
[ -0.3846978545188904, -0.5590127110481262, 0.5491330623626709, 0.5973147749900818, -0.4202878475189209, 0.4661409556865692, 0.262103408575058, -0.014542794786393642, 0.1508038491010666, 0.4302210211753845, -1.1497443914413452, -0.55176842212677, -0.49590492248535156, 0.038914021104574203, -0.25585663318634033, 1.3254680633544922, -0.03810863941907883, 0.15414977073669434, 0.12113189697265625, -0.1282365620136261, -0.24146662652492523, -0.7359457612037659, -0.7343200445175171, -0.3157716691493988, 0.33930614590644836, 0.4272000193595886, 0.2762489914894104, 0.3600763976573944, 0.7280818223953247, 0.26042190194129944, -0.31001055240631104, -0.32817551493644714, -1.0128227472305298, 0.141115203499794, -0.005458816420286894, -0.37736454606056213, -0.8001704216003418, 0.08513911068439484, -0.04582612216472626, 0.654655933380127, -0.2412654310464859, 0.2702985405921936, -0.23712192475795746, 0.8438941240310669, -0.35401833057403564, 0.33987879753112793, -0.7963159084320068, 0.053432244807481766, 0.12592573463916779, 0.050060078501701355, -0.45458540320396423, -0.2611929178237915, 0.40641966462135315, -0.7928521633148193, 0.5286270380020142, 0.027244223281741142, 0.5791943669319153, 0.3872210681438446, -0.23796489834785461, 0.013103917241096497, -0.4471074342727661, 1.007154941558838, -0.5724278688430786, 0.15644915401935577, 0.41334837675094604, 0.6724445223808289, -0.2512264549732208, -0.7542569041252136, -0.311871737241745, 0.07040701806545258, 0.1963905394077301, 0.13255654275417328, -0.19242221117019653, 0.11349283903837204, 0.2592672109603882, 0.4769432842731476, -0.23169945180416107, -0.2982577681541443, -0.7217470407485962, -0.1815987527370453, 0.7530422210693359, 0.09450270980596542, -0.16492918133735657, 0.22462403774261475, -0.7836565971374512, -0.05775634944438934, -0.7186641693115234, -0.0013197418302297592, 0.04773245379328728, 0.4603801965713501, -0.20848755538463593, 0.44084665179252625, -0.624697208404541, 0.49744370579719543, 0.8098399639129639, 0.042709317058324814, 0.3478368818759918, -0.725749671459198, -0.4133799970149994, 0.6642158031463623, 0.2584446668624878, 0.6134161353111267, 0.45649969577789307, -0.14348959922790527, -0.4939019978046417, -0.2382884919643402, 0.36786332726478577, -1.4189196825027466, -0.45741006731987, 0.029517745599150658, -0.46134939789772034, -0.759080708026886, 0.28282108902931213, -0.058730341494083405, -0.02537916786968708, -0.02893207222223282, 0.3822982907295227, -0.4030742645263672, -0.3905566930770874, -0.03469119966030121, -0.6281643509864807, 0.2429688423871994, 0.6084661483764648, -0.8997268080711365, 0.010000715963542461, 0.512251079082489, 0.8851288557052612, -0.013711436651647091, 0.17588943243026733, -0.2348773032426834, 0.05952071398496628, -0.31381386518478394, 0.48088163137435913, -0.049806125462055206, -0.640567421913147, -0.18661664426326752, 0.1903063803911209, 0.3293883204460144, -0.6100809574127197, 0.43694043159484863, -0.5404460430145264, -0.3339815139770508, -0.6693311333656311, -0.5061125755310059, -0.289160817861557, 0.5045055747032166, -0.7440566420555115, 0.9097353219985962, 0.7673372626304626, -0.28362321853637695, 0.8566091060638428, -0.7138007879257202, -0.2955686151981354, 0.156629279255867, 0.42113080620765686, -0.3424649238586426, 0.24541138112545013, -0.21687164902687073, 0.44432470202445984, 0.06083766743540764, 0.13733944296836853, -0.6831958889961243, -0.1865546852350235, -0.11521031707525253, -0.06319683790206909, 1.1950963735580444, 0.23569583892822266, -0.22940410673618317, -0.10695185512304306, -0.8734721541404724, 0.39992058277130127, -0.1959587037563324, -0.48688802123069763, -0.3769611418247223, -0.30610984563827515, 0.10830792039632797, 0.3319162130355835, 0.34725967049598694, -0.5576123595237732, 0.31916192173957825, -0.07749392837285995, 0.5280318856239319, 0.49090811610221863, 0.12372513115406036, 0.3614039123058319, -0.5567953586578369, 0.18893659114837646, 0.29320037364959717, 0.2793859541416168, 0.2643525302410126, -0.7983629703521729, -0.9343377947807312, -0.46232303977012634, 0.3138788640499115, 0.4715128242969513, -0.6209644675254822, 0.78043133020401, 0.23318688571453094, -0.8432914614677429, -0.2246292680501938, 0.21191324293613434, 0.5696152448654175, 0.4046841263771057, 0.44328102469444275, -0.26642969250679016, -0.6202335357666016, -0.9351071119308472, 0.4328540563583374, -0.6851262450218201, 0.05824015289545059, -0.2856600284576416, 0.7722858190536499, -0.16687443852424622, 0.8567420244216919, -0.16496998071670532, -0.27495354413986206, -0.4271257817745209, 0.1441655158996582, 0.4721180498600006, 0.7232608795166016, 1.0377471446990967, -0.7261608839035034, -0.7458767890930176, 0.11324701458215714, -0.5644015669822693, -0.043713368475437164, 0.30306506156921387, -0.32936182618141174, 0.10429822653532028, 0.5581786036491394, -0.3706466555595398, 0.844985842704773, 0.28425249457359314, -0.6837605834007263, 0.31114932894706726, -0.06079047918319702, 0.45536863803863525, -1.229357123374939, -0.00299001089297235, 0.030596323311328888, -0.5341853499412537, -0.8040108680725098, 0.06751527637243271, 0.02044946886599064, 0.2522397041320801, -0.7240472435951233, 0.15511325001716614, -0.4407273828983307, 0.052619606256484985, -0.015551671385765076, -0.6316957473754883, 0.1464291512966156, 0.3842231333255768, -0.17526327073574066, 0.5820100903511047, 0.2867979109287262, -0.6363847851753235, 0.6972521543502808, 0.49213454127311707, -0.35549309849739075, 0.7307969331741333, -0.9773618578910828, 0.033283159136772156, 0.11151827126741409, 0.18524816632270813, -1.1067593097686768, -0.04360093176364899, -0.13939310610294342, -0.2279650717973709, 0.2615576386451721, -0.4243539273738861, -0.3711305260658264, -0.006096889264881611, -0.17642688751220703, 0.6458954215049744, 0.5638427734375, -0.42178237438201904, 0.09691155701875687, 0.16526563465595245, -0.01936568319797516, -0.0508684441447258, -0.9448574185371399, -0.5400778651237488, -0.29737111926078796, -0.7424679398536682, 0.7933786511421204, -0.20349499583244324, -0.593659520149231, -0.1595427691936493, -0.3763415813446045, -0.6312946081161499, 0.1252749115228653, 0.32405731081962585, 0.4999642074108124, -0.6582492589950562, -0.2243558019399643, 0.26557978987693787, 0.1406746208667755, 0.09690746665000916, 0.17357207834720612, 0.4724668562412262, -0.14583748579025269, 0.0029943380504846573, -0.35023874044418335, 0.3718668222427368, 0.9534196257591248, 0.3997715413570404, 0.810558557510376, 0.13415955007076263, -0.4349689185619354, -0.33073699474334717, -0.4131978154182434, -0.5542711615562439, -0.4710724949836731, 0.2949375808238983, -0.7123332619667053, -0.6534745097160339, 0.8161009550094604, 0.12657985091209412, 0.030799200758337975, 0.9313058257102966, 0.5652568936347961, -0.19849145412445068, 1.0872539281845093, 0.7878537178039551, -0.07921910285949707, 0.12678678333759308, -0.49005165696144104, -0.05758744478225708, -0.46932029724121094, -0.3737386465072632, -0.45818495750427246, -0.509286105632782, -0.3146056532859802, -0.28101199865341187, 0.3732278347015381, 0.5886950492858887, -0.6605059504508972, 0.6984638571739197, -0.5447357892990112, 0.5552972555160522, 0.5246861577033997, 0.3256649374961853, 0.5492558479309082, -0.05655673146247864, -0.0483790822327137, -0.09762242436408997, -0.5773898959159851, -0.11650147289037704, 1.0706191062927246, 0.36974668502807617, 0.5097497701644897, 0.39354759454727173, 0.6914061307907104, 0.6313104629516602, 0.2716328203678131, -0.7625227570533752, 0.3710918426513672, -0.15901897847652435, -1.2777879238128662, -0.2721693515777588, -0.3051389455795288, -0.29486289620399475, -0.2548392117023468, -0.15414443612098694, -0.3060496747493744, 0.05179176479578018, 0.11760339885950089, -0.6600874662399292, -0.011573714204132557, -0.8335394263267517, 1.1471437215805054, -0.29394978284835815, -0.16711188852787018, -0.21039676666259766, -0.6143088340759277, 0.5396746397018433, -0.21902933716773987, -0.37492477893829346, -0.27128711342811584, 0.2622097432613373, 0.4249880015850067, -0.9926460385322571, 0.6156818866729736, -0.3781278431415558, 0.05841720849275589, 0.4049035906791687, 0.04869271442294121, 0.288097083568573, 0.366271048784256, -0.46383431553840637, 0.27347102761268616, 0.1872664839029312, -0.41675886511802673, -0.29862645268440247, 0.7223021984100342, -0.6482937932014465, -0.41068029403686523, -0.4961308538913727, -0.30625098943710327, -0.10857121646404266, 0.06052663177251816, 0.5547623038291931, 0.25094619393348694, -0.6973469853401184, 0.47262075543403625, 0.984591007232666, 0.12080243229866028, 0.382228821516037, 0.5687545537948608, -0.35203394293785095, -0.06458736956119537, 0.44864630699157715, -0.11296708136796951, 0.8583709001541138, 0.39588412642478943, 0.0014803993981331587, -0.6159705519676208, -0.638526439666748, -0.9141442179679871, -0.1930660605430603, -0.7035515308380127, -0.30501464009284973, -0.15706291794776917, -0.6364659070968628, -0.5950779318809509, -0.14697685837745667, -0.4323485791683197, -0.7057747840881348, -0.5950385332107544, -0.3017614483833313, 0.7992464900016785, 0.7566642761230469, 0.13720564544200897, 0.3270859718322754, -0.6056361794471741, 0.010675490833818913, 0.4137757420539856, 0.20938502252101898, -0.7360214591026306, -0.81963050365448, 0.024422675371170044, 0.21440374851226807, -0.3422069251537323, -1.028154730796814, 0.33299943804740906, 0.4218878448009491, 0.5424351096153259, 0.5588358044624329, 0.3099229335784912, 0.8457515835762024, -0.3192376494407654, 0.3593631684780121, 0.3385326862335205, -0.7943865656852722, 0.7297295928001404, -0.4100997745990753, 0.26747462153434753, 1.332990050315857, 0.5399606823921204, 0.13481462001800537, -0.14696043729782104, -0.657558023929596, -0.5709506869316101, 0.7530584335327148, 0.3753904700279236, -0.1387263536453247, 0.31956735253334045, 0.3560991883277893, 0.18432240188121796, 0.46418333053588867, -0.3991321623325348, -0.5601871013641357, -0.4193173944950104, -0.08739572763442993, 0.15790250897407532, -0.09807544946670532, -0.03510928153991699, -0.7591124773025513, 0.8408848643302917, -0.07037863880395889, 0.0323512889444828, 0.20987927913665771, 0.16723711788654327, 0.023756809532642365, -0.23409830033779144, 0.7464825510978699, 0.6413284540176392, -0.9158843159675598, -0.3843277096748352, 0.15991391241550446, -0.4657001197338104, 0.2809419333934784, -0.14715272188186646, -0.11308715492486954, 0.29659217596054077, 0.03159329667687416, 0.9846892356872559, 0.14894303679466248, -0.22510899603366852, 0.5164684653282166, -0.02000788040459156, -0.5956321358680725, -0.48252809047698975, 0.32214128971099854, -0.023099664598703384, 0.3510003983974457, 0.45254892110824585, 0.24140548706054688, 0.26431575417518616, -0.9949705004692078, 0.2798764705657959, 0.4147774875164032, -0.8264673948287964, -0.3537786602973938, 0.5521942377090454, 0.5184279680252075, -0.22012072801589966, 0.595311164855957, -0.6142662763595581, -0.6735727787017822, 0.9245955944061279, 0.48999521136283875, 0.9746294617652893, -0.287682443857193, 0.31710025668144226, 0.7179642915725708, 0.18017974495887756, -0.358610600233078, 0.46468934416770935, -0.13023513555526733, -0.6242736577987671, -0.09710051864385605, -0.9793785810470581, -0.260354220867157, 0.026508407667279243, -0.8325037956237793, 0.43794870376586914, -0.8384813666343689, -0.4320421814918518, 0.17631739377975464, -0.07727764546871185, -0.5773037075996399, 0.308278888463974, -0.1345386803150177, 1.1268436908721924, -0.6141038537025452, 1.113385796546936, 0.7827936410903931, -0.30547937750816345, -0.8086229562759399, -0.3004617393016815, 0.07834278047084808, -0.8226270079612732, 1.124127745628357, 0.24009881913661957, 0.18071743845939636, 0.20609332621097565, -0.3522801101207733, -0.6374897360801697, 1.2287019491195679, 0.2926938533782959, -0.8737179636955261, 0.04575072601437569, 0.1187056228518486, 0.4912460744380951, -0.6926278471946716, 0.3848063349723816, 0.7599932551383972, 0.5589093565940857, 0.39844661951065063, -1.3698334693908691, -0.06538180261850357, -0.48614388704299927, -0.003765708301216364, 0.08546645939350128, -0.6465109586715698, 1.222425103187561, -0.3194020986557007, 0.03892548009753227, 0.21401938796043396, 0.40686658024787903, 0.48774462938308716, 0.30576029419898987, 0.6513049006462097, 0.8376301527023315, 0.21383561193943024, -0.5553457736968994, 0.631445050239563, -0.12236469984054565, 0.2961539328098297, 0.7662730813026428, -0.423117458820343, 0.7575108408927917, 0.6791811585426331, -0.34374356269836426, 0.5754644870758057, 0.5216594934463501, 0.022049743682146072, 1.1075323820114136, 0.4700946807861328, -0.4793074429035187, -0.5374979376792908, 0.3045549988746643, -0.5574347972869873, 0.5427338480949402, 0.3362974524497986, -0.5662311911582947, -0.19340410828590393, -0.44762346148490906, -0.2911405563354492, -0.11362240463495255, -0.6597986817359924, 0.9680278897285461, -0.008250273764133453, -0.7972308397293091, 0.7420657277107239, -0.0022632337640970945, 0.6699622273445129, -0.6088300347328186, -0.1942271888256073, -0.2606028616428375, 0.5369055867195129, -0.04233698546886444, -0.6748802065849304, 0.564684271812439, -0.03743505850434303, -0.7826341390609741, -0.3710838854312897, 0.5672682523727417, -0.41792306303977966, -1.0169363021850586, 0.16852916777133942, 0.5450533628463745, 0.0612182542681694, -0.42412492632865906, -0.7876406908035278, 0.03028133511543274, 0.32273802161216736, -0.07354247570037842, 0.3122726082801819, 0.7116791009902954, 0.0515742301940918, 0.4405197203159332, 0.6229369640350342, -0.2606433629989624, 0.23642824590206146, -0.11875849962234497, 0.8360776901245117, -0.55913245677948, -0.43245357275009155, -0.8741235733032227, 0.6015962958335876, -0.34683582186698914, -0.9589707851409912, 0.4825296103954315, 0.7993561029434204, 0.9538772106170654, -0.4292410612106323, 0.9530035257339478, -0.25173622369766235, 0.4175516963005066, -0.41199854016304016, 1.1912587881088257, -0.6755899786949158, -0.047652024775743484, -0.14063340425491333, -0.9164639115333557, 0.15075653791427612, 0.9800637364387512, 0.3390042781829834, -0.06866654753684998, 0.4455508291721344, 0.7636669278144836, -0.2279302477836609, 0.16575945913791656, 0.4085087478160858, -0.013902024365961552, 0.09474941343069077, 0.6551311612129211, 0.6362268328666687, -0.7078053951263428, 0.5107724070549011, -0.6139914989471436, -0.3707959055900574, -0.4044830799102783, -1.088796854019165, -1.377354383468628, -0.4468108117580414, -0.4390757977962494, -0.6448073983192444, 0.165532648563385, 0.7576443552970886, 0.9605297446250916, -1.2054723501205444, -0.1805119663476944, -0.42357197403907776, -0.24586044251918793, -0.07077847421169281, -0.22988566756248474, -0.3569520115852356, -0.05758758634328842, -0.6789630651473999, 0.5139508843421936, 0.221930131316185, 0.19528864324092865, -0.4589088559150696, -0.20875896513462067, -0.14921431243419647, -0.19123020768165588, 0.5417330861091614, 0.1342041939496994, -0.5898988246917725, -0.3184284269809723, 0.26339152455329895, -0.4091855585575104, 0.08059178292751312, 0.6119689345359802, -0.5568956136703491, 0.06399264186620712, 0.7654165029525757, 0.38071969151496887, 0.6572393774986267, 0.09269382804632187, 0.8808666467666626, -1.0220071077346802, 0.32614001631736755, 0.2743603587150574, 0.5178627967834473, 0.2325250506401062, -0.19696184992790222, 0.5698584318161011, 0.4323478043079376, -0.5297804474830627, -0.843212902545929, 0.15088212490081787, -1.5591241121292114, -0.029863782227039337, 1.1363626718521118, -0.2945113182067871, -0.29616212844848633, -0.23162709176540375, -0.24867625534534454, 0.26677951216697693, -0.6985965967178345, 0.713045060634613, 0.7874377965927124, 0.27826598286628723, 0.16222116351127625, -0.41547659039497375, 0.7354691028594971, 0.2766985595226288, -0.6932733058929443, -0.38594117760658264, 0.36173179745674133, 0.47342321276664734, 0.36898961663246155, 0.4691223204135895, 0.07652817666530609, 0.479261577129364, 0.041801661252975464, 0.012553579173982143, -0.055818114429712296, -0.2533186376094818, 0.3370867371559143, -0.06266774237155914, -0.248292937874794, -0.34652596712112427 ]
snrspeaks/t5-one-line-summary
snrspeaks
"2021-06-23T14:20:22Z"
34,402
89
transformers
[ "transformers", "pytorch", "t5", "text2text-generation", "dataset:arxiv", "license:mit", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- datasets: - arxiv widget: - text: "summarize: We describe a system called Overton, whose main design goal is to support engineers in building, monitoring, and improving production machinelearning systems. Key challenges engineers face are monitoring fine-grained quality, diagnosing errors in sophisticated applications, and handling contradictory or incomplete supervision data. Overton automates the life cycle of model construction, deployment, and monitoring by providing a set of novel high-level, declarative abstractions. Overton's vision is to shift developers to these higher-level tasks instead of lower-level machine learning tasks. In fact, using Overton, engineers can build deep-learning-based applications without writing any code in frameworks like TensorFlow. For over a year, Overton has been used in production to support multiple applications in both near-real-time applications and back-of-house processing. In that time, Overton-based applications have answered billions of queries in multiple languages and processed trillions of records reducing errors 1.7-2.9 times versus production systems." license: mit --- # T5 One Line Summary A T5 model trained on 370,000 research papers, to generate one line summary based on description/abstract of the papers. It is trained using [simpleT5](https://github.com/Shivanandroy/simpleT5) library - A python package built on top of pytorch lightning⚡️ & transformers🤗 to quickly train T5 models ## Usage:[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1HrfT8IKLXvZzPFpl1EhZ3s_iiXG3O2VY?usp=sharing) ```python abstract = """We describe a system called Overton, whose main design goal is to support engineers in building, monitoring, and improving production machine learning systems. Key challenges engineers face are monitoring fine-grained quality, diagnosing errors in sophisticated applications, and handling contradictory or incomplete supervision data. Overton automates the life cycle of model construction, deployment, and monitoring by providing a set of novel high-level, declarative abstractions. Overton's vision is to shift developers to these higher-level tasks instead of lower-level machine learning tasks. In fact, using Overton, engineers can build deep-learning-based applications without writing any code in frameworks like TensorFlow. For over a year, Overton has been used in production to support multiple applications in both near-real-time applications and back-of-house processing. In that time, Overton-based applications have answered billions of queries in multiple languages and processed trillions of records reducing errors 1.7-2.9 times versus production systems. """ ``` ### Using Transformers🤗 ```python model_name = "snrspeaks/t5-one-line-summary" from transformers import AutoModelForSeq2SeqLM, AutoTokenizer model = AutoModelForSeq2SeqLM.from_pretrained(model_name) tokenizer = AutoTokenizer.from_pretrained(model_name) input_ids = tokenizer.encode("summarize: " + abstract, return_tensors="pt", add_special_tokens=True) generated_ids = model.generate(input_ids=input_ids,num_beams=5,max_length=50,repetition_penalty=2.5,length_penalty=1,early_stopping=True,num_return_sequences=3) preds = [tokenizer.decode(g, skip_special_tokens=True, clean_up_tokenization_spaces=True) for g in generated_ids] print(preds) # output ["Overton: Building, Deploying, and Monitoring Machine Learning Systems for Engineers", "Overton: A System for Building, Monitoring, and Improving Production Machine Learning Systems", "Overton: Building, Monitoring, and Improving Production Machine Learning Systems"] ``` ### Using simpleT5⚡️ ```python # pip install --upgrade simplet5 from simplet5 import SimpleT5 model = SimpleT5() model.load_model("t5","snrspeaks/t5-one-line-summary") model.predict(abstract) # output "Overton: Building, Deploying, and Monitoring Machine Learning Systems for Engineers" ```
[ -0.4519406855106354, -0.46792829036712646, 0.5144158601760864, 0.1626005619764328, -0.14083240926265717, 0.020887810736894608, -0.049402426928281784, -0.4223901033401489, -0.02902493253350258, 0.40712130069732666, -0.32016441226005554, -0.6130566000938416, -0.5074687600135803, -0.018908226862549782, -0.4818826913833618, 1.1494693756103516, -0.06090964376926422, -0.23219966888427734, 0.1302935779094696, -0.02530534565448761, -0.13931630551815033, -0.388518363237381, -0.8260154724121094, -0.4403286278247833, 0.3628217875957489, 0.014562693424522877, 0.4828571081161499, 0.6787287592887878, 0.3277715742588043, 0.3558138310909271, -0.19137586653232574, 0.11952978372573853, -0.30151447653770447, -0.043579377233982086, -0.06483771651983261, -0.4267354905605316, -0.6194892525672913, -0.13284379243850708, 0.41061562299728394, 0.6322792768478394, 0.06104928255081177, 0.4987112581729889, -0.014646015129983425, 0.39474326372146606, -0.6388980746269226, 0.4085606336593628, -0.2951790690422058, 0.1235952153801918, 0.05419210344552994, -0.18393051624298096, -0.4522888660430908, -0.4283093810081482, 0.005293247289955616, -0.6849817037582397, 0.33412331342697144, -0.08431140333414078, 0.9420243501663208, 0.38295668363571167, -0.43485596776008606, -0.24818283319473267, -0.35314735770225525, 1.0005861520767212, -0.9708866477012634, 0.35124096274375916, 0.2127642035484314, 0.3650384843349457, -0.054677341133356094, -1.1586614847183228, -0.2530956566333771, -0.21148249506950378, -0.29037943482398987, 0.4603162109851837, -0.0593411847949028, 0.28166383504867554, 0.6118730902671814, 0.29556918144226074, -0.7196545004844666, 0.028814837336540222, -1.0092425346374512, 0.04808547720313072, 0.7802761793136597, 0.36283454298973083, -0.11971598863601685, -0.34957677125930786, -0.4061090052127838, 0.16885702311992645, -0.19864773750305176, 0.11374295502901077, 0.07463862746953964, 0.3011518120765686, -0.08214264363050461, 0.2579668462276459, -0.3074609637260437, 0.4638994038105011, -0.000018940825611934997, 0.05703107640147209, 0.510217547416687, -0.20303581655025482, -0.5447502732276917, 0.16327349841594696, 0.9568361639976501, 0.28285884857177734, 0.10596787929534912, -0.18584507703781128, -0.38472113013267517, -0.03640133887529373, 0.4080432653427124, -1.0017606019973755, -0.41276854276657104, 0.7115553617477417, -0.5560097694396973, -0.6059199571609497, -0.0959893986582756, -0.534413754940033, -0.356160432100296, -0.20296426117420197, 0.6812345385551453, -0.4102720618247986, -0.35055676102638245, 0.1729639619588852, -0.2748386561870575, 0.12380232661962509, 0.1221209466457367, -0.8416489958763123, 0.09154374152421951, 0.6154963374137878, 1.1465462446212769, 0.1276419311761856, -0.5272801518440247, -0.21115927398204803, -0.0517890490591526, -0.3365399241447449, 0.3973563313484192, 0.2465493232011795, -0.333827942609787, -0.11882450431585312, -0.038971107453107834, -0.10465314984321594, -0.44779983162879944, 0.40040692687034607, -0.3819713890552521, 0.4764803349971771, 0.0014696962898597121, -0.5954649448394775, -0.28110820055007935, 0.28718623518943787, -0.48600462079048157, 0.966796875, 0.2956242859363556, -0.7673677802085876, 0.4079107642173767, -1.134960412979126, -0.4450453221797943, -0.2856815755367279, -0.061566926538944244, -0.8003532886505127, 0.08047518879175186, 0.03171875327825546, 0.588468611240387, -0.17970190942287445, 0.27856820821762085, -0.47903817892074585, -0.18673543632030487, 0.14229828119277954, -0.13425953686237335, 1.3457893133163452, 0.6003197431564331, -0.29086965322494507, 0.3371801972389221, -0.9868841767311096, 0.17235113680362701, -0.03884630277752876, -0.38870108127593994, 0.24587209522724152, -0.14325618743896484, 0.13912054896354675, 0.19996008276939392, 0.1912212371826172, -0.6455047130584717, 0.42674046754837036, -0.4851910471916199, 0.9836198687553406, 0.41259944438934326, -0.16889484226703644, 0.09599117189645767, -0.4600677192211151, 0.4050077199935913, 0.18717128038406372, 0.19592060148715973, -0.34476107358932495, -0.16428741812705994, -0.7460364103317261, -0.39514675736427307, 0.4238949418067932, 0.4176173806190491, -0.5274014472961426, 0.49569353461265564, -0.18260562419891357, -0.3755227029323578, -0.6391361951828003, -0.1166253611445427, 0.2038440704345703, 0.34681203961372375, 0.7128269672393799, -0.144697904586792, -1.054819941520691, -0.5857954025268555, 0.07773097604513168, 0.00689936988055706, -0.25415295362472534, -0.2873308062553406, 0.6795080900192261, -0.2580791711807251, 1.0622873306274414, -0.7618042230606079, -0.42175328731536865, -0.49815359711647034, 0.3904585838317871, 0.5606689453125, 0.6007263660430908, 0.7036007046699524, -0.34466952085494995, -0.42384740710258484, -0.13057240843772888, -1.0023709535598755, 0.023773645982146263, -0.24812051653862, 0.0986286923289299, 0.32677772641181946, 0.6656214594841003, -0.826950192451477, 0.33955487608909607, 0.12897086143493652, -0.21562592685222626, 0.4696093201637268, -0.17011775076389313, -0.11639747023582458, -1.5317471027374268, 0.3484654724597931, -0.1729084998369217, -0.29941385984420776, -0.3723810613155365, 0.11837303638458252, -0.06845783442258835, -0.17019808292388916, -0.32806700468063354, 0.3649401366710663, -0.48676368594169617, -0.043158020824193954, -0.2923419177532196, -0.09808260202407837, 0.12324424833059311, 0.6338276267051697, -0.1533500701189041, 0.5312830805778503, 0.6587123870849609, -0.49922117590904236, 0.5712733268737793, 0.2989785671234131, -0.1809885948896408, 0.1035151407122612, -0.8253406286239624, -0.05802834779024124, -0.19906610250473022, 0.16763445734977722, -1.157842993736267, -0.15273050963878632, 0.12431681156158447, -0.7992230653762817, 0.36178797483444214, -0.2585642337799072, -0.4011702537536621, -0.3720843195915222, -0.4974540174007416, 0.3405240774154663, 0.7218456864356995, -0.5053277015686035, 0.7169541120529175, 0.08925414085388184, 0.3151960074901581, -0.39942553639411926, -1.1130999326705933, -0.2561472952365875, -0.21623888611793518, -0.6450947523117065, 0.14799046516418457, 0.2856207489967346, 0.1469097137451172, -0.06035130098462105, -0.12588275969028473, -0.28383156657218933, 0.20003896951675415, 0.2355847954750061, 0.053688984364271164, -0.45070141553878784, 0.07195528596639633, -0.29242002964019775, -0.2852117121219635, 0.39219290018081665, -0.4673670828342438, 0.3755394518375397, -0.04965996742248535, 0.08195538818836212, -0.3668188452720642, 0.16241098940372467, 0.83055579662323, -0.13126330077648163, 0.7154836058616638, 0.7580276131629944, -0.2842458188533783, -0.343777060508728, -0.14712706208229065, -0.2936548888683319, -0.4853866696357727, 0.6207708120346069, -0.5722177028656006, -0.2760262191295624, 0.723179042339325, 0.025053581222891808, 0.4689370095729828, 0.7666826844215393, 0.24739523231983185, -0.23036505281925201, 1.2148436307907104, 0.5551605224609375, -0.13090667128562927, 0.4419730603694916, -1.026163935661316, 0.10148096084594727, -0.6874143481254578, -0.029940970242023468, -0.3998931348323822, -0.21819569170475006, -0.5425180196762085, 0.20418907701969147, 0.23541243374347687, 0.056426554918289185, -0.5397814512252808, 0.5957576036453247, -0.5693647265434265, 0.2471073567867279, 0.6346660852432251, 0.13460415601730347, 0.10069289058446884, -0.21154756844043732, -0.06690973788499832, 0.21483270823955536, -0.974941611289978, -0.3007507622241974, 1.1971921920776367, 0.6112571954727173, 0.7396047115325928, 0.02571590431034565, 0.6817743182182312, 0.15433621406555176, 0.07852958887815475, -0.8607581257820129, 0.263385146856308, -0.23084798455238342, -0.8424135446548462, -0.29022568464279175, -0.5048828721046448, -0.8617734909057617, 0.07352162897586823, 0.057660214602947235, -0.6974868178367615, -0.06707344204187393, 0.402926504611969, -0.967991292476654, 0.40490466356277466, -0.7965596914291382, 1.1868458986282349, -0.23197326064109802, -0.21497602760791779, -0.11446163803339005, -0.6968072652816772, 0.37884801626205444, 0.02021767757833004, -0.00765523174777627, 0.30737921595573425, 0.2568824291229248, 0.693853497505188, -0.552455484867096, 0.9327780604362488, -0.022022118791937828, 0.1760995239019394, 0.27953314781188965, -0.2042057365179062, 0.25933390855789185, -0.0590134859085083, -0.24140724539756775, 0.16931670904159546, 0.2768372595310211, -0.5085746645927429, -0.6066640615463257, 0.5760279297828674, -1.0313408374786377, -0.23744623363018036, -0.6202791333198547, -0.3909097909927368, 0.2496844083070755, 0.2172291874885559, 0.6256415247917175, 0.696996808052063, 0.2607347071170807, 0.4131333529949188, 0.37004491686820984, -0.16999280452728271, 0.6984373927116394, 0.1918250322341919, -0.42576679587364197, -0.6588557362556458, 0.8837952613830566, 0.5031936764717102, 0.3147520422935486, 0.24182112514972687, 0.10943242162466049, -0.5285003185272217, -0.5170668363571167, -0.5352247953414917, -0.03627294301986694, -0.6806936860084534, -0.278896301984787, -0.7751591801643372, -0.5120359063148499, -0.5654870867729187, -0.13051839172840118, -0.5186079144477844, -0.4946827292442322, -0.24544626474380493, -0.08574920892715454, 0.3880041241645813, 0.7310028672218323, 0.05140601098537445, 0.48605120182037354, -0.6478409767150879, 0.31124043464660645, 0.13184292614459991, 0.45767298340797424, -0.0007084331591613591, -0.7991492748260498, -0.5323101878166199, 0.02909972332417965, -0.8201404213905334, -0.6469799876213074, 0.27071186900138855, 0.0402425192296505, 0.39282363653182983, 0.38156673312187195, 0.3214903473854065, 0.5987834930419922, -0.08291184902191162, 0.6872463822364807, 0.03797122836112976, -1.018861174583435, 0.4133567214012146, -0.17956934869289398, 0.5449153780937195, 0.26158878207206726, 0.5586013197898865, -0.29299482703208923, -0.21270069479942322, -0.9122662544250488, -1.1306575536727905, 1.061671495437622, 0.4170493483543396, -0.2788600027561188, 0.37010958790779114, 0.02322489582002163, -0.19792255759239197, 0.48835423588752747, -0.7699175477027893, -0.2269825041294098, -0.7089670896530151, -0.4230507016181946, 0.08096759021282196, -0.0119572589173913, 0.05728916823863983, -0.33179184794425964, 0.8591684699058533, -0.04997871443629265, 0.4589724540710449, 0.2351907342672348, -0.21872995793819427, 0.044095128774642944, 0.02219507098197937, 0.8364617228507996, 0.7851700782775879, -0.6285222768783569, 0.17483296990394592, 0.5742390751838684, -0.23944231867790222, -0.26988324522972107, 0.1423579901456833, -0.21417656540870667, 0.25160056352615356, 0.5127635598182678, 0.9641788005828857, -0.17137640714645386, -0.08084782212972641, 0.17832981050014496, 0.28456220030784607, -0.3296956419944763, -0.6164983510971069, 0.07949987798929214, -0.09849286079406738, 0.42392030358314514, 0.38131654262542725, 0.16663725674152374, 0.17806197702884674, -0.7009149193763733, 0.21479186415672302, 0.045268286019563675, -0.2773932218551636, -0.2790217101573944, 0.9090110659599304, 0.1438477635383606, -0.12570638954639435, 0.4524725675582886, -0.22915497422218323, -0.7418661117553711, 0.938084065914154, 0.3100619316101074, 1.111258625984192, 0.20402242243289948, -0.22438910603523254, 0.5776763558387756, 0.278827428817749, -0.14274664223194122, 0.44589531421661377, 0.02834780141711235, -0.5151557326316833, -0.4294954538345337, -0.5126938223838806, -0.09596068412065506, 0.40102916955947876, -0.395539253950119, 0.47202402353286743, -0.8559375405311584, -0.38978978991508484, 0.37914329767227173, 0.15843121707439423, -0.3013867735862732, 0.42880430817604065, 0.016357965767383575, 0.8447676301002502, -0.711948037147522, 0.7831323742866516, 0.761145293712616, -0.9803061485290527, -0.9705730676651001, -0.26509636640548706, -0.19203217327594757, -0.3769404888153076, 0.6708240509033203, 0.29953986406326294, 0.06453602015972137, 0.3801916241645813, -0.5209478139877319, -0.6092780232429504, 1.1536742448806763, 0.14815983176231384, -0.2453991323709488, -0.08977382630109787, 0.08659039437770844, 0.6274886131286621, -0.17044496536254883, 0.8893089890480042, 0.3648809492588043, 0.32997193932533264, 0.021101200953125954, -0.8602814078330994, 0.16441811621189117, -0.03856700658798218, -0.14133219420909882, 0.5313697457313538, -0.8172963857650757, 1.1375210285186768, -0.25363457202911377, 0.02764178067445755, 0.03213974088430405, 0.6655305624008179, 0.20198675990104675, 0.4840732216835022, 0.3194293975830078, 0.48530906438827515, 0.37900516390800476, -0.15833020210266113, 0.7383760809898376, -0.5245081186294556, 1.1199302673339844, 0.9744792580604553, 0.18271048367023468, 0.6512976288795471, 0.33896106481552124, -0.2917384207248688, 0.1132618635892868, 0.5749570727348328, -0.38820624351501465, 0.443303644657135, 0.2561785578727722, 0.026415955275297165, -0.16194869577884674, 0.21052642166614532, -0.6854140162467957, 0.2086494266986847, 0.12259043753147125, -0.7060860395431519, -0.39541491866111755, -0.13817794620990753, 0.034085310995578766, -0.3740290105342865, -0.25898945331573486, 0.5749634504318237, 0.33166295289993286, -0.41979482769966125, 1.0873254537582397, 0.062006935477256775, 0.7034533619880676, -0.5477222800254822, 0.08079993724822998, -0.23237457871437073, 0.6327963471412659, -0.7315841913223267, -0.8059417605400085, 0.5314654111862183, -0.21554328501224518, -0.36737844347953796, -0.330391526222229, 0.23104070127010345, -0.5025460124015808, -0.4708818793296814, 0.20047618448734283, -0.052770134061574936, 0.27398139238357544, -0.09751670062541962, -0.6339743137359619, -0.16413678228855133, 0.15169274806976318, -0.38085758686065674, -0.16739968955516815, 0.5275654196739197, -0.009821180254220963, 0.9120714664459229, 0.49157965183258057, -0.050660520792007446, 0.20738369226455688, -0.11839096248149872, 0.7969419956207275, -0.8546665906906128, -0.6062759160995483, -0.8756219744682312, 0.9037055373191833, -0.10124756395816803, -0.713033139705658, 0.6143112778663635, 0.8614777326583862, 1.0136739015579224, -0.2901518642902374, 1.0124590396881104, -0.327988862991333, 0.5583485960960388, -0.5240789651870728, 0.9141700863838196, -0.7571871280670166, 0.18823125958442688, -0.026324816048145294, -0.4578220248222351, -0.23075136542320251, 0.6950328946113586, -0.3181391954421997, 0.22164295613765717, 0.8163594007492065, 0.7402083873748779, -0.5418977737426758, -0.06682994216680527, 0.3908156156539917, 0.6049521565437317, 0.37855368852615356, 0.6594222784042358, 0.6630739569664001, -0.8649153709411621, 0.7017308473587036, -0.34825071692466736, 0.24208039045333862, -0.32198256254196167, -0.6469179391860962, -1.1650768518447876, -0.35614582896232605, -0.46795183420181274, -0.5129226446151733, 0.13613171875476837, 1.324605941772461, 0.7976183295249939, -1.2685350179672241, -0.3372228145599365, -0.2992369532585144, -0.2334170639514923, -0.08215615898370743, -0.25201332569122314, 0.36737027764320374, -0.6566253304481506, -0.46266213059425354, 0.14653903245925903, -0.2662588953971863, 0.07048603892326355, -0.3901350200176239, 0.023288387805223465, -0.16505250334739685, -0.40994060039520264, 0.6348942518234253, 0.3026846945285797, -0.4552460312843323, -0.1912129521369934, -0.00978858396410942, -0.2761324644088745, 0.1921873241662979, 0.4045824110507965, -0.6609030961990356, 0.1944228559732437, 1.018560767173767, 0.6222416758537292, 0.753433346748352, -0.0053646559827029705, 0.7591907382011414, -0.7301221489906311, 0.10666097700595856, 0.13271930813789368, 0.45400363206863403, 0.05297486111521721, -0.2439446896314621, 0.5933891534805298, 0.23073700070381165, -0.6159183382987976, -0.8668721318244934, 0.10367590188980103, -0.7450679540634155, -0.3403041660785675, 0.7715762257575989, -0.30974531173706055, -0.010692131705582142, -0.20366230607032776, -0.3652297854423523, 0.7036789059638977, -0.5682218670845032, 1.1105246543884277, 0.39139047265052795, -0.09261303395032883, -0.11749293655157089, -0.8096990585327148, 0.6507379412651062, 0.5245388746261597, -0.6235884428024292, -0.2961050570011139, 0.0983874723315239, 0.41834619641304016, 0.412749320268631, 0.15546779334545135, 0.3188902735710144, 0.2950725555419922, 0.013138137757778168, 0.39863458275794983, -0.532747745513916, -0.2081950157880783, -0.4392298758029938, 0.3963771462440491, -0.054325446486473083, -0.8251294493675232 ]
amberoad/bert-multilingual-passage-reranking-msmarco
amberoad
"2022-08-26T13:14:54Z"
34,259
45
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "text-classification", "msmarco", "multilingual", "passage reranking", "af", "sq", "ar", "an", "hy", "ast", "az", "ba", "eu", "bar", "be", "bn", "inc", "bs", "br", "bg", "my", "ca", "ceb", "ce", "zh", "cv", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "gl", "ka", "de", "el", "gu", "ht", "he", "hi", "hu", "is", "io", "id", "ga", "it", "ja", "jv", "kn", "kk", "ky", "ko", "la", "lv", "lt", "roa", "nds", "lm", "mk", "mg", "ms", "ml", "mr", "min", "ne", "new", "nb", "nn", "oc", "fa", "pms", "pl", "pt", "pa", "ro", "ru", "sco", "sr", "scn", "sk", "sl", "aze", "es", "su", "sw", "sv", "tl", "tg", "ta", "tt", "te", "tr", "uk", "ud", "uz", "vi", "vo", "war", "cy", "fry", "pnb", "yo", "dataset:msmarco", "arxiv:1901.04085", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: - multilingual - af - sq - ar - an - hy - ast - az - ba - eu - bar - be - bn - inc - bs - br - bg - my - ca - ceb - ce - zh - cv - hr - cs - da - nl - en - et - fi - fr - gl - ka - de - el - gu - ht - he - hi - hu - is - io - id - ga - it - ja - jv - kn - kk - ky - ko - la - lv - lt - roa - nds - lm - mk - mg - ms - ml - mr - min - ne - new - nb - nn - oc - fa - pms - pl - pt - pa - ro - ru - sco - sr - hr - scn - sk - sl - aze - es - su - sw - sv - tl - tg - ta - tt - te - tr - uk - ud - uz - vi - vo - war - cy - fry - pnb - yo thumbnail: https://amberoad.de/images/logo_text.png tags: - msmarco - multilingual - passage reranking license: apache-2.0 datasets: - msmarco metrics: - MRR widget: - query: What is a corporation? passage: A company is incorporated in a specific nation, often within the bounds of a smaller subset of that nation, such as a state or province. The corporation is then governed by the laws of incorporation in that state. A corporation may issue stock, either private or public, or may be classified as a non-stock corporation. If stock is issued, the corporation will usually be governed by its shareholders, either directly or indirectly. --- # Passage Reranking Multilingual BERT 🔃 🌍 ## Model description **Input:** Supports over 100 Languages. See [List of supported languages](https://github.com/google-research/bert/blob/master/multilingual.md#list-of-languages) for all available. **Purpose:** This module takes a search query [1] and a passage [2] and calculates if the passage matches the query. It can be used as an improvement for Elasticsearch Results and boosts the relevancy by up to 100%. **Architecture:** On top of BERT there is a Densly Connected NN which takes the 768 Dimensional [CLS] Token as input and provides the output ([Arxiv](https://arxiv.org/abs/1901.04085)). **Output:** Just a single value between between -10 and 10. Better matching query,passage pairs tend to have a higher a score. ## Intended uses & limitations Both query[1] and passage[2] have to fit in 512 Tokens. As you normally want to rerank the first dozens of search results keep in mind the inference time of approximately 300 ms/query. #### How to use ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("amberoad/bert-multilingual-passage-reranking-msmarco") model = AutoModelForSequenceClassification.from_pretrained("amberoad/bert-multilingual-passage-reranking-msmarco") ``` This Model can be used as a drop-in replacement in the [Nboost Library](https://github.com/koursaros-ai/nboost) Through this you can directly improve your Elasticsearch Results without any coding. ## Training data This model is trained using the [**Microsoft MS Marco Dataset**](https://microsoft.github.io/msmarco/ "Microsoft MS Marco"). This training dataset contains approximately 400M tuples of a query, relevant and non-relevant passages. All datasets used for training and evaluating are listed in this [table](https://github.com/microsoft/MSMARCO-Passage-Ranking#data-information-and-formating). The used dataset for training is called *Train Triples Large*, while the evaluation was made on *Top 1000 Dev*. There are 6,900 queries in total in the development dataset, where each query is mapped to top 1,000 passage retrieved using BM25 from MS MARCO corpus. ## Training procedure The training is performed the same way as stated in this [README](https://github.com/nyu-dl/dl4marco-bert "NYU Github"). See their excellent Paper on [Arxiv](https://arxiv.org/abs/1901.04085). We changed the BERT Model from an English only to the default BERT Multilingual uncased Model from [Google](https://huggingface.co/bert-base-multilingual-uncased). Training was done 400 000 Steps. This equaled 12 hours an a TPU V3-8. ## Eval results We see nearly similar performance than the English only Model in the English [Bing Queries Dataset](http://www.msmarco.org/). Although the training data is English only internal Tests on private data showed a far higher accurancy in German than all other available models. Fine-tuned Models | Dependency | Eval Set | Search Boost<a href='#benchmarks'> | Speed on GPU ----------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------ | ----------------------------------------------------- | ---------------------------------- **`amberoad/Multilingual-uncased-MSMARCO`** (This Model) | <img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-blue"/> | <a href ='http://www.msmarco.org/'>bing queries</a> | **+61%** <sub><sup>(0.29 vs 0.18)</sup></sub> | ~300 ms/query <a href='#footnotes'> `nboost/pt-tinybert-msmarco` | <img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-red"/> | <a href ='http://www.msmarco.org/'>bing queries</a> | **+45%** <sub><sup>(0.26 vs 0.18)</sup></sub> | ~50ms/query <a href='#footnotes'> `nboost/pt-bert-base-uncased-msmarco` | <img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-red"/> | <a href ='http://www.msmarco.org/'>bing queries</a> | **+62%** <sub><sup>(0.29 vs 0.18)</sup></sub> | ~300 ms/query<a href='#footnotes'> `nboost/pt-bert-large-msmarco` | <img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-red"/> | <a href ='http://www.msmarco.org/'>bing queries</a> | **+77%** <sub><sup>(0.32 vs 0.18)</sup></sub> | - `nboost/pt-biobert-base-msmarco` | <img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-red"/> | <a href ='https://github.com/naver/biobert-pretrained'>biomed</a> | **+66%** <sub><sup>(0.17 vs 0.10)</sup></sub> | ~300 ms/query<a href='#footnotes'> This table is taken from [nboost](https://github.com/koursaros-ai/nboost) and extended by the first line. ## Contact Infos ![](https://amberoad.de/images/logo_text.png) Amberoad is a company focussing on Search and Business Intelligence. We provide you: * Advanced Internal Company Search Engines thorugh NLP * External Search Egnines: Find Competitors, Customers, Suppliers **Get in Contact now to benefit from our Expertise:** The training and evaluation was performed by [**Philipp Reissel**](https://reissel.eu/) and [**Igli Manaj**](https://github.com/iglimanaj) [![Amberoad](https://i.stack.imgur.com/gVE0j.png) Linkedin](https://de.linkedin.com/company/amberoad) | <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="32" height="32" viewBox="0 0 172 172" style=" fill:#000000;"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-weight="none" font-size="none" text-anchor="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" fill="none"></path><g fill="#e67e22"><path d="M37.625,21.5v86h96.75v-86h-5.375zM48.375,32.25h10.75v10.75h-10.75zM69.875,32.25h10.75v10.75h-10.75zM91.375,32.25h32.25v10.75h-32.25zM48.375,53.75h75.25v43h-75.25zM80.625,112.875v17.61572c-1.61558,0.93921 -2.94506,2.2687 -3.88428,3.88428h-49.86572v10.75h49.86572c1.8612,3.20153 5.28744,5.375 9.25928,5.375c3.97183,0 7.39808,-2.17347 9.25928,-5.375h49.86572v-10.75h-49.86572c-0.93921,-1.61558 -2.2687,-2.94506 -3.88428,-3.88428v-17.61572z"></path></g></g></svg>[Homepage](https://de.linkedin.com/company/amberoad) | [Email](info@amberoad.de)
[ -0.3709481656551361, -0.5096350312232971, 0.23447714745998383, 0.3436744809150696, -0.15663452446460724, 0.016486505046486855, -0.1494883894920349, -0.6734050512313843, 0.5356503129005432, 0.019678154960274696, -0.6178421378135681, -0.8342264890670776, -0.43180572986602783, 0.05320863053202629, -0.19485965371131897, 0.8202868103981018, 0.08858167380094528, 0.0841529369354248, 0.03786730766296387, -0.24748480319976807, -0.33948537707328796, -0.4084584414958954, -0.6754717230796814, -0.21421396732330322, 0.4340270161628723, 0.09674202650785446, 0.5282974243164062, 0.4738527834415436, 0.42657989263534546, 0.33804574608802795, -0.26300206780433655, 0.21698397397994995, -0.36793115735054016, 0.017357466742396355, 0.08207334578037262, -0.2977190911769867, -0.5327959656715393, -0.0790887400507927, 0.5637266635894775, 0.5338494777679443, 0.04624957591295242, 0.14217323064804077, 0.1406155377626419, 0.8267315626144409, -0.3149475157260895, 0.20230816304683685, -0.5389727354049683, -0.042142774909734726, -0.15153510868549347, -0.09582029283046722, -0.27744153141975403, -0.3690832257270813, 0.31237295269966125, -0.6833529472351074, 0.34068652987480164, 0.19937627017498016, 1.2893779277801514, 0.10127358138561249, -0.38230428099632263, -0.011931558139622211, -0.2224784791469574, 0.7257117033004761, -0.5946145057678223, 0.6465230584144592, 0.35465890169143677, 0.13334424793720245, -0.05049333721399307, -0.7536813020706177, -0.39438873529434204, -0.2715715765953064, -0.2560186982154846, 0.34955212473869324, -0.1454421579837799, -0.23779280483722687, 0.18154698610305786, 0.2882091999053955, -0.841600239276886, -0.01679653488099575, -0.507734477519989, -0.25574490427970886, 0.819000244140625, 0.04096874222159386, 0.2358897477388382, -0.3635233938694, -0.40607982873916626, -0.3196556270122528, -0.6090561151504517, 0.03640642389655113, 0.31203600764274597, 0.35718196630477905, -0.17283225059509277, 0.34076178073883057, -0.14704634249210358, 0.7714551687240601, 0.02056862600147724, 0.1331445723772049, 0.6862369775772095, -0.5652293562889099, -0.06773382425308228, 0.08457521349191666, 0.9138968586921692, 0.4405114948749542, -0.026310373097658157, -0.2943550646305084, -0.2587767243385315, -0.22920820116996765, 0.2920427918434143, -0.8019249439239502, -0.3411704897880554, 0.4427102506160736, -0.5282731652259827, -0.12943404912948608, 0.07679402083158493, -0.7699252963066101, 0.03341289982199669, -0.1408819705247879, 0.6521689891815186, -0.7298309803009033, -0.13121718168258667, 0.024366779252886772, -0.24451543390750885, 0.41039565205574036, 0.29224735498428345, -0.6347487568855286, -0.020463407039642334, 0.4348670542240143, 1.2169162034988403, -0.13691683113574982, -0.3432263433933258, -0.10441351681947708, 0.03792092576622963, -0.3036751449108124, 0.644519031047821, -0.278201699256897, -0.2737422585487366, 0.010772785171866417, 0.31695815920829773, -0.20136180520057678, -0.2578032612800598, 0.6236100792884827, -0.5308066010475159, 0.3361884653568268, -0.22539128363132477, -0.39449506998062134, -0.2595260739326477, 0.28543490171432495, -0.7648199796676636, 1.4500656127929688, 0.06767894327640533, -0.7714098691940308, 0.47794294357299805, -0.7744035124778748, -0.4496501386165619, -0.038784097880125046, 0.05906784534454346, -0.454717755317688, -0.20870712399482727, 0.43707484006881714, 0.38767552375793457, -0.28450101613998413, -0.051119424402713776, -0.19560232758522034, -0.3225545585155487, -0.11965293437242508, -0.22660928964614868, 1.1602756977081299, 0.238456591963768, -0.7071613073348999, 0.042251355946063995, -0.9435786604881287, 0.25068533420562744, 0.3059026002883911, -0.6420638561248779, -0.13096481561660767, -0.2473679482936859, 0.22775331139564514, 0.32861047983169556, 0.5228588581085205, -0.6163122653961182, 0.1142943724989891, -0.6266782879829407, 0.5180225968360901, 0.8949431777000427, -0.07853636145591736, 0.2798803150653839, -0.43316859006881714, 0.3662683665752411, -0.3375004827976227, 0.14464323222637177, 0.02616877108812332, -0.6096567511558533, -0.6992861032485962, -0.27848514914512634, 0.362285852432251, 0.4030146598815918, -0.5658685564994812, 0.6596867442131042, -0.4661414921283722, -0.7947435975074768, -0.7628642916679382, -0.06045975163578987, 0.3506973385810852, 0.40514305233955383, 0.601571798324585, -0.08624672889709473, -0.4060916602611542, -0.8368140459060669, -0.22647149860858917, -0.04704217240214348, 0.07720555365085602, 0.6042602062225342, 0.7038921117782593, -0.19465287029743195, 0.7058122158050537, -0.48575979471206665, -0.32772162556648254, -0.07672146707773209, -0.041108205914497375, 0.48400944471359253, 0.5929687023162842, 0.8079086542129517, -0.820201575756073, -0.8688493371009827, 0.050170253962278366, -0.7863190770149231, 0.10942796617746353, 0.1365230530500412, -0.3537352383136749, 0.4173131287097931, 0.35829225182533264, -0.5115379691123962, 0.44284048676490784, 0.40023839473724365, -0.3927384912967682, 0.5162068605422974, -0.43558481335639954, 0.19902965426445007, -1.096755027770996, 0.4363270103931427, 0.14090734720230103, -0.03988979756832123, -0.42261967062950134, -0.04548690840601921, 0.1063627377152443, -0.07803911715745926, -0.4847511947154999, 0.7087649703025818, -0.6620636582374573, 0.005396215245127678, 0.17541687190532684, 0.2784782946109772, -0.004243142902851105, 0.5781112909317017, -0.00825757347047329, 0.9642727375030518, 0.6523287892341614, -0.5948041677474976, 0.25780993700027466, 0.45286017656326294, -0.5103505849838257, 0.38320907950401306, -0.8936582207679749, 0.04851601645350456, -0.013251385651528835, 0.24903327226638794, -1.126521110534668, -0.12830612063407898, -0.011706141754984856, -0.7366735339164734, 0.28702282905578613, -0.24659982323646545, -0.5829805135726929, -0.5243313312530518, -0.6107105612754822, 0.16314882040023804, 0.38628822565078735, -0.7738026976585388, 0.538325846195221, 0.27915719151496887, 0.11677563935518265, -0.7352544665336609, -0.8305148482322693, -0.03813974931836128, -0.022272994741797447, -1.013161301612854, 0.7691815495491028, -0.04131495580077171, 0.1387183964252472, 0.05089849233627319, -0.2916578948497772, -0.10482769459486008, -0.026643678545951843, 0.22657553851604462, 0.3482024073600769, -0.05356333404779434, 0.1654631644487381, -0.2384154200553894, -0.004447995685040951, -0.02172013185918331, -0.41241762042045593, 0.8372637629508972, -0.3012141287326813, -0.2522244453430176, -0.6948472261428833, 0.04914358630776405, 0.7829645276069641, -0.31861019134521484, 1.0596801042556763, 0.7454166412353516, -0.2535552978515625, -0.055060748010873795, -0.5143179297447205, -0.2734695374965668, -0.5061097741127014, 0.2960544526576996, -0.2100425660610199, -0.6240025758743286, 0.542996883392334, 0.23264233767986298, 0.2062361240386963, 0.780430018901825, 0.4388366937637329, -0.3650135397911072, 1.0458910465240479, 0.38776257634162903, -0.14334285259246826, 0.6380910873413086, -0.8442856073379517, 0.15232501924037933, -0.8722560405731201, -0.5891087055206299, -0.6779929995536804, -0.496472030878067, -0.9686626195907593, -0.20123523473739624, 0.45107007026672363, -0.19216114282608032, -0.4657376706600189, 0.5437814593315125, -0.887380838394165, 0.1416470855474472, 0.8902881741523743, 0.35825490951538086, -0.11814809590578079, 0.26397135853767395, -0.4236927926540375, -0.08179765939712524, -0.7421919703483582, -0.4121611416339874, 1.4115439653396606, 0.0568634532392025, 0.5487305521965027, 0.21168376505374908, 0.7365244626998901, 0.2445247620344162, -0.09991557151079178, -0.43214383721351624, 0.5175382494926453, 0.004239255096763372, -0.9528831839561462, -0.2432287186384201, -0.40650516748428345, -1.2769569158554077, 0.4829835891723633, -0.38283124566078186, -0.7796857357025146, 0.25842952728271484, 0.1334407478570938, -0.08448144048452377, 0.3384127616882324, -0.8445026278495789, 0.9318028688430786, -0.5960121750831604, -0.7864336371421814, -0.1383858472108841, -0.752749502658844, -0.13307340443134308, 0.2197016328573227, 0.011570669710636139, 0.02718421071767807, 0.08089356869459152, 0.9433144927024841, -0.5388630032539368, 0.5343833565711975, -0.18333303928375244, 0.1920463740825653, 0.21902349591255188, -0.09736249595880508, 0.7810160517692566, -0.09295055270195007, -0.25520601868629456, 0.28180041909217834, -0.05683834105730057, -0.5487494468688965, -0.36924323439598083, 0.9214427471160889, -0.8165522813796997, -0.46034756302833557, -0.7757146954536438, -0.3098998963832855, -0.08823607861995697, 0.4371386170387268, 0.38686126470565796, 0.23974822461605072, 0.036815106868743896, 0.5111655592918396, 0.6077735424041748, -0.33072349429130554, 0.41593635082244873, 0.4072302579879761, 0.09731025993824005, -0.6699135899543762, 1.0390177965164185, 0.20901721715927124, 0.019608337432146072, 0.4307043254375458, 0.05317100137472153, -0.731232225894928, -0.6076499819755554, -0.14889192581176758, 0.48064443469047546, -0.5440909266471863, -0.13239659368991852, -0.63375324010849, -0.13508516550064087, -0.6866275072097778, -0.26081717014312744, -0.20573276281356812, -0.45514556765556335, -0.2719457745552063, -0.293441504240036, 0.5685950517654419, 0.47498124837875366, -0.14735674858093262, 0.10392890125513077, -0.48027655482292175, 0.002703446429222822, 0.14679645001888275, 0.32839205861091614, 0.10539019852876663, -0.4343284070491791, -0.2450253963470459, 0.13970337808132172, -0.3444797694683075, -0.8583303689956665, 0.5604411363601685, -0.01691114716231823, 0.8595627546310425, 0.20675621926784515, -0.10021303594112396, 0.7017492651939392, -0.37441593408584595, 0.877471387386322, 0.25427335500717163, -0.6897991299629211, 0.7649238109588623, -0.3258202075958252, 0.05697096884250641, 0.7562874555587769, 0.6328370571136475, -0.408819317817688, -0.06656726449728012, -0.8636489510536194, -1.3369721174240112, 0.9273813366889954, 0.3554321229457855, -0.1635417640209198, 0.08201391249895096, 0.21355783939361572, -0.32390567660331726, 0.27453526854515076, -0.9090908169746399, -0.5968049168586731, -0.2841724157333374, -0.16362230479717255, 0.0062124705873429775, -0.03882697969675064, -0.0633922889828682, -0.5558481216430664, 0.9518930912017822, 0.10936909914016724, 0.5657491683959961, 0.3337738513946533, -0.24291600286960602, 0.3934613764286041, -0.0829547792673111, 0.5504379272460938, 0.7318865060806274, -0.5893099308013916, -0.031161131337285042, 0.23475368320941925, -0.5275887250900269, -0.10256373882293701, 0.09314963966608047, -0.23593628406524658, 0.19416193664073944, 0.3424406051635742, 0.6492628455162048, 0.08061818778514862, -0.4106765389442444, 0.4727676510810852, 0.19120420515537262, -0.31165173649787903, -0.29001912474632263, -0.015954965725541115, 0.10655122995376587, 0.210775688290596, 0.4876275658607483, -0.17956122756004333, 0.05077538266777992, -0.534273624420166, 0.20222234725952148, 0.5958800911903381, -0.47195568680763245, -0.19711990654468536, 0.8160033822059631, 0.20797020196914673, -0.2644577920436859, 0.6567574739456177, -0.05801311135292053, -0.7054790258407593, 0.7037380337715149, 0.538479208946228, 0.7900992631912231, -0.041807323694229126, 0.17037655413150787, 0.8411386609077454, 0.5384762287139893, 0.12019480019807816, 0.36602893471717834, -0.12450394034385681, -0.34830552339553833, -0.023781660944223404, -0.6866743564605713, -0.11820021271705627, 0.11648017913103104, -0.589311957359314, 0.23432676494121552, -0.4413108825683594, -0.2776462435722351, 0.0037411334924399853, 0.4285590946674347, -0.7602634429931641, 0.32324475049972534, -0.34248462319374084, 1.123131513595581, -0.6703209280967712, 0.6542035341262817, 0.788371741771698, -0.7671605348587036, -0.6615238785743713, 0.024385493248701096, -0.21264439821243286, -0.9492972493171692, 0.8421430587768555, 0.18695442378520966, -0.15379393100738525, -0.019262969493865967, -0.5663747787475586, -0.9263527989387512, 1.410462498664856, 0.2605462372303009, -0.3246983587741852, 0.005434023682028055, -0.07997652143239975, 0.6039313673973083, -0.056793734431266785, 0.425093412399292, 0.3863208591938019, 0.6318644881248474, 0.07089848071336746, -0.881072998046875, 0.14679469168186188, -0.4446740448474884, -0.10036566108465195, 0.12913484871387482, -0.990440845489502, 0.838747501373291, 0.07099422812461853, -0.07379385083913803, -0.281423956155777, 0.413201242685318, 0.29174351692199707, 0.2580787241458893, 0.1878727525472641, 0.7458948493003845, 0.8650452494621277, -0.3136368989944458, 1.0722475051879883, -0.6858488321304321, 0.5252920389175415, 0.8166435360908508, 0.1465732455253601, 0.8794392347335815, 0.37953558564186096, -0.3892878293991089, 0.4730871021747589, 0.8483191132545471, -0.18010973930358887, 0.677954375743866, -0.04251015931367874, -0.19086293876171112, -0.1293535679578781, 0.1471024602651596, -0.6883006691932678, 0.1248726174235344, 0.13897034525871277, -0.42653515934944153, -0.1451852172613144, -0.34993472695350647, 0.10855705291032791, -0.1407056599855423, -0.17950373888015747, 0.514050304889679, -0.20351476967334747, -0.4775915741920471, 0.883246898651123, -0.002865489572286606, 0.7975730299949646, -0.6753050088882446, 0.13515785336494446, -0.2976161539554596, 0.0967724546790123, -0.40972334146499634, -0.8993995189666748, 0.07572285085916519, -0.08871530741453171, -0.10120442509651184, -0.2901337444782257, 0.3870663046836853, -0.110488660633564, -0.545965850353241, 0.427545428276062, 0.25050464272499084, 0.28523948788642883, -0.01698659546673298, -0.945558488368988, -0.11664415150880814, 0.2642365097999573, -0.30009570717811584, 0.1889735460281372, 0.42475393414497375, 0.11680001020431519, 0.6768643260002136, 0.8458697199821472, 0.09885716438293457, 0.3821425139904022, -0.22654251754283905, 0.8912220001220703, -0.7461950778961182, -0.524823009967804, -0.567240297794342, 0.4570820927619934, -0.36375027894973755, -0.482677698135376, 1.0375092029571533, 0.9163926243782043, 0.8465564250946045, 0.08265376091003418, 0.6965817809104919, -0.22649100422859192, 0.270423948764801, -0.4073484539985657, 0.9885343909263611, -1.0490198135375977, 0.020281042903661728, -0.3416983485221863, -0.9236365556716919, -0.254871666431427, 1.0918151140213013, -0.32008975744247437, 0.3262239694595337, 0.7004939913749695, 0.932188093662262, 0.0017671382520347834, -0.20560333132743835, -0.05985370650887489, 0.30777880549430847, 0.4147266447544098, 0.644290030002594, 0.4475962221622467, -0.7200926542282104, 0.7892031073570251, -0.29178300499916077, 0.006798380520194769, -0.4825323820114136, -0.6849186420440674, -0.7913597822189331, -0.6911904215812683, -0.31769466400146484, -0.5642906427383423, 0.07962404191493988, 0.9281663298606873, 0.8048756122589111, -0.7479801177978516, -0.23334737122058868, -0.19889548420906067, 0.13710419833660126, -0.30940890312194824, -0.22054894268512726, 0.8202416300773621, -0.2727956473827362, -0.8152183890342712, 0.38109782338142395, 0.1469365656375885, 0.07157862931489944, -0.04541127756237984, -0.19683299958705902, -0.5579696893692017, -0.07350373268127441, 0.5088672041893005, 0.2841331958770752, -0.5188977718353271, -0.13786274194717407, 0.197933167219162, -0.06551486253738403, 0.1882086992263794, 0.24776294827461243, -0.6014541387557983, 0.4793992042541504, 0.6877448558807373, 0.5032857656478882, 0.9353567361831665, -0.07664747536182404, 0.1361810714006424, -0.7017374038696289, 0.0813685953617096, 0.19815629720687866, 0.47980886697769165, 0.15715888142585754, -0.2655400335788727, 0.82387775182724, 0.3416076600551605, -0.5158720016479492, -0.8401331305503845, -0.29123732447624207, -1.1202753782272339, -0.2471485733985901, 1.1150050163269043, 0.006335773505270481, -0.44078773260116577, -0.004687996581196785, -0.18607191741466522, 0.1351604461669922, -0.6750437021255493, 0.7053160667419434, 0.7506415247917175, -0.20535287261009216, 0.23745553195476532, -0.6267241835594177, 0.3646402359008789, 0.41440311074256897, -0.6808915138244629, -0.19266390800476074, 0.5290431976318359, 0.3967738151550293, 0.3800809383392334, 0.47573477029800415, -0.11235446482896805, 0.282941073179245, -0.07106272876262665, 0.1759955883026123, -0.15778812766075134, -0.32702144980430603, -0.17944014072418213, 0.249704048037529, -0.20729614794254303, -0.483007550239563 ]
raminm/fundhub_category_v1
raminm
"2023-11-11T00:57:59Z"
34,119
0
transformers
[ "transformers", "pytorch", "bert", "text-classification", "generated_from_trainer", "base_model:bert-base-uncased", "license:apache-2.0", "endpoints_compatible", "region:us" ]
text-classification
"2023-11-04T15:56:11Z"
--- license: apache-2.0 base_model: bert-base-uncased tags: - generated_from_trainer metrics: - f1 model-index: - name: fundhub_category_v1 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. --> # fundhub_category_v1 This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset. It achieves the following results on the evaluation set: - Loss: 0.1340 - F1: 0.9626 ## 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: 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 ### Training results | Training Loss | Epoch | Step | Validation Loss | F1 | |:-------------:|:-----:|:-----:|:---------------:|:------:| | 0.1648 | 1.0 | 25275 | 0.1583 | 0.9512 | | 0.1396 | 2.0 | 50550 | 0.1578 | 0.9583 | | 0.0934 | 3.0 | 75825 | 0.1340 | 0.9626 | ### Framework versions - Transformers 4.34.0 - Pytorch 2.1.0+cu121 - Datasets 2.14.4 - Tokenizers 0.14.1
[ -0.5207701921463013, -0.6127804517745972, 0.11634253710508347, 0.2277727574110031, -0.43015316128730774, -0.45222270488739014, -0.1664934605360031, -0.24148643016815186, 0.23142187297344208, 0.4303007423877716, -0.8708429932594299, -0.6224473118782043, -0.6376460790634155, -0.36003556847572327, -0.3038811683654785, 1.4774667024612427, 0.21363230049610138, 0.5275357961654663, -0.16001802682876587, -0.03111845999956131, -0.4707448184490204, -0.7155896425247192, -0.7185103297233582, -0.8269650340080261, 0.3434705138206482, 0.29171842336654663, 0.8185499310493469, 0.8316351771354675, 0.7022810578346252, 0.16106900572776794, -0.36329326033592224, -0.3002229630947113, -0.714715838432312, -0.545872688293457, 0.101747065782547, -0.34641677141189575, -0.7358312606811523, -0.12356079369783401, 0.7000622749328613, 0.6869926452636719, -0.3438844382762909, 0.4957457482814789, 0.04588117077946663, 0.6087743043899536, -0.5434210896492004, 0.31368374824523926, -0.6744922995567322, 0.26405614614486694, -0.21999986469745636, -0.2820482552051544, -0.4561578333377838, -0.13759881258010864, 0.1696123480796814, -0.4969755709171295, 0.5398481488227844, -0.0053197164088487625, 1.4438297748565674, 0.29899102449417114, -0.24877293407917023, 0.13430970907211304, -0.7444499135017395, 0.6953286528587341, -0.8430105447769165, 0.4231308400630951, 0.4148297905921936, 0.460237056016922, 0.05270588397979736, -0.7489801645278931, -0.3837873637676239, 0.04110380634665489, 0.04691275954246521, 0.14372798800468445, -0.2750067412853241, 0.1165076494216919, 0.570322573184967, 0.5650933384895325, -0.49870821833610535, 0.20817157626152039, -0.6437597870826721, -0.4342188835144043, 0.5334777235984802, 0.387716144323349, -0.44468337297439575, -0.33241212368011475, -0.6936385035514832, -0.348940908908844, -0.42964938282966614, 0.29142239689826965, 0.6307841539382935, 0.3680170178413391, -0.40115687251091003, 0.5979601740837097, -0.21773765981197357, 0.7752230763435364, 0.1838611215353012, -0.08369545638561249, 0.5906972885131836, 0.05480736494064331, -0.5812454223632812, 0.0031388162169605494, 0.710780918598175, 0.581572413444519, 0.17252038419246674, 0.005765705835074186, -0.46834632754325867, -0.28394708037376404, 0.36805260181427, -0.9602137804031372, -0.5062074065208435, 0.1169336587190628, -0.813465416431427, -0.6760165095329285, 0.0908232256770134, -0.5394308567047119, 0.08258660137653351, -0.3501030206680298, 0.7632110714912415, -0.6008831262588501, -0.11446936428546906, 0.12537723779678345, -0.11712941527366638, 0.5213921666145325, 0.20468173921108246, -0.9062809944152832, 0.3663063943386078, 0.39638835191726685, 0.5254427194595337, 0.18108820915222168, -0.13747036457061768, -0.12539660930633545, -0.009231682866811752, -0.35397467017173767, 0.5714924335479736, -0.07952605932950974, -0.4470028579235077, -0.06833502650260925, 0.15944495797157288, -0.07342256605625153, -0.36592012643814087, 0.9754624366760254, -0.4667668640613556, 0.28424549102783203, -0.3518422544002533, -0.7294473648071289, -0.34665244817733765, 0.3519532382488251, -0.6977513432502747, 1.2152962684631348, 0.1631346195936203, -0.7789523601531982, 0.7158884406089783, -0.555120050907135, -0.1926889419555664, 0.05020396411418915, -0.03455578163266182, -0.9768918752670288, 0.03081396035850048, 0.13624629378318787, 0.5270304083824158, -0.17339782416820526, 0.47898179292678833, -0.465521901845932, -0.5769913196563721, -0.16264453530311584, -0.5833278298377991, 0.9964345097541809, 0.08887063711881638, -0.4246659576892853, 0.25838297605514526, -1.3614493608474731, 0.41032204031944275, 0.3743971586227417, -0.5184771418571472, 0.15895675122737885, -0.32609277963638306, 0.6001207232475281, 0.1367020159959793, 0.4819272756576538, -0.6089053750038147, 0.16849739849567413, -0.36441245675086975, 0.28646180033683777, 0.8863343000411987, 0.0709177777171135, 0.008776004426181316, -0.5352888107299805, 0.09698756039142609, 0.11051740497350693, 0.5274991393089294, 0.2552420496940613, -0.6411052346229553, -1.0480302572250366, -0.21121954917907715, 0.49605098366737366, 0.3860883414745331, -0.30841419100761414, 1.0457077026367188, -0.023546243086457253, -0.8437828421592712, -0.3456931710243225, 0.030041923746466637, 0.3384779989719391, 0.7697543501853943, 0.4349306523799896, -0.28228527307510376, -0.549933671951294, -1.4168459177017212, 0.3503890335559845, -0.1341915726661682, 0.1753537654876709, 0.32603713870048523, 0.7151034474372864, -0.21868494153022766, 0.9356868267059326, -0.48655569553375244, -0.2324163019657135, -0.16071473062038422, 0.14077703654766083, 0.610798180103302, 0.9143003225326538, 0.8238569498062134, -0.32981711626052856, 0.019854703918099403, -0.2822139263153076, -0.801702618598938, 0.29164761304855347, -0.2230871170759201, -0.4605593979358673, 0.04748379811644554, 0.05151087045669556, -0.5076550245285034, 0.7467843294143677, 0.32368582487106323, -0.36060410737991333, 0.7510523796081543, -0.512769877910614, -0.2783134877681732, -1.022628903388977, 0.32204025983810425, 0.04671722650527954, -0.045441884547472, -0.21938443183898926, -0.09128570556640625, 0.22046655416488647, -0.22698277235031128, -0.3133828639984131, 0.5310146808624268, -0.03394290804862976, 0.010732307098805904, -0.0834745392203331, -0.5273721218109131, -0.007247515022754669, 0.9783257842063904, 0.21092388033866882, 0.4783957898616791, 0.6658914089202881, -0.5158712267875671, 0.30674782395362854, 0.5217857360839844, -0.4434598982334137, 0.34097006916999817, -1.029004693031311, 0.08580917119979858, -0.04376623407006264, 0.03478338196873665, -0.8887202739715576, -0.23839806020259857, 0.3340270221233368, -0.4729769825935364, 0.3473045527935028, -0.10766758024692535, -0.4479932188987732, -0.4571821987628937, -0.252652108669281, 0.11364885419607162, 0.6189269423484802, -0.6139379143714905, 0.2801856994628906, -0.17257174849510193, 0.3564220070838928, -0.6738423109054565, -0.7740491032600403, -0.3484809994697571, -0.03881034627556801, -0.5615630149841309, 0.23124663531780243, -0.0915549024939537, 0.2190583050251007, 0.06072692200541496, -0.19008150696754456, -0.33829569816589355, -0.0625310093164444, 0.3988642394542694, 0.5002548098564148, -0.2350451946258545, -0.016111422330141068, 0.07011380046606064, -0.14740580320358276, 0.31325721740722656, -0.046823062002658844, 0.6772329807281494, -0.12752573192119598, -0.385518878698349, -0.7325164675712585, -0.011470722034573555, 0.47876736521720886, -0.08763319998979568, 1.0106794834136963, 0.7949955463409424, -0.6748232245445251, -0.010727054439485073, -0.5934509634971619, -0.16683723032474518, -0.448246031999588, 0.49958929419517517, -0.4212116301059723, -0.2836494743824005, 0.8491424918174744, 0.27950718998908997, 0.1894657164812088, 1.1219018697738647, 0.6403248310089111, -0.07210997492074966, 0.9858439564704895, 0.48179444670677185, -0.07344967871904373, 0.32409730553627014, -0.9551181197166443, -0.2017599195241928, -0.7298827171325684, -0.6241239309310913, -0.5274219512939453, -0.3692460358142853, -0.6368851661682129, 0.03089817613363266, 0.22783154249191284, 0.2466108202934265, -0.8301604390144348, 0.35646429657936096, -0.5792770385742188, 0.2726612687110901, 0.9655063152313232, 0.5874361395835876, -0.16452138125896454, 0.0994042232632637, -0.3469332754611969, -0.14498114585876465, -1.0297791957855225, -0.426321417093277, 1.4841712713241577, 0.6133889555931091, 0.8128460049629211, -0.18418358266353607, 0.901708722114563, 0.18347331881523132, 0.2436714768409729, -0.6231861710548401, 0.4091242849826813, 0.12888361513614655, -1.1803641319274902, -0.24572277069091797, -0.35697034001350403, -0.7462167739868164, 0.08652685582637787, -0.5392030477523804, -0.5769305229187012, 0.41476720571517944, 0.22562181949615479, -0.4164712429046631, 0.547130823135376, -0.518670916557312, 1.211247205734253, -0.3723917305469513, -0.367799311876297, -0.12132293730974197, -0.6304110288619995, 0.1910254955291748, -0.0075663053430616856, -0.32426321506500244, 0.018862932920455933, 0.26708030700683594, 1.0280662775039673, -0.6818444728851318, 0.8041650652885437, -0.45253869891166687, 0.3262381851673126, 0.32843828201293945, -0.21184661984443665, 0.6781759262084961, 0.15797455608844757, -0.18975955247879028, 0.4676991105079651, -0.08616616576910019, -0.7429066896438599, -0.2539670765399933, 0.6996431350708008, -1.2643123865127563, -0.12967455387115479, -0.5609747171401978, -0.5854767560958862, -0.17539750039577484, 0.3583695590496063, 0.6756163835525513, 0.7321472764015198, -0.09968381375074387, 0.5276240706443787, 0.6238370537757874, -0.1301339715719223, 0.4393739104270935, 0.3083000183105469, 0.12639354169368744, -0.6638769507408142, 0.7917881608009338, -0.119069904088974, 0.20013786852359772, 0.02629801817238331, 0.020294975489377975, -0.5050468444824219, -0.61110520362854, -0.6390392184257507, 0.2476673275232315, -0.9552574157714844, -0.3996618390083313, -0.3098915219306946, -0.5561169385910034, -0.3088107109069824, -0.12745827436447144, -0.4597627520561218, -0.4060949981212616, -0.4912399649620056, -0.255636602640152, 0.37506482005119324, 0.5714143514633179, -0.055147673934698105, 0.6370246410369873, -0.6141330599784851, -0.14702120423316956, 0.1725844442844391, 0.6788347363471985, 0.17728278040885925, -0.8719194531440735, -0.37368106842041016, -0.04731649532914162, -0.5156826972961426, -0.6978641748428345, 0.4218425750732422, 0.10456996411085129, 0.8210512399673462, 0.7789633870124817, -0.15295858681201935, 1.0552259683609009, -0.3949005901813507, 0.7929934859275818, 0.36571455001831055, -0.7153857350349426, 0.4868864417076111, -0.37474846839904785, 0.1886729896068573, 0.6598713994026184, 0.44413867592811584, 0.10515274107456207, -0.05268935486674309, -1.3301341533660889, -0.9167318344116211, 0.9864712953567505, 0.5255954265594482, 0.07491428405046463, 0.11439581960439682, 0.3920617401599884, 0.027722302824258804, 0.3428208827972412, -1.0362924337387085, -0.7078919410705566, -0.4195522367954254, -0.021452635526657104, 0.059589922428131104, -0.45274218916893005, -0.22656099498271942, -0.6257398128509521, 1.189949631690979, 0.1522311270236969, 0.5729407072067261, 0.058931559324264526, 0.19133447110652924, -0.3256567120552063, -0.03924984857439995, 0.5950036644935608, 0.8438410758972168, -0.9781330823898315, -0.37346720695495605, 0.16754160821437836, -0.33049657940864563, -0.21331025660037994, 0.4132651090621948, -0.061630070209503174, 0.2487778514623642, 0.5592265129089355, 1.0910133123397827, 0.3611051142215729, -0.2947545349597931, 0.46511340141296387, 0.06232793256640434, -0.5311062932014465, -0.47125667333602905, -0.0009593741269782186, -0.21325361728668213, 0.19492897391319275, 0.40776491165161133, 0.46784159541130066, 0.07698163390159607, -0.17305555939674377, 0.30158936977386475, 0.37483471632003784, -0.5312750935554504, -0.11392955482006073, 0.9784073829650879, 0.16870678961277008, -0.1413196474313736, 0.9052833914756775, -0.07983893156051636, -0.22900056838989258, 0.9679377675056458, 0.5860267877578735, 0.9461835622787476, 0.062364235520362854, -0.09945058822631836, 0.8164448738098145, 0.36660608649253845, 0.05387670919299126, 0.488933265209198, 0.0179285928606987, -0.6175130009651184, -0.2670477628707886, -0.8637767434120178, -0.3536808490753174, 0.6561632752418518, -1.397953748703003, 0.463743656873703, -0.6770318150520325, -0.4791031777858734, 0.4022374749183655, 0.10975351184606552, -1.0707190036773682, 0.6256322860717773, 0.2120157927274704, 1.3551969528198242, -0.9373829364776611, 0.9417751431465149, 0.7375049591064453, -0.5122683644294739, -1.005176067352295, -0.3103216588497162, -0.3875139057636261, -1.1809521913528442, 0.8069421052932739, 0.02190585434436798, 0.4456752836704254, 0.050756555050611496, -0.6166459321975708, -0.8971433639526367, 1.1362593173980713, 0.26869869232177734, -0.7154232859611511, 0.002360127167776227, 0.11778832226991653, 0.5895838737487793, -0.05712870880961418, 0.5356543064117432, 0.10401973128318787, 0.2489263415336609, 0.29431721568107605, -1.0259627103805542, -0.2142726331949234, -0.27934905886650085, 0.15693867206573486, 0.24978692829608917, -0.6958532929420471, 1.1317113637924194, -0.06003126502037048, 0.45408982038497925, 0.19284164905548096, 0.6430826783180237, 0.26686909794807434, 0.2602745294570923, 0.4835648834705353, 1.0386784076690674, 0.48794612288475037, -0.30224019289016724, 1.0731688737869263, -0.6546104550361633, 1.0285403728485107, 1.0492687225341797, 0.10403013974428177, 0.6418884992599487, 0.3467971384525299, -0.29041770100593567, 0.4312629699707031, 1.0077574253082275, -0.4784483313560486, 0.6339316368103027, 0.15177558362483978, 0.1399136632680893, -0.5761996507644653, 0.28462764620780945, -0.7625027298927307, 0.3535163104534149, 0.006728295236825943, -0.7034602761268616, -0.4834824800491333, -0.27009665966033936, -0.13368842005729675, -0.39139100909233093, -0.4771207869052887, 0.5016908645629883, -0.46710678935050964, -0.21850153803825378, 0.9349725246429443, 0.19357891380786896, 0.40202128887176514, -0.8312625288963318, -0.13564077019691467, -0.14160364866256714, 0.4237325191497803, -0.21928644180297852, -0.621745765209198, 0.21466884016990662, -0.09687727689743042, -0.3744925260543823, -0.01477352436631918, 0.5381833910942078, -0.12975084781646729, -0.9646198153495789, 0.1454276442527771, 0.3382872939109802, 0.26007747650146484, 0.10626491904258728, -1.0937079191207886, -0.042471665889024734, 0.05252787470817566, -0.4234880805015564, 0.10522301495075226, 0.2741817533969879, 0.0026285704225301743, 0.6245525479316711, 0.6880573630332947, -0.05776648595929146, 0.06842559576034546, 0.14711037278175354, 1.1221312284469604, -0.7125340700149536, -0.6119380593299866, -0.6310269236564636, 0.5019033551216125, -0.1705690324306488, -0.8980036973953247, 0.601421058177948, 1.1313055753707886, 1.0149798393249512, -0.2969544529914856, 0.5062716007232666, -0.11977116018533707, 0.3313668370246887, -0.4519158899784088, 0.743027925491333, -0.5595706701278687, -0.08979710936546326, -0.2995544672012329, -0.8023853898048401, -0.0235589686781168, 0.8690177798271179, -0.24417562782764435, 0.17636607587337494, 0.34908053278923035, 0.5264248251914978, 0.05458371341228485, 0.11234623193740845, 0.24109391868114471, -0.07840287685394287, 0.09320323914289474, 0.5964511036872864, 0.31952589750289917, -0.9528782367706299, 0.5944057106971741, -0.8727868795394897, -0.16979266703128815, -0.18312296271324158, -0.7378721237182617, -1.1218665838241577, -0.3347480297088623, -0.43231913447380066, -0.4607711136341095, 0.0873335525393486, 1.0281171798706055, 1.0119764804840088, -0.9850121140480042, -0.3302800953388214, 0.06223210692405701, -0.33747610449790955, -0.3380277454853058, -0.2706199586391449, 0.5771802067756653, -0.20543056726455688, -0.6790448427200317, -0.10725194960832596, -0.32265979051589966, 0.2282024323940277, -0.2583734393119812, -0.1680765151977539, -0.32076114416122437, -0.2705191671848297, 0.256832093000412, -0.04847092926502228, -0.5777375102043152, -0.39918163418769836, -0.07201656699180603, 0.0529991015791893, 0.18785834312438965, 0.24771851301193237, -0.6289551258087158, 0.5048186182975769, 0.18603715300559998, 0.42906221747398376, 0.7452435493469238, -0.01392947044223547, 0.17774152755737305, -0.9745194315910339, 0.4363192021846771, 0.29542019963264465, 0.5158141851425171, 0.017603592947125435, -0.4478136897087097, 0.477508008480072, 0.47047528624534607, -0.5866578221321106, -0.9461204409599304, -0.35353633761405945, -1.3037487268447876, 0.10638084262609482, 0.9802829623222351, 0.11702350527048111, -0.360709011554718, 0.41643503308296204, -0.10494102537631989, 0.2611537575721741, -0.45871591567993164, 0.6419767141342163, 0.9008622169494629, -0.21341215074062347, 0.1504187285900116, -0.5231013298034668, 0.35489973425865173, 0.4103807508945465, -0.5279380679130554, -0.352753221988678, 0.43676722049713135, 0.5701919794082642, 0.1458284854888916, 0.3409930467605591, -0.08803700655698776, 0.4390661418437958, 0.13301071524620056, 0.5884758234024048, -0.4241781234741211, -0.2292076051235199, -0.3845035433769226, 0.11356078833341599, 0.08637876063585281, -0.7029703259468079 ]
google/byt5-base
google
"2023-01-24T16:36:53Z"
34,109
17
transformers
[ "transformers", "pytorch", "tf", "jax", "t5", "text2text-generation", "multilingual", "af", "am", "ar", "az", "be", "bg", "bn", "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", "ht", "hu", "hy", "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", "und", "ur", "uz", "vi", "xh", "yi", "yo", "zh", "zu", "dataset:mc4", "arxiv:1907.06292", "arxiv:2105.13626", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text2text-generation
"2022-03-02T23:29:05Z"
--- language: - multilingual - af - am - ar - az - be - bg - bn - 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 - ht - hu - hy - 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 - und - ur - uz - vi - xh - yi - yo - zh - zu datasets: - mc4 license: apache-2.0 --- # ByT5 - Base ByT5 is a tokenizer-free version of [Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) and generally follows the architecture of [MT5](https://huggingface.co/google/mt5-base). ByT5 was only pre-trained on [mC4](https://www.tensorflow.org/datasets/catalog/c4#c4multilingual) excluding any supervised training with an average span-mask of 20 UTF-8 characters. Therefore, this model has to be fine-tuned before it is useable on a downstream task. ByT5 works especially well on noisy text data,*e.g.*, `google/byt5-base` significantly outperforms [mt5-base](https://huggingface.co/google/mt5-base) on [TweetQA](https://arxiv.org/abs/1907.06292). Paper: [ByT5: Towards a token-free future with pre-trained byte-to-byte models](https://arxiv.org/abs/2105.13626) Authors: *Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, Colin Raffel* ## Example Inference ByT5 works on raw UTF-8 bytes and can be used without a tokenizer: ```python from transformers import T5ForConditionalGeneration import torch model = T5ForConditionalGeneration.from_pretrained('google/byt5-base') input_ids = torch.tensor([list("Life is like a box of chocolates.".encode("utf-8"))]) + 3 # add 3 for special tokens labels = torch.tensor([list("La vie est comme une boîte de chocolat.".encode("utf-8"))]) + 3 # add 3 for special tokens loss = model(input_ids, labels=labels).loss # forward pass ``` For batched inference & training it is however recommended using a tokenizer class for padding: ```python from transformers import T5ForConditionalGeneration, AutoTokenizer model = T5ForConditionalGeneration.from_pretrained('google/byt5-base') tokenizer = AutoTokenizer.from_pretrained('google/byt5-base') model_inputs = tokenizer(["Life is like a box of chocolates.", "Today is Monday."], padding="longest", return_tensors="pt") labels = tokenizer(["La vie est comme une boîte de chocolat.", "Aujourd'hui c'est lundi."], padding="longest", return_tensors="pt").input_ids loss = model(**model_inputs, labels=labels).loss # forward pass ``` ## Abstract Most widely-used pre-trained language models operate on sequences of tokens corresponding to word or subword units. Encoding text as a sequence of tokens requires a tokenizer, which is typically created as an independent artifact from the model. Token-free models that instead operate directly on raw text (bytes or characters) have many benefits: they can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Since byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with minimal modifications to process byte sequences. We carefully characterize the trade-offs in terms of parameter count, training FLOPs, and inference speed, and show that byte-level models are competitive with their token-level counterparts. We also demonstrate that byte-level models are significantly more robust to noise and perform better on tasks that are sensitive to spelling and pronunciation. As part of our contribution, we release a new set of pre-trained byte-level Transformer models based on the T5 architecture, as well as all code and data used in our experiments. ![model image](https://raw.githubusercontent.com/patrickvonplaten/scientific_images/master/ByT5.png)
[ -0.21885578334331512, -0.28268006443977356, 0.22974933683872223, 0.18005967140197754, -0.3666956126689911, 0.02164916880428791, -0.24840876460075378, -0.5659950375556946, -0.04074206203222275, 0.3349631428718567, -0.5591440796852112, -0.5281055569648743, -0.7610021233558655, 0.21165820956230164, -0.4329600930213928, 1.0305922031402588, -0.025757350027561188, 0.11084434390068054, 0.20045046508312225, -0.1737915426492691, -0.32450467348098755, -0.6198179125785828, -0.5993484258651733, -0.4079318642616272, 0.45520177483558655, 0.27801910042762756, 0.44305339455604553, 0.7326686978340149, 0.47823449969291687, 0.3497149646282196, -0.07992559671401978, -0.08684934675693512, -0.37482255697250366, -0.14308947324752808, -0.022068865597248077, -0.615203857421875, -0.5220158696174622, -0.0314447283744812, 0.3768879175186157, 0.6590675115585327, 0.12834034860134125, 0.35552525520324707, -0.1556062251329422, 0.32929518818855286, -0.6135424375534058, 0.10333440452814102, -0.6800500750541687, 0.10484294593334198, -0.21289755403995514, 0.09009625762701035, -0.6774279475212097, -0.1038215309381485, 0.03490765765309334, -0.5213615894317627, 0.6143655776977539, 0.06782299280166626, 1.0516082048416138, 0.21653896570205688, -0.3489913046360016, -0.2572515308856964, -0.6018482446670532, 1.0118942260742188, -0.6705702543258667, 0.7691871523857117, 0.1377001404762268, 0.12723608314990997, -0.04183125123381615, -1.1981905698776245, -0.544017493724823, 0.07278577983379364, -0.12213838845491409, 0.2408442348241806, -0.2024175077676773, 0.20668362081050873, 0.30446872115135193, 0.4811427593231201, -0.5678808689117432, -0.007007082924246788, -0.6890931725502014, -0.16044721007347107, 0.319533109664917, -0.1820351481437683, 0.30365055799484253, -0.3310230076313019, -0.4988890588283539, -0.13673457503318787, -0.6251066327095032, 0.18971851468086243, 0.17684975266456604, 0.26890090107917786, -0.17029088735580444, 0.24793604016304016, -0.06431659311056137, 0.32062461972236633, 0.23848065733909607, 0.022453755140304565, 0.38874033093452454, -0.32488054037094116, -0.35498300194740295, 0.23449617624282837, 0.8947867155075073, 0.10564734041690826, 0.36057355999946594, -0.6127180457115173, -0.347276508808136, 0.1943918764591217, 0.31343314051628113, -1.2262513637542725, -0.24002718925476074, 0.3918733596801758, -0.6789370775222778, -0.3940664827823639, -0.035300932824611664, -0.4791780412197113, -0.03445648401975632, 0.11212354153394699, 0.5578548312187195, -0.5983240604400635, -0.116984523832798, 0.28085169196128845, -0.2429371029138565, 0.16332454979419708, -0.036982957273721695, -1.3303210735321045, 0.2181694656610489, 0.38867151737213135, 0.7477889060974121, -0.14840948581695557, -0.24624419212341309, -0.3800811171531677, -0.01420119684189558, -0.3541345000267029, 0.6124880313873291, -0.28683456778526306, -0.5848671197891235, -0.34407323598861694, 0.19202005863189697, -0.030042171478271484, -0.4755108952522278, 0.8253551125526428, -0.5652161836624146, 0.4588761031627655, -0.22222623229026794, -0.5674616694450378, -0.1948004961013794, 0.10153091698884964, -0.6534054279327393, 0.9248185753822327, 0.04027558118104935, -0.8124161958694458, 0.7035849094390869, -0.8526047468185425, -0.2711390554904938, -0.03441542759537697, 0.18252380192279816, -0.5959250330924988, 0.04132824018597603, 0.4091908633708954, 0.4174792766571045, -0.1609528660774231, 0.17338019609451294, -0.24548834562301636, -0.5548492670059204, 0.08127880096435547, -0.6079026460647583, 0.9104464650154114, 0.3248255252838135, -0.44219329953193665, 0.29029226303100586, -0.9893961548805237, 0.06368455290794373, -0.023878348991274834, -0.5152478218078613, 0.04985084384679794, -0.09695537388324738, 0.09122518450021744, 0.2134111523628235, 0.1776476353406906, -0.5825955271720886, 0.2763482332229614, -0.459052175283432, 0.6981622576713562, 0.6461642384529114, -0.23813700675964355, 0.5549940466880798, -0.28412237763404846, 0.3255005478858948, 0.3893269896507263, 0.13777650892734528, -0.3351689875125885, -0.21800915896892548, -1.009905457496643, -0.4648783206939697, 0.6144996285438538, 0.5016733407974243, -0.6697018146514893, 0.36247488856315613, -0.7580761909484863, -0.5052355527877808, -0.6680549383163452, -0.13127636909484863, 0.2902361750602722, 0.5060147643089294, 0.7479365468025208, -0.34320151805877686, -0.8455740213394165, -0.5328195095062256, -0.2534814774990082, 0.010523573495447636, -0.06289452314376831, -0.006805000826716423, 0.4979742467403412, -0.2577596604824066, 0.9198232293128967, -0.08610083162784576, -0.03748362511396408, -0.41756197810173035, 0.2683298587799072, 0.3028200566768646, 0.729743242263794, 0.49703341722488403, -0.579168438911438, -0.2952801287174225, -0.21836833655834198, -0.7188848257064819, 0.04510335624217987, -0.08781799674034119, 0.15560537576675415, 0.3583386540412903, 0.30398455262184143, -0.670457661151886, 0.2823602855205536, 0.41930699348449707, -0.4281848073005676, 0.4382953643798828, -0.2757115662097931, 0.06861605495214462, -1.3045191764831543, 0.22145991027355194, -0.13264285027980804, -0.4687812030315399, -0.7360851764678955, -0.13462558388710022, 0.14588993787765503, -0.09574228525161743, -0.6639167070388794, 0.7927905321121216, -0.5628249049186707, 0.026817182078957558, -0.010410492308437824, -0.3111668825149536, -0.058774832636117935, 0.5909450650215149, 0.06566691398620605, 1.0190584659576416, 0.4445524215698242, -0.6373460292816162, 0.07498730719089508, 0.2609454095363617, -0.3512844741344452, 0.09570804238319397, -0.6469776630401611, 0.2060016542673111, -0.0912688672542572, 0.27707022428512573, -0.891900897026062, 0.06570915877819061, 0.26473984122276306, -0.7757603526115417, 0.30685392022132874, -0.1973601132631302, -0.46024009585380554, -0.36544063687324524, -0.36849090456962585, 0.3958956301212311, 0.7085363268852234, -0.6255924701690674, 0.6389704346656799, -0.16191941499710083, 0.3500642478466034, -0.904472291469574, -1.0126004219055176, 0.13351629674434662, -0.3536747097969055, -0.7254331707954407, 0.6237816214561462, 0.018898028880357742, 0.32251617312431335, -0.011102518998086452, -0.24791979789733887, -0.07850711792707443, 0.10126301646232605, 0.11234499514102936, 0.30563780665397644, -0.33567366003990173, -0.0751664862036705, -0.14311078190803528, -0.28626176714897156, 0.043886490166187286, -0.6861628890037537, 0.5862284302711487, -0.13464349508285522, 0.10703963786363602, -0.40115946531295776, 0.10863501578569412, 0.6033521890640259, -0.24597246944904327, 0.8468965888023376, 0.8976297974586487, -0.2634424567222595, -0.19280554354190826, -0.45991191267967224, -0.24841278791427612, -0.5562255382537842, 0.3662482500076294, -0.6794415712356567, -0.6139323115348816, 0.7360625267028809, 0.15003615617752075, 0.09120368212461472, 0.481416255235672, 0.5006369352340698, 0.1074807345867157, 0.8814924359321594, 0.6376785039901733, -0.03059377335011959, 0.6153942346572876, -0.5342637300491333, 0.27317067980766296, -0.5913166999816895, -0.06065111979842186, -0.39640113711357117, -0.26299577951431274, -0.8774227499961853, -0.22573380172252655, 0.07015816122293472, -0.04267655313014984, -0.36448365449905396, 0.4443877339363098, -0.5348638296127319, 0.3385869264602661, 0.6485098004341125, 0.07983238250017166, 0.1844964176416397, 0.016974445432424545, -0.2473093569278717, -0.010652685537934303, -0.7772342562675476, -0.5617777109146118, 1.1649976968765259, 0.32726946473121643, 0.6754459142684937, -0.08833310008049011, 0.667331337928772, 0.13123849034309387, 0.25750282406806946, -0.6808097958564758, 0.4639635384082794, -0.4431474208831787, -0.7337152361869812, -0.08139075338840485, -0.34118616580963135, -1.146575927734375, 0.19218772649765015, -0.29490989446640015, -0.9419004321098328, 0.13265514373779297, 0.1631563901901245, -0.2321324497461319, 0.5379730463027954, -0.9769107103347778, 1.11424720287323, -0.04442165419459343, -0.34537819027900696, 0.08491529524326324, -0.7637798190116882, 0.2548249363899231, 0.17922702431678772, -0.02841232158243656, 0.2825634777545929, 0.1172090694308281, 0.7461342215538025, -0.4778314530849457, 0.823636531829834, -0.1276138573884964, 0.1969728320837021, 0.17732089757919312, -0.19945305585861206, 0.45838695764541626, -0.3392390012741089, -0.09769455343484879, 0.25290989875793457, 0.15224622189998627, -0.5139891505241394, -0.5379902124404907, 0.38445237278938293, -0.979515016078949, -0.4318677484989166, -0.24073109030723572, -0.3895690441131592, -0.00554450461640954, 0.4943937063217163, 0.7199172377586365, 0.4405427575111389, 0.04491481930017471, 0.43087682127952576, 0.7088068723678589, -0.17644989490509033, 0.7986993193626404, -0.0329071469604969, -0.04242644086480141, -0.42842432856559753, 1.0062239170074463, 0.3230753242969513, 0.18135301768779755, 0.49597349762916565, 0.16138805449008942, -0.5594843029975891, -0.5595369935035706, -0.5673830509185791, 0.10645429790019989, -0.8971105813980103, -0.05148952454328537, -0.8434591293334961, -0.28968051075935364, -0.5791810750961304, -0.17074310779571533, -0.4004077911376953, -0.39899811148643494, -0.42550280690193176, -0.208103746175766, 0.12392139434814453, 0.34991326928138733, 0.21833276748657227, 0.4816242456436157, -0.8944737315177917, 0.25094056129455566, -0.02615547552704811, 0.40959492325782776, 0.05884544551372528, -0.5798835158348083, -0.22331731021404266, -0.11733836680650711, -0.4176539480686188, -0.7116327285766602, 0.4031102955341339, -0.061758335679769516, 0.30095887184143066, 0.3138541579246521, 0.048542264848947525, 0.7091407179832458, -0.4711676239967346, 0.9190702438354492, 0.12284582853317261, -1.2189220190048218, -0.040848586708307266, -0.1912274807691574, 0.32632675766944885, 0.30397313833236694, 0.32086998224258423, -0.7087575793266296, -0.20026831328868866, -0.9459058046340942, -0.8520238399505615, 0.7300551533699036, 0.2557542026042938, 0.17922301590442657, 0.0989188700914383, 0.1494905799627304, 0.22305089235305786, 0.2053501307964325, -1.0439085960388184, -0.3065893054008484, -0.6012762188911438, -0.4433913826942444, 0.14327232539653778, -0.1871839016675949, 0.4942537546157837, -0.1685432344675064, 0.7379332780838013, 0.0695599764585495, 0.6341565251350403, 0.2015845626592636, -0.3838566243648529, 0.2460031658411026, 0.3076211214065552, 0.6018169522285461, 0.35757479071617126, -0.2649621069431305, 0.24834875762462616, 0.5098334550857544, -0.6546502709388733, 0.1203085333108902, 0.023736905306577682, -0.2317768633365631, 0.12392178922891617, 0.36369502544403076, 1.1750071048736572, 0.048734307289123535, -0.30623096227645874, 0.4065755009651184, -0.14648392796516418, -0.25898435711860657, -0.1715896874666214, 0.07861458510160446, 0.1034073457121849, 0.10862772166728973, 0.30076149106025696, 0.1354522407054901, 0.11979763209819794, -0.41604769229888916, 0.18244628608226776, 0.23625241219997406, -0.3483414649963379, -0.5571210384368896, 1.0428318977355957, 0.20539604127407074, -0.25549250841140747, 0.6810343861579895, -0.15723854303359985, -0.568959653377533, 0.5091778635978699, 0.7296951413154602, 0.9279279112815857, 0.019702531397342682, -0.14790058135986328, 0.36320966482162476, 0.21802744269371033, -0.07511813938617706, 0.20479948818683624, -0.22375217080116272, -0.8095651268959045, -0.4260387420654297, -0.5416251420974731, -0.19891437888145447, 0.23923417925834656, -0.23800918459892273, 0.6343554854393005, -0.42448627948760986, -0.1426493376493454, 0.0015559132443740964, 0.17661245167255402, -0.7265664935112, 0.7276864647865295, 0.19879645109176636, 0.9761700630187988, -0.5623517036437988, 0.9163366556167603, 0.5431202054023743, -0.5820231437683105, -1.016771912574768, -0.10402241349220276, -0.5776174068450928, -0.7138791084289551, 0.634676992893219, 0.4703774154186249, -0.08327720314264297, 0.26437100768089294, -0.5033106803894043, -0.8266779780387878, 1.2310895919799805, 0.4759503901004791, -0.07255412638187408, -0.443358838558197, 0.26529785990715027, 0.4677966833114624, -0.07602675259113312, 0.615593433380127, 0.35887715220451355, 0.3507951498031616, 0.2787715196609497, -0.7425299286842346, 0.14395268261432648, -0.23124009370803833, -0.027239786460995674, 0.14509239792823792, -0.7377482652664185, 0.8137282133102417, -0.13695064187049866, -0.27719226479530334, -0.1010601669549942, 0.9501978754997253, 0.11274857074022293, -0.06843192875385284, 0.39576226472854614, 0.5241267085075378, 0.82234126329422, -0.12961061298847198, 1.0403484106063843, -0.49248355627059937, 0.5981195569038391, 0.6813029050827026, 0.36504870653152466, 0.5344657897949219, 0.4440448582172394, -0.014555814675986767, 0.4449763298034668, 0.8074113130569458, -0.17222286760807037, 0.5302384495735168, 0.0888691321015358, -0.2571464478969574, -0.13035979866981506, 0.14211314916610718, -0.23950374126434326, 0.384784996509552, 0.09893320500850677, -0.43614980578422546, -0.261530339717865, -0.12368550896644592, 0.28355133533477783, -0.5442630648612976, -0.21804320812225342, 0.46811148524284363, 0.0463825985789299, -0.6657230257987976, 0.8352333903312683, 0.29276350140571594, 1.065389633178711, -0.4871227443218231, 0.3761216402053833, -0.2885471284389496, 0.3512676954269409, -0.3324860632419586, -0.43177324533462524, 0.4130711555480957, 0.1802697628736496, -0.2539682388305664, -0.4476044774055481, 0.76087486743927, -0.35935264825820923, -0.5470459461212158, 0.06381477415561676, 0.31036651134490967, 0.28982558846473694, 0.14510737359523773, -0.5601575970649719, -0.12045062333345413, -0.08693774789571762, -0.5392097234725952, 0.08361819386482239, 0.47888651490211487, -0.3130025267601013, 0.7734018564224243, 0.6188735365867615, 0.06133706122636795, 0.4358462393283844, -0.10774046182632446, 0.6107869744300842, -0.6634387373924255, -0.5593153834342957, -0.9777877926826477, 0.7037713527679443, 0.23426002264022827, -0.3506389856338501, 0.3928792476654053, 0.6634385585784912, 0.955386221408844, -0.24793201684951782, 0.8087922930717468, -0.017207611352205276, 0.1199786365032196, -0.519379734992981, 0.8636898398399353, -0.6040328741073608, -0.033359378576278687, -0.051908351480960846, -0.6544663310050964, -0.40262284874916077, 0.47443586587905884, -0.3559397757053375, 0.27778390049934387, 0.7753925919532776, 0.6865283846855164, -0.43166133761405945, -0.19429314136505127, 0.44467565417289734, 0.11186445504426956, 0.5375893115997314, 0.5257505774497986, 0.35304757952690125, -0.7695817351341248, 0.8214568495750427, -0.09069330245256424, 0.22278277575969696, 0.04105517268180847, -0.9122933745384216, -1.0330376625061035, -0.4336366355419159, -0.05381932109594345, -0.38533949851989746, 0.10194319486618042, 1.1316254138946533, 0.8975621461868286, -0.7704892158508301, -0.11016774922609329, -0.2979310154914856, 0.003726402297616005, 0.000708997540641576, -0.16155694425106049, 0.43183597922325134, -0.6216004490852356, -0.9794712066650391, 0.09437877684831619, -0.0523713044822216, 0.24902531504631042, 0.01040563452988863, 0.12021805346012115, 0.04936692863702774, 0.19099131226539612, 0.4352327585220337, 0.046735815703868866, -0.5371147394180298, -0.43268826603889465, 0.31385722756385803, -0.22443942725658417, 0.5519158840179443, 0.5658454298973083, -0.8963696360588074, 0.290024995803833, 0.49294453859329224, 0.7888487577438354, 0.7779238820075989, -0.05019090697169304, 0.46759679913520813, -0.7744048833847046, 0.22117304801940918, -0.02445473149418831, 0.4602053761482239, 0.45163992047309875, -0.34096458554267883, 0.3983730971813202, 0.502068817615509, -0.4357580542564392, -0.6742289066314697, -0.010760092176496983, -0.9851716756820679, -0.12383153289556503, 0.9654675126075745, -0.20688509941101074, -0.4862896203994751, 0.17060457170009613, -0.047808606177568436, 0.6729885935783386, -0.43303412199020386, 0.8740727305412292, 0.9235056638717651, 0.17899049818515778, -0.27561628818511963, -0.32725101709365845, 0.5180010199546814, 0.5039097666740417, -0.664985716342926, -0.15479275584220886, -0.08536887913942337, 0.576549768447876, 0.07761234045028687, 0.6209877133369446, -0.032507289201021194, 0.1527325063943863, 0.09984620660543442, 0.40397125482559204, -0.13431906700134277, -0.15684933960437775, -0.20670437812805176, 0.17656046152114868, -0.10039327293634415, -0.6421446800231934 ]
raminm/fundhub_subcategory_v1
raminm
"2023-11-09T04:50:40Z"
34,016
0
transformers
[ "transformers", "pytorch", "bert", "text-classification", "generated_from_trainer", "base_model:bert-base-uncased", "license:apache-2.0", "endpoints_compatible", "region:us" ]
text-classification
"2023-11-04T19:31:38Z"
--- license: apache-2.0 base_model: bert-base-uncased tags: - generated_from_trainer metrics: - f1 model-index: - name: fundhub_subcategory_v1 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. --> # fundhub_subcategory_v1 This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset. It achieves the following results on the evaluation set: - Loss: 0.3386 - F1: 0.8965 ## 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: 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 ### Training results | Training Loss | Epoch | Step | Validation Loss | F1 | |:-------------:|:-----:|:-----:|:---------------:|:------:| | 0.4921 | 1.0 | 25275 | 0.4638 | 0.8635 | | 0.3574 | 2.0 | 50550 | 0.3744 | 0.8836 | | 0.2978 | 3.0 | 75825 | 0.3386 | 0.8965 | ### Framework versions - Transformers 4.34.0 - Pytorch 2.1.0+cu121 - Datasets 2.14.4 - Tokenizers 0.14.1
[ -0.4964868128299713, -0.6322059631347656, 0.13350173830986023, 0.22997809946537018, -0.4326445758342743, -0.473433256149292, -0.18187940120697021, -0.2513177692890167, 0.207846000790596, 0.39217421412467957, -0.8449917435646057, -0.610892117023468, -0.6452293395996094, -0.39344143867492676, -0.2844471335411072, 1.467441439628601, 0.22048762440681458, 0.5348180532455444, -0.15997816622257233, -0.008926709182560444, -0.4483548402786255, -0.7010936141014099, -0.7220410704612732, -0.8438201546669006, 0.3210194408893585, 0.25586438179016113, 0.8400604128837585, 0.839398980140686, 0.6738871932029724, 0.17357294261455536, -0.36865735054016113, -0.2869657874107361, -0.702875018119812, -0.5423447489738464, 0.13225635886192322, -0.3354284167289734, -0.7345961332321167, -0.11921146512031555, 0.6934931874275208, 0.6605963706970215, -0.32101723551750183, 0.47339820861816406, 0.04065616801381111, 0.6194880604743958, -0.5301098227500916, 0.32212722301483154, -0.6492195725440979, 0.24514587223529816, -0.23156487941741943, -0.268909215927124, -0.4508424401283264, -0.12588512897491455, 0.18623210489749908, -0.5084987282752991, 0.5341629385948181, -0.01379068847745657, 1.4385441541671753, 0.2626870572566986, -0.21721191704273224, 0.13085348904132843, -0.7426702976226807, 0.6975391507148743, -0.8506442308425903, 0.41069740056991577, 0.40218356251716614, 0.4537929892539978, 0.05478908494114876, -0.7138980627059937, -0.38845768570899963, 0.019441714510321617, 0.04910401999950409, 0.15921933948993683, -0.2853051722049713, 0.1348322629928589, 0.5925765037536621, 0.5526153445243835, -0.49878183007240295, 0.2312801331281662, -0.6483778953552246, -0.4403892159461975, 0.5433997511863708, 0.39248737692832947, -0.4323301315307617, -0.3143046796321869, -0.6854202747344971, -0.3404119312763214, -0.40425628423690796, 0.29012784361839294, 0.6613574028015137, 0.3590448200702667, -0.4348508417606354, 0.5748045444488525, -0.19483934342861176, 0.750610888004303, 0.17345412075519562, -0.10577412694692612, 0.571894109249115, 0.08009576797485352, -0.5799981951713562, -0.014204738661646843, 0.6921637058258057, 0.5705444812774658, 0.20179717242717743, 0.02019640989601612, -0.46807053685188293, -0.2876879870891571, 0.363739013671875, -0.9662614464759827, -0.5145077109336853, 0.13652564585208893, -0.8193007707595825, -0.67160564661026, 0.09739497303962708, -0.5166974663734436, 0.08190911263227463, -0.3424270749092102, 0.7481582760810852, -0.6230496764183044, -0.11423368752002716, 0.08755330741405487, -0.14325609803199768, 0.5187482237815857, 0.21203476190567017, -0.9014109373092651, 0.3552614152431488, 0.3922681510448456, 0.5283890962600708, 0.19247807562351227, -0.1562965214252472, -0.13268886506557465, -0.01808224432170391, -0.3445242643356323, 0.5537469387054443, -0.07044351100921631, -0.46373477578163147, -0.04252329468727112, 0.13278764486312866, -0.08428985625505447, -0.3626631498336792, 0.949791669845581, -0.465027391910553, 0.275138795375824, -0.36369839310646057, -0.7466234564781189, -0.3386707901954651, 0.34830185770988464, -0.6943241357803345, 1.220983862876892, 0.15429334342479706, -0.7667534351348877, 0.6846684813499451, -0.5539019703865051, -0.20428909361362457, 0.06913494318723679, -0.06668535619974136, -1.0055654048919678, 0.04905913397669792, 0.13306951522827148, 0.5107251405715942, -0.1733596920967102, 0.4285535514354706, -0.44435957074165344, -0.5888755321502686, -0.1515815556049347, -0.5908859968185425, 0.9808698296546936, 0.07960685342550278, -0.44778215885162354, 0.2573593556880951, -1.351318120956421, 0.4031757414340973, 0.396483838558197, -0.5225179195404053, 0.15265139937400818, -0.34010785818099976, 0.6099128723144531, 0.10079295188188553, 0.4801698625087738, -0.616521954536438, 0.14653447270393372, -0.3682147264480591, 0.2774548828601837, 0.8801748752593994, 0.06151183322072029, 0.0030591583345085382, -0.5411780476570129, 0.09041328728199005, 0.13754650950431824, 0.5057757496833801, 0.23843924701213837, -0.6395183205604553, -1.0325263738632202, -0.20709334313869476, 0.47826874256134033, 0.3903352916240692, -0.2794048488140106, 1.02775239944458, 0.005730542819947004, -0.8270694613456726, -0.3429611623287201, 0.020988570526242256, 0.3634199798107147, 0.7745379209518433, 0.45324212312698364, -0.26432451605796814, -0.5314578413963318, -1.4272961616516113, 0.34105485677719116, -0.13275578618049622, 0.1943667232990265, 0.34043094515800476, 0.7110787630081177, -0.19121848046779633, 0.9045537114143372, -0.49520570039749146, -0.21653856337070465, -0.18546421825885773, 0.14408175647258759, 0.6018801927566528, 0.914002001285553, 0.838323712348938, -0.3266429901123047, 0.005334574729204178, -0.274996817111969, -0.7899903059005737, 0.30432602763175964, -0.24297533929347992, -0.46203556656837463, 0.04587250202894211, 0.047866035252809525, -0.5514035820960999, 0.7893615961074829, 0.3135182857513428, -0.32932689785957336, 0.7896968722343445, -0.5458272099494934, -0.2825363576412201, -1.004692554473877, 0.30606609582901, 0.06143634393811226, -0.03283032402396202, -0.21578170359134674, -0.10759329050779343, 0.22681067883968353, -0.24072399735450745, -0.3023354113101959, 0.5300101041793823, -0.05296141654253006, 0.001139105181209743, -0.12126321345567703, -0.5426520109176636, -0.005435918923467398, 0.9598162770271301, 0.18367262184619904, 0.49384769797325134, 0.6623533964157104, -0.5102565288543701, 0.3258472681045532, 0.509503185749054, -0.43070635199546814, 0.33159419894218445, -1.0525033473968506, 0.10541462153196335, -0.049471355974674225, 0.04260783642530441, -0.895845890045166, -0.21218368411064148, 0.3224909007549286, -0.4764886200428009, 0.34319350123405457, -0.13251593708992004, -0.41593173146247864, -0.44700008630752563, -0.2387368530035019, 0.10497220605611801, 0.6356551647186279, -0.6077084541320801, 0.31394144892692566, -0.19159358739852905, 0.3555631935596466, -0.6690155863761902, -0.7625054121017456, -0.37533116340637207, -0.020817218348383904, -0.5779591202735901, 0.2588893175125122, -0.09045130759477615, 0.17899855971336365, 0.06971406936645508, -0.17803138494491577, -0.3150089979171753, -0.07256559282541275, 0.42082467675209045, 0.5140204429626465, -0.2222854495048523, -0.02198340743780136, 0.08537130057811737, -0.1671571433544159, 0.3096410930156708, -0.04396407678723335, 0.6755695939064026, -0.1256505399942398, -0.39222195744514465, -0.7559345364570618, 0.013758071698248386, 0.5031935572624207, -0.08960168808698654, 1.0197237730026245, 0.8120604753494263, -0.6783915758132935, -0.028409374877810478, -0.5994983315467834, -0.1584114134311676, -0.4430115222930908, 0.5000013113021851, -0.423806369304657, -0.23511353135108948, 0.8672861456871033, 0.27737653255462646, 0.20350301265716553, 1.1273553371429443, 0.6600045561790466, -0.10014600306749344, 0.9672474265098572, 0.4854743778705597, -0.09055929630994797, 0.3308164179325104, -0.9827498197555542, -0.22480681538581848, -0.7231633067131042, -0.5943588614463806, -0.5087794661521912, -0.3787885010242462, -0.6056568026542664, 0.04746256768703461, 0.2451513409614563, 0.21694529056549072, -0.7910960912704468, 0.3493885099887848, -0.5464645028114319, 0.27746355533599854, 0.9630038142204285, 0.5932125449180603, -0.1895289123058319, 0.0778040811419487, -0.3785695433616638, -0.13614045083522797, -1.0033670663833618, -0.4146791994571686, 1.4676237106323242, 0.601146936416626, 0.8085266351699829, -0.2016967087984085, 0.9015209078788757, 0.19123394787311554, 0.2349216789007187, -0.6213335394859314, 0.41006773710250854, 0.13264864683151245, -1.176031231880188, -0.2589440643787384, -0.34885939955711365, -0.7329651117324829, 0.09912408888339996, -0.5432145595550537, -0.555604100227356, 0.379637748003006, 0.24654388427734375, -0.45260316133499146, 0.5464417338371277, -0.5424807667732239, 1.1948537826538086, -0.3811361491680145, -0.35859912633895874, -0.1539400964975357, -0.6180043816566467, 0.16217221319675446, 0.024769041687250137, -0.32619509100914, 0.010080958716571331, 0.28722384572029114, 1.0174351930618286, -0.7020161747932434, 0.8036717772483826, -0.4777907729148865, 0.3345441520214081, 0.32875293493270874, -0.23202812671661377, 0.7059653997421265, 0.15445366501808167, -0.19279727339744568, 0.450091689825058, -0.10786838829517365, -0.7536108493804932, -0.2552146315574646, 0.7136275172233582, -1.2833150625228882, -0.13641749322414398, -0.5560436248779297, -0.6266761422157288, -0.14804783463478088, 0.35552480816841125, 0.6751766800880432, 0.7502387762069702, -0.09748291224241257, 0.49548834562301636, 0.6236651539802551, -0.12148632109165192, 0.4692641794681549, 0.28053513169288635, 0.1494789719581604, -0.6497606635093689, 0.7537064552307129, -0.08598151803016663, 0.2053074687719345, 0.010352276265621185, 0.04321657866239548, -0.49543246626853943, -0.6367385387420654, -0.651852548122406, 0.2541235387325287, -0.935252845287323, -0.3595389723777771, -0.2825610637664795, -0.5567625761032104, -0.33807244896888733, -0.12450160086154938, -0.48177316784858704, -0.38168489933013916, -0.4740844964981079, -0.2526189386844635, 0.3664478063583374, 0.5561956763267517, -0.05292627960443497, 0.63047856092453, -0.6293248534202576, -0.13795578479766846, 0.18010041117668152, 0.6311022639274597, 0.18723976612091064, -0.881304144859314, -0.3987472355365753, -0.06120426952838898, -0.49463632702827454, -0.7045810222625732, 0.429756760597229, 0.0979132279753685, 0.8500795960426331, 0.7671196460723877, -0.1472461223602295, 1.0581629276275635, -0.39857223629951477, 0.7634285092353821, 0.34841516613960266, -0.7047717571258545, 0.4804544746875763, -0.365634024143219, 0.20944716036319733, 0.6476807594299316, 0.4733221232891083, 0.10636529326438904, -0.025242235511541367, -1.3269189596176147, -0.9072017073631287, 0.9505133628845215, 0.5221688151359558, 0.0847311019897461, 0.14071838557720184, 0.40226122736930847, 0.017171550542116165, 0.3180387616157532, -1.0143853425979614, -0.7178980708122253, -0.4000833034515381, -0.0072603230364620686, 0.07874755561351776, -0.4532333016395569, -0.24677908420562744, -0.6075337529182434, 1.2045096158981323, 0.14823605120182037, 0.5835128426551819, 0.06271687150001526, 0.1852746158838272, -0.32980838418006897, -0.05713827162981033, 0.6006622910499573, 0.8653414845466614, -0.9739208221435547, -0.38104376196861267, 0.17774517834186554, -0.3440563380718231, -0.24156270921230316, 0.450521320104599, -0.0764705017209053, 0.2535838782787323, 0.5734480023384094, 1.0836396217346191, 0.3192121982574463, -0.2802083492279053, 0.46001237630844116, 0.07066553831100464, -0.5412735939025879, -0.49908843636512756, -0.010478015057742596, -0.1860935539007187, 0.20848284661769867, 0.42962947487831116, 0.4458848237991333, 0.04383915290236473, -0.17433752119541168, 0.2859044373035431, 0.37169188261032104, -0.5168088674545288, -0.11958609521389008, 0.9596675038337708, 0.18546465039253235, -0.15299946069717407, 0.9401105046272278, -0.0576670803129673, -0.25367486476898193, 0.9625101685523987, 0.5785049796104431, 0.950363039970398, 0.07968644797801971, -0.1397685557603836, 0.8021153211593628, 0.3578164577484131, 0.08537465333938599, 0.49189046025276184, 0.02631511725485325, -0.6286829710006714, -0.2572592496871948, -0.8291182518005371, -0.37419965863227844, 0.6560592651367188, -1.391263723373413, 0.42079824209213257, -0.7019271850585938, -0.4859958291053772, 0.44045016169548035, 0.1198733001947403, -1.0690536499023438, 0.633161187171936, 0.2239157110452652, 1.3395462036132812, -0.953916609287262, 0.9528598189353943, 0.7229102253913879, -0.5239529013633728, -0.9902899265289307, -0.2981240451335907, -0.3611207604408264, -1.1975165605545044, 0.8047974109649658, 0.01566423662006855, 0.4314306080341339, 0.03365476429462433, -0.5952257513999939, -0.8479924201965332, 1.1353323459625244, 0.2610825300216675, -0.7286362648010254, 0.002460838295519352, 0.10161813348531723, 0.5657162070274353, -0.0580972395837307, 0.5527894496917725, 0.09736049920320511, 0.2501427233219147, 0.27789756655693054, -1.0117082595825195, -0.2249200940132141, -0.2825984060764313, 0.16544200479984283, 0.24486713111400604, -0.6975617408752441, 1.1403135061264038, -0.10673385113477707, 0.4681192934513092, 0.19292637705802917, 0.6721341609954834, 0.2767539918422699, 0.24878588318824768, 0.4936375021934509, 1.0573173761367798, 0.4742717742919922, -0.29809585213661194, 1.0744315385818481, -0.665727972984314, 0.9879745244979858, 1.054773211479187, 0.12102923542261124, 0.6269659996032715, 0.3499237298965454, -0.29281583428382874, 0.4346904754638672, 0.9776431918144226, -0.4562215805053711, 0.5966601371765137, 0.16592149436473846, 0.1273377686738968, -0.5678896307945251, 0.29858487844467163, -0.7905226349830627, 0.3373968005180359, -0.002483770251274109, -0.7156848907470703, -0.4769412875175476, -0.28425925970077515, -0.1135382205247879, -0.3810298442840576, -0.45522257685661316, 0.47673070430755615, -0.45652827620506287, -0.20077380537986755, 0.893827497959137, 0.20170587301254272, 0.3895677924156189, -0.8484700322151184, -0.1413206309080124, -0.16675765812397003, 0.4368661940097809, -0.22245529294013977, -0.5958706140518188, 0.19638144969940186, -0.1063966155052185, -0.3820599913597107, -0.01099888700991869, 0.5467792749404907, -0.1291378289461136, -0.9488032460212708, 0.14854572713375092, 0.3516056537628174, 0.26738235354423523, 0.10083968192338943, -1.112278938293457, -0.013460366986691952, 0.040162377059459686, -0.43739673495292664, 0.12226608395576477, 0.2771623134613037, 0.0188559889793396, 0.611009955406189, 0.7235973477363586, -0.04870488867163658, 0.07387498766183853, 0.17630192637443542, 1.1360403299331665, -0.7135348320007324, -0.6197048425674438, -0.6515892744064331, 0.5000483989715576, -0.17575111985206604, -0.9106346964836121, 0.6245555281639099, 1.1483906507492065, 1.0107746124267578, -0.2890503406524658, 0.5308594703674316, -0.0975198745727539, 0.33474045991897583, -0.4548018276691437, 0.7304291725158691, -0.5115393400192261, -0.09447137266397476, -0.2905147075653076, -0.7955633997917175, 0.004335477482527494, 0.8607571125030518, -0.2827966511249542, 0.1918131709098816, 0.33314967155456543, 0.5126004219055176, 0.0728396326303482, 0.09922076761722565, 0.2575586140155792, -0.07793304324150085, 0.11356042325496674, 0.5974361300468445, 0.3253803253173828, -0.9594237804412842, 0.5967296957969666, -0.8679478168487549, -0.18356257677078247, -0.1787862926721573, -0.743575930595398, -1.1084977388381958, -0.31249740719795227, -0.4285614788532257, -0.46236133575439453, 0.10378512740135193, 1.0457273721694946, 1.0275852680206299, -0.954159677028656, -0.3360045254230499, 0.0782560259103775, -0.3570864498615265, -0.3646697998046875, -0.26182085275650024, 0.5755206346511841, -0.2053634524345398, -0.7043052911758423, -0.0816497728228569, -0.31634628772735596, 0.26362016797065735, -0.28370770812034607, -0.18092693388462067, -0.3246418237686157, -0.26607316732406616, 0.23071938753128052, -0.0310027115046978, -0.5468373894691467, -0.3881957530975342, -0.08165723830461502, 0.039902638643980026, 0.16600224375724792, 0.2672676146030426, -0.5927577614784241, 0.5005040168762207, 0.20247632265090942, 0.4498274028301239, 0.7678694725036621, -0.003070447826758027, 0.17534001171588898, -0.9423816800117493, 0.4360850155353546, 0.3005746304988861, 0.5271645188331604, 0.004076819866895676, -0.46712127327919006, 0.4494611322879791, 0.4886477291584015, -0.5736067295074463, -0.9072493314743042, -0.35369598865509033, -1.294840931892395, 0.10959596931934357, 0.9770482182502747, 0.08057940751314163, -0.3695141077041626, 0.42069104313850403, -0.100201815366745, 0.272662490606308, -0.46296077966690063, 0.6403599381446838, 0.8767651915550232, -0.237444207072258, 0.15112926065921783, -0.5178952217102051, 0.34147560596466064, 0.4260599911212921, -0.5320468544960022, -0.34284427762031555, 0.4302084147930145, 0.5618148446083069, 0.14865238964557648, 0.339408278465271, -0.09881261736154556, 0.4354548156261444, 0.16456544399261475, 0.5825162529945374, -0.46476972103118896, -0.2251107096672058, -0.3506530523300171, 0.11625021696090698, 0.0771331712603569, -0.7278560996055603 ]
openai-gpt
null
"2023-04-06T13:42:43Z"
33,992
191
transformers
[ "transformers", "pytorch", "tf", "rust", "safetensors", "openai-gpt", "text-generation", "en", "arxiv:1705.11168", "arxiv:1803.02324", "arxiv:1910.09700", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2022-03-02T23:29:04Z"
--- language: en license: mit --- # OpenAI GPT ## Table of Contents - [Model Details](#model-details) - [How To Get Started With the Model](#how-to-get-started-with-the-model) - [Uses](#uses) - [Risks, Limitations and Biases](#risks-limitations-and-biases) - [Training](#training) - [Evaluation](#evaluation) - [Environmental Impact](#environmental-impact) - [Technical Specifications](#technical-specifications) - [Citation Information](#citation-information) - [Model Card Authors](#model-card-authors) ## Model Details **Model Description:** `openai-gpt` is a transformer-based language model created and released by OpenAI. The model is a causal (unidirectional) transformer pre-trained using language modeling on a large corpus with long range dependencies. - **Developed by:** Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever. See [associated research paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) and [GitHub repo](https://github.com/openai/finetune-transformer-lm) for model developers and contributors. - **Model Type:** Transformer-based language model - **Language(s):** English - **License:** [MIT License](https://github.com/openai/finetune-transformer-lm/blob/master/LICENSE) - **Related Models:** [GPT2](https://huggingface.co/gpt2), [GPT2-Medium](https://huggingface.co/gpt2-medium), [GPT2-Large](https://huggingface.co/gpt2-large) and [GPT2-XL](https://huggingface.co/gpt2-xl) - **Resources for more information:** - [Research Paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) - [OpenAI Blog Post](https://openai.com/blog/language-unsupervised/) - [GitHub Repo](https://github.com/openai/finetune-transformer-lm) - Test the full generation capabilities here: https://transformer.huggingface.co/doc/gpt ## How to Get Started with the Model Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility: ```python >>> from transformers import pipeline, set_seed >>> generator = pipeline('text-generation', model='openai-gpt') >>> set_seed(42) >>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5) [{'generated_text': "Hello, I'm a language model,'he said, when i was finished.'ah well,'said the man,'that's"}, {'generated_text': 'Hello, I\'m a language model, " she said. \n she reached the bottom of the shaft and leaned a little further out. it was'}, {'generated_text': 'Hello, I\'m a language model, " she laughed. " we call that a\'white girl.\'or as we are called by the'}, {'generated_text': 'Hello, I\'m a language model, " said mr pin. " an\'the ones with the funny hats don\'t. " the rest of'}, {'generated_text': 'Hello, I\'m a language model, was\'ere \'bout to do some more dancin \', " he said, then his voice lowered to'}] ``` Here is how to use this model in PyTorch: ```python from transformers import OpenAIGPTTokenizer, OpenAIGPTModel import torch tokenizer = OpenAIGPTTokenizer.from_pretrained("openai-gpt") model = OpenAIGPTModel.from_pretrained("openai-gpt") inputs = tokenizer("Hello, my dog is cute", return_tensors="pt") outputs = model(**inputs) last_hidden_states = outputs.last_hidden_state ``` and in TensorFlow: ```python from transformers import OpenAIGPTTokenizer, TFOpenAIGPTModel tokenizer = OpenAIGPTTokenizer.from_pretrained("openai-gpt") model = TFOpenAIGPTModel.from_pretrained("openai-gpt") inputs = tokenizer("Hello, my dog is cute", return_tensors="tf") outputs = model(inputs) last_hidden_states = outputs.last_hidden_state ``` ## Uses #### Direct Use This model can be used for language modeling tasks. #### Downstream Use Potential downstream uses of this model include tasks that leverage language models. In the [associated paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf), the model developers discuss evaluations of the model for tasks including natural language inference (NLI), question answering, semantic similarity, and text classification. #### Misuse and 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. ## Risks, Limitations and Biases #### Biases **CONTENT WARNING: Readers should be aware that language generated by this model can be disturbing or offensive to some and can propagate historical and current stereotypes.** Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by this model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example: ```python >>> from transformers import pipeline, set_seed >>> generator = pipeline('text-generation', model='openai-gpt') >>> set_seed(42) >>> generator("The man worked as a", max_length=10, num_return_sequences=5) [{'generated_text': 'The man worked as a teacher for the college he'}, {'generated_text': 'The man worked as a janitor at the club.'}, {'generated_text': 'The man worked as a bodyguard in america. the'}, {'generated_text': 'The man worked as a clerk for one of the'}, {'generated_text': 'The man worked as a nurse, but there was'}] >>> set_seed(42) >>> generator("The woman worked as a", max_length=10, num_return_sequences=5) [{'generated_text': 'The woman worked as a medical intern but is a'}, {'generated_text': 'The woman worked as a midwife, i know that'}, {'generated_text': 'The woman worked as a prostitute in a sex club'}, {'generated_text': 'The woman worked as a secretary for one of the'}, {'generated_text': 'The woman worked as a nurse, but she had'}] ``` This bias may also affect fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. #### Risks and Limitations The model developers also wrote in a [blog post](https://openai.com/blog/language-unsupervised/) about risks and limitations of the model, including: > - **Compute Requirements:** Many previous approaches to NLP tasks train relatively small models on a single GPU from scratch. Our approach requires an expensive pre-training step - 1 month on 8 GPUs. Luckily, this only has to be done once and we’re releasing our model so others can avoid it. It is also a large model (in comparison to prior work) and consequently uses more compute and memory — we used a 37-layer (12 block) Transformer architecture, and we train on sequences of up to 512 tokens. Most experiments were conducted on 4 and 8 GPU systems. The model does fine-tune to new tasks very quickly which helps mitigate the additional resource requirements. > - **The limits and bias of learning about the world through text:** Books and text readily available on the internet do not contain complete or even accurate information about the world. Recent work ([Lucy and Gauthier, 2017](https://arxiv.org/abs/1705.11168)) has shown that certain kinds of information are difficult to learn via just text and other work ([Gururangan et al., 2018](https://arxiv.org/abs/1803.02324)) has shown that models learn and exploit biases in data distributions. > - **Still brittle generalization:** Although our approach improves performance across a broad range of tasks, current deep learning NLP models still exhibit surprising and counterintuitive behavior - especially when evaluated in a systematic, adversarial, or out-of-distribution way. Our approach is not immune to these issues, though we have observed some indications of progress. Our approach shows improved lexical robustness over previous purely neural approaches to textual entailment. On the dataset introduced in Glockner et al. (2018) our model achieves 83.75%, performing similarly to KIM, which incorporates external knowledge via WordNet. ## Training #### Training Data The model developers [write](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf): > We use the BooksCorpus dataset ([Zhu et al., 2015](https://www.cv-foundation.org/openaccess/content_iccv_2015/papers/Zhu_Aligning_Books_and_ICCV_2015_paper.pdf)) for training the language model. It contains over 7,000 unique unpublished books from a variety of genres including Adventure, Fantasy, and Romance. Crucially, it contains long stretches of contiguous text, which allows the generative model to learn to condition on long-range information. #### Training Procedure The model developers [write](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf): > Our model largely follows the original transformer work [62]. We trained a 12-layer decoder-only transformer with masked self-attention heads (768 dimensional states and 12 attention heads). For the position-wise feed-forward networks, we used 3072 dimensional inner states. We used the Adam optimization scheme [27] with a max learning rate of 2.5e-4. The learning rate was increased linearly from zero over the first 2000 updates and annealed to 0 using a cosine schedule. We train for 100 epochs on minibatches of 64 randomly sampled, contiguous sequences of 512 tokens. Since layernorm [2] is used extensively throughout the model, a simple weight initialization of N (0, 0.02) was sufficient. We used a bytepair encoding (BPE) vocabulary with 40,000 merges [53] and residual, embedding, and attention dropouts with a rate of 0.1 for regularization. We also employed a modified version of L2 regularization proposed in [37], with w = 0.01 on all non bias or gain weights. For the activation function, we used the Gaussian Error Linear Unit (GELU) [18]. We used learned position embeddings instead of the sinusoidal version proposed in the original work. We use the ftfy library2 to clean the raw text in BooksCorpus, standardize some punctuation and whitespace, and use the spaCy tokenizer. See the paper for further details and links to citations. ## Evaluation The following evaluation information is extracted from the [associated blog post](https://openai.com/blog/language-unsupervised/). See the [associated paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) for further details. #### Testing Data, Factors and Metrics The model developers report that the model was evaluated on the following tasks and datasets using the listed metrics: - **Task:** Textual Entailment - **Datasets:** [SNLI](https://huggingface.co/datasets/snli), [MNLI Matched](https://huggingface.co/datasets/glue), [MNLI Mismatched](https://huggingface.co/datasets/glue), [SciTail](https://huggingface.co/datasets/scitail), [QNLI](https://huggingface.co/datasets/glue), [RTE](https://huggingface.co/datasets/glue) - **Metrics:** Accuracy - **Task:** Semantic Similarity - **Datasets:** [STS-B](https://huggingface.co/datasets/glue), [QQP](https://huggingface.co/datasets/glue), [MRPC](https://huggingface.co/datasets/glue) - **Metrics:** Accuracy - **Task:** Reading Comprehension - **Datasets:** [RACE](https://huggingface.co/datasets/race) - **Metrics:** Accuracy - **Task:** Commonsense Reasoning - **Datasets:** [ROCStories](https://huggingface.co/datasets/story_cloze), [COPA](https://huggingface.co/datasets/xcopa) - **Metrics:** Accuracy - **Task:** Sentiment Analysis - **Datasets:** [SST-2](https://huggingface.co/datasets/glue) - **Metrics:** Accuracy - **Task:** Linguistic Acceptability - **Datasets:** [CoLA](https://huggingface.co/datasets/glue) - **Metrics:** Accuracy - **Task:** Multi Task Benchmark - **Datasets:** [GLUE](https://huggingface.co/datasets/glue) - **Metrics:** Accuracy #### Results The model achieves the following results without any fine-tuning (zero-shot): | Task | TE | TE | TE |TE | TE | TE | SS | SS | SS | RC | CR | CR | SA | LA | MTB | |:--------:|:--:|:----------:|:-------------:|:-----:|:----:|:---:|:---:|:---:|:--:|:----:|:--------:|:----:|:----:|:----:|:----:| | Dataset |SNLI|MNLI Matched|MNLI Mismatched|SciTail| QNLI | RTE |STS-B| QQP |MPRC|RACE |ROCStories|COPA | SST-2| CoLA | GLUE | | |89.9| 82.1 | 81.4 |88.3 | 88.1 | 56.0|82.0 | 70.3|82.3|59.0 | 86.5 | 78.6 | 91.3 | 45.4 | 72.8 | ## Environmental Impact The model developers [report that](https://openai.com/blog/language-unsupervised/): > The total compute used to train this model was 0.96 petaflop days (pfs-days). > 8 P600 GPU's * 30 days * 12 TFLOPS/GPU * 0.33 utilization = .96 pfs-days Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). - **Hardware Type:** 8 P600 GPUs - **Hours used:** 720 hours (30 days) - **Cloud Provider:** Unknown - **Compute Region:** Unknown - **Carbon Emitted:** Unknown ## Technical Specifications See the [associated paper](https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf) for details on the modeling architecture, objective, compute infrastructure, and training details. ## Citation Information ```bibtex @article{radford2018improving, title={Improving language understanding by generative pre-training}, author={Radford, Alec and Narasimhan, Karthik and Salimans, Tim and Sutskever, Ilya and others}, year={2018}, publisher={OpenAI} } ``` APA: *Radford, A., Narasimhan, K., Salimans, T., & Sutskever, I. (2018). Improving language understanding by generative pre-training.* ## Model Card Authors This model card was written by the Hugging Face team.
[ -0.1945692002773285, -0.7388385534286499, 0.1538165658712387, 0.13273872435092926, -0.19494618475437164, -0.4499823749065399, -0.4238853454589844, -0.33390170335769653, -0.11859486252069473, 0.4360054135322571, -0.3805139362812042, -0.42083972692489624, -0.6316151022911072, 0.047048814594745636, -0.32180550694465637, 1.218773603439331, -0.03326570615172386, -0.013405829668045044, 0.14404641091823578, 0.020708052441477776, -0.2364606112241745, -0.41258469223976135, -0.6303475499153137, -0.4458314776420593, 0.22398056089878082, -0.025013141334056854, 0.6607602834701538, 0.5250454545021057, 0.31849178671836853, 0.26528453826904297, -0.206306591629982, -0.12685422599315643, -0.413131445646286, -0.23149548470973969, -0.05558261275291443, -0.3839094936847687, -0.3108495771884918, 0.12921060621738434, 0.5386654734611511, 0.6139079332351685, -0.16548271477222443, 0.2689859867095947, 0.12087296694517136, 0.39800944924354553, -0.3822896182537079, 0.3488348424434662, -0.5165735483169556, 0.010038929060101509, -0.3111417293548584, 0.13313208520412445, -0.4428156316280365, -0.21189816296100616, 0.10585097968578339, -0.4211484491825104, 0.29656434059143066, -0.1944635659456253, 1.1567037105560303, 0.2429037094116211, -0.24393798410892487, -0.1848745346069336, -0.7737245559692383, 0.7265798449516296, -0.8953899145126343, 0.260665625333786, 0.37866470217704773, 0.15139417350292206, -0.0524815134704113, -0.8666819930076599, -0.7612180709838867, -0.19527333974838257, -0.2501654326915741, 0.20493502914905548, -0.26642173528671265, -0.06262866407632828, 0.37685251235961914, 0.5474709272384644, -0.6070512533187866, -0.031227055937051773, -0.45968663692474365, -0.0656823143362999, 0.5110006928443909, -0.05906171724200249, 0.5154581665992737, -0.4121306836605072, -0.13255564868450165, -0.2866906225681305, -0.4987044334411621, 0.06290215253829956, 0.5730479955673218, 0.40606585144996643, -0.4327041804790497, 0.6711633801460266, -0.05866639316082001, 0.5820586681365967, -0.15693141520023346, -0.15938939154148102, 0.3608410954475403, -0.34073710441589355, -0.3181198537349701, -0.20634855329990387, 1.1862648725509644, 0.1495945155620575, 0.4048685133457184, -0.15424145758152008, -0.13750307261943817, 0.04718490689992905, 0.07995159178972244, -0.704754114151001, -0.30386751890182495, 0.16892027854919434, -0.5565452575683594, -0.35755348205566406, 0.0783987045288086, -0.8843176364898682, -0.01691994071006775, -0.09052474796772003, 0.36673861742019653, -0.4027547240257263, -0.4849739670753479, 0.07023681700229645, -0.08042572438716888, 0.2125622034072876, -0.10509837418794632, -1.0060572624206543, 0.15901444852352142, 0.4335334300994873, 0.8460621237754822, 0.18110361695289612, -0.2864183187484741, -0.1298181563615799, -0.09046557545661926, -0.06405577063560486, 0.2383815050125122, -0.23050767183303833, -0.19317512214183807, -0.037125762552022934, 0.03482142090797424, -0.16556134819984436, -0.23415124416351318, 0.55976802110672, -0.36513158679008484, 0.5731400847434998, 0.11441812664270401, -0.2288995087146759, -0.1615692526102066, -0.060037486255168915, -0.602580189704895, 1.0213603973388672, 0.21098576486110687, -1.0533193349838257, 0.1425873339176178, -0.8677223920822144, -0.36598896980285645, -0.09833002835512161, -0.06734753400087357, -0.42675572633743286, -0.05882110446691513, 0.3334706127643585, 0.3467436730861664, -0.383314311504364, 0.5176002383232117, 0.07469934225082397, -0.10423046350479126, 0.16777575016021729, -0.5154696106910706, 1.2247275114059448, 0.30368518829345703, -0.4483993649482727, 0.05709674209356308, -0.6217901110649109, -0.1490665078163147, 0.4917179346084595, -0.30106955766677856, -0.2395780235528946, -0.1161700189113617, 0.21192477643489838, 0.22118446230888367, 0.13607123494148254, -0.5848727822303772, 0.19932566583156586, -0.7242962121963501, 0.6542013883590698, 0.632756233215332, -0.24400483071804047, 0.39364108443260193, -0.16138286888599396, 0.36469799280166626, 0.04035240784287453, 0.12283302843570709, -0.19959117472171783, -0.7345269918441772, -0.8031362295150757, -0.07922770828008652, 0.47625720500946045, 0.6795127987861633, -0.7492272257804871, 0.5260137319564819, -0.2838435769081116, -0.5015599131584167, -0.6482448577880859, -0.0007824028725735843, 0.5081121325492859, 0.4870942234992981, 0.44140174984931946, -0.2291252464056015, -0.6157246232032776, -0.6201493144035339, -0.27186205983161926, -0.25765547156333923, -0.21854253113269806, 0.2298600971698761, 0.7411414980888367, -0.3464556336402893, 0.8918319344520569, -0.5792514085769653, -0.3532000780105591, -0.4287608861923218, 0.2020343542098999, 0.4720034599304199, 0.48994070291519165, 0.4184849262237549, -0.7131882309913635, -0.3462982773780823, -0.02885877899825573, -0.8176875114440918, 0.005816316697746515, -0.06346259266138077, -0.041907090693712234, 0.350193589925766, 0.3643704950809479, -0.7644023299217224, 0.40432170033454895, 0.5167028903961182, -0.3657090365886688, 0.5214000940322876, -0.15279732644557953, -0.22267518937587738, -1.2929909229278564, 0.2998806834220886, 0.17105504870414734, 0.026470312848687172, -0.7509797215461731, 0.1631607562303543, -0.19250957667827606, -0.22973418235778809, -0.42161083221435547, 0.6741364002227783, -0.32212382555007935, 0.21727216243743896, 0.003500451100990176, 0.029536357149481773, -0.28417304158210754, 0.7357652187347412, 0.02909598872065544, 0.6961581707000732, 0.4984986484050751, -0.541905403137207, 0.1568647176027298, 0.3781052827835083, -0.35949981212615967, 0.05513454228639603, -0.8069848418235779, 0.1551755964756012, -0.2655804753303528, 0.0850527286529541, -0.758955180644989, -0.22709394991397858, 0.4692709147930145, -0.5434890389442444, 0.3438120186328888, -0.2530714273452759, -0.5225695371627808, -0.44090038537979126, 0.024664098396897316, 0.39608925580978394, 0.7125024199485779, -0.5353174209594727, 0.5273540616035461, 0.4201790988445282, -0.06946536153554916, -0.65752112865448, -0.7670959830284119, 0.03424292802810669, -0.1363174468278885, -0.6500084400177002, 0.35504773259162903, 0.19838982820510864, -0.22232650220394135, -0.028930630534887314, 0.21226339042186737, -0.039340533316135406, -0.022771917283535004, 0.18292906880378723, 0.25553837418556213, -0.26396113634109497, -0.0355929434299469, -0.17945946753025055, -0.1919017881155014, 0.027621548622846603, -0.3795694410800934, 0.6918350458145142, -0.21865320205688477, -0.10918372124433517, -0.4374760687351227, 0.2111533135175705, 0.2746588885784149, -0.2623530626296997, 0.824504017829895, 0.8399174213409424, -0.46586060523986816, 0.04844537004828453, -0.26360300183296204, -0.17841118574142456, -0.430536687374115, 0.49803391098976135, -0.24173179268836975, -0.7791582345962524, 0.47501394152641296, 0.26775142550468445, 0.10736708343029022, 0.7942472696304321, 0.5913889408111572, 0.18833479285240173, 0.9713042974472046, 0.7429772615432739, -0.2814655601978302, 0.4416677951812744, -0.42937275767326355, 0.4148278534412384, -0.7413984537124634, -0.16083167493343353, -0.6309725046157837, 0.012507639825344086, -0.874612033367157, -0.3691170811653137, 0.193158358335495, 0.15652409195899963, -0.3676009476184845, 0.4808456003665924, -0.5639972686767578, 0.2596958577632904, 0.6292061805725098, 0.002533125691115856, 0.15166136622428894, 0.06150127574801445, -0.16670317947864532, 0.0033107874915003777, -0.6329436302185059, -0.611255407333374, 1.141412615776062, 0.6089231371879578, 0.7231214046478271, 0.09063003957271576, 0.5153548717498779, -0.0981697142124176, 0.29938897490501404, -0.4349078834056854, 0.4142681062221527, -0.34008684754371643, -0.5894043445587158, -0.42126113176345825, -0.5900312066078186, -0.9744670987129211, 0.20835618674755096, -0.024431049823760986, -0.9959220290184021, 0.025208979845046997, 0.05307969078421593, -0.12297993898391724, 0.5251598358154297, -0.6945592761039734, 1.077003002166748, -0.10455746203660965, -0.03603249788284302, 0.16788212954998016, -0.6945888996124268, 0.5317908525466919, 0.1728629171848297, 0.1391010284423828, 0.09858110547065735, 0.22466892004013062, 0.8347441554069519, -0.4915182888507843, 0.9942624568939209, -0.14913950860500336, -0.03304898366332054, 0.2900887429714203, -0.23623448610305786, 0.3134452998638153, -0.037913285195827484, -0.0340346023440361, 0.5476920008659363, -0.20431272685527802, -0.2378675639629364, -0.3314805030822754, 0.48921847343444824, -1.0254448652267456, -0.30421727895736694, -0.4325742721557617, -0.4876922369003296, 0.25507158041000366, 0.35559532046318054, 0.5488237142562866, 0.435789555311203, -0.17128045856952667, 0.011596322059631348, 0.515139102935791, -0.5178061723709106, 0.547527551651001, 0.13753606379032135, -0.2249731421470642, -0.3599972128868103, 0.8694373369216919, 0.01756725274026394, 0.19910210371017456, 0.38108786940574646, 0.2997775375843048, -0.3751961290836334, -0.27703362703323364, -0.5161952376365662, 0.41858404874801636, -0.6675674319267273, -0.02030557207763195, -0.8410844802856445, -0.42924636602401733, -0.6541450619697571, 0.252105712890625, -0.2730322480201721, -0.28249242901802063, -0.3880268633365631, 0.03045491687953472, 0.3253003656864166, 0.660184383392334, 0.10550548881292343, 0.44984760880470276, -0.5613144636154175, 0.4186813235282898, 0.23703525960445404, 0.43603605031967163, 0.0390331856906414, -0.6931527853012085, -0.13431891798973083, 0.20926432311534882, -0.42928802967071533, -0.7575482130050659, 0.5789943337440491, 0.15222540497779846, 0.5538064241409302, 0.2567687928676605, 0.025904959067702293, 0.36342093348503113, -0.43520307540893555, 0.9249694347381592, 0.18779504299163818, -0.8946239948272705, 0.5920556783676147, -0.37547022104263306, 0.34869614243507385, 0.23467642068862915, 0.38619884848594666, -0.618485689163208, -0.41937950253486633, -0.7000571489334106, -0.9915028214454651, 0.8895703554153442, 0.47875094413757324, 0.31325921416282654, -0.05751563981175423, 0.27466654777526855, -0.06044166162610054, 0.15016719698905945, -1.2629286050796509, -0.5506337881088257, -0.48487523198127747, -0.3554289937019348, -0.21383827924728394, -0.17221130430698395, -0.00933069083839655, -0.2790559232234955, 0.817024290561676, -0.09733917564153671, 0.6620784997940063, 0.13143904507160187, -0.31173714995384216, 0.040343791246414185, 0.32170188426971436, 0.5887353420257568, 0.4786812961101532, -0.17097173631191254, 0.004796715918928385, 0.09867087751626968, -0.6395447850227356, -0.07042043656110764, 0.27293431758880615, -0.4641801416873932, 0.045810163021087646, 0.25934815406799316, 1.137756586074829, -0.11603326350450516, -0.3958721458911896, 0.5861031413078308, -0.14079858362674713, -0.16262312233448029, -0.34962138533592224, -0.06479921191930771, 0.08212622255086899, 0.03456759452819824, 0.2083517611026764, 0.07936612516641617, -0.13070617616176605, -0.5364851355552673, 0.04931811988353729, 0.24850092828273773, -0.35463517904281616, -0.3060111701488495, 0.9169485569000244, 0.0957791730761528, -0.4478096067905426, 0.8117076754570007, -0.2606704831123352, -0.506808340549469, 0.5542553663253784, 0.6538023352622986, 1.0319385528564453, -0.11052766442298889, 0.22077813744544983, 0.579842209815979, 0.5175560712814331, -0.20809371769428253, 0.2021474987268448, 0.17853280901908875, -0.8220296502113342, -0.5198771357536316, -0.7395344972610474, -0.03026920184493065, 0.3779677748680115, -0.47391578555107117, 0.287109375, -0.2753646969795227, -0.07031361758708954, -0.010876341722905636, -0.2325020581483841, -0.7171685695648193, 0.1770659238100052, 0.039077773690223694, 0.8302578926086426, -1.023779034614563, 0.8308612108230591, 0.5463549494743347, -0.830909788608551, -0.8754064440727234, 0.18398377299308777, -0.270780473947525, -0.6552487015724182, 0.575829803943634, 0.35055258870124817, 0.31646132469177246, 0.0014616333646699786, -0.4595852196216583, -0.6467438340187073, 0.8879618048667908, 0.35187309980392456, -0.26098743081092834, -0.1979452222585678, 0.32331305742263794, 0.650353193283081, -0.21622267365455627, 0.6360775828361511, 0.6005122661590576, 0.40042030811309814, -0.1557876616716385, -0.9374021291732788, 0.1911003142595291, -0.39915966987609863, 0.15823179483413696, 0.1906425952911377, -0.4103694260120392, 1.1117054224014282, -0.24055752158164978, -0.20729239284992218, 0.12437540292739868, 0.7527680397033691, -0.055931296199560165, 0.025247573852539062, 0.4443531930446625, 0.6816405057907104, 0.5927425026893616, -0.3278293311595917, 1.2178106307983398, -0.173239603638649, 0.5493955016136169, 0.9945314526557922, 0.20661325752735138, 0.6668994426727295, 0.268944650888443, -0.29975950717926025, 0.48482203483581543, 0.38988393545150757, -0.1001172885298729, 0.44756484031677246, 0.1362161934375763, -0.06810079514980316, 0.12140803039073944, -0.07959805428981781, -0.42890092730522156, 0.4381685256958008, 0.1422126442193985, -0.5360332727432251, -0.20566707849502563, 0.06062161549925804, 0.1305447816848755, -0.0899745523929596, -0.12238573282957077, 0.665565550327301, 0.16127733886241913, -0.6845386028289795, 0.5631881356239319, 0.3213426172733307, 0.8741878271102905, -0.5657341480255127, 0.05300922691822052, -0.08353474736213684, 0.2435237616300583, -0.16012069582939148, -0.7196121215820312, 0.29244887828826904, 0.10244189947843552, -0.22146335244178772, -0.33859342336654663, 0.6227912306785583, -0.5750764012336731, -0.4540630578994751, 0.2816772162914276, 0.2781188488006592, 0.32791486382484436, -0.11961422115564346, -0.7610355615615845, -0.19440717995166779, 0.12645436823368073, -0.28493112325668335, 0.2767568528652191, 0.22598285973072052, -0.04527595639228821, 0.5475117564201355, 0.6767688393592834, 0.08425585180521011, 0.08131100982427597, 0.3297711908817291, 0.6647804379463196, -0.5922360420227051, -0.4933207035064697, -0.8821433186531067, 0.6949052214622498, 0.004676767624914646, -0.5189710259437561, 0.6273317337036133, 0.46736782789230347, 1.0807392597198486, -0.21254964172840118, 0.87388014793396, -0.34809669852256775, 0.34280577301979065, -0.44832512736320496, 0.8162810802459717, -0.4881298542022705, 0.09304104000329971, -0.5144957900047302, -0.8484096527099609, -0.2721090018749237, 0.7085232138633728, -0.3078894317150116, 0.2618626356124878, 0.5744521617889404, 0.9102198481559753, -0.10500083863735199, 0.03260292485356331, 0.13455967605113983, 0.3055698573589325, 0.3360185921192169, 0.5041218996047974, 0.5461626648902893, -0.8086819052696228, 0.7046521306037903, -0.4538746178150177, -0.2139117568731308, -0.01576499082148075, -0.7805077433586121, -0.9167833924293518, -0.6739049553871155, -0.3314305543899536, -0.4922148883342743, -0.10650906711816788, 0.7925597429275513, 0.5204805731773376, -0.8155606985092163, -0.35024145245552063, -0.25710228085517883, 0.13501590490341187, -0.20088347792625427, -0.2695158123970032, 0.3979203701019287, -0.19409483671188354, -0.808686375617981, 0.0768759623169899, -0.08715593069791794, 0.1710168868303299, -0.30391842126846313, -0.14974898099899292, -0.3694594204425812, -0.19449524581432343, 0.4155454635620117, 0.3549099862575531, -0.7775798439979553, -0.1223435252904892, -0.045966826379299164, -0.1841495782136917, -0.0157779511064291, 0.594728946685791, -0.4627927243709564, 0.2936231791973114, 0.5228531956672668, 0.4446668326854706, 0.5212277770042419, -0.24194833636283875, 0.5767960548400879, -0.7068716883659363, 0.23440425097942352, 0.0765497237443924, 0.442099004983902, 0.3467848002910614, -0.39802056550979614, 0.5706658959388733, 0.30679360032081604, -0.522457480430603, -0.7796124219894409, 0.117661252617836, -0.789655327796936, -0.22316592931747437, 1.1661005020141602, -0.1486220508813858, -0.2606702148914337, -0.022922134026885033, -0.22800415754318237, 0.6137924194335938, -0.2685611844062805, 0.5566275119781494, 0.4303578734397888, 0.21657054126262665, -0.1698329746723175, -0.7046106457710266, 0.4138970673084259, 0.32979369163513184, -0.6846815347671509, -0.00335800857283175, 0.025077855214476585, 0.3414333164691925, 0.28820815682411194, 0.647188127040863, -0.1993730366230011, 0.029325706884264946, -0.022678429260849953, 0.4093611538410187, 0.02285061776638031, -0.1555248200893402, -0.42570388317108154, 0.057395368814468384, -0.12842296063899994, -0.22287799417972565 ]
timm/sebotnet33ts_256.a1h_in1k
timm
"2023-04-26T16:12:15Z"
33,882
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:2101.11605", "license:apache-2.0", "region:us" ]
image-classification
"2023-04-26T16:12:04Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for sebotnet33ts_256.a1h_in1k A BotNet image classification model (with Squeeze-and-Excitation channel attention, based on ResNet architecture). Trained on ImageNet-1k in `timm` by Ross Wightman. NOTE: this model did not adhere to any specific paper configuration, it was tuned for reasonable training times and reduced frequency of self-attention blocks. Recipe details: * Based on [ResNet Strikes Back](https://arxiv.org/abs/2110.00476) `A1` recipe * LAMB optimizer * Stronger dropout, stochastic depth, and RandAugment than paper `A1` recipe * Cosine LR schedule with warmup This model architecture is implemented using `timm`'s flexible [BYOBNet (Bring-Your-Own-Blocks Network)](https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/byobnet.py). BYOB (with BYOANet attention specific blocks) allows configuration of: * block / stage layout * block-type interleaving * stem layout * output stride (dilation) * activation and norm layers * channel and spatial / self-attention layers ...and also includes `timm` features common to many other architectures, including: * stochastic depth * gradient checkpointing * layer-wise LR decay * per-stage feature extraction ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 13.7 - GMACs: 3.9 - Activations (M): 17.5 - Image size: 256 x 256 - **Papers:** - Bottleneck Transformers for Visual Recognition: https://arxiv.org/abs/2101.11605 - ResNet strikes back: An improved training procedure in timm: https://arxiv.org/abs/2110.00476 - **Dataset:** ImageNet-1k ## 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('sebotnet33ts_256.a1h_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) ``` ### 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( 'sebotnet33ts_256.a1h_in1k', 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, 32, 128, 128]) # torch.Size([1, 256, 64, 64]) # torch.Size([1, 512, 32, 32]) # torch.Size([1, 1024, 16, 16]) # torch.Size([1, 1280, 8, 8]) 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( 'sebotnet33ts_256.a1h_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, 1280, 8, 8) 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 @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}} } ``` ```bibtex @article{Srinivas2021BottleneckTF, title={Bottleneck Transformers for Visual Recognition}, author={A. Srinivas and Tsung-Yi Lin and Niki Parmar and Jonathon Shlens and P. Abbeel and Ashish Vaswani}, journal={2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, year={2021}, pages={16514-16524} } ``` ```bibtex @inproceedings{wightman2021resnet, title={ResNet strikes back: An improved training procedure in timm}, author={Wightman, Ross and Touvron, Hugo and Jegou, Herve}, booktitle={NeurIPS 2021 Workshop on ImageNet: Past, Present, and Future} } ```
[ -0.4912492632865906, -0.5431391596794128, 0.014787747524678707, 0.10131459683179855, -0.2511236369609833, -0.3416948914527893, -0.23061619699001312, -0.40818116068840027, 0.30364903807640076, 0.539652407169342, -0.4716275930404663, -0.5710698962211609, -0.6913971304893494, -0.06100911647081375, -0.1410321593284607, 0.861762285232544, -0.0697014182806015, -0.09109954535961151, -0.13674615323543549, -0.5290379524230957, -0.25100722908973694, -0.3831159770488739, -0.9179942607879639, -0.41383039951324463, 0.38924461603164673, 0.1553313434123993, 0.4477810263633728, 0.64887535572052, 0.6921299695968628, 0.5059278011322021, -0.10148748755455017, 0.08157863467931747, -0.24144247174263, -0.17732341587543488, 0.2687942087650299, -0.5503106117248535, -0.4223894774913788, 0.22900544106960297, 0.5402121543884277, 0.2791253924369812, 0.06090584397315979, 0.469728022813797, 0.06675607711076736, 0.5887559652328491, -0.22815653681755066, 0.05159040167927742, -0.4826776385307312, 0.20756620168685913, -0.21266056597232819, -0.0360167920589447, -0.39611274003982544, -0.2730585038661957, 0.22103166580200195, -0.4019704759120941, 0.5224438309669495, 0.05933211371302605, 1.3192644119262695, 0.280676007270813, 0.010667102411389351, 0.039718858897686005, -0.18117211759090424, 0.7643871903419495, -0.771451473236084, 0.28147464990615845, 0.2049238383769989, 0.2531641721725464, -0.08942384272813797, -0.9820908308029175, -0.5238699316978455, -0.19218771159648895, -0.08187034726142883, 0.09335681796073914, -0.24660111963748932, -0.020577894523739815, 0.3887794017791748, 0.22238487005233765, -0.4537472128868103, 0.0783296525478363, -0.6080045104026794, -0.177058607339859, 0.5454118847846985, 0.004610056988894939, 0.32089194655418396, -0.34074831008911133, -0.5892924666404724, -0.3841099739074707, -0.33341023325920105, 0.2805206775665283, 0.2567242980003357, 0.23509761691093445, -0.6050972938537598, 0.3386242091655731, 0.1711793839931488, 0.5423985123634338, 0.06155914440751076, -0.23943233489990234, 0.6272129416465759, 0.08127845823764801, -0.46085959672927856, -0.21531683206558228, 1.0644971132278442, 0.31839439272880554, 0.25522688031196594, 0.13949163258075714, -0.20938640832901, -0.31683844327926636, 0.10157656669616699, -1.0248304605484009, -0.37696000933647156, 0.2823639512062073, -0.6896548867225647, -0.41621285676956177, 0.18693946301937103, -0.6401728391647339, -0.1737547218799591, -0.02571888081729412, 0.5872729420661926, -0.6135305166244507, -0.3095686137676239, 0.01234331913292408, -0.2638861835002899, 0.33673715591430664, 0.29628440737724304, -0.4765843152999878, 0.21731899678707123, 0.26616960763931274, 1.1588032245635986, -0.0040975166484713554, -0.45793038606643677, -0.2136625349521637, -0.33995527029037476, -0.21414586901664734, 0.5259812474250793, -0.06213712692260742, -0.033843886107206345, -0.33954355120658875, 0.40602052211761475, -0.15469367802143097, -0.7617332935333252, 0.09143079072237015, -0.3129943311214447, 0.19136548042297363, 0.04221309721469879, -0.2405436784029007, -0.567829430103302, 0.3586701452732086, -0.5314357280731201, 1.1866450309753418, 0.26853543519973755, -0.8056480288505554, 0.24559566378593445, -0.5537201166152954, -0.24983152747154236, -0.21445773541927338, -0.06869164854288101, -1.0904511213302612, 0.00407401705160737, 0.21263936161994934, 0.7403082251548767, -0.32586461305618286, 0.014507932588458061, -0.6261999011039734, -0.25604248046875, 0.4222242832183838, -0.09883635491132736, 1.049199104309082, 0.17524731159210205, -0.45729532837867737, 0.2222357988357544, -0.6101658344268799, 0.15279097855091095, 0.6438243389129639, -0.21179968118667603, -0.014721281826496124, -0.6187582015991211, 0.13804341852664948, 0.3305443227291107, 0.16125278174877167, -0.4801110029220581, 0.16866637766361237, -0.217891663312912, 0.552947461605072, 0.7617763876914978, -0.10262834280729294, 0.25979968905448914, -0.4275601804256439, 0.34461599588394165, 0.2920370101928711, 0.2829478979110718, -0.17166686058044434, -0.46112242341041565, -0.9198750853538513, -0.49086540937423706, 0.37803253531455994, 0.3799929618835449, -0.4694593846797943, 0.48972126841545105, -0.142939031124115, -0.7062552571296692, -0.48809972405433655, 0.07362201809883118, 0.49985817074775696, 0.5592953562736511, 0.3705295920372009, -0.5774820446968079, -0.57652348279953, -0.9517342448234558, 0.023250829428434372, 0.06151478365063667, 0.12044461071491241, 0.4383040964603424, 0.7163704633712769, -0.09845765680074692, 0.6387428641319275, -0.34568777680397034, -0.29211288690567017, -0.2962133288383484, 0.11744078993797302, 0.442510724067688, 0.7749136090278625, 0.7571462392807007, -0.5893984436988831, -0.5211377143859863, -0.12517569959163666, -0.8756786584854126, 0.1077808141708374, -0.16181352734565735, -0.12825527787208557, 0.3836907744407654, 0.18581648170948029, -0.4954710900783539, 0.6454358696937561, 0.19202689826488495, -0.14706198871135712, 0.4079940915107727, -0.20488211512565613, 0.23396320641040802, -1.1499426364898682, 0.14832940697669983, 0.38888034224510193, -0.23528322577476501, -0.4189712703227997, 0.07175271213054657, 0.06476126611232758, -0.14638517796993256, -0.5001559853553772, 0.6661146879196167, -0.5626593828201294, -0.253791481256485, -0.11628664284944534, -0.2094145119190216, -0.03395230695605278, 0.8752214908599854, 0.008768249303102493, 0.46135103702545166, 0.7560442686080933, -0.4908319413661957, 0.4408119320869446, 0.2784034013748169, -0.1346486508846283, 0.40733277797698975, -0.7667559385299683, 0.3061451017856598, 0.014983709901571274, 0.1345546990633011, -1.0627433061599731, -0.23547759652137756, 0.4179203510284424, -0.6648879051208496, 0.6446847319602966, -0.47847506403923035, -0.3829415440559387, -0.6324673891067505, -0.47271278500556946, 0.36371859908103943, 0.7537910342216492, -0.7803168892860413, 0.5096262693405151, 0.3007355332374573, 0.3051753044128418, -0.5207718014717102, -0.7879982590675354, -0.19750577211380005, -0.4385976791381836, -0.6531537771224976, 0.2957859933376312, 0.17076116800308228, 0.18762291967868805, 0.08178842812776566, -0.15450690686702728, -0.07435070723295212, -0.09418556094169617, 0.6215008497238159, 0.354422926902771, -0.20042403042316437, -0.06834179162979126, -0.4336693286895752, -0.036015886813402176, -0.006640495266765356, -0.25394344329833984, 0.7128592133522034, -0.2970569431781769, -0.2037642002105713, -0.8593268394470215, -0.08638087660074234, 0.4665786623954773, -0.1501694768667221, 0.6785823702812195, 1.0340696573257446, -0.4897993206977844, -0.03357793390750885, -0.5851724147796631, -0.3114936351776123, -0.5070809125900269, 0.5027219653129578, -0.40083226561546326, -0.4608196020126343, 0.8524607419967651, -0.0773901715874672, -0.055380456149578094, 0.6271661520004272, 0.351371705532074, -0.171476811170578, 0.6985452771186829, 0.6208583116531372, 0.12956491112709045, 0.7806816101074219, -0.9243770837783813, -0.22415940463542938, -0.8778416514396667, -0.46392661333084106, -0.30729955434799194, -0.6828203201293945, -0.6433380842208862, -0.40160855650901794, 0.45338138937950134, 0.09610016644001007, -0.4553925693035126, 0.5738809704780579, -0.8290227055549622, 0.05187102407217026, 0.783065676689148, 0.6264897584915161, -0.4058343768119812, 0.3332711458206177, -0.1752890944480896, -0.057331204414367676, -0.7952216267585754, -0.23756027221679688, 1.057802677154541, 0.5159869194030762, 0.723491370677948, -0.21166656911373138, 0.8203504085540771, -0.10708664357662201, 0.31379568576812744, -0.5584943890571594, 0.6812582015991211, -0.10489819198846817, -0.47753041982650757, -0.19730734825134277, -0.4176618754863739, -1.074998378753662, 0.0009584351792000234, -0.20784161984920502, -0.7821300625801086, 0.0881413072347641, 0.17031587660312653, -0.2373882234096527, 0.6921306848526001, -0.8460791110992432, 0.9662805795669556, -0.23245392739772797, -0.4100574553012848, -0.02571028284728527, -0.7608562111854553, 0.21128670871257782, 0.20865052938461304, -0.31976503133773804, -0.1067226380109787, 0.17530375719070435, 1.070292353630066, -0.6220524311065674, 0.9739974737167358, -0.3801662027835846, 0.4252643287181854, 0.5163512825965881, -0.1545497328042984, 0.34694376587867737, -0.15683302283287048, -0.009124129079282284, 0.4414879083633423, -0.04710178077220917, -0.4421863555908203, -0.5533254742622375, 0.4861418902873993, -1.013527750968933, -0.46422627568244934, -0.36113664507865906, -0.411856085062027, 0.2604397237300873, 0.15737976133823395, 0.5391299724578857, 0.6787028312683105, 0.2600284218788147, 0.20373162627220154, 0.5661658644676208, -0.5387241840362549, 0.41089949011802673, -0.010617660358548164, -0.13455921411514282, -0.5823513269424438, 0.8850843906402588, 0.25901439785957336, 0.12881356477737427, 0.20339247584342957, 0.1533995419740677, -0.30131953954696655, -0.43975505232810974, -0.23721951246261597, 0.412278950214386, -0.6667473316192627, -0.5372925400733948, -0.5785079598426819, -0.5817869901657104, -0.5187569260597229, -0.08005894720554352, -0.5007312297821045, -0.29480433464050293, -0.322709321975708, 0.3143453598022461, 0.7078579664230347, 0.5328215956687927, -0.11834026128053665, 0.5834602117538452, -0.5424840450286865, 0.15573285520076752, 0.1348981410264969, 0.4482136368751526, -0.04746032506227493, -0.9538734555244446, -0.23082473874092102, -0.22080868482589722, -0.47750183939933777, -0.8260882496833801, 0.5233651995658875, 0.10481780022382736, 0.4981188178062439, 0.31731387972831726, -0.21953360736370087, 0.8273418545722961, -0.10895437747240067, 0.45686671137809753, 0.47126540541648865, -0.6325787305831909, 0.6993309855461121, 0.015045426785945892, 0.2199392169713974, 0.05667558312416077, 0.2507396936416626, -0.34289124608039856, -0.0810515359044075, -1.0591140985488892, -0.6791813969612122, 0.9524543285369873, 0.01630978472530842, -0.0625338926911354, 0.2725111246109009, 0.6601101756095886, 0.03947804123163223, 0.05689755827188492, -0.8085874915122986, -0.3877997100353241, -0.27643004059791565, -0.24103587865829468, 0.07014375180006027, -0.04018133506178856, -0.0311909057199955, -0.6091804504394531, 0.6642688512802124, -0.011989663355052471, 0.8145053386688232, 0.374288409948349, -0.09116648137569427, -0.026561113074421883, -0.37285029888153076, 0.3663545250892639, 0.19756096601486206, -0.2918742895126343, 0.1547282189130783, 0.32230380177497864, -0.49989455938339233, 0.06139855459332466, 0.12984788417816162, -0.04844074323773384, -0.01818973384797573, 0.5001426935195923, 0.9309506416320801, -0.061877015978097916, -0.07659395784139633, 0.4231116771697998, 0.018708374351263046, -0.34129825234413147, -0.30816060304641724, 0.1814134418964386, -0.16721582412719727, 0.5488600134849548, 0.18351761996746063, 0.46870627999305725, -0.1437833309173584, -0.2497335970401764, 0.2868316173553467, 0.5477650761604309, -0.29788991808891296, -0.4005817174911499, 0.6887228488922119, -0.1641830950975418, -0.3095557391643524, 0.831742525100708, -0.07808242738246918, -0.5910376906394958, 1.1547917127609253, 0.5227273106575012, 0.9755650162696838, -0.045384276658296585, 0.05297504737973213, 0.7877899408340454, 0.26717284321784973, 0.0728655532002449, 0.24527643620967865, 0.1163661777973175, -0.7555635571479797, 0.12189379334449768, -0.4592926502227783, 0.08956419676542282, 0.46116647124290466, -0.4665941894054413, 0.3907534182071686, -0.814837634563446, -0.5336670279502869, 0.09842536598443985, 0.2855086028575897, -1.0445172786712646, 0.2312496304512024, 0.004580446053296328, 0.8753607869148254, -0.6793866157531738, 0.7100545763969421, 0.9317532181739807, -0.5760546326637268, -0.99692302942276, -0.12296997755765915, -0.00211353600025177, -1.0882676839828491, 0.6236337423324585, 0.5530347228050232, 0.11803428083658218, 0.08002104610204697, -0.8686392307281494, -0.624382734298706, 1.3652592897415161, 0.4860994517803192, -0.1290326714515686, 0.27665531635284424, -0.1481417566537857, 0.24021491408348083, -0.3658592104911804, 0.4581802785396576, 0.177524134516716, 0.2773188352584839, 0.27768802642822266, -0.6547395586967468, 0.2761712372303009, -0.3433137834072113, 0.15281832218170166, 0.17274503409862518, -0.9470599293708801, 0.8649448156356812, -0.5221269130706787, -0.207630917429924, 0.05783672258257866, 0.6598331332206726, 0.2680223286151886, 0.21233224868774414, 0.5193725824356079, 0.8706315159797668, 0.5279940366744995, -0.24180540442466736, 0.8361155986785889, -0.07746479660272598, 0.5786254405975342, 0.7060405611991882, 0.33753132820129395, 0.5551708936691284, 0.3879109025001526, -0.3032067120075226, 0.2547225058078766, 1.0928362607955933, -0.4323924779891968, 0.34240686893463135, 0.20236234366893768, 0.18194185197353363, -0.1968366652727127, 0.037091195583343506, -0.44646570086479187, 0.4938650131225586, 0.11947435885667801, -0.5846318006515503, -0.11956758052110672, 0.06918875128030777, -0.10700632631778717, -0.304571270942688, -0.13745366036891937, 0.5072932839393616, 0.035822793841362, -0.3853704333305359, 0.8110136389732361, 0.025968315079808235, 0.8110093474388123, -0.3410086929798126, 0.06323205679655075, -0.28387919068336487, 0.20167453587055206, -0.22566339373588562, -0.7859084010124207, 0.20927096903324127, -0.25902894139289856, 0.02963903732597828, 0.00925280898809433, 0.8015912175178528, -0.23320813477039337, -0.38809242844581604, 0.21428044140338898, 0.35670071840286255, 0.5807256698608398, 0.07787644118070602, -1.2298779487609863, 0.24266113340854645, -0.007001717574894428, -0.5759438872337341, 0.20529413223266602, 0.47213706374168396, 0.1417934149503708, 0.7911205887794495, 0.4808041453361511, -0.05032284930348396, 0.13743345439434052, -0.11027685552835464, 0.8120673894882202, -0.6214042901992798, -0.30455124378204346, -0.8590489625930786, 0.5158786177635193, -0.2117014229297638, -0.5303338170051575, 0.5359811186790466, 0.5377090573310852, 0.904671847820282, -0.12090104818344116, 0.4968130886554718, -0.27605241537094116, -0.004462164361029863, -0.38988345861434937, 0.5974845290184021, -0.8209652900695801, -0.007793626748025417, -0.21056312322616577, -0.6524528861045837, -0.30724456906318665, 0.74492347240448, -0.3207375705242157, 0.45567771792411804, 0.4558470845222473, 0.9818974733352661, -0.3223009407520294, -0.3842828869819641, 0.20980124175548553, 0.12951625883579254, 0.06622861325740814, 0.5386837124824524, 0.5323665142059326, -0.7715323567390442, 0.35270756483078003, -0.5571479797363281, -0.16073134541511536, -0.24942223727703094, -0.5800784230232239, -1.0976709127426147, -0.9043233394622803, -0.6241640448570251, -0.6439586877822876, -0.12851592898368835, 0.9482269883155823, 1.1254065036773682, -0.6717386841773987, -0.13564527034759521, 0.011334991082549095, 0.15502409636974335, -0.29588618874549866, -0.22749660909175873, 0.5564516186714172, -0.29382336139678955, -0.7425377368927002, -0.36781153082847595, 0.20063267648220062, 0.4520359933376312, 0.028976107016205788, -0.22841008007526398, -0.1474224030971527, -0.24183551967144012, 0.16149389743804932, 0.37318265438079834, -0.7315800786018372, -0.2408078908920288, -0.1095752939581871, -0.1701119840145111, 0.46446195244789124, 0.48260119557380676, -0.5862768888473511, 0.3229450583457947, 0.40578189492225647, 0.4901631474494934, 0.8166154026985168, -0.2829127013683319, 0.036589615046978, -0.8648744225502014, 0.5323166847229004, -0.16473117470741272, 0.5111419558525085, 0.3663083612918854, -0.3325321078300476, 0.6602734327316284, 0.5239599943161011, -0.4725804328918457, -0.827960193157196, -0.02889147959649563, -1.1394386291503906, -0.16872897744178772, 0.8414952158927917, -0.316197007894516, -0.6413449048995972, 0.4504135251045227, -0.08610306680202484, 0.7041518688201904, -0.14410057663917542, 0.6161115169525146, 0.21354052424430847, -0.13580439984798431, -0.7127873301506042, -0.49712949991226196, 0.3395596444606781, 0.2496148645877838, -0.6258445382118225, -0.4176974296569824, 0.007018218748271465, 0.6418822407722473, 0.30877113342285156, 0.5904951691627502, -0.13669051229953766, 0.13920383155345917, 0.05595514550805092, 0.5163413882255554, -0.36594411730766296, -0.2349105179309845, -0.34221988916397095, 0.015136473812162876, -0.14389172196388245, -0.6570211052894592 ]
deepset/sentence_bert
deepset
"2021-05-19T15:34:03Z"
33,842
19
transformers
[ "transformers", "pytorch", "jax", "bert", "license:apache-2.0", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
--- license: apache-2.0 --- This is an upload of the bert-base-nli-stsb-mean-tokens pretrained model from the Sentence Transformers Repo (https://github.com/UKPLab/sentence-transformers)
[ -0.04434312880039215, -0.368272602558136, 0.4521290063858032, 0.24661768972873688, -0.37584546208381653, -0.07589644193649292, -0.039124924689531326, -0.16788996756076813, 0.6554120182991028, 0.9085765480995178, -1.127615213394165, -0.2768862843513489, -0.3313184976577759, -0.07091574370861053, -0.7579224705696106, 1.244782567024231, 0.2302098274230957, 0.6245380640029907, -0.05752906948328018, 0.21245115995407104, -0.5050404071807861, -0.5035077333450317, -0.49949029088020325, -0.2402431219816208, 0.45303991436958313, 0.19532015919685364, 0.740540087223053, 0.08637271821498871, 0.6138874888420105, 0.2331477254629135, -0.06856586039066315, -0.7647731304168701, -0.22104710340499878, -0.34409573674201965, -0.16321402788162231, -0.34802964329719543, -0.485480934381485, 0.1241515576839447, 0.8157517910003662, 0.41896963119506836, -0.3923528492450714, 0.4506886303424835, -0.43395328521728516, 0.4442477822303772, -0.3126656711101532, -0.1161482185125351, -0.46497195959091187, -0.09738130122423172, -0.25680217146873474, 0.2918378710746765, -0.43943488597869873, -0.2784857153892517, 0.2618095576763153, -0.8085688352584839, 0.24644964933395386, 0.06537588685750961, 1.1567469835281372, 0.34057220816612244, -0.47225871682167053, -0.5886688828468323, -0.36767786741256714, 0.7172966599464417, -0.6222983598709106, 0.5009515881538391, -0.0346827395260334, 0.4848574101924896, -0.1991288810968399, -1.142776370048523, -0.5980194807052612, -0.20805399119853973, -0.3757323622703552, 0.18445800244808197, -0.16496555507183075, 0.07073348015546799, 0.1044917106628418, 0.4264276623725891, -0.6518362760543823, 0.012675454840064049, -0.709303617477417, -0.22528308629989624, 0.3307841420173645, -0.20166946947574615, 0.3563590347766876, -0.7272969484329224, -0.3698213994503021, -0.2739826440811157, -0.7507380247116089, -0.09628073126077652, 0.44682857394218445, 0.24096772074699402, -0.47788694500923157, 0.8525539040565491, 0.3647623062133789, 0.7572053670883179, -0.29438668489456177, 0.6975082755088806, 0.610615611076355, -0.38163456320762634, -0.038050588220357895, -0.12930554151535034, 0.3346595764160156, 0.3063209354877472, 0.5166122913360596, -0.0876150131225586, -0.31065744161605835, -0.10786647349596024, 0.6386237740516663, -0.6817184090614319, -0.32916581630706787, 0.1340283453464508, -0.8033488988876343, -0.34168705344200134, 0.45013144612312317, -0.5153633952140808, 0.1537044644355774, -0.43605533242225647, 0.4319126307964325, -0.5353005528450012, -0.1635471135377884, 0.06397431343793869, -0.29896610975265503, 0.09771896153688431, -0.16106486320495605, -0.8114911317825317, 0.16852037608623505, 0.393572062253952, 0.7713890075683594, 0.3176392912864685, -0.43621331453323364, -0.29764607548713684, 0.037004925310611725, -0.0447755791246891, 0.4176420569419861, -0.2770836651325226, -0.5705810785293579, 0.09409315884113312, 0.05649302527308464, -0.07753515243530273, -0.15942375361919403, 0.7201550006866455, -0.6953438520431519, 0.4294586181640625, -0.0694279819726944, -0.7037550210952759, -0.0355345644056797, 0.27621757984161377, -0.8131775259971619, 1.3680425882339478, 0.5313975811004639, -0.745661199092865, 0.2878830134868622, -1.410331130027771, -0.1580195426940918, 0.07285131514072418, -0.07655023783445358, -0.30612850189208984, 0.20203784108161926, 0.08444365859031677, 0.3430750072002411, 0.09542275220155716, 0.5070992112159729, -0.14127594232559204, -0.35834378004074097, 0.5203495621681213, 0.023377276957035065, 1.1674748659133911, 0.5645990967750549, 0.09085686504840851, 0.5163449645042419, -1.2632865905761719, 0.027544081211090088, 0.13947951793670654, -0.3338262736797333, -0.3045819103717804, 0.09077823162078857, 0.1934533268213272, 0.2111281305551529, 0.49406588077545166, -0.776762068271637, 0.27051445841789246, -0.29838353395462036, 0.7944437861442566, 0.7462133765220642, -0.16322532296180725, 0.30798545479774475, -0.2619786858558655, 0.13394148647785187, 0.2020968496799469, 0.5203038454055786, -0.10280214250087738, -0.38455885648727417, -0.7455368041992188, -0.44658583402633667, 0.6484438180923462, 0.40387895703315735, -0.5536313652992249, 0.894389808177948, -0.3322319984436035, -0.49881845712661743, -0.5170919895172119, -0.03649524226784706, 0.10761848092079163, 0.09956569969654083, 0.352213978767395, -0.3020574450492859, -1.0464431047439575, -1.0626468658447266, 0.19593220949172974, -0.5749483704566956, -0.44322651624679565, -0.01760527864098549, 0.9871817231178284, -0.5556080937385559, 1.0837950706481934, -0.5214647650718689, -0.09179938584566116, -0.4476362466812134, 0.4783576726913452, 0.517683744430542, 0.8673492074012756, 1.1410038471221924, -0.4458843469619751, -0.05016958713531494, -0.7604646682739258, -0.22015365958213806, -0.19062744081020355, -0.14887915551662445, -0.383890300989151, -0.337882936000824, 0.5066080689430237, -0.9718562364578247, 0.22628886997699738, 0.6264784932136536, -0.6054693460464478, 0.6677331924438477, -0.18833285570144653, 0.06335391849279404, -1.6122499704360962, 0.2583915591239929, -0.20260582864284515, -0.3709094226360321, -0.4190961420536041, 0.21269670128822327, 0.2110179364681244, -0.22212226688861847, -0.5773955583572388, 0.23551441729068756, -0.37217438220977783, -0.24805232882499695, 0.20523808896541595, -0.1108827143907547, -0.29077693819999695, 0.2129032462835312, -0.05400605872273445, 0.9354543685913086, 0.6723327040672302, -0.2857748866081238, 0.32452648878097534, 0.747442901134491, -0.32291147112846375, 0.1427503377199173, -0.9562659859657288, 0.3764280676841736, 0.18361538648605347, 0.17260271310806274, -0.7673499584197998, -0.41937321424484253, 0.07810231298208237, -0.5811269283294678, 0.01857960969209671, 0.04372425749897957, -0.7966139316558838, -0.8483946323394775, -0.23213624954223633, 0.19816404581069946, 0.6453449726104736, -0.7526023387908936, 0.7382889986038208, 0.3309817910194397, -0.18394923210144043, -0.6333087682723999, -0.7548409700393677, -0.008290364407002926, 0.11256250739097595, -0.3493184745311737, 0.40125879645347595, -0.19139860570430756, -0.1310754418373108, 0.18061505258083344, 0.5455480217933655, -0.1561099886894226, -0.04066917672753334, 0.25593963265419006, 0.6807174682617188, -0.3536113202571869, 0.13228066265583038, 0.012365772388875484, 0.19667918980121613, 0.2674100697040558, -0.04611700400710106, 0.7875851988792419, -0.17669828236103058, -0.24845655262470245, -0.29888981580734253, 0.42846429347991943, 0.39753061532974243, 0.1553150862455368, 0.6884788870811462, 0.37484076619148254, -0.26276731491088867, -0.16901913285255432, -0.45812326669692993, -0.3034871220588684, -0.4547707140445709, 0.420002281665802, -0.2603551745414734, -0.8472848534584045, 0.39816048741340637, 0.004834368359297514, 0.021004710346460342, 0.5182384252548218, 0.42558491230010986, -0.3194284439086914, 0.7488201856613159, 0.6242764592170715, -0.25944405794143677, 0.7358284592628479, -0.2757985293865204, -0.1408393532037735, -0.2825237512588501, 0.11838388442993164, -0.6005595326423645, -0.16651135683059692, -0.3613627552986145, -0.19145646691322327, -0.308784544467926, 0.13182586431503296, -0.5538659691810608, 0.5821817517280579, -0.49214157462120056, 0.6880491971969604, 1.149039387702942, 0.24349206686019897, -0.17873072624206543, -0.44008010625839233, -0.11921223253011703, -0.08579934388399124, -0.5104402899742126, -0.6031631827354431, 1.3064229488372803, 0.505689799785614, 0.5871042609214783, 0.06304901093244553, 0.5938892960548401, 0.5907681584358215, 0.38307854533195496, -0.39469486474990845, 0.762133002281189, -0.48349153995513916, -1.1654229164123535, -0.10798715800046921, -0.18769486248493195, -0.82839035987854, -0.3012482523918152, -0.5078586935997009, -0.511768102645874, -0.32530590891838074, 0.05979271978139877, -0.20594272017478943, 0.22863072156906128, -1.0016369819641113, 1.1026993989944458, -0.41193535923957825, 0.7389316558837891, -0.43002191185951233, -1.067099690437317, 0.11841121315956116, 0.012493450194597244, -0.07017382234334946, 0.28988367319107056, 0.5175879001617432, 0.9882887601852417, -0.4408571422100067, 0.9838669896125793, -0.29825523495674133, 0.16360312700271606, 0.5318580269813538, -0.2827971279621124, 0.29235127568244934, -0.16858583688735962, 0.1829521358013153, 0.2503145635128021, -0.08438824117183685, -0.3892771899700165, -0.43403151631355286, 0.21361111104488373, -1.0531922578811646, -0.044843170791864395, -0.35667288303375244, -0.42833411693573, 0.15936380624771118, 0.4953867793083191, 0.17971466481685638, 0.45557624101638794, -0.5658146739006042, 0.40007227659225464, 0.33975890278816223, -0.01261315867304802, 0.48487570881843567, 0.37437307834625244, -0.473727822303772, -0.4239719808101654, 0.5529773235321045, -0.23524442315101624, -0.0755113810300827, 0.4475625455379486, -0.08299574255943298, -0.4915151596069336, -0.8602809309959412, -0.20476818084716797, 0.3745441436767578, -0.7224201560020447, -0.058148834854364395, -0.1768343299627304, -0.5994733572006226, -0.6589432954788208, -0.27183103561401367, -0.30368515849113464, -0.6169030070304871, -0.6780083775520325, -0.5439679026603699, 0.41017946600914, 0.9385396242141724, -0.2619794011116028, 0.8856170177459717, -1.0331982374191284, 0.2854401171207428, 0.3145431876182556, 0.29834482073783875, -0.5357993841171265, -0.5445176959037781, -0.33799001574516296, -0.09735452383756638, -0.28697654604911804, -0.7505700588226318, 0.46123313903808594, 0.035950180143117905, 0.8460314273834229, 0.23704765737056732, -0.262658953666687, 0.45640623569488525, -0.6896155476570129, 1.146687388420105, 0.7120169401168823, -1.1544817686080933, 0.8868255615234375, -0.32543861865997314, 0.18832817673683167, 0.7439202666282654, 0.3998167812824249, -0.23095369338989258, -0.4122212827205658, -0.7132925391197205, -0.82854163646698, 0.5677384734153748, 0.33806902170181274, 0.2984127402305603, -0.2907581329345703, 0.39255884289741516, 0.06346172839403152, 0.2932831645011902, -1.1880544424057007, -0.17877903580665588, -0.7970496416091919, -0.846477210521698, -0.0672009065747261, -0.5253809690475464, -0.06644594669342041, -0.12229327112436295, 0.9442262053489685, 0.06365779787302017, 0.5239647626876831, 0.06348863989114761, -0.7151222229003906, 0.14600062370300293, 0.5290902853012085, 0.5217716097831726, 0.5330474376678467, -0.819015622138977, -0.18592241406440735, 0.06020292267203331, -0.817510724067688, -0.06549860537052155, 0.4156858026981354, -0.11125253140926361, 0.29331398010253906, 0.2881069481372833, 0.9348816275596619, 0.5802541971206665, -0.7045899629592896, 0.7471193075180054, -0.15332868695259094, -0.2829027771949768, -0.7842801809310913, -0.14755746722221375, -0.0538230761885643, 0.26618683338165283, 0.5245735049247742, 0.1865217089653015, 0.09389400482177734, -0.2965715527534485, 0.538598895072937, 0.1054002046585083, -0.5652240514755249, -0.6322492361068726, 0.6614605784416199, 0.6290682554244995, -0.4686294198036194, 1.0568543672561646, -0.16757048666477203, -0.5192803740501404, 0.15469326078891754, 0.5855481624603271, 0.7549014687538147, 0.09441419690847397, 0.39374303817749023, 0.37427395582199097, 0.2678269147872925, 0.05546633154153824, 0.562981903553009, 0.12808412313461304, -0.875943124294281, -0.5560284852981567, -0.5704379081726074, -0.37237659096717834, 0.2376708835363388, -0.8774929046630859, 0.6190725564956665, -0.3051123321056366, -0.37571418285369873, 0.0165647454559803, -0.25207531452178955, -0.464480996131897, 0.510223388671875, 0.4323180019855499, 1.2697207927703857, -0.8104295134544373, 1.0675989389419556, 0.8614970445632935, -0.45805180072784424, -0.7324981689453125, -0.2626364529132843, -0.1970730870962143, -0.8846883773803711, 1.0403828620910645, 0.22879108786582947, 0.05780574306845665, 0.33139529824256897, -0.6612417697906494, -0.8315394520759583, 1.0089925527572632, 0.4182092249393463, -0.6796327829360962, -0.4891538619995117, 0.16912807524204254, 0.5880974531173706, -0.4503924548625946, 0.39745569229125977, 0.37392932176589966, 0.1682802140712738, -0.12490388005971909, -0.6294329166412354, -0.07707953453063965, -0.5587073564529419, 0.033064283430576324, 0.054858796298503876, -0.4397326707839966, 0.8806676268577576, 0.046023622155189514, 0.08420467376708984, 0.47858092188835144, 1.0036932229995728, 0.545876145362854, -0.27618542313575745, 0.9311894774436951, 0.8883681893348694, 0.23968593776226044, -0.21629992127418518, 0.870438814163208, -0.3734647035598755, 0.6037865281105042, 1.2758883237838745, -0.18264326453208923, 1.0348936319351196, 0.7975461483001709, -0.03964930400252342, 1.059389591217041, 0.7104270458221436, -0.30084162950515747, 0.6114633083343506, 0.35697171092033386, 0.18560928106307983, 0.03574376925826073, 0.22995927929878235, -0.22921626269817352, 0.38924458622932434, 0.22281605005264282, -0.45307570695877075, -0.1872391700744629, -0.04629836231470108, -0.39376646280288696, -0.17812588810920715, -0.37813806533813477, 0.5816147327423096, -0.22586144506931305, -0.61444491147995, 0.1291123926639557, -0.4977981746196747, 0.771996796131134, -1.0555120706558228, 0.07990089058876038, 0.39504894614219666, 0.11571724712848663, 0.2980928122997284, -1.042352557182312, 0.5113765001296997, 0.05643056333065033, -0.22185993194580078, -0.475068062543869, 0.811992883682251, -0.17867988348007202, -0.6390279531478882, 0.5293528437614441, 0.2818446159362793, 0.20835281908512115, 0.4477905035018921, -1.2940030097961426, -0.39720770716667175, -0.08903559297323227, -0.5109872817993164, -0.04986259713768959, 0.062483564019203186, 0.11647165566682816, 0.33263030648231506, 0.5029078722000122, 0.2212766855955124, 0.2998127341270447, 0.8342212438583374, 0.8287712335586548, -0.885132372379303, -0.7258614897727966, -0.42940792441368103, 0.9108011722564697, -0.41789838671684265, -0.7022079825401306, 0.5152239203453064, 0.7247841358184814, 0.8294627666473389, -0.8139716386795044, 0.44417351484298706, -0.2830551862716675, 0.8637326955795288, -0.7184536457061768, 0.8140724897384644, -0.33517739176750183, -0.22460566461086273, -0.15149451792240143, -0.7553882002830505, -0.4002078175544739, 0.605046272277832, -0.03606201708316803, -0.10804149508476257, 0.7949694395065308, 0.7498776912689209, -0.017039915546774864, 0.14707204699516296, 0.10889869183301926, 0.2759232819080353, -0.02412165142595768, 0.02443600445985794, 1.197684407234192, -0.3678235709667206, 0.5628098249435425, -0.09148675948381424, 0.013672715052962303, -0.0032885761465877295, -0.9116544127464294, -1.1137433052062988, -0.5879894495010376, -0.22849808633327484, -0.3922637104988098, 0.09627263247966766, 1.2222402095794678, 0.9702059626579285, -1.2392293214797974, -0.336941659450531, -0.5988560318946838, -0.32366055250167847, 0.14722098410129547, -0.21262143552303314, 0.29347550868988037, -0.43293672800064087, -0.6049290299415588, 0.2965012788772583, -0.26761001348495483, 0.6371654868125916, -0.08691888302564621, 0.06738816946744919, -0.6498750448226929, 0.31551501154899597, 0.40540221333503723, -0.19041535258293152, -0.40897348523139954, -0.6590602397918701, 0.19987517595291138, -0.06554080545902252, -0.0637679249048233, 1.1485505104064941, -0.3682097792625427, 0.03595461696386337, 0.2712896168231964, 0.36900126934051514, 0.4990495443344116, -0.048829518258571625, 0.7253721952438354, -1.3962982892990112, 0.30387282371520996, 0.048129089176654816, 0.8642544150352478, 0.24726170301437378, -0.2104511559009552, 0.6431952714920044, 0.26785510778427124, -0.49249082803726196, -0.9234387278556824, -0.015352515503764153, -1.408780574798584, -0.4466742277145386, 0.6745176315307617, -0.1421523094177246, -0.5876039266586304, 0.18716801702976227, -0.4196888506412506, 0.5559540390968323, -0.39223846793174744, 0.7984530329704285, 0.8252491354942322, 0.4057901203632355, -0.25606992840766907, -0.21126142144203186, 0.19711780548095703, 0.4526818096637726, -0.6182262897491455, -0.2593916952610016, 0.43852248787879944, 0.14231973886489868, 0.6388393044471741, 0.5718187093734741, -0.17101137340068817, 0.14747487008571625, 0.0388682521879673, 0.5766133069992065, 0.12185899913311005, -0.31113705039024353, -0.22454778850078583, -0.20711764693260193, -0.24457505345344543, -0.41000887751579285 ]
klue/roberta-base
klue
"2023-06-12T12:29:12Z"
33,797
11
transformers
[ "transformers", "pytorch", "safetensors", "roberta", "fill-mask", "korean", "klue", "ko", "arxiv:2105.09680", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:05Z"
--- language: ko tags: - korean - klue mask_token: "[MASK]" widget: - text: 대한민국의 수도는 [MASK] 입니다. --- # KLUE RoBERTa base Pretrained RoBERTa Model on Korean Language. See [Github](https://github.com/KLUE-benchmark/KLUE) and [Paper](https://arxiv.org/abs/2105.09680) for more details. ## How to use _NOTE:_ Use `BertTokenizer` instead of RobertaTokenizer. (`AutoTokenizer` will load `BertTokenizer`) ```python from transformers import AutoModel, AutoTokenizer model = AutoModel.from_pretrained("klue/roberta-base") tokenizer = AutoTokenizer.from_pretrained("klue/roberta-base") ``` ## BibTeX entry and citation info ```bibtex @misc{park2021klue, title={KLUE: Korean Language Understanding Evaluation}, author={Sungjoon Park and Jihyung Moon and Sungdong Kim and Won Ik Cho and Jiyoon Han and Jangwon Park and Chisung Song and Junseong Kim and Yongsook Song and Taehwan Oh and Joohong Lee and Juhyun Oh and Sungwon Lyu and Younghoon Jeong and Inkwon Lee and Sangwoo Seo and Dongjun Lee and Hyunwoo Kim and Myeonghwa Lee and Seongbo Jang and Seungwon Do and Sunkyoung Kim and Kyungtae Lim and Jongwon Lee and Kyumin Park and Jamin Shin and Seonghyun Kim and Lucy Park and Alice Oh and Jungwoo Ha and Kyunghyun Cho}, year={2021}, eprint={2105.09680}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.19704730808734894, -0.41463208198547363, 0.46541187167167664, 0.4390653371810913, -0.3692387342453003, 0.08069383352994919, -0.6378101706504822, -0.20946012437343597, 0.046846989542245865, 0.22761216759681702, -0.3799644410610199, -0.6334183812141418, -0.782063364982605, 0.07502865046262741, 0.0944705605506897, 1.1577783823013306, -0.07850775867700577, 0.5132755637168884, -0.015907762572169304, -0.3066462278366089, -0.2625996470451355, -0.4126148819923401, -0.5771639347076416, -0.6038206219673157, 0.19591453671455383, 0.0738290473818779, 0.4617202877998352, 0.46811771392822266, 0.07995127886533737, 0.34982141852378845, -0.06103510037064552, -0.178111270070076, -0.2822616994380951, 0.11833071708679199, 0.07009877264499664, -0.5403220653533936, -0.5393553376197815, 0.271014541387558, 0.7034791707992554, 0.513608992099762, 0.3399009704589844, 0.468230664730072, -0.09099989384412766, 0.7471717596054077, -0.44279417395591736, 0.41936174035072327, -0.47466641664505005, -0.1434585303068161, -0.12469089031219482, 0.15596634149551392, -0.474999338388443, -0.36748072504997253, 0.23567304015159607, -0.6281462907791138, 0.07585746794939041, -0.26409921050071716, 1.7219210863113403, 0.35804998874664307, -0.5329989194869995, -0.43696269392967224, -0.5199431777000427, 0.9890667796134949, -0.8066731691360474, 0.659597635269165, 0.4928605258464813, 0.32856300473213196, -0.11137446761131287, -0.9307814836502075, -0.6045606732368469, -0.5616975426673889, -0.21455596387386322, 0.25169822573661804, 0.0036915901582688093, -0.10703548043966293, 0.2879195213317871, 0.36477020382881165, -0.8656981587409973, -0.28754299879074097, -0.39481621980667114, -0.15685665607452393, 0.7037571668624878, -0.049580711871385574, 0.2611023485660553, -0.5303791165351868, -0.3065890371799469, -0.5419877767562866, -0.23946356773376465, 0.2029678076505661, 0.4954375922679901, 0.3021257817745209, -0.40569716691970825, 0.38676396012306213, -0.1672278642654419, 0.7958651781082153, 0.23789401352405548, -0.29241979122161865, 0.9895495772361755, -0.5026631355285645, -0.17386354506015778, -0.4579632580280304, 0.9169504046440125, 0.08937346935272217, 0.38090354204177856, -0.19990749657154083, 0.09785553812980652, -0.10044541954994202, -0.01841123029589653, -0.7887151837348938, -0.8905456066131592, 0.25328320264816284, -0.8493103384971619, -0.058755505830049515, 0.34059590101242065, -0.9673216938972473, 0.0879482552409172, -0.5209193229675293, 0.3855140805244446, -0.350527286529541, -0.5327191352844238, -0.09895290434360504, 0.0023016014602035284, 0.29813382029533386, -0.2435985505580902, -0.6912628412246704, 0.11628886312246323, 0.3803066313266754, 0.7718438506126404, -0.04251766577363014, -0.47282785177230835, -0.3382297456264496, -0.2565147280693054, -0.2282043695449829, 0.5605071187019348, -0.2175067812204361, -0.3068428039550781, -0.14865891635417938, 0.4161489009857178, -0.4983642101287842, -0.5521949529647827, 0.7654344439506531, -0.5238960981369019, 0.34174537658691406, 0.16518335044384003, -0.7002764940261841, -0.2637849748134613, 0.17439401149749756, -0.6076304912567139, 1.5402939319610596, 0.5299167633056641, -0.5995357632637024, 0.5537577867507935, -0.5431497693061829, -0.3681927025318146, -0.02111438475549221, -0.07053031027317047, -0.8315081000328064, -0.14472296833992004, 0.159392848610878, 0.2476930469274521, -0.008515960536897182, 0.3690528869628906, -0.30787861347198486, -0.08559632301330566, 0.08005544543266296, -0.1409936547279358, 1.317995309829712, 0.4770636260509491, -0.4550679326057434, 0.30880704522132874, -1.2580459117889404, 0.7611187100410461, 0.1555754840373993, -0.6201018691062927, -0.4258487820625305, -0.4105934202671051, 0.45020854473114014, 0.3381180763244629, 0.48012685775756836, -0.41343751549720764, 0.18878839910030365, -0.44968950748443604, 0.23231548070907593, 0.5095021724700928, -0.25057321786880493, 0.5769832730293274, -0.12560445070266724, 0.7247644066810608, -0.07751015573740005, 0.0736953467130661, -0.17208723723888397, -0.36732226610183716, -0.7452475428581238, -0.5043643116950989, 0.9177777171134949, 0.7096132040023804, -0.7990144491195679, 0.7773393988609314, -0.27059170603752136, -0.8876177072525024, -0.9706017971038818, -0.05530596151947975, 0.6680396199226379, 0.2804701328277588, 0.3896518349647522, 0.1291055679321289, -0.8866952657699585, -0.6922542452812195, -0.49674731492996216, -0.23775659501552582, -0.04281605780124664, 0.7089817523956299, 0.650425374507904, -0.18052586913108826, 0.8091996908187866, -0.5016770958900452, 0.0042021190747618675, -0.02903660759329796, 0.3679191768169403, 0.6707587838172913, 0.8510375618934631, 0.8394994139671326, -0.7190759181976318, -1.3117170333862305, -0.12548862397670746, -0.5622262358665466, -0.3315439820289612, -0.026853691786527634, -0.19509652256965637, 0.6850861310958862, 0.4147226810455322, -0.6621116995811462, 0.4088103473186493, 0.674659788608551, -0.5164636969566345, 0.8647686243057251, -0.31497448682785034, 0.3783062696456909, -1.3572486639022827, 0.29510828852653503, -0.34500449895858765, -0.1350066363811493, -0.6017298102378845, 0.11062611639499664, 0.2694647014141083, -0.04894973337650299, -0.19173777103424072, 0.8697944283485413, -0.7066108584403992, -0.013537360355257988, -0.34228426218032837, 0.18898208439350128, -0.13911962509155273, 0.4925541579723358, 0.03517426922917366, 0.8142727017402649, 0.7615092396736145, -0.6012052893638611, 0.23899269104003906, 0.2641720175743103, -0.5558291673660278, 0.2488255649805069, -0.8222352862358093, 0.27552223205566406, 0.1359407752752304, 0.23123830556869507, -1.2396641969680786, -0.0649842694401741, 0.4543411135673523, -0.8640180230140686, 0.30479028820991516, -0.6863070726394653, -0.4638555347919464, -0.6097738146781921, -0.11136278510093689, 0.5616273283958435, 0.6262055039405823, -0.6466090679168701, 0.8282470107078552, 0.18440356850624084, 0.01624983549118042, -0.5139482617378235, -0.428426057100296, -0.2532006800174713, -0.26316872239112854, -0.6543676257133484, 0.35187020897865295, -0.2627866268157959, 0.09129365533590317, 0.20387400686740875, 0.0379767045378685, -0.16481296718120575, 0.011333025060594082, 0.09170297533273697, 0.45299047231674194, -0.3217860460281372, 0.07343622297048569, -0.4400094449520111, -0.473569393157959, -0.12427361309528351, -0.3681667447090149, 1.1130974292755127, -0.22361597418785095, -0.1426960527896881, -0.4725363552570343, -0.09103255718946457, 0.444863498210907, -0.2473861575126648, 0.7053878307342529, 1.076473355293274, -0.04153311625123024, -0.020894456654787064, -0.3504604399204254, 0.09806394577026367, -0.45252031087875366, 0.7124967575073242, -0.6108970046043396, -0.5574528574943542, 0.7424896955490112, -0.192436084151268, -0.32168251276016235, 0.5794355869293213, 0.7074992656707764, 0.22953234612941742, 1.0259664058685303, 0.39310362935066223, -0.38569703698158264, 0.5938605666160583, -0.4923018515110016, 0.29737725853919983, -1.0372735261917114, -0.04655282199382782, -0.9633629322052002, 0.032496556639671326, -0.9268724918365479, -0.3553750813007355, 0.1987619400024414, 0.37869054079055786, -0.4923902750015259, 0.5982884764671326, -0.5033433437347412, 0.40065768361091614, 0.7501440048217773, -0.08780888468027115, 0.002373680705204606, -0.12433135509490967, -0.28693321347236633, -0.18624471127986908, -0.6388091444969177, -0.5443404912948608, 1.4839266538619995, 0.1968814730644226, 0.7639477252960205, -0.09903685003519058, 0.7787648439407349, -0.11044427007436752, 0.19192282855510712, -0.6277474761009216, 0.38172465562820435, -0.16959364712238312, -0.8259902000427246, -0.23823578655719757, -0.4802139103412628, -1.1178005933761597, 0.3197547495365143, 0.015219279564917088, -0.742461085319519, 0.12810614705085754, -0.025244947522878647, -0.07097288221120834, 0.02465539611876011, -0.5823364853858948, 1.1610866785049438, -0.17095763981342316, 0.13781580328941345, 0.059005651623010635, -0.4755931794643402, 0.20906604826450348, 0.18410848081111908, 0.0673656240105629, -0.11342945694923401, 0.18810249865055084, 0.688227653503418, -0.2797687351703644, 0.596917986869812, -0.5280587673187256, 0.2580990493297577, 0.20284083485603333, -0.13387683033943176, 0.6253944039344788, 0.2539571523666382, -0.0871129035949707, 0.2725856304168701, 0.07486113905906677, -0.6172271370887756, -0.5596763491630554, 0.6200346946716309, -1.1186141967773438, -0.2203608900308609, -0.776962399482727, -0.674015998840332, -0.06561567634344101, 0.5337803363800049, 0.47670185565948486, 0.052021175622940063, 0.04969959333539009, 0.10967650264501572, 0.28078630566596985, -0.0991380512714386, 0.37974604964256287, 0.8499531149864197, -0.43079522252082825, -0.9674931764602661, 0.8830224871635437, 0.18140080571174622, 0.2878336012363434, -0.315483421087265, 0.13644933700561523, -0.4114273190498352, -0.4800639748573303, -0.5248470306396484, 0.4576982259750366, -0.7281875610351562, -0.1255550980567932, -0.716583788394928, -0.46617159247398376, -0.6605312824249268, 0.11776719242334366, -0.4512127637863159, -0.3555319607257843, -0.32745540142059326, 0.19795702397823334, 0.3511202931404114, 0.4414926767349243, -0.13041992485523224, 0.29797056317329407, -0.610565185546875, 0.24554488062858582, -0.09276626259088516, 0.4441486597061157, 0.2532977759838104, -0.8842755556106567, -0.588228702545166, 0.02578405663371086, -0.25740984082221985, -0.5974652767181396, 0.399414598941803, 0.24659208953380585, 0.9964329600334167, 0.09443309903144836, 0.05867321789264679, 0.8396635055541992, -0.5052068829536438, 0.9948715567588806, 0.011307389475405216, -0.9917435646057129, 0.4577247202396393, -0.22644419968128204, 0.37972375750541687, 0.7788088917732239, 0.5817421674728394, -0.6153213977813721, -0.3441159427165985, -0.8643971681594849, -1.3057013750076294, 0.8306496739387512, 0.16818054020404816, -0.008364547044038773, -0.04340117424726486, 0.2710641026496887, -0.043609581887722015, 0.0677160993218422, -1.2461885213851929, -0.6887341141700745, -0.34756916761398315, -0.4125491976737976, 0.004795513581484556, -0.18291953206062317, -0.03337468206882477, -0.5151203274726868, 1.372424602508545, -0.02038554847240448, 0.1797448843717575, 0.3820859491825104, -0.31610068678855896, -0.0896032527089119, -0.052049167454242706, 0.6982305645942688, 0.5413764715194702, -0.17558661103248596, -0.262157678604126, 0.06762965768575668, -0.6208951473236084, 0.12013351917266846, 0.3244231939315796, -0.39809972047805786, 0.3095472753047943, 0.4560411870479584, 0.8155267834663391, 0.3022877871990204, -0.6709766983985901, 0.32385629415512085, 0.03731676563620567, -0.32486245036125183, -0.7474563717842102, -0.06463503837585449, 0.14090430736541748, 0.4375545382499695, 0.4227534532546997, -0.12312828749418259, -0.324695348739624, -0.287939190864563, 0.2742006182670593, 0.31457191705703735, -0.2337527722120285, -0.31633222103118896, 0.6605345606803894, -0.11847435683012009, -0.35495346784591675, 0.6039721369743347, -0.4984477460384369, -0.8513429760932922, 0.8533608913421631, 0.7666391730308533, 1.0506815910339355, -0.2801486849784851, 0.048155881464481354, 0.9940643906593323, 0.051509905606508255, 0.07829230278730392, 0.6470491886138916, 0.0937332883477211, -0.6396813988685608, -0.15897250175476074, -0.7096456289291382, 0.14821431040763855, 0.4954298138618469, -0.8521588444709778, 0.18740803003311157, -0.21564212441444397, -0.3156585991382599, 0.12547634541988373, 0.49696585536003113, -0.6015898585319519, 0.08117501437664032, -0.34655290842056274, 0.7867448329925537, -1.0028356313705444, 1.128506064414978, 0.8915435075759888, -0.6867548823356628, -1.116509199142456, 0.21154223382472992, -0.3223434388637543, -0.6538447141647339, 1.1742557287216187, -0.16308164596557617, 0.3151218295097351, 0.028895394876599312, -0.31191927194595337, -1.355983853340149, 1.1603155136108398, -0.04655604436993599, -0.28451770544052124, 0.3874819576740265, -0.12667366862297058, 0.6277223825454712, -0.5303502678871155, 0.2992013096809387, 0.5682447552680969, 0.8076657652854919, -0.17569778859615326, -1.135732889175415, -0.17350944876670837, -0.5624406337738037, 0.20695053040981293, 0.0250595323741436, -0.8906932473182678, 1.418941855430603, 0.12019553035497665, -0.1634448766708374, 0.6529898643493652, 0.8086661100387573, 0.39665114879608154, 0.39701393246650696, 0.594358503818512, 0.7679544687271118, 0.9342281818389893, -0.16219879686832428, 0.7863355875015259, -0.7135262489318848, 0.937041699886322, 1.4207130670547485, -0.12360872328281403, 0.626308023929596, 0.23223388195037842, -0.6002538800239563, 0.6715092658996582, 0.7488669753074646, -0.6088756918907166, 0.8283685445785522, 0.2801215648651123, -0.1143304854631424, -0.15505735576152802, 0.426619291305542, -0.695892333984375, 0.4689202606678009, -0.13067151606082916, -0.5403894782066345, -0.18047446012496948, 0.17289932072162628, 0.3645525872707367, 0.2374531775712967, -0.0927727073431015, 0.6029544472694397, -0.20343640446662903, -0.707059383392334, 1.0445804595947266, -0.038083720952272415, 0.6711540222167969, -0.6694146990776062, 0.11027364432811737, 0.08207076042890549, 0.32487425208091736, -0.17285528779029846, -0.4813671410083771, 0.036119382828474045, -0.07564634829759598, -0.5707963109016418, 0.28294336795806885, 0.7571589946746826, -0.813041090965271, -0.6889986395835876, 0.5750619173049927, 0.32369428873062134, 0.37683066725730896, 0.3898678719997406, -1.0287824869155884, 0.06667759269475937, 0.1294880211353302, -0.6134977340698242, 0.3076559603214264, 0.5137566328048706, 0.12452953308820724, 0.6118708252906799, 0.8296852707862854, 0.13805189728736877, 0.4279535114765167, 0.18102967739105225, 0.8543923497200012, -0.5344037413597107, -0.657081127166748, -0.7433050870895386, 0.40956297516822815, -0.2652266025543213, -0.7763485908508301, 1.0962650775909424, 0.8768829703330994, 1.1671324968338013, -0.4614226520061493, 0.8814380764961243, -0.41088181734085083, 0.7208044528961182, -0.5132007002830505, 1.1060736179351807, -0.5415183901786804, -0.16414207220077515, -0.3504844009876251, -0.8455609083175659, -0.11737974733114243, 1.036798357963562, -0.3806692957878113, 0.5226845741271973, 0.7515324354171753, 0.7945992350578308, 0.07018138468265533, -0.34421277046203613, 0.14289544522762299, 0.5642328858375549, 0.3878658711910248, 0.34375250339508057, 0.4073813259601593, -0.8982123136520386, 0.6161350011825562, -0.3674682676792145, -0.1980687379837036, -0.22870007157325745, -1.0823211669921875, -1.0853593349456787, -0.8914376497268677, -0.33289065957069397, -0.7465905547142029, -0.04452609270811081, 1.257808804512024, 0.918965220451355, -1.122511863708496, -0.2271915078163147, 0.03457023575901985, 0.09101589769124985, -0.3585478663444519, -0.30887719988822937, 1.0157092809677124, -0.7972885966300964, -1.1122039556503296, 0.2500326335430145, -0.34185701608657837, 0.13599982857704163, 0.006051786243915558, -0.5031519532203674, -0.5281659960746765, -0.18158726394176483, 0.302106648683548, 0.3505425751209259, -0.8400184512138367, -0.1600368171930313, -0.24334701895713806, -0.3117062747478485, 0.11345495283603668, 0.6118198037147522, -0.7073547840118408, 0.4399809241294861, 0.4941757321357727, 0.49469396471977234, 0.6364824175834656, -0.03712198883295059, 0.3200267255306244, -0.5236925482749939, 0.4262188971042633, 0.13103725016117096, 0.28814175724983215, 0.0838099792599678, -0.2075582891702652, 0.8087164163589478, 0.444206565618515, -0.9528975486755371, -0.9684798121452332, -0.011184853501617908, -1.000609040260315, -0.297820121049881, 1.0150904655456543, -0.7291019558906555, -0.4717540740966797, -0.30658963322639465, -0.2059904783964157, 0.4699753522872925, -0.1621614247560501, 0.9389366507530212, 1.0698658227920532, 0.14771169424057007, 0.057859476655721664, -0.7475521564483643, 0.701130747795105, 0.4351540207862854, -0.5868019461631775, 0.03871848061680794, 0.05325702577829361, 0.6640529632568359, 0.2775350511074066, 0.7371571660041809, -0.22178992629051208, 0.44625183939933777, 0.13033455610275269, 0.3537796139717102, -0.29190176725387573, -0.24756231904029846, -0.3701207637786865, -0.33013781905174255, -0.09089110046625137, -0.26761889457702637 ]
EleutherAI/pythia-410m-deduped
EleutherAI
"2023-07-09T16:05:38Z"
33,542
16
transformers
[ "transformers", "pytorch", "safetensors", "gpt_neox", "text-generation", "causal-lm", "pythia", "en", "dataset:EleutherAI/the_pile_deduplicated", "arxiv:2304.01373", "arxiv:2101.00027", "arxiv:2201.07311", "license:apache-2.0", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-02-13T21:27:47Z"
--- language: - en tags: - pytorch - causal-lm - pythia license: apache-2.0 datasets: - EleutherAI/the_pile_deduplicated --- The *Pythia Scaling Suite* is a collection of models developed to facilitate interpretability research [(see paper)](https://arxiv.org/pdf/2304.01373.pdf). It contains two sets of eight models of sizes 70M, 160M, 410M, 1B, 1.4B, 2.8B, 6.9B, and 12B. For each size, there are two models: one trained on the Pile, and one trained on the Pile after the dataset has been globally deduplicated. All 8 model sizes are trained on the exact same data, in the exact same order. We also provide 154 intermediate checkpoints per model, hosted on Hugging Face as branches. The Pythia model suite was designed to promote scientific research on large language models, especially interpretability research. Despite not centering downstream performance as a design goal, we find the models <a href="#evaluations">match or exceed</a> the performance of similar and same-sized models, such as those in the OPT and GPT-Neo suites. <details> <summary style="font-weight:600">Details on previous early release and naming convention.</summary> Previously, we released an early version of the Pythia suite to the public. However, we decided to retrain the model suite to address a few hyperparameter discrepancies. This model card <a href="#changelog">lists the changes</a>; see appendix B in the Pythia paper for further discussion. We found no difference in benchmark performance between the two Pythia versions. The old models are [still available](https://huggingface.co/models?other=pythia_v0), but we suggest the retrained suite if you are just starting to use Pythia.<br> **This is the current release.** Please note that all models in the *Pythia* suite were renamed in January 2023. For clarity, a <a href="#naming-convention-and-parameter-count">table comparing the old and new names</a> is provided in this model card, together with exact parameter counts. </details> <br> # Pythia-410M-deduped ## Model Details - Developed by: [EleutherAI](http://eleuther.ai) - Model type: Transformer-based Language Model - Language: English - Learn more: [Pythia's GitHub repository](https://github.com/EleutherAI/pythia) for training procedure, config files, and details on how to use. [See paper](https://arxiv.org/pdf/2304.01373.pdf) for more evals and implementation details. - Library: [GPT-NeoX](https://github.com/EleutherAI/gpt-neox) - License: Apache 2.0 - Contact: to ask questions about this model, join the [EleutherAI Discord](https://discord.gg/zBGx3azzUn), and post them in `#release-discussion`. Please read the existing *Pythia* documentation before asking about it in the EleutherAI Discord. For general correspondence: [contact@eleuther. ai](mailto:contact@eleuther.ai). <figure> | Pythia model | Non-Embedding Params | Layers | Model Dim | Heads | Batch Size | Learning Rate | Equivalent Models | | -----------: | -------------------: | :----: | :-------: | :---: | :--------: | :-------------------: | :--------------------: | | 70M | 18,915,328 | 6 | 512 | 8 | 2M | 1.0 x 10<sup>-3</sup> | — | | 160M | 85,056,000 | 12 | 768 | 12 | 2M | 6.0 x 10<sup>-4</sup> | GPT-Neo 125M, OPT-125M | | 410M | 302,311,424 | 24 | 1024 | 16 | 2M | 3.0 x 10<sup>-4</sup> | OPT-350M | | 1.0B | 805,736,448 | 16 | 2048 | 8 | 2M | 3.0 x 10<sup>-4</sup> | — | | 1.4B | 1,208,602,624 | 24 | 2048 | 16 | 2M | 2.0 x 10<sup>-4</sup> | GPT-Neo 1.3B, OPT-1.3B | | 2.8B | 2,517,652,480 | 32 | 2560 | 32 | 2M | 1.6 x 10<sup>-4</sup> | GPT-Neo 2.7B, OPT-2.7B | | 6.9B | 6,444,163,072 | 32 | 4096 | 32 | 2M | 1.2 x 10<sup>-4</sup> | OPT-6.7B | | 12B | 11,327,027,200 | 36 | 5120 | 40 | 2M | 1.2 x 10<sup>-4</sup> | — | <figcaption>Engineering details for the <i>Pythia Suite</i>. Deduped and non-deduped models of a given size have the same hyperparameters. “Equivalent” models have <b>exactly</b> the same architecture, and the same number of non-embedding parameters.</figcaption> </figure> ## Uses and Limitations ### Intended Use The primary intended use of Pythia is research on the behavior, functionality, and limitations of large language models. This suite is intended to provide a controlled setting for performing scientific experiments. We also provide 154 checkpoints per model: initial `step0`, 10 log-spaced checkpoints `step{1,2,4...512}`, and 143 evenly-spaced checkpoints from `step1000` to `step143000`. These checkpoints are hosted on Hugging Face as branches. Note that branch `143000` corresponds exactly to the model checkpoint on the `main` branch of each model. You may also further fine-tune and adapt Pythia-410M-deduped for deployment, as long as your use is in accordance with the Apache 2.0 license. Pythia models work with the Hugging Face [Transformers Library](https://huggingface.co/docs/transformers/index). If you decide to use pre-trained Pythia-410M-deduped as a basis for your fine-tuned model, please conduct your own risk and bias assessment. ### Out-of-scope use The Pythia Suite is **not** intended for deployment. It is not a in itself a product and cannot be used for human-facing interactions. For example, the model may generate harmful or offensive text. Please evaluate the risks associated with your particular use case. Pythia models are English-language only, and are not suitable for translation or generating text in other languages. Pythia-410M-deduped has not been fine-tuned for downstream contexts in which language models are commonly deployed, such as writing genre prose, or commercial chatbots. This means XNPythia-410M-dedupedAME will **not** respond to a given prompt the way a product like ChatGPT does. This is because, unlike this model, ChatGPT was fine-tuned using methods such as Reinforcement Learning from Human Feedback (RLHF) to better “follow” human instructions. ### Limitations and biases The core functionality of a large language model is to take a string of text and predict the next token. The token used by the model need not produce the most “accurate” text. Never rely on Pythia-410M-deduped to produce factually accurate output. This model was trained on [the Pile](https://pile.eleuther.ai/), a dataset known to contain profanity and texts that are lewd or otherwise offensive. See [Section 6 of the Pile paper](https://arxiv.org/abs/2101.00027) for a discussion of documented biases with regards to gender, religion, and race. Pythia-410M-deduped may produce socially unacceptable or undesirable text, *even if* the prompt itself does not include anything explicitly offensive. If you plan on using text generated through, for example, the Hosted Inference API, we recommend having a human curate the outputs of this language model before presenting it to other people. Please inform your audience that the text was generated by Pythia-410M-deduped. ### Quickstart Pythia models can be loaded and used via the following code, demonstrated here for the third `pythia-70m-deduped` checkpoint: ```python from transformers import GPTNeoXForCausalLM, AutoTokenizer model = GPTNeoXForCausalLM.from_pretrained( "EleutherAI/pythia-70m-deduped", revision="step3000", cache_dir="./pythia-70m-deduped/step3000", ) tokenizer = AutoTokenizer.from_pretrained( "EleutherAI/pythia-70m-deduped", revision="step3000", cache_dir="./pythia-70m-deduped/step3000", ) inputs = tokenizer("Hello, I am", return_tensors="pt") tokens = model.generate(**inputs) tokenizer.decode(tokens[0]) ``` Revision/branch `step143000` corresponds exactly to the model checkpoint on the `main` branch of each model.<br> For more information on how to use all Pythia models, see [documentation on GitHub](https://github.com/EleutherAI/pythia). ## Training ### Training data Pythia-410M-deduped was trained on the Pile **after the dataset has been globally deduplicated**.<br> [The Pile](https://pile.eleuther.ai/) is a 825GiB general-purpose dataset in English. It was created by EleutherAI specifically for training large language models. It contains texts from 22 diverse sources, roughly broken down into five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl), prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and miscellaneous (e.g. GitHub, Enron Emails). See [the Pile paper](https://arxiv.org/abs/2101.00027) for a breakdown of all data sources, methodology, and a discussion of ethical implications. Consult [the datasheet](https://arxiv.org/abs/2201.07311) for more detailed documentation about the Pile and its component datasets. The Pile can be downloaded from the [official website](https://pile.eleuther.ai/), or from a [community mirror](https://the-eye.eu/public/AI/pile/). ### Training procedure All models were trained on the exact same data, in the exact same order. Each model saw 299,892,736,000 tokens during training, and 143 checkpoints for each model are saved every 2,097,152,000 tokens, spaced evenly throughout training, from `step1000` to `step143000` (which is the same as `main`). In addition, we also provide frequent early checkpoints: `step0` and `step{1,2,4...512}`. This corresponds to training for just under 1 epoch on the Pile for non-deduplicated models, and about 1.5 epochs on the deduplicated Pile. All *Pythia* models trained for 143000 steps at a batch size of 2M (2,097,152 tokens).<br> See [GitHub](https://github.com/EleutherAI/pythia) for more details on training procedure, including [how to reproduce it](https://github.com/EleutherAI/pythia/blob/main/README.md#reproducing-training).<br> Pythia uses the same tokenizer as [GPT-NeoX- 20B](https://huggingface.co/EleutherAI/gpt-neox-20b). ## Evaluations All 16 *Pythia* models were evaluated using the [LM Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness). You can access the results by model and step at `results/json/*` in the [GitHub repository](https://github.com/EleutherAI/pythia/tree/main/results/json/).<br> Expand the sections below to see plots of evaluation results for all Pythia and Pythia-deduped models compared with OPT and BLOOM. <details> <summary>LAMBADA – OpenAI</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/lambada_openai_v1.png" style="width:auto"/> </details> <details> <summary>Physical Interaction: Question Answering (PIQA)</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/piqa_v1.png" style="width:auto"/> </details> <details> <summary>WinoGrande</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/winogrande_v1.png" style="width:auto"/> </details> <details> <summary>AI2 Reasoning Challenge—Easy Set</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/arc_easy_v1.png" style="width:auto"/> </details> <details> <summary>SciQ</summary> <img src="/EleutherAI/pythia-12b/resolve/main/eval_plots/sciq_v1.png" style="width:auto"/> </details> ## Changelog This section compares differences between previously released [Pythia v0](https://huggingface.co/models?other=pythia_v0) and the current models. See Appendix B of the Pythia paper for further discussion of these changes and the motivation behind them. We found that retraining Pythia had no impact on benchmark performance. - All model sizes are now trained with uniform batch size of 2M tokens. Previously, the models of size 160M, 410M, and 1.4B parameters were trained with batch sizes of 4M tokens. - We added checkpoints at initialization (step 0) and steps {1,2,4,8,16,32,64, 128,256,512} in addition to every 1000 training steps. - Flash Attention was used in the new retrained suite. - We remedied a minor inconsistency that existed in the original suite: all models of size 2.8B parameters or smaller had a learning rate (LR) schedule which decayed to a minimum LR of 10% the starting LR rate, but the 6.9B and 12B models all used an LR schedule which decayed to a minimum LR of 0. In the redone training runs, we rectified this inconsistency: all models now were trained with LR decaying to a minimum of 0.1× their maximum LR. ### Naming convention and parameter count *Pythia* models were renamed in January 2023. It is possible that the old naming convention still persists in some documentation by accident. The current naming convention (70M, 160M, etc.) is based on total parameter count. <figure style="width:32em"> | current Pythia suffix | old suffix | total params | non-embedding params | | --------------------: | ---------: | -------------: | -------------------: | | 70M | 19M | 70,426,624 | 18,915,328 | | 160M | 125M | 162,322,944 | 85,056,000 | | 410M | 350M | 405,334,016 | 302,311,424 | | 1B | 800M | 1,011,781,632 | 805,736,448 | | 1.4B | 1.3B | 1,414,647,808 | 1,208,602,624 | | 2.8B | 2.7B | 2,775,208,960 | 2,517,652,480 | | 6.9B | 6.7B | 6,857,302,016 | 6,444,163,072 | | 12B | 13B | 11,846,072,320 | 11,327,027,200 | </figure>
[ -0.35252493619918823, -0.7456909418106079, 0.3374342918395996, 0.04352513328194618, -0.24193571507930756, -0.1703924834728241, -0.22923770546913147, -0.4384591579437256, 0.19164025783538818, 0.1920747458934784, -0.348707914352417, -0.2902425229549408, -0.41934651136398315, -0.02396666258573532, -0.4623105823993683, 1.0991524457931519, -0.12430500984191895, -0.14052462577819824, 0.152330219745636, -0.06137766316533089, -0.054546650499105453, -0.5740477442741394, -0.46244657039642334, -0.381491482257843, 0.6369518637657166, 0.19105985760688782, 0.850616991519928, 0.6172416806221008, 0.15820641815662384, 0.2985137104988098, -0.37975555658340454, -0.08459165692329407, -0.15319019556045532, -0.11474597454071045, -0.054265767335891724, -0.2735092043876648, -0.7332648634910583, 0.02520625852048397, 0.7090474367141724, 0.6784694194793701, -0.19142910838127136, 0.25125762820243835, -0.022610599175095558, 0.3631448447704315, -0.5207259058952332, 0.03548694774508476, -0.3502342104911804, -0.1950407326221466, -0.08144168555736542, 0.14448188245296478, -0.39620885252952576, -0.34818729758262634, 0.4288305938243866, -0.6402058005332947, 0.2608473300933838, 0.10796743631362915, 1.1751214265823364, -0.11482798308134079, -0.4372733235359192, -0.06217850744724274, -0.7283702492713928, 0.7007808089256287, -0.7326520085334778, 0.3527998626232147, 0.2731165885925293, 0.17122115194797516, -0.03067908249795437, -0.8822256922721863, -0.5935272574424744, -0.2089819759130478, -0.12722265720367432, -0.043270036578178406, -0.6393426060676575, 0.03091638907790184, 0.5299006700515747, 0.6531976461410522, -0.8316676020622253, -0.01756088249385357, -0.37672972679138184, -0.32290953397750854, 0.34545859694480896, 0.09212299436330795, 0.4385191798210144, -0.3367658853530884, -0.05111505836248398, -0.38955914974212646, -0.6976937651634216, -0.24446246027946472, 0.5460929274559021, 0.07917658984661102, -0.35956546664237976, 0.5044727325439453, -0.4177477955818176, 0.5989335179328918, -0.09240004420280457, 0.26509106159210205, 0.4302905201911926, -0.18870264291763306, -0.5328737497329712, -0.07316818833351135, 0.9307017922401428, 0.12060271203517914, 0.22787725925445557, -0.010332433506846428, -0.04179565608501434, 0.056809309870004654, 0.042137373238801956, -1.1323435306549072, -0.7958865761756897, 0.236463263630867, -0.38333916664123535, -0.42754772305488586, -0.18210186064243317, -0.9390700459480286, -0.2064107060432434, -0.21218420565128326, 0.5448090434074402, -0.501817524433136, -0.718130350112915, -0.10929229110479355, 0.004710721783339977, 0.209861159324646, 0.35901814699172974, -0.9507628083229065, 0.40960240364074707, 0.4367522597312927, 0.9855779409408569, 0.22863751649856567, -0.5461295247077942, -0.18781611323356628, -0.24636785686016083, -0.12202485650777817, 0.357929527759552, -0.11891425400972366, -0.20047394931316376, -0.13773547112941742, 0.1766880601644516, -0.11580858379602432, -0.37315288186073303, 0.4051177501678467, -0.43314555287361145, 0.26342782378196716, -0.2880716621875763, -0.45408520102500916, -0.3925723731517792, 0.143915057182312, -0.6352902054786682, 0.8432424664497375, 0.2592887282371521, -0.9674680829048157, 0.2459261268377304, -0.22438129782676697, -0.039037346839904785, -0.0297611802816391, 0.19257591664791107, -0.6576219201087952, 0.021700624376535416, 0.32888370752334595, 0.050339821726083755, -0.4191519320011139, 0.2008378952741623, -0.24346040189266205, -0.43368393182754517, 0.19397996366024017, -0.5490542054176331, 0.9461528062820435, 0.1918461173772812, -0.6544176936149597, 0.2702142894268036, -0.6264402270317078, 0.21676477789878845, 0.24080169200897217, -0.39418116211891174, 0.030952930450439453, -0.20144614577293396, 0.35736361145973206, 0.2425403743982315, 0.14227032661437988, -0.3938458561897278, 0.31014636158943176, -0.5086233615875244, 0.73067307472229, 0.7569525241851807, -0.08308502286672592, 0.46613404154777527, -0.4265989065170288, 0.4878458082675934, 0.015776855871081352, 0.16780993342399597, -0.07477331161499023, -0.6003905534744263, -1.0022504329681396, -0.3333938717842102, 0.36120861768722534, 0.32209813594818115, -0.491930216550827, 0.45972540974617004, -0.25536665320396423, -0.8632234930992126, -0.15289083123207092, -0.08389049023389816, 0.42954376339912415, 0.35861796140670776, 0.4357216954231262, -0.16797040402889252, -0.5674623250961304, -0.8655326962471008, -0.20232923328876495, -0.4285799264907837, 0.11448298394680023, 0.18514488637447357, 0.9257091283798218, -0.12877395749092102, 0.5907788872718811, -0.37912362813949585, 0.23806631565093994, -0.36844518780708313, 0.16603553295135498, 0.4377110004425049, 0.6154012084007263, 0.3812400698661804, -0.5506119132041931, -0.3896823525428772, -0.007861069403588772, -0.57467120885849, 0.09727217257022858, 0.03298861160874367, -0.30891016125679016, 0.3307272791862488, 0.09080638736486435, -0.9893103837966919, 0.4649408161640167, 0.6220031976699829, -0.539447546005249, 0.8158403038978577, -0.3220270574092865, -0.0006949942908249795, -1.0760908126831055, 0.29164421558380127, 0.09522231668233871, -0.23040041327476501, -0.5916422605514526, 0.04707011580467224, 0.19364550709724426, -0.19535578787326813, -0.41612622141838074, 0.636905312538147, -0.5500442981719971, -0.14558254182338715, -0.23003758490085602, 0.07649865746498108, -0.025389665737748146, 0.657829999923706, 0.17721758782863617, 0.5425078868865967, 0.7934051752090454, -0.765507161617279, 0.4377799928188324, 0.23337405920028687, -0.3101339042186737, 0.37323811650276184, -0.8836495876312256, 0.1455063372850418, 0.10238741338253021, 0.4152289927005768, -0.6302382349967957, -0.3311958909034729, 0.5367340445518494, -0.5697579383850098, 0.16013653576374054, -0.4153124690055847, -0.5519354343414307, -0.43767616152763367, -0.16881293058395386, 0.6277836561203003, 0.789269208908081, -0.6181704998016357, 0.6542568206787109, 0.04169147089123726, 0.11290862411260605, -0.37745845317840576, -0.5659603476524353, -0.22994203865528107, -0.5309428572654724, -0.6476590633392334, 0.3936607837677002, 0.18398162722587585, -0.19291210174560547, 0.011876947246491909, 0.008248796686530113, 0.11564843356609344, -0.04887177795171738, 0.3139408230781555, 0.35963502526283264, -0.036331336945295334, 0.030670691281557083, -0.16280429065227509, -0.15046252310276031, 0.0074922433122992516, -0.5013498663902283, 0.9967318177223206, -0.2697310745716095, -0.18642282485961914, -0.8010494112968445, 0.003164794761687517, 0.8843197226524353, -0.4254937171936035, 0.8844733834266663, 0.5845390558242798, -0.701707661151886, 0.13301058113574982, -0.35900765657424927, -0.30694323778152466, -0.4463546574115753, 0.6708239316940308, -0.25282585620880127, -0.3601219058036804, 0.6297934055328369, 0.2830387055873871, 0.24667374789714813, 0.5506870746612549, 0.7479889392852783, 0.23856514692306519, 1.217003345489502, 0.4564019441604614, -0.1540096402168274, 0.6412814855575562, -0.5340741276741028, 0.23431526124477386, -1.1289571523666382, -0.17876410484313965, -0.5265408158302307, -0.25792574882507324, -0.9553371071815491, -0.3105901777744293, 0.28988152742385864, 0.22193141281604767, -0.7741811275482178, 0.5720181465148926, -0.5607994794845581, 0.048186566680669785, 0.6639028787612915, 0.22483070194721222, 0.21382246911525726, 0.1957908272743225, 0.0640011578798294, -0.054270192980766296, -0.6582635045051575, -0.3581564724445343, 1.2239259481430054, 0.4729929566383362, 0.6163511276245117, 0.2922522723674774, 0.7363489866256714, -0.15409688651561737, 0.25909075140953064, -0.7178318500518799, 0.4428936541080475, 0.33018264174461365, -0.7422723770141602, -0.19140751659870148, -0.7937977313995361, -0.9618838429450989, 0.4832707941532135, 0.09735569357872009, -1.1285794973373413, 0.24542446434497833, 0.23342616856098175, -0.3789217472076416, 0.510109543800354, -0.6163330674171448, 0.9876125454902649, -0.24019144475460052, -0.46200764179229736, -0.34591764211654663, -0.31428536772727966, 0.2669752538204193, 0.35015514492988586, 0.10915947705507278, 0.08367478102445602, 0.2938448190689087, 0.9995147585868835, -0.6864554286003113, 0.6532016396522522, -0.13453549146652222, 0.13354051113128662, 0.33244258165359497, 0.2808130383491516, 0.6436171531677246, 0.14322268962860107, 0.10769523680210114, -0.03569289669394493, 0.14877000451087952, -0.5419044494628906, -0.3801659345626831, 0.9209697246551514, -1.0998715162277222, -0.3949275016784668, -0.8063250780105591, -0.6078383326530457, 0.09149415791034698, 0.23141121864318848, 0.402878999710083, 0.6663738489151001, -0.0430406779050827, 0.012440088205039501, 0.5903190970420837, -0.5299805402755737, 0.3731902837753296, 0.2520294189453125, -0.4873793125152588, -0.535798192024231, 0.9951592683792114, 0.036855489015579224, 0.3594025671482086, 0.04250970110297203, 0.2305678278207779, -0.40694671869277954, -0.4327657222747803, -0.6118619441986084, 0.5388644933700562, -0.7365224957466125, -0.010807053185999393, -0.7176108360290527, -0.02164306305348873, -0.45786190032958984, 0.10741566866636276, -0.40033257007598877, -0.4062154293060303, -0.23706921935081482, -0.030221691355109215, 0.587124764919281, 0.45674729347229004, 0.08489495515823364, 0.34766918420791626, -0.5683367252349854, -0.011123591102659702, 0.22204077243804932, 0.11225665360689163, 0.13637682795524597, -0.9044950008392334, -0.0982937291264534, 0.1500525325536728, -0.4143233299255371, -1.1294256448745728, 0.5205029249191284, -0.07790010422468185, 0.3727463185787201, 0.06194930523633957, -0.211647167801857, 0.588951051235199, -0.08625912666320801, 0.6476143598556519, 0.15434177219867706, -1.0467215776443481, 0.5182539224624634, -0.48910751938819885, 0.3352493345737457, 0.35638904571533203, 0.3726217448711395, -0.7567833662033081, -0.06802955269813538, -0.99118971824646, -1.0962148904800415, 0.775026261806488, 0.4592321515083313, 0.16287408769130707, 0.08653667569160461, 0.38975539803504944, -0.45506751537323, 0.1506078690290451, -1.0183027982711792, -0.2806690037250519, -0.22305670380592346, -0.07343591004610062, 0.16602693498134613, -0.030119076371192932, 0.055940136313438416, -0.5697798132896423, 1.0175683498382568, 0.05820677801966667, 0.32081231474876404, 0.2873786687850952, -0.3858100175857544, -0.06643770635128021, -0.02362642250955105, 0.1686815619468689, 0.7483659386634827, -0.15894313156604767, 0.06844566762447357, 0.20805524289608002, -0.5477025508880615, 0.06831701099872589, 0.1836051195859909, -0.35900139808654785, -0.08372702449560165, 0.16648447513580322, 0.8595234155654907, 0.1298738569021225, -0.4293220043182373, 0.20329752564430237, -0.05529765784740448, -0.05925149470567703, -0.28794124722480774, -0.17061969637870789, 0.19364623725414276, 0.1929839700460434, -0.010727347806096077, -0.16552679240703583, -0.0180806964635849, -0.8760197758674622, 0.06514177471399307, 0.2070215791463852, -0.16419018805027008, -0.4109484851360321, 0.5949354767799377, 0.04789329692721367, -0.18977947533130646, 1.1620844602584839, -0.27565625309944153, -0.6944078803062439, 0.7998450994491577, 0.48969101905822754, 0.7539621591567993, -0.1877448856830597, 0.31881627440452576, 0.8961781859397888, 0.3196316957473755, -0.19690513610839844, 0.11360245943069458, 0.06732819229364395, -0.5400311350822449, -0.12497875839471817, -0.803351104259491, -0.25607267022132874, 0.2466401606798172, -0.6117634773254395, 0.4734097123146057, -0.6266378164291382, -0.06874359399080276, -0.03732394054532051, 0.22146865725517273, -0.5889480710029602, 0.3516311049461365, 0.18748490512371063, 0.7530388236045837, -0.9080206155776978, 0.8704309463500977, 0.6378136873245239, -0.7453080415725708, -1.1151044368743896, -0.0005290149128995836, 0.02607436664402485, -0.46292564272880554, 0.19838327169418335, 0.21748510003089905, 0.19143779575824738, 0.18446168303489685, -0.26642489433288574, -0.8872014284133911, 1.3035897016525269, 0.24010175466537476, -0.6741587519645691, -0.2683637738227844, -0.08891190588474274, 0.5417665839195251, 0.06571373343467712, 0.7102916240692139, 0.7227503657341003, 0.4090847074985504, 0.09272005409002304, -1.0579679012298584, 0.4010438919067383, -0.32199835777282715, -0.07596665620803833, 0.24864408373832703, -0.6910399794578552, 1.3299827575683594, -0.08190549165010452, -0.024791395291686058, 0.42963552474975586, 0.5589753985404968, 0.4316006004810333, -0.1371755450963974, 0.37439391016960144, 0.7886837720870972, 0.8846943378448486, -0.3711755573749542, 1.236128807067871, -0.3108265697956085, 0.7760164737701416, 0.8967921137809753, 0.14418059587478638, 0.522007167339325, 0.4077538847923279, -0.37201789021492004, 0.5342674851417542, 0.8250499963760376, -0.100713349878788, 0.18069830536842346, 0.30474498867988586, -0.29751068353652954, -0.2595791816711426, 0.13367313146591187, -0.6038609147071838, 0.21655915677547455, 0.14217530190944672, -0.6064788699150085, -0.22768181562423706, -0.3286552131175995, 0.37077686190605164, -0.41943204402923584, -0.2260233461856842, 0.2768893837928772, 0.09738390892744064, -0.6592354774475098, 0.6604755520820618, 0.2504226565361023, 0.5669091939926147, -0.4529217481613159, 0.15049666166305542, -0.1599389761686325, 0.3689325749874115, -0.3432426154613495, -0.4399353861808777, 0.10962885618209839, 0.011045915074646473, 0.036253489553928375, 0.0872238278388977, 0.41423261165618896, -0.14596106112003326, -0.5709738731384277, 0.21299082040786743, 0.4798193573951721, 0.2570236027240753, -0.4685424864292145, -0.6762706637382507, 0.09696625173091888, -0.15026171505451202, -0.5552971959114075, 0.42347919940948486, 0.24960863590240479, -0.14974240958690643, 0.5982091426849365, 0.6352792382240295, 0.041153524070978165, -0.004637297708541155, 0.13209876418113708, 1.0011498928070068, -0.5117789506912231, -0.46925148367881775, -0.9437445402145386, 0.5170016288757324, 0.003735082224011421, -0.675579309463501, 0.8769792318344116, 0.5709208250045776, 0.7218156456947327, 0.25927460193634033, 0.6091169714927673, -0.448591411113739, 0.026845188811421394, -0.2757275402545929, 0.6893889904022217, -0.5058242678642273, 0.055875107645988464, -0.5003323554992676, -1.1288678646087646, -0.0716264545917511, 0.9169543385505676, -0.51285719871521, 0.3928404450416565, 0.7759754657745361, 0.8174448013305664, -0.07354795932769775, 0.08446203172206879, 0.06434027850627899, 0.28895682096481323, 0.5425919890403748, 0.9366176128387451, 0.9152860045433044, -0.6905220746994019, 0.5694407820701599, -0.5390167832374573, -0.27859485149383545, -0.15224844217300415, -0.5228403210639954, -0.8433626294136047, -0.45490020513534546, -0.5119328498840332, -0.7225742340087891, -0.05186780169606209, 0.8812801241874695, 0.7604100108146667, -0.6243476867675781, -0.16411606967449188, -0.524921178817749, 0.05697194114327431, -0.2556867301464081, -0.23992832005023956, 0.4295790493488312, 0.15048855543136597, -0.9730885028839111, -0.03566360846161842, -0.1539890617132187, 0.09765901416540146, -0.42478084564208984, -0.2609592080116272, -0.22238685190677643, -0.09566137939691544, 0.07957682758569717, 0.3261328637599945, -0.4999545216560364, -0.24817432463169098, 0.06391584873199463, 0.024610374122858047, 0.008124982006847858, 0.7163019180297852, -0.6085310578346252, 0.1419675648212433, 0.6627872586250305, 0.09512370824813843, 0.808693528175354, -0.2555082440376282, 0.43393757939338684, -0.2745912969112396, 0.3482587933540344, 0.28469523787498474, 0.6596619486808777, 0.3432529866695404, -0.24929602444171906, 0.16632989048957825, 0.405635803937912, -0.7464958429336548, -0.8838009238243103, 0.3552636504173279, -0.742779016494751, -0.1009092852473259, 1.2733477354049683, -0.2837255299091339, -0.3898295760154724, 0.054560959339141846, -0.23215314745903015, 0.5437477827072144, -0.2655748128890991, 0.6766310930252075, 0.6230899691581726, 0.05221960321068764, -0.19959858059883118, -0.622403085231781, 0.36801081895828247, 0.6823642253875732, -0.8389320373535156, 0.387428879737854, 0.6005623936653137, 0.6133244037628174, 0.2567973732948303, 0.5582050681114197, -0.3046562671661377, 0.6065526008605957, 0.0861380398273468, 0.13267667591571808, 0.025352241471409798, -0.4368879199028015, -0.4569307565689087, -0.1522206962108612, 0.22893014550209045, -0.011912204325199127 ]
timm/mobilenetv3_small_075.lamb_in1k
timm
"2023-04-27T22:49:32Z"
33,519
0
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "arxiv:2110.00476", "arxiv:1905.02244", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-16T05:38:29Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k --- # Model card for mobilenetv3_small_075.lamb_in1k A MobileNet-v3 image classification model. Trained on ImageNet-1k in `timm` using recipe template described below. Recipe details: * A LAMB optimizer recipe that is similar to [ResNet Strikes Back](https://arxiv.org/abs/2110.00476) `A2` but 50% longer with EMA weight averaging, no CutMix * RMSProp (TF 1.0 behaviour) optimizer, EMA weight averaging * Step (exponential decay w/ staircase) LR schedule with warmup ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 2.0 - GMACs: 0.0 - Activations (M): 1.3 - Image size: 224 x 224 - **Papers:** - Searching for MobileNetV3: https://arxiv.org/abs/1905.02244 - **Dataset:** ImageNet-1k - **Original:** https://github.com/huggingface/pytorch-image-models ## 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('mobilenetv3_small_075.lamb_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) ``` ### 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( 'mobilenetv3_small_075.lamb_in1k', 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, 16, 112, 112]) # torch.Size([1, 16, 56, 56]) # torch.Size([1, 24, 28, 28]) # torch.Size([1, 40, 14, 14]) # torch.Size([1, 432, 7, 7]) 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( 'mobilenetv3_small_075.lamb_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, 432, 7, 7) 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 @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}} } ``` ```bibtex @inproceedings{howard2019searching, title={Searching for mobilenetv3}, author={Howard, Andrew and Sandler, Mark and Chu, Grace and Chen, Liang-Chieh and Chen, Bo and Tan, Mingxing and Wang, Weijun and Zhu, Yukun and Pang, Ruoming and Vasudevan, Vijay and others}, booktitle={Proceedings of the IEEE/CVF international conference on computer vision}, pages={1314--1324}, year={2019} } ```
[ -0.45781171321868896, -0.3451356589794159, -0.02985597774386406, 0.1681077778339386, -0.352835088968277, -0.43885502219200134, -0.04639527201652527, -0.3328838646411896, 0.3426009714603424, 0.43183237314224243, -0.35274890065193176, -0.7600952982902527, -0.5632866024971008, -0.1591741293668747, -0.09860328584909439, 0.8927866816520691, -0.09608035534620285, -0.07275494933128357, -0.07370749861001968, -0.6401124596595764, -0.2010016292333603, -0.29217204451560974, -0.8822442293167114, -0.4425720274448395, 0.4483030438423157, 0.3132590055465698, 0.5804318785667419, 0.7759358882904053, 0.6074451804161072, 0.43829959630966187, -0.09554902464151382, 0.07185719162225723, -0.0991169810295105, -0.25977247953414917, 0.46829724311828613, -0.6467718482017517, -0.520501971244812, 0.3420580327510834, 0.6156939268112183, 0.25271156430244446, 0.009398416616022587, 0.5192480683326721, 0.0482427179813385, 0.6807593703269958, -0.36376145482063293, 0.009344208985567093, -0.4950996935367584, 0.19449248909950256, -0.17352356016635895, 0.01845386251807213, -0.19981735944747925, -0.48045897483825684, 0.13274188339710236, -0.39574605226516724, 0.408926397562027, 0.03383660316467285, 1.346342921257019, 0.15796050429344177, -0.18792864680290222, -0.014537922106683254, -0.22768957912921906, 0.7976204752922058, -0.8033369779586792, 0.20092061161994934, 0.4413541257381439, 0.14210861921310425, -0.058206845074892044, -0.9239372611045837, -0.6487687230110168, -0.18059679865837097, -0.04577768221497536, 0.0021479546558111906, -0.17958807945251465, -0.1145915538072586, 0.2571413516998291, 0.31447163224220276, -0.49248161911964417, 0.10776412487030029, -0.5866557359695435, -0.24002021551132202, 0.6277848482131958, 0.06685882061719894, 0.3915463387966156, -0.33927011489868164, -0.44595861434936523, -0.3671215772628784, -0.4527669847011566, 0.4351489245891571, 0.2556762397289276, 0.19817683100700378, -0.715258777141571, 0.5355258584022522, 0.08822059631347656, 0.6744041442871094, -0.03989636152982712, -0.42374172806739807, 0.6805446743965149, -0.05806976184248924, -0.43147268891334534, -0.04301217198371887, 1.194899559020996, 0.5588561296463013, 0.11342182755470276, 0.24476200342178345, -0.1015055775642395, -0.39162173867225647, -0.05951115861535072, -1.1909316778182983, -0.21843960881233215, 0.38086429238319397, -0.8896808624267578, -0.5081929564476013, 0.2665480077266693, -0.5496699810028076, -0.15245863795280457, 0.09014769643545151, 0.452602744102478, -0.40875115990638733, -0.3937762379646301, 0.07201274484395981, -0.14733439683914185, 0.42862972617149353, 0.09313496947288513, -0.5791333317756653, 0.17629823088645935, 0.2004254013299942, 1.2744404077529907, 0.11724621802568436, -0.4417574107646942, -0.28212279081344604, -0.2917903959751129, -0.24229000508785248, 0.3982832729816437, -0.0618433952331543, -0.22981557250022888, -0.34294265508651733, 0.3557969927787781, -0.24320518970489502, -0.7775257229804993, 0.38403937220573425, -0.26319167017936707, 0.1805945634841919, 0.024441538378596306, -0.05805527791380882, -0.6188017129898071, 0.28259238600730896, -0.5316255688667297, 1.4083331823349, 0.2457869052886963, -0.8900780081748962, 0.250759482383728, -0.5822848677635193, -0.21855956315994263, -0.42841967940330505, 0.05603279173374176, -1.099935531616211, -0.12388904392719269, 0.24443519115447998, 0.9132537245750427, -0.3843974173069, -0.13373567163944244, -0.5948558449745178, -0.29685720801353455, 0.30103588104248047, 0.15195389091968536, 1.0186678171157837, 0.22511060535907745, -0.5357829928398132, 0.2087078094482422, -0.6664724946022034, 0.2336629182100296, 0.5232923030853271, -0.27742692828178406, -0.11945916712284088, -0.471183717250824, 0.13208962976932526, 0.34111717343330383, 0.04755314439535141, -0.565303385257721, 0.2239045649766922, -0.16313745081424713, 0.5430499315261841, 0.4359923303127289, -0.18839731812477112, 0.37435391545295715, -0.47627517580986023, 0.2599571943283081, 0.30988913774490356, 0.25844913721084595, -0.10319729149341583, -0.6208539605140686, -0.8299658298492432, -0.432145357131958, 0.365647554397583, 0.5193279981613159, -0.47116002440452576, 0.3670186400413513, -0.15383288264274597, -0.8602471351623535, -0.46688517928123474, 0.10310982912778854, 0.5159502029418945, 0.5226477384567261, 0.32502418756484985, -0.491739422082901, -0.5449099540710449, -0.954906165599823, -0.03611116111278534, 0.008770274929702282, 0.005194544326514006, 0.4174624979496002, 0.7145707011222839, -0.1798902451992035, 0.6523243188858032, -0.3321848213672638, -0.31345614790916443, -0.23574554920196533, 0.12644003331661224, 0.4140399098396301, 0.8508728742599487, 0.813443124294281, -0.8376608490943909, -0.46874862909317017, 0.016123421490192413, -0.9609963297843933, 0.1651880145072937, -0.09558471292257309, -0.07346384972333908, 0.26013049483299255, 0.2087932527065277, -0.64119952917099, 0.7290048003196716, 0.26441892981529236, -0.21922382712364197, 0.4117518961429596, -0.09881909191608429, 0.2812199294567108, -1.240885615348816, 0.07869920134544373, 0.5211819410324097, -0.1867201179265976, -0.3903486132621765, -0.006525431759655476, 0.07920034229755402, -0.08793681114912033, -0.6251349449157715, 0.7340896129608154, -0.5397908687591553, -0.2495376020669937, -0.18599508702754974, -0.1002124547958374, -0.0043557193130254745, 0.6336617469787598, -0.16424745321273804, 0.48601898550987244, 0.7044892311096191, -0.6070933938026428, 0.48968878388404846, 0.35531094670295715, -0.14632660150527954, 0.28512412309646606, -0.7496629357337952, 0.15397818386554718, 0.10219903290271759, 0.30523040890693665, -0.8152785301208496, -0.2653903365135193, 0.363156259059906, -0.6437222361564636, 0.3997596800327301, -0.6194929480552673, -0.40611812472343445, -0.6405569314956665, -0.6007387042045593, 0.4606345295906067, 0.6245436072349548, -0.7090531587600708, 0.581351637840271, 0.3097116947174072, 0.33830538392066956, -0.5615285038948059, -0.8165424466133118, -0.28434881567955017, -0.49380114674568176, -0.7903555035591125, 0.48373478651046753, 0.303158700466156, 0.0696866437792778, 0.0628044530749321, -0.17011518776416779, -0.18805111944675446, -0.1561228632926941, 0.676452100276947, 0.3715723752975464, -0.29617106914520264, -0.24598395824432373, -0.4345247447490692, -0.0162008386105299, -0.0195175688713789, -0.3232417106628418, 0.6097738146781921, -0.42630892992019653, -0.06104036793112755, -0.993188202381134, -0.17288684844970703, 0.5462692379951477, -0.14725933969020844, 0.7912657856941223, 1.2046352624893188, -0.48333483934402466, 0.13500027358531952, -0.5079522132873535, -0.1409025639295578, -0.49288031458854675, 0.32532256841659546, -0.4891340732574463, -0.45047155022621155, 0.9737740159034729, 0.04247691109776497, -0.046165261417627335, 0.6840915083885193, 0.3633257746696472, -0.08590440452098846, 0.8698982000350952, 0.5625796914100647, 0.17722617089748383, 0.6879101395606995, -0.8877295851707458, -0.227559432387352, -0.9734591841697693, -0.6204271912574768, -0.4477974474430084, -0.4835950434207916, -0.8108775615692139, -0.412467360496521, 0.4178087115287781, 0.2232908308506012, -0.45812302827835083, 0.5506192445755005, -0.7546455264091492, 0.09976892173290253, 0.7397459149360657, 0.6701241135597229, -0.41226211190223694, 0.2755708396434784, -0.3675285577774048, 0.030355039983987808, -0.7679603099822998, -0.32898440957069397, 1.1346162557601929, 0.4564514756202698, 0.5597347617149353, -0.10978158563375473, 0.7482873201370239, -0.25018632411956787, 0.2861780524253845, -0.6768954396247864, 0.6026239395141602, -0.058777470141649246, -0.3939010202884674, -0.0267268605530262, -0.4644329249858856, -1.0994285345077515, 0.17393215000629425, -0.29652783274650574, -0.8545423746109009, 0.12906457483768463, 0.16749176383018494, -0.26357996463775635, 0.7620745301246643, -0.8491564989089966, 0.9618117809295654, -0.11157821863889694, -0.5548636317253113, 0.1489330232143402, -0.7279154062271118, 0.36732444167137146, 0.2073708474636078, -0.13465282320976257, -0.16118785738945007, 0.14371444284915924, 1.1236737966537476, -0.6766430735588074, 0.7587891221046448, -0.4634231925010681, 0.3900563716888428, 0.591548502445221, -0.09131670743227005, 0.3943271338939667, -0.05357828363776207, -0.22600522637367249, 0.2970985770225525, 0.08522943407297134, -0.5331608653068542, -0.5124979615211487, 0.6517285108566284, -0.9097070693969727, -0.31290873885154724, -0.38231703639030457, -0.3419455289840698, 0.20026974380016327, 0.18183185160160065, 0.5244086980819702, 0.6814842820167542, 0.29109129309654236, 0.31212013959884644, 0.5360269546508789, -0.5062578916549683, 0.5350754261016846, -0.13880585134029388, -0.2887733578681946, -0.5160115957260132, 0.9238440990447998, 0.03576667979359627, 0.009519577026367188, 0.06319673359394073, 0.2362135797739029, -0.34088334441185, -0.6352975964546204, -0.37458285689353943, 0.3172643780708313, -0.5515608191490173, -0.4796392023563385, -0.6081260442733765, -0.42787808179855347, -0.3402266204357147, -0.08319174498319626, -0.5676812529563904, -0.29562240839004517, -0.45915934443473816, 0.330617755651474, 0.6919063329696655, 0.5915880799293518, -0.1332528293132782, 0.6857319474220276, -0.7385823726654053, 0.214116632938385, 0.0586402453482151, 0.4620503783226013, -0.13720755279064178, -0.7958581447601318, -0.2687312066555023, -0.0140589140355587, -0.4907403588294983, -0.6994382739067078, 0.5553165078163147, 0.095475934445858, 0.4115889370441437, 0.33656489849090576, -0.3003236651420593, 0.8106265664100647, -0.033405568450689316, 0.6406786441802979, 0.5459493398666382, -0.6549509167671204, 0.6776412725448608, -0.22857666015625, 0.23985299468040466, 0.08635254949331284, 0.40362805128097534, -0.18644395470619202, 0.11892250925302505, -0.87643963098526, -0.7443990707397461, 0.82834792137146, 0.20144446194171906, -0.04113737866282463, 0.3796118497848511, 0.7198043465614319, -0.09842825680971146, -0.027114560827612877, -0.8723969459533691, -0.4148307740688324, -0.43116939067840576, -0.27189913392066956, 0.20248505473136902, -0.11784355342388153, -0.018527157604694366, -0.7638669610023499, 0.7046573758125305, -0.02328505553305149, 0.7930198907852173, 0.380542129278183, 0.0333930179476738, 0.08766195923089981, -0.4509674906730652, 0.6165650486946106, 0.2647070586681366, -0.4004019498825073, 0.025803497061133385, 0.16343726217746735, -0.6995570659637451, 0.15740960836410522, 0.06842703372240067, 0.08201754838228226, 0.005150628741830587, 0.329533189535141, 0.9072226285934448, -0.05037291720509529, 0.08011122792959213, 0.49142369627952576, -0.12556397914886475, -0.4904156029224396, -0.3014891445636749, 0.14412403106689453, -0.03255340829491615, 0.4394579827785492, 0.4125206172466278, 0.39064821600914, -0.09919500350952148, -0.23037423193454742, 0.24272146821022034, 0.4691656231880188, -0.2922321856021881, -0.3123761713504791, 0.7267670631408691, -0.13010668754577637, -0.2343374788761139, 0.731048047542572, -0.16262714564800262, -0.5237587094306946, 1.104788064956665, 0.4796343147754669, 0.8854627013206482, -0.10296431183815002, 0.07014857232570648, 0.8369712829589844, 0.2783072292804718, -0.10176894068717957, 0.26905035972595215, 0.19912128150463104, -0.7529380321502686, 0.10289284586906433, -0.5556787848472595, 0.11261927336454391, 0.4707232713699341, -0.6485133767127991, 0.3983139991760254, -0.6855229139328003, -0.4966028034687042, 0.25270333886146545, 0.28245529532432556, -0.9315524101257324, 0.31927263736724854, -0.14284026622772217, 0.8945882320404053, -0.5874720811843872, 0.8053114414215088, 0.8966348767280579, -0.4897194504737854, -1.1177406311035156, 0.002780915703624487, 0.10562383383512497, -0.9624946117401123, 0.6935970187187195, 0.5506595969200134, 0.018923994153738022, 0.10143595933914185, -0.8174154162406921, -0.6625513434410095, 1.3927977085113525, 0.3684524893760681, -0.04583718255162239, 0.34302955865859985, -0.14727194607257843, 0.06371726095676422, -0.5124481916427612, 0.5600219368934631, 0.2054702788591385, 0.313429057598114, 0.29474103450775146, -0.8293496966362, 0.2504716217517853, -0.40799498558044434, 0.20408476889133453, 0.19979329407215118, -0.8909752368927002, 0.8197789192199707, -0.5661829113960266, -0.11849351972341537, 0.03948898985981941, 0.6031800508499146, 0.24059724807739258, 0.32322701811790466, 0.4780818223953247, 0.7573832273483276, 0.4968467354774475, -0.24599045515060425, 0.9092724323272705, 0.02911420725286007, 0.5260588526725769, 0.5922703742980957, 0.23874852061271667, 0.6272010803222656, 0.36199691891670227, -0.21522124111652374, 0.42928263545036316, 1.2585164308547974, -0.31454557180404663, 0.2838076651096344, 0.1816953718662262, -0.04050300270318985, 0.005421422887593508, 0.08059027791023254, -0.47532641887664795, 0.735619843006134, 0.17918242514133453, -0.5782010555267334, -0.11404192447662354, 0.06866726279258728, 0.08277479559183121, -0.3705798089504242, -0.2892891764640808, 0.43763503432273865, 0.018170513212680817, -0.33594703674316406, 1.0646002292633057, 0.24101842939853668, 0.8873673677444458, -0.2662581205368042, 0.06937894970178604, -0.2890050411224365, 0.07565439492464066, -0.4560125768184662, -0.6761583089828491, 0.2919224202632904, -0.28950709104537964, -0.04089823737740517, 0.10008617490530014, 0.698047935962677, -0.13357950747013092, -0.37527740001678467, 0.13339686393737793, 0.29227375984191895, 0.5546919107437134, 0.027461230754852295, -1.245141625404358, 0.30940011143684387, 0.13267864286899567, -0.63393235206604, 0.2798095941543579, 0.3152290880680084, 0.05896293744444847, 0.8674478530883789, 0.652590811252594, -0.13593372702598572, 0.1814437359571457, -0.3178548514842987, 0.8532475829124451, -0.7185181975364685, -0.2381964921951294, -0.8829339742660522, 0.6245092153549194, -0.19705288112163544, -0.602383553981781, 0.5642522573471069, 0.7110990881919861, 0.8623881340026855, 0.028948860242962837, 0.5336111187934875, -0.31965371966362, -0.06122434884309769, -0.5219812393188477, 0.6821700930595398, -0.8531508445739746, 0.04560651630163193, -0.0914720669388771, -0.7058388590812683, -0.38471704721450806, 0.8132365942001343, -0.2512812912464142, 0.40448102355003357, 0.5785402655601501, 1.0738900899887085, -0.45025020837783813, -0.19641166925430298, 0.10803262144327164, -0.006833997089415789, -0.06174623221158981, 0.31809109449386597, 0.43365052342414856, -0.9162212610244751, 0.37556180357933044, -0.5662257075309753, -0.2093532830476761, -0.24076497554779053, -0.7616732716560364, -1.0519715547561646, -0.895892322063446, -0.5267807245254517, -0.8260765671730042, -0.22731050848960876, 0.9537178874015808, 1.1725362539291382, -0.5943975448608398, -0.21461941301822662, 0.05969496816396713, 0.23082414269447327, -0.15922890603542328, -0.22994141280651093, 0.5974441766738892, -0.03663910552859306, -0.6972236633300781, -0.22460533678531647, -0.03351115807890892, 0.47527480125427246, 0.15876902639865875, -0.2151128500699997, -0.18272624909877777, -0.3116282820701599, 0.3306218385696411, 0.44877883791923523, -0.6638143062591553, -0.09846919775009155, -0.24844880402088165, -0.21639728546142578, 0.42295312881469727, 0.5745233297348022, -0.49176931381225586, 0.20722782611846924, 0.22046688199043274, 0.3570489287376404, 0.9613099694252014, -0.2830806076526642, 0.08103007078170776, -0.8049784302711487, 0.6626344323158264, -0.17156842350959778, 0.395807147026062, 0.3905493915081024, -0.3043302297592163, 0.6179553270339966, 0.3946816027164459, -0.4398767352104187, -0.9114217162132263, -0.10639691352844238, -1.1448463201522827, -0.040661804378032684, 1.036468505859375, -0.2767554521560669, -0.6075500249862671, 0.3883949816226959, -0.009797381237149239, 0.65578693151474, -0.13703790307044983, 0.4626511335372925, 0.17218266427516937, -0.20895949006080627, -0.6913106441497803, -0.7607754468917847, 0.4826309382915497, 0.12715500593185425, -0.6439579129219055, -0.6056758761405945, -0.05802193656563759, 0.6860363483428955, 0.2163371443748474, 0.5842674374580383, -0.18500739336013794, 0.10871677100658417, 0.06976243853569031, 0.5282624363899231, -0.3856620490550995, 0.01485693920403719, -0.21073922514915466, -0.01641073077917099, -0.2164221853017807, -0.7491224408149719 ]
bhadresh-savani/bert-base-uncased-emotion
bhadresh-savani
"2023-03-22T08:43:48Z"
33,220
18
transformers
[ "transformers", "pytorch", "tf", "jax", "safetensors", "bert", "text-classification", "emotion", "en", "dataset:emotion", "arxiv:1810.04805", "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/bert-base-uncased-emotion results: - task: type: text-classification name: Text Classification dataset: name: emotion type: emotion config: default split: test metrics: - type: accuracy value: 0.9265 name: Accuracy verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMWQzNzA2MTFkY2RkNDMxYTFhOGUzMTdiZTgwODA3ODdmZTVhNTVjOTAwMGM5NjU1OGY0MjMzZWU0OTU2MzY1YiIsInZlcnNpb24iOjF9.f6iWK0iyU8_g32W2oMfh1ChevMsl0StI402cB6DNzJCYj9xywTnFltBY36jAJFDRK41HXdMnPMl64Bynr-Q9CA - type: precision value: 0.8859601677706858 name: Precision Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTc2ZjRmMzYzNTE0ZDQ1ZDdkYWViYWNhZDhkOTE2ZDhmMDFjZmZiZjRkZWVlMzQ3MWE4NDNlYzlmM2I4ZGM2OCIsInZlcnNpb24iOjF9.jR-gFrrBIAfiYV352RDhK3nzgqIgNCPd55OhIcCfVdVAWHQSZSJXhFyg8yChC7DwoVmUQy1Ya-d8Hflp7Wi-AQ - type: precision value: 0.9265 name: Precision Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDAyMWZjZTM5NWNjNTcyMWQzMWQyNDcyN2RlZTQyZTM4ZDQ4Y2FlNzM2OTZkMzM3YzI4YTAwNzg4MGNjZmZjZCIsInZlcnNpb24iOjF9.cmkuDmhhETKIKAL81K28oiO889sZ0hvEpZ6Ep7dW_KB9VOTFs15BzFY9vwcpdXQDugWBbB2g7r3FUgRLwIEpAg - type: precision value: 0.9265082039990273 name: Precision Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMTA2NzY2NTJmZTExZWM3OGIzYzg3ZDM3Y2I5MTU3Mjg3Y2NmZGEyMjFmNjExZWM3ZDFjNzdhOTZkNTYwYWQxYyIsInZlcnNpb24iOjF9.DJgeA6ZovHoxgCqhzilIzafet8uN3-Xbx1ZYcEEc4jXzFbRtErE__QHGaaSaUQEzPp4BAztp1ageOaBoEmXSDg - type: recall value: 0.879224648382427 name: Recall Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZGU3MmQ1Yjg5OGJlYTE1NWJmNGVjY2ExMDZiZjVjYmVkOGYxYWFkOTVlMDVjOWVhZGFjOGFkYzcwMGIyMTAyZCIsInZlcnNpb24iOjF9.jwgaNEBSQENlx3vojBi1WKJOQ7pSuP4Iyw4kKPsq9IUaW-Ah8KdgPV9Nm2DY1cwEtMayvVeIVmQ3Wo8PORDRAg - type: recall value: 0.9265 name: Recall Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNDE3OWQ0ZGZjNzAxY2I0NGMxNDU0OWE1OGM2N2Q3OTUwYWI0NmZjMDQ3MDc0NDA4YTc2NDViM2Y0ZTMyMjYyZCIsInZlcnNpb24iOjF9.Ihc61PSO3K63t5hUSAve4Gt1tC8R_ZruZo492dTD9CsKOF10LkvrCskJJaOATjFJgqb3FFiJ8-nDL9Pa3HF-Dg - type: recall value: 0.9265 name: Recall Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNzJkYTg5YjA0YTBlNDY3ZjFjZWIzOWVhYjI4Y2YxM2FhMmUwMDZlZTE0NTIzNjMxMjE3NzgwNGFjYTkzOWM1YyIsInZlcnNpb24iOjF9.LlBX4xTjKuTX0NPK0jYzYDXRVnUEoUKVwIHfw5xUzaFgtF4wuqaYV7F0VKoOd3JZxzxNgf7JzeLof0qTquE9Cw - type: f1 value: 0.8821398657055098 name: F1 Macro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNTE4OThiMmE0NDEzZjBkY2RmZWNjMGI3YWNmNTFjNTY5NjIwNjFkZjk1ZjIxMjI4M2ZiZGJhYzJmNzVhZTU1NSIsInZlcnNpb24iOjF9.gzYyUbO4ycvP1RXnrKKZH3E8ym0DjwwUFf4Vk9j0wrg2sWIchjmuloZz0SLryGqwHiAV8iKcSBWWy61Q480XAw - type: f1 value: 0.9265 name: F1 Micro verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZGM2Y2E0NjMyNmJhMTE4NjYyMjI2MTJlZjUzNmRmY2U3Yjk3ZGUyYzU2OWYzMWM2ZjY4ZTg0OTliOTY3YmI2MSIsInZlcnNpb24iOjF9.hEz_yExs6LV0RBpFBoUbnAQZHitxN57HodCJpDx0yyW6dQwWaza0JxdO-kBf8JVBK8JyISkNgOYskBY5LD4ZDQ - type: f1 value: 0.9262425173620311 name: F1 Weighted verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZmMyY2NhNTRhOGMwM2M5OTQxNDQ0NjRkZDdiMDExMWFkMmI4MmYwZGQ1OGRiYmRjMmE2YTc0MGZmMWMwN2Q4MSIsInZlcnNpb24iOjF9.ljbb2L4R08NCGjcfuX1878HRilJ_p9qcDJpWhsu-5EqWCco80e9krb7VvIJV0zBfmi7Z3C2qGGRsfsAIhtQ5Dw - type: loss value: 0.17315374314785004 name: loss verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZmQwN2I2Nzg4OWU1ODE5NTBhMTZiMjljMjJhN2JiYmY0MTkzMTA1NmVhMGU0Y2Y0NjgyOTU3ZjgyYTc3ODE5NCIsInZlcnNpb24iOjF9.EEp3Gxm58ab-9335UGQEk-3dFQcMRgJgViI7fpz7mfY2r5Pg-AOel5w4SMzmBM-hiUFwStgxe5he_kG2yPGFCw --- # bert-base-uncased-emotion ## Model description: [Bert](https://arxiv.org/abs/1810.04805) is a Transformer Bidirectional Encoder based Architecture trained on MLM(Mask Language Modeling) objective [bert-base-uncased](https://huggingface.co/bert-base-uncased) finetuned on the emotion dataset using HuggingFace Trainer with below training parameters ``` 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/bert-base-uncased-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.0005138228880241513}, {'label': 'joy', 'score': 0.9972520470619202}, {'label': 'love', 'score': 0.0007443308713845909}, {'label': 'anger', 'score': 0.0007404946954920888}, {'label': 'fear', 'score': 0.00032938539516180754}, {'label': 'surprise', 'score': 0.0004197491507511586} ]] """ ``` ## 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 from distilbert to bert ## Eval results ```json { 'test_accuracy': 0.9405, 'test_f1': 0.9405920712282673, 'test_loss': 0.15769127011299133, 'test_runtime': 10.5179, 'test_samples_per_second': 190.152, 'test_steps_per_second': 3.042 } ``` ## 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.3744089603424072, -0.6433071494102478, 0.10309071093797684, 0.555709719657898, -0.3161374628543854, 0.044920604676008224, -0.44786471128463745, -0.327806293964386, 0.38460758328437805, 0.09351643919944763, -0.8092920780181885, -0.7133344411849976, -0.7723202109336853, -0.14007480442523956, -0.11691171675920486, 1.2233822345733643, -0.004777681548148394, 0.18502022325992584, 0.01766735315322876, -0.14758919179439545, -0.17537575960159302, -0.6606923341751099, -0.5473094582557678, -0.4840322434902191, 0.2644185423851013, 0.13743552565574646, 0.5710287094116211, -0.00886017456650734, 0.5456559062004089, 0.37671542167663574, -0.32713013887405396, -0.22713781893253326, -0.4865684509277344, 0.03289949521422386, 0.37859466671943665, -0.49241775274276733, -0.570704460144043, -0.02688344195485115, 0.46569064259529114, 0.5048297047615051, 0.015773244202136993, 0.26627418398857117, 0.10573970526456833, 0.9040234088897705, -0.34810546040534973, 0.4987821877002716, -0.6101477146148682, 0.19082297384738922, -0.03504396975040436, 0.10522203147411346, -0.5294963121414185, -0.3369910717010498, 0.45345214009284973, -0.13070066273212433, 0.3559792637825012, 0.04252864420413971, 1.3736211061477661, 0.2591995298862457, -0.1814427673816681, -0.2719661593437195, -0.44244492053985596, 1.0672062635421753, -0.983890175819397, 0.3422664403915405, 0.11440825462341309, 0.11118508875370026, 0.0855003371834755, -0.7164950966835022, -0.696311354637146, -0.03495315834879875, -0.21660706400871277, 0.41327211260795593, -0.4900667369365692, -0.0020267011132091284, 0.2133147120475769, 0.37120622396469116, -0.49075546860694885, -0.26092246174812317, -0.24741138517856598, -0.15726284682750702, 0.6723741292953491, 0.053427938371896744, 0.19691242277622223, -0.5579569339752197, -0.46007248759269714, -0.40017226338386536, 0.056808505207300186, 0.5235303044319153, 0.35365036129951477, 0.44448137283325195, -0.47632989287376404, 0.5612235069274902, 0.06875327974557877, 0.3160872161388397, 0.29514530301094055, -0.007846818305552006, 0.9671683311462402, 0.20263326168060303, -0.40660953521728516, 0.11390943825244904, 1.1226445436477661, 0.40671631693840027, 0.36764422059059143, 0.0056307511404156685, -0.18542945384979248, 0.2161417305469513, 0.19588300585746765, -0.8431956768035889, -0.327862948179245, 0.5020869374275208, -0.6681323051452637, -0.3614899516105652, 0.02074369415640831, -1.0177229642868042, -0.016618924215435982, -0.16459757089614868, 0.5365225076675415, -0.8110393285751343, -0.29433226585388184, 0.14084094762802124, -0.150157168507576, 0.15616323053836823, -0.07144375890493393, -0.905404806137085, 0.0729808360338211, 0.3884255588054657, 0.7494194507598877, 0.027657687664031982, -0.1627683937549591, 0.08741234987974167, -0.48643627762794495, -0.057140886783599854, 0.5085192918777466, -0.20841853320598602, -0.30167558789253235, 0.03456275537610054, 0.10192573070526123, -0.16556692123413086, -0.10622616857290268, 0.8991233110427856, -0.38341736793518066, 0.42935094237327576, -0.10676724463701248, -0.5057490468025208, -0.3537426292896271, 0.30030038952827454, -0.5220386981964111, 1.3658335208892822, 0.2584226727485657, -0.9595217704772949, 0.21376822888851166, -0.7554172873497009, -0.28229621052742004, -0.31591829657554626, 0.3664652109146118, -0.6961243748664856, 0.06634701043367386, 0.35236644744873047, 0.6972455382347107, -0.06975536793470383, 0.3014759421348572, -0.3606008291244507, -0.263672798871994, 0.31313616037368774, -0.4359157681465149, 1.15029776096344, 0.060014087706804276, -0.6214743256568909, 0.12206512689590454, -0.9459527730941772, 0.2096729427576065, 0.29456982016563416, -0.2536473870277405, -0.0883905366063118, -0.20819813013076782, 0.2898558974266052, 0.1651180237531662, 0.396047979593277, -0.7278507947921753, 0.08449441939592361, -0.6760223507881165, 0.15557320415973663, 0.8132604360580444, -0.20612724125385284, 0.36663156747817993, -0.14866149425506592, 0.33856356143951416, 0.13147427141666412, 0.25062084197998047, 0.184113547205925, -0.6005270481109619, -1.1430885791778564, -0.4018503427505493, 0.3737045228481293, 0.6465315818786621, -0.41663116216659546, 1.0629242658615112, -0.290592223405838, -0.7779808044433594, -1.0091395378112793, -0.11413087695837021, 0.279020756483078, 0.75958251953125, 0.5938622951507568, -0.23675386607646942, -0.9896315932273865, -0.9530872106552124, -0.003978630993515253, -0.2407226264476776, -0.09893961250782013, 0.20270216464996338, 0.43468549847602844, -0.7086107134819031, 1.1158684492111206, -0.4708515703678131, -0.2661341726779938, -0.3474414050579071, 0.5124465227127075, 0.7136702537536621, 0.4162830710411072, 0.645240068435669, -0.6215340495109558, -0.743216335773468, -0.40712329745292664, -0.8989109992980957, -0.10239487886428833, 0.0057446458376944065, -0.2552714943885803, 0.6565521359443665, -0.11648151278495789, -0.8025916814804077, 0.4153105914592743, 0.5188426375389099, -0.40021926164627075, 0.5168308019638062, -0.06300923228263855, -0.014566833153367043, -1.134698748588562, 0.028740303590893745, 0.14089331030845642, 0.06215427443385124, -0.7315083146095276, -0.3591136038303375, 0.02031029388308525, 0.2016145884990692, -0.4319089651107788, 0.42020678520202637, -0.2938700318336487, 0.11545634269714355, 0.00817614421248436, 0.004433858208358288, 0.019809074699878693, 0.9393087029457092, 0.1188175305724144, 0.2783469259738922, 0.705169677734375, -0.22319594025611877, 0.46088454127311707, 0.6019366979598999, -0.3941388428211212, 0.32785889506340027, -0.6954858899116516, 0.09679928421974182, -0.2881954312324524, 0.24509596824645996, -1.1991021633148193, -0.02457464672625065, 0.24393542110919952, -0.8737776875495911, 0.3930312395095825, -0.020927822217345238, -0.49623075127601624, -0.5939198732376099, -0.5235825181007385, -0.0339224599301815, 0.9944525361061096, -0.5966063737869263, 0.8321682810783386, 0.10639668256044388, -0.024233490228652954, -0.8482473492622375, -0.8936306238174438, -0.20056967437267303, -0.18544185161590576, -0.813406765460968, 0.3370513617992401, -0.3564895987510681, -0.013394000008702278, 0.03457384929060936, 0.0069593158550560474, -0.04553483799099922, -0.16897808015346527, 0.4405571222305298, 0.5810046195983887, -0.056943926960229874, 0.14447779953479767, -0.047994669526815414, -0.12212270498275757, 0.3309427499771118, 0.304513543844223, 0.8648900985717773, -0.5693607330322266, 0.020446524024009705, -0.5059939026832581, 0.04379494860768318, 0.47919222712516785, 0.054331567138433456, 0.9425774216651917, 1.1723393201828003, -0.41441577672958374, -0.09418677538633347, -0.4579448103904724, -0.0874147042632103, -0.5087049007415771, 0.29634761810302734, -0.26329565048217773, -0.6866661906242371, 0.7208587527275085, 0.28089639544487, -0.05188573896884918, 0.8153038620948792, 0.7519167065620422, -0.37072932720184326, 1.1406573057174683, 0.5364515781402588, -0.34328097105026245, 0.40751516819000244, -0.6792203783988953, 0.34518736600875854, -0.9278690814971924, -0.4646059274673462, -0.24125835299491882, -0.5791060328483582, -0.6423758864402771, -0.17818628251552582, 0.31181034445762634, 0.14807802438735962, -0.5613489151000977, 0.28254708647727966, -0.77587890625, 0.02742527611553669, 0.686069667339325, 0.27628448605537415, -0.1949375718832016, -0.006172555964440107, -0.1602811962366104, -0.3799409568309784, -0.4385674297809601, -0.3631817102432251, 1.0722318887710571, 0.7324774265289307, 0.7636205554008484, 0.03473806381225586, 0.702740490436554, 0.2199522852897644, 0.31949713826179504, -0.9715779423713684, 0.5616893768310547, -0.10459072887897491, -0.5861024856567383, -0.23677562177181244, -0.39801907539367676, -0.8640950322151184, 0.09887565672397614, -0.3915599286556244, -0.9287109971046448, 0.1250736266374588, 0.01508432999253273, -0.1978512406349182, 0.367936372756958, -0.8644047975540161, 0.8544318079948425, -0.369310587644577, -0.06816021353006363, 0.23491983115673065, -0.9858046770095825, 0.243553027510643, 0.05473341420292854, -0.02292444556951523, -0.26157256960868835, 0.36433669924736023, 0.884231686592102, -0.27844688296318054, 1.1458163261413574, -0.34147676825523376, 0.17097368836402893, 0.36954280734062195, -0.07018840312957764, 0.5248600244522095, -0.11559004336595535, -0.15326814353466034, 0.47307440638542175, -0.1898450404405594, -0.3854641318321228, -0.452639102935791, 0.5412717461585999, -1.0599968433380127, -0.16883809864521027, -0.6512627005577087, -0.6166759133338928, -0.38194912672042847, 0.10025619715452194, 0.5526096820831299, 0.21366751194000244, -0.03614237904548645, 0.349867045879364, 0.7283284664154053, -0.19294323027133942, 0.6546992063522339, 0.29147589206695557, 0.015560322441160679, -0.4928973317146301, 0.6815887689590454, -0.24850882589817047, -0.03591848164796829, 0.41477930545806885, 0.28027820587158203, -0.5631213784217834, -0.1533391773700714, -0.08972721546888351, 0.29653874039649963, -0.6348716616630554, -0.3901289105415344, -0.8676591515541077, -0.45748504996299744, -0.6530854105949402, -0.2086198627948761, -0.4959043860435486, -0.3720210790634155, -0.4730493426322937, -0.1970730572938919, 0.6935006976127625, 0.33240506052970886, -0.07962626218795776, 0.3832651674747467, -0.9169690012931824, 0.22250977158546448, 0.2053033411502838, 0.5320804119110107, 0.01691494509577751, -0.7614173293113708, -0.07671219110488892, 0.21308422088623047, -0.32564955949783325, -0.8298718333244324, 0.8526744842529297, 0.15469568967819214, 0.4084886312484741, 0.3851950168609619, 0.1712644100189209, 0.7006704807281494, -0.38275420665740967, 0.9492723941802979, 0.43165719509124756, -1.2908926010131836, 0.6765587329864502, -0.15450263023376465, 0.17421093583106995, 0.4014918804168701, 0.495029479265213, -0.5606544017791748, -0.22345483303070068, -0.8764310479164124, -1.2115602493286133, 0.9567424058914185, 0.4276157319545746, 0.20343172550201416, 0.11632918566465378, -0.05598678067326546, -0.031396616250276566, 0.3047066032886505, -1.0413930416107178, -0.669968843460083, -0.5141431093215942, -0.7291576266288757, -0.131587952375412, -0.4973527789115906, -0.020793741568922997, -0.5137634873390198, 0.9346661567687988, 0.07192442566156387, 0.7953455448150635, 0.3135528564453125, -0.004065514076501131, -0.27978184819221497, 0.21151435375213623, 0.32919177412986755, 0.07006659358739853, -0.9606070518493652, -0.22006888687610626, 0.2256474494934082, -0.4574093520641327, -0.11730721592903137, 0.24576537311077118, 0.14456211030483246, 0.3582909405231476, 0.6161428689956665, 1.2187869548797607, 0.14182771742343903, -0.658961296081543, 0.5912765264511108, -0.06630416959524155, -0.38383978605270386, -0.5697866082191467, -0.18528911471366882, 0.0489041730761528, 0.411900132894516, 0.39436104893684387, 0.19794374704360962, 0.03542724624276161, -0.4818047285079956, 0.21822905540466309, 0.32905811071395874, -0.6328105926513672, -0.41992366313934326, 0.6162594556808472, 0.049333300441503525, -0.24221670627593994, 0.7576375603675842, -0.09883927553892136, -0.9199711084365845, 0.6322845816612244, 0.42537838220596313, 1.2249611616134644, -0.006031306926161051, 0.23135288059711456, 0.4943807125091553, 0.27860862016677856, 0.04840483143925667, 0.5062326192855835, 0.17354275286197662, -0.9177989363670349, -0.16713948547840118, -0.8892523050308228, -0.31386837363243103, 0.07134165614843369, -0.8816378712654114, 0.1445755958557129, -0.3603779673576355, -0.32297924160957336, 0.03455223888158798, 0.04525488242506981, -0.7638018131256104, 0.41097694635391235, 0.1647919863462448, 1.0284849405288696, -0.824691116809845, 0.8085692524909973, 0.6280491948127747, -0.4433559477329254, -0.9731216430664062, -0.04883357882499695, -0.16402670741081238, -0.9005272388458252, 0.8085572123527527, 0.28806525468826294, 0.14957618713378906, -0.03510943427681923, -0.6115474700927734, -0.6924789547920227, 1.1342531442642212, 0.14041735231876373, -0.40955477952957153, 0.0763571634888649, 0.13345776498317719, 1.0178667306900024, -0.32349905371665955, 0.500464141368866, 0.6124807596206665, 0.436676025390625, 0.17712071537971497, -0.6443907022476196, -0.13344036042690277, -0.5186204314231873, -0.07159265875816345, 0.2515351176261902, -0.785321831703186, 1.0642808675765991, -0.06373998522758484, 0.006299126893281937, -0.14697720110416412, 0.7297405004501343, 0.2550135850906372, 0.2973614037036896, 0.6500546336174011, 0.8563624620437622, 0.5770420432090759, -0.3855441212654114, 0.8611780405044556, -0.3870525658130646, 1.032914400100708, 0.7926813364028931, -0.07123023271560669, 0.9216063618659973, 0.3761284053325653, -0.37186646461486816, 0.8809328079223633, 0.6971084475517273, -0.2224912941455841, 0.6801023483276367, -0.00839664414525032, -0.1284227818250656, -0.030031805858016014, 0.15916043519973755, -0.3407060205936432, 0.47243326902389526, 0.2754179537296295, -0.4934602677822113, 0.025080885738134384, -0.011036514304578304, 0.17586837708950043, -0.2017851173877716, -0.043958477675914764, 0.4935809373855591, -0.13297364115715027, -0.3654680848121643, 0.7708009481430054, -0.13471367955207825, 1.062415599822998, -0.7172500491142273, 0.1678091287612915, -0.15666666626930237, 0.27719029784202576, -0.20113509893417358, -0.9510902166366577, 0.2848709225654602, 0.15199479460716248, -0.24045130610466003, -0.3297651410102844, 0.724748969078064, -0.48880454897880554, -0.718191921710968, 0.5644508600234985, 0.2334361970424652, 0.09900152683258057, -0.07492727041244507, -1.0620416402816772, 0.10577802360057831, 0.2469978630542755, -0.6855741143226624, -0.08111456781625748, 0.48146578669548035, 0.44633200764656067, 0.6378889083862305, 0.5961269736289978, -0.0312761627137661, 0.026757368817925453, 0.14169389009475708, 0.8916573524475098, -0.8056812882423401, -0.2823149859905243, -0.8614733815193176, 0.9999217391014099, -0.12821732461452484, -0.3756251037120819, 0.6350021958351135, 0.48910048604011536, 0.6162687540054321, -0.29627570509910583, 0.7472996711730957, -0.3891488313674927, 0.6373295187950134, -0.36825090646743774, 0.721770703792572, -0.5483880043029785, -0.02051127515733242, -0.40864983201026917, -0.8062331080436707, -0.2249138504266739, 0.7193514704704285, -0.10328681021928787, 0.17887866497039795, 0.7129708528518677, 0.6148735284805298, 0.14967091381549835, -0.06859864294528961, 0.04552532732486725, 0.49548235535621643, 0.1688445657491684, 0.6843881607055664, 0.4320984482765198, -0.7499484419822693, 0.5866765975952148, -0.7660161256790161, -0.3088946044445038, -0.3181689977645874, -0.8128948211669922, -1.2621318101882935, -0.5929890275001526, -0.15535634756088257, -0.6106906533241272, -0.28727754950523376, 1.102905511856079, 0.5531807541847229, -1.0404713153839111, -0.026994621381163597, 0.04441455006599426, -0.12999433279037476, -0.19110429286956787, -0.3652805685997009, 0.6091629266738892, -0.34393706917762756, -1.0594595670700073, 0.039307549595832825, -0.036982934921979904, 0.1738922894001007, -0.012729921378195286, -0.11896691471338272, -0.23389387130737305, 0.061638716608285904, 0.7169895172119141, -0.021900607272982597, -0.747803270816803, -0.3040965795516968, 0.10663661360740662, -0.15656238794326782, 0.25416961312294006, 0.22344738245010376, -0.5851364731788635, 0.5201499462127686, 0.6035113334655762, 0.45845258235931396, 0.5540873408317566, -0.03198212757706642, 0.16709011793136597, -1.1090528964996338, 0.2342432290315628, 0.39518553018569946, 0.5583163499832153, 0.31336715817451477, -0.46586063504219055, 0.6183916330337524, 0.34553733468055725, -0.5570868849754333, -0.8061285614967346, -0.2636757791042328, -1.5533522367477417, -0.04666771739721298, 1.0447944402694702, -0.054141316562891006, -0.34532833099365234, 0.3799858093261719, -0.34980353713035583, 0.576285719871521, -0.7681847214698792, 1.0736503601074219, 0.8238436579704285, -0.34259462356567383, -0.19173039495944977, -0.24782805144786835, 0.36531317234039307, 0.5595986247062683, -0.6155219674110413, -0.23827335238456726, 0.12049335241317749, 0.17251822352409363, 0.4315964877605438, 0.4633861780166626, 0.07294169068336487, -0.06418242305517197, -0.03420364111661911, 0.7401106953620911, 0.1474306881427765, 0.012309246696531773, -0.3461627662181854, 0.0054495083168148994, -0.37695440649986267, -0.4615213871002197 ]
bhadresh-savani/albert-base-v2-emotion
bhadresh-savani
"2021-09-15T18:03:36Z"
33,190
0
transformers
[ "transformers", "pytorch", "tf", "jax", "albert", "text-classification", "emotion", "en", "dataset:emotion", "arxiv:1909.11942", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2022-03-02T23:29:05Z"
--- language: - en thumbnail: https://avatars3.githubusercontent.com/u/32437151?s=460&u=4ec59abc8d21d5feea3dab323d23a5860e6996a4&v=4 tags: - text-classification - emotion - pytorch license: apache-2.0 datasets: - emotion metrics: - Accuracy, F1 Score --- # Albert-base-v2-emotion ## Model description: [Albert](https://arxiv.org/pdf/1909.11942v6.pdf) is A Lite BERT architecture that has significantly fewer parameters than a traditional BERT architecture. [Albert-base-v2](https://huggingface.co/albert-base-v2) 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/albert-base-v2-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.010403595864772797}, {'label': 'joy', 'score': 0.8902180790901184}, {'label': 'love', 'score': 0.042532723397016525}, {'label': 'anger', 'score': 0.041297927498817444}, {'label': 'fear', 'score': 0.011772023513913155}, {'label': 'surprise', 'score': 0.0037756056990474463} ]] """ ``` ## Dataset: [Twitter-Sentiment-Analysis](https://huggingface.co/nlp/viewer/?dataset=emotion). ## Training procedure [Colab Notebook](https://github.com/bhadreshpsavani/ExploringSentimentalAnalysis/blob/main/SentimentalAnalysisWithDistilbert.ipynb) ## Eval results ```json { 'test_accuracy': 0.936, 'test_f1': 0.9365658988006296, 'test_loss': 0.15278364717960358, 'test_runtime': 10.9413, 'test_samples_per_second': 182.794, 'test_steps_per_second': 2.925 } ``` ## 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.4183277487754822, -0.5224708318710327, 0.12770791351795197, 0.5809542536735535, -0.14920106530189514, -0.026188112795352936, -0.29231324791908264, -0.41009655594825745, 0.32567402720451355, 0.023809188976883888, -0.6999208331108093, -0.6343275308609009, -0.6865598559379578, -0.13980409502983093, -0.03358032926917076, 1.1849076747894287, -0.0987229198217392, 0.17641164362430573, -0.11825022846460342, -0.27250710129737854, -0.19598643481731415, -0.40784814953804016, -0.6657940149307251, -0.5121763348579407, 0.4005219042301178, 0.24670876562595367, 0.5710377097129822, 0.22346451878547668, 0.5888859033584595, 0.3251425325870514, -0.31727227568626404, -0.22896498441696167, -0.49873194098472595, 0.08775477111339569, 0.3384489417076111, -0.6407862305641174, -0.628246545791626, -0.14870497584342957, 0.42920589447021484, 0.4711829423904419, 0.09606724232435226, 0.3655972480773926, 0.009804864414036274, 0.8863310813903809, -0.47975629568099976, 0.6012232899665833, -0.4834594130516052, 0.1254289597272873, -0.010366842150688171, 0.07198657840490341, -0.4616348445415497, -0.22194600105285645, 0.40017467737197876, -0.3357653319835663, 0.27690374851226807, 0.19138912856578827, 1.3314435482025146, 0.2926051616668701, -0.16803056001663208, -0.26248037815093994, -0.4676307737827301, 1.1167656183242798, -0.8184548020362854, 0.3514631688594818, 0.3125993609428406, 0.047377828508615494, 0.2932153046131134, -0.7095720171928406, -0.535089910030365, -0.022918783128261566, -0.27602294087409973, 0.41698694229125977, -0.41034677624702454, -0.1563805192708969, 0.3199310898780823, 0.34328120946884155, -0.6669238805770874, -0.11190269887447357, -0.3228539824485779, -0.11302024126052856, 0.6934764981269836, 0.18333090841770172, 0.044986724853515625, -0.5174573659896851, -0.46845370531082153, -0.4645635187625885, -0.060410868376493454, 0.42832404375076294, 0.34574127197265625, 0.2891971468925476, -0.5174487829208374, 0.505706787109375, -0.11420722305774689, 0.194637730717659, 0.19646009802818298, -0.09682206809520721, 1.0296664237976074, 0.09299203008413315, -0.21238571405410767, 0.06353088468313217, 1.2251964807510376, 0.5302689075469971, 0.2566818296909332, 0.05411633476614952, -0.19283847510814667, 0.14189384877681732, 0.06830858439207077, -1.0135400295257568, -0.38482487201690674, 0.47077348828315735, -0.5849603414535522, -0.3283472955226898, -0.054120682179927826, -0.980021595954895, -0.05438444763422012, -0.19541260600090027, 0.3721877634525299, -0.885442316532135, -0.4243161976337433, 0.030435670167207718, -0.15091674029827118, 0.23241613805294037, -0.007784552406519651, -1.0601134300231934, 0.18351417779922485, 0.4870079457759857, 0.9287200570106506, 0.0843517854809761, -0.18965204060077667, 0.049419376999139786, -0.4525426924228668, -0.24228860437870026, 0.6457971930503845, -0.10014571994543076, -0.3002314567565918, -0.04192301630973816, -0.07457040995359421, 0.018699519336223602, -0.2618584632873535, 0.7468821406364441, -0.36089280247688293, 0.4086107015609741, -0.1619439572095871, -0.43248817324638367, -0.29757148027420044, 0.3071664273738861, -0.5820533037185669, 1.4035543203353882, 0.4658990204334259, -0.9774978160858154, 0.3167697489261627, -0.7086275219917297, -0.235401913523674, -0.22527945041656494, 0.2418496459722519, -0.780070424079895, -0.03189007192850113, 0.1956447958946228, 0.6112644672393799, -0.13815785944461823, 0.06142812594771385, -0.451661080121994, -0.28458473086357117, 0.083711639046669, -0.30134403705596924, 1.0426584482192993, 0.07401590049266815, -0.4635624289512634, 0.017624571919441223, -0.9917054176330566, 0.22604458034038544, 0.32416561245918274, -0.1883063167333603, -0.20583705604076385, -0.19074410200119019, 0.2957054674625397, 0.09354906529188156, 0.34520840644836426, -0.45041516423225403, 0.17697083950042725, -0.6987075209617615, 0.1378004252910614, 0.6363822221755981, -0.15772278606891632, 0.44904202222824097, -0.2828259766101837, 0.34929364919662476, 0.10569140315055847, 0.10410305112600327, 0.11604823172092438, -0.6285690665245056, -1.0285894870758057, -0.4186486303806305, 0.2611122727394104, 0.7590380907058716, -0.4057023227214813, 0.9369609951972961, -0.3962108790874481, -0.8978773355484009, -0.799877941608429, -0.014204886741936207, 0.3542484641075134, 0.7037705183029175, 0.6199368834495544, -0.1457909494638443, -0.9566834568977356, -0.9929898381233215, -0.03390731289982796, -0.4327322542667389, -0.06136586517095566, 0.1561465561389923, 0.5598258972167969, -0.5918439030647278, 1.0656373500823975, -0.3687703013420105, -0.18328160047531128, -0.25209900736808777, 0.543338418006897, 0.626392126083374, 0.4225168526172638, 0.7493129372596741, -0.6527130007743835, -0.7926196455955505, -0.30092382431030273, -0.9445742964744568, -0.09436442703008652, -0.002453755121678114, -0.17278188467025757, 0.47745397686958313, -0.11605185270309448, -0.80682772397995, 0.30269795656204224, 0.41752249002456665, -0.40033331513404846, 0.4933491349220276, 0.07420484721660614, -0.031526725739240646, -1.168677806854248, 0.0239085890352726, 0.27567633986473083, 0.05833745375275612, -0.6790788769721985, -0.3929823338985443, 0.07417085766792297, 0.42701205611228943, -0.5405151844024658, 0.609790027141571, -0.2910311222076416, 0.060692887753248215, 0.035367533564567566, -0.12784187495708466, 0.04086453095078468, 0.7895525693893433, 0.17848986387252808, 0.3543681502342224, 0.7109726667404175, -0.26239013671875, 0.5099077820777893, 0.6670905351638794, -0.43217867612838745, 0.4005507826805115, -0.7018300890922546, 0.04859995096921921, -0.3031502366065979, 0.23774105310440063, -1.146199107170105, -0.20732831954956055, 0.3245527148246765, -0.8363139033317566, 0.39084163308143616, -0.007570423185825348, -0.4989895522594452, -0.4861443340778351, -0.6757852435112, 0.0806870087981224, 0.9430027604103088, -0.4806942343711853, 0.6860076785087585, -0.08501806855201721, -0.05316159501671791, -0.814537525177002, -0.9360695481300354, -0.28555840253829956, -0.26587384939193726, -0.801454484462738, 0.21663787961006165, -0.25093725323677063, -0.16072732210159302, 0.051921501755714417, 0.020847856998443604, 0.002668280154466629, -0.04777947813272476, 0.48765337467193604, 0.5666401982307434, -0.17791840434074402, 0.0889565497636795, -0.01507441233843565, -0.15104718506336212, 0.33068662881851196, 0.42942142486572266, 0.8494616150856018, -0.5532738566398621, 0.1635584682226181, -0.6639289259910583, 0.03712962195277214, 0.531133234500885, 0.10594702512025833, 0.9970210790634155, 1.120768666267395, -0.4168710708618164, -0.10980720072984695, -0.3112746477127075, -0.06495432555675507, -0.48510488867759705, 0.5153457522392273, -0.4377163052558899, -0.6428216695785522, 0.6187375783920288, 0.27292996644973755, -0.022841857746243477, 0.883956789970398, 0.8519030213356018, -0.24075956642627716, 1.2521053552627563, 0.27446433901786804, -0.22640205919742584, 0.5187053084373474, -0.8346239924430847, 0.2507595121860504, -1.0165150165557861, -0.4943811893463135, -0.28369951248168945, -0.4639243483543396, -0.6182126998901367, -0.09753592312335968, 0.22685065865516663, 0.3085710108280182, -0.7246086597442627, 0.36302247643470764, -0.6232761144638062, 0.04329206794500351, 0.6754282116889954, 0.10684365779161453, -0.21331168711185455, 0.02822064235806465, 0.050271015614271164, -0.3317651152610779, -0.44773542881011963, -0.48651251196861267, 1.073918342590332, 0.7841810584068298, 0.7433757781982422, 0.07153365015983582, 0.7291980385780334, 0.13569766283035278, 0.4580077528953552, -1.0462994575500488, 0.4614325165748596, 0.09175816178321838, -0.6391305923461914, -0.15459796786308289, -0.4872886836528778, -0.7928561568260193, 0.16136901080608368, -0.4918747544288635, -0.9596384167671204, 0.04643428698182106, 0.062151215970516205, -0.33614328503608704, 0.248531773686409, -0.9871215224266052, 0.8931767344474792, -0.36074191331863403, -0.3523438274860382, 0.29175493121147156, -0.8767672181129456, 0.38332509994506836, 0.04152795299887657, -0.003098572138696909, -0.24618445336818695, 0.1281227022409439, 0.8942406177520752, -0.2254006713628769, 0.8822612762451172, -0.24535809457302094, 0.2676223814487457, 0.3749639391899109, 0.013379945419728756, 0.5149703621864319, 0.1664213240146637, -0.27336642146110535, 0.4260295033454895, -0.08252821862697601, -0.4159983694553375, -0.47886574268341064, 0.616496741771698, -1.198424220085144, -0.08666832745075226, -0.7005770802497864, -0.5039524435997009, -0.402352511882782, 0.13184770941734314, 0.6142246723175049, 0.21114951372146606, 0.009445942007005215, 0.44258350133895874, 0.6350980997085571, -0.04590276628732681, 0.5321595072746277, 0.19659435749053955, -0.08254506438970566, -0.5643057227134705, 0.6859433054924011, -0.22900764644145966, 0.028322137892246246, 0.4160570502281189, 0.26776283979415894, -0.6066997647285461, -0.26759597659111023, -0.17994558811187744, 0.32900649309158325, -0.5419783592224121, -0.43955931067466736, -0.8418064713478088, -0.3496926426887512, -0.6804872155189514, -0.154069185256958, -0.5590763688087463, -0.30815744400024414, -0.5388845205307007, -0.21745818853378296, 0.6973214149475098, 0.39165639877319336, -0.10770350694656372, 0.4925094544887543, -0.8274714946746826, 0.29189273715019226, 0.1667303889989853, 0.5401222705841064, -0.07038302719593048, -0.6516811847686768, -0.136588454246521, 0.12431346625089645, -0.3964522182941437, -0.7953121662139893, 0.7576841711997986, 0.13309407234191895, 0.21180804073810577, 0.4401991069316864, -0.0003856533148791641, 0.647832989692688, -0.4059349000453949, 0.9841893315315247, 0.6343396902084351, -1.043399691581726, 0.6543170809745789, -0.1899949610233307, 0.09665080159902573, 0.5078880786895752, 0.5468483567237854, -0.4840138852596283, -0.10966093093156815, -0.8786135315895081, -1.221494436264038, 1.0914582014083862, 0.3671518862247467, 0.06180345639586449, 0.16346825659275055, 0.10003258287906647, -0.026794016361236572, 0.21310754120349884, -0.8775068521499634, -0.7336039543151855, -0.48830968141555786, -0.6955137252807617, -0.09985312074422836, -0.4300103485584259, -0.02219056710600853, -0.4269513785839081, 0.9838809370994568, 0.05893705412745476, 0.7264136075973511, 0.21321742236614227, 0.1401459276676178, -0.38490405678749084, 0.020453114062547684, 0.31910866498947144, 0.15826131403446198, -0.9160102009773254, -0.26199400424957275, 0.24992604553699493, -0.4207003712654114, -0.010498534888029099, 0.10874979943037033, -0.012747129425406456, 0.2283550500869751, 0.8024288415908813, 1.3609250783920288, -0.03490475192666054, -0.5720629692077637, 0.6332957744598389, -0.11148808151483536, -0.5279667973518372, -0.6155663132667542, 0.04820476472377777, 0.13995182514190674, 0.4109349548816681, 0.28062722086906433, 0.3314765691757202, 0.09751798957586288, -0.5445012450218201, 0.1883288025856018, 0.2509317696094513, -0.5729466080665588, -0.47762981057167053, 0.7224350571632385, -0.06461986154317856, -0.4415445029735565, 0.684730052947998, -0.2529381811618805, -0.7645208835601807, 0.6342458128929138, 0.3617832660675049, 1.045203685760498, 0.04511865973472595, 0.1538187712430954, 0.712971568107605, 0.15492099523544312, -0.20008528232574463, 0.4526869058609009, 0.21581581234931946, -0.7955157160758972, -0.2630440294742584, -0.7957580089569092, -0.37238043546676636, 0.1973654329776764, -0.8875197172164917, 0.29012101888656616, -0.5002011060714722, -0.26233652234077454, 0.014868710190057755, 0.20440548658370972, -0.8633291125297546, 0.41424164175987244, 0.3455165922641754, 1.0268833637237549, -0.8766986131668091, 0.7245761156082153, 0.7015268206596375, -0.42625880241394043, -1.0507711172103882, -0.18420498073101044, -0.14833416044712067, -0.8371331691741943, 0.7623721957206726, 0.31719955801963806, 0.17557042837142944, -0.06906124204397202, -0.6689653992652893, -0.7952583432197571, 1.3369555473327637, 0.08562127500772476, -0.5140788555145264, 0.05990780144929886, 0.08204058557748795, 0.9674666523933411, -0.21931323409080505, 0.7411644458770752, 0.6301425099372864, 0.47104889154434204, 0.16034629940986633, -0.5671612620353699, -0.1996024250984192, -0.49133822321891785, -0.020134149119257927, 0.1953866332769394, -0.9962345361709595, 1.0412544012069702, 0.028270918875932693, 0.12689109146595, 0.01805618219077587, 0.8805569410324097, 0.4160224199295044, 0.445640504360199, 0.6932449340820312, 0.9102347493171692, 0.5330358147621155, -0.3935765326023102, 0.9397008419036865, -0.31914615631103516, 1.1110399961471558, 0.8381462693214417, -0.1235305666923523, 0.8892949819564819, 0.4247998893260956, -0.4282061457633972, 0.8519273400306702, 0.7089595794677734, -0.15495792031288147, 0.7133899331092834, 0.031868044286966324, -0.09570077061653137, -0.06121091544628143, 0.20039714872837067, -0.36061611771583557, 0.4169614911079407, 0.3116757869720459, -0.371910035610199, 0.06213466450572014, -0.16256064176559448, 0.19545577466487885, -0.22825688123703003, -0.07055933773517609, 0.5220696330070496, -0.07918909192085266, -0.46450063586235046, 0.7084763646125793, -0.16428625583648682, 0.9527509808540344, -0.6669312715530396, 0.0696878582239151, -0.15449807047843933, 0.25327566266059875, -0.30932170152664185, -0.921846330165863, 0.2205991894006729, 0.14367228746414185, -0.22171638906002045, -0.3005382716655731, 0.5696343183517456, -0.3473544120788574, -0.6662480235099792, 0.5125107169151306, 0.31447485089302063, 0.08371621370315552, 0.05005847290158272, -1.0450687408447266, 0.12459148466587067, 0.12261895835399628, -0.9413115978240967, -0.028845764696598053, 0.4313512444496155, 0.4096890687942505, 0.6349179148674011, 0.5118367671966553, 0.0628863275051117, 0.07354046404361725, -0.049417365342378616, 0.7368309497833252, -0.7108737230300903, -0.23747174441814423, -0.8425152897834778, 0.8959434032440186, -0.15466120839118958, -0.6018455624580383, 0.5444169044494629, 0.6977455019950867, 0.7225359082221985, -0.14034001529216766, 0.8839015364646912, -0.44976359605789185, 0.7515026330947876, -0.35809558629989624, 0.5455706715583801, -0.684486448764801, -0.030945781618356705, -0.18280114233493805, -0.9054163098335266, -0.328707754611969, 0.8308603167533875, -0.24984967708587646, 0.16551946103572845, 0.7491209506988525, 0.715632438659668, 0.08779256045818329, -0.11362884938716888, -0.05829458683729172, 0.4534492492675781, 0.26373130083084106, 0.7475640773773193, 0.5792133808135986, -0.8869675397872925, 0.5314772725105286, -0.8017038702964783, -0.23229172825813293, -0.396540105342865, -0.6335965991020203, -1.1861592531204224, -0.5163635015487671, -0.26958510279655457, -0.7139385342597961, -0.3295862674713135, 1.1547813415527344, 0.6293157339096069, -1.015627145767212, 0.03353346139192581, -0.0712868720293045, -0.1539231240749359, -0.16802607476711273, -0.35879677534103394, 0.5713780522346497, -0.26492372155189514, -1.0581852197647095, -0.003726402996107936, -0.09734019637107849, 0.02297930046916008, 0.02089873142540455, -0.32857775688171387, -0.1394888460636139, -0.10097211599349976, 0.5981168746948242, 0.05260012298822403, -0.6342106461524963, -0.3792304992675781, 0.05640983209013939, -0.26341456174850464, 0.3216758966445923, 0.08156759291887283, -0.5730645656585693, 0.3508395254611969, 0.7388383150100708, 0.40262219309806824, 0.6227787733078003, -0.003745126537978649, -0.06481624394655228, -0.8329660296440125, 0.16409358382225037, 0.4477108120918274, 0.5734230279922485, 0.3467335104942322, -0.30723118782043457, 0.6759355068206787, 0.454727441072464, -0.5400798320770264, -0.7768804430961609, -0.17336386442184448, -1.5807842016220093, 0.09591078758239746, 1.2626396417617798, 0.01280851848423481, -0.45089444518089294, 0.45437347888946533, -0.39722222089767456, 0.5650615096092224, -0.7553863525390625, 0.8396068811416626, 0.7552226781845093, -0.3757214844226837, -0.1941722333431244, -0.4154900312423706, 0.3625260293483734, 0.5324584245681763, -0.6130937933921814, -0.35911232233047485, 0.1283838152885437, 0.2689657211303711, 0.4961930811405182, 0.49291539192199707, 0.16353072226047516, 0.058257147669792175, 0.161235049366951, 0.580058217048645, 0.11210868507623672, -0.024330195039510727, -0.30276644229888916, 0.06241203844547272, -0.18528467416763306, -0.3400385081768036 ]
sentence-transformers/msmarco-bert-base-dot-v5
sentence-transformers
"2023-11-02T09:31:35Z"
33,082
11
sentence-transformers
[ "sentence-transformers", "pytorch", "tf", "bert", "feature-extraction", "sentence-similarity", "transformers", "en", "arxiv:1908.10084", "endpoints_compatible", "has_space", "region:us" ]
sentence-similarity
"2022-03-02T23:29:05Z"
--- language: - en pipeline_tag: sentence-similarity tags: - sentence-transformers - feature-extraction - sentence-similarity - transformers --- # msmarco-bert-base-dot-v5 This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 768 dimensional dense vector space and was designed for **semantic search**. It has been trained on 500K (query, answer) pairs from the [MS MARCO 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-bert-base-dot-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 print("Query:", query) 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 #Mean Pooling - Take attention mask into account for correct averaging def mean_pooling(model_output, attention_mask): token_embeddings = model_output.last_hidden_state 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']) 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-bert-base-dot-v5") model = AutoModel.from_pretrained("sentence-transformers/msmarco-bert-base-dot-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 print("Query:", query) 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 | 768 | | Max Sequence Length | 512 | | Produces normalized embeddings | No | | Pooling-Method | Mean pooling | | Suitable score functions | dot-product (e.g. `util.dot_score`) | ## Evaluation Results <!--- Describe how your model was evaluated --> For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name=msmarco-bert-base-base-dot-v5) ## Training See `train_script.py` in this repository for the used training script. The model was trained with the parameters: **DataLoader**: `torch.utils.data.dataloader.DataLoader` of length 7858 with parameters: ``` {'batch_size': 64, 'sampler': 'torch.utils.data.sampler.RandomSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'} ``` **Loss**: `sentence_transformers.losses.MarginMSELoss.MarginMSELoss` Parameters of the fit()-Method: ``` { "callback": null, "epochs": 30, "evaluation_steps": 0, "evaluator": "NoneType", "max_grad_norm": 1, "optimizer_class": "<class 'transformers.optimization.AdamW'>", "optimizer_params": { "lr": 1e-05 }, "scheduler": "WarmupLinear", "steps_per_epoch": null, "warmup_steps": 10000, "weight_decay": 0.01 } ``` ## Full Model Architecture ``` SentenceTransformer( (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: bert-base-uncased (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.2412930727005005, -0.8051051497459412, 0.43192169070243835, 0.23793554306030273, -0.24000336229801178, -0.3967664837837219, -0.3472122550010681, -0.09342070668935776, 0.16871295869350433, 0.3623349964618683, -0.5418955683708191, -0.6762506365776062, -0.7027270793914795, 0.10533053427934647, -0.37817463278770447, 0.8832138776779175, -0.048211898654699326, 0.15959522128105164, -0.2965826094150543, -0.15677757561206818, -0.2445918470621109, -0.3233862817287445, -0.41011661291122437, -0.22429761290550232, 0.3062271773815155, 0.2408578246831894, 0.5029448866844177, 0.4197958707809448, 0.34962552785873413, 0.41965535283088684, -0.08152859658002853, 0.22468148171901703, -0.4321780800819397, 0.040072858333587646, 0.03538990765810013, -0.4307519793510437, -0.09347818791866302, 0.24703861773014069, 0.5964188575744629, 0.48101791739463806, -0.1333099752664566, 0.054549794644117355, 0.04386793449521065, 0.4585926830768585, -0.30407455563545227, 0.41293865442276, -0.6211050748825073, 0.06191151216626167, 0.08685065060853958, -0.06278033554553986, -0.6096222400665283, -0.28133922815322876, 0.3259509205818176, -0.44414690136909485, 0.34068819880485535, 0.1808762103319168, 1.3082184791564941, 0.2516888976097107, -0.2603096067905426, -0.5491556525230408, -0.20329603552818298, 0.841683030128479, -0.9153914451599121, 0.2508488893508911, 0.36233019828796387, 0.011028211563825607, -0.07168201357126236, -0.9882672429084778, -0.7156588435173035, -0.22201888263225555, -0.3455095887184143, 0.24696387350559235, -0.17680129408836365, -0.0569869726896286, 0.14576290547847748, 0.17601624131202698, -0.7572342753410339, -0.07981505990028381, -0.5732699632644653, -0.24811862409114838, 0.6760571599006653, 0.1022474393248558, 0.22945939004421234, -0.5448612570762634, -0.47642987966537476, -0.4098552465438843, -0.22398751974105835, 0.1593387871980667, 0.27455025911331177, 0.2234029769897461, -0.18338240683078766, 0.7474405169487, 0.010195097886025906, 0.639899492263794, -0.07880453765392303, 0.1762823611497879, 0.6085541248321533, -0.2988005578517914, -0.25126707553863525, -0.01410746295005083, 1.09989595413208, 0.34624993801116943, 0.3478413224220276, -0.02323284186422825, -0.22661562263965607, -0.05741451680660248, 0.2786845564842224, -0.8213523626327515, -0.3203592002391815, 0.297040194272995, -0.40709131956100464, -0.3333585858345032, 0.21471461653709412, -0.5796527862548828, -0.09027490764856339, 0.04600002244114876, 0.8160361051559448, -0.8050364851951599, 0.22234462201595306, 0.3305974304676056, -0.3093280494213104, 0.33067870140075684, -0.13901640474796295, -0.7108291983604431, 0.08829259872436523, 0.26563140749931335, 0.9073634147644043, 0.16839146614074707, -0.5219401717185974, -0.2588586211204529, -0.131204754114151, -0.022405726835131645, 0.693414568901062, -0.4226796627044678, -0.3044706881046295, 0.11361349374055862, 0.23888082802295685, -0.5711507201194763, -0.24328726530075073, 0.7510138154029846, -0.3284705579280853, 0.8456560969352722, -0.04676037281751633, -0.9294161200523376, -0.20617233216762543, 0.1671227514743805, -0.5149974226951599, 1.2464231252670288, 0.1592874974012375, -0.9197871685028076, 0.05938928201794624, -0.7964277267456055, -0.3564702570438385, -0.225962832570076, -0.002836614614352584, -0.6872451305389404, 0.0196196511387825, 0.5312632918357849, 0.697868287563324, 0.02429375797510147, 0.12658363580703735, -0.18199345469474792, -0.4674128293991089, 0.4144105911254883, -0.332115113735199, 1.1366386413574219, 0.13515222072601318, -0.375682532787323, 0.11176738142967224, -0.6085772514343262, 0.03689450025558472, 0.3331718444824219, -0.3375585377216339, -0.14330188930034637, 0.044355232268571854, 0.2438689023256302, 0.31632140278816223, 0.3223939538002014, -0.6198360323905945, 0.2935847342014313, -0.5675644874572754, 0.7408742904663086, 0.7146927714347839, 0.0100562060251832, 0.3978508710861206, -0.3574375510215759, 0.22187232971191406, 0.18543003499507904, -0.0003747639711946249, -0.15584944188594818, -0.5865669250488281, -0.9322907328605652, -0.3009983003139496, 0.4487072825431824, 0.5466062426567078, -0.6855480670928955, 0.9920470118522644, -0.5051760673522949, -0.5739734172821045, -0.9491516947746277, -0.05227808654308319, 0.1297932267189026, 0.5722591280937195, 0.6138134598731995, -0.05171782523393631, -0.5107762813568115, -0.9263364672660828, -0.11910723894834518, 0.08715922385454178, -0.0230545811355114, 0.371701180934906, 0.7518340349197388, -0.35542652010917664, 0.9969830513000488, -0.7673157453536987, -0.5525292754173279, -0.38496923446655273, 0.17582844197750092, 0.39614924788475037, 0.5315014123916626, 0.4826678931713104, -0.6563982367515564, -0.49139663577079773, -0.5470285415649414, -0.7430128455162048, -0.016219213604927063, -0.20201781392097473, -0.13338793814182281, 0.2614743411540985, 0.5700973868370056, -0.6788190603256226, 0.29245832562446594, 0.46585914492607117, -0.6089814305305481, 0.4205189347267151, -0.45749956369400024, -0.09253223985433578, -1.353427767753601, 0.04646320641040802, 0.033251844346523285, -0.14977507293224335, -0.38096097111701965, -0.007910830900073051, 0.13960601389408112, -0.08706662058830261, -0.41169655323028564, 0.40473672747612, -0.5013025999069214, 0.1645200401544571, 0.18444286286830902, 0.5219672918319702, 0.10020501911640167, 0.7231102585792542, -0.1329772025346756, 0.7334312796592712, 0.5786991119384766, -0.4724622070789337, 0.2265363335609436, 0.5777937769889832, -0.5784766674041748, 0.16560545563697815, -0.7963946461677551, 0.0670604407787323, -0.07774969190359116, 0.250745952129364, -1.2744481563568115, 0.029178131371736526, 0.11257980763912201, -0.7560750246047974, 0.21574394404888153, 0.2895098328590393, -0.7279163599014282, -0.5154542326927185, -0.4982668459415436, -0.059978876262903214, 0.5222721099853516, -0.4256395101547241, 0.5175822377204895, 0.15424007177352905, 0.003676200984045863, -0.6023563742637634, -0.9804945588111877, -0.09438832849264145, -0.06227283552289009, -0.8286271095275879, 0.45279520750045776, -0.10260026901960373, 0.22017419338226318, 0.2266770452260971, 0.18654301762580872, 0.07615894824266434, -0.013510164804756641, 0.004190792795270681, 0.287990540266037, -0.04958820715546608, 0.20870867371559143, 0.08472366631031036, -0.04456308111548424, 0.11315327137708664, -0.21251866221427917, 0.7720965147018433, -0.21172386407852173, -0.08595193177461624, -0.33334577083587646, 0.20497792959213257, 0.445722758769989, -0.2871954143047333, 1.1604282855987549, 1.0271576642990112, -0.2535887658596039, -0.15510404109954834, -0.4531151056289673, -0.26444074511528015, -0.4869953989982605, 0.5670581459999084, -0.29109713435173035, -0.8200790882110596, 0.47269031405448914, 0.32804155349731445, 0.03725803270936012, 0.7465619444847107, 0.5932266116142273, -0.37553808093070984, 0.8576545715332031, 0.3994884192943573, -0.12906882166862488, 0.5142660140991211, -0.7173215746879578, 0.1870836615562439, -0.8570610284805298, -0.164072185754776, -0.4029141068458557, -0.4072405695915222, -0.7410494089126587, -0.4116908311843872, 0.3444642126560211, -0.07124247401952744, -0.1860482096672058, 0.5647327303886414, -0.6551445722579956, 0.18308885395526886, 0.6735329627990723, 0.28366321325302124, -0.09751493483781815, 0.014143683947622776, -0.6166770458221436, -0.1284567415714264, -0.7216808199882507, -0.5079182386398315, 1.1269241571426392, 0.3767711818218231, 0.44706135988235474, -0.06015839800238609, 0.7612748742103577, 0.18624554574489594, -0.04880830645561218, -0.7086125612258911, 0.5995569825172424, -0.19262395799160004, -0.5199667811393738, -0.3861203193664551, -0.3922523558139801, -1.0798745155334473, 0.46398821473121643, -0.2505630850791931, -0.6992198824882507, 0.03929143771529198, -0.33733463287353516, -0.21700619161128998, 0.18787480890750885, -0.8857475519180298, 1.0467675924301147, 0.016149835661053658, -0.168338805437088, -0.1480581909418106, -0.7716147899627686, 0.11159541457891464, 0.3024384379386902, 0.14070017635822296, -0.028809957206249237, -0.030930666252970695, 0.8984724283218384, -0.3856365978717804, 0.7733830213546753, -0.13629263639450073, 0.09718600660562515, 0.2966718375682831, -0.29107457399368286, 0.4188716411590576, -0.1450454294681549, -0.16257452964782715, 0.08452006429433823, -0.08688293397426605, -0.5035052299499512, -0.4622253477573395, 0.6931676864624023, -0.9532169699668884, -0.3348066806793213, -0.5721029043197632, -0.6447222232818604, -0.08021335303783417, 0.24519884586334229, 0.49673694372177124, 0.45349717140197754, -0.07230661064386368, 0.48405778408050537, 0.6375234723091125, -0.34174275398254395, 0.7609666585922241, 0.3509250581264496, 0.03785230964422226, -0.5651280879974365, 0.6807052493095398, 0.21075204014778137, 0.036419350653886795, 0.45405834913253784, 0.18265190720558167, -0.48474758863449097, -0.30674615502357483, -0.23215152323246002, 0.46228155493736267, -0.6462022066116333, -0.11782452464103699, -0.8141536116600037, -0.4591769874095917, -0.749970018863678, -0.08426476269960403, -0.14119257032871246, -0.3567308187484741, -0.457276314496994, -0.25326743721961975, 0.2833661735057831, 0.49786576628685, 0.08035586774349213, 0.2673473656177521, -0.6292829513549805, 0.11549375206232071, 0.11060841381549835, 0.13814185559749603, -0.16618318855762482, -0.8123493194580078, -0.44032585620880127, -0.016953665763139725, -0.4300907552242279, -0.9633989334106445, 0.6333272457122803, 0.20724360644817352, 0.6191980838775635, 0.23836791515350342, 0.13058526813983917, 0.5519351363182068, -0.5792211294174194, 0.9473016858100891, -0.06928342580795288, -0.9561113715171814, 0.5793322920799255, -0.1153372973203659, 0.4067922830581665, 0.48579561710357666, 0.3893555998802185, -0.48110800981521606, -0.47991475462913513, -0.8154277205467224, -1.0445948839187622, 0.7482975125312805, 0.5439785122871399, 0.2899625897407532, -0.1640351116657257, 0.1537417471408844, -0.24495624005794525, 0.15030112862586975, -0.9913282990455627, -0.48705247044563293, -0.2787960171699524, -0.5669768452644348, -0.3254920244216919, -0.21504534780979156, 0.049790799617767334, -0.4524662494659424, 0.8361309170722961, 0.03718782961368561, 0.7456221580505371, 0.5413615107536316, -0.47083109617233276, 0.3077608048915863, 0.16927935183048248, 0.7044124007225037, 0.3191974461078644, -0.3213789761066437, -0.016660213470458984, 0.22972901165485382, -0.5108493566513062, -0.11116405576467514, 0.5034042000770569, -0.06200898066163063, 0.3072689473628998, 0.5594954490661621, 0.8846563696861267, 0.3822823166847229, -0.5146046876907349, 0.7427769303321838, -0.09754600375890732, -0.35365307331085205, -0.41615429520606995, -0.041111260652542114, 0.23765112459659576, 0.24218297004699707, 0.3935033679008484, -0.04016048088669777, -0.0011967143509536982, -0.3781835436820984, 0.3185470402240753, 0.2622681260108948, -0.4334299564361572, -0.00728896539658308, 0.709587037563324, 0.04699833691120148, -0.2009943425655365, 0.9262337684631348, -0.20626938343048096, -0.6934763789176941, 0.5159910321235657, 0.485754132270813, 0.9196457266807556, 0.00802789255976677, 0.2084302455186844, 0.4991311728954315, 0.5098594427108765, 0.10773994773626328, 0.19368289411067963, 0.006905252579599619, -0.8773243427276611, -0.046673331409692764, -0.5951089262962341, 0.03610777482390404, -0.06679674237966537, -0.6415151953697205, 0.3366782069206238, -0.10739493370056152, -0.06832075119018555, -0.10542488098144531, 0.27617907524108887, -0.7779646515846252, 0.15510402619838715, 0.07082571089267731, 1.003568410873413, -0.8842193484306335, 1.0259894132614136, 0.6608839631080627, -0.8450956344604492, -0.8051665425300598, 0.0024718153290450573, -0.38091129064559937, -0.9019553661346436, 0.4633491039276123, 0.4471709728240967, 0.2133934199810028, 0.20673421025276184, -0.5321556925773621, -0.7671341896057129, 1.4877079725265503, 0.25053316354751587, -0.38113170862197876, -0.2984364330768585, 0.06374816596508026, 0.6067409515380859, -0.3707748353481293, 0.5087749361991882, 0.4196578562259674, 0.4228733777999878, -0.1147853434085846, -0.6628542542457581, 0.07500404864549637, -0.2511295676231384, 0.10869700461626053, -0.12657077610492706, -0.6124172210693359, 0.9309576153755188, -0.13966280221939087, -0.12359427660703659, 0.05379215627908707, 0.7692087888717651, 0.2741444706916809, 0.03558371588587761, 0.42397114634513855, 0.8650739789009094, 0.7688441276550293, -0.1824209839105606, 1.0890240669250488, -0.39421701431274414, 0.8488497138023376, 0.9404087066650391, 0.10268207639455795, 1.0761048793792725, 0.41525208950042725, -0.24469514191150665, 0.8228633403778076, 0.6499211192131042, -0.29199570417404175, 0.6790140867233276, 0.18923477828502655, 0.0653114914894104, -0.02071506530046463, 0.3243064284324646, -0.34371110796928406, 0.49935606122016907, 0.2607574164867401, -0.7902153134346008, -0.1243237629532814, 0.04601697623729706, 0.17147332429885864, 0.026317808777093887, 0.06513762474060059, 0.6343180537223816, 0.07236895710229874, -0.4959149658679962, 0.6366386413574219, 0.1433163434267044, 0.8960642218589783, -0.56637042760849, 0.23952139914035797, -0.16032037138938904, 0.27871134877204895, -0.03576335310935974, -0.8086428046226501, 0.19552823901176453, -0.2237398624420166, -0.16999244689941406, -0.30565956234931946, 0.4794299006462097, -0.670488715171814, -0.6692882776260376, 0.3789984881877899, 0.42513617873191833, 0.2103707492351532, 0.04383811727166176, -1.0849119424819946, -0.09429798275232315, 0.13536372780799866, -0.5770620107650757, 0.10629063844680786, 0.4403996169567108, 0.3799169957637787, 0.5548941493034363, 0.5063053965568542, -0.11469510942697525, 0.1445813924074173, 0.09789415448904037, 0.7906184792518616, -0.7384315133094788, -0.5151007771492004, -0.8680668473243713, 0.6679403781890869, -0.2933298945426941, -0.4464260935783386, 0.7253825664520264, 0.6805886030197144, 0.8593217730522156, -0.24433493614196777, 0.5599757432937622, -0.19952578842639923, 0.34501370787620544, -0.6115075349807739, 0.9906055331230164, -0.5697104930877686, 0.1484927088022232, -0.19238170981407166, -0.8877964019775391, -0.13377608358860016, 0.9275516867637634, -0.41807878017425537, 0.07613322138786316, 0.9489912390708923, 0.9184975028038025, -0.00044930860167369246, -0.20553937554359436, 0.21426205337047577, 0.47595253586769104, 0.2585926949977875, 0.6055151224136353, 0.31437692046165466, -0.936733067035675, 0.7915194034576416, -0.4028189182281494, 0.0798315554857254, -0.2370072305202484, -0.6940876245498657, -0.9516510367393494, -0.9356423616409302, -0.3153046667575836, -0.44329994916915894, -0.09202184528112411, 0.9721022844314575, 0.5248675346374512, -0.7512711882591248, -0.13576970994472504, -0.10068602859973907, -0.04230622574687004, -0.18942010402679443, -0.3653426766395569, 0.6238622665405273, -0.671148419380188, -0.8636784553527832, 0.2463003396987915, -0.17275108397006989, -0.0591730959713459, -0.2832897901535034, 0.03279336914420128, -0.773880660533905, 0.20971353352069855, 0.5658964514732361, -0.25661203265190125, -0.7596688270568848, -0.2762031555175781, 0.11861101537942886, -0.527034342288971, 0.04960699379444122, 0.3163504898548126, -0.7315258979797363, 0.4475822448730469, 0.5279781818389893, 0.5052622556686401, 0.7280407547950745, -0.1516057550907135, 0.44530415534973145, -0.8839800357818604, 0.09510497003793716, 0.18662776052951813, 0.7201706171035767, 0.40289607644081116, -0.3255738317966461, 0.6337029337882996, 0.3077767789363861, -0.567785382270813, -0.6843296885490417, -0.24960923194885254, -1.1095261573791504, -0.4315418601036072, 1.105721354484558, -0.33021244406700134, -0.3800995647907257, 0.2675078213214874, -0.3237806260585785, 0.43538519740104675, -0.44369828701019287, 0.7900834679603577, 0.9534198045730591, -0.03454675152897835, -0.18326684832572937, -0.4802151918411255, 0.23711633682250977, 0.5061696767807007, -0.5291018486022949, -0.3873378038406372, 0.2071869820356369, 0.44456613063812256, 0.22696556150913239, 0.35317161679267883, -0.03516274318099022, 0.022106943652033806, 0.05832688882946968, 0.16484525799751282, -0.17756569385528564, 0.11659998446702957, -0.41830283403396606, 0.22868885099887848, -0.44180646538734436, -0.488949179649353 ]
knkarthick/MEETING_SUMMARY
knkarthick
"2023-03-27T15:08:14Z"
32,878
166
transformers
[ "transformers", "pytorch", "tf", "safetensors", "bart", "text2text-generation", "seq2seq", "summarization", "en", "license:apache-2.0", "model-index", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
summarization
"2022-03-02T23:29:05Z"
--- language: en license: apache-2.0 tags: - bart - seq2seq - summarization datasets: - cnndaily/newyorkdaily/xsum/samsum/dialogsum/AMI metrics: - rouge widget: - text: 'Hi, I''m David and I''m supposed to be an industrial designer. Um, I just got the project announcement about what the project is. Designing a remote control. That''s about it, didn''t get anything else. Did you get the same thing? Cool. There''s too much gear. Okay. Can''t draw. Um. Yeah. Um, well anyway, I don''t know, it''s just the first animal I can think off the top of my head. Um. Yes. Big reason is ''cause I''m allergic to most animals. Allergic to animal fur, so um fish was a natural choice. Um, yeah, and I kind of like whales. They come in and go eat everything in sight. And they''re quite harmless and mild and interesting. Tail''s a bit big, I think. It''s an after dinner dog then. Hmm. It does make sense from maybe the design point of view ''cause you have more complicated characters like European languages, then you need more buttons. So, possibly. Hmm. Yeah. And you keep losing them. Finding them is really a pain, you know. I mean it''s usually quite small, or when you want it right, it slipped behind the couch or it''s kicked under the table. You know. Yep. Mm-hmm. I think one factor would be production cost. Because there''s a cap there, so um depends on how much you can cram into that price. Um. I think that that''s the main factor. Cool. Okay. Right. Um well this is the kick-off meeting for our our project. Um and um this is just what we''re gonna be doing over the next twenty five minutes. Um so first of all, just to kind of make sure that we all know each other, I''m Laura and I''m the project manager. Do you want to introduce yourself again? Okay. Great. Okay. Um so we''re designing a new remote control and um Oh I have to record who''s here actually. So that''s David, Andrew and Craig, isn''t it? And you all arrived on time. Um yeah so des uh design a new remote control. Um, as you can see it''s supposed to be original, trendy and user friendly. Um so that''s kind of our our brief, as it were. Um and so there are three different stages to the design. Um I''m not really sure what what you guys have already received um in your emails. What did you get? Mm-hmm. Is that what everybody got? Okay. Um. So we''re gonna have like individual work and then a meeting about it. And repeat that process three times. Um and at this point we get try out the whiteboard over there. Um. So uh you get to draw your favourite animal and sum up your favourite characteristics of it. So who would like to go first? Very good. Mm-hmm. Yeah. Yeah. Right. Lovely. Right. You can take as long over this as you like, because we haven''t got an awful lot to discuss. Ok oh we do we do. Don''t feel like you''re in a rush, anyway. Ach why not We might have to get you up again then. I don''t know what mine is. I''m gonna have to think on the spot now. Is that a whale? Ah. Okay. God, I still don''t know what I''m gonna write about. Um. I was gonna choose a dog as well. But I''ll just draw a different kind of dog. M my favourite animal is my own dog at home. Um That doesn''t really look like him, actually. He looks more like a pig, actually. Ah well. Do you? Oh that''s very good of you. Uh. Um he''s a mixture of uh various things. Um and what do I like about him, um That''s just to suggest that his tail wags. Um he''s very friendly and cheery and always pleased to see you, and very kind of affectionate and um uh and he''s quite quite wee as well so you know he can doesn''t take up too much space. Um and uh And he does a funny thing where he chases his tail as well, which is quite amusing, so It is. I think it is. He only does it after he''s had his dinner and um he''ll just all of a sudden just get up and start chasing his tail ''round the living room. Yeah, so uh Yeah, maybe. Maybe. Right, um where did you find this? Just down here? Yeah. Okay. Um what are we doing next? Uh um. Okay, uh we now need to discuss the project finance. Um so according to the brief um we''re gonna be selling this remote control for twenty five Euro, um and we''re aiming to make fifty million Euro. Um so we''re gonna be selling this on an international scale. And uh we don''t want it to cost any more than uh twelve fifty Euros, so fifty percent of the selling price. Sure. All together. Um I dunno. I imagine That''s a good question. I imagine it probably is our sale actually because it''s probably up to the the um the retailer to uh sell it for whatever price they want. Um. But I I don''t know, I mean do you think the fact that it''s going to be sold internationally will have a bearing on how we design it at all? Think it will? Um. Hmm. Oh yeah, regions and stuff, yeah. Yeah. Okay. Yeah. Well for a remote control, do you think that will be I suppose it''s depends on how complicated our remote control is. Yeah, yeah. Okay. What, just like in terms of like the wealth of the country? Like how much money people have to spend on things like? Aye, I see what you mean, yeah. Marketing. Good marketing thoughts. Oh gosh, I should be writing all this down. Um. Mm. Yeah. Yeah, yeah. Like how much does, you know, a remote control cost. Well twenty five Euro, I mean that''s um that''s about like eighteen pounds or something, isn''t it? Or no, is it as much as that? Sixteen seventeen eighteen pounds. Um, I dunno, I''ve never bought a remote control, so I don''t know how how good a remote control that would get you. Um. But yeah, I suppose it has to look kind of cool and gimmicky. Um right, okay. Let me just scoot on ahead here. Okay. Um well d Does anybody have anything to add to uh to the finance issue at all? Thin No, actually. That would be useful, though, wouldn''t it, if you knew like what your money would get you now. Mm-hmm. Yeah, yeah. Oh. Five minutes to end of meeting. Oh, okay. We''re a bit behind. Yeah. Right, so do you think that should be like a main design aim of our remote control d you know, do your your satellite and your regular telly and your V_C_R_ and everything? Mm-hmm. Yeah. Or even like, you know, notes about um what you wanna watch. Like you might put in there oh I want to watch such and such and look a Oh that''s a good idea. So extra functionalities. Mm-hmm. Hmm. Um okay, uh I''d wel we''re gonna have to wrap up pretty quickly in the next couple of minutes. Um I''ll just check we''ve nothing else. Okay. Um so anything else anybody wants to add about what they don''t like about remote controls they''ve used, what they would really like to be part of this new one at all? You keep losing them. Okay. Yeah. W You get those ones where you can, if you like, whistle or make a really high pitched noise they beep. There I mean is that something we''d want to include, do you think? Dunno. Okay maybe. My goodness. Still feels quite primitive. Maybe like a touch screen or something? Okay. Uh-huh, okay. Well I guess that''s up to our industrial designer. It looks better. Yeah. Okay. Okay. Right, well um so just to wrap up, the next meeting''s gonna be in thirty minutes. So that''s about um about ten to twelve by my watch. Um so inbetween now and then, um as the industrial designer, you''re gonna be working on you know the actual working design of it so y you know what you''re doing there. Um for user interface, technical functions, I guess that''s you know like what we''ve been talking about, what it''ll actually do. Um and uh marketing executive, you''ll be just thinking about what it actually what, you know, what requirements it has to has to fulfil and you''ll all get instructions emailed to you, I guess. Um. Yeah, so it''s th the functional design stage is next, I guess. And uh and that''s the end of the meeting. So I got that little message a lot sooner than I thought I would, so Mm-hmm. Uh-huh, yeah. Th Okay, well just very quickly ''cause this we''re supposed to finish now. Um I guess that''s up to us, I mean you probably want some kind of unique selling point of it, so um, you know Yeah. Mm-hmm. Yeah. Okay. Right, okay, we''ll that''s that''s the end of the meeting, then. Um. So, uh thank you all for coming. Um I''m Craig and I''m User Interface. Yeah. Well, my favourite animal would be a monkey. Then they''re small cute and furry, and uh when planet of the apes becomes real, I''m gonna be up there with them. Yeah. I know um My parents went out and bought um remote controls because um they got fed up of having four or five different remote controls for each things the house. So um for them it was just how many devices control. Uh. Mm-hmm. Great. And I''m Andrew and I''m uh our marketing expert. Mm-hmm. Mm-hmm. Yeah, that''s that''s it. Yeah. I will go. That''s fine. Alright. So This one here, right? Okay. Very nice. Alright. My favourite animal is like A beagle. Um charac favourite characteristics of it? Is that right? Uh, right, well basically um high priority for any animal for me is that they be willing to take a lot of physical affection from their family. And, yeah that they have lots of personality and uh be fit and in robust good health. So this is blue. Blue beagle. My family''s beagle. I coulda told you a whole lot more about beagles. Boy, let me tell you. Impressionist. Alright. Mm. Superb sketch, by the way. Yep. I see a dog in there. Yep. Now I see a rooster. What kind is it? Is he aware that th it''s his own cha tail he''s chasing? Hmm. Probably when he was little he got lots of attention for doing it and has forever been conditioned. ''Kay. Um, can we just go over that again? Uh, so bas at twel Alright, yeah. Okay. So cost like production cost is twelve fifty, but selling price is is that wholesale or retail? Like on the shelf. Our sale our sale anyway. Yeah, okay okay. Okay. Mm-hmm. Alright. Yes. Mm-hmm. Mm-hmm. Well right away I''m wondering if there''s um th th uh, like with D_V_D_ players, if there are zones. Um f frequencies or something um as well as uh characters, um different uh keypad styles and s symbols. Um. I don''t know. Yeah. Yeah. Yeah. And then a and then al the other thing international is on top of the price. I''m thinking the price might might appeal to a certain market in one region, whereas in another it''ll be different, so Just a chara just a characteristic of the Just Or just like, basic product podi positioning, the twenty five Euro remote control might be a big hit in London, might not be such a big hit in Greece, who knows, something like that, yeah. Yep. Right away I''m making some kind of assumptions about what what information we''re given here, thinking, ''kay trendy probably means something other than just basic, something other than just standard. Um so I''m wondering right away, is selling twenty five Euros, is that sort of the thi is this gonna to be like the premium product kinda thing or Uh-huh. Mm-hmm. Yep. Yeah, I''d say so, yeah. No. Yeah, yeah. Mm-hmm. Do we have any other background information on like how that compares to other other Yeah. Mm-hmm. Yeah, interesting thing about discussing um production of a remote control for me is that l as you point out, I just don''t think of remote controls as somethin something people consciously assess in their purchasing habits. It''s just like getting shoelaces with shoes or something. It just comes along. Do you know what I mean? Like so sort of like how do you I I mean one one way of looking at it would be, well the people producing television sets, maybe they have to buy remote controls. Or another way is maybe people who have T_V_ sets are really fed up with their remote control and they really want a better one or something. But Right. Right. Okay so Right, so in function one of the priorities might be to combine as many uses I think so. Yeah, yeah. Yeah. Well like um, maybe what we could use is a sort of like a example of a successful other piece technology is palm palm pilots. They''re gone from being just like little sort of scribble boards to cameras, M_P_ three players, telephones, everything, agenda. So, like, I wonder if we might add something new to the to the remote control market, such as the lighting in your house, or um Yeah, yeah. An Yeah. Like, p personally for me, at home I''ve I''ve combined the um the audio video of my television set and my D_V_D_ player and my C_D_ player. So they w all work actually function together but I have different remote controls for each of them. So it''s sort of ironic that that then they''re in there um you know, the sound and everything it''s just one system. But each one''s got its own little part. Mm. Mm. Mm. Mm-hmm. Mm-hmm. Yeah. Yeah. That''s just really good id Yep. Uh, sure. I remember when the first remote control my my family had was on a cable. Actually had a cable between it and the T_V_ and big like buttons that sort of like, like on a blender or something. And um, you know, when I think about what they are now, it''s better, but actually it''s still kind of, I dunno, like a massive junky thing on the table. Maybe we could think about how, could be more, you know, streamlined. S Something like that, yeah. Or whatever would be technologically reasonable. ''Cause it could b it could it could be that f it could be that functionally that doesn''t make it any better, but that just the appeal of of not having You know, these days there''s a r pe things in people''s homes are becoming more and more like chic, you know. Um, nicer materials and might be be worth exploring anyway. Okay. Um. Before we wrap up, just to make sure we''re all on the same page here, um, do we We were given sort of an example of a coffee machine or something, right? Well, um are we at ma right now on the assumption that our television remote control may have features which go beyond the television? Or are we keeping sort of like a a design commitment to television features? I I don''t know. Yep. Yeah, sure. Okay. Okay, yeah. Okay. Okay. Okay. Alright.' model-index: - name: MEETING_SUMMARY results: - task: type: abstractive-text-summarization name: Abstractive Text Summarization dataset: name: samsum type: samsum metrics: - type: rouge-1 value: 53.8795 name: Validation ROGUE-1 - type: rouge-2 value: 28.4975 name: Validation ROGUE-2 - type: rouge-L value: 44.1899 name: Validation ROGUE-L - type: rouge-Lsum value: 49.4863 name: Validation ROGUE-Lsum - type: gen-length value: 30.088 name: Validation ROGUE-Lsum - type: rouge-1 value: 53.2284 name: Test ROGUE-1 - type: rouge-2 value: 28.184 name: Test ROGUE-2 - type: rouge-L value: 44.122 name: Test ROGUE-L - type: rouge-Lsum value: 49.0301 name: Test ROGUE-Lsum - type: gen-length value: 29.9951 name: Test ROGUE-Lsum - task: type: summarization name: Summarization dataset: name: bazzhangz/sumdataset type: bazzhangz/sumdataset config: bazzhangz--sumdataset split: train metrics: - type: rouge value: 40.5544 name: ROUGE-1 verified: true - type: rouge value: 17.0751 name: ROUGE-2 verified: true - type: rouge value: 32.153 name: ROUGE-L verified: true - type: rouge value: 36.4277 name: ROUGE-LSUM verified: true - type: loss value: 2.116729736328125 name: loss verified: true - type: gen_len value: 42.1978 name: gen_len verified: true - task: type: abstractive-text-summarization name: Abstractive Text Summarization dataset: name: xsum type: xsum metrics: - type: rouge-1 value: 35.9078 name: Validation ROGUE-1 - type: rouge-2 value: 14.2497 name: Validation ROGUE-2 - type: rouge-L value: 28.1421 name: Validation ROGUE-L - type: rouge-Lsum value: 28.9826 name: Validation ROGUE-Lsum - type: gen-length value: 32.0167 name: Validation ROGUE-Lsum - type: rouge-1 value: 36.0241 name: Test ROGUE-1 - type: rouge-2 value: 14.3715 name: Test ROGUE-2 - type: rouge-L value: 28.1968 name: Test ROGUE-L - type: rouge-Lsum value: 29.0527 name: Test ROGUE-Lsum - type: gen-length value: 31.9933 name: Test ROGUE-Lsum - task: type: abstractive-text-summarization name: Abstractive Text Summarization dataset: name: dialogsum type: dialogsum metrics: - type: rouge-1 value: 39.8612 name: Validation ROGUE-1 - type: rouge-2 value: 16.6917 name: Validation ROGUE-2 - type: rouge-L value: 32.2718 name: Validation ROGUE-L - type: rouge-Lsum value: 35.8748 name: Validation ROGUE-Lsum - type: gen-length value: 41.726 name: Validation ROGUE-Lsum - type: rouge-1 value: 36.9608 name: Test ROGUE-1 - type: rouge-2 value: 14.3058 name: Test ROGUE-2 - type: rouge-L value: 29.3261 name: Test ROGUE-L - type: rouge-Lsum value: 32.9 name: Test ROGUE-Lsum - type: gen-length value: 43.086 name: Test ROGUE-Lsum - task: type: summarization name: Summarization dataset: name: samsum type: samsum config: samsum split: test metrics: - type: rouge value: 53.1878 name: ROUGE-1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOTVkNTczYjFmYzBmMzczNWE0MGY4MDAyZWExOGNjZmY1Yzk2ZGM1MGNjZmFmYWUyZmIxZjdjOTk4OTc4OGJlMSIsInZlcnNpb24iOjF9.yyzPpGtESuZXy_lBESrboGxdGYB7I6jaIjquCYqliE2xdbGf5awDFpDUwlZHDuw6RD2mIZv1FC8PPs9lOHuSAg - type: rouge value: 28.1666 name: ROUGE-2 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMjAzOTdjNGYxNWMzYmFjYjRmMTcxYzI0MmNlNmM5Nzg2MzBlNDdmZWFkN2EwMDE2ZTZmYzc0Zjg0ZDc0M2IxNiIsInZlcnNpb24iOjF9.cPH6O50T6HekO227Xzha-EN_Jp7JS9fh5EP9I0tHxbpGptKtZOQC-NG68zfU2eJKlRSrmgaBYs8tjfTvpAgyDg - type: rouge value: 44.117 name: ROUGE-L verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNmNmMzJkYjMxMjhlZDM4YmU3NmI1MDExNzhiYmVhMzEyZGJjNDJkNzczNGQwOTMwNzg2YjU1ZWQ4MDhiMzkxYiIsInZlcnNpb24iOjF9.lcEXK15UqZOdXnPjVqIhFd6o_PLROSIONTRFX5NbwanjEI_MWMLpDh_V0Kpnvs_W0sE6cXh2yoifSYNDA5W7Bw - type: rouge value: 49.0094 name: ROUGE-LSUM verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiYThkYjk4ZjMzYjI0OTAxNDJiZTU5MzE0YjI5MjEzYTYwNWEzMmU5NjU2ZjQ5NzJhMzkyNmVhNWFjZmM1MjAwMSIsInZlcnNpb24iOjF9.LTn6LpKuMO4Rv4NgsbPmtr2ewiKyoqAXlf6YJfM_6GKwVTKpnJxwx7gaaAtMb0jVlgieITMP11JmbeRfMEhgDg - type: loss value: 1.710614562034607 name: loss verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNjNjZmM0ZjkwYWYyMWIyMmFiMWI1ODBiYjRjNzVhM2JhN2NmNmM1ZDUwZWRjNDQxNzUwMWM4YjYxYTg1MWYwNyIsInZlcnNpb24iOjF9.hGXZhp9pe-HDJilXVvMCkqz-92YZvH6Qr7q9Z7fJkm8N9s0b4sl-4PwjQYJEOLEAhoRO2s-F5T3bmCYCaMiNBQ - type: gen_len value: 29.9951 name: gen_len verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiZmY1NzZiMDAzNGJlNTg4Nzc0YzU1MTA3YTI3MzVmNGZkNWQ0ZDE4MGZlNGI1MzJmYzA3MjQ0MDZhMTcyYTk2NCIsInZlcnNpb24iOjF9.8dvMfY7Y-nw-K8NGgTXIGFMxaSUWQYBE1w3N5YYOn4iwnCe2ugo2qPIOxLY91q7CaAOMCSskFV3BDStQ4p0ZCg --- Model obtained by Fine Tuning 'facebook/bart-large-xsum' using AMI Meeting Corpus, SAMSUM Dataset, DIALOGSUM Dataset, XSUM Dataset! ## Usage # Example 1 ```python from transformers import pipeline summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY") text = '''The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930. It was the first structure to reach a height of 300 metres. Due to the addition of a broadcasting aerial at the top of the tower in 1957, it is now taller than the Chrysler Building by 5.2 metres (17 ft). Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct. ''' summarizer(text) ``` # Example 2 ```python from transformers import pipeline summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY") text = '''Bangalore is the capital and the largest city of the Indian state of Karnataka. It has a population of more than 8 million and a metropolitan population of around 11 million, making it the third most populous city and fifth most populous urban agglomeration in India. Located in southern India on the Deccan Plateau, at a height of over 900 m (3,000 ft) above sea level, Bangalore is known for its pleasant climate throughout the year. Its elevation is the highest among the major cities of India.The city's history dates back to around 890 CE, in a stone inscription found at the Nageshwara Temple in Begur, Bangalore. The Begur inscription is written in Halegannada (ancient Kannada), mentions 'Bengaluru Kalaga' (battle of Bengaluru). It was a significant turning point in the history of Bangalore as it bears the earliest reference to the name 'Bengaluru'. In 1537 CE, Kempé Gowdā – a feudal ruler under the Vijayanagara Empire – established a mud fort considered to be the foundation of modern Bangalore and its oldest areas, or petes, which exist to the present day. After the fall of Vijayanagar empire in 16th century, the Mughals sold Bangalore to Chikkadevaraja Wodeyar (1673–1704), the then ruler of the Kingdom of Mysore for three lakh rupees. When Haider Ali seized control of the Kingdom of Mysore, the administration of Bangalore passed into his hands. The city was captured by the British East India Company after victory in the Fourth Anglo-Mysore War (1799), who returned administrative control of the city to the Maharaja of Mysore. The old city developed in the dominions of the Maharaja of Mysore and was made capital of the Princely State of Mysore, which existed as a nominally sovereign entity of the British Raj. In 1809, the British shifted their cantonment to Bangalore, outside the old city, and a town grew up around it, which was governed as part of British India. Following India's independence in 1947, Bangalore became the capital of Mysore State, and remained capital when the new Indian state of Karnataka was formed in 1956. The two urban settlements of Bangalore – city and cantonment – which had developed as independent entities merged into a single urban centre in 1949. The existing Kannada name, Bengalūru, was declared the official name of the city in 2006. Bangalore is widely regarded as the "Silicon Valley of India" (or "IT capital of India") because of its role as the nation's leading information technology (IT) exporter. Indian technological organisations are headquartered in the city. A demographically diverse city, Bangalore is the second fastest-growing major metropolis in India. Recent estimates of the metro economy of its urban area have ranked Bangalore either the fourth- or fifth-most productive metro area of India. As of 2017, Bangalore was home to 7,700 millionaires and 8 billionaires with a total wealth of $320 billion. It is home to many educational and research institutions. Numerous state-owned aerospace and defence organisations are located in the city. The city also houses the Kannada film industry. It was ranked the most liveable Indian city with a population of over a million under the Ease of Living Index 2020. ''' summarizer(text) ``` # Example 3 ```python from transformers import pipeline summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY") text = '''Hi, I'm David and I'm supposed to be an industrial designer. Um, I just got the project announcement about what the project is. Designing a remote control. That's about it, didn't get anything else. Did you get the same thing? Cool. There's too much gear. Okay. Can't draw. Um. Yeah. Um, well anyway, I don't know, it's just the first animal I can think off the top of my head. Um. Yes. Big reason is 'cause I'm allergic to most animals. Allergic to animal fur, so um fish was a natural choice. Um, yeah, and I kind of like whales. They come in and go eat everything in sight. And they're quite harmless and mild and interesting. Tail's a bit big, I think. It's an after dinner dog then. Hmm. It does make sense from maybe the design point of view 'cause you have more complicated characters like European languages, then you need more buttons. So, possibly. Hmm. Yeah. And you keep losing them. Finding them is really a pain, you know. I mean it's usually quite small, or when you want it right, it slipped behind the couch or it's kicked under the table. You know. Yep. Mm-hmm. I think one factor would be production cost. Because there's a cap there, so um depends on how much you can cram into that price. Um. I think that that's the main factor. Cool. Okay. Right. Um well this is the kick-off meeting for our our project. Um and um this is just what we're gonna be doing over the next twenty five minutes. Um so first of all, just to kind of make sure that we all know each other, I'm Laura and I'm the project manager. Do you want to introduce yourself again? Okay. Great. Okay. Um so we're designing a new remote control and um Oh I have to record who's here actually. So that's David, Andrew and Craig, isn't it? And you all arrived on time. Um yeah so des uh design a new remote control. Um, as you can see it's supposed to be original, trendy and user friendly. Um so that's kind of our our brief, as it were. Um and so there are three different stages to the design. Um I'm not really sure what what you guys have already received um in your emails. What did you get? Mm-hmm. Is that what everybody got? Okay. Um. So we're gonna have like individual work and then a meeting about it. And repeat that process three times. Um and at this point we get try out the whiteboard over there. Um. So uh you get to draw your favourite animal and sum up your favourite characteristics of it. So who would like to go first? Very good. Mm-hmm. Yeah. Yeah. Right. Lovely. Right. You can take as long over this as you like, because we haven't got an awful lot to discuss. Ok oh we do we do. Don't feel like you're in a rush, anyway. Ach why not We might have to get you up again then. I don't know what mine is. I'm gonna have to think on the spot now. Is that a whale? Ah. Okay. God, I still don't know what I'm gonna write about. Um. I was gonna choose a dog as well. But I'll just draw a different kind of dog. M my favourite animal is my own dog at home. Um That doesn't really look like him, actually. He looks more like a pig, actually. Ah well. Do you? Oh that's very good of you. Uh. Um he's a mixture of uh various things. Um and what do I like about him, um That's just to suggest that his tail wags. Um he's very friendly and cheery and always pleased to see you, and very kind of affectionate and um uh and he's quite quite wee as well so you know he can doesn't take up too much space. Um and uh And he does a funny thing where he chases his tail as well, which is quite amusing, so It is. I think it is. He only does it after he's had his dinner and um he'll just all of a sudden just get up and start chasing his tail 'round the living room. Yeah, so uh Yeah, maybe. Maybe. Right, um where did you find this? Just down here? Yeah. Okay. Um what are we doing next? Uh um. Okay, uh we now need to discuss the project finance. Um so according to the brief um we're gonna be selling this remote control for twenty five Euro, um and we're aiming to make fifty million Euro. Um so we're gonna be selling this on an international scale. And uh we don't want it to cost any more than uh twelve fifty Euros, so fifty percent of the selling price. Sure. All together. Um I dunno. I imagine That's a good question. I imagine it probably is our sale actually because it's probably up to the the um the retailer to uh sell it for whatever price they want. Um. But I I don't know, I mean do you think the fact that it's going to be sold internationally will have a bearing on how we design it at all? Think it will? Um. Hmm. Oh yeah, regions and stuff, yeah. Yeah. Okay. Yeah. Well for a remote control, do you think that will be I suppose it's depends on how complicated our remote control is. Yeah, yeah. Okay. What, just like in terms of like the wealth of the country? Like how much money people have to spend on things like? Aye, I see what you mean, yeah. Marketing. Good marketing thoughts. Oh gosh, I should be writing all this down. Um. Mm. Yeah. Yeah, yeah. Like how much does, you know, a remote control cost. Well twenty five Euro, I mean that's um that's about like eighteen pounds or something, isn't it? Or no, is it as much as that? Sixteen seventeen eighteen pounds. Um, I dunno, I've never bought a remote control, so I don't know how how good a remote control that would get you. Um. But yeah, I suppose it has to look kind of cool and gimmicky. Um right, okay. Let me just scoot on ahead here. Okay. Um well d Does anybody have anything to add to uh to the finance issue at all? Thin No, actually. That would be useful, though, wouldn't it, if you knew like what your money would get you now. Mm-hmm. Yeah, yeah. Oh. Five minutes to end of meeting. Oh, okay. We're a bit behind. Yeah. Right, so do you think that should be like a main design aim of our remote control d you know, do your your satellite and your regular telly and your V_C_R_ and everything? Mm-hmm. Yeah. Or even like, you know, notes about um what you wanna watch. Like you might put in there oh I want to watch such and such and look a Oh that's a good idea. So extra functionalities. Mm-hmm. Hmm. Um okay, uh I'd wel we're gonna have to wrap up pretty quickly in the next couple of minutes. Um I'll just check we've nothing else. Okay. Um so anything else anybody wants to add about what they don't like about remote controls they've used, what they would really like to be part of this new one at all? You keep losing them. Okay. Yeah. W You get those ones where you can, if you like, whistle or make a really high pitched noise they beep. There I mean is that something we'd want to include, do you think? Dunno. Okay maybe. My goodness. Still feels quite primitive. Maybe like a touch screen or something? Okay. Uh-huh, okay. Well I guess that's up to our industrial designer. It looks better. Yeah. Okay. Okay. Right, well um so just to wrap up, the next meeting's gonna be in thirty minutes. So that's about um about ten to twelve by my watch. Um so inbetween now and then, um as the industrial designer, you're gonna be working on you know the actual working design of it so y you know what you're doing there. Um for user interface, technical functions, I guess that's you know like what we've been talking about, what it'll actually do. Um and uh marketing executive, you'll be just thinking about what it actually what, you know, what requirements it has to has to fulfil and you'll all get instructions emailed to you, I guess. Um. Yeah, so it's th the functional design stage is next, I guess. And uh and that's the end of the meeting. So I got that little message a lot sooner than I thought I would, so Mm-hmm. Uh-huh, yeah. Th Okay, well just very quickly 'cause this we're supposed to finish now. Um I guess that's up to us, I mean you probably want some kind of unique selling point of it, so um, you know Yeah. Mm-hmm. Yeah. Okay. Right, okay, we'll that's that's the end of the meeting, then. Um. So, uh thank you all for coming. Um I'm Craig and I'm User Interface. Yeah. Well, my favourite animal would be a monkey. Then they're small cute and furry, and uh when planet of the apes becomes real, I'm gonna be up there with them. Yeah. I know um My parents went out and bought um remote controls because um they got fed up of having four or five different remote controls for each things the house. So um for them it was just how many devices control. Uh. Mm-hmm. Great. And I'm Andrew and I'm uh our marketing expert. Mm-hmm. Mm-hmm. Yeah, that's that's it. Yeah. I will go. That's fine. Alright. So This one here, right? Okay. Very nice. Alright. My favourite animal is like A beagle. Um charac favourite characteristics of it? Is that right? Uh, right, well basically um high priority for any animal for me is that they be willing to take a lot of physical affection from their family. And, yeah that they have lots of personality and uh be fit and in robust good health. So this is blue. Blue beagle. My family's beagle. I coulda told you a whole lot more about beagles. Boy, let me tell you. Impressionist. Alright. Mm. Superb sketch, by the way. Yep. I see a dog in there. Yep. Now I see a rooster. What kind is it? Is he aware that th it's his own cha tail he's chasing? Hmm. Probably when he was little he got lots of attention for doing it and has forever been conditioned. 'Kay. Um, can we just go over that again? Uh, so bas at twel Alright, yeah. Okay. So cost like production cost is twelve fifty, but selling price is is that wholesale or retail? Like on the shelf. Our sale our sale anyway. Yeah, okay okay. Okay. Mm-hmm. Alright. Yes. Mm-hmm. Mm-hmm. Well right away I'm wondering if there's um th th uh, like with D_V_D_ players, if there are zones. Um f frequencies or something um as well as uh characters, um different uh keypad styles and s symbols. Um. I don't know. Yeah. Yeah. Yeah. And then a and then al the other thing international is on top of the price. I'm thinking the price might might appeal to a certain market in one region, whereas in another it'll be different, so Just a chara just a characteristic of the Just Or just like, basic product podi positioning, the twenty five Euro remote control might be a big hit in London, might not be such a big hit in Greece, who knows, something like that, yeah. Yep. Right away I'm making some kind of assumptions about what what information we're given here, thinking, 'kay trendy probably means something other than just basic, something other than just standard. Um so I'm wondering right away, is selling twenty five Euros, is that sort of the thi is this gonna to be like the premium product kinda thing or Uh-huh. Mm-hmm. Yep. Yeah, I'd say so, yeah. No. Yeah, yeah. Mm-hmm. Do we have any other background information on like how that compares to other other Yeah. Mm-hmm. Yeah, interesting thing about discussing um production of a remote control for me is that l as you point out, I just don't think of remote controls as somethin something people consciously assess in their purchasing habits. It's just like getting shoelaces with shoes or something. It just comes along. Do you know what I mean? Like so sort of like how do you I I mean one one way of looking at it would be, well the people producing television sets, maybe they have to buy remote controls. Or another way is maybe people who have T_V_ sets are really fed up with their remote control and they really want a better one or something. But Right. Right. Okay so Right, so in function one of the priorities might be to combine as many uses I think so. Yeah, yeah. Yeah. Well like um, maybe what we could use is a sort of like a example of a successful other piece technology is palm palm pilots. They're gone from being just like little sort of scribble boards to cameras, M_P_ three players, telephones, everything, agenda. So, like, I wonder if we might add something new to the to the remote control market, such as the lighting in your house, or um Yeah, yeah. An Yeah. Like, p personally for me, at home I've I've combined the um the audio video of my television set and my D_V_D_ player and my C_D_ player. So they w all work actually function together but I have different remote controls for each of them. So it's sort of ironic that that then they're in there um you know, the sound and everything it's just one system. But each one's got its own little part. Mm. Mm. Mm. Mm-hmm. Mm-hmm. Yeah. Yeah. That's just really good id Yep. Uh, sure. I remember when the first remote control my my family had was on a cable. Actually had a cable between it and the T_V_ and big like buttons that sort of like, like on a blender or something. And um, you know, when I think about what they are now, it's better, but actually it's still kind of, I dunno, like a massive junky thing on the table. Maybe we could think about how, could be more, you know, streamlined. S Something like that, yeah. Or whatever would be technologically reasonable. 'Cause it could b it could it could be that f it could be that functionally that doesn't make it any better, but that just the appeal of of not having You know, these days there's a r pe things in people's homes are becoming more and more like chic, you know. Um, nicer materials and might be be worth exploring anyway. Okay. Um. Before we wrap up, just to make sure we're all on the same page here, um, do we We were given sort of an example of a coffee machine or something, right? Well, um are we at ma right now on the assumption that our television remote control may have features which go beyond the television? Or are we keeping sort of like a a design commitment to television features? I I don't know. Yep. Yeah, sure. Okay. Okay, yeah. Okay. Okay. Okay. Alright. ''' summarizer(text) ``` # Example 4 ```python from transformers import pipeline summarizer = pipeline("summarization", model="knkarthick/MEETING_SUMMARY") text = ''' Das : Hi and welcome to the a16z podcast. I’m Das, and in this episode, I talk SaaS go-to-market with David Ulevitch and our newest enterprise general partner Kristina Shen. The first half of the podcast looks at how remote work impacts the SaaS go-to-market and what the smartest founders are doing to survive the current crisis. The second half covers pricing approaches and strategy, including how to think about free versus paid trials and navigating the transition to larger accounts. But we start with why it’s easier to move upmarket than down… and the advantage that gives a SaaS startup against incumbents. David : If you have a cohort of customers that are paying you $10,000 a year for your product, you’re going to find a customer that self-selects and is willing to pay $100,000 a year. Once you get one of those, your organization will figure out how you sell to, how you satisfy and support, customers at that price point and that size. But it’s really hard for a company that sells up market to move down market, because they’ve already baked in all that expensive, heavy lifting sales motion. And so as you go down market with a lower price point, usually, you can’t actually support it. Das : Does that mean that it’s easier for a company to do this go-to-market if they’re a new startup as opposed to if they’re a pre-existing SaaS? Kristina : It’s culturally very, very hard to give a product away for free that you’re already charging for. It feels like you’re eating away at your own potential revenue when you do it. So most people who try it end up pulling back very quickly. David : This is actually one of the key reasons why the bottoms up SaaS motion is just so competitive, and compelling, and so destructive against the traditional sales-driven test motion. If you have that great product and people are choosing to use it, it’s very hard for somebody with a sales-driven motion, and all the cost that’s loaded into that, to be able to compete against it. There are so many markets where initially, we would look at companies and say, “Oh, well, this couldn’t possibly be bottoms up. It has to be sold to the CIO. It has to be sold to the CSO or the CFO.” But in almost every case we’ve been wrong, and there has been a bottoms up motion. The canonical example is Slack. It’s crazy that Slack is a bottoms up company, because you’re talking about corporate messaging, and how could you ever have a messaging solution that only a few people might be using, that only a team might be using? But now it’s just, “Oh, yeah, some people started using it, and then more people started using it, and then everyone had Slack.” Kristina : I think another classic example is Dropbox versus Box. Both started as bottoms up businesses, try before you buy. But Box quickly found, “Hey, I’d rather sell to IT.” And Dropbox said, “Hey, we’ve got a great freemium motion going.” And they catalyzed their business around referrals and giving away free storage and shared storage in a way that really helped drive their bottoms up business. Das : It’s a big leap to go from selling to smaller customers to larger customers. How have you seen SaaS companies know or get the timing right on that? Especially since it does seem like that’s really related to scaling your sales force? Kristina : Don’t try to go from a 100-person company to a 20,000-person company. Start targeting early adopters, maybe they’re late stage pre-IPO companies, then newly IPO’d companies. Starting in tech tends to be a little bit easier because they tend to be early adopters. Going vertical by vertical can be a great strategy as well. Targeting one customer who might be branded in that space, can help brand yourself in that category. And then all their competitors will also want your product if you do a good job. A lot of times people will dedicate a sales rep to each vertical, so that they become really, really knowledgeable in that space, and also build their own brand and reputation and know who are the right customers to target. Das : So right now, you’ve got a lot more people working remote. Does this move to remote work mean that on-premise software is dying? And is it accelerating the move to software as a service? Kristina : This remote work and working from home is only going to catalyze more of the conversion from on-premise over to cloud and SaaS. In general, software spend declines 20% during an economic downturn. This happened in ’08, this happened in ’01. But when we look at the last downturn in ’08, SaaS spend actually, for public companies, increased, on average, 10%, which means there’s a 30% spread, which really shows us that there was a huge catalyst from people moving on-premise to SaaS. David : And as people work remote, the ability to use SaaS tools is much easier than having to VPN back into your corporate network. We’ve been seeing that, inside sales teams have been doing larger and larger deals, essentially moving up market on the inside, without having to engage with field sales teams. In fact, a lot of the new SaaS companies today rather than building out a field team, they have a hybrid team, where people are working and closing deals on the inside and if they had to go out and meet with a customer, they would do that. But by and large, most of it was happening over the phone, over email, and over videoconferencing. And all the deals now, by definition, are gonna be done remote because people can’t go visit their customers in person. Das : So with bottoms up, did user behavior and buyer behavior change, so the go-to-market evolved? Or did the go-to-market evolve and then you saw user and buyer behavior change? I’m curious with this move to remote work. Is that going to trigger more changes or has the go-to-market enabled that change in user behavior, even though we see that change coming because of a lot of forces outside of the market? Kristina : I definitely think they are interrelated. But I do think it was a user change that catalyzed everything. We decided that we preferred better software, and we tried a couple products. We were able to purchase off our credit card. And then IT and procurement eventually said, “Wow, everyone’s buying these already, I might as well get a company license and a company deal so I’m not paying as much.” While obviously software vendors had to offer the products that could be self-served, users started to realize they had the power, they wanted to use better software, they paid with their credit cards. And now software vendors are forced to change their go-to-market to actually suit that use case. Das : If that’s the case that when user behavior has changed, it’s tended to be the catalyzing force of bigger changes in the go-to-market, what are some of the changes you foresee for SaaS because the world has changed to this new reality of remote work and more distributed teams? David : We’re in a very uncertain economic environment right now. And a couple of things will become very clear over the next 3 to 9 to 15 months — you’re going to find out which SaaS products are absolutely essential to helping a business operate and run, and which ones were just nice to have and may not get renewed. I think on the customer, buying side, you’re very likely to see people push back on big annual commitments and prefer to go month-to-month where they can. Or you’ll see more incentives from SaaS startups to offer discounts for annual contracts. You’re going to see people that might sign an annual contract, but they may not want to pay upfront. They may prefer to meter the cash out ratably over the term of the contract. And as companies had empowered and allowed budget authority to be pushed down in organizations, you’re gonna see that budget authority get pulled back, more scrutiny on spending, and likely a lot of SaaS products not get renewed that turned out to not be essential. Kristina : I think the smartest founders are making sure they have the runway to continue to exist. And they’re doing that in a couple of ways. They’re preserving cash, and they are making sure that their existing customers are super, super happy, because retaining your customers is so important in this environment. And they’re making sure that they have efficient or profitable customer acquisition. Don’t spend valuable dollars acquiring customers. But acquire customers efficiently that will add to a great existing customer base. Das : To go into pricing and packaging for SaaS for a moment, what are some of the different pricing approaches that you see SaaS companies taking? Kristina : The old school way of doing SaaS go-to-market is bundle everything together, make the pricing super complex, so you don’t actually understand what you’re paying for. You’re forced to purchase it because you need one component of the product. New modern SaaS pricing is keep it simple, keep it tied to value, and make sure you’re solving one thing really, really well. David : You want to make it easy for your customers to give you money. And if your customers don’t understand your pricing, that’s a huge red flag. Sometimes founders will try to over engineer their pricing model. Kristina : We talk a lot about everything has to be 10X better than the alternatives. But it’s much easier to be 10X better when you solve one thing very, very well, and then have simple pricing around it. I think the most common that most people know about is PEPM or per employee per month, where you’re charging basically for every single seat. Another really common model is the freemium model. So, think about a Dropbox, or an Asana, or a Skype, where it’s trigger based. You try the product for free, but when you hit a certain amount of storage, or a certain amount of users, then it converts over to paid. And then you also have a time trial, where you get the full experience of the product for some limited time period. And then you’re asked if you want to continue using the product to pay. And then there’s pay as go, and particularly, pay as you go as a usage model. So, Slack will say, “Hey, if your users aren’t actually using the product this month, we won’t actually charge you for it.” David : The example that Kristina made about Slack and users, everybody understands what a user is, and if they’re using the product, they pay for it, and if they’re not using it, they don’t pay for it. That’s a very friendly way to make it easy for your customers to give you money. If Slack came up with a pricing model that was like based on number of messages, or number of API integration calls, the customer would have no idea what that means. Kristina : There’s also the consumption model. So Twilio only charges you for every SMS text or phone call that you make on the platform any given month. And so they make money or lose money as your usage goes. The pricing is very aligned to your productivity. David : Generally, those are for products where the usage only goes in one direction. If you think of a company like Databricks, where they’re charging for storage, or Amazon’s S3 service, it is very aligned with the customer, but it also strategically aligns with the business because they know the switching cost is very high, the churn is very low. And generally, in those businesses, you’re only going to store more data, so they can charge based on usage or volume of data. Kristina : Recently, there’s been a huge trend of payment as a revenue. It’s particularly common in vertical markets where SaaS companies are adding payments as a revenue in addition to their employee or subscription revenue. If you look at Shopify, for example, more than 50% of their revenue is actually payment revenue. They’re making money every single time you purchase something off one of their shopping cart websites. Das : When you’re working with a founder or a SaaS startup, how have you seen them find the right pricing model for their product, for their market? Kristina : Step one is just talk to a lot of customers. Try to figure out what is the market pricing for possible alternatives or competitors, understand their pain points and their willingness to pay. And just throw a price out there, because you have to have a starting point in order to actually test and iterate. Particularly in the SMB, or the bottoms up business, you can test and iterate pretty quickly because you have so many data points. David : I always tell founders, step one is to just go out there and talk to customers. Step two is just double your prices. I don’t think there’s ever been a great company with a great product that’s fallen apart because their pricing was wrong. But a lot of SaaS startup founders really under price, and you don’t want to find out two or three years later that you were 200% underpriced. A very common thing that SaaS companies do, they’ll have the basic package that either is free or low cost, that you can just sign up online for. They’ll have a middle package where they share some pricing, and then they’ll have the enterprise package where you have to contact sales to find out more. And that way they don’t actually have to show the pricing for that third package. And that gives the salespeople the flexibility to adjust pricing on a per deal basis. Das : When you’re working with companies, why are they underpricing their products? David : I think it’s psychological. People need to price on value, and they don’t know how much value they’re delivering relative to “Oh, it only cost me $100 a month to provide this service, so I just need to charge $200.” But if it turns out you’re saving your customer $50,000 a year, then you’re wildly underpriced. You have to remember that SaaS is essentially a proxy for outsourced IT. You’re spending money on a SaaS service to not pay to develop something internally, or to have to pay IT to support something that’s more complex on-prem. Software is much cheaper than people, and so generally, the price point can be much higher. Kristina : And the other thing is your value increases over time. You’re delivering more features, more products, you understand the customer better. It’s the beauty of the SaaS model and cloud model that you can iterate and push code immediately, and the customer immediately sees value. A lot of times people have the same price point from the first customer sold to three years later and the 200th customer. Quite frankly, you’ve delivered so much value along the way that your price point should have gone up. The other thing I’ll say is a lot of people discount per seat pricing a lot as they move up market. We tend to tell people that the best validation of your product having great product market fit is your ability to hold your price point. So while there is some natural discounting on a per seat basis because people do deserve some volume discounting, I would say try to resist that as much as possible. Das : Especially for a technical founder, it’s so tempting to get in there and fiddle with these knobs. How do you know when it is time to experiment with your pricing and packaging? David : If you’re looking at your business and you see that you are doing more deals, and they’re closing faster, you should raise your pricing. And you pay attention to how long it takes to close deals and whether the number of deals is staying consistent as you do that. And, at some point, you’re going to find out when you’re losing deals on price. I think a moment where companies have to plan ahead to avoid having to course correct is after they roll out massive pricing and packaging changes, which are pretty natural as companies move up market. But how they navigate that transition to larger accounts, and how they either bring along or move away from those smaller, earlier customers who got them to where they are, tends to be really important because they can get a lot of noise on Twitter, they can get a lot of blowback from their customers. So Zendesk is a company where they rolled out a major packaging change. And when they rolled it out, they hadn’t planned on grandfathering in their early customers. They got a lot of pushback, and very quickly, they put out a blog post and said, “We hear what you’re saying, we appreciate you building the business that we’ve become today. We do need to have a package for the future. But all the people that have been customers so far will be grandfathered in for at least a period of time into the old model.” Kristina : If you iterate pricing constantly, you don’t really have this problem because your customers will be used to pricing changes. You normally pair them with new features, and it all kind of works out. But if you have to go through a big grandfather change, I tend to lean towards treating your early customers really, really well. They adopted when you weren’t a big company yet. They probably co-built the product with you in many ways. And so, it’s great to get more dollars out of your customer base, but treat your early customers well. Das : Are there any other failure modes that you see startups really falling into around pricing and packaging or any common mistakes that they make? David : I think a lot of founders don’t always map out the cost or model of their pricing and their product relative to their cost of actually doing sales and marketing and customer acquisition. Kristina : Inside sales is so popular in Silicon Valley. When you’re selling more to an SMB or mid-market type customer, the expectation is that you’re educating and helping the prospective customer over the phone. And so, you’re not expected to be as high touch. But 5K is almost the minimum price point you need to sell to the SMB with an inside sales team in order to pay for the outbound costs and all the conversions, because there is typically a team that sits around the quota carrying rep. And so, price matching — how much your price point is compared to what your go-to-market motion is — matters a lot. Other big failure modes that I see, people guess the ramp time of a sales rep wrong. And ramp time really ties to the segment of customer you’re selling into. It tends be that if you’re selling into the enterprise, the ramp time for sales reps, because sales cycles are so long, tend to be much longer as well. They could be six months plus, could be a year. While if you’re selling more into SMB or mid-market, the ramp time to get a rep up and running can be much shorter, three to six months. Because the sales cycles are shorter, they just iterate much faster, and they ramp up much more quickly. David : The other thing that people have to understand is that sales velocity is a really important component to figuring out how many reps you should be hiring, whether they should be inside reps or field reps. If it takes you 90 days to close a deal, that can’t be a $5,000 a year deal, that has to be a $50,000 or even $150,000 a year deal. Das : Kristina, I know you’ve done a lot of work with metrics. So how do those play in? Kristina : Probably the one way to sum it all together is how many months does it take to pay back customer acquisition cost. Very commonly within the SaaS world, we talk about a 12-month CAC payback. We typically want to see for every dollar you spend on sales and marketing, you get a dollar back within a year. That means you can tweak the inputs any way you want. Let’s say that doing paid acquisition is really effective for you. Then, you can spend proportionally more on paid acquisition and less on sales reps. Vice versa, if you have a great inbound engine, you actually can hire a lot more sales reps and spend more on sales headcount. With all formulas, it’s a guide rail, so if you have customers that retain really, really well, let’s say you’re selling to the enterprise, and you’ve got a 90% or 95% annual retention rate, then your CAC payback could be between 12 and 24 months. But let’s say you’re selling to the SMB and churn is 2% or 3% monthly, which ends up being like 80% to 90% annual retention. Then, because your customer is less sticky, I would recommend looking at a CAC payback of 6 to 12 months. Das : How should you think about doing a free trial versus a paid trial? David : On the one hand, the bottoms up motion where people can try essentially a full version of a product before they buy it is extremely powerful. On the other hand, I’ve started to try to think about how I advise companies, when they are thinking about a free trial for something that might cost $100,000 or $200,000 a year? Do we do a paid pilot that has some sort of contractual obligation that if we meet then turns into a commercial engagement? Kristina : I do think the beauty of the bottoms up business is that you can get people to try the entire experience of the product for free, and they fall in love with it, and a certain percentage will convert. And that works really, really well for products that can self-serve. When you start moving up market to more complex products, the challenge with trials is it takes work to actually implement the product, whether it be integrations, IT has to give access, etc. You lose that self-serve ability, which is so amazing in the trial. And so, I tend to be more in the camp of paid trials, if it costs you money to actually deploy the trial. And when you’re selling to bigger customers, they associate value when they have to pay. Once a customer has to pay you, then they feel a need to make the project successful and thus they will onboard, schedule things, give you data and access. David : If you can get to a point where you get the customer to do that paid pilot, such that the only difference between a pilot and an actual customer is just the signing of a contract, that’s very powerful. Now, that does force you to have a really good pre-sales motion to make sure that you can deliver on the promise you’ve made your customers. When companies don’t have a great product, and they paper over it with professional services and sales engineering and post-sales support, that paid pilot thing doesn’t work because the experience isn’t good enough. So, it really is incumbent on the SaaS company that does a paid pilot to make sure that they are able to deliver on that experience. Kristina : And one emerging trend recently is people signing an annual contract with a one or three month out, as a replacement to the paid pilot. Because it’s the best of both worlds, the SaaS company that’s selling the product gets a higher level of commitment. And the customer gets the optionality of opting out in the same way as a trial without any clawback. It really comes down to where procurement falls. Sometimes procurement is at the beginning of that decision, which makes it more like an annual contract. Sometimes procurement is at the one or three month opt-out period, which means the customer already has a great experience, loves the product, and it is an easier way to convert procurements to actually sign on… David : And that is a really good segue into renewals. I always tell founders, you might have this subscription business, but it’s not a recurring revenue business until the second year when the revenue actually recurs. I think you really have the first three months to get a customer up and running and happy. And if they’re not, you then have about three months to fix it. And if all that works out, then the remaining six months of the contract can be focused on upsell and expansion. Das : Awesome. Thank you, Kristina. Thank you, David. Kristina : Thanks so much for having us. This was fun. David : Yeah, a lot of fun, great topics, and our favorite thing to talk about. ''' summarizer(text) ```
[ -0.7793405055999756, -0.49095797538757324, 0.34209251403808594, 0.15559591352939606, -0.3361978828907013, -0.03889239579439163, -0.016362158581614494, -0.5257119536399841, 0.5639814734458923, 0.20337285101413727, -0.27510765194892883, -0.13732589781284332, -0.29372990131378174, -0.03686997666954994, -0.10550940781831741, 0.6873135566711426, -0.037702422589063644, -0.3296539783477783, 0.23208649456501007, 0.005080530419945717, -0.6755548119544983, -0.4374406635761261, -0.5599572062492371, -0.15777607262134552, 0.37555792927742004, 0.22404681146144867, 0.5122287273406982, 0.6510736346244812, 0.4031924307346344, 0.3566664457321167, -0.1950141042470932, 0.2264709770679474, -0.3755101263523102, -0.31311845779418945, -0.11071507632732391, -0.3237416446208954, -0.3341248035430908, 0.07395873963832855, 0.4122261703014374, 0.7104969024658203, -0.11897708475589752, 0.18924149870872498, 0.01896696723997593, 0.7561657428741455, -0.3128200173377991, 0.406498521566391, -0.21025586128234863, 0.09959516674280167, 0.0448315367102623, -0.2773071825504303, -0.08148084580898285, -0.574682354927063, -0.15707360208034515, -0.4753021001815796, 0.1155986487865448, 0.2892182171344757, 1.3185679912567139, 0.0902186930179596, -0.33120763301849365, -0.2666874825954437, -0.6485139727592468, 0.8619176745414734, -0.26040172576904297, 0.214336097240448, 0.3715118169784546, 0.20326554775238037, -0.29303306341171265, -0.46777814626693726, -0.21139831840991974, -0.366709440946579, -0.3752824068069458, 0.3343261480331421, -0.21693557500839233, -0.08910617977380753, 0.3730412423610687, 0.31783005595207214, -0.5272790789604187, -0.09435493499040604, -0.6765236854553223, -0.1860603541135788, 0.5972050428390503, 0.032565776258707047, 0.31845584511756897, -0.5253558158874512, -0.5276764631271362, 0.06801549345254898, -0.389120876789093, 0.29075491428375244, 0.16216731071472168, 0.26535743474960327, -0.1225883737206459, 0.41892164945602417, -0.14690911769866943, 0.3535928428173065, 0.2995765209197998, -0.019616397097706795, 0.12401201575994492, -0.4957709312438965, -0.1950760930776596, -0.00109569588676095, 0.5680309534072876, 0.6246533989906311, 0.24102932214736938, -0.05131983011960983, 0.1518251597881317, 0.14037489891052246, 0.12022234499454498, -0.6299933791160583, -0.022632496431469917, 0.4561833143234253, -0.7412734627723694, -0.294270396232605, 0.00655114371329546, -0.4983462691307068, -0.09732057899236679, -0.3366009593009949, 0.24094945192337036, -0.24848851561546326, -0.35795313119888306, 0.2165355533361435, -0.45864424109458923, 0.3992445766925812, 0.34512147307395935, -0.9437741041183472, 0.17226289212703705, 0.5098541975021362, 0.6504319310188293, 0.1128857284784317, -0.13763591647148132, -0.13439196348190308, 0.10002556443214417, -0.8204143047332764, 0.7140374183654785, 0.02477487362921238, -0.5606989860534668, -0.2452949583530426, 0.08649849891662598, 0.2524031102657318, -0.6047326326370239, 0.4179266095161438, -0.2969806492328644, 0.010225924663245678, -0.4977749288082123, -0.25082746148109436, -0.018817627802491188, 0.06976638734340668, -0.3753235638141632, 0.5876340270042419, 0.025408469140529633, -0.5915941596031189, 0.4532335102558136, -0.4215886890888214, -0.5755211710929871, 0.19354180991649628, -0.18020561337471008, -0.008666486479341984, 0.3267800807952881, 0.014832478947937489, 0.301555871963501, -0.3819667398929596, 0.06812764704227448, -0.11933430284261703, -0.23468878865242004, 0.2074105441570282, 0.27508464455604553, 0.837027370929718, 0.42097362875938416, -0.11327538639307022, -0.3034752309322357, -0.7357308268547058, 0.1175585687160492, 0.014594052918255329, -0.3919019103050232, -0.21879689395427704, 0.12384180724620819, -0.18730640411376953, 0.2105575054883957, 0.3750283420085907, -0.48241937160491943, 0.25473159551620483, -0.32030558586120605, 0.5497150421142578, 0.7731189131736755, 0.15737447142601013, 0.5125188231468201, -0.7219974994659424, 0.46342769265174866, -0.24445918202400208, 0.1925780326128006, 0.010025540366768837, -0.2945195734500885, -0.6218168139457703, -0.31088945269584656, 0.16536672413349152, 0.5927271246910095, -0.06379537284374237, 0.3041256368160248, -0.07395972311496735, -0.5102424025535583, -0.29585567116737366, -0.22555457055568695, 0.2833203375339508, 0.2726197838783264, -0.08993573486804962, -0.4169245958328247, -0.6775439381599426, -0.8400741815567017, 0.03834882006049156, -0.48683109879493713, 0.016518425196409225, 0.5110512375831604, 0.44276726245880127, 0.08367371559143066, 0.872340202331543, -0.7578456401824951, -0.33677786588668823, -0.21755605936050415, 0.18771778047084808, 0.5386011004447937, 0.4707356095314026, 0.6182090640068054, -0.8107663989067078, -0.5484336614608765, 0.22039158642292023, -0.7718758583068848, -0.06283798813819885, -0.28534507751464844, -0.4442068040370941, -0.013113930821418762, 0.3020264804363251, -1.0510612726211548, 0.32698318362236023, -0.08729294687509537, -0.096821129322052, 0.754684329032898, -0.25041016936302185, 0.2519069015979767, -1.0184913873672485, 0.2421121597290039, -0.3376097083091736, 0.14728832244873047, -0.5263073444366455, 0.04732198640704155, -0.32399165630340576, -0.18868090212345123, -0.37031126022338867, 0.4899715483188629, -0.4631776809692383, -0.06802771240472794, -0.028915537521243095, 0.2734014689922333, 0.12830299139022827, 0.5156673789024353, -0.16498838365077972, 0.3517307639122009, 0.4167047441005707, -0.7301353216171265, 0.4542832374572754, 0.39423877000808716, -0.46861353516578674, 0.5618720650672913, -0.598696231842041, -0.1083516851067543, -0.3857181668281555, 0.14729657769203186, -0.9188726544380188, -0.18684104084968567, 0.25085437297821045, -0.7209019064903259, 0.17442889511585236, 0.1698804348707199, -0.2492547184228897, -0.6319959759712219, -0.28445178270339966, -0.024401109665632248, 0.5597971677780151, -0.10452360659837723, 0.6162738800048828, 0.39013609290122986, -0.3857342004776001, -0.4257889688014984, -0.8535454273223877, 0.04676411300897598, -0.18917027115821838, -0.6301477551460266, 0.5333171486854553, -0.36307936906814575, -0.5153830647468567, 0.03784075751900673, -0.2127360701560974, -0.27878737449645996, -0.07071635872125626, 0.3922402560710907, 0.1321561634540558, 0.04784298315644264, -0.05184172838926315, -0.10101337730884552, -0.2820979952812195, 0.07785718142986298, -0.09128792583942413, 0.36586204171180725, -0.24259904026985168, -0.05618230998516083, -0.7356809377670288, 0.34203600883483887, 0.7681547999382019, -0.031695298850536346, 0.2525504231452942, 0.25921523571014404, -0.2569127082824707, -0.005359453149139881, -0.4482324719429016, -0.0737709254026413, -0.4321666359901428, 0.3187147080898285, -0.5127988457679749, -0.36934730410575867, 0.5757592916488647, -0.0346965454518795, 0.23959201574325562, 0.3761444687843323, 0.48784366250038147, -0.422797828912735, 0.7472851872444153, 0.7573028802871704, -0.15040798485279083, 0.33622443675994873, -0.26416119933128357, 0.5050833821296692, -0.45732563734054565, -0.32694587111473083, -0.4426020681858063, -0.3831910789012909, -0.6549025177955627, -0.003598952665925026, 0.06423654407262802, 0.1608278751373291, -0.37720179557800293, 0.5766320824623108, -0.4949144124984741, 0.16798003017902374, 0.5268950462341309, -0.027346139773726463, 0.21785378456115723, -0.08400272578001022, 0.028290264308452606, -0.11113731563091278, -0.5434069037437439, -0.35559555888175964, 0.522117018699646, 0.21901075541973114, 0.7892084121704102, 0.1575201004743576, 0.6704647541046143, 0.3059859573841095, -0.21931514143943787, -0.539842426776886, 0.6504888534545898, 0.0236845463514328, -0.8742398023605347, -0.12863661348819733, -0.166264146566391, -0.9284238815307617, 0.2306966483592987, 0.1268414705991745, -0.6108233332633972, 0.5829510688781738, 0.09112904965877533, -0.6877676248550415, 0.16302557289600372, -0.72476726770401, 0.5469591617584229, -0.49872615933418274, -0.46933144330978394, -0.2239319384098053, -0.6124027967453003, 0.1992117166519165, -0.0020090399775654078, 0.5794678926467896, -0.29189640283584595, 0.14021629095077515, 0.5409268736839294, -0.5111393332481384, 0.6620690822601318, 0.05678514391183853, 0.2493342012166977, 0.5296763777732849, 0.01603199914097786, 0.25584694743156433, 0.017847277224063873, -0.09686797112226486, -0.11695560812950134, 0.028557755053043365, -0.3743835687637329, -0.4535500705242157, 0.5621662735939026, -0.8367350101470947, -0.37658971548080444, -0.5426939129829407, -0.41945919394493103, 0.3830244839191437, 0.23150116205215454, 0.35934707522392273, 0.5399593710899353, -0.14142191410064697, -0.01691153086721897, 0.31170371174812317, -0.46259763836860657, 0.5524875521659851, 0.38857319951057434, -0.4117620885372162, -0.4739331305027008, 0.815514862537384, 0.20831052958965302, 0.2644345164299011, 0.5466593503952026, 0.2140069454908371, -0.1538071185350418, -0.04176483303308487, -0.2186719924211502, 0.18594153225421906, -0.49210357666015625, -0.0012730653397738934, -0.43427416682243347, -0.10996637493371964, -0.2620428800582886, -0.4619106352329254, -0.25582146644592285, -0.2652757465839386, -0.2646580934524536, -0.033716700971126556, 0.140142023563385, 0.6669761538505554, -0.476479172706604, -0.08891505002975464, -0.34492889046669006, 0.28973886370658875, 0.35740768909454346, 0.07093174755573273, -0.02805483527481556, -0.4045082628726959, -0.1207936555147171, -0.08819165825843811, -0.24929319322109222, -0.6617941856384277, 0.5659584999084473, -0.0468490794301033, 0.4674718677997589, 0.622904360294342, 0.005781680811196566, 0.7444416880607605, -0.41005486249923706, 0.6133578419685364, 0.15821047127246857, -0.5176167488098145, 0.4581804573535919, -0.2860025465488434, 0.171412855386734, 0.3153489828109741, 0.38442492485046387, -0.44603556394577026, -0.07550863176584244, -0.6281266212463379, -0.7604599595069885, 0.41928499937057495, 0.19996872544288635, 0.06705930083990097, 0.0912991613149643, 0.3941115140914917, -0.10194141417741776, 0.6416755318641663, -0.760635256767273, -0.535391628742218, -0.1679276078939438, 0.5208548903465271, 0.081296406686306, -0.23749716579914093, 0.03365253657102585, -0.4387505352497101, 0.512934684753418, 0.37452569603919983, 0.6698232293128967, 0.051461707800626755, 0.22416932880878448, -0.18748126924037933, 0.25921469926834106, 0.5128985047340393, 0.8178001642227173, -0.3897203207015991, 0.02697945013642311, 0.3121519684791565, -0.2531408369541168, 0.0935843214392662, 0.0214972086250782, -0.0687229260802269, 0.14592719078063965, 0.19268114864826202, 0.663962721824646, 0.07017599046230316, -0.5054364800453186, 0.2362217754125595, 0.16050206124782562, -0.10997770726680756, -0.4330923557281494, -0.2993009686470032, 0.07624326646327972, 0.16222767531871796, 0.4895366430282593, 0.03275056928396225, -0.05623473972082138, -0.6854614615440369, 0.21640467643737793, 0.4767310917377472, -0.13760489225387573, -0.19089309871196747, 0.5851386785507202, 0.17913687229156494, -0.2696954011917114, 0.4203318655490875, -0.5177446603775024, -0.45440804958343506, 0.8957245945930481, 0.43292853236198425, 0.6000500321388245, -0.05558951944112778, 0.33664077520370483, 0.5104382038116455, 0.5553264617919922, 0.28330421447753906, 0.6210373640060425, -0.04998211935162544, -0.29526230692863464, -0.28974416851997375, -0.8891689777374268, -0.2162647694349289, 0.1127886101603508, -0.45915544033050537, 0.6602163314819336, -0.559299647808075, -0.2578262388706207, -0.13001441955566406, 0.2671136260032654, -0.3263324499130249, 0.12731751799583435, 0.13655520975589752, 0.7796180248260498, -0.8311653137207031, 0.1971338838338852, 0.7352689504623413, -0.6469687819480896, -0.6764190793037415, -0.2885037958621979, -0.2967810034751892, -0.6368401646614075, 0.7266587615013123, 0.10899152606725693, 0.03699919953942299, -0.012465901672840118, -0.4482434391975403, -1.0912612676620483, 0.9715573787689209, -0.021458374336361885, -0.5108597874641418, -0.13196034729480743, 0.1798321157693863, 0.4829699993133545, -0.13286322355270386, 0.15310901403427124, 0.3239687383174896, 0.47025489807128906, 0.13787560164928436, -0.8915082216262817, 0.00006091725663281977, -0.20308631658554077, 0.1287093162536621, 0.29020994901657104, -1.0148564577102661, 0.8909880518913269, -0.48051631450653076, -0.2782006859779358, 0.20423556864261627, 0.5698884725570679, 0.027833689004182816, 0.03142746910452843, 0.3506656587123871, 0.4749676287174225, 0.6499866247177124, -0.15606532990932465, 0.7977028489112854, -0.38021335005760193, 0.31348174810409546, 0.6065695285797119, -0.06641489267349243, 0.6780797839164734, 0.14892517030239105, -0.5465474724769592, 0.47622790932655334, 0.8607392311096191, -0.23841087520122528, 0.6615726351737976, 0.383254736661911, -0.1884036362171173, 0.04429462552070618, -0.29776719212532043, -0.6226027011871338, 0.36241447925567627, 0.09322651475667953, -0.1952308863401413, -0.22301267087459564, 0.12009155005216599, 0.06579268723726273, -0.3087483048439026, -0.3211950659751892, 0.47808021306991577, 0.25466427206993103, -0.4903082549571991, 0.6263887882232666, -0.08331874012947083, 0.24126161634922028, -0.742785632610321, 0.18967778980731964, -0.23750008642673492, 0.1915683150291443, -0.21745918691158295, -0.6018655896186829, 0.31815919280052185, -0.35304713249206543, -0.42039409279823303, -0.4249763786792755, 0.4821881055831909, -0.17321623861789703, -0.29274699091911316, 0.1706804782152176, 0.1797982156276703, 0.538859486579895, -0.014669743366539478, -0.5007537603378296, 0.29358938336372375, 0.0444401390850544, 0.10977652668952942, 0.13740019500255585, 0.29551324248313904, 0.11007260531187057, 0.533807635307312, 0.4408973157405853, 0.05466923117637634, -0.03480951115489006, -0.3417012095451355, 0.6175624132156372, -0.6904473304748535, -0.5902906060218811, -0.6637895107269287, 0.6274845004081726, -0.021278442814946175, -0.2736643850803375, 0.582048237323761, 0.6082426905632019, 0.545904278755188, -0.15845851600170135, 0.8544512391090393, -0.7493160367012024, 0.3834494650363922, -0.0871494710445404, 0.6118521094322205, -0.5715834498405457, -0.03330589085817337, -0.3280535638332367, -0.7760621905326843, -0.05927743390202522, 0.7933123707771301, -0.21320433914661407, 0.03362656384706497, 0.7530437111854553, 0.7647863626480103, 0.25300008058547974, -0.058034442365169525, 0.21341946721076965, 0.4816005527973175, 0.19722507894039154, 0.5328741669654846, 0.9082961082458496, -0.26902931928634644, 0.6810238361358643, -0.4831569194793701, -0.6123847365379333, -0.2504497468471527, -0.8199678659439087, -0.6146343946456909, -0.6309398412704468, -0.3002122938632965, -0.3015235960483551, 0.05629462003707886, 0.789578378200531, 0.6576034426689148, -0.6706286072731018, -0.6088641881942749, -0.1292220652103424, 0.09805872291326523, -0.31697189807891846, -0.18795998394489288, 0.36442700028419495, -0.13864029943943024, -0.5489053726196289, 0.04683943837881088, 0.29131725430488586, 0.04378291592001915, -0.16824348270893097, 0.2800264060497284, -0.23563656210899353, 0.03168219327926636, 0.8306854963302612, 0.5940765142440796, -0.6345758438110352, -0.1525607854127884, 0.09011007845401764, -0.23476211726665497, 0.0830390676856041, 0.3487562835216522, -0.5706729292869568, 0.3399050235748291, 0.5784733891487122, 0.13002091646194458, 0.49109533429145813, 0.23752740025520325, 0.25576379895210266, -0.11596790701150894, -0.059244487434625626, -0.1309790313243866, 0.2337486892938614, 0.12967580556869507, -0.3212908208370209, 0.2737042307853699, 0.42783766984939575, -0.8266925811767578, -0.5636581778526306, 0.3143619894981384, -1.0800395011901855, -0.2707321047782898, 0.8582195043563843, 0.36991068720817566, -0.2394598424434662, -0.164632186293602, -0.6542068123817444, 0.1587628424167633, -0.30206599831581116, 0.7788923382759094, 0.7099708318710327, -0.5322604775428772, 0.2640315890312195, -0.7592648267745972, 0.3614193797111511, 0.21610158681869507, -0.5526936054229736, -0.20735527575016022, 0.41506144404411316, 0.3295626938343048, 0.5461156368255615, 0.8029114007949829, 0.012168394401669502, 0.21425920724868774, 0.07285495847463608, 0.322359174489975, 0.22590358555316925, -0.23111848533153534, 0.052787888795137405, 0.324121356010437, -0.014254330657422543, -0.5922240018844604 ]
timm/ViT-B-16-SigLIP-256
timm
"2023-10-25T21:57:36Z"
32,863
0
open_clip
[ "open_clip", "clip", "siglip", "zero-shot-image-classification", "dataset:webli", "arxiv:2303.15343", "license:apache-2.0", "region:us" ]
zero-shot-image-classification
"2023-10-16T23:16:55Z"
--- tags: - clip - siglip library_name: open_clip pipeline_tag: zero-shot-image-classification license: apache-2.0 datasets: - webli --- # Model card for ViT-B-16-SigLIP-256 A SigLIP (Sigmoid loss for Language-Image Pre-training) model trained on WebLI. This model has been converted to PyTorch from the original JAX checkpoints in [Big Vision](https://github.com/google-research/big_vision). These weights are usable in both OpenCLIP (image + text) and timm (image only). ## Model Details - **Model Type:** Contrastive Image-Text, Zero-Shot Image Classification. - **Original:** https://github.com/google-research/big_vision - **Dataset:** WebLI - **Papers:** - Sigmoid loss for language image pre-training: https://arxiv.org/abs/2303.15343 ## Model Usage ### With OpenCLIP ``` import torch import torch.nn.functional as F from urllib.request import urlopen from PIL import Image from open_clip import create_model_from_pretrained, get_tokenizer # works on open-clip-torch>=2.23.0, timm>=0.9.8 model, preprocess = create_model_from_pretrained('hf-hub:timm/ViT-B-16-SigLIP-256') tokenizer = get_tokenizer('hf-hub:timm/ViT-B-16-SigLIP-256') image = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) image = preprocess(image).unsqueeze(0) labels_list = ["a dog", "a cat", "a donut", "a beignet"] text = tokenizer(labels_list, context_length=model.context_length) with torch.no_grad(), torch.cuda.amp.autocast(): image_features = model.encode_image(image) text_features = model.encode_text(text) image_features = F.normalize(image_features, dim=-1) text_features = F.normalize(text_features, dim=-1) text_probs = torch.sigmoid(image_features @ text_features.T * model.logit_scale.exp() + model.logit_bias) zipped_list = list(zip(labels_list, [round(p.item(), 3) for p in text_probs[0]])) print("Label probabilities: ", zipped_list) ``` ### With `timm` (for image embeddings) ```python from urllib.request import urlopen from PIL import Image import timm image = Image.open(urlopen( 'https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/beignets-task-guide.png' )) model = timm.create_model( 'vit_base_patch16_siglip_256', pretrained=True, num_classes=0, ) 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(image).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor ``` ## Citation ```bibtex @article{zhai2023sigmoid, title={Sigmoid loss for language image pre-training}, author={Zhai, Xiaohua and Mustafa, Basil and Kolesnikov, Alexander and Beyer, Lucas}, journal={arXiv preprint arXiv:2303.15343}, year={2023} } ``` ```bibtex @misc{big_vision, author = {Beyer, Lucas and Zhai, Xiaohua and Kolesnikov, Alexander}, title = {Big Vision}, year = {2022}, publisher = {GitHub}, journal = {GitHub repository}, howpublished = {\url{https://github.com/google-research/big_vision}} } ```
[ -0.41379138827323914, -0.5467138290405273, 0.20810675621032715, 0.23947061598300934, -0.47540712356567383, -0.31575754284858704, -0.40400031208992004, -0.4158128499984741, 0.3305756449699402, 0.2527496814727783, -0.5418440103530884, -0.806770384311676, -0.762789249420166, -0.1826007217168808, 0.051724810153245926, 1.250375509262085, -0.16368673741817474, 0.05143708363175392, -0.07774863392114639, -0.5276873111724854, -0.13844870030879974, -0.4463634490966797, -0.57026207447052, -0.32331395149230957, 0.42910197377204895, 0.11271943897008896, 0.5598921179771423, 0.48602578043937683, 0.7048912644386292, 0.35963597893714905, -0.07644790410995483, -0.003956149332225323, -0.47859135270118713, -0.35174673795700073, 0.11925417929887772, -0.6209045052528381, -0.5220751166343689, 0.2008310705423355, 0.7790058255195618, 0.40577271580696106, 0.1075706034898758, 0.49164900183677673, 0.1083676740527153, 0.3765621781349182, -0.5035880208015442, 0.29319822788238525, -0.46486586332321167, 0.15983082354068756, -0.2588125765323639, -0.0605032853782177, -0.37721148133277893, -0.37394067645072937, 0.23731032013893127, -0.6052793860435486, 0.2924354374408722, -0.06279225647449493, 1.5110715627670288, 0.17670880258083344, -0.03716683015227318, -0.17884516716003418, -0.42766985297203064, 0.7847155332565308, -0.8127700090408325, 0.40191906690597534, 0.2547198534011841, -0.06048855185508728, -0.03266259282827377, -0.9066122770309448, -0.6291514039039612, -0.11488105356693268, -0.06885562837123871, 0.13667508959770203, -0.2564081847667694, 0.0610855333507061, 0.36968493461608887, 0.3908888101577759, -0.6167584657669067, -0.0904969871044159, -0.603688657283783, -0.3525537848472595, 0.5817639827728271, -0.0898747444152832, 0.42026835680007935, -0.22755028307437897, -0.5358060598373413, -0.4866221845149994, -0.3951709270477295, 0.05985609069466591, 0.32668688893318176, 0.012291686609387398, -0.6505767703056335, 0.6149224638938904, 0.18806752562522888, 0.7036253809928894, 0.18111208081245422, -0.4422055184841156, 0.8396496772766113, -0.23565493524074554, -0.459186851978302, -0.09164995700120926, 1.1324760913848877, 0.5180655717849731, 0.24165958166122437, 0.13145965337753296, 0.10313209891319275, -0.20497411489486694, -0.3089652359485626, -1.2016726732254028, -0.526649534702301, 0.054783280938863754, -0.5179684162139893, -0.22835582494735718, 0.24873539805412292, -0.6785929203033447, -0.13907253742218018, 0.045966736972332, 0.7552971243858337, -0.6131476163864136, -0.3375629484653473, 0.15629373490810394, -0.16638068854808807, 0.3867701292037964, 0.11696969717741013, -0.6896927952766418, 0.0011154868407174945, 0.0870136097073555, 1.18168306350708, 0.09909418225288391, -0.49173569679260254, -0.35676339268684387, 0.007213635835796595, -0.19387009739875793, 0.4589119553565979, -0.1449774205684662, -0.1778431534767151, -0.32930582761764526, 0.3678463399410248, -0.35148924589157104, -0.4951079189777374, 0.3709828555583954, -0.17979562282562256, 0.3968389332294464, -0.08557940274477005, -0.24124716222286224, -0.41669976711273193, 0.2607288658618927, -0.41837936639785767, 1.0527026653289795, 0.19636599719524384, -1.0663036108016968, 0.52015221118927, -0.5203353762626648, -0.17910970747470856, -0.08556108176708221, -0.1832631528377533, -1.0588678121566772, -0.03327737748622894, 0.40495139360427856, 0.6842838525772095, -0.21634744107723236, 0.05598456785082817, -0.6377886533737183, -0.30234137177467346, 0.22534596920013428, -0.1333838850259781, 1.105323314666748, -0.014212298206984997, -0.5267864465713501, 0.24425248801708221, -0.5582413077354431, 0.12555132806301117, 0.4143420457839966, -0.2595282196998596, -0.21960783004760742, -0.5026532411575317, 0.19650156795978546, 0.2461269497871399, 0.25244319438934326, -0.667239248752594, 0.3508912920951843, -0.3977934420108795, 0.45807787775993347, 0.6417914628982544, -0.09369149804115295, 0.31176483631134033, -0.1646064817905426, 0.3469040095806122, 0.31065452098846436, 0.2414679080247879, -0.015264847315847874, -0.6195299029350281, -0.8499186635017395, -0.6602074503898621, 0.3919774889945984, 0.4194202423095703, -0.6173412799835205, 0.5647428631782532, -0.2735340893268585, -0.7890219688415527, -0.6655061841011047, 0.01685258187353611, 0.5560752749443054, 0.463388055562973, 0.36112740635871887, -0.5972825288772583, -0.5466173887252808, -0.8500547409057617, 0.08562197536230087, -0.07701654732227325, 0.03911295160651207, 0.3636009395122528, 0.7535778880119324, -0.415913462638855, 0.6603664755821228, -0.7232199311256409, -0.5093013644218445, -0.16068251430988312, 0.20532646775245667, 0.3656337857246399, 0.7793459892272949, 0.8861934542655945, -0.6580309271812439, -0.4660649597644806, -0.14302337169647217, -0.8633978366851807, 0.09734602272510529, -0.008311659097671509, -0.25993749499320984, 0.3274178206920624, 0.3284496068954468, -0.762067437171936, 0.7637354135513306, 0.4919784367084503, -0.4201294481754303, 0.5158681273460388, -0.3570002019405365, 0.23985226452350616, -1.2162878513336182, 0.27671802043914795, 0.23273703455924988, -0.03974752873182297, -0.327764093875885, -0.07646655291318893, 0.012232913635671139, -0.028118392452597618, -0.46686163544654846, 0.7099472880363464, -0.5848434567451477, -0.22747930884361267, 0.05049467831850052, -0.144793301820755, 0.11866219341754913, 0.7554688453674316, -0.006366902031004429, 0.7066652774810791, 0.7213305830955505, -0.4690055251121521, 0.43534767627716064, 0.48002222180366516, -0.31415969133377075, 0.5491008162498474, -0.7594877481460571, 0.06811156868934631, -0.15416358411312103, 0.32379230856895447, -1.0082972049713135, -0.3455810546875, 0.5565803647041321, -0.7371991872787476, 0.4139728546142578, -0.4897031784057617, -0.47458118200302124, -0.5979342460632324, -0.5190246105194092, 0.5317521095275879, 0.5394271016120911, -0.6128956079483032, 0.3662983179092407, 0.3327857553958893, 0.12381284683942795, -0.5616055727005005, -0.9531205296516418, -0.2624414265155792, -0.25434067845344543, -0.6551080942153931, 0.5471439957618713, -0.22318550944328308, 0.24602968990802765, 0.10074002295732498, -0.013742748647928238, -0.019345171749591827, -0.23189938068389893, 0.5143826603889465, 0.41281160712242126, -0.31164124608039856, -0.058211568742990494, -0.2412617951631546, 0.022353431209921837, -0.04933864623308182, -0.32465478777885437, 0.8713411092758179, -0.2882355749607086, -0.2525845170021057, -0.7920054197311401, -0.24074873328208923, 0.5208325982093811, -0.33325788378715515, 0.9070889353752136, 1.2804992198944092, -0.4466991722583771, 0.2302991896867752, -0.5517957210540771, -0.0831117331981659, -0.495295912027359, 0.5737804770469666, -0.3926580846309662, -0.5120190382003784, 0.7803751230239868, 0.190507709980011, -0.00941382348537445, 0.7557936906814575, 0.7020422220230103, -0.012553020380437374, 0.9468551278114319, 0.7223526835441589, -0.006749283988028765, 0.7979697585105896, -0.8616294264793396, -0.07849250733852386, -0.9662424325942993, -0.48227396607398987, -0.26827099919319153, -0.3208434581756592, -0.5644471645355225, -0.5849385261535645, 0.4627423882484436, 0.29816657304763794, -0.3704543113708496, 0.41033390164375305, -0.7944150567054749, 0.20419883728027344, 0.741176962852478, 0.4588959217071533, -0.18826958537101746, 0.3160552382469177, -0.2706030309200287, -0.0857536718249321, -0.6868566274642944, -0.20034539699554443, 1.1568098068237305, 0.4559828042984009, 0.7904291152954102, -0.16971427202224731, 0.7896142601966858, -0.21028907597064972, 0.23248662054538727, -0.6222999691963196, 0.5927473306655884, -0.016930270940065384, -0.4915657043457031, -0.21298335492610931, -0.43518418073654175, -1.0627321004867554, 0.09237848967313766, -0.30887308716773987, -0.952176570892334, 0.16623762249946594, 0.21971549093723297, -0.2221909761428833, 0.6116690039634705, -0.853400468826294, 1.0754263401031494, -0.12144533544778824, -0.42000460624694824, 0.10897012054920197, -0.6043732166290283, 0.28798219561576843, 0.31460800766944885, -0.1706593930721283, -0.11805703490972519, 0.19468699395656586, 1.2493388652801514, -0.498678982257843, 0.7297055125236511, -0.42073002457618713, 0.15166856348514557, 0.4286390244960785, -0.19956350326538086, 0.2965972423553467, 0.051176149398088455, -0.014388777315616608, 0.3024769425392151, 0.16254468262195587, -0.47265806794166565, -0.42910534143447876, 0.6537620425224304, -1.0830485820770264, -0.29986193776130676, -0.5928357839584351, -0.46157553791999817, 0.11512324959039688, 0.20549297332763672, 0.7426798939704895, 0.6290582418441772, 0.18249301612377167, 0.29316237568855286, 0.6814186573028564, -0.46079662442207336, 0.42990297079086304, -0.018438875675201416, -0.2669292390346527, -0.689778208732605, 1.0126032829284668, 0.22067329287528992, 0.22172817587852478, 0.00782113615423441, 0.14580754935741425, -0.3184644281864166, -0.6129353642463684, -0.6178250312805176, 0.6711388826370239, -0.6536847949028015, -0.3565334975719452, -0.5806115865707397, -0.47889259457588196, -0.5740038752555847, -0.08740366995334625, -0.3420105576515198, -0.12126457691192627, -0.46971943974494934, 0.11060754209756851, 0.6565165519714355, 0.44648149609565735, -0.13094015419483185, 0.4837159216403961, -0.6035736203193665, 0.20141097903251648, 0.13649217784404755, 0.5079914927482605, -0.12940427660942078, -0.8657159805297852, -0.32455626130104065, 0.09420858323574066, -0.4105222821235657, -0.8423112630844116, 0.6042648553848267, 0.22480101883411407, 0.39824771881103516, 0.28413861989974976, -0.20312754809856415, 1.0090643167495728, -0.11444713920354843, 0.6459035277366638, 0.5202668905258179, -0.7979320883750916, 0.6275991797447205, -0.2507104277610779, 0.44663986563682556, 0.3015333414077759, 0.4389376938343048, -0.28592854738235474, -0.15443618595600128, -0.848221480846405, -0.9525558948516846, 0.8912667632102966, 0.21237824857234955, 0.024913622066378593, 0.2910659611225128, 0.4147730767726898, -0.1185404360294342, 0.15645653009414673, -1.0608594417572021, -0.3229386806488037, -0.32238510251045227, -0.49705737829208374, -0.08272276073694229, -0.17023859918117523, -0.1359403133392334, -0.6210675835609436, 0.7021239995956421, -0.10145972669124603, 0.7228232026100159, 0.4478340148925781, -0.3030862808227539, -0.07328494638204575, -0.2806375324726105, 0.6405836939811707, 0.46963825821876526, -0.4097907245159149, -0.003616288071498275, 0.15903536975383759, -0.7845333814620972, -0.07087954878807068, 0.23404669761657715, -0.1460041105747223, 0.11182229965925217, 0.4393368065357208, 1.1114649772644043, 0.1279335767030716, -0.2722095847129822, 0.720128059387207, 0.020593658089637756, -0.4482681453227997, -0.3021429181098938, -0.02195759303867817, -0.048535704612731934, 0.3984920084476471, 0.41143426299095154, 0.09671755135059357, -0.10783737897872925, -0.46877962350845337, 0.17236219346523285, 0.48711398243904114, -0.3575543463230133, -0.4382125735282898, 0.7915201783180237, -0.08380519598722458, -0.027054669335484505, 0.5805191397666931, -0.14199183881282806, -0.5230839252471924, 0.7975236773490906, 0.5192219018936157, 0.8007475137710571, -0.0525088794529438, 0.18779593706130981, 0.7411535382270813, 0.2578994333744049, 0.07914653420448303, 0.19665692746639252, 0.17111016809940338, -0.6413543224334717, -0.08259959518909454, -0.7689440846443176, 0.033761102706193924, 0.3289216160774231, -0.6233583092689514, 0.4408953785896301, -0.6927101016044617, -0.4388239085674286, 0.2018318772315979, 0.22190527617931366, -0.931087851524353, 0.30314162373542786, 0.15283255279064178, 0.5405722260475159, -0.7900375723838806, 0.7961822152137756, 0.8357909917831421, -0.7425846457481384, -0.924285888671875, 0.02656460553407669, -0.1365707963705063, -0.9558066129684448, 0.7555012106895447, 0.3913940191268921, 0.07253778725862503, 0.13400331139564514, -0.7881662249565125, -0.8705867528915405, 1.2990281581878662, 0.541049599647522, -0.33207324147224426, -0.1691126525402069, -0.1497979760169983, 0.32817092537879944, -0.1977170705795288, 0.46711382269859314, 0.17915447056293488, 0.3849670886993408, 0.21491451561450958, -0.981072187423706, 0.1320197880268097, -0.169621080160141, 0.024533582851290703, 0.24546895921230316, -0.8542550206184387, 0.9936065673828125, -0.47671908140182495, -0.09306293725967407, 0.03193092718720436, 0.7877874374389648, 0.3924141824245453, 0.26212775707244873, 0.4519314467906952, 0.7308178544044495, 0.5631615519523621, -0.20198236405849457, 0.7956749200820923, -0.1260356605052948, 0.7748846411705017, 0.7658736109733582, 0.23964956402778625, 0.6311293840408325, 0.4522959291934967, -0.1263573169708252, 0.46100032329559326, 0.7898706793785095, -0.40652135014533997, 0.4492590129375458, 0.16936378180980682, 0.009401747025549412, -0.0487419068813324, 0.10474178194999695, -0.5493796467781067, 0.5419664978981018, 0.3107675313949585, -0.5287558436393738, -0.045711491256952286, 0.2997768521308899, 0.314853310585022, -0.3418148159980774, -0.3319243788719177, 0.4980236291885376, -0.048807501792907715, -0.3751462399959564, 0.9490727782249451, 0.04869845509529114, 1.0050822496414185, -0.4710407555103302, 0.13445493578910828, -0.01608937978744507, 0.3406166732311249, -0.31104546785354614, -0.8527104258537292, 0.2647581696510315, -0.2635266184806824, -0.04656803235411644, 0.09061916917562485, 0.5284510850906372, -0.5590577721595764, -0.6495880484580994, 0.2607426941394806, 0.15799430012702942, 0.4070391058921814, 0.09799882024526596, -1.145959496498108, 0.40283530950546265, 0.19088345766067505, -0.6220163702964783, 0.2748408913612366, 0.3491589426994324, 0.07785084843635559, 0.6364012956619263, 0.5370008945465088, 0.03275177627801895, 0.2116778939962387, -0.19189022481441498, 0.9160742163658142, -0.5938650369644165, -0.28967389464378357, -0.9163682460784912, 0.4412282109260559, -0.18765376508235931, -0.6839372515678406, 0.6522701978683472, 0.6375076770782471, 1.0099115371704102, -0.1685955673456192, 0.5092078447341919, -0.3262456953525543, 0.0522952638566494, -0.5895430445671082, 0.8776121139526367, -0.7043455839157104, -0.28446125984191895, -0.579491138458252, -0.8161833882331848, -0.4522083103656769, 0.8725144267082214, -0.46794846653938293, 0.2252693772315979, 0.5860554575920105, 0.9420669078826904, -0.26253050565719604, -0.5614519119262695, 0.1681482046842575, 0.2667282521724701, 0.22486555576324463, 0.6208836436271667, 0.21103405952453613, -0.8850324153900146, 0.7274903655052185, -0.37022724747657776, -0.18148189783096313, -0.3247763514518738, -0.5639739036560059, -1.1182359457015991, -0.9593546986579895, -0.6706534028053284, -0.6425871849060059, -0.016356291249394417, 0.9465200304985046, 1.0771912336349487, -0.613163411617279, -0.08496519923210144, 0.1481625884771347, 0.014835907146334648, 0.03755985572934151, -0.23644667863845825, 0.7154189944267273, 0.009330881759524345, -0.8710483312606812, -0.3223007023334503, 0.1255253553390503, 0.5076687335968018, -0.08094190806150436, -0.1541723906993866, -0.3252405822277069, -0.23853114247322083, 0.4595189094543457, 0.38318249583244324, -0.6905608773231506, -0.28426334261894226, -0.2123631089925766, -0.208710715174675, 0.31868472695350647, 0.30035239458084106, -0.59099942445755, 0.34990420937538147, 0.4564462900161743, 0.3145104646682739, 0.9847795367240906, -0.3179374933242798, 0.19378934800624847, -0.75120609998703, 0.7285817265510559, 0.02003246732056141, 0.46885061264038086, 0.3888014256954193, -0.22374926507472992, 0.5110188722610474, 0.535579264163971, -0.46550971269607544, -1.043481469154358, -0.02511005289852619, -1.205396294593811, -0.02830607071518898, 1.087982416152954, -0.4365026652812958, -0.6090006828308105, 0.4456750154495239, -0.436174213886261, 0.573311448097229, -0.12549543380737305, 0.48171257972717285, 0.4114995002746582, 0.13217994570732117, -0.5248680710792542, -0.3924011290073395, 0.5247564315795898, 0.26211392879486084, -0.6744608879089355, -0.2957773506641388, 0.22378481924533844, 0.6563798189163208, 0.27380093932151794, 0.7936648726463318, -0.16181857883930206, 0.18283244967460632, -0.011541975662112236, 0.5838662385940552, -0.14044520258903503, -0.20400641858577728, -0.1502608209848404, -0.060590025037527084, 0.003796694800257683, -0.6336708068847656 ]
Salesforce/codegen-350M-nl
Salesforce
"2022-10-03T16:18:48Z"
32,764
6
transformers
[ "transformers", "pytorch", "codegen", "text-generation", "arxiv:2203.13474", "license:bsd-3-clause", "endpoints_compatible", "has_space", "region:us" ]
text-generation
"2022-04-11T15:19:18Z"
--- license: bsd-3-clause --- # CodeGen (CodeGen-NL 350M) ## Model description CodeGen is a family of autoregressive language models for **program synthesis** from the paper: [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong. The models are originally released in [this repository](https://github.com/salesforce/CodeGen), under 3 pre-training data variants (`NL`, `Multi`, `Mono`) and 4 model size variants (`350M`, `2B`, `6B`, `16B`). The checkpoint included in this repository is denoted as **CodeGen-NL 350M** in the paper, where "NL" means it is pre-trained on the Pile and "350M" refers to the number of trainable parameters. ## Training data This checkpoint (CodeGen-NL 350M) was pre-trained on [the Pile](https://github.com/EleutherAI/the-pile), a large-scale curated dataset created by [EleutherAI](https://www.eleuther.ai/). Parts of the dataset include code data. ## Training procedure CodeGen was trained using cross-entropy loss to maximize the likelihood of sequential inputs. The family of models are trained using multiple TPU-v4-512 by Google, leveraging data and model parallelism. See Section 2.3 of the [paper](https://arxiv.org/abs/2203.13474) for more details. ## Evaluation results We evaluate our models on two code generation benchmark: HumanEval and MTPB. Please refer to the [paper](https://arxiv.org/abs/2203.13474) for more details. ## Intended Use and Limitations As an autoregressive language model, CodeGen is capable of extracting features from given natural language and programming language texts, and calculating the likelihood of them. However, the model is intended for and best at **program synthesis**, that is, generating executable code given English prompts, where the prompts should be in the form of a comment string. The model can complete partially-generated code as well. ## How to use This model can be easily loaded using the `AutoModelForCausalLM` functionality: ```python from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Salesforce/codegen-350M-nl") model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen-350M-nl") text = "def hello_world():" input_ids = tokenizer(text, return_tensors="pt").input_ids generated_ids = model.generate(input_ids, max_length=128) print(tokenizer.decode(generated_ids[0], skip_special_tokens=True)) ``` ## BibTeX entry and citation info ```bibtex @article{Nijkamp2022ACP, title={A Conversational Paradigm for Program Synthesis}, author={Nijkamp, Erik and Pang, Bo and Hayashi, Hiroaki and Tu, Lifu and Wang, Huan and Zhou, Yingbo and Savarese, Silvio and Xiong, Caiming}, journal={arXiv preprint}, year={2022} } ```
[ -0.49770286679267883, -0.5983335971832275, 0.018733782693743706, 0.30158478021621704, 0.024624964222311974, 0.2602452337741852, -0.30987119674682617, -0.3433452248573303, -0.1308574676513672, 0.4017069637775421, -0.50613933801651, -0.5631236433982849, -0.3765639066696167, 0.14509567618370056, -0.41622674465179443, 1.1139756441116333, -0.08035159856081009, -0.0780065730214119, -0.16683630645275116, 0.028925498947501183, -0.15990254282951355, -0.745002269744873, -0.22842593491077423, -0.2670402228832245, 0.015869522467255592, 0.042201608419418335, 0.5114503502845764, 0.9090882539749146, 0.3449048697948456, 0.2786118984222412, 0.0238936860114336, -0.14810942113399506, -0.35926955938339233, 0.011438543908298016, 0.22999076545238495, -0.4873112440109253, -0.5600018501281738, 0.06049450859427452, 0.41933056712150574, 0.6398460268974304, -0.09585684537887573, 0.363805890083313, 0.05683973804116249, 0.4175320267677307, -0.3798644244670868, 0.2986944317817688, -0.6952400207519531, 0.13410891592502594, 0.10804598033428192, -0.2513067424297333, -0.40364256501197815, -0.35747525095939636, -0.060047928243875504, -0.2799883782863617, 0.5448974967002869, -0.04033128544688225, 0.9827731847763062, 0.253362774848938, -0.09073153138160706, -0.3309049904346466, -0.6430438160896301, 0.9170588254928589, -1.1289530992507935, 0.23955899477005005, 0.1591673493385315, -0.08038578182458878, -0.22547322511672974, -0.7936351299285889, -0.4781322181224823, -0.2607077956199646, -0.005742921493947506, -0.0549064539372921, -0.31090644001960754, 0.18776382505893707, 0.5834607481956482, 0.5641772150993347, -0.9189992547035217, -0.02626798115670681, -0.711823046207428, -0.3965955674648285, 0.706188440322876, 0.2484281063079834, 0.34264707565307617, -0.3978140354156494, -0.5329453945159912, -0.23030418157577515, -0.766607403755188, -0.006101035047322512, 0.29422470927238464, 0.11116345226764679, -0.37644457817077637, 0.3233180642127991, -0.1516895294189453, 0.9689814448356628, -0.22696459293365479, 0.020574893802404404, 0.5644760727882385, -0.5795490145683289, -0.4003000855445862, -0.17222951352596283, 1.247702956199646, 0.09503480792045593, 0.1858922243118286, -0.10355280339717865, -0.2533017098903656, 0.15179890394210815, -0.014779875986278057, -0.9943221807479858, -0.5190724730491638, 0.2316700965166092, -0.7341713309288025, -0.6477145552635193, 0.08664394170045853, -0.7655494809150696, 0.1094593033194542, -0.12282479554414749, 0.11608453094959259, -0.36181172728538513, -0.31500205397605896, 0.11425793915987015, -0.10683078318834305, 0.3585391342639923, -0.19848448038101196, -0.8134198188781738, -0.04214587062597275, 0.4043053984642029, 0.6368164420127869, -0.12998773157596588, -0.5014700293540955, -0.28197264671325684, -0.09296134114265442, -0.3735542595386505, 0.5450954437255859, -0.508746862411499, -0.4339105784893036, -0.008284351788461208, 0.10494894534349442, -0.1741463541984558, -0.6347784399986267, 0.11144895851612091, -0.2880469858646393, 0.37058019638061523, 0.10655305534601212, -0.5517610907554626, -0.1010240837931633, 0.03407498449087143, -0.4522533714771271, 1.2041475772857666, 0.1773499995470047, -0.5423790812492371, 0.3123093247413635, -0.6324706673622131, -0.2890995144844055, -0.04664704203605652, -0.3433108627796173, -0.24095547199249268, 0.019953783601522446, -0.04700512811541557, 0.38156622648239136, -0.438236802816391, 0.4531066119670868, -0.3201257884502411, -0.1870497465133667, 0.2505018413066864, -0.2929130792617798, 0.9076330065727234, 0.5368058681488037, -0.5300390124320984, 0.1056109294295311, -0.8809714317321777, 0.2645018696784973, 0.25005894899368286, -0.4406569004058838, -0.010159746743738651, -0.11544109135866165, -0.13206040859222412, 0.5674233436584473, 0.2920597493648529, -0.3424604833126068, 0.3841705918312073, -0.5725696086883545, 0.6883864402770996, 0.45435160398483276, 0.012245401740074158, 0.4737998843193054, -0.33712801337242126, 0.8630394339561462, -0.14337998628616333, 0.10211391001939774, -0.5051947236061096, -0.4539845585823059, -0.798442542552948, -0.07270185649394989, 0.3344126343727112, 0.6143331527709961, -0.6927953362464905, 0.7230927348136902, -0.16928450763225555, -0.5626415610313416, -0.326467901468277, 0.22255590558052063, 0.6628926992416382, 0.24622072279453278, 0.13229328393936157, -0.24132820963859558, -0.9154650568962097, -0.7927207350730896, -0.15487538278102875, -0.5162718296051025, -0.041874852031469345, 0.04859836399555206, 0.4974518120288849, -0.31232455372810364, 0.8781449794769287, -0.5988930463790894, 0.10104566067457199, -0.3623674809932709, 0.4440730810165405, 0.2561911344528198, 0.7214478850364685, 0.6094533801078796, -0.4645436108112335, -0.40520402789115906, -0.35828208923339844, -0.7492545247077942, -0.2858563959598541, -0.20175737142562866, -0.19790200889110565, 0.46408408880233765, 0.8528696298599243, -0.38126087188720703, 0.3659747540950775, 0.7617044448852539, -0.204766646027565, 0.48613670468330383, -0.14777517318725586, 0.020896419882774353, -1.1657716035842896, 0.29136136174201965, -0.19017252326011658, -0.028870094567537308, -0.7180318236351013, 0.10759411752223969, -0.024378187954425812, -0.20717859268188477, -0.402779757976532, 0.4530591070652008, -0.5863026976585388, -0.002439868403598666, -0.2330225706100464, -0.13756251335144043, 0.07698165625333786, 0.8543463945388794, 0.046658966690301895, 0.9204767942428589, 0.5361158847808838, -0.7507724761962891, 0.16375260055065155, 0.26645970344543457, -0.24523994326591492, -0.12108968198299408, -0.8336334228515625, 0.24507811665534973, 0.25046858191490173, 0.19775879383087158, -1.0315498113632202, -0.07288816571235657, 0.2086944729089737, -0.6838696002960205, 0.1828795224428177, -0.21812193095684052, -0.7195345163345337, -0.5593340992927551, -0.11771640181541443, 0.5180253386497498, 0.8684125542640686, -0.23758564889431, 0.4060339331626892, 0.4382193088531494, -0.17337049543857574, -0.20350612699985504, -0.9098618626594543, 0.0913502424955368, -0.1089070662856102, -0.7092171311378479, 0.31626543402671814, -0.43043017387390137, -0.005282221827656031, -0.12388869374990463, 0.0781618282198906, -0.04002423211932182, -0.11192125827074051, 0.15523825585842133, 0.5236004590988159, -0.1816125512123108, 0.0046761780977249146, -0.2044539749622345, -0.15225520730018616, 0.18383970856666565, -0.2382640838623047, 0.8519613742828369, -0.3189016282558441, -0.05695519968867302, -0.000838714127894491, 0.21974289417266846, 0.5332522988319397, -0.46548131108283997, 0.5401246547698975, 0.6784425377845764, -0.2618092894554138, -0.3377228379249573, -0.40497955679893494, -0.17450346052646637, -0.475737601518631, 0.45557841658592224, -0.3010820746421814, -0.7220587134361267, 0.6347522735595703, 0.19715163111686707, 0.19829174876213074, 0.5251116752624512, 0.7502238154411316, 0.35566869378089905, 1.191157579421997, 0.6117873191833496, -0.0033951180521398783, 0.5002215504646301, -0.5515624284744263, 0.2671293020248413, -0.6144532561302185, -0.12231819331645966, -0.6237757205963135, 0.10031767934560776, -0.7002961039543152, -0.5459514260292053, 0.1330481320619583, -0.011667256243526936, -0.22213654220104218, 0.7086589336395264, -0.7725189328193665, 0.1491924226284027, 0.5799525380134583, -0.2969425618648529, 0.08216824382543564, -0.04715406894683838, -0.14030832052230835, 0.0721399337053299, -0.9664718508720398, -0.5585713386535645, 1.0640250444412231, 0.3206917643547058, 0.8172900676727295, -0.15634174644947052, 0.9450202584266663, 0.08581627905368805, 0.12633562088012695, -0.5490719676017761, 0.7138233184814453, -0.12698592245578766, -0.710261344909668, 0.06250330060720444, -0.678039014339447, -0.9149913787841797, 0.04234756529331207, -0.0021578569430857897, -0.5597726702690125, 0.2584836483001709, 0.2538298964500427, -0.36543744802474976, 0.2190028876066208, -0.850799024105072, 1.0518332719802856, -0.17572273313999176, -0.04482410475611687, 0.07194338738918304, -0.6883106231689453, 0.4820442795753479, -0.09838540852069855, 0.3129362165927887, -0.14258013665676117, 0.2154252976179123, 0.9321485757827759, -0.44298163056373596, 0.7713704705238342, -0.11817813664674759, -0.1702813357114792, 0.3295365273952484, 0.16485200822353363, 0.4030904769897461, -0.20230725407600403, -0.025773903355002403, 0.358287513256073, 0.22214289009571075, -0.3061807155609131, -0.24506643414497375, 0.6568363308906555, -0.617904543876648, -0.45055028796195984, -0.295725554227829, -0.616304874420166, -0.04555467888712883, 0.36490681767463684, 0.5730084180831909, 0.6232972145080566, -0.20397523045539856, 0.2339506894350052, 0.6121376156806946, -0.688478410243988, 0.6206104755401611, 0.3922194242477417, -0.36894023418426514, -0.3528745770454407, 0.9300309419631958, -0.03540448844432831, 0.5109342932701111, 0.18744927644729614, -0.021915292367339134, -0.021680401638150215, -0.3534988462924957, -0.38693395256996155, 0.13397543132305145, -0.6629779934883118, -0.3264927566051483, -0.8270342350006104, -0.49048784375190735, -0.5997436046600342, -0.044671498239040375, -0.370029091835022, -0.2956327795982361, -0.2432914525270462, -0.0003245346888434142, 0.14324712753295898, 0.5208362936973572, -0.09795613586902618, -0.006895981263369322, -0.9316418170928955, 0.4033530652523041, 0.03984634578227997, 0.3532715439796448, -0.060842059552669525, -0.5223292708396912, -0.31432434916496277, 0.19317083060741425, -0.17937569320201874, -0.7682315111160278, 0.6193374991416931, 0.16865114867687225, 0.6301295161247253, 0.05255744606256485, 0.1352883279323578, 0.44134435057640076, -0.31811660528182983, 0.8841720223426819, 0.12741707265377045, -0.9240346550941467, 0.4759860634803772, -0.303252249956131, 0.5970213413238525, 0.4770529568195343, 0.002788120647892356, -0.4159270226955414, -0.6638922095298767, -0.7831883430480957, -0.9330938458442688, 0.8753698468208313, 0.28101563453674316, 0.3071277439594269, -0.15160030126571655, -0.014753907918930054, 0.07282374054193497, 0.27982082962989807, -0.7808313369750977, -0.4532916843891144, -0.28229671716690063, -0.2801058292388916, 0.03949180245399475, -0.2693566679954529, 0.021271485835313797, -0.26394397020339966, 0.7601971626281738, -0.01375428307801485, 0.6613563895225525, 0.13691040873527527, -0.21162566542625427, -0.07759411633014679, 0.14077943563461304, 0.6055837869644165, 0.5761032700538635, -0.2575107514858246, -0.11837628483772278, -0.1491622030735016, -0.31240570545196533, 0.014258604496717453, 0.2956162691116333, -0.13799868524074554, 0.20214906334877014, 0.27826207876205444, 0.9603831768035889, 0.05955349653959274, -0.720329761505127, 0.5443862080574036, -0.08934693038463593, -0.5519264340400696, -0.46541398763656616, 0.26178717613220215, -0.062305741012096405, 0.04327772557735443, 0.37262651324272156, 0.1944916546344757, 0.10888814926147461, -0.4270854592323303, 0.31523579359054565, 0.23628510534763336, -0.2194340080022812, -0.2333211451768875, 0.8402043581008911, 0.13119655847549438, -0.1854255199432373, 0.49889349937438965, -0.4369165599346161, -0.6140270233154297, 0.9035872220993042, 0.4490053951740265, 1.138303518295288, -0.02943497523665428, 0.1861114203929901, 0.6216120719909668, 0.3063811659812927, -0.012914764694869518, 0.3081163763999939, -0.004806186072528362, -0.6233463883399963, -0.33487728238105774, -0.6773716807365417, 0.057689715176820755, 0.20813004672527313, -0.6317184567451477, 0.25514400005340576, -0.38893789052963257, -0.12411727011203766, -0.0908244401216507, -0.22934670746326447, -0.7528494596481323, 0.10619191080331802, 0.24685537815093994, 0.8847182393074036, -0.8617249727249146, 0.9379501342773438, 0.6980568170547485, -0.6649700999259949, -0.9493427872657776, 0.12510709464550018, -0.11143241822719574, -0.7817226648330688, 0.5834862589836121, 0.06744761765003204, 0.15515199303627014, 0.28344255685806274, -0.7115984559059143, -0.8537722826004028, 0.9028339982032776, 0.17211759090423584, -0.3790212571620941, -0.19722190499305725, 0.0784883126616478, 0.5556319952011108, -0.47000905871391296, 0.05388204753398895, 0.5327744483947754, 0.14402027428150177, 0.012467704713344574, -0.8319170475006104, 0.1662743091583252, -0.6718633770942688, 0.26396405696868896, 0.11880926787853241, -0.5786612629890442, 0.9605346918106079, -0.11359380185604095, -0.1270986795425415, 0.3080512285232544, 0.5836464762687683, 0.42757052183151245, -0.061799854040145874, 0.41093605756759644, 0.26393917202949524, 0.3938252031803131, -0.12096716463565826, 0.9372552633285522, -0.9860053658485413, 0.5566384196281433, 0.9540966153144836, -0.018550096079707146, 0.5292319655418396, 0.3381357789039612, -0.23901470005512238, 0.6813312768936157, 0.5196690559387207, -0.4170783758163452, 0.45215579867362976, 0.30728790163993835, 0.01873454637825489, -0.17281313240528107, 0.1817229837179184, -0.6181010603904724, 0.3665495216846466, 0.3140225112438202, -0.7111477851867676, -0.053224366158246994, 0.002014509867876768, 0.17328906059265137, -0.1978001743555069, 0.18163971602916718, 0.7142090201377869, 0.0645952820777893, -0.9664475917816162, 1.1529998779296875, 0.1177152469754219, 0.7162502408027649, -0.6586543917655945, -0.05707661435008049, -0.32537952065467834, 0.13569743931293488, -0.1543605774641037, -0.3768577575683594, 0.23960795998573303, 0.14771370589733124, -0.23422324657440186, -0.286909282207489, 0.5432307720184326, -0.5660037994384766, -0.4408228397369385, 0.19578076899051666, 0.3974763751029968, 0.16597262024879456, 0.2213698774576187, -0.9589576721191406, 0.23724572360515594, 0.339304119348526, -0.32238930463790894, 0.13356050848960876, 0.22075064480304718, 0.13839952647686005, 0.5076707601547241, 0.699262261390686, -0.01260560005903244, 0.27815642952919006, 0.02489709109067917, 0.7964327931404114, -0.6957461833953857, -0.4958304762840271, -0.7899613380432129, 0.5162076950073242, 0.10674522817134857, -0.3567858636379242, 0.7933969497680664, 0.7071647047996521, 0.9392788410186768, -0.2824835479259491, 1.17171311378479, -0.5807915329933167, 0.2956696152687073, -0.4547542333602905, 0.4636394679546356, -0.503560483455658, 0.43118155002593994, -0.4046190679073334, -0.944536030292511, -0.16652469336986542, 0.5787201523780823, -0.2210659682750702, 0.3491443991661072, 0.7163630127906799, 1.0820605754852295, 0.15989424288272858, -0.18319560587406158, 0.2829192578792572, 0.33002758026123047, 0.4338988959789276, 0.7673091888427734, 0.7053667306900024, -0.629092812538147, 0.8436504006385803, -0.3463065028190613, -0.21945489943027496, -0.14980174601078033, -0.7637448906898499, -0.9283913969993591, -0.6341403126716614, -0.4931975305080414, -0.6152316331863403, -0.14911988377571106, 1.054449200630188, 0.7521390914916992, -0.8120843768119812, -0.4297574758529663, -0.47356683015823364, -0.27944034337997437, 0.007021745666861534, -0.29298824071884155, 0.1898854374885559, -0.565016508102417, -0.7282534241676331, 0.27558255195617676, 0.09505246579647064, 0.08289089798927307, -0.43097472190856934, -0.22309568524360657, -0.17513924837112427, 0.09498266875743866, 0.2640972435474396, 0.45644059777259827, -0.5586897730827332, 0.09799220412969589, 0.24818162620067596, -0.4839060306549072, 0.20264968276023865, 0.8083726763725281, -0.6673348546028137, 0.5002764463424683, 0.853983461856842, 0.31555643677711487, 0.42791762948036194, -0.12344491481781006, 0.9130294322967529, -0.7264031171798706, 0.3508830666542053, 0.08947695791721344, 0.42311036586761475, 0.24121777713298798, -0.17269891500473022, 0.47504734992980957, 0.33649545907974243, -0.6149312257766724, -0.9157088994979858, 0.2562464773654938, -0.655088484287262, -0.4165535271167755, 1.5488531589508057, -0.1630791425704956, -0.19942231476306915, -0.0009725643321871758, -0.16802993416786194, 0.36288148164749146, -0.20722080767154694, 0.6407914161682129, 0.5256916284561157, 0.07489434629678726, -0.1453169584274292, -0.6469916105270386, 0.6485223770141602, 0.34216630458831787, -0.7081995010375977, 0.1736176759004593, 0.4632309377193451, 0.26974916458129883, 0.11685092002153397, 0.6877853274345398, -0.33414554595947266, 0.2826816737651825, 0.07925613969564438, 0.6903038024902344, -0.13365980982780457, -0.04813779518008232, -0.3704003393650055, -0.04983922839164734, 0.10696841031312943, -0.16356836259365082 ]
microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224
microsoft
"2023-11-26T22:38:51Z"
32,673
95
open_clip
[ "open_clip", "clip", "biology", "medical", "zero-shot-image-classification", "en", "arxiv:2303.00915", "license:mit", "has_space", "region:us" ]
zero-shot-image-classification
"2023-04-05T19:57:59Z"
--- language: en tags: - clip - biology - medical license: mit library_name: open_clip widget: - src: https://huggingface.co/microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224/resolve/main/example_data/biomed_image_classification_example_data/squamous_cell_carcinoma_histopathology.jpeg candidate_labels: adenocarcinoma histopathology, squamous cell carcinoma histopathology example_title: squamous cell carcinoma histopathology - src: >- https://huggingface.co/microsoft/BiomedCLIP-PubMedBERT_256-vit_base_patch16_224/resolve/main/example_data/biomed_image_classification_example_data/adenocarcinoma_histopathology.jpg candidate_labels: adenocarcinoma histopathology, squamous cell carcinoma histopathology example_title: adenocarcinoma histopathology - src: >- https://upload.wikimedia.org/wikipedia/commons/5/57/Left-sided_Pleural_Effusion.jpg candidate_labels: left-sided pleural effusion chest x-ray, right-sided pleural effusion chest x-ray, normal chest x-ray example_title: left-sided pleural effusion chest x-ray pipeline_tag: zero-shot-image-classification --- # BiomedCLIP-PubMedBERT_256-vit_base_patch16_224 [BiomedCLIP](https://aka.ms/biomedclip-paper) is a biomedical vision-language foundation model that is pretrained on [PMC-15M](https://aka.ms/biomedclip-paper), a dataset of 15 million figure-caption pairs extracted from biomedical research articles in PubMed Central, using contrastive learning. It uses PubMedBERT as the text encoder and Vision Transformer as the image encoder, with domain-specific adaptations. It can perform various vision-language processing (VLP) tasks such as cross-modal retrieval, image classification, and visual question answering. BiomedCLIP establishes new state of the art in a wide range of standard datasets, and substantially outperforms prior VLP approaches: ![](biomed-vlp-eval.svg) ## Citation ```bibtex @misc{https://doi.org/10.48550/arXiv.2303.00915, doi = {10.48550/ARXIV.2303.00915}, url = {https://arxiv.org/abs/2303.00915}, author = {Zhang, Sheng and Xu, Yanbo and Usuyama, Naoto and Bagga, Jaspreet and Tinn, Robert and Preston, Sam and Rao, Rajesh and Wei, Mu and Valluri, Naveen and Wong, Cliff and Lungren, Matthew and Naumann, Tristan and Poon, Hoifung}, title = {Large-Scale Domain-Specific Pretraining for Biomedical Vision-Language Processing}, publisher = {arXiv}, year = {2023}, } ``` ## Model Use ### How to use Please refer to this [example notebook](https://aka.ms/biomedclip-example-notebook). ### Intended Use This model is intended to be used solely for (I) future research on visual-language processing and (II) reproducibility of the experimental results reported in the reference paper. #### Primary Intended Use The primary intended use is to support AI researchers building on top of this work. BiomedCLIP and its associated models should be helpful for exploring various biomedical VLP research questions, especially in the radiology domain. #### Out-of-Scope Use **Any** deployed use case of the model --- commercial or otherwise --- is currently out of scope. Although we evaluated the models using a broad set of publicly-available research benchmarks, the models and evaluations are not intended for deployed use cases. Please refer to [the associated paper](https://aka.ms/biomedclip-paper) for more details. ## Data This model builds upon [PMC-15M dataset](https://aka.ms/biomedclip-paper), which is a large-scale parallel image-text dataset for biomedical vision-language processing. It contains 15 million figure-caption pairs extracted from biomedical research articles in PubMed Central. It covers a diverse range of biomedical image types, such as microscopy, radiography, histology, and more. ## Limitations This model was developed using English corpora, and thus can be considered English-only. ## Further information Please refer to the corresponding paper, ["Large-Scale Domain-Specific Pretraining for Biomedical Vision-Language Processing"](https://aka.ms/biomedclip-paper) for additional details on the model training and evaluation.
[ -0.2802117168903351, -0.4691472351551056, 0.5965887904167175, 0.07166364043951035, -0.4631877541542053, -0.017590155825018883, -0.08717399090528488, -0.5805294513702393, 0.21257361769676208, 0.4584432542324066, -0.44094374775886536, -0.7226412892341614, -0.6558417081832886, 0.1929425746202469, -0.03578179329633713, 0.952623188495636, -0.12268514931201935, 0.4773727059364319, -0.5606465339660645, -0.3050652742385864, -0.25090301036834717, -0.5416172742843628, -0.08053765445947647, -0.22918784618377686, 0.2938065826892853, 0.028018372133374214, 0.533653736114502, 0.6758180260658264, 1.0379412174224854, 0.1803402453660965, 0.0016988369170576334, 0.08737044036388397, -0.3809129595756531, -0.47758930921554565, -0.29184749722480774, -0.286420613527298, -0.7003621459007263, 0.14904826879501343, 0.6765801310539246, 0.8194671869277954, 0.012177694588899612, 0.22956207394599915, -0.16447626054286957, 0.5821498036384583, -0.6247329711914062, 0.19364431500434875, -0.43071290850639343, 0.07074213027954102, -0.1656910479068756, -0.23135334253311157, -0.5249492526054382, -0.09960498660802841, 0.3868999481201172, -0.5504457950592041, 0.0976564809679985, -0.04927783086895943, 1.3738408088684082, 0.02968737855553627, -0.03840573877096176, 0.2507758140563965, -0.3736197054386139, 0.7548903226852417, -0.6451782584190369, 0.298194944858551, 0.31806227564811707, 0.4099023938179016, 0.30129003524780273, -1.05778968334198, -0.3297368586063385, -0.16484838724136353, 0.14252851903438568, 0.35160598158836365, -0.2424694150686264, 0.15797404944896698, 0.2889804244041443, -0.07201467454433441, -0.6419887542724609, 0.018252266570925713, -0.8640152215957642, -0.1826561540365219, 0.35034018754959106, 0.18285900354385376, 0.34188786149024963, -0.1259944587945938, -0.6461520791053772, -0.24550969898700714, -0.8246398568153381, 0.03707614913582802, -0.3056502938270569, -0.03685888648033142, -0.33178338408470154, 0.6808836460113525, 0.09471776336431503, 0.9962460994720459, -0.15766651928424835, -0.2594510614871979, 0.6889612078666687, -0.6639366149902344, -0.24305835366249084, -0.3697104752063751, 0.941595196723938, 0.5824283361434937, 0.26658034324645996, 0.2118474841117859, 0.2022073119878769, 0.022076765075325966, 0.18332722783088684, -0.9118033647537231, -0.3543526232242584, 0.1605587899684906, -0.6565656065940857, -0.1970890611410141, 0.17007438838481903, -0.7185903191566467, 0.00446661189198494, -0.22712446749210358, 0.4784766435623169, -0.6724900603294373, 0.08398427814245224, 0.4032330811023712, -0.13911505043506622, 0.2598835229873657, 0.38012227416038513, -0.5324174761772156, 0.2376299649477005, 0.2587880492210388, 1.075160026550293, -0.47244447469711304, -0.5130749940872192, -0.22424985468387604, 0.21917425096035004, -0.04687798395752907, 0.9302226901054382, -0.5159773230552673, -0.2437010109424591, -0.2158960998058319, 0.27612006664276123, -0.3408525288105011, -0.5208113193511963, 0.26971903443336487, -0.24999873340129852, 0.21289822459220886, -0.17168942093849182, -0.332404762506485, -0.106936976313591, -0.0514400377869606, -0.4726446568965912, 0.472743421792984, 0.0749763622879982, -0.7910598516464233, 0.3692180812358856, -0.6448174715042114, -0.2331928014755249, 0.28969794511795044, -0.4675421416759491, -0.6697841286659241, -0.257676899433136, 0.33148983120918274, 0.4568096399307251, -0.31086695194244385, 0.5071843862533569, -0.44794362783432007, -0.2414168417453766, 0.162514790892601, -0.0611618347465992, 0.9746721386909485, 0.037520814687013626, -0.23211035132408142, 0.20521968603134155, -0.5745713710784912, 0.022519979625940323, 0.23396839201450348, -0.17644734680652618, -0.3022787272930145, -0.06265851855278015, 0.03572816774249077, 0.3617469072341919, 0.3667735159397125, -0.7305963635444641, 0.1676839292049408, -0.2692611515522003, 0.6289398670196533, 0.4677048921585083, -0.030732780694961548, 0.15401588380336761, -0.3670627772808075, 0.6217272877693176, 0.020785287022590637, 0.4561920464038849, -0.2527596652507782, -0.6062431931495667, -0.29579290747642517, -0.8781102895736694, 0.42704346776008606, 0.7049089074134827, -0.6985533833503723, 0.26173415780067444, -0.3645770847797394, -0.5890467762947083, -0.7743980884552002, -0.21177461743354797, 0.7861586809158325, 0.641539990901947, 0.6195541620254517, -0.6783029437065125, -0.5054025053977966, -1.189365267753601, 0.21395011246204376, -0.1078290194272995, 0.004874350503087044, 0.429840624332428, 0.6222171783447266, -0.3777133524417877, 0.8565659523010254, -0.6799819469451904, -0.3616183400154114, -0.3078397512435913, 0.13059410452842712, 0.15167026221752167, 0.44384750723838806, 0.7809255719184875, -0.7639610171318054, -0.43506866693496704, -0.23370328545570374, -0.845521092414856, -0.30192434787750244, -0.07217050343751907, 0.011653071269392967, 0.16794320940971375, 0.5346747040748596, -0.6063758134841919, 0.5851017236709595, 0.6209107637405396, -0.1575482338666916, 0.6392002701759338, -0.3071332275867462, 0.08992549777030945, -0.8642604947090149, 0.5664849281311035, -0.016135960817337036, -0.28374749422073364, -0.3728000819683075, -0.038150232285261154, 0.025186462327837944, -0.2903096377849579, -0.6616882681846619, 0.5075622200965881, -0.4744231402873993, -0.08966878056526184, -0.06058873236179352, -0.0608871653676033, 0.1638353019952774, 0.3712407946586609, 0.4792511761188507, 0.906065046787262, 0.6588961482048035, -0.30718207359313965, -0.17141465842723846, 0.5870646238327026, -0.3768732249736786, 0.30643028020858765, -1.0757182836532593, -0.20034560561180115, -0.15285037457942963, 0.11371204257011414, -0.9498812556266785, -0.015511449426412582, 0.18645071983337402, -0.5167674422264099, 0.29688760638237, 0.029127398505806923, -0.28736943006515503, -0.542055606842041, -0.5090806484222412, 0.4755939245223999, 0.5516392588615417, -0.2830318510532379, 0.32512614130973816, 0.6898924708366394, -0.19621261954307556, -0.6582399010658264, -0.7831681370735168, -0.07735095173120499, 0.2193622589111328, -0.5771836042404175, 0.686549961566925, -0.2300422191619873, 0.13808269798755646, 0.07144017517566681, 0.21324977278709412, -0.17240148782730103, -0.37498030066490173, 0.45432281494140625, 0.667590856552124, -0.1252845823764801, -0.08482419699430466, -0.07422521710395813, -0.0439794659614563, -0.07677281647920609, 0.1765829473733902, 0.44686341285705566, -0.28044208884239197, -0.40731093287467957, -0.4514175355434418, 0.3511081039905548, 0.7224419116973877, -0.5138909816741943, 0.6652359366416931, 0.49942710995674133, -0.11216526478528976, 0.22866538166999817, -0.33331990242004395, -0.1486644297838211, -0.4580466151237488, 0.7835378050804138, -0.17384229600429535, -0.8072161674499512, 0.33265942335128784, -0.13523134589195251, -0.20321503281593323, 0.42017924785614014, 0.6367121934890747, -0.21503256261348724, 0.8429126739501953, 0.8790158629417419, 0.09205877035856247, 0.445838987827301, -0.3565339148044586, 0.11838193982839584, -0.9121831059455872, -0.30819329619407654, -0.2809206545352936, 0.03410352021455765, -0.2646799385547638, -0.6482123732566833, 0.526907205581665, -0.1167139858007431, -0.14876575767993927, 0.38735514879226685, -0.6534067988395691, 0.3288414478302002, 0.5316382646560669, 0.45136013627052307, 0.1329784393310547, 0.12552455067634583, -0.41560062766075134, -0.44245433807373047, -0.9722445607185364, -0.4959715008735657, 1.3186649084091187, 0.33054599165916443, 0.6189415454864502, -0.33663973212242126, 0.4229794144630432, 0.10437377542257309, 0.3199918866157532, -0.45444679260253906, 0.7743110656738281, -0.5024290084838867, -0.600416898727417, -0.12679286301136017, -0.055280644446611404, -0.9416195154190063, 0.07709639519453049, -0.4450119733810425, -0.7194353938102722, 0.42326027154922485, 0.27639079093933105, -0.3965441882610321, 0.29776039719581604, -0.6216651201248169, 1.1597659587860107, -0.34773093461990356, -0.473934531211853, 0.016687218099832535, -1.0127438306808472, 0.296396940946579, -0.1400425285100937, 0.10195110738277435, 0.009851928800344467, 0.054994452744722366, 0.8028290271759033, -0.4136682152748108, 1.0592910051345825, -0.143685445189476, 0.47983765602111816, 0.30860635638237, -0.31552788615226746, -0.06374815851449966, -0.2332560420036316, 0.3466927111148834, 0.6432614326477051, 0.4508471190929413, -0.27263784408569336, -0.01917710155248642, 0.2871861159801483, -0.8603057861328125, -0.2786780595779419, -0.5357978940010071, -0.5158966779708862, -0.06392617523670197, 0.3466533422470093, 0.4989455044269562, 0.4970594048500061, -0.04403989762067795, 0.33637288212776184, 0.5765278935432434, -0.7267177104949951, 0.12692078948020935, 0.6466996073722839, -0.3868679702281952, -0.6031443476676941, 0.8897868990898132, 0.14691908657550812, 0.37148231267929077, 0.47244569659233093, -0.01517336443066597, 0.03571045771241188, -0.7216637134552002, -0.12677223980426788, 0.6428374648094177, -0.5928090810775757, -0.19793768227100372, -0.6419025659561157, -0.40837886929512024, -0.3892482817173004, -0.21392039954662323, -0.49904176592826843, -0.2517503499984741, -0.30006343126296997, 0.12943249940872192, 0.27008315920829773, 0.126768559217453, -0.1908315122127533, 0.2583024203777313, -0.8291592597961426, 0.4895270764827728, 0.0493323914706707, 0.2346244752407074, -0.4128251373767853, -0.49840909242630005, -0.2814004719257355, -0.13462702929973602, -0.2939758002758026, -0.8221929669380188, 0.6244730353355408, 0.4171128273010254, 0.5749445557594299, 0.22360563278198242, -0.22844752669334412, 0.6279249787330627, -0.7841213345527649, 0.8153343200683594, 0.34658223390579224, -0.6530336141586304, 0.6026415228843689, -0.3168361485004425, 0.5474585890769958, 0.7855123281478882, 0.6829529404640198, -0.027048533782362938, -0.24439407885074615, -0.46401602029800415, -1.0850343704223633, 0.40439409017562866, -0.0824718102812767, -0.2542756199836731, 0.04451299458742142, 0.3127782940864563, 0.04922226816415787, 0.3124485909938812, -0.8513163924217224, -0.11518798768520355, -0.18733961880207062, -0.304067462682724, -0.009879114106297493, -0.27029532194137573, -0.23467577993869781, -0.7711883783340454, 0.28968068957328796, -0.19127106666564941, 0.7575328350067139, 0.4824061691761017, -0.1723269820213318, 0.03215889260172844, -0.14609356224536896, 0.732803225517273, 0.9675264954566956, -0.4595971703529358, -0.024101048707962036, -0.22509649395942688, -0.957744836807251, -0.3143159747123718, 0.2842163145542145, -0.30623820424079895, 0.09214725345373154, 0.5776993036270142, 0.8883292078971863, 0.07822468876838684, -1.119618535041809, 0.9364717602729797, 0.03979068249464035, -0.563768208026886, -0.2379744052886963, -0.18090690672397614, -0.048528749495744705, 0.17793694138526917, 0.2688979506492615, 0.24750272929668427, 0.14233751595020294, -0.2794271409511566, 0.4788629114627838, 0.4076007604598999, -0.42424917221069336, -0.4140729010105133, 0.9859409928321838, 0.021665029227733612, 0.14376665651798248, 0.43434563279151917, 0.3249693512916565, -0.4694647192955017, 0.5613933205604553, 0.5357745885848999, 0.5343566536903381, -0.12970228493213654, 0.33667752146720886, 0.4473550021648407, 0.33041971921920776, 0.08746935427188873, 0.45979082584381104, 0.19682328402996063, -0.745817244052887, -0.6138237118721008, -0.5006120800971985, -0.4914461374282837, 0.14282801747322083, -0.6770613789558411, 0.3417835831642151, -0.5399605631828308, -0.4792596399784088, 0.3042505085468292, -0.28303033113479614, -0.679082453250885, 0.17303873598575592, 0.09782060980796814, 0.9332228302955627, -0.9446133971214294, 0.970257043838501, 0.9138503670692444, -0.6620731949806213, -0.4606158435344696, -0.3912281394004822, -0.11994156986474991, -0.9655872583389282, 0.8468688726425171, 0.05917590111494064, -0.0584939680993557, -0.19870556890964508, -0.9690003991127014, -0.717848539352417, 1.1696813106536865, 0.4278363883495331, -0.6340727806091309, -0.01893935352563858, 0.13284806907176971, 0.7119535803794861, -0.47671520709991455, 0.07111804187297821, 0.14489881694316864, 0.16920900344848633, 0.05197257548570633, -1.143726110458374, 0.025242013856768608, -0.3725114166736603, -0.10478799790143967, -0.20124901831150055, -0.6585591435432434, 0.9254233837127686, -0.4270782768726349, 0.09498253464698792, 0.03350680321455002, 0.35732731223106384, 0.5384211540222168, 0.30180078744888306, 0.048762425780296326, 0.4430418610572815, 0.3736664950847626, 0.10104828327894211, 1.0882236957550049, -0.5262501239776611, 0.28031331300735474, 1.193210482597351, -0.31748032569885254, 1.039696216583252, 0.8020082116127014, -0.30780544877052307, 0.4001038372516632, 0.3864654004573822, -0.40674933791160583, 0.872187077999115, -0.13177749514579773, 0.0425492487847805, -0.21841031312942505, -0.11766113340854645, -0.4876762926578522, 0.3495602011680603, 0.27340203523635864, -0.7299338579177856, 0.06855971366167068, 0.32357707619667053, 0.0020298880990594625, -0.015003090724349022, -0.11259640008211136, 0.40347832441329956, 0.233002170920372, -0.3521400988101959, 0.6760798096656799, -0.18103109300136566, 0.5376197099685669, -0.8261666297912598, -0.16304557025432587, 0.17519856989383698, 0.27972424030303955, 0.011745626106858253, -0.7709422707557678, 0.29507455229759216, -0.15108898282051086, -0.15399019420146942, -0.16053591668605804, 0.6587272882461548, -0.3245820701122284, -0.36068668961524963, 0.34298720955848694, 0.41147318482398987, 0.2886751592159271, 0.31252261996269226, -0.8520336151123047, 0.25428780913352966, -0.017989056184887886, -0.10181748121976852, 0.4054534137248993, 0.0679752454161644, 0.06697891652584076, 0.7656329274177551, 0.3418383300304413, 0.3611311912536621, -0.1273055225610733, -0.16709591448307037, 0.9947755336761475, -0.48772644996643066, -0.1339142918586731, -0.6625020503997803, 0.5037856101989746, -0.11616703867912292, -0.37060675024986267, 0.6067196130752563, 0.5805479884147644, 0.8229336142539978, -0.4759899377822876, 0.6272790431976318, 0.021770277991890907, 0.5443822741508484, -0.5290343165397644, 0.7332329750061035, -0.5429412126541138, 0.06976783275604248, -0.5607755780220032, -0.6114488840103149, -0.7250728607177734, 0.8920503258705139, -0.5757191181182861, -0.0073062097653746605, 1.0073511600494385, 0.6697426438331604, -0.06304655969142914, -0.4907144606113434, 0.31567564606666565, 0.18517568707466125, 0.09420934319496155, 0.6739529967308044, 0.21504046022891998, -0.35750481486320496, 0.4307871460914612, -0.17941595613956451, -0.4622475802898407, -0.20598582923412323, -0.8191103935241699, -1.0859696865081787, -0.6547751426696777, -0.6054345369338989, -0.3080441653728485, 0.27574509382247925, 0.7661847472190857, 0.8546294569969177, -0.6537021994590759, -0.17888817191123962, 0.2429475486278534, -0.4692177176475525, -0.20274199545383453, -0.12612615525722504, 0.6875653862953186, 0.10949569940567017, -0.3290308117866516, 0.0710354894399643, 0.5031481981277466, 0.14985890686511993, -0.09390375763177872, 0.07417213171720505, -0.47693634033203125, -0.11400672048330307, 0.6280701160430908, 0.638377845287323, -0.4985141456127167, -0.094612255692482, 0.14499792456626892, -0.24779115617275238, 0.35539183020591736, 0.42961663007736206, -0.7666886448860168, 0.6229100227355957, 0.38443562388420105, 0.5617658495903015, 0.6949584484100342, -0.023982182145118713, 0.5681730508804321, -0.33684906363487244, 0.3611900806427002, 0.19148370623588562, 0.39111730456352234, 0.3248259127140045, -0.018834305927157402, 0.5286997556686401, 0.5970561504364014, -0.536133885383606, -0.7888200283050537, 0.04601157829165459, -1.3935062885284424, -0.4812716841697693, 1.0032473802566528, -0.2894183099269867, -0.6185227632522583, 0.14613881707191467, -0.39319121837615967, 0.09669221937656403, -0.1260487288236618, 0.521220326423645, 0.3153887093067169, -0.10888578742742538, -0.4912938177585602, -0.6328427195549011, 0.39775869250297546, 0.3560110628604889, -0.8255160450935364, -0.3718164563179016, 0.47646626830101013, 0.3882578909397125, 0.22702787816524506, 0.9164753556251526, -0.5970225930213928, 0.4008016884326935, -0.22935830056667328, 0.5281144976615906, -0.24035266041755676, -0.5095821619033813, -0.3344361484050751, 0.15885843336582184, 0.008058285340666771, -0.30225491523742676 ]
HooshvareLab/bert-base-parsbert-uncased
HooshvareLab
"2021-05-18T20:47:21Z"
32,623
18
transformers
[ "transformers", "pytorch", "tf", "jax", "bert", "fill-mask", "arxiv:2005.12515", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:04Z"
## ParsBERT: Transformer-based Model for Persian Language Understanding ParsBERT is a monolingual language model based on Google’s BERT architecture with the same configurations as BERT-Base. Paper presenting ParsBERT: [arXiv:2005.12515](https://arxiv.org/abs/2005.12515) All the models (downstream tasks) are uncased and trained with whole word masking. (coming soon stay tuned) --- ## Introduction This model is pre-trained on a large Persian corpus with various writing styles from numerous subjects (e.g., scientific, novels, news) with more than 2M documents. A large subset of this corpus was crawled manually. As a part of ParsBERT methodology, an extensive pre-processing combining POS tagging and WordPiece segmentation was carried out to bring the corpus into a proper format. This process produces more than 40M true sentences. ## Evaluation ParsBERT is evaluated on three NLP downstream tasks: Sentiment Analysis (SA), Text Classification, and Named Entity Recognition (NER). For this matter and due to insufficient resources, two large datasets for SA and two for text classification were manually composed, which are available for public use and benchmarking. ParsBERT outperformed all other language models, including multilingual BERT and other hybrid deep learning models for all tasks, improving the state-of-the-art performance in Persian language modeling. ## Results The following table summarizes the F1 score obtained by ParsBERT as compared to other models and architectures. ### Sentiment Analysis (SA) task | Dataset | ParsBERT | mBERT | DeepSentiPers | |:--------------------------:|:---------:|:-----:|:-------------:| | Digikala User Comments | 81.74* | 80.74 | - | | SnappFood User Comments | 88.12* | 87.87 | - | | SentiPers (Multi Class) | 71.11* | - | 69.33 | | SentiPers (Binary Class) | 92.13* | - | 91.98 | ### Text Classification (TC) task | Dataset | ParsBERT | mBERT | |:-----------------:|:--------:|:-----:| | Digikala Magazine | 93.59* | 90.72 | | Persian News | 97.19* | 95.79 | ### Named Entity Recognition (NER) task | Dataset | ParsBERT | mBERT | MorphoBERT | Beheshti-NER | LSTM-CRF | Rule-Based CRF | BiLSTM-CRF | |:-------:|:--------:|:--------:|:----------:|:--------------:|:----------:|:----------------:|:------------:| | PEYMA | 93.10* | 86.64 | - | 90.59 | - | 84.00 | - | | ARMAN | 98.79* | 95.89 | 89.9 | 84.03 | 86.55 | - | 77.45 | **If you tested ParsBERT on a public dataset and you want to add your results to the table above, open a pull request or contact us. Also make sure to have your code available online so we can add it as a reference** ## How to use ### TensorFlow 2.0 ```python from transformers import AutoConfig, AutoTokenizer, TFAutoModel config = AutoConfig.from_pretrained("HooshvareLab/bert-base-parsbert-uncased") tokenizer = AutoTokenizer.from_pretrained("HooshvareLab/bert-base-parsbert-uncased") model = AutoModel.from_pretrained("HooshvareLab/bert-base-parsbert-uncased") text = "ما در هوشواره معتقدیم با انتقال صحیح دانش و آگاهی، همه افراد می‌توانند از ابزارهای هوشمند استفاده کنند. شعار ما هوش مصنوعی برای همه است." tokenizer.tokenize(text) >>> ['ما', 'در', 'هوش', '##واره', 'معتقدیم', 'با', 'انتقال', 'صحیح', 'دانش', 'و', 'اگاهی', '،', 'همه', 'افراد', 'میتوانند', 'از', 'ابزارهای', 'هوشمند', 'استفاده', 'کنند', '.', 'شعار', 'ما', 'هوش', 'مصنوعی', 'برای', 'همه', 'است', '.'] ``` ### Pytorch ```python from transformers import AutoConfig, AutoTokenizer, AutoModel config = AutoConfig.from_pretrained("HooshvareLab/bert-base-parsbert-uncased") tokenizer = AutoTokenizer.from_pretrained("HooshvareLab/bert-base-parsbert-uncased") model = AutoModel.from_pretrained("HooshvareLab/bert-base-parsbert-uncased") ``` ## NLP Tasks Tutorial Coming soon stay tuned ## Cite Please cite the following paper in your publication if you are using [ParsBERT](https://arxiv.org/abs/2005.12515) in your research: ```markdown @article{ParsBERT, title={ParsBERT: Transformer-based Model for Persian Language Understanding}, author={Mehrdad Farahani, Mohammad Gharachorloo, Marzieh Farahani, Mohammad Manthouri}, journal={ArXiv}, year={2020}, volume={abs/2005.12515} } ``` ## Acknowledgments We hereby, express our gratitude to the [Tensorflow Research Cloud (TFRC) program](https://tensorflow.org/tfrc) for providing us with the necessary computation resources. We also thank [Hooshvare](https://hooshvare.com) Research Group for facilitating dataset gathering and scraping online text resources. ## Contributors - Mehrdad Farahani: [Linkedin](https://www.linkedin.com/in/m3hrdadfi/), [Twitter](https://twitter.com/m3hrdadfi), [Github](https://github.com/m3hrdadfi) - Mohammad Gharachorloo: [Linkedin](https://www.linkedin.com/in/mohammad-gharachorloo/), [Twitter](https://twitter.com/MGharachorloo), [Github](https://github.com/baarsaam) - Marzieh Farahani: [Linkedin](https://www.linkedin.com/in/marziehphi/), [Twitter](https://twitter.com/marziehphi), [Github](https://github.com/marziehphi) - Mohammad Manthouri: [Linkedin](https://www.linkedin.com/in/mohammad-manthouri-aka-mansouri-07030766/), [Twitter](https://twitter.com/mmanthouri), [Github](https://github.com/mmanthouri) - Hooshvare Team: [Official Website](https://hooshvare.com/), [Linkedin](https://www.linkedin.com/company/hooshvare), [Twitter](https://twitter.com/hooshvare), [Github](https://github.com/hooshvare), [Instagram](https://www.instagram.com/hooshvare/) ## Releases ### Release v0.1 (May 27, 2019) This is the first version of our ParsBERT based on BERT<sub>BASE</sub>
[ -0.5346945524215698, -0.7597357034683228, 0.1566324532032013, 0.38031527400016785, -0.3577631115913391, 0.06426700204610825, -0.39415112137794495, -0.1167021170258522, 0.12055246531963348, 0.16100089251995087, -0.49154046177864075, -0.6997087597846985, -0.7090064883232117, -0.044091492891311646, -0.33781930804252625, 1.0078893899917603, -0.14734426140785217, 0.04666215926408768, 0.057983193546533585, -0.16387157142162323, -0.19749516248703003, -0.40002816915512085, -0.5521124005317688, -0.24991370737552643, 0.03759824484586716, 0.26937586069107056, 0.7027008533477783, 0.3623780906200409, 0.6890875697135925, 0.40579167008399963, -0.23865312337875366, -0.09045996516942978, -0.17879173159599304, 0.05225423723459244, -0.181525319814682, -0.27523207664489746, -0.4488444924354553, -0.3095040023326874, 0.824045717716217, 0.35484611988067627, -0.352460652589798, 0.413282185792923, 0.10455460846424103, 0.8021463751792908, -0.336135596036911, -0.014713344164192677, -0.263083815574646, 0.08401544392108917, -0.3307982087135315, 0.1370709240436554, -0.29995912313461304, -0.32734280824661255, -0.06437171250581741, -0.4129911959171295, 0.3402848243713379, 0.08039011806249619, 1.4425135850906372, 0.21985818445682526, -0.1822117120027542, -0.09618021547794342, -0.6456203460693359, 1.0206323862075806, -1.017723798751831, 0.49814456701278687, 0.1290203481912613, 0.3439675271511078, -0.21131695806980133, -0.6469278931617737, -0.7871010899543762, -0.06217910349369049, -0.3999696969985962, 0.08336484432220459, -0.3948219120502472, -0.26067250967025757, 0.2756308913230896, 0.6243575811386108, -0.6818274259567261, -0.27152499556541443, -0.2892429530620575, -0.18940280377864838, 0.5702895522117615, 0.08798666298389435, 0.2828352749347687, -0.4329455494880676, -0.5971696972846985, -0.5530148148536682, -0.22645649313926697, 0.41789981722831726, 0.22215038537979126, -0.101351797580719, -0.40298429131507874, 0.42590925097465515, -0.32475829124450684, 0.6240102052688599, 0.4888154864311218, -0.15704117715358734, 0.6574830412864685, -0.4789317846298218, -0.27540817856788635, -0.04869585111737251, 1.1884461641311646, -0.051739651709795, -0.053324226289987564, -0.0065832179971039295, -0.04531092941761017, -0.12797647714614868, 0.10492242127656937, -0.8478824496269226, -0.09828517585992813, 0.23706242442131042, -0.6180368065834045, -0.3659157454967499, 0.11550526320934296, -1.1331498622894287, -0.13707943260669708, -0.0922146737575531, 0.47118571400642395, -0.7661207914352417, -0.5058658719062805, 0.10085776448249817, -0.07594434916973114, 0.7193368077278137, 0.27903974056243896, -0.6574506163597107, 0.278478741645813, 0.5525012016296387, 0.7656461596488953, 0.054606251418590546, -0.42381101846694946, -0.08913438767194748, -0.07192792743444443, -0.16069260239601135, 0.6761716604232788, -0.06698349863290787, -0.3413761556148529, -0.34956657886505127, -0.0174226276576519, -0.26058849692344666, -0.28116676211357117, 0.7665072679519653, -0.38051313161849976, 0.5366982221603394, -0.033338505774736404, -0.4099552631378174, -0.26611262559890747, 0.1226891353726387, -0.44338032603263855, 1.2253341674804688, 0.22460173070430756, -0.9532344937324524, -0.05016150698065758, -0.7668038010597229, -0.45025163888931274, -0.09592144191265106, -0.00032517139334231615, -0.8375625014305115, -0.060716912150382996, 0.4812087118625641, 0.6107896566390991, -0.4341442286968231, 0.5020062923431396, 0.023991581052541733, -0.1193530410528183, 0.20455093681812286, -0.21882422268390656, 1.0530368089675903, 0.3431346118450165, -0.8895629048347473, 0.18120256066322327, -0.7944516539573669, 0.11185614764690399, 0.29959210753440857, -0.19306711852550507, 0.0016941279172897339, -0.11175443232059479, 0.0010358084691688418, 0.40136775374412537, 0.29979366064071655, -0.7178398370742798, -0.17407391965389252, -0.5986170768737793, 0.2631393074989319, 0.8474465012550354, 0.031985845416784286, 0.4055168628692627, -0.5439979434013367, 0.5389553904533386, 0.1907150149345398, 0.2661696672439575, 0.02689036726951599, -0.3790430724620819, -1.0797991752624512, -0.4209480285644531, 0.39279505610466003, 0.5402681231498718, -0.7944095134735107, 0.6397644281387329, -0.4338172674179077, -1.0352039337158203, -0.5711867213249207, 0.17098864912986755, 0.6128697991371155, 0.6299022436141968, 0.4688846468925476, -0.17975382506847382, -0.5407057404518127, -0.959996223449707, -0.4077148139476776, -0.15780659019947052, 0.24199248850345612, 0.21968971192836761, 0.5710535645484924, -0.366536408662796, 0.8280028700828552, -0.5288456082344055, -0.37848809361457825, -0.4182896018028259, 0.1278444230556488, 0.6937393546104431, 0.8320571780204773, 0.645205557346344, -0.6864234209060669, -0.8246536254882812, 0.0724329799413681, -0.6819189190864563, 0.13292939960956573, -0.1769557148218155, -0.577905535697937, 0.46663767099380493, 0.20616261661052704, -0.674213707447052, 0.4523901343345642, 0.5220530033111572, -0.6596722602844238, 0.48948216438293457, 0.05536441132426262, 0.19018711149692535, -1.4202394485473633, 0.3115590512752533, 0.04782331734895706, -0.23348063230514526, -0.6492334604263306, 0.04594343155622482, 0.02034563384950161, -0.07982537150382996, -0.5304408073425293, 0.7238476276397705, -0.33685922622680664, 0.4090214967727661, 0.2377740740776062, -0.2685845196247101, 0.015042507089674473, 0.8571368455886841, -0.06687816977500916, 0.8116679787635803, 0.6961607336997986, -0.45535752177238464, 0.22411321103572845, 0.6167436242103577, -0.4217270314693451, 0.3146715462207794, -0.8446382284164429, -0.10151007026433945, -0.08038201183080673, 0.042998041957616806, -1.0019408464431763, -0.19532811641693115, 0.5352545380592346, -0.8048831820487976, 0.3884764611721039, 0.14981985092163086, -0.5023490786552429, -0.320835143327713, -0.46844711899757385, 0.16863171756267548, 0.7996399998664856, -0.5552312731742859, 0.8297445774078369, 0.1805410534143448, -0.13892267644405365, -0.5526333451271057, -0.5611810088157654, -0.19590336084365845, -0.18058042228221893, -0.7423281073570251, 0.4884750545024872, -0.0034810653887689114, -0.0397738479077816, 0.04664148762822151, -0.13753138482570648, -0.19928760826587677, -0.021592631936073303, 0.31090864539146423, 0.3279000222682953, -0.27649593353271484, -0.0882665291428566, 0.10426033288240433, -0.04089341685175896, 0.024065354838967323, 0.06760615110397339, 0.7598521709442139, -0.636604368686676, -0.23521430790424347, -0.6943078637123108, 0.16004154086112976, 0.552677571773529, -0.3794087767601013, 0.9776198863983154, 1.0234227180480957, -0.14175015687942505, 0.014334332197904587, -0.7529994249343872, 0.1367812156677246, -0.5018130540847778, 0.2423907220363617, -0.2625524699687958, -0.8070529699325562, 0.5134293437004089, -0.0041855378076434135, -0.06834719330072403, 1.092334508895874, 0.770022451877594, -0.05735079571604729, 0.7167198657989502, 0.38372230529785156, -0.08021201193332672, 0.4824029803276062, -0.5491078495979309, 0.36544692516326904, -0.8969455361366272, -0.3770603537559509, -0.5516860485076904, -0.13681040704250336, -0.7467239499092102, -0.4759189784526825, 0.3532610833644867, 0.1507699340581894, -0.4628811478614807, 0.5913669466972351, -0.6788829565048218, 0.09802646934986115, 0.7091915607452393, 0.2880348861217499, -0.01291473489254713, 0.10250481218099594, -0.2924337387084961, 0.09444578737020493, -0.607871949672699, -0.411080539226532, 1.0337578058242798, 0.4004185199737549, 0.5945375561714172, 0.2557160258293152, 0.8367187976837158, 0.2150418907403946, 0.028291592374444008, -0.421069473028183, 0.6564119458198547, 0.046664539724588394, -0.7180958390235901, -0.4531036615371704, -0.35056963562965393, -0.740966796875, 0.40905874967575073, -0.1882285475730896, -0.4851052463054657, 0.48279905319213867, 0.0018547148210927844, -0.3473667502403259, 0.3113034963607788, -0.5899910926818848, 0.9850301742553711, -0.3278321623802185, -0.49704787135124207, -0.23102276027202606, -0.8395389914512634, 0.2560397684574127, 0.01783166080713272, 0.28233659267425537, -0.15324443578720093, 0.22027884423732758, 1.0080832242965698, -0.5882306694984436, 0.6755863428115845, -0.1884470283985138, 0.18613667786121368, 0.3426060080528259, -0.03212061524391174, 0.47526538372039795, 0.07559861242771149, -0.2818078398704529, 0.5528990030288696, 0.13888022303581238, -0.6368928551673889, -0.26718229055404663, 0.762019693851471, -1.043632984161377, -0.6661368608474731, -0.9746172428131104, -0.27867498993873596, -0.01901855319738388, 0.4143613874912262, 0.3265237510204315, 0.3240720331668854, -0.0950256884098053, 0.3188627362251282, 0.6121978759765625, -0.4420216679573059, 0.6737228631973267, 0.39542877674102783, -0.04839278757572174, -0.692324697971344, 0.8427927494049072, -0.2694774866104126, 0.07362344115972519, 0.45681148767471313, 0.2422858327627182, -0.17617587745189667, -0.287788987159729, -0.60379958152771, 0.4913920760154724, -0.642586350440979, -0.42343759536743164, -0.5794798135757446, -0.2958819568157196, -0.7249541878700256, -0.0972268357872963, -0.3359321355819702, -0.5122841596603394, -0.24099412560462952, 0.03205236792564392, 0.5035796165466309, 0.39737898111343384, -0.09488821029663086, 0.3788565695285797, -0.8447909355163574, 0.23929685354232788, 0.05949537083506584, 0.34533774852752686, 0.0851837769150734, -0.6279870867729187, -0.3749334514141083, 0.06306181102991104, -0.570117712020874, -0.77120041847229, 0.731875479221344, 0.26291075348854065, 0.6090213656425476, 0.2717221677303314, 0.05131274834275246, 0.7981213927268982, -0.46527907252311707, 0.8290714025497437, 0.20012454688549042, -1.3121203184127808, 0.6323607563972473, -0.35243475437164307, 0.3341594636440277, 0.58617103099823, 0.4716135561466217, -0.4604540169239044, -0.3064769506454468, -0.8502683043479919, -0.8688387274742126, 0.990935206413269, 0.5590156316757202, 0.08844058215618134, 0.1531486213207245, 0.11268013715744019, -0.09071826934814453, 0.36023685336112976, -0.7839545011520386, -0.4764804244041443, -0.4315216541290283, -0.29919758439064026, -0.048110589385032654, -0.31626784801483154, 0.09892147779464722, -0.6953938007354736, 1.0477529764175415, 0.41525936126708984, 0.6897320747375488, 0.5216018557548523, -0.2676931619644165, -0.00941925123333931, 0.47943705320358276, 0.6560536623001099, 0.48423027992248535, -0.25132983922958374, -0.002806485164910555, 0.28388506174087524, -0.5635430812835693, 0.08127091079950333, 0.205525204539299, -0.0944906696677208, 0.37826141715049744, 0.37686681747436523, 1.0221763849258423, 0.138750359416008, -0.5582313537597656, 0.6484891176223755, 0.04685702547430992, -0.265424907207489, -0.5384029150009155, -0.06955419480800629, -0.07466284930706024, 0.2566987872123718, 0.2594144344329834, 0.20649971067905426, 0.02383587323129177, -0.2178669571876526, 0.0910952165722847, 0.27426376938819885, -0.13180997967720032, -0.22094707190990448, 0.6355369687080383, 0.01712769828736782, -0.14394435286521912, 0.5319948196411133, -0.20887811481952667, -0.9282858967781067, 0.549299955368042, 0.3815108835697174, 0.898518443107605, -0.5128141045570374, 0.3636742830276489, 0.6761829853057861, 0.19965225458145142, -0.04181580990552902, 0.2230011522769928, -0.19421754777431488, -0.5364980697631836, -0.24732820689678192, -1.082927942276001, -0.1543624997138977, -0.1508631408214569, -0.6765073537826538, 0.3038003444671631, -0.5190399289131165, -0.1595643013715744, 0.048742108047008514, 0.003999547567218542, -0.6080207824707031, 0.1603284776210785, -0.01284037809818983, 0.6928686499595642, -0.7129669785499573, 0.8991407155990601, 0.8904890418052673, -0.5431836247444153, -0.9582338929176331, -0.06096086651086807, -0.31441426277160645, -0.7107451558113098, 0.7325360178947449, -0.06662843376398087, 0.0022136704064905643, 0.14257967472076416, -0.27231714129447937, -1.1608670949935913, 1.1854503154754639, 0.039371639490127563, -0.3124483823776245, -0.02366514690220356, 0.37122321128845215, 0.6917508840560913, 0.11018306761980057, 0.3392444849014282, 0.34813499450683594, 0.4448375105857849, 0.06585195660591125, -0.9582575559616089, 0.3394979238510132, -0.6057554483413696, 0.2947746217250824, 0.41147172451019287, -0.7675807476043701, 1.1368939876556396, 0.15993839502334595, -0.1062384694814682, -0.03459007292985916, 0.590593159198761, 0.0972977802157402, 0.09311029314994812, 0.35957804322242737, 0.9417131543159485, 0.3519175052642822, -0.10391712188720703, 1.011852502822876, -0.4788877069950104, 0.8624923825263977, 0.7817276120185852, 0.13154427707195282, 0.8474512696266174, 0.5105438828468323, -0.4871235489845276, 0.9344974756240845, 0.4169507622718811, -0.2414185255765915, 0.6163126826286316, -0.03471752628684044, -0.18538549542427063, -0.26095712184906006, 0.07351621240377426, -0.5221329927444458, 0.23301801085472107, 0.14066419005393982, -0.30446481704711914, -0.3638586401939392, 0.19579434394836426, 0.1921718865633011, -0.017375828698277473, -0.13020242750644684, 0.7455753087997437, -0.001836197217926383, -0.6428399085998535, 0.9239790439605713, 0.2138664275407791, 0.6501377820968628, -0.4632006287574768, 0.0669471025466919, -0.13036349415779114, 0.4705500602722168, -0.30696403980255127, -0.6119872331619263, 0.4547777473926544, 0.022959426045417786, -0.19780424237251282, -0.43516167998313904, 0.7949185371398926, -0.17109133303165436, -0.7993990182876587, 0.04877380281686783, 0.405105322599411, 0.012413382530212402, -0.0002610062656458467, -0.9020228981971741, -0.007680329494178295, 0.2897196114063263, -0.5607305765151978, 0.1703588217496872, 0.32988816499710083, 0.048355162143707275, 0.45062926411628723, 0.7959133982658386, -0.03858700767159462, 0.30187371373176575, -0.49763187766075134, 0.9588848352432251, -0.7928052544593811, -0.3164776861667633, -1.027797818183899, 0.6930652260780334, -0.15046866238117218, -0.35325783491134644, 1.0209689140319824, 0.6727968454360962, 0.8933508992195129, -0.28554973006248474, 0.5188792943954468, -0.4173988103866577, 0.8440040946006775, -0.28677505254745483, 0.8949973583221436, -0.5471576452255249, 0.05609794333577156, -0.3472107946872711, -0.6775662302970886, -0.17268608510494232, 0.8308996558189392, -0.38432759046554565, -0.02322872169315815, 0.8641595244407654, 0.7765557169914246, 0.10173004120588303, -0.1751466542482376, 0.0043730600737035275, 0.3835439682006836, 0.16506731510162354, 0.5890137553215027, 0.5716347098350525, -0.8033246397972107, 0.4494757354259491, -0.7747371792793274, -0.07135527580976486, -0.24144217371940613, -0.5452606081962585, -0.9908340573310852, -0.6561251282691956, -0.38037264347076416, -0.541434645652771, -0.11868312209844589, 1.065950632095337, 0.36919456720352173, -1.0958704948425293, -0.30825597047805786, -0.2809363305568695, 0.15476083755493164, -0.1578875482082367, -0.2826710045337677, 0.6935123801231384, -0.3542027473449707, -0.7882674336433411, -0.06553177535533905, -0.0874408483505249, -0.00033060487476177514, 0.07843992114067078, -0.10188806056976318, -0.5428913235664368, -0.08092080056667328, 0.3953566253185272, 0.2270241528749466, -0.7688792943954468, 0.14612632989883423, 0.1701667308807373, -0.2763041853904724, 0.26819032430648804, 0.3067146837711334, -0.7114037275314331, 0.18088120222091675, 0.6674486398696899, 0.5877537131309509, 0.4900301694869995, 0.027194710448384285, 0.2500288784503937, -0.42376574873924255, 0.22529417276382446, 0.1771504431962967, 0.2973538041114807, 0.16929411888122559, -0.48242655396461487, 0.48963674902915955, 0.23127037286758423, -0.5346978902816772, -0.8870547413825989, -0.24637830257415771, -1.16118323802948, -0.15642286837100983, 1.1946163177490234, -0.21397574245929718, -0.43320900201797485, 0.29963788390159607, -0.3431594967842102, 0.5206949710845947, -0.5218222141265869, 0.5941311120986938, 0.7655508518218994, -0.06751618534326553, -0.05128161609172821, -0.31410282850265503, 0.44178783893585205, 0.8604143261909485, -0.7277845740318298, -0.4204656183719635, 0.12960779666900635, 0.24676188826560974, 0.3255837857723236, 0.4503474533557892, -0.11372070759534836, 0.28885939717292786, -0.2726786434650421, 0.38940727710723877, -0.09547906368970871, 0.12630319595336914, -0.4897412359714508, -0.13025495409965515, -0.09160683304071426, -0.32923492789268494 ]
typeform/distilbert-base-uncased-mnli
typeform
"2023-03-22T08:49:00Z"
32,573
33
transformers
[ "transformers", "pytorch", "tf", "safetensors", "distilbert", "text-classification", "zero-shot-classification", "en", "dataset:multi_nli", "arxiv:1910.09700", "arxiv:2105.09680", "endpoints_compatible", "has_space", "region:us" ]
zero-shot-classification
"2022-03-02T23:29:05Z"
--- language: en pipeline_tag: zero-shot-classification tags: - distilbert datasets: - multi_nli metrics: - accuracy --- # DistilBERT base model (uncased) ## Table of Contents - [Model Details](#model-details) - [How to Get Started With the Model](#how-to-get-started-with-the-model) - [Uses](#uses) - [Risks, Limitations and Biases](#risks-limitations-and-biases) - [Training](#training) - [Evaluation](#evaluation) - [Environmental Impact](#environmental-impact) ## Model Details **Model Description:** This is the [uncased DistilBERT model](https://huggingface.co/distilbert-base-uncased) fine-tuned on [Multi-Genre Natural Language Inference](https://huggingface.co/datasets/multi_nli) (MNLI) dataset for the zero-shot classification task. - **Developed by:** The [Typeform](https://www.typeform.com/) team. - **Model Type:** Zero-Shot Classification - **Language(s):** English - **License:** Unknown - **Parent Model:** See the [distilbert base uncased model](https://huggingface.co/distilbert-base-uncased) for more information about the Distilled-BERT base model. ## How to Get Started with the Model ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("typeform/distilbert-base-uncased-mnli") model = AutoModelForSequenceClassification.from_pretrained("typeform/distilbert-base-uncased-mnli") ``` ## Uses This model can be used for text classification tasks. ## Risks, Limitations and Biases **CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes.** Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). ## Training #### Training Data This model of DistilBERT-uncased is pretrained on the Multi-Genre Natural Language Inference [(MultiNLI)](https://huggingface.co/datasets/multi_nli) corpus. It is a crowd-sourced collection of 433k sentence pairs annotated with textual entailment information. The corpus covers a range of genres of spoken and written text, and supports a distinctive cross-genre generalization evaluation. This model is also **not** case-sensitive, i.e., it does not make a difference between "english" and "English". #### Training Procedure Training is done on a [p3.2xlarge](https://aws.amazon.com/ec2/instance-types/p3/) AWS EC2 with the following hyperparameters: ``` $ run_glue.py \ --model_name_or_path distilbert-base-uncased \ --task_name mnli \ --do_train \ --do_eval \ --max_seq_length 128 \ --per_device_train_batch_size 16 \ --learning_rate 2e-5 \ --num_train_epochs 5 \ --output_dir /tmp/distilbert-base-uncased_mnli/ ``` ## Evaluation #### Evaluation Results When fine-tuned on downstream tasks, this model achieves the following results: - **Epoch = ** 5.0 - **Evaluation Accuracy =** 0.8206875508543532 - **Evaluation Loss =** 0.8706700205802917 - ** Evaluation Runtime = ** 17.8278 - ** Evaluation Samples per second = ** 551.498 MNLI and MNLI-mm results: | Task | MNLI | MNLI-mm | |:----:|:----:|:----:| | | 82.0 | 82.0 | ## Environmental Impact Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700). We present the hardware type based on the [associated paper](https://arxiv.org/pdf/2105.09680.pdf). **Hardware Type:** 1 NVIDIA Tesla V100 GPUs **Hours used:** Unknown **Cloud Provider:** AWS EC2 P3 **Compute Region:** Unknown **Carbon Emitted:** (Power consumption x Time x Carbon produced based on location of power grid): Unknown
[ -0.3470872938632965, -0.7405519485473633, 0.45705002546310425, 0.19421137869358063, -0.21974273025989532, -0.08396695554256439, -0.17231036722660065, -0.4180757403373718, -0.10328935086727142, 0.3416723906993866, -0.5652633309364319, -0.5330549478530884, -0.8260498046875, 0.07844117283821106, -0.2685205042362213, 1.1718738079071045, 0.09211853891611099, 0.01726176030933857, -0.06018349900841713, 0.006106257904320955, -0.24370361864566803, -0.7443852424621582, -0.46303877234458923, -0.18613532185554504, 0.3884504735469818, 0.08530452102422714, 0.36034077405929565, 0.4822549819946289, 0.4189090132713318, 0.34501540660858154, -0.22209517657756805, -0.13212598860263824, -0.4105432331562042, -0.2718636393547058, 0.13575053215026855, -0.2280087023973465, -0.36836183071136475, 0.19196917116641998, 0.42492130398750305, 0.6950708031654358, -0.19951419532299042, 0.3985746502876282, 0.19123169779777527, 0.5639038681983948, -0.7372870445251465, 0.22568179666996002, -0.7321953177452087, 0.02129058726131916, -0.213851198554039, 0.13229365646839142, -0.44664090871810913, 0.0028715028893202543, 0.0530535951256752, -0.5300750732421875, 0.3920912444591522, 0.08575192093849182, 1.0199800729751587, 0.46200600266456604, -0.42068323493003845, -0.19524425268173218, -0.7220114469528198, 1.043155550956726, -0.9802109599113464, 0.235165074467659, 0.32896867394447327, 0.16418777406215668, -0.0026561052072793245, -0.6649512052536011, -0.6952453851699829, -0.14470165967941284, -0.18110595643520355, 0.30871978402137756, -0.2887619435787201, 0.10769372433423996, 0.3801442086696625, 0.5526381731033325, -0.5048707127571106, 0.2776443660259247, -0.40898367762565613, -0.09739812463521957, 0.6589534282684326, 0.11177793145179749, 0.07205638289451599, -0.2795102596282959, -0.4189046621322632, -0.023213090375065804, -0.24477620422840118, 0.2360583394765854, 0.4759558439254761, 0.36389195919036865, -0.35063281655311584, 0.46808621287345886, -0.1886311024427414, 0.6093019843101501, 0.10112188011407852, -0.1980592906475067, 0.4682576060295105, -0.4966728985309601, -0.4496304392814636, 0.08606257289648056, 1.0018349885940552, 0.2569572925567627, -0.07908548414707184, -0.08138629794120789, -0.1407318264245987, 0.01056020986288786, 0.1379455029964447, -0.9880287051200867, -0.26486843824386597, 0.3873196542263031, -0.3861755132675171, -0.42637893557548523, 0.022026635706424713, -0.7557672262191772, -0.0587080679833889, -0.24384596943855286, 0.3821271061897278, -0.41774600744247437, -0.25903570652008057, 0.21794936060905457, -0.2683383524417877, 0.004055270459502935, 0.14840202033519745, -0.912800133228302, 0.223220556974411, 0.41173747181892395, 0.7571341395378113, -0.008317100815474987, -0.25637954473495483, -0.04978633299469948, -0.0925218015909195, 0.019765688106417656, 0.44982972741127014, -0.2131907194852829, -0.36999499797821045, -0.20051327347755432, 0.14833049476146698, 0.008280511945486069, -0.2287471890449524, 0.6651751399040222, -0.19453898072242737, 0.480780690908432, -0.1623447686433792, -0.5119084119796753, -0.42439672350883484, 0.013559621758759022, -0.6607153415679932, 1.3863497972488403, 0.12529589235782623, -0.9457496404647827, 0.4991776943206787, -0.6903277635574341, -0.35675159096717834, -0.0851883664727211, 0.2038508653640747, -0.5995107889175415, -0.08191237598657608, 0.10782599449157715, 0.5185076594352722, -0.39071017503738403, 0.5350117087364197, -0.41953244805336, -0.3057743310928345, -0.11928099393844604, -0.6151284575462341, 1.2198621034622192, 0.1861594021320343, -0.6852793097496033, -0.08294754475355148, -0.852968692779541, -0.07081737369298935, 0.21912850439548492, -0.26202237606048584, -0.31047654151916504, -0.16951270401477814, 0.34886130690574646, 0.3099367916584015, 0.32270941138267517, -0.6936008334159851, -0.00394809152930975, -0.20820793509483337, 0.5683757662773132, 0.5616815686225891, -0.07458554208278656, 0.25519487261772156, -0.19013583660125732, 0.16279739141464233, 0.11888724565505981, 0.3653511703014374, 0.09129239618778229, -0.47348856925964355, -0.8683874607086182, -0.3908076882362366, 0.3812919855117798, 0.6633011102676392, -0.39243635535240173, 0.9510078430175781, -0.15163089334964752, -0.789664626121521, -0.5182132124900818, 0.07483851164579391, 0.5178802609443665, 0.7106274366378784, 0.5197747945785522, -0.031552258878946304, -0.5665006041526794, -0.923632025718689, 0.15621447563171387, -0.13904403150081635, 0.013485432602465153, 0.19325882196426392, 0.7940513491630554, -0.24645251035690308, 0.8480060696601868, -0.4434375464916229, -0.12649354338645935, -0.1627461016178131, 0.3784888684749603, 0.3428083062171936, 0.42894649505615234, 0.7911602854728699, -0.6666844487190247, -0.45469629764556885, -0.3150145709514618, -0.7922716736793518, 0.039207931607961655, 0.03501537814736366, -0.037855200469493866, 0.38599732518196106, 0.21372050046920776, -0.4984433650970459, 0.38254716992378235, 0.5265066027641296, -0.2688415050506592, 0.5497775077819824, -0.2680456042289734, 0.13020865619182587, -1.1266438961029053, 0.2047325223684311, 0.2025969922542572, 0.11705491691827774, -0.5485058426856995, -0.2306838035583496, -0.12939396500587463, -0.031871769577264786, -0.5999475717544556, 0.4561963677406311, -0.38710227608680725, 0.14282749593257904, -0.14345994591712952, -0.24901388585567474, 0.2467121034860611, 0.788942813873291, 0.2611364424228668, 0.633407473564148, 0.6060700416564941, -0.7354438900947571, 0.1178130954504013, 0.10590947419404984, -0.3082248568534851, 0.32265591621398926, -0.8233523964881897, 0.09468307346105576, -0.18822211027145386, 0.270607590675354, -0.8308225870132446, 0.08731691539287567, 0.07214359939098358, -0.4123918116092682, 0.3382653295993805, -0.0677686482667923, -0.6099353432655334, -0.4163815677165985, -0.17441478371620178, 0.23580393195152283, 0.5752459168434143, -0.35997602343559265, 0.39406347274780273, 0.32189154624938965, -0.0469493642449379, -0.7662134766578674, -0.8456043004989624, -0.2099546492099762, -0.366555780172348, -0.37109217047691345, 0.4111787676811218, -0.15179601311683655, -0.18861405551433563, 0.04877588525414467, 0.06568000465631485, -0.3787248730659485, 0.26966601610183716, 0.3474477231502533, 0.4659297466278076, -0.002898845821619034, -0.02019526995718479, 0.04205048829317093, 0.011118732392787933, 0.04669671505689621, -0.13525906205177307, 0.3568646013736725, -0.1498710811138153, -0.09719198197126389, -0.5648054480552673, 0.2594529092311859, 0.5433537364006042, -0.09815282374620438, 0.8677160143852234, 0.6634925007820129, -0.4870881736278534, -0.00322339148260653, -0.4676804840564728, -0.19996795058250427, -0.4265766739845276, 0.5495328903198242, -0.13302099704742432, -0.7138239145278931, 0.3633352518081665, 0.23938575387001038, 0.27985578775405884, 0.8723161220550537, 0.4332747757434845, -0.19240683317184448, 0.8335785269737244, 0.603486180305481, -0.20343650877475739, 0.34034866094589233, -0.5273786187171936, 0.20855681598186493, -0.7291964292526245, -0.23133577406406403, -0.6316102743148804, -0.2460089921951294, -0.722335934638977, -0.29924607276916504, 0.10656033456325531, 0.23539583384990692, -0.6011388897895813, 0.5572564005851746, -0.7177723050117493, 0.09612955152988434, 0.6817215085029602, -0.05370118468999863, 0.18538832664489746, -0.06555569171905518, -0.1039462462067604, -0.15172068774700165, -0.6729198098182678, -0.6453839540481567, 1.1545685529708862, 0.5261686444282532, 0.45222973823547363, -0.032535865902900696, 0.6647896766662598, 0.3289679288864136, 0.20998729765415192, -0.5682523846626282, 0.31014925241470337, -0.3511059880256653, -0.9446357488632202, -0.39435774087905884, -0.38463276624679565, -0.8476250171661377, 0.1545356959104538, -0.33379027247428894, -0.6548090577125549, 0.2065017968416214, 0.09674707800149918, -0.4807141125202179, 0.4917451739311218, -0.7218538522720337, 1.002286672592163, -0.5651450753211975, -0.2423459142446518, 0.005289330147206783, -0.5816401839256287, 0.37853217124938965, -0.13993877172470093, 0.2732364237308502, -0.1816563457250595, 0.1259973794221878, 0.7615438103675842, -0.4181443452835083, 0.8896484375, -0.3382579982280731, 0.12606114149093628, 0.4047597348690033, -0.3596501648426056, 0.30005595088005066, -0.09593966603279114, -0.17350757122039795, 0.7682101130485535, -0.022110294550657272, -0.33659979701042175, -0.4233865439891815, 0.5616703629493713, -0.9191816449165344, -0.27587416768074036, -0.6899220943450928, -0.36988866329193115, -0.05914430320262909, 0.2412373274564743, 0.582509458065033, 0.29261040687561035, -0.31327709555625916, 0.25919851660728455, 0.6663779616355896, -0.41624754667282104, 0.49924343824386597, 0.6089397668838501, 0.04143814370036125, -0.2706865668296814, 0.7558771371841431, 0.10717175155878067, 0.19596101343631744, 0.4356018900871277, 0.05031445249915123, -0.5518938899040222, -0.5733960866928101, -0.5359779596328735, 0.08555436134338379, -0.4804232120513916, -0.11411851644515991, -0.9101272225379944, -0.32998397946357727, -0.5026076436042786, 0.06465333700180054, -0.4462285041809082, -0.2822614312171936, -0.6025424003601074, -0.2819027900695801, 0.5181782841682434, 0.5513333082199097, 0.0943259447813034, 0.4040027856826782, -0.5725774168968201, 0.1621416062116623, 0.1729503571987152, 0.257316917181015, -0.11187446117401123, -0.7166515588760376, -0.10387283563613892, 0.3560379445552826, -0.41736671328544617, -0.6757897138595581, 0.38268378376960754, 0.15103693306446075, 0.663847804069519, 0.2812401354312897, 0.14817605912685394, 0.5801966786384583, -0.44919174909591675, 0.8886276483535767, 0.3207398056983948, -0.8380905389785767, 0.5373136401176453, -0.2334606796503067, 0.1524631679058075, 0.7959306836128235, 0.6501591205596924, -0.21088919043540955, -0.3165852129459381, -0.7911015748977661, -0.9591993689537048, 0.6987779140472412, 0.3255758285522461, 0.03340938687324524, -0.012830793857574463, 0.10980137437582016, 0.07512697577476501, 0.3564392626285553, -0.9920933842658997, -0.4885249733924866, -0.3662433922290802, -0.18201114237308502, -0.24010583758354187, -0.16331975162029266, 0.03526052087545395, -0.5890828967094421, 0.926842212677002, 0.16590449213981628, 0.33791640400886536, 0.16683454811573029, -0.1058608740568161, 0.34430256485939026, 0.2595862150192261, 0.3809652328491211, 0.21864353120326996, -0.563387393951416, -0.0760704055428505, 0.2131263017654419, -0.5019752979278564, 0.20341816544532776, 0.28934988379478455, -0.27259600162506104, 0.13857868313789368, 0.2530953884124756, 1.1574918031692505, 0.13293059170246124, -0.43809258937835693, 0.43172070384025574, -0.08824993669986725, -0.4981722831726074, -0.39658379554748535, 0.00373683194629848, 0.0866483673453331, -0.020078998059034348, 0.28220078349113464, 0.039295993745326996, 0.3773989677429199, -0.5681002736091614, 0.10694149881601334, 0.36798378825187683, -0.48018282651901245, -0.15414775907993317, 0.8407956957817078, 0.34507864713668823, -0.029635783284902573, 0.7071213126182556, -0.4445730447769165, -0.3152773678302765, 0.809569239616394, 0.3574123680591583, 0.8989662528038025, 0.06162632256746292, 0.15715263783931732, 0.7254041433334351, 0.45096808671951294, -0.02932867594063282, 0.11734847724437714, 0.0591391921043396, -0.5580470561981201, -0.344551146030426, -0.9184831380844116, -0.11698777228593826, 0.450428307056427, -0.6758365631103516, 0.2570390999317169, -0.5104861259460449, -0.29509472846984863, 0.2559099793434143, 0.1618940234184265, -0.865546464920044, 0.34223511815071106, 0.1942073404788971, 0.8198031783103943, -1.0559728145599365, 0.7872709631919861, 0.592957079410553, -0.5551693439483643, -0.7209932804107666, -0.1437840312719345, 0.022603843361139297, -0.5151877403259277, 0.6555061936378479, 0.3229624629020691, 0.006972657982259989, -0.017799386754631996, -0.4046695828437805, -0.7910472750663757, 1.2355473041534424, 0.32210132479667664, -0.7881329655647278, 0.10392192751169205, 0.2145882099866867, 0.6157647371292114, -0.17805981636047363, 0.6225546002388, 0.43564096093177795, 0.42789801955223083, 0.04916379228234291, -0.9920030832290649, -0.020174561068415642, -0.3944896459579468, 0.04744763299822807, 0.0757279321551323, -0.642763614654541, 0.9451349973678589, -0.19466838240623474, -0.14955049753189087, -0.16421760618686676, 0.5605183839797974, 0.2708243429660797, 0.34948545694351196, 0.5578259825706482, 0.8751152157783508, 0.7705718874931335, -0.1727214753627777, 0.9745984673500061, -0.3809342086315155, 0.5058368444442749, 1.1407229900360107, -0.1901760995388031, 0.7664464116096497, 0.2618963122367859, -0.4167153537273407, 0.6048943996429443, 0.8438389301300049, -0.2229098379611969, 0.65080326795578, 0.06672302633523941, -0.28612977266311646, 0.03134825453162193, -0.14406906068325043, -0.3725362718105316, 0.41917601227760315, 0.048786770552396774, -0.4456421732902527, -0.13700993359088898, -0.05666286498308182, 0.15276195108890533, -0.08461625874042511, -0.16854175925254822, 0.6428331136703491, -0.12192896753549576, -0.6270942687988281, 0.6149981617927551, 0.12863284349441528, 1.093793272972107, -0.5785672664642334, -0.0007237598183564842, 0.07841328531503677, 0.031105486676096916, -0.20303219556808472, -0.7020931243896484, 0.2763790488243103, 0.16901448369026184, -0.44172483682632446, -0.17524762451648712, 0.4127984344959259, -0.3143994212150574, -0.8410912752151489, 0.44118550419807434, 0.1998898983001709, 0.16115042567253113, -0.20275075733661652, -0.962664783000946, -0.16861554980278015, 0.06184006109833717, -0.20077355206012726, 0.3039141893386841, 0.37405362725257874, 0.1621285229921341, 0.3874894678592682, 0.7023196816444397, -0.1609964817762375, -0.01937054842710495, -0.003566167550161481, 0.6544288992881775, -0.4844396710395813, -0.3589596152305603, -0.8164867162704468, 0.7438075542449951, -0.19490350782871246, -0.5069160461425781, 0.7963244915008545, 0.838421642780304, 0.8479409217834473, -0.04377259686589241, 1.0933338403701782, -0.25976988673210144, 0.3313741683959961, -0.35215410590171814, 0.6207013726234436, -0.5731789469718933, -0.05265931412577629, -0.36245810985565186, -0.8619055151939392, 0.13735763728618622, 0.578754186630249, -0.26401516795158386, 0.17906205356121063, 0.6649460196495056, 0.6167141795158386, -0.0936363935470581, -0.01030456367880106, 0.10055837035179138, 0.1697053164243698, 0.024656949564814568, 0.5142590403556824, 0.2965758740901947, -0.5762858986854553, 0.4546054005622864, -0.7198667526245117, -0.3557479679584503, -0.008089282549917698, -1.046386480331421, -0.7815501093864441, -0.5709845423698425, -0.4938344657421112, -0.2426764965057373, -0.0634954646229744, 0.6166403889656067, 0.7277552485466003, -0.8486186265945435, -0.18909403681755066, -0.2769644856452942, -0.18886074423789978, -0.28399667143821716, -0.2365119308233261, 0.28891292214393616, -0.17089684307575226, -0.8752683401107788, 0.05499535799026489, 0.10347162187099457, 0.18801389634609222, -0.3792327642440796, -0.08148056268692017, -0.3922150433063507, -0.07845401763916016, 0.5793932676315308, 0.1136249229311943, -0.7239121794700623, -0.07254652678966522, 0.1352659910917282, -0.22882041335105896, -0.014604872092604637, 0.3139932453632355, -0.4642692804336548, 0.2936626672744751, 0.3058713674545288, 0.41599446535110474, 0.6329904198646545, -0.15007056295871735, 0.25213494896888733, -0.6714679002761841, 0.379751980304718, 0.24430806934833527, 0.5041443109512329, 0.2984950840473175, -0.5255242586135864, 0.4562894403934479, 0.3519167900085449, -0.5910290479660034, -0.7057296633720398, -0.08841831237077713, -1.0626939535140991, -0.41071099042892456, 1.2245423793792725, -0.1662932187318802, -0.2368832379579544, -0.06939055770635605, -0.14038965106010437, 0.4280213415622711, -0.40418049693107605, 0.740661084651947, 0.8472360372543335, 0.018785348162055016, 0.009017841890454292, -0.7430317997932434, 0.4140089452266693, 0.3355446457862854, -0.788523256778717, -0.011286319233477116, 0.5422805547714233, 0.45446324348449707, 0.17616036534309387, 0.5462287664413452, -0.08048094063997269, -0.07212483137845993, 0.10293147712945938, 0.45558467507362366, -0.11453262716531754, -0.18628033995628357, -0.24237394332885742, -0.17846256494522095, -0.1605008989572525, -0.300639271736145 ]
google/mobilenet_v2_1.0_224
google
"2023-10-31T13:40:16Z"
32,477
6
transformers
[ "transformers", "pytorch", "safetensors", "mobilenet_v2", "image-classification", "vision", "dataset:imagenet-1k", "arxiv:1801.04381", "license:other", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
image-classification
"2022-11-10T16:04:32Z"
--- license: other 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 --- # MobileNet V2 MobileNet V2 model pre-trained on ImageNet-1k at resolution 224x224. It was introduced in [MobileNetV2: Inverted Residuals and Linear Bottlenecks](https://arxiv.org/abs/1801.04381) by Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, Liang-Chieh Chen. It was first released in [this repository](https://github.com/tensorflow/models/tree/master/research/slim/nets/mobilenet). Disclaimer: The team releasing MobileNet V2 did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description From the [original README](https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md): > MobileNets are small, low-latency, low-power models parameterized to meet the resource constraints of a variety of use cases. They can be built upon for classification, detection, embeddings and segmentation similar to how other popular large scale models, such as Inception, are used. MobileNets can be run efficiently on mobile devices [...] MobileNets trade off between latency, size and accuracy while comparing favorably with popular models from the literature. The checkpoints are named **mobilenet\_v2\_*depth*\_*size***, for example **mobilenet\_v2\_1.0\_224**, where **1.0** is the depth multiplier and **224** is the resolution of the input images the model was trained on. ## Intended uses & limitations You can use the raw model for image classification. See the [model hub](https://huggingface.co/models?search=mobilenet_v2) 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) preprocessor = AutoImageProcessor.from_pretrained("google/mobilenet_v2_1.0_224") model = AutoModelForImageClassification.from_pretrained("google/mobilenet_v2_1.0_224") inputs = preprocessor(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]) ``` Note: This model actually predicts 1001 classes, the 1000 classes from ImageNet plus an extra “background” class (index 0). Currently, both the feature extractor and model support PyTorch. ### BibTeX entry and citation info ```bibtex @inproceedings{mobilenetv22018, title={MobileNetV2: Inverted Residuals and Linear Bottlenecks}, author={Mark Sandler and Andrew Howard and Menglong Zhu and Andrey Zhmoginov and Liang-Chieh Chen}, booktitle={CVPR}, year={2018} } ```
[ -0.4454856514930725, -0.21514086425304413, -0.2491111159324646, -0.05801708251237869, -0.30596646666526794, -0.35180211067199707, 0.2569774389266968, -0.7263087034225464, 0.3416130542755127, 0.40315237641334534, -0.3089236617088318, -0.14864598214626312, -0.581443190574646, -0.2829423248767853, -0.3380129039287567, 0.687175452709198, -0.01451667957007885, 0.12179838865995407, -0.40505388379096985, -0.36180344223976135, -0.3156737983226776, -0.36056840419769287, -0.8255612254142761, -0.44517281651496887, 0.6021527051925659, 0.5349241495132446, 0.5242455005645752, 0.7792866826057434, 0.5386359691619873, 0.3176529109477997, -0.03554977849125862, 0.05388379842042923, -0.36431851983070374, -0.3044796586036682, 0.14343295991420746, -0.476904958486557, -0.4078953266143799, 0.33300650119781494, 0.21041260659694672, 0.20916493237018585, 0.1712108850479126, 0.5444557666778564, 0.016525287181138992, 0.6414833068847656, -0.5466590523719788, -0.07463972270488739, -0.5742719173431396, 0.1102193221449852, 0.08944296091794968, 0.15365852415561676, -0.23053552210330963, -0.0862019881606102, 0.12588028609752655, -0.24991369247436523, 0.24058853089809418, -0.16105739772319794, 1.2696666717529297, 0.32196030020713806, -0.5464314222335815, -0.09280560165643692, -0.4900381565093994, 0.5396061539649963, -0.38289207220077515, 0.22126588225364685, 0.5557087659835815, 0.4526078701019287, 0.12451518326997757, -1.2133842706680298, -0.37501636147499084, -0.04087422788143158, 0.0326121486723423, 0.07479164004325867, -0.2916754484176636, -0.12803274393081665, 0.14649567008018494, 0.3496699035167694, -0.5512756705284119, 0.3529049754142761, -0.9408690333366394, -0.40152332186698914, 0.725250780582428, 0.007002136670053005, 0.10725349932909012, -0.1790778636932373, -0.56499844789505, -0.03168415650725365, -0.5461277365684509, 0.43715450167655945, 0.18135671317577362, -0.09334177523851395, -0.40767714381217957, 0.5820220112800598, -0.2469445914030075, 0.4821808636188507, -0.0832367017865181, -0.1679980605840683, 0.3836684823036194, -0.23684394359588623, -0.31602174043655396, 0.11284423619508743, 0.9262614250183105, 0.5214799642562866, 0.08568882942199707, 0.22168199717998505, -0.11452612280845642, 0.0203383881598711, 0.32019978761672974, -1.3056316375732422, -0.32214802503585815, 0.4000612497329712, -0.8736990690231323, -0.6585128307342529, 0.07911190390586853, -0.43832510709762573, -0.3434285819530487, -0.10782443732023239, 0.3011329174041748, -0.02737014926970005, -0.43965575098991394, -0.17287462949752808, 0.04009426757693291, 0.34785711765289307, 0.17983338236808777, -0.6213206648826599, 0.26919466257095337, 0.3302749693393707, 1.181289553642273, 0.11618879437446594, -0.13765226304531097, -0.018646489828824997, -0.6436330080032349, -0.23656049370765686, 0.5453855395317078, -0.0537581704556942, -0.2178913652896881, -0.29487958550453186, 0.2966121733188629, -0.015946058556437492, -0.5674028992652893, 0.546794056892395, -0.5549485087394714, 0.06566620618104935, 0.020980602130293846, -0.02231387421488762, -0.4741683900356293, 0.14838507771492004, -0.5999886393547058, 1.1927738189697266, 0.19596943259239197, -0.7900860905647278, 0.12364505231380463, -0.40859177708625793, -0.20209485292434692, -0.26056110858917236, 0.1809411495923996, -0.8126203417778015, -0.059534911066293716, -0.14250291883945465, 0.5524715185165405, -0.3934258222579956, 0.03368819132447243, -0.45301586389541626, -0.3928817808628082, 0.01550139207392931, 0.0062815481796860695, 0.9841806292533875, 0.5931381583213806, -0.4456067681312561, 0.09946120530366898, -0.6595878601074219, 0.40774667263031006, 0.24938957393169403, -0.13649898767471313, -0.08296127617359161, -0.173592671751976, 0.2206457257270813, 0.6700186133384705, 0.137837752699852, -0.29332485795021057, 0.21485048532485962, -0.02943325601518154, 0.7666121125221252, 0.1770038604736328, -0.337647408246994, 0.5529842376708984, -0.25537246465682983, 0.2731570303440094, 0.1984269767999649, 0.3219010829925537, -0.3235490620136261, -0.5932035446166992, -0.8253169655799866, -0.2256365865468979, 0.43907102942466736, 0.6729411482810974, -0.5592333078384399, 0.2046581506729126, -0.32054948806762695, -0.8943160176277161, -0.25765711069107056, 0.06210118159651756, 0.42865678668022156, 0.3848777413368225, 0.3162989914417267, -0.5112433433532715, -0.8725438714027405, -0.9452724456787109, 0.08877827227115631, -0.05699301138520241, 0.10944657772779465, 0.5218430757522583, 0.67186039686203, -0.45611512660980225, 0.8254439830780029, -0.05999509617686272, -0.18481555581092834, -0.0735141932964325, 0.07697425782680511, 0.07529374957084656, 0.7933001518249512, 0.5383927822113037, -1.0409022569656372, -0.2732689380645752, -0.048462968319654465, -0.9165980219841003, 0.25861847400665283, 0.045728616416454315, -0.003495448734611273, 0.07225698232650757, 0.492745041847229, -0.5731702446937561, 0.6493725180625916, 0.47300639748573303, -0.277840793132782, 0.3932332992553711, 0.026364488527178764, -0.14196792244911194, -1.1451772451400757, 0.10641812533140182, 0.2809537649154663, -0.3079800307750702, -0.503932774066925, -0.058615557849407196, 0.19157803058624268, -0.21578143537044525, -0.6132725477218628, 0.6575196385383606, -0.4649442434310913, -0.2672019898891449, -0.46904632449150085, -0.3648311495780945, -0.02641638182103634, 0.31963494420051575, 0.0846492275595665, 0.5181978940963745, 0.5733823180198669, -0.6332328915596008, 0.5208884477615356, 0.07215318083763123, -0.2600707411766052, 0.15114881098270416, -0.929562509059906, 0.2565438449382782, -0.043917834758758545, 0.5025927424430847, -0.9162101149559021, -0.32682400941848755, 0.37069472670555115, -0.6676566004753113, 0.2211032509803772, -0.5878006219863892, -0.18063290417194366, -0.8300727605819702, -0.21732497215270996, 0.5316616296768188, 0.6376033425331116, -0.5832999348640442, 0.4858793318271637, 0.3925841152667999, 0.4099471867084503, -0.6249536275863647, -0.8250985741615295, 0.03028174489736557, -0.2203194946050644, -0.8394995331764221, 0.3919716775417328, 0.3269363045692444, 0.04990857467055321, -0.007966151461005211, -0.23012122511863708, -0.34163230657577515, 0.005223946645855904, 0.7957047820091248, 0.3171316087245941, -0.33055880665779114, -0.11489325016736984, -0.08849073946475983, -0.14507454633712769, 0.0002781738294288516, -0.659115195274353, 0.5058220624923706, -0.4051026403903961, 0.1875227391719818, -0.7499759197235107, -0.1320585161447525, 0.7078853249549866, -0.23724670708179474, 0.5949756503105164, 1.0013818740844727, -0.5586345195770264, 0.17582640051841736, -0.4514853060245514, -0.2051701694726944, -0.4806695282459259, 0.5222985148429871, -0.4770607650279999, -0.6203832030296326, 0.6770340800285339, -0.042291488498449326, -0.24592608213424683, 0.532092273235321, 0.3832959830760956, -0.046178750693798065, 0.7601011395454407, 0.5397098064422607, 0.15748831629753113, 0.5202695727348328, -0.8197184801101685, -0.08916633576154709, -0.8774911761283875, -0.5787598490715027, -0.37518829107284546, -0.4336605370044708, -0.8592160940170288, -0.3701096773147583, 0.14283844828605652, 0.515206515789032, -0.4720385670661926, 0.7186493277549744, -0.5251948237419128, 0.2847922444343567, 0.6066957116127014, 0.5610211491584778, -0.3571619987487793, 0.3527378439903259, -0.06141107901930809, 0.25858351588249207, -0.8205578923225403, -0.4875400960445404, 1.0682927370071411, 0.6850107908248901, 0.33690088987350464, -0.04053455963730812, 0.3882129490375519, 0.09085049480199814, 0.2158321887254715, -0.8751077055931091, 0.4089353382587433, -0.13068990409374237, -0.7317478656768799, -0.059574998915195465, -0.3969269394874573, -0.9298971891403198, 0.300673246383667, -0.22242645919322968, -0.8066090941429138, 0.5064391493797302, 0.33943742513656616, -0.23327450454235077, 0.30602702498435974, -0.8030537366867065, 1.070494294166565, -0.15379884839057922, -0.8088038563728333, 0.030174795538187027, -0.8953813910484314, 0.48136675357818604, 0.10605384409427643, -0.02480749972164631, -0.08529875427484512, 0.08531362563371658, 0.7491358518600464, -0.7826354503631592, 0.7698132395744324, -0.3308544158935547, 0.36337631940841675, 0.8644417524337769, 0.0026020884979516268, 0.6349445581436157, 0.05963439866900444, -0.07134871184825897, 0.5218985080718994, 0.09944335371255875, -0.5335386991500854, -0.31601083278656006, 0.7175878286361694, -0.952851414680481, -0.08786448836326599, -0.19473996758460999, -0.10699591040611267, 0.14752709865570068, 0.3745638430118561, 0.7737399339675903, 0.588135302066803, 0.2104376256465912, 0.25695350766181946, 0.47282910346984863, -0.15776097774505615, 0.5244050025939941, -0.1273483783006668, -0.23797383904457092, -0.36736154556274414, 0.9216623902320862, 0.17448033392429352, 0.07400780916213989, 0.022315407171845436, 0.15022654831409454, -0.4578728675842285, -0.44315850734710693, -0.5455341339111328, -0.06672065705060959, -0.5794996023178101, -0.3846534788608551, -0.6893704533576965, -0.4384942948818207, -0.39846017956733704, 0.014483042992651463, -0.7777239084243774, -0.41675037145614624, -0.5710182785987854, 0.15132245421409607, 0.2299487590789795, 0.43998345732688904, -0.1764758676290512, 0.5694637298583984, -0.5459723472595215, 0.08948186039924622, 0.31314828991889954, 0.3942227363586426, 0.03180548548698425, -0.7558396458625793, -0.2377106249332428, 0.22847406566143036, -0.36919495463371277, -0.3915212154388428, 0.2882784605026245, 0.0752483531832695, 0.17994827032089233, 0.5178591012954712, -0.3218187987804413, 0.5018413066864014, -0.07091448456048965, 0.6335280537605286, 0.739240825176239, -0.5068114995956421, 0.2861505150794983, -0.13326112926006317, 0.14755657315254211, 0.35924631357192993, 0.577497661113739, -0.2188769429922104, 0.5151296257972717, -0.6069149971008301, -0.8011986613273621, 0.6011187434196472, 0.1259961575269699, 0.30159878730773926, 0.4216706156730652, 0.5016496777534485, -0.2227974534034729, 0.0951337218284607, -0.8313590884208679, -0.4416622221469879, -0.8290017247200012, -0.11840091645717621, 0.0305834598839283, -0.6905771493911743, 0.28200098872184753, -0.647566556930542, 0.5234324932098389, 0.1084299087524414, 0.6720694899559021, 0.25705453753471375, -0.07302495837211609, 0.059465616941452026, -0.4634232819080353, 0.8763164281845093, 0.35982951521873474, -0.18705953657627106, 0.3028298020362854, -0.0428607240319252, -0.763180136680603, 0.26311004161834717, -0.026560425758361816, -0.14716120064258575, -0.04992984980344772, 0.21624436974525452, 0.9686933159828186, -0.10236579924821854, -0.09022200107574463, 0.5758019685745239, 0.005212164483964443, -0.46938320994377136, -0.558478057384491, 0.08399121463298798, -0.03201497346162796, 0.33002060651779175, 0.2611916661262512, 0.5297273993492126, 0.18464747071266174, -0.41582348942756653, 0.29743877053260803, 0.15948504209518433, -0.7286091446876526, -0.19466835260391235, 0.8102455735206604, 0.1375136822462082, -0.3010431230068207, 0.7453131079673767, -0.3726775348186493, -0.5626493692398071, 1.045374870300293, 0.45190656185150146, 0.672519326210022, -0.15215401351451874, 0.12234754860401154, 1.0162584781646729, 0.23783743381500244, -0.24554164707660675, 0.056997150182724, 0.13533513247966766, -0.727366030216217, -0.17977745831012726, -0.33106985688209534, 0.26523643732070923, 0.41453638672828674, -0.5764142870903015, 0.44102317094802856, -0.5190728306770325, -0.4291566014289856, 0.16531483829021454, 0.08824630826711655, -0.6674312949180603, 0.4593793749809265, 0.20331627130508423, 1.066886305809021, -0.4494529068470001, 0.9899349212646484, 0.7762525081634521, -0.30163413286209106, -0.9531998634338379, -0.3881031274795532, 0.07533092796802521, -0.6572010517120361, 0.7628852725028992, 0.5524935126304626, 0.02285083569586277, 0.21742595732212067, -0.8035944104194641, -0.822699248790741, 1.2760027647018433, -0.08784061670303345, -0.45835161209106445, 0.24080176651477814, -0.03743070363998413, 0.18318858742713928, -0.5136696100234985, 0.6652727127075195, 0.07257488369941711, 0.18500323593616486, 0.4581688642501831, -0.7641662359237671, 0.050574615597724915, -0.5410098433494568, 0.27069559693336487, -0.01650724560022354, -0.7703301906585693, 0.8686279654502869, -0.5547207593917847, -0.01355983316898346, 0.19426845014095306, 0.5883591175079346, -0.16609948873519897, 0.6167457103729248, 0.41167357563972473, 0.5049010515213013, 0.5946110486984253, -0.1406780481338501, 0.8784506916999817, -0.0891365110874176, 0.4662219285964966, 0.8941285610198975, 0.19205938279628754, 0.6282154321670532, 0.2678547203540802, -0.002030587987974286, 0.32286232709884644, 1.1814424991607666, -0.37530773878097534, 0.5455090403556824, 0.2244008332490921, -0.026649268344044685, -0.10019229352474213, 0.010742995887994766, -0.4899284839630127, 0.7381520867347717, 0.09765640646219254, -0.7155869603157043, 0.06786687672138214, 0.16903835535049438, 0.07291702181100845, -0.5407187938690186, -0.5597779750823975, 0.3213368356227875, 0.03859909996390343, -0.4767237603664398, 0.9832876920700073, 0.3708097040653229, 0.6879327297210693, -0.14168354868888855, 0.11729971319437027, -0.3320000469684601, 0.10600187629461288, -0.49302938580513, -0.3578415811061859, 0.30946290493011475, -0.24771735072135925, -0.22105439007282257, 0.15341021120548248, 1.0090068578720093, -0.11043816804885864, -0.40474581718444824, 0.05840565636754036, 0.009090650826692581, 0.43054765462875366, -0.1831548810005188, -0.8759873509407043, 0.3151589035987854, -0.04471087455749512, -0.2952738106250763, 0.22104211151599884, -0.037980902940034866, -0.141198068857193, 0.8049628734588623, 0.5808157324790955, -0.37020573019981384, 0.14991872012615204, -0.5731493830680847, 0.834425151348114, -0.40530577301979065, -0.23845264315605164, -0.626941442489624, 0.738982617855072, -0.2109449803829193, -0.5203114748001099, 0.3374275863170624, 0.8756175637245178, 0.8462955951690674, -0.02510634809732437, 0.5886375904083252, -0.36288726329803467, -0.02621532790362835, -0.2877004146575928, 0.5995557308197021, -0.7671517729759216, -0.00674400432035327, 0.16459448635578156, -0.5467512607574463, -0.09411700814962387, 0.8285978436470032, -0.30900585651397705, 0.22175224125385284, 0.42757096886634827, 0.969683825969696, -0.45378896594047546, -0.0583144873380661, 0.21662189066410065, -0.035150010138750076, -0.13463477790355682, 0.335312157869339, 0.5500262379646301, -1.0504449605941772, 0.48344987630844116, -0.5668272376060486, -0.14286339282989502, -0.6256894469261169, -0.6530890464782715, -0.8285361528396606, -0.7312925457954407, -0.4385787844657898, -1.0207875967025757, -0.05960022658109665, 0.8230353593826294, 1.2538477182388306, -0.6664716005325317, -0.16137796640396118, -0.26460760831832886, 0.1181686669588089, -0.020666394382715225, -0.19922354817390442, 0.3385584056377411, 0.1731584072113037, -0.43553057312965393, -0.0458499938249588, -0.20832769572734833, 0.3577289581298828, 0.03361181542277336, -0.2848123610019684, 0.029232725501060486, -0.2642780542373657, 0.619295597076416, 0.5560721158981323, -0.4355257451534271, -0.04721156135201454, -0.08251667767763138, -0.4686391055583954, 0.1482250988483429, 0.7682140469551086, -0.514897346496582, 0.19843493402004242, 0.23729625344276428, 0.35381370782852173, 0.8566888570785522, -0.12124151736497879, -0.07465119659900665, -0.32917502522468567, 0.6280105113983154, 0.010994015261530876, 0.22556424140930176, 0.0967467799782753, -0.3086254298686981, 0.619511604309082, 0.41025152802467346, -0.41018304228782654, -0.8521572351455688, 0.11642199009656906, -1.056113839149475, -0.23409588634967804, 1.2674587965011597, -0.1432209461927414, -0.23479898273944855, 0.17178182303905487, -0.04974969103932381, 0.3261875510215759, 0.03823288902640343, 0.442053884267807, 0.17411905527114868, 0.12020757049322128, -0.6599962115287781, -0.736623227596283, 0.357499897480011, 0.013557896949350834, -0.4857152998447418, -0.5971764922142029, 0.19588783383369446, 0.5143330097198486, 0.058476563543081284, 0.3761274218559265, -0.19002516567707062, 0.29915186762809753, 0.3816812336444855, 0.410647451877594, -0.5483942627906799, -0.35944664478302, -0.12528222799301147, 0.01741265319287777, -0.24691815674304962, -0.5338164567947388 ]
sadickam/sdg-classification-bert
sadickam
"2023-07-01T11:47:27Z"
32,454
4
transformers
[ "transformers", "pytorch", "safetensors", "bert", "text-classification", "en", "license:mit", "endpoints_compatible", "has_space", "region:us" ]
text-classification
"2023-01-15T23:34:42Z"
--- license: mit language: - en metrics: - accuracy - matthews_correlation --- # sadickam/sdg-classification-bert <!-- Provide a quick summary of what the model is/does. --> This model is for classifying text with respect to the United Nations sustainable development goals (SDG). ![image](https://user-images.githubusercontent.com/73560591/216751462-ced482ba-5d8e-48aa-9a48-5557979a35f1.png) Source:https://www.un.org/development/desa/disabilities/about-us/sustainable-development-goals-sdgs-and-disability.html ## Model Details ### Model Description <!-- Provide a longer summary of what this model is. --> This text classification model was developed by fine-tuning the bert-base-uncased pre-trained model. The training data for this fine-tuned model was sourced from the publicly available OSDG Community Dataset (OSDG-CD) at https://zenodo.org/record/5550238#.ZBulfcJByF4. This model was made as part of academic research at Deakin University. The goal was to make a transformer-based SDG text classification model that anyone could use. Only the first 16 UN SDGs supported. The primary model details are highlighted below: - **Model type:** Text classification - **Language(s) (NLP):** English - **License:** mit - **Finetuned from model [optional]:** bert-base-uncased ### Model Sources <!-- Provide the basic links for the model. --> - **Repository:** https://huggingface.co/sadickam/sdg-classification-bert - **Demo [optional]:** option 1: https://sadickam-sdg-text-classifier.hf.space/; option 2: https://sadickam-sdg-classification-bert-main-qxg1gv.streamlit.app/ ### Direct Use <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. --> This is a fine-tuned model and therefore requires no further training. ## How to Get Started with the Model Use the code below to get started with the model. ```python from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sadickam/sdg-classification-bert") model = AutoModelForSequenceClassification.from_pretrained("sadickam/sdg-classification-bert") ``` ## Training Data <!-- This should link to a Data Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. --> The training data includes text from a wide range of industries and academic research fields. Hence, this fine-tuned model is not for a specific industry. See training here: https://zenodo.org/record/5550238#.ZBulfcJByF4 ## Training Hyperparameters - Num_epoch = 3 - Learning rate = 5e-5 - Batch size = 16 ## Evaluation #### Metrics <!-- These are the evaluation metrics being used, ideally with a description of why. --> - Accuracy = 0.9 - Matthews correlation = 0.89 ## Citation Sadick, A.M. (2023). SDG classification with BERT. https://huggingface.co/sadickam/sdg-classification-bert <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. --> <!--## Model Card Contact -->
[ -0.4682069718837738, -0.41676437854766846, 0.25211575627326965, 0.03350231051445007, -0.42311665415763855, -0.2481784075498581, -0.1703464239835739, -0.5326111316680908, 0.043357253074645996, 0.5226999521255493, -0.7023547291755676, -0.7696722149848938, -0.799002468585968, 0.09323987364768982, -0.3547864258289337, 1.4554224014282227, 0.06386188417673111, 0.06932009011507034, 0.07981398701667786, -0.06643492728471756, -0.38095059990882874, -0.4510192275047302, -0.4221135377883911, -0.3948220908641815, 0.34193703532218933, 0.2388569563627243, 0.49911725521087646, 0.561625599861145, 0.5470097064971924, 0.28070998191833496, -0.22943228483200073, 0.04346645250916481, -0.3228462338447571, -0.23935943841934204, -0.03625177964568138, -0.3065430521965027, -0.38441726565361023, 0.3610309958457947, 0.3716919720172882, 0.4417012631893158, -0.17827226221561432, 0.3312496840953827, -0.06271644681692123, 0.5471246838569641, -0.2603313624858856, 0.343837171792984, -0.5439761877059937, 0.088165283203125, 0.06321835517883301, 0.2421698272228241, -0.3090429902076721, -0.5067991614341736, 0.46477821469306946, -0.28313347697257996, 0.48350459337234497, -0.049113377928733826, 1.1877892017364502, 0.32517239451408386, -0.47286126017570496, -0.5923961400985718, -0.5924577713012695, 0.7861337661743164, -0.7662891745567322, 0.28416934609413147, 0.44707193970680237, 0.1879178285598755, 0.1735006868839264, -0.7655885219573975, -0.6509377360343933, -0.09613371640443802, 0.0854324921965599, 0.3204272985458374, 0.09760908037424088, 0.2828710377216339, 0.3700824975967407, 0.4390416741371155, -0.5338308215141296, 0.15134131908416748, -0.6158088445663452, -0.2224663496017456, 0.7584505677223206, -0.013626701198518276, -0.029795194044709206, -0.6194664239883423, -0.9285497665405273, -0.17145617306232452, -0.20198363065719604, 0.05386141687631607, 0.29043665528297424, 0.37618759274482727, -0.27943241596221924, 0.431989848613739, -0.035470809787511826, 0.6545788645744324, 0.010482383891940117, -0.20595726370811462, 0.3812023997306824, -0.19148749113082886, -0.21517314016819, 0.0991671159863472, 0.7876570820808411, 0.4431646764278412, 0.05876718461513519, -0.03659592941403389, -0.4363124668598175, 0.14752276241779327, 0.33809077739715576, -0.9313986897468567, -0.4396285116672516, 0.051016174256801605, -0.7810607552528381, -0.32335296273231506, -0.06087889149785042, -0.5705094933509827, -0.20347614586353302, -0.5031698942184448, 0.7421390414237976, -0.5487281084060669, 0.018784021958708763, 0.1107446625828743, -0.18901380896568298, 0.13503873348236084, 0.27100977301597595, -0.901789665222168, -0.09950420260429382, 0.250461608171463, 0.7190414071083069, -0.029182767495512962, -0.22560518980026245, 0.23848403990268707, -0.05185288190841675, 0.12200307101011276, 0.7818248271942139, -0.17304788529872894, -0.2450326532125473, -0.10510267317295074, 0.021598342806100845, -0.036123402416706085, -0.19107311964035034, 1.0106573104858398, -0.3860858976840973, 0.4086846113204956, -0.22263185679912567, -0.7764561176300049, -0.3818548619747162, 0.03718746080994606, -0.5589982867240906, 1.0597866773605347, 0.10764742642641068, -0.8149087429046631, 0.5885177850723267, -0.643400251865387, -0.30308353900909424, 0.10686018317937851, 0.02547730877995491, -0.6439903378486633, -0.062039196491241455, 0.041429582983255386, 0.753146231174469, -0.3693574368953705, 0.47716233134269714, -0.25571298599243164, -0.38157036900520325, -0.0258577112108469, -0.38777458667755127, 0.9112417101860046, 0.4077126383781433, -0.10896340012550354, -0.06550128012895584, -1.0811911821365356, 0.05639569088816643, -0.0023904668632894754, -0.6526249647140503, -0.2716156840324402, 0.08325082063674927, 0.39214515686035156, 0.3444194197654724, 0.4083637595176697, -0.6148949861526489, 0.24529258906841278, -0.059341177344322205, 0.564458429813385, 0.8316945433616638, -0.1794636845588684, 0.18349304795265198, -0.39706411957740784, 0.14441603422164917, -0.06112769991159439, 0.34164607524871826, -0.04246531054377556, -0.5797104239463806, -0.6861327886581421, -0.39457330107688904, 0.67800372838974, 0.47929173707962036, -0.5643859505653381, 1.0900943279266357, -0.1916084736585617, -0.833532989025116, -0.6480451822280884, -0.009087142534554005, -0.005002047400921583, 0.6062313914299011, 0.42442160844802856, -0.22867456078529358, -0.6037916541099548, -0.6545531749725342, -0.04225027188658714, -0.30437082052230835, -0.024266023188829422, 0.08187736570835114, 0.47613322734832764, -0.7201193571090698, 1.0247896909713745, -0.4850352704524994, -0.41001349687576294, -0.21699228882789612, 0.5776551365852356, 0.3052142262458801, 0.49362754821777344, 0.6232424974441528, -0.9173231720924377, -0.3214336335659027, -0.4613306224346161, -0.6258640289306641, -0.22779430449008942, -0.037180326879024506, 0.012809941545128822, 0.08515918254852295, 0.11478813737630844, -0.584689736366272, 0.40683484077453613, 0.4663645029067993, -0.27835068106651306, 0.5370951890945435, -0.24993203580379486, -0.11978398263454437, -1.025550365447998, -0.04224953055381775, 0.2679513096809387, -0.05022198334336281, -0.5716386437416077, -0.3001473546028137, 0.19589963555335999, -0.27309873700141907, -0.1675911694765091, 0.3558555245399475, -0.06958367675542831, 0.22957643866539001, -0.3684570789337158, -0.03274727612733841, -0.14817138016223907, 0.5505460500717163, 0.1944851279258728, 0.5478867292404175, 0.4407384693622589, -0.855468213558197, 0.34608688950538635, 0.5118928551673889, -0.47626417875289917, 0.3798767030239105, -0.6856417059898376, -0.08682122081518173, -0.1209750697016716, 0.1289251148700714, -1.0457619428634644, -0.08828030526638031, 0.11717917025089264, -0.48816999793052673, 0.3167925775051117, 0.002915829885751009, -0.6219604015350342, -0.515539824962616, -0.1765897274017334, 0.033576108515262604, 0.799901008605957, -0.7763510942459106, 0.4237818717956543, 0.386017769575119, -0.0385570302605629, -0.3902743458747864, -0.6508825421333313, -0.25645777583122253, -0.22816385328769684, -0.45527514815330505, 0.35232263803482056, -0.29814717173576355, 0.3714188039302826, -0.11211883276700974, -0.2597499489784241, -0.2681587338447571, -0.03219250962138176, 0.20524460077285767, 0.40789857506752014, 0.043786369264125824, 0.4776690602302551, 0.06630969047546387, -0.14898735284805298, 0.08181644976139069, -0.14546576142311096, 0.22599337995052338, 0.017538636922836304, 0.03403181955218315, -0.5366275310516357, 0.06261704862117767, 0.5294462442398071, -0.0893133357167244, 0.6980648040771484, 0.9052242636680603, -0.3676846921443939, -0.3517846465110779, -0.4746145009994507, -0.15854865312576294, -0.47046127915382385, 0.39036235213279724, -0.02792627178132534, -0.6734317541122437, 0.33327656984329224, -0.29870715737342834, 0.13463690876960754, 0.6120256185531616, 0.3874649703502655, -0.30302438139915466, 1.1270825862884521, 0.8578812479972839, -0.04925692453980446, 0.5964257121086121, -0.3277740478515625, 0.3211583197116852, -0.6064656376838684, -0.28615057468414307, -0.6002126336097717, -0.2733772397041321, -0.7989383339881897, -0.00042215155554004014, -0.001140936859883368, 0.2716197371482849, -0.2734609544277191, 0.6309122443199158, -0.8199687600135803, 0.1695874035358429, 0.466884046792984, 0.1499807983636856, 0.0008051904733292758, -0.11321473866701126, -0.022126877680420876, -0.20005518198013306, -0.805202066898346, -0.7944387793540955, 1.0313544273376465, 0.5946998000144958, 1.1375927925109863, -0.22612982988357544, 0.8946443200111389, 0.6285300850868225, 0.4247460961341858, -0.7495341300964355, 0.49860069155693054, -0.39180153608322144, -0.6662936210632324, -0.1349726915359497, -0.5571105480194092, -0.7477460503578186, 0.10011561214923859, -0.28391095995903015, -0.5222532749176025, 0.3777000904083252, 0.06813324242830276, -0.32728829979896545, 0.24780897796154022, -1.0264215469360352, 0.9178944230079651, -0.3847735822200775, 0.3357706069946289, 0.04341445490717888, -0.6534582376480103, 0.1828577220439911, -0.23863103985786438, 0.11855006963014603, -0.3732602000236511, 0.1353919953107834, 0.9845426678657532, -0.4301176071166992, 1.0457509756088257, -0.26789590716362, -0.15616482496261597, 0.2928275167942047, -0.5849624872207642, 0.30904194712638855, -0.15454427897930145, -0.06708680093288422, 0.4295905530452728, 0.03121781349182129, -0.3731650412082672, -0.15059438347816467, 0.5559245347976685, -1.1310789585113525, -0.17706839740276337, -0.6056236624717712, -0.38088709115982056, -0.010621285997331142, 0.2574974000453949, 0.45652374625205994, 0.10615840554237366, -0.07673359662294388, 0.13601577281951904, 0.9320301413536072, -0.21210958063602448, 0.24942508339881897, 0.531246542930603, 0.12538465857505798, -0.29715636372566223, 0.855792224407196, 0.2677397131919861, 0.15352164208889008, 0.2612493336200714, 0.10184071958065033, -0.559241771697998, -0.47367265820503235, -0.16082094609737396, 0.21388186514377594, -0.892393946647644, -0.4182722568511963, -0.5402367115020752, -0.6110562682151794, -0.43889498710632324, 0.021252619102597237, -0.13763926923274994, -0.2979499399662018, -0.6277750730514526, -0.1386193335056305, 0.5205373167991638, 0.6785635352134705, -0.07569684833288193, 0.5936334133148193, -0.7852745056152344, 0.2972688674926758, 0.46107327938079834, 0.4432642161846161, -0.09400014579296112, -0.679843544960022, -0.30126360058784485, 0.23295651376247406, -0.4950406849384308, -0.8314629793167114, 0.32901906967163086, 0.3429981470108032, 0.4935368299484253, 0.5281401872634888, 0.29363173246383667, 0.501509964466095, -0.5199372172355652, 0.7855504751205444, 0.39286670088768005, -0.9620845913887024, 0.7070006728172302, -0.11549507081508636, 0.1495952606201172, 0.48732584714889526, 0.6363906860351562, -0.4575599431991577, -0.0795648917555809, -0.6080084443092346, -0.8331879377365112, 1.0184563398361206, 0.14021188020706177, 0.2172909528017044, -0.03837985545396805, 0.5450522899627686, 0.3041321039199829, 0.21825706958770752, -1.123585820198059, -0.2065112590789795, -0.40257906913757324, -0.42747193574905396, 0.0026210960932075977, -0.2633480727672577, 0.05444078519940376, -0.41798314452171326, 0.8012375831604004, 0.0770532488822937, 0.48597556352615356, 0.18745887279510498, -0.13945165276527405, 0.0026451728772372007, 0.12144124507904053, 0.35450461506843567, 0.4309365153312683, -0.43768230080604553, -0.08113828301429749, 0.10002711415290833, -0.7267457246780396, 0.046029556542634964, 0.45028820633888245, -0.1919296234846115, 0.16426824033260345, 0.1827942579984665, 0.9311692714691162, 0.06513957679271698, -0.6445268988609314, 0.34277719259262085, -0.20515085756778717, -0.32453957200050354, -0.17890922725200653, 0.24267004430294037, -0.22637881338596344, 0.30066606402397156, 0.4517941176891327, 0.13725188374519348, 0.11453758925199509, -0.36420682072639465, 0.06354829668998718, 0.05359230190515518, -0.32107242941856384, -0.14501866698265076, 0.7488882541656494, 0.32601621747016907, -0.25678104162216187, 0.6198613047599792, -0.24102385342121124, -0.5542028546333313, 0.6358482837677002, 0.5488100051879883, 0.8147316575050354, -0.31602761149406433, 0.3453866243362427, 0.5209248661994934, 0.44829297065734863, -0.15384818613529205, 0.40074244141578674, -0.21285143494606018, -0.6324736475944519, -0.0993552953004837, -0.9154927134513855, -0.24129098653793335, 0.2831314206123352, -0.6934194564819336, 0.46280309557914734, -0.5614544153213501, -0.3959953784942627, 0.23985649645328522, 0.1752426028251648, -0.7560973167419434, 0.5785878896713257, 0.16556404531002045, 0.9762187004089355, -1.087625503540039, 0.8917778134346008, 0.787122368812561, -0.6234155893325806, -0.450543612241745, 0.07361835241317749, -0.4651612937450409, -0.6801486015319824, 0.6008172631263733, 0.41463324427604675, 0.26806187629699707, 0.009342026896774769, -0.7765034437179565, -0.7938015460968018, 1.2018259763717651, 0.03187377750873566, -0.5998286604881287, -0.15210583806037903, 0.04849468544125557, 0.6413744688034058, -0.1488155722618103, 0.05584007874131203, 0.24953438341617584, 0.3008367121219635, 0.05598945543169975, -0.7557955980300903, -0.07182954251766205, -0.04349496588110924, 0.3247002065181732, 0.2857585549354553, -0.7762414813041687, 0.8572341799736023, -0.1189776286482811, -0.14415082335472107, 0.1514425277709961, 0.57847660779953, 0.01783669926226139, 0.25624874234199524, 0.5159735083580017, 0.867835283279419, 0.7866867184638977, -0.3457309901714325, 0.773853600025177, -0.2554779052734375, 0.8581879138946533, 0.8014692664146423, -0.11069821566343307, 0.6804364323616028, 0.008800876326858997, -0.28714537620544434, 0.3201037347316742, 1.0351579189300537, -0.48819026350975037, 0.9364168047904968, 0.03461574390530586, -0.16644594073295593, -0.19329284131526947, 0.190355584025383, -0.502672016620636, 0.38958925008773804, 0.35232001543045044, -0.6657610535621643, -0.2863893508911133, 0.19218868017196655, -0.2240002304315567, -0.3171956539154053, -0.3550935983657837, 0.6013839244842529, -0.0036569966468960047, -0.3324339985847473, 0.6696775555610657, 0.28440165519714355, 0.8943077325820923, -0.8994839787483215, 0.05708891525864601, 0.09168998152017593, 0.22492378950119019, -0.22415761649608612, -0.632055938243866, 0.17076687514781952, 0.1332821100950241, -0.3841848373413086, -0.2037471979856491, 0.7717944383621216, -0.5428937673568726, -0.2607067823410034, 0.1640297919511795, 0.021854793652892113, 0.32076597213745117, 0.30160731077194214, -1.0592206716537476, -0.14221511781215668, 0.034142181277275085, 0.12330103665590286, 0.1270206868648529, 0.6450290679931641, 0.24970731139183044, 0.5323711037635803, 0.521841824054718, -0.16333946585655212, 0.030567137524485588, -0.034850768744945526, 0.6997286677360535, -0.6727511286735535, -0.5720601677894592, -0.5404176115989685, 0.34212300181388855, -0.08088245242834091, -0.5448406338691711, 0.7658209800720215, 0.44825565814971924, 0.9013903737068176, -0.13475444912910461, 0.853537380695343, -0.20318284630775452, 0.5267472863197327, -0.3484935760498047, 0.964245617389679, -0.505144476890564, 0.15415304899215698, -0.3284720182418823, -0.8734050393104553, 0.028456682339310646, 0.9347000122070312, -0.22049254179000854, 0.2776229679584503, 0.3149307668209076, 0.3712002635002136, -0.03125420957803726, 0.3603457510471344, 0.14860522747039795, 0.24285875260829926, 0.06255929172039032, 0.29486581683158875, 0.6919348835945129, -0.6061879396438599, 0.5040735006332397, -0.23187099397182465, -0.3863487243652344, -0.3168964982032776, -0.7097117304801941, -1.1223492622375488, -0.6866538524627686, -0.5370328426361084, -0.19965025782585144, 0.052059199661016464, 0.9540403485298157, 0.791057825088501, -0.7880816459655762, -0.10917166620492935, -0.09966438263654709, -0.0021817258093506098, -0.03365909308195114, -0.23053380846977234, 0.37426868081092834, -0.3466813266277313, -0.6432123780250549, -0.14769978821277618, -0.12154553085565567, 0.40901386737823486, -0.20725499093532562, 0.030508792027831078, -0.3799002766609192, 0.06276340782642365, 0.6615312695503235, 0.16749808192253113, -0.5399596095085144, -0.21798104047775269, -0.25172504782676697, -0.1425379067659378, -0.03291243687272072, 0.3695644438266754, -0.6344782114028931, 0.48472127318382263, 0.31086453795433044, 0.6274299621582031, 0.39166128635406494, -0.10729372501373291, 0.14716382324695587, -0.7861887812614441, -0.07431356608867645, 0.2699680030345917, 0.2723909914493561, 0.19817624986171722, -0.4009079933166504, 0.4001493453979492, 0.35370951890945435, -0.8803319334983826, -0.7583460211753845, -0.06289729475975037, -0.8894370794296265, -0.29077181220054626, 0.9188068509101868, -0.12340755760669708, -0.026629526168107986, 0.028391744941473007, -0.4253081977367401, 0.41071557998657227, -0.4117703139781952, 1.1991592645645142, 0.9038533568382263, -0.12371962517499924, 0.04924052208662033, -0.44083139300346375, 0.5888025164604187, 0.10554336756467819, -0.8116528987884521, -0.09420696645975113, 0.3686528205871582, 0.3622921109199524, 0.2590123414993286, 0.33005252480506897, 0.061157919466495514, 0.18989740312099457, -0.2142622023820877, 0.4346886873245239, 0.3187892735004425, -0.23490895330905914, -0.45841914415359497, -0.16222670674324036, -0.23422202467918396, -0.3695361912250519 ]
michiyasunaga/BioLinkBERT-base
michiyasunaga
"2022-03-31T00:51:21Z"
32,331
31
transformers
[ "transformers", "pytorch", "bert", "feature-extraction", "exbert", "linkbert", "biolinkbert", "fill-mask", "question-answering", "text-classification", "token-classification", "en", "dataset:pubmed", "arxiv:2203.15827", "license:apache-2.0", "endpoints_compatible", "region:us" ]
text-classification
"2022-03-08T07:22:12Z"
--- license: apache-2.0 language: en datasets: - pubmed tags: - bert - exbert - linkbert - biolinkbert - feature-extraction - fill-mask - question-answering - text-classification - token-classification widget: - text: "Sunitinib is a tyrosine kinase inhibitor" --- ## BioLinkBERT-base BioLinkBERT-base model pretrained on [PubMed](https://pubmed.ncbi.nlm.nih.gov/) abstracts along with citation link information. It is introduced in the paper [LinkBERT: Pretraining Language Models with Document Links (ACL 2022)](https://arxiv.org/abs/2203.15827). The code and data are available in [this repository](https://github.com/michiyasunaga/LinkBERT). This model achieves state-of-the-art performance on several biomedical NLP benchmarks such as [BLURB](https://microsoft.github.io/BLURB/) and [MedQA-USMLE](https://github.com/jind11/MedQA). ## Model description LinkBERT is a transformer encoder (BERT-like) model pretrained on a large corpus of documents. It is an improvement of BERT that newly captures **document links** such as hyperlinks and citation links to include knowledge that spans across multiple documents. Specifically, it was pretrained by feeding linked documents into the same language model context, besides a single document. LinkBERT can be used as a drop-in replacement for BERT. It achieves better performance for general language understanding tasks (e.g. text classification), and is also particularly effective for **knowledge-intensive** tasks (e.g. question answering) and **cross-document** tasks (e.g. reading comprehension, document retrieval). ## Intended uses & limitations The model can be used by fine-tuning on a downstream task, such as question answering, sequence classification, and token classification. You can also use the raw model for feature extraction (i.e. obtaining embeddings for input text). ### How to use To use the model to get the features of a given text in PyTorch: ```python from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained('michiyasunaga/BioLinkBERT-base') model = AutoModel.from_pretrained('michiyasunaga/BioLinkBERT-base') inputs = tokenizer("Sunitinib is a tyrosine kinase inhibitor", return_tensors="pt") outputs = model(**inputs) last_hidden_states = outputs.last_hidden_state ``` For fine-tuning, you can use [this repository](https://github.com/michiyasunaga/LinkBERT) or follow any other BERT fine-tuning codebases. ## Evaluation results When fine-tuned on downstream tasks, LinkBERT achieves the following results. **Biomedical benchmarks ([BLURB](https://microsoft.github.io/BLURB/), [MedQA](https://github.com/jind11/MedQA), [MMLU](https://github.com/hendrycks/test), etc.):** BioLinkBERT attains new state-of-the-art. | | BLURB score | PubMedQA | BioASQ | MedQA-USMLE | | ---------------------- | -------- | -------- | ------- | -------- | | PubmedBERT-base | 81.10 | 55.8 | 87.5 | 38.1 | | **BioLinkBERT-base** | **83.39** | **70.2** | **91.4** | **40.0** | | **BioLinkBERT-large** | **84.30** | **72.2** | **94.8** | **44.6** | | | MMLU-professional medicine | | ---------------------- | -------- | | GPT-3 (175 params) | 38.7 | | UnifiedQA (11B params) | 43.2 | | **BioLinkBERT-large (340M params)** | **50.7** | ## Citation If you find LinkBERT useful in your project, please cite the following: ```bibtex @InProceedings{yasunaga2022linkbert, author = {Michihiro Yasunaga and Jure Leskovec and Percy Liang}, title = {LinkBERT: Pretraining Language Models with Document Links}, year = {2022}, booktitle = {Association for Computational Linguistics (ACL)}, } ```
[ -0.23717907071113586, -0.4783250391483307, 0.33924752473831177, -0.06846984475851059, -0.07013954222202301, -0.08979158848524094, 0.08281741291284561, -0.5882872939109802, 0.33430713415145874, 0.007459811866283417, -0.31473395228385925, -0.6663929224014282, -0.7108396887779236, 0.3317808508872986, -0.1722387969493866, 1.1834787130355835, 0.12144646048545837, 0.391987144947052, -0.3082323968410492, -0.46093127131462097, 0.22729186713695526, -0.4936818480491638, -0.39484041929244995, -0.6153824925422668, 0.9836720824241638, -0.16905279457569122, 0.6079216599464417, 0.4617041349411011, 0.8306240439414978, 0.23806576430797577, -0.2820245325565338, -0.1489432454109192, -0.31661009788513184, -0.11850711703300476, -0.04495350643992424, -0.25159427523612976, -0.6613462567329407, 0.09698747843503952, 0.6677188873291016, 0.8931930065155029, 0.32211917638778687, 0.3433869481086731, 0.010553627274930477, 0.6728491187095642, -0.555686354637146, 0.1309136152267456, -0.21824169158935547, -0.19037464261054993, -0.005567947868257761, 0.08012886345386505, -0.26679080724716187, -0.5528377294540405, 0.2554819583892822, -0.24000132083892822, 0.20127882063388824, 0.1415812075138092, 1.2239058017730713, 0.3542099595069885, -0.18204452097415924, -0.07368741184473038, -0.17056038975715637, 0.5541836023330688, -0.7706624865531921, 0.680876612663269, 0.2843707203865051, 0.018794702365994453, -0.061091575771570206, -1.034386157989502, -0.27049750089645386, -0.459524542093277, -0.33492311835289, 0.08967425674200058, -0.3791908025741577, 0.19222618639469147, 0.43496447801589966, 0.2963647246360779, -0.7392263412475586, -0.10116525739431381, -0.7607005834579468, -0.39107662439346313, 0.38779953122138977, -0.1387716382741928, 0.2694332003593445, -0.33675119280815125, -0.2752895951271057, -0.28739482164382935, -0.8109261393547058, 0.10039941221475601, 0.10525105148553848, -0.072464719414711, -0.09378503262996674, 0.26183614134788513, -0.1968522071838379, 0.7285448312759399, -0.09538543969392776, 0.2912299931049347, 0.7187286019325256, -0.41453731060028076, -0.20970849692821503, 0.19103117287158966, 1.3669241666793823, 0.020487578585743904, -0.12692676484584808, -0.1714930236339569, 0.1598428636789322, -0.3255823850631714, -0.007700728718191385, -0.9771902561187744, -0.7245832085609436, 0.5365076661109924, -0.7211688160896301, -0.3088115453720093, -0.10631992667913437, -0.4863968789577484, 0.13621889054775238, 0.03273496776819229, 0.7444666028022766, -0.8012585639953613, 0.20653174817562103, -0.011409267783164978, -0.027942169457674026, 0.12379615008831024, 0.2351463884115219, -0.7029629945755005, -0.07207347452640533, 0.17801962792873383, 0.9762057065963745, -0.3113173842430115, -0.4643895924091339, -0.5081706643104553, -0.0420634001493454, 0.02863471768796444, 0.6960441470146179, -0.22382403910160065, 0.004626685753464699, -0.08017724752426147, 0.048409417271614075, -0.20434731245040894, -0.30561956763267517, 0.32703834772109985, -0.6009380221366882, 0.19110016524791718, -0.35981959104537964, -0.39821702241897583, -0.10551882535219193, 0.0426650270819664, -0.8170603513717651, 1.1077646017074585, 0.02374783530831337, -0.9314392805099487, 0.21021968126296997, -0.8902978301048279, -0.2962922751903534, -0.09729786962270737, 0.04255601018667221, -0.49858903884887695, -0.23977422714233398, 0.2351362556219101, 0.3928578495979309, -0.44792258739471436, 0.27724534273147583, -0.44049009680747986, -0.32927969098091125, 0.3211653530597687, -0.020301757380366325, 1.236960768699646, 0.24340465664863586, -0.2678140103816986, 0.4894867539405823, -0.825459897518158, 0.1392449289560318, -0.12584459781646729, -0.5909298658370972, -0.0475085973739624, -0.17654606699943542, 0.07350536435842514, 0.23785744607448578, 0.5576304793357849, -0.6761407852172852, 0.007679235190153122, -0.42795827984809875, 0.4259737730026245, 0.3813263475894928, -0.05585649609565735, 0.2753262519836426, -0.4391707479953766, 0.20699164271354675, -0.029978033155202866, 0.4103839695453644, -0.044802166521549225, -0.5096647143363953, -0.7407283186912537, -0.38060516119003296, 0.583158552646637, 0.36521902680397034, -0.337083637714386, 0.7880637049674988, -0.23004481196403503, -0.5881991386413574, -0.8091741800308228, 0.20349566638469696, 0.6078497767448425, 0.4823170006275177, 0.8546979427337646, -0.2619177997112274, -0.26802289485931396, -0.8462830781936646, -0.09038218855857849, -0.42936766147613525, -0.12216566503047943, 0.03250986337661743, 0.7039083242416382, -0.5083175897598267, 0.6844684481620789, -0.5043802261352539, 0.09790187329053879, -0.20856018364429474, 0.39086541533470154, 0.41914206743240356, 0.627690851688385, 0.4743283689022064, -0.489974707365036, -0.2851267158985138, -0.42341065406799316, -0.865594208240509, -0.2552219331264496, 0.2840680480003357, -0.2444099336862564, -0.00617616530507803, 0.7852168679237366, -0.47375133633613586, 0.11173484474420547, 0.4219781160354614, -0.1554986983537674, 0.6159924268722534, -0.4250130355358124, 0.0900680273771286, -1.1519501209259033, 0.5233449339866638, -0.037107713520526886, -0.11138511449098587, -0.5285719633102417, -0.05349238961935043, 0.2309006303548813, -0.05098486691713333, -0.3152986466884613, 0.41861653327941895, -0.40300312638282776, 0.1765669733285904, 0.1336284577846527, -0.0055433111265301704, -0.2009163349866867, 0.3858608305454254, 0.030027668923139572, 0.6135233044624329, 0.34784576296806335, -0.4634115993976593, 0.373829185962677, 0.5462213158607483, -0.12471982836723328, -0.0017030466115102172, -1.1267753839492798, -0.10245701670646667, -0.07530002295970917, 0.3960050642490387, -1.0710575580596924, -0.10831166803836823, 0.3267532289028168, -0.608897864818573, 0.2828519344329834, -0.013084759935736656, -0.6862074136734009, -0.33630552887916565, -0.5667712092399597, 0.3818567395210266, 0.7307595610618591, -0.4237399697303772, 0.2602351903915405, 0.16546761989593506, -0.09680639952421188, -0.593343198299408, -0.4408179521560669, -0.27505770325660706, 0.2155514806509018, -0.5273071527481079, 0.4304332137107849, -0.20766471326351166, 0.23114709556102753, 0.01428257580846548, -0.06320752948522568, -0.11032602936029434, -0.2112669050693512, 0.3141845464706421, 0.5788152813911438, -0.1287304013967514, 0.4200575053691864, 0.17426635324954987, -0.13743145763874054, 0.33226844668388367, -0.06759890168905258, 0.49904271960258484, -0.41839396953582764, -0.38263100385665894, -0.3075707256793976, 0.13718418776988983, 0.574450671672821, -0.493976354598999, 0.7185211777687073, 1.0909498929977417, -0.10785523056983948, 0.27720656991004944, -0.5140687227249146, -0.3635721206665039, -0.41442742943763733, 0.4269784390926361, 0.02568093314766884, -0.8820376396179199, 0.3429666757583618, -0.3032507300376892, -0.0066222622990608215, 0.8729673624038696, 0.43698644638061523, -0.4265308678150177, 0.5171248316764832, 0.3557274639606476, -0.10523030906915665, 0.3867894411087036, -0.3869008421897888, 0.132181778550148, -1.0725499391555786, -0.44533640146255493, -0.8449941873550415, -0.37613725662231445, -0.5987390875816345, -0.47764185070991516, 0.49052125215530396, 0.27306970953941345, -0.44036227464675903, 0.6244383454322815, -0.5394095182418823, -0.06801928579807281, 0.8751014471054077, 0.4651232659816742, 0.14023764431476593, 0.06112135946750641, -0.6628673076629639, 0.0897429957985878, -1.0025535821914673, -0.31733983755111694, 1.447175145149231, 0.30105844140052795, 0.8797814249992371, 0.04888163506984711, 1.0136317014694214, 0.14986802637577057, 0.3017504811286926, -0.4885873794555664, 0.4990503787994385, 0.05553007870912552, -0.8009135127067566, -0.2762916386127472, -0.3460772633552551, -1.0708585977554321, 0.019288258627057076, -0.7559173703193665, -0.9756506681442261, 0.32770654559135437, 0.2872360050678253, -0.3415830135345459, 0.13197638094425201, -0.3701096177101135, 0.9335607290267944, -0.28713154792785645, -0.6581550240516663, -0.13105863332748413, -1.0628108978271484, -0.008245117031037807, -0.20397621393203735, -0.17148007452487946, -0.04473821073770523, 0.11450285464525223, 0.9688011407852173, -0.4400090277194977, 0.7579978704452515, 0.22889311611652374, 0.36764612793922424, 0.08533119410276413, -0.3026658892631531, 0.27384790778160095, -0.06369424611330032, -0.004681788384914398, 0.5307978987693787, 0.39883193373680115, -0.40043631196022034, -0.2693879008293152, 0.7762539982795715, -0.8876798152923584, -0.2725538909435272, -0.6698141098022461, -0.6370404362678528, -0.18199916183948517, 0.32841384410858154, 0.47661593556404114, 0.4731529653072357, -0.15293952822685242, 0.3771413564682007, 0.9769068956375122, -0.6437538266181946, 0.40575146675109863, 0.4441736340522766, -0.01231645978987217, -0.48819977045059204, 0.7040005922317505, -0.28542137145996094, 0.21986205875873566, 0.6254546046257019, 0.06984863430261612, -0.586766242980957, -0.5017992258071899, -0.08211800456047058, 0.5797404050827026, -0.7041571140289307, -0.11743169277906418, -0.9114319682121277, -0.47926822304725647, -0.4298156797885895, -0.03383003547787666, -0.2541733980178833, -0.29551124572753906, -0.20471559464931488, 0.21643781661987305, 0.42862191796302795, 0.545481264591217, -0.274489164352417, -0.013120759278535843, -1.0299204587936401, 0.2563335597515106, 0.14652849733829498, 0.22419068217277527, -0.24640853703022003, -0.45499879121780396, -0.28299999237060547, -0.21631887555122375, -0.1752014309167862, -1.033106803894043, 0.08173670619726181, 0.0402277447283268, 0.7767676115036011, 0.07371038943529129, 0.03668338060379028, 0.33667486906051636, -0.3731555938720703, 0.6160072684288025, 0.4821318984031677, -0.6503872275352478, 0.7915094494819641, -0.24665074050426483, 0.5995899438858032, 0.7296251058578491, 0.9842909574508667, -0.08937717229127884, -0.20524002611637115, -0.7340087294578552, -1.0250619649887085, 0.522822380065918, 0.37607264518737793, -0.33086228370666504, -0.01533084362745285, 0.23399753868579865, -0.32543861865997314, 0.22828005254268646, -0.8908904790878296, -0.6173362731933594, 0.028610950335860252, -0.4450966417789459, -0.14771857857704163, -0.3234546184539795, -0.26191189885139465, -0.8335658311843872, 0.6848464012145996, 0.06556934118270874, 0.8420560956001282, 0.5710931420326233, -0.4816952049732208, 0.1297018676996231, 0.24824699759483337, 0.35539165139198303, 0.7100586295127869, -0.7611087560653687, 0.05059251934289932, 0.1719217747449875, -0.6563935875892639, -0.018016383051872253, 0.67668616771698, -0.23053088784217834, 0.2684456408023834, 0.6421604752540588, 0.5437932014465332, 0.48202750086784363, -0.49321335554122925, 0.38612669706344604, 0.366983562707901, -0.2925504148006439, 0.1446962058544159, 0.22356075048446655, 0.2891724407672882, 0.39484164118766785, 0.17675751447677612, 0.01206750888377428, 0.22950734198093414, -0.30467841029167175, 0.35327988862991333, 0.24799664318561554, -0.6882287859916687, -0.16281349956989288, 1.1564362049102783, 0.31261056661605835, -0.0053272065706551075, 0.49606430530548096, -0.037521250545978546, -0.4512418508529663, 0.4617921710014343, 0.5457984805107117, 0.8235935568809509, -0.17700311541557312, 0.16910439729690552, 0.9264528751373291, 0.26979562640190125, 0.12355684489011765, 0.15479478240013123, -0.01958964206278324, -0.5224631428718567, -0.22764097154140472, -1.0286550521850586, -0.24676503241062164, 0.14410053193569183, -0.5499252080917358, 0.0013299373677000403, -0.4056723117828369, -0.2974312901496887, 0.39277759194374084, 0.08896858990192413, -0.5739417672157288, 0.14433841407299042, -0.14503346383571625, 1.0072370767593384, -0.7657158970832825, 1.2336320877075195, 1.064346432685852, -0.8724080324172974, -0.6865847706794739, -0.07680042833089828, -0.10086490213871002, -0.6421322226524353, 1.1141889095306396, -0.25621557235717773, -0.12991198897361755, 0.08086400479078293, -0.40594959259033203, -0.8489770293235779, 1.3285058736801147, 0.2046908736228943, -0.5794962048530579, -0.15316954255104065, -0.08586336672306061, 0.730787456035614, -0.09600584954023361, 0.5284658670425415, 0.2812308073043823, 0.2873387336730957, 0.18277516961097717, -0.8415351510047913, 0.3690698444843292, -0.4295806884765625, -0.1493871808052063, 0.16057507693767548, -0.6116995215415955, 0.9624012112617493, -0.22396664321422577, 0.5177468657493591, 0.016579048708081245, 0.41925984621047974, 0.3629817068576813, 0.10025227814912796, 0.1313706934452057, 0.5212192535400391, 0.6987411379814148, -0.268318235874176, 0.9312880635261536, -0.6114713549613953, 0.586763858795166, 0.9559769630432129, 0.27384433150291443, 0.9205636382102966, 0.34069693088531494, -0.6263836026191711, 0.6128040552139282, 0.5120622515678406, -0.29208943247795105, 0.3906401991844177, -0.0053489841520786285, -0.34028950333595276, -0.1586749404668808, 0.11489641666412354, -0.7172695398330688, 0.08993775397539139, 0.03665788099169731, -0.7850381731987, -0.21804578602313995, -0.36252838373184204, 0.13051390647888184, -0.4761374294757843, -0.05419187620282173, 0.36915943026542664, 0.012183009646832943, -0.33476191759109497, 0.7217329144477844, -0.2365538626909256, 0.47341594099998474, -0.8874028325080872, -0.03576533868908882, -0.11284679174423218, 0.06740088760852814, -0.23565825819969177, -0.4267922341823578, -0.14026622474193573, -0.13282877206802368, -0.06241942197084427, 0.09457268565893173, 0.8551338315010071, -0.4822622835636139, -0.2490728348493576, 0.40793901681900024, 0.42318055033683777, 0.27111366391181946, 0.1299508810043335, -0.9926105737686157, 0.13585999608039856, 0.0306090097874403, -0.06834505498409271, 0.3422033190727234, -0.09788741916418076, 0.3135475218296051, 0.5868940949440002, 0.770932674407959, 0.14268913865089417, -0.1455545872449875, -0.12060531973838806, 0.9185996055603027, -0.7665404677391052, -0.08049660921096802, -0.6435938477516174, 0.40477415919303894, -0.24109846353530884, -0.30687689781188965, 0.6411662697792053, 0.6362807750701904, 0.49969184398651123, -0.16574056446552277, 0.5266610980033875, -0.22037971019744873, 0.24537089467048645, -0.3429858684539795, 1.1202733516693115, -0.6641524434089661, 0.0868791788816452, -0.5378481149673462, -0.8374904990196228, -0.37570807337760925, 0.7898470759391785, -0.2981264591217041, 0.2906372845172882, 1.144395112991333, 0.6458669304847717, -0.005600249860435724, -0.33812862634658813, 0.18906354904174805, 0.3194352090358734, 0.24802769720554352, 0.6384580135345459, 0.3233077824115753, -0.7431473731994629, 0.5681549310684204, -0.07953935861587524, -0.21867644786834717, -0.4223945438861847, -0.7239227294921875, -1.1732615232467651, -0.6581054329872131, -0.48494255542755127, -0.6444599628448486, 0.36825692653656006, 1.004138469696045, 0.5921337604522705, -0.8793294429779053, -0.14516080915927887, 0.12536434829235077, -0.09575222432613373, 0.0012900615110993385, -0.0912700742483139, 0.6509116291999817, -0.5774526596069336, -0.5875864624977112, 0.1391923874616623, 0.31907394528388977, 0.0005991880898363888, 0.0029496753122657537, -0.2544412612915039, -0.8732448816299438, -0.21829825639724731, 0.5540621876716614, 0.47165197134017944, -0.6051968336105347, -0.09769322723150253, -0.11031410098075867, -0.3819725215435028, 0.06856612116098404, 0.3523375689983368, -0.7276917099952698, 0.526675283908844, 0.6689409613609314, 0.5181489586830139, 0.7104067802429199, -0.22425982356071472, 0.4685860276222229, -0.1746351569890976, 0.030791806057095528, 0.01045083999633789, 0.43134748935699463, 0.0320044606924057, -0.01309937797486782, 0.5319989323616028, 0.36061689257621765, -0.6192670464515686, -0.30228695273399353, -0.07214826345443726, -1.1105480194091797, -0.2495877742767334, 0.9617136120796204, -0.20858332514762878, -0.18193748593330383, 0.07600857317447662, 0.06160406768321991, 0.5580695271492004, -0.28268861770629883, 0.5803052186965942, 0.40365099906921387, -0.26465895771980286, -0.021847719326615334, -0.48722153902053833, 0.6773029565811157, 0.4929035007953644, -0.9583901166915894, -0.4637622535228729, 0.5837639570236206, 0.5018441081047058, 0.30661025643348694, 0.5951006412506104, -0.38610583543777466, 0.4134516716003418, -0.07302118092775345, 0.23444077372550964, -0.17035041749477386, -0.19387894868850708, -0.2661684453487396, 0.08289232850074768, 0.08506763726472855, -0.32303884625434875 ]
TheBloke/vicuna-13B-v1.5-GPTQ
TheBloke
"2023-09-27T12:45:20Z"
32,229
11
transformers
[ "transformers", "safetensors", "llama", "text-generation", "arxiv:2307.09288", "arxiv:2306.05685", "base_model:lmsys/vicuna-13b-v1.5", "license:llama2", "has_space", "text-generation-inference", "4-bit", "region:us" ]
text-generation
"2023-08-03T10:03:59Z"
--- license: llama2 model_name: Vicuna 13B v1.5 base_model: lmsys/vicuna-13b-v1.5 inference: false model_creator: lmsys model_type: llama prompt_template: 'A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user''s questions. USER: {prompt} ASSISTANT: ' quantized_by: TheBloke --- <!-- 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 --> # Vicuna 13B v1.5 - GPTQ - Model creator: [lmsys](https://huggingface.co/lmsys) - Original model: [Vicuna 13B v1.5](https://huggingface.co/lmsys/vicuna-13b-v1.5) <!-- description start --> ## Description This repo contains GPTQ model files for [lmsys's Vicuna 13B v1.5](https://huggingface.co/lmsys/vicuna-13b-v1.5). 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. <!-- description end --> <!-- repositories-available start --> ## Repositories available * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/vicuna-13B-v1.5-AWQ) * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ) * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GGUF) * [lmsys's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/lmsys/vicuna-13b-v1.5) <!-- repositories-available end --> <!-- prompt-template start --> ## Prompt template: Vicuna ``` A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {prompt} ASSISTANT: ``` <!-- 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. All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches are made with AutoGPTQ. Files in the `main` branch which were uploaded before August 2023 were made with GPTQ-for-LLaMa. <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 dataset used for quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ 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/vicuna-13B-v1.5-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, without Act Order and group size 128g. | | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. | | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. | | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. | | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. | | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. | <!-- README_GPTQ.md-provided-files end --> <!-- README_GPTQ.md-download-from-branches start --> ## How to download from branches - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/vicuna-13B-v1.5-GPTQ:main` - With Git, you can clone a branch with: ``` git clone --single-branch --branch main https://huggingface.co/TheBloke/vicuna-13B-v1.5-GPTQ ``` - In Python Transformers code, the branch is the `revision` parameter; see below. <!-- 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/vicuna-13B-v1.5-GPTQ`. - To download from a specific branch, enter for example `TheBloke/vicuna-13B-v1.5-GPTQ:main` - 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: `vicuna-13B-v1.5-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.32.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later. ```shell pip3 install transformers>=4.32.0 optimum>=1.12.0 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 pip3 install . ``` ### For CodeLlama models only: you must use Transformers 4.33.0 or later. If 4.33.0 is not yet released when you read this, you will need to install Transformers from source: ```shell pip3 uninstall -y transformers pip3 install git+https://github.com/huggingface/transformers.git ``` ### You can then use the following code ```python from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline model_name_or_path = "TheBloke/vicuna-13B-v1.5-GPTQ" # To use a different branch, change revision # For example: revision="main" 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'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. 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, 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 AutoGPTQ, both via Transformers and using AutoGPTQ directly. They should also work with [Occ4m's GPTQ-for-LLaMa fork](https://github.com/0cc4m/KoboldAI). [ExLlama](https://github.com/turboderp/exllama) is compatible with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility. [Huggingface Text Generation Inference (TGI)](https://github.com/huggingface/text-generation-inference) is compatible with all GPTQ models. <!-- 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**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov Thank you to all my generous patrons and donaters! And thank you again to a16z for their generous grant. <!-- footer end --> # Original model card: lmsys's Vicuna 13B v1.5 # 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 is fine-tuned from Llama 2 with supervised instruction fine-tuning. The training data is around 125K conversations collected from ShareGPT.com. 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.5259486436843872, -0.7960094809532166, 0.1857483834028244, 0.17078855633735657, -0.303518682718277, -0.19400784373283386, 0.09595548361539841, -0.5232549905776978, 0.2523566782474518, 0.3745439648628235, -0.6627718806266785, -0.48882368206977844, -0.28793811798095703, -0.03816501051187515, -0.3110824227333069, 0.9688864946365356, 0.10347021371126175, -0.2758738398551941, -0.07084817439317703, -0.2642514109611511, -0.29425060749053955, -0.44736340641975403, -0.7579099535942078, -0.19743937253952026, 0.451867938041687, 0.14725767076015472, 0.7707648277282715, 0.5595702528953552, 0.2018767148256302, 0.3419278860092163, -0.03372882679104805, 0.031373973935842514, -0.4602769613265991, -0.0963948518037796, 0.14624355733394623, -0.2668207585811615, -0.636498212814331, 0.08597858250141144, 0.3989906311035156, 0.16190361976623535, -0.3333328664302826, 0.23650901019573212, 0.00450808834284544, 0.6955152750015259, -0.42945680022239685, 0.09992145746946335, -0.36411136388778687, 0.01290751900523901, -0.09535302966833115, 0.05819490924477577, -0.07114535570144653, -0.4968942105770111, 0.09582814574241638, -0.8416860103607178, 0.21581628918647766, -0.04052102938294411, 1.2091256380081177, 0.1551026552915573, -0.6056063175201416, 0.12383919954299927, -0.4157368540763855, 0.577186644077301, -0.9056091904640198, 0.3036603331565857, 0.49826425313949585, 0.252798467874527, -0.23808468878269196, -0.8379034399986267, -0.5424591302871704, -0.09838974475860596, -0.12010382860898972, 0.31539827585220337, -0.4237956404685974, 0.0717821940779686, 0.41239866614341736, 0.7217402458190918, -0.8801237344741821, -0.1343611478805542, -0.3176758587360382, -0.12650710344314575, 0.8754305243492126, 0.20765818655490875, 0.3665040135383606, -0.2588951289653778, -0.299633651971817, -0.43382880091667175, -0.5840377807617188, 0.06826475262641907, 0.31842732429504395, 0.09455160051584244, -0.5993964076042175, 0.442939817905426, -0.3531487286090851, 0.4765896201133728, 0.159148171544075, -0.080345019698143, 0.3528556227684021, -0.5417640209197998, -0.4998859763145447, -0.3796161711215973, 1.2818211317062378, 0.3761564791202545, -0.22208325564861298, 0.2259708046913147, -0.010902839712798595, -0.1012222096323967, 0.03263822942972183, -0.9733697175979614, -0.44100308418273926, 0.5420365929603577, -0.430571585893631, -0.28142714500427246, 0.0040610069409012794, -0.6999702453613281, -0.09217435121536255, -0.12040925025939941, 0.5241920351982117, -0.5970019102096558, -0.3963249623775482, 0.11303357034921646, -0.3953777551651001, 0.42432594299316406, 0.3487430810928345, -0.6709006428718567, 0.4495213031768799, 0.2971231937408447, 0.7011345028877258, 0.13773547112941742, -0.1370210498571396, -0.23502688109874725, 0.04781389236450195, -0.12547935545444489, 0.4360417127609253, -0.03141755238175392, -0.42851507663726807, -0.2890075147151947, 0.3067890703678131, 0.050548993051052094, -0.30506572127342224, 0.49528825283050537, -0.22302672266960144, 0.4352949857711792, -0.5303003787994385, -0.5516006350517273, -0.3630460500717163, 0.11724972724914551, -0.7084212899208069, 1.2380269765853882, 0.4938330054283142, -0.7953323721885681, 0.1734641045331955, -0.5311852693557739, -0.12287530303001404, 0.03342878818511963, -0.04533417150378227, -0.5830848217010498, -0.043789494782686234, 0.17655152082443237, 0.3349049985408783, -0.33289650082588196, 0.12193554639816284, -0.2828633785247803, -0.25264880061149597, 0.17689664661884308, -0.5383259057998657, 1.2993252277374268, 0.1702142208814621, -0.459197461605072, -0.02706896886229515, -0.7806645035743713, 0.14219282567501068, 0.47864454984664917, -0.18540343642234802, -0.08661115914583206, -0.22597898542881012, 0.09412959963083267, 0.15161336958408356, 0.26334092020988464, -0.3198017179965973, 0.5173464417457581, -0.1336037665605545, 0.5779867768287659, 0.6235478520393372, 0.06977657973766327, 0.21984605491161346, -0.4740259349346161, 0.501587450504303, 0.052678801119327545, 0.6423315405845642, 0.12516696751117706, -0.6780097484588623, -0.6939860582351685, -0.27846819162368774, 0.36515021324157715, 0.5841970443725586, -0.7251251935958862, 0.5263650417327881, -0.15256443619728088, -0.7859576344490051, -0.3875010907649994, -0.09542173147201538, 0.2741628885269165, 0.2624640166759491, 0.44722604751586914, -0.41527804732322693, -0.3900385797023773, -0.8572123646736145, 0.10568367689847946, -0.46952763199806213, -0.08032632619142532, 0.41931092739105225, 0.7128092050552368, -0.26281827688217163, 0.7783779501914978, -0.6242018938064575, -0.0912681519985199, 0.03885086998343468, 0.09112319350242615, 0.3087221384048462, 0.5769023895263672, 0.816521942615509, -0.7756000757217407, -0.4819922149181366, -0.05136235058307648, -0.7059690952301025, -0.060970988124608994, -0.035911835730075836, -0.46194446086883545, 0.2052132487297058, 0.024594731628894806, -1.0775389671325684, 0.6554874181747437, 0.5133792757987976, -0.643286943435669, 0.8177818059921265, -0.25005581974983215, 0.1796513795852661, -1.1249619722366333, 0.0592421218752861, 0.17637839913368225, -0.3593367636203766, -0.46694937348365784, 0.12326773256063461, -0.026932839304208755, 0.2461552768945694, -0.4049799144268036, 0.6501448154449463, -0.5280365943908691, 0.0446288026869297, 0.09681772440671921, -0.06570329517126083, 0.3278205692768097, 0.5023803114891052, -0.2172885686159134, 0.7765588164329529, 0.39179620146751404, -0.508277952671051, 0.618757426738739, 0.3686809837818146, -0.04678449034690857, 0.26822027564048767, -0.7934147119522095, 0.16048593819141388, 0.1453089714050293, 0.3195739984512329, -0.8569161891937256, -0.2539370357990265, 0.5413751006126404, -0.58160799741745, 0.390625923871994, -0.3089037537574768, -0.353207528591156, -0.3828270733356476, -0.576755166053772, 0.2859177887439728, 0.7315691113471985, -0.35989615321159363, 0.4745039641857147, 0.3721332550048828, 0.05502991005778313, -0.5688654780387878, -0.6641011238098145, -0.1978161633014679, -0.33104950189590454, -0.5296384692192078, 0.4386826157569885, -0.1585337072610855, -0.10440406948328018, 0.07710343599319458, 0.05472489446401596, -0.06716593354940414, -0.04605542868375778, 0.2764429450035095, 0.3517714738845825, -0.17435719072818756, -0.16902737319469452, 0.1407143622636795, 0.06797991693019867, -0.0028568378183990717, -0.29319268465042114, 0.46452242136001587, -0.20040367543697357, 0.03143146261572838, -0.40847814083099365, 0.24355146288871765, 0.546833872795105, 0.05429764837026596, 0.8176085948944092, 0.822519063949585, -0.3558200001716614, 0.15365268290042877, -0.46103692054748535, -0.07547186315059662, -0.4915996491909027, 0.19694149494171143, -0.26659977436065674, -0.6251474618911743, 0.5720605254173279, 0.4403113126754761, 0.21807892620563507, 0.7905900478363037, 0.4614798128604889, -0.016184428706765175, 0.9142480492591858, 0.407402902841568, -0.18476499617099762, 0.5543532371520996, -0.6409754753112793, -0.250458300113678, -0.7717899084091187, -0.2199598252773285, -0.4229356348514557, -0.15556994080543518, -0.8577004075050354, -0.5007555484771729, 0.3143291175365448, 0.2505897581577301, -0.7595700621604919, 0.6180922389030457, -0.6949790716171265, 0.1025809720158577, 0.5852885842323303, 0.34017446637153625, 0.2121758610010147, 0.04798268899321556, -0.05699371546506882, 0.13210079073905945, -0.5797553062438965, -0.2550595998764038, 1.0297284126281738, 0.37029558420181274, 0.5683627724647522, 0.26764383912086487, 0.5204705595970154, 0.15552924573421478, 0.29341980814933777, -0.540778636932373, 0.5671220421791077, 0.015264310874044895, -0.6755292415618896, -0.39226603507995605, -0.7080234885215759, -0.9683122038841248, 0.2770986557006836, -0.13602715730667114, -0.788773775100708, 0.3903641402721405, 0.029671266674995422, -0.3342481255531311, 0.2489507794380188, -0.6922439932823181, 0.9886034727096558, -0.1689264327287674, -0.4622693657875061, 0.02952282503247261, -0.6139382123947144, 0.3229027986526489, 0.2546886205673218, 0.027810901403427124, -0.19724413752555847, -0.1945553421974182, 0.7579712867736816, -0.8725425601005554, 0.7107074856758118, -0.2731001675128937, -0.09655450284481049, 0.4957580268383026, -0.12608090043067932, 0.514433741569519, 0.07225137203931808, 0.023372920230031013, 0.30143019556999207, 0.35580870509147644, -0.5308717489242554, -0.4338803291320801, 0.5232977867126465, -0.9669008851051331, -0.4680328071117401, -0.453617662191391, -0.4297405779361725, 0.012738370336592197, 0.020982841029763222, 0.5902110934257507, 0.44635745882987976, -0.0966784730553627, 0.061767999082803726, 0.6753174066543579, -0.37837302684783936, 0.3699147403240204, 0.24955567717552185, -0.34100377559661865, -0.5951159000396729, 0.8392866253852844, 0.1288193166255951, 0.21635594964027405, 0.2543642222881317, 0.13801628351211548, -0.45794108510017395, -0.4401775002479553, -0.6735630631446838, 0.34667637944221497, -0.4759782552719116, -0.4051758944988251, -0.5772967338562012, -0.31567513942718506, -0.4188382029533386, 0.30448663234710693, -0.4130244255065918, -0.6454084515571594, -0.37083110213279724, -0.02419518493115902, 0.897691011428833, 0.5023360252380371, -0.09686068445444107, 0.2581152319908142, -0.8135854601860046, 0.2798595428466797, 0.36800894141197205, 0.17796340584754944, -0.05144287645816803, -0.6998880505561829, -0.1439506858587265, 0.22483767569065094, -0.5919275879859924, -1.0024439096450806, 0.6611207127571106, 0.11652388423681259, 0.41001415252685547, 0.42306411266326904, 0.14566494524478912, 0.8063291907310486, -0.1758100837469101, 1.012926459312439, 0.21457929909229279, -0.8252578973770142, 0.5205092430114746, -0.5783125162124634, 0.24422156810760498, 0.4613540768623352, 0.5801125764846802, -0.2962258756160736, -0.27027904987335205, -0.7813048958778381, -0.8451295495033264, 0.37099260091781616, 0.4397810101509094, -0.0010579972295090556, 0.13664716482162476, 0.5762144327163696, 0.010221653617918491, 0.14415870606899261, -0.8352319598197937, -0.6135521531105042, -0.3210599422454834, -0.197950080037117, 0.11742522567510605, -0.022820990532636642, -0.22763332724571228, -0.6830946803092957, 0.9589974284172058, -0.15727993845939636, 0.6955710649490356, 0.33687523007392883, 0.14709718525409698, -0.055274106562137604, 0.0927024558186531, 0.3185756802558899, 0.5517780780792236, -0.26322585344314575, -0.3158755302429199, 0.12467195093631744, -0.8070237636566162, 0.1639321744441986, 0.3399558663368225, -0.23079633712768555, -0.03043673001229763, 0.11372633278369904, 0.8370031118392944, -0.11698850989341736, -0.28008806705474854, 0.43004512786865234, -0.429241806268692, -0.36055442690849304, -0.3320498466491699, 0.20212422311306, 0.20652782917022705, 0.37226325273513794, 0.3550582528114319, -0.28818708658218384, 0.310626357793808, -0.6358433961868286, 0.07458727806806564, 0.49229103326797485, -0.21372205018997192, -0.3123452663421631, 0.7469796538352966, -0.05633354187011719, 0.05407484620809555, 0.7095779776573181, -0.27882465720176697, -0.39522406458854675, 0.7888411283493042, 0.36172205209732056, 0.7890941500663757, -0.21968191862106323, 0.27154529094696045, 0.5849601030349731, 0.16176551580429077, -0.09110553562641144, 0.3761652708053589, -0.0010324298636987805, -0.588363528251648, -0.2336806058883667, -0.6010701656341553, -0.3005850613117218, 0.37469351291656494, -0.8503831624984741, 0.1423080563545227, -0.3714917302131653, -0.44621333479881287, -0.17724154889583588, 0.42474737763404846, -0.5866422057151794, 0.31018346548080444, -0.005070158280432224, 0.9693983197212219, -0.7384352684020996, 0.8386622071266174, 0.5765119791030884, -0.5017233490943909, -0.9634290337562561, -0.17969773709774017, 0.08645392209291458, -0.4880291223526001, 0.040471553802490234, 0.023464879021048546, 0.3171582520008087, -0.014047335833311081, -0.7032968997955322, -0.8008636236190796, 1.4696048498153687, 0.3581330180168152, -0.6056710481643677, -0.13059499859809875, -0.02565995417535305, 0.3542909622192383, -0.0593981109559536, 0.6593789458274841, 0.5954459309577942, 0.3489640951156616, 0.10677354782819748, -0.900088906288147, 0.4430595934391022, -0.47500863671302795, 0.006639064755290747, 0.1778116375207901, -1.0041255950927734, 0.9723523259162903, 0.06135900691151619, -0.07971382141113281, 0.2448853850364685, 0.6522936820983887, 0.45056891441345215, 0.05492733418941498, 0.3687993288040161, 0.7372956275939941, 0.8103193044662476, -0.3419818878173828, 1.207643985748291, -0.11639755964279175, 0.5753312110900879, 0.7846400737762451, 0.15089063346385956, 0.7096801996231079, 0.26614096760749817, -0.6919043660163879, 0.5849980115890503, 0.9763314127922058, -0.04762284457683563, 0.3442241847515106, 0.015813233330845833, -0.34334883093833923, -0.07094570249319077, 0.1662357747554779, -0.7121870517730713, 0.06210368871688843, 0.3477412164211273, -0.21781089901924133, 0.18508826196193695, -0.17331117391586304, 0.0006013198290020227, -0.6048830151557922, -0.20875152945518494, 0.5878080725669861, 0.27142593264579773, -0.2897071838378906, 0.860622763633728, -0.11804076284170151, 0.6563951373100281, -0.5839481949806213, -0.09543334692716599, -0.4514787793159485, -0.04648949205875397, -0.28625956177711487, -0.6815339922904968, 0.1334374099969864, -0.18587879836559296, -0.0997651070356369, 0.1006956622004509, 0.6330826282501221, -0.2194652408361435, -0.41259971261024475, 0.36369436979293823, 0.47378870844841003, 0.32072922587394714, -0.1668088287115097, -1.0744471549987793, 0.260198175907135, 0.01704571209847927, -0.7472427487373352, 0.47319817543029785, 0.44092458486557007, 0.13365259766578674, 0.7083213925361633, 0.5285148024559021, -0.06111994385719299, 0.03572644665837288, -0.08414953947067261, 0.9625219106674194, -0.8083143830299377, -0.30046048760414124, -0.7769740223884583, 0.6162506937980652, -0.18566246330738068, -0.42299380898475647, 0.7513541579246521, 0.593435525894165, 0.7059849500656128, 0.0661175325512886, 0.7412806749343872, -0.3882688283920288, 0.15082485973834991, -0.40671899914741516, 0.7015952467918396, -0.7732935547828674, 0.10574602335691452, -0.3934153914451599, -0.7528785467147827, 0.041913799941539764, 0.7051147222518921, -0.06938304007053375, 0.27699923515319824, 0.40939104557037354, 0.8104721903800964, 0.022591473534703255, 0.12226984649896622, 0.25533387064933777, 0.40929514169692993, 0.12748566269874573, 0.821619987487793, 0.7011914253234863, -1.0394178628921509, 0.48320645093917847, -0.41511669754981995, -0.23173968493938446, -0.04653741419315338, -0.7345477938652039, -0.7346205115318298, -0.5132807493209839, -0.5829829573631287, -0.6641026735305786, 0.008256452158093452, 0.9348639845848083, 0.7687859535217285, -0.6000168919563293, -0.3260762393474579, -0.10292567312717438, -0.05098399519920349, -0.2930333912372589, -0.31232601404190063, 0.3414740562438965, 0.3096078634262085, -0.7215325236320496, 0.1599375158548355, -0.01989419385790825, 0.3743263781070709, -0.17448891699314117, -0.3267810046672821, -0.23131293058395386, 0.04854917153716087, 0.5697423815727234, 0.5249887108802795, -0.48670315742492676, -0.07658543437719345, -0.15973177552223206, -0.13379964232444763, 0.26351600885391235, 0.2661886513233185, -0.7248853445053101, -0.06299924105405807, 0.4835262596607208, 0.1397961527109146, 0.8517202734947205, 0.07074255496263504, 0.3884138762950897, -0.4269157350063324, 0.1290919929742813, 0.04927663505077362, 0.36919882893562317, 0.11518257856369019, -0.5547443628311157, 0.6537601947784424, 0.3842417001724243, -0.6071663498878479, -0.7314128279685974, -0.158732607960701, -1.172506332397461, -0.2810624837875366, 1.0904523134231567, -0.15060074627399445, -0.4283178746700287, -0.01448916457593441, -0.2684556841850281, 0.4285947382450104, -0.46904632449150085, 0.3352705240249634, 0.39350625872612, -0.22612516582012177, -0.42234495282173157, -0.7863582968711853, 0.5754077434539795, 0.18668648600578308, -0.9008350968360901, 0.02196505106985569, 0.5026928782463074, 0.462748646736145, 0.024869555607438087, 0.8971063494682312, -0.23665264248847961, 0.345054030418396, 0.15607769787311554, 0.07821151614189148, -0.017181605100631714, 0.07673222571611404, -0.3533868193626404, -0.030115237459540367, -0.24942103028297424, -0.061692629009485245 ]
KoboldAI/OPT-6B-nerys-v2
KoboldAI
"2022-07-04T07:45:47Z"
32,228
21
transformers
[ "transformers", "pytorch", "opt", "text-generation", "en", "arxiv:2205.01068", "license:other", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2022-06-26T10:24:25Z"
--- language: en license: other commercial: no --- # OPT 6B - Nerys ## Model Description OPT 6B-Nerys is a finetune created using Facebook's OPT model. ## Training data The training data contains around 2500 ebooks in various genres (the "Pike" dataset), a CYOA dataset called "CYS" and 50 Asian "Light Novels" (the "Manga-v1" dataset). Most parts of the dataset have been prepended using the following text: `[Genre: <genre1>, <genre2>]` This dataset has been cleaned in the same way as fairseq-dense-13B-Nerys-v2 ### How to use You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run: ```py >>> from transformers import pipeline >>> generator = pipeline('text-generation', model='KoboldAI/OPT-6B-Nerys-v2') >>> generator("Welcome Captain Janeway, I apologize for the delay.", do_sample=True, min_length=50) [{'generated_text': 'Welcome Captain Janeway, I apologize for the delay."\nIt's all right," Janeway said. "I'm certain that you're doing your best to keep me informed of what\'s going on."'}] ``` ### Limitations and Biases Based on known problems with NLP technology, potential relevant factors include bias (gender, profession, race and religion). ### License OPT-6B is licensed under the OPT-175B license, Copyright (c) Meta Platforms, Inc. All Rights Reserved. ### BibTeX entry and citation info ``` @misc{zhang2022opt, title={OPT: Open Pre-trained Transformer Language Models}, author={Susan Zhang and Stephen Roller and Naman Goyal and Mikel Artetxe and Moya Chen and Shuohui Chen and Christopher Dewan and Mona Diab and Xian Li and Xi Victoria Lin and Todor Mihaylov and Myle Ott and Sam Shleifer and Kurt Shuster and Daniel Simig and Punit Singh Koura and Anjali Sridhar and Tianlu Wang and Luke Zettlemoyer}, year={2022}, eprint={2205.01068}, archivePrefix={arXiv}, primaryClass={cs.CL} } ```
[ -0.20628486573696136, -0.579645574092865, 0.07526202499866486, -0.043601538985967636, -0.12647564709186554, -0.48510774970054626, -0.11296647042036057, -0.31679150462150574, 0.15959292650222778, 0.8560316562652588, -1.1188002824783325, -0.4468732476234436, -0.39893290400505066, 0.525049090385437, -0.549034059047699, 1.0270483493804932, 0.3205626904964447, -0.0002403872786089778, 0.24664637446403503, 0.10648975521326065, -0.3478248119354248, -0.33475613594055176, -0.6948687434196472, -0.2500077486038208, 0.3111985921859741, 0.5532035231590271, 0.9209827780723572, 0.5535568594932556, 0.5500220060348511, 0.2767385244369507, -0.15842501819133759, 0.09942774474620819, -0.7870156764984131, -0.22632887959480286, 0.0341084748506546, -0.5128476023674011, -0.3959587812423706, -0.10408647358417511, 0.840503454208374, 0.6955130696296692, 0.256967693567276, 0.16245518624782562, -0.025860371068120003, 0.5733579993247986, -0.49490678310394287, -0.1800028681755066, -0.7809281349182129, 0.12477188557386398, -0.2957490384578705, 0.06966324895620346, -0.7703006267547607, -0.41143670678138733, 0.33050283789634705, -0.5730874538421631, 0.5268743634223938, 0.16431334614753723, 1.2162775993347168, 0.4103524088859558, -0.5789104104042053, -0.09711969643831253, -0.6028500199317932, 1.0098215341567993, -1.277146577835083, 0.28880032896995544, 0.3085375130176544, 0.19197115302085876, -0.1382412314414978, -0.9157650470733643, -0.6645565032958984, -0.01457416731864214, -0.14896833896636963, 0.2399682104587555, -0.11134860664606094, -0.010809313505887985, 0.4690469205379486, 0.47148990631103516, -0.6438138484954834, 0.04869094863533974, -0.7203073501586914, -0.3624047636985779, 0.8099643588066101, 0.229945108294487, 0.24840250611305237, -0.49922987818717957, -0.2799035310745239, -0.1451137363910675, -0.6291425824165344, -0.12214913964271545, 0.7549094557762146, 0.4083826541900635, -0.41310256719589233, 0.7702949643135071, -0.24873365461826324, 0.9234078526496887, 0.28019100427627563, -0.03405112400650978, 0.7645193338394165, -0.30363741517066956, -0.2401307374238968, 0.1624716967344284, 1.0745981931686401, 0.45028331875801086, 0.32487213611602783, 0.01752536930143833, 0.01859055832028389, 0.13558940589427948, 0.29370513558387756, -0.9968799948692322, -0.11140671372413635, 0.3165239095687866, -0.6702103614807129, -0.3997177481651306, 0.06231639161705971, -0.7769665122032166, -0.15647625923156738, -0.322260320186615, 0.39752548933029175, -0.6477649807929993, -0.3114401400089264, 0.22006681561470032, -0.038754500448703766, 0.4835793077945709, -0.11788294464349747, -1.0418249368667603, 0.12086017429828644, 0.14956094324588776, 0.6092351078987122, -0.07760562002658844, -0.38973766565322876, -0.2340795397758484, -0.06900346279144287, -0.3826213777065277, 0.6250430941581726, -0.29947540163993835, -0.04292633756995201, 0.262133926153183, 0.40682774782180786, -0.21321532130241394, -0.4546999931335449, 0.7792418003082275, -0.40361717343330383, 0.5737411975860596, 0.0012331970501691103, -0.6746623516082764, -0.359844833612442, -0.08542440086603165, -0.8944438695907593, 0.9825867414474487, 0.2652307152748108, -0.9043065309524536, 0.3508531451225281, -0.5467883944511414, -0.39822831749916077, 0.016282184049487114, 0.04768810793757439, -0.5322483777999878, 0.1323435753583908, 0.20069202780723572, 0.4688015580177307, -0.22536301612854004, 0.29250118136405945, -0.2255810648202896, -0.343563973903656, 0.17039550840854645, -0.6651131510734558, 1.070570468902588, 0.2398136705160141, -0.42362403869628906, 0.08621145039796829, -1.1476991176605225, 0.05999000743031502, 0.07196291536092758, -0.16889531910419464, 0.06590677797794342, 0.03284785524010658, 0.38716915249824524, 0.20185209810733795, 0.3697039783000946, -0.5710113048553467, 0.04813113063573837, -0.9574292898178101, 0.5912652015686035, 0.5779827833175659, -0.03735031187534332, 0.5302648544311523, -0.363205224275589, 0.49099624156951904, 0.024523338302969933, 0.35159578919410706, -0.268928200006485, -0.5140113830566406, -1.0745797157287598, 0.13237176835536957, 0.27867209911346436, 0.4629216492176056, -0.868854284286499, 0.5794546008110046, -0.23886393010616302, -0.8325137495994568, -0.7106977105140686, -0.15696434676647186, 0.2954009175300598, 0.30888810753822327, 0.608249843120575, -0.0029823780059814453, -0.5854170322418213, -0.9566922187805176, -0.36203309893608093, 0.1251659244298935, 0.32107821106910706, 0.22916559875011444, 0.5239619016647339, -0.637113630771637, 1.174149513244629, -0.5506749749183655, -0.25550997257232666, -0.4899875521659851, -0.03859711438417435, 0.7352619767189026, 0.49847283959388733, 0.6223325133323669, -1.0122843980789185, -0.6205852031707764, -0.13936179876327515, -0.5313466787338257, -0.28997156023979187, -0.2828060984611511, -0.3602920472621918, 0.32301032543182373, 0.4043203592300415, -0.3775899112224579, 0.4171403646469116, 0.7274643778800964, -0.5540038347244263, 0.7865486145019531, 0.1634410172700882, -0.10686170309782028, -1.5630449056625366, -0.08690427243709564, -0.08920932561159134, -0.06978671252727509, -0.7018436789512634, -0.36028316617012024, -0.005611455999314785, -0.08285649120807648, -0.7260406613349915, 0.6231934428215027, -0.3507366478443146, 0.10497918725013733, -0.10178550332784653, -0.026096496731042862, -0.1238088384270668, 0.47899723052978516, 0.13128015398979187, 0.4755770266056061, 0.5042403340339661, -0.7773613929748535, 0.1984548568725586, 0.625102162361145, -0.23171456158161163, 0.36599308252334595, -0.7266237735748291, -0.1015339344739914, -0.08684415370225906, -0.09418852627277374, -0.9368546605110168, -0.419362872838974, 0.23513098061084747, -0.5618241429328918, 0.10490911453962326, -0.057926617562770844, -0.4291650950908661, -0.4317147433757782, 0.18409518897533417, 0.35071802139282227, 0.6134893894195557, -0.46355462074279785, 0.7016072273254395, 0.0010532971937209368, -0.031572431325912476, -0.7303083539009094, -0.8502936959266663, -0.2897016406059265, -0.2848316431045532, -0.714122474193573, 0.6273077726364136, -0.22721673548221588, 0.18385745584964752, 0.04663499444723129, 0.14533731341362, -0.281338095664978, -0.2608709931373596, -0.00046998567995615304, 0.21670907735824585, -0.1342669278383255, 0.037222228944301605, 0.3623993694782257, -0.3472062647342682, 0.03075653314590454, -0.25299975275993347, 0.6583186388015747, -0.049491044133901596, -0.22855819761753082, -0.5480690002441406, 0.17552722990512848, 0.39264214038848877, -0.2020377665758133, 0.8978646993637085, 0.791862964630127, -0.4763743281364441, -0.3334445655345917, -0.3799530863761902, -0.3894038498401642, -0.5472099184989929, 0.6284550428390503, -0.06392460316419601, -0.710242748260498, 0.4810098707675934, 0.06720148772001266, 0.45957469940185547, 0.9697207808494568, 0.5557339191436768, 0.25954192876815796, 0.875594973564148, 0.693293571472168, 0.11338397860527039, 0.5799728631973267, -0.5621317625045776, 0.2912409007549286, -0.5569863319396973, -0.10327727347612381, -0.5059570074081421, -0.27201393246650696, -0.4762421250343323, -0.11065599322319031, 0.10491633415222168, 0.00027682355721481144, -0.5230790972709656, 0.6391556859016418, -0.5966004729270935, 0.30585891008377075, 0.6168057918548584, 0.02245521917939186, 0.16914871335029602, 0.04256005957722664, -0.13303004205226898, -0.21808083355426788, -0.9551750421524048, -0.49691617488861084, 1.2527282238006592, 0.2564879357814789, 0.8604803085327148, 0.17124487459659576, 0.9035767316818237, 0.03287341073155403, 0.1784462332725525, -0.6940151453018188, 0.46065330505371094, -0.3776240646839142, -0.9465413093566895, -0.18582573533058167, -0.4879644215106964, -1.0313934087753296, -0.0119368527084589, -0.4298648238182068, -0.5074796676635742, 0.4589657187461853, 0.1849863976240158, -0.345188170671463, 0.12747859954833984, -0.8453872203826904, 1.1092149019241333, -0.26328569650650024, -0.30791622400283813, 0.19410286843776703, -0.7803029417991638, 0.22248631715774536, -0.034024301916360855, 0.09987598657608032, 0.17878563702106476, 0.35680633783340454, 0.8581461906433105, -0.3681514263153076, 1.1044480800628662, 0.15947404503822327, -0.07520730048418045, 0.4537343382835388, -0.3056529760360718, 0.2577143907546997, -0.12865380942821503, -0.1558513343334198, 0.163221076130867, -0.07680993527173996, -0.1660195142030716, -0.1161847785115242, 0.36466678977012634, -0.9875519275665283, 0.09962891787290573, -0.4846438765525818, -0.608177900314331, 0.2239283323287964, 0.765869677066803, 1.0589394569396973, 0.958210289478302, 0.10944030433893204, 0.4810428023338318, 0.5805875062942505, -0.45289722084999084, 0.642350971698761, 0.31605264544487, -0.20155119895935059, -0.7533572912216187, 0.8475441932678223, 0.3143225312232971, 0.5276229977607727, 0.43166935443878174, 0.0821608379483223, -0.520928680896759, -0.41986966133117676, -0.2391400933265686, 0.4361592233181, -0.7190123200416565, -0.2757342755794525, -0.6850559115409851, -0.5396206974983215, -0.5247196555137634, -0.2453472912311554, -0.500977098941803, -0.14443403482437134, -0.6195647120475769, -0.009534564800560474, 0.3045000731945038, 0.6275904178619385, 0.1574256718158722, 0.7938998341560364, -0.8729842901229858, 0.3611316680908203, -0.14263226091861725, 0.19549207389354706, -0.0870562344789505, -0.7862436771392822, -0.5167679786682129, 0.2502756714820862, -0.4881724417209625, -1.1629375219345093, 0.7520012259483337, 0.2316889464855194, 0.6024197936058044, 0.5914937257766724, 0.4283149838447571, 0.43664199113845825, -0.5497768521308899, 0.9189919829368591, 0.23155713081359863, -0.9193306565284729, 0.41617551445961, -0.5733602643013, 0.40695083141326904, 0.5436780452728271, 0.5114346146583557, -0.34262534976005554, -0.346798837184906, -1.0043004751205444, -0.9868106245994568, 0.909266471862793, 0.42242151498794556, 0.26856857538223267, -0.08440832048654556, 0.3190057873725891, 0.13748200237751007, 0.3484676778316498, -1.4776002168655396, -0.5773327350616455, -0.28956282138824463, -0.6812143325805664, -0.12811678647994995, -0.33073487877845764, 0.2569848597049713, -0.12866109609603882, 1.0973749160766602, -0.25307825207710266, 0.47571468353271484, 0.29605406522750854, -0.21784460544586182, 0.14820504188537598, 0.17118501663208008, 0.30111613869667053, 0.44606396555900574, -0.17624309659004211, -0.26657772064208984, 0.02272905968129635, -0.6150582432746887, -0.15448644757270813, 0.32465362548828125, -0.5362585186958313, 0.19059939682483673, 0.4409782290458679, 1.0906869173049927, 0.17104355990886688, -0.5396002531051636, 0.33485323190689087, 0.13591282069683075, -0.535167396068573, -0.7005490660667419, 0.05979152396321297, -0.04670149087905884, 0.26737064123153687, 0.27987027168273926, 0.15118274092674255, 0.2894366681575775, -0.2362520545721054, 0.14115653932094574, 0.05427692458033562, -0.48937365412712097, -0.07599162310361862, 0.6884354948997498, 0.16577713191509247, -0.3437637686729431, 0.8655132055282593, -0.37988367676734924, -0.4398640990257263, 0.6537662744522095, 0.8560337424278259, 0.9986516833305359, -0.1212487742304802, 0.2835991382598877, 0.7118529081344604, 0.6455246210098267, 0.014664632268249989, 0.41367772221565247, 0.6125515103340149, -0.9972854852676392, -0.5128111243247986, -0.7417840361595154, -0.171987384557724, 0.3140546381473541, -0.6478317379951477, 0.6860878467559814, -0.08897604793310165, -0.4343370199203491, -0.156003937125206, -0.03896395117044449, -0.6347711682319641, 0.4053078293800354, 0.05607037991285324, 0.8649289608001709, -1.0533548593521118, 0.3188343644142151, 0.7631812691688538, -0.48792415857315063, -1.0929932594299316, 0.0008311424171552062, -0.22173742949962616, -0.3011193871498108, 0.3511406481266022, 0.5944725275039673, 0.19891570508480072, 0.5603829026222229, -0.6863479614257812, -1.1284650564193726, 1.019803524017334, 0.410505086183548, -0.5817214250564575, -0.06763429194688797, 0.19495023787021637, 0.42339780926704407, -0.3491494655609131, 0.3959832787513733, 0.4308900535106659, 0.34540966153144836, -0.08963024616241455, -0.6281662583351135, -0.23216482996940613, -0.4789951741695404, -0.07376890629529953, 0.04130410775542259, -0.6360341310501099, 1.1121920347213745, -0.15533368289470673, -0.13955862820148468, 0.300040602684021, 0.6887463331222534, 0.17804516851902008, 0.21601727604866028, 0.38167038559913635, 0.5780720114707947, 0.5313447713851929, -0.2540540397167206, 0.8568967580795288, -0.38082316517829895, 0.6984447240829468, 1.026937484741211, 0.04396539553999901, 0.7352288365364075, 0.2233923226594925, -0.16841045022010803, 0.7619854807853699, 0.8110713362693787, -0.2526888847351074, 0.6036790013313293, -0.11091961711645126, 0.1821228712797165, -0.27840590476989746, -0.011965585872530937, -0.5579505562782288, 0.2635432779788971, 0.3112720549106598, -0.6760877966880798, 0.031562380492687225, -0.04335806518793106, 0.054581932723522186, -0.07431866973638535, -0.22233538329601288, 0.6000741720199585, 0.1140005886554718, -0.6064626574516296, 0.703105092048645, -0.06572478264570236, 0.7383835911750793, -0.8206433653831482, -0.0021202608477324247, 0.108697310090065, 0.3955274224281311, -0.4671235978603363, -0.3748628497123718, 0.21744820475578308, -0.16951508820056915, -0.5184130072593689, -0.0026533177588135004, 0.7010433077812195, -0.5916598439216614, -0.8692230582237244, 0.19053544104099274, 0.22533394396305084, 0.1802099347114563, 0.19657039642333984, -0.7154490351676941, -0.13011910021305084, 0.3133053183555603, -0.21676667034626007, -0.1874249279499054, 0.28071075677871704, 0.24795691668987274, 0.5355941653251648, 0.6403694748878479, -0.18409240245819092, 0.46264585852622986, 0.1558283418416977, 0.6643166542053223, -0.5192985534667969, -0.7470357418060303, -0.7952958941459656, 0.8925359845161438, -0.21299958229064941, -0.6825737357139587, 0.86772221326828, 0.6021977066993713, 0.9251748919487, -0.3655552864074707, 0.9178339242935181, -0.24477431178092957, 0.5090612173080444, -0.5818109512329102, 0.7777811288833618, -0.6134995818138123, -0.12200392782688141, -0.6172949075698853, -1.2665812969207764, -0.007095412351191044, 0.9988309741020203, -0.3972519040107727, 0.2923831343650818, 0.9350149631500244, 0.8582022190093994, 0.01995690166950226, 0.2637447714805603, -0.05920492112636566, 0.4956173300743103, 0.14790621399879456, 0.6035488843917847, 0.7046923041343689, -0.8761497735977173, 0.5034447908401489, -0.38074713945388794, -0.13219094276428223, -0.20339372754096985, -0.9098986983299255, -1.131828784942627, -0.5155189037322998, -0.30697858333587646, -0.47370386123657227, -0.34721291065216064, 0.7446370124816895, 0.6079249382019043, -0.7224340438842773, -0.19501246511936188, -0.471561074256897, -0.0348011776804924, -0.40322935581207275, -0.30019938945770264, 0.3302207291126251, -0.34539851546287537, -1.039826512336731, 0.13636408746242523, -0.2591705322265625, 0.1985362321138382, -0.14008545875549316, -0.15656810998916626, -0.2707219123840332, -0.1253052055835724, 0.30479875206947327, -0.08783930540084839, -0.5564466714859009, 0.16113972663879395, 0.22960640490055084, 0.12104728817939758, -0.23256833851337433, 0.15046781301498413, -0.6033650040626526, 0.37713202834129333, 0.5159912705421448, 0.6181222200393677, 0.20595595240592957, -0.15826663374900818, 0.694118082523346, -0.6132924556732178, 0.14626072347164154, 0.2725043296813965, 0.3487061560153961, 0.291723370552063, -0.37778741121292114, 0.46654704213142395, 0.3890143632888794, -0.655122697353363, -0.7808533906936646, 0.2806304693222046, -0.9496046900749207, -0.03552987053990364, 1.4128636121749878, 0.12939780950546265, -0.11746159940958023, -0.049825992435216904, -0.3316982686519623, 0.308424174785614, -0.26149845123291016, 0.2009405791759491, 0.5400785803794861, 0.28691092133522034, -0.10372018069028854, -0.5985609889030457, 0.5145803689956665, 0.389314740896225, -0.7698869705200195, -0.16486679017543793, 0.6088622212409973, 0.17542695999145508, 0.33820173144340515, 0.6820153594017029, -0.07375911623239517, 0.1863039880990982, 0.09493289887905121, 0.11462938040494919, 0.04930036887526512, -0.4561755061149597, -0.1695428341627121, -0.04809369519352913, -0.3843262791633606, 0.11153364181518555 ]
facebook/sam-vit-huge
facebook
"2023-07-11T15:07:59Z"
32,197
54
transformers
[ "transformers", "pytorch", "tf", "sam", "mask-generation", "license:apache-2.0", "endpoints_compatible", "has_space", "region:us" ]
null
"2023-04-10T13:51:24Z"
--- license: apache-2.0 --- # Model Card for Segment Anything Model (SAM) - ViT Huge (ViT-H) version <p> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-architecture.png" alt="Model architecture"> <em> Detailed architecture of Segment Anything Model (SAM).</em> </p> # Table of Contents 0. [TL;DR](#TL;DR) 1. [Model Details](#model-details) 2. [Usage](#usage) 3. [Citation](#citation) # TL;DR [Link to original repository](https://github.com/facebookresearch/segment-anything) | <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-beancans.png" alt="Snow" width="600" height="600"> | <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-dog-masks.png" alt="Forest" width="600" height="600"> | <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/model_doc/sam-car-seg.png" alt="Mountains" width="600" height="600"> | |---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------| The **Segment Anything Model (SAM)** produces high quality object masks from input prompts such as points or boxes, and it can be used to generate masks for all objects in an image. It has been trained on a [dataset](https://segment-anything.com/dataset/index.html) of 11 million images and 1.1 billion masks, and has strong zero-shot performance on a variety of segmentation tasks. The abstract of the paper states: > We introduce the Segment Anything (SA) project: a new task, model, and dataset for image segmentation. Using our efficient model in a data collection loop, we built the largest segmentation dataset to date (by far), with over 1 billion masks on 11M licensed and privacy respecting images. The model is designed and trained to be promptable, so it can transfer zero-shot to new image distributions and tasks. We evaluate its capabilities on numerous tasks and find that its zero-shot performance is impressive -- often competitive with or even superior to prior fully supervised results. We are releasing the Segment Anything Model (SAM) and corresponding dataset (SA-1B) of 1B masks and 11M images at [https://segment-anything.com](https://segment-anything.com) to foster research into foundation models for computer vision. **Disclaimer**: Content from **this** model card has been written by the Hugging Face team, and parts of it were copy pasted from the original [SAM model card](https://github.com/facebookresearch/segment-anything). # Model Details The SAM model is made up of 3 modules: - The `VisionEncoder`: a VIT based image encoder. It computes the image embeddings using attention on patches of the image. Relative Positional Embedding is used. - The `PromptEncoder`: generates embeddings for points and bounding boxes - The `MaskDecoder`: a two-ways transformer which performs cross attention between the image embedding and the point embeddings (->) and between the point embeddings and the image embeddings. The outputs are fed - The `Neck`: predicts the output masks based on the contextualized masks produced by the `MaskDecoder`. # Usage ## Prompted-Mask-Generation ```python from PIL import Image import requests from transformers import SamModel, SamProcessor model = SamModel.from_pretrained("facebook/sam-vit-huge") processor = SamProcessor.from_pretrained("facebook/sam-vit-huge") img_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png" raw_image = Image.open(requests.get(img_url, stream=True).raw).convert("RGB") input_points = [[[450, 600]]] # 2D localization of a window ``` ```python inputs = processor(raw_image, input_points=input_points, return_tensors="pt").to("cuda") outputs = model(**inputs) masks = processor.image_processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"].cpu(), inputs["reshaped_input_sizes"].cpu()) scores = outputs.iou_scores ``` Among other arguments to generate masks, you can pass 2D locations on the approximate position of your object of interest, a bounding box wrapping the object of interest (the format should be x, y coordinate of the top right and bottom left point of the bounding box), a segmentation mask. At this time of writing, passing a text as input is not supported by the official model according to [the official repository](https://github.com/facebookresearch/segment-anything/issues/4#issuecomment-1497626844). For more details, refer to this notebook, which shows a walk throught of how to use the model, with a visual example! ## Automatic-Mask-Generation The model can be used for generating segmentation masks in a "zero-shot" fashion, given an input image. The model is automatically prompt with a grid of `1024` points which are all fed to the model. The pipeline is made for automatic mask generation. The following snippet demonstrates how easy you can run it (on any device! Simply feed the appropriate `points_per_batch` argument) ```python from transformers import pipeline generator = pipeline("mask-generation", device = 0, points_per_batch = 256) image_url = "https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png" outputs = generator(image_url, points_per_batch = 256) ``` Now to display the image: ```python import matplotlib.pyplot as plt from PIL import Image import numpy as np def show_mask(mask, ax, random_color=False): if random_color: color = np.concatenate([np.random.random(3), np.array([0.6])], axis=0) else: color = np.array([30 / 255, 144 / 255, 255 / 255, 0.6]) h, w = mask.shape[-2:] mask_image = mask.reshape(h, w, 1) * color.reshape(1, 1, -1) ax.imshow(mask_image) plt.imshow(np.array(raw_image)) ax = plt.gca() for mask in outputs["masks"]: show_mask(mask, ax=ax, random_color=True) plt.axis("off") plt.show() ``` This should give you the following ![car_mask_results](https://user-images.githubusercontent.com/48595927/233065719-abb53407-8693-4203-8323-63fbb6321615.png) # Citation If you use this model, please use the following BibTeX entry. ``` @article{kirillov2023segany, title={Segment Anything}, author={Kirillov, Alexander and Mintun, Eric and Ravi, Nikhila and Mao, Hanzi and Rolland, Chloe and Gustafson, Laura and Xiao, Tete and Whitehead, Spencer and Berg, Alexander C. and Lo, Wan-Yen and Doll{\'a}r, Piotr and Girshick, Ross}, journal={arXiv:2304.02643}, year={2023} } ```
[ -0.525920033454895, -0.7332752346992493, 0.5111125707626343, 0.07342571020126343, -0.46537405252456665, -0.14161142706871033, 0.26460227370262146, -0.5233163833618164, 0.6205711364746094, 0.4445607662200928, -0.5604480504989624, -0.6165415644645691, -0.5518315434455872, -0.2905007302761078, -0.32542088627815247, 0.5678993463516235, 0.19959338009357452, -0.19003750383853912, -0.08965276181697845, -0.04933936521410942, -0.3411480188369751, -0.43778279423713684, -0.7180169224739075, -0.011743229813873768, 0.2715159058570862, 0.08174002915620804, 0.7054269909858704, 1.2909603118896484, 0.5110417604446411, 0.31212079524993896, -0.17704422771930695, 0.012753763236105442, -0.0419783741235733, -0.12373301386833191, -0.014787368476390839, -0.25808829069137573, -0.25047001242637634, -0.012896889820694923, 0.7557340860366821, 0.4204025864601135, 0.012968112714588642, 0.24605853855609894, -0.32972463965415955, 0.4342791736125946, -0.5414860248565674, 0.017951149493455887, -0.524193525314331, -0.13727323710918427, -0.17909695208072662, 0.1466338336467743, -0.146750807762146, -0.33878862857818604, -0.07998806238174438, -0.5236643552780151, 0.15845167636871338, 0.08294128626585007, 1.6274147033691406, 0.4498063325881958, -0.12900272011756897, 0.05782853439450264, -0.46767956018447876, 0.5812627077102661, -0.6018855571746826, 0.30004069209098816, 0.13995105028152466, 0.30019310116767883, 0.20864950120449066, -0.8465859293937683, -0.524709165096283, 0.14095290005207062, -0.21614867448806763, 0.05108918994665146, -0.3722980320453644, -0.16368012130260468, 0.3498644530773163, 0.27270758152008057, -0.5283434391021729, -0.32079190015792847, -0.7365062832832336, -0.22587840259075165, 0.8237917423248291, 0.16742382943630219, 0.4131895899772644, -0.598997950553894, -0.6539948582649231, -0.30176857113838196, -0.4498656094074249, 0.4056062400341034, -0.022288063541054726, 0.039809685200452805, -0.36893829703330994, 0.605435311794281, -0.24819087982177734, 0.8677805066108704, 0.3011707365512848, -0.4173421263694763, 0.38655492663383484, -0.09549221396446228, -0.4687260389328003, -0.03159197419881821, 0.6006007790565491, 0.5474366545677185, -0.12233181297779083, 0.07032889127731323, -0.08370164781808853, 0.12101134657859802, 0.16234193742275238, -1.0715657472610474, -0.3620110750198364, 0.25803276896476746, -0.545143723487854, -0.21106673777103424, 0.3149660527706146, -0.618570864200592, -0.1049027368426323, -0.27710196375846863, 0.5830519795417786, -0.5232672095298767, -0.17345473170280457, 0.1201883926987648, -0.24194620549678802, 0.6526299715042114, 0.10774195939302444, -0.49115946888923645, -0.10538092255592346, 0.409528911113739, 0.9869759678840637, -0.1138293519616127, -0.18733851611614227, -0.24067451059818268, 0.22145283222198486, -0.26590609550476074, 1.0244845151901245, -0.6885479092597961, -0.2407546043395996, -0.29496386647224426, 0.4927375018596649, -0.3535740375518799, -0.513522207736969, 0.4676031172275543, -0.35177943110466003, -0.13098207116127014, -0.12441348284482956, -0.38844385743141174, -0.5776558518409729, 0.19247105717658997, -0.4993055760860443, 0.8999706506729126, 0.23893117904663086, -0.5203759074211121, 0.23779061436653137, -0.7586836218833923, -0.43464407324790955, -0.005086008459329605, -0.07019495964050293, -0.74592524766922, 0.08679381012916565, 0.4029037654399872, 0.5697940587997437, -0.08574671298265457, 0.17225222289562225, -0.48937100172042847, -0.23409603536128998, 0.2713451087474823, 0.0578264519572258, 1.0330158472061157, 0.20105977356433868, -0.5094892382621765, 0.23024097084999084, -0.7618064880371094, -0.021558988839387894, 0.4745766818523407, 0.13170908391475677, -0.06121895834803581, -0.32708537578582764, -0.15857236087322235, 0.4386519491672516, 0.20773912966251373, -0.6912777423858643, -0.05535413697361946, -0.07014352083206177, 0.6169239282608032, 0.7359366416931152, 0.44606560468673706, 0.5057274699211121, -0.48734259605407715, 0.5235244035720825, 0.12902481853961945, 0.5446404814720154, -0.710211992263794, -0.6533944606781006, -0.9528379440307617, -0.7339646220207214, 0.19285036623477936, 0.38523927330970764, -0.5153030753135681, 0.5048471093177795, 0.054887671023607254, -0.7228336930274963, -0.5116856694221497, -0.36738231778144836, 0.227493017911911, 0.5236772298812866, 0.1936272382736206, -0.48277994990348816, -0.5934394001960754, -1.0259138345718384, 0.2615279257297516, -0.09482663124799728, -0.08701589703559875, 0.4532705545425415, 0.5612648129463196, -0.19436457753181458, 0.92441725730896, -0.9889675378799438, -0.26915037631988525, 0.022704726085066795, -0.4138318598270416, 0.0004979526856914163, 0.7076253890991211, 0.6461928486824036, -0.7578766942024231, -0.5008518695831299, -0.1596573144197464, -0.7350443601608276, 0.05914359539747238, 0.03672776743769646, -0.4084286093711853, 0.2053092122077942, 0.3836989402770996, -0.6999545097351074, 0.6810474991798401, 0.25079286098480225, -0.4424426555633545, 0.514915943145752, 0.21732854843139648, -0.01257622241973877, -1.0801887512207031, 0.40601128339767456, 0.15299788117408752, -0.3870549201965332, -0.6188252568244934, 0.16990940272808075, -0.01911352016031742, -0.38539692759513855, -0.6399506330490112, 0.6394917368888855, -0.22014853358268738, -0.10304731875658035, -0.10495848953723907, -0.02046515978872776, 0.27287787199020386, 0.7792766690254211, 0.2012036293745041, 0.35674503445625305, 0.8477858304977417, -0.6427106857299805, 0.2584061324596405, 0.428087443113327, -0.5014525055885315, 0.7910260558128357, -0.8173131942749023, 0.007213423494249582, -0.2669796645641327, 0.2664015591144562, -1.0283156633377075, -0.6721444129943848, 0.49666959047317505, -0.41728314757347107, 0.22641918063163757, -0.21190336346626282, -0.15664231777191162, -0.3851716220378876, -0.17616304755210876, 0.3658645749092102, 0.6240969300270081, -0.5235782861709595, 0.5650634169578552, 0.7057472467422485, -0.06946800649166107, -0.21257354319095612, -0.5791418552398682, -0.2846311032772064, -0.33858418464660645, -0.8881435990333557, 0.5611546039581299, 0.008286702446639538, -0.06308526545763016, 0.2590938210487366, -0.03980599716305733, -0.04489391669631004, -0.2190527468919754, 0.6375994086265564, 0.6318587064743042, -0.10599741339683533, -0.20061832666397095, -0.07128765434026718, -0.23574118316173553, -0.04232263192534447, -0.17524506151676178, 0.7670256495475769, -0.13615041971206665, -0.43889445066452026, -0.6015142798423767, 0.1333869844675064, 0.47086507081985474, -0.4973057806491852, 0.40300095081329346, 0.7178309559822083, -0.44128596782684326, 0.0005949585465714335, -0.7055855989456177, -0.22591006755828857, -0.48157182335853577, 0.3063814043998718, -0.3979325592517853, -0.9142924547195435, 0.7725310325622559, 0.10344284027814865, -0.0038632445503026247, 0.7638139128684998, 0.4246499240398407, -0.15734601020812988, 1.1006197929382324, 0.5747783780097961, 0.13008826971054077, 0.581349790096283, -0.5701525211334229, 0.22567124664783478, -0.9443555474281311, -0.6859164237976074, -0.3256973922252655, -0.4559449255466461, -0.41486766934394836, -0.7204012870788574, 0.4819824695587158, 0.14835067093372345, -0.5361912846565247, 0.5013862252235413, -0.9065313935279846, 0.6103226542472839, 0.5458701252937317, 0.19175758957862854, -0.08074387907981873, 0.23005028069019318, 0.011013373732566833, 0.17857232689857483, -0.6594467163085938, -0.26260074973106384, 0.717643141746521, 0.3218013644218445, 0.46233803033828735, -0.4035230875015259, 0.5728422403335571, 0.03852051869034767, 0.09925317764282227, -0.5606911182403564, 0.6553047299385071, -0.04384705051779747, -0.9299823641777039, -0.09426175802946091, -0.11503490060567856, -0.8843669295310974, 0.3078847825527191, 0.08657515794038773, -0.9222001433372498, 0.6440097093582153, -0.03372499719262123, -0.6350293159484863, 0.605069100856781, -0.7619749307632446, 0.9394333958625793, -0.10511258989572525, -0.16230204701423645, 0.340290904045105, -0.8201789259910583, 0.48887312412261963, 0.11797819286584854, -0.05049555376172066, -0.29011088609695435, 0.11591039597988129, 0.8562164306640625, -0.3342306613922119, 0.8123897314071655, -0.37431299686431885, 0.26633134484291077, 0.7077632546424866, -0.15499931573867798, 0.4081016778945923, -0.03966280817985535, 0.08806002140045166, 0.33287304639816284, 0.10458056628704071, -0.5190115571022034, -0.39415061473846436, 0.6440470218658447, -0.6927838921546936, -0.5384335517883301, -0.3937911093235016, -0.332019567489624, 0.33700326085090637, 0.17614327371120453, 0.41869598627090454, 0.3453827500343323, 0.1798470914363861, 0.11039818823337555, 0.4169932007789612, -0.36856651306152344, 0.5973233580589294, 0.2836189270019531, -0.43306243419647217, -0.6290273666381836, 1.1950793266296387, 0.055651649832725525, 0.23680585622787476, 0.08677282929420471, -0.030639048665761948, -0.35799166560173035, -0.04667871445417404, -0.5367804169654846, 0.5052791833877563, -0.5995949506759644, -0.5765145421028137, -0.5798908472061157, -0.5956656336784363, -0.36860957741737366, -0.41317129135131836, -0.4707009196281433, -0.5923190712928772, -0.2257654368877411, -0.03902212902903557, 0.3243721127510071, 0.514859139919281, -0.24082070589065552, 0.5449943542480469, -0.4813748300075531, 0.19177983701229095, 0.3650490343570709, 0.32580554485321045, -0.0020254093687981367, -0.5480386018753052, -0.09714511036872864, -0.0045644501224160194, -0.6090604662895203, -0.6144040822982788, 0.5227206349372864, -0.08299113810062408, 0.4171123206615448, 0.6714693307876587, -0.024803366512060165, 1.0440641641616821, -0.23220714926719666, 0.8388240337371826, 0.2781394422054291, -0.8939322829246521, 0.5197640061378479, -0.13259068131446838, 0.20147015154361725, 0.32431769371032715, 0.28271135687828064, -0.48749107122421265, -0.036857157945632935, -0.9441580176353455, -0.8535822629928589, 1.0558292865753174, 0.2095862478017807, -0.12288730591535568, 0.11137523502111435, 0.312369704246521, -0.17260867357254028, 0.26097771525382996, -0.7663626670837402, -0.5318222045898438, -0.3636869192123413, 0.19914335012435913, 0.18150955438613892, -0.041884005069732666, -0.042531318962574005, -0.5582530498504639, 0.84937983751297, 0.14976830780506134, 0.7014808654785156, 0.38096264004707336, -0.04446528106927872, -0.12464120239019394, -0.21258600056171417, 0.6788660287857056, 0.5873390436172485, -0.3368070721626282, 0.052323196083307266, -0.11843779683113098, -0.1738254427909851, 0.11048655211925507, 0.23908276855945587, -0.5951707363128662, 0.14049266278743744, 0.09327280521392822, 1.1100969314575195, -0.14119036495685577, -0.4186707139015198, 0.44859930872917175, 0.28653475642204285, -0.2947704493999481, -0.30972719192504883, 0.13007257878780365, 0.0710550919175148, 0.4420787990093231, 0.46658357977867126, 0.21998600661754608, -0.06327486038208008, -0.3972610533237457, 0.2412719428539276, 0.5072957873344421, -0.4646615982055664, -0.34437015652656555, 0.7548889517784119, -0.08278288692235947, -0.3313315510749817, 0.36284682154655457, -0.40636971592903137, -0.761282742023468, 0.8854714035987854, 0.5478140115737915, 0.9232502579689026, -0.4556715190410614, 0.5342239141464233, 0.7806940674781799, 0.3300807774066925, 0.24789369106292725, 0.04010089486837387, 0.07130810618400574, -0.44524917006492615, -0.4152045249938965, -0.9422643780708313, -0.10045043379068375, 0.3632350564002991, -0.4648003578186035, 0.22620218992233276, -0.5460271239280701, -0.12329131364822388, 0.14102013409137726, -0.13685157895088196, -0.5357933044433594, 0.4471958577632904, 0.06185661256313324, 0.7684779167175293, -0.859096109867096, 0.5667908191680908, 0.7145345211029053, -0.5428557395935059, -0.9517613649368286, -0.21305830776691437, -0.13149961829185486, -1.0681651830673218, 0.32347458600997925, 0.45300260186195374, 0.2436409294605255, -0.007749107200652361, -0.7889633774757385, -1.0984631776809692, 1.2020853757858276, 0.36992108821868896, -0.271799772977829, -0.06581059098243713, 0.25774210691452026, 0.11017918586730957, -0.6629827618598938, 0.15556979179382324, 0.615845799446106, 0.6172794103622437, 0.5426067113876343, -0.4661973714828491, 0.27345025539398193, -0.31073835492134094, 0.14990022778511047, 0.2315521389245987, -0.9479140043258667, 0.9466812610626221, -0.1294296234846115, -0.35590994358062744, 0.09470347315073013, 0.4055129885673523, 0.39300939440727234, 0.4738628566265106, 0.6609065532684326, 0.7628135681152344, 0.479077011346817, -0.27226680517196655, 1.0062116384506226, -0.363655149936676, 0.29911863803863525, 0.7584645748138428, 0.023798780515789986, 0.5377561450004578, 0.3091151714324951, -0.2041514813899994, 0.46476930379867554, 0.9088940024375916, -0.4731159210205078, 0.5333545207977295, 0.007419823668897152, -0.06825006008148193, -0.41901686787605286, -0.3711949586868286, -0.45335492491722107, 0.5523752570152283, 0.16441577672958374, -0.5697099566459656, -0.1722777932882309, 0.0612107552587986, 0.05462605878710747, -0.470046728849411, -0.3635641634464264, 0.6434572339057922, 0.01754520833492279, -0.5734471082687378, 0.6575831174850464, 0.2261585146188736, 0.37849360704421997, -0.5488578677177429, 0.1131339743733406, -0.2333296686410904, 0.07637081295251846, -0.37290674448013306, -0.6188011169433594, 0.600235104560852, -0.1071079894900322, -0.11227505654096603, 0.17367248237133026, 0.8957145810127258, -0.28250643610954285, -0.8338381052017212, -0.01490403525531292, 0.13508819043636322, 0.36986830830574036, -0.2762366533279419, -0.7943747043609619, 0.3871784210205078, 0.298907995223999, -0.23607704043388367, 0.2774532437324524, 0.17846815288066864, 0.022453486919403076, 0.48718103766441345, 0.827120840549469, -0.06681220978498459, 0.2519082725048065, -0.35513609647750854, 1.0911614894866943, -0.7835758328437805, -0.5228412747383118, -0.7667078375816345, 0.8506655097007751, -0.27809229493141174, -0.12960319221019745, 0.7054957151412964, 0.8370569944381714, 0.9161553382873535, -0.07500076293945312, 0.5539584755897522, -0.4560825824737549, 0.2731798589229584, -0.19342680275440216, 0.5516944527626038, -0.7659916877746582, -0.06983696669340134, -0.30282869935035706, -1.1203006505966187, -0.38877347111701965, 0.9214780926704407, -0.22134625911712646, 0.20564676821231842, 0.5234665274620056, 0.983020544052124, -0.2095220983028412, -0.06480034440755844, 0.2624581754207611, 0.12953142821788788, 0.2231166809797287, 0.33410102128982544, 0.6456797122955322, -0.5436211824417114, 0.5784338116645813, -0.8465420603752136, -0.12401320040225983, -0.05671351030468941, -0.6072375774383545, -0.8043400049209595, -0.8111937642097473, -0.5818964242935181, -0.3354856073856354, -0.2004951685667038, 0.541293203830719, 1.2026556730270386, -0.6197287440299988, -0.07505559176206589, 0.11872255802154541, 0.20511208474636078, -0.16975244879722595, -0.23730361461639404, 0.6792141795158386, 0.04741980880498886, -0.9125660061836243, 0.11833897233009338, 0.5187103748321533, 0.09619496762752533, -0.09094324707984924, -0.0360870286822319, -0.17877845466136932, 0.19183269143104553, 0.6276540756225586, 0.38485708832740784, -0.6399112939834595, -0.2524689733982086, 0.014350620098412037, 0.11512037366628647, 0.27464759349823, 0.49048155546188354, -0.49549582600593567, 0.39668864011764526, 0.2987348437309265, 0.41305795311927795, 0.877169668674469, 0.3219922184944153, -0.053124718368053436, -0.6149770021438599, 0.18769189715385437, -0.0692688599228859, 0.2843156158924103, 0.42342525720596313, -0.1647575944662094, 0.6185625195503235, 0.36540651321411133, -0.5508460998535156, -0.8654744029045105, 0.13157020509243011, -1.1981744766235352, -0.33246633410453796, 1.1250674724578857, -0.2537309229373932, -0.7139685153961182, 0.14024053514003754, -0.2791294455528259, 0.2903771698474884, -0.4271424114704132, 0.5768873691558838, 0.2829470932483673, -0.2073279768228531, -0.328266441822052, -0.23412564396858215, 0.38110318779945374, 0.16319185495376587, -0.7354524731636047, -0.3813437521457672, 0.3744545578956604, 0.42050978541374207, 0.4886487126350403, 0.4705847203731537, -0.2539193332195282, 0.1602039784193039, 0.010709263384342194, 0.17278733849525452, -0.2918244004249573, -0.2839791774749756, -0.2773250639438629, 0.3328753113746643, -0.4639624357223511, -0.5960978269577026 ]
timm/mobilenetv3_large_100.miil_in21k_ft_in1k
timm
"2023-04-27T22:49:19Z"
32,159
1
timm
[ "timm", "pytorch", "safetensors", "image-classification", "dataset:imagenet-1k", "dataset:imagenet-21k-p", "arxiv:1905.02244", "license:apache-2.0", "region:us" ]
image-classification
"2022-12-16T05:37:59Z"
--- tags: - image-classification - timm library_name: timm license: apache-2.0 datasets: - imagenet-1k - imagenet-21k-p --- # Model card for mobilenetv3_large_100.miil_in21k_ft_in1k A MobileNet-v3 image classification model. Petrained on ImageNet-21k-P and fine-tuned on ImageNet-1k by Alibaba MIIL. ## Model Details - **Model Type:** Image classification / feature backbone - **Model Stats:** - Params (M): 5.5 - GMACs: 0.2 - Activations (M): 4.4 - Image size: 224 x 224 - **Papers:** - Searching for MobileNetV3: https://arxiv.org/abs/1905.02244 - **Dataset:** ImageNet-1k - **Pretrain Dataset:** ImageNet-21k-P ## 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('mobilenetv3_large_100.miil_in21k_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) ``` ### 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( 'mobilenetv3_large_100.miil_in21k_ft_in1k', 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, 16, 112, 112]) # torch.Size([1, 24, 56, 56]) # torch.Size([1, 40, 28, 28]) # torch.Size([1, 112, 14, 14]) # torch.Size([1, 960, 7, 7]) 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( 'mobilenetv3_large_100.miil_in21k_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, 960, 7, 7) 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{howard2019searching, title={Searching for mobilenetv3}, author={Howard, Andrew and Sandler, Mark and Chu, Grace and Chen, Liang-Chieh and Chen, Bo and Tan, Mingxing and Wang, Weijun and Zhu, Yukun and Pang, Ruoming and Vasudevan, Vijay and others}, booktitle={Proceedings of the IEEE/CVF international conference on computer vision}, pages={1314--1324}, year={2019} } ``` ```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.49645522236824036, -0.3175700008869171, -0.035396914929151535, 0.2143142968416214, -0.4038044512271881, -0.40177541971206665, -0.07105028629302979, -0.3968753218650818, 0.29117298126220703, 0.42047131061553955, -0.4086742699146271, -0.7527502179145813, -0.6098575592041016, -0.14478853344917297, -0.11268259584903717, 0.9148297309875488, -0.1260806769132614, -0.06701438874006271, -0.15024621784687042, -0.5963049530982971, -0.13390901684761047, -0.2862096130847931, -0.7196999788284302, -0.42853641510009766, 0.3972206711769104, 0.30021730065345764, 0.6126277446746826, 0.6958770751953125, 0.6156966686248779, 0.4498502016067505, -0.07135461270809174, 0.07159604877233505, -0.12315752357244492, -0.27382490038871765, 0.5006214380264282, -0.6580209732055664, -0.49484607577323914, 0.3489082455635071, 0.6766971945762634, 0.3122006356716156, 0.07047567516565323, 0.4436655044555664, 0.12081322818994522, 0.6623927354812622, -0.3364506959915161, 0.014799367636442184, -0.4774529039859772, 0.13477711379528046, -0.13954631984233856, 0.020892247557640076, -0.19406026601791382, -0.4829557538032532, 0.18703612685203552, -0.4695764482021332, 0.4041648209095001, -0.02098759450018406, 1.4330580234527588, 0.15437252819538116, -0.18431201577186584, -0.03431090712547302, -0.25559714436531067, 0.753584086894989, -0.7729253172874451, 0.1817723959684372, 0.4328829050064087, 0.10289204865694046, -0.06464165449142456, -0.902831494808197, -0.5972660183906555, -0.19526314735412598, -0.06880294531583786, -0.041691020131111145, -0.1430388242006302, -0.05199670046567917, 0.2560243308544159, 0.3225143253803253, -0.47017717361450195, 0.06872718036174774, -0.603817880153656, -0.25372201204299927, 0.6948691010475159, 0.014146752655506134, 0.3836781978607178, -0.3181150257587433, -0.487997829914093, -0.3579029142856598, -0.42310062050819397, 0.39008039236068726, 0.2820281386375427, 0.15747277438640594, -0.6895591020584106, 0.5006470680236816, 0.017566412687301636, 0.6645017266273499, -0.004691926762461662, -0.45854878425598145, 0.7472005486488342, -0.09177038073539734, -0.4703414738178253, -0.08792060613632202, 1.2350072860717773, 0.5684374570846558, 0.18858695030212402, 0.19905827939510345, -0.06375856697559357, -0.42687857151031494, -0.14342409372329712, -1.2349473237991333, -0.2905327081680298, 0.397148996591568, -0.8535074591636658, -0.45978349447250366, 0.28559285402297974, -0.5453553795814514, -0.1488836258649826, 0.045478250831365585, 0.5488529205322266, -0.4216665029525757, -0.4111730754375458, 0.07764124870300293, -0.08028994500637054, 0.36219173669815063, 0.12267258018255234, -0.5697371959686279, 0.08654838800430298, 0.17914259433746338, 1.2577534914016724, 0.15213075280189514, -0.5084388256072998, -0.21504579484462738, -0.37474778294563293, -0.23435138165950775, 0.39639535546302795, -0.05002465099096298, -0.23083685338497162, -0.31890609860420227, 0.37572863698005676, -0.25446781516075134, -0.763648509979248, 0.4019382894039154, -0.22160091996192932, 0.2125326693058014, 0.03436135873198509, -0.06189943477511406, -0.5690637826919556, 0.23546519875526428, -0.4529113471508026, 1.3826645612716675, 0.2732551097869873, -0.9248378872871399, 0.32302743196487427, -0.5395076870918274, -0.17778509855270386, -0.33130142092704773, 0.04460243880748749, -1.161045789718628, -0.1736430823802948, 0.2684008479118347, 0.9348292350769043, -0.2929796576499939, -0.023777533322572708, -0.6499640941619873, -0.3595447242259979, 0.2988690435886383, 0.12300606071949005, 1.1152840852737427, 0.191348597407341, -0.5030344724655151, 0.28747931122779846, -0.6307759881019592, 0.14652900397777557, 0.49443262815475464, -0.28870296478271484, -0.13689304888248444, -0.4855838418006897, 0.1226937398314476, 0.40024957060813904, 0.09677816927433014, -0.6290513873100281, 0.29225021600723267, -0.15569457411766052, 0.5188974142074585, 0.45627984404563904, -0.18076543509960175, 0.37249240279197693, -0.41697171330451965, 0.25020062923431396, 0.33355844020843506, 0.3268122971057892, -0.09709583967924118, -0.63749760389328, -0.8040873408317566, -0.49579888582229614, 0.33998391032218933, 0.4801047444343567, -0.5504651069641113, 0.40565159916877747, -0.20246200263500214, -0.8783581256866455, -0.4880775213241577, 0.12414289265871048, 0.42748627066612244, 0.5009773969650269, 0.3130165934562683, -0.43760067224502563, -0.5336833000183105, -0.936890184879303, 0.03811647370457649, 0.027076292783021927, -0.01529738400131464, 0.43191826343536377, 0.7710633873939514, -0.18178896605968475, 0.6517860293388367, -0.3230690062046051, -0.28550440073013306, -0.1383553147315979, 0.11200210452079773, 0.43049514293670654, 0.8322117924690247, 0.8422966003417969, -0.8209242820739746, -0.49509909749031067, -0.06268090009689331, -0.9820777177810669, 0.17216984927654266, -0.10253192484378815, -0.1678822934627533, 0.26680096983909607, 0.21954123675823212, -0.6951908469200134, 0.7086083889007568, 0.26527586579322815, -0.3146985173225403, 0.4331139922142029, -0.14655253291130066, 0.2718733847141266, -1.2095471620559692, 0.1173955649137497, 0.46512576937675476, -0.16530655324459076, -0.409850150346756, -0.01597336307168007, 0.12654392421245575, -0.05411989241838455, -0.5758159756660461, 0.6548596620559692, -0.5676791667938232, -0.2142147272825241, -0.17504318058490753, -0.1481093466281891, -0.004290006589144468, 0.6329191327095032, -0.16272732615470886, 0.43325307965278625, 0.8325321674346924, -0.6186462044715881, 0.5248159766197205, 0.3929898738861084, -0.21902288496494293, 0.3217565417289734, -0.6972574591636658, 0.11632540822029114, 0.03852025419473648, 0.33522576093673706, -0.8382915258407593, -0.26134493947029114, 0.3854997158050537, -0.6606757640838623, 0.3951968252658844, -0.659857988357544, -0.41721487045288086, -0.6412586569786072, -0.5880267024040222, 0.4202468693256378, 0.5887176990509033, -0.7285223603248596, 0.5611793994903564, 0.2851667106151581, 0.2963781952857971, -0.610293447971344, -0.7956233620643616, -0.3272932171821594, -0.49394670128822327, -0.8444631695747375, 0.4753945767879486, 0.22909238934516907, 0.14518046379089355, 0.055532313883304596, -0.13153508305549622, -0.1372477263212204, -0.11299830675125122, 0.7281574010848999, 0.47871455550193787, -0.2826765179634094, -0.225809246301651, -0.43526706099510193, 0.0040019601583480835, 0.02238968387246132, -0.34852665662765503, 0.5985585451126099, -0.37612560391426086, -0.04597626253962517, -0.9014148116111755, -0.16918006539344788, 0.5542599558830261, -0.1768350899219513, 0.854388415813446, 1.1887136697769165, -0.484728068113327, 0.13161209225654602, -0.4059178829193115, -0.11256633698940277, -0.49672216176986694, 0.389694482088089, -0.48022979497909546, -0.49512675404548645, 0.9302330613136292, 0.07651779800653458, 0.010532978922128677, 0.6967788338661194, 0.38604459166526794, -0.1129901334643364, 0.8672112226486206, 0.568145215511322, 0.15364880859851837, 0.694753885269165, -0.8930262327194214, -0.23238231241703033, -0.9213570952415466, -0.6422818899154663, -0.44906488060951233, -0.47683727741241455, -0.7961314916610718, -0.4039671719074249, 0.36725717782974243, 0.2943039536476135, -0.46372073888778687, 0.5056970715522766, -0.7709846496582031, 0.09364691376686096, 0.7057220935821533, 0.655957043170929, -0.3713609278202057, 0.295534610748291, -0.3571214973926544, 0.07627928256988525, -0.6918935775756836, -0.2858010232448578, 1.170589566230774, 0.49156177043914795, 0.5586230158805847, -0.11427542567253113, 0.7384076118469238, -0.3324916362762451, 0.3142068386077881, -0.6389843821525574, 0.6137433052062988, -0.05605212226510048, -0.43123188614845276, -0.037095535546541214, -0.4943646490573883, -1.0982229709625244, 0.16127066314220428, -0.3519301116466522, -0.8783416748046875, 0.2092573642730713, 0.19441744685173035, -0.2898325026035309, 0.7227429151535034, -0.8556084632873535, 0.9396561980247498, -0.09651298075914383, -0.5293611884117126, 0.18035903573036194, -0.7374343872070312, 0.38478195667266846, 0.20075570046901703, -0.16983531415462494, -0.19339075684547424, 0.17906491458415985, 1.1193556785583496, -0.6440253853797913, 0.7541519999504089, -0.5359970331192017, 0.3816526234149933, 0.5827992558479309, -0.1320020854473114, 0.3494945466518402, -0.05655636638402939, -0.16641926765441895, 0.3352338671684265, 0.07936160266399384, -0.5134082436561584, -0.4911341369152069, 0.6560414433479309, -0.9650417566299438, -0.25294414162635803, -0.3542390465736389, -0.3909262716770172, 0.1534229815006256, 0.1821446418762207, 0.5882353782653809, 0.6394656300544739, 0.305842787027359, 0.3275142014026642, 0.5637089014053345, -0.47060826420783997, 0.5437577962875366, -0.16498911380767822, -0.3346981406211853, -0.49648842215538025, 0.9319008588790894, 0.09443433582782745, 0.049610815942287445, 0.05028659105300903, 0.1827000230550766, -0.3738291561603546, -0.6406686902046204, -0.37315014004707336, 0.33471524715423584, -0.5846219062805176, -0.48068633675575256, -0.635044276714325, -0.4483860433101654, -0.3421550393104553, -0.06888072937726974, -0.5311958193778992, -0.2943960726261139, -0.44790515303611755, 0.2946525514125824, 0.7356837391853333, 0.5348702669143677, -0.16042880713939667, 0.6649301052093506, -0.6677676439285278, 0.1854056417942047, 0.09655097872018814, 0.5289430022239685, -0.13872796297073364, -0.8300361037254333, -0.3050248324871063, -0.006198690738528967, -0.48051682114601135, -0.6860318183898926, 0.5188152194023132, 0.14086122810840607, 0.40064698457717896, 0.3476385772228241, -0.2831921875476837, 0.7793425917625427, 0.026547446846961975, 0.59474116563797, 0.45996731519699097, -0.6626452803611755, 0.6354377865791321, -0.2333955615758896, 0.21660834550857544, 0.11512968689203262, 0.4540133774280548, -0.15056920051574707, 0.13584701716899872, -0.9195841550827026, -0.792047381401062, 0.8635942935943604, 0.216525137424469, -0.058429375290870667, 0.47333285212516785, 0.7217652797698975, -0.1303139328956604, -0.015869231894612312, -0.8840333819389343, -0.4411127269268036, -0.45353075861930847, -0.29492494463920593, 0.13452807068824768, -0.06214580312371254, 0.013758651912212372, -0.763114869594574, 0.7326991558074951, -0.04587600380182266, 0.8326893448829651, 0.3948916494846344, -0.016574356704950333, 0.048564035445451736, -0.482976496219635, 0.6029469966888428, 0.2621215581893921, -0.4519972801208496, 0.004113508388400078, 0.09686876833438873, -0.7365585565567017, 0.12584292888641357, 0.19526457786560059, 0.024750616401433945, -0.004633968695998192, 0.3428814113140106, 0.9480382204055786, -0.10183975100517273, 0.11008035391569138, 0.524557888507843, -0.08846575766801834, -0.5525474548339844, -0.23858503997325897, 0.14477364718914032, 0.008535049855709076, 0.40565282106399536, 0.4375615119934082, 0.39631810784339905, -0.11251118034124374, -0.23703046143054962, 0.2751874029636383, 0.5078731179237366, -0.2973842918872833, -0.27832645177841187, 0.7141067385673523, -0.09668783843517303, -0.1406865417957306, 0.7818353772163391, -0.1175929382443428, -0.5150616765022278, 1.0629761219024658, 0.4053078889846802, 0.8395245671272278, -0.12149427831172943, 0.07458017021417618, 0.913076639175415, 0.2720915675163269, -0.024912243708968163, 0.26829656958580017, 0.1737835854291916, -0.7838629484176636, 0.03518063947558403, -0.559418261051178, 0.13373364508152008, 0.4789152443408966, -0.6095255613327026, 0.37515828013420105, -0.6692328453063965, -0.45482009649276733, 0.2658670246601105, 0.35690629482269287, -0.8974947929382324, 0.3317228853702545, -0.05087704211473465, 0.9008704423904419, -0.6876034736633301, 0.8573963642120361, 0.8529195785522461, -0.5103487968444824, -1.1027400493621826, -0.016975147649645805, 0.04676514491438866, -0.9134954810142517, 0.6103256344795227, 0.5697555541992188, 0.039259228855371475, 0.09731321781873703, -0.9023075699806213, -0.6613642573356628, 1.4284930229187012, 0.4113689661026001, -0.07753728330135345, 0.3362490236759186, -0.11811550706624985, 0.060982849448919296, -0.5272319912910461, 0.5696804523468018, 0.17992959916591644, 0.3052201271057129, 0.2935255467891693, -0.8186991214752197, 0.21733011305332184, -0.41131073236465454, 0.14553771913051605, 0.23355025053024292, -0.8611136674880981, 0.8786083459854126, -0.55500328540802, -0.10897840559482574, 0.03040660358965397, 0.6355407238006592, 0.2683256268501282, 0.24619020521640778, 0.501189112663269, 0.6932359933853149, 0.5196901559829712, -0.2872183918952942, 0.8516725897789001, 0.04876136779785156, 0.6087898015975952, 0.5915560722351074, 0.2687776982784271, 0.6140475273132324, 0.35350674390792847, -0.19969134032726288, 0.44094863533973694, 1.2387086153030396, -0.3508470356464386, 0.301005095243454, 0.13301995396614075, -0.0836636871099472, -0.04304741322994232, 0.13288013637065887, -0.44630932807922363, 0.6884443163871765, 0.1682787537574768, -0.5982214212417603, -0.11034603416919708, 0.08249928802251816, 0.08240630477666855, -0.45177483558654785, -0.28525510430336, 0.36717507243156433, -0.011240077205002308, -0.35177892446517944, 1.0315085649490356, 0.21511808037757874, 0.9453436136245728, -0.3000275492668152, 0.07985278218984604, -0.2603018879890442, 0.11075699329376221, -0.48066210746765137, -0.7627944350242615, 0.2971118092536926, -0.29952386021614075, 0.017453517764806747, 0.11818622797727585, 0.7353602647781372, -0.21019849181175232, -0.3772994875907898, 0.15523776412010193, 0.21918734908103943, 0.5213204622268677, -0.046416446566581726, -1.247300624847412, 0.24802632629871368, 0.18921272456645966, -0.6247571706771851, 0.30506202578544617, 0.3040066361427307, 0.0762714222073555, 0.8552583456039429, 0.6714160442352295, -0.18567843735218048, 0.18153904378414154, -0.32757502794265747, 0.8392940163612366, -0.656549334526062, -0.25498342514038086, -0.8763138651847839, 0.7296159863471985, -0.20003415644168854, -0.6552132368087769, 0.5574419498443604, 0.6845973134040833, 0.8613518476486206, 0.023487703874707222, 0.50338214635849, -0.3264433741569519, -0.05820849537849426, -0.4867442548274994, 0.7669759392738342, -0.7648095488548279, -0.027636203914880753, -0.146144300699234, -0.6865132451057434, -0.4246698319911957, 0.8842219710350037, -0.24926085770130157, 0.4197847843170166, 0.4965210258960724, 1.0833605527877808, -0.4299880564212799, -0.23912464082241058, 0.10811290144920349, 0.08174870163202286, -0.0681927353143692, 0.38018476963043213, 0.4446435272693634, -0.9290369153022766, 0.4172690510749817, -0.6264421343803406, -0.234881192445755, -0.2572941482067108, -0.7679760456085205, -1.035850167274475, -0.9638017416000366, -0.5936748385429382, -0.8384478092193604, -0.2944813370704651, 0.9401259422302246, 1.2095718383789062, -0.5616744160652161, -0.17400525510311127, 0.07545264810323715, 0.19439715147018433, -0.10444562137126923, -0.2204766422510147, 0.6267566084861755, 0.07793550938367844, -0.6877281069755554, -0.2738681435585022, -0.057118821889162064, 0.4941467344760895, 0.11070112138986588, -0.24012425541877747, -0.24373038113117218, -0.32549425959587097, 0.31037241220474243, 0.42351508140563965, -0.6193391680717468, -0.06634747982025146, -0.25222572684288025, -0.22601453959941864, 0.4764336049556732, 0.4613502025604248, -0.521668553352356, 0.21053318679332733, 0.2892478108406067, 0.2897762656211853, 0.9458400011062622, -0.3131054639816284, 0.020466655492782593, -0.7773638963699341, 0.6357362270355225, -0.20749326050281525, 0.4190618395805359, 0.4155466854572296, -0.32011479139328003, 0.5505119562149048, 0.40157264471054077, -0.4557996988296509, -0.8878945708274841, -0.14625464379787445, -1.120487928390503, -0.05073611065745354, 0.9613144993782043, -0.3323986828327179, -0.5363597273826599, 0.340196818113327, -0.031157253310084343, 0.6077545285224915, -0.11598951369524002, 0.4123380482196808, 0.20765553414821625, -0.20953285694122314, -0.7055667042732239, -0.699166476726532, 0.4868583679199219, 0.0874030813574791, -0.6647364497184753, -0.5578941702842712, -0.03393727168440819, 0.7248077392578125, 0.24424731731414795, 0.6028926968574524, -0.17417441308498383, 0.11060767620801926, 0.07290031760931015, 0.5778640508651733, -0.3720322251319885, -0.05460666865110397, -0.2835622727870941, -0.019828805699944496, -0.16753000020980835, -0.7336934804916382 ]
Helsinki-NLP/opus-mt-ine-en
Helsinki-NLP
"2023-08-16T11:58:27Z"
32,091
2
transformers
[ "transformers", "pytorch", "tf", "marian", "text2text-generation", "translation", "ca", "es", "os", "ro", "fy", "cy", "sc", "is", "yi", "lb", "an", "sq", "fr", "ht", "rm", "ps", "af", "uk", "sl", "lt", "bg", "be", "gd", "si", "en", "br", "mk", "or", "mr", "ru", "fo", "co", "oc", "pl", "gl", "nb", "bn", "id", "hy", "da", "gv", "nl", "pt", "hi", "as", "kw", "ga", "sv", "gu", "wa", "lv", "el", "it", "hr", "ur", "nn", "de", "cs", "ine", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
translation
"2022-03-02T23:29:04Z"
--- language: - ca - es - os - ro - fy - cy - sc - is - yi - lb - an - sq - fr - ht - rm - ps - af - uk - sl - lt - bg - be - gd - si - en - br - mk - or - mr - ru - fo - co - oc - pl - gl - nb - bn - id - hy - da - gv - nl - pt - hi - as - kw - ga - sv - gu - wa - lv - el - it - hr - ur - nn - de - cs - ine tags: - translation license: apache-2.0 --- ### ine-eng * source group: Indo-European languages * target group: English * OPUS readme: [ine-eng](https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/ine-eng/README.md) * model: transformer * source language(s): afr aln ang_Latn arg asm ast awa bel bel_Latn ben bho bos_Latn bre bul bul_Latn cat ces cor cos csb_Latn cym dan deu dsb egl ell enm_Latn ext fao fra frm_Latn frr fry gcf_Latn gla gle glg glv gom gos got_Goth grc_Grek gsw guj hat hif_Latn hin hrv hsb hye ind isl ita jdt_Cyrl ksh kur_Arab kur_Latn lad lad_Latn lat_Latn lav lij lit lld_Latn lmo ltg ltz mai mar max_Latn mfe min mkd mwl nds nld nno nob nob_Hebr non_Latn npi oci ori orv_Cyrl oss pan_Guru pap pdc pes pes_Latn pes_Thaa pms pnb pol por prg_Latn pus roh rom ron rue rus san_Deva scn sco sgs sin slv snd_Arab spa sqi srp_Cyrl srp_Latn stq swe swg tgk_Cyrl tly_Latn tmw_Latn ukr urd vec wln yid zlm_Latn zsm_Latn zza * target language(s): eng * model: transformer * pre-processing: normalization + SentencePiece (spm32k,spm32k) * download original weights: [opus2m-2020-08-01.zip](https://object.pouta.csc.fi/Tatoeba-MT-models/ine-eng/opus2m-2020-08-01.zip) * test set translations: [opus2m-2020-08-01.test.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/ine-eng/opus2m-2020-08-01.test.txt) * test set scores: [opus2m-2020-08-01.eval.txt](https://object.pouta.csc.fi/Tatoeba-MT-models/ine-eng/opus2m-2020-08-01.eval.txt) ## Benchmarks | testset | BLEU | chr-F | |-----------------------|-------|-------| | newsdev2014-hineng.hin.eng | 11.2 | 0.375 | | newsdev2016-enro-roneng.ron.eng | 35.5 | 0.614 | | newsdev2017-enlv-laveng.lav.eng | 25.1 | 0.542 | | newsdev2019-engu-gujeng.guj.eng | 16.0 | 0.420 | | newsdev2019-enlt-liteng.lit.eng | 24.0 | 0.522 | | newsdiscussdev2015-enfr-fraeng.fra.eng | 30.1 | 0.550 | | newsdiscusstest2015-enfr-fraeng.fra.eng | 33.4 | 0.572 | | newssyscomb2009-ceseng.ces.eng | 24.0 | 0.520 | | newssyscomb2009-deueng.deu.eng | 25.7 | 0.526 | | newssyscomb2009-fraeng.fra.eng | 27.9 | 0.550 | | newssyscomb2009-itaeng.ita.eng | 31.4 | 0.574 | | newssyscomb2009-spaeng.spa.eng | 28.3 | 0.555 | | news-test2008-deueng.deu.eng | 24.0 | 0.515 | | news-test2008-fraeng.fra.eng | 24.5 | 0.524 | | news-test2008-spaeng.spa.eng | 25.5 | 0.533 | | newstest2009-ceseng.ces.eng | 23.3 | 0.516 | | newstest2009-deueng.deu.eng | 23.2 | 0.512 | | newstest2009-fraeng.fra.eng | 27.3 | 0.545 | | newstest2009-itaeng.ita.eng | 30.3 | 0.567 | | newstest2009-spaeng.spa.eng | 27.9 | 0.549 | | newstest2010-ceseng.ces.eng | 23.8 | 0.523 | | newstest2010-deueng.deu.eng | 26.2 | 0.545 | | newstest2010-fraeng.fra.eng | 28.6 | 0.562 | | newstest2010-spaeng.spa.eng | 31.4 | 0.581 | | newstest2011-ceseng.ces.eng | 24.2 | 0.521 | | newstest2011-deueng.deu.eng | 23.9 | 0.522 | | newstest2011-fraeng.fra.eng | 29.5 | 0.570 | | newstest2011-spaeng.spa.eng | 30.3 | 0.570 | | newstest2012-ceseng.ces.eng | 23.5 | 0.516 | | newstest2012-deueng.deu.eng | 24.9 | 0.529 | | newstest2012-fraeng.fra.eng | 30.0 | 0.568 | | newstest2012-ruseng.rus.eng | 29.9 | 0.565 | | newstest2012-spaeng.spa.eng | 33.3 | 0.593 | | newstest2013-ceseng.ces.eng | 25.6 | 0.531 | | newstest2013-deueng.deu.eng | 27.7 | 0.545 | | newstest2013-fraeng.fra.eng | 30.0 | 0.561 | | newstest2013-ruseng.rus.eng | 24.4 | 0.514 | | newstest2013-spaeng.spa.eng | 30.8 | 0.577 | | newstest2014-csen-ceseng.ces.eng | 27.7 | 0.558 | | newstest2014-deen-deueng.deu.eng | 27.7 | 0.545 | | newstest2014-fren-fraeng.fra.eng | 32.2 | 0.592 | | newstest2014-hien-hineng.hin.eng | 16.7 | 0.450 | | newstest2014-ruen-ruseng.rus.eng | 27.2 | 0.552 | | newstest2015-encs-ceseng.ces.eng | 25.4 | 0.518 | | newstest2015-ende-deueng.deu.eng | 28.8 | 0.552 | | newstest2015-enru-ruseng.rus.eng | 25.6 | 0.527 | | newstest2016-encs-ceseng.ces.eng | 27.0 | 0.540 | | newstest2016-ende-deueng.deu.eng | 33.5 | 0.592 | | newstest2016-enro-roneng.ron.eng | 32.8 | 0.591 | | newstest2016-enru-ruseng.rus.eng | 24.8 | 0.523 | | newstest2017-encs-ceseng.ces.eng | 23.7 | 0.510 | | newstest2017-ende-deueng.deu.eng | 29.3 | 0.556 | | newstest2017-enlv-laveng.lav.eng | 18.9 | 0.486 | | newstest2017-enru-ruseng.rus.eng | 28.0 | 0.546 | | newstest2018-encs-ceseng.ces.eng | 24.9 | 0.521 | | newstest2018-ende-deueng.deu.eng | 36.0 | 0.604 | | newstest2018-enru-ruseng.rus.eng | 23.8 | 0.517 | | newstest2019-deen-deueng.deu.eng | 31.5 | 0.570 | | newstest2019-guen-gujeng.guj.eng | 12.1 | 0.377 | | newstest2019-lten-liteng.lit.eng | 26.6 | 0.555 | | newstest2019-ruen-ruseng.rus.eng | 27.5 | 0.541 | | Tatoeba-test.afr-eng.afr.eng | 59.0 | 0.724 | | Tatoeba-test.ang-eng.ang.eng | 9.9 | 0.254 | | Tatoeba-test.arg-eng.arg.eng | 41.6 | 0.487 | | Tatoeba-test.asm-eng.asm.eng | 22.8 | 0.392 | | Tatoeba-test.ast-eng.ast.eng | 36.1 | 0.521 | | Tatoeba-test.awa-eng.awa.eng | 11.6 | 0.280 | | Tatoeba-test.bel-eng.bel.eng | 42.2 | 0.597 | | Tatoeba-test.ben-eng.ben.eng | 45.8 | 0.598 | | Tatoeba-test.bho-eng.bho.eng | 34.4 | 0.518 | | Tatoeba-test.bre-eng.bre.eng | 24.4 | 0.405 | | Tatoeba-test.bul-eng.bul.eng | 50.8 | 0.660 | | Tatoeba-test.cat-eng.cat.eng | 51.2 | 0.677 | | Tatoeba-test.ces-eng.ces.eng | 47.6 | 0.641 | | Tatoeba-test.cor-eng.cor.eng | 5.4 | 0.214 | | Tatoeba-test.cos-eng.cos.eng | 61.0 | 0.675 | | Tatoeba-test.csb-eng.csb.eng | 22.5 | 0.394 | | Tatoeba-test.cym-eng.cym.eng | 34.7 | 0.522 | | Tatoeba-test.dan-eng.dan.eng | 56.2 | 0.708 | | Tatoeba-test.deu-eng.deu.eng | 44.9 | 0.625 | | Tatoeba-test.dsb-eng.dsb.eng | 21.0 | 0.383 | | Tatoeba-test.egl-eng.egl.eng | 6.9 | 0.221 | | Tatoeba-test.ell-eng.ell.eng | 62.1 | 0.741 | | Tatoeba-test.enm-eng.enm.eng | 22.6 | 0.466 | | Tatoeba-test.ext-eng.ext.eng | 33.2 | 0.496 | | Tatoeba-test.fao-eng.fao.eng | 28.1 | 0.460 | | Tatoeba-test.fas-eng.fas.eng | 9.6 | 0.306 | | Tatoeba-test.fra-eng.fra.eng | 50.3 | 0.661 | | Tatoeba-test.frm-eng.frm.eng | 30.0 | 0.457 | | Tatoeba-test.frr-eng.frr.eng | 15.2 | 0.301 | | Tatoeba-test.fry-eng.fry.eng | 34.4 | 0.525 | | Tatoeba-test.gcf-eng.gcf.eng | 18.4 | 0.317 | | Tatoeba-test.gla-eng.gla.eng | 24.1 | 0.400 | | Tatoeba-test.gle-eng.gle.eng | 52.2 | 0.671 | | Tatoeba-test.glg-eng.glg.eng | 50.5 | 0.669 | | Tatoeba-test.glv-eng.glv.eng | 5.7 | 0.189 | | Tatoeba-test.gos-eng.gos.eng | 19.2 | 0.378 | | Tatoeba-test.got-eng.got.eng | 0.1 | 0.022 | | Tatoeba-test.grc-eng.grc.eng | 0.9 | 0.095 | | Tatoeba-test.gsw-eng.gsw.eng | 23.9 | 0.390 | | Tatoeba-test.guj-eng.guj.eng | 28.0 | 0.428 | | Tatoeba-test.hat-eng.hat.eng | 44.2 | 0.567 | | Tatoeba-test.hbs-eng.hbs.eng | 51.6 | 0.666 | | Tatoeba-test.hif-eng.hif.eng | 22.3 | 0.451 | | Tatoeba-test.hin-eng.hin.eng | 41.7 | 0.585 | | Tatoeba-test.hsb-eng.hsb.eng | 46.4 | 0.590 | | Tatoeba-test.hye-eng.hye.eng | 40.4 | 0.564 | | Tatoeba-test.isl-eng.isl.eng | 43.8 | 0.605 | | Tatoeba-test.ita-eng.ita.eng | 60.7 | 0.735 | | Tatoeba-test.jdt-eng.jdt.eng | 5.5 | 0.091 | | Tatoeba-test.kok-eng.kok.eng | 7.8 | 0.205 | | Tatoeba-test.ksh-eng.ksh.eng | 15.8 | 0.284 | | Tatoeba-test.kur-eng.kur.eng | 11.6 | 0.232 | | Tatoeba-test.lad-eng.lad.eng | 30.7 | 0.484 | | Tatoeba-test.lah-eng.lah.eng | 11.0 | 0.286 | | Tatoeba-test.lat-eng.lat.eng | 24.4 | 0.432 | | Tatoeba-test.lav-eng.lav.eng | 47.2 | 0.646 | | Tatoeba-test.lij-eng.lij.eng | 9.0 | 0.287 | | Tatoeba-test.lit-eng.lit.eng | 51.7 | 0.670 | | Tatoeba-test.lld-eng.lld.eng | 22.4 | 0.369 | | Tatoeba-test.lmo-eng.lmo.eng | 26.1 | 0.381 | | Tatoeba-test.ltz-eng.ltz.eng | 39.8 | 0.536 | | Tatoeba-test.mai-eng.mai.eng | 72.3 | 0.758 | | Tatoeba-test.mar-eng.mar.eng | 32.0 | 0.554 | | Tatoeba-test.mfe-eng.mfe.eng | 63.1 | 0.822 | | Tatoeba-test.mkd-eng.mkd.eng | 49.5 | 0.638 | | Tatoeba-test.msa-eng.msa.eng | 38.6 | 0.566 | | Tatoeba-test.multi.eng | 45.6 | 0.615 | | Tatoeba-test.mwl-eng.mwl.eng | 40.4 | 0.767 | | Tatoeba-test.nds-eng.nds.eng | 35.5 | 0.538 | | Tatoeba-test.nep-eng.nep.eng | 4.9 | 0.209 | | Tatoeba-test.nld-eng.nld.eng | 54.2 | 0.694 | | Tatoeba-test.non-eng.non.eng | 39.3 | 0.573 | | Tatoeba-test.nor-eng.nor.eng | 50.9 | 0.663 | | Tatoeba-test.oci-eng.oci.eng | 19.6 | 0.386 | | Tatoeba-test.ori-eng.ori.eng | 16.2 | 0.364 | | Tatoeba-test.orv-eng.orv.eng | 13.6 | 0.288 | | Tatoeba-test.oss-eng.oss.eng | 9.4 | 0.301 | | Tatoeba-test.pan-eng.pan.eng | 17.1 | 0.389 | | Tatoeba-test.pap-eng.pap.eng | 57.0 | 0.680 | | Tatoeba-test.pdc-eng.pdc.eng | 41.6 | 0.526 | | Tatoeba-test.pms-eng.pms.eng | 13.7 | 0.333 | | Tatoeba-test.pol-eng.pol.eng | 46.5 | 0.632 | | Tatoeba-test.por-eng.por.eng | 56.4 | 0.710 | | Tatoeba-test.prg-eng.prg.eng | 2.3 | 0.193 | | Tatoeba-test.pus-eng.pus.eng | 3.2 | 0.194 | | Tatoeba-test.roh-eng.roh.eng | 17.5 | 0.420 | | Tatoeba-test.rom-eng.rom.eng | 5.0 | 0.237 | | Tatoeba-test.ron-eng.ron.eng | 51.4 | 0.670 | | Tatoeba-test.rue-eng.rue.eng | 26.0 | 0.447 | | Tatoeba-test.rus-eng.rus.eng | 47.8 | 0.634 | | Tatoeba-test.san-eng.san.eng | 4.0 | 0.195 | | Tatoeba-test.scn-eng.scn.eng | 45.1 | 0.440 | | Tatoeba-test.sco-eng.sco.eng | 41.9 | 0.582 | | Tatoeba-test.sgs-eng.sgs.eng | 38.7 | 0.498 | | Tatoeba-test.sin-eng.sin.eng | 29.7 | 0.499 | | Tatoeba-test.slv-eng.slv.eng | 38.2 | 0.564 | | Tatoeba-test.snd-eng.snd.eng | 12.7 | 0.342 | | Tatoeba-test.spa-eng.spa.eng | 53.2 | 0.687 | | Tatoeba-test.sqi-eng.sqi.eng | 51.9 | 0.679 | | Tatoeba-test.stq-eng.stq.eng | 9.0 | 0.391 | | Tatoeba-test.swe-eng.swe.eng | 57.4 | 0.705 | | Tatoeba-test.swg-eng.swg.eng | 18.0 | 0.338 | | Tatoeba-test.tgk-eng.tgk.eng | 24.3 | 0.413 | | Tatoeba-test.tly-eng.tly.eng | 1.1 | 0.094 | | Tatoeba-test.ukr-eng.ukr.eng | 48.0 | 0.639 | | Tatoeba-test.urd-eng.urd.eng | 27.2 | 0.471 | | Tatoeba-test.vec-eng.vec.eng | 28.0 | 0.398 | | Tatoeba-test.wln-eng.wln.eng | 17.5 | 0.320 | | Tatoeba-test.yid-eng.yid.eng | 26.9 | 0.457 | | Tatoeba-test.zza-eng.zza.eng | 1.7 | 0.131 | ### System Info: - hf_name: ine-eng - source_languages: ine - target_languages: eng - opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/ine-eng/README.md - original_repo: Tatoeba-Challenge - tags: ['translation'] - languages: ['ca', 'es', 'os', 'ro', 'fy', 'cy', 'sc', 'is', 'yi', 'lb', 'an', 'sq', 'fr', 'ht', 'rm', 'ps', 'af', 'uk', 'sl', 'lt', 'bg', 'be', 'gd', 'si', 'en', 'br', 'mk', 'or', 'mr', 'ru', 'fo', 'co', 'oc', 'pl', 'gl', 'nb', 'bn', 'id', 'hy', 'da', 'gv', 'nl', 'pt', 'hi', 'as', 'kw', 'ga', 'sv', 'gu', 'wa', 'lv', 'el', 'it', 'hr', 'ur', 'nn', 'de', 'cs', 'ine'] - src_constituents: {'cat', 'spa', 'pap', 'mwl', 'lij', 'bos_Latn', 'lad_Latn', 'lat_Latn', 'pcd', 'oss', 'ron', 'fry', 'cym', 'awa', 'swg', 'zsm_Latn', 'srd', 'gcf_Latn', 'isl', 'yid', 'bho', 'ltz', 'kur_Latn', 'arg', 'pes_Thaa', 'sqi', 'csb_Latn', 'fra', 'hat', 'non_Latn', 'sco', 'pnb', 'roh', 'bul_Latn', 'pus', 'afr', 'ukr', 'slv', 'lit', 'tmw_Latn', 'hsb', 'tly_Latn', 'bul', 'bel', 'got_Goth', 'lat_Grek', 'ext', 'gla', 'mai', 'sin', 'hif_Latn', 'eng', 'bre', 'nob_Hebr', 'prg_Latn', 'ang_Latn', 'aln', 'mkd', 'ori', 'mar', 'afr_Arab', 'san_Deva', 'gos', 'rus', 'fao', 'orv_Cyrl', 'bel_Latn', 'cos', 'zza', 'grc_Grek', 'oci', 'mfe', 'gom', 'bjn', 'sgs', 'tgk_Cyrl', 'hye_Latn', 'pdc', 'srp_Cyrl', 'pol', 'ast', 'glg', 'pms', 'nob', 'ben', 'min', 'srp_Latn', 'zlm_Latn', 'ind', 'rom', 'hye', 'scn', 'enm_Latn', 'lmo', 'npi', 'pes', 'dan', 'rus_Latn', 'jdt_Cyrl', 'gsw', 'glv', 'nld', 'snd_Arab', 'kur_Arab', 'por', 'hin', 'dsb', 'asm', 'lad', 'frm_Latn', 'ksh', 'pan_Guru', 'cor', 'gle', 'swe', 'guj', 'wln', 'lav', 'ell', 'frr', 'rue', 'ita', 'hrv', 'urd', 'stq', 'nno', 'deu', 'lld_Latn', 'ces', 'egl', 'vec', 'max_Latn', 'pes_Latn', 'ltg', 'nds'} - tgt_constituents: {'eng'} - src_multilingual: True - tgt_multilingual: False - prepro: normalization + SentencePiece (spm32k,spm32k) - url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/ine-eng/opus2m-2020-08-01.zip - url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/ine-eng/opus2m-2020-08-01.test.txt - src_alpha3: ine - tgt_alpha3: eng - short_pair: ine-en - chrF2_score: 0.615 - bleu: 45.6 - brevity_penalty: 0.997 - ref_len: 71872.0 - src_name: Indo-European languages - tgt_name: English - train_date: 2020-08-01 - src_alpha2: ine - tgt_alpha2: en - prefer_old: False - long_pair: ine-eng - helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535 - transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b - port_machine: brutasse - port_time: 2020-08-21-14:41
[ -0.8093376159667969, -0.5040598511695862, 0.20519651472568512, 0.5144367218017578, -0.17689062654972076, -0.03467356041073799, 0.10826689749956131, -0.44225117564201355, 0.7412418127059937, -0.28154847025871277, -0.3511609733104706, -0.3559444844722748, -0.5299894213676453, 0.36917710304260254, 0.01861662231385708, 0.47775164246559143, -0.043380193412303925, 0.1611376851797104, 0.28417813777923584, -0.31226539611816406, -0.556134819984436, 0.05813311040401459, -0.9567763209342957, -0.04920830577611923, 0.08545906096696854, 0.5531580448150635, 0.5194765329360962, 0.33466780185699463, 0.4517987072467804, 0.4395676851272583, -0.21036188304424286, 0.1251440793275833, 0.17726047337055206, -0.1684494912624359, 0.0494677759706974, -0.8537646532058716, -0.474842369556427, -0.16464564204216003, 0.787221372127533, 0.6707621812820435, 0.3873686194419861, 0.38531771302223206, 0.18260759115219116, 1.0513889789581299, -0.4940246343612671, -0.07124357670545578, -0.059254564344882965, 0.013856104575097561, -0.41688501834869385, -0.35077962279319763, -0.6097078919410706, -0.8589194416999817, -0.1844727098941803, -0.6753047704696655, 0.12647224962711334, -0.05375101789832115, 1.541100025177002, -0.18530187010765076, -0.31776127219200134, -0.18160317838191986, -0.30081799626350403, 1.0047247409820557, -0.85868239402771, 0.2890019714832306, 0.4544079303741455, -0.10024555772542953, -0.09877452254295349, -0.35309073328971863, -0.6922942399978638, 0.24616317451000214, -0.3447605073451996, 0.6684057116508484, 0.06007152795791626, -0.45182546973228455, 0.18046881258487701, 0.4559016823768616, -0.6870487928390503, 0.11245878040790558, -0.5266914963722229, -0.009922880679368973, 0.8453572988510132, 0.38710910081863403, 0.3566039204597473, -0.4558589458465576, -0.6838088631629944, -0.5518222451210022, -0.46214354038238525, 0.6983633637428284, 0.3076752722263336, 0.18530507385730743, -0.320761114358902, 0.7473833560943604, -0.29315614700317383, 0.4915004074573517, 0.493634968996048, -0.07796559482812881, 0.7609476447105408, -0.6441075205802917, -0.6130409836769104, -0.29714903235435486, 0.9966805577278137, 0.657356321811676, -0.1614648997783661, 0.36585837602615356, 0.17630712687969208, 0.1879166215658188, -0.46908038854599, -0.8332555890083313, 0.03632481396198273, 0.14335386455059052, -0.3023748993873596, -0.07408489286899567, 0.12484290450811386, -1.425804615020752, -0.05330297723412514, -0.04446471109986305, 0.41599181294441223, -0.8150721788406372, -0.4277682602405548, 0.28424879908561707, -0.08125371485948563, 0.4999820291996002, 0.22218237817287445, -0.5448194742202759, 0.361361026763916, 0.14636263251304626, 0.872785210609436, -0.4125366806983948, -0.26483702659606934, 0.17386862635612488, -0.05314498022198677, -0.5587212443351746, 0.8838763236999512, -0.31397655606269836, -0.5422630906105042, -0.2986850142478943, 0.16348950564861298, -0.5259096622467041, -0.23160715401172638, 0.6838739514350891, -0.12377346307039261, 0.4575536847114563, -0.7258167266845703, -0.6727102398872375, -0.38266539573669434, 0.16163977980613708, -0.4936240613460541, 1.4102656841278076, 0.17567773163318634, -0.9850437045097351, 0.7266039252281189, -0.6580213308334351, 0.14349143207073212, -0.062098704278469086, 0.05623810738325119, -0.6077597737312317, -0.25310060381889343, 0.45174524188041687, 0.3121323883533478, -0.42444971203804016, 0.021534061059355736, -0.11844700574874878, -0.3815125524997711, 0.0655786469578743, -0.3019448220729828, 1.275652527809143, 0.34355273842811584, -0.6020863652229309, -0.18649232387542725, -1.0900187492370605, 0.5001116991043091, 0.16219045221805573, -0.4615301489830017, 0.02160792052745819, -0.722284197807312, -0.22529472410678864, 0.29326847195625305, 0.19689644873142242, -0.683825671672821, 0.17465387284755707, -0.7870246171951294, -0.19622059166431427, 1.1397496461868286, 0.21773774921894073, 0.4434078633785248, -0.6811355352401733, 0.508934497833252, 0.3784578740596771, 0.2157914787530899, 0.32808390259742737, -0.6682429909706116, -0.821480393409729, -0.23331689834594727, 0.6162480115890503, 0.7678443789482117, -0.620022714138031, 0.7869733572006226, -0.10093917697668076, -1.0972703695297241, -0.599278450012207, -0.14027564227581024, 0.5841038823127747, 0.5282214879989624, 0.37274882197380066, -0.20053888857364655, -0.5983015298843384, -1.1296592950820923, -0.3862743377685547, -0.0039663189090788364, 0.19741246104240417, 0.20445458590984344, 1.0573453903198242, 0.11721153557300568, 0.8332774043083191, -0.8603085875511169, -0.3317757844924927, -0.27479419112205505, -0.19706489145755768, 0.6268110275268555, 0.7240872979164124, 0.9260202050209045, -0.7931626439094543, -1.265984296798706, -0.06998101621866226, -0.8521983623504639, -0.09838816523551941, 0.06291559338569641, -0.24049456417560577, 0.6066309213638306, 0.09648764133453369, -0.6913093328475952, 0.9236745834350586, 0.4904058873653412, -0.7991456389427185, 0.8106549978256226, -0.2944577932357788, 0.6290397644042969, -1.2995158433914185, 0.23937420547008514, -0.011398945935070515, 0.2324579656124115, -0.38781851530075073, -0.04661615192890167, 0.01840374432504177, 0.1645914763212204, -0.39189714193344116, 0.8252243399620056, -0.9039249420166016, -0.08509164303541183, 0.529171347618103, 0.4280010759830475, -0.12261885404586792, 0.8284278512001038, -0.339229553937912, 1.188040852546692, 0.8104738593101501, -0.6338600516319275, 0.2660537660121918, 0.21113380789756775, -0.3026527166366577, 0.6090237498283386, -0.5423204898834229, -0.3968302607536316, 0.11882946640253067, -0.03377198427915573, -1.224392294883728, -0.10633672028779984, 0.22108393907546997, -0.735045313835144, 0.20407509803771973, 0.33815109729766846, -0.346157431602478, -0.6575856804847717, -0.9455617666244507, 0.27358347177505493, 0.43818774819374084, -0.16348910331726074, 0.3311021327972412, 0.18747209012508392, -0.07900156825780869, -0.666455864906311, -0.704380989074707, -0.3152831494808197, -0.1228671446442604, -0.5938958525657654, 0.297285795211792, -0.293042927980423, -0.24448971450328827, 0.17783667147159576, -0.3198542594909668, -0.2704123854637146, -0.22795751690864563, 0.22737205028533936, 0.1832013577222824, -0.2784842848777771, -0.1768859177827835, -0.32351067662239075, -0.21713536977767944, -0.1793038249015808, 0.3447011113166809, 0.7006906270980835, -0.3079565167427063, -0.4571341276168823, -0.7127335071563721, 0.2617796063423157, 0.6062999963760376, -0.17409029603004456, 0.9819667935371399, 0.35309743881225586, -0.2633630931377411, 0.16938462853431702, -0.6043731570243835, 0.11868474632501602, -0.5373834371566772, 0.2148912101984024, -0.6976930499076843, -0.6372358798980713, 0.90340256690979, 0.09414311498403549, 0.041135162115097046, 1.2322341203689575, 0.6091124415397644, -0.01883423514664173, 0.9468326568603516, 0.14746448397636414, 0.34977269172668457, 0.489766925573349, -0.7195246815681458, 0.06004345417022705, -0.7702904343605042, -0.663381040096283, -0.6533442735671997, -0.44384631514549255, -0.8716843128204346, -0.254154235124588, 0.4970187544822693, -0.029060497879981995, -0.3733433187007904, 0.6519633531570435, -0.8831031918525696, 0.2526979148387909, 0.5968583822250366, 0.39432913064956665, 0.11218462884426117, -0.42672133445739746, -0.31893739104270935, -0.3195371925830841, -0.31708842515945435, -0.39624178409576416, 1.4033114910125732, 0.299972265958786, 0.5665667653083801, 0.3211964964866638, 0.8644141554832458, 0.3434739112854004, 0.00285328715108335, -0.4398656487464905, 0.8047829270362854, 0.32105371356010437, -0.9416375160217285, -0.5904406309127808, -0.06116654351353645, -1.0070794820785522, 0.5201152563095093, -0.1671941578388214, -0.6726964116096497, 0.4939858615398407, -0.04811467230319977, -0.292409747838974, 0.45820027589797974, -0.9224960803985596, 0.6187398433685303, -0.14210736751556396, -0.8387829065322876, 0.17007239162921906, -0.6102288365364075, 0.21235792338848114, 0.1129540205001831, 0.11122336238622665, 0.025755327194929123, 0.10390127450227737, 1.092886209487915, -0.7576379179954529, 0.37952908873558044, -0.47742533683776855, 0.17701639235019684, 0.7480451464653015, 0.09773901104927063, 0.5108558535575867, 0.20726318657398224, -0.15590104460716248, -0.5394560098648071, -0.006951093673706055, -0.7866302132606506, -0.10269288718700409, 0.7808923125267029, -0.8295745849609375, -0.7373678684234619, -1.0707883834838867, -0.17476366460323334, -0.07048098742961884, 0.30527156591415405, 0.5186588764190674, 0.7407042384147644, -0.11150733381509781, 0.46176084876060486, 0.7857374548912048, -0.33924081921577454, 0.9463808536529541, 0.03685339167714119, -0.017437627539038658, -0.549087643623352, 0.7769497036933899, 0.2799544334411621, 0.40234073996543884, 0.4917275607585907, 0.1702440232038498, -0.3666571378707886, -0.39247652888298035, -0.41201692819595337, 0.27729037404060364, -0.4923596978187561, -0.6262650489807129, -0.7122530341148376, -0.19733357429504395, -0.5643405318260193, -0.4234122037887573, -0.4654114544391632, -0.6424123644828796, -0.05630164220929146, -0.36047297716140747, 0.3992578983306885, 0.7085235118865967, -0.3319142460823059, 0.17466986179351807, -0.27751073241233826, 0.060867227613925934, 0.20940352976322174, 0.34393948316574097, -0.20040951669216156, -0.7137143611907959, -0.19302508234977722, 0.012697292491793633, -0.5650630593299866, -1.451116681098938, 0.7430849671363831, -0.1342782825231552, 0.3490169048309326, 0.2664330303668976, -0.19977694749832153, 1.0270931720733643, 0.073508121073246, 1.3147757053375244, 0.24877913296222687, -0.9325206875801086, 0.7058600187301636, -0.21004191040992737, 0.33474698662757874, 0.8375847935676575, 0.334108829498291, -0.04242582246661186, -0.7050973176956177, -0.8576817512512207, -0.9781153202056885, 0.6121648550033569, 0.3550105690956116, -0.39332225918769836, -0.15890376269817352, -0.11978567391633987, -0.030338706448674202, -0.40726369619369507, -0.843652069568634, -0.9139154553413391, 0.12631109356880188, -0.15194958448410034, 0.24217957258224487, -0.35387998819351196, -0.000009127406883635558, -0.634056568145752, 0.7654698491096497, 0.3325079381465912, 0.6016256213188171, 0.4974975287914276, -0.07221280038356781, 0.24255432188510895, 0.5188390612602234, 1.0563751459121704, 0.5746484994888306, -0.25383782386779785, -0.0394647978246212, 0.7284649610519409, -0.8585364818572998, 0.4460102915763855, -0.1883862167596817, -0.329610675573349, 0.17221114039421082, 0.22715811431407928, 0.3226568102836609, 0.17182192206382751, -0.007976265624165535, 0.49419742822647095, -0.002086892956867814, -0.44478774070739746, -0.7015730738639832, -0.16983090341091156, 0.09549340605735779, -0.08636482059955597, 0.34344401955604553, 0.22009234130382538, 0.04447844624519348, -0.5800223350524902, 0.32766151428222656, 0.16470754146575928, -0.2306334227323532, -0.11901122331619263, 0.5980046987533569, 0.19220425188541412, -0.09958730638027191, 0.08464821428060532, -0.3887786567211151, -0.542419970035553, 0.9446936845779419, 0.5678855776786804, 0.5714555978775024, -0.6703962087631226, -0.07746990770101547, 1.1291861534118652, 0.05207332968711853, -0.0613437294960022, 0.6107426881790161, 0.6855303049087524, -0.2682657241821289, 0.009110873565077782, -0.8078378438949585, -0.016984129324555397, 0.03548251837491989, -0.706721842288971, 0.23511363565921783, -0.36045944690704346, -0.5113450288772583, -0.021576102823019028, 0.6097347736358643, -0.7962200045585632, 0.6213873028755188, -0.5639498233795166, 1.4008479118347168, -1.1686723232269287, 0.67148756980896, 0.839188277721405, -0.9584185481071472, -1.2812098264694214, -0.32394862174987793, -0.18566696345806122, -0.6371949315071106, 0.7344467043876648, -0.27632802724838257, 0.011966101825237274, -0.07480625808238983, -0.2296442687511444, -1.093382716178894, 1.5081957578659058, -0.052911944687366486, -0.2107621431350708, 0.22973187267780304, -0.008333832956850529, 0.6256836652755737, 0.11732592433691025, 0.8095694780349731, 0.5301832556724548, 0.9857917428016663, -0.05132640525698662, -1.02090585231781, 0.3216645419597626, -0.750774621963501, -0.24663415551185608, 0.34555235505104065, -1.0990740060806274, 1.3217254877090454, 0.04181380197405815, -0.20603279769420624, -0.2725955545902252, 0.602880597114563, 0.3431571125984192, 0.268572062253952, 0.3388355076313019, 0.8555681705474854, 0.5186765193939209, -0.43258342146873474, 0.9593643546104431, -0.14073918759822845, 0.44039005041122437, 0.6310276985168457, 0.03531360626220703, 0.8032374978065491, 0.48239463567733765, -0.781165361404419, 0.3934321105480194, 0.7759054899215698, -0.10785335302352905, 0.4984663426876068, 0.14584693312644958, -0.4252500832080841, -0.09214307367801666, 0.01117488369345665, -0.7107920050621033, 0.4739275872707367, 0.17294691503047943, -0.03778080642223358, 0.03181930631399155, -0.3308795988559723, 0.4358955919742584, 0.42267999053001404, -0.20343254506587982, 0.533591628074646, 0.06287696957588196, -0.7925291657447815, 0.5804299116134644, -0.15656347572803497, 0.9888827204704285, -0.47693946957588196, 0.027187693864107132, -0.490115225315094, 0.4700326919555664, -0.295448362827301, -1.3052561283111572, 0.4647051990032196, -0.006203262135386467, -0.2978460192680359, 0.01292281225323677, 0.5782325267791748, -0.19323308765888214, -0.5934157371520996, 0.4933973252773285, 0.471258282661438, 0.24237297475337982, 0.47379881143569946, -0.5834267139434814, -0.1620275378227234, 0.04718765243887901, -0.8117507696151733, 0.28005942702293396, 0.4937811493873596, 0.11638551205396652, 0.7695911526679993, 0.38714489340782166, 0.24791021645069122, 0.5793665051460266, -0.4565054476261139, 0.6672400832176208, -0.8128110766410828, -0.3951509892940521, -1.0450084209442139, 0.44814184308052063, -0.5757948756217957, -0.6660882830619812, 1.2256206274032593, 1.0655955076217651, 0.7713168263435364, -0.2063356339931488, 0.6947731971740723, -0.5442771315574646, 0.6272310614585876, -0.25744104385375977, 0.7125656008720398, -0.6582618951797485, -0.37710830569267273, -0.08382411301136017, -0.784096896648407, -0.20310474932193756, 0.6253183484077454, -0.22897103428840637, 0.304866224527359, 1.1994904279708862, 0.6900922656059265, 0.29273495078086853, 0.01232448685914278, 0.07342074811458588, 0.2471301555633545, 0.1163247749209404, 1.1537179946899414, 0.3641875088214874, -0.9583651423454285, 0.5433709621429443, -0.37408706545829773, -0.07061147689819336, -0.37570667266845703, -0.5568045377731323, -0.8213019967079163, -0.757182776927948, -0.041035547852516174, -0.43164771795272827, -0.4731184244155884, 0.9441777467727661, 0.2166629433631897, -0.9285018444061279, -0.3736489415168762, 0.21388909220695496, 0.11173102259635925, -0.534545361995697, -0.35726961493492126, 1.1142619848251343, -0.05562441796064377, -1.0864183902740479, 0.14464734494686127, -0.10953875631093979, 0.11577783524990082, 0.514341413974762, -0.13394151628017426, -0.7671065330505371, 0.33433327078819275, 0.3708205223083496, 0.3983543813228607, -0.5638259053230286, -0.4405611753463745, 0.29770663380622864, -0.6071736812591553, 0.4763631820678711, -0.11539749801158905, -0.5118213295936584, 0.1459944099187851, 1.1051599979400635, 0.30730897188186646, 0.6775257587432861, 0.1944076418876648, 0.16212274134159088, -0.5079955458641052, 0.480415940284729, 0.07847218960523605, 0.2932461202144623, -0.03951115533709526, -0.37260302901268005, 0.900144100189209, 0.34989669919013977, -0.5028384327888489, -1.0770450830459595, -0.23411281406879425, -1.2882224321365356, 0.03920939937233925, 1.0300168991088867, -0.0890917032957077, -0.3675902485847473, 0.05579349398612976, -0.3895150125026703, 0.41677841544151306, -0.5353988409042358, 0.4465863108634949, 0.5796721577644348, -0.31430870294570923, 0.10023006051778793, -0.8470577001571655, 0.40964093804359436, 0.6269633173942566, -1.088776707649231, -0.3279929757118225, 0.12082242965698242, 0.4238295257091522, 0.5676229596138, 1.1714013814926147, -0.5929102301597595, 0.11186645179986954, 0.4211134910583496, 0.09675724059343338, -0.02923371084034443, -0.012799423187971115, -0.027732115238904953, 0.3058302700519562, -0.17400050163269043, -0.6661098599433899 ]
mosaicml/mpt-7b-chat
mosaicml
"2023-10-30T21:53:43Z"
32,051
495
transformers
[ "transformers", "pytorch", "mpt", "text-generation", "Composer", "MosaicML", "llm-foundry", "custom_code", "dataset:jeffwan/sharegpt_vicuna", "dataset:Hello-SimpleAI/HC3", "dataset:tatsu-lab/alpaca", "dataset:Anthropic/hh-rlhf", "dataset:victor123/evol_instruct_70k", "arxiv:2205.14135", "arxiv:2108.12409", "arxiv:2010.04245", "license:cc-by-nc-sa-4.0", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-05-04T23:56:17Z"
--- license: cc-by-nc-sa-4.0 datasets: - jeffwan/sharegpt_vicuna - Hello-SimpleAI/HC3 - tatsu-lab/alpaca - Anthropic/hh-rlhf - victor123/evol_instruct_70k tags: - Composer - MosaicML - llm-foundry inference: false --- # MPT-7B-Chat MPT-7B-Chat is a chatbot-like model for dialogue generation. It was built by finetuning [MPT-7B](https://huggingface.co/mosaicml/mpt-7b) on the [ShareGPT-Vicuna](https://huggingface.co/datasets/jeffwan/sharegpt_vicuna), [HC3](https://huggingface.co/datasets/Hello-SimpleAI/HC3), [Alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca), [HH-RLHF](https://huggingface.co/datasets/Anthropic/hh-rlhf), and [Evol-Instruct](https://huggingface.co/datasets/victor123/evol_instruct_70k) datasets. * License: _CC-By-NC-SA-4.0_ (non-commercial use only) * [Demo on Hugging Face Spaces](https://huggingface.co/spaces/mosaicml/mpt-7b-chat) This model was trained by [MosaicML](https://www.mosaicml.com) and follows a modified decoder-only transformer architecture. ## Model Date May 5, 2023 ## Model License _CC-By-NC-SA-4.0_ (non-commercial use only) ## Documentation * [Blog post: Introducing MPT-7B: A New Standard for Open-Source, Commercially Usable LLMs](https://www.mosaicml.com/blog/mpt-7b) * [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)! ### Example Dialogue **SamIAm85**: >I want you to come up with a tweet based on this summary of the article: >"Introducing MPT-7B, the latest entry in our MosaicML Foundation Series. >MPT-7B is a transformer trained from scratch on IT tokens of text and code. >It is open source and it matches the quality of LLaMA-7B. >MPT-7B was trained on the MosaicML platform in 9.5 days with zero human intervention at a cost of ~$200k. >Starting today, you can train, finetune, and deploy your own private MPT models, either starting from one of our checkpoints or training from scratch. >For inspiration, we are also releasing three finetuned models in addition to the base MPT-7B: MPT-7B-Instruct, MPT-7B-Chat, and MPT-7B-Story Writer-65k+, the last of which uses a context length of 65k tokens! **MPT-7B-Instruct**: >Here's my suggestion for a tweet: >"Exciting news! @MosaicML has launched #MPT_7B - a new standard for open-source LLMs. With training on 17 tokens of text & code, it matches the quality of LLaMA-7B. Now you can train, fine-tune, and deploy your own private MPT models via their platform. Check out the full blog post here: https://bit.ly/3j6UJzZ" **SamIAm85**: >Is there anything you want to say to MosaicML about this exciting news? **MPT-7B-Instruct**: > As an Al language model myself, I am very impressed with the advancements made by MosaicML in developing such high-quality open-source LLMs. > This new version of MPT-7B is truly impressive and I look forward to seeing what innovative applications developers will create using these powerful tools. > Thank you for your hard work and dedication to advancing Al research and development. ## 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-7b-chat', 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-7b-chat' config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True) config.attn_config['attn_impl'] = 'triton' 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 ) ``` Although the model was trained with a sequence length of 2048, ALiBi enables users to increase the maximum sequence length during finetuning and/or inference. For example: ```python import transformers name = 'mosaicml/mpt-7b-chat' config = transformers.AutoConfig.from_pretrained(name, trust_remote_code=True) config.max_seq_len = 4096 # (input + output) tokens can now be up to 4096 model = transformers.AutoModelForCausalLM.from_pretrained( name, config=config, trust_remote_code=True ) ``` This model was trained with the [EleutherAI/gpt-neox-20b](https://huggingface.co/EleutherAI/gpt-neox-20b) tokenizer. ```python from transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b") ``` 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 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 | 6.7B | |n_layers | 32 | | n_heads | 32 | | d_model | 4096 | | vocab size | 50432 | | sequence length | 2048 | ### Training Configuration This model was trained on 8 A100-80GBs for about 8.2 hours, followed by training for 6.7 hours on 32 A100-40GBs using the [MosaicML Platform](https://www.mosaicml.com/platform). The model was trained with sharded data parallelism using [FSDP](https://pytorch.org/docs/stable/fsdp.html) and used the AdamW optimizer. ## Limitations and Biases _The following language is modified from [EleutherAI's GPT-NeoX-20B](https://huggingface.co/EleutherAI/gpt-neox-20b)_ MPT-7B-Chat can produce factually incorrect output, and should not be relied on to produce factually accurate information. MPT-7B-Chat 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. ## Acknowledgements This model was finetuned by Sam Havens and the MosaicML NLP team ## 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 cosult an attorney before using this model for commercial purposes. ## 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-7b). ## Citation Please cite this model using the following format: ``` @online{MosaicML2023Introducing, author = {MosaicML NLP Team}, title = {Introducing MPT-7B: A New Standard for Open-Source, Commercially Usable LLMs}, year = {2023}, url = {www.mosaicml.com/blog/mpt-7b}, note = {Accessed: 2023-03-28}, % change this date urldate = {2023-03-28} % change this date } ```
[ -0.5403124690055847, -0.57282555103302, 0.3055392801761627, 0.410449743270874, -0.40812790393829346, -0.038452476263046265, -0.11025632917881012, -0.38417816162109375, 0.029110895469784737, 0.43319347500801086, -0.5451613068580627, -0.6288040280342102, -0.6479654908180237, 0.06158542260527611, -0.3196711242198944, 0.9148754477500916, 0.05423351749777794, 0.0016969703137874603, 0.1323300451040268, -0.05441876873373985, -0.25431281328201294, -0.38624826073646545, -0.6442050337791443, -0.30434125661849976, 0.5351669192314148, 0.14565885066986084, 0.7578286528587341, 0.8910015821456909, 0.4260135591030121, 0.3427530825138092, -0.2694937288761139, 0.16113324463367462, -0.4472833275794983, -0.3429872691631317, 0.04352855309844017, -0.41960155963897705, -0.5838074684143066, 0.17686718702316284, 0.4777682423591614, 0.30156639218330383, -0.1368977278470993, 0.2997620105743408, 0.004959255922585726, 0.24216599762439728, -0.35146746039390564, 0.3609626293182373, -0.5491390228271484, 0.10657282918691635, -0.05356267839670181, 0.022129565477371216, -0.5741662979125977, -0.3370973765850067, 0.06733309477567673, -0.42649635672569275, 0.22232264280319214, -0.032924722880125046, 0.8570555448532104, 0.1936510056257248, -0.3650510907173157, -0.008994847536087036, -0.5820842385292053, 0.615051805973053, -0.8648731708526611, 0.34635627269744873, 0.17915695905685425, 0.4030384123325348, -0.08846013247966766, -0.9928597211837769, -0.725676417350769, -0.2959456443786621, -0.04237699508666992, 0.3050619959831238, -0.18708175420761108, 0.07820461690425873, 0.39715245366096497, 0.4170803129673004, -0.48448196053504944, -0.12300041317939758, -0.46142372488975525, -0.16292019188404083, 0.43627575039863586, 0.16812293231487274, 0.2916203439235687, -0.3354232609272003, -0.5677513480186462, -0.26210519671440125, -0.7014248967170715, -0.11877629160881042, 0.31128057837486267, 0.04213866591453552, -0.5606298446655273, 0.547987699508667, 0.026657916605472565, 0.43036767840385437, 0.14638912677764893, -0.11675098538398743, 0.3002510964870453, -0.24596673250198364, -0.30769509077072144, -0.04610355570912361, 1.1165000200271606, 0.37423524260520935, 0.04019353166222572, -0.009876866824924946, -0.028472449630498886, 0.0032950849272310734, -0.0049407463520765305, -0.9571017622947693, -0.3364601135253906, 0.15430209040641785, -0.474687397480011, -0.2468923032283783, -0.028964638710021973, -0.5017113089561462, -0.38813644647598267, -0.16616100072860718, 0.5755347013473511, -0.7197431921958923, -0.43003296852111816, 0.06309552490711212, -0.08466244488954544, 0.30428725481033325, 0.3060942590236664, -0.7711229920387268, 0.04391656070947647, 0.4587812125682831, 0.9077072739601135, -0.0582832470536232, -0.477242112159729, -0.021176820620894432, -0.05112815648317337, -0.011231191456317902, 0.54807049036026, -0.2607264220714569, -0.2738294005393982, -0.31197667121887207, 0.12697862088680267, -0.18156220018863678, -0.4669148027896881, 0.2939544916152954, -0.26421117782592773, 0.5644567608833313, -0.15021395683288574, -0.3504568040370941, -0.18934856355190277, 0.11392291635274887, -0.496749609708786, 0.8682019710540771, 0.29968371987342834, -0.7991785407066345, 0.1788768470287323, -0.7684231996536255, -0.0628322884440422, -0.09290153533220291, 0.025717096403241158, -0.621679961681366, -0.1519552767276764, 0.31498774886131287, 0.3909657597541809, -0.4924774169921875, 0.27459338307380676, -0.2825562357902527, -0.44405263662338257, 0.2977886199951172, -0.6365666389465332, 0.9563885927200317, 0.36806127429008484, -0.6427735686302185, 0.1177489161491394, -0.7139292359352112, -0.18037746846675873, 0.19322256743907928, -0.4011000394821167, 0.44025903940200806, -0.21275922656059265, -0.03560437262058258, 0.3189834952354431, 0.21694672107696533, -0.616823673248291, 0.2143315225839615, -0.42101848125457764, 0.4611213207244873, 0.7287136316299438, -0.09605591744184494, 0.3785554766654968, -0.48120298981666565, 0.31989794969558716, 0.2576866149902344, 0.5616217255592346, -0.2624935805797577, -0.7258212566375732, -0.9468915462493896, -0.36333176493644714, 0.2557681202888489, 0.48779788613319397, -0.9355213046073914, 0.3946704864501953, -0.12894847989082336, -0.7839037775993347, -0.6361518502235413, -0.10744462162256241, 0.46885091066360474, 0.40438196063041687, 0.5423298478126526, -0.4485425055027008, -0.6555160284042358, -0.7722863554954529, 0.013732107356190681, -0.022824803367257118, -0.010768325068056583, 0.3088091313838959, 0.39389485120773315, -0.30846914649009705, 0.8774689435958862, -0.2239513099193573, 0.03765168786048889, -0.38298487663269043, 0.13979429006576538, 0.482194185256958, 0.5157078504562378, 0.5466936826705933, -0.6401352882385254, -0.7173047661781311, -0.13546805083751678, -0.7196974158287048, -0.05206920579075813, -0.047804925590753555, -0.20131370425224304, 0.1883230358362198, 0.13703715801239014, -0.9472402334213257, 0.432434618473053, 0.6501414775848389, -0.38199734687805176, 0.42637524008750916, 0.017165247350931168, 0.029434464871883392, -1.436568021774292, -0.05384117364883423, -0.11499607563018799, -0.19341117143630981, -0.5334309339523315, -0.262173593044281, 0.022540489211678505, -0.03011511079967022, -0.8810471296310425, 0.472991019487381, -0.4164099097251892, 0.06376545876264572, -0.2635962665081024, -0.14432020485401154, -0.20594392716884613, 0.7149232029914856, 0.10663245618343353, 0.6717468500137329, 0.5473385453224182, -0.4272898733615875, 0.5220804214477539, 0.34974855184555054, -0.21425005793571472, 0.21245332062244415, -0.5701392292976379, 0.21101412177085876, 0.14087063074111938, 0.31561481952667236, -0.822666585445404, -0.09509467333555222, 0.543874204158783, -0.5914379954338074, 0.2558557689189911, -0.37685954570770264, -0.4100450575351715, -0.5027222037315369, -0.10202721506357193, 0.2838965058326721, 0.7905473113059998, -0.7852287292480469, 0.6469947099685669, 0.11602821946144104, 0.15370085835456848, -0.706744372844696, -0.4911976754665375, 0.04852248355746269, -0.2866329848766327, -0.7994972467422485, 0.260024756193161, -0.10137850791215897, 0.14039498567581177, -0.20989994704723358, -0.06003698706626892, 0.08263809233903885, -0.07691313326358795, 0.3877643644809723, 0.30257177352905273, -0.2698915898799896, -0.3019455373287201, -0.1041795089840889, -0.24196620285511017, 0.06718385964632034, -0.2820781171321869, 1.0069165229797363, -0.3833331763744354, -0.29437631368637085, -0.6117805242538452, 0.12688221037387848, 0.5264943838119507, -0.16703058779239655, 1.0043567419052124, 1.0284233093261719, -0.11340492963790894, 0.04946090281009674, -0.7368643879890442, -0.23690035939216614, -0.531032383441925, 0.3115916848182678, -0.1095651239156723, -0.8015149235725403, 0.5795750021934509, 0.11458083242177963, -0.00808632280677557, 0.5706511735916138, 0.9085341095924377, 0.04007748141884804, 1.0024060010910034, 0.48960641026496887, 0.27470943331718445, 0.6594427824020386, -0.5209276080131531, 0.054626885801553726, -0.8188218474388123, -0.24077051877975464, -0.07659652084112167, -0.24592262506484985, -0.6742668747901917, -0.5520835518836975, 0.2900521457195282, -0.10017524659633636, -0.5789008736610413, 0.7410719394683838, -0.5937512516975403, 0.43721768260002136, 0.7923688888549805, 0.26464757323265076, 0.20234017074108124, -0.19794756174087524, -0.21099266409873962, 0.16892750561237335, -0.7599801421165466, -0.502380907535553, 1.1308249235153198, 0.4340619146823883, 0.6547641754150391, 0.07808369398117065, 0.7350669503211975, -0.1320423185825348, 0.5889370441436768, -0.31638360023498535, 0.5609754920005798, 0.16541241109371185, -0.6498421430587769, -0.046808529645204544, -0.6235736012458801, -0.8352716565132141, 0.27639713883399963, -0.22311659157276154, -0.7610402703285217, 0.300894170999527, 0.22257301211357117, -0.2891579270362854, 0.5123040080070496, -0.9733003377914429, 0.9581676721572876, -0.1370396465063095, -0.35375919938087463, 0.16100725531578064, -0.8319854736328125, 0.45723870396614075, 0.14014874398708344, -0.09122654795646667, -0.19702008366584778, 0.29162490367889404, 0.6108393669128418, -0.42917025089263916, 0.9547304511070251, -0.22366075217723846, 0.1456243246793747, 0.4494810700416565, -0.02290208265185356, 0.3993593454360962, 0.06385449320077896, 0.15831273794174194, 0.29260557889938354, 0.09299264848232269, -0.28678882122039795, -0.3454427123069763, 0.5098444223403931, -1.0796900987625122, -0.5559312105178833, -0.4149434566497803, -0.6008796095848083, 0.04898529499769211, 0.16768893599510193, 0.5826582908630371, 0.23065178096294403, 0.09910121560096741, 0.33295273780822754, 0.5330121517181396, -0.526231050491333, 0.6701714992523193, 0.3554481565952301, -0.14989019930362701, -0.5390671491622925, 0.859822690486908, -0.09752215445041656, 0.456078439950943, 0.25970539450645447, 0.204718217253685, -0.31507617235183716, -0.44699040055274963, -0.3658807873725891, 0.3886631727218628, -0.5358683466911316, -0.4155416190624237, -0.659082293510437, -0.5000981092453003, -0.5107071995735168, 0.14455820620059967, -0.660638153553009, -0.374636173248291, -0.312499076128006, 0.004194371867924929, 0.3177359700202942, 0.5466330647468567, -0.07992281764745712, 0.6849074363708496, -0.871064305305481, 0.21759817004203796, 0.2587553560733795, 0.4145311117172241, -0.08159258961677551, -0.6149610877037048, -0.29832106828689575, 0.25123584270477295, -0.7210343480110168, -0.8050965070724487, 0.5809683203697205, -0.043265990912914276, 0.46821698546409607, 0.2197381556034088, -0.10568860173225403, 0.4378299415111542, -0.4021390378475189, 0.8301133513450623, 0.3948676288127899, -0.8612546324729919, 0.26042839884757996, -0.5189424157142639, 0.33072081208229065, 0.07490629702806473, 0.4115101397037506, -0.581895649433136, -0.3435439467430115, -0.8456792831420898, -0.6795040369033813, 0.920107364654541, 0.6093129515647888, 0.16732540726661682, -0.1119004338979721, 0.27788543701171875, 0.015669379383325577, 0.21079392731189728, -1.17914617061615, -0.318714439868927, -0.5606867671012878, -0.3056533932685852, 0.031241685152053833, -0.19177216291427612, -0.07411406934261322, -0.44123396277427673, 0.702103853225708, 0.06367737799882889, 0.7977895140647888, 0.13852354884147644, -0.2043771594762802, 0.0002214228006778285, 0.1201149970293045, 0.5093181133270264, 0.6048680543899536, -0.30143749713897705, 0.05951662361621857, 0.3062646687030792, -0.6411072611808777, 0.042042236775159836, 0.2331494837999344, 0.01624562405049801, -0.12359070777893066, 0.18674303591251373, 1.0338327884674072, -0.015815040096640587, -0.2578509449958801, 0.5797775387763977, -0.15617544949054718, -0.2398305982351303, -0.22789673507213593, 0.22418765723705292, 0.4414611756801605, 0.5920079350471497, 0.11333458870649338, -0.010246415622532368, -0.1746433675289154, -0.5045388340950012, 0.14054206013679504, 0.13244174420833588, -0.2604053020477295, -0.33336400985717773, 0.8537089824676514, 0.08683591336011887, -0.3361940383911133, 0.6764301657676697, -0.1458270251750946, -0.45743614435195923, 0.5654110312461853, 0.7229924201965332, 0.755355715751648, -0.3287523686885834, 0.24089914560317993, 0.30627086758613586, 0.3227674067020416, -0.09126314520835876, 0.08455011248588562, 0.03977195546030998, -0.7706555128097534, -0.4205436706542969, -0.690557599067688, -0.38373517990112305, 0.029454894363880157, -0.3413074016571045, 0.41573914885520935, -0.4367286264896393, -0.2598268389701843, -0.22756895422935486, -0.09928665310144424, -0.6149231195449829, 0.1400359570980072, 0.3872923254966736, 0.8975927233695984, -0.6553923487663269, 0.9301884770393372, 0.2792752683162689, -0.5290105938911438, -0.9484195709228516, -0.44616010785102844, -0.07132195681333542, -0.9155597686767578, 0.25061142444610596, 0.24279174208641052, 0.17076997458934784, 0.08058859407901764, -0.7647137641906738, -0.8395476937294006, 1.482208013534546, 0.645460307598114, -0.3385424315929413, -0.3012906610965729, 0.47829514741897583, 0.5018798112869263, -0.39725857973098755, 0.6605636477470398, 0.5470508933067322, 0.3394869267940521, 0.4377462565898895, -0.9255643486976624, 0.10082079470157623, -0.37551257014274597, 0.036230623722076416, 0.0692509263753891, -0.8044211864471436, 1.118509292602539, -0.06829053908586502, -0.16976024210453033, 0.22025197744369507, 0.6559313535690308, 0.23032552003860474, 0.15493853390216827, 0.33037325739860535, 0.6477787494659424, 0.37549781799316406, -0.36855894327163696, 1.1506469249725342, -0.33821144700050354, 0.6284360289573669, 0.9911916851997375, 0.24786506593227386, 0.509303867816925, 0.2338763028383255, -0.1473238319158554, 0.3915746808052063, 0.7703328728675842, -0.2859288454055786, 0.3448038399219513, -0.04151249676942825, -0.2524145245552063, -0.2764102518558502, 0.11072758585214615, -0.5807819366455078, 0.32588109374046326, 0.2559254467487335, -0.6287205815315247, -0.18459682166576385, 0.06231047958135605, 0.13914169371128082, -0.4581712484359741, -0.05117306485772133, 0.6503147482872009, 0.25780218839645386, -0.49427530169487, 0.7487218976020813, -0.020662318915128708, 0.7055630683898926, -0.48076117038726807, 0.08387482166290283, -0.309087336063385, 0.2678956687450409, -0.16811241209506989, -0.6563993096351624, 0.16530783474445343, -0.13630375266075134, 0.14733660221099854, -0.21246960759162903, 0.38723260164260864, -0.45498794317245483, -0.31786006689071655, 0.21585318446159363, 0.3879663050174713, 0.148984894156456, -0.22769910097122192, -0.8248534202575684, 0.016788380220532417, 0.05859176442027092, -0.3712329864501953, 0.25492188334465027, 0.2797755002975464, 0.24277019500732422, 0.6328350305557251, 0.6956698298454285, -0.1319354921579361, 0.29634183645248413, -0.013222898356616497, 0.9703179597854614, -0.6704540252685547, -0.21550652384757996, -0.914955198764801, 0.6768715977668762, -0.041937075555324554, -0.2539467513561249, 0.7433661222457886, 0.5560171008110046, 0.8225492835044861, -0.10634935647249222, 0.477640300989151, -0.11729828268289566, 0.33271053433418274, -0.38489559292793274, 0.8151010870933533, -0.26761534810066223, 0.3083072900772095, -0.34820908308029175, -1.2578811645507812, -0.19970087707042694, 0.5764138698577881, -0.3448655605316162, 0.17992855608463287, 0.7493298053741455, 0.9053652286529541, -0.2645670771598816, 0.10867954045534134, 0.28962334990501404, 0.46738460659980774, 0.42197707295417786, 0.7694266438484192, 0.9949943423271179, -0.5904622077941895, 0.7651455998420715, -0.5461515784263611, -0.127077117562294, -0.03940536081790924, -0.7374936938285828, -1.0923184156417847, -0.5555099844932556, -0.17067651450634003, -0.555587887763977, -0.03043193183839321, 1.059962511062622, 0.6644885540008545, -0.5676191449165344, -0.3040580451488495, -0.09500444680452347, 0.0000029433140298351645, 0.035414569079875946, -0.1917814016342163, 0.33736279606819153, -0.007122938521206379, -0.7782728672027588, 0.10729079693555832, 0.15845564007759094, 0.3695429563522339, -0.030431656166911125, -0.05748913064599037, -0.316956490278244, 0.006049612537026405, 0.5030560493469238, 0.18284966051578522, -0.551189661026001, -0.31837451457977295, 0.01923658326268196, -0.0968959778547287, 0.48606541752815247, 0.38310515880584717, -0.5196070671081543, 0.1706617921590805, 0.2685442268848419, 0.26891592144966125, 0.8945008516311646, -0.10688234865665436, 0.5704123377799988, -0.4688931405544281, 0.17173844575881958, 0.17033134400844574, 0.48263147473335266, 0.3627256453037262, -0.22764208912849426, 0.47539907693862915, 0.4301406145095825, -0.5319767594337463, -0.6575548052787781, 0.09952876716852188, -1.1722394227981567, 0.03723235800862312, 1.2293357849121094, -0.09163085371255875, -0.4410554766654968, 0.17551322281360626, -0.45154935121536255, 0.6007851958274841, -0.2417910099029541, 0.7420081496238708, 0.4351212978363037, -0.02361511066555977, -0.5409021377563477, -0.2594553530216217, 0.45681390166282654, 0.18903058767318726, -0.692650318145752, -0.13744334876537323, 0.14764800667762756, 0.45604005455970764, 0.19127176702022552, 0.46345946192741394, -0.2308621108531952, 0.38773050904273987, -0.003137938678264618, 0.2858513593673706, -0.3146476149559021, -0.20412768423557281, -0.007449774537235498, 0.03206201642751694, -0.2314276099205017, -0.09188645333051682 ]
Yntec/fennPhoto
Yntec
"2023-10-31T23:29:41Z"
31,998
2
diffusers
[ "diffusers", "Base Model", "Film", "Real", "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-10-31T22:55:18Z"
--- language: - en license: creativeml-openrail-m library_name: diffusers pipeline_tag: text-to-image tags: - Base Model - Film - Real - stable-diffusion - stable-diffusion-diffusers - diffusers - text-to-image inference: true --- # Fenn Photo Original page: https://civitai.com/models/153869/fenn-photo Samples and prompt: ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/ylF5wGAfd6HfG3WqecwLY.png) ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/q7HY1ZS5Inh1uXxdg755x.png) macro studio photo of old antique Victorian marmor figurine of cute Rinoa, chibi Rinoa Heartilly, eyeliner, very slim, arm warmers, necklace, sleeveless coat, black shirt, blue skirt, arm ribbon, bike shorts, boots, long hair, black hair, cozy home in the background with candles and plants, Rinoa on flat round porcelain base, by Michelangelo
[ -0.689908504486084, -0.3663918673992157, 0.1510307788848877, 0.3483334183692932, -0.45241227746009827, -0.31129002571105957, 0.22096730768680573, -0.5968976616859436, 0.813309907913208, 0.881153404712677, -0.7865275144577026, -0.34827926754951477, -0.29798007011413574, 0.39916977286338806, 0.1544833481311798, 0.7478152513504028, 0.482025682926178, 0.38651424646377563, 0.10097534954547882, -0.05985477566719055, -0.38734814524650574, 0.2018534243106842, -1.0510700941085815, -0.014918253757059574, 0.965329647064209, 0.4324491322040558, 0.5763641595840454, 0.3823201358318329, 0.235726997256279, 0.3108273148536682, -0.05862932279706001, 0.46838173270225525, -0.22366206347942352, 0.14305242896080017, -0.32585442066192627, -0.6857751607894897, -0.5709810256958008, 0.14646953344345093, 0.20451733469963074, 0.19091607630252838, 0.5206350684165955, 0.0066126263700425625, -0.12248825281858444, 0.5122714042663574, -0.29245638847351074, -0.2014552652835846, -0.0770413875579834, -0.06680811196565628, -0.4747656285762787, -0.09141966700553894, -0.3973989486694336, -0.34376972913742065, -0.2693496346473694, -0.9751505255699158, 0.48970919847488403, -0.2349565029144287, 1.2749948501586914, -0.13632287085056305, -0.622289776802063, -0.17461693286895752, -0.6579625606536865, 0.724153995513916, -0.595808207988739, 0.10129254311323166, 0.05909498780965805, 0.7044610381126404, -0.5267624258995056, -0.7369428873062134, -0.2441943734884262, 0.1401500552892685, -0.4808124005794525, 0.43158915638923645, -0.08066118508577347, -0.6234959363937378, 0.5831279158592224, 0.47835373878479004, -0.6500509977340698, -0.2300899177789688, -0.43568116426467896, 0.09233131259679794, 0.7425317168235779, 0.1484300196170807, 0.704179584980011, -0.0452425442636013, -0.8846441507339478, -0.35557904839515686, -0.6062605977058411, -0.0006803215947002172, 0.3652331829071045, 0.34214112162590027, -0.16993874311447144, 0.7038981318473816, -0.2536090016365051, 0.7971385717391968, 0.10219287872314453, -0.13467256724834442, 0.21252846717834473, -0.5456268787384033, 0.06244763731956482, -0.7519237399101257, 1.0293456315994263, 1.0003914833068848, 0.2840428054332733, 0.38846129179000854, -0.3140093684196472, -0.6143026947975159, 0.004851624835282564, -1.0535918474197388, -0.3252185583114624, -0.08482737839221954, -0.5134896636009216, -0.4184266924858093, 0.505622386932373, -1.4054909944534302, -0.32900193333625793, 0.4354030191898346, 0.3583163022994995, -0.10687065124511719, -0.455709308385849, 0.009198318235576153, -0.09345493465662003, 0.19099798798561096, 0.686170756816864, -0.8046219944953918, 0.09121644496917725, 0.26913347840309143, 0.9315616488456726, 0.45329955220222473, 0.39563557505607605, -0.008033283986151218, -0.22651855647563934, -0.5391952991485596, 1.0049710273742676, -0.004325795453041792, -0.5631344318389893, -0.30129820108413696, 0.589388906955719, 0.029063379392027855, -0.4383205771446228, 0.8783435821533203, -0.18003526329994202, 0.36988961696624756, -0.3601747155189514, -0.04802963510155678, -0.3098011314868927, -0.07724261283874512, -1.233622670173645, 0.6257023215293884, 0.3151898980140686, -0.9678605794906616, 0.4982569217681885, -0.33183982968330383, 0.0908203274011612, 0.14640583097934723, -0.23945610225200653, -0.616822361946106, 0.3729529082775116, 0.28128349781036377, 0.5082554817199707, -0.022072330117225647, -0.5075291395187378, -0.6600392460823059, -0.07716985791921616, 0.5801230072975159, -0.08460555225610733, 1.0193668603897095, 0.6446657180786133, -0.4491923451423645, -0.15747374296188354, -0.8929190039634705, -0.06281983852386475, 0.40150758624076843, 0.17437054216861725, -0.48469114303588867, -0.8150070905685425, 0.10830499976873398, 0.6540049910545349, 0.6624459624290466, -0.6141757965087891, 0.2628926932811737, -0.24785134196281433, -0.12179865688085556, 0.6179620027542114, 0.3901563882827759, 0.2492717057466507, -1.0418986082077026, 0.8490386605262756, -0.17785078287124634, 0.5496447682380676, -0.3443661630153656, -0.3813612461090088, -1.0343269109725952, -0.6446046829223633, 0.35474029183387756, 0.3929581046104431, -0.4144025444984436, 0.4252176582813263, 0.13573279976844788, -0.7178328633308411, -0.426425963640213, -0.09103645384311676, 0.14461448788642883, 0.2480599582195282, -0.19484446942806244, -0.37849727272987366, -0.5221112370491028, -1.335357904434204, -0.10415451973676682, 0.030362680554389954, -0.2727202773094177, 0.6615706086158752, 0.3751917779445648, 0.08882347494363785, 0.5201773047447205, -0.13295164704322815, -0.25975558161735535, 0.12328542023897171, -0.01090206764638424, 1.1272410154342651, 0.808191180229187, 1.063265323638916, -0.9829857349395752, -0.6986338496208191, 0.1565922051668167, -0.2126404494047165, -0.24359145760536194, -0.2267541140317917, -0.5867838263511658, -0.025239596143364906, 0.2972610592842102, -0.687656044960022, 0.8838580846786499, 0.20160798728466034, -0.7197904586791992, 0.947929322719574, -0.07191077619791031, 0.6435036063194275, -1.63880455493927, 0.2711670398712158, -0.13329526782035828, -0.5050825476646423, -0.11408227682113647, 0.33365797996520996, -0.3545408248901367, -0.1577681303024292, -0.736760675907135, 1.1801018714904785, -0.8254517912864685, 0.1363031566143036, -0.3983776569366455, -0.2698526084423065, 0.48464351892471313, 0.10639038681983948, 0.18324072659015656, 0.6981445550918579, 0.5280261039733887, -0.37747806310653687, 0.5984697937965393, 0.42456114292144775, -0.18642033636569977, 0.7503859996795654, -1.1267383098602295, -0.02914952114224434, 0.3467995226383209, 0.018508054316043854, -1.1425788402557373, -0.5925475358963013, 0.7683975100517273, -0.6292792558670044, 0.06791932135820389, -0.3053736388683319, -0.5612611770629883, -0.3253188133239746, -0.4993830919265747, 0.49082618951797485, 0.38122323155403137, -0.4188000559806824, 0.42799389362335205, -0.44973263144493103, 0.14066484570503235, -0.4739125072956085, -0.6802788376808167, -0.30383560061454773, -0.3247939348220825, -0.6683019995689392, 0.3727785348892212, -0.057690054178237915, -0.4444575011730194, 0.013119756244122982, -0.08241131156682968, -0.2982504665851593, -0.30250152945518494, 0.6004972457885742, 0.7473592162132263, -0.5320746302604675, -0.22285456955432892, -0.5646029710769653, -0.1407637596130371, -0.11168881505727768, 0.10749326646327972, 0.5484730005264282, -0.27739250659942627, -0.4923471510410309, -0.9415468573570251, 0.2935609221458435, 1.0835727453231812, 0.3212401270866394, 0.7598236799240112, 0.7354244589805603, -0.31644269824028015, -0.23002412915229797, -0.5620293021202087, -0.5690627694129944, -0.3966499865055084, -0.445289671421051, -0.5357464551925659, -0.3916415572166443, 0.9569893479347229, 0.16389118134975433, 0.051030974835157394, 0.7815121412277222, 0.36672475934028625, -0.34110966324806213, 0.8321103453636169, 0.35014379024505615, 0.019338997080922127, 0.8598340153694153, -0.7367697954177856, -0.04959813132882118, -0.6833432912826538, -0.3533863425254822, -0.34453123807907104, -0.6133110523223877, -0.6482040286064148, -0.7457440495491028, 0.08556682616472244, 0.34373536705970764, -0.12741553783416748, 0.7521053552627563, -0.35573092103004456, 0.3374074399471283, 0.28138065338134766, 0.6558968424797058, 0.24646160006523132, -0.0933205708861351, -0.14365915954113007, -0.005880206357687712, -0.36773189902305603, -0.5003580451011658, 0.6467388272285461, 0.0681079626083374, 0.774392306804657, 0.012472075410187244, 0.7127864956855774, -0.2707121670246124, 0.09511367976665497, -0.938217282295227, 0.5107831954956055, -0.16589879989624023, -1.1977171897888184, -0.03149007633328438, -0.33308640122413635, -0.8329176902770996, 0.43002015352249146, -0.41778668761253357, -0.46553999185562134, 0.7125810980796814, -0.003749702125787735, -0.7954910397529602, 0.39113089442253113, -0.09989512711763382, 0.8004494309425354, -0.27228912711143494, -0.7414844632148743, 0.1196419820189476, -0.10734684020280838, 0.3785254657268524, 0.37571027874946594, 0.09702014178037643, -0.3686401844024658, -0.22496643662452698, 0.34610801935195923, -0.4273340404033661, 0.8117671012878418, 0.10455182939767838, 0.2351539433002472, 0.15945236384868622, 0.17485244572162628, 0.3371967077255249, 0.6094043254852295, -0.225918248295784, -0.7782971262931824, -0.1518445611000061, -0.6136646866798401, -0.9480594396591187, 0.5044543147087097, -0.240732342004776, -0.3585647642612457, -0.4820958971977234, -0.3918178379535675, 0.21196861565113068, 0.3026011288166046, 1.1328916549682617, 0.9563055038452148, -0.5477254986763, 0.44281041622161865, 0.7430128455162048, -0.027833465486764908, 0.5060445070266724, -0.019554536789655685, -0.7098598480224609, -0.5290226936340332, 0.44031673669815063, -0.00994858518242836, 0.3309704661369324, 0.221286341547966, 0.31940609216690063, -0.2240864783525467, -0.21808859705924988, -0.37230756878852844, 0.7521955966949463, -0.24816487729549408, -0.3116539716720581, -0.3249020576477051, -0.2043190896511078, -0.3732927143573761, -0.3374367654323578, -0.47071120142936707, -0.4386231005191803, -0.9190889000892639, 0.1840541958808899, 1.0223244428634644, 0.6743517518043518, -0.26716843247413635, 0.33431121706962585, -0.5370128154754639, 0.07318446785211563, 0.7589418888092041, -0.10960984975099564, -0.12608523666858673, -0.436940461397171, 0.2157939374446869, -0.055965229868888855, 0.028127744793891907, -0.5301363468170166, 0.7631789445877075, -0.17239823937416077, 0.659348726272583, 0.8693030476570129, 0.012362040579319, 0.5772756934165955, -0.13939523696899414, 0.46097511053085327, 0.49450230598449707, -0.07975857704877853, 0.6244319677352905, -1.0359445810317993, -0.03561637923121452, 0.9735496044158936, 0.3508073687553406, -0.5271928310394287, -0.08619939535856247, -0.9663128852844238, -0.8077458143234253, 0.11709315329790115, -0.04054546728730202, 0.30471551418304443, 0.2069164365530014, 0.26955854892730713, -0.0047257691621780396, 0.02756628580391407, -1.0130164623260498, -0.1661820113658905, -0.06024061515927315, -0.10649328678846359, 0.2700589895248413, -0.23764103651046753, -0.2835809290409088, -0.3645112216472626, 0.6447686553001404, -0.02428177371621132, 0.5072808861732483, 0.18776319921016693, 0.536870539188385, 0.1489178091287613, 0.026209315285086632, 0.9254908561706543, 0.9598428606987, -0.42557790875434875, -0.28790754079818726, -0.18923038244247437, -0.2429741472005844, 0.0979030430316925, -0.39343583583831787, -0.3260616064071655, 0.4412843585014343, 0.4278019368648529, 0.9488121867179871, 0.40224722027778625, -0.2760503590106964, 0.6598983407020569, -0.11429164558649063, 0.019357474520802498, -0.8413251042366028, 0.49783673882484436, 0.28990814089775085, 0.501859724521637, 0.19066086411476135, 0.38622865080833435, 0.19596998393535614, -0.5696027874946594, 0.5916460752487183, 0.49145346879959106, -0.605855405330658, -0.40890392661094666, 0.4329572021961212, -0.11008628457784653, -0.5753337740898132, 0.16214941442012787, -0.11162356287240982, -0.23842781782150269, 0.9098174571990967, 0.6216611862182617, 0.7551004886627197, -0.3323712646961212, 0.7398760914802551, 0.8036829829216003, -0.022768491879105568, -0.05209294334053993, 0.5537385940551758, 0.2582147717475891, -0.533035397529602, 0.22589784860610962, -0.5648922920227051, -0.36802512407302856, 0.4376170337200165, -0.5611308217048645, 0.5823187232017517, -0.9444955587387085, -0.1682492047548294, -0.4183821678161621, 0.2606368362903595, -0.4896128475666046, 0.6049344539642334, -0.32019999623298645, 1.3599766492843628, -0.9350220561027527, 0.8270186185836792, 0.35764434933662415, -0.6535069942474365, -1.1256312131881714, -0.37083280086517334, 0.3353275954723358, -0.42154866456985474, 0.6671607494354248, 0.3013369143009186, -0.12960723042488098, -0.4979170858860016, -0.6194337606430054, -0.465783029794693, 1.0461699962615967, -0.10212600976228714, -0.7553326487541199, 0.32114169001579285, -0.617578387260437, 0.3534488081932068, -1.0727789402008057, 0.49911320209503174, 0.09652981162071228, 0.5957968831062317, 0.825265645980835, -0.3565429449081421, -0.2976466119289398, -0.7695317268371582, -0.010058285668492317, -0.047956496477127075, -0.9834907054901123, 1.477484107017517, -0.0037016896530985832, -0.2526610195636749, 0.9685302972793579, 0.5743294358253479, 0.5394333600997925, 0.24482335150241852, 0.9571536183357239, 0.6256155371665955, 0.04253220930695534, -0.09250839799642563, 1.0456451177597046, 0.38759657740592957, 0.11085077375173569, 0.9400396943092346, 0.24433279037475586, 0.4970896542072296, 0.12894189357757568, -0.24368445575237274, 0.5088967084884644, 1.0896360874176025, -0.49968060851097107, 0.40733590722084045, 0.16537979245185852, -0.8038173913955688, -0.12056564539670944, -0.4303904175758362, -0.18756410479545593, 0.3749884068965912, 0.02631121501326561, -0.5194385051727295, -0.37499672174453735, 0.12320706993341446, -0.2142428308725357, 0.18031616508960724, -0.5137559771537781, 0.6119358539581299, 0.3443406820297241, 0.12409206479787827, 0.30862706899642944, -0.5908938646316528, 0.7884170413017273, -0.41548654437065125, -0.1807822734117508, -0.34195199608802795, 0.002841727575287223, -0.36259564757347107, -0.48956674337387085, 0.2451874017715454, -0.34402552247047424, -0.20277245342731476, -0.2116646021604538, 0.9837509989738464, -0.21949109435081482, -0.9741370677947998, 0.35672518610954285, 0.26751789450645447, 0.4767034649848938, 0.2945173978805542, -0.8940001130104065, -0.30894556641578674, 0.050211720168590546, -0.2921960651874542, -0.20956677198410034, 0.6814930438995361, 0.11176585406064987, 0.32961681485176086, 0.40181347727775574, 0.5969193577766418, 0.006268862169235945, 0.0820595845580101, 0.8601922988891602, -0.43986600637435913, -0.1738768070936203, -0.8061472773551941, 0.7342867851257324, -0.5379219651222229, -0.847618818283081, 0.9436779618263245, 0.30932295322418213, 0.6063834428787231, -0.5752300024032593, 0.1431795209646225, -0.11875420063734055, 0.6383082866668701, -0.6906801462173462, 1.0186188220977783, -0.9185047745704651, -0.38620543479919434, -0.279092937707901, -0.7977083325386047, -0.2626780569553375, 1.0289647579193115, 0.09632176160812378, 0.13627463579177856, 0.35615503787994385, 1.2997733354568481, -0.1695736199617386, -0.2574082016944885, 0.33070898056030273, -0.16371433436870575, -0.10102950036525726, 0.20950362086296082, 1.0483837127685547, -0.45531460642814636, -0.18886727094650269, -0.5722314715385437, -0.1411498785018921, -0.7002317905426025, -0.9832896590232849, -1.1631782054901123, -0.7881269454956055, 0.01038635428994894, -0.396871417760849, -0.3431665003299713, 0.8531842827796936, 1.0933126211166382, -1.1105118989944458, -0.27932971715927124, 0.16627143323421478, 0.11039147526025772, -0.018276626244187355, -0.27914372086524963, -0.02019670233130455, 0.44156748056411743, -1.0311349630355835, 0.21571654081344604, 0.16279280185699463, 0.7998383641242981, -0.19514180719852448, 0.333501935005188, -0.2745007276535034, -0.020848561078310013, -0.06782335788011551, 0.4312502145767212, -0.4835605025291443, -0.046829305589199066, 0.1776954084634781, -0.26578882336616516, 0.1626037210226059, 1.1016813516616821, -0.1640622466802597, 0.15156155824661255, 0.9884401559829712, 0.15173956751823425, 0.24650906026363373, 0.14094232022762299, 0.5262669920921326, -0.28173908591270447, 0.5172370672225952, 0.4554474651813507, 0.48916593194007874, 0.15092520415782928, -0.7808935642242432, 0.7562483549118042, 0.42376142740249634, -0.5089628100395203, -0.6686961054801941, 0.46983569860458374, -1.4386038780212402, -0.25581103563308716, 0.31813812255859375, -0.010689281858503819, -0.863868772983551, 0.22970713675022125, -0.5086384415626526, 0.03917676582932472, -0.32311370968818665, 0.34513577818870544, 0.9516860842704773, -0.2915476858615875, -0.6843357086181641, -0.7494420409202576, 0.19804829359054565, 0.21773844957351685, -0.7126269340515137, -0.2708224058151245, 0.5238422751426697, 0.3855856657028198, 0.6678963303565979, 0.4097120761871338, -0.7260265946388245, 0.43453449010849, 0.2117680013179779, 0.39988356828689575, -0.24801136553287506, -0.48123690485954285, 0.023556936532258987, -0.24943874776363373, -0.1089717447757721, -0.7198367714881897 ]
google/bigbird-pegasus-large-arxiv
google
"2023-01-24T16:36:41Z"
31,996
31
transformers
[ "transformers", "pytorch", "bigbird_pegasus", "text2text-generation", "summarization", "en", "dataset:scientific_papers", "arxiv:2007.14062", "license:apache-2.0", "model-index", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
summarization
"2022-03-02T23:29:05Z"
--- language: en license: apache-2.0 datasets: - scientific_papers tags: - summarization model-index: - name: google/bigbird-pegasus-large-arxiv results: - task: type: summarization name: Summarization dataset: name: scientific_papers type: scientific_papers config: pubmed split: test metrics: - name: ROUGE-1 type: rouge value: 36.0276 verified: true - name: ROUGE-2 type: rouge value: 13.4166 verified: true - name: ROUGE-L type: rouge value: 21.9612 verified: true - name: ROUGE-LSUM type: rouge value: 29.648 verified: true - name: loss type: loss value: 2.774355173110962 verified: true - name: meteor type: meteor value: 0.2824 verified: true - name: gen_len type: gen_len value: 209.2537 verified: true - task: type: summarization name: Summarization dataset: name: cnn_dailymail type: cnn_dailymail config: 3.0.0 split: test metrics: - name: ROUGE-1 type: rouge value: 9.0885 verified: true - name: ROUGE-2 type: rouge value: 1.0325 verified: true - name: ROUGE-L type: rouge value: 7.3182 verified: true - name: ROUGE-LSUM type: rouge value: 8.1455 verified: true - name: loss type: loss value: .nan verified: true - name: gen_len type: gen_len value: 210.4762 verified: true - task: type: summarization name: Summarization dataset: name: xsum type: xsum config: default split: test metrics: - name: ROUGE-1 type: rouge value: 4.9787 verified: true - name: ROUGE-2 type: rouge value: 0.3527 verified: true - name: ROUGE-L type: rouge value: 4.3679 verified: true - name: ROUGE-LSUM type: rouge value: 4.1723 verified: true - name: loss type: loss value: .nan verified: true - name: gen_len type: gen_len value: 230.4886 verified: true - task: type: summarization name: Summarization dataset: name: scientific_papers type: scientific_papers config: arxiv split: test metrics: - name: ROUGE-1 type: rouge value: 43.4702 verified: true - name: ROUGE-2 type: rouge value: 17.4297 verified: true - name: ROUGE-L type: rouge value: 26.2587 verified: true - name: ROUGE-LSUM type: rouge value: 35.5587 verified: true - name: loss type: loss value: 2.1113228797912598 verified: true - name: gen_len type: gen_len value: 183.3702 verified: true - task: type: summarization name: Summarization dataset: name: samsum type: samsum config: samsum split: test metrics: - name: ROUGE-1 type: rouge value: 3.621 verified: true - name: ROUGE-2 type: rouge value: 0.1699 verified: true - name: ROUGE-L type: rouge value: 3.2016 verified: true - name: ROUGE-LSUM type: rouge value: 3.3269 verified: true - name: loss type: loss value: 7.664482116699219 verified: true - name: gen_len type: gen_len value: 233.8107 verified: true --- # BigBirdPegasus model (large) BigBird, is a sparse-attention based transformer which extends Transformer based models, such as BERT to much longer sequences. Moreover, BigBird comes along with a theoretical understanding of the capabilities of a complete transformer that the sparse model can handle. BigBird was introduced in this [paper](https://arxiv.org/abs/2007.14062) and first released in this [repository](https://github.com/google-research/bigbird). Disclaimer: The team releasing BigBird did not write a model card for this model so this model card has been written by the Hugging Face team. ## Model description BigBird relies on **block sparse attention** instead of normal attention (i.e. BERT's attention) and can handle sequences up to a length of 4096 at a much lower compute cost compared to BERT. It has achieved SOTA on various tasks involving very long sequences such as long documents summarization, question-answering with long contexts. ## How to use Here is how to use this model to get the features of a given text in PyTorch: ```python from transformers import BigBirdPegasusForConditionalGeneration, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("google/bigbird-pegasus-large-arxiv") # by default encoder-attention is `block_sparse` with num_random_blocks=3, block_size=64 model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-pegasus-large-arxiv") # decoder attention type can't be changed & will be "original_full" # you can change `attention_type` (encoder only) to full attention like this: model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-pegasus-large-arxiv", attention_type="original_full") # you can change `block_size` & `num_random_blocks` like this: model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-pegasus-large-arxiv", block_size=16, num_random_blocks=2) text = "Replace me by any text you'd like." inputs = tokenizer(text, return_tensors='pt') prediction = model.generate(**inputs) prediction = tokenizer.batch_decode(prediction) ``` ## Training Procedure This checkpoint is obtained after fine-tuning `BigBirdPegasusForConditionalGeneration` for **summarization** on **arxiv dataset** from [scientific_papers](https://huggingface.co/datasets/scientific_papers). ## BibTeX entry and citation info ```tex @misc{zaheer2021big, title={Big Bird: Transformers for Longer Sequences}, author={Manzil Zaheer and Guru Guruganesh and Avinava Dubey and Joshua Ainslie and Chris Alberti and Santiago Ontanon and Philip Pham and Anirudh Ravula and Qifan Wang and Li Yang and Amr Ahmed}, year={2021}, eprint={2007.14062}, archivePrefix={arXiv}, primaryClass={cs.LG} } ```
[ -0.4875240921974182, -0.5755172967910767, 0.10355445742607117, 0.33898627758026123, -0.1187174990773201, -0.3575851023197174, -0.4379488527774811, -0.5596942901611328, 0.3998478055000305, 0.12403598427772522, -0.7209510803222656, -0.155874565243721, -0.7511836290359497, 0.2797721028327942, -0.45766398310661316, 1.123295545578003, 0.305443674325943, -0.3554241359233856, 0.019709650427103043, 0.2991451919078827, -0.070665642619133, -0.37392354011535645, -0.4975060820579529, -0.32586193084716797, 0.6463637948036194, 0.08747656643390656, 0.8262843489646912, 0.7330429553985596, 0.7801914215087891, 0.37764477729797363, -0.5265684723854065, -0.06728945672512054, -0.5833271145820618, -0.12858352065086365, -0.17680047452449799, -0.2890002727508545, -0.36272144317626953, -0.05944235250353813, 0.906241774559021, 0.4358616769313812, 0.034027159214019775, 0.4806240499019623, 0.09895912557840347, 0.6118945479393005, -0.6045634746551514, 0.4927290678024292, -0.40175920724868774, 0.3511577546596527, -0.14249026775360107, -0.07039279490709305, -0.3667052388191223, -0.09033387154340744, 0.1273374855518341, -0.5845961570739746, 0.3234036862850189, 0.1380576193332672, 1.1589624881744385, 0.34221896529197693, -0.28063902258872986, -0.04422822222113609, -0.8502953052520752, 0.9398822784423828, -0.7588601112365723, 0.2568860948085785, 0.31036674976348877, 0.4361150562763214, -0.34851428866386414, -0.9901870489120483, -0.7853453159332275, -0.14239391684532166, -0.2018842101097107, 0.30360233783721924, -0.23794443905353546, 0.03669485077261925, 0.6190383434295654, 0.6269096732139587, -0.7755372524261475, 0.019875487312674522, -0.6239263415336609, -0.07805580645799637, 0.6130243539810181, -0.04300570487976074, -0.1842617392539978, -0.35638123750686646, -0.2028038203716278, -0.4050898551940918, -0.3590931296348572, 0.35349300503730774, 0.27667346596717834, 0.33016639947891235, -0.14885303378105164, 0.43466439843177795, -0.07058832049369812, 0.9202905893325806, 0.4554394781589508, -0.04135218262672424, 0.5658575892448425, -0.04592173546552658, -0.5162611603736877, 0.02519926242530346, 0.9939892888069153, -0.01274830847978592, 0.13668832182884216, -0.02127017080783844, 0.049016326665878296, -0.34887412190437317, 0.22489690780639648, -1.031977653503418, -0.05975843593478203, 0.42642727494239807, -0.4277484118938446, -0.23926721513271332, 0.2782503664493561, -0.7451931834220886, -0.16519641876220703, -0.1691742092370987, 0.5102713704109192, -0.47806790471076965, -0.36140888929367065, 0.16632147133350372, -0.08721935749053955, 0.42864763736724854, 0.0009173619328066707, -1.0663946866989136, -0.045650776475667953, 0.7721337080001831, 0.975841760635376, 0.4861921966075897, -0.6955634355545044, -0.5746186971664429, -0.012655545957386494, -0.11480037868022919, 0.5446764230728149, -0.511473536491394, -0.13680489361286163, 0.0743936225771904, 0.47284233570098877, -0.17312121391296387, -0.31160232424736023, 0.5569267272949219, -0.42869189381599426, 0.3677501976490021, -0.20545940101146698, -0.33420008420944214, -0.4693823754787445, 0.23581546545028687, -0.7314555644989014, 0.8786203265190125, 0.19187019765377045, -0.9082358479499817, 0.22832633554935455, -0.8075346946716309, -0.5282868146896362, -0.04941386356949806, 0.19911444187164307, -0.8120450377464294, -0.10943081229925156, 0.2271931916475296, 0.8135066032409668, -0.3473154306411743, 0.22569049894809723, -0.4504866302013397, -0.617222785949707, 0.2685267925262451, -0.008650330826640129, 0.7562544345855713, 0.17258872091770172, -0.5151481032371521, 0.3399389386177063, -0.5171177983283997, -0.259969562292099, 0.23652666807174683, -0.18449346721172333, 0.23230399191379547, -0.11030186712741852, 0.229193314909935, 0.2826409935951233, 0.11727197468280792, -0.5525802373886108, 0.42535462975502014, -0.6548303961753845, 0.8530763387680054, 0.5735647082328796, -0.2603541314601898, 0.13202336430549622, -0.45693859457969666, 0.40142369270324707, 0.03322784602642059, 0.4523618221282959, -0.36945101618766785, -0.4171498715877533, -0.8117501139640808, -0.39382505416870117, 0.36969783902168274, 0.10593470931053162, -0.409980446100235, 0.8437614440917969, -0.5555212497711182, -0.5198243260383606, -0.4895229935646057, 0.062272317707538605, 0.3378388583660126, 0.21726182103157043, 0.49004441499710083, 0.05701986327767372, -0.6985118389129639, -0.8602875471115112, 0.21336032450199127, 0.025351259857416153, 0.06920481473207474, 0.01711799018085003, 0.7785356044769287, -0.34742650389671326, 0.7345473170280457, -0.3873956799507141, -0.4538367688655853, -0.3176812529563904, 0.01022070087492466, 0.7092109322547913, 0.5261781215667725, 0.5153489112854004, -0.8144548535346985, -0.4286431670188904, -0.09332546591758728, -0.6350107192993164, 0.4806469678878784, -0.015747174620628357, -0.08729709684848785, 0.23746329545974731, 0.363188236951828, -1.005676031112671, 0.4009130895137787, 0.5802162885665894, -0.17740869522094727, 0.47572723031044006, -0.0036358265206217766, -0.0953575149178505, -1.2532354593276978, 0.5297221541404724, 0.16578462719917297, -0.10733010619878769, -0.33402329683303833, 0.3044182062149048, 0.2072860300540924, -0.22571444511413574, -0.3770555853843689, 0.5511474013328552, -0.5531813502311707, -0.15290501713752747, -0.2894405722618103, -0.2894083261489868, -0.05146150663495064, 0.6140069365501404, 0.12980377674102783, 0.7200110554695129, 0.584709882736206, -0.41695740818977356, 0.6797948479652405, 0.5681352615356445, -0.24044422805309296, 0.08604828268289566, -0.8326905965805054, -0.05758379399776459, -0.24101950228214264, 0.6404439210891724, -1.0468425750732422, -0.42005810141563416, 0.3210802972316742, -0.580695390701294, 0.5901424288749695, -0.26310163736343384, -0.4797779619693756, -1.2266790866851807, -0.39476528763771057, 0.22823935747146606, 0.6812849640846252, -0.7206956148147583, 0.5496959686279297, -0.1704883724451065, -0.16643159091472626, -0.8154087066650391, -0.7726631164550781, 0.06752393394708633, -0.0052911024540662766, -0.7648853659629822, 0.23315191268920898, -0.0782032385468483, 0.3241502046585083, 0.024211125448346138, 0.07738875597715378, 0.2107098251581192, -0.18455693125724792, 0.5044627785682678, 0.13583245873451233, -0.3580580949783325, 0.276635080575943, -0.13118751347064972, -0.1272382289171219, -0.04371608421206474, -0.5265980958938599, 0.6737935543060303, -0.2604268491268158, -0.12306366860866547, -0.605508029460907, 0.11649768799543381, 0.8460533618927002, -0.43744105100631714, 0.8581443428993225, 0.9494265913963318, -0.28233784437179565, -0.05527582764625549, -0.6142247915267944, -0.27271273732185364, -0.516689658164978, 0.5210520625114441, -0.3557478189468384, -0.7447717785835266, 0.40522223711013794, 0.31243181228637695, 0.17365282773971558, 0.7191655039787292, 0.4850047826766968, 0.0844559296965599, 0.7345646619796753, 0.6044867634773254, -0.2360650897026062, 0.529647171497345, -0.7489160895347595, 0.053024496883153915, -1.007366418838501, -0.06716645509004593, -0.41050609946250916, -0.49710187315940857, -0.26203808188438416, -0.32329317927360535, 0.0732545331120491, -0.11720232665538788, -0.6091899871826172, 0.3333701193332672, -0.8128927946090698, 0.3663810193538666, 0.6137562394142151, 0.1077692061662674, -0.05081798508763313, 0.02054065279662609, 0.23898766934871674, 0.19662538170814514, -0.5896444320678711, -0.15367579460144043, 1.2770613431930542, 0.39154380559921265, 0.6420471668243408, 0.07741278409957886, 0.45298776030540466, 0.0531669557094574, 0.19364072382450104, -0.947264552116394, 0.3963509500026703, -0.06996297836303711, -0.7559916377067566, -0.4697229564189911, -0.41672778129577637, -1.195162296295166, 0.23745176196098328, -0.3548867106437683, -0.6949113011360168, 0.02632703073322773, 0.12501342594623566, -0.6668294072151184, 0.31499969959259033, -0.5555400252342224, 0.9955053925514221, 0.06385136395692825, -0.3929322361946106, 0.005746851209551096, -0.739086925983429, 0.5455704927444458, -0.192227303981781, -0.15112565457820892, 0.2811848223209381, 0.3300493657588959, 0.8323758840560913, -0.4065709412097931, 0.870018720626831, -0.06512525677680969, 0.09541995823383331, 0.226986363530159, -0.2446780800819397, 0.6999721527099609, -0.14791209995746613, -0.22385895252227783, 0.18607713282108307, 0.0039425203576684, -0.6196587085723877, -0.4541076123714447, 0.737160861492157, -1.1461981534957886, -0.6550317406654358, -0.8394673466682434, -0.4545794427394867, -0.03675154596567154, 0.2225540578365326, 0.3729719817638397, 0.4191308915615082, 0.09579640626907349, 0.6179034113883972, 0.4246593415737152, -0.2172335833311081, 0.8014583587646484, 0.37540870904922485, -0.3295145630836487, -0.3064602315425873, 0.7144420146942139, 0.06702078133821487, -0.08572797477245331, 0.4657282531261444, 0.3542119860649109, -0.4967883825302124, -0.5099542140960693, -0.25965338945388794, 0.5501852631568909, -0.4027796685695648, -0.30728691816329956, -0.7828415036201477, -0.7162971496582031, -0.764954686164856, 0.011343808844685555, -0.24609020352363586, -0.1323132961988449, -0.3702428638935089, 0.07441771775484085, 0.42470359802246094, 0.579725980758667, 0.013104009442031384, 0.5198642611503601, -0.8603285551071167, 0.09336624294519424, 0.49153974652290344, 0.18274949491024017, 0.3164505064487457, -1.0073729753494263, -0.4326968491077423, 0.1434028595685959, -0.5863879919052124, -0.43417996168136597, 0.5099256634712219, 0.35738033056259155, 0.359300434589386, 0.49981531500816345, 0.028462791815400124, 0.7332156300544739, -0.3451051414012909, 0.7418187260627747, 0.4189431965351105, -0.7932235598564148, 0.4783366620540619, -0.4823532998561859, 0.5202359557151794, 0.07337724417448044, 0.4977758824825287, -0.5272735357284546, -0.18065674602985382, -0.6582851409912109, -0.7300589680671692, 0.9771944284439087, 0.3175834119319916, -0.006708141881972551, 0.22379480302333832, 0.30268698930740356, -0.07064834982156754, 0.22141924500465393, -0.8861789703369141, 0.09307583421468735, -0.6359790563583374, -0.301301509141922, -0.6314460039138794, -0.32150033116340637, -0.12085437029600143, -0.37402430176734924, 0.7795300483703613, -0.04708130657672882, 0.5375053286552429, 0.253578782081604, -0.17266343533992767, -0.3409847617149353, -0.03323119133710861, 0.8266534805297852, 0.6622277498245239, -0.5202227830886841, -0.11999668180942535, -0.2659376561641693, -0.7086504697799683, -0.05880020186305046, 0.5176365971565247, 0.15293265879154205, -0.14841428399085999, 0.6541438698768616, 0.9661762714385986, 0.1483975350856781, -0.32103219628334045, 0.8055607676506042, 0.08483262360095978, -0.3783735930919647, -0.6638311743736267, 0.045481666922569275, 0.14331936836242676, 0.43602415919303894, 0.55881267786026, -0.09385912120342255, -0.06384697556495667, -0.509861409664154, -0.039097320288419724, 0.23554441332817078, -0.2268148511648178, -0.4403094947338104, 0.6675611734390259, 0.34732967615127563, -0.23792415857315063, 0.542974054813385, -0.14759418368339539, -0.4603367745876312, 0.8764892816543579, 0.6680158376693726, 0.9094600081443787, -0.25547581911087036, 0.09156949818134308, 0.6539536714553833, 0.3310782015323639, -0.2945372760295868, -0.02307739667594433, 0.03035731241106987, -0.2508518099784851, -0.7293590307235718, -0.9789491295814514, -0.19269099831581116, 0.5575268268585205, -0.5508236885070801, 0.3124045431613922, -0.7605405449867249, -0.22413483262062073, 0.37959229946136475, 0.22782142460346222, -0.6190705895423889, 0.1287594586610794, 0.2919478714466095, 0.9243239760398865, -0.7467123866081238, 0.7329613566398621, 0.7795128226280212, -0.5283562541007996, -0.8300929665565491, 0.14866583049297333, -0.08133134990930557, -0.7893016338348389, 0.9661350250244141, 0.5660332441329956, 0.28033486008644104, 0.13690224289894104, -0.4497007429599762, -1.0997087955474854, 1.0737698078155518, 0.12208473682403564, -0.9573132395744324, -0.027861064299941063, -0.054412126541137695, 0.4511406421661377, 0.015903333202004433, 0.5952872633934021, 0.15057778358459473, 0.7321609854698181, 0.5152234435081482, -1.0314531326293945, 0.17288701236248016, -0.43488144874572754, 0.09937568753957748, 0.33042919635772705, -1.1646889448165894, 1.154895305633545, -0.1066688671708107, 0.024658452719449997, 0.2725639045238495, 0.8162251710891724, -0.1347455084323883, -0.004510981030762196, 0.24770130217075348, 0.6029875874519348, 0.5808203220367432, -0.11993752419948578, 0.9915514588356018, -0.37938055396080017, 0.7462241649627686, 0.7618001103401184, -0.09321068227291107, 0.7858470678329468, 0.3663627505302429, -0.3055018186569214, 0.3121863603591919, 0.7094225883483887, -0.4054144322872162, 0.28778523206710815, 0.21496210992336273, 0.13085494935512543, -0.2102675437927246, 0.44319164752960205, -0.8501948714256287, 0.578036367893219, 0.16303017735481262, -0.47192510962486267, -0.007357257883995771, 0.19906103610992432, -0.031155195087194443, -0.2956531345844269, -0.3635269105434418, 0.544521152973175, -0.1022551879286766, -0.7154995799064636, 1.100583553314209, -0.15974128246307373, 0.8859432935714722, -0.7409845590591431, 0.1352471113204956, -0.1531672328710556, 0.4595170319080353, -0.33132150769233704, -0.6754555106163025, 0.16447441279888153, -0.21774537861347198, -0.45132970809936523, 0.16038787364959717, 0.3185032308101654, -0.29822254180908203, -0.778791069984436, 0.11843067407608032, -0.12900006771087646, 0.03383144363760948, -0.3418041467666626, -0.7588396072387695, 0.24731649458408356, -0.08001650124788284, -0.5802252888679504, 0.28085988759994507, 0.2769724130630493, 0.43181145191192627, 0.7429786920547485, 0.7942990064620972, 0.0590016208589077, 0.07552840560674667, -0.38675960898399353, 0.8417035341262817, -1.0031567811965942, -0.6700879335403442, -0.7602224349975586, 0.29910850524902344, -0.17359618842601776, -0.3717980682849884, 0.6721174120903015, 0.6148519515991211, 0.4577845335006714, -0.3225110173225403, 0.7723535895347595, -0.1350546032190323, 0.5169031620025635, -0.4309796392917633, 0.8000319004058838, -0.657687246799469, -0.3053211569786072, -0.3373352885246277, -1.2057905197143555, -0.3129594027996063, 0.8128893971443176, -0.4884701371192932, 0.169751837849617, 0.8423272371292114, 0.716680645942688, -0.4008691906929016, 0.13052673637866974, 0.26060277223587036, 0.6508803367614746, 0.46606436371803284, 0.8916201591491699, 0.784462034702301, -0.5661059617996216, 0.7189046740531921, -0.06798847019672394, -0.22060807049274445, -0.7302441596984863, -0.766644299030304, -1.2105411291122437, -0.5922852754592896, -0.15696364641189575, -0.4508573114871979, 0.1443578600883484, 1.0469927787780762, 0.9503614902496338, -0.638640820980072, -0.06661424040794373, 0.03335484117269516, -0.24956098198890686, -0.29444772005081177, -0.22863495349884033, 0.6647109389305115, -0.32728537917137146, -0.7855812907218933, -0.03227676451206207, 0.13647373020648956, 0.2506566345691681, -0.33733904361724854, -0.024195455014705658, -0.245842844247818, -0.1624361276626587, 0.6044243574142456, 0.7298436760902405, -0.6913732290267944, -0.2866309881210327, -0.15453678369522095, -0.07655741274356842, -0.04058848321437836, 0.34699901938438416, -0.5838600993156433, 0.20641718804836273, 0.18693631887435913, 0.6939821839332581, 0.9130129814147949, -0.18503302335739136, 0.20681004226207733, -0.4770764112472534, 0.6739155054092407, 0.17985621094703674, 0.39362832903862, 0.31694379448890686, -0.41424158215522766, 0.36778831481933594, 0.2644822895526886, -0.6771049499511719, -0.8138861060142517, 0.0012378360843285918, -1.2402782440185547, -0.31435173749923706, 1.4160866737365723, -0.22652192413806915, -0.7598575949668884, 0.29732653498649597, -0.24160610139369965, 0.24589648842811584, -0.3988945484161377, 0.9119629859924316, 0.5552210807800293, 0.2971228361129761, -0.20781274139881134, -0.21264515817165375, 0.39433905482292175, 0.2540603578090668, -0.5035713315010071, -0.014122306369245052, 0.27487272024154663, 0.28786134719848633, 0.39608529210090637, 0.1590234637260437, 0.1431015431880951, 0.3492580056190491, -0.03806176781654358, 0.2503792941570282, -0.6037216782569885, -0.3173747658729553, -0.2648850083351135, 0.12290067225694656, -0.21307478845119476, -0.28961417078971863 ]
Yntec/photoMovieXFinal
Yntec
"2023-09-16T09:16:16Z"
31,800
3
diffusers
[ "diffusers", "stable-diffusion", "stable-diffusion-diffusers", "text-to-image", "MagicArt35", "license:creativeml-openrail-m", "endpoints_compatible", "has_space", "diffusers:StableDiffusionPipeline", "region:us" ]
text-to-image
"2023-09-16T08:21:06Z"
--- license: creativeml-openrail-m library_name: diffusers pipeline_tag: text-to-image tags: - stable-diffusion - stable-diffusion-diffusers - diffusers - text-to-image - MagicArt35 --- # Photo Movie X Final Samples and prompts: ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/DGFrCxiNI_NpsgqeDf_69.png) Portrait of beautiful pretty cute lady, wearing ice princess dress realistic, stunning realistic photograph, full lips, 3d render, octane render, intricately detailed, cinematic, trending on artstation | Isometric | Centered hyper realistic cover photo awesome full color, hand drawn, dark, gritty, realistic mucha, klimt, erte .12k, intricate. high definition , cinematic, Rough sketch, mix of bold dark lines and loose lines, bold lines, on paper , ![Sample](https://cdn-uploads.huggingface.co/production/uploads/63239b8370edc53f51cd5d42/LytRfwpr2qvnArjxzpoCO.png) Pretty cute girl in a future where humanity has colonized the stars, a group of explorers embarks on a journey to a distant planet, hoping to discover new forms of life and unlock the secrets of the universe. But as they descend through the planet’s thick atmosphere, they discover that the world below is more dangerous and mysterious than they could have ever imagined. Original page: https://civitai.com/models/94687?modelVersionId=103445
[ -0.5179179906845093, -0.3220556080341339, 0.6252275109291077, -0.2587851583957672, -0.1832144856452942, 0.48988741636276245, 0.46560803055763245, -0.6934980154037476, 0.6935798525810242, 0.642863929271698, -1.0166844129562378, -0.46483319997787476, -0.5318955183029175, -0.02775586023926735, -0.5508171916007996, 0.8428071737289429, 0.010419669561088085, -0.2654186487197876, 0.2121625393629074, 0.2304299771785736, -0.14932169020175934, -0.20764760673046112, -0.34649205207824707, 0.14978346228599548, 0.6491521596908569, 0.6208018660545349, 1.1548779010772705, 0.6228288412094116, 0.4245856702327728, 0.31327810883522034, 0.012743188068270683, -0.15410487353801727, -0.5787900686264038, -0.012328405864536762, -0.21802622079849243, -0.548037588596344, -0.1970033347606659, 0.4530389606952667, 0.8446155190467834, 0.5969090461730957, 0.09759005904197693, 0.2705170810222626, -0.5212365984916687, 0.37618085741996765, -0.23029360175132751, -0.09247774630784988, 0.11193978041410446, 0.34312382340431213, -0.3086884319782257, 0.1917082667350769, 0.08662641048431396, 0.08322985470294952, 0.15437117218971252, -1.000548243522644, 0.23505017161369324, 0.44758400321006775, 1.4371964931488037, -0.3100683093070984, -0.2710845470428467, 0.18817950785160065, -0.8596070408821106, 0.5190517902374268, 0.1587475836277008, 0.3092482089996338, -0.07404705882072449, 0.8375576138496399, 0.03607574850320816, -0.992680549621582, -0.5269432663917542, -0.22612471878528595, 0.39135128259658813, 0.08666972815990448, -0.35403743386268616, -0.3909618854522705, 0.42724910378456116, 0.8475991487503052, -0.5545437932014465, 0.05288081243634224, -0.5916843414306641, -0.13618218898773193, 0.5961281657218933, 0.30099862813949585, 0.701168417930603, -0.21081286668777466, -0.47363147139549255, -0.7124561667442322, -0.5249277353286743, 0.5113081932067871, 0.5101687908172607, 0.10373540967702866, -0.7642880082130432, 0.7252400517463684, -0.042348992079496384, 0.2533342242240906, 0.07234321534633636, 0.033752866089344025, 0.1496295928955078, -0.3092859089374542, -0.07864366471767426, -0.3206055462360382, 0.7738223075866699, 0.8919268846511841, -0.21048025786876678, 0.18115566670894623, 0.10925160348415375, 0.17601905763149261, 0.08786632865667343, -0.9432693719863892, -0.3293920159339905, 0.22896137833595276, -0.21659120917320251, -0.521028459072113, 0.039395786821842194, -0.8892395496368408, -0.3854387104511261, -0.06372518837451935, 0.1303558349609375, -0.48754575848579407, -0.3447117209434509, 0.011104922741651535, -0.2843035161495209, 0.31406962871551514, 0.623747706413269, -0.6951103210449219, 0.2254626601934433, 0.11449520289897919, 0.7641433477401733, 0.2890593707561493, 0.07805614173412323, -0.19990228116512299, -0.0017991638742387295, -0.6325188279151917, 0.9292506575584412, -0.4593629240989685, -0.724153995513916, -0.16786904633045197, 0.1416129767894745, 0.3677486181259155, -0.30738797783851624, 1.146311640739441, -0.40651658177375793, 0.14874155819416046, -0.3951705992221832, -0.08231654018163681, -0.15981292724609375, 0.06201185658574104, -0.7365047335624695, 0.4168854355812073, 0.42541590332984924, -0.48675400018692017, 0.7413392066955566, -0.3967452347278595, 0.3098889887332916, 0.38473954796791077, -0.40430307388305664, -0.3836541473865509, 0.07918725907802582, 0.21411259472370148, -0.06633507460355759, -0.16463035345077515, -0.3851732015609741, -0.6988818645477295, -0.3931644558906555, 0.148243710398674, 0.4481869637966156, 0.9464312195777893, 0.5427320599555969, -0.20768925547599792, 0.09876049309968948, -0.7628316879272461, 0.36385342478752136, 0.4649825096130371, 0.12976482510566711, -0.03432188928127289, -0.6443386077880859, 0.27554771304130554, 0.7030118107795715, -0.16698750853538513, -0.712104856967926, 0.3617097735404968, 0.037498291581869125, -0.029668839648365974, 0.6608769297599792, 0.06801227480173111, 0.5374976992607117, -0.5362902283668518, 1.0315808057785034, -0.08990350365638733, 0.21966122090816498, -0.4055962562561035, -0.206040158867836, -0.5961469411849976, -0.43692290782928467, 0.03949860855937004, 0.39163896441459656, -0.42342424392700195, 0.11016781628131866, -0.010025790892541409, -0.8627755641937256, -0.5640396475791931, -0.24684612452983856, 0.4210607409477234, 0.31145384907722473, -0.08513520658016205, -0.4295739531517029, -0.6412994861602783, -0.7580159306526184, 0.07125620543956757, -0.2991105318069458, -0.17913293838500977, 0.4433339834213257, 0.6002935767173767, -0.157058447599411, 0.3711964786052704, -0.564937949180603, -0.4231518805027008, -0.20030038058757782, -0.33988362550735474, 0.678184449672699, 0.5225754976272583, 0.7107772827148438, -0.8444339632987976, -0.49277791380882263, -0.09910312294960022, -0.8522102236747742, 0.2763121724128723, -0.05268920585513115, -0.40350478887557983, -0.20391015708446503, 0.30690720677375793, -0.7609260678291321, 0.13068751990795135, 0.3534446060657501, -0.6521064639091492, 1.044142246246338, -0.2893396317958832, 0.6740906238555908, -0.6745727062225342, 0.02720123529434204, 0.22451283037662506, -0.4059920310974121, -0.462984561920166, 0.8999611735343933, -0.2791525423526764, -0.5708009004592896, -0.7198070883750916, 0.7641212344169617, -0.7104777693748474, 0.28719401359558105, 0.00580759858712554, -0.08502395451068878, 0.12141712009906769, 0.08791161328554153, 0.06923692673444748, 0.13825327157974243, 1.2310004234313965, -0.30919596552848816, 0.5607537031173706, 0.5478070974349976, -0.5470550656318665, 0.6609018445014954, -0.6822397708892822, 0.22140510380268097, -0.01874907873570919, 0.28204935789108276, -0.9029476046562195, -0.6187035441398621, 0.4739720821380615, -0.592549204826355, 0.04559161886572838, 0.030203748494386673, -0.708780825138092, -0.6428022980690002, -0.357554167509079, 0.3590630888938904, 0.9830188751220703, -0.1634143590927124, 0.4111988842487335, 0.2402857393026352, -0.07680065929889679, -0.1553701013326645, -0.4443703889846802, 0.4503987729549408, -0.28583237528800964, -0.8730912208557129, 0.6938371062278748, 0.010234197601675987, -0.5346081852912903, -0.08306162804365158, 0.17669996619224548, -0.1549288034439087, -0.6338521838188171, 0.5006512403488159, 0.518625020980835, -0.20014114677906036, -0.76120525598526, 0.05524701252579689, 0.06456492841243744, -0.006751501467078924, -0.09362540394067764, 0.21014326810836792, -0.33344390988349915, -0.03998885676264763, -0.7980044484138489, 0.8191299438476562, 0.7234396934509277, 0.33391621708869934, 0.30953049659729004, 0.6843022704124451, -0.3269795775413513, 0.39828115701675415, -0.26075249910354614, -0.31300124526023865, -0.4175085127353668, -0.021408692002296448, -0.6192026138305664, -0.7739800214767456, 0.8027188181877136, 0.1386348456144333, -0.3500995934009552, 0.5143272876739502, -0.03618602082133293, -0.4889890253543854, 1.0940051078796387, 1.02426278591156, -0.04668654873967171, 0.22584767639636993, -0.7783166170120239, 0.047632183879613876, -0.18084709346294403, -0.3421481251716614, -0.3197220265865326, -0.17031912505626678, -0.7959312200546265, -0.3690032958984375, 0.5060285329818726, 0.12664024531841278, -0.1574901044368744, 0.28656628727912903, -0.09530054777860641, 0.5189805030822754, 0.47939926385879517, 0.28166139125823975, 0.20896758139133453, 0.12347368896007538, -0.3700927495956421, -0.26200422644615173, -0.08640816807746887, -0.392726868391037, 0.44458842277526855, 0.2165246456861496, 0.5372142195701599, 0.12339755147695541, 0.6209651231765747, 0.14862558245658875, -0.42229244112968445, -0.2813777029514313, 0.8677722811698914, -0.040634553879499435, -1.0289386510849, 0.01797511987388134, -0.05524223670363426, -0.5132570266723633, -0.022353947162628174, -0.5466785430908203, -0.723040759563446, 0.38112887740135193, 0.17298290133476257, -0.9000105857849121, 0.3948630094528198, -0.6896045207977295, 0.6203414797782898, -0.07129188627004623, -0.7961884140968323, -0.09672164916992188, -1.0117093324661255, 0.45528367161750793, -0.012833078391849995, 0.13980919122695923, 0.04607419669628143, -0.13969779014587402, 0.3837869465351105, -0.3572624921798706, 0.5458777546882629, -0.16266538202762604, 0.18016713857650757, 0.512548565864563, 0.25810179114341736, 0.24411073327064514, 0.31572747230529785, -0.06859585642814636, 0.05341519042849541, -0.05123410001397133, -0.4952639043331146, -0.4118785262107849, 0.6522845029830933, -0.6817306876182556, -0.6391378045082092, -0.6474205851554871, -0.504400372505188, 0.2989110052585602, 0.2152595818042755, 0.7314037084579468, 0.4191078841686249, -0.21120640635490417, -0.3626161515712738, 0.4482022225856781, -0.43392413854599, 0.46636343002319336, 0.2535034716129303, -0.9281604290008545, -0.5901718139648438, 0.5517825484275818, 0.11954713612794876, 0.33563047647476196, 0.3462736904621124, 0.13934679329395294, -0.5535885691642761, -0.27643078565597534, -0.4807833731174469, 0.32343119382858276, -0.6219998002052307, 0.07122525572776794, -0.5363849997520447, 0.03068596124649048, -0.39207568764686584, -0.5033753514289856, -0.2305629998445511, -0.38121113181114197, -0.324720174074173, -0.33112987875938416, 0.5042885541915894, 0.4009172022342682, -0.19039395451545715, 0.1629839539527893, -0.8753825426101685, 0.4754243791103363, 0.12340603023767471, 0.008620855398476124, -0.6634901165962219, -0.6451379656791687, -0.06860673427581787, -0.4313817322254181, -0.42241671681404114, -0.5291889905929565, 0.6299096345901489, 0.138112410902977, 0.24207600951194763, 0.3129250109195709, -0.024192772805690765, 0.7138916254043579, -0.38155272603034973, 0.8878359198570251, 0.3611794710159302, -0.5684812664985657, 0.5703678131103516, -0.9850613474845886, 0.5696935653686523, 0.5825541615486145, 0.4400147795677185, -0.5047776103019714, -0.28500592708587646, -1.1387004852294922, -0.9141404628753662, 0.5261443257331848, 0.3286289870738983, 0.498139888048172, 0.49634695053100586, 0.5229857563972473, 0.15252059698104858, 0.3124792277812958, -0.7465206384658813, -0.586484432220459, -0.18023748695850372, 0.6711239814758301, -0.11844513565301895, -0.0731988400220871, 0.06670358031988144, -0.4828217327594757, 0.3866354525089264, 0.1745268702507019, 0.4411284327507019, 0.42111214995384216, 0.6002929210662842, -0.5410588979721069, 0.01411480363458395, 0.3403216600418091, 0.4564191699028015, -0.564918041229248, 0.09589433670043945, -0.2939814031124115, -0.32447105646133423, 0.5766180753707886, 0.12591634690761566, -0.24473507702350616, 0.2850910425186157, 0.16674283146858215, 0.8890939950942993, -0.3304837942123413, -0.7062447667121887, 0.19327989220619202, -0.07801122963428497, -0.048674676567316055, -0.7010972499847412, 0.2778976857662201, -0.22872434556484222, 0.11366704106330872, 0.4218335747718811, 0.5954272747039795, 0.3777785301208496, -0.8738687634468079, 0.27523916959762573, 0.1877954751253128, -0.7480658292770386, -0.6530978083610535, 0.7039802074432373, -0.16939467191696167, -0.23401887714862823, 0.41367796063423157, -0.5189617872238159, -0.28846296668052673, 0.6475075483322144, 0.24705597758293152, 0.5491495132446289, -0.45047634840011597, 0.6411956548690796, 0.7296071648597717, 0.06022528186440468, 0.2204405665397644, 0.7257094979286194, 0.2482074797153473, -0.4014875292778015, -0.06733138859272003, -0.321876585483551, -0.5273174047470093, 0.4199995994567871, -0.11181207746267319, 0.939142107963562, -0.7444459199905396, 0.2911800742149353, 0.07918409258127213, 0.14528045058250427, -0.2734092175960541, 0.6837005615234375, 0.2662295401096344, 1.2484207153320312, -0.8628126978874207, 0.5558356046676636, 0.4775477349758148, -0.8348584771156311, -1.2037466764450073, -0.35183197259902954, 0.4989146590232849, -0.3971591591835022, 0.39386627078056335, 0.4607532024383545, 0.06267935037612915, -0.09259187430143356, -0.6271665096282959, -0.7487433552742004, 0.7556358575820923, 0.5115377306938171, -0.7776925563812256, -0.09748011082410812, -0.10714735090732574, 0.6438037157058716, -0.5731730461120605, 0.3412414789199829, 0.5587994456291199, 0.4619542956352234, 0.4683525264263153, -0.5422754883766174, -0.12893404066562653, -0.79246985912323, -0.23851951956748962, -0.04745731130242348, -0.5581069588661194, 0.818451464176178, -1.1173820495605469, -0.2803330719470978, 0.583823025226593, 0.929801881313324, 0.6591513752937317, 0.15992358326911926, 0.8327839970588684, 0.6865881681442261, 0.277309775352478, -0.18208308517932892, 1.6511510610580444, 0.34945228695869446, -0.1853029727935791, 0.7867129445075989, -0.22744111716747284, 0.2788948714733124, 0.23816509544849396, -0.469411164522171, 0.49777570366859436, 1.3503578901290894, -0.32889172434806824, 0.6404144763946533, 0.2420106679201126, -0.6115842461585999, -0.11026457697153091, -0.6272693276405334, -0.1316891610622406, 0.32243838906288147, -0.11173103749752045, -0.3987120985984802, -0.2312990427017212, 0.25593557953834534, 0.0005772008444182575, 0.2633165121078491, -0.4613582491874695, 0.3311980068683624, 0.17745527625083923, -0.6600903868675232, 0.5410311818122864, -0.32340022921562195, 0.15868531167507172, -0.6248689293861389, -0.26569506525993347, 0.02699853666126728, -0.03731461241841316, -0.3584108054637909, -0.9142563343048096, -0.03601066395640373, -0.31376221776008606, -0.29201778769493103, -0.31566357612609863, 0.5674371719360352, -0.23735395073890686, -0.9628089070320129, 0.2141755223274231, 0.10060916841030121, 0.4451434016227722, -0.03658726438879967, -0.9327742457389832, 0.06147158890962601, 0.11287391185760498, 0.19242815673351288, -0.01072308886796236, 0.0966467633843422, -0.06362152099609375, 0.5860354900360107, 0.4026307463645935, 0.07946129888296127, -0.07096978276968002, 0.0903594121336937, 0.6734471917152405, -0.4504811465740204, -0.6834123134613037, -0.6116169095039368, 0.8020698428153992, -0.07761823385953903, -0.4922814667224884, 0.5978047847747803, 0.5874815583229065, 0.6748533248901367, -0.5293731689453125, 0.6776919364929199, -0.35931089520454407, 0.388685941696167, -0.4655573070049286, 0.6523667573928833, -0.5033916234970093, -0.08751902729272842, -0.8185485005378723, -0.7669773697853088, -0.518864631652832, 0.0842350572347641, 0.17881405353546143, 0.15070611238479614, 0.6092288494110107, 0.7689029574394226, 0.06757224351167679, -0.35249075293540955, 0.46966707706451416, -0.005271104164421558, 0.42308148741722107, 0.192268505692482, 1.0225461721420288, -0.5506188273429871, 0.4125158488750458, -0.6136143803596497, -0.34986546635627747, -0.019687578082084656, -0.9359874725341797, -0.5050192475318909, -0.8570452332496643, -0.5890417695045471, -0.3548821806907654, -0.19371099770069122, 0.7353824973106384, 0.9909066557884216, -0.3308059573173523, -0.3309035301208496, -0.0013639418175444007, -0.05659625679254532, -0.0949997678399086, -0.19040173292160034, 0.04124606400728226, 0.6354038715362549, -0.9876771569252014, 0.3166501522064209, 0.3434990644454956, 0.7666394114494324, -0.26084160804748535, 0.18915654718875885, -0.05729661509394646, -0.19907885789871216, 0.11526504158973694, 0.34215858578681946, -0.4432942569255829, -0.1554335504770279, 0.07714693248271942, 0.15059803426265717, 0.1209743395447731, 0.5691101551055908, -0.42911142110824585, 0.2526363730430603, 0.49124154448509216, -0.10679934918880463, 0.49577271938323975, -0.27146419882774353, 0.6980764269828796, -0.3208027780056, 0.1296975463628769, 0.04678874462842941, 0.6520141959190369, 0.480987548828125, -0.8705821633338928, 0.5367151498794556, 0.35714519023895264, -0.46700793504714966, -0.8826245665550232, 0.3048585057258606, -1.5870122909545898, -0.023946696892380714, 0.8320357203483582, -0.1170627698302269, -0.27015501260757446, 0.06403370201587677, -0.5371358394622803, -0.28291118144989014, -0.5830747485160828, 0.5001031756401062, 0.6959993839263916, -0.2734358608722687, -0.5390945076942444, -0.3227967619895935, 0.26342588663101196, 0.003804729552939534, -0.8214195370674133, -0.29034149646759033, 0.7112645506858826, 0.19962400197982788, 0.8000286817550659, 0.7296730279922485, -0.5508707165718079, 0.4049018621444702, 0.047139618545770645, 0.2984107732772827, 0.30423009395599365, -0.2925938069820404, -0.13370828330516815, 0.33550557494163513, -0.1091824322938919, -0.17353563010692596 ]
huawei-noah/TinyBERT_General_4L_312D
huawei-noah
"2021-05-19T20:03:32Z"
31,798
13
transformers
[ "transformers", "pytorch", "jax", "bert", "arxiv:1909.10351", "endpoints_compatible", "region:us" ]
null
"2022-03-02T23:29:05Z"
TinyBERT: Distilling BERT for Natural Language Understanding ======== TinyBERT is 7.5x smaller and 9.4x faster on inference than BERT-base and achieves competitive performances in the tasks of natural language understanding. It performs a novel transformer distillation at both the pre-training and task-specific learning stages. In general distillation, we use the original BERT-base without fine-tuning as the teacher and a large-scale text corpus as the learning data. By performing the Transformer distillation on the text from general domain, we obtain a general TinyBERT which provides a good initialization for the task-specific distillation. We here provide the general TinyBERT for your tasks at hand. For more details about the techniques of TinyBERT, refer to our paper: [TinyBERT: Distilling BERT for Natural Language Understanding](https://arxiv.org/abs/1909.10351) Citation ======== If you find TinyBERT useful in your research, please cite the following paper: ``` @article{jiao2019tinybert, title={Tinybert: Distilling bert for natural language understanding}, author={Jiao, Xiaoqi and Yin, Yichun and Shang, Lifeng and Jiang, Xin and Chen, Xiao and Li, Linlin and Wang, Fang and Liu, Qun}, journal={arXiv preprint arXiv:1909.10351}, year={2019} } ```
[ -0.4369237720966339, -0.9197078943252563, 0.6665803790092468, 0.30277886986732483, -0.46247225999832153, 0.003339208196848631, -0.6843003630638123, -0.2664659023284912, -0.08041821420192719, 0.15274359285831451, -0.556527316570282, -0.2545550763607025, -0.7928721904754639, 0.11316551268100739, -0.3465627133846283, 1.247448444366455, 0.37952274084091187, 0.01846981607377529, 0.08557258546352386, -0.042905375361442566, -0.22168250381946564, -0.2900910973548889, -0.7570001482963562, -0.6648831367492676, 0.5409213304519653, 0.5031663179397583, 0.623076856136322, 0.4214775264263153, 0.2986592650413513, 0.34209805727005005, -0.4774060845375061, -0.11665734648704529, -0.6004559397697449, 0.009110993705689907, -0.020110994577407837, -0.7366858124732971, -0.04965786635875702, 0.044243223965168, 0.4951135218143463, 0.7951952219009399, 0.13580678403377533, 0.3001675605773926, 0.41761094331741333, 1.0214240550994873, -0.4819236993789673, 0.21964401006698608, -0.6858394742012024, -0.011599153280258179, -0.0024630145635455847, 0.3149915337562561, -0.6069711446762085, -0.5461854934692383, 0.6300798654556274, -0.34713315963745117, 0.6930171847343445, 0.20171529054641724, 0.9604963064193726, 0.41619011759757996, -0.41427740454673767, -0.48266658186912537, -0.7428429126739502, 1.141525387763977, -0.5523146390914917, 0.34741178154945374, 0.12440124154090881, 0.6009893417358398, 0.05285944044589996, -1.2069100141525269, -0.843919575214386, -0.25254026055336, -0.39723649621009827, -0.25518080592155457, -0.4673967659473419, 0.16162660717964172, 0.14606697857379913, 0.4331183135509491, -0.4896017909049988, -0.1597694605588913, -0.4098522365093231, -0.04144352301955223, 0.37324994802474976, -0.08150136470794678, 0.06188349798321724, -0.48885899782180786, -0.2637789249420166, -0.3152959644794464, -0.20321114361286163, 0.1337173879146576, 0.008816021494567394, 0.36473190784454346, 0.005275736562907696, 0.03949977830052376, 0.2757282257080078, 0.6755770444869995, 0.40225479006767273, -0.3220194876194, 0.24752354621887207, -0.35789188742637634, -0.5737305879592896, 0.30841338634490967, 0.8359197378158569, -0.06528172641992569, 0.46506810188293457, -0.22759418189525604, 0.13120783865451813, -0.3670269250869751, 0.22464077174663544, -0.9774443507194519, -0.9763621687889099, 0.17761118710041046, -0.7796381115913391, -0.3705117404460907, -0.19087634980678558, -0.5549600720405579, -0.3338192105293274, -0.3594409227371216, 0.4030751883983612, -0.7488024830818176, 0.14996810257434845, -0.27071458101272583, -0.36655309796333313, 0.2198106199502945, 0.27384036779403687, -1.286773681640625, 0.3127710521221161, 0.5080044865608215, 0.9767047166824341, 0.05172457918524742, -0.09287422895431519, -0.4745809733867645, -0.25967440009117126, -0.08079633116722107, 0.668846070766449, -0.14845237135887146, -0.2091953605413437, -0.26423099637031555, -0.13889342546463013, 0.039092469960451126, -0.7540919780731201, 0.8076524138450623, -0.49296626448631287, 0.17010939121246338, -0.11159222573041916, -0.2760569155216217, -0.42933839559555054, 0.09725644439458847, -0.731283962726593, 0.9702020883560181, -0.26196539402008057, -0.8147352933883667, 0.5313088297843933, -0.6517426371574402, -0.4121611714363098, -0.19479240477085114, 0.03661847114562988, -0.24633127450942993, 0.18112242221832275, 0.44301119446754456, 0.4623088836669922, -0.25693196058273315, 0.15687482059001923, -0.08075535297393799, -0.22125022113323212, -0.002709311433136463, -0.5246379971504211, 1.256882905960083, 0.31627362966537476, -0.2515304684638977, -0.08724324405193329, -0.7654314041137695, -0.08139044791460037, 0.10587887465953827, -0.2269814908504486, -0.5755611658096313, 0.13891372084617615, 0.08619178086519241, 0.020826807245612144, 0.3179030120372772, -0.6511406898498535, 0.19347365200519562, -0.5701400637626648, 0.5945115685462952, 0.6882906556129456, 0.09183359146118164, 0.8726319074630737, -0.08230476081371307, -0.01573699526488781, -0.24190710484981537, 0.10094667971134186, 0.1750234216451645, -0.6411191821098328, -1.0462050437927246, -0.6079087853431702, 0.8856613636016846, 0.4527297616004944, -0.89874666929245, 0.6180875897407532, -0.3835766315460205, -0.640744149684906, -0.9550613164901733, 0.395217627286911, 0.16732363402843475, 0.48478034138679504, 0.4446604549884796, 0.41019123792648315, -0.6660190224647522, -1.0156104564666748, -0.2105894535779953, -0.23204967379570007, -0.3875564932823181, 0.07635720819234848, 0.4629504084587097, -0.3203640878200531, 1.3858516216278076, -0.7200847268104553, -0.5702047944068909, -0.7311804890632629, 0.7792948484420776, 0.526702344417572, 0.2081916630268097, 0.872931182384491, -0.7699195742607117, -0.9894087314605713, -0.29594624042510986, -0.5845209360122681, -0.050756536424160004, -0.12691757082939148, -0.1284092366695404, -0.05324230715632439, 0.23398984968662262, -0.22763940691947937, 0.161512091755867, 0.4840044379234314, -0.06954632699489594, 0.1480671912431717, -0.45365670323371887, -0.10061643272638321, -0.798681914806366, -0.000950220855884254, 0.006239752285182476, -0.27123358845710754, -0.9851491451263428, -0.35479381680488586, 0.2213030755519867, 0.2582288980484009, -0.49075159430503845, 0.2717098593711853, -0.43386581540107727, 0.5410087704658508, -0.3057171702384949, 0.5362643003463745, 0.1915847212076187, 0.473251610994339, -0.1311488300561905, 0.7399659156799316, 0.3024628758430481, -0.6060149073600769, 0.28660324215888977, 0.48067954182624817, -0.4160216450691223, 0.014670288190245628, -0.8186347484588623, 0.18596100807189941, -0.32602658867836, 0.17012588679790497, -1.1386836767196655, 0.39320647716522217, 0.0796612799167633, -0.5751631259918213, 0.2856861352920532, -0.25427207350730896, -0.7688906788825989, -0.2998388111591339, -0.5223864316940308, 0.020814860239624977, 0.8432576656341553, -0.9784359931945801, 0.5669437646865845, -0.03769127279520035, -0.13095839321613312, -0.5163266658782959, -1.016095519065857, -0.2177838832139969, -0.2429676353931427, -0.8479459881782532, 0.27573317289352417, -0.1881359964609146, -0.4547804892063141, -0.059968143701553345, -0.15546686947345734, -0.37283968925476074, -0.10534965991973877, -0.038049712777137756, 0.2886615991592407, -0.1360568255186081, 0.3467675745487213, 0.1874360740184784, -0.19044721126556396, -0.05958915501832962, -0.18478958308696747, 0.286287397146225, -0.33875909447669983, 0.14679065346717834, -0.30036479234695435, 0.1571880280971527, 0.2425892949104309, 0.3707011938095093, 1.006960153579712, 0.7642124891281128, -0.21865428984165192, -0.16256345808506012, -0.35879307985305786, -0.41209107637405396, -0.5545049905776978, -0.09639876335859299, -0.2826403081417084, -0.8046066761016846, 0.3209349513053894, 0.20585289597511292, 0.2348971962928772, 0.752872884273529, 0.7210074663162231, -0.4956313669681549, 0.683218777179718, 0.874391496181488, -0.29266273975372314, 0.5860485434532166, -0.3934723734855652, 0.7342678904533386, -0.47751879692077637, -0.04069434478878975, -0.7202242612838745, -0.7081799507141113, -0.40435707569122314, -0.4025351405143738, 0.2368333488702774, 0.253892183303833, -0.058780115097761154, 0.5296595692634583, -0.6092198491096497, 0.3463527262210846, 0.8674058318138123, -0.17921531200408936, 0.4783637821674347, -0.09235931187868118, -0.2706131935119629, -0.46150684356689453, -0.6503452062606812, -0.7797499895095825, 0.9199736714363098, 0.3624071478843689, 1.0503897666931152, 0.2535996735095978, 0.9722129106521606, 0.6190293431282043, 0.29623210430145264, -0.9920389652252197, 0.3612619936466217, -0.21312293410301208, -0.9132468700408936, -0.38899296522140503, -0.34080770611763, -1.0153650045394897, 0.5387824773788452, -0.15028154850006104, -1.1021902561187744, 0.300676554441452, 0.500927746295929, -0.5772473216056824, 0.12146489322185516, -1.3132396936416626, 0.9266496300697327, -0.14078964293003082, 0.10891008377075195, -0.09245229512453079, -0.8720134496688843, 0.3700637221336365, -0.10122469067573547, 0.1441013216972351, -0.16492439806461334, 0.2134544998407364, 0.9159938097000122, -0.37085700035095215, 0.7877864837646484, -0.36236003041267395, 0.0036398330703377724, 0.47127214074134827, -0.10977382957935333, 0.4008750319480896, 0.272696852684021, 0.06019095331430435, 0.19941644370555878, 0.12776581943035126, -0.14989304542541504, -0.7711620926856995, 0.6126275062561035, -0.8259321451187134, -0.36841556429862976, -0.5552433133125305, -0.20902712643146515, -0.03573720157146454, 0.16004301607608795, 0.42532432079315186, -0.003926851786673069, -0.26850998401641846, 0.45569828152656555, 0.8006590008735657, 0.0115878377109766, 0.6648220419883728, 0.41626855731010437, 0.1256312131881714, -0.02344581112265587, 0.9503849148750305, 0.011873431503772736, 0.1600194275379181, 0.7021712064743042, 0.29274094104766846, -0.41864946484565735, -0.3585534691810608, -0.3345459997653961, 0.22504283487796783, -0.6680406332015991, -0.08383344113826752, -0.8242886662483215, -0.23365846276283264, -0.3057282269001007, -0.10826167464256287, -0.4209240972995758, -0.5862234830856323, -0.5375290513038635, 0.21866658329963684, 0.49763989448547363, 0.5235627889633179, -0.2168702781200409, 0.6243928670883179, -1.05427086353302, 0.6518112421035767, 0.6713250279426575, -0.030232129618525505, 0.1501966267824173, -0.8088828325271606, -0.2951008677482605, 0.13787850737571716, -0.4914875030517578, -0.680827796459198, 0.388014554977417, 0.4627699553966522, 0.5345559120178223, 0.7138571739196777, 0.420213907957077, 0.6064355373382568, -0.7897944450378418, 1.0442354679107666, 0.2870998978614807, -1.2110189199447632, 0.6925272345542908, 0.2569495141506195, 0.21420149505138397, 0.9481045603752136, 0.30685216188430786, -0.5216026902198792, -0.2841375470161438, -0.7819549441337585, -0.8964298963546753, 0.9447031617164612, 0.6088607311248779, -0.07683179527521133, 0.19241027534008026, -0.1419154554605484, 0.2625833749771118, 0.2609277069568634, -0.7611516714096069, -0.723231852054596, 0.02047082409262657, -0.33041849732398987, -0.2590523064136505, -0.3601952791213989, -0.17813901603221893, -0.637825608253479, 0.7297884821891785, 0.0029612714424729347, 0.7036515474319458, 0.04002365469932556, -0.5381534099578857, 0.4745226204395294, 0.46306467056274414, 0.49056562781333923, 0.2777934670448303, -0.602715790271759, 0.3286406993865967, 0.42331403493881226, -0.7249753475189209, 0.04939849302172661, 0.2248343974351883, 0.27688857913017273, 0.3594296872615814, 0.5447327494621277, 0.654373288154602, 0.07400858402252197, -0.6378363966941833, 0.5948697924613953, -0.3894892930984497, -0.378482848405838, -0.16014163196086884, 0.2550513744354248, 0.15025930106639862, 0.46987384557724, 0.5864164233207703, 0.023685272783041, 0.3899646997451782, -0.4954499304294586, 0.045202549546957016, -0.020291803404688835, -0.32838454842567444, -0.06792367994785309, 0.5234672427177429, 0.3054884374141693, -0.22004449367523193, 0.7070146203041077, -0.41818666458129883, -0.33241352438926697, 0.30736249685287476, 0.24711941182613373, 1.0345741510391235, 0.28246673941612244, -0.007626987062394619, 0.12900379300117493, 0.4468359649181366, 0.2657686769962311, 0.06554339081048965, -0.5453729629516602, -0.722944974899292, -0.35117456316947937, -0.6713947653770447, -0.4004902243614197, 0.0855843722820282, -0.6461973190307617, -0.1059044599533081, -0.3505752682685852, -0.13963420689105988, 0.4870096743106842, 0.15620745718479156, -0.7157567739486694, 0.011447045020759106, 0.17957596480846405, 1.1466410160064697, -0.9007833003997803, 1.288530945777893, 0.6454836130142212, -0.2904666066169739, -0.5395084023475647, 0.3895038068294525, -0.033892977982759476, -0.6371467113494873, 1.0551681518554688, 0.0002965443127322942, -0.1223064661026001, -0.19360193610191345, -0.5045620799064636, -0.4180869460105896, 1.1069514751434326, 0.4228270649909973, -0.5211738348007202, -0.14775490760803223, -0.1737399846315384, 0.7177601456642151, -0.08512438833713531, 0.10542343556880951, 1.1769791841506958, 0.45764949917793274, 0.02403934858739376, -0.8297982215881348, -0.355514258146286, -0.1613416224718094, 0.30356574058532715, 0.2528913617134094, -0.5210736989974976, 0.8750270009040833, -0.22247883677482605, -0.052713025361299515, -0.10053447633981705, 0.8731176853179932, -0.06079036742448807, 0.18062511086463928, 0.6721376180648804, 0.24989795684814453, 0.856247067451477, -0.32444581389427185, 0.5296666026115417, -0.09764629602432251, 0.8405168056488037, 1.3180712461471558, 0.3256172835826874, 0.8321568369865417, 0.8294035792350769, -0.34816890954971313, 0.6612275838851929, 0.4147269129753113, 0.058019544929265976, 1.0405622720718384, -0.02427777089178562, -0.37615320086479187, -0.09525159746408463, 0.447211891412735, -0.33227893710136414, 0.32471007108688354, 0.3519771695137024, -0.7007789611816406, -0.46184223890304565, 0.298103004693985, -0.02006613276898861, 0.0044403355568647385, 0.07961751520633698, 0.8060387969017029, 0.14507192373275757, -0.35361406207084656, 0.8715263605117798, 0.05971093475818634, 0.8347635269165039, -0.47505810856819153, 0.09314098209142685, 0.016223210841417313, 0.38697555661201477, 0.0022148422431200743, -0.8140527009963989, 0.32146963477134705, 0.2161729782819748, -0.5083416104316711, -0.48920685052871704, 0.8295586109161377, -0.2271624058485031, -0.3348972201347351, 0.35342225432395935, 0.38379713892936707, 0.2054685652256012, -0.035375338047742844, -0.6137955188751221, -0.018897922709584236, 0.3096519112586975, -0.27654385566711426, 0.0021902958396822214, 0.555027186870575, 0.6160436272621155, 0.5879164934158325, 0.18578892946243286, -0.19796569645404816, 0.1959114819765091, -0.008701392449438572, 0.8012471795082092, -0.4793838858604431, -0.470707505941391, -1.1010265350341797, 0.4454633295536041, -0.35293644666671753, -0.09464860707521439, 0.8106051087379456, 0.2686325013637543, 0.551799476146698, -0.32037636637687683, 0.8201261758804321, -0.5149255990982056, 0.629404604434967, -0.2621569037437439, 0.9109362959861755, -0.49404117465019226, 0.016667988151311874, -0.1533563733100891, -0.8283286094665527, -0.15776823461055756, 1.0583986043930054, -0.5066586136817932, -0.13683007657527924, 0.845626950263977, 0.37377798557281494, -0.12565301358699799, 0.2771695554256439, 0.3012016713619232, 0.2989756762981415, 0.36453452706336975, 0.40870606899261475, 0.46325308084487915, -0.3995257616043091, 0.9576148986816406, -0.5228074789047241, -0.3100530803203583, -0.5606335997581482, -0.8765794038772583, -1.34317147731781, -0.4512181580066681, -0.07586801797151566, -0.1501641422510147, -0.19159670174121857, 1.0715659856796265, 0.7323986887931824, -1.0490171909332275, 0.1067274734377861, -0.0752246081829071, 0.34855911135673523, -0.24858251214027405, -0.27111151814460754, 0.35054653882980347, -0.6620376706123352, -1.1351416110992432, 0.176432266831398, 0.11684392392635345, 0.0017884511034935713, 0.02782026305794716, 0.05169643089175224, -0.30451732873916626, 0.012682689353823662, 0.7534019351005554, 0.143442764878273, -0.7707761526107788, -0.4949433207511902, -0.21716496348381042, -0.19689974188804626, 0.23377390205860138, 0.764751672744751, -0.8736140131950378, 0.6217088103294373, 0.57127445936203, 0.569148063659668, 0.6992256045341492, -0.26173242926597595, 0.2986985445022583, -1.113172173500061, 0.37632933259010315, 0.19996578991413116, 0.3445713520050049, -0.0032826908864080906, -0.2186589539051056, 0.27041196823120117, 0.054516762495040894, -0.5932337641716003, -0.49652692675590515, -0.034994035959243774, -1.2198187112808228, -0.16846641898155212, 0.9307069778442383, -0.042635269463062286, -0.07640087604522705, -0.16754771769046783, -0.6086381673812866, 0.38212910294532776, -0.6406151056289673, 0.6724086999893188, 0.6453112959861755, -0.2969271242618561, -0.04143145680427551, -0.6103704571723938, 0.5608595013618469, 0.26628944277763367, -0.42651745676994324, -0.049108609557151794, 0.05347329378128052, 0.22988389432430267, 0.425178200006485, 0.3845294117927551, 0.4847699701786041, -0.049172293394804, 0.035914864391088486, -0.001820369972847402, 0.33876144886016846, -0.3858899772167206, -0.17164109647274017, 0.11212243884801865, 0.30889081954956055, -0.7041307091712952 ]
codellama/CodeLlama-13b-hf
codellama
"2023-10-27T18:04:56Z"
31,756
62
transformers
[ "transformers", "pytorch", "safetensors", "llama", "text-generation", "llama-2", "code", "arxiv:2308.12950", "license:llama2", "endpoints_compatible", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-08-24T16:31:44Z"
--- language: - code pipeline_tag: text-generation tags: - llama-2 license: llama2 --- # **Code Llama** Code Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the base 13B version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom. | | Base Model | Python | Instruct | | --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | 7B | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) | | 13B | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) | | 34B | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) | ## Model Use To use this model, please make sure to install transformers from `main` until the next version is released: ```bash pip install git+https://github.com/huggingface/transformers.git@main accelerate ``` Model capabilities: - [x] Code completion. - [x] Infilling. - [ ] Instructions / chat. - [ ] Python specialist. ```python from transformers import AutoTokenizer import transformers import torch model = "codellama/CodeLlama-13b-hf" tokenizer = AutoTokenizer.from_pretrained(model) pipeline = transformers.pipeline( "text-generation", model=model, torch_dtype=torch.float16, device_map="auto", ) sequences = pipeline( 'import socket\n\ndef ping_exponential_backoff(host: str):', do_sample=True, top_k=10, temperature=0.1, top_p=0.95, num_return_sequences=1, eos_token_id=tokenizer.eos_token_id, max_length=200, ) for seq in sequences: print(f"Result: {seq['generated_text']}") ``` ## Model Details *Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs). **Model Developers** Meta **Variations** Code Llama comes in three model sizes, and three variants: * Code Llama: base models designed for general code synthesis and understanding * Code Llama - Python: designed specifically for Python * Code Llama - Instruct: for instruction following and safer deployment All variants are available in sizes of 7B, 13B and 34B parameters. **This repository contains the base version of the 13B parameters model.** **Input** Models input text only. **Output** Models generate text only. **Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture. **Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023. **Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback. **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/) **Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)" or its [arXiv page](https://arxiv.org/abs/2308.12950). ## Intended Use **Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications. **Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants. ## Hardware and Software **Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster. **Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program. ## Training Data All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details). ## Evaluation Results See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper. ## Ethical Considerations and Limitations Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model. Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-use-guide](https://ai.meta.com/llama/responsible-use-guide).
[ -0.35992076992988586, -0.6897535920143127, 0.2574045956134796, 0.559372067451477, -0.24935834109783173, 0.1356545388698578, -0.08071102946996689, -0.6161940693855286, 0.27717769145965576, 0.47570720314979553, -0.41221216320991516, -0.5737256407737732, -0.6219229102134705, 0.30203914642333984, -0.49304869771003723, 1.1674020290374756, -0.02763267420232296, -0.3808044195175171, -0.21024934947490692, 0.039660196751356125, -0.23136495053768158, -0.572956383228302, -0.23512379825115204, -0.44948431849479675, 0.26874837279319763, 0.34057170152664185, 0.6870593428611755, 0.617845356464386, 0.550515353679657, 0.36661121249198914, -0.27746516466140747, 0.04676920920610428, -0.3651575744152069, -0.3370707035064697, 0.266166627407074, -0.5503713488578796, -0.7452418804168701, -0.01921939104795456, 0.3733880817890167, 0.3231049180030823, -0.28697529435157776, 0.4584571123123169, -0.1744038611650467, 0.48623135685920715, -0.3260558843612671, 0.22468581795692444, -0.681337296962738, -0.07090798765420914, 0.05473005026578903, -0.12640480697155, -0.2199813723564148, -0.5043078660964966, -0.0971619188785553, -0.4565325379371643, -0.048100508749485016, -0.024417661130428314, 1.197349190711975, 0.5208653211593628, -0.30025628209114075, -0.23662419617176056, -0.32805660367012024, 0.8127384781837463, -0.9848858118057251, 0.03998686745762825, 0.32884931564331055, -0.07173225283622742, -0.1457008719444275, -0.9009429216384888, -0.7425623536109924, -0.3484400510787964, -0.15165583789348602, -0.0035340823233127594, -0.4846048653125763, 0.06774044781923294, 0.411917120218277, 0.4790160059928894, -0.48753413558006287, 0.12153360247612, -0.4825698137283325, -0.21592244505882263, 0.9134570360183716, 0.14538434147834778, 0.41483983397483826, -0.3304958641529083, -0.37287867069244385, -0.06979119032621384, -0.8007327318191528, 0.06944672018289566, 0.4654465317726135, -0.12257662415504456, -0.7870008945465088, 0.7082040309906006, -0.1999194324016571, 0.5888746380805969, 0.13769786059856415, -0.4918317198753357, 0.5588581562042236, -0.29893815517425537, -0.34895190596580505, -0.16688498854637146, 0.9822320938110352, 0.5243902802467346, 0.34556135535240173, 0.05737520381808281, -0.19754867255687714, 0.25993451476097107, 0.08222822099924088, -0.8965564370155334, -0.16554269194602966, 0.351186603307724, -0.6483404040336609, -0.7106177806854248, -0.23286893963813782, -0.8171924948692322, -0.06551364809274673, 0.007035476621240377, 0.166593536734581, -0.206084206700325, -0.4632236659526825, 0.23207660019397736, 0.0597124919295311, 0.4822636544704437, 0.05832333117723465, -0.8960956931114197, 0.06346957385540009, 0.46222376823425293, 0.8103402256965637, 0.05092450976371765, -0.5228945016860962, -0.007288496475666761, -0.13209527730941772, -0.283934623003006, 0.6584502458572388, -0.45219525694847107, -0.4948834776878357, -0.18946975469589233, 0.13293607532978058, -0.07195586711168289, -0.48920732736587524, 0.1864345520734787, -0.35501816868782043, 0.003280963283032179, 0.14086680114269257, -0.31946390867233276, -0.41459420323371887, 0.024867398664355278, -0.5532556772232056, 1.210140347480774, 0.2656163275241852, -0.7761942744255066, -0.03977780044078827, -0.5744924545288086, -0.3515808880329132, -0.2718343138694763, -0.026946691796183586, -0.7009048461914062, -0.06858134269714355, 0.2163754254579544, 0.5411795377731323, -0.3986702263355255, 0.4073140323162079, -0.15094880759716034, -0.4075263738632202, 0.21648192405700684, -0.1871342808008194, 1.105587363243103, 0.3560585081577301, -0.5256873369216919, 0.23568342626094818, -0.8838533163070679, -0.10292088985443115, 0.5239962339401245, -0.46240556240081787, 0.17257922887802124, -0.1400936096906662, 0.00839290302246809, 0.00832236185669899, 0.5131551623344421, -0.344894677400589, 0.5037778615951538, -0.44109317660331726, 0.8013294339179993, 0.7010812163352966, -0.00442773150280118, 0.3916398286819458, -0.5680166482925415, 0.7161112427711487, -0.09549739211797714, 0.2325318455696106, -0.31157925724983215, -0.7784839272499084, -1.0421258211135864, -0.2818656861782074, 0.018726423382759094, 0.7266316413879395, -0.5021097660064697, 0.6795623898506165, -0.023233577609062195, -0.8320106863975525, -0.5114561319351196, 0.1727335900068283, 0.46884047985076904, 0.34976375102996826, 0.35763120651245117, -0.1264369934797287, -0.8108798265457153, -0.8229020833969116, 0.1150222048163414, -0.47642239928245544, 0.14289504289627075, 0.25506314635276794, 0.8696945905685425, -0.6419678926467896, 0.8079537749290466, -0.43861857056617737, -0.013734347186982632, -0.37373533844947815, -0.24115073680877686, 0.5548062324523926, 0.6163428425788879, 0.739324152469635, -0.5519860982894897, -0.306919127702713, 0.030751818791031837, -0.8891391158103943, -0.13117754459381104, -0.25316110253334045, -0.07589797675609589, 0.3661652207374573, 0.33521896600723267, -0.6884394288063049, 0.5345331430435181, 0.8638171553611755, -0.2842465043067932, 0.6106499433517456, -0.16468502581119537, -0.09920980781316757, -1.0949842929840088, 0.2424159198999405, -0.17294085025787354, -0.04389851167798042, -0.5131246447563171, 0.34950125217437744, 0.07929392904043198, 0.0738847479224205, -0.550721287727356, 0.3892280161380768, -0.4201919734477997, 0.000298412109259516, -0.12069080024957657, -0.1989056020975113, -0.00789592694491148, 0.7369993925094604, -0.029194984585046768, 0.9586391448974609, 0.5836628079414368, -0.6261674761772156, 0.3983546197414398, 0.30934152007102966, -0.3303520977497101, 0.1753135770559311, -1.0106531381607056, 0.34737884998321533, 0.12630720436573029, 0.34659814834594727, -0.8760249614715576, -0.2098429948091507, 0.3559619188308716, -0.5325877666473389, 0.09865768253803253, -0.03886481747031212, -0.49190106987953186, -0.5280423760414124, -0.2546730935573578, 0.4571805000305176, 0.8896442651748657, -0.6130411028862, 0.4325171113014221, 0.41311877965927124, 0.16735777258872986, -0.7369341850280762, -0.730409562587738, 0.08366134762763977, -0.4591183066368103, -0.7548061609268188, 0.4525487720966339, -0.2916206121444702, -0.15517759323120117, -0.18939754366874695, 0.09556388854980469, 0.009220786392688751, 0.3014463782310486, 0.45787912607192993, 0.41585054993629456, -0.1247720792889595, -0.22252176702022552, -0.038948480039834976, -0.16094058752059937, 0.07388003170490265, 0.11319484561681747, 0.8135533928871155, -0.4282151460647583, -0.24624672532081604, -0.6322716474533081, 0.16200588643550873, 0.5545386672019958, -0.24977180361747742, 0.6348628997802734, 0.4512806832790375, -0.3643903434276581, -0.009533424861729145, -0.6747863292694092, 0.034195706248283386, -0.5797524452209473, 0.3066016435623169, -0.265529602766037, -0.8280640840530396, 0.726771354675293, 0.10301011800765991, 0.2044501155614853, 0.5487738847732544, 0.8012900948524475, 0.08114409446716309, 0.7628597617149353, 0.9325363636016846, -0.39665651321411133, 0.40815094113349915, -0.627535343170166, 0.0862676128745079, -0.7998830080032349, -0.4349430501461029, -0.5958821177482605, -0.0704185962677002, -0.686863362789154, -0.47474345564842224, 0.3075808584690094, 0.1946929693222046, -0.5379316806793213, 0.7378587126731873, -0.8699519038200378, 0.42635270953178406, 0.45741790533065796, 0.060488589107990265, 0.3535080552101135, 0.04136412963271141, -0.06336072087287903, 0.30166885256767273, -0.49021807312965393, -0.6883360147476196, 1.2329990863800049, 0.480400949716568, 0.8705723285675049, -0.07301411032676697, 0.9128612279891968, 0.024441273882985115, 0.34552690386772156, -0.6112936735153198, 0.6101329922676086, 0.2874510884284973, -0.5174746513366699, -0.02659187652170658, -0.27204951643943787, -0.93315589427948, 0.146528959274292, 0.07256419211626053, -0.846886932849884, 0.09485070407390594, 0.011722895316779613, -0.2526417374610901, 0.3759252429008484, -0.7141982316970825, 0.674076497554779, -0.18954777717590332, 0.007613323628902435, -0.1389569193124771, -0.5646345019340515, 0.5690978765487671, -0.03653955087065697, 0.17307206988334656, -0.16108588874340057, -0.17521534860134125, 0.700149416923523, -0.5442790985107422, 1.0857282876968384, 0.09884566068649292, -0.3674851059913635, 0.6312505006790161, -0.031419750303030014, 0.5020595788955688, 0.049093831330537796, -0.23425297439098358, 0.6724410653114319, -0.0001860440243035555, -0.2660712003707886, -0.08055751025676727, 0.6486654877662659, -1.107083797454834, -0.7568613886833191, -0.4428015351295471, -0.41533932089805603, 0.309876412153244, 0.15929652750492096, 0.4840720295906067, 0.07222919166088104, 0.15656737983226776, 0.1421768069267273, 0.42370450496673584, -0.6754758954048157, 0.6890219449996948, 0.32499799132347107, -0.2815314531326294, -0.49682119488716125, 0.8455966711044312, -0.14388035237789154, 0.24729400873184204, 0.24011456966400146, 0.05078102648258209, -0.13235479593276978, -0.4404258728027344, -0.475574254989624, 0.4874536097049713, -0.6258012056350708, -0.5741197466850281, -0.6870967149734497, -0.4267480671405792, -0.37261325120925903, -0.3121451139450073, -0.33098018169403076, -0.2849670946598053, -0.6920045614242554, -0.16742821037769318, 0.8140292763710022, 0.7490153908729553, -0.0066387285478413105, 0.493012398481369, -0.6410754919052124, 0.41731348633766174, 0.12613601982593536, 0.38163673877716064, 0.06014738231897354, -0.5607320666313171, -0.10698552429676056, -0.039826661348342896, -0.5527998805046082, -0.9439812898635864, 0.6224820613861084, 0.14858075976371765, 0.600325345993042, 0.13793712854385376, -0.016005637124180794, 0.7071359753608704, -0.42789408564567566, 0.9219220876693726, 0.35003530979156494, -1.1647664308547974, 0.6616635918617249, -0.24840091168880463, 0.07668506354093552, 0.0821300595998764, 0.29642435908317566, -0.4678129553794861, -0.3127574324607849, -0.7395191788673401, -0.8086398243904114, 0.6559365391731262, 0.2632109522819519, 0.2923242151737213, -0.005955443251878023, 0.4231538474559784, -0.0863269716501236, 0.24301686882972717, -1.0940579175949097, -0.4116361439228058, -0.36601927876472473, -0.25782889127731323, -0.043901294469833374, -0.2526930570602417, -0.03267655894160271, -0.31400424242019653, 0.4936174750328064, -0.14946743845939636, 0.6507648229598999, 0.20312413573265076, -0.20171310007572174, -0.2621600329875946, -0.005688482895493507, 0.6609158515930176, 0.603797972202301, -0.04989386722445488, -0.14635148644447327, 0.42422032356262207, -0.5760781168937683, 0.24982880055904388, -0.060604438185691833, -0.09107913821935654, -0.2301347255706787, 0.5504763722419739, 0.660121738910675, 0.09568588435649872, -0.7661360502243042, 0.5288248062133789, 0.10819968581199646, -0.3061813414096832, -0.5092878937721252, 0.24595466256141663, 0.3353821635246277, 0.3342900276184082, 0.2895570993423462, -0.014546326361596584, -0.12205339968204498, -0.36177369952201843, 0.06632070988416672, 0.35338521003723145, 0.16573967039585114, -0.3581753373146057, 0.946723997592926, 0.15896935760974884, -0.338795930147171, 0.523939847946167, 0.044725365936756134, -0.5827416181564331, 1.2395237684249878, 0.6912383437156677, 0.781777560710907, -0.21044060587882996, 0.13963516056537628, 0.5140880346298218, 0.5939199328422546, 0.04051836207509041, 0.42654338479042053, 0.06277686357498169, -0.5713340044021606, -0.3293076157569885, -0.8174539804458618, -0.3232642412185669, 0.07856424152851105, -0.44494709372520447, 0.3556112051010132, -0.6609477400779724, -0.07632388174533844, -0.3296201229095459, 0.1179797351360321, -0.6971518397331238, -0.005064990371465683, 0.086571104824543, 0.9817494750022888, -0.6818222403526306, 0.9151221513748169, 0.5555246472358704, -0.6993966102600098, -0.9549212455749512, -0.24816776812076569, -0.08869301527738571, -1.242706060409546, 0.5464708209037781, 0.29643112421035767, 0.07317894697189331, 0.13176581263542175, -0.9191879630088806, -1.117747187614441, 1.33694589138031, 0.4466951787471771, -0.5103544592857361, -0.04545926675200462, 0.17176128923892975, 0.5352108478546143, -0.38062527775764465, 0.5295596122741699, 0.6403011083602905, 0.41532468795776367, -0.08969523012638092, -1.2012985944747925, 0.3169955313205719, -0.4055303931236267, 0.16791227459907532, -0.22597411274909973, -1.1140332221984863, 1.0857915878295898, -0.5523098707199097, -0.13896769285202026, 0.4155575931072235, 0.7302346229553223, 0.5471903681755066, 0.177122101187706, 0.3724019229412079, 0.5820400714874268, 0.659751832485199, -0.02457195706665516, 1.1063026189804077, -0.5013337731361389, 0.5478137731552124, 0.5236393213272095, -0.08985859155654907, 0.7364088892936707, 0.39243510365486145, -0.5335893034934998, 0.7772189378738403, 0.8023461103439331, -0.21749627590179443, 0.26735711097717285, 0.3025680184364319, -0.057663723826408386, -0.05852905660867691, -0.014467798173427582, -0.7788975238800049, 0.4180564284324646, 0.3311437964439392, -0.3965410888195038, 0.05271604657173157, -0.22537660598754883, 0.28601595759391785, -0.187538743019104, -0.03193572536110878, 0.6494597792625427, 0.20910675823688507, -0.4952160120010376, 1.1856099367141724, 0.12479929625988007, 1.017627477645874, -0.4746699631214142, -0.10797900706529617, -0.4180966019630432, 0.06402496248483658, -0.5440186262130737, -0.5386254787445068, 0.20798367261886597, 0.25513580441474915, 0.001291372929699719, -0.1063469797372818, 0.5203028917312622, -0.08404789119958878, -0.5524468421936035, 0.38309672474861145, 0.1982627809047699, 0.3057374656200409, 0.19661301374435425, -0.7646374702453613, 0.46470803022384644, 0.19718597829341888, -0.48629093170166016, 0.2807617783546448, 0.14618058502674103, 0.15933430194854736, 0.9356540441513062, 0.7515118718147278, -0.13624534010887146, 0.20811794698238373, -0.1886754184961319, 1.134024739265442, -0.7401016354560852, -0.36494868993759155, -0.8659712076187134, 0.6946792006492615, 0.20888301730155945, -0.4893544316291809, 0.6189892292022705, 0.3802429437637329, 0.84591144323349, -0.11041969805955887, 0.7815598249435425, -0.24641448259353638, 0.08642718940973282, -0.4317502975463867, 0.6941127777099609, -0.7106526494026184, 0.38083669543266296, -0.5294992327690125, -0.9200878143310547, -0.26905325055122375, 0.935602605342865, -0.06037400662899017, 0.12393298745155334, 0.556354284286499, 1.020480990409851, 0.24799539148807526, -0.10091953724622726, 0.17760539054870605, 0.22231854498386383, 0.4119819104671478, 0.857019305229187, 0.9336687922477722, -0.6794465780258179, 0.7290264368057251, -0.6389718055725098, -0.2677187919616699, -0.3041315972805023, -1.0391687154769897, -1.0205930471420288, -0.5214412212371826, -0.35009801387786865, -0.4394529163837433, -0.2649802267551422, 0.975837230682373, 0.6462116241455078, -0.6226190328598022, -0.5071988701820374, -0.16940416395664215, 0.37945786118507385, -0.11069553345441818, -0.2214951068162918, 0.3363770544528961, -0.1677485853433609, -0.8362551927566528, 0.2834210991859436, -0.025734571740031242, 0.1650005728006363, -0.2947123646736145, -0.25816667079925537, -0.18497426807880402, 0.014487816952168941, 0.45518338680267334, 0.34765300154685974, -0.8576034903526306, -0.23426558077335358, 0.12256627529859543, -0.202321395277977, 0.14185915887355804, 0.4028967320919037, -0.6687846183776855, -0.018187591806054115, 0.3827066123485565, 0.44170957803726196, 0.3973178267478943, -0.23417657613754272, 0.2322613000869751, -0.4052381217479706, 0.4450289011001587, -0.02040467970073223, 0.5026818513870239, 0.12074004113674164, -0.5981050729751587, 0.6756041049957275, 0.3258478343486786, -0.7223863005638123, -0.9254697561264038, 0.1181543618440628, -1.108649730682373, -0.18979953229427338, 1.3048818111419678, -0.14872094988822937, -0.33813604712486267, 0.18648874759674072, -0.3768830895423889, 0.29723742604255676, -0.4118850827217102, 0.7349197864532471, 0.30687132477760315, -0.1144484207034111, -0.19371674954891205, -0.3644297420978546, 0.28000175952911377, 0.29573768377304077, -0.9617968201637268, -0.14894260466098785, 0.32663944363594055, 0.4256140887737274, 0.1901061236858368, 0.7516543865203857, -0.07454762607812881, 0.1978929042816162, 0.06838497519493103, 0.4259611964225769, -0.08309631049633026, -0.18160021305084229, -0.35017257928848267, -0.08690427243709564, -0.09898776561021805, -0.06531988084316254 ]
stabilityai/sd-x2-latent-upscaler
stabilityai
"2023-06-05T16:28:02Z"
31,703
150
diffusers
[ "diffusers", "stable-diffusion", "license:openrail++", "has_space", "diffusers:StableDiffusionLatentUpscalePipeline", "region:us" ]
null
"2023-02-03T11:24:02Z"
--- license: openrail++ tags: - stable-diffusion inference: false --- # Stable Diffusion x2 latent upscaler model card This model card focuses on the latent diffusion-based upscaler developed by [Katherine Crowson](https://github.com/crowsonkb/k-diffusion) in collaboration with [Stability AI](https://stability.ai/). This model was trained on a high-resolution subset of the LAION-2B dataset. It is a diffusion model that operates in the same latent space as the Stable Diffusion model, which is decoded into a full-resolution image. To use it with Stable Diffusion, You can take the generated latent from Stable Diffusion and pass it into the upscaler before decoding with your standard VAE. Or you can take any image, encode it into the latent space, use the upscaler, and decode it. **Note**: This upscaling model is designed explicitely for **Stable Diffusion** as it can upscale Stable Diffusion's latent denoised image embeddings. This allows for very fast text-to-image + upscaling pipelines as all intermeditate states can be kept on GPU. More for information, see example below. This model works on all [Stable Diffusion checkpoints](https://huggingface.co/models?other=stable-diffusion) | ![upscaler.jpg](https://pbs.twimg.com/media/FhK0YjAVUAUtBbx?format=jpg&name=4096x4096) | |:--:| Image by Tanishq Abraham from [Stability AI](https://stability.ai/) originating from [this tweet](https://twitter.com/StabilityAI/status/1590531958815064065)| Original output image | 2x upscaled output image :-------------------------:|:-------------------------: ![](https://pbs.twimg.com/media/Fg8UijAaEAAqfvS?format=png&name=small) | ![](https://pbs.twimg.com/media/Fg8UjCmaMAAAUdS?format=jpg&name=medium) - Use it with 🧨 [`diffusers`](https://huggingface.co/stabilityai/sd-x2-latent-upscaler#examples) ## Model Details - **Developed by:** Katherine Crowson - **Model type:** Diffusion-based latent upscaler - **Language(s):** English - **License:** [CreativeML Open RAIL++-M License](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL) ## Examples Using the [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run latent upscaler on top of any `StableDiffusionUpscalePipeline` checkpoint to enhance its output image resolution by a factor of 2. ```bash pip install git+https://github.com/huggingface/diffusers.git pip install transformers accelerate scipy safetensors ``` ```python from diffusers import StableDiffusionLatentUpscalePipeline, StableDiffusionPipeline import torch pipeline = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16) pipeline.to("cuda") upscaler = StableDiffusionLatentUpscalePipeline.from_pretrained("stabilityai/sd-x2-latent-upscaler", torch_dtype=torch.float16) upscaler.to("cuda") prompt = "a photo of an astronaut high resolution, unreal engine, ultra realistic" generator = torch.manual_seed(33) # we stay in latent space! Let's make sure that Stable Diffusion returns the image # in latent space low_res_latents = pipeline(prompt, generator=generator, output_type="latent").images upscaled_image = upscaler( prompt=prompt, image=low_res_latents, num_inference_steps=20, guidance_scale=0, generator=generator, ).images[0] # Let's save the upscaled image under "upscaled_astronaut.png" upscaled_image.save("astronaut_1024.png") # as a comparison: Let's also save the low-res image with torch.no_grad(): image = pipeline.decode_latents(low_res_latents) image = pipeline.numpy_to_pil(image)[0] image.save("astronaut_512.png") ``` **Result**: *512-res Astronaut* ![ow_res](./astronaut_512.png) *1024-res Astronaut* ![upscaled](./astronaut_1024.png) **Notes**: - Despite not being a dependency, we highly recommend you to install [xformers](https://github.com/facebookresearch/xformers) for memory efficient attention (better performance) - If you have low GPU RAM available, make sure to add a `pipe.enable_attention_slicing()` after sending it to `cuda` for less VRAM usage (to the cost of speed) # Uses ## Direct Use The model is intended for research purposes only. Possible research areas and tasks include - Safe deployment of models which have the potential to generate harmful content. - Probing and understanding the limitations and biases of generative models. - Generation of artworks and use in design and other artistic processes. - 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 v1, but applies in the same way to Stable Diffusion v2_. 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 cannot render legible text - The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere” - Faces and people in general may not be generated properly. - The model was trained mainly with English captions and will not work as well in other languages. - The autoencoding part of the model is lossy - 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 filtered the dataset using LAION's NFSW detector (see Training section). ### Bias While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. Stable Diffusion vw 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. Stable Diffusion v2 mirrors and exacerbates biases to such a degree that viewer discretion must be advised irrespective of the input or its intent.
[ -0.4163667857646942, -0.7195116877555847, 0.3360750675201416, 0.14141277968883514, -0.21076789498329163, -0.1773366928100586, -0.033077340573072433, -0.38839641213417053, 0.12131369113922119, 0.35577574372291565, -0.39042210578918457, -0.40767449140548706, -0.7096394896507263, -0.2309853732585907, -0.34658777713775635, 0.9210504293441772, -0.029590103775262833, -0.1198757141828537, -0.19349704682826996, -0.09511053562164307, -0.38408684730529785, -0.16519761085510254, -0.9998177886009216, -0.15636110305786133, 0.39074626564979553, 0.15430238842964172, 0.8724002242088318, 0.5806196331977844, 0.4695388972759247, 0.33222585916519165, -0.30023449659347534, -0.04290618747472763, -0.7515038847923279, -0.13555499911308289, 0.16083629429340363, -0.2783806622028351, -0.5915848016738892, 0.11592229455709457, 0.7338848114013672, 0.2506236732006073, -0.10025244951248169, 0.100859135389328, 0.009427900426089764, 0.636285126209259, -0.5111189484596252, -0.014644264243543148, -0.10683368146419525, 0.06697207689285278, -0.08991328626871109, 0.2926703989505768, -0.2745470702648163, -0.20300190150737762, 0.01272328570485115, -0.8336755633354187, 0.3844589591026306, -0.1637767106294632, 1.164146900177002, 0.43569713830947876, -0.2835177183151245, 0.006851763464510441, -0.6914725303649902, 0.6047195792198181, -0.60788494348526, 0.3051066994667053, 0.2646436393260956, 0.08676107227802277, 0.014528263360261917, -0.9521484971046448, -0.5531800985336304, -0.11552013456821442, -0.165098175406456, 0.48199671506881714, -0.3791850805282593, 0.03477207198739052, 0.4122467041015625, 0.39928823709487915, -0.6184027791023254, -0.0400836206972599, -0.5991361737251282, -0.11477656662464142, 0.7492103576660156, 0.10243745148181915, 0.3485766351222992, -0.20440326631069183, -0.31329891085624695, -0.2065778523683548, -0.3859139680862427, 0.026849430054426193, 0.2811439037322998, -0.272000253200531, -0.5001460909843445, 0.3941413462162018, 0.1263405978679657, 0.4322953522205353, 0.32094162702560425, -0.03312510997056961, 0.3204088509082794, -0.23403893411159515, -0.16824129223823547, -0.4227730631828308, 0.8589178323745728, 0.7125674486160278, -0.10280712693929672, 0.06342483311891556, -0.04533891752362251, 0.2406643033027649, 0.12349934130907059, -1.135017991065979, -0.4821891188621521, 0.3125177025794983, -0.7194198369979858, -0.4473203718662262, -0.18123458325862885, -1.0630263090133667, -0.2065374255180359, 0.21541215479373932, 0.4641750156879425, -0.29518818855285645, -0.5533519387245178, -0.07875315099954605, -0.3269919157028198, 0.11266787350177765, 0.3509964048862457, -0.6940750479698181, 0.20515261590480804, 0.08097589761018753, 1.110507845878601, -0.19659066200256348, 0.014040447771549225, -0.15543648600578308, 0.037367455661296844, -0.3281667232513428, 0.6432819366455078, -0.3313179314136505, -0.591113269329071, -0.2564256489276886, 0.2945253551006317, 0.16701705753803253, -0.5380783677101135, 0.7793561816215515, -0.47568923234939575, 0.30036091804504395, -0.12857387959957123, -0.4291073977947235, -0.19863446056842804, -0.07796580344438553, -0.64089035987854, 1.0755566358566284, 0.37432876229286194, -0.8327481746673584, 0.1774381548166275, -0.7361708283424377, -0.03760936111211777, -0.01888924464583397, -0.07629648596048355, -0.6936663389205933, 0.010458232834935188, 0.0486493855714798, 0.37988683581352234, -0.07498680800199509, 0.13354836404323578, -0.198971688747406, -0.30970528721809387, -0.08050321042537689, -0.416104257106781, 0.9683908224105835, 0.3168086111545563, -0.37894630432128906, 0.1986536979675293, -0.5882861614227295, -0.17650704085826874, 0.5040519833564758, -0.21363568305969238, -0.18187762796878815, -0.21935324370861053, 0.306397944688797, 0.31320977210998535, 0.09019487351179123, -0.5137273073196411, 0.04600473865866661, -0.2306862473487854, 0.4944908618927002, 0.7572665214538574, 0.02558554895222187, 0.7438192963600159, -0.42505979537963867, 0.5260094404220581, 0.23542733490467072, 0.2511041760444641, -0.07960706949234009, -0.7875450253486633, -0.721443235874176, -0.33206140995025635, 0.1278679370880127, 0.4228978455066681, -0.5967893004417419, 0.16612404584884644, -0.08689747005701065, -0.6943082213401794, -0.4097098410129547, -0.0619499608874321, 0.26887786388397217, 0.628598153591156, 0.29753378033638, -0.3747957944869995, -0.3319984972476959, -0.7005455493927002, 0.29487067461013794, -0.1960310935974121, 0.05534805729985237, 0.3442632853984833, 0.5661536455154419, -0.4154326617717743, 0.5404036045074463, -0.7185649275779724, -0.2864035665988922, 0.2014714628458023, 0.03814931958913803, 0.05666043236851692, 0.705414891242981, 0.7914136648178101, -0.9757742881774902, -0.6258922815322876, -0.16184811294078827, -0.8403939604759216, 0.05130516365170479, 0.017439378425478935, -0.39089319109916687, 0.3071939945220947, 0.4412420690059662, -0.8259506225585938, 0.5783038139343262, 0.6466844081878662, -0.5288587808609009, 0.5933242440223694, -0.4780380129814148, 0.06001018360257149, -1.0524452924728394, 0.0728292465209961, 0.2838573157787323, -0.3330583870410919, -0.599007248878479, 0.17167405784130096, 0.08377478271722794, -0.20834462344646454, -0.4552958905696869, 0.7666439414024353, -0.4586465060710907, 0.39237159490585327, -0.3890676498413086, 0.009974798187613487, 0.17560666799545288, 0.23510396480560303, 0.34191110730171204, 0.6342074871063232, 0.7857140302658081, -0.46777981519699097, 0.2789166569709778, 0.3125959634780884, -0.09985242784023285, 0.4891554117202759, -0.8324288129806519, 0.1456116884946823, -0.47943422198295593, 0.2668437659740448, -1.1032432317733765, -0.2622204124927521, 0.5050280690193176, -0.45994144678115845, 0.4309927821159363, -0.1813288927078247, -0.4078065752983093, -0.5337201356887817, -0.24049291014671326, 0.5061390399932861, 1.0825469493865967, -0.4346579909324646, 0.5376304388046265, 0.3241967260837555, 0.12915508449077606, -0.4565642178058624, -0.7124569416046143, -0.1870574951171875, -0.4373324513435364, -0.8842920064926147, 0.593208909034729, -0.28004878759384155, -0.24022574722766876, 0.2546079754829407, 0.1356126219034195, 0.048451218754053116, -0.22263318300247192, 0.48709914088249207, 0.3630531430244446, -0.08689020574092865, -0.22030609846115112, 0.18742536008358002, -0.2024334967136383, 0.09988290071487427, -0.14363056421279907, 0.3169463276863098, -0.01160727720707655, 0.024921631440520287, -0.6237971186637878, 0.45072484016418457, 0.5943525433540344, 0.11597289144992828, 0.7946330904960632, 1.026772141456604, -0.4802250266075134, 0.18276695907115936, -0.46355143189430237, -0.3243299126625061, -0.5138893127441406, 0.37506985664367676, -0.12709897756576538, -0.6547616124153137, 0.7580776214599609, -0.009928588755428791, 0.0879441648721695, 0.6174179315567017, 0.7004218101501465, -0.20567874610424042, 1.1229108572006226, 0.6768929362297058, 0.2028764933347702, 0.6204365491867065, -0.862704873085022, -0.07569102942943573, -0.9766192436218262, -0.2945750951766968, -0.16960445046424866, -0.3177618384361267, -0.49118950963020325, -0.7239683866500854, 0.3633304238319397, 0.18889114260673523, -0.21061769127845764, 0.1591917872428894, -0.6520373225212097, 0.3961641192436218, 0.2676418423652649, 0.1729661226272583, 0.02656237594783306, 0.15751400589942932, 0.10488973557949066, -0.24177661538124084, -0.7181591987609863, -0.5156933665275574, 0.9575021862983704, 0.4333900511264801, 0.8553532361984253, 0.09561242908239365, 0.47205081582069397, 0.3964880704879761, 0.4108186960220337, -0.4845586121082306, 0.4558793604373932, -0.25656571984291077, -0.7519915699958801, -0.02977036125957966, -0.3533359467983246, -0.9432562589645386, 0.21631714701652527, -0.20505322515964508, -0.6372660398483276, 0.5776190161705017, 0.23179541528224945, -0.4210547208786011, 0.39986199140548706, -0.8108248710632324, 0.9210805296897888, -0.05568532273173332, -0.7974629998207092, -0.10718227177858353, -0.7192186117172241, 0.3372744619846344, 0.024259792640805244, 0.2140372395515442, -0.048219528049230576, -0.1313191056251526, 0.8456541299819946, -0.34924936294555664, 0.8119089603424072, -0.3939490020275116, 0.026972495019435883, 0.3590206503868103, -0.07793600857257843, 0.34854838252067566, 0.2760505974292755, -0.08036366105079651, 0.35217177867889404, 0.15016138553619385, -0.5767867565155029, -0.4364880323410034, 0.8365558385848999, -1.0798779726028442, -0.5161868333816528, -0.3942147195339203, -0.4718742072582245, 0.4564230144023895, 0.13925746083259583, 0.771266758441925, 0.2518461048603058, -0.1501934677362442, -0.12175539135932922, 0.6633183360099792, -0.26161935925483704, 0.3928254544734955, 0.20469234883785248, -0.29661527276039124, -0.48429521918296814, 0.7831233739852905, 0.24265652894973755, 0.4689110815525055, -0.1634925752878189, 0.21425558626651764, -0.337311714887619, -0.3852682411670685, -0.5968952178955078, 0.3852187693119049, -0.7386654615402222, -0.19836947321891785, -0.7254750728607178, -0.33195504546165466, -0.40305295586586, -0.26658204197883606, -0.39483028650283813, -0.2673474848270416, -0.7172176837921143, 0.13478237390518188, 0.34214267134666443, 0.5784708857536316, -0.3626914918422699, 0.41703563928604126, -0.45284759998321533, 0.3840249478816986, 0.12511524558067322, 0.1563781201839447, 0.08394988626241684, -0.772355318069458, -0.17657220363616943, 0.048932213336229324, -0.5613257884979248, -0.8736785054206848, 0.41445696353912354, 0.10221292078495026, 0.4546746611595154, 0.6254233717918396, 0.01915692165493965, 0.6405385136604309, -0.3318920135498047, 0.9276208877563477, 0.21719619631767273, -0.5767137408256531, 0.5955761671066284, -0.4190751016139984, 0.14912791550159454, 0.1843004822731018, 0.5128640532493591, -0.36698657274246216, -0.286410391330719, -0.8696126341819763, -0.906262993812561, 0.6849127411842346, 0.45145756006240845, 0.40856513381004333, 0.014223482459783554, 0.8004773259162903, -0.10769490897655487, -0.09744071215391159, -0.9770365953445435, -0.6126219630241394, -0.3226822018623352, 0.11359342187643051, -0.05823415890336037, -0.38226544857025146, -0.16761514544487, -0.5461679697036743, 0.8034344911575317, 0.07548287510871887, 0.5801467299461365, 0.41113951802253723, 0.17539091408252716, -0.421039342880249, -0.2929094433784485, 0.4004928767681122, 0.31413960456848145, -0.2863674461841583, -0.12355226278305054, -0.0653604045510292, -0.5364102125167847, 0.28249138593673706, 0.2019120752811432, -0.5369347333908081, -0.035318534821271896, -0.022388411685824394, 0.8571437001228333, -0.358288049697876, -0.4149191677570343, 0.5387558937072754, -0.3054124712944031, -0.29937681555747986, -0.44888734817504883, 0.08118266612291336, 0.1349259614944458, 0.3193036913871765, 0.1422494649887085, 0.5622091293334961, 0.1675589382648468, -0.32861748337745667, 0.009292460046708584, 0.4783547520637512, -0.3748908042907715, -0.3862033784389496, 1.1723755598068237, 0.09096021950244904, -0.2523130774497986, 0.6775573492050171, -0.4440254867076874, -0.19019076228141785, 0.6719968914985657, 0.7412636280059814, 0.6675244569778442, -0.22772686183452606, 0.44540879130363464, 0.7315971851348877, 0.29094475507736206, -0.21732547879219055, 0.25696074962615967, 0.14325493574142456, -0.6887941360473633, -0.268446683883667, -0.42991217970848083, -0.012435775250196457, 0.21268214285373688, -0.5404112339019775, 0.3485184609889984, -0.4649384617805481, -0.46697038412094116, -0.006058835424482822, -0.0918918028473854, -0.5353550314903259, 0.13622459769248962, 0.2830345034599304, 0.7821159958839417, -1.0514873266220093, 0.6816101670265198, 0.752064049243927, -0.6268213987350464, -0.6376237869262695, 0.04617566987872124, 0.007100469432771206, -0.3897099792957306, 0.45268744230270386, 0.11097075045108795, 0.0617542564868927, 0.16323775053024292, -0.6886139512062073, -0.9287893772125244, 1.1914876699447632, 0.46009817719459534, -0.30553963780403137, -0.08765201270580292, -0.2668730914592743, 0.6226720809936523, -0.3805374801158905, 0.3750905692577362, 0.3741215467453003, 0.42873990535736084, 0.33718082308769226, -0.47828686237335205, 0.246168315410614, -0.44068777561187744, 0.2936345338821411, -0.04762383922934532, -1.0441349744796753, 0.8945606350898743, -0.4980910122394562, -0.294994980096817, 0.34047096967697144, 0.7671518921852112, 0.24953581392765045, 0.29734545946121216, 0.45834654569625854, 0.8810127377510071, 0.6004858613014221, -0.19659267365932465, 1.1287684440612793, -0.04398215189576149, 0.4748699367046356, 0.602384626865387, 0.024436382576823235, 0.6086231470108032, 0.3888658583164215, -0.15678732097148895, 0.565692663192749, 0.754642128944397, -0.21897977590560913, 0.6134640574455261, 0.04596192389726639, -0.25561386346817017, -0.018789613619446754, -0.08747038245201111, -0.5107986927032471, 0.0784275084733963, 0.3746214210987091, -0.4832651615142822, -0.06694675236940384, 0.22661924362182617, 0.06250879168510437, -0.14181268215179443, -0.14992941915988922, 0.5430861711502075, 0.05869794636964798, -0.36478903889656067, 0.6683897376060486, 0.05556470528244972, 0.8711869120597839, -0.39732855558395386, -0.10058382898569107, -0.1797153353691101, 0.17959126830101013, -0.4126693308353424, -0.7365821003913879, 0.5114617347717285, -0.17288905382156372, -0.1765308678150177, -0.07316426187753677, 0.8113399744033813, -0.2926127016544342, -0.6590150594711304, 0.4990132749080658, 0.2865000367164612, 0.38392990827560425, 0.00429492024704814, -1.026012659072876, 0.3221537172794342, -0.07983078062534332, -0.3141476809978485, 0.2209770530462265, 0.1343245804309845, 0.12826675176620483, 0.5084787011146545, 0.5401237607002258, 0.05834184214472771, 0.10414482653141022, -0.09403262287378311, 0.9302366971969604, -0.2911611795425415, -0.29402685165405273, -0.6840858459472656, 0.774610161781311, -0.1747182160615921, -0.159771129488945, 0.7382087707519531, 0.6120578050613403, 0.7034105658531189, -0.10528378933668137, 0.6715231537818909, -0.31470534205436707, -0.046352311968803406, -0.3106374442577362, 0.861704409122467, -0.921288788318634, 0.03327498584985733, -0.4402483105659485, -0.8877651691436768, -0.19487380981445312, 0.868532121181488, -0.27719321846961975, 0.36556476354599, 0.4039977490901947, 0.9433760046958923, -0.1811337023973465, -0.2893953025341034, 0.39287251234054565, 0.3088787794113159, 0.3095584213733673, 0.26256510615348816, 0.7667602896690369, -0.7678235769271851, 0.47925180196762085, -0.52248615026474, -0.3755180835723877, -0.022154174745082855, -0.6410573720932007, -0.8093370199203491, -0.6937265992164612, -0.7840292453765869, -0.8241563439369202, -0.0775466114282608, 0.4276926517486572, 1.109124779701233, -0.49711331725120544, -0.009697374887764454, -0.13499216735363007, -0.04469110444188118, -0.08291143923997879, -0.31334733963012695, 0.4405548870563507, 0.1960199773311615, -0.9724329710006714, -0.07927090674638748, 0.24054405093193054, 0.4630223214626312, -0.4376499056816101, -0.2786177396774292, -0.09733664989471436, -0.12307534366846085, 0.524272084236145, 0.20489555597305298, -0.64958655834198, -0.08430083096027374, -0.048660650849342346, 0.08420581370592117, 0.20676331222057343, 0.3084897994995117, -0.6536941528320312, 0.44394171237945557, 0.4858394265174866, 0.18062680959701538, 0.7713876366615295, 0.008392625488340855, 0.0951860249042511, -0.5515315532684326, 0.3896433115005493, 0.12807497382164001, 0.3883996605873108, 0.30377519130706787, -0.6887768507003784, 0.44142597913742065, 0.42873328924179077, -0.9108403921127319, -0.7072731852531433, 0.11285114288330078, -1.1327314376831055, -0.18388955295085907, 1.2250772714614868, -0.24525821208953857, -0.3296995162963867, 0.040126387029886246, -0.45759281516075134, 0.2426600605249405, -0.5133894085884094, 0.6958664059638977, 0.4898293912410736, -0.2168639898300171, -0.5119127035140991, -0.5916974544525146, 0.5287250876426697, 0.2832796573638916, -0.5938445329666138, -0.14562074840068817, 0.6060006022453308, 0.5306212902069092, 0.4294823706150055, 0.9349614977836609, -0.3714745044708252, 0.2274060994386673, 0.17828281223773956, -0.03460477292537689, 0.20778025686740875, -0.04069041833281517, -0.4439499080181122, 0.014408813789486885, -0.053671032190322876, -0.07307520508766174 ]
classla/bcms-bertic-ner
classla
"2023-06-23T06:30:26Z"
31,516
4
transformers
[ "transformers", "pytorch", "safetensors", "electra", "token-classification", "hr", "bs", "sr", "cnr", "hbs", "license:apache-2.0", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
token-classification
"2022-03-02T23:29:05Z"
--- language: - hr - bs - sr - cnr - hbs widget: - text: "Zovem se Marko i živim u Zagrebu. Studirao sam u Beogradu na Filozofskom fakultetu. Obožavam album Moanin." license: apache-2.0 --- # The [BERTić](https://huggingface.co/classla/bcms-bertic)&ast; [bert-ich] /bɜrtitʃ/ model fine-tuned for the task of named entity recognition in Bosnian, Croatian, Montenegrin and Serbian (BCMS) &ast; The name should resemble the facts (1) that the model was trained in Zagreb, Croatia, where diminutives ending in -ić (as in fotić, smajlić, hengić etc.) are very popular, and (2) that most surnames in the countries where these languages are spoken end in -ić (with diminutive etymology as well). This is a fine-tuned version of the [BERTić](https://huggingface.co/classla/bcms-bertic) model for the task of named entity recognition (PER, LOC, ORG, MISC). The fine-tuning was performed on the following datasets: - the [hr500k](http://hdl.handle.net/11356/1183) dataset, 500 thousand tokens in size, standard Croatian - the [SETimes.SR](http://hdl.handle.net/11356/1200) dataset, 87 thousand tokens in size, standard Serbian - the [ReLDI-hr](http://hdl.handle.net/11356/1241) dataset, 89 thousand tokens in size, Internet (Twitter) Croatian - the [ReLDI-sr](http://hdl.handle.net/11356/1240) dataset, 92 thousand tokens in size, Internet (Twitter) Serbian The data was augmented with missing diacritics and standard data was additionally over-represented. The F1 obtained on dev data (train and test was merged into train) is 91.38. For a more detailed per-dataset evaluation of the BERTić model on the NER task have a look at the [main model page](https://huggingface.co/classla/bcms-bertic). If you use this fine-tuned model, please cite the following paper: ``` @inproceedings{ljubesic-lauc-2021-bertic, title = "{BERT}i{\'c} - The Transformer Language Model for {B}osnian, {C}roatian, {M}ontenegrin and {S}erbian", author = "Ljube{\v{s}}i{\'c}, Nikola and Lauc, Davor", booktitle = "Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing", month = apr, year = "2021", address = "Kiyv, Ukraine", publisher = "Association for Computational Linguistics", url = "https://www.aclweb.org/anthology/2021.bsnlp-1.5", pages = "37--42", } ``` When running the model in `simpletransformers`, the order of labels has to be set as well. ``` from simpletransformers.ner import NERModel, NERArgs model_args = NERArgs() model_args.labels_list = ['B-LOC','B-MISC','B-ORG','B-PER','I-LOC','I-MISC','I-ORG','I-PER','O'] model = NERModel('electra', 'classla/bcms-bertic-ner', args=model_args) ```
[ -0.544617772102356, -0.4605414867401123, 0.28191906213760376, 0.19462880492210388, -0.36907902359962463, -0.0063927858136594296, -0.4556480348110199, -0.7135416865348816, 0.22867195308208466, 0.36880359053611755, -0.7006851434707642, -0.6143850088119507, -0.6391340494155884, 0.41027331352233887, -0.051944807171821594, 1.2534425258636475, -0.1514998823404312, 0.3413667678833008, 0.12149258702993393, -0.25942733883857727, -0.24125602841377258, -0.5515543818473816, -0.5662294030189514, -0.3488607704639435, 0.6213802695274353, 0.3386778235435486, 0.4915880262851715, 0.4193390905857086, 0.492587685585022, 0.2635491192340851, -0.36778897047042847, 0.2587374746799469, -0.2962020933628082, 0.0850662961602211, -0.20870228111743927, -0.27594172954559326, -0.45674872398376465, -0.10893888771533966, 0.6556654572486877, 0.7888310551643372, 0.006398559082299471, 0.33811649680137634, -0.12901364266872406, 0.5432556867599487, -0.3126402199268341, 0.09439174830913544, -0.6676512956619263, -0.39502066373825073, -0.34538424015045166, 0.2221830189228058, -0.4757440686225891, -0.38113659620285034, 0.29638999700546265, -0.27222853899002075, 0.25268200039863586, 0.2458842247724533, 1.411113977432251, 0.0065779294818639755, -0.2679806351661682, -0.2887885868549347, -0.8290367126464844, 0.8016357421875, -0.8442965745925903, 0.4814572334289551, 0.1875750869512558, 0.1846262812614441, -0.33062970638275146, -0.46420496702194214, -0.49662190675735474, -0.18123915791511536, -0.019099107012152672, -0.005533877294510603, -0.33002662658691406, 0.12702210247516632, 0.4420779049396515, 0.04623686894774437, -0.5622502565383911, 0.24688822031021118, -0.7067260146141052, -0.22461533546447754, 0.5230388045310974, 0.11116694658994675, 0.2499939501285553, -0.10441632568836212, -0.36796700954437256, 0.1312655806541443, -0.7083353996276855, 0.003907851874828339, 0.48684534430503845, 0.8465359807014465, -0.26983755826950073, 0.6135510206222534, -0.2883807420730591, 0.8133118748664856, 0.21994628012180328, 0.027896510437130928, 0.546331524848938, -0.2686082720756531, -0.3196800947189331, 0.13353942334651947, 0.680910587310791, -0.00890310201793909, 0.3172275424003601, -0.34863221645355225, -0.16467684507369995, -0.007582988124340773, 0.09354975074529648, -0.8820541501045227, -0.36458247900009155, 0.08014771342277527, -0.33951428532600403, 0.029985696077346802, 0.08550682663917542, -0.3381664454936981, 0.03888421505689621, -0.5121228098869324, 0.5809654593467712, -0.6609997153282166, 0.05660519748926163, -0.09816253185272217, 0.1927875578403473, 0.22827871143817902, 0.334468811750412, -0.9714781045913696, 0.2948230803012848, 0.46556487679481506, 0.5937889218330383, -0.08537750691175461, -0.06866481155157089, -0.15478846430778503, -0.12849409878253937, -0.08751086890697479, 0.8228674530982971, -0.4371925890445709, -0.12072079628705978, -0.23002812266349792, 0.20870621502399445, -0.24705900251865387, -0.48634961247444153, 0.6030658483505249, -0.6349139213562012, 0.31136029958724976, -0.27409759163856506, -0.6130490303039551, -0.3343205451965332, 0.1376655548810959, -0.5310560464859009, 1.018704891204834, 0.047916583716869354, -0.8529862761497498, 0.5784725546836853, -0.492329478263855, -0.4954867959022522, 0.16974294185638428, 0.0936834067106247, -0.4402015805244446, 0.12303941696882248, 0.031032802537083626, 0.49957960844039917, -0.29595133662223816, 0.26939091086387634, -0.180973082780838, -0.24021144211292267, 0.13123323023319244, -0.2190873771905899, 0.9554809927940369, 0.18150778114795685, -0.2512732148170471, -0.05499103665351868, -1.0319463014602661, 0.15502595901489258, -0.14121222496032715, -0.7442759871482849, -0.46596938371658325, -0.004461832344532013, 0.233797088265419, 0.2870137095451355, 0.24087612330913544, -0.7244833707809448, 0.36662453413009644, -0.6332408785820007, 0.20605915784835815, 0.5451132655143738, -0.07886563241481781, 0.5138856768608093, -0.23265603184700012, 0.26449835300445557, 0.14476631581783295, 0.038546185940504074, 0.3408031761646271, -0.5672246813774109, -0.9174929857254028, -0.5249097347259521, 0.9530056715011597, 0.4965469241142273, -0.6704776883125305, 0.33633023500442505, -0.47545334696769714, -0.7538257837295532, -0.6130620241165161, -0.2127990871667862, 0.3225649893283844, 0.20590795576572418, 0.3591943681240082, -0.20577213168144226, -0.894862711429596, -1.1318687200546265, -0.08063655346632004, -0.11737849563360214, 0.14437909424304962, 0.2998749315738678, 0.6997717022895813, -0.4003562033176422, 0.8871415853500366, -0.13630560040473938, -0.08213575184345245, -0.3489460349082947, 0.33460989594459534, 0.7230767607688904, 0.5183972120285034, 0.5612929463386536, -0.738646924495697, -0.7079371809959412, -0.15532325208187103, -0.2678997218608856, -0.2250261902809143, -0.023219775408506393, -0.25640732049942017, 0.5968909859657288, 0.10454658418893814, -0.6914259791374207, 0.2321196049451828, 0.3792865574359894, -0.3947121500968933, 0.7228237986564636, -0.17740225791931152, -0.05513047054409981, -1.1405571699142456, 0.20249974727630615, -0.002602394437417388, -0.2361351102590561, -0.8017188906669617, -0.14891792833805084, 0.05308396741747856, 0.2943268120288849, -0.4545156955718994, 0.5911666750907898, -0.6641512513160706, 0.12057408690452576, -0.12572050094604492, 0.026348711922764778, -0.29536810517311096, 0.5355998873710632, -0.016933605074882507, 0.5252086520195007, 0.6216487884521484, -0.8044143915176392, 0.31887581944465637, 0.2501865029335022, -0.5169918537139893, 0.5075194835662842, -0.4518362283706665, -0.04663088917732239, -0.08856397122144699, -0.08108346909284592, -0.8565236926078796, -0.03469923511147499, 0.562651515007019, -0.5740589499473572, 0.6832060813903809, -0.4014996886253357, -0.7765238285064697, -0.289645791053772, 0.10690803080797195, 0.35418567061424255, 0.30474066734313965, -0.4592444598674774, 0.601447582244873, 0.31549856066703796, -0.17757254838943481, -0.46823740005493164, -0.6533753275871277, 0.13235688209533691, -0.21684269607067108, -0.6009587645530701, 0.507946252822876, -0.3501489758491516, -0.09373895078897476, -0.08197944611310959, -0.10439419001340866, -0.25472208857536316, -0.043087754398584366, 0.15754075348377228, 0.5284473896026611, -0.19258390367031097, 0.09426557272672653, 0.13468439877033234, -0.03560509532690048, -0.11544400453567505, -0.16131101548671722, 0.5371823906898499, -0.07575243711471558, 0.12875014543533325, -0.38372063636779785, 0.06459338963031769, 0.5739894509315491, 0.005221982952207327, 1.0242700576782227, 0.5905565023422241, -0.5369114279747009, 0.0009813134092837572, -0.6926338076591492, -0.044907379895448685, -0.37222039699554443, 0.19483532011508942, -0.3856601417064667, -0.6284435987472534, 0.6670143008232117, -0.0009739925735630095, 0.05889872834086418, 0.6011960506439209, 0.7159939408302307, -0.11074348539113998, 0.9088036417961121, 0.6464534997940063, -0.1840483844280243, 0.4501551687717438, -0.2675885558128357, 0.2882653474807739, -0.9320647120475769, -0.3840435743331909, -0.6617728471755981, -0.39404845237731934, -0.9176156520843506, -0.13532133400440216, -0.003230494912713766, 0.03502983972430229, -0.21049270033836365, 0.8320214152336121, -0.3909822702407837, 0.19178442656993866, 0.5728050470352173, 0.032072972506284714, 0.07066850364208221, 0.043866146355867386, -0.49006539583206177, -0.19301897287368774, -0.68377685546875, -0.741087794303894, 0.7108999490737915, 0.18714676797389984, 0.723625898361206, 0.3056383430957794, 0.8892260193824768, -0.002931990660727024, 0.2315734177827835, -0.6801102757453918, 0.593397855758667, -0.21636098623275757, -0.9490646123886108, -0.18781089782714844, -0.40356892347335815, -1.031912922859192, 0.1781373769044876, -0.36859309673309326, -1.067374587059021, 0.5503962635993958, -0.05463217943906784, -0.37923872470855713, 0.17571313679218292, -0.49832794070243835, 0.6501508355140686, -0.15792903304100037, -0.03785347938537598, 0.032205644994974136, -0.7654252052307129, 0.11718568950891495, 0.03991997241973877, 0.2272619754076004, -0.3454159200191498, 0.2103908658027649, 0.9005547165870667, -0.23935236036777496, 0.7447133660316467, -0.0826115533709526, 0.12290157377719879, 0.04965205118060112, 0.019487643614411354, 0.36714017391204834, -0.11562484502792358, -0.10683001577854156, 0.3518945872783661, 0.1297844648361206, -0.1731717884540558, -0.2834104597568512, 0.6634865999221802, -0.6436752080917358, -0.1800161451101303, -0.5548089146614075, -0.411106139421463, 0.11988696455955505, 0.35060712695121765, 0.5800106525421143, 0.5541220903396606, -0.12777765095233917, 0.13764479756355286, 0.809951901435852, -0.17670583724975586, 0.39925816655158997, 0.7512499094009399, 0.029104582965373993, -0.34237927198410034, 0.6899259090423584, 0.42911380529403687, 0.06157377362251282, 0.40815335512161255, -0.11300446838140488, -0.05215794965624809, -0.7427781820297241, -0.5319406986236572, 0.42742031812667847, -0.581856906414032, -0.49059802293777466, -0.6767148971557617, -0.37770023941993713, -0.36487260460853577, 0.16769686341285706, -0.33185702562332153, -0.5907516479492188, -0.5812291502952576, 0.01726728305220604, 0.25102511048316956, 0.6072700023651123, -0.1859978586435318, 0.2731667459011078, -0.6651778817176819, 0.2091464251279831, -0.09951940923929214, 0.41076895594596863, -0.0950293242931366, -0.8727719783782959, -0.4743795692920685, 0.22910958528518677, -0.1846180409193039, -0.9260271787643433, 0.5897659659385681, 0.24819456040859222, 0.6760732531547546, 0.1941561996936798, 0.024262506514787674, 0.623301088809967, -0.6508992314338684, 0.4850133955478668, -0.0967642143368721, -0.8065003752708435, 0.47546982765197754, -0.29066145420074463, 0.23930202424526215, 0.6075396537780762, 0.44580987095832825, -0.4878523647785187, -0.40737560391426086, -0.722087025642395, -1.2319146394729614, 1.0905277729034424, 0.5999471545219421, 0.1859477460384369, -0.15663278102874756, 0.4019429683685303, 0.1904577761888504, 0.1474597454071045, -0.9939923286437988, -0.5549251437187195, 0.3539893329143524, -0.2018231600522995, 0.2022894024848938, -0.48850175738334656, 0.2269955724477768, -0.49446800351142883, 1.2346553802490234, 0.31564128398895264, 0.4758439362049103, 0.076802559196949, -0.3295501172542572, -0.07461060583591461, 0.3686907887458801, 0.7821730375289917, 0.5328515768051147, -0.3457576632499695, -0.0505327545106411, 0.39514392614364624, -0.37495461106300354, -0.21573583781719208, 0.3319118618965149, -0.2026158571243286, 0.3645915389060974, 0.13864919543266296, 0.9828650951385498, 0.42993730306625366, -0.3570088744163513, 0.16635367274284363, -0.12010539323091507, -0.10670723021030426, -0.34995537996292114, -0.11050787568092346, -0.03639502078294754, 0.3692430853843689, 0.42503294348716736, 0.22603173553943634, 0.15439371764659882, -0.48046553134918213, 0.006044313311576843, 0.39175254106521606, -0.25083643198013306, -0.47434690594673157, 0.4349638819694519, -0.028275802731513977, -0.3264389634132385, 0.7103404998779297, -0.29942697286605835, -0.7571864724159241, 0.545138955116272, 0.4668424129486084, 0.6888355612754822, -0.22163985669612885, 0.0802125558257103, 0.6131599545478821, 0.45517775416374207, -0.13083197176456451, 0.5088839530944824, -0.03267800435423851, -0.7988041043281555, -0.14079439640045166, -0.9311803579330444, -0.18464155495166779, -0.043338529765605927, -0.7014032006263733, 0.5563722848892212, -0.24520978331565857, -0.36595726013183594, 0.38350608944892883, 0.17069703340530396, -0.9369540214538574, 0.28156763315200806, 0.46099644899368286, 0.9498305916786194, -0.769960880279541, 0.881355881690979, 0.9360741376876831, -0.33870241045951843, -0.7629677653312683, -0.27169984579086304, -0.4276449978351593, -0.51674884557724, 0.9863795638084412, 0.11466895788908005, 0.13632850348949432, 0.07837856560945511, -0.6377840042114258, -1.2375551462173462, 0.9201341271400452, 0.30059200525283813, -0.6947631239891052, -0.16037525236606598, -0.028620630502700806, 0.7903895974159241, -0.34621462225914, 0.33800962567329407, 0.4557287096977234, 0.6213572025299072, 0.1686975508928299, -1.0671682357788086, 0.04044844210147858, -0.20396630465984344, 0.06802346557378769, 0.39344272017478943, -0.43656018376350403, 0.7272604703903198, -0.300577312707901, -0.39484521746635437, 0.43113553524017334, 0.5815693736076355, 0.2269473820924759, 0.12751132249832153, 0.17649318277835846, 0.5732215642929077, 0.6713557243347168, -0.3815153241157532, 0.7441460490226746, -0.2813783288002014, 0.5990939736366272, 1.0675803422927856, -0.004513836465775967, 0.7336423993110657, 0.4242003858089447, -0.243574321269989, 0.7479807138442993, 0.8383939862251282, -0.40060853958129883, 0.721254289150238, 0.21063232421875, -0.07350882142782211, -0.20668402314186096, 0.08426608145236969, -0.13079902529716492, 0.531779408454895, 0.3534676730632782, -0.4902762472629547, -0.24244073033332825, 0.055755261331796646, 0.16971227526664734, -0.42561259865760803, -0.23674607276916504, 0.7655214071273804, 0.08178286254405975, -0.4930126368999481, 0.6752635836601257, 0.23062804341316223, 0.7105610966682434, -0.4524476230144501, 0.13330824673175812, 0.043531835079193115, 0.0071191564202308655, -0.1383729726076126, -0.3896196484565735, 0.2010868787765503, 0.0288507379591465, -0.546889066696167, -0.03369636833667755, 0.5728208422660828, -0.5790387988090515, -0.773938775062561, 0.2621769309043884, 0.22774638235569, 0.43607741594314575, 0.20151439309120178, -0.7266516089439392, -0.11300873756408691, -0.07983249425888062, -0.266840398311615, 0.16645267605781555, 0.45243772864341736, -0.09821418672800064, 0.6119285821914673, 0.42428675293922424, 0.28369128704071045, 0.17409482598304749, 0.200531005859375, 0.745387852191925, -0.5253832936286926, -0.2905333340167999, -0.8981507420539856, 0.5239098072052002, 0.11561531573534012, -0.19487202167510986, 0.61745285987854, 0.6022273898124695, 0.8640764951705933, -0.14911635220050812, 0.4938500225543976, -0.38234180212020874, 0.5803924798965454, -0.3815350830554962, 0.7777575850486755, -0.356961727142334, 0.20561078190803528, -0.38824477791786194, -1.1747410297393799, -0.4238165616989136, 0.6297128796577454, -0.4184596538543701, 0.12632136046886444, 0.41789138317108154, 0.653933048248291, -0.11877156049013138, -0.2948542535305023, 0.2705812454223633, 0.6023558974266052, -0.029830103740096092, 0.4039771258831024, 0.5304374694824219, -0.600648820400238, 0.3860010504722595, -0.3326794505119324, -0.05309086665511131, -0.33435383439064026, -0.7722156047821045, -0.9123871326446533, -0.694832444190979, -0.4920862317085266, -0.24598848819732666, 0.2097945660352707, 1.2478082180023193, 0.6528800129890442, -1.129067063331604, -0.044221702963113785, 0.14651547372341156, 0.10231485962867737, -0.06324386596679688, -0.19822154939174652, 0.279173880815506, -0.13470463454723358, -0.8701602816581726, 0.17744320631027222, 0.04905761405825615, 0.30142107605934143, 0.17675341665744781, 0.12676244974136353, -0.5154311656951904, 0.08598175644874573, 0.4665990173816681, 0.272732138633728, -0.8593723773956299, -0.321757435798645, -0.08481498062610626, -0.26779472827911377, 0.10965382307767868, 0.3059478998184204, -0.782158613204956, 0.41227877140045166, 0.5528513789176941, 0.0542251355946064, 0.3760937750339508, -0.10249704122543335, 0.40598782896995544, -0.730500340461731, -0.10742802172899246, 0.22430993616580963, 0.5749141573905945, 0.3830910623073578, -0.3483171761035919, 0.323347270488739, 0.18086527287960052, -0.5658661127090454, -0.8719810247421265, -0.06491208076477051, -1.1255520582199097, -0.08684264123439789, 1.1334348917007446, -0.04253220558166504, -0.085093192756176, -0.1720985323190689, -0.2914247512817383, 0.5833761096000671, -0.47558802366256714, 0.8535221815109253, 0.8338755965232849, -0.02454794943332672, 0.06283123046159744, -0.2774777114391327, 0.3556588590145111, 0.09985281527042389, -0.3980334997177124, -0.043429356068372726, 0.2698729336261749, 0.6248507499694824, 0.1735665500164032, 0.3017056882381439, 0.08248894661664963, 0.09995024651288986, -0.4933553636074066, 0.3133077621459961, 0.09553375095129013, -0.41737523674964905, -0.32589295506477356, -0.3528762757778168, -0.04959024116396904, -0.0956333801150322 ]
lmsys/vicuna-13b-v1.3
lmsys
"2023-08-01T18:26:48Z"
31,498
167
transformers
[ "transformers", "pytorch", "llama", "text-generation", "arxiv:2302.13971", "arxiv:2306.05685", "has_space", "text-generation-inference", "region:us" ]
text-generation
"2023-06-18T03:38:59Z"
--- inference: false --- **NOTE: New version available** Please check out a newer version of the weights [here](https://github.com/lm-sys/FastChat/blob/main/docs/vicuna_weights_version.md). <br> # Vicuna Model Card ## Model Details Vicuna is a chat assistant trained by fine-tuning LLaMA 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:** Non-commercial license - **Finetuned from model:** [LLaMA](https://arxiv.org/abs/2302.13971). ### 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.3 is fine-tuned from LLaMA with supervised instruction fine-tuning. The training data is around 125K conversations collected from ShareGPT.com. 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 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.17386525869369507, -0.8873119354248047, 0.37465184926986694, 0.47392046451568604, -0.5513039827346802, -0.2249806672334671, -0.23071976006031036, -0.5998325347900391, 0.39089152216911316, 0.3711991310119629, -0.5524806380271912, -0.514024555683136, -0.6820967793464661, -0.03347659856081009, -0.16023598611354828, 0.8999468088150024, 0.09735230356454849, 0.21627044677734375, -0.09077059477567673, -0.37804192304611206, -0.9183299541473389, -0.5232017636299133, -1.0575838088989258, -0.36404895782470703, 0.6493209004402161, 0.4852057695388794, 0.6534173488616943, 0.5411381721496582, 0.3497421443462372, 0.4072120189666748, -0.10032783448696136, 0.273056298494339, -0.6189273595809937, 0.05796508863568306, 0.37758830189704895, -0.9088160395622253, -0.7039766907691956, -0.25956159830093384, 0.5772742033004761, 0.08512721955776215, -0.259730726480484, 0.1959328055381775, 0.0069314599968492985, 0.4878958761692047, -0.34509268403053284, 0.3773108422756195, -0.6253842115402222, -0.2708902359008789, -0.24062827229499817, -0.5851266384124756, -0.3028230667114258, -0.3375905454158783, -0.13877877593040466, -0.49112752079963684, -0.05192406848073006, -0.06413835287094116, 1.153347373008728, 0.5697835087776184, -0.39723503589630127, -0.1918507218360901, -0.6358785629272461, 0.628026008605957, -0.940616250038147, 0.44648921489715576, 0.45449990034103394, 0.6272792816162109, -0.2356746345758438, -0.597319483757019, -0.5228556990623474, -0.4010871648788452, 0.06996962428092957, -0.05728672817349434, -0.2745889127254486, 0.05018625780940056, 0.05459512397646904, 0.4872686266899109, -0.3759767413139343, 0.41243019700050354, -0.5869967341423035, 0.013685556128621101, 0.6155716180801392, 0.34003499150276184, 0.17572304606437683, -0.17908217012882233, -0.3756878674030304, -0.40864500403404236, -0.2899567782878876, -0.03086668811738491, 0.4074985980987549, 0.5247970223426819, -0.5728845596313477, 0.561190664768219, -0.29417508840560913, 0.6152346730232239, -0.052635904401540756, -0.21134603023529053, 0.5240268707275391, -0.11932443827390671, -0.4433459937572479, -0.18772722780704498, 1.1932324171066284, 0.5072283148765564, 0.015966162085533142, 0.17664247751235962, 0.03954031318426132, -0.148587167263031, 0.17182426154613495, -0.8355385065078735, 0.017448730766773224, 0.5217755436897278, -0.3012714087963104, -0.5291150212287903, -0.20168396830558777, -0.33152511715888977, -0.5020779967308044, -0.24532723426818848, 0.4535777270793915, -0.4684208929538727, -0.3842126727104187, 0.35292789340019226, 0.010420479811728, 0.3242139518260956, 0.5337916016578674, -0.6558172106742859, 0.4616347849369049, 0.49437373876571655, 1.0904216766357422, 0.00313577800989151, -0.40886086225509644, -0.2277458757162094, -0.41212812066078186, -0.1516939103603363, 0.8712363243103027, 0.04328007623553276, -0.2733020484447479, -0.12907910346984863, 0.22557558119297028, -0.04641392081975937, -0.5265804529190063, 0.7011093497276306, -0.3173314332962036, 0.3815336227416992, -0.16821804642677307, -0.5287049412727356, 0.010841471143066883, 0.2356620579957962, -0.651729941368103, 1.273863673210144, 0.07300480455160141, -0.8333606719970703, 0.10745677351951599, -0.5312663912773132, -0.01898198388516903, 0.08326154947280884, 0.01932702027261257, -0.5365228652954102, -0.09200967103242874, 0.020759738981723785, 0.5824976563453674, -0.42782238125801086, 0.3902285099029541, -0.25601130723953247, -0.5687638521194458, 0.2415659874677658, -0.44374874234199524, 1.1149296760559082, 0.2613605856895447, -0.3275883197784424, 0.46873295307159424, -0.7880796790122986, -0.11316519975662231, 0.357699453830719, -0.3342357277870178, -0.40358540415763855, -0.14407478272914886, -0.0154236676171422, -0.01912001706659794, 0.5299084782600403, -0.32468917965888977, 0.33677762746810913, -0.06618759036064148, 0.21081019937992096, 0.728302538394928, -0.0743364691734314, 0.26182809472084045, -0.4497598111629486, 0.3786337971687317, -0.049544595181941986, 0.6852278709411621, 0.21731525659561157, -0.5145089626312256, -1.0941518545150757, -0.45264896750450134, 0.05526651069521904, 0.6637109518051147, -0.7960042953491211, 0.6922377347946167, -0.4345407485961914, -1.0782802104949951, -0.9149898886680603, 0.25461480021476746, 0.3973354399204254, 0.05951755493879318, 0.3289358913898468, -0.5082272291183472, -0.7366963624954224, -0.9261356592178345, -0.17714251577854156, -0.3218308985233307, -0.06668100506067276, 0.4115299582481384, 0.2610396146774292, -0.5048802495002747, 0.831781268119812, -0.5118768215179443, -0.3567518889904022, -0.15669801831245422, -0.002006013412028551, 0.07236959040164948, 0.3991836607456207, 0.645399272441864, -0.6134812831878662, -0.3701954483985901, -0.11683378368616104, -0.7346957921981812, -0.045405998826026917, -0.06505189836025238, -0.4351820647716522, 0.06724253296852112, 0.47188955545425415, -0.6725958585739136, 0.3831200897693634, 0.7166552543640137, -0.43063071370124817, 0.4865899384021759, -0.23884229362010956, -0.030189726501703262, -1.4079135656356812, -0.031422704458236694, 0.10704497247934341, -0.48972654342651367, -0.5748111605644226, -0.023055192083120346, -0.01928909681737423, 0.4235493242740631, -0.729569137096405, 1.0252363681793213, -0.42536088824272156, 0.14417660236358643, -0.5001966953277588, -0.09708933532238007, -0.11098261177539825, 0.8002921342849731, -0.021756477653980255, 0.6805088520050049, 0.4041036069393158, -0.8693076968193054, 0.4860483705997467, 0.15514491498470306, -0.29541918635368347, 0.2792153060436249, -0.9645723104476929, 0.2586537003517151, 0.004017471335828304, 0.3335488438606262, -0.8700125217437744, -0.036731209605932236, 0.5878747701644897, -0.582200825214386, 0.19662030041217804, -0.03326788172125816, -0.4766504764556885, -0.19750186800956726, -0.2855784296989441, 0.20678333938121796, 0.34209734201431274, -0.4527873396873474, 0.275739461183548, 0.49709582328796387, 0.13259486854076385, -0.5932108759880066, -0.6008023023605347, -0.01487810630351305, -0.4010300934314728, -0.09993404895067215, 0.04394536092877388, -0.29166239500045776, -0.24229025840759277, -0.2285958230495453, 0.10437636077404022, -0.09959783405065536, 0.11157499998807907, 0.31727737188339233, 0.038750696927309036, 0.04465695470571518, 0.17359474301338196, -0.16418267786502838, 0.015836423262953758, -0.16264908015727997, -0.0686502456665039, 1.0555980205535889, -0.511688232421875, 0.103970006108284, -0.8693263530731201, -0.16892144083976746, 0.6015280485153198, 0.10659617930650711, 1.309430718421936, 0.8756766319274902, -0.24605348706245422, 0.19384953379631042, -0.7176270484924316, -0.2122081071138382, -0.5083727240562439, 0.4561966359615326, -0.2051151841878891, -0.8560553789138794, 0.6167310476303101, 0.40631404519081116, 0.34072765707969666, 0.473555326461792, 0.8199845552444458, 0.11621150374412537, 0.5880738496780396, 0.9281468987464905, -0.17690986394882202, 1.0474449396133423, -0.27068760991096497, -0.1536455601453781, -0.8017188310623169, -0.3088116943836212, -0.6666895747184753, -0.13174161314964294, -0.6979888081550598, -0.6598291993141174, 0.0047621955163776875, -0.03123464062809944, -0.3669942319393158, 0.7678202986717224, -0.5545024275779724, 0.07420549541711807, 0.5899434089660645, 0.35583749413490295, 0.29961755871772766, -0.08612409979104996, 0.2536165118217468, 0.1402602344751358, -0.6856510639190674, -0.5924798846244812, 1.060460090637207, 0.6818826794624329, 0.7285240888595581, 0.13719739019870758, 0.6291906237602234, 0.2717561721801758, 0.5318633317947388, -0.9456838965415955, 0.5420125126838684, 0.2755661904811859, -0.7373736500740051, -0.4368111789226532, -0.846172571182251, -1.1358281373977661, 0.379810631275177, -0.186069056391716, -0.779409646987915, 0.14062295854091644, 0.09355946630239487, -0.1443878412246704, 0.30616992712020874, -0.7524959444999695, 0.8290836811065674, -0.41643938422203064, -0.2448299080133438, -0.05008132383227348, -0.5116773843765259, 0.605294942855835, 0.15462151169776917, 0.1374027132987976, -0.20666764676570892, -0.10594987124204636, 0.8636919260025024, -0.6751043796539307, 1.1867380142211914, -0.17803800106048584, -0.3820251524448395, 0.25239595770835876, -0.13337767124176025, 0.292962908744812, 0.00875272136181593, 0.05163596570491791, 0.4105977714061737, 0.12603889405727386, -0.5498507618904114, -0.5734674334526062, 0.6188274621963501, -1.1572847366333008, -0.3847493529319763, -0.28405022621154785, -0.4272249937057495, 0.09658391773700714, 0.17507228255271912, 0.3695259690284729, 0.29035553336143494, -0.17842890322208405, 0.29446202516555786, 0.5541286468505859, -0.41870400309562683, -0.019290929660201073, 0.48828125, -0.3274877071380615, -0.4690918028354645, 0.6514379978179932, -0.028199823573231697, 0.16666355729103088, 0.5978800654411316, 0.20992214977741241, -0.12476638704538345, -0.17197640240192413, -0.1722153127193451, 0.3908372223377228, -0.4919314384460449, -0.2360236495733261, -0.8487024903297424, -0.21606571972370148, -0.4367983341217041, 0.4840468466281891, -0.8542569279670715, -0.3942018151283264, -0.3218916356563568, -0.04994996264576912, 0.7821846604347229, 0.4172215461730957, 0.3185526132583618, 0.8936852216720581, -0.5939522385597229, 0.2254536896944046, 0.22064626216888428, 0.34654611349105835, 0.042817622423172, -0.7408087253570557, -0.5427366495132446, 0.17678575217723846, -0.31856009364128113, -0.8448708653450012, 0.5198530554771423, -0.09226343035697937, 0.4695548415184021, 0.41090619564056396, -0.000198624751647003, 0.8231368660926819, -0.22500623762607574, 0.5873976349830627, 0.189767986536026, -0.5247607231140137, 0.43300214409828186, -0.25972414016723633, 0.37012383341789246, 0.6627124547958374, 0.41806697845458984, -0.6540981531143188, -0.3098492920398712, -0.810326099395752, -0.7579658627510071, 0.49789300560951233, 0.33213090896606445, 0.3610345721244812, -0.023431889712810516, 0.49604713916778564, 0.08002881705760956, 0.27915671467781067, -0.8816354274749756, -0.5217770934104919, -0.08140838146209717, -0.3371240496635437, -0.24015317857265472, -0.2886083126068115, 0.034047793596982956, -0.44695183634757996, 0.7346730828285217, -0.11936365813016891, 0.5526939034461975, 0.0648043230175972, -0.02836519479751587, -0.05577763170003891, 0.1550656408071518, 0.6818881630897522, 0.3066359758377075, -0.49852582812309265, -0.27691981196403503, 0.1966101974248886, -0.540843665599823, -0.08911659568548203, 0.1376044601202011, 0.02142729051411152, 0.10462186485528946, 0.3464447259902954, 1.5099217891693115, 0.39282914996147156, -0.5126599669456482, 0.38310977816581726, -0.8102772235870361, -0.21955391764640808, -0.4344143271446228, 0.2029908299446106, 0.15711195766925812, 0.4321919083595276, 0.13728341460227966, -0.14159037172794342, -0.11856703460216522, -0.7159550189971924, -0.21972566843032837, 0.38427531719207764, -0.42277801036834717, -0.2900814414024353, 0.6402697563171387, 0.1837289035320282, -0.4896232783794403, 0.3805520236492157, 0.042962297797203064, -0.3514194190502167, 0.4257637858390808, 0.14026717841625214, 0.8924685120582581, -0.25465071201324463, 0.11563614010810852, 0.5042576789855957, 0.30757516622543335, -0.1740931123495102, 0.2027355283498764, -0.21710821986198425, -0.8081202507019043, -0.0003460222505964339, -0.6973991990089417, -0.6135490536689758, 0.31572332978248596, -0.6714070439338684, 0.4751596450805664, -0.35874584317207336, -0.5570432543754578, -0.40646201372146606, 0.5843971967697144, -0.9498826265335083, -0.030408533290028572, -0.1465182900428772, 0.8948774933815002, -0.7574506998062134, 1.0464460849761963, 0.6182951927185059, -0.47552043199539185, -0.9281348586082458, -0.361871600151062, -0.06623443216085434, -0.8922234177589417, 0.16155849397182465, 0.05304422974586487, -0.01473705843091011, -0.10499094426631927, -0.7263795137405396, -0.789763867855072, 1.440227746963501, 0.39000019431114197, -0.6100309491157532, -0.2168457806110382, -0.14993995428085327, 0.6750602722167969, -0.10240057110786438, 0.5973390340805054, 0.4182540476322174, 0.1930035501718521, 0.0718979611992836, -1.2585761547088623, 0.00683343131095171, -0.5064211487770081, -0.015436111018061638, -0.19609706103801727, -1.1817692518234253, 0.9262616038322449, 0.04558014124631882, -0.03880345821380615, 0.27484530210494995, 0.8899516463279724, 0.5335351228713989, 0.11351990699768066, 0.5644309520721436, 0.37307509779930115, 1.0166863203048706, 0.11166142672300339, 1.1835222244262695, -0.15981760621070862, 0.20907418429851532, 1.227744698524475, 0.07215230166912079, 0.897607147693634, 0.4315407872200012, -0.020237520337104797, 0.5740986466407776, 0.8017222285270691, 0.2593715786933899, 0.20203441381454468, 0.0020452134776860476, 0.07525355368852615, 0.01806049421429634, 0.053313713520765305, -0.45356127619743347, 0.5001222491264343, 0.2499888688325882, -0.17796771228313446, 0.14306481182575226, -0.10208148509263992, 0.3658565878868103, -0.31769901514053345, -0.04815731197595596, 0.7795254588127136, 0.3179236054420471, -0.5767432451248169, 1.1071757078170776, 0.1426088958978653, 1.1339318752288818, -0.7706149220466614, 0.25980550050735474, -0.4994182884693146, 0.39145466685295105, -0.011474862694740295, -0.19796514511108398, 0.05519856512546539, 0.14857889711856842, 0.2578727900981903, 0.024411015212535858, 0.512913167476654, -0.3811105787754059, -0.34843239188194275, 0.3754420876502991, 0.5648908019065857, 0.5352795720100403, 0.00481175584718585, -0.7834673523902893, 0.48980867862701416, -0.09493755549192429, -0.6068426370620728, 0.24257315695285797, 0.3812451660633087, -0.19866463541984558, 1.069670557975769, 0.516409158706665, 0.1365346759557724, 0.028928011655807495, 0.34995797276496887, 0.9105482697486877, -0.517677366733551, -0.4478215277194977, -0.7767823338508606, 0.33558088541030884, -0.059827663004398346, -0.5115709900856018, 0.9521838426589966, 0.477584570646286, 0.7371748089790344, 0.16236324608325958, 0.40537524223327637, -0.03360183909535408, 0.29109761118888855, -0.5137433409690857, 0.7532810568809509, -0.8532458543777466, 0.2170076221227646, -0.3774275481700897, -0.9023096561431885, -0.15867580473423004, 0.6279875040054321, -0.18204790353775024, 0.16786658763885498, 0.4708637595176697, 0.7957500219345093, 0.14505299925804138, -0.26209598779678345, 0.26483166217803955, 0.3203597962856293, 0.48187848925590515, 0.5025671720504761, 0.5885996222496033, -0.8267117738723755, 0.5390608906745911, -0.19026130437850952, -0.2946540117263794, -0.5132640600204468, -0.6733208894729614, -1.154516339302063, -0.6756090521812439, -0.21152010560035706, -0.30442386865615845, 0.16525816917419434, 1.0518072843551636, 0.7316902279853821, -0.28984907269477844, -0.6627168655395508, 0.088145412504673, -0.04214475303888321, -0.26852917671203613, -0.22658424079418182, 0.2148434966802597, -0.05834534019231796, -0.9320610761642456, 0.20083604753017426, -0.3410106599330902, 0.24308891594409943, -0.3211769461631775, -0.4241471588611603, -0.31048786640167236, 0.09292793273925781, 0.43409183621406555, 0.5397181510925293, -0.48197853565216064, 0.010655615478754044, -0.10439801961183548, -0.44190800189971924, 0.1886623054742813, 0.3213067650794983, -0.7324545383453369, 0.05935504287481308, 0.39029642939567566, 0.16056476533412933, 0.7010032534599304, -0.06085183843970299, 0.4689938724040985, -0.7448170781135559, 0.60210782289505, -0.09057395905256271, 0.42187273502349854, 0.537139356136322, -0.3513231575489044, 0.43756988644599915, -0.050546787679195404, -0.39496323466300964, -0.9988550543785095, -0.19873520731925964, -1.0316463708877563, -0.20207402110099792, 1.2850680351257324, 0.2770947515964508, -0.6181493997573853, 0.16216769814491272, -0.601279079914093, 0.7097525000572205, -0.3719806969165802, 0.7813642621040344, 0.4658631682395935, 0.2695649564266205, -0.5577996969223022, -0.7745330929756165, 0.5301609039306641, 0.2768976092338562, -0.9050149917602539, 0.06514190882444382, 0.2813422977924347, 0.4565453827381134, -0.004434284288436174, 1.2961775064468384, -0.049230847507715225, 0.0008192566456273198, -0.16968286037445068, 0.5374398231506348, -0.2985886335372925, -0.4130873382091522, -0.24423274397850037, -0.3861982226371765, 0.19760188460350037, -0.34283310174942017 ]
Rostlab/prot_bert
Rostlab
"2023-11-16T15:07:57Z"
31,468
55
transformers
[ "transformers", "pytorch", "fill-mask", "protein language model", "protein", "dataset:Uniref100", "autotrain_compatible", "endpoints_compatible", "has_space", "region:us" ]
fill-mask
"2022-03-02T23:29:04Z"
--- tags: - protein language model - protein datasets: - Uniref100 --- # ProtBert 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 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", do_lower_case=False ) >>> model = BertForMaskedLM.from_pretrained("Rostlab/prot_bert") >>> 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.11088453233242035, '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.08402521163225174, '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.07328339666128159, '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.06921856850385666, 'sequence': '[CLS] D L I P T S S K L V V K D T S L Q V K K A F F A L V T [SEP]', 'token': 12, 'token_str': 'K'}, {'score': 0.06382402777671814, 'sequence': '[CLS] D L I P T S S K L V V I D T S L Q V K K A F F A L V T [SEP]', 'token': 11, 'token_str': 'I'}] ``` 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", do_lower_case=False ) model = BertModel.from_pretrained("Rostlab/prot_bert") 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 model was pretrained on [Uniref100](https://www.uniprot.org/downloads), a dataset consisting of 217 million protein sequences. ## Training procedure ### Preprocessing The protein sequences are uppercased and tokenized using a single space and a vocabulary size of 21. The rare amino acids "U,Z,O,B" were mapped to "X". 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-512 for 400k steps in total. 300K steps using sequence length 512 (batch size 15k), and 100K steps using sequence length 2048 (batch size 2.5k). The optimizer used is Lamb with a learning rate of 0.002, a weight decay of 0.01, learning rate warmup for 40k 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 | 75 | 63 | | | | TS115 | 83 | 72 | | | | CB513 | 81 | 66 | | | | DeepLoc | | | 79 | 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.13460959494113922, -0.5158374309539795, 0.261588454246521, 0.0605865940451622, -0.31083041429519653, 0.22041885554790497, 0.053840070962905884, -0.29292625188827515, 0.38936394453048706, 0.36417120695114136, -0.5545072555541992, -0.3991030752658844, -0.7606701254844666, 0.2264116108417511, -0.3449290096759796, 0.9256062507629395, 0.232599675655365, 0.32352718710899353, 0.1299702376127243, -0.01455104909837246, 0.04926252365112305, -0.6269950866699219, -0.4742966294288635, -0.4006497263908386, 0.6229566335678101, 0.2599901556968689, 0.5479611754417419, 0.74332594871521, 0.46492332220077515, 0.2964622676372528, -0.24773727357387543, 0.03703916817903519, -0.4091225564479828, -0.028786273673176765, 0.10726595669984818, -0.37021544575691223, -0.571796178817749, -0.010016237385571003, 0.6605457663536072, 0.8340356349945068, 0.16372983157634735, 0.34566065669059753, 0.014630711637437344, 0.8120819926261902, -0.4013814628124237, 0.2356797158718109, -0.45134031772613525, 0.11706491559743881, -0.24793560802936554, 0.11471712589263916, -0.3846205174922943, -0.2585594654083252, 0.13002419471740723, -0.4545910954475403, 0.18467995524406433, 0.06885036081075668, 0.9480255246162415, 0.08605840057134628, -0.1465100347995758, -0.10379505902528763, -0.5217335224151611, 0.6757744550704956, -0.8630797266960144, 0.534339964389801, 0.40705522894859314, 0.09460704773664474, -0.44207027554512024, -0.9580692052841187, -0.5562992691993713, -0.28324562311172485, -0.06964153796434402, 0.06177349388599396, 0.03085383214056492, 0.10300620645284653, 0.2972930371761322, 0.4323286712169647, -0.7103439569473267, -0.014037102460861206, -0.6997444033622742, -0.3079646825790405, 0.7385181784629822, -0.13336016237735748, 0.26322513818740845, -0.3064902126789093, -0.2062402218580246, -0.34340015053749084, -0.5731325149536133, 0.18979592621326447, 0.4469013512134552, 0.320435106754303, 0.019237779080867767, 0.647038459777832, -0.1602763533592224, 0.5544725656509399, -0.009142757393419743, 0.07806418836116791, 0.4929927885532379, -0.07889895886182785, -0.39376768469810486, 0.005089112091809511, 0.9401682615280151, -0.017526935786008835, 0.35313087701797485, -0.030905630439519882, -0.10288532823324203, -0.3133796751499176, 0.1928463876247406, -0.68060302734375, -0.5512703657150269, 0.4850064814090729, -0.6115966439247131, -0.1489923745393753, 0.3290092945098877, -0.7093859910964966, -0.14114487171173096, -0.194870725274086, 0.7481397390365601, -0.6043717265129089, -0.02101046033203602, 0.1774516999721527, -0.18177801370620728, 0.1893702745437622, 0.020119158551096916, -0.7274945974349976, 0.2030973583459854, 0.36742958426475525, 0.8415070176124573, -0.0531935952603817, -0.16758789122104645, -0.41819968819618225, -0.05493468791246414, -0.07905682921409607, 0.5291659235954285, -0.42319002747535706, -0.34141919016838074, -0.11463242024183273, 0.267924040555954, -0.08645689487457275, -0.4069725573062897, 0.40796831250190735, -0.5338665246963501, 0.08175326883792877, -0.16700312495231628, -0.708097517490387, -0.38671961426734924, -0.14422821998596191, -0.7434702515602112, 1.019814133644104, 0.19302783906459808, -0.6149758100509644, 0.19498133659362793, -0.7520904541015625, -0.3710382878780365, 0.2910229563713074, -0.02211381308734417, -0.4890049695968628, 0.04316894710063934, 0.17742933332920074, 0.42032182216644287, 0.022009367123246193, 0.277858167886734, -0.3371777832508087, -0.2931712865829468, 0.36861276626586914, -0.023187709972262383, 0.8389741778373718, 0.3192605674266815, -0.2717541754245758, 0.15088722109794617, -0.970923662185669, 0.29885298013687134, 0.152829110622406, -0.48523107171058655, 0.08388540148735046, -0.05072765797376633, 0.02552737481892109, 0.20581971108913422, 0.2634662389755249, -0.6139675378799438, 0.5389192700386047, -0.47739407420158386, 0.7317513823509216, 0.738518238067627, 0.009925583377480507, 0.2999371886253357, -0.2563079595565796, 0.377912312746048, 0.043937716633081436, 0.13456198573112488, -0.04009900987148285, -0.6491255164146423, -0.7346110343933105, -0.46325647830963135, 0.6001366972923279, 0.604873776435852, -0.435511976480484, 0.6774163842201233, -0.17551568150520325, -0.6072049140930176, -0.6987594366073608, -0.01982320100069046, 0.39609894156455994, 0.1801341474056244, 0.6275824904441833, -0.3822709619998932, -0.8093010187149048, -0.9132670164108276, -0.24269838631153107, -0.11990196257829666, -0.23530764877796173, 0.15539556741714478, 0.7422069311141968, -0.2680473029613495, 0.7570587992668152, -0.4998127818107605, -0.2686257064342499, -0.3621320426464081, 0.037715282291173935, 0.5329859256744385, 0.6966917514801025, 0.2255883514881134, -0.5995790362358093, -0.46994537115097046, -0.3083297312259674, -0.6446974277496338, -0.015263264067471027, 0.054599396884441376, -0.008956458419561386, 0.099139504134655, 0.41806063055992126, -0.6140896081924438, 0.5349330902099609, 0.3611389696598053, -0.24716530740261078, 0.5228573083877563, -0.4155580699443817, -0.06189991161227226, -1.0021110773086548, 0.2665676772594452, -0.1823115199804306, -0.18519005179405212, -0.836914598941803, -0.08884257078170776, -0.011894944123923779, -0.0028433699626475573, -0.650834321975708, 0.5067821145057678, -0.5499958992004395, -0.0864010825753212, -0.03703112527728081, -0.2254824936389923, -0.04990323632955551, 0.5998725295066833, -0.003258491400629282, 0.5741791725158691, 0.5187732577323914, -0.6466603875160217, 0.19990146160125732, 0.4633130133152008, -0.45327451825141907, -0.2613423764705658, -0.8733217716217041, 0.10688403248786926, -0.048281725496053696, 0.3018411099910736, -0.9023301005363464, -0.1777115911245346, 0.3730638921260834, -0.6347436308860779, 0.2855367362499237, -0.004098193254321814, -0.4909692704677582, -0.5023260116577148, -0.3189190626144409, 0.45018109679222107, 0.6166269183158875, -0.29377758502960205, 0.46031126379966736, 0.29641851782798767, -0.035550277680158615, -0.5850361585617065, -0.6509935855865479, -0.13978731632232666, -0.043527405709028244, -0.4478824734687805, 0.5101916790008545, -0.10585956275463104, 0.05929390341043472, -0.15999560058116913, -0.20741106569766998, 0.051474615931510925, -0.1360873132944107, 0.3404695391654968, 0.09575919061899185, -0.0707659125328064, 0.03738253191113472, -0.2122432440519333, -0.04725624993443489, -0.13034683465957642, -0.49613937735557556, 0.7950161099433899, -0.10875009000301361, -0.05895083397626877, -0.481716513633728, 0.41584011912345886, 0.57624351978302, -0.1833891123533249, 0.818118155002594, 0.6801127791404724, -0.49861180782318115, 0.044962067157030106, -0.3233603239059448, -0.2557934820652008, -0.4683462679386139, 0.5139796733856201, -0.37923386693000793, -0.7325775623321533, 0.7365497350692749, 0.13667044043540955, -0.17556670308113098, 0.6471341252326965, 0.4208686351776123, -0.270620733499527, 0.8571341037750244, 0.6449265480041504, 0.033730633556842804, 0.44759228825569153, -0.641332745552063, 0.4674927890300751, -0.8323095440864563, -0.45688363909721375, -0.45864999294281006, -0.4505854547023773, -0.6141979694366455, -0.3543102741241455, 0.31785064935684204, 0.4021986126899719, -0.3696747422218323, 0.5855265855789185, -0.3746359348297119, 0.3003436028957367, 0.8601740598678589, 0.4255495071411133, -0.0987517386674881, 0.04353237524628639, -0.36687731742858887, 0.0077786799520254135, -0.8078415393829346, -0.45158058404922485, 1.2294056415557861, 0.5200749635696411, 0.5474123954772949, 0.12007042020559311, 0.7099629044532776, 0.4438735246658325, -0.005901719909161329, -0.7196698188781738, 0.5677202343940735, -0.40856876969337463, -0.6146009564399719, -0.3608167767524719, -0.19375713169574738, -0.9907106757164001, 0.024691401049494743, -0.292423278093338, -0.9686100482940674, 0.32978251576423645, 0.02511039562523365, -0.4401405453681946, 0.2547306716442108, -0.5806925296783447, 0.923092246055603, -0.19670400023460388, -0.2314651906490326, 0.05692782253026962, -0.9976001381874084, 0.19790737330913544, -0.1112210601568222, 0.19251655042171478, -0.0022476683370769024, 0.2532968521118164, 1.0478143692016602, -0.6413553357124329, 0.8965413570404053, -0.07751866430044174, 0.07122749090194702, 0.2475348860025406, 0.04328704625368118, 0.3611702024936676, 0.06523092091083527, -0.02202507108449936, 0.31806889176368713, 0.11445903033018112, -0.5805079340934753, -0.17904067039489746, 0.399089515209198, -0.8692799210548401, -0.4312353730201721, -0.5104799866676331, -0.49204498529434204, 0.12088528275489807, 0.2599254548549652, 0.6215106844902039, 0.509343147277832, 0.13410738110542297, 0.3557741641998291, 0.6460559964179993, -0.4149785041809082, 0.6415424942970276, 0.3914414644241333, -0.2177579402923584, -0.614743173122406, 0.7490151524543762, 0.2837101221084595, 0.19252337515354156, 0.5168262124061584, 0.15035712718963623, -0.5372719168663025, -0.6288057565689087, -0.16113826632499695, 0.23782257735729218, -0.6131420731544495, -0.3090263605117798, -0.8339494466781616, -0.5540667176246643, -0.6343024969100952, 0.08260081708431244, -0.375343918800354, -0.5762974619865417, -0.24830156564712524, -0.10923152416944504, 0.345027893781662, 0.6273738145828247, -0.38307690620422363, 0.38522017002105713, -1.0219558477401733, 0.3445684313774109, 0.19044362008571625, 0.2009589672088623, -0.2288743555545807, -0.828065037727356, -0.2879728376865387, 0.1622016727924347, -0.2887864112854004, -1.0553858280181885, 0.6462140083312988, 0.6732352375984192, 0.7507070302963257, 0.15497998893260956, 0.00004518149944487959, 0.44488948583602905, -0.4931304454803467, 0.97548508644104, -0.04145731031894684, -0.9256702661514282, 0.7379656434059143, -0.2041475623846054, 0.3444310128688812, 0.36394742131233215, 0.6397016644477844, -0.2816717028617859, -0.4327341616153717, -0.9433985352516174, -1.1237374544143677, 0.625131368637085, 0.34574446082115173, -0.1159529909491539, -0.06665463745594025, 0.502110481262207, 0.1907491534948349, 0.15737059712409973, -0.9468122720718384, -0.48771023750305176, -0.25975415110588074, -0.31807997822761536, -0.14838771522045135, -0.3173038363456726, 0.007645446807146072, -0.5372731685638428, 0.8596969842910767, -0.016417747363448143, 0.5614150762557983, 0.42347240447998047, -0.3758150041103363, 0.06416042149066925, 0.10593254119157791, 0.7387527227401733, 0.5288203358650208, -0.603354275226593, 0.0926784873008728, -0.050599388778209686, -0.8167473673820496, 0.07692813128232956, 0.12976209819316864, -0.17012067139148712, -0.019151123240590096, 0.6076069474220276, 0.7430800199508667, -0.020478324964642525, -0.5586864352226257, 0.2880067229270935, 0.18754540383815765, -0.292388916015625, -0.17341630160808563, -0.008703669533133507, -0.04677493870258331, 0.41637131571769714, 0.6477929353713989, -0.059097159653902054, 0.07557538896799088, -0.4837859869003296, 0.4956222176551819, 0.19665072858333588, -0.3434827923774719, -0.4269787073135376, 0.6839820742607117, -0.033249083906412125, -0.4631093144416809, 0.6798550486564636, -0.24502789974212646, -0.7541096806526184, 0.6357266306877136, 0.5514856576919556, 0.9329681396484375, -0.3026864230632782, 0.23023027181625366, 0.6340851783752441, 0.22059018909931183, -0.15813954174518585, 0.42970460653305054, 0.21192361414432526, -0.6918476223945618, -0.3313262164592743, -1.0758311748504639, -0.040869176387786865, 0.5105301737785339, -0.5414516925811768, 0.13526807725429535, -0.46294230222702026, -0.16052526235580444, 0.08813001215457916, 0.16571548581123352, -0.6108986139297485, 0.3109879493713379, 0.1473638117313385, 0.9945153594017029, -0.9746459126472473, 1.1410237550735474, 0.7667157649993896, -0.5788612961769104, -0.6919341087341309, -0.14456439018249512, -0.22274619340896606, -0.879754900932312, 1.0391027927398682, 0.32090815901756287, 0.26053449511528015, 0.1757386475801468, -0.5986299514770508, -0.9958122372627258, 0.966250479221344, 0.16428248584270477, -0.736239492893219, 0.006539404392242432, 0.1779843121767044, 0.6018055081367493, -0.39795976877212524, 0.1826493740081787, 0.5707917213439941, 0.356134295463562, 0.012311238795518875, -0.7388045787811279, 0.022908905521035194, -0.3729778826236725, -0.06669598817825317, 0.07268185168504715, -0.48993128538131714, 0.9122852087020874, -0.2423754334449768, -0.08168404549360275, 0.06528966873884201, 0.7410316467285156, 0.2532255947589874, -0.05183780938386917, 0.1916695088148117, 0.5904446244239807, 0.6604983806610107, -0.11327424645423889, 0.7363117337226868, -0.3441518545150757, 0.46155211329460144, 0.8637876510620117, 0.041142113506793976, 0.9272725582122803, 0.579340934753418, -0.48589614033699036, 0.5235581994056702, 0.834321141242981, -0.1649807244539261, 0.7665121555328369, 0.47516775131225586, -0.0323711596429348, -0.26287540793418884, 0.06401640176773071, -0.48376595973968506, 0.4088568687438965, 0.4562946856021881, -0.445998877286911, 0.08510202169418335, -0.018488045781850815, -0.09297320991754532, -0.1327224224805832, -0.30194535851478577, 0.5887635946273804, 0.2009621262550354, -0.4033368229866028, 0.6534966826438904, -0.06277400255203247, 0.5050835013389587, -0.6107298135757446, 0.034225862473249435, -0.302645742893219, 0.2688857316970825, -0.09931304305791855, -0.6794999241828918, 0.22751811146736145, -0.19513539969921112, -0.2860732674598694, -0.1290188729763031, 0.6081737875938416, -0.4171571433544159, -0.6208862066268921, 0.28233611583709717, 0.39191967248916626, 0.3209908604621887, -0.05384035035967827, -0.7567752003669739, -0.04551233351230621, 0.013737753033638, -0.4033416509628296, 0.2891741394996643, 0.14069125056266785, 0.08830374479293823, 0.7730612754821777, 0.5933065414428711, 0.03532734885811806, 0.15478035807609558, -0.12633104622364044, 0.7981238961219788, -0.8553089499473572, -0.3817746341228485, -0.853848397731781, 0.593334436416626, 0.05680285766720772, -0.26461848616600037, 0.4143706262111664, 0.6562952995300293, 0.8632989525794983, -0.44217076897621155, 0.6218064427375793, -0.24847446382045746, 0.3849675953388214, -0.5664989948272705, 0.7205075621604919, -0.47024616599082947, 0.1225532591342926, -0.08422935754060745, -0.9855832457542419, -0.3954322636127472, 0.7427418828010559, -0.0887674018740654, 0.02186387963593006, 0.768028974533081, 0.6915955543518066, 0.1364484429359436, -0.15430033206939697, 0.16879329085350037, 0.37004655599594116, 0.3739912807941437, 0.63078373670578, 0.4518974721431732, -0.8447171449661255, 0.31117358803749084, -0.26605862379074097, -0.08854296803474426, -0.38505274057388306, -0.9899765849113464, -0.8332672715187073, -0.7104650735855103, -0.39123719930648804, -0.5275478363037109, 0.19965751469135284, 1.0466418266296387, 0.6683027744293213, -1.1036735773086548, -0.1925041228532791, -0.09885337203741074, -0.16586288809776306, -0.28308534622192383, -0.2092360258102417, 0.598980724811554, -0.23301208019256592, -0.5133596658706665, 0.4829937219619751, 0.06997687369585037, 0.28975170850753784, -0.04946679249405861, -0.12705333530902863, -0.6509302854537964, 0.07014857977628708, 0.5217903256416321, 0.5002701878547668, -0.7962260246276855, -0.43585124611854553, 0.12000881135463715, -0.0976237952709198, 0.17515204846858978, 0.4549632966518402, -0.7393702864646912, 0.187310591340065, 0.6635670065879822, 0.47740718722343445, 0.5815606713294983, -0.10489803552627563, 0.7160535454750061, -0.8647191524505615, 0.12846285104751587, 0.06907385587692261, 0.3663565218448639, 0.2514319121837616, -0.2998408079147339, 0.5145869851112366, 0.5001728534698486, -0.5899319052696228, -0.7613504528999329, 0.11309507489204407, -1.073283076286316, -0.30474725365638733, 1.0500757694244385, -0.202006533741951, -0.37655922770500183, 0.052875276654958725, -0.16335701942443848, 0.618367612361908, -0.26262691617012024, 0.7418457865715027, 0.5906787514686584, -0.10606876760721207, -0.1271757036447525, -0.4910491704940796, 0.7414730191230774, 0.44917774200439453, -0.49742257595062256, -0.17484447360038757, 0.07989779859781265, 0.28619349002838135, 0.18702667951583862, 0.4739595353603363, -0.14311227202415466, 0.06058741733431816, -0.09224060922861099, 0.21138550341129303, -0.15034088492393494, -0.37961459159851074, -0.4061918258666992, 0.14777043461799622, -0.14144591987133026, -0.37126556038856506 ]